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

1308 lines
1.2 MiB

!(function(){var Yo=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[643],{70557:function(Nt,Qe,T){"use strict";T.d(Qe,{Z:function(){return de}});var K=T(96663),re=T(59301),Ee={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"},Re=Ee,pe=T(7657),Z=function(z,M){return re.createElement(pe.Z,(0,K.Z)({},z,{ref:M,icon:Re}))},ge=re.forwardRef(Z),de=ge},27812:function(Nt,Qe,T){"use strict";T.d(Qe,{Z:function(){return de}});var K=T(96663),re=T(59301),Ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},Re=Ee,pe=T(7657),Z=function(z,M){return re.createElement(pe.Z,(0,K.Z)({},z,{ref:M,icon:Re}))},ge=re.forwardRef(Z),de=ge},84105:function(Nt,Qe,T){"use strict";T.d(Qe,{Z:function(){return de}});var K=T(96663),re=T(59301),Ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},Re=Ee,pe=T(7657),Z=function(z,M){return re.createElement(pe.Z,(0,K.Z)({},z,{ref:M,icon:Re}))},ge=re.forwardRef(Z),de=ge},18785:function(Nt,Qe,T){"use strict";T.d(Qe,{Z:function(){return de}});var K=T(96663),re=T(59301),Ee={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"},Re=Ee,pe=T(7657),Z=function(z,M){return re.createElement(pe.Z,(0,K.Z)({},z,{ref:M,icon:Re}))},ge=re.forwardRef(Z),de=ge},73331:function(Nt,Qe,T){"use strict";T.d(Qe,{Z:function(){return de}});var K=T(96663),re=T(59301),Ee={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"},Re=Ee,pe=T(7657),Z=function(z,M){return re.createElement(pe.Z,(0,K.Z)({},z,{ref:M,icon:Re}))},ge=re.forwardRef(Z),de=ge},15277:function(Nt,Qe,T){"use strict";T.d(Qe,{Z:function(){return de}});var K=T(96663),re=T(59301),Ee={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"},Re=Ee,pe=T(7657),Z=function(z,M){return re.createElement(pe.Z,(0,K.Z)({},z,{ref:M,icon:Re}))},ge=re.forwardRef(Z),de=ge},33853:function(Nt,Qe,T){"use strict";T.d(Qe,{Z:function(){return de}});var K=T(96663),re=T(59301),Ee={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"},Re=Ee,pe=T(7657),Z=function(z,M){return re.createElement(pe.Z,(0,K.Z)({},z,{ref:M,icon:Re}))},ge=re.forwardRef(Z),de=ge},38819:function(Nt,Qe,T){"use strict";T.d(Qe,{Z:function(){return de}});var K=T(96663),re=T(59301),Ee={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"},Re=Ee,pe=T(7657),Z=function(z,M){return re.createElement(pe.Z,(0,K.Z)({},z,{ref:M,icon:Re}))},ge=re.forwardRef(Z),de=ge},47472:function(Nt,Qe,T){"use strict";T.d(Qe,{Z:function(){return de}});var K=T(96663),re=T(59301),Ee={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"},Re=Ee,pe=T(7657),Z=function(z,M){return re.createElement(pe.Z,(0,K.Z)({},z,{ref:M,icon:Re}))},ge=re.forwardRef(Z),de=ge},35593:function(Nt,Qe,T){"use strict";T.d(Qe,{Z:function(){return St}});var K=T(44127),re=T(72071),Ee=T(6620),Re=T(43403),pe=T(92310),Z=T.n(pe),ge=T(29301),de=T(76846),o=T(96452),z=T(6089),M=T(80402),x=T(34280),h=T(49658),E=T(59301),b=T(96663),Y=T(77900),te=T(8654);function L(ue){var ne=ue.prefixCls,X=ue.align,Le=ue.arrow,Pe=ue.arrowPos,R=Le||{},se=R.className,ve=R.content,_e=Pe.x,Oe=_e===void 0?0:_e,Be=Pe.y,je=Be===void 0?0:Be,et=E.useRef();if(!X||!X.points)return null;var We={position:"absolute"};if(X.autoArrow!==!1){var Ge=X.points[0],st=X.points[1],Je=Ge[0],ct=Ge[1],yt=st[0],Lt=st[1];Je===yt||!["t","b"].includes(Je)?We.top=je:Je==="t"?We.top=0:We.bottom=0,ct===Lt||!["l","r"].includes(ct)?We.left=Oe:ct==="l"?We.left=0:We.right=0}return E.createElement("div",{ref:et,className:Z()("".concat(ne,"-arrow"),se),style:We},ve)}function N(ue){var ne=ue.prefixCls,X=ue.open,Le=ue.zIndex,Pe=ue.mask,R=ue.motion;return Pe?E.createElement(Y.default,(0,b.Z)({},R,{motionAppear:!0,visible:X,removeOnLeave:!0}),function(se){var ve=se.className;return E.createElement("div",{style:{zIndex:Le},className:Z()("".concat(ne,"-mask"),ve)})}):null}var U=E.memo(function(ue){var ne=ue.children;return ne},function(ue,ne){return ne.cache}),ce=U,w=E.forwardRef(function(ue,ne){var X=ue.popup,Le=ue.className,Pe=ue.prefixCls,R=ue.style,se=ue.target,ve=ue.onVisibleChanged,_e=ue.open,Oe=ue.keepDom,Be=ue.fresh,je=ue.onClick,et=ue.mask,We=ue.arrow,Ge=ue.arrowPos,st=ue.align,Je=ue.motion,ct=ue.maskMotion,yt=ue.forceRender,Lt=ue.getPopupContainer,xt=ue.autoDestroy,bt=ue.portal,Ct=ue.zIndex,y=ue.onMouseEnter,S=ue.onMouseLeave,rt=ue.onPointerEnter,H=ue.ready,be=ue.offsetX,er=ue.offsetY,ke=ue.offsetR,Ue=ue.offsetB,Ke=ue.onAlign,J=ue.onPrepare,he=ue.stretch,Te=ue.targetWidth,Fe=ue.targetHeight,$=typeof X=="function"?X():X,Et=_e||Oe,Se=(Lt==null?void 0:Lt.length)>0,Pt=E.useState(!Lt||!Se),jt=(0,re.Z)(Pt,2),qt=jt[0],gr=jt[1];if((0,x.Z)(function(){!qt&&Se&&se&&gr(!0)},[qt,Se,se]),!qt)return null;var Ft="auto",zt={left:"-1000vw",top:"-1000vh",right:Ft,bottom:Ft};if(H||!_e){var fr,Zr=st.points,un=st.dynamicInset||((fr=st._experimental)===null||fr===void 0?void 0:fr.dynamicInset),$r=un&&Zr[0][1]==="r",Ht=un&&Zr[0][0]==="b";$r?(zt.right=ke,zt.left=Ft):(zt.left=be,zt.right=Ft),Ht?(zt.bottom=Ue,zt.top=Ft):(zt.top=er,zt.bottom=Ft)}var ur={};return he&&(he.includes("height")&&Fe?ur.height=Fe:he.includes("minHeight")&&Fe&&(ur.minHeight=Fe),he.includes("width")&&Te?ur.width=Te:he.includes("minWidth")&&Te&&(ur.minWidth=Te)),_e||(ur.pointerEvents="none"),E.createElement(bt,{open:yt||Et,getContainer:Lt&&function(){return Lt(se)},autoDestroy:xt},E.createElement(N,{prefixCls:Pe,open:_e,zIndex:Ct,mask:et,motion:ct}),E.createElement(ge.Z,{onResize:Ke,disabled:!_e},function(Ar){return E.createElement(Y.default,(0,b.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:yt,leavedClassName:"".concat(Pe,"-hidden")},Je,{onAppearPrepare:J,onEnterPrepare:J,visible:_e,onVisibleChanged:function(Qr){var wn;Je==null||(wn=Je.onVisibleChanged)===null||wn===void 0||wn.call(Je,Qr),ve(Qr)}}),function(Jr,Qr){var wn=Jr.className,Dr=Jr.style,Fn=Z()(Pe,wn,Le);return E.createElement("div",{ref:(0,te.sQ)(Ar,ne,Qr),className:Fn,style:(0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)({"--arrow-x":"".concat(Ge.x||0,"px"),"--arrow-y":"".concat(Ge.y||0,"px")},zt),ur),Dr),{},{boxSizing:"border-box",zIndex:Ct},R),onMouseEnter:y,onMouseLeave:S,onPointerEnter:rt,onClick:je},We&&E.createElement(L,{prefixCls:Pe,arrow:We,arrowPos:Ge,align:st}),E.createElement(ce,{cache:!_e&&!Be},$))})}))}),j=w,ae=E.forwardRef(function(ue,ne){var X=ue.children,Le=ue.getTriggerDOMNode,Pe=(0,te.Yr)(X),R=E.useCallback(function(ve){(0,te.mH)(ne,Le?Le(ve):ve)},[Le]),se=(0,te.x1)(R,X.ref);return Pe?E.cloneElement(X,{ref:se}):X}),ee=ae,oe=E.createContext(null),Ae=oe;function we(ue){return ue?Array.isArray(ue)?ue:[ue]:[]}function Ne(ue,ne,X,Le){return E.useMemo(function(){var Pe=we(X!=null?X:ne),R=we(Le!=null?Le:ne),se=new Set(Pe),ve=new Set(R);return ue&&(se.has("hover")&&(se.delete("hover"),se.add("click")),ve.has("hover")&&(ve.delete("hover"),ve.add("click"))),[se,ve]},[ue,ne,X,Le])}var W=T(29194);function P(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],X=arguments.length>2?arguments[2]:void 0;return X?ue[0]===ne[0]:ue[0]===ne[0]&&ue[1]===ne[1]}function q(ue,ne,X,Le){for(var Pe=X.points,R=Object.keys(ue),se=0;se<R.length;se+=1){var ve,_e=R[se];if(P((ve=ue[_e])===null||ve===void 0?void 0:ve.points,Pe,Le))return"".concat(ne,"-placement-").concat(_e)}return""}function D(ue,ne,X,Le){return ne||(X?{motionName:"".concat(ue,"-").concat(X)}:Le?{motionName:Le}:null)}function ie(ue){return ue.ownerDocument.defaultView}function F(ue){for(var ne=[],X=ue==null?void 0:ue.parentElement,Le=["hidden","scroll","clip","auto"];X;){var Pe=ie(X).getComputedStyle(X),R=Pe.overflowX,se=Pe.overflowY,ve=Pe.overflow;[R,se,ve].some(function(_e){return Le.includes(_e)})&&ne.push(X),X=X.parentElement}return ne}function g(ue){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(ue)?ne:ue}function v(ue){return g(parseFloat(ue),0)}function I(ue,ne){var X=(0,K.Z)({},ue);return(ne||[]).forEach(function(Le){if(!(Le instanceof HTMLBodyElement||Le instanceof HTMLHtmlElement)){var Pe=ie(Le).getComputedStyle(Le),R=Pe.overflow,se=Pe.overflowClipMargin,ve=Pe.borderTopWidth,_e=Pe.borderBottomWidth,Oe=Pe.borderLeftWidth,Be=Pe.borderRightWidth,je=Le.getBoundingClientRect(),et=Le.offsetHeight,We=Le.clientHeight,Ge=Le.offsetWidth,st=Le.clientWidth,Je=v(ve),ct=v(_e),yt=v(Oe),Lt=v(Be),xt=g(Math.round(je.width/Ge*1e3)/1e3),bt=g(Math.round(je.height/et*1e3)/1e3),Ct=(Ge-st-yt-Lt)*xt,y=(et-We-Je-ct)*bt,S=Je*bt,rt=ct*bt,H=yt*xt,be=Lt*xt,er=0,ke=0;if(R==="clip"){var Ue=v(se);er=Ue*xt,ke=Ue*bt}var Ke=je.x+H-er,J=je.y+S-ke,he=Ke+je.width+2*er-H-be-Ct,Te=J+je.height+2*ke-S-rt-y;X.left=Math.max(X.left,Ke),X.top=Math.max(X.top,J),X.right=Math.min(X.right,he),X.bottom=Math.min(X.bottom,Te)}}),X}function G(ue){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,X="".concat(ne),Le=X.match(/^(.*)\%$/);return Le?ue*(parseFloat(Le[1])/100):parseFloat(X)}function xe(ue,ne){var X=ne||[],Le=(0,re.Z)(X,2),Pe=Le[0],R=Le[1];return[G(ue.width,Pe),G(ue.height,R)]}function De(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[ue[0],ue[1]]}function Ie(ue,ne){var X=ne[0],Le=ne[1],Pe,R;return X==="t"?R=ue.y:X==="b"?R=ue.y+ue.height:R=ue.y+ue.height/2,Le==="l"?Pe=ue.x:Le==="r"?Pe=ue.x+ue.width:Pe=ue.x+ue.width/2,{x:Pe,y:R}}function $e(ue,ne){var X={t:"b",b:"t",l:"r",r:"l"};return ue.map(function(Le,Pe){return Pe===ne?X[Le]||"c":Le}).join("")}function qe(ue,ne,X,Le,Pe,R,se){var ve=E.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Pe[Le]||{}}),_e=(0,re.Z)(ve,2),Oe=_e[0],Be=_e[1],je=E.useRef(0),et=E.useMemo(function(){return ne?F(ne):[]},[ne]),We=E.useRef({}),Ge=function(){We.current={}};ue||Ge();var st=(0,z.Z)(function(){if(ne&&X&&ue){let vn=function(bn,Wn){var qn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fn,kn=$.x+bn,Kn=$.y+Wn,Bi=kn+fr,Hi=Kn+zt,Si=Math.max(kn,qn.left),Yi=Math.max(Kn,qn.top),Li=Math.min(Bi,qn.right),ki=Math.min(Hi,qn.bottom);return Math.max(0,(Li-Si)*(ki-Yi))},Mr=function(){ar=$.y+sr,br=ar+zt,fn=$.x+lr,Pn=fn+fr};var yt,Lt,xt=ne,bt=xt.ownerDocument,Ct=ie(xt),y=Ct.getComputedStyle(xt),S=y.width,rt=y.height,H=y.position,be=xt.style.left,er=xt.style.top,ke=xt.style.right,Ue=xt.style.bottom,Ke=xt.style.overflow,J=(0,K.Z)((0,K.Z)({},Pe[Le]),R),he=bt.createElement("div");(yt=xt.parentElement)===null||yt===void 0||yt.appendChild(he),he.style.left="".concat(xt.offsetLeft,"px"),he.style.top="".concat(xt.offsetTop,"px"),he.style.position=H,he.style.height="".concat(xt.offsetHeight,"px"),he.style.width="".concat(xt.offsetWidth,"px"),xt.style.left="0",xt.style.top="0",xt.style.right="auto",xt.style.bottom="auto",xt.style.overflow="hidden";var Te;if(Array.isArray(X))Te={x:X[0],y:X[1],width:0,height:0};else{var Fe=X.getBoundingClientRect();Te={x:Fe.x,y:Fe.y,width:Fe.width,height:Fe.height}}var $=xt.getBoundingClientRect(),Et=bt.documentElement,Se=Et.clientWidth,Pt=Et.clientHeight,jt=Et.scrollWidth,qt=Et.scrollHeight,gr=Et.scrollTop,Ft=Et.scrollLeft,zt=$.height,fr=$.width,Zr=Te.height,un=Te.width,$r={left:0,top:0,right:Se,bottom:Pt},Ht={left:-Ft,top:-gr,right:jt-Ft,bottom:qt-gr},ur=J.htmlRegion,Ar="visible",Jr="visibleFirst";ur!=="scroll"&&ur!==Jr&&(ur=Ar);var Qr=ur===Jr,wn=I(Ht,et),Dr=I($r,et),Fn=ur===Ar?Dr:wn,cn=Qr?Dr:Fn;xt.style.left="auto",xt.style.top="auto",xt.style.right="0",xt.style.bottom="0";var Xt=xt.getBoundingClientRect();xt.style.left=be,xt.style.top=er,xt.style.right=ke,xt.style.bottom=Ue,xt.style.overflow=Ke,(Lt=xt.parentElement)===null||Lt===void 0||Lt.removeChild(he);var Ut=g(Math.round(fr/parseFloat(S)*1e3)/1e3),hr=g(Math.round(zt/parseFloat(rt)*1e3)/1e3);if(Ut===0||hr===0||(0,de.Sh)(X)&&!(0,W.Z)(X))return;var Hr=J.offset,_r=J.targetOffset,nn=xe($,Hr),ri=(0,re.Z)(nn,2),qr=ri[0],Qt=ri[1],tt=xe(Te,_r),Xe=(0,re.Z)(tt,2),dt=Xe[0],At=Xe[1];Te.x-=dt,Te.y-=At;var ut=J.points||[],wt=(0,re.Z)(ut,2),pt=wt[0],Kt=wt[1],tr=De(Kt),Zt=De(pt),vr=Ie(Te,tr),Tr=Ie($,Zt),Or=(0,K.Z)({},J),lr=vr.x-Tr.x+qr,sr=vr.y-Tr.y+Qt,jr=vn(lr,sr),yr=vn(lr,sr,Dr),Yr=Ie(Te,["t","l"]),Nr=Ie($,["t","l"]),Pr=Ie(Te,["b","r"]),Rr=Ie($,["b","r"]),Ir=J.overflow||{},Fr=Ir.adjustX,yn=Ir.adjustY,zr=Ir.shiftX,dr=Ir.shiftY,He=function(Wn){return typeof Wn=="boolean"?Wn:Wn>=0},ar,br,fn,Pn;Mr();var Mn=He(yn),En=Zt[0]===tr[0];if(Mn&&Zt[0]==="t"&&(br>cn.bottom||We.current.bt)){var pr=sr;En?pr-=zt-Zr:pr=Yr.y-Rr.y-Qt;var pn=vn(lr,pr),Sn=vn(lr,pr,Dr);pn>jr||pn===jr&&(!Qr||Sn>=yr)?(We.current.bt=!0,sr=pr,Qt=-Qt,Or.points=[$e(Zt,0),$e(tr,0)]):We.current.bt=!1}if(Mn&&Zt[0]==="b"&&(ar<cn.top||We.current.tb)){var Kr=sr;En?Kr+=zt-Zr:Kr=Pr.y-Nr.y-Qt;var Cn=vn(lr,Kr),di=vn(lr,Kr,Dr);Cn>jr||Cn===jr&&(!Qr||di>=yr)?(We.current.tb=!0,sr=Kr,Qt=-Qt,Or.points=[$e(Zt,0),$e(tr,0)]):We.current.tb=!1}var $n=He(Fr),Zn=Zt[1]===tr[1];if($n&&Zt[1]==="l"&&(Pn>cn.right||We.current.rl)){var Vt=lr;Zn?Vt-=fr-un:Vt=Yr.x-Rr.x-qr;var sn=vn(Vt,sr),Wr=vn(Vt,sr,Dr);sn>jr||sn===jr&&(!Qr||Wr>=yr)?(We.current.rl=!0,lr=Vt,qr=-qr,Or.points=[$e(Zt,1),$e(tr,1)]):We.current.rl=!1}if($n&&Zt[1]==="r"&&(fn<cn.left||We.current.lr)){var Rn=lr;Zn?Rn+=fr-un:Rn=Pr.x-Nr.x-qr;var fi=vn(Rn,sr),Yn=vn(Rn,sr,Dr);fi>jr||fi===jr&&(!Qr||Yn>=yr)?(We.current.lr=!0,lr=Rn,qr=-qr,Or.points=[$e(Zt,1),$e(tr,1)]):We.current.lr=!1}Mr();var mn=zr===!0?0:zr;typeof mn=="number"&&(fn<Dr.left&&(lr-=fn-Dr.left-qr,Te.x+un<Dr.left+mn&&(lr+=Te.x-Dr.left+un-mn)),Pn>Dr.right&&(lr-=Pn-Dr.right-qr,Te.x>Dr.right-mn&&(lr+=Te.x-Dr.right+mn)));var In=dr===!0?0:dr;typeof In=="number"&&(ar<Dr.top&&(sr-=ar-Dr.top-Qt,Te.y+Zr<Dr.top+In&&(sr+=Te.y-Dr.top+Zr-In)),br>Dr.bottom&&(sr-=br-Dr.bottom-Qt,Te.y>Dr.bottom-In&&(sr+=Te.y-Dr.bottom+In)));var en=$.x+lr,ei=en+fr,Gn=$.y+sr,li=Gn+zt,Hn=Te.x,Xn=Hn+un,Lr=Te.y,ui=Lr+Zr,xi=Math.max(en,Hn),wi=Math.min(ei,Xn),gn=(xi+wi)/2,_i=gn-en,Ei=Math.max(Gn,Lr),Mt=Math.min(li,ui),jn=(Ei+Mt)/2,pi=jn-Gn;se==null||se(ne,Or);var ci=Xt.right-$.x-(lr+$.width),Ln=Xt.bottom-$.y-(sr+$.height);Be({ready:!0,offsetX:lr/Ut,offsetY:sr/hr,offsetR:ci/Ut,offsetB:Ln/hr,arrowX:_i/Ut,arrowY:pi/hr,scaleX:Ut,scaleY:hr,align:Or})}}),Je=function(){je.current+=1;var Lt=je.current;Promise.resolve().then(function(){je.current===Lt&&st()})},ct=function(){Be(function(Lt){return(0,K.Z)((0,K.Z)({},Lt),{},{ready:!1})})};return(0,x.Z)(ct,[Le]),(0,x.Z)(function(){ue||ct()},[ue]),[Oe.ready,Oe.offsetX,Oe.offsetY,Oe.offsetR,Oe.offsetB,Oe.arrowX,Oe.arrowY,Oe.scaleX,Oe.scaleY,Oe.align,Je]}var Ye=T(19127);function Ve(ue,ne,X,Le,Pe){(0,x.Z)(function(){if(ue&&ne&&X){let je=function(){Le(),Pe()};var R=ne,se=X,ve=F(R),_e=F(se),Oe=ie(se),Be=new Set([Oe].concat((0,Ye.Z)(ve),(0,Ye.Z)(_e)));return Be.forEach(function(et){et.addEventListener("scroll",je,{passive:!0})}),Oe.addEventListener("resize",je,{passive:!0}),Le(),function(){Be.forEach(function(et){et.removeEventListener("scroll",je),Oe.removeEventListener("resize",je)})}}},[ue,ne,X])}var ht=T(48736),mt=T(16089);function kt(ue,ne,X,Le,Pe,R,se,ve){var _e=E.useRef(ue),Oe=E.useRef(!1);_e.current!==ue&&(Oe.current=!0,_e.current=ue),E.useEffect(function(){var Be=(0,mt.Z)(function(){Oe.current=!1});return function(){mt.Z.cancel(Be)}},[ue]),E.useEffect(function(){if(ne&&Le&&(!Pe||R)){var Be=function(){var H=!1,be=function(Ue){var Ke=Ue.target;H=se(Ke)},er=function(Ue){var Ke=Ue.target;!Oe.current&&_e.current&&!H&&!se(Ke)&&ve(!1)};return[be,er]},je=Be(),et=(0,re.Z)(je,2),We=et[0],Ge=et[1],st=Be(),Je=(0,re.Z)(st,2),ct=Je[0],yt=Je[1],Lt=ie(Le);Lt.addEventListener("mousedown",We,!0),Lt.addEventListener("click",Ge,!0),Lt.addEventListener("contextmenu",Ge,!0);var xt=(0,o.A)(X);if(xt&&(xt.addEventListener("mousedown",ct,!0),xt.addEventListener("click",yt,!0),xt.addEventListener("contextmenu",yt,!0)),0)var bt,Ct,y,S;return function(){Lt.removeEventListener("mousedown",We,!0),Lt.removeEventListener("click",Ge,!0),Lt.removeEventListener("contextmenu",Ge,!0),xt&&(xt.removeEventListener("mousedown",ct,!0),xt.removeEventListener("click",yt,!0),xt.removeEventListener("contextmenu",yt,!0))}}},[ne,X,Le,Pe,R])}var gt=["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 Tt(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Re.Z,ne=E.forwardRef(function(X,Le){var Pe=X.prefixCls,R=Pe===void 0?"rc-trigger-popup":Pe,se=X.children,ve=X.action,_e=ve===void 0?"hover":ve,Oe=X.showAction,Be=X.hideAction,je=X.popupVisible,et=X.defaultPopupVisible,We=X.onPopupVisibleChange,Ge=X.afterPopupVisibleChange,st=X.mouseEnterDelay,Je=X.mouseLeaveDelay,ct=Je===void 0?.1:Je,yt=X.focusDelay,Lt=X.blurDelay,xt=X.mask,bt=X.maskClosable,Ct=bt===void 0?!0:bt,y=X.getPopupContainer,S=X.forceRender,rt=X.autoDestroy,H=X.destroyPopupOnHide,be=X.popup,er=X.popupClassName,ke=X.popupStyle,Ue=X.popupPlacement,Ke=X.builtinPlacements,J=Ke===void 0?{}:Ke,he=X.popupAlign,Te=X.zIndex,Fe=X.stretch,$=X.getPopupClassNameFromAlign,Et=X.fresh,Se=X.alignPoint,Pt=X.onPopupClick,jt=X.onPopupAlign,qt=X.arrow,gr=X.popupMotion,Ft=X.maskMotion,zt=X.popupTransitionName,fr=X.popupAnimation,Zr=X.maskTransitionName,un=X.maskAnimation,$r=X.className,Ht=X.getTriggerDOMNode,ur=(0,Ee.Z)(X,gt),Ar=rt||H||!1,Jr=E.useState(!1),Qr=(0,re.Z)(Jr,2),wn=Qr[0],Dr=Qr[1];(0,x.Z)(function(){Dr((0,h.Z)())},[]);var Fn=E.useRef({}),cn=E.useContext(Ae),Xt=E.useMemo(function(){return{registerSubPopup:function(Yt,Br){Fn.current[Yt]=Br,cn==null||cn.registerSubPopup(Yt,Br)}}},[cn]),Ut=(0,M.Z)(),hr=E.useState(null),Hr=(0,re.Z)(hr,2),_r=Hr[0],nn=Hr[1],ri=(0,z.Z)(function(rr){(0,de.Sh)(rr)&&_r!==rr&&nn(rr),cn==null||cn.registerSubPopup(Ut,rr)}),qr=E.useState(null),Qt=(0,re.Z)(qr,2),tt=Qt[0],Xe=Qt[1],dt=E.useRef(null),At=(0,z.Z)(function(rr){(0,de.Sh)(rr)&&tt!==rr&&(Xe(rr),dt.current=rr)}),ut=E.Children.only(se),wt=(ut==null?void 0:ut.props)||{},pt={},Kt=(0,z.Z)(function(rr){var Yt,Br,An=tt;return(An==null?void 0:An.contains(rr))||((Yt=(0,o.A)(An))===null||Yt===void 0?void 0:Yt.host)===rr||rr===An||(_r==null?void 0:_r.contains(rr))||((Br=(0,o.A)(_r))===null||Br===void 0?void 0:Br.host)===rr||rr===_r||Object.values(Fn.current).some(function(Gr){return(Gr==null?void 0:Gr.contains(rr))||rr===Gr})}),tr=D(R,gr,fr,zt),Zt=D(R,Ft,un,Zr),vr=E.useState(et||!1),Tr=(0,re.Z)(vr,2),Or=Tr[0],lr=Tr[1],sr=je!=null?je:Or,jr=(0,z.Z)(function(rr){je===void 0&&lr(rr)});(0,x.Z)(function(){lr(je||!1)},[je]);var yr=E.useRef(sr);yr.current=sr;var Yr=E.useRef([]);Yr.current=[];var Nr=(0,z.Z)(function(rr){var Yt;jr(rr),((Yt=Yr.current[Yr.current.length-1])!==null&&Yt!==void 0?Yt:sr)!==rr&&(Yr.current.push(rr),We==null||We(rr))}),Pr=E.useRef(),Rr=function(){clearTimeout(Pr.current)},Ir=function(Yt){var Br=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Rr(),Br===0?Nr(Yt):Pr.current=setTimeout(function(){Nr(Yt)},Br*1e3)};E.useEffect(function(){return Rr},[]);var Fr=E.useState(!1),yn=(0,re.Z)(Fr,2),zr=yn[0],dr=yn[1];(0,x.Z)(function(rr){(!rr||sr)&&dr(!0)},[sr]);var He=E.useState(null),ar=(0,re.Z)(He,2),br=ar[0],fn=ar[1],Pn=E.useState([0,0]),Mn=(0,re.Z)(Pn,2),En=Mn[0],pr=Mn[1],pn=function(Yt){pr([Yt.clientX,Yt.clientY])},Sn=qe(sr,_r,Se?En:tt,Ue,J,he,jt),Kr=(0,re.Z)(Sn,11),Cn=Kr[0],di=Kr[1],$n=Kr[2],Zn=Kr[3],Vt=Kr[4],sn=Kr[5],Wr=Kr[6],Rn=Kr[7],fi=Kr[8],Yn=Kr[9],mn=Kr[10],In=Ne(wn,_e,Oe,Be),en=(0,re.Z)(In,2),ei=en[0],Gn=en[1],li=ei.has("click"),Hn=Gn.has("click")||Gn.has("contextMenu"),Xn=(0,z.Z)(function(){zr||mn()}),Lr=function(){yr.current&&Se&&Hn&&Ir(!1)};Ve(sr,tt,_r,Xn,Lr),(0,x.Z)(function(){Xn()},[En,Ue]),(0,x.Z)(function(){sr&&!(J!=null&&J[Ue])&&Xn()},[JSON.stringify(he)]);var ui=E.useMemo(function(){var rr=q(J,R,Yn,Se);return Z()(rr,$==null?void 0:$(Yn))},[Yn,$,J,R,Se]);E.useImperativeHandle(Le,function(){return{nativeElement:dt.current,forceAlign:Xn}});var xi=E.useState(0),wi=(0,re.Z)(xi,2),gn=wi[0],_i=wi[1],Ei=E.useState(0),Mt=(0,re.Z)(Ei,2),jn=Mt[0],pi=Mt[1],ci=function(){if(Fe&&tt){var Yt=tt.getBoundingClientRect();_i(Yt.width),pi(Yt.height)}},Ln=function(){ci(),Xn()},vn=function(Yt){dr(!1),mn(),Ge==null||Ge(Yt)},Mr=function(){return new Promise(function(Yt){ci(),fn(function(){return Yt})})};(0,x.Z)(function(){br&&(mn(),br(),fn(null))},[br]);function bn(rr,Yt,Br,An){pt[rr]=function(Gr){var ni;An==null||An(Gr),Ir(Yt,Br);for(var ji=arguments.length,Ni=new Array(ji>1?ji-1:0),yi=1;yi<ji;yi++)Ni[yi-1]=arguments[yi];(ni=wt[rr])===null||ni===void 0||ni.call.apply(ni,[wt,Gr].concat(Ni))}}(li||Hn)&&(pt.onClick=function(rr){var Yt;yr.current&&Hn?Ir(!1):!yr.current&&li&&(pn(rr),Ir(!0));for(var Br=arguments.length,An=new Array(Br>1?Br-1:0),Gr=1;Gr<Br;Gr++)An[Gr-1]=arguments[Gr];(Yt=wt.onClick)===null||Yt===void 0||Yt.call.apply(Yt,[wt,rr].concat(An))}),kt(sr,Hn,tt,_r,xt,Ct,Kt,Ir);var Wn=ei.has("hover"),qn=Gn.has("hover"),kn,Kn;Wn&&(bn("onMouseEnter",!0,st,function(rr){pn(rr)}),bn("onPointerEnter",!0,st,function(rr){pn(rr)}),kn=function(Yt){(sr||zr)&&_r!==null&&_r!==void 0&&_r.contains(Yt.target)&&Ir(!0,st)},Se&&(pt.onMouseMove=function(rr){var Yt;(Yt=wt.onMouseMove)===null||Yt===void 0||Yt.call(wt,rr)})),qn&&(bn("onMouseLeave",!1,ct),bn("onPointerLeave",!1,ct),Kn=function(){Ir(!1,ct)}),ei.has("focus")&&bn("onFocus",!0,yt),Gn.has("focus")&&bn("onBlur",!1,Lt),ei.has("contextMenu")&&(pt.onContextMenu=function(rr){var Yt;yr.current&&Gn.has("contextMenu")?Ir(!1):(pn(rr),Ir(!0)),rr.preventDefault();for(var Br=arguments.length,An=new Array(Br>1?Br-1:0),Gr=1;Gr<Br;Gr++)An[Gr-1]=arguments[Gr];(Yt=wt.onContextMenu)===null||Yt===void 0||Yt.call.apply(Yt,[wt,rr].concat(An))}),$r&&(pt.className=Z()(wt.className,$r));var Bi=(0,K.Z)((0,K.Z)({},wt),pt),Hi={},Si=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Si.forEach(function(rr){ur[rr]&&(Hi[rr]=function(){for(var Yt,Br=arguments.length,An=new Array(Br),Gr=0;Gr<Br;Gr++)An[Gr]=arguments[Gr];(Yt=Bi[rr])===null||Yt===void 0||Yt.call.apply(Yt,[Bi].concat(An)),ur[rr].apply(ur,An)})});var Yi=E.cloneElement(ut,(0,K.Z)((0,K.Z)({},Bi),Hi)),Li={x:sn,y:Wr},ki=qt?(0,K.Z)({},qt!==!0?qt:{}):null;return E.createElement(E.Fragment,null,E.createElement(ge.Z,{disabled:!sr,ref:At,onResize:Ln},E.createElement(ee,{getTriggerDOMNode:Ht},Yi)),E.createElement(Ae.Provider,{value:Xt},E.createElement(j,{portal:ue,ref:ri,prefixCls:R,popup:be,className:Z()(er,ui),style:ke,target:tt,onMouseEnter:kn,onMouseLeave:Kn,onPointerEnter:kn,zIndex:Te,open:sr,keepDom:zr,fresh:Et,onClick:Pt,mask:xt,motion:tr,maskMotion:Zt,onVisibleChanged:vn,onPrepare:Mr,forceRender:S,autoDestroy:Ar,getPopupContainer:y,align:Yn,arrow:ki,arrowPos:Li,ready:Cn,offsetX:di,offsetY:$n,offsetR:Zn,offsetB:Vt,onAlign:Xn,stretch:Fe,targetWidth:gn/Rn,targetHeight:jn/fi})))});return ne}var St=Tt(Re.Z)},50304:function(){"use strict"},8797:function(Nt,Qe,T){"use strict";var K=T(59301),re=T(93314),Ee=T(3113),Re=Object.defineProperty,pe=Object.defineProperties,Z=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,z=(E,b,Y)=>b in E?Re(E,b,{enumerable:!0,configurable:!0,writable:!0,value:Y}):E[b]=Y,M=(E,b)=>{for(var Y in b||(b={}))de.call(b,Y)&&z(E,Y,b[Y]);if(ge)for(var Y of ge(b))o.call(b,Y)&&z(E,Y,b[Y]);return E},x=(E,b)=>pe(E,Z(b));const h=({img:E,buttonProps:b={},styles:Y={},customText:te,ButtonText:L,ButtonClick:N,Buttonclass:U,ButtonTwo:ce,imgStyles:w,loading:j=!1})=>K.createElement("section",{className:"tc animated fadeIn",style:M(M({},{color:"#999",margin:"100px auto",visibility:j?"hidden":"visible"}),Y)},K.createElement("img",{src:E||re,style:x(M({},w),{pointerEvents:"none",userSelect:"none"})}),K.createElement("p",{className:"mt20 font14"},te||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),L&&K.createElement(Ee.ZP,M({className:U,onClick:N},b),L),ce&&ce);Qe.Z=h},23210:function(Nt,Qe,T){"use strict";T.d(Qe,{Z:function(){return U}});var K=T(59301),re={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Ee=T(3113),Re=T(70557),pe=T(23954),Z=T(6848),ge=T(955),de=T(94941),o=T(8797),z=T(3294),M=T(19381),x=T(59301),h=Object.defineProperty,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,te=(ce,w,j)=>w in ce?h(ce,w,{enumerable:!0,configurable:!0,writable:!0,value:j}):ce[w]=j,L=(ce,w)=>{for(var j in w||(w={}))b.call(w,j)&&te(ce,j,w[j]);if(E)for(var j of E(w))Y.call(w,j)&&te(ce,j,w[j]);return ce},N=(ce,w,j)=>new Promise((ae,ee)=>{var oe=Ne=>{try{we(j.next(Ne))}catch(W){ee(W)}},Ae=Ne=>{try{we(j.throw(Ne))}catch(W){ee(W)}},we=Ne=>Ne.done?ae(Ne.value):Promise.resolve(Ne.value).then(oe,Ae);we((j=j.apply(ce,w)).next())}),U=({editOffice:ce="view",data:w,theme:j,type:ae,filename:ee,monacoEditor:oe,className:Ae,style:we,close:Ne,onClose:W,hasMask:P,disabledDownload:q,onImgDimensions:D,showNodata:ie,recordInfo:F})=>{const[g,v]=(0,K.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[I,G]=(0,K.useState)(""),[xe,De]=(0,K.useState)(),Ie=window.ENV==="build"?"/react/build":"",$e=location.host.startsWith("localhost")?z.Z.PROXY_SERVER:z.Z.API_SERVER,Ye=10*(1024*1024),Ve=(0,K.useRef)();w!=null&&w.startsWith("/api")&&ae!=="txt"&&(w=z.Z.API_SERVER+w);const ht=Tt=>Tt.substring(Tt.lastIndexOf("/")+1).split(".").pop();ee&&oe&&(oe.filename=ee),(0,K.useEffect)(()=>{var Tt,St;const ue=(St=(Tt=document.cookie)==null?void 0:Tt.replace(/\s/g,""))==null?void 0:St.split(";");ue==null||ue.map(ne=>{let X=ne.split("=");X[0]==="_educoder_session"&&G(X[1])})},[]),(0,K.useEffect)(()=>{ae==="office"&&(w.indexOf("bigfilescdn.")>-1||w.indexOf("bigfiles1")>-1?De({url:w,fileType:ht(w),model:w.indexOf("model=edit")?"edit":"view"}):mt())},[ae,w]);const mt=()=>N(void 0,null,function*(){console.log("data:",w);let Tt=w;w.startsWith("http")||(Tt=location.origin+Tt);let St=new URL(Tt).pathname.split("/").pop();const ue=yield(0,de.gJ)({attachment_id:St});ue.url=$e+ue.url,De(ue)}),kt=()=>{if(w.startsWith("http")||w.startsWith("blob:")){gt();return}(0,ge.Sv)(ee||"educoder",w,ee)},gt=()=>{F&&(0,M.fc)({id:F==null?void 0:F.id,watch_type:1,course_id:F==null?void 0:F.course_id}),(0,ge.Nd)(ee||"educoder",decodeURIComponent(w))};return x.createElement("div",{style:L({},we||{}),className:`${P&&re.bgBlack} ${ae?re.wrp:"hide"}`},Ne&&x.createElement("div",{className:re.close,ref:Ve},!!D&&x.createElement(Z.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Ve.current},x.createElement("span",{onClick:()=>{W(),D()}},x.createElement("i",{className:"icon-yulanpizhu"}))),!q&&x.createElement(Z.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Ve.current},x.createElement("span",{onClick:gt},x.createElement("i",{className:"icon-quxiaozhiding"}))),x.createElement(Z.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Ve.current},x.createElement("span",{className:"",onClick:W},x.createElement("i",{className:"icon-guanbi1"})))),x.createElement("div",{className:`${re[Ae]} ${Ae} ${re.monaco} ${ae==="txt"?"show":"hide"}`},ae==="txt"&&x.createElement(x.Fragment,null,x.createElement(pe.ZP,L({},oe)))),ae==="audio"&&x.createElement("audio",{src:`${(w==null?void 0:w.indexOf("http://"))>-1||(w==null?void 0:w.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${w}`,autoPlay:!0}),ae==="video"&&x.createElement(x.Fragment,null,(w==null?void 0:w.indexOf("http"))>-1?x.createElement("video",{controls:!0,src:`${w}`,autoPlay:!0}):x.createElement("video",{controls:!0,src:`data:video/mp4;base64,${w}`,autoPlay:!0})),ae==="office"&&xe&&x.createElement("iframe",{src:`${Ie}/office.html?key=${xe.key}&url=${btoa(xe.url)}&callbackUrl=${$e+(xe.callbackUrl||"")}&fileType=${xe.fileType}&title=${xe.title||""}&model=${ce}&officeServer=${z.Z.ONLYOFFICE}&disabledDownload=${!!q}`}),ae==="html"&&x.createElement("iframe",{src:w+"&disposition=inline"}),ae==="pdf"&&x.createElement("iframe",{src:`${Ie}/js/pdfview/index.html?filename=${ee||"educoder.pdf"}&url=${encodeURIComponent(w)}&disabledDownload=${!!q}`}),ae==="image"&&x.createElement("img",{src:`${(w==null?void 0:w.indexOf("http://"))>-1||(w==null?void 0:w.indexOf("https://"))>-1?"":"data:image/png;base64,"}${w}`}),(ae==="other"||ae==="download")&&x.createElement(x.Fragment,null,ie?x.createElement(o.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:x.createElement(Ee.ZP,{icon:x.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:kt,disabled:q},"\u4E0B\u8F7D")}):x.createElement(Ee.ZP,{type:"primary",size:"middle",onClick:kt,disabled:q},x.createElement(Re.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(Nt,Qe,T){"use strict";T.d(Qe,{z:function(){return ae},Z:function(){return ee}});var K=T(59301),re=T(50304),Ee=T(24768),Re=T(64018),pe=T(40846),Z=T(3294),ge=T(955),de=T(15342),o=T(1012),z=T(23210),M=T(59301),h=({html:oe})=>{const Ae=(0,K.useRef)(null),we=(0,K.useRef)(null),Ne=`.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,K.useEffect)(()=>{const W=Ae.current.attachShadow({mode:"open"});we.current=document.createElement("div"),we.current.className="markdown-body",we.current.innerHTML=oe,W.appendChild(we.current);const P=document.createElement("style");return P.textContent=Ne,W.appendChild(P),()=>{W.innerHTML=""}},[]),(0,K.useEffect)(()=>{we.current&&(we.current.innerHTML=oe)},[oe]),M.createElement("div",{ref:Ae})},E=Object.defineProperty,b=Object.getOwnPropertySymbols,Y=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,L=(oe,Ae,we)=>Ae in oe?E(oe,Ae,{enumerable:!0,configurable:!0,writable:!0,value:we}):oe[Ae]=we,N=(oe,Ae)=>{for(var we in Ae||(Ae={}))Y.call(Ae,we)&&L(oe,we,Ae[we]);if(b)for(var we of b(Ae))te.call(Ae,we)&&L(oe,we,Ae[we]);return oe};const U="@\u2581\u2581@",ce="@\u2581@",w=/<pre[^>]*>/g;function j(oe){let Ae=document.createElement("div");return Ae.innerHTML=oe,Ae.childNodes.length===0?"":Ae.childNodes[0].nodeValue}const ae=(oe,Ae)=>{oe=oe||"";const we=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ne=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,W=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,P=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ae?oe.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(we,(q,D,ie,F,g,v,I)=>{const G=D||F||v,xe=ie||g||I||"?";return Z.Z.API_SERVER+"/api/attachments/"+G+xe+"&t="+(0,ge.Jn)(G,Date.now())+(q.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(oe=oe.replace(P,(q,D,ie,F,g,v,I)=>{const G=D||F||v,xe=ie||g||I||"?";return Z.Z.API_SERVER+"/attachments/download/"+G+xe+"&t="+(0,ge.Jn)(G,Date.now())+(q.indexOf(")")>-1?")":"&")}).replace(we,(q,D,ie,F,g,v,I)=>{const G=D||F||v,xe=ie||g||I||"?";return Z.Z.API_SERVER+"/api/attachments/"+G+xe+"&t="+(0,ge.Jn)(G,Date.now())+(q.indexOf(")")>-1?")":"&")}).replace(Ne,(q,D,ie,F,g)=>{const v=D||F,I=ie||g||"";return'"'+Z.Z.API_SERVER+"/api/attachments/"+v+I+v+I+"&t="+(0,ge.Jn)(v,Date.now())}).replace(W,(q,D,ie,F,g)=>{const v=D||F,I=ie||g||"";return"("+Z.Z.API_SERVER+"/files/uploads/"+v+I+v+I+"&t="+(0,ge.Jn)(v,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,`
`),oe)};var ee=({value:oe="",className:Ae,showTextOnly:we,showLines:Ne,style:W={},stylesPrev:P={},highlightKeywords:q,showProgramFill:D,isProgramFill:ie,disabledFill:F=!1,programFillValue:g,onFillChange:v=xe=>{},onFillBlur:I=()=>{},onFillFocus:G=()=>{}})=>{let xe=String(oe);const[De,Ie]=(0,K.useState)(""),[$e,qe]=(0,K.useState)("office"),[Ye,Ve]=(0,K.useState)([]),ht=(0,K.useRef)("a"+(0,o.Z)()),mt={},kt=(_e,Oe,Be)=>{const je=document.createElement(_e===ce?"input":"textarea");je.style.width="100%",je.style.height=_e===ce?"40px":"151px",je.rows=5,je.spellcheck=!1,je.name="edu-program-fill",je.placeholder="\u8BF7\u8F93\u5165",je.dataset.id=Oe;const et=Object.keys(mt).length;return mt[et]=je,`<span class="edu-program-fill-wrap ${_e===ce?"":"show"}" style="width:${_e===ce?"400px":"100%"}" title=${Be||""}><span>${je.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function gt(_e){return _e=_e.replace(/!\[.*?\]\(.*?\)/g,""),_e=_e.replace(/\[.*?\]\(.*?\)/g,""),_e=_e.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),_e=_e.replace(/<embed.*?>/g,""),_e=_e.replace(/<img.*?>/g,""),_e=_e.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),_e=_e.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),_e=_e.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),_e=_e.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),_e}const Tt=_e=>_e.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Oe,Be){let je=Be.replace(/(\n|\r)/g,"").split("}"),et=[];return je.map(We=>{We!=""&&et.push(`.${ht.current} ${We}`)}),`<style>${et.join("}")}</style>`}),St=(0,K.useMemo)(()=>{try{const je=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,et=/\"\/api\/attachments\/|\"\/attachments\/download\//g,We=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Ge=/\(\/attachments\/download\//g;xe=xe.replace(Ge,"("+Z.Z.API_SERVER+"/attachments/download/").replace(je,"("+Z.Z.API_SERVER+"/api/attachments/").replace(et,'"'+Z.Z.API_SERVER+"/api/attachments/").replace(We,'"'+Z.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(je){}if(D){let je=-1;return xe=xe.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(et,We,Ge){var st;return++je,kt(et,je,(st=g==null?void 0:g[je])==null?void 0:st.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Tt(xe||"")}</pre>`}let _e=Tt(xe);_e=(0,Ee.ZP)(_e);const Oe=(0,Ee.ez)();xe.match(/\[TOC\]/)&&(_e=_e.replace("<p>[TOC]</p>",(0,Ee.Qv)()),(0,Ee.Iy)()),_e=_e.replace(/(__special_katext_id_\d+__)/g,(je,et)=>{const{type:We,expression:Ge}=Oe[et];return(0,de.renderToString)(j(Ge)||"",{displayMode:We==="block",throwOnError:!1,output:"html"})}),_e=_e.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Ee.AL)();const Be=document.createElement("div");if(Be.innerHTML=_e,we)return Be.innerText;if(q){const je=q.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Le(Be,je),Be.innerHTML}return setTimeout(()=>se(),500),Be.innerHTML},[xe,q]);(0,K.useEffect)(()=>{Pe.current&&Pe.current.querySelectorAll(["input","textarea"]).forEach(Oe=>{Oe.oninput=ue,Oe.onblur=ne,Oe.onfocus=X})},[Ye]),(0,K.useEffect)(()=>{var _e,Oe,Be,je,et;if(g!=null&&g.length)try{const We=Pe.current.querySelectorAll(".edu-program-fill-score"),Ge=Pe.current.querySelectorAll('[name="edu-program-fill"]');for(const[st,Je]of Ge.entries())Je.value=((_e=g==null?void 0:g[st])==null?void 0:_e.value)||"",((Oe=g==null?void 0:g[st])==null?void 0:Oe.type)==="warning"?Je.className="program-fill-warning":((Be=g==null?void 0:g[st])==null?void 0:Be.type)==="success"?Je.className="program-fill-success":Je.className="";for(const[st,Je]of We.entries())Je.innerHTML=(je=g==null?void 0:g[st])!=null&&je.score?`${(et=g==null?void 0:g[st])==null?void 0:et.score}\u5206`:"";Ve(g)}catch(We){console.log(We,"error")}},[g]);const ue=_e=>{Ye[_e.target.dataset.id]=Ye[_e.target.dataset.id]||{},Ye[_e.target.dataset.id].value=_e.target.value,Ve([...Ye]),v(Ye,_e.target.dataset.id)},ne=_e=>{Ye[_e.target.dataset.id]=Ye[_e.target.dataset.id]||{},Ye[_e.target.dataset.id].value=_e.target.value,Ve([...Ye]),I(Ye,_e.target.dataset.id)},X=_e=>{Ye[_e.target.dataset.id]=Ye[_e.target.dataset.id]||{},Ye[_e.target.dataset.id].value=_e.target.value,Ve([...Ye]),G(Ye,_e.target.dataset.id)};function Le(_e,Oe){return _e.childNodes.forEach(Be=>{var je;if(Be.childNodes.length>0)Le(Be,Oe);else if(Be.nodeName!=="IMG")if(Be.innerHTML)Be.innerHTML=(je=Be.innerHTML)==null?void 0:je.replace(new RegExp(Oe,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const et=document.createElement("span");et.innerHTML=Be.textContent.replace(new RegExp(Oe,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Be.replaceWith(et)}})}const Pe=(0,K.useRef)();Ee.jb.WebkitLineClamp=Ne,Ne&&(W=N(N({},W),Ee.jb));function R(_e){let Oe=_e.target;if(Oe.tagName.toUpperCase()==="A"){let Be=Oe.getAttribute("href");if(Be.indexOf("office")>-1)_e.preventDefault(),Ie(Be),qe("office");else if(Be.indexOf("application/pdf")>-1)_e.preventDefault(),Ie(Be),qe("pdf");else if(Be.indexOf("text/html")>-1)_e.preventDefault(),Ie(Be),qe("html");else if(Be.startsWith("#")){_e.preventDefault();let je=document.getElementById(Be.replace("#",""));je&&je.scrollIntoView(!0)}}}const se=()=>{var _e;const Oe=(_e=Pe.current)==null?void 0:_e.querySelectorAll("video");Oe==null||Oe.forEach(Be=>{if(Be.oncontextmenu=()=>!1,Be.src.indexOf(".m3u8")>-1&&!Be.canPlayType("application/vnd.apple.mpegurl")){if(pe.ZP.isSupported()){var je=new pe.ZP;je.loadSource(Be.src),je.attachMedia(Be)}}})};(0,K.useEffect)(()=>{if(Pe.current&&St&&St.match(w)&&window.PR.prettyPrint(),Pe.current)return Pe.current.addEventListener("click",R),()=>{var _e;(_e=Pe.current)==null||_e.removeEventListener("click",R),(0,Ee.AL)(),(0,Ee.Iy)()}},[St,Pe.current,R]),(0,K.useEffect)(()=>{var _e;const Oe=Be=>{Be.preventDefault(),Be.clipboardData.setData("text",window.getSelection().toString())};return(_e=Pe.current)==null||_e.addEventListener("copy",Oe),()=>{var Be;(Be=Pe.current)==null||Be.removeEventListener("copy",Oe)}},[Pe.current]);const ve=_e=>/<style[\s\S]*?>/i.test(_e||"");return K.createElement(K.Fragment,null,we&&K.createElement("div",{ref:Pe},St),!we&&!ve(St)&&K.createElement("div",{ref:Pe,style:N({},W),className:`${Ae||""} ${F?"disabled-fill":""} markdown-body ${ht.current}`,dangerouslySetInnerHTML:{__html:St}}),!we&&ve(St)&&K.createElement(h,{html:St}),K.createElement(z.Z,{close:!0,data:De,type:De!=null&&De.length?$e:"",style:N({},P),onClose:()=>Ie("")}))}},23954:function(Nt,Qe,T){"use strict";T.d(Qe,{SV:function(){return Pe},ZP:function(){return Le}});var K=T(59301),re=T(76374);const Ee={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"]},Re={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"]},pe={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(`
`)}]},Z={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(`
`)}]},ge={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 de=T(53184),o=T.n(de),z=Object.defineProperty,M=Object.defineProperties,x=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,Y=(R,se,ve)=>se in R?z(R,se,{enumerable:!0,configurable:!0,writable:!0,value:ve}):R[se]=ve,te=(R,se)=>{for(var ve in se||(se={}))E.call(se,ve)&&Y(R,ve,se[ve]);if(h)for(var ve of h(se))b.call(se,ve)&&Y(R,ve,se[ve]);return R},L=(R,se)=>M(R,x(se)),N=(R,se,ve)=>new Promise((_e,Oe)=>{var Be=We=>{try{et(ve.next(We))}catch(Ge){Oe(Ge)}},je=We=>{try{et(ve.throw(We))}catch(Ge){Oe(Ge)}},et=We=>We.done?_e(We.value):Promise.resolve(We.value).then(Be,je);et((ve=ve.apply(R,se)).next())});const U={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"]}},ce=(R,se)=>se.map(ve=>({label:ve,kind:R.languages.CompletionItemKind.Keyword,insertText:ve})),w=R=>Object.keys(U.tables).map(se=>({label:se,kind:R.languages.CompletionItemKind.Variable,insertText:se})),j=(R,se)=>{const ve=U.tables[R];return ve?ve.map(_e=>({label:_e,kind:se.languages.CompletionItemKind.Field,insertText:_e})):[]};function ae(R,se,ve,_e,Oe){let Be=se.getWordUntilPosition(ve),je={startLineNumber:ve.lineNumber,endLineNumber:ve.lineNumber,startColumn:Be.startColumn,endColumn:Be.endColumn},et=_e.map(We=>({label:We,kind:R.languages.CompletionItemKind.Keyword,insertText:We,insertTextRules:R.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je}));return Oe.map(We=>{et.push(L(te({},We),{range:je}))}),et}var ee=R=>{U.languages.map(Oe=>(R.languages.registerDocumentFormattingEditProvider(Oe,{provideDocumentFormattingEdits(Be,je,et){return N(this,null,function*(){const We=o()(Be.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:Be.getFullModelRange(),text:We}]})}}),Oe));const se=pe.quickKey.map(Oe=>({label:Oe.label,kind:R.languages.CompletionItemKind.Method,insertText:Oe.content,insertTextRules:R.languages.CompletionItemInsertTextRule.InsertAsSnippet})),ve=Z.quickKey.map(Oe=>({label:Oe.label,kind:R.languages.CompletionItemKind.Method,insertText:Oe.content,insertTextRules:R.languages.CompletionItemInsertTextRule.InsertAsSnippet})),_e=Re.quickKey.map(Oe=>({label:Oe.label,kind:R.languages.CompletionItemKind.Method,insertText:Oe.content,insertTextRules:R.languages.CompletionItemInsertTextRule.InsertAsSnippet}));R.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Oe,Be){var je=Oe.getWordUntilPosition(Be),et={startLineNumber:Be.lineNumber,endLineNumber:Be.lineNumber,startColumn:je.startColumn,endColumn:je.endColumn},We=Oe.getLineContent(Be.lineNumber).substring(je.startColumn-2,je.endColumn);return{suggestions:[...pe.keywords.map(Ge=>({label:Ge,kind:R.languages.CompletionItemKind.Function,documentation:Ge,insertText:Ge,insertTextRules:R.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:et})),...pe.quickKey.map(Ge=>({label:Ge.label,kind:R.languages.CompletionItemKind.Function,documentation:Ge.content,insertText:We.startsWith("#")?Ge.content.replace(/#/,""):Ge.content,insertTextRules:R.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:et}))]}}}),R.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Oe,Be){var je=Oe.getWordUntilPosition(Be),et={startLineNumber:Be.lineNumber,endLineNumber:Be.lineNumber,startColumn:je.startColumn,endColumn:je.endColumn};return{suggestions:[...Ee.keywords.map(We=>({label:We,kind:R.languages.CompletionItemKind.Function,documentation:We,insertText:We,insertTextRules:R.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:et}))]}}}),R.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Oe,Be){var je=Oe.getWordUntilPosition(Be),et={startLineNumber:Be.lineNumber,endLineNumber:Be.lineNumber,startColumn:je.startColumn,endColumn:je.endColumn},We=Oe.getLineContent(Be.lineNumber).substring(je.startColumn-2,je.endColumn);return{suggestions:[...Re.keywords.map(Ge=>({label:Ge,kind:R.languages.CompletionItemKind.Function,documentation:Ge,insertText:Ge,insertTextRules:R.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:et})),...Re.quickKey.map(Ge=>({label:Ge.label,kind:R.languages.CompletionItemKind.Function,documentation:Ge.content,insertText:We.startsWith("#")?Ge.content.replace(/#/,""):Ge.content,insertTextRules:R.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:et}))]}}}),R.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Oe,Be){var je=Oe.getWordUntilPosition(Be),et={startLineNumber:Be.lineNumber,endLineNumber:Be.lineNumber,startColumn:je.startColumn,endColumn:je.endColumn},We=Oe.getLineContent(Be.lineNumber).substring(je.startColumn-2,je.endColumn);return{suggestions:[...ge.keywords.map(Ge=>({label:Ge,kind:R.languages.CompletionItemKind.Function,documentation:Ge,insertText:Ge,insertTextRules:R.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:et})),...ge.quickKey.map(Ge=>({label:Ge.label,kind:R.languages.CompletionItemKind.Function,documentation:Ge.content,insertText:We.startsWith("#")?Ge.content.replace(/#/,""):Ge.content,insertTextRules:R.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:et}))]}}}),R.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Oe,Be){var je=Oe.getWordUntilPosition(Be),et={startLineNumber:Be.lineNumber,endLineNumber:Be.lineNumber,startColumn:je.startColumn,endColumn:je.endColumn},We=Oe.getLineContent(Be.lineNumber).substring(je.startColumn-2,je.endColumn);return{suggestions:[...Z.keywords.map(Ge=>({label:Ge,kind:R.languages.CompletionItemKind.Function,documentation:Ge,insertText:Ge,insertTextRules:R.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:et})),...Z.quickKey.map(Ge=>({label:Ge.label,kind:R.languages.CompletionItemKind.Function,documentation:Ge.content,insertText:We.startsWith("#")?Ge.content.replace(/#/,""):Ge.content,insertTextRules:R.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:et}))]}}})};const oe="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ae=Object.defineProperty,we=(R,se,ve)=>se in R?Ae(R,se,{enumerable:!0,configurable:!0,writable:!0,value:ve}):R[se]=ve,Ne=(R,se,ve)=>we(R,typeof se!="symbol"?se+"":se,ve);const W=class Xo{constructor(se,ve,_e){this.placeholder=se,this.editor=ve,this.monaco=_e,ve.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Xo.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)}};Ne(W,"ID","editor.widget.placeholderHint");var q=W,D=T(96236),ie=T(8591),F=T(6848),g=T(89392),v=T(34604),I=T(56102),G=Object.defineProperty,xe=Object.defineProperties,De=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,Ye=(R,se,ve)=>se in R?G(R,se,{enumerable:!0,configurable:!0,writable:!0,value:ve}):R[se]=ve,Ve=(R,se)=>{for(var ve in se||(se={}))$e.call(se,ve)&&Ye(R,ve,se[ve]);if(Ie)for(var ve of Ie(se))qe.call(se,ve)&&Ye(R,ve,se[ve]);return R},ht=(R,se)=>xe(R,De(se)),mt=(R,se)=>{var ve={};for(var _e in R)$e.call(R,_e)&&se.indexOf(_e)<0&&(ve[_e]=R[_e]);if(R!=null&&Ie)for(var _e of Ie(R))se.indexOf(_e)<0&&qe.call(R,_e)&&(ve[_e]=R[_e]);return ve},kt=(R,se,ve)=>new Promise((_e,Oe)=>{var Be=We=>{try{et(ve.next(We))}catch(Ge){Oe(Ge)}},je=We=>{try{et(ve.throw(We))}catch(Ge){Oe(Ge)}},et=We=>We.done?_e(We.value):Promise.resolve(We.value).then(Be,je);et((ve=ve.apply(R,se)).next())});function gt(R){return/^\d+$/.test(R)?`${R}px`:R}function Tt(){}let St=!1;const ue={"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 ne(R=[]){let se=R;if(Array.isArray(R)){for(let ve=0;ve<R.length;ve++){let _e=ue[R[ve]];if(_e)return _e}return se[0]}return ue[se]||se}let X=null;var Le=R=>{var se=R,{width:ve="100%",height:_e="100%",value:Oe,language:Be="javascript",style:je={},options:et={},overrideServices:We={},theme:Ge="vs-dark",onEditBlur:st,isCopy:Je=!1,onSave:ct,autoHeight:yt=!1,forbidCopy:Lt=!1,onChange:xt=Tt,editorDidMount:bt=Tt,onFocus:Ct=Tt,onBreakPoint:y=Tt,breakPointValue:S=[],filename:rt="educoder.txt",errorLine:H,errorContent:be="",highlightLine:er,openBreakPoint:ke=!1,placeholder:Ue=""}=se,Ke=mt(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"]);const J=(0,K.useRef)(),he=(0,K.useRef)({}),Te=(0,K.useRef)(),Fe=(0,K.useRef)(),$=(0,K.useRef)([]),Et=(0,K.useRef)(!1),Se=(0,K.useRef)(),Pt=(0,K.useRef)(),jt=(0,K.useRef)(!1),[qt,gr]=(0,K.useState)(!1);function Ft(){let Xt;return J.current&&(Xt=new re.Z(Ut=>{for(let hr of Ut)(hr.target.offsetHeight>0||hr.target.offsetWidth>0)&&he.current.instance.layout()}),Xt.observe(J.current)),Xt}function zt(){ie.ZP.warning({content:decodeURIComponent(oe),key:"monaco-editor-tip"})}const fr=()=>{let Xt=he.current.instance;if(Oe!=null&&Xt&&qt){const Ut=Xt.getModel();Ut&&Oe!==Ut.getValue()&&(St=!0,Ut.setValue(Oe),Xt.layout(),St=!1)}};(0,K.useEffect)(()=>{const Xt=v.Z.subscribe("formatDocument",Ut=>{var hr;let Hr=he.current.instance;(hr=Hr==null?void 0:Hr.getAction)==null||hr.call(Hr,"editor.action.formatDocument").run()});return window.updateMonacoValue=Ut=>{xt(Ut)},Xt},[]),(0,K.useEffect)(()=>{var Xt;let Ut=he.current.instance;Fe.current&&clearTimeout(Fe.current),Fe.current=setTimeout(()=>{fr()},500),Oe&&(Oe!=null&&Oe.length)&&((Xt=Ut==null?void 0:Ut.updateOptions)==null||Xt.call(Ut,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Oe.split(/\r\n|\r|\n/g).length))+3,5)}))},[Oe,qt,he.current]),(0,K.useEffect)(()=>{if(H&&he.current&&he.current.instance){let Ut=he.current.instance;Ut.changeViewZones(function(hr){var Hr=document.createElement("div");Hr.style.padding="10px 20px",Hr.style.width="calc(100% - 20px)",Hr.className="my-error-line-wrp",Hr.innerHTML=be,hr.addZone({afterLineNumber:H||11,heightInLines:3,domNode:Hr})});var Xt={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}};Ut.addOverlayWidget(Xt),Ut.revealPositionInCenter({lineNumber:20,column:1})}},[H,he.current,qt]);const Zr=(Xt="",Ut)=>{if(!Xt||Xt.trim()==="")return!0;const Hr=he.current.instance.getModel().getLineTokens(Ut);let _r=!1;for(let nn=0;nn<2;nn++)Hr.getStandardTokenType(nn)===1&&(_r=!0);return _r};(0,K.useEffect)(()=>{var Xt;const Ut=(Xt=he.current)==null?void 0:Xt.instance;if(Ut&&qt&&Lt){const hr=Ut.onDidBlurEditorWidget(()=>{jt.current=!1}),Hr=Ut.onDidFocusEditorText(()=>{jt.current=!0});return()=>{hr.dispose(),Hr.dispose()}}},[he.current,qt,Lt]),(0,K.useEffect)(()=>{var Xt;if((Xt=he.current)!=null&&Xt.instance&&qt&&ke){let Ut=he.current.instance,hr=Ut.getModel();if(!hr)return;(()=>{var wt;let pt=[],Kt=[];const tr=hr.getAllDecorations();for(let vr of tr)vr.options.className==="highlighted-line"&&(pt.push((wt=vr==null?void 0:vr.range)==null?void 0:wt.startLineNumber),Kt.push(vr==null?void 0:vr.id));if(er===pt[0])return;hr.deltaDecorations(Kt,[]);const Zt=hr.getLineCount();er&&er<=Zt&&(Ut.deltaDecorations([],[{range:new X.Range(er,1,er,hr.getLineMaxColumn(er)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Ut.revealLineInCenter(er))})();const _r=(wt=!1)=>{var pt;let Kt=[],tr=[];const Zt=hr.getAllDecorations();for(let vr of Zt)vr.options.linesDecorationsClassName==="breakpoints-select"&&(Kt.push((pt=vr==null?void 0:vr.range)==null?void 0:pt.startLineNumber),tr.push(vr==null?void 0:vr.id));if(wt)return{lines:Kt,ids:tr};y(Kt)},nn=wt=>kt(void 0,null,function*(){let pt={range:new X.Range(wt,1,wt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield hr.deltaDecorations([],[pt]),_r()}),ri=wt=>kt(void 0,null,function*(){let pt=[];const Kt=Ut.getLineDecorations(wt);for(let tr of Kt)tr.options.linesDecorationsClassName==="breakpoints-select"&&pt.push(tr.id);yield hr.deltaDecorations(pt,[]),_r()}),qr=wt=>{let pt=Ut.getLineDecorations(wt);for(let Kt of pt)if(Kt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,g.isEqual)(S,_r(!0).lines)){hr.deltaDecorations(_r(!0).ids,[]);const wt=S.map(pt=>({range:new X.Range(pt,1,pt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));hr.deltaDecorations([],wt)}const Qt=Ut.onDidChangeModelContent(wt=>{let pt=Ut.getPosition();if(pt){let Kt=pt.lineNumber;clearTimeout(Pt.current),Pt.current=setTimeout(()=>{Zr(hr.getLineContent(Kt),Kt)?ri(Kt):qr(Kt)?(ri(Kt),nn(Kt)):_r()},100)}}),tt=Ut.onMouseDown(wt=>{var pt,Kt,tr;if(wt.target.detail&&((tr=(Kt=(pt=wt.target)==null?void 0:pt.element)==null?void 0:Kt.className)!=null&&tr.includes("line-numbers"))){let Zt=wt.target.position.lineNumber;if(Zr(hr.getLineContent(Zt),Zt))return;qr(Zt)?ri(Zt):nn(Zt)}}),Xe=wt=>{let pt={range:new X.Range(wt,1,wt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};$.current=Ut.deltaDecorations($.current,[pt])},dt=()=>{$.current=Ut.deltaDecorations($.current,[])},At=Ut.onMouseMove(wt=>{var pt,Kt,tr;if(dt(),wt.target.detail&&((tr=(Kt=(pt=wt.target)==null?void 0:pt.element)==null?void 0:Kt.className)!=null&&tr.includes("line-numbers"))){let Zt=wt.target.position.lineNumber;if(Zr(hr.getLineContent(Zt),Zt))return;Xe(Zt)}}),ut=Ut.onMouseLeave(()=>{dt()});return()=>{Qt.dispose(),tt.dispose(),At.dispose(),ut.dispose()}}},[he.current,qt,S,er,ke,Be]),(0,K.useEffect)(()=>{var Xt;(Xt=he.current)!=null&&Xt.instance&&ke&&he.current.instance.setPosition({lineNumber:0,column:0})},[er]);function un(){let Xt=he.current.instance;if(Xt){const Ut=Xt.getSelection(),hr=he.current.pastePos||{},Hr=new X.Range(hr.startLineNumber||Ut.endLineNumber,hr.startColumn||Ut.endColumn,hr.endLineNumber||Ut.endLineNumber,hr.endColumn||Ut.endColumn);setTimeout(()=>{Xt.executeEdits("",[{range:Hr,text:""}])},300)}}function $r(Xt){(window.navigator.platform.match("Mac")?Xt.metaKey:Xt.ctrlKey)&&Xt.keyCode==83&&(Xt.preventDefault(),ct())}const Ht=()=>{if(yt&&he.current.instance){const Xt=he.current.instance.getContentHeight();Fn(Xt<_e?_e:Xt)}else Fn(_e)};function ur(Xt){var Ut=document.createEvent("MouseEvents");Ut.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Xt.dispatchEvent(Ut)}const Ar=Xt=>{if(!jt.current)return;const{keyCode:Ut,ctrlKey:hr,metaKey:Hr,target:_r,type:nn}=Xt;return(nn==="paste"||(Ut===67||Ut===86)&&(Hr||hr))&&_r.nodeName==="TEXTAREA"&&(zt(),Xt.preventDefault()),!1};function Jr(Xt,Ut){var hr=window.URL||window.webkitURL||window,Hr=new Blob([Ut]),_r=document.createElementNS("http://www.w3.org/1999/xhtml","a");_r.href=hr.createObjectURL(Hr),_r.download=Xt,ur(_r)}(0,K.useEffect)(()=>{Ht()},[Ht]),(0,K.useEffect)(()=>{J.current&&!qt&&Promise.all([T.e(8909),T.e(3267)]).then(T.bind(T,71448)).then(Xt=>{try{X=Xt,he.current.instance=X.editor.create(J.current,{value:Oe,language:ne(Be),theme:Ge,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},We);const Ut=he.current.instance;let _r=[...D.BH._menuItems].find(Qt=>Qt[0]._debugName=="EditorContext")[1],nn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ri=(Qt,tt)=>{var Xe,dt;let At=Qt._first;do tt.includes((dt=(Xe=At.element)==null?void 0:Xe.command)==null?void 0:dt.id)&&Qt._remove(At);while(At=At.next)};if(bt(Ut,X),setTimeout(()=>{Ht(),he.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Jr(rt||"educoder.txt",Ut.getValue())}})},500),he.current.subscription=Ut.onDidChangeModelContent(Qt=>{Et.current?clearTimeout(Se.current):(Ht(),xt(Ut.getValue(),Qt)),Se.current=setTimeout(()=>{Et.current=!1},500)}),window.Monaco||ee(X,ne(Be)),Lt&&(ri(_r,nn),J.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Ar),window.removeEventListener("paste",Ar),window.addEventListener("keydown",Ar),window.addEventListener("paste",Ar)),window.Monaco=X,st&&Ut.onDidBlurEditorWidget(()=>{st(Ut.getValue())}),Ct&&Ut.onDidFocusEditorText(()=>{Ct(Ut.getValue())}),Lt)try{Ut.onDidPaste(Qt=>{const tt=Ut.getSelection(),Xe=he.current.pastePos||{},dt=new X.Range(Xe.startLineNumber||tt.endLineNumber,Xe.startColumn||tt.endColumn,Xe.endLineNumber||tt.endLineNumber,Xe.endColumn||tt.endColumn);Ut.executeEdits("",[{range:Qt.range,text:""}])})}catch(Qt){}let qr=Ft();return Ue&&typeof Ue=="string"&&new q(Ue,Ut,X),gr(!0),()=>{const Qt=he.current.instance;Qt.dispose();const tt=Qt.getModel();tt&&tt.dispose(),he.current.subscription&&he.current.subscription.dispose(),qr.unobserve(J.current)}}catch(Ut){}})},[]),(0,K.useEffect)(()=>{if(he.current.instance&&qt)return document.addEventListener("keydown",$r,!1),()=>{document.removeEventListener("keydown",$r)}},[ct,qt]),(0,K.useEffect)(()=>{let Xt=he.current.instance;if(Xt&&qt){let Ut=ne(Be);X.editor.setModelLanguage(Xt.getModel(),Ut)}},[Be,qt]),(0,K.useEffect)(()=>{he.current.instance&&qt&&X.editor.setTheme(Ge)},[Ge,qt]),(0,K.useEffect)(()=>{let Xt=he.current.instance;Te.current=et,Xt&&qt&&(Xt.updateOptions(Ve({},et)),setTimeout(()=>{Xt.getModel().updateOptions(Ve({},et))},200))},[JSON.stringify(et),qt]),(0,K.useEffect)(()=>{let Xt=he.current.instance;Xt&&qt&&Xt.layout()},[ve,_e,qt]);const[Qr,wn]=(0,K.useState)(gt(ve)),[Dr,Fn]=(0,K.useState)(gt(_e)),cn=ht(Ve({},je),{width:Qr,height:Dr,position:"relative"});return K.createElement("div",{className:"my-monaco-editor",ref:J,style:cn},Je&&K.createElement(I.CopyToClipboard,{text:Oe,onCopy:()=>ie.ZP.success("\u590D\u5236\u6210\u529F")},K.createElement(F.Z,{title:"\u590D\u5236\u4EE3\u7801"},K.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},K.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Pe({width:R="100%",height:se="100%",original:ve,modified:_e,language:Oe,options:Be={}}){const je=(0,K.useRef)(),[et,We]=(0,K.useState)(null);function Ge(yt){let Lt;return je.current&&(Lt=new re.Z(xt=>{for(let bt of xt)(bt.target.offsetHeight>0||bt.target.offsetWidth>0)&&yt.layout()}),Lt.observe(je.current)),Lt}(0,K.useEffect)(()=>(je.current&&Promise.all([T.e(8909),T.e(9404)]).then(T.bind(T,2550)).then(yt=>{X=yt;const Lt=X.editor.createDiffEditor(je.current,ht(Ve({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},Be),{wordWrap:!0}));We(Lt);let xt=Ge(Lt);return()=>{Lt.dispose();const bt=Lt.getModel();bt&&bt.dispose(),xt.unobserve(je.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,K.useEffect)(()=>{et&&et.setModel({original:X.editor.createModel(ve,Oe),modified:X.editor.createModel(_e,Oe)})},[ve,_e,Oe,et]);const st=gt(R),Je=gt(se),ct={width:st,height:Je};return K.createElement("div",{className:"my-diff-editor",ref:je,style:ct})}},59325:function(Nt,Qe,T){"use strict";T.r(Qe),T.d(Qe,{checkedOtherName:function(){return F},default:function(){return I}});var K=T(59301),re=T(89070),Ee=T(66104),Re=T(95237),pe=T(43604),Z=T(6848),ge=T(3113),de={flex_box_center:"flex_box_center___tqZ7e",flex_space_between:"flex_space_between___YGpCP",flex_box_vertical_center:"flex_box_vertical_center___Wmc_H",flex_box_center_end:"flex_box_center_end___l9uLj",flex_box_column:"flex_box_column___lreJD",bg:"bg___pULYP",title:"title___CjRMT",description:"description___al0Mz",heji:"heji___p7O5o",heji_count:"heji_count___HQtue",answerWrap:"answerWrap___x_ft0",answerSubjective:"answerSubjective___r3Y8p",questionItem:"questionItem___BPWS5",title_timu:"title_timu___qwfEo",header_title:"header_title___ZnddW",user_info:"user_info___de4hX",user_img:"user_img___QZ_H_",header_content:"header_content___FrUxK",header_content_name:"header_content_name___IsldV",header_img:"header_img___J2UF5",footer_before:"footer_before___nGCbx",footer:"footer___r3KRR",footer_button:"footer_button___nylsw",button_style:"button_style___NqMF2"},o=T(92365),z=T(24065),M=T(5112),x=T(92832),E=({itemData:G,answerData:xe,onSave:De=()=>{}})=>{var Ie,$e,qe,Ye;const[Ve,ht]=(0,K.useState)([]),[mt,kt]=(0,K.useState)(),[gt,Tt]=(0,K.useState)();(0,K.useEffect)(()=>{var ne;ht(((ne=G==null?void 0:G.question)==null?void 0:ne.answers)||[])},[(Ie=G==null?void 0:G.question)==null?void 0:Ie.answers]),(0,K.useEffect)(()=>{var ne,X;kt((X=(ne=G==null?void 0:G.question)==null?void 0:ne.poll_answer_ids)==null?void 0:X[0])},[($e=G==null?void 0:G.question)==null?void 0:$e.poll_answer_ids]),(0,K.useEffect)(()=>{var ne;Tt((ne=G==null?void 0:G.question)==null?void 0:ne.poll_vote_texts)},[(qe=G==null?void 0:G.question)==null?void 0:qe.poll_vote_texts]);const St=(ne,X)=>{var Le;kt(ne);const Pe=(Le=Ve.find(R=>F(R.answer_text)))==null?void 0:Le.answer_id;ne===Pe?De(X,ne,gt):De(X,ne,"")},ue=ne=>{var X;if(!mt)return;const Le=(X=Ve.find(Pe=>F(Pe.answer_text)))==null?void 0:X.answer_id;mt===Le?De(ne,mt,gt):De(ne,mt,"")};return K.createElement(M.ZP.Group,{disabled:(0,z.GJ)()||(0,z.dE)()&&((Ye=xe==null?void 0:xe.poll)==null?void 0:Ye.user_poll_status)===1,value:mt,onChange:ne=>{var X;St(ne.target.value,(X=G==null?void 0:G.question)==null?void 0:X.id)}},Ve.map((ne,X)=>{var Le;return K.createElement("div",{className:`${de.answerWrap} ${de.flexRow}`,key:X},K.createElement(M.ZP,{value:ne==null?void 0:ne.answer_id},ne==null?void 0:ne.answer_text),F(ne==null?void 0:ne.answer_text)&&(ne==null?void 0:ne.answer_id)==mt&&K.createElement("div",{style:{marginTop:"10px"}},K.createElement(x.default.TextArea,{disabled:(0,z.GJ)()||(0,z.dE)()&&((Le=xe==null?void 0:xe.poll)==null?void 0:Le.user_poll_status)===1,className:de.otherInput,value:gt,onChange:Pe=>Tt(Pe.target.value),onBlur:Pe=>{var R;return ue((R=G==null?void 0:G.question)==null?void 0:R.id)}})))}))},b=T(24905),te=({itemData:G,answerData:xe,onSave:De=()=>{}})=>{var Ie,$e,qe,Ye;const[Ve,ht]=(0,K.useState)([]),[mt,kt]=(0,K.useState)(),[gt,Tt]=(0,K.useState)();(0,K.useEffect)(()=>{var ne;ht(((ne=G==null?void 0:G.question)==null?void 0:ne.answers)||[])},[(Ie=G==null?void 0:G.question)==null?void 0:Ie.answers]),(0,K.useEffect)(()=>{var ne;kt((ne=G==null?void 0:G.question)==null?void 0:ne.poll_answer_ids)},[($e=G==null?void 0:G.question)==null?void 0:$e.poll_answer_ids]),(0,K.useEffect)(()=>{var ne;Tt((ne=G==null?void 0:G.question)==null?void 0:ne.poll_vote_texts)},[(qe=G==null?void 0:G.question)==null?void 0:qe.poll_vote_texts]);const St=(ne,X)=>{var Le;kt(ne);const Pe=(Le=Ve.find(R=>F(R.answer_text)))==null?void 0:Le.answer_id;ne.includes(Pe)?De(X,ne,gt):De(X,ne,"")},ue=ne=>{var X;if(!(mt!=null&&mt.length))return;const Le=(X=Ve.find(Pe=>F(Pe.answer_text)))==null?void 0:X.answer_id;mt.includes(Le)?De(ne,mt,gt):De(ne,mt,"")};return K.createElement(b.default.Group,{style:{display:"block"},disabled:(0,z.GJ)()||(0,z.dE)()&&((Ye=xe==null?void 0:xe.poll)==null?void 0:Ye.user_poll_status)===1,value:mt,onChange:ne=>{var X;St(ne,(X=G==null?void 0:G.question)==null?void 0:X.id)}},Ve==null?void 0:Ve.map((ne,X)=>{var Le;return K.createElement("div",{className:`${de.answerWrap} ${de.flexRow}`},K.createElement(b.default,{value:ne==null?void 0:ne.answer_id},ne==null?void 0:ne.answer_text),F(ne==null?void 0:ne.answer_text)&&(mt==null?void 0:mt.includes(ne==null?void 0:ne.answer_id))&&K.createElement("div",{style:{marginTop:"10px"}},K.createElement(x.default.TextArea,{disabled:(0,z.GJ)()||(0,z.dE)()&&((Le=xe==null?void 0:xe.poll)==null?void 0:Le.user_poll_status)===1,className:de.otherInput,value:gt,onChange:Pe=>Tt(Pe.target.value),onBlur:Pe=>{var R;return ue((R=G==null?void 0:G.question)==null?void 0:R.id)}})))}))},N=({itemData:G,answerData:xe,onSave:De=()=>{}})=>{var Ie,$e;const[qe,Ye]=(0,K.useState)();return(0,K.useEffect)(()=>{var Ve;Ye((Ve=G==null?void 0:G.question)==null?void 0:Ve.poll_vote_texts)},[(Ie=G==null?void 0:G.question)==null?void 0:Ie.poll_vote_texts]),K.createElement("div",null,K.createElement("textarea",{className:de.answerSubjective,placeholder:"\u5728\u6B64\u586B\u5165\u7B54\u6848",disabled:(0,z.GJ)()||(0,z.dE)()&&(($e=xe==null?void 0:xe.poll)==null?void 0:$e.user_poll_status)===1,value:qe,onChange:Ve=>Ye(Ve.target.value),onBlur:Ve=>{var ht;return De((ht=G==null?void 0:G.question)==null?void 0:ht.id,null,qe)}}))},U=T(85149),ce=T(27812),w="data:image/png;base64,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",j=T(3294),ae=T(61186),ee=T.n(ae),oe=T(59301),Ae=Object.defineProperty,we=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,P=(G,xe,De)=>xe in G?Ae(G,xe,{enumerable:!0,configurable:!0,writable:!0,value:De}):G[xe]=De,q=(G,xe)=>{for(var De in xe||(xe={}))Ne.call(xe,De)&&P(G,De,xe[De]);if(we)for(var De of we(xe))W.call(xe,De)&&P(G,De,xe[De]);return G},D=(G,xe)=>{var De={};for(var Ie in G)Ne.call(G,Ie)&&xe.indexOf(Ie)<0&&(De[Ie]=G[Ie]);if(G!=null&&we)for(var Ie of we(G))xe.indexOf(Ie)<0&&W.call(G,Ie)&&(De[Ie]=G[Ie]);return De},ie=(G,xe,De)=>new Promise((Ie,$e)=>{var qe=ht=>{try{Ve(De.next(ht))}catch(mt){$e(mt)}},Ye=ht=>{try{Ve(De.throw(ht))}catch(mt){$e(mt)}},Ve=ht=>ht.done?Ie(ht.value):Promise.resolve(ht.value).then(qe,Ye);Ve((De=De.apply(G,xe)).next())});const F=G=>G==="\u5176\u4ED6"||G==="\u5176\u5B83",g={1:"\u5355\u9009",2:"\u591A\u9009",3:"\u95EE\u7B54"},v=G=>{var xe=G,{globalSetting:De,loading:Ie,user:$e,dispatch:qe}=xe,Ye=D(xe,["globalSetting","loading","user","dispatch"]),Ve,ht,mt,kt,gt,Tt,St,ue,ne,X,Le,Pe,R,se,ve,_e,Oe,Be,je,et,We,Ge;const st=(0,re.useParams)(),[Je,ct]=(0,K.useState)({}),[yt]=(0,re.useSearchParams)();(0,K.useEffect)(()=>{Lt()},[st]),(0,K.useEffect)(()=>(qe({type:"globalSetting/footerToggle",payload:!1}),()=>{qe({type:"globalSetting/footerToggle",payload:!0})}),[]);const Lt=()=>ie(void 0,null,function*(){var bt;localStorage.getItem("courseGroupIds")!="undefined"?st.course_group_ids=((bt=JSON.parse(localStorage.getItem("courseGroupIds")))==null?void 0:bt[0])=="all"?"all":JSON.parse(localStorage.getItem("courseGroupIds")):st.course_group_ids="all";const Ct=yield(0,o.i7)(q({},st));Ct&&ct(Ct)}),xt=(bt,Ct,y)=>ie(void 0,null,function*(){if(!bt){console.error("handleSave no questionId params");return}const S=yield(0,o.ID)({questionId:bt,poll_answer_id:Ct,vote_text:y});S!=null&&S.poll_vote&&(Je.question_answered.find(rt=>rt.ques_id===bt).ques_status=S.poll_vote.question_status,ct(q({},Je)))});return oe.createElement("div",null,oe.createElement("section",{className:"edu-container"},oe.createElement("section",{className:"animated fadeIn"},oe.createElement("aside",{className:"mt10"},oe.createElement(Ee.Z,{separator:">"},oe.createElement(Ee.Z.Item,null,oe.createElement(re.Link,{to:`/classrooms/${st.coursesId}/poll/0`},(Ve=Je==null?void 0:Je.course)==null?void 0:Ve.name)),oe.createElement(Ee.Z.Item,null,oe.createElement(re.Link,{to:`/classrooms/${st.coursesId}/poll/0`},"\u95EE\u5377")),oe.createElement(Ee.Z.Item,null,oe.createElement(re.Link,{to:`/classrooms/${st.coursesId}/poll/${st.categoryId}/detail?tabs=0`},"\u95EE\u5377\u8BE6\u60C5")),oe.createElement(Ee.Z.Item,null,(ht=Je==null?void 0:Je.poll)==null?void 0:ht.real_name))),oe.createElement("aside",{className:[de.title,"mt20 mb20"].join(" ")},oe.createElement(Re.Z,{style:{width:"100%"}},oe.createElement(pe.Z,{flex:"1",style:{display:"flex"}},oe.createElement(re.Link,{to:`/classrooms/${st.coursesId}/poll/${st.categoryId}/detail`},oe.createElement(ce.Z,{className:"font16 c-black"})),oe.createElement("div",{className:de.header_title},(mt=Je==null?void 0:Je.poll)==null?void 0:mt.polls_name)),oe.createElement(pe.Z,null)))),oe.createElement("div",{className:de.user_info},oe.createElement("img",{src:`${j.Z.IMG_SERVER}/images/${(kt=Je==null?void 0:Je.poll)==null?void 0:kt.avatar_url}`,className:de.user_img}),oe.createElement("div",{className:de.header_content},oe.createElement("div",{className:de.header_content_name},(gt=Je==null?void 0:Je.poll)==null?void 0:gt.real_name),oe.createElement("div",null,"\u5B66\u53F7 ",(Tt=Je==null?void 0:Je.poll)==null?void 0:Tt.student_id)),oe.createElement("div",{className:de.header_content},oe.createElement("div",{className:de.header_content_name}),oe.createElement("div",null,"\u5206\u73ED ",(St=Je==null?void 0:Je.poll)==null?void 0:St.course_group_name)),oe.createElement("div",{className:de.header_content},oe.createElement("div",{className:de.header_content_name}),oe.createElement("div",null,"\u63D0\u4EA4\u65F6\u95F4 ",ee()((ue=Je==null?void 0:Je.poll)==null?void 0:ue.end_at).format("YYYY-MM-DD HH:mm:ss"))),oe.createElement("img",{src:w,className:de.header_img})),oe.createElement("aside",{className:"bg-white pl30 pr30 pt20 pb20 mt10"},oe.createElement("div",{className:de.title},(ne=Je==null?void 0:Je.poll)==null?void 0:ne.polls_name),((X=Je==null?void 0:Je.poll)==null?void 0:X.polls_description)&&oe.createElement(U.Z,{value:((Le=Je==null?void 0:Je.poll)==null?void 0:Le.polls_description)||"",className:de.description}),((Pe=Je==null?void 0:Je.question_types)==null?void 0:Pe.q_counts)>0&&oe.createElement("div",{className:de.heji},oe.createElement("span",null," \u7EDF\u8BA1 ",oe.createElement("span",{className:de.heji_count},"\u3010\u603B\u5171 ",(R=Je==null?void 0:Je.question_types)==null?void 0:R.q_counts," \u9898\u3011")),((se=Je==null?void 0:Je.question_types)==null?void 0:se.q_mains)>0&&oe.createElement("span",{className:"ml10"},"\u4E3B\u89C2\u9898\uFF1A",oe.createElement("span",{className:de.heji_count}," ",(ve=Je==null?void 0:Je.question_types)==null?void 0:ve.q_mains," \u9898")),((_e=Je==null?void 0:Je.question_types)==null?void 0:_e.q_singles)>0&&oe.createElement("span",{className:"ml10"},"\u5355\u9009\u9898\uFF1A",oe.createElement("span",{className:de.heji_count}," ",(Oe=Je==null?void 0:Je.question_types)==null?void 0:Oe.q_singles," \u9898")),((Be=Je==null?void 0:Je.question_types)==null?void 0:Be.q_doubles)>0&&oe.createElement("span",{className:"ml10"},"\u591A\u9009\u9898\uFF1A",oe.createElement("span",{className:de.heji_count},(je=Je==null?void 0:Je.question_types)==null?void 0:je.q_doubles," \u9898")))),oe.createElement("section",{style:{width:1200},className:[de.bg,"pt30","pl30","pr30","pb30","mt10","mb50"].join(" ")},oe.createElement("div",null,(et=Je==null?void 0:Je.questions)==null?void 0:et.map((bt,Ct)=>{var y,S,rt,H,be;return oe.createElement("div",{className:de.questionItem,id:`Anchor_${Ct}`},oe.createElement("div",{className:"mt20"},oe.createElement("span",{className:"font16",style:{display:"flex",alignItems:"center",marginBottom:"20px"}},((y=bt==null?void 0:bt.question)==null?void 0:y.is_necessary)!==0&&oe.createElement("span",{style:{color:"red",fontSize:"14px"}},"*"),oe.createElement("span",{className:"c-blue font16"},"\u3010",g[bt.question.question_type],"\u3011"),oe.createElement(Z.Z,{title:bt.question.question_title},oe.createElement("div",{className:de.title_timu},(S=bt==null?void 0:bt.question)==null?void 0:S.question_number,"\u3001",bt.question.question_title)),bt.question.question_type===2&&((rt=bt==null?void 0:bt.question)==null?void 0:rt.min_choices)&&oe.createElement("div",{className:"ml10",style:{fontWeight:400,color:"#666666"}},"(\u53EF\u9009",(H=bt==null?void 0:bt.question)==null?void 0:H.min_choices,"-",(be=bt==null?void 0:bt.question)==null?void 0:be.max_choices,"\u9879)"))),bt.question.question_type==1&&oe.createElement(E,{answerData:Je,itemData:bt,onSave:xt}),bt.question.question_type==2&&oe.createElement(te,{answerData:Je,itemData:bt,onSave:xt}),bt.question.question_type==3&&oe.createElement(N,{answerData:Je,itemData:bt,onSave:xt}))})))),oe.createElement("div",{className:de.footer_before}),oe.createElement("div",{className:de.footer},oe.createElement("div",{className:de.footer_button},oe.createElement("section",{className:de.bg,style:{display:"flex"}},oe.createElement("div",{className:de.button_style,onClick:()=>{re.history.push(`/classrooms/${st.coursesId}/poll/${st.categoryId}/detail?tabs=0`)}},"\u8FD4\u56DE\u5217\u8868")),oe.createElement("div",{style:{marginLeft:"auto"}},yt.get("type")=="teacher"&&((We=Je==null?void 0:Je.poll)==null?void 0:We.pre_login)&&oe.createElement(ge.ZP,{type:"primary",onClick:()=>{var bt;re.history.push(`/classrooms/${st.coursesId}/poll/${st.categoryId}/questionnaireInfo/${(bt=Je==null?void 0:Je.poll)==null?void 0:bt.pre_login}?type=teacher`)},style:{background:"#ffffff",color:"#343636",border:"1px #eeeeee solid"}},"\u4E0A\u4E00\u4E2A"),yt.get("type")=="teacher"&&((Ge=Je==null?void 0:Je.poll)==null?void 0:Ge.next_login)&&oe.createElement(ge.ZP,{type:"primary",onClick:()=>{var bt;re.history.push(`/classrooms/${st.coursesId}/poll/${st.categoryId}/questionnaireInfo/${(bt=Je==null?void 0:Je.poll)==null?void 0:bt.next_login}?type=teacher`)},style:{marginLeft:"20px"}},"\u4E0B\u4E00\u4E2A")))))};var I=(0,re.connect)(({loading:G,user:xe,globalSetting:De})=>({globalSetting:De,user:xe,loading:G.effects}))(v)},24768:function(Nt,Qe,T){"use strict";T.d(Qe,{AL:function(){return ce},Iy:function(){return M},Qv:function(){return E},ez:function(){return U},jb:function(){return x}});var K=T(32834),re=T.n(K),Ee=T(11690),Re=T.n(Ee);let pe=1;function Z(oe,Ae){const we=oe.match(/^(\s+)(?:```)/);if(we===null)return Ae;const Ne=we[1];return Ae.split(`
`).map(W=>{const P=W.match(/^\s+/);if(P===null)return W;const[q]=P;return q.length>=Ne.length?W.slice(Ne.length):W}).join(`
`)}let ge=[],de=["<ul>"];const o=new(re()).Renderer,z=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function M(){ge.length=0,de=["<ul>"]}const x={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function h(oe,Ae,we,Ne){if(Ae>=oe.length||oe[Ae].level<=we)return Ae;var W=oe[Ae];Ne.push("<li><a href='#"+pe+W.anchor+"'>"+W.text+"</a>"),Ae++;var P=[];return Ae=h(oe,Ae,W.level,P),P.length>0&&(Ne.push("<ul>"),P.forEach(function(q){Ne.push(q)}),Ne.push("</ul>")),Ne.push("</li>"),Ae=h(oe,Ae,we,Ne),Ae}function E(){return h(ge,0,0,de),de.push("</ul>"),de.join("")}const b={heading(oe){const Ae=z.exec(oe);if(pe+=1,Ae)return{type:"heading",raw:Ae[0],depth:Ae[1].length,text:Ae[2]}},fences(oe){const Ae=this.rules.block.fences.exec(oe);if(Ae){const we=Ae[0];let Ne=Z(we,Ae[3]||"");const W=Ae[2]?Ae[2].trim():Ae[2];if(["latex","katex","math"].indexOf(W)>=0){const P=L(),q=Ne;Ne=P,N[P]={type:"block",expression:q}}return{type:"code",raw:we,lang:W,text:Ne}}}},Y=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let te=0;const L=()=>`__special_katext_id_${te++}__`;let N={};function U(){return N}function ce(){te=0,N={}}function w(oe){return oe=oe.replace(Y,(Ae,we)=>{const Ne=L();return N[Ne]={type:"inline",expression:we},Ne}),oe}const j=o.listitem;o.listitem=function(oe){return j(w(oe))};const ae=o.paragraph;o.paragraph=function(oe){return ae(w(oe))};const ee=o.tablecell;o.tablecell=function(oe,Ae){return ee(w(oe),Ae)},o.code=function(oe,Ae,we){const Ne=(Ae||"").match(/\S*/)[0];return Ne?["latex","katex","math"].indexOf(Ne)>=0?`<p class='editormd-tex'>${oe}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ae}">${we?oe:(0,Ee.escape)(oe,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(we?oe:(0,Ee.escape)(oe,!0))+"</code></pre>"},o.heading=function(oe,Ae,we){let Ne=this.options.headerPrefix+we.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ge.push({anchor:Ne,level:Ae,text:oe}),"<h"+Ae+' id="'+pe+Ne+'">'+oe+"</h"+Ae+">"},re().setOptions({silent:!0,gfm:!0,pedantic:!1}),re().use({tokenizer:b,renderer:o}),Qe.ZP=re()},36785:function(Nt,Qe,T){"use strict";T.d(Qe,{o2:function(){return pe},yT:function(){return Z}});var K=T(19127),re=T(33166);const Ee=re.i.map(ge=>`${ge}-inverse`),Re=["success","processing","error","default","warning"];function pe(ge){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,K.Z)(Ee),(0,K.Z)(re.i)).includes(ge):re.i.includes(ge)}function Z(ge){return Re.includes(ge)}},79676:function(Nt,Qe,T){"use strict";T.d(Qe,{Z:function(){return Z}});var K=T(19447);function re(ge,de,o,z){if(z===!1)return{adjustX:!1,adjustY:!1};const M=z&&typeof z=="object"?z:{},x={};switch(ge){case"top":case"bottom":x.shiftX=de.dropdownArrowOffset*2+o;break;case"left":case"right":x.shiftY=de.dropdownArrowOffsetVertical*2+o;break}const h=Object.assign(Object.assign({},x),M);return h.shiftX||(h.adjustX=!0),h.shiftY||(h.adjustY=!0),h}const Ee={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"]}},Re={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"]}},pe=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Z(ge){const{arrowWidth:de,autoAdjustOverflow:o,arrowPointAtCenter:z,offset:M,borderRadius:x,visibleFirst:h}=ge,E=de/2,b={};return Object.keys(Ee).forEach(Y=>{const te=z&&Re[Y]||Ee[Y],L=Object.assign(Object.assign({},te),{offset:[0,0]});switch(b[Y]=L,pe.has(Y)&&(L.autoArrow=!1),Y){case"top":case"topLeft":case"topRight":L.offset[1]=-E-M;break;case"bottom":case"bottomLeft":case"bottomRight":L.offset[1]=E+M;break;case"left":case"leftTop":case"leftBottom":L.offset[0]=-E-M;break;case"right":case"rightTop":case"rightBottom":L.offset[0]=E+M;break}const N=(0,K.fS)({contentRadius:x,limitVerticalRadius:!0});if(z)switch(Y){case"topLeft":case"bottomLeft":L.offset[0]=-N.dropdownArrowOffset-E;break;case"topRight":case"bottomRight":L.offset[0]=N.dropdownArrowOffset+E;break;case"leftTop":case"rightTop":L.offset[1]=-N.dropdownArrowOffset-E;break;case"leftBottom":case"rightBottom":L.offset[1]=N.dropdownArrowOffset+E;break}L.overflow=re(Y,N,de,o),h&&(L.htmlRegion="visibleFirst")}),b}},19080:function(Nt,Qe,T){"use strict";T.d(Qe,{F:function(){return pe},Z:function(){return Re}});var K=T(92310),re=T.n(K);const Ee=null;function Re(Z,ge,de){return re()({[`${Z}-status-success`]:ge==="success",[`${Z}-status-warning`]:ge==="warning",[`${Z}-status-error`]:ge==="error",[`${Z}-status-validating`]:ge==="validating",[`${Z}-has-feedback`]:de})}const pe=(Z,ge)=>ge||Z},66104:function(Nt,Qe,T){"use strict";T.d(Qe,{Z:function(){return q}});var K=T(92310),re=T.n(K),Ee=T(11592),Re=T(26112),pe=T(59301),Z=T(92343),ge=T(36355),de=T(84105),o=T(91857);const z=D=>{let{children:ie}=D;const{getPrefixCls:F}=pe.useContext(ge.E_),g=F("breadcrumb");return pe.createElement("li",{className:`${g}-separator`,"aria-hidden":"true"},ie===""?ie:ie||"/")};z.__ANT_BREADCRUMB_SEPARATOR=!0;var M=z,x=function(D,ie){var F={};for(var g in D)Object.prototype.hasOwnProperty.call(D,g)&&ie.indexOf(g)<0&&(F[g]=D[g]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,g=Object.getOwnPropertySymbols(D);v<g.length;v++)ie.indexOf(g[v])<0&&Object.prototype.propertyIsEnumerable.call(D,g[v])&&(F[g[v]]=D[g[v]]);return F};function h(D,ie){if(D.title===void 0||D.title===null)return null;const F=Object.keys(ie).join("|");return typeof D.title=="object"?D.title:String(D.title).replace(new RegExp(`:(${F})`,"g"),(g,v)=>ie[v]||g)}function E(D,ie,F,g){if(F==null)return null;const{className:v,onClick:I}=ie,G=x(ie,["className","onClick"]),xe=Object.assign(Object.assign({},(0,Re.Z)(G,{data:!0,aria:!0})),{onClick:I});return g!==void 0?pe.createElement("a",Object.assign({},xe,{className:re()(`${D}-link`,v),href:g}),F):pe.createElement("span",Object.assign({},xe,{className:re()(`${D}-link`,v)}),F)}function b(D,ie){return(g,v,I,G,xe)=>{if(ie)return ie(g,v,I,G);const De=h(g,v);return E(D,g,De,xe)}}var Y=function(D,ie){var F={};for(var g in D)Object.prototype.hasOwnProperty.call(D,g)&&ie.indexOf(g)<0&&(F[g]=D[g]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,g=Object.getOwnPropertySymbols(D);v<g.length;v++)ie.indexOf(g[v])<0&&Object.prototype.propertyIsEnumerable.call(D,g[v])&&(F[g[v]]=D[g[v]]);return F};const te=D=>{const{prefixCls:ie,separator:F="/",children:g,menu:v,overlay:I,dropdownProps:G,href:xe}=D,Ie=($e=>{if(v||I){const qe=Object.assign({},G);if(v){const Ye=v||{},{items:Ve}=Ye,ht=Y(Ye,["items"]);qe.menu=Object.assign(Object.assign({},ht),{items:Ve==null?void 0:Ve.map((mt,kt)=>{var{key:gt,title:Tt,label:St,path:ue}=mt,ne=Y(mt,["key","title","label","path"]);let X=St!=null?St:Tt;return ue&&(X=pe.createElement("a",{href:`${xe}${ue}`},X)),Object.assign(Object.assign({},ne),{key:gt!=null?gt:kt,label:X})})})}else I&&(qe.overlay=I);return pe.createElement(o.Z,Object.assign({placement:"bottom"},qe),pe.createElement("span",{className:`${ie}-overlay-link`},$e,pe.createElement(de.Z,null)))}return $e})(g);return Ie!=null?pe.createElement(pe.Fragment,null,pe.createElement("li",null,Ie),F&&pe.createElement(M,null,F)):null},L=D=>{const{prefixCls:ie,children:F,href:g}=D,v=Y(D,["prefixCls","children","href"]),{getPrefixCls:I}=pe.useContext(ge.E_),G=I("breadcrumb",ie);return pe.createElement(te,Object.assign({},v,{prefixCls:G}),E(G,v,F,g))};L.__ANT_BREADCRUMB_ITEM=!0;var N=L,U=T(17313),ce=T(83116),w=T(37613);const j=D=>{const{componentCls:ie,iconCls:F}=D;return{[ie]:Object.assign(Object.assign({},(0,U.Wf)(D)),{color:D.itemColor,fontSize:D.fontSize,[F]:{fontSize:D.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:D.linkColor,transition:`color ${D.motionDurationMid}`,padding:`0 ${D.paddingXXS}px`,borderRadius:D.borderRadiusSM,height:D.lineHeight*D.fontSize,display:"inline-block",marginInline:-D.marginXXS,"&:hover":{color:D.linkHoverColor,backgroundColor:D.colorBgTextHover}},(0,U.Qy)(D)),"li:last-child":{color:D.lastItemColor},[`${ie}-separator`]:{marginInline:D.separatorMargin,color:D.separatorColor},[`${ie}-link`]:{[`
> ${F} + span,
> ${F} + a
`]:{marginInlineStart:D.marginXXS}},[`${ie}-overlay-link`]:{borderRadius:D.borderRadiusSM,height:D.lineHeight*D.fontSize,display:"inline-block",padding:`0 ${D.paddingXXS}px`,marginInline:-D.marginXXS,[`> ${F}`]:{marginInlineStart:D.marginXXS,fontSize:D.fontSizeIcon},"&:hover":{color:D.linkHoverColor,backgroundColor:D.colorBgTextHover,a:{color:D.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${D.componentCls}-rtl`]:{direction:"rtl"}})}};var ae=(0,ce.Z)("Breadcrumb",D=>{const ie=(0,w.TS)(D,{});return[j(ie)]},D=>({itemColor:D.colorTextDescription,lastItemColor:D.colorText,iconFontSize:D.fontSize,linkColor:D.colorTextDescription,linkHoverColor:D.colorText,separatorColor:D.colorTextDescription,separatorMargin:D.marginXS})),ee=function(D,ie){var F={};for(var g in D)Object.prototype.hasOwnProperty.call(D,g)&&ie.indexOf(g)<0&&(F[g]=D[g]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,g=Object.getOwnPropertySymbols(D);v<g.length;v++)ie.indexOf(g[v])<0&&Object.prototype.propertyIsEnumerable.call(D,g[v])&&(F[g[v]]=D[g[v]]);return F};function oe(D){const{breadcrumbName:ie,children:F}=D,g=ee(D,["breadcrumbName","children"]),v=Object.assign({title:ie},g);return F&&(v.menu={items:F.map(I=>{var{breadcrumbName:G}=I,xe=ee(I,["breadcrumbName"]);return Object.assign(Object.assign({},xe),{title:G})})}),v}function Ae(D,ie){return(0,pe.useMemo)(()=>D||(ie?ie.map(oe):null),[D,ie])}var we=function(D,ie){var F={};for(var g in D)Object.prototype.hasOwnProperty.call(D,g)&&ie.indexOf(g)<0&&(F[g]=D[g]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,g=Object.getOwnPropertySymbols(D);v<g.length;v++)ie.indexOf(g[v])<0&&Object.prototype.propertyIsEnumerable.call(D,g[v])&&(F[g[v]]=D[g[v]]);return F};const Ne=(D,ie)=>{if(ie===void 0)return ie;let F=(ie||"").replace(/^\//,"");return Object.keys(D).forEach(g=>{F=F.replace(`:${g}`,D[g])}),F},W=D=>{const{prefixCls:ie,separator:F="/",style:g,className:v,rootClassName:I,routes:G,items:xe,children:De,itemRender:Ie,params:$e={}}=D,qe=we(D,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Ye,direction:Ve,breadcrumb:ht}=pe.useContext(ge.E_);let mt;const kt=Ye("breadcrumb",ie),[gt,Tt]=ae(kt),St=Ae(xe,G),ue=b(kt,Ie);if(St&&St.length>0){const Le=[],Pe=xe||G;mt=St.map((R,se)=>{const{path:ve,key:_e,type:Oe,menu:Be,overlay:je,onClick:et,className:We,separator:Ge,dropdownProps:st}=R,Je=Ne($e,ve);Je!==void 0&&Le.push(Je);const ct=_e!=null?_e:se;if(Oe==="separator")return pe.createElement(M,{key:ct},Ge);const yt={},Lt=se===St.length-1;Be?yt.menu=Be:je&&(yt.overlay=je);let{href:xt}=R;return Le.length&&Je!==void 0&&(xt=`#/${Le.join("/")}`),pe.createElement(te,Object.assign({key:ct},yt,(0,Re.Z)(R,{data:!0,aria:!0}),{className:We,dropdownProps:st,href:xt,separator:Lt?"":F,onClick:et,prefixCls:kt}),ue(R,$e,Pe,Le,xt))})}else if(De){const Le=(0,Ee.Z)(De).length;mt=(0,Ee.Z)(De).map((Pe,R)=>{if(!Pe)return Pe;const se=R===Le-1;return(0,Z.Tm)(Pe,{separator:se?"":F,key:R})})}const ne=re()(kt,ht==null?void 0:ht.className,{[`${kt}-rtl`]:Ve==="rtl"},v,I,Tt),X=Object.assign(Object.assign({},ht==null?void 0:ht.style),g);return gt(pe.createElement("nav",Object.assign({className:ne,style:X},qe),pe.createElement("ol",null,mt)))};W.Item=N,W.Separator=M;var P=W,q=P},24905:function(Nt,Qe,T){"use strict";T.d(Qe,{default:function(){return ae}});var K=T(92310),re=T.n(K),Ee=T(5630),Re=T(59301),pe=T(36355),Z=T(1684),ge=T(32441),o=Re.createContext(null),z=T(98447),M=T(14088),x=T(4572),h=function(ee,oe){var Ae={};for(var we in ee)Object.prototype.hasOwnProperty.call(ee,we)&&oe.indexOf(we)<0&&(Ae[we]=ee[we]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,we=Object.getOwnPropertySymbols(ee);Ne<we.length;Ne++)oe.indexOf(we[Ne])<0&&Object.prototype.propertyIsEnumerable.call(ee,we[Ne])&&(Ae[we[Ne]]=ee[we[Ne]]);return Ae};const E=(ee,oe)=>{var Ae;const{prefixCls:we,className:Ne,rootClassName:W,children:P,indeterminate:q=!1,style:D,onMouseEnter:ie,onMouseLeave:F,skipGroup:g=!1,disabled:v}=ee,I=h(ee,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:G,direction:xe,checkbox:De}=Re.useContext(pe.E_),Ie=Re.useContext(o),{isFormItemInput:$e}=Re.useContext(ge.aM),qe=Re.useContext(Z.Z),Ye=(Ae=(Ie==null?void 0:Ie.disabled)||v)!==null&&Ae!==void 0?Ae:qe,Ve=Re.useRef(I.value);Re.useEffect(()=>{Ie==null||Ie.registerValue(I.value)},[]),Re.useEffect(()=>{if(!g)return I.value!==Ve.current&&(Ie==null||Ie.cancelValue(Ve.current),Ie==null||Ie.registerValue(I.value),Ve.current=I.value),()=>Ie==null?void 0:Ie.cancelValue(I.value)},[I.value]);const ht=G("checkbox",we),[mt,kt]=(0,z.ZP)(ht),gt=Object.assign({},I);Ie&&!g&&(gt.onChange=function(){I.onChange&&I.onChange.apply(I,arguments),Ie.toggleOption&&Ie.toggleOption({label:P,value:I.value})},gt.name=Ie.name,gt.checked=Ie.value.includes(I.value));const Tt=re()(`${ht}-wrapper`,{[`${ht}-rtl`]:xe==="rtl",[`${ht}-wrapper-checked`]:gt.checked,[`${ht}-wrapper-disabled`]:Ye,[`${ht}-wrapper-in-form-item`]:$e},De==null?void 0:De.className,Ne,W,kt),St=re()({[`${ht}-indeterminate`]:q},x.A,kt),ue=q?"mixed":void 0;return mt(Re.createElement(M.Z,{component:"Checkbox",disabled:Ye},Re.createElement("label",{className:Tt,style:Object.assign(Object.assign({},De==null?void 0:De.style),D),onMouseEnter:ie,onMouseLeave:F},Re.createElement(Ee.Z,Object.assign({"aria-checked":ue},gt,{prefixCls:ht,className:St,disabled:Ye,ref:oe})),P!==void 0&&Re.createElement("span",null,P))))};var Y=Re.forwardRef(E),te=T(19127),L=T(2738),N=function(ee,oe){var Ae={};for(var we in ee)Object.prototype.hasOwnProperty.call(ee,we)&&oe.indexOf(we)<0&&(Ae[we]=ee[we]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,we=Object.getOwnPropertySymbols(ee);Ne<we.length;Ne++)oe.indexOf(we[Ne])<0&&Object.prototype.propertyIsEnumerable.call(ee,we[Ne])&&(Ae[we[Ne]]=ee[we[Ne]]);return Ae};const U=(ee,oe)=>{const{defaultValue:Ae,children:we,options:Ne=[],prefixCls:W,className:P,rootClassName:q,style:D,onChange:ie}=ee,F=N(ee,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:g,direction:v}=Re.useContext(pe.E_),[I,G]=Re.useState(F.value||Ae||[]),[xe,De]=Re.useState([]);Re.useEffect(()=>{"value"in F&&G(F.value||[])},[F.value]);const Ie=Re.useMemo(()=>Ne.map(ne=>typeof ne=="string"||typeof ne=="number"?{label:ne,value:ne}:ne),[Ne]),$e=ne=>{De(X=>X.filter(Le=>Le!==ne))},qe=ne=>{De(X=>[].concat((0,te.Z)(X),[ne]))},Ye=ne=>{const X=I.indexOf(ne.value),Le=(0,te.Z)(I);X===-1?Le.push(ne.value):Le.splice(X,1),"value"in F||G(Le),ie==null||ie(Le.filter(Pe=>xe.includes(Pe)).sort((Pe,R)=>{const se=Ie.findIndex(_e=>_e.value===Pe),ve=Ie.findIndex(_e=>_e.value===R);return se-ve}))},Ve=g("checkbox",W),ht=`${Ve}-group`,[mt,kt]=(0,z.ZP)(Ve),gt=(0,L.Z)(F,["value","disabled"]),Tt=Ne.length?Ie.map(ne=>Re.createElement(Y,{prefixCls:Ve,key:ne.value.toString(),disabled:"disabled"in ne?ne.disabled:F.disabled,value:ne.value,checked:I.includes(ne.value),onChange:ne.onChange,className:`${ht}-item`,style:ne.style,title:ne.title},ne.label)):we,St={toggleOption:Ye,value:I,disabled:F.disabled,name:F.name,registerValue:qe,cancelValue:$e},ue=re()(ht,{[`${ht}-rtl`]:v==="rtl"},P,q,kt);return mt(Re.createElement("div",Object.assign({className:ue,style:D},gt,{ref:oe}),Re.createElement(o.Provider,{value:St},Tt)))},ce=Re.forwardRef(U);var w=Re.memo(ce);const j=Y;j.Group=w,j.__ANT_CHECKBOX=!0;var ae=j},98447:function(Nt,Qe,T){"use strict";T.d(Qe,{C2:function(){return pe}});var K=T(17313),re=T(37613),Ee=T(83116);const Re=Z=>{const{checkboxCls:ge}=Z,de=`${ge}-wrapper`;return[{[`${ge}-group`]:Object.assign(Object.assign({},(0,K.Wf)(Z)),{display:"inline-flex",flexWrap:"wrap",columnGap:Z.marginXS,[`> ${Z.antCls}-row`]:{flex:1}}),[de]:Object.assign(Object.assign({},(0,K.Wf)(Z)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${de}`]:{marginInlineStart:0},[`&${de}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ge]:Object.assign(Object.assign({},(0,K.Wf)(Z)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Z.borderRadiusSM,alignSelf:"center",[`${ge}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ge}-inner`]:Object.assign({},(0,K.oN)(Z))},[`${ge}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Z.checkboxSize,height:Z.checkboxSize,direction:"ltr",backgroundColor:Z.colorBgContainer,border:`${Z.lineWidth}px ${Z.lineType} ${Z.colorBorder}`,borderRadius:Z.borderRadiusSM,borderCollapse:"separate",transition:`all ${Z.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Z.checkboxSize/14*5,height:Z.checkboxSize/14*8,border:`${Z.lineWidthBold}px solid ${Z.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Z.motionDurationFast} ${Z.motionEaseInBack}, opacity ${Z.motionDurationFast}`}},"& + span":{paddingInlineStart:Z.paddingXS,paddingInlineEnd:Z.paddingXS}})},{[`
${de}:not(${de}-disabled),
${ge}:not(${ge}-disabled)
`]:{[`&:hover ${ge}-inner`]:{borderColor:Z.colorPrimary}},[`${de}:not(${de}-disabled)`]:{[`&:hover ${ge}-checked:not(${ge}-disabled) ${ge}-inner`]:{backgroundColor:Z.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ge}-checked:not(${ge}-disabled):after`]:{borderColor:Z.colorPrimaryHover}}},{[`${ge}-checked`]:{[`${ge}-inner`]:{backgroundColor:Z.colorPrimary,borderColor:Z.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Z.motionDurationMid} ${Z.motionEaseOutBack} ${Z.motionDurationFast}`}}},[`
${de}-checked:not(${de}-disabled),
${ge}-checked:not(${ge}-disabled)
`]:{[`&:hover ${ge}-inner`]:{backgroundColor:Z.colorPrimaryHover,borderColor:"transparent"}}},{[ge]:{"&-indeterminate":{[`${ge}-inner`]:{backgroundColor:Z.colorBgContainer,borderColor:Z.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Z.fontSizeLG/2,height:Z.fontSizeLG/2,backgroundColor:Z.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${de}-disabled`]:{cursor:"not-allowed"},[`${ge}-disabled`]:{[`&, ${ge}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ge}-inner`]:{background:Z.colorBgContainerDisabled,borderColor:Z.colorBorder,"&:after":{borderColor:Z.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Z.colorTextDisabled},[`&${ge}-indeterminate ${ge}-inner::after`]:{background:Z.colorTextDisabled}}}]};function pe(Z,ge){const de=(0,re.TS)(ge,{checkboxCls:`.${Z}`,checkboxSize:ge.controlInteractiveSize});return[Re(de)]}Qe.ZP=(0,Ee.Z)("Checkbox",(Z,ge)=>{let{prefixCls:de}=ge;return[pe(de,Z)]})},91857:function(Nt,Qe,T){"use strict";var K=T(59301),re=T(38819),Ee=T(92310),Re=T.n(Ee),pe=T(31561),Z=T(70425),ge=T(18929),de=T(2738),o=T(79676),z=T(53487),M=T(92343),x=T(36355),h=T(20834),E=T(40875),b=T(88088),Y=T(47211);const te=null,L=w=>{const{menu:j,arrow:ae,prefixCls:ee,children:oe,trigger:Ae,disabled:we,dropdownRender:Ne,getPopupContainer:W,overlayClassName:P,rootClassName:q,open:D,onOpenChange:ie,visible:F,onVisibleChange:g,mouseEnterDelay:v=.15,mouseLeaveDelay:I=.1,autoAdjustOverflow:G=!0,placement:xe="",overlay:De,transitionName:Ie}=w,{getPopupContainer:$e,getPrefixCls:qe,direction:Ye}=K.useContext(x.E_),Ve=K.useMemo(()=>{const Be=qe();return Ie!==void 0?Ie:xe.includes("top")?`${Be}-slide-down`:`${Be}-slide-up`},[qe,xe,Ie]),ht=K.useMemo(()=>xe?xe.includes("Center")?xe.slice(0,xe.indexOf("Center")):xe:Ye==="rtl"?"bottomRight":"bottomLeft",[xe,Ye]),mt=qe("dropdown",ee),[kt,gt]=(0,Y.Z)(mt),[,Tt]=(0,b.Z)(),St=K.Children.only(oe),ue=(0,M.Tm)(St,{className:Re()(`${mt}-trigger`,{[`${mt}-rtl`]:Ye==="rtl"},St.props.className),disabled:we}),ne=we?[]:Ae;let X;ne&&ne.includes("contextMenu")&&(X=!0);const[Le,Pe]=(0,ge.Z)(!1,{value:D!=null?D:F}),R=(0,Z.useEvent)(Be=>{ie==null||ie(Be),g==null||g(Be),Pe(Be)}),se=Re()(P,q,gt,{[`${mt}-rtl`]:Ye==="rtl"}),ve=(0,o.Z)({arrowPointAtCenter:typeof ae=="object"&&ae.pointAtCenter,autoAdjustOverflow:G,offset:Tt.marginXXS,arrowWidth:ae?Tt.sizePopupArrow:0,borderRadius:Tt.borderRadius}),_e=K.useCallback(()=>{Pe(!1)},[]),Oe=()=>{let Be;return j!=null&&j.items?Be=K.createElement(h.default,Object.assign({},j)):typeof De=="function"?Be=De():Be=De,Ne&&(Be=Ne(Be)),Be=K.Children.only(typeof Be=="string"?K.createElement("span",null,Be):Be),K.createElement(E.J,{prefixCls:`${mt}-menu`,expandIcon:K.createElement("span",{className:`${mt}-menu-submenu-arrow`},K.createElement(re.Z,{className:`${mt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:_e,validator:je=>{let{mode:et}=je}},Be)};return kt(K.createElement(pe.Z,Object.assign({alignPoint:X},(0,de.Z)(w,["rootClassName"]),{mouseEnterDelay:v,mouseLeaveDelay:I,visible:Le,builtinPlacements:ve,arrow:!!ae,overlayClassName:se,prefixCls:mt,getPopupContainer:W||$e,transitionName:Ve,trigger:ne,overlay:Oe,placement:ht,onVisibleChange:R}),ue))};function N(w){return Object.assign(Object.assign({},w),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const U=(0,z.Z)(L,"dropdown",w=>w,N),ce=w=>K.createElement(U,Object.assign({},w),K.createElement("span",null));L._InternalPanelDoNotUseOrYouWillBeFired=ce,Qe.Z=L},47211:function(Nt,Qe,T){"use strict";T.d(Qe,{Z:function(){return M}});var K=T(17313),re=T(13826),Ee=T(92899),Re=T(29878),pe=T(19447),Z=T(83116),ge=T(37613),o=x=>{const{componentCls:h,menuCls:E,colorError:b,colorTextLightSolid:Y}=x,te=`${E}-item`;return{[`${h}, ${h}-menu-submenu`]:{[`${E} ${te}`]:{[`&${te}-danger:not(${te}-disabled)`]:{color:b,"&:hover":{color:Y,backgroundColor:b}}}}}};const z=x=>{const{componentCls:h,menuCls:E,zIndexPopup:b,dropdownArrowDistance:Y,sizePopupArrow:te,antCls:L,iconCls:N,motionDurationMid:U,dropdownPaddingVertical:ce,fontSize:w,dropdownEdgeChildPadding:j,colorTextDisabled:ae,fontSizeIcon:ee,controlPaddingHorizontal:oe,colorBgElevated:Ae}=x;return[{[h]:Object.assign(Object.assign({},(0,K.Wf)(x)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:b,display:"block","&::before":{position:"absolute",insetBlock:-Y+te/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${L}-btn`]:{[`& > ${N}-down, & > ${L}-btn-icon > ${N}-down`]:{fontSize:ee}},[`${h}-wrap`]:{position:"relative",[`${L}-btn > ${N}-down`]:{fontSize:ee},[`${N}-down::before`]:{transition:`transform ${U}`}},[`${h}-wrap-open`]:{[`${N}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${L}-slide-down-enter${L}-slide-down-enter-active${h}-placement-bottomLeft,
&${L}-slide-down-appear${L}-slide-down-appear-active${h}-placement-bottomLeft,
&${L}-slide-down-enter${L}-slide-down-enter-active${h}-placement-bottom,
&${L}-slide-down-appear${L}-slide-down-appear-active${h}-placement-bottom,
&${L}-slide-down-enter${L}-slide-down-enter-active${h}-placement-bottomRight,
&${L}-slide-down-appear${L}-slide-down-appear-active${h}-placement-bottomRight`]:{animationName:re.fJ},[`&${L}-slide-up-enter${L}-slide-up-enter-active${h}-placement-topLeft,
&${L}-slide-up-appear${L}-slide-up-appear-active${h}-placement-topLeft,
&${L}-slide-up-enter${L}-slide-up-enter-active${h}-placement-top,
&${L}-slide-up-appear${L}-slide-up-appear-active${h}-placement-top,
&${L}-slide-up-enter${L}-slide-up-enter-active${h}-placement-topRight,
&${L}-slide-up-appear${L}-slide-up-appear-active${h}-placement-topRight`]:{animationName:re.Qt},[`&${L}-slide-down-leave${L}-slide-down-leave-active${h}-placement-bottomLeft,
&${L}-slide-down-leave${L}-slide-down-leave-active${h}-placement-bottom,
&${L}-slide-down-leave${L}-slide-down-leave-active${h}-placement-bottomRight`]:{animationName:re.Uw},[`&${L}-slide-up-leave${L}-slide-up-leave-active${h}-placement-topLeft,
&${L}-slide-up-leave${L}-slide-up-leave-active${h}-placement-top,
&${L}-slide-up-leave${L}-slide-up-leave-active${h}-placement-topRight`]:{animationName:re.ly}})},(0,pe.ZP)(x,{colorBg:Ae,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${h} ${E}`]:{position:"relative",margin:0},[`${E}-submenu-popup`]:{position:"absolute",zIndex:b,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${h}, ${h}-menu-submenu`]:{[E]:Object.assign(Object.assign({padding:j,listStyleType:"none",backgroundColor:Ae,backgroundClip:"padding-box",borderRadius:x.borderRadiusLG,outline:"none",boxShadow:x.boxShadowSecondary},(0,K.Qy)(x)),{[`${E}-item-group-title`]:{padding:`${ce}px ${oe}px`,color:x.colorTextDescription,transition:`all ${U}`},[`${E}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${E}-item-icon`]:{minWidth:w,marginInlineEnd:x.marginXS,fontSize:x.fontSizeSM},[`${E}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${U}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${E}-item, ${E}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ce}px ${oe}px`,color:x.colorText,fontWeight:"normal",fontSize:w,lineHeight:x.lineHeight,cursor:"pointer",transition:`all ${U}`,borderRadius:x.borderRadiusSM,"&:hover, &-active":{backgroundColor:x.controlItemBgHover}},(0,K.Qy)(x)),{"&-selected":{color:x.colorPrimary,backgroundColor:x.controlItemBgActive,"&:hover, &-active":{backgroundColor:x.controlItemBgActiveHover}},"&-disabled":{color:ae,cursor:"not-allowed","&:hover":{color:ae,backgroundColor:Ae,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${x.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:x.colorSplit},[`${h}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:x.paddingXS,[`${h}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:x.colorTextDescription,fontSize:ee,fontStyle:"normal"}}}),[`${E}-item-group-list`]:{margin:`0 ${x.marginXS}px`,padding:0,listStyle:"none"},[`${E}-submenu-title`]:{paddingInlineEnd:oe+x.fontSizeSM},[`${E}-submenu-vertical`]:{position:"relative"},[`${E}-submenu${E}-submenu-disabled ${h}-menu-submenu-title`]:{[`&, ${h}-menu-submenu-arrow-icon`]:{color:ae,backgroundColor:Ae,cursor:"not-allowed"}},[`${E}-submenu-selected ${h}-menu-submenu-title`]:{color:x.colorPrimary}})}},[(0,re.oN)(x,"slide-up"),(0,re.oN)(x,"slide-down"),(0,Ee.Fm)(x,"move-up"),(0,Ee.Fm)(x,"move-down"),(0,Re._y)(x,"zoom-big")]]};var M=(0,Z.Z)("Dropdown",(x,h)=>{let{rootPrefixCls:E}=h;const{marginXXS:b,sizePopupArrow:Y,controlHeight:te,fontSize:L,lineHeight:N,paddingXXS:U,componentCls:ce,borderRadiusLG:w}=x,j=(te-L*N)/2,{dropdownArrowOffset:ae}=(0,pe.fS)({contentRadius:w}),ee=(0,ge.TS)(x,{menuCls:`${ce}-menu`,rootPrefixCls:E,dropdownArrowDistance:Y/2+b,dropdownArrowOffset:ae,dropdownPaddingVertical:j,dropdownEdgeChildPadding:U});return[z(ee),o(ee)]},x=>({zIndexPopup:x.zIndexPopupBase+50}))},9432:function(Nt,Qe,T){"use strict";T.d(Qe,{Z:function(){return N},n:function(){return te}});var K=T(19248),re=T(92310),Ee=T.n(re),Re=T(93681),pe=T(8654),Z=T(59301),ge=T(19080),de=T(36355),o=T(1684),z=T(19716),M=T(32441),x=T(33234),h=T(59412),E=T(9937);function b(U){return!!(U.prefix||U.suffix||U.allowClear)}var Y=function(U,ce){var w={};for(var j in U)Object.prototype.hasOwnProperty.call(U,j)&&ce.indexOf(j)<0&&(w[j]=U[j]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,j=Object.getOwnPropertySymbols(U);ae<j.length;ae++)ce.indexOf(j[ae])<0&&Object.prototype.propertyIsEnumerable.call(U,j[ae])&&(w[j[ae]]=U[j[ae]]);return w};function te(U,ce){if(!U)return;U.focus(ce);const{cursor:w}=ce||{};if(w){const j=U.value.length;switch(w){case"start":U.setSelectionRange(0,0);break;case"end":U.setSelectionRange(j,j);break;default:U.setSelectionRange(0,j);break}}}var N=(0,Z.forwardRef)((U,ce)=>{var w;const{prefixCls:j,bordered:ae=!0,status:ee,size:oe,disabled:Ae,onBlur:we,onFocus:Ne,suffix:W,allowClear:P,addonAfter:q,addonBefore:D,className:ie,style:F,styles:g,rootClassName:v,onChange:I,classNames:G}=U,xe=Y(U,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:De,direction:Ie,input:$e}=Z.useContext(de.E_),qe=De("input",j),Ye=(0,Z.useRef)(null),[Ve,ht]=(0,E.ZP)(qe),{compactSize:mt,compactItemClassnames:kt}=(0,x.ri)(qe,Ie),gt=(0,z.Z)(et=>{var We;return(We=oe!=null?oe:mt)!==null&&We!==void 0?We:et}),Tt=Z.useContext(o.Z),St=Ae!=null?Ae:Tt,{status:ue,hasFeedback:ne,feedbackIcon:X}=(0,Z.useContext)(M.aM),Le=(0,ge.F)(ue,ee),Pe=b(U)||!!ne,R=(0,Z.useRef)(Pe);(0,Z.useEffect)(()=>{var et;Pe&&R.current,R.current=Pe},[Pe]);const se=(0,h.Z)(Ye,!0),ve=et=>{se(),we==null||we(et)},_e=et=>{se(),Ne==null||Ne(et)},Oe=et=>{se(),I==null||I(et)},Be=(ne||W)&&Z.createElement(Z.Fragment,null,W,ne&&X);let je;return typeof P=="object"&&(P!=null&&P.clearIcon)?je=P:P&&(je={clearIcon:Z.createElement(K.Z,null)}),Ve(Z.createElement(Re.default,Object.assign({ref:(0,pe.sQ)(ce,Ye),prefixCls:qe,autoComplete:$e==null?void 0:$e.autoComplete},xe,{disabled:St,onBlur:ve,onFocus:_e,style:Object.assign(Object.assign({},$e==null?void 0:$e.style),F),styles:Object.assign(Object.assign({},$e==null?void 0:$e.styles),g),suffix:Be,allowClear:je,className:Ee()(ie,v,kt,$e==null?void 0:$e.className),onChange:Oe,addonAfter:q&&Z.createElement(x.BR,null,Z.createElement(M.Ux,{override:!0,status:!0},q)),addonBefore:D&&Z.createElement(x.BR,null,Z.createElement(M.Ux,{override:!0,status:!0},D)),classNames:Object.assign(Object.assign(Object.assign({},G),$e==null?void 0:$e.classNames),{input:Ee()({[`${qe}-sm`]:gt==="small",[`${qe}-lg`]:gt==="large",[`${qe}-rtl`]:Ie==="rtl",[`${qe}-borderless`]:!ae},!Pe&&(0,ge.Z)(qe,Le),G==null?void 0:G.input,(w=$e==null?void 0:$e.classNames)===null||w===void 0?void 0:w.input,ht)}),classes:{affixWrapper:Ee()({[`${qe}-affix-wrapper-sm`]:gt==="small",[`${qe}-affix-wrapper-lg`]:gt==="large",[`${qe}-affix-wrapper-rtl`]:Ie==="rtl",[`${qe}-affix-wrapper-borderless`]:!ae},(0,ge.Z)(`${qe}-affix-wrapper`,Le,ne),ht),wrapper:Ee()({[`${qe}-group-rtl`]:Ie==="rtl"},ht),group:Ee()({[`${qe}-group-wrapper-sm`]:gt==="small",[`${qe}-group-wrapper-lg`]:gt==="large",[`${qe}-group-wrapper-rtl`]:Ie==="rtl",[`${qe}-group-wrapper-disabled`]:St},(0,ge.Z)(`${qe}-group-wrapper`,Le,ne),ht)}})))})},1643:function(Nt,Qe,T){"use strict";var K=T(19248),re=T(92310),Ee=T.n(re),Re=T(9296),pe=T(59301),Z=T(19080),ge=T(36355),de=T(1684),o=T(19716),z=T(32441),M=T(9432),x=T(9937),h=function(b,Y){var te={};for(var L in b)Object.prototype.hasOwnProperty.call(b,L)&&Y.indexOf(L)<0&&(te[L]=b[L]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,L=Object.getOwnPropertySymbols(b);N<L.length;N++)Y.indexOf(L[N])<0&&Object.prototype.propertyIsEnumerable.call(b,L[N])&&(te[L[N]]=b[L[N]]);return te};const E=(0,pe.forwardRef)((b,Y)=>{const{prefixCls:te,bordered:L=!0,size:N,disabled:U,status:ce,allowClear:w,showCount:j,classNames:ae,rootClassName:ee,className:oe}=b,Ae=h(b,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:we,direction:Ne}=pe.useContext(ge.E_),W=(0,o.Z)(N),P=pe.useContext(de.Z),q=U!=null?U:P,{status:D,hasFeedback:ie,feedbackIcon:F}=pe.useContext(z.aM),g=(0,Z.F)(D,ce),v=pe.useRef(null);pe.useImperativeHandle(Y,()=>{var Ie;return{resizableTextArea:(Ie=v.current)===null||Ie===void 0?void 0:Ie.resizableTextArea,focus:$e=>{var qe,Ye;(0,M.n)((Ye=(qe=v.current)===null||qe===void 0?void 0:qe.resizableTextArea)===null||Ye===void 0?void 0:Ye.textArea,$e)},blur:()=>{var $e;return($e=v.current)===null||$e===void 0?void 0:$e.blur()}}});const I=we("input",te);let G;typeof w=="object"&&(w!=null&&w.clearIcon)?G=w:w&&(G={clearIcon:pe.createElement(K.Z,null)});const[xe,De]=(0,x.ZP)(I);return xe(pe.createElement(Re.default,Object.assign({},Ae,{disabled:q,allowClear:G,className:Ee()(oe,ee),classes:{affixWrapper:Ee()(`${I}-textarea-affix-wrapper`,{[`${I}-affix-wrapper-rtl`]:Ne==="rtl",[`${I}-affix-wrapper-borderless`]:!L,[`${I}-affix-wrapper-sm`]:W==="small",[`${I}-affix-wrapper-lg`]:W==="large",[`${I}-textarea-show-count`]:j},(0,Z.Z)(`${I}-affix-wrapper`,g),De)},classNames:Object.assign(Object.assign({},ae),{textarea:Ee()({[`${I}-borderless`]:!L,[`${I}-sm`]:W==="small",[`${I}-lg`]:W==="large"},(0,Z.Z)(I,g),De,ae==null?void 0:ae.textarea)}),prefixCls:I,suffix:ie&&pe.createElement("span",{className:`${I}-textarea-suffix`},F),showCount:j,ref:v})))});Qe.Z=E},59412:function(Nt,Qe,T){"use strict";T.d(Qe,{Z:function(){return re}});var K=T(59301);function re(Ee,Re){const pe=(0,K.useRef)([]),Z=()=>{pe.current.push(setTimeout(()=>{var ge,de,o,z;!((ge=Ee.current)===null||ge===void 0)&&ge.input&&((de=Ee.current)===null||de===void 0?void 0:de.input.getAttribute("type"))==="password"&&(!((o=Ee.current)===null||o===void 0)&&o.input.hasAttribute("value"))&&((z=Ee.current)===null||z===void 0||z.input.removeAttribute("value"))}))};return(0,K.useEffect)(()=>(Re&&Z(),()=>pe.current.forEach(ge=>{ge&&clearTimeout(ge)})),[]),Z}},92832:function(Nt,Qe,T){"use strict";T.d(Qe,{default:function(){return W}});var K=T(92310),re=T.n(K),Ee=T(59301),Re=T(36355),pe=T(32441),Z=T(9937),de=P=>{const{getPrefixCls:q,direction:D}=(0,Ee.useContext)(Re.E_),{prefixCls:ie,className:F}=P,g=q("input-group",ie),v=q("input"),[I,G]=(0,Z.ZP)(v),xe=re()(g,{[`${g}-lg`]:P.size==="large",[`${g}-sm`]:P.size==="small",[`${g}-compact`]:P.compact,[`${g}-rtl`]:D==="rtl"},G,F),De=(0,Ee.useContext)(pe.aM),Ie=(0,Ee.useMemo)(()=>Object.assign(Object.assign({},De),{isFormItemInput:!1}),[De]);return I(Ee.createElement("span",{className:xe,style:P.style,onMouseEnter:P.onMouseEnter,onMouseLeave:P.onMouseLeave,onFocus:P.onFocus,onBlur:P.onBlur},Ee.createElement(pe.aM.Provider,{value:Ie},P.children)))},o=T(9432),z=T(73331),M=T(15277),x=T(2738),h=T(8654),E=T(59412),b=function(P,q){var D={};for(var ie in P)Object.prototype.hasOwnProperty.call(P,ie)&&q.indexOf(ie)<0&&(D[ie]=P[ie]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,ie=Object.getOwnPropertySymbols(P);F<ie.length;F++)q.indexOf(ie[F])<0&&Object.prototype.propertyIsEnumerable.call(P,ie[F])&&(D[ie[F]]=P[ie[F]]);return D};const Y=P=>P?Ee.createElement(M.Z,null):Ee.createElement(z.Z,null),te={click:"onClick",hover:"onMouseOver"};var N=Ee.forwardRef((P,q)=>{const{visibilityToggle:D=!0}=P,ie=typeof D=="object"&&D.visible!==void 0,[F,g]=(0,Ee.useState)(()=>ie?D.visible:!1),v=(0,Ee.useRef)(null);Ee.useEffect(()=>{ie&&g(D.visible)},[ie,D]);const I=(0,E.Z)(v),G=()=>{const{disabled:St}=P;St||(F&&I(),g(ue=>{var ne;const X=!ue;return typeof D=="object"&&((ne=D.onVisibleChange)===null||ne===void 0||ne.call(D,X)),X}))},xe=St=>{const{action:ue="click",iconRender:ne=Y}=P,X=te[ue]||"",Le=ne(F),Pe={[X]:G,className:`${St}-icon`,key:"passwordIcon",onMouseDown:R=>{R.preventDefault()},onMouseUp:R=>{R.preventDefault()}};return Ee.cloneElement(Ee.isValidElement(Le)?Le:Ee.createElement("span",null,Le),Pe)},{className:De,prefixCls:Ie,inputPrefixCls:$e,size:qe}=P,Ye=b(P,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Ve}=Ee.useContext(Re.E_),ht=Ve("input",$e),mt=Ve("input-password",Ie),kt=D&&xe(mt),gt=re()(mt,De,{[`${mt}-${qe}`]:!!qe}),Tt=Object.assign(Object.assign({},(0,x.Z)(Ye,["suffix","iconRender","visibilityToggle"])),{type:F?"text":"password",className:gt,prefixCls:ht,suffix:kt});return qe&&(Tt.size=qe),Ee.createElement(o.Z,Object.assign({ref:(0,h.sQ)(q,v)},Tt))}),U=T(47472),ce=T(92343),w=T(3113),j=T(19716),ae=T(33234),ee=function(P,q){var D={};for(var ie in P)Object.prototype.hasOwnProperty.call(P,ie)&&q.indexOf(ie)<0&&(D[ie]=P[ie]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,ie=Object.getOwnPropertySymbols(P);F<ie.length;F++)q.indexOf(ie[F])<0&&Object.prototype.propertyIsEnumerable.call(P,ie[F])&&(D[ie[F]]=P[ie[F]]);return D},Ae=Ee.forwardRef((P,q)=>{const{prefixCls:D,inputPrefixCls:ie,className:F,size:g,suffix:v,enterButton:I=!1,addonAfter:G,loading:xe,disabled:De,onSearch:Ie,onChange:$e,onCompositionStart:qe,onCompositionEnd:Ye}=P,Ve=ee(P,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:ht,direction:mt}=Ee.useContext(Re.E_),kt=Ee.useRef(!1),gt=ht("input-search",D),Tt=ht("input",ie),{compactSize:St}=(0,ae.ri)(gt,mt),ue=(0,j.Z)(Ge=>{var st;return(st=g!=null?g:St)!==null&&st!==void 0?st:Ge}),ne=Ee.useRef(null),X=Ge=>{Ge&&Ge.target&&Ge.type==="click"&&Ie&&Ie(Ge.target.value,Ge,{source:"clear"}),$e&&$e(Ge)},Le=Ge=>{var st;document.activeElement===((st=ne.current)===null||st===void 0?void 0:st.input)&&Ge.preventDefault()},Pe=Ge=>{var st,Je;Ie&&Ie((Je=(st=ne.current)===null||st===void 0?void 0:st.input)===null||Je===void 0?void 0:Je.value,Ge,{source:"input"})},R=Ge=>{kt.current||xe||Pe(Ge)},se=typeof I=="boolean"?Ee.createElement(U.Z,null):null,ve=`${gt}-button`;let _e;const Oe=I||{},Be=Oe.type&&Oe.type.__ANT_BUTTON===!0;Be||Oe.type==="button"?_e=(0,ce.Tm)(Oe,Object.assign({onMouseDown:Le,onClick:Ge=>{var st,Je;(Je=(st=Oe==null?void 0:Oe.props)===null||st===void 0?void 0:st.onClick)===null||Je===void 0||Je.call(st,Ge),Pe(Ge)},key:"enterButton"},Be?{className:ve,size:ue}:{})):_e=Ee.createElement(w.ZP,{className:ve,type:I?"primary":void 0,size:ue,disabled:De,key:"enterButton",onMouseDown:Le,onClick:Pe,loading:xe,icon:se},I),G&&(_e=[_e,(0,ce.Tm)(G,{key:"addonAfter"})]);const je=re()(gt,{[`${gt}-rtl`]:mt==="rtl",[`${gt}-${ue}`]:!!ue,[`${gt}-with-button`]:!!I},F),et=Ge=>{kt.current=!0,qe==null||qe(Ge)},We=Ge=>{kt.current=!1,Ye==null||Ye(Ge)};return Ee.createElement(o.Z,Object.assign({ref:(0,h.sQ)(ne,q),onPressEnter:R},Ve,{size:ue,onCompositionStart:et,onCompositionEnd:We,prefixCls:Tt,addonAfter:_e,suffix:v,onChange:X,className:je,disabled:De}))}),we=T(1643);const Ne=o.Z;Ne.Group=de,Ne.Search=Ae,Ne.TextArea=we.Z,Ne.Password=N;var W=Ne},9937:function(Nt,Qe,T){"use strict";T.d(Qe,{M1:function(){return ge},TM:function(){return ce},Xy:function(){return de},bi:function(){return M},e5:function(){return U},ik:function(){return x},nz:function(){return pe},pU:function(){return Z},s7:function(){return h},x0:function(){return z}});var K=T(17313),re=T(74207),Ee=T(37613),Re=T(83116);const pe=w=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:w,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Z=w=>({borderColor:w.hoverBorderColor}),ge=w=>({borderColor:w.activeBorderColor,boxShadow:w.activeShadow,outline:0}),de=w=>({color:w.colorTextDisabled,backgroundColor:w.colorBgContainerDisabled,borderColor:w.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Z((0,Ee.TS)(w,{hoverBorderColor:w.colorBorder})))}),o=w=>{const{paddingBlockLG:j,fontSizeLG:ae,lineHeightLG:ee,borderRadiusLG:oe,paddingInlineLG:Ae}=w;return{padding:`${j}px ${Ae}px`,fontSize:ae,lineHeight:ee,borderRadius:oe}},z=w=>({padding:`${w.paddingBlockSM}px ${w.paddingInlineSM}px`,borderRadius:w.borderRadiusSM}),M=(w,j)=>{const{componentCls:ae,colorError:ee,colorWarning:oe,errorActiveShadow:Ae,warningActiveShadow:we,colorErrorBorderHover:Ne,colorWarningBorderHover:W}=w;return{[`&-status-error:not(${j}-disabled):not(${j}-borderless)${j}`]:{borderColor:ee,"&:hover":{borderColor:Ne},"&:focus, &-focused":Object.assign({},ge((0,Ee.TS)(w,{activeBorderColor:ee,activeShadow:Ae}))),[`${ae}-prefix, ${ae}-suffix`]:{color:ee}},[`&-status-warning:not(${j}-disabled):not(${j}-borderless)${j}`]:{borderColor:oe,"&:hover":{borderColor:W},"&:focus, &-focused":Object.assign({},ge((0,Ee.TS)(w,{activeBorderColor:oe,activeShadow:we}))),[`${ae}-prefix, ${ae}-suffix`]:{color:oe}}}},x=w=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${w.paddingBlock}px ${w.paddingInline}px`,color:w.colorText,fontSize:w.fontSize,lineHeight:w.lineHeight,backgroundColor:w.colorBgContainer,backgroundImage:"none",borderWidth:w.lineWidth,borderStyle:w.lineType,borderColor:w.colorBorder,borderRadius:w.borderRadius,transition:`all ${w.motionDurationMid}`},pe(w.colorTextPlaceholder)),{"&:hover":Object.assign({},Z(w)),"&:focus, &-focused":Object.assign({},ge(w)),"&-disabled, &[disabled]":Object.assign({},de(w)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:w.controlHeight,lineHeight:w.lineHeight,verticalAlign:"bottom",transition:`all ${w.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},o(w)),"&-sm":Object.assign({},z(w)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),h=w=>{const{componentCls:j,antCls:ae}=w;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:w.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${j}, &-lg > ${j}-group-addon`]:Object.assign({},o(w)),[`&-sm ${j}, &-sm > ${j}-group-addon`]:Object.assign({},z(w)),[`&-lg ${ae}-select-single ${ae}-select-selector`]:{height:w.controlHeightLG},[`&-sm ${ae}-select-single ${ae}-select-selector`]:{height:w.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 ${w.paddingInline}px`,color:w.colorText,fontWeight:"normal",fontSize:w.fontSize,textAlign:"center",backgroundColor:w.colorFillAlter,border:`${w.lineWidth}px ${w.lineType} ${w.colorBorder}`,borderRadius:w.borderRadius,transition:`all ${w.motionDurationSlow}`,lineHeight:1,[`${ae}-select`]:{margin:`-${w.paddingBlock+1}px -${w.paddingInline}px`,[`&${ae}-select-single:not(${ae}-select-customize-input)`]:{[`${ae}-select-selector`]:{backgroundColor:"inherit",border:`${w.lineWidth}px ${w.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${ae}-select-selector`]:{color:w.colorPrimary}}},[`${ae}-cascader-picker`]:{margin:`-9px -${w.paddingInline}px`,backgroundColor:"transparent",[`${ae}-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,[`${ae}-select ${ae}-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,[`${ae}-select ${ae}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${j}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${j}-search &`]:{borderStartStartRadius:w.borderRadius,borderEndStartRadius:w.borderRadius}},[`&:not(:first-child), ${j}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${j}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,K.dF)()),{[`${j}-group-addon, ${j}-group-wrap, > ${j}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:w.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
& > ${j}-affix-wrapper,
& > ${j}-number-affix-wrapper,
& > ${ae}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-w.lineWidth,borderInlineEndWidth:w.lineWidth},[`${j}`]:{float:"none"},[`& > ${ae}-select > ${ae}-select-selector,
& > ${ae}-select-auto-complete ${j},
& > ${ae}-cascader-picker ${j},
& > ${j}-group-wrapper ${j}`]:{borderInlineEndWidth:w.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${ae}-select-focused`]:{zIndex:1},[`& > ${ae}-select > ${ae}-select-arrow`]:{zIndex:1},[`& > *:first-child,
& > ${ae}-select:first-child > ${ae}-select-selector,
& > ${ae}-select-auto-complete:first-child ${j},
& > ${ae}-cascader-picker:first-child ${j}`]:{borderStartStartRadius:w.borderRadius,borderEndStartRadius:w.borderRadius},[`& > *:last-child,
& > ${ae}-select:last-child > ${ae}-select-selector,
& > ${ae}-cascader-picker:last-child ${j},
& > ${ae}-cascader-picker-focused:last-child ${j}`]:{borderInlineEndWidth:w.lineWidth,borderStartEndRadius:w.borderRadius,borderEndEndRadius:w.borderRadius},[`& > ${ae}-select-auto-complete ${j}`]:{verticalAlign:"top"},[`${j}-group-wrapper + ${j}-group-wrapper`]:{marginInlineStart:-w.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:w.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:w.borderRadius}}}})}},E=w=>{const{componentCls:j,controlHeightSM:ae,lineWidth:ee}=w,Ae=(ae-ee*2-16)/2;return{[j]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,K.Wf)(w)),x(w)),M(w,j)),{'&[type="color"]':{height:w.controlHeight,[`&${j}-lg`]:{height:w.controlHeightLG},[`&${j}-sm`]:{height:ae,paddingTop:Ae,paddingBottom:Ae}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},b=w=>{const{componentCls:j}=w;return{[`${j}-clear-icon`]:{margin:0,color:w.colorTextQuaternary,fontSize:w.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${w.motionDurationSlow}`,"&:hover":{color:w.colorTextTertiary},"&:active":{color:w.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${w.inputAffixPadding}px`}}}},Y=w=>{const{componentCls:j,inputAffixPadding:ae,colorTextDescription:ee,motionDurationSlow:oe,colorIcon:Ae,colorIconHover:we,iconCls:Ne}=w;return{[`${j}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},x(w)),{display:"inline-flex",[`&:not(${j}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Z(w)),{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:w.paddingXS}},"&-show-count-suffix":{color:ee},"&-show-count-has-suffix":{marginInlineEnd:w.paddingXXS},"&-prefix":{marginInlineEnd:ae},"&-suffix":{marginInlineStart:ae}}}),b(w)),{[`${Ne}${j}-password-icon`]:{color:Ae,cursor:"pointer",transition:`all ${oe}`,"&:hover":{color:we}}}),M(w,`${j}-affix-wrapper`))}},te=w=>{const{componentCls:j,colorError:ae,colorWarning:ee,borderRadiusLG:oe,borderRadiusSM:Ae}=w;return{[`${j}-group`]:Object.assign(Object.assign(Object.assign({},(0,K.Wf)(w)),h(w)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${j}-group-addon`]:{borderRadius:oe,fontSize:w.fontSizeLG}},"&-sm":{[`${j}-group-addon`]:{borderRadius:Ae}},"&-status-error":{[`${j}-group-addon`]:{color:ae,borderColor:ae}},"&-status-warning":{[`${j}-group-addon`]:{color:ee,borderColor:ee}},"&-disabled":{[`${j}-group-addon`]:Object.assign({},de(w))},[`&: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}}}})}},L=w=>{const{componentCls:j,antCls:ae}=w,ee=`${j}-search`;return{[ee]:{[`${j}`]:{"&:hover, &:focus":{borderColor:w.colorPrimaryHover,[`+ ${j}-group-addon ${ee}-button:not(${ae}-btn-primary)`]:{borderInlineStartColor:w.colorPrimaryHover}}},[`${j}-affix-wrapper`]:{borderRadius:0},[`${j}-lg`]:{lineHeight:w.lineHeightLG-2e-4},[`> ${j}-group`]:{[`> ${j}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${ee}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:w.borderRadius,borderEndEndRadius:w.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${ee}-button:not(${ae}-btn-primary)`]:{color:w.colorTextDescription,"&:hover":{color:w.colorPrimaryHover},"&:active":{color:w.colorPrimaryActive},[`&${ae}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${ee}-button`]:{height:w.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${ee}-button`]:{height:w.controlHeightLG},[`&-small ${ee}-button`]:{height:w.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${j}-compact-item`]:{[`&:not(${j}-compact-last-item)`]:{[`${j}-group-addon`]:{[`${j}-search-button`]:{marginInlineEnd:-w.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}}}}},N=w=>{const{componentCls:j,paddingLG:ae}=w,ee=`${j}-textarea`;return{[ee]:{position:"relative","&-show-count":{[`> ${j}`]:{height:"100%"},[`${j}-data-count`]:{position:"absolute",bottom:-w.fontSize*w.lineHeight,insetInlineEnd:0,color:w.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${j}`]:{paddingInlineEnd:ae}},[`&-affix-wrapper${ee}-has-feedback`]:{[`${j}`]:{paddingInlineEnd:ae}},[`&-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:w.paddingXS,insetBlockStart:w.paddingXS},[`${ee}-suffix`]:{position:"absolute",top:0,insetInlineEnd:w.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function U(w){return(0,Ee.TS)(w,{inputAffixPadding:w.paddingXXS})}const ce=w=>{const{controlHeight:j,fontSize:ae,lineHeight:ee,lineWidth:oe,controlHeightSM:Ae,controlHeightLG:we,fontSizeLG:Ne,lineHeightLG:W,paddingSM:P,controlPaddingHorizontalSM:q,controlPaddingHorizontal:D,colorFillAlter:ie,colorPrimaryHover:F,controlOutlineWidth:g,controlOutline:v,colorErrorOutline:I,colorWarningOutline:G}=w;return{paddingBlock:Math.max(Math.round((j-ae*ee)/2*10)/10-oe,3),paddingBlockSM:Math.max(Math.round((Ae-ae*ee)/2*10)/10-oe,0),paddingBlockLG:Math.ceil((we-Ne*W)/2*10)/10-oe,paddingInline:P-oe,paddingInlineSM:q-oe,paddingInlineLG:D-oe,addonBg:ie,activeBorderColor:F,hoverBorderColor:F,activeShadow:`0 0 0 ${g}px ${v}`,errorActiveShadow:`0 0 0 ${g}px ${I}`,warningActiveShadow:`0 0 0 ${g}px ${G}`}};Qe.ZP=(0,Re.Z)("Input",w=>{const j=(0,Ee.TS)(w,U(w));return[E(j),N(j),Y(j),te(j),L(j),(0,re.c)(j)]},ce)},45818:function(Nt,Qe,T){"use strict";T.d(Qe,{D:function(){return U},Z:function(){return j}});var K=T(96663),re=T(59301),Ee={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"},Re=Ee,pe=T(7657),Z=function(ee,oe){return re.createElement(pe.Z,(0,K.Z)({},ee,{ref:oe,icon:Re}))},ge=re.forwardRef(Z),de=ge,o=T(33853),z=T(38819),M=T(92310),x=T.n(M),h=T(2738),b=ae=>!isNaN(parseFloat(ae))&&isFinite(ae),Y=T(36355),te=T(84966),L=function(ae,ee){var oe={};for(var Ae in ae)Object.prototype.hasOwnProperty.call(ae,Ae)&&ee.indexOf(Ae)<0&&(oe[Ae]=ae[Ae]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,Ae=Object.getOwnPropertySymbols(ae);we<Ae.length;we++)ee.indexOf(Ae[we])<0&&Object.prototype.propertyIsEnumerable.call(ae,Ae[we])&&(oe[Ae[we]]=ae[Ae[we]]);return oe};const N={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},U=re.createContext({}),ce=(()=>{let ae=0;return function(){let ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ae+=1,`${ee}${ae}`}})();var j=re.forwardRef((ae,ee)=>{const{prefixCls:oe,className:Ae,trigger:we,children:Ne,defaultCollapsed:W=!1,theme:P="dark",style:q={},collapsible:D=!1,reverseArrow:ie=!1,width:F=200,collapsedWidth:g=80,zeroWidthTriggerStyle:v,breakpoint:I,onCollapse:G,onBreakpoint:xe}=ae,De=L(ae,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Ie}=(0,re.useContext)(te.Gs),[$e,qe]=(0,re.useState)("collapsed"in ae?ae.collapsed:W),[Ye,Ve]=(0,re.useState)(!1);(0,re.useEffect)(()=>{"collapsed"in ae&&qe(ae.collapsed)},[ae.collapsed]);const ht=(ue,ne)=>{"collapsed"in ae||qe(ue),G==null||G(ue,ne)},mt=(0,re.useRef)();mt.current=ue=>{Ve(ue.matches),xe==null||xe(ue.matches),$e!==ue.matches&&ht(ue.matches,"responsive")},(0,re.useEffect)(()=>{function ue(X){return mt.current(X)}let ne;if(typeof window!="undefined"){const{matchMedia:X}=window;if(X&&I&&I in N){ne=X(`(max-width: ${N[I]})`);try{ne.addEventListener("change",ue)}catch(Le){ne.addListener(ue)}ue(ne)}}return()=>{try{ne==null||ne.removeEventListener("change",ue)}catch(X){ne==null||ne.removeListener(ue)}}},[I]),(0,re.useEffect)(()=>{const ue=ce("ant-sider-");return Ie.addSider(ue),()=>Ie.removeSider(ue)},[]);const kt=()=>{ht(!$e,"clickTrigger")},{getPrefixCls:gt}=(0,re.useContext)(Y.E_),Tt=()=>{const ue=gt("layout-sider",oe),ne=(0,h.Z)(De,["collapsed"]),X=$e?g:F,Le=b(X)?`${X}px`:String(X),Pe=parseFloat(String(g||0))===0?re.createElement("span",{onClick:kt,className:x()(`${ue}-zero-width-trigger`,`${ue}-zero-width-trigger-${ie?"right":"left"}`),style:v},we||re.createElement(de,null)):null,ve={expanded:ie?re.createElement(z.Z,null):re.createElement(o.Z,null),collapsed:ie?re.createElement(o.Z,null):re.createElement(z.Z,null)}[$e?"collapsed":"expanded"],_e=we!==null?Pe||re.createElement("div",{className:`${ue}-trigger`,onClick:kt,style:{width:Le}},we||ve):null,Oe=Object.assign(Object.assign({},q),{flex:`0 0 ${Le}`,maxWidth:Le,minWidth:Le,width:Le}),Be=x()(ue,`${ue}-${P}`,{[`${ue}-collapsed`]:!!$e,[`${ue}-has-trigger`]:D&&we!==null&&!Pe,[`${ue}-below`]:!!Ye,[`${ue}-zero-width`]:parseFloat(Le)===0},Ae);return re.createElement("aside",Object.assign({className:Be},ne,{style:Oe,ref:ee}),re.createElement("div",{className:`${ue}-children`},Ne),D||Ye&&Pe?_e:null)},St=re.useMemo(()=>({siderCollapsed:$e}),[$e]);return re.createElement(U.Provider,{value:St},Tt())})},84966:function(Nt,Qe,T){"use strict";T.d(Qe,{VY:function(){return U},$_:function(){return N},h4:function(){return L},Gs:function(){return h},ZP:function(){return ce}});var K=T(19127),re=T(92310),Ee=T.n(re),Re=T(2738),pe=T(59301),Z=T(36355),ge=T(83116),o=w=>{const{componentCls:j,bodyBg:ae,lightSiderBg:ee,lightTriggerBg:oe,lightTriggerColor:Ae}=w;return{[`${j}-sider-light`]:{background:ee,[`${j}-sider-trigger`]:{color:Ae,background:oe},[`${j}-sider-zero-width-trigger`]:{color:Ae,background:oe,border:`1px solid ${ae}`,borderInlineStart:0}}}};const z=w=>{const{antCls:j,componentCls:ae,colorText:ee,triggerColor:oe,footerBg:Ae,triggerBg:we,headerHeight:Ne,headerPadding:W,headerColor:P,footerPadding:q,triggerHeight:D,zeroTriggerHeight:ie,zeroTriggerWidth:F,motionDurationMid:g,motionDurationSlow:v,fontSize:I,borderRadius:G,bodyBg:xe,headerBg:De,siderBg:Ie}=w;return{[ae]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:xe,"&, *":{boxSizing:"border-box"},[`&${ae}-has-sider`]:{flexDirection:"row",[`> ${ae}, > ${ae}-content`]:{width:0}},[`${ae}-header, &${ae}-footer`]:{flex:"0 0 auto"},[`${ae}-sider`]:{position:"relative",minWidth:0,background:Ie,transition:`all ${g}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${j}-menu${j}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:D},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:D,color:oe,lineHeight:`${D}px`,textAlign:"center",background:we,cursor:"pointer",transition:`all ${g}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ne,insetInlineEnd:-F,zIndex:1,width:F,height:ie,color:oe,fontSize:w.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ie,borderStartStartRadius:0,borderStartEndRadius:G,borderEndEndRadius:G,borderEndStartRadius:0,cursor:"pointer",transition:`background ${v} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${v}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-F,borderStartStartRadius:G,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:G}}}}},o(w)),{"&-rtl":{direction:"rtl"}}),[`${ae}-header`]:{height:Ne,padding:W,color:P,lineHeight:`${Ne}px`,background:De,[`${j}-menu`]:{lineHeight:"inherit"}},[`${ae}-footer`]:{padding:q,color:ee,fontSize:I,background:Ae},[`${ae}-content`]:{flex:"auto",minHeight:0}}};var M=(0,ge.Z)("Layout",w=>[z(w)],w=>{const{colorBgLayout:j,controlHeight:ae,controlHeightLG:ee,colorText:oe,controlHeightSM:Ae,marginXXS:we,colorTextLightSolid:Ne,colorBgContainer:W}=w,P=ee*1.25;return{colorBgHeader:"#001529",colorBgBody:j,colorBgTrigger:"#002140",bodyBg:j,headerBg:"#001529",headerHeight:ae*2,headerPadding:`0 ${P}px`,headerColor:oe,footerPadding:`${Ae}px ${P}px`,footerBg:j,siderBg:"#001529",triggerHeight:ee+we*2,triggerBg:"#002140",triggerColor:Ne,zeroTriggerWidth:ee,zeroTriggerHeight:ee,lightSiderBg:W,lightTriggerBg:W,lightTriggerColor:oe}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),x=function(w,j){var ae={};for(var ee in w)Object.prototype.hasOwnProperty.call(w,ee)&&j.indexOf(ee)<0&&(ae[ee]=w[ee]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(w);oe<ee.length;oe++)j.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(w,ee[oe])&&(ae[ee[oe]]=w[ee[oe]]);return ae};const h=pe.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function E(w){let{suffixCls:j,tagName:ae,displayName:ee}=w;return oe=>pe.forwardRef((we,Ne)=>pe.createElement(oe,Object.assign({ref:Ne,suffixCls:j,tagName:ae},we)))}const b=pe.forwardRef((w,j)=>{const{prefixCls:ae,suffixCls:ee,className:oe,tagName:Ae}=w,we=x(w,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ne}=pe.useContext(Z.E_),W=Ne("layout",ae),[P,q]=M(W),D=ee?`${W}-${ee}`:W;return P(pe.createElement(Ae,Object.assign({className:Ee()(ae||D,oe,q),ref:j},we)))}),Y=pe.forwardRef((w,j)=>{const{direction:ae}=pe.useContext(Z.E_),[ee,oe]=pe.useState([]),{prefixCls:Ae,className:we,rootClassName:Ne,children:W,hasSider:P,tagName:q,style:D}=w,ie=x(w,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),F=(0,Re.Z)(ie,["suffixCls"]),{getPrefixCls:g,layout:v}=pe.useContext(Z.E_),I=g("layout",Ae),[G,xe]=M(I),De=Ee()(I,{[`${I}-has-sider`]:typeof P=="boolean"?P:ee.length>0,[`${I}-rtl`]:ae==="rtl"},v==null?void 0:v.className,we,Ne,xe),Ie=pe.useMemo(()=>({siderHook:{addSider:$e=>{oe(qe=>[].concat((0,K.Z)(qe),[$e]))},removeSider:$e=>{oe(qe=>qe.filter(Ye=>Ye!==$e))}}}),[]);return G(pe.createElement(h.Provider,{value:Ie},pe.createElement(q,Object.assign({ref:j,className:De,style:Object.assign(Object.assign({},v==null?void 0:v.style),D)},F),W)))}),te=E({tagName:"div",displayName:"Layout"})(Y),L=E({suffixCls:"header",tagName:"header",displayName:"Header"})(b),N=E({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(b),U=E({suffixCls:"content",tagName:"main",displayName:"Content"})(b);var ce=te},40875:function(Nt,Qe,T){"use strict";T.d(Qe,{J:function(){return Z}});var K=T(59301),re=T(33234),Ee=T(70425),Re=function(ge,de){var o={};for(var z in ge)Object.prototype.hasOwnProperty.call(ge,z)&&de.indexOf(z)<0&&(o[z]=ge[z]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,z=Object.getOwnPropertySymbols(ge);M<z.length;M++)de.indexOf(z[M])<0&&Object.prototype.propertyIsEnumerable.call(ge,z[M])&&(o[z[M]]=ge[z[M]]);return o};const pe=K.createContext(null),Z=K.forwardRef((ge,de)=>{const{children:o}=ge,z=Re(ge,["children"]),M=K.useContext(pe),x=K.useMemo(()=>Object.assign(Object.assign({},M),z),[M,z.prefixCls,z.mode,z.selectable]);return K.createElement(pe.Provider,{value:x},K.createElement(re.BR,null,(0,Ee.supportNodeRef)(o)?K.cloneElement(o,{ref:de}):o))});Qe.Z=pe},20834:function(Nt,Qe,T){"use strict";T.d(Qe,{default:function(){return St}});var K=T(15285),re=T(59301),Ee=T(45818),Re=T(92310),pe=T.n(Re),Z=T(36355),ge=function(ue,ne){var X={};for(var Le in ue)Object.prototype.hasOwnProperty.call(ue,Le)&&ne.indexOf(Le)<0&&(X[Le]=ue[Le]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Le=Object.getOwnPropertySymbols(ue);Pe<Le.length;Pe++)ne.indexOf(Le[Pe])<0&&Object.prototype.propertyIsEnumerable.call(ue,Le[Pe])&&(X[Le[Pe]]=ue[Le[Pe]]);return X},o=ue=>{const{prefixCls:ne,className:X,dashed:Le}=ue,Pe=ge(ue,["prefixCls","className","dashed"]),{getPrefixCls:R}=re.useContext(Z.E_),se=R("menu",ne),ve=pe()({[`${se}-item-divider-dashed`]:!!Le},X);return re.createElement(K.iz,Object.assign({className:ve},Pe))},z=T(11592),M=T(2738),x=T(6848),h=T(92343),b=(0,re.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),te=ue=>{var ne;const{className:X,children:Le,icon:Pe,title:R,danger:se}=ue,{prefixCls:ve,firstLevel:_e,direction:Oe,disableMenuItemTitleTooltip:Be,inlineCollapsed:je}=re.useContext(b),et=yt=>{const Lt=re.createElement("span",{className:`${ve}-title-content`},Le);return(!Pe||(0,h.l$)(Le)&&Le.type==="span")&&Le&&yt&&_e&&typeof Le=="string"?re.createElement("div",{className:`${ve}-inline-collapsed-noicon`},Le.charAt(0)):Lt},{siderCollapsed:We}=re.useContext(Ee.D);let Ge=R;typeof R=="undefined"?Ge=_e?Le:"":R===!1&&(Ge="");const st={title:Ge};!We&&!je&&(st.title=null,st.open=!1);const Je=(0,z.Z)(Le).length;let ct=re.createElement(K.ck,Object.assign({},(0,M.Z)(ue,["title","icon","danger"]),{className:pe()({[`${ve}-item-danger`]:se,[`${ve}-item-only-child`]:(Pe?Je+1:Je)===1},X),title:typeof R=="string"?R:void 0}),(0,h.Tm)(Pe,{className:pe()((0,h.l$)(Pe)?(ne=Pe.props)===null||ne===void 0?void 0:ne.className:"",`${ve}-item-icon`)}),et(je));return Be||(ct=re.createElement(x.Z,Object.assign({},st,{placement:Oe==="rtl"?"left":"right",overlayClassName:`${ve}-inline-collapsed-tooltip`}),ct)),ct},N=ue=>{var ne;const{popupClassName:X,icon:Le,title:Pe,theme:R}=ue,se=re.useContext(b),{prefixCls:ve,inlineCollapsed:_e,theme:Oe}=se,Be=(0,K.Xl)();let je;if(!Le)je=_e&&!Be.length&&Pe&&typeof Pe=="string"?re.createElement("div",{className:`${ve}-inline-collapsed-noicon`},Pe.charAt(0)):re.createElement("span",{className:`${ve}-title-content`},Pe);else{const We=(0,h.l$)(Pe)&&Pe.type==="span";je=re.createElement(re.Fragment,null,(0,h.Tm)(Le,{className:pe()((0,h.l$)(Le)?(ne=Le.props)===null||ne===void 0?void 0:ne.className:"",`${ve}-item-icon`)}),We?Pe:re.createElement("span",{className:`${ve}-title-content`},Pe))}const et=re.useMemo(()=>Object.assign(Object.assign({},se),{firstLevel:!1}),[se]);return re.createElement(b.Provider,{value:et},re.createElement(K.Wd,Object.assign({},(0,M.Z)(ue,["icon"]),{title:je,popupClassName:pe()(ve,X,`${ve}-${R||Oe}`)})))},U=T(18785),ce=T(70425),w=T(62892),j=T(40875),ae=function(ue,ne){var X={};for(var Le in ue)Object.prototype.hasOwnProperty.call(ue,Le)&&ne.indexOf(Le)<0&&(X[Le]=ue[Le]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Le=Object.getOwnPropertySymbols(ue);Pe<Le.length;Pe++)ne.indexOf(Le[Pe])<0&&Object.prototype.propertyIsEnumerable.call(ue,Le[Pe])&&(X[Le[Pe]]=ue[Le[Pe]]);return X};function ee(ue){return(ue||[]).map((ne,X)=>{if(ne&&typeof ne=="object"){const Le=ne,{label:Pe,children:R,key:se,type:ve}=Le,_e=ae(Le,["label","children","key","type"]),Oe=se!=null?se:`tmp-${X}`;return R||ve==="group"?ve==="group"?re.createElement(K.BW,Object.assign({key:Oe},_e,{title:Pe}),ee(R)):re.createElement(N,Object.assign({key:Oe},_e,{title:Pe}),ee(R)):ve==="divider"?re.createElement(o,Object.assign({key:Oe},_e)):re.createElement(te,Object.assign({key:Oe},_e),Pe)}return null}).filter(ne=>ne)}function oe(ue){return re.useMemo(()=>ue&&ee(ue),[ue])}var Ae=T(64993),we=T(17313),Ne=T(8378),W=T(13826),P=T(29878),q=T(83116),D=T(37613),F=ue=>{const{componentCls:ne,motionDurationSlow:X,horizontalLineHeight:Le,colorSplit:Pe,lineWidth:R,lineType:se,itemPaddingInline:ve}=ue;return{[`${ne}-horizontal`]:{lineHeight:Le,border:0,borderBottom:`${R}px ${se} ${Pe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ne}-item, ${ne}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ve},[`> ${ne}-item:hover,
> ${ne}-item-active,
> ${ne}-submenu ${ne}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ne}-item, ${ne}-submenu-title`]:{transition:[`border-color ${X}`,`background ${X}`].join(",")},[`${ne}-submenu-arrow`]:{display:"none"}}}},v=ue=>{let{componentCls:ne,menuArrowOffset:X}=ue;return{[`${ne}-rtl`]:{direction:"rtl"},[`${ne}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ne}-rtl${ne}-vertical,
${ne}-submenu-rtl ${ne}-vertical`]:{[`${ne}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${X})`},"&::after":{transform:`rotate(45deg) translateY(${X})`}}}}};const I=ue=>Object.assign({},(0,we.oN)(ue));var xe=(ue,ne)=>{const{componentCls:X,itemColor:Le,itemSelectedColor:Pe,groupTitleColor:R,itemBg:se,subMenuItemBg:ve,itemSelectedBg:_e,activeBarHeight:Oe,activeBarWidth:Be,activeBarBorderWidth:je,motionDurationSlow:et,motionEaseInOut:We,motionEaseOut:Ge,itemPaddingInline:st,motionDurationMid:Je,itemHoverColor:ct,lineType:yt,colorSplit:Lt,itemDisabledColor:xt,dangerItemColor:bt,dangerItemHoverColor:Ct,dangerItemSelectedColor:y,dangerItemActiveBg:S,dangerItemSelectedBg:rt,itemHoverBg:H,itemActiveBg:be,menuSubMenuBg:er,horizontalItemSelectedColor:ke,horizontalItemSelectedBg:Ue,horizontalItemBorderRadius:Ke,horizontalItemHoverBg:J,popupBg:he}=ue;return{[`${X}-${ne}, ${X}-${ne} > ${X}`]:{color:Le,background:se,[`&${X}-root:focus-visible`]:Object.assign({},I(ue)),[`${X}-item-group-title`]:{color:R},[`${X}-submenu-selected`]:{[`> ${X}-submenu-title`]:{color:Pe}},[`${X}-item-disabled, ${X}-submenu-disabled`]:{color:`${xt} !important`},[`${X}-item:not(${X}-item-selected):not(${X}-submenu-selected)`]:{[`&:hover, > ${X}-submenu-title:hover`]:{color:ct}},[`&:not(${X}-horizontal)`]:{[`${X}-item:not(${X}-item-selected)`]:{"&:hover":{backgroundColor:H},"&:active":{backgroundColor:be}},[`${X}-submenu-title`]:{"&:hover":{backgroundColor:H},"&:active":{backgroundColor:be}}},[`${X}-item-danger`]:{color:bt,[`&${X}-item:hover`]:{[`&:not(${X}-item-selected):not(${X}-submenu-selected)`]:{color:Ct}},[`&${X}-item:active`]:{background:S}},[`${X}-item a`]:{"&, &:hover":{color:"inherit"}},[`${X}-item-selected`]:{color:Pe,[`&${X}-item-danger`]:{color:y},"a, a:hover":{color:"inherit"}},[`& ${X}-item-selected`]:{backgroundColor:_e,[`&${X}-item-danger`]:{backgroundColor:rt}},[`${X}-item, ${X}-submenu-title`]:{[`&:not(${X}-item-disabled):focus-visible`]:Object.assign({},I(ue))},[`&${X}-submenu > ${X}`]:{backgroundColor:er},[`&${X}-popup > ${X}`]:{backgroundColor:he},[`&${X}-horizontal`]:Object.assign(Object.assign({},ne==="dark"?{borderBottom:0}:{}),{[`> ${X}-item, > ${X}-submenu`]:{top:je,marginTop:-je,marginBottom:0,borderRadius:Ke,"&::after":{position:"absolute",insetInline:st,bottom:0,borderBottom:`${Oe}px solid transparent`,transition:`border-color ${et} ${We}`,content:'""'},"&:hover, &-active, &-open":{background:J,"&::after":{borderBottomWidth:Oe,borderBottomColor:ke}},"&-selected":{color:ke,backgroundColor:Ue,"&:hover":{backgroundColor:Ue},"&::after":{borderBottomWidth:Oe,borderBottomColor:ke}}}}),[`&${X}-root`]:{[`&${X}-inline, &${X}-vertical`]:{borderInlineEnd:`${je}px ${yt} ${Lt}`}},[`&${X}-inline`]:{[`${X}-sub${X}-inline`]:{background:ve},[`${X}-item, ${X}-submenu-title`]:je&&Be?{width:`calc(100% + ${je}px)`}:{},[`${X}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Be}px solid ${Pe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Je} ${Ge}`,`opacity ${Je} ${Ge}`].join(","),content:'""'},[`&${X}-item-danger`]:{"&::after":{borderInlineEndColor:y}}},[`${X}-selected, ${X}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Je} ${We}`,`opacity ${Je} ${We}`].join(",")}}}}}};const De=ue=>{const{componentCls:ne,itemHeight:X,itemMarginInline:Le,padding:Pe,menuArrowSize:R,marginXS:se,itemMarginBlock:ve}=ue,_e=Pe+R+se;return{[`${ne}-item`]:{position:"relative",overflow:"hidden"},[`${ne}-item, ${ne}-submenu-title`]:{height:X,lineHeight:`${X}px`,paddingInline:Pe,overflow:"hidden",textOverflow:"ellipsis",marginInline:Le,marginBlock:ve,width:`calc(100% - ${Le*2}px)`},[`> ${ne}-item,
> ${ne}-submenu > ${ne}-submenu-title`]:{height:X,lineHeight:`${X}px`},[`${ne}-item-group-list ${ne}-submenu-title,
${ne}-submenu-title`]:{paddingInlineEnd:_e}}};var $e=ue=>{const{componentCls:ne,iconCls:X,itemHeight:Le,colorTextLightSolid:Pe,dropdownWidth:R,controlHeightLG:se,motionDurationMid:ve,motionEaseOut:_e,paddingXL:Oe,itemMarginInline:Be,fontSizeLG:je,motionDurationSlow:et,paddingXS:We,boxShadowSecondary:Ge,collapsedWidth:st,collapsedIconSize:Je}=ue,ct={height:Le,lineHeight:`${Le}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ne]:{"&-inline, &-vertical":Object.assign({[`&${ne}-root`]:{boxShadow:"none"}},De(ue))},[`${ne}-submenu-popup`]:{[`${ne}-vertical`]:Object.assign(Object.assign({},De(ue)),{boxShadow:Ge})}},{[`${ne}-submenu-popup ${ne}-vertical${ne}-sub`]:{minWidth:R,maxHeight:`calc(100vh - ${se*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ne}-inline`]:{width:"100%",[`&${ne}-root`]:{[`${ne}-item, ${ne}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${et}`,`background ${et}`,`padding ${ve} ${_e}`].join(","),[`> ${ne}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ne}-sub${ne}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ne}-submenu > ${ne}-submenu-title`]:ct,[`& ${ne}-item-group-title`]:{paddingInlineStart:Oe}},[`${ne}-item`]:ct}},{[`${ne}-inline-collapsed`]:{width:st,[`&${ne}-root`]:{[`${ne}-item, ${ne}-submenu ${ne}-submenu-title`]:{[`> ${ne}-inline-collapsed-noicon`]:{fontSize:je,textAlign:"center"}}},[`> ${ne}-item,
> ${ne}-item-group > ${ne}-item-group-list > ${ne}-item,
> ${ne}-item-group > ${ne}-item-group-list > ${ne}-submenu > ${ne}-submenu-title,
> ${ne}-submenu > ${ne}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${je/2}px - ${Be}px)`,textOverflow:"clip",[`
${ne}-submenu-arrow,
${ne}-submenu-expand-icon
`]:{opacity:0},[`${ne}-item-icon, ${X}`]:{margin:0,fontSize:Je,lineHeight:`${Le}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ne}-item-icon, ${X}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ne}-item-icon, ${X}`]:{display:"none"},"a, a:hover":{color:Pe}},[`${ne}-item-group-title`]:Object.assign(Object.assign({},we.vS),{paddingInline:We})}}]};const qe=ue=>{const{componentCls:ne,motionDurationSlow:X,motionDurationMid:Le,motionEaseInOut:Pe,motionEaseOut:R,iconCls:se,iconSize:ve,iconMarginInlineEnd:_e}=ue;return{[`${ne}-item, ${ne}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${X}`,`background ${X}`,`padding ${X} ${Pe}`].join(","),[`${ne}-item-icon, ${se}`]:{minWidth:ve,fontSize:ve,transition:[`font-size ${Le} ${R}`,`margin ${X} ${Pe}`,`color ${X}`].join(","),"+ span":{marginInlineStart:_e,opacity:1,transition:[`opacity ${X} ${Pe}`,`margin ${X}`,`color ${X}`].join(",")}},[`${ne}-item-icon`]:Object.assign({},(0,we.Ro)()),[`&${ne}-item-only-child`]:{[`> ${se}, > ${ne}-item-icon`]:{marginInlineEnd:0}}},[`${ne}-item-disabled, ${ne}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ne}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ye=ue=>{const{componentCls:ne,motionDurationSlow:X,motionEaseInOut:Le,borderRadius:Pe,menuArrowSize:R,menuArrowOffset:se}=ue;return{[`${ne}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ue.margin,width:R,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${X} ${Le}, opacity ${X}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:R*.6,height:R*.15,backgroundColor:"currentcolor",borderRadius:Pe,transition:[`background ${X} ${Le}`,`transform ${X} ${Le}`,`top ${X} ${Le}`,`color ${X} ${Le}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${se})`},"&::after":{transform:`rotate(-45deg) translateY(${se})`}}}}},Ve=ue=>{const{antCls:ne,componentCls:X,fontSize:Le,motionDurationSlow:Pe,motionDurationMid:R,motionEaseInOut:se,paddingXS:ve,padding:_e,colorSplit:Oe,lineWidth:Be,zIndexPopup:je,borderRadiusLG:et,subMenuItemBorderRadius:We,menuArrowSize:Ge,menuArrowOffset:st,lineType:Je,menuPanelMaskInset:ct,groupTitleLineHeight:yt,groupTitleFontSize:Lt}=ue;return[{"":{[`${X}`]:Object.assign(Object.assign({},(0,we.dF)()),{"&-hidden":{display:"none"}})},[`${X}-submenu-hidden`]:{display:"none"}},{[X]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,we.Wf)(ue)),(0,we.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Le,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Pe} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${X}-item`]:{flex:"none"}},[`${X}-item, ${X}-submenu, ${X}-submenu-title`]:{borderRadius:ue.itemBorderRadius},[`${X}-item-group-title`]:{padding:`${ve}px ${_e}px`,fontSize:Lt,lineHeight:yt,transition:`all ${Pe}`},[`&-horizontal ${X}-submenu`]:{transition:[`border-color ${Pe} ${se}`,`background ${Pe} ${se}`].join(",")},[`${X}-submenu, ${X}-submenu-inline`]:{transition:[`border-color ${Pe} ${se}`,`background ${Pe} ${se}`,`padding ${R} ${se}`].join(",")},[`${X}-submenu ${X}-sub`]:{cursor:"initial",transition:[`background ${Pe} ${se}`,`padding ${Pe} ${se}`].join(",")},[`${X}-title-content`]:{transition:`color ${Pe}`},[`${X}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${X}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Oe,borderStyle:Je,borderWidth:0,borderTopWidth:Be,marginBlock:Be,padding:0,"&-dashed":{borderStyle:"dashed"}}}),qe(ue)),{[`${X}-item-group`]:{[`${X}-item-group-list`]:{margin:0,padding:0,[`${X}-item, ${X}-submenu-title`]:{paddingInline:`${Le*2}px ${_e}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:je,borderRadius:et,boxShadow:"none",transformOrigin:"0 0",[`&${X}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${ct}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:ct},"\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:ue.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ue.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ue.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ue.paddingXS},[`> ${X}`]:Object.assign(Object.assign(Object.assign({borderRadius:et},qe(ue)),Ye(ue)),{[`${X}-item, ${X}-submenu > ${X}-submenu-title`]:{borderRadius:We},[`${X}-submenu-title::after`]:{transition:`transform ${Pe} ${se}`}})}}),Ye(ue)),{[`&-inline-collapsed ${X}-submenu-arrow,
&-inline ${X}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${st})`},"&::after":{transform:`rotate(45deg) translateX(-${st})`}},[`${X}-submenu-open${X}-submenu-inline > ${X}-submenu-title > ${X}-submenu-arrow`]:{transform:`translateY(-${Ge*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${st})`},"&::before":{transform:`rotate(45deg) translateX(${st})`}}})},{[`${ne}-layout-header`]:{[X]:{lineHeight:"inherit"}}}]};var ht=(ue,ne)=>(0,q.Z)("Menu",Le=>{if(ne===!1)return[];const{colorBgElevated:Pe,colorPrimary:R,colorTextLightSolid:se,controlHeightLG:ve,fontSize:_e,darkItemColor:Oe,darkDangerItemColor:Be,darkItemBg:je,darkSubMenuItemBg:et,darkItemSelectedColor:We,darkItemSelectedBg:Ge,darkDangerItemSelectedBg:st,darkItemHoverBg:Je,darkGroupTitleColor:ct,darkItemHoverColor:yt,darkItemDisabledColor:Lt,darkDangerItemHoverColor:xt,darkDangerItemSelectedColor:bt,darkDangerItemActiveBg:Ct}=Le,y=_e/7*5,S=(0,D.TS)(Le,{menuArrowSize:y,menuHorizontalHeight:ve*1.15,menuArrowOffset:`${y*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Pe}),rt=(0,D.TS)(S,{itemColor:Oe,itemHoverColor:yt,groupTitleColor:ct,itemSelectedColor:We,itemBg:je,popupBg:je,subMenuItemBg:et,itemActiveBg:"transparent",itemSelectedBg:Ge,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Je,itemDisabledColor:Lt,dangerItemColor:Be,dangerItemHoverColor:xt,dangerItemSelectedColor:bt,dangerItemActiveBg:Ct,dangerItemSelectedBg:st,menuSubMenuBg:et,horizontalItemSelectedColor:se,horizontalItemSelectedBg:R});return[Ve(S),F(S),$e(S),xe(S,"light"),xe(rt,"dark"),v(S),(0,Ne.Z)(S),(0,W.oN)(S,"slide-up"),(0,W.oN)(S,"slide-down"),(0,P._y)(S,"zoom-big")]},Le=>{const{colorPrimary:Pe,colorError:R,colorTextDisabled:se,colorErrorBg:ve,colorText:_e,colorTextDescription:Oe,colorBgContainer:Be,colorFillAlter:je,colorFillContent:et,lineWidth:We,lineWidthBold:Ge,controlItemBgActive:st,colorBgTextHover:Je,controlHeightLG:ct,lineHeight:yt,colorBgElevated:Lt,marginXXS:xt,padding:bt,fontSize:Ct,controlHeightSM:y,fontSizeLG:S,colorTextLightSolid:rt,colorErrorHover:H}=Le,be=new Ae.C(rt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Le.zIndexPopupBase+50,radiusItem:Le.borderRadiusLG,itemBorderRadius:Le.borderRadiusLG,radiusSubMenuItem:Le.borderRadiusSM,subMenuItemBorderRadius:Le.borderRadiusSM,colorItemText:_e,itemColor:_e,colorItemTextHover:_e,itemHoverColor:_e,colorItemTextHoverHorizontal:Pe,horizontalItemHoverColor:Pe,colorGroupTitle:Oe,groupTitleColor:Oe,colorItemTextSelected:Pe,itemSelectedColor:Pe,colorItemTextSelectedHorizontal:Pe,horizontalItemSelectedColor:Pe,colorItemBg:Be,itemBg:Be,colorItemBgHover:Je,itemHoverBg:Je,colorItemBgActive:et,itemActiveBg:st,colorSubItemBg:je,subMenuItemBg:je,colorItemBgSelected:st,itemSelectedBg:st,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Ge,activeBarHeight:Ge,colorActiveBarBorderSize:We,activeBarBorderWidth:We,colorItemTextDisabled:se,itemDisabledColor:se,colorDangerItemText:R,dangerItemColor:R,colorDangerItemTextHover:R,dangerItemHoverColor:R,colorDangerItemTextSelected:R,dangerItemSelectedColor:R,colorDangerItemBgActive:ve,dangerItemActiveBg:ve,colorDangerItemBgSelected:ve,dangerItemSelectedBg:ve,itemMarginInline:Le.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ct,groupTitleLineHeight:yt,collapsedWidth:ct*2,popupBg:Lt,itemMarginBlock:xt,itemPaddingInline:bt,horizontalLineHeight:`${ct*1.15}px`,iconSize:Ct,iconMarginInlineEnd:y-Ct,collapsedIconSize:S,groupTitleFontSize:Ct,darkItemDisabledColor:new Ae.C(rt).setAlpha(.25).toRgbString(),darkItemColor:be,darkDangerItemColor:R,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:rt,darkItemSelectedBg:Pe,darkDangerItemSelectedBg:R,darkItemHoverBg:"transparent",darkGroupTitleColor:be,darkItemHoverColor:rt,darkDangerItemHoverColor:H,darkDangerItemSelectedColor:rt,darkDangerItemActiveBg:R}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(ue),mt=function(ue,ne){var X={};for(var Le in ue)Object.prototype.hasOwnProperty.call(ue,Le)&&ne.indexOf(Le)<0&&(X[Le]=ue[Le]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Le=Object.getOwnPropertySymbols(ue);Pe<Le.length;Pe++)ne.indexOf(Le[Pe])<0&&Object.prototype.propertyIsEnumerable.call(ue,Le[Pe])&&(X[Le[Pe]]=ue[Le[Pe]]);return X},gt=(0,re.forwardRef)((ue,ne)=>{var X,Le;const Pe=re.useContext(j.Z),R=Pe||{},{getPrefixCls:se,getPopupContainer:ve,direction:_e,menu:Oe}=re.useContext(Z.E_),Be=se(),{prefixCls:je,className:et,style:We,theme:Ge="light",expandIcon:st,_internalDisableMenuItemTitleTooltip:Je,inlineCollapsed:ct,siderCollapsed:yt,items:Lt,children:xt,rootClassName:bt,mode:Ct,selectable:y,onClick:S,overflowedIndicatorPopupClassName:rt}=ue,H=mt(ue,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),be=(0,M.Z)(H,["collapsedWidth"]),er=oe(Lt)||xt;(X=R.validator)===null||X===void 0||X.call(R,{mode:Ct});const ke=(0,ce.useEvent)(function(){var jt;S==null||S.apply(void 0,arguments),(jt=R.onClick)===null||jt===void 0||jt.call(R)}),Ue=R.mode||Ct,Ke=y!=null?y:R.selectable,J=re.useMemo(()=>yt!==void 0?yt:ct,[ct,yt]),he={horizontal:{motionName:`${Be}-slide-up`},inline:(0,w.Z)(Be),other:{motionName:`${Be}-zoom-big`}},Te=se("menu",je||R.prefixCls),[Fe,$]=ht(Te,!Pe),Et=pe()(`${Te}-${Ge}`,Oe==null?void 0:Oe.className,et);let Se;if(typeof st=="function")Se=st;else if(st===null||st===!1)Se=null;else if(R.expandIcon===null||R.expandIcon===!1)Se=null;else{const jt=st!=null?st:R.expandIcon;Se=(0,h.Tm)(jt,{className:pe()(`${Te}-submenu-expand-icon`,(0,h.l$)(jt)?(Le=jt.props)===null||Le===void 0?void 0:Le.className:"")})}const Pt=re.useMemo(()=>({prefixCls:Te,inlineCollapsed:J||!1,direction:_e,firstLevel:!0,theme:Ge,mode:Ue,disableMenuItemTitleTooltip:Je}),[Te,J,_e,Je,Ge]);return Fe(re.createElement(j.Z.Provider,{value:null},re.createElement(b.Provider,{value:Pt},re.createElement(K.ZP,Object.assign({getPopupContainer:ve,overflowedIndicator:re.createElement(U.Z,null),overflowedIndicatorPopupClassName:pe()(Te,`${Te}-${Ge}`,rt),mode:Ue,selectable:Ke,onClick:ke},be,{inlineCollapsed:J,style:Object.assign(Object.assign({},Oe==null?void 0:Oe.style),We),className:Et,prefixCls:Te,direction:_e,defaultMotions:he,expandIcon:Se,ref:ne,rootClassName:pe()(bt,$)}),er))))});const Tt=(0,re.forwardRef)((ue,ne)=>{const X=(0,re.useRef)(null),Le=re.useContext(Ee.D);return(0,re.useImperativeHandle)(ne,()=>({menu:X.current,focus:Pe=>{var R;(R=X.current)===null||R===void 0||R.focus(Pe)}})),re.createElement(gt,Object.assign({ref:X},ue,Le))});Tt.Item=te,Tt.SubMenu=N,Tt.Divider=o,Tt.ItemGroup=K.BW;var St=Tt},5112:function(Nt,Qe,T){"use strict";T.d(Qe,{ZP:function(){return v}});var K=T(92310),re=T.n(K),Ee=T(18929),Re=T(26112),pe=T(59301),Z=T(36355),ge=T(19716);const de=pe.createContext(null),o=de.Provider;var z=de;const M=pe.createContext(null),x=M.Provider;var h=T(5630),E=T(8654),b=T(1684),Y=T(32441),te=T(17313),L=T(83116),N=T(37613);const U=I=>{const{componentCls:G,antCls:xe}=I,De=`${G}-group`;return{[De]:Object.assign(Object.assign({},(0,te.Wf)(I)),{display:"inline-block",fontSize:0,[`&${De}-rtl`]:{direction:"rtl"},[`${xe}-badge ${xe}-badge-count`]:{zIndex:1},[`> ${xe}-badge:not(:first-child) > ${xe}-button-wrapper`]:{borderInlineStart:"none"}})}},ce=I=>{const{componentCls:G,wrapperMarginInlineEnd:xe,colorPrimary:De,radioSize:Ie,motionDurationSlow:$e,motionDurationMid:qe,motionEaseInOutCirc:Ye,colorBgContainer:Ve,colorBorder:ht,lineWidth:mt,dotSize:kt,colorBgContainerDisabled:gt,colorTextDisabled:Tt,paddingXS:St,dotColorDisabled:ue,lineType:ne,radioDotDisabledSize:X,wireframe:Le,colorWhite:Pe}=I,R=`${G}-inner`;return{[`${G}-wrapper`]:Object.assign(Object.assign({},(0,te.Wf)(I)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:xe,cursor:"pointer",[`&${G}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:I.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${G}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${mt}px ${ne} ${De}`,borderRadius:"50%",visibility:"hidden",content:'""'},[G]:Object.assign(Object.assign({},(0,te.Wf)(I)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${G}-wrapper:hover &,
&:hover ${R}`]:{borderColor:De},[`${G}-input:focus-visible + ${R}`]:Object.assign({},(0,te.oN)(I)),[`${G}:hover::after, ${G}-wrapper:hover &::after`]:{visibility:"visible"},[`${G}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:Ie,height:Ie,marginBlockStart:Ie/-2,marginInlineStart:Ie/-2,backgroundColor:Le?De:Pe,borderBlockStart:0,borderInlineStart:0,borderRadius:Ie,transform:"scale(0)",opacity:0,transition:`all ${$e} ${Ye}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:Ie,height:Ie,backgroundColor:Ve,borderColor:ht,borderStyle:"solid",borderWidth:mt,borderRadius:"50%",transition:`all ${qe}`},[`${G}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${G}-checked`]:{[R]:{borderColor:De,backgroundColor:Le?Ve:De,"&::after":{transform:`scale(${kt/Ie})`,opacity:1,transition:`all ${$e} ${Ye}`}}},[`${G}-disabled`]:{cursor:"not-allowed",[R]:{backgroundColor:gt,borderColor:ht,cursor:"not-allowed","&::after":{backgroundColor:ue}},[`${G}-input`]:{cursor:"not-allowed"},[`${G}-disabled + span`]:{color:Tt,cursor:"not-allowed"},[`&${G}-checked`]:{[R]:{"&::after":{transform:`scale(${X/Ie})`}}}},[`span${G} + *`]:{paddingInlineStart:St,paddingInlineEnd:St}})}},w=I=>{const{buttonColor:G,controlHeight:xe,componentCls:De,lineWidth:Ie,lineType:$e,colorBorder:qe,motionDurationSlow:Ye,motionDurationMid:Ve,buttonPaddingInline:ht,fontSize:mt,buttonBg:kt,fontSizeLG:gt,controlHeightLG:Tt,controlHeightSM:St,paddingXS:ue,borderRadius:ne,borderRadiusSM:X,borderRadiusLG:Le,buttonCheckedBg:Pe,buttonSolidCheckedColor:R,colorTextDisabled:se,colorBgContainerDisabled:ve,buttonCheckedBgDisabled:_e,buttonCheckedColorDisabled:Oe,colorPrimary:Be,colorPrimaryHover:je,colorPrimaryActive:et,buttonSolidCheckedBg:We,buttonSolidCheckedHoverBg:Ge,buttonSolidCheckedActiveBg:st}=I;return{[`${De}-button-wrapper`]:{position:"relative",display:"inline-block",height:xe,margin:0,paddingInline:ht,paddingBlock:0,color:G,fontSize:mt,lineHeight:`${xe-Ie*2}px`,background:kt,border:`${Ie}px ${$e} ${qe}`,borderBlockStartWidth:Ie+.02,borderInlineStartWidth:0,borderInlineEndWidth:Ie,cursor:"pointer",transition:[`color ${Ve}`,`background ${Ve}`,`box-shadow ${Ve}`].join(","),a:{color:G},[`> ${De}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-Ie,insetInlineStart:-Ie,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:Ie,paddingInline:0,backgroundColor:qe,transition:`background-color ${Ye}`,content:'""'}},"&:first-child":{borderInlineStart:`${Ie}px ${$e} ${qe}`,borderStartStartRadius:ne,borderEndStartRadius:ne},"&:last-child":{borderStartEndRadius:ne,borderEndEndRadius:ne},"&:first-child:last-child":{borderRadius:ne},[`${De}-group-large &`]:{height:Tt,fontSize:gt,lineHeight:`${Tt-Ie*2}px`,"&:first-child":{borderStartStartRadius:Le,borderEndStartRadius:Le},"&:last-child":{borderStartEndRadius:Le,borderEndEndRadius:Le}},[`${De}-group-small &`]:{height:St,paddingInline:ue-Ie,paddingBlock:0,lineHeight:`${St-Ie*2}px`,"&:first-child":{borderStartStartRadius:X,borderEndStartRadius:X},"&:last-child":{borderStartEndRadius:X,borderEndEndRadius:X}},"&:hover":{position:"relative",color:Be},"&:has(:focus-visible)":Object.assign({},(0,te.oN)(I)),[`${De}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${De}-button-wrapper-disabled)`]:{zIndex:1,color:Be,background:Pe,borderColor:Be,"&::before":{backgroundColor:Be},"&:first-child":{borderColor:Be},"&:hover":{color:je,borderColor:je,"&::before":{backgroundColor:je}},"&:active":{color:et,borderColor:et,"&::before":{backgroundColor:et}}},[`${De}-group-solid &-checked:not(${De}-button-wrapper-disabled)`]:{color:R,background:We,borderColor:We,"&:hover":{color:R,background:Ge,borderColor:Ge},"&:active":{color:R,background:st,borderColor:st}},"&-disabled":{color:se,backgroundColor:ve,borderColor:qe,cursor:"not-allowed","&:first-child, &:hover":{color:se,backgroundColor:ve,borderColor:qe}},[`&-disabled${De}-button-wrapper-checked`]:{color:Oe,backgroundColor:_e,borderColor:qe,boxShadow:"none"}}}},j=I=>I-4*2;var ae=(0,L.Z)("Radio",I=>{const{controlOutline:G,controlOutlineWidth:xe,radioSize:De}=I,Ie=`0 0 0 ${xe}px ${G}`,$e=Ie,qe=j(De),Ye=(0,N.TS)(I,{radioDotDisabledSize:qe,radioFocusShadow:Ie,radioButtonFocusShadow:$e});return[U(Ye),ce(Ye),w(Ye)]},I=>{const{wireframe:G,padding:xe,marginXS:De,lineWidth:Ie,fontSizeLG:$e,colorText:qe,colorBgContainer:Ye,colorTextDisabled:Ve,controlItemBgActiveDisabled:ht,colorTextLightSolid:mt,colorPrimary:kt,colorPrimaryHover:gt,colorPrimaryActive:Tt}=I,St=4,ue=$e,ne=G?j(ue):ue-(St+Ie)*2;return{radioSize:ue,dotSize:ne,dotColorDisabled:Ve,buttonSolidCheckedColor:mt,buttonSolidCheckedBg:kt,buttonSolidCheckedHoverBg:gt,buttonSolidCheckedActiveBg:Tt,buttonBg:Ye,buttonCheckedBg:Ye,buttonColor:qe,buttonCheckedBgDisabled:ht,buttonCheckedColorDisabled:Ve,buttonPaddingInline:xe-Ie,wrapperMarginInlineEnd:De}}),ee=T(14088),oe=T(4572),Ae=function(I,G){var xe={};for(var De in I)Object.prototype.hasOwnProperty.call(I,De)&&G.indexOf(De)<0&&(xe[De]=I[De]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,De=Object.getOwnPropertySymbols(I);Ie<De.length;Ie++)G.indexOf(De[Ie])<0&&Object.prototype.propertyIsEnumerable.call(I,De[Ie])&&(xe[De[Ie]]=I[De[Ie]]);return xe};const we=(I,G)=>{var xe,De;const Ie=pe.useContext(z),$e=pe.useContext(M),{getPrefixCls:qe,direction:Ye,radio:Ve}=pe.useContext(Z.E_),ht=pe.useRef(null),mt=(0,E.sQ)(G,ht),{isFormItemInput:kt}=pe.useContext(Y.aM),gt=et=>{var We,Ge;(We=I.onChange)===null||We===void 0||We.call(I,et),(Ge=Ie==null?void 0:Ie.onChange)===null||Ge===void 0||Ge.call(Ie,et)},{prefixCls:Tt,className:St,rootClassName:ue,children:ne,style:X}=I,Le=Ae(I,["prefixCls","className","rootClassName","children","style"]),Pe=qe("radio",Tt),R=((Ie==null?void 0:Ie.optionType)||$e)==="button",se=R?`${Pe}-button`:Pe,[ve,_e]=ae(Pe),Oe=Object.assign({},Le),Be=pe.useContext(b.Z);Ie&&(Oe.name=Ie.name,Oe.onChange=gt,Oe.checked=I.value===Ie.value,Oe.disabled=(xe=Oe.disabled)!==null&&xe!==void 0?xe:Ie.disabled),Oe.disabled=(De=Oe.disabled)!==null&&De!==void 0?De:Be;const je=re()(`${se}-wrapper`,{[`${se}-wrapper-checked`]:Oe.checked,[`${se}-wrapper-disabled`]:Oe.disabled,[`${se}-wrapper-rtl`]:Ye==="rtl",[`${se}-wrapper-in-form-item`]:kt},Ve==null?void 0:Ve.className,St,ue,_e);return ve(pe.createElement(ee.Z,{component:"Radio",disabled:Oe.disabled},pe.createElement("label",{className:je,style:Object.assign(Object.assign({},Ve==null?void 0:Ve.style),X),onMouseEnter:I.onMouseEnter,onMouseLeave:I.onMouseLeave},pe.createElement(h.Z,Object.assign({},Oe,{className:re()(Oe.className,!R&&oe.A),type:"radio",prefixCls:se,ref:mt})),ne!==void 0?pe.createElement("span",null,ne):null)))};var W=pe.forwardRef(we);const P=pe.forwardRef((I,G)=>{const{getPrefixCls:xe,direction:De}=pe.useContext(Z.E_),[Ie,$e]=(0,Ee.Z)(I.defaultValue,{value:I.value}),qe=We=>{const Ge=Ie,st=We.target.value;"value"in I||$e(st);const{onChange:Je}=I;Je&&st!==Ge&&Je(We)},{prefixCls:Ye,className:Ve,rootClassName:ht,options:mt,buttonStyle:kt="outline",disabled:gt,children:Tt,size:St,style:ue,id:ne,onMouseEnter:X,onMouseLeave:Le,onFocus:Pe,onBlur:R}=I,se=xe("radio",Ye),ve=`${se}-group`,[_e,Oe]=ae(se);let Be=Tt;mt&&mt.length>0&&(Be=mt.map(We=>typeof We=="string"||typeof We=="number"?pe.createElement(W,{key:We.toString(),prefixCls:se,disabled:gt,value:We,checked:Ie===We},We):pe.createElement(W,{key:`radio-group-value-options-${We.value}`,prefixCls:se,disabled:We.disabled||gt,value:We.value,checked:Ie===We.value,title:We.title,style:We.style},We.label)));const je=(0,ge.Z)(St),et=re()(ve,`${ve}-${kt}`,{[`${ve}-${je}`]:je,[`${ve}-rtl`]:De==="rtl"},Ve,ht,Oe);return _e(pe.createElement("div",Object.assign({},(0,Re.Z)(I,{aria:!0,data:!0}),{className:et,style:ue,onMouseEnter:X,onMouseLeave:Le,onFocus:Pe,onBlur:R,id:ne,ref:G}),pe.createElement(o,{value:{onChange:qe,value:Ie,disabled:I.disabled,name:I.name,optionType:I.optionType}},Be)))});var q=pe.memo(P),D=function(I,G){var xe={};for(var De in I)Object.prototype.hasOwnProperty.call(I,De)&&G.indexOf(De)<0&&(xe[De]=I[De]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,De=Object.getOwnPropertySymbols(I);Ie<De.length;Ie++)G.indexOf(De[Ie])<0&&Object.prototype.propertyIsEnumerable.call(I,De[Ie])&&(xe[De[Ie]]=I[De[Ie]]);return xe};const ie=(I,G)=>{const{getPrefixCls:xe}=pe.useContext(Z.E_),{prefixCls:De}=I,Ie=D(I,["prefixCls"]),$e=xe("radio",De);return pe.createElement(x,{value:"button"},pe.createElement(W,Object.assign({prefixCls:$e},Ie,{type:"radio",ref:G})))};var F=pe.forwardRef(ie);const g=W;g.Button=F,g.Group=q,g.__ANT_RADIO=!0;var v=g},8378:function(Nt,Qe){"use strict";const T=K=>({[K.componentCls]:{[`${K.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${K.motionDurationMid} ${K.motionEaseInOut},
opacity ${K.motionDurationMid} ${K.motionEaseInOut} !important`}},[`${K.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${K.motionDurationMid} ${K.motionEaseInOut},
opacity ${K.motionDurationMid} ${K.motionEaseInOut} !important`}}});Qe.Z=T},92899:function(Nt,Qe,T){"use strict";T.d(Qe,{Fm:function(){return x}});var K=T(93083),re=T(95406);const Ee=new K.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Re=new K.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),pe=new K.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Z=new K.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ge=new K.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),de=new K.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 K.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),z=new K.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),M={"move-up":{inKeyframes:o,outKeyframes:z},"move-down":{inKeyframes:Ee,outKeyframes:Re},"move-left":{inKeyframes:pe,outKeyframes:Z},"move-right":{inKeyframes:ge,outKeyframes:de}},x=(h,E)=>{const{antCls:b}=h,Y=`${b}-${E}`,{inKeyframes:te,outKeyframes:L}=M[E];return[(0,re.R)(Y,te,L,h.motionDurationMid),{[`
${Y}-enter,
${Y}-appear
`]:{opacity:0,animationTimingFunction:h.motionEaseOutCirc},[`${Y}-leave`]:{animationTimingFunction:h.motionEaseInOutCirc}}]}},13826:function(Nt,Qe,T){"use strict";T.d(Qe,{Qt:function(){return pe},Uw:function(){return Re},fJ:function(){return Ee},ly:function(){return Z},oN:function(){return x}});var K=T(93083),re=T(95406);const Ee=new K.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Re=new K.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),pe=new K.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Z=new K.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),ge=new K.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),de=new K.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),o=new K.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),z=new K.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),M={"slide-up":{inKeyframes:Ee,outKeyframes:Re},"slide-down":{inKeyframes:pe,outKeyframes:Z},"slide-left":{inKeyframes:ge,outKeyframes:de},"slide-right":{inKeyframes:o,outKeyframes:z}},x=(h,E)=>{const{antCls:b}=h,Y=`${b}-${E}`,{inKeyframes:te,outKeyframes:L}=M[E];return[(0,re.R)(Y,te,L,h.motionDurationMid),{[`
${Y}-enter,
${Y}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:h.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${Y}-leave`]:{animationTimingFunction:h.motionEaseInQuint}}]}},19447:function(Nt,Qe,T){"use strict";T.d(Qe,{ZP:function(){return pe},fS:function(){return Ee},qN:function(){return re}});var K=T(47585);const re=8;function Ee(Z){const ge=re,{contentRadius:de,limitVerticalRadius:o}=Z,z=de>12?de+2:12;return{dropdownArrowOffset:z,dropdownArrowOffsetVertical:o?ge:z}}function Re(Z,ge){return Z?ge:{}}function pe(Z,ge){const{componentCls:de,sizePopupArrow:o,borderRadiusXS:z,borderRadiusOuter:M,boxShadowPopoverArrow:x}=Z,{colorBg:h,contentRadius:E=Z.borderRadiusLG,limitVerticalRadius:b,arrowDistance:Y=0,arrowPlacement:te={left:!0,right:!0,top:!0,bottom:!0}}=ge,{dropdownArrowOffsetVertical:L,dropdownArrowOffset:N}=Ee({contentRadius:E,limitVerticalRadius:b});return{[de]:Object.assign(Object.assign(Object.assign(Object.assign({[`${de}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,K.r)(o,z,M,h,x)),{"&:before":{background:h}})]},Re(!!te.top,{[[`&-placement-top ${de}-arrow`,`&-placement-topLeft ${de}-arrow`,`&-placement-topRight ${de}-arrow`].join(",")]:{bottom:Y,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${de}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${de}-arrow`]:{left:{_skip_check_:!0,value:N}},[`&-placement-topRight ${de}-arrow`]:{right:{_skip_check_:!0,value:N}}})),Re(!!te.bottom,{[[`&-placement-bottom ${de}-arrow`,`&-placement-bottomLeft ${de}-arrow`,`&-placement-bottomRight ${de}-arrow`].join(",")]:{top:Y,transform:"translateY(-100%)"},[`&-placement-bottom ${de}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${de}-arrow`]:{left:{_skip_check_:!0,value:N}},[`&-placement-bottomRight ${de}-arrow`]:{right:{_skip_check_:!0,value:N}}})),Re(!!te.left,{[[`&-placement-left ${de}-arrow`,`&-placement-leftTop ${de}-arrow`,`&-placement-leftBottom ${de}-arrow`].join(",")]:{right:{_skip_check_:!0,value:Y},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${de}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${de}-arrow`]:{top:L},[`&-placement-leftBottom ${de}-arrow`]:{bottom:L}})),Re(!!te.right,{[[`&-placement-right ${de}-arrow`,`&-placement-rightTop ${de}-arrow`,`&-placement-rightBottom ${de}-arrow`].join(",")]:{left:{_skip_check_:!0,value:Y},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${de}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${de}-arrow`]:{top:L},[`&-placement-rightBottom ${de}-arrow`]:{bottom:L}}))}}},47585:function(Nt,Qe,T){"use strict";T.d(Qe,{r:function(){return K}});const K=(re,Ee,Re,pe,Z)=>{const ge=re/2,de=0,o=ge,z=Re*1/Math.sqrt(2),M=ge-Re*(1-1/Math.sqrt(2)),x=ge-Ee*(1/Math.sqrt(2)),h=Re*(Math.sqrt(2)-1)+Ee*(1/Math.sqrt(2)),E=2*ge-x,b=h,Y=2*ge-z,te=M,L=2*ge-de,N=o,U=ge*Math.sqrt(2)+Re*(Math.sqrt(2)-2),ce=Re*(Math.sqrt(2)-1);return{pointerEvents:"none",width:re,height:re,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:re,height:re/2,background:pe,clipPath:{_multi_value_:!0,value:[`polygon(${ce}px 100%, 50% ${ce}px, ${2*ge-ce}px 100%, ${ce}px 100%)`,`path('M ${de} ${o} A ${Re} ${Re} 0 0 0 ${z} ${M} L ${x} ${h} A ${Ee} ${Ee} 0 0 1 ${E} ${b} L ${Y} ${te} A ${Re} ${Re} 0 0 0 ${L} ${N} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:U,height:U,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Ee}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:Z,zIndex:0,background:"transparent"}}}},33166:function(Nt,Qe,T){"use strict";T.d(Qe,{i:function(){return K}});const K=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},45157:function(Nt,Qe,T){"use strict";T.d(Qe,{Z:function(){return re}});var K=T(33166);function re(Ee,Re){return K.i.reduce((pe,Z)=>{const ge=Ee[`${Z}1`],de=Ee[`${Z}3`],o=Ee[`${Z}6`],z=Ee[`${Z}7`];return Object.assign(Object.assign({},pe),Re(Z,{lightColor:ge,lightBorderColor:de,darkColor:o,textColor:z}))},{})}},6848:function(Nt,Qe,T){"use strict";T.d(Qe,{Z:function(){return we}});var K=T(59301),re=T(92310),Ee=T.n(re),Re=T(55477),pe=T(18929),Z=T(62892),ge=T(79676),de=T(92343),o=T(36355),z=T(33234),M=T(88088),x=T(17313),h=T(29878),E=T(19447),b=T(45157),Y=T(37613),te=T(83116);const L=Ne=>{const{componentCls:W,tooltipMaxWidth:P,tooltipColor:q,tooltipBg:D,tooltipBorderRadius:ie,zIndexPopup:F,controlHeight:g,boxShadowSecondary:v,paddingSM:I,paddingXS:G,tooltipRadiusOuter:xe}=Ne;return[{[W]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,x.Wf)(Ne)),{position:"absolute",zIndex:F,display:"block",width:"max-content",maxWidth:P,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":D,[`${W}-inner`]:{minWidth:g,minHeight:g,padding:`${I/2}px ${G}px`,color:q,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:D,borderRadius:ie,boxShadow:v,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${W}-inner`]:{borderRadius:Math.min(ie,E.qN)}},[`${W}-content`]:{position:"relative"}}),(0,b.Z)(Ne,(De,Ie)=>{let{darkColor:$e}=Ie;return{[`&${W}-${De}`]:{[`${W}-inner`]:{backgroundColor:$e},[`${W}-arrow`]:{"--antd-arrow-background-color":$e}}}})),{"&-rtl":{direction:"rtl"}})},(0,E.ZP)((0,Y.TS)(Ne,{borderRadiusOuter:xe}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:ie,limitVerticalRadius:!0}),{[`${W}-pure`]:{position:"relative",maxWidth:"none",margin:Ne.sizePopupArrow}}]};var N=(Ne,W)=>(0,te.Z)("Tooltip",q=>{if(W===!1)return[];const{borderRadius:D,colorTextLightSolid:ie,colorBgDefault:F,borderRadiusOuter:g}=q,v=(0,Y.TS)(q,{tooltipMaxWidth:250,tooltipColor:ie,tooltipBorderRadius:D,tooltipBg:F,tooltipRadiusOuter:g>4?4:g});return[L(v),(0,h._y)(q,"zoom-big-fast")]},q=>{let{zIndexPopupBase:D,colorBgSpotlight:ie}=q;return{zIndexPopup:D+70,colorBgDefault:ie}},{resetStyle:!1})(Ne),U=T(36785);function ce(Ne,W){const P=(0,U.o2)(W),q=Ee()({[`${Ne}-${W}`]:W&&P}),D={},ie={};return W&&!P&&(D.background=W,ie["--antd-arrow-background-color"]=W),{className:q,overlayStyle:D,arrowStyle:ie}}var j=Ne=>{const{prefixCls:W,className:P,placement:q="top",title:D,color:ie,overlayInnerStyle:F}=Ne,{getPrefixCls:g}=K.useContext(o.E_),v=g("tooltip",W),[I,G]=N(v,!0),xe=ce(v,ie),De=xe.arrowStyle,Ie=Object.assign(Object.assign({},F),xe.overlayStyle),$e=Ee()(G,v,`${v}-pure`,`${v}-placement-${q}`,P,xe.className);return I(K.createElement("div",{className:$e,style:De},K.createElement("div",{className:`${v}-arrow`}),K.createElement(Re.G,Object.assign({},Ne,{className:G,prefixCls:v,overlayInnerStyle:Ie}),D)))},ae=function(Ne,W){var P={};for(var q in Ne)Object.prototype.hasOwnProperty.call(Ne,q)&&W.indexOf(q)<0&&(P[q]=Ne[q]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var D=0,q=Object.getOwnPropertySymbols(Ne);D<q.length;D++)W.indexOf(q[D])<0&&Object.prototype.propertyIsEnumerable.call(Ne,q[D])&&(P[q[D]]=Ne[q[D]]);return P};const ee=(Ne,W)=>{const P={},q=Object.assign({},Ne);return W.forEach(D=>{Ne&&D in Ne&&(P[D]=Ne[D],delete q[D])}),{picked:P,omitted:q}};function oe(Ne,W){const P=Ne.type;if((P.__ANT_BUTTON===!0||Ne.type==="button")&&Ne.props.disabled||P.__ANT_SWITCH===!0&&(Ne.props.disabled||Ne.props.loading)||P.__ANT_RADIO===!0&&Ne.props.disabled){const{picked:q,omitted:D}=ee(Ne.props.style,["position","left","right","top","bottom","float","display","zIndex"]),ie=Object.assign(Object.assign({display:"inline-block"},q),{cursor:"not-allowed",width:Ne.props.block?"100%":void 0}),F=Object.assign(Object.assign({},D),{pointerEvents:"none"}),g=(0,de.Tm)(Ne,{style:F,className:null});return K.createElement("span",{style:ie,className:Ee()(Ne.props.className,`${W}-disabled-compatible-wrapper`)},g)}return Ne}const Ae=K.forwardRef((Ne,W)=>{var P,q;const{prefixCls:D,openClassName:ie,getTooltipContainer:F,overlayClassName:g,color:v,overlayInnerStyle:I,children:G,afterOpenChange:xe,afterVisibleChange:De,destroyTooltipOnHide:Ie,arrow:$e=!0,title:qe,overlay:Ye,builtinPlacements:Ve,arrowPointAtCenter:ht=!1,autoAdjustOverflow:mt=!0}=Ne,kt=!!$e,[,gt]=(0,M.Z)(),{getPopupContainer:Tt,getPrefixCls:St,direction:ue}=K.useContext(o.E_),ne=K.useRef(null),X=()=>{var Ue;(Ue=ne.current)===null||Ue===void 0||Ue.forceAlign()};K.useImperativeHandle(W,()=>({forceAlign:X,forcePopupAlign:()=>{X()}}));const[Le,Pe]=(0,pe.Z)(!1,{value:(P=Ne.open)!==null&&P!==void 0?P:Ne.visible,defaultValue:(q=Ne.defaultOpen)!==null&&q!==void 0?q:Ne.defaultVisible}),R=!qe&&!Ye&&qe!==0,se=Ue=>{var Ke,J;Pe(R?!1:Ue),R||((Ke=Ne.onOpenChange)===null||Ke===void 0||Ke.call(Ne,Ue),(J=Ne.onVisibleChange)===null||J===void 0||J.call(Ne,Ue))},ve=K.useMemo(()=>{var Ue,Ke;let J=ht;return typeof $e=="object"&&(J=(Ke=(Ue=$e.pointAtCenter)!==null&&Ue!==void 0?Ue:$e.arrowPointAtCenter)!==null&&Ke!==void 0?Ke:ht),Ve||(0,ge.Z)({arrowPointAtCenter:J,autoAdjustOverflow:mt,arrowWidth:kt?gt.sizePopupArrow:0,borderRadius:gt.borderRadius,offset:gt.marginXXS,visibleFirst:!0})},[ht,$e,Ve,gt]),_e=K.useMemo(()=>qe===0?qe:Ye||qe||"",[Ye,qe]),Oe=K.createElement(z.BR,null,typeof _e=="function"?_e():_e),{getPopupContainer:Be,placement:je="top",mouseEnterDelay:et=.1,mouseLeaveDelay:We=.1,overlayStyle:Ge,rootClassName:st}=Ne,Je=ae(Ne,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),ct=St("tooltip",D),yt=St(),Lt=Ne["data-popover-inject"];let xt=Le;!("open"in Ne)&&!("visible"in Ne)&&R&&(xt=!1);const bt=oe((0,de.l$)(G)&&!(0,de.M2)(G)?G:K.createElement("span",null,G),ct),Ct=bt.props,y=!Ct.className||typeof Ct.className=="string"?Ee()(Ct.className,ie||`${ct}-open`):Ct.className,[S,rt]=N(ct,!Lt),H=ce(ct,v),be=H.arrowStyle,er=Object.assign(Object.assign({},I),H.overlayStyle),ke=Ee()(g,{[`${ct}-rtl`]:ue==="rtl"},H.className,st,rt);return S(K.createElement(Re.Z,Object.assign({},Je,{showArrow:kt,placement:je,mouseEnterDelay:et,mouseLeaveDelay:We,prefixCls:ct,overlayClassName:ke,overlayStyle:Object.assign(Object.assign({},be),Ge),getTooltipContainer:Be||F||Tt,ref:ne,builtinPlacements:ve,overlay:Oe,visible:xt,onVisibleChange:se,afterVisibleChange:xe!=null?xe:De,overlayInnerStyle:er,arrowContent:K.createElement("span",{className:`${ct}-arrow-content`}),motion:{motionName:(0,Z.m)(yt,"zoom-big-fast",Ne.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!Ie}),xt?(0,de.Tm)(bt,{className:y}):bt))});Ae._InternalPanelDoNotUseOrYouWillBeFired=j;var we=Ae},64018:function(){var Nt,Qe,T,K=!1,re,Ee;window.PR_SHOULD_USE_CONTINUATION=!0;var Re,pe;(function(){var Z=window,ge=["break,continue,do,else,for,if,return,while"],de=[ge,"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=[de,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],z=[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"],M=[o,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],x=[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"],h="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",E=[o,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],b="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",Y=[ge,"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"],te=[ge,"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"],L=[ge,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],N=[z,x,M,E,b,Y,te,L],U=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,ce="str",w="kwd",j="com",ae="typ",ee="lit",oe="pun",Ae="pln",we="tag",Ne="dec",W="src",P="atn",q="atv",D="nocode",ie="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function F(ue){for(var ne=0,X=!1,Le=!1,Pe=0,R=ue.length;Pe<R;++Pe){var se=ue[Pe];if(se.ignoreCase)Le=!0;else if(/[a-z]/i.test(se.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){X=!0,Le=!1;break}}var ve={b:8,t:9,n:10,v:11,f:12,r:13};function _e(We){var Ge=We.charCodeAt(0);if(Ge!==92)return Ge;var st=We.charAt(1);return Ge=ve[st],Ge||("0"<=st&&st<="7"?parseInt(We.substring(1),8):st==="u"||st==="x"?parseInt(We.substring(2),16):We.charCodeAt(1))}function Oe(We){if(We<32)return(We<16?"\\x0":"\\x")+We.toString(16);var Ge=String.fromCharCode(We);return Ge==="\\"||Ge==="-"||Ge==="]"||Ge==="^"?"\\"+Ge:Ge}function Be(We){var Ge=We.substring(1,We.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")),st=[],Je=Ge[0]==="^",ct=["["];Je&&ct.push("^");for(var yt=Je?1:0,Lt=Ge.length;yt<Lt;++yt){var xt=Ge[yt];if(/\\[bdsw]/i.test(xt))ct.push(xt);else{var bt=_e(xt),Ct;yt+2<Lt&&Ge[yt+1]==="-"?(Ct=_e(Ge[yt+2]),yt+=2):Ct=bt,st.push([bt,Ct]),Ct<65||bt>122||(Ct<65||bt>90||st.push([Math.max(65,bt)|32,Math.min(Ct,90)|32]),Ct<97||bt>122||st.push([Math.max(97,bt)&-33,Math.min(Ct,122)&-33]))}}st.sort(function(H,be){return H[0]-be[0]||be[1]-H[1]});for(var y=[],S=[],yt=0;yt<st.length;++yt){var rt=st[yt];rt[0]<=S[1]+1?S[1]=Math.max(S[1],rt[1]):y.push(S=rt)}for(var yt=0;yt<y.length;++yt){var rt=y[yt];ct.push(Oe(rt[0])),rt[1]>rt[0]&&(rt[1]+1>rt[0]&&ct.push("-"),ct.push(Oe(rt[1])))}return ct.push("]"),ct.join("")}function je(We){for(var Ge=We.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")),st=Ge.length,Je=[],ct=0,yt=0;ct<st;++ct){var Lt=Ge[ct];if(Lt==="(")++yt;else if(Lt.charAt(0)==="\\"){var xt=+Lt.substring(1);xt&&(xt<=yt?Je[xt]=-1:Ge[ct]=Oe(xt))}}for(var ct=1;ct<Je.length;++ct)Je[ct]===-1&&(Je[ct]=++ne);for(var ct=0,yt=0;ct<st;++ct){var Lt=Ge[ct];if(Lt==="(")++yt,Je[yt]||(Ge[ct]="(?:");else if(Lt.charAt(0)==="\\"){var xt=+Lt.substring(1);xt&&xt<=yt&&(Ge[ct]="\\"+Je[xt])}}for(var ct=0;ct<st;++ct)Ge[ct]==="^"&&Ge[ct+1]!=="^"&&(Ge[ct]="");if(We.ignoreCase&&X)for(var ct=0;ct<st;++ct){var Lt=Ge[ct],bt=Lt.charAt(0);Lt.length>=2&&bt==="["?Ge[ct]=Be(Lt):bt!=="\\"&&(Ge[ct]=Lt.replace(/[a-zA-Z]/g,function(S){var rt=S.charCodeAt(0);return"["+String.fromCharCode(rt&-33,rt|32)+"]"}))}return Ge.join("")}for(var et=[],Pe=0,R=ue.length;Pe<R;++Pe){var se=ue[Pe];if(se.global||se.multiline)throw new Error(""+se);et.push("(?:"+je(se)+")")}return new RegExp(et.join("|"),Le?"gi":"g")}function g(ue,ne){var X=/(?:^|\s)nocode(?:\s|$)/,Le=[],Pe=0,R=[],se=0;function ve(_e){var Oe=_e.nodeType;if(Oe==1){if(X.test(_e.className))return;for(var Be=_e.firstChild;Be;Be=Be.nextSibling)ve(Be);var je=_e.nodeName.toLowerCase();(je==="br"||je==="li")&&(Le[se]=`
`,R[se<<1]=Pe++,R[se++<<1|1]=_e)}else if(Oe==3||Oe==4){var et=_e.nodeValue;et.length&&(ne?et=et.replace(/\r\n?/g,`
`):et=et.replace(/[ \t\r\n]+/g," "),Le[se]=et,R[se<<1]=Pe,Pe+=et.length,R[se++<<1|1]=_e)}}return ve(ue),{sourceCode:Le.join("").replace(/\n$/,""),spans:R}}function v(ue,ne,X,Le,Pe){if(X){var R={sourceNode:ue,pre:1,langExtension:null,numberLines:null,sourceCode:X,spans:null,basePos:ne,decorations:null};Le(R),Pe.push.apply(Pe,R.decorations)}}var I=/\S/;function G(ue){for(var ne=void 0,X=ue.firstChild;X;X=X.nextSibling){var Le=X.nodeType;ne=Le===1?ne?ue:X:Le===3&&I.test(X.nodeValue)?ue:ne}return ne===ue?void 0:ne}function xe(ue,ne){var X={},Le;(function(){for(var se=ue.concat(ne),ve=[],_e={},Oe=0,Be=se.length;Oe<Be;++Oe){var je=se[Oe],et=je[3];if(et)for(var We=et.length;--We>=0;)X[et.charAt(We)]=je;var Ge=je[1],st=""+Ge;_e.hasOwnProperty(st)||(ve.push(Ge),_e[st]=null)}ve.push(/[\0-\uffff]/),Le=F(ve)})();var Pe=ne.length,R=function(se){for(var ve=se.sourceCode,_e=se.basePos,Oe=se.sourceNode,Be=[_e,Ae],je=0,et=ve.match(Le)||[],We={},Ge=0,st=et.length;Ge<st;++Ge){var Je=et[Ge],ct=We[Je],yt=void 0,Lt;if(typeof ct=="string")Lt=!1;else{var xt=X[Je.charAt(0)];if(xt)yt=Je.match(xt[1]),ct=xt[0];else{for(var bt=0;bt<Pe;++bt)if(xt=ne[bt],yt=Je.match(xt[1]),yt){ct=xt[0];break}yt||(ct=Ae)}Lt=ct.length>=5&&ct.substring(0,5)==="lang-",Lt&&!(yt&&typeof yt[1]=="string")&&(Lt=!1,ct=W),Lt||(We[Je]=ct)}var Ct=je;if(je+=Je.length,!Lt)Be.push(_e+Ct,ct);else{var y=yt[1],S=Je.indexOf(y),rt=S+y.length;yt[2]&&(rt=Je.length-yt[2].length,S=rt-y.length);var H=ct.substring(5);v(Oe,_e+Ct,Je.substring(0,S),R,Be),v(Oe,_e+Ct+S,y,ht(H,y),Be),v(Oe,_e+Ct+rt,Je.substring(rt),R,Be)}}se.decorations=Be};return R}function De(ue){var ne=[],X=[];ue.tripleQuotedStrings?ne.push([ce,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):ue.multiLineStrings?ne.push([ce,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):ne.push([ce,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),ue.verbatimStrings&&X.push([ce,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Le=ue.hashComments;Le&&(ue.cStyleComments?(Le>1?ne.push([j,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):ne.push([j,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),X.push([ce,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):ne.push([j,/^#[^\r\n]*/,null,"#"])),ue.cStyleComments&&(X.push([j,/^\/\/[^\r\n]*/,null]),X.push([j,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Pe=ue.regexLiterals;if(Pe){var R=Pe>1?"":`
\r`,se=R?".":"[\\S\\s]",ve="/(?=[^/*"+R+"])(?:[^/\\x5B\\x5C"+R+"]|\\x5C"+se+"|\\x5B(?:[^\\x5C\\x5D"+R+"]|\\x5C"+se+")*(?:\\x5D|$))+/";X.push(["lang-regex",RegExp("^"+ie+"("+ve+")")])}var _e=ue.types;_e&&X.push([ae,_e]);var Oe=(""+ue.keywords).replace(/^ | $/g,"");Oe.length&&X.push([w,new RegExp("^(?:"+Oe.replace(/[\s,]+/g,"|")+")\\b"),null]),ne.push([Ae,/^\s+/,null,` \r
\xA0`]);var Be="^.[^\\s\\w.$@'\"`/\\\\]*";return ue.regexLiterals&&(Be+="(?!s*/)"),X.push([ee,/^@[a-z_$][a-z_$@0-9]*/i,null],[ae,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[Ae,/^[a-z_$][a-z_$@0-9]*/i,null],[ee,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[Ae,/^\\[\s\S]?/,null],[oe,new RegExp(Be),null]),xe(ne,X)}var Ie=De({keywords:N,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function $e(ue,ne,X){for(var Le=/(?:^|\s)nocode(?:\s|$)/,Pe=/\r\n?|\n/,R=ue.ownerDocument,se=R.createElement("li");ue.firstChild;)se.appendChild(ue.firstChild);var ve=[se];function _e(Ge){var st=Ge.nodeType;if(st==1&&!Le.test(Ge.className))if(Ge.nodeName==="br")Oe(Ge),Ge.parentNode&&Ge.parentNode.removeChild(Ge);else for(var Je=Ge.firstChild;Je;Je=Je.nextSibling)_e(Je);else if((st==3||st==4)&&X){var ct=Ge.nodeValue,yt=ct.match(Pe);if(yt){var Lt=ct.substring(0,yt.index);Ge.nodeValue=Lt;var xt=ct.substring(yt.index+yt[0].length);if(xt){var bt=Ge.parentNode;bt.insertBefore(R.createTextNode(xt),Ge.nextSibling)}Oe(Ge),Lt||Ge.parentNode.removeChild(Ge)}}}function Oe(Ge){for(;!Ge.nextSibling;)if(Ge=Ge.parentNode,!Ge)return;function st(yt,Lt){var xt=Lt?yt.cloneNode(!1):yt,bt=yt.parentNode;if(bt){var Ct=st(bt,1),y=yt.nextSibling;Ct.appendChild(xt);for(var S=y;S;S=y)y=S.nextSibling,Ct.appendChild(S)}return xt}for(var Je=st(Ge.nextSibling,0),ct;(ct=Je.parentNode)&&ct.nodeType===1;)Je=ct;ve.push(Je)}for(var Be=0;Be<ve.length;++Be)_e(ve[Be]);ne===(ne|0)&&ve[0].setAttribute("value",ne);var je=R.createElement("ol");je.className="linenums";for(var et=Math.max(0,ne-1|0)||0,Be=0,We=ve.length;Be<We;++Be)se=ve[Be],se.className="L"+(Be+et)%10,se.firstChild||se.appendChild(R.createTextNode("\xA0")),je.appendChild(se);ue.appendChild(je)}function qe(ue){var ne=/\bMSIE\s(\d+)/.exec(navigator.userAgent);ne=ne&&+ne[1]<=8;var X=/\n/g,Le=ue.sourceCode,Pe=Le.length,R=0,se=ue.spans,ve=se.length,_e=0,Oe=ue.decorations,Be=Oe.length,je=0;Oe[Be]=Pe;var et,We;for(We=et=0;We<Be;)Oe[We]!==Oe[We+2]?(Oe[et++]=Oe[We++],Oe[et++]=Oe[We++]):We+=2;for(Be=et,We=et=0;We<Be;){for(var Ge=Oe[We],st=Oe[We+1],Je=We+2;Je+2<=Be&&Oe[Je+1]===st;)Je+=2;Oe[et++]=Ge,Oe[et++]=st,We=Je}Be=Oe.length=et;var ct=ue.sourceNode,yt="";ct&&(yt=ct.style.display,ct.style.display="none");try{for(var Lt=null;_e<ve;){var xt=se[_e],bt=se[_e+2]||Pe,Ct=Oe[je+2]||Pe,Je=Math.min(bt,Ct),y=se[_e+1],S;if(y.nodeType!==1&&(S=Le.substring(R,Je))){ne&&(S=S.replace(X,"\r")),y.nodeValue=S;var rt=y.ownerDocument,H=rt.createElement("span");H.className=Oe[je+1];var be=y.parentNode;be.replaceChild(H,y),H.appendChild(y),R<bt&&(se[_e+1]=y=rt.createTextNode(Le.substring(Je,bt)),be.insertBefore(y,H.nextSibling))}R=Je,R>=bt&&(_e+=2),R>=Ct&&(je+=2)}}finally{ct&&(ct.style.display=yt)}}var Ye={};function Ve(ue,ne){for(var X=ne.length;--X>=0;){var Le=ne[X];Ye.hasOwnProperty(Le)?Z.console&&console.warn("cannot override language handler %s",Le):Ye[Le]=ue}}function ht(ue,ne){return ue&&Ye.hasOwnProperty(ue)||(ue=/^\s*</.test(ne)?"default-markup":"default-code"),Ye[ue]}Ve(Ie,["default-code"]),Ve(xe([],[[Ae,/^[^<?]+/],[Ne,/^<!\w[^>]*(?:>|$)/],[j,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[oe,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),Ve(xe([[Ae,/^[\s]+/,null,` \r
`],[q,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[we,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[P,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[oe,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),Ve(xe([],[[q,/^[\s\S]+/]]),["uq.val"]),Ve(De({keywords:z,hashComments:!0,cStyleComments:!0,types:U}),["c","cc","cpp","cxx","cyc","m"]),Ve(De({keywords:"null,true,false"}),["json"]),Ve(De({keywords:x,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:U}),["cs"]),Ve(De({keywords:M,cStyleComments:!0}),["java"]),Ve(De({keywords:L,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Ve(De({keywords:Y,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Ve(De({keywords:b,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Ve(De({keywords:te,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Ve(De({keywords:E,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Ve(De({keywords:h,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Ve(xe([],[[ce,/^[\s\S]+/]]),["regex"]);function mt(ue){var ne=ue.langExtension;try{var X=g(ue.sourceNode,ue.pre),Le=X.sourceCode;ue.sourceCode=Le,ue.spans=X.spans,ue.basePos=0,ht(ne,Le)(ue),qe(ue)}catch(Pe){Z.console&&console.log(Pe&&Pe.stack||Pe)}}function kt(ue,ne,X){var Le=X||!1,Pe=ne||null,R=document.createElement("div");R.innerHTML="<pre>"+ue+"</pre>",R=R.firstChild,Le&&$e(R,Le,!0);var se={langExtension:Pe,numberLines:Le,sourceNode:R,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return mt(se),R.innerHTML}function gt(ue,ne){var X=ne||document.body,Le=X.ownerDocument||document;function Pe(xt){return X.getElementsByTagName(xt)}for(var R=[Pe("pre"),Pe("code"),Pe("xmp")],se=[],ve=0;ve<R.length;++ve)for(var _e=0,Oe=R[ve].length;_e<Oe;++_e)se.push(R[ve][_e]);R=null;var Be=Date;Be.now||(Be={now:function(){return+new Date}});var je=0,et=/\blang(?:uage)?-([\w.]+)(?!\S)/,We=/\bprettyprint\b/,Ge=/\bprettyprinted\b/,st=/pre|xmp/i,Je=/^code$/i,ct=/^(?:pre|code|xmp)$/i,yt={};function Lt(){for(var xt=Z.PR_SHOULD_USE_CONTINUATION?Be.now()+250:1/0;je<se.length&&Be.now()<xt;je++){for(var bt=se[je],Ct=yt,y=bt;y=y.previousSibling;){var S=y.nodeType,rt=(S===7||S===8)&&y.nodeValue;if(rt?!/^\??prettify\b/.test(rt):S!==3||/\S/.test(y.nodeValue))break;if(rt){Ct={},rt.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Se,Pt,jt){Ct[Pt]=jt});break}}var H=bt.className;if((Ct!==yt||We.test(H))&&!Ge.test(H)){for(var be=!1,er=bt.parentNode;er;er=er.parentNode){var ke=er.tagName;if(ct.test(ke)&&er.className&&We.test(er.className)){be=!0;break}}if(!be){bt.className+=" prettyprinted";var Ue=Ct.lang;if(!Ue){Ue=H.match(et);var Ke;!Ue&&(Ke=G(bt))&&Je.test(Ke.tagName)&&(Ue=Ke.className.match(et)),Ue&&(Ue=Ue[1])}var J;if(st.test(bt.tagName))J=1;else{var he=bt.currentStyle,Te=Le.defaultView,Fe=he?he.whiteSpace:Te&&Te.getComputedStyle?Te.getComputedStyle(bt,null).getPropertyValue("white-space"):0;J=Fe&&Fe.substring(0,3)==="pre"}var $=Ct.linenums;($=$==="true"||+$)||($=H.match(/\blinenums\b(?::(\d+))?/),$=$?$[1]&&$[1].length?+$[1]:!0:!1),$&&$e(bt,$,J);var Et={langExtension:Ue,sourceNode:bt,numberLines:$,pre:J,sourceCode:null,basePos:null,spans:null,decorations:null};mt(Et)}}}je<se.length?Z.setTimeout(Lt,250):typeof ue=="function"&&ue()}Lt()}var Tt=Z.PR={createSimpleLexer:xe,registerLangHandler:Ve,sourceDecorator:De,PR_ATTRIB_NAME:P,PR_ATTRIB_VALUE:q,PR_COMMENT:j,PR_DECLARATION:Ne,PR_KEYWORD:w,PR_LITERAL:ee,PR_NOCODE:D,PR_PLAIN:Ae,PR_PUNCTUATION:oe,PR_SOURCE:W,PR_STRING:ce,PR_TAG:we,PR_TYPE:ae,prettyPrintOne:K?Z.prettyPrintOne=kt:Re=kt,prettyPrint:pe=K?Z.prettyPrint=gt:pe=gt},St=Z.define;typeof St=="function"&&St.amd&&St("google-code-prettify",[],function(){return Tt})})()},25769:function(Nt,Qe,T){"use strict";var K=T(98040),re={"text/plain":"Text","text/html":"Url",default:"Text"},Ee="Copy to clipboard: #{key}, Enter";function Re(Z){var ge=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return Z.replace(/#{\s*key\s*}/g,ge)}function pe(Z,ge){var de,o,z,M,x,h,E=!1;ge||(ge={}),de=ge.debug||!1;try{z=K(),M=document.createRange(),x=document.getSelection(),h=document.createElement("span"),h.textContent=Z,h.ariaHidden="true",h.style.all="unset",h.style.position="fixed",h.style.top=0,h.style.clip="rect(0, 0, 0, 0)",h.style.whiteSpace="pre",h.style.webkitUserSelect="text",h.style.MozUserSelect="text",h.style.msUserSelect="text",h.style.userSelect="text",h.addEventListener("copy",function(Y){if(Y.stopPropagation(),ge.format)if(Y.preventDefault(),typeof Y.clipboardData=="undefined"){de&&console.warn("unable to use e.clipboardData"),de&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var te=re[ge.format]||re.default;window.clipboardData.setData(te,Z)}else Y.clipboardData.clearData(),Y.clipboardData.setData(ge.format,Z);ge.onCopy&&(Y.preventDefault(),ge.onCopy(Y.clipboardData))}),document.body.appendChild(h),M.selectNodeContents(h),x.addRange(M);var b=document.execCommand("copy");if(!b)throw new Error("copy command was unsuccessful");E=!0}catch(Y){de&&console.error("unable to copy using execCommand: ",Y),de&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(ge.format||"text",Z),ge.onCopy&&ge.onCopy(window.clipboardData),E=!0}catch(te){de&&console.error("unable to copy using clipboardData: ",te),de&&console.error("falling back to prompt"),o=Re("message"in ge?ge.message:Ee),window.prompt(o,Z)}}finally{x&&(typeof x.removeRange=="function"?x.removeRange(M):x.removeAllRanges()),h&&document.body.removeChild(h),z()}return E}Nt.exports=pe},53184:function(Nt,Qe,T){"use strict";var K,re;function Ee(Re,pe,Z){var ge=function(de,o){return Re.js_beautify(de,o)};return ge.js=Re.js_beautify,ge.css=pe.css_beautify,ge.html=Z.html_beautify,ge.js_beautify=Re.js_beautify,ge.css_beautify=pe.css_beautify,ge.html_beautify=Z.html_beautify,ge}K=[T(58553),T(87804),T(40998)],re=function(Re,pe,Z){return Ee(Re,pe,Z)}.apply(Qe,K),re!==void 0&&(Nt.exports=re)},87804:function(Nt,Qe){var T,K;(function(){var re;(function(){"use strict";var Re=[,,function(de){function o(x){this.__parent=x,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 x=new o(this.__parent);return x.set_indent(this.__indent_count,this.__alignment_count),x},o.prototype.item=function(x){return x<0?this.__items[this.__items.length+x]:this.__items[x]},o.prototype.has_match=function(x){for(var h=this.__items.length-1;h>=0;h--)if(this.__items[h].match(x))return!0;return!1},o.prototype.set_indent=function(x,h){this.is_empty()&&(this.__indent_count=x||0,this.__alignment_count=h||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 x=this.__parent.current_line;return x.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),x.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),x.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,x.__items[0]===" "&&(x.__items.splice(0,1),x.__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(x){this.__items.push(x);var h=x.lastIndexOf(`
`);h!==-1?this.__character_count=x.length-h:this.__character_count+=x.length},o.prototype.pop=function(){var x=null;return this.is_empty()||(x=this.__items.pop(),this.__character_count-=x.length),x},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 x="";return this.is_empty()?this.__parent.indent_empty_lines&&(x=this.__parent.get_indent_string(this.__indent_count)):(x=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),x+=this.__items.join("")),x};function z(x,h){this.__cache=[""],this.__indent_size=x.indent_size,this.__indent_string=x.indent_char,x.indent_with_tabs||(this.__indent_string=new Array(x.indent_size+1).join(x.indent_char)),h=h||"",x.indent_level>0&&(h=new Array(x.indent_level+1).join(this.__indent_string)),this.__base_string=h,this.__base_string_length=h.length}z.prototype.get_indent_size=function(x,h){var E=this.__base_string_length;return h=h||0,x<0&&(E=0),E+=x*this.__indent_size,E+=h,E},z.prototype.get_indent_string=function(x,h){var E=this.__base_string;return h=h||0,x<0&&(x=0,E=""),h+=x*this.__indent_size,this.__ensure_cache(h),E+=this.__cache[h],E},z.prototype.__ensure_cache=function(x){for(;x>=this.__cache.length;)this.__add_column()},z.prototype.__add_column=function(){var x=this.__cache.length,h=0,E="";this.__indent_size&&x>=this.__indent_size&&(h=Math.floor(x/this.__indent_size),x-=h*this.__indent_size,E=new Array(h+1).join(this.__indent_string)),x&&(E+=new Array(x+1).join(" ")),this.__cache.push(E)};function M(x,h){this.__indent_cache=new z(x,h),this.raw=!1,this._end_with_newline=x.end_with_newline,this.indent_size=x.indent_size,this.wrap_line_length=x.wrap_line_length,this.indent_empty_lines=x.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()}M.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},M.prototype.get_line_number=function(){return this.__lines.length},M.prototype.get_indent_string=function(x,h){return this.__indent_cache.get_indent_string(x,h)},M.prototype.get_indent_size=function(x,h){return this.__indent_cache.get_indent_size(x,h)},M.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},M.prototype.add_new_line=function(x){return this.is_empty()||!x&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},M.prototype.get_code=function(x){this.trim(!0);var h=this.current_line.pop();h&&(h[h.length-1]===`
`&&(h=h.replace(/\n+$/g,"")),this.current_line.push(h)),this._end_with_newline&&this.__add_outputline();var E=this.__lines.join(`
`);return x!==`
`&&(E=E.replace(/[\n]/g,x)),E},M.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},M.prototype.set_indent=function(x,h){return x=x||0,h=h||0,this.next_line.set_indent(x,h),this.__lines.length>1?(this.current_line.set_indent(x,h),!0):(this.current_line.set_indent(),!1)},M.prototype.add_raw_token=function(x){for(var h=0;h<x.newlines;h++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(x.whitespace_before),this.current_line.push(x.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},M.prototype.add_token=function(x){this.__add_space_before_token(),this.current_line.push(x),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},M.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(" "))},M.prototype.remove_indent=function(x){for(var h=this.__lines.length;x<h;)this.__lines[x]._remove_indent(),x++;this.current_line._remove_wrap_indent()},M.prototype.trim=function(x){for(x=x===void 0?!1:x,this.current_line.trim();x&&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},M.prototype.just_added_newline=function(){return this.current_line.is_empty()},M.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},M.prototype.ensure_empty_line_above=function(x,h){for(var E=this.__lines.length-2;E>=0;){var b=this.__lines[E];if(b.is_empty())break;if(b.item(0).indexOf(x)!==0&&b.item(-1)!==h){this.__lines.splice(E+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}E--}},de.exports.Output=M},,,,function(de){function o(x,h){this.raw_options=z(x,h),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(x,h){var E=this.raw_options[x],b=h||[];return typeof E=="object"?E!==null&&typeof E.concat=="function"&&(b=E.concat()):typeof E=="string"&&(b=E.split(/[^a-zA-Z0-9_\/\-]+/)),b},o.prototype._get_boolean=function(x,h){var E=this.raw_options[x],b=E===void 0?!!h:!!E;return b},o.prototype._get_characters=function(x,h){var E=this.raw_options[x],b=h||"";return typeof E=="string"&&(b=E.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),b},o.prototype._get_number=function(x,h){var E=this.raw_options[x];h=parseInt(h,10),isNaN(h)&&(h=0);var b=parseInt(E,10);return isNaN(b)&&(b=h),b},o.prototype._get_selection=function(x,h,E){var b=this._get_selection_list(x,h,E);if(b.length!==1)throw new Error("Invalid Option Value: The option '"+x+`' can only be one of the following values:
`+h+`
You passed in: '`+this.raw_options[x]+"'");return b[0]},o.prototype._get_selection_list=function(x,h,E){if(!h||h.length===0)throw new Error("Selection list cannot be empty.");if(E=E||[h[0]],!this._is_valid_selection(E,h))throw new Error("Invalid Default Value!");var b=this._get_array(x,E);if(!this._is_valid_selection(b,h))throw new Error("Invalid Option Value: The option '"+x+`' can contain only the following values:
`+h+`
You passed in: '`+this.raw_options[x]+"'");return b},o.prototype._is_valid_selection=function(x,h){return x.length&&h.length&&!x.some(function(E){return h.indexOf(E)===-1})};function z(x,h){var E={};x=M(x);var b;for(b in x)b!==h&&(E[b]=x[b]);if(h&&x[h])for(b in x[h])E[b]=x[h][b];return E}function M(x){var h={},E;for(E in x){var b=E.replace(/-/g,"_");h[b]=x[E]}return h}de.exports.Options=o,de.exports.normalizeOpts=M,de.exports.mergeOpts=z},,function(de){var o=RegExp.prototype.hasOwnProperty("sticky");function z(M){this.__input=M||"",this.__input_length=this.__input.length,this.__position=0}z.prototype.restart=function(){this.__position=0},z.prototype.back=function(){this.__position>0&&(this.__position-=1)},z.prototype.hasNext=function(){return this.__position<this.__input_length},z.prototype.next=function(){var M=null;return this.hasNext()&&(M=this.__input.charAt(this.__position),this.__position+=1),M},z.prototype.peek=function(M){var x=null;return M=M||0,M+=this.__position,M>=0&&M<this.__input_length&&(x=this.__input.charAt(M)),x},z.prototype.__match=function(M,x){M.lastIndex=x;var h=M.exec(this.__input);return h&&!(o&&M.sticky)&&h.index!==x&&(h=null),h},z.prototype.test=function(M,x){return x=x||0,x+=this.__position,x>=0&&x<this.__input_length?!!this.__match(M,x):!1},z.prototype.testChar=function(M,x){var h=this.peek(x);return M.lastIndex=0,h!==null&&M.test(h)},z.prototype.match=function(M){var x=this.__match(M,this.__position);return x?this.__position+=x[0].length:x=null,x},z.prototype.read=function(M,x,h){var E="",b;return M&&(b=this.match(M),b&&(E+=b[0])),x&&(b||!M)&&(E+=this.readUntil(x,h)),E},z.prototype.readUntil=function(M,x){var h="",E=this.__position;M.lastIndex=this.__position;var b=M.exec(this.__input);return b?(E=b.index,x&&(E+=b[0].length)):E=this.__input_length,h=this.__input.substring(this.__position,E),this.__position=E,h},z.prototype.readUntilAfter=function(M){return this.readUntil(M,!0)},z.prototype.get_regexp=function(M,x){var h=null,E="g";return x&&o&&(E="y"),typeof M=="string"&&M!==""?h=new RegExp(M,E):M&&(h=new RegExp(M.source,E)),h},z.prototype.get_literal_regexp=function(M){return RegExp(M.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},z.prototype.peekUntilAfter=function(M){var x=this.__position,h=this.readUntilAfter(M);return this.__position=x,h},z.prototype.lookBack=function(M){var x=this.__position-1;return x>=M.length&&this.__input.substring(x-M.length,x).toLowerCase()===M},de.exports.InputScanner=z},,,,,function(de){function o(z,M){z=typeof z=="string"?z:z.source,M=typeof M=="string"?M:M.source,this.__directives_block_pattern=new RegExp(z+/ beautify( \w+[:]\w+)+ /.source+M,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(z+/\sbeautify\signore:end\s/.source+M,"g")}o.prototype.get_directives=function(z){if(!z.match(this.__directives_block_pattern))return null;var M={};this.__directive_pattern.lastIndex=0;for(var x=this.__directive_pattern.exec(z);x;)M[x[1]]=x[2],x=this.__directive_pattern.exec(z);return M},o.prototype.readIgnored=function(z){return z.readUntilAfter(this.__directives_end_ignore_pattern)},de.exports.Directives=o},,function(de,o,z){var M=z(16).Beautifier,x=z(17).Options;function h(E,b){var Y=new M(E,b);return Y.beautify()}de.exports=h,de.exports.defaultOptions=function(){return new x}},function(de,o,z){var M=z(17).Options,x=z(2).Output,h=z(8).InputScanner,E=z(13).Directives,b=new E(/\/\*/,/\*\//),Y=/\r\n|[\r\n]/,te=/\r\n|[\r\n]/g,L=/\s/,N=/(?:\s|\n)+/g,U=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,ce=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function w(j,ae){this._source_text=j||"",this._options=new M(ae),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}w.prototype.eatString=function(j){var ae="";for(this._ch=this._input.next();this._ch;){if(ae+=this._ch,this._ch==="\\")ae+=this._input.next();else if(j.indexOf(this._ch)!==-1||this._ch===`
`)break;this._ch=this._input.next()}return ae},w.prototype.eatWhitespace=function(j){for(var ae=L.test(this._input.peek()),ee=0;L.test(this._input.peek());)this._ch=this._input.next(),j&&this._ch===`
`&&(ee===0||ee<this._options.max_preserve_newlines)&&(ee++,this._output.add_new_line(!0));return ae},w.prototype.foundNestedPseudoClass=function(){for(var j=0,ae=1,ee=this._input.peek(ae);ee;){if(ee==="{")return!0;if(ee==="(")j+=1;else if(ee===")"){if(j===0)return!1;j-=1}else if(ee===";"||ee==="}")return!1;ae++,ee=this._input.peek(ae)}return!1},w.prototype.print_string=function(j){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(j)},w.prototype.preserveSingleSpace=function(j){j&&(this._output.space_before_token=!0)},w.prototype.indent=function(){this._indentLevel++},w.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},w.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var j=this._source_text,ae=this._options.eol;ae==="auto"&&(ae=`
`,j&&Y.test(j||"")&&(ae=j.match(Y)[0])),j=j.replace(te,`
`);var ee=j.match(/^[\t ]*/)[0];this._output=new x(this._options,ee),this._input=new h(j),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var oe=0,Ae=!1,we=!1,Ne=!1,W=!1,P=!1,q=this._ch,D=!1,ie,F,g;ie=this._input.read(N),F=ie!=="",g=q,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),q=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var v=this._input.read(U),I=b.get_directives(v);I&&I.ignore==="start"&&(v+=b.readIgnored(this._input)),this.print_string(v),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(ce)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(F),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),oe===0&&G.indexOf(":")!==-1&&(we=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(F),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var xe=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);xe.match(/[ :]$/)&&(xe=this.eatString(": ").replace(/\s+$/,""),this.print_string(xe),this._output.space_before_token=!0),oe===0&&xe.indexOf(":")!==-1?(we=!0,this.indent()):xe in this.NESTED_AT_RULE?(this._nestedLevel+=1,xe in this.CONDITIONAL_GROUP_RULE&&(Ne=!0)):oe===0&&!we&&(W=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(F),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")we&&(we=!1,this.outdent()),W=!1,Ne?(Ne=!1,Ae=this._indentLevel>=this._nestedLevel):Ae=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&Ae&&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)):(g==="("?this._output.space_before_token=!1:g!==","&&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(),g==="{"&&this._output.trim(!0),we&&(this.outdent(),we=!1),this.print_string(this._ch),Ae=!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 De=0;De<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;De++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[De])){D=!0;break}(Ae||Ne)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!W&&oe===0?(this.print_string(":"),we||(we=!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 Ie=g==='"'||g==="'";this.preserveSingleSpace(Ie||F),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")D=!1,oe===0?(we&&(this.outdent(),we=!1),W=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),oe++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),oe&&(oe--,this.outdent()));else{var $e=!1;this._input.lookBack("with")&&($e=!0),this.preserveSingleSpace(F||$e),this.print_string(this._ch),we&&g==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),P=!0):(this.eatWhitespace(),oe++,this.indent())}else if(this._ch===")")oe&&(oe--,this.outdent()),P&&this._input.peek()===";"&&this._options.selector_separator_newline&&(P=!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&&(!we||P)&&oe===0&&!W?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!we&&oe===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&L.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(F),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),L.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 qe=g==='"'||g==="'";this.preserveSingleSpace(qe||F),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
`&&D&&this._output.add_new_line()}var Ye=this._output.get_code(ae);return Ye},de.exports.Beautifier=w},function(de,o,z){var M=z(6).Options;function x(h){M.call(this,h,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var E=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||E;var b=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var Y=0;Y<b.length;Y++)b[Y]!=="expand"?this.brace_style="collapse":this.brace_style=b[Y]}x.prototype=new M,de.exports.Options=x}],pe={};function Z(de){var o=pe[de];if(o!==void 0)return o.exports;var z=pe[de]={exports:{}};return Re[de](z,z.exports,Z),z.exports}var ge=Z(15);re=ge})();var Ee=re;T=[],K=function(){return{css_beautify:Ee}}.apply(Qe,T),K!==void 0&&(Nt.exports=K)})()},40998:function(Nt,Qe,T){var K,re;(function(){var Ee;(function(){"use strict";var ge=[,,function(M){function x(b){this.__parent=b,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=[]}x.prototype.clone_empty=function(){var b=new x(this.__parent);return b.set_indent(this.__indent_count,this.__alignment_count),b},x.prototype.item=function(b){return b<0?this.__items[this.__items.length+b]:this.__items[b]},x.prototype.has_match=function(b){for(var Y=this.__items.length-1;Y>=0;Y--)if(this.__items[Y].match(b))return!0;return!1},x.prototype.set_indent=function(b,Y){this.is_empty()&&(this.__indent_count=b||0,this.__alignment_count=Y||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},x.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)},x.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},x.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var b=this.__parent.current_line;return b.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),b.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),b.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,b.__items[0]===" "&&(b.__items.splice(0,1),b.__character_count-=1),!0}return!1},x.prototype.is_empty=function(){return this.__items.length===0},x.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},x.prototype.push=function(b){this.__items.push(b);var Y=b.lastIndexOf(`
`);Y!==-1?this.__character_count=b.length-Y:this.__character_count+=b.length},x.prototype.pop=function(){var b=null;return this.is_empty()||(b=this.__items.pop(),this.__character_count-=b.length),b},x.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},x.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},x.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},x.prototype.toString=function(){var b="";return this.is_empty()?this.__parent.indent_empty_lines&&(b=this.__parent.get_indent_string(this.__indent_count)):(b=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),b+=this.__items.join("")),b};function h(b,Y){this.__cache=[""],this.__indent_size=b.indent_size,this.__indent_string=b.indent_char,b.indent_with_tabs||(this.__indent_string=new Array(b.indent_size+1).join(b.indent_char)),Y=Y||"",b.indent_level>0&&(Y=new Array(b.indent_level+1).join(this.__indent_string)),this.__base_string=Y,this.__base_string_length=Y.length}h.prototype.get_indent_size=function(b,Y){var te=this.__base_string_length;return Y=Y||0,b<0&&(te=0),te+=b*this.__indent_size,te+=Y,te},h.prototype.get_indent_string=function(b,Y){var te=this.__base_string;return Y=Y||0,b<0&&(b=0,te=""),Y+=b*this.__indent_size,this.__ensure_cache(Y),te+=this.__cache[Y],te},h.prototype.__ensure_cache=function(b){for(;b>=this.__cache.length;)this.__add_column()},h.prototype.__add_column=function(){var b=this.__cache.length,Y=0,te="";this.__indent_size&&b>=this.__indent_size&&(Y=Math.floor(b/this.__indent_size),b-=Y*this.__indent_size,te=new Array(Y+1).join(this.__indent_string)),b&&(te+=new Array(b+1).join(" ")),this.__cache.push(te)};function E(b,Y){this.__indent_cache=new h(b,Y),this.raw=!1,this._end_with_newline=b.end_with_newline,this.indent_size=b.indent_size,this.wrap_line_length=b.wrap_line_length,this.indent_empty_lines=b.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new x(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}E.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},E.prototype.get_line_number=function(){return this.__lines.length},E.prototype.get_indent_string=function(b,Y){return this.__indent_cache.get_indent_string(b,Y)},E.prototype.get_indent_size=function(b,Y){return this.__indent_cache.get_indent_size(b,Y)},E.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},E.prototype.add_new_line=function(b){return this.is_empty()||!b&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},E.prototype.get_code=function(b){this.trim(!0);var Y=this.current_line.pop();Y&&(Y[Y.length-1]===`
`&&(Y=Y.replace(/\n+$/g,"")),this.current_line.push(Y)),this._end_with_newline&&this.__add_outputline();var te=this.__lines.join(`
`);return b!==`
`&&(te=te.replace(/[\n]/g,b)),te},E.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},E.prototype.set_indent=function(b,Y){return b=b||0,Y=Y||0,this.next_line.set_indent(b,Y),this.__lines.length>1?(this.current_line.set_indent(b,Y),!0):(this.current_line.set_indent(),!1)},E.prototype.add_raw_token=function(b){for(var Y=0;Y<b.newlines;Y++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(b.whitespace_before),this.current_line.push(b.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},E.prototype.add_token=function(b){this.__add_space_before_token(),this.current_line.push(b),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},E.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(" "))},E.prototype.remove_indent=function(b){for(var Y=this.__lines.length;b<Y;)this.__lines[b]._remove_indent(),b++;this.current_line._remove_wrap_indent()},E.prototype.trim=function(b){for(b=b===void 0?!1:b,this.current_line.trim();b&&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},E.prototype.just_added_newline=function(){return this.current_line.is_empty()},E.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},E.prototype.ensure_empty_line_above=function(b,Y){for(var te=this.__lines.length-2;te>=0;){var L=this.__lines[te];if(L.is_empty())break;if(L.item(0).indexOf(b)!==0&&L.item(-1)!==Y){this.__lines.splice(te+1,0,new x(this)),this.previous_line=this.__lines[this.__lines.length-2];break}te--}},M.exports.Output=E},function(M){function x(h,E,b,Y){this.type=h,this.text=E,this.comments_before=null,this.newlines=b||0,this.whitespace_before=Y||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}M.exports.Token=x},,,function(M){function x(b,Y){this.raw_options=h(b,Y),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"])}x.prototype._get_array=function(b,Y){var te=this.raw_options[b],L=Y||[];return typeof te=="object"?te!==null&&typeof te.concat=="function"&&(L=te.concat()):typeof te=="string"&&(L=te.split(/[^a-zA-Z0-9_\/\-]+/)),L},x.prototype._get_boolean=function(b,Y){var te=this.raw_options[b],L=te===void 0?!!Y:!!te;return L},x.prototype._get_characters=function(b,Y){var te=this.raw_options[b],L=Y||"";return typeof te=="string"&&(L=te.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),L},x.prototype._get_number=function(b,Y){var te=this.raw_options[b];Y=parseInt(Y,10),isNaN(Y)&&(Y=0);var L=parseInt(te,10);return isNaN(L)&&(L=Y),L},x.prototype._get_selection=function(b,Y,te){var L=this._get_selection_list(b,Y,te);if(L.length!==1)throw new Error("Invalid Option Value: The option '"+b+`' can only be one of the following values:
`+Y+`
You passed in: '`+this.raw_options[b]+"'");return L[0]},x.prototype._get_selection_list=function(b,Y,te){if(!Y||Y.length===0)throw new Error("Selection list cannot be empty.");if(te=te||[Y[0]],!this._is_valid_selection(te,Y))throw new Error("Invalid Default Value!");var L=this._get_array(b,te);if(!this._is_valid_selection(L,Y))throw new Error("Invalid Option Value: The option '"+b+`' can contain only the following values:
`+Y+`
You passed in: '`+this.raw_options[b]+"'");return L},x.prototype._is_valid_selection=function(b,Y){return b.length&&Y.length&&!b.some(function(te){return Y.indexOf(te)===-1})};function h(b,Y){var te={};b=E(b);var L;for(L in b)L!==Y&&(te[L]=b[L]);if(Y&&b[Y])for(L in b[Y])te[L]=b[Y][L];return te}function E(b){var Y={},te;for(te in b){var L=te.replace(/-/g,"_");Y[L]=b[te]}return Y}M.exports.Options=x,M.exports.normalizeOpts=E,M.exports.mergeOpts=h},,function(M){var x=RegExp.prototype.hasOwnProperty("sticky");function h(E){this.__input=E||"",this.__input_length=this.__input.length,this.__position=0}h.prototype.restart=function(){this.__position=0},h.prototype.back=function(){this.__position>0&&(this.__position-=1)},h.prototype.hasNext=function(){return this.__position<this.__input_length},h.prototype.next=function(){var E=null;return this.hasNext()&&(E=this.__input.charAt(this.__position),this.__position+=1),E},h.prototype.peek=function(E){var b=null;return E=E||0,E+=this.__position,E>=0&&E<this.__input_length&&(b=this.__input.charAt(E)),b},h.prototype.__match=function(E,b){E.lastIndex=b;var Y=E.exec(this.__input);return Y&&!(x&&E.sticky)&&Y.index!==b&&(Y=null),Y},h.prototype.test=function(E,b){return b=b||0,b+=this.__position,b>=0&&b<this.__input_length?!!this.__match(E,b):!1},h.prototype.testChar=function(E,b){var Y=this.peek(b);return E.lastIndex=0,Y!==null&&E.test(Y)},h.prototype.match=function(E){var b=this.__match(E,this.__position);return b?this.__position+=b[0].length:b=null,b},h.prototype.read=function(E,b,Y){var te="",L;return E&&(L=this.match(E),L&&(te+=L[0])),b&&(L||!E)&&(te+=this.readUntil(b,Y)),te},h.prototype.readUntil=function(E,b){var Y="",te=this.__position;E.lastIndex=this.__position;var L=E.exec(this.__input);return L?(te=L.index,b&&(te+=L[0].length)):te=this.__input_length,Y=this.__input.substring(this.__position,te),this.__position=te,Y},h.prototype.readUntilAfter=function(E){return this.readUntil(E,!0)},h.prototype.get_regexp=function(E,b){var Y=null,te="g";return b&&x&&(te="y"),typeof E=="string"&&E!==""?Y=new RegExp(E,te):E&&(Y=new RegExp(E.source,te)),Y},h.prototype.get_literal_regexp=function(E){return RegExp(E.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},h.prototype.peekUntilAfter=function(E){var b=this.__position,Y=this.readUntilAfter(E);return this.__position=b,Y},h.prototype.lookBack=function(E){var b=this.__position-1;return b>=E.length&&this.__input.substring(b-E.length,b).toLowerCase()===E},M.exports.InputScanner=h},function(M,x,h){var E=h(8).InputScanner,b=h(3).Token,Y=h(10).TokenStream,te=h(11).WhitespacePattern,L={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},N=function(U,ce){this._input=new E(U),this._options=ce||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new te(this._input)};N.prototype.tokenize=function(){this._input.restart(),this.__tokens=new Y,this._reset();for(var U,ce=new b(L.START,""),w=null,j=[],ae=new Y;ce.type!==L.EOF;){for(U=this._get_next_token(ce,w);this._is_comment(U);)ae.add(U),U=this._get_next_token(ce,w);ae.isEmpty()||(U.comments_before=ae,ae=new Y),U.parent=w,this._is_opening(U)?(j.push(w),w=U):w&&this._is_closing(U,w)&&(U.opened=w,w.closed=U,w=j.pop(),U.parent=w),U.previous=ce,ce.next=U,this.__tokens.add(U),ce=U}return this.__tokens},N.prototype._is_first_token=function(){return this.__tokens.isEmpty()},N.prototype._reset=function(){},N.prototype._get_next_token=function(U,ce){this._readWhitespace();var w=this._input.read(/.+/g);return w?this._create_token(L.RAW,w):this._create_token(L.EOF,"")},N.prototype._is_comment=function(U){return!1},N.prototype._is_opening=function(U){return!1},N.prototype._is_closing=function(U,ce){return!1},N.prototype._create_token=function(U,ce){var w=new b(U,ce,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return w},N.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},M.exports.Tokenizer=N,M.exports.TOKEN=L},function(M){function x(h){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=h}x.prototype.restart=function(){this.__position=0},x.prototype.isEmpty=function(){return this.__tokens_length===0},x.prototype.hasNext=function(){return this.__position<this.__tokens_length},x.prototype.next=function(){var h=null;return this.hasNext()&&(h=this.__tokens[this.__position],this.__position+=1),h},x.prototype.peek=function(h){var E=null;return h=h||0,h+=this.__position,h>=0&&h<this.__tokens_length&&(E=this.__tokens[h]),E},x.prototype.add=function(h){this.__parent_token&&(h.parent=this.__parent_token),this.__tokens.push(h),this.__tokens_length+=1},M.exports.TokenStream=x},function(M,x,h){var E=h(12).Pattern;function b(Y,te){E.call(this,Y,te),te?this._line_regexp=this._input.get_regexp(te._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}b.prototype=new E,b.prototype.__set_whitespace_patterns=function(Y,te){Y+="\\t ",te+="\\n\\r",this._match_pattern=this._input.get_regexp("["+Y+te+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+te+"]")},b.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var Y=this._input.read(this._match_pattern);if(Y===" ")this.whitespace_before_token=" ";else if(Y){var te=this.__split(this._newline_regexp,Y);this.newline_count=te.length-1,this.whitespace_before_token=te[this.newline_count]}return Y},b.prototype.matching=function(Y,te){var L=this._create();return L.__set_whitespace_patterns(Y,te),L._update(),L},b.prototype._create=function(){return new b(this._input,this)},b.prototype.__split=function(Y,te){Y.lastIndex=0;for(var L=0,N=[],U=Y.exec(te);U;)N.push(te.substring(L,U.index)),L=U.index+U[0].length,U=Y.exec(te);return L<te.length?N.push(te.substring(L,te.length)):N.push(""),N},M.exports.WhitespacePattern=b},function(M){function x(h,E){this._input=h,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,E&&(this._starting_pattern=this._input.get_regexp(E._starting_pattern,!0),this._match_pattern=this._input.get_regexp(E._match_pattern,!0),this._until_pattern=this._input.get_regexp(E._until_pattern),this._until_after=E._until_after)}x.prototype.read=function(){var h=this._input.read(this._starting_pattern);return(!this._starting_pattern||h)&&(h+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),h},x.prototype.read_match=function(){return this._input.match(this._match_pattern)},x.prototype.until_after=function(h){var E=this._create();return E._until_after=!0,E._until_pattern=this._input.get_regexp(h),E._update(),E},x.prototype.until=function(h){var E=this._create();return E._until_after=!1,E._until_pattern=this._input.get_regexp(h),E._update(),E},x.prototype.starting_with=function(h){var E=this._create();return E._starting_pattern=this._input.get_regexp(h,!0),E._update(),E},x.prototype.matching=function(h){var E=this._create();return E._match_pattern=this._input.get_regexp(h,!0),E._update(),E},x.prototype._create=function(){return new x(this._input,this)},x.prototype._update=function(){},M.exports.Pattern=x},function(M){function x(h,E){h=typeof h=="string"?h:h.source,E=typeof E=="string"?E:E.source,this.__directives_block_pattern=new RegExp(h+/ beautify( \w+[:]\w+)+ /.source+E,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(h+/\sbeautify\signore:end\s/.source+E,"g")}x.prototype.get_directives=function(h){if(!h.match(this.__directives_block_pattern))return null;var E={};this.__directive_pattern.lastIndex=0;for(var b=this.__directive_pattern.exec(h);b;)E[b[1]]=b[2],b=this.__directive_pattern.exec(h);return E},x.prototype.readIgnored=function(h){return h.readUntilAfter(this.__directives_end_ignore_pattern)},M.exports.Directives=x},function(M,x,h){var E=h(12).Pattern,b={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function Y(te,L){E.call(this,te,L),this.__template_pattern=null,this._disabled=Object.assign({},b),this._excluded=Object.assign({},b),L&&(this.__template_pattern=this._input.get_regexp(L.__template_pattern),this._excluded=Object.assign(this._excluded,L._excluded),this._disabled=Object.assign(this._disabled,L._disabled));var N=new E(te);this.__patterns={handlebars_comment:N.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:N.starting_with(/{{{/).until_after(/}}}/),handlebars:N.starting_with(/{{/).until_after(/}}/),php:N.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:N.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:N.starting_with(/{%/).until_after(/%}/),django_value:N.starting_with(/{{/).until_after(/}}/),django_comment:N.starting_with(/{#/).until_after(/#}/),smarty:N.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:N.starting_with(/{\*/).until_after(/\*}/),smarty_literal:N.starting_with(/{literal}/).until_after(/{\/literal}/)}}Y.prototype=new E,Y.prototype._create=function(){return new Y(this._input,this)},Y.prototype._update=function(){this.__set_templated_pattern()},Y.prototype.disable=function(te){var L=this._create();return L._disabled[te]=!0,L._update(),L},Y.prototype.read_options=function(te){var L=this._create();for(var N in b)L._disabled[N]=te.templating.indexOf(N)===-1;return L._update(),L},Y.prototype.exclude=function(te){var L=this._create();return L._excluded[te]=!0,L._update(),L},Y.prototype.read=function(){var te="";this._match_pattern?te=this._input.read(this._starting_pattern):te=this._input.read(this._starting_pattern,this.__template_pattern);for(var L=this._read_template();L;)this._match_pattern?L+=this._input.read(this._match_pattern):L+=this._input.readUntil(this.__template_pattern),te+=L,L=this._read_template();return this._until_after&&(te+=this._input.readUntilAfter(this._until_pattern)),te},Y.prototype.__set_templated_pattern=function(){var te=[];this._disabled.php||te.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||te.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||te.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||te.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(te.push(this.__patterns.django._starting_pattern.source),te.push(this.__patterns.django_value._starting_pattern.source),te.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||te.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&te.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+te.join("|")+")")},Y.prototype._read_template=function(){var te="",L=this._input.peek();if(L==="<"){var N=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&N==="?"&&(te=te||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&N==="%"&&(te=te||this.__patterns.erb.read())}else L==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(te=te||this.__patterns.handlebars_comment.read(),te=te||this.__patterns.handlebars_unescaped.read(),te=te||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(te=te||this.__patterns.django_value.read()),this._excluded.django||(te=te||this.__patterns.django_comment.read(),te=te||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(te=te||this.__patterns.smarty_comment.read(),te=te||this.__patterns.smarty_literal.read(),te=te||this.__patterns.smarty.read()));return te},M.exports.TemplatablePattern=Y},,,,function(M,x,h){var E=h(19).Beautifier,b=h(20).Options;function Y(te,L,N,U){var ce=new E(te,L,N,U);return ce.beautify()}M.exports=Y,M.exports.defaultOptions=function(){return new b}},function(M,x,h){var E=h(20).Options,b=h(2).Output,Y=h(21).Tokenizer,te=h(21).TOKEN,L=/\r\n|[\r\n]/,N=/\r\n|[\r\n]/g,U=function(W,P){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=W.max_preserve_newlines,this.preserve_newlines=W.preserve_newlines,this._output=new b(W,P)};U.prototype.current_line_has_match=function(W){return this._output.current_line.has_match(W)},U.prototype.set_space_before_token=function(W,P){this._output.space_before_token=W,this._output.non_breaking_space=P},U.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},U.prototype.add_raw_token=function(W){this._output.add_raw_token(W)},U.prototype.print_preserved_newlines=function(W){var P=0;W.type!==te.TEXT&&W.previous.type!==te.TEXT&&(P=W.newlines?1:0),this.preserve_newlines&&(P=W.newlines<this.max_preserve_newlines+1?W.newlines:this.max_preserve_newlines+1);for(var q=0;q<P;q++)this.print_newline(q>0);return P!==0},U.prototype.traverse_whitespace=function(W){return W.whitespace_before||W.newlines?(this.print_preserved_newlines(W)||(this._output.space_before_token=!0),!0):!1},U.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},U.prototype.print_newline=function(W){this._output.add_new_line(W)},U.prototype.print_token=function(W){W.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(W.text))},U.prototype.indent=function(){this.indent_level++},U.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},U.prototype.get_full_indent=function(W){return W=this.indent_level+(W||0),W<1?"":this._output.get_indent_string(W)};var ce=function(W){for(var P=null,q=W.next;q.type!==te.EOF&&W.closed!==q;){if(q.type===te.ATTRIBUTE&&q.text==="type"){q.next&&q.next.type===te.EQUALS&&q.next.next&&q.next.next.type===te.VALUE&&(P=q.next.next.text);break}q=q.next}return P},w=function(W,P){var q=null,D=null;return P.closed?(W==="script"?q="text/javascript":W==="style"&&(q="text/css"),q=ce(P)||q,q.search("text/css")>-1?D="css":q.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?D="javascript":q.search(/(text|application|dojo)\/(x-)?(html)/)>-1?D="html":q.search(/test\/null/)>-1&&(D="null"),D):null};function j(W,P){return P.indexOf(W)!==-1}function ae(W,P,q){this.parent=W||null,this.tag=P?P.tag_name:"",this.indent_level=q||0,this.parser_token=P||null}function ee(W){this._printer=W,this._current_frame=null}ee.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},ee.prototype.record_tag=function(W){var P=new ae(this._current_frame,W,this._printer.indent_level);this._current_frame=P},ee.prototype._try_pop_frame=function(W){var P=null;return W&&(P=W.parser_token,this._printer.indent_level=W.indent_level,this._current_frame=W.parent),P},ee.prototype._get_frame=function(W,P){for(var q=this._current_frame;q&&W.indexOf(q.tag)===-1;){if(P&&P.indexOf(q.tag)!==-1){q=null;break}q=q.parent}return q},ee.prototype.try_pop=function(W,P){var q=this._get_frame([W],P);return this._try_pop_frame(q)},ee.prototype.indent_to_tag=function(W){var P=this._get_frame(W);P&&(this._printer.indent_level=P.indent_level)};function oe(W,P,q,D){this._source_text=W||"",P=P||{},this._js_beautify=q,this._css_beautify=D,this._tag_stack=null;var ie=new E(P,"html");this._options=ie,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}oe.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var W=this._source_text,P=this._options.eol;this._options.eol==="auto"&&(P=`
`,W&&L.test(W)&&(P=W.match(L)[0])),W=W.replace(N,`
`);var q=W.match(/^[\t ]*/)[0],D={text:"",type:""},ie=new Ae(this._options),F=new U(this._options,q),g=new Y(W,this._options).tokenize();this._tag_stack=new ee(F);for(var v=null,I=g.next();I.type!==te.EOF;)I.type===te.TAG_OPEN||I.type===te.COMMENT?(v=this._handle_tag_open(F,I,ie,D,g),ie=v):I.type===te.ATTRIBUTE||I.type===te.EQUALS||I.type===te.VALUE||I.type===te.TEXT&&!ie.tag_complete?v=this._handle_inside_tag(F,I,ie,D):I.type===te.TAG_CLOSE?v=this._handle_tag_close(F,I,ie):I.type===te.TEXT?v=this._handle_text(F,I,ie):I.type===te.CONTROL_FLOW_OPEN?v=this._handle_control_flow_open(F,I):I.type===te.CONTROL_FLOW_CLOSE?v=this._handle_control_flow_close(F,I):F.add_raw_token(I),D=v,I=g.next();var G=F._output.get_code(P);return G},oe.prototype._handle_control_flow_open=function(W,P){var q={text:P.text,type:P.type};return W.set_space_before_token(P.newlines||P.whitespace_before!=="",!0),P.newlines?W.print_preserved_newlines(P):W.set_space_before_token(P.newlines||P.whitespace_before!=="",!0),W.print_token(P),W.indent(),q},oe.prototype._handle_control_flow_close=function(W,P){var q={text:P.text,type:P.type};return W.deindent(),P.newlines?W.print_preserved_newlines(P):W.set_space_before_token(P.newlines||P.whitespace_before!=="",!0),W.print_token(P),q},oe.prototype._handle_tag_close=function(W,P,q){var D={text:P.text,type:P.type};return W.alignment_size=0,q.tag_complete=!0,W.set_space_before_token(P.newlines||P.whitespace_before!=="",!0),q.is_unformatted?W.add_raw_token(P):(q.tag_start_char==="<"&&(W.set_space_before_token(P.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&q.has_wrapped_attrs&&W.print_newline(!1)),W.print_token(P)),q.indent_content&&!(q.is_unformatted||q.is_content_unformatted)&&(W.indent(),q.indent_content=!1),!q.is_inline_element&&!(q.is_unformatted||q.is_content_unformatted)&&W.set_wrap_point(),D},oe.prototype._handle_inside_tag=function(W,P,q,D){var ie=q.has_wrapped_attrs,F={text:P.text,type:P.type};return W.set_space_before_token(P.newlines||P.whitespace_before!=="",!0),q.is_unformatted?W.add_raw_token(P):q.tag_start_char==="{"&&P.type===te.TEXT?W.print_preserved_newlines(P)?(P.newlines=0,W.add_raw_token(P)):W.print_token(P):(P.type===te.ATTRIBUTE?W.set_space_before_token(!0):(P.type===te.EQUALS||P.type===te.VALUE&&P.previous.type===te.EQUALS)&&W.set_space_before_token(!1),P.type===te.ATTRIBUTE&&q.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(W.traverse_whitespace(P),ie=ie||P.newlines!==0),this._is_wrap_attributes_force&&q.attr_count>=this._options.wrap_attributes_min_attrs&&(D.type!==te.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(W.print_newline(!1),ie=!0)),W.print_token(P),ie=ie||W.previous_token_wrapped(),q.has_wrapped_attrs=ie),F},oe.prototype._handle_text=function(W,P,q){var D={text:P.text,type:"TK_CONTENT"};return q.custom_beautifier_name?this._print_custom_beatifier_text(W,P,q):q.is_unformatted||q.is_content_unformatted?W.add_raw_token(P):(W.traverse_whitespace(P),W.print_token(P)),D},oe.prototype._print_custom_beatifier_text=function(W,P,q){var D=this;if(P.text!==""){var ie=P.text,F,g=1,v="",I="";q.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?F=this._js_beautify:q.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?F=this._css_beautify:q.custom_beautifier_name==="html"&&(F=function(qe,Ye){var Ve=new oe(qe,Ye,D._js_beautify,D._css_beautify);return Ve.beautify()}),this._options.indent_scripts==="keep"?g=0:this._options.indent_scripts==="separate"&&(g=-W.indent_level);var G=W.get_full_indent(g);if(ie=ie.replace(/\n[ \t]*$/,""),q.custom_beautifier_name!=="html"&&ie[0]==="<"&&ie.match(/^(<!--|<!\[CDATA\[)/)){var xe=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(ie);if(!xe){W.add_raw_token(P);return}v=G+xe[1]+`
`,ie=xe[4],xe[5]&&(I=G+xe[5]),ie=ie.replace(/\n[ \t]*$/,""),(xe[2]||xe[3].indexOf(`
`)!==-1)&&(xe=xe[3].match(/[ \t]+$/),xe&&(P.whitespace_before=xe[0]))}if(ie)if(F){var De=function(){this.eol=`
`};De.prototype=this._options.raw_options;var Ie=new De;ie=F(G+ie,Ie)}else{var $e=P.whitespace_before;$e&&(ie=ie.replace(new RegExp(`
(`+$e+")?","g"),`
`)),ie=G+ie.replace(/\n/g,`
`+G)}v&&(ie?ie=v+ie+`
`+I:ie=v+I),W.print_newline(!1),ie&&(P.text=ie,P.whitespace_before="",P.newlines=0,W.add_raw_token(P),W.print_newline(!0))}},oe.prototype._handle_tag_open=function(W,P,q,D,ie){var F=this._get_tag_open_token(P);if((q.is_unformatted||q.is_content_unformatted)&&!q.is_empty_element&&P.type===te.TAG_OPEN&&!F.is_start_tag?(W.add_raw_token(P),F.start_tag_token=this._tag_stack.try_pop(F.tag_name)):(W.traverse_whitespace(P),this._set_tag_position(W,P,F,q,D),F.is_inline_element||W.set_wrap_point(),W.print_token(P)),F.is_start_tag&&this._is_wrap_attributes_force){var g=0,v;do v=ie.peek(g),v.type===te.ATTRIBUTE&&(F.attr_count+=1),g+=1;while(v.type!==te.EOF&&v.type!==te.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(F.alignment_size=P.text.length+1),!F.tag_complete&&!F.is_unformatted&&(W.alignment_size=F.alignment_size),F};var Ae=function(W,P,q){if(this.parent=P||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="",!q)this.tag_complete=!0;else{var D;this.tag_start_char=q.text[0],this.text=q.text,this.tag_start_char==="<"?(D=q.text.match(/^<([^\s>]*)/),this.tag_check=D?D[1]:""):(D=q.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=D?D[1]:"",(q.text.startsWith("{{#>")||q.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&q.next!==null?this.tag_check=q.next.text.split(" ")[0]:this.tag_check=q.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),q.type===te.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||q.closed&&q.closed.text==="/>";var ie=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(ie=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!W.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(ie)))}};oe.prototype._get_tag_open_token=function(W){var P=new Ae(this._options,this._tag_stack.get_parser_token(),W);return P.alignment_size=this._options.wrap_attributes_indent_size,P.is_end_tag=P.is_end_tag||j(P.tag_check,this._options.void_elements),P.is_empty_element=P.tag_complete||P.is_start_tag&&P.is_end_tag,P.is_unformatted=!P.tag_complete&&j(P.tag_check,this._options.unformatted),P.is_content_unformatted=!P.is_empty_element&&j(P.tag_check,this._options.content_unformatted),P.is_inline_element=j(P.tag_name,this._options.inline)||this._options.inline_custom_elements&&P.tag_name.includes("-")||P.tag_start_char==="{",P},oe.prototype._set_tag_position=function(W,P,q,D,ie){if(q.is_empty_element||(q.is_end_tag?q.start_tag_token=this._tag_stack.try_pop(q.tag_name):(this._do_optional_end_element(q)&&(q.is_inline_element||W.print_newline(!1)),this._tag_stack.record_tag(q),(q.tag_name==="script"||q.tag_name==="style")&&!(q.is_unformatted||q.is_content_unformatted)&&(q.custom_beautifier_name=w(q.tag_check,P)))),j(q.tag_check,this._options.extra_liners)&&(W.print_newline(!1),W._output.just_added_blankline()||W.print_newline(!0)),q.is_empty_element){if(q.tag_start_char==="{"&&q.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),q.indent_content=!0;var F=W.current_line_has_match(/{{#if/);F||W.print_newline(!1)}q.tag_name==="!--"&&ie.type===te.TAG_CLOSE&&D.is_end_tag&&q.text.indexOf(`
`)===-1||(q.is_inline_element||q.is_unformatted||W.print_newline(!1),this._calcluate_parent_multiline(W,q))}else if(q.is_end_tag){var g=!1;g=q.start_tag_token&&q.start_tag_token.multiline_content,g=g||!q.is_inline_element&&!(D.is_inline_element||D.is_unformatted)&&!(ie.type===te.TAG_CLOSE&&q.start_tag_token===D)&&ie.type!=="TK_CONTENT",(q.is_content_unformatted||q.is_unformatted)&&(g=!1),g&&W.print_newline(!1)}else q.indent_content=!q.custom_beautifier_name,q.tag_start_char==="<"&&(q.tag_name==="html"?q.indent_content=this._options.indent_inner_html:q.tag_name==="head"?q.indent_content=this._options.indent_head_inner_html:q.tag_name==="body"&&(q.indent_content=this._options.indent_body_inner_html)),!(q.is_inline_element||q.is_unformatted)&&(ie.type!=="TK_CONTENT"||q.is_content_unformatted)&&W.print_newline(!1),this._calcluate_parent_multiline(W,q)},oe.prototype._calcluate_parent_multiline=function(W,P){P.parent&&W._output.just_added_newline()&&!((P.is_inline_element||P.is_unformatted)&&P.parent.is_inline_element)&&(P.parent.multiline_content=!0)};var we=["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"],Ne=["a","audio","del","ins","map","noscript","video"];oe.prototype._do_optional_end_element=function(W){var P=null;if(!(W.is_empty_element||!W.is_start_tag||!W.parent)){if(W.tag_name==="body")P=P||this._tag_stack.try_pop("head");else if(W.tag_name==="li")P=P||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(W.tag_name==="dd"||W.tag_name==="dt")P=P||this._tag_stack.try_pop("dt",["dl"]),P=P||this._tag_stack.try_pop("dd",["dl"]);else if(W.parent.tag_name==="p"&&we.indexOf(W.tag_name)!==-1){var q=W.parent.parent;(!q||Ne.indexOf(q.tag_name)===-1)&&(P=P||this._tag_stack.try_pop("p"))}else W.tag_name==="rp"||W.tag_name==="rt"?(P=P||this._tag_stack.try_pop("rt",["ruby","rtc"]),P=P||this._tag_stack.try_pop("rp",["ruby","rtc"])):W.tag_name==="optgroup"?P=P||this._tag_stack.try_pop("optgroup",["select"]):W.tag_name==="option"?P=P||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):W.tag_name==="colgroup"?P=P||this._tag_stack.try_pop("caption",["table"]):W.tag_name==="thead"?(P=P||this._tag_stack.try_pop("caption",["table"]),P=P||this._tag_stack.try_pop("colgroup",["table"])):W.tag_name==="tbody"||W.tag_name==="tfoot"?(P=P||this._tag_stack.try_pop("caption",["table"]),P=P||this._tag_stack.try_pop("colgroup",["table"]),P=P||this._tag_stack.try_pop("thead",["table"]),P=P||this._tag_stack.try_pop("tbody",["table"])):W.tag_name==="tr"?(P=P||this._tag_stack.try_pop("caption",["table"]),P=P||this._tag_stack.try_pop("colgroup",["table"]),P=P||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(W.tag_name==="th"||W.tag_name==="td")&&(P=P||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),P=P||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return W.parent=this._tag_stack.get_parser_token(),P}},M.exports.Beautifier=oe},function(M,x,h){var E=h(6).Options;function b(Y){E.call(this,Y,"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"])}b.prototype=new E,M.exports.Options=b},function(M,x,h){var E=h(9).Tokenizer,b=h(9).TOKEN,Y=h(13).Directives,te=h(14).TemplatablePattern,L=h(12).Pattern,N={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:b.START,RAW:b.RAW,EOF:b.EOF},U=new Y(/<\!--/,/-->/),ce=function(w,j){E.call(this,w,j),this._current_tag_name="";var ae=new te(this._input).read_options(this._options),ee=new L(this._input);if(this.__patterns={word:ae.until(/[\n\r\t <]/),word_control_flow_close_excluded:ae.until(/[\n\r\t <}]/),single_quote:ae.until_after(/'/),double_quote:ae.until_after(/"/),attribute:ae.until(/[\n\r\t =>]|\/>/),element_name:ae.until(/[\n\r\t >\/]/),angular_control_flow_start:ee.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:ee.starting_with(/{{!--/).until_after(/--}}/),handlebars:ee.starting_with(/{{/).until_after(/}}/),handlebars_open:ee.until(/[\n\r\t }]/),handlebars_raw_close:ee.until(/}}/),comment:ee.starting_with(/<!--/).until_after(/-->/),cdata:ee.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:ee.starting_with(/<!\[/).until_after(/]>/),processing:ee.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var oe=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=ee.matching(oe).until_after(oe)}};ce.prototype=new E,ce.prototype._is_comment=function(w){return!1},ce.prototype._is_opening=function(w){return w.type===N.TAG_OPEN||w.type===N.CONTROL_FLOW_OPEN},ce.prototype._is_closing=function(w,j){return w.type===N.TAG_CLOSE&&j&&((w.text===">"||w.text==="/>")&&j.text[0]==="<"||w.text==="}}"&&j.text[0]==="{"&&j.text[1]==="{")||w.type===N.CONTROL_FLOW_CLOSE&&w.text==="}"&&j.text.endsWith("{")},ce.prototype._reset=function(){this._current_tag_name=""},ce.prototype._get_next_token=function(w,j){var ae=null;this._readWhitespace();var ee=this._input.peek();return ee===null?this._create_token(N.EOF,""):(ae=ae||this._read_open_handlebars(ee,j),ae=ae||this._read_attribute(ee,w,j),ae=ae||this._read_close(ee,j),ae=ae||this._read_script_and_style(ee,w),ae=ae||this._read_control_flows(ee,j),ae=ae||this._read_raw_content(ee,w,j),ae=ae||this._read_content_word(ee,j),ae=ae||this._read_comment_or_cdata(ee),ae=ae||this._read_processing(ee),ae=ae||this._read_open(ee,j),ae=ae||this._create_token(N.UNKNOWN,this._input.next()),ae)},ce.prototype._read_comment_or_cdata=function(w){var j=null,ae=null,ee=null;if(w==="<"){var oe=this._input.peek(1);oe==="!"&&(ae=this.__patterns.comment.read(),ae?(ee=U.get_directives(ae),ee&&ee.ignore==="start"&&(ae+=U.readIgnored(this._input))):ae=this.__patterns.cdata.read()),ae&&(j=this._create_token(N.COMMENT,ae),j.directives=ee)}return j},ce.prototype._read_processing=function(w){var j=null,ae=null,ee=null;if(w==="<"){var oe=this._input.peek(1);(oe==="!"||oe==="?")&&(ae=this.__patterns.conditional_comment.read(),ae=ae||this.__patterns.processing.read()),ae&&(j=this._create_token(N.COMMENT,ae),j.directives=ee)}return j},ce.prototype._read_open=function(w,j){var ae=null,ee=null;return(!j||j.type===N.CONTROL_FLOW_OPEN)&&w==="<"&&(ae=this._input.next(),this._input.peek()==="/"&&(ae+=this._input.next()),ae+=this.__patterns.element_name.read(),ee=this._create_token(N.TAG_OPEN,ae)),ee},ce.prototype._read_open_handlebars=function(w,j){var ae=null,ee=null;return(!j||j.type===N.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&w==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(ae=this.__patterns.handlebars_comment.read(),ae=ae||this.__patterns.handlebars.read(),ee=this._create_token(N.COMMENT,ae)):(ae=this.__patterns.handlebars_open.read(),ee=this._create_token(N.TAG_OPEN,ae))),ee},ce.prototype._read_control_flows=function(w,j){var ae="",ee=null;if(!this._options.templating.includes("angular"))return ee;if(w==="@"){if(ae=this.__patterns.angular_control_flow_start.read(),ae==="")return ee;for(var oe=ae.endsWith("(")?1:0,Ae=0;!(ae.endsWith("{")&&oe===Ae);){var we=this._input.next();if(we===null)break;we==="("?oe++:we===")"&&Ae++,ae+=we}ee=this._create_token(N.CONTROL_FLOW_OPEN,ae)}else w==="}"&&j&&j.type===N.CONTROL_FLOW_OPEN&&(ae=this._input.next(),ee=this._create_token(N.CONTROL_FLOW_CLOSE,ae));return ee},ce.prototype._read_close=function(w,j){var ae=null,ee=null;return j&&j.type===N.TAG_OPEN&&(j.text[0]==="<"&&(w===">"||w==="/"&&this._input.peek(1)===">")?(ae=this._input.next(),w==="/"&&(ae+=this._input.next()),ee=this._create_token(N.TAG_CLOSE,ae)):j.text[0]==="{"&&w==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),ee=this._create_token(N.TAG_CLOSE,"}}"))),ee},ce.prototype._read_attribute=function(w,j,ae){var ee=null,oe="";if(ae&&ae.text[0]==="<")if(w==="=")ee=this._create_token(N.EQUALS,this._input.next());else if(w==='"'||w==="'"){var Ae=this._input.next();w==='"'?Ae+=this.__patterns.double_quote.read():Ae+=this.__patterns.single_quote.read(),ee=this._create_token(N.VALUE,Ae)}else oe=this.__patterns.attribute.read(),oe&&(j.type===N.EQUALS?ee=this._create_token(N.VALUE,oe):ee=this._create_token(N.ATTRIBUTE,oe));return ee},ce.prototype._is_content_unformatted=function(w){return this._options.void_elements.indexOf(w)===-1&&(this._options.content_unformatted.indexOf(w)!==-1||this._options.unformatted.indexOf(w)!==-1)},ce.prototype._read_raw_content=function(w,j,ae){var ee="";if(ae&&ae.text[0]==="{")ee=this.__patterns.handlebars_raw_close.read();else if(j.type===N.TAG_CLOSE&&j.opened.text[0]==="<"&&j.text[0]!=="/"){var oe=j.opened.text.substr(1).toLowerCase();this._is_content_unformatted(oe)&&(ee=this._input.readUntil(new RegExp("</"+oe+"[\\n\\r\\t ]*?>","ig")))}return ee?this._create_token(N.TEXT,ee):null},ce.prototype._read_script_and_style=function(w,j){if(j.type===N.TAG_CLOSE&&j.opened.text[0]==="<"&&j.text[0]!=="/"){var ae=j.opened.text.substr(1).toLowerCase();if(ae==="script"||ae==="style"){var ee=this._read_comment_or_cdata(w);if(ee)return ee.type=N.TEXT,ee;var oe=this._input.readUntil(new RegExp("</"+ae+"[\\n\\r\\t ]*?>","ig"));if(oe)return this._create_token(N.TEXT,oe)}}return null},ce.prototype._read_content_word=function(w,j){var ae="";return this._options.unformatted_content_delimiter&&w===this._options.unformatted_content_delimiter[0]&&(ae=this.__patterns.unformatted_content_delimiter.read()),ae||(ae=j&&j.type===N.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),ae?this._create_token(N.TEXT,ae):null},M.exports.Tokenizer=ce,M.exports.TOKEN=N}],de={};function o(M){var x=de[M];if(x!==void 0)return x.exports;var h=de[M]={exports:{}};return ge[M](h,h.exports,o),h.exports}var z=o(18);Ee=z})();var Re=Ee;if(1)K=[T,T(58553),T(87804)],re=function(ge){var de=T(58553),o=T(87804);return{html_beautify:function(z,M){return Re(z,M,de.js_beautify,o.css_beautify)}}}.apply(Qe,K),re!==void 0&&(Nt.exports=re);else var pe,Z})()},58553:function(Nt,Qe){var T,K;(function(){var re;(function(){"use strict";var Re=[function(de,o,z){var M=z(1).Beautifier,x=z(5).Options;function h(E,b){var Y=new M(E,b);return Y.beautify()}de.exports=h,de.exports.defaultOptions=function(){return new x}},function(de,o,z){var M=z(2).Output,x=z(3).Token,h=z(4),E=z(5).Options,b=z(7).Tokenizer,Y=z(7).line_starters,te=z(7).positionable_operators,L=z(7).TOKEN;function N(v,I){return I.indexOf(v)!==-1}function U(v){return v.replace(/^\s+/g,"")}function ce(v){for(var I={},G=0;G<v.length;G++)I[v[G].replace(/-/g,"_")]=v[G];return I}function w(v,I){return v&&v.type===L.RESERVED&&v.text===I}function j(v,I){return v&&v.type===L.RESERVED&&N(v.text,I)}var ae=["case","return","do","if","throw","else","await","break","continue","async"],ee=["before-newline","after-newline","preserve-newline"],oe=ce(ee),Ae=[oe.before_newline,oe.preserve_newline],we={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function Ne(v,I){I.multiline_frame||I.mode===we.ForInitializer||I.mode===we.Conditional||v.remove_indent(I.start_line_index)}function W(v){v=v.replace(h.allLineBreaks,`
`);for(var I=[],G=v.indexOf(`
`);G!==-1;)I.push(v.substring(0,G)),v=v.substring(G+1),G=v.indexOf(`
`);return v.length&&I.push(v),I}function P(v){return v===we.ArrayLiteral}function q(v){return N(v,[we.Expression,we.ForInitializer,we.Conditional])}function D(v,I){for(var G=0;G<v.length;G++){var xe=v[G].trim();if(xe.charAt(0)!==I)return!1}return!0}function ie(v,I){for(var G=0,xe=v.length,De;G<xe;G++)if(De=v[G],De&&De.indexOf(I)!==0)return!1;return!0}function F(v,I){I=I||{},this._source_text=v||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new E(I)}F.prototype.create_flags=function(v,I){var G=0;v&&(G=v.indentation_level,!this._output.just_added_newline()&&v.line_indent_level>G&&(G=v.line_indent_level));var xe={mode:I,parent:v,last_token:v?v.last_token:new x(L.START_BLOCK,""),last_word:v?v.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:G,alignment:0,line_indent_level:v?v.line_indent_level:G,start_line_index:this._output.get_line_number(),ternary_depth:0};return xe},F.prototype._reset=function(v){var I=v.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new M(this._options,I),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(we.BlockStatement);var G=new b(v,this._options);return this._tokens=G.tokenize(),v},F.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var v,I=this._reset(this._source_text),G=this._options.eol;this._options.eol==="auto"&&(G=`
`,I&&h.lineBreak.test(I||"")&&(G=I.match(h.lineBreak)[0]));for(var xe=this._tokens.next();xe;)this.handle_token(xe),this._last_last_text=this._flags.last_token.text,this._flags.last_token=xe,xe=this._tokens.next();return v=this._output.get_code(G),v},F.prototype.handle_token=function(v,I){v.type===L.START_EXPR?this.handle_start_expr(v):v.type===L.END_EXPR?this.handle_end_expr(v):v.type===L.START_BLOCK?this.handle_start_block(v):v.type===L.END_BLOCK?this.handle_end_block(v):v.type===L.WORD?this.handle_word(v):v.type===L.RESERVED?this.handle_word(v):v.type===L.SEMICOLON?this.handle_semicolon(v):v.type===L.STRING?this.handle_string(v):v.type===L.EQUALS?this.handle_equals(v):v.type===L.OPERATOR?this.handle_operator(v):v.type===L.COMMA?this.handle_comma(v):v.type===L.BLOCK_COMMENT?this.handle_block_comment(v,I):v.type===L.COMMENT?this.handle_comment(v,I):v.type===L.DOT?this.handle_dot(v):v.type===L.EOF?this.handle_eof(v):v.type===L.UNKNOWN?this.handle_unknown(v,I):this.handle_unknown(v,I)},F.prototype.handle_whitespace_and_comments=function(v,I){var G=v.newlines,xe=this._options.keep_array_indentation&&P(this._flags.mode);if(v.comments_before)for(var De=v.comments_before.next();De;)this.handle_whitespace_and_comments(De,I),this.handle_token(De,I),De=v.comments_before.next();if(xe)for(var Ie=0;Ie<G;Ie+=1)this.print_newline(Ie>0,I);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,I);for(var $e=1;$e<G;$e+=1)this.print_newline(!0,I)}};var g=["async","break","continue","return","throw","yield"];F.prototype.allow_wrap_or_preserved_newline=function(v,I){if(I=I===void 0?!1:I,!this._output.just_added_newline()){var G=this._options.preserve_newlines&&v.newlines||I,xe=N(this._flags.last_token.text,te)||N(v.text,te);if(xe){var De=N(this._flags.last_token.text,te)&&N(this._options.operator_position,Ae)||N(v.text,te);G=G&&De}if(G)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(j(this._flags.last_token,g))return;this._output.set_wrap_point()}}},F.prototype.print_newline=function(v,I){if(!I&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==L.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var G=this._tokens.peek();this._flags.mode===we.Statement&&!(this._flags.if_block&&w(G,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(v)&&(this._flags.multiline_frame=!0)},F.prototype.print_token_line_indentation=function(v){this._output.just_added_newline()&&(this._options.keep_array_indentation&&v.newlines&&(v.text==="["||P(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(v.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},F.prototype.print_token=function(v){if(this._output.raw){this._output.add_raw_token(v);return}if(this._options.comma_first&&v.previous&&v.previous.type===L.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var I=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(I),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(v),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(v),this._output.non_breaking_space=!0,this._output.add_token(v.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},F.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},F.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))},F.prototype.set_mode=function(v){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,v),this._flags=this.create_flags(this._previous_flags,v),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},F.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===we.Statement&&Ne(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},F.prototype.start_of_object_property=function(){return this._flags.parent.mode===we.ObjectLiteral&&this._flags.mode===we.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||j(this._flags.last_token,["get","set"]))},F.prototype.start_of_statement=function(v){var I=!1;return I=I||j(this._flags.last_token,["var","let","const"])&&v.type===L.WORD,I=I||w(this._flags.last_token,"do"),I=I||!(this._flags.parent.mode===we.ObjectLiteral&&this._flags.mode===we.Statement)&&j(this._flags.last_token,g)&&!v.newlines,I=I||w(this._flags.last_token,"else")&&!(w(v,"if")&&!v.comments_before),I=I||this._flags.last_token.type===L.END_EXPR&&(this._previous_flags.mode===we.ForInitializer||this._previous_flags.mode===we.Conditional),I=I||this._flags.last_token.type===L.WORD&&this._flags.mode===we.BlockStatement&&!this._flags.in_case&&!(v.text==="--"||v.text==="++")&&this._last_last_text!=="function"&&v.type!==L.WORD&&v.type!==L.RESERVED,I=I||this._flags.mode===we.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||j(this._flags.last_token,["get","set"])),I?(this.set_mode(we.Statement),this.indent(),this.handle_whitespace_and_comments(v,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(v,j(v,["do","for","if","while"])),!0):!1},F.prototype.handle_start_expr=function(v){this.start_of_statement(v)||this.handle_whitespace_and_comments(v);var I=we.Expression;if(v.text==="["){if(this._flags.last_token.type===L.WORD||this._flags.last_token.text===")"){j(this._flags.last_token,Y)&&(this._output.space_before_token=!0),this.print_token(v),this.set_mode(I),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}I=we.ArrayLiteral,P(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()),N(this._flags.last_token.type,[L.START_EXPR,L.END_EXPR,L.WORD,L.OPERATOR,L.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===L.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,I=we.ForInitializer):N(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,I=we.Conditional):N(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&v.whitespace_before===""?this._output.space_before_token=!1:(N(this._flags.last_token.text,Y)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===L.EQUALS||this._flags.last_token.type===L.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(v);else if(this._flags.last_token.type===L.WORD){this._output.space_before_token=!1;var G=this._tokens.peek(-3);if(this._options.space_after_named_function&&G){var xe=this._tokens.peek(-4);j(G,["async","function"])||G.text==="*"&&j(xe,["async","function"])?this._output.space_before_token=!0:this._flags.mode===we.ObjectLiteral?(G.text==="{"||G.text===","||G.text==="*"&&(xe.text==="{"||xe.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(v);(this._flags.last_token.type===L.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(N(this._last_last_text,["function","yield"])||this._flags.mode===we.ObjectLiteral&&N(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===L.START_BLOCK?this.print_newline():(this._flags.last_token.type===L.END_EXPR||this._flags.last_token.type===L.START_EXPR||this._flags.last_token.type===L.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===L.COMMA)&&this.allow_wrap_or_preserved_newline(v,v.newlines),this.print_token(v),this.set_mode(I),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},F.prototype.handle_end_expr=function(v){for(;this._flags.mode===we.Statement;)this.restore_mode();this.handle_whitespace_and_comments(v),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(v,v.text==="]"&&P(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===L.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(v),this.restore_mode(),Ne(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===we.Conditional&&(this._previous_flags.mode=we.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},F.prototype.handle_start_block=function(v){this.handle_whitespace_and_comments(v);var I=this._tokens.peek(),G=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===L.END_EXPR?(this.set_mode(we.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(we.BlockStatement):G&&(N(G.text,[":",","])&&N(I.type,[L.STRING,L.WORD,L.RESERVED])||N(I.text,["get","set","..."])&&N(G.type,[L.WORD,L.RESERVED]))?N(this._last_last_text,["class","interface"])&&!N(G.text,[":",","])?this.set_mode(we.BlockStatement):this.set_mode(we.ObjectLiteral):this._flags.last_token.type===L.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(we.BlockStatement):N(this._flags.last_token.type,[L.EQUALS,L.START_EXPR,L.COMMA,L.OPERATOR])||j(this._flags.last_token,["return","throw","import","default"])?this.set_mode(we.ObjectLiteral):this.set_mode(we.BlockStatement),this._flags.last_token&&j(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var xe=!I.comments_before&&I.text==="}",De=xe&&this._flags.last_word==="function"&&this._flags.last_token.type===L.END_EXPR;if(this._options.brace_preserve_inline){var Ie=0,$e=null;this._flags.inline_frame=!0;do if(Ie+=1,$e=this._tokens.peek(Ie-1),$e.newlines){this._flags.inline_frame=!1;break}while($e.type!==L.EOF&&!($e.type===L.END_BLOCK&&$e.opened===v))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&v.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==L.OPERATOR&&(De||this._flags.last_token.type===L.EQUALS||j(this._flags.last_token,ae)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(P(this._previous_flags.mode)&&(this._flags.last_token.type===L.START_EXPR||this._flags.last_token.type===L.COMMA)&&((this._flags.last_token.type===L.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===L.COMMA||this._flags.last_token.type===L.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(v),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==L.OPERATOR&&this._flags.last_token.type!==L.START_EXPR&&(N(this._flags.last_token.type,[L.START_BLOCK,L.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(v),this.indent(),!xe&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},F.prototype.handle_end_block=function(v){for(this.handle_whitespace_and_comments(v);this._flags.mode===we.Statement;)this.restore_mode();var I=this._flags.last_token.type===L.START_BLOCK;this._flags.inline_frame&&!I?this._output.space_before_token=!0:this._options.brace_style==="expand"?I||this.print_newline():I||(P(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(v)},F.prototype.handle_word=function(v){if(v.type===L.RESERVED){if(N(v.text,["set","get"])&&this._flags.mode!==we.ObjectLiteral)v.type=L.WORD;else if(v.text==="import"&&N(this._tokens.peek().text,["(","."]))v.type=L.WORD;else if(N(v.text,["as","from"])&&!this._flags.import_block)v.type=L.WORD;else if(this._flags.mode===we.ObjectLiteral){var I=this._tokens.peek();I.text===":"&&(v.type=L.WORD)}}if(this.start_of_statement(v)?j(this._flags.last_token,["var","let","const"])&&v.type===L.WORD&&(this._flags.declaration_statement=!0):v.newlines&&!q(this._flags.mode)&&(this._flags.last_token.type!==L.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==L.EQUALS&&(this._options.preserve_newlines||!j(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(v),this.print_newline()):this.handle_whitespace_and_comments(v),this._flags.do_block&&!this._flags.do_while)if(w(v,"while")){this._output.space_before_token=!0,this.print_token(v),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&w(v,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===we.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&j(v,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(v),this._flags.in_case=!0;return}if((this._flags.last_token.type===L.COMMA||this._flags.last_token.type===L.START_EXPR||this._flags.last_token.type===L.EQUALS||this._flags.last_token.type===L.OPERATOR)&&!this.start_of_object_property()&&!(N(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===we.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(v),w(v,"function")){(N(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(N(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===L.OPERATOR))&&!this._output.just_added_blankline()&&!v.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===L.RESERVED||this._flags.last_token.type===L.WORD?j(this._flags.last_token,["get","set","new","export"])||j(this._flags.last_token,g)?this._output.space_before_token=!0:w(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===L.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(q(this._flags.mode)||P(this._flags.mode))||this.print_newline(),this.print_token(v),this._flags.last_word=v.text;return}var G="NONE";if(this._flags.last_token.type===L.END_BLOCK?this._previous_flags.inline_frame?G="SPACE":j(v,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&v.newlines?G="NEWLINE":(G="SPACE",this._output.space_before_token=!0):G="NEWLINE":this._flags.last_token.type===L.SEMICOLON&&this._flags.mode===we.BlockStatement?G="NEWLINE":this._flags.last_token.type===L.SEMICOLON&&q(this._flags.mode)?G="SPACE":this._flags.last_token.type===L.STRING?G="NEWLINE":this._flags.last_token.type===L.RESERVED||this._flags.last_token.type===L.WORD||this._flags.last_token.text==="*"&&(N(this._last_last_text,["function","yield"])||this._flags.mode===we.ObjectLiteral&&N(this._last_last_text,["{",","]))?G="SPACE":this._flags.last_token.type===L.START_BLOCK?this._flags.inline_frame?G="SPACE":G="NEWLINE":this._flags.last_token.type===L.END_EXPR&&(this._output.space_before_token=!0,G="NEWLINE"),j(v,Y)&&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(v,["else","catch","finally"]))if((!(this._flags.last_token.type===L.END_BLOCK&&this._previous_flags.mode===we.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&v.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var xe=this._output.current_line;xe.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else G==="NEWLINE"?j(this._flags.last_token,ae)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&j(v,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==L.END_EXPR?(this._flags.last_token.type!==L.START_EXPR||!j(v,["var","let","const"]))&&this._flags.last_token.text!==":"&&(w(v,"if")&&w(v.previous,"else")?this._output.space_before_token=!0:this.print_newline()):j(v,Y)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&P(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():G==="SPACE"&&(this._output.space_before_token=!0);v.previous&&(v.previous.type===L.WORD||v.previous.type===L.RESERVED)&&(this._output.space_before_token=!0),this.print_token(v),this._flags.last_word=v.text,v.type===L.RESERVED&&(v.text==="do"?this._flags.do_block=!0:v.text==="if"?this._flags.if_block=!0:v.text==="import"?this._flags.import_block=!0:this._flags.import_block&&w(v,"from")&&(this._flags.import_block=!1))},F.prototype.handle_semicolon=function(v){this.start_of_statement(v)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(v);for(var I=this._tokens.peek();this._flags.mode===we.Statement&&!(this._flags.if_block&&w(I,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(v)},F.prototype.handle_string=function(v){v.text.startsWith("`")&&v.newlines===0&&v.whitespace_before===""&&(v.previous.text===")"||this._flags.last_token.type===L.WORD)||(this.start_of_statement(v)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(v),this._flags.last_token.type===L.RESERVED||this._flags.last_token.type===L.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===L.COMMA||this._flags.last_token.type===L.START_EXPR||this._flags.last_token.type===L.EQUALS||this._flags.last_token.type===L.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(v):v.text.startsWith("`")&&this._flags.last_token.type===L.END_EXPR&&(v.previous.text==="]"||v.previous.text===")")&&v.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(v)},F.prototype.handle_equals=function(v){this.start_of_statement(v)||this.handle_whitespace_and_comments(v),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(v),this._output.space_before_token=!0},F.prototype.handle_comma=function(v){this.handle_whitespace_and_comments(v,!0),this.print_token(v),this._output.space_before_token=!0,this._flags.declaration_statement?(q(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(v)):this._flags.mode===we.ObjectLiteral||this._flags.mode===we.Statement&&this._flags.parent.mode===we.ObjectLiteral?(this._flags.mode===we.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(v)},F.prototype.handle_operator=function(v){var I=v.text==="*"&&(j(this._flags.last_token,["function","yield"])||N(this._flags.last_token.type,[L.START_BLOCK,L.COMMA,L.END_BLOCK,L.SEMICOLON])),G=N(v.text,["-","+"])&&(N(this._flags.last_token.type,[L.START_BLOCK,L.START_EXPR,L.EQUALS,L.OPERATOR])||N(this._flags.last_token.text,Y)||this._flags.last_token.text===",");if(!this.start_of_statement(v)){var xe=!I;this.handle_whitespace_and_comments(v,xe)}if(v.text==="*"&&this._flags.last_token.type===L.DOT){this.print_token(v);return}if(v.text==="::"){this.print_token(v);return}if(N(v.text,["-","+"])&&this.start_of_object_property()){this.print_token(v);return}if(this._flags.last_token.type===L.OPERATOR&&N(this._options.operator_position,Ae)&&this.allow_wrap_or_preserved_newline(v),v.text===":"&&this._flags.in_case){this.print_token(v),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==L.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 De=!0,Ie=!0,$e=!1;if(v.text===":"?this._flags.ternary_depth===0?De=!1:(this._flags.ternary_depth-=1,$e=!0):v.text==="?"&&(this._flags.ternary_depth+=1),!G&&!I&&this._options.preserve_newlines&&N(v.text,te)){var qe=v.text===":",Ye=qe&&$e,Ve=qe&&!$e;switch(this._options.operator_position){case oe.before_newline:this._output.space_before_token=!Ve,this.print_token(v),(!qe||Ye)&&this.allow_wrap_or_preserved_newline(v),this._output.space_before_token=!0;return;case oe.after_newline:this._output.space_before_token=!0,!qe||Ye?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(v):this._output.space_before_token=!1,this.print_token(v),this._output.space_before_token=!0;return;case oe.preserve_newline:Ve||this.allow_wrap_or_preserved_newline(v),De=!(this._output.just_added_newline()||Ve),this._output.space_before_token=De,this.print_token(v),this._output.space_before_token=!0;return}}if(I){this.allow_wrap_or_preserved_newline(v),De=!1;var ht=this._tokens.peek();Ie=ht&&N(ht.type,[L.WORD,L.RESERVED])}else if(v.text==="...")this.allow_wrap_or_preserved_newline(v),De=this._flags.last_token.type===L.START_BLOCK,Ie=!1;else if(N(v.text,["--","++","!","~"])||G){if((this._flags.last_token.type===L.COMMA||this._flags.last_token.type===L.START_EXPR)&&this.allow_wrap_or_preserved_newline(v),De=!1,Ie=!1,v.newlines&&(v.text==="--"||v.text==="++"||v.text==="~")){var mt=j(this._flags.last_token,ae)&&v.newlines;mt&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(mt,!0)}this._flags.last_token.text===";"&&q(this._flags.mode)&&(De=!0),this._flags.last_token.type===L.RESERVED?De=!0:this._flags.last_token.type===L.END_EXPR?De=!(this._flags.last_token.text==="]"&&(v.text==="--"||v.text==="++")):this._flags.last_token.type===L.OPERATOR&&(De=N(v.text,["--","-","++","+"])&&N(this._flags.last_token.text,["--","-","++","+"]),N(v.text,["+","-"])&&N(this._flags.last_token.text,["--","++"])&&(Ie=!0)),(this._flags.mode===we.BlockStatement&&!this._flags.inline_frame||this._flags.mode===we.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||De,this.print_token(v),this._output.space_before_token=Ie},F.prototype.handle_block_comment=function(v,I){if(this._output.raw){this._output.add_raw_token(v),v.directives&&v.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(v.directives){this.print_newline(!1,I),this.print_token(v),v.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!h.newline.test(v.text)&&!v.newlines){this._output.space_before_token=!0,this.print_token(v),this._output.space_before_token=!0;return}else this.print_block_commment(v,I)},F.prototype.print_block_commment=function(v,I){var G=W(v.text),xe,De=!1,Ie=!1,$e=v.whitespace_before,qe=$e.length;if(this.print_newline(!1,I),this.print_token_line_indentation(v),this._output.add_token(G[0]),this.print_newline(!1,I),G.length>1){for(G=G.slice(1),De=D(G,"*"),Ie=ie(G,$e),De&&(this._flags.alignment=1),xe=0;xe<G.length;xe++)De?(this.print_token_line_indentation(v),this._output.add_token(U(G[xe]))):Ie&&G[xe]?(this.print_token_line_indentation(v),this._output.add_token(G[xe].substring(qe))):(this._output.current_line.set_indent(-1),this._output.add_token(G[xe])),this.print_newline(!1,I);this._flags.alignment=0}},F.prototype.handle_comment=function(v,I){v.newlines?this.print_newline(!1,I):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(v),this.print_newline(!1,I)},F.prototype.handle_dot=function(v){this.start_of_statement(v)||this.handle_whitespace_and_comments(v,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),j(this._flags.last_token,ae)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(v,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(v)},F.prototype.handle_unknown=function(v,I){this.print_token(v),v.text[v.text.length-1]===`
`&&this.print_newline(!1,I)},F.prototype.handle_eof=function(v){for(;this._flags.mode===we.Statement;)this.restore_mode();this.handle_whitespace_and_comments(v)},de.exports.Beautifier=F},function(de){function o(x){this.__parent=x,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 x=new o(this.__parent);return x.set_indent(this.__indent_count,this.__alignment_count),x},o.prototype.item=function(x){return x<0?this.__items[this.__items.length+x]:this.__items[x]},o.prototype.has_match=function(x){for(var h=this.__items.length-1;h>=0;h--)if(this.__items[h].match(x))return!0;return!1},o.prototype.set_indent=function(x,h){this.is_empty()&&(this.__indent_count=x||0,this.__alignment_count=h||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 x=this.__parent.current_line;return x.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),x.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),x.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,x.__items[0]===" "&&(x.__items.splice(0,1),x.__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(x){this.__items.push(x);var h=x.lastIndexOf(`
`);h!==-1?this.__character_count=x.length-h:this.__character_count+=x.length},o.prototype.pop=function(){var x=null;return this.is_empty()||(x=this.__items.pop(),this.__character_count-=x.length),x},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 x="";return this.is_empty()?this.__parent.indent_empty_lines&&(x=this.__parent.get_indent_string(this.__indent_count)):(x=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),x+=this.__items.join("")),x};function z(x,h){this.__cache=[""],this.__indent_size=x.indent_size,this.__indent_string=x.indent_char,x.indent_with_tabs||(this.__indent_string=new Array(x.indent_size+1).join(x.indent_char)),h=h||"",x.indent_level>0&&(h=new Array(x.indent_level+1).join(this.__indent_string)),this.__base_string=h,this.__base_string_length=h.length}z.prototype.get_indent_size=function(x,h){var E=this.__base_string_length;return h=h||0,x<0&&(E=0),E+=x*this.__indent_size,E+=h,E},z.prototype.get_indent_string=function(x,h){var E=this.__base_string;return h=h||0,x<0&&(x=0,E=""),h+=x*this.__indent_size,this.__ensure_cache(h),E+=this.__cache[h],E},z.prototype.__ensure_cache=function(x){for(;x>=this.__cache.length;)this.__add_column()},z.prototype.__add_column=function(){var x=this.__cache.length,h=0,E="";this.__indent_size&&x>=this.__indent_size&&(h=Math.floor(x/this.__indent_size),x-=h*this.__indent_size,E=new Array(h+1).join(this.__indent_string)),x&&(E+=new Array(x+1).join(" ")),this.__cache.push(E)};function M(x,h){this.__indent_cache=new z(x,h),this.raw=!1,this._end_with_newline=x.end_with_newline,this.indent_size=x.indent_size,this.wrap_line_length=x.wrap_line_length,this.indent_empty_lines=x.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()}M.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},M.prototype.get_line_number=function(){return this.__lines.length},M.prototype.get_indent_string=function(x,h){return this.__indent_cache.get_indent_string(x,h)},M.prototype.get_indent_size=function(x,h){return this.__indent_cache.get_indent_size(x,h)},M.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},M.prototype.add_new_line=function(x){return this.is_empty()||!x&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},M.prototype.get_code=function(x){this.trim(!0);var h=this.current_line.pop();h&&(h[h.length-1]===`
`&&(h=h.replace(/\n+$/g,"")),this.current_line.push(h)),this._end_with_newline&&this.__add_outputline();var E=this.__lines.join(`
`);return x!==`
`&&(E=E.replace(/[\n]/g,x)),E},M.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},M.prototype.set_indent=function(x,h){return x=x||0,h=h||0,this.next_line.set_indent(x,h),this.__lines.length>1?(this.current_line.set_indent(x,h),!0):(this.current_line.set_indent(),!1)},M.prototype.add_raw_token=function(x){for(var h=0;h<x.newlines;h++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(x.whitespace_before),this.current_line.push(x.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},M.prototype.add_token=function(x){this.__add_space_before_token(),this.current_line.push(x),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},M.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(" "))},M.prototype.remove_indent=function(x){for(var h=this.__lines.length;x<h;)this.__lines[x]._remove_indent(),x++;this.current_line._remove_wrap_indent()},M.prototype.trim=function(x){for(x=x===void 0?!1:x,this.current_line.trim();x&&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},M.prototype.just_added_newline=function(){return this.current_line.is_empty()},M.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},M.prototype.ensure_empty_line_above=function(x,h){for(var E=this.__lines.length-2;E>=0;){var b=this.__lines[E];if(b.is_empty())break;if(b.item(0).indexOf(x)!==0&&b.item(-1)!==h){this.__lines.splice(E+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}E--}},de.exports.Output=M},function(de){function o(z,M,x,h){this.type=z,this.text=M,this.comments_before=null,this.newlines=x||0,this.whitespace_before=h||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}de.exports.Token=o},function(de,o){var z="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",M="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",x="\\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",h="\\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",E="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",b="(?:"+E+"|["+z+x+"])",Y="(?:"+E+"|["+M+x+h+"])*";o.identifier=new RegExp(b+Y,"g"),o.identifierStart=new RegExp(b),o.identifierMatch=new RegExp("(?:"+E+"|["+M+x+h+"])+");var te=/[\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(de,o,z){var M=z(6).Options,x=["before-newline","after-newline","preserve-newline"];function h(E){M.call(this,E,"js");var b=this.raw_options.brace_style||null;b==="expand-strict"?this.raw_options.brace_style="expand":b==="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 Y=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var te=0;te<Y.length;te++)Y[te]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=Y[te];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",x),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}h.prototype=new M,de.exports.Options=h},function(de){function o(x,h){this.raw_options=z(x,h),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(x,h){var E=this.raw_options[x],b=h||[];return typeof E=="object"?E!==null&&typeof E.concat=="function"&&(b=E.concat()):typeof E=="string"&&(b=E.split(/[^a-zA-Z0-9_\/\-]+/)),b},o.prototype._get_boolean=function(x,h){var E=this.raw_options[x],b=E===void 0?!!h:!!E;return b},o.prototype._get_characters=function(x,h){var E=this.raw_options[x],b=h||"";return typeof E=="string"&&(b=E.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),b},o.prototype._get_number=function(x,h){var E=this.raw_options[x];h=parseInt(h,10),isNaN(h)&&(h=0);var b=parseInt(E,10);return isNaN(b)&&(b=h),b},o.prototype._get_selection=function(x,h,E){var b=this._get_selection_list(x,h,E);if(b.length!==1)throw new Error("Invalid Option Value: The option '"+x+`' can only be one of the following values:
`+h+`
You passed in: '`+this.raw_options[x]+"'");return b[0]},o.prototype._get_selection_list=function(x,h,E){if(!h||h.length===0)throw new Error("Selection list cannot be empty.");if(E=E||[h[0]],!this._is_valid_selection(E,h))throw new Error("Invalid Default Value!");var b=this._get_array(x,E);if(!this._is_valid_selection(b,h))throw new Error("Invalid Option Value: The option '"+x+`' can contain only the following values:
`+h+`
You passed in: '`+this.raw_options[x]+"'");return b},o.prototype._is_valid_selection=function(x,h){return x.length&&h.length&&!x.some(function(E){return h.indexOf(E)===-1})};function z(x,h){var E={};x=M(x);var b;for(b in x)b!==h&&(E[b]=x[b]);if(h&&x[h])for(b in x[h])E[b]=x[h][b];return E}function M(x){var h={},E;for(E in x){var b=E.replace(/-/g,"_");h[b]=x[E]}return h}de.exports.Options=o,de.exports.normalizeOpts=M,de.exports.mergeOpts=z},function(de,o,z){var M=z(8).InputScanner,x=z(9).Tokenizer,h=z(9).TOKEN,E=z(13).Directives,b=z(4),Y=z(12).Pattern,te=z(14).TemplatablePattern;function L(D,ie){return ie.indexOf(D)!==-1}var N={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:h.START,RAW:h.RAW,EOF:h.EOF},U=new E(/\/\*/,/\*\//),ce=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,w=/[0-9]/,j=/[^\d\.]/,ae=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),ee=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";ee=ee.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),ee="\\?\\.(?!\\d) "+ee,ee=ee.replace(/ /g,"|");var oe=new RegExp(ee),Ae="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),we=Ae.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),Ne=new RegExp("^(?:"+we.join("|")+")$"),W,P=function(D,ie){x.call(this,D,ie),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var F=new Y(this._input),g=new te(this._input).read_options(this._options);this.__patterns={template:g,identifier:g.starting_with(b.identifier).matching(b.identifierMatch),number:F.matching(ce),punct:F.matching(oe),comment:F.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:F.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:F.matching(/<!--/),html_comment_end:F.matching(/-->/),include:F.starting_with(/#include/).until_after(b.lineBreak),shebang:F.starting_with(/#!/).until_after(b.lineBreak),xml:F.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:g.until(/['\\\n\r\u2028\u2029]/),double_quote:g.until(/["\\\n\r\u2028\u2029]/),template_text:g.until(/[`\\$]/),template_expression:g.until(/[`}\\]/)}};P.prototype=new x,P.prototype._is_comment=function(D){return D.type===N.COMMENT||D.type===N.BLOCK_COMMENT||D.type===N.UNKNOWN},P.prototype._is_opening=function(D){return D.type===N.START_BLOCK||D.type===N.START_EXPR},P.prototype._is_closing=function(D,ie){return(D.type===N.END_BLOCK||D.type===N.END_EXPR)&&ie&&(D.text==="]"&&ie.text==="["||D.text===")"&&ie.text==="("||D.text==="}"&&ie.text==="{")},P.prototype._reset=function(){W=!1},P.prototype._get_next_token=function(D,ie){var F=null;this._readWhitespace();var g=this._input.peek();return g===null?this._create_token(N.EOF,""):(F=F||this._read_non_javascript(g),F=F||this._read_string(g),F=F||this._read_pair(g,this._input.peek(1)),F=F||this._read_word(D),F=F||this._read_singles(g),F=F||this._read_comment(g),F=F||this._read_regexp(g,D),F=F||this._read_xml(g,D),F=F||this._read_punctuation(),F=F||this._create_token(N.UNKNOWN,this._input.next()),F)},P.prototype._read_word=function(D){var ie;if(ie=this.__patterns.identifier.read(),ie!=="")return ie=ie.replace(b.allLineBreaks,`
`),!(D.type===N.DOT||D.type===N.RESERVED&&(D.text==="set"||D.text==="get"))&&Ne.test(ie)?(ie==="in"||ie==="of")&&(D.type===N.WORD||D.type===N.STRING)?this._create_token(N.OPERATOR,ie):this._create_token(N.RESERVED,ie):this._create_token(N.WORD,ie);if(ie=this.__patterns.number.read(),ie!=="")return this._create_token(N.WORD,ie)},P.prototype._read_singles=function(D){var ie=null;return D==="("||D==="["?ie=this._create_token(N.START_EXPR,D):D===")"||D==="]"?ie=this._create_token(N.END_EXPR,D):D==="{"?ie=this._create_token(N.START_BLOCK,D):D==="}"?ie=this._create_token(N.END_BLOCK,D):D===";"?ie=this._create_token(N.SEMICOLON,D):D==="."&&j.test(this._input.peek(1))?ie=this._create_token(N.DOT,D):D===","&&(ie=this._create_token(N.COMMA,D)),ie&&this._input.next(),ie},P.prototype._read_pair=function(D,ie){var F=null;return D==="#"&&ie==="{"&&(F=this._create_token(N.START_BLOCK,D+ie)),F&&(this._input.next(),this._input.next()),F},P.prototype._read_punctuation=function(){var D=this.__patterns.punct.read();if(D!=="")return D==="="?this._create_token(N.EQUALS,D):D==="?."?this._create_token(N.DOT,D):this._create_token(N.OPERATOR,D)},P.prototype._read_non_javascript=function(D){var ie="";if(D==="#"){if(this._is_first_token()&&(ie=this.__patterns.shebang.read(),ie))return this._create_token(N.UNKNOWN,ie.trim()+`
`);if(ie=this.__patterns.include.read(),ie)return this._create_token(N.UNKNOWN,ie.trim()+`
`);D=this._input.next();var F="#";if(this._input.hasNext()&&this._input.testChar(w)){do D=this._input.next(),F+=D;while(this._input.hasNext()&&D!=="#"&&D!=="=");return D==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(F+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(F+="{}",this._input.next(),this._input.next())),this._create_token(N.WORD,F)}this._input.back()}else if(D==="<"&&this._is_first_token()){if(ie=this.__patterns.html_comment_start.read(),ie){for(;this._input.hasNext()&&!this._input.testChar(b.newline);)ie+=this._input.next();return W=!0,this._create_token(N.COMMENT,ie)}}else if(W&&D==="-"&&(ie=this.__patterns.html_comment_end.read(),ie))return W=!1,this._create_token(N.COMMENT,ie);return null},P.prototype._read_comment=function(D){var ie=null;if(D==="/"){var F="";if(this._input.peek(1)==="*"){F=this.__patterns.block_comment.read();var g=U.get_directives(F);g&&g.ignore==="start"&&(F+=U.readIgnored(this._input)),F=F.replace(b.allLineBreaks,`
`),ie=this._create_token(N.BLOCK_COMMENT,F),ie.directives=g}else this._input.peek(1)==="/"&&(F=this.__patterns.comment.read(),ie=this._create_token(N.COMMENT,F))}return ie},P.prototype._read_string=function(D){if(D==="`"||D==="'"||D==='"'){var ie=this._input.next();return this.has_char_escapes=!1,D==="`"?ie+=this._read_string_recursive("`",!0,"${"):ie+=this._read_string_recursive(D),this.has_char_escapes&&this._options.unescape_strings&&(ie=q(ie)),this._input.peek()===D&&(ie+=this._input.next()),ie=ie.replace(b.allLineBreaks,`
`),this._create_token(N.STRING,ie)}return null},P.prototype._allow_regexp_or_xml=function(D){return D.type===N.RESERVED&&L(D.text,["return","case","throw","else","do","typeof","yield"])||D.type===N.END_EXPR&&D.text===")"&&D.opened.previous.type===N.RESERVED&&L(D.opened.previous.text,["if","while","for"])||L(D.type,[N.COMMENT,N.START_EXPR,N.START_BLOCK,N.START,N.END_BLOCK,N.OPERATOR,N.EQUALS,N.EOF,N.SEMICOLON,N.COMMA])},P.prototype._read_regexp=function(D,ie){if(D==="/"&&this._allow_regexp_or_xml(ie)){for(var F=this._input.next(),g=!1,v=!1;this._input.hasNext()&&(g||v||this._input.peek()!==D)&&!this._input.testChar(b.newline);)F+=this._input.peek(),g?g=!1:(g=this._input.peek()==="\\",this._input.peek()==="["?v=!0:this._input.peek()==="]"&&(v=!1)),this._input.next();return this._input.peek()===D&&(F+=this._input.next(),F+=this._input.read(b.identifier)),this._create_token(N.STRING,F)}return null},P.prototype._read_xml=function(D,ie){if(this._options.e4x&&D==="<"&&this._allow_regexp_or_xml(ie)){var F="",g=this.__patterns.xml.read_match();if(g){for(var v=g[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),I=v.indexOf("{")===0,G=0;g;){var xe=!!g[1],De=g[2],Ie=!!g[g.length-1]||De.slice(0,8)==="![CDATA[";if(!Ie&&(De===v||I&&De.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(xe?--G:++G),F+=g[0],G<=0)break;g=this.__patterns.xml.read_match()}return g||(F+=this._input.match(/[\s\S]*/g)[0]),F=F.replace(b.allLineBreaks,`
`),this._create_token(N.STRING,F)}}return null};function q(D){for(var ie="",F=0,g=new M(D),v=null;g.hasNext();)if(v=g.match(/([\s]|[^\\]|\\\\)+/g),v&&(ie+=v[0]),g.peek()==="\\"){if(g.next(),g.peek()==="x")v=g.match(/x([0-9A-Fa-f]{2})/g);else if(g.peek()==="u")v=g.match(/u([0-9A-Fa-f]{4})/g),v||(v=g.match(/u\{([0-9A-Fa-f]+)\}/g));else{ie+="\\",g.hasNext()&&(ie+=g.next());continue}if(!v||(F=parseInt(v[1],16),F>126&&F<=255&&v[0].indexOf("x")===0))return D;F>=0&&F<32||F>1114111?ie+="\\"+v[0]:F===34||F===39||F===92?ie+="\\"+String.fromCharCode(F):ie+=String.fromCharCode(F)}return ie}P.prototype._read_string_recursive=function(D,ie,F){var g,v;D==="'"?v=this.__patterns.single_quote:D==='"'?v=this.__patterns.double_quote:D==="`"?v=this.__patterns.template_text:D==="}"&&(v=this.__patterns.template_expression);for(var I=v.read(),G="";this._input.hasNext();){if(G=this._input.next(),G===D||!ie&&b.newline.test(G)){this._input.back();break}else G==="\\"&&this._input.hasNext()?(g=this._input.peek(),g==="x"||g==="u"?this.has_char_escapes=!0:g==="\r"&&this._input.peek(1)===`
`&&this._input.next(),G+=this._input.next()):F&&(F==="${"&&G==="$"&&this._input.peek()==="{"&&(G+=this._input.next()),F===G&&(D==="`"?G+=this._read_string_recursive("}",ie,"`"):G+=this._read_string_recursive("`",ie,"${"),this._input.hasNext()&&(G+=this._input.next())));G+=v.read(),I+=G}return I},de.exports.Tokenizer=P,de.exports.TOKEN=N,de.exports.positionable_operators=ae.slice(),de.exports.line_starters=Ae.slice()},function(de){var o=RegExp.prototype.hasOwnProperty("sticky");function z(M){this.__input=M||"",this.__input_length=this.__input.length,this.__position=0}z.prototype.restart=function(){this.__position=0},z.prototype.back=function(){this.__position>0&&(this.__position-=1)},z.prototype.hasNext=function(){return this.__position<this.__input_length},z.prototype.next=function(){var M=null;return this.hasNext()&&(M=this.__input.charAt(this.__position),this.__position+=1),M},z.prototype.peek=function(M){var x=null;return M=M||0,M+=this.__position,M>=0&&M<this.__input_length&&(x=this.__input.charAt(M)),x},z.prototype.__match=function(M,x){M.lastIndex=x;var h=M.exec(this.__input);return h&&!(o&&M.sticky)&&h.index!==x&&(h=null),h},z.prototype.test=function(M,x){return x=x||0,x+=this.__position,x>=0&&x<this.__input_length?!!this.__match(M,x):!1},z.prototype.testChar=function(M,x){var h=this.peek(x);return M.lastIndex=0,h!==null&&M.test(h)},z.prototype.match=function(M){var x=this.__match(M,this.__position);return x?this.__position+=x[0].length:x=null,x},z.prototype.read=function(M,x,h){var E="",b;return M&&(b=this.match(M),b&&(E+=b[0])),x&&(b||!M)&&(E+=this.readUntil(x,h)),E},z.prototype.readUntil=function(M,x){var h="",E=this.__position;M.lastIndex=this.__position;var b=M.exec(this.__input);return b?(E=b.index,x&&(E+=b[0].length)):E=this.__input_length,h=this.__input.substring(this.__position,E),this.__position=E,h},z.prototype.readUntilAfter=function(M){return this.readUntil(M,!0)},z.prototype.get_regexp=function(M,x){var h=null,E="g";return x&&o&&(E="y"),typeof M=="string"&&M!==""?h=new RegExp(M,E):M&&(h=new RegExp(M.source,E)),h},z.prototype.get_literal_regexp=function(M){return RegExp(M.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},z.prototype.peekUntilAfter=function(M){var x=this.__position,h=this.readUntilAfter(M);return this.__position=x,h},z.prototype.lookBack=function(M){var x=this.__position-1;return x>=M.length&&this.__input.substring(x-M.length,x).toLowerCase()===M},de.exports.InputScanner=z},function(de,o,z){var M=z(8).InputScanner,x=z(3).Token,h=z(10).TokenStream,E=z(11).WhitespacePattern,b={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},Y=function(te,L){this._input=new M(te),this._options=L||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new E(this._input)};Y.prototype.tokenize=function(){this._input.restart(),this.__tokens=new h,this._reset();for(var te,L=new x(b.START,""),N=null,U=[],ce=new h;L.type!==b.EOF;){for(te=this._get_next_token(L,N);this._is_comment(te);)ce.add(te),te=this._get_next_token(L,N);ce.isEmpty()||(te.comments_before=ce,ce=new h),te.parent=N,this._is_opening(te)?(U.push(N),N=te):N&&this._is_closing(te,N)&&(te.opened=N,N.closed=te,N=U.pop(),te.parent=N),te.previous=L,L.next=te,this.__tokens.add(te),L=te}return this.__tokens},Y.prototype._is_first_token=function(){return this.__tokens.isEmpty()},Y.prototype._reset=function(){},Y.prototype._get_next_token=function(te,L){this._readWhitespace();var N=this._input.read(/.+/g);return N?this._create_token(b.RAW,N):this._create_token(b.EOF,"")},Y.prototype._is_comment=function(te){return!1},Y.prototype._is_opening=function(te){return!1},Y.prototype._is_closing=function(te,L){return!1},Y.prototype._create_token=function(te,L){var N=new x(te,L,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return N},Y.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},de.exports.Tokenizer=Y,de.exports.TOKEN=b},function(de){function o(z){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=z}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 z=null;return this.hasNext()&&(z=this.__tokens[this.__position],this.__position+=1),z},o.prototype.peek=function(z){var M=null;return z=z||0,z+=this.__position,z>=0&&z<this.__tokens_length&&(M=this.__tokens[z]),M},o.prototype.add=function(z){this.__parent_token&&(z.parent=this.__parent_token),this.__tokens.push(z),this.__tokens_length+=1},de.exports.TokenStream=o},function(de,o,z){var M=z(12).Pattern;function x(h,E){M.call(this,h,E),E?this._line_regexp=this._input.get_regexp(E._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}x.prototype=new M,x.prototype.__set_whitespace_patterns=function(h,E){h+="\\t ",E+="\\n\\r",this._match_pattern=this._input.get_regexp("["+h+E+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+E+"]")},x.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var h=this._input.read(this._match_pattern);if(h===" ")this.whitespace_before_token=" ";else if(h){var E=this.__split(this._newline_regexp,h);this.newline_count=E.length-1,this.whitespace_before_token=E[this.newline_count]}return h},x.prototype.matching=function(h,E){var b=this._create();return b.__set_whitespace_patterns(h,E),b._update(),b},x.prototype._create=function(){return new x(this._input,this)},x.prototype.__split=function(h,E){h.lastIndex=0;for(var b=0,Y=[],te=h.exec(E);te;)Y.push(E.substring(b,te.index)),b=te.index+te[0].length,te=h.exec(E);return b<E.length?Y.push(E.substring(b,E.length)):Y.push(""),Y},de.exports.WhitespacePattern=x},function(de){function o(z,M){this._input=z,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,M&&(this._starting_pattern=this._input.get_regexp(M._starting_pattern,!0),this._match_pattern=this._input.get_regexp(M._match_pattern,!0),this._until_pattern=this._input.get_regexp(M._until_pattern),this._until_after=M._until_after)}o.prototype.read=function(){var z=this._input.read(this._starting_pattern);return(!this._starting_pattern||z)&&(z+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),z},o.prototype.read_match=function(){return this._input.match(this._match_pattern)},o.prototype.until_after=function(z){var M=this._create();return M._until_after=!0,M._until_pattern=this._input.get_regexp(z),M._update(),M},o.prototype.until=function(z){var M=this._create();return M._until_after=!1,M._until_pattern=this._input.get_regexp(z),M._update(),M},o.prototype.starting_with=function(z){var M=this._create();return M._starting_pattern=this._input.get_regexp(z,!0),M._update(),M},o.prototype.matching=function(z){var M=this._create();return M._match_pattern=this._input.get_regexp(z,!0),M._update(),M},o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){},de.exports.Pattern=o},function(de){function o(z,M){z=typeof z=="string"?z:z.source,M=typeof M=="string"?M:M.source,this.__directives_block_pattern=new RegExp(z+/ beautify( \w+[:]\w+)+ /.source+M,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(z+/\sbeautify\signore:end\s/.source+M,"g")}o.prototype.get_directives=function(z){if(!z.match(this.__directives_block_pattern))return null;var M={};this.__directive_pattern.lastIndex=0;for(var x=this.__directive_pattern.exec(z);x;)M[x[1]]=x[2],x=this.__directive_pattern.exec(z);return M},o.prototype.readIgnored=function(z){return z.readUntilAfter(this.__directives_end_ignore_pattern)},de.exports.Directives=o},function(de,o,z){var M=z(12).Pattern,x={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function h(E,b){M.call(this,E,b),this.__template_pattern=null,this._disabled=Object.assign({},x),this._excluded=Object.assign({},x),b&&(this.__template_pattern=this._input.get_regexp(b.__template_pattern),this._excluded=Object.assign(this._excluded,b._excluded),this._disabled=Object.assign(this._disabled,b._disabled));var Y=new M(E);this.__patterns={handlebars_comment:Y.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:Y.starting_with(/{{{/).until_after(/}}}/),handlebars:Y.starting_with(/{{/).until_after(/}}/),php:Y.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:Y.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:Y.starting_with(/{%/).until_after(/%}/),django_value:Y.starting_with(/{{/).until_after(/}}/),django_comment:Y.starting_with(/{#/).until_after(/#}/),smarty:Y.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:Y.starting_with(/{\*/).until_after(/\*}/),smarty_literal:Y.starting_with(/{literal}/).until_after(/{\/literal}/)}}h.prototype=new M,h.prototype._create=function(){return new h(this._input,this)},h.prototype._update=function(){this.__set_templated_pattern()},h.prototype.disable=function(E){var b=this._create();return b._disabled[E]=!0,b._update(),b},h.prototype.read_options=function(E){var b=this._create();for(var Y in x)b._disabled[Y]=E.templating.indexOf(Y)===-1;return b._update(),b},h.prototype.exclude=function(E){var b=this._create();return b._excluded[E]=!0,b._update(),b},h.prototype.read=function(){var E="";this._match_pattern?E=this._input.read(this._starting_pattern):E=this._input.read(this._starting_pattern,this.__template_pattern);for(var b=this._read_template();b;)this._match_pattern?b+=this._input.read(this._match_pattern):b+=this._input.readUntil(this.__template_pattern),E+=b,b=this._read_template();return this._until_after&&(E+=this._input.readUntilAfter(this._until_pattern)),E},h.prototype.__set_templated_pattern=function(){var E=[];this._disabled.php||E.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||E.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||E.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||E.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(E.push(this.__patterns.django._starting_pattern.source),E.push(this.__patterns.django_value._starting_pattern.source),E.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||E.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&E.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+E.join("|")+")")},h.prototype._read_template=function(){var E="",b=this._input.peek();if(b==="<"){var Y=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&Y==="?"&&(E=E||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&Y==="%"&&(E=E||this.__patterns.erb.read())}else b==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(E=E||this.__patterns.handlebars_comment.read(),E=E||this.__patterns.handlebars_unescaped.read(),E=E||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(E=E||this.__patterns.django_value.read()),this._excluded.django||(E=E||this.__patterns.django_comment.read(),E=E||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(E=E||this.__patterns.smarty_comment.read(),E=E||this.__patterns.smarty_literal.read(),E=E||this.__patterns.smarty.read()));return E},de.exports.TemplatablePattern=h}],pe={};function Z(de){var o=pe[de];if(o!==void 0)return o.exports;var z=pe[de]={exports:{}};return Re[de](z,z.exports,Z),z.exports}var ge=Z(0);re=ge})();var Ee=re;T=[],K=function(){return{js_beautify:Ee}}.apply(Qe,T),K!==void 0&&(Nt.exports=K)})()},15342:function(Nt){(function(T,K){Nt.exports=K()})(typeof self!="undefined"?self:this,function(){return function(Qe){var T={};function K(re){if(T[re])return T[re].exports;var Ee=T[re]={i:re,l:!1,exports:{}};return Qe[re].call(Ee.exports,Ee,Ee.exports,K),Ee.l=!0,Ee.exports}return K.m=Qe,K.c=T,K.d=function(re,Ee,Re){K.o(re,Ee)||Object.defineProperty(re,Ee,{enumerable:!0,get:Re})},K.r=function(re){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(re,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(re,"__esModule",{value:!0})},K.t=function(re,Ee){if(Ee&1&&(re=K(re)),Ee&8||Ee&4&&typeof re=="object"&&re&&re.__esModule)return re;var Re=Object.create(null);if(K.r(Re),Object.defineProperty(Re,"default",{enumerable:!0,value:re}),Ee&2&&typeof re!="string")for(var pe in re)K.d(Re,pe,function(Z){return re[Z]}.bind(null,pe));return Re},K.n=function(re){var Ee=re&&re.__esModule?function(){return re.default}:function(){return re};return K.d(Ee,"a",Ee),Ee},K.o=function(re,Ee){return Object.prototype.hasOwnProperty.call(re,Ee)},K.p="",K(K.s=1)}([function(Qe,T,K){},function(Qe,T,K){"use strict";K.r(T);var re=K(0),Ee=function(){function O(l,c,d){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=l,this.start=c,this.end=d}return O.range=function(c,d){return d?!c||!c.loc||!d.loc||c.loc.lexer!==d.loc.lexer?null:new O(c.loc.lexer,c.loc.start,d.loc.end):c&&c.loc},O}(),Re=function(){function O(c,d){this.text=void 0,this.loc=void 0,this.text=c,this.loc=d}var l=O.prototype;return l.range=function(d,p){return new O(p,Ee.range(this,d))},O}(),pe=function O(l,c){this.position=void 0;var d="KaTeX parse error: "+l,p,C=c&&c.loc;if(C&&C.start<=C.end){var k=C.lexer.input;p=C.start;var fe=C.end;p===k.length?d+=" at end of input: ":d+=" at position "+(p+1)+": ";var ye=k.slice(p,fe).replace(/[^]/g,"$&\u0332"),Me;p>15?Me="\u2026"+k.slice(p-15,p):Me=k.slice(0,p);var Ze;fe+15<k.length?Ze=k.slice(fe,fe+15)+"\u2026":Ze=k.slice(fe),d+=Me+ye+Ze}var at=new Error(d);return at.name="ParseError",at.__proto__=O.prototype,at.position=p,at};pe.prototype.__proto__=Error.prototype;var Z=pe,ge=function(l,c){return l.indexOf(c)!==-1},de=function(l,c){return l===void 0?c:l},o=/([A-Z])/g,z=function(l){return l.replace(o,"-$1").toLowerCase()},M={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},x=/[&><"']/g;function h(O){return String(O).replace(x,function(l){return M[l]})}var E=function O(l){return l.type==="ordgroup"||l.type==="color"?l.body.length===1?O(l.body[0]):l:l.type==="font"?O(l.body):l},b=function(l){var c=E(l);return c.type==="mathord"||c.type==="textord"||c.type==="atom"},Y=function(l){if(!l)throw new Error("Expected non-null, but got "+String(l));return l},te=function(l){var c=/^\s*([^\\/#]*?)(?::|&#0*58|&#x0*3a)/i.exec(l);return c!=null?c[1]:"_relative"},L={contains:ge,deflt:de,escape:h,hyphenate:z,getBaseElem:E,isCharacterBox:b,protocolFromUrl:te},N=function(){function O(c){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,c=c||{},this.displayMode=L.deflt(c.displayMode,!1),this.output=L.deflt(c.output,"htmlAndMathml"),this.leqno=L.deflt(c.leqno,!1),this.fleqn=L.deflt(c.fleqn,!1),this.throwOnError=L.deflt(c.throwOnError,!0),this.errorColor=L.deflt(c.errorColor,"#cc0000"),this.macros=c.macros||{},this.minRuleThickness=Math.max(0,L.deflt(c.minRuleThickness,0)),this.colorIsTextColor=L.deflt(c.colorIsTextColor,!1),this.strict=L.deflt(c.strict,"warn"),this.trust=L.deflt(c.trust,!1),this.maxSize=Math.max(0,L.deflt(c.maxSize,1/0)),this.maxExpand=Math.max(0,L.deflt(c.maxExpand,1e3))}var l=O.prototype;return l.reportNonstrict=function(d,p,C){var k=this.strict;if(typeof k=="function"&&(k=k(d,p,C)),!(!k||k==="ignore")){if(k===!0||k==="error")throw new Z("LaTeX-incompatible input and strict mode is set to 'error': "+(p+" ["+d+"]"),C);k==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(p+" ["+d+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+k+"': "+p+" ["+d+"]"))}},l.useStrictBehavior=function(d,p,C){var k=this.strict;if(typeof k=="function")try{k=k(d,p,C)}catch(fe){k="error"}return!k||k==="ignore"?!1:k===!0||k==="error"?!0:k==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(p+" ["+d+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+k+"': "+p+" ["+d+"]")),!1)},l.isTrusted=function(d){d.url&&!d.protocol&&(d.protocol=L.protocolFromUrl(d.url));var p=typeof this.trust=="function"?this.trust(d):this.trust;return!!p},O}(),U=function(){function O(c,d,p){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=c,this.size=d,this.cramped=p}var l=O.prototype;return l.sup=function(){return Ne[W[this.id]]},l.sub=function(){return Ne[P[this.id]]},l.fracNum=function(){return Ne[q[this.id]]},l.fracDen=function(){return Ne[D[this.id]]},l.cramp=function(){return Ne[ie[this.id]]},l.text=function(){return Ne[F[this.id]]},l.isTight=function(){return this.size>=2},O}(),ce=0,w=1,j=2,ae=3,ee=4,oe=5,Ae=6,we=7,Ne=[new U(ce,0,!1),new U(w,0,!0),new U(j,1,!1),new U(ae,1,!0),new U(ee,2,!1),new U(oe,2,!0),new U(Ae,3,!1),new U(we,3,!0)],W=[ee,oe,ee,oe,Ae,we,Ae,we],P=[oe,oe,oe,oe,we,we,we,we],q=[j,ae,ee,oe,Ae,we,Ae,we],D=[ae,ae,oe,oe,we,we,we,we],ie=[w,w,ae,ae,oe,oe,we,we],F=[ce,w,j,ae,j,ae,j,ae],g={DISPLAY:Ne[ce],TEXT:Ne[j],SCRIPT:Ne[ee],SCRIPTSCRIPT:Ne[Ae]},v=[{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 I(O){for(var l=0;l<v.length;l++)for(var c=v[l],d=0;d<c.blocks.length;d++){var p=c.blocks[d];if(O>=p[0]&&O<=p[1])return c.name}return null}var G=[];v.forEach(function(O){return O.blocks.forEach(function(l){return G.push.apply(G,l)})});function xe(O){for(var l=0;l<G.length;l+=2)if(O>=G[l]&&O<=G[l+1])return!0;return!1}var De=80,Ie=function(l,c){return"M95,"+(622+l+c)+`
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`+l/2.075+" -"+l+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+l)+`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+l)+" "+c+"h400000v"+(40+l)+"h-400000z"},$e=function(l,c){return"M263,"+(601+l+c)+`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`+l/2.084+" -"+l+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+l)+`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+l)+" "+c+"h400000v"+(40+l)+"h-400000z"},qe=function(l,c){return"M983 "+(10+l+c)+`
l`+l/3.13+" -"+l+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+l)+`
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+l)+" "+c+"h400000v"+(40+l)+"h-400000z"},Ye=function(l,c){return"M424,"+(2398+l+c)+`
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`+l/4.223+" -"+l+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+l)+`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+l)+" "+c+`
h400000v`+(40+l)+"h-400000z"},Ve=function(l,c){return"M473,"+(2713+l+c)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+l/5.298+" -"+l+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+l)+`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+l)+" "+c+"h400000v"+(40+l)+"H1017.7z"},ht=function(l,c,d){var p=d-54-c-l;return"M702 "+(l+c)+"H400000"+(40+l)+`
H742v`+p+`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 `+c+"H400000v"+(40+l)+"H742z"},mt=function(l,c,d){c=1e3*c;var p="";switch(l){case"sqrtMain":p=Ie(c,De);break;case"sqrtSize1":p=$e(c,De);break;case"sqrtSize2":p=qe(c,De);break;case"sqrtSize3":p=Ye(c,De);break;case"sqrtSize4":p=Ve(c,De);break;case"sqrtTall":p=ht(c,De,d)}return p},kt={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`},gt=function(){function O(c){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=c,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var l=O.prototype;return l.hasClass=function(d){return L.contains(this.classes,d)},l.toNode=function(){for(var d=document.createDocumentFragment(),p=0;p<this.children.length;p++)d.appendChild(this.children[p].toNode());return d},l.toMarkup=function(){for(var d="",p=0;p<this.children.length;p++)d+=this.children[p].toMarkup();return d},l.toText=function(){var d=function(C){return C.toText()};return this.children.map(d).join("")},O}(),Tt=function(l){return l.filter(function(c){return c}).join(" ")},St=function(l,c,d){if(this.classes=l||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=d||{},c){c.style.isTight()&&this.classes.push("mtight");var p=c.getColor();p&&(this.style.color=p)}},ue=function(l){var c=document.createElement(l);c.className=Tt(this.classes);for(var d in this.style)this.style.hasOwnProperty(d)&&(c.style[d]=this.style[d]);for(var p in this.attributes)this.attributes.hasOwnProperty(p)&&c.setAttribute(p,this.attributes[p]);for(var C=0;C<this.children.length;C++)c.appendChild(this.children[C].toNode());return c},ne=function(l){var c="<"+l;this.classes.length&&(c+=' class="'+L.escape(Tt(this.classes))+'"');var d="";for(var p in this.style)this.style.hasOwnProperty(p)&&(d+=L.hyphenate(p)+":"+this.style[p]+";");d&&(c+=' style="'+L.escape(d)+'"');for(var C in this.attributes)this.attributes.hasOwnProperty(C)&&(c+=" "+C+'="'+L.escape(this.attributes[C])+'"');c+=">";for(var k=0;k<this.children.length;k++)c+=this.children[k].toMarkup();return c+="</"+l+">",c},X=function(){function O(c,d,p,C){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,St.call(this,c,p,C),this.children=d||[]}var l=O.prototype;return l.setAttribute=function(d,p){this.attributes[d]=p},l.hasClass=function(d){return L.contains(this.classes,d)},l.toNode=function(){return ue.call(this,"span")},l.toMarkup=function(){return ne.call(this,"span")},O}(),Le=function(){function O(c,d,p,C){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,St.call(this,d,C),this.children=p||[],this.setAttribute("href",c)}var l=O.prototype;return l.setAttribute=function(d,p){this.attributes[d]=p},l.hasClass=function(d){return L.contains(this.classes,d)},l.toNode=function(){return ue.call(this,"a")},l.toMarkup=function(){return ne.call(this,"a")},O}(),Pe=function(){function O(c,d,p){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=d,this.src=c,this.classes=["mord"],this.style=p}var l=O.prototype;return l.hasClass=function(d){return L.contains(this.classes,d)},l.toNode=function(){var d=document.createElement("img");d.src=this.src,d.alt=this.alt,d.className="mord";for(var p in this.style)this.style.hasOwnProperty(p)&&(d.style[p]=this.style[p]);return d},l.toMarkup=function(){var d="<img src='"+this.src+" 'alt='"+this.alt+"' ",p="";for(var C in this.style)this.style.hasOwnProperty(C)&&(p+=L.hyphenate(C)+":"+this.style[C]+";");return p&&(d+=' style="'+L.escape(p)+'"'),d+="'/>",d},O}(),R={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},se=function(){function O(c,d,p,C,k,fe,ye,Me){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=c,this.height=d||0,this.depth=p||0,this.italic=C||0,this.skew=k||0,this.width=fe||0,this.classes=ye||[],this.style=Me||{},this.maxFontSize=0;var Ze=I(this.text.charCodeAt(0));Ze&&this.classes.push(Ze+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=R[this.text])}var l=O.prototype;return l.hasClass=function(d){return L.contains(this.classes,d)},l.toNode=function(){var d=document.createTextNode(this.text),p=null;this.italic>0&&(p=document.createElement("span"),p.style.marginRight=this.italic+"em"),this.classes.length>0&&(p=p||document.createElement("span"),p.className=Tt(this.classes));for(var C in this.style)this.style.hasOwnProperty(C)&&(p=p||document.createElement("span"),p.style[C]=this.style[C]);return p?(p.appendChild(d),p):d},l.toMarkup=function(){var d=!1,p="<span";this.classes.length&&(d=!0,p+=' class="',p+=L.escape(Tt(this.classes)),p+='"');var C="";this.italic>0&&(C+="margin-right:"+this.italic+"em;");for(var k in this.style)this.style.hasOwnProperty(k)&&(C+=L.hyphenate(k)+":"+this.style[k]+";");C&&(d=!0,p+=' style="'+L.escape(C)+'"');var fe=L.escape(this.text);return d?(p+=">",p+=fe,p+="</span>",p):fe},O}(),ve=function(){function O(c,d){this.children=void 0,this.attributes=void 0,this.children=c||[],this.attributes=d||{}}var l=O.prototype;return l.toNode=function(){var d="http://www.w3.org/2000/svg",p=document.createElementNS(d,"svg");for(var C in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,C)&&p.setAttribute(C,this.attributes[C]);for(var k=0;k<this.children.length;k++)p.appendChild(this.children[k].toNode());return p},l.toMarkup=function(){var d="<svg";for(var p in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,p)&&(d+=" "+p+"='"+this.attributes[p]+"'");d+=">";for(var C=0;C<this.children.length;C++)d+=this.children[C].toMarkup();return d+="</svg>",d},O}(),_e=function(){function O(c,d){this.pathName=void 0,this.alternate=void 0,this.pathName=c,this.alternate=d}var l=O.prototype;return l.toNode=function(){var d="http://www.w3.org/2000/svg",p=document.createElementNS(d,"path");return this.alternate?p.setAttribute("d",this.alternate):p.setAttribute("d",kt[this.pathName]),p},l.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+kt[this.pathName]+"'/>"},O}(),Oe=function(){function O(c){this.attributes=void 0,this.attributes=c||{}}var l=O.prototype;return l.toNode=function(){var d="http://www.w3.org/2000/svg",p=document.createElementNS(d,"line");for(var C in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,C)&&p.setAttribute(C,this.attributes[C]);return p},l.toMarkup=function(){var d="<line";for(var p in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,p)&&(d+=" "+p+"='"+this.attributes[p]+"'");return d+="/>",d},O}();function Be(O){if(O instanceof se)return O;throw new Error("Expected symbolNode but got "+String(O)+".")}function je(O){if(O instanceof X)return O;throw new Error("Expected span<HtmlDomNode> but got "+String(O)+".")}var et={"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]}},We={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]},Ge={\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 st(O,l){et[O]=l}function Je(O,l,c){if(!et[l])throw new Error("Font metrics not found for font: "+l+".");var d=O.charCodeAt(0),p=et[l][d];if(!p&&O[0]in Ge&&(d=Ge[O[0]].charCodeAt(0),p=et[l][d]),!p&&c==="text"&&xe(d)&&(p=et[l][77]),p)return{depth:p[0],height:p[1],italic:p[2],skew:p[3],width:p[4]}}var ct={};function yt(O){var l;if(O>=5?l=0:O>=3?l=1:l=2,!ct[l]){var c=ct[l]={cssEmPerMu:We.quad[l]/18};for(var d in We)We.hasOwnProperty(d)&&(c[d]=We[d][l])}return ct[l]}var Lt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},xt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},bt={math:{},text:{}},Ct=bt;function y(O,l,c,d,p,C){bt[O][p]={font:l,group:c,replace:d},C&&d&&(bt[O][d]=bt[O][p])}var S="math",rt="text",H="main",be="ams",er="accent-token",ke="bin",Ue="close",Ke="inner",J="mathord",he="op-token",Te="open",Fe="punct",$="rel",Et="spacing",Se="textord";y(S,H,$,"\u2261","\\equiv",!0),y(S,H,$,"\u227A","\\prec",!0),y(S,H,$,"\u227B","\\succ",!0),y(S,H,$,"\u223C","\\sim",!0),y(S,H,$,"\u22A5","\\perp"),y(S,H,$,"\u2AAF","\\preceq",!0),y(S,H,$,"\u2AB0","\\succeq",!0),y(S,H,$,"\u2243","\\simeq",!0),y(S,H,$,"\u2223","\\mid",!0),y(S,H,$,"\u226A","\\ll",!0),y(S,H,$,"\u226B","\\gg",!0),y(S,H,$,"\u224D","\\asymp",!0),y(S,H,$,"\u2225","\\parallel"),y(S,H,$,"\u22C8","\\bowtie",!0),y(S,H,$,"\u2323","\\smile",!0),y(S,H,$,"\u2291","\\sqsubseteq",!0),y(S,H,$,"\u2292","\\sqsupseteq",!0),y(S,H,$,"\u2250","\\doteq",!0),y(S,H,$,"\u2322","\\frown",!0),y(S,H,$,"\u220B","\\ni",!0),y(S,H,$,"\u221D","\\propto",!0),y(S,H,$,"\u22A2","\\vdash",!0),y(S,H,$,"\u22A3","\\dashv",!0),y(S,H,$,"\u220B","\\owns"),y(S,H,Fe,".","\\ldotp"),y(S,H,Fe,"\u22C5","\\cdotp"),y(S,H,Se,"#","\\#"),y(rt,H,Se,"#","\\#"),y(S,H,Se,"&","\\&"),y(rt,H,Se,"&","\\&"),y(S,H,Se,"\u2135","\\aleph",!0),y(S,H,Se,"\u2200","\\forall",!0),y(S,H,Se,"\u210F","\\hbar",!0),y(S,H,Se,"\u2203","\\exists",!0),y(S,H,Se,"\u2207","\\nabla",!0),y(S,H,Se,"\u266D","\\flat",!0),y(S,H,Se,"\u2113","\\ell",!0),y(S,H,Se,"\u266E","\\natural",!0),y(S,H,Se,"\u2663","\\clubsuit",!0),y(S,H,Se,"\u2118","\\wp",!0),y(S,H,Se,"\u266F","\\sharp",!0),y(S,H,Se,"\u2662","\\diamondsuit",!0),y(S,H,Se,"\u211C","\\Re",!0),y(S,H,Se,"\u2661","\\heartsuit",!0),y(S,H,Se,"\u2111","\\Im",!0),y(S,H,Se,"\u2660","\\spadesuit",!0),y(rt,H,Se,"\xA7","\\S",!0),y(rt,H,Se,"\xB6","\\P",!0),y(S,H,Se,"\u2020","\\dag"),y(rt,H,Se,"\u2020","\\dag"),y(rt,H,Se,"\u2020","\\textdagger"),y(S,H,Se,"\u2021","\\ddag"),y(rt,H,Se,"\u2021","\\ddag"),y(rt,H,Se,"\u2021","\\textdaggerdbl"),y(S,H,Ue,"\u23B1","\\rmoustache",!0),y(S,H,Te,"\u23B0","\\lmoustache",!0),y(S,H,Ue,"\u27EF","\\rgroup",!0),y(S,H,Te,"\u27EE","\\lgroup",!0),y(S,H,ke,"\u2213","\\mp",!0),y(S,H,ke,"\u2296","\\ominus",!0),y(S,H,ke,"\u228E","\\uplus",!0),y(S,H,ke,"\u2293","\\sqcap",!0),y(S,H,ke,"\u2217","\\ast"),y(S,H,ke,"\u2294","\\sqcup",!0),y(S,H,ke,"\u25EF","\\bigcirc"),y(S,H,ke,"\u2219","\\bullet"),y(S,H,ke,"\u2021","\\ddagger"),y(S,H,ke,"\u2240","\\wr",!0),y(S,H,ke,"\u2A3F","\\amalg"),y(S,H,ke,"&","\\And"),y(S,H,$,"\u27F5","\\longleftarrow",!0),y(S,H,$,"\u21D0","\\Leftarrow",!0),y(S,H,$,"\u27F8","\\Longleftarrow",!0),y(S,H,$,"\u27F6","\\longrightarrow",!0),y(S,H,$,"\u21D2","\\Rightarrow",!0),y(S,H,$,"\u27F9","\\Longrightarrow",!0),y(S,H,$,"\u2194","\\leftrightarrow",!0),y(S,H,$,"\u27F7","\\longleftrightarrow",!0),y(S,H,$,"\u21D4","\\Leftrightarrow",!0),y(S,H,$,"\u27FA","\\Longleftrightarrow",!0),y(S,H,$,"\u21A6","\\mapsto",!0),y(S,H,$,"\u27FC","\\longmapsto",!0),y(S,H,$,"\u2197","\\nearrow",!0),y(S,H,$,"\u21A9","\\hookleftarrow",!0),y(S,H,$,"\u21AA","\\hookrightarrow",!0),y(S,H,$,"\u2198","\\searrow",!0),y(S,H,$,"\u21BC","\\leftharpoonup",!0),y(S,H,$,"\u21C0","\\rightharpoonup",!0),y(S,H,$,"\u2199","\\swarrow",!0),y(S,H,$,"\u21BD","\\leftharpoondown",!0),y(S,H,$,"\u21C1","\\rightharpoondown",!0),y(S,H,$,"\u2196","\\nwarrow",!0),y(S,H,$,"\u21CC","\\rightleftharpoons",!0),y(S,be,$,"\u226E","\\nless",!0),y(S,be,$,"\uE010","\\@nleqslant"),y(S,be,$,"\uE011","\\@nleqq"),y(S,be,$,"\u2A87","\\lneq",!0),y(S,be,$,"\u2268","\\lneqq",!0),y(S,be,$,"\uE00C","\\@lvertneqq"),y(S,be,$,"\u22E6","\\lnsim",!0),y(S,be,$,"\u2A89","\\lnapprox",!0),y(S,be,$,"\u2280","\\nprec",!0),y(S,be,$,"\u22E0","\\npreceq",!0),y(S,be,$,"\u22E8","\\precnsim",!0),y(S,be,$,"\u2AB9","\\precnapprox",!0),y(S,be,$,"\u2241","\\nsim",!0),y(S,be,$,"\uE006","\\@nshortmid"),y(S,be,$,"\u2224","\\nmid",!0),y(S,be,$,"\u22AC","\\nvdash",!0),y(S,be,$,"\u22AD","\\nvDash",!0),y(S,be,$,"\u22EA","\\ntriangleleft"),y(S,be,$,"\u22EC","\\ntrianglelefteq",!0),y(S,be,$,"\u228A","\\subsetneq",!0),y(S,be,$,"\uE01A","\\@varsubsetneq"),y(S,be,$,"\u2ACB","\\subsetneqq",!0),y(S,be,$,"\uE017","\\@varsubsetneqq"),y(S,be,$,"\u226F","\\ngtr",!0),y(S,be,$,"\uE00F","\\@ngeqslant"),y(S,be,$,"\uE00E","\\@ngeqq"),y(S,be,$,"\u2A88","\\gneq",!0),y(S,be,$,"\u2269","\\gneqq",!0),y(S,be,$,"\uE00D","\\@gvertneqq"),y(S,be,$,"\u22E7","\\gnsim",!0),y(S,be,$,"\u2A8A","\\gnapprox",!0),y(S,be,$,"\u2281","\\nsucc",!0),y(S,be,$,"\u22E1","\\nsucceq",!0),y(S,be,$,"\u22E9","\\succnsim",!0),y(S,be,$,"\u2ABA","\\succnapprox",!0),y(S,be,$,"\u2246","\\ncong",!0),y(S,be,$,"\uE007","\\@nshortparallel"),y(S,be,$,"\u2226","\\nparallel",!0),y(S,be,$,"\u22AF","\\nVDash",!0),y(S,be,$,"\u22EB","\\ntriangleright"),y(S,be,$,"\u22ED","\\ntrianglerighteq",!0),y(S,be,$,"\uE018","\\@nsupseteqq"),y(S,be,$,"\u228B","\\supsetneq",!0),y(S,be,$,"\uE01B","\\@varsupsetneq"),y(S,be,$,"\u2ACC","\\supsetneqq",!0),y(S,be,$,"\uE019","\\@varsupsetneqq"),y(S,be,$,"\u22AE","\\nVdash",!0),y(S,be,$,"\u2AB5","\\precneqq",!0),y(S,be,$,"\u2AB6","\\succneqq",!0),y(S,be,$,"\uE016","\\@nsubseteqq"),y(S,be,ke,"\u22B4","\\unlhd"),y(S,be,ke,"\u22B5","\\unrhd"),y(S,be,$,"\u219A","\\nleftarrow",!0),y(S,be,$,"\u219B","\\nrightarrow",!0),y(S,be,$,"\u21CD","\\nLeftarrow",!0),y(S,be,$,"\u21CF","\\nRightarrow",!0),y(S,be,$,"\u21AE","\\nleftrightarrow",!0),y(S,be,$,"\u21CE","\\nLeftrightarrow",!0),y(S,be,$,"\u25B3","\\vartriangle"),y(S,be,Se,"\u210F","\\hslash"),y(S,be,Se,"\u25BD","\\triangledown"),y(S,be,Se,"\u25CA","\\lozenge"),y(S,be,Se,"\u24C8","\\circledS"),y(S,be,Se,"\xAE","\\circledR"),y(rt,be,Se,"\xAE","\\circledR"),y(S,be,Se,"\u2221","\\measuredangle",!0),y(S,be,Se,"\u2204","\\nexists"),y(S,be,Se,"\u2127","\\mho"),y(S,be,Se,"\u2132","\\Finv",!0),y(S,be,Se,"\u2141","\\Game",!0),y(S,be,Se,"\u2035","\\backprime"),y(S,be,Se,"\u25B2","\\blacktriangle"),y(S,be,Se,"\u25BC","\\blacktriangledown"),y(S,be,Se,"\u25A0","\\blacksquare"),y(S,be,Se,"\u29EB","\\blacklozenge"),y(S,be,Se,"\u2605","\\bigstar"),y(S,be,Se,"\u2222","\\sphericalangle",!0),y(S,be,Se,"\u2201","\\complement",!0),y(S,be,Se,"\xF0","\\eth",!0),y(S,be,Se,"\u2571","\\diagup"),y(S,be,Se,"\u2572","\\diagdown"),y(S,be,Se,"\u25A1","\\square"),y(S,be,Se,"\u25A1","\\Box"),y(S,be,Se,"\u25CA","\\Diamond"),y(S,be,Se,"\xA5","\\yen",!0),y(rt,be,Se,"\xA5","\\yen",!0),y(S,be,Se,"\u2713","\\checkmark",!0),y(rt,be,Se,"\u2713","\\checkmark"),y(S,be,Se,"\u2136","\\beth",!0),y(S,be,Se,"\u2138","\\daleth",!0),y(S,be,Se,"\u2137","\\gimel",!0),y(S,be,Se,"\u03DD","\\digamma",!0),y(S,be,Se,"\u03F0","\\varkappa"),y(S,be,Te,"\u250C","\\ulcorner",!0),y(S,be,Ue,"\u2510","\\urcorner",!0),y(S,be,Te,"\u2514","\\llcorner",!0),y(S,be,Ue,"\u2518","\\lrcorner",!0),y(S,be,$,"\u2266","\\leqq",!0),y(S,be,$,"\u2A7D","\\leqslant",!0),y(S,be,$,"\u2A95","\\eqslantless",!0),y(S,be,$,"\u2272","\\lesssim",!0),y(S,be,$,"\u2A85","\\lessapprox",!0),y(S,be,$,"\u224A","\\approxeq",!0),y(S,be,ke,"\u22D6","\\lessdot"),y(S,be,$,"\u22D8","\\lll",!0),y(S,be,$,"\u2276","\\lessgtr",!0),y(S,be,$,"\u22DA","\\lesseqgtr",!0),y(S,be,$,"\u2A8B","\\lesseqqgtr",!0),y(S,be,$,"\u2251","\\doteqdot"),y(S,be,$,"\u2253","\\risingdotseq",!0),y(S,be,$,"\u2252","\\fallingdotseq",!0),y(S,be,$,"\u223D","\\backsim",!0),y(S,be,$,"\u22CD","\\backsimeq",!0),y(S,be,$,"\u2AC5","\\subseteqq",!0),y(S,be,$,"\u22D0","\\Subset",!0),y(S,be,$,"\u228F","\\sqsubset",!0),y(S,be,$,"\u227C","\\preccurlyeq",!0),y(S,be,$,"\u22DE","\\curlyeqprec",!0),y(S,be,$,"\u227E","\\precsim",!0),y(S,be,$,"\u2AB7","\\precapprox",!0),y(S,be,$,"\u22B2","\\vartriangleleft"),y(S,be,$,"\u22B4","\\trianglelefteq"),y(S,be,$,"\u22A8","\\vDash",!0),y(S,be,$,"\u22AA","\\Vvdash",!0),y(S,be,$,"\u2323","\\smallsmile"),y(S,be,$,"\u2322","\\smallfrown"),y(S,be,$,"\u224F","\\bumpeq",!0),y(S,be,$,"\u224E","\\Bumpeq",!0),y(S,be,$,"\u2267","\\geqq",!0),y(S,be,$,"\u2A7E","\\geqslant",!0),y(S,be,$,"\u2A96","\\eqslantgtr",!0),y(S,be,$,"\u2273","\\gtrsim",!0),y(S,be,$,"\u2A86","\\gtrapprox",!0),y(S,be,ke,"\u22D7","\\gtrdot"),y(S,be,$,"\u22D9","\\ggg",!0),y(S,be,$,"\u2277","\\gtrless",!0),y(S,be,$,"\u22DB","\\gtreqless",!0),y(S,be,$,"\u2A8C","\\gtreqqless",!0),y(S,be,$,"\u2256","\\eqcirc",!0),y(S,be,$,"\u2257","\\circeq",!0),y(S,be,$,"\u225C","\\triangleq",!0),y(S,be,$,"\u223C","\\thicksim"),y(S,be,$,"\u2248","\\thickapprox"),y(S,be,$,"\u2AC6","\\supseteqq",!0),y(S,be,$,"\u22D1","\\Supset",!0),y(S,be,$,"\u2290","\\sqsupset",!0),y(S,be,$,"\u227D","\\succcurlyeq",!0),y(S,be,$,"\u22DF","\\curlyeqsucc",!0),y(S,be,$,"\u227F","\\succsim",!0),y(S,be,$,"\u2AB8","\\succapprox",!0),y(S,be,$,"\u22B3","\\vartriangleright"),y(S,be,$,"\u22B5","\\trianglerighteq"),y(S,be,$,"\u22A9","\\Vdash",!0),y(S,be,$,"\u2223","\\shortmid"),y(S,be,$,"\u2225","\\shortparallel"),y(S,be,$,"\u226C","\\between",!0),y(S,be,$,"\u22D4","\\pitchfork",!0),y(S,be,$,"\u221D","\\varpropto"),y(S,be,$,"\u25C0","\\blacktriangleleft"),y(S,be,$,"\u2234","\\therefore",!0),y(S,be,$,"\u220D","\\backepsilon"),y(S,be,$,"\u25B6","\\blacktriangleright"),y(S,be,$,"\u2235","\\because",!0),y(S,be,$,"\u22D8","\\llless"),y(S,be,$,"\u22D9","\\gggtr"),y(S,be,ke,"\u22B2","\\lhd"),y(S,be,ke,"\u22B3","\\rhd"),y(S,be,$,"\u2242","\\eqsim",!0),y(S,H,$,"\u22C8","\\Join"),y(S,be,$,"\u2251","\\Doteq",!0),y(S,be,ke,"\u2214","\\dotplus",!0),y(S,be,ke,"\u2216","\\smallsetminus"),y(S,be,ke,"\u22D2","\\Cap",!0),y(S,be,ke,"\u22D3","\\Cup",!0),y(S,be,ke,"\u2A5E","\\doublebarwedge",!0),y(S,be,ke,"\u229F","\\boxminus",!0),y(S,be,ke,"\u229E","\\boxplus",!0),y(S,be,ke,"\u22C7","\\divideontimes",!0),y(S,be,ke,"\u22C9","\\ltimes",!0),y(S,be,ke,"\u22CA","\\rtimes",!0),y(S,be,ke,"\u22CB","\\leftthreetimes",!0),y(S,be,ke,"\u22CC","\\rightthreetimes",!0),y(S,be,ke,"\u22CF","\\curlywedge",!0),y(S,be,ke,"\u22CE","\\curlyvee",!0),y(S,be,ke,"\u229D","\\circleddash",!0),y(S,be,ke,"\u229B","\\circledast",!0),y(S,be,ke,"\u22C5","\\centerdot"),y(S,be,ke,"\u22BA","\\intercal",!0),y(S,be,ke,"\u22D2","\\doublecap"),y(S,be,ke,"\u22D3","\\doublecup"),y(S,be,ke,"\u22A0","\\boxtimes",!0),y(S,be,$,"\u21E2","\\dashrightarrow",!0),y(S,be,$,"\u21E0","\\dashleftarrow",!0),y(S,be,$,"\u21C7","\\leftleftarrows",!0),y(S,be,$,"\u21C6","\\leftrightarrows",!0),y(S,be,$,"\u21DA","\\Lleftarrow",!0),y(S,be,$,"\u219E","\\twoheadleftarrow",!0),y(S,be,$,"\u21A2","\\leftarrowtail",!0),y(S,be,$,"\u21AB","\\looparrowleft",!0),y(S,be,$,"\u21CB","\\leftrightharpoons",!0),y(S,be,$,"\u21B6","\\curvearrowleft",!0),y(S,be,$,"\u21BA","\\circlearrowleft",!0),y(S,be,$,"\u21B0","\\Lsh",!0),y(S,be,$,"\u21C8","\\upuparrows",!0),y(S,be,$,"\u21BF","\\upharpoonleft",!0),y(S,be,$,"\u21C3","\\downharpoonleft",!0),y(S,be,$,"\u22B8","\\multimap",!0),y(S,be,$,"\u21AD","\\leftrightsquigarrow",!0),y(S,be,$,"\u21C9","\\rightrightarrows",!0),y(S,be,$,"\u21C4","\\rightleftarrows",!0),y(S,be,$,"\u21A0","\\twoheadrightarrow",!0),y(S,be,$,"\u21A3","\\rightarrowtail",!0),y(S,be,$,"\u21AC","\\looparrowright",!0),y(S,be,$,"\u21B7","\\curvearrowright",!0),y(S,be,$,"\u21BB","\\circlearrowright",!0),y(S,be,$,"\u21B1","\\Rsh",!0),y(S,be,$,"\u21CA","\\downdownarrows",!0),y(S,be,$,"\u21BE","\\upharpoonright",!0),y(S,be,$,"\u21C2","\\downharpoonright",!0),y(S,be,$,"\u21DD","\\rightsquigarrow",!0),y(S,be,$,"\u21DD","\\leadsto"),y(S,be,$,"\u21DB","\\Rrightarrow",!0),y(S,be,$,"\u21BE","\\restriction"),y(S,H,Se,"\u2018","`"),y(S,H,Se,"$","\\$"),y(rt,H,Se,"$","\\$"),y(rt,H,Se,"$","\\textdollar"),y(S,H,Se,"%","\\%"),y(rt,H,Se,"%","\\%"),y(S,H,Se,"_","\\_"),y(rt,H,Se,"_","\\_"),y(rt,H,Se,"_","\\textunderscore"),y(S,H,Se,"\u2220","\\angle",!0),y(S,H,Se,"\u221E","\\infty",!0),y(S,H,Se,"\u2032","\\prime"),y(S,H,Se,"\u25B3","\\triangle"),y(S,H,Se,"\u0393","\\Gamma",!0),y(S,H,Se,"\u0394","\\Delta",!0),y(S,H,Se,"\u0398","\\Theta",!0),y(S,H,Se,"\u039B","\\Lambda",!0),y(S,H,Se,"\u039E","\\Xi",!0),y(S,H,Se,"\u03A0","\\Pi",!0),y(S,H,Se,"\u03A3","\\Sigma",!0),y(S,H,Se,"\u03A5","\\Upsilon",!0),y(S,H,Se,"\u03A6","\\Phi",!0),y(S,H,Se,"\u03A8","\\Psi",!0),y(S,H,Se,"\u03A9","\\Omega",!0),y(S,H,Se,"A","\u0391"),y(S,H,Se,"B","\u0392"),y(S,H,Se,"E","\u0395"),y(S,H,Se,"Z","\u0396"),y(S,H,Se,"H","\u0397"),y(S,H,Se,"I","\u0399"),y(S,H,Se,"K","\u039A"),y(S,H,Se,"M","\u039C"),y(S,H,Se,"N","\u039D"),y(S,H,Se,"O","\u039F"),y(S,H,Se,"P","\u03A1"),y(S,H,Se,"T","\u03A4"),y(S,H,Se,"X","\u03A7"),y(S,H,Se,"\xAC","\\neg",!0),y(S,H,Se,"\xAC","\\lnot"),y(S,H,Se,"\u22A4","\\top"),y(S,H,Se,"\u22A5","\\bot"),y(S,H,Se,"\u2205","\\emptyset"),y(S,be,Se,"\u2205","\\varnothing"),y(S,H,J,"\u03B1","\\alpha",!0),y(S,H,J,"\u03B2","\\beta",!0),y(S,H,J,"\u03B3","\\gamma",!0),y(S,H,J,"\u03B4","\\delta",!0),y(S,H,J,"\u03F5","\\epsilon",!0),y(S,H,J,"\u03B6","\\zeta",!0),y(S,H,J,"\u03B7","\\eta",!0),y(S,H,J,"\u03B8","\\theta",!0),y(S,H,J,"\u03B9","\\iota",!0),y(S,H,J,"\u03BA","\\kappa",!0),y(S,H,J,"\u03BB","\\lambda",!0),y(S,H,J,"\u03BC","\\mu",!0),y(S,H,J,"\u03BD","\\nu",!0),y(S,H,J,"\u03BE","\\xi",!0),y(S,H,J,"\u03BF","\\omicron",!0),y(S,H,J,"\u03C0","\\pi",!0),y(S,H,J,"\u03C1","\\rho",!0),y(S,H,J,"\u03C3","\\sigma",!0),y(S,H,J,"\u03C4","\\tau",!0),y(S,H,J,"\u03C5","\\upsilon",!0),y(S,H,J,"\u03D5","\\phi",!0),y(S,H,J,"\u03C7","\\chi",!0),y(S,H,J,"\u03C8","\\psi",!0),y(S,H,J,"\u03C9","\\omega",!0),y(S,H,J,"\u03B5","\\varepsilon",!0),y(S,H,J,"\u03D1","\\vartheta",!0),y(S,H,J,"\u03D6","\\varpi",!0),y(S,H,J,"\u03F1","\\varrho",!0),y(S,H,J,"\u03C2","\\varsigma",!0),y(S,H,J,"\u03C6","\\varphi",!0),y(S,H,ke,"\u2217","*"),y(S,H,ke,"+","+"),y(S,H,ke,"\u2212","-"),y(S,H,ke,"\u22C5","\\cdot",!0),y(S,H,ke,"\u2218","\\circ"),y(S,H,ke,"\xF7","\\div",!0),y(S,H,ke,"\xB1","\\pm",!0),y(S,H,ke,"\xD7","\\times",!0),y(S,H,ke,"\u2229","\\cap",!0),y(S,H,ke,"\u222A","\\cup",!0),y(S,H,ke,"\u2216","\\setminus"),y(S,H,ke,"\u2227","\\land"),y(S,H,ke,"\u2228","\\lor"),y(S,H,ke,"\u2227","\\wedge",!0),y(S,H,ke,"\u2228","\\vee",!0),y(S,H,Se,"\u221A","\\surd"),y(S,H,Te,"(","("),y(S,H,Te,"[","["),y(S,H,Te,"\u27E8","\\langle",!0),y(S,H,Te,"\u2223","\\lvert"),y(S,H,Te,"\u2225","\\lVert"),y(S,H,Ue,")",")"),y(S,H,Ue,"]","]"),y(S,H,Ue,"?","?"),y(S,H,Ue,"!","!"),y(S,H,Ue,"\u27E9","\\rangle",!0),y(S,H,Ue,"\u2223","\\rvert"),y(S,H,Ue,"\u2225","\\rVert"),y(S,H,$,"=","="),y(S,H,$,"<","<"),y(S,H,$,">",">"),y(S,H,$,":",":"),y(S,H,$,"\u2248","\\approx",!0),y(S,H,$,"\u2245","\\cong",!0),y(S,H,$,"\u2265","\\ge"),y(S,H,$,"\u2265","\\geq",!0),y(S,H,$,"\u2190","\\gets"),y(S,H,$,">","\\gt"),y(S,H,$,"\u2208","\\in",!0),y(S,H,$,"\uE020","\\@not"),y(S,H,$,"\u2282","\\subset",!0),y(S,H,$,"\u2283","\\supset",!0),y(S,H,$,"\u2286","\\subseteq",!0),y(S,H,$,"\u2287","\\supseteq",!0),y(S,be,$,"\u2288","\\nsubseteq",!0),y(S,be,$,"\u2289","\\nsupseteq",!0),y(S,H,$,"\u22A8","\\models"),y(S,H,$,"\u2190","\\leftarrow",!0),y(S,H,$,"\u2264","\\le"),y(S,H,$,"\u2264","\\leq",!0),y(S,H,$,"<","\\lt"),y(S,H,$,"\u2192","\\rightarrow",!0),y(S,H,$,"\u2192","\\to"),y(S,be,$,"\u2271","\\ngeq",!0),y(S,be,$,"\u2270","\\nleq",!0),y(S,H,Et,"\xA0","\\ "),y(S,H,Et,"\xA0","~"),y(S,H,Et,"\xA0","\\space"),y(S,H,Et,"\xA0","\\nobreakspace"),y(rt,H,Et,"\xA0","\\ "),y(rt,H,Et,"\xA0","~"),y(rt,H,Et,"\xA0","\\space"),y(rt,H,Et,"\xA0","\\nobreakspace"),y(S,H,Et,null,"\\nobreak"),y(S,H,Et,null,"\\allowbreak"),y(S,H,Fe,",",","),y(S,H,Fe,";",";"),y(S,be,ke,"\u22BC","\\barwedge",!0),y(S,be,ke,"\u22BB","\\veebar",!0),y(S,H,ke,"\u2299","\\odot",!0),y(S,H,ke,"\u2295","\\oplus",!0),y(S,H,ke,"\u2297","\\otimes",!0),y(S,H,Se,"\u2202","\\partial",!0),y(S,H,ke,"\u2298","\\oslash",!0),y(S,be,ke,"\u229A","\\circledcirc",!0),y(S,be,ke,"\u22A1","\\boxdot",!0),y(S,H,ke,"\u25B3","\\bigtriangleup"),y(S,H,ke,"\u25BD","\\bigtriangledown"),y(S,H,ke,"\u2020","\\dagger"),y(S,H,ke,"\u22C4","\\diamond"),y(S,H,ke,"\u22C6","\\star"),y(S,H,ke,"\u25C3","\\triangleleft"),y(S,H,ke,"\u25B9","\\triangleright"),y(S,H,Te,"{","\\{"),y(rt,H,Se,"{","\\{"),y(rt,H,Se,"{","\\textbraceleft"),y(S,H,Ue,"}","\\}"),y(rt,H,Se,"}","\\}"),y(rt,H,Se,"}","\\textbraceright"),y(S,H,Te,"{","\\lbrace"),y(S,H,Ue,"}","\\rbrace"),y(S,H,Te,"[","\\lbrack"),y(rt,H,Se,"[","\\lbrack"),y(S,H,Ue,"]","\\rbrack"),y(rt,H,Se,"]","\\rbrack"),y(S,H,Te,"(","\\lparen"),y(S,H,Ue,")","\\rparen"),y(rt,H,Se,"<","\\textless"),y(rt,H,Se,">","\\textgreater"),y(S,H,Te,"\u230A","\\lfloor",!0),y(S,H,Ue,"\u230B","\\rfloor",!0),y(S,H,Te,"\u2308","\\lceil",!0),y(S,H,Ue,"\u2309","\\rceil",!0),y(S,H,Se,"\\","\\backslash"),y(S,H,Se,"\u2223","|"),y(S,H,Se,"\u2223","\\vert"),y(rt,H,Se,"|","\\textbar"),y(S,H,Se,"\u2225","\\|"),y(S,H,Se,"\u2225","\\Vert"),y(rt,H,Se,"\u2225","\\textbardbl"),y(rt,H,Se,"~","\\textasciitilde"),y(rt,H,Se,"\\","\\textbackslash"),y(rt,H,Se,"^","\\textasciicircum"),y(S,H,$,"\u2191","\\uparrow",!0),y(S,H,$,"\u21D1","\\Uparrow",!0),y(S,H,$,"\u2193","\\downarrow",!0),y(S,H,$,"\u21D3","\\Downarrow",!0),y(S,H,$,"\u2195","\\updownarrow",!0),y(S,H,$,"\u21D5","\\Updownarrow",!0),y(S,H,he,"\u2210","\\coprod"),y(S,H,he,"\u22C1","\\bigvee"),y(S,H,he,"\u22C0","\\bigwedge"),y(S,H,he,"\u2A04","\\biguplus"),y(S,H,he,"\u22C2","\\bigcap"),y(S,H,he,"\u22C3","\\bigcup"),y(S,H,he,"\u222B","\\int"),y(S,H,he,"\u222B","\\intop"),y(S,H,he,"\u222C","\\iint"),y(S,H,he,"\u222D","\\iiint"),y(S,H,he,"\u220F","\\prod"),y(S,H,he,"\u2211","\\sum"),y(S,H,he,"\u2A02","\\bigotimes"),y(S,H,he,"\u2A01","\\bigoplus"),y(S,H,he,"\u2A00","\\bigodot"),y(S,H,he,"\u222E","\\oint"),y(S,H,he,"\u222F","\\oiint"),y(S,H,he,"\u2230","\\oiiint"),y(S,H,he,"\u2A06","\\bigsqcup"),y(S,H,he,"\u222B","\\smallint"),y(rt,H,Ke,"\u2026","\\textellipsis"),y(S,H,Ke,"\u2026","\\mathellipsis"),y(rt,H,Ke,"\u2026","\\ldots",!0),y(S,H,Ke,"\u2026","\\ldots",!0),y(S,H,Ke,"\u22EF","\\@cdots",!0),y(S,H,Ke,"\u22F1","\\ddots",!0),y(S,H,Se,"\u22EE","\\varvdots"),y(S,H,er,"\u02CA","\\acute"),y(S,H,er,"\u02CB","\\grave"),y(S,H,er,"\xA8","\\ddot"),y(S,H,er,"~","\\tilde"),y(S,H,er,"\u02C9","\\bar"),y(S,H,er,"\u02D8","\\breve"),y(S,H,er,"\u02C7","\\check"),y(S,H,er,"^","\\hat"),y(S,H,er,"\u20D7","\\vec"),y(S,H,er,"\u02D9","\\dot"),y(S,H,er,"\u02DA","\\mathring"),y(S,H,J,"\u0131","\\imath",!0),y(S,H,J,"\u0237","\\jmath",!0),y(rt,H,Se,"\u0131","\\i",!0),y(rt,H,Se,"\u0237","\\j",!0),y(rt,H,Se,"\xDF","\\ss",!0),y(rt,H,Se,"\xE6","\\ae",!0),y(rt,H,Se,"\xE6","\\ae",!0),y(rt,H,Se,"\u0153","\\oe",!0),y(rt,H,Se,"\xF8","\\o",!0),y(rt,H,Se,"\xC6","\\AE",!0),y(rt,H,Se,"\u0152","\\OE",!0),y(rt,H,Se,"\xD8","\\O",!0),y(rt,H,er,"\u02CA","\\'"),y(rt,H,er,"\u02CB","\\`"),y(rt,H,er,"\u02C6","\\^"),y(rt,H,er,"\u02DC","\\~"),y(rt,H,er,"\u02C9","\\="),y(rt,H,er,"\u02D8","\\u"),y(rt,H,er,"\u02D9","\\."),y(rt,H,er,"\u02DA","\\r"),y(rt,H,er,"\u02C7","\\v"),y(rt,H,er,"\xA8",'\\"'),y(rt,H,er,"\u02DD","\\H"),y(rt,H,er,"\u25EF","\\textcircled");var Pt={"--":!0,"---":!0,"``":!0,"''":!0};y(rt,H,Se,"\u2013","--"),y(rt,H,Se,"\u2013","\\textendash"),y(rt,H,Se,"\u2014","---"),y(rt,H,Se,"\u2014","\\textemdash"),y(rt,H,Se,"\u2018","`"),y(rt,H,Se,"\u2018","\\textquoteleft"),y(rt,H,Se,"\u2019","'"),y(rt,H,Se,"\u2019","\\textquoteright"),y(rt,H,Se,"\u201C","``"),y(rt,H,Se,"\u201C","\\textquotedblleft"),y(rt,H,Se,"\u201D","''"),y(rt,H,Se,"\u201D","\\textquotedblright"),y(S,H,Se,"\xB0","\\degree",!0),y(rt,H,Se,"\xB0","\\degree"),y(rt,H,Se,"\xB0","\\textdegree",!0),y(S,H,J,"\xA3","\\pounds"),y(S,H,J,"\xA3","\\mathsterling",!0),y(rt,H,J,"\xA3","\\pounds"),y(rt,H,J,"\xA3","\\textsterling",!0),y(S,be,Se,"\u2720","\\maltese"),y(rt,be,Se,"\u2720","\\maltese"),y(rt,H,Et,"\xA0","\\ "),y(rt,H,Et,"\xA0"," "),y(rt,H,Et,"\xA0","~");for(var jt='0123456789/@."',qt=0;qt<jt.length;qt++){var gr=jt.charAt(qt);y(S,H,Se,gr,gr)}for(var Ft='0123456789!@*()-=+[]<>|";:?/.,',zt=0;zt<Ft.length;zt++){var fr=Ft.charAt(zt);y(rt,H,Se,fr,fr)}for(var Zr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",un=0;un<Zr.length;un++){var $r=Zr.charAt(un);y(S,H,J,$r,$r),y(rt,H,Se,$r,$r)}y(S,be,Se,"C","\u2102"),y(rt,be,Se,"C","\u2102"),y(S,be,Se,"H","\u210D"),y(rt,be,Se,"H","\u210D"),y(S,be,Se,"N","\u2115"),y(rt,be,Se,"N","\u2115"),y(S,be,Se,"P","\u2119"),y(rt,be,Se,"P","\u2119"),y(S,be,Se,"Q","\u211A"),y(rt,be,Se,"Q","\u211A"),y(S,be,Se,"R","\u211D"),y(rt,be,Se,"R","\u211D"),y(S,be,Se,"Z","\u2124"),y(rt,be,Se,"Z","\u2124"),y(S,H,J,"h","\u210E"),y(rt,H,J,"h","\u210E");for(var Ht="",ur=0;ur<Zr.length;ur++){var Ar=Zr.charAt(ur);Ht=String.fromCharCode(55349,56320+ur),y(S,H,J,Ar,Ht),y(rt,H,Se,Ar,Ht),Ht=String.fromCharCode(55349,56372+ur),y(S,H,J,Ar,Ht),y(rt,H,Se,Ar,Ht),Ht=String.fromCharCode(55349,56424+ur),y(S,H,J,Ar,Ht),y(rt,H,Se,Ar,Ht),Ht=String.fromCharCode(55349,56580+ur),y(S,H,J,Ar,Ht),y(rt,H,Se,Ar,Ht),Ht=String.fromCharCode(55349,56736+ur),y(S,H,J,Ar,Ht),y(rt,H,Se,Ar,Ht),Ht=String.fromCharCode(55349,56788+ur),y(S,H,J,Ar,Ht),y(rt,H,Se,Ar,Ht),Ht=String.fromCharCode(55349,56840+ur),y(S,H,J,Ar,Ht),y(rt,H,Se,Ar,Ht),Ht=String.fromCharCode(55349,56944+ur),y(S,H,J,Ar,Ht),y(rt,H,Se,Ar,Ht),ur<26&&(Ht=String.fromCharCode(55349,56632+ur),y(S,H,J,Ar,Ht),y(rt,H,Se,Ar,Ht),Ht=String.fromCharCode(55349,56476+ur),y(S,H,J,Ar,Ht),y(rt,H,Se,Ar,Ht))}Ht="\u{1D55C}",y(S,H,J,"k",Ht),y(rt,H,Se,"k",Ht);for(var Jr=0;Jr<10;Jr++){var Qr=Jr.toString();Ht=String.fromCharCode(55349,57294+Jr),y(S,H,J,Qr,Ht),y(rt,H,Se,Qr,Ht),Ht=String.fromCharCode(55349,57314+Jr),y(S,H,J,Qr,Ht),y(rt,H,Se,Qr,Ht),Ht=String.fromCharCode(55349,57324+Jr),y(S,H,J,Qr,Ht),y(rt,H,Se,Qr,Ht),Ht=String.fromCharCode(55349,57334+Jr),y(S,H,J,Qr,Ht),y(rt,H,Se,Qr,Ht)}for(var wn="\xC7\xD0\xDE\xE7\xFE",Dr=0;Dr<wn.length;Dr++){var Fn=wn.charAt(Dr);y(S,H,J,Fn,Fn),y(rt,H,Se,Fn,Fn)}y(rt,H,Se,"\xF0","\xF0"),y(rt,H,Se,"\u2013","\u2013"),y(rt,H,Se,"\u2014","\u2014"),y(rt,H,Se,"\u2018","\u2018"),y(rt,H,Se,"\u2019","\u2019"),y(rt,H,Se,"\u201C","\u201C"),y(rt,H,Se,"\u201D","\u201D");var cn=[["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"]],Xt=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Ut=function(l,c){var d=l.charCodeAt(0),p=l.charCodeAt(1),C=(d-55296)*1024+(p-56320)+65536,k=c==="math"?0:1;if(119808<=C&&C<120484){var fe=Math.floor((C-119808)/26);return[cn[fe][2],cn[fe][k]]}else if(120782<=C&&C<=120831){var ye=Math.floor((C-120782)/10);return[Xt[ye][2],Xt[ye][k]]}else{if(C===120485||C===120486)return[cn[0][2],cn[0][k]];if(120486<C&&C<120782)return["",""];throw new Z("Unsupported character: "+l)}},hr=[[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]],Hr=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],_r=function(l,c){return c.size<2?l:hr[l-1][c.size-1]},nn=function(){function O(c){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=c.style,this.color=c.color,this.size=c.size||O.BASESIZE,this.textSize=c.textSize||this.size,this.phantom=!!c.phantom,this.font=c.font||"",this.fontFamily=c.fontFamily||"",this.fontWeight=c.fontWeight||"",this.fontShape=c.fontShape||"",this.sizeMultiplier=Hr[this.size-1],this.maxSize=c.maxSize,this.minRuleThickness=c.minRuleThickness,this._fontMetrics=void 0}var l=O.prototype;return l.extend=function(d){var p={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 C in d)d.hasOwnProperty(C)&&(p[C]=d[C]);return new O(p)},l.havingStyle=function(d){return this.style===d?this:this.extend({style:d,size:_r(this.textSize,d)})},l.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},l.havingSize=function(d){return this.size===d&&this.textSize===d?this:this.extend({style:this.style.text(),size:d,textSize:d,sizeMultiplier:Hr[d-1]})},l.havingBaseStyle=function(d){d=d||this.style.text();var p=_r(O.BASESIZE,d);return this.size===p&&this.textSize===O.BASESIZE&&this.style===d?this:this.extend({style:d,size:p})},l.havingBaseSizing=function(){var d;switch(this.style.id){case 4:case 5:d=3;break;case 6:case 7:d=1;break;default:d=6}return this.extend({style:this.style.text(),size:d})},l.withColor=function(d){return this.extend({color:d})},l.withPhantom=function(){return this.extend({phantom:!0})},l.withFont=function(d){return this.extend({font:d})},l.withTextFontFamily=function(d){return this.extend({fontFamily:d,font:""})},l.withTextFontWeight=function(d){return this.extend({fontWeight:d,font:""})},l.withTextFontShape=function(d){return this.extend({fontShape:d,font:""})},l.sizingClasses=function(d){return d.size!==this.size?["sizing","reset-size"+d.size,"size"+this.size]:[]},l.baseSizingClasses=function(){return this.size!==O.BASESIZE?["sizing","reset-size"+this.size,"size"+O.BASESIZE]:[]},l.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=yt(this.size)),this._fontMetrics},l.getColor=function(){return this.phantom?"transparent":this.color},O}();nn.BASESIZE=6;var ri=nn,qr={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},Qt={ex:!0,em:!0,mu:!0},tt=function(l){return typeof l!="string"&&(l=l.unit),l in qr||l in Qt||l==="ex"},Xe=function(l,c){var d;if(l.unit in qr)d=qr[l.unit]/c.fontMetrics().ptPerEm/c.sizeMultiplier;else if(l.unit==="mu")d=c.fontMetrics().cssEmPerMu;else{var p;if(c.style.isTight()?p=c.havingStyle(c.style.text()):p=c,l.unit==="ex")d=p.fontMetrics().xHeight;else if(l.unit==="em")d=p.fontMetrics().quad;else throw new Z("Invalid unit: '"+l.unit+"'");p!==c&&(d*=p.sizeMultiplier/c.sizeMultiplier)}return Math.min(l.number*d,c.maxSize)},dt=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],At=function(l,c,d){return Ct[d][l]&&Ct[d][l].replace&&(l=Ct[d][l].replace),{value:l,metrics:Je(l,c,d)}},ut=function(l,c,d,p,C){var k=At(l,c,d),fe=k.metrics;l=k.value;var ye;if(fe){var Me=fe.italic;(d==="text"||p&&p.font==="mathit")&&(Me=0),ye=new se(l,fe.height,fe.depth,Me,fe.skew,fe.width,C)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+l+"' in style '"+c+"' and mode '"+d+"'")),ye=new se(l,0,0,0,0,0,C);if(p){ye.maxFontSize=p.sizeMultiplier,p.style.isTight()&&ye.classes.push("mtight");var Ze=p.getColor();Ze&&(ye.style.color=Ze)}return ye},wt=function(l,c,d,p){return p===void 0&&(p=[]),d.font==="boldsymbol"&&At(l,"Main-Bold",c).metrics?ut(l,"Main-Bold",c,d,p.concat(["mathbf"])):l==="\\"||Ct[c][l].font==="main"?ut(l,"Main-Regular",c,d,p):ut(l,"AMS-Regular",c,d,p.concat(["amsrm"]))},pt=function(l,c,d,p){return/[0-9]/.test(l.charAt(0))||L.contains(dt,l)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},Kt=function(l,c,d,p){return L.contains(dt,l)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(l.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},tr=function(l,c,d,p){return At(l,"Math-BoldItalic",c).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Zt=function(l,c,d){var p=l.mode,C=l.text,k=["mord"],fe=p==="math"||p==="text"&&c.font,ye=fe?c.font:c.fontFamily;if(C.charCodeAt(0)===55349){var Me=Ut(C,p),Ze=Me[0],at=Me[1];return ut(C,Ze,p,c,k.concat(at))}else if(ye){var ft,Rt;if(ye==="boldsymbol"||ye==="mathnormal"){var Bt=ye==="boldsymbol"?tr(C,p,c,k):Kt(C,p,c,k);ft=Bt.fontName,Rt=[Bt.fontClass]}else L.contains(dt,C)?(ft="Main-Italic",Rt=["mathit"]):fe?(ft=yn[ye].fontName,Rt=[ye]):(ft=Fr(ye,c.fontWeight,c.fontShape),Rt=[ye,c.fontWeight,c.fontShape]);if(At(C,ft,p).metrics)return ut(C,ft,p,c,k.concat(Rt));if(Pt.hasOwnProperty(C)&&ft.substr(0,10)==="Typewriter"){for(var Wt=[],or=0;or<C.length;or++)Wt.push(ut(C[or],ft,p,c,k.concat(Rt)));return Yr(Wt)}}if(d==="mathord"){var xr=pt(C,p,c,k);return ut(C,xr.fontName,p,c,k.concat([xr.fontClass]))}else if(d==="textord"){var Er=Ct[p][C]&&Ct[p][C].font;if(Er==="ams"){var wr=Fr("amsrm",c.fontWeight,c.fontShape);return ut(C,wr,p,c,k.concat("amsrm",c.fontWeight,c.fontShape))}else if(Er==="main"||!Er){var hn=Fr("textrm",c.fontWeight,c.fontShape);return ut(C,hn,p,c,k.concat(c.fontWeight,c.fontShape))}else{var dn=Fr(Er,c.fontWeight,c.fontShape);return ut(C,dn,p,c,k.concat(dn,c.fontWeight,c.fontShape))}}else throw new Error("unexpected type: "+d+" in makeOrd")},vr=function(l,c){if(Tt(l.classes)!==Tt(c.classes)||l.skew!==c.skew||l.maxFontSize!==c.maxFontSize)return!1;for(var d in l.style)if(l.style.hasOwnProperty(d)&&l.style[d]!==c.style[d])return!1;for(var p in c.style)if(c.style.hasOwnProperty(p)&&l.style[p]!==c.style[p])return!1;return!0},Tr=function(l){for(var c=0;c<l.length-1;c++){var d=l[c],p=l[c+1];d instanceof se&&p instanceof se&&vr(d,p)&&(d.text+=p.text,d.height=Math.max(d.height,p.height),d.depth=Math.max(d.depth,p.depth),d.italic=p.italic,l.splice(c+1,1),c--)}return l},Or=function(l){for(var c=0,d=0,p=0,C=0;C<l.children.length;C++){var k=l.children[C];k.height>c&&(c=k.height),k.depth>d&&(d=k.depth),k.maxFontSize>p&&(p=k.maxFontSize)}l.height=c,l.depth=d,l.maxFontSize=p},lr=function(l,c,d,p){var C=new X(l,c,d,p);return Or(C),C},sr=function(l,c,d,p){return new X(l,c,d,p)},jr=function(l,c,d){var p=lr([l],[],c);return p.height=Math.max(d||c.fontMetrics().defaultRuleThickness,c.minRuleThickness),p.style.borderBottomWidth=p.height+"em",p.maxFontSize=1,p},yr=function(l,c,d,p){var C=new Le(l,c,d,p);return Or(C),C},Yr=function(l){var c=new gt(l);return Or(c),c},Nr=function(l,c){return l instanceof gt?lr([],[l],c):l},Pr=function(l){if(l.positionType==="individualShift"){for(var c=l.children,d=[c[0]],p=-c[0].shift-c[0].elem.depth,C=p,k=1;k<c.length;k++){var fe=-c[k].shift-C-c[k].elem.depth,ye=fe-(c[k-1].elem.height+c[k-1].elem.depth);C=C+fe,d.push({type:"kern",size:ye}),d.push(c[k])}return{children:d,depth:p}}var Me;if(l.positionType==="top"){for(var Ze=l.positionData,at=0;at<l.children.length;at++){var ft=l.children[at];Ze-=ft.type==="kern"?ft.size:ft.elem.height+ft.elem.depth}Me=Ze}else if(l.positionType==="bottom")Me=-l.positionData;else{var Rt=l.children[0];if(Rt.type!=="elem")throw new Error('First child must have type "elem".');if(l.positionType==="shift")Me=-Rt.elem.depth-l.positionData;else if(l.positionType==="firstBaseline")Me=-Rt.elem.depth;else throw new Error("Invalid positionType "+l.positionType+".")}return{children:l.children,depth:Me}},Rr=function(l,c){for(var d=Pr(l),p=d.children,C=d.depth,k=0,fe=0;fe<p.length;fe++){var ye=p[fe];if(ye.type==="elem"){var Me=ye.elem;k=Math.max(k,Me.maxFontSize,Me.height)}}k+=2;var Ze=lr(["pstrut"],[]);Ze.style.height=k+"em";for(var at=[],ft=C,Rt=C,Bt=C,Wt=0;Wt<p.length;Wt++){var or=p[Wt];if(or.type==="kern")Bt+=or.size;else{var xr=or.elem,Er=or.wrapperClasses||[],wr=or.wrapperStyle||{},hn=lr(Er,[Ze,xr],void 0,wr);hn.style.top=-k-Bt-xr.depth+"em",or.marginLeft&&(hn.style.marginLeft=or.marginLeft),or.marginRight&&(hn.style.marginRight=or.marginRight),at.push(hn),Bt+=xr.height+xr.depth}ft=Math.min(ft,Bt),Rt=Math.max(Rt,Bt)}var dn=lr(["vlist"],at);dn.style.height=Rt+"em";var Tn;if(ft<0){var Dn=lr([],[]),Nn=lr(["vlist"],[Dn]);Nn.style.height=-ft+"em";var si=lr(["vlist-s"],[new se("\u200B")]);Tn=[lr(["vlist-r"],[dn,si]),lr(["vlist-r"],[Nn])]}else Tn=[lr(["vlist-r"],[dn])];var ti=lr(["vlist-t"],Tn);return Tn.length===2&&ti.classes.push("vlist-t2"),ti.height=Rt,ti.depth=-ft,ti},Ir=function(l,c){var d=lr(["mspace"],[],c),p=Xe(l,c);return d.style.marginRight=p+"em",d},Fr=function(l,c,d){var p="";switch(l){case"amsrm":p="AMS";break;case"textrm":p="Main";break;case"textsf":p="SansSerif";break;case"texttt":p="Typewriter";break;default:p=l}var C;return c==="textbf"&&d==="textit"?C="BoldItalic":c==="textbf"?C="Bold":c==="textit"?C="Italic":C="Regular",p+"-"+C},yn={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"}},zr={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},dr=function(l,c){var d=zr[l],p=d[0],C=d[1],k=d[2],fe=new _e(p),ye=new ve([fe],{width:C+"em",height:k+"em",style:"width:"+C+"em",viewBox:"0 0 "+1e3*C+" "+1e3*k,preserveAspectRatio:"xMinYMin"}),Me=sr(["overlay"],[ye],c);return Me.height=k,Me.style.height=k+"em",Me.style.width=C+"em",Me},He={fontMap:yn,makeSymbol:ut,mathsym:wt,makeSpan:lr,makeSvgSpan:sr,makeLineSpan:jr,makeAnchor:yr,makeFragment:Yr,wrapFragment:Nr,makeVList:Rr,makeOrd:Zt,makeGlue:Ir,staticSvg:dr,svgData:zr,tryCombineChars:Tr};function ar(O,l){var c=br(O,l);if(!c)throw new Error("Expected node of type "+l+", but got "+(O?"node of type "+O.type:String(O)));return c}function br(O,l){return O&&O.type===l?O:null}function fn(O,l){var c=Pn(O,l);if(!c)throw new Error('Expected node of type "atom" and family "'+l+'", but got '+(O?O.type==="atom"?"atom of family "+O.family:"node of type "+O.type:String(O)));return c}function Pn(O,l){return O&&O.type==="atom"&&O.family===l?O:null}function Mn(O){var l=En(O);if(!l)throw new Error("Expected node of symbol group type, but got "+(O?"node of type "+O.type:String(O)));return l}function En(O){return O&&(O.type==="atom"||xt.hasOwnProperty(O.type))?O:null}var pr={number:3,unit:"mu"},pn={number:4,unit:"mu"},Sn={number:5,unit:"mu"},Kr={mord:{mop:pr,mbin:pn,mrel:Sn,minner:pr},mop:{mord:pr,mop:pr,mrel:Sn,minner:pr},mbin:{mord:pn,mop:pn,mopen:pn,minner:pn},mrel:{mord:Sn,mop:Sn,mopen:Sn,minner:Sn},mopen:{},mclose:{mop:pr,mbin:pn,mrel:Sn,minner:pr},mpunct:{mord:pr,mop:pr,mrel:Sn,mopen:pr,mclose:pr,mpunct:pr,minner:pr},minner:{mord:pr,mop:pr,mbin:pn,mrel:Sn,mopen:pr,mpunct:pr,minner:pr}},Cn={mord:{mop:pr},mop:{mord:pr,mop:pr},mbin:{},mrel:{},mopen:{},mclose:{mop:pr},mpunct:{},minner:{mop:pr}},di={},$n={},Zn={};function Vt(O){for(var l=O.type,c=O.names,d=O.props,p=O.handler,C=O.htmlBuilder,k=O.mathmlBuilder,fe={type:l,numArgs:d.numArgs,argTypes:d.argTypes,greediness:d.greediness===void 0?1:d.greediness,allowedInText:!!d.allowedInText,allowedInMath:d.allowedInMath===void 0?!0:d.allowedInMath,numOptionalArgs:d.numOptionalArgs||0,infix:!!d.infix,handler:p},ye=0;ye<c.length;++ye)di[c[ye]]=fe;l&&(C&&($n[l]=C),k&&(Zn[l]=k))}function sn(O){var l=O.type,c=O.htmlBuilder,d=O.mathmlBuilder;Vt({type:l,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:c,mathmlBuilder:d})}var Wr=function(l){var c=br(l,"ordgroup");return c?c.body:[l]},Rn=He.makeSpan,fi=["leftmost","mbin","mopen","mrel","mop","mpunct"],Yn=["rightmost","mrel","mclose","mpunct"],mn={display:g.DISPLAY,text:g.TEXT,script:g.SCRIPT,scriptscript:g.SCRIPTSCRIPT},In={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},en=function(l,c,d,p){p===void 0&&(p=[null,null]);for(var C=[],k=0;k<l.length;k++){var fe=Lr(l[k],c);if(fe instanceof gt){var ye=fe.children;C.push.apply(C,ye)}else C.push(fe)}if(!d)return C;var Me=c;if(l.length===1){var Ze=br(l[0],"sizing")||br(l[0],"styling");Ze&&(Ze.type==="sizing"?Me=c.havingSize(Ze.size):Ze.type==="styling"&&(Me=c.havingStyle(mn[Ze.style])))}var at=Rn([p[0]||"leftmost"],[],c),ft=Rn([p[1]||"rightmost"],[],c);return ei(C,function(Rt,Bt){var Wt=Bt.classes[0],or=Rt.classes[0];Wt==="mbin"&&L.contains(Yn,or)?Bt.classes[0]="mord":or==="mbin"&&L.contains(fi,Wt)&&(Rt.classes[0]="mord")},{node:at},ft),ei(C,function(Rt,Bt){var Wt=Hn(Bt),or=Hn(Rt),xr=Wt&&or?Rt.hasClass("mtight")?Cn[Wt][or]:Kr[Wt][or]:null;if(xr)return He.makeGlue(xr,Me)},{node:at},ft),C},ei=function O(l,c,d,p){p&&l.push(p);for(var C=0;C<l.length;C++){var k=l[C],fe=Gn(k);if(fe){O(fe.children,c,d);continue}if(k.classes[0]!=="mspace"){var ye=c(k,d.node);ye&&(d.insertAfter?d.insertAfter(ye):(l.unshift(ye),C++)),d.node=k,d.insertAfter=function(Me){return function(Ze){l.splice(Me+1,0,Ze),C++}}(C)}}p&&l.pop()},Gn=function(l){return l instanceof gt||l instanceof Le?l:null},li=function O(l,c){var d=Gn(l);if(d){var p=d.children;if(p.length){if(c==="right")return O(p[p.length-1],"right");if(c==="left")return O(p[0],"left")}}return l},Hn=function(l,c){return l?(c&&(l=li(l,c)),In[l.classes[0]]||null):null},Xn=function(l,c){var d=["nulldelimiter"].concat(l.baseSizingClasses());return Rn(c.concat(d))},Lr=function(l,c,d){if(!l)return Rn();if($n[l.type]){var p=$n[l.type](l,c);if(d&&c.size!==d.size){p=Rn(c.sizingClasses(d),[p],c);var C=c.sizeMultiplier/d.sizeMultiplier;p.height*=C,p.depth*=C}return p}else throw new Z("Got group of unknown type: '"+l.type+"'")};function ui(O,l){var c=Rn(["base"],O,l),d=Rn(["strut"]);return d.style.height=c.height+c.depth+"em",d.style.verticalAlign=-c.depth+"em",c.children.unshift(d),c}function xi(O,l){var c=null;O.length===1&&O[0].type==="tag"&&(c=O[0].tag,O=O[0].body);for(var d=en(O,l,!0),p=[],C=[],k=0;k<d.length;k++)if(C.push(d[k]),d[k].hasClass("mbin")||d[k].hasClass("mrel")||d[k].hasClass("allowbreak")){for(var fe=!1;k<d.length-1&&d[k+1].hasClass("mspace")&&!d[k+1].hasClass("newline");)k++,C.push(d[k]),d[k].hasClass("nobreak")&&(fe=!0);fe||(p.push(ui(C,l)),C=[])}else d[k].hasClass("newline")&&(C.pop(),C.length>0&&(p.push(ui(C,l)),C=[]),p.push(d[k]));C.length>0&&p.push(ui(C,l));var ye;c&&(ye=ui(en(c,l,!0)),ye.classes=["tag"],p.push(ye));var Me=Rn(["katex-html"],p);if(Me.setAttribute("aria-hidden","true"),ye){var Ze=ye.children[0];Ze.style.height=Me.height+Me.depth+"em",Ze.style.verticalAlign=-Me.depth+"em"}return Me}function wi(O){return new gt(O)}var gn=function(){function O(c,d){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=c,this.attributes={},this.children=d||[]}var l=O.prototype;return l.setAttribute=function(d,p){this.attributes[d]=p},l.getAttribute=function(d){return this.attributes[d]},l.toNode=function(){var d=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var p in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,p)&&d.setAttribute(p,this.attributes[p]);for(var C=0;C<this.children.length;C++)d.appendChild(this.children[C].toNode());return d},l.toMarkup=function(){var d="<"+this.type;for(var p in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,p)&&(d+=" "+p+'="',d+=L.escape(this.attributes[p]),d+='"');d+=">";for(var C=0;C<this.children.length;C++)d+=this.children[C].toMarkup();return d+="</"+this.type+">",d},l.toText=function(){return this.children.map(function(d){return d.toText()}).join("")},O}(),_i=function(){function O(c){this.text=void 0,this.text=c}var l=O.prototype;return l.toNode=function(){return document.createTextNode(this.text)},l.toMarkup=function(){return L.escape(this.toText())},l.toText=function(){return this.text},O}(),Ei=function(){function O(c){this.width=void 0,this.character=void 0,this.width=c,c>=.05555&&c<=.05556?this.character="\u200A":c>=.1666&&c<=.1667?this.character="\u2009":c>=.2222&&c<=.2223?this.character="\u2005":c>=.2777&&c<=.2778?this.character="\u2005\u200A":c>=-.05556&&c<=-.05555?this.character="\u200A\u2063":c>=-.1667&&c<=-.1666?this.character="\u2009\u2063":c>=-.2223&&c<=-.2222?this.character="\u205F\u2063":c>=-.2778&&c<=-.2777?this.character="\u2005\u2063":this.character=null}var l=O.prototype;return l.toNode=function(){if(this.character)return document.createTextNode(this.character);var d=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return d.setAttribute("width",this.width+"em"),d},l.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},l.toText=function(){return this.character?this.character:" "},O}(),Mt={MathNode:gn,TextNode:_i,SpaceNode:Ei,newDocumentFragment:wi},jn=function(l,c,d){return Ct[c][l]&&Ct[c][l].replace&&l.charCodeAt(0)!==55349&&!(Pt.hasOwnProperty(l)&&d&&(d.fontFamily&&d.fontFamily.substr(4,2)==="tt"||d.font&&d.font.substr(4,2)==="tt"))&&(l=Ct[c][l].replace),new Mt.TextNode(l)},pi=function(l){return l.length===1?l[0]:new Mt.MathNode("mrow",l)},ci=function(l,c){if(c.fontFamily==="texttt")return"monospace";if(c.fontFamily==="textsf")return c.fontShape==="textit"&&c.fontWeight==="textbf"?"sans-serif-bold-italic":c.fontShape==="textit"?"sans-serif-italic":c.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(c.fontShape==="textit"&&c.fontWeight==="textbf")return"bold-italic";if(c.fontShape==="textit")return"italic";if(c.fontWeight==="textbf")return"bold";var d=c.font;if(!d||d==="mathnormal")return null;var p=l.mode;if(d==="mathit")return"italic";if(d==="boldsymbol")return"bold-italic";if(d==="mathbf")return"bold";if(d==="mathbb")return"double-struck";if(d==="mathfrak")return"fraktur";if(d==="mathscr"||d==="mathcal")return"script";if(d==="mathsf")return"sans-serif";if(d==="mathtt")return"monospace";var C=l.text;if(L.contains(["\\imath","\\jmath"],C))return null;Ct[p][C]&&Ct[p][C].replace&&(C=Ct[p][C].replace);var k=He.fontMap[d].fontName;return Je(C,k,p)?He.fontMap[d].variant:null},Ln=function(l,c,d){if(l.length===1){var p=Mr(l[0],c);return d&&p instanceof gn&&p.type==="mo"&&(p.setAttribute("lspace","0em"),p.setAttribute("rspace","0em")),[p]}for(var C=[],k,fe=0;fe<l.length;fe++){var ye=Mr(l[fe],c);if(ye instanceof gn&&k instanceof gn){if(ye.type==="mtext"&&k.type==="mtext"&&ye.getAttribute("mathvariant")===k.getAttribute("mathvariant")){var Me;(Me=k.children).push.apply(Me,ye.children);continue}else if(ye.type==="mn"&&k.type==="mn"){var Ze;(Ze=k.children).push.apply(Ze,ye.children);continue}else if(ye.type==="mi"&&ye.children.length===1&&k.type==="mn"){var at=ye.children[0];if(at instanceof _i&&at.text==="."){var ft;(ft=k.children).push.apply(ft,ye.children);continue}}else if(k.type==="mi"&&k.children.length===1){var Rt=k.children[0];if(Rt instanceof _i&&Rt.text==="\u0338"&&(ye.type==="mo"||ye.type==="mi"||ye.type==="mn")){var Bt=ye.children[0];Bt instanceof _i&&Bt.text.length>0&&(Bt.text=Bt.text.slice(0,1)+"\u0338"+Bt.text.slice(1),C.pop())}}}C.push(ye),k=ye}return C},vn=function(l,c,d){return pi(Ln(l,c,d))},Mr=function(l,c){if(!l)return new Mt.MathNode("mrow");if(Zn[l.type]){var d=Zn[l.type](l,c);return d}else throw new Z("Got group of unknown type: '"+l.type+"'")};function bn(O,l,c,d){var p=Ln(O,c),C;p.length===1&&p[0]instanceof gn&&L.contains(["mrow","mtable"],p[0].type)?C=p[0]:C=new Mt.MathNode("mrow",p);var k=new Mt.MathNode("annotation",[new Mt.TextNode(l)]);k.setAttribute("encoding","application/x-tex");var fe=new Mt.MathNode("semantics",[C,k]),ye=new Mt.MathNode("math",[fe]);ye.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var Me=d?"katex":"katex-mathml";return He.makeSpan([Me],[ye])}var Wn=function(l){return new ri({style:l.displayMode?g.DISPLAY:g.TEXT,maxSize:l.maxSize,minRuleThickness:l.minRuleThickness})},qn=function(l,c){if(c.displayMode){var d=["katex-display"];c.leqno&&d.push("leqno"),c.fleqn&&d.push("fleqn"),l=He.makeSpan(d,[l])}return l},kn=function(l,c,d){var p=Wn(d),C;if(d.output==="mathml")return bn(l,c,p,!0);if(d.output==="html"){var k=xi(l,p);C=He.makeSpan(["katex"],[k])}else{var fe=bn(l,c,p,!1),ye=xi(l,p);C=He.makeSpan(["katex"],[fe,ye])}return qn(C,d)},Kn=function(l,c,d){var p=Wn(d),C=xi(l,p),k=He.makeSpan(["katex"],[C]);return qn(k,d)},Bi=kn,Hi={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"},Si=function(l){var c=new Mt.MathNode("mo",[new Mt.TextNode(Hi[l.substr(1)])]);return c.setAttribute("stretchy","true"),c},Yi={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]},Li=function(l){return l.type==="ordgroup"?l.body.length:1},ki=function(l,c){function d(){var ye=4e5,Me=l.label.substr(1);if(L.contains(["widehat","widecheck","widetilde","utilde"],Me)){var Ze=l,at=Li(Ze.base),ft,Rt,Bt;if(at>5)Me==="widehat"||Me==="widecheck"?(ft=420,ye=2364,Bt=.42,Rt=Me+"4"):(ft=312,ye=2340,Bt=.34,Rt="tilde4");else{var Wt=[1,1,2,2,3,3][at];Me==="widehat"||Me==="widecheck"?(ye=[0,1062,2364,2364,2364][Wt],ft=[0,239,300,360,420][Wt],Bt=[0,.24,.3,.3,.36,.42][Wt],Rt=Me+Wt):(ye=[0,600,1033,2339,2340][Wt],ft=[0,260,286,306,312][Wt],Bt=[0,.26,.286,.3,.306,.34][Wt],Rt="tilde"+Wt)}var or=new _e(Rt),xr=new ve([or],{width:"100%",height:Bt+"em",viewBox:"0 0 "+ye+" "+ft,preserveAspectRatio:"none"});return{span:He.makeSvgSpan([],[xr],c),minWidth:0,height:Bt}}else{var Er=[],wr=Yi[Me],hn=wr[0],dn=wr[1],Tn=wr[2],Dn=Tn/1e3,Nn=hn.length,si,ti;if(Nn===1){var on=wr[3];si=["hide-tail"],ti=[on]}else if(Nn===2)si=["halfarrow-left","halfarrow-right"],ti=["xMinYMin","xMaxYMin"];else if(Nn===3)si=["brace-left","brace-center","brace-right"],ti=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
`+Nn+" children.");for(var Ci=0;Ci<Nn;Ci++){var $i=new _e(hn[Ci]),Ii=new ve([$i],{width:"400em",height:Dn+"em",viewBox:"0 0 "+ye+" "+Tn,preserveAspectRatio:ti[Ci]+" slice"}),ai=He.makeSvgSpan([si[Ci]],[Ii],c);if(Nn===1)return{span:ai,minWidth:dn,height:Dn};ai.style.height=Dn+"em",Er.push(ai)}return{span:He.makeSpan(["stretchy"],Er,c),minWidth:dn,height:Dn}}}var p=d(),C=p.span,k=p.minWidth,fe=p.height;return C.height=fe,C.style.height=fe+"em",k>0&&(C.style.minWidth=k+"em"),C},rr=function(l,c,d,p){var C,k=l.height+l.depth+2*d;if(/fbox|color/.test(c)){if(C=He.makeSpan(["stretchy",c],[],p),c==="fbox"){var fe=p.color&&p.getColor();fe&&(C.style.borderColor=fe)}}else{var ye=[];/^[bx]cancel$/.test(c)&&ye.push(new Oe({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(c)&&ye.push(new Oe({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var Me=new ve(ye,{width:"100%",height:k+"em"});C=He.makeSvgSpan([],[Me],p)}return C.height=k,C.style.height=k+"em",C},Yt={encloseSpan:rr,mathMLnode:Si,svgSpan:ki},Br=function(l,c){var d,p,C=br(l,"supsub"),k;C?(p=ar(C.base,"accent"),d=p.base,C.base=d,k=je(Lr(C,c)),C.base=p):(p=ar(l,"accent"),d=p.base);var fe=Lr(d,c.havingCrampedStyle()),ye=p.isShifty&&L.isCharacterBox(d),Me=0;if(ye){var Ze=L.getBaseElem(d),at=Lr(Ze,c.havingCrampedStyle());Me=Be(at).skew}var ft=Math.min(fe.height,c.fontMetrics().xHeight),Rt;if(p.isStretchy)Rt=Yt.svgSpan(p,c),Rt=He.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:fe},{type:"elem",elem:Rt,wrapperClasses:["svg-align"],wrapperStyle:Me>0?{width:"calc(100% - "+2*Me+"em)",marginLeft:2*Me+"em"}:void 0}]},c);else{var Bt,Wt;p.label==="\\vec"?(Bt=He.staticSvg("vec",c),Wt=He.svgData.vec[1]):(Bt=He.makeOrd({mode:p.mode,text:p.label},c,"textord"),Bt=Be(Bt),Bt.italic=0,Wt=Bt.width),Rt=He.makeSpan(["accent-body"],[Bt]);var or=p.label==="\\textcircled";or&&(Rt.classes.push("accent-full"),ft=fe.height);var xr=Me;or||(xr-=Wt/2),Rt.style.left=xr+"em",p.label==="\\textcircled"&&(Rt.style.top=".2em"),Rt=He.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:fe},{type:"kern",size:-ft},{type:"elem",elem:Rt}]},c)}var Er=He.makeSpan(["mord","accent"],[Rt],c);return k?(k.children[0]=Er,k.height=Math.max(Er.height,k.height),k.classes[0]="mord",k):Er},An=function(l,c){var d=l.isStretchy?Yt.mathMLnode(l.label):new Mt.MathNode("mo",[jn(l.label,l.mode)]),p=new Mt.MathNode("mover",[Mr(l.base,c),d]);return p.setAttribute("accent","true"),p},Gr=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(O){return"\\"+O}).join("|"));Vt({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(l,c){var d=c[0],p=!Gr.test(l.funcName),C=!p||l.funcName==="\\widehat"||l.funcName==="\\widetilde"||l.funcName==="\\widecheck";return{type:"accent",mode:l.parser.mode,label:l.funcName,isStretchy:p,isShifty:C,base:d}},htmlBuilder:Br,mathmlBuilder:An}),Vt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(l,c){var d=c[0];return{type:"accent",mode:l.parser.mode,label:l.funcName,isStretchy:!1,isShifty:!0,base:d}},htmlBuilder:Br,mathmlBuilder:An}),Vt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(l,c){var d=l.parser,p=l.funcName,C=c[0];return{type:"accentUnder",mode:d.mode,label:p,base:C}},htmlBuilder:function(l,c){var d=Lr(l.base,c),p=Yt.svgSpan(l,c),C=l.label==="\\utilde"?.12:0,k=He.makeVList({positionType:"bottom",positionData:p.height+C,children:[{type:"elem",elem:p,wrapperClasses:["svg-align"]},{type:"kern",size:C},{type:"elem",elem:d}]},c);return He.makeSpan(["mord","accentunder"],[k],c)},mathmlBuilder:function(l,c){var d=Yt.mathMLnode(l.label),p=new Mt.MathNode("munder",[Mr(l.base,c),d]);return p.setAttribute("accentunder","true"),p}});var ni=function(l){var c=new Mt.MathNode("mpadded",l?[l]:[]);return c.setAttribute("width","+0.6em"),c.setAttribute("lspace","0.3em"),c};Vt({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(l,c,d){var p=l.parser,C=l.funcName;return{type:"xArrow",mode:p.mode,label:C,body:c[0],below:d[0]}},htmlBuilder:function(l,c){var d=c.style,p=c.havingStyle(d.sup()),C=He.wrapFragment(Lr(l.body,p,c),c);C.classes.push("x-arrow-pad");var k;l.below&&(p=c.havingStyle(d.sub()),k=He.wrapFragment(Lr(l.below,p,c),c),k.classes.push("x-arrow-pad"));var fe=Yt.svgSpan(l,c),ye=-c.fontMetrics().axisHeight+.5*fe.height,Me=-c.fontMetrics().axisHeight-.5*fe.height-.111;(C.depth>.25||l.label==="\\xleftequilibrium")&&(Me-=C.depth);var Ze;if(k){var at=-c.fontMetrics().axisHeight+k.height+.5*fe.height+.111;Ze=He.makeVList({positionType:"individualShift",children:[{type:"elem",elem:C,shift:Me},{type:"elem",elem:fe,shift:ye},{type:"elem",elem:k,shift:at}]},c)}else Ze=He.makeVList({positionType:"individualShift",children:[{type:"elem",elem:C,shift:Me},{type:"elem",elem:fe,shift:ye}]},c);return Ze.children[0].children[0].children[1].classes.push("svg-align"),He.makeSpan(["mrel","x-arrow"],[Ze],c)},mathmlBuilder:function(l,c){var d=Yt.mathMLnode(l.label),p;if(l.body){var C=ni(Mr(l.body,c));if(l.below){var k=ni(Mr(l.below,c));p=new Mt.MathNode("munderover",[d,k,C])}else p=new Mt.MathNode("mover",[d,C])}else if(l.below){var fe=ni(Mr(l.below,c));p=new Mt.MathNode("munder",[d,fe])}else p=ni(),p=new Mt.MathNode("mover",[d,p]);return p}}),Vt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(l,c){for(var d=l.parser,p=ar(c[0],"ordgroup"),C=p.body,k="",fe=0;fe<C.length;fe++){var ye=ar(C[fe],"textord");k+=ye.text}var Me=parseInt(k);if(isNaN(Me))throw new Z("\\@char has non-numeric argument "+k);return{type:"textord",mode:d.mode,text:String.fromCharCode(Me)}}});var ji=function(l,c){var d=en(l.body,c.withColor(l.color),!1);return He.makeFragment(d)},Ni=function(l,c){var d=Ln(l.body,c.withColor(l.color)),p=new Mt.MathNode("mstyle",d);return p.setAttribute("mathcolor",l.color),p};Vt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(l,c){var d=l.parser,p=ar(c[0],"color-token").color,C=c[1];return{type:"color",mode:d.mode,color:p,body:Wr(C)}},htmlBuilder:ji,mathmlBuilder:Ni}),Vt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(l,c){var d=l.parser,p=l.breakOnTokenText,C=ar(c[0],"color-token").color;d.gullet.macros.set("\\current@color",C);var k=d.parseExpression(!0,p);return{type:"color",mode:d.mode,color:C,body:k}},htmlBuilder:ji,mathmlBuilder:Ni}),Vt({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(l,c,d){var p=l.parser,C=l.funcName,k=d[0],fe=C==="\\cr",ye=!1;return fe||(p.settings.displayMode&&p.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?ye=!1:ye=!0),{type:"cr",mode:p.mode,newLine:ye,newRow:fe,size:k&&ar(k,"size").value}},htmlBuilder:function(l,c){if(l.newRow)throw new Z("\\cr valid only within a tabular/array environment");var d=He.makeSpan(["mspace"],[],c);return l.newLine&&(d.classes.push("newline"),l.size&&(d.style.marginTop=Xe(l.size,c)+"em")),d},mathmlBuilder:function(l,c){var d=new Mt.MathNode("mspace");return l.newLine&&(d.setAttribute("linebreak","newline"),l.size&&d.setAttribute("height",Xe(l.size,c)+"em")),d}});var yi=function(l,c,d){var p=Ct.math[l]&&Ct.math[l].replace,C=Je(p||l,c,d);if(!C)throw new Error("Unsupported symbol "+l+" and font size "+c+".");return C},vs=function(l,c,d,p){var C=d.havingBaseStyle(c),k=He.makeSpan(p.concat(C.sizingClasses(d)),[l],d),fe=C.sizeMultiplier/d.sizeMultiplier;return k.height*=fe,k.depth*=fe,k.maxFontSize=C.sizeMultiplier,k},Ds=function(l,c,d){var p=c.havingBaseStyle(d),C=(1-c.sizeMultiplier/p.sizeMultiplier)*c.fontMetrics().axisHeight;l.classes.push("delimcenter"),l.style.top=C+"em",l.height-=C,l.depth+=C},Rs=function(l,c,d,p,C,k){var fe=He.makeSymbol(l,"Main-Regular",C,p),ye=vs(fe,c,p,k);return d&&Ds(ye,p,c),ye},ns=function(l,c,d,p){return He.makeSymbol(l,"Size"+c+"-Regular",d,p)},Is=function(l,c,d,p,C,k){var fe=ns(l,c,C,p),ye=vs(He.makeSpan(["delimsizing","size"+c],[fe],p),g.TEXT,p,k);return d&&Ds(ye,p,g.TEXT),ye},Ai=function(l,c,d){var p;c==="Size1-Regular"?p="delim-size1":p="delim-size4";var C=He.makeSpan(["delimsizinginner",p],[He.makeSpan([],[He.makeSymbol(l,c,d)])]);return{type:"elem",elem:C}},zn={type:"kern",size:-.005},_s=function(l,c,d,p,C,k){var fe,ye,Me,Ze;fe=Me=Ze=l,ye=null;var at="Size1-Regular";l==="\\uparrow"?Me=Ze="\u23D0":l==="\\Uparrow"?Me=Ze="\u2016":l==="\\downarrow"?fe=Me="\u23D0":l==="\\Downarrow"?fe=Me="\u2016":l==="\\updownarrow"?(fe="\\uparrow",Me="\u23D0",Ze="\\downarrow"):l==="\\Updownarrow"?(fe="\\Uparrow",Me="\u2016",Ze="\\Downarrow"):l==="["||l==="\\lbrack"?(fe="\u23A1",Me="\u23A2",Ze="\u23A3",at="Size4-Regular"):l==="]"||l==="\\rbrack"?(fe="\u23A4",Me="\u23A5",Ze="\u23A6",at="Size4-Regular"):l==="\\lfloor"||l==="\u230A"?(Me=fe="\u23A2",Ze="\u23A3",at="Size4-Regular"):l==="\\lceil"||l==="\u2308"?(fe="\u23A1",Me=Ze="\u23A2",at="Size4-Regular"):l==="\\rfloor"||l==="\u230B"?(Me=fe="\u23A5",Ze="\u23A6",at="Size4-Regular"):l==="\\rceil"||l==="\u2309"?(fe="\u23A4",Me=Ze="\u23A5",at="Size4-Regular"):l==="("||l==="\\lparen"?(fe="\u239B",Me="\u239C",Ze="\u239D",at="Size4-Regular"):l===")"||l==="\\rparen"?(fe="\u239E",Me="\u239F",Ze="\u23A0",at="Size4-Regular"):l==="\\{"||l==="\\lbrace"?(fe="\u23A7",ye="\u23A8",Ze="\u23A9",Me="\u23AA",at="Size4-Regular"):l==="\\}"||l==="\\rbrace"?(fe="\u23AB",ye="\u23AC",Ze="\u23AD",Me="\u23AA",at="Size4-Regular"):l==="\\lgroup"||l==="\u27EE"?(fe="\u23A7",Ze="\u23A9",Me="\u23AA",at="Size4-Regular"):l==="\\rgroup"||l==="\u27EF"?(fe="\u23AB",Ze="\u23AD",Me="\u23AA",at="Size4-Regular"):l==="\\lmoustache"||l==="\u23B0"?(fe="\u23A7",Ze="\u23AD",Me="\u23AA",at="Size4-Regular"):(l==="\\rmoustache"||l==="\u23B1")&&(fe="\u23AB",Ze="\u23A9",Me="\u23AA",at="Size4-Regular");var ft=yi(fe,at,C),Rt=ft.height+ft.depth,Bt=yi(Me,at,C),Wt=Bt.height+Bt.depth,or=yi(Ze,at,C),xr=or.height+or.depth,Er=0,wr=1;if(ye!==null){var hn=yi(ye,at,C);Er=hn.height+hn.depth,wr=2}var dn=Rt+xr+Er,Tn=Math.max(0,Math.ceil((c-dn)/(wr*Wt))),Dn=dn+Tn*wr*Wt,Nn=p.fontMetrics().axisHeight;d&&(Nn*=p.sizeMultiplier);var si=Dn/2-Nn,ti=(Tn+1)*.005-Wt,on=[];if(on.push(Ai(Ze,at,C)),ye===null)for(var Ci=0;Ci<Tn;Ci++)on.push(zn),on.push(Ai(Me,at,C));else{for(var $i=0;$i<Tn;$i++)on.push(zn),on.push(Ai(Me,at,C));on.push({type:"kern",size:ti}),on.push(Ai(Me,at,C)),on.push(zn),on.push(Ai(ye,at,C));for(var Ii=0;Ii<Tn;Ii++)on.push(zn),on.push(Ai(Me,at,C))}on.push({type:"kern",size:ti}),on.push(Ai(Me,at,C)),on.push(zn),on.push(Ai(fe,at,C));var ai=p.havingBaseStyle(g.TEXT),Gi=He.makeVList({positionType:"bottom",positionData:si,children:on},ai);return vs(He.makeSpan(["delimsizing","mult"],[Gi],ai),g.TEXT,p,k)},is=80,mi=.08,Ti=function(l,c,d,p,C){var k=mt(l,p,d),fe=new _e(l,k),ye=new ve([fe],{width:"400em",height:c+"em",viewBox:"0 0 400000 "+d,preserveAspectRatio:"xMinYMin slice"});return He.makeSvgSpan(["hide-tail"],[ye],C)},qs=function(l,c){var d=c.havingBaseSizing(),p=Ls("\\surd",l*d.sizeMultiplier,Fi,d),C=d.sizeMultiplier,k=Math.max(0,c.minRuleThickness-c.fontMetrics().sqrtRuleThickness),fe,ye=0,Me=0,Ze=0,at;return p.type==="small"?(Ze=1e3+1e3*k+is,l<1?C=1:l<1.4&&(C=.7),ye=(1+k+mi)/C,Me=(1+k)/C,fe=Ti("sqrtMain",ye,Ze,k,c),fe.style.minWidth="0.853em",at=.833/C):p.type==="large"?(Ze=(1e3+is)*ss[p.size],Me=(ss[p.size]+k)/C,ye=(ss[p.size]+k+mi)/C,fe=Ti("sqrtSize"+p.size,ye,Ze,k,c),fe.style.minWidth="1.02em",at=1/C):(ye=l+k+mi,Me=l+k,Ze=Math.floor(1e3*l+k)+is,fe=Ti("sqrtTall",ye,Ze,k,c),fe.style.minWidth="0.742em",at=1.056),fe.height=Me,fe.style.height=ye+"em",{span:fe,advanceWidth:at,ruleWidth:(c.fontMetrics().sqrtRuleThickness+k)*C}},Di=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],Js=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],ys=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],ss=[0,1.2,1.8,2.4,3],Qs=function(l,c,d,p,C){if(l==="<"||l==="\\lt"||l==="\u27E8"?l="\\langle":(l===">"||l==="\\gt"||l==="\u27E9")&&(l="\\rangle"),L.contains(Di,l)||L.contains(ys,l))return Is(l,c,!1,d,p,C);if(L.contains(Js,l))return _s(l,ss[c],!1,d,p,C);throw new Z("Illegal delimiter: '"+l+"'")},Un=[{type:"small",style:g.SCRIPTSCRIPT},{type:"small",style:g.SCRIPT},{type:"small",style:g.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Xi=[{type:"small",style:g.SCRIPTSCRIPT},{type:"small",style:g.SCRIPT},{type:"small",style:g.TEXT},{type:"stack"}],Fi=[{type:"small",style:g.SCRIPTSCRIPT},{type:"small",style:g.SCRIPT},{type:"small",style:g.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Ki=function(l){if(l.type==="small")return"Main-Regular";if(l.type==="large")return"Size"+l.size+"-Regular";if(l.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+l.type+"' here.")},Ls=function(l,c,d,p){for(var C=Math.min(2,3-p.style.size),k=C;k<d.length&&d[k].type!=="stack";k++){var fe=yi(l,Ki(d[k]),"math"),ye=fe.height+fe.depth;if(d[k].type==="small"){var Me=p.havingBaseStyle(d[k].style);ye*=Me.sizeMultiplier}if(ye>c)return d[k]}return d[d.length-1]},an=function(l,c,d,p,C,k){l==="<"||l==="\\lt"||l==="\u27E8"?l="\\langle":(l===">"||l==="\\gt"||l==="\u27E9")&&(l="\\rangle");var fe;L.contains(ys,l)?fe=Un:L.contains(Di,l)?fe=Fi:fe=Xi;var ye=Ls(l,c,fe,p);return ye.type==="small"?Rs(l,ye.style,d,p,C,k):ye.type==="large"?Is(l,ye.size,d,p,C,k):_s(l,c,d,p,C,k)},as=function(l,c,d,p,C,k){var fe=p.fontMetrics().axisHeight*p.sizeMultiplier,ye=901,Me=5/p.fontMetrics().ptPerEm,Ze=Math.max(c-fe,d+fe),at=Math.max(Ze/500*ye,2*Ze-Me);return an(l,at,!0,p,C,k)},ii={sqrtImage:qs,sizedDelim:Qs,customSizedDelim:an,leftRightDelim:as},qi={"\\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}},ea=["(","\\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 os(O,l){var c=En(O);if(c&&L.contains(ea,c.text))return c;throw new Z("Invalid delimiter: '"+(c?c.text:JSON.stringify(O))+"' after '"+l.funcName+"'",O)}Vt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(l,c){var d=os(c[0],l);return{type:"delimsizing",mode:l.parser.mode,size:qi[l.funcName].size,mclass:qi[l.funcName].mclass,delim:d.text}},htmlBuilder:function(l,c){return l.delim==="."?He.makeSpan([l.mclass]):ii.sizedDelim(l.delim,l.size,c,l.mode,[l.mclass])},mathmlBuilder:function(l){var c=[];l.delim!=="."&&c.push(jn(l.delim,l.mode));var d=new Mt.MathNode("mo",c);return l.mclass==="mopen"||l.mclass==="mclose"?d.setAttribute("fence","true"):d.setAttribute("fence","false"),d}});function ls(O){if(!O.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Vt({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(l,c){var d=l.parser.gullet.macros.get("\\current@color");if(d&&typeof d!="string")throw new Z("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:l.parser.mode,delim:os(c[0],l).text,color:d}}}),Vt({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(l,c){var d=os(c[0],l),p=l.parser;++p.leftrightDepth;var C=p.parseExpression(!1);--p.leftrightDepth,p.expect("\\right",!1);var k=ar(p.parseFunction(),"leftright-right");return{type:"leftright",mode:p.mode,body:C,left:d.text,right:k.delim,rightColor:k.color}},htmlBuilder:function(l,c){ls(l);for(var d=en(l.body,c,!0,["mopen","mclose"]),p=0,C=0,k=!1,fe=0;fe<d.length;fe++)d[fe].isMiddle?k=!0:(p=Math.max(d[fe].height,p),C=Math.max(d[fe].depth,C));p*=c.sizeMultiplier,C*=c.sizeMultiplier;var ye;if(l.left==="."?ye=Xn(c,["mopen"]):ye=ii.leftRightDelim(l.left,p,C,c,l.mode,["mopen"]),d.unshift(ye),k)for(var Me=1;Me<d.length;Me++){var Ze=d[Me],at=Ze.isMiddle;at&&(d[Me]=ii.leftRightDelim(at.delim,p,C,at.options,l.mode,[]))}var ft;if(l.right===".")ft=Xn(c,["mclose"]);else{var Rt=l.rightColor?c.withColor(l.rightColor):c;ft=ii.leftRightDelim(l.right,p,C,Rt,l.mode,["mclose"])}return d.push(ft),He.makeSpan(["minner"],d,c)},mathmlBuilder:function(l,c){ls(l);var d=Ln(l.body,c);if(l.left!=="."){var p=new Mt.MathNode("mo",[jn(l.left,l.mode)]);p.setAttribute("fence","true"),d.unshift(p)}if(l.right!=="."){var C=new Mt.MathNode("mo",[jn(l.right,l.mode)]);C.setAttribute("fence","true"),l.rightColor&&C.setAttribute("mathcolor",l.rightColor),d.push(C)}return pi(d)}}),Vt({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(l,c){var d=os(c[0],l);if(!l.parser.leftrightDepth)throw new Z("\\middle without preceding \\left",d);return{type:"middle",mode:l.parser.mode,delim:d.text}},htmlBuilder:function(l,c){var d;if(l.delim===".")d=Xn(c,[]);else{d=ii.sizedDelim(l.delim,1,c,l.mode,[]);var p={delim:l.delim,options:c};d.isMiddle=p}return d},mathmlBuilder:function(l,c){var d=l.delim==="\\vert"||l.delim==="|"?jn("|","text"):jn(l.delim,l.mode),p=new Mt.MathNode("mo",[d]);return p.setAttribute("fence","true"),p.setAttribute("lspace","0.05em"),p.setAttribute("rspace","0.05em"),p}});var us=function(l,c){var d=He.wrapFragment(Lr(l.body,c),c),p=l.label.substr(1),C=c.sizeMultiplier,k,fe=0,ye=L.isCharacterBox(l.body);if(p==="sout")k=He.makeSpan(["stretchy","sout"]),k.height=c.fontMetrics().defaultRuleThickness/C,fe=-.5*c.fontMetrics().xHeight;else{/cancel/.test(p)?ye||d.classes.push("cancel-pad"):d.classes.push("boxpad");var Me=0,Ze=0;/box/.test(p)?(Ze=Math.max(c.fontMetrics().fboxrule,c.minRuleThickness),Me=c.fontMetrics().fboxsep+(p==="colorbox"?0:Ze)):Me=ye?.2:0,k=Yt.encloseSpan(d,p,Me,c),/fbox|boxed|fcolorbox/.test(p)&&(k.style.borderStyle="solid",k.style.borderWidth=Ze+"em"),fe=d.depth+Me,l.backgroundColor&&(k.style.backgroundColor=l.backgroundColor,l.borderColor&&(k.style.borderColor=l.borderColor))}var at;return l.backgroundColor?at=He.makeVList({positionType:"individualShift",children:[{type:"elem",elem:k,shift:fe},{type:"elem",elem:d,shift:0}]},c):at=He.makeVList({positionType:"individualShift",children:[{type:"elem",elem:d,shift:0},{type:"elem",elem:k,shift:fe,wrapperClasses:/cancel/.test(p)?["svg-align"]:[]}]},c),/cancel/.test(p)&&(at.height=d.height,at.depth=d.depth),/cancel/.test(p)&&!ye?He.makeSpan(["mord","cancel-lap"],[at],c):He.makeSpan(["mord"],[at],c)},bs=function(l,c){var d=0,p=new Mt.MathNode(l.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Mr(l.body,c)]);switch(l.label){case"\\cancel":p.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":p.setAttribute("notation","downdiagonalstrike");break;case"\\sout":p.setAttribute("notation","horizontalstrike");break;case"\\fbox":p.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(d=c.fontMetrics().fboxsep*c.fontMetrics().ptPerEm,p.setAttribute("width","+"+2*d+"pt"),p.setAttribute("height","+"+2*d+"pt"),p.setAttribute("lspace",d+"pt"),p.setAttribute("voffset",d+"pt"),l.label==="\\fcolorbox"){var C=Math.max(c.fontMetrics().fboxrule,c.minRuleThickness);p.setAttribute("style","border: "+C+"em solid "+String(l.borderColor))}break;case"\\xcancel":p.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return l.backgroundColor&&p.setAttribute("mathbackground",l.backgroundColor),p};Vt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(l,c,d){var p=l.parser,C=l.funcName,k=ar(c[0],"color-token").color,fe=c[1];return{type:"enclose",mode:p.mode,label:C,backgroundColor:k,body:fe}},htmlBuilder:us,mathmlBuilder:bs}),Vt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(l,c,d){var p=l.parser,C=l.funcName,k=ar(c[0],"color-token").color,fe=ar(c[1],"color-token").color,ye=c[2];return{type:"enclose",mode:p.mode,label:C,backgroundColor:fe,borderColor:k,body:ye}},htmlBuilder:us,mathmlBuilder:bs}),Vt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(l,c){var d=l.parser;return{type:"enclose",mode:d.mode,label:"\\fbox",body:c[0]}}}),Vt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(l,c,d){var p=l.parser,C=l.funcName,k=c[0];return{type:"enclose",mode:p.mode,label:C,body:k}},htmlBuilder:us,mathmlBuilder:bs});var ks={};function bi(O){for(var l=O.type,c=O.names,d=O.props,p=O.handler,C=O.htmlBuilder,k=O.mathmlBuilder,fe={type:l,numArgs:d.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:p},ye=0;ye<c.length;++ye)ks[c[ye]]=fe;C&&($n[l]=C),k&&(Zn[l]=k)}function xs(O){var l=[];O.consumeSpaces();for(var c=O.fetch().text;c==="\\hline"||c==="\\hdashline";)O.consume(),l.push(c==="\\hdashline"),O.consumeSpaces(),c=O.fetch().text;return l}function tn(O,l,c){var d=l.hskipBeforeAndAfter,p=l.addJot,C=l.cols,k=l.arraystretch,fe=l.colSeparationType;if(O.gullet.beginGroup(),O.gullet.macros.set("\\\\","\\cr"),!k){var ye=O.gullet.expandMacroAsText("\\arraystretch");if(ye==null)k=1;else if(k=parseFloat(ye),!k||k<0)throw new Z("Invalid \\arraystretch: "+ye)}O.gullet.beginGroup();var Me=[],Ze=[Me],at=[],ft=[];for(ft.push(xs(O));;){var Rt=O.parseExpression(!1,"\\cr");O.gullet.endGroup(),O.gullet.beginGroup(),Rt={type:"ordgroup",mode:O.mode,body:Rt},c&&(Rt={type:"styling",mode:O.mode,style:c,body:[Rt]}),Me.push(Rt);var Bt=O.fetch().text;if(Bt==="&")O.consume();else if(Bt==="\\end"){Me.length===1&&Rt.type==="styling"&&Rt.body[0].body.length===0&&Ze.pop(),ft.length<Ze.length+1&&ft.push([]);break}else if(Bt==="\\cr"){var Wt=ar(O.parseFunction(),"cr");at.push(Wt.size),ft.push(xs(O)),Me=[],Ze.push(Me)}else throw new Z("Expected & or \\\\ or \\cr or \\end",O.nextToken)}return O.gullet.endGroup(),O.gullet.endGroup(),{type:"array",mode:O.mode,addJot:p,arraystretch:k,body:Ze,cols:C,rowGaps:at,hskipBeforeAndAfter:d,hLinesBeforeRow:ft,colSeparationType:fe}}function Xr(O){return O.substr(0,1)==="d"?"display":"text"}var Vr=function(l,c){var d,p,C=l.body.length,k=l.hLinesBeforeRow,fe=0,ye=new Array(C),Me=[],Ze=Math.max(c.fontMetrics().arrayRuleWidth,c.minRuleThickness),at=1/c.fontMetrics().ptPerEm,ft=5*at;if(l.colSeparationType&&l.colSeparationType==="small"){var Rt=c.havingStyle(g.SCRIPT).sizeMultiplier;ft=.2778*(Rt/c.sizeMultiplier)}var Bt=12*at,Wt=3*at,or=l.arraystretch*Bt,xr=.7*or,Er=.3*or,wr=0;function hn(va){for(var rs=0;rs<va.length;++rs)rs>0&&(wr+=.25),Me.push({pos:wr,isDashed:va[rs]})}for(hn(k[0]),d=0;d<l.body.length;++d){var dn=l.body[d],Tn=xr,Dn=Er;fe<dn.length&&(fe=dn.length);var Nn=new Array(dn.length);for(p=0;p<dn.length;++p){var si=Lr(dn[p],c);Dn<si.depth&&(Dn=si.depth),Tn<si.height&&(Tn=si.height),Nn[p]=si}var ti=l.rowGaps[d],on=0;ti&&(on=Xe(ti,c),on>0&&(on+=Er,Dn<on&&(Dn=on),on=0)),l.addJot&&(Dn+=Wt),Nn.height=Tn,Nn.depth=Dn,wr+=Tn,Nn.pos=wr,wr+=Dn+on,ye[d]=Nn,hn(k[d+1])}var Ci=wr/2+c.fontMetrics().axisHeight,$i=l.cols||[],Ii=[],ai,Gi;for(p=0,Gi=0;p<fe||Gi<$i.length;++p,++Gi){for(var Vn=$i[Gi]||{},Oi=!0;Vn.type==="separator";){if(Oi||(ai=He.makeSpan(["arraycolsep"],[]),ai.style.width=c.fontMetrics().doubleRuleSep+"em",Ii.push(ai)),Vn.separator==="|"||Vn.separator===":"){var to=Vn.separator==="|"?"solid":"dashed",ps=He.makeSpan(["vertical-separator"],[],c);ps.style.height=wr+"em",ps.style.borderRightWidth=Ze+"em",ps.style.borderRightStyle=to,ps.style.margin="0 -"+Ze/2+"em",ps.style.verticalAlign=-(wr-Ci)+"em",Ii.push(ps)}else throw new Z("Invalid separator type: "+Vn.separator);Gi++,Vn=$i[Gi]||{},Oi=!1}if(!(p>=fe)){var ms=void 0;(p>0||l.hskipBeforeAndAfter)&&(ms=L.deflt(Vn.pregap,ft),ms!==0&&(ai=He.makeSpan(["arraycolsep"],[]),ai.style.width=ms+"em",Ii.push(ai)));var gs=[];for(d=0;d<C;++d){var Ws=ye[d],Vs=Ws[p];if(Vs){var ts=Ws.pos-Ci;Vs.depth=Ws.depth,Vs.height=Ws.height,gs.push({type:"elem",elem:Vs,shift:ts})}}gs=He.makeVList({positionType:"individualShift",children:gs},c),gs=He.makeSpan(["col-align-"+(Vn.align||"c")],[gs]),Ii.push(gs),(p<fe-1||l.hskipBeforeAndAfter)&&(ms=L.deflt(Vn.postgap,ft),ms!==0&&(ai=He.makeSpan(["arraycolsep"],[]),ai.style.width=ms+"em",Ii.push(ai)))}}if(ye=He.makeSpan(["mtable"],Ii),Me.length>0){for(var Ba=He.makeLineSpan("hline",c,Ze),ro=He.makeLineSpan("hdashline",c,Ze),ma=[{type:"elem",elem:ye,shift:0}];Me.length>0;){var Zs=Me.pop(),ga=Zs.pos-Ci;Zs.isDashed?ma.push({type:"elem",elem:ro,shift:ga}):ma.push({type:"elem",elem:Ba,shift:ga})}ye=He.makeVList({positionType:"individualShift",children:ma},c)}return He.makeSpan(["mord"],[ye],c)},On={c:"center ",l:"left ",r:"right "},Bn=function(l,c){var d=new Mt.MathNode("mtable",l.body.map(function(wr){return new Mt.MathNode("mtr",wr.map(function(hn){return new Mt.MathNode("mtd",[Mr(hn,c)])}))})),p=l.arraystretch===.5?.1:.16+l.arraystretch-1+(l.addJot?.09:0);d.setAttribute("rowspacing",p+"em");var C="",k="";if(l.cols){var fe=l.cols,ye="",Me=!1,Ze=0,at=fe.length;fe[0].type==="separator"&&(C+="top ",Ze=1),fe[fe.length-1].type==="separator"&&(C+="bottom ",at-=1);for(var ft=Ze;ft<at;ft++)fe[ft].type==="align"?(k+=On[fe[ft].align],Me&&(ye+="none "),Me=!0):fe[ft].type==="separator"&&Me&&(ye+=fe[ft].separator==="|"?"solid ":"dashed ",Me=!1);d.setAttribute("columnalign",k.trim()),/[sd]/.test(ye)&&d.setAttribute("columnlines",ye.trim())}if(l.colSeparationType==="align"){for(var Rt=l.cols||[],Bt="",Wt=1;Wt<Rt.length;Wt++)Bt+=Wt%2?"0em ":"1em ";d.setAttribute("columnspacing",Bt.trim())}else l.colSeparationType==="alignat"?d.setAttribute("columnspacing","0em"):l.colSeparationType==="small"?d.setAttribute("columnspacing","0.2778em"):d.setAttribute("columnspacing","1em");var or="",xr=l.hLinesBeforeRow;C+=xr[0].length>0?"left ":"",C+=xr[xr.length-1].length>0?"right ":"";for(var Er=1;Er<xr.length-1;Er++)or+=xr[Er].length===0?"none ":xr[Er][0]?"dashed ":"solid ";return/[sd]/.test(or)&&d.setAttribute("rowlines",or.trim()),C!==""&&(d=new Mt.MathNode("menclose",[d]),d.setAttribute("notation",C.trim())),l.arraystretch&&l.arraystretch<1&&(d=new Mt.MathNode("mstyle",[d]),d.setAttribute("scriptlevel","1")),d},Ji=function(l,c){var d=[],p=tn(l.parser,{cols:d,addJot:!0},"display"),C,k=0,fe={type:"ordgroup",mode:l.mode,body:[]},ye=br(c[0],"ordgroup");if(ye){for(var Me="",Ze=0;Ze<ye.body.length;Ze++){var at=ar(ye.body[Ze],"textord");Me+=at.text}C=Number(Me),k=C*2}var ft=!k;p.body.forEach(function(or){for(var xr=1;xr<or.length;xr+=2){var Er=ar(or[xr],"styling"),wr=ar(Er.body[0],"ordgroup");wr.body.unshift(fe)}if(ft)k<or.length&&(k=or.length);else{var hn=or.length/2;if(C<hn)throw new Z("Too many math in a row: "+("expected "+C+", but got "+hn),or[0])}});for(var Rt=0;Rt<k;++Rt){var Bt="r",Wt=0;Rt%2===1?Bt="l":Rt>0&&ft&&(Wt=1),d[Rt]={type:"align",align:Bt,pregap:Wt,postgap:0}}return p.colSeparationType=ft?"align":"alignat",p};bi({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(l,c){var d=En(c[0]),p=d?[c[0]]:ar(c[0],"ordgroup").body,C=p.map(function(fe){var ye=Mn(fe),Me=ye.text;if("lcr".indexOf(Me)!==-1)return{type:"align",align:Me};if(Me==="|")return{type:"separator",separator:"|"};if(Me===":")return{type:"separator",separator:":"};throw new Z("Unknown column alignment: "+Me,fe)}),k={cols:C,hskipBeforeAndAfter:!0};return tn(l.parser,k,Xr(l.envName))},htmlBuilder:Vr,mathmlBuilder:Bn}),bi({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(l){var c={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[l.envName],d={hskipBeforeAndAfter:!1},p=tn(l.parser,d,Xr(l.envName));return c?{type:"leftright",mode:l.mode,body:[p],left:c[0],right:c[1],rightColor:void 0}:p},htmlBuilder:Vr,mathmlBuilder:Bn}),bi({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(l){var c={arraystretch:.5},d=tn(l.parser,c,"script");return d.colSeparationType="small",d},htmlBuilder:Vr,mathmlBuilder:Bn}),bi({type:"array",names:["subarray"],props:{numArgs:1},handler:function(l,c){var d=En(c[0]),p=d?[c[0]]:ar(c[0],"ordgroup").body,C=p.map(function(fe){var ye=Mn(fe),Me=ye.text;if("lc".indexOf(Me)!==-1)return{type:"align",align:Me};throw new Z("Unknown column alignment: "+Me,fe)});if(C.length>1)throw new Z("{subarray} can contain only one column");var k={cols:C,hskipBeforeAndAfter:!1,arraystretch:.5};if(k=tn(l.parser,k,"script"),k.body[0].length>1)throw new Z("{subarray} can contain only one column");return k},htmlBuilder:Vr,mathmlBuilder:Bn}),bi({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(l){var c={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},d=tn(l.parser,c,Xr(l.envName));return{type:"leftright",mode:l.mode,body:[d],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:Vr,mathmlBuilder:Bn}),bi({type:"array",names:["aligned"],props:{numArgs:0},handler:Ji,htmlBuilder:Vr,mathmlBuilder:Bn}),bi({type:"array",names:["gathered"],props:{numArgs:0},handler:function(l){var c={cols:[{type:"align",align:"c"}],addJot:!0};return tn(l.parser,c,"display")},htmlBuilder:Vr,mathmlBuilder:Bn}),bi({type:"array",names:["alignedat"],props:{numArgs:1},handler:Ji,htmlBuilder:Vr,mathmlBuilder:Bn}),Vt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(l,c){throw new Z(l.funcName+" valid only within array environment")}});var ws=ks,Os=ws;Vt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(l,c){var d=l.parser,p=l.funcName,C=c[0];if(C.type!=="ordgroup")throw new Z("Invalid environment name",C);for(var k="",fe=0;fe<C.body.length;++fe)k+=ar(C.body[fe],"textord").text;if(p==="\\begin"){if(!Os.hasOwnProperty(k))throw new Z("No such environment: "+k,C);var ye=Os[k],Me=d.parseArguments("\\begin{"+k+"}",ye),Ze=Me.args,at=Me.optArgs,ft={mode:d.mode,envName:k,parser:d},Rt=ye.handler(ft,Ze,at);d.expect("\\end",!1);var Bt=d.nextToken,Wt=ar(d.parseFunction(),"environment");if(Wt.name!==k)throw new Z("Mismatch: \\begin{"+k+"} matched by \\end{"+Wt.name+"}",Bt);return Rt}return{type:"environment",mode:d.mode,name:k,nameGroup:C}}});var Ps=He.makeSpan;function Qi(O,l){var c=en(O.body,l,!0);return Ps([O.mclass],c,l)}function Wi(O,l){var c,d=Ln(O.body,l);return O.mclass==="minner"?Mt.newDocumentFragment(d):(O.mclass==="mord"?O.isCharacterBox?(c=d[0],c.type="mi"):c=new Mt.MathNode("mi",d):(O.isCharacterBox?(c=d[0],c.type="mo"):c=new Mt.MathNode("mo",d),O.mclass==="mbin"?(c.attributes.lspace="0.22em",c.attributes.rspace="0.22em"):O.mclass==="mpunct"?(c.attributes.lspace="0em",c.attributes.rspace="0.17em"):(O.mclass==="mopen"||O.mclass==="mclose")&&(c.attributes.lspace="0em",c.attributes.rspace="0em")),c)}Vt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(l,c){var d=l.parser,p=l.funcName,C=c[0];return{type:"mclass",mode:d.mode,mclass:"m"+p.substr(5),body:Wr(C),isCharacterBox:L.isCharacterBox(C)}},htmlBuilder:Qi,mathmlBuilder:Wi});var Dt=function(l){var c=l.type==="ordgroup"&&l.body.length?l.body[0]:l;return c.type==="atom"&&(c.family==="bin"||c.family==="rel")?"m"+c.family:"mord"};Vt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(l,c){var d=l.parser;return{type:"mclass",mode:d.mode,mclass:Dt(c[0]),body:[c[1]],isCharacterBox:L.isCharacterBox(c[1])}}}),Vt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(l,c){var d=l.parser,p=l.funcName,C=c[1],k=c[0],fe;p!=="\\stackrel"?fe=Dt(C):fe="mrel";var ye={type:"op",mode:C.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:p!=="\\stackrel",body:Wr(C)},Me={type:"supsub",mode:k.mode,base:ye,sup:p==="\\underset"?null:k,sub:p==="\\underset"?k:null};return{type:"mclass",mode:d.mode,mclass:fe,body:[Me],isCharacterBox:L.isCharacterBox(Me)}},htmlBuilder:Qi,mathmlBuilder:Wi});var cs=function(l,c){var d=l.font,p=c.withFont(d);return Lr(l.body,p)},ta=function(l,c){var d=l.font,p=c.withFont(d);return Mr(l.body,p)},ya={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Vt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(l,c){var d=l.parser,p=l.funcName,C=c[0],k=p;return k in ya&&(k=ya[k]),{type:"font",mode:d.mode,font:k.slice(1),body:C}},htmlBuilder:cs,mathmlBuilder:ta}),Vt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(l,c){var d=l.parser,p=c[0],C=L.isCharacterBox(p);return{type:"mclass",mode:d.mode,mclass:Dt(p),body:[{type:"font",mode:d.mode,font:"boldsymbol",body:p}],isCharacterBox:C}}}),Vt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(l,c){var d=l.parser,p=l.funcName,C=l.breakOnTokenText,k=d.mode,fe=d.parseExpression(!0,C),ye="math"+p.slice(1);return{type:"font",mode:k,font:ye,body:{type:"ordgroup",mode:d.mode,body:fe}}},htmlBuilder:cs,mathmlBuilder:ta});var ba=function(l,c){var d=c;return l==="display"?d=d.id>=g.SCRIPT.id?d.text():g.DISPLAY:l==="text"&&d.size===g.DISPLAY.size?d=g.TEXT:l==="script"?d=g.SCRIPT:l==="scriptscript"&&(d=g.SCRIPTSCRIPT),d},ra=function(l,c){var d=ba(l.size,c.style),p=d.fracNum(),C=d.fracDen(),k;k=c.havingStyle(p);var fe=Lr(l.numer,k,c);if(l.continued){var ye=8.5/c.fontMetrics().ptPerEm,Me=3.5/c.fontMetrics().ptPerEm;fe.height=fe.height<ye?ye:fe.height,fe.depth=fe.depth<Me?Me:fe.depth}k=c.havingStyle(C);var Ze=Lr(l.denom,k,c),at,ft,Rt;l.hasBarLine?(l.barSize?(ft=Xe(l.barSize,c),at=He.makeLineSpan("frac-line",c,ft)):at=He.makeLineSpan("frac-line",c),ft=at.height,Rt=at.height):(at=null,ft=0,Rt=c.fontMetrics().defaultRuleThickness);var Bt,Wt,or;d.size===g.DISPLAY.size||l.size==="display"?(Bt=c.fontMetrics().num1,ft>0?Wt=3*Rt:Wt=7*Rt,or=c.fontMetrics().denom1):(ft>0?(Bt=c.fontMetrics().num2,Wt=Rt):(Bt=c.fontMetrics().num3,Wt=3*Rt),or=c.fontMetrics().denom2);var xr;if(at){var wr=c.fontMetrics().axisHeight;Bt-fe.depth-(wr+.5*ft)<Wt&&(Bt+=Wt-(Bt-fe.depth-(wr+.5*ft))),wr-.5*ft-(Ze.height-or)<Wt&&(or+=Wt-(wr-.5*ft-(Ze.height-or)));var hn=-(wr-.5*ft);xr=He.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Ze,shift:or},{type:"elem",elem:at,shift:hn},{type:"elem",elem:fe,shift:-Bt}]},c)}else{var Er=Bt-fe.depth-(Ze.height-or);Er<Wt&&(Bt+=.5*(Wt-Er),or+=.5*(Wt-Er)),xr=He.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Ze,shift:or},{type:"elem",elem:fe,shift:-Bt}]},c)}k=c.havingStyle(d),xr.height*=k.sizeMultiplier/c.sizeMultiplier,xr.depth*=k.sizeMultiplier/c.sizeMultiplier;var dn;d.size===g.DISPLAY.size?dn=c.fontMetrics().delim1:dn=c.fontMetrics().delim2;var Tn,Dn;return l.leftDelim==null?Tn=Xn(c,["mopen"]):Tn=ii.customSizedDelim(l.leftDelim,dn,!0,c.havingStyle(d),l.mode,["mopen"]),l.continued?Dn=He.makeSpan([]):l.rightDelim==null?Dn=Xn(c,["mclose"]):Dn=ii.customSizedDelim(l.rightDelim,dn,!0,c.havingStyle(d),l.mode,["mclose"]),He.makeSpan(["mord"].concat(k.sizingClasses(c)),[Tn,He.makeSpan(["mfrac"],[xr]),Dn],c)},na=function(l,c){var d=new Mt.MathNode("mfrac",[Mr(l.numer,c),Mr(l.denom,c)]);if(!l.hasBarLine)d.setAttribute("linethickness","0px");else if(l.barSize){var p=Xe(l.barSize,c);d.setAttribute("linethickness",p+"em")}var C=ba(l.size,c.style);if(C.size!==c.style.size){d=new Mt.MathNode("mstyle",[d]);var k=C.size===g.DISPLAY.size?"true":"false";d.setAttribute("displaystyle",k),d.setAttribute("scriptlevel","0")}if(l.leftDelim!=null||l.rightDelim!=null){var fe=[];if(l.leftDelim!=null){var ye=new Mt.MathNode("mo",[new Mt.TextNode(l.leftDelim.replace("\\",""))]);ye.setAttribute("fence","true"),fe.push(ye)}if(fe.push(d),l.rightDelim!=null){var Me=new Mt.MathNode("mo",[new Mt.TextNode(l.rightDelim.replace("\\",""))]);Me.setAttribute("fence","true"),fe.push(Me)}return pi(fe)}return d};Vt({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(l,c){var d=l.parser,p=l.funcName,C=c[0],k=c[1],fe,ye=null,Me=null,Ze="auto";switch(p){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":fe=!0;break;case"\\\\atopfrac":fe=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":fe=!1,ye="(",Me=")";break;case"\\\\bracefrac":fe=!1,ye="\\{",Me="\\}";break;case"\\\\brackfrac":fe=!1,ye="[",Me="]";break;default:throw new Error("Unrecognized genfrac command")}switch(p){case"\\cfrac":case"\\dfrac":case"\\dbinom":Ze="display";break;case"\\tfrac":case"\\tbinom":Ze="text";break}return{type:"genfrac",mode:d.mode,continued:p==="\\cfrac",numer:C,denom:k,hasBarLine:fe,leftDelim:ye,rightDelim:Me,size:Ze,barSize:null}},htmlBuilder:ra,mathmlBuilder:na}),Vt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(l){var c=l.parser,d=l.funcName,p=l.token,C;switch(d){case"\\over":C="\\frac";break;case"\\choose":C="\\binom";break;case"\\atop":C="\\\\atopfrac";break;case"\\brace":C="\\\\bracefrac";break;case"\\brack":C="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:c.mode,replaceWith:C,token:p}}});var Ri=["display","text","script","scriptscript"],Ms=function(l){var c=null;return l.length>0&&(c=l,c=c==="."?null:c),c};Vt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(l,c){var d=l.parser,p=c[4],C=c[5],k=br(c[0],"atom");k&&(k=fn(c[0],"open"));var fe=k?Ms(k.text):null,ye=br(c[1],"atom");ye&&(ye=fn(c[1],"close"));var Me=ye?Ms(ye.text):null,Ze=ar(c[2],"size"),at,ft=null;Ze.isBlank?at=!0:(ft=Ze.value,at=ft.number>0);var Rt="auto",Bt=br(c[3],"ordgroup");if(Bt){if(Bt.body.length>0){var Wt=ar(Bt.body[0],"textord");Rt=Ri[Number(Wt.text)]}}else Bt=ar(c[3],"textord"),Rt=Ri[Number(Bt.text)];return{type:"genfrac",mode:d.mode,numer:p,denom:C,continued:!1,hasBarLine:at,barSize:ft,leftDelim:fe,rightDelim:Me,size:Rt}},htmlBuilder:ra,mathmlBuilder:na}),Vt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(l,c){var d=l.parser,p=l.funcName,C=l.token;return{type:"infix",mode:d.mode,replaceWith:"\\\\abovefrac",size:ar(c[0],"size").value,token:C}}}),Vt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(l,c){var d=l.parser,p=l.funcName,C=c[0],k=Y(ar(c[1],"infix").size),fe=c[2],ye=k.number>0;return{type:"genfrac",mode:d.mode,numer:C,denom:fe,continued:!1,hasBarLine:ye,barSize:k,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:ra,mathmlBuilder:na});var xa=function(l,c){var d=c.style,p,C,k=br(l,"supsub");k?(p=k.sup?Lr(k.sup,c.havingStyle(d.sup()),c):Lr(k.sub,c.havingStyle(d.sub()),c),C=ar(k.base,"horizBrace")):C=ar(l,"horizBrace");var fe=Lr(C.base,c.havingBaseStyle(g.DISPLAY)),ye=Yt.svgSpan(C,c),Me;if(C.isOver?(Me=He.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:fe},{type:"kern",size:.1},{type:"elem",elem:ye}]},c),Me.children[0].children[0].children[1].classes.push("svg-align")):(Me=He.makeVList({positionType:"bottom",positionData:fe.depth+.1+ye.height,children:[{type:"elem",elem:ye},{type:"kern",size:.1},{type:"elem",elem:fe}]},c),Me.children[0].children[0].children[0].classes.push("svg-align")),p){var Ze=He.makeSpan(["mord",C.isOver?"mover":"munder"],[Me],c);C.isOver?Me=He.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ze},{type:"kern",size:.2},{type:"elem",elem:p}]},c):Me=He.makeVList({positionType:"bottom",positionData:Ze.depth+.2+p.height+p.depth,children:[{type:"elem",elem:p},{type:"kern",size:.2},{type:"elem",elem:Ze}]},c)}return He.makeSpan(["mord",C.isOver?"mover":"munder"],[Me],c)},Ha=function(l,c){var d=Yt.mathMLnode(l.label);return new Mt.MathNode(l.isOver?"mover":"munder",[Mr(l.base,c),d])};Vt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(l,c){var d=l.parser,p=l.funcName;return{type:"horizBrace",mode:d.mode,label:p,isOver:/^\\over/.test(p),base:c[0]}},htmlBuilder:xa,mathmlBuilder:Ha}),Vt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(l,c){var d=l.parser,p=c[1],C=ar(c[0],"url").url;return d.settings.isTrusted({command:"\\href",url:C})?{type:"href",mode:d.mode,href:C,body:Wr(p)}:d.formatUnsupportedCmd("\\href")},htmlBuilder:function(l,c){var d=en(l.body,c,!1);return He.makeAnchor(l.href,[],d,c)},mathmlBuilder:function(l,c){var d=vn(l.body,c);return d instanceof gn||(d=new gn("mrow",[d])),d.setAttribute("href",l.href),d}}),Vt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(l,c){var d=l.parser,p=ar(c[0],"url").url;if(!d.settings.isTrusted({command:"\\url",url:p}))return d.formatUnsupportedCmd("\\url");for(var C=[],k=0;k<p.length;k++){var fe=p[k];fe==="~"&&(fe="\\textasciitilde"),C.push({type:"textord",mode:"text",text:fe})}var ye={type:"text",mode:d.mode,font:"\\texttt",body:C};return{type:"href",mode:d.mode,href:p,body:Wr(ye)}}}),Vt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(l,c){var d=l.parser;return{type:"htmlmathml",mode:d.mode,html:Wr(c[0]),mathml:Wr(c[1])}},htmlBuilder:function(l,c){var d=en(l.html,c,!1);return He.makeFragment(d)},mathmlBuilder:function(l,c){return vn(l.mathml,c)}});var Bs=function(l){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(l))return{number:+l,unit:"bp"};var c=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(l);if(!c)throw new Z("Invalid size: '"+l+"' in \\includegraphics");var d={number:+(c[1]+c[2]),unit:c[3]};if(!tt(d))throw new Z("Invalid unit: '"+d.unit+"' in \\includegraphics.");return d};Vt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(l,c,d){var p=l.parser,C={number:0,unit:"em"},k={number:.9,unit:"em"},fe={number:0,unit:"em"},ye="";if(d[0])for(var Me=ar(d[0],"raw").string,Ze=Me.split(","),at=0;at<Ze.length;at++){var ft=Ze[at].split("=");if(ft.length===2){var Rt=ft[1].trim();switch(ft[0].trim()){case"alt":ye=Rt;break;case"width":C=Bs(Rt);break;case"height":k=Bs(Rt);break;case"totalheight":fe=Bs(Rt);break;default:throw new Z("Invalid key: '"+ft[0]+"' in \\includegraphics.")}}}var Bt=ar(c[0],"url").url;return ye===""&&(ye=Bt,ye=ye.replace(/^.*[\\/]/,""),ye=ye.substring(0,ye.lastIndexOf("."))),p.settings.isTrusted({command:"\\includegraphics",url:Bt})?{type:"includegraphics",mode:p.mode,alt:ye,width:C,height:k,totalheight:fe,src:Bt}:p.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(l,c){var d=Xe(l.height,c),p=0;l.totalheight.number>0&&(p=Xe(l.totalheight,c)-d,p=Number(p.toFixed(2)));var C=0;l.width.number>0&&(C=Xe(l.width,c));var k={height:d+p+"em"};C>0&&(k.width=C+"em"),p>0&&(k.verticalAlign=-p+"em");var fe=new Pe(l.src,l.alt,k);return fe.height=d,fe.depth=p,fe},mathmlBuilder:function(l,c){var d=new Mt.MathNode("mglyph",[]);d.setAttribute("alt",l.alt);var p=Xe(l.height,c),C=0;if(l.totalheight.number>0&&(C=Xe(l.totalheight,c)-p,C=C.toFixed(2),d.setAttribute("valign","-"+C+"em")),d.setAttribute("height",p+C+"em"),l.width.number>0){var k=Xe(l.width,c);d.setAttribute("width",k+"em")}return d.setAttribute("src",l.src),d}}),Vt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(l,c){var d=l.parser,p=l.funcName,C=ar(c[0],"size");if(d.settings.strict){var k=p[1]==="m",fe=C.value.unit==="mu";k?(fe||d.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+p+" supports only mu units, "+("not "+C.value.unit+" units")),d.mode!=="math"&&d.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+p+" works only in math mode")):fe&&d.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+p+" doesn't support mu units")}return{type:"kern",mode:d.mode,dimension:C.value}},htmlBuilder:function(l,c){return He.makeGlue(l.dimension,c)},mathmlBuilder:function(l,c){var d=Xe(l.dimension,c);return new Mt.SpaceNode(d)}}),Vt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(l,c){var d=l.parser,p=l.funcName,C=c[0];return{type:"lap",mode:d.mode,alignment:p.slice(5),body:C}},htmlBuilder:function(l,c){var d;l.alignment==="clap"?(d=He.makeSpan([],[Lr(l.body,c)]),d=He.makeSpan(["inner"],[d],c)):d=He.makeSpan(["inner"],[Lr(l.body,c)]);var p=He.makeSpan(["fix"],[]),C=He.makeSpan([l.alignment],[d,p],c),k=He.makeSpan(["strut"]);return k.style.height=C.height+C.depth+"em",k.style.verticalAlign=-C.depth+"em",C.children.unshift(k),C=He.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:C}]},c),He.makeSpan(["mord"],[C],c)},mathmlBuilder:function(l,c){var d=new Mt.MathNode("mpadded",[Mr(l.body,c)]);if(l.alignment!=="rlap"){var p=l.alignment==="llap"?"-1":"-0.5";d.setAttribute("lspace",p+"width")}return d.setAttribute("width","0px"),d}}),Vt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(l,c){var d=l.funcName,p=l.parser,C=p.mode;p.switchMode("math");var k=d==="\\("?"\\)":"$",fe=p.parseExpression(!1,k);return p.expect(k),p.switchMode(C),{type:"styling",mode:p.mode,style:"text",body:fe}}}),Vt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(l,c){throw new Z("Mismatched "+l.funcName)}});var ia=function(l,c){switch(c.style.size){case g.DISPLAY.size:return l.display;case g.TEXT.size:return l.text;case g.SCRIPT.size:return l.script;case g.SCRIPTSCRIPT.size:return l.scriptscript;default:return l.text}};Vt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(l,c){var d=l.parser;return{type:"mathchoice",mode:d.mode,display:Wr(c[0]),text:Wr(c[1]),script:Wr(c[2]),scriptscript:Wr(c[3])}},htmlBuilder:function(l,c){var d=ia(l,c),p=en(d,c,!1);return He.makeFragment(p)},mathmlBuilder:function(l,c){var d=ia(l,c);return vn(d,c)}});var Ns=function(l,c,d,p,C,k,fe){l=He.makeSpan([],[l]);var ye,Me;if(c){var Ze=Lr(c,p.havingStyle(C.sup()),p);Me={elem:Ze,kern:Math.max(p.fontMetrics().bigOpSpacing1,p.fontMetrics().bigOpSpacing3-Ze.depth)}}if(d){var at=Lr(d,p.havingStyle(C.sub()),p);ye={elem:at,kern:Math.max(p.fontMetrics().bigOpSpacing2,p.fontMetrics().bigOpSpacing4-at.height)}}var ft;if(Me&&ye){var Rt=p.fontMetrics().bigOpSpacing5+ye.elem.height+ye.elem.depth+ye.kern+l.depth+fe;ft=He.makeVList({positionType:"bottom",positionData:Rt,children:[{type:"kern",size:p.fontMetrics().bigOpSpacing5},{type:"elem",elem:ye.elem,marginLeft:-k+"em"},{type:"kern",size:ye.kern},{type:"elem",elem:l},{type:"kern",size:Me.kern},{type:"elem",elem:Me.elem,marginLeft:k+"em"},{type:"kern",size:p.fontMetrics().bigOpSpacing5}]},p)}else if(ye){var Bt=l.height-fe;ft=He.makeVList({positionType:"top",positionData:Bt,children:[{type:"kern",size:p.fontMetrics().bigOpSpacing5},{type:"elem",elem:ye.elem,marginLeft:-k+"em"},{type:"kern",size:ye.kern},{type:"elem",elem:l}]},p)}else if(Me){var Wt=l.depth+fe;ft=He.makeVList({positionType:"bottom",positionData:Wt,children:[{type:"elem",elem:l},{type:"kern",size:Me.kern},{type:"elem",elem:Me.elem,marginLeft:k+"em"},{type:"kern",size:p.fontMetrics().bigOpSpacing5}]},p)}else return l;return He.makeSpan(["mop","op-limits"],[ft],p)},wa=["\\smallint"],zi=function(l,c){var d,p,C=!1,k,fe=br(l,"supsub");fe?(d=fe.sup,p=fe.sub,k=ar(fe.base,"op"),C=!0):k=ar(l,"op");var ye=c.style,Me=!1;ye.size===g.DISPLAY.size&&k.symbol&&!L.contains(wa,k.name)&&(Me=!0);var Ze;if(k.symbol){var at=Me?"Size2-Regular":"Size1-Regular",ft="";if((k.name==="\\oiint"||k.name==="\\oiiint")&&(ft=k.name.substr(1),k.name=ft==="oiint"?"\\iint":"\\iiint"),Ze=He.makeSymbol(k.name,at,"math",c,["mop","op-symbol",Me?"large-op":"small-op"]),ft.length>0){var Rt=Ze.italic,Bt=He.staticSvg(ft+"Size"+(Me?"2":"1"),c);Ze=He.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Ze,shift:0},{type:"elem",elem:Bt,shift:Me?.08:0}]},c),k.name="\\"+ft,Ze.classes.unshift("mop"),Ze.italic=Rt}}else if(k.body){var Wt=en(k.body,c,!0);Wt.length===1&&Wt[0]instanceof se?(Ze=Wt[0],Ze.classes[0]="mop"):Ze=He.makeSpan(["mop"],He.tryCombineChars(Wt),c)}else{for(var or=[],xr=1;xr<k.name.length;xr++)or.push(He.mathsym(k.name[xr],k.mode,c));Ze=He.makeSpan(["mop"],or,c)}var Er=0,wr=0;return(Ze instanceof se||k.name==="\\oiint"||k.name==="\\oiiint")&&!k.suppressBaseShift&&(Er=(Ze.height-Ze.depth)/2-c.fontMetrics().axisHeight,wr=Ze.italic),C?Ns(Ze,d,p,c,ye,wr,Er):(Er&&(Ze.style.position="relative",Ze.style.top=Er+"em"),Ze)},Es=function(l,c){var d;if(l.symbol)d=new gn("mo",[jn(l.name,l.mode)]),L.contains(wa,l.name)&&d.setAttribute("largeop","false");else if(l.body)d=new gn("mo",Ln(l.body,c));else{d=new gn("mi",[new _i(l.name.slice(1))]);var p=new gn("mo",[jn("\u2061","text")]);l.parentIsSupSub?d=new gn("mo",[d,p]):d=wi([d,p])}return d},ja={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};Vt({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(l,c){var d=l.parser,p=l.funcName,C=p;return C.length===1&&(C=ja[C]),{type:"op",mode:d.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:C}},htmlBuilder:zi,mathmlBuilder:Es}),Vt({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(l,c){var d=l.parser,p=c[0];return{type:"op",mode:d.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Wr(p)}},htmlBuilder:zi,mathmlBuilder:Es});var Ea={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};Vt({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(l){var c=l.parser,d=l.funcName;return{type:"op",mode:c.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:d}},htmlBuilder:zi,mathmlBuilder:Es}),Vt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(l){var c=l.parser,d=l.funcName;return{type:"op",mode:c.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:d}},htmlBuilder:zi,mathmlBuilder:Es}),Vt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(l){var c=l.parser,d=l.funcName,p=d;return p.length===1&&(p=Ea[p]),{type:"op",mode:c.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:p}},htmlBuilder:zi,mathmlBuilder:Es});var sa=function(l,c){var d,p,C=!1,k,fe=br(l,"supsub");fe?(d=fe.sup,p=fe.sub,k=ar(fe.base,"operatorname"),C=!0):k=ar(l,"operatorname");var ye;if(k.body.length>0){for(var Me=k.body.map(function(Rt){var Bt=Rt.text;return typeof Bt=="string"?{type:"textord",mode:Rt.mode,text:Bt}:Rt}),Ze=en(Me,c.withFont("mathrm"),!0),at=0;at<Ze.length;at++){var ft=Ze[at];ft instanceof se&&(ft.text=ft.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}ye=He.makeSpan(["mop"],Ze,c)}else ye=He.makeSpan(["mop"],[],c);return C?Ns(ye,d,p,c,c.style,0,0):ye},Ka=function(l,c){for(var d=Ln(l.body,c.withFont("mathrm")),p=!0,C=0;C<d.length;C++){var k=d[C];if(!(k instanceof Mt.SpaceNode))if(k instanceof Mt.MathNode)switch(k.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var fe=k.children[0];k.children.length===1&&fe instanceof Mt.TextNode?fe.text=fe.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):p=!1;break}default:p=!1}else p=!1}if(p){var ye=d.map(function(at){return at.toText()}).join("");d=[new Mt.TextNode(ye)]}var Me=new Mt.MathNode("mi",d);Me.setAttribute("mathvariant","normal");var Ze=new Mt.MathNode("mo",[jn("\u2061","text")]);return l.parentIsSupSub?new Mt.MathNode("mo",[Me,Ze]):Mt.newDocumentFragment([Me,Ze])};Vt({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(l,c){var d=l.parser,p=l.funcName,C=c[0];return{type:"operatorname",mode:d.mode,body:Wr(C),alwaysHandleSupSub:p==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:sa,mathmlBuilder:Ka}),sn({type:"ordgroup",htmlBuilder:function(l,c){return l.semisimple?He.makeFragment(en(l.body,c,!1)):He.makeSpan(["mord"],en(l.body,c,!0),c)},mathmlBuilder:function(l,c){return vn(l.body,c,!0)}}),Vt({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(l,c){var d=l.parser,p=c[0];return{type:"overline",mode:d.mode,body:p}},htmlBuilder:function(l,c){var d=Lr(l.body,c.havingCrampedStyle()),p=He.makeLineSpan("overline-line",c),C=c.fontMetrics().defaultRuleThickness,k=He.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:d},{type:"kern",size:3*C},{type:"elem",elem:p},{type:"kern",size:C}]},c);return He.makeSpan(["mord","overline"],[k],c)},mathmlBuilder:function(l,c){var d=new Mt.MathNode("mo",[new Mt.TextNode("\u203E")]);d.setAttribute("stretchy","true");var p=new Mt.MathNode("mover",[Mr(l.body,c),d]);return p.setAttribute("accent","true"),p}}),Vt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,c){var d=l.parser,p=c[0];return{type:"phantom",mode:d.mode,body:Wr(p)}},htmlBuilder:function(l,c){var d=en(l.body,c.withPhantom(),!1);return He.makeFragment(d)},mathmlBuilder:function(l,c){var d=Ln(l.body,c);return new Mt.MathNode("mphantom",d)}}),Vt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,c){var d=l.parser,p=c[0];return{type:"hphantom",mode:d.mode,body:p}},htmlBuilder:function(l,c){var d=He.makeSpan([],[Lr(l.body,c.withPhantom())]);if(d.height=0,d.depth=0,d.children)for(var p=0;p<d.children.length;p++)d.children[p].height=0,d.children[p].depth=0;return d=He.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:d}]},c),He.makeSpan(["mord"],[d],c)},mathmlBuilder:function(l,c){var d=Ln(Wr(l.body),c),p=new Mt.MathNode("mphantom",d),C=new Mt.MathNode("mpadded",[p]);return C.setAttribute("height","0px"),C.setAttribute("depth","0px"),C}}),Vt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,c){var d=l.parser,p=c[0];return{type:"vphantom",mode:d.mode,body:p}},htmlBuilder:function(l,c){var d=He.makeSpan(["inner"],[Lr(l.body,c.withPhantom())]),p=He.makeSpan(["fix"],[]);return He.makeSpan(["mord","rlap"],[d,p],c)},mathmlBuilder:function(l,c){var d=Ln(Wr(l.body),c),p=new Mt.MathNode("mphantom",d),C=new Mt.MathNode("mpadded",[p]);return C.setAttribute("width","0px"),C}}),Vt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(l,c){var d=l.parser,p=ar(c[0],"size").value,C=c[1];return{type:"raisebox",mode:d.mode,dy:p,body:C}},htmlBuilder:function(l,c){var d=Lr(l.body,c),p=Xe(l.dy,c);return He.makeVList({positionType:"shift",positionData:-p,children:[{type:"elem",elem:d}]},c)},mathmlBuilder:function(l,c){var d=new Mt.MathNode("mpadded",[Mr(l.body,c)]),p=l.dy.number+l.dy.unit;return d.setAttribute("voffset",p),d}}),Vt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(l,c,d){var p=l.parser,C=d[0],k=ar(c[0],"size"),fe=ar(c[1],"size");return{type:"rule",mode:p.mode,shift:C&&ar(C,"size").value,width:k.value,height:fe.value}},htmlBuilder:function(l,c){var d=He.makeSpan(["mord","rule"],[],c),p=Xe(l.width,c),C=Xe(l.height,c),k=l.shift?Xe(l.shift,c):0;return d.style.borderRightWidth=p+"em",d.style.borderTopWidth=C+"em",d.style.bottom=k+"em",d.width=p,d.height=C+k,d.depth=-k,d.maxFontSize=C*1.125*c.sizeMultiplier,d},mathmlBuilder:function(l,c){var d=Xe(l.width,c),p=Xe(l.height,c),C=l.shift?Xe(l.shift,c):0,k=c.color&&c.getColor()||"black",fe=new Mt.MathNode("mspace");fe.setAttribute("mathbackground",k),fe.setAttribute("width",d+"em"),fe.setAttribute("height",p+"em");var ye=new Mt.MathNode("mpadded",[fe]);return C>=0?ye.setAttribute("height","+"+C+"em"):(ye.setAttribute("height",C+"em"),ye.setAttribute("depth","+"+-C+"em")),ye.setAttribute("voffset",C+"em"),ye}});function aa(O,l,c){for(var d=en(O,l,!1),p=l.sizeMultiplier/c.sizeMultiplier,C=0;C<d.length;C++){var k=d[C].classes.indexOf("sizing");k<0?Array.prototype.push.apply(d[C].classes,l.sizingClasses(c)):d[C].classes[k+1]==="reset-size"+l.size&&(d[C].classes[k+1]="reset-size"+c.size),d[C].height*=p,d[C].depth*=p}return He.makeFragment(d)}var Ss=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Wa=function(l,c){var d=c.havingSize(l.size);return aa(l.body,d,c)};Vt({type:"sizing",names:Ss,props:{numArgs:0,allowedInText:!0},handler:function(l,c){var d=l.breakOnTokenText,p=l.funcName,C=l.parser,k=C.parseExpression(!1,d);return{type:"sizing",mode:C.mode,size:Ss.indexOf(p)+1,body:k}},htmlBuilder:Wa,mathmlBuilder:function(l,c){var d=c.havingSize(l.size),p=Ln(l.body,d),C=new Mt.MathNode("mstyle",p);return C.setAttribute("mathsize",d.sizeMultiplier+"em"),C}}),Vt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(l,c,d){var p=l.parser,C=!1,k=!1,fe=d[0]&&ar(d[0],"ordgroup");if(fe)for(var ye="",Me=0;Me<fe.body.length;++Me){var Ze=fe.body[Me];if(ye=Ze.text,ye==="t")C=!0;else if(ye==="b")k=!0;else{C=!1,k=!1;break}}else C=!0,k=!0;var at=c[0];return{type:"smash",mode:p.mode,body:at,smashHeight:C,smashDepth:k}},htmlBuilder:function(l,c){var d=He.makeSpan([],[Lr(l.body,c)]);if(!l.smashHeight&&!l.smashDepth)return d;if(l.smashHeight&&(d.height=0,d.children))for(var p=0;p<d.children.length;p++)d.children[p].height=0;if(l.smashDepth&&(d.depth=0,d.children))for(var C=0;C<d.children.length;C++)d.children[C].depth=0;var k=He.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:d}]},c);return He.makeSpan(["mord"],[k],c)},mathmlBuilder:function(l,c){var d=new Mt.MathNode("mpadded",[Mr(l.body,c)]);return l.smashHeight&&d.setAttribute("height","0px"),l.smashDepth&&d.setAttribute("depth","0px"),d}}),Vt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(l,c,d){var p=l.parser,C=d[0],k=c[0];return{type:"sqrt",mode:p.mode,body:k,index:C}},htmlBuilder:function(l,c){var d=Lr(l.body,c.havingCrampedStyle());d.height===0&&(d.height=c.fontMetrics().xHeight),d=He.wrapFragment(d,c);var p=c.fontMetrics(),C=p.defaultRuleThickness,k=C;c.style.id<g.TEXT.id&&(k=c.fontMetrics().xHeight);var fe=C+k/4,ye=d.height+d.depth+fe+C,Me=ii.sqrtImage(ye,c),Ze=Me.span,at=Me.ruleWidth,ft=Me.advanceWidth,Rt=Ze.height-at;Rt>d.height+d.depth+fe&&(fe=(fe+Rt-d.height-d.depth)/2);var Bt=Ze.height-d.height-fe-at;d.style.paddingLeft=ft+"em";var Wt=He.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:d,wrapperClasses:["svg-align"]},{type:"kern",size:-(d.height+Bt)},{type:"elem",elem:Ze},{type:"kern",size:at}]},c);if(l.index){var or=c.havingStyle(g.SCRIPTSCRIPT),xr=Lr(l.index,or,c),Er=.6*(Wt.height-Wt.depth),wr=He.makeVList({positionType:"shift",positionData:-Er,children:[{type:"elem",elem:xr}]},c),hn=He.makeSpan(["root"],[wr]);return He.makeSpan(["mord","sqrt"],[hn,Wt],c)}else return He.makeSpan(["mord","sqrt"],[Wt],c)},mathmlBuilder:function(l,c){var d=l.body,p=l.index;return p?new Mt.MathNode("mroot",[Mr(d,c),Mr(p,c)]):new Mt.MathNode("msqrt",[Mr(d,c)])}});var Sa={display:g.DISPLAY,text:g.TEXT,script:g.SCRIPT,scriptscript:g.SCRIPTSCRIPT};Vt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(l,c){var d=l.breakOnTokenText,p=l.funcName,C=l.parser,k=C.parseExpression(!0,d),fe=p.slice(1,p.length-5);return{type:"styling",mode:C.mode,style:fe,body:k}},htmlBuilder:function(l,c){var d=Sa[l.style],p=c.havingStyle(d).withFont("");return aa(l.body,p,c)},mathmlBuilder:function(l,c){var d=Sa[l.style],p=c.havingStyle(d),C=Ln(l.body,p),k=new Mt.MathNode("mstyle",C),fe={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},ye=fe[l.style];return k.setAttribute("scriptlevel",ye[0]),k.setAttribute("displaystyle",ye[1]),k}});var Va=function(l,c){var d=l.base;if(d)if(d.type==="op"){var p=d.limits&&(c.style.size===g.DISPLAY.size||d.alwaysHandleSupSub);return p?zi:null}else if(d.type==="operatorname"){var C=d.alwaysHandleSupSub&&(c.style.size===g.DISPLAY.size||d.limits);return C?sa:null}else{if(d.type==="accent")return L.isCharacterBox(d.base)?Br:null;if(d.type==="horizBrace"){var k=!l.sub;return k===d.isOver?xa:null}else return null}else return null};sn({type:"supsub",htmlBuilder:function(l,c){var d=Va(l,c);if(d)return d(l,c);var p=l.base,C=l.sup,k=l.sub,fe=Lr(p,c),ye,Me,Ze=c.fontMetrics(),at=0,ft=0,Rt=p&&L.isCharacterBox(p);if(C){var Bt=c.havingStyle(c.style.sup());ye=Lr(C,Bt,c),Rt||(at=fe.height-Bt.fontMetrics().supDrop*Bt.sizeMultiplier/c.sizeMultiplier)}if(k){var Wt=c.havingStyle(c.style.sub());Me=Lr(k,Wt,c),Rt||(ft=fe.depth+Wt.fontMetrics().subDrop*Wt.sizeMultiplier/c.sizeMultiplier)}var or;c.style===g.DISPLAY?or=Ze.sup1:c.style.cramped?or=Ze.sup3:or=Ze.sup2;var xr=c.sizeMultiplier,Er=.5/Ze.ptPerEm/xr+"em",wr=null;if(Me){var hn=l.base&&l.base.type==="op"&&l.base.name&&(l.base.name==="\\oiint"||l.base.name==="\\oiiint");(fe instanceof se||hn)&&(wr=-fe.italic+"em")}var dn;if(ye&&Me){at=Math.max(at,or,ye.depth+.25*Ze.xHeight),ft=Math.max(ft,Ze.sub2);var Tn=Ze.defaultRuleThickness,Dn=4*Tn;if(at-ye.depth-(Me.height-ft)<Dn){ft=Dn-(at-ye.depth)+Me.height;var Nn=.8*Ze.xHeight-(at-ye.depth);Nn>0&&(at+=Nn,ft-=Nn)}var si=[{type:"elem",elem:Me,shift:ft,marginRight:Er,marginLeft:wr},{type:"elem",elem:ye,shift:-at,marginRight:Er}];dn=He.makeVList({positionType:"individualShift",children:si},c)}else if(Me){ft=Math.max(ft,Ze.sub1,Me.height-.8*Ze.xHeight);var ti=[{type:"elem",elem:Me,marginLeft:wr,marginRight:Er}];dn=He.makeVList({positionType:"shift",positionData:ft,children:ti},c)}else if(ye)at=Math.max(at,or,ye.depth+.25*Ze.xHeight),dn=He.makeVList({positionType:"shift",positionData:-at,children:[{type:"elem",elem:ye,marginRight:Er}]},c);else throw new Error("supsub must have either sup or sub.");var on=Hn(fe,"right")||"mord";return He.makeSpan([on],[fe,He.makeSpan(["msupsub"],[dn])],c)},mathmlBuilder:function(l,c){var d=!1,p,C,k=br(l.base,"horizBrace");k&&(C=!!l.sup,C===k.isOver&&(d=!0,p=k.isOver)),l.base&&(l.base.type==="op"||l.base.type==="operatorname")&&(l.base.parentIsSupSub=!0);var fe=[Mr(l.base,c)];l.sub&&fe.push(Mr(l.sub,c)),l.sup&&fe.push(Mr(l.sup,c));var ye;if(d)ye=p?"mover":"munder";else if(l.sub)if(l.sup){var at=l.base;at&&at.type==="op"&&at.limits&&c.style===g.DISPLAY||at&&at.type==="operatorname"&&at.alwaysHandleSupSub&&(c.style===g.DISPLAY||at.limits)?ye="munderover":ye="msubsup"}else{var Ze=l.base;Ze&&Ze.type==="op"&&Ze.limits&&(c.style===g.DISPLAY||Ze.alwaysHandleSupSub)||Ze&&Ze.type==="operatorname"&&Ze.alwaysHandleSupSub&&(Ze.limits||c.style===g.DISPLAY)?ye="munder":ye="msub"}else{var Me=l.base;Me&&Me.type==="op"&&Me.limits&&(c.style===g.DISPLAY||Me.alwaysHandleSupSub)||Me&&Me.type==="operatorname"&&Me.alwaysHandleSupSub&&(Me.limits||c.style===g.DISPLAY)?ye="mover":ye="msup"}var ft=new Mt.MathNode(ye,fe);return ft}}),sn({type:"atom",htmlBuilder:function(l,c){return He.mathsym(l.text,l.mode,c,["m"+l.family])},mathmlBuilder:function(l,c){var d=new Mt.MathNode("mo",[jn(l.text,l.mode)]);if(l.family==="bin"){var p=ci(l,c);p==="bold-italic"&&d.setAttribute("mathvariant",p)}else l.family==="punct"?d.setAttribute("separator","true"):(l.family==="open"||l.family==="close")&&d.setAttribute("stretchy","false");return d}});var Aa={mi:"italic",mn:"normal",mtext:"normal"};sn({type:"mathord",htmlBuilder:function(l,c){return He.makeOrd(l,c,"mathord")},mathmlBuilder:function(l,c){var d=new Mt.MathNode("mi",[jn(l.text,l.mode,c)]),p=ci(l,c)||"italic";return p!==Aa[d.type]&&d.setAttribute("mathvariant",p),d}}),sn({type:"textord",htmlBuilder:function(l,c){return He.makeOrd(l,c,"textord")},mathmlBuilder:function(l,c){var d=jn(l.text,l.mode,c),p=ci(l,c)||"normal",C;return l.mode==="text"?C=new Mt.MathNode("mtext",[d]):/[0-9]/.test(l.text)?C=new Mt.MathNode("mn",[d]):l.text==="\\prime"?C=new Mt.MathNode("mo",[d]):C=new Mt.MathNode("mi",[d]),p!==Aa[C.type]&&C.setAttribute("mathvariant",p),C}});var Fs={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},zs={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};sn({type:"spacing",htmlBuilder:function(l,c){if(zs.hasOwnProperty(l.text)){var d=zs[l.text].className||"";if(l.mode==="text"){var p=He.makeOrd(l,c,"textord");return p.classes.push(d),p}else return He.makeSpan(["mspace",d],[He.mathsym(l.text,l.mode,c)],c)}else{if(Fs.hasOwnProperty(l.text))return He.makeSpan(["mspace",Fs[l.text]],[],c);throw new Z('Unknown type of space "'+l.text+'"')}},mathmlBuilder:function(l,c){var d;if(zs.hasOwnProperty(l.text))d=new Mt.MathNode("mtext",[new Mt.TextNode("\xA0")]);else{if(Fs.hasOwnProperty(l.text))return new Mt.MathNode("mspace");throw new Z('Unknown type of space "'+l.text+'"')}return d}});var Us=function(){var l=new Mt.MathNode("mtd",[]);return l.setAttribute("width","50%"),l};sn({type:"tag",mathmlBuilder:function(l,c){var d=new Mt.MathNode("mtable",[new Mt.MathNode("mtr",[Us(),new Mt.MathNode("mtd",[vn(l.body,c)]),Us(),new Mt.MathNode("mtd",[vn(l.tag,c)])])]);return d.setAttribute("width","100%"),d}});var oa={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Ta={"\\textbf":"textbf","\\textmd":"textmd"},Ca={"\\textit":"textit","\\textup":"textup"},Da=function(l,c){var d=l.font;return d?oa[d]?c.withTextFontFamily(oa[d]):Ta[d]?c.withTextFontWeight(Ta[d]):c.withTextFontShape(Ca[d]):c};Vt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(l,c){var d=l.parser,p=l.funcName,C=c[0];return{type:"text",mode:d.mode,body:Wr(C),font:p}},htmlBuilder:function(l,c){var d=Da(l,c),p=en(l.body,d,!0);return He.makeSpan(["mord","text"],He.tryCombineChars(p),d)},mathmlBuilder:function(l,c){var d=Da(l,c);return vn(l.body,d)}}),Vt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(l,c){var d=l.parser;return{type:"underline",mode:d.mode,body:c[0]}},htmlBuilder:function(l,c){var d=Lr(l.body,c),p=He.makeLineSpan("underline-line",c),C=c.fontMetrics().defaultRuleThickness,k=He.makeVList({positionType:"top",positionData:d.height,children:[{type:"kern",size:C},{type:"elem",elem:p},{type:"kern",size:3*C},{type:"elem",elem:d}]},c);return He.makeSpan(["mord","underline"],[k],c)},mathmlBuilder:function(l,c){var d=new Mt.MathNode("mo",[new Mt.TextNode("\u203E")]);d.setAttribute("stretchy","true");var p=new Mt.MathNode("munder",[Mr(l.body,c),d]);return p.setAttribute("accentunder","true"),p}}),Vt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(l,c,d){throw new Z("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(l,c){for(var d=Ra(l),p=[],C=c.havingStyle(c.style.text()),k=0;k<d.length;k++){var fe=d[k];fe==="~"&&(fe="\\textasciitilde"),p.push(He.makeSymbol(fe,"Typewriter-Regular",l.mode,C,["mord","texttt"]))}return He.makeSpan(["mord","text"].concat(C.sizingClasses(c)),He.tryCombineChars(p),C)},mathmlBuilder:function(l,c){var d=new Mt.TextNode(Ra(l)),p=new Mt.MathNode("mtext",[d]);return p.setAttribute("mathvariant","monospace"),p}});var Ra=function(l){return l.body.replace(/ /g,l.star?"\u2423":"\xA0")},Za=di,hs=Za,la=`[ \r
]`,ua="\\\\[a-zA-Z@]+",Ya="\\\\[^\uD800-\uDFFF]",Ia=""+ua+la+"*",Xa=new RegExp("^("+ua+")"+la+"*$"),ca="[\u0300-\u036F]",Jn=new RegExp(ca+"+$"),Vi="("+la+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(ca+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(ca+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+Ia)+("|"+Ya+")"),$s=function(){function O(c,d){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=c,this.settings=d,this.tokenRegex=new RegExp(Vi,"g"),this.catcodes={"%":14}}var l=O.prototype;return l.setCatcode=function(d,p){this.catcodes[d]=p},l.lex=function(){var d=this.input,p=this.tokenRegex.lastIndex;if(p===d.length)return new Re("EOF",new Ee(this,p,p));var C=this.tokenRegex.exec(d);if(C===null||C.index!==p)throw new Z("Unexpected character: '"+d[p]+"'",new Re(d[p],new Ee(this,p,p+1)));var k=C[2]||" ";if(this.catcodes[k]===14){var fe=d.indexOf(`
`,this.tokenRegex.lastIndex);return fe===-1?(this.tokenRegex.lastIndex=d.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=fe+1,this.lex()}var ye=k.match(Xa);return ye&&(k=ye[1]),new Re(k,new Ee(this,p,this.tokenRegex.lastIndex))},O}(),qa=function(){function O(c,d){c===void 0&&(c={}),d===void 0&&(d={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=d,this.builtins=c,this.undefStack=[]}var l=O.prototype;return l.beginGroup=function(){this.undefStack.push({})},l.endGroup=function(){if(this.undefStack.length===0)throw new Z("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var d=this.undefStack.pop();for(var p in d)d.hasOwnProperty(p)&&(d[p]===void 0?delete this.current[p]:this.current[p]=d[p])},l.has=function(d){return this.current.hasOwnProperty(d)||this.builtins.hasOwnProperty(d)},l.get=function(d){return this.current.hasOwnProperty(d)?this.current[d]:this.builtins[d]},l.set=function(d,p,C){if(C===void 0&&(C=!1),C){for(var k=0;k<this.undefStack.length;k++)delete this.undefStack[k][d];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][d]=p)}else{var fe=this.undefStack[this.undefStack.length-1];fe&&!fe.hasOwnProperty(d)&&(fe[d]=this.current[d])}this.current[d]=p},O}(),La={},Gs=La;function Ce(O,l){La[O]=l}Ce("\\@firstoftwo",function(O){var l=O.consumeArgs(2);return{tokens:l[0],numArgs:0}}),Ce("\\@secondoftwo",function(O){var l=O.consumeArgs(2);return{tokens:l[1],numArgs:0}}),Ce("\\@ifnextchar",function(O){var l=O.consumeArgs(3),c=O.future();return l[0].length===1&&l[0][0].text===c.text?{tokens:l[1],numArgs:0}:{tokens:l[2],numArgs:0}}),Ce("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Ce("\\TextOrMath",function(O){var l=O.consumeArgs(2);return O.mode==="text"?{tokens:l[0],numArgs:0}:{tokens:l[1],numArgs:0}});var es={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};Ce("\\char",function(O){var l=O.popToken(),c,d="";if(l.text==="'")c=8,l=O.popToken();else if(l.text==='"')c=16,l=O.popToken();else if(l.text==="`")if(l=O.popToken(),l.text[0]==="\\")d=l.text.charCodeAt(1);else{if(l.text==="EOF")throw new Z("\\char` missing argument");d=l.text.charCodeAt(0)}else c=10;if(c){if(d=es[l.text],d==null||d>=c)throw new Z("Invalid base-"+c+" digit "+l.text);for(var p;(p=es[O.future().text])!=null&&p<c;)d*=c,d+=p,O.popToken()}return"\\@char{"+d+"}"});var ha=function(l,c){var d=l.consumeArgs(1)[0];if(d.length!==1)throw new Z("\\gdef's first argument must be a macro name");var p=d[0].text,C=0;for(d=l.consumeArgs(1)[0];d.length===1&&d[0].text==="#";){if(d=l.consumeArgs(1)[0],d.length!==1)throw new Z('Invalid argument number length "'+d.length+'"');if(!/^[1-9]$/.test(d[0].text))throw new Z('Invalid argument number "'+d[0].text+'"');if(C++,parseInt(d[0].text)!==C)throw new Z('Argument number "'+d[0].text+'" out of order');d=l.consumeArgs(1)[0]}return l.macros.set(p,{tokens:d,numArgs:C},c),""};Ce("\\gdef",function(O){return ha(O,!0)}),Ce("\\def",function(O){return ha(O,!1)}),Ce("\\global",function(O){var l=O.consumeArgs(1)[0];if(l.length!==1)throw new Z("Invalid command after \\global");var c=l[0].text;if(c==="\\def")return ha(O,!0);throw new Z("Invalid command '"+c+"' after \\global")});var Hs=function(l,c,d){var p=l.consumeArgs(1)[0];if(p.length!==1)throw new Z("\\newcommand's first argument must be a macro name");var C=p[0].text,k=l.isDefined(C);if(k&&!c)throw new Z("\\newcommand{"+C+"} attempting to redefine "+(C+"; use \\renewcommand"));if(!k&&!d)throw new Z("\\renewcommand{"+C+"} when command "+C+" does not yet exist; use \\newcommand");var fe=0;if(p=l.consumeArgs(1)[0],p.length===1&&p[0].text==="["){for(var ye="",Me=l.expandNextToken();Me.text!=="]"&&Me.text!=="EOF";)ye+=Me.text,Me=l.expandNextToken();if(!ye.match(/^\s*[0-9]+\s*$/))throw new Z("Invalid number of arguments: "+ye);fe=parseInt(ye),p=l.consumeArgs(1)[0]}return l.macros.set(C,{tokens:p,numArgs:fe}),""};Ce("\\newcommand",function(O){return Hs(O,!1,!0)}),Ce("\\renewcommand",function(O){return Hs(O,!0,!1)}),Ce("\\providecommand",function(O){return Hs(O,!0,!0)}),Ce("\\bgroup","{"),Ce("\\egroup","}"),Ce("\\lq","`"),Ce("\\rq","'"),Ce("\\aa","\\r a"),Ce("\\AA","\\r A"),Ce("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),Ce("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Ce("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),Ce("\u212C","\\mathscr{B}"),Ce("\u2130","\\mathscr{E}"),Ce("\u2131","\\mathscr{F}"),Ce("\u210B","\\mathscr{H}"),Ce("\u2110","\\mathscr{I}"),Ce("\u2112","\\mathscr{L}"),Ce("\u2133","\\mathscr{M}"),Ce("\u211B","\\mathscr{R}"),Ce("\u212D","\\mathfrak{C}"),Ce("\u210C","\\mathfrak{H}"),Ce("\u2128","\\mathfrak{Z}"),Ce("\\Bbbk","\\Bbb{k}"),Ce("\xB7","\\cdotp"),Ce("\\llap","\\mathllap{\\textrm{#1}}"),Ce("\\rlap","\\mathrlap{\\textrm{#1}}"),Ce("\\clap","\\mathclap{\\textrm{#1}}"),Ce("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Ce("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),Ce("\\ne","\\neq"),Ce("\u2260","\\neq"),Ce("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),Ce("\u2209","\\notin"),Ce("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),Ce("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),Ce("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),Ce("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),Ce("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),Ce("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),Ce("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),Ce("\u27C2","\\perp"),Ce("\u203C","\\mathclose{!\\mkern-0.8mu!}"),Ce("\u220C","\\notni"),Ce("\u231C","\\ulcorner"),Ce("\u231D","\\urcorner"),Ce("\u231E","\\llcorner"),Ce("\u231F","\\lrcorner"),Ce("\xA9","\\copyright"),Ce("\xAE","\\textregistered"),Ce("\uFE0F","\\textregistered"),Ce("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),Ce("\u22EE","\\vdots"),Ce("\\varGamma","\\mathit{\\Gamma}"),Ce("\\varDelta","\\mathit{\\Delta}"),Ce("\\varTheta","\\mathit{\\Theta}"),Ce("\\varLambda","\\mathit{\\Lambda}"),Ce("\\varXi","\\mathit{\\Xi}"),Ce("\\varPi","\\mathit{\\Pi}"),Ce("\\varSigma","\\mathit{\\Sigma}"),Ce("\\varUpsilon","\\mathit{\\Upsilon}"),Ce("\\varPhi","\\mathit{\\Phi}"),Ce("\\varPsi","\\mathit{\\Psi}"),Ce("\\varOmega","\\mathit{\\Omega}"),Ce("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Ce("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),Ce("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Ce("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Ce("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Ce("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Ui={",":"\\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"};Ce("\\dots",function(O){var l="\\dotso",c=O.expandAfterFuture().text;return c in Ui?l=Ui[c]:(c.substr(0,4)==="\\not"||c in Ct.math&&L.contains(["bin","rel"],Ct.math[c].group))&&(l="\\dotsb"),l});var lt={")":!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};Ce("\\dotso",function(O){var l=O.future().text;return l in lt?"\\ldots\\,":"\\ldots"}),Ce("\\dotsc",function(O){var l=O.future().text;return l in lt&&l!==","?"\\ldots\\,":"\\ldots"}),Ce("\\cdots",function(O){var l=O.future().text;return l in lt?"\\@cdots\\,":"\\@cdots"}),Ce("\\dotsb","\\cdots"),Ce("\\dotsm","\\cdots"),Ce("\\dotsi","\\!\\cdots"),Ce("\\dotsx","\\ldots\\,"),Ce("\\DOTSI","\\relax"),Ce("\\DOTSB","\\relax"),Ce("\\DOTSX","\\relax"),Ce("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Ce("\\,","\\tmspace+{3mu}{.1667em}"),Ce("\\thinspace","\\,"),Ce("\\>","\\mskip{4mu}"),Ce("\\:","\\tmspace+{4mu}{.2222em}"),Ce("\\medspace","\\:"),Ce("\\;","\\tmspace+{5mu}{.2777em}"),Ce("\\thickspace","\\;"),Ce("\\!","\\tmspace-{3mu}{.1667em}"),Ce("\\negthinspace","\\!"),Ce("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Ce("\\negthickspace","\\tmspace-{5mu}{.277em}"),Ce("\\enspace","\\kern.5em "),Ce("\\enskip","\\hskip.5em\\relax"),Ce("\\quad","\\hskip1em\\relax"),Ce("\\qquad","\\hskip2em\\relax"),Ce("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Ce("\\tag@paren","\\tag@literal{({#1})}"),Ce("\\tag@literal",function(O){if(O.macros.get("\\df@tag"))throw new Z("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),Ce("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Ce("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Ce("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Ce("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Ce("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),Ce("\\\\","\\newline"),Ce("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var da=et["Main-Regular"][84][1]-.7*et["Main-Regular"][65][1]+"em";Ce("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+da+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),Ce("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+da+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),Ce("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Ce("\\@hspace","\\hskip #1\\relax"),Ce("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Ce("\\ordinarycolon",":"),Ce("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Ce("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Ce("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Ce("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Ce("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Ce("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Ce("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Ce("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Ce("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Ce("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Ce("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Ce("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Ce("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Ce("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Ce("\u2237","\\dblcolon"),Ce("\u2239","\\eqcolon"),Ce("\u2254","\\coloneqq"),Ce("\u2255","\\eqqcolon"),Ce("\u2A74","\\Coloneqq"),Ce("\\ratio","\\vcentcolon"),Ce("\\coloncolon","\\dblcolon"),Ce("\\colonequals","\\coloneqq"),Ce("\\coloncolonequals","\\Coloneqq"),Ce("\\equalscolon","\\eqqcolon"),Ce("\\equalscoloncolon","\\Eqqcolon"),Ce("\\colonminus","\\coloneq"),Ce("\\coloncolonminus","\\Coloneq"),Ce("\\minuscolon","\\eqcolon"),Ce("\\minuscoloncolon","\\Eqcolon"),Ce("\\coloncolonapprox","\\Colonapprox"),Ce("\\coloncolonsim","\\Colonsim"),Ce("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Ce("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Ce("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Ce("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Ce("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),Ce("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Ce("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Ce("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),Ce("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),Ce("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),Ce("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),Ce("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),Ce("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),Ce("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),Ce("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),Ce("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),Ce("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),Ce("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),Ce("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),Ce("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),Ce("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),Ce("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),Ce("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),Ce("\u27E6","\\llbracket"),Ce("\u27E7","\\rrbracket"),Ce("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),Ce("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),Ce("\u2983","\\lBrace"),Ce("\u2984","\\rBrace"),Ce("\\darr","\\downarrow"),Ce("\\dArr","\\Downarrow"),Ce("\\Darr","\\Downarrow"),Ce("\\lang","\\langle"),Ce("\\rang","\\rangle"),Ce("\\uarr","\\uparrow"),Ce("\\uArr","\\Uparrow"),Ce("\\Uarr","\\Uparrow"),Ce("\\N","\\mathbb{N}"),Ce("\\R","\\mathbb{R}"),Ce("\\Z","\\mathbb{Z}"),Ce("\\alef","\\aleph"),Ce("\\alefsym","\\aleph"),Ce("\\Alpha","\\mathrm{A}"),Ce("\\Beta","\\mathrm{B}"),Ce("\\bull","\\bullet"),Ce("\\Chi","\\mathrm{X}"),Ce("\\clubs","\\clubsuit"),Ce("\\cnums","\\mathbb{C}"),Ce("\\Complex","\\mathbb{C}"),Ce("\\Dagger","\\ddagger"),Ce("\\diamonds","\\diamondsuit"),Ce("\\empty","\\emptyset"),Ce("\\Epsilon","\\mathrm{E}"),Ce("\\Eta","\\mathrm{H}"),Ce("\\exist","\\exists"),Ce("\\harr","\\leftrightarrow"),Ce("\\hArr","\\Leftrightarrow"),Ce("\\Harr","\\Leftrightarrow"),Ce("\\hearts","\\heartsuit"),Ce("\\image","\\Im"),Ce("\\infin","\\infty"),Ce("\\Iota","\\mathrm{I}"),Ce("\\isin","\\in"),Ce("\\Kappa","\\mathrm{K}"),Ce("\\larr","\\leftarrow"),Ce("\\lArr","\\Leftarrow"),Ce("\\Larr","\\Leftarrow"),Ce("\\lrarr","\\leftrightarrow"),Ce("\\lrArr","\\Leftrightarrow"),Ce("\\Lrarr","\\Leftrightarrow"),Ce("\\Mu","\\mathrm{M}"),Ce("\\natnums","\\mathbb{N}"),Ce("\\Nu","\\mathrm{N}"),Ce("\\Omicron","\\mathrm{O}"),Ce("\\plusmn","\\pm"),Ce("\\rarr","\\rightarrow"),Ce("\\rArr","\\Rightarrow"),Ce("\\Rarr","\\Rightarrow"),Ce("\\real","\\Re"),Ce("\\reals","\\mathbb{R}"),Ce("\\Reals","\\mathbb{R}"),Ce("\\Rho","\\mathrm{P}"),Ce("\\sdot","\\cdot"),Ce("\\sect","\\S"),Ce("\\spades","\\spadesuit"),Ce("\\sub","\\subset"),Ce("\\sube","\\subseteq"),Ce("\\supe","\\supseteq"),Ce("\\Tau","\\mathrm{T}"),Ce("\\thetasym","\\vartheta"),Ce("\\weierp","\\wp"),Ce("\\Zeta","\\mathrm{Z}"),Ce("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Ce("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Ce("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Ce("\\blue","\\textcolor{##6495ed}{#1}"),Ce("\\orange","\\textcolor{##ffa500}{#1}"),Ce("\\pink","\\textcolor{##ff00af}{#1}"),Ce("\\red","\\textcolor{##df0030}{#1}"),Ce("\\green","\\textcolor{##28ae7b}{#1}"),Ce("\\gray","\\textcolor{gray}{#1}"),Ce("\\purple","\\textcolor{##9d38bd}{#1}"),Ce("\\blueA","\\textcolor{##ccfaff}{#1}"),Ce("\\blueB","\\textcolor{##80f6ff}{#1}"),Ce("\\blueC","\\textcolor{##63d9ea}{#1}"),Ce("\\blueD","\\textcolor{##11accd}{#1}"),Ce("\\blueE","\\textcolor{##0c7f99}{#1}"),Ce("\\tealA","\\textcolor{##94fff5}{#1}"),Ce("\\tealB","\\textcolor{##26edd5}{#1}"),Ce("\\tealC","\\textcolor{##01d1c1}{#1}"),Ce("\\tealD","\\textcolor{##01a995}{#1}"),Ce("\\tealE","\\textcolor{##208170}{#1}"),Ce("\\greenA","\\textcolor{##b6ffb0}{#1}"),Ce("\\greenB","\\textcolor{##8af281}{#1}"),Ce("\\greenC","\\textcolor{##74cf70}{#1}"),Ce("\\greenD","\\textcolor{##1fab54}{#1}"),Ce("\\greenE","\\textcolor{##0d923f}{#1}"),Ce("\\goldA","\\textcolor{##ffd0a9}{#1}"),Ce("\\goldB","\\textcolor{##ffbb71}{#1}"),Ce("\\goldC","\\textcolor{##ff9c39}{#1}"),Ce("\\goldD","\\textcolor{##e07d10}{#1}"),Ce("\\goldE","\\textcolor{##a75a05}{#1}"),Ce("\\redA","\\textcolor{##fca9a9}{#1}"),Ce("\\redB","\\textcolor{##ff8482}{#1}"),Ce("\\redC","\\textcolor{##f9685d}{#1}"),Ce("\\redD","\\textcolor{##e84d39}{#1}"),Ce("\\redE","\\textcolor{##bc2612}{#1}"),Ce("\\maroonA","\\textcolor{##ffbde0}{#1}"),Ce("\\maroonB","\\textcolor{##ff92c6}{#1}"),Ce("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Ce("\\maroonD","\\textcolor{##ca337c}{#1}"),Ce("\\maroonE","\\textcolor{##9e034e}{#1}"),Ce("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Ce("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Ce("\\purpleC","\\textcolor{##aa87ff}{#1}"),Ce("\\purpleD","\\textcolor{##7854ab}{#1}"),Ce("\\purpleE","\\textcolor{##543b78}{#1}"),Ce("\\mintA","\\textcolor{##f5f9e8}{#1}"),Ce("\\mintB","\\textcolor{##edf2df}{#1}"),Ce("\\mintC","\\textcolor{##e0e5cc}{#1}"),Ce("\\grayA","\\textcolor{##f6f7f7}{#1}"),Ce("\\grayB","\\textcolor{##f0f1f2}{#1}"),Ce("\\grayC","\\textcolor{##e3e5e6}{#1}"),Ce("\\grayD","\\textcolor{##d6d8da}{#1}"),Ce("\\grayE","\\textcolor{##babec2}{#1}"),Ce("\\grayF","\\textcolor{##888d93}{#1}"),Ce("\\grayG","\\textcolor{##626569}{#1}"),Ce("\\grayH","\\textcolor{##3b3e40}{#1}"),Ce("\\grayI","\\textcolor{##21242c}{#1}"),Ce("\\kaBlue","\\textcolor{##314453}{#1}"),Ce("\\kaGreen","\\textcolor{##71B307}{#1}");var js={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Ja=function(){function O(c,d,p){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=d,this.expansionCount=0,this.feed(c),this.macros=new qa(Gs,d.macros),this.mode=p,this.stack=[]}var l=O.prototype;return l.feed=function(d){this.lexer=new $s(d,this.settings)},l.switchMode=function(d){this.mode=d},l.beginGroup=function(){this.macros.beginGroup()},l.endGroup=function(){this.macros.endGroup()},l.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},l.popToken=function(){return this.future(),this.stack.pop()},l.pushToken=function(d){this.stack.push(d)},l.pushTokens=function(d){var p;(p=this.stack).push.apply(p,d)},l.consumeSpaces=function(){for(;;){var d=this.future();if(d.text===" ")this.stack.pop();else break}},l.consumeArgs=function(d){for(var p=[],C=0;C<d;++C){this.consumeSpaces();var k=this.popToken();if(k.text==="{"){for(var fe=[],ye=1;ye!==0;){var Me=this.popToken();if(fe.push(Me),Me.text==="{")++ye;else if(Me.text==="}")--ye;else if(Me.text==="EOF")throw new Z("End of input in macro argument",k)}fe.pop(),fe.reverse(),p[C]=fe}else{if(k.text==="EOF")throw new Z("End of input expecting macro argument");p[C]=[k]}}return p},l.expandOnce=function(){var d=this.popToken(),p=d.text,C=this._getExpansion(p);if(C==null)return this.pushToken(d),d;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new Z("Too many expansions: infinite loop or need to increase maxExpand setting");var k=C.tokens;if(C.numArgs){var fe=this.consumeArgs(C.numArgs);k=k.slice();for(var ye=k.length-1;ye>=0;--ye){var Me=k[ye];if(Me.text==="#"){if(ye===0)throw new Z("Incomplete placeholder at end of macro body",Me);if(Me=k[--ye],Me.text==="#")k.splice(ye+1,1);else if(/^[1-9]$/.test(Me.text)){var Ze;(Ze=k).splice.apply(Ze,[ye,2].concat(fe[+Me.text-1]))}else throw new Z("Not a valid argument number",Me)}}}return this.pushTokens(k),k},l.expandAfterFuture=function(){return this.expandOnce(),this.future()},l.expandNextToken=function(){for(;;){var d=this.expandOnce();if(d instanceof Re)if(d.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},l.expandMacro=function(d){if(this.macros.get(d)){var p=[],C=this.stack.length;for(this.pushToken(new Re(d));this.stack.length>C;){var k=this.expandOnce();k instanceof Re&&p.push(this.stack.pop())}return p}},l.expandMacroAsText=function(d){var p=this.expandMacro(d);return p&&p.map(function(C){return C.text}).join("")},l._getExpansion=function(d){var p=this.macros.get(d);if(p==null)return p;var C=typeof p=="function"?p(this):p;if(typeof C=="string"){var k=0;if(C.indexOf("#")!==-1)for(var fe=C.replace(/##/g,"");fe.indexOf("#"+(k+1))!==-1;)++k;for(var ye=new $s(C,this.settings),Me=[],Ze=ye.lex();Ze.text!=="EOF";)Me.push(Ze),Ze=ye.lex();Me.reverse();var at={tokens:Me,numArgs:k};return at}return C},l.isDefined=function(d){return this.macros.has(d)||hs.hasOwnProperty(d)||Ct.math.hasOwnProperty(d)||Ct.text.hasOwnProperty(d)||js.hasOwnProperty(d)},O}(),ds={"\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"}},ka={\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"},Ks=function(){function O(c,d){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 Ja(c,d,this.mode),this.settings=d,this.leftrightDepth=0}var l=O.prototype;return l.expect=function(d,p){if(p===void 0&&(p=!0),this.fetch().text!==d)throw new Z("Expected '"+d+"', got '"+this.fetch().text+"'",this.fetch());p&&this.consume()},l.consume=function(){this.nextToken=null},l.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},l.switchMode=function(d){this.mode=d,this.gullet.switchMode(d)},l.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var d=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),d},l.parseExpression=function(d,p){for(var C=[];;){this.mode==="math"&&this.consumeSpaces();var k=this.fetch();if(O.endOfExpression.indexOf(k.text)!==-1||p&&k.text===p||d&&hs[k.text]&&hs[k.text].infix)break;var fe=this.parseAtom(p);if(!fe)break;C.push(fe)}return this.mode==="text"&&this.formLigatures(C),this.handleInfixNodes(C)},l.handleInfixNodes=function(d){for(var p=-1,C,k=0;k<d.length;k++){var fe=br(d[k],"infix");if(fe){if(p!==-1)throw new Z("only one infix operator per group",fe.token);p=k,C=fe.replaceWith}}if(p!==-1&&C){var ye,Me,Ze=d.slice(0,p),at=d.slice(p+1);Ze.length===1&&Ze[0].type==="ordgroup"?ye=Ze[0]:ye={type:"ordgroup",mode:this.mode,body:Ze},at.length===1&&at[0].type==="ordgroup"?Me=at[0]:Me={type:"ordgroup",mode:this.mode,body:at};var ft;return C==="\\\\abovefrac"?ft=this.callFunction(C,[ye,d[p],Me],[]):ft=this.callFunction(C,[ye,Me],[]),[ft]}else return d},l.handleSupSubscript=function(d){var p=this.fetch(),C=p.text;this.consume();var k=this.parseGroup(d,!1,O.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!k)throw new Z("Expected group after '"+C+"'",p);return k},l.formatUnsupportedCmd=function(d){for(var p=[],C=0;C<d.length;C++)p.push({type:"textord",mode:"text",text:d[C]});var k={type:"text",mode:this.mode,body:p},fe={type:"color",mode:this.mode,color:this.settings.errorColor,body:[k]};return fe},l.parseAtom=function(d){var p=this.parseGroup("atom",!1,null,d);if(this.mode==="text")return p;for(var C,k;;){this.consumeSpaces();var fe=this.fetch();if(fe.text==="\\limits"||fe.text==="\\nolimits"){var ye=br(p,"op");if(ye){var Me=fe.text==="\\limits";ye.limits=Me,ye.alwaysHandleSupSub=!0}else if(ye=br(p,"operatorname"),ye&&ye.alwaysHandleSupSub){var Ze=fe.text==="\\limits";ye.limits=Ze}else throw new Z("Limit controls must follow a math operator",fe);this.consume()}else if(fe.text==="^"){if(C)throw new Z("Double superscript",fe);C=this.handleSupSubscript("superscript")}else if(fe.text==="_"){if(k)throw new Z("Double subscript",fe);k=this.handleSupSubscript("subscript")}else if(fe.text==="'"){if(C)throw new Z("Double superscript",fe);var at={type:"textord",mode:this.mode,text:"\\prime"},ft=[at];for(this.consume();this.fetch().text==="'";)ft.push(at),this.consume();this.fetch().text==="^"&&ft.push(this.handleSupSubscript("superscript")),C={type:"ordgroup",mode:this.mode,body:ft}}else break}return C||k?{type:"supsub",mode:this.mode,base:p,sup:C,sub:k}:p},l.parseFunction=function(d,p,C){var k=this.fetch(),fe=k.text,ye=hs[fe];if(!ye)return null;if(this.consume(),C!=null&&ye.greediness<=C)throw new Z("Got function '"+fe+"' with no arguments"+(p?" as "+p:""),k);if(this.mode==="text"&&!ye.allowedInText)throw new Z("Can't use function '"+fe+"' in text mode",k);if(this.mode==="math"&&ye.allowedInMath===!1)throw new Z("Can't use function '"+fe+"' in math mode",k);var Me=this.parseArguments(fe,ye),Ze=Me.args,at=Me.optArgs;return this.callFunction(fe,Ze,at,k,d)},l.callFunction=function(d,p,C,k,fe){var ye={funcName:d,parser:this,token:k,breakOnTokenText:fe},Me=hs[d];if(Me&&Me.handler)return Me.handler(ye,p,C);throw new Z("No function handler for "+d)},l.parseArguments=function(d,p){var C=p.numArgs+p.numOptionalArgs;if(C===0)return{args:[],optArgs:[]};for(var k=p.greediness,fe=[],ye=[],Me=0;Me<C;Me++){var Ze=p.argTypes&&p.argTypes[Me],at=Me<p.numOptionalArgs,ft=Me>0&&!at||Me===0&&!at&&this.mode==="math",Rt=this.parseGroupOfType("argument to '"+d+"'",Ze,at,k,ft);if(!Rt){if(at){ye.push(null);continue}throw new Z("Expected group after '"+d+"'",this.fetch())}(at?ye:fe).push(Rt)}return{args:fe,optArgs:ye}},l.parseGroupOfType=function(d,p,C,k,fe){switch(p){case"color":return fe&&this.consumeSpaces(),this.parseColorGroup(C);case"size":return fe&&this.consumeSpaces(),this.parseSizeGroup(C);case"url":return this.parseUrlGroup(C,fe);case"math":case"text":return this.parseGroup(d,C,k,void 0,p,fe);case"hbox":{var ye=this.parseGroup(d,C,k,void 0,"text",fe);if(!ye)return ye;var Me={type:"styling",mode:ye.mode,body:[ye],style:"text"};return Me}case"raw":{if(fe&&this.consumeSpaces(),C&&this.fetch().text==="{")return null;var Ze=this.parseStringGroup("raw",C,!0);if(Ze)return{type:"raw",mode:"text",string:Ze.text};throw new Z("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(d,C,k,void 0,void 0,fe);default:throw new Z("Unknown group type as "+d,this.fetch())}},l.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},l.parseStringGroup=function(d,p,C){var k=p?"[":"{",fe=p?"]":"}",ye=this.fetch();if(ye.text!==k){if(p)return null;if(C&&ye.text!=="EOF"&&/[^{}[\]]/.test(ye.text))return this.consume(),ye}var Me=this.mode;this.mode="text",this.expect(k);for(var Ze="",at=this.fetch(),ft=0,Rt=at,Bt;(Bt=this.fetch()).text!==fe||C&&ft>0;){switch(Bt.text){case"EOF":throw new Z("Unexpected end of input in "+d,at.range(Rt,Ze));case k:ft++;break;case fe:ft--;break}Rt=Bt,Ze+=Rt.text,this.consume()}return this.expect(fe),this.mode=Me,at.range(Rt,Ze)},l.parseRegexGroup=function(d,p){var C=this.mode;this.mode="text";for(var k=this.fetch(),fe=k,ye="",Me;(Me=this.fetch()).text!=="EOF"&&d.test(ye+Me.text);)fe=Me,ye+=fe.text,this.consume();if(ye==="")throw new Z("Invalid "+p+": '"+k.text+"'",k);return this.mode=C,k.range(fe,ye)},l.parseColorGroup=function(d){var p=this.parseStringGroup("color",d);if(!p)return null;var C=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(p.text);if(!C)throw new Z("Invalid color: '"+p.text+"'",p);var k=C[0];return/^[0-9a-f]{6}$/i.test(k)&&(k="#"+k),{type:"color-token",mode:this.mode,color:k}},l.parseSizeGroup=function(d){var p,C=!1;if(!d&&this.fetch().text!=="{"?p=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):p=this.parseStringGroup("size",d),!p)return null;!d&&p.text.length===0&&(p.text="0pt",C=!0);var k=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(p.text);if(!k)throw new Z("Invalid size: '"+p.text+"'",p);var fe={number:+(k[1]+k[2]),unit:k[3]};if(!tt(fe))throw new Z("Invalid unit: '"+fe.unit+"'",p);return{type:"size",mode:this.mode,value:fe,isBlank:C}},l.parseUrlGroup=function(d,p){this.gullet.lexer.setCatcode("%",13);var C=this.parseStringGroup("url",d,!0);if(this.gullet.lexer.setCatcode("%",14),!C)return null;var k=C.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:k}},l.parseGroup=function(d,p,C,k,fe,ye){var Me=this.mode;fe&&this.switchMode(fe),ye&&this.consumeSpaces();var Ze=this.fetch(),at=Ze.text,ft;if(p?at==="[":at==="{"||at==="\\begingroup"){this.consume();var Rt=O.endOfGroup[at];this.gullet.beginGroup();var Bt=this.parseExpression(!1,Rt),Wt=this.fetch();this.expect(Rt),this.gullet.endGroup(),ft={type:"ordgroup",mode:this.mode,loc:Ee.range(Ze,Wt),body:Bt,semisimple:at==="\\begingroup"||void 0}}else if(p)ft=null;else if(ft=this.parseFunction(k,d,C)||this.parseSymbol(),ft==null&&at[0]==="\\"&&!js.hasOwnProperty(at)){if(this.settings.throwOnError)throw new Z("Undefined control sequence: "+at,Ze);ft=this.formatUnsupportedCmd(at),this.consume()}return fe&&this.switchMode(Me),ft},l.formLigatures=function(d){for(var p=d.length-1,C=0;C<p;++C){var k=d[C],fe=k.text;fe==="-"&&d[C+1].text==="-"&&(C+1<p&&d[C+2].text==="-"?(d.splice(C,3,{type:"textord",mode:"text",loc:Ee.range(k,d[C+2]),text:"---"}),p-=2):(d.splice(C,2,{type:"textord",mode:"text",loc:Ee.range(k,d[C+1]),text:"--"}),p-=1)),(fe==="'"||fe==="`")&&d[C+1].text===fe&&(d.splice(C,2,{type:"textord",mode:"text",loc:Ee.range(k,d[C+1]),text:fe+fe}),p-=1)}},l.parseSymbol=function(){var d=this.fetch(),p=d.text;if(/^\\verb[^a-zA-Z]/.test(p)){this.consume();var C=p.slice(5),k=C.charAt(0)==="*";if(k&&(C=C.slice(1)),C.length<2||C.charAt(0)!==C.slice(-1))throw new Z(`\\verb assertion failed --
please report what input caused this bug`);return C=C.slice(1,-1),{type:"verb",mode:"text",body:C,star:k}}ka.hasOwnProperty(p[0])&&!Ct[this.mode][p[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+p[0]+'" used in math mode',d),p=ka[p[0]]+p.substr(1));var fe=Jn.exec(p);fe&&(p=p.substring(0,fe.index),p==="i"?p="\u0131":p==="j"&&(p="\u0237"));var ye;if(Ct[this.mode][p]){this.settings.strict&&this.mode==="math"&&wn.indexOf(p)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+p[0]+'" used in math mode',d);var Me=Ct[this.mode][p].group,Ze=Ee.range(d),at;if(Lt.hasOwnProperty(Me)){var ft=Me;at={type:"atom",mode:this.mode,family:ft,loc:Ze,text:p}}else at={type:Me,mode:this.mode,loc:Ze,text:p};ye=at}else if(p.charCodeAt(0)>=128)this.settings.strict&&(xe(p.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+p[0]+'" used in math mode',d):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+p[0]+'"'+(" ("+p.charCodeAt(0)+")"),d)),ye={type:"textord",mode:"text",loc:Ee.range(d),text:p};else return null;if(this.consume(),fe)for(var Rt=0;Rt<fe[0].length;Rt++){var Bt=fe[0][Rt];if(!ds[Bt])throw new Z("Unknown accent ' "+Bt+"'",d);var Wt=ds[Bt][this.mode];if(!Wt)throw new Z("Accent "+Bt+" unsupported in "+this.mode+" mode",d);ye={type:"accent",mode:this.mode,loc:Ee.range(d),label:Wt,isStretchy:!1,isShifty:!0,base:ye}}return ye},O}();Ks.endOfExpression=["}","\\endgroup","\\end","\\right","&"],Ks.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},Ks.SUPSUB_GREEDINESS=1;var Oa=function(l,c){if(!(typeof l=="string"||l instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var d=new Ks(l,c);delete d.gullet.macros.current["\\df@tag"];var p=d.parse();if(d.gullet.macros.get("\\df@tag")){if(!c.displayMode)throw new Z("\\tag works only in display equations");d.gullet.feed("\\df@tag"),p=[{type:"tag",mode:"text",body:p,tag:d.parse()}]}return p},fa=Oa,Pa=function(l,c,d){c.textContent="";var p=gi(l,d).toNode();c.appendChild(p)};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."),Pa=function(){throw new Z("KaTeX doesn't work in quirks mode.")});var fs=function(l,c){var d=gi(l,c).toMarkup();return d},pa=function(l,c){var d=new N(c);return fa(l,d)},As=function(l,c,d){if(d.throwOnError||!(l instanceof Z))throw l;var p=He.makeSpan(["katex-error"],[new se(c)]);return p.setAttribute("title",l.toString()),p.setAttribute("style","color:"+d.errorColor),p},gi=function(l,c){var d=new N(c);try{var p=fa(l,d);return kn(p,l,d)}catch(C){return As(C,l,d)}},Qa=function(l,c){var d=new N(c);try{var p=fa(l,d);return Kn(p,l,d)}catch(C){return As(C,l,d)}},Ma={version:"0.11.1",render:Pa,renderToString:fs,ParseError:Z,__parse:pa,__renderToDomTree:gi,__renderToHTMLTree:Qa,__setFontMetrics:st,__defineSymbol:y,__defineMacro:Ce,__domTree:{Span:X,Anchor:Le,SymbolNode:se,SvgNode:ve,PathNode:_e,LineNode:Oe}},eo=T.default=Ma}]).default})},32834:function(Nt){(function(Qe,T){Nt.exports=T()})(this,function(){"use strict";function Qe(ke,Ue){for(var Ke=0;Ke<Ue.length;Ke++){var J=Ue[Ke];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(ke,J.key,J)}}function T(ke,Ue,Ke){return Ue&&Qe(ke.prototype,Ue),Ke&&Qe(ke,Ke),ke}function K(ke,Ue){if(ke){if(typeof ke=="string")return re(ke,Ue);var Ke=Object.prototype.toString.call(ke).slice(8,-1);if(Ke==="Object"&&ke.constructor&&(Ke=ke.constructor.name),Ke==="Map"||Ke==="Set")return Array.from(ke);if(Ke==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ke))return re(ke,Ue)}}function re(ke,Ue){(Ue==null||Ue>ke.length)&&(Ue=ke.length);for(var Ke=0,J=new Array(Ue);Ke<Ue;Ke++)J[Ke]=ke[Ke];return J}function Ee(ke,Ue){var Ke=typeof Symbol!="undefined"&&ke[Symbol.iterator]||ke["@@iterator"];if(Ke)return(Ke=Ke.call(ke)).next.bind(Ke);if(Array.isArray(ke)||(Ke=K(ke))||Ue&&ke&&typeof ke.length=="number"){Ke&&(ke=Ke);var J=0;return function(){return J>=ke.length?{done:!0}:{done:!1,value:ke[J++]}}}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 Re={exports:{}};function pe(){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 Z(ke){Re.exports.defaults=ke}Re.exports={defaults:pe(),getDefaults:pe,changeDefaults:Z};var ge=/[&<>"']/,de=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,z=/[<>"']|&(?!#?\w+;)/g,M={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},x=function(Ue){return M[Ue]};function h(ke,Ue){if(Ue){if(ge.test(ke))return ke.replace(de,x)}else if(o.test(ke))return ke.replace(z,x);return ke}var E=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function b(ke){return ke.replace(E,function(Ue,Ke){return Ke=Ke.toLowerCase(),Ke==="colon"?":":Ke.charAt(0)==="#"?Ke.charAt(1)==="x"?String.fromCharCode(parseInt(Ke.substring(2),16)):String.fromCharCode(+Ke.substring(1)):""})}var Y=/(^|[^\[])\^/g;function te(ke,Ue){ke=ke.source||ke,Ue=Ue||"";var Ke={replace:function(he,Te){return Te=Te.source||Te,Te=Te.replace(Y,"$1"),ke=ke.replace(he,Te),Ke},getRegex:function(){return new RegExp(ke,Ue)}};return Ke}var L=/[^\w:]/g,N=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function U(ke,Ue,Ke){if(ke){var J;try{J=decodeURIComponent(b(Ke)).replace(L,"").toLowerCase()}catch(he){return null}if(J.indexOf("javascript:")===0||J.indexOf("vbscript:")===0||J.indexOf("data:")===0)return null}Ue&&!N.test(Ke)&&(Ke=ee(Ue,Ke));try{Ke=encodeURI(Ke).replace(/%25/g,"%")}catch(he){return null}return Ke}var ce={},w=/^[^:]+:\/*[^/]*$/,j=/^([^:]+:)[\s\S]*$/,ae=/^([^:]+:\/*[^/]*)[\s\S]*$/;function ee(ke,Ue){ce[" "+ke]||(w.test(ke)?ce[" "+ke]=ke+"/":ce[" "+ke]=Ne(ke,"/",!0)),ke=ce[" "+ke];var Ke=ke.indexOf(":")===-1;return Ue.substring(0,2)==="//"?Ke?Ue:ke.replace(j,"$1")+Ue:Ue.charAt(0)==="/"?Ke?Ue:ke.replace(ae,"$1")+Ue:ke+Ue}var oe={exec:function(){}};function Ae(ke){for(var Ue=1,Ke,J;Ue<arguments.length;Ue++){Ke=arguments[Ue];for(J in Ke)Object.prototype.hasOwnProperty.call(Ke,J)&&(ke[J]=Ke[J])}return ke}function we(ke,Ue){var Ke=ke.replace(/\|/g,function(Te,Fe,$){for(var Et=!1,Se=Fe;--Se>=0&&$[Se]==="\\";)Et=!Et;return Et?"|":" |"}),J=Ke.split(/ \|/),he=0;if(J.length>Ue)J.splice(Ue);else for(;J.length<Ue;)J.push("");for(;he<J.length;he++)J[he]=J[he].trim().replace(/\\\|/g,"|");return J}function Ne(ke,Ue,Ke){var J=ke.length;if(J===0)return"";for(var he=0;he<J;){var Te=ke.charAt(J-he-1);if(Te===Ue&&!Ke)he++;else if(Te!==Ue&&Ke)he++;else break}return ke.substr(0,J-he)}function W(ke,Ue){if(ke.indexOf(Ue[1])===-1)return-1;for(var Ke=ke.length,J=0,he=0;he<Ke;he++)if(ke[he]==="\\")he++;else if(ke[he]===Ue[0])J++;else if(ke[he]===Ue[1]&&(J--,J<0))return he;return-1}function P(ke){ke&&ke.sanitize&&!ke.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function q(ke,Ue){if(Ue<1)return"";for(var Ke="";Ue>1;)Ue&1&&(Ke+=ke),Ue>>=1,ke+=ke;return Ke+ke}var D={escape:h,unescape:b,edit:te,cleanUrl:U,resolveUrl:ee,noopTest:oe,merge:Ae,splitCells:we,rtrim:Ne,findClosingBracket:W,checkSanitizeDeprecation:P,repeatString:q},ie=Re.exports.defaults,F=D.rtrim,g=D.splitCells,v=D.escape,I=D.findClosingBracket;function G(ke,Ue,Ke){var J=Ue.href,he=Ue.title?v(Ue.title):null,Te=ke[1].replace(/\\([\[\]])/g,"$1");return ke[0].charAt(0)!=="!"?{type:"link",raw:Ke,href:J,title:he,text:Te}:{type:"image",raw:Ke,href:J,title:he,text:v(Te)}}function xe(ke,Ue){var Ke=ke.match(/^(\s+)(?:```)/);if(Ke===null)return Ue;var J=Ke[1];return Ue.split(`
`).map(function(he){var Te=he.match(/^\s+/);if(Te===null)return he;var Fe=Te[0];return Fe.length>=J.length?he.slice(J.length):he}).join(`
`)}var De=function(){function ke(Ke){this.options=Ke||ie}var Ue=ke.prototype;return Ue.space=function(J){var he=this.rules.block.newline.exec(J);if(he)return he[0].length>1?{type:"space",raw:he[0]}:{raw:`
`}},Ue.code=function(J){var he=this.rules.block.code.exec(J);if(he){var Te=he[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:he[0],codeBlockStyle:"indented",text:this.options.pedantic?Te:F(Te,`
`)}}},Ue.fences=function(J){var he=this.rules.block.fences.exec(J);if(he){var Te=he[0],Fe=xe(Te,he[3]||"");return{type:"code",raw:Te,lang:he[2]?he[2].trim():he[2],text:Fe}}},Ue.heading=function(J){var he=this.rules.block.heading.exec(J);if(he){var Te=he[2].trim();if(/#$/.test(Te)){var Fe=F(Te,"#");(this.options.pedantic||!Fe||/ $/.test(Fe))&&(Te=Fe.trim())}return{type:"heading",raw:he[0],depth:he[1].length,text:Te}}},Ue.nptable=function(J){var he=this.rules.block.nptable.exec(J);if(he){var Te={type:"table",header:g(he[1].replace(/^ *| *\| *$/g,"")),align:he[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:he[3]?he[3].replace(/\n$/,"").split(`
`):[],raw:he[0]};if(Te.header.length===Te.align.length){var Fe=Te.align.length,$;for($=0;$<Fe;$++)/^ *-+: *$/.test(Te.align[$])?Te.align[$]="right":/^ *:-+: *$/.test(Te.align[$])?Te.align[$]="center":/^ *:-+ *$/.test(Te.align[$])?Te.align[$]="left":Te.align[$]=null;for(Fe=Te.cells.length,$=0;$<Fe;$++)Te.cells[$]=g(Te.cells[$],Te.header.length);return Te}}},Ue.hr=function(J){var he=this.rules.block.hr.exec(J);if(he)return{type:"hr",raw:he[0]}},Ue.blockquote=function(J){var he=this.rules.block.blockquote.exec(J);if(he){var Te=he[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:he[0],text:Te}}},Ue.list=function(J){var he=this.rules.block.list.exec(J);if(he){var Te=he[0],Fe=he[2],$=Fe.length>1,Et={type:"list",raw:Te,ordered:$,start:$?+Fe.slice(0,-1):"",loose:!1,items:[]},Se=he[0].match(this.rules.block.item),Pt=!1,jt,qt,gr,Ft,zt,fr,Zr,un,$r,Ht=Se.length;gr=this.rules.block.listItemStart.exec(Se[0]);for(var ur=0;ur<Ht;ur++){if(jt=Se[ur],Te=jt,this.options.pedantic||($r=jt.match(new RegExp("\\n\\s*\\n {0,"+(gr[0].length-1)+"}\\S")),$r&&(zt=jt.length-$r.index+Se.slice(ur+1).join(`
`).length,Et.raw=Et.raw.substring(0,Et.raw.length-zt),jt=jt.substring(0,$r.index),Te=jt,Ht=ur+1)),ur!==Ht-1){if(Ft=this.rules.block.listItemStart.exec(Se[ur+1]),this.options.pedantic?Ft[1].length>gr[1].length:Ft[1].length>=gr[0].length||Ft[1].length>3){Se.splice(ur,2,Se[ur]+(!this.options.pedantic&&Ft[1].length<gr[0].length&&!Se[ur].match(/\n$/)?"":`
`)+Se[ur+1]),ur--,Ht--;continue}else(!this.options.pedantic||this.options.smartLists?Ft[2][Ft[2].length-1]!==Fe[Fe.length-1]:$===(Ft[2].length===1))&&(zt=Se.slice(ur+1).join(`
`).length,Et.raw=Et.raw.substring(0,Et.raw.length-zt),ur=Ht-1);gr=Ft}qt=jt.length,jt=jt.replace(/^ *([*+-]|\d+[.)]) ?/,""),~jt.indexOf(`
`)&&(qt-=jt.length,jt=this.options.pedantic?jt.replace(/^ {1,4}/gm,""):jt.replace(new RegExp("^ {1,"+qt+"}","gm"),"")),jt=F(jt,`
`),ur!==Ht-1&&(Te=Te+`
`),fr=Pt||/\n\n(?!\s*$)/.test(Te),ur!==Ht-1&&(Pt=Te.slice(-2)===`
`,fr||(fr=Pt)),fr&&(Et.loose=!0),this.options.gfm&&(Zr=/^\[[ xX]\] /.test(jt),un=void 0,Zr&&(un=jt[1]!==" ",jt=jt.replace(/^\[[ xX]\] +/,""))),Et.items.push({type:"list_item",raw:Te,task:Zr,checked:un,loose:fr,text:jt})}return Et}},Ue.html=function(J){var he=this.rules.block.html.exec(J);if(he)return{type:this.options.sanitize?"paragraph":"html",raw:he[0],pre:!this.options.sanitizer&&(he[1]==="pre"||he[1]==="script"||he[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(he[0]):v(he[0]):he[0]}},Ue.def=function(J){var he=this.rules.block.def.exec(J);if(he){he[3]&&(he[3]=he[3].substring(1,he[3].length-1));var Te=he[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:Te,raw:he[0],href:he[2],title:he[3]}}},Ue.table=function(J){var he=this.rules.block.table.exec(J);if(he){var Te={type:"table",header:g(he[1].replace(/^ *| *\| *$/g,"")),align:he[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:he[3]?he[3].replace(/\n$/,"").split(`
`):[]};if(Te.header.length===Te.align.length){Te.raw=he[0];var Fe=Te.align.length,$;for($=0;$<Fe;$++)/^ *-+: *$/.test(Te.align[$])?Te.align[$]="right":/^ *:-+: *$/.test(Te.align[$])?Te.align[$]="center":/^ *:-+ *$/.test(Te.align[$])?Te.align[$]="left":Te.align[$]=null;for(Fe=Te.cells.length,$=0;$<Fe;$++)Te.cells[$]=g(Te.cells[$].replace(/^ *\| *| *\| *$/g,""),Te.header.length);return Te}}},Ue.lheading=function(J){var he=this.rules.block.lheading.exec(J);if(he)return{type:"heading",raw:he[0],depth:he[2].charAt(0)==="="?1:2,text:he[1]}},Ue.paragraph=function(J){var he=this.rules.block.paragraph.exec(J);if(he)return{type:"paragraph",raw:he[0],text:he[1].charAt(he[1].length-1)===`
`?he[1].slice(0,-1):he[1]}},Ue.text=function(J){var he=this.rules.block.text.exec(J);if(he)return{type:"text",raw:he[0],text:he[0]}},Ue.escape=function(J){var he=this.rules.inline.escape.exec(J);if(he)return{type:"escape",raw:he[0],text:v(he[1])}},Ue.tag=function(J,he,Te){var Fe=this.rules.inline.tag.exec(J);if(Fe)return!he&&/^<a /i.test(Fe[0])?he=!0:he&&/^<\/a>/i.test(Fe[0])&&(he=!1),!Te&&/^<(pre|code|kbd|script)(\s|>)/i.test(Fe[0])?Te=!0:Te&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Fe[0])&&(Te=!1),{type:this.options.sanitize?"text":"html",raw:Fe[0],inLink:he,inRawBlock:Te,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Fe[0]):v(Fe[0]):Fe[0]}},Ue.link=function(J){var he=this.rules.inline.link.exec(J);if(he){var Te=he[2].trim();if(!this.options.pedantic&&/^</.test(Te)){if(!/>$/.test(Te))return;var Fe=F(Te.slice(0,-1),"\\");if((Te.length-Fe.length)%2===0)return}else{var $=I(he[2],"()");if($>-1){var Et=he[0].indexOf("!")===0?5:4,Se=Et+he[1].length+$;he[2]=he[2].substring(0,$),he[0]=he[0].substring(0,Se).trim(),he[3]=""}}var Pt=he[2],jt="";if(this.options.pedantic){var qt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Pt);qt&&(Pt=qt[1],jt=qt[3])}else jt=he[3]?he[3].slice(1,-1):"";return Pt=Pt.trim(),/^</.test(Pt)&&(this.options.pedantic&&!/>$/.test(Te)?Pt=Pt.slice(1):Pt=Pt.slice(1,-1)),G(he,{href:Pt&&Pt.replace(this.rules.inline._escapes,"$1"),title:jt&&jt.replace(this.rules.inline._escapes,"$1")},he[0])}},Ue.reflink=function(J,he){var Te;if((Te=this.rules.inline.reflink.exec(J))||(Te=this.rules.inline.nolink.exec(J))){var Fe=(Te[2]||Te[1]).replace(/\s+/g," ");if(Fe=he[Fe.toLowerCase()],!Fe||!Fe.href){var $=Te[0].charAt(0);return{type:"text",raw:$,text:$}}return G(Te,Fe,Te[0])}},Ue.emStrong=function(J,he,Te){Te===void 0&&(Te="");var Fe=this.rules.inline.emStrong.lDelim.exec(J);if(Fe&&!(Fe[3]&&Te.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 $=Fe[1]||Fe[2]||"";if(!$||$&&(Te===""||this.rules.inline.punctuation.exec(Te))){var Et=Fe[0].length-1,Se,Pt,jt=Et,qt=0,gr=Fe[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(gr.lastIndex=0,he=he.slice(-1*J.length+Et);(Fe=gr.exec(he))!=null;)if(Se=Fe[1]||Fe[2]||Fe[3]||Fe[4]||Fe[5]||Fe[6],!!Se){if(Pt=Se.length,Fe[3]||Fe[4]){jt+=Pt;continue}else if((Fe[5]||Fe[6])&&Et%3&&!((Et+Pt)%3)){qt+=Pt;continue}if(jt-=Pt,!(jt>0))return Pt=Math.min(Pt,Pt+jt+qt),Math.min(Et,Pt)%2?{type:"em",raw:J.slice(0,Et+Fe.index+Pt+1),text:J.slice(1,Et+Fe.index+Pt)}:{type:"strong",raw:J.slice(0,Et+Fe.index+Pt+1),text:J.slice(2,Et+Fe.index+Pt-1)}}}}},Ue.codespan=function(J){var he=this.rules.inline.code.exec(J);if(he){var Te=he[2].replace(/\n/g," "),Fe=/[^ ]/.test(Te),$=/^ /.test(Te)&&/ $/.test(Te);return Fe&&$&&(Te=Te.substring(1,Te.length-1)),Te=v(Te,!0),{type:"codespan",raw:he[0],text:Te}}},Ue.br=function(J){var he=this.rules.inline.br.exec(J);if(he)return{type:"br",raw:he[0]}},Ue.del=function(J){var he=this.rules.inline.del.exec(J);if(he)return{type:"del",raw:he[0],text:he[2]}},Ue.autolink=function(J,he){var Te=this.rules.inline.autolink.exec(J);if(Te){var Fe,$;return Te[2]==="@"?(Fe=v(this.options.mangle?he(Te[1]):Te[1]),$="mailto:"+Fe):(Fe=v(Te[1]),$=Fe),{type:"link",raw:Te[0],text:Fe,href:$,tokens:[{type:"text",raw:Fe,text:Fe}]}}},Ue.url=function(J,he){var Te;if(Te=this.rules.inline.url.exec(J)){var Fe,$;if(Te[2]==="@")Fe=v(this.options.mangle?he(Te[0]):Te[0]),$="mailto:"+Fe;else{var Et;do Et=Te[0],Te[0]=this.rules.inline._backpedal.exec(Te[0])[0];while(Et!==Te[0]);Fe=v(Te[0]),Te[1]==="www."?$="http://"+Fe:$=Fe}return{type:"link",raw:Te[0],text:Fe,href:$,tokens:[{type:"text",raw:Fe,text:Fe}]}}},Ue.inlineText=function(J,he,Te){var Fe=this.rules.inline.text.exec(J);if(Fe){var $;return he?$=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Fe[0]):v(Fe[0]):Fe[0]:$=v(this.options.smartypants?Te(Fe[0]):Fe[0]),{type:"text",raw:Fe[0],text:$}}},ke}(),Ie=D.noopTest,$e=D.edit,qe=D.merge,Ye={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:Ie,table:Ie,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};Ye._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Ye._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Ye.def=$e(Ye.def).replace("label",Ye._label).replace("title",Ye._title).getRegex(),Ye.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ye.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,Ye.item=$e(Ye.item,"gm").replace(/bull/g,Ye.bullet).getRegex(),Ye.listItemStart=$e(/^( *)(bull) */).replace("bull",Ye.bullet).getRegex(),Ye.list=$e(Ye.list).replace(/bull/g,Ye.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ye.def.source+")").getRegex(),Ye._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",Ye._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Ye.html=$e(Ye.html,"i").replace("comment",Ye._comment).replace("tag",Ye._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ye.paragraph=$e(Ye._paragraph).replace("hr",Ye.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",Ye._tag).getRegex(),Ye.blockquote=$e(Ye.blockquote).replace("paragraph",Ye.paragraph).getRegex(),Ye.normal=qe({},Ye),Ye.gfm=qe({},Ye.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*|$)"}),Ye.gfm.nptable=$e(Ye.gfm.nptable).replace("hr",Ye.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",Ye._tag).getRegex(),Ye.gfm.table=$e(Ye.gfm.table).replace("hr",Ye.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",Ye._tag).getRegex(),Ye.pedantic=qe({},Ye.normal,{html:$e(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ye._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:Ie,paragraph:$e(Ye.normal._paragraph).replace("hr",Ye.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Ye.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Ve={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Ie,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:Ie,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};Ve._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Ve.punctuation=$e(Ve.punctuation).replace(/punctuation/g,Ve._punctuation).getRegex(),Ve.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Ve.escapedEmSt=/\\\*|\\_/g,Ve._comment=$e(Ye._comment).replace("(?:-->|$)","-->").getRegex(),Ve.emStrong.lDelim=$e(Ve.emStrong.lDelim).replace(/punct/g,Ve._punctuation).getRegex(),Ve.emStrong.rDelimAst=$e(Ve.emStrong.rDelimAst,"g").replace(/punct/g,Ve._punctuation).getRegex(),Ve.emStrong.rDelimUnd=$e(Ve.emStrong.rDelimUnd,"g").replace(/punct/g,Ve._punctuation).getRegex(),Ve._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Ve._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Ve._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])?)+(?![-_])/,Ve.autolink=$e(Ve.autolink).replace("scheme",Ve._scheme).replace("email",Ve._email).getRegex(),Ve._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Ve.tag=$e(Ve.tag).replace("comment",Ve._comment).replace("attribute",Ve._attribute).getRegex(),Ve._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ve._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Ve._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Ve.link=$e(Ve.link).replace("label",Ve._label).replace("href",Ve._href).replace("title",Ve._title).getRegex(),Ve.reflink=$e(Ve.reflink).replace("label",Ve._label).getRegex(),Ve.reflinkSearch=$e(Ve.reflinkSearch,"g").replace("reflink",Ve.reflink).replace("nolink",Ve.nolink).getRegex(),Ve.normal=qe({},Ve),Ve.pedantic=qe({},Ve.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:$e(/^!?\[(label)\]\((.*?)\)/).replace("label",Ve._label).getRegex(),reflink:$e(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ve._label).getRegex()}),Ve.gfm=qe({},Ve.normal,{escape:$e(Ve.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),Ve.gfm.url=$e(Ve.gfm.url,"i").replace("email",Ve.gfm._extended_email).getRegex(),Ve.breaks=qe({},Ve.gfm,{br:$e(Ve.br).replace("{2,}","*").getRegex(),text:$e(Ve.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var ht={block:Ye,inline:Ve},mt=De,kt=Re.exports.defaults,gt=ht.block,Tt=ht.inline,St=D.repeatString;function ue(ke){return ke.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function ne(ke){var Ue="",Ke,J,he=ke.length;for(Ke=0;Ke<he;Ke++)J=ke.charCodeAt(Ke),Math.random()>.5&&(J="x"+J.toString(16)),Ue+="&#"+J+";";return Ue}var X=function(){function ke(Ke){this.tokens=[],this.tokens.links=Object.create(null),this.options=Ke||kt,this.options.tokenizer=this.options.tokenizer||new mt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var J={block:gt.normal,inline:Tt.normal};this.options.pedantic?(J.block=gt.pedantic,J.inline=Tt.pedantic):this.options.gfm&&(J.block=gt.gfm,this.options.breaks?J.inline=Tt.breaks:J.inline=Tt.gfm),this.tokenizer.rules=J}ke.lex=function(J,he){var Te=new ke(he);return Te.lex(J)},ke.lexInline=function(J,he){var Te=new ke(he);return Te.inlineTokens(J)};var Ue=ke.prototype;return Ue.lex=function(J){return J=J.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(J,this.tokens,!0),this.inline(this.tokens),this.tokens},Ue.blockTokens=function(J,he,Te){he===void 0&&(he=[]),Te===void 0&&(Te=!0),this.options.pedantic&&(J=J.replace(/^ +$/gm,""));for(var Fe,$,Et,Se;J;){if(Fe=this.tokenizer.space(J)){J=J.substring(Fe.raw.length),Fe.type&&he.push(Fe);continue}if(Fe=this.tokenizer.code(J)){J=J.substring(Fe.raw.length),Se=he[he.length-1],Se&&Se.type==="paragraph"?(Se.raw+=`
`+Fe.raw,Se.text+=`
`+Fe.text):he.push(Fe);continue}if(Fe=this.tokenizer.fences(J)){J=J.substring(Fe.raw.length),he.push(Fe);continue}if(Fe=this.tokenizer.heading(J)){J=J.substring(Fe.raw.length),he.push(Fe);continue}if(Fe=this.tokenizer.nptable(J)){J=J.substring(Fe.raw.length),he.push(Fe);continue}if(Fe=this.tokenizer.hr(J)){J=J.substring(Fe.raw.length),he.push(Fe);continue}if(Fe=this.tokenizer.blockquote(J)){J=J.substring(Fe.raw.length),Fe.tokens=this.blockTokens(Fe.text,[],Te),he.push(Fe);continue}if(Fe=this.tokenizer.list(J)){for(J=J.substring(Fe.raw.length),Et=Fe.items.length,$=0;$<Et;$++)Fe.items[$].tokens=this.blockTokens(Fe.items[$].text,[],!1);he.push(Fe);continue}if(Fe=this.tokenizer.html(J)){J=J.substring(Fe.raw.length),he.push(Fe);continue}if(Te&&(Fe=this.tokenizer.def(J))){J=J.substring(Fe.raw.length),this.tokens.links[Fe.tag]||(this.tokens.links[Fe.tag]={href:Fe.href,title:Fe.title});continue}if(Fe=this.tokenizer.table(J)){J=J.substring(Fe.raw.length),he.push(Fe);continue}if(Fe=this.tokenizer.lheading(J)){J=J.substring(Fe.raw.length),he.push(Fe);continue}if(Te&&(Fe=this.tokenizer.paragraph(J))){J=J.substring(Fe.raw.length),he.push(Fe);continue}if(Fe=this.tokenizer.text(J)){J=J.substring(Fe.raw.length),Se=he[he.length-1],Se&&Se.type==="text"?(Se.raw+=`
`+Fe.raw,Se.text+=`
`+Fe.text):he.push(Fe);continue}if(J){var Pt="Infinite loop on byte: "+J.charCodeAt(0);if(this.options.silent){console.error(Pt);break}else throw new Error(Pt)}}return he},Ue.inline=function(J){var he,Te,Fe,$,Et,Se,Pt=J.length;for(he=0;he<Pt;he++)switch(Se=J[he],Se.type){case"paragraph":case"text":case"heading":{Se.tokens=[],this.inlineTokens(Se.text,Se.tokens);break}case"table":{for(Se.tokens={header:[],cells:[]},$=Se.header.length,Te=0;Te<$;Te++)Se.tokens.header[Te]=[],this.inlineTokens(Se.header[Te],Se.tokens.header[Te]);for($=Se.cells.length,Te=0;Te<$;Te++)for(Et=Se.cells[Te],Se.tokens.cells[Te]=[],Fe=0;Fe<Et.length;Fe++)Se.tokens.cells[Te][Fe]=[],this.inlineTokens(Et[Fe],Se.tokens.cells[Te][Fe]);break}case"blockquote":{this.inline(Se.tokens);break}case"list":{for($=Se.items.length,Te=0;Te<$;Te++)this.inline(Se.items[Te].tokens);break}}return J},Ue.inlineTokens=function(J,he,Te,Fe){he===void 0&&(he=[]),Te===void 0&&(Te=!1),Fe===void 0&&(Fe=!1);var $,Et,Se=J,Pt,jt,qt;if(this.tokens.links){var gr=Object.keys(this.tokens.links);if(gr.length>0)for(;(Pt=this.tokenizer.rules.inline.reflinkSearch.exec(Se))!=null;)gr.includes(Pt[0].slice(Pt[0].lastIndexOf("[")+1,-1))&&(Se=Se.slice(0,Pt.index)+"["+St("a",Pt[0].length-2)+"]"+Se.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Pt=this.tokenizer.rules.inline.blockSkip.exec(Se))!=null;)Se=Se.slice(0,Pt.index)+"["+St("a",Pt[0].length-2)+"]"+Se.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(Pt=this.tokenizer.rules.inline.escapedEmSt.exec(Se))!=null;)Se=Se.slice(0,Pt.index)+"++"+Se.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;J;){if(jt||(qt=""),jt=!1,$=this.tokenizer.escape(J)){J=J.substring($.raw.length),he.push($);continue}if($=this.tokenizer.tag(J,Te,Fe)){J=J.substring($.raw.length),Te=$.inLink,Fe=$.inRawBlock;var Ft=he[he.length-1];Ft&&$.type==="text"&&Ft.type==="text"?(Ft.raw+=$.raw,Ft.text+=$.text):he.push($);continue}if($=this.tokenizer.link(J)){J=J.substring($.raw.length),$.type==="link"&&($.tokens=this.inlineTokens($.text,[],!0,Fe)),he.push($);continue}if($=this.tokenizer.reflink(J,this.tokens.links)){J=J.substring($.raw.length);var zt=he[he.length-1];$.type==="link"?($.tokens=this.inlineTokens($.text,[],!0,Fe),he.push($)):zt&&$.type==="text"&&zt.type==="text"?(zt.raw+=$.raw,zt.text+=$.text):he.push($);continue}if($=this.tokenizer.emStrong(J,Se,qt)){J=J.substring($.raw.length),$.tokens=this.inlineTokens($.text,[],Te,Fe),he.push($);continue}if($=this.tokenizer.codespan(J)){J=J.substring($.raw.length),he.push($);continue}if($=this.tokenizer.br(J)){J=J.substring($.raw.length),he.push($);continue}if($=this.tokenizer.del(J)){J=J.substring($.raw.length),$.tokens=this.inlineTokens($.text,[],Te,Fe),he.push($);continue}if($=this.tokenizer.autolink(J,ne)){J=J.substring($.raw.length),he.push($);continue}if(!Te&&($=this.tokenizer.url(J,ne))){J=J.substring($.raw.length),he.push($);continue}if($=this.tokenizer.inlineText(J,Fe,ue)){J=J.substring($.raw.length),$.raw.slice(-1)!=="_"&&(qt=$.raw.slice(-1)),jt=!0,Et=he[he.length-1],Et&&Et.type==="text"?(Et.raw+=$.raw,Et.text+=$.text):he.push($);continue}if(J){var fr="Infinite loop on byte: "+J.charCodeAt(0);if(this.options.silent){console.error(fr);break}else throw new Error(fr)}}return he},T(ke,null,[{key:"rules",get:function(){return{block:gt,inline:Tt}}}]),ke}(),Le=Re.exports.defaults,Pe=D.cleanUrl,R=D.escape,se=function(){function ke(Ke){this.options=Ke||Le}var Ue=ke.prototype;return Ue.code=function(J,he,Te){var Fe=(he||"").match(/\S*/)[0];if(this.options.highlight){var $=this.options.highlight(J,Fe);$!=null&&$!==J&&(Te=!0,J=$)}return J=J.replace(/\n$/,"")+`
`,Fe?'<pre><code class="'+this.options.langPrefix+R(Fe,!0)+'">'+(Te?J:R(J,!0))+`</code></pre>
`:"<pre><code>"+(Te?J:R(J,!0))+`</code></pre>
`},Ue.blockquote=function(J){return`<blockquote>
`+J+`</blockquote>
`},Ue.html=function(J){return J},Ue.heading=function(J,he,Te,Fe){return this.options.headerIds?"<h"+he+' id="'+this.options.headerPrefix+Fe.slug(Te)+'">'+J+"</h"+he+`>
`:"<h"+he+">"+J+"</h"+he+`>
`},Ue.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},Ue.list=function(J,he,Te){var Fe=he?"ol":"ul",$=he&&Te!==1?' start="'+Te+'"':"";return"<"+Fe+$+`>
`+J+"</"+Fe+`>
`},Ue.listitem=function(J){return"<li>"+J+`</li>
`},Ue.checkbox=function(J){return"<input "+(J?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Ue.paragraph=function(J){return"<p>"+J+`</p>
`},Ue.table=function(J,he){return he&&(he="<tbody>"+he+"</tbody>"),`<table>
<thead>
`+J+`</thead>
`+he+`</table>
`},Ue.tablerow=function(J){return`<tr>
`+J+`</tr>
`},Ue.tablecell=function(J,he){var Te=he.header?"th":"td",Fe=he.align?"<"+Te+' align="'+he.align+'">':"<"+Te+">";return Fe+J+"</"+Te+`>
`},Ue.strong=function(J){return"<strong>"+J+"</strong>"},Ue.em=function(J){return"<em>"+J+"</em>"},Ue.codespan=function(J){return"<code>"+J+"</code>"},Ue.br=function(){return this.options.xhtml?"<br/>":"<br>"},Ue.del=function(J){return"<del>"+J+"</del>"},Ue.link=function(J,he,Te){if(J=Pe(this.options.sanitize,this.options.baseUrl,J),J===null)return Te;var Fe='<a href="'+R(J)+'"';return he&&(Fe+=' title="'+he+'"'),Fe+=">"+Te+"</a>",Fe},Ue.image=function(J,he,Te){if(J=Pe(this.options.sanitize,this.options.baseUrl,J),J===null)return Te;var Fe='<img src="'+J+'" alt="'+Te+'"';return he&&(Fe+=' title="'+he+'"'),Fe+=this.options.xhtml?"/>":">",Fe},Ue.text=function(J){return J},ke}(),ve=function(){function ke(){}var Ue=ke.prototype;return Ue.strong=function(J){return J},Ue.em=function(J){return J},Ue.codespan=function(J){return J},Ue.del=function(J){return J},Ue.html=function(J){return J},Ue.text=function(J){return J},Ue.link=function(J,he,Te){return""+Te},Ue.image=function(J,he,Te){return""+Te},Ue.br=function(){return""},ke}(),_e=function(){function ke(){this.seen={}}var Ue=ke.prototype;return Ue.serialize=function(J){return J.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},Ue.getNextSafeSlug=function(J,he){var Te=J,Fe=0;if(this.seen.hasOwnProperty(Te)){Fe=this.seen[J];do Fe++,Te=J+"-"+Fe;while(this.seen.hasOwnProperty(Te))}return he||(this.seen[J]=Fe,this.seen[Te]=0),Te},Ue.slug=function(J,he){he===void 0&&(he={});var Te=this.serialize(J);return this.getNextSafeSlug(Te,he.dryrun)},ke}(),Oe=se,Be=ve,je=_e,et=Re.exports.defaults,We=D.unescape,Ge=function(){function ke(Ke){this.options=Ke||et,this.options.renderer=this.options.renderer||new Oe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Be,this.slugger=new je}ke.parse=function(J,he){var Te=new ke(he);return Te.parse(J)},ke.parseInline=function(J,he){var Te=new ke(he);return Te.parseInline(J)};var Ue=ke.prototype;return Ue.parse=function(J,he){he===void 0&&(he=!0);var Te="",Fe,$,Et,Se,Pt,jt,qt,gr,Ft,zt,fr,Zr,un,$r,Ht,ur,Ar,Jr,Qr=J.length;for(Fe=0;Fe<Qr;Fe++)switch(zt=J[Fe],zt.type){case"space":continue;case"hr":{Te+=this.renderer.hr();continue}case"heading":{Te+=this.renderer.heading(this.parseInline(zt.tokens),zt.depth,We(this.parseInline(zt.tokens,this.textRenderer)),this.slugger);continue}case"code":{Te+=this.renderer.code(zt.text,zt.lang,zt.escaped);continue}case"table":{for(gr="",qt="",Se=zt.header.length,$=0;$<Se;$++)qt+=this.renderer.tablecell(this.parseInline(zt.tokens.header[$]),{header:!0,align:zt.align[$]});for(gr+=this.renderer.tablerow(qt),Ft="",Se=zt.cells.length,$=0;$<Se;$++){for(jt=zt.tokens.cells[$],qt="",Pt=jt.length,Et=0;Et<Pt;Et++)qt+=this.renderer.tablecell(this.parseInline(jt[Et]),{header:!1,align:zt.align[Et]});Ft+=this.renderer.tablerow(qt)}Te+=this.renderer.table(gr,Ft);continue}case"blockquote":{Ft=this.parse(zt.tokens),Te+=this.renderer.blockquote(Ft);continue}case"list":{for(fr=zt.ordered,Zr=zt.start,un=zt.loose,Se=zt.items.length,Ft="",$=0;$<Se;$++)Ht=zt.items[$],ur=Ht.checked,Ar=Ht.task,$r="",Ht.task&&(Jr=this.renderer.checkbox(ur),un?Ht.tokens.length>0&&Ht.tokens[0].type==="text"?(Ht.tokens[0].text=Jr+" "+Ht.tokens[0].text,Ht.tokens[0].tokens&&Ht.tokens[0].tokens.length>0&&Ht.tokens[0].tokens[0].type==="text"&&(Ht.tokens[0].tokens[0].text=Jr+" "+Ht.tokens[0].tokens[0].text)):Ht.tokens.unshift({type:"text",text:Jr}):$r+=Jr),$r+=this.parse(Ht.tokens,un),Ft+=this.renderer.listitem($r,Ar,ur);Te+=this.renderer.list(Ft,fr,Zr);continue}case"html":{Te+=this.renderer.html(zt.text);continue}case"paragraph":{Te+=this.renderer.paragraph(this.parseInline(zt.tokens));continue}case"text":{for(Ft=zt.tokens?this.parseInline(zt.tokens):zt.text;Fe+1<Qr&&J[Fe+1].type==="text";)zt=J[++Fe],Ft+=`
`+(zt.tokens?this.parseInline(zt.tokens):zt.text);Te+=he?this.renderer.paragraph(Ft):Ft;continue}default:{var wn='Token with "'+zt.type+'" type was not found.';if(this.options.silent){console.error(wn);return}else throw new Error(wn)}}return Te},Ue.parseInline=function(J,he){he=he||this.renderer;var Te="",Fe,$,Et=J.length;for(Fe=0;Fe<Et;Fe++)switch($=J[Fe],$.type){case"escape":{Te+=he.text($.text);break}case"html":{Te+=he.html($.text);break}case"link":{Te+=he.link($.href,$.title,this.parseInline($.tokens,he));break}case"image":{Te+=he.image($.href,$.title,$.text);break}case"strong":{Te+=he.strong(this.parseInline($.tokens,he));break}case"em":{Te+=he.em(this.parseInline($.tokens,he));break}case"codespan":{Te+=he.codespan($.text);break}case"br":{Te+=he.br();break}case"del":{Te+=he.del(this.parseInline($.tokens,he));break}case"text":{Te+=he.text($.text);break}default:{var Se='Token with "'+$.type+'" type was not found.';if(this.options.silent){console.error(Se);return}else throw new Error(Se)}}return Te},ke}(),st=X,Je=Ge,ct=De,yt=se,Lt=ve,xt=_e,bt=D.merge,Ct=D.checkSanitizeDeprecation,y=D.escape,S=Re.exports.getDefaults,rt=Re.exports.changeDefaults,H=Re.exports.defaults;function be(ke,Ue,Ke){if(typeof ke=="undefined"||ke===null)throw new Error("marked(): input parameter is undefined or null");if(typeof ke!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(ke)+", string expected");if(typeof Ue=="function"&&(Ke=Ue,Ue=null),Ue=bt({},be.defaults,Ue||{}),Ct(Ue),Ke){var J=Ue.highlight,he;try{he=st.lex(ke,Ue)}catch(Et){return Ke(Et)}var Te=function(Se){var Pt;if(!Se)try{Ue.walkTokens&&be.walkTokens(he,Ue.walkTokens),Pt=Je.parse(he,Ue)}catch(jt){Se=jt}return Ue.highlight=J,Se?Ke(Se):Ke(null,Pt)};if(!J||J.length<3||(delete Ue.highlight,!he.length))return Te();var Fe=0;be.walkTokens(he,function(Et){Et.type==="code"&&(Fe++,setTimeout(function(){J(Et.text,Et.lang,function(Se,Pt){if(Se)return Te(Se);Pt!=null&&Pt!==Et.text&&(Et.text=Pt,Et.escaped=!0),Fe--,Fe===0&&Te()})},0))}),Fe===0&&Te();return}try{var $=st.lex(ke,Ue);return Ue.walkTokens&&be.walkTokens($,Ue.walkTokens),Je.parse($,Ue)}catch(Et){if(Et.message+=`
Please report this to https://github.com/markedjs/marked.`,Ue.silent)return"<p>An error occurred:</p><pre>"+y(Et.message+"",!0)+"</pre>";throw Et}}be.options=be.setOptions=function(ke){return bt(be.defaults,ke),rt(be.defaults),be},be.getDefaults=S,be.defaults=H,be.use=function(ke){var Ue=bt({},ke);if(ke.renderer&&function(){var J=be.defaults.renderer||new yt,he=function($){var Et=J[$];J[$]=function(){for(var Se=arguments.length,Pt=new Array(Se),jt=0;jt<Se;jt++)Pt[jt]=arguments[jt];var qt=ke.renderer[$].apply(J,Pt);return qt===!1&&(qt=Et.apply(J,Pt)),qt}};for(var Te in ke.renderer)he(Te);Ue.renderer=J}(),ke.tokenizer&&function(){var J=be.defaults.tokenizer||new ct,he=function($){var Et=J[$];J[$]=function(){for(var Se=arguments.length,Pt=new Array(Se),jt=0;jt<Se;jt++)Pt[jt]=arguments[jt];var qt=ke.tokenizer[$].apply(J,Pt);return qt===!1&&(qt=Et.apply(J,Pt)),qt}};for(var Te in ke.tokenizer)he(Te);Ue.tokenizer=J}(),ke.walkTokens){var Ke=be.defaults.walkTokens;Ue.walkTokens=function(J){ke.walkTokens(J),Ke&&Ke(J)}}be.setOptions(Ue)},be.walkTokens=function(ke,Ue){for(var Ke=Ee(ke),J;!(J=Ke()).done;){var he=J.value;switch(Ue(he),he.type){case"table":{for(var Te=Ee(he.tokens.header),Fe;!(Fe=Te()).done;){var $=Fe.value;be.walkTokens($,Ue)}for(var Et=Ee(he.tokens.cells),Se;!(Se=Et()).done;)for(var Pt=Se.value,jt=Ee(Pt),qt;!(qt=jt()).done;){var gr=qt.value;be.walkTokens(gr,Ue)}break}case"list":{be.walkTokens(he.items,Ue);break}default:he.tokens&&be.walkTokens(he.tokens,Ue)}}},be.parseInline=function(ke,Ue){if(typeof ke=="undefined"||ke===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof ke!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(ke)+", string expected");Ue=bt({},be.defaults,Ue||{}),Ct(Ue);try{var Ke=st.lexInline(ke,Ue);return Ue.walkTokens&&be.walkTokens(Ke,Ue.walkTokens),Je.parseInline(Ke,Ue)}catch(J){if(J.message+=`
Please report this to https://github.com/markedjs/marked.`,Ue.silent)return"<p>An error occurred:</p><pre>"+y(J.message+"",!0)+"</pre>";throw J}},be.Parser=Je,be.parser=Je.parse,be.Renderer=yt,be.TextRenderer=Lt,be.Lexer=st,be.lexer=st.lex,be.Tokenizer=ct,be.Slugger=xt,be.parse=be;var er=be;return er})},11690:function(Nt){const Qe=/[&<>"']/,T=/[&<>"']/g,K=/[<>"']|&(?!#?\w+;)/,re=/[<>"']|&(?!#?\w+;)/g,Ee={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Re=ee=>Ee[ee];function pe(ee,oe){if(oe){if(Qe.test(ee))return ee.replace(T,Re)}else if(K.test(ee))return ee.replace(re,Re);return ee}const Z=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function ge(ee){return ee.replace(Z,(oe,Ae)=>(Ae=Ae.toLowerCase(),Ae==="colon"?":":Ae.charAt(0)==="#"?Ae.charAt(1)==="x"?String.fromCharCode(parseInt(Ae.substring(2),16)):String.fromCharCode(+Ae.substring(1)):""))}const de=/(^|[^\[])\^/g;function o(ee,oe){ee=ee.source||ee,oe=oe||"";const Ae={replace:(we,Ne)=>(Ne=Ne.source||Ne,Ne=Ne.replace(de,"$1"),ee=ee.replace(we,Ne),Ae),getRegex:()=>new RegExp(ee,oe)};return Ae}const z=/[^\w:]/g,M=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function x(ee,oe,Ae){if(ee){let we;try{we=decodeURIComponent(ge(Ae)).replace(z,"").toLowerCase()}catch(Ne){return null}if(we.indexOf("javascript:")===0||we.indexOf("vbscript:")===0||we.indexOf("data:")===0)return null}oe&&!M.test(Ae)&&(Ae=te(oe,Ae));try{Ae=encodeURI(Ae).replace(/%25/g,"%")}catch(we){return null}return Ae}const h={},E=/^[^:]+:\/*[^/]*$/,b=/^([^:]+:)[\s\S]*$/,Y=/^([^:]+:\/*[^/]*)[\s\S]*$/;function te(ee,oe){h[" "+ee]||(E.test(ee)?h[" "+ee]=ee+"/":h[" "+ee]=ce(ee,"/",!0)),ee=h[" "+ee];const Ae=ee.indexOf(":")===-1;return oe.substring(0,2)==="//"?Ae?oe:ee.replace(b,"$1")+oe:oe.charAt(0)==="/"?Ae?oe:ee.replace(Y,"$1")+oe:ee+oe}const L={exec:function(){}};function N(ee){let oe=1,Ae,we;for(;oe<arguments.length;oe++){Ae=arguments[oe];for(we in Ae)Object.prototype.hasOwnProperty.call(Ae,we)&&(ee[we]=Ae[we])}return ee}function U(ee,oe){const Ae=ee.replace(/\|/g,(W,P,q)=>{let D=!1,ie=P;for(;--ie>=0&&q[ie]==="\\";)D=!D;return D?"|":" |"}),we=Ae.split(/ \|/);let Ne=0;if(we.length>oe)we.splice(oe);else for(;we.length<oe;)we.push("");for(;Ne<we.length;Ne++)we[Ne]=we[Ne].trim().replace(/\\\|/g,"|");return we}function ce(ee,oe,Ae){const we=ee.length;if(we===0)return"";let Ne=0;for(;Ne<we;){const W=ee.charAt(we-Ne-1);if(W===oe&&!Ae)Ne++;else if(W!==oe&&Ae)Ne++;else break}return ee.substr(0,we-Ne)}function w(ee,oe){if(ee.indexOf(oe[1])===-1)return-1;const Ae=ee.length;let we=0,Ne=0;for(;Ne<Ae;Ne++)if(ee[Ne]==="\\")Ne++;else if(ee[Ne]===oe[0])we++;else if(ee[Ne]===oe[1]&&(we--,we<0))return Ne;return-1}function j(ee){ee&&ee.sanitize&&!ee.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function ae(ee,oe){if(oe<1)return"";let Ae="";for(;oe>1;)oe&1&&(Ae+=ee),oe>>=1,ee+=ee;return Ae+ee}Nt.exports={escape:pe,unescape:ge,edit:o,cleanUrl:x,resolveUrl:te,noopTest:L,merge:N,splitCells:U,rtrim:ce,findClosingBracket:w,checkSanitizeDeprecation:j,repeatString:ae}},75918:function(Nt,Qe,T){"use strict";T.d(Qe,{Wi:function(){return Z},Z0:function(){return ge},aU:function(){return pe},eZ:function(){return o},wY:function(){return de}});var K=T(4348),re=T(69323),Ee=T(13268),Re=function(z,M,x,h){function E(b){return b instanceof x?b:new x(function(Y){Y(b)})}return new(x||(x=Promise))(function(b,Y){function te(U){try{N(h.next(U))}catch(ce){Y(ce)}}function L(U){try{N(h.throw(U))}catch(ce){Y(ce)}}function N(U){U.done?b(U.value):E(U.value).then(te,L)}N((h=h.apply(z,M||[])).next())})};class pe extends re.JT{constructor(M,x="",h="",E=!0,b){super(),this._onDidChange=this._register(new K.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=M,this._label=x,this._cssClass=h,this._enabled=E,this._actionCallback=b}get id(){return this._id}get label(){return this._label}set label(M){this._setLabel(M)}_setLabel(M){this._label!==M&&(this._label=M,this._onDidChange.fire({label:M}))}get tooltip(){return this._tooltip||""}set tooltip(M){this._setTooltip(M)}_setTooltip(M){this._tooltip!==M&&(this._tooltip=M,this._onDidChange.fire({tooltip:M}))}get class(){return this._cssClass}set class(M){this._setClass(M)}_setClass(M){this._cssClass!==M&&(this._cssClass=M,this._onDidChange.fire({class:M}))}get enabled(){return this._enabled}set enabled(M){this._setEnabled(M)}_setEnabled(M){this._enabled!==M&&(this._enabled=M,this._onDidChange.fire({enabled:M}))}get checked(){return this._checked}set checked(M){this._setChecked(M)}_setChecked(M){this._checked!==M&&(this._checked=M,this._onDidChange.fire({checked:M}))}run(M,x){return Re(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(M))})}}class Z extends re.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new K.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new K.Q5),this.onDidRun=this._onDidRun.event}run(M,x){return Re(this,void 0,void 0,function*(){if(!M.enabled)return;this._onBeforeRun.fire({action:M});let h;try{yield this.runAction(M,x)}catch(E){h=E}this._onDidRun.fire({action:M,error:h})})}runAction(M,x){return Re(this,void 0,void 0,function*(){yield M.run(x)})}}class ge extends pe{constructor(M){super(ge.ID,M,M?"separator text":"separator"),this.checked=!1,this.enabled=!1}}ge.ID="vs.actions.separator";class de{constructor(M,x,h,E){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=M,this.label=x,this.class=E,this._actions=h}get actions(){return this._actions}dispose(){}run(){return Re(this,void 0,void 0,function*(){})}}class o extends pe{constructor(){super(o.ID,Ee.N("submenu.empty","(empty)"),void 0,!1)}}o.ID="vs.actions.empty"},76068:function(Nt,Qe,T){"use strict";T.d(Qe,{ok:function(){return K}});function K(re,Ee){if(!re)throw new Error(Ee?`Assertion failed (${Ee})`:"Assertion Failed")}},52615:function(Nt,Qe,T){"use strict";T.d(Qe,{CM:function(){return pe},JL:function(){return Z},dT:function(){return de},fK:function(){return Re},lA:function(){return ge}});var K=T(4348);class re{constructor(){this._icons=new Map,this._onDidRegister=new K.Q5}add(z){const M=this._icons.get(z.id);M?z.description?M.description=z.description:console.error(`Duplicate registration of codicon ${z.id}`):(this._icons.set(z.id,z),this._onDidRegister.fire(z))}get(z){return this._icons.get(z)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const Ee=new re,Re=Ee;function pe(o,z){return new ge(o,z)}function Z(o){return o?o.replace(/\$\((.*?)\)/g,(z,M)=>` ${M} `).trim():""}class ge{constructor(z,M,x){this.id=z,this.definition=M,this.description=x,Ee.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var de;(function(o){o.iconNameSegment="[A-Za-z0-9]+",o.iconNameExpression="[A-Za-z0-9\\-]+",o.iconModifierExpression="~[A-Za-z]+";const z=new RegExp(`^(${o.iconNameExpression})(${o.iconModifierExpression})?$`);function M(E){if(E instanceof ge)return["codicon","codicon-"+E.id];const b=z.exec(E.id);if(!b)return M(ge.error);let[,Y,te]=b;const L=["codicon","codicon-"+Y];return te&&L.push("codicon-modifier-"+te.substr(1)),L}o.asClassNameArray=M;function x(E){return M(E).join(" ")}o.asClassName=x;function h(E){return"."+M(E).join(".")}o.asCSSSelector=h})(de||(de={})),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"})}(ge||(ge={}))},79881:function(Nt,Qe,T){"use strict";T.d(Qe,{B8:function(){return M},Cp:function(){return Re},F0:function(){return de},L6:function(){return z},VV:function(){return ge},b1:function(){return o},dL:function(){return Ee},ri:function(){return pe}});class K{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(h){setTimeout(()=>{throw h.stack?new Error(h.message+`
`+h.stack):h},0)}}emit(h){this.listeners.forEach(E=>{E(h)})}onUnexpectedError(h){this.unexpectedErrorHandler(h),this.emit(h)}onUnexpectedExternalError(h){this.unexpectedErrorHandler(h)}}const re=new K;function Ee(x){ge(x)||re.onUnexpectedError(x)}function Re(x){ge(x)||re.onUnexpectedExternalError(x)}function pe(x){if(x instanceof Error){let{name:h,message:E}=x;const b=x.stacktrace||x.stack;return{$isError:!0,name:h,message:E,stack:b}}return x}const Z="Canceled";function ge(x){return x instanceof Error&&x.name===Z&&x.message===Z}function de(){const x=new Error(Z);return x.name=x.message,x}function o(x){return x?new Error(`Illegal argument: ${x}`):new Error("Illegal argument")}function z(x){return x?new Error(`Illegal state: ${x}`):new Error("Illegal state")}class M extends Error{constructor(h){super("NotSupported"),h&&(this.message=h)}}},4348:function(Nt,Qe,T){"use strict";T.d(Qe,{D0:function(){return M},E7:function(){return x},K3:function(){return z},Q5:function(){return o},ZD:function(){return h},ju:function(){return pe}});var K=T(79881),re=T(69323),Ee=T(34502),Re=T(95830),pe;(function(E){E.None=()=>re.JT.None;function b(q){return(D,ie=null,F)=>{let g=!1,v;return v=q(I=>{if(!g)return v?v.dispose():g=!0,D.call(ie,I)},null,F),g&&v.dispose(),v}}E.once=b;function Y(q,D){return w((ie,F=null,g)=>q(v=>ie.call(F,D(v)),null,g))}E.map=Y;function te(q,D){return w((ie,F=null,g)=>q(v=>{D(v),ie.call(F,v)},null,g))}E.forEach=te;function L(q,D){return w((ie,F=null,g)=>q(v=>D(v)&&ie.call(F,v),null,g))}E.filter=L;function N(q){return q}E.signal=N;function U(...q){return(D,ie=null,F)=>(0,re.F8)(...q.map(g=>g(v=>D.call(ie,v),null,F)))}E.any=U;function ce(q,D,ie){let F=ie;return Y(q,g=>(F=D(F,g),F))}E.reduce=ce;function w(q){let D;const ie=new o({onFirstListenerAdd(){D=q(ie.fire,ie)},onLastListenerRemove(){D.dispose()}});return ie.event}function j(q,D,ie=100,F=!1,g){let v,I,G,xe=0;const De=new o({leakWarningThreshold:g,onFirstListenerAdd(){v=q(Ie=>{xe++,I=D(I,Ie),F&&!G&&(De.fire(I),I=void 0),clearTimeout(G),G=setTimeout(()=>{const $e=I;I=void 0,G=void 0,(!F||xe>1)&&De.fire($e),xe=0},ie)})},onLastListenerRemove(){v.dispose()}});return De.event}E.debounce=j;function ae(q,D=(ie,F)=>ie===F){let ie=!0,F;return L(q,g=>{const v=ie||!D(g,F);return ie=!1,F=g,v})}E.latch=ae;function ee(q,D){return[E.filter(q,D),E.filter(q,ie=>!D(ie))]}E.split=ee;function oe(q,D=!1,ie=[]){let F=ie.slice(),g=q(G=>{F?F.push(G):I.fire(G)});const v=()=>{F&&F.forEach(G=>I.fire(G)),F=null},I=new o({onFirstListenerAdd(){g||(g=q(G=>I.fire(G)))},onFirstListenerDidAdd(){F&&(D?setTimeout(v):v())},onLastListenerRemove(){g&&g.dispose(),g=null}});return I.event}E.buffer=oe;class Ae{constructor(D){this.event=D}map(D){return new Ae(Y(this.event,D))}forEach(D){return new Ae(te(this.event,D))}filter(D){return new Ae(L(this.event,D))}reduce(D,ie){return new Ae(ce(this.event,D,ie))}latch(){return new Ae(ae(this.event))}debounce(D,ie=100,F=!1,g){return new Ae(j(this.event,D,ie,F,g))}on(D,ie,F){return this.event(D,ie,F)}once(D,ie,F){return b(this.event)(D,ie,F)}}function we(q){return new Ae(q)}E.chain=we;function Ne(q,D,ie=F=>F){const F=(...G)=>I.fire(ie(...G)),g=()=>q.on(D,F),v=()=>q.removeListener(D,F),I=new o({onFirstListenerAdd:g,onLastListenerRemove:v});return I.event}E.fromNodeEventEmitter=Ne;function W(q,D,ie=F=>F){const F=(...G)=>I.fire(ie(...G)),g=()=>q.addEventListener(D,F),v=()=>q.removeEventListener(D,F),I=new o({onFirstListenerAdd:g,onLastListenerRemove:v});return I.event}E.fromDOMEventEmitter=W;function P(q){return new Promise(D=>b(q)(D))}E.toPromise=P})(pe||(pe={}));class Z{constructor(b){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${b}_${Z._idPool++}`}start(b){this._stopWatch=new Re.G(!0),this._listenerCount=b}stop(){if(this._stopWatch){const b=this._stopWatch.elapsed();this._elapsedOverall+=b,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${b.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}Z._idPool=0;let ge=-1;class de{constructor(b,Y=Math.random().toString(18).slice(2,5)){this.customThreshold=b,this.name=Y,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(b){let Y=ge;if(typeof this.customThreshold=="number"&&(Y=this.customThreshold),Y<=0||b<Y)return;this._stacks||(this._stacks=new Map);const te=new Error().stack.split(`
`).slice(3).join(`
`),L=this._stacks.get(te)||0;if(this._stacks.set(te,L+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=Y*.5;let N,U=0;for(const[ce,w]of this._stacks)(!N||U<w)&&(N=ce,U=w);console.warn(`[${this.name}] potential listener LEAK detected, having ${b} listeners already. MOST frequent listener (${U}):`),console.warn(N)}return()=>{const N=this._stacks.get(te)||0;this._stacks.set(te,N-1)}}}class o{constructor(b){var Y;this._disposed=!1,this._options=b,this._leakageMon=ge>0?new de(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((Y=this._options)===null||Y===void 0)&&Y._profName?new Z(this._options._profName):void 0}get event(){return this._event||(this._event=(b,Y,te)=>{var L;this._listeners||(this._listeners=new Ee.S);const N=this._listeners.isEmpty();N&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const U=this._listeners.push(Y?[b,Y]:b);N&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,b,Y);const ce=(L=this._leakageMon)===null||L===void 0?void 0:L.check(this._listeners.size),w=(0,re.OF)(()=>{ce&&ce(),this._disposed||(U(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return te instanceof re.SL?te.add(w):Array.isArray(te)&&te.push(w),w}),this._event}fire(b){var Y,te;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new Ee.S);for(let L of this._listeners)this._deliveryQueue.push([L,b]);for((Y=this._perfMon)===null||Y===void 0||Y.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[L,N]=this._deliveryQueue.shift();try{typeof L=="function"?L.call(void 0,N):L[0].call(L[1],N)}catch(U){(0,K.dL)(U)}}(te=this._perfMon)===null||te===void 0||te.stop()}}dispose(){var b,Y,te,L,N;this._disposed||(this._disposed=!0,(b=this._listeners)===null||b===void 0||b.clear(),(Y=this._deliveryQueue)===null||Y===void 0||Y.clear(),(L=(te=this._options)===null||te===void 0?void 0:te.onLastListenerRemove)===null||L===void 0||L.call(te),(N=this._leakageMon)===null||N===void 0||N.dispose())}}class z extends o{constructor(b){super(b),this._isPaused=0,this._eventQueue=new Ee.S,this._mergeFn=b==null?void 0:b.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const b=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(b))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(b){this._listeners&&(this._isPaused!==0?this._eventQueue.push(b):super.fire(b))}}class M extends z{constructor(b){var Y;super(b),this._delay=(Y=b.delay)!==null&&Y!==void 0?Y:100}fire(b){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(b)}}class x{constructor(){this.buffers=[]}wrapEvent(b){return(Y,te,L)=>b(N=>{const U=this.buffers[this.buffers.length-1];U?U.push(()=>Y.call(te,N)):Y.call(te,N)},void 0,L)}bufferEvents(b){const Y=[];this.buffers.push(Y);const te=b();return this.buffers.pop(),Y.forEach(L=>L()),te}}class h{constructor(){this.listening=!1,this.inputEvent=pe.None,this.inputEventListener=re.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(b){this.inputEvent=b,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=b(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(Nt,Qe,T){"use strict";T.d(Qe,{I:function(){return K}});function K(re){const Ee=this;let Re=!1,pe;return function(){return Re||(Re=!0,pe=re.apply(Ee,arguments)),pe}}},88226:function(Nt,Qe,T){"use strict";T.d(Qe,{$:function(){return K}});var K;(function(re){function Ee(U){return U&&typeof U=="object"&&typeof U[Symbol.iterator]=="function"}re.is=Ee;const Re=Object.freeze([]);function pe(){return Re}re.empty=pe;function*Z(U){yield U}re.single=Z;function ge(U){return U||Re}re.from=ge;function de(U){return!U||U[Symbol.iterator]().next().done===!0}re.isEmpty=de;function o(U){return U[Symbol.iterator]().next().value}re.first=o;function z(U,ce){for(const w of U)if(ce(w))return!0;return!1}re.some=z;function M(U,ce){for(const w of U)if(ce(w))return w}re.find=M;function*x(U,ce){for(const w of U)ce(w)&&(yield w)}re.filter=x;function*h(U,ce){let w=0;for(const j of U)yield ce(j,w++)}re.map=h;function*E(...U){for(const ce of U)for(const w of ce)yield w}re.concat=E;function*b(U){for(const ce of U)for(const w of ce)yield w}re.concatNested=b;function Y(U,ce,w){let j=w;for(const ae of U)j=ce(j,ae);return j}re.reduce=Y;function*te(U,ce,w=U.length){for(ce<0&&(ce+=U.length),w<0?w+=U.length:w>U.length&&(w=U.length);ce<w;ce++)yield U[ce]}re.slice=te;function L(U,ce=Number.POSITIVE_INFINITY){const w=[];if(ce===0)return[w,U];const j=U[Symbol.iterator]();for(let ae=0;ae<ce;ae++){const ee=j.next();if(ee.done)return[w,re.empty()];w.push(ee.value)}return[w,{[Symbol.iterator](){return j}}]}re.consume=L;function N(U,ce,w=(j,ae)=>j===ae){const j=U[Symbol.iterator](),ae=ce[Symbol.iterator]();for(;;){const ee=j.next(),oe=ae.next();if(ee.done!==oe.done)return!1;if(ee.done)return!0;if(!w(ee.value,oe.value))return!1}}re.equals=N})(K||(K={}))},69323:function(Nt,Qe,T){"use strict";T.d(Qe,{B9:function(){return h},F8:function(){return E},JT:function(){return te},Jz:function(){return N},OF:function(){return b},SL:function(){return Y},Wf:function(){return x},XK:function(){return L},dk:function(){return z}});var K=T(17845),re=T(88226);const Ee=!1;let Re=null;function pe(U){Re=U}if(Ee){const U="__is_disposable_tracked__";pe(new class{trackDisposable(ce){const w=new Error("Potentially leaked disposable").stack;setTimeout(()=>{ce[U]||console.log(w)},3e3)}setParent(ce,w){if(ce&&ce!==te.None)try{ce[U]=!0}catch(j){}}markAsDisposed(ce){if(ce&&ce!==te.None)try{ce[U]=!0}catch(w){}}markAsSingleton(ce){}})}function Z(U){return Re==null||Re.trackDisposable(U),U}function ge(U){Re==null||Re.markAsDisposed(U)}function de(U,ce){Re==null||Re.setParent(U,ce)}function o(U,ce){if(Re)for(const w of U)Re.setParent(w,ce)}function z(U){return Re==null||Re.markAsSingleton(U),U}class M extends Error{constructor(ce){super(`Encountered errors while disposing of store. Errors: [${ce.join(", ")}]`),this.errors=ce}}function x(U){return typeof U.dispose=="function"&&U.dispose.length===0}function h(U){if(re.$.is(U)){let ce=[];for(const w of U)if(w)try{w.dispose()}catch(j){ce.push(j)}if(ce.length===1)throw ce[0];if(ce.length>1)throw new M(ce);return Array.isArray(U)?[]:U}else if(U)return U.dispose(),U}function E(...U){const ce=b(()=>h(U));return o(U,ce),ce}function b(U){const ce=Z({dispose:(0,K.I)(()=>{ge(ce),U()})});return ce}class Y{constructor(){this._toDispose=new Set,this._isDisposed=!1,Z(this)}dispose(){this._isDisposed||(ge(this),this._isDisposed=!0,this.clear())}clear(){try{h(this._toDispose.values())}finally{this._toDispose.clear()}}add(ce){if(!ce)return ce;if(ce===this)throw new Error("Cannot register a disposable on itself!");return de(ce,this),this._isDisposed?Y.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(ce),ce}}Y.DISABLE_DISPOSED_WARNING=!1;class te{constructor(){this._store=new Y,Z(this),de(this._store,this)}dispose(){ge(this),this._store.dispose()}_register(ce){if(ce===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(ce)}}te.None=Object.freeze({dispose(){}});class L{constructor(){this._isDisposed=!1,Z(this)}get value(){return this._isDisposed?void 0:this._value}set value(ce){var w;this._isDisposed||ce===this._value||((w=this._value)===null||w===void 0||w.dispose(),ce&&de(ce,this),this._value=ce)}clear(){this.value=void 0}dispose(){var ce;this._isDisposed=!0,ge(this),(ce=this._value)===null||ce===void 0||ce.dispose(),this._value=void 0}clearAndLeak(){const ce=this._value;return this._value=void 0,ce&&de(ce,null),ce}}class N{constructor(ce){this.object=ce}dispose(){}}},34502:function(Nt,Qe,T){"use strict";T.d(Qe,{S:function(){return re}});class K{constructor(Re){this.element=Re,this.next=K.Undefined,this.prev=K.Undefined}}K.Undefined=new K(void 0);class re{constructor(){this._first=K.Undefined,this._last=K.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===K.Undefined}clear(){let Re=this._first;for(;Re!==K.Undefined;){const pe=Re.next;Re.prev=K.Undefined,Re.next=K.Undefined,Re=pe}this._first=K.Undefined,this._last=K.Undefined,this._size=0}unshift(Re){return this._insert(Re,!1)}push(Re){return this._insert(Re,!0)}_insert(Re,pe){const Z=new K(Re);if(this._first===K.Undefined)this._first=Z,this._last=Z;else if(pe){const de=this._last;this._last=Z,Z.prev=de,de.next=Z}else{const de=this._first;this._first=Z,Z.next=de,de.prev=Z}this._size+=1;let ge=!1;return()=>{ge||(ge=!0,this._remove(Z))}}shift(){if(this._first!==K.Undefined){const Re=this._first.element;return this._remove(this._first),Re}}pop(){if(this._last!==K.Undefined){const Re=this._last.element;return this._remove(this._last),Re}}_remove(Re){if(Re.prev!==K.Undefined&&Re.next!==K.Undefined){const pe=Re.prev;pe.next=Re.next,Re.next.prev=pe}else Re.prev===K.Undefined&&Re.next===K.Undefined?(this._first=K.Undefined,this._last=K.Undefined):Re.next===K.Undefined?(this._last=this._last.prev,this._last.next=K.Undefined):Re.prev===K.Undefined&&(this._first=this._first.next,this._first.prev=K.Undefined);this._size-=1}*[Symbol.iterator](){let Re=this._first;for(;Re!==K.Undefined;)yield Re.element,Re=Re.next}}},23345:function(Nt,Qe,T){"use strict";T.d(Qe,{$L:function(){return j},ED:function(){return N},IJ:function(){return ce},OS:function(){return Ae},WE:function(){return ee},dz:function(){return U},gn:function(){return ae},li:function(){return b},r:function(){return W},tY:function(){return w},xS:function(){return oe}});var K=T(97671),re;const Ee="en";let Re=!1,pe=!1,Z=!1,ge=!1,de=!1,o=!1,z=!1,M,x=null,h=null,E;const b=typeof self=="object"?self:typeof T.g=="object"?T.g:{};let Y;typeof b.vscode!="undefined"&&typeof b.vscode.process!="undefined"?Y=b.vscode.process:typeof K!="undefined"&&(Y=K);const te=typeof((re=Y==null?void 0:Y.versions)===null||re===void 0?void 0:re.electron)=="string"&&Y.type==="renderer";if(typeof navigator=="object"&&!te)E=navigator.userAgent,Re=E.indexOf("Windows")>=0,pe=E.indexOf("Macintosh")>=0,z=(E.indexOf("Macintosh")>=0||E.indexOf("iPad")>=0||E.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Z=E.indexOf("Linux")>=0,o=!0,M=navigator.language,x=M;else if(typeof Y=="object"){Re=Y.platform==="win32",pe=Y.platform==="darwin",Z=Y.platform==="linux",ge=Z&&!!Y.env.SNAP&&!!Y.env.SNAP_REVISION,M=Ee,x=Ee;const P=Y.env.VSCODE_NLS_CONFIG;if(P)try{const q=JSON.parse(P),D=q.availableLanguages["*"];M=q.locale,x=D||Ee,h=q._translationsConfigFile}catch(q){}de=!0}else console.error("Unable to resolve platform.");let L=0;pe?L=1:Re?L=3:Z&&(L=2);const N=Re,U=pe,ce=Z,w=de,j=o,ae=z,ee=E,oe=function(){if(b.setImmediate)return b.setImmediate.bind(b);if(typeof b.postMessage=="function"&&!b.importScripts){let D=[];b.addEventListener("message",F=>{if(F.data&&F.data.vscodeSetImmediateId)for(let g=0,v=D.length;g<v;g++){const I=D[g];if(I.id===F.data.vscodeSetImmediateId){D.splice(g,1),I.callback();return}}});let ie=0;return F=>{const g=++ie;D.push({id:g,callback:F}),b.postMessage({vscodeSetImmediateId:g},"*")}}if(typeof(Y==null?void 0:Y.nextTick)=="function")return Y.nextTick.bind(Y);const q=Promise.resolve();return D=>q.then(D)}(),Ae=pe||z?2:Re?1:3;let we=!0,Ne=!1;function W(){if(!Ne){Ne=!0;const P=new Uint8Array(2);P[0]=1,P[1]=2,we=new Uint16Array(P.buffer)[0]===513}return we}},95830:function(Nt,Qe,T){"use strict";T.d(Qe,{G:function(){return Ee}});var K=T(23345);const re=K.li.performance&&typeof K.li.performance.now=="function";class Ee{constructor(pe){this._highResolution=re&&pe,this._startTime=this._now(),this._stopTime=-1}static create(pe=!0){return new Ee(pe)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?K.li.performance.now():Date.now()}}},82983:function(Nt,Qe,T){"use strict";T.d(Qe,{$i:function(){return xe},C8:function(){return Ye},GF:function(){return M},HO:function(){return ie},IO:function(){return x},K7:function(){return qe},Kw:function(){return mt},LC:function(){return b},Mh:function(){return oe},P1:function(){return Ae},PJ:function(){return kt},Qe:function(){return De},R1:function(){return z},RP:function(){return I},S6:function(){return gt},TT:function(){return N},Ut:function(){return g},V8:function(){return Y},WU:function(){return Ee},YK:function(){return Ne},YU:function(){return Re},ZG:function(){return we},ZH:function(){return P},ab:function(){return Ie},c1:function(){return Ve},df:function(){return j},ec:function(){return pe},fi:function(){return Tt},fy:function(){return Z},j3:function(){return ge},j_:function(){return ce},m5:function(){return K},mK:function(){return w},mr:function(){return h},oH:function(){return ne},oL:function(){return de},ok:function(){return ee},ow:function(){return te},qq:function(){return ae},qu:function(){return L},rL:function(){return W},uS:function(){return ht},un:function(){return o},uq:function(){return E},vH:function(){return D},xe:function(){return $e},zY:function(){return U}});function K(R){return!R||typeof R!="string"?!0:R.trim().length===0}const re=/{(\d+)}/g;function Ee(R,...se){return se.length===0?R:R.replace(re,function(ve,_e){const Oe=parseInt(_e,10);return isNaN(Oe)||Oe<0||Oe>=se.length?ve:se[Oe]})}function Re(R){return R.replace(/[<>&]/g,function(se){switch(se){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return se}})}function pe(R){return R.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Z(R,se=" "){const ve=ge(R,se);return de(ve,se)}function ge(R,se){if(!R||!se)return R;const ve=se.length;if(ve===0||R.length===0)return R;let _e=0;for(;R.indexOf(se,_e)===_e;)_e=_e+ve;return R.substring(_e)}function de(R,se){if(!R||!se)return R;const ve=se.length,_e=R.length;if(ve===0||_e===0)return R;let Oe=_e,Be=-1;for(;Be=R.lastIndexOf(se,Oe-1),!(Be===-1||Be+ve!==Oe);){if(Be===0)return"";Oe=Be}return R.substring(0,Oe)}function o(R){return R.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function z(R){return R.replace(/\*/g,"")}function M(R,se,ve={}){if(!R)throw new Error("Cannot create regex from empty string");se||(R=pe(R)),ve.wholeWord&&(/\B/.test(R.charAt(0))||(R="\\b"+R),/\B/.test(R.charAt(R.length-1))||(R=R+"\\b"));let _e="";return ve.global&&(_e+="g"),ve.matchCase||(_e+="i"),ve.multiline&&(_e+="m"),ve.unicode&&(_e+="u"),new RegExp(R,_e)}function x(R){return R.source==="^"||R.source==="^$"||R.source==="$"||R.source==="^\\s*$"?!1:!!(R.exec("")&&R.lastIndex===0)}function h(R){return(R.global?"g":"")+(R.ignoreCase?"i":"")+(R.multiline?"m":"")+(R.unicode?"u":"")}function E(R){return R.split(/\r\n|\r|\n/)}function b(R){for(let se=0,ve=R.length;se<ve;se++){const _e=R.charCodeAt(se);if(_e!==32&&_e!==9)return se}return-1}function Y(R,se=0,ve=R.length){for(let _e=se;_e<ve;_e++){const Oe=R.charCodeAt(_e);if(Oe!==32&&Oe!==9)return R.substring(se,_e)}return R.substring(se,ve)}function te(R,se=R.length-1){for(let ve=se;ve>=0;ve--){const _e=R.charCodeAt(ve);if(_e!==32&&_e!==9)return ve}return-1}function L(R,se){return R<se?-1:R>se?1:0}function N(R,se,ve=0,_e=R.length,Oe=0,Be=se.length){for(;ve<_e&&Oe<Be;ve++,Oe++){let We=R.charCodeAt(ve),Ge=se.charCodeAt(Oe);if(We<Ge)return-1;if(We>Ge)return 1}const je=_e-ve,et=Be-Oe;return je<et?-1:je>et?1:0}function U(R,se){return ce(R,se,0,R.length,0,se.length)}function ce(R,se,ve=0,_e=R.length,Oe=0,Be=se.length){for(;ve<_e&&Oe<Be;ve++,Oe++){let We=R.charCodeAt(ve),Ge=se.charCodeAt(Oe);if(We===Ge)continue;if(We>=128||Ge>=128)return N(R.toLowerCase(),se.toLowerCase(),ve,_e,Oe,Be);w(We)&&(We-=32),w(Ge)&&(Ge-=32);const st=We-Ge;if(st!==0)return st}const je=_e-ve,et=Be-Oe;return je<et?-1:je>et?1:0}function w(R){return R>=97&&R<=122}function j(R){return R>=65&&R<=90}function ae(R,se){return R.length===se.length&&ce(R,se)===0}function ee(R,se){const ve=se.length;return se.length>R.length?!1:ce(R,se,0,ve)===0}function oe(R,se){let ve,_e=Math.min(R.length,se.length);for(ve=0;ve<_e;ve++)if(R.charCodeAt(ve)!==se.charCodeAt(ve))return ve;return _e}function Ae(R,se){let ve,_e=Math.min(R.length,se.length);const Oe=R.length-1,Be=se.length-1;for(ve=0;ve<_e;ve++)if(R.charCodeAt(Oe-ve)!==se.charCodeAt(Be-ve))return ve;return _e}function we(R){return 55296<=R&&R<=56319}function Ne(R){return 56320<=R&&R<=57343}function W(R,se){return(R-55296<<10)+(se-56320)+65536}function P(R,se,ve){const _e=R.charCodeAt(ve);if(we(_e)&&ve+1<se){const Oe=R.charCodeAt(ve+1);if(Ne(Oe))return W(_e,Oe)}return _e}function q(R,se){const ve=R.charCodeAt(se-1);if(Ne(ve)&&se>1){const _e=R.charCodeAt(se-2);if(we(_e))return W(_e,ve)}return ve}function D(R,se){const ve=St.getInstance(),_e=se,Oe=R.length,Be=P(R,Oe,se);se+=Be>=65536?2:1;let je=ve.getGraphemeBreakType(Be);for(;se<Oe;){const et=P(R,Oe,se),We=ve.getGraphemeBreakType(et);if(Tt(je,We))break;se+=et>=65536?2:1,je=We}return se-_e}function ie(R,se){const ve=St.getInstance(),_e=se,Oe=q(R,se);se-=Oe>=65536?2:1;let Be=ve.getGraphemeBreakType(Oe);for(;se>0;){const je=q(R,se),et=ve.getGraphemeBreakType(je);if(Tt(et,Be))break;se-=je>=65536?2:1,Be=et}return _e-se}const F=/(?:[\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 g(R){return F.test(R)}const v=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function I(R){return v.test(R)}const G=/^[\t\n\r\x20-\x7E]*$/;function xe(R){return G.test(R)}const De=/[\u2028\u2029]/;function Ie(R){return De.test(R)}function $e(R){for(let se=0,ve=R.length;se<ve;se++)if(qe(R.charCodeAt(se)))return!0;return!1}function qe(R){return R=+R,R>=11904&&R<=55215||R>=63744&&R<=64255||R>=65281&&R<=65374}function Ye(R){return R>=127462&&R<=127487||R===8986||R===8987||R===9200||R===9203||R>=9728&&R<=10175||R===11088||R===11093||R>=127744&&R<=128591||R>=128640&&R<=128764||R>=128992&&R<=129003||R>=129280&&R<=129535||R>=129648&&R<=129750}const Ve="\uFEFF";function ht(R){return!!(R&&R.length>0&&R.charCodeAt(0)===65279)}function mt(R,se=!1){return R?(se&&(R=R.replace(/\\./g,"")),R.toLowerCase()!==R):!1}function kt(R){return R=R%(2*26),R<26?String.fromCharCode(97+R):String.fromCharCode(65+R-26)}function gt(R){return St.getInstance().getGraphemeBreakType(R)}function Tt(R,se){return R===0?se!==5&&se!==7:R===2&&se===3?!1:R===4||R===2||R===3||se===4||se===2||se===3?!0:!(R===8&&(se===8||se===9||se===11||se===12)||(R===11||R===9)&&(se===9||se===10)||(R===12||R===10)&&se===10||se===5||se===13||se===7||R===1||R===13&&se===14||R===6&&se===6)}class St{constructor(){this._data=ue()}static getInstance(){return St._INSTANCE||(St._INSTANCE=new St),St._INSTANCE}getGraphemeBreakType(se){if(se<32)return se===10?3:se===13?2:4;if(se<127)return 0;const ve=this._data,_e=ve.length/3;let Oe=1;for(;Oe<=_e;)if(se<ve[3*Oe])Oe=2*Oe;else if(se>ve[3*Oe+1])Oe=2*Oe+1;else return ve[3*Oe+2];return 0}}St._INSTANCE=null;function ue(){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 ne(R,se){if(R===0)return 0;const ve=X(R,se);if(ve!==void 0)return ve;const _e=q(se,R);return R-=Le(_e),R}function X(R,se){let ve=q(se,R);for(R-=Le(ve);Pe(ve)||ve===65039||ve===8419;){if(R===0)return;ve=q(se,R),R-=Le(ve)}if(Ye(ve)){if(R>=0){const _e=q(se,R);_e===8205&&(R-=Le(_e))}return R}}function Le(R){return R>=65536?2:1}function Pe(R){return 127995<=R&&R<=127999}},72999:function(Nt,Qe,T){"use strict";T.d(Qe,{$E:function(){return b},$K:function(){return ge},D8:function(){return x},HD:function(){return re},IU:function(){return Y},Jp:function(){return de},Kn:function(){return Ee},cW:function(){return z},f6:function(){return te},hj:function(){return Re},jn:function(){return pe},kJ:function(){return K},mf:function(){return M},o8:function(){return Z},p_:function(){return o},vE:function(){return L}});function K(N){return Array.isArray(N)}function re(N){return typeof N=="string"}function Ee(N){return typeof N=="object"&&N!==null&&!Array.isArray(N)&&!(N instanceof RegExp)&&!(N instanceof Date)}function Re(N){return typeof N=="number"&&!isNaN(N)}function pe(N){return N===!0||N===!1}function Z(N){return typeof N=="undefined"}function ge(N){return!de(N)}function de(N){return Z(N)||N===null}function o(N,U){if(!N)throw new Error(U?`Unexpected type, expected '${U}'`:"Unexpected type")}function z(N){if(de(N))throw new Error("Assertion Failed: argument is undefined or null");return N}function M(N){return typeof N=="function"}function x(N,U){const ce=Math.min(N.length,U.length);for(let w=0;w<ce;w++)h(N[w],U[w])}function h(N,U){if(re(U)){if(typeof N!==U)throw new Error(`argument does not match constraint: typeof ${U}`)}else if(M(U)){try{if(N instanceof U)return}catch(ce){}if(!de(N)&&N.constructor===U||U.length===1&&U.call(void 0,N)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function E(N){let U=[],ce=Object.getPrototypeOf(N);for(;Object.prototype!==ce;)U=U.concat(Object.getOwnPropertyNames(ce)),ce=Object.getPrototypeOf(ce);return U}function b(N){const U=[];for(const ce of E(N))typeof N[ce]=="function"&&U.push(ce);return U}function Y(N,U){const ce=j=>function(){const ae=Array.prototype.slice.call(arguments,0);return U(j,ae)};let w={};for(const j of N)w[j]=ce(j);return w}function te(N){return N===null?void 0:N}function L(N,U="Unreachable"){throw new Error(U)}},13268:function(Nt,Qe,T){"use strict";T.d(Qe,{N:function(){return re}});function K(Ee,Re){let pe;return Re.length===0?pe=Ee:pe=Ee.replace(/\{(\d+)\}/g,function(Z,ge){const de=ge[0];return typeof Re[de]!="undefined"?Re[de]:Z}),pe}function re(Ee,Re,...pe){return K(Re,pe)}},96236:function(Nt,Qe,T){"use strict";T.d(Qe,{BH:function(){return Y},NZ:function(){return te},U8:function(){return L},co:function(){return b},eH:function(){return E},vr:function(){return h}});var K=T(75918),re=T(52615),Ee=T(4348),Re=T(88226),pe=T(69323),Z=T(34502),ge=T(35884),de=T(90689),o=T(16925),z=T(49055),M=function(N,U,ce,w){var j=arguments.length,ae=j<3?U:w===null?w=Object.getOwnPropertyDescriptor(U,ce):w,ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ae=Reflect.decorate(N,U,ce,w);else for(var oe=N.length-1;oe>=0;oe--)(ee=N[oe])&&(ae=(j<3?ee(ae):j>3?ee(U,ce,ae):ee(U,ce))||ae);return j>3&&ae&&Object.defineProperty(U,ce,ae),ae},x=function(N,U){return function(ce,w){U(ce,w,N)}};function h(N){return N.command!==void 0}class E{constructor(U){this.id=E._idPool++,this._debugName=U}}E._idPool=0,E.CommandPalette=new E("CommandPalette"),E.EditorContext=new E("EditorContext"),E.SimpleEditorContext=new E("SimpleEditorContext"),E.EditorContextCopy=new E("EditorContextCopy"),E.EditorContextPeek=new E("EditorContextPeek"),E.MenubarEditMenu=new E("MenubarEditMenu"),E.MenubarCopy=new E("MenubarCopy"),E.MenubarGoMenu=new E("MenubarGoMenu"),E.MenubarSelectionMenu=new E("MenubarSelectionMenu"),E.InlineCompletionsActions=new E("InlineCompletionsActions");const b=(0,o.yh)("menuService"),Y=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new Ee.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:N=>N===E.CommandPalette}}addCommand(N){return this.addCommands(Re.$.single(N))}addCommands(N){for(const U of N)this._commands.set(U.id,U);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,pe.OF)(()=>{let U=!1;for(const ce of N)U=this._commands.delete(ce.id)||U;U&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(N){return this._commands.get(N)}getCommands(){const N=new Map;return this._commands.forEach((U,ce)=>N.set(ce,U)),N}appendMenuItem(N,U){return this.appendMenuItems(Re.$.single({id:N,item:U}))}appendMenuItems(N){const U=new Set,ce=new Z.S;for(const{id:w,item:j}of N){let ae=this._menuItems.get(w);ae||(ae=new Z.S,this._menuItems.set(w,ae)),ce.push(ae.push(j)),U.add(w)}return this._onDidChangeMenu.fire(U),(0,pe.OF)(()=>{if(ce.size>0){for(let w of ce)w();this._onDidChangeMenu.fire(U),ce.clear()}})}getMenuItems(N){let U;return this._menuItems.has(N)?U=[...this._menuItems.get(N)]:U=[],N===E.CommandPalette&&this._appendImplicitItems(U),U}_appendImplicitItems(N){const U=new Set;for(const ce of N)h(ce)&&(U.add(ce.command.id),ce.alt&&U.add(ce.alt.id));this._commands.forEach((ce,w)=>{U.has(w)||N.push({command:ce})})}};class te extends K.wY{constructor(U,ce,w,j){super(`submenuitem.${U.submenu.id}`,typeof U.title=="string"?U.title:U.title.value,[],"submenu"),this.item=U,this._menuService=ce,this._contextKeyService=w,this._options=j}get actions(){const U=[],ce=this._menuService.createMenu(this.item.submenu,this._contextKeyService),w=ce.getActions(this._options);ce.dispose();for(const[,j]of w)j.length>0&&(U.push(...j),U.push(new K.Z0));return U.length&&U.pop(),U}}let L=class qo{constructor(U,ce,w,j,ae){var ee,oe;if(this._commandService=ae,this.id=U.id,this.label=w!=null&&w.renderShortTitle&&U.shortTitle?typeof U.shortTitle=="string"?U.shortTitle:U.shortTitle.value:typeof U.title=="string"?U.title:U.title.value,this.tooltip=(oe=typeof U.tooltip=="string"?U.tooltip:(ee=U.tooltip)===null||ee===void 0?void 0:ee.value)!==null&&oe!==void 0?oe:"",this.enabled=!U.precondition||j.contextMatchesRules(U.precondition),this.checked=void 0,U.toggled){const Ae=U.toggled.condition?U.toggled:{condition:U.toggled};this.checked=j.contextMatchesRules(Ae.condition),this.checked&&Ae.tooltip&&(this.tooltip=typeof Ae.tooltip=="string"?Ae.tooltip:Ae.tooltip.value),Ae.title&&(this.label=typeof Ae.title=="string"?Ae.title:Ae.title.value)}this.item=U,this.alt=ce?new qo(ce,void 0,w,j,ae):void 0,this._options=w,z.kS.isThemeIcon(U.icon)&&(this.class=re.dT.asClassName(U.icon))}dispose(){}run(...U){var ce,w;let j=[];return!((ce=this._options)===null||ce===void 0)&&ce.arg&&(j=[...j,this._options.arg]),!((w=this._options)===null||w===void 0)&&w.shouldForwardArgs&&(j=[...j,...U]),this._commandService.executeCommand(this.id,...j)}};L=M([x(3,de.i6),x(4,ge.H)],L)},35884:function(Nt,Qe,T){"use strict";T.d(Qe,{H:function(){return ge},P:function(){return de}});var K=T(4348),re=T(88226),Ee=T(69323),Re=T(34502),pe=T(72999),Z=T(16925);const ge=(0,Z.yh)("commandService"),de=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new K.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(o,z){if(!o)throw new Error("invalid command");if(typeof o=="string"){if(!z)throw new Error("invalid command");return this.registerCommand({id:o,handler:z})}if(o.description){const b=[];for(let te of o.description.args)b.push(te.constraint);const Y=o.handler;o.handler=function(te,...L){return(0,pe.D8)(L,b),Y(te,...L)}}const{id:M}=o;let x=this._commands.get(M);x||(x=new Re.S,this._commands.set(M,x));let h=x.unshift(o),E=(0,Ee.OF)(()=>{h();const b=this._commands.get(M);b!=null&&b.isEmpty()&&this._commands.delete(M)});return this._onDidRegisterCommand.fire(M),E}registerCommandAlias(o,z){return de.registerCommand(o,(M,...x)=>M.get(ge).executeCommand(z,...x))}getCommand(o){const z=this._commands.get(o);if(!(!z||z.isEmpty()))return re.$.first(z)}getCommands(){const o=new Map;for(const z of this._commands.keys()){const M=this.getCommand(z);M&&o.set(z,M)}return o}};de.registerCommand("noop",()=>{})},90689:function(Nt,Qe,T){"use strict";T.d(Qe,{Ao:function(){return ge},Eq:function(){return W},Fb:function(){return de},K8:function(){return D},i6:function(){return Ne},uy:function(){return we}});var K=T(23345),re=T(82983),Ee=T(16925);let Re=K.WE||"";const pe=new Map;pe.set("false",!1),pe.set("true",!0),pe.set("isMac",K.dz),pe.set("isLinux",K.IJ),pe.set("isWindows",K.ED),pe.set("isWeb",K.$L),pe.set("isMacNative",K.dz&&!K.$L),pe.set("isEdge",Re.indexOf("Edg/")>=0),pe.set("isFirefox",Re.indexOf("Firefox")>=0),pe.set("isChrome",Re.indexOf("Chrome")>=0),pe.set("isSafari",Re.indexOf("Safari")>=0);const Z=Object.prototype.hasOwnProperty;class ge{static has(g){return x.create(g)}static equals(g,v){return h.create(g,v)}static regex(g,v){return j.create(g,v)}static not(g){return te.create(g)}static and(...g){return oe.create(g,null)}static or(...g){return Ae.create(g,null,!0)}static deserialize(g,v=!1){if(g)return this._deserializeOrExpression(g,v)}static _deserializeOrExpression(g,v){let I=g.split("||");return Ae.create(I.map(G=>this._deserializeAndExpression(G,v)),null,!0)}static _deserializeAndExpression(g,v){let I=g.split("&&");return oe.create(I.map(G=>this._deserializeOne(G,v)),null)}static _deserializeOne(g,v){if(g=g.trim(),g.indexOf("!=")>=0){let I=g.split("!=");return Y.create(I[0].trim(),this._deserializeValue(I[1],v))}if(g.indexOf("==")>=0){let I=g.split("==");return h.create(I[0].trim(),this._deserializeValue(I[1],v))}if(g.indexOf("=~")>=0){let I=g.split("=~");return j.create(I[0].trim(),this._deserializeRegexValue(I[1],v))}if(g.indexOf(" in ")>=0){let I=g.split(" in ");return E.create(I[0].trim(),I[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(g)){const I=g.split(">=");return U.create(I[0].trim(),I[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(g)){const I=g.split(">");return N.create(I[0].trim(),I[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(g)){const I=g.split("<=");return w.create(I[0].trim(),I[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(g)){const I=g.split("<");return ce.create(I[0].trim(),I[1].trim())}return/^\!\s*/.test(g)?te.create(g.substr(1).trim()):x.create(g)}static _deserializeValue(g,v){if(g=g.trim(),g==="true")return!0;if(g==="false")return!1;let I=/^'([^']*)'$/.exec(g);return I?I[1].trim():g}static _deserializeRegexValue(g,v){if((0,re.m5)(g)){if(v)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let I=g.indexOf("/"),G=g.lastIndexOf("/");if(I===G||I<0){if(v)throw new Error(`bad regexp-value '${g}', missing /-enclosure`);return console.warn(`bad regexp-value '${g}', missing /-enclosure`),null}let xe=g.slice(I+1,G),De=g[G+1]==="i"?"i":"";try{return new RegExp(xe,De)}catch(Ie){if(v)throw new Error(`bad regexp-value '${g}', parse error: ${Ie}`);return console.warn(`bad regexp-value '${g}', parse error: ${Ie}`),null}}}function de(F,g){const v=F?F.substituteConstants():void 0,I=g?g.substituteConstants():void 0;return!v&&!I?!0:!v||!I?!1:v.equals(I)}function o(F,g){return F.cmp(g)}class z{constructor(){this.type=0}cmp(g){return this.type-g.type}equals(g){return g.type===this.type}substituteConstants(){return this}evaluate(g){return!1}serialize(){return"false"}keys(){return[]}negate(){return M.INSTANCE}}z.INSTANCE=new z;class M{constructor(){this.type=1}cmp(g){return this.type-g.type}equals(g){return g.type===this.type}substituteConstants(){return this}evaluate(g){return!0}serialize(){return"true"}keys(){return[]}negate(){return z.INSTANCE}}M.INSTANCE=new M;class x{constructor(g,v){this.key=g,this.negated=v,this.type=2}static create(g,v=null){const I=pe.get(g);return typeof I=="boolean"?I?M.INSTANCE:z.INSTANCE:new x(g,v)}cmp(g){return g.type!==this.type?this.type-g.type:P(this.key,g.key)}equals(g){return g.type===this.type?this.key===g.key:!1}substituteConstants(){const g=pe.get(this.key);return typeof g=="boolean"?g?M.INSTANCE:z.INSTANCE:this}evaluate(g){return!!g.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=te.create(this.key,this)),this.negated}}class h{constructor(g,v,I){this.key=g,this.value=v,this.negated=I,this.type=4}static create(g,v,I=null){if(typeof v=="boolean")return v?x.create(g,I):te.create(g,I);const G=pe.get(g);return typeof G=="boolean"?v===(G?"true":"false")?M.INSTANCE:z.INSTANCE:new h(g,v,I)}cmp(g){return g.type!==this.type?this.type-g.type:q(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){const g=pe.get(this.key);if(typeof g=="boolean"){const v=g?"true":"false";return this.value===v?M.INSTANCE:z.INSTANCE}return this}evaluate(g){return g.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Y.create(this.key,this.value,this)),this.negated}}class E{constructor(g,v){this.key=g,this.valueKey=v,this.type=10,this.negated=null}static create(g,v){return new E(g,v)}cmp(g){return g.type!==this.type?this.type-g.type:q(this.key,this.valueKey,g.key,g.valueKey)}equals(g){return g.type===this.type?this.key===g.key&&this.valueKey===g.valueKey:!1}substituteConstants(){return this}evaluate(g){const v=g.getValue(this.valueKey),I=g.getValue(this.key);return Array.isArray(v)?v.indexOf(I)>=0:typeof I=="string"&&typeof v=="object"&&v!==null?Z.call(v,I):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=b.create(this)),this.negated}}class b{constructor(g){this._actual=g,this.type=11}static create(g){return new b(g)}cmp(g){return g.type!==this.type?this.type-g.type:this._actual.cmp(g._actual)}equals(g){return g.type===this.type?this._actual.equals(g._actual):!1}substituteConstants(){return this}evaluate(g){return!this._actual.evaluate(g)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class Y{constructor(g,v,I){this.key=g,this.value=v,this.negated=I,this.type=5}static create(g,v,I=null){if(typeof v=="boolean")return v?te.create(g,I):x.create(g,I);const G=pe.get(g);return typeof G=="boolean"?v===(G?"true":"false")?z.INSTANCE:M.INSTANCE:new Y(g,v,I)}cmp(g){return g.type!==this.type?this.type-g.type:q(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){const g=pe.get(this.key);if(typeof g=="boolean"){const v=g?"true":"false";return this.value===v?z.INSTANCE:M.INSTANCE}return this}evaluate(g){return g.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 te{constructor(g,v){this.key=g,this.negated=v,this.type=3}static create(g,v=null){const I=pe.get(g);return typeof I=="boolean"?I?z.INSTANCE:M.INSTANCE:new te(g,v)}cmp(g){return g.type!==this.type?this.type-g.type:P(this.key,g.key)}equals(g){return g.type===this.type?this.key===g.key:!1}substituteConstants(){const g=pe.get(this.key);return typeof g=="boolean"?g?z.INSTANCE:M.INSTANCE:this}evaluate(g){return!g.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=x.create(this.key,this)),this.negated}}function L(F,g){if(typeof F=="string"){const v=parseFloat(F);isNaN(v)||(F=v)}return typeof F=="string"||typeof F=="number"?g(F):z.INSTANCE}class N{constructor(g,v,I){this.key=g,this.value=v,this.negated=I,this.type=12}static create(g,v,I=null){return L(v,G=>new N(g,G,I))}cmp(g){return g.type!==this.type?this.type-g.type:q(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){return this}evaluate(g){return typeof this.value=="string"?!1:parseFloat(g.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=w.create(this.key,this.value,this)),this.negated}}class U{constructor(g,v,I){this.key=g,this.value=v,this.negated=I,this.type=13}static create(g,v,I=null){return L(v,G=>new U(g,G,I))}cmp(g){return g.type!==this.type?this.type-g.type:q(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){return this}evaluate(g){return typeof this.value=="string"?!1:parseFloat(g.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=ce.create(this.key,this.value,this)),this.negated}}class ce{constructor(g,v,I){this.key=g,this.value=v,this.negated=I,this.type=14}static create(g,v,I=null){return L(v,G=>new ce(g,G,I))}cmp(g){return g.type!==this.type?this.type-g.type:q(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){return this}evaluate(g){return typeof this.value=="string"?!1:parseFloat(g.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=U.create(this.key,this.value,this)),this.negated}}class w{constructor(g,v,I){this.key=g,this.value=v,this.negated=I,this.type=15}static create(g,v,I=null){return L(v,G=>new w(g,G,I))}cmp(g){return g.type!==this.type?this.type-g.type:q(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){return this}evaluate(g){return typeof this.value=="string"?!1:parseFloat(g.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=N.create(this.key,this.value,this)),this.negated}}class j{constructor(g,v){this.key=g,this.regexp=v,this.type=7,this.negated=null}static create(g,v){return new j(g,v)}cmp(g){if(g.type!==this.type)return this.type-g.type;if(this.key<g.key)return-1;if(this.key>g.key)return 1;const v=this.regexp?this.regexp.source:"",I=g.regexp?g.regexp.source:"";return v<I?-1:v>I?1:0}equals(g){if(g.type===this.type){const v=this.regexp?this.regexp.source:"",I=g.regexp?g.regexp.source:"";return this.key===g.key&&v===I}return!1}substituteConstants(){return this}evaluate(g){let v=g.getValue(this.key);return this.regexp?this.regexp.test(v):!1}serialize(){const g=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${g}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=ae.create(this)),this.negated}}class ae{constructor(g){this._actual=g,this.type=8}static create(g){return new ae(g)}cmp(g){return g.type!==this.type?this.type-g.type:this._actual.cmp(g._actual)}equals(g){return g.type===this.type?this._actual.equals(g._actual):!1}substituteConstants(){return this}evaluate(g){return!this._actual.evaluate(g)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function ee(F){let g=null;for(let v=0,I=F.length;v<I;v++){const G=F[v].substituteConstants();if(F[v]!==G&&g===null){g=[];for(let xe=0;xe<v;xe++)g[xe]=F[xe]}g!==null&&(g[v]=G)}return g===null?F:g}class oe{constructor(g,v){this.expr=g,this.negated=v,this.type=6}static create(g,v){return oe._normalizeArr(g,v)}cmp(g){if(g.type!==this.type)return this.type-g.type;if(this.expr.length<g.expr.length)return-1;if(this.expr.length>g.expr.length)return 1;for(let v=0,I=this.expr.length;v<I;v++){const G=o(this.expr[v],g.expr[v]);if(G!==0)return G}return 0}equals(g){if(g.type===this.type){if(this.expr.length!==g.expr.length)return!1;for(let v=0,I=this.expr.length;v<I;v++)if(!this.expr[v].equals(g.expr[v]))return!1;return!0}return!1}substituteConstants(){const g=ee(this.expr);return g===this.expr?this:oe.create(g,this.negated)}evaluate(g){for(let v=0,I=this.expr.length;v<I;v++)if(!this.expr[v].evaluate(g))return!1;return!0}static _normalizeArr(g,v){const I=[];let G=!1;for(const xe of g)if(xe){if(xe.type===1){G=!0;continue}if(xe.type===0)return z.INSTANCE;if(xe.type===6){I.push(...xe.expr);continue}I.push(xe)}if(I.length===0&&G)return M.INSTANCE;if(I.length!==0){if(I.length===1)return I[0];I.sort(o);for(let xe=1;xe<I.length;xe++)I[xe-1].equals(I[xe])&&(I.splice(xe,1),xe--);if(I.length===1)return I[0];for(;I.length>1;){const xe=I[I.length-1];if(xe.type!==9)break;I.pop();const De=I.pop(),Ie=I.length===0,$e=Ae.create(xe.expr.map(qe=>oe.create([qe,De],null)),null,Ie);$e&&(I.push($e),I.sort(o))}return I.length===1?I[0]:new oe(I,v)}}serialize(){return this.expr.map(g=>g.serialize()).join(" && ")}keys(){const g=[];for(let v of this.expr)g.push(...v.keys());return g}negate(){if(!this.negated){const g=[];for(let v of this.expr)g.push(v.negate());this.negated=Ae.create(g,this,!0)}return this.negated}}class Ae{constructor(g,v){this.expr=g,this.negated=v,this.type=9}static create(g,v,I){return Ae._normalizeArr(g,v,I)}cmp(g){if(g.type!==this.type)return this.type-g.type;if(this.expr.length<g.expr.length)return-1;if(this.expr.length>g.expr.length)return 1;for(let v=0,I=this.expr.length;v<I;v++){const G=o(this.expr[v],g.expr[v]);if(G!==0)return G}return 0}equals(g){if(g.type===this.type){if(this.expr.length!==g.expr.length)return!1;for(let v=0,I=this.expr.length;v<I;v++)if(!this.expr[v].equals(g.expr[v]))return!1;return!0}return!1}substituteConstants(){const g=ee(this.expr);return g===this.expr?this:Ae.create(g,this.negated,!1)}evaluate(g){for(let v=0,I=this.expr.length;v<I;v++)if(this.expr[v].evaluate(g))return!0;return!1}static _normalizeArr(g,v,I){let G=[],xe=!1;if(g){for(let De=0,Ie=g.length;De<Ie;De++){const $e=g[De];if($e){if($e.type===0){xe=!0;continue}if($e.type===1)return M.INSTANCE;if($e.type===9){G=G.concat($e.expr);continue}G.push($e)}}if(G.length===0&&xe)return z.INSTANCE;G.sort(o)}if(G.length!==0){if(G.length===1)return G[0];for(let De=1;De<G.length;De++)G[De-1].equals(G[De])&&(G.splice(De,1),De--);if(G.length===1)return G[0];if(I){for(let De=0;De<G.length;De++)for(let Ie=De+1;Ie<G.length;Ie++)D(G[De],G[Ie])&&(G.splice(Ie,1),Ie--);if(G.length===1)return G[0]}return new Ae(G,v)}}serialize(){return this.expr.map(g=>g.serialize()).join(" || ")}keys(){const g=[];for(let v of this.expr)g.push(...v.keys());return g}negate(){if(!this.negated){let g=[];for(let v of this.expr)g.push(v.negate());for(;g.length>1;){const v=g.shift(),I=g.shift(),G=[];for(const De of ie(v))for(const Ie of ie(I))G.push(oe.create([De,Ie],null));const xe=g.length===0;g.unshift(Ae.create(G,null,xe))}this.negated=g[0]}return this.negated}}class we extends x{constructor(g,v,I){super(g,null),this._defaultValue=v,typeof I=="object"?we._info.push(Object.assign(Object.assign({},I),{key:g})):I!==!0&&we._info.push({key:g,description:I,type:v!=null?typeof v:void 0})}static all(){return we._info.values()}bindTo(g){return g.createKey(this.key,this._defaultValue)}getValue(g){return g.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(g){return h.create(this.key,g)}}we._info=[];const Ne=(0,Ee.yh)("contextKeyService"),W="setContext";function P(F,g){return F<g?-1:F>g?1:0}function q(F,g,v,I){return F<v?-1:F>v?1:g<I?-1:g>I?1:0}function D(F,g){if(g.type===6&&F.type!==9&&F.type!==6){for(const G of g.expr)if(F.equals(G))return!0}const v=F.negate(),I=ie(v).concat(ie(g));I.sort(o);for(let G=0;G<I.length;G++){const De=I[G].negate();for(let Ie=G+1;Ie<I.length;Ie++){const $e=I[Ie];if(De.equals($e))return!0}}return!1}function ie(F){return F.type===9?F.expr:[F]}},16925:function(Nt,Qe,T){"use strict";T.d(Qe,{I8:function(){return K},TG:function(){return re},jt:function(){return pe},yh:function(){return Re}});var K;(function(Z){Z.serviceIds=new Map,Z.DI_TARGET="$di$target",Z.DI_DEPENDENCIES="$di$dependencies";function ge(de){return de[Z.DI_DEPENDENCIES]||[]}Z.getServiceDependencies=ge})(K||(K={}));const re=Re("instantiationService");function Ee(Z,ge,de,o){ge[K.DI_TARGET]===ge?ge[K.DI_DEPENDENCIES].push({id:Z,index:de,optional:o}):(ge[K.DI_DEPENDENCIES]=[{id:Z,index:de,optional:o}],ge[K.DI_TARGET]=ge)}function Re(Z){if(K.serviceIds.has(Z))return K.serviceIds.get(Z);const ge=function(de,o,z){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");Ee(ge,de,z,!1)};return ge.toString=()=>Z,K.serviceIds.set(Z,ge),ge}function pe(Z){return function(ge,de,o){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");Ee(Z,ge,o,!0)}}},44650:function(Nt,Qe,T){"use strict";T.d(Qe,{B:function(){return Re}});var K=T(76068),re=T(72999);class Ee{constructor(){this.data=new Map}add(Z,ge){K.ok(re.HD(Z)),K.ok(re.Kn(ge)),K.ok(!this.data.has(Z),"There is already an extension with this id"),this.data.set(Z,ge)}as(Z){return this.data.get(Z)||null}}const Re=new Ee},66213:function(Nt,Qe,T){"use strict";T.d(Qe,{e:function(){return K}});var K;(function(re){re.DARK="dark",re.LIGHT="light",re.HIGH_CONTRAST="hc"})(K||(K={}))},49055:function(Nt,Qe,T){"use strict";T.d(Qe,{EN:function(){return o},IP:function(){return x},Ic:function(){return b},XE:function(){return ge},bB:function(){return Y},kS:function(){return z},m6:function(){return M}});var K=T(52615),re=T(4348),Ee=T(69323),Re=T(16925),pe=T(44650),Z=T(66213);const ge=(0,Re.yh)("themeService");var de;(function(te){function L(N){return N&&typeof N=="object"&&typeof N.id=="string"}te.isThemeColor=L})(de||(de={}));function o(te){return{id:te}}var z;(function(te){function L(ae){return ae&&typeof ae=="object"&&typeof ae.id=="string"&&(typeof ae.color=="undefined"||de.isThemeColor(ae.color))}te.isThemeIcon=L;const N=new RegExp(`^\\$\\((${K.dT.iconNameExpression}(?:${K.dT.iconModifierExpression})?)\\)$`);function U(ae){const ee=N.exec(ae);if(!ee)return;let[,oe]=ee;return{id:oe}}te.fromString=U;function ce(ae,ee){let oe=ae.id;const Ae=oe.lastIndexOf("~");return Ae!==-1&&(oe=oe.substring(0,Ae)),ee&&(oe=`${oe}~${ee}`),{id:oe}}te.modify=ce;function w(ae,ee){var oe,Ae;return ae.id===ee.id&&((oe=ae.color)===null||oe===void 0?void 0:oe.id)===((Ae=ee.color)===null||Ae===void 0?void 0:Ae.id)}te.isEqual=w;function j(ae,ee){return{id:ae.id,color:ee?o(ee):void 0}}te.asThemeIcon=j,te.asClassNameArray=K.dT.asClassNameArray,te.asClassName=K.dT.asClassName,te.asCSSSelector=K.dT.asCSSSelector})(z||(z={}));function M(te){switch(te){case Z.e.DARK:return"vs-dark";case Z.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const x={ThemingContribution:"base.contributions.theming"};class h{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new re.Q5}onColorThemeChange(L){return this.themingParticipants.push(L),this.onThemingParticipantAddedEmitter.fire(L),(0,Ee.OF)(()=>{const N=this.themingParticipants.indexOf(L);this.themingParticipants.splice(N,1)})}getThemingParticipants(){return this.themingParticipants}}let E=new h;pe.B.add(x.ThemingContribution,E);function b(te){return E.onColorThemeChange(te)}class Y extends Ee.JT{constructor(L){super(),this.themeService=L,this.theme=L.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(N=>this.onThemeChange(N)))}onThemeChange(L){this.theme=L,this.updateStyles()}updateStyles(){}}},5630:function(Nt,Qe,T){"use strict";var K=T(96663),re=T(44127),Ee=T(90493),Re=T(72071),pe=T(6620),Z=T(92310),ge=T.n(Z),de=T(18929),o=T(59301),z=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],M=(0,o.forwardRef)(function(x,h){var E,b=x.prefixCls,Y=b===void 0?"rc-checkbox":b,te=x.className,L=x.style,N=x.checked,U=x.disabled,ce=x.defaultChecked,w=ce===void 0?!1:ce,j=x.type,ae=j===void 0?"checkbox":j,ee=x.title,oe=x.onChange,Ae=(0,pe.Z)(x,z),we=(0,o.useRef)(null),Ne=(0,de.Z)(w,{value:N}),W=(0,Re.Z)(Ne,2),P=W[0],q=W[1];(0,o.useImperativeHandle)(h,function(){return{focus:function(){var g;(g=we.current)===null||g===void 0||g.focus()},blur:function(){var g;(g=we.current)===null||g===void 0||g.blur()},input:we.current}});var D=ge()(Y,te,(E={},(0,Ee.Z)(E,"".concat(Y,"-checked"),P),(0,Ee.Z)(E,"".concat(Y,"-disabled"),U),E)),ie=function(g){U||("checked"in x||q(g.target.checked),oe==null||oe({target:(0,re.Z)((0,re.Z)({},x),{},{type:ae,checked:g.target.checked}),stopPropagation:function(){g.stopPropagation()},preventDefault:function(){g.preventDefault()},nativeEvent:g.nativeEvent}))};return o.createElement("span",{className:D,title:ee,style:L},o.createElement("input",(0,K.Z)({},Ae,{className:"".concat(Y,"-input"),ref:we,onChange:ie,disabled:U,checked:!!P,type:ae})),o.createElement("span",{className:"".concat(Y,"-inner")}))});Qe.Z=M},31561:function(Nt,Qe,T){"use strict";T.d(Qe,{Z:function(){return ae}});var K=T(96663),re=T(90493),Ee=T(72071),Re=T(6620),pe=T(35593),Z=T(92310),ge=T.n(Z),de=T(8654),o=T(59301),z=T(10228),M=T(16089),x=z.Z.ESC,h=z.Z.TAB;function E(ee){var oe=ee.visible,Ae=ee.triggerRef,we=ee.onVisibleChange,Ne=ee.autoFocus,W=ee.overlayRef,P=o.useRef(!1),q=function(){if(oe){var g,v;(g=Ae.current)===null||g===void 0||(v=g.focus)===null||v===void 0||v.call(g),we==null||we(!1)}},D=function(){var g;return(g=W.current)!==null&&g!==void 0&&g.focus?(W.current.focus(),P.current=!0,!0):!1},ie=function(g){switch(g.keyCode){case x:q();break;case h:{var v=!1;P.current||(v=D()),v?g.preventDefault():q();break}}};o.useEffect(function(){return oe?(window.addEventListener("keydown",ie),Ne&&(0,M.Z)(D,3),function(){window.removeEventListener("keydown",ie),P.current=!1}):function(){P.current=!1}},[oe])}var b=(0,o.forwardRef)(function(ee,oe){var Ae=ee.overlay,we=ee.arrow,Ne=ee.prefixCls,W=(0,o.useMemo)(function(){var q;return typeof Ae=="function"?q=Ae():q=Ae,q},[Ae]),P=(0,de.sQ)(oe,W==null?void 0:W.ref);return o.createElement(o.Fragment,null,we&&o.createElement("div",{className:"".concat(Ne,"-arrow")}),o.cloneElement(W,{ref:(0,de.Yr)(W)?P:void 0}))}),Y=b,te={adjustX:1,adjustY:1},L=[0,0],N={topLeft:{points:["bl","tl"],overflow:te,offset:[0,-4],targetOffset:L},top:{points:["bc","tc"],overflow:te,offset:[0,-4],targetOffset:L},topRight:{points:["br","tr"],overflow:te,offset:[0,-4],targetOffset:L},bottomLeft:{points:["tl","bl"],overflow:te,offset:[0,4],targetOffset:L},bottom:{points:["tc","bc"],overflow:te,offset:[0,4],targetOffset:L},bottomRight:{points:["tr","br"],overflow:te,offset:[0,4],targetOffset:L}},U=N,ce=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function w(ee,oe){var Ae,we=ee.arrow,Ne=we===void 0?!1:we,W=ee.prefixCls,P=W===void 0?"rc-dropdown":W,q=ee.transitionName,D=ee.animation,ie=ee.align,F=ee.placement,g=F===void 0?"bottomLeft":F,v=ee.placements,I=v===void 0?U:v,G=ee.getPopupContainer,xe=ee.showAction,De=ee.hideAction,Ie=ee.overlayClassName,$e=ee.overlayStyle,qe=ee.visible,Ye=ee.trigger,Ve=Ye===void 0?["hover"]:Ye,ht=ee.autoFocus,mt=ee.overlay,kt=ee.children,gt=ee.onVisibleChange,Tt=(0,Re.Z)(ee,ce),St=o.useState(),ue=(0,Ee.Z)(St,2),ne=ue[0],X=ue[1],Le="visible"in ee?qe:ne,Pe=o.useRef(null),R=o.useRef(null),se=o.useRef(null);o.useImperativeHandle(oe,function(){return Pe.current});var ve=function(Je){X(Je),gt==null||gt(Je)};E({visible:Le,triggerRef:se,onVisibleChange:ve,autoFocus:ht,overlayRef:R});var _e=function(Je){var ct=ee.onOverlayClick;X(!1),ct&&ct(Je)},Oe=function(){return o.createElement(Y,{ref:R,overlay:mt,prefixCls:P,arrow:Ne})},Be=function(){return typeof mt=="function"?Oe:Oe()},je=function(){var Je=ee.minOverlayWidthMatchTrigger,ct=ee.alignPoint;return"minOverlayWidthMatchTrigger"in ee?Je:!ct},et=function(){var Je=ee.openClassName;return Je!==void 0?Je:"".concat(P,"-open")},We=o.cloneElement(kt,{className:ge()((Ae=kt.props)===null||Ae===void 0?void 0:Ae.className,Le&&et()),ref:(0,de.Yr)(kt)?(0,de.sQ)(se,kt.ref):void 0}),Ge=De;return!Ge&&Ve.indexOf("contextMenu")!==-1&&(Ge=["click"]),o.createElement(pe.Z,(0,K.Z)({builtinPlacements:I},Tt,{prefixCls:P,ref:Pe,popupClassName:ge()(Ie,(0,re.Z)({},"".concat(P,"-show-arrow"),Ne)),popupStyle:$e,action:Ve,showAction:xe,hideAction:Ge,popupPlacement:g,popupAlign:ie,popupTransitionName:q,popupAnimation:D,popupVisible:Le,stretch:je()?"minWidth":"",popup:Be(),onPopupVisibleChange:ve,onPopupClick:_e,getPopupContainer:G}),We)}var j=o.forwardRef(w),ae=j},93681:function(Nt,Qe,T){"use strict";T.r(Qe),T.d(Qe,{BaseInput:function(){return z},default:function(){return N}});var K=T(96663),re=T(44127),Ee=T(90493),Re=T(20135),pe=T(92310),Z=T.n(pe),ge=T(59301),de=T(5643),o=function(ce){var w,j,ae=ce.inputElement,ee=ce.prefixCls,oe=ce.prefix,Ae=ce.suffix,we=ce.addonBefore,Ne=ce.addonAfter,W=ce.className,P=ce.style,q=ce.disabled,D=ce.readOnly,ie=ce.focused,F=ce.triggerFocus,g=ce.allowClear,v=ce.value,I=ce.handleReset,G=ce.hidden,xe=ce.classes,De=ce.classNames,Ie=ce.dataAttrs,$e=ce.styles,qe=ce.components,Ye=(qe==null?void 0:qe.affixWrapper)||"span",Ve=(qe==null?void 0:qe.groupWrapper)||"span",ht=(qe==null?void 0:qe.wrapper)||"span",mt=(qe==null?void 0:qe.groupAddon)||"span",kt=(0,ge.useRef)(null),gt=function(Oe){var Be;(Be=kt.current)!==null&&Be!==void 0&&Be.contains(Oe.target)&&(F==null||F())},Tt=function(){var Oe;if(!g)return null;var Be=!q&&!D&&v,je="".concat(ee,"-clear-icon"),et=(0,Re.Z)(g)==="object"&&g!==null&&g!==void 0&&g.clearIcon?g.clearIcon:"\u2716";return ge.createElement("span",{onClick:I,onMouseDown:function(Ge){return Ge.preventDefault()},className:Z()(je,(Oe={},(0,Ee.Z)(Oe,"".concat(je,"-hidden"),!Be),(0,Ee.Z)(Oe,"".concat(je,"-has-suffix"),!!Ae),Oe)),role:"button",tabIndex:-1},et)},St=(0,ge.cloneElement)(ae,{value:v,hidden:G,className:Z()((w=ae.props)===null||w===void 0?void 0:w.className,!(0,de.X3)(ce)&&!(0,de.He)(ce)&&W)||null,style:(0,re.Z)((0,re.Z)({},(j=ae.props)===null||j===void 0?void 0:j.style),!(0,de.X3)(ce)&&!(0,de.He)(ce)?P:{})});if((0,de.X3)(ce)){var ue,ne="".concat(ee,"-affix-wrapper"),X=Z()(ne,(ue={},(0,Ee.Z)(ue,"".concat(ne,"-disabled"),q),(0,Ee.Z)(ue,"".concat(ne,"-focused"),ie),(0,Ee.Z)(ue,"".concat(ne,"-readonly"),D),(0,Ee.Z)(ue,"".concat(ne,"-input-with-clear-btn"),Ae&&g&&v),ue),!(0,de.He)(ce)&&W,xe==null?void 0:xe.affixWrapper,De==null?void 0:De.affixWrapper),Le=(Ae||g)&&ge.createElement("span",{className:Z()("".concat(ee,"-suffix"),De==null?void 0:De.suffix),style:$e==null?void 0:$e.suffix},Tt(),Ae);St=ge.createElement(Ye,(0,K.Z)({className:X,style:(0,re.Z)((0,re.Z)({},(0,de.He)(ce)?void 0:P),$e==null?void 0:$e.affixWrapper),hidden:!(0,de.He)(ce)&&G,onClick:gt},Ie==null?void 0:Ie.affixWrapper,{ref:kt}),oe&&ge.createElement("span",{className:Z()("".concat(ee,"-prefix"),De==null?void 0:De.prefix),style:$e==null?void 0:$e.prefix},oe),(0,ge.cloneElement)(ae,{value:v,hidden:null}),Le)}if((0,de.He)(ce)){var Pe="".concat(ee,"-group"),R="".concat(Pe,"-addon"),se=Z()("".concat(ee,"-wrapper"),Pe,xe==null?void 0:xe.wrapper),ve=Z()("".concat(ee,"-group-wrapper"),W,xe==null?void 0:xe.group);return ge.createElement(Ve,{className:ve,style:P,hidden:G},ge.createElement(ht,{className:se},we&&ge.createElement(mt,{className:R},we),(0,ge.cloneElement)(St,{hidden:null}),Ne&&ge.createElement(mt,{className:R},Ne)))}return St},z=o,M=T(19127),x=T(72071),h=T(6620),E=T(18929),b=T(2738),Y=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],te=(0,ge.forwardRef)(function(U,ce){var w=U.autoComplete,j=U.onChange,ae=U.onFocus,ee=U.onBlur,oe=U.onPressEnter,Ae=U.onKeyDown,we=U.prefixCls,Ne=we===void 0?"rc-input":we,W=U.disabled,P=U.htmlSize,q=U.className,D=U.maxLength,ie=U.suffix,F=U.showCount,g=U.type,v=g===void 0?"text":g,I=U.classes,G=U.classNames,xe=U.styles,De=(0,h.Z)(U,Y),Ie=(0,E.Z)(U.defaultValue,{value:U.value}),$e=(0,x.Z)(Ie,2),qe=$e[0],Ye=$e[1],Ve=(0,ge.useState)(!1),ht=(0,x.Z)(Ve,2),mt=ht[0],kt=ht[1],gt=(0,ge.useRef)(null),Tt=function(ve){gt.current&&(0,de.nH)(gt.current,ve)};(0,ge.useImperativeHandle)(ce,function(){return{focus:Tt,blur:function(){var ve;(ve=gt.current)===null||ve===void 0||ve.blur()},setSelectionRange:function(ve,_e,Oe){var Be;(Be=gt.current)===null||Be===void 0||Be.setSelectionRange(ve,_e,Oe)},select:function(){var ve;(ve=gt.current)===null||ve===void 0||ve.select()},input:gt.current}}),(0,ge.useEffect)(function(){kt(function(se){return se&&W?!1:se})},[W]);var St=function(ve){U.value===void 0&&Ye(ve.target.value),gt.current&&(0,de.rJ)(gt.current,ve,j)},ue=function(ve){oe&&ve.key==="Enter"&&oe(ve),Ae==null||Ae(ve)},ne=function(ve){kt(!0),ae==null||ae(ve)},X=function(ve){kt(!1),ee==null||ee(ve)},Le=function(ve){Ye(""),Tt(),gt.current&&(0,de.rJ)(gt.current,ve,j)},Pe=function(){var ve=(0,b.Z)(U,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return ge.createElement("input",(0,K.Z)({autoComplete:w},ve,{onChange:St,onFocus:ne,onBlur:X,onKeyDown:ue,className:Z()(Ne,(0,Ee.Z)({},"".concat(Ne,"-disabled"),W),G==null?void 0:G.input),style:xe==null?void 0:xe.input,ref:gt,size:P,type:v}))},R=function(){var ve=Number(D)>0;if(ie||F){var _e=(0,de.D7)(qe),Oe=(0,M.Z)(_e).length,Be=(0,Re.Z)(F)==="object"?F.formatter({value:_e,count:Oe,maxLength:D}):"".concat(Oe).concat(ve?" / ".concat(D):"");return ge.createElement(ge.Fragment,null,!!F&&ge.createElement("span",{className:Z()("".concat(Ne,"-show-count-suffix"),(0,Ee.Z)({},"".concat(Ne,"-show-count-has-suffix"),!!ie),G==null?void 0:G.count),style:(0,re.Z)({},xe==null?void 0:xe.count)},Be),ie)}return null};return ge.createElement(z,(0,K.Z)({},De,{prefixCls:Ne,className:q,inputElement:Pe(),handleReset:Le,value:(0,de.D7)(qe),focused:mt,triggerFocus:Tt,suffix:R(),disabled:W,classes:I,classNames:G,styles:xe}))}),L=te,N=L},5643:function(Nt,Qe,T){"use strict";T.d(Qe,{D7:function(){return pe},He:function(){return K},X3:function(){return re},nH:function(){return Re},rJ:function(){return Ee}});function K(Z){return!!(Z.addonBefore||Z.addonAfter)}function re(Z){return!!(Z.prefix||Z.suffix||Z.allowClear)}function Ee(Z,ge,de,o){if(de){var z=ge;if(ge.type==="click"){var M=Z.cloneNode(!0);z=Object.create(ge,{target:{value:M},currentTarget:{value:M}}),M.value="",de(z);return}if(o!==void 0){z=Object.create(ge,{target:{value:Z},currentTarget:{value:Z}}),Z.value=o,de(z);return}de(z)}}function Re(Z,ge){if(Z){Z.focus(ge);var de=ge||{},o=de.cursor;if(o){var z=Z.value.length;switch(o){case"start":Z.setSelectionRange(0,0);break;case"end":Z.setSelectionRange(z,z);break;default:Z.setSelectionRange(0,z)}}}}function pe(Z){return typeof Z=="undefined"||Z===null?"":String(Z)}},15285:function(Nt,Qe,T){"use strict";T.d(Qe,{iz:function(){return cn},ck:function(){return Ke},BW:function(){return Fn},sN:function(){return Ke},Wd:function(){return Ar},ZP:function(){return Qt},Xl:function(){return Ae}});var K=T(96663),re=T(90493),Ee=T(44127),Re=T(19127),pe=T(72071),Z=T(6620),ge=T(92310),de=T.n(ge),o=T(11780),z=T(18929),M=T(13697),x=T(48736),h=T(59301),E=T(4676),b=h.createContext(null);function Y(tt,Xe){return tt===void 0?null:"".concat(tt,"-").concat(Xe)}function te(tt){var Xe=h.useContext(b);return Y(Xe,tt)}var L=T(80547),N=["children","locked"],U=h.createContext(null);function ce(tt,Xe){var dt=(0,Ee.Z)({},tt);return Object.keys(Xe).forEach(function(At){var ut=Xe[At];ut!==void 0&&(dt[At]=ut)}),dt}function w(tt){var Xe=tt.children,dt=tt.locked,At=(0,Z.Z)(tt,N),ut=h.useContext(U),wt=(0,L.Z)(function(){return ce(ut,At)},[ut,At],function(pt,Kt){return!dt&&(pt[0]!==Kt[0]||!(0,M.Z)(pt[1],Kt[1],!0))});return h.createElement(U.Provider,{value:wt},Xe)}var j=[],ae=h.createContext(null);function ee(){return h.useContext(ae)}var oe=h.createContext(j);function Ae(tt){var Xe=h.useContext(oe);return h.useMemo(function(){return tt!==void 0?[].concat((0,Re.Z)(Xe),[tt]):Xe},[Xe,tt])}var we=h.createContext(null),Ne=h.createContext({}),W=Ne,P=T(29194);function q(tt){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,P.Z)(tt)){var dt=tt.nodeName.toLowerCase(),At=["input","select","textarea","button"].includes(dt)||tt.isContentEditable||dt==="a"&&!!tt.getAttribute("href"),ut=tt.getAttribute("tabindex"),wt=Number(ut),pt=null;return ut&&!Number.isNaN(wt)?pt=wt:At&&pt===null&&(pt=0),At&&tt.disabled&&(pt=null),pt!==null&&(pt>=0||Xe&&pt<0)}return!1}function D(tt){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,dt=(0,Re.Z)(tt.querySelectorAll("*")).filter(function(At){return q(At,Xe)});return q(tt,Xe)&&dt.unshift(tt),dt}var ie=null;function F(){ie=document.activeElement}function g(){ie=null}function v(){if(ie)try{ie.focus()}catch(tt){}}function I(tt,Xe){if(Xe.keyCode===9){var dt=D(tt),At=dt[Xe.shiftKey?0:dt.length-1],ut=At===document.activeElement||tt===document.activeElement;if(ut){var wt=dt[Xe.shiftKey?dt.length-1:0];wt.focus(),Xe.preventDefault()}}}var G=T(10228),xe=T(16089),De=G.Z.LEFT,Ie=G.Z.RIGHT,$e=G.Z.UP,qe=G.Z.DOWN,Ye=G.Z.ENTER,Ve=G.Z.ESC,ht=G.Z.HOME,mt=G.Z.END,kt=[$e,qe,De,Ie];function gt(tt,Xe,dt,At){var ut,wt,pt,Kt,tr="prev",Zt="next",vr="children",Tr="parent";if(tt==="inline"&&At===Ye)return{inlineTrigger:!0};var Or=(ut={},(0,re.Z)(ut,$e,tr),(0,re.Z)(ut,qe,Zt),ut),lr=(wt={},(0,re.Z)(wt,De,dt?Zt:tr),(0,re.Z)(wt,Ie,dt?tr:Zt),(0,re.Z)(wt,qe,vr),(0,re.Z)(wt,Ye,vr),wt),sr=(pt={},(0,re.Z)(pt,$e,tr),(0,re.Z)(pt,qe,Zt),(0,re.Z)(pt,Ye,vr),(0,re.Z)(pt,Ve,Tr),(0,re.Z)(pt,De,dt?vr:Tr),(0,re.Z)(pt,Ie,dt?Tr:vr),pt),jr={inline:Or,horizontal:lr,vertical:sr,inlineSub:Or,horizontalSub:sr,verticalSub:sr},yr=(Kt=jr["".concat(tt).concat(Xe?"":"Sub")])===null||Kt===void 0?void 0:Kt[At];switch(yr){case tr:return{offset:-1,sibling:!0};case Zt:return{offset:1,sibling:!0};case Tr:return{offset:-1,sibling:!1};case vr:return{offset:1,sibling:!1};default:return null}}function Tt(tt){for(var Xe=tt;Xe;){if(Xe.getAttribute("data-menu-list"))return Xe;Xe=Xe.parentElement}return null}function St(tt,Xe){for(var dt=tt||document.activeElement;dt;){if(Xe.has(dt))return dt;dt=dt.parentElement}return null}function ue(tt,Xe){var dt=D(tt,!0);return dt.filter(function(At){return Xe.has(At)})}function ne(tt,Xe,dt){var At=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!tt)return null;var ut=ue(tt,Xe),wt=ut.length,pt=ut.findIndex(function(Kt){return dt===Kt});return At<0?pt===-1?pt=wt-1:pt-=1:At>0&&(pt+=1),pt=(pt+wt)%wt,ut[pt]}var X=function(Xe,dt){var At=new Set,ut=new Map,wt=new Map;return Xe.forEach(function(pt){var Kt=document.querySelector("[data-menu-id='".concat(Y(dt,pt),"']"));Kt&&(At.add(Kt),wt.set(Kt,pt),ut.set(pt,Kt))}),{elements:At,key2element:ut,element2key:wt}};function Le(tt,Xe,dt,At,ut,wt,pt,Kt,tr,Zt){var vr=h.useRef(),Tr=h.useRef();Tr.current=Xe;var Or=function(){xe.Z.cancel(vr.current)};return h.useEffect(function(){return function(){Or()}},[]),function(lr){var sr=lr.which;if([].concat(kt,[Ye,Ve,ht,mt]).includes(sr)){var jr=wt(),yr=X(jr,At),Yr=yr,Nr=Yr.elements,Pr=Yr.key2element,Rr=Yr.element2key,Ir=Pr.get(Xe),Fr=St(Ir,Nr),yn=Rr.get(Fr),zr=gt(tt,pt(yn,!0).length===1,dt,sr);if(!zr&&sr!==ht&&sr!==mt)return;(kt.includes(sr)||[ht,mt].includes(sr))&&lr.preventDefault();var dr=function(pr){if(pr){var pn=pr,Sn=pr.querySelector("a");Sn!=null&&Sn.getAttribute("href")&&(pn=Sn);var Kr=Rr.get(pr);Kt(Kr),Or(),vr.current=(0,xe.Z)(function(){Tr.current===Kr&&pn.focus()})}};if([ht,mt].includes(sr)||zr.sibling||!Fr){var He;!Fr||tt==="inline"?He=ut.current:He=Tt(Fr);var ar,br=ue(He,Nr);sr===ht?ar=br[0]:sr===mt?ar=br[br.length-1]:ar=ne(He,Nr,Fr,zr.offset),dr(ar)}else if(zr.inlineTrigger)tr(yn);else if(zr.offset>0)tr(yn,!0),Or(),vr.current=(0,xe.Z)(function(){yr=X(jr,At);var En=Fr.getAttribute("aria-controls"),pr=document.getElementById(En),pn=ne(pr,yr.elements);dr(pn)},5);else if(zr.offset<0){var fn=pt(yn,!0),Pn=fn[fn.length-2],Mn=Pr.get(Pn);tr(Pn,!1),dr(Mn)}}Zt==null||Zt(lr)}}function Pe(tt){Promise.resolve().then(tt)}var R="__RC_UTIL_PATH_SPLIT__",se=function(Xe){return Xe.join(R)},ve=function(Xe){return Xe.split(R)},_e="rc-menu-more";function Oe(){var tt=h.useState({}),Xe=(0,pe.Z)(tt,2),dt=Xe[1],At=(0,h.useRef)(new Map),ut=(0,h.useRef)(new Map),wt=h.useState([]),pt=(0,pe.Z)(wt,2),Kt=pt[0],tr=pt[1],Zt=(0,h.useRef)(0),vr=(0,h.useRef)(!1),Tr=function(){vr.current||dt({})},Or=(0,h.useCallback)(function(Pr,Rr){var Ir=se(Rr);ut.current.set(Ir,Pr),At.current.set(Pr,Ir),Zt.current+=1;var Fr=Zt.current;Pe(function(){Fr===Zt.current&&Tr()})},[]),lr=(0,h.useCallback)(function(Pr,Rr){var Ir=se(Rr);ut.current.delete(Ir),At.current.delete(Pr)},[]),sr=(0,h.useCallback)(function(Pr){tr(Pr)},[]),jr=(0,h.useCallback)(function(Pr,Rr){var Ir=At.current.get(Pr)||"",Fr=ve(Ir);return Rr&&Kt.includes(Fr[0])&&Fr.unshift(_e),Fr},[Kt]),yr=(0,h.useCallback)(function(Pr,Rr){return Pr.some(function(Ir){var Fr=jr(Ir,!0);return Fr.includes(Rr)})},[jr]),Yr=function(){var Rr=(0,Re.Z)(At.current.keys());return Kt.length&&Rr.push(_e),Rr},Nr=(0,h.useCallback)(function(Pr){var Rr="".concat(At.current.get(Pr)).concat(R),Ir=new Set;return(0,Re.Z)(ut.current.keys()).forEach(function(Fr){Fr.startsWith(Rr)&&Ir.add(ut.current.get(Fr))}),Ir},[]);return h.useEffect(function(){return function(){vr.current=!0}},[]),{registerPath:Or,unregisterPath:lr,refreshOverflowKeys:sr,isSubPathKey:yr,getKeyPath:jr,getKeys:Yr,getSubPathKeys:Nr}}function Be(tt){var Xe=h.useRef(tt);Xe.current=tt;var dt=h.useCallback(function(){for(var At,ut=arguments.length,wt=new Array(ut),pt=0;pt<ut;pt++)wt[pt]=arguments[pt];return(At=Xe.current)===null||At===void 0?void 0:At.call.apply(At,[Xe].concat(wt))},[]);return tt?dt:void 0}var je=Math.random().toFixed(5).toString().slice(2),et=0;function We(tt){var Xe=(0,z.Z)(tt,{value:tt}),dt=(0,pe.Z)(Xe,2),At=dt[0],ut=dt[1];return h.useEffect(function(){et+=1;var wt="".concat(je,"-").concat(et);ut("rc-menu-uuid-".concat(wt))},[]),At}var Ge=T(52884),st=T(95727),Je=T(65711),ct=T(85745),yt=T(2738),Lt=T(8654);function xt(tt,Xe,dt,At){var ut=h.useContext(U),wt=ut.activeKey,pt=ut.onActive,Kt=ut.onInactive,tr={active:wt===tt};return Xe||(tr.onMouseEnter=function(Zt){dt==null||dt({key:tt,domEvent:Zt}),pt(tt)},tr.onMouseLeave=function(Zt){At==null||At({key:tt,domEvent:Zt}),Kt(tt)}),tr}function bt(tt){var Xe=h.useContext(U),dt=Xe.mode,At=Xe.rtl,ut=Xe.inlineIndent;if(dt!=="inline")return null;var wt=tt;return At?{paddingRight:wt*ut}:{paddingLeft:wt*ut}}function Ct(tt){var Xe=tt.icon,dt=tt.props,At=tt.children,ut;return Xe===null||Xe===!1?null:(typeof Xe=="function"?ut=h.createElement(Xe,(0,Ee.Z)({},dt)):typeof Xe!="boolean"&&(ut=Xe),ut||At||null)}var y=["item"];function S(tt){var Xe=tt.item,dt=(0,Z.Z)(tt,y);return Object.defineProperty(dt,"item",{get:function(){return(0,x.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),Xe}}),dt}var rt=["title","attribute","elementRef"],H=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],be=["active"],er=function(tt){(0,Je.Z)(dt,tt);var Xe=(0,ct.Z)(dt);function dt(){return(0,Ge.Z)(this,dt),Xe.apply(this,arguments)}return(0,st.Z)(dt,[{key:"render",value:function(){var ut=this.props,wt=ut.title,pt=ut.attribute,Kt=ut.elementRef,tr=(0,Z.Z)(ut,rt),Zt=(0,yt.Z)(tr,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,x.ZP)(!pt,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),h.createElement(o.Z.Item,(0,K.Z)({},pt,{title:typeof wt=="string"?wt:void 0},Zt,{ref:Kt}))}}]),dt}(h.Component),ke=h.forwardRef(function(tt,Xe){var dt,At=tt.style,ut=tt.className,wt=tt.eventKey,pt=tt.warnKey,Kt=tt.disabled,tr=tt.itemIcon,Zt=tt.children,vr=tt.role,Tr=tt.onMouseEnter,Or=tt.onMouseLeave,lr=tt.onClick,sr=tt.onKeyDown,jr=tt.onFocus,yr=(0,Z.Z)(tt,H),Yr=te(wt),Nr=h.useContext(U),Pr=Nr.prefixCls,Rr=Nr.onItemClick,Ir=Nr.disabled,Fr=Nr.overflowDisabled,yn=Nr.itemIcon,zr=Nr.selectedKeys,dr=Nr.onActive,He=h.useContext(W),ar=He._internalRenderMenuItem,br="".concat(Pr,"-item"),fn=h.useRef(),Pn=h.useRef(),Mn=Ir||Kt,En=(0,Lt.x1)(Xe,Pn),pr=Ae(wt),pn=function(mn){return{key:wt,keyPath:(0,Re.Z)(pr).reverse(),item:fn.current,domEvent:mn}},Sn=tr||yn,Kr=xt(wt,Mn,Tr,Or),Cn=Kr.active,di=(0,Z.Z)(Kr,be),$n=zr.includes(wt),Zn=bt(pr.length),Vt=function(mn){if(!Mn){var In=pn(mn);lr==null||lr(S(In)),Rr(In)}},sn=function(mn){if(sr==null||sr(mn),mn.which===G.Z.ENTER){var In=pn(mn);lr==null||lr(S(In)),Rr(In)}},Wr=function(mn){dr(wt),jr==null||jr(mn)},Rn={};tt.role==="option"&&(Rn["aria-selected"]=$n);var fi=h.createElement(er,(0,K.Z)({ref:fn,elementRef:En,role:vr===null?"none":vr||"menuitem",tabIndex:Kt?null:-1,"data-menu-id":Fr&&Yr?null:Yr},yr,di,Rn,{component:"li","aria-disabled":Kt,style:(0,Ee.Z)((0,Ee.Z)({},Zn),At),className:de()(br,(dt={},(0,re.Z)(dt,"".concat(br,"-active"),Cn),(0,re.Z)(dt,"".concat(br,"-selected"),$n),(0,re.Z)(dt,"".concat(br,"-disabled"),Mn),dt),ut),onClick:Vt,onKeyDown:sn,onFocus:Wr}),Zt,h.createElement(Ct,{props:(0,Ee.Z)((0,Ee.Z)({},tt),{},{isSelected:$n}),icon:Sn}));return ar&&(fi=ar(fi,tt,{selected:$n})),fi});function Ue(tt,Xe){var dt=tt.eventKey,At=ee(),ut=Ae(dt);return h.useEffect(function(){if(At)return At.registerPath(dt,ut),function(){At.unregisterPath(dt,ut)}},[ut]),At?null:h.createElement(ke,(0,K.Z)({},tt,{ref:Xe}))}var Ke=h.forwardRef(Ue),J=["className","children"],he=function(Xe,dt){var At=Xe.className,ut=Xe.children,wt=(0,Z.Z)(Xe,J),pt=h.useContext(U),Kt=pt.prefixCls,tr=pt.mode,Zt=pt.rtl;return h.createElement("ul",(0,K.Z)({className:de()(Kt,Zt&&"".concat(Kt,"-rtl"),"".concat(Kt,"-sub"),"".concat(Kt,"-").concat(tr==="inline"?"inline":"vertical"),At),role:"menu"},wt,{"data-menu-list":!0,ref:dt}),ut)},Te=h.forwardRef(he);Te.displayName="SubMenuList";var Fe=Te,$=T(11592);function Et(tt,Xe){return(0,$.Z)(tt).map(function(dt,At){if(h.isValidElement(dt)){var ut,wt,pt=dt.key,Kt=(ut=(wt=dt.props)===null||wt===void 0?void 0:wt.eventKey)!==null&&ut!==void 0?ut:pt,tr=Kt==null;tr&&(Kt="tmp_key-".concat([].concat((0,Re.Z)(Xe),[At]).join("-")));var Zt={key:Kt,eventKey:Kt};return h.cloneElement(dt,Zt)}return dt})}var Se=T(35593),Pt={adjustX:1,adjustY:1},jt={topLeft:{points:["bl","tl"],overflow:Pt},topRight:{points:["br","tr"],overflow:Pt},bottomLeft:{points:["tl","bl"],overflow:Pt},bottomRight:{points:["tr","br"],overflow:Pt},leftTop:{points:["tr","tl"],overflow:Pt},leftBottom:{points:["br","bl"],overflow:Pt},rightTop:{points:["tl","tr"],overflow:Pt},rightBottom:{points:["bl","br"],overflow:Pt}},qt={topLeft:{points:["bl","tl"],overflow:Pt},topRight:{points:["br","tr"],overflow:Pt},bottomLeft:{points:["tl","bl"],overflow:Pt},bottomRight:{points:["tr","br"],overflow:Pt},rightTop:{points:["tr","tl"],overflow:Pt},rightBottom:{points:["br","bl"],overflow:Pt},leftTop:{points:["tl","tr"],overflow:Pt},leftBottom:{points:["bl","br"],overflow:Pt}},gr=null;function Ft(tt,Xe,dt){if(Xe)return Xe;if(dt)return dt[tt]||dt.other}var zt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function fr(tt){var Xe=tt.prefixCls,dt=tt.visible,At=tt.children,ut=tt.popup,wt=tt.popupStyle,pt=tt.popupClassName,Kt=tt.popupOffset,tr=tt.disabled,Zt=tt.mode,vr=tt.onVisibleChange,Tr=h.useContext(U),Or=Tr.getPopupContainer,lr=Tr.rtl,sr=Tr.subMenuOpenDelay,jr=Tr.subMenuCloseDelay,yr=Tr.builtinPlacements,Yr=Tr.triggerSubMenuAction,Nr=Tr.forceSubMenuRender,Pr=Tr.rootClassName,Rr=Tr.motion,Ir=Tr.defaultMotions,Fr=h.useState(!1),yn=(0,pe.Z)(Fr,2),zr=yn[0],dr=yn[1],He=lr?(0,Ee.Z)((0,Ee.Z)({},qt),yr):(0,Ee.Z)((0,Ee.Z)({},jt),yr),ar=zt[Zt],br=Ft(Zt,Rr,Ir),fn=h.useRef(br);Zt!=="inline"&&(fn.current=br);var Pn=(0,Ee.Z)((0,Ee.Z)({},fn.current),{},{leavedClassName:"".concat(Xe,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Mn=h.useRef();return h.useEffect(function(){return Mn.current=(0,xe.Z)(function(){dr(dt)}),function(){xe.Z.cancel(Mn.current)}},[dt]),h.createElement(Se.Z,{prefixCls:Xe,popupClassName:de()("".concat(Xe,"-popup"),(0,re.Z)({},"".concat(Xe,"-rtl"),lr),pt,Pr),stretch:Zt==="horizontal"?"minWidth":null,getPopupContainer:Or,builtinPlacements:He,popupPlacement:ar,popupVisible:zr,popup:ut,popupStyle:wt,popupAlign:Kt&&{offset:Kt},action:tr?[]:[Yr],mouseEnterDelay:sr,mouseLeaveDelay:jr,onPopupVisibleChange:vr,forceRender:Nr,popupMotion:Pn,fresh:!0},At)}var Zr=T(77900);function un(tt){var Xe=tt.id,dt=tt.open,At=tt.keyPath,ut=tt.children,wt="inline",pt=h.useContext(U),Kt=pt.prefixCls,tr=pt.forceSubMenuRender,Zt=pt.motion,vr=pt.defaultMotions,Tr=pt.mode,Or=h.useRef(!1);Or.current=Tr===wt;var lr=h.useState(!Or.current),sr=(0,pe.Z)(lr,2),jr=sr[0],yr=sr[1],Yr=Or.current?dt:!1;h.useEffect(function(){Or.current&&yr(!1)},[Tr]);var Nr=(0,Ee.Z)({},Ft(wt,Zt,vr));At.length>1&&(Nr.motionAppear=!1);var Pr=Nr.onVisibleChanged;return Nr.onVisibleChanged=function(Rr){return!Or.current&&!Rr&&yr(!0),Pr==null?void 0:Pr(Rr)},jr?null:h.createElement(w,{mode:wt,locked:!Or.current},h.createElement(Zr.default,(0,K.Z)({visible:Yr},Nr,{forceRender:tr,removeOnLeave:!1,leavedClassName:"".concat(Kt,"-hidden")}),function(Rr){var Ir=Rr.className,Fr=Rr.style;return h.createElement(Fe,{id:Xe,className:Ir,style:Fr},ut)}))}var $r=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Ht=["active"],ur=function(Xe){var dt,At=Xe.style,ut=Xe.className,wt=Xe.title,pt=Xe.eventKey,Kt=Xe.warnKey,tr=Xe.disabled,Zt=Xe.internalPopupClose,vr=Xe.children,Tr=Xe.itemIcon,Or=Xe.expandIcon,lr=Xe.popupClassName,sr=Xe.popupOffset,jr=Xe.popupStyle,yr=Xe.onClick,Yr=Xe.onMouseEnter,Nr=Xe.onMouseLeave,Pr=Xe.onTitleClick,Rr=Xe.onTitleMouseEnter,Ir=Xe.onTitleMouseLeave,Fr=(0,Z.Z)(Xe,$r),yn=te(pt),zr=h.useContext(U),dr=zr.prefixCls,He=zr.mode,ar=zr.openKeys,br=zr.disabled,fn=zr.overflowDisabled,Pn=zr.activeKey,Mn=zr.selectedKeys,En=zr.itemIcon,pr=zr.expandIcon,pn=zr.onItemClick,Sn=zr.onOpenChange,Kr=zr.onActive,Cn=h.useContext(W),di=Cn._internalRenderSubMenuItem,$n=h.useContext(we),Zn=$n.isSubPathKey,Vt=Ae(),sn="".concat(dr,"-submenu"),Wr=br||tr,Rn=h.useRef(),fi=h.useRef(),Yn=Tr!=null?Tr:En,mn=Or!=null?Or:pr,In=ar.includes(pt),en=!fn&&In,ei=Zn(Mn,pt),Gn=xt(pt,Wr,Rr,Ir),li=Gn.active,Hn=(0,Z.Z)(Gn,Ht),Xn=h.useState(!1),Lr=(0,pe.Z)(Xn,2),ui=Lr[0],xi=Lr[1],wi=function(Kn){Wr||xi(Kn)},gn=function(Kn){wi(!0),Yr==null||Yr({key:pt,domEvent:Kn})},_i=function(Kn){wi(!1),Nr==null||Nr({key:pt,domEvent:Kn})},Ei=h.useMemo(function(){return li||(He!=="inline"?ui||Zn([Pn],pt):!1)},[He,li,Pn,ui,pt,Zn]),Mt=bt(Vt.length),jn=function(Kn){Wr||(Pr==null||Pr({key:pt,domEvent:Kn}),He==="inline"&&Sn(pt,!In))},pi=Be(function(kn){yr==null||yr(S(kn)),pn(kn)}),ci=function(Kn){He!=="inline"&&Sn(pt,Kn)},Ln=function(){Kr(pt)},vn=yn&&"".concat(yn,"-popup"),Mr=h.createElement("div",(0,K.Z)({role:"menuitem",style:Mt,className:"".concat(sn,"-title"),tabIndex:Wr?null:-1,ref:Rn,title:typeof wt=="string"?wt:null,"data-menu-id":fn&&yn?null:yn,"aria-expanded":en,"aria-haspopup":!0,"aria-controls":vn,"aria-disabled":Wr,onClick:jn,onFocus:Ln},Hn),wt,h.createElement(Ct,{icon:He!=="horizontal"?mn:void 0,props:(0,Ee.Z)((0,Ee.Z)({},Xe),{},{isOpen:en,isSubMenu:!0})},h.createElement("i",{className:"".concat(sn,"-arrow")}))),bn=h.useRef(He);if(He!=="inline"&&Vt.length>1?bn.current="vertical":bn.current=He,!fn){var Wn=bn.current;Mr=h.createElement(fr,{mode:Wn,prefixCls:sn,visible:!Zt&&en&&He!=="inline",popupClassName:lr,popupOffset:sr,popupStyle:jr,popup:h.createElement(w,{mode:Wn==="horizontal"?"vertical":Wn},h.createElement(Fe,{id:vn,ref:fi},vr)),disabled:Wr,onVisibleChange:ci},Mr)}var qn=h.createElement(o.Z.Item,(0,K.Z)({role:"none"},Fr,{component:"li",style:At,className:de()(sn,"".concat(sn,"-").concat(He),ut,(dt={},(0,re.Z)(dt,"".concat(sn,"-open"),en),(0,re.Z)(dt,"".concat(sn,"-active"),Ei),(0,re.Z)(dt,"".concat(sn,"-selected"),ei),(0,re.Z)(dt,"".concat(sn,"-disabled"),Wr),dt)),onMouseEnter:gn,onMouseLeave:_i}),Mr,!fn&&h.createElement(un,{id:vn,open:en,keyPath:Vt},vr));return di&&(qn=di(qn,Xe,{selected:ei,active:Ei,open:en,disabled:Wr})),h.createElement(w,{onItemClick:pi,mode:He==="horizontal"?"vertical":He,itemIcon:Yn,expandIcon:mn},qn)};function Ar(tt){var Xe=tt.eventKey,dt=tt.children,At=Ae(Xe),ut=Et(dt,At),wt=ee();h.useEffect(function(){if(wt)return wt.registerPath(Xe,At),function(){wt.unregisterPath(Xe,At)}},[At]);var pt;return wt?pt=ut:pt=h.createElement(ur,tt,ut),h.createElement(oe.Provider,{value:At},pt)}var Jr=T(20135),Qr=["className","title","eventKey","children"],wn=["children"],Dr=function(Xe){var dt=Xe.className,At=Xe.title,ut=Xe.eventKey,wt=Xe.children,pt=(0,Z.Z)(Xe,Qr),Kt=h.useContext(U),tr=Kt.prefixCls,Zt="".concat(tr,"-item-group");return h.createElement("li",(0,K.Z)({role:"presentation"},pt,{onClick:function(Tr){return Tr.stopPropagation()},className:de()(Zt,dt)}),h.createElement("div",{role:"presentation",className:"".concat(Zt,"-title"),title:typeof At=="string"?At:void 0},At),h.createElement("ul",{role:"group",className:"".concat(Zt,"-list")},wt))};function Fn(tt){var Xe=tt.children,dt=(0,Z.Z)(tt,wn),At=Ae(dt.eventKey),ut=Et(Xe,At),wt=ee();return wt?ut:h.createElement(Dr,(0,yt.Z)(dt,["warnKey"]),ut)}function cn(tt){var Xe=tt.className,dt=tt.style,At=h.useContext(U),ut=At.prefixCls,wt=ee();return wt?null:h.createElement("li",{role:"separator",className:de()("".concat(ut,"-item-divider"),Xe),style:dt})}var Xt=["label","children","key","type"];function Ut(tt){return(tt||[]).map(function(Xe,dt){if(Xe&&(0,Jr.Z)(Xe)==="object"){var At=Xe,ut=At.label,wt=At.children,pt=At.key,Kt=At.type,tr=(0,Z.Z)(At,Xt),Zt=pt!=null?pt:"tmp-".concat(dt);return wt||Kt==="group"?Kt==="group"?h.createElement(Fn,(0,K.Z)({key:Zt},tr,{title:ut}),Ut(wt)):h.createElement(Ar,(0,K.Z)({key:Zt},tr,{title:ut}),Ut(wt)):Kt==="divider"?h.createElement(cn,(0,K.Z)({key:Zt},tr)):h.createElement(Ke,(0,K.Z)({key:Zt},tr),ut)}return null}).filter(function(Xe){return Xe})}function hr(tt,Xe,dt){var At=tt;return Xe&&(At=Ut(Xe)),Et(At,dt)}var Hr=["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"],_r=[],nn=h.forwardRef(function(tt,Xe){var dt,At,ut=tt,wt=ut.prefixCls,pt=wt===void 0?"rc-menu":wt,Kt=ut.rootClassName,tr=ut.style,Zt=ut.className,vr=ut.tabIndex,Tr=vr===void 0?0:vr,Or=ut.items,lr=ut.children,sr=ut.direction,jr=ut.id,yr=ut.mode,Yr=yr===void 0?"vertical":yr,Nr=ut.inlineCollapsed,Pr=ut.disabled,Rr=ut.disabledOverflow,Ir=ut.subMenuOpenDelay,Fr=Ir===void 0?.1:Ir,yn=ut.subMenuCloseDelay,zr=yn===void 0?.1:yn,dr=ut.forceSubMenuRender,He=ut.defaultOpenKeys,ar=ut.openKeys,br=ut.activeKey,fn=ut.defaultActiveFirst,Pn=ut.selectable,Mn=Pn===void 0?!0:Pn,En=ut.multiple,pr=En===void 0?!1:En,pn=ut.defaultSelectedKeys,Sn=ut.selectedKeys,Kr=ut.onSelect,Cn=ut.onDeselect,di=ut.inlineIndent,$n=di===void 0?24:di,Zn=ut.motion,Vt=ut.defaultMotions,sn=ut.triggerSubMenuAction,Wr=sn===void 0?"hover":sn,Rn=ut.builtinPlacements,fi=ut.itemIcon,Yn=ut.expandIcon,mn=ut.overflowedIndicator,In=mn===void 0?"...":mn,en=ut.overflowedIndicatorPopupClassName,ei=ut.getPopupContainer,Gn=ut.onClick,li=ut.onOpenChange,Hn=ut.onKeyDown,Xn=ut.openAnimation,Lr=ut.openTransitionName,ui=ut._internalRenderMenuItem,xi=ut._internalRenderSubMenuItem,wi=(0,Z.Z)(ut,Hr),gn=h.useMemo(function(){return hr(lr,Or,_r)},[lr,Or]),_i=h.useState(!1),Ei=(0,pe.Z)(_i,2),Mt=Ei[0],jn=Ei[1],pi=h.useRef(),ci=We(jr),Ln=sr==="rtl",vn=(0,z.Z)(He,{value:ar,postState:function(Xr){return Xr||_r}}),Mr=(0,pe.Z)(vn,2),bn=Mr[0],Wn=Mr[1],qn=function(Xr){var Vr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function On(){Wn(Xr),li==null||li(Xr)}Vr?(0,E.flushSync)(On):On()},kn=h.useState(bn),Kn=(0,pe.Z)(kn,2),Bi=Kn[0],Hi=Kn[1],Si=h.useRef(!1),Yi=h.useMemo(function(){return(Yr==="inline"||Yr==="vertical")&&Nr?["vertical",Nr]:[Yr,!1]},[Yr,Nr]),Li=(0,pe.Z)(Yi,2),ki=Li[0],rr=Li[1],Yt=ki==="inline",Br=h.useState(ki),An=(0,pe.Z)(Br,2),Gr=An[0],ni=An[1],ji=h.useState(rr),Ni=(0,pe.Z)(ji,2),yi=Ni[0],vs=Ni[1];h.useEffect(function(){ni(ki),vs(rr),Si.current&&(Yt?Wn(Bi):qn(_r))},[ki,rr]);var Ds=h.useState(0),Rs=(0,pe.Z)(Ds,2),ns=Rs[0],Is=Rs[1],Ai=ns>=gn.length-1||Gr!=="horizontal"||Rr;h.useEffect(function(){Yt&&Hi(bn)},[bn]),h.useEffect(function(){return Si.current=!0,function(){Si.current=!1}},[]);var zn=Oe(),_s=zn.registerPath,is=zn.unregisterPath,mi=zn.refreshOverflowKeys,Ti=zn.isSubPathKey,qs=zn.getKeyPath,Di=zn.getKeys,Js=zn.getSubPathKeys,ys=h.useMemo(function(){return{registerPath:_s,unregisterPath:is}},[_s,is]),ss=h.useMemo(function(){return{isSubPathKey:Ti}},[Ti]);h.useEffect(function(){mi(Ai?_r:gn.slice(ns+1).map(function(tn){return tn.key}))},[ns,Ai]);var Qs=(0,z.Z)(br||fn&&((dt=gn[0])===null||dt===void 0?void 0:dt.key),{value:br}),Un=(0,pe.Z)(Qs,2),Xi=Un[0],Fi=Un[1],Ki=Be(function(tn){Fi(tn)}),Ls=Be(function(){Fi(void 0)});(0,h.useImperativeHandle)(Xe,function(){return{list:pi.current,focus:function(Xr){var Vr,On=Di(),Bn=X(On,ci),Ji=Bn.elements,ws=Bn.key2element,Os=Bn.element2key,Ps=ue(pi.current,Ji),Qi=Xi!=null?Xi:Ps[0]?Os.get(Ps[0]):(Vr=gn.find(function(cs){return!cs.props.disabled}))===null||Vr===void 0?void 0:Vr.key,Wi=ws.get(Qi);if(Qi&&Wi){var Dt;Wi==null||(Dt=Wi.focus)===null||Dt===void 0||Dt.call(Wi,Xr)}}}});var an=(0,z.Z)(pn||[],{value:Sn,postState:function(Xr){return Array.isArray(Xr)?Xr:Xr==null?_r:[Xr]}}),as=(0,pe.Z)(an,2),ii=as[0],qi=as[1],ea=function(Xr){if(Mn){var Vr=Xr.key,On=ii.includes(Vr),Bn;pr?On?Bn=ii.filter(function(ws){return ws!==Vr}):Bn=[].concat((0,Re.Z)(ii),[Vr]):Bn=[Vr],qi(Bn);var Ji=(0,Ee.Z)((0,Ee.Z)({},Xr),{},{selectedKeys:Bn});On?Cn==null||Cn(Ji):Kr==null||Kr(Ji)}!pr&&bn.length&&Gr!=="inline"&&qn(_r)},os=Be(function(tn){Gn==null||Gn(S(tn)),ea(tn)}),ls=Be(function(tn,Xr){var Vr=bn.filter(function(Bn){return Bn!==tn});if(Xr)Vr.push(tn);else if(Gr!=="inline"){var On=Js(tn);Vr=Vr.filter(function(Bn){return!On.has(Bn)})}(0,M.Z)(bn,Vr,!0)||qn(Vr,!0)}),us=function(Xr,Vr){var On=Vr!=null?Vr:!bn.includes(Xr);ls(Xr,On)},bs=Le(Gr,Xi,Ln,ci,pi,Di,qs,Fi,us,Hn);h.useEffect(function(){jn(!0)},[]);var ks=h.useMemo(function(){return{_internalRenderMenuItem:ui,_internalRenderSubMenuItem:xi}},[ui,xi]),bi=Gr!=="horizontal"||Rr?gn:gn.map(function(tn,Xr){return h.createElement(w,{key:tn.key,overflowDisabled:Xr>ns},tn)}),xs=h.createElement(o.Z,(0,K.Z)({id:jr,ref:pi,prefixCls:"".concat(pt,"-overflow"),component:"ul",itemComponent:Ke,className:de()(pt,"".concat(pt,"-root"),"".concat(pt,"-").concat(Gr),Zt,(At={},(0,re.Z)(At,"".concat(pt,"-inline-collapsed"),yi),(0,re.Z)(At,"".concat(pt,"-rtl"),Ln),At),Kt),dir:sr,style:tr,role:"menu",tabIndex:Tr,data:bi,renderRawItem:function(Xr){return Xr},renderRawRest:function(Xr){var Vr=Xr.length,On=Vr?gn.slice(-Vr):null;return h.createElement(Ar,{eventKey:_e,title:In,disabled:Ai,internalPopupClose:Vr===0,popupClassName:en},On)},maxCount:Gr!=="horizontal"||Rr?o.Z.INVALIDATE:o.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Xr){Is(Xr)},onKeyDown:bs},wi));return h.createElement(W.Provider,{value:ks},h.createElement(b.Provider,{value:ci},h.createElement(w,{prefixCls:pt,rootClassName:Kt,mode:Gr,openKeys:bn,rtl:Ln,disabled:Pr,motion:Mt?Zn:null,defaultMotions:Mt?Vt:null,activeKey:Xi,onActive:Ki,onInactive:Ls,selectedKeys:ii,inlineIndent:$n,subMenuOpenDelay:Fr,subMenuCloseDelay:zr,forceSubMenuRender:dr,builtinPlacements:Rn,triggerSubMenuAction:Wr,getPopupContainer:ei,itemIcon:fi,expandIcon:Yn,onItemClick:os,onOpenChange:ls},h.createElement(we.Provider,{value:ss},xs),h.createElement("div",{style:{display:"none"},"aria-hidden":!0},h.createElement(ae.Provider,{value:ys},gn)))))}),ri=nn,qr=ri;qr.Item=Ke,qr.SubMenu=Ar,qr.ItemGroup=Fn,qr.Divider=cn;var Qt=qr},11780:function(Nt,Qe,T){"use strict";T.d(Qe,{Z:function(){return F}});var K=T(96663),re=T(44127),Ee=T(72071),Re=T(6620),pe=T(59301),Z=T(92310),ge=T.n(Z),de=T(29301),o=T(34280),z=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],M=void 0;function x(g,v){var I=g.prefixCls,G=g.invalidate,xe=g.item,De=g.renderItem,Ie=g.responsive,$e=g.responsiveDisabled,qe=g.registerSize,Ye=g.itemKey,Ve=g.className,ht=g.style,mt=g.children,kt=g.display,gt=g.order,Tt=g.component,St=Tt===void 0?"div":Tt,ue=(0,Re.Z)(g,z),ne=Ie&&!kt;function X(ve){qe(Ye,ve)}pe.useEffect(function(){return function(){X(null)}},[]);var Le=De&&xe!==M?De(xe,{index:gt}):mt,Pe;G||(Pe={opacity:ne?0:1,height:ne?0:M,overflowY:ne?"hidden":M,order:Ie?gt:M,pointerEvents:ne?"none":M,position:ne?"absolute":M});var R={};ne&&(R["aria-hidden"]=!0);var se=pe.createElement(St,(0,K.Z)({className:ge()(!G&&I,Ve),style:(0,re.Z)((0,re.Z)({},Pe),ht)},R,ue,{ref:v}),Le);return Ie&&(se=pe.createElement(de.Z,{onResize:function(_e){var Oe=_e.offsetWidth;X(Oe)},disabled:$e},se)),se}var h=pe.forwardRef(x);h.displayName="Item";var E=h,b=T(6089),Y=T(4676),te=T(16089);function L(g){if(typeof MessageChannel=="undefined")(0,te.Z)(g);else{var v=new MessageChannel;v.port1.onmessage=function(){return g()},v.port2.postMessage(void 0)}}function N(){var g=pe.useRef(null),v=function(G){g.current||(g.current=[],L(function(){(0,Y.unstable_batchedUpdates)(function(){g.current.forEach(function(xe){xe()}),g.current=null})})),g.current.push(G)};return v}function U(g,v){var I=pe.useState(v),G=(0,Ee.Z)(I,2),xe=G[0],De=G[1],Ie=(0,b.Z)(function($e){g(function(){De($e)})});return[xe,Ie]}var ce=pe.createContext(null),w=["component"],j=["className"],ae=["className"],ee=function(v,I){var G=pe.useContext(ce);if(!G){var xe=v.component,De=xe===void 0?"div":xe,Ie=(0,Re.Z)(v,w);return pe.createElement(De,(0,K.Z)({},Ie,{ref:I}))}var $e=G.className,qe=(0,Re.Z)(G,j),Ye=v.className,Ve=(0,Re.Z)(v,ae);return pe.createElement(ce.Provider,{value:null},pe.createElement(E,(0,K.Z)({ref:I,className:ge()($e,Ye)},qe,Ve)))},oe=pe.forwardRef(ee);oe.displayName="RawItem";var Ae=oe,we=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Ne="responsive",W="invalidate";function P(g){return"+ ".concat(g.length," ...")}function q(g,v){var I=g.prefixCls,G=I===void 0?"rc-overflow":I,xe=g.data,De=xe===void 0?[]:xe,Ie=g.renderItem,$e=g.renderRawItem,qe=g.itemKey,Ye=g.itemWidth,Ve=Ye===void 0?10:Ye,ht=g.ssr,mt=g.style,kt=g.className,gt=g.maxCount,Tt=g.renderRest,St=g.renderRawRest,ue=g.suffix,ne=g.component,X=ne===void 0?"div":ne,Le=g.itemComponent,Pe=g.onVisibleChange,R=(0,Re.Z)(g,we),se=ht==="full",ve=N(),_e=U(ve,null),Oe=(0,Ee.Z)(_e,2),Be=Oe[0],je=Oe[1],et=Be||0,We=U(ve,new Map),Ge=(0,Ee.Z)(We,2),st=Ge[0],Je=Ge[1],ct=U(ve,0),yt=(0,Ee.Z)(ct,2),Lt=yt[0],xt=yt[1],bt=U(ve,0),Ct=(0,Ee.Z)(bt,2),y=Ct[0],S=Ct[1],rt=U(ve,0),H=(0,Ee.Z)(rt,2),be=H[0],er=H[1],ke=(0,pe.useState)(null),Ue=(0,Ee.Z)(ke,2),Ke=Ue[0],J=Ue[1],he=(0,pe.useState)(null),Te=(0,Ee.Z)(he,2),Fe=Te[0],$=Te[1],Et=pe.useMemo(function(){return Fe===null&&se?Number.MAX_SAFE_INTEGER:Fe||0},[Fe,Be]),Se=(0,pe.useState)(!1),Pt=(0,Ee.Z)(Se,2),jt=Pt[0],qt=Pt[1],gr="".concat(G,"-item"),Ft=Math.max(Lt,y),zt=gt===Ne,fr=De.length&&zt,Zr=gt===W,un=fr||typeof gt=="number"&&De.length>gt,$r=(0,pe.useMemo)(function(){var Qt=De;return fr?Be===null&&se?Qt=De:Qt=De.slice(0,Math.min(De.length,et/Ve)):typeof gt=="number"&&(Qt=De.slice(0,gt)),Qt},[De,Ve,Be,gt,fr]),Ht=(0,pe.useMemo)(function(){return fr?De.slice(Et+1):De.slice($r.length)},[De,$r,fr,Et]),ur=(0,pe.useCallback)(function(Qt,tt){var Xe;return typeof qe=="function"?qe(Qt):(Xe=qe&&(Qt==null?void 0:Qt[qe]))!==null&&Xe!==void 0?Xe:tt},[qe]),Ar=(0,pe.useCallback)(Ie||function(Qt){return Qt},[Ie]);function Jr(Qt,tt,Xe){Fe===Qt&&(tt===void 0||tt===Ke)||($(Qt),Xe||(qt(Qt<De.length-1),Pe==null||Pe(Qt)),tt!==void 0&&J(tt))}function Qr(Qt,tt){je(tt.clientWidth)}function wn(Qt,tt){Je(function(Xe){var dt=new Map(Xe);return tt===null?dt.delete(Qt):dt.set(Qt,tt),dt})}function Dr(Qt,tt){S(tt),xt(y)}function Fn(Qt,tt){er(tt)}function cn(Qt){return st.get(ur($r[Qt],Qt))}(0,o.Z)(function(){if(et&&typeof Ft=="number"&&$r){var Qt=be,tt=$r.length,Xe=tt-1;if(!tt){Jr(0,null);return}for(var dt=0;dt<tt;dt+=1){var At=cn(dt);if(se&&(At=At||0),At===void 0){Jr(dt-1,void 0,!0);break}if(Qt+=At,Xe===0&&Qt<=et||dt===Xe-1&&Qt+cn(Xe)<=et){Jr(Xe,null);break}else if(Qt+Ft>et){Jr(dt-1,Qt-At-be+y);break}}ue&&cn(0)+be>et&&J(null)}},[et,st,y,be,ur,$r]);var Xt=jt&&!!Ht.length,Ut={};Ke!==null&&fr&&(Ut={position:"absolute",left:Ke,top:0});var hr={prefixCls:gr,responsive:fr,component:Le,invalidate:Zr},Hr=$e?function(Qt,tt){var Xe=ur(Qt,tt);return pe.createElement(ce.Provider,{key:Xe,value:(0,re.Z)((0,re.Z)({},hr),{},{order:tt,item:Qt,itemKey:Xe,registerSize:wn,display:tt<=Et})},$e(Qt,tt))}:function(Qt,tt){var Xe=ur(Qt,tt);return pe.createElement(E,(0,K.Z)({},hr,{order:tt,key:Xe,item:Qt,renderItem:Ar,itemKey:Xe,registerSize:wn,display:tt<=Et}))},_r={order:Xt?Et:Number.MAX_SAFE_INTEGER,className:"".concat(gr,"-rest"),registerSize:Dr,display:Xt},nn=Tt||P,ri=St?pe.createElement(ce.Provider,{value:(0,re.Z)((0,re.Z)({},hr),_r)},St(Ht)):pe.createElement(E,(0,K.Z)({},hr,_r),typeof nn=="function"?nn(Ht):nn),qr=pe.createElement(X,(0,K.Z)({className:ge()(!Zr&&G,kt),style:mt,ref:v},R),$r.map(Hr),un?ri:null,ue&&pe.createElement(E,(0,K.Z)({},hr,{responsive:zt,responsiveDisabled:!fr,order:Et,className:"".concat(gr,"-suffix"),registerSize:Fn,display:!0,style:Ut}),ue));return zt?pe.createElement(de.Z,{onResize:Qr,disabled:!fr},qr):qr}var D=pe.forwardRef(q);D.displayName="Overflow",D.Item=Ae,D.RESPONSIVE=Ne,D.INVALIDATE=W;var ie=D,F=ie},29301:function(Nt,Qe,T){"use strict";T.d(Qe,{Z:function(){return W}});var K=T(96663),re=T(59301),Ee=T(11592),Re=T(48736),pe=T(44127),Z=T(20135),ge=T(76846),de=T(8654),o=re.createContext(null);function z(P){var q=P.children,D=P.onBatchResize,ie=re.useRef(0),F=re.useRef([]),g=re.useContext(o),v=re.useCallback(function(I,G,xe){ie.current+=1;var De=ie.current;F.current.push({size:I,element:G,data:xe}),Promise.resolve().then(function(){De===ie.current&&(D==null||D(F.current),F.current=[])}),g==null||g(I,G,xe)},[D,g]);return re.createElement(o.Provider,{value:v},q)}var M=T(76374),x=new Map;function h(P){P.forEach(function(q){var D,ie=q.target;(D=x.get(ie))===null||D===void 0||D.forEach(function(F){return F(ie)})})}var E=new M.Z(h),b=null,Y=null;function te(P,q){x.has(P)||(x.set(P,new Set),E.observe(P)),x.get(P).add(q)}function L(P,q){x.has(P)&&(x.get(P).delete(q),x.get(P).size||(E.unobserve(P),x.delete(P)))}var N=T(52884),U=T(95727),ce=T(65711),w=T(85745),j=function(P){(0,ce.Z)(D,P);var q=(0,w.Z)(D);function D(){return(0,N.Z)(this,D),q.apply(this,arguments)}return(0,U.Z)(D,[{key:"render",value:function(){return this.props.children}}]),D}(re.Component);function ae(P,q){var D=P.children,ie=P.disabled,F=re.useRef(null),g=re.useRef(null),v=re.useContext(o),I=typeof D=="function",G=I?D(F):D,xe=re.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),De=!I&&re.isValidElement(G)&&(0,de.Yr)(G),Ie=De?(0,de.C4)(G):null,$e=(0,de.x1)(Ie,F),qe=function(){var mt;return(0,ge.ZP)(F.current)||(F.current&&(0,Z.Z)(F.current)==="object"?(0,ge.ZP)((mt=F.current)===null||mt===void 0?void 0:mt.nativeElement):null)||(0,ge.ZP)(g.current)};re.useImperativeHandle(q,function(){return qe()});var Ye=re.useRef(P);Ye.current=P;var Ve=re.useCallback(function(ht){var mt=Ye.current,kt=mt.onResize,gt=mt.data,Tt=ht.getBoundingClientRect(),St=Tt.width,ue=Tt.height,ne=ht.offsetWidth,X=ht.offsetHeight,Le=Math.floor(St),Pe=Math.floor(ue);if(xe.current.width!==Le||xe.current.height!==Pe||xe.current.offsetWidth!==ne||xe.current.offsetHeight!==X){var R={width:Le,height:Pe,offsetWidth:ne,offsetHeight:X};xe.current=R;var se=ne===Math.round(St)?St:ne,ve=X===Math.round(ue)?ue:X,_e=(0,pe.Z)((0,pe.Z)({},R),{},{offsetWidth:se,offsetHeight:ve});v==null||v(_e,ht,gt),kt&&Promise.resolve().then(function(){kt(_e,ht)})}},[]);return re.useEffect(function(){var ht=qe();return ht&&!ie&&te(ht,Ve),function(){return L(ht,Ve)}},[F.current,ie]),re.createElement(j,{ref:g},De?re.cloneElement(G,{ref:$e}):G)}var ee=re.forwardRef(ae),oe=ee,Ae="rc-observer-key";function we(P,q){var D=P.children,ie=typeof D=="function"?[D]:(0,Ee.Z)(D);return ie.map(function(F,g){var v=(F==null?void 0:F.key)||"".concat(Ae,"-").concat(g);return re.createElement(oe,(0,K.Z)({},P,{key:v,ref:g===0?q:void 0}),F)})}var Ne=re.forwardRef(we);Ne.Collection=z;var W=Ne},9296:function(Nt,Qe,T){"use strict";T.r(Qe),T.d(Qe,{ResizableTextArea:function(){return we},default:function(){return ie}});var K=T(96663),re=T(44127),Ee=T(90493),Re=T(20135),pe=T(72071),Z=T(6620),ge=T(19127),de=T(92310),o=T.n(de),z=T(93681),M=T(5643),x=T(18929),h=T(59301),E=T(29301),b=T(34280),Y=T(16089),te=`
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;
`,L=["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"],N={},U;function ce(F){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=F.getAttribute("id")||F.getAttribute("data-reactid")||F.getAttribute("name");if(g&&N[v])return N[v];var I=window.getComputedStyle(F),G=I.getPropertyValue("box-sizing")||I.getPropertyValue("-moz-box-sizing")||I.getPropertyValue("-webkit-box-sizing"),xe=parseFloat(I.getPropertyValue("padding-bottom"))+parseFloat(I.getPropertyValue("padding-top")),De=parseFloat(I.getPropertyValue("border-bottom-width"))+parseFloat(I.getPropertyValue("border-top-width")),Ie=L.map(function(qe){return"".concat(qe,":").concat(I.getPropertyValue(qe))}).join(";"),$e={sizingStyle:Ie,paddingSize:xe,borderSize:De,boxSizing:G};return g&&v&&(N[v]=$e),$e}function w(F){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;U||(U=document.createElement("textarea"),U.setAttribute("tab-index","-1"),U.setAttribute("aria-hidden","true"),document.body.appendChild(U)),F.getAttribute("wrap")?U.setAttribute("wrap",F.getAttribute("wrap")):U.removeAttribute("wrap");var G=ce(F,g),xe=G.paddingSize,De=G.borderSize,Ie=G.boxSizing,$e=G.sizingStyle;U.setAttribute("style","".concat($e,";").concat(te)),U.value=F.value||F.placeholder||"";var qe=void 0,Ye=void 0,Ve,ht=U.scrollHeight;if(Ie==="border-box"?ht+=De:Ie==="content-box"&&(ht-=xe),v!==null||I!==null){U.value=" ";var mt=U.scrollHeight-xe;v!==null&&(qe=mt*v,Ie==="border-box"&&(qe=qe+xe+De),ht=Math.max(qe,ht)),I!==null&&(Ye=mt*I,Ie==="border-box"&&(Ye=Ye+xe+De),Ve=ht>Ye?"":"hidden",ht=Math.min(Ye,ht))}var kt={height:ht,overflowY:Ve,resize:"none"};return qe&&(kt.minHeight=qe),Ye&&(kt.maxHeight=Ye),kt}var j=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ae=0,ee=1,oe=2,Ae=h.forwardRef(function(F,g){var v=F,I=v.prefixCls,G=v.onPressEnter,xe=v.defaultValue,De=v.value,Ie=v.autoSize,$e=v.onResize,qe=v.className,Ye=v.style,Ve=v.disabled,ht=v.onChange,mt=v.onInternalAutoSize,kt=(0,Z.Z)(v,j),gt=(0,x.Z)(xe,{value:De,postState:function(S){return S!=null?S:""}}),Tt=(0,pe.Z)(gt,2),St=Tt[0],ue=Tt[1],ne=function(S){ue(S.target.value),ht==null||ht(S)},X=h.useRef();h.useImperativeHandle(g,function(){return{textArea:X.current}});var Le=h.useMemo(function(){return Ie&&(0,Re.Z)(Ie)==="object"?[Ie.minRows,Ie.maxRows]:[]},[Ie]),Pe=(0,pe.Z)(Le,2),R=Pe[0],se=Pe[1],ve=!!Ie,_e=function(){try{if(document.activeElement===X.current){var S=X.current,rt=S.selectionStart,H=S.selectionEnd,be=S.scrollTop;X.current.setSelectionRange(rt,H),X.current.scrollTop=be}}catch(er){}},Oe=h.useState(oe),Be=(0,pe.Z)(Oe,2),je=Be[0],et=Be[1],We=h.useState(),Ge=(0,pe.Z)(We,2),st=Ge[0],Je=Ge[1],ct=function(){et(ae)};(0,b.Z)(function(){ve&&ct()},[De,R,se,ve]),(0,b.Z)(function(){if(je===ae)et(ee);else if(je===ee){var y=w(X.current,!1,R,se);et(oe),Je(y)}else _e()},[je]);var yt=h.useRef(),Lt=function(){Y.Z.cancel(yt.current)},xt=function(S){je===oe&&($e==null||$e(S),Ie&&(Lt(),yt.current=(0,Y.Z)(function(){ct()})))};h.useEffect(function(){return Lt},[]);var bt=ve?st:null,Ct=(0,re.Z)((0,re.Z)({},Ye),bt);return(je===ae||je===ee)&&(Ct.overflowY="hidden",Ct.overflowX="hidden"),h.createElement(E.Z,{onResize:xt,disabled:!(Ie||$e)},h.createElement("textarea",(0,K.Z)({},kt,{ref:X,style:Ct,className:o()(I,qe,(0,Ee.Z)({},"".concat(I,"-disabled"),Ve)),disabled:Ve,value:St,onChange:ne})))}),we=Ae,Ne=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function W(F,g){return(0,ge.Z)(F||"").slice(0,g).join("")}function P(F,g,v,I){var G=v;return F?G=W(v,I):(0,ge.Z)(g||"").length<v.length&&(0,ge.Z)(v||"").length>I&&(G=g),G}var q=h.forwardRef(function(F,g){var v,I=F.defaultValue,G=F.value,xe=F.onFocus,De=F.onBlur,Ie=F.onChange,$e=F.allowClear,qe=F.maxLength,Ye=F.onCompositionStart,Ve=F.onCompositionEnd,ht=F.suffix,mt=F.prefixCls,kt=mt===void 0?"rc-textarea":mt,gt=F.classes,Tt=F.showCount,St=F.className,ue=F.style,ne=F.disabled,X=F.hidden,Le=F.classNames,Pe=F.styles,R=F.onResize,se=(0,Z.Z)(F,Ne),ve=(0,x.Z)(I,{value:G,defaultValue:I}),_e=(0,pe.Z)(ve,2),Oe=_e[0],Be=_e[1],je=(0,h.useRef)(null),et=h.useState(!1),We=(0,pe.Z)(et,2),Ge=We[0],st=We[1],Je=h.useState(!1),ct=(0,pe.Z)(Je,2),yt=ct[0],Lt=ct[1],xt=h.useRef(),bt=h.useRef(0),Ct=h.useState(null),y=(0,pe.Z)(Ct,2),S=y[0],rt=y[1],H=function(){var Ft;(Ft=je.current)===null||Ft===void 0||Ft.textArea.focus()};(0,h.useImperativeHandle)(g,function(){return{resizableTextArea:je.current,focus:H,blur:function(){var Ft;(Ft=je.current)===null||Ft===void 0||Ft.textArea.blur()}}}),(0,h.useEffect)(function(){st(function(gr){return!ne&&gr})},[ne]);var be=Number(qe)>0,er=function(Ft){Lt(!0),xt.current=Oe,bt.current=Ft.currentTarget.selectionStart,Ye==null||Ye(Ft)},ke=function(Ft){Lt(!1);var zt=Ft.currentTarget.value;if(be){var fr,Zr=bt.current>=qe+1||bt.current===((fr=xt.current)===null||fr===void 0?void 0:fr.length);zt=P(Zr,xt.current,zt,qe)}zt!==Oe&&(Be(zt),(0,M.rJ)(Ft.currentTarget,Ft,Ie,zt)),Ve==null||Ve(Ft)},Ue=function(Ft){var zt=Ft.target.value;if(!yt&&be){var fr=Ft.target.selectionStart>=qe+1||Ft.target.selectionStart===zt.length||!Ft.target.selectionStart;zt=P(fr,Oe,zt,qe)}Be(zt),(0,M.rJ)(Ft.currentTarget,Ft,Ie,zt)},Ke=function(Ft){var zt=se.onPressEnter,fr=se.onKeyDown;Ft.key==="Enter"&&zt&&zt(Ft),fr==null||fr(Ft)},J=function(Ft){st(!0),xe==null||xe(Ft)},he=function(Ft){st(!1),De==null||De(Ft)},Te=function(Ft){var zt;Be(""),H(),(0,M.rJ)((zt=je.current)===null||zt===void 0?void 0:zt.textArea,Ft,Ie)},Fe=(0,M.D7)(Oe);!yt&&be&&G==null&&(Fe=W(Fe,qe));var $=ht,Et;if(Tt){var Se=(0,ge.Z)(Fe).length;(0,Re.Z)(Tt)==="object"?Et=Tt.formatter({value:Fe,count:Se,maxLength:qe}):Et="".concat(Se).concat(be?" / ".concat(qe):""),$=h.createElement(h.Fragment,null,$,h.createElement("span",{className:o()("".concat(kt,"-data-count"),Le==null?void 0:Le.count),style:Pe==null?void 0:Pe.count},Et))}var Pt=function(Ft){var zt;R==null||R(Ft),(zt=je.current)!==null&&zt!==void 0&&zt.textArea.style.height&&rt(!0)},jt=!se.autoSize&&!Tt&&!$e,qt=h.createElement(z.BaseInput,{value:Fe,allowClear:$e,handleReset:Te,suffix:$,prefixCls:kt,classes:{affixWrapper:o()(gt==null?void 0:gt.affixWrapper,(v={},(0,Ee.Z)(v,"".concat(kt,"-show-count"),Tt),(0,Ee.Z)(v,"".concat(kt,"-textarea-allow-clear"),$e),v))},disabled:ne,focused:Ge,className:St,style:(0,re.Z)((0,re.Z)({},ue),S&&!jt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Et=="string"?Et:void 0}},hidden:X,inputElement:h.createElement(we,(0,K.Z)({},se,{onKeyDown:Ke,onChange:Ue,onFocus:J,onBlur:he,onCompositionStart:er,onCompositionEnd:ke,className:Le==null?void 0:Le.textarea,style:(0,re.Z)((0,re.Z)({},Pe==null?void 0:Pe.textarea),{},{resize:ue==null?void 0:ue.resize}),disabled:ne,prefixCls:kt,onResize:Pt,ref:je}))});return qt}),D=q,ie=D},55477:function(Nt,Qe,T){"use strict";T.d(Qe,{G:function(){return h},Z:function(){return te}});var K=T(96663),re=T(44127),Ee=T(6620),Re=T(35593),pe=T(59301),Z={shiftX:64,adjustY:1},ge={adjustX:1,shiftY:!0},de=[0,0],o={left:{points:["cr","cl"],overflow:ge,offset:[-4,0],targetOffset:de},right:{points:["cl","cr"],overflow:ge,offset:[4,0],targetOffset:de},top:{points:["bc","tc"],overflow:Z,offset:[0,-4],targetOffset:de},bottom:{points:["tc","bc"],overflow:Z,offset:[0,4],targetOffset:de},topLeft:{points:["bl","tl"],overflow:Z,offset:[0,-4],targetOffset:de},leftTop:{points:["tr","tl"],overflow:ge,offset:[-4,0],targetOffset:de},topRight:{points:["br","tr"],overflow:Z,offset:[0,-4],targetOffset:de},rightTop:{points:["tl","tr"],overflow:ge,offset:[4,0],targetOffset:de},bottomRight:{points:["tr","br"],overflow:Z,offset:[0,4],targetOffset:de},rightBottom:{points:["bl","br"],overflow:ge,offset:[4,0],targetOffset:de},bottomLeft:{points:["tl","bl"],overflow:Z,offset:[0,4],targetOffset:de},leftBottom:{points:["br","bl"],overflow:ge,offset:[-4,0],targetOffset:de}},z=null,M=T(92310),x=T.n(M);function h(L){var N=L.children,U=L.prefixCls,ce=L.id,w=L.overlayInnerStyle,j=L.className,ae=L.style;return pe.createElement("div",{className:x()("".concat(U,"-content"),j),style:ae},pe.createElement("div",{className:"".concat(U,"-inner"),id:ce,role:"tooltip",style:w},typeof N=="function"?N():N))}var E=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],b=function(N,U){var ce=N.overlayClassName,w=N.trigger,j=w===void 0?["hover"]:w,ae=N.mouseEnterDelay,ee=ae===void 0?0:ae,oe=N.mouseLeaveDelay,Ae=oe===void 0?.1:oe,we=N.overlayStyle,Ne=N.prefixCls,W=Ne===void 0?"rc-tooltip":Ne,P=N.children,q=N.onVisibleChange,D=N.afterVisibleChange,ie=N.transitionName,F=N.animation,g=N.motion,v=N.placement,I=v===void 0?"right":v,G=N.align,xe=G===void 0?{}:G,De=N.destroyTooltipOnHide,Ie=De===void 0?!1:De,$e=N.defaultVisible,qe=N.getTooltipContainer,Ye=N.overlayInnerStyle,Ve=N.arrowContent,ht=N.overlay,mt=N.id,kt=N.showArrow,gt=kt===void 0?!0:kt,Tt=(0,Ee.Z)(N,E),St=(0,pe.useRef)(null);(0,pe.useImperativeHandle)(U,function(){return St.current});var ue=(0,re.Z)({},Tt);"visible"in N&&(ue.popupVisible=N.visible);var ne=function(){return pe.createElement(h,{key:"content",prefixCls:W,id:mt,overlayInnerStyle:Ye},ht)};return pe.createElement(Re.Z,(0,K.Z)({popupClassName:ce,prefixCls:W,popup:ne,action:j,builtinPlacements:o,popupPlacement:I,ref:St,popupAlign:xe,getPopupContainer:qe,onPopupVisibleChange:q,afterPopupVisibleChange:D,popupTransitionName:ie,popupAnimation:F,popupMotion:g,defaultPopupVisible:$e,autoDestroy:Ie,mouseLeaveDelay:Ae,popupStyle:we,mouseEnterDelay:ee,arrow:gt},ue),P)},Y=(0,pe.forwardRef)(b),te=Y},49658:function(Nt,Qe){"use strict";Qe.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var T=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(T)||/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(T==null?void 0:T.substr(0,4))}},83145:function(Nt,Qe,T){"use strict";Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.CopyToClipboard=void 0;var K=Ee(T(59301)),re=Ee(T(25769));function Ee(N){return N&&N.__esModule?N:{default:N}}function Re(N){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Re=function(ce){return typeof ce}:Re=function(ce){return ce&&typeof Symbol=="function"&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},Re(N)}function pe(N,U){var ce=Object.keys(N);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(N);U&&(w=w.filter(function(j){return Object.getOwnPropertyDescriptor(N,j).enumerable})),ce.push.apply(ce,w)}return ce}function Z(N){for(var U=1;U<arguments.length;U++){var ce=arguments[U]!=null?arguments[U]:{};U%2?pe(ce,!0).forEach(function(w){te(N,w,ce[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(ce)):pe(ce).forEach(function(w){Object.defineProperty(N,w,Object.getOwnPropertyDescriptor(ce,w))})}return N}function ge(N,U){if(N==null)return{};var ce=de(N,U),w,j;if(Object.getOwnPropertySymbols){var ae=Object.getOwnPropertySymbols(N);for(j=0;j<ae.length;j++)w=ae[j],!(U.indexOf(w)>=0)&&Object.prototype.propertyIsEnumerable.call(N,w)&&(ce[w]=N[w])}return ce}function de(N,U){if(N==null)return{};var ce={},w=Object.keys(N),j,ae;for(ae=0;ae<w.length;ae++)j=w[ae],!(U.indexOf(j)>=0)&&(ce[j]=N[j]);return ce}function o(N,U){if(!(N instanceof U))throw new TypeError("Cannot call a class as a function")}function z(N,U){for(var ce=0;ce<U.length;ce++){var w=U[ce];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(N,w.key,w)}}function M(N,U,ce){return U&&z(N.prototype,U),ce&&z(N,ce),N}function x(N,U){return U&&(Re(U)==="object"||typeof U=="function")?U:E(N)}function h(N){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(ce){return ce.__proto__||Object.getPrototypeOf(ce)},h(N)}function E(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function b(N,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(U&&U.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),U&&Y(N,U)}function Y(N,U){return Y=Object.setPrototypeOf||function(w,j){return w.__proto__=j,w},Y(N,U)}function te(N,U,ce){return U in N?Object.defineProperty(N,U,{value:ce,enumerable:!0,configurable:!0,writable:!0}):N[U]=ce,N}var L=function(N){b(U,N);function U(){var ce,w;o(this,U);for(var j=arguments.length,ae=new Array(j),ee=0;ee<j;ee++)ae[ee]=arguments[ee];return w=x(this,(ce=h(U)).call.apply(ce,[this].concat(ae))),te(E(w),"onClick",function(oe){var Ae=w.props,we=Ae.text,Ne=Ae.onCopy,W=Ae.children,P=Ae.options,q=K.default.Children.only(W),D=(0,re.default)(we,P);Ne&&Ne(we,D),q&&q.props&&typeof q.props.onClick=="function"&&q.props.onClick(oe)}),w}return M(U,[{key:"render",value:function(){var w=this.props,j=w.text,ae=w.onCopy,ee=w.options,oe=w.children,Ae=ge(w,["text","onCopy","options","children"]),we=K.default.Children.only(oe);return K.default.cloneElement(we,Z({},Ae,{onClick:this.onClick}))}}]),U}(K.default.PureComponent);Qe.CopyToClipboard=L,te(L,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(Nt,Qe,T){"use strict";var K=T(83145),re=K.CopyToClipboard;re.CopyToClipboard=re,Nt.exports=re},76374:function(Nt,Qe,T){"use strict";var K=function(){if(typeof Map!="undefined")return Map;function W(P,q){var D=-1;return P.some(function(ie,F){return ie[0]===q?(D=F,!0):!1}),D}return function(){function P(){this.__entries__=[]}return Object.defineProperty(P.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),P.prototype.get=function(q){var D=W(this.__entries__,q),ie=this.__entries__[D];return ie&&ie[1]},P.prototype.set=function(q,D){var ie=W(this.__entries__,q);~ie?this.__entries__[ie][1]=D:this.__entries__.push([q,D])},P.prototype.delete=function(q){var D=this.__entries__,ie=W(D,q);~ie&&D.splice(ie,1)},P.prototype.has=function(q){return!!~W(this.__entries__,q)},P.prototype.clear=function(){this.__entries__.splice(0)},P.prototype.forEach=function(q,D){D===void 0&&(D=null);for(var ie=0,F=this.__entries__;ie<F.length;ie++){var g=F[ie];q.call(D,g[1],g[0])}},P}()}(),re=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,Ee=function(){return typeof T.g!="undefined"&&T.g.Math===Math?T.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),Re=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Ee):function(W){return setTimeout(function(){return W(Date.now())},1e3/60)}}(),pe=2;function Z(W,P){var q=!1,D=!1,ie=0;function F(){q&&(q=!1,W()),D&&v()}function g(){Re(F)}function v(){var I=Date.now();if(q){if(I-ie<pe)return;D=!0}else q=!0,D=!1,setTimeout(g,P);ie=I}return v}var ge=20,de=["top","right","bottom","left","width","height","size","weight"],o=typeof MutationObserver!="undefined",z=function(){function W(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Z(this.refresh.bind(this),ge)}return W.prototype.addObserver=function(P){~this.observers_.indexOf(P)||this.observers_.push(P),this.connected_||this.connect_()},W.prototype.removeObserver=function(P){var q=this.observers_,D=q.indexOf(P);~D&&q.splice(D,1),!q.length&&this.connected_&&this.disconnect_()},W.prototype.refresh=function(){var P=this.updateObservers_();P&&this.refresh()},W.prototype.updateObservers_=function(){var P=this.observers_.filter(function(q){return q.gatherActive(),q.hasActive()});return P.forEach(function(q){return q.broadcastActive()}),P.length>0},W.prototype.connect_=function(){!re||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)},W.prototype.disconnect_=function(){!re||!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)},W.prototype.onTransitionEnd_=function(P){var q=P.propertyName,D=q===void 0?"":q,ie=de.some(function(F){return!!~D.indexOf(F)});ie&&this.refresh()},W.getInstance=function(){return this.instance_||(this.instance_=new W),this.instance_},W.instance_=null,W}(),M=function(W,P){for(var q=0,D=Object.keys(P);q<D.length;q++){var ie=D[q];Object.defineProperty(W,ie,{value:P[ie],enumerable:!1,writable:!1,configurable:!0})}return W},x=function(W){var P=W&&W.ownerDocument&&W.ownerDocument.defaultView;return P||Ee},h=j(0,0,0,0);function E(W){return parseFloat(W)||0}function b(W){for(var P=[],q=1;q<arguments.length;q++)P[q-1]=arguments[q];return P.reduce(function(D,ie){var F=W["border-"+ie+"-width"];return D+E(F)},0)}function Y(W){for(var P=["top","right","bottom","left"],q={},D=0,ie=P;D<ie.length;D++){var F=ie[D],g=W["padding-"+F];q[F]=E(g)}return q}function te(W){var P=W.getBBox();return j(0,0,P.width,P.height)}function L(W){var P=W.clientWidth,q=W.clientHeight;if(!P&&!q)return h;var D=x(W).getComputedStyle(W),ie=Y(D),F=ie.left+ie.right,g=ie.top+ie.bottom,v=E(D.width),I=E(D.height);if(D.boxSizing==="border-box"&&(Math.round(v+F)!==P&&(v-=b(D,"left","right")+F),Math.round(I+g)!==q&&(I-=b(D,"top","bottom")+g)),!U(W)){var G=Math.round(v+F)-P,xe=Math.round(I+g)-q;Math.abs(G)!==1&&(v-=G),Math.abs(xe)!==1&&(I-=xe)}return j(ie.left,ie.top,v,I)}var N=function(){return typeof SVGGraphicsElement!="undefined"?function(W){return W instanceof x(W).SVGGraphicsElement}:function(W){return W instanceof x(W).SVGElement&&typeof W.getBBox=="function"}}();function U(W){return W===x(W).document.documentElement}function ce(W){return re?N(W)?te(W):L(W):h}function w(W){var P=W.x,q=W.y,D=W.width,ie=W.height,F=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,g=Object.create(F.prototype);return M(g,{x:P,y:q,width:D,height:ie,top:q,right:P+D,bottom:ie+q,left:P}),g}function j(W,P,q,D){return{x:W,y:P,width:q,height:D}}var ae=function(){function W(P){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=j(0,0,0,0),this.target=P}return W.prototype.isActive=function(){var P=ce(this.target);return this.contentRect_=P,P.width!==this.broadcastWidth||P.height!==this.broadcastHeight},W.prototype.broadcastRect=function(){var P=this.contentRect_;return this.broadcastWidth=P.width,this.broadcastHeight=P.height,P},W}(),ee=function(){function W(P,q){var D=w(q);M(this,{target:P,contentRect:D})}return W}(),oe=function(){function W(P,q,D){if(this.activeObservations_=[],this.observations_=new K,typeof P!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=P,this.controller_=q,this.callbackCtx_=D}return W.prototype.observe=function(P){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(P instanceof x(P).Element))throw new TypeError('parameter 1 is not of type "Element".');var q=this.observations_;q.has(P)||(q.set(P,new ae(P)),this.controller_.addObserver(this),this.controller_.refresh())}},W.prototype.unobserve=function(P){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(P instanceof x(P).Element))throw new TypeError('parameter 1 is not of type "Element".');var q=this.observations_;q.has(P)&&(q.delete(P),q.size||this.controller_.removeObserver(this))}},W.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},W.prototype.gatherActive=function(){var P=this;this.clearActive(),this.observations_.forEach(function(q){q.isActive()&&P.activeObservations_.push(q)})},W.prototype.broadcastActive=function(){if(this.hasActive()){var P=this.callbackCtx_,q=this.activeObservations_.map(function(D){return new ee(D.target,D.broadcastRect())});this.callback_.call(P,q,P),this.clearActive()}},W.prototype.clearActive=function(){this.activeObservations_.splice(0)},W.prototype.hasActive=function(){return this.activeObservations_.length>0},W}(),Ae=typeof WeakMap!="undefined"?new WeakMap:new K,we=function(){function W(P){if(!(this instanceof W))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var q=z.getInstance(),D=new oe(P,q,this);Ae.set(this,D)}return W}();["observe","unobserve","disconnect"].forEach(function(W){we.prototype[W]=function(){var P;return(P=Ae.get(this))[W].apply(P,arguments)}});var Ne=function(){return typeof Ee.ResizeObserver!="undefined"?Ee.ResizeObserver:we}();Qe.Z=Ne},98040:function(Nt){Nt.exports=function(){var Qe=document.getSelection();if(!Qe.rangeCount)return function(){};for(var T=document.activeElement,K=[],re=0;re<Qe.rangeCount;re++)K.push(Qe.getRangeAt(re));switch(T.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":T.blur();break;default:T=null;break}return Qe.removeAllRanges(),function(){Qe.type==="Caret"&&Qe.removeAllRanges(),Qe.rangeCount||K.forEach(function(Ee){Qe.addRange(Ee)}),T&&T.focus()}}},1012:function(Nt,Qe,T){"use strict";T.d(Qe,{Z:function(){return x}});var K=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),re=new Uint8Array(16);function Ee(){if(!K)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return K(re)}var Re=/^(?:[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 pe(h){return typeof h=="string"&&Re.test(h)}for(var Z=pe,ge=[],de=0;de<256;++de)ge.push((de+256).toString(16).substr(1));function o(h){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,b=(ge[h[E+0]]+ge[h[E+1]]+ge[h[E+2]]+ge[h[E+3]]+"-"+ge[h[E+4]]+ge[h[E+5]]+"-"+ge[h[E+6]]+ge[h[E+7]]+"-"+ge[h[E+8]]+ge[h[E+9]]+"-"+ge[h[E+10]]+ge[h[E+11]]+ge[h[E+12]]+ge[h[E+13]]+ge[h[E+14]]+ge[h[E+15]]).toLowerCase();if(!Z(b))throw TypeError("Stringified UUID is invalid");return b}var z=o;function M(h,E,b){h=h||{};var Y=h.random||(h.rng||Ee)();if(Y[6]=Y[6]&15|64,Y[8]=Y[8]&63|128,E){b=b||0;for(var te=0;te<16;++te)E[b+te]=Y[te];return E}return z(Y)}var x=M},93314:function(Nt){"use strict";Nt.exports="data:image/png;base64,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"},40846:function(Nt,Qe,T){"use strict";T.d(Qe,{ZP:function(){return Cs}});function K(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var re={exports:{}};(function(a,e){(function(t){var r=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,n=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,s=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,u={buildAbsoluteURL:function(f,m,_){if(_=_||{},f=f.trim(),m=m.trim(),!m){if(!_.alwaysNormalize)return f;var A=u.parseURL(f);if(!A)throw new Error("Error trying to parse base URL.");return A.path=u.normalizePath(A.path),u.buildURLFromParts(A)}var B=u.parseURL(m);if(!B)throw new Error("Error trying to parse relative URL.");if(B.scheme)return _.alwaysNormalize?(B.path=u.normalizePath(B.path),u.buildURLFromParts(B)):m;var Q=u.parseURL(f);if(!Q)throw new Error("Error trying to parse base URL.");if(!Q.netLoc&&Q.path&&Q.path[0]!=="/"){var V=n.exec(Q.path);Q.netLoc=V[1],Q.path=V[2]}Q.netLoc&&!Q.path&&(Q.path="/");var le={scheme:Q.scheme,netLoc:B.netLoc,path:null,params:B.params,query:B.query,fragment:B.fragment};if(!B.netLoc&&(le.netLoc=Q.netLoc,B.path[0]!=="/"))if(!B.path)le.path=Q.path,B.params||(le.params=Q.params,B.query||(le.query=Q.query));else{var me=Q.path,ze=me.substring(0,me.lastIndexOf("/")+1)+B.path;le.path=u.normalizePath(ze)}return le.path===null&&(le.path=_.alwaysNormalize?u.normalizePath(B.path):B.path),u.buildURLFromParts(le)},parseURL:function(f){var m=r.exec(f);return m?{scheme:m[1]||"",netLoc:m[2]||"",path:m[3]||"",params:m[4]||"",query:m[5]||"",fragment:m[6]||""}:null},normalizePath:function(f){for(f=f.split("").reverse().join("").replace(i,"");f.length!==(f=f.replace(s,"")).length;);return f.split("").reverse().join("")},buildURLFromParts:function(f){return f.scheme+f.netLoc+f.path+f.params+f.query+f.fragment}};a.exports=u})()})(re);var Ee=re.exports;function Re(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 pe(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Re(Object(t),!0).forEach(function(r){de(a,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):Re(Object(t)).forEach(function(r){Object.defineProperty(a,r,Object.getOwnPropertyDescriptor(t,r))})}return a}function Z(a,e){if(typeof a!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var r=t.call(a,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function ge(a){var e=Z(a,"string");return typeof e=="symbol"?e:String(e)}function de(a,e,t){return e=ge(e),e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function o(){return o=Object.assign?Object.assign.bind():function(a){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(a[r]=t[r])}return a},o.apply(this,arguments)}const z=Number.isFinite||function(a){return typeof a=="number"&&isFinite(a)},M=Number.isSafeInteger||function(a){return typeof a=="number"&&Math.abs(a)<=x},x=Number.MAX_SAFE_INTEGER||9007199254740991;let h=function(a){return a.MEDIA_ATTACHING="hlsMediaAttaching",a.MEDIA_ATTACHED="hlsMediaAttached",a.MEDIA_DETACHING="hlsMediaDetaching",a.MEDIA_DETACHED="hlsMediaDetached",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.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.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_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}({}),E=function(a){return a.NETWORK_ERROR="networkError",a.MEDIA_ERROR="mediaError",a.KEY_SYSTEM_ERROR="keySystemError",a.MUX_ERROR="muxError",a.OTHER_ERROR="otherError",a}({}),b=function(a){return a.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",a.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",a.KEY_SYSTEM_NO_SESSION="keySystemNoSession",a.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",a.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",a.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",a.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",a.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",a.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",a.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",a.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.INTERNAL_EXCEPTION="internalException",a.INTERNAL_ABORTED="aborted",a.UNKNOWN="unknown",a}({});const Y=function(){},te={trace:Y,debug:Y,log:Y,warn:Y,info:Y,error:Y};let L=te;function N(a){const e=self.console[a];return e?e.bind(self.console,`[${a}] >`):Y}function U(a,...e){e.forEach(function(t){L[t]=a[t]?a[t].bind(a):N(t)})}function ce(a,e){if(typeof console=="object"&&a===!0||typeof a=="object"){U(a,"debug","log","info","warn","error");try{L.log(`Debug logs enabled for "${e}" in hls.js version 1.5.20`)}catch(t){L=te}}else L=te}const w=L,j=/^(\d+)x(\d+)$/,ae=/(.+?)=(".*?"|.*?)(?:,|$)/g;class ee{constructor(e){typeof e=="string"&&(e=ee.parseAttrList(e)),o(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}else 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]}bool(e){return this[e]==="YES"}decimalResolution(e){const t=j.exec(this[e]);if(t!==null)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e){let t;const r={},n='"';for(ae.lastIndex=0;(t=ae.exec(e))!==null;){let i=t[2];i.indexOf(n)===0&&i.lastIndexOf(n)===i.length-1&&(i=i.slice(1,-1));const s=t[1].trim();r[s]=i}return r}}function oe(a){return a!=="ID"&&a!=="CLASS"&&a!=="START-DATE"&&a!=="DURATION"&&a!=="END-DATE"&&a!=="END-ON-NEXT"}function Ae(a){return a==="SCTE35-OUT"||a==="SCTE35-IN"}class we{constructor(e,t){if(this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,t){const r=t.attr;for(const n in r)if(Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==r[n]){w.warn(`DATERANGE tag attribute: "${n}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=n;break}e=o(new ee({}),r,e)}if(this.attr=e,this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){const r=new Date(this.attr["END-DATE"]);z(r.getTime())&&(this._endDate=r)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get startDate(){return this._startDate}get endDate(){if(this._endDate)return this._endDate;const e=this.duration;return e!==null?new Date(this._startDate.getTime()+e*1e3):null}get duration(){if("DURATION"in this.attr){const e=this.attr.decimalFloatingPoint("DURATION");if(z(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 isValid(){return!!this.id&&!this._badValueForSameId&&z(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)}}class Ne{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 P{constructor(e){this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams={[W.AUDIO]:null,[W.VIDEO]:null,[W.AUDIOVIDEO]:null},this.baseurl=e}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 byteRange(){return this._byteRange?this._byteRange:[]}get byteRangeStartOffset(){return this.byteRange[0]}get byteRangeEndOffset(){return this.byteRange[1]}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=Ee.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}}class q extends P{constructor(e,t){super(t),this._decryptdata=null,this.rawProgramDateTime=null,this.programDateTime=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.deltaPTS=void 0,this.maxStartPTS=void 0,this.minEndPTS=void 0,this.stats=new Ne,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 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||!z(this.programDateTime))return null;const e=z(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}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:u}=this,f=u[e];if(!f){u[e]={startPTS:t,endPTS:r,startDTS:n,endDTS:i,partial:s};return}f.startPTS=Math.min(f.startPTS,t),f.endPTS=Math.max(f.endPTS,r),f.startDTS=Math.min(f.startDTS,n),f.endDTS=Math.max(f.endDTS,i)}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[W.AUDIO]=null,e[W.VIDEO]=null,e[W.AUDIOVIDEO]=null}}class D extends P{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.stats=new Ne,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)}}const ie=10;class F{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.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 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.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,this.availabilityDelay=e.availabilityDelay}get hasProgramDateTime(){return this.fragments.length?z(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||ie}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 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 lastPartSn(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}function g(a){return Uint8Array.from(atob(a),e=>e.charCodeAt(0))}function v(a){const e=xe(a).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function I(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 G(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=g(s)):t=v(s)}}return t}function xe(a){return Uint8Array.from(unescape(encodeURIComponent(a)),e=>e.charCodeAt(0))}const De=typeof self!="undefined"?self:void 0;var Ie={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},$e={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function qe(a){switch(a){case $e.FAIRPLAY:return Ie.FAIRPLAY;case $e.PLAYREADY:return Ie.PLAYREADY;case $e.WIDEVINE:return Ie.WIDEVINE;case $e.CLEARKEY:return Ie.CLEARKEY}}var Ye={CENC:"1077efecc0b24d02ace33c1e52e2fb4b",CLEARKEY:"e2719d58a985b3c9781ab030af78d30e",FAIRPLAY:"94ce86fb07ff4f43adb893d2fa968ca2",PLAYREADY:"9a04f07998404286ab92e65be0885f95",WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function Ve(a){if(a===Ye.WIDEVINE)return Ie.WIDEVINE;if(a===Ye.PLAYREADY)return Ie.PLAYREADY;if(a===Ye.CENC||a===Ye.CLEARKEY)return Ie.CLEARKEY}function ht(a){switch(a){case Ie.FAIRPLAY:return $e.FAIRPLAY;case Ie.PLAYREADY:return $e.PLAYREADY;case Ie.WIDEVINE:return $e.WIDEVINE;case Ie.CLEARKEY:return $e.CLEARKEY}}function mt(a){const{drmSystems:e,widevineLicenseUrl:t}=a,r=e?[Ie.FAIRPLAY,Ie.WIDEVINE,Ie.PLAYREADY,Ie.CLEARKEY].filter(n=>!!e[n]):[];return!r[Ie.WIDEVINE]&&t&&r.push(Ie.WIDEVINE),r}const kt=function(a){return De!=null&&(a=De.navigator)!=null&&a.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function gt(a,e,t,r){let n;switch(a){case Ie.FAIRPLAY:n=["cenc","sinf"];break;case Ie.WIDEVINE:case Ie.PLAYREADY:n=["cenc"];break;case Ie.CLEARKEY:n=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${a}`)}return Tt(n,e,t,r)}function Tt(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 St(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 u=s.childNodes[0]?s.childNodes[0].nodeValue:s.getAttribute("VALUE");if(u){const f=g(u).subarray(0,16);return I(f),f}}return null}function ue(a,e,t){return Uint8Array.prototype.slice?a.slice(e,t):new Uint8Array(Array.prototype.slice.call(a,e,t))}const ne=(a,e)=>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,X=(a,e)=>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,Le=(a,e)=>{const t=e;let r=0;for(;ne(a,e);){r+=10;const n=Pe(a,e+6);r+=n,X(a,e+10)&&(r+=10),e+=r}if(r>0)return a.subarray(t,t+r)},Pe=(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},R=(a,e)=>ne(a,e)&&Pe(a,e+6)+10<=a.length-e,se=a=>{const e=Oe(a);for(let t=0;t<e.length;t++){const r=e[t];if(ve(r))return Ge(r)}},ve=a=>a&&a.key==="PRIV"&&a.info==="com.apple.streaming.transportStreamTimestamp",_e=a=>{const e=String.fromCharCode(a[0],a[1],a[2],a[3]),t=Pe(a,4),r=10;return{type:e,size:t,data:a.subarray(r,r+t)}},Oe=a=>{let e=0;const t=[];for(;ne(a,e);){const r=Pe(a,e+6);e+=10;const n=e+r;for(;e+8<n;){const i=_e(a.subarray(e)),s=Be(i);s&&t.push(s),e+=i.size+10}X(a,e)&&(e+=10)}return t},Be=a=>a.type==="PRIV"?je(a):a.type[0]==="W"?We(a):et(a),je=a=>{if(a.size<2)return;const e=st(a.data,!0),t=new Uint8Array(a.data.subarray(e.length+1));return{key:a.type,info:e,data:t.buffer}},et=a=>{if(a.size<2)return;if(a.type==="TXXX"){let t=1;const r=st(a.data.subarray(t),!0);t+=r.length+1;const n=st(a.data.subarray(t));return{key:a.type,info:r,data:n}}const e=st(a.data.subarray(1));return{key:a.type,data:e}},We=a=>{if(a.type==="WXXX"){if(a.size<2)return;let t=1;const r=st(a.data.subarray(t),!0);t+=r.length+1;const n=st(a.data.subarray(t));return{key:a.type,info:r,data:n}}const e=st(a.data);return{key:a.type,data:e}},Ge=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)}},st=(a,e=!1)=>{const t=ct();if(t){const m=t.decode(a);if(e){const _=m.indexOf("\0");return _!==-1?m.substring(0,_):m}return m.replace(/\0/g,"")}const r=a.length;let n,i,s,u="",f=0;for(;f<r;){if(n=a[f++],n===0&&e)return u;if(n===0||n===3)continue;switch(n>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:u+=String.fromCharCode(n);break;case 12:case 13:i=a[f++],u+=String.fromCharCode((n&31)<<6|i&63);break;case 14:i=a[f++],s=a[f++],u+=String.fromCharCode((n&15)<<12|(i&63)<<6|(s&63)<<0);break}}return u};let Je;function ct(){if(!navigator.userAgent.includes("PlayStation 4"))return!Je&&typeof self.TextDecoder!="undefined"&&(Je=new self.TextDecoder("utf-8")),Je}const yt={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}},Lt=Math.pow(2,32)-1,xt=[].push,bt={video:1,audio:2,id3:3,text:4};function Ct(a){return String.fromCharCode.apply(null,a)}function y(a,e){const t=a[e]<<8|a[e+1];return t<0?65536+t:t}function S(a,e){const t=H(a,e);return t<0?4294967296+t:t}function rt(a,e){let t=S(a,e);return t*=Math.pow(2,32),t+=S(a,e+4),t}function H(a,e){return a[e]<<24|a[e+1]<<16|a[e+2]<<8|a[e+3]}function be(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 er(a){const e=a.byteLength;for(let t=0;t<e;){const r=S(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 ke(a,e){const t=[];if(!e.length)return t;const r=a.byteLength;for(let n=0;n<r;){const i=S(a,n),s=Ct(a.subarray(n+4,n+8)),u=i>1?n+i:r;if(s===e[0])if(e.length===1)t.push(a.subarray(n+8,u));else{const f=ke(a.subarray(n+8,u),e.slice(1));f.length&&xt.apply(t,f)}n=u}return t}function Ue(a){const e=[],t=a[0];let r=8;const n=S(a,r);r+=4;let i=0,s=0;t===0?(i=S(a,r),s=S(a,r+4),r+=8):(i=rt(a,r),s=rt(a,r+8),r+=16),r+=2;let u=a.length+s;const f=y(a,r);r+=2;for(let m=0;m<f;m++){let _=r;const A=S(a,_);_+=4;const B=A&2147483647;if((A&2147483648)>>>31===1)return w.warn("SIDX has hierarchical references (not supported)"),null;const V=S(a,_);_+=4,e.push({referenceSize:B,subsegmentDuration:V,info:{duration:V/n,start:u,end:u+B-1}}),u+=B,_+=4,r=_}return{earliestPresentationTime:i,timescale:n,version:t,referencesCount:f,references:e}}function Ke(a){const e=[],t=ke(a,["moov","trak"]);for(let n=0;n<t.length;n++){const i=t[n],s=ke(i,["tkhd"])[0];if(s){let u=s[0];const f=S(s,u===0?12:20),m=ke(i,["mdia","mdhd"])[0];if(m){u=m[0];const _=S(m,u===0?12:20),A=ke(i,["mdia","hdlr"])[0];if(A){const B=Ct(A.subarray(8,12)),Q={soun:W.AUDIO,vide:W.VIDEO}[B];if(Q){const V=ke(i,["mdia","minf","stbl","stsd"])[0],le=J(V);e[f]={timescale:_,type:Q},e[Q]=pe({timescale:_,id:f},le)}}}}}return ke(a,["moov","mvex","trex"]).forEach(n=>{const i=S(n,4),s=e[i];s&&(s.default={duration:S(n,12),flags:S(n,20)})}),e}function J(a){const e=a.subarray(8),t=e.subarray(86),r=Ct(e.subarray(4,8));let n=r;const i=r==="enca"||r==="encv";if(i){const u=ke(e,[r])[0].subarray(r==="enca"?28:78);ke(u,["sinf"]).forEach(m=>{const _=ke(m,["schm"])[0];if(_){const A=Ct(_.subarray(4,8));if(A==="cbcs"||A==="cenc"){const B=ke(m,["frma"])[0];B&&(n=Ct(B))}}})}switch(n){case"avc1":case"avc2":case"avc3":case"avc4":{const s=ke(t,["avcC"])[0];n+="."+Te(s[1])+Te(s[2])+Te(s[3]);break}case"mp4a":{const s=ke(e,[r])[0],u=ke(s.subarray(28),["esds"])[0];if(u&&u.length>12){let f=4;if(u[f++]!==3)break;f=he(u,f),f+=2;const m=u[f++];if(m&128&&(f+=2),m&64&&(f+=u[f++]),u[f++]!==4)break;f=he(u,f);const _=u[f++];if(_===64)n+="."+Te(_);else break;if(f+=12,u[f++]!==5)break;f=he(u,f);const A=u[f++];let B=(A&248)>>3;B===31&&(B+=1+((A&7)<<3)+((u[f]&224)>>5)),n+="."+B}break}case"hvc1":case"hev1":{const s=ke(t,["hvcC"])[0],u=s[1],f=["","A","B","C"][u>>6],m=u&31,_=S(s,2),A=(u&32)>>5?"H":"L",B=s[12],Q=s.subarray(6,12);n+="."+f+m,n+="."+_.toString(16).toUpperCase(),n+="."+A+B;let V="";for(let le=Q.length;le--;){const me=Q[le];(me||V)&&(V="."+me.toString(16).toUpperCase()+V)}n+=V;break}case"dvh1":case"dvhe":{const s=ke(t,["dvcC"])[0],u=s[2]>>1&127,f=s[2]<<5&32|s[3]>>3&31;n+="."+Fe(u)+"."+Fe(f);break}case"vp09":{const s=ke(t,["vpcC"])[0],u=s[4],f=s[5],m=s[6]>>4&15;n+="."+Fe(u)+"."+Fe(f)+"."+Fe(m);break}case"av01":{const s=ke(t,["av1C"])[0],u=s[1]>>>5,f=s[1]&31,m=s[2]>>>7?"H":"M",_=(s[2]&64)>>6,A=(s[2]&32)>>5,B=u===2&&_?A?12:10:_?10:8,Q=(s[2]&16)>>4,V=(s[2]&8)>>3,le=(s[2]&4)>>2,me=s[2]&3;n+="."+u+"."+Fe(f)+m+"."+Fe(B)+"."+Q+"."+V+le+me+"."+Fe(1)+"."+Fe(1)+"."+Fe(1)+"."+0;break}}return{codec:n,encrypted:i}}function he(a,e){const t=e+5;for(;a[e++]&128&&e<t;);return e}function Te(a){return("0"+a.toString(16).toUpperCase()).slice(-2)}function Fe(a){return(a<10?"0":"")+a}function $(a,e){if(!a||!e)return a;const t=e.keyId;return t&&e.isCommonEncryption&&ke(a,["moov","trak"]).forEach(n=>{const s=ke(n,["mdia","minf","stbl","stsd"])[0].subarray(8);let u=ke(s,["enca"]);const f=u.length>0;f||(u=ke(s,["encv"])),u.forEach(m=>{const _=f?m.subarray(28):m.subarray(78);ke(_,["sinf"]).forEach(B=>{const Q=Et(B);if(Q){const V=Q.subarray(8,24);V.some(le=>le!==0)||(w.log(`[eme] Patching keyId in 'enc${f?"a":"v"}>sinf>>tenc' box: ${yt.hexDump(V)} -> ${yt.hexDump(t)}`),Q.set(t,8))}})})}),a}function Et(a){const e=ke(a,["schm"])[0];if(e){const t=Ct(e.subarray(4,8));if(t==="cbcs"||t==="cenc")return ke(a,["schi","tenc"])[0]}return null}function Se(a,e){return ke(e,["moof","traf"]).reduce((t,r)=>{const n=ke(r,["tfdt"])[0],i=n[0],s=ke(r,["tfhd"]).reduce((u,f)=>{const m=S(f,4),_=a[m];if(_){let A=S(n,4);if(i===1){if(A===Lt)return w.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),u;A*=Lt+1,A+=S(n,8)}const B=_.timescale||9e4,Q=A/B;if(z(Q)&&(u===null||Q<u))return Q}return u},null);return s!==null&&z(s)&&(t===null||s<t)?s:t},null)}function Pt(a,e){let t=0,r=0,n=0;const i=ke(a,["moof","traf"]);for(let s=0;s<i.length;s++){const u=i[s],f=ke(u,["tfhd"])[0],m=S(f,4),_=e[m];if(!_)continue;const A=_.default,B=S(f,0)|(A==null?void 0:A.flags);let Q=A==null?void 0:A.duration;B&8&&(B&2?Q=S(f,12):Q=S(f,8));const V=_.timescale||9e4,le=ke(u,["trun"]);for(let me=0;me<le.length;me++){if(t=jt(le[me]),!t&&Q){const ze=S(le[me],4);t=Q*ze}_.type===W.VIDEO?r+=t/V:_.type===W.AUDIO&&(n+=t/V)}}if(r===0&&n===0){let s=1/0,u=0,f=0;const m=ke(a,["sidx"]);for(let _=0;_<m.length;_++){const A=Ue(m[_]);if(A!=null&&A.references){s=Math.min(s,A.earliestPresentationTime/A.timescale);const B=A.references.reduce((Q,V)=>Q+V.info.duration||0,0);u=Math.max(u,B+A.earliestPresentationTime/A.timescale),f=u-s}}if(f&&z(f))return f}return r||n}function jt(a){const e=S(a,0);let t=8;e&1&&(t+=4),e&4&&(t+=4);let r=0;const n=S(a,4);for(let i=0;i<n;i++){if(e&256){const s=S(a,t);r+=s,t+=4}e&512&&(t+=4),e&1024&&(t+=4),e&2048&&(t+=4)}return r}function qt(a,e,t){ke(e,["moof","traf"]).forEach(r=>{ke(r,["tfhd"]).forEach(n=>{const i=S(n,4),s=a[i];if(!s)return;const u=s.timescale||9e4;ke(r,["tfdt"]).forEach(f=>{const m=f[0],_=t*u;if(_){let A=S(f,4);if(m===0)A-=_,A=Math.max(A,0),be(f,4,A);else{A*=Math.pow(2,32),A+=S(f,8),A-=_,A=Math.max(A,0);const B=Math.floor(A/(Lt+1)),Q=Math.floor(A%(Lt+1));be(f,4,B),be(f,8,Q)}}})})})}function gr(a){const e={valid:null,remainder:null},t=ke(a,["moof"]);if(t.length<2)return e.remainder=a,e;const r=t[t.length-1];return e.valid=ue(a,0,r.byteOffset-8),e.remainder=ue(a,r.byteOffset-8),e}function Ft(a,e){const t=new Uint8Array(a.length+e.length);return t.set(a),t.set(e,a.length),t}function zt(a,e){const t=[],r=e.samples,n=e.timescale,i=e.id;let s=!1;return ke(r,["moof"]).map(f=>{const m=f.byteOffset-8;ke(f,["traf"]).map(A=>{const B=ke(A,["tfdt"]).map(Q=>{const V=Q[0];let le=S(Q,4);return V===1&&(le*=Math.pow(2,32),le+=S(Q,8)),le/n})[0];return B!==void 0&&(a=B),ke(A,["tfhd"]).map(Q=>{const V=S(Q,4),le=S(Q,0)&16777215,me=(le&1)!==0,ze=(le&2)!==0,it=(le&8)!==0;let nt=0;const _t=(le&16)!==0;let ot=0;const Ot=(le&32)!==0;let vt=8;V===i&&(me&&(vt+=8),ze&&(vt+=4),it&&(nt=S(Q,vt),vt+=4),_t&&(ot=S(Q,vt),vt+=4),Ot&&(vt+=4),e.type==="video"&&(s=fr(e.codec)),ke(A,["trun"]).map($t=>{const Jt=$t[0],It=S($t,0)&16777215,Gt=(It&1)!==0;let kr=0;const nr=(It&4)!==0,Cr=(It&256)!==0;let Sr=0;const mr=(It&512)!==0;let rn=0;const xn=(It&1024)!==0,cr=(It&2048)!==0;let ir=0;const ln=S($t,4);let Ur=8;Gt&&(kr=S($t,Ur),Ur+=4),nr&&(Ur+=4);let _n=kr+m;for(let Qn=0;Qn<ln;Qn++){if(Cr?(Sr=S($t,Ur),Ur+=4):Sr=nt,mr?(rn=S($t,Ur),Ur+=4):rn=ot,xn&&(Ur+=4),cr&&(Jt===0?ir=S($t,Ur):ir=H($t,Ur),Ur+=4),e.type===W.VIDEO){let oi=0;for(;oi<rn;){const hi=S(r,_n);if(_n+=4,Zr(s,r[_n])){const Mi=r.subarray(_n,_n+hi);un(Mi,s?2:1,a+ir/n,t)}_n+=hi,oi+=hi+4}}a+=Sr/n}}))})})}),t}function fr(a){if(!a)return!1;const e=a.indexOf("."),t=e<0?a:a.substring(0,e);return t==="hvc1"||t==="hev1"||t==="dvh1"||t==="dvhe"}function Zr(a,e){if(a){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function un(a,e,t,r){const n=$r(a);let i=0;i+=e;let s=0,u=0,f=0;for(;i<n.length;){s=0;do{if(i>=n.length)break;f=n[i++],s+=f}while(f===255);u=0;do{if(i>=n.length)break;f=n[i++],u+=f}while(f===255);const m=n.length-i;let _=i;if(u<m)i+=u;else if(u>m){w.error(`Malformed SEI payload. ${u} is too small, only ${m} bytes left to parse.`);break}if(s===4){if(n[_++]===181){const B=y(n,_);if(_+=2,B===49){const Q=S(n,_);if(_+=4,Q===1195456820){const V=n[_++];if(V===3){const le=n[_++],me=31&le,ze=64&le,it=ze?2+me*3:0,nt=new Uint8Array(it);if(ze){nt[0]=le;for(let _t=1;_t<it;_t++)nt[_t]=n[_++]}r.push({type:V,payloadType:s,pts:t,bytes:nt})}}}}}else if(s===5&&u>16){const A=[];for(let V=0;V<16;V++){const le=n[_++].toString(16);A.push(le.length==1?"0"+le:le),(V===3||V===5||V===7||V===9)&&A.push("-")}const B=u-16,Q=new Uint8Array(B);for(let V=0;V<B;V++)Q[V]=n[_++];r.push({payloadType:s,pts:t,uuid:A.join(""),userData:st(Q),userDataBytes:Q})}}}function $r(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 Ht(a){const e=a[0];let t="",r="",n=0,i=0,s=0,u=0,f=0,m=0;if(e===0){for(;Ct(a.subarray(m,m+1))!=="\0";)t+=Ct(a.subarray(m,m+1)),m+=1;for(t+=Ct(a.subarray(m,m+1)),m+=1;Ct(a.subarray(m,m+1))!=="\0";)r+=Ct(a.subarray(m,m+1)),m+=1;r+=Ct(a.subarray(m,m+1)),m+=1,n=S(a,12),i=S(a,16),u=S(a,20),f=S(a,24),m=28}else if(e===1){m+=4,n=S(a,m),m+=4;const A=S(a,m);m+=4;const B=S(a,m);for(m+=4,s=Yo(2,32)*A+B,M(s)||(s=Number.MAX_SAFE_INTEGER,w.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),u=S(a,m),m+=4,f=S(a,m),m+=4;Ct(a.subarray(m,m+1))!=="\0";)t+=Ct(a.subarray(m,m+1)),m+=1;for(t+=Ct(a.subarray(m,m+1)),m+=1;Ct(a.subarray(m,m+1))!=="\0";)r+=Ct(a.subarray(m,m+1)),m+=1;r+=Ct(a.subarray(m,m+1)),m+=1}const _=a.subarray(m,a.byteLength);return{schemeIdUri:t,value:r,timeScale:n,presentationTime:s,presentationTimeDelta:i,eventDuration:u,id:f,payload:_}}function ur(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 Ar(a,e,t){if(a.byteLength!==16)throw new RangeError("Invalid system id");let r,n;if(e){r=1,n=new Uint8Array(e.length*16);for(let u=0;u<e.length;u++){const f=e[u];if(f.byteLength!==16)throw new RangeError("Invalid key");n.set(f,u*16)}}else 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),ur([112,115,115,104],new Uint8Array([r,0,0,0]),a,i,n,s,t||new Uint8Array)}function Jr(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=Qr(n);e.push(i),r+=i.size}}return e}function Qr(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,u=yt.hexDump(new Uint8Array(s,t+12,16)),f=a.getUint32(28);let m=null,_=null;if(i===0){if(e-32<f||f<22)return{offset:t,size:e};_=new Uint8Array(s,t+32,f)}else if(i===1){if(!f||r<t+32+f*16+16)return{offset:t,size:e};m=[];for(let A=0;A<f;A++)m.push(new Uint8Array(s,t+32+A*16,16))}return{version:i,systemId:u,kids:m,data:_,offset:t,size:e}}let wn={};class Dr{static clearKeyUriToKeyIdMap(){wn={}}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&&e!=="AES-128"}isSupported(){if(this.method){if(this.method==="AES-128"||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case $e.FAIRPLAY:case $e.WIDEVINE:case $e.PLAYREADY:case $e.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(this.method==="AES-128"&&this.uri&&!this.iv){typeof e!="number"&&(this.method==="AES-128"&&!this.iv&&w.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0);const r=Fn(e);return new Dr(this.method,this.uri,"identity",this.keyFormatVersions,r)}const t=G(this.uri);if(t)switch(this.keyFormat){case $e.WIDEVINE:this.pssh=t,t.length>=22&&(this.keyId=t.subarray(t.length-22,t.length-6));break;case $e.PLAYREADY:{const r=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=Ar(r,null,t),this.keyId=St(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=wn[this.uri];if(!r){const n=Object.keys(wn).length%Number.MAX_SAFE_INTEGER;r=new Uint8Array(16),new DataView(r.buffer,12,4).setUint32(0,n),wn[this.uri]=r}this.keyId=r}return this}}function Fn(a){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=a>>8*(15-t)&255;return e}const cn=/\{\$([a-zA-Z0-9-_]+)\}/g;function Xt(a){return cn.test(a)}function Ut(a,e,t){if(a.variableList!==null||a.hasVariableRefs)for(let r=t.length;r--;){const n=t[r],i=e[n];i&&(e[n]=hr(a,i))}}function hr(a,e){if(a.variableList!==null||a.hasVariableRefs){const t=a.variableList;return e.replace(cn,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 Hr(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 _r(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}"`))}function nn(a=!0){return typeof self=="undefined"?void 0:(a||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function ri(a){return typeof self!="undefined"&&a===self.ManagedMediaSource}const qr={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,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 Qt(a,e){const t=qr[e];return!!t&&!!t[a.slice(0,4)]}function tt(a,e,t=!0){return!a.split(",").some(r=>!Xe(r,e,t))}function Xe(a,e,t=!0){var r;const n=nn(t);return(r=n==null?void 0:n.isTypeSupported(dt(a,e)))!=null?r:!1}function dt(a,e){return`${e}/mp4;codecs="${a}"`}function At(a){if(a){const e=a.substring(0,4);return qr.video[e]}return 2}function ut(a){return a.split(",").reduce((e,t)=>{const r=qr.video[t];return r?(r*2+e)/(e?3:2):(qr.audio[t]+e)/(e?2:1)},0)}const wt={};function pt(a,e=!0){if(wt[a])return wt[a];const t={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"]}[a];for(let r=0;r<t.length;r++)if(Xe(t[r],"audio",e))return wt[a]=t[r],t[r];return a}const Kt=/flac|opus/i;function tr(a,e=!0){return a.replace(Kt,t=>pt(t.toLowerCase(),e))}function Zt(a,e){return a&&a!=="mp4a"?a:e&&e.split(",")[0]}function vr(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(",")}const Tr=/#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,Or=/#EXT-X-MEDIA:(.*)/g,lr=/^#EXT(?:INF|-X-TARGETDURATION):/m,sr=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),jr=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(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 yr{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 Ee.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return lr.test(e)}static parseMasterPlaylist(e,t){const r=Xt(e),n={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:r},i=[];Tr.lastIndex=0;let s;for(;(s=Tr.exec(e))!=null;)if(s[1]){var u;const m=new ee(s[1]);Ut(n,m,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);const _=hr(n,s[2]),A={attrs:m,bitrate:m.decimalInteger("BANDWIDTH")||m.decimalInteger("AVERAGE-BANDWIDTH"),name:m.NAME,url:yr.resolve(_,t)},B=m.decimalResolution("RESOLUTION");B&&(A.width=B.width,A.height=B.height),Pr(m.CODECS,A),(u=A.unknownCodecs)!=null&&u.length||i.push(A),n.levels.push(A)}else if(s[3]){const m=s[3],_=s[4];switch(m){case"SESSION-DATA":{const A=new ee(_);Ut(n,A,["DATA-ID","LANGUAGE","VALUE","URI"]);const B=A["DATA-ID"];B&&(n.sessionData===null&&(n.sessionData={}),n.sessionData[B]=A);break}case"SESSION-KEY":{const A=Yr(_,t,n);A.encrypted&&A.isSupported()?(n.sessionKeys===null&&(n.sessionKeys=[]),n.sessionKeys.push(A)):w.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${_}"`);break}case"DEFINE":{{const A=new ee(_);Ut(n,A,["NAME","VALUE","QUERYPARAM"]),Hr(n,A,t)}break}case"CONTENT-STEERING":{const A=new ee(_);Ut(n,A,["SERVER-URI","PATHWAY-ID"]),n.contentSteering={uri:yr.resolve(A["SERVER-URI"],t),pathwayId:A["PATHWAY-ID"]||"."};break}case"START":{n.startTimeOffset=Nr(_);break}}}const f=i.length>0&&i.length<n.levels.length;return n.levels=f?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,u={AUDIO:s.map(m=>({id:m.attrs.AUDIO,audioCodec:m.audioCodec})),SUBTITLES:s.map(m=>({id:m.attrs.SUBTITLES,textCodec:m.textCodec})),"CLOSED-CAPTIONS":[]};let f=0;for(Or.lastIndex=0;(n=Or.exec(e))!==null;){const m=new ee(n[1]),_=m.TYPE;if(_){const A=u[_],B=i[_]||[];i[_]=B,Ut(r,m,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);const Q=m.LANGUAGE,V=m["ASSOC-LANGUAGE"],le=m.CHANNELS,me=m.CHARACTERISTICS,ze=m["INSTREAM-ID"],it={attrs:m,bitrate:0,id:f++,groupId:m["GROUP-ID"]||"",name:m.NAME||Q||"",type:_,default:m.bool("DEFAULT"),autoselect:m.bool("AUTOSELECT"),forced:m.bool("FORCED"),lang:Q,url:m.URI?yr.resolve(m.URI,t):""};if(V&&(it.assocLang=V),le&&(it.channels=le),me&&(it.characteristics=me),ze&&(it.instreamId=ze),A!=null&&A.length){const nt=yr.findGroup(A,it.groupId)||A[0];Rr(it,nt,"audioCodec"),Rr(it,nt,"textCodec")}B.push(it)}}return i}static parseLevelPlaylist(e,t,r,n,i,s){const u=new F(t),f=u.fragments;let m=null,_=0,A=0,B=0,Q=0,V=null,le=new q(n,t),me,ze,it,nt=-1,_t=!1,ot=null;for(sr.lastIndex=0,u.m3u8=e,u.hasVariableRefs=Xt(e);(me=sr.exec(e))!==null;){_t&&(_t=!1,le=new q(n,t),le.start=B,le.sn=_,le.cc=Q,le.level=r,m&&(le.initSegment=m,le.rawProgramDateTime=m.rawProgramDateTime,m.rawProgramDateTime=null,ot&&(le.setByteRange(ot),ot=null)));const Jt=me[1];if(Jt){le.duration=parseFloat(Jt);const It=(" "+me[2]).slice(1);le.title=It||null,le.tagList.push(It?["INF",Jt,It]:["INF",Jt])}else if(me[3]){if(z(le.duration)){le.start=B,it&&zr(le,it,u),le.sn=_,le.level=r,le.cc=Q,f.push(le);const It=(" "+me[3]).slice(1);le.relurl=hr(u,It),Fr(le,V),V=le,B+=le.duration,_++,A=0,_t=!0}}else if(me[4]){const It=(" "+me[4]).slice(1);V?le.setByteRange(It,V):le.setByteRange(It)}else if(me[5])le.rawProgramDateTime=(" "+me[5]).slice(1),le.tagList.push(["PROGRAM-DATE-TIME",le.rawProgramDateTime]),nt===-1&&(nt=f.length);else{if(me=me[0].match(jr),!me){w.warn("No matches on slow regex match for level playlist!");continue}for(ze=1;ze<me.length&&typeof me[ze]=="undefined";ze++);const It=(" "+me[ze]).slice(1),Gt=(" "+me[ze+1]).slice(1),kr=me[ze+2]?(" "+me[ze+2]).slice(1):"";switch(It){case"PLAYLIST-TYPE":u.type=Gt.toUpperCase();break;case"MEDIA-SEQUENCE":_=u.startSN=parseInt(Gt);break;case"SKIP":{const nr=new ee(Gt);Ut(u,nr,["RECENTLY-REMOVED-DATERANGES"]);const Cr=nr.decimalInteger("SKIPPED-SEGMENTS");if(z(Cr)){u.skippedSegments=Cr;for(let mr=Cr;mr--;)f.unshift(null);_+=Cr}const Sr=nr.enumeratedString("RECENTLY-REMOVED-DATERANGES");Sr&&(u.recentlyRemovedDateranges=Sr.split(" "));break}case"TARGETDURATION":u.targetduration=Math.max(parseInt(Gt),1);break;case"VERSION":u.version=parseInt(Gt);break;case"INDEPENDENT-SEGMENTS":case"EXTM3U":break;case"ENDLIST":u.live=!1;break;case"#":(Gt||kr)&&le.tagList.push(kr?[Gt,kr]:[Gt]);break;case"DISCONTINUITY":Q++,le.tagList.push(["DIS"]);break;case"GAP":le.gap=!0,le.tagList.push([It]);break;case"BITRATE":le.tagList.push([It,Gt]);break;case"DATERANGE":{const nr=new ee(Gt);Ut(u,nr,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),Ut(u,nr,nr.clientAttrs);const Cr=new we(nr,u.dateRanges[nr.ID]);Cr.isValid||u.skippedSegments?u.dateRanges[Cr.id]=Cr:w.warn(`Ignoring invalid DATERANGE tag: "${Gt}"`),le.tagList.push(["EXT-X-DATERANGE",Gt]);break}case"DEFINE":{{const nr=new ee(Gt);Ut(u,nr,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in nr?_r(u,nr,s):Hr(u,nr,t)}break}case"DISCONTINUITY-SEQUENCE":Q=parseInt(Gt);break;case"KEY":{const nr=Yr(Gt,t,u);if(nr.isSupported()){if(nr.method==="NONE"){it=void 0;break}it||(it={}),it[nr.keyFormat]&&(it=o({},it)),it[nr.keyFormat]=nr}else w.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${Gt}"`);break}case"START":u.startTimeOffset=Nr(Gt);break;case"MAP":{const nr=new ee(Gt);if(Ut(u,nr,["BYTERANGE","URI"]),le.duration){const Cr=new q(n,t);yn(Cr,nr,r,it),m=Cr,le.initSegment=m,m.rawProgramDateTime&&!le.rawProgramDateTime&&(le.rawProgramDateTime=m.rawProgramDateTime)}else{const Cr=le.byteRangeEndOffset;if(Cr){const Sr=le.byteRangeStartOffset;ot=`${Cr-Sr}@${Sr}`}else ot=null;yn(le,nr,r,it),m=le,_t=!0}break}case"SERVER-CONTROL":{const nr=new ee(Gt);u.canBlockReload=nr.bool("CAN-BLOCK-RELOAD"),u.canSkipUntil=nr.optionalFloat("CAN-SKIP-UNTIL",0),u.canSkipDateRanges=u.canSkipUntil>0&&nr.bool("CAN-SKIP-DATERANGES"),u.partHoldBack=nr.optionalFloat("PART-HOLD-BACK",0),u.holdBack=nr.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{const nr=new ee(Gt);u.partTarget=nr.decimalFloatingPoint("PART-TARGET");break}case"PART":{let nr=u.partList;nr||(nr=u.partList=[]);const Cr=A>0?nr[nr.length-1]:void 0,Sr=A++,mr=new ee(Gt);Ut(u,mr,["BYTERANGE","URI"]);const rn=new D(mr,le,t,Sr,Cr);nr.push(rn),le.duration+=rn.duration;break}case"PRELOAD-HINT":{const nr=new ee(Gt);Ut(u,nr,["URI"]),u.preloadHint=nr;break}case"RENDITION-REPORT":{const nr=new ee(Gt);Ut(u,nr,["URI"]),u.renditionReports=u.renditionReports||[],u.renditionReports.push(nr);break}default:w.warn(`line parsed but not handled: ${me}`);break}}}V&&!V.relurl?(f.pop(),B-=V.duration,u.partList&&(u.fragmentHint=V)):u.partList&&(Fr(le,V),le.cc=Q,u.fragmentHint=le,it&&zr(le,it,u));const Ot=f.length,vt=f[0],$t=f[Ot-1];if(B+=u.skippedSegments*u.targetduration,B>0&&Ot&&$t){u.averagetargetduration=B/Ot;const Jt=$t.sn;u.endSN=Jt!=="initSegment"?Jt:0,u.live||($t.endList=!0),vt&&(u.startCC=vt.cc)}else u.endSN=0,u.startCC=0;return u.fragmentHint&&(B+=u.fragmentHint.duration),u.totalduration=B,u.endCC=Q,nt>0&&Ir(f,nt),u}}function Yr(a,e,t){var r,n;const i=new ee(a);Ut(t,i,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);const s=(r=i.METHOD)!=null?r:"",u=i.URI,f=i.hexadecimalInteger("IV"),m=i.KEYFORMATVERSIONS,_=(n=i.KEYFORMAT)!=null?n:"identity";u&&i.IV&&!f&&w.error(`Invalid IV: ${i.IV}`);const A=u?yr.resolve(u,e):"",B=(m||"1").split("/").map(Number).filter(Number.isFinite);return new Dr(s,A,_,B,f)}function Nr(a){const t=new ee(a).decimalFloatingPoint("TIME-OFFSET");return z(t)?t:null}function Pr(a,e){let t=(a||"").split(/[ ,]+/).filter(r=>r);["video","audio","text"].forEach(r=>{const n=t.filter(i=>Qt(i,r));n.length&&(e[`${r}Codec`]=n.join(","),t=t.filter(i=>n.indexOf(i)===-1))}),e.unknownCodecs=t}function Rr(a,e,t){const r=e[t];r&&(a[t]=r)}function Ir(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 Fr(a,e){a.rawProgramDateTime?a.programDateTime=Date.parse(a.rawProgramDateTime):e!=null&&e.programDateTime&&(a.programDateTime=e.endProgramDateTime),z(a.programDateTime)||(a.programDateTime=null,a.rawProgramDateTime=null)}function yn(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 zr(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)}var dr={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},He={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};function ar(a){const{type:e}=a;switch(e){case dr.AUDIO_TRACK:return He.AUDIO;case dr.SUBTITLE_TRACK:return He.SUBTITLE;default:return He.MAIN}}function br(a,e){let t=a.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class fn{constructor(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=e,this.registerListeners()}startLoad(e){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:e}=this;e.on(h.MANIFEST_LOADING,this.onManifestLoading,this),e.on(h.LEVEL_LOADING,this.onLevelLoading,this),e.on(h.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(h.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}unregisterListeners(){const{hls:e}=this;e.off(h.MANIFEST_LOADING,this.onManifestLoading,this),e.off(h.LEVEL_LOADING,this.onLevelLoading,this),e.off(h.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(h.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,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:dr.MANIFEST,url:r,deliveryDirectives:null})}onLevelLoading(e,t){const{id:r,level:n,pathwayId:i,url:s,deliveryDirectives:u}=t;this.load({id:r,level:n,pathwayId:i,responseType:"text",type:dr.LEVEL,url:s,deliveryDirectives:u})}onAudioTrackLoading(e,t){const{id:r,groupId:n,url:i,deliveryDirectives:s}=t;this.load({id:r,groupId:n,level:null,responseType:"text",type:dr.AUDIO_TRACK,url:i,deliveryDirectives:s})}onSubtitleTrackLoading(e,t){const{id:r,groupId:n,url:i,deliveryDirectives:s}=t;this.load({id:r,groupId:n,level:null,responseType:"text",type:dr.SUBTITLE_TRACK,url:i,deliveryDirectives:s})}load(e){var t;const r=this.hls.config;let n=this.getInternalLoader(e);if(n){const m=n.context;if(m&&m.url===e.url&&m.level===e.level){w.trace("[playlist-loader]: playlist request ongoing");return}w.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),n.abort()}let i;if(e.type===dr.MANIFEST?i=r.manifestLoadPolicy.default:i=o({},r.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),n=this.createInternalLoader(e),z((t=e.deliveryDirectives)==null?void 0:t.part)){let m;if(e.type===dr.LEVEL&&e.level!==null?m=this.hls.levels[e.level].details:e.type===dr.AUDIO_TRACK&&e.id!==null?m=this.hls.audioTracks[e.id].details:e.type===dr.SUBTITLE_TRACK&&e.id!==null&&(m=this.hls.subtitleTracks[e.id].details),m){const _=m.partTarget,A=m.targetduration;if(_&&A){const B=Math.max(_*3,A*.8)*1e3;i=o({},i,{maxTimeToFirstByteMs:Math.min(B,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(B,i.maxTimeToFirstByteMs)})}}}const s=i.errorRetry||i.timeoutRetry||{},u={loadPolicy:i,timeout:i.maxLoadTimeMs,maxRetry:s.maxNumRetry||0,retryDelay:s.retryDelayMs||0,maxRetryDelay:s.maxRetryDelayMs||0},f={onSuccess:(m,_,A,B)=>{const Q=this.getInternalLoader(A);this.resetInternalLoader(A.type);const V=m.data;if(V.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(m,A,new Error("no EXTM3U delimiter"),B||null,_);return}_.parsing.start=performance.now(),yr.isMediaPlaylist(V)?this.handleTrackOrLevelPlaylist(m,_,A,B||null,Q):this.handleMasterPlaylist(m,_,A,B)},onError:(m,_,A,B)=>{this.handleNetworkError(_,A,!1,m,B)},onTimeout:(m,_,A)=>{this.handleNetworkError(_,A,!0,void 0,m)}};n.load(e,u,f)}handleMasterPlaylist(e,t,r,n){const i=this.hls,s=e.data,u=br(e,r),f=yr.parseMasterPlaylist(s,u);if(f.playlistParsingError){this.handleManifestParsingError(e,r,f.playlistParsingError,n,t);return}const{contentSteering:m,levels:_,sessionData:A,sessionKeys:B,startTimeOffset:Q,variableList:V}=f;this.variableList=V;const{AUDIO:le=[],SUBTITLES:me,"CLOSED-CAPTIONS":ze}=yr.parseMasterPlaylistMedia(s,u,f);le.length&&!le.some(nt=>!nt.url)&&_[0].audioCodec&&!_[0].attrs.AUDIO&&(w.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),le.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new ee({}),bitrate:0,url:""})),i.trigger(h.MANIFEST_LOADED,{levels:_,audioTracks:le,subtitles:me,captions:ze,contentSteering:m,url:u,stats:t,networkDetails:n,sessionData:A,sessionKeys:B,startTimeOffset:Q,variableList:V})}handleTrackOrLevelPlaylist(e,t,r,n,i){const s=this.hls,{id:u,level:f,type:m}=r,_=br(e,r),A=0,B=z(f)?f:z(u)?u:0,Q=ar(r),V=yr.parseLevelPlaylist(e.data,_,B,Q,A,this.variableList);if(m===dr.MANIFEST){const le={attrs:new ee({}),bitrate:0,details:V,name:"",url:_};s.trigger(h.MANIFEST_LOADED,{levels:[le],audioTracks:[],url:_,stats:t,networkDetails:n,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),r.levelDetails=V,this.handlePlaylistLoaded(V,e,t,r,n,i)}handleManifestParsingError(e,t,r,n,i){this.hls.trigger(h.ERROR,{type:E.NETWORK_ERROR,details:b.MANIFEST_PARSING_ERROR,fatal:t.type===dr.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===dr.LEVEL?s+=`: ${e.level} id: ${e.id}`:(e.type===dr.AUDIO_TRACK||e.type===dr.SUBTITLE_TRACK)&&(s+=` id: ${e.id} group-id: "${e.groupId}"`);const u=new Error(s);w.warn(`[playlist-loader]: ${s}`);let f=b.UNKNOWN,m=!1;const _=this.getInternalLoader(e);switch(e.type){case dr.MANIFEST:f=r?b.MANIFEST_LOAD_TIMEOUT:b.MANIFEST_LOAD_ERROR,m=!0;break;case dr.LEVEL:f=r?b.LEVEL_LOAD_TIMEOUT:b.LEVEL_LOAD_ERROR,m=!1;break;case dr.AUDIO_TRACK:f=r?b.AUDIO_TRACK_LOAD_TIMEOUT:b.AUDIO_TRACK_LOAD_ERROR,m=!1;break;case dr.SUBTITLE_TRACK:f=r?b.SUBTITLE_TRACK_LOAD_TIMEOUT:b.SUBTITLE_LOAD_ERROR,m=!1;break}_&&this.resetInternalLoader(e.type);const A={type:E.NETWORK_ERROR,details:f,fatal:m,url:e.url,loader:_,context:e,error:u,networkDetails:t,stats:i};if(n){const B=(t==null?void 0:t.url)||e.url;A.response=pe({url:B,data:void 0},n)}this.hls.trigger(h.ERROR,A)}handlePlaylistLoaded(e,t,r,n,i,s){const u=this.hls,{type:f,level:m,id:_,groupId:A,deliveryDirectives:B}=n,Q=br(t,n),V=ar(n),le=typeof n.level=="number"&&V===He.MAIN?m:void 0;if(!e.fragments.length){const ze=new Error("No Segments found in Playlist");u.trigger(h.ERROR,{type:E.NETWORK_ERROR,details:b.LEVEL_EMPTY_ERROR,fatal:!1,url:Q,error:ze,reason:ze.message,response:t,context:n,level:le,parent:V,networkDetails:i,stats:r});return}e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));const me=e.playlistParsingError;if(me){u.trigger(h.ERROR,{type:E.NETWORK_ERROR,details:b.LEVEL_PARSING_ERROR,fatal:!1,url:Q,error:me,reason:me.message,response:t,context:n,level:le,parent:V,networkDetails:i,stats:r});return}switch(e.live&&s&&(s.getCacheAge&&(e.ageHeader=s.getCacheAge()||0),(!s.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),f){case dr.MANIFEST:case dr.LEVEL:u.trigger(h.LEVEL_LOADED,{details:e,level:le||0,id:_||0,stats:r,networkDetails:i,deliveryDirectives:B});break;case dr.AUDIO_TRACK:u.trigger(h.AUDIO_TRACK_LOADED,{details:e,id:_||0,groupId:A||"",stats:r,networkDetails:i,deliveryDirectives:B});break;case dr.SUBTITLE_TRACK:u.trigger(h.SUBTITLE_TRACK_LOADED,{details:e,id:_||0,groupId:A||"",stats:r,networkDetails:i,deliveryDirectives:B});break}}}function Pn(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 Mn(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){w.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){w.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${n}`)}}t==="disabled"&&(a.mode=t)}function En(a){const e=a.mode;if(e==="disabled"&&(a.mode="hidden"),a.cues)for(let t=a.cues.length;t--;)a.removeCue(a.cues[t]);e==="disabled"&&(a.mode=e)}function pr(a,e,t,r){const n=a.mode;if(n==="disabled"&&(a.mode="hidden"),a.cues&&a.cues.length>0){const i=Sn(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 pn(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;for(;r<=n;){const i=Math.floor((n+r)/2);if(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 Sn(a,e,t){const r=[],n=pn(a,e);if(n>-1)for(let i=n,s=a.length;i<s;i++){const u=a[i];if(u.startTime>=e&&u.endTime<=t)r.push(u);else if(u.startTime>t)return r}return r}function Kr(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}var Cn={audioId3:"org.id3",dateRange:"com.apple.quicktime.HLS",emsg:"https://aomedia.org/emsg/ID3"};const di=.25;function $n(){if(typeof self!="undefined")return self.VTTCue||self.TextTrackCue}function Zn(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,JSON.stringify(n?pe({type:n},r):r))}return i}const Vt=(()=>{const a=$n();try{a&&new a(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();function sn(a,e){return a.getTime()/1e3-e}function Wr(a){return Uint8Array.from(a.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}class Rn{constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=e,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=null}_registerListeners(){const{hls:e}=this;e.on(h.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(h.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(h.MANIFEST_LOADING,this.onManifestLoading,this),e.on(h.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(h.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(h.LEVEL_UPDATED,this.onLevelUpdated,this)}_unregisterListeners(){const{hls:e}=this;e.off(h.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(h.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(h.MANIFEST_LOADING,this.onManifestLoading,this),e.off(h.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(h.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(h.LEVEL_UPDATED,this.onLevelUpdated,this)}onMediaAttached(e,t){this.media=t.media}onMediaDetaching(){this.id3Track&&(En(this.id3Track),this.id3Track=null,this.media=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 Pn(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=$n();if(s)for(let u=0;u<i.length;u++){const f=i[u].type;if(f===Cn.emsg&&!r||!n)continue;const m=Oe(i[u].data);if(m){const _=i[u].pts;let A=_+i[u].duration;A>Vt&&(A=Vt),A-_<=0&&(A=_+di);for(let Q=0;Q<m.length;Q++){const V=m[Q];if(!ve(V)){this.updateId3CueEnds(_,f);const le=Zn(s,_,A,V,f);le&&this.id3Track.addCue(le)}}}}}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===Vt&&(s.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:r,type:n}){const{id3Track:i,hls:s}=this;if(!s)return;const{config:{enableEmsgMetadataCues:u,enableID3MetadataCues:f}}=s;if(i&&(u||f)){let m;n==="audio"?m=_=>_.type===Cn.audioId3&&f:n==="video"?m=_=>_.type===Cn.emsg&&u:m=_=>_.type===Cn.audioId3&&f||_.type===Cn.emsg&&u,pr(i,t,r,m)}}onLevelUpdated(e,{details:t}){if(!this.media||!t.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;const{dateRangeCuesAppended:r,id3Track:n}=this,{dateRanges:i}=t,s=Object.keys(i);if(n){const _=Object.keys(r).filter(A=>!s.includes(A));for(let A=_.length;A--;){const B=_[A];Object.keys(r[B].cues).forEach(Q=>{n.removeCue(r[B].cues[Q])}),delete r[B]}}const u=t.fragments[t.fragments.length-1];if(s.length===0||!z(u==null?void 0:u.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const f=u.programDateTime/1e3-u.start,m=$n();for(let _=0;_<s.length;_++){const A=s[_],B=i[A],Q=sn(B.startDate,f),V=r[A],le=(V==null?void 0:V.cues)||{};let me=(V==null?void 0:V.durationKnown)||!1,ze=Vt;const it=B.endDate;if(it)ze=sn(it,f),me=!0;else if(B.endOnNext&&!me){const _t=s.reduce((ot,Ot)=>{if(Ot!==B.id){const vt=i[Ot];if(vt.class===B.class&&vt.startDate>B.startDate&&(!ot||B.startDate<ot.startDate))return vt}return ot},null);_t&&(ze=sn(_t.startDate,f),me=!0)}const nt=Object.keys(B.attr);for(let _t=0;_t<nt.length;_t++){const ot=nt[_t];if(!oe(ot))continue;const Ot=le[ot];if(Ot)me&&!V.durationKnown&&(Ot.endTime=ze);else if(m){let vt=B.attr[ot];Ae(ot)&&(vt=Wr(vt));const $t=Zn(m,Q,ze,{key:ot,data:vt},Cn.dateRange);$t&&($t.id=A,this.id3Track.addCue($t),le[ot]=$t)}}r[A]={cues:le,dateRange:B,durationKnown:me}}}}class fi{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=()=>this.timeupdate(),this.hls=e,this.config=e.config,this.registerListeners()}get latency(){return this._latency||0}get maxLatency(){const{config:e,levelDetails:t}=this;return e.liveMaxLatencyDuration!==void 0?e.liveMaxLatencyDuration:t?e.liveMaxLatencyDurationCount*t.targetduration:0}get targetLatency(){const{levelDetails:e}=this;if(e===null)return null;const{holdBack:t,partHoldBack:r,targetduration:n}=e,{liveSyncDuration:i,liveSyncDurationCount:s,lowLatencyMode:u}=this.config,f=this.hls.userConfig;let m=u&&r||t;(f.liveSyncDuration||f.liveSyncDurationCount||m===0)&&(m=i!==void 0?i:s*n);const _=n;return m+Math.min(this.stallCount*1,_)}get liveSyncPosition(){const e=this.estimateLiveEdge(),t=this.targetLatency,r=this.levelDetails;if(e===null||t===null||r===null)return null;const n=r.edge,i=e-t-this.edgeStalled,s=n-r.totalduration,u=n-(this.config.lowLatencyMode&&r.partTarget||r.targetduration);return Math.min(Math.max(s,i),u)}get drift(){const{levelDetails:e}=this;return e===null?1:e.drift}get edgeStalled(){const{levelDetails:e}=this;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,levelDetails:t}=this;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.levelDetails=null,this.hls=this.timeupdateHandler=null}registerListeners(){this.hls.on(h.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(h.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(h.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(h.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(h.ERROR,this.onError,this)}unregisterListeners(){this.hls.off(h.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(h.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.off(h.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(h.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.off(h.ERROR,this.onError,this)}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)}onManifestLoading(){this.levelDetails=null,this._latency=null,this.stallCount=0}onLevelUpdated(e,{details:t}){this.levelDetails=t,t.advanced&&this.timeupdate(),!t.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)}onError(e,t){var r;t.details===b.BUFFER_STALLED_ERROR&&(this.stallCount++,(r=this.levelDetails)!=null&&r.live&&w.warn("[playback-rate-controller]: Stall detected, adjusting target latency"))}timeupdate(){const{media:e,levelDetails:t}=this;if(!e||!t)return;this.currentTime=e.currentTime;const r=this.computeLatency();if(r===null)return;this._latency=r;const{lowLatencyMode:n,maxLiveSyncPlaybackRate:i}=this.config;if(!n||i===1||!t.live)return;const s=this.targetLatency;if(s===null)return;const u=r-s,f=Math.min(this.maxLatency,s+t.targetduration);if(u<f&&u>.05&&this.forwardBufferLength>1){const _=Math.min(2,Math.max(1,i)),A=Math.round(2/(1+Math.exp(-.75*u-this.edgeStalled))*20)/20;e.playbackRate=Math.min(_,Math.max(1,A))}else e.playbackRate!==1&&e.playbackRate!==0&&(e.playbackRate=1)}estimateLiveEdge(){const{levelDetails:e}=this;return e===null?null:e.edge+e.age}computeLatency(){const e=this.estimateLiveEdge();return e===null?null:e-this.currentTime}}const Yn=["NONE","TYPE-0","TYPE-1",null];function mn(a){return Yn.indexOf(a)>-1}const In=["SDR","PQ","HLG"];function en(a){return!!a&&In.indexOf(a)>-1}var ei={No:"",Yes:"YES",v2:"v2"};function Gn(a){const{canSkipUntil:e,canSkipDateRanges:t,age:r}=a,n=r<e/2;return e&&n?t?ei.v2:ei.Yes:ei.No}class li{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 Hn{constructor(e){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.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(t=>!!t).map(t=>t.substring(0,4)).join(","),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 Xn(this._audioGroups,e)}hasSubtitleGroup(e){return Xn(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 Xn(a,e){return!e||!a?!1:a.indexOf(e)!==-1}function Lr(a,e){const t=e.startPTS;if(z(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.duration=r)}else e.sn>a.sn?a.cc===e.cc&&a.minEndPTS?e.start=a.start+(a.minEndPTS-a.start):e.start=a.start+a.duration:e.start=Math.max(a.start-e.duration,0)}function ui(a,e,t,r,n,i){r-t<=0&&(w.warn("Fragment should have a positive duration",e),r=t+e.duration,i=n+e.duration);let u=t,f=r;const m=e.startPTS,_=e.endPTS;if(z(m)){const me=Math.abs(m-t);z(e.deltaPTS)?e.deltaPTS=Math.max(me,e.deltaPTS):e.deltaPTS=me,u=Math.max(t,m),t=Math.min(t,m),n=Math.min(n,e.startDTS),f=Math.min(r,_),r=Math.max(r,_),i=Math.max(i,e.endDTS)}const A=t-e.start;e.start!==0&&(e.start=t),e.duration=r-e.start,e.startPTS=t,e.maxStartPTS=u,e.startDTS=n,e.endPTS=r,e.minEndPTS=f,e.endDTS=i;const B=e.sn;if(!a||B<a.startSN||B>a.endSN)return 0;let Q;const V=B-a.startSN,le=a.fragments;for(le[V]=e,Q=V;Q>0;Q--)Lr(le[Q],le[Q-1]);for(Q=V;Q<le.length-1;Q++)Lr(le[Q],le[Q+1]);return a.fragmentHint&&Lr(le[le.length-1],a.fragmentHint),a.PTSKnown=a.alignedSliding=!0,A}function xi(a,e){let t=null;const r=a.fragments;for(let u=r.length-1;u>=0;u--){const f=r[u].initSegment;if(f){t=f;break}}a.fragmentHint&&delete a.fragmentHint.endPTS;let n;_i(a,e,(u,f,m,_)=>{if(e.skippedSegments&&f.cc!==u.cc){const A=u.cc-f.cc;for(let B=m;B<_.length;B++)_[B].cc+=A}z(u.startPTS)&&z(u.endPTS)&&(f.start=f.startPTS=u.startPTS,f.startDTS=u.startDTS,f.maxStartPTS=u.maxStartPTS,f.endPTS=u.endPTS,f.endDTS=u.endDTS,f.minEndPTS=u.minEndPTS,f.duration=u.endPTS-u.startPTS,f.duration&&(n=f),e.PTSKnown=e.alignedSliding=!0),f.elementaryStreams=u.elementaryStreams,f.loader=u.loader,f.stats=u.stats,u.initSegment&&(f.initSegment=u.initSegment,t=u.initSegment)});const i=e.fragments;if(t&&(e.fragmentHint?i.concat(e.fragmentHint):i).forEach(f=>{var m;f&&(!f.initSegment||f.initSegment.relurl===((m=t)==null?void 0:m.relurl))&&(f.initSegment=t)}),e.skippedSegments){if(e.deltaUpdateFailed=i.some(u=>!u),e.deltaUpdateFailed){w.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let u=e.skippedSegments;u--;)i.shift();e.startSN=i[0].sn}else e.canSkipDateRanges&&(e.dateRanges=wi(a.dateRanges,e.dateRanges,e.recentlyRemovedDateranges));e.startCC=e.fragments[0].cc,e.endCC=i[i.length-1].cc}gn(a.partList,e.partList,(u,f)=>{f.elementaryStreams=u.elementaryStreams,f.stats=u.stats}),n?ui(e,n,n.startPTS,n.endPTS,n.startDTS,n.endDTS):Ei(a,e),i.length&&(e.totalduration=e.edge-i[0].start),e.driftStartTime=a.driftStartTime,e.driftStart=a.driftStart;const s=e.advancedDateTime;if(e.advanced&&s){const u=e.edge;e.driftStart||(e.driftStartTime=s,e.driftStart=u),e.driftEndTime=s,e.driftEnd=u}else e.driftEndTime=a.driftEndTime,e.driftEnd=a.driftEnd,e.advancedDateTime=a.advancedDateTime}function wi(a,e,t){const r=o({},a);return t&&t.forEach(n=>{delete r[n]}),Object.keys(e).forEach(n=>{const i=new we(e[n].attr,r[n]);i.isValid?r[n]=i:w.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${JSON.stringify(e[n].attr)}"`)}),r}function gn(a,e,t){if(a&&e){let r=0;for(let n=0,i=a.length;n<=i;n++){const s=a[n],u=e[n+r];s&&u&&s.index===u.index&&s.fragment.sn===u.fragment.sn?t(s,u):r--}}}function _i(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,u=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,f=a.fragmentHint?a.fragments.concat(a.fragmentHint):a.fragments;for(let m=n;m<=i;m++){const _=f[s+m];let A=u[m];r&&!A&&m<r&&(A=e.fragments[m]=_),_&&A&&t(_,A,m,u)}}function Ei(a,e){const t=e.startSN+e.skippedSegments-a.startSN,r=a.fragments;t<0||t>=r.length||Mt(e,r[t].start)}function Mt(a,e){if(e){const t=a.fragments;for(let r=a.skippedSegments;r<t.length;r++)t[r].start+=e;a.fragmentHint&&(a.fragmentHint.start+=e)}}function jn(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 pi(a,e,t){if(!(a!=null&&a.details))return null;const r=a.details;let n=r.fragments[e-r.startSN];return n||(n=r.fragmentHint,n&&n.sn===e)?n:e<r.startSN&&t&&t.sn===e?t:null}function ci(a,e,t){var r;return a!=null&&a.details?Ln((r=a.details)==null?void 0:r.partList,e,t):null}function Ln(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 vn(a){a.forEach((e,t)=>{const{details:r}=e;r!=null&&r.fragments&&r.fragments.forEach(n=>{n.level=t})})}function Mr(a){switch(a.details){case b.FRAG_LOAD_TIMEOUT:case b.KEY_LOAD_TIMEOUT:case b.LEVEL_LOAD_TIMEOUT:case b.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function bn(a,e){const t=Mr(e);return a.default[`${t?"timeout":"error"}Retry`]}function Wn(a,e){const t=a.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*a.retryDelayMs,a.maxRetryDelayMs)}function qn(a){return pe(pe({},a),{errorRetry:null,timeoutRetry:null})}function kn(a,e,t,r){if(!a)return!1;const n=r==null?void 0:r.code,i=e<a.maxNumRetry&&(Kn(n)||!!t);return a.shouldRetry?a.shouldRetry(a,e,t,r,i):i}function Kn(a){return a===0&&navigator.onLine===!1||!!a&&(a<400||a>499)}const Bi={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 Hi(a,e,t){if(e===null||!Array.isArray(a)||!a.length||!z(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(ki(e,t,s))return s}return null}function Si(a,e,t=0,r=0,n=.005){let i=null;if(a){i=e[a.sn-e[0].sn+1]||null;const u=a.endDTS-t;u>0&&u<15e-7&&(t+=15e-7)}else t===0&&e[0].start===0&&(i=e[0]);if(i&&((!a||a.level===i.level)&&Li(t,r,i)===0||Yi(i,a,Math.min(n,r))))return i;const s=Bi.search(e,Li.bind(null,t,r));return s&&(s!==a||!i)?s:i}function Yi(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 Li(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 ki(a,e,t){const r=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-r>a}function rr(a,e){return Bi.search(a,t=>t.cc<e?1:t.cc>e?-1:0)}var Yt={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},Br={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4};class An{constructor(e){this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=e,this.log=w.log.bind(w,"[info]:"),this.warn=w.warn.bind(w,"[warning]:"),this.error=w.error.bind(w,"[error]:"),this.registerListeners()}registerListeners(){const e=this.hls;e.on(h.ERROR,this.onError,this),e.on(h.MANIFEST_LOADING,this.onManifestLoading,this),e.on(h.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(h.ERROR,this.onError,this),e.off(h.ERROR,this.onErrorOut,this),e.off(h.MANIFEST_LOADING,this.onManifestLoading,this),e.off(h.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)===He.MAIN?e.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(e,t){var r,n;if(t.fatal)return;const i=this.hls,s=t.context;switch(t.details){case b.FRAG_LOAD_ERROR:case b.FRAG_LOAD_TIMEOUT:case b.KEY_LOAD_ERROR:case b.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case b.FRAG_PARSING_ERROR:if((r=t.frag)!=null&&r.gap){t.errorAction={action:Yt.DoNothing,flags:Br.None};return}case b.FRAG_GAP:case b.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=Yt.SendAlternateToPenaltyBox;return}case b.LEVEL_EMPTY_ERROR:case b.LEVEL_PARSING_ERROR:{var u,f;const m=t.parent===He.MAIN?t.level:i.loadLevel;t.details===b.LEVEL_EMPTY_ERROR&&((u=t.context)!=null&&(f=u.levelDetails)!=null&&f.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,m):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,m))}return;case b.LEVEL_LOAD_ERROR:case b.LEVEL_LOAD_TIMEOUT:typeof(s==null?void 0:s.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,s.level));return;case b.AUDIO_TRACK_LOAD_ERROR:case b.AUDIO_TRACK_LOAD_TIMEOUT:case b.SUBTITLE_LOAD_ERROR:case b.SUBTITLE_TRACK_LOAD_TIMEOUT:if(s){const m=i.levels[i.loadLevel];if(m&&(s.type===dr.AUDIO_TRACK&&m.hasAudioGroup(s.groupId)||s.type===dr.SUBTITLE_TRACK&&m.hasSubtitleGroup(s.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.loadLevel),t.errorAction.action=Yt.SendAlternateToPenaltyBox,t.errorAction.flags=Br.MoveAllAlternatesMatchingHost;return}}return;case b.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const m=i.levels[i.loadLevel],_=m==null?void 0:m.attrs["HDCP-LEVEL"];_?t.errorAction={action:Yt.SendAlternateToPenaltyBox,flags:Br.MoveAllAlternatesMatchingHDCP,hdcpLevel:_}:this.keySystemError(t)}return;case b.BUFFER_ADD_CODEC_ERROR:case b.REMUX_ALLOC_ERROR:case b.BUFFER_APPEND_ERROR:t.errorAction=this.getLevelSwitchAction(t,(n=t.level)!=null?n:i.loadLevel);return;case b.INTERNAL_EXCEPTION:case b.BUFFER_APPENDING_ERROR:case b.BUFFER_FULL_ERROR:case b.LEVEL_SWITCH_ERROR:case b.BUFFER_STALLED_ERROR:case b.BUFFER_SEEK_OVER_HOLE:case b.BUFFER_NUDGE_ON_STALL:t.errorAction={action:Yt.DoNothing,flags:Br.None};return}t.type===E.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=bn(r.config.playlistLoadPolicy,e),i=this.playlistError++;if(kn(n,i,Mr(e),e.response))return{action:Yt.RetryRequest,flags:Br.None,retryConfig:n,retryCount:i};const u=this.getLevelSwitchAction(e,t);return n&&(u.retryConfig=n,u.retryCount=i),u}getFragRetryOrSwitchAction(e){const t=this.hls,r=this.getVariantLevelIndex(e.frag),n=t.levels[r],{fragLoadPolicy:i,keyLoadPolicy:s}=t.config,u=bn(e.details.startsWith("key")?s:i,e),f=t.levels.reduce((_,A)=>_+A.fragmentError,0);if(n&&(e.details!==b.FRAG_GAP&&n.fragmentError++,kn(u,f,Mr(e),e.response)))return{action:Yt.RetryRequest,flags:Br.None,retryConfig:u,retryCount:f};const m=this.getLevelSwitchAction(e,r);return u&&(m.retryConfig=u,m.retryCount=f),m}getLevelSwitchAction(e,t){const r=this.hls;t==null&&(t=r.loadLevel);const n=this.hls.levels[t];if(n){var i,s;const m=e.details;n.loadError++,m===b.BUFFER_APPEND_ERROR&&n.fragmentError++;let _=-1;const{levels:A,loadLevel:B,minAutoLevel:Q,maxAutoLevel:V}=r;r.autoLevelEnabled||(r.loadLevel=-1);const le=(i=e.frag)==null?void 0:i.type,ze=(le===He.AUDIO&&m===b.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(m===b.BUFFER_ADD_CODEC_ERROR||m===b.BUFFER_APPEND_ERROR))&&A.some(({audioCodec:Ot})=>n.audioCodec!==Ot),nt=e.sourceBufferName==="video"&&(m===b.BUFFER_ADD_CODEC_ERROR||m===b.BUFFER_APPEND_ERROR)&&A.some(({codecSet:Ot,audioCodec:vt})=>n.codecSet!==Ot&&n.audioCodec===vt),{type:_t,groupId:ot}=(s=e.context)!=null?s:{};for(let Ot=A.length;Ot--;){const vt=(Ot+B)%A.length;if(vt!==B&&vt>=Q&&vt<=V&&A[vt].loadError===0){var u,f;const $t=A[vt];if(m===b.FRAG_GAP&&le===He.MAIN&&e.frag){const Jt=A[vt].details;if(Jt){const It=Si(e.frag,Jt.fragments,e.frag.start);if(It!=null&&It.gap)continue}}else{if(_t===dr.AUDIO_TRACK&&$t.hasAudioGroup(ot)||_t===dr.SUBTITLE_TRACK&&$t.hasSubtitleGroup(ot))continue;if(le===He.AUDIO&&(u=n.audioGroups)!=null&&u.some(Jt=>$t.hasAudioGroup(Jt))||le===He.SUBTITLE&&(f=n.subtitleGroups)!=null&&f.some(Jt=>$t.hasSubtitleGroup(Jt))||ze&&n.audioCodec===$t.audioCodec||!ze&&n.audioCodec!==$t.audioCodec||nt&&n.codecSet===$t.codecSet)continue}_=vt;break}}if(_>-1&&r.loadLevel!==_)return e.levelRetry=!0,this.playlistError=0,{action:Yt.SendAlternateToPenaltyBox,flags:Br.None,nextAutoLevel:_}}return{action:Yt.SendAlternateToPenaltyBox,flags:Br.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var r;switch((r=t.errorAction)==null?void 0:r.action){case Yt.DoNothing:break;case Yt.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),!t.errorAction.resolved&&t.details!==b.FRAG_GAP?t.fatal=!0:/MediaSource readyState: ended/.test(t.error.message)&&(this.warn(`MediaSource ended after "${t.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`),this.hls.recoverMediaError());break;case Yt.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 Br.None:this.switchLevel(e,s);break;case Br.MoveAllAlternatesMatchingHDCP:i&&(t.maxHdcpLevel=Yn[Yn.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){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)}}class Gr{constructor(e,t){this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=w.log.bind(w,`${t}:`),this.warn=w.warn.bind(w,`${t}:`),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.requestScheduled=-1,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 u=n[s];let f;try{f=new self.URL(u.URI,t.url).href}catch(m){w.warn(`Could not construct new URL for Rendition Report: ${m}`),f=u.URI||""}if(f===e){i=s;break}else f===e.substring(0,f.length)&&(i=s)}if(i!==-1){const s=n[i],u=parseInt(s["LAST-MSN"])||(t==null?void 0:t.lastPartSn);let f=parseInt(s["LAST-PART"])||(t==null?void 0:t.lastPartIndex);if(this.hls.config.lowLatencyMode){const _=Math.min(t.age-t.partTarget,t.targetduration);f>=0&&_>t.partTarget&&(f+=1)}const m=r&&Gn(r);return new li(u,f>=0?f:void 0,m)}}}loadPlaylist(e){this.requestScheduled===-1&&(this.requestScheduled=self.performance.now())}shouldLoadPlaylist(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)}shouldReloadPlaylist(e){return this.timer===-1&&this.requestScheduled===-1&&this.shouldLoadPlaylist(e)}playlistLoaded(e,t,r){const{details:n,stats:i}=t,s=self.performance.now(),u=i.loading.first?Math.max(0,s-i.loading.first):0;if(n.advancedDateTime=Date.now()-u,n.live||r!=null&&r.live){if(n.reloaded(r),r&&this.log(`live playlist ${e} ${n.advanced?"REFRESHED "+n.lastPartSn+"-"+n.lastPartIndex:n.updated?"UPDATED":"MISSED"}`),r&&n.fragments.length>0&&xi(r,n),!this.canLoad||!n.live)return;let f,m,_;if(n.canBlockReload&&n.endSN&&n.advanced){const me=this.hls.config.lowLatencyMode,ze=n.lastPartSn,it=n.endSN,nt=n.lastPartIndex,_t=nt!==-1,ot=ze===it,Ot=me?0:nt;_t?(m=ot?it+1:ze,_=ot?Ot:nt+1):m=it+1;const vt=n.age,$t=vt+n.ageHeader;let Jt=Math.min($t-n.partTarget,n.targetduration*1.5);if(Jt>0){if(r&&Jt>r.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${r.tuneInGoal} to: ${Jt} with playlist age: ${n.age}`),Jt=0;else{const It=Math.floor(Jt/n.targetduration);if(m+=It,_!==void 0){const Gt=Math.round(Jt%n.targetduration/n.partTarget);_+=Gt}this.log(`CDN Tune-in age: ${n.ageHeader}s last advanced ${vt.toFixed(2)}s goal: ${Jt} skip sn ${It} to part ${_}`)}n.tuneInGoal=Jt}if(f=this.getDeliveryDirectives(n,t.deliveryDirectives,m,_),me||!ot){this.loadPlaylist(f);return}}else(n.canBlockReload||n.canSkipUntil)&&(f=this.getDeliveryDirectives(n,t.deliveryDirectives,m,_));const A=this.hls.mainForwardBufferInfo,B=A?A.end-A.len:0,Q=(n.edge-B)*1e3,V=jn(n,Q);n.updated&&s>this.requestScheduled+V&&(this.requestScheduled=i.loading.start),m!==void 0&&n.canBlockReload?this.requestScheduled=i.loading.first+V-(n.partTarget*1e3||1e3):this.requestScheduled===-1||this.requestScheduled+V<s?this.requestScheduled=s:this.requestScheduled-s<=0&&(this.requestScheduled+=V);let le=this.requestScheduled-s;le=Math.max(0,le),this.log(`reload live playlist ${e} in ${Math.round(le)} ms`),this.timer=self.setTimeout(()=>this.loadPlaylist(f),le)}else this.clearTimer()}getDeliveryDirectives(e,t,r,n){let i=Gn(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(r=t.msn,n=t.part,i=ei.No),new li(r,n,i)}checkRetry(e){const t=e.details,r=Mr(e),n=e.errorAction,{action:i,retryCount:s=0,retryConfig:u}=n||{},f=!!n&&!!u&&(i===Yt.RetryRequest||!n.resolved&&i===Yt.SendAlternateToPenaltyBox);if(f){var m;if(this.requestScheduled=-1,s>=u.maxNumRetry)return!1;if(r&&(m=e.context)!=null&&m.deliveryDirectives)this.warn(`Retrying playlist loading ${s+1}/${u.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const _=Wn(u,s);this.timer=self.setTimeout(()=>this.loadPlaylist(),_),this.warn(`Retrying playlist loading ${s+1}/${u.maxNumRetry} after "${t}" in ${_}ms`)}e.levelRetry=!0,n.resolved=!0}return f}}class ni{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 ji{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 ni(e),this.fast_=new ni(t),this.defaultTTFB_=n,this.ttfb_=new ni(e)}update(e,t){const{slow_:r,fast_:n,ttfb_:i}=this;r.halfLife!==e&&(this.slow_=new ni(e,r.getEstimate(),r.getTotalWeight())),n.halfLife!==t&&(this.fast_=new ni(t,n.getEstimate(),n.getTotalWeight())),i.halfLife!==e&&(this.ttfb_=new ni(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_}destroy(){}}const Ni={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]},yi={};function vs(a,e,t,r,n,i){const s=a.audioCodec?a.audioGroups:null,u=i==null?void 0:i.audioCodec,f=i==null?void 0:i.channels,m=f?parseInt(f):u?1/0:2;let _=null;if(s!=null&&s.length)try{s.length===1&&s[0]?_=e.groups[s[0]].channels:_=s.reduce((A,B)=>{if(B){const Q=e.groups[B];if(!Q)throw new Error(`Audio track group ${B} not found`);Object.keys(Q.channels).forEach(V=>{A[V]=(A[V]||0)+Q.channels[V]})}return A},{2:0})}catch(A){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))||!!_&&z(m)&&Object.keys(_).some(A=>parseInt(A)>m)}function Ds(a,e,t){const r=a.videoCodec,n=a.audioCodec;if(!r||!n||!t)return Promise.resolve(Ni);const i={width:a.width,height:a.height,bitrate:Math.ceil(Math.max(a.bitrate*.9,a.averageBitrate)),framerate:a.frameRate||30},s=a.videoRange;s!=="SDR"&&(i.transferFunction=s.toLowerCase());const u=r.split(",").map(f=>({type:"media-source",video:pe(pe({},i),{},{contentType:dt(f,"video")})}));return n&&a.audioGroups&&a.audioGroups.forEach(f=>{var m;f&&((m=e.groups[f])==null||m.tracks.forEach(_=>{if(_.groupId===f){const A=_.channels||"",B=parseFloat(A);z(B)&&B>2&&u.push.apply(u,n.split(",").map(Q=>({type:"media-source",audio:{contentType:dt(Q,"audio"),channels:""+B}})))}}))}),Promise.all(u.map(f=>{const m=Rs(f);return yi[m]||(yi[m]=t.decodingInfo(f))})).then(f=>({supported:!f.some(m=>!m.supported),configurations:u,decodingInfoResults:f})).catch(f=>({supported:!1,configurations:u,decodingInfoResults:[],error:f}))}function Rs(a){const{audio:e,video:t}=a,r=t||e;if(r){const n=r.contentType.split('"')[1];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""}function ns(){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 Is(a,e){let t=!1,r=[];return a&&(t=a!=="SDR",r=[a]),e&&(r=e.allowedVideoRanges||In.slice(0),t=e.preferHDR!==void 0?e.preferHDR:ns(),t?r=r.filter(n=>n!=="SDR"):r=["SDR"]),{preferHDR:t,allowedVideoRanges:r}}function Ai(a,e,t,r,n){const i=Object.keys(a),s=r==null?void 0:r.channels,u=r==null?void 0:r.audioCodec,f=s&&parseInt(s)===2;let m=!0,_=!1,A=1/0,B=1/0,Q=1/0,V=0,le=[];const{preferHDR:me,allowedVideoRanges:ze}=Is(e,n);for(let ot=i.length;ot--;){const Ot=a[i[ot]];m=Ot.channels[2]>0,A=Math.min(A,Ot.minHeight),B=Math.min(B,Ot.minFramerate),Q=Math.min(Q,Ot.minBitrate);const vt=ze.filter($t=>Ot.videoRanges[$t]>0);vt.length>0&&(_=!0,le=vt)}A=z(A)?A:0,B=z(B)?B:0;const it=Math.max(1080,A),nt=Math.max(30,B);return Q=z(Q)?Q:t,t=Math.max(Q,t),_||(e=void 0,le=[]),{codecSet:i.reduce((ot,Ot)=>{const vt=a[Ot];if(Ot===ot)return ot;if(vt.minBitrate>t)return zn(Ot,`min bitrate of ${vt.minBitrate} > current estimate of ${t}`),ot;if(!vt.hasDefaultAudio)return zn(Ot,"no renditions with default or auto-select sound found"),ot;if(u&&Ot.indexOf(u.substring(0,4))%5!==0)return zn(Ot,`audio codec preference "${u}" not found`),ot;if(s&&!f){if(!vt.channels[s])return zn(Ot,`no renditions with ${s} channel sound found (channels options: ${Object.keys(vt.channels)})`),ot}else if((!u||f)&&m&&vt.channels[2]===0)return zn(Ot,"no renditions with stereo sound found"),ot;return vt.minHeight>it?(zn(Ot,`min resolution of ${vt.minHeight} > maximum of ${it}`),ot):vt.minFramerate>nt?(zn(Ot,`min framerate of ${vt.minFramerate} > maximum of ${nt}`),ot):le.some($t=>vt.videoRanges[$t]>0)?vt.maxScore<V?(zn(Ot,`max score of ${vt.maxScore} < selected max of ${V}`),ot):ot&&(ut(Ot)>=ut(ot)||vt.fragmentError>a[ot].fragmentError)?ot:(V=vt.maxScore,Ot):(zn(Ot,`no variants with VIDEO-RANGE of ${JSON.stringify(le)} found`),ot)},void 0),videoRanges:le,preferHDR:me,minFramerate:B,minBitrate:Q}}function zn(a,e){w.log(`[abr] start candidates with "${a}" ignored because ${e}`)}function _s(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 is(a,e,t,r){return a.slice(t,r+1).reduce((n,i)=>{if(!i.codecSet)return n;const s=i.audioGroups;let u=n[i.codecSet];u||(n[i.codecSet]=u={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!s,fragmentError:0}),u.minBitrate=Math.min(u.minBitrate,i.bitrate);const f=Math.min(i.height,i.width);return u.minHeight=Math.min(u.minHeight,f),u.minFramerate=Math.min(u.minFramerate,i.frameRate),u.maxScore=Math.max(u.maxScore,i.score),u.fragmentError+=i.fragmentError,u.videoRanges[i.videoRange]=(u.videoRanges[i.videoRange]||0)+1,s&&s.forEach(m=>{if(!m)return;const _=e.groups[m];_&&(u.hasDefaultAudio=u.hasDefaultAudio||e.hasDefaultAudio?_.hasDefault:_.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(_.channels).forEach(A=>{u.channels[A]=(u.channels[A]||0)+_.channels[A]}))}),n},{})}function mi(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(Ti(a,n,t))return r}return-1}function Ti(a,e,t){const{groupId:r,name:n,lang:i,assocLang:s,default:u}=a,f=a.forced;return(r===void 0||e.groupId===r)&&(n===void 0||e.name===n)&&(i===void 0||e.lang===i)&&(i===void 0||e.assocLang===s)&&(u===void 0||e.default===u)&&(f===void 0||e.forced===f)&&(!("characteristics"in a)||qs(a.characteristics||"",e.characteristics))&&(t===void 0||t(a,e))}function qs(a,e=""){const t=a.split(","),r=e.split(",");return t.length===r.length&&!t.some(n=>r.indexOf(n)===-1)}function Di(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 Js(a,e,t,r,n){const i=e[r],u=e.reduce((B,Q,V)=>{const le=Q.uri;return(B[le]||(B[le]=[])).push(V),B},{})[i.uri];u.length>1&&(r=Math.max.apply(Math,u));const f=i.videoRange,m=i.frameRate,_=i.codecSet.substring(0,4),A=ys(e,r,B=>{if(B.videoRange!==f||B.frameRate!==m||B.codecSet.substring(0,4)!==_)return!1;const Q=B.audioGroups,V=t.filter(le=>!Q||Q.indexOf(le.groupId)!==-1);return mi(a,V,n)>-1});return A>-1?A:ys(e,r,B=>{const Q=B.audioGroups,V=t.filter(le=>!Q||Q.indexOf(le.groupId)!==-1);return mi(a,V,n)>-1})}function ys(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}class ss{constructor(e){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.bwEstimator=void 0,this._abandonRulesCheck=()=>{const{fragCurrent:t,partCurrent:r,hls:n}=this,{autoLevelEnabled:i,media:s}=n;if(!t||!s)return;const u=performance.now(),f=r?r.stats:t.stats,m=r?r.duration:t.duration,_=u-f.loading.start,A=n.minAutoLevel;if(f.aborted||f.loaded&&f.loaded===f.total||t.level<=A){this.clearTimer(),this._nextAutoLevel=-1;return}if(!i||s.paused||!s.playbackRate||!s.readyState)return;const B=n.mainForwardBufferInfo;if(B===null)return;const Q=this.bwEstimator.getEstimateTTFB(),V=Math.abs(s.playbackRate);if(_<=Math.max(Q,1e3*(m/(V*2))))return;const le=B.len/V,me=f.loading.first?f.loading.first-f.loading.start:-1,ze=f.loaded&&me>-1,it=this.getBwEstimate(),nt=n.levels,_t=nt[t.level],ot=f.total||Math.max(f.loaded,Math.round(m*_t.averageBitrate/8));let Ot=ze?_-me:_;Ot<1&&ze&&(Ot=Math.min(_,f.loaded*8/it));const vt=ze?f.loaded*1e3/Ot:0,$t=vt?(ot-f.loaded)/vt:ot*8/it+Q/1e3;if($t<=le)return;const Jt=vt?vt*8:it;let It=Number.POSITIVE_INFINITY,Gt;for(Gt=t.level-1;Gt>A;Gt--){const nr=nt[Gt].maxBitrate;if(It=this.getTimeToLoadFrag(Q/1e3,Jt,m*nr,!nt[Gt].details),It<le)break}if(It>=$t||It>m*10)return;n.nextLoadLevel=n.nextAutoLevel=Gt,ze?this.bwEstimator.sample(_-Math.min(Q,me),f.loaded):this.bwEstimator.sampleTTFB(_);const kr=nt[Gt].maxBitrate;this.getBwEstimate()*this.hls.config.abrBandWidthUpFactor>kr&&this.resetEstimator(kr),this.clearTimer(),w.warn(`[abr] Fragment ${t.sn}${r?" part "+r.index:""} of level ${t.level} is loading too slowly;
Time to underbuffer: ${le.toFixed(3)} s
Estimated load time for current fragment: ${$t.toFixed(3)} s
Estimated load time for down switch fragment: ${It.toFixed(3)} s
TTFB estimate: ${me|0} ms
Current BW estimate: ${z(it)?it|0:"Unknown"} bps
New BW estimate: ${this.getBwEstimate()|0} bps
Switching to level ${Gt} @ ${kr|0} bps`),n.trigger(h.FRAG_LOAD_EMERGENCY_ABORTED,{frag:t,part:r,stats:f})},this.hls=e,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(e){e&&(w.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 ji(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){const{hls:e}=this;e.on(h.MANIFEST_LOADING,this.onManifestLoading,this),e.on(h.FRAG_LOADING,this.onFragLoading,this),e.on(h.FRAG_LOADED,this.onFragLoaded,this),e.on(h.FRAG_BUFFERED,this.onFragBuffered,this),e.on(h.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(h.LEVEL_LOADED,this.onLevelLoaded,this),e.on(h.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(h.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(h.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(h.MANIFEST_LOADING,this.onManifestLoading,this),e.off(h.FRAG_LOADING,this.onFragLoading,this),e.off(h.FRAG_LOADED,this.onFragLoaded,this),e.off(h.FRAG_BUFFERED,this.onFragBuffered,this),e.off(h.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(h.LEVEL_LOADED,this.onLevelLoaded,this),e.off(h.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(h.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(h.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 b.BUFFER_ADD_CODEC_ERROR:case b.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case b.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(),u=i?i.stats:r.stats,f=s-u.loading.start,m=u.loading.first?u.loading.first-u.loading.start:-1;if(u.loaded&&m>-1){const A=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(f-Math.min(A,m),u.loaded)}else this.bwEstimator.sampleTTFB(f)}break}}}getTimeToLoadFrag(e,t,r,n){const i=e+r/t,s=n?this.lastLevelLoadSec:0;return i+s}onLevelLoaded(e,t){const r=this.hls.config,{loading:n}=t.stats,i=n.end-n.start;z(i)&&(this.lastLevelLoadSec=i/1e3),t.details.live?this.bwEstimator.update(r.abrEwmaSlowLive,r.abrEwmaFastLive):this.bwEstimator.update(r.abrEwmaSlowVoD,r.abrEwmaFastVoD)}onFragLoaded(e,{frag:t,part:r}){const n=r?r.stats:t.stats;if(t.type===He.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],u=(s.loaded?s.loaded.bytes:0)+n.loaded,f=(s.loaded?s.loaded.duration:0)+i;s.loaded={bytes:u,duration:f},s.realBitrate=Math.round(8*u/f)}if(t.bitrateTest){const i={stats:n,frag:t,part:r,id:t.type};this.onFragBuffered(h.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!==He.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,u=Math.min(Math.max(s,t),e);return w.warn(`[abr] Could not find best starting auto level. Defaulting to first in playlist ${s} clamped to ${u}`),u}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,{maxAutoLevel:n,config:i,minAutoLevel:s}=r,u=t?t.duration:e?e.duration:0,f=this.getBwEstimate(),m=this.getStarvationDelay();let _=i.abrBandWidthFactor,A=i.abrBandWidthUpFactor;if(m){const me=this.findBestLevel(f,s,n,m,0,_,A);if(me>=0)return me}let B=u?Math.min(u,i.maxStarvationDelay):i.maxStarvationDelay;if(!m){const me=this.bitrateTestDelay;me&&(B=(u?Math.min(u,i.maxLoadingDelay):i.maxLoadingDelay)-me,w.info(`[abr] bitrate test took ${Math.round(1e3*me)}ms, set first fragment max fetchDuration to ${Math.round(1e3*B)} ms`),_=A=1)}const Q=this.findBestLevel(f,s,n,m,B,_,A);if(w.info(`[abr] ${m?"rebuffering expected":"buffer is empty"}, optimal quality level ${Q}`),Q>-1)return Q;const V=r.levels[s],le=r.levels[r.loadLevel];return(V==null?void 0:V.bitrate)<(le==null?void 0:le.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,u){var f;const m=n+i,_=this.lastLoadedFragLevel,A=_===-1?this.hls.firstLevel:_,{fragCurrent:B,partCurrent:Q}=this,{levels:V,allAudioTracks:le,loadLevel:me,config:ze}=this.hls;if(V.length===1)return 0;const it=V[A],nt=!!(it!=null&&(f=it.details)!=null&&f.live),_t=me===-1||_===-1;let ot,Ot="SDR",vt=(it==null?void 0:it.frameRate)||0;const{audioPreference:$t,videoPreference:Jt}=ze,It=this.audioTracksByGroup||(this.audioTracksByGroup=_s(le));if(_t){if(this.firstSelection!==-1)return this.firstSelection;const Sr=this.codecTiers||(this.codecTiers=is(V,It,t,r)),mr=Ai(Sr,Ot,e,$t,Jt),{codecSet:rn,videoRanges:xn,minFramerate:cr,minBitrate:ir,preferHDR:ln}=mr;ot=rn,Ot=ln?xn[xn.length-1]:xn[0],vt=cr,e=Math.max(e,ir),w.log(`[abr] picked start tier ${JSON.stringify(mr)}`)}else ot=it==null?void 0:it.codecSet,Ot=it==null?void 0:it.videoRange;const Gt=Q?Q.duration:B?B.duration:0,kr=this.bwEstimator.getEstimateTTFB()/1e3,nr=[];for(let Sr=r;Sr>=t;Sr--){var Cr;const mr=V[Sr],rn=Sr>A;if(!mr)continue;if(ze.useMediaCapabilities&&!mr.supportedResult&&!mr.supportedPromise){const Qn=navigator.mediaCapabilities;typeof(Qn==null?void 0:Qn.decodingInfo)=="function"&&vs(mr,It,Ot,vt,e,$t)?(mr.supportedPromise=Ds(mr,It,Qn),mr.supportedPromise.then(oi=>{if(!this.hls)return;mr.supportedResult=oi;const hi=this.hls.levels,Mi=hi.indexOf(mr);oi.error?w.warn(`[abr] MediaCapabilities decodingInfo error: "${oi.error}" for level ${Mi} ${JSON.stringify(oi)}`):oi.supported||(w.warn(`[abr] Unsupported MediaCapabilities decodingInfo result for level ${Mi} ${JSON.stringify(oi)}`),Mi>-1&&hi.length>1&&(w.log(`[abr] Removing unsupported level ${Mi}`),this.hls.removeLevel(Mi)))})):mr.supportedResult=Ni}if(ot&&mr.codecSet!==ot||Ot&&mr.videoRange!==Ot||rn&&vt>mr.frameRate||!rn&&vt>0&&vt<mr.frameRate||mr.supportedResult&&!((Cr=mr.supportedResult.decodingInfoResults)!=null&&Cr[0].smooth)){nr.push(Sr);continue}const xn=mr.details,cr=(Q?xn==null?void 0:xn.partTarget:xn==null?void 0:xn.averagetargetduration)||Gt;let ir;rn?ir=u*e:ir=s*e;const ln=Gt&&n>=Gt*2&&i===0?V[Sr].averageBitrate:V[Sr].maxBitrate,Ur=this.getTimeToLoadFrag(kr,ir,ln*cr,xn===void 0);if(ir>=ln&&(Sr===_||mr.loadError===0&&mr.fragmentError===0)&&(Ur<=kr||!z(Ur)||nt&&!this.bitrateTestDelay||Ur<m)){const Qn=this.forcedAutoLevel;return Sr!==me&&(Qn===-1||Qn!==me)&&(nr.length&&w.trace(`[abr] Skipped level(s) ${nr.join(",")} of ${r} max with CODECS and VIDEO-RANGE:"${V[nr[0]].codecs}" ${V[nr[0]].videoRange}; not compatible with "${it.codecs}" ${Ot}`),w.info(`[abr] switch candidate:${A}->${Sr} adjustedbw(${Math.round(ir)})-bitrate=${Math.round(ir-ln)} ttfb:${kr.toFixed(1)} avgDuration:${cr.toFixed(1)} maxFetchDuration:${m.toFixed(1)} fetchDuration:${Ur.toFixed(1)} firstSelection:${_t} codecSet:${ot} videoRange:${Ot} hls.loadLevel:${me}`)),_t&&(this.firstSelection=Sr),Sr}}return-1}set nextAutoLevel(e){const{maxAutoLevel:t,minAutoLevel:r}=this.hls,n=Math.min(Math.max(e,r),t);this._nextAutoLevel!==n&&(this.nextAutoLevelKey="",this._nextAutoLevel=n)}}class Qs{constructor(){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(){}}var Un={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class Xi{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(h.BUFFER_APPENDED,this.onBufferAppended,this),e.on(h.FRAG_BUFFERED,this.onFragBuffered,this),e.on(h.FRAG_LOADED,this.onFragLoaded,this)}_unregisterListeners(){const{hls:e}=this;e.off(h.BUFFER_APPENDED,this.onBufferAppended,this),e.off(h.FRAG_BUFFERED,this.onFragBuffered,this),e.off(h.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){const{fragments:r}=this,n=Object.keys(r);for(let i=n.length;i--;){const s=r[n[i]];if((s==null?void 0:s.body.type)===t&&s.buffered){const u=s.body;if(u.start<=e&&e<=u.end)return u}}return null}detectEvictedFragments(e,t,r,n){this.timeRanges&&(this.timeRanges[e]=t);const i=(n==null?void 0:n.fragment.sn)||-1;Object.keys(this.fragments).forEach(s=>{const u=this.fragments[s];if(!u||i>=u.body.sn)return;if(!u.buffered&&!u.loaded){u.body.type===r&&this.removeFragment(u.body);return}const f=u.range[e];f&&f.time.some(m=>{const _=!this.isTimeBuffered(m.startPTS,m.endPTS,t);return _&&this.removeFragment(u.body),_})})}detectPartialFragments(e){const t=this.timeRanges,{frag:r,part:n}=e;if(!t||r.sn==="initSegment")return;const i=Ki(r),s=this.fragments[i];if(!s||s.buffered&&r.gap)return;const u=!r.relurl;Object.keys(t).forEach(f=>{const m=r.elementaryStreams[f];if(!m)return;const _=t[f],A=u||m.partial===!0;s.range[f]=this.getBufferedTimes(r,n,A,_)}),s.loaded=null,Object.keys(s.range).length?(s.buffered=!0,(s.body.endList=r.endList||s.body.endList)&&(this.endListFragments[s.body.type]=s),Fi(s)||this.removeParts(r.sn-1,r.type)):this.removeFragment(s.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=Ki(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,u=e.end,f=e.minEndPTS||u,m=e.maxStartPTS||s;for(let _=0;_<n.length;_++){const A=n.start(_)-this.bufferPadding,B=n.end(_)+this.bufferPadding;if(m>=A&&f<=B){i.time.push({startPTS:Math.max(s,n.start(_)),endPTS:Math.min(u,n.end(_))});break}else if(s<B&&u>A){const Q=Math.max(s,n.start(_)),V=Math.min(u,n.end(_));V>Q&&(i.partial=!0,i.time.push({startPTS:Q,endPTS:V}))}else if(u<=A)break}return i}getPartialFragment(e){let t=null,r,n,i,s=0;const{bufferPadding:u,fragments:f}=this;return Object.keys(f).forEach(m=>{const _=f[m];_&&Fi(_)&&(n=_.body.start-u,i=_.body.end+u,e>=n&&e<=i&&(r=Math.min(e-n,i-e),s<=r&&(t=_.body,s=r)))}),t}isEndListAppended(e){const t=this.endListFragments[e];return t!==void 0&&(t.buffered||Fi(t))}getState(e){const t=Ki(e),r=this.fragments[t];return r?r.buffered?Fi(r)?Un.PARTIAL:Un.OK:Un.APPENDING:Un.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}onFragLoaded(e,t){const{frag:r,part:n}=t;if(r.sn==="initSegment"||r.bitrateTest)return;const i=n?null:t,s=Ki(r);this.fragments[s]={body:r,appendedPTS:null,loaded:i,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:r,part:n,timeRanges:i}=t;if(r.sn==="initSegment")return;const s=r.type;if(n){let u=this.activePartLists[s];u||(this.activePartLists[s]=u=[]),u.push(n)}this.timeRanges=i,Object.keys(i).forEach(u=>{const f=i[u];this.detectEvictedFragments(u,f,s,n)})}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=Ki(e);return!!this.fragments[t]}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 u=this.fragments[s];if(!u)return;const f=u.body;f.type!==r||n&&!f.gap||f.start<t&&f.end>e&&(u.buffered||i)&&this.removeFragment(f)})}removeFragment(e){const t=Ki(e);e.stats.loaded=0,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(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1}}function Fi(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 Ki(a){return`${a.type}_${a.level}_${a.sn}`}const Ls={length:0,start:()=>0,end:()=>0};class an{static isBuffered(e,t){try{if(e){const r=an.getBuffered(e);for(let n=0;n<r.length;n++)if(t>=r.start(n)&&t<=r.end(n))return!0}}catch(r){}return!1}static bufferInfo(e,t,r){try{if(e){const n=an.getBuffered(e),i=[];let s;for(s=0;s<n.length;s++)i.push({start:n.start(s),end:n.end(s)});return this.bufferedInfo(i,t,r)}}catch(n){}return{len:0,start:t,end:t,nextStart:void 0}}static bufferedInfo(e,t,r){t=Math.max(0,t),e.sort(function(m,_){const A=m.start-_.start;return A||_.end-m.end});let n=[];if(r)for(let m=0;m<e.length;m++){const _=n.length;if(_){const A=n[_-1].end;e[m].start-A<r?e[m].end>A&&(n[_-1].end=e[m].end):n.push(e[m])}else n.push(e[m])}else n=e;let i=0,s,u=t,f=t;for(let m=0;m<n.length;m++){const _=n[m].start,A=n[m].end;if(t+r>=_&&t<A)u=_,f=A,i=f-t;else if(t+r<_){s=_;break}}return{len:i,start:u||0,end:f||0,nextStart:s}}static getBuffered(e){try{return e.buffered}catch(t){return w.log("failed to get media.buffered",t),Ls}}}class as{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=ii(),this.buffering={audio:ii(),video:ii(),audiovideo:ii()},this.level=e,this.sn=t,this.id=r,this.size=n,this.part=i,this.partial=s}}function ii(){return{start:0,executeStart:0,executeEnd:0,end:0}}function qi(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 ea(a,e,t){return!!(e&&(t.endCC>t.startCC||a&&a.cc<t.startCC))}function os(a,e){const t=a.fragments,r=e.fragments;if(!r.length||!t.length){w.log("No fragments to align");return}const n=qi(t,r[0].cc);if(!n||n&&!n.startPTS){w.log("No frag in previous level to align on");return}return n}function ls(a,e){if(a){const t=a.start+e;a.start=a.startPTS=t,a.endPTS=t+a.duration}}function us(a,e){const t=e.fragments;for(let r=0,n=t.length;r<n;r++)ls(t[r],a);e.fragmentHint&&ls(e.fragmentHint,a),e.alignedSliding=!0}function bs(a,e,t){e&&(ks(a,t,e),!t.alignedSliding&&e&&bi(t,e),!t.alignedSliding&&e&&!t.skippedSegments&&Ei(e,t))}function ks(a,e,t){if(ea(a,t,e)){const r=os(t,e);r&&z(r.start)&&(w.log(`Adjusting PTS using last level due to CC increase within current level ${e.url}`),us(r.start,e))}}function bi(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=qi(r,s),i=qi(t,s)),(!n||!i)&&(n=r[Math.floor(r.length/2)],i=qi(t,n.cc)||t[Math.floor(t.length/2)]);const u=n.programDateTime,f=i.programDateTime;if(!u||!f)return;const m=(f-u)/1e3-(i.start-n.start);us(m,a)}const xs=Math.pow(2,17);class tn{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 On({type:E.NETWORK_ERROR,details:b.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((u,f)=>{if(this.loader&&this.loader.destroy(),e.gap)if(e.tagList.some(Q=>Q[0]==="GAP")){f(Vr(e));return}else e.gap=!1;const m=this.loader=e.loader=i?new i(n):new s(n),_=Xr(e),A=qn(n.fragLoadPolicy.default),B={loadPolicy:A,timeout:A.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:xs};e.stats=m.stats,m.load(_,B,{onSuccess:(Q,V,le,me)=>{this.resetLoader(e,m);let ze=Q.data;le.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(ze.slice(0,16)),ze=ze.slice(16)),u({frag:e,part:null,payload:ze,networkDetails:me})},onError:(Q,V,le,me)=>{this.resetLoader(e,m),f(new On({type:E.NETWORK_ERROR,details:b.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:pe({url:r,data:void 0},Q),error:new Error(`HTTP Error ${Q.code} ${Q.text}`),networkDetails:le,stats:me}))},onAbort:(Q,V,le)=>{this.resetLoader(e,m),f(new On({type:E.NETWORK_ERROR,details:b.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:le,stats:Q}))},onTimeout:(Q,V,le)=>{this.resetLoader(e,m),f(new On({type:E.NETWORK_ERROR,details:b.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${B.timeout}ms`),networkDetails:le,stats:Q}))},onProgress:(Q,V,le,me)=>{t&&t({frag:e,part:null,payload:le,networkDetails:me})}})})}loadPart(e,t,r){this.abort();const n=this.config,i=n.fLoader,s=n.loader;return new Promise((u,f)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap){f(Vr(e,t));return}const m=this.loader=e.loader=i?new i(n):new s(n),_=Xr(e,t),A=qn(n.fragLoadPolicy.default),B={loadPolicy:A,timeout:A.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:xs};t.stats=m.stats,m.load(_,B,{onSuccess:(Q,V,le,me)=>{this.resetLoader(e,m),this.updateStatsFromPart(e,t);const ze={frag:e,part:t,payload:Q.data,networkDetails:me};r(ze),u(ze)},onError:(Q,V,le,me)=>{this.resetLoader(e,m),f(new On({type:E.NETWORK_ERROR,details:b.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:pe({url:_.url,data:void 0},Q),error:new Error(`HTTP Error ${Q.code} ${Q.text}`),networkDetails:le,stats:me}))},onAbort:(Q,V,le)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,m),f(new On({type:E.NETWORK_ERROR,details:b.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:le,stats:Q}))},onTimeout:(Q,V,le)=>{this.resetLoader(e,m),f(new On({type:E.NETWORK_ERROR,details:b.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${B.timeout}ms`),networkDetails:le,stats:Q}))}})})}updateStatsFromPart(e,t){const r=e.stats,n=t.stats,i=n.total;if(r.loaded+=n.loaded,i){const f=Math.round(e.duration/t.duration),m=Math.min(Math.round(r.loaded/i),f),A=(f-m)*Math.round(r.loaded/m);r.total=r.loaded+A}else r.total=Math.max(r.loaded,r.total);const s=r.loading,u=n.loading;s.start?s.first+=u.first-u.start:(s.start=u.start,s.first=u.first),s.end=u.end}resetLoader(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function Xr(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(z(n)&&z(i)){var s;let u=n,f=i;if(a.sn==="initSegment"&&((s=a.decryptdata)==null?void 0:s.method)==="AES-128"){const m=i-n;m%16&&(f=i+(16-m%16)),n!==0&&(r.resetIV=!0,u=n-16)}r.rangeStart=u,r.rangeEnd=f}return r}function Vr(a,e){const t=new Error(`GAP ${a.gap?"tag":"attribute"} found`),r={type:E.MEDIA_ERROR,details:b.FRAG_GAP,fatal:!1,frag:a,error:t,networkDetails:null};return e&&(r.part=e),(e||a).stats.aborted=!0,new On(r)}class On extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class Bn{constructor(e,t){this.subtle=void 0,this.aesIV=void 0,this.subtle=e,this.aesIV=t}decrypt(e,t){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e)}}class Ji{constructor(e,t){this.subtle=void 0,this.key=void 0,this.subtle=e,this.key=t}expandKey(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])}}function ws(a){const e=a.byteLength,t=e&&new DataView(a.buffer).getUint8(e-1);return t?ue(a,0,e-t):a}class Os{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],u=r[3],f=this.invSubMix,m=f[0],_=f[1],A=f[2],B=f[3],Q=new Uint32Array(256);let V=0,le=0,me=0;for(me=0;me<256;me++)me<128?Q[me]=me<<1:Q[me]=me<<1^283;for(me=0;me<256;me++){let ze=le^le<<1^le<<2^le<<3^le<<4;ze=ze>>>8^ze&255^99,e[V]=ze,t[ze]=V;const it=Q[V],nt=Q[it],_t=Q[nt];let ot=Q[ze]*257^ze*16843008;n[V]=ot<<24|ot>>>8,i[V]=ot<<16|ot>>>16,s[V]=ot<<8|ot>>>24,u[V]=ot,ot=_t*16843009^nt*65537^it*257^V*16843008,m[ze]=ot<<24|ot>>>8,_[ze]=ot<<16|ot>>>16,A[ze]=ot<<8|ot>>>24,B[ze]=ot,V?(V=it^Q[Q[Q[_t^it]]],le^=Q[Q[le]]):V=le=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 u,f;const m=this.keySchedule=new Uint32Array(s),_=this.invKeySchedule=new Uint32Array(s),A=this.sBox,B=this.rcon,Q=this.invSubMix,V=Q[0],le=Q[1],me=Q[2],ze=Q[3];let it,nt;for(u=0;u<s;u++){if(u<i){it=m[u]=t[u];continue}nt=it,u%i===0?(nt=nt<<8|nt>>>24,nt=A[nt>>>24]<<24|A[nt>>>16&255]<<16|A[nt>>>8&255]<<8|A[nt&255],nt^=B[u/i|0]<<24):i>6&&u%i===4&&(nt=A[nt>>>24]<<24|A[nt>>>16&255]<<16|A[nt>>>8&255]<<8|A[nt&255]),m[u]=it=(m[u-i]^nt)>>>0}for(f=0;f<s;f++)u=s-f,f&3?nt=m[u]:nt=m[u-4],f<4||u<=4?_[f]=nt:_[f]=V[A[nt>>>24]]^le[A[nt>>>16&255]]^me[A[nt>>>8&255]]^ze[A[nt&255]],_[f]=_[f]>>>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,u=this.invSubMix,f=u[0],m=u[1],_=u[2],A=u[3],B=this.uint8ArrayToUint32Array_(r);let Q=B[0],V=B[1],le=B[2],me=B[3];const ze=new Int32Array(e),it=new Int32Array(ze.length);let nt,_t,ot,Ot,vt,$t,Jt,It,Gt,kr,nr,Cr,Sr,mr;const rn=this.networkToHostOrderSwap;for(;t<ze.length;){for(Gt=rn(ze[t]),kr=rn(ze[t+1]),nr=rn(ze[t+2]),Cr=rn(ze[t+3]),vt=Gt^i[0],$t=Cr^i[1],Jt=nr^i[2],It=kr^i[3],Sr=4,mr=1;mr<n;mr++)nt=f[vt>>>24]^m[$t>>16&255]^_[Jt>>8&255]^A[It&255]^i[Sr],_t=f[$t>>>24]^m[Jt>>16&255]^_[It>>8&255]^A[vt&255]^i[Sr+1],ot=f[Jt>>>24]^m[It>>16&255]^_[vt>>8&255]^A[$t&255]^i[Sr+2],Ot=f[It>>>24]^m[vt>>16&255]^_[$t>>8&255]^A[Jt&255]^i[Sr+3],vt=nt,$t=_t,Jt=ot,It=Ot,Sr=Sr+4;nt=s[vt>>>24]<<24^s[$t>>16&255]<<16^s[Jt>>8&255]<<8^s[It&255]^i[Sr],_t=s[$t>>>24]<<24^s[Jt>>16&255]<<16^s[It>>8&255]<<8^s[vt&255]^i[Sr+1],ot=s[Jt>>>24]<<24^s[It>>16&255]<<16^s[vt>>8&255]<<8^s[$t&255]^i[Sr+2],Ot=s[It>>>24]<<24^s[vt>>16&255]<<16^s[$t>>8&255]<<8^s[Jt&255]^i[Sr+3],it[t]=rn(nt^Q),it[t+1]=rn(Ot^V),it[t+2]=rn(ot^le),it[t+3]=rn(_t^me),Q=Gt,V=kr,le=nr,me=Cr,t=t+4}return it.buffer}}const Ps=16;class Qi{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.useSoftware=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?ws(r):r}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,r){return this.useSoftware?new Promise((n,i)=>{this.softwareDecrypt(new Uint8Array(e),t,r);const s=this.flush();s?n(s.buffer):i(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(e),t,r)}softwareDecrypt(e,t,r){const{currentIV:n,currentResult:i,remainderData:s}=this;this.logOnce("JS AES decrypt"),s&&(e=Ft(s,e),this.remainderData=null);const u=this.getValidChunk(e);if(!u.length)return null;n&&(r=n);let f=this.softwareDecrypter;f||(f=this.softwareDecrypter=new Os),f.expandKey(t);const m=i;return this.currentResult=f.decrypt(u.buffer,0,r),this.currentIV=ue(u,-16).buffer,m||null}webCryptoDecrypt(e,t,r){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,r));this.key=t,this.fastAesKey=new Ji(this.subtle,t)}return this.fastAesKey.expandKey().then(n=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new Bn(this.subtle,new Uint8Array(r)).decrypt(e.buffer,n)):Promise.reject(new Error("web crypto not initialized"))).catch(n=>(w.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${n.name}: ${n.message}`),this.onWebCryptoError(e,t,r)))}onWebCryptoError(e,t,r){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,r);const n=this.flush();if(n)return n.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")}getValidChunk(e){let t=e;const r=e.length-e.length%Ps;return r!==e.length&&(t=ue(e,0,r),this.remainderData=ue(e,r)),t}logOnce(e){this.logEnabled&&(w.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const Wi={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}},Dt={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 cs extends Qs{constructor(e,t,r,n,i){super(),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=Dt.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.loadedmetadata=!1,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.onvseeking=null,this.onvended=null,this.logPrefix="",this.log=void 0,this.warn=void 0,this.playlistType=i,this.logPrefix=n,this.log=w.log.bind(w,`${n}:`),this.warn=w.warn.bind(w,`${n}:`),this.hls=e,this.fragmentLoader=new tn(e.config),this.keyLoader=r,this.fragmentTracker=t,this.config=e.config,this.decrypter=new Qi(e.config),e.on(h.MANIFEST_LOADED,this.onManifestLoaded,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){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=Dt.STOPPED}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}_streamEnded(e,t){if(t.live||e.nextStart||!e.end||!this.media)return!1;const r=t.partList;if(r!=null&&r.length){const i=r[r.length-1];return an.isBuffered(this.media,i.start+i.duration/2)}const n=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(n)}getLevelDetails(){if(this.levels&&this.levelLastLoaded!==null){var e;return(e=this.levelLastLoaded)==null?void 0:e.details}}onMediaAttached(e,t){const r=this.media=this.mediaBuffer=t.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),r.addEventListener("seeking",this.onvseeking),r.addEventListener("ended",this.onvended);const n=this.config;this.levels&&n.autoStartLoad&&this.state===Dt.STOPPED&&this.startLoad(n.startPosition)}onMediaDetaching(){const e=this.media;e!=null&&e.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),e&&this.onvseeking&&this.onvended&&(e.removeEventListener("seeking",this.onvseeking),e.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.keyLoader&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}onMediaSeeking(){const{config:e,fragCurrent:t,media:r,mediaBuffer:n,state:i}=this,s=r?r.currentTime:0,u=an.bufferInfo(n||r,s,e.maxBufferHole);if(this.log(`media seeking to ${z(s)?s.toFixed(3):s}, state: ${i}`),this.state===Dt.ENDED)this.resetLoadingState();else if(t){const f=e.maxFragLookUpTolerance,m=t.start-f,_=t.start+t.duration+f;if(!u.len||_<u.start||m>u.end){const A=s>_;(s<m||A)&&(A&&t.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),t.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}r&&(this.fragmentTracker.removeFragmentsInRange(s,1/0,this.playlistType,!0),this.lastCurrentTime=s),!this.loadedmetadata&&!u.len&&(this.nextLoadPosition=this.startPosition=s),this.tickImmediate()}onMediaEnded(){this.startPosition=this.lastCurrentTime=0}onManifestLoaded(e,t){this.startTimeOffset=t.startTimeOffset,this.initPTS=[]}onHandlerDestroying(){this.hls.off(h.MANIFEST_LOADED,this.onManifestLoaded,this),this.stopLoad(),super.onHandlerDestroying(),this.hls=null}onHandlerDestroyed(){this.state=Dt.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._loadFragForPlayback(e,t,r)}_loadFragForPlayback(e,t,r){const n=i=>{if(this.fragContextChanged(e)){this.warn(`Fragment ${e.sn}${i.part?" p: "+i.part.index:""} of level ${e.level} was dropped during download.`),this.fragmentTracker.removeFragment(e);return}e.stats.chunkCount++,this._handleFragmentLoadProgress(i)};this._doFragLoad(e,t,r,n).then(i=>{if(!i)return;const s=this.state;if(this.fragContextChanged(e)){(s===Dt.FRAG_LOADING||!this.fragCurrent&&s===Dt.PARSING)&&(this.fragmentTracker.removeFragment(e),this.state=Dt.IDLE);return}"payload"in i&&(this.log(`Loaded fragment ${e.sn} of level ${e.level}`),this.hls.trigger(h.FRAG_LOADED,i)),this._handleFragmentLoadComplete(i)}).catch(i=>{this.state===Dt.STOPPED||this.state===Dt.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)===Un.APPENDING){const i=e.type,s=this.getFwdBufferInfo(this.mediaBuffer,i),u=Math.max(e.duration,s?s.len:this.config.maxBufferLength),f=this.backtrackFragment;((f?e.sn-f.sn:0)===1||this.reduceMaxBufferLength(u,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)===Un.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)}flushMainBuffer(e,t,r=null){if(!(e-t))return;const n={startOffset:e,endOffset:t,type:r};this.hls.trigger(h.BUFFER_FLUSHING,n)}_loadInitSegment(e,t){this._doFragLoad(e,t).then(r=>{if(!r||this.fragContextChanged(e)||!this.levels)throw new Error("init load aborted");return r}).then(r=>{const{hls:n}=this,{payload:i}=r,s=e.decryptdata;if(i&&i.byteLength>0&&s!=null&&s.key&&s.iv&&s.method==="AES-128"){const u=self.performance.now();return this.decrypter.decrypt(new Uint8Array(i),s.key.buffer,s.iv.buffer).catch(f=>{throw n.trigger(h.ERROR,{type:E.MEDIA_ERROR,details:b.FRAG_DECRYPT_ERROR,fatal:!1,error:f,reason:f.message,frag:e}),f}).then(f=>{const m=self.performance.now();return n.trigger(h.FRAG_DECRYPTED,{frag:e,payload:f,stats:{tstart:u,tdecrypt:m}}),r.payload=f,this.completeInitSegmentLoad(r)})}return this.completeInitSegmentLoad(r)}).catch(r=>{this.state===Dt.STOPPED||this.state===Dt.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=Dt.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){var r,n,i,s;const u=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.playlistType===He.MAIN?"level":"track"} ${e.level} (frag:[${((r=e.startPTS)!=null?r:NaN).toFixed(3)}-${((n=e.endPTS)!=null?n:NaN).toFixed(3)}] > buffer:${u?Wi.toString(an.getBuffered(u)):"(detached)"})`),e.sn!=="initSegment"){var f;if(e.type!==He.SUBTITLE){const _=e.elementaryStreams;if(!Object.keys(_).some(A=>!!_[A])){this.state=Dt.IDLE;return}}const m=(f=this.levels)==null?void 0:f[e.level];m!=null&&m.fragmentError&&(this.log(`Resetting level fragment error count of ${m.fragmentError} on frag buffered`),m.fragmentError=0)}this.state=Dt.IDLE,u&&(!this.loadedmetadata&&e.type==He.MAIN&&u.buffered.length&&((i=this.fragCurrent)==null?void 0:i.sn)===((s=this.fragPrevious)==null?void 0:s.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick())}seekToStartPos(){}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const{frag:r,part:n,partsLoaded:i}=e,s=!i||i.length===0||i.some(f=>!f),u=new as(r.level,r.sn,r.stats.chunkCount+1,0,n?n.index:-1,!s);t.flush(u)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,r=null,n){var i;const s=t==null?void 0:t.details;if(!this.levels||!s)throw new Error(`frag load aborted, missing level${s?"":" detail"}s`);let u=null;if(e.encrypted&&!((i=e.decryptdata)!=null&&i.key)?(this.log(`Loading key for ${e.sn} of [${s.startSN}-${s.endSN}], ${this.logPrefix==="[stream-controller]"?"level":"track"} ${e.level}`),this.state=Dt.KEY_LOADING,this.fragCurrent=e,u=this.keyLoader.load(e).then(_=>{if(!this.fragContextChanged(_.frag))return this.hls.trigger(h.KEY_LOADED,_),this.state===Dt.KEY_LOADING&&(this.state=Dt.IDLE),_}),this.hls.trigger(h.KEY_LOADING,{frag:e}),this.fragCurrent===null&&(u=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))):!e.encrypted&&s.encryptedFragments.length&&this.keyLoader.loadClear(e,s.encryptedFragments),r=Math.max(e.start,r||0),this.config.lowLatencyMode&&e.sn!=="initSegment"){const _=s.partList;if(_&&n){r>e.end&&s.fragmentHint&&(e=s.fragmentHint);const A=this.getNextPart(_,e,r);if(A>-1){const B=_[A];this.log(`Loading part sn: ${e.sn} p: ${B.index} cc: ${e.cc} of playlist [${s.startSN}-${s.endSN}] parts [0-${A}-${_.length-1}] ${this.logPrefix==="[stream-controller]"?"level":"track"}: ${e.level}, target: ${parseFloat(r.toFixed(3))}`),this.nextLoadPosition=B.start+B.duration,this.state=Dt.FRAG_LOADING;let Q;return u?Q=u.then(V=>!V||this.fragContextChanged(V.frag)?null:this.doFragPartsLoad(e,B,t,n)).catch(V=>this.handleFragLoadError(V)):Q=this.doFragPartsLoad(e,B,t,n).catch(V=>this.handleFragLoadError(V)),this.hls.trigger(h.FRAG_LOADING,{frag:e,part:B,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):Q}else if(!e.url||this.loadedEndOfParts(_,r))return Promise.resolve(null)}}this.log(`Loading fragment ${e.sn} cc: ${e.cc} ${s?"of ["+s.startSN+"-"+s.endSN+"] ":""}${this.logPrefix==="[stream-controller]"?"level":"track"}: ${e.level}, target: ${parseFloat(r.toFixed(3))}`),z(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=Dt.FRAG_LOADING;const f=this.config.progressive;let m;return f&&u?m=u.then(_=>!_||this.fragContextChanged(_==null?void 0:_.frag)?null:this.fragmentLoader.load(e,n)).catch(_=>this.handleFragLoadError(_)):m=Promise.all([this.fragmentLoader.load(e,f?n:void 0),u]).then(([_])=>(!f&&_&&n&&n(_),_)).catch(_=>this.handleFragLoadError(_)),this.hls.trigger(h.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 u;const f=[],m=(u=r.details)==null?void 0:u.partList,_=A=>{this.fragmentLoader.loadPart(e,A,n).then(B=>{f[A.index]=B;const Q=B.part;this.hls.trigger(h.FRAG_LOADED,B);const V=ci(r,e.sn,A.index+1)||Ln(m,e.sn,A.index+1);if(V)_(V);else return i({frag:e,part:Q,partsLoaded:f})}).catch(s)};_(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;e.data&&t.details===b.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(h.ERROR,t)}else this.hls.trigger(h.ERROR,{type:E.OTHER_ERROR,details:b.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==Dt.PARSING){!this.fragCurrent&&this.state!==Dt.STOPPED&&this.state!==Dt.ERROR&&(this.state=Dt.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),this.updateLevelTiming(r,n,i,e.partial)}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 level ${n}. The current chunk will not be buffered.`),null;const u=t[n],f=s>-1?ci(u,i,s):null,m=f?f.fragment:pi(u,i,r);return m?(r&&r!==m&&(m.stats=r.stats),{frag:m,part:f,level:u}):null}bufferFragmentData(e,t,r,n,i){var s;if(!e||this.state!==Dt.PARSING)return;const{data1:u,data2:f}=e;let m=u;if(u&&f&&(m=Ft(u,f)),!((s=m)!=null&&s.length))return;const _={type:e.type,frag:t,part:r,chunkMeta:n,parent:t.type,data:m};if(this.hls.trigger(h.BUFFER_APPENDING,_),e.dropped&&e.independent&&!r){if(i)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!an.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const r=t.currentTime,n=an.bufferInfo(t,r,0),i=e.duration,s=Math.min(this.config.maxFragLookUpTolerance*2,i*.25),u=Math.max(Math.min(e.start-s,n.end-s),r+s);e.start-u>s&&this.flushMainBuffer(u,e.start)}getFwdBufferInfo(e,t){const r=this.getLoadPosition();return z(r)?this.getFwdBufferInfoAtPos(e,r,t):null}getFwdBufferInfoAtPos(e,t,r){const{config:{maxBufferHole:n}}=this,i=an.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)return an.bufferInfo(e,t,Math.max(i.nextStart,n))}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=He.MAIN){const r=this.fragmentTracker.getAppendedFrag(e,He.MAIN);return r&&"fragment"in r?r.fragment:r}getNextFragment(e,t){const r=t.fragments,n=r.length;if(!n)return null;const{config:i}=this,s=r[0].start;let u;if(t.live){const f=i.initialLiveManifestSize;if(n<f)return this.warn(`Not enough fragments to start playback (have: ${n}, need: ${f})`),null;(!t.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||e<s)&&(u=this.getInitialLiveFragment(t,r),this.startPosition=this.nextLoadPosition=u?this.hls.liveSyncPosition||u.start:e)}else e<=s&&(u=r[0]);if(!u){const f=i.lowLatencyMode?t.partEnd:t.fragmentEnd;u=this.getFragmentAtPosition(e,f,t)}return this.mapToInitFragWhenRequired(u)}isLoopLoading(e,t){const r=this.fragmentTracker.getState(e);return(r===Un.OK||r===Un.PARTIAL&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,r,n,i){const s=e.gap,u=this.getNextFragment(this.nextLoadPosition,t);if(u===null)return u;if(e=u,s&&e&&!e.gap&&r.nextStart){const f=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,r.nextStart,n);if(f!==null&&r.len+f.len>=i)return this.log(`buffer full after gaps in "${n}" playlist starting at sn: ${e.sn}`),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 u=0,f=e.length;u<f;u++){const m=e[u];if(s=s&&!m.independent,n>-1&&r<m.start)break;const _=m.loaded;_?n=-1:(i||m.independent||s)&&m.fragment===t&&(n=u),i=_}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=Hi(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=rr(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:u}=r;const{fragmentHint:f}=r,{maxFragLookUpTolerance:m}=n,_=r.partList,A=!!(n.lowLatencyMode&&_!=null&&_.length&&f);A&&f&&!this.bitrateTest&&(s=s.concat(f),u=f.sn);let B;if(e<t){const Q=e>t-m?0:m;B=Si(i,s,e,Q)}else B=s[s.length-1];if(B){const Q=B.sn-r.startSN,V=this.fragmentTracker.getState(B);if((V===Un.OK||V===Un.PARTIAL&&B.gap)&&(i=B),i&&B.sn===i.sn&&(!A||_[0].fragment.sn>B.sn)&&i&&B.level===i.level){const me=s[Q+1];B.sn<u&&this.fragmentTracker.getState(me)!==Un.OK?B=me:B=null}}return B}synchronizeToLiveEdge(e){const{config:t,media:r}=this;if(!r)return;const n=this.hls.liveSyncPosition,i=r.currentTime,s=e.fragments[0].start,u=e.edge,f=i>=s-t.maxFragLookUpTolerance&&i<=u;if(n!==null&&r.duration>n&&(i<n||!f)){const m=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;(!f&&r.readyState<4||i<u-m)&&(this.loadedmetadata||(this.nextLoadPosition=n),r.readyState&&(this.warn(`Playback: ${i.toFixed(3)} is located too far from the end of live sliding playlist: ${u}, reset currentTime to : ${n.toFixed(3)}`),r.currentTime=n))}}alignPlaylists(e,t,r){const n=e.fragments.length;if(!n)return this.warn("No fragments in live playlist"),0;const i=e.fragments[0].start,s=!t,u=e.alignedSliding&&z(i);if(s||!u&&!i){const{fragPrevious:f}=this;bs(f,r,e);const m=e.fragments[0].start;return this.log(`Live playlist sliding: ${m.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} prev-sn: ${f?f.sn:"na"} fragments: ${n}`),m}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;if(r<t&&(r=-1),r===-1||this.lastCurrentTime===-1){const n=this.startTimeOffset!==null,i=n?this.startTimeOffset:e.startTimeOffset;i!==null&&z(i)?(r=t+i,i<0&&(r+=e.totalduration),r=Math.min(Math.max(t,r),t+e.totalduration),this.log(`Start time offset ${i} found in ${n?"multivariant":"media"} playlist, adjust startPosition to ${r}`),this.startPosition=r):e.live?r=this.hls.liveSyncPosition||t:this.startPosition=r=0,this.lastCurrentTime=r}this.nextLoadPosition=r}getLoadPosition(){const{media:e}=this;let t=0;return this.loadedmetadata&&e?t=e.currentTime:this.nextLoadPosition&&(t=this.nextLoadPosition),t}handleFragLoadAborted(e,t){this.transmuxer&&e.sn!=="initSegment"&&e.stats.aborted&&(this.warn(`Fragment ${e.sn}${t?" part "+t.index:""} of level ${e.level} was aborted`),this.resetFragmentLoading(e))}resetFragmentLoading(e){(!this.fragCurrent||!this.fragContextChanged(e)&&this.state!==Dt.FRAG_LOADING_WAITING_RETRY)&&(this.state=Dt.IDLE)}onFragmentOrKeyLoadError(e,t){if(t.chunkMeta&&!t.frag){const _=this.getCurrentContext(t.chunkMeta);_&&(t.frag=_.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===b.FRAG_GAP;i&&this.fragmentTracker.fragBuffered(r,!0);const s=t.errorAction,{action:u,retryCount:f=0,retryConfig:m}=s||{};if(s&&u===Yt.RetryRequest&&m){this.resetStartWhenNotLoaded(this.levelLastLoaded);const _=Wn(m,f);this.warn(`Fragment ${r.sn} of ${e} ${r.level} errored with ${t.details}, retrying loading ${f+1}/${m.maxNumRetry} in ${_}ms`),s.resolved=!0,this.retryDate=self.performance.now()+_,this.state=Dt.FRAG_LOADING_WAITING_RETRY}else if(m&&s)if(this.resetFragmentErrors(e),f<m.maxNumRetry)!i&&u!==Yt.RemoveAlternatePermanently&&(s.resolved=!0);else{w.warn(`${t.details} reached or exceeded max retry (${f})`);return}else(s==null?void 0:s.action)===Yt.SendAlternateToPenaltyBox?this.state=Dt.WAITING_LEVEL:this.state=Dt.ERROR;this.tickImmediate()}reduceLengthAndFlushBuffer(e){if(this.state===Dt.PARSING||this.state===Dt.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===He.AUDIO&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==Dt.STOPPED&&(this.state=Dt.IDLE)}afterBufferFlushed(e,t,r){if(!e)return;const n=an.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,n,r),this.state===Dt.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=Dt.IDLE}resetStartWhenNotLoaded(e){if(!this.loadedmetadata){this.startFragRequested=!1;const t=e?e.details:null;t!=null&&t.live?(this.startPosition=-1,this.setStartPosition(t,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(e){this.warn(`The loading context changed while buffering fragment ${e.sn} of level ${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){var i;const s=r.details;if(!s){this.warn("level.details undefined");return}if(!Object.keys(e.elementaryStreams).reduce((f,m)=>{const _=e.elementaryStreams[m];if(_){const A=_.endPTS-_.startPTS;if(A<=0)return this.warn(`Could not parse fragment ${e.sn} ${m} duration reliably (${A})`),f||!1;const B=n?0:ui(s,e,_.startPTS,_.endPTS,_.startDTS,_.endDTS);return this.hls.trigger(h.LEVEL_PTS_UPDATED,{details:s,level:r,drift:B,type:m,frag:e,start:_.startPTS,end:_.endPTS}),!0}return f},!1)&&((i=this.transmuxer)==null?void 0:i.error)===null){const f=new Error(`Found no media in fragment ${e.sn} of level ${e.level} resetting transmuxer to fallback to playlist timing`);if(r.fragmentError===0&&(r.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)),this.warn(f.message),this.hls.trigger(h.ERROR,{type:E.MEDIA_ERROR,details:b.FRAG_PARSING_ERROR,fatal:!1,error:f,frag:e,reason:`Found no media in msn ${e.sn} of level "${r.url}"`}),!this.hls)return;this.resetTransmuxer()}this.state=Dt.PARSED,this.hls.trigger(h.FRAG_PARSED,{frag:e,part:t})}resetTransmuxer(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)}recoverWorkerError(e){e.event==="demuxerWorker"&&(this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),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}}class ta{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=ya(e,t);else return new Uint8Array(0);return this.reset(),r}reset(){this.chunks.length=0,this.dataLength=0}}function ya(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}function ba(){return typeof __HLS_WORKER_BUNDLE__=="function"}function ra(){const a=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),e=self.URL.createObjectURL(a);return{worker:new self.Worker(e),objectURL:e}}function na(a){const e=new self.URL(a,self.location.href).href;return{worker:new self.Worker(e),scriptURL:e}}function Ri(a="",e=9e4){return{type:a,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class Ms{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=Ft(this.cachedData,e),this.cachedData=null);let r=Le(e,0),n=r?r.length:0,i;const s=this._audioTrack,u=this._id3Track,f=r?se(r):void 0,m=e.length;for((this.basePTS===null||this.frameIndex===0&&z(f))&&(this.basePTS=xa(f,t,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),r&&r.length>0&&u.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:Cn.audioId3,duration:Number.POSITIVE_INFINITY});n<m;){if(this.canParse(e,n)){const _=this.appendFrame(s,e,n);_?(this.frameIndex++,this.lastPTS=_.sample.pts,n+=_.length,i=n):n=m}else R(e,n)?(r=Le(e,n),u.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:Cn.audioId3,duration:Number.POSITIVE_INFINITY}),n+=r.length,i=n):n++;if(n===m&&i!==m){const _=ue(e,i);this.cachedData?this.cachedData=Ft(this.cachedData,_):this.cachedData=_}}return{audioTrack:s,videoTrack:Ri(),id3Track:u,textTrack:Ri()}}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:Ri(),id3Track:this._id3Track,textTrack:Ri()}}destroy(){}}const xa=(a,e,t)=>{if(z(a))return a*90;const r=t?t.baseTime*9e4/t.timescale:0;return e*9e4+r};function Ha(a,e,t,r){let n,i,s,u;const f=navigator.userAgent.toLowerCase(),m=r,_=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];n=((e[t+2]&192)>>>6)+1;const A=(e[t+2]&60)>>>2;if(A>_.length-1){const B=new Error(`invalid ADTS sampling index:${A}`);a.emit(h.ERROR,h.ERROR,{type:E.MEDIA_ERROR,details:b.FRAG_PARSING_ERROR,fatal:!0,error:B,reason:B.message});return}return s=(e[t+2]&1)<<2,s|=(e[t+3]&192)>>>6,w.log(`manifest codec:${r}, ADTS type:${n}, samplingIndex:${A}`),/firefox/i.test(f)?A>=6?(n=5,u=new Array(4),i=A-3):(n=2,u=new Array(2),i=A):f.indexOf("android")!==-1?(n=2,u=new Array(2),i=A):(n=5,u=new Array(4),r&&(r.indexOf("mp4a.40.29")!==-1||r.indexOf("mp4a.40.5")!==-1)||!r&&A>=6?i=A-3:((r&&r.indexOf("mp4a.40.2")!==-1&&(A>=6&&s===1||/vivaldi/i.test(f))||!r&&s===1)&&(n=2,u=new Array(2)),i=A)),u[0]=n<<3,u[0]|=(A&14)>>1,u[1]|=(A&1)<<7,u[1]|=s<<3,n===5&&(u[1]|=(i&14)>>1,u[2]=(i&1)<<7,u[2]|=8,u[3]=0),{config:u,samplerate:_[A],channelCount:s,codec:"mp4a.40."+n,manifestCodec:m}}function Bs(a,e){return a[e]===255&&(a[e+1]&246)===240}function ia(a,e){return a[e+1]&1?7:9}function Ns(a,e){return(a[e+3]&3)<<11|a[e+4]<<3|(a[e+5]&224)>>>5}function wa(a,e){return e+5<a.length}function zi(a,e){return e+1<a.length&&Bs(a,e)}function Es(a,e){return wa(a,e)&&Bs(a,e)&&Ns(a,e)<=a.length-e}function ja(a,e){if(zi(a,e)){const t=ia(a,e);if(e+t>=a.length)return!1;const r=Ns(a,e);if(r<=t)return!1;const n=e+r;return n===a.length||zi(a,n)}return!1}function Ea(a,e,t,r,n){if(!a.samplerate){const i=Ha(e,t,r,n);if(!i)return;a.config=i.config,a.samplerate=i.samplerate,a.channelCount=i.channelCount,a.codec=i.codec,a.manifestCodec=i.manifestCodec,w.log(`parsed codec:${a.codec}, rate:${i.samplerate}, channels:${i.channelCount}`)}}function sa(a){return 1024*9e4/a}function Ka(a,e){const t=ia(a,e);if(e+t<=a.length){const r=Ns(a,e)-t;if(r>0)return{headerLength:t,frameLength:r}}}function aa(a,e,t,r,n){const i=sa(a.samplerate),s=r+n*i,u=Ka(e,t);let f;if(u){const{frameLength:A,headerLength:B}=u,Q=B+A,V=Math.max(0,t+Q-e.length);V?(f=new Uint8Array(Q-B),f.set(e.subarray(t+B,e.length),0)):f=e.subarray(t+B,t+Q);const le={unit:f,pts:s};return V||a.samples.push(le),{sample:le,length:Q,missing:V}}const m=e.length-t;return f=new Uint8Array(m),f.set(e.subarray(t,e.length),0),{sample:{unit:f,pts:s},length:m,missing:-1}}let Ss=null;const Wa=[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],Sa=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Va=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Aa=[0,1,1,4];function Fs(a,e,t,r,n){if(t+24>e.length)return;const i=zs(e,t);if(i&&t+i.frameLength<=e.length){const s=i.samplesPerFrame*9e4/i.sampleRate,u=r+n*s,f={unit:e.subarray(t,t+i.frameLength),pts:u,dts:u};return a.config=[],a.channelCount=i.channelCount,a.samplerate=i.sampleRate,a.samples.push(f),{sample:f,length:i.frameLength,missing:0}}}function zs(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,u=a[e+3]>>6,f=t===3?3-r:r===3?3:4,m=Wa[f*14+n-1]*1e3,A=Sa[(t===3?0:t===2?1:2)*3+i],B=u===3?1:2,Q=Va[t][r],V=Aa[r],le=Q*8*V,me=Math.floor(Q*m/A+s)*V;if(Ss===null){const nt=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Ss=nt?parseInt(nt[1]):0}return!!Ss&&Ss<=87&&r===2&&m>=224e3&&u===0&&(a[e+3]=a[e+3]|128),{sampleRate:A,channelCount:B,frameLength:me,samplesPerFrame:le}}}function Us(a,e){return a[e]===255&&(a[e+1]&224)===224&&(a[e+1]&6)!==0}function oa(a,e){return e+1<a.length&&Us(a,e)}function Ta(a,e){return Us(a,e)&&4<=a.length-e}function Ca(a,e){if(e+1<a.length&&Us(a,e)){const r=zs(a,e);let n=4;r!=null&&r.frameLength&&(n=r.frameLength);const i=e+n;return i===a.length||oa(a,i)}return!1}class Da extends Ms{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){if(!e)return!1;const t=Le(e,0);let r=(t==null?void 0:t.length)||0;if(Ca(e,r))return!1;for(let n=e.length;r<n;r++)if(ja(e,r))return w.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return Es(e,t)}appendFrame(e,t,r){Ea(e,this.observer,t,r,e.manifestCodec);const n=aa(e,t,r,this.basePTS,this.frameIndex);if(n&&n.missing===0)return n}}const Ra=/\/emsg[-/]ID3/i;class Za{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=Ri("video",1),s=this.audioTrack=Ri("audio",1),u=this.txtTrack=Ri("text",1);if(this.id3Track=Ri("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const f=Ke(e);if(f.video){const{id:m,timescale:_,codec:A}=f.video;i.id=m,i.timescale=u.timescale=_,i.codec=A}if(f.audio){const{id:m,timescale:_,codec:A}=f.audio;s.id=m,s.timescale=_,s.codec=A}u.id=bt.text,i.sampleDuration=0,i.duration=s.duration=n}resetContiguity(){this.remainderData=null}static probe(e){return er(e)}demux(e,t){this.timeOffset=t;let r=e;const n=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(r=Ft(this.remainderData,e));const u=gr(r);this.remainderData=u.remainder,n.samples=u.valid||new Uint8Array}else n.samples=r;const s=this.extractID3Track(n,t);return i.samples=zt(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=zt(e,t),{videoTrack:t,audioTrack:Ri(),id3Track:n,textTrack:Ri()}}extractID3Track(e,t){const r=this.id3Track;if(e.samples.length){const n=ke(e.samples,["emsg"]);n&&n.forEach(i=>{const s=Ht(i);if(Ra.test(s.schemeIdUri)){const u=z(s.presentationTime)?s.presentationTime/s.timeScale:t+s.presentationTimeDelta/s.timeScale;let f=s.eventDuration===4294967295?Number.POSITIVE_INFINITY:s.eventDuration/s.timeScale;f<=.001&&(f=Number.POSITIVE_INFINITY);const m=s.payload;r.samples.push({data:m,len:m.byteLength,dts:u,pts:u,type:Cn.emsg,duration:f})}})}return r}demuxSampleAes(e,t,r){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){}}const hs=(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 u=Math.min(r,8),f=8-u;i[0]=4278190080>>>24+f<<f,n[0]=(s[0]&i[0])>>f,t=t?t<<u|n[0]:n[0],e+=1,r-=u}return t};class la extends Ms{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=ua(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=Le(e,0);if(!t)return!1;const r=t.length;return e[r]===11&&e[r+1]===119&&se(t)!==void 0&&hs(e,r)<16}}function ua(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 u=[48e3,44100,32e3][i],f=e[t+4]&63,_=[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][f*3+i]*2;if(t+_>e.length)return-1;const A=e[t+6]>>5;let B=0;A===2?B+=2:(A&1&&A!==1&&(B+=2),A&4&&(B+=2));const Q=(e[t+6]<<8|e[t+7])>>12-B&1,le=[2,1,2,3,3,4,4,5][A]+Q,me=e[t+5]>>3,ze=e[t+5]&7,it=new Uint8Array([i<<6|me<<1|ze>>2,(ze&3)<<6|A<<3|Q<<2|f>>4,f<<4&224]),nt=1536/u*9e4,_t=r+n*nt,ot=e.subarray(t,t+_);return a.config=it,a.channelCount=le,a.samplerate=u,a.samples.push({unit:ot,pts:_t}),_}class Ya{constructor(){this.VideoSample=null}createVideoSample(e,t,r,n){return{key:e,frame:!1,pts:t,dts:r,units:[],debug:n,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)}e.debug.length&&w.log(e.pts+"/"+e.dts+":"+e.debug)}}class Ia{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&&w.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)}skipScalingList(e){let t=8,r=8,n;for(let i=0;i<e;i++)r!==0&&(n=this.readEG(),r=(t+n+256)%256),t=r===0?t:r}readSPS(){let e=0,t=0,r=0,n=0,i,s,u;const f=this.readUByte.bind(this),m=this.readBits.bind(this),_=this.readUEG.bind(this),A=this.readBoolean.bind(this),B=this.skipBits.bind(this),Q=this.skipEG.bind(this),V=this.skipUEG.bind(this),le=this.skipScalingList.bind(this);f();const me=f();if(m(5),B(3),f(),V(),me===100||me===110||me===122||me===244||me===44||me===83||me===86||me===118||me===128){const Ot=_();if(Ot===3&&B(1),V(),V(),B(1),A())for(s=Ot!==3?8:12,u=0;u<s;u++)A()&&(u<6?le(16):le(64))}V();const ze=_();if(ze===0)_();else if(ze===1)for(B(1),Q(),Q(),i=_(),u=0;u<i;u++)Q();V(),B(1);const it=_(),nt=_(),_t=m(1);_t===0&&B(1),B(1),A()&&(e=_(),t=_(),r=_(),n=_());let ot=[1,1];if(A()&&A())switch(f()){case 1:ot=[1,1];break;case 2:ot=[12,11];break;case 3:ot=[10,11];break;case 4:ot=[16,11];break;case 5:ot=[40,33];break;case 6:ot=[24,11];break;case 7:ot=[20,11];break;case 8:ot=[32,11];break;case 9:ot=[80,33];break;case 10:ot=[18,11];break;case 11:ot=[15,11];break;case 12:ot=[64,33];break;case 13:ot=[160,99];break;case 14:ot=[4,3];break;case 15:ot=[3,2];break;case 16:ot=[2,1];break;case 255:{ot=[f()<<8|f(),f()<<8|f()];break}}return{width:Math.ceil((it+1)*16-e*2-t*2),height:(2-_t)*(nt+1)*16-(_t?2:4)*(r+n),pixelRatio:ot}}readSliceType(){return this.readUByte(),this.readUEG(),this.readUEG()}}class Xa extends Ya{parseAVCPES(e,t,r,n,i){const s=this.parseAVCNALu(e,r.data);let u=this.VideoSample,f,m=!1;r.data=null,u&&s.length&&!e.audFound&&(this.pushAccessUnit(u,e),u=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts,"")),s.forEach(_=>{var A;switch(_.type){case 1:{let le=!1;f=!0;const me=_.data;if(m&&me.length>4){const ze=new Ia(me).readSliceType();(ze===2||ze===4||ze===7||ze===9)&&(le=!0)}if(le){var B;(B=u)!=null&&B.frame&&!u.key&&(this.pushAccessUnit(u,e),u=this.VideoSample=null)}u||(u=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts,"")),u.frame=!0,u.key=le;break}case 5:f=!0,(A=u)!=null&&A.frame&&!u.key&&(this.pushAccessUnit(u,e),u=this.VideoSample=null),u||(u=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts,"")),u.key=!0,u.frame=!0;break;case 6:{f=!0,un(_.data,1,r.pts,t.samples);break}case 7:{var Q,V;f=!0,m=!0;const le=_.data,ze=new Ia(le).readSPS();if(!e.sps||e.width!==ze.width||e.height!==ze.height||((Q=e.pixelRatio)==null?void 0:Q[0])!==ze.pixelRatio[0]||((V=e.pixelRatio)==null?void 0:V[1])!==ze.pixelRatio[1]){e.width=ze.width,e.height=ze.height,e.pixelRatio=ze.pixelRatio,e.sps=[le],e.duration=i;const it=le.subarray(1,4);let nt="avc1.";for(let _t=0;_t<3;_t++){let ot=it[_t].toString(16);ot.length<2&&(ot="0"+ot),nt+=ot}e.codec=nt}break}case 8:f=!0,e.pps=[_.data];break;case 9:f=!0,e.audFound=!0,u&&this.pushAccessUnit(u,e),u=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts,"");break;case 12:f=!0;break;default:f=!1,u&&(u.debug+="unknown NAL "+_.type+" ");break}u&&f&&u.units.push(_)}),n&&u&&(this.pushAccessUnit(u,e),this.VideoSample=null)}parseAVCNALu(e,t){const r=t.byteLength;let n=e.naluState||0;const i=n,s=[];let u=0,f,m,_,A=-1,B=0;for(n===-1&&(A=0,B=t[0]&31,n=0,u=1);u<r;){if(f=t[u++],!n){n=f?0:1;continue}if(n===1){n=f?0:2;continue}if(!f)n=3;else if(f===1){if(m=u-n-1,A>=0){const Q={data:t.subarray(A,m),type:B};s.push(Q)}else{const Q=this.getLastNalUnit(e.samples);Q&&(i&&u<=4-i&&Q.state&&(Q.data=Q.data.subarray(0,Q.data.byteLength-i)),m>0&&(Q.data=Ft(Q.data,t.subarray(0,m)),Q.state=0))}u<r?(_=t[u]&31,A=u,B=_,n=0):n=-1}else n=0}if(A>=0&&n>=0){const Q={data:t.subarray(A,r),type:B,state:n};s.push(Q)}if(s.length===0){const Q=this.getLastNalUnit(e.samples);Q&&(Q.data=Ft(Q.data,t))}return e.naluState=n,s}}class ca{constructor(e,t,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new Qi(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer)}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(u=>{const f=new Uint8Array(u);n.set(f,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=$r(i.data),u=this.getAvcEncryptedData(s);this.decryptBuffer(u.buffer).then(f=>{i.data=this.getAvcDecryptedUnit(s,f),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}}}}const Jn=188;class Vi{constructor(e,t,r){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._duration=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.videoParser=new Xa}static probe(e){const t=Vi.syncOffset(e);return t>0&&w.warn(`MPEG2-TS detected but first sync word found @ offset ${t}`),t!==-1}static syncOffset(e){const t=e.length;let r=Math.min(Jn*5,t-Jn)+1,n=0;for(;n<r;){let i=!1,s=-1,u=0;for(let f=n;f<t;f+=Jn)if(e[f]===71&&(t-f===Jn||e[f+Jn]===71)){if(u++,s===-1&&(s=f,s!==0&&(r=Math.min(s+Jn*99,e.length-Jn)+1)),i||(i=$s(e,f)===0),i&&u>1&&(s===0&&u>2||f+Jn>r))return s}else{if(u)return-1;break}n++}return-1}static createTrack(e,t){return{container:e==="video"||e==="audio"?"video/mp2t":void 0,type:e,id:bt[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=Vi.createTrack("video"),this._audioTrack=Vi.createTrack("audio",n),this._id3Track=Vi.createTrack("id3"),this._txtTrack=Vi.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=r,this._duration=n}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,u=this._audioTrack,f=this._id3Track,m=this._txtTrack;let _=s.pid,A=s.pesData,B=u.pid,Q=f.pid,V=u.pesData,le=f.pesData,me=null,ze=this.pmtParsed,it=this._pmtId,nt=e.length;if(this.remainderData&&(e=Ft(this.remainderData,e),nt=e.length,this.remainderData=null),nt<Jn&&!n)return this.remainderData=e,{audioTrack:u,videoTrack:s,id3Track:f,textTrack:m};const _t=Math.max(0,Vi.syncOffset(e));nt-=(nt-_t)%Jn,nt<e.byteLength&&!n&&(this.remainderData=new Uint8Array(e.buffer,nt,e.buffer.byteLength-nt));let ot=0;for(let vt=_t;vt<nt;vt+=Jn)if(e[vt]===71){const $t=!!(e[vt+1]&64),Jt=$s(e,vt),It=(e[vt+3]&48)>>4;let Gt;if(It>1){if(Gt=vt+5+e[vt+4],Gt===vt+Jn)continue}else Gt=vt+4;switch(Jt){case _:$t&&(A&&(i=es(A))&&this.videoParser.parseAVCPES(s,m,i,!1,this._duration),A={data:[],size:0}),A&&(A.data.push(e.subarray(Gt,vt+Jn)),A.size+=vt+Jn-Gt);break;case B:if($t){if(V&&(i=es(V)))switch(u.segmentCodec){case"aac":this.parseAACPES(u,i);break;case"mp3":this.parseMPEGPES(u,i);break;case"ac3":this.parseAC3PES(u,i);break}V={data:[],size:0}}V&&(V.data.push(e.subarray(Gt,vt+Jn)),V.size+=vt+Jn-Gt);break;case Q:$t&&(le&&(i=es(le))&&this.parseID3PES(f,i),le={data:[],size:0}),le&&(le.data.push(e.subarray(Gt,vt+Jn)),le.size+=vt+Jn-Gt);break;case 0:$t&&(Gt+=e[Gt]+1),it=this._pmtId=qa(e,Gt);break;case it:{$t&&(Gt+=e[Gt]+1);const kr=La(e,Gt,this.typeSupported,r,this.observer);_=kr.videoPid,_>0&&(s.pid=_,s.segmentCodec=kr.segmentVideoCodec),B=kr.audioPid,B>0&&(u.pid=B,u.segmentCodec=kr.segmentAudioCodec),Q=kr.id3Pid,Q>0&&(f.pid=Q),me!==null&&!ze&&(w.warn(`MPEG-TS PMT found at ${vt} after unknown PID '${me}'. Backtracking to sync byte @${_t} to parse all TS packets.`),me=null,vt=_t-188),ze=this.pmtParsed=!0;break}case 17:case 8191:break;default:me=Jt;break}}else ot++;ot>0&&Gs(this.observer,new Error(`Found ${ot} TS packet/s that do not start with 0x47`)),s.pesData=A,u.pesData=V,f.pesData=le;const Ot={audioTrack:u,videoTrack:s,id3Track:f,textTrack:m};return n&&this.extractRemainingSamples(Ot),Ot}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,u=t.pesData,f=n.pesData;let m;if(s&&(m=es(s))?(this.videoParser.parseAVCPES(r,i,m,!0,this._duration),r.pesData=null):r.pesData=s,u&&(m=es(u))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,m);break;case"mp3":this.parseMPEGPES(t,m);break;case"ac3":this.parseAC3PES(t,m);break}t.pesData=null}else u!=null&&u.size&&w.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=u;f&&(m=es(f))?(this.parseID3PES(n,m),n.pesData=null):n.pesData=f}demuxSampleAes(e,t,r){const n=this.demux(e,r,!0,!this.config.progressive),i=this.sampleAes=new ca(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._duration=0}parseAACPES(e,t){let r=0;const n=this.aacOverFlow;let i=t.data;if(n){this.aacOverFlow=null;const A=n.missing,B=n.sample.unit.byteLength;if(A===-1)i=Ft(n.sample.unit,i);else{const Q=B-A;n.sample.unit.set(i.subarray(0,A),Q),e.samples.push(n.sample),r=n.missing}}let s,u;for(s=r,u=i.length;s<u-1&&!zi(i,s);s++);if(s!==r){let A;const B=s<u-1;if(B?A=`AAC PES did not start with ADTS header,offset:${s}`:A="No ADTS header found in AAC PES",Gs(this.observer,new Error(A),B),!B)return}Ea(e,this.observer,i,s,this.audioCodec);let f;if(t.pts!==void 0)f=t.pts;else if(n){const A=sa(e.samplerate);f=n.sample.pts+A}else{w.warn("[tsdemuxer]: AAC PES unknown PTS");return}let m=0,_;for(;s<u;)if(_=aa(e,i,s,f,m),s+=_.length,_.missing){this.aacOverFlow=_;break}else for(m++;s<u-1&&!zi(i,s);s++);}parseMPEGPES(e,t){const r=t.data,n=r.length;let i=0,s=0;const u=t.pts;if(u===void 0){w.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;s<n;)if(oa(r,s)){const f=Fs(e,r,s,u,i);if(f)s+=f.length,i++;else break}else s++}parseAC3PES(e,t){{const r=t.data,n=t.pts;if(n===void 0){w.warn("[tsdemuxer]: AC3 PES unknown PTS");return}const i=r.length;let s=0,u=0,f;for(;u<i&&(f=ua(e,r,u,n,s++))>0;)u+=f}}parseID3PES(e,t){if(t.pts===void 0){w.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const r=o({},t,{type:this._videoTrack?Cn.emsg:Cn.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(r)}}function $s(a,e){return((a[e+1]&31)<<8)+a[e+2]}function qa(a,e){return(a[e+10]&31)<<8|a[e+11]}function La(a,e,t,r,n){const i={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},s=(a[e+1]&15)<<8|a[e+2],u=e+3+s-4,f=(a[e+10]&15)<<8|a[e+11];for(e+=12+f;e<u;){const m=$s(a,e),_=(a[e+3]&15)<<8|a[e+4];switch(a[e]){case 207:if(!r){Ce("ADTS AAC");break}case 15:i.audioPid===-1&&(i.audioPid=m);break;case 21:i.id3Pid===-1&&(i.id3Pid=m);break;case 219:if(!r){Ce("H.264");break}case 27:i.videoPid===-1&&(i.videoPid=m,i.segmentVideoCodec="avc");break;case 3:case 4:!t.mpeg&&!t.mp3?w.log("MPEG audio found, not supported in this browser"):i.audioPid===-1&&(i.audioPid=m,i.segmentAudioCodec="mp3");break;case 193:if(!r){Ce("AC-3");break}case 129:t.ac3?i.audioPid===-1&&(i.audioPid=m,i.segmentAudioCodec="ac3"):w.log("AC-3 audio found, not supported in this browser");break;case 6:if(i.audioPid===-1&&_>0){let A=e+5,B=_;for(;B>2;){switch(a[A]){case 106:t.ac3!==!0?w.log("AC-3 audio found, not supported in this browser for now"):(i.audioPid=m,i.segmentAudioCodec="ac3");break}const V=a[A+1]+2;A+=V,B-=V}}break;case 194:case 135:return Gs(n,new Error("Unsupported EC-3 in M2TS found")),i;case 36:return Gs(n,new Error("Unsupported HEVC in M2TS found")),i}e+=_+5}return i}function Gs(a,e,t){w.warn(`parsing error: ${e.message}`),a.emit(h.ERROR,h.ERROR,{type:E.MEDIA_ERROR,details:b.FRAG_PARSING_ERROR,fatal:!1,levelRetry:t,error:e,reason:e.message})}function Ce(a){w.log(`${a} with AES-128-CBC encryption found in unencrypted stream`)}function es(a){let e=0,t,r,n,i,s;const u=a.data;if(!a||a.size===0)return null;for(;u[0].length<19&&u.length>1;)u[0]=Ft(u[0],u[1]),u.splice(1,1);if(t=u[0],(t[0]<<16)+(t[1]<<8)+t[2]===1){if(r=(t[4]<<8)+t[5],r&&r>a.size-6)return null;const m=t[7];m&192&&(i=(t[9]&14)*536870912+(t[10]&255)*4194304+(t[11]&254)*16384+(t[12]&255)*128+(t[13]&254)/2,m&64?(s=(t[14]&14)*536870912+(t[15]&255)*4194304+(t[16]&254)*16384+(t[17]&255)*128+(t[18]&254)/2,i-s>60*9e4&&(w.warn(`${Math.round((i-s)/9e4)}s delta between PTS and DTS, align them`),i=s)):s=i),n=t[8];let _=n+9;if(a.size<=_)return null;a.size-=_;const A=new Uint8Array(a.size);for(let B=0,Q=u.length;B<Q;B++){t=u[B];let V=t.byteLength;if(_)if(_>V){_-=V;continue}else t=t.subarray(_),V-=_,_=0;A.set(t,e),e+=V}return r&&(r-=n+3),{data:A,pts:i,dts:s,len:r}}return null}class ha extends Ms{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=Le(e,0);let r=(t==null?void 0:t.length)||0;if(t&&e[r]===11&&e[r+1]===119&&se(t)!==void 0&&hs(e,r)<=16)return!1;for(let n=e.length;r<n;r++)if(Ca(e,r))return w.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return Ta(e,t)}appendFrame(e,t,r){if(this.basePTS!==null)return Fs(e,t,r,this.basePTS,this.frameIndex)}}class Hs{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 Ui=Math.pow(2,32)-1;class lt{static init(){lt.types={avc1:[],avcC:[],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 lt.types)lt.types.hasOwnProperty(e)&&(lt.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]);lt.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]);lt.STTS=lt.STSC=lt.STCO=i,lt.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),lt.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),lt.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),lt.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const s=new Uint8Array([105,115,111,109]),u=new Uint8Array([97,118,99,49]),f=new Uint8Array([0,0,0,1]);lt.FTYP=lt.box(lt.types.ftyp,s,f,s,u),lt.DINF=lt.box(lt.types.dinf,lt.box(lt.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 lt.box(lt.types.hdlr,lt.HDLR_TYPES[e])}static mdat(e){return lt.box(lt.types.mdat,e)}static mdhd(e,t){t*=e;const r=Math.floor(t/(Ui+1)),n=Math.floor(t%(Ui+1));return lt.box(lt.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 lt.box(lt.types.mdia,lt.mdhd(e.timescale,e.duration),lt.hdlr(e.type),lt.minf(e))}static mfhd(e){return lt.box(lt.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"?lt.box(lt.types.minf,lt.box(lt.types.smhd,lt.SMHD),lt.DINF,lt.stbl(e)):lt.box(lt.types.minf,lt.box(lt.types.vmhd,lt.VMHD),lt.DINF,lt.stbl(e))}static moof(e,t,r){return lt.box(lt.types.moof,lt.mfhd(e),lt.traf(r,t))}static moov(e){let t=e.length;const r=[];for(;t--;)r[t]=lt.trak(e[t]);return lt.box.apply(null,[lt.types.moov,lt.mvhd(e[0].timescale,e[0].duration)].concat(r).concat(lt.mvex(e)))}static mvex(e){let t=e.length;const r=[];for(;t--;)r[t]=lt.trex(e[t]);return lt.box.apply(null,[lt.types.mvex,...r])}static mvhd(e,t){t*=e;const r=Math.floor(t/(Ui+1)),n=Math.floor(t%(Ui+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 lt.box(lt.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 lt.box(lt.types.sdtp,r)}static stbl(e){return lt.box(lt.types.stbl,lt.stsd(e),lt.box(lt.types.stts,lt.STTS),lt.box(lt.types.stsc,lt.STSC),lt.box(lt.types.stsz,lt.STSZ),lt.box(lt.types.stco,lt.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 u=lt.box(lt.types.avcC,new Uint8Array([1,t[3],t[4],t[5],255,224|e.sps.length].concat(t).concat([e.pps.length]).concat(r))),f=e.width,m=e.height,_=e.pixelRatio[0],A=e.pixelRatio[1];return lt.box(lt.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,f>>8&255,f&255,m>>8&255,m&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),u,lt.box(lt.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),lt.box(lt.types.pasp,new Uint8Array([_>>24,_>>16&255,_>>8&255,_&255,A>>24,A>>16&255,A>>8&255,A&255])))}static esds(e){const t=e.config.length;return new Uint8Array([0,0,0,0,3,23+t,0,1,0,4,15+t,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([t]).concat(e.config).concat([6,1,2]))}static audioStsd(e){const t=e.samplerate;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,t>>8&255,t&255,0,0])}static mp4a(e){return lt.box(lt.types.mp4a,lt.audioStsd(e),lt.box(lt.types.esds,lt.esds(e)))}static mp3(e){return lt.box(lt.types[".mp3"],lt.audioStsd(e))}static ac3(e){return lt.box(lt.types["ac-3"],lt.audioStsd(e),lt.box(lt.types.dac3,e.config))}static stsd(e){return e.type==="audio"?e.segmentCodec==="mp3"&&e.codec==="mp3"?lt.box(lt.types.stsd,lt.STSD,lt.mp3(e)):e.segmentCodec==="ac3"?lt.box(lt.types.stsd,lt.STSD,lt.ac3(e)):lt.box(lt.types.stsd,lt.STSD,lt.mp4a(e)):lt.box(lt.types.stsd,lt.STSD,lt.avc1(e))}static tkhd(e){const t=e.id,r=e.duration*e.timescale,n=e.width,i=e.height,s=Math.floor(r/(Ui+1)),u=Math.floor(r%(Ui+1));return lt.box(lt.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,u>>24,u>>16&255,u>>8&255,u&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=lt.sdtp(e),n=e.id,i=Math.floor(t/(Ui+1)),s=Math.floor(t%(Ui+1));return lt.box(lt.types.traf,lt.box(lt.types.tfhd,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255])),lt.box(lt.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])),lt.trun(e,r.length+16+20+8+16+8+8),r)}static trak(e){return e.duration=e.duration||4294967295,lt.box(lt.types.trak,lt.tkhd(e),lt.mdia(e))}static trex(e){const t=e.id;return lt.box(lt.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 u,f,m,_,A,B;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),u=0;u<n;u++)f=r[u],m=f.duration,_=f.size,A=f.flags,B=f.cts,s.set([m>>>24&255,m>>>16&255,m>>>8&255,m&255,_>>>24&255,_>>>16&255,_>>>8&255,_&255,A.isLeading<<2|A.dependsOn,A.isDependedOn<<6|A.hasRedundancy<<4|A.paddingValue<<1|A.isNonSync,A.degradPrio&61440,A.degradPrio&15,B>>>24&255,B>>>16&255,B>>>8&255,B&255],12+16*u);return lt.box(lt.types.trun,s)}static initSegment(e){lt.types||lt.init();const t=lt.moov(e);return Ft(lt.FTYP,t)}}lt.types=void 0,lt.HDLR_TYPES=void 0,lt.STTS=void 0,lt.STSC=void 0,lt.STCO=void 0,lt.STSZ=void 0,lt.VMHD=void 0,lt.SMHD=void 0,lt.STSD=void 0,lt.FTYP=void 0,lt.DINF=void 0;const da=9e4;function js(a,e,t=1,r=!1){const n=a*e*t;return r?Math.round(n):n}function Ja(a,e,t=1,r=!1){return js(a,e,1/t,r)}function ds(a,e=!1){return js(a,1e3,1/da,e)}function ka(a,e=1){return js(a,da,1/e)}const Ks=10*1e3,Oa=1024,fa=1152,Pa=1536;let fs=null,pa=null;class As{constructor(e,t,r,n=""){if(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.ISGenerated=!1,fs===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);fs=s?parseInt(s[1]):0}if(pa===null){const i=navigator.userAgent.match(/Safari\/(\d+)/i);pa=i?parseInt(i[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){w.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e}resetNextTimestamp(){w.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){w.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 u=s.pts,f=u-i;return f<-4294967296&&(t=!0,u=gi(u,r),f=u-i),f>0?i:u},r);return t&&w.debug("PTS rollover detected"),n}remux(e,t,r,n,i,s,u,f){let m,_,A,B,Q,V,le=i,me=i;const ze=e.pid>-1,it=t.pid>-1,nt=t.samples.length,_t=e.samples.length>0,ot=u&&nt>0||nt>1;if((!ze||_t)&&(!it||ot)||this.ISGenerated||u){if(this.ISGenerated){var vt,$t,Jt,It;const Cr=this.videoTrackConfig;Cr&&(t.width!==Cr.width||t.height!==Cr.height||((vt=t.pixelRatio)==null?void 0:vt[0])!==(($t=Cr.pixelRatio)==null?void 0:$t[0])||((Jt=t.pixelRatio)==null?void 0:Jt[1])!==((It=Cr.pixelRatio)==null?void 0:It[1]))&&this.resetInitSegment()}else A=this.generateIS(e,t,i,s);const Gt=this.isVideoContiguous;let kr=-1,nr;if(ot&&(kr=Qa(t.samples),!Gt&&this.config.forceKeyFrameOnDiscontinuity))if(V=!0,kr>0){w.warn(`[mp4-remuxer]: Dropped ${kr} out of ${nt} video samples due to a missing keyframe`);const Cr=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(kr),t.dropped+=kr,me+=(t.samples[0].pts-Cr)/t.inputTimeScale,nr=me}else kr===-1&&(w.warn(`[mp4-remuxer]: No keyframe found out of ${nt} video samples`),V=!1);if(this.ISGenerated){if(_t&&ot){const Cr=this.getVideoStartPts(t.samples),mr=(gi(e.samples[0].pts,Cr)-Cr)/t.inputTimeScale;le+=Math.max(0,mr),me+=Math.max(0,-mr)}if(_t){if(e.samplerate||(w.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),A=this.generateIS(e,t,i,s)),_=this.remuxAudio(e,le,this.isAudioContiguous,s,it||ot||f===He.AUDIO?me:void 0),ot){const Cr=_?_.endPTS-_.startPTS:0;t.inputTimeScale||(w.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),A=this.generateIS(e,t,i,s)),m=this.remuxVideo(t,me,Gt,Cr)}}else ot&&(m=this.remuxVideo(t,me,Gt,0));m&&(m.firstKeyFrame=kr,m.independent=kr!==-1,m.firstKeyFramePTS=nr)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(Q=Ma(r,i,this._initPTS,this._initDTS)),n.samples.length&&(B=eo(n,i,this._initPTS))),{audio:_,video:m,initSegment:A,independent:V,text:B,id3:Q}}generateIS(e,t,r,n){const i=e.samples,s=t.samples,u=this.typeSupported,f={},m=this._initPTS;let _=!m||n,A="audio/mp4",B,Q,V;if(_&&(B=Q=1/0),e.config&&i.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":u.mpeg?(A="audio/mpeg",e.codec=""):u.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}f.audio={id:"audio",container:A,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&u.mpeg?new Uint8Array(0):lt.initSegment([e]),metadata:{channelCount:e.channelCount}},_&&(V=e.inputTimeScale,!m||V!==m.timescale?B=Q=i[0].pts-Math.round(V*r):_=!1)}if(t.sps&&t.pps&&s.length){if(t.timescale=t.inputTimeScale,f.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:lt.initSegment([t]),metadata:{width:t.width,height:t.height}},_)if(V=t.inputTimeScale,!m||V!==m.timescale){const le=this.getVideoStartPts(s),me=Math.round(V*r);Q=Math.min(Q,gi(s[0].dts,le)-me),B=Math.min(B,le-me)}else _=!1;this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(f).length)return this.ISGenerated=!0,_?(this._initPTS={baseTime:B,timescale:V},this._initDTS={baseTime:Q,timescale:V}):B=V=void 0,{tracks:f,initPTS:B,timescale:V}}remuxVideo(e,t,r,n){const i=e.inputTimeScale,s=e.samples,u=[],f=s.length,m=this._initPTS;let _=this.nextAvcDts,A=8,B=this.videoSampleDuration,Q,V,le=Number.POSITIVE_INFINITY,me=Number.NEGATIVE_INFINITY,ze=!1;if(!r||_===null){const cr=t*i,ir=s[0].pts-gi(s[0].dts,s[0].pts);fs&&_!==null&&Math.abs(cr-ir-_)<15e3?r=!0:_=cr-ir}const it=m.baseTime*i/m.timescale;for(let cr=0;cr<f;cr++){const ir=s[cr];ir.pts=gi(ir.pts-it,_),ir.dts=gi(ir.dts-it,_),ir.dts<s[cr>0?cr-1:cr].dts&&(ze=!0)}ze&&s.sort(function(cr,ir){const ln=cr.dts-ir.dts,Ur=cr.pts-ir.pts;return ln||Ur}),Q=s[0].dts,V=s[s.length-1].dts;const nt=V-Q,_t=nt?Math.round(nt/(f-1)):B||e.inputTimeScale/30;if(r){const cr=Q-_,ir=cr>_t,ln=cr<-1;if((ir||ln)&&(ir?w.warn(`AVC: ${ds(cr,!0)} ms (${cr}dts) hole between fragments detected at ${t.toFixed(3)}`):w.warn(`AVC: ${ds(-cr,!0)} ms (${cr}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!ln||_>=s[0].pts||fs)){Q=_;const Ur=s[0].pts-cr;if(ir)s[0].dts=Q,s[0].pts=Ur;else for(let _n=0;_n<s.length&&!(s[_n].dts>Ur);_n++)s[_n].dts-=cr,s[_n].pts-=cr;w.log(`Video: Initial PTS/DTS adjusted: ${ds(Ur,!0)}/${ds(Q,!0)}, delta: ${ds(cr,!0)} ms`)}}Q=Math.max(0,Q);let ot=0,Ot=0,vt=Q;for(let cr=0;cr<f;cr++){const ir=s[cr],ln=ir.units,Ur=ln.length;let _n=0;for(let Qn=0;Qn<Ur;Qn++)_n+=ln[Qn].data.length;Ot+=_n,ot+=Ur,ir.length=_n,ir.dts<vt?(ir.dts=vt,vt+=_t/4|0||1):vt=ir.dts,le=Math.min(ir.pts,le),me=Math.max(ir.pts,me)}V=s[f-1].dts;const $t=Ot+4*ot+8;let Jt;try{Jt=new Uint8Array($t)}catch(cr){this.observer.emit(h.ERROR,h.ERROR,{type:E.MUX_ERROR,details:b.REMUX_ALLOC_ERROR,fatal:!1,error:cr,bytes:$t,reason:`fail allocating video mdat ${$t}`});return}const It=new DataView(Jt.buffer);It.setUint32(0,$t),Jt.set(lt.types.mdat,4);let Gt=!1,kr=Number.POSITIVE_INFINITY,nr=Number.POSITIVE_INFINITY,Cr=Number.NEGATIVE_INFINITY,Sr=Number.NEGATIVE_INFINITY;for(let cr=0;cr<f;cr++){const ir=s[cr],ln=ir.units;let Ur=0;for(let oi=0,hi=ln.length;oi<hi;oi++){const Mi=ln[oi],_a=Mi.data,bo=Mi.data.byteLength;It.setUint32(A,bo),A+=4,Jt.set(_a,A),A+=bo,Ur+=4+bo}let _n;if(cr<f-1)B=s[cr+1].dts-ir.dts,_n=s[cr+1].pts-ir.pts;else{const oi=this.config,hi=cr>0?ir.dts-s[cr-1].dts:_t;if(_n=cr>0?ir.pts-s[cr-1].pts:_t,oi.stretchShortVideoTrack&&this.nextAudioPts!==null){const Mi=Math.floor(oi.maxBufferHole*i),_a=(n?le+n*i:this.nextAudioPts)-ir.pts;_a>Mi?(B=_a-hi,B<0?B=hi:Gt=!0,w.log(`[mp4-remuxer]: It is approximately ${_a/90} ms to the next segment; using duration ${B/90} ms for the last video frame.`)):B=hi}else B=hi}const Qn=Math.round(ir.pts-ir.dts);kr=Math.min(kr,B),Cr=Math.max(Cr,B),nr=Math.min(nr,_n),Sr=Math.max(Sr,_n),u.push(new O(ir.key,B,Ur,Qn))}if(u.length){if(fs){if(fs<70){const cr=u[0].flags;cr.dependsOn=2,cr.isNonSync=0}}else if(pa&&Sr-nr<Cr-kr&&_t/Cr<.025&&u[0].cts===0){w.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let cr=Q;for(let ir=0,ln=u.length;ir<ln;ir++){const Ur=cr+u[ir].duration,_n=cr+u[ir].cts;if(ir<ln-1){const Qn=Ur+u[ir+1].cts;u[ir].duration=Qn-_n}else u[ir].duration=ir?u[ir-1].duration:_t;u[ir].cts=0,cr=Ur}}}B=Gt||!B?_t:B,this.nextAvcDts=_=V+B,this.videoSampleDuration=B,this.isVideoContiguous=!0;const xn={data1:lt.moof(e.sequenceNumber++,Q,o({},e,{samples:u})),data2:Jt,startPTS:le/i,endPTS:(me+B)/i,startDTS:Q/i,endDTS:_/i,type:"video",hasAudio:!1,hasVideo:!0,nb:u.length,dropped:e.dropped};return e.samples=[],e.dropped=0,xn}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return fa;case"ac3":return Pa;default:return Oa}}remuxAudio(e,t,r,n,i){const s=e.inputTimeScale,u=e.samplerate?e.samplerate:s,f=s/u,m=this.getSamplesPerFrame(e),_=m*f,A=this._initPTS,B=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,Q=[],V=i!==void 0;let le=e.samples,me=B?0:8,ze=this.nextAudioPts||-1;const it=t*s,nt=A.baseTime*s/A.timescale;if(this.isAudioContiguous=r=r||le.length&&ze>0&&(n&&Math.abs(it-ze)<9e3||Math.abs(gi(le[0].pts-nt,it)-ze)<20*_),le.forEach(function(mr){mr.pts=gi(mr.pts-nt,it)}),!r||ze<0){if(le=le.filter(mr=>mr.pts>=0),!le.length)return;i===0?ze=0:n&&!V?ze=Math.max(0,it):ze=le[0].pts}if(e.segmentCodec==="aac"){const mr=this.config.maxAudioFramesDrift;for(let rn=0,xn=ze;rn<le.length;rn++){const cr=le[rn],ir=cr.pts,ln=ir-xn,Ur=Math.abs(1e3*ln/s);if(ln<=-mr*_&&V)rn===0&&(w.warn(`Audio frame @ ${(ir/s).toFixed(3)}s overlaps nextAudioPts by ${Math.round(1e3*ln/s)} ms.`),this.nextAudioPts=ze=xn=ir);else if(ln>=mr*_&&Ur<Ks&&V){let _n=Math.round(ln/_);xn=ir-_n*_,xn<0&&(_n--,xn+=_),rn===0&&(this.nextAudioPts=ze=xn),w.warn(`[mp4-remuxer]: Injecting ${_n} audio frame @ ${(xn/s).toFixed(3)}s due to ${Math.round(1e3*ln/s)} ms gap.`);for(let Qn=0;Qn<_n;Qn++){const oi=Math.max(xn,0);let hi=Hs.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);hi||(w.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),hi=cr.unit.subarray()),le.splice(rn,0,{unit:hi,pts:oi}),xn+=_,rn++}}cr.pts=xn,xn+=_}}let _t=null,ot=null,Ot,vt=0,$t=le.length;for(;$t--;)vt+=le[$t].unit.byteLength;for(let mr=0,rn=le.length;mr<rn;mr++){const xn=le[mr],cr=xn.unit;let ir=xn.pts;if(ot!==null){const Ur=Q[mr-1];Ur.duration=Math.round((ir-ot)/f)}else if(r&&e.segmentCodec==="aac"&&(ir=ze),_t=ir,vt>0){vt+=me;try{Ot=new Uint8Array(vt)}catch(Ur){this.observer.emit(h.ERROR,h.ERROR,{type:E.MUX_ERROR,details:b.REMUX_ALLOC_ERROR,fatal:!1,error:Ur,bytes:vt,reason:`fail allocating audio mdat ${vt}`});return}B||(new DataView(Ot.buffer).setUint32(0,vt),Ot.set(lt.types.mdat,4))}else return;Ot.set(cr,me);const ln=cr.byteLength;me+=ln,Q.push(new O(!0,m,ln,0)),ot=ir}const Jt=Q.length;if(!Jt)return;const It=Q[Q.length-1];this.nextAudioPts=ze=ot+f*It.duration;const Gt=B?new Uint8Array(0):lt.moof(e.sequenceNumber++,_t/f,o({},e,{samples:Q}));e.samples=[];const kr=_t/s,nr=ze/s,Sr={data1:Gt,data2:Ot,startPTS:kr,endPTS:nr,startDTS:kr,endDTS:nr,type:"audio",hasAudio:!0,hasVideo:!1,nb:Jt};return this.isAudioContiguous=!0,Sr}remuxEmptyAudio(e,t,r,n){const i=e.inputTimeScale,s=e.samplerate?e.samplerate:i,u=i/s,f=this.nextAudioPts,m=this._initDTS,_=m.baseTime*9e4/m.timescale,A=(f!==null?f:n.startDTS*i)+_,B=n.endDTS*i+_,Q=u*Oa,V=Math.ceil((B-A)/Q),le=Hs.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);if(w.warn("[mp4-remuxer]: remux empty Audio"),!le){w.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}const me=[];for(let ze=0;ze<V;ze++){const it=A+ze*Q;me.push({unit:le,pts:it,dts:it})}return e.samples=me,this.remuxAudio(e,t,r,!1)}}function gi(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 Qa(a){for(let e=0;e<a.length;e++)if(a[e].key)return e;return-1}function Ma(a,e,t,r){const n=a.samples.length;if(!n)return;const i=a.inputTimeScale;for(let u=0;u<n;u++){const f=a.samples[u];f.pts=gi(f.pts-t.baseTime*i/t.timescale,e*i)/i,f.dts=gi(f.dts-r.baseTime*i/r.timescale,e*i)/i}const s=a.samples;return a.samples=[],{samples:s}}function eo(a,e,t){const r=a.samples.length;if(!r)return;const n=a.inputTimeScale;for(let s=0;s<r;s++){const u=a.samples[s];u.pts=gi(u.pts-t.baseTime*n/t.timescale,e*n)/n}a.samples.sort((s,u)=>s.pts-u.pts);const i=a.samples;return a.samples=[],{samples:i}}class O{constructor(e,t,r,n){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=t,this.size=r,this.cts=n,this.flags={isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:e?2:1,isNonSync:e?0:1}}}class l{constructor(){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}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($(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=Ke(e);n.audio&&(t=d(n.audio,W.AUDIO)),n.video&&(r=d(n.video,W.VIDEO));const i={};n.audio&&n.video?i.audiovideo={container:"video/mp4",codec:t+","+r,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,initSegment:e,id:"main"}:w.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=i}remux(e,t,r,n,i,s){var u,f;let{initPTS:m,lastEndTime:_}=this;const A={audio:void 0,video:void 0,text:n,id3:r,initSegment:void 0};z(_)||(_=this.lastEndTime=i||0);const B=t.samples;if(!(B!=null&&B.length))return A;const Q={initPTS:void 0,timescale:1};let V=this.initData;if((u=V)!=null&&u.length||(this.generateInitSegment(B),V=this.initData),!((f=V)!=null&&f.length))return w.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),A;this.emitInitSegment&&(Q.tracks=this.initTracks,this.emitInitSegment=!1);const le=Pt(B,V),me=Se(V,B),ze=me===null?i:me;(c(m,ze,i,le)||Q.timescale!==m.timescale&&s)&&(Q.initPTS=ze-i,m&&m.timescale===1&&w.warn(`Adjusting initPTS by ${Q.initPTS-m.baseTime}`),this.initPTS=m={baseTime:Q.initPTS,timescale:1});const it=e?ze-m.baseTime/m.timescale:_,nt=it+le;qt(V,B,m.baseTime/m.timescale),le>0?this.lastEndTime=nt:(w.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const _t=!!V.audio,ot=!!V.video;let Ot="";_t&&(Ot+="audio"),ot&&(Ot+="video");const vt={data1:B,startPTS:it,startDTS:it,endPTS:nt,endDTS:nt,type:Ot,hasAudio:_t,hasVideo:ot,nb:1,dropped:0};return A.audio=vt.type==="audio"?vt:void 0,A.video=vt.type!=="audio"?vt:void 0,A.initSegment=Q,A.id3=Ma(r,i,m,m),n.samples.length&&(A.text=eo(n,i,m)),A}}function c(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 d(a,e){const t=a==null?void 0:a.codec;if(t&&t.length>4)return t;if(e===W.AUDIO){if(t==="ec-3"||t==="ac-3"||t==="alac")return t;if(t==="fLaC"||t==="Opus")return tr(t,!1);const r="mp4a.40.5";return w.info(`Parsed audio codec "${t}" or audio object type not handled. Using "${r}"`),r}return w.warn(`Unhandled video codec "${t}"`),t==="hvc1"||t==="hev1"?"hvc1.1.6.L120.90":t==="av01"?"av01.0.04M.08":"avc1.42e01e"}let p;try{p=self.performance.now.bind(self.performance)}catch(a){w.debug("Unable to use Performance API on this environment"),p=De==null?void 0:De.Date.now}const C=[{demux:Za,remux:l},{demux:Vi,remux:As},{demux:Da,remux:As},{demux:ha,remux:As}];C.splice(2,0,{demux:la,remux:As});class k{constructor(e,t,r,n,i){this.async=!1,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=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.vendor=n,this.id=i}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,r,n){const i=r.transmuxing;i.executeStart=p();let s=new Uint8Array(e);const{currentTransmuxState:u,transmuxConfig:f}=this;n&&(this.currentTransmuxState=n);const{contiguous:m,discontinuity:_,trackSwitch:A,accurateTimeOffset:B,timeOffset:Q,initSegmentChange:V}=n||u,{audioCodec:le,videoCodec:me,defaultInitPts:ze,duration:it,initSegmentData:nt}=f,_t=fe(s,t);if(_t&&_t.method==="AES-128"){const $t=this.getDecrypter();if($t.isSync()){let Jt=$t.softwareDecrypt(s,_t.key.buffer,_t.iv.buffer);if(r.part>-1&&(Jt=$t.flush()),!Jt)return i.executeEnd=p(),ye(r);s=new Uint8Array(Jt)}else return this.decryptionPromise=$t.webCryptoDecrypt(s,_t.key.buffer,_t.iv.buffer).then(Jt=>{const It=this.push(Jt,null,r);return this.decryptionPromise=null,It}),this.decryptionPromise}const ot=this.needsProbing(_,A);if(ot){const $t=this.configureTransmuxer(s);if($t)return w.warn(`[transmuxer] ${$t.message}`),this.observer.emit(h.ERROR,h.ERROR,{type:E.MEDIA_ERROR,details:b.FRAG_PARSING_ERROR,fatal:!1,error:$t,reason:$t.message}),i.executeEnd=p(),ye(r)}(_||A||V||ot)&&this.resetInitSegment(nt,le,me,it,t),(_||V||ot)&&this.resetInitialTimestamp(ze),m||this.resetContiguity();const Ot=this.transmux(s,_t,Q,B,r),vt=this.currentTransmuxState;return vt.contiguous=!0,vt.discontinuity=!1,vt.trackSwitch=!1,i.executeEnd=p(),Ot}flush(e){const t=e.transmuxing;t.executeStart=p();const{decrypter:r,currentTransmuxState:n,decryptionPromise:i}=this;if(i)return i.then(()=>this.flush(e));const s=[],{timeOffset:u}=n;if(r){const A=r.flush();A&&s.push(this.push(A,null,e))}const{demuxer:f,remuxer:m}=this;if(!f||!m)return t.executeEnd=p(),[ye(e)];const _=f.flush(u);return Me(_)?_.then(A=>(this.flushRemux(s,A,e),s)):(this.flushRemux(s,_,e),s)}flushRemux(e,t,r){const{audioTrack:n,videoTrack:i,id3Track:s,textTrack:u}=t,{accurateTimeOffset:f,timeOffset:m}=this.currentTransmuxState;w.log(`[transmuxer.ts]: Flushed fragment ${r.sn}${r.part>-1?" p: "+r.part:""} of level ${r.level}`);const _=this.remuxer.remux(n,i,s,u,m,f,!0,this.id);e.push({remuxResult:_,chunkMeta:r}),r.transmuxing.executeEnd=p()}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:u}=this;!s||!u||(s.resetInitSegment(e,t,r,n),u.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:u,textTrack:f}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(i,s,u,f,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,vendor:i}=this;let s;for(let B=0,Q=C.length;B<Q;B++){var u;if((u=C[B].demux)!=null&&u.probe(e)){s=C[B];break}}if(!s)return new Error("Failed to find demuxer by probing fragment data");const f=this.demuxer,m=this.remuxer,_=s.remux,A=s.demux;(!m||!(m instanceof _))&&(this.remuxer=new _(r,t,n,i)),(!f||!(f instanceof A))&&(this.demuxer=new A(r,t,n),this.probe=A.probe)}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new Qi(this.config)),e}}function fe(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 ye=a=>({remuxResult:{},chunkMeta:a});function Me(a){return"then"in a&&a.then instanceof Function}class Ze{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 at{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}}var ft={exports:{}};(function(a){var e=Object.prototype.hasOwnProperty,t="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(t=!1));function n(f,m,_){this.fn=f,this.context=m,this.once=_||!1}function i(f,m,_,A,B){if(typeof _!="function")throw new TypeError("The listener must be a function");var Q=new n(_,A||f,B),V=t?t+m:m;return f._events[V]?f._events[V].fn?f._events[V]=[f._events[V],Q]:f._events[V].push(Q):(f._events[V]=Q,f._eventsCount++),f}function s(f,m){--f._eventsCount===0?f._events=new r:delete f._events[m]}function u(){this._events=new r,this._eventsCount=0}u.prototype.eventNames=function(){var m=[],_,A;if(this._eventsCount===0)return m;for(A in _=this._events)e.call(_,A)&&m.push(t?A.slice(1):A);return Object.getOwnPropertySymbols?m.concat(Object.getOwnPropertySymbols(_)):m},u.prototype.listeners=function(m){var _=t?t+m:m,A=this._events[_];if(!A)return[];if(A.fn)return[A.fn];for(var B=0,Q=A.length,V=new Array(Q);B<Q;B++)V[B]=A[B].fn;return V},u.prototype.listenerCount=function(m){var _=t?t+m:m,A=this._events[_];return A?A.fn?1:A.length:0},u.prototype.emit=function(m,_,A,B,Q,V){var le=t?t+m:m;if(!this._events[le])return!1;var me=this._events[le],ze=arguments.length,it,nt;if(me.fn){switch(me.once&&this.removeListener(m,me.fn,void 0,!0),ze){case 1:return me.fn.call(me.context),!0;case 2:return me.fn.call(me.context,_),!0;case 3:return me.fn.call(me.context,_,A),!0;case 4:return me.fn.call(me.context,_,A,B),!0;case 5:return me.fn.call(me.context,_,A,B,Q),!0;case 6:return me.fn.call(me.context,_,A,B,Q,V),!0}for(nt=1,it=new Array(ze-1);nt<ze;nt++)it[nt-1]=arguments[nt];me.fn.apply(me.context,it)}else{var _t=me.length,ot;for(nt=0;nt<_t;nt++)switch(me[nt].once&&this.removeListener(m,me[nt].fn,void 0,!0),ze){case 1:me[nt].fn.call(me[nt].context);break;case 2:me[nt].fn.call(me[nt].context,_);break;case 3:me[nt].fn.call(me[nt].context,_,A);break;case 4:me[nt].fn.call(me[nt].context,_,A,B);break;default:if(!it)for(ot=1,it=new Array(ze-1);ot<ze;ot++)it[ot-1]=arguments[ot];me[nt].fn.apply(me[nt].context,it)}}return!0},u.prototype.on=function(m,_,A){return i(this,m,_,A,!1)},u.prototype.once=function(m,_,A){return i(this,m,_,A,!0)},u.prototype.removeListener=function(m,_,A,B){var Q=t?t+m:m;if(!this._events[Q])return this;if(!_)return s(this,Q),this;var V=this._events[Q];if(V.fn)V.fn===_&&(!B||V.once)&&(!A||V.context===A)&&s(this,Q);else{for(var le=0,me=[],ze=V.length;le<ze;le++)(V[le].fn!==_||B&&!V[le].once||A&&V[le].context!==A)&&me.push(V[le]);me.length?this._events[Q]=me.length===1?me[0]:me:s(this,Q)}return this},u.prototype.removeAllListeners=function(m){var _;return m?(_=t?t+m:m,this._events[_]&&s(this,_)):(this._events=new r,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=t,u.EventEmitter=u,a.exports=u})(ft);var Rt=ft.exports,Bt=K(Rt);class Wt{constructor(e,t,r,n){this.error=null,this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0;const i=e.config;this.hls=e,this.id=t,this.useWorker=!!i.enableWorker,this.onTransmuxComplete=r,this.onFlush=n;const s=(m,_)=>{_=_||{},_.frag=this.frag,_.id=this.id,m===h.ERROR&&(this.error=_.error),this.hls.trigger(m,_)};this.observer=new Bt,this.observer.on(h.FRAG_DECRYPTED,s),this.observer.on(h.ERROR,s);const u=nn(i.preferManagedMediaSource)||{isTypeSupported:()=>!1},f={mpeg:u.isTypeSupported("audio/mpeg"),mp3:u.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:u.isTypeSupported('audio/mp4; codecs="ac-3"')};if(this.useWorker&&typeof Worker!="undefined"&&(i.workerPath||ba())){try{i.workerPath?(w.log(`loading Web Worker ${i.workerPath} for "${t}"`),this.workerContext=na(i.workerPath)):(w.log(`injecting Web Worker for "${t}"`),this.workerContext=ra()),this.onwmsg=A=>this.onWorkerMessage(A);const{worker:_}=this.workerContext;_.addEventListener("message",this.onwmsg),_.onerror=A=>{const B=new Error(`${A.message} (${A.filename}:${A.lineno})`);i.enableWorker=!1,w.warn(`Error in "${t}" Web Worker, fallback to inline`),this.hls.trigger(h.ERROR,{type:E.OTHER_ERROR,details:b.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:B})},_.postMessage({cmd:"init",typeSupported:f,vendor:"",id:t,config:JSON.stringify(i)})}catch(_){w.warn(`Error setting up "${t}" Web Worker, fallback to inline`,_),this.resetWorker(),this.error=null,this.transmuxer=new k(this.observer,f,i,"",t)}return}this.transmuxer=new k(this.observer,f,i,"",t)}resetWorker(){if(this.workerContext){const{worker:e,objectURL:t}=this.workerContext;t&&self.URL.revokeObjectURL(t),e.removeEventListener("message",this.onwmsg),e.onerror=null,e.terminate(),this.workerContext=null}}destroy(){if(this.workerContext)this.resetWorker(),this.onwmsg=void 0;else{const t=this.transmuxer;t&&(t.destroy(),this.transmuxer=null)}const e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null}push(e,t,r,n,i,s,u,f,m,_){var A,B;m.transmuxing.start=self.performance.now();const{transmuxer:Q}=this,V=s?s.start:i.start,le=i.decryptdata,me=this.frag,ze=!(me&&i.cc===me.cc),it=!(me&&m.level===me.level),nt=me?m.sn-me.sn:-1,_t=this.part?m.part-this.part.index:-1,ot=nt===0&&m.id>1&&m.id===(me==null?void 0:me.stats.chunkCount),Ot=!it&&(nt===1||nt===0&&(_t===1||ot&&_t<=0)),vt=self.performance.now();(it||nt||i.stats.parsing.start===0)&&(i.stats.parsing.start=vt),s&&(_t||!Ot)&&(s.stats.parsing.start=vt);const $t=!(me&&((A=i.initSegment)==null?void 0:A.url)===((B=me.initSegment)==null?void 0:B.url)),Jt=new at(ze,Ot,f,it,V,$t);if(!Ot||ze||$t){w.log(`[transmuxer-interface, ${i.type}]: Starting new transmux session for sn: ${m.sn} p: ${m.part} level: ${m.level} id: ${m.id}
discontinuity: ${ze}
trackSwitch: ${it}
contiguous: ${Ot}
accurateTimeOffset: ${f}
timeOffset: ${V}
initSegmentChange: ${$t}`);const It=new Ze(r,n,t,u,_);this.configureTransmuxer(It)}if(this.frag=i,this.part=s,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:e,decryptdata:le,chunkMeta:m,state:Jt},e instanceof ArrayBuffer?[e]:[]);else if(Q){const It=Q.push(e,le,m,Jt);Me(It)?(Q.async=!0,It.then(Gt=>{this.handleTransmuxComplete(Gt)}).catch(Gt=>{this.transmuxerError(Gt,m,"transmuxer-interface push error")})):(Q.async=!1,this.handleTransmuxComplete(It))}}flush(e){e.transmuxing.start=self.performance.now();const{transmuxer:t}=this;if(this.workerContext)this.workerContext.worker.postMessage({cmd:"flush",chunkMeta:e});else if(t){let r=t.flush(e);Me(r)||t.async?(Me(r)||(r=Promise.resolve(r)),r.then(i=>{this.handleFlushResult(i,e)}).catch(i=>{this.transmuxerError(i,e,"transmuxer-interface flush error")})):this.handleFlushResult(r,e)}}transmuxerError(e,t,r){this.hls&&(this.error=e,this.hls.trigger(h.ERROR,{type:E.MEDIA_ERROR,details:b.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,fatal:!1,error:e,err:e,reason:r}))}handleFlushResult(e,t){e.forEach(r=>{this.handleTransmuxComplete(r)}),this.onFlush(t)}onWorkerMessage(e){const t=e.data;if(!(t!=null&&t.event)){w.warn(`worker message received with no ${t?"event name":"data"}`);return}const r=this.hls;if(this.hls)switch(t.event){case"init":{var n;const i=(n=this.workerContext)==null?void 0:n.objectURL;i&&self.URL.revokeObjectURL(i);break}case"transmuxComplete":{this.handleTransmuxComplete(t.data);break}case"flush":{this.onFlush(t.data);break}case"workerLog":w[t.data.logType]&&w[t.data.logType](t.data.message);break;default:{t.data=t.data||{},t.data.frag=this.frag,t.data.id=this.id,r.trigger(t.event,t.data);break}}}configureTransmuxer(e){const{transmuxer:t}=this;this.workerContext?this.workerContext.worker.postMessage({cmd:"configure",config:e}):t&&t.configure(e)}handleTransmuxComplete(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)}}const or=100;class xr extends cs{constructor(e,t,r){super(e,t,r,"[audio-stream-controller]",He.AUDIO),this.videoBuffer=null,this.videoTrackCC=-1,this.waitingVideoCC=-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.mainDetails=null,this.bufferedTrack=null,this.switchingTrack=null}_registerListeners(){const{hls:e}=this;e.on(h.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(h.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(h.MANIFEST_LOADING,this.onManifestLoading,this),e.on(h.LEVEL_LOADED,this.onLevelLoaded,this),e.on(h.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(h.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(h.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(h.ERROR,this.onError,this),e.on(h.BUFFER_RESET,this.onBufferReset,this),e.on(h.BUFFER_CREATED,this.onBufferCreated,this),e.on(h.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(h.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(h.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(h.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(h.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(h.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(h.MANIFEST_LOADING,this.onManifestLoading,this),e.off(h.LEVEL_LOADED,this.onLevelLoaded,this),e.off(h.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(h.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(h.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(h.ERROR,this.onError,this),e.off(h.BUFFER_RESET,this.onBufferReset,this),e.off(h.BUFFER_CREATED,this.onBufferCreated,this),e.off(h.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(h.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(h.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(h.FRAG_BUFFERED,this.onFragBuffered,this)}onInitPtsFound(e,{frag:t,id:r,initPTS:n,timescale:i}){if(r==="main"){const s=t.cc;this.initPTS[t.cc]={baseTime:n,timescale:i},this.log(`InitPTS for cc: ${s} found from main: ${n}`),this.videoTrackCC=s,this.state===Dt.WAITING_INIT_PTS&&this.tick()}}startLoad(e){if(!this.levels){this.startPosition=e,this.state=Dt.STOPPED;return}const t=this.lastCurrentTime;this.stopLoad(),this.setInterval(or),t>0&&e===-1?(this.log(`Override startPosition with lastCurrentTime @${t.toFixed(3)}`),e=t,this.state=Dt.IDLE):(this.loadedmetadata=!1,this.state=Dt.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}doTick(){switch(this.state){case Dt.IDLE:this.doTickIdle();break;case Dt.WAITING_TRACK:{var e;const{levels:r,trackId:n}=this,i=r==null||(e=r[n])==null?void 0:e.details;if(i){if(this.waitForCdnTuneIn(i))break;this.state=Dt.WAITING_INIT_PTS}break}case Dt.FRAG_LOADING_WAITING_RETRY:{var t;const r=performance.now(),n=this.retryDate;if(!n||r>=n||(t=this.media)!=null&&t.seeking){const{levels:i,trackId:s}=this;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((i==null?void 0:i[s])||null),this.state=Dt.IDLE}break}case Dt.WAITING_INIT_PTS:{const r=this.waitingData;if(r){const{frag:n,part:i,cache:s,complete:u}=r;if(this.initPTS[n.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=Dt.FRAG_LOADING;const f=s.flush(),m={frag:n,part:i,payload:f,networkDetails:null};this._handleFragmentLoadProgress(m),u&&super._handleFragmentLoadComplete(m)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log(`Waiting fragment cc (${n.cc}) cancelled because video is at cc ${this.videoTrackCC}`),this.clearWaitingFragment();else{const f=this.getLoadPosition(),m=an.bufferInfo(this.mediaBuffer,f,this.config.maxBufferHole);Li(m.end,this.config.maxFragLookUpTolerance,n)<0&&(this.log(`Waiting fragment cc (${n.cc}) @ ${n.start} cancelled because another fragment at ${m.end} is needed`),this.clearWaitingFragment())}}else this.state=Dt.IDLE}}this.onTickEnd()}clearWaitingFragment(){const e=this.waitingData;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=Dt.IDLE)}resetLoadingState(){this.clearWaitingFragment(),super.resetLoadingState()}onTickEnd(){const{media:e}=this;e!=null&&e.readyState&&(this.lastCurrentTime=e.currentTime)}doTickIdle(){const{hls:e,levels:t,media:r,trackId:n}=this,i=e.config;if(!this.buffering||!r&&(this.startFragRequested||!i.startFragPrefetch)||!(t!=null&&t[n]))return;const s=t[n],u=s.details;if(!u||u.live&&this.levelLastLoaded!==s||this.waitForCdnTuneIn(u)){this.state=Dt.WAITING_TRACK;return}const f=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&f&&(this.bufferFlushed=!1,this.afterBufferFlushed(f,W.AUDIO,He.AUDIO));const m=this.getFwdBufferInfo(f,He.AUDIO);if(m===null)return;if(!this.switchingTrack&&this._streamEnded(m,u)){e.trigger(h.BUFFER_EOS,{type:"audio"}),this.state=Dt.ENDED;return}const _=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,He.MAIN),A=m.len,B=this.getMaxBufferLength(_==null?void 0:_.len),Q=u.fragments,V=Q[0].start,le=this.getLoadPosition(),me=this.flushing?le:m.end;if(this.switchingTrack&&r){const _t=le;u.PTSKnown&&_t<V&&(m.end>V||m.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),r.currentTime=V+.05)}if(A>=B&&!this.switchingTrack&&me<Q[Q.length-1].start)return;let ze=this.getNextFragment(me,u),it=!1;if(ze&&this.isLoopLoading(ze,me)&&(it=!!ze.gap,ze=this.getNextFragmentLoopLoading(ze,u,m,He.MAIN,B)),!ze){this.bufferFlushed=!0;return}const nt=_&&ze.start>_.end+u.targetduration;if(nt||!(_!=null&&_.len)&&m.len){const _t=this.getAppendedFrag(ze.start,He.MAIN);if(_t===null||(it||(it=!!_t.gap||!!nt&&_.len===0),nt&&!it||it&&m.nextStart&&m.nextStart<_t.end))return}this.loadFragment(ze,s,me)}getMaxBufferLength(e){const t=super.getMaxBufferLength();return e?Math.min(Math.max(t,e),this.config.maxMaxBufferLength):t}onMediaDetaching(){this.videoBuffer=null,this.bufferFlushed=this.flushing=!1,super.onMediaDetaching()}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map(r=>new Hn(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.setInterval(or):this.resetTransmuxer(),r?(this.switchingTrack=t,this.state=Dt.IDLE,this.flushAudioIfNeeded(t)):(this.switchingTrack=null,this.bufferedTrack=t,this.state=Dt.STOPPED),this.tick()}onManifestLoading(){this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=this.flushing=!1,this.levels=this.mainDetails=this.waitingData=this.bufferedTrack=this.cachedTrackLoadedData=this.switchingTrack=null,this.startFragRequested=!1,this.trackId=this.videoTrackCC=this.waitingVideoCC=-1}onLevelLoaded(e,t){this.mainDetails=t.details,this.cachedTrackLoadedData!==null&&(this.hls.trigger(h.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)}onAudioTrackLoaded(e,t){var r;if(this.mainDetails==null){this.cachedTrackLoadedData=t;return}const{levels:n}=this,{details:i,id:s}=t;if(!n){this.warn(`Audio tracks were reset while loading level ${s}`);return}this.log(`Audio track ${s} loaded [${i.startSN},${i.endSN}]${i.lastPartSn?`[part-${i.lastPartSn}-${i.lastPartIndex}]`:""},duration:${i.totalduration}`);const u=n[s];let f=0;if(i.live||(r=u.details)!=null&&r.live){this.checkLiveUpdate(i);const _=this.mainDetails;if(i.deltaUpdateFailed||!_)return;if(!u.details&&i.hasProgramDateTime&&_.hasProgramDateTime)bi(i,_),f=i.fragments[0].start;else{var m;f=this.alignPlaylists(i,u.details,(m=this.levelLastLoaded)==null?void 0:m.details)}}u.details=i,this.levelLastLoaded=u,!this.startFragRequested&&(this.mainDetails||!i.live)&&this.setStartPosition(this.mainDetails||i,f),this.state===Dt.WAITING_TRACK&&!this.waitForCdnTuneIn(i)&&(this.state=Dt.IDLE),this.tick()}_handleFragmentLoadProgress(e){var t;const{frag:r,part:n,payload:i}=e,{config:s,trackId:u,levels:f}=this;if(!f){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 m=f[u];if(!m){this.warn("Audio track is undefined on fragment load progress");return}const _=m.details;if(!_){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(r.start);return}const A=s.defaultAudioCodec||m.audioCodec||"mp4a.40.2";let B=this.transmuxer;B||(B=this.transmuxer=new Wt(this.hls,He.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const Q=this.initPTS[r.cc],V=(t=r.initSegment)==null?void 0:t.data;if(Q!==void 0){const me=n?n.index:-1,ze=me!==-1,it=new as(r.level,r.sn,r.stats.chunkCount,i.byteLength,me,ze);B.push(i,V,A,"",r,n,_.totalduration,!1,it,Q)}else{this.log(`Unknown video PTS for cc ${r.cc}, waiting for video PTS before demuxing audio frag ${r.sn} of [${_.startSN} ,${_.endSN}],track ${u}`);const{cache:le}=this.waitingData=this.waitingData||{frag:r,part:n,cache:new ta,complete:!1};le.push(new Uint8Array(i)),this.waitingVideoCC=this.videoTrackCC,this.state=Dt.WAITING_INIT_PTS}}_handleFragmentLoadComplete(e){if(this.waitingData){this.waitingData.complete=!0;return}super._handleFragmentLoadComplete(e)}onBufferReset(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1}onBufferCreated(e,t){const r=t.tracks.audio;r&&(this.mediaBuffer=r.buffer||null),t.tracks.video&&(this.videoBuffer=t.tracks.video.buffer||null)}onFragBuffered(e,t){const{frag:r,part:n}=t;if(r.type!==He.AUDIO){if(!this.loadedmetadata&&r.type===He.MAIN){const i=this.videoBuffer||this.media;i&&an.getBuffered(i).length&&(this.loadedmetadata=!0)}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(r.sn!=="initSegment"){this.fragPrevious=r;const i=this.switchingTrack;i&&(this.bufferedTrack=i,this.switchingTrack=null,this.hls.trigger(h.AUDIO_TRACK_SWITCHED,pe({},i)))}this.fragBufferedComplete(r,n)}onError(e,t){var r;if(t.fatal){this.state=Dt.ERROR;return}switch(t.details){case b.FRAG_GAP:case b.FRAG_PARSING_ERROR:case b.FRAG_DECRYPT_ERROR:case b.FRAG_LOAD_ERROR:case b.FRAG_LOAD_TIMEOUT:case b.KEY_LOAD_ERROR:case b.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(He.AUDIO,t);break;case b.AUDIO_TRACK_LOAD_ERROR:case b.AUDIO_TRACK_LOAD_TIMEOUT:case b.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===Dt.WAITING_TRACK&&((r=t.context)==null?void 0:r.type)===dr.AUDIO_TRACK&&(this.state=Dt.IDLE);break;case b.BUFFER_APPEND_ERROR:case b.BUFFER_FULL_ERROR:if(!t.parent||t.parent!=="audio")return;if(t.details===b.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case b.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onBufferFlushing(e,{type:t}){t!==W.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==W.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===Dt.ENDED&&(this.state=Dt.IDLE);const r=this.mediaBuffer||this.media;r&&(this.afterBufferFlushed(r,t,He.AUDIO),this.tick())}}_handleTransmuxComplete(e){var t;const r="audio",{hls:n}=this,{remuxResult:i,chunkMeta:s}=e,u=this.getCurrentContext(s);if(!u){this.resetWhenMissingContext(s);return}const{frag:f,part:m,level:_}=u,{details:A}=_,{audio:B,text:Q,id3:V,initSegment:le}=i;if(this.fragContextChanged(f)||!A){this.fragmentTracker.removeFragment(f);return}if(this.state=Dt.PARSING,this.switchingTrack&&B&&this.completeAudioSwitch(this.switchingTrack),le!=null&&le.tracks){const me=f.initSegment||f;this._bufferInitSegment(_,le.tracks,me,s),n.trigger(h.FRAG_PARSING_INIT_SEGMENT,{frag:me,id:r,tracks:le.tracks})}if(B){const{startPTS:me,endPTS:ze,startDTS:it,endDTS:nt}=B;m&&(m.elementaryStreams[W.AUDIO]={startPTS:me,endPTS:ze,startDTS:it,endDTS:nt}),f.setElementaryStreamInfo(W.AUDIO,me,ze,it,nt),this.bufferFragmentData(B,f,m,s)}if(V!=null&&(t=V.samples)!=null&&t.length){const me=o({id:r,frag:f,details:A},V);n.trigger(h.FRAG_PARSING_METADATA,me)}if(Q){const me=o({id:r,frag:f,details:A},Q);n.trigger(h.FRAG_PARSING_USERDATA,me)}}_bufferInitSegment(e,t,r,n){if(this.state!==Dt.PARSING)return;t.video&&delete t.video;const i=t.audio;if(!i)return;i.id="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(h.BUFFER_CODECS,t);const u=i.initSegment;if(u!=null&&u.byteLength){const f={type:"audio",frag:r,part:null,chunkMeta:n,parent:r.type,data:u};this.hls.trigger(h.BUFFER_APPENDING,f)}this.tickImmediate()}loadFragment(e,t,r){const n=this.fragmentTracker.getState(e);if(this.fragCurrent=e,this.switchingTrack||n===Un.NOT_LOADED||n===Un.PARTIAL){var i;if(e.sn==="initSegment")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=Dt.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragments[0].start!==t.details.fragments[0].start&&bi(t.details,s)}else this.startFragRequested=!0,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:u}=this.bufferedTrack;Ti({name:t,lang:r,assocLang:n,characteristics:i,audioCodec:s,channels:u},e,Di)||(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null)}}completeAudioSwitch(e){const{hls:t}=this;this.flushAudioIfNeeded(e),this.bufferedTrack=e,this.switchingTrack=null,t.trigger(h.AUDIO_TRACK_SWITCHED,pe({},e))}}function Er(a,e){if(a.length!==e.length)return!1;for(let t=0;t<a.length;t++)if(!wr(a[t].attrs,e[t].attrs))return!1;return!0}function wr(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 hn(a,e){return e.label.toLowerCase()===a.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(a.lang||"").toLowerCase())}class dn extends Gr{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(h.MANIFEST_LOADING,this.onManifestLoading,this),e.on(h.MANIFEST_PARSED,this.onManifestParsed,this),e.on(h.LEVEL_LOADING,this.onLevelLoading,this),e.on(h.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(h.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(h.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(h.MANIFEST_LOADING,this.onManifestLoading,this),e.off(h.MANIFEST_PARSED,this.onManifestParsed,this),e.off(h.LEVEL_LOADING,this.onLevelLoading,this),e.off(h.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(h.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(h.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 u=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,u)}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(u=>(n==null?void 0:n.indexOf(u))===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const u=this.tracks.filter(B=>!r||r.indexOf(B.groupId)!==-1);if(u.length)this.selectDefaultTrack&&!u.some(B=>B.default)&&(this.selectDefaultTrack=!1),u.forEach((B,Q)=>{B.id=Q});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=u;const f=this.hls.config.audioPreference;if(!i&&f){const B=mi(f,u,Di);if(B>-1)i=u[B];else{const Q=mi(f,this.tracks);i=this.tracks[Q]}}let m=this.findTrackId(i);m===-1&&i&&(m=this.findTrackId(null));const _={audioTracks:u};this.log(`Updating audio tracks, ${u.length} track(s) found in group(s): ${r==null?void 0:r.join(",")}`),this.hls.trigger(h.AUDIO_TRACKS_UPDATED,_);const A=this.trackId;if(m!==-1&&A===-1)this.setAudioTrack(m);else if(u.length&&A===-1){var s;const B=new Error(`No audio track selected for current audio group-ID(s): ${(s=this.groupIds)==null?void 0:s.join(",")} track count: ${u.length}`);this.warn(B.message),this.hls.trigger(h.ERROR,{type:E.MEDIA_ERROR,details:b.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:B})}}else this.shouldReloadPlaylist(i)&&this.setAudioTrack(this.trackId)}onError(e,t){t.fatal||!t.context||t.context.type===dr.AUDIO_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&(this.requestScheduled=-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&&Ti(e,n,Di))return n;const i=mi(e,this.tracksInGroup,Di);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 u=Js(e,t.levels,r,s,Di);if(u===-1)return null;t.nextLoadLevel=u}if(e.channels||e.audioCodec){const s=mi(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.clearTimer(),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(h.AUDIO_TRACK_SWITCHING,pe({},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||Ti(e,n,Di)))return r}if(e){const{name:r,lang:n,assocLang:i,characteristics:s,audioCodec:u,channels:f}=e;for(let m=0;m<t.length;m++){const _=t[m];if(Ti({name:r,lang:n,assocLang:i,characteristics:s,audioCodec:u,channels:f},_,Di))return m}for(let m=0;m<t.length;m++){const _=t[m];if(wr(e.attrs,_.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return m}for(let m=0;m<t.length;m++){const _=t[m];if(wr(e.attrs,_.attrs,["LANGUAGE"]))return m}}return-1}loadPlaylist(e){const t=this.currentTrack;if(this.shouldLoadPlaylist(t)&&t){super.loadPlaylist();const r=t.id,n=t.groupId;let i=t.url;if(e)try{i=e.addDirectives(i)}catch(s){this.warn(`Could not construct new URL with HLS Delivery Directives: ${s}`)}this.log(`loading audio-track playlist ${r} "${t.name}" lang:${t.lang} group:${n}`),this.clearTimer(),this.hls.trigger(h.AUDIO_TRACK_LOADING,{url:i,id:r,groupId:n,deliveryDirectives:e||null})}}}const Tn=500;class Dn extends cs{constructor(e,t,r){super(e,t,r,"[subtitle-stream-controller]",He.SUBTITLE),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this._registerListeners()}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}_registerListeners(){const{hls:e}=this;e.on(h.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(h.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(h.MANIFEST_LOADING,this.onManifestLoading,this),e.on(h.LEVEL_LOADED,this.onLevelLoaded,this),e.on(h.ERROR,this.onError,this),e.on(h.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(h.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(h.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(h.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(h.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(h.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(h.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(h.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(h.MANIFEST_LOADING,this.onManifestLoading,this),e.off(h.LEVEL_LOADED,this.onLevelLoaded,this),e.off(h.ERROR,this.onError,this),e.off(h.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(h.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(h.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(h.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(h.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(h.FRAG_BUFFERED,this.onFragBuffered,this)}startLoad(e){this.stopLoad(),this.state=Dt.IDLE,this.setInterval(Tn),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}onManifestLoading(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()}onMediaDetaching(){this.tracksBuffered=[],super.onMediaDetaching()}onLevelLoaded(e,t){this.mainDetails=t.details}onSubtitleFragProcessed(e,t){const{frag:r,success:n}=t;if(this.fragPrevious=r,this.state=Dt.IDLE,!n)return;const i=this.tracksBuffered[this.currentTrackId];if(!i)return;let s;const u=r.start;for(let m=0;m<i.length;m++)if(u>=i[m].start&&u<=i[m].end){s=i[m];break}const f=r.start+r.duration;s?s.end=f:(s={start:u,end:f},i.push(s)),this.fragmentTracker.fragBuffered(r),this.fragBufferedComplete(r,null)}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 u=0;u<s.length;){if(s[u].end<=i){s.shift();continue}else if(s[u].start<i)s[u].start=i;else break;u++}}),this.fragmentTracker.removeFragmentsInRange(r,i,He.SUBTITLE)}}onFragBuffered(e,t){if(!this.loadedmetadata&&t.frag.type===He.MAIN){var r;(r=this.media)!=null&&r.buffered.length&&(this.loadedmetadata=!0)}}onError(e,t){const r=t.frag;(r==null?void 0:r.type)===He.SUBTITLE&&(t.details===b.FRAG_GAP&&this.fragmentTracker.fragBuffered(r,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==Dt.STOPPED&&(this.state=Dt.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&Er(this.levels,t)){this.levels=t.map(r=>new Hn(r));return}this.tracksBuffered=[],this.levels=t.map(r=>{const n=new Hn(r);return this.tracksBuffered[n.id]=[],n}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,He.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.setInterval(Tn)}onSubtitleTrackLoaded(e,t){var r;const{currentTrackId:n,levels:i}=this,{details:s,id:u}=t;if(!i){this.warn(`Subtitle tracks were reset while loading level ${u}`);return}const f=i[u];if(u>=i.length||!f)return;this.log(`Subtitle track ${u} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""},duration:${s.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let m=0;if(s.live||(r=f.details)!=null&&r.live){const A=this.mainDetails;if(s.deltaUpdateFailed||!A)return;const B=A.fragments[0];if(!f.details)s.hasProgramDateTime&&A.hasProgramDateTime?(bi(s,A),m=s.fragments[0].start):B&&(m=B.start,Mt(s,m));else{var _;m=this.alignPlaylists(s,f.details,(_=this.levelLastLoaded)==null?void 0:_.details),m===0&&B&&(m=B.start,Mt(s,m))}}f.details=s,this.levelLastLoaded=f,u===n&&(!this.startFragRequested&&(this.mainDetails||!s.live)&&this.setStartPosition(this.mainDetails||s,m),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===Dt.IDLE&&(Si(null,s.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),f.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&&n.method==="AES-128"){const s=performance.now();this.decrypter.decrypt(new Uint8Array(r),n.key.buffer,n.iv.buffer).catch(u=>{throw i.trigger(h.ERROR,{type:E.MEDIA_ERROR,details:b.FRAG_DECRYPT_ERROR,fatal:!1,error:u,reason:u.message,frag:t}),u}).then(u=>{const f=performance.now();i.trigger(h.FRAG_DECRYPTED,{frag:t,payload:u,stats:{tstart:s,tdecrypt:f}})}).catch(u=>{this.warn(`${u.name}: ${u.message}`),this.state=Dt.IDLE})}}doTick(){if(!this.media){this.state=Dt.IDLE;return}if(this.state===Dt.IDLE){const{currentTrackId:e,levels:t}=this,r=t==null?void 0:t[e];if(!r||!t.length||!r.details)return;const{config:n}=this,i=this.getLoadPosition(),s=an.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],i,n.maxBufferHole),{end:u,len:f}=s,m=this.getFwdBufferInfo(this.media,He.MAIN),_=r.details,A=this.getMaxBufferLength(m==null?void 0:m.len)+_.levelTargetDuration;if(f>A)return;const B=_.fragments,Q=B.length,V=_.edge;let le=null;const me=this.fragPrevious;if(u<V){const ze=n.maxFragLookUpTolerance,it=u>V-ze?0:ze;le=Si(me,B,Math.max(B[0].start,u),it),!le&&me&&me.start<B[0].start&&(le=B[0])}else le=B[Q-1];if(!le)return;if(le=this.mapToInitFragWhenRequired(le),le.sn!=="initSegment"){const ze=le.sn-_.startSN,it=B[ze-1];it&&it.cc===le.cc&&this.fragmentTracker.getState(it)===Un.NOT_LOADED&&(le=it)}this.fragmentTracker.getState(le)===Un.NOT_LOADED&&this.loadFragment(le,r,u)}}getMaxBufferLength(e){const t=super.getMaxBufferLength();return e?Math.max(t,e):t}loadFragment(e,t,r){this.fragCurrent=e,e.sn==="initSegment"?this._loadInitSegment(e,t):(this.startFragRequested=!0,super.loadFragment(e,t,r))}get mediaBufferTimeRanges(){return new Nn(this.tracksBuffered[this.currentTrackId]||[])}}class Nn{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)}}}}class si extends Gr{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.asyncPollTrackChange=()=>this.pollTrackChange(0),this.useTextTrackPolling=!1,this.subtitlePollingInterval=-1,this._subtitleDisplay=!0,this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let t=null;const r=Kr(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(h.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(h.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(h.MANIFEST_LOADING,this.onManifestLoading,this),e.on(h.MANIFEST_PARSED,this.onManifestParsed,this),e.on(h.LEVEL_LOADING,this.onLevelLoading,this),e.on(h.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(h.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(h.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(h.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(h.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(h.MANIFEST_LOADING,this.onManifestLoading,this),e.off(h.MANIFEST_PARSED,this.onManifestParsed,this),e.off(h.LEVEL_LOADING,this.onLevelLoading,this),e.off(h.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(h.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(h.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(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),Kr(this.media.textTracks).forEach(t=>{En(t)}),this.subtitleTrack=-1,this.media=null}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 u=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,u)}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(_=>!r||r.indexOf(_.groupId)!==-1);if(s.length)this.selectDefaultTrack&&!s.some(_=>_.default)&&(this.selectDefaultTrack=!1),s.forEach((_,A)=>{_.id=A});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=s;const u=this.hls.config.subtitlePreference;if(!i&&u){this.selectDefaultTrack=!1;const _=mi(u,s);if(_>-1)i=s[_];else{const A=mi(u,this.tracks);i=this.tracks[A]}}let f=this.findTrackId(i);f===-1&&i&&(f=this.findTrackId(null));const m={subtitleTracks:s};this.log(`Updating subtitle tracks, ${s.length} track(s) found in "${r==null?void 0:r.join(",")}" group-id`),this.hls.trigger(h.SUBTITLE_TRACKS_UPDATED,m),f!==-1&&this.trackId===-1&&this.setSubtitleTrack(f)}else this.shouldReloadPlaylist(i)&&this.setSubtitleTrack(this.trackId)}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||Ti(i,e)))return n}if(e){for(let n=0;n<t.length;n++){const i=t[n];if(wr(e.attrs,i.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return n}for(let n=0;n<t.length;n++){const i=t[n];if(wr(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(hn(n,e))return r}}return-1}onError(e,t){t.fatal||!t.context||t.context.type===dr.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){const t=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,t.length){const r=this.currentTrack;if(r&&Ti(e,r))return r;const n=mi(e,this.tracksInGroup);if(n>-1){const i=this.tracksInGroup[n];return this.setSubtitleTrack(n),i}else{if(r)return null;{const i=mi(e,t);if(i>-1)return t[i]}}}}return null}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;if(this.shouldLoadPlaylist(t)&&t){const r=t.id,n=t.groupId;let i=t.url;if(e)try{i=e.addDirectives(i)}catch(s){this.warn(`Could not construct new URL with HLS Delivery Directives: ${s}`)}this.log(`Loading subtitle playlist for id ${r}`),this.hls.trigger(h.SUBTITLE_TRACK_LOADING,{url:i,id:r,groupId:n,deliveryDirectives:e||null})}}toggleTrackModes(){const{media:e}=this;if(!e)return;const t=Kr(e.textTracks),r=this.currentTrack;let n;if(r&&(n=t.filter(i=>hn(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||!z(e)){this.warn(`Invalid subtitle track id: ${e}`);return}this.clearTimer(),this.selectDefaultTrack=!1;const r=this.currentTrack,n=t[e]||null;if(this.trackId=e,this.currentTrack=n,this.toggleTrackModes(),!n){this.hls.trigger(h.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:u="",name:f,type:m,url:_}=n;this.hls.trigger(h.SUBTITLE_TRACK_SWITCH,{id:s,groupId:u,name:f,type:m,url:_});const A=this.switchParams(n.url,r==null?void 0:r.details,n.details);this.loadPlaylist(A)}}class ti{constructor(e){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=e}append(e,t,r){const n=this.queues[t];n.push(e),n.length===1&&!r&&this.executeNext(t)}insertAbort(e,t){this.queues[t].unshift(e),this.executeNext(t)}appendBlocker(e){let t;const r=new Promise(i=>{t=i}),n={execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};return this.append(n,e),r}executeNext(e){const t=this.queues[e];if(t.length){const r=t[0];try{r.execute()}catch(n){w.warn(`[buffer-operation-queue]: Exception executing "${e}" SourceBuffer operation: ${n}`),r.onError(n);const i=this.buffers[e];i!=null&&i.updating||this.shiftAndExecuteNext(e)}}}shiftAndExecuteNext(e){this.queues[e].shift(),this.executeNext(e)}current(e){return this.queues[e][0]}}const on=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/;class Ci{constructor(e){this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.appendSource=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this.log=void 0,this.warn=void 0,this.error=void 0,this._onEndStreaming=r=>{this.hls&&this.hls.pauseBuffering()},this._onStartStreaming=r=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=()=>{const{media:r,mediaSource:n}=this;this.log("Media source opened"),r&&(r.removeEventListener("emptied",this._onMediaEmptied),this.updateMediaElementDuration(),this.hls.trigger(h.MEDIA_ATTACHED,{media:r,mediaSource:n})),n&&n.removeEventListener("sourceopen",this._onMediaSourceOpen),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&&w.error(`Media element src was set while attaching MediaSource (${n} > ${r})`)},this.hls=e;const t="[buffer-controller]";this.appendSource=ri(nn(e.config.preferManagedMediaSource)),this.log=w.log.bind(w,t),this.warn=w.warn.bind(w,t),this.error=w.error.bind(w,t),this._initSourceBuffer(),this.registerListeners()}hasSourceTypes(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null,this.hls=null}registerListeners(){const{hls:e}=this;e.on(h.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(h.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(h.MANIFEST_LOADING,this.onManifestLoading,this),e.on(h.MANIFEST_PARSED,this.onManifestParsed,this),e.on(h.BUFFER_RESET,this.onBufferReset,this),e.on(h.BUFFER_APPENDING,this.onBufferAppending,this),e.on(h.BUFFER_CODECS,this.onBufferCodecs,this),e.on(h.BUFFER_EOS,this.onBufferEos,this),e.on(h.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(h.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(h.FRAG_PARSED,this.onFragParsed,this),e.on(h.FRAG_CHANGED,this.onFragChanged,this)}unregisterListeners(){const{hls:e}=this;e.off(h.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(h.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(h.MANIFEST_LOADING,this.onManifestLoading,this),e.off(h.MANIFEST_PARSED,this.onManifestParsed,this),e.off(h.BUFFER_RESET,this.onBufferReset,this),e.off(h.BUFFER_APPENDING,this.onBufferAppending,this),e.off(h.BUFFER_CODECS,this.onBufferCodecs,this),e.off(h.BUFFER_EOS,this.onBufferEos,this),e.off(h.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(h.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(h.FRAG_PARSED,this.onFragParsed,this),e.off(h.FRAG_CHANGED,this.onFragChanged,this)}_initSourceBuffer(){this.sourceBuffer={},this.operationQueue=new ti(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]},this.appendErrors={audio:0,video:0,audiovideo:0},this.lastMpegAudioChunk=null}onManifestLoading(){this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=0,this.details=null}onManifestParsed(e,t){let r=2;(t.audio&&!t.video||!t.altAudio)&&(r=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=r,this.log(`${this.bufferCodecEventsExpected} bufferCodec event(s) expected`)}onMediaAttaching(e,t){const r=this.media=t.media,n=nn(this.appendSource);if(r&&n){var i;const s=this.mediaSource=new n;this.log(`created media source: ${(i=s.constructor)==null?void 0:i.name}`),s.addEventListener("sourceopen",this._onMediaSourceOpen),s.addEventListener("sourceended",this._onMediaSourceEnded),s.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(s.addEventListener("startstreaming",this._onStartStreaming),s.addEventListener("endstreaming",this._onEndStreaming));const u=this._objectUrl=self.URL.createObjectURL(s);if(this.appendSource)try{r.removeAttribute("src");const f=self.ManagedMediaSource;r.disableRemotePlayback=r.disableRemotePlayback||f&&s instanceof f,$i(r),Ii(r,u),r.load()}catch(f){r.src=u}else r.src=u;r.addEventListener("emptied",this._onMediaEmptied)}}onMediaDetaching(){const{media:e,mediaSource:t,_objectUrl:r}=this;if(t){if(this.log("media source detaching"),t.readyState==="open")try{t.endOfStream()}catch(n){this.warn(`onMediaDetaching: ${n.message} while calling endOfStream`)}this.onBufferReset(),t.removeEventListener("sourceopen",this._onMediaSourceOpen),t.removeEventListener("sourceended",this._onMediaSourceEnded),t.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(t.removeEventListener("startstreaming",this._onStartStreaming),t.removeEventListener("endstreaming",this._onEndStreaming)),e&&(e.removeEventListener("emptied",this._onMediaEmptied),r&&self.URL.revokeObjectURL(r),this.mediaSrc===r?(e.removeAttribute("src"),this.appendSource&&$i(e),e.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(h.MEDIA_DETACHED,void 0)}onBufferReset(){this.getSourceBufferTypes().forEach(e=>{this.resetBuffer(e)}),this._initSourceBuffer(),this.hls.resumeBuffering()}resetBuffer(e){const t=this.sourceBuffer[e];try{if(t){var r;this.removeBufferListeners(e),this.sourceBuffer[e]=void 0,(r=this.mediaSource)!=null&&r.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(t)}}catch(n){this.warn(`onBufferReset ${e}`,n)}}onBufferCodecs(e,t){const r=this.getSourceBufferTypes().length,n=Object.keys(t);if(n.forEach(s=>{if(r){const f=this.tracks[s];if(f&&typeof f.buffer.changeType=="function"){var u;const{id:m,codec:_,levelCodec:A,container:B,metadata:Q}=t[s],V=Zt(f.codec,f.levelCodec),le=V==null?void 0:V.replace(on,"$1");let me=Zt(_,A);const ze=(u=me)==null?void 0:u.replace(on,"$1");if(me&&le!==ze){s.slice(0,5)==="audio"&&(me=tr(me,this.appendSource));const it=`${B};codecs=${me}`;this.appendChangeType(s,it),this.log(`switching codec ${V} to ${me}`),this.tracks[s]={buffer:f.buffer,codec:_,container:B,levelCodec:A,metadata:Q,id:m}}}}else this.pendingTracks[s]=t[s]}),r)return;const i=Math.max(this.bufferCodecEventsExpected-1,0);this.bufferCodecEventsExpected!==i&&(this.log(`${i} bufferCodec event(s) expected ${n.join(",")}`),this.bufferCodecEventsExpected=i),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()}appendChangeType(e,t){const{operationQueue:r}=this,n={execute:()=>{const i=this.sourceBuffer[e];i&&(this.log(`changing ${e} sourceBuffer type to ${t}`),i.changeType(t)),r.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:i=>{this.warn(`Failed to change ${e} SourceBuffer type`,i)}};r.append(n,e,!!this.pendingTracks[e])}onBufferAppending(e,t){const{hls:r,operationQueue:n,tracks:i}=this,{data:s,type:u,frag:f,part:m,chunkMeta:_}=t,A=_.buffering[u],B=self.performance.now();A.start=B;const Q=f.stats.buffering,V=m?m.stats.buffering:null;Q.start===0&&(Q.start=B),V&&V.start===0&&(V.start=B);const le=i.audio;let me=!1;u==="audio"&&(le==null?void 0:le.container)==="audio/mpeg"&&(me=!this.lastMpegAudioChunk||_.id===1||this.lastMpegAudioChunk.sn!==_.sn,this.lastMpegAudioChunk=_);const ze=f.start,it={execute:()=>{if(A.executeStart=self.performance.now(),me){const nt=this.sourceBuffer[u];if(nt){const _t=ze-nt.timestampOffset;Math.abs(_t)>=.1&&(this.log(`Updating audio SourceBuffer timestampOffset to ${ze} (delta: ${_t}) sn: ${f.sn})`),nt.timestampOffset=ze)}}this.appendExecutor(s,u)},onStart:()=>{},onComplete:()=>{const nt=self.performance.now();A.executeEnd=A.end=nt,Q.first===0&&(Q.first=nt),V&&V.first===0&&(V.first=nt);const{sourceBuffer:_t}=this,ot={};for(const Ot in _t)ot[Ot]=an.getBuffered(_t[Ot]);this.appendErrors[u]=0,u==="audio"||u==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(h.BUFFER_APPENDED,{type:u,frag:f,part:m,chunkMeta:_,parent:f.type,timeRanges:ot})},onError:nt=>{const _t={type:E.MEDIA_ERROR,parent:f.type,details:b.BUFFER_APPEND_ERROR,sourceBufferName:u,frag:f,part:m,chunkMeta:_,error:nt,err:nt,fatal:!1};if(nt.code===DOMException.QUOTA_EXCEEDED_ERR)_t.details=b.BUFFER_FULL_ERROR;else{const ot=++this.appendErrors[u];_t.details=b.BUFFER_APPEND_ERROR,this.warn(`Failed ${ot}/${r.config.appendErrorMaxRetry} times to append segment in "${u}" sourceBuffer`),ot>=r.config.appendErrorMaxRetry&&(_t.fatal=!0)}r.trigger(h.ERROR,_t)}};n.append(it,u,!!this.pendingTracks[u])}onBufferFlushing(e,t){const{operationQueue:r}=this,n=i=>({execute:this.removeExecutor.bind(this,i,t.startOffset,t.endOffset),onStart:()=>{},onComplete:()=>{this.hls.trigger(h.BUFFER_FLUSHED,{type:i})},onError:s=>{this.warn(`Failed to remove from ${i} SourceBuffer`,s)}});t.type?r.append(n(t.type),t.type):this.getSourceBufferTypes().forEach(i=>{r.append(n(i),i)})}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 u=()=>{const f=self.performance.now();r.stats.buffering.end=f,n&&(n.stats.buffering.end=f);const m=n?n.stats:r.stats;this.hls.trigger(h.FRAG_BUFFERED,{frag:r,part:n,stats:m,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(u,i)}onFragChanged(e,t){this.trimBuffers()}onBufferEos(e,t){this.getSourceBufferTypes().reduce((n,i)=>{const s=this.sourceBuffer[i];return s&&(!t.type||t.type===i)&&(s.ending=!0,s.ended||(s.ended=!0,this.log(`${i} sourceBuffer now EOS`))),n&&!!(!s||s.ended)},!0)&&(this.log("Queueing mediaSource.endOfStream()"),this.blockBuffers(()=>{this.getSourceBufferTypes().forEach(i=>{const s=this.sourceBuffer[i];s&&(s.ending=!1)});const{mediaSource:n}=this;if(!n||n.readyState!=="open"){n&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${n.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),n.endOfStream()}))}onLevelUpdated(e,{details:t}){t.fragments.length&&(this.details=t,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration())}trimBuffers(){const{hls:e,details:t,media:r}=this;if(!r||t===null||!this.getSourceBufferTypes().length)return;const i=e.config,s=r.currentTime,u=t.levelTargetDuration,f=t.live&&i.liveBackBufferLength!==null?i.liveBackBufferLength:i.backBufferLength;if(z(f)&&f>0){const m=Math.max(f,u),_=Math.floor(s/u)*u-m;this.flushBackBuffer(s,u,_)}if(z(i.frontBufferFlushThreshold)&&i.frontBufferFlushThreshold>0){const m=Math.max(i.maxBufferLength,i.frontBufferFlushThreshold),_=Math.max(m,u),A=Math.floor(s/u)*u+_;this.flushFrontBuffer(s,u,A)}}flushBackBuffer(e,t,r){const{details:n,sourceBuffer:i}=this;this.getSourceBufferTypes().forEach(u=>{const f=i[u];if(f){const m=an.getBuffered(f);if(m.length>0&&r>m.start(0)){if(this.hls.trigger(h.BACK_BUFFER_REACHED,{bufferEnd:r}),n!=null&&n.live)this.hls.trigger(h.LIVE_BACK_BUFFER_REACHED,{bufferEnd:r});else if(f.ended&&m.end(m.length-1)-e<t*2){this.log(`Cannot flush ${u} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(h.BUFFER_FLUSHING,{startOffset:0,endOffset:r,type:u})}}})}flushFrontBuffer(e,t,r){const{sourceBuffer:n}=this;this.getSourceBufferTypes().forEach(s=>{const u=n[s];if(u){const f=an.getBuffered(u),m=f.length;if(m<2)return;const _=f.start(m-1),A=f.end(m-1);if(r>_||e>=_&&e<=A)return;if(u.ended&&e-A<2*t){this.log(`Cannot flush ${s} front buffer while SourceBuffer is in ended state`);return}this.hls.trigger(h.BUFFER_FLUSHING,{startOffset:_,endOffset:1/0,type:s})}})}updateMediaElementDuration(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;const{details:e,hls:t,media:r,mediaSource:n}=this,i=e.fragments[0].start+e.totalduration,s=r.duration,u=z(n.duration)?n.duration:0;e.live&&t.config.liveDurationInfinity?(n.duration=1/0,this.updateSeekableRange(e)):(i>u&&i>s||!z(s))&&(this.log(`Updating Media Source duration to ${i.toFixed(3)}`),n.duration=i)}updateSeekableRange(e){const t=this.mediaSource,r=e.fragments;if(r.length&&e.live&&t!=null&&t.setLiveSeekableRange){const i=Math.max(0,r[0].start),s=Math.max(i,i+e.totalduration);this.log(`Media Source duration is set to ${t.duration}. Setting seekable range to ${i}-${s}.`),t.setLiveSeekableRange(i,s)}}checkPendingTracks(){const{bufferCodecEventsExpected:e,operationQueue:t,pendingTracks:r}=this,n=Object.keys(r).length;if(n&&(!e||n===2||"audiovideo"in r)){this.createSourceBuffers(r),this.pendingTracks={};const i=this.getSourceBufferTypes();if(i.length)this.hls.trigger(h.BUFFER_CREATED,{tracks:this.tracks}),i.forEach(s=>{t.executeNext(s)});else{const s=new Error("could not create source buffer for media codec(s)");this.hls.trigger(h.ERROR,{type:E.MEDIA_ERROR,details:b.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:s,reason:s.message})}}}createSourceBuffers(e){const{sourceBuffer:t,mediaSource:r}=this;if(!r)throw Error("createSourceBuffers called when mediaSource was null");for(const i in e)if(!t[i]){var n;const s=e[i];if(!s)throw Error(`source buffer exists for track ${i}, however track does not`);let u=((n=s.levelCodec)==null?void 0:n.indexOf(","))===-1?s.levelCodec:s.codec;u&&i.slice(0,5)==="audio"&&(u=tr(u,this.appendSource));const f=`${s.container};codecs=${u}`;this.log(`creating sourceBuffer(${f})`);try{const m=t[i]=r.addSourceBuffer(f),_=i;this.addBufferListener(_,"updatestart",this._onSBUpdateStart),this.addBufferListener(_,"updateend",this._onSBUpdateEnd),this.addBufferListener(_,"error",this._onSBUpdateError),this.appendSource&&this.addBufferListener(_,"bufferedchange",(A,B)=>{const Q=B.removedRanges;Q!=null&&Q.length&&this.hls.trigger(h.BUFFER_FLUSHED,{type:i})}),this.tracks[i]={buffer:m,codec:u,container:s.container,levelCodec:s.levelCodec,metadata:s.metadata,id:s.id}}catch(m){this.error(`error while trying to add sourceBuffer: ${m.message}`),this.hls.trigger(h.ERROR,{type:E.MEDIA_ERROR,details:b.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:m,sourceBufferName:i,mimeType:f})}}}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{operationQueue:t}=this;t.current(e).onStart()}_onSBUpdateEnd(e){var t;if(((t=this.mediaSource)==null?void 0:t.readyState)==="closed"){this.resetBuffer(e);return}const{operationQueue:r}=this;r.current(e).onComplete(),r.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(h.ERROR,{type:E.MEDIA_ERROR,details:b.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:n,fatal:!1});const i=this.operationQueue.current(e);i&&i.onError(n)}removeExecutor(e,t,r){const{media:n,mediaSource:i,operationQueue:s,sourceBuffer:u}=this,f=u[e];if(!n||!i||!f){this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),s.shiftAndExecuteNext(e);return}const m=z(n.duration)?n.duration:1/0,_=z(i.duration)?i.duration:1/0,A=Math.max(0,t),B=Math.min(r,m,_);B>A&&(!f.ending||f.ended)?(f.ended=!1,this.log(`Removing [${A},${B}] from the ${e} SourceBuffer`),f.remove(A,B)):s.shiftAndExecuteNext(e)}appendExecutor(e,t){const r=this.sourceBuffer[t];if(!r){if(!this.pendingTracks[t])throw new Error(`Attempting to append to the ${t} SourceBuffer, but it does not exist`);return}r.ended=!1,r.appendBuffer(e)}blockBuffers(e,t=this.getSourceBufferTypes()){if(!t.length){this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(e);return}const{operationQueue:r}=this,n=t.map(i=>r.appendBlocker(i));Promise.all(n).then(()=>{e(),t.forEach(i=>{const s=this.sourceBuffer[i];s!=null&&s.updating||r.shiftAndExecuteNext(i)})})}getSourceBufferTypes(){return Object.keys(this.sourceBuffer)}addBufferListener(e,t,r){const n=this.sourceBuffer[e];if(!n)return;const i=r.bind(this,e);this.listeners[e].push({event:t,listener:i}),n.addEventListener(t,i)}removeBufferListeners(e){const t=this.sourceBuffer[e];t&&this.listeners[e].forEach(r=>{t.removeEventListener(r.event,r.listener)})}}function $i(a){const e=a.querySelectorAll("source");[].slice.call(e).forEach(t=>{a.removeChild(t)})}function Ii(a,e){const t=self.document.createElement("source");t.type="video/mp4",t.src=e,a.appendChild(t)}const ai={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},Gi=a=>String.fromCharCode(ai[a]||a),Vn=15,Oi=100,to={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},ps={17:2,18:4,21:6,22:8,23:10,19:13,20:15},ms={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},gs={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Ws=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class Vs{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const r=typeof t=="function"?t():t;w.log(`${this.time} [${e}] ${r}`)}}}const ts=function(e){const t=[];for(let r=0;r<e.length;r++)t.push(e[r].toString(16));return t};class Ba{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 ro{constructor(){this.uchar=" ",this.penState=new Ba}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 ma{constructor(e){this.chars=[],this.pos=0,this.currPenState=new Ba,this.cueStartTime=null,this.logger=void 0;for(let t=0;t<Oi;t++)this.chars.push(new ro);this.logger=e}equals(e){for(let t=0;t<Oi;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<Oi;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<Oi;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>Oi&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=Oi)}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=Gi(e);if(this.pos>=Oi){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<Oi;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<Oi;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 Zs{constructor(e){this.rows=[],this.currRow=Vn-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<Vn;t++)this.rows.push(new ma(e));this.logger=e}reset(){for(let e=0;e<Vn;e++)this.rows[e].clear();this.currRow=Vn-1}equals(e){let t=!0;for(let r=0;r<Vn;r++)if(!this.rows[r].equals(e.rows[r])){t=!1;break}return t}copy(e){for(let t=0;t<Vn;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<Vn;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 = "+JSON.stringify(e));let t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(let u=0;u<Vn;u++)this.rows[u].clear();const i=this.currRow+1-this.nrRollUpRows,s=this.lastOutputScreen;if(s){const u=s.rows[i].cueStartTime,f=this.logger.time;if(u!==null&&f!==null&&u<f)for(let m=0;m<this.nrRollUpRows;m++)this.rows[t-this.nrRollUpRows+m+1].copy(s.rows[i+m])}}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 = "+JSON.stringify(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<Vn;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 ga{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 Zs(r),this.nonDisplayedMemory=new Zs(r),this.lastOutputScreen=new Zs(r),this.currRollUpRow=this.displayedMemory.rows[Vn-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[Vn-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: "+JSON.stringify(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 va{constructor(e,t,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory=Qo(),this.logger=void 0;const n=this.logger=new Vs;this.channels=[null,new ga(e,t,n),new ga(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,u=null;if(n===0&&i===0)continue;this.logger.log(3,()=>"["+ts([t[r],t[r+1]])+"] -> ("+ts([n,i])+")");const f=this.cmdHistory;if(n>=16&&n<=31){if(Jo(n,i,f)){rs(null,null,f),this.logger.log(3,()=>"Repeated command ("+ts([n,i])+") is dropped");continue}rs(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 rs(null,null,f);if(!s&&(u=this.parseChars(n,i),u)){const _=this.currentChannel;_&&_>0?this.channels[_].insertChars(u):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!s&&!u&&this.logger.log(2,()=>"Couldn't parse cleaned data "+ts([n,i])+" orig: "+ts([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 ("+ts([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?to[e]:ms[e]:r=s===1?ps[e]:gs[e];const u=this.channels[s];return u?(u.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 '"+Gi(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 = "+ts(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=Ws[i],t%2===1&&(s.background=s.background+"_semi")):t===45?s.background="transparent":(s.foreground="black",t===47&&(s.underline=!0));const u=e<=23?1:2;return this.channels[u].setBkgData(s),!0}reset(){for(let e=0;e<Object.keys(this.channels).length;e++){const t=this.channels[e];t&&t.reset()}rs(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 rs(a,e,t){t.a=a,t.b=e}function Jo(a,e,t){return t.a===a&&t.b===e}function Qo(){return{a:null,b:null}}class Na{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}}var no=function(){if(De!=null&&De.VTTCue)return self.VTTCue;const a=["","lr","rl"],e=["start","middle","end","left","right"];function t(u,f){if(typeof f!="string"||!Array.isArray(u))return!1;const m=f.toLowerCase();return~u.indexOf(m)?m:!1}function r(u){return t(a,u)}function n(u){return t(e,u)}function i(u,...f){let m=1;for(;m<arguments.length;m++){const _=arguments[m];for(const A in _)u[A]=_[A]}return u}function s(u,f,m){const _=this,A={enumerable:!0};_.hasBeenReset=!1;let B="",Q=!1,V=u,le=f,me=m,ze=null,it="",nt=!0,_t="auto",ot="start",Ot=50,vt="middle",$t=50,Jt="middle";Object.defineProperty(_,"id",i({},A,{get:function(){return B},set:function(It){B=""+It}})),Object.defineProperty(_,"pauseOnExit",i({},A,{get:function(){return Q},set:function(It){Q=!!It}})),Object.defineProperty(_,"startTime",i({},A,{get:function(){return V},set:function(It){if(typeof It!="number")throw new TypeError("Start time must be set to a number.");V=It,this.hasBeenReset=!0}})),Object.defineProperty(_,"endTime",i({},A,{get:function(){return le},set:function(It){if(typeof It!="number")throw new TypeError("End time must be set to a number.");le=It,this.hasBeenReset=!0}})),Object.defineProperty(_,"text",i({},A,{get:function(){return me},set:function(It){me=""+It,this.hasBeenReset=!0}})),Object.defineProperty(_,"region",i({},A,{get:function(){return ze},set:function(It){ze=It,this.hasBeenReset=!0}})),Object.defineProperty(_,"vertical",i({},A,{get:function(){return it},set:function(It){const Gt=r(It);if(Gt===!1)throw new SyntaxError("An invalid or illegal string was specified.");it=Gt,this.hasBeenReset=!0}})),Object.defineProperty(_,"snapToLines",i({},A,{get:function(){return nt},set:function(It){nt=!!It,this.hasBeenReset=!0}})),Object.defineProperty(_,"line",i({},A,{get:function(){return _t},set:function(It){if(typeof It!="number"&&It!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");_t=It,this.hasBeenReset=!0}})),Object.defineProperty(_,"lineAlign",i({},A,{get:function(){return ot},set:function(It){const Gt=n(It);if(!Gt)throw new SyntaxError("An invalid or illegal string was specified.");ot=Gt,this.hasBeenReset=!0}})),Object.defineProperty(_,"position",i({},A,{get:function(){return Ot},set:function(It){if(It<0||It>100)throw new Error("Position must be between 0 and 100.");Ot=It,this.hasBeenReset=!0}})),Object.defineProperty(_,"positionAlign",i({},A,{get:function(){return vt},set:function(It){const Gt=n(It);if(!Gt)throw new SyntaxError("An invalid or illegal string was specified.");vt=Gt,this.hasBeenReset=!0}})),Object.defineProperty(_,"size",i({},A,{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(_,"align",i({},A,{get:function(){return Jt},set:function(It){const Gt=n(It);if(!Gt)throw new SyntaxError("An invalid or illegal string was specified.");Jt=Gt,this.hasBeenReset=!0}})),_.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s}();class el{decode(e,t){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function xo(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 tl{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 wo(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 u=s[0],f=s[1];e(u,f)}}const io=new no(0,0,""),Fa=io.align==="middle"?"middle":"center";function rl(a,e,t){const r=a;function n(){const u=xo(a);if(u===null)throw new Error("Malformed timestamp: "+r);return a=a.replace(/^[^\sa-zA-Z-]+/,""),u}function i(u,f){const m=new tl;wo(u,function(B,Q){let V;switch(B){case"region":for(let le=t.length-1;le>=0;le--)if(t[le].id===Q){m.set(B,t[le].region);break}break;case"vertical":m.alt(B,Q,["rl","lr"]);break;case"line":V=Q.split(","),m.integer(B,V[0]),m.percent(B,V[0])&&m.set("snapToLines",!1),m.alt(B,V[0],["auto"]),V.length===2&&m.alt("lineAlign",V[1],["start",Fa,"end"]);break;case"position":V=Q.split(","),m.percent(B,V[0]),V.length===2&&m.alt("positionAlign",V[1],["start",Fa,"end","line-left","line-right","auto"]);break;case"size":m.percent(B,Q);break;case"align":m.alt(B,Q,["start",Fa,"end","left","right"]);break}},/:/,/\s/),f.region=m.get("region",null),f.vertical=m.get("vertical","");let _=m.get("line","auto");_==="auto"&&io.line===-1&&(_=-1),f.line=_,f.lineAlign=m.get("lineAlign","start"),f.snapToLines=m.get("snapToLines",!0),f.size=m.get("size",100),f.align=m.get("align",Fa);let A=m.get("position","auto");A==="auto"&&io.position===50&&(A=f.align==="start"||f.align==="left"?0:f.align==="end"||f.align==="right"?100:50),f.position=A}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 Eo(a){return a.replace(/<br(?: \/)?>/gi,`
`)}class nl{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new el,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=Eo(i);s<i.length&&i[s]!=="\r"&&i[s]!==`
`;)++s;const u=i.slice(0,s);return i[s]==="\r"&&++s,i[s]===`
`&&++s,t.buffer=i.slice(s),u}function n(i){wo(i,function(s,u){},/:/)}try{let i="";if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;i=r();const u=i.match(/^()?WEBVTT([ \t].*)?$/);if(!(u!=null&&u[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{rl(i,t.cue,t.regionList)}catch(u){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":{const u=i.indexOf("-->")!==-1;if(!i||u&&(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 il=/\r\n|\n\r|\n|\r/g,so=function(e,t,r=0){return e.slice(r,r+t.length)===t},sl=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(!z(t)||!z(r)||!z(n)||!z(i))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*r,t+=60*1e3*n,t+=60*60*1e3*i,t},ao=function(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0).toString()};function oo(a,e,t){return ao(a.toString())+ao(e.toString())+ao(t)}const al=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 ol(a,e,t,r,n,i,s){const u=new nl,f=st(new Uint8Array(a)).trim().replace(il,`
`).split(`
`),m=[],_=e?ka(e.baseTime,e.timescale):0;let A="00:00.000",B=0,Q=0,V,le=!0;u.oncue=function(me){const ze=t[r];let it=t.ccOffset;const nt=(B-_)/9e4;if(ze!=null&&ze.new&&(Q!==void 0?it=t.ccOffset=ze.start:al(t,r,nt)),nt){if(!e){V=new Error("Missing initPTS for VTT MPEGTS");return}it=nt-t.presentationOffset}const _t=me.endTime-me.startTime,ot=gi((me.startTime+it-Q)*9e4,n*9e4)/9e4;me.startTime=Math.max(ot,0),me.endTime=Math.max(ot+_t,0);const Ot=me.text.trim();me.text=decodeURIComponent(encodeURIComponent(Ot)),me.id||(me.id=oo(me.startTime,me.endTime,Ot)),me.endTime>0&&m.push(me)},u.onparsingerror=function(me){V=me},u.onflush=function(){if(V){s(V);return}i(m)},f.forEach(me=>{if(le)if(so(me,"X-TIMESTAMP-MAP=")){le=!1,me.slice(16).split(",").forEach(ze=>{so(ze,"LOCAL:")?A=ze.slice(6):so(ze,"MPEGTS:")&&(B=parseInt(ze.slice(7)))});try{Q=sl(A)/1e3}catch(ze){V=ze}return}else me===""&&(le=!1);u.parse(me+`
`)}),u.flush()}const lo="stpp.ttml.im1t",So=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Ao=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,ll={left:"start",center:"center",right:"end",start:"start",end:"end"};function To(a,e,t,r){const n=ke(new Uint8Array(a),["mdat"]);if(n.length===0){r(new Error("Could not parse IMSC1 mdat"));return}const i=n.map(u=>st(u)),s=Ja(e.baseTime,1,e.timescale);try{i.forEach(u=>t(ul(u,s)))}catch(u){r(u)}}function ul(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((A,B)=>(A[B]=n.getAttribute(`ttp:${B}`)||i[B],A),{}),u=n.getAttribute("xml:space")!=="preserve",f=Co(uo(n,"styling","style")),m=Co(uo(n,"layout","region")),_=uo(n,"body","[begin]");return[].map.call(_,A=>{const B=Do(A,u);if(!B||!A.hasAttribute("begin"))return null;const Q=ho(A.getAttribute("begin"),s),V=ho(A.getAttribute("dur"),s);let le=ho(A.getAttribute("end"),s);if(Q===null)throw Ro(A);if(le===null){if(V===null)throw Ro(A);le=Q+V}const me=new no(Q-e,le-e,B);me.id=oo(me.startTime,me.endTime,me.text);const ze=m[A.getAttribute("region")],it=f[A.getAttribute("style")],nt=cl(ze,it,f),{textAlign:_t}=nt;if(_t){const ot=ll[_t];ot&&(me.lineAlign=ot),me.align=_t}return o(me,nt),me}).filter(A=>A!==null)}function uo(a,e,t){const r=a.getElementsByTagName(e)[0];return r?[].slice.call(r.querySelectorAll(t)):[]}function Co(a){return a.reduce((e,t)=>{const r=t.getAttribute("xml:id");return r&&(e[r]=t),e},{})}function Do(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?Do(r,e):e?t+r.textContent.trim().replace(/\s+/g," "):t+r.textContent},"")}function cl(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((u,f)=>{const m=co(e,r,f)||co(a,r,f)||co(n,r,f);return m&&(u[f]=m),u},{})}function co(a,e,t){return a&&a.hasAttributeNS(e,t)?a.getAttributeNS(e,t):null}function Ro(a){return new Error(`Could not parse ttml timestamp ${a}`)}function ho(a,e){if(!a)return null;let t=xo(a);return t===null&&(So.test(a)?t=hl(a,e):Ao.test(a)&&(t=dl(a,e))),t}function hl(a,e){const t=So.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 dl(a,e){const t=Ao.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 fl{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=ko(),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(h.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(h.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(h.MANIFEST_LOADING,this.onManifestLoading,this),e.on(h.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(h.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(h.FRAG_LOADING,this.onFragLoading,this),e.on(h.FRAG_LOADED,this.onFragLoaded,this),e.on(h.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(h.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(h.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(h.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(h.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:e}=this;e.off(h.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(h.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(h.MANIFEST_LOADING,this.onManifestLoading,this),e.off(h.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(h.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(h.FRAG_LOADING,this.onFragLoading,this),e.off(h.FRAG_LOADED,this.onFragLoaded,this),e.off(h.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(h.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(h.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(h.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(h.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){if(this.config.enableCEA708Captions&&(!this.cea608Parser1||!this.cea608Parser2)){const e=new Na(this,"textTrack1"),t=new Na(this,"textTrack2"),r=new Na(this,"textTrack3"),n=new Na(this,"textTrack4");this.cea608Parser1=new va(1,e,t),this.cea608Parser2=new va(3,r,n)}}addCues(e,t,r,n,i){let s=!1;for(let u=i.length;u--;){const f=i[u],m=pl(f[0],f[1],t,r);if(m>=0&&(f[0]=Math.min(f[0],t),f[1]=Math.max(f[1],r),s=!0,m/(r-t)>.5))return}if(s||i.push([t,r]),this.config.renderTextTracksNatively){const u=this.captionsTracks[e];this.Cues.newCue(u,t,r,n)}else{const u=this.Cues.newCue(null,t,r,n);this.hls.trigger(h.CUES_PARSED,{type:"captions",cues:u,track:e})}}onInitPtsFound(e,{frag:t,id:r,initPTS:n,timescale:i}){const{unparsedVttFrags:s}=this;r==="main"&&(this.initPTS[t.cc]={baseTime:n,timescale:i}),s.length&&(this.unparsedVttFrags=[],s.forEach(u=>{this.onFragLoaded(h.FRAG_LOADED,u)}))}getExistingTrack(e,t){const{media:r}=this;if(r)for(let n=0;n<r.textTracks.length;n++){const i=r.textTracks[n];if(Lo(i,{name:e,lang:t,attrs:{}}))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],u=this.getExistingTrack(i,s);if(u)r[e]=u,En(r[e]),Pn(r[e],n);else{const f=this.createTextTrack("captions",i,s);f&&(f[e]=!0,r[e]=f)}}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(h.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,this._cleanTracks()}onMediaDetaching(){const{captionsTracks:e}=this;Object.keys(e).forEach(t=>{En(e[t]),delete e[t]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=ko(),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++)En(t[r])}onSubtitleTracksUpdated(e,t){const r=t.subtitleTracks||[],n=r.some(i=>i.textCodec===lo);if(this.config.enableWebVTT||n&&this.config.enableIMSC1){if(Er(this.tracks,r)){this.tracks=r;return}if(this.textTracks=[],this.tracks=r,this.config.renderTextTracksNatively){const s=this.media,u=s?Kr(s.textTracks):null;if(this.tracks.forEach((f,m)=>{let _;if(u){let A=null;for(let B=0;B<u.length;B++)if(u[B]&&Lo(u[B],f)){A=u[B],u[B]=null;break}A&&(_=A)}if(_)En(_);else{const A=Io(f);_=this.createTextTrack(A,f.name,f.lang),_&&(_.mode="disabled")}_&&this.textTracks.push(_)}),u!=null&&u.length){const f=u.filter(m=>m!==null).map(m=>m.label);f.length&&w.warn(`Media element contains unused subtitle tracks: ${f.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const s=this.tracks.map(u=>({label:u.name,kind:u.type.toLowerCase(),default:u.default,subtitleTrack:u}));this.hls.trigger(h.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===He.MAIN){var r,n;const{cea608Parser1:i,cea608Parser2:s,lastSn:u}=this,{cc:f,sn:m}=t.frag,_=(r=(n=t.part)==null?void 0:n.index)!=null?r:-1;i&&s&&(m!==u+1||m===u&&_!==this.lastPartIndex+1||f!==this.lastCc)&&(i.reset(),s.reset()),this.lastCc=f,this.lastSn=m,this.lastPartIndex=_}}onFragLoaded(e,t){const{frag:r,payload:n}=t;if(r.type===He.SUBTITLE)if(n.byteLength){const i=r.decryptdata,s="stats"in t;if(i==null||!i.encrypted||s){const u=this.tracks[r.level],f=this.vttCCs;f[r.cc]||(f[r.cc]={start:r.start,prevCC:this.prevCC,new:!0},this.prevCC=r.cc),u&&u.textCodec===lo?this._parseIMSC1(r,n):this._parseVTTs(t)}}else this.hls.trigger(h.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:new Error("Empty subtitle payload")})}_parseIMSC1(e,t){const r=this.hls;To(t,this.initPTS[e.cc],n=>{this._appendCues(n,e.level),r.trigger(h.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})},n=>{w.log(`Failed to parse IMSC1: ${n}`),r.trigger(h.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:n})})}_parseVTTs(e){var t;const{frag:r,payload:n}=e,{initPTS:i,unparsedVttFrags:s}=this,u=i.length-1;if(!i[r.cc]&&u===-1){s.push(e);return}const f=this.hls,m=(t=r.initSegment)!=null&&t.data?Ft(r.initSegment.data,new Uint8Array(n)):n;ol(m,this.initPTS[r.cc],this.vttCCs,r.cc,r.start,_=>{this._appendCues(_,r.level),f.trigger(h.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:r})},_=>{const A=_.message==="Missing initPTS for VTT MPEGTS";A?s.push(e):this._fallbackToIMSC1(r,n),w.log(`Failed to parse VTT cue: ${_}`),!(A&&u>r.cc)&&f.trigger(h.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:_})})}_fallbackToIMSC1(e,t){const r=this.tracks[e.level];r.textCodec||To(t,this.initPTS[e.cc],()=>{r.textCodec=lo,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=>Mn(n,i))}else{const n=this.tracks[t];if(!n)return;const i=n.default?"default":"subtitles"+t;r.trigger(h.CUES_PARSED,{type:"subtitles",cues:e,track:i})}}onFragDecrypted(e,t){const{frag:r}=t;r.type===He.SUBTITLE&&this.onFragLoaded(h.FRAG_LOADED,t)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(e,t){this.initCea608Parsers();const{cea608Parser1:r,cea608Parser2:n}=this;if(!this.enabled||!r||!n)return;const{frag:i,samples:s}=t;if(!(i.type===He.MAIN&&this.closedCaptionsForLevel(i)==="NONE"))for(let u=0;u<s.length;u++){const f=s[u].bytes;if(f){const m=this.extractCea608Data(f);r.addData(s[u].pts,m[0]),n.addData(s[u].pts,m[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:u}=this;Object.keys(u).forEach(f=>pr(u[f],t,r))}if(this.config.renderTextTracksNatively&&t===0&&n!==void 0){const{textTracks:u}=this;Object.keys(u).forEach(f=>pr(u[f],t,n))}}}extractCea608Data(e){const t=[[],[]],r=e[0]&31;let n=2;for(let i=0;i<r;i++){const s=e[n++],u=127&e[n++],f=127&e[n++];if(u===0&&f===0)continue;if((4&s)!==0){const _=3&s;(_===0||_===1)&&(t[_].push(u),t[_].push(f))}}return t}}function Io(a){return a.characteristics&&/transcribes-spoken-dialog/gi.test(a.characteristics)&&/describes-music-and-sound/gi.test(a.characteristics)?"captions":"subtitles"}function Lo(a,e){return!!a&&a.kind===Io(e)&&hn(e,a)}function pl(a,e,t,r){return Math.min(e,r)-Math.max(a,t)}function ko(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}class fo{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(h.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(h.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(h.MANIFEST_PARSED,this.onManifestParsed,this),e.on(h.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(h.BUFFER_CODECS,this.onBufferCodecs,this),e.on(h.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:e}=this;e.off(h.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(h.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(h.MANIFEST_PARSED,this.onManifestParsed,this),e.off(h.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(h.BUFFER_CODECS,this.onBufferCodecs,this),e.off(h.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&&z(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(e,t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onMediaDetaching(){this.stopCapping()}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&&w.log(`Setting autoLevelCapping to ${r}: ${e[r].height}p@${e[r].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),t.autoLevelCapping=r,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,fo.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 e}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=(u,f)=>f?u.width!==f.width||u.height!==f.height:!0;let i=e.length-1;const s=Math.max(t,r);for(let u=0;u<e.length;u+=1){const f=e[u];if((f.width>=s||f.height>=s)&&n(f,e[u+1])){i=u;break}}return i}}class ml{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(h.MEDIA_ATTACHING,this.onMediaAttaching,this)}unregisterListeners(){this.hls.off(h.MEDIA_ATTACHING,this.onMediaAttaching,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)}}checkFPS(e,t,r){const n=performance.now();if(t){if(this.lastTime){const i=n-this.lastTime,s=r-this.lastDroppedFrames,u=t-this.lastDecodedFrames,f=1e3*s/i,m=this.hls;if(m.trigger(h.FPS_DROP,{currentDropped:s,currentDecoded:u,totalDroppedFrames:r}),f>0&&s>m.config.fpsDroppedMonitoringThreshold*u){let _=m.currentLevel;w.warn("drop FPS ratio greater than max allowed value for currentLevel: "+_),_>0&&(m.autoLevelCapping===-1||m.autoLevelCapping>=_)&&(_=_-1,m.trigger(h.FPS_DROP_LEVEL_CAPPING,{level:_,droppedLevel:m.currentLevel}),m.autoLevelCapping=_,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)}}const za="[eme]";class Ys{constructor(e){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=Ys.CDMCleanupPromise?[Ys.CDMCleanupPromise]:[],this.debug=w.debug.bind(w,za),this.log=w.log.bind(w,za),this.warn=w.warn.bind(w,za),this.error=w.error.bind(w,za),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=mt(this.config));const u=s.map(ht).filter(f=>!!f);this.keyFormatPromise=this.getKeyFormatPromise(u)}this.keyFormatPromise.then(s=>{const u=qe(s);let f,m;if(r==="sinf"){if(u!==Ie.FAIRPLAY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${r}" for selected key-system ${u}`);return}const V=Ct(new Uint8Array(n));try{const le=g(JSON.parse(V).sinf),me=Et(le);if(!me)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");f=me.subarray(8,24),m=Ie.FAIRPLAY}catch(le){this.warn(`${i} Failed to parse sinf: ${le}`);return}}else{if(u!==Ie.WIDEVINE&&u!==Ie.PLAYREADY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${r}" for selected key-system ${u}`);return}const V=Jr(n),le=V.filter(ze=>!!ze.systemId&&Ve(ze.systemId)===u);le.length>1&&this.warn(`${i} Using first of ${le.length} pssh found for selected key-system ${u}`);const me=le[0];if(!me){V.length===0||V.some(ze=>!ze.systemId)?this.warn(`${i} contains incomplete or invalid pssh data`):this.log(`ignoring ${i} for ${V.map(ze=>Ve(ze.systemId)).join(",")} pssh data in favor of playlist keys`);return}if(m=Ve(me.systemId),me.version===0&&me.data)if(m===Ie.WIDEVINE){const ze=me.data.length-22;f=me.data.subarray(ze,ze+16)}else m===Ie.PLAYREADY&&(f=St(me.data))}if(!m||!f){this.log(`Unable to handle ${i} with key-system ${u}`);return}const _=yt.hexDump(f),{keyIdToKeySessionPromise:A,mediaKeySessions:B}=this;let Q=A[_];for(let V=0;V<B.length;V++){const le=B[V],me=le.decryptdata;if(!me.keyId)continue;const ze=yt.hexDump(me.keyId);if(_===ze||me.uri.replace(/-/g,"").indexOf(_)!==-1){if(Q=A[ze],me.pssh)break;delete A[ze],me.pssh=new Uint8Array(n),me.keyId=f,Q=A[_]=Q.then(()=>this.generateRequestWithPreferredKeySession(le,r,n,"encrypted-event-key-match")),Q.catch(it=>this.handleError(it));break}}if(!Q){if(m!==u){this.log(`Ignoring "${i}" with ${m} init data for selected key-system ${u}`);return}Q=A[_]=this.getKeySystemSelectionPromise([m]).then(({keySystem:V,mediaKeys:le})=>{var me;this.throwIfDestroyed();const ze=new Dr("ISO-23001-7",_,(me=ht(V))!=null?me:"");return ze.pssh=new Uint8Array(n),ze.keyId=f,this.attemptSetMediaKeys(V,le).then(()=>{this.throwIfDestroyed();const it=this.createMediaKeySessionContext({decryptdata:ze,keySystem:V,mediaKeys:le});return this.generateRequestWithPreferredKeySession(it,r,n,"encrypted-event-no-match")})}),Q.catch(V=>this.handleError(V))}})}},this.onWaitingForKey=t=>{this.log(`"${t.type}" event`)},this.hls=e,this.config=e.config,this.registerListeners()}destroy(){this.unregisterListeners(),this.onMediaDetached();const e=this.config;e.requestMediaKeySystemAccessFunc=null,e.licenseXhrSetup=e.licenseResponseCallback=void 0,e.drmSystems=e.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){this.hls.on(h.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(h.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(h.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(h.MANIFEST_LOADED,this.onManifestLoaded,this)}unregisterListeners(){this.hls.off(h.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(h.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(h.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(h.MANIFEST_LOADED,this.onManifestLoaded,this)}getLicenseServerUrl(e){const{drmSystems:t,widevineLicenseUrl:r}=this.config,n=t[e];if(n)return n.licenseUrl;if(e===Ie.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,u,f)=>!!s&&f.indexOf(s)===u,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,u)=>{const f=m=>{const _=m.shift();this.getMediaKeysPromise(_,n,i).then(A=>s({keySystem:_,mediaKeys:A})).catch(A=>{m.length?f(m):A instanceof Pi?u(A):u(new Pi({type:E.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_NO_ACCESS,error:A,fatal:!0},A.message))})};f(e)})}requestMediaKeySystemAccess(e,t){const{requestMediaKeySystemAccessFunc:r}=this.config;if(typeof r!="function"){let n=`Configured requestMediaKeySystemAccess is not a function ${r}`;return kt===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=gt(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: ${JSON.stringify(n)}`),s=this.requestMediaKeySystemAccess(e,n);const u=this.keySystemAccessPromises[e]={keySystemAccess:s};return s.catch(f=>{this.log(`Failed to obtain access to key-system "${e}": ${f}`)}),s.then(f=>{this.log(`Access for key-system "${f.keySystem}" obtained`);const m=this.fetchServerCertificate(e);return this.log(`Create media-keys for "${e}"`),u.mediaKeys=f.createMediaKeys().then(_=>(this.log(`Media-keys created for "${e}"`),m.then(A=>A?this.setMediaKeysServerCertificate(_,e,A):_))),u.mediaKeys.catch(_=>{this.error(`Failed to create media-keys for "${e}"}: ${_}`)}),u.mediaKeys})}return s.then(()=>i.mediaKeys)}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:r}){this.log(`Creating key-system session "${t}" keyId: ${yt.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,"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 yt.hexDump(e.keyId)}updateKeySession(e,t){var r;const n=e.mediaKeysSession;return this.log(`Updating key-session "${n.sessionId}" for keyID ${yt.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=mt(this.config),i=e.map(qe).filter(s=>!!s&&n.indexOf(s)!==-1);return this.getKeySystemSelectionPromise(i).then(({keySystem:s})=>{const u=ht(s);u?t(u):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.keyIdToKeySessionPromise[r]=this.getKeySystemForKeyPromise(t).then(({keySystem:s,mediaKeys:u})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${n}`),this.attemptSetMediaKeys(s,u).then(()=>{this.throwIfDestroyed();const f=this.createMediaKeySessionContext({keySystem:s,mediaKeys:u,decryptdata:t});return this.generateRequestWithPreferredKeySession(f,"cenc",t.pssh,"playlist-key")}))),i.catch(s=>this.handleError(s))),i}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(e){this.hls&&(this.error(e.message),e instanceof Pi?this.hls.trigger(h.ERROR,e.data):this.hls.trigger(h.ERROR,{type:E.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))}getKeySystemForKeyPromise(e){const t=this.getKeyIdString(e),r=this.keyIdToKeySessionPromise[t];if(!r){const n=qe(e.keyFormat),i=n?[n]:mt(this.config);return this.attemptKeySystemAccess(i)}return r}getKeySystemSelectionPromise(e){if(e.length||(e=mt(this.config)),e.length===0)throw new Pi({type:E.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${JSON.stringify({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 u=(i=this.config.drmSystems)==null||(s=i[e.keySystem])==null?void 0:s.generateRequest;if(u)try{const V=u.call(this.hls,t,r,e);if(!V)throw new Error("Invalid response from configured generateRequest filter");t=V.initDataType,r=e.decryptdata.pssh=V.initData?new Uint8Array(V.initData):null}catch(V){var f;if(this.warn(V.message),(f=this.hls)!=null&&f.config.debug)throw V}if(r===null)return this.log(`Skipping key-session request for "${n}" (no initData)`),Promise.resolve(e);const m=this.getKeyIdString(e.decryptdata);this.log(`Generating key-session request for "${n}": ${m} (init data type: ${t} length: ${r?r.byteLength:null})`);const _=new Bt,A=e._onmessage=V=>{const le=e.mediaKeysSession;if(!le){_.emit("error",new Error("invalid state"));return}const{messageType:me,message:ze}=V;this.log(`"${me}" message event for session "${le.sessionId}" message size: ${ze.byteLength}`),me==="license-request"||me==="license-renewal"?this.renewLicense(e,ze).catch(it=>{this.handleError(it),_.emit("error",it)}):me==="license-release"?e.keySystem===Ie.FAIRPLAY&&(this.updateKeySession(e,xe("acknowledged")),this.removeSession(e)):this.warn(`unhandled media key message type "${me}"`)},B=e._onkeystatuseschange=V=>{if(!e.mediaKeysSession){_.emit("error",new Error("invalid state"));return}this.onKeyStatusChange(e);const me=e.keyStatus;_.emit("keyStatus",me),me==="expired"&&(this.warn(`${e.keySystem} expired for key ${m}`),this.renewKeySession(e))};e.mediaKeysSession.addEventListener("message",A),e.mediaKeysSession.addEventListener("keystatuseschange",B);const Q=new Promise((V,le)=>{_.on("error",le),_.on("keyStatus",me=>{me.startsWith("usable")?V():me==="output-restricted"?le(new Pi({type:E.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):me==="internal-error"?le(new Pi({type:E.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${me}"`)):me==="expired"?le(new Error("key expired while generating request")):this.warn(`unhandled key status change "${me}"`)})});return e.mediaKeysSession.generateRequest(t,r).then(()=>{var V;this.log(`Request generated for key-session "${(V=e.mediaKeysSession)==null?void 0:V.sessionId}" keyId: ${m}`)}).catch(V=>{throw new Pi({type:E.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_NO_SESSION,error:V,fatal:!1},`Error generating key-session request: ${V}`)}).then(()=>Q).catch(V=>{throw _.removeAllListeners(),this.removeSession(e),V}).then(()=>(_.removeAllListeners(),e))}onKeyStatusChange(e){e.mediaKeysSession.keyStatuses.forEach((t,r)=>{this.log(`key status change "${t}" for keyStatuses keyId: ${yt.hexDump("buffer"in r?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):new Uint8Array(r))} session keyId: ${yt.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,u)=>{const f={responseType:"arraybuffer",url:i},m=t.certLoadPolicy.default,_={loadPolicy:m,timeout:m.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},A={onSuccess:(B,Q,V,le)=>{s(B.data)},onError:(B,Q,V,le)=>{u(new Pi({type:E.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:V,response:pe({url:f.url,data:void 0},B)},`"${e}" certificate request failed (${i}). Status: ${B.code} (${B.text})`))},onTimeout:(B,Q,V)=>{u(new Pi({type:E.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:V,response:{url:f.url,data:void 0}},`"${e}" certificate request timed out (${i})`))},onAbort:(B,Q,V)=>{u(new Error("aborted"))}};n.load(f,_,A)})):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 Pi({type:E.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:s,fatal:!0},s.message))})})}renewLicense(e,t){return this.requestLicense(e,new Uint8Array(t)).then(r=>this.updateKeySession(e,new Uint8Array(r)).catch(n=>{throw new Pi({type:E.KEY_SYSTEM_ERROR,details:b.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 _;for(let A=0,B=i.length;A<B;A++){var s,u;_=i[A];const Q=(s=_.querySelector("name"))==null?void 0:s.textContent,V=(u=_.querySelector("value"))==null?void 0:u.textContent;Q&&V&&e.setRequestHeader(Q,V)}}const f=n.querySelector("Challenge"),m=f==null?void 0:f.textContent;if(!m)throw new Error("Cannot find <Challenge> in key message");return xe(atob(m))}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 u=new XMLHttpRequest;u.responseType="arraybuffer",u.onreadystatechange=()=>{if(!this.hls||!e.mediaKeysSession)return i(new Error("invalid state"));if(u.readyState===4)if(u.status===200){this._requestLicenseFailureCount=0;let f=u.response;this.log(`License received ${f instanceof ArrayBuffer?f.byteLength:f}`);const m=this.config.licenseResponseCallback;if(m)try{f=m.call(this.hls,u,s,e)}catch(_){this.error(_)}n(f)}else{const f=r.errorRetry,m=f?f.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>m||u.status>=400&&u.status<500)i(new Pi({type:E.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:u,response:{url:s,data:void 0,code:u.status,text:u.statusText}},`License Request XHR failed (${s}). Status: ${u.status} (${u.statusText})`));else{const _=m-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${_} attempts left`),this.requestLicense(e,t).then(n,i)}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=u,this.setupLicenseXHR(u,s,e,t).then(({xhr:f,licenseChallenge:m})=>{e.keySystem==Ie.PLAYREADY&&(m=this.unpackPlayReadyKeyMessage(f,m)),f.send(m)})})}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,t=this.mediaKeySessions;e&&(e.removeEventListener("encrypted",this.onMediaEncrypted),e.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},Dr.clearKeyUriToKeyIdMap();const r=t.length;Ys.CDMCleanupPromise=Promise.all(t.map(n=>this.removeSession(n)).concat(e==null?void 0:e.setMediaKeys(null).catch(n=>{this.log(`Could not clear media keys: ${n}`)}))).then(()=>{r&&(this.log("finished closing key sessions and clearing media keys"),t.length=0)}).catch(n=>{this.log(`Could not close sessions and clear media keys: ${n}`)})}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=>{this.log(`Could not remove session: ${i}`)}).then(()=>t.close()).catch(i=>{this.log(`Could not close session: ${i}`)})}}}Ys.CDMCleanupPromise=void 0;class Pi extends Error{constructor(e,t){super(t),this.data=void 0,e.error||(e.error=new Error(t)),this.data=e,e.err=e.error}}var vi;(function(a){a.MANIFEST="m",a.AUDIO="a",a.VIDEO="v",a.MUXED="av",a.INIT="i",a.CAPTION="c",a.TIMED_TEXT="tt",a.KEY="k",a.OTHER="o"})(vi||(vi={}));var po;(function(a){a.DASH="d",a.HLS="h",a.SMOOTH="s",a.OTHER="o"})(po||(po={}));var Ts;(function(a){a.OBJECT="CMCD-Object",a.REQUEST="CMCD-Request",a.SESSION="CMCD-Session",a.STATUS="CMCD-Status"})(Ts||(Ts={}));const gl={[Ts.OBJECT]:["br","d","ot","tb"],[Ts.REQUEST]:["bl","dl","mtp","nor","nrr","su"],[Ts.SESSION]:["cid","pr","sf","sid","st","v"],[Ts.STATUS]:["bs","rtp"]};class Xs{constructor(e,t){this.value=void 0,this.params=void 0,Array.isArray(e)&&(e=e.map(r=>r instanceof Xs?r:new Xs(r))),this.value=e,this.params=t}}class Oo{constructor(e){this.description=void 0,this.description=e}}const vl="Dict";function _l(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 yl(a,e,t,r){return new Error(`failed to ${a} "${_l(e)}" as ${t}`,{cause:r})}const Po="Bare Item",bl="Boolean",xl="Byte Sequence",wl="Decimal",El="Integer";function Sl(a){return a<-999999999999999||999999999999999<a}const Al=/[\x00-\x1f\x7f]+/,Tl="Token",Cl="Key";function Zi(a,e,t){return yl("serialize",a,e,t)}function Dl(a){if(typeof a!="boolean")throw Zi(a,bl);return a?"?1":"?0"}function Rl(a){return btoa(String.fromCharCode(...a))}function Il(a){if(ArrayBuffer.isView(a)===!1)throw Zi(a,xl);return`:${Rl(a)}:`}function Mo(a){if(Sl(a))throw Zi(a,El);return a.toString()}function Ll(a){return`@${Mo(a.getTime()/1e3)}`}function Bo(a,e){if(a<0)return-Bo(-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 kl(a){const e=Bo(a,3);if(Math.floor(Math.abs(e)).toString().length>12)throw Zi(a,wl);const t=e.toString();return t.includes(".")?t:`${t}.0`}const Ol="String";function Pl(a){if(Al.test(a))throw Zi(a,Ol);return`"${a.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Ml(a){return a.description||a.toString().slice(7,-1)}function No(a){const e=Ml(a);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw Zi(e,Tl);return e}function mo(a){switch(typeof a){case"number":if(!z(a))throw Zi(a,Po);return Number.isInteger(a)?Mo(a):kl(a);case"string":return Pl(a);case"symbol":return No(a);case"boolean":return Dl(a);case"object":if(a instanceof Date)return Ll(a);if(a instanceof Uint8Array)return Il(a);if(a instanceof Oo)return No(a);default:throw Zi(a,Po)}}function go(a){if(/^[a-z*][a-z0-9\-_.*]*$/.test(a)===!1)throw Zi(a,Cl);return a}function vo(a){return a==null?"":Object.entries(a).map(([e,t])=>t===!0?`;${go(e)}`:`;${go(e)}=${mo(t)}`).join("")}function Fo(a){return a instanceof Xs?`${mo(a.value)}${vo(a.params)}`:mo(a)}function Bl(a){return`(${a.value.map(Fo).join(" ")})${vo(a.params)}`}function Nl(a,e={whitespace:!0}){if(typeof a!="object")throw Zi(a,vl);const t=a instanceof Map?a.entries():Object.entries(a),r=e!=null&&e.whitespace?" ":"";return Array.from(t).map(([n,i])=>{i instanceof Xs||(i=new Xs(i));let s=go(n);return i.value===!0?s+=vo(i.params):(s+="=",Array.isArray(i.value)?s+=Bl(i):s+=Fo(i)),s}).join(`,${r}`)}function Fl(a,e){return Nl(a,e)}const zl=a=>a==="ot"||a==="sf"||a==="st",Ul=a=>typeof a=="number"?z(a):a!=null&&a!==""&&a!==!1;function $l(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 Gl(){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)})}}}const Ua=a=>Math.round(a),Hl=(a,e)=>(e!=null&&e.baseUrl&&(a=$l(a,e.baseUrl)),encodeURIComponent(a)),$a=a=>Ua(a/100)*100,jl={br:Ua,d:Ua,bl:$a,dl:$a,mtp:$a,nor:Hl,rtp:$a,tb:Ua};function Kl(a,e){const t={};if(a==null||typeof a!="object")return t;const r=Object.keys(a).sort(),n=o({},jl,e==null?void 0:e.formatters),i=e==null?void 0:e.filter;return r.forEach(s=>{if(i!=null&&i(s))return;let u=a[s];const f=n[s];f&&(u=f(u,e)),!(s==="v"&&u===1)&&(s=="pr"&&u===1||Ul(u)&&(zl(s)&&typeof u=="string"&&(u=new Oo(u)),t[s]=u))}),t}function zo(a,e={}){return a?Fl(Kl(a,e),o({whitespace:!1},e)):""}function Wl(a,e={}){if(!a)return{};const t=Object.entries(a),r=Object.entries(gl).concat(Object.entries((e==null?void 0:e.customHeaderMap)||{})),n=t.reduce((i,s)=>{var u,f;const[m,_]=s,A=((u=r.find(B=>B[1].includes(m)))==null?void 0:u[0])||Ts.REQUEST;return(f=i[A])!=null||(i[A]={}),i[A][m]=_,i},{});return Object.entries(n).reduce((i,[s,u])=>(i[s]=zo(u,e),i),{})}function Vl(a,e,t){return o(a,Wl(e,t))}const Zl="CMCD";function Yl(a,e={}){if(!a)return"";const t=zo(a,e);return`${Zl}=${encodeURIComponent(t)}`}const Uo=/CMCD=[^&#]+/;function Xl(a,e,t){const r=Yl(e,t);if(!r)return a;if(Uo.test(a))return a.replace(Uo,r);const n=a.includes("?")?"&":"?";return`${a}${n}${r}`}class ql{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:vi.MANIFEST,su:!this.initialized})}catch(i){w.warn("Could not generate manifest CMCD data.",i)}},this.applyFragmentData=n=>{try{const i=n.frag,s=this.hls.levels[i.level],u=this.getObjectType(i),f={d:i.duration*1e3,ot:u};(u===vi.VIDEO||u===vi.AUDIO||u==vi.MUXED)&&(f.br=s.bitrate/1e3,f.tb=this.getTopBandwidth(u)/1e3,f.bl=this.getBufferLength(u)),this.apply(n,f)}catch(i){w.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||Gl(),this.cid=r.contentId,this.useHeaders=r.useHeaders===!0,this.includeKeys=r.includeKeys,this.registerListeners())}registerListeners(){const e=this.hls;e.on(h.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(h.MEDIA_DETACHED,this.onMediaDetached,this),e.on(h.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const e=this.hls;e.off(h.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(h.MEDIA_DETACHED,this.onMediaDetached,this),e.off(h.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=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:po.HLS,sid:this.sid,cid:this.cid,pr:(e=this.media)==null?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){o(t,this.createData());const r=t.ot===vi.INIT||t.ot===vi.VIDEO||t.ot===vi.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((i,s)=>(n.includes(s)&&(i[s]=t[s]),i),{})),this.useHeaders?(e.headers||(e.headers={}),Vl(e.headers,t)):e.url=Xl(e.url,t)}getObjectType(e){const{type:t}=e;if(t==="subtitle")return vi.TIMED_TEXT;if(e.sn==="initSegment")return vi.INIT;if(t==="audio")return vi.AUDIO;if(t==="main")return this.hls.audioTracks.length?vi.VIDEO:vi.MUXED}getTopBandwidth(e){let t=0,r;const n=this.hls;if(e===vi.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.hls.media,r=e===vi.AUDIO?this.audioBuffer:this.videoBuffer;return!r||!t?NaN:an.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,u){t(i),this.loader.load(i,s,u)}}}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,u){t(i),this.loader.load(i,s,u)}}}}const Jl=3e5;class Ql{constructor(e){this.hls=void 0,this.log=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.log=w.log.bind(w,"[content-steering]:"),this.registerListeners()}registerListeners(){const e=this.hls;e.on(h.MANIFEST_LOADING,this.onManifestLoading,this),e.on(h.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(h.MANIFEST_PARSED,this.onManifestParsed,this),e.on(h.ERROR,this.onError,this)}unregisterListeners(){const e=this.hls;e&&(e.off(h.MANIFEST_LOADING,this.onManifestLoading,this),e.off(h.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(h.MANIFEST_PARSED,this.onManifestParsed,this),e.off(h.ERROR,this.onError,this))}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)===Yt.SendAlternateToPenaltyBox&&r.flags===Br.MoveAllAlternatesMatchingHost){const n=this.levels;let i=this.pathwayPriority,s=this.pathwayId;if(t.context){const{groupId:u,pathwayId:f,type:m}=t.context;u&&n?s=this.getPathwayForGroupId(u,m,s):f&&(s=f)}s in this.penalizedPathways||(this.penalizedPathways[s]=performance.now()),!i&&n&&(i=n.reduce((u,f)=>(u.indexOf(f.pathwayId)===-1&&u.push(f.pathwayId),u),[])),i&&i.length>1&&(this.updatePathwayPriority(i),r.resolved=this.pathwayId!==s),r.resolved||w.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${s} levels: ${n&&n.length} priorities: ${JSON.stringify(i)} penalized: ${JSON.stringify(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]>Jl&&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 u=this.hls.nextLoadLevel,f=this.hls.levels[u];if(t=this.getLevelsForPathway(s),t.length>0){this.log(`Setting Pathway to "${s}"`),this.pathwayId=s,vn(t),this.hls.trigger(h.LEVELS_UPDATED,{levels:t});const m=this.hls.levels[u];f&&m&&this.levels&&(m.attrs["STABLE-VARIANT-ID"]!==f.attrs["STABLE-VARIANT-ID"]&&m.bitrate!==f.bitrate&&this.log(`Unstable Pathways change from bitrate ${f.bitrate} to ${m.bitrate}`),this.hls.nextLoadLevel=u);break}}}getPathwayForGroupId(e,t,r){const n=this.getLevelsForPathway(r).concat(this.levels||[]);for(let i=0;i<n.length;i++)if(t===dr.AUDIO_TRACK&&n[i].hasAudioGroup(e)||t===dr.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":u,"URI-REPLACEMENT":f}=i;if(t.some(_=>_.pathwayId===s))return;const m=this.getLevelsForPathway(u).map(_=>{const A=new ee(_.attrs);A["PATHWAY-ID"]=s;const B=A.AUDIO&&`${A.AUDIO}_clone_${s}`,Q=A.SUBTITLES&&`${A.SUBTITLES}_clone_${s}`;B&&(r[A.AUDIO]=B,A.AUDIO=B),Q&&(n[A.SUBTITLES]=Q,A.SUBTITLES=Q);const V=Go(_.uri,A["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",f),le=new Hn({attrs:A,audioCodec:_.audioCodec,bitrate:_.bitrate,height:_.height,name:_.name,url:V,videoCodec:_.videoCodec,width:_.width});if(_.audioGroups)for(let me=1;me<_.audioGroups.length;me++)le.addGroupId("audio",`${_.audioGroups[me]}_clone_${s}`);if(_.subtitleGroups)for(let me=1;me<_.subtitleGroups.length;me++)le.addGroupId("text",`${_.subtitleGroups[me]}_clone_${s}`);return le});t.push(...m),$o(this.audioTracks,r,f,s),$o(this.subtitleTracks,n,f,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(_){this.enabled=!1,this.log(`Failed to parse Steering Manifest URI: ${e}`);return}if(n.protocol!=="data:"){const _=(this.hls.bandwidthEstimate||t.abrEwmaDefaultEstimate)|0;n.searchParams.set("_HLS_pathway",this.pathwayId),n.searchParams.set("_HLS_throughput",""+_)}const i={responseType:"json",url:n.href},s=t.steeringManifestLoadPolicy.default,u=s.errorRetry||s.timeoutRetry||{},f={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:u.maxNumRetry||0,retryDelay:u.retryDelayMs||0,maxRetryDelay:u.maxRetryDelayMs||0},m={onSuccess:(_,A,B,Q)=>{this.log(`Loaded steering manifest: "${n}"`);const V=_.data;if(V.VERSION!==1){this.log(`Steering VERSION ${V.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=V.TTL;const{"RELOAD-URI":le,"PATHWAY-CLONES":me,"PATHWAY-PRIORITY":ze}=V;if(le)try{this.uri=new self.URL(le,n).href}catch(nt){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${le}`);return}this.scheduleRefresh(this.uri||B.url),me&&this.clonePathways(me);const it={steeringManifest:V,url:n.toString()};this.hls.trigger(h.STEERING_MANIFEST_LOADED,it),ze&&this.updatePathwayPriority(ze)},onError:(_,A,B,Q)=>{if(this.log(`Error loading steering manifest: ${_.code} ${_.text} (${A.url})`),this.stopLoad(),_.code===410){this.enabled=!1,this.log(`Steering manifest ${A.url} no longer available`);return}let V=this.timeToLoad*1e3;if(_.code===429){const le=this.loader;if(typeof(le==null?void 0:le.getResponseHeader)=="function"){const me=le.getResponseHeader("Retry-After");me&&(V=parseFloat(me)*1e3)}this.log(`Steering manifest ${A.url} rate limited`);return}this.scheduleRefresh(this.uri||A.url,V)},onTimeout:(_,A,B)=>{this.log(`Timeout loading steering manifest (${A.url})`),this.scheduleRefresh(this.uri||A.url)}};this.log(`Requesting steering manifest: ${n}`),this.loader.load(i,f,m)}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 $o(a,e,t,r){a&&Object.keys(e).forEach(n=>{const i=a.filter(s=>s.groupId===n).map(s=>{const u=o({},s);return u.details=void 0,u.attrs=new ee(u.attrs),u.url=u.attrs.URI=Go(s.url,s.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",t),u.groupId=u.attrs["GROUP-ID"]=e[n],u.attrs["PATHWAY-ID"]=r,u});a.push(...i)})}function Go(a,e,t,r){const{HOST:n,PARAMS:i,[t]:s}=r;let u;e&&(u=s==null?void 0:s[e],u&&(a=u));const f=new self.URL(a);return n&&!u&&(f.host=n),i&&Object.keys(i).sort().forEach(m=>{m&&f.searchParams.set(m,i[m])}),f.href}const eu=/^age:\s*[\d.]+\s*$/im;class Ho{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 Ne,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=>{this.callbacks.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 u in n)e.setRequestHeader(u,n[u]);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&&z(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 s=t.status,u=t.responseType==="text"?t.responseText:null;if(s>=200&&s<300){const A=u!=null?u:t.response;if(A!=null){r.loading.end=Math.max(self.performance.now(),r.loading.first);const B=t.responseType==="arraybuffer"?A.byteLength:A.length;if(r.loaded=r.total=B,r.bwEstimate=r.total*8e3/(r.loading.end-r.loading.first),!this.callbacks)return;const Q=this.callbacks.onProgress;if(Q&&Q(r,e,A,t),!this.callbacks)return;const V={url:t.responseURL,data:A,code:s};this.callbacks.onSuccess(V,r,e,t);return}}const f=i.loadPolicy.errorRetry,m=r.retry,_={url:e.url,data:void 0,code:s};kn(f,m,!1,_)?this.retry(f):(w.error(`${s} while loading ${e.url}`),this.callbacks.onError({code:s,text:t.statusText},e,t,r))}}loadtimeout(){if(!this.config)return;const e=this.config.loadPolicy.timeoutRetry,t=this.stats.retry;if(kn(e,t,!0))this.retry(e);else{var r;w.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=Wn(e,r.retry),r.retry++,w.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&&eu.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}}function tu(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(a){}return!1}const ru=/(\d+)-(\d+)\/(\d+)/;class jo{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||au,this.controller=new self.AbortController,this.stats=new Ne}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=nu(e,this.controller.signal),s=r.onProgress,u=e.responseType==="arraybuffer",f=u?"byteLength":"length",{maxTimeToFirstByteMs:m,maxLoadTimeMs:_}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=r,this.request=this.fetchSetup(e,i),self.clearTimeout(this.requestTimeout),t.timeout=m&&z(m)?m:_,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),r.onTimeout(n,e,this.response)},t.timeout),self.fetch(this.request).then(A=>{this.response=this.loader=A;const B=Math.max(self.performance.now(),n.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=_,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),r.onTimeout(n,e,this.response)},_-(B-n.loading.start)),!A.ok){const{status:Q,statusText:V}=A;throw new ou(V||"fetch, bad network response",Q,A)}return n.loading.first=B,n.total=su(A.headers)||n.total,s&&z(t.highWaterMark)?this.loadProgressively(A,n,e,t.highWaterMark,s):u?A.arrayBuffer():e.responseType==="json"?A.json():A.text()}).then(A=>{const B=this.response;if(!B)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),n.loading.end=Math.max(self.performance.now(),n.loading.first);const Q=A[f];Q&&(n.loaded=n.total=Q);const V={url:B.url,data:A,code:B.status};s&&!z(t.highWaterMark)&&s(n,e,A,B),r.onSuccess(V,n,e,B)}).catch(A=>{if(self.clearTimeout(this.requestTimeout),n.aborted)return;const B=A&&A.code||0,Q=A?A.message:null;r.onError({code:B,text:Q},e,A?A.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 ta,u=e.body.getReader(),f=()=>u.read().then(m=>{if(m.done)return s.dataLength&&i(t,r,s.flush(),e),Promise.resolve(new ArrayBuffer(0));const _=m.value,A=_.length;return t.loaded+=A,A<n||s.dataLength?(s.push(_),s.dataLength>=n&&i(t,r,s.flush(),e)):i(t,r,_,e),f()}).catch(()=>Promise.reject());return f()}}function nu(a,e){const t={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(o({},a.headers))};return a.rangeEnd&&t.headers.set("Range","bytes="+a.rangeStart+"-"+String(a.rangeEnd-1)),t}function iu(a){const e=ru.exec(a);if(e)return parseInt(e[2])-parseInt(e[1])+1}function su(a){const e=a.get("Content-Range");if(e){const r=iu(e);if(z(r))return r}const t=a.get("Content-Length");if(t)return parseInt(t)}function au(a,e){return new self.Request(a.url,e)}class ou extends Error{constructor(e,t,r){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=r}}const lu=/\s/,uu={newCue(a,e,t,r){const n=[];let i,s,u,f,m;const _=self.VTTCue||self.TextTrackCue;for(let B=0;B<r.rows.length;B++)if(i=r.rows[B],u=!0,f=0,m="",!i.isEmpty()){var A;for(let le=0;le<i.chars.length;le++)lu.test(i.chars[le].uchar)&&u?f++:(m+=i.chars[le].uchar,u=!1);i.cueStartTime=e,e===t&&(t+=1e-4),f>=16?f--:f++;const Q=Eo(m.trim()),V=oo(e,t,Q);a!=null&&(A=a.cues)!=null&&A.getCueById(V)||(s=new _(e,t,Q),s.id=V,s.line=B+1,s.align="left",s.position=10+Math.min(80,Math.floor(f*8/32)*10),n.push(s))}return a&&n.length&&(n.sort((B,Q)=>B.line==="auto"||Q.line==="auto"?0:B.line>8&&Q.line>8?Q.line-B.line:B.line-Q.line),n.forEach(B=>Mn(a,B))),n}},cu={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},Ko=pe(pe({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,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,loader:Ho,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:ss,bufferController:Ci,capLevelController:fo,errorController:An,fpsController:ml,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:kt,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,useMediaCapabilities:!0,certLoadPolicy:{default:cu},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}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},hu()),{},{subtitleStreamController:Dn,subtitleTrackController:si,timelineController:fl,audioStreamController:xr,audioTrackController:dn,emeController:Ys,cmcdController:ql,contentSteeringController:Ql});function hu(){return{cueHandler:uu,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 du(a,e){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 t=_o(a),r=["manifest","level","frag"],n=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return r.forEach(i=>{const s=`${i==="level"?"playlist":i}LoadPolicy`,u=e[s]===void 0,f=[];n.forEach(m=>{const _=`${i}Loading${m}`,A=e[_];if(A!==void 0&&u){f.push(_);const B=t[s].default;switch(e[s]={default:B},m){case"TimeOut":B.maxLoadTimeMs=A,B.maxTimeToFirstByteMs=A;break;case"MaxRetry":B.errorRetry.maxNumRetry=A,B.timeoutRetry.maxNumRetry=A;break;case"RetryDelay":B.errorRetry.retryDelayMs=A,B.timeoutRetry.retryDelayMs=A;break;case"MaxRetryTimeout":B.errorRetry.maxRetryDelayMs=A,B.timeoutRetry.maxRetryDelayMs=A;break}}}),f.length&&w.warn(`hls.js config: "${f.join('", "')}" setting(s) are deprecated, use "${s}": ${JSON.stringify(e[s])}`)}),pe(pe({},t),e)}function _o(a){return a&&typeof a=="object"?Array.isArray(a)?a.map(_o):Object.keys(a).reduce((e,t)=>(e[t]=_o(a[t]),e),{}):a}function fu(a){const e=a.loader;e!==jo&&e!==Ho?(w.log("[config]: Custom loader detected, cannot enable progressive streaming"),a.progressive=!1):tu()&&(a.loader=jo,a.progressive=!0,a.enableSoftwareAES=!0,w.log("[config]: Progressive streaming enabled, using FetchLoader"))}let yo;class pu extends Gr{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(h.MANIFEST_LOADING,this.onManifestLoading,this),e.on(h.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(h.LEVEL_LOADED,this.onLevelLoaded,this),e.on(h.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(h.FRAG_BUFFERED,this.onFragBuffered,this),e.on(h.ERROR,this.onError,this)}_unregisterListeners(){const{hls:e}=this;e.off(h.MANIFEST_LOADING,this.onManifestLoading,this),e.off(h.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(h.LEVEL_LOADED,this.onLevelLoaded,this),e.off(h.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(h.FRAG_BUFFERED,this.onFragBuffered,this),e.off(h.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 u=!1,f=!1,m=!1;t.levels.forEach(_=>{var A,B;const Q=_.attrs;let{audioCodec:V,videoCodec:le}=_;((A=V)==null?void 0:A.indexOf("mp4a.40.34"))!==-1&&(yo||(yo=/chrome|firefox/i.test(navigator.userAgent)),yo&&(_.audioCodec=V=void 0)),V&&(_.audioCodec=V=tr(V,r)),((B=le)==null?void 0:B.indexOf("avc1"))===0&&(le=_.videoCodec=vr(le));const{width:me,height:ze,unknownCodecs:it}=_;if(u||(u=!!(me&&ze)),f||(f=!!le),m||(m=!!V),it!=null&&it.length||V&&!tt(V,"audio",r)||le&&!tt(le,"video",r))return;const{CODECS:nt,"FRAME-RATE":_t,"HDCP-LEVEL":ot,"PATHWAY-ID":Ot,RESOLUTION:vt,"VIDEO-RANGE":$t}=Q,It=`${`${Ot||"."}-`}${_.bitrate}-${vt}-${_t}-${nt}-${$t}-${ot}`;if(i[It])if(i[It].uri!==_.url&&!_.attrs["PATHWAY-ID"]){const Gt=s[It]+=1;_.attrs["PATHWAY-ID"]=new Array(Gt+1).join(".");const kr=new Hn(_);i[It]=kr,n.push(kr)}else i[It].addGroupId("audio",Q.AUDIO),i[It].addGroupId("text",Q.SUBTITLES);else{const Gt=new Hn(_);i[It]=Gt,s[It]=1,n.push(Gt)}}),this.filterAndSortMediaOptions(n,t,u,f,m)}filterAndSortMediaOptions(e,t,r,n,i){let s=[],u=[],f=e;if((r||n)&&i&&(f=f.filter(({videoCodec:V,videoRange:le,width:me,height:ze})=>(!!V||!!(me&&ze))&&en(le))),f.length===0){Promise.resolve().then(()=>{if(this.hls){t.levels.length&&this.warn(`One or more CODECS in variant not supported: ${JSON.stringify(t.levels[0].attrs)}`);const V=new Error("no level with compatible codecs found in manifest");this.hls.trigger(h.ERROR,{type:E.MEDIA_ERROR,details:b.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:V,reason:V.message})}});return}if(t.audioTracks){const{preferManagedMediaSource:V}=this.hls.config;s=t.audioTracks.filter(le=>!le.audioCodec||tt(le.audioCodec,"audio",V)),Wo(s)}t.subtitles&&(u=t.subtitles,Wo(u));const m=f.slice(0);f.sort((V,le)=>{if(V.attrs["HDCP-LEVEL"]!==le.attrs["HDCP-LEVEL"])return(V.attrs["HDCP-LEVEL"]||"")>(le.attrs["HDCP-LEVEL"]||"")?1:-1;if(r&&V.height!==le.height)return V.height-le.height;if(V.frameRate!==le.frameRate)return V.frameRate-le.frameRate;if(V.videoRange!==le.videoRange)return In.indexOf(V.videoRange)-In.indexOf(le.videoRange);if(V.videoCodec!==le.videoCodec){const me=At(V.videoCodec),ze=At(le.videoCodec);if(me!==ze)return ze-me}if(V.uri===le.uri&&V.codecSet!==le.codecSet){const me=ut(V.codecSet),ze=ut(le.codecSet);if(me!==ze)return ze-me}return V.averageBitrate!==le.averageBitrate?V.averageBitrate-le.averageBitrate:0});let _=m[0];if(this.steering&&(f=this.steering.filterParsedLevels(f),f.length!==m.length)){for(let V=0;V<m.length;V++)if(m[V].pathwayId===f[0].pathwayId){_=m[V];break}}this._levels=f;for(let V=0;V<f.length;V++)if(f[V]===_){var A;this._firstLevel=V;const le=_.bitrate,me=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${f.length} level(s) found, first bitrate: ${le}`),((A=this.hls.userConfig)==null?void 0:A.abrEwmaDefaultEstimate)===void 0){const ze=Math.min(le,this.hls.config.abrEwmaDefaultEstimateMax);ze>me&&me===Ko.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=ze)}break}const B=i&&!n,Q={levels:f,audioTracks:s,subtitleTracks:u,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:i,video:n,altAudio:!B&&s.some(V=>!!V.url)};this.hls.trigger(h.MANIFEST_PARSED,Q),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}get levels(){return this._levels.length===0?null:this._levels}get level(){return this.currentLevelIndex}set level(e){const t=this._levels;if(t.length===0)return;if(e<0||e>=t.length){const _=new Error("invalid level idx"),A=e<0;if(this.hls.trigger(h.ERROR,{type:E.OTHER_ERROR,details:b.LEVEL_SWITCH_ERROR,level:e,fatal:A,error:_,reason:_.message}),A)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],u=s.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=s,r===e&&s.details&&n&&i===u)return;this.log(`Switching to level ${e} (${s.height?s.height+"p ":""}${s.videoRange?s.videoRange+" ":""}${s.codecSet?s.codecSet+" ":""}@${s.bitrate})${u?" with Pathway "+u:""} from level ${r}${i?" with Pathway "+i:""}`);const f={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(h.LEVEL_SWITCHING,f);const m=s.details;if(!m||m.live){const _=this.switchParams(s.uri,n==null?void 0:n.details,m);this.loadPlaylist(_)}}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}onError(e,t){t.fatal||!t.context||t.context.type===dr.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t!==void 0&&t.type===He.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=this._levels[n];if(!s){var u;this.warn(`Invalid level index ${n}`),(u=t.deliveryDirectives)!=null&&u.skip&&(i.deltaUpdateFailed=!0);return}n===this.currentLevelIndex?(s.fragmentError===0&&(s.loadError=0),this.playlistLoaded(n,t,s.details)):(r=t.deliveryDirectives)!=null&&r.skip&&(i.deltaUpdateFailed=!0)}loadPlaylist(e){super.loadPlaylist();const t=this.currentLevelIndex,r=this.currentLevel;if(r&&this.shouldLoadPlaylist(r)){let n=r.uri;if(e)try{n=e.addDirectives(n)}catch(s){this.warn(`Could not construct new URL with HLS Delivery Directives: ${s}`)}const i=r.attrs["PATHWAY-ID"];this.log(`Loading level index ${t}${(e==null?void 0:e.msn)!==void 0?" at sn "+e.msn+" part "+e.part:""} with${i?" Pathway "+i:""} ${n}`),this.clearTimer(),this.hls.trigger(h.LEVEL_LOADING,{url:n,level:t,pathwayId:r.attrs["PATHWAY-ID"],id:0,deliveryDirectives:e||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;const r=this._levels.filter((n,i)=>i!==e?!0:(this.steering&&this.steering.removeLevel(n),n===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,n.details&&n.details.fragments.forEach(s=>s.level=-1)),!1));vn(r),this._levels=r,this.currentLevelIndex>-1&&(t=this.currentLevel)!=null&&t.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.hls.trigger(h.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(h.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:t,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:r}))}}function Wo(a){const e={};a.forEach(t=>{const r=t.groupId||"";t.id=e[r]=e[r]||0,e[r]++})}class mu{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=b.KEY_LOAD_ERROR,r,n,i){return new On({type:E.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(u=>{s.setKeyFormat(u)});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 m=new Error(t?`Expected frag.decryptdata to be defined after setting format ${t}`:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(e,b.KEY_LOAD_ERROR,m))}const s=i.uri;if(!s)return Promise.reject(this.createKeyLoadError(e,b.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${s}"`)));let u=this.keyUriToKeyInfo[s];if((r=u)!=null&&r.decryptdata.key)return i.key=u.decryptdata.key,Promise.resolve({frag:e,keyInfo:u});if((n=u)!=null&&n.keyLoadPromise){var f;switch((f=u.mediaKeySessionContext)==null?void 0:f.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return u.keyLoadPromise.then(m=>(i.key=m.keyInfo.decryptdata.key,{frag:e,keyInfo:u}))}}switch(u=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(u,e):this.loadKeyEME(u,e);case"AES-128":return this.loadKeyHTTP(u,e);default:return Promise.reject(this.createKeyLoadError(e,b.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${i.method}"`)))}}loadKeyEME(e,t){const 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,u)=>{const f={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},m=r.keyLoadPolicy.default,_={loadPolicy:m,timeout:m.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},A={onSuccess:(B,Q,V,le)=>{const{frag:me,keyInfo:ze,url:it}=V;if(!me.decryptdata||ze!==this.keyUriToKeyInfo[it])return u(this.createKeyLoadError(me,b.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),le));ze.decryptdata.key=me.decryptdata.key=new Uint8Array(B.data),me.keyLoader=null,ze.loader=null,s({frag:me,keyInfo:ze})},onError:(B,Q,V,le)=>{this.resetLoader(Q),u(this.createKeyLoadError(t,b.KEY_LOAD_ERROR,new Error(`HTTP Error ${B.code} loading key ${B.text}`),V,pe({url:f.url,data:void 0},B)))},onTimeout:(B,Q,V)=>{this.resetLoader(Q),u(this.createKeyLoadError(t,b.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),V))},onAbort:(B,Q,V)=>{this.resetLoader(Q),u(this.createKeyLoadError(t,b.INTERNAL_ABORTED,new Error("key loading aborted"),V))}};i.load(f,_,A)})}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 Vo(){return self.SourceBuffer||self.WebKitSourceBuffer}function Zo(){if(!nn())return!1;const e=Vo();return!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function"}function gu(){if(!Zo())return!1;const a=nn();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(dt(e,"video")))||["mp4a.40.2","fLaC"].some(e=>a.isTypeSupported(dt(e,"audio"))))}function vu(){var a;const e=Vo();return typeof(e==null||(a=e.prototype)==null?void 0:a.changeType)=="function"}const _u=250,Ga=2,yu=.1,bu=.05;class xu{constructor(e,t,r,n){this.config=void 0,this.media=null,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=e,this.media=t,this.fragmentTracker=r,this.hls=n}destroy(){this.media=null,this.hls=this.fragmentTracker=null}poll(e,t){const{config:r,media:n,stalled:i}=this;if(n===null)return;const{currentTime:s,seeking:u}=n,f=this.seeking&&!u,m=!this.seeking&&u;if(this.seeking=u,s!==e){if(this.moved=!0,u||(this.nudgeRetry=0),i!==null){if(this.stallReported){const me=self.performance.now()-i;w.warn(`playback not stuck anymore @${s}, after ${Math.round(me)}ms`),this.stallReported=!1}this.stalled=null}return}if(m||f){this.stalled=null;return}if(n.paused&&!u||n.ended||n.playbackRate===0||!an.getBuffered(n).length){this.nudgeRetry=0;return}const _=an.bufferInfo(n,s,0),A=_.nextStart||0;if(u){const me=_.len>Ga,ze=!A||t&&t.start<=s||A-s>Ga&&!this.fragmentTracker.getPartialFragment(s);if(me||ze)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var B;if(!(_.len>0)&&!A)return;const ze=Math.max(A,_.start||0)-s,it=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,_t=(it==null||(B=it.details)==null?void 0:B.live)?it.details.targetduration*2:Ga,ot=this.fragmentTracker.getPartialFragment(s);if(ze>0&&(ze<=_t||ot)){n.paused||this._trySkipBufferHole(ot);return}}const Q=self.performance.now();if(i===null){this.stalled=Q;return}const V=Q-i;if(!u&&V>=_u&&(this._reportStall(_),!this.media))return;const le=an.bufferInfo(n,s,r.maxBufferHole);this._tryFixBufferStall(le,V)}_tryFixBufferStall(e,t){const{config:r,fragmentTracker:n,media:i}=this;if(i===null)return;const s=i.currentTime,u=n.getPartialFragment(s);u&&(this._trySkipBufferHole(u)||!this.media)||(e.len>r.maxBufferHole||e.nextStart&&e.nextStart-s<r.maxBufferHole)&&t>r.highBufferWatchdogPeriod*1e3&&(w.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}_reportStall(e){const{hls:t,media:r,stallReported:n}=this;if(!n&&r){this.stallReported=!0;const i=new Error(`Playback stalling at @${r.currentTime} due to low buffer (${JSON.stringify(e)})`);w.warn(i.message),t.trigger(h.ERROR,{type:E.MEDIA_ERROR,details:b.BUFFER_STALLED_ERROR,fatal:!1,error:i,buffer:e.len})}}_trySkipBufferHole(e){const{config:t,hls:r,media:n}=this;if(n===null)return 0;const i=n.currentTime,s=an.bufferInfo(n,i,0),u=i<s.start?s.start:s.nextStart;if(u){const f=s.len<=t.maxBufferHole,m=s.len>0&&s.len<1&&n.readyState<3,_=u-i;if(_>0&&(f||m)){if(_>t.maxBufferHole){const{fragmentTracker:B}=this;let Q=!1;if(i===0){const V=B.getAppendedFrag(0,He.MAIN);V&&u<V.end&&(Q=!0)}if(!Q){const V=e||B.getAppendedFrag(i,He.MAIN);if(V){let le=!1,me=V.end;for(;me<u;){const ze=B.getPartialFragment(me);if(ze)me+=ze.duration;else{le=!0;break}}if(le)return 0}}}const A=Math.max(u+bu,i+yu);if(w.warn(`skipping hole, adjusting currentTime from ${i} to ${A}`),this.moved=!0,this.stalled=null,n.currentTime=A,e&&!e.gap){const B=new Error(`fragment loaded with buffer holes, seeking from ${i} to ${A}`);r.trigger(h.ERROR,{type:E.MEDIA_ERROR,details:b.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:B,reason:B.message,frag:e})}return A}}return 0}_tryNudgeBuffer(){const{config:e,hls:t,media:r,nudgeRetry:n}=this;if(r===null)return;const i=r.currentTime;if(this.nudgeRetry++,n<e.nudgeMaxRetry){const s=i+(n+1)*e.nudgeOffset,u=new Error(`Nudging 'currentTime' from ${i} to ${s}`);w.warn(u.message),r.currentTime=s,t.trigger(h.ERROR,{type:E.MEDIA_ERROR,details:b.BUFFER_NUDGE_ON_STALL,error:u,fatal:!1})}else{const s=new Error(`Playhead still not moving while enough data buffered @${i} after ${e.nudgeMaxRetry} nudges`);w.error(s.message),t.trigger(h.ERROR,{type:E.MEDIA_ERROR,details:b.BUFFER_STALLED_ERROR,error:s,fatal:!0})}}}const wu=100;class Eu extends cs{constructor(e,t,r){super(e,t,r,"[stream-controller]",He.MAIN),this.audioCodecSwap=!1,this.gapController=null,this.level=-1,this._forceStartLoad=!1,this.altAudio=!1,this.audioOnly=!1,this.fragPlaying=null,this.onvplaying=null,this.onvseeked=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(h.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(h.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(h.MANIFEST_LOADING,this.onManifestLoading,this),e.on(h.MANIFEST_PARSED,this.onManifestParsed,this),e.on(h.LEVEL_LOADING,this.onLevelLoading,this),e.on(h.LEVEL_LOADED,this.onLevelLoaded,this),e.on(h.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(h.ERROR,this.onError,this),e.on(h.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(h.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(h.BUFFER_CREATED,this.onBufferCreated,this),e.on(h.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(h.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(h.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(h.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(h.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(h.MANIFEST_LOADING,this.onManifestLoading,this),e.off(h.MANIFEST_PARSED,this.onManifestParsed,this),e.off(h.LEVEL_LOADED,this.onLevelLoaded,this),e.off(h.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(h.ERROR,this.onError,this),e.off(h.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(h.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(h.BUFFER_CREATED,this.onBufferCreated,this),e.off(h.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(h.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(h.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying()}startLoad(e){if(this.levels){const{lastCurrentTime:t,hls:r}=this;if(this.stopLoad(),this.setInterval(wu),this.level=-1,!this.startFragRequested){let n=r.startLevel;n===-1&&(r.config.testBandwidth&&this.levels.length>1?(n=0,this.bitrateTest=!0):n=r.firstAutoLevel),r.nextLoadLevel=n,this.level=r.loadLevel,this.loadedmetadata=!1}t>0&&e===-1&&(this.log(`Override startPosition with lastCurrentTime @${t.toFixed(3)}`),e=t),this.state=Dt.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}else this._forceStartLoad=!0,this.state=Dt.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case Dt.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)){if(this.waitForCdnTuneIn(i))break;this.state=Dt.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=Dt.IDLE;break}break}case Dt.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=Dt.IDLE}}break}this.state===Dt.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){super.onTickEnd(),this.checkBuffer(),this.checkFragmentChanged()}doTickIdle(){const{hls:e,levelLastLoaded:t,levels:r,media:n}=this;if(t===null||!n&&(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],u=this.getMainFwdBufferInfo();if(u===null)return;const f=this.getLevelDetails();if(f&&this._streamEnded(u,f)){const le={};this.altAudio&&(le.type="video"),this.hls.trigger(h.BUFFER_EOS,le),this.state=Dt.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 m=s.details;if(!m||this.state===Dt.WAITING_LEVEL||m.live&&this.levelLastLoaded!==s){this.level=i,this.state=Dt.WAITING_LEVEL;return}const _=u.len,A=this.getMaxBufferLength(s.maxBitrate);if(_>=A)return;this.backtrackFragment&&this.backtrackFragment.start>u.end&&(this.backtrackFragment=null);const B=this.backtrackFragment?this.backtrackFragment.start:u.end;let Q=this.getNextFragment(B,m);if(this.couldBacktrack&&!this.fragPrevious&&Q&&Q.sn!=="initSegment"&&this.fragmentTracker.getState(Q)!==Un.OK){var V;const me=((V=this.backtrackFragment)!=null?V:Q).sn-m.startSN,ze=m.fragments[me-1];ze&&Q.cc===ze.cc&&(Q=ze,this.fragmentTracker.removeFragment(ze))}else this.backtrackFragment&&u.len&&(this.backtrackFragment=null);if(Q&&this.isLoopLoading(Q,B)){if(!Q.gap){const me=this.audioOnly&&!this.altAudio?W.AUDIO:W.VIDEO,ze=(me===W.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;ze&&this.afterBufferFlushed(ze,me,He.MAIN)}Q=this.getNextFragmentLoopLoading(Q,m,u,He.MAIN,A)}Q&&(Q.initSegment&&!Q.initSegment.data&&!this.bitrateTest&&(Q=Q.initSegment),this.loadFragment(Q,s,B))}loadFragment(e,t,r){const n=this.fragmentTracker.getState(e);this.fragCurrent=e,n===Un.NOT_LOADED||n===Un.PARTIAL?e.sn==="initSegment"?this._loadInitSegment(e,t):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)):(this.startFragRequested=!0,super.loadFragment(e,t,r)):this.clearTrackerIfNeeded(e)}getBufferedFrag(e){return this.fragmentTracker.getBufferedFrag(e,He.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 u=this.getMainFwdBufferInfo();if(!u||u.len<i.targetduration*2)return}if(!t.paused&&e){const u=this.hls.nextLoadLevel,f=e[u],m=this.fragLastKbps;m&&this.fragCurrent?r=this.fragCurrent.duration*f.maxBitrate/(1e3*m)+1:r=0}else r=0;const s=this.getBufferedFrag(t.currentTime+r);if(s){const u=this.followingBufferedFrag(s);if(u){this.abortCurrentFrag();const f=u.maxStartPTS?u.maxStartPTS:u.start,m=u.duration,_=Math.max(s.end,f+Math.min(Math.max(m-this.config.maxFragLookUpTolerance,m*(this.couldBacktrack?.5:.125)),m*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(_,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 Dt.KEY_LOADING:case Dt.FRAG_LOADING:case Dt.FRAG_LOADING_WAITING_RETRY:case Dt.PARSING:case Dt.PARSED:this.state=Dt.IDLE;break}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(e,t){super.flushMainBuffer(e,t,this.altAudio?"video":null)}onMediaAttached(e,t){super.onMediaAttached(e,t);const r=t.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),r.addEventListener("playing",this.onvplaying),r.addEventListener("seeked",this.onvseeked),this.gapController=new xu(this.config,r,this.fragmentTracker,this.hls)}onMediaDetaching(){const{media:e}=this;e&&this.onvplaying&&this.onvseeked&&(e.removeEventListener("playing",this.onvplaying),e.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),super.onMediaDetaching()}onMediaPlaying(){this.tick()}onMediaSeeked(){const e=this.media,t=e?e.currentTime:null;z(t)&&this.log(`Media seeked to ${t.toFixed(3)}`);const r=this.getMainFwdBufferInfo();if(r===null||r.len===0){this.warn(`Main forward buffer length on "seeked" event ${r?r.len:"empty"})`);return}this.tick()}onManifestLoading(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(h.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=!1,this.startPosition=this.lastCurrentTime=this.fragLastKbps=0,this.levels=this.fragPlaying=this.backtrackFragment=this.levelLastLoaded=null,this.altAudio=this.audioOnly=this.startFragRequested=!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&&!vu(),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!==Dt.IDLE)return;const n=r[t.level];(!n.details||n.details.live&&this.levelLastLoaded!==n||this.waitForCdnTuneIn(n.details))&&(this.state=Dt.WAITING_LEVEL)}onLevelLoaded(e,t){var r;const{levels:n}=this,i=t.level,s=t.details,u=s.totalduration;if(!n){this.warn(`Levels were reset while loading level ${i}`);return}this.log(`Level ${i} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""}, cc [${s.startCC}, ${s.endCC}] duration:${u}`);const f=n[i],m=this.fragCurrent;m&&(this.state===Dt.FRAG_LOADING||this.state===Dt.FRAG_LOADING_WAITING_RETRY)&&m.level!==t.level&&m.loader&&this.abortCurrentFrag();let _=0;if(s.live||(r=f.details)!=null&&r.live){var A;if(this.checkLiveUpdate(s),s.deltaUpdateFailed)return;_=this.alignPlaylists(s,f.details,(A=this.levelLastLoaded)==null?void 0:A.details)}if(f.details=s,this.levelLastLoaded=f,this.hls.trigger(h.LEVEL_UPDATED,{details:s,level:i}),this.state===Dt.WAITING_LEVEL){if(this.waitForCdnTuneIn(s))return;this.state=Dt.IDLE}this.startFragRequested?s.live&&this.synchronizeToLiveEdge(s):this.setStartPosition(s,_),this.tick()}_handleFragmentLoadProgress(e){var t;const{frag:r,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 u=s[r.level],f=u.details;if(!f){this.warn(`Dropping fragment ${r.sn} of level ${r.level} after level details were reset`),this.fragmentTracker.removeFragment(r);return}const m=u.videoCodec,_=f.PTSKnown||!f.live,A=(t=r.initSegment)==null?void 0:t.data,B=this._getAudioCodec(u),Q=this.transmuxer=this.transmuxer||new Wt(this.hls,He.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),V=n?n.index:-1,le=V!==-1,me=new as(r.level,r.sn,r.stats.chunkCount,i.byteLength,V,le),ze=this.initPTS[r.cc];Q.push(i,A,B,m,r,n,f.totalduration,_,me,ze)}onAudioTrackSwitching(e,t){const r=this.altAudio;if(!!!t.url){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();const i=this.hls;r&&(i.trigger(h.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),i.trigger(h.AUDIO_TRACK_SWITCHED,t)}}onAudioTrackSwitched(e,t){const r=t.id,n=!!this.hls.audioTracks[r].url;if(n){const i=this.videoBuffer;i&&this.mediaBuffer!==i&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=i)}this.altAudio=n,this.tick()}onBufferCreated(e,t){const r=t.tracks;let n,i,s=!1;for(const u in r){const f=r[u];if(f.id==="main"){if(i=u,n=f,u==="video"){const m=r[u];m&&(this.videoBuffer=m.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;if(r&&r.type!==He.MAIN)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}`),this.state===Dt.PARSED&&(this.state=Dt.IDLE);return}const i=n?n.stats:r.stats;this.fragLastKbps=Math.round(8*i.total/(i.buffering.end-i.loading.first)),r.sn!=="initSegment"&&(this.fragPrevious=r),this.fragBufferedComplete(r,n)}onError(e,t){var r;if(t.fatal){this.state=Dt.ERROR;return}switch(t.details){case b.FRAG_GAP:case b.FRAG_PARSING_ERROR:case b.FRAG_DECRYPT_ERROR:case b.FRAG_LOAD_ERROR:case b.FRAG_LOAD_TIMEOUT:case b.KEY_LOAD_ERROR:case b.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(He.MAIN,t);break;case b.LEVEL_LOAD_ERROR:case b.LEVEL_LOAD_TIMEOUT:case b.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===Dt.WAITING_LEVEL&&((r=t.context)==null?void 0:r.type)===dr.LEVEL&&(this.state=Dt.IDLE);break;case b.BUFFER_APPEND_ERROR:case b.BUFFER_FULL_ERROR:if(!t.parent||t.parent!=="main")return;if(t.details===b.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(t)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case b.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}checkBuffer(){const{media:e,gapController:t}=this;if(!(!e||!t||!e.readyState)){if(this.loadedmetadata||!an.getBuffered(e).length){const r=this.state!==Dt.IDLE?this.fragCurrent:null;t.poll(this.lastCurrentTime,r)}this.lastCurrentTime=e.currentTime}}onFragLoadEmergencyAborted(){this.state=Dt.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==W.AUDIO||this.audioOnly&&!this.altAudio){const r=(t===W.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(r,t,He.MAIN),this.tick()}}onLevelsUpdated(e,t){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level),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=an.getBuffered(e),s=(n.length?n.start(0):0)-r;s>0&&(s<this.config.maxBufferHole||s<this.config.maxFragLookUpTolerance)&&(this.log(`adjusting start position by ${s} to match buffer start`),r+=s,this.startPosition=r),this.log(`seek to target start position ${r} from current time ${t}`),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;if(!r||this.fragContextChanged(e))return;t.fragmentError=0,this.state=Dt.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const i=e.stats;i.parsing.start=i.parsing.end=i.buffering.start=i.buffering.end=self.performance.now(),n.trigger(h.FRAG_LOADED,r),e.bitrateTest=!1})}_handleTransmuxComplete(e){var t;const r="main",{hls:n}=this,{remuxResult:i,chunkMeta:s}=e,u=this.getCurrentContext(s);if(!u){this.resetWhenMissingContext(s);return}const{frag:f,part:m,level:_}=u,{video:A,text:B,id3:Q,initSegment:V}=i,{details:le}=_,me=this.altAudio?void 0:i.audio;if(this.fragContextChanged(f)){this.fragmentTracker.removeFragment(f);return}if(this.state=Dt.PARSING,V){if(V!=null&&V.tracks){const nt=f.initSegment||f;this._bufferInitSegment(_,V.tracks,nt,s),n.trigger(h.FRAG_PARSING_INIT_SEGMENT,{frag:nt,id:r,tracks:V.tracks})}const ze=V.initPTS,it=V.timescale;z(ze)&&(this.initPTS[f.cc]={baseTime:ze,timescale:it},n.trigger(h.INIT_PTS_FOUND,{frag:f,id:r,initPTS:ze,timescale:it}))}if(A&&le&&f.sn!=="initSegment"){const ze=le.fragments[f.sn-1-le.startSN],it=f.sn===le.startSN,nt=!ze||f.cc>ze.cc;if(i.independent!==!1){const{startPTS:_t,endPTS:ot,startDTS:Ot,endDTS:vt}=A;if(m)m.elementaryStreams[A.type]={startPTS:_t,endPTS:ot,startDTS:Ot,endDTS:vt};else if(A.firstKeyFrame&&A.independent&&s.id===1&&!nt&&(this.couldBacktrack=!0),A.dropped&&A.independent){const $t=this.getMainFwdBufferInfo(),Jt=($t?$t.end:this.getLoadPosition())+this.config.maxBufferHole,It=A.firstKeyFramePTS?A.firstKeyFramePTS:_t;if(!it&&Jt<It-this.config.maxBufferHole&&!nt){this.backtrack(f);return}else nt&&(f.gap=!0);f.setElementaryStreamInfo(A.type,f.start,ot,f.start,vt,!0)}else it&&_t>Ga&&(f.gap=!0);f.setElementaryStreamInfo(A.type,_t,ot,Ot,vt),this.backtrackFragment&&(this.backtrackFragment=f),this.bufferFragmentData(A,f,m,s,it||nt)}else if(it||nt)f.gap=!0;else{this.backtrack(f);return}}if(me){const{startPTS:ze,endPTS:it,startDTS:nt,endDTS:_t}=me;m&&(m.elementaryStreams[W.AUDIO]={startPTS:ze,endPTS:it,startDTS:nt,endDTS:_t}),f.setElementaryStreamInfo(W.AUDIO,ze,it,nt,_t),this.bufferFragmentData(me,f,m,s)}if(le&&Q!=null&&(t=Q.samples)!=null&&t.length){const ze={id:r,frag:f,details:le,samples:Q.samples};n.trigger(h.FRAG_PARSING_METADATA,ze)}if(le&&B){const ze={id:r,frag:f,details:le,samples:B.samples};n.trigger(h.FRAG_PARSING_USERDATA,ze)}}_bufferInitSegment(e,t,r,n){if(this.state!==Dt.PARSING)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&delete t.audio;const{audio:i,video:s,audiovideo:u}=t;if(i){let f=e.audioCodec;const m=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){f&&(f.indexOf("mp4a.40.5")!==-1?f="mp4a.40.2":f="mp4a.40.5");const _=i.metadata;_&&"channelCount"in _&&(_.channelCount||1)!==1&&m.indexOf("firefox")===-1&&(f="mp4a.40.5")}f&&f.indexOf("mp4a.40.5")!==-1&&m.indexOf("android")!==-1&&i.container!=="audio/mpeg"&&(f="mp4a.40.2",this.log(`Android: force audio codec to ${f}`)),e.audioCodec&&e.audioCodec!==f&&this.log(`Swapping manifest audio codec "${e.audioCodec}" for "${f}"`),i.levelCodec=f,i.id="main",this.log(`Init audio buffer, container:${i.container}, codecs[selected/level/parsed]=[${f||""}/${e.audioCodec||""}/${i.codec}]`)}s&&(s.levelCodec=e.videoCodec,s.id="main",this.log(`Init video buffer, container:${s.container}, codecs[level/parsed]=[${e.videoCodec||""}/${s.codec}]`)),u&&this.log(`Init audiovideo buffer, container:${u.container}, codecs[level/parsed]=[${e.codecs}/${u.codec}]`),this.hls.trigger(h.BUFFER_CODECS,t),Object.keys(t).forEach(f=>{const _=t[f].initSegment;_!=null&&_.byteLength&&this.hls.trigger(h.BUFFER_APPENDING,{type:f,data:_,frag:r,part:null,chunkMeta:n,parent:r.type})}),this.tickImmediate()}getMainFwdBufferInfo(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,He.MAIN)}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=Dt.IDLE}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&e.seeking===!1){const r=e.currentTime;if(an.isBuffered(e,r)?t=this.getAppendedFrag(r):an.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(h.FRAG_CHANGED,{frag:t}),(!n||n.level!==i)&&this.hls.trigger(h.LEVEL_SWITCHED,{level:i}))}}}get nextLevel(){const e=this.nextBufferedFrag;return e?e.level:-1}get currentFrag(){const e=this.media;return e?this.fragPlaying||this.getAppendedFrag(e.currentTime):null}get currentProgramDateTime(){const e=this.media;if(e){const t=e.currentTime,r=this.currentFrag;if(r&&z(t)&&z(r.programDateTime)){const n=r.programDateTime+(t-r.start)*1e3;return new Date(n)}}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 Cs{static get version(){return"1.5.20"}static isMSESupported(){return Zo()}static isSupported(){return gu()}static getMediaSource(){return nn()}static get Events(){return h}static get ErrorTypes(){return E}static get ErrorDetails(){return b}static get DefaultConfig(){return Cs.defaultConfig?Cs.defaultConfig:Ko}static set DefaultConfig(e){Cs.defaultConfig=e}constructor(e={}){this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this.started=!1,this._emitter=new Bt,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.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,this.triggeringException=void 0,ce(e.debug||!1,"Hls instance");const t=this.config=du(Cs.DefaultConfig,e);this.userConfig=e,t.progressive&&fu(t);const{abrController:r,bufferController:n,capLevelController:i,errorController:s,fpsController:u}=t,f=new s(this),m=this.abrController=new r(this),_=this.bufferController=new n(this),A=this.capLevelController=new i(this),B=new u(this),Q=new fn(this),V=new Rn(this),le=t.contentSteeringController,me=le?new le(this):null,ze=this.levelController=new pu(this,me),it=new Xi(this),nt=new mu(this.config),_t=this.streamController=new Eu(this,it,nt);A.setStreamController(_t),B.setStreamController(_t);const ot=[Q,ze,_t];me&&ot.splice(1,0,me),this.networkControllers=ot;const Ot=[m,_,A,B,V,it];this.audioTrackController=this.createController(t.audioTrackController,ot);const vt=t.audioStreamController;vt&&ot.push(new vt(this,it,nt)),this.subtitleTrackController=this.createController(t.subtitleTrackController,ot);const $t=t.subtitleStreamController;$t&&ot.push(new $t(this,it,nt)),this.createController(t.timelineController,Ot),nt.emeController=this.emeController=this.createController(t.emeController,Ot),this.cmcdController=this.createController(t.cmcdController,Ot),this.latencyController=this.createController(fi,Ot),this.coreComponents=Ot,ot.push(f);const Jt=f.onErrorOut;typeof Jt=="function"&&this.on(h.ERROR,Jt,f)}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(w.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===h.ERROR;this.trigger(h.ERROR,{type:E.OTHER_ERROR,details:b.INTERNAL_EXCEPTION,fatal:n,event:e,error:r}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){w.log("destroy"),this.trigger(h.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){w.log("attachMedia"),this._media=e,this.trigger(h.MEDIA_ATTACHING,{media:e})}detachMedia(){w.log("detachMedia"),this.trigger(h.MEDIA_DETACHING,void 0),this._media=null}loadSource(e){this.stopLoad();const t=this.media,r=this.url,n=this.url=Ee.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,w.log(`loadSource:${n}`),t&&r&&(r!==n||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(h.MANIFEST_LOADING,{url:e})}startLoad(e=-1){w.log(`startLoad(${e})`),this.started=!0,this.resumeBuffering();for(let t=0;t<this.networkControllers.length&&(this.networkControllers[t].startLoad(e),!(!this.started||!this.networkControllers));t++);}stopLoad(){w.log("stopLoad"),this.started=!1;for(let e=0;e<this.networkControllers.length&&(this.networkControllers[e].stopLoad(),!(this.started||!this.networkControllers));e++);}resumeBuffering(){w.log("resume buffering"),this.networkControllers.forEach(e=>{e.resumeBuffering&&e.resumeBuffering()})}pauseBuffering(){w.log("pause buffering"),this.networkControllers.forEach(e=>{e.pauseBuffering&&e.pauseBuffering()})}swapAudioCodec(){w.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){w.log("recoverMediaError");const e=this._media;this.detachMedia(),e&&this.attachMedia(e)}removeLevel(e){this.levelController.removeLevel(e)}get levels(){const e=this.levelController.levels;return e||[]}get currentLevel(){return this.streamController.currentLevel}set currentLevel(e){w.log(`set currentLevel:${e}`),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(e){w.log(`set nextLevel:${e}`),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(e){w.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){w.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){w.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 ttfbEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimateTTFB():NaN}set autoLevelCapping(e){this._autoLevelCapping!==e&&(w.log(`set autoLevelCapping:${e}`),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(e){mn(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()}setAudioOption(e){var t;return(t=this.audioTrackController)==null?void 0:t.setAudioOption(e)}setSubtitleOption(e){var t;return(t=this.subtitleTrackController)==null||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}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}}Cs.defaultConfig=void 0}}]);
}());