|
|
!(function(){var Lu=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[6309],{70557:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return re}});var O=p(72308),K=p(59301),q={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"},ce=q,A=p(7657),m=function(I,k){return K.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ce}))},w=K.forwardRef(m),re=w},27812:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return re}});var O=p(72308),K=p(59301),q={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"},ce=q,A=p(7657),m=function(I,k){return K.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ce}))},w=K.forwardRef(m),re=w},89489:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return re}});var O=p(72308),K=p(59301),q={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},ce=q,A=p(7657),m=function(I,k){return K.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ce}))},w=K.forwardRef(m),re=w},59477:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return re}});var O=p(72308),K=p(59301),q={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},ce=q,A=p(7657),m=function(I,k){return K.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ce}))},w=K.forwardRef(m),re=w},40001:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return re}});var O=p(72308),K=p(59301),q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},ce=q,A=p(7657),m=function(I,k){return K.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ce}))},w=K.forwardRef(m),re=w},49198:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return re}});var O=p(72308),K=p(59301),q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},ce=q,A=p(7657),m=function(I,k){return K.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ce}))},w=K.forwardRef(m),re=w},84105:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return re}});var O=p(72308),K=p(59301),q={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"},ce=q,A=p(7657),m=function(I,k){return K.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ce}))},w=K.forwardRef(m),re=w},18785:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return re}});var O=p(72308),K=p(59301),q={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"},ce=q,A=p(7657),m=function(I,k){return K.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ce}))},w=K.forwardRef(m),re=w},73331:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return re}});var O=p(72308),K=p(59301),q={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"},ce=q,A=p(7657),m=function(I,k){return K.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ce}))},w=K.forwardRef(m),re=w},15277:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return re}});var O=p(72308),K=p(59301),q={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"},ce=q,A=p(7657),m=function(I,k){return K.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ce}))},w=K.forwardRef(m),re=w},52671:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return re}});var O=p(72308),K=p(59301),q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},ce=q,A=p(7657),m=function(I,k){return K.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ce}))},w=K.forwardRef(m),re=w},8657:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return re}});var O=p(72308),K=p(59301),q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},ce=q,A=p(7657),m=function(I,k){return K.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ce}))},w=K.forwardRef(m),re=w},56082:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return re}});var O=p(72308),K=p(59301),q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},ce=q,A=p(7657),m=function(I,k){return K.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ce}))},w=K.forwardRef(m),re=w},33853:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return re}});var O=p(72308),K=p(59301),q={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"},ce=q,A=p(7657),m=function(I,k){return K.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ce}))},w=K.forwardRef(m),re=w},15075:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return re}});var O=p(72308),K=p(59301),q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},ce=q,A=p(7657),m=function(I,k){return K.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ce}))},w=K.forwardRef(m),re=w},43531:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return re}});var O=p(72308),K=p(59301),q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},ce=q,A=p(7657),m=function(I,k){return K.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ce}))},w=K.forwardRef(m),re=w},61485:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return re}});var O=p(72308),K=p(59301),q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},ce=q,A=p(7657),m=function(I,k){return K.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ce}))},w=K.forwardRef(m),re=w},38819:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return re}});var O=p(72308),K=p(59301),q={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"},ce=q,A=p(7657),m=function(I,k){return K.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ce}))},w=K.forwardRef(m),re=w},47472:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return re}});var O=p(72308),K=p(59301),q={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"},ce=q,A=p(7657),m=function(I,k){return K.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ce}))},w=K.forwardRef(m),re=w},35593:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return wt}});var O=p(77321),K=p(52487),q=p(74416),ce=p(43403),A=p(92310),m=p.n(A),w=p(29301),re=p(76846),o=p(96452),I=p(6089),k=p(80402),g=p(34280),_=p(49658),S=p(59301),T=p(72308),B=p(77900),se=p(8654);function z(he){var pe=he.prefixCls,le=he.align,Q=he.arrow,Re=he.arrowPos,H=Q||{},R=H.className,P=H.content,fe=Re.x,oe=fe===void 0?0:fe,te=Re.y,Te=te===void 0?0:te,je=S.useRef();if(!le||!le.points)return null;var Me={position:"absolute"};if(le.autoArrow!==!1){var Fe=le.points[0],Je=le.points[1],Xe=Fe[0],Ve=Fe[1],xt=Je[0],Dt=Je[1];Xe===xt||!["t","b"].includes(Xe)?Me.top=Te:Xe==="t"?Me.top=0:Me.bottom=0,Ve===Dt||!["l","r"].includes(Ve)?Me.left=oe:Ve==="l"?Me.left=0:Me.right=0}return S.createElement("div",{ref:je,className:m()("".concat(pe,"-arrow"),R),style:Me},P)}function $(he){var pe=he.prefixCls,le=he.open,Q=he.zIndex,Re=he.mask,H=he.motion;return Re?S.createElement(B.default,(0,T.Z)({},H,{motionAppear:!0,visible:le,removeOnLeave:!0}),function(R){var P=R.className;return S.createElement("div",{style:{zIndex:Q},className:m()("".concat(pe,"-mask"),P)})}):null}var G=S.memo(function(he){var pe=he.children;return pe},function(he,pe){return pe.cache}),X=G,L=S.forwardRef(function(he,pe){var le=he.popup,Q=he.className,Re=he.prefixCls,H=he.style,R=he.target,P=he.onVisibleChanged,fe=he.open,oe=he.keepDom,te=he.fresh,Te=he.onClick,je=he.mask,Me=he.arrow,Fe=he.arrowPos,Je=he.align,Xe=he.motion,Ve=he.maskMotion,xt=he.forceRender,Dt=he.getPopupContainer,vt=he.autoDestroy,Bt=he.portal,Zt=he.zIndex,C=he.onMouseEnter,M=he.onMouseLeave,yt=he.onPointerEnter,ye=he.ready,Ne=he.offsetX,Sn=he.offsetY,it=he.offsetR,nt=he.offsetB,tt=he.onAlign,we=he.onPrepare,Oe=he.stretch,Le=he.targetWidth,rt=he.targetHeight,_e=typeof le=="function"?le():le,Qt=fe||oe,He=(Dt==null?void 0:Dt.length)>0,xn=S.useState(!Dt||!He),Ln=(0,K.Z)(xn,2),_r=Ln[0],Hn=Ln[1];if((0,g.Z)(function(){!_r&&He&&R&&Hn(!0)},[_r,He,R]),!_r)return null;var yn="auto",wn={left:"-1000vw",top:"-1000vh",right:yn,bottom:yn};if(ye||!fe){var Ye,Ot=Je.points,Ut=Je.dynamicInset||((Ye=Je._experimental)===null||Ye===void 0?void 0:Ye.dynamicInset),Ke=Ut&&Ot[0][1]==="r",Pe=Ut&&Ot[0][0]==="b";Ke?(wn.right=it,wn.left=yn):(wn.left=Ne,wn.right=yn),Pe?(wn.bottom=nt,wn.top=yn):(wn.top=Sn,wn.bottom=yn)}var _t={};return Oe&&(Oe.includes("height")&&rt?_t.height=rt:Oe.includes("minHeight")&&rt&&(_t.minHeight=rt),Oe.includes("width")&&Le?_t.width=Le:Oe.includes("minWidth")&&Le&&(_t.minWidth=Le)),fe||(_t.pointerEvents="none"),S.createElement(Bt,{open:xt||Qt,getContainer:Dt&&function(){return Dt(R)},autoDestroy:vt},S.createElement($,{prefixCls:Re,open:fe,zIndex:Zt,mask:je,motion:Ve}),S.createElement(w.Z,{onResize:tt,disabled:!fe},function(Ct){return S.createElement(B.default,(0,T.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:xt,leavedClassName:"".concat(Re,"-hidden")},Xe,{onAppearPrepare:we,onEnterPrepare:we,visible:fe,onVisibleChanged:function(Vt){var dn;Xe==null||(dn=Xe.onVisibleChanged)===null||dn===void 0||dn.call(Xe,Vt),P(Vt)}}),function(nn,Vt){var dn=nn.className,rn=nn.style,bn=m()(Re,dn,Q);return S.createElement("div",{ref:(0,se.sQ)(Ct,pe,Vt),className:bn,style:(0,O.Z)((0,O.Z)((0,O.Z)((0,O.Z)({"--arrow-x":"".concat(Fe.x||0,"px"),"--arrow-y":"".concat(Fe.y||0,"px")},wn),_t),rn),{},{boxSizing:"border-box",zIndex:Zt},H),onMouseEnter:C,onMouseLeave:M,onPointerEnter:yt,onClick:Te},Me&&S.createElement(z,{prefixCls:Re,arrow:Me,arrowPos:Fe,align:Je}),S.createElement(X,{cache:!fe&&!te},_e))})}))}),D=L,Y=S.forwardRef(function(he,pe){var le=he.children,Q=he.getTriggerDOMNode,Re=(0,se.Yr)(le),H=S.useCallback(function(P){(0,se.mH)(pe,Q?Q(P):P)},[Q]),R=(0,se.x1)(H,le.ref);return Re?S.cloneElement(le,{ref:R}):le}),j=Y,xe=S.createContext(null),Ce=xe;function Ee(he){return he?Array.isArray(he)?he:[he]:[]}function ge(he,pe,le,Q){return S.useMemo(function(){var Re=Ee(le!=null?le:pe),H=Ee(Q!=null?Q:pe),R=new Set(Re),P=new Set(H);return he&&(R.has("hover")&&(R.delete("hover"),R.add("click")),P.has("hover")&&(P.delete("hover"),P.add("click"))),[R,P]},[he,pe,le,Q])}var de=p(29194);function W(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],le=arguments.length>2?arguments[2]:void 0;return le?he[0]===pe[0]:he[0]===pe[0]&&he[1]===pe[1]}function be(he,pe,le,Q){for(var Re=le.points,H=Object.keys(he),R=0;R<H.length;R+=1){var P,fe=H[R];if(W((P=he[fe])===null||P===void 0?void 0:P.points,Re,Q))return"".concat(pe,"-placement-").concat(fe)}return""}function N(he,pe,le,Q){return pe||(le?{motionName:"".concat(he,"-").concat(le)}:Q?{motionName:Q}:null)}function ue(he){return he.ownerDocument.defaultView}function J(he){for(var pe=[],le=he==null?void 0:he.parentElement,Q=["hidden","scroll","clip","auto"];le;){var Re=ue(le).getComputedStyle(le),H=Re.overflowX,R=Re.overflowY,P=Re.overflow;[H,R,P].some(function(fe){return Q.includes(fe)})&&pe.push(le),le=le.parentElement}return pe}function v(he){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(he)?pe:he}function x(he){return v(parseFloat(he),0)}function Z(he,pe){var le=(0,O.Z)({},he);return(pe||[]).forEach(function(Q){if(!(Q instanceof HTMLBodyElement||Q instanceof HTMLHtmlElement)){var Re=ue(Q).getComputedStyle(Q),H=Re.overflow,R=Re.overflowClipMargin,P=Re.borderTopWidth,fe=Re.borderBottomWidth,oe=Re.borderLeftWidth,te=Re.borderRightWidth,Te=Q.getBoundingClientRect(),je=Q.offsetHeight,Me=Q.clientHeight,Fe=Q.offsetWidth,Je=Q.clientWidth,Xe=x(P),Ve=x(fe),xt=x(oe),Dt=x(te),vt=v(Math.round(Te.width/Fe*1e3)/1e3),Bt=v(Math.round(Te.height/je*1e3)/1e3),Zt=(Fe-Je-xt-Dt)*vt,C=(je-Me-Xe-Ve)*Bt,M=Xe*Bt,yt=Ve*Bt,ye=xt*vt,Ne=Dt*vt,Sn=0,it=0;if(H==="clip"){var nt=x(R);Sn=nt*vt,it=nt*Bt}var tt=Te.x+ye-Sn,we=Te.y+M-it,Oe=tt+Te.width+2*Sn-ye-Ne-Zt,Le=we+Te.height+2*it-M-yt-C;le.left=Math.max(le.left,tt),le.top=Math.max(le.top,we),le.right=Math.min(le.right,Oe),le.bottom=Math.min(le.bottom,Le)}}),le}function me(he){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,le="".concat(pe),Q=le.match(/^(.*)\%$/);return Q?he*(parseFloat(Q[1])/100):parseFloat(le)}function Be(he,pe){var le=pe||[],Q=(0,K.Z)(le,2),Re=Q[0],H=Q[1];return[me(he.width,Re),me(he.height,H)]}function Ue(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[he[0],he[1]]}function ze(he,pe){var le=pe[0],Q=pe[1],Re,H;return le==="t"?H=he.y:le==="b"?H=he.y+he.height:H=he.y+he.height/2,Q==="l"?Re=he.x:Q==="r"?Re=he.x+he.width:Re=he.x+he.width/2,{x:Re,y:H}}function qe(he,pe){var le={t:"b",b:"t",l:"r",r:"l"};return he.map(function(Q,Re){return Re===pe?le[Q]||"c":Q}).join("")}function mt(he,pe,le,Q,Re,H,R){var P=S.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Re[Q]||{}}),fe=(0,K.Z)(P,2),oe=fe[0],te=fe[1],Te=S.useRef(0),je=S.useMemo(function(){return pe?J(pe):[]},[pe]),Me=S.useRef({}),Fe=function(){Me.current={}};he||Fe();var Je=(0,I.Z)(function(){if(pe&&le&&he){let cr=function(Ur,ai){var Zi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:bn,Ri=_e.x+Ur,Ti=_e.y+ai,Fr=Ri+Ye,Oi=Ti+wn,As=Math.max(Ri,Zi.left),Ps=Math.max(Ti,Zi.top),ps=Math.min(Fr,Zi.right),us=Math.min(Oi,Zi.bottom);return Math.max(0,(ps-As)*(us-Ps))},Xn=function(){Bn=_e.y+Tn,ur=Bn+wn,er=_e.x+En,Lr=er+Ye};var xt,Dt,vt=pe,Bt=vt.ownerDocument,Zt=ue(vt),C=Zt.getComputedStyle(vt),M=C.width,yt=C.height,ye=C.position,Ne=vt.style.left,Sn=vt.style.top,it=vt.style.right,nt=vt.style.bottom,tt=vt.style.overflow,we=(0,O.Z)((0,O.Z)({},Re[Q]),H),Oe=Bt.createElement("div");(xt=vt.parentElement)===null||xt===void 0||xt.appendChild(Oe),Oe.style.left="".concat(vt.offsetLeft,"px"),Oe.style.top="".concat(vt.offsetTop,"px"),Oe.style.position=ye,Oe.style.height="".concat(vt.offsetHeight,"px"),Oe.style.width="".concat(vt.offsetWidth,"px"),vt.style.left="0",vt.style.top="0",vt.style.right="auto",vt.style.bottom="auto",vt.style.overflow="hidden";var Le;if(Array.isArray(le))Le={x:le[0],y:le[1],width:0,height:0};else{var rt=le.getBoundingClientRect();Le={x:rt.x,y:rt.y,width:rt.width,height:rt.height}}var _e=vt.getBoundingClientRect(),Qt=Bt.documentElement,He=Qt.clientWidth,xn=Qt.clientHeight,Ln=Qt.scrollWidth,_r=Qt.scrollHeight,Hn=Qt.scrollTop,yn=Qt.scrollLeft,wn=_e.height,Ye=_e.width,Ot=Le.height,Ut=Le.width,Ke={left:0,top:0,right:He,bottom:xn},Pe={left:-yn,top:-Hn,right:Ln-yn,bottom:_r-Hn},_t=we.htmlRegion,Ct="visible",nn="visibleFirst";_t!=="scroll"&&_t!==nn&&(_t=Ct);var Vt=_t===nn,dn=Z(Pe,je),rn=Z(Ke,je),bn=_t===Ct?rn:dn,In=Vt?rn:bn;vt.style.left="auto",vt.style.top="auto",vt.style.right="0",vt.style.bottom="0";var Cn=vt.getBoundingClientRect();vt.style.left=Ne,vt.style.top=Sn,vt.style.right=it,vt.style.bottom=nt,vt.style.overflow=tt,(Dt=vt.parentElement)===null||Dt===void 0||Dt.removeChild(Oe);var Kt=v(Math.round(Ye/parseFloat(M)*1e3)/1e3),Gt=v(Math.round(wn/parseFloat(yt)*1e3)/1e3);if(Kt===0||Gt===0||(0,re.Sh)(le)&&!(0,de.Z)(le))return;var qt=we.offset,fn=we.targetOffset,an=Be(_e,qt),Qn=(0,K.Z)(an,2),Rn=Qn[0],ln=Qn[1],ct=Be(Le,fn),pt=(0,K.Z)(ct,2),Tt=pt[0],Ft=pt[1];Le.x-=Tt,Le.y-=Ft;var It=we.points||[],sn=(0,K.Z)(It,2),$t=sn[0],hn=sn[1],_n=Ue(hn),Dn=Ue($t),Yn=ze(Le,_n),Zn=ze(_e,Dn),dr=(0,O.Z)({},we),En=Yn.x-Zn.x+Rn,Tn=Yn.y-Zn.y+ln,pr=cr(En,Tn),mr=cr(En,Tn,rn),Ir=ze(Le,["t","l"]),sr=ze(_e,["t","l"]),ar=ze(Le,["b","r"]),Cr=ze(_e,["b","r"]),rr=we.overflow||{},Pr=rr.adjustX,qr=rr.adjustY,qn=rr.shiftX,zn=rr.shiftY,dt=function(ai){return typeof ai=="boolean"?ai:ai>=0},Bn,ur,er,Lr;Xn();var zr=dt(qr),Vr=Dn[0]===_n[0];if(zr&&Dn[0]==="t"&&(ur>In.bottom||Me.current.bt)){var fr=Tn;Vr?fr-=wn-Ot:fr=Ir.y-Cr.y-ln;var Yr=cr(En,fr),Un=cr(En,fr,rn);Yr>pr||Yr===pr&&(!Vt||Un>=mr)?(Me.current.bt=!0,Tn=fr,ln=-ln,dr.points=[qe(Dn,0),qe(_n,0)]):Me.current.bt=!1}if(zr&&Dn[0]==="b"&&(Bn<In.top||Me.current.tb)){var On=Tn;Vr?On+=wn-Ot:On=ar.y-sr.y-ln;var Er=cr(En,On),kr=cr(En,On,rn);Er>pr||Er===pr&&(!Vt||kr>=mr)?(Me.current.tb=!0,Tn=On,ln=-ln,dr.points=[qe(Dn,0),qe(_n,0)]):Me.current.tb=!1}var ei=dt(Pr),Ii=Dn[1]===_n[1];if(ei&&Dn[1]==="l"&&(Lr>In.right||Me.current.rl)){var jn=En;Ii?jn-=Ye-Ut:jn=Ir.x-Cr.x-Rn;var ii=cr(jn,Tn),Xr=cr(jn,Tn,rn);ii>pr||ii===pr&&(!Vt||Xr>=mr)?(Me.current.rl=!0,En=jn,Rn=-Rn,dr.points=[qe(Dn,1),qe(_n,1)]):Me.current.rl=!1}if(ei&&Dn[1]==="r"&&(er<In.left||Me.current.lr)){var fi=En;Ii?fi+=Ye-Ut:fi=ar.x-sr.x-Rn;var Li=cr(fi,Tn),yi=cr(fi,Tn,rn);Li>pr||Li===pr&&(!Vt||yi>=mr)?(Me.current.lr=!0,En=fi,Rn=-Rn,dr.points=[qe(Dn,1),qe(_n,1)]):Me.current.lr=!1}Xn();var si=qn===!0?0:qn;typeof si=="number"&&(er<rn.left&&(En-=er-rn.left-Rn,Le.x+Ut<rn.left+si&&(En+=Le.x-rn.left+Ut-si)),Lr>rn.right&&(En-=Lr-rn.right-Rn,Le.x>rn.right-si&&(En+=Le.x-rn.right+si)));var Ci=zn===!0?0:zn;typeof Ci=="number"&&(Bn<rn.top&&(Tn-=Bn-rn.top-ln,Le.y+Ot<rn.top+Ci&&(Tn+=Le.y-rn.top+Ot-Ci)),ur>rn.bottom&&(Tn-=ur-rn.bottom-ln,Le.y>rn.bottom-Ci&&(Tn+=Le.y-rn.bottom+Ci)));var ui=_e.x+En,$i=ui+Ye,Tr=_e.y+Tn,Xi=Tr+wn,Hi=Le.x,Qi=Hi+Ut,jr=Le.y,fs=jr+Ot,vs=Math.max(ui,Hi),cs=Math.min($i,Qi),Br=(vs+cs)/2,hs=Br-ui,Ts=Math.max(Tr,jr),Nn=Math.min(Xi,fs),Mi=(Ts+Nn)/2,ls=Mi-Tr;R==null||R(pe,dr);var gr=Cn.right-_e.x-(En+_e.width),xr=Cn.bottom-_e.y-(Tn+_e.height);te({ready:!0,offsetX:En/Kt,offsetY:Tn/Gt,offsetR:gr/Kt,offsetB:xr/Gt,arrowX:hs/Kt,arrowY:ls/Gt,scaleX:Kt,scaleY:Gt,align:dr})}}),Xe=function(){Te.current+=1;var Dt=Te.current;Promise.resolve().then(function(){Te.current===Dt&&Je()})},Ve=function(){te(function(Dt){return(0,O.Z)((0,O.Z)({},Dt),{},{ready:!1})})};return(0,g.Z)(Ve,[Q]),(0,g.Z)(function(){he||Ve()},[he]),[oe.ready,oe.offsetX,oe.offsetY,oe.offsetR,oe.offsetB,oe.arrowX,oe.arrowY,oe.scaleX,oe.scaleY,oe.align,Xe]}var gt=p(80702);function at(he,pe,le,Q,Re){(0,g.Z)(function(){if(he&&pe&&le){let Te=function(){Q(),Re()};var H=pe,R=le,P=J(H),fe=J(R),oe=ue(R),te=new Set([oe].concat((0,gt.Z)(P),(0,gt.Z)(fe)));return te.forEach(function(je){je.addEventListener("scroll",Te,{passive:!0})}),oe.addEventListener("resize",Te,{passive:!0}),Q(),function(){te.forEach(function(je){je.removeEventListener("scroll",Te),oe.removeEventListener("resize",Te)})}}},[he,pe,le])}var Lt=p(48736),tn=p(16089);function Rt(he,pe,le,Q,Re,H,R,P){var fe=S.useRef(he),oe=S.useRef(!1);fe.current!==he&&(oe.current=!0,fe.current=he),S.useEffect(function(){var te=(0,tn.Z)(function(){oe.current=!1});return function(){tn.Z.cancel(te)}},[he]),S.useEffect(function(){if(pe&&Q&&(!Re||H)){var te=function(){var ye=!1,Ne=function(nt){var tt=nt.target;ye=R(tt)},Sn=function(nt){var tt=nt.target;!oe.current&&fe.current&&!ye&&!R(tt)&&P(!1)};return[Ne,Sn]},Te=te(),je=(0,K.Z)(Te,2),Me=je[0],Fe=je[1],Je=te(),Xe=(0,K.Z)(Je,2),Ve=Xe[0],xt=Xe[1],Dt=ue(Q);Dt.addEventListener("mousedown",Me,!0),Dt.addEventListener("click",Fe,!0),Dt.addEventListener("contextmenu",Fe,!0);var vt=(0,o.A)(le);if(vt&&(vt.addEventListener("mousedown",Ve,!0),vt.addEventListener("click",xt,!0),vt.addEventListener("contextmenu",xt,!0)),0)var Bt,Zt,C,M;return function(){Dt.removeEventListener("mousedown",Me,!0),Dt.removeEventListener("click",Fe,!0),Dt.removeEventListener("contextmenu",Fe,!0),vt&&(vt.removeEventListener("mousedown",Ve,!0),vt.removeEventListener("click",xt,!0),vt.removeEventListener("contextmenu",xt,!0))}}},[pe,le,Q,Re,H])}var Ht=["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 ut(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ce.Z,pe=S.forwardRef(function(le,Q){var Re=le.prefixCls,H=Re===void 0?"rc-trigger-popup":Re,R=le.children,P=le.action,fe=P===void 0?"hover":P,oe=le.showAction,te=le.hideAction,Te=le.popupVisible,je=le.defaultPopupVisible,Me=le.onPopupVisibleChange,Fe=le.afterPopupVisibleChange,Je=le.mouseEnterDelay,Xe=le.mouseLeaveDelay,Ve=Xe===void 0?.1:Xe,xt=le.focusDelay,Dt=le.blurDelay,vt=le.mask,Bt=le.maskClosable,Zt=Bt===void 0?!0:Bt,C=le.getPopupContainer,M=le.forceRender,yt=le.autoDestroy,ye=le.destroyPopupOnHide,Ne=le.popup,Sn=le.popupClassName,it=le.popupStyle,nt=le.popupPlacement,tt=le.builtinPlacements,we=tt===void 0?{}:tt,Oe=le.popupAlign,Le=le.zIndex,rt=le.stretch,_e=le.getPopupClassNameFromAlign,Qt=le.fresh,He=le.alignPoint,xn=le.onPopupClick,Ln=le.onPopupAlign,_r=le.arrow,Hn=le.popupMotion,yn=le.maskMotion,wn=le.popupTransitionName,Ye=le.popupAnimation,Ot=le.maskTransitionName,Ut=le.maskAnimation,Ke=le.className,Pe=le.getTriggerDOMNode,_t=(0,q.Z)(le,Ht),Ct=yt||ye||!1,nn=S.useState(!1),Vt=(0,K.Z)(nn,2),dn=Vt[0],rn=Vt[1];(0,g.Z)(function(){rn((0,_.Z)())},[]);var bn=S.useRef({}),In=S.useContext(Ce),Cn=S.useMemo(function(){return{registerSubPopup:function(Or,bi){bn.current[Or]=bi,In==null||In.registerSubPopup(Or,bi)}}},[In]),Kt=(0,k.Z)(),Gt=S.useState(null),qt=(0,K.Z)(Gt,2),fn=qt[0],an=qt[1],Qn=(0,I.Z)(function(or){(0,re.Sh)(or)&&fn!==or&&an(or),In==null||In.registerSubPopup(Kt,or)}),Rn=S.useState(null),ln=(0,K.Z)(Rn,2),ct=ln[0],pt=ln[1],Tt=S.useRef(null),Ft=(0,I.Z)(function(or){(0,re.Sh)(or)&&ct!==or&&(pt(or),Tt.current=or)}),It=S.Children.only(R),sn=(It==null?void 0:It.props)||{},$t={},hn=(0,I.Z)(function(or){var Or,bi,ji=ct;return(ji==null?void 0:ji.contains(or))||((Or=(0,o.A)(ji))===null||Or===void 0?void 0:Or.host)===or||or===ji||(fn==null?void 0:fn.contains(or))||((bi=(0,o.A)(fn))===null||bi===void 0?void 0:bi.host)===or||or===fn||Object.values(bn.current).some(function(gi){return(gi==null?void 0:gi.contains(or))||or===gi})}),_n=N(H,Hn,Ye,wn),Dn=N(H,yn,Ut,Ot),Yn=S.useState(je||!1),Zn=(0,K.Z)(Yn,2),dr=Zn[0],En=Zn[1],Tn=Te!=null?Te:dr,pr=(0,I.Z)(function(or){Te===void 0&&En(or)});(0,g.Z)(function(){En(Te||!1)},[Te]);var mr=S.useRef(Tn);mr.current=Tn;var Ir=S.useRef([]);Ir.current=[];var sr=(0,I.Z)(function(or){var Or;pr(or),((Or=Ir.current[Ir.current.length-1])!==null&&Or!==void 0?Or:Tn)!==or&&(Ir.current.push(or),Me==null||Me(or))}),ar=S.useRef(),Cr=function(){clearTimeout(ar.current)},rr=function(Or){var bi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Cr(),bi===0?sr(Or):ar.current=setTimeout(function(){sr(Or)},bi*1e3)};S.useEffect(function(){return Cr},[]);var Pr=S.useState(!1),qr=(0,K.Z)(Pr,2),qn=qr[0],zn=qr[1];(0,g.Z)(function(or){(!or||Tn)&&zn(!0)},[Tn]);var dt=S.useState(null),Bn=(0,K.Z)(dt,2),ur=Bn[0],er=Bn[1],Lr=S.useState([0,0]),zr=(0,K.Z)(Lr,2),Vr=zr[0],fr=zr[1],Yr=function(Or){fr([Or.clientX,Or.clientY])},Un=mt(Tn,fn,He?Vr:ct,nt,we,Oe,Ln),On=(0,K.Z)(Un,11),Er=On[0],kr=On[1],ei=On[2],Ii=On[3],jn=On[4],ii=On[5],Xr=On[6],fi=On[7],Li=On[8],yi=On[9],si=On[10],Ci=ge(dn,fe,oe,te),ui=(0,K.Z)(Ci,2),$i=ui[0],Tr=ui[1],Xi=$i.has("click"),Hi=Tr.has("click")||Tr.has("contextMenu"),Qi=(0,I.Z)(function(){qn||si()}),jr=function(){mr.current&&He&&Hi&&rr(!1)};at(Tn,ct,fn,Qi,jr),(0,g.Z)(function(){Qi()},[Vr,nt]),(0,g.Z)(function(){Tn&&!(we!=null&&we[nt])&&Qi()},[JSON.stringify(Oe)]);var fs=S.useMemo(function(){var or=be(we,H,yi,He);return m()(or,_e==null?void 0:_e(yi))},[yi,_e,we,H,He]);S.useImperativeHandle(Q,function(){return{nativeElement:Tt.current,forceAlign:Qi}});var vs=S.useState(0),cs=(0,K.Z)(vs,2),Br=cs[0],hs=cs[1],Ts=S.useState(0),Nn=(0,K.Z)(Ts,2),Mi=Nn[0],ls=Nn[1],gr=function(){if(rt&&ct){var Or=ct.getBoundingClientRect();hs(Or.width),ls(Or.height)}},xr=function(){gr(),Qi()},cr=function(Or){zn(!1),si(),Fe==null||Fe(Or)},Xn=function(){return new Promise(function(Or){gr(),er(function(){return Or})})};(0,g.Z)(function(){ur&&(si(),ur(),er(null))},[ur]);function Ur(or,Or,bi,ji){$t[or]=function(gi){var Ds;ji==null||ji(gi),rr(Or,bi);for(var ks=arguments.length,Is=new Array(ks>1?ks-1:0),_s=1;_s<ks;_s++)Is[_s-1]=arguments[_s];(Ds=sn[or])===null||Ds===void 0||Ds.call.apply(Ds,[sn,gi].concat(Is))}}(Xi||Hi)&&($t.onClick=function(or){var Or;mr.current&&Hi?rr(!1):!mr.current&&Xi&&(Yr(or),rr(!0));for(var bi=arguments.length,ji=new Array(bi>1?bi-1:0),gi=1;gi<bi;gi++)ji[gi-1]=arguments[gi];(Or=sn.onClick)===null||Or===void 0||Or.call.apply(Or,[sn,or].concat(ji))}),Rt(Tn,Hi,ct,fn,vt,Zt,hn,rr);var ai=$i.has("hover"),Zi=Tr.has("hover"),Ri,Ti;ai&&(Ur("onMouseEnter",!0,Je,function(or){Yr(or)}),Ur("onPointerEnter",!0,Je,function(or){Yr(or)}),Ri=function(Or){(Tn||qn)&&fn!==null&&fn!==void 0&&fn.contains(Or.target)&&rr(!0,Je)},He&&($t.onMouseMove=function(or){var Or;(Or=sn.onMouseMove)===null||Or===void 0||Or.call(sn,or)})),Zi&&(Ur("onMouseLeave",!1,Ve),Ur("onPointerLeave",!1,Ve),Ti=function(){rr(!1,Ve)}),$i.has("focus")&&Ur("onFocus",!0,xt),Tr.has("focus")&&Ur("onBlur",!1,Dt),$i.has("contextMenu")&&($t.onContextMenu=function(or){var Or;mr.current&&Tr.has("contextMenu")?rr(!1):(Yr(or),rr(!0)),or.preventDefault();for(var bi=arguments.length,ji=new Array(bi>1?bi-1:0),gi=1;gi<bi;gi++)ji[gi-1]=arguments[gi];(Or=sn.onContextMenu)===null||Or===void 0||Or.call.apply(Or,[sn,or].concat(ji))}),Ke&&($t.className=m()(sn.className,Ke));var Fr=(0,O.Z)((0,O.Z)({},sn),$t),Oi={},As=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];As.forEach(function(or){_t[or]&&(Oi[or]=function(){for(var Or,bi=arguments.length,ji=new Array(bi),gi=0;gi<bi;gi++)ji[gi]=arguments[gi];(Or=Fr[or])===null||Or===void 0||Or.call.apply(Or,[Fr].concat(ji)),_t[or].apply(_t,ji)})});var Ps=S.cloneElement(It,(0,O.Z)((0,O.Z)({},Fr),Oi)),ps={x:ii,y:Xr},us=_r?(0,O.Z)({},_r!==!0?_r:{}):null;return S.createElement(S.Fragment,null,S.createElement(w.Z,{disabled:!Tn,ref:Ft,onResize:xr},S.createElement(j,{getTriggerDOMNode:Pe},Ps)),S.createElement(Ce.Provider,{value:Cn},S.createElement(D,{portal:he,ref:Qn,prefixCls:H,popup:Ne,className:m()(Sn,fs),style:it,target:ct,onMouseEnter:Ri,onMouseLeave:Ti,onPointerEnter:Ri,zIndex:Le,open:Tn,keepDom:qn,fresh:Qt,onClick:xn,mask:vt,motion:_n,maskMotion:Dn,onVisibleChanged:cr,onPrepare:Xn,forceRender:M,autoDestroy:Ct,getPopupContainer:C,align:yi,arrow:us,arrowPos:ps,ready:Er,offsetX:kr,offsetY:ei,offsetR:Ii,offsetB:jn,onAlign:Qi,stretch:rt,targetWidth:Br/fi,targetHeight:Mi/Li})))});return pe}var wt=ut(ce.Z)},50304:function(){"use strict"},8797:function(Xt,Ze,p){"use strict";var O=p(59301),K=p(93314),q=p(3113),ce=Object.defineProperty,A=Object.defineProperties,m=Object.getOwnPropertyDescriptors,w=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,I=(S,T,B)=>T in S?ce(S,T,{enumerable:!0,configurable:!0,writable:!0,value:B}):S[T]=B,k=(S,T)=>{for(var B in T||(T={}))re.call(T,B)&&I(S,B,T[B]);if(w)for(var B of w(T))o.call(T,B)&&I(S,B,T[B]);return S},g=(S,T)=>A(S,m(T));const _=({img:S,buttonProps:T={},styles:B={},customText:se,ButtonText:z,ButtonClick:$,Buttonclass:G,ButtonTwo:X,imgStyles:L,loading:D=!1,className:Y=""})=>O.createElement("section",{className:`tc animated fadeIn ${Y}`,style:k({color:"#999",margin:"100px auto",visibility:D?"hidden":"visible"},B)},O.createElement("img",{src:S||K,style:g(k({},L),{pointerEvents:"none",userSelect:"none"})}),O.createElement("p",{className:"mt20 font14"},se||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),z&&O.createElement(q.ZP,k({className:G,onClick:$},T),z),X&&X);Ze.Z=_},23210:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return G}});var O=p(59301),K={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},q=p(3113),ce=p(70557),A=p(23954),m=p(6848),w=p(955),re=p(94941),o=p(8797),I=p(3294),k=p(19381),g=p(59301),_=Object.defineProperty,S=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,se=(X,L,D)=>L in X?_(X,L,{enumerable:!0,configurable:!0,writable:!0,value:D}):X[L]=D,z=(X,L)=>{for(var D in L||(L={}))T.call(L,D)&&se(X,D,L[D]);if(S)for(var D of S(L))B.call(L,D)&&se(X,D,L[D]);return X},$=(X,L,D)=>new Promise((Y,j)=>{var xe=ge=>{try{Ee(D.next(ge))}catch(de){j(de)}},Ce=ge=>{try{Ee(D.throw(ge))}catch(de){j(de)}},Ee=ge=>ge.done?Y(ge.value):Promise.resolve(ge.value).then(xe,Ce);Ee((D=D.apply(X,L)).next())}),G=({editOffice:X="view",data:L,theme:D,type:Y,filename:j,monacoEditor:xe,className:Ce,style:Ee,close:ge,onClose:de,hasMask:W,disabledDownload:be,onImgDimensions:N,showNodata:ue,recordInfo:J})=>{const[v,x]=(0,O.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Z,me]=(0,O.useState)(""),[Be,Ue]=(0,O.useState)(),ze=window.ENV==="build"?"/react/build":"",qe=location.host.startsWith("localhost")?I.Z.PROXY_SERVER:I.Z.API_SERVER,gt=10*(1024*1024),at=(0,O.useRef)();L!=null&&L.startsWith("/api")&&Y!=="txt"&&(L=I.Z.API_SERVER+L);const Lt=ut=>ut.substring(ut.lastIndexOf("/")+1).split(".").pop();j&&xe&&(xe.filename=j),(0,O.useEffect)(()=>{var ut,wt;const he=(wt=(ut=document.cookie)==null?void 0:ut.replace(/\s/g,""))==null?void 0:wt.split(";");he==null||he.map(pe=>{let le=pe.split("=");le[0]==="_educoder_session"&&me(le[1])})},[]),(0,O.useEffect)(()=>{Y==="office"&&(L.indexOf("bigfilescdn.")>-1||L.indexOf("bigfiles1")>-1?Ue({url:L,fileType:Lt(L),model:L.indexOf("model=edit")?"edit":"view"}):tn())},[Y,L]);const tn=()=>$(void 0,null,function*(){console.log("data:",L);let ut=L;L.startsWith("http")||(ut=location.origin+ut);let wt=new URL(ut).pathname.split("/").pop();const he=yield(0,re.gJ)({attachment_id:wt});he.url=qe+he.url,Ue(he)}),Rt=()=>{if(L.startsWith("http")||L.startsWith("blob:")){Ht();return}(0,w.Sv)(j||"educoder",L,j)},Ht=()=>{J&&(0,k.fc)({id:J==null?void 0:J.id,watch_type:1,course_id:J==null?void 0:J.course_id}),(0,w.Nd)(j||"educoder",decodeURIComponent(L))};return g.createElement("div",{style:z({},Ee||{}),className:`${W&&K.bgBlack} ${Y?K.wrp:"hide"}`},ge&&g.createElement("div",{className:K.close,ref:at},!!N&&g.createElement(m.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>at.current},g.createElement("span",{onClick:()=>{de(),N()}},g.createElement("i",{className:"icon-yulanpizhu"}))),!be&&g.createElement(m.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>at.current},g.createElement("span",{onClick:Ht},g.createElement("i",{className:"icon-quxiaozhiding"}))),g.createElement(m.Z,{title:"\u5173\u95ED",getPopupContainer:()=>at.current},g.createElement("span",{className:"",onClick:de},g.createElement("i",{className:"icon-guanbi1"})))),g.createElement("div",{className:`${K[Ce]} ${Ce} ${K.monaco} ${Y==="txt"?"show":"hide"}`},Y==="txt"&&g.createElement(g.Fragment,null,g.createElement(A.ZP,z({},xe)))),Y==="audio"&&g.createElement("audio",{src:`${(L==null?void 0:L.indexOf("http://"))>-1||(L==null?void 0:L.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${L}`,autoPlay:!0}),Y==="video"&&g.createElement(g.Fragment,null,(L==null?void 0:L.indexOf("http"))>-1?g.createElement("video",{controls:!0,src:`${L}`,autoPlay:!0}):g.createElement("video",{controls:!0,src:`data:video/mp4;base64,${L}`,autoPlay:!0})),Y==="office"&&Be&&g.createElement("iframe",{src:`${ze}/office.html?key=${Be.key}&url=${btoa(Be.url)}&callbackUrl=${qe+(Be.callbackUrl||"")}&fileType=${Be.fileType}&title=${Be.title||""}&model=${X}&officeServer=${I.Z.ONLYOFFICE}&disabledDownload=${!!be}`}),Y==="html"&&g.createElement("iframe",{src:L+"&disposition=inline"}),Y==="pdf"&&g.createElement("iframe",{src:`${ze}/js/pdfview/index.html?filename=${j||"educoder.pdf"}&url=${encodeURIComponent(L)}&disabledDownload=${!!be}`}),Y==="image"&&g.createElement("img",{src:`${(L==null?void 0:L.indexOf("http://"))>-1||(L==null?void 0:L.indexOf("https://"))>-1?"":"data:image/png;base64,"}${L}`}),(Y==="other"||Y==="download")&&g.createElement(g.Fragment,null,ue?g.createElement(o.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:g.createElement(q.ZP,{icon:g.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Rt,disabled:be},"\u4E0B\u8F7D")}):g.createElement(q.ZP,{type:"primary",size:"middle",onClick:Rt,disabled:be},g.createElement(ce.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(Xt,Ze,p){"use strict";p.d(Ze,{z:function(){return Y},Z:function(){return j}});var O=p(59301),K=p(50304),q=p(24768),ce=p(64018),A=p(46284),m=p(3294),w=p(955),re=p(15342),o=p(1012),I=p(23210),k=p(59301),_=({html:xe})=>{const Ce=(0,O.useRef)(null),Ee=(0,O.useRef)(null),ge=`.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,O.useEffect)(()=>{const de=Ce.current.attachShadow({mode:"open"});Ee.current=document.createElement("div"),Ee.current.className="markdown-body",Ee.current.innerHTML=xe,de.appendChild(Ee.current);const W=document.createElement("style");return W.textContent=ge,de.appendChild(W),()=>{de.innerHTML=""}},[]),(0,O.useEffect)(()=>{Ee.current&&(Ee.current.innerHTML=xe)},[xe]),k.createElement("div",{ref:Ce})},S=Object.defineProperty,T=Object.getOwnPropertySymbols,B=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,z=(xe,Ce,Ee)=>Ce in xe?S(xe,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):xe[Ce]=Ee,$=(xe,Ce)=>{for(var Ee in Ce||(Ce={}))B.call(Ce,Ee)&&z(xe,Ee,Ce[Ee]);if(T)for(var Ee of T(Ce))se.call(Ce,Ee)&&z(xe,Ee,Ce[Ee]);return xe};const G="@\u2581\u2581@",X="@\u2581@",L=/<pre[^>]*>/g;function D(xe){let Ce=document.createElement("div");return Ce.innerHTML=xe,Ce.childNodes.length===0?"":Ce.childNodes[0].nodeValue}const Y=(xe,Ce)=>{xe=xe||"";const Ee=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ge=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,de=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,W=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ce?xe.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Ee,(be,N,ue,J,v,x,Z)=>{const me=N||J||x,Be=ue||v||Z||"?";return m.Z.API_SERVER+"/api/attachments/"+me+Be+"&t="+(0,w.Jn)(me,Date.now())+(be.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(xe=xe.replace(W,(be,N,ue,J,v,x,Z)=>{const me=N||J||x,Be=ue||v||Z||"?";return m.Z.API_SERVER+"/attachments/download/"+me+Be+"&t="+(0,w.Jn)(me,Date.now())+(be.indexOf(")")>-1?")":"&")}).replace(Ee,(be,N,ue,J,v,x,Z)=>{const me=N||J||x,Be=ue||v||Z||"?";return m.Z.API_SERVER+"/api/attachments/"+me+Be+"&t="+(0,w.Jn)(me,Date.now())+(be.indexOf(")")>-1?")":"&")}).replace(ge,(be,N,ue,J,v)=>{const x=N||J,Z=ue||v||"";return'"'+m.Z.API_SERVER+"/api/attachments/"+x+Z+x+Z+"&t="+(0,w.Jn)(x,Date.now())}).replace(de,(be,N,ue,J,v)=>{const x=N||J,Z=ue||v||"";return"("+m.Z.API_SERVER+"/files/uploads/"+x+Z+x+Z+"&t="+(0,w.Jn)(x,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,`
|
|
|
`),xe)};var j=({value:xe="",className:Ce,showTextOnly:Ee,showLines:ge,style:de={},stylesPrev:W={},highlightKeywords:be,showProgramFill:N,isProgramFill:ue,disabledFill:J=!1,programFillValue:v,onFillChange:x=Be=>{},onFillBlur:Z=()=>{},onFillFocus:me=()=>{}})=>{let Be=String(xe);const[Ue,ze]=(0,O.useState)(""),[qe,mt]=(0,O.useState)("office"),[gt,at]=(0,O.useState)([]),Lt=(0,O.useRef)("a"+(0,o.Z)()),tn={},Rt=(fe,oe,te)=>{const Te=document.createElement(fe===X?"input":"textarea");Te.style.width="100%",Te.style.height=fe===X?"40px":"151px",Te.rows=5,Te.spellcheck=!1,Te.name="edu-program-fill",Te.placeholder="\u8BF7\u8F93\u5165",Te.dataset.id=oe;const je=Object.keys(tn).length;return tn[je]=Te,`<span class="edu-program-fill-wrap ${fe===X?"":"show"}" style="width:${fe===X?"400px":"100%"}" title=${te||""}><span>${Te.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Ht(fe){return fe=fe.replace(/!\[.*?\]\(.*?\)/g,""),fe=fe.replace(/\[.*?\]\(.*?\)/g,""),fe=fe.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),fe=fe.replace(/<embed.*?>/g,""),fe=fe.replace(/<img.*?>/g,""),fe=fe.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),fe=fe.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),fe=fe.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),fe=fe.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),fe}const ut=fe=>fe.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(oe,te){let Te=te.replace(/(\n|\r)/g,"").split("}"),je=[];return Te.map(Me=>{Me!=""&&je.push(`.${Lt.current} ${Me}`)}),`<style>${je.join("}")}</style>`}),wt=(0,O.useMemo)(()=>{try{const Te=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,je=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Me=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Fe=/\(\/attachments\/download\//g;Be=Be.replace(Fe,"("+m.Z.API_SERVER+"/attachments/download/").replace(Te,"("+m.Z.API_SERVER+"/api/attachments/").replace(je,'"'+m.Z.API_SERVER+"/api/attachments/").replace(Me,'"'+m.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(Te){}if(N){let Te=-1;return Be=Be.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(je,Me,Fe){var Je;return++Te,Rt(je,Te,(Je=v==null?void 0:v[Te])==null?void 0:Je.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${ut(Be||"")}</pre>`}let fe=ut(Be);fe=(0,q.ZP)(fe);const oe=(0,q.ez)();Be.match(/\[TOC\]/)&&(fe=fe.replace("<p>[TOC]</p>",(0,q.Qv)()),(0,q.Iy)()),fe=fe.replace(/(__special_katext_id_\d+__)/g,(Te,je)=>{const{type:Me,expression:Fe}=oe[je];return(0,re.renderToString)(D(Fe)||"",{displayMode:Me==="block",throwOnError:!1,output:"html"})}),fe=fe.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,q.AL)();const te=document.createElement("div");if(te.innerHTML=fe,Ee)return te.innerText;if(be){const Te=be.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Q(te,Te),te.innerHTML}return setTimeout(()=>R(),500),te.innerHTML},[Be,be]);(0,O.useEffect)(()=>{Re.current&&Re.current.querySelectorAll(["input","textarea"]).forEach(oe=>{oe.oninput=he,oe.onblur=pe,oe.onfocus=le})},[gt]),(0,O.useEffect)(()=>{var fe,oe,te,Te,je;if(v!=null&&v.length)try{const Me=Re.current.querySelectorAll(".edu-program-fill-score"),Fe=Re.current.querySelectorAll('[name="edu-program-fill"]');for(const[Je,Xe]of Fe.entries())Xe.value=((fe=v==null?void 0:v[Je])==null?void 0:fe.value)||"",((oe=v==null?void 0:v[Je])==null?void 0:oe.type)==="warning"?Xe.className="program-fill-warning":((te=v==null?void 0:v[Je])==null?void 0:te.type)==="success"?Xe.className="program-fill-success":Xe.className="";for(const[Je,Xe]of Me.entries())Xe.innerHTML=(Te=v==null?void 0:v[Je])!=null&&Te.score?`${(je=v==null?void 0:v[Je])==null?void 0:je.score}\u5206`:"";at(v)}catch(Me){console.log(Me,"error")}},[v]);const he=fe=>{gt[fe.target.dataset.id]=gt[fe.target.dataset.id]||{},gt[fe.target.dataset.id].value=fe.target.value,at([...gt]),x(gt,fe.target.dataset.id)},pe=fe=>{gt[fe.target.dataset.id]=gt[fe.target.dataset.id]||{},gt[fe.target.dataset.id].value=fe.target.value,at([...gt]),Z(gt,fe.target.dataset.id)},le=fe=>{gt[fe.target.dataset.id]=gt[fe.target.dataset.id]||{},gt[fe.target.dataset.id].value=fe.target.value,at([...gt]),me(gt,fe.target.dataset.id)};function Q(fe,oe){return fe.childNodes.forEach(te=>{var Te;if(te.childNodes.length>0)Q(te,oe);else if(te.nodeName!=="IMG")if(te.innerHTML)te.innerHTML=(Te=te.innerHTML)==null?void 0:Te.replace(new RegExp(oe,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const je=document.createElement("span");je.innerHTML=te.textContent.replace(new RegExp(oe,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),te.replaceWith(je)}})}const Re=(0,O.useRef)();q.jb.WebkitLineClamp=ge,ge&&(de=$($({},de),q.jb));function H(fe){let oe=fe.target;if(oe.tagName.toUpperCase()==="A"){let te=oe.getAttribute("href");if(te.indexOf("office")>-1)fe.preventDefault(),ze(te),mt("office");else if(te.indexOf("application/pdf")>-1)fe.preventDefault(),ze(te),mt("pdf");else if(te.indexOf("text/html")>-1)fe.preventDefault(),ze(te),mt("html");else if(te.startsWith("#")){fe.preventDefault();let Te=document.getElementById(te.replace("#",""));Te&&Te.scrollIntoView(!0)}}}const R=()=>{var fe;const oe=(fe=Re.current)==null?void 0:fe.querySelectorAll("video");oe==null||oe.forEach(te=>{if(te.oncontextmenu=()=>!1,te.src.indexOf(".m3u8")>-1&&!te.canPlayType("application/vnd.apple.mpegurl")){if(A.ZP.isSupported()){var Te=new A.ZP;Te.loadSource(te.src),Te.attachMedia(te)}}})};(0,O.useEffect)(()=>{if(Re.current&&wt&&wt.match(L)&&window.PR.prettyPrint(),Re.current)return Re.current.addEventListener("click",H),()=>{var fe;(fe=Re.current)==null||fe.removeEventListener("click",H),(0,q.AL)(),(0,q.Iy)()}},[wt,Re.current,H]),(0,O.useEffect)(()=>{var fe;const oe=te=>{te.preventDefault(),te.clipboardData.setData("text",window.getSelection().toString())};return(fe=Re.current)==null||fe.addEventListener("copy",oe),()=>{var te;(te=Re.current)==null||te.removeEventListener("copy",oe)}},[Re.current]);const P=fe=>/<style[\s\S]*?>/i.test(fe||"");return O.createElement(O.Fragment,null,Ee&&O.createElement("div",{ref:Re},wt),!Ee&&!P(wt)&&O.createElement("div",{ref:Re,style:$({},de),className:`${Ce||""} ${J?"disabled-fill":""} markdown-body ${Lt.current}`,dangerouslySetInnerHTML:{__html:wt}}),!Ee&&P(wt)&&O.createElement(_,{html:wt}),O.createElement(I.Z,{close:!0,data:Ue,type:Ue!=null&&Ue.length?qe:"",style:$({},W),onClose:()=>ze("")}))}},23954:function(Xt,Ze,p){"use strict";p.d(Ze,{SV:function(){return Re},ZP:function(){return Q}});var O=p(59301),K=p(76374);const q={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"]},ce={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"]},A={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(`
|
|
|
`)}]},m={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(`
|
|
|
`)}]},w={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
|
|
|
`)}]};var re=p(53184),o=p.n(re),I=Object.defineProperty,k=Object.defineProperties,g=Object.getOwnPropertyDescriptors,_=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,B=(H,R,P)=>R in H?I(H,R,{enumerable:!0,configurable:!0,writable:!0,value:P}):H[R]=P,se=(H,R)=>{for(var P in R||(R={}))S.call(R,P)&&B(H,P,R[P]);if(_)for(var P of _(R))T.call(R,P)&&B(H,P,R[P]);return H},z=(H,R)=>k(H,g(R)),$=(H,R,P)=>new Promise((fe,oe)=>{var te=Me=>{try{je(P.next(Me))}catch(Fe){oe(Fe)}},Te=Me=>{try{je(P.throw(Me))}catch(Fe){oe(Fe)}},je=Me=>Me.done?fe(Me.value):Promise.resolve(Me.value).then(te,Te);je((P=P.apply(H,R)).next())});const G={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"]}},X=(H,R)=>R.map(P=>({label:P,kind:H.languages.CompletionItemKind.Keyword,insertText:P})),L=H=>Object.keys(G.tables).map(R=>({label:R,kind:H.languages.CompletionItemKind.Variable,insertText:R})),D=(H,R)=>{const P=G.tables[H];return P?P.map(fe=>({label:fe,kind:R.languages.CompletionItemKind.Field,insertText:fe})):[]};function Y(H,R,P,fe,oe){let te=R.getWordUntilPosition(P),Te={startLineNumber:P.lineNumber,endLineNumber:P.lineNumber,startColumn:te.startColumn,endColumn:te.endColumn},je=fe.map(Me=>({label:Me,kind:H.languages.CompletionItemKind.Keyword,insertText:Me,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Te}));return oe.map(Me=>{je.push(z(se({},Me),{range:Te}))}),je}var j=H=>{G.languages.map(oe=>(H.languages.registerDocumentFormattingEditProvider(oe,{provideDocumentFormattingEdits(te,Te,je){return $(this,null,function*(){const Me=o()(te.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:te.getFullModelRange(),text:Me}]})}}),oe));const R=A.quickKey.map(oe=>({label:oe.label,kind:H.languages.CompletionItemKind.Method,insertText:oe.content,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet})),P=m.quickKey.map(oe=>({label:oe.label,kind:H.languages.CompletionItemKind.Method,insertText:oe.content,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet})),fe=ce.quickKey.map(oe=>({label:oe.label,kind:H.languages.CompletionItemKind.Method,insertText:oe.content,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet}));H.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(oe,te){var Te=oe.getWordUntilPosition(te),je={startLineNumber:te.lineNumber,endLineNumber:te.lineNumber,startColumn:Te.startColumn,endColumn:Te.endColumn},Me=oe.getLineContent(te.lineNumber).substring(Te.startColumn-2,Te.endColumn);return{suggestions:[...A.keywords.map(Fe=>({label:Fe,kind:H.languages.CompletionItemKind.Function,documentation:Fe,insertText:Fe,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je})),...A.quickKey.map(Fe=>({label:Fe.label,kind:H.languages.CompletionItemKind.Function,documentation:Fe.content,insertText:Me.startsWith("#")?Fe.content.replace(/#/,""):Fe.content,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je}))]}}}),H.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(oe,te){var Te=oe.getWordUntilPosition(te),je={startLineNumber:te.lineNumber,endLineNumber:te.lineNumber,startColumn:Te.startColumn,endColumn:Te.endColumn};return{suggestions:[...q.keywords.map(Me=>({label:Me,kind:H.languages.CompletionItemKind.Function,documentation:Me,insertText:Me,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je}))]}}}),H.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(oe,te){var Te=oe.getWordUntilPosition(te),je={startLineNumber:te.lineNumber,endLineNumber:te.lineNumber,startColumn:Te.startColumn,endColumn:Te.endColumn},Me=oe.getLineContent(te.lineNumber).substring(Te.startColumn-2,Te.endColumn);return{suggestions:[...ce.keywords.map(Fe=>({label:Fe,kind:H.languages.CompletionItemKind.Function,documentation:Fe,insertText:Fe,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je})),...ce.quickKey.map(Fe=>({label:Fe.label,kind:H.languages.CompletionItemKind.Function,documentation:Fe.content,insertText:Me.startsWith("#")?Fe.content.replace(/#/,""):Fe.content,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je}))]}}}),H.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(oe,te){var Te=oe.getWordUntilPosition(te),je={startLineNumber:te.lineNumber,endLineNumber:te.lineNumber,startColumn:Te.startColumn,endColumn:Te.endColumn},Me=oe.getLineContent(te.lineNumber).substring(Te.startColumn-2,Te.endColumn);return{suggestions:[...w.keywords.map(Fe=>({label:Fe,kind:H.languages.CompletionItemKind.Function,documentation:Fe,insertText:Fe,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je})),...w.quickKey.map(Fe=>({label:Fe.label,kind:H.languages.CompletionItemKind.Function,documentation:Fe.content,insertText:Me.startsWith("#")?Fe.content.replace(/#/,""):Fe.content,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je}))]}}}),H.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(oe,te){var Te=oe.getWordUntilPosition(te),je={startLineNumber:te.lineNumber,endLineNumber:te.lineNumber,startColumn:Te.startColumn,endColumn:Te.endColumn},Me=oe.getLineContent(te.lineNumber).substring(Te.startColumn-2,Te.endColumn);return{suggestions:[...m.keywords.map(Fe=>({label:Fe,kind:H.languages.CompletionItemKind.Function,documentation:Fe,insertText:Fe,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je})),...m.quickKey.map(Fe=>({label:Fe.label,kind:H.languages.CompletionItemKind.Function,documentation:Fe.content,insertText:Me.startsWith("#")?Fe.content.replace(/#/,""):Fe.content,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je}))]}}})};const xe="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ce=Object.defineProperty,Ee=(H,R,P)=>R in H?Ce(H,R,{enumerable:!0,configurable:!0,writable:!0,value:P}):H[R]=P,ge=(H,R,P)=>Ee(H,typeof R!="symbol"?R+"":R,P);const de=class Ou{constructor(R,P,fe){this.placeholder=R,this.editor=P,this.monaco=fe,P.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Ou.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)}};ge(de,"ID","editor.widget.placeholderHint");var be=de,N=p(96236),ue=p(8591),J=p(6848),v=p(89392),x=p(34604),Z=p(56102),me=Object.defineProperty,Be=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,gt=(H,R,P)=>R in H?me(H,R,{enumerable:!0,configurable:!0,writable:!0,value:P}):H[R]=P,at=(H,R)=>{for(var P in R||(R={}))qe.call(R,P)&>(H,P,R[P]);if(ze)for(var P of ze(R))mt.call(R,P)&>(H,P,R[P]);return H},Lt=(H,R)=>Be(H,Ue(R)),tn=(H,R)=>{var P={};for(var fe in H)qe.call(H,fe)&&R.indexOf(fe)<0&&(P[fe]=H[fe]);if(H!=null&&ze)for(var fe of ze(H))R.indexOf(fe)<0&&mt.call(H,fe)&&(P[fe]=H[fe]);return P},Rt=(H,R,P)=>new Promise((fe,oe)=>{var te=Me=>{try{je(P.next(Me))}catch(Fe){oe(Fe)}},Te=Me=>{try{je(P.throw(Me))}catch(Fe){oe(Fe)}},je=Me=>Me.done?fe(Me.value):Promise.resolve(Me.value).then(te,Te);je((P=P.apply(H,R)).next())});function Ht(H){return/^\d+$/.test(H)?`${H}px`:H}function ut(){}let wt=!1;const he={"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 pe(H=[]){let R=H;if(Array.isArray(H)){for(let P=0;P<H.length;P++){let fe=he[H[P]];if(fe)return fe}return R[0]}return he[R]||R}let le=null;var Q=H=>{var R=H,{width:P="100%",height:fe="100%",value:oe,language:te="javascript",style:Te={},options:je={},overrideServices:Me={},theme:Fe="vs-dark",onEditBlur:Je,isCopy:Xe=!1,onSave:Ve,autoHeight:xt=!1,forbidCopy:Dt=!1,onChange:vt=ut,editorDidMount:Bt=ut,onFocus:Zt=ut,onBreakPoint:C=ut,breakPointValue:M=[],filename:yt="educoder.txt",errorLine:ye,errorContent:Ne="",highlightLine:Sn,openBreakPoint:it=!1,placeholder:nt="",showMiniMap:tt=!0}=R,we=tn(R,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const Oe=(0,O.useRef)(),Le=(0,O.useRef)({}),rt=(0,O.useRef)(),_e=(0,O.useRef)(),Qt=(0,O.useRef)([]),He=(0,O.useRef)(!1),xn=(0,O.useRef)(),Ln=(0,O.useRef)(),_r=(0,O.useRef)(!1),[Hn,yn]=(0,O.useState)(!1);function wn(){let Kt;return Oe.current&&(Kt=new K.Z(Gt=>{for(let qt of Gt)(qt.target.offsetHeight>0||qt.target.offsetWidth>0)&&Le.current.instance.layout()}),Kt.observe(Oe.current)),Kt}function Ye(){ue.ZP.warning({content:decodeURIComponent(xe),key:"monaco-editor-tip"})}const Ot=()=>{let Kt=Le.current.instance;if(oe!=null&&Kt&&Hn){const Gt=Kt.getModel();Gt&&oe!==Gt.getValue()&&(wt=!0,Gt.setValue(oe),Kt.layout(),wt=!1)}};(0,O.useEffect)(()=>{const Kt=x.Z.subscribe("formatDocument",Gt=>{var qt;let fn=Le.current.instance;(qt=fn==null?void 0:fn.getAction)==null||qt.call(fn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Gt=>{vt(Gt)},Kt},[]),(0,O.useEffect)(()=>{var Kt;let Gt=Le.current.instance;_e.current&&clearTimeout(_e.current),_e.current=setTimeout(()=>{Ot()},500),oe&&(oe!=null&&oe.length)&&((Kt=Gt==null?void 0:Gt.updateOptions)==null||Kt.call(Gt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(oe.split(/\r\n|\r|\n/g).length))+3,5)}))},[oe,Hn,Le.current]),(0,O.useEffect)(()=>{if(ye&&Le.current&&Le.current.instance){let Gt=Le.current.instance;Gt.changeViewZones(function(qt){var fn=document.createElement("div");fn.style.padding="10px 20px",fn.style.width="calc(100% - 20px)",fn.className="my-error-line-wrp",fn.innerHTML=Ne,qt.addZone({afterLineNumber:ye||11,heightInLines:3,domNode:fn})});var Kt={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}};Gt.addOverlayWidget(Kt),Gt.revealPositionInCenter({lineNumber:20,column:1})}},[ye,Le.current,Hn]);const Ut=(Kt="",Gt)=>{if(!Kt||Kt.trim()==="")return!0;const fn=Le.current.instance.getModel().getLineTokens(Gt);let an=!1;for(let Qn=0;Qn<2;Qn++)fn.getStandardTokenType(Qn)===1&&(an=!0);return an};(0,O.useEffect)(()=>{var Kt;const Gt=(Kt=Le.current)==null?void 0:Kt.instance;if(Gt&&Hn&&Dt){const qt=Gt.onDidBlurEditorWidget(()=>{_r.current=!1}),fn=Gt.onDidFocusEditorText(()=>{_r.current=!0});return()=>{qt.dispose(),fn.dispose()}}},[Le.current,Hn,Dt]),(0,O.useEffect)(()=>{var Kt;if((Kt=Le.current)!=null&&Kt.instance&&Hn&&it){let Gt=Le.current.instance,qt=Gt.getModel();if(!qt)return;(()=>{var $t;let hn=[],_n=[];const Dn=qt.getAllDecorations();for(let Zn of Dn)Zn.options.className==="highlighted-line"&&(hn.push(($t=Zn==null?void 0:Zn.range)==null?void 0:$t.startLineNumber),_n.push(Zn==null?void 0:Zn.id));if(Sn===hn[0])return;qt.deltaDecorations(_n,[]);const Yn=qt.getLineCount();Sn&&Sn<=Yn&&(Gt.deltaDecorations([],[{range:new le.Range(Sn,1,Sn,qt.getLineMaxColumn(Sn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Gt.revealLineInCenter(Sn))})();const an=($t=!1)=>{var hn;let _n=[],Dn=[];const Yn=qt.getAllDecorations();for(let Zn of Yn)Zn.options.linesDecorationsClassName==="breakpoints-select"&&(_n.push((hn=Zn==null?void 0:Zn.range)==null?void 0:hn.startLineNumber),Dn.push(Zn==null?void 0:Zn.id));if($t)return{lines:_n,ids:Dn};C(_n)},Qn=$t=>Rt(void 0,null,function*(){let hn={range:new le.Range($t,1,$t,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield qt.deltaDecorations([],[hn]),an()}),Rn=$t=>Rt(void 0,null,function*(){let hn=[];const _n=Gt.getLineDecorations($t);for(let Dn of _n)Dn.options.linesDecorationsClassName==="breakpoints-select"&&hn.push(Dn.id);yield qt.deltaDecorations(hn,[]),an()}),ln=$t=>{let hn=Gt.getLineDecorations($t);for(let _n of hn)if(_n.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,v.isEqual)(M,an(!0).lines)){qt.deltaDecorations(an(!0).ids,[]);const $t=M.map(hn=>({range:new le.Range(hn,1,hn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));qt.deltaDecorations([],$t)}const ct=Gt.onDidChangeModelContent($t=>{let hn=Gt.getPosition();if(hn){let _n=hn.lineNumber;clearTimeout(Ln.current),Ln.current=setTimeout(()=>{Ut(qt.getLineContent(_n),_n)?Rn(_n):ln(_n)?(Rn(_n),Qn(_n)):an()},100)}}),pt=Gt.onMouseDown($t=>{var hn,_n,Dn;if($t.target.detail&&((Dn=(_n=(hn=$t.target)==null?void 0:hn.element)==null?void 0:_n.className)!=null&&Dn.includes("line-numbers"))){let Yn=$t.target.position.lineNumber;if(Ut(qt.getLineContent(Yn),Yn))return;ln(Yn)?Rn(Yn):Qn(Yn)}}),Tt=$t=>{let hn={range:new le.Range($t,1,$t,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Qt.current=Gt.deltaDecorations(Qt.current,[hn])},Ft=()=>{Qt.current=Gt.deltaDecorations(Qt.current,[])},It=Gt.onMouseMove($t=>{var hn,_n,Dn;if(Ft(),$t.target.detail&&((Dn=(_n=(hn=$t.target)==null?void 0:hn.element)==null?void 0:_n.className)!=null&&Dn.includes("line-numbers"))){let Yn=$t.target.position.lineNumber;if(Ut(qt.getLineContent(Yn),Yn))return;Tt(Yn)}}),sn=Gt.onMouseLeave(()=>{Ft()});return()=>{ct.dispose(),pt.dispose(),It.dispose(),sn.dispose()}}},[Le.current,Hn,M,Sn,it,te]),(0,O.useEffect)(()=>{var Kt;(Kt=Le.current)!=null&&Kt.instance&&it&&Le.current.instance.setPosition({lineNumber:0,column:0})},[Sn]);function Ke(){let Kt=Le.current.instance;if(Kt){const Gt=Kt.getSelection(),qt=Le.current.pastePos||{},fn=new le.Range(qt.startLineNumber||Gt.endLineNumber,qt.startColumn||Gt.endColumn,qt.endLineNumber||Gt.endLineNumber,qt.endColumn||Gt.endColumn);setTimeout(()=>{Kt.executeEdits("",[{range:fn,text:""}])},300)}}function Pe(Kt){(window.navigator.platform.match("Mac")?Kt.metaKey:Kt.ctrlKey)&&Kt.keyCode==83&&(Kt.preventDefault(),Ve())}const _t=()=>{if(xt&&Le.current.instance){const Kt=Le.current.instance.getContentHeight();In(Kt<fe?fe:Kt)}else In(fe)};function Ct(Kt){var Gt=document.createEvent("MouseEvents");Gt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Kt.dispatchEvent(Gt)}const nn=Kt=>{if(!_r.current)return;const{keyCode:Gt,ctrlKey:qt,metaKey:fn,target:an,type:Qn}=Kt;return(Qn==="paste"||(Gt===67||Gt===86)&&(fn||qt))&&an.nodeName==="TEXTAREA"&&(Ye(),Kt.preventDefault()),!1};function Vt(Kt,Gt){var qt=window.URL||window.webkitURL||window,fn=new Blob([Gt]),an=document.createElementNS("http://www.w3.org/1999/xhtml","a");an.href=qt.createObjectURL(fn),an.download=Kt,Ct(an)}(0,O.useEffect)(()=>{_t()},[_t]),(0,O.useEffect)(()=>{Oe.current&&!Hn&&Promise.all([p.e(8909),p.e(3267)]).then(p.bind(p,71448)).then(Kt=>{try{le=Kt,Le.current.instance=le.editor.create(Oe.current,{value:oe,language:pe(te),theme:Fe,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:tt||!1}},Me);const Gt=Le.current.instance;let an=[...N.BH._menuItems].find(ct=>ct[0]._debugName=="EditorContext")[1],Qn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Rn=(ct,pt)=>{var Tt,Ft;let It=ct._first;do pt.includes((Ft=(Tt=It.element)==null?void 0:Tt.command)==null?void 0:Ft.id)&&ct._remove(It);while(It=It.next)};if(Bt(Gt,le),setTimeout(()=>{_t(),Le.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Vt(yt||"educoder.txt",Gt.getValue())}})},500),Le.current.subscription=Gt.onDidChangeModelContent(ct=>{He.current?clearTimeout(xn.current):(_t(),vt(Gt.getValue(),ct)),xn.current=setTimeout(()=>{He.current=!1},500)}),window.Monaco||j(le,pe(te)),Dt&&(Rn(an,Qn),Oe.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",nn),window.removeEventListener("paste",nn),window.addEventListener("keydown",nn),window.addEventListener("paste",nn)),window.Monaco=le,Je&&Gt.onDidBlurEditorWidget(()=>{Je(Gt.getValue())}),Zt&&Gt.onDidFocusEditorText(()=>{Zt(Gt.getValue())}),Dt)try{Gt.onDidPaste(ct=>{const pt=Gt.getSelection(),Tt=Le.current.pastePos||{},Ft=new le.Range(Tt.startLineNumber||pt.endLineNumber,Tt.startColumn||pt.endColumn,Tt.endLineNumber||pt.endLineNumber,Tt.endColumn||pt.endColumn);Gt.executeEdits("",[{range:ct.range,text:""}])})}catch(ct){}let ln=wn();return nt&&typeof nt=="string"&&new be(nt,Gt,le),yn(!0),()=>{const ct=Le.current.instance;ct.dispose();const pt=ct.getModel();pt&&pt.dispose(),Le.current.subscription&&Le.current.subscription.dispose(),ln.unobserve(Oe.current)}}catch(Gt){}})},[]),(0,O.useEffect)(()=>{if(Le.current.instance&&Hn)return document.addEventListener("keydown",Pe,!1),()=>{document.removeEventListener("keydown",Pe)}},[Ve,Hn]),(0,O.useEffect)(()=>{let Kt=Le.current.instance;if(Kt&&Hn){let Gt=pe(te);le.editor.setModelLanguage(Kt.getModel(),Gt)}},[te,Hn]),(0,O.useEffect)(()=>{Le.current.instance&&Hn&&le.editor.setTheme(Fe)},[Fe,Hn]),(0,O.useEffect)(()=>{let Kt=Le.current.instance;rt.current=je,Kt&&Hn&&(Kt.updateOptions(at({},je)),setTimeout(()=>{Kt.getModel().updateOptions(at({},je))},200))},[JSON.stringify(je),Hn]),(0,O.useEffect)(()=>{let Kt=Le.current.instance;Kt&&Hn&&Kt.layout()},[P,fe,Hn]);const[dn,rn]=(0,O.useState)(Ht(P)),[bn,In]=(0,O.useState)(Ht(fe)),Cn=Lt(at({},Te),{width:dn,height:bn,position:"relative"});return O.createElement("div",{className:"my-monaco-editor",ref:Oe,style:Cn},Xe&&O.createElement(Z.CopyToClipboard,{text:oe,onCopy:()=>ue.ZP.success("\u590D\u5236\u6210\u529F")},O.createElement(J.Z,{title:"\u590D\u5236\u4EE3\u7801"},O.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},O.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Re({width:H="100%",height:R="100%",original:P,modified:fe,language:oe,options:te={}}){const Te=(0,O.useRef)(),[je,Me]=(0,O.useState)(null);function Fe(xt){let Dt;return Te.current&&(Dt=new K.Z(vt=>{for(let Bt of vt)(Bt.target.offsetHeight>0||Bt.target.offsetWidth>0)&&xt.layout()}),Dt.observe(Te.current)),Dt}(0,O.useEffect)(()=>(Te.current&&Promise.all([p.e(8909),p.e(9404)]).then(p.bind(p,2550)).then(xt=>{le=xt;const Dt=le.editor.createDiffEditor(Te.current,Lt(at({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},te),{wordWrap:!0}));Me(Dt);let vt=Fe(Dt);return()=>{Dt.dispose();const Bt=Dt.getModel();Bt&&Bt.dispose(),vt.unobserve(Te.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,O.useEffect)(()=>{je&&je.setModel({original:le.editor.createModel(P,oe),modified:le.editor.createModel(fe,oe)})},[P,fe,oe,je]);const Je=Ht(H),Xe=Ht(R),Ve={width:Je,height:Xe};return O.createElement("div",{className:"my-diff-editor",ref:Te,style:Ve})}},60913:function(Xt,Ze,p){"use strict";p.d(Ze,{H:function(){return w}});var O=p(59301),K=p(78241),q=p(92832),ce=p(42441),A=p(85149);const m=({form:re,index:o=1,field:I,ParentName:k=[]})=>{(typeof k=="string"||typeof k=="number")&&(k=[k]);const g=K.default.useWatch([...k,I.name,"chart_1"],{form:re}),_=K.default.useWatch([...k,I.name,"chart_2"],{form:re}),S=K.default.useWatch([...k,I.name,"name"],{form:re}),T=K.default.useWatch([...k,I.name,"question_type"],{form:re}),B=(0,O.useMemo)(()=>{const z=[],$=[];return g==null||g.forEach(G=>{z.push(G==null?void 0:G.x_axis),$.push(G==null?void 0:G.y_axis)}),{tooltip:{},grid:{left:"7%",right:"5%",bottom:"15%",top:"15%",containLabel:!0},xAxis:{type:"category",data:[...z||[],[4,5,6,7,8].includes(T)?"\u5206\u6570\u533A\u95F4":"\u7B54\u5BF9\u9898\u6570\uFF08\u5355\u4F4D\uFF1A\u9898\uFF09"],axisTick:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666",interval:0}},yAxis:{name:"\u4EBA\u6570\uFF08\u5355\u4F4D\uFF1A\u4EBA\uFF09",nameTextStyle:{color:"#666",padding:[0,0,10,0]},type:"value",splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666"}},series:[{data:$,barMaxWidth:"40px",itemStyle:{color:"#A2BEFF",borderColor:"#165DFF"},type:"bar"}]}},[g]),se=(0,O.useMemo)(()=>{const z=[],$=[];return _==null||_.forEach(G=>{z.push(G==null?void 0:G.x_axis),$.push(Math.round((G==null?void 0:G.y_axis)*1e4)/100)}),{tooltip:{},grid:{left:"5%",right:"5%",bottom:"7%",containLabel:!0},xAxis:{type:"category",data:[...z||[],"\u9898\u76EE"],axisTick:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666",interval:0,formatter:(G,X)=>G!=="\u9898\u76EE"?`${X+1}
|
|
|
|
|
|
{subtext|${(G.length>6?G==null?void 0:G.slice(0,6):G).split("").join(`
|
|
|
`)}}`:G,rich:{subtext:{align:"center",color:"#666",lineHeight:15}}}},yAxis:{name:"\u5E73\u5747\u5F97\u5206",nameTextStyle:{color:"#666",padding:[0,0,10,0]},type:"value",splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666"}},series:[{data:$,barMaxWidth:"40px",itemStyle:{color:"#2EC25B"},type:"bar",label:{color:"#666",show:!0,position:"top",valueAnimation:!0,formatter:"{c}%"}}]}},[_]);return O.createElement(O.Fragment,null,O.createElement("div",{className:"text-500 font14 mb10"},o,".",S),O.createElement(K.default.Item,{name:[I.name,"content"]},O.createElement(q.default.TextArea,{rows:3})),O.createElement("div",{className:"mt20"},O.createElement("div",{className:"font14 mb10"},"\u5B66\u5458\u7B54\u9898\u60C5\u51B5"),O.createElement(ce.Z,{className:"bg-white",style:{border:"1px solid #EBEBEB"},option:B})),O.createElement("div",{className:"mt20"},O.createElement("div",{className:"font14 mb10"},"\u5404\u5C0F\u9898\u7B54\u9898\u60C5\u51B5"),O.createElement(ce.Z,{className:"bg-white",style:{border:"1px solid #EBEBEB",height:331},option:se})))};Ze.Z=O.memo(m);const w=O.memo(({form:re,index:o=1,data:I})=>{const k=(0,O.useMemo)(()=>{var _;const S=[],T=[];return(_=I==null?void 0:I.chart_1)==null||_.forEach(B=>{S.push(B==null?void 0:B.x_axis),T.push(B==null?void 0:B.y_axis)}),{tooltip:{},grid:{left:"5%",right:"5%",bottom:"15%",top:"20%",containLabel:!0},xAxis:{type:"category",data:[...S||[],[4,5,6,7,8].includes(I==null?void 0:I.question_type)?"\u5206\u6570\u533A\u95F4":"\u7B54\u5BF9\u9898\u6570\uFF08\u5355\u4F4D\uFF1A\u9898\uFF09"],axisTick:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666",interval:0}},yAxis:{name:"\u4EBA\u6570\uFF08\u5355\u4F4D\uFF1A\u4EBA\uFF09",nameTextStyle:{color:"#666",padding:[0,0,10,0]},type:"value",splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666"}},series:[{data:T,barMaxWidth:"40px",itemStyle:{color:"#A2BEFF",borderColor:"#165DFF"},type:"bar"}]}},[I==null?void 0:I.chart_1]),g=(0,O.useMemo)(()=>{var _;const S=[],T=[];return(_=I==null?void 0:I.chart_2)==null||_.forEach(B=>{S.push(B==null?void 0:B.x_axis),T.push(Math.round((B==null?void 0:B.y_axis)*1e4)/100)}),{tooltip:{},grid:{left:"5%",right:"5%",bottom:"7%",containLabel:!0},xAxis:{type:"category",data:[...S||[],"\u9898\u76EE"],axisTick:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666",interval:0,formatter:(B,se)=>B!=="\u9898\u76EE"?`${se+1}
|
|
|
|
|
|
{subtext|${(B.length>6?B==null?void 0:B.slice(0,6):B).split("").join(`
|
|
|
`)}}`:B,rich:{subtext:{align:"center",color:"#666",lineHeight:15}}}},yAxis:{name:"\u5E73\u5747\u5F97\u5206",nameTextStyle:{color:"#666",padding:[0,0,10,0]},type:"value",splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666"}},series:[{data:T,barMaxWidth:"40px",itemStyle:{color:"#2EC25B"},type:"bar",label:{color:"#666",show:!0,position:"top",valueAnimation:!0,formatter:"{c}%"}}]}},[I==null?void 0:I.chart_2]);return O.createElement("div",{className:"text-start pl10 pr10"},O.createElement("div",{className:"text-500 font14 mb10 c-black"},o,".",I==null?void 0:I.name),O.createElement("div",null,O.createElement(A.Z,{className:"font14 c-grey-333",value:I==null?void 0:I.content})),O.createElement("div",{className:"mt20"},O.createElement(ce.Z,{className:"bg-white",style:{background:"#F6F7F9"},option:k}),O.createElement("div",{className:"font14 mt10 text-center"},"\u56FE",o*2-1,"\xA0\xA0",I==null?void 0:I.name,"\u7B54\u9898\u5F97\u5206\u60C5\u51B5\u5206\u5E03")),O.createElement("div",{className:"mt20"},O.createElement(ce.Z,{className:"bg-white",style:{background:"#F6F7F9",height:331},option:g}),O.createElement("div",{className:"font14 mt10 text-center"},"\u56FE",o*2,"\xA0\xA0",I==null?void 0:I.name,"\u5404\u5C0F\u9898\u5F97\u5206\u7387")))})},83312:function(Xt,Ze,p){"use strict";p.d(Ze,{U:function(){return o}});var O=p(59301),K=Object.defineProperty,q=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable,m=(I,k,g)=>k in I?K(I,k,{enumerable:!0,configurable:!0,writable:!0,value:g}):I[k]=g,w=(I,k)=>{for(var g in k||(k={}))ce.call(k,g)&&m(I,g,k[g]);if(q)for(var g of q(k))A.call(k,g)&&m(I,g,k[g]);return I},re=(I,k,g)=>new Promise((_,S)=>{var T=z=>{try{se(g.next(z))}catch($){S($)}},B=z=>{try{se(g.throw(z))}catch($){S($)}},se=z=>z.done?_(z.value):Promise.resolve(z.value).then(T,B);se((g=g.apply(I,k)).next())});function o(I,k){const[g,_]=(0,O.useState)(k),[S,T]=(0,O.useState)(!1),[B,se]=(0,O.useState)();return[g,S,($,G=!1)=>re(this,null,function*(){const X=G?k:w(w({},g),$);T(!0),_(X);const L=yield I(X);return T(!1),se(L),L}),B,se]}},24768:function(Xt,Ze,p){"use strict";p.d(Ze,{AL:function(){return X},Iy:function(){return k},Qv:function(){return S},ez:function(){return G},jb:function(){return g}});var O=p(32834),K=p.n(O),q=p(11690),ce=p.n(q);let A=1;function m(xe,Ce){const Ee=xe.match(/^(\s+)(?:```)/);if(Ee===null)return Ce;const ge=Ee[1];return Ce.split(`
|
|
|
`).map(de=>{const W=de.match(/^\s+/);if(W===null)return de;const[be]=W;return be.length>=ge.length?de.slice(ge.length):de}).join(`
|
|
|
`)}let w=[],re=["<ul>"];const o=new(K()).Renderer,I=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function k(){w.length=0,re=["<ul>"]}const g={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function _(xe,Ce,Ee,ge){if(Ce>=xe.length||xe[Ce].level<=Ee)return Ce;var de=xe[Ce];ge.push("<li><a href='#"+A+de.anchor+"'>"+de.text+"</a>"),Ce++;var W=[];return Ce=_(xe,Ce,de.level,W),W.length>0&&(ge.push("<ul>"),W.forEach(function(be){ge.push(be)}),ge.push("</ul>")),ge.push("</li>"),Ce=_(xe,Ce,Ee,ge),Ce}function S(){return _(w,0,0,re),re.push("</ul>"),re.join("")}const T={heading(xe){const Ce=I.exec(xe);if(A+=1,Ce)return{type:"heading",raw:Ce[0],depth:Ce[1].length,text:Ce[2]}},fences(xe){const Ce=this.rules.block.fences.exec(xe);if(Ce){const Ee=Ce[0];let ge=m(Ee,Ce[3]||"");const de=Ce[2]?Ce[2].trim():Ce[2];if(["latex","katex","math"].indexOf(de)>=0){const W=z(),be=ge;ge=W,$[W]={type:"block",expression:be}}return{type:"code",raw:Ee,lang:de,text:ge}}}},B=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let se=0;const z=()=>`__special_katext_id_${se++}__`;let $={};function G(){return $}function X(){se=0,$={}}function L(xe){return xe=xe.replace(B,(Ce,Ee)=>{const ge=z();return $[ge]={type:"inline",expression:Ee},ge}),xe}const D=o.listitem;o.listitem=function(xe){return D(L(xe))};const Y=o.paragraph;o.paragraph=function(xe){return Y(L(xe))};const j=o.tablecell;o.tablecell=function(xe,Ce){return j(L(xe),Ce)},o.code=function(xe,Ce,Ee){const ge=(Ce||"").match(/\S*/)[0];return ge?["latex","katex","math"].indexOf(ge)>=0?`<p class='editormd-tex'>${xe}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ce}">${Ee?xe:(0,q.escape)(xe,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(Ee?xe:(0,q.escape)(xe,!0))+"</code></pre>"},o.heading=function(xe,Ce,Ee){let ge=this.options.headerPrefix+Ee.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return w.push({anchor:ge,level:Ce,text:xe}),"<h"+Ce+' id="'+A+ge+'">'+xe+"</h"+Ce+">"},K().setOptions({silent:!0,gfm:!0,pedantic:!1}),K().use({tokenizer:T,renderer:o}),Ze.ZP=K()},36785:function(Xt,Ze,p){"use strict";p.d(Ze,{o2:function(){return A},yT:function(){return m}});var O=p(80702),K=p(33166);const q=K.i.map(w=>`${w}-inverse`),ce=["success","processing","error","default","warning"];function A(w){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,O.Z)(q),(0,O.Z)(K.i)).includes(w):K.i.includes(w)}function m(w){return ce.includes(w)}},50371:function(Xt,Ze){"use strict";function p(){const O=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let K=1;K<arguments.length;K++){const q=K<0||arguments.length<=K?void 0:arguments[K];q&&Object.keys(q).forEach(ce=>{const A=q[ce];A!==void 0&&(O[ce]=A)})}return O}Ze.Z=p},13845:function(Xt,Ze,p){"use strict";p.d(Ze,{F:function(){return O},Z:function(){return K}});function O(q){return q!=null&&q===q.window}function K(q,ce){var A,m;if(typeof window=="undefined")return 0;const w=ce?"scrollTop":"scrollLeft";let re=0;return O(q)?re=q[ce?"pageYOffset":"pageXOffset"]:q instanceof Document?re=q.documentElement[w]:(q instanceof HTMLElement||q)&&(re=q[w]),q&&!O(q)&&typeof re!="number"&&(re=(m=((A=q.ownerDocument)!==null&&A!==void 0?A:q).documentElement)===null||m===void 0?void 0:m[w]),re}},56762:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return K}});var O=p(59301);function K(){const[,q]=O.useReducer(ce=>ce+1,0);return q}},79676:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return m}});var O=p(19447);function K(w,re,o,I){if(I===!1)return{adjustX:!1,adjustY:!1};const k=I&&typeof I=="object"?I:{},g={};switch(w){case"top":case"bottom":g.shiftX=re.dropdownArrowOffset*2+o;break;case"left":case"right":g.shiftY=re.dropdownArrowOffsetVertical*2+o;break}const _=Object.assign(Object.assign({},g),k);return _.shiftX||(_.adjustX=!0),_.shiftY||(_.adjustY=!0),_}const q={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"]}},ce={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"]}},A=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function m(w){const{arrowWidth:re,autoAdjustOverflow:o,arrowPointAtCenter:I,offset:k,borderRadius:g,visibleFirst:_}=w,S=re/2,T={};return Object.keys(q).forEach(B=>{const se=I&&ce[B]||q[B],z=Object.assign(Object.assign({},se),{offset:[0,0]});switch(T[B]=z,A.has(B)&&(z.autoArrow=!1),B){case"top":case"topLeft":case"topRight":z.offset[1]=-S-k;break;case"bottom":case"bottomLeft":case"bottomRight":z.offset[1]=S+k;break;case"left":case"leftTop":case"leftBottom":z.offset[0]=-S-k;break;case"right":case"rightTop":case"rightBottom":z.offset[0]=S+k;break}const $=(0,O.fS)({contentRadius:g,limitVerticalRadius:!0});if(I)switch(B){case"topLeft":case"bottomLeft":z.offset[0]=-$.dropdownArrowOffset-S;break;case"topRight":case"bottomRight":z.offset[0]=$.dropdownArrowOffset+S;break;case"leftTop":case"rightTop":z.offset[1]=-$.dropdownArrowOffset-S;break;case"leftBottom":case"rightBottom":z.offset[1]=$.dropdownArrowOffset+S;break}z.overflow=K(B,$,re,o),_&&(z.htmlRegion="visibleFirst")}),T}},68031:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return ce}});var O=p(16089);function K(A,m,w,re){const o=w-m;return A/=re/2,A<1?o/2*A*A*A+m:o/2*((A-=2)*A*A+2)+m}var q=p(13845);function ce(A){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:w=()=>window,callback:re,duration:o=450}=m,I=w(),k=(0,q.Z)(I,!0),g=Date.now(),_=()=>{const T=Date.now()-g,B=K(T>o?o:T,k,A,o);(0,q.F)(I)?I.scrollTo(window.pageXOffset,B):I instanceof Document||I.constructor.name==="HTMLDocument"?I.documentElement.scrollTop=B:I.scrollTop=B,T<o?(0,O.Z)(_):typeof re=="function"&&re()};(0,O.Z)(_)}},19080:function(Xt,Ze,p){"use strict";p.d(Ze,{F:function(){return A},Z:function(){return ce}});var O=p(92310),K=p.n(O);const q=null;function ce(m,w,re){return K()({[`${m}-status-success`]:w==="success",[`${m}-status-warning`]:w==="warning",[`${m}-status-error`]:w==="error",[`${m}-status-validating`]:w==="validating",[`${m}-has-feedback`]:re})}const A=(m,w)=>w||m},66104:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return be}});var O=p(92310),K=p.n(O),q=p(11592),ce=p(26112),A=p(59301),m=p(92343),w=p(36355),re=p(84105),o=p(91857);const I=N=>{let{children:ue}=N;const{getPrefixCls:J}=A.useContext(w.E_),v=J("breadcrumb");return A.createElement("li",{className:`${v}-separator`,"aria-hidden":"true"},ue===""?ue:ue||"/")};I.__ANT_BREADCRUMB_SEPARATOR=!0;var k=I,g=function(N,ue){var J={};for(var v in N)Object.prototype.hasOwnProperty.call(N,v)&&ue.indexOf(v)<0&&(J[v]=N[v]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,v=Object.getOwnPropertySymbols(N);x<v.length;x++)ue.indexOf(v[x])<0&&Object.prototype.propertyIsEnumerable.call(N,v[x])&&(J[v[x]]=N[v[x]]);return J};function _(N,ue){if(N.title===void 0||N.title===null)return null;const J=Object.keys(ue).join("|");return typeof N.title=="object"?N.title:String(N.title).replace(new RegExp(`:(${J})`,"g"),(v,x)=>ue[x]||v)}function S(N,ue,J,v){if(J==null)return null;const{className:x,onClick:Z}=ue,me=g(ue,["className","onClick"]),Be=Object.assign(Object.assign({},(0,ce.Z)(me,{data:!0,aria:!0})),{onClick:Z});return v!==void 0?A.createElement("a",Object.assign({},Be,{className:K()(`${N}-link`,x),href:v}),J):A.createElement("span",Object.assign({},Be,{className:K()(`${N}-link`,x)}),J)}function T(N,ue){return(v,x,Z,me,Be)=>{if(ue)return ue(v,x,Z,me);const Ue=_(v,x);return S(N,v,Ue,Be)}}var B=function(N,ue){var J={};for(var v in N)Object.prototype.hasOwnProperty.call(N,v)&&ue.indexOf(v)<0&&(J[v]=N[v]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,v=Object.getOwnPropertySymbols(N);x<v.length;x++)ue.indexOf(v[x])<0&&Object.prototype.propertyIsEnumerable.call(N,v[x])&&(J[v[x]]=N[v[x]]);return J};const se=N=>{const{prefixCls:ue,separator:J="/",children:v,menu:x,overlay:Z,dropdownProps:me,href:Be}=N,ze=(qe=>{if(x||Z){const mt=Object.assign({},me);if(x){const gt=x||{},{items:at}=gt,Lt=B(gt,["items"]);mt.menu=Object.assign(Object.assign({},Lt),{items:at==null?void 0:at.map((tn,Rt)=>{var{key:Ht,title:ut,label:wt,path:he}=tn,pe=B(tn,["key","title","label","path"]);let le=wt!=null?wt:ut;return he&&(le=A.createElement("a",{href:`${Be}${he}`},le)),Object.assign(Object.assign({},pe),{key:Ht!=null?Ht:Rt,label:le})})})}else Z&&(mt.overlay=Z);return A.createElement(o.Z,Object.assign({placement:"bottom"},mt),A.createElement("span",{className:`${ue}-overlay-link`},qe,A.createElement(re.Z,null)))}return qe})(v);return ze!=null?A.createElement(A.Fragment,null,A.createElement("li",null,ze),J&&A.createElement(k,null,J)):null},z=N=>{const{prefixCls:ue,children:J,href:v}=N,x=B(N,["prefixCls","children","href"]),{getPrefixCls:Z}=A.useContext(w.E_),me=Z("breadcrumb",ue);return A.createElement(se,Object.assign({},x,{prefixCls:me}),S(me,x,J,v))};z.__ANT_BREADCRUMB_ITEM=!0;var $=z,G=p(17313),X=p(83116),L=p(37613);const D=N=>{const{componentCls:ue,iconCls:J}=N;return{[ue]:Object.assign(Object.assign({},(0,G.Wf)(N)),{color:N.itemColor,fontSize:N.fontSize,[J]:{fontSize:N.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:N.linkColor,transition:`color ${N.motionDurationMid}`,padding:`0 ${N.paddingXXS}px`,borderRadius:N.borderRadiusSM,height:N.lineHeight*N.fontSize,display:"inline-block",marginInline:-N.marginXXS,"&:hover":{color:N.linkHoverColor,backgroundColor:N.colorBgTextHover}},(0,G.Qy)(N)),"li:last-child":{color:N.lastItemColor},[`${ue}-separator`]:{marginInline:N.separatorMargin,color:N.separatorColor},[`${ue}-link`]:{[`
|
|
|
> ${J} + span,
|
|
|
> ${J} + a
|
|
|
`]:{marginInlineStart:N.marginXXS}},[`${ue}-overlay-link`]:{borderRadius:N.borderRadiusSM,height:N.lineHeight*N.fontSize,display:"inline-block",padding:`0 ${N.paddingXXS}px`,marginInline:-N.marginXXS,[`> ${J}`]:{marginInlineStart:N.marginXXS,fontSize:N.fontSizeIcon},"&:hover":{color:N.linkHoverColor,backgroundColor:N.colorBgTextHover,a:{color:N.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${N.componentCls}-rtl`]:{direction:"rtl"}})}};var Y=(0,X.Z)("Breadcrumb",N=>{const ue=(0,L.TS)(N,{});return[D(ue)]},N=>({itemColor:N.colorTextDescription,lastItemColor:N.colorText,iconFontSize:N.fontSize,linkColor:N.colorTextDescription,linkHoverColor:N.colorText,separatorColor:N.colorTextDescription,separatorMargin:N.marginXS})),j=function(N,ue){var J={};for(var v in N)Object.prototype.hasOwnProperty.call(N,v)&&ue.indexOf(v)<0&&(J[v]=N[v]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,v=Object.getOwnPropertySymbols(N);x<v.length;x++)ue.indexOf(v[x])<0&&Object.prototype.propertyIsEnumerable.call(N,v[x])&&(J[v[x]]=N[v[x]]);return J};function xe(N){const{breadcrumbName:ue,children:J}=N,v=j(N,["breadcrumbName","children"]),x=Object.assign({title:ue},v);return J&&(x.menu={items:J.map(Z=>{var{breadcrumbName:me}=Z,Be=j(Z,["breadcrumbName"]);return Object.assign(Object.assign({},Be),{title:me})})}),x}function Ce(N,ue){return(0,A.useMemo)(()=>N||(ue?ue.map(xe):null),[N,ue])}var Ee=function(N,ue){var J={};for(var v in N)Object.prototype.hasOwnProperty.call(N,v)&&ue.indexOf(v)<0&&(J[v]=N[v]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,v=Object.getOwnPropertySymbols(N);x<v.length;x++)ue.indexOf(v[x])<0&&Object.prototype.propertyIsEnumerable.call(N,v[x])&&(J[v[x]]=N[v[x]]);return J};const ge=(N,ue)=>{if(ue===void 0)return ue;let J=(ue||"").replace(/^\//,"");return Object.keys(N).forEach(v=>{J=J.replace(`:${v}`,N[v])}),J},de=N=>{const{prefixCls:ue,separator:J="/",style:v,className:x,rootClassName:Z,routes:me,items:Be,children:Ue,itemRender:ze,params:qe={}}=N,mt=Ee(N,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:gt,direction:at,breadcrumb:Lt}=A.useContext(w.E_);let tn;const Rt=gt("breadcrumb",ue),[Ht,ut]=Y(Rt),wt=Ce(Be,me),he=T(Rt,ze);if(wt&&wt.length>0){const Q=[],Re=Be||me;tn=wt.map((H,R)=>{const{path:P,key:fe,type:oe,menu:te,overlay:Te,onClick:je,className:Me,separator:Fe,dropdownProps:Je}=H,Xe=ge(qe,P);Xe!==void 0&&Q.push(Xe);const Ve=fe!=null?fe:R;if(oe==="separator")return A.createElement(k,{key:Ve},Fe);const xt={},Dt=R===wt.length-1;te?xt.menu=te:Te&&(xt.overlay=Te);let{href:vt}=H;return Q.length&&Xe!==void 0&&(vt=`#/${Q.join("/")}`),A.createElement(se,Object.assign({key:Ve},xt,(0,ce.Z)(H,{data:!0,aria:!0}),{className:Me,dropdownProps:Je,href:vt,separator:Dt?"":J,onClick:je,prefixCls:Rt}),he(H,qe,Re,Q,vt))})}else if(Ue){const Q=(0,q.Z)(Ue).length;tn=(0,q.Z)(Ue).map((Re,H)=>{if(!Re)return Re;const R=H===Q-1;return(0,m.Tm)(Re,{separator:R?"":J,key:H})})}const pe=K()(Rt,Lt==null?void 0:Lt.className,{[`${Rt}-rtl`]:at==="rtl"},x,Z,ut),le=Object.assign(Object.assign({},Lt==null?void 0:Lt.style),v);return Ht(A.createElement("nav",Object.assign({className:pe,style:le},mt),A.createElement("ol",null,tn)))};de.Item=$,de.Separator=k;var W=de,be=W},24905:function(Xt,Ze,p){"use strict";p.d(Ze,{default:function(){return Y}});var O=p(92310),K=p.n(O),q=p(5630),ce=p(59301),A=p(36355),m=p(1684),w=p(32441),o=ce.createContext(null),I=p(98447),k=p(14088),g=p(4572),_=function(j,xe){var Ce={};for(var Ee in j)Object.prototype.hasOwnProperty.call(j,Ee)&&xe.indexOf(Ee)<0&&(Ce[Ee]=j[Ee]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,Ee=Object.getOwnPropertySymbols(j);ge<Ee.length;ge++)xe.indexOf(Ee[ge])<0&&Object.prototype.propertyIsEnumerable.call(j,Ee[ge])&&(Ce[Ee[ge]]=j[Ee[ge]]);return Ce};const S=(j,xe)=>{var Ce;const{prefixCls:Ee,className:ge,rootClassName:de,children:W,indeterminate:be=!1,style:N,onMouseEnter:ue,onMouseLeave:J,skipGroup:v=!1,disabled:x}=j,Z=_(j,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:me,direction:Be,checkbox:Ue}=ce.useContext(A.E_),ze=ce.useContext(o),{isFormItemInput:qe}=ce.useContext(w.aM),mt=ce.useContext(m.Z),gt=(Ce=(ze==null?void 0:ze.disabled)||x)!==null&&Ce!==void 0?Ce:mt,at=ce.useRef(Z.value);ce.useEffect(()=>{ze==null||ze.registerValue(Z.value)},[]),ce.useEffect(()=>{if(!v)return Z.value!==at.current&&(ze==null||ze.cancelValue(at.current),ze==null||ze.registerValue(Z.value),at.current=Z.value),()=>ze==null?void 0:ze.cancelValue(Z.value)},[Z.value]);const Lt=me("checkbox",Ee),[tn,Rt]=(0,I.ZP)(Lt),Ht=Object.assign({},Z);ze&&!v&&(Ht.onChange=function(){Z.onChange&&Z.onChange.apply(Z,arguments),ze.toggleOption&&ze.toggleOption({label:W,value:Z.value})},Ht.name=ze.name,Ht.checked=ze.value.includes(Z.value));const ut=K()(`${Lt}-wrapper`,{[`${Lt}-rtl`]:Be==="rtl",[`${Lt}-wrapper-checked`]:Ht.checked,[`${Lt}-wrapper-disabled`]:gt,[`${Lt}-wrapper-in-form-item`]:qe},Ue==null?void 0:Ue.className,ge,de,Rt),wt=K()({[`${Lt}-indeterminate`]:be},g.A,Rt),he=be?"mixed":void 0;return tn(ce.createElement(k.Z,{component:"Checkbox",disabled:gt},ce.createElement("label",{className:ut,style:Object.assign(Object.assign({},Ue==null?void 0:Ue.style),N),onMouseEnter:ue,onMouseLeave:J},ce.createElement(q.Z,Object.assign({"aria-checked":he},Ht,{prefixCls:Lt,className:wt,disabled:gt,ref:xe})),W!==void 0&&ce.createElement("span",null,W))))};var B=ce.forwardRef(S),se=p(80702),z=p(2738),$=function(j,xe){var Ce={};for(var Ee in j)Object.prototype.hasOwnProperty.call(j,Ee)&&xe.indexOf(Ee)<0&&(Ce[Ee]=j[Ee]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,Ee=Object.getOwnPropertySymbols(j);ge<Ee.length;ge++)xe.indexOf(Ee[ge])<0&&Object.prototype.propertyIsEnumerable.call(j,Ee[ge])&&(Ce[Ee[ge]]=j[Ee[ge]]);return Ce};const G=(j,xe)=>{const{defaultValue:Ce,children:Ee,options:ge=[],prefixCls:de,className:W,rootClassName:be,style:N,onChange:ue}=j,J=$(j,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:v,direction:x}=ce.useContext(A.E_),[Z,me]=ce.useState(J.value||Ce||[]),[Be,Ue]=ce.useState([]);ce.useEffect(()=>{"value"in J&&me(J.value||[])},[J.value]);const ze=ce.useMemo(()=>ge.map(pe=>typeof pe=="string"||typeof pe=="number"?{label:pe,value:pe}:pe),[ge]),qe=pe=>{Ue(le=>le.filter(Q=>Q!==pe))},mt=pe=>{Ue(le=>[].concat((0,se.Z)(le),[pe]))},gt=pe=>{const le=Z.indexOf(pe.value),Q=(0,se.Z)(Z);le===-1?Q.push(pe.value):Q.splice(le,1),"value"in J||me(Q),ue==null||ue(Q.filter(Re=>Be.includes(Re)).sort((Re,H)=>{const R=ze.findIndex(fe=>fe.value===Re),P=ze.findIndex(fe=>fe.value===H);return R-P}))},at=v("checkbox",de),Lt=`${at}-group`,[tn,Rt]=(0,I.ZP)(at),Ht=(0,z.Z)(J,["value","disabled"]),ut=ge.length?ze.map(pe=>ce.createElement(B,{prefixCls:at,key:pe.value.toString(),disabled:"disabled"in pe?pe.disabled:J.disabled,value:pe.value,checked:Z.includes(pe.value),onChange:pe.onChange,className:`${Lt}-item`,style:pe.style,title:pe.title},pe.label)):Ee,wt={toggleOption:gt,value:Z,disabled:J.disabled,name:J.name,registerValue:mt,cancelValue:qe},he=K()(Lt,{[`${Lt}-rtl`]:x==="rtl"},W,be,Rt);return tn(ce.createElement("div",Object.assign({className:he,style:N},Ht,{ref:xe}),ce.createElement(o.Provider,{value:wt},ut)))},X=ce.forwardRef(G);var L=ce.memo(X);const D=B;D.Group=L,D.__ANT_CHECKBOX=!0;var Y=D},98447:function(Xt,Ze,p){"use strict";p.d(Ze,{C2:function(){return A}});var O=p(17313),K=p(37613),q=p(83116);const ce=m=>{const{checkboxCls:w}=m,re=`${w}-wrapper`;return[{[`${w}-group`]:Object.assign(Object.assign({},(0,O.Wf)(m)),{display:"inline-flex",flexWrap:"wrap",columnGap:m.marginXS,[`> ${m.antCls}-row`]:{flex:1}}),[re]:Object.assign(Object.assign({},(0,O.Wf)(m)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${re}`]:{marginInlineStart:0},[`&${re}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[w]:Object.assign(Object.assign({},(0,O.Wf)(m)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:m.borderRadiusSM,alignSelf:"center",[`${w}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${w}-inner`]:Object.assign({},(0,O.oN)(m))},[`${w}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:m.checkboxSize,height:m.checkboxSize,direction:"ltr",backgroundColor:m.colorBgContainer,border:`${m.lineWidth}px ${m.lineType} ${m.colorBorder}`,borderRadius:m.borderRadiusSM,borderCollapse:"separate",transition:`all ${m.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:m.checkboxSize/14*5,height:m.checkboxSize/14*8,border:`${m.lineWidthBold}px solid ${m.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${m.motionDurationFast} ${m.motionEaseInBack}, opacity ${m.motionDurationFast}`}},"& + span":{paddingInlineStart:m.paddingXS,paddingInlineEnd:m.paddingXS}})},{[`
|
|
|
${re}:not(${re}-disabled),
|
|
|
${w}:not(${w}-disabled)
|
|
|
`]:{[`&:hover ${w}-inner`]:{borderColor:m.colorPrimary}},[`${re}:not(${re}-disabled)`]:{[`&:hover ${w}-checked:not(${w}-disabled) ${w}-inner`]:{backgroundColor:m.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${w}-checked:not(${w}-disabled):after`]:{borderColor:m.colorPrimaryHover}}},{[`${w}-checked`]:{[`${w}-inner`]:{backgroundColor:m.colorPrimary,borderColor:m.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${m.motionDurationMid} ${m.motionEaseOutBack} ${m.motionDurationFast}`}}},[`
|
|
|
${re}-checked:not(${re}-disabled),
|
|
|
${w}-checked:not(${w}-disabled)
|
|
|
`]:{[`&:hover ${w}-inner`]:{backgroundColor:m.colorPrimaryHover,borderColor:"transparent"}}},{[w]:{"&-indeterminate":{[`${w}-inner`]:{backgroundColor:m.colorBgContainer,borderColor:m.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:m.fontSizeLG/2,height:m.fontSizeLG/2,backgroundColor:m.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${re}-disabled`]:{cursor:"not-allowed"},[`${w}-disabled`]:{[`&, ${w}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${w}-inner`]:{background:m.colorBgContainerDisabled,borderColor:m.colorBorder,"&:after":{borderColor:m.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:m.colorTextDisabled},[`&${w}-indeterminate ${w}-inner::after`]:{background:m.colorTextDisabled}}}]};function A(m,w){const re=(0,K.TS)(w,{checkboxCls:`.${m}`,checkboxSize:w.controlInteractiveSize});return[ce(re)]}Ze.ZP=(0,q.Z)("Checkbox",(m,w)=>{let{prefixCls:re}=w;return[A(re,m)]})},93891:function(Xt,Ze,p){"use strict";var O=p(59301),K=p(36355),q=p(64165);const ce=A=>{const{componentName:m}=A,{getPrefixCls:w}=(0,O.useContext)(K.E_),re=w("empty");switch(m){case"Table":case"List":return O.createElement(q.Z,{image:q.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return O.createElement(q.Z,{image:q.Z.PRESENTED_IMAGE_SIMPLE,className:`${re}-small`});default:return O.createElement(q.Z,null)}};Ze.Z=ce},91857:function(Xt,Ze,p){"use strict";var O=p(59301),K=p(38819),q=p(92310),ce=p.n(q),A=p(31561),m=p(70425),w=p(18929),re=p(2738),o=p(79676),I=p(53487),k=p(92343),g=p(36355),_=p(20834),S=p(40875),T=p(88088),B=p(47211);const se=null,z=L=>{const{menu:D,arrow:Y,prefixCls:j,children:xe,trigger:Ce,disabled:Ee,dropdownRender:ge,getPopupContainer:de,overlayClassName:W,rootClassName:be,open:N,onOpenChange:ue,visible:J,onVisibleChange:v,mouseEnterDelay:x=.15,mouseLeaveDelay:Z=.1,autoAdjustOverflow:me=!0,placement:Be="",overlay:Ue,transitionName:ze}=L,{getPopupContainer:qe,getPrefixCls:mt,direction:gt}=O.useContext(g.E_),at=O.useMemo(()=>{const te=mt();return ze!==void 0?ze:Be.includes("top")?`${te}-slide-down`:`${te}-slide-up`},[mt,Be,ze]),Lt=O.useMemo(()=>Be?Be.includes("Center")?Be.slice(0,Be.indexOf("Center")):Be:gt==="rtl"?"bottomRight":"bottomLeft",[Be,gt]),tn=mt("dropdown",j),[Rt,Ht]=(0,B.Z)(tn),[,ut]=(0,T.Z)(),wt=O.Children.only(xe),he=(0,k.Tm)(wt,{className:ce()(`${tn}-trigger`,{[`${tn}-rtl`]:gt==="rtl"},wt.props.className),disabled:Ee}),pe=Ee?[]:Ce;let le;pe&&pe.includes("contextMenu")&&(le=!0);const[Q,Re]=(0,w.Z)(!1,{value:N!=null?N:J}),H=(0,m.useEvent)(te=>{ue==null||ue(te),v==null||v(te),Re(te)}),R=ce()(W,be,Ht,{[`${tn}-rtl`]:gt==="rtl"}),P=(0,o.Z)({arrowPointAtCenter:typeof Y=="object"&&Y.pointAtCenter,autoAdjustOverflow:me,offset:ut.marginXXS,arrowWidth:Y?ut.sizePopupArrow:0,borderRadius:ut.borderRadius}),fe=O.useCallback(()=>{Re(!1)},[]),oe=()=>{let te;return D!=null&&D.items?te=O.createElement(_.default,Object.assign({},D)):typeof Ue=="function"?te=Ue():te=Ue,ge&&(te=ge(te)),te=O.Children.only(typeof te=="string"?O.createElement("span",null,te):te),O.createElement(S.J,{prefixCls:`${tn}-menu`,expandIcon:O.createElement("span",{className:`${tn}-menu-submenu-arrow`},O.createElement(K.Z,{className:`${tn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:fe,validator:Te=>{let{mode:je}=Te}},te)};return Rt(O.createElement(A.Z,Object.assign({alignPoint:le},(0,re.Z)(L,["rootClassName"]),{mouseEnterDelay:x,mouseLeaveDelay:Z,visible:Q,builtinPlacements:P,arrow:!!Y,overlayClassName:R,prefixCls:tn,getPopupContainer:de||qe,transitionName:at,trigger:pe,overlay:oe,placement:Lt,onVisibleChange:H}),he))};function $(L){return Object.assign(Object.assign({},L),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const G=(0,I.Z)(z,"dropdown",L=>L,$),X=L=>O.createElement(G,Object.assign({},L),O.createElement("span",null));z._InternalPanelDoNotUseOrYouWillBeFired=X,Ze.Z=z},38854:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return T}});var O=p(91857),K=p(92310),q=p.n(K),ce=p(59301),A=p(18785),m=p(3113),w=p(36355),re=p(81327),o=p(33234),I=p(47211),k=function(B,se){var z={};for(var $ in B)Object.prototype.hasOwnProperty.call(B,$)&&se.indexOf($)<0&&(z[$]=B[$]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,$=Object.getOwnPropertySymbols(B);G<$.length;G++)se.indexOf($[G])<0&&Object.prototype.propertyIsEnumerable.call(B,$[G])&&(z[$[G]]=B[$[G]]);return z};const g=B=>{const{getPopupContainer:se,getPrefixCls:z,direction:$}=ce.useContext(w.E_),{prefixCls:G,type:X="default",danger:L,disabled:D,loading:Y,onClick:j,htmlType:xe,children:Ce,className:Ee,menu:ge,arrow:de,autoFocus:W,overlay:be,trigger:N,align:ue,open:J,onOpenChange:v,placement:x,getPopupContainer:Z,href:me,icon:Be=ce.createElement(A.Z,null),title:Ue,buttonsRender:ze=oe=>oe,mouseEnterDelay:qe,mouseLeaveDelay:mt,overlayClassName:gt,overlayStyle:at,destroyPopupOnHide:Lt,dropdownRender:tn}=B,Rt=k(B,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),Ht=z("dropdown",G),ut=`${Ht}-button`,[wt,he]=(0,I.Z)(Ht),pe={menu:ge,arrow:de,autoFocus:W,align:ue,disabled:D,trigger:D?[]:N,onOpenChange:v,getPopupContainer:Z||se,mouseEnterDelay:qe,mouseLeaveDelay:mt,overlayClassName:gt,overlayStyle:at,destroyPopupOnHide:Lt,dropdownRender:tn},{compactSize:le,compactItemClassnames:Q}=(0,o.ri)(Ht,$),Re=q()(ut,Q,Ee,he);"overlay"in B&&(pe.overlay=be),"open"in B&&(pe.open=J),"placement"in B?pe.placement=x:pe.placement=$==="rtl"?"bottomLeft":"bottomRight";const H=ce.createElement(m.ZP,{type:X,danger:L,disabled:D,loading:Y,onClick:j,htmlType:xe,href:me,title:Ue},Ce),R=ce.createElement(m.ZP,{type:X,danger:L,icon:Be}),[P,fe]=ze([H,R]);return wt(ce.createElement(re.Z.Compact,Object.assign({className:Re,size:le,block:!0},Rt),P,ce.createElement(O.Z,Object.assign({},pe),fe)))};g.__ANT_BUTTON=!0;var _=g;const S=O.Z;S.Button=_;var T=S},47211:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return k}});var O=p(17313),K=p(13826),q=p(92899),ce=p(29878),A=p(19447),m=p(83116),w=p(37613),o=g=>{const{componentCls:_,menuCls:S,colorError:T,colorTextLightSolid:B}=g,se=`${S}-item`;return{[`${_}, ${_}-menu-submenu`]:{[`${S} ${se}`]:{[`&${se}-danger:not(${se}-disabled)`]:{color:T,"&:hover":{color:B,backgroundColor:T}}}}}};const I=g=>{const{componentCls:_,menuCls:S,zIndexPopup:T,dropdownArrowDistance:B,sizePopupArrow:se,antCls:z,iconCls:$,motionDurationMid:G,dropdownPaddingVertical:X,fontSize:L,dropdownEdgeChildPadding:D,colorTextDisabled:Y,fontSizeIcon:j,controlPaddingHorizontal:xe,colorBgElevated:Ce}=g;return[{[_]:Object.assign(Object.assign({},(0,O.Wf)(g)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:T,display:"block","&::before":{position:"absolute",insetBlock:-B+se/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${z}-btn`]:{[`& > ${$}-down, & > ${z}-btn-icon > ${$}-down`]:{fontSize:j}},[`${_}-wrap`]:{position:"relative",[`${z}-btn > ${$}-down`]:{fontSize:j},[`${$}-down::before`]:{transition:`transform ${G}`}},[`${_}-wrap-open`]:{[`${$}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${z}-slide-down-enter${z}-slide-down-enter-active${_}-placement-bottomLeft,
|
|
|
&${z}-slide-down-appear${z}-slide-down-appear-active${_}-placement-bottomLeft,
|
|
|
&${z}-slide-down-enter${z}-slide-down-enter-active${_}-placement-bottom,
|
|
|
&${z}-slide-down-appear${z}-slide-down-appear-active${_}-placement-bottom,
|
|
|
&${z}-slide-down-enter${z}-slide-down-enter-active${_}-placement-bottomRight,
|
|
|
&${z}-slide-down-appear${z}-slide-down-appear-active${_}-placement-bottomRight`]:{animationName:K.fJ},[`&${z}-slide-up-enter${z}-slide-up-enter-active${_}-placement-topLeft,
|
|
|
&${z}-slide-up-appear${z}-slide-up-appear-active${_}-placement-topLeft,
|
|
|
&${z}-slide-up-enter${z}-slide-up-enter-active${_}-placement-top,
|
|
|
&${z}-slide-up-appear${z}-slide-up-appear-active${_}-placement-top,
|
|
|
&${z}-slide-up-enter${z}-slide-up-enter-active${_}-placement-topRight,
|
|
|
&${z}-slide-up-appear${z}-slide-up-appear-active${_}-placement-topRight`]:{animationName:K.Qt},[`&${z}-slide-down-leave${z}-slide-down-leave-active${_}-placement-bottomLeft,
|
|
|
&${z}-slide-down-leave${z}-slide-down-leave-active${_}-placement-bottom,
|
|
|
&${z}-slide-down-leave${z}-slide-down-leave-active${_}-placement-bottomRight`]:{animationName:K.Uw},[`&${z}-slide-up-leave${z}-slide-up-leave-active${_}-placement-topLeft,
|
|
|
&${z}-slide-up-leave${z}-slide-up-leave-active${_}-placement-top,
|
|
|
&${z}-slide-up-leave${z}-slide-up-leave-active${_}-placement-topRight`]:{animationName:K.ly}})},(0,A.ZP)(g,{colorBg:Ce,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${_} ${S}`]:{position:"relative",margin:0},[`${S}-submenu-popup`]:{position:"absolute",zIndex:T,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${_}, ${_}-menu-submenu`]:{[S]:Object.assign(Object.assign({padding:D,listStyleType:"none",backgroundColor:Ce,backgroundClip:"padding-box",borderRadius:g.borderRadiusLG,outline:"none",boxShadow:g.boxShadowSecondary},(0,O.Qy)(g)),{[`${S}-item-group-title`]:{padding:`${X}px ${xe}px`,color:g.colorTextDescription,transition:`all ${G}`},[`${S}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${S}-item-icon`]:{minWidth:L,marginInlineEnd:g.marginXS,fontSize:g.fontSizeSM},[`${S}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${G}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${S}-item, ${S}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${X}px ${xe}px`,color:g.colorText,fontWeight:"normal",fontSize:L,lineHeight:g.lineHeight,cursor:"pointer",transition:`all ${G}`,borderRadius:g.borderRadiusSM,"&:hover, &-active":{backgroundColor:g.controlItemBgHover}},(0,O.Qy)(g)),{"&-selected":{color:g.colorPrimary,backgroundColor:g.controlItemBgActive,"&:hover, &-active":{backgroundColor:g.controlItemBgActiveHover}},"&-disabled":{color:Y,cursor:"not-allowed","&:hover":{color:Y,backgroundColor:Ce,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${g.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:g.colorSplit},[`${_}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:g.paddingXS,[`${_}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:g.colorTextDescription,fontSize:j,fontStyle:"normal"}}}),[`${S}-item-group-list`]:{margin:`0 ${g.marginXS}px`,padding:0,listStyle:"none"},[`${S}-submenu-title`]:{paddingInlineEnd:xe+g.fontSizeSM},[`${S}-submenu-vertical`]:{position:"relative"},[`${S}-submenu${S}-submenu-disabled ${_}-menu-submenu-title`]:{[`&, ${_}-menu-submenu-arrow-icon`]:{color:Y,backgroundColor:Ce,cursor:"not-allowed"}},[`${S}-submenu-selected ${_}-menu-submenu-title`]:{color:g.colorPrimary}})}},[(0,K.oN)(g,"slide-up"),(0,K.oN)(g,"slide-down"),(0,q.Fm)(g,"move-up"),(0,q.Fm)(g,"move-down"),(0,ce._y)(g,"zoom-big")]]};var k=(0,m.Z)("Dropdown",(g,_)=>{let{rootPrefixCls:S}=_;const{marginXXS:T,sizePopupArrow:B,controlHeight:se,fontSize:z,lineHeight:$,paddingXXS:G,componentCls:X,borderRadiusLG:L}=g,D=(se-z*$)/2,{dropdownArrowOffset:Y}=(0,A.fS)({contentRadius:L}),j=(0,w.TS)(g,{menuCls:`${X}-menu`,rootPrefixCls:S,dropdownArrowDistance:B/2+T,dropdownArrowOffset:Y,dropdownPaddingVertical:D,dropdownEdgeChildPadding:G});return[I(j),o(j)]},g=>({zIndexPopup:g.zIndexPopupBase+50}))},64165:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return G}});var O=p(92310),K=p.n(O),q=p(59301),ce=p(36355),A=p(9763),m=p(64993),w=p(88088),o=()=>{const[,X]=(0,w.Z)(),D=new m.C(X.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return q.createElement("svg",{style:D,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},q.createElement("g",{fill:"none",fillRule:"evenodd"},q.createElement("g",{transform:"translate(24 31.67)"},q.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),q.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),q.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),q.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),q.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),q.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),q.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},q.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),q.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},k=()=>{const[,X]=(0,w.Z)(),{colorFill:L,colorFillTertiary:D,colorFillQuaternary:Y,colorBgContainer:j}=X,{borderColor:xe,shadowColor:Ce,contentColor:Ee}=(0,q.useMemo)(()=>({borderColor:new m.C(L).onBackground(j).toHexShortString(),shadowColor:new m.C(D).onBackground(j).toHexShortString(),contentColor:new m.C(Y).onBackground(j).toHexShortString()}),[L,D,Y,j]);return q.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},q.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},q.createElement("ellipse",{fill:Ce,cx:"32",cy:"33",rx:"32",ry:"7"}),q.createElement("g",{fillRule:"nonzero",stroke:xe},q.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),q.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Ee}))))},g=p(83116),_=p(37613);const S=X=>{const{componentCls:L,margin:D,marginXS:Y,marginXL:j,fontSize:xe,lineHeight:Ce}=X;return{[L]:{marginInline:Y,fontSize:xe,lineHeight:Ce,textAlign:"center",[`${L}-image`]:{height:X.emptyImgHeight,marginBottom:Y,opacity:X.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${L}-description`]:{color:X.colorText},[`${L}-footer`]:{marginTop:D},"&-normal":{marginBlock:j,color:X.colorTextDisabled,[`${L}-description`]:{color:X.colorTextDisabled},[`${L}-image`]:{height:X.emptyImgHeightMD}},"&-small":{marginBlock:Y,color:X.colorTextDisabled,[`${L}-image`]:{height:X.emptyImgHeightSM}}}}};var T=(0,g.Z)("Empty",X=>{const{componentCls:L,controlHeightLG:D}=X,Y=(0,_.TS)(X,{emptyImgCls:`${L}-img`,emptyImgHeight:D*2.5,emptyImgHeightMD:D,emptyImgHeightSM:D*.875});return[S(Y)]}),B=function(X,L){var D={};for(var Y in X)Object.prototype.hasOwnProperty.call(X,Y)&&L.indexOf(Y)<0&&(D[Y]=X[Y]);if(X!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,Y=Object.getOwnPropertySymbols(X);j<Y.length;j++)L.indexOf(Y[j])<0&&Object.prototype.propertyIsEnumerable.call(X,Y[j])&&(D[Y[j]]=X[Y[j]]);return D};const se=q.createElement(o,null),z=q.createElement(k,null),$=X=>{var{className:L,rootClassName:D,prefixCls:Y,image:j=se,description:xe,children:Ce,imageStyle:Ee,style:ge}=X,de=B(X,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:W,direction:be,empty:N}=q.useContext(ce.E_),ue=W("empty",Y),[J,v]=T(ue),[x]=(0,A.Z)("Empty"),Z=typeof xe!="undefined"?xe:x==null?void 0:x.description,me=typeof Z=="string"?Z:"empty";let Be=null;return typeof j=="string"?Be=q.createElement("img",{alt:me,src:j}):Be=j,J(q.createElement("div",Object.assign({className:K()(v,ue,N==null?void 0:N.className,{[`${ue}-normal`]:j===z,[`${ue}-rtl`]:be==="rtl"},L,D),style:Object.assign(Object.assign({},N==null?void 0:N.style),ge)},de),q.createElement("div",{className:`${ue}-image`,style:Ee},Be),Z&&q.createElement("div",{className:`${ue}-description`},Z),Ce&&q.createElement("div",{className:`${ue}-footer`},Ce)))};$.PRESENTED_IMAGE_DEFAULT=se,$.PRESENTED_IMAGE_SIMPLE=z;var G=$},78241:function(Xt,Ze,p){"use strict";p.d(Ze,{default:function(){return wn}});var O=p(80702),K=p(92310),q=p.n(K),ce=p(77900),A=p(59301),m=p(62892),w=p(32441);function re(Ye){const[Ot,Ut]=A.useState(Ye);return A.useEffect(()=>{const Ke=setTimeout(()=>{Ut(Ye)},Ye.length?0:10);return()=>{clearTimeout(Ke)}},[Ye]),Ot}var o=p(17313),I=p(29878),k=p(8378),g=p(37613),_=p(83116),T=Ye=>{const{componentCls:Ot}=Ye,Ut=`${Ot}-show-help`,Ke=`${Ot}-show-help-item`;return{[Ut]:{transition:`opacity ${Ye.motionDurationSlow} ${Ye.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Ke]:{overflow:"hidden",transition:`height ${Ye.motionDurationSlow} ${Ye.motionEaseInOut},
|
|
|
opacity ${Ye.motionDurationSlow} ${Ye.motionEaseInOut},
|
|
|
transform ${Ye.motionDurationSlow} ${Ye.motionEaseInOut} !important`,[`&${Ke}-appear, &${Ke}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Ke}-leave-active`]:{transform:"translateY(-5px)"}}}}};const B=Ye=>({legend:{display:"block",width:"100%",marginBottom:Ye.marginLG,padding:0,color:Ye.colorTextDescription,fontSize:Ye.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Ye.lineWidth}px ${Ye.lineType} ${Ye.colorBorder}`},label:{fontSize:Ye.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Ye.controlOutlineWidth}px ${Ye.controlOutline}`},output:{display:"block",paddingTop:15,color:Ye.colorText,fontSize:Ye.fontSize,lineHeight:Ye.lineHeight}}),se=(Ye,Ot)=>{const{formItemCls:Ut}=Ye;return{[Ut]:{[`${Ut}-label > label`]:{height:Ot},[`${Ut}-control-input`]:{minHeight:Ot}}}},z=Ye=>{const{componentCls:Ot}=Ye;return{[Ye.componentCls]:Object.assign(Object.assign(Object.assign({},(0,o.Wf)(Ye)),B(Ye)),{[`${Ot}-text`]:{display:"inline-block",paddingInlineEnd:Ye.paddingSM},"&-small":Object.assign({},se(Ye,Ye.controlHeightSM)),"&-large":Object.assign({},se(Ye,Ye.controlHeightLG))})}},$=Ye=>{const{formItemCls:Ot,iconCls:Ut,componentCls:Ke,rootPrefixCls:Pe,labelRequiredMarkColor:_t,labelColor:Ct,labelFontSize:nn,labelHeight:Vt,labelColonMarginInlineStart:dn,labelColonMarginInlineEnd:rn,itemMarginBottom:bn}=Ye;return{[Ot]:Object.assign(Object.assign({},(0,o.Wf)(Ye)),{marginBottom:bn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${Pe}-row`]:{display:"none"},"&-has-warning":{[`${Ot}-split`]:{color:Ye.colorError}},"&-has-error":{[`${Ot}-split`]:{color:Ye.colorWarning}},[`${Ot}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Ye.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Vt,color:Ct,fontSize:nn,[`> ${Ut}`]:{fontSize:Ye.fontSize,verticalAlign:"top"},[`&${Ot}-required:not(${Ot}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Ye.marginXXS,color:_t,fontSize:Ye.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Ke}-hide-required-mark &`]:{display:"none"}},[`${Ot}-optional`]:{display:"inline-block",marginInlineStart:Ye.marginXXS,color:Ye.colorTextDescription,[`${Ke}-hide-required-mark &`]:{display:"none"}},[`${Ot}-tooltip`]:{color:Ye.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Ye.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:dn,marginInlineEnd:rn},[`&${Ot}-no-colon::after`]:{content:'"\\a0"'}}},[`${Ot}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Pe}-col-'"]):not([class*="' ${Pe}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Ye.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Ot]:{"&-explain, &-extra":{clear:"both",color:Ye.colorTextDescription,fontSize:Ye.fontSize,lineHeight:Ye.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Ye.controlHeightSM,transition:`color ${Ye.motionDurationMid} ${Ye.motionEaseOut}`},"&-explain":{"&-error":{color:Ye.colorError},"&-warning":{color:Ye.colorWarning}}},[`&-with-help ${Ot}-explain`]:{height:"auto",opacity:1},[`${Ot}-feedback-icon`]:{fontSize:Ye.fontSize,textAlign:"center",visibility:"visible",animationName:I.kr,animationDuration:Ye.motionDurationMid,animationTimingFunction:Ye.motionEaseOutBack,pointerEvents:"none","&-success":{color:Ye.colorSuccess},"&-error":{color:Ye.colorError},"&-warning":{color:Ye.colorWarning},"&-validating":{color:Ye.colorPrimary}}})}},G=Ye=>{const{componentCls:Ot,formItemCls:Ut}=Ye;return{[`${Ot}-horizontal`]:{[`${Ut}-label`]:{flexGrow:0},[`${Ut}-control`]:{flex:"1 1 0",minWidth:0},[`${Ut}-label[class$='-24'], ${Ut}-label[class*='-24 ']`]:{[`& + ${Ut}-control`]:{minWidth:"unset"}}}}},X=Ye=>{const{componentCls:Ot,formItemCls:Ut}=Ye;return{[`${Ot}-inline`]:{display:"flex",flexWrap:"wrap",[Ut]:{flex:"none",marginInlineEnd:Ye.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Ut}-label,
|
|
|
> ${Ut}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Ut}-label`]:{flex:"none"},[`${Ot}-text`]:{display:"inline-block"},[`${Ut}-has-feedback`]:{display:"inline-block"}}}}},L=Ye=>({padding:Ye.verticalLabelPadding,margin:Ye.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),D=Ye=>{const{componentCls:Ot,formItemCls:Ut,rootPrefixCls:Ke}=Ye;return{[`${Ut} ${Ut}-label`]:L(Ye),[Ot]:{[Ut]:{flexWrap:"wrap",[`${Ut}-label, ${Ut}-control`]:{[`&:not([class*=" ${Ke}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Y=Ye=>{const{componentCls:Ot,formItemCls:Ut,rootPrefixCls:Ke}=Ye;return{[`${Ot}-vertical`]:{[Ut]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Ot}-item-control`]:{width:"100%"}}},[`${Ot}-vertical ${Ut}-label,
|
|
|
.${Ke}-col-24${Ut}-label,
|
|
|
.${Ke}-col-xl-24${Ut}-label`]:L(Ye),[`@media (max-width: ${Ye.screenXSMax}px)`]:[D(Ye),{[Ot]:{[`.${Ke}-col-xs-24${Ut}-label`]:L(Ye)}}],[`@media (max-width: ${Ye.screenSMMax}px)`]:{[Ot]:{[`.${Ke}-col-sm-24${Ut}-label`]:L(Ye)}},[`@media (max-width: ${Ye.screenMDMax}px)`]:{[Ot]:{[`.${Ke}-col-md-24${Ut}-label`]:L(Ye)}},[`@media (max-width: ${Ye.screenLGMax}px)`]:{[Ot]:{[`.${Ke}-col-lg-24${Ut}-label`]:L(Ye)}}}},j=(Ye,Ot)=>(0,g.TS)(Ye,{formItemCls:`${Ye.componentCls}-item`,rootPrefixCls:Ot});var xe=(0,_.Z)("Form",(Ye,Ot)=>{let{rootPrefixCls:Ut}=Ot;const Ke=j(Ye,Ut);return[z(Ke),$(Ke),T(Ke),G(Ke),X(Ke),Y(Ke),(0,k.Z)(Ke),I.kr]},Ye=>({labelRequiredMarkColor:Ye.colorError,labelColor:Ye.colorTextHeading,labelFontSize:Ye.fontSize,labelHeight:Ye.controlHeight,labelColonMarginInlineStart:Ye.marginXXS/2,labelColonMarginInlineEnd:Ye.marginXS,itemMarginBottom:Ye.marginLG,verticalLabelPadding:`0 0 ${Ye.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Ce=[];function Ee(Ye,Ot,Ut){let Ke=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Ye=="string"?Ye:`${Ot}-${Ke}`,error:Ye,errorStatus:Ut}}var de=Ye=>{let{help:Ot,helpStatus:Ut,errors:Ke=Ce,warnings:Pe=Ce,className:_t,fieldId:Ct,onVisibleChanged:nn}=Ye;const{prefixCls:Vt}=A.useContext(w.Rk),dn=`${Vt}-item-explain`,[,rn]=xe(Vt),bn=(0,A.useMemo)(()=>(0,m.Z)(Vt),[Vt]),In=re(Ke),Cn=re(Pe),Kt=A.useMemo(()=>Ot!=null?[Ee(Ot,"help",Ut)]:[].concat((0,O.Z)(In.map((qt,fn)=>Ee(qt,"error","error",fn))),(0,O.Z)(Cn.map((qt,fn)=>Ee(qt,"warning","warning",fn)))),[Ot,Ut,In,Cn]),Gt={};return Ct&&(Gt.id=`${Ct}_help`),A.createElement(ce.default,{motionDeadline:bn.motionDeadline,motionName:`${Vt}-show-help`,visible:!!Kt.length,onVisibleChanged:nn},qt=>{const{className:fn,style:an}=qt;return A.createElement("div",Object.assign({},Gt,{className:q()(dn,fn,_t,rn),style:an,role:"alert"}),A.createElement(ce.CSSMotionList,Object.assign({keys:Kt},(0,m.Z)(Vt),{motionName:`${Vt}-show-help-item`,component:!1}),Qn=>{const{key:Rn,error:ln,errorStatus:ct,className:pt,style:Tt}=Qn;return A.createElement("div",{key:Rn,className:q()(pt,{[`${dn}-${ct}`]:ct}),style:Tt},ln)}))})},W=p(95013),be=p(36355),N=p(1684),ue=p(52946),J=p(19716),v=p(16722);const x=["parentNode"],Z="form_item";function me(Ye){return Ye===void 0||Ye===!1?[]:Array.isArray(Ye)?Ye:[Ye]}function Be(Ye,Ot){if(!Ye.length)return;const Ut=Ye.join("_");return Ot?`${Ot}_${Ut}`:x.includes(Ut)?`${Z}_${Ut}`:Ut}function Ue(Ye,Ot,Ut,Ke,Pe,_t){let Ct=Ke;return _t!==void 0?Ct=_t:Ut.validating?Ct="validating":Ye.length?Ct="error":Ot.length?Ct="warning":(Ut.touched||Pe&&Ut.validated)&&(Ct="success"),Ct}function ze(Ye){return me(Ye).join("_")}function qe(Ye){const[Ot]=(0,W.useForm)(),Ut=A.useRef({}),Ke=A.useMemo(()=>Ye!=null?Ye:Object.assign(Object.assign({},Ot),{__INTERNAL__:{itemRef:Pe=>_t=>{const Ct=ze(Pe);_t?Ut.current[Ct]=_t:delete Ut.current[Ct]}},scrollToField:function(Pe){let _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Ct=me(Pe),nn=Be(Ct,Ke.__INTERNAL__.name),Vt=nn?document.getElementById(nn):null;Vt&&(0,v.Z)(Vt,Object.assign({scrollMode:"if-needed",block:"nearest"},_t))},getFieldInstance:Pe=>{const _t=ze(Pe);return Ut.current[_t]}}),[Ye,Ot]);return[Ke]}var mt=p(28726),gt=function(Ye,Ot){var Ut={};for(var Ke in Ye)Object.prototype.hasOwnProperty.call(Ye,Ke)&&Ot.indexOf(Ke)<0&&(Ut[Ke]=Ye[Ke]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Ke=Object.getOwnPropertySymbols(Ye);Pe<Ke.length;Pe++)Ot.indexOf(Ke[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Ye,Ke[Pe])&&(Ut[Ke[Pe]]=Ye[Ke[Pe]]);return Ut};const at=(Ye,Ot)=>{const Ut=A.useContext(N.Z),{getPrefixCls:Ke,direction:Pe,form:_t}=A.useContext(be.E_),{prefixCls:Ct,className:nn,rootClassName:Vt,size:dn,disabled:rn=Ut,form:bn,colon:In,labelAlign:Cn,labelWrap:Kt,labelCol:Gt,wrapperCol:qt,hideRequiredMark:fn,layout:an="horizontal",scrollToFirstError:Qn,requiredMark:Rn,onFinishFailed:ln,name:ct,style:pt,feedbackIcons:Tt}=Ye,Ft=gt(Ye,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),It=(0,J.Z)(dn),sn=A.useContext(mt.Z),$t=(0,A.useMemo)(()=>Rn!==void 0?Rn:_t&&_t.requiredMark!==void 0?_t.requiredMark:!fn,[fn,Rn,_t]),hn=In!=null?In:_t==null?void 0:_t.colon,_n=Ke("form",Ct),[Dn,Yn]=xe(_n),Zn=q()(_n,`${_n}-${an}`,{[`${_n}-hide-required-mark`]:$t===!1,[`${_n}-rtl`]:Pe==="rtl",[`${_n}-${It}`]:It},Yn,_t==null?void 0:_t.className,nn,Vt),[dr]=qe(bn),{__INTERNAL__:En}=dr;En.name=ct;const Tn=(0,A.useMemo)(()=>({name:ct,labelAlign:Cn,labelCol:Gt,labelWrap:Kt,wrapperCol:qt,vertical:an==="vertical",colon:hn,requiredMark:$t,itemRef:En.itemRef,form:dr,feedbackIcons:Tt}),[ct,Cn,Gt,qt,an,hn,$t,dr,Tt]);A.useImperativeHandle(Ot,()=>dr);const pr=(Ir,sr)=>{if(Ir){let ar={block:"nearest"};typeof Ir=="object"&&(ar=Ir),dr.scrollToField(sr,ar)}},mr=Ir=>{if(ln==null||ln(Ir),Ir.errorFields.length){const sr=Ir.errorFields[0].name;if(Qn!==void 0){pr(Qn,sr);return}_t&&_t.scrollToFirstError!==void 0&&pr(_t.scrollToFirstError,sr)}};return Dn(A.createElement(N.n,{disabled:rn},A.createElement(ue.q,{size:It},A.createElement(w.RV,Object.assign({},{validateMessages:sn}),A.createElement(w.q3.Provider,{value:Tn},A.createElement(W.default,Object.assign({id:ct},Ft,{name:ct,onFinishFailed:mr,form:dr,style:Object.assign(Object.assign({},_t==null?void 0:_t.style),pt),className:Zn})))))))};var tn=A.forwardRef(at),Rt=p(41799),Ht=p(8654),ut=p(92343),wt=p(11592);function he(Ye){if(typeof Ye=="function")return Ye;const Ot=(0,wt.Z)(Ye);return Ot.length<=1?Ot[0]:Ot}const pe=()=>{const{status:Ye,errors:Ot=[],warnings:Ut=[]}=(0,A.useContext)(w.aM);return{status:Ye,errors:Ot,warnings:Ut}};pe.Context=w.aM;var le=pe,Q=p(16089);function Re(Ye){const[Ot,Ut]=A.useState(Ye),Ke=(0,A.useRef)(null),Pe=(0,A.useRef)([]),_t=(0,A.useRef)(!1);A.useEffect(()=>(_t.current=!1,()=>{_t.current=!0,Q.Z.cancel(Ke.current),Ke.current=null}),[]);function Ct(nn){_t.current||(Ke.current===null&&(Pe.current=[],Ke.current=(0,Q.Z)(()=>{Ke.current=null,Ut(Vt=>{let dn=Vt;return Pe.current.forEach(rn=>{dn=rn(dn)}),dn})})),Pe.current.push(nn))}return[Ot,Ct]}function H(){const{itemRef:Ye}=A.useContext(w.q3),Ot=A.useRef({});function Ut(Ke,Pe){const _t=Pe&&typeof Pe=="object"&&Pe.ref,Ct=Ke.join("_");return(Ot.current.name!==Ct||Ot.current.originRef!==_t)&&(Ot.current.name=Ct,Ot.current.originRef=_t,Ot.current.ref=(0,Ht.sQ)(Ye(Ke),_t)),Ot.current.ref}return Ut}var R=p(29194),P=p(34280),fe=p(2738),oe=p(27382),te=p(37028);const Te=Ye=>{const{formItemCls:Ot}=Ye;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Ot}-control`]:{display:"flex"}}}};var je=(0,_.b)(["Form","item-item"],(Ye,Ot)=>{let{rootPrefixCls:Ut}=Ot;const Ke=j(Ye,Ut);return[Te(Ke)]}),Fe=Ye=>{const{prefixCls:Ot,status:Ut,wrapperCol:Ke,children:Pe,errors:_t,warnings:Ct,_internalItemRender:nn,extra:Vt,help:dn,fieldId:rn,marginBottom:bn,onErrorVisibleChanged:In}=Ye,Cn=`${Ot}-item`,Kt=A.useContext(w.q3),Gt=Ke||Kt.wrapperCol||{},qt=q()(`${Cn}-control`,Gt.className),fn=A.useMemo(()=>Object.assign({},Kt),[Kt]);delete fn.labelCol,delete fn.wrapperCol;const an=A.createElement("div",{className:`${Cn}-control-input`},A.createElement("div",{className:`${Cn}-control-input-content`},Pe)),Qn=A.useMemo(()=>({prefixCls:Ot,status:Ut}),[Ot,Ut]),Rn=bn!==null||_t.length||Ct.length?A.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},A.createElement(w.Rk.Provider,{value:Qn},A.createElement(de,{fieldId:rn,errors:_t,warnings:Ct,help:dn,helpStatus:Ut,className:`${Cn}-explain-connected`,onVisibleChanged:In})),!!bn&&A.createElement("div",{style:{width:0,height:bn}})):null,ln={};rn&&(ln.id=`${rn}_extra`);const ct=Vt?A.createElement("div",Object.assign({},ln,{className:`${Cn}-extra`}),Vt):null,pt=nn&&nn.mark==="pro_table_render"&&nn.render?nn.render(Ye,{input:an,errorList:Rn,extra:ct}):A.createElement(A.Fragment,null,an,Rn,ct);return A.createElement(w.q3.Provider,{value:fn},A.createElement(te.Z,Object.assign({},Gt,{className:qt}),pt),A.createElement(je,{prefixCls:Ot}))},Je=p(61485),Xe=p(31724),Ve=p(9763),xt=p(6848),Dt=function(Ye,Ot){var Ut={};for(var Ke in Ye)Object.prototype.hasOwnProperty.call(Ye,Ke)&&Ot.indexOf(Ke)<0&&(Ut[Ke]=Ye[Ke]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Ke=Object.getOwnPropertySymbols(Ye);Pe<Ke.length;Pe++)Ot.indexOf(Ke[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Ye,Ke[Pe])&&(Ut[Ke[Pe]]=Ye[Ke[Pe]]);return Ut};function vt(Ye){return Ye?typeof Ye=="object"&&!A.isValidElement(Ye)?Ye:{title:Ye}:null}var Zt=Ye=>{let{prefixCls:Ot,label:Ut,htmlFor:Ke,labelCol:Pe,labelAlign:_t,colon:Ct,required:nn,requiredMark:Vt,tooltip:dn}=Ye;var rn;const[bn]=(0,Ve.Z)("Form"),{vertical:In,labelAlign:Cn,labelCol:Kt,labelWrap:Gt,colon:qt}=A.useContext(w.q3);if(!Ut)return null;const fn=Pe||Kt||{},an=_t||Cn,Qn=`${Ot}-item-label`,Rn=q()(Qn,an==="left"&&`${Qn}-left`,fn.className,{[`${Qn}-wrap`]:!!Gt});let ln=Ut;const ct=Ct===!0||qt!==!1&&Ct!==!1;ct&&!In&&typeof Ut=="string"&&Ut.trim()!==""&&(ln=Ut.replace(/[:|:]\s*$/,""));const Tt=vt(dn);if(Tt){const{icon:$t=A.createElement(Je.Z,null)}=Tt,hn=Dt(Tt,["icon"]),_n=A.createElement(xt.Z,Object.assign({},hn),A.cloneElement($t,{className:`${Ot}-item-tooltip`,title:""}));ln=A.createElement(A.Fragment,null,ln,_n)}const Ft=Vt==="optional",It=typeof Vt=="function";It?ln=Vt(ln,{required:!!nn}):Ft&&!nn&&(ln=A.createElement(A.Fragment,null,ln,A.createElement("span",{className:`${Ot}-item-optional`,title:""},(bn==null?void 0:bn.optional)||((rn=Xe.Z.Form)===null||rn===void 0?void 0:rn.optional))));const sn=q()({[`${Ot}-item-required`]:nn,[`${Ot}-item-required-mark-optional`]:Ft||It,[`${Ot}-item-no-colon`]:!ct});return A.createElement(te.Z,Object.assign({},fn,{className:Rn}),A.createElement("label",{htmlFor:Ke,className:sn,title:typeof Ut=="string"?Ut:""},ln))},C=p(29679),M=p(19248),yt=p(96512),ye=p(58617);const Ne={success:C.Z,warning:yt.Z,error:M.Z,validating:ye.Z};function Sn(Ye){let{children:Ot,errors:Ut,warnings:Ke,hasFeedback:Pe,validateStatus:_t,prefixCls:Ct,meta:nn,noStyle:Vt}=Ye;const dn=`${Ct}-item`,{feedbackIcons:rn}=A.useContext(w.q3),bn=Ue(Ut,Ke,nn,null,!!Pe,_t),{isFormItemInput:In,status:Cn}=A.useContext(w.aM),Kt=A.useMemo(()=>{var Gt;let qt;if(Pe){const Qn=Pe!==!0&&Pe.icons||rn,Rn=bn&&((Gt=Qn==null?void 0:Qn({status:bn,errors:Ut,warnings:Ke}))===null||Gt===void 0?void 0:Gt[bn]),ln=bn&&Ne[bn];qt=Rn!==!1&&ln?A.createElement("span",{className:q()(`${dn}-feedback-icon`,`${dn}-feedback-icon-${bn}`)},Rn||A.createElement(ln,null)):null}let fn=!0,an=bn||"";return Vt&&(fn=In,an=(bn!=null?bn:Cn)||""),{status:an,errors:Ut,warnings:Ke,hasFeedback:!!Pe,feedbackIcon:qt,isFormItemInput:fn}},[bn,Pe,Vt,In,Cn]);return A.createElement(w.aM.Provider,{value:Kt},Ot)}var it=function(Ye,Ot){var Ut={};for(var Ke in Ye)Object.prototype.hasOwnProperty.call(Ye,Ke)&&Ot.indexOf(Ke)<0&&(Ut[Ke]=Ye[Ke]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Ke=Object.getOwnPropertySymbols(Ye);Pe<Ke.length;Pe++)Ot.indexOf(Ke[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Ye,Ke[Pe])&&(Ut[Ke[Pe]]=Ye[Ke[Pe]]);return Ut};function nt(Ye){const{prefixCls:Ot,className:Ut,rootClassName:Ke,style:Pe,help:_t,errors:Ct,warnings:nn,validateStatus:Vt,meta:dn,hasFeedback:rn,hidden:bn,children:In,fieldId:Cn,required:Kt,isRequired:Gt,onSubItemMetaChange:qt}=Ye,fn=it(Ye,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),an=`${Ot}-item`,{requiredMark:Qn}=A.useContext(w.q3),Rn=A.useRef(null),ln=re(Ct),ct=re(nn),pt=_t!=null,Tt=!!(pt||Ct.length||nn.length),Ft=!!Rn.current&&(0,R.Z)(Rn.current),[It,sn]=A.useState(null);(0,P.Z)(()=>{if(Tt&&Rn.current){const Yn=getComputedStyle(Rn.current);sn(parseInt(Yn.marginBottom,10))}},[Tt,Ft]);const $t=Yn=>{Yn||sn(null)},_n=function(){let Yn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Zn=Yn?ln:dn.errors,dr=Yn?ct:dn.warnings;return Ue(Zn,dr,dn,"",!!rn,Vt)}(),Dn=q()(an,Ut,Ke,{[`${an}-with-help`]:pt||ln.length||ct.length,[`${an}-has-feedback`]:_n&&rn,[`${an}-has-success`]:_n==="success",[`${an}-has-warning`]:_n==="warning",[`${an}-has-error`]:_n==="error",[`${an}-is-validating`]:_n==="validating",[`${an}-hidden`]:bn});return A.createElement("div",{className:Dn,style:Pe,ref:Rn},A.createElement(oe.Z,Object.assign({className:`${an}-row`},(0,fe.Z)(fn,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),A.createElement(Zt,Object.assign({htmlFor:Cn},Ye,{requiredMark:Qn,required:Kt!=null?Kt:Gt,prefixCls:Ot})),A.createElement(Fe,Object.assign({},Ye,dn,{errors:ln,warnings:ct,prefixCls:Ot,status:_n,help:_t,marginBottom:It,onErrorVisibleChanged:$t}),A.createElement(w.qI.Provider,{value:qt},A.createElement(Sn,{prefixCls:Ot,meta:dn,errors:dn.errors,warnings:dn.warnings,hasFeedback:rn,validateStatus:_n},In)))),!!It&&A.createElement("div",{className:`${an}-margin-offset`,style:{marginBottom:-It}}))}const tt="__SPLIT__",we=null,Oe=A.memo(Ye=>{let{children:Ot}=Ye;return Ot},(Ye,Ot)=>Ye.value===Ot.value&&Ye.update===Ot.update&&Ye.childProps.length===Ot.childProps.length&&Ye.childProps.every((Ut,Ke)=>Ut===Ot.childProps[Ke]));function Le(Ye){return Ye!=null}function rt(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function _e(Ye){const{name:Ot,noStyle:Ut,className:Ke,dependencies:Pe,prefixCls:_t,shouldUpdate:Ct,rules:nn,children:Vt,required:dn,label:rn,messageVariables:bn,trigger:In="onChange",validateTrigger:Cn,hidden:Kt,help:Gt}=Ye,{getPrefixCls:qt}=A.useContext(be.E_),{name:fn}=A.useContext(w.q3),an=he(Vt),Qn=typeof an=="function",Rn=A.useContext(w.qI),{validateTrigger:ln}=A.useContext(W.FieldContext),ct=Cn!==void 0?Cn:ln,pt=Le(Ot),Tt=qt("form",_t),[Ft,It]=xe(Tt),sn=A.useContext(W.ListContext),$t=A.useRef(),[hn,_n]=Re({}),[Dn,Yn]=(0,Rt.Z)(()=>rt()),Zn=sr=>{const ar=sn==null?void 0:sn.getKey(sr.name);if(Yn(sr.destroy?rt():sr,!0),Ut&&Gt!==!1&&Rn){let Cr=sr.name;if(sr.destroy)Cr=$t.current||Cr;else if(ar!==void 0){const[rr,Pr]=ar;Cr=[rr].concat((0,O.Z)(Pr)),$t.current=Cr}Rn(sr,Cr)}},dr=(sr,ar)=>{_n(Cr=>{const rr=Object.assign({},Cr),qr=[].concat((0,O.Z)(sr.name.slice(0,-1)),(0,O.Z)(ar)).join(tt);return sr.destroy?delete rr[qr]:rr[qr]=sr,rr})},[En,Tn]=A.useMemo(()=>{const sr=(0,O.Z)(Dn.errors),ar=(0,O.Z)(Dn.warnings);return Object.values(hn).forEach(Cr=>{sr.push.apply(sr,(0,O.Z)(Cr.errors||[])),ar.push.apply(ar,(0,O.Z)(Cr.warnings||[]))}),[sr,ar]},[hn,Dn.errors,Dn.warnings]),pr=H();function mr(sr,ar,Cr){return Ut&&!Kt?A.createElement(Sn,{prefixCls:Tt,hasFeedback:Ye.hasFeedback,validateStatus:Ye.validateStatus,meta:Dn,errors:En,warnings:Tn,noStyle:!0},sr):A.createElement(nt,Object.assign({key:"row"},Ye,{className:q()(Ke,It),prefixCls:Tt,fieldId:ar,isRequired:Cr,errors:En,warnings:Tn,meta:Dn,onSubItemMetaChange:dr}),sr)}if(!pt&&!Qn&&!Pe)return Ft(mr(an));let Ir={};return typeof rn=="string"?Ir.label=rn:Ot&&(Ir.label=String(Ot)),bn&&(Ir=Object.assign(Object.assign({},Ir),bn)),Ft(A.createElement(W.Field,Object.assign({},Ye,{messageVariables:Ir,trigger:In,validateTrigger:ct,onMetaChange:Zn}),(sr,ar,Cr)=>{const rr=me(Ot).length&&ar?ar.name:[],Pr=Be(rr,fn),qr=dn!==void 0?dn:!!(nn&&nn.some(dt=>{if(dt&&typeof dt=="object"&&dt.required&&!dt.warningOnly)return!0;if(typeof dt=="function"){const Bn=dt(Cr);return Bn&&Bn.required&&!Bn.warningOnly}return!1})),qn=Object.assign({},sr);let zn=null;if(Array.isArray(an)&&pt)zn=an;else if(!(Qn&&(!(Ct||Pe)||pt))){if(!(Pe&&!Qn&&!pt))if((0,ut.l$)(an)){const dt=Object.assign(Object.assign({},an.props),qn);if(dt.id||(dt.id=Pr),Gt||En.length>0||Tn.length>0||Ye.extra){const er=[];(Gt||En.length>0)&&er.push(`${Pr}_help`),Ye.extra&&er.push(`${Pr}_extra`),dt["aria-describedby"]=er.join(" ")}En.length>0&&(dt["aria-invalid"]="true"),qr&&(dt["aria-required"]="true"),(0,Ht.Yr)(an)&&(dt.ref=pr(rr,an)),new Set([].concat((0,O.Z)(me(In)),(0,O.Z)(me(ct)))).forEach(er=>{dt[er]=function(){for(var Lr,zr,Vr,fr,Yr,Un=arguments.length,On=new Array(Un),Er=0;Er<Un;Er++)On[Er]=arguments[Er];(Vr=qn[er])===null||Vr===void 0||(Lr=Vr).call.apply(Lr,[qn].concat(On)),(Yr=(fr=an.props)[er])===null||Yr===void 0||(zr=Yr).call.apply(zr,[fr].concat(On))}});const ur=[dt["aria-required"],dt["aria-invalid"],dt["aria-describedby"]];zn=A.createElement(Oe,{value:qn[Ye.valuePropName||"value"],update:an,childProps:ur},(0,ut.Tm)(an,dt))}else Qn&&(Ct||Pe)&&!pt?zn=an(Cr):zn=an}return mr(zn,Pr,qr)}))}const Qt=_e;Qt.useStatus=le;var He=Qt,xn=function(Ye,Ot){var Ut={};for(var Ke in Ye)Object.prototype.hasOwnProperty.call(Ye,Ke)&&Ot.indexOf(Ke)<0&&(Ut[Ke]=Ye[Ke]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Ke=Object.getOwnPropertySymbols(Ye);Pe<Ke.length;Pe++)Ot.indexOf(Ke[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Ye,Ke[Pe])&&(Ut[Ke[Pe]]=Ye[Ke[Pe]]);return Ut},_r=Ye=>{var{prefixCls:Ot,children:Ut}=Ye,Ke=xn(Ye,["prefixCls","children"]);const{getPrefixCls:Pe}=A.useContext(be.E_),_t=Pe("form",Ot),Ct=A.useMemo(()=>({prefixCls:_t,status:"error"}),[_t]);return A.createElement(W.List,Object.assign({},Ke),(nn,Vt,dn)=>A.createElement(w.Rk.Provider,{value:Ct},Ut(nn.map(rn=>Object.assign(Object.assign({},rn),{fieldKey:rn.key})),Vt,{errors:dn.errors,warnings:dn.warnings})))};function Hn(){const{form:Ye}=(0,A.useContext)(w.q3);return Ye}const yn=tn;yn.Item=He,yn.List=_r,yn.ErrorList=de,yn.useForm=qe,yn.useFormInstance=Hn,yn.useWatch=W.useWatch,yn.Provider=w.RV,yn.create=()=>{};var wn=yn},8628:function(Xt,Ze,p){"use strict";var O=p(59301),K=p(34280),q=p(56762),ce=p(69507);function A(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const w=(0,O.useRef)({}),re=(0,q.Z)(),o=(0,ce.ZP)();return(0,K.Z)(()=>{const I=o.subscribe(k=>{w.current=k,m&&re()});return()=>o.unsubscribe(I)},[]),w.current}Ze.Z=A},9432:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return $},n:function(){return se}});var O=p(19248),K=p(92310),q=p.n(K),ce=p(93681),A=p(8654),m=p(59301),w=p(19080),re=p(36355),o=p(1684),I=p(19716),k=p(32441),g=p(33234),_=p(59412),S=p(9937);function T(G){return!!(G.prefix||G.suffix||G.allowClear)}var B=function(G,X){var L={};for(var D in G)Object.prototype.hasOwnProperty.call(G,D)&&X.indexOf(D)<0&&(L[D]=G[D]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,D=Object.getOwnPropertySymbols(G);Y<D.length;Y++)X.indexOf(D[Y])<0&&Object.prototype.propertyIsEnumerable.call(G,D[Y])&&(L[D[Y]]=G[D[Y]]);return L};function se(G,X){if(!G)return;G.focus(X);const{cursor:L}=X||{};if(L){const D=G.value.length;switch(L){case"start":G.setSelectionRange(0,0);break;case"end":G.setSelectionRange(D,D);break;default:G.setSelectionRange(0,D);break}}}var $=(0,m.forwardRef)((G,X)=>{var L;const{prefixCls:D,bordered:Y=!0,status:j,size:xe,disabled:Ce,onBlur:Ee,onFocus:ge,suffix:de,allowClear:W,addonAfter:be,addonBefore:N,className:ue,style:J,styles:v,rootClassName:x,onChange:Z,classNames:me}=G,Be=B(G,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Ue,direction:ze,input:qe}=m.useContext(re.E_),mt=Ue("input",D),gt=(0,m.useRef)(null),[at,Lt]=(0,S.ZP)(mt),{compactSize:tn,compactItemClassnames:Rt}=(0,g.ri)(mt,ze),Ht=(0,I.Z)(je=>{var Me;return(Me=xe!=null?xe:tn)!==null&&Me!==void 0?Me:je}),ut=m.useContext(o.Z),wt=Ce!=null?Ce:ut,{status:he,hasFeedback:pe,feedbackIcon:le}=(0,m.useContext)(k.aM),Q=(0,w.F)(he,j),Re=T(G)||!!pe,H=(0,m.useRef)(Re);(0,m.useEffect)(()=>{var je;Re&&H.current,H.current=Re},[Re]);const R=(0,_.Z)(gt,!0),P=je=>{R(),Ee==null||Ee(je)},fe=je=>{R(),ge==null||ge(je)},oe=je=>{R(),Z==null||Z(je)},te=(pe||de)&&m.createElement(m.Fragment,null,de,pe&&le);let Te;return typeof W=="object"&&(W!=null&&W.clearIcon)?Te=W:W&&(Te={clearIcon:m.createElement(O.Z,null)}),at(m.createElement(ce.default,Object.assign({ref:(0,A.sQ)(X,gt),prefixCls:mt,autoComplete:qe==null?void 0:qe.autoComplete},Be,{disabled:wt,onBlur:P,onFocus:fe,style:Object.assign(Object.assign({},qe==null?void 0:qe.style),J),styles:Object.assign(Object.assign({},qe==null?void 0:qe.styles),v),suffix:te,allowClear:Te,className:q()(ue,x,Rt,qe==null?void 0:qe.className),onChange:oe,addonAfter:be&&m.createElement(g.BR,null,m.createElement(k.Ux,{override:!0,status:!0},be)),addonBefore:N&&m.createElement(g.BR,null,m.createElement(k.Ux,{override:!0,status:!0},N)),classNames:Object.assign(Object.assign(Object.assign({},me),qe==null?void 0:qe.classNames),{input:q()({[`${mt}-sm`]:Ht==="small",[`${mt}-lg`]:Ht==="large",[`${mt}-rtl`]:ze==="rtl",[`${mt}-borderless`]:!Y},!Re&&(0,w.Z)(mt,Q),me==null?void 0:me.input,(L=qe==null?void 0:qe.classNames)===null||L===void 0?void 0:L.input,Lt)}),classes:{affixWrapper:q()({[`${mt}-affix-wrapper-sm`]:Ht==="small",[`${mt}-affix-wrapper-lg`]:Ht==="large",[`${mt}-affix-wrapper-rtl`]:ze==="rtl",[`${mt}-affix-wrapper-borderless`]:!Y},(0,w.Z)(`${mt}-affix-wrapper`,Q,pe),Lt),wrapper:q()({[`${mt}-group-rtl`]:ze==="rtl"},Lt),group:q()({[`${mt}-group-wrapper-sm`]:Ht==="small",[`${mt}-group-wrapper-lg`]:Ht==="large",[`${mt}-group-wrapper-rtl`]:ze==="rtl",[`${mt}-group-wrapper-disabled`]:wt},(0,w.Z)(`${mt}-group-wrapper`,Q,pe),Lt)}})))})},1643:function(Xt,Ze,p){"use strict";var O=p(19248),K=p(92310),q=p.n(K),ce=p(9296),A=p(59301),m=p(19080),w=p(36355),re=p(1684),o=p(19716),I=p(32441),k=p(9432),g=p(9937),_=function(T,B){var se={};for(var z in T)Object.prototype.hasOwnProperty.call(T,z)&&B.indexOf(z)<0&&(se[z]=T[z]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,z=Object.getOwnPropertySymbols(T);$<z.length;$++)B.indexOf(z[$])<0&&Object.prototype.propertyIsEnumerable.call(T,z[$])&&(se[z[$]]=T[z[$]]);return se};const S=(0,A.forwardRef)((T,B)=>{const{prefixCls:se,bordered:z=!0,size:$,disabled:G,status:X,allowClear:L,showCount:D,classNames:Y,rootClassName:j,className:xe}=T,Ce=_(T,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Ee,direction:ge}=A.useContext(w.E_),de=(0,o.Z)($),W=A.useContext(re.Z),be=G!=null?G:W,{status:N,hasFeedback:ue,feedbackIcon:J}=A.useContext(I.aM),v=(0,m.F)(N,X),x=A.useRef(null);A.useImperativeHandle(B,()=>{var ze;return{resizableTextArea:(ze=x.current)===null||ze===void 0?void 0:ze.resizableTextArea,focus:qe=>{var mt,gt;(0,k.n)((gt=(mt=x.current)===null||mt===void 0?void 0:mt.resizableTextArea)===null||gt===void 0?void 0:gt.textArea,qe)},blur:()=>{var qe;return(qe=x.current)===null||qe===void 0?void 0:qe.blur()}}});const Z=Ee("input",se);let me;typeof L=="object"&&(L!=null&&L.clearIcon)?me=L:L&&(me={clearIcon:A.createElement(O.Z,null)});const[Be,Ue]=(0,g.ZP)(Z);return Be(A.createElement(ce.default,Object.assign({},Ce,{disabled:be,allowClear:me,className:q()(xe,j),classes:{affixWrapper:q()(`${Z}-textarea-affix-wrapper`,{[`${Z}-affix-wrapper-rtl`]:ge==="rtl",[`${Z}-affix-wrapper-borderless`]:!z,[`${Z}-affix-wrapper-sm`]:de==="small",[`${Z}-affix-wrapper-lg`]:de==="large",[`${Z}-textarea-show-count`]:D},(0,m.Z)(`${Z}-affix-wrapper`,v),Ue)},classNames:Object.assign(Object.assign({},Y),{textarea:q()({[`${Z}-borderless`]:!z,[`${Z}-sm`]:de==="small",[`${Z}-lg`]:de==="large"},(0,m.Z)(Z,v),Ue,Y==null?void 0:Y.textarea)}),prefixCls:Z,suffix:ue&&A.createElement("span",{className:`${Z}-textarea-suffix`},J),showCount:D,ref:x})))});Ze.Z=S},59412:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return K}});var O=p(59301);function K(q,ce){const A=(0,O.useRef)([]),m=()=>{A.current.push(setTimeout(()=>{var w,re,o,I;!((w=q.current)===null||w===void 0)&&w.input&&((re=q.current)===null||re===void 0?void 0:re.input.getAttribute("type"))==="password"&&(!((o=q.current)===null||o===void 0)&&o.input.hasAttribute("value"))&&((I=q.current)===null||I===void 0||I.input.removeAttribute("value"))}))};return(0,O.useEffect)(()=>(ce&&m(),()=>A.current.forEach(w=>{w&&clearTimeout(w)})),[]),m}},92832:function(Xt,Ze,p){"use strict";p.d(Ze,{default:function(){return de}});var O=p(92310),K=p.n(O),q=p(59301),ce=p(36355),A=p(32441),m=p(9937),re=W=>{const{getPrefixCls:be,direction:N}=(0,q.useContext)(ce.E_),{prefixCls:ue,className:J}=W,v=be("input-group",ue),x=be("input"),[Z,me]=(0,m.ZP)(x),Be=K()(v,{[`${v}-lg`]:W.size==="large",[`${v}-sm`]:W.size==="small",[`${v}-compact`]:W.compact,[`${v}-rtl`]:N==="rtl"},me,J),Ue=(0,q.useContext)(A.aM),ze=(0,q.useMemo)(()=>Object.assign(Object.assign({},Ue),{isFormItemInput:!1}),[Ue]);return Z(q.createElement("span",{className:Be,style:W.style,onMouseEnter:W.onMouseEnter,onMouseLeave:W.onMouseLeave,onFocus:W.onFocus,onBlur:W.onBlur},q.createElement(A.aM.Provider,{value:ze},W.children)))},o=p(9432),I=p(73331),k=p(15277),g=p(2738),_=p(8654),S=p(59412),T=function(W,be){var N={};for(var ue in W)Object.prototype.hasOwnProperty.call(W,ue)&&be.indexOf(ue)<0&&(N[ue]=W[ue]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,ue=Object.getOwnPropertySymbols(W);J<ue.length;J++)be.indexOf(ue[J])<0&&Object.prototype.propertyIsEnumerable.call(W,ue[J])&&(N[ue[J]]=W[ue[J]]);return N};const B=W=>W?q.createElement(k.Z,null):q.createElement(I.Z,null),se={click:"onClick",hover:"onMouseOver"};var $=q.forwardRef((W,be)=>{const{visibilityToggle:N=!0}=W,ue=typeof N=="object"&&N.visible!==void 0,[J,v]=(0,q.useState)(()=>ue?N.visible:!1),x=(0,q.useRef)(null);q.useEffect(()=>{ue&&v(N.visible)},[ue,N]);const Z=(0,S.Z)(x),me=()=>{const{disabled:wt}=W;wt||(J&&Z(),v(he=>{var pe;const le=!he;return typeof N=="object"&&((pe=N.onVisibleChange)===null||pe===void 0||pe.call(N,le)),le}))},Be=wt=>{const{action:he="click",iconRender:pe=B}=W,le=se[he]||"",Q=pe(J),Re={[le]:me,className:`${wt}-icon`,key:"passwordIcon",onMouseDown:H=>{H.preventDefault()},onMouseUp:H=>{H.preventDefault()}};return q.cloneElement(q.isValidElement(Q)?Q:q.createElement("span",null,Q),Re)},{className:Ue,prefixCls:ze,inputPrefixCls:qe,size:mt}=W,gt=T(W,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:at}=q.useContext(ce.E_),Lt=at("input",qe),tn=at("input-password",ze),Rt=N&&Be(tn),Ht=K()(tn,Ue,{[`${tn}-${mt}`]:!!mt}),ut=Object.assign(Object.assign({},(0,g.Z)(gt,["suffix","iconRender","visibilityToggle"])),{type:J?"text":"password",className:Ht,prefixCls:Lt,suffix:Rt});return mt&&(ut.size=mt),q.createElement(o.Z,Object.assign({ref:(0,_.sQ)(be,x)},ut))}),G=p(47472),X=p(92343),L=p(3113),D=p(19716),Y=p(33234),j=function(W,be){var N={};for(var ue in W)Object.prototype.hasOwnProperty.call(W,ue)&&be.indexOf(ue)<0&&(N[ue]=W[ue]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,ue=Object.getOwnPropertySymbols(W);J<ue.length;J++)be.indexOf(ue[J])<0&&Object.prototype.propertyIsEnumerable.call(W,ue[J])&&(N[ue[J]]=W[ue[J]]);return N},Ce=q.forwardRef((W,be)=>{const{prefixCls:N,inputPrefixCls:ue,className:J,size:v,suffix:x,enterButton:Z=!1,addonAfter:me,loading:Be,disabled:Ue,onSearch:ze,onChange:qe,onCompositionStart:mt,onCompositionEnd:gt}=W,at=j(W,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Lt,direction:tn}=q.useContext(ce.E_),Rt=q.useRef(!1),Ht=Lt("input-search",N),ut=Lt("input",ue),{compactSize:wt}=(0,Y.ri)(Ht,tn),he=(0,D.Z)(Fe=>{var Je;return(Je=v!=null?v:wt)!==null&&Je!==void 0?Je:Fe}),pe=q.useRef(null),le=Fe=>{Fe&&Fe.target&&Fe.type==="click"&&ze&&ze(Fe.target.value,Fe,{source:"clear"}),qe&&qe(Fe)},Q=Fe=>{var Je;document.activeElement===((Je=pe.current)===null||Je===void 0?void 0:Je.input)&&Fe.preventDefault()},Re=Fe=>{var Je,Xe;ze&&ze((Xe=(Je=pe.current)===null||Je===void 0?void 0:Je.input)===null||Xe===void 0?void 0:Xe.value,Fe,{source:"input"})},H=Fe=>{Rt.current||Be||Re(Fe)},R=typeof Z=="boolean"?q.createElement(G.Z,null):null,P=`${Ht}-button`;let fe;const oe=Z||{},te=oe.type&&oe.type.__ANT_BUTTON===!0;te||oe.type==="button"?fe=(0,X.Tm)(oe,Object.assign({onMouseDown:Q,onClick:Fe=>{var Je,Xe;(Xe=(Je=oe==null?void 0:oe.props)===null||Je===void 0?void 0:Je.onClick)===null||Xe===void 0||Xe.call(Je,Fe),Re(Fe)},key:"enterButton"},te?{className:P,size:he}:{})):fe=q.createElement(L.ZP,{className:P,type:Z?"primary":void 0,size:he,disabled:Ue,key:"enterButton",onMouseDown:Q,onClick:Re,loading:Be,icon:R},Z),me&&(fe=[fe,(0,X.Tm)(me,{key:"addonAfter"})]);const Te=K()(Ht,{[`${Ht}-rtl`]:tn==="rtl",[`${Ht}-${he}`]:!!he,[`${Ht}-with-button`]:!!Z},J),je=Fe=>{Rt.current=!0,mt==null||mt(Fe)},Me=Fe=>{Rt.current=!1,gt==null||gt(Fe)};return q.createElement(o.Z,Object.assign({ref:(0,_.sQ)(pe,be),onPressEnter:H},at,{size:he,onCompositionStart:je,onCompositionEnd:Me,prefixCls:ut,addonAfter:fe,suffix:x,onChange:le,className:Te,disabled:Ue}))}),Ee=p(1643);const ge=o.Z;ge.Group=re,ge.Search=Ce,ge.TextArea=Ee.Z,ge.Password=$;var de=ge},9937:function(Xt,Ze,p){"use strict";p.d(Ze,{M1:function(){return w},TM:function(){return X},Xy:function(){return re},bi:function(){return k},e5:function(){return G},ik:function(){return g},nz:function(){return A},pU:function(){return m},s7:function(){return _},x0:function(){return I}});var O=p(17313),K=p(74207),q=p(37613),ce=p(83116);const A=L=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:L,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),m=L=>({borderColor:L.hoverBorderColor}),w=L=>({borderColor:L.activeBorderColor,boxShadow:L.activeShadow,outline:0}),re=L=>({color:L.colorTextDisabled,backgroundColor:L.colorBgContainerDisabled,borderColor:L.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},m((0,q.TS)(L,{hoverBorderColor:L.colorBorder})))}),o=L=>{const{paddingBlockLG:D,fontSizeLG:Y,lineHeightLG:j,borderRadiusLG:xe,paddingInlineLG:Ce}=L;return{padding:`${D}px ${Ce}px`,fontSize:Y,lineHeight:j,borderRadius:xe}},I=L=>({padding:`${L.paddingBlockSM}px ${L.paddingInlineSM}px`,borderRadius:L.borderRadiusSM}),k=(L,D)=>{const{componentCls:Y,colorError:j,colorWarning:xe,errorActiveShadow:Ce,warningActiveShadow:Ee,colorErrorBorderHover:ge,colorWarningBorderHover:de}=L;return{[`&-status-error:not(${D}-disabled):not(${D}-borderless)${D}`]:{borderColor:j,"&:hover":{borderColor:ge},"&:focus, &-focused":Object.assign({},w((0,q.TS)(L,{activeBorderColor:j,activeShadow:Ce}))),[`${Y}-prefix, ${Y}-suffix`]:{color:j}},[`&-status-warning:not(${D}-disabled):not(${D}-borderless)${D}`]:{borderColor:xe,"&:hover":{borderColor:de},"&:focus, &-focused":Object.assign({},w((0,q.TS)(L,{activeBorderColor:xe,activeShadow:Ee}))),[`${Y}-prefix, ${Y}-suffix`]:{color:xe}}}},g=L=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${L.paddingBlock}px ${L.paddingInline}px`,color:L.colorText,fontSize:L.fontSize,lineHeight:L.lineHeight,backgroundColor:L.colorBgContainer,backgroundImage:"none",borderWidth:L.lineWidth,borderStyle:L.lineType,borderColor:L.colorBorder,borderRadius:L.borderRadius,transition:`all ${L.motionDurationMid}`},A(L.colorTextPlaceholder)),{"&:hover":Object.assign({},m(L)),"&:focus, &-focused":Object.assign({},w(L)),"&-disabled, &[disabled]":Object.assign({},re(L)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:L.controlHeight,lineHeight:L.lineHeight,verticalAlign:"bottom",transition:`all ${L.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},o(L)),"&-sm":Object.assign({},I(L)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),_=L=>{const{componentCls:D,antCls:Y}=L;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:L.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${D}, &-lg > ${D}-group-addon`]:Object.assign({},o(L)),[`&-sm ${D}, &-sm > ${D}-group-addon`]:Object.assign({},I(L)),[`&-lg ${Y}-select-single ${Y}-select-selector`]:{height:L.controlHeightLG},[`&-sm ${Y}-select-single ${Y}-select-selector`]:{height:L.controlHeightSM},[`> ${D}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${D}-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 ${L.paddingInline}px`,color:L.colorText,fontWeight:"normal",fontSize:L.fontSize,textAlign:"center",backgroundColor:L.colorFillAlter,border:`${L.lineWidth}px ${L.lineType} ${L.colorBorder}`,borderRadius:L.borderRadius,transition:`all ${L.motionDurationSlow}`,lineHeight:1,[`${Y}-select`]:{margin:`-${L.paddingBlock+1}px -${L.paddingInline}px`,[`&${Y}-select-single:not(${Y}-select-customize-input)`]:{[`${Y}-select-selector`]:{backgroundColor:"inherit",border:`${L.lineWidth}px ${L.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${Y}-select-selector`]:{color:L.colorPrimary}}},[`${Y}-cascader-picker`]:{margin:`-9px -${L.paddingInline}px`,backgroundColor:"transparent",[`${Y}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${D}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${D}-search-with-button &`]:{zIndex:0}}},[`> ${D}:first-child, ${D}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${Y}-select ${Y}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${D}-affix-wrapper`]:{[`&:not(:first-child) ${D}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${D}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${D}:last-child, ${D}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${Y}-select ${Y}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${D}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${D}-search &`]:{borderStartStartRadius:L.borderRadius,borderEndStartRadius:L.borderRadius}},[`&:not(:first-child), ${D}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${D}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,O.dF)()),{[`${D}-group-addon, ${D}-group-wrap, > ${D}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:L.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
|
& > ${D}-affix-wrapper,
|
|
|
& > ${D}-number-affix-wrapper,
|
|
|
& > ${Y}-picker-range
|
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-L.lineWidth,borderInlineEndWidth:L.lineWidth},[`${D}`]:{float:"none"},[`& > ${Y}-select > ${Y}-select-selector,
|
|
|
& > ${Y}-select-auto-complete ${D},
|
|
|
& > ${Y}-cascader-picker ${D},
|
|
|
& > ${D}-group-wrapper ${D}`]:{borderInlineEndWidth:L.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${Y}-select-focused`]:{zIndex:1},[`& > ${Y}-select > ${Y}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
|
& > ${Y}-select:first-child > ${Y}-select-selector,
|
|
|
& > ${Y}-select-auto-complete:first-child ${D},
|
|
|
& > ${Y}-cascader-picker:first-child ${D}`]:{borderStartStartRadius:L.borderRadius,borderEndStartRadius:L.borderRadius},[`& > *:last-child,
|
|
|
& > ${Y}-select:last-child > ${Y}-select-selector,
|
|
|
& > ${Y}-cascader-picker:last-child ${D},
|
|
|
& > ${Y}-cascader-picker-focused:last-child ${D}`]:{borderInlineEndWidth:L.lineWidth,borderStartEndRadius:L.borderRadius,borderEndEndRadius:L.borderRadius},[`& > ${Y}-select-auto-complete ${D}`]:{verticalAlign:"top"},[`${D}-group-wrapper + ${D}-group-wrapper`]:{marginInlineStart:-L.lineWidth,[`${D}-affix-wrapper`]:{borderRadius:0}},[`${D}-group-wrapper:not(:last-child)`]:{[`&${D}-search > ${D}-group`]:{[`& > ${D}-group-addon > ${D}-search-button`]:{borderRadius:0},[`& > ${D}`]:{borderStartStartRadius:L.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:L.borderRadius}}}})}},S=L=>{const{componentCls:D,controlHeightSM:Y,lineWidth:j}=L,Ce=(Y-j*2-16)/2;return{[D]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,O.Wf)(L)),g(L)),k(L,D)),{'&[type="color"]':{height:L.controlHeight,[`&${D}-lg`]:{height:L.controlHeightLG},[`&${D}-sm`]:{height:Y,paddingTop:Ce,paddingBottom:Ce}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},T=L=>{const{componentCls:D}=L;return{[`${D}-clear-icon`]:{margin:0,color:L.colorTextQuaternary,fontSize:L.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${L.motionDurationSlow}`,"&:hover":{color:L.colorTextTertiary},"&:active":{color:L.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${L.inputAffixPadding}px`}}}},B=L=>{const{componentCls:D,inputAffixPadding:Y,colorTextDescription:j,motionDurationSlow:xe,colorIcon:Ce,colorIconHover:Ee,iconCls:ge}=L;return{[`${D}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},g(L)),{display:"inline-flex",[`&:not(${D}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},m(L)),{zIndex:1,[`${D}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${D}[disabled]`]:{background:"transparent"}},[`> input${D}`]:{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"'},[`${D}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:L.paddingXS}},"&-show-count-suffix":{color:j},"&-show-count-has-suffix":{marginInlineEnd:L.paddingXXS},"&-prefix":{marginInlineEnd:Y},"&-suffix":{marginInlineStart:Y}}}),T(L)),{[`${ge}${D}-password-icon`]:{color:Ce,cursor:"pointer",transition:`all ${xe}`,"&:hover":{color:Ee}}}),k(L,`${D}-affix-wrapper`))}},se=L=>{const{componentCls:D,colorError:Y,colorWarning:j,borderRadiusLG:xe,borderRadiusSM:Ce}=L;return{[`${D}-group`]:Object.assign(Object.assign(Object.assign({},(0,O.Wf)(L)),_(L)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${D}-group-addon`]:{borderRadius:xe,fontSize:L.fontSizeLG}},"&-sm":{[`${D}-group-addon`]:{borderRadius:Ce}},"&-status-error":{[`${D}-group-addon`]:{color:Y,borderColor:Y}},"&-status-warning":{[`${D}-group-addon`]:{color:j,borderColor:j}},"&-disabled":{[`${D}-group-addon`]:Object.assign({},re(L))},[`&:not(${D}-compact-first-item):not(${D}-compact-last-item)${D}-compact-item`]:{[`${D}, ${D}-group-addon`]:{borderRadius:0}},[`&:not(${D}-compact-last-item)${D}-compact-first-item`]:{[`${D}, ${D}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${D}-compact-first-item)${D}-compact-last-item`]:{[`${D}, ${D}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},z=L=>{const{componentCls:D,antCls:Y}=L,j=`${D}-search`;return{[j]:{[`${D}`]:{"&:hover, &:focus":{borderColor:L.colorPrimaryHover,[`+ ${D}-group-addon ${j}-button:not(${Y}-btn-primary)`]:{borderInlineStartColor:L.colorPrimaryHover}}},[`${D}-affix-wrapper`]:{borderRadius:0},[`${D}-lg`]:{lineHeight:L.lineHeightLG-2e-4},[`> ${D}-group`]:{[`> ${D}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${j}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:L.borderRadius,borderEndEndRadius:L.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${j}-button:not(${Y}-btn-primary)`]:{color:L.colorTextDescription,"&:hover":{color:L.colorPrimaryHover},"&:active":{color:L.colorPrimaryActive},[`&${Y}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${j}-button`]:{height:L.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${j}-button`]:{height:L.controlHeightLG},[`&-small ${j}-button`]:{height:L.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${D}-compact-item`]:{[`&:not(${D}-compact-last-item)`]:{[`${D}-group-addon`]:{[`${D}-search-button`]:{marginInlineEnd:-L.lineWidth,borderRadius:0}}},[`&:not(${D}-compact-first-item)`]:{[`${D},${D}-affix-wrapper`]:{borderRadius:0}},[`> ${D}-group-addon ${D}-search-button,
|
|
|
> ${D},
|
|
|
${D}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${D}-affix-wrapper-focused`]:{zIndex:2}}}}},$=L=>{const{componentCls:D,paddingLG:Y}=L,j=`${D}-textarea`;return{[j]:{position:"relative","&-show-count":{[`> ${D}`]:{height:"100%"},[`${D}-data-count`]:{position:"absolute",bottom:-L.fontSize*L.lineHeight,insetInlineEnd:0,color:L.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${D}`]:{paddingInlineEnd:Y}},[`&-affix-wrapper${j}-has-feedback`]:{[`${D}`]:{paddingInlineEnd:Y}},[`&-affix-wrapper${D}-affix-wrapper`]:{padding:0,[`> textarea${D}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${D}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${D}-clear-icon`]:{position:"absolute",insetInlineEnd:L.paddingXS,insetBlockStart:L.paddingXS},[`${j}-suffix`]:{position:"absolute",top:0,insetInlineEnd:L.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function G(L){return(0,q.TS)(L,{inputAffixPadding:L.paddingXXS})}const X=L=>{const{controlHeight:D,fontSize:Y,lineHeight:j,lineWidth:xe,controlHeightSM:Ce,controlHeightLG:Ee,fontSizeLG:ge,lineHeightLG:de,paddingSM:W,controlPaddingHorizontalSM:be,controlPaddingHorizontal:N,colorFillAlter:ue,colorPrimaryHover:J,controlOutlineWidth:v,controlOutline:x,colorErrorOutline:Z,colorWarningOutline:me}=L;return{paddingBlock:Math.max(Math.round((D-Y*j)/2*10)/10-xe,3),paddingBlockSM:Math.max(Math.round((Ce-Y*j)/2*10)/10-xe,0),paddingBlockLG:Math.ceil((Ee-ge*de)/2*10)/10-xe,paddingInline:W-xe,paddingInlineSM:be-xe,paddingInlineLG:N-xe,addonBg:ue,activeBorderColor:J,hoverBorderColor:J,activeShadow:`0 0 0 ${v}px ${x}`,errorActiveShadow:`0 0 0 ${v}px ${Z}`,warningActiveShadow:`0 0 0 ${v}px ${me}`}};Ze.ZP=(0,ce.Z)("Input",L=>{const D=(0,q.TS)(L,G(L));return[S(D),$(D),B(D),se(D),z(D),(0,K.c)(D)]},X)},45818:function(Xt,Ze,p){"use strict";p.d(Ze,{D:function(){return G},Z:function(){return D}});var O=p(72308),K=p(59301),q={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"},ce=q,A=p(7657),m=function(j,xe){return K.createElement(A.Z,(0,O.Z)({},j,{ref:xe,icon:ce}))},w=K.forwardRef(m),re=w,o=p(33853),I=p(38819),k=p(92310),g=p.n(k),_=p(2738),T=Y=>!isNaN(parseFloat(Y))&&isFinite(Y),B=p(36355),se=p(84966),z=function(Y,j){var xe={};for(var Ce in Y)Object.prototype.hasOwnProperty.call(Y,Ce)&&j.indexOf(Ce)<0&&(xe[Ce]=Y[Ce]);if(Y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,Ce=Object.getOwnPropertySymbols(Y);Ee<Ce.length;Ee++)j.indexOf(Ce[Ee])<0&&Object.prototype.propertyIsEnumerable.call(Y,Ce[Ee])&&(xe[Ce[Ee]]=Y[Ce[Ee]]);return xe};const $={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},G=K.createContext({}),X=(()=>{let Y=0;return function(){let j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Y+=1,`${j}${Y}`}})();var D=K.forwardRef((Y,j)=>{const{prefixCls:xe,className:Ce,trigger:Ee,children:ge,defaultCollapsed:de=!1,theme:W="dark",style:be={},collapsible:N=!1,reverseArrow:ue=!1,width:J=200,collapsedWidth:v=80,zeroWidthTriggerStyle:x,breakpoint:Z,onCollapse:me,onBreakpoint:Be}=Y,Ue=z(Y,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ze}=(0,K.useContext)(se.Gs),[qe,mt]=(0,K.useState)("collapsed"in Y?Y.collapsed:de),[gt,at]=(0,K.useState)(!1);(0,K.useEffect)(()=>{"collapsed"in Y&&mt(Y.collapsed)},[Y.collapsed]);const Lt=(he,pe)=>{"collapsed"in Y||mt(he),me==null||me(he,pe)},tn=(0,K.useRef)();tn.current=he=>{at(he.matches),Be==null||Be(he.matches),qe!==he.matches&&Lt(he.matches,"responsive")},(0,K.useEffect)(()=>{function he(le){return tn.current(le)}let pe;if(typeof window!="undefined"){const{matchMedia:le}=window;if(le&&Z&&Z in $){pe=le(`(max-width: ${$[Z]})`);try{pe.addEventListener("change",he)}catch(Q){pe.addListener(he)}he(pe)}}return()=>{try{pe==null||pe.removeEventListener("change",he)}catch(le){pe==null||pe.removeListener(he)}}},[Z]),(0,K.useEffect)(()=>{const he=X("ant-sider-");return ze.addSider(he),()=>ze.removeSider(he)},[]);const Rt=()=>{Lt(!qe,"clickTrigger")},{getPrefixCls:Ht}=(0,K.useContext)(B.E_),ut=()=>{const he=Ht("layout-sider",xe),pe=(0,_.Z)(Ue,["collapsed"]),le=qe?v:J,Q=T(le)?`${le}px`:String(le),Re=parseFloat(String(v||0))===0?K.createElement("span",{onClick:Rt,className:g()(`${he}-zero-width-trigger`,`${he}-zero-width-trigger-${ue?"right":"left"}`),style:x},Ee||K.createElement(re,null)):null,P={expanded:ue?K.createElement(I.Z,null):K.createElement(o.Z,null),collapsed:ue?K.createElement(o.Z,null):K.createElement(I.Z,null)}[qe?"collapsed":"expanded"],fe=Ee!==null?Re||K.createElement("div",{className:`${he}-trigger`,onClick:Rt,style:{width:Q}},Ee||P):null,oe=Object.assign(Object.assign({},be),{flex:`0 0 ${Q}`,maxWidth:Q,minWidth:Q,width:Q}),te=g()(he,`${he}-${W}`,{[`${he}-collapsed`]:!!qe,[`${he}-has-trigger`]:N&&Ee!==null&&!Re,[`${he}-below`]:!!gt,[`${he}-zero-width`]:parseFloat(Q)===0},Ce);return K.createElement("aside",Object.assign({className:te},pe,{style:oe,ref:j}),K.createElement("div",{className:`${he}-children`},ge),N||gt&&Re?fe:null)},wt=K.useMemo(()=>({siderCollapsed:qe}),[qe]);return K.createElement(G.Provider,{value:wt},ut())})},84966:function(Xt,Ze,p){"use strict";p.d(Ze,{VY:function(){return G},$_:function(){return $},h4:function(){return z},Gs:function(){return _},ZP:function(){return X}});var O=p(80702),K=p(92310),q=p.n(K),ce=p(2738),A=p(59301),m=p(36355),w=p(83116),o=L=>{const{componentCls:D,bodyBg:Y,lightSiderBg:j,lightTriggerBg:xe,lightTriggerColor:Ce}=L;return{[`${D}-sider-light`]:{background:j,[`${D}-sider-trigger`]:{color:Ce,background:xe},[`${D}-sider-zero-width-trigger`]:{color:Ce,background:xe,border:`1px solid ${Y}`,borderInlineStart:0}}}};const I=L=>{const{antCls:D,componentCls:Y,colorText:j,triggerColor:xe,footerBg:Ce,triggerBg:Ee,headerHeight:ge,headerPadding:de,headerColor:W,footerPadding:be,triggerHeight:N,zeroTriggerHeight:ue,zeroTriggerWidth:J,motionDurationMid:v,motionDurationSlow:x,fontSize:Z,borderRadius:me,bodyBg:Be,headerBg:Ue,siderBg:ze}=L;return{[Y]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Be,"&, *":{boxSizing:"border-box"},[`&${Y}-has-sider`]:{flexDirection:"row",[`> ${Y}, > ${Y}-content`]:{width:0}},[`${Y}-header, &${Y}-footer`]:{flex:"0 0 auto"},[`${Y}-sider`]:{position:"relative",minWidth:0,background:ze,transition:`all ${v}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${D}-menu${D}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:N},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:N,color:xe,lineHeight:`${N}px`,textAlign:"center",background:Ee,cursor:"pointer",transition:`all ${v}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:ge,insetInlineEnd:-J,zIndex:1,width:J,height:ue,color:xe,fontSize:L.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ze,borderStartStartRadius:0,borderStartEndRadius:me,borderEndEndRadius:me,borderEndStartRadius:0,cursor:"pointer",transition:`background ${x} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${x}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-J,borderStartStartRadius:me,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:me}}}}},o(L)),{"&-rtl":{direction:"rtl"}}),[`${Y}-header`]:{height:ge,padding:de,color:W,lineHeight:`${ge}px`,background:Ue,[`${D}-menu`]:{lineHeight:"inherit"}},[`${Y}-footer`]:{padding:be,color:j,fontSize:Z,background:Ce},[`${Y}-content`]:{flex:"auto",minHeight:0}}};var k=(0,w.Z)("Layout",L=>[I(L)],L=>{const{colorBgLayout:D,controlHeight:Y,controlHeightLG:j,colorText:xe,controlHeightSM:Ce,marginXXS:Ee,colorTextLightSolid:ge,colorBgContainer:de}=L,W=j*1.25;return{colorBgHeader:"#001529",colorBgBody:D,colorBgTrigger:"#002140",bodyBg:D,headerBg:"#001529",headerHeight:Y*2,headerPadding:`0 ${W}px`,headerColor:xe,footerPadding:`${Ce}px ${W}px`,footerBg:D,siderBg:"#001529",triggerHeight:j+Ee*2,triggerBg:"#002140",triggerColor:ge,zeroTriggerWidth:j,zeroTriggerHeight:j,lightSiderBg:de,lightTriggerBg:de,lightTriggerColor:xe}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),g=function(L,D){var Y={};for(var j in L)Object.prototype.hasOwnProperty.call(L,j)&&D.indexOf(j)<0&&(Y[j]=L[j]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,j=Object.getOwnPropertySymbols(L);xe<j.length;xe++)D.indexOf(j[xe])<0&&Object.prototype.propertyIsEnumerable.call(L,j[xe])&&(Y[j[xe]]=L[j[xe]]);return Y};const _=A.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function S(L){let{suffixCls:D,tagName:Y,displayName:j}=L;return xe=>A.forwardRef((Ee,ge)=>A.createElement(xe,Object.assign({ref:ge,suffixCls:D,tagName:Y},Ee)))}const T=A.forwardRef((L,D)=>{const{prefixCls:Y,suffixCls:j,className:xe,tagName:Ce}=L,Ee=g(L,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:ge}=A.useContext(m.E_),de=ge("layout",Y),[W,be]=k(de),N=j?`${de}-${j}`:de;return W(A.createElement(Ce,Object.assign({className:q()(Y||N,xe,be),ref:D},Ee)))}),B=A.forwardRef((L,D)=>{const{direction:Y}=A.useContext(m.E_),[j,xe]=A.useState([]),{prefixCls:Ce,className:Ee,rootClassName:ge,children:de,hasSider:W,tagName:be,style:N}=L,ue=g(L,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),J=(0,ce.Z)(ue,["suffixCls"]),{getPrefixCls:v,layout:x}=A.useContext(m.E_),Z=v("layout",Ce),[me,Be]=k(Z),Ue=q()(Z,{[`${Z}-has-sider`]:typeof W=="boolean"?W:j.length>0,[`${Z}-rtl`]:Y==="rtl"},x==null?void 0:x.className,Ee,ge,Be),ze=A.useMemo(()=>({siderHook:{addSider:qe=>{xe(mt=>[].concat((0,O.Z)(mt),[qe]))},removeSider:qe=>{xe(mt=>mt.filter(gt=>gt!==qe))}}}),[]);return me(A.createElement(_.Provider,{value:ze},A.createElement(be,Object.assign({ref:D,className:Ue,style:Object.assign(Object.assign({},x==null?void 0:x.style),N)},J),de)))}),se=S({tagName:"div",displayName:"Layout"})(B),z=S({suffixCls:"header",tagName:"header",displayName:"Header"})(T),$=S({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(T),G=S({suffixCls:"content",tagName:"main",displayName:"Content"})(T);var X=se},40875:function(Xt,Ze,p){"use strict";p.d(Ze,{J:function(){return m}});var O=p(59301),K=p(33234),q=p(70425),ce=function(w,re){var o={};for(var I in w)Object.prototype.hasOwnProperty.call(w,I)&&re.indexOf(I)<0&&(o[I]=w[I]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,I=Object.getOwnPropertySymbols(w);k<I.length;k++)re.indexOf(I[k])<0&&Object.prototype.propertyIsEnumerable.call(w,I[k])&&(o[I[k]]=w[I[k]]);return o};const A=O.createContext(null),m=O.forwardRef((w,re)=>{const{children:o}=w,I=ce(w,["children"]),k=O.useContext(A),g=O.useMemo(()=>Object.assign(Object.assign({},k),I),[k,I.prefixCls,I.mode,I.selectable]);return O.createElement(A.Provider,{value:g},O.createElement(K.BR,null,(0,q.supportNodeRef)(o)?O.cloneElement(o,{ref:re}):o))});Ze.Z=A},20834:function(Xt,Ze,p){"use strict";p.d(Ze,{default:function(){return wt}});var O=p(15285),K=p(59301),q=p(45818),ce=p(92310),A=p.n(ce),m=p(36355),w=function(he,pe){var le={};for(var Q in he)Object.prototype.hasOwnProperty.call(he,Q)&&pe.indexOf(Q)<0&&(le[Q]=he[Q]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,Q=Object.getOwnPropertySymbols(he);Re<Q.length;Re++)pe.indexOf(Q[Re])<0&&Object.prototype.propertyIsEnumerable.call(he,Q[Re])&&(le[Q[Re]]=he[Q[Re]]);return le},o=he=>{const{prefixCls:pe,className:le,dashed:Q}=he,Re=w(he,["prefixCls","className","dashed"]),{getPrefixCls:H}=K.useContext(m.E_),R=H("menu",pe),P=A()({[`${R}-item-divider-dashed`]:!!Q},le);return K.createElement(O.iz,Object.assign({className:P},Re))},I=p(11592),k=p(2738),g=p(6848),_=p(92343),T=(0,K.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),se=he=>{var pe;const{className:le,children:Q,icon:Re,title:H,danger:R}=he,{prefixCls:P,firstLevel:fe,direction:oe,disableMenuItemTitleTooltip:te,inlineCollapsed:Te}=K.useContext(T),je=xt=>{const Dt=K.createElement("span",{className:`${P}-title-content`},Q);return(!Re||(0,_.l$)(Q)&&Q.type==="span")&&Q&&xt&&fe&&typeof Q=="string"?K.createElement("div",{className:`${P}-inline-collapsed-noicon`},Q.charAt(0)):Dt},{siderCollapsed:Me}=K.useContext(q.D);let Fe=H;typeof H=="undefined"?Fe=fe?Q:"":H===!1&&(Fe="");const Je={title:Fe};!Me&&!Te&&(Je.title=null,Je.open=!1);const Xe=(0,I.Z)(Q).length;let Ve=K.createElement(O.ck,Object.assign({},(0,k.Z)(he,["title","icon","danger"]),{className:A()({[`${P}-item-danger`]:R,[`${P}-item-only-child`]:(Re?Xe+1:Xe)===1},le),title:typeof H=="string"?H:void 0}),(0,_.Tm)(Re,{className:A()((0,_.l$)(Re)?(pe=Re.props)===null||pe===void 0?void 0:pe.className:"",`${P}-item-icon`)}),je(Te));return te||(Ve=K.createElement(g.Z,Object.assign({},Je,{placement:oe==="rtl"?"left":"right",overlayClassName:`${P}-inline-collapsed-tooltip`}),Ve)),Ve},$=he=>{var pe;const{popupClassName:le,icon:Q,title:Re,theme:H}=he,R=K.useContext(T),{prefixCls:P,inlineCollapsed:fe,theme:oe}=R,te=(0,O.Xl)();let Te;if(!Q)Te=fe&&!te.length&&Re&&typeof Re=="string"?K.createElement("div",{className:`${P}-inline-collapsed-noicon`},Re.charAt(0)):K.createElement("span",{className:`${P}-title-content`},Re);else{const Me=(0,_.l$)(Re)&&Re.type==="span";Te=K.createElement(K.Fragment,null,(0,_.Tm)(Q,{className:A()((0,_.l$)(Q)?(pe=Q.props)===null||pe===void 0?void 0:pe.className:"",`${P}-item-icon`)}),Me?Re:K.createElement("span",{className:`${P}-title-content`},Re))}const je=K.useMemo(()=>Object.assign(Object.assign({},R),{firstLevel:!1}),[R]);return K.createElement(T.Provider,{value:je},K.createElement(O.Wd,Object.assign({},(0,k.Z)(he,["icon"]),{title:Te,popupClassName:A()(P,le,`${P}-${H||oe}`)})))},G=p(18785),X=p(70425),L=p(62892),D=p(40875),Y=function(he,pe){var le={};for(var Q in he)Object.prototype.hasOwnProperty.call(he,Q)&&pe.indexOf(Q)<0&&(le[Q]=he[Q]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,Q=Object.getOwnPropertySymbols(he);Re<Q.length;Re++)pe.indexOf(Q[Re])<0&&Object.prototype.propertyIsEnumerable.call(he,Q[Re])&&(le[Q[Re]]=he[Q[Re]]);return le};function j(he){return(he||[]).map((pe,le)=>{if(pe&&typeof pe=="object"){const Q=pe,{label:Re,children:H,key:R,type:P}=Q,fe=Y(Q,["label","children","key","type"]),oe=R!=null?R:`tmp-${le}`;return H||P==="group"?P==="group"?K.createElement(O.BW,Object.assign({key:oe},fe,{title:Re}),j(H)):K.createElement($,Object.assign({key:oe},fe,{title:Re}),j(H)):P==="divider"?K.createElement(o,Object.assign({key:oe},fe)):K.createElement(se,Object.assign({key:oe},fe),Re)}return null}).filter(pe=>pe)}function xe(he){return K.useMemo(()=>he&&j(he),[he])}var Ce=p(64993),Ee=p(17313),ge=p(8378),de=p(13826),W=p(29878),be=p(83116),N=p(37613),J=he=>{const{componentCls:pe,motionDurationSlow:le,horizontalLineHeight:Q,colorSplit:Re,lineWidth:H,lineType:R,itemPaddingInline:P}=he;return{[`${pe}-horizontal`]:{lineHeight:Q,border:0,borderBottom:`${H}px ${R} ${Re}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${pe}-item, ${pe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:P},[`> ${pe}-item:hover,
|
|
|
> ${pe}-item-active,
|
|
|
> ${pe}-submenu ${pe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${pe}-item, ${pe}-submenu-title`]:{transition:[`border-color ${le}`,`background ${le}`].join(",")},[`${pe}-submenu-arrow`]:{display:"none"}}}},x=he=>{let{componentCls:pe,menuArrowOffset:le}=he;return{[`${pe}-rtl`]:{direction:"rtl"},[`${pe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${pe}-rtl${pe}-vertical,
|
|
|
${pe}-submenu-rtl ${pe}-vertical`]:{[`${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${le})`},"&::after":{transform:`rotate(45deg) translateY(${le})`}}}}};const Z=he=>Object.assign({},(0,Ee.oN)(he));var Be=(he,pe)=>{const{componentCls:le,itemColor:Q,itemSelectedColor:Re,groupTitleColor:H,itemBg:R,subMenuItemBg:P,itemSelectedBg:fe,activeBarHeight:oe,activeBarWidth:te,activeBarBorderWidth:Te,motionDurationSlow:je,motionEaseInOut:Me,motionEaseOut:Fe,itemPaddingInline:Je,motionDurationMid:Xe,itemHoverColor:Ve,lineType:xt,colorSplit:Dt,itemDisabledColor:vt,dangerItemColor:Bt,dangerItemHoverColor:Zt,dangerItemSelectedColor:C,dangerItemActiveBg:M,dangerItemSelectedBg:yt,itemHoverBg:ye,itemActiveBg:Ne,menuSubMenuBg:Sn,horizontalItemSelectedColor:it,horizontalItemSelectedBg:nt,horizontalItemBorderRadius:tt,horizontalItemHoverBg:we,popupBg:Oe}=he;return{[`${le}-${pe}, ${le}-${pe} > ${le}`]:{color:Q,background:R,[`&${le}-root:focus-visible`]:Object.assign({},Z(he)),[`${le}-item-group-title`]:{color:H},[`${le}-submenu-selected`]:{[`> ${le}-submenu-title`]:{color:Re}},[`${le}-item-disabled, ${le}-submenu-disabled`]:{color:`${vt} !important`},[`${le}-item:not(${le}-item-selected):not(${le}-submenu-selected)`]:{[`&:hover, > ${le}-submenu-title:hover`]:{color:Ve}},[`&:not(${le}-horizontal)`]:{[`${le}-item:not(${le}-item-selected)`]:{"&:hover":{backgroundColor:ye},"&:active":{backgroundColor:Ne}},[`${le}-submenu-title`]:{"&:hover":{backgroundColor:ye},"&:active":{backgroundColor:Ne}}},[`${le}-item-danger`]:{color:Bt,[`&${le}-item:hover`]:{[`&:not(${le}-item-selected):not(${le}-submenu-selected)`]:{color:Zt}},[`&${le}-item:active`]:{background:M}},[`${le}-item a`]:{"&, &:hover":{color:"inherit"}},[`${le}-item-selected`]:{color:Re,[`&${le}-item-danger`]:{color:C},"a, a:hover":{color:"inherit"}},[`& ${le}-item-selected`]:{backgroundColor:fe,[`&${le}-item-danger`]:{backgroundColor:yt}},[`${le}-item, ${le}-submenu-title`]:{[`&:not(${le}-item-disabled):focus-visible`]:Object.assign({},Z(he))},[`&${le}-submenu > ${le}`]:{backgroundColor:Sn},[`&${le}-popup > ${le}`]:{backgroundColor:Oe},[`&${le}-horizontal`]:Object.assign(Object.assign({},pe==="dark"?{borderBottom:0}:{}),{[`> ${le}-item, > ${le}-submenu`]:{top:Te,marginTop:-Te,marginBottom:0,borderRadius:tt,"&::after":{position:"absolute",insetInline:Je,bottom:0,borderBottom:`${oe}px solid transparent`,transition:`border-color ${je} ${Me}`,content:'""'},"&:hover, &-active, &-open":{background:we,"&::after":{borderBottomWidth:oe,borderBottomColor:it}},"&-selected":{color:it,backgroundColor:nt,"&:hover":{backgroundColor:nt},"&::after":{borderBottomWidth:oe,borderBottomColor:it}}}}),[`&${le}-root`]:{[`&${le}-inline, &${le}-vertical`]:{borderInlineEnd:`${Te}px ${xt} ${Dt}`}},[`&${le}-inline`]:{[`${le}-sub${le}-inline`]:{background:P},[`${le}-item, ${le}-submenu-title`]:Te&&te?{width:`calc(100% + ${Te}px)`}:{},[`${le}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${te}px solid ${Re}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Xe} ${Fe}`,`opacity ${Xe} ${Fe}`].join(","),content:'""'},[`&${le}-item-danger`]:{"&::after":{borderInlineEndColor:C}}},[`${le}-selected, ${le}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Xe} ${Me}`,`opacity ${Xe} ${Me}`].join(",")}}}}}};const Ue=he=>{const{componentCls:pe,itemHeight:le,itemMarginInline:Q,padding:Re,menuArrowSize:H,marginXS:R,itemMarginBlock:P}=he,fe=Re+H+R;return{[`${pe}-item`]:{position:"relative",overflow:"hidden"},[`${pe}-item, ${pe}-submenu-title`]:{height:le,lineHeight:`${le}px`,paddingInline:Re,overflow:"hidden",textOverflow:"ellipsis",marginInline:Q,marginBlock:P,width:`calc(100% - ${Q*2}px)`},[`> ${pe}-item,
|
|
|
> ${pe}-submenu > ${pe}-submenu-title`]:{height:le,lineHeight:`${le}px`},[`${pe}-item-group-list ${pe}-submenu-title,
|
|
|
${pe}-submenu-title`]:{paddingInlineEnd:fe}}};var qe=he=>{const{componentCls:pe,iconCls:le,itemHeight:Q,colorTextLightSolid:Re,dropdownWidth:H,controlHeightLG:R,motionDurationMid:P,motionEaseOut:fe,paddingXL:oe,itemMarginInline:te,fontSizeLG:Te,motionDurationSlow:je,paddingXS:Me,boxShadowSecondary:Fe,collapsedWidth:Je,collapsedIconSize:Xe}=he,Ve={height:Q,lineHeight:`${Q}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[pe]:{"&-inline, &-vertical":Object.assign({[`&${pe}-root`]:{boxShadow:"none"}},Ue(he))},[`${pe}-submenu-popup`]:{[`${pe}-vertical`]:Object.assign(Object.assign({},Ue(he)),{boxShadow:Fe})}},{[`${pe}-submenu-popup ${pe}-vertical${pe}-sub`]:{minWidth:H,maxHeight:`calc(100vh - ${R*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${pe}-inline`]:{width:"100%",[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${je}`,`background ${je}`,`padding ${P} ${fe}`].join(","),[`> ${pe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${pe}-sub${pe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${pe}-submenu > ${pe}-submenu-title`]:Ve,[`& ${pe}-item-group-title`]:{paddingInlineStart:oe}},[`${pe}-item`]:Ve}},{[`${pe}-inline-collapsed`]:{width:Je,[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu ${pe}-submenu-title`]:{[`> ${pe}-inline-collapsed-noicon`]:{fontSize:Te,textAlign:"center"}}},[`> ${pe}-item,
|
|
|
> ${pe}-item-group > ${pe}-item-group-list > ${pe}-item,
|
|
|
> ${pe}-item-group > ${pe}-item-group-list > ${pe}-submenu > ${pe}-submenu-title,
|
|
|
> ${pe}-submenu > ${pe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Te/2}px - ${te}px)`,textOverflow:"clip",[`
|
|
|
${pe}-submenu-arrow,
|
|
|
${pe}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${pe}-item-icon, ${le}`]:{margin:0,fontSize:Xe,lineHeight:`${Q}px`,"+ span":{display:"inline-block",opacity:0}}},[`${pe}-item-icon, ${le}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${pe}-item-icon, ${le}`]:{display:"none"},"a, a:hover":{color:Re}},[`${pe}-item-group-title`]:Object.assign(Object.assign({},Ee.vS),{paddingInline:Me})}}]};const mt=he=>{const{componentCls:pe,motionDurationSlow:le,motionDurationMid:Q,motionEaseInOut:Re,motionEaseOut:H,iconCls:R,iconSize:P,iconMarginInlineEnd:fe}=he;return{[`${pe}-item, ${pe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${le}`,`background ${le}`,`padding ${le} ${Re}`].join(","),[`${pe}-item-icon, ${R}`]:{minWidth:P,fontSize:P,transition:[`font-size ${Q} ${H}`,`margin ${le} ${Re}`,`color ${le}`].join(","),"+ span":{marginInlineStart:fe,opacity:1,transition:[`opacity ${le} ${Re}`,`margin ${le}`,`color ${le}`].join(",")}},[`${pe}-item-icon`]:Object.assign({},(0,Ee.Ro)()),[`&${pe}-item-only-child`]:{[`> ${R}, > ${pe}-item-icon`]:{marginInlineEnd:0}}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${pe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},gt=he=>{const{componentCls:pe,motionDurationSlow:le,motionEaseInOut:Q,borderRadius:Re,menuArrowSize:H,menuArrowOffset:R}=he;return{[`${pe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:he.margin,width:H,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${le} ${Q}, opacity ${le}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:H*.6,height:H*.15,backgroundColor:"currentcolor",borderRadius:Re,transition:[`background ${le} ${Q}`,`transform ${le} ${Q}`,`top ${le} ${Q}`,`color ${le} ${Q}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${R})`},"&::after":{transform:`rotate(-45deg) translateY(${R})`}}}}},at=he=>{const{antCls:pe,componentCls:le,fontSize:Q,motionDurationSlow:Re,motionDurationMid:H,motionEaseInOut:R,paddingXS:P,padding:fe,colorSplit:oe,lineWidth:te,zIndexPopup:Te,borderRadiusLG:je,subMenuItemBorderRadius:Me,menuArrowSize:Fe,menuArrowOffset:Je,lineType:Xe,menuPanelMaskInset:Ve,groupTitleLineHeight:xt,groupTitleFontSize:Dt}=he;return[{"":{[`${le}`]:Object.assign(Object.assign({},(0,Ee.dF)()),{"&-hidden":{display:"none"}})},[`${le}-submenu-hidden`]:{display:"none"}},{[le]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ee.Wf)(he)),(0,Ee.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Q,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Re} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${le}-item`]:{flex:"none"}},[`${le}-item, ${le}-submenu, ${le}-submenu-title`]:{borderRadius:he.itemBorderRadius},[`${le}-item-group-title`]:{padding:`${P}px ${fe}px`,fontSize:Dt,lineHeight:xt,transition:`all ${Re}`},[`&-horizontal ${le}-submenu`]:{transition:[`border-color ${Re} ${R}`,`background ${Re} ${R}`].join(",")},[`${le}-submenu, ${le}-submenu-inline`]:{transition:[`border-color ${Re} ${R}`,`background ${Re} ${R}`,`padding ${H} ${R}`].join(",")},[`${le}-submenu ${le}-sub`]:{cursor:"initial",transition:[`background ${Re} ${R}`,`padding ${Re} ${R}`].join(",")},[`${le}-title-content`]:{transition:`color ${Re}`},[`${le}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${le}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:oe,borderStyle:Xe,borderWidth:0,borderTopWidth:te,marginBlock:te,padding:0,"&-dashed":{borderStyle:"dashed"}}}),mt(he)),{[`${le}-item-group`]:{[`${le}-item-group-list`]:{margin:0,padding:0,[`${le}-item, ${le}-submenu-title`]:{paddingInline:`${Q*2}px ${fe}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Te,borderRadius:je,boxShadow:"none",transformOrigin:"0 0",[`&${le}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Ve}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Ve},"\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:he.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:he.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:he.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:he.paddingXS},[`> ${le}`]:Object.assign(Object.assign(Object.assign({borderRadius:je},mt(he)),gt(he)),{[`${le}-item, ${le}-submenu > ${le}-submenu-title`]:{borderRadius:Me},[`${le}-submenu-title::after`]:{transition:`transform ${Re} ${R}`}})}}),gt(he)),{[`&-inline-collapsed ${le}-submenu-arrow,
|
|
|
&-inline ${le}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Je})`},"&::after":{transform:`rotate(45deg) translateX(-${Je})`}},[`${le}-submenu-open${le}-submenu-inline > ${le}-submenu-title > ${le}-submenu-arrow`]:{transform:`translateY(-${Fe*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Je})`},"&::before":{transform:`rotate(45deg) translateX(${Je})`}}})},{[`${pe}-layout-header`]:{[le]:{lineHeight:"inherit"}}}]};var Lt=(he,pe)=>(0,be.Z)("Menu",Q=>{if(pe===!1)return[];const{colorBgElevated:Re,colorPrimary:H,colorTextLightSolid:R,controlHeightLG:P,fontSize:fe,darkItemColor:oe,darkDangerItemColor:te,darkItemBg:Te,darkSubMenuItemBg:je,darkItemSelectedColor:Me,darkItemSelectedBg:Fe,darkDangerItemSelectedBg:Je,darkItemHoverBg:Xe,darkGroupTitleColor:Ve,darkItemHoverColor:xt,darkItemDisabledColor:Dt,darkDangerItemHoverColor:vt,darkDangerItemSelectedColor:Bt,darkDangerItemActiveBg:Zt}=Q,C=fe/7*5,M=(0,N.TS)(Q,{menuArrowSize:C,menuHorizontalHeight:P*1.15,menuArrowOffset:`${C*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Re}),yt=(0,N.TS)(M,{itemColor:oe,itemHoverColor:xt,groupTitleColor:Ve,itemSelectedColor:Me,itemBg:Te,popupBg:Te,subMenuItemBg:je,itemActiveBg:"transparent",itemSelectedBg:Fe,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Xe,itemDisabledColor:Dt,dangerItemColor:te,dangerItemHoverColor:vt,dangerItemSelectedColor:Bt,dangerItemActiveBg:Zt,dangerItemSelectedBg:Je,menuSubMenuBg:je,horizontalItemSelectedColor:R,horizontalItemSelectedBg:H});return[at(M),J(M),qe(M),Be(M,"light"),Be(yt,"dark"),x(M),(0,ge.Z)(M),(0,de.oN)(M,"slide-up"),(0,de.oN)(M,"slide-down"),(0,W._y)(M,"zoom-big")]},Q=>{const{colorPrimary:Re,colorError:H,colorTextDisabled:R,colorErrorBg:P,colorText:fe,colorTextDescription:oe,colorBgContainer:te,colorFillAlter:Te,colorFillContent:je,lineWidth:Me,lineWidthBold:Fe,controlItemBgActive:Je,colorBgTextHover:Xe,controlHeightLG:Ve,lineHeight:xt,colorBgElevated:Dt,marginXXS:vt,padding:Bt,fontSize:Zt,controlHeightSM:C,fontSizeLG:M,colorTextLightSolid:yt,colorErrorHover:ye}=Q,Ne=new Ce.C(yt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Q.zIndexPopupBase+50,radiusItem:Q.borderRadiusLG,itemBorderRadius:Q.borderRadiusLG,radiusSubMenuItem:Q.borderRadiusSM,subMenuItemBorderRadius:Q.borderRadiusSM,colorItemText:fe,itemColor:fe,colorItemTextHover:fe,itemHoverColor:fe,colorItemTextHoverHorizontal:Re,horizontalItemHoverColor:Re,colorGroupTitle:oe,groupTitleColor:oe,colorItemTextSelected:Re,itemSelectedColor:Re,colorItemTextSelectedHorizontal:Re,horizontalItemSelectedColor:Re,colorItemBg:te,itemBg:te,colorItemBgHover:Xe,itemHoverBg:Xe,colorItemBgActive:je,itemActiveBg:Je,colorSubItemBg:Te,subMenuItemBg:Te,colorItemBgSelected:Je,itemSelectedBg:Je,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Fe,activeBarHeight:Fe,colorActiveBarBorderSize:Me,activeBarBorderWidth:Me,colorItemTextDisabled:R,itemDisabledColor:R,colorDangerItemText:H,dangerItemColor:H,colorDangerItemTextHover:H,dangerItemHoverColor:H,colorDangerItemTextSelected:H,dangerItemSelectedColor:H,colorDangerItemBgActive:P,dangerItemActiveBg:P,colorDangerItemBgSelected:P,dangerItemSelectedBg:P,itemMarginInline:Q.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ve,groupTitleLineHeight:xt,collapsedWidth:Ve*2,popupBg:Dt,itemMarginBlock:vt,itemPaddingInline:Bt,horizontalLineHeight:`${Ve*1.15}px`,iconSize:Zt,iconMarginInlineEnd:C-Zt,collapsedIconSize:M,groupTitleFontSize:Zt,darkItemDisabledColor:new Ce.C(yt).setAlpha(.25).toRgbString(),darkItemColor:Ne,darkDangerItemColor:H,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:yt,darkItemSelectedBg:Re,darkDangerItemSelectedBg:H,darkItemHoverBg:"transparent",darkGroupTitleColor:Ne,darkItemHoverColor:yt,darkDangerItemHoverColor:ye,darkDangerItemSelectedColor:yt,darkDangerItemActiveBg:H}},{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"]]})(he),tn=function(he,pe){var le={};for(var Q in he)Object.prototype.hasOwnProperty.call(he,Q)&&pe.indexOf(Q)<0&&(le[Q]=he[Q]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,Q=Object.getOwnPropertySymbols(he);Re<Q.length;Re++)pe.indexOf(Q[Re])<0&&Object.prototype.propertyIsEnumerable.call(he,Q[Re])&&(le[Q[Re]]=he[Q[Re]]);return le},Ht=(0,K.forwardRef)((he,pe)=>{var le,Q;const Re=K.useContext(D.Z),H=Re||{},{getPrefixCls:R,getPopupContainer:P,direction:fe,menu:oe}=K.useContext(m.E_),te=R(),{prefixCls:Te,className:je,style:Me,theme:Fe="light",expandIcon:Je,_internalDisableMenuItemTitleTooltip:Xe,inlineCollapsed:Ve,siderCollapsed:xt,items:Dt,children:vt,rootClassName:Bt,mode:Zt,selectable:C,onClick:M,overflowedIndicatorPopupClassName:yt}=he,ye=tn(he,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Ne=(0,k.Z)(ye,["collapsedWidth"]),Sn=xe(Dt)||vt;(le=H.validator)===null||le===void 0||le.call(H,{mode:Zt});const it=(0,X.useEvent)(function(){var Ln;M==null||M.apply(void 0,arguments),(Ln=H.onClick)===null||Ln===void 0||Ln.call(H)}),nt=H.mode||Zt,tt=C!=null?C:H.selectable,we=K.useMemo(()=>xt!==void 0?xt:Ve,[Ve,xt]),Oe={horizontal:{motionName:`${te}-slide-up`},inline:(0,L.Z)(te),other:{motionName:`${te}-zoom-big`}},Le=R("menu",Te||H.prefixCls),[rt,_e]=Lt(Le,!Re),Qt=A()(`${Le}-${Fe}`,oe==null?void 0:oe.className,je);let He;if(typeof Je=="function")He=Je;else if(Je===null||Je===!1)He=null;else if(H.expandIcon===null||H.expandIcon===!1)He=null;else{const Ln=Je!=null?Je:H.expandIcon;He=(0,_.Tm)(Ln,{className:A()(`${Le}-submenu-expand-icon`,(0,_.l$)(Ln)?(Q=Ln.props)===null||Q===void 0?void 0:Q.className:"")})}const xn=K.useMemo(()=>({prefixCls:Le,inlineCollapsed:we||!1,direction:fe,firstLevel:!0,theme:Fe,mode:nt,disableMenuItemTitleTooltip:Xe}),[Le,we,fe,Xe,Fe]);return rt(K.createElement(D.Z.Provider,{value:null},K.createElement(T.Provider,{value:xn},K.createElement(O.ZP,Object.assign({getPopupContainer:P,overflowedIndicator:K.createElement(G.Z,null),overflowedIndicatorPopupClassName:A()(Le,`${Le}-${Fe}`,yt),mode:nt,selectable:tt,onClick:it},Ne,{inlineCollapsed:we,style:Object.assign(Object.assign({},oe==null?void 0:oe.style),Me),className:Qt,prefixCls:Le,direction:fe,defaultMotions:Oe,expandIcon:He,ref:pe,rootClassName:A()(Bt,_e)}),Sn))))});const ut=(0,K.forwardRef)((he,pe)=>{const le=(0,K.useRef)(null),Q=K.useContext(q.D);return(0,K.useImperativeHandle)(pe,()=>({menu:le.current,focus:Re=>{var H;(H=le.current)===null||H===void 0||H.focus(Re)}})),K.createElement(Ht,Object.assign({ref:le},he,Q))});ut.Item=se,ut.SubMenu=$,ut.Divider=o,ut.ItemGroup=O.BW;var wt=ut},58421:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return H}});var O=p(72308),K=p(59301),q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},ce=q,A=p(7657),m=function(P,fe){return K.createElement(A.Z,(0,O.Z)({},P,{ref:fe,icon:ce}))},w=K.forwardRef(m),re=w,o=p(49198),I=p(33853),k=p(38819),g=p(92310),_=p.n(g),S=p(49618),T=p(77321),B=p(96949),se=p(55090),z=p(77205),$=p(38793),G=p(26112),X={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},L=X,D=p(91735),Y=function(R){(0,z.Z)(fe,R);var P=(0,$.Z)(fe);function fe(){var oe;(0,B.Z)(this,fe);for(var te=arguments.length,Te=new Array(te),je=0;je<te;je++)Te[je]=arguments[je];return oe=P.call.apply(P,[this].concat(Te)),oe.state={goInputText:""},oe.getValidValue=function(){var Me=oe.state.goInputText;return!Me||Number.isNaN(Me)?void 0:Number(Me)},oe.buildOptionText=function(Me){return"".concat(Me," ").concat(oe.props.locale.items_per_page)},oe.changeSize=function(Me){oe.props.changeSize(Number(Me))},oe.handleChange=function(Me){oe.setState({goInputText:Me.target.value})},oe.handleBlur=function(Me){var Fe=oe.props,Je=Fe.goButton,Xe=Fe.quickGo,Ve=Fe.rootPrefixCls,xt=oe.state.goInputText;Je||xt===""||(oe.setState({goInputText:""}),!(Me.relatedTarget&&(Me.relatedTarget.className.indexOf("".concat(Ve,"-item-link"))>=0||Me.relatedTarget.className.indexOf("".concat(Ve,"-item"))>=0))&&Xe(oe.getValidValue()))},oe.go=function(Me){var Fe=oe.state.goInputText;Fe!==""&&(Me.keyCode===L.ENTER||Me.type==="click")&&(oe.setState({goInputText:""}),oe.props.quickGo(oe.getValidValue()))},oe}return(0,se.Z)(fe,[{key:"getPageSizeOptions",value:function(){var te=this.props,Te=te.pageSize,je=te.pageSizeOptions;return je.some(function(Me){return Me.toString()===Te.toString()})?je:je.concat([Te.toString()]).sort(function(Me,Fe){var Je=Number.isNaN(Number(Me))?0:Number(Me),Xe=Number.isNaN(Number(Fe))?0:Number(Fe);return Je-Xe})}},{key:"render",value:function(){var te=this,Te=this.props,je=Te.pageSize,Me=Te.locale,Fe=Te.rootPrefixCls,Je=Te.changeSize,Xe=Te.quickGo,Ve=Te.goButton,xt=Te.selectComponentClass,Dt=Te.buildOptionText,vt=Te.selectPrefixCls,Bt=Te.disabled,Zt=this.state.goInputText,C="".concat(Fe,"-options"),M=xt,yt=null,ye=null,Ne=null;if(!Je&&!Xe)return null;var Sn=this.getPageSizeOptions();if(Je&&M){var it=Sn.map(function(nt,tt){return K.createElement(M.Option,{key:tt,value:nt.toString()},(Dt||te.buildOptionText)(nt))});yt=K.createElement(M,{disabled:Bt,prefixCls:vt,showSearch:!1,className:"".concat(C,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(je||Sn[0]).toString(),onChange:this.changeSize,getPopupContainer:function(tt){return tt.parentNode},"aria-label":Me.page_size,defaultOpen:!1},it)}return Xe&&(Ve&&(Ne=typeof Ve=="boolean"?K.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Bt,className:"".concat(C,"-quick-jumper-button")},Me.jump_to_confirm):K.createElement("span",{onClick:this.go,onKeyUp:this.go},Ve)),ye=K.createElement("div",{className:"".concat(C,"-quick-jumper")},Me.jump_to,K.createElement("input",{disabled:Bt,type:"text",value:Zt,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Me.page}),Me.page,Ne)),K.createElement("li",{className:"".concat(C)},yt,ye)}}]),fe}(K.Component);Y.defaultProps={pageSizeOptions:["10","20","50","100"]};var j=Y,xe=function(P){var fe,oe=P.rootPrefixCls,te=P.page,Te=P.active,je=P.className,Me=P.showTitle,Fe=P.onClick,Je=P.onKeyPress,Xe=P.itemRender,Ve="".concat(oe,"-item"),xt=_()(Ve,"".concat(Ve,"-").concat(te),(fe={},(0,S.Z)(fe,"".concat(Ve,"-active"),Te),(0,S.Z)(fe,"".concat(Ve,"-disabled"),!te),(0,S.Z)(fe,P.className,je),fe)),Dt=function(){Fe(te)},vt=function(C){Je(C,Fe,te)},Bt=Xe(te,"page",K.createElement("a",{rel:"nofollow"},te));return Bt?K.createElement("li",{title:Me?te.toString():null,className:xt,onClick:Dt,onKeyPress:vt,tabIndex:0},Bt):null},Ce=xe;function Ee(){}function ge(R){var P=Number(R);return typeof P=="number"&&!Number.isNaN(P)&&isFinite(P)&&Math.floor(P)===P}var de=function(P,fe,oe){return oe};function W(R,P,fe){var oe=typeof R=="undefined"?P.pageSize:R;return Math.floor((fe.total-1)/oe)+1}var be=function(R){(0,z.Z)(fe,R);var P=(0,$.Z)(fe);function fe(oe){var te;(0,B.Z)(this,fe),te=P.call(this,oe),te.paginationNode=K.createRef(),te.getJumpPrevPage=function(){return Math.max(1,te.state.current-(te.props.showLessItems?3:5))},te.getJumpNextPage=function(){return Math.min(W(void 0,te.state,te.props),te.state.current+(te.props.showLessItems?3:5))},te.getItemIcon=function(Je,Xe){var Ve=te.props.prefixCls,xt=Je||K.createElement("button",{type:"button","aria-label":Xe,className:"".concat(Ve,"-item-link")});return typeof Je=="function"&&(xt=K.createElement(Je,(0,T.Z)({},te.props))),xt},te.isValid=function(Je){var Xe=te.props.total;return ge(Je)&&Je!==te.state.current&&ge(Xe)&&Xe>0},te.shouldDisplayQuickJumper=function(){var Je=te.props,Xe=Je.showQuickJumper,Ve=Je.total,xt=te.state.pageSize;return Ve<=xt?!1:Xe},te.handleKeyDown=function(Je){(Je.keyCode===L.ARROW_UP||Je.keyCode===L.ARROW_DOWN)&&Je.preventDefault()},te.handleKeyUp=function(Je){var Xe=te.getValidValue(Je),Ve=te.state.currentInputValue;Xe!==Ve&&te.setState({currentInputValue:Xe}),Je.keyCode===L.ENTER?te.handleChange(Xe):Je.keyCode===L.ARROW_UP?te.handleChange(Xe-1):Je.keyCode===L.ARROW_DOWN&&te.handleChange(Xe+1)},te.handleBlur=function(Je){var Xe=te.getValidValue(Je);te.handleChange(Xe)},te.changePageSize=function(Je){var Xe=te.state.current,Ve=W(Je,te.state,te.props);Xe=Xe>Ve?Ve:Xe,Ve===0&&(Xe=te.state.current),typeof Je=="number"&&("pageSize"in te.props||te.setState({pageSize:Je}),"current"in te.props||te.setState({current:Xe,currentInputValue:Xe})),te.props.onShowSizeChange(Xe,Je),"onChange"in te.props&&te.props.onChange&&te.props.onChange(Xe,Je)},te.handleChange=function(Je){var Xe=te.props,Ve=Xe.disabled,xt=Xe.onChange,Dt=te.state,vt=Dt.pageSize,Bt=Dt.current,Zt=Dt.currentInputValue;if(te.isValid(Je)&&!Ve){var C=W(void 0,te.state,te.props),M=Je;return Je>C?M=C:Je<1&&(M=1),"current"in te.props||te.setState({current:M}),M!==Zt&&te.setState({currentInputValue:M}),xt(M,vt),M}return Bt},te.prev=function(){te.hasPrev()&&te.handleChange(te.state.current-1)},te.next=function(){te.hasNext()&&te.handleChange(te.state.current+1)},te.jumpPrev=function(){te.handleChange(te.getJumpPrevPage())},te.jumpNext=function(){te.handleChange(te.getJumpNextPage())},te.hasPrev=function(){return te.state.current>1},te.hasNext=function(){return te.state.current<W(void 0,te.state,te.props)},te.runIfEnter=function(Je,Xe){if(Je.key==="Enter"||Je.charCode===13){for(var Ve=arguments.length,xt=new Array(Ve>2?Ve-2:0),Dt=2;Dt<Ve;Dt++)xt[Dt-2]=arguments[Dt];Xe.apply(void 0,xt)}},te.runIfEnterPrev=function(Je){te.runIfEnter(Je,te.prev)},te.runIfEnterNext=function(Je){te.runIfEnter(Je,te.next)},te.runIfEnterJumpPrev=function(Je){te.runIfEnter(Je,te.jumpPrev)},te.runIfEnterJumpNext=function(Je){te.runIfEnter(Je,te.jumpNext)},te.handleGoTO=function(Je){(Je.keyCode===L.ENTER||Je.type==="click")&&te.handleChange(te.state.currentInputValue)},te.renderPrev=function(Je){var Xe=te.props,Ve=Xe.prevIcon,xt=Xe.itemRender,Dt=xt(Je,"prev",te.getItemIcon(Ve,"prev page")),vt=!te.hasPrev();return(0,K.isValidElement)(Dt)?(0,K.cloneElement)(Dt,{disabled:vt}):Dt},te.renderNext=function(Je){var Xe=te.props,Ve=Xe.nextIcon,xt=Xe.itemRender,Dt=xt(Je,"next",te.getItemIcon(Ve,"next page")),vt=!te.hasNext();return(0,K.isValidElement)(Dt)?(0,K.cloneElement)(Dt,{disabled:vt}):Dt};var Te=oe.onChange!==Ee,je="current"in oe;je&&!Te&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Me=oe.defaultCurrent;"current"in oe&&(Me=oe.current);var Fe=oe.defaultPageSize;return"pageSize"in oe&&(Fe=oe.pageSize),Me=Math.min(Me,W(Fe,void 0,oe)),te.state={current:Me,currentInputValue:Me,pageSize:Fe},te}return(0,se.Z)(fe,[{key:"componentDidUpdate",value:function(te,Te){var je=this.props.prefixCls;if(Te.current!==this.state.current&&this.paginationNode.current){var Me=this.paginationNode.current.querySelector(".".concat(je,"-item-").concat(Te.current));if(Me&&document.activeElement===Me){var Fe;Me==null||(Fe=Me.blur)===null||Fe===void 0||Fe.call(Me)}}}},{key:"getValidValue",value:function(te){var Te=te.target.value,je=W(void 0,this.state,this.props),Me=this.state.currentInputValue,Fe;return Te===""?Fe=Te:Number.isNaN(Number(Te))?Fe=Me:Te>=je?Fe=je:Fe=Number(Te),Fe}},{key:"getShowSizeChanger",value:function(){var te=this.props,Te=te.showSizeChanger,je=te.total,Me=te.totalBoundaryShowSizeChanger;return typeof Te!="undefined"?Te:je>Me}},{key:"render",value:function(){var te=this.props,Te=te.prefixCls,je=te.className,Me=te.style,Fe=te.disabled,Je=te.hideOnSinglePage,Xe=te.total,Ve=te.locale,xt=te.showQuickJumper,Dt=te.showLessItems,vt=te.showTitle,Bt=te.showTotal,Zt=te.simple,C=te.itemRender,M=te.showPrevNextJumpers,yt=te.jumpPrevIcon,ye=te.jumpNextIcon,Ne=te.selectComponentClass,Sn=te.selectPrefixCls,it=te.pageSizeOptions,nt=this.state,tt=nt.current,we=nt.pageSize,Oe=nt.currentInputValue;if(Je===!0&&Xe<=we)return null;var Le=W(void 0,this.state,this.props),rt=[],_e=null,Qt=null,He=null,xn=null,Ln=null,_r=xt&&xt.goButton,Hn=Dt?1:2,yn=tt-1>0?tt-1:0,wn=tt+1<Le?tt+1:Le,Ye=(0,G.Z)(this.props,{aria:!0,data:!0}),Ot=Bt&&K.createElement("li",{className:"".concat(Te,"-total-text")},Bt(Xe,[Xe===0?0:(tt-1)*we+1,tt*we>Xe?Xe:tt*we]));if(Zt){_r&&(typeof _r=="boolean"?Ln=K.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ve.jump_to_confirm):Ln=K.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},_r),Ln=K.createElement("li",{title:vt?"".concat(Ve.jump_to).concat(tt,"/").concat(Le):null,className:"".concat(Te,"-simple-pager")},Ln));var Ut=this.renderPrev(yn);return K.createElement("ul",(0,O.Z)({className:_()(Te,"".concat(Te,"-simple"),(0,S.Z)({},"".concat(Te,"-disabled"),Fe),je),style:Me,ref:this.paginationNode},Ye),Ot,Ut?K.createElement("li",{title:vt?Ve.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:_()("".concat(Te,"-prev"),(0,S.Z)({},"".concat(Te,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Ut):null,K.createElement("li",{title:vt?"".concat(tt,"/").concat(Le):null,className:"".concat(Te,"-simple-pager")},K.createElement("input",{type:"text",value:Oe,disabled:Fe,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),K.createElement("span",{className:"".concat(Te,"-slash")},"/"),Le),K.createElement("li",{title:vt?Ve.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:_()("".concat(Te,"-next"),(0,S.Z)({},"".concat(Te,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(wn)),Ln)}if(Le<=3+Hn*2){var Ke={locale:Ve,rootPrefixCls:Te,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:vt,itemRender:C};Le||rt.push(K.createElement(Ce,(0,O.Z)({},Ke,{key:"noPager",page:1,className:"".concat(Te,"-item-disabled")})));for(var Pe=1;Pe<=Le;Pe+=1){var _t=tt===Pe;rt.push(K.createElement(Ce,(0,O.Z)({},Ke,{key:Pe,page:Pe,active:_t})))}}else{var Ct=Dt?Ve.prev_3:Ve.prev_5,nn=Dt?Ve.next_3:Ve.next_5,Vt=C(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(yt,"prev page")),dn=C(this.getJumpNextPage(),"jump-next",this.getItemIcon(ye,"next page"));M&&(_e=Vt?K.createElement("li",{title:vt?Ct:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:_()("".concat(Te,"-jump-prev"),(0,S.Z)({},"".concat(Te,"-jump-prev-custom-icon"),!!yt))},Vt):null,Qt=dn?K.createElement("li",{title:vt?nn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:_()("".concat(Te,"-jump-next"),(0,S.Z)({},"".concat(Te,"-jump-next-custom-icon"),!!ye))},dn):null),xn=K.createElement(Ce,{locale:Ve,last:!0,rootPrefixCls:Te,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Le,page:Le,active:!1,showTitle:vt,itemRender:C}),He=K.createElement(Ce,{locale:Ve,rootPrefixCls:Te,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:vt,itemRender:C});var rn=Math.max(1,tt-Hn),bn=Math.min(tt+Hn,Le);tt-1<=Hn&&(bn=1+Hn*2),Le-tt<=Hn&&(rn=Le-Hn*2);for(var In=rn;In<=bn;In+=1){var Cn=tt===In;rt.push(K.createElement(Ce,{locale:Ve,rootPrefixCls:Te,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:In,page:In,active:Cn,showTitle:vt,itemRender:C}))}tt-1>=Hn*2&&tt!==3&&(rt[0]=(0,K.cloneElement)(rt[0],{className:"".concat(Te,"-item-after-jump-prev")}),rt.unshift(_e)),Le-tt>=Hn*2&&tt!==Le-2&&(rt[rt.length-1]=(0,K.cloneElement)(rt[rt.length-1],{className:"".concat(Te,"-item-before-jump-next")}),rt.push(Qt)),rn!==1&&rt.unshift(He),bn!==Le&&rt.push(xn)}var Kt=!this.hasPrev()||!Le,Gt=!this.hasNext()||!Le,qt=this.renderPrev(yn),fn=this.renderNext(wn);return K.createElement("ul",(0,O.Z)({className:_()(Te,je,(0,S.Z)({},"".concat(Te,"-disabled"),Fe)),style:Me,ref:this.paginationNode},Ye),Ot,qt?K.createElement("li",{title:vt?Ve.prev_page:null,onClick:this.prev,tabIndex:Kt?null:0,onKeyPress:this.runIfEnterPrev,className:_()("".concat(Te,"-prev"),(0,S.Z)({},"".concat(Te,"-disabled"),Kt)),"aria-disabled":Kt},qt):null,rt,fn?K.createElement("li",{title:vt?Ve.next_page:null,onClick:this.next,tabIndex:Gt?null:0,onKeyPress:this.runIfEnterNext,className:_()("".concat(Te,"-next"),(0,S.Z)({},"".concat(Te,"-disabled"),Gt)),"aria-disabled":Gt},fn):null,K.createElement(j,{disabled:Fe,locale:Ve,rootPrefixCls:Te,selectComponentClass:Ne,selectPrefixCls:Sn,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:tt,pageSize:we,pageSizeOptions:it,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:_r}))}}],[{key:"getDerivedStateFromProps",value:function(te,Te){var je={};if("current"in te&&(je.current=te.current,te.current!==Te.current&&(je.currentInputValue=je.current)),"pageSize"in te&&te.pageSize!==Te.pageSize){var Me=Te.current,Fe=W(te.pageSize,Te,te);Me=Me>Fe?Fe:Me,"current"in te||(je.current=Me,je.currentInputValue=Me),je.pageSize=te.pageSize}return je}}]),fe}(K.Component);be.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Ee,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Ee,locale:D.Z,style:{},itemRender:de,totalBoundaryShowSizeChanger:50};var N=be,ue=p(22075),J=p(36355),v=p(19716),x=p(8628),Z=p(9763),me=p(57809);const Be=R=>K.createElement(me.default,Object.assign({},R,{showSearch:!0,size:"small"})),Ue=R=>K.createElement(me.default,Object.assign({},R,{showSearch:!0,size:"middle"}));Be.Option=me.default.Option,Ue.Option=me.default.Option;var ze=p(9937),qe=p(17313),mt=p(83116),gt=p(37613);const at=R=>{const{componentCls:P}=R;return{[`${P}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${P}-item-link`]:{color:R.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${P}-item-link`]:{color:R.colorTextDisabled,cursor:"not-allowed"}}},[`&${P}-disabled`]:{cursor:"not-allowed",[`${P}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:R.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:R.colorBorder,backgroundColor:R.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:R.itemActiveBgDisabled},a:{color:R.itemActiveColorDisabled}}},[`${P}-item-link`]:{color:R.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${P}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${P}-simple-pager`]:{color:R.colorTextDisabled},[`${P}-jump-prev, ${P}-jump-next`]:{[`${P}-item-link-icon`]:{opacity:0},[`${P}-item-ellipsis`]:{opacity:1}}},[`&${P}-simple`]:{[`${P}-prev, ${P}-next`]:{[`&${P}-disabled ${P}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Lt=R=>{const{componentCls:P}=R;return{[`&${P}-mini ${P}-total-text, &${P}-mini ${P}-simple-pager`]:{height:R.itemSizeSM,lineHeight:`${R.itemSizeSM}px`},[`&${P}-mini ${P}-item`]:{minWidth:R.itemSizeSM,height:R.itemSizeSM,margin:0,lineHeight:`${R.itemSizeSM-2}px`},[`&${P}-mini:not(${P}-disabled) ${P}-item:not(${P}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:R.colorBgTextHover},"&:active":{backgroundColor:R.colorBgTextActive}},[`&${P}-mini ${P}-prev, &${P}-mini ${P}-next`]:{minWidth:R.itemSizeSM,height:R.itemSizeSM,margin:0,lineHeight:`${R.itemSizeSM}px`},[`&${P}-mini:not(${P}-disabled)`]:{[`${P}-prev, ${P}-next`]:{[`&:hover ${P}-item-link`]:{backgroundColor:R.colorBgTextHover},[`&:active ${P}-item-link`]:{backgroundColor:R.colorBgTextActive},[`&${P}-disabled:hover ${P}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${P}-mini ${P}-prev ${P}-item-link,
|
|
|
&${P}-mini ${P}-next ${P}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:R.itemSizeSM,lineHeight:`${R.itemSizeSM}px`}},[`&${P}-mini ${P}-jump-prev, &${P}-mini ${P}-jump-next`]:{height:R.itemSizeSM,marginInlineEnd:0,lineHeight:`${R.itemSizeSM}px`},[`&${P}-mini ${P}-options`]:{marginInlineStart:R.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:R.miniOptionsSizeChangerTop},"&-quick-jumper":{height:R.itemSizeSM,lineHeight:`${R.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,ze.x0)(R)),{width:R.paginationMiniQuickJumperInputWidth,height:R.controlHeightSM})}}}},tn=R=>{const{componentCls:P}=R;return{[`
|
|
|
&${P}-simple ${P}-prev,
|
|
|
&${P}-simple ${P}-next
|
|
|
`]:{height:R.itemSizeSM,lineHeight:`${R.itemSizeSM}px`,verticalAlign:"top",[`${P}-item-link`]:{height:R.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:R.colorBgTextHover},"&:active":{backgroundColor:R.colorBgTextActive},"&::after":{height:R.itemSizeSM,lineHeight:`${R.itemSizeSM}px`}}},[`&${P}-simple ${P}-simple-pager`]:{display:"inline-block",height:R.itemSizeSM,marginInlineEnd:R.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:R.marginXS,padding:`0 ${R.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:R.itemInputBg,border:`${R.lineWidth}px ${R.lineType} ${R.colorBorder}`,borderRadius:R.borderRadius,outline:"none",transition:`border-color ${R.motionDurationMid}`,color:"inherit","&:hover":{borderColor:R.colorPrimary},"&:focus":{borderColor:R.colorPrimaryHover,boxShadow:`${R.inputOutlineOffset}px 0 ${R.controlOutlineWidth}px ${R.controlOutline}`},"&[disabled]":{color:R.colorTextDisabled,backgroundColor:R.colorBgContainerDisabled,borderColor:R.colorBorder,cursor:"not-allowed"}}}}},Rt=R=>{const{componentCls:P}=R;return{[`${P}-jump-prev, ${P}-jump-next`]:{outline:0,[`${P}-item-container`]:{position:"relative",[`${P}-item-link-icon`]:{color:R.colorPrimary,fontSize:R.fontSizeSM,opacity:0,transition:`all ${R.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${P}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:R.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:R.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:R.paginationEllipsisTextIndent,opacity:1,transition:`all ${R.motionDurationMid}`}},"&:hover":{[`${P}-item-link-icon`]:{opacity:1},[`${P}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${P}-prev,
|
|
|
${P}-jump-prev,
|
|
|
${P}-jump-next
|
|
|
`]:{marginInlineEnd:R.marginXS},[`
|
|
|
${P}-prev,
|
|
|
${P}-next,
|
|
|
${P}-jump-prev,
|
|
|
${P}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:R.itemSize,height:R.itemSize,color:R.colorText,fontFamily:R.fontFamily,lineHeight:`${R.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:R.borderRadius,cursor:"pointer",transition:`all ${R.motionDurationMid}`},[`${P}-prev, ${P}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:R.colorText,cursor:"pointer",userSelect:"none"},[`${P}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:R.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${R.lineWidth}px ${R.lineType} transparent`,borderRadius:R.borderRadius,outline:"none",transition:`all ${R.motionDurationMid}`},[`&:hover ${P}-item-link`]:{backgroundColor:R.colorBgTextHover},[`&:active ${P}-item-link`]:{backgroundColor:R.colorBgTextActive},[`&${P}-disabled:hover`]:{[`${P}-item-link`]:{backgroundColor:"transparent"}}},[`${P}-slash`]:{marginInlineEnd:R.paginationSlashMarginInlineEnd,marginInlineStart:R.paginationSlashMarginInlineStart},[`${P}-options`]:{display:"inline-block",marginInlineStart:R.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:R.controlHeight,marginInlineStart:R.marginXS,lineHeight:`${R.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,ze.ik)(R)),{width:R.controlHeightLG*1.25,height:R.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:R.marginXS,marginInlineEnd:R.marginXS})}}}},Ht=R=>{const{componentCls:P}=R;return{[`${P}-item`]:{display:"inline-block",minWidth:R.itemSize,height:R.itemSize,marginInlineEnd:R.marginXS,fontFamily:R.fontFamily,lineHeight:`${R.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${R.lineWidth}px ${R.lineType} transparent`,borderRadius:R.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${R.paginationItemPaddingInline}px`,color:R.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${P}-item-active)`]:{"&:hover":{transition:`all ${R.motionDurationMid}`,backgroundColor:R.colorBgTextHover},"&:active":{backgroundColor:R.colorBgTextActive}},"&-active":{fontWeight:R.fontWeightStrong,backgroundColor:R.itemActiveBg,borderColor:R.colorPrimary,a:{color:R.colorPrimary},"&:hover":{borderColor:R.colorPrimaryHover},"&:hover a":{color:R.colorPrimaryHover}}}}},ut=R=>{const{componentCls:P}=R;return{[P]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,qe.Wf)(R)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${P}-total-text`]:{display:"inline-block",height:R.itemSize,marginInlineEnd:R.marginXS,lineHeight:`${R.itemSize-2}px`,verticalAlign:"middle"}}),Ht(R)),Rt(R)),tn(R)),Lt(R)),at(R)),{[`@media only screen and (max-width: ${R.screenLG}px)`]:{[`${P}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${R.screenSM}px)`]:{[`${P}-options`]:{display:"none"}}}),[`&${R.componentCls}-rtl`]:{direction:"rtl"}}},wt=R=>{const{componentCls:P}=R;return{[`${P}${P}-disabled:not(${P}-mini)`]:{"&, &:hover":{[`${P}-item-link`]:{borderColor:R.colorBorder}},"&:focus-visible":{[`${P}-item-link`]:{borderColor:R.colorBorder}},[`${P}-item, ${P}-item-link`]:{backgroundColor:R.colorBgContainerDisabled,borderColor:R.colorBorder,[`&:hover:not(${P}-item-active)`]:{backgroundColor:R.colorBgContainerDisabled,borderColor:R.colorBorder,a:{color:R.colorTextDisabled}},[`&${P}-item-active`]:{backgroundColor:R.itemActiveBgDisabled}},[`${P}-prev, ${P}-next`]:{"&:hover button":{backgroundColor:R.colorBgContainerDisabled,borderColor:R.colorBorder,color:R.colorTextDisabled},[`${P}-item-link`]:{backgroundColor:R.colorBgContainerDisabled,borderColor:R.colorBorder}}},[`${P}:not(${P}-mini)`]:{[`${P}-prev, ${P}-next`]:{"&:hover button":{borderColor:R.colorPrimaryHover,backgroundColor:R.itemBg},[`${P}-item-link`]:{backgroundColor:R.itemLinkBg,borderColor:R.colorBorder},[`&:hover ${P}-item-link`]:{borderColor:R.colorPrimary,backgroundColor:R.itemBg,color:R.colorPrimary},[`&${P}-disabled`]:{[`${P}-item-link`]:{borderColor:R.colorBorder,color:R.colorTextDisabled}}},[`${P}-item`]:{backgroundColor:R.itemBg,border:`${R.lineWidth}px ${R.lineType} ${R.colorBorder}`,[`&:hover:not(${P}-item-active)`]:{borderColor:R.colorPrimary,backgroundColor:R.itemBg,a:{color:R.colorPrimary}},"&-active":{borderColor:R.colorPrimary}}}}},he=R=>{const{componentCls:P}=R;return{[`${P}:not(${P}-disabled)`]:{[`${P}-item`]:Object.assign({},(0,qe.Qy)(R)),[`${P}-jump-prev, ${P}-jump-next`]:{"&:focus-visible":Object.assign({[`${P}-item-link-icon`]:{opacity:1},[`${P}-item-ellipsis`]:{opacity:0}},(0,qe.oN)(R))},[`${P}-prev, ${P}-next`]:{[`&:focus-visible ${P}-item-link`]:Object.assign({},(0,qe.oN)(R))}}}};var pe=(0,mt.Z)("Pagination",R=>{const P=(0,gt.TS)(R,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:R.marginXXS/2,paginationMiniQuickJumperInputWidth:R.controlHeightLG*1.1,paginationItemPaddingInline:R.marginXXS*1.5,paginationEllipsisLetterSpacing:R.marginXXS/2,paginationSlashMarginInlineStart:R.marginXXS,paginationSlashMarginInlineEnd:R.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,ze.e5)(R),(0,ze.TM)(R));return[ut(P),he(P),R.wireframe&&wt(P)]},R=>({itemBg:R.colorBgContainer,itemSize:R.controlHeight,itemSizeSM:R.controlHeightSM,itemActiveBg:R.colorBgContainer,itemLinkBg:R.colorBgContainer,itemActiveColorDisabled:R.colorTextDisabled,itemActiveBgDisabled:R.controlItemBgActiveDisabled,itemInputBg:R.colorBgContainer,miniOptionsSizeChangerTop:0})),le=function(R,P){var fe={};for(var oe in R)Object.prototype.hasOwnProperty.call(R,oe)&&P.indexOf(oe)<0&&(fe[oe]=R[oe]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var te=0,oe=Object.getOwnPropertySymbols(R);te<oe.length;te++)P.indexOf(oe[te])<0&&Object.prototype.propertyIsEnumerable.call(R,oe[te])&&(fe[oe[te]]=R[oe[te]]);return fe},Re=R=>{const{prefixCls:P,selectPrefixCls:fe,className:oe,rootClassName:te,style:Te,size:je,locale:Me,selectComponentClass:Fe,responsive:Je,showSizeChanger:Xe}=R,Ve=le(R,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:xt}=(0,x.Z)(Je),{getPrefixCls:Dt,direction:vt,pagination:Bt={}}=K.useContext(J.E_),Zt=Dt("pagination",P),[C,M]=pe(Zt),yt=Xe!=null?Xe:Bt.showSizeChanger,ye=K.useMemo(()=>{const Le=K.createElement("span",{className:`${Zt}-item-ellipsis`},"\u2022\u2022\u2022"),rt=K.createElement("button",{className:`${Zt}-item-link`,type:"button",tabIndex:-1},vt==="rtl"?K.createElement(k.Z,null):K.createElement(I.Z,null)),_e=K.createElement("button",{className:`${Zt}-item-link`,type:"button",tabIndex:-1},vt==="rtl"?K.createElement(I.Z,null):K.createElement(k.Z,null)),Qt=K.createElement("a",{className:`${Zt}-item-link`},K.createElement("div",{className:`${Zt}-item-container`},vt==="rtl"?K.createElement(o.Z,{className:`${Zt}-item-link-icon`}):K.createElement(re,{className:`${Zt}-item-link-icon`}),Le)),He=K.createElement("a",{className:`${Zt}-item-link`},K.createElement("div",{className:`${Zt}-item-container`},vt==="rtl"?K.createElement(re,{className:`${Zt}-item-link-icon`}):K.createElement(o.Z,{className:`${Zt}-item-link-icon`}),Le));return{prevIcon:rt,nextIcon:_e,jumpPrevIcon:Qt,jumpNextIcon:He}},[vt,Zt]),[Ne]=(0,Z.Z)("Pagination",ue.Z),Sn=Object.assign(Object.assign({},Ne),Me),it=(0,v.Z)(je),nt=it==="small"||!!(xt&&!it&&Je),tt=Dt("select",fe),we=_()({[`${Zt}-mini`]:nt,[`${Zt}-rtl`]:vt==="rtl"},Bt==null?void 0:Bt.className,oe,te,M),Oe=Object.assign(Object.assign({},Bt==null?void 0:Bt.style),Te);return C(K.createElement(N,Object.assign({},ye,Ve,{style:Oe,prefixCls:Zt,selectPrefixCls:tt,className:we,selectComponentClass:Fe||(nt?Be:Ue),locale:Sn,showSizeChanger:yt})))},H=Re},5112:function(Xt,Ze,p){"use strict";p.d(Ze,{ZP:function(){return x}});var O=p(92310),K=p.n(O),q=p(18929),ce=p(26112),A=p(59301),m=p(36355),w=p(19716);const re=A.createContext(null),o=re.Provider;var I=re;const k=A.createContext(null),g=k.Provider;var _=p(5630),S=p(8654),T=p(1684),B=p(32441),se=p(17313),z=p(83116),$=p(37613);const G=Z=>{const{componentCls:me,antCls:Be}=Z,Ue=`${me}-group`;return{[Ue]:Object.assign(Object.assign({},(0,se.Wf)(Z)),{display:"inline-block",fontSize:0,[`&${Ue}-rtl`]:{direction:"rtl"},[`${Be}-badge ${Be}-badge-count`]:{zIndex:1},[`> ${Be}-badge:not(:first-child) > ${Be}-button-wrapper`]:{borderInlineStart:"none"}})}},X=Z=>{const{componentCls:me,wrapperMarginInlineEnd:Be,colorPrimary:Ue,radioSize:ze,motionDurationSlow:qe,motionDurationMid:mt,motionEaseInOutCirc:gt,colorBgContainer:at,colorBorder:Lt,lineWidth:tn,dotSize:Rt,colorBgContainerDisabled:Ht,colorTextDisabled:ut,paddingXS:wt,dotColorDisabled:he,lineType:pe,radioDotDisabledSize:le,wireframe:Q,colorWhite:Re}=Z,H=`${me}-inner`;return{[`${me}-wrapper`]:Object.assign(Object.assign({},(0,se.Wf)(Z)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Be,cursor:"pointer",[`&${me}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:Z.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${me}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${tn}px ${pe} ${Ue}`,borderRadius:"50%",visibility:"hidden",content:'""'},[me]:Object.assign(Object.assign({},(0,se.Wf)(Z)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${me}-wrapper:hover &,
|
|
|
&:hover ${H}`]:{borderColor:Ue},[`${me}-input:focus-visible + ${H}`]:Object.assign({},(0,se.oN)(Z)),[`${me}:hover::after, ${me}-wrapper:hover &::after`]:{visibility:"visible"},[`${me}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:ze,height:ze,marginBlockStart:ze/-2,marginInlineStart:ze/-2,backgroundColor:Q?Ue:Re,borderBlockStart:0,borderInlineStart:0,borderRadius:ze,transform:"scale(0)",opacity:0,transition:`all ${qe} ${gt}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:ze,height:ze,backgroundColor:at,borderColor:Lt,borderStyle:"solid",borderWidth:tn,borderRadius:"50%",transition:`all ${mt}`},[`${me}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${me}-checked`]:{[H]:{borderColor:Ue,backgroundColor:Q?at:Ue,"&::after":{transform:`scale(${Rt/ze})`,opacity:1,transition:`all ${qe} ${gt}`}}},[`${me}-disabled`]:{cursor:"not-allowed",[H]:{backgroundColor:Ht,borderColor:Lt,cursor:"not-allowed","&::after":{backgroundColor:he}},[`${me}-input`]:{cursor:"not-allowed"},[`${me}-disabled + span`]:{color:ut,cursor:"not-allowed"},[`&${me}-checked`]:{[H]:{"&::after":{transform:`scale(${le/ze})`}}}},[`span${me} + *`]:{paddingInlineStart:wt,paddingInlineEnd:wt}})}},L=Z=>{const{buttonColor:me,controlHeight:Be,componentCls:Ue,lineWidth:ze,lineType:qe,colorBorder:mt,motionDurationSlow:gt,motionDurationMid:at,buttonPaddingInline:Lt,fontSize:tn,buttonBg:Rt,fontSizeLG:Ht,controlHeightLG:ut,controlHeightSM:wt,paddingXS:he,borderRadius:pe,borderRadiusSM:le,borderRadiusLG:Q,buttonCheckedBg:Re,buttonSolidCheckedColor:H,colorTextDisabled:R,colorBgContainerDisabled:P,buttonCheckedBgDisabled:fe,buttonCheckedColorDisabled:oe,colorPrimary:te,colorPrimaryHover:Te,colorPrimaryActive:je,buttonSolidCheckedBg:Me,buttonSolidCheckedHoverBg:Fe,buttonSolidCheckedActiveBg:Je}=Z;return{[`${Ue}-button-wrapper`]:{position:"relative",display:"inline-block",height:Be,margin:0,paddingInline:Lt,paddingBlock:0,color:me,fontSize:tn,lineHeight:`${Be-ze*2}px`,background:Rt,border:`${ze}px ${qe} ${mt}`,borderBlockStartWidth:ze+.02,borderInlineStartWidth:0,borderInlineEndWidth:ze,cursor:"pointer",transition:[`color ${at}`,`background ${at}`,`box-shadow ${at}`].join(","),a:{color:me},[`> ${Ue}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-ze,insetInlineStart:-ze,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:ze,paddingInline:0,backgroundColor:mt,transition:`background-color ${gt}`,content:'""'}},"&:first-child":{borderInlineStart:`${ze}px ${qe} ${mt}`,borderStartStartRadius:pe,borderEndStartRadius:pe},"&:last-child":{borderStartEndRadius:pe,borderEndEndRadius:pe},"&:first-child:last-child":{borderRadius:pe},[`${Ue}-group-large &`]:{height:ut,fontSize:Ht,lineHeight:`${ut-ze*2}px`,"&:first-child":{borderStartStartRadius:Q,borderEndStartRadius:Q},"&:last-child":{borderStartEndRadius:Q,borderEndEndRadius:Q}},[`${Ue}-group-small &`]:{height:wt,paddingInline:he-ze,paddingBlock:0,lineHeight:`${wt-ze*2}px`,"&:first-child":{borderStartStartRadius:le,borderEndStartRadius:le},"&:last-child":{borderStartEndRadius:le,borderEndEndRadius:le}},"&:hover":{position:"relative",color:te},"&:has(:focus-visible)":Object.assign({},(0,se.oN)(Z)),[`${Ue}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${Ue}-button-wrapper-disabled)`]:{zIndex:1,color:te,background:Re,borderColor:te,"&::before":{backgroundColor:te},"&:first-child":{borderColor:te},"&:hover":{color:Te,borderColor:Te,"&::before":{backgroundColor:Te}},"&:active":{color:je,borderColor:je,"&::before":{backgroundColor:je}}},[`${Ue}-group-solid &-checked:not(${Ue}-button-wrapper-disabled)`]:{color:H,background:Me,borderColor:Me,"&:hover":{color:H,background:Fe,borderColor:Fe},"&:active":{color:H,background:Je,borderColor:Je}},"&-disabled":{color:R,backgroundColor:P,borderColor:mt,cursor:"not-allowed","&:first-child, &:hover":{color:R,backgroundColor:P,borderColor:mt}},[`&-disabled${Ue}-button-wrapper-checked`]:{color:oe,backgroundColor:fe,borderColor:mt,boxShadow:"none"}}}},D=Z=>Z-4*2;var Y=(0,z.Z)("Radio",Z=>{const{controlOutline:me,controlOutlineWidth:Be,radioSize:Ue}=Z,ze=`0 0 0 ${Be}px ${me}`,qe=ze,mt=D(Ue),gt=(0,$.TS)(Z,{radioDotDisabledSize:mt,radioFocusShadow:ze,radioButtonFocusShadow:qe});return[G(gt),X(gt),L(gt)]},Z=>{const{wireframe:me,padding:Be,marginXS:Ue,lineWidth:ze,fontSizeLG:qe,colorText:mt,colorBgContainer:gt,colorTextDisabled:at,controlItemBgActiveDisabled:Lt,colorTextLightSolid:tn,colorPrimary:Rt,colorPrimaryHover:Ht,colorPrimaryActive:ut}=Z,wt=4,he=qe,pe=me?D(he):he-(wt+ze)*2;return{radioSize:he,dotSize:pe,dotColorDisabled:at,buttonSolidCheckedColor:tn,buttonSolidCheckedBg:Rt,buttonSolidCheckedHoverBg:Ht,buttonSolidCheckedActiveBg:ut,buttonBg:gt,buttonCheckedBg:gt,buttonColor:mt,buttonCheckedBgDisabled:Lt,buttonCheckedColorDisabled:at,buttonPaddingInline:Be-ze,wrapperMarginInlineEnd:Ue}}),j=p(14088),xe=p(4572),Ce=function(Z,me){var Be={};for(var Ue in Z)Object.prototype.hasOwnProperty.call(Z,Ue)&&me.indexOf(Ue)<0&&(Be[Ue]=Z[Ue]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,Ue=Object.getOwnPropertySymbols(Z);ze<Ue.length;ze++)me.indexOf(Ue[ze])<0&&Object.prototype.propertyIsEnumerable.call(Z,Ue[ze])&&(Be[Ue[ze]]=Z[Ue[ze]]);return Be};const Ee=(Z,me)=>{var Be,Ue;const ze=A.useContext(I),qe=A.useContext(k),{getPrefixCls:mt,direction:gt,radio:at}=A.useContext(m.E_),Lt=A.useRef(null),tn=(0,S.sQ)(me,Lt),{isFormItemInput:Rt}=A.useContext(B.aM),Ht=je=>{var Me,Fe;(Me=Z.onChange)===null||Me===void 0||Me.call(Z,je),(Fe=ze==null?void 0:ze.onChange)===null||Fe===void 0||Fe.call(ze,je)},{prefixCls:ut,className:wt,rootClassName:he,children:pe,style:le}=Z,Q=Ce(Z,["prefixCls","className","rootClassName","children","style"]),Re=mt("radio",ut),H=((ze==null?void 0:ze.optionType)||qe)==="button",R=H?`${Re}-button`:Re,[P,fe]=Y(Re),oe=Object.assign({},Q),te=A.useContext(T.Z);ze&&(oe.name=ze.name,oe.onChange=Ht,oe.checked=Z.value===ze.value,oe.disabled=(Be=oe.disabled)!==null&&Be!==void 0?Be:ze.disabled),oe.disabled=(Ue=oe.disabled)!==null&&Ue!==void 0?Ue:te;const Te=K()(`${R}-wrapper`,{[`${R}-wrapper-checked`]:oe.checked,[`${R}-wrapper-disabled`]:oe.disabled,[`${R}-wrapper-rtl`]:gt==="rtl",[`${R}-wrapper-in-form-item`]:Rt},at==null?void 0:at.className,wt,he,fe);return P(A.createElement(j.Z,{component:"Radio",disabled:oe.disabled},A.createElement("label",{className:Te,style:Object.assign(Object.assign({},at==null?void 0:at.style),le),onMouseEnter:Z.onMouseEnter,onMouseLeave:Z.onMouseLeave},A.createElement(_.Z,Object.assign({},oe,{className:K()(oe.className,!H&&xe.A),type:"radio",prefixCls:R,ref:tn})),pe!==void 0?A.createElement("span",null,pe):null)))};var de=A.forwardRef(Ee);const W=A.forwardRef((Z,me)=>{const{getPrefixCls:Be,direction:Ue}=A.useContext(m.E_),[ze,qe]=(0,q.Z)(Z.defaultValue,{value:Z.value}),mt=Me=>{const Fe=ze,Je=Me.target.value;"value"in Z||qe(Je);const{onChange:Xe}=Z;Xe&&Je!==Fe&&Xe(Me)},{prefixCls:gt,className:at,rootClassName:Lt,options:tn,buttonStyle:Rt="outline",disabled:Ht,children:ut,size:wt,style:he,id:pe,onMouseEnter:le,onMouseLeave:Q,onFocus:Re,onBlur:H}=Z,R=Be("radio",gt),P=`${R}-group`,[fe,oe]=Y(R);let te=ut;tn&&tn.length>0&&(te=tn.map(Me=>typeof Me=="string"||typeof Me=="number"?A.createElement(de,{key:Me.toString(),prefixCls:R,disabled:Ht,value:Me,checked:ze===Me},Me):A.createElement(de,{key:`radio-group-value-options-${Me.value}`,prefixCls:R,disabled:Me.disabled||Ht,value:Me.value,checked:ze===Me.value,title:Me.title,style:Me.style},Me.label)));const Te=(0,w.Z)(wt),je=K()(P,`${P}-${Rt}`,{[`${P}-${Te}`]:Te,[`${P}-rtl`]:Ue==="rtl"},at,Lt,oe);return fe(A.createElement("div",Object.assign({},(0,ce.Z)(Z,{aria:!0,data:!0}),{className:je,style:he,onMouseEnter:le,onMouseLeave:Q,onFocus:Re,onBlur:H,id:pe,ref:me}),A.createElement(o,{value:{onChange:mt,value:ze,disabled:Z.disabled,name:Z.name,optionType:Z.optionType}},te)))});var be=A.memo(W),N=function(Z,me){var Be={};for(var Ue in Z)Object.prototype.hasOwnProperty.call(Z,Ue)&&me.indexOf(Ue)<0&&(Be[Ue]=Z[Ue]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,Ue=Object.getOwnPropertySymbols(Z);ze<Ue.length;ze++)me.indexOf(Ue[ze])<0&&Object.prototype.propertyIsEnumerable.call(Z,Ue[ze])&&(Be[Ue[ze]]=Z[Ue[ze]]);return Be};const ue=(Z,me)=>{const{getPrefixCls:Be}=A.useContext(m.E_),{prefixCls:Ue}=Z,ze=N(Z,["prefixCls"]),qe=Be("radio",Ue);return A.createElement(g,{value:"button"},A.createElement(de,Object.assign({prefixCls:qe},ze,{type:"radio",ref:me})))};var J=A.forwardRef(ue);const v=de;v.Button=J,v.Group=be,v.__ANT_RADIO=!0;var x=v},57809:function(Xt,Ze,p){"use strict";var O=p(92310),K=p.n(O),q=p(77861),ce=p(2738),A=p(59301),m=p(53487),w=p(62892),re=p(19080),o=p(36355),I=p(1684),k=p(93891),g=p(19716),_=p(32441),S=p(33234),T=p(14154),B=p(58582),se=p(84443),z=p(66339),$=function(Y,j){var xe={};for(var Ce in Y)Object.prototype.hasOwnProperty.call(Y,Ce)&&j.indexOf(Ce)<0&&(xe[Ce]=Y[Ce]);if(Y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,Ce=Object.getOwnPropertySymbols(Y);Ee<Ce.length;Ee++)j.indexOf(Ce[Ee])<0&&Object.prototype.propertyIsEnumerable.call(Y,Ce[Ee])&&(xe[Ce[Ee]]=Y[Ce[Ee]]);return xe};const G="SECRET_COMBOBOX_MODE_DO_NOT_USE",X=(Y,j)=>{var xe,{prefixCls:Ce,bordered:Ee=!0,className:ge,rootClassName:de,getPopupContainer:W,popupClassName:be,dropdownClassName:N,listHeight:ue=256,placement:J,listItemHeight:v=24,size:x,disabled:Z,notFoundContent:me,status:Be,builtinPlacements:Ue,dropdownMatchSelectWidth:ze,popupMatchSelectWidth:qe,direction:mt,style:gt,allowClear:at}=Y,Lt=$(Y,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:tn,getPrefixCls:Rt,renderEmpty:Ht,direction:ut,virtual:wt,popupMatchSelectWidth:he,popupOverflow:pe,select:le}=A.useContext(o.E_),Q=Rt("select",Ce),Re=Rt(),H=mt!=null?mt:ut,{compactSize:R,compactItemClassnames:P}=(0,S.ri)(Q,H),[fe,oe]=(0,T.Z)(Q),te=A.useMemo(()=>{const{mode:Oe}=Lt;if(Oe!=="combobox")return Oe===G?"combobox":Oe},[Lt.mode]),Te=te==="multiple"||te==="tags",je=(0,se.Z)(Lt.suffixIcon,Lt.showArrow),Me=(xe=qe!=null?qe:ze)!==null&&xe!==void 0?xe:he,{status:Fe,hasFeedback:Je,isFormItemInput:Xe,feedbackIcon:Ve}=A.useContext(_.aM),xt=(0,re.F)(Fe,Be);let Dt;me!==void 0?Dt=me:te==="combobox"?Dt=null:Dt=(Ht==null?void 0:Ht("Select"))||A.createElement(k.Z,{componentName:"Select"});const{suffixIcon:vt,itemIcon:Bt,removeIcon:Zt,clearIcon:C}=(0,z.Z)(Object.assign(Object.assign({},Lt),{multiple:Te,hasFeedback:Je,feedbackIcon:Ve,showSuffixIcon:je,prefixCls:Q,showArrow:Lt.showArrow,componentName:"Select"})),M=at===!0?{clearIcon:C}:at,yt=(0,ce.Z)(Lt,["suffixIcon","itemIcon"]),ye=K()(be||N,{[`${Q}-dropdown-${H}`]:H==="rtl"},de,oe),Ne=(0,g.Z)(Oe=>{var Le;return(Le=x!=null?x:R)!==null&&Le!==void 0?Le:Oe}),Sn=A.useContext(I.Z),it=Z!=null?Z:Sn,nt=K()({[`${Q}-lg`]:Ne==="large",[`${Q}-sm`]:Ne==="small",[`${Q}-rtl`]:H==="rtl",[`${Q}-borderless`]:!Ee,[`${Q}-in-form-item`]:Xe},(0,re.Z)(Q,xt,Je),P,le==null?void 0:le.className,ge,de,oe),tt=A.useMemo(()=>J!==void 0?J:H==="rtl"?"bottomRight":"bottomLeft",[J,H]),we=(0,B.Z)(Ue,pe);return fe(A.createElement(q.ZP,Object.assign({ref:j,virtual:wt,showSearch:le==null?void 0:le.showSearch},yt,{style:Object.assign(Object.assign({},le==null?void 0:le.style),gt),dropdownMatchSelectWidth:Me,builtinPlacements:we,transitionName:(0,w.m)(Re,"slide-up",Lt.transitionName),listHeight:ue,listItemHeight:v,mode:te,prefixCls:Q,placement:tt,direction:H,suffixIcon:vt,menuItemSelectedIcon:Bt,removeIcon:Zt,allowClear:M,notFoundContent:Dt,className:nt,getPopupContainer:W||tn,dropdownClassName:ye,disabled:it})))},L=A.forwardRef(X),D=(0,m.Z)(L);L.SECRET_COMBOBOX_MODE_DO_NOT_USE=G,L.Option=q.Wx,L.OptGroup=q.Xo,L._InternalPanelDoNotUseOrYouWillBeFired=D,Ze.default=L},14154:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return L}});var O=p(17313),K=p(74207),q=p(37613),ce=p(83116),A=p(13826),m=p(92899);const w=D=>{const{optionHeight:Y,optionFontSize:j,optionLineHeight:xe,optionPadding:Ce}=D;return{position:"relative",display:"block",minHeight:Y,padding:Ce,color:D.colorText,fontWeight:"normal",fontSize:j,lineHeight:xe,boxSizing:"border-box"}};var o=D=>{const{antCls:Y,componentCls:j}=D,xe=`${j}-item`,Ce=`&${Y}-slide-up-enter${Y}-slide-up-enter-active`,Ee=`&${Y}-slide-up-appear${Y}-slide-up-appear-active`,ge=`&${Y}-slide-up-leave${Y}-slide-up-leave-active`,de=`${j}-dropdown-placement-`;return[{[`${j}-dropdown`]:Object.assign(Object.assign({},(0,O.Wf)(D)),{position:"absolute",top:-9999,zIndex:D.zIndexPopup,boxSizing:"border-box",padding:D.paddingXXS,overflow:"hidden",fontSize:D.fontSize,fontVariant:"initial",backgroundColor:D.colorBgElevated,borderRadius:D.borderRadiusLG,outline:"none",boxShadow:D.boxShadowSecondary,[`
|
|
|
${Ce}${de}bottomLeft,
|
|
|
${Ee}${de}bottomLeft
|
|
|
`]:{animationName:A.fJ},[`
|
|
|
${Ce}${de}topLeft,
|
|
|
${Ee}${de}topLeft,
|
|
|
${Ce}${de}topRight,
|
|
|
${Ee}${de}topRight
|
|
|
`]:{animationName:A.Qt},[`${ge}${de}bottomLeft`]:{animationName:A.Uw},[`
|
|
|
${ge}${de}topLeft,
|
|
|
${ge}${de}topRight
|
|
|
`]:{animationName:A.ly},"&-hidden":{display:"none"},[`${xe}`]:Object.assign(Object.assign({},w(D)),{cursor:"pointer",transition:`background ${D.motionDurationSlow} ease`,borderRadius:D.borderRadiusSM,"&-group":{color:D.colorTextDescription,fontSize:D.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},O.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${xe}-option-disabled)`]:{backgroundColor:D.optionActiveBg},[`&-selected:not(${xe}-option-disabled)`]:{color:D.optionSelectedColor,fontWeight:D.optionSelectedFontWeight,backgroundColor:D.optionSelectedBg,[`${xe}-option-state`]:{color:D.colorPrimary}},"&-disabled":{[`&${xe}-option-selected`]:{backgroundColor:D.colorBgContainerDisabled},color:D.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:D.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,A.oN)(D,"slide-up"),(0,A.oN)(D,"slide-down"),(0,m.Fm)(D,"move-up"),(0,m.Fm)(D,"move-down")]};const I=2,k=D=>{let{controlHeightSM:Y,controlHeight:j,lineWidth:xe}=D;const Ce=(j-Y)/2-xe,Ee=Math.ceil(Ce/2);return[Ce,Ee]};function g(D,Y){const{componentCls:j,iconCls:xe}=D,Ce=`${j}-selection-overflow`,Ee=D.multipleSelectItemHeight,[ge]=k(D),de=Y?`${j}-${Y}`:"";return{[`${j}-multiple${de}`]:{fontSize:D.fontSize,[Ce]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${j}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${ge-I}px ${I*2}px`,borderRadius:D.borderRadius,[`${j}-show-search&`]:{cursor:"text"},[`${j}-disabled&`]:{background:D.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${I}px 0`,lineHeight:`${Ee}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${j}-show-arrow ${j}-selector,
|
|
|
&${j}-allow-clear ${j}-selector
|
|
|
`]:{paddingInlineEnd:D.fontSizeIcon+D.controlPaddingHorizontal},[`${j}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Ee,marginTop:I,marginBottom:I,lineHeight:`${Ee-D.lineWidth*2}px`,background:D.multipleItemBg,border:`${D.lineWidth}px ${D.lineType} ${D.multipleItemBorderColor}`,borderRadius:D.borderRadiusSM,cursor:"default",transition:`font-size ${D.motionDurationSlow}, line-height ${D.motionDurationSlow}, height ${D.motionDurationSlow}`,userSelect:"none",marginInlineEnd:I*2,paddingInlineStart:D.paddingXS,paddingInlineEnd:D.paddingXS/2,[`${j}-disabled&`]:{color:D.multipleItemColorDisabled,borderColor:D.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:D.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,O.Ro)()),{display:"inline-flex",alignItems:"center",color:D.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${xe}`]:{verticalAlign:"-0.2em"},"&:hover":{color:D.colorIconHover}})},[`${Ce}-item + ${Ce}-item`]:{[`${j}-selection-search`]:{marginInlineStart:0}},[`${j}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:D.inputPaddingHorizontalBase-ge,"\n &-input,\n &-mirror\n ":{height:Ee,fontFamily:D.fontFamily,lineHeight:`${Ee}px`,transition:`all ${D.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${j}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:D.inputPaddingHorizontalBase,insetInlineEnd:D.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${D.motionDurationSlow}`}}}}var S=D=>{const{componentCls:Y}=D,j=(0,q.TS)(D,{controlHeight:D.controlHeightSM,multipleSelectItemHeight:D.controlHeightXS,borderRadius:D.borderRadiusSM,borderRadiusSM:D.borderRadiusXS}),xe=(0,q.TS)(D,{fontSize:D.fontSizeLG,controlHeight:D.controlHeightLG,multipleSelectItemHeight:D.multipleItemHeightLG,borderRadius:D.borderRadiusLG,borderRadiusSM:D.borderRadius}),[,Ce]=k(D);return[g(D),g(j,"sm"),{[`${Y}-multiple${Y}-sm`]:{[`${Y}-selection-placeholder`]:{insetInline:D.controlPaddingHorizontalSM-D.lineWidth},[`${Y}-selection-search`]:{marginInlineStart:Ce}}},g(xe,"lg")]};function T(D,Y){const{componentCls:j,inputPaddingHorizontalBase:xe,borderRadius:Ce}=D,Ee=D.controlHeight-D.lineWidth*2,ge=Math.ceil(D.fontSize*1.25),de=Y?`${j}-${Y}`:"";return{[`${j}-single${de}`]:{fontSize:D.fontSize,[`${j}-selector`]:Object.assign(Object.assign({},(0,O.Wf)(D)),{display:"flex",borderRadius:Ce,[`${j}-selection-search`]:{position:"absolute",top:0,insetInlineStart:xe,insetInlineEnd:xe,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${j}-selection-item,
|
|
|
${j}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${Ee}px`,transition:`all ${D.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Ee}px`}},[`${j}-selection-item`]:{position:"relative",userSelect:"none"},[`${j}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${j}-selection-item:after`,`${j}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${j}-show-arrow ${j}-selection-item,
|
|
|
&${j}-show-arrow ${j}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:ge},[`&${j}-open ${j}-selection-item`]:{color:D.colorTextPlaceholder},[`&:not(${j}-customize-input)`]:{[`${j}-selector`]:{width:"100%",height:D.controlHeight,padding:`0 ${xe}px`,[`${j}-selection-search-input`]:{height:Ee},"&:after":{lineHeight:`${Ee}px`}}},[`&${j}-customize-input`]:{[`${j}-selector`]:{"&:after":{display:"none"},[`${j}-selection-search`]:{position:"static",width:"100%"},[`${j}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${xe}px`,"&:after":{display:"none"}}}}}}}function B(D){const{componentCls:Y}=D,j=D.controlPaddingHorizontalSM-D.lineWidth;return[T(D),T((0,q.TS)(D,{controlHeight:D.controlHeightSM,borderRadius:D.borderRadiusSM}),"sm"),{[`${Y}-single${Y}-sm`]:{[`&:not(${Y}-customize-input)`]:{[`${Y}-selection-search`]:{insetInlineStart:j,insetInlineEnd:j},[`${Y}-selector`]:{padding:`0 ${j}px`},[`&${Y}-show-arrow ${Y}-selection-search`]:{insetInlineEnd:j+D.fontSize*1.5},[`
|
|
|
&${Y}-show-arrow ${Y}-selection-item,
|
|
|
&${Y}-show-arrow ${Y}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:D.fontSize*1.5}}}},T((0,q.TS)(D,{controlHeight:D.singleItemHeightLG,fontSize:D.fontSizeLG,borderRadius:D.borderRadiusLG}),"lg")]}const se=D=>{const{componentCls:Y,selectorBg:j}=D;return{position:"relative",backgroundColor:j,border:`${D.lineWidth}px ${D.lineType} ${D.colorBorder}`,transition:`all ${D.motionDurationMid} ${D.motionEaseInOut}`,input:{cursor:"pointer"},[`${Y}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Y}-disabled&`]:{color:D.colorTextDisabled,background:D.colorBgContainerDisabled,cursor:"not-allowed",[`${Y}-multiple&`]:{background:D.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},z=function(D,Y){let j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:xe,borderHoverColor:Ce,outlineColor:Ee,antCls:ge}=Y,de=j?{[`${xe}-selector`]:{borderColor:Ce}}:{};return{[D]:{[`&:not(${xe}-disabled):not(${xe}-customize-input):not(${ge}-pagination-size-changer)`]:Object.assign(Object.assign({},de),{[`${xe}-focused& ${xe}-selector`]:{borderColor:Ce,boxShadow:`0 0 0 ${Y.controlOutlineWidth}px ${Ee}`,outline:0},[`&:hover ${xe}-selector`]:{borderColor:Ce}})}}},$=D=>{const{componentCls:Y}=D;return{[`${Y}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},G=D=>{const{componentCls:Y,inputPaddingHorizontalBase:j,iconCls:xe}=D;return{[Y]:Object.assign(Object.assign({},(0,O.Wf)(D)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Y}-customize-input) ${Y}-selector`]:Object.assign(Object.assign({},se(D)),$(D)),[`${Y}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},O.vS),[`${Y}-selection-placeholder`]:Object.assign(Object.assign({},O.vS),{flex:1,color:D.colorTextPlaceholder,pointerEvents:"none"}),[`${Y}-arrow`]:Object.assign(Object.assign({},(0,O.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:j,height:D.fontSizeIcon,marginTop:-D.fontSizeIcon/2,color:D.colorTextQuaternary,fontSize:D.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[xe]:{verticalAlign:"top",transition:`transform ${D.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Y}-suffix)`]:{pointerEvents:"auto"}},[`${Y}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Y}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:j,zIndex:1,display:"inline-block",width:D.fontSizeIcon,height:D.fontSizeIcon,marginTop:-D.fontSizeIcon/2,color:D.colorTextQuaternary,fontSize:D.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:D.clearBg,cursor:"pointer",opacity:0,transition:`color ${D.motionDurationMid} ease, opacity ${D.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:D.colorTextTertiary}},"&:hover":{[`${Y}-clear`]:{opacity:1}}}),[`${Y}-has-feedback`]:{[`${Y}-clear`]:{insetInlineEnd:j+D.fontSize+D.paddingXS}}}},X=D=>{const{componentCls:Y}=D;return[{[Y]:{[`&-borderless ${Y}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Y}-in-form-item`]:{width:"100%"}}},G(D),B(D),S(D),o(D),{[`${Y}-rtl`]:{direction:"rtl"}},z(Y,(0,q.TS)(D,{borderHoverColor:D.colorPrimaryHover,outlineColor:D.controlOutline})),z(`${Y}-status-error`,(0,q.TS)(D,{borderHoverColor:D.colorErrorHover,outlineColor:D.colorErrorOutline}),!0),z(`${Y}-status-warning`,(0,q.TS)(D,{borderHoverColor:D.colorWarningHover,outlineColor:D.colorWarningOutline}),!0),(0,K.c)(D,{borderElCls:`${Y}-selector`,focusElCls:`${Y}-focused`})]};var L=(0,ce.Z)("Select",(D,Y)=>{let{rootPrefixCls:j}=Y;const xe=(0,q.TS)(D,{rootPrefixCls:j,inputPaddingHorizontalBase:D.paddingSM-1,multipleSelectItemHeight:D.multipleItemHeight});return[X(xe)]},D=>{const{fontSize:Y,lineHeight:j,controlHeight:xe,controlPaddingHorizontal:Ce,zIndexPopupBase:Ee,colorText:ge,fontWeightStrong:de,controlItemBgActive:W,controlItemBgHover:be,colorBgContainer:N,colorFillSecondary:ue,controlHeightLG:J,controlHeightSM:v,colorBgContainerDisabled:x,colorTextDisabled:Z}=D;return{zIndexPopup:Ee+50,optionSelectedColor:ge,optionSelectedFontWeight:de,optionSelectedBg:W,optionActiveBg:be,optionPadding:`${(xe-Y*j)/2}px ${Ce}px`,optionFontSize:Y,optionLineHeight:j,optionHeight:xe,selectorBg:N,clearBg:N,singleItemHeightLG:J,multipleItemBg:ue,multipleItemBorderColor:"transparent",multipleItemHeight:v,multipleItemHeightLG:xe,multipleSelectorBgDisabled:x,multipleItemColorDisabled:Z,multipleItemBorderColorDisabled:"transparent"}})},58582:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return K}});const O=q=>{const A={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:q==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},A),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},A),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},A),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},A),{points:["br","tr"],offset:[0,-4]})}};function K(q,ce){return q||O(ce)}},84443:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return O}});function O(K,q){return q!==void 0?q:K!==null}},66339:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return re}});var O=p(40001),K=p(19248),q=p(99267),ce=p(84105),A=p(58617),m=p(47472),w=p(59301);function re(o){let{suffixIcon:I,clearIcon:k,menuItemSelectedIcon:g,removeIcon:_,loading:S,multiple:T,hasFeedback:B,prefixCls:se,showSuffixIcon:z,feedbackIcon:$,showArrow:G,componentName:X}=o;const L=k!=null?k:w.createElement(K.Z,null),D=Ce=>I===null&&!B&&!G?null:w.createElement(w.Fragment,null,z!==!1&&Ce,B&&$);let Y=null;if(I!==void 0)Y=D(I);else if(S)Y=D(w.createElement(A.Z,{spin:!0}));else{const Ce=`${se}-suffix`;Y=Ee=>{let{open:ge,showSearch:de}=Ee;return D(ge&&de?w.createElement(m.Z,{className:Ce}):w.createElement(ce.Z,{className:Ce}))}}let j=null;g!==void 0?j=g:T?j=w.createElement(O.Z,null):j=null;let xe=null;return _!==void 0?xe=_:xe=w.createElement(q.Z,null),{clearIcon:L,suffixIcon:Y,itemIcon:j,removeIcon:xe}}},81327:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return se}});var O=p(59301),K=p(92310),q=p.n(K),ce=p(11592),A=p(36355),m=p(33234);const w=O.createContext({latestIndex:0}),re=w.Provider;var I=z=>{let{className:$,index:G,children:X,split:L,style:D}=z;const{latestIndex:Y}=O.useContext(w);return X==null?null:O.createElement(O.Fragment,null,O.createElement("div",{className:$,style:D},X),G<Y&&L&&O.createElement("span",{className:`${$}-split`},L))},k=p(2856);function g(z){return["small","middle","large"].includes(z)}function _(z){return z?typeof z=="number"&&!Number.isNaN(z):!1}var S=function(z,$){var G={};for(var X in z)Object.prototype.hasOwnProperty.call(z,X)&&$.indexOf(X)<0&&(G[X]=z[X]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var L=0,X=Object.getOwnPropertySymbols(z);L<X.length;L++)$.indexOf(X[L])<0&&Object.prototype.propertyIsEnumerable.call(z,X[L])&&(G[X[L]]=z[X[L]]);return G};const B=O.forwardRef((z,$)=>{var G,X;const{getPrefixCls:L,space:D,direction:Y}=O.useContext(A.E_),{size:j=(D==null?void 0:D.size)||"small",align:xe,className:Ce,rootClassName:Ee,children:ge,direction:de="horizontal",prefixCls:W,split:be,style:N,wrap:ue=!1,classNames:J,styles:v}=z,x=S(z,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Z,me]=Array.isArray(j)?j:[j,j],Be=g(me),Ue=g(Z),ze=_(me),qe=_(Z),mt=(0,ce.Z)(ge,{keepEmpty:!0}),gt=xe===void 0&&de==="horizontal"?"center":xe,at=L("space",W),[Lt,tn]=(0,k.Z)(at),Rt=q()(at,D==null?void 0:D.className,tn,`${at}-${de}`,{[`${at}-rtl`]:Y==="rtl",[`${at}-align-${gt}`]:gt,[`${at}-gap-row-${me}`]:Be,[`${at}-gap-col-${Z}`]:Ue},Ce,Ee),Ht=q()(`${at}-item`,(G=J==null?void 0:J.item)!==null&&G!==void 0?G:(X=D==null?void 0:D.classNames)===null||X===void 0?void 0:X.item);let ut=0;const wt=mt.map((le,Q)=>{var Re,H;le!=null&&(ut=Q);const R=le&&le.key||`${Ht}-${Q}`;return O.createElement(I,{className:Ht,key:R,index:Q,split:be,style:(Re=v==null?void 0:v.item)!==null&&Re!==void 0?Re:(H=D==null?void 0:D.styles)===null||H===void 0?void 0:H.item},le)}),he=O.useMemo(()=>({latestIndex:ut}),[ut]);if(mt.length===0)return null;const pe={};return ue&&(pe.flexWrap="wrap"),!Ue&&qe&&(pe.columnGap=Z),!Be&&ze&&(pe.rowGap=me),Lt(O.createElement("div",Object.assign({ref:$,className:Rt,style:Object.assign(Object.assign(Object.assign({},pe),D==null?void 0:D.style),N)},x),O.createElement(re,{value:he},wt)))});B.Compact=m.ZP;var se=B},8378:function(Xt,Ze){"use strict";const p=O=>({[O.componentCls]:{[`${O.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${O.motionDurationMid} ${O.motionEaseInOut},
|
|
|
opacity ${O.motionDurationMid} ${O.motionEaseInOut} !important`}},[`${O.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${O.motionDurationMid} ${O.motionEaseInOut},
|
|
|
opacity ${O.motionDurationMid} ${O.motionEaseInOut} !important`}}});Ze.Z=p},92899:function(Xt,Ze,p){"use strict";p.d(Ze,{Fm:function(){return g}});var O=p(93083),K=p(95406);const q=new O.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ce=new O.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),A=new O.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),m=new O.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),w=new O.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),re=new O.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 O.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),I=new O.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),k={"move-up":{inKeyframes:o,outKeyframes:I},"move-down":{inKeyframes:q,outKeyframes:ce},"move-left":{inKeyframes:A,outKeyframes:m},"move-right":{inKeyframes:w,outKeyframes:re}},g=(_,S)=>{const{antCls:T}=_,B=`${T}-${S}`,{inKeyframes:se,outKeyframes:z}=k[S];return[(0,K.R)(B,se,z,_.motionDurationMid),{[`
|
|
|
${B}-enter,
|
|
|
${B}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:_.motionEaseOutCirc},[`${B}-leave`]:{animationTimingFunction:_.motionEaseInOutCirc}}]}},13826:function(Xt,Ze,p){"use strict";p.d(Ze,{Qt:function(){return A},Uw:function(){return ce},fJ:function(){return q},ly:function(){return m},oN:function(){return g}});var O=p(93083),K=p(95406);const q=new O.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),ce=new O.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),A=new O.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),m=new O.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),w=new O.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),re=new O.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),o=new O.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),I=new O.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),k={"slide-up":{inKeyframes:q,outKeyframes:ce},"slide-down":{inKeyframes:A,outKeyframes:m},"slide-left":{inKeyframes:w,outKeyframes:re},"slide-right":{inKeyframes:o,outKeyframes:I}},g=(_,S)=>{const{antCls:T}=_,B=`${T}-${S}`,{inKeyframes:se,outKeyframes:z}=k[S];return[(0,K.R)(B,se,z,_.motionDurationMid),{[`
|
|
|
${B}-enter,
|
|
|
${B}-appear
|
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:_.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${B}-leave`]:{animationTimingFunction:_.motionEaseInQuint}}]}},15969:function(Xt,Ze,p){"use strict";p.d(Ze,{N:function(){return O}});const O=K=>({color:K.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${K.motionDurationSlow}`,"&:focus, &:hover":{color:K.colorLinkHover},"&:active":{color:K.colorLinkActive}})},19447:function(Xt,Ze,p){"use strict";p.d(Ze,{ZP:function(){return A},fS:function(){return q},qN:function(){return K}});var O=p(47585);const K=8;function q(m){const w=K,{contentRadius:re,limitVerticalRadius:o}=m,I=re>12?re+2:12;return{dropdownArrowOffset:I,dropdownArrowOffsetVertical:o?w:I}}function ce(m,w){return m?w:{}}function A(m,w){const{componentCls:re,sizePopupArrow:o,borderRadiusXS:I,borderRadiusOuter:k,boxShadowPopoverArrow:g}=m,{colorBg:_,contentRadius:S=m.borderRadiusLG,limitVerticalRadius:T,arrowDistance:B=0,arrowPlacement:se={left:!0,right:!0,top:!0,bottom:!0}}=w,{dropdownArrowOffsetVertical:z,dropdownArrowOffset:$}=q({contentRadius:S,limitVerticalRadius:T});return{[re]:Object.assign(Object.assign(Object.assign(Object.assign({[`${re}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,O.r)(o,I,k,_,g)),{"&:before":{background:_}})]},ce(!!se.top,{[[`&-placement-top ${re}-arrow`,`&-placement-topLeft ${re}-arrow`,`&-placement-topRight ${re}-arrow`].join(",")]:{bottom:B,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${re}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${re}-arrow`]:{left:{_skip_check_:!0,value:$}},[`&-placement-topRight ${re}-arrow`]:{right:{_skip_check_:!0,value:$}}})),ce(!!se.bottom,{[[`&-placement-bottom ${re}-arrow`,`&-placement-bottomLeft ${re}-arrow`,`&-placement-bottomRight ${re}-arrow`].join(",")]:{top:B,transform:"translateY(-100%)"},[`&-placement-bottom ${re}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${re}-arrow`]:{left:{_skip_check_:!0,value:$}},[`&-placement-bottomRight ${re}-arrow`]:{right:{_skip_check_:!0,value:$}}})),ce(!!se.left,{[[`&-placement-left ${re}-arrow`,`&-placement-leftTop ${re}-arrow`,`&-placement-leftBottom ${re}-arrow`].join(",")]:{right:{_skip_check_:!0,value:B},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${re}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${re}-arrow`]:{top:z},[`&-placement-leftBottom ${re}-arrow`]:{bottom:z}})),ce(!!se.right,{[[`&-placement-right ${re}-arrow`,`&-placement-rightTop ${re}-arrow`,`&-placement-rightBottom ${re}-arrow`].join(",")]:{left:{_skip_check_:!0,value:B},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${re}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${re}-arrow`]:{top:z},[`&-placement-rightBottom ${re}-arrow`]:{bottom:z}}))}}},47585:function(Xt,Ze,p){"use strict";p.d(Ze,{r:function(){return O}});const O=(K,q,ce,A,m)=>{const w=K/2,re=0,o=w,I=ce*1/Math.sqrt(2),k=w-ce*(1-1/Math.sqrt(2)),g=w-q*(1/Math.sqrt(2)),_=ce*(Math.sqrt(2)-1)+q*(1/Math.sqrt(2)),S=2*w-g,T=_,B=2*w-I,se=k,z=2*w-re,$=o,G=w*Math.sqrt(2)+ce*(Math.sqrt(2)-2),X=ce*(Math.sqrt(2)-1);return{pointerEvents:"none",width:K,height:K,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:K,height:K/2,background:A,clipPath:{_multi_value_:!0,value:[`polygon(${X}px 100%, 50% ${X}px, ${2*w-X}px 100%, ${X}px 100%)`,`path('M ${re} ${o} A ${ce} ${ce} 0 0 0 ${I} ${k} L ${g} ${_} A ${q} ${q} 0 0 1 ${S} ${T} L ${B} ${se} A ${ce} ${ce} 0 0 0 ${z} ${$} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:G,height:G,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${q}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:m,zIndex:0,background:"transparent"}}}},1710:function(Xt,Ze,p){"use strict";p.d(Ze,{default:function(){return Eo}});var O={},K="rc-table-internal-hook",q=p(52487),ce=p(6089),A=p(34280),m=p(13697),w=p(59301),re=p(4676);function o(ae){var ve=w.createContext(void 0),$e=function(st){var ot=st.value,Et=st.children,St=w.useRef(ot);St.current=ot;var bt=w.useState(function(){return{getValue:function(){return St.current},listeners:new Set}}),Mt=(0,q.Z)(bt,1),Se=Mt[0];return(0,A.Z)(function(){(0,re.unstable_batchedUpdates)(function(){Se.listeners.forEach(function(kt){kt(ot)})})},[ot]),w.createElement(ve.Provider,{value:Se},Et)};return{Context:ve,Provider:$e,defaultValue:ae}}function I(ae,ve){var $e=(0,ce.Z)(typeof ve=="function"?ve:function(kt){if(ve===void 0)return kt;if(!Array.isArray(ve))return kt[ve];var pn={};return ve.forEach(function(un){pn[un]=kt[un]}),pn}),We=w.useContext(ae==null?void 0:ae.Context),st=We||{},ot=st.listeners,Et=st.getValue,St=w.useRef();St.current=$e(We?Et():ae==null?void 0:ae.defaultValue);var bt=w.useState({}),Mt=(0,q.Z)(bt,2),Se=Mt[1];return(0,A.Z)(function(){if(!We)return;function kt(pn){var un=$e(pn);(0,m.Z)(St.current,un,!0)||Se({})}return ot.add(kt),function(){ot.delete(kt)}},[We]),St.current}var k=p(72308),g=p(8654);function _(){var ae=w.createContext(null);function ve(){return w.useContext(ae)}function $e(st,ot){var Et=(0,g.Yr)(st),St=function(Mt,Se){var kt=Et?{ref:Se}:{},pn=w.useRef(0),un=w.useRef(Mt),cn=ve();return cn!==null?w.createElement(st,(0,k.Z)({},Mt,kt)):((!ot||ot(un.current,Mt))&&(pn.current+=1),un.current=Mt,w.createElement(ae.Provider,{value:pn.current},w.createElement(st,(0,k.Z)({},Mt,kt))))};return Et?w.forwardRef(St):St}function We(st,ot){var Et=(0,g.Yr)(st),St=function(Mt,Se){var kt=Et?{ref:Se}:{};return ve(),w.createElement(st,(0,k.Z)({},Mt,kt))};return Et?w.memo(w.forwardRef(St),ot):w.memo(St,ot)}return{makeImmutable:$e,responseImmutable:We,useImmutableMark:ve}}var S=_(),T=S.makeImmutable,B=S.responseImmutable,se=S.useImmutableMark,z=_(),$=z.makeImmutable,G=z.responseImmutable,X=z.useImmutableMark,L=o(),D=L;function Y(ae,ve){var $e=w.useRef(0);$e.current+=1;var We=w.useRef(ae),st=[];Object.keys(ae||{}).map(function(Et){var St;(ae==null?void 0:ae[Et])!==((St=We.current)===null||St===void 0?void 0:St[Et])&&st.push(Et)}),We.current=ae;var ot=w.useRef([]);return st.length&&(ot.current=st),w.useDebugValue($e.current),w.useDebugValue(ot.current.join(", ")),ve&&console.log("".concat(ve,":"),$e.current,ot.current),$e.current}var j=null,xe=w.memo(function(){var ae=Y();return w.createElement("h1",null,"Render Times: ",ae)});xe.displayName="RenderBlock";var Ce=p(62853),Ee=p(77321),ge=p(49618),de=p(92310),W=p.n(de),be=p(80547),N=p(97938),ue=p(48736),J=w.createContext({renderWithProps:!1}),v=J,x="RC_TABLE_KEY";function Z(ae){return ae==null?[]:Array.isArray(ae)?ae:[ae]}function me(ae){var ve=[],$e={};return ae.forEach(function(We){for(var st=We||{},ot=st.key,Et=st.dataIndex,St=ot||Z(Et).join("-")||x;$e[St];)St="".concat(St,"_next");$e[St]=!0,ve.push(St)}),ve}function Be(ae){return ae!=null}function Ue(ae){return ae&&(0,Ce.Z)(ae)==="object"&&!Array.isArray(ae)&&!w.isValidElement(ae)}function ze(ae,ve,$e,We,st,ot){var Et=w.useContext(v),St=X(),bt=(0,be.Z)(function(){if(Be(We))return[We];var Mt=ve==null||ve===""?[]:Array.isArray(ve)?ve:[ve],Se=(0,N.Z)(ae,Mt),kt=Se,pn=void 0;if(st){var un=st(Se,ae,$e);Ue(un)?(kt=un.children,pn=un.props,Et.renderWithProps=!0):kt=un}return[kt,pn]},[St,ae,We,ve,st,$e],function(Mt,Se){if(ot){var kt=(0,q.Z)(Mt,2),pn=kt[1],un=(0,q.Z)(Se,2),cn=un[1];return ot(cn,pn)}return Et.renderWithProps?!0:!(0,m.Z)(Mt,Se,!0)});return bt}function qe(ae,ve,$e,We){var st=ae+ve-1;return ae<=We&&st>=$e}function mt(ae,ve){return I(D,function($e){var We=qe(ae,ve||1,$e.hoverStartRow,$e.hoverEndRow);return[We,$e.onHover]})}var gt=function(ve){var $e=ve.ellipsis,We=ve.rowType,st=ve.children,ot,Et=$e===!0?{showTitle:!0}:$e;return Et&&(Et.showTitle||We==="header")&&(typeof st=="string"||typeof st=="number"?ot=st.toString():w.isValidElement(st)&&typeof st.props.children=="string"&&(ot=st.props.children)),ot};function at(ae){var ve,$e,We,st,ot,Et,St,bt,Mt=ae.component,Se=ae.children,kt=ae.ellipsis,pn=ae.scope,un=ae.prefixCls,cn=ae.className,Fn=ae.align,kn=ae.record,$n=ae.render,Mn=ae.dataIndex,Vn=ae.renderIndex,wr=ae.shouldCellUpdate,Sr=ae.index,vr=ae.rowType,Mr=ae.colSpan,Kr=ae.rowSpan,ir=ae.fixLeft,br=ae.fixRight,tr=ae.firstFixLeft,Kn=ae.lastFixLeft,hr=ae.firstFixRight,Nr=ae.lastFixRight,ti=ae.appendNode,ne=ae.additionalProps,l=ne===void 0?{}:ne,d=ae.isSticky,h="".concat(un,"-cell"),b=I(D,["supportSticky","allColumnsFixedLeft"]),F=b.supportSticky,ie=b.allColumnsFixedLeft,Ie=ze(kn,Mn,Vn,Se,$n,wr),ke=(0,q.Z)(Ie,2),Qe=ke[0],ht=ke[1],At={},Wt=typeof ir=="number"&&F,mn=typeof br=="number"&&F;Wt&&(At.position="sticky",At.left=ir),mn&&(At.position="sticky",At.right=br);var Yt=(ve=($e=(We=ht==null?void 0:ht.colSpan)!==null&&We!==void 0?We:l.colSpan)!==null&&$e!==void 0?$e:Mr)!==null&&ve!==void 0?ve:1,en=(st=(ot=(Et=ht==null?void 0:ht.rowSpan)!==null&&Et!==void 0?Et:l.rowSpan)!==null&&ot!==void 0?ot:Kr)!==null&&st!==void 0?st:1,et=mt(Sr,en),An=(0,q.Z)(et,2),lr=An[0],Pn=An[1],nr=function(_i){var qi;kn&&Pn(Sr,Sr+en-1),l==null||(qi=l.onMouseEnter)===null||qi===void 0||qi.call(l,_i)},Ar=function(_i){var qi;kn&&Pn(-1,-1),l==null||(qi=l.onMouseLeave)===null||qi===void 0||qi.call(l,_i)};if(Yt===0||en===0)return null;var Dr=(St=l.title)!==null&&St!==void 0?St:gt({rowType:vr,ellipsis:kt,children:Qe}),hi=W()(h,cn,(bt={},(0,ge.Z)(bt,"".concat(h,"-fix-left"),Wt&&F),(0,ge.Z)(bt,"".concat(h,"-fix-left-first"),tr&&F),(0,ge.Z)(bt,"".concat(h,"-fix-left-last"),Kn&&F),(0,ge.Z)(bt,"".concat(h,"-fix-left-all"),Kn&&ie&&F),(0,ge.Z)(bt,"".concat(h,"-fix-right"),mn&&F),(0,ge.Z)(bt,"".concat(h,"-fix-right-first"),hr&&F),(0,ge.Z)(bt,"".concat(h,"-fix-right-last"),Nr&&F),(0,ge.Z)(bt,"".concat(h,"-ellipsis"),kt),(0,ge.Z)(bt,"".concat(h,"-with-append"),ti),(0,ge.Z)(bt,"".concat(h,"-fix-sticky"),(Wt||mn)&&d&&F),(0,ge.Z)(bt,"".concat(h,"-row-hover"),!ht&&lr),bt),l.className,ht==null?void 0:ht.className),pi={};Fn&&(pi.textAlign=Fn);var Vi=(0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({},At),l.style),pi),ht==null?void 0:ht.style),ri=Qe;return(0,Ce.Z)(ri)==="object"&&!Array.isArray(ri)&&!w.isValidElement(ri)&&(ri=null),kt&&(Kn||hr)&&(ri=w.createElement("span",{className:"".concat(h,"-content")},ri)),w.createElement(Mt,(0,k.Z)({},ht,l,{className:hi,style:Vi,title:Dr,scope:pn,onMouseEnter:nr,onMouseLeave:Ar,colSpan:Yt!==1?Yt:null,rowSpan:en!==1?en:null}),ti,ri)}var Lt=w.memo(at);function tn(ae,ve,$e,We,st,ot){var Et=$e[ae]||{},St=$e[ve]||{},bt,Mt;Et.fixed==="left"?bt=We.left[st==="rtl"?ve:ae]:St.fixed==="right"&&(Mt=We.right[st==="rtl"?ae:ve]);var Se=!1,kt=!1,pn=!1,un=!1,cn=$e[ve+1],Fn=$e[ae-1],kn=!(ot!=null&&ot.children);if(st==="rtl"){if(bt!==void 0){var $n=Fn&&Fn.fixed==="left";un=!$n&&kn}else if(Mt!==void 0){var Mn=cn&&cn.fixed==="right";pn=!Mn&&kn}}else if(bt!==void 0){var Vn=cn&&cn.fixed==="left";Se=!Vn&&kn}else if(Mt!==void 0){var wr=Fn&&Fn.fixed==="right";kt=!wr&&kn}return{fixLeft:bt,fixRight:Mt,lastFixLeft:Se,firstFixRight:kt,lastFixRight:pn,firstFixLeft:un,isSticky:We.isSticky}}var Rt=w.createContext({}),Ht=Rt;function ut(ae){var ve=ae.className,$e=ae.index,We=ae.children,st=ae.colSpan,ot=st===void 0?1:st,Et=ae.rowSpan,St=ae.align,bt=I(D,["prefixCls","direction"]),Mt=bt.prefixCls,Se=bt.direction,kt=w.useContext(Ht),pn=kt.scrollColumnIndex,un=kt.stickyOffsets,cn=kt.flattenColumns,Fn=kt.columns,kn=$e+ot-1,$n=kn+1===pn?ot+1:ot,Mn=tn($e,$e+$n-1,cn,un,Se,Fn==null?void 0:Fn[$e]);return w.createElement(Lt,(0,k.Z)({className:ve,index:$e,component:"td",prefixCls:Mt,record:null,dataIndex:null,align:St,colSpan:$n,rowSpan:Et,render:function(){return We}},Mn))}var wt=p(74416),he=["children"];function pe(ae){var ve=ae.children,$e=(0,wt.Z)(ae,he);return w.createElement("tr",$e,ve)}function le(ae){var ve=ae.children;return ve}le.Row=pe,le.Cell=ut;var Q=le;function Re(ae){var ve=ae.children,$e=ae.stickyOffsets,We=ae.flattenColumns,st=ae.columns,ot=I(D,"prefixCls"),Et=We.length-1,St=We[Et],bt=w.useMemo(function(){return{stickyOffsets:$e,flattenColumns:We,scrollColumnIndex:St!=null&&St.scrollbar?Et:null,columns:st}},[St,We,Et,$e,st]);return w.createElement(Ht.Provider,{value:bt},w.createElement("tfoot",{className:"".concat(ot,"-summary")},ve))}var H=G(Re),R=Q,P=p(70425),fe=p(29301),oe=p(29194),te=p(24514),Te=p(75152),je=p(26112);function Me(ae,ve,$e,We,st,ot,Et){ae.push({record:ve,indent:$e,index:Et});var St=ot(ve),bt=st==null?void 0:st.has(St);if(ve&&Array.isArray(ve[We])&&bt)for(var Mt=0;Mt<ve[We].length;Mt+=1)Me(ae,ve[We][Mt],$e+1,We,st,ot,Mt)}function Fe(ae,ve,$e,We){var st=w.useMemo(function(){if($e!=null&&$e.size){for(var ot=[],Et=0;Et<(ae==null?void 0:ae.length);Et+=1){var St=ae[Et];Me(ot,St,0,ve,$e,We,Et)}return ot}return ae==null?void 0:ae.map(function(bt,Mt){return{record:bt,indent:0,index:Mt}})},[ae,ve,$e,We]);return st}function Je(ae){var ve=ae.prefixCls,$e=ae.children,We=ae.component,st=ae.cellComponent,ot=ae.className,Et=ae.expanded,St=ae.colSpan,bt=ae.isEmpty,Mt=I(D,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Se=Mt.scrollbarSize,kt=Mt.fixHeader,pn=Mt.fixColumn,un=Mt.componentWidth,cn=Mt.horizonScroll,Fn=$e;return(bt?cn&&un:pn)&&(Fn=w.createElement("div",{style:{width:un-(kt?Se:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(ve,"-expanded-row-fixed")},Fn)),w.createElement(We,{className:ot,style:{display:Et?null:"none"}},w.createElement(Lt,{component:st,prefixCls:ve,colSpan:St},Fn))}var Xe=Je;function Ve(ae,ve,$e,We){var st=I(D,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),ot=st.flattenColumns,Et=st.expandableType,St=st.expandedKeys,bt=st.childrenColumnName,Mt=st.onTriggerExpand,Se=st.rowExpandable,kt=st.onRow,pn=st.expandRowByClick,un=st.rowClassName,cn=Et==="nest",Fn=Et==="row"&&(!Se||Se(ae)),kn=Fn||cn,$n=St&&St.has(ve),Mn=bt&&ae&&ae[bt],Vn=(0,P.useEvent)(Mt),wr=kt==null?void 0:kt(ae,$e),Sr=wr==null?void 0:wr.onClick,vr=function(br){pn&&kn&&Mt(ae,br);for(var tr=arguments.length,Kn=new Array(tr>1?tr-1:0),hr=1;hr<tr;hr++)Kn[hr-1]=arguments[hr];Sr==null||Sr.apply(void 0,[br].concat(Kn))},Mr;typeof un=="string"?Mr=un:typeof un=="function"&&(Mr=un(ae,$e,We));var Kr=me(ot);return(0,Ee.Z)((0,Ee.Z)({},st),{},{columnsKey:Kr,nestExpandable:cn,expanded:$n,hasNestChildren:Mn,record:ae,onTriggerExpand:Vn,rowSupportExpand:Fn,expandable:kn,rowProps:(0,Ee.Z)((0,Ee.Z)({},wr),{},{className:W()(Mr,wr==null?void 0:wr.className),onClick:vr})})}function xt(ae,ve,$e,We,st){var ot=ae.record,Et=ae.prefixCls,St=ae.columnsKey,bt=ae.fixedInfoList,Mt=ae.expandIconColumnIndex,Se=ae.nestExpandable,kt=ae.indentSize,pn=ae.expandIcon,un=ae.expanded,cn=ae.hasNestChildren,Fn=ae.onTriggerExpand,kn=St[$e],$n=bt[$e],Mn;$e===(Mt||0)&&Se&&(Mn=w.createElement(w.Fragment,null,w.createElement("span",{style:{paddingLeft:"".concat(kt*We,"px")},className:"".concat(Et,"-row-indent indent-level-").concat(We)}),pn({prefixCls:Et,expanded:un,expandable:cn,record:ot,onExpand:Fn})));var Vn;return ve.onCell&&(Vn=ve.onCell(ot,st)),{key:kn,fixedInfo:$n,appendCellNode:Mn,additionalCellProps:Vn||{}}}function Dt(ae){var ve=ae.className,$e=ae.style,We=ae.record,st=ae.index,ot=ae.renderIndex,Et=ae.rowKey,St=ae.indent,bt=St===void 0?0:St,Mt=ae.rowComponent,Se=ae.cellComponent,kt=ae.scopeCellComponent,pn=Ve(We,Et,st,bt),un=pn.prefixCls,cn=pn.flattenColumns,Fn=pn.expandedRowClassName,kn=pn.expandedRowRender,$n=pn.rowProps,Mn=pn.expanded,Vn=pn.rowSupportExpand,wr=w.useState(!1),Sr=(0,q.Z)(wr,2),vr=Sr[0],Mr=Sr[1];w.useEffect(function(){Mn&&Mr(!0)},[Mn]);var Kr=w.createElement(Mt,(0,k.Z)({},$n,{"data-row-key":Et,className:W()(ve,"".concat(un,"-row"),"".concat(un,"-row-level-").concat(bt),$n==null?void 0:$n.className),style:(0,Ee.Z)((0,Ee.Z)({},$e),$n==null?void 0:$n.style)}),cn.map(function(Kn,hr){var Nr=Kn.render,ti=Kn.dataIndex,ne=Kn.className,l=xt(pn,Kn,hr,bt,st),d=l.key,h=l.fixedInfo,b=l.appendCellNode,F=l.additionalCellProps;return w.createElement(Lt,(0,k.Z)({className:ne,ellipsis:Kn.ellipsis,align:Kn.align,scope:Kn.rowScope,component:Kn.rowScope?kt:Se,prefixCls:un,key:d,record:We,index:st,renderIndex:ot,dataIndex:ti,render:Nr,shouldCellUpdate:Kn.shouldCellUpdate},h,{appendNode:b,additionalProps:F}))})),ir;if(Vn&&(vr||Mn)){var br=kn(We,st,bt+1,Mn),tr=Fn&&Fn(We,st,bt);ir=w.createElement(Xe,{expanded:Mn,className:W()("".concat(un,"-expanded-row"),"".concat(un,"-expanded-row-level-").concat(bt+1),tr),prefixCls:un,component:Mt,cellComponent:Se,colSpan:cn.length,isEmpty:!1},br)}return w.createElement(w.Fragment,null,Kr,ir)}Dt.displayName="BodyRow";var vt=G(Dt);function Bt(ae){var ve=ae.columnKey,$e=ae.onColumnResize,We=w.useRef();return w.useEffect(function(){We.current&&$e(ve,We.current.offsetWidth)},[]),w.createElement(fe.Z,{data:ve},w.createElement("td",{ref:We,style:{padding:0,border:0,height:0}},w.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Zt(ae){var ve=ae.prefixCls,$e=ae.columnsKey,We=ae.onColumnResize;return w.createElement("tr",{"aria-hidden":"true",className:"".concat(ve,"-measure-row"),style:{height:0,fontSize:0}},w.createElement(fe.Z.Collection,{onBatchResize:function(ot){ot.forEach(function(Et){var St=Et.data,bt=Et.size;We(St,bt.offsetWidth)})}},$e.map(function(st){return w.createElement(Bt,{key:st,columnKey:st,onColumnResize:We})})))}function C(ae){var ve=ae.data,$e=ae.measureColumnWidth,We=I(D,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),st=We.prefixCls,ot=We.getComponent,Et=We.onColumnResize,St=We.flattenColumns,bt=We.getRowKey,Mt=We.expandedKeys,Se=We.childrenColumnName,kt=We.emptyNode,pn=Fe(ve,Se,Mt,bt),un=w.useRef({renderWithProps:!1}),cn=ot(["body","wrapper"],"tbody"),Fn=ot(["body","row"],"tr"),kn=ot(["body","cell"],"td"),$n=ot(["body","cell"],"th"),Mn;ve.length?Mn=pn.map(function(wr,Sr){var vr=wr.record,Mr=wr.indent,Kr=wr.index,ir=bt(vr,Sr);return w.createElement(vt,{key:ir,rowKey:ir,record:vr,index:Sr,renderIndex:Kr,rowComponent:Fn,cellComponent:kn,scopeCellComponent:$n,getRowKey:bt,indent:Mr})}):Mn=w.createElement(Xe,{expanded:!0,className:"".concat(st,"-placeholder"),prefixCls:st,component:Fn,cellComponent:kn,colSpan:St.length,isEmpty:!0},kt);var Vn=me(St);return w.createElement(v.Provider,{value:un.current},w.createElement(cn,{className:"".concat(st,"-tbody")},$e&&w.createElement(Zt,{prefixCls:st,columnsKey:Vn,onColumnResize:Et}),Mn))}C.displayName="Body";var M=G(C),yt=["expandable"],ye="RC_TABLE_INTERNAL_COL_DEFINE";function Ne(ae){var ve=ae.expandable,$e=(0,wt.Z)(ae,yt),We;return"expandable"in ae?We=(0,Ee.Z)((0,Ee.Z)({},$e),ve):We=$e,We.showExpandColumn===!1&&(We.expandIconColumnIndex=-1),We}var Sn=["columnType"];function it(ae){for(var ve=ae.colWidths,$e=ae.columns,We=ae.columCount,st=[],ot=We||$e.length,Et=!1,St=ot-1;St>=0;St-=1){var bt=ve[St],Mt=$e&&$e[St],Se=Mt&&Mt[ye];if(bt||Se||Et){var kt=Se||{},pn=kt.columnType,un=(0,wt.Z)(kt,Sn);st.unshift(w.createElement("col",(0,k.Z)({key:St,style:{width:bt}},un))),Et=!0}}return w.createElement("colgroup",null,st)}var nt=it,tt=p(80702),we=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Oe(ae,ve){return(0,w.useMemo)(function(){for(var $e=[],We=0;We<ve;We+=1){var st=ae[We];if(st!==void 0)$e[We]=st;else return null}return $e},[ae.join("_"),ve])}var Le=w.forwardRef(function(ae,ve){var $e=ae.className,We=ae.noData,st=ae.columns,ot=ae.flattenColumns,Et=ae.colWidths,St=ae.columCount,bt=ae.stickyOffsets,Mt=ae.direction,Se=ae.fixHeader,kt=ae.stickyTopOffset,pn=ae.stickyBottomOffset,un=ae.stickyClassName,cn=ae.onScroll,Fn=ae.maxContentScroll,kn=ae.children,$n=(0,wt.Z)(ae,we),Mn=I(D,["prefixCls","scrollbarSize","isSticky"]),Vn=Mn.prefixCls,wr=Mn.scrollbarSize,Sr=Mn.isSticky,vr=Sr&&!Se?0:wr,Mr=w.useRef(null),Kr=w.useCallback(function(ne){(0,g.mH)(ve,ne),(0,g.mH)(Mr,ne)},[]);w.useEffect(function(){var ne;function l(d){var h=d,b=h.currentTarget,F=h.deltaX;F&&(cn({currentTarget:b,scrollLeft:b.scrollLeft+F}),d.preventDefault())}return(ne=Mr.current)===null||ne===void 0||ne.addEventListener("wheel",l),function(){var d;(d=Mr.current)===null||d===void 0||d.removeEventListener("wheel",l)}},[]);var ir=w.useMemo(function(){return ot.every(function(ne){return ne.width})},[ot]),br=ot[ot.length-1],tr={fixed:br?br.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Vn,"-cell-scrollbar")}}},Kn=(0,w.useMemo)(function(){return vr?[].concat((0,tt.Z)(st),[tr]):st},[vr,st]),hr=(0,w.useMemo)(function(){return vr?[].concat((0,tt.Z)(ot),[tr]):ot},[vr,ot]),Nr=(0,w.useMemo)(function(){var ne=bt.right,l=bt.left;return(0,Ee.Z)((0,Ee.Z)({},bt),{},{left:Mt==="rtl"?[].concat((0,tt.Z)(l.map(function(d){return d+vr})),[0]):l,right:Mt==="rtl"?ne:[].concat((0,tt.Z)(ne.map(function(d){return d+vr})),[0]),isSticky:Sr})},[vr,bt,Sr]),ti=Oe(Et,St);return w.createElement("div",{style:(0,Ee.Z)({overflow:"hidden"},Sr?{top:kt,bottom:pn}:{}),ref:Kr,className:W()($e,(0,ge.Z)({},un,!!un))},w.createElement("table",{style:{tableLayout:"fixed",visibility:We||ti?null:"hidden"}},(!We||!Fn||ir)&&w.createElement(nt,{colWidths:ti?[].concat((0,tt.Z)(ti),[vr]):[],columCount:St+1,columns:hr}),kn((0,Ee.Z)((0,Ee.Z)({},$n),{},{stickyOffsets:Nr,columns:Kn,flattenColumns:hr}))))});Le.displayName="FixedHolder";var rt=w.memo(Le);function _e(ae){var ve=ae.cells,$e=ae.stickyOffsets,We=ae.flattenColumns,st=ae.rowComponent,ot=ae.cellComponent,Et=ae.tdCellComponent,St=ae.onHeaderRow,bt=ae.index,Mt=I(D,["prefixCls","direction"]),Se=Mt.prefixCls,kt=Mt.direction,pn;St&&(pn=St(ve.map(function(cn){return cn.column}),bt));var un=me(ve.map(function(cn){return cn.column}));return w.createElement(st,pn,ve.map(function(cn,Fn){var kn=cn.column,$n=tn(cn.colStart,cn.colEnd,We,$e,kt,kn),Mn;return kn&&kn.onHeaderCell&&(Mn=cn.column.onHeaderCell(kn)),w.createElement(Lt,(0,k.Z)({},cn,{scope:kn.title?cn.colSpan>1?"colgroup":"col":null,ellipsis:kn.ellipsis,align:kn.align,component:kn.title?ot:Et,prefixCls:Se,key:un[Fn]},$n,{additionalProps:Mn,rowType:"header"}))}))}_e.displayName="HeaderRow";var Qt=_e;function He(ae){var ve=[];function $e(Et,St){var bt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ve[bt]=ve[bt]||[];var Mt=St,Se=Et.filter(Boolean).map(function(kt){var pn={key:kt.key,className:kt.className||"",children:kt.title,column:kt,colStart:Mt},un=1,cn=kt.children;return cn&&cn.length>0&&(un=$e(cn,Mt,bt+1).reduce(function(Fn,kn){return Fn+kn},0),pn.hasSubColumns=!0),"colSpan"in kt&&(un=kt.colSpan),"rowSpan"in kt&&(pn.rowSpan=kt.rowSpan),pn.colSpan=un,pn.colEnd=pn.colStart+un-1,ve[bt].push(pn),Mt+=un,un});return Se}$e(ae,0);for(var We=ve.length,st=function(St){ve[St].forEach(function(bt){!("rowSpan"in bt)&&!bt.hasSubColumns&&(bt.rowSpan=We-St)})},ot=0;ot<We;ot+=1)st(ot);return ve}function xn(ae){var ve=ae.stickyOffsets,$e=ae.columns,We=ae.flattenColumns,st=ae.onHeaderRow,ot=I(D,["prefixCls","getComponent"]),Et=ot.prefixCls,St=ot.getComponent,bt=w.useMemo(function(){return He($e)},[$e]),Mt=St(["header","wrapper"],"thead"),Se=St(["header","row"],"tr"),kt=St(["header","cell"],"th"),pn=St(["header","cell"],"td");return w.createElement(Mt,{className:"".concat(Et,"-thead")},bt.map(function(un,cn){var Fn=w.createElement(Qt,{key:cn,flattenColumns:We,cells:un,stickyOffsets:ve,rowComponent:Se,cellComponent:kt,tdCellComponent:pn,onHeaderRow:st,index:cn});return Fn}))}var Ln=G(xn),_r=p(11592);function Hn(ae){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof ve=="number"?ve:ve.endsWith("%")?ae*parseFloat(ve)/100:null}function yn(ae,ve){return w.useMemo(function(){if(ve&&ve>0){var $e=0,We=0;ae.forEach(function(Mt){var Se=Hn(ve,Mt.width);Se?$e+=Se:We+=1});var st=ve-$e,ot=We,Et=st/We,St=0,bt=ae.map(function(Mt){var Se=(0,Ee.Z)({},Mt),kt=Hn(ve,Se.width);if(kt)Se.width=kt;else{var pn=Math.floor(Et);Se.width=ot===1?st:pn,st-=pn,ot-=1}return St+=Se.width,Se});return[bt,St]}return[ae,ve]},[ae,ve])}var wn=["children"],Ye=["fixed"];function Ot(ae){return(0,_r.Z)(ae).filter(function(ve){return w.isValidElement(ve)}).map(function(ve){var $e=ve.key,We=ve.props,st=We.children,ot=(0,wt.Z)(We,wn),Et=(0,Ee.Z)({key:$e},ot);return st&&(Et.children=Ot(st)),Et})}function Ut(ae){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return ae.filter(function($e){return $e&&(0,Ce.Z)($e)==="object"}).reduce(function($e,We,st){var ot=We.fixed,Et=ot===!0?"left":ot,St="".concat(ve,"-").concat(st),bt=We.children;return bt&&bt.length>0?[].concat((0,tt.Z)($e),(0,tt.Z)(Ut(bt,St).map(function(Mt){return(0,Ee.Z)({fixed:Et},Mt)}))):[].concat((0,tt.Z)($e),[(0,Ee.Z)((0,Ee.Z)({key:St},We),{},{fixed:Et})])},[])}function Ke(ae){for(var ve=!0,$e=0;$e<ae.length;$e+=1){var We=ae[$e];if(ve&&We.fixed!=="left")ve=!1;else if(!ve&&We.fixed==="left"){warning(!1,"Index ".concat($e-1," of `columns` missing `fixed='left'` prop."));break}}for(var st=!0,ot=ae.length-1;ot>=0;ot-=1){var Et=ae[ot];if(st&&Et.fixed!=="right")st=!1;else if(!st&&Et.fixed==="right"){warning(!1,"Index ".concat(ot+1," of `columns` missing `fixed='right'` prop."));break}}}function Pe(ae){return ae.map(function(ve){var $e=ve.fixed,We=(0,wt.Z)(ve,Ye),st=$e;return $e==="left"?st="right":$e==="right"&&(st="left"),(0,Ee.Z)({fixed:st},We)})}function _t(ae,ve){var $e=ae.prefixCls,We=ae.columns,st=ae.children,ot=ae.expandable,Et=ae.expandedKeys,St=ae.columnTitle,bt=ae.getRowKey,Mt=ae.onTriggerExpand,Se=ae.expandIcon,kt=ae.rowExpandable,pn=ae.expandIconColumnIndex,un=ae.direction,cn=ae.expandRowByClick,Fn=ae.columnWidth,kn=ae.fixed,$n=ae.scrollWidth,Mn=w.useMemo(function(){return We||Ot(st)},[We,st]),Vn=w.useMemo(function(){if(ot){var br,tr=Mn.slice();if(!tr.includes(O)){var Kn=pn||0;Kn>=0&&tr.splice(Kn,0,O)}var hr=tr.indexOf(O);tr=tr.filter(function(l,d){return l!==O||d===hr});var Nr=Mn[hr],ti;(kn==="left"||kn)&&!pn?ti="left":(kn==="right"||kn)&&pn===Mn.length?ti="right":ti=Nr?Nr.fixed:null;var ne=(br={},(0,ge.Z)(br,ye,{className:"".concat($e,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,ge.Z)(br,"title",St),(0,ge.Z)(br,"fixed",ti),(0,ge.Z)(br,"className","".concat($e,"-row-expand-icon-cell")),(0,ge.Z)(br,"width",Fn),(0,ge.Z)(br,"render",function(d,h,b){var F=bt(h,b),ie=Et.has(F),Ie=kt?kt(h):!0,ke=Se({prefixCls:$e,expanded:ie,expandable:Ie,record:h,onExpand:Mt});return cn?w.createElement("span",{onClick:function(ht){return ht.stopPropagation()}},ke):ke}),br);return tr.map(function(l){return l===O?ne:l})}return Mn.filter(function(l){return l!==O})},[ot,Mn,bt,Et,Se,un]),wr=w.useMemo(function(){var br=Vn;return ve&&(br=ve(br)),br.length||(br=[{render:function(){return null}}]),br},[ve,Vn,un]),Sr=w.useMemo(function(){return un==="rtl"?Pe(Ut(wr)):Ut(wr)},[wr,un,$n]),vr=yn(Sr,$n),Mr=(0,q.Z)(vr,2),Kr=Mr[0],ir=Mr[1];return[wr,Kr,ir]}var Ct=_t;function nn(ae){var ve,$e=ae.prefixCls,We=ae.record,st=ae.onExpand,ot=ae.expanded,Et=ae.expandable,St="".concat($e,"-row-expand-icon");if(!Et)return w.createElement("span",{className:W()(St,"".concat($e,"-row-spaced"))});var bt=function(Se){st(We,Se),Se.stopPropagation()};return w.createElement("span",{className:W()(St,(ve={},(0,ge.Z)(ve,"".concat($e,"-row-expanded"),ot),(0,ge.Z)(ve,"".concat($e,"-row-collapsed"),!ot),ve)),onClick:bt})}function Vt(ae,ve,$e){var We=[];function st(ot){(ot||[]).forEach(function(Et,St){We.push(ve(Et,St)),st(Et[$e])})}return st(ae),We}function dn(ae,ve,$e){var We=Ne(ae),st=We.expandIcon,ot=We.expandedRowKeys,Et=We.defaultExpandedRowKeys,St=We.defaultExpandAllRows,bt=We.expandedRowRender,Mt=We.onExpand,Se=We.onExpandedRowsChange,kt=We.childrenColumnName,pn=st||nn,un=kt||"children",cn=w.useMemo(function(){return bt?"row":ae.expandable&&ae.internalHooks===K&&ae.expandable.__PARENT_RENDER_ICON__||ve.some(function(Sr){return Sr&&(0,Ce.Z)(Sr)==="object"&&Sr[un]})?"nest":!1},[!!bt,ve]),Fn=w.useState(function(){return Et||(St?Vt(ve,$e,un):[])}),kn=(0,q.Z)(Fn,2),$n=kn[0],Mn=kn[1],Vn=w.useMemo(function(){return new Set(ot||$n||[])},[ot,$n]),wr=w.useCallback(function(Sr){var vr=$e(Sr,ve.indexOf(Sr)),Mr,Kr=Vn.has(vr);Kr?(Vn.delete(vr),Mr=(0,tt.Z)(Vn)):Mr=[].concat((0,tt.Z)(Vn),[vr]),Mn(Mr),Mt&&Mt(!Kr,Sr),Se&&Se(Mr)},[$e,Vn,ve,Mt,Se]);return[We,cn,Vn,pn,un,wr]}function rn(ae,ve,$e,We){var st=ae.map(function(ot,Et){return tn(Et,Et,ae,ve,$e,We==null?void 0:We[Et])});return(0,be.Z)(function(){return st},[st],function(ot,Et){return!(0,m.Z)(ot,Et)})}function bn(ae){var ve=(0,w.useRef)(ae),$e=(0,w.useState)({}),We=(0,q.Z)($e,2),st=We[1],ot=(0,w.useRef)(null),Et=(0,w.useRef)([]);function St(bt){Et.current.push(bt);var Mt=Promise.resolve();ot.current=Mt,Mt.then(function(){if(ot.current===Mt){var Se=Et.current,kt=ve.current;Et.current=[],Se.forEach(function(pn){ve.current=pn(ve.current)}),ot.current=null,kt!==ve.current&&st({})}})}return(0,w.useEffect)(function(){return function(){ot.current=null}},[]),[ve.current,St]}function In(ae){var ve=(0,w.useRef)(ae||null),$e=(0,w.useRef)();function We(){window.clearTimeout($e.current)}function st(Et){ve.current=Et,We(),$e.current=window.setTimeout(function(){ve.current=null,$e.current=void 0},100)}function ot(){return ve.current}return(0,w.useEffect)(function(){return We},[]),[st,ot]}function Cn(){var ae=w.useState(-1),ve=(0,q.Z)(ae,2),$e=ve[0],We=ve[1],st=w.useState(-1),ot=(0,q.Z)(st,2),Et=ot[0],St=ot[1],bt=w.useCallback(function(Mt,Se){We(Mt),St(Se)},[]);return[$e,Et,bt]}var Kt=p(47273),Gt=(0,Kt.Z)()?window:null;function qt(ae,ve){var $e=(0,Ce.Z)(ae)==="object"?ae:{},We=$e.offsetHeader,st=We===void 0?0:We,ot=$e.offsetSummary,Et=ot===void 0?0:ot,St=$e.offsetScroll,bt=St===void 0?0:St,Mt=$e.getContainer,Se=Mt===void 0?function(){return Gt}:Mt,kt=Se()||Gt;return w.useMemo(function(){var pn=!!ae;return{isSticky:pn,stickyClassName:pn?"".concat(ve,"-sticky-holder"):"",offsetHeader:st,offsetSummary:Et,offsetScroll:bt,container:kt}},[bt,st,Et,ve,kt])}function fn(ae,ve,$e){var We=(0,w.useMemo)(function(){for(var st=[],ot=[],Et=0,St=0,bt=0;bt<ve;bt+=1)if($e==="rtl"){ot[bt]=St,St+=ae[bt]||0;var Mt=ve-bt-1;st[Mt]=Et,Et+=ae[Mt]||0}else{st[bt]=Et,Et+=ae[bt]||0;var Se=ve-bt-1;ot[Se]=St,St+=ae[Se]||0}return{left:st,right:ot}},[ae,ve,$e]);return We}var an=fn;function Qn(ae){var ve=ae.className,$e=ae.children;return w.createElement("div",{className:ve},$e)}var Rn=Qn,ln=p(8224),ct=p(55468),pt=function(ve,$e){var We,st,ot=ve.scrollBodyRef,Et=ve.onScroll,St=ve.offsetScroll,bt=ve.container,Mt=I(D,"prefixCls"),Se=((We=ot.current)===null||We===void 0?void 0:We.scrollWidth)||0,kt=((st=ot.current)===null||st===void 0?void 0:st.clientWidth)||0,pn=Se&&kt*(kt/Se),un=w.useRef(),cn=bn({scrollLeft:0,isHiddenScrollBar:!1}),Fn=(0,q.Z)(cn,2),kn=Fn[0],$n=Fn[1],Mn=w.useRef({delta:0,x:0}),Vn=w.useState(!1),wr=(0,q.Z)(Vn,2),Sr=wr[0],vr=wr[1],Mr=function(){vr(!1)},Kr=function(hr){hr.persist(),Mn.current.delta=hr.pageX-kn.scrollLeft,Mn.current.x=0,vr(!0),hr.preventDefault()},ir=function(hr){var Nr,ti=hr||((Nr=window)===null||Nr===void 0?void 0:Nr.event),ne=ti.buttons;if(!Sr||ne===0){Sr&&vr(!1);return}var l=Mn.current.x+hr.pageX-Mn.current.x-Mn.current.delta;l<=0&&(l=0),l+pn>=kt&&(l=kt-pn),Et({scrollLeft:l/kt*(Se+2)}),Mn.current.x=hr.pageX},br=function(){if(ot.current){var hr=(0,ct.os)(ot.current).top,Nr=hr+ot.current.offsetHeight,ti=bt===window?document.documentElement.scrollTop+window.innerHeight:(0,ct.os)(bt).top+bt.clientHeight;Nr-(0,Te.Z)()<=ti||hr>=ti-St?$n(function(ne){return(0,Ee.Z)((0,Ee.Z)({},ne),{},{isHiddenScrollBar:!0})}):$n(function(ne){return(0,Ee.Z)((0,Ee.Z)({},ne),{},{isHiddenScrollBar:!1})})}},tr=function(hr){$n(function(Nr){return(0,Ee.Z)((0,Ee.Z)({},Nr),{},{scrollLeft:hr/Se*kt||0})})};return w.useImperativeHandle($e,function(){return{setScrollLeft:tr}}),w.useEffect(function(){var Kn=(0,ln.Z)(document.body,"mouseup",Mr,!1),hr=(0,ln.Z)(document.body,"mousemove",ir,!1);return br(),function(){Kn.remove(),hr.remove()}},[pn,Sr]),w.useEffect(function(){var Kn=(0,ln.Z)(bt,"scroll",br,!1),hr=(0,ln.Z)(window,"resize",br,!1);return function(){Kn.remove(),hr.remove()}},[bt]),w.useEffect(function(){kn.isHiddenScrollBar||$n(function(Kn){var hr=ot.current;return hr?(0,Ee.Z)((0,Ee.Z)({},Kn),{},{scrollLeft:hr.scrollLeft/hr.scrollWidth*hr.clientWidth}):Kn})},[kn.isHiddenScrollBar]),Se<=kt||!pn||kn.isHiddenScrollBar?null:w.createElement("div",{style:{height:(0,Te.Z)(),width:kt,bottom:St},className:"".concat(Mt,"-sticky-scroll")},w.createElement("div",{onMouseDown:Kr,ref:un,className:W()("".concat(Mt,"-sticky-scroll-bar"),(0,ge.Z)({},"".concat(Mt,"-sticky-scroll-bar-active"),Sr)),style:{width:"".concat(pn,"px"),transform:"translate3d(".concat(kn.scrollLeft,"px, 0, 0)")}}))},Tt=w.forwardRef(pt);function Ft(ae){return null}var It=Ft;function sn(ae){return null}var $t=sn,hn="rc-table",_n=[],Dn={};function Yn(){return"No Data"}function Zn(ae){var ve,$e=(0,Ee.Z)({rowKey:"key",prefixCls:hn,emptyText:Yn},ae),We=$e.prefixCls,st=$e.className,ot=$e.rowClassName,Et=$e.style,St=$e.data,bt=$e.rowKey,Mt=$e.scroll,Se=$e.tableLayout,kt=$e.direction,pn=$e.title,un=$e.footer,cn=$e.summary,Fn=$e.caption,kn=$e.id,$n=$e.showHeader,Mn=$e.components,Vn=$e.emptyText,wr=$e.onRow,Sr=$e.onHeaderRow,vr=$e.internalHooks,Mr=$e.transformColumns,Kr=$e.internalRefs,ir=$e.tailor,br=$e.sticky,tr=St||_n,Kn=!!tr.length,hr=vr===K,Nr=w.useCallback(function(xi,Ui){return(0,N.Z)(Mn,xi)||Ui},[Mn]),ti=w.useMemo(function(){return typeof bt=="function"?bt:function(xi){var Ui=xi&&xi[bt];return Ui}},[bt]),ne=Nr(["body"]),l=Cn(),d=(0,q.Z)(l,3),h=d[0],b=d[1],F=d[2],ie=dn($e,tr,ti),Ie=(0,q.Z)(ie,6),ke=Ie[0],Qe=Ie[1],ht=Ie[2],At=Ie[3],Wt=Ie[4],mn=Ie[5],Yt=Mt==null?void 0:Mt.x,en=w.useState(0),et=(0,q.Z)(en,2),An=et[0],lr=et[1],Pn=Ct((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({},$e),ke),{},{expandable:!!ke.expandedRowRender,columnTitle:ke.columnTitle,expandedKeys:ht,getRowKey:ti,onTriggerExpand:mn,expandIcon:At,expandIconColumnIndex:ke.expandIconColumnIndex,direction:kt,scrollWidth:hr&&ir&&typeof Yt=="number"?Yt:null}),hr?Mr:null),nr=(0,q.Z)(Pn,3),Ar=nr[0],Dr=nr[1],hi=nr[2],pi=hi!=null?hi:Yt,Vi=w.useMemo(function(){return{columns:Ar,flattenColumns:Dr}},[Ar,Dr]),ri=w.useRef(),di=w.useRef(),_i=w.useRef(),qi=w.useRef(),zi=w.useRef(),Wr=w.useState(!1),li=(0,q.Z)(Wr,2),vi=li[0],is=li[1],os=w.useState(!1),Gr=(0,q.Z)(os,2),Ni=Gr[0],es=Gr[1],ms=bn(new Map),Fs=(0,q.Z)(ms,2),$s=Fs[0],ra=Fs[1],ia=me(Dr),Ns=ia.map(function(xi){return $s.get(xi)}),bs=w.useMemo(function(){return Ns},[Ns.join("_")]),gs=an(bs,Dr.length,kt),rs=Mt&&Be(Mt.y),ki=Mt&&Be(pi)||!!ke.fixed,Vs=ki&&Dr.some(function(xi){var Ui=xi.fixed;return Ui}),Ia=w.useRef(),Ys=qt(br,We),Xs=Ys.isSticky,So=Ys.offsetHeader,Fo=Ys.offsetSummary,mi=Ys.offsetScroll,Bi=Ys.stickyClassName,ws=Ys.container,ts=w.useMemo(function(){return cn==null?void 0:cn(tr)},[cn,tr]),Cs=(rs||Xs)&&w.isValidElement(ts)&&ts.type===Q&&ts.props.fixed,zs,Os,sa;rs&&(Os={overflowY:"scroll",maxHeight:Mt.y}),ki&&(zs={overflowX:"auto"},rs||(Os={overflowY:"hidden"}),sa={width:pi===!0?"auto":pi,minWidth:"100%"});var vl=w.useCallback(function(xi,Ui){(0,oe.Z)(ri.current)&&ra(function(Zs){if(Zs.get(xi)!==Ui){var Ra=new Map(Zs);return Ra.set(xi,Ui),Ra}return Zs})},[]),Ks=In(null),yl=(0,q.Z)(Ks,2),bl=yl[0],_l=yl[1];function $o(xi,Ui){Ui&&(typeof Ui=="function"?Ui(xi):Ui.scrollLeft!==xi&&(Ui.scrollLeft=xi,Ui.scrollLeft!==xi&&setTimeout(function(){Ui.scrollLeft=xi},0)))}var qa=(0,ce.Z)(function(xi){var Ui=xi.currentTarget,Zs=xi.scrollLeft,Ra=kt==="rtl",La=typeof Zs=="number"?Zs:Ui.scrollLeft,ol=Ui||Dn;if(!_l()||_l()===ol){var Zo;bl(ol),$o(La,di.current),$o(La,_i.current),$o(La,zi.current),$o(La,(Zo=Ia.current)===null||Zo===void 0?void 0:Zo.setScrollLeft)}var jo=Ui||di.current;if(jo){var Wa=jo.scrollWidth,Wo=jo.clientWidth;if(Wa===Wo){is(!1),es(!1);return}Ra?(is(-La<Wa-Wo),es(-La>0)):(is(La>0),es(La<Wa-Wo))}}),xl=function(){ki&&_i.current?qa({currentTarget:_i.current}):(is(!1),es(!1))},eo=function(Ui){var Zs=Ui.width;Zs!==An&&(xl(),lr(ri.current?ri.current.offsetWidth:Zs))},Qo=w.useRef(!1);w.useEffect(function(){Qo.current&&xl()},[ki,St,Ar.length]),w.useEffect(function(){Qo.current=!0},[]);var ja=w.useState(0),Jo=(0,q.Z)(ja,2),wo=Jo[0],qo=Jo[1],ca=w.useState(!0),zo=(0,q.Z)(ca,2),Uo=zo[0],El=zo[1];w.useEffect(function(){(!ir||!hr)&&(_i.current instanceof Element?qo((0,Te.o)(_i.current).width):qo((0,Te.o)(qi.current).width)),El((0,te.G)("position","sticky"))},[]),w.useEffect(function(){hr&&Kr&&(Kr.body.current=_i.current)});var Sl=w.useCallback(function(xi){return w.createElement(w.Fragment,null,w.createElement(Ln,xi),Cs==="top"&&w.createElement(H,xi,ts))},[Cs,ts]),wl=w.useCallback(function(xi){return w.createElement(H,xi,ts)},[ts]),el=Nr(["table"],"table"),Co=w.useMemo(function(){return Se||(Vs?pi==="max-content"?"auto":"fixed":rs||Xs||Dr.some(function(xi){var Ui=xi.ellipsis;return Ui})?"fixed":"auto")},[rs,Vs,Dr,Se,Xs]),Ko,To={colWidths:bs,columCount:Dr.length,stickyOffsets:gs,onHeaderRow:Sr,fixHeader:rs,scroll:Mt},tl=w.useMemo(function(){return Kn?null:typeof Vn=="function"?Vn():Vn},[Kn,Vn]),nl=w.createElement(M,{data:tr,measureColumnWidth:rs||ki||Xs}),rl=w.createElement(nt,{colWidths:Dr.map(function(xi){var Ui=xi.width;return Ui}),columns:Dr}),il=Fn!=null?w.createElement("caption",{className:"".concat(We,"-caption")},Fn):void 0,Cl=(0,je.Z)($e,{data:!0}),sl=(0,je.Z)($e,{aria:!0});if(rs||Xs){var Ho;typeof ne=="function"?(Ho=ne(tr,{scrollbarSize:wo,ref:_i,onScroll:qa}),To.colWidths=Dr.map(function(xi,Ui){var Zs=xi.width,Ra=Ui===Dr.length-1?Zs-wo:Zs;return typeof Ra=="number"&&!Number.isNaN(Ra)?Ra:0})):Ho=w.createElement("div",{style:(0,Ee.Z)((0,Ee.Z)({},zs),Os),onScroll:qa,ref:_i,className:W()("".concat(We,"-body"))},w.createElement(el,(0,k.Z)({style:(0,Ee.Z)((0,Ee.Z)({},sa),{},{tableLayout:Co})},sl),il,rl,nl,!Cs&&ts&&w.createElement(H,{stickyOffsets:gs,flattenColumns:Dr,columns:Ar},ts)));var al=(0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({noData:!tr.length,maxContentScroll:ki&&pi==="max-content"},To),Vi),{},{direction:kt,stickyClassName:Bi,onScroll:qa});Ko=w.createElement(w.Fragment,null,$n!==!1&&w.createElement(rt,(0,k.Z)({},al,{stickyTopOffset:So,className:"".concat(We,"-header"),ref:di}),Sl),Ho,Cs&&Cs!=="top"&&w.createElement(rt,(0,k.Z)({},al,{stickyBottomOffset:Fo,className:"".concat(We,"-summary"),ref:zi}),wl),Xs&&w.createElement(Tt,{ref:Ia,offsetScroll:mi,scrollBodyRef:_i,onScroll:qa,container:ws}))}else Ko=w.createElement("div",{style:(0,Ee.Z)((0,Ee.Z)({},zs),Os),className:W()("".concat(We,"-content")),onScroll:qa,ref:_i},w.createElement(el,(0,k.Z)({style:(0,Ee.Z)((0,Ee.Z)({},sa),{},{tableLayout:Co})},sl),il,rl,$n!==!1&&w.createElement(Ln,(0,k.Z)({},To,Vi)),nl,ts&&w.createElement(H,{stickyOffsets:gs,flattenColumns:Dr,columns:Ar},ts)));var Ao=w.createElement("div",(0,k.Z)({className:W()(We,st,(ve={},(0,ge.Z)(ve,"".concat(We,"-rtl"),kt==="rtl"),(0,ge.Z)(ve,"".concat(We,"-ping-left"),vi),(0,ge.Z)(ve,"".concat(We,"-ping-right"),Ni),(0,ge.Z)(ve,"".concat(We,"-layout-fixed"),Se==="fixed"),(0,ge.Z)(ve,"".concat(We,"-fixed-header"),rs),(0,ge.Z)(ve,"".concat(We,"-fixed-column"),Vs),(0,ge.Z)(ve,"".concat(We,"-scroll-horizontal"),ki),(0,ge.Z)(ve,"".concat(We,"-has-fix-left"),Dr[0]&&Dr[0].fixed),(0,ge.Z)(ve,"".concat(We,"-has-fix-right"),Dr[Dr.length-1]&&Dr[Dr.length-1].fixed==="right"),ve)),style:Et,id:kn,ref:ri},Cl),pn&&w.createElement(Rn,{className:"".concat(We,"-title")},pn(tr)),w.createElement("div",{ref:qi,className:"".concat(We,"-container")},Ko),un&&w.createElement(Rn,{className:"".concat(We,"-footer")},un(tr)));ki&&(Ao=w.createElement(fe.Z,{onResize:eo},Ao));var Do=rn(Dr,gs,kt,Ar),Tl=w.useMemo(function(){return{scrollX:pi,prefixCls:We,getComponent:Nr,scrollbarSize:wo,direction:kt,fixedInfoList:Do,isSticky:Xs,supportSticky:Uo,componentWidth:An,fixHeader:rs,fixColumn:Vs,horizonScroll:ki,tableLayout:Co,rowClassName:ot,expandedRowClassName:ke.expandedRowClassName,expandIcon:At,expandableType:Qe,expandRowByClick:ke.expandRowByClick,expandedRowRender:ke.expandedRowRender,onTriggerExpand:mn,expandIconColumnIndex:ke.expandIconColumnIndex,indentSize:ke.indentSize,allColumnsFixedLeft:Dr.every(function(xi){return xi.fixed==="left"}),emptyNode:tl,columns:Ar,flattenColumns:Dr,onColumnResize:vl,hoverStartRow:h,hoverEndRow:b,onHover:F,rowExpandable:ke.rowExpandable,onRow:wr,getRowKey:ti,expandedKeys:ht,childrenColumnName:Wt}},[pi,We,Nr,wo,kt,Do,Xs,Uo,An,rs,Vs,ki,Co,ot,ke.expandedRowClassName,At,Qe,ke.expandRowByClick,ke.expandedRowRender,mn,ke.expandIconColumnIndex,ke.indentSize,tl,Ar,Dr,vl,h,b,F,ke.rowExpandable,wr,ti,ht,Wt]);return w.createElement(D.Provider,{value:Tl},Ao)}function dr(ae){return $(Zn,ae)}var En=dr();En.EXPAND_COLUMN=O,En.INTERNAL_HOOKS=K,En.Column=It,En.ColumnGroup=$t,En.Summary=R;var Tn=En,pr=p(45680),mr=o(null),Ir=o(null);function sr(ae,ve,$e){var We=ve||1;return $e[ae+We]-($e[ae]||0)}function ar(ae){var ve=ae.rowInfo,$e=ae.column,We=ae.colIndex,st=ae.indent,ot=ae.index,Et=ae.renderIndex,St=ae.record,bt=ae.style,Mt=ae.className,Se=ae.inverse,kt=ae.getHeight,pn=$e.render,un=$e.dataIndex,cn=$e.className,Fn=$e.width,kn=I(Ir,["columnsOffset"]),$n=kn.columnsOffset,Mn=xt(ve,$e,We,st,ot),Vn=Mn.key,wr=Mn.fixedInfo,Sr=Mn.appendCellNode,vr=Mn.additionalCellProps,Mr=vr.style,Kr=vr.colSpan,ir=Kr===void 0?1:Kr,br=vr.rowSpan,tr=br===void 0?1:br,Kn=We-1,hr=sr(Kn,ir,$n),Nr=ir>1?Fn-hr:0,ti=(0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({},Mr),bt),{},{flex:"0 0 ".concat(hr,"px"),width:"".concat(hr,"px"),marginRight:Nr,pointerEvents:"auto"}),ne=w.useMemo(function(){return Se?tr<=1:ir===0||tr===0||tr>1},[tr,ir,Se]);ne?ti.visibility="hidden":Se&&(ti.height=kt==null?void 0:kt(tr));var l=ne?function(){return null}:pn,d={};return(tr===0||ir===0)&&(d.rowSpan=1,d.colSpan=1),w.createElement(Lt,(0,k.Z)({className:W()(cn,Mt),ellipsis:$e.ellipsis,align:$e.align,scope:$e.rowScope,component:"div",prefixCls:ve.prefixCls,key:Vn,record:St,index:ot,renderIndex:Et,dataIndex:un,render:l,shouldCellUpdate:$e.shouldCellUpdate},wr,{appendNode:Sr,additionalProps:(0,Ee.Z)((0,Ee.Z)({},vr),{},{style:ti},d)}))}var Cr=ar,rr=["data","index","className","rowKey","style","extra","getHeight"],Pr=w.forwardRef(function(ae,ve){var $e=ae.data,We=ae.index,st=ae.className,ot=ae.rowKey,Et=ae.style,St=ae.extra,bt=ae.getHeight,Mt=(0,wt.Z)(ae,rr),Se=$e.record,kt=$e.indent,pn=$e.index,un=I(D,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),cn=un.scrollX,Fn=un.flattenColumns,kn=un.prefixCls,$n=un.fixColumn,Mn=un.componentWidth,Vn=Ve(Se,ot,We,kt),wr=Vn.rowSupportExpand,Sr=Vn.expanded,vr=Vn.rowProps,Mr=Vn.expandedRowRender,Kr=Vn.expandedRowClassName,ir;if(wr&&Sr){var br=Mr(Se,We,kt+1,Sr),tr=Kr==null?void 0:Kr(Se,We,kt),Kn={};$n&&(Kn={style:(0,ge.Z)({},"--virtual-width","".concat(Mn,"px"))});var hr="".concat(kn,"-expanded-row-cell");ir=w.createElement("div",{className:W()("".concat(kn,"-expanded-row"),"".concat(kn,"-expanded-row-level-").concat(kt+1),tr)},w.createElement(Lt,{component:"div",prefixCls:kn,className:W()(hr,(0,ge.Z)({},"".concat(hr,"-fixed"),$n)),additionalProps:Kn},br))}var Nr=(0,Ee.Z)((0,Ee.Z)({},Et),{},{width:cn});St&&(Nr.position="absolute",Nr.pointerEvents="none");var ti=w.createElement("div",(0,k.Z)({},vr,Mt,{ref:wr?null:ve,className:W()(st,"".concat(kn,"-row"),vr==null?void 0:vr.className,(0,ge.Z)({},"".concat(kn,"-row-extra"),St)),style:(0,Ee.Z)((0,Ee.Z)({},Nr),vr==null?void 0:vr.style)}),Fn.map(function(ne,l){return w.createElement(Cr,{key:l,rowInfo:Vn,column:ne,colIndex:l,indent:kt,index:We,renderIndex:pn,record:Se,inverse:St,getHeight:bt})}));return wr?w.createElement("div",{ref:ve},ti,ir):ti}),qr=G(Pr),qn=qr,zn=w.forwardRef(function(ae,ve){var $e=ae.data,We=ae.onScroll,st=I(D,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),ot=st.flattenColumns,Et=st.onColumnResize,St=st.getRowKey,bt=st.expandedKeys,Mt=st.prefixCls,Se=st.childrenColumnName,kt=st.emptyNode,pn=st.scrollX,un=I(mr),cn=un.scrollY,Fn=un.listItemHeight,kn=w.useRef(),$n=Fe($e,Se,bt,St),Mn=w.useMemo(function(){var ir=0;return ot.map(function(br){var tr=br.width,Kn=br.key;return ir+=tr,[Kn,tr,ir]})},[ot]),Vn=w.useMemo(function(){return Mn.map(function(ir){return ir[2]})},[Mn]);w.useEffect(function(){Mn.forEach(function(ir){var br=(0,q.Z)(ir,2),tr=br[0],Kn=br[1];Et(tr,Kn)})},[Mn]),w.useImperativeHandle(ve,function(){var ir={};return Object.defineProperty(ir,"scrollLeft",{get:function(){var tr;return((tr=kn.current)===null||tr===void 0?void 0:tr.getScrollInfo().x)||0},set:function(tr){var Kn;(Kn=kn.current)===null||Kn===void 0||Kn.scrollTo({left:tr})}}),ir});var wr=function(br,tr){var Kn,hr=(Kn=$n[tr])===null||Kn===void 0?void 0:Kn.record,Nr=br.onCell;if(Nr){var ti,ne=Nr(hr,tr);return(ti=ne==null?void 0:ne.rowSpan)!==null&&ti!==void 0?ti:1}return 1},Sr=function(br){var tr=br.start,Kn=br.end,hr=br.getSize,Nr=br.offsetY;if(Kn<0)return null;for(var ti=ot.filter(function(Yt){return wr(Yt,tr)===0}),ne=tr,l=function(en){if(ti=ti.filter(function(et){return wr(et,en)===0}),!ti.length)return ne=en,"break"},d=tr;d>=0;d-=1){var h=l(d);if(h==="break")break}for(var b=ot.filter(function(Yt){return wr(Yt,Kn)!==1}),F=Kn,ie=function(en){if(b=b.filter(function(et){return wr(et,en)!==1}),!b.length)return F=Math.max(en-1,Kn),"break"},Ie=Kn;Ie<$n.length;Ie+=1){var ke=ie(Ie);if(ke==="break")break}for(var Qe=[],ht=function(en){var et=$n[en];if(!et)return"continue";ot.some(function(An){return wr(An,en)>1})&&Qe.push(en)},At=ne;At<=F;At+=1)var Wt=ht(At);var mn=Qe.map(function(Yt){var en=$n[Yt],et=St(en.record,Yt),An=function(nr){var Ar=Yt+nr-1,Dr=St($n[Ar].record,Ar),hi=hr(et,Dr);return hi.bottom-hi.top},lr=hr(et);return w.createElement(qn,{key:Yt,data:en,rowKey:et,index:Yt,style:{top:-Nr+lr.top},extra:!0,getHeight:An})});return mn},vr=w.useMemo(function(){return{columnsOffset:Vn}},[Vn]),Mr="".concat(Mt,"-tbody"),Kr;return $n.length?Kr=w.createElement(pr.Z,{fullHeight:!1,ref:kn,className:W()(Mr,"".concat(Mr,"-virtual")),height:cn,itemHeight:Fn||24,data:$n,itemKey:function(br){return St(br.record)},scrollWidth:pn,onVirtualScroll:function(br){var tr=br.x;We({scrollLeft:tr})},extraRender:Sr},function(ir,br,tr){var Kn=St(ir.record,br);return w.createElement(qn,(0,k.Z)({data:ir,rowKey:Kn,index:br},tr))}):Kr=w.createElement("div",{className:W()("".concat(Mt,"-placeholder"))},w.createElement(Lt,{component:"div",prefixCls:Mt},kt)),w.createElement(Ir.Provider,{value:vr},Kr)}),dt=G(zn),Bn=dt,ur=function(ve,$e){var We=$e.ref,st=$e.onScroll;return w.createElement(Bn,{ref:We,data:ve,onScroll:st})},er=100;function Lr(ae){var ve=ae.columns,$e=ae.scroll,We=ae.prefixCls,st=We===void 0?hn:We,ot=ae.className,Et=ae.listItemHeight,St=$e||{},bt=St.x,Mt=St.y;typeof bt!="number"&&(bt=((ve||[]).length+1)*er),typeof Mt!="number"&&(Mt=500);var Se=w.useMemo(function(){return{scrollY:Mt,listItemHeight:Et}},[Mt,Et]);return w.createElement(mr.Provider,{value:Se},w.createElement(Tn,(0,k.Z)({},ae,{className:W()(ot,"".concat(st,"-virtual")),scroll:(0,Ee.Z)((0,Ee.Z)({},$e),{},{x:bt}),components:{body:ur},columns:ve,internalHooks:K,tailor:!0})))}function zr(ae){return $(Lr,ae)}var Vr=zr(),fr=null;function Yr(ae){return null}var Un=Yr;function On(ae){return null}var Er=On,kr=p(2738),ei=p(68031),Ii=p(36355),jn=p(93891),ii=p(19716),Xr=p(8628),fi=p(31724),Li=p(58421),yi=p(71418),si=p(88088);function Ci(ae){return function($e){let{prefixCls:We,onExpand:st,record:ot,expanded:Et,expandable:St}=$e;const bt=`${We}-row-expand-icon`;return w.createElement("button",{type:"button",onClick:Mt=>{st(ot,Mt),Mt.stopPropagation()},className:W()(bt,{[`${bt}-spaced`]:!St,[`${bt}-expanded`]:St&&Et,[`${bt}-collapsed`]:St&&!Et}),"aria-label":Et?ae.collapse:ae.expand,"aria-expanded":Et})}}var ui=Ci;function $i(ae,ve){return"key"in ae&&ae.key!==void 0&&ae.key!==null?ae.key:ae.dataIndex?Array.isArray(ae.dataIndex)?ae.dataIndex.join("."):ae.dataIndex:ve}function Tr(ae,ve){return ve?`${ve}-${ae}`:`${ae}`}function Xi(ae,ve){return typeof ae=="function"?ae(ve):ae}function Hi(ae,ve){const $e=Xi(ae,ve);return Object.prototype.toString.call($e)==="[object Object]"?"":$e}var Qi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},jr=Qi,fs=p(7657),vs=function(ve,$e){return w.createElement(fs.Z,(0,k.Z)({},ve,{ref:$e,icon:jr}))},cs=w.forwardRef(vs),Br=cs,hs=p(56762);function Ts(ae){const ve=w.useRef(ae),$e=(0,hs.Z)();return[()=>ve.current,We=>{ve.current=We,$e()}]}var Nn=p(3113),Mi=p(24905),ls=p(38854),gr=p(64165),xr=p(20834),cr=p(40875),Xn=p(5112),Ur=p(17574),ai=p(47472),Zi=p(92832);function Ri(ae){let{value:ve,onChange:$e,filterSearch:We,tablePrefixCls:st,locale:ot}=ae;return We?w.createElement("div",{className:`${st}-filter-dropdown-search`},w.createElement(Zi.default,{prefix:w.createElement(ai.Z,null),placeholder:ot.filterSearchPlaceholder,onChange:$e,value:ve,htmlSize:1,className:`${st}-filter-dropdown-search-input`})):null}var Ti=Ri,Fr=p(10228);const Oi=ae=>{const{keyCode:ve}=ae;ve===Fr.Z.ENTER&&ae.stopPropagation()};var Ps=w.forwardRef((ae,ve)=>w.createElement("div",{className:ae.className,onClick:$e=>$e.stopPropagation(),onKeyDown:Oi,ref:ve},ae.children));function ps(ae){let ve=[];return(ae||[]).forEach($e=>{let{value:We,children:st}=$e;ve.push(We),st&&(ve=[].concat((0,tt.Z)(ve),(0,tt.Z)(ps(st))))}),ve}function us(ae){return ae.some(ve=>{let{children:$e}=ve;return $e})}function or(ae,ve){return typeof ve=="string"||typeof ve=="number"?ve==null?void 0:ve.toString().toLowerCase().includes(ae.trim().toLowerCase()):!1}function Or(ae){let{filters:ve,prefixCls:$e,filteredKeys:We,filterMultiple:st,searchValue:ot,filterSearch:Et}=ae;return ve.map((St,bt)=>{const Mt=String(St.value);if(St.children)return{key:Mt||bt,label:St.text,popupClassName:`${$e}-dropdown-submenu`,children:Or({filters:St.children,prefixCls:$e,filteredKeys:We,filterMultiple:st,searchValue:ot,filterSearch:Et})};const Se=st?Mi.default:Xn.ZP,kt={key:St.value!==void 0?Mt:bt,label:w.createElement(w.Fragment,null,w.createElement(Se,{checked:We.includes(Mt)}),w.createElement("span",null,St.text))};return ot.trim()?typeof Et=="function"?Et(ot,St)?kt:null:or(ot,St.text)?kt:null:kt})}function bi(ae){var ve,$e;const{tablePrefixCls:We,prefixCls:st,column:ot,dropdownPrefixCls:Et,columnKey:St,filterMultiple:bt,filterMode:Mt="menu",filterSearch:Se=!1,filterState:kt,triggerFilter:pn,locale:un,children:cn,getPopupContainer:Fn}=ae,{filterDropdownOpen:kn,onFilterDropdownOpenChange:$n,filterResetToDefaultFilteredValue:Mn,defaultFilteredValue:Vn,filterDropdownVisible:wr,onFilterDropdownVisibleChange:Sr}=ot,[vr,Mr]=w.useState(!1),Kr=!!(kt&&(!((ve=kt.filteredKeys)===null||ve===void 0)&&ve.length||kt.forceFiltered)),ir=Pn=>{Mr(Pn),$n==null||$n(Pn),Sr==null||Sr(Pn)},br=($e=kn!=null?kn:wr)!==null&&$e!==void 0?$e:vr,tr=kt==null?void 0:kt.filteredKeys,[Kn,hr]=Ts(tr||[]),Nr=Pn=>{let{selectedKeys:nr}=Pn;hr(nr)},ti=(Pn,nr)=>{let{node:Ar,checked:Dr}=nr;Nr(bt?{selectedKeys:Pn}:{selectedKeys:Dr&&Ar.key?[Ar.key]:[]})};w.useEffect(()=>{vr&&Nr({selectedKeys:tr||[]})},[tr]);const[ne,l]=w.useState([]),d=Pn=>{l(Pn)},[h,b]=w.useState(""),F=Pn=>{const{value:nr}=Pn.target;b(nr)};w.useEffect(()=>{vr||b("")},[vr]);const ie=Pn=>{const nr=Pn&&Pn.length?Pn:null;if(nr===null&&(!kt||!kt.filteredKeys)||(0,m.Z)(nr,kt==null?void 0:kt.filteredKeys,!0))return null;pn({column:ot,key:St,filteredKeys:nr})},Ie=()=>{ir(!1),ie(Kn())},ke=function(){let{confirm:Pn,closeDropdown:nr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Pn&&ie([]),nr&&ir(!1),b(""),hr(Mn?(Vn||[]).map(Ar=>String(Ar)):[])},Qe=function(){let{closeDropdown:Pn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Pn&&ir(!1),ie(Kn())},ht=Pn=>{Pn&&tr!==void 0&&hr(tr||[]),ir(Pn),!Pn&&!ot.filterDropdown&&Ie()},At=W()({[`${Et}-menu-without-submenu`]:!us(ot.filters||[])}),Wt=Pn=>{if(Pn.target.checked){const nr=ps(ot==null?void 0:ot.filters).map(Ar=>String(Ar));hr(nr)}else hr([])},mn=Pn=>{let{filters:nr}=Pn;return(nr||[]).map((Ar,Dr)=>{const hi=String(Ar.value),pi={title:Ar.text,key:Ar.value!==void 0?hi:Dr};return Ar.children&&(pi.children=mn({filters:Ar.children})),pi})},Yt=Pn=>{var nr;return Object.assign(Object.assign({},Pn),{text:Pn.title,value:Pn.key,children:((nr=Pn.children)===null||nr===void 0?void 0:nr.map(Ar=>Yt(Ar)))||[]})};let en;if(typeof ot.filterDropdown=="function")en=ot.filterDropdown({prefixCls:`${Et}-custom`,setSelectedKeys:Pn=>Nr({selectedKeys:Pn}),selectedKeys:Kn(),confirm:Qe,clearFilters:ke,filters:ot.filters,visible:br,close:()=>{ir(!1)}});else if(ot.filterDropdown)en=ot.filterDropdown;else{const Pn=Kn()||[],nr=()=>(ot.filters||[]).length===0?w.createElement(gr.Z,{image:gr.Z.PRESENTED_IMAGE_SIMPLE,description:un.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Mt==="tree"?w.createElement(w.Fragment,null,w.createElement(Ti,{filterSearch:Se,value:h,onChange:F,tablePrefixCls:We,locale:un}),w.createElement("div",{className:`${We}-filter-dropdown-tree`},bt?w.createElement(Mi.default,{checked:Pn.length===ps(ot.filters).length,indeterminate:Pn.length>0&&Pn.length<ps(ot.filters).length,className:`${We}-filter-dropdown-checkall`,onChange:Wt},un.filterCheckall):null,w.createElement(Ur.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:bt,checkStrictly:!bt,className:`${Et}-menu`,onCheck:ti,checkedKeys:Pn,selectedKeys:Pn,showIcon:!1,treeData:mn({filters:ot.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:h.trim()?Dr=>typeof Se=="function"?Se(h,Yt(Dr)):or(h,Dr.title):void 0}))):w.createElement(w.Fragment,null,w.createElement(Ti,{filterSearch:Se,value:h,onChange:F,tablePrefixCls:We,locale:un}),w.createElement(xr.default,{selectable:!0,multiple:bt,prefixCls:`${Et}-menu`,className:At,onSelect:Nr,onDeselect:Nr,selectedKeys:Pn,getPopupContainer:Fn,openKeys:ne,onOpenChange:d,items:Or({filters:ot.filters||[],filterSearch:Se,prefixCls:st,filteredKeys:Kn(),filterMultiple:bt,searchValue:h})})),Ar=()=>Mn?(0,m.Z)((Vn||[]).map(Dr=>String(Dr)),Pn,!0):Pn.length===0;en=w.createElement(w.Fragment,null,nr(),w.createElement("div",{className:`${st}-dropdown-btns`},w.createElement(Nn.ZP,{type:"link",size:"small",disabled:Ar(),onClick:()=>ke()},un.filterReset),w.createElement(Nn.ZP,{type:"primary",size:"small",onClick:Ie},un.filterConfirm)))}ot.filterDropdown&&(en=w.createElement(cr.J,{selectable:void 0},en));const et=()=>w.createElement(Ps,{className:`${st}-dropdown`},en);let An;typeof ot.filterIcon=="function"?An=ot.filterIcon(Kr):ot.filterIcon?An=ot.filterIcon:An=w.createElement(Br,null);const{direction:lr}=w.useContext(Ii.E_);return w.createElement("div",{className:`${st}-column`},w.createElement("span",{className:`${We}-column-title`},cn),w.createElement(ls.Z,{dropdownRender:et,trigger:["click"],open:br,onOpenChange:ht,getPopupContainer:Fn,placement:lr==="rtl"?"bottomLeft":"bottomRight"},w.createElement("span",{role:"button",tabIndex:-1,className:W()(`${st}-trigger`,{active:Kr}),onClick:Pn=>{Pn.stopPropagation()}},An)))}var ji=bi;function gi(ae,ve,$e){let We=[];return(ae||[]).forEach((st,ot)=>{var Et;const St=Tr(ot,$e);if(st.filters||"filterDropdown"in st||"onFilter"in st)if("filteredValue"in st){let bt=st.filteredValue;"filterDropdown"in st||(bt=(Et=bt==null?void 0:bt.map(String))!==null&&Et!==void 0?Et:bt),We.push({column:st,key:$i(st,St),filteredKeys:bt,forceFiltered:st.filtered})}else We.push({column:st,key:$i(st,St),filteredKeys:ve&&st.defaultFilteredValue?st.defaultFilteredValue:void 0,forceFiltered:st.filtered});"children"in st&&(We=[].concat((0,tt.Z)(We),(0,tt.Z)(gi(st.children,ve,St))))}),We}function Ds(ae,ve,$e,We,st,ot,Et,St){return $e.map((bt,Mt)=>{const Se=Tr(Mt,St),{filterMultiple:kt=!0,filterMode:pn,filterSearch:un}=bt;let cn=bt;if(cn.filters||cn.filterDropdown){const Fn=$i(cn,Se),kn=We.find($n=>{let{key:Mn}=$n;return Fn===Mn});cn=Object.assign(Object.assign({},cn),{title:$n=>w.createElement(ji,{tablePrefixCls:ae,prefixCls:`${ae}-filter`,dropdownPrefixCls:ve,column:cn,columnKey:Fn,filterState:kn,filterMultiple:kt,filterMode:pn,filterSearch:un,triggerFilter:ot,locale:st,getPopupContainer:Et},Xi(bt.title,$n))})}return"children"in cn&&(cn=Object.assign(Object.assign({},cn),{children:Ds(ae,ve,cn.children,We,st,ot,Et,Se)})),cn})}function ks(ae){const ve={};return ae.forEach($e=>{let{key:We,filteredKeys:st,column:ot}=$e;const{filters:Et,filterDropdown:St}=ot;if(St)ve[We]=st||null;else if(Array.isArray(st)){const bt=ps(Et);ve[We]=bt.filter(Mt=>st.includes(String(Mt)))}else ve[We]=null}),ve}function Is(ae,ve){return ve.reduce(($e,We)=>{const{column:{onFilter:st,filters:ot},filteredKeys:Et}=We;return st&&Et&&Et.length?$e.filter(St=>Et.some(bt=>{const Mt=ps(ot),Se=Mt.findIndex(pn=>String(pn)===String(bt)),kt=Se!==-1?Mt[Se]:bt;return st(kt,St)})):$e},ae)}const _s=ae=>ae.flatMap(ve=>"children"in ve?[ve].concat((0,tt.Z)(_s(ve.children||[]))):[ve]);function aa(ae){let{prefixCls:ve,dropdownPrefixCls:$e,mergedColumns:We,onFilterChange:st,getPopupContainer:ot,locale:Et}=ae;const St=w.useMemo(()=>_s(We||[]),[We]),[bt,Mt]=w.useState(()=>gi(St,!0)),Se=w.useMemo(()=>{const cn=gi(St,!1);if(cn.length===0)return cn;let Fn=!0,kn=!0;if(cn.forEach($n=>{let{filteredKeys:Mn}=$n;Mn!==void 0?Fn=!1:kn=!1}),Fn){const $n=(St||[]).map((Mn,Vn)=>$i(Mn,Tr(Vn)));return bt.filter(Mn=>{let{key:Vn}=Mn;return $n.includes(Vn)}).map(Mn=>{const Vn=St[$n.findIndex(wr=>wr===Mn.key)];return Object.assign(Object.assign({},Mn),{column:Object.assign(Object.assign({},Mn.column),Vn),forceFiltered:Vn.filtered})})}return cn},[St,bt]),kt=w.useMemo(()=>ks(Se),[Se]),pn=cn=>{const Fn=Se.filter(kn=>{let{key:$n}=kn;return $n!==cn.key});Fn.push(cn),Mt(Fn),st(ks(Fn),Fn)};return[cn=>Ds(ve,$e,cn,Se,Et,pn,ot),Se,kt]}var oa=aa;function ha(ae,ve,$e){const We=w.useRef({});function st(ot){if(!We.current||We.current.data!==ae||We.current.childrenColumnName!==ve||We.current.getRowKey!==$e){let St=function(bt){bt.forEach((Mt,Se)=>{const kt=$e(Mt,Se);Et.set(kt,Mt),Mt&&typeof Mt=="object"&&ve in Mt&&St(Mt[ve]||[])})};const Et=new Map;St(ae),We.current={data:ae,childrenColumnName:ve,kvMap:Et,getRowKey:$e}}return We.current.kvMap.get(ot)}return[st]}var Ws=p(50371),pa=function(ae,ve){var $e={};for(var We in ae)Object.prototype.hasOwnProperty.call(ae,We)&&ve.indexOf(We)<0&&($e[We]=ae[We]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,We=Object.getOwnPropertySymbols(ae);st<We.length;st++)ve.indexOf(We[st])<0&&Object.prototype.propertyIsEnumerable.call(ae,We[st])&&($e[We[st]]=ae[We[st]]);return $e};const ns=10;function xs(ae,ve){const $e={current:ae.current,pageSize:ae.pageSize};return Object.keys(ve&&typeof ve=="object"?ve:{}).forEach(st=>{const ot=ae[st];typeof ot!="function"&&($e[st]=ot)}),$e}function ma(ae,ve,$e){const We=$e&&typeof $e=="object"?$e:{},{total:st=0}=We,ot=pa(We,["total"]),[Et,St]=(0,w.useState)(()=>({current:"defaultCurrent"in ot?ot.defaultCurrent:1,pageSize:"defaultPageSize"in ot?ot.defaultPageSize:ns})),bt=(0,Ws.Z)(Et,ot,{total:st>0?st:ae}),Mt=Math.ceil((st||ae)/bt.pageSize);bt.current>Mt&&(bt.current=Mt||1);const Se=(pn,un)=>{St({current:pn!=null?pn:1,pageSize:un||bt.pageSize})},kt=(pn,un)=>{var cn;$e&&((cn=$e.onChange)===null||cn===void 0||cn.call($e,pn,un)),Se(pn,un),ve(pn,un||(bt==null?void 0:bt.pageSize))};return $e===!1?[{},()=>{}]:[Object.assign(Object.assign({},bt),{onChange:kt}),Se]}var Js=ma,qs=p(84105),Us=p(35654),oi=p(90782),Qr=p(71430),as=p(18929);const Wi={},Pi="SELECT_ALL",Gi="SELECT_INVERT",ds="SELECT_NONE",Es=[],ys=(ae,ve)=>{let $e=[];return(ve||[]).forEach(We=>{$e.push(We),We&&typeof We=="object"&&ae in We&&($e=[].concat((0,tt.Z)($e),(0,tt.Z)(ys(ae,We[ae]))))}),$e};var Bs=(ae,ve)=>{const{preserveSelectedRowKeys:$e,selectedRowKeys:We,defaultSelectedRowKeys:st,getCheckboxProps:ot,onChange:Et,onSelect:St,onSelectAll:bt,onSelectInvert:Mt,onSelectNone:Se,onSelectMultiple:kt,columnWidth:pn,type:un,selections:cn,fixed:Fn,renderCell:kn,hideSelectAll:$n,checkStrictly:Mn=!0}=ve||{},{prefixCls:Vn,data:wr,pageData:Sr,getRecordByKey:vr,getRowKey:Mr,expandType:Kr,childrenColumnName:ir,locale:br,getPopupContainer:tr}=ae,[Kn,hr]=(0,as.Z)(We||st||Es,{value:We}),Nr=w.useRef(new Map),ti=(0,w.useCallback)(Yt=>{if($e){const en=new Map;Yt.forEach(et=>{let An=vr(et);!An&&Nr.current.has(et)&&(An=Nr.current.get(et)),en.set(et,An)}),Nr.current=en}},[vr,$e]);w.useEffect(()=>{ti(Kn)},[Kn]);const{keyEntities:ne}=(0,w.useMemo)(()=>{if(Mn)return{keyEntities:null};let Yt=wr;if($e){const en=new Set(wr.map((An,lr)=>Mr(An,lr))),et=Array.from(Nr.current).reduce((An,lr)=>{let[Pn,nr]=lr;return en.has(Pn)?An:An.concat(nr)},[]);Yt=[].concat((0,tt.Z)(Yt),(0,tt.Z)(et))}return(0,Qr.I8)(Yt,{externalGetKey:Mr,childrenPropName:ir})},[wr,Mr,Mn,ir,$e]),l=(0,w.useMemo)(()=>ys(ir,Sr),[ir,Sr]),d=(0,w.useMemo)(()=>{const Yt=new Map;return l.forEach((en,et)=>{const An=Mr(en,et),lr=(ot?ot(en):null)||{};Yt.set(An,lr)}),Yt},[l,Mr,ot]),h=(0,w.useCallback)(Yt=>{var en;return!!(!((en=d.get(Mr(Yt)))===null||en===void 0)&&en.disabled)},[d,Mr]),[b,F]=(0,w.useMemo)(()=>{if(Mn)return[Kn||[],[]];const{checkedKeys:Yt,halfCheckedKeys:en}=(0,oi.S)(Kn,!0,ne,h);return[Yt||[],en]},[Kn,Mn,ne,h]),ie=(0,w.useMemo)(()=>{const Yt=un==="radio"?b.slice(0,1):b;return new Set(Yt)},[b,un]),Ie=(0,w.useMemo)(()=>un==="radio"?new Set:new Set(F),[F,un]),[ke,Qe]=(0,w.useState)(null);w.useEffect(()=>{ve||hr(Es)},[!!ve]);const ht=(0,w.useCallback)((Yt,en)=>{let et,An;ti(Yt),$e?(et=Yt,An=Yt.map(lr=>Nr.current.get(lr))):(et=[],An=[],Yt.forEach(lr=>{const Pn=vr(lr);Pn!==void 0&&(et.push(lr),An.push(Pn))})),hr(et),Et==null||Et(et,An,{type:en})},[hr,vr,Et,$e]),At=(0,w.useCallback)((Yt,en,et,An)=>{if(St){const lr=et.map(Pn=>vr(Pn));St(vr(Yt),en,lr,An)}ht(et,"single")},[St,vr,ht]),Wt=(0,w.useMemo)(()=>!cn||$n?null:(cn===!0?[Pi,Gi,ds]:cn).map(en=>en===Pi?{key:"all",text:br.selectionAll,onSelect(){ht(wr.map((et,An)=>Mr(et,An)).filter(et=>{const An=d.get(et);return!(An!=null&&An.disabled)||ie.has(et)}),"all")}}:en===Gi?{key:"invert",text:br.selectInvert,onSelect(){const et=new Set(ie);Sr.forEach((lr,Pn)=>{const nr=Mr(lr,Pn),Ar=d.get(nr);Ar!=null&&Ar.disabled||(et.has(nr)?et.delete(nr):et.add(nr))});const An=Array.from(et);Mt&&Mt(An),ht(An,"invert")}}:en===ds?{key:"none",text:br.selectNone,onSelect(){Se==null||Se(),ht(Array.from(ie).filter(et=>{const An=d.get(et);return An==null?void 0:An.disabled}),"none")}}:en).map(en=>Object.assign(Object.assign({},en),{onSelect:function(){for(var et,An,lr=arguments.length,Pn=new Array(lr),nr=0;nr<lr;nr++)Pn[nr]=arguments[nr];(An=en.onSelect)===null||An===void 0||(et=An).call.apply(et,[en].concat(Pn)),Qe(null)}})),[cn,ie,Sr,Mr,Mt,ht]);return[(0,w.useCallback)(Yt=>{var en;if(!ve)return Yt.filter(Wr=>Wr!==Wi);let et=(0,tt.Z)(Yt);const An=new Set(ie),lr=l.map(Mr).filter(Wr=>!d.get(Wr).disabled),Pn=lr.every(Wr=>An.has(Wr)),nr=lr.some(Wr=>An.has(Wr)),Ar=()=>{const Wr=[];Pn?lr.forEach(vi=>{An.delete(vi),Wr.push(vi)}):lr.forEach(vi=>{An.has(vi)||(An.add(vi),Wr.push(vi))});const li=Array.from(An);bt==null||bt(!Pn,li.map(vi=>vr(vi)),Wr.map(vi=>vr(vi))),ht(li,"all"),Qe(null)};let Dr;if(un!=="radio"){let Wr;if(Wt){const Gr={getPopupContainer:tr,items:Wt.map((Ni,es)=>{const{key:ms,text:Fs,onSelect:$s}=Ni;return{key:ms!=null?ms:es,onClick:()=>{$s==null||$s(lr)},label:Fs}})};Wr=w.createElement("div",{className:`${Vn}-selection-extra`},w.createElement(ls.Z,{menu:Gr,getPopupContainer:tr},w.createElement("span",null,w.createElement(qs.Z,null))))}const li=l.map((Gr,Ni)=>{const es=Mr(Gr,Ni),ms=d.get(es)||{};return Object.assign({checked:An.has(es)},ms)}).filter(Gr=>{let{disabled:Ni}=Gr;return Ni}),vi=!!li.length&&li.length===l.length,is=vi&&li.every(Gr=>{let{checked:Ni}=Gr;return Ni}),os=vi&&li.some(Gr=>{let{checked:Ni}=Gr;return Ni});Dr=!$n&&w.createElement("div",{className:`${Vn}-selection`},w.createElement(Mi.default,{checked:vi?is:!!l.length&&Pn,indeterminate:vi?!is&&os:!Pn&&nr,onChange:Ar,disabled:l.length===0||vi,"aria-label":Wr?"Custom selection":"Select all",skipGroup:!0}),Wr)}let hi;un==="radio"?hi=(Wr,li,vi)=>{const is=Mr(li,vi),os=An.has(is);return{node:w.createElement(Xn.ZP,Object.assign({},d.get(is),{checked:os,onClick:Gr=>Gr.stopPropagation(),onChange:Gr=>{An.has(is)||At(is,!0,[is],Gr.nativeEvent)}})),checked:os}}:hi=(Wr,li,vi)=>{var is;const os=Mr(li,vi),Gr=An.has(os),Ni=Ie.has(os),es=d.get(os);let ms;return Kr==="nest"?ms=Ni:ms=(is=es==null?void 0:es.indeterminate)!==null&&is!==void 0?is:Ni,{node:w.createElement(Mi.default,Object.assign({},es,{indeterminate:ms,checked:Gr,skipGroup:!0,onClick:Fs=>Fs.stopPropagation(),onChange:Fs=>{let{nativeEvent:$s}=Fs;const{shiftKey:ra}=$s;let ia=-1,Ns=-1;if(ra&&Mn){const bs=new Set([ke,os]);lr.some((gs,rs)=>{if(bs.has(gs))if(ia===-1)ia=rs;else return Ns=rs,!0;return!1})}if(Ns!==-1&&ia!==Ns&&Mn){const bs=lr.slice(ia,Ns+1),gs=[];Gr?bs.forEach(ki=>{An.has(ki)&&(gs.push(ki),An.delete(ki))}):bs.forEach(ki=>{An.has(ki)||(gs.push(ki),An.add(ki))});const rs=Array.from(An);kt==null||kt(!Gr,rs.map(ki=>vr(ki)),gs.map(ki=>vr(ki))),ht(rs,"multiple")}else{const bs=b;if(Mn){const gs=Gr?(0,Us._5)(bs,os):(0,Us.L0)(bs,os);At(os,!Gr,gs,$s)}else{const gs=(0,oi.S)([].concat((0,tt.Z)(bs),[os]),!0,ne,h),{checkedKeys:rs,halfCheckedKeys:ki}=gs;let Vs=rs;if(Gr){const Ia=new Set(rs);Ia.delete(os),Vs=(0,oi.S)(Array.from(Ia),{checked:!1,halfCheckedKeys:ki},ne,h).checkedKeys}At(os,!Gr,Vs,$s)}}Qe(Gr?null:os)}})),checked:Gr}};const pi=(Wr,li,vi)=>{const{node:is,checked:os}=hi(Wr,li,vi);return kn?kn(os,li,vi,is):is};if(!et.includes(Wi))if(et.findIndex(Wr=>{var li;return((li=Wr[ye])===null||li===void 0?void 0:li.columnType)==="EXPAND_COLUMN"})===0){const[Wr,...li]=et;et=[Wr,Wi].concat((0,tt.Z)(li))}else et=[Wi].concat((0,tt.Z)(et));const Vi=et.indexOf(Wi);et=et.filter((Wr,li)=>Wr!==Wi||li===Vi);const ri=et[Vi-1],di=et[Vi+1];let _i=Fn;_i===void 0&&((di==null?void 0:di.fixed)!==void 0?_i=di.fixed:(ri==null?void 0:ri.fixed)!==void 0&&(_i=ri.fixed)),_i&&ri&&((en=ri[ye])===null||en===void 0?void 0:en.columnType)==="EXPAND_COLUMN"&&ri.fixed===void 0&&(ri.fixed=_i);const qi=W()(`${Vn}-selection-col`,{[`${Vn}-selection-col-with-dropdown`]:cn&&un==="checkbox"}),zi={fixed:_i,width:pn,className:`${Vn}-selection-column`,title:ve.columnTitle||Dr,render:pi,onCell:ve.onCell,[ye]:{className:qi}};return et.map(Wr=>Wr===Wi?zi:Wr)},[Mr,l,ve,b,ie,Ie,pn,Wt,Kr,ke,d,kt,At,h]),ie]},ga=p(89489),za=p(59477),Ms=p(6848);const la="ascend",va="descend";function Gs(ae){return typeof ae.sorter=="object"&&typeof ae.sorter.multiple=="number"?ae.sorter.multiple:!1}function wa(ae){return typeof ae=="function"?ae:ae&&typeof ae=="object"&&ae.compare?ae.compare:!1}function Ca(ae,ve){return ve?ae[ae.indexOf(ve)+1]:ae[0]}function ua(ae,ve,$e){let We=[];function st(ot,Et){We.push({column:ot,key:$i(ot,Et),multiplePriority:Gs(ot),sortOrder:ot.sortOrder})}return(ae||[]).forEach((ot,Et)=>{const St=Tr(Et,$e);ot.children?("sortOrder"in ot&&st(ot,St),We=[].concat((0,tt.Z)(We),(0,tt.Z)(ua(ot.children,ve,St)))):ot.sorter&&("sortOrder"in ot?st(ot,St):ve&&ot.defaultSortOrder&&We.push({column:ot,key:$i(ot,St),multiplePriority:Gs(ot),sortOrder:ot.defaultSortOrder}))}),We}function Ta(ae,ve,$e,We,st,ot,Et,St){return(ve||[]).map((bt,Mt)=>{const Se=Tr(Mt,St);let kt=bt;if(kt.sorter){const pn=kt.sortDirections||st,un=kt.showSorterTooltip===void 0?Et:kt.showSorterTooltip,cn=$i(kt,Se),Fn=$e.find(Kr=>{let{key:ir}=Kr;return ir===cn}),kn=Fn?Fn.sortOrder:null,$n=Ca(pn,kn);let Mn;if(bt.sortIcon)Mn=bt.sortIcon({sortOrder:kn});else{const Kr=pn.includes(la)&&w.createElement(za.Z,{className:W()(`${ae}-column-sorter-up`,{active:kn===la})}),ir=pn.includes(va)&&w.createElement(ga.Z,{className:W()(`${ae}-column-sorter-down`,{active:kn===va})});Mn=w.createElement("span",{className:W()(`${ae}-column-sorter`,{[`${ae}-column-sorter-full`]:!!(Kr&&ir)})},w.createElement("span",{className:`${ae}-column-sorter-inner`,"aria-hidden":"true"},Kr,ir))}const{cancelSort:Vn,triggerAsc:wr,triggerDesc:Sr}=ot||{};let vr=Vn;$n===va?vr=Sr:$n===la&&(vr=wr);const Mr=typeof un=="object"?un:{title:vr};kt=Object.assign(Object.assign({},kt),{className:W()(kt.className,{[`${ae}-column-sort`]:kn}),title:Kr=>{const ir=w.createElement("div",{className:`${ae}-column-sorters`},w.createElement("span",{className:`${ae}-column-title`},Xi(bt.title,Kr)),Mn);return un?w.createElement(Ms.Z,Object.assign({},Mr),ir):ir},onHeaderCell:Kr=>{const ir=bt.onHeaderCell&&bt.onHeaderCell(Kr)||{},br=ir.onClick,tr=ir.onKeyDown;ir.onClick=Nr=>{We({column:bt,key:cn,sortOrder:$n,multiplePriority:Gs(bt)}),br==null||br(Nr)},ir.onKeyDown=Nr=>{Nr.keyCode===Fr.Z.ENTER&&(We({column:bt,key:cn,sortOrder:$n,multiplePriority:Gs(bt)}),tr==null||tr(Nr))};const Kn=Hi(bt.title,{}),hr=Kn==null?void 0:Kn.toString();return kn?ir["aria-sort"]=kn==="ascend"?"ascending":"descending":ir["aria-label"]=hr||"",ir.className=W()(ir.className,`${ae}-column-has-sorters`),ir.tabIndex=0,bt.ellipsis&&(ir.title=(Kn!=null?Kn:"").toString()),ir}})}return"children"in kt&&(kt=Object.assign(Object.assign({},kt),{children:Ta(ae,kt.children,$e,We,st,ot,Et,Se)})),kt})}function Rs(ae){const{column:ve,sortOrder:$e}=ae;return{column:ve,order:$e,field:ve.dataIndex,columnKey:ve.key}}function Pa(ae){const ve=ae.filter($e=>{let{sortOrder:We}=$e;return We}).map(Rs);return ve.length===0&&ae.length?Object.assign(Object.assign({},Rs(ae[ae.length-1])),{column:void 0}):ve.length<=1?ve[0]||{}:ve}function Ai(ae,ve,$e){const We=ve.slice().sort((Et,St)=>St.multiplePriority-Et.multiplePriority),st=ae.slice(),ot=We.filter(Et=>{let{column:{sorter:St},sortOrder:bt}=Et;return wa(St)&&bt});return ot.length?st.sort((Et,St)=>{for(let bt=0;bt<ot.length;bt+=1){const Mt=ot[bt],{column:{sorter:Se},sortOrder:kt}=Mt,pn=wa(Se);if(pn&&kt){const un=pn(Et,St,kt);if(un!==0)return kt===la?un:-un}}return 0}).map(Et=>{const St=Et[$e];return St?Object.assign(Object.assign({},Et),{[$e]:Ai(St,ve,$e)}):Et}):st}function Di(ae){let{prefixCls:ve,mergedColumns:$e,onSorterChange:We,sortDirections:st,tableLocale:ot,showSorterTooltip:Et}=ae;const[St,bt]=w.useState(ua($e,!0)),Mt=w.useMemo(()=>{let cn=!0;const Fn=ua($e,!1);if(!Fn.length)return St;const kn=[];function $n(Vn){cn?kn.push(Vn):kn.push(Object.assign(Object.assign({},Vn),{sortOrder:null}))}let Mn=null;return Fn.forEach(Vn=>{Mn===null?($n(Vn),Vn.sortOrder&&(Vn.multiplePriority===!1?cn=!1:Mn=!0)):(Mn&&Vn.multiplePriority!==!1||(cn=!1),$n(Vn))}),kn},[$e,St]),Se=w.useMemo(()=>{const cn=Mt.map(Fn=>{let{column:kn,sortOrder:$n}=Fn;return{column:kn,order:$n}});return{sortColumns:cn,sortColumn:cn[0]&&cn[0].column,sortOrder:cn[0]&&cn[0].order}},[Mt]);function kt(cn){let Fn;cn.multiplePriority===!1||!Mt.length||Mt[0].multiplePriority===!1?Fn=[cn]:Fn=[].concat((0,tt.Z)(Mt.filter(kn=>{let{key:$n}=kn;return $n!==cn.key})),[cn]),bt(Fn),We(Pa(Fn),Fn)}return[cn=>Ta(ve,cn,Mt,kt,st,ot,Et),Mt,Se,()=>Pa(Mt)]}function Si(ae,ve){return ae.map($e=>{const We=Object.assign({},$e);return We.title=Xi($e.title,ve),"children"in We&&(We.children=Si(We.children,ve)),We})}function Ss(ae){return[w.useCallback($e=>Si($e,ae),[ae])]}var Ji=dr((ae,ve)=>{const{_renderTimes:$e}=ae,{_renderTimes:We}=ve;return $e!==We}),ya=zr((ae,ve)=>{const{_renderTimes:$e}=ae,{_renderTimes:We}=ve;return $e!==We}),gn=p(64993),ta=p(17313),ka=p(83116),Aa=p(37613),na=ae=>{const{componentCls:ve}=ae,$e=`${ae.lineWidth}px ${ae.lineType} ${ae.tableBorderColor}`,We=(st,ot,Et)=>({[`&${ve}-${st}`]:{[`> ${ve}-container`]:{[`> ${ve}-content, > ${ve}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${ve}-expanded-row-fixed`]:{margin:`-${ot}px -${Et+ae.lineWidth}px`}}}}}});return{[`${ve}-wrapper`]:{[`${ve}${ve}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${ve}-title`]:{border:$e,borderBottom:0},[`> ${ve}-container`]:{borderInlineStart:$e,borderTop:$e,[`
|
|
|
> ${ve}-content,
|
|
|
> ${ve}-header,
|
|
|
> ${ve}-body,
|
|
|
> ${ve}-summary
|
|
|
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:$e},"> thead":{"> tr:not(:last-child) > th":{borderBottom:$e},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${ve}-cell-fix-right-first::after`]:{borderInlineEnd:$e}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${ve}-expanded-row-fixed`]:{margin:`-${ae.tablePaddingVertical}px -${ae.tablePaddingHorizontal+ae.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:ae.lineWidth,bottom:0,borderInlineEnd:$e,content:'""'}}}}}},[`&${ve}-scroll-horizontal`]:{[`> ${ve}-container > ${ve}-body`]:{"> table > tbody":{[`
|
|
|
> tr${ve}-expanded-row,
|
|
|
> tr${ve}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},We("middle",ae.tablePaddingVerticalMiddle,ae.tablePaddingHorizontalMiddle)),We("small",ae.tablePaddingVerticalSmall,ae.tablePaddingHorizontalSmall)),{[`> ${ve}-footer`]:{border:$e,borderTop:0}}),[`${ve}-cell`]:{[`${ve}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${ae.lineWidth}px 0 ${ae.lineWidth}px ${ae.tableHeaderBg}`}},[`${ve}-bordered ${ve}-cell-scrollbar`]:{borderInlineEnd:$e}}}},io=ae=>{const{componentCls:ve}=ae;return{[`${ve}-wrapper`]:{[`${ve}-cell-ellipsis`]:Object.assign(Object.assign({},ta.vS),{wordBreak:"keep-all",[`
|
|
|
&${ve}-cell-fix-left-last,
|
|
|
&${ve}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${ve}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${ve}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Ka=ae=>{const{componentCls:ve}=ae;return{[`${ve}-wrapper`]:{[`${ve}-tbody > tr${ve}-placeholder`]:{textAlign:"center",color:ae.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:ae.colorBgContainer}}}}},_a=p(15969),so=ae=>{const{componentCls:ve,antCls:$e,controlInteractiveSize:We,motionDurationSlow:st,lineWidth:ot,paddingXS:Et,lineType:St,tableBorderColor:bt,tableExpandIconBg:Mt,tableExpandColumnWidth:Se,borderRadius:kt,fontSize:pn,fontSizeSM:un,lineHeight:cn,tablePaddingVertical:Fn,tablePaddingHorizontal:kn,tableExpandedRowBg:$n,paddingXXS:Mn}=ae,Vn=We/2-ot,wr=Vn*2+ot*3,Sr=`${ot}px ${St} ${bt}`,vr=Mn-ot;return{[`${ve}-wrapper`]:{[`${ve}-expand-icon-col`]:{width:Se},[`${ve}-row-expand-icon-cell`]:{textAlign:"center",[`${ve}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${ve}-row-indent`]:{height:1,float:"left"},[`${ve}-row-expand-icon`]:Object.assign(Object.assign({},(0,_a.N)(ae)),{position:"relative",float:"left",boxSizing:"border-box",width:wr,height:wr,padding:0,color:"inherit",lineHeight:`${wr}px`,background:Mt,border:Sr,borderRadius:kt,transform:`scale(${We/wr})`,transition:`all ${st}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${st} ease-out`,content:'""'},"&::before":{top:Vn,insetInlineEnd:vr,insetInlineStart:vr,height:ot},"&::after":{top:vr,bottom:vr,insetInlineStart:Vn,width:ot,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${ve}-row-indent + ${ve}-row-expand-icon`]:{marginTop:(pn*cn-ot*3)/2-Math.ceil((un*1.4-ot*3)/2),marginInlineEnd:Et},[`tr${ve}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:$n}},[`${$e}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${ve}-expanded-row-fixed`]:{position:"relative",margin:`-${Fn}px -${kn}px`,padding:`${Fn}px ${kn}px`}}}},ao=ae=>{const{componentCls:ve,antCls:$e,iconCls:We,tableFilterDropdownWidth:st,tableFilterDropdownSearchWidth:ot,paddingXXS:Et,paddingXS:St,colorText:bt,lineWidth:Mt,lineType:Se,tableBorderColor:kt,tableHeaderIconColor:pn,fontSizeSM:un,tablePaddingHorizontal:cn,borderRadius:Fn,motionDurationSlow:kn,colorTextDescription:$n,colorPrimary:Mn,tableHeaderFilterActiveBg:Vn,colorTextDisabled:wr,tableFilterDropdownBg:Sr,tableFilterDropdownHeight:vr,controlItemBgHover:Mr,controlItemBgActive:Kr,boxShadowSecondary:ir,filterDropdownMenuBg:br}=ae,tr=`${$e}-dropdown`,Kn=`${ve}-filter-dropdown`,hr=`${$e}-tree`,Nr=`${Mt}px ${Se} ${kt}`;return[{[`${ve}-wrapper`]:{[`${ve}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${ve}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Et,marginInline:`${Et}px ${-cn/2}px`,padding:`0 ${Et}px`,color:pn,fontSize:un,borderRadius:Fn,cursor:"pointer",transition:`all ${kn}`,"&:hover":{color:$n,background:Vn},"&.active":{color:Mn}}}},{[`${$e}-dropdown`]:{[Kn]:Object.assign(Object.assign({},(0,ta.Wf)(ae)),{minWidth:st,backgroundColor:Sr,borderRadius:Fn,boxShadow:ir,overflow:"hidden",[`${tr}-menu`]:{maxHeight:vr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:br,"&:empty::after":{display:"block",padding:`${St}px 0`,color:wr,fontSize:un,textAlign:"center",content:'"Not Found"'}},[`${Kn}-tree`]:{paddingBlock:`${St}px 0`,paddingInline:St,[hr]:{padding:0},[`${hr}-treenode ${hr}-node-content-wrapper:hover`]:{backgroundColor:Mr},[`${hr}-treenode-checkbox-checked ${hr}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Kr}}},[`${Kn}-search`]:{padding:St,borderBottom:Nr,"&-input":{input:{minWidth:ot},[We]:{color:wr}}},[`${Kn}-checkall`]:{width:"100%",marginBottom:Et,marginInlineStart:Et},[`${Kn}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${St-Mt}px ${St}px`,overflow:"hidden",borderTop:Nr}})}},{[`${$e}-dropdown ${Kn}, ${Kn}-submenu`]:{[`${$e}-checkbox-wrapper + span`]:{paddingInlineStart:St,color:bt},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Ha=ae=>{const{componentCls:ve,lineWidth:$e,colorSplit:We,motionDurationSlow:st,zIndexTableFixed:ot,tableBg:Et,zIndexTableSticky:St}=ae,bt=We;return{[`${ve}-wrapper`]:{[`
|
|
|
${ve}-cell-fix-left,
|
|
|
${ve}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:ot,background:Et},[`
|
|
|
${ve}-cell-fix-left-first::after,
|
|
|
${ve}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-$e,width:30,transform:"translateX(100%)",transition:`box-shadow ${st}`,content:'""',pointerEvents:"none"},[`${ve}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${ve}-cell-fix-right-first::after,
|
|
|
${ve}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-$e,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${st}`,content:'""',pointerEvents:"none"},[`${ve}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:St+1,width:30,transition:`box-shadow ${st}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${ve}-ping-left`]:{[`&:not(${ve}-has-fix-left) ${ve}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${bt}`}},[`
|
|
|
${ve}-cell-fix-left-first::after,
|
|
|
${ve}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${bt}`},[`${ve}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${ve}-ping-right`]:{[`&:not(${ve}-has-fix-right) ${ve}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${bt}`}},[`
|
|
|
${ve}-cell-fix-right-first::after,
|
|
|
${ve}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${bt}`}}}}},Ma=ae=>{const{componentCls:ve,antCls:$e}=ae;return{[`${ve}-wrapper`]:{[`${ve}-pagination${$e}-pagination`]:{margin:`${ae.margin}px 0`},[`${ve}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:ae.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Da=ae=>{const{componentCls:ve,tableRadius:$e}=ae;return{[`${ve}-wrapper`]:{[ve]:{[`${ve}-title, ${ve}-header`]:{borderRadius:`${$e}px ${$e}px 0 0`},[`${ve}-title + ${ve}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${ve}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:$e,borderStartEndRadius:$e,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:$e},"> *:last-child":{borderStartEndRadius:$e}}},"&-footer":{borderRadius:`0 0 ${$e}px ${$e}px`}}}}},oo=ae=>{const{componentCls:ve}=ae;return{[`${ve}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${ve}-pagination-left`]:{justifyContent:"flex-end"},[`${ve}-pagination-right`]:{justifyContent:"flex-start"},[`${ve}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${ve}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${ve}-row-indent`]:{float:"right"}}}}},uo=ae=>{const{componentCls:ve,antCls:$e,iconCls:We,fontSizeIcon:st,padding:ot,paddingXS:Et,tableHeaderIconColor:St,tableHeaderIconColorHover:bt,tableSelectionColumnWidth:Mt}=ae;return{[`${ve}-wrapper`]:{[`${ve}-selection-col`]:{width:Mt,[`&${ve}-selection-col-with-dropdown`]:{width:Mt+st+ot/4}},[`${ve}-bordered ${ve}-selection-col`]:{width:Mt+Et*2,[`&${ve}-selection-col-with-dropdown`]:{width:Mt+st+ot/4+Et*2}},[`
|
|
|
table tr th${ve}-selection-column,
|
|
|
table tr td${ve}-selection-column
|
|
|
`]:{paddingInlineEnd:ae.paddingXS,paddingInlineStart:ae.paddingXS,textAlign:"center",[`${$e}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${ve}-selection-column${ve}-cell-fix-left`]:{zIndex:ae.zIndexTableFixed+1},[`table tr th${ve}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${ve}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${ve}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${ae.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${ae.tablePaddingHorizontal/4}px`,[We]:{color:St,fontSize:st,verticalAlign:"baseline","&:hover":{color:bt}}}}}},co=ae=>{const{componentCls:ve}=ae,$e=(We,st,ot,Et)=>({[`${ve}${ve}-${We}`]:{fontSize:Et,[`
|
|
|
${ve}-title,
|
|
|
${ve}-footer,
|
|
|
${ve}-cell,
|
|
|
${ve}-thead > tr > th,
|
|
|
${ve}-tbody > tr > th,
|
|
|
${ve}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${st}px ${ot}px`},[`${ve}-filter-trigger`]:{marginInlineEnd:`-${ot/2}px`},[`${ve}-expanded-row-fixed`]:{margin:`-${st}px -${ot}px`},[`${ve}-tbody`]:{[`${ve}-wrapper:only-child ${ve}`]:{marginBlock:`-${st}px`,marginInline:`${ae.tableExpandColumnWidth-ot}px -${ot}px`}},[`${ve}-selection-column`]:{paddingInlineStart:`${ot/4}px`}}});return{[`${ve}-wrapper`]:Object.assign(Object.assign({},$e("middle",ae.tablePaddingVerticalMiddle,ae.tablePaddingHorizontalMiddle,ae.tableFontSizeMiddle)),$e("small",ae.tablePaddingVerticalSmall,ae.tablePaddingHorizontalSmall,ae.tableFontSizeSmall))}},fo=ae=>{const{componentCls:ve,marginXXS:$e,fontSizeIcon:We,tableHeaderIconColor:st,tableHeaderIconColorHover:ot}=ae;return{[`${ve}-wrapper`]:{[`${ve}-thead th${ve}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${ae.motionDurationSlow}`,"&:hover":{background:ae.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:ae.colorPrimary},[`
|
|
|
&${ve}-cell-fix-left:hover,
|
|
|
&${ve}-cell-fix-right:hover
|
|
|
`]:{background:ae.tableFixedHeaderSortActiveBg}},[`${ve}-thead th${ve}-column-sort`]:{background:ae.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${ve}-column-sort`]:{background:ae.tableBodySortBg},[`${ve}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${ve}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${ve}-column-sorter`]:{marginInlineStart:$e,color:st,fontSize:0,transition:`color ${ae.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:We,"&.active":{color:ae.colorPrimary}},[`${ve}-column-sorter-up + ${ve}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${ve}-column-sorters:hover ${ve}-column-sorter`]:{color:ot}}}},No=ae=>{const{componentCls:ve,opacityLoading:$e,tableScrollThumbBg:We,tableScrollThumbBgHover:st,tableScrollThumbSize:ot,tableScrollBg:Et,zIndexTableSticky:St,stickyScrollBarBorderRadius:bt}=ae,Mt=`${ae.lineWidth}px ${ae.lineType} ${ae.tableBorderColor}`;return{[`${ve}-wrapper`]:{[`${ve}-sticky`]:{"&-holder":{position:"sticky",zIndex:St,background:ae.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${ot}px !important`,zIndex:St,display:"flex",alignItems:"center",background:Et,borderTop:Mt,opacity:$e,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:ot,backgroundColor:We,borderRadius:bt,transition:`all ${ae.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:st}}}}}}},Za=ae=>{const{componentCls:ve,lineWidth:$e,tableBorderColor:We}=ae,st=`${$e}px ${ae.lineType} ${We}`;return{[`${ve}-wrapper`]:{[`${ve}-summary`]:{position:"relative",zIndex:ae.zIndexTableFixed,background:ae.tableBg,"> tr":{"> th, > td":{borderBottom:st}}},[`div${ve}-summary`]:{boxShadow:`0 -${$e}px 0 ${We}`}}}},go=ae=>{const{componentCls:ve}=ae,$e=`${ae.lineWidth}px ${ae.lineType} ${ae.tableBorderColor}`,We=`${ve}-expanded-row-cell`;return{[`${ve}-wrapper`]:{[`${ve}-tbody-virtual`]:{[`${ve}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${ve}-cell`]:{borderBottom:$e},[`${ve}-expanded-row`]:{[`${We}${We}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${ae.lineWidth}px)`,borderInlineEnd:"none"}}},[`${ve}-bordered`]:{[`${ve}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:$e,position:"absolute"},[`${ve}-cell`]:{borderInlineEnd:$e,[`&${ve}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-ae.lineWidth,borderInlineStart:$e}}}}}}};const vo=ae=>{const{componentCls:ve,fontWeightStrong:$e,tablePaddingVertical:We,tablePaddingHorizontal:st,lineWidth:ot,lineType:Et,tableBorderColor:St,tableFontSize:bt,tableBg:Mt,tableRadius:Se,tableHeaderTextColor:kt,motionDurationMid:pn,tableHeaderBg:un,tableHeaderCellSplitColor:cn,tableRowHoverBg:Fn,tableSelectedRowBg:kn,tableSelectedRowHoverBg:$n,tableFooterTextColor:Mn,tableFooterBg:Vn,paddingContentVerticalLG:wr}=ae,Sr=`${ot}px ${Et} ${St}`;return{[`${ve}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,ta.dF)()),{[ve]:Object.assign(Object.assign({},(0,ta.Wf)(ae)),{fontSize:bt,background:Mt,borderRadius:`${Se}px ${Se}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Se}px ${Se}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${ve}-cell,
|
|
|
${ve}-thead > tr > th,
|
|
|
${ve}-tbody > tr > th,
|
|
|
${ve}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${wr}px ${st}px`,overflowWrap:"break-word"},[`${ve}-title`]:{padding:`${We}px ${st}px`},[`${ve}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:kt,fontWeight:$e,textAlign:"start",background:un,borderBottom:Sr,transition:`background ${pn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${ve}-selection-column):not(${ve}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:cn,transform:"translateY(-50%)",transition:`background-color ${pn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${ve}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${pn}, border-color ${pn}`,borderBottom:Sr,[`
|
|
|
> ${ve}-wrapper:only-child,
|
|
|
> ${ve}-expanded-row-fixed > ${ve}-wrapper:only-child
|
|
|
`]:{[ve]:{marginBlock:`-${We}px`,marginInline:`${ae.tableExpandColumnWidth-st}px -${st}px`,[`${ve}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:kt,fontWeight:$e,textAlign:"start",background:un,borderBottom:Sr,transition:`background ${pn} ease`},[`
|
|
|
&${ve}-row:hover > th,
|
|
|
&${ve}-row:hover > td,
|
|
|
> th${ve}-cell-row-hover,
|
|
|
> td${ve}-cell-row-hover
|
|
|
`]:{background:Fn},[`&${ve}-row-selected`]:{"> th, > td":{background:kn},"&:hover > th, &:hover > td":{background:$n}}}},[`${ve}-footer`]:{padding:`${We}px ${st}px`,color:Mn,background:Vn}})}};var yo=(0,ka.Z)("Table",ae=>{const{colorTextHeading:ve,colorSplit:$e,colorIcon:We,colorIconHover:st,opacityLoading:ot,colorBgContainer:Et,controlInteractiveSize:St,headerBg:bt,headerColor:Mt,headerSortActiveBg:Se,headerSortHoverBg:kt,bodySortBg:pn,rowHoverBg:un,rowSelectedBg:cn,rowSelectedHoverBg:Fn,rowExpandedBg:kn,cellPaddingBlock:$n,cellPaddingInline:Mn,cellPaddingBlockMD:Vn,cellPaddingInlineMD:wr,cellPaddingBlockSM:Sr,cellPaddingInlineSM:vr,borderColor:Mr,footerBg:Kr,footerColor:ir,headerBorderRadius:br,cellFontSize:tr,cellFontSizeMD:Kn,cellFontSizeSM:hr,headerSplitColor:Nr,fixedHeaderSortActiveBg:ti,headerFilterHoverBg:ne,filterDropdownBg:l,expandIconBg:d,selectionColumnWidth:h,stickyScrollBarBg:b}=ae,F=new gn.C(We),ie=new gn.C(st),Ie=2,ke=(0,Aa.TS)(ae,{tableFontSize:tr,tableBg:Et,tableRadius:br,tablePaddingVertical:$n,tablePaddingHorizontal:Mn,tablePaddingVerticalMiddle:Vn,tablePaddingHorizontalMiddle:wr,tablePaddingVerticalSmall:Sr,tablePaddingHorizontalSmall:vr,tableBorderColor:Mr,tableHeaderTextColor:Mt,tableHeaderBg:bt,tableFooterTextColor:ir,tableFooterBg:Kr,tableHeaderCellSplitColor:Nr,tableHeaderSortBg:Se,tableHeaderSortHoverBg:kt,tableHeaderIconColor:F.clone().setAlpha(F.getAlpha()*ot).toRgbString(),tableHeaderIconColorHover:ie.clone().setAlpha(ie.getAlpha()*ot).toRgbString(),tableBodySortBg:pn,tableFixedHeaderSortActiveBg:ti,tableHeaderFilterActiveBg:ne,tableFilterDropdownBg:l,tableRowHoverBg:un,tableSelectedRowBg:cn,tableSelectedRowHoverBg:Fn,zIndexTableFixed:Ie,zIndexTableSticky:Ie+1,tableFontSizeMiddle:Kn,tableFontSizeSmall:hr,tableSelectionColumnWidth:h,tableExpandIconBg:d,tableExpandColumnWidth:St+2*ae.padding,tableExpandedRowBg:kn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:b,tableScrollThumbBgHover:ve,tableScrollBg:$e});return[vo(ke),Ma(ke),Za(ke),fo(ke),ao(ke),na(ke),Da(ke),so(ke),Za(ke),Ka(ke),uo(ke),Ha(ke),No(ke),io(ke),co(ke),oo(ke),go(ke)]},ae=>{const{colorFillAlter:ve,colorBgContainer:$e,colorTextHeading:We,colorFillSecondary:st,colorFillContent:ot,controlItemBgActive:Et,controlItemBgActiveHover:St,padding:bt,paddingSM:Mt,paddingXS:Se,colorBorderSecondary:kt,borderRadiusLG:pn,fontSize:un,controlHeight:cn,colorTextPlaceholder:Fn}=ae,kn=new gn.C(st).onBackground($e).toHexShortString(),$n=new gn.C(ot).onBackground($e).toHexShortString(),Mn=new gn.C(ve).onBackground($e).toHexShortString();return{headerBg:Mn,headerColor:We,headerSortActiveBg:kn,headerSortHoverBg:$n,bodySortBg:Mn,rowHoverBg:Mn,rowSelectedBg:Et,rowSelectedHoverBg:St,rowExpandedBg:ve,cellPaddingBlock:bt,cellPaddingInline:bt,cellPaddingBlockMD:Mt,cellPaddingInlineMD:Se,cellPaddingBlockSM:Se,cellPaddingInlineSM:Se,borderColor:kt,headerBorderRadius:pn,footerBg:Mn,footerColor:We,cellFontSize:un,cellFontSizeMD:un,cellFontSizeSM:un,headerSplitColor:kt,fixedHeaderSortActiveBg:kn,headerFilterHoverBg:ot,filterDropdownMenuBg:$e,filterDropdownBg:$e,expandIconBg:$e,selectionColumnWidth:cn,stickyScrollBarBg:Fn,stickyScrollBarBorderRadius:100}});const bo=[],_o=(ae,ve)=>{const{prefixCls:$e,className:We,rootClassName:st,style:ot,size:Et,bordered:St,dropdownPrefixCls:bt,dataSource:Mt,pagination:Se,rowSelection:kt,rowKey:pn="key",rowClassName:un,columns:cn,children:Fn,childrenColumnName:kn,onChange:$n,getPopupContainer:Mn,loading:Vn,expandIcon:wr,expandable:Sr,expandedRowRender:vr,expandIconColumnIndex:Mr,indentSize:Kr,scroll:ir,sortDirections:br,locale:tr,showSorterTooltip:Kn=!0,virtual:hr}=ae,Nr=w.useMemo(()=>cn||Ot(Fn),[cn,Fn]),ti=w.useMemo(()=>Nr.some(mi=>mi.responsive),[Nr]),ne=(0,Xr.Z)(ti),l=w.useMemo(()=>{const mi=new Set(Object.keys(ne).filter(Bi=>ne[Bi]));return Nr.filter(Bi=>!Bi.responsive||Bi.responsive.some(ws=>mi.has(ws)))},[Nr,ne]),d=(0,kr.Z)(ae,["className","style","columns"]),{locale:h=fi.Z,direction:b,table:F,renderEmpty:ie,getPrefixCls:Ie,getPopupContainer:ke}=w.useContext(Ii.E_),Qe=(0,ii.Z)(Et),ht=Object.assign(Object.assign({},h.Table),tr),At=Mt||bo,Wt=Ie("table",$e),mn=Ie("dropdown",bt),Yt=Object.assign({childrenColumnName:kn,expandIconColumnIndex:Mr},Sr),{childrenColumnName:en="children"}=Yt,et=w.useMemo(()=>At.some(mi=>mi==null?void 0:mi[en])?"nest":vr||Sr&&Sr.expandedRowRender?"row":null,[At]),An={body:w.useRef()},lr=w.useMemo(()=>typeof pn=="function"?pn:mi=>mi==null?void 0:mi[pn],[pn]),[Pn]=ha(At,en,lr),nr={},Ar=function(mi,Bi){let ws=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var ts,Cs,zs;const Os=Object.assign(Object.assign({},nr),mi);ws&&((ts=nr.resetPagination)===null||ts===void 0||ts.call(nr),!((Cs=Os.pagination)===null||Cs===void 0)&&Cs.current&&(Os.pagination.current=1),Se&&Se.onChange&&Se.onChange(1,(zs=Os.pagination)===null||zs===void 0?void 0:zs.pageSize)),ir&&ir.scrollToFirstRowOnChange!==!1&&An.body.current&&(0,ei.Z)(0,{getContainer:()=>An.body.current}),$n==null||$n(Os.pagination,Os.filters,Os.sorter,{currentDataSource:Is(Ai(At,Os.sorterStates,en),Os.filterStates),action:Bi})},Dr=(mi,Bi)=>{Ar({sorter:mi,sorterStates:Bi},"sort",!1)},[hi,pi,Vi,ri]=Di({prefixCls:Wt,mergedColumns:l,onSorterChange:Dr,sortDirections:br||["ascend","descend"],tableLocale:ht,showSorterTooltip:Kn}),di=w.useMemo(()=>Ai(At,pi,en),[At,pi]);nr.sorter=ri(),nr.sorterStates=pi;const _i=(mi,Bi)=>{Ar({filters:mi,filterStates:Bi},"filter",!0)},[qi,zi,Wr]=oa({prefixCls:Wt,locale:ht,dropdownPrefixCls:mn,mergedColumns:l,onFilterChange:_i,getPopupContainer:Mn||ke}),li=Is(di,zi);nr.filters=Wr,nr.filterStates=zi;const vi=w.useMemo(()=>{const mi={};return Object.keys(Wr).forEach(Bi=>{Wr[Bi]!==null&&(mi[Bi]=Wr[Bi])}),Object.assign(Object.assign({},Vi),{filters:mi})},[Vi,Wr]),[is]=Ss(vi),os=(mi,Bi)=>{Ar({pagination:Object.assign(Object.assign({},nr.pagination),{current:mi,pageSize:Bi})},"paginate")},[Gr,Ni]=Js(li.length,os,Se);nr.pagination=Se===!1?{}:xs(Gr,Se),nr.resetPagination=Ni;const es=w.useMemo(()=>{if(Se===!1||!Gr.pageSize)return li;const{current:mi=1,total:Bi,pageSize:ws=ns}=Gr;return li.length<Bi?li.length>ws?li.slice((mi-1)*ws,mi*ws):li:li.slice((mi-1)*ws,mi*ws)},[!!Se,li,Gr&&Gr.current,Gr&&Gr.pageSize,Gr&&Gr.total]),[ms,Fs]=Bs({prefixCls:Wt,data:li,pageData:es,getRowKey:lr,getRecordByKey:Pn,expandType:et,childrenColumnName:en,locale:ht,getPopupContainer:Mn||ke},kt),$s=(mi,Bi,ws)=>{let ts;return typeof un=="function"?ts=W()(un(mi,Bi,ws)):ts=W()(un),W()({[`${Wt}-row-selected`]:Fs.has(lr(mi,Bi))},ts)};Yt.__PARENT_RENDER_ICON__=Yt.expandIcon,Yt.expandIcon=Yt.expandIcon||wr||ui(ht),et==="nest"&&Yt.expandIconColumnIndex===void 0?Yt.expandIconColumnIndex=kt?1:0:Yt.expandIconColumnIndex>0&&kt&&(Yt.expandIconColumnIndex-=1),typeof Yt.indentSize!="number"&&(Yt.indentSize=typeof Kr=="number"?Kr:15);const ra=w.useCallback(mi=>is(ms(qi(hi(mi)))),[hi,qi,ms]);let ia,Ns;if(Se!==!1&&(Gr!=null&&Gr.total)){let mi;Gr.size?mi=Gr.size:mi=Qe==="small"||Qe==="middle"?"small":void 0;const Bi=Cs=>w.createElement(Li.Z,Object.assign({},Gr,{className:W()(`${Wt}-pagination ${Wt}-pagination-${Cs}`,Gr.className),size:mi})),ws=b==="rtl"?"left":"right",{position:ts}=Gr;if(ts!==null&&Array.isArray(ts)){const Cs=ts.find(sa=>sa.includes("top")),zs=ts.find(sa=>sa.includes("bottom")),Os=ts.every(sa=>`${sa}`=="none");!Cs&&!zs&&!Os&&(Ns=Bi(ws)),Cs&&(ia=Bi(Cs.toLowerCase().replace("top",""))),zs&&(Ns=Bi(zs.toLowerCase().replace("bottom","")))}else Ns=Bi(ws)}let bs;typeof Vn=="boolean"?bs={spinning:Vn}:typeof Vn=="object"&&(bs=Object.assign({spinning:!0},Vn));const[gs,rs]=yo(Wt),[,ki]=(0,si.Z)(),Vs=W()(`${Wt}-wrapper`,F==null?void 0:F.className,{[`${Wt}-wrapper-rtl`]:b==="rtl"},We,st,rs),Ia=Object.assign(Object.assign({},F==null?void 0:F.style),ot),Ys=tr&&tr.emptyText||(ie==null?void 0:ie("Table"))||w.createElement(jn.Z,{componentName:"Table"}),Xs=hr?ya:Ji,So={},Fo=w.useMemo(()=>{const{fontSize:mi,lineHeight:Bi,padding:ws,paddingXS:ts,paddingSM:Cs}=ki,zs=Math.floor(mi*Bi);switch(Qe){case"large":return ws*2+zs;case"small":return ts*2+zs;default:return Cs*2+zs}},[ki,Qe]);return hr&&(So.listItemHeight=Fo),gs(w.createElement("div",{ref:ve,className:Vs,style:Ia},w.createElement(yi.Z,Object.assign({spinning:!1},bs),ia,w.createElement(Xs,Object.assign({},So,d,{columns:l,direction:b,expandable:Yt,prefixCls:Wt,className:W()({[`${Wt}-middle`]:Qe==="middle",[`${Wt}-small`]:Qe==="small",[`${Wt}-bordered`]:St,[`${Wt}-empty`]:At.length===0}),data:es,rowKey:lr,rowClassName:$s,emptyText:Ys,internalHooks:K,internalRefs:An,transformColumns:ra})),Ns)))};var xo=w.forwardRef(_o);const Bo=(ae,ve)=>{const $e=w.useRef(0);return $e.current+=1,w.createElement(xo,Object.assign({},ae,{ref:ve,_renderTimes:$e.current}))},Ls=w.forwardRef(Bo);Ls.SELECTION_COLUMN=Wi,Ls.EXPAND_COLUMN=O,Ls.SELECTION_ALL=Pi,Ls.SELECTION_INVERT=Gi,Ls.SELECTION_NONE=ds,Ls.Column=Un,Ls.ColumnGroup=Er,Ls.Summary=R;var Ja=Ls,Eo=Ja},33166:function(Xt,Ze,p){"use strict";p.d(Ze,{i:function(){return O}});const O=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},45157:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return K}});var O=p(33166);function K(q,ce){return O.i.reduce((A,m)=>{const w=q[`${m}1`],re=q[`${m}3`],o=q[`${m}6`],I=q[`${m}7`];return Object.assign(Object.assign({},A),ce(m,{lightColor:w,lightBorderColor:re,darkColor:o,textColor:I}))},{})}},6848:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return Ee}});var O=p(59301),K=p(92310),q=p.n(K),ce=p(55477),A=p(18929),m=p(62892),w=p(79676),re=p(92343),o=p(36355),I=p(33234),k=p(88088),g=p(17313),_=p(29878),S=p(19447),T=p(45157),B=p(37613),se=p(83116);const z=ge=>{const{componentCls:de,tooltipMaxWidth:W,tooltipColor:be,tooltipBg:N,tooltipBorderRadius:ue,zIndexPopup:J,controlHeight:v,boxShadowSecondary:x,paddingSM:Z,paddingXS:me,tooltipRadiusOuter:Be}=ge;return[{[de]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,g.Wf)(ge)),{position:"absolute",zIndex:J,display:"block",width:"max-content",maxWidth:W,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":N,[`${de}-inner`]:{minWidth:v,minHeight:v,padding:`${Z/2}px ${me}px`,color:be,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:N,borderRadius:ue,boxShadow:x,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${de}-inner`]:{borderRadius:Math.min(ue,S.qN)}},[`${de}-content`]:{position:"relative"}}),(0,T.Z)(ge,(Ue,ze)=>{let{darkColor:qe}=ze;return{[`&${de}-${Ue}`]:{[`${de}-inner`]:{backgroundColor:qe},[`${de}-arrow`]:{"--antd-arrow-background-color":qe}}}})),{"&-rtl":{direction:"rtl"}})},(0,S.ZP)((0,B.TS)(ge,{borderRadiusOuter:Be}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:ue,limitVerticalRadius:!0}),{[`${de}-pure`]:{position:"relative",maxWidth:"none",margin:ge.sizePopupArrow}}]};var $=(ge,de)=>(0,se.Z)("Tooltip",be=>{if(de===!1)return[];const{borderRadius:N,colorTextLightSolid:ue,colorBgDefault:J,borderRadiusOuter:v}=be,x=(0,B.TS)(be,{tooltipMaxWidth:250,tooltipColor:ue,tooltipBorderRadius:N,tooltipBg:J,tooltipRadiusOuter:v>4?4:v});return[z(x),(0,_._y)(be,"zoom-big-fast")]},be=>{let{zIndexPopupBase:N,colorBgSpotlight:ue}=be;return{zIndexPopup:N+70,colorBgDefault:ue}},{resetStyle:!1})(ge),G=p(36785);function X(ge,de){const W=(0,G.o2)(de),be=q()({[`${ge}-${de}`]:de&&W}),N={},ue={};return de&&!W&&(N.background=de,ue["--antd-arrow-background-color"]=de),{className:be,overlayStyle:N,arrowStyle:ue}}var D=ge=>{const{prefixCls:de,className:W,placement:be="top",title:N,color:ue,overlayInnerStyle:J}=ge,{getPrefixCls:v}=O.useContext(o.E_),x=v("tooltip",de),[Z,me]=$(x,!0),Be=X(x,ue),Ue=Be.arrowStyle,ze=Object.assign(Object.assign({},J),Be.overlayStyle),qe=q()(me,x,`${x}-pure`,`${x}-placement-${be}`,W,Be.className);return Z(O.createElement("div",{className:qe,style:Ue},O.createElement("div",{className:`${x}-arrow`}),O.createElement(ce.G,Object.assign({},ge,{className:me,prefixCls:x,overlayInnerStyle:ze}),N)))},Y=function(ge,de){var W={};for(var be in ge)Object.prototype.hasOwnProperty.call(ge,be)&&de.indexOf(be)<0&&(W[be]=ge[be]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,be=Object.getOwnPropertySymbols(ge);N<be.length;N++)de.indexOf(be[N])<0&&Object.prototype.propertyIsEnumerable.call(ge,be[N])&&(W[be[N]]=ge[be[N]]);return W};const j=(ge,de)=>{const W={},be=Object.assign({},ge);return de.forEach(N=>{ge&&N in ge&&(W[N]=ge[N],delete be[N])}),{picked:W,omitted:be}};function xe(ge,de){const W=ge.type;if((W.__ANT_BUTTON===!0||ge.type==="button")&&ge.props.disabled||W.__ANT_SWITCH===!0&&(ge.props.disabled||ge.props.loading)||W.__ANT_RADIO===!0&&ge.props.disabled){const{picked:be,omitted:N}=j(ge.props.style,["position","left","right","top","bottom","float","display","zIndex"]),ue=Object.assign(Object.assign({display:"inline-block"},be),{cursor:"not-allowed",width:ge.props.block?"100%":void 0}),J=Object.assign(Object.assign({},N),{pointerEvents:"none"}),v=(0,re.Tm)(ge,{style:J,className:null});return O.createElement("span",{style:ue,className:q()(ge.props.className,`${de}-disabled-compatible-wrapper`)},v)}return ge}const Ce=O.forwardRef((ge,de)=>{var W,be;const{prefixCls:N,openClassName:ue,getTooltipContainer:J,overlayClassName:v,color:x,overlayInnerStyle:Z,children:me,afterOpenChange:Be,afterVisibleChange:Ue,destroyTooltipOnHide:ze,arrow:qe=!0,title:mt,overlay:gt,builtinPlacements:at,arrowPointAtCenter:Lt=!1,autoAdjustOverflow:tn=!0}=ge,Rt=!!qe,[,Ht]=(0,k.Z)(),{getPopupContainer:ut,getPrefixCls:wt,direction:he}=O.useContext(o.E_),pe=O.useRef(null),le=()=>{var nt;(nt=pe.current)===null||nt===void 0||nt.forceAlign()};O.useImperativeHandle(de,()=>({forceAlign:le,forcePopupAlign:()=>{le()}}));const[Q,Re]=(0,A.Z)(!1,{value:(W=ge.open)!==null&&W!==void 0?W:ge.visible,defaultValue:(be=ge.defaultOpen)!==null&&be!==void 0?be:ge.defaultVisible}),H=!mt&&!gt&&mt!==0,R=nt=>{var tt,we;Re(H?!1:nt),H||((tt=ge.onOpenChange)===null||tt===void 0||tt.call(ge,nt),(we=ge.onVisibleChange)===null||we===void 0||we.call(ge,nt))},P=O.useMemo(()=>{var nt,tt;let we=Lt;return typeof qe=="object"&&(we=(tt=(nt=qe.pointAtCenter)!==null&&nt!==void 0?nt:qe.arrowPointAtCenter)!==null&&tt!==void 0?tt:Lt),at||(0,w.Z)({arrowPointAtCenter:we,autoAdjustOverflow:tn,arrowWidth:Rt?Ht.sizePopupArrow:0,borderRadius:Ht.borderRadius,offset:Ht.marginXXS,visibleFirst:!0})},[Lt,qe,at,Ht]),fe=O.useMemo(()=>mt===0?mt:gt||mt||"",[gt,mt]),oe=O.createElement(I.BR,null,typeof fe=="function"?fe():fe),{getPopupContainer:te,placement:Te="top",mouseEnterDelay:je=.1,mouseLeaveDelay:Me=.1,overlayStyle:Fe,rootClassName:Je}=ge,Xe=Y(ge,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Ve=wt("tooltip",N),xt=wt(),Dt=ge["data-popover-inject"];let vt=Q;!("open"in ge)&&!("visible"in ge)&&H&&(vt=!1);const Bt=xe((0,re.l$)(me)&&!(0,re.M2)(me)?me:O.createElement("span",null,me),Ve),Zt=Bt.props,C=!Zt.className||typeof Zt.className=="string"?q()(Zt.className,ue||`${Ve}-open`):Zt.className,[M,yt]=$(Ve,!Dt),ye=X(Ve,x),Ne=ye.arrowStyle,Sn=Object.assign(Object.assign({},Z),ye.overlayStyle),it=q()(v,{[`${Ve}-rtl`]:he==="rtl"},ye.className,Je,yt);return M(O.createElement(ce.Z,Object.assign({},Xe,{showArrow:Rt,placement:Te,mouseEnterDelay:je,mouseLeaveDelay:Me,prefixCls:Ve,overlayClassName:it,overlayStyle:Object.assign(Object.assign({},Ne),Fe),getTooltipContainer:te||J||ut,ref:pe,builtinPlacements:P,overlay:oe,visible:vt,onVisibleChange:R,afterVisibleChange:Be!=null?Be:Ue,overlayInnerStyle:Sn,arrowContent:O.createElement("span",{className:`${Ve}-arrow-content`}),motion:{motionName:(0,m.m)(xt,"zoom-big-fast",ge.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!ze}),vt?(0,re.Tm)(Bt,{className:C}):Bt))});Ce._InternalPanelDoNotUseOrYouWillBeFired=D;var Ee=Ce},17574:function(Xt,Ze,p){"use strict";p.d(Ze,{default:function(){return x}});var O=p(54844),K=p(80702),q=p(52671),ce=p(8657),A=p(72308),m=p(59301),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},re=w,o=p(7657),I=function(me,Be){return m.createElement(o.Z,(0,A.Z)({},me,{ref:Be,icon:re}))},k=m.forwardRef(I),g=k,_=p(92310),S=p.n(_),T=p(35654),B=p(71430),se=p(36355),z=p(56082),$=p(62892),G=p(20648);const X=4;function L(Z){const{dropPosition:me,dropLevelOffset:Be,prefixCls:Ue,indent:ze,direction:qe="ltr"}=Z,mt=qe==="ltr"?"left":"right",gt=qe==="ltr"?"right":"left",at={[mt]:-Be*ze+X,[gt]:0};switch(me){case-1:at.top=-3;break;case 1:at.bottom=-3;break;default:at.bottom=-3,at[mt]=ze+X;break}return m.createElement("div",{style:at,className:`${Ue}-drop-indicator`})}var D=p(71997),j=m.forwardRef((Z,me)=>{const{getPrefixCls:Be,direction:Ue,virtual:ze,tree:qe}=m.useContext(se.E_),{prefixCls:mt,className:gt,showIcon:at=!1,showLine:Lt,switcherIcon:tn,blockNode:Rt=!1,children:Ht,checkable:ut=!1,selectable:wt=!0,draggable:he,motion:pe,style:le}=Z,Q=Be("tree",mt),Re=Be(),H=pe!=null?pe:Object.assign(Object.assign({},(0,$.Z)(Re)),{motionAppear:!1}),R=Object.assign(Object.assign({},Z),{checkable:ut,selectable:wt,showIcon:at,motion:H,blockNode:Rt,showLine:!!Lt,dropIndicatorRender:L}),[P,fe]=(0,G.ZP)(Q),oe=m.useMemo(()=>{if(!he)return!1;let Te={};switch(typeof he){case"function":Te.nodeDraggable=he;break;case"object":Te=Object.assign({},he);break;default:break}return Te.icon!==!1&&(Te.icon=Te.icon||m.createElement(z.Z,null)),Te},[he]),te=Te=>m.createElement(D.Z,{prefixCls:Q,switcherIcon:tn,treeNodeProps:Te,showLine:Lt});return P(m.createElement(O.Z,Object.assign({itemHeight:20,ref:me,virtual:ze},R,{style:Object.assign(Object.assign({},qe==null?void 0:qe.style),le),prefixCls:Q,className:S()({[`${Q}-icon-hide`]:!at,[`${Q}-block-node`]:Rt,[`${Q}-unselectable`]:!wt,[`${Q}-rtl`]:Ue==="rtl"},qe==null?void 0:qe.className,gt,fe),direction:Ue,checkable:ut&&m.createElement("span",{className:`${Q}-checkbox-inner`}),selectable:wt,switcherIcon:te,draggable:oe}),Ht))}),xe;(function(Z){Z[Z.None=0]="None",Z[Z.Start=1]="Start",Z[Z.End=2]="End"})(xe||(xe={}));function Ce(Z,me){function Be(Ue){const{key:ze,children:qe}=Ue;me(ze,Ue)!==!1&&Ce(qe||[],me)}Z.forEach(Be)}function Ee(Z){let{treeData:me,expandedKeys:Be,startKey:Ue,endKey:ze}=Z;const qe=[];let mt=xe.None;if(Ue&&Ue===ze)return[Ue];if(!Ue||!ze)return[];function gt(at){return at===Ue||at===ze}return Ce(me,at=>{if(mt===xe.End)return!1;if(gt(at)){if(qe.push(at),mt===xe.None)mt=xe.Start;else if(mt===xe.Start)return mt=xe.End,!1}else mt===xe.Start&&qe.push(at);return Be.includes(at)}),qe}function ge(Z,me){const Be=(0,K.Z)(me),Ue=[];return Ce(Z,(ze,qe)=>{const mt=Be.indexOf(ze);return mt!==-1&&(Ue.push(qe),Be.splice(mt,1)),!!Be.length}),Ue}var de=function(Z,me){var Be={};for(var Ue in Z)Object.prototype.hasOwnProperty.call(Z,Ue)&&me.indexOf(Ue)<0&&(Be[Ue]=Z[Ue]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,Ue=Object.getOwnPropertySymbols(Z);ze<Ue.length;ze++)me.indexOf(Ue[ze])<0&&Object.prototype.propertyIsEnumerable.call(Z,Ue[ze])&&(Be[Ue[ze]]=Z[Ue[ze]]);return Be};function W(Z){const{isLeaf:me,expanded:Be}=Z;return me?m.createElement(q.Z,null):Be?m.createElement(ce.Z,null):m.createElement(g,null)}function be(Z){let{treeData:me,children:Be}=Z;return me||(0,B.zn)(Be)}const N=(Z,me)=>{var{defaultExpandAll:Be,defaultExpandParent:Ue,defaultExpandedKeys:ze}=Z,qe=de(Z,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const mt=m.useRef(),gt=m.useRef(),at=()=>{const{keyEntities:oe}=(0,B.I8)(be(qe));let te;return Be?te=Object.keys(oe):Ue?te=(0,T.r7)(qe.expandedKeys||ze||[],oe):te=qe.expandedKeys||ze,te},[Lt,tn]=m.useState(qe.selectedKeys||qe.defaultSelectedKeys||[]),[Rt,Ht]=m.useState(()=>at());m.useEffect(()=>{"selectedKeys"in qe&&tn(qe.selectedKeys)},[qe.selectedKeys]),m.useEffect(()=>{"expandedKeys"in qe&&Ht(qe.expandedKeys)},[qe.expandedKeys]);const ut=(oe,te)=>{var Te;return"expandedKeys"in qe||Ht(oe),(Te=qe.onExpand)===null||Te===void 0?void 0:Te.call(qe,oe,te)},wt=(oe,te)=>{var Te;const{multiple:je}=qe,{node:Me,nativeEvent:Fe}=te,{key:Je=""}=Me,Xe=be(qe),Ve=Object.assign(Object.assign({},te),{selected:!0}),xt=(Fe==null?void 0:Fe.ctrlKey)||(Fe==null?void 0:Fe.metaKey),Dt=Fe==null?void 0:Fe.shiftKey;let vt;je&&xt?(vt=oe,mt.current=Je,gt.current=vt,Ve.selectedNodes=ge(Xe,vt)):je&&Dt?(vt=Array.from(new Set([].concat((0,K.Z)(gt.current||[]),(0,K.Z)(Ee({treeData:Xe,expandedKeys:Rt,startKey:Je,endKey:mt.current}))))),Ve.selectedNodes=ge(Xe,vt)):(vt=[Je],mt.current=Je,gt.current=vt,Ve.selectedNodes=ge(Xe,vt)),(Te=qe.onSelect)===null||Te===void 0||Te.call(qe,vt,Ve),"selectedKeys"in qe||tn(vt)},{getPrefixCls:he,direction:pe}=m.useContext(se.E_),{prefixCls:le,className:Q,showIcon:Re=!0,expandAction:H="click"}=qe,R=de(qe,["prefixCls","className","showIcon","expandAction"]),P=he("tree",le),fe=S()(`${P}-directory`,{[`${P}-directory-rtl`]:pe==="rtl"},Q);return m.createElement(j,Object.assign({icon:W,ref:me,blockNode:!0},R,{showIcon:Re,expandAction:H,prefixCls:P,className:fe,expandedKeys:Rt,selectedKeys:Lt,onSelect:wt,onExpand:ut}))};var J=m.forwardRef(N);const v=j;v.DirectoryTree=J,v.TreeNode=O.O;var x=v},20648:function(Xt,Ze,p){"use strict";p.d(Ze,{TM:function(){return _},Yk:function(){return g}});var O=p(93083),K=p(98447),q=p(17313),ce=p(8378),A=p(37613),m=p(83116);const w=new O.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),re=(S,T)=>({[`.${S}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${T.motionDurationSlow}`}}}),o=(S,T)=>({[`.${S}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:T.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${T.lineWidthBold}px solid ${T.colorPrimary}`,borderRadius:"50%",content:'""'}}}),I=(S,T)=>{const{treeCls:B,treeNodeCls:se,treeNodePadding:z,titleHeight:$,nodeSelectedBg:G,nodeHoverBg:X}=T,L=T.paddingXS;return{[B]:Object.assign(Object.assign({},(0,q.Wf)(T)),{background:T.colorBgContainer,borderRadius:T.borderRadius,transition:`background-color ${T.motionDurationSlow}`,[`&${B}-rtl`]:{[`${B}-switcher`]:{"&_close":{[`${B}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${B}-active-focused)`]:Object.assign({},(0,q.oN)(T)),[`${B}-list-holder-inner`]:{alignItems:"flex-start"},[`&${B}-block-node`]:{[`${B}-list-holder-inner`]:{alignItems:"stretch",[`${B}-node-content-wrapper`]:{flex:"auto"},[`${se}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:z,insetInlineStart:0,border:`1px solid ${T.colorPrimary}`,opacity:0,animationName:w,animationDuration:T.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${se}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${z}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${B}-node-content-wrapper`]:{color:T.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${B}-node-content-wrapper`]:Object.assign({},(0,q.oN)(T)),[`&:not(${se}-disabled).filter-node ${B}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${B}-draggable-icon`]:{flexShrink:0,width:$,lineHeight:`${$}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${T.motionDurationSlow}`,[`${se}:hover &`]:{opacity:.45}},[`&${se}-disabled`]:{[`${B}-draggable-icon`]:{visibility:"hidden"}}}},[`${B}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:$}},[`${B}-draggable-icon`]:{visibility:"hidden"},[`${B}-switcher`]:Object.assign(Object.assign({},re(S,T)),{position:"relative",flex:"none",alignSelf:"stretch",width:$,margin:0,lineHeight:`${$}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${B}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:T.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:$/2,bottom:-z,marginInlineStart:-1,borderInlineEnd:`1px solid ${T.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:$/2*.8,height:$/2,borderBottom:`1px solid ${T.colorBorder}`,content:'""'}}}),[`${B}-checkbox`]:{top:"initial",marginInlineEnd:L},[`${B}-node-content-wrapper, ${B}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:$,margin:0,padding:`0 ${T.paddingXS/2}px`,color:"inherit",lineHeight:`${$}px`,background:"transparent",borderRadius:T.borderRadius,cursor:"pointer",transition:`all ${T.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:X},[`&${B}-node-selected`]:{backgroundColor:G},[`${B}-iconEle`]:{display:"inline-block",width:$,height:$,lineHeight:`${$}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${B}-unselectable ${B}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${B}-node-content-wrapper`]:Object.assign({lineHeight:`${$}px`,userSelect:"none"},o(S,T)),[`${se}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${T.colorPrimary}`}},"&-show-line":{[`${B}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:$/2,bottom:-z,borderInlineEnd:`1px solid ${T.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${B}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${se}-leaf-last`]:{[`${B}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${$/2}px !important`}}}}})}},k=S=>{const{treeCls:T,treeNodeCls:B,treeNodePadding:se,directoryNodeSelectedBg:z,directoryNodeSelectedColor:$}=S;return{[`${T}${T}-directory`]:{[B]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:se,insetInlineStart:0,transition:`background-color ${S.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:S.controlItemBgHover}},"> *":{zIndex:1},[`${T}-switcher`]:{transition:`color ${S.motionDurationMid}`},[`${T}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${T}-node-selected`]:{color:$,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:z},[`${T}-switcher`]:{color:$},[`${T}-node-content-wrapper`]:{color:$,background:"transparent"}}}}}},g=(S,T)=>{const B=`.${S}`,se=`${B}-treenode`,z=T.paddingXS/2,$=(0,A.TS)(T,{treeCls:B,treeNodeCls:se,treeNodePadding:z});return[I(S,$),k($)]},_=S=>{const{controlHeightSM:T}=S;return{titleHeight:T,nodeHoverBg:S.controlItemBgHover,nodeSelectedBg:S.controlItemBgActive}};Ze.ZP=(0,m.Z)("Tree",(S,T)=>{let{prefixCls:B}=T;return[{[S.componentCls]:(0,K.C2)(`${B}-checkbox`,S)},g(B,S),(0,ce.Z)(S)]},S=>{const{colorTextLightSolid:T,colorPrimary:B}=S;return Object.assign(Object.assign({},_(S)),{directoryNodeSelectedColor:T,directoryNodeSelectedBg:B})})},71997:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return se}});var O=p(72308),K=p(59301),q={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},ce=q,A=p(7657),m=function($,G){return K.createElement(A.Z,(0,O.Z)({},$,{ref:G,icon:ce}))},w=K.forwardRef(m),re=w,o=p(52671),I=p(58617),k=p(15075),g=p(43531),_=p(92310),S=p.n(_),T=p(92343),se=z=>{const{prefixCls:$,switcherIcon:G,treeNodeProps:X,showLine:L}=z,{isLeaf:D,expanded:Y,loading:j}=X;if(j)return K.createElement(I.Z,{className:`${$}-switcher-loading-icon`});let xe;if(L&&typeof L=="object"&&(xe=L.showLeafIcon),D){if(!L)return null;if(typeof xe!="boolean"&&xe){const ge=typeof xe=="function"?xe(X):xe,de=`${$}-switcher-line-custom-icon`;return(0,T.l$)(ge)?(0,T.Tm)(ge,{className:S()(ge.props.className||"",de)}):ge}return xe?K.createElement(o.Z,{className:`${$}-switcher-line-icon`}):K.createElement("span",{className:`${$}-switcher-leaf-line`})}const Ce=`${$}-switcher-icon`,Ee=typeof G=="function"?G(X):G;return(0,T.l$)(Ee)?(0,T.Tm)(Ee,{className:S()(Ee.props.className||"",Ce)}):Ee!==void 0?Ee:L?Y?K.createElement(k.Z,{className:`${$}-switcher-line-icon`}):K.createElement(g.Z,{className:`${$}-switcher-line-icon`}):K.createElement(re,{className:Ce})}},64018:function(){var Xt,Ze,p,O=!1,K,q;window.PR_SHOULD_USE_CONTINUATION=!0;var ce,A;(function(){var m=window,w=["break,continue,do,else,for,if,return,while"],re=[w,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],o=[re,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],I=[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"],k=[o,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],g=[o,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],_="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",S=[o,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],T="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",B=[w,"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"],se=[w,"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"],z=[w,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],$=[I,g,k,S,T,B,se,z],G=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,X="str",L="kwd",D="com",Y="typ",j="lit",xe="pun",Ce="pln",Ee="tag",ge="dec",de="src",W="atn",be="atv",N="nocode",ue="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function J(he){for(var pe=0,le=!1,Q=!1,Re=0,H=he.length;Re<H;++Re){var R=he[Re];if(R.ignoreCase)Q=!0;else if(/[a-z]/i.test(R.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){le=!0,Q=!1;break}}var P={b:8,t:9,n:10,v:11,f:12,r:13};function fe(Me){var Fe=Me.charCodeAt(0);if(Fe!==92)return Fe;var Je=Me.charAt(1);return Fe=P[Je],Fe||("0"<=Je&&Je<="7"?parseInt(Me.substring(1),8):Je==="u"||Je==="x"?parseInt(Me.substring(2),16):Me.charCodeAt(1))}function oe(Me){if(Me<32)return(Me<16?"\\x0":"\\x")+Me.toString(16);var Fe=String.fromCharCode(Me);return Fe==="\\"||Fe==="-"||Fe==="]"||Fe==="^"?"\\"+Fe:Fe}function te(Me){var Fe=Me.substring(1,Me.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")),Je=[],Xe=Fe[0]==="^",Ve=["["];Xe&&Ve.push("^");for(var xt=Xe?1:0,Dt=Fe.length;xt<Dt;++xt){var vt=Fe[xt];if(/\\[bdsw]/i.test(vt))Ve.push(vt);else{var Bt=fe(vt),Zt;xt+2<Dt&&Fe[xt+1]==="-"?(Zt=fe(Fe[xt+2]),xt+=2):Zt=Bt,Je.push([Bt,Zt]),Zt<65||Bt>122||(Zt<65||Bt>90||Je.push([Math.max(65,Bt)|32,Math.min(Zt,90)|32]),Zt<97||Bt>122||Je.push([Math.max(97,Bt)&-33,Math.min(Zt,122)&-33]))}}Je.sort(function(ye,Ne){return ye[0]-Ne[0]||Ne[1]-ye[1]});for(var C=[],M=[],xt=0;xt<Je.length;++xt){var yt=Je[xt];yt[0]<=M[1]+1?M[1]=Math.max(M[1],yt[1]):C.push(M=yt)}for(var xt=0;xt<C.length;++xt){var yt=C[xt];Ve.push(oe(yt[0])),yt[1]>yt[0]&&(yt[1]+1>yt[0]&&Ve.push("-"),Ve.push(oe(yt[1])))}return Ve.push("]"),Ve.join("")}function Te(Me){for(var Fe=Me.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")),Je=Fe.length,Xe=[],Ve=0,xt=0;Ve<Je;++Ve){var Dt=Fe[Ve];if(Dt==="(")++xt;else if(Dt.charAt(0)==="\\"){var vt=+Dt.substring(1);vt&&(vt<=xt?Xe[vt]=-1:Fe[Ve]=oe(vt))}}for(var Ve=1;Ve<Xe.length;++Ve)Xe[Ve]===-1&&(Xe[Ve]=++pe);for(var Ve=0,xt=0;Ve<Je;++Ve){var Dt=Fe[Ve];if(Dt==="(")++xt,Xe[xt]||(Fe[Ve]="(?:");else if(Dt.charAt(0)==="\\"){var vt=+Dt.substring(1);vt&&vt<=xt&&(Fe[Ve]="\\"+Xe[vt])}}for(var Ve=0;Ve<Je;++Ve)Fe[Ve]==="^"&&Fe[Ve+1]!=="^"&&(Fe[Ve]="");if(Me.ignoreCase&&le)for(var Ve=0;Ve<Je;++Ve){var Dt=Fe[Ve],Bt=Dt.charAt(0);Dt.length>=2&&Bt==="["?Fe[Ve]=te(Dt):Bt!=="\\"&&(Fe[Ve]=Dt.replace(/[a-zA-Z]/g,function(M){var yt=M.charCodeAt(0);return"["+String.fromCharCode(yt&-33,yt|32)+"]"}))}return Fe.join("")}for(var je=[],Re=0,H=he.length;Re<H;++Re){var R=he[Re];if(R.global||R.multiline)throw new Error(""+R);je.push("(?:"+Te(R)+")")}return new RegExp(je.join("|"),Q?"gi":"g")}function v(he,pe){var le=/(?:^|\s)nocode(?:\s|$)/,Q=[],Re=0,H=[],R=0;function P(fe){var oe=fe.nodeType;if(oe==1){if(le.test(fe.className))return;for(var te=fe.firstChild;te;te=te.nextSibling)P(te);var Te=fe.nodeName.toLowerCase();(Te==="br"||Te==="li")&&(Q[R]=`
|
|
|
`,H[R<<1]=Re++,H[R++<<1|1]=fe)}else if(oe==3||oe==4){var je=fe.nodeValue;je.length&&(pe?je=je.replace(/\r\n?/g,`
|
|
|
`):je=je.replace(/[ \t\r\n]+/g," "),Q[R]=je,H[R<<1]=Re,Re+=je.length,H[R++<<1|1]=fe)}}return P(he),{sourceCode:Q.join("").replace(/\n$/,""),spans:H}}function x(he,pe,le,Q,Re){if(le){var H={sourceNode:he,pre:1,langExtension:null,numberLines:null,sourceCode:le,spans:null,basePos:pe,decorations:null};Q(H),Re.push.apply(Re,H.decorations)}}var Z=/\S/;function me(he){for(var pe=void 0,le=he.firstChild;le;le=le.nextSibling){var Q=le.nodeType;pe=Q===1?pe?he:le:Q===3&&Z.test(le.nodeValue)?he:pe}return pe===he?void 0:pe}function Be(he,pe){var le={},Q;(function(){for(var R=he.concat(pe),P=[],fe={},oe=0,te=R.length;oe<te;++oe){var Te=R[oe],je=Te[3];if(je)for(var Me=je.length;--Me>=0;)le[je.charAt(Me)]=Te;var Fe=Te[1],Je=""+Fe;fe.hasOwnProperty(Je)||(P.push(Fe),fe[Je]=null)}P.push(/[\0-\uffff]/),Q=J(P)})();var Re=pe.length,H=function(R){for(var P=R.sourceCode,fe=R.basePos,oe=R.sourceNode,te=[fe,Ce],Te=0,je=P.match(Q)||[],Me={},Fe=0,Je=je.length;Fe<Je;++Fe){var Xe=je[Fe],Ve=Me[Xe],xt=void 0,Dt;if(typeof Ve=="string")Dt=!1;else{var vt=le[Xe.charAt(0)];if(vt)xt=Xe.match(vt[1]),Ve=vt[0];else{for(var Bt=0;Bt<Re;++Bt)if(vt=pe[Bt],xt=Xe.match(vt[1]),xt){Ve=vt[0];break}xt||(Ve=Ce)}Dt=Ve.length>=5&&Ve.substring(0,5)==="lang-",Dt&&!(xt&&typeof xt[1]=="string")&&(Dt=!1,Ve=de),Dt||(Me[Xe]=Ve)}var Zt=Te;if(Te+=Xe.length,!Dt)te.push(fe+Zt,Ve);else{var C=xt[1],M=Xe.indexOf(C),yt=M+C.length;xt[2]&&(yt=Xe.length-xt[2].length,M=yt-C.length);var ye=Ve.substring(5);x(oe,fe+Zt,Xe.substring(0,M),H,te),x(oe,fe+Zt+M,C,Lt(ye,C),te),x(oe,fe+Zt+yt,Xe.substring(yt),H,te)}}R.decorations=te};return H}function Ue(he){var pe=[],le=[];he.tripleQuotedStrings?pe.push([X,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):he.multiLineStrings?pe.push([X,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):pe.push([X,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),he.verbatimStrings&&le.push([X,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Q=he.hashComments;Q&&(he.cStyleComments?(Q>1?pe.push([D,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):pe.push([D,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),le.push([X,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):pe.push([D,/^#[^\r\n]*/,null,"#"])),he.cStyleComments&&(le.push([D,/^\/\/[^\r\n]*/,null]),le.push([D,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Re=he.regexLiterals;if(Re){var H=Re>1?"":`
|
|
|
\r`,R=H?".":"[\\S\\s]",P="/(?=[^/*"+H+"])(?:[^/\\x5B\\x5C"+H+"]|\\x5C"+R+"|\\x5B(?:[^\\x5C\\x5D"+H+"]|\\x5C"+R+")*(?:\\x5D|$))+/";le.push(["lang-regex",RegExp("^"+ue+"("+P+")")])}var fe=he.types;fe&&le.push([Y,fe]);var oe=(""+he.keywords).replace(/^ | $/g,"");oe.length&&le.push([L,new RegExp("^(?:"+oe.replace(/[\s,]+/g,"|")+")\\b"),null]),pe.push([Ce,/^\s+/,null,` \r
|
|
|
\xA0`]);var te="^.[^\\s\\w.$@'\"`/\\\\]*";return he.regexLiterals&&(te+="(?!s*/)"),le.push([j,/^@[a-z_$][a-z_$@0-9]*/i,null],[Y,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[Ce,/^[a-z_$][a-z_$@0-9]*/i,null],[j,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[Ce,/^\\[\s\S]?/,null],[xe,new RegExp(te),null]),Be(pe,le)}var ze=Ue({keywords:$,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function qe(he,pe,le){for(var Q=/(?:^|\s)nocode(?:\s|$)/,Re=/\r\n?|\n/,H=he.ownerDocument,R=H.createElement("li");he.firstChild;)R.appendChild(he.firstChild);var P=[R];function fe(Fe){var Je=Fe.nodeType;if(Je==1&&!Q.test(Fe.className))if(Fe.nodeName==="br")oe(Fe),Fe.parentNode&&Fe.parentNode.removeChild(Fe);else for(var Xe=Fe.firstChild;Xe;Xe=Xe.nextSibling)fe(Xe);else if((Je==3||Je==4)&&le){var Ve=Fe.nodeValue,xt=Ve.match(Re);if(xt){var Dt=Ve.substring(0,xt.index);Fe.nodeValue=Dt;var vt=Ve.substring(xt.index+xt[0].length);if(vt){var Bt=Fe.parentNode;Bt.insertBefore(H.createTextNode(vt),Fe.nextSibling)}oe(Fe),Dt||Fe.parentNode.removeChild(Fe)}}}function oe(Fe){for(;!Fe.nextSibling;)if(Fe=Fe.parentNode,!Fe)return;function Je(xt,Dt){var vt=Dt?xt.cloneNode(!1):xt,Bt=xt.parentNode;if(Bt){var Zt=Je(Bt,1),C=xt.nextSibling;Zt.appendChild(vt);for(var M=C;M;M=C)C=M.nextSibling,Zt.appendChild(M)}return vt}for(var Xe=Je(Fe.nextSibling,0),Ve;(Ve=Xe.parentNode)&&Ve.nodeType===1;)Xe=Ve;P.push(Xe)}for(var te=0;te<P.length;++te)fe(P[te]);pe===(pe|0)&&P[0].setAttribute("value",pe);var Te=H.createElement("ol");Te.className="linenums";for(var je=Math.max(0,pe-1|0)||0,te=0,Me=P.length;te<Me;++te)R=P[te],R.className="L"+(te+je)%10,R.firstChild||R.appendChild(H.createTextNode("\xA0")),Te.appendChild(R);he.appendChild(Te)}function mt(he){var pe=/\bMSIE\s(\d+)/.exec(navigator.userAgent);pe=pe&&+pe[1]<=8;var le=/\n/g,Q=he.sourceCode,Re=Q.length,H=0,R=he.spans,P=R.length,fe=0,oe=he.decorations,te=oe.length,Te=0;oe[te]=Re;var je,Me;for(Me=je=0;Me<te;)oe[Me]!==oe[Me+2]?(oe[je++]=oe[Me++],oe[je++]=oe[Me++]):Me+=2;for(te=je,Me=je=0;Me<te;){for(var Fe=oe[Me],Je=oe[Me+1],Xe=Me+2;Xe+2<=te&&oe[Xe+1]===Je;)Xe+=2;oe[je++]=Fe,oe[je++]=Je,Me=Xe}te=oe.length=je;var Ve=he.sourceNode,xt="";Ve&&(xt=Ve.style.display,Ve.style.display="none");try{for(var Dt=null;fe<P;){var vt=R[fe],Bt=R[fe+2]||Re,Zt=oe[Te+2]||Re,Xe=Math.min(Bt,Zt),C=R[fe+1],M;if(C.nodeType!==1&&(M=Q.substring(H,Xe))){pe&&(M=M.replace(le,"\r")),C.nodeValue=M;var yt=C.ownerDocument,ye=yt.createElement("span");ye.className=oe[Te+1];var Ne=C.parentNode;Ne.replaceChild(ye,C),ye.appendChild(C),H<Bt&&(R[fe+1]=C=yt.createTextNode(Q.substring(Xe,Bt)),Ne.insertBefore(C,ye.nextSibling))}H=Xe,H>=Bt&&(fe+=2),H>=Zt&&(Te+=2)}}finally{Ve&&(Ve.style.display=xt)}}var gt={};function at(he,pe){for(var le=pe.length;--le>=0;){var Q=pe[le];gt.hasOwnProperty(Q)?m.console&&console.warn("cannot override language handler %s",Q):gt[Q]=he}}function Lt(he,pe){return he&>.hasOwnProperty(he)||(he=/^\s*</.test(pe)?"default-markup":"default-code"),gt[he]}at(ze,["default-code"]),at(Be([],[[Ce,/^[^<?]+/],[ge,/^<!\w[^>]*(?:>|$)/],[D,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[xe,/^(?:<[%?]|[%?]>)/],["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"]),at(Be([[Ce,/^[\s]+/,null,` \r
|
|
|
`],[be,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[Ee,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[W,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[xe,/^[=<>\/]+/],["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"]),at(Be([],[[be,/^[\s\S]+/]]),["uq.val"]),at(Ue({keywords:I,hashComments:!0,cStyleComments:!0,types:G}),["c","cc","cpp","cxx","cyc","m"]),at(Ue({keywords:"null,true,false"}),["json"]),at(Ue({keywords:g,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:G}),["cs"]),at(Ue({keywords:k,cStyleComments:!0}),["java"]),at(Ue({keywords:z,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),at(Ue({keywords:B,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),at(Ue({keywords:T,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),at(Ue({keywords:se,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),at(Ue({keywords:S,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),at(Ue({keywords:_,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),at(Be([],[[X,/^[\s\S]+/]]),["regex"]);function tn(he){var pe=he.langExtension;try{var le=v(he.sourceNode,he.pre),Q=le.sourceCode;he.sourceCode=Q,he.spans=le.spans,he.basePos=0,Lt(pe,Q)(he),mt(he)}catch(Re){m.console&&console.log(Re&&Re.stack||Re)}}function Rt(he,pe,le){var Q=le||!1,Re=pe||null,H=document.createElement("div");H.innerHTML="<pre>"+he+"</pre>",H=H.firstChild,Q&&qe(H,Q,!0);var R={langExtension:Re,numberLines:Q,sourceNode:H,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return tn(R),H.innerHTML}function Ht(he,pe){var le=pe||document.body,Q=le.ownerDocument||document;function Re(vt){return le.getElementsByTagName(vt)}for(var H=[Re("pre"),Re("code"),Re("xmp")],R=[],P=0;P<H.length;++P)for(var fe=0,oe=H[P].length;fe<oe;++fe)R.push(H[P][fe]);H=null;var te=Date;te.now||(te={now:function(){return+new Date}});var Te=0,je=/\blang(?:uage)?-([\w.]+)(?!\S)/,Me=/\bprettyprint\b/,Fe=/\bprettyprinted\b/,Je=/pre|xmp/i,Xe=/^code$/i,Ve=/^(?:pre|code|xmp)$/i,xt={};function Dt(){for(var vt=m.PR_SHOULD_USE_CONTINUATION?te.now()+250:1/0;Te<R.length&&te.now()<vt;Te++){for(var Bt=R[Te],Zt=xt,C=Bt;C=C.previousSibling;){var M=C.nodeType,yt=(M===7||M===8)&&C.nodeValue;if(yt?!/^\??prettify\b/.test(yt):M!==3||/\S/.test(C.nodeValue))break;if(yt){Zt={},yt.replace(/\b(\w+)=([\w:.%+-]+)/g,function(He,xn,Ln){Zt[xn]=Ln});break}}var ye=Bt.className;if((Zt!==xt||Me.test(ye))&&!Fe.test(ye)){for(var Ne=!1,Sn=Bt.parentNode;Sn;Sn=Sn.parentNode){var it=Sn.tagName;if(Ve.test(it)&&Sn.className&&Me.test(Sn.className)){Ne=!0;break}}if(!Ne){Bt.className+=" prettyprinted";var nt=Zt.lang;if(!nt){nt=ye.match(je);var tt;!nt&&(tt=me(Bt))&&Xe.test(tt.tagName)&&(nt=tt.className.match(je)),nt&&(nt=nt[1])}var we;if(Je.test(Bt.tagName))we=1;else{var Oe=Bt.currentStyle,Le=Q.defaultView,rt=Oe?Oe.whiteSpace:Le&&Le.getComputedStyle?Le.getComputedStyle(Bt,null).getPropertyValue("white-space"):0;we=rt&&rt.substring(0,3)==="pre"}var _e=Zt.linenums;(_e=_e==="true"||+_e)||(_e=ye.match(/\blinenums\b(?::(\d+))?/),_e=_e?_e[1]&&_e[1].length?+_e[1]:!0:!1),_e&&qe(Bt,_e,we);var Qt={langExtension:nt,sourceNode:Bt,numberLines:_e,pre:we,sourceCode:null,basePos:null,spans:null,decorations:null};tn(Qt)}}}Te<R.length?m.setTimeout(Dt,250):typeof he=="function"&&he()}Dt()}var ut=m.PR={createSimpleLexer:Be,registerLangHandler:at,sourceDecorator:Ue,PR_ATTRIB_NAME:W,PR_ATTRIB_VALUE:be,PR_COMMENT:D,PR_DECLARATION:ge,PR_KEYWORD:L,PR_LITERAL:j,PR_NOCODE:N,PR_PLAIN:Ce,PR_PUNCTUATION:xe,PR_SOURCE:de,PR_STRING:X,PR_TAG:Ee,PR_TYPE:Y,prettyPrintOne:O?m.prettyPrintOne=Rt:ce=Rt,prettyPrint:A=O?m.prettyPrint=Ht:A=Ht},wt=m.define;typeof wt=="function"&&wt.amd&&wt("google-code-prettify",[],function(){return ut})})()},25769:function(Xt,Ze,p){"use strict";var O=p(98040),K={"text/plain":"Text","text/html":"Url",default:"Text"},q="Copy to clipboard: #{key}, Enter";function ce(m){var w=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return m.replace(/#{\s*key\s*}/g,w)}function A(m,w){var re,o,I,k,g,_,S=!1;w||(w={}),re=w.debug||!1;try{I=O(),k=document.createRange(),g=document.getSelection(),_=document.createElement("span"),_.textContent=m,_.ariaHidden="true",_.style.all="unset",_.style.position="fixed",_.style.top=0,_.style.clip="rect(0, 0, 0, 0)",_.style.whiteSpace="pre",_.style.webkitUserSelect="text",_.style.MozUserSelect="text",_.style.msUserSelect="text",_.style.userSelect="text",_.addEventListener("copy",function(B){if(B.stopPropagation(),w.format)if(B.preventDefault(),typeof B.clipboardData=="undefined"){re&&console.warn("unable to use e.clipboardData"),re&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var se=K[w.format]||K.default;window.clipboardData.setData(se,m)}else B.clipboardData.clearData(),B.clipboardData.setData(w.format,m);w.onCopy&&(B.preventDefault(),w.onCopy(B.clipboardData))}),document.body.appendChild(_),k.selectNodeContents(_),g.addRange(k);var T=document.execCommand("copy");if(!T)throw new Error("copy command was unsuccessful");S=!0}catch(B){re&&console.error("unable to copy using execCommand: ",B),re&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(w.format||"text",m),w.onCopy&&w.onCopy(window.clipboardData),S=!0}catch(se){re&&console.error("unable to copy using clipboardData: ",se),re&&console.error("falling back to prompt"),o=ce("message"in w?w.message:q),window.prompt(o,m)}}finally{g&&(typeof g.removeRange=="function"?g.removeRange(k):g.removeAllRanges()),_&&document.body.removeChild(_),I()}return S}Xt.exports=A},97774:function(Xt,Ze,p){"use strict";Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=void 0;var O=Object.assign||function(B){for(var se=1;se<arguments.length;se++){var z=arguments[se];for(var $ in z)Object.prototype.hasOwnProperty.call(z,$)&&(B[$]=z[$])}return B},K=function(){function B(se,z){for(var $=0;$<z.length;$++){var G=z[$];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(se,G.key,G)}}return function(se,z,$){return z&&B(se.prototype,z),$&&B(se,$),se}}(),q=p(59301),ce=k(q),A=p(12708),m=k(A),w=p(53291),re=k(w),o=p(47242),I=p(65429);function k(B){return B&&B.__esModule?B:{default:B}}function g(B,se){if(!(B instanceof se))throw new TypeError("Cannot call a class as a function")}function _(B,se){if(!B)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return se&&(typeof se=="object"||typeof se=="function")?se:B}function S(B,se){if(typeof se!="function"&&se!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof se);B.prototype=Object.create(se&&se.prototype,{constructor:{value:B,enumerable:!1,writable:!0,configurable:!0}}),se&&(Object.setPrototypeOf?Object.setPrototypeOf(B,se):B.__proto__=se)}var T=function(B){S(se,B);function se(z){g(this,se);var $=_(this,(se.__proto__||Object.getPrototypeOf(se)).call(this,z));return $.getEchartsInstance=function(){return $.echartsLib.getInstanceByDom($.echartsElement)||$.echartsLib.init($.echartsElement,$.props.theme,$.props.opts)},$.dispose=function(){if($.echartsElement){try{(0,o.clear)($.echartsElement)}catch(G){console.warn(G)}$.echartsLib.dispose($.echartsElement)}},$.rerender=function(){var G=$.props,X=G.onEvents,L=G.onChartReady,D=$.renderEchartDom();$.bindEvents(D,X||{}),typeof L=="function"&&$.props.onChartReady(D),$.echartsElement&&(0,o.bind)($.echartsElement,function(){try{D.resize()}catch(Y){console.warn(Y)}})},$.bindEvents=function(G,X){var L=function(j,xe){typeof j=="string"&&typeof xe=="function"&&G.on(j,function(Ce){xe(Ce,G)})};for(var D in X)Object.prototype.hasOwnProperty.call(X,D)&&L(D,X[D])},$.renderEchartDom=function(){var G=$.getEchartsInstance();return G.setOption($.props.option,$.props.notMerge||!1,$.props.lazyUpdate||!1),$.props.showLoading?G.showLoading($.props.loadingOption||null):G.hideLoading(),G},$.echartsLib=z.echarts,$.echartsElement=null,$}return K(se,[{key:"componentDidMount",value:function(){this.rerender()}},{key:"componentDidUpdate",value:function($){if(!(typeof this.props.shouldSetOption=="function"&&!this.props.shouldSetOption($,this.props))){if(!(0,re.default)($.theme,this.props.theme)||!(0,re.default)($.opts,this.props.opts)||!(0,re.default)($.onEvents,this.props.onEvents)){this.dispose(),this.rerender();return}var G=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if(!(0,re.default)((0,I.pick)(this.props,G),(0,I.pick)($,G))){var X=this.renderEchartDom();if(!(0,re.default)($.style,this.props.style)||!(0,re.default)($.className,this.props.className))try{X.resize()}catch(L){console.warn(L)}}}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var $=this,G=this.props,X=G.style,L=G.className,D=O({height:300},X);return ce.default.createElement("div",{ref:function(j){$.echartsElement=j},style:D,className:"echarts-for-react "+L})}}]),se}(q.Component);Ze.default=T,T.propTypes={option:m.default.object.isRequired,echarts:m.default.object,notMerge:m.default.bool,lazyUpdate:m.default.bool,style:m.default.object,className:m.default.string,theme:m.default.oneOfType([m.default.string,m.default.object]),onChartReady:m.default.func,showLoading:m.default.bool,loadingOption:m.default.object,onEvents:m.default.object,opts:m.default.shape({devicePixelRatio:m.default.number,renderer:m.default.oneOf(["canvas","svg"]),width:m.default.oneOfType([m.default.number,m.default.oneOf([null,void 0,"auto"])]),height:m.default.oneOfType([m.default.number,m.default.oneOf([null,void 0,"auto"])])}),shouldSetOption:m.default.func},T.defaultProps={echarts:{},notMerge:!1,lazyUpdate:!1,style:{},className:"",theme:null,onChartReady:function(){},showLoading:!1,loadingOption:null,onEvents:{},opts:{},shouldSetOption:function(){return!0}}},42441:function(Xt,Ze,p){"use strict";var O;O={value:!0},Ze.Z=void 0;var K=p(76411),q=m(K),ce=p(97774),A=m(ce);function m(k){return k&&k.__esModule?k:{default:k}}function w(k,g){if(!(k instanceof g))throw new TypeError("Cannot call a class as a function")}function re(k,g){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:k}function o(k,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);k.prototype=Object.create(g&&g.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(k,g):k.__proto__=g)}var I=function(k){o(g,k);function g(_){w(this,g);var S=re(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,_));return S.echartsLib=q.default,S}return g}(A.default);Ze.Z=I},65429:function(Xt,Ze){"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});var p=Ze.pick=function(K,q){var ce={};return q.forEach(function(A){ce[A]=K[A]}),ce}},53291:function(Xt){"use strict";var Ze=Array.isArray,p=Object.keys,O=Object.prototype.hasOwnProperty;Xt.exports=function K(q,ce){if(q===ce)return!0;if(q&&ce&&typeof q=="object"&&typeof ce=="object"){var A=Ze(q),m=Ze(ce),w,re,o;if(A&&m){if(re=q.length,re!=ce.length)return!1;for(w=re;w--!==0;)if(!K(q[w],ce[w]))return!1;return!0}if(A!=m)return!1;var I=q instanceof Date,k=ce instanceof Date;if(I!=k)return!1;if(I&&k)return q.getTime()==ce.getTime();var g=q instanceof RegExp,_=ce instanceof RegExp;if(g!=_)return!1;if(g&&_)return q.toString()==ce.toString();var S=p(q);if(re=S.length,re!==p(ce).length)return!1;for(w=re;w--!==0;)if(!O.call(ce,S[w]))return!1;for(w=re;w--!==0;)if(o=S[w],!K(q[o],ce[o]))return!1;return!0}return q!==q&&ce!==ce}},53184:function(Xt,Ze,p){"use strict";var O,K;function q(ce,A,m){var w=function(re,o){return ce.js_beautify(re,o)};return w.js=ce.js_beautify,w.css=A.css_beautify,w.html=m.html_beautify,w.js_beautify=ce.js_beautify,w.css_beautify=A.css_beautify,w.html_beautify=m.html_beautify,w}O=[p(58553),p(87804),p(40998)],K=function(ce,A,m){return q(ce,A,m)}.apply(Ze,O),K!==void 0&&(Xt.exports=K)},87804:function(Xt,Ze){var p,O;(function(){var K;(function(){"use strict";var ce=[,,function(re){function o(g){this.__parent=g,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 g=new o(this.__parent);return g.set_indent(this.__indent_count,this.__alignment_count),g},o.prototype.item=function(g){return g<0?this.__items[this.__items.length+g]:this.__items[g]},o.prototype.has_match=function(g){for(var _=this.__items.length-1;_>=0;_--)if(this.__items[_].match(g))return!0;return!1},o.prototype.set_indent=function(g,_){this.is_empty()&&(this.__indent_count=g||0,this.__alignment_count=_||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},o.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},o.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},o.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var g=this.__parent.current_line;return g.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),g.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),g.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,g.__items[0]===" "&&(g.__items.splice(0,1),g.__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(g){this.__items.push(g);var _=g.lastIndexOf(`
|
|
|
`);_!==-1?this.__character_count=g.length-_:this.__character_count+=g.length},o.prototype.pop=function(){var g=null;return this.is_empty()||(g=this.__items.pop(),this.__character_count-=g.length),g},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 g="";return this.is_empty()?this.__parent.indent_empty_lines&&(g=this.__parent.get_indent_string(this.__indent_count)):(g=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),g+=this.__items.join("")),g};function I(g,_){this.__cache=[""],this.__indent_size=g.indent_size,this.__indent_string=g.indent_char,g.indent_with_tabs||(this.__indent_string=new Array(g.indent_size+1).join(g.indent_char)),_=_||"",g.indent_level>0&&(_=new Array(g.indent_level+1).join(this.__indent_string)),this.__base_string=_,this.__base_string_length=_.length}I.prototype.get_indent_size=function(g,_){var S=this.__base_string_length;return _=_||0,g<0&&(S=0),S+=g*this.__indent_size,S+=_,S},I.prototype.get_indent_string=function(g,_){var S=this.__base_string;return _=_||0,g<0&&(g=0,S=""),_+=g*this.__indent_size,this.__ensure_cache(_),S+=this.__cache[_],S},I.prototype.__ensure_cache=function(g){for(;g>=this.__cache.length;)this.__add_column()},I.prototype.__add_column=function(){var g=this.__cache.length,_=0,S="";this.__indent_size&&g>=this.__indent_size&&(_=Math.floor(g/this.__indent_size),g-=_*this.__indent_size,S=new Array(_+1).join(this.__indent_string)),g&&(S+=new Array(g+1).join(" ")),this.__cache.push(S)};function k(g,_){this.__indent_cache=new I(g,_),this.raw=!1,this._end_with_newline=g.end_with_newline,this.indent_size=g.indent_size,this.wrap_line_length=g.wrap_line_length,this.indent_empty_lines=g.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()}k.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},k.prototype.get_line_number=function(){return this.__lines.length},k.prototype.get_indent_string=function(g,_){return this.__indent_cache.get_indent_string(g,_)},k.prototype.get_indent_size=function(g,_){return this.__indent_cache.get_indent_size(g,_)},k.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},k.prototype.add_new_line=function(g){return this.is_empty()||!g&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},k.prototype.get_code=function(g){this.trim(!0);var _=this.current_line.pop();_&&(_[_.length-1]===`
|
|
|
`&&(_=_.replace(/\n+$/g,"")),this.current_line.push(_)),this._end_with_newline&&this.__add_outputline();var S=this.__lines.join(`
|
|
|
`);return g!==`
|
|
|
`&&(S=S.replace(/[\n]/g,g)),S},k.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},k.prototype.set_indent=function(g,_){return g=g||0,_=_||0,this.next_line.set_indent(g,_),this.__lines.length>1?(this.current_line.set_indent(g,_),!0):(this.current_line.set_indent(),!1)},k.prototype.add_raw_token=function(g){for(var _=0;_<g.newlines;_++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(g.whitespace_before),this.current_line.push(g.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},k.prototype.add_token=function(g){this.__add_space_before_token(),this.current_line.push(g),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},k.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(" "))},k.prototype.remove_indent=function(g){for(var _=this.__lines.length;g<_;)this.__lines[g]._remove_indent(),g++;this.current_line._remove_wrap_indent()},k.prototype.trim=function(g){for(g=g===void 0?!1:g,this.current_line.trim();g&&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},k.prototype.just_added_newline=function(){return this.current_line.is_empty()},k.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},k.prototype.ensure_empty_line_above=function(g,_){for(var S=this.__lines.length-2;S>=0;){var T=this.__lines[S];if(T.is_empty())break;if(T.item(0).indexOf(g)!==0&&T.item(-1)!==_){this.__lines.splice(S+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}S--}},re.exports.Output=k},,,,function(re){function o(g,_){this.raw_options=I(g,_),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(g,_){var S=this.raw_options[g],T=_||[];return typeof S=="object"?S!==null&&typeof S.concat=="function"&&(T=S.concat()):typeof S=="string"&&(T=S.split(/[^a-zA-Z0-9_\/\-]+/)),T},o.prototype._get_boolean=function(g,_){var S=this.raw_options[g],T=S===void 0?!!_:!!S;return T},o.prototype._get_characters=function(g,_){var S=this.raw_options[g],T=_||"";return typeof S=="string"&&(T=S.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),T},o.prototype._get_number=function(g,_){var S=this.raw_options[g];_=parseInt(_,10),isNaN(_)&&(_=0);var T=parseInt(S,10);return isNaN(T)&&(T=_),T},o.prototype._get_selection=function(g,_,S){var T=this._get_selection_list(g,_,S);if(T.length!==1)throw new Error("Invalid Option Value: The option '"+g+`' can only be one of the following values:
|
|
|
`+_+`
|
|
|
You passed in: '`+this.raw_options[g]+"'");return T[0]},o.prototype._get_selection_list=function(g,_,S){if(!_||_.length===0)throw new Error("Selection list cannot be empty.");if(S=S||[_[0]],!this._is_valid_selection(S,_))throw new Error("Invalid Default Value!");var T=this._get_array(g,S);if(!this._is_valid_selection(T,_))throw new Error("Invalid Option Value: The option '"+g+`' can contain only the following values:
|
|
|
`+_+`
|
|
|
You passed in: '`+this.raw_options[g]+"'");return T},o.prototype._is_valid_selection=function(g,_){return g.length&&_.length&&!g.some(function(S){return _.indexOf(S)===-1})};function I(g,_){var S={};g=k(g);var T;for(T in g)T!==_&&(S[T]=g[T]);if(_&&g[_])for(T in g[_])S[T]=g[_][T];return S}function k(g){var _={},S;for(S in g){var T=S.replace(/-/g,"_");_[T]=g[S]}return _}re.exports.Options=o,re.exports.normalizeOpts=k,re.exports.mergeOpts=I},,function(re){var o=RegExp.prototype.hasOwnProperty("sticky");function I(k){this.__input=k||"",this.__input_length=this.__input.length,this.__position=0}I.prototype.restart=function(){this.__position=0},I.prototype.back=function(){this.__position>0&&(this.__position-=1)},I.prototype.hasNext=function(){return this.__position<this.__input_length},I.prototype.next=function(){var k=null;return this.hasNext()&&(k=this.__input.charAt(this.__position),this.__position+=1),k},I.prototype.peek=function(k){var g=null;return k=k||0,k+=this.__position,k>=0&&k<this.__input_length&&(g=this.__input.charAt(k)),g},I.prototype.__match=function(k,g){k.lastIndex=g;var _=k.exec(this.__input);return _&&!(o&&k.sticky)&&_.index!==g&&(_=null),_},I.prototype.test=function(k,g){return g=g||0,g+=this.__position,g>=0&&g<this.__input_length?!!this.__match(k,g):!1},I.prototype.testChar=function(k,g){var _=this.peek(g);return k.lastIndex=0,_!==null&&k.test(_)},I.prototype.match=function(k){var g=this.__match(k,this.__position);return g?this.__position+=g[0].length:g=null,g},I.prototype.read=function(k,g,_){var S="",T;return k&&(T=this.match(k),T&&(S+=T[0])),g&&(T||!k)&&(S+=this.readUntil(g,_)),S},I.prototype.readUntil=function(k,g){var _="",S=this.__position;k.lastIndex=this.__position;var T=k.exec(this.__input);return T?(S=T.index,g&&(S+=T[0].length)):S=this.__input_length,_=this.__input.substring(this.__position,S),this.__position=S,_},I.prototype.readUntilAfter=function(k){return this.readUntil(k,!0)},I.prototype.get_regexp=function(k,g){var _=null,S="g";return g&&o&&(S="y"),typeof k=="string"&&k!==""?_=new RegExp(k,S):k&&(_=new RegExp(k.source,S)),_},I.prototype.get_literal_regexp=function(k){return RegExp(k.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},I.prototype.peekUntilAfter=function(k){var g=this.__position,_=this.readUntilAfter(k);return this.__position=g,_},I.prototype.lookBack=function(k){var g=this.__position-1;return g>=k.length&&this.__input.substring(g-k.length,g).toLowerCase()===k},re.exports.InputScanner=I},,,,,function(re){function o(I,k){I=typeof I=="string"?I:I.source,k=typeof k=="string"?k:k.source,this.__directives_block_pattern=new RegExp(I+/ beautify( \w+[:]\w+)+ /.source+k,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(I+/\sbeautify\signore:end\s/.source+k,"g")}o.prototype.get_directives=function(I){if(!I.match(this.__directives_block_pattern))return null;var k={};this.__directive_pattern.lastIndex=0;for(var g=this.__directive_pattern.exec(I);g;)k[g[1]]=g[2],g=this.__directive_pattern.exec(I);return k},o.prototype.readIgnored=function(I){return I.readUntilAfter(this.__directives_end_ignore_pattern)},re.exports.Directives=o},,function(re,o,I){var k=I(16).Beautifier,g=I(17).Options;function _(S,T){var B=new k(S,T);return B.beautify()}re.exports=_,re.exports.defaultOptions=function(){return new g}},function(re,o,I){var k=I(17).Options,g=I(2).Output,_=I(8).InputScanner,S=I(13).Directives,T=new S(/\/\*/,/\*\//),B=/\r\n|[\r\n]/,se=/\r\n|[\r\n]/g,z=/\s/,$=/(?:\s|\n)+/g,G=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,X=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function L(D,Y){this._source_text=D||"",this._options=new k(Y),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"]}L.prototype.eatString=function(D){var Y="";for(this._ch=this._input.next();this._ch;){if(Y+=this._ch,this._ch==="\\")Y+=this._input.next();else if(D.indexOf(this._ch)!==-1||this._ch===`
|
|
|
`)break;this._ch=this._input.next()}return Y},L.prototype.eatWhitespace=function(D){for(var Y=z.test(this._input.peek()),j=0;z.test(this._input.peek());)this._ch=this._input.next(),D&&this._ch===`
|
|
|
`&&(j===0||j<this._options.max_preserve_newlines)&&(j++,this._output.add_new_line(!0));return Y},L.prototype.foundNestedPseudoClass=function(){for(var D=0,Y=1,j=this._input.peek(Y);j;){if(j==="{")return!0;if(j==="(")D+=1;else if(j===")"){if(D===0)return!1;D-=1}else if(j===";"||j==="}")return!1;Y++,j=this._input.peek(Y)}return!1},L.prototype.print_string=function(D){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(D)},L.prototype.preserveSingleSpace=function(D){D&&(this._output.space_before_token=!0)},L.prototype.indent=function(){this._indentLevel++},L.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},L.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var D=this._source_text,Y=this._options.eol;Y==="auto"&&(Y=`
|
|
|
`,D&&B.test(D||"")&&(Y=D.match(B)[0])),D=D.replace(se,`
|
|
|
`);var j=D.match(/^[\t ]*/)[0];this._output=new g(this._options,j),this._input=new _(D),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var xe=0,Ce=!1,Ee=!1,ge=!1,de=!1,W=!1,be=this._ch,N=!1,ue,J,v;ue=this._input.read($),J=ue!=="",v=be,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),be=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var x=this._input.read(G),Z=T.get_directives(x);Z&&Z.ignore==="start"&&(x+=T.readIgnored(this._input)),this.print_string(x),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(X)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(J),this.print_string(this._ch);var me=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);me.match(/[ :]$/)&&(me=this.eatString(": ").replace(/\s+$/,""),this.print_string(me),this._output.space_before_token=!0),xe===0&&me.indexOf(":")!==-1&&(Ee=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(J),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var Be=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);Be.match(/[ :]$/)&&(Be=this.eatString(": ").replace(/\s+$/,""),this.print_string(Be),this._output.space_before_token=!0),xe===0&&Be.indexOf(":")!==-1?(Ee=!0,this.indent()):Be in this.NESTED_AT_RULE?(this._nestedLevel+=1,Be in this.CONDITIONAL_GROUP_RULE&&(ge=!0)):xe===0&&!Ee&&(de=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(J),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")Ee&&(Ee=!1,this.outdent()),de=!1,ge?(ge=!1,Ce=this._indentLevel>=this._nestedLevel):Ce=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&Ce&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(v==="("?this._output.space_before_token=!1:v!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),v==="{"&&this._output.trim(!0),Ee&&(this.outdent(),Ee=!1),this.print_string(this._ch),Ce=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var Ue=0;Ue<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;Ue++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[Ue])){N=!0;break}(Ce||ge)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!de&&xe===0?(this.print_string(":"),Ee||(Ee=!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 ze=v==='"'||v==="'";this.preserveSingleSpace(ze||J),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")N=!1,xe===0?(Ee&&(this.outdent(),Ee=!1),de=!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(),xe++,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(")")),xe&&(xe--,this.outdent()));else{var qe=!1;this._input.lookBack("with")&&(qe=!0),this.preserveSingleSpace(J||qe),this.print_string(this._ch),Ee&&v==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),W=!0):(this.eatWhitespace(),xe++,this.indent())}else if(this._ch===")")xe&&(xe--,this.outdent()),W&&this._input.peek()===";"&&this._options.selector_separator_newline&&(W=!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&&(!Ee||W)&&xe===0&&!de?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!Ee&&xe===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&&z.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(J),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),z.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var mt=v==='"'||v==="'";this.preserveSingleSpace(mt||J),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
|
`&&N&&this._output.add_new_line()}var gt=this._output.get_code(Y);return gt},re.exports.Beautifier=L},function(re,o,I){var k=I(6).Options;function g(_){k.call(this,_,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var S=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||S;var T=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var B=0;B<T.length;B++)T[B]!=="expand"?this.brace_style="collapse":this.brace_style=T[B]}g.prototype=new k,re.exports.Options=g}],A={};function m(re){var o=A[re];if(o!==void 0)return o.exports;var I=A[re]={exports:{}};return ce[re](I,I.exports,m),I.exports}var w=m(15);K=w})();var q=K;p=[],O=function(){return{css_beautify:q}}.apply(Ze,p),O!==void 0&&(Xt.exports=O)})()},40998:function(Xt,Ze,p){var O,K;(function(){var q;(function(){"use strict";var w=[,,function(k){function g(T){this.__parent=T,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=[]}g.prototype.clone_empty=function(){var T=new g(this.__parent);return T.set_indent(this.__indent_count,this.__alignment_count),T},g.prototype.item=function(T){return T<0?this.__items[this.__items.length+T]:this.__items[T]},g.prototype.has_match=function(T){for(var B=this.__items.length-1;B>=0;B--)if(this.__items[B].match(T))return!0;return!1},g.prototype.set_indent=function(T,B){this.is_empty()&&(this.__indent_count=T||0,this.__alignment_count=B||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},g.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)},g.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},g.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var T=this.__parent.current_line;return T.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),T.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),T.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,T.__items[0]===" "&&(T.__items.splice(0,1),T.__character_count-=1),!0}return!1},g.prototype.is_empty=function(){return this.__items.length===0},g.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},g.prototype.push=function(T){this.__items.push(T);var B=T.lastIndexOf(`
|
|
|
`);B!==-1?this.__character_count=T.length-B:this.__character_count+=T.length},g.prototype.pop=function(){var T=null;return this.is_empty()||(T=this.__items.pop(),this.__character_count-=T.length),T},g.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},g.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},g.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},g.prototype.toString=function(){var T="";return this.is_empty()?this.__parent.indent_empty_lines&&(T=this.__parent.get_indent_string(this.__indent_count)):(T=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),T+=this.__items.join("")),T};function _(T,B){this.__cache=[""],this.__indent_size=T.indent_size,this.__indent_string=T.indent_char,T.indent_with_tabs||(this.__indent_string=new Array(T.indent_size+1).join(T.indent_char)),B=B||"",T.indent_level>0&&(B=new Array(T.indent_level+1).join(this.__indent_string)),this.__base_string=B,this.__base_string_length=B.length}_.prototype.get_indent_size=function(T,B){var se=this.__base_string_length;return B=B||0,T<0&&(se=0),se+=T*this.__indent_size,se+=B,se},_.prototype.get_indent_string=function(T,B){var se=this.__base_string;return B=B||0,T<0&&(T=0,se=""),B+=T*this.__indent_size,this.__ensure_cache(B),se+=this.__cache[B],se},_.prototype.__ensure_cache=function(T){for(;T>=this.__cache.length;)this.__add_column()},_.prototype.__add_column=function(){var T=this.__cache.length,B=0,se="";this.__indent_size&&T>=this.__indent_size&&(B=Math.floor(T/this.__indent_size),T-=B*this.__indent_size,se=new Array(B+1).join(this.__indent_string)),T&&(se+=new Array(T+1).join(" ")),this.__cache.push(se)};function S(T,B){this.__indent_cache=new _(T,B),this.raw=!1,this._end_with_newline=T.end_with_newline,this.indent_size=T.indent_size,this.wrap_line_length=T.wrap_line_length,this.indent_empty_lines=T.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new g(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}S.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},S.prototype.get_line_number=function(){return this.__lines.length},S.prototype.get_indent_string=function(T,B){return this.__indent_cache.get_indent_string(T,B)},S.prototype.get_indent_size=function(T,B){return this.__indent_cache.get_indent_size(T,B)},S.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},S.prototype.add_new_line=function(T){return this.is_empty()||!T&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},S.prototype.get_code=function(T){this.trim(!0);var B=this.current_line.pop();B&&(B[B.length-1]===`
|
|
|
`&&(B=B.replace(/\n+$/g,"")),this.current_line.push(B)),this._end_with_newline&&this.__add_outputline();var se=this.__lines.join(`
|
|
|
`);return T!==`
|
|
|
`&&(se=se.replace(/[\n]/g,T)),se},S.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},S.prototype.set_indent=function(T,B){return T=T||0,B=B||0,this.next_line.set_indent(T,B),this.__lines.length>1?(this.current_line.set_indent(T,B),!0):(this.current_line.set_indent(),!1)},S.prototype.add_raw_token=function(T){for(var B=0;B<T.newlines;B++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(T.whitespace_before),this.current_line.push(T.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},S.prototype.add_token=function(T){this.__add_space_before_token(),this.current_line.push(T),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},S.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(" "))},S.prototype.remove_indent=function(T){for(var B=this.__lines.length;T<B;)this.__lines[T]._remove_indent(),T++;this.current_line._remove_wrap_indent()},S.prototype.trim=function(T){for(T=T===void 0?!1:T,this.current_line.trim();T&&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},S.prototype.just_added_newline=function(){return this.current_line.is_empty()},S.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},S.prototype.ensure_empty_line_above=function(T,B){for(var se=this.__lines.length-2;se>=0;){var z=this.__lines[se];if(z.is_empty())break;if(z.item(0).indexOf(T)!==0&&z.item(-1)!==B){this.__lines.splice(se+1,0,new g(this)),this.previous_line=this.__lines[this.__lines.length-2];break}se--}},k.exports.Output=S},function(k){function g(_,S,T,B){this.type=_,this.text=S,this.comments_before=null,this.newlines=T||0,this.whitespace_before=B||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}k.exports.Token=g},,,function(k){function g(T,B){this.raw_options=_(T,B),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}g.prototype._get_array=function(T,B){var se=this.raw_options[T],z=B||[];return typeof se=="object"?se!==null&&typeof se.concat=="function"&&(z=se.concat()):typeof se=="string"&&(z=se.split(/[^a-zA-Z0-9_\/\-]+/)),z},g.prototype._get_boolean=function(T,B){var se=this.raw_options[T],z=se===void 0?!!B:!!se;return z},g.prototype._get_characters=function(T,B){var se=this.raw_options[T],z=B||"";return typeof se=="string"&&(z=se.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),z},g.prototype._get_number=function(T,B){var se=this.raw_options[T];B=parseInt(B,10),isNaN(B)&&(B=0);var z=parseInt(se,10);return isNaN(z)&&(z=B),z},g.prototype._get_selection=function(T,B,se){var z=this._get_selection_list(T,B,se);if(z.length!==1)throw new Error("Invalid Option Value: The option '"+T+`' can only be one of the following values:
|
|
|
`+B+`
|
|
|
You passed in: '`+this.raw_options[T]+"'");return z[0]},g.prototype._get_selection_list=function(T,B,se){if(!B||B.length===0)throw new Error("Selection list cannot be empty.");if(se=se||[B[0]],!this._is_valid_selection(se,B))throw new Error("Invalid Default Value!");var z=this._get_array(T,se);if(!this._is_valid_selection(z,B))throw new Error("Invalid Option Value: The option '"+T+`' can contain only the following values:
|
|
|
`+B+`
|
|
|
You passed in: '`+this.raw_options[T]+"'");return z},g.prototype._is_valid_selection=function(T,B){return T.length&&B.length&&!T.some(function(se){return B.indexOf(se)===-1})};function _(T,B){var se={};T=S(T);var z;for(z in T)z!==B&&(se[z]=T[z]);if(B&&T[B])for(z in T[B])se[z]=T[B][z];return se}function S(T){var B={},se;for(se in T){var z=se.replace(/-/g,"_");B[z]=T[se]}return B}k.exports.Options=g,k.exports.normalizeOpts=S,k.exports.mergeOpts=_},,function(k){var g=RegExp.prototype.hasOwnProperty("sticky");function _(S){this.__input=S||"",this.__input_length=this.__input.length,this.__position=0}_.prototype.restart=function(){this.__position=0},_.prototype.back=function(){this.__position>0&&(this.__position-=1)},_.prototype.hasNext=function(){return this.__position<this.__input_length},_.prototype.next=function(){var S=null;return this.hasNext()&&(S=this.__input.charAt(this.__position),this.__position+=1),S},_.prototype.peek=function(S){var T=null;return S=S||0,S+=this.__position,S>=0&&S<this.__input_length&&(T=this.__input.charAt(S)),T},_.prototype.__match=function(S,T){S.lastIndex=T;var B=S.exec(this.__input);return B&&!(g&&S.sticky)&&B.index!==T&&(B=null),B},_.prototype.test=function(S,T){return T=T||0,T+=this.__position,T>=0&&T<this.__input_length?!!this.__match(S,T):!1},_.prototype.testChar=function(S,T){var B=this.peek(T);return S.lastIndex=0,B!==null&&S.test(B)},_.prototype.match=function(S){var T=this.__match(S,this.__position);return T?this.__position+=T[0].length:T=null,T},_.prototype.read=function(S,T,B){var se="",z;return S&&(z=this.match(S),z&&(se+=z[0])),T&&(z||!S)&&(se+=this.readUntil(T,B)),se},_.prototype.readUntil=function(S,T){var B="",se=this.__position;S.lastIndex=this.__position;var z=S.exec(this.__input);return z?(se=z.index,T&&(se+=z[0].length)):se=this.__input_length,B=this.__input.substring(this.__position,se),this.__position=se,B},_.prototype.readUntilAfter=function(S){return this.readUntil(S,!0)},_.prototype.get_regexp=function(S,T){var B=null,se="g";return T&&g&&(se="y"),typeof S=="string"&&S!==""?B=new RegExp(S,se):S&&(B=new RegExp(S.source,se)),B},_.prototype.get_literal_regexp=function(S){return RegExp(S.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},_.prototype.peekUntilAfter=function(S){var T=this.__position,B=this.readUntilAfter(S);return this.__position=T,B},_.prototype.lookBack=function(S){var T=this.__position-1;return T>=S.length&&this.__input.substring(T-S.length,T).toLowerCase()===S},k.exports.InputScanner=_},function(k,g,_){var S=_(8).InputScanner,T=_(3).Token,B=_(10).TokenStream,se=_(11).WhitespacePattern,z={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},$=function(G,X){this._input=new S(G),this._options=X||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new se(this._input)};$.prototype.tokenize=function(){this._input.restart(),this.__tokens=new B,this._reset();for(var G,X=new T(z.START,""),L=null,D=[],Y=new B;X.type!==z.EOF;){for(G=this._get_next_token(X,L);this._is_comment(G);)Y.add(G),G=this._get_next_token(X,L);Y.isEmpty()||(G.comments_before=Y,Y=new B),G.parent=L,this._is_opening(G)?(D.push(L),L=G):L&&this._is_closing(G,L)&&(G.opened=L,L.closed=G,L=D.pop(),G.parent=L),G.previous=X,X.next=G,this.__tokens.add(G),X=G}return this.__tokens},$.prototype._is_first_token=function(){return this.__tokens.isEmpty()},$.prototype._reset=function(){},$.prototype._get_next_token=function(G,X){this._readWhitespace();var L=this._input.read(/.+/g);return L?this._create_token(z.RAW,L):this._create_token(z.EOF,"")},$.prototype._is_comment=function(G){return!1},$.prototype._is_opening=function(G){return!1},$.prototype._is_closing=function(G,X){return!1},$.prototype._create_token=function(G,X){var L=new T(G,X,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return L},$.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},k.exports.Tokenizer=$,k.exports.TOKEN=z},function(k){function g(_){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=_}g.prototype.restart=function(){this.__position=0},g.prototype.isEmpty=function(){return this.__tokens_length===0},g.prototype.hasNext=function(){return this.__position<this.__tokens_length},g.prototype.next=function(){var _=null;return this.hasNext()&&(_=this.__tokens[this.__position],this.__position+=1),_},g.prototype.peek=function(_){var S=null;return _=_||0,_+=this.__position,_>=0&&_<this.__tokens_length&&(S=this.__tokens[_]),S},g.prototype.add=function(_){this.__parent_token&&(_.parent=this.__parent_token),this.__tokens.push(_),this.__tokens_length+=1},k.exports.TokenStream=g},function(k,g,_){var S=_(12).Pattern;function T(B,se){S.call(this,B,se),se?this._line_regexp=this._input.get_regexp(se._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}T.prototype=new S,T.prototype.__set_whitespace_patterns=function(B,se){B+="\\t ",se+="\\n\\r",this._match_pattern=this._input.get_regexp("["+B+se+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+se+"]")},T.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var B=this._input.read(this._match_pattern);if(B===" ")this.whitespace_before_token=" ";else if(B){var se=this.__split(this._newline_regexp,B);this.newline_count=se.length-1,this.whitespace_before_token=se[this.newline_count]}return B},T.prototype.matching=function(B,se){var z=this._create();return z.__set_whitespace_patterns(B,se),z._update(),z},T.prototype._create=function(){return new T(this._input,this)},T.prototype.__split=function(B,se){B.lastIndex=0;for(var z=0,$=[],G=B.exec(se);G;)$.push(se.substring(z,G.index)),z=G.index+G[0].length,G=B.exec(se);return z<se.length?$.push(se.substring(z,se.length)):$.push(""),$},k.exports.WhitespacePattern=T},function(k){function g(_,S){this._input=_,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,S&&(this._starting_pattern=this._input.get_regexp(S._starting_pattern,!0),this._match_pattern=this._input.get_regexp(S._match_pattern,!0),this._until_pattern=this._input.get_regexp(S._until_pattern),this._until_after=S._until_after)}g.prototype.read=function(){var _=this._input.read(this._starting_pattern);return(!this._starting_pattern||_)&&(_+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),_},g.prototype.read_match=function(){return this._input.match(this._match_pattern)},g.prototype.until_after=function(_){var S=this._create();return S._until_after=!0,S._until_pattern=this._input.get_regexp(_),S._update(),S},g.prototype.until=function(_){var S=this._create();return S._until_after=!1,S._until_pattern=this._input.get_regexp(_),S._update(),S},g.prototype.starting_with=function(_){var S=this._create();return S._starting_pattern=this._input.get_regexp(_,!0),S._update(),S},g.prototype.matching=function(_){var S=this._create();return S._match_pattern=this._input.get_regexp(_,!0),S._update(),S},g.prototype._create=function(){return new g(this._input,this)},g.prototype._update=function(){},k.exports.Pattern=g},function(k){function g(_,S){_=typeof _=="string"?_:_.source,S=typeof S=="string"?S:S.source,this.__directives_block_pattern=new RegExp(_+/ beautify( \w+[:]\w+)+ /.source+S,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(_+/\sbeautify\signore:end\s/.source+S,"g")}g.prototype.get_directives=function(_){if(!_.match(this.__directives_block_pattern))return null;var S={};this.__directive_pattern.lastIndex=0;for(var T=this.__directive_pattern.exec(_);T;)S[T[1]]=T[2],T=this.__directive_pattern.exec(_);return S},g.prototype.readIgnored=function(_){return _.readUntilAfter(this.__directives_end_ignore_pattern)},k.exports.Directives=g},function(k,g,_){var S=_(12).Pattern,T={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function B(se,z){S.call(this,se,z),this.__template_pattern=null,this._disabled=Object.assign({},T),this._excluded=Object.assign({},T),z&&(this.__template_pattern=this._input.get_regexp(z.__template_pattern),this._excluded=Object.assign(this._excluded,z._excluded),this._disabled=Object.assign(this._disabled,z._disabled));var $=new S(se);this.__patterns={handlebars_comment:$.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:$.starting_with(/{{{/).until_after(/}}}/),handlebars:$.starting_with(/{{/).until_after(/}}/),php:$.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:$.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:$.starting_with(/{%/).until_after(/%}/),django_value:$.starting_with(/{{/).until_after(/}}/),django_comment:$.starting_with(/{#/).until_after(/#}/),smarty:$.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:$.starting_with(/{\*/).until_after(/\*}/),smarty_literal:$.starting_with(/{literal}/).until_after(/{\/literal}/)}}B.prototype=new S,B.prototype._create=function(){return new B(this._input,this)},B.prototype._update=function(){this.__set_templated_pattern()},B.prototype.disable=function(se){var z=this._create();return z._disabled[se]=!0,z._update(),z},B.prototype.read_options=function(se){var z=this._create();for(var $ in T)z._disabled[$]=se.templating.indexOf($)===-1;return z._update(),z},B.prototype.exclude=function(se){var z=this._create();return z._excluded[se]=!0,z._update(),z},B.prototype.read=function(){var se="";this._match_pattern?se=this._input.read(this._starting_pattern):se=this._input.read(this._starting_pattern,this.__template_pattern);for(var z=this._read_template();z;)this._match_pattern?z+=this._input.read(this._match_pattern):z+=this._input.readUntil(this.__template_pattern),se+=z,z=this._read_template();return this._until_after&&(se+=this._input.readUntilAfter(this._until_pattern)),se},B.prototype.__set_templated_pattern=function(){var se=[];this._disabled.php||se.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||se.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||se.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||se.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(se.push(this.__patterns.django._starting_pattern.source),se.push(this.__patterns.django_value._starting_pattern.source),se.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||se.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&se.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+se.join("|")+")")},B.prototype._read_template=function(){var se="",z=this._input.peek();if(z==="<"){var $=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&$==="?"&&(se=se||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&$==="%"&&(se=se||this.__patterns.erb.read())}else z==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(se=se||this.__patterns.handlebars_comment.read(),se=se||this.__patterns.handlebars_unescaped.read(),se=se||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(se=se||this.__patterns.django_value.read()),this._excluded.django||(se=se||this.__patterns.django_comment.read(),se=se||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(se=se||this.__patterns.smarty_comment.read(),se=se||this.__patterns.smarty_literal.read(),se=se||this.__patterns.smarty.read()));return se},k.exports.TemplatablePattern=B},,,,function(k,g,_){var S=_(19).Beautifier,T=_(20).Options;function B(se,z,$,G){var X=new S(se,z,$,G);return X.beautify()}k.exports=B,k.exports.defaultOptions=function(){return new T}},function(k,g,_){var S=_(20).Options,T=_(2).Output,B=_(21).Tokenizer,se=_(21).TOKEN,z=/\r\n|[\r\n]/,$=/\r\n|[\r\n]/g,G=function(de,W){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=de.max_preserve_newlines,this.preserve_newlines=de.preserve_newlines,this._output=new T(de,W)};G.prototype.current_line_has_match=function(de){return this._output.current_line.has_match(de)},G.prototype.set_space_before_token=function(de,W){this._output.space_before_token=de,this._output.non_breaking_space=W},G.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},G.prototype.add_raw_token=function(de){this._output.add_raw_token(de)},G.prototype.print_preserved_newlines=function(de){var W=0;de.type!==se.TEXT&&de.previous.type!==se.TEXT&&(W=de.newlines?1:0),this.preserve_newlines&&(W=de.newlines<this.max_preserve_newlines+1?de.newlines:this.max_preserve_newlines+1);for(var be=0;be<W;be++)this.print_newline(be>0);return W!==0},G.prototype.traverse_whitespace=function(de){return de.whitespace_before||de.newlines?(this.print_preserved_newlines(de)||(this._output.space_before_token=!0),!0):!1},G.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},G.prototype.print_newline=function(de){this._output.add_new_line(de)},G.prototype.print_token=function(de){de.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(de.text))},G.prototype.indent=function(){this.indent_level++},G.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},G.prototype.get_full_indent=function(de){return de=this.indent_level+(de||0),de<1?"":this._output.get_indent_string(de)};var X=function(de){for(var W=null,be=de.next;be.type!==se.EOF&&de.closed!==be;){if(be.type===se.ATTRIBUTE&&be.text==="type"){be.next&&be.next.type===se.EQUALS&&be.next.next&&be.next.next.type===se.VALUE&&(W=be.next.next.text);break}be=be.next}return W},L=function(de,W){var be=null,N=null;return W.closed?(de==="script"?be="text/javascript":de==="style"&&(be="text/css"),be=X(W)||be,be.search("text/css")>-1?N="css":be.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?N="javascript":be.search(/(text|application|dojo)\/(x-)?(html)/)>-1?N="html":be.search(/test\/null/)>-1&&(N="null"),N):null};function D(de,W){return W.indexOf(de)!==-1}function Y(de,W,be){this.parent=de||null,this.tag=W?W.tag_name:"",this.indent_level=be||0,this.parser_token=W||null}function j(de){this._printer=de,this._current_frame=null}j.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},j.prototype.record_tag=function(de){var W=new Y(this._current_frame,de,this._printer.indent_level);this._current_frame=W},j.prototype._try_pop_frame=function(de){var W=null;return de&&(W=de.parser_token,this._printer.indent_level=de.indent_level,this._current_frame=de.parent),W},j.prototype._get_frame=function(de,W){for(var be=this._current_frame;be&&de.indexOf(be.tag)===-1;){if(W&&W.indexOf(be.tag)!==-1){be=null;break}be=be.parent}return be},j.prototype.try_pop=function(de,W){var be=this._get_frame([de],W);return this._try_pop_frame(be)},j.prototype.indent_to_tag=function(de){var W=this._get_frame(de);W&&(this._printer.indent_level=W.indent_level)};function xe(de,W,be,N){this._source_text=de||"",W=W||{},this._js_beautify=be,this._css_beautify=N,this._tag_stack=null;var ue=new S(W,"html");this._options=ue,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}xe.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var de=this._source_text,W=this._options.eol;this._options.eol==="auto"&&(W=`
|
|
|
`,de&&z.test(de)&&(W=de.match(z)[0])),de=de.replace($,`
|
|
|
`);var be=de.match(/^[\t ]*/)[0],N={text:"",type:""},ue=new Ce(this._options),J=new G(this._options,be),v=new B(de,this._options).tokenize();this._tag_stack=new j(J);for(var x=null,Z=v.next();Z.type!==se.EOF;)Z.type===se.TAG_OPEN||Z.type===se.COMMENT?(x=this._handle_tag_open(J,Z,ue,N,v),ue=x):Z.type===se.ATTRIBUTE||Z.type===se.EQUALS||Z.type===se.VALUE||Z.type===se.TEXT&&!ue.tag_complete?x=this._handle_inside_tag(J,Z,ue,N):Z.type===se.TAG_CLOSE?x=this._handle_tag_close(J,Z,ue):Z.type===se.TEXT?x=this._handle_text(J,Z,ue):Z.type===se.CONTROL_FLOW_OPEN?x=this._handle_control_flow_open(J,Z):Z.type===se.CONTROL_FLOW_CLOSE?x=this._handle_control_flow_close(J,Z):J.add_raw_token(Z),N=x,Z=v.next();var me=J._output.get_code(W);return me},xe.prototype._handle_control_flow_open=function(de,W){var be={text:W.text,type:W.type};return de.set_space_before_token(W.newlines||W.whitespace_before!=="",!0),W.newlines?de.print_preserved_newlines(W):de.set_space_before_token(W.newlines||W.whitespace_before!=="",!0),de.print_token(W),de.indent(),be},xe.prototype._handle_control_flow_close=function(de,W){var be={text:W.text,type:W.type};return de.deindent(),W.newlines?de.print_preserved_newlines(W):de.set_space_before_token(W.newlines||W.whitespace_before!=="",!0),de.print_token(W),be},xe.prototype._handle_tag_close=function(de,W,be){var N={text:W.text,type:W.type};return de.alignment_size=0,be.tag_complete=!0,de.set_space_before_token(W.newlines||W.whitespace_before!=="",!0),be.is_unformatted?de.add_raw_token(W):(be.tag_start_char==="<"&&(de.set_space_before_token(W.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&be.has_wrapped_attrs&&de.print_newline(!1)),de.print_token(W)),be.indent_content&&!(be.is_unformatted||be.is_content_unformatted)&&(de.indent(),be.indent_content=!1),!be.is_inline_element&&!(be.is_unformatted||be.is_content_unformatted)&&de.set_wrap_point(),N},xe.prototype._handle_inside_tag=function(de,W,be,N){var ue=be.has_wrapped_attrs,J={text:W.text,type:W.type};return de.set_space_before_token(W.newlines||W.whitespace_before!=="",!0),be.is_unformatted?de.add_raw_token(W):be.tag_start_char==="{"&&W.type===se.TEXT?de.print_preserved_newlines(W)?(W.newlines=0,de.add_raw_token(W)):de.print_token(W):(W.type===se.ATTRIBUTE?de.set_space_before_token(!0):(W.type===se.EQUALS||W.type===se.VALUE&&W.previous.type===se.EQUALS)&&de.set_space_before_token(!1),W.type===se.ATTRIBUTE&&be.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(de.traverse_whitespace(W),ue=ue||W.newlines!==0),this._is_wrap_attributes_force&&be.attr_count>=this._options.wrap_attributes_min_attrs&&(N.type!==se.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(de.print_newline(!1),ue=!0)),de.print_token(W),ue=ue||de.previous_token_wrapped(),be.has_wrapped_attrs=ue),J},xe.prototype._handle_text=function(de,W,be){var N={text:W.text,type:"TK_CONTENT"};return be.custom_beautifier_name?this._print_custom_beatifier_text(de,W,be):be.is_unformatted||be.is_content_unformatted?de.add_raw_token(W):(de.traverse_whitespace(W),de.print_token(W)),N},xe.prototype._print_custom_beatifier_text=function(de,W,be){var N=this;if(W.text!==""){var ue=W.text,J,v=1,x="",Z="";be.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?J=this._js_beautify:be.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?J=this._css_beautify:be.custom_beautifier_name==="html"&&(J=function(mt,gt){var at=new xe(mt,gt,N._js_beautify,N._css_beautify);return at.beautify()}),this._options.indent_scripts==="keep"?v=0:this._options.indent_scripts==="separate"&&(v=-de.indent_level);var me=de.get_full_indent(v);if(ue=ue.replace(/\n[ \t]*$/,""),be.custom_beautifier_name!=="html"&&ue[0]==="<"&&ue.match(/^(<!--|<!\[CDATA\[)/)){var Be=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(ue);if(!Be){de.add_raw_token(W);return}x=me+Be[1]+`
|
|
|
`,ue=Be[4],Be[5]&&(Z=me+Be[5]),ue=ue.replace(/\n[ \t]*$/,""),(Be[2]||Be[3].indexOf(`
|
|
|
`)!==-1)&&(Be=Be[3].match(/[ \t]+$/),Be&&(W.whitespace_before=Be[0]))}if(ue)if(J){var Ue=function(){this.eol=`
|
|
|
`};Ue.prototype=this._options.raw_options;var ze=new Ue;ue=J(me+ue,ze)}else{var qe=W.whitespace_before;qe&&(ue=ue.replace(new RegExp(`
|
|
|
(`+qe+")?","g"),`
|
|
|
`)),ue=me+ue.replace(/\n/g,`
|
|
|
`+me)}x&&(ue?ue=x+ue+`
|
|
|
`+Z:ue=x+Z),de.print_newline(!1),ue&&(W.text=ue,W.whitespace_before="",W.newlines=0,de.add_raw_token(W),de.print_newline(!0))}},xe.prototype._handle_tag_open=function(de,W,be,N,ue){var J=this._get_tag_open_token(W);if((be.is_unformatted||be.is_content_unformatted)&&!be.is_empty_element&&W.type===se.TAG_OPEN&&!J.is_start_tag?(de.add_raw_token(W),J.start_tag_token=this._tag_stack.try_pop(J.tag_name)):(de.traverse_whitespace(W),this._set_tag_position(de,W,J,be,N),J.is_inline_element||de.set_wrap_point(),de.print_token(W)),J.is_start_tag&&this._is_wrap_attributes_force){var v=0,x;do x=ue.peek(v),x.type===se.ATTRIBUTE&&(J.attr_count+=1),v+=1;while(x.type!==se.EOF&&x.type!==se.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(J.alignment_size=W.text.length+1),!J.tag_complete&&!J.is_unformatted&&(de.alignment_size=J.alignment_size),J};var Ce=function(de,W,be){if(this.parent=W||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="",!be)this.tag_complete=!0;else{var N;this.tag_start_char=be.text[0],this.text=be.text,this.tag_start_char==="<"?(N=be.text.match(/^<([^\s>]*)/),this.tag_check=N?N[1]:""):(N=be.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=N?N[1]:"",(be.text.startsWith("{{#>")||be.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&be.next!==null?this.tag_check=be.next.text.split(" ")[0]:this.tag_check=be.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),be.type===se.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||be.closed&&be.closed.text==="/>";var ue=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(ue=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!de.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(ue)))}};xe.prototype._get_tag_open_token=function(de){var W=new Ce(this._options,this._tag_stack.get_parser_token(),de);return W.alignment_size=this._options.wrap_attributes_indent_size,W.is_end_tag=W.is_end_tag||D(W.tag_check,this._options.void_elements),W.is_empty_element=W.tag_complete||W.is_start_tag&&W.is_end_tag,W.is_unformatted=!W.tag_complete&&D(W.tag_check,this._options.unformatted),W.is_content_unformatted=!W.is_empty_element&&D(W.tag_check,this._options.content_unformatted),W.is_inline_element=D(W.tag_name,this._options.inline)||this._options.inline_custom_elements&&W.tag_name.includes("-")||W.tag_start_char==="{",W},xe.prototype._set_tag_position=function(de,W,be,N,ue){if(be.is_empty_element||(be.is_end_tag?be.start_tag_token=this._tag_stack.try_pop(be.tag_name):(this._do_optional_end_element(be)&&(be.is_inline_element||de.print_newline(!1)),this._tag_stack.record_tag(be),(be.tag_name==="script"||be.tag_name==="style")&&!(be.is_unformatted||be.is_content_unformatted)&&(be.custom_beautifier_name=L(be.tag_check,W)))),D(be.tag_check,this._options.extra_liners)&&(de.print_newline(!1),de._output.just_added_blankline()||de.print_newline(!0)),be.is_empty_element){if(be.tag_start_char==="{"&&be.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),be.indent_content=!0;var J=de.current_line_has_match(/{{#if/);J||de.print_newline(!1)}be.tag_name==="!--"&&ue.type===se.TAG_CLOSE&&N.is_end_tag&&be.text.indexOf(`
|
|
|
`)===-1||(be.is_inline_element||be.is_unformatted||de.print_newline(!1),this._calcluate_parent_multiline(de,be))}else if(be.is_end_tag){var v=!1;v=be.start_tag_token&&be.start_tag_token.multiline_content,v=v||!be.is_inline_element&&!(N.is_inline_element||N.is_unformatted)&&!(ue.type===se.TAG_CLOSE&&be.start_tag_token===N)&&ue.type!=="TK_CONTENT",(be.is_content_unformatted||be.is_unformatted)&&(v=!1),v&&de.print_newline(!1)}else be.indent_content=!be.custom_beautifier_name,be.tag_start_char==="<"&&(be.tag_name==="html"?be.indent_content=this._options.indent_inner_html:be.tag_name==="head"?be.indent_content=this._options.indent_head_inner_html:be.tag_name==="body"&&(be.indent_content=this._options.indent_body_inner_html)),!(be.is_inline_element||be.is_unformatted)&&(ue.type!=="TK_CONTENT"||be.is_content_unformatted)&&de.print_newline(!1),this._calcluate_parent_multiline(de,be)},xe.prototype._calcluate_parent_multiline=function(de,W){W.parent&&de._output.just_added_newline()&&!((W.is_inline_element||W.is_unformatted)&&W.parent.is_inline_element)&&(W.parent.multiline_content=!0)};var Ee=["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"],ge=["a","audio","del","ins","map","noscript","video"];xe.prototype._do_optional_end_element=function(de){var W=null;if(!(de.is_empty_element||!de.is_start_tag||!de.parent)){if(de.tag_name==="body")W=W||this._tag_stack.try_pop("head");else if(de.tag_name==="li")W=W||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(de.tag_name==="dd"||de.tag_name==="dt")W=W||this._tag_stack.try_pop("dt",["dl"]),W=W||this._tag_stack.try_pop("dd",["dl"]);else if(de.parent.tag_name==="p"&&Ee.indexOf(de.tag_name)!==-1){var be=de.parent.parent;(!be||ge.indexOf(be.tag_name)===-1)&&(W=W||this._tag_stack.try_pop("p"))}else de.tag_name==="rp"||de.tag_name==="rt"?(W=W||this._tag_stack.try_pop("rt",["ruby","rtc"]),W=W||this._tag_stack.try_pop("rp",["ruby","rtc"])):de.tag_name==="optgroup"?W=W||this._tag_stack.try_pop("optgroup",["select"]):de.tag_name==="option"?W=W||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):de.tag_name==="colgroup"?W=W||this._tag_stack.try_pop("caption",["table"]):de.tag_name==="thead"?(W=W||this._tag_stack.try_pop("caption",["table"]),W=W||this._tag_stack.try_pop("colgroup",["table"])):de.tag_name==="tbody"||de.tag_name==="tfoot"?(W=W||this._tag_stack.try_pop("caption",["table"]),W=W||this._tag_stack.try_pop("colgroup",["table"]),W=W||this._tag_stack.try_pop("thead",["table"]),W=W||this._tag_stack.try_pop("tbody",["table"])):de.tag_name==="tr"?(W=W||this._tag_stack.try_pop("caption",["table"]),W=W||this._tag_stack.try_pop("colgroup",["table"]),W=W||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(de.tag_name==="th"||de.tag_name==="td")&&(W=W||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),W=W||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return de.parent=this._tag_stack.get_parser_token(),W}},k.exports.Beautifier=xe},function(k,g,_){var S=_(6).Options;function T(B){S.call(this,B,"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"])}T.prototype=new S,k.exports.Options=T},function(k,g,_){var S=_(9).Tokenizer,T=_(9).TOKEN,B=_(13).Directives,se=_(14).TemplatablePattern,z=_(12).Pattern,$={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:T.START,RAW:T.RAW,EOF:T.EOF},G=new B(/<\!--/,/-->/),X=function(L,D){S.call(this,L,D),this._current_tag_name="";var Y=new se(this._input).read_options(this._options),j=new z(this._input);if(this.__patterns={word:Y.until(/[\n\r\t <]/),word_control_flow_close_excluded:Y.until(/[\n\r\t <}]/),single_quote:Y.until_after(/'/),double_quote:Y.until_after(/"/),attribute:Y.until(/[\n\r\t =>]|\/>/),element_name:Y.until(/[\n\r\t >\/]/),angular_control_flow_start:j.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:j.starting_with(/{{!--/).until_after(/--}}/),handlebars:j.starting_with(/{{/).until_after(/}}/),handlebars_open:j.until(/[\n\r\t }]/),handlebars_raw_close:j.until(/}}/),comment:j.starting_with(/<!--/).until_after(/-->/),cdata:j.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:j.starting_with(/<!\[/).until_after(/]>/),processing:j.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 xe=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=j.matching(xe).until_after(xe)}};X.prototype=new S,X.prototype._is_comment=function(L){return!1},X.prototype._is_opening=function(L){return L.type===$.TAG_OPEN||L.type===$.CONTROL_FLOW_OPEN},X.prototype._is_closing=function(L,D){return L.type===$.TAG_CLOSE&&D&&((L.text===">"||L.text==="/>")&&D.text[0]==="<"||L.text==="}}"&&D.text[0]==="{"&&D.text[1]==="{")||L.type===$.CONTROL_FLOW_CLOSE&&L.text==="}"&&D.text.endsWith("{")},X.prototype._reset=function(){this._current_tag_name=""},X.prototype._get_next_token=function(L,D){var Y=null;this._readWhitespace();var j=this._input.peek();return j===null?this._create_token($.EOF,""):(Y=Y||this._read_open_handlebars(j,D),Y=Y||this._read_attribute(j,L,D),Y=Y||this._read_close(j,D),Y=Y||this._read_script_and_style(j,L),Y=Y||this._read_control_flows(j,D),Y=Y||this._read_raw_content(j,L,D),Y=Y||this._read_content_word(j,D),Y=Y||this._read_comment_or_cdata(j),Y=Y||this._read_processing(j),Y=Y||this._read_open(j,D),Y=Y||this._create_token($.UNKNOWN,this._input.next()),Y)},X.prototype._read_comment_or_cdata=function(L){var D=null,Y=null,j=null;if(L==="<"){var xe=this._input.peek(1);xe==="!"&&(Y=this.__patterns.comment.read(),Y?(j=G.get_directives(Y),j&&j.ignore==="start"&&(Y+=G.readIgnored(this._input))):Y=this.__patterns.cdata.read()),Y&&(D=this._create_token($.COMMENT,Y),D.directives=j)}return D},X.prototype._read_processing=function(L){var D=null,Y=null,j=null;if(L==="<"){var xe=this._input.peek(1);(xe==="!"||xe==="?")&&(Y=this.__patterns.conditional_comment.read(),Y=Y||this.__patterns.processing.read()),Y&&(D=this._create_token($.COMMENT,Y),D.directives=j)}return D},X.prototype._read_open=function(L,D){var Y=null,j=null;return(!D||D.type===$.CONTROL_FLOW_OPEN)&&L==="<"&&(Y=this._input.next(),this._input.peek()==="/"&&(Y+=this._input.next()),Y+=this.__patterns.element_name.read(),j=this._create_token($.TAG_OPEN,Y)),j},X.prototype._read_open_handlebars=function(L,D){var Y=null,j=null;return(!D||D.type===$.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&L==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(Y=this.__patterns.handlebars_comment.read(),Y=Y||this.__patterns.handlebars.read(),j=this._create_token($.COMMENT,Y)):(Y=this.__patterns.handlebars_open.read(),j=this._create_token($.TAG_OPEN,Y))),j},X.prototype._read_control_flows=function(L,D){var Y="",j=null;if(!this._options.templating.includes("angular"))return j;if(L==="@"){if(Y=this.__patterns.angular_control_flow_start.read(),Y==="")return j;for(var xe=Y.endsWith("(")?1:0,Ce=0;!(Y.endsWith("{")&&xe===Ce);){var Ee=this._input.next();if(Ee===null)break;Ee==="("?xe++:Ee===")"&&Ce++,Y+=Ee}j=this._create_token($.CONTROL_FLOW_OPEN,Y)}else L==="}"&&D&&D.type===$.CONTROL_FLOW_OPEN&&(Y=this._input.next(),j=this._create_token($.CONTROL_FLOW_CLOSE,Y));return j},X.prototype._read_close=function(L,D){var Y=null,j=null;return D&&D.type===$.TAG_OPEN&&(D.text[0]==="<"&&(L===">"||L==="/"&&this._input.peek(1)===">")?(Y=this._input.next(),L==="/"&&(Y+=this._input.next()),j=this._create_token($.TAG_CLOSE,Y)):D.text[0]==="{"&&L==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),j=this._create_token($.TAG_CLOSE,"}}"))),j},X.prototype._read_attribute=function(L,D,Y){var j=null,xe="";if(Y&&Y.text[0]==="<")if(L==="=")j=this._create_token($.EQUALS,this._input.next());else if(L==='"'||L==="'"){var Ce=this._input.next();L==='"'?Ce+=this.__patterns.double_quote.read():Ce+=this.__patterns.single_quote.read(),j=this._create_token($.VALUE,Ce)}else xe=this.__patterns.attribute.read(),xe&&(D.type===$.EQUALS?j=this._create_token($.VALUE,xe):j=this._create_token($.ATTRIBUTE,xe));return j},X.prototype._is_content_unformatted=function(L){return this._options.void_elements.indexOf(L)===-1&&(this._options.content_unformatted.indexOf(L)!==-1||this._options.unformatted.indexOf(L)!==-1)},X.prototype._read_raw_content=function(L,D,Y){var j="";if(Y&&Y.text[0]==="{")j=this.__patterns.handlebars_raw_close.read();else if(D.type===$.TAG_CLOSE&&D.opened.text[0]==="<"&&D.text[0]!=="/"){var xe=D.opened.text.substr(1).toLowerCase();this._is_content_unformatted(xe)&&(j=this._input.readUntil(new RegExp("</"+xe+"[\\n\\r\\t ]*?>","ig")))}return j?this._create_token($.TEXT,j):null},X.prototype._read_script_and_style=function(L,D){if(D.type===$.TAG_CLOSE&&D.opened.text[0]==="<"&&D.text[0]!=="/"){var Y=D.opened.text.substr(1).toLowerCase();if(Y==="script"||Y==="style"){var j=this._read_comment_or_cdata(L);if(j)return j.type=$.TEXT,j;var xe=this._input.readUntil(new RegExp("</"+Y+"[\\n\\r\\t ]*?>","ig"));if(xe)return this._create_token($.TEXT,xe)}}return null},X.prototype._read_content_word=function(L,D){var Y="";return this._options.unformatted_content_delimiter&&L===this._options.unformatted_content_delimiter[0]&&(Y=this.__patterns.unformatted_content_delimiter.read()),Y||(Y=D&&D.type===$.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),Y?this._create_token($.TEXT,Y):null},k.exports.Tokenizer=X,k.exports.TOKEN=$}],re={};function o(k){var g=re[k];if(g!==void 0)return g.exports;var _=re[k]={exports:{}};return w[k](_,_.exports,o),_.exports}var I=o(18);q=I})();var ce=q;if(1)O=[p,p(58553),p(87804)],K=function(w){var re=p(58553),o=p(87804);return{html_beautify:function(I,k){return ce(I,k,re.js_beautify,o.css_beautify)}}}.apply(Ze,O),K!==void 0&&(Xt.exports=K);else var A,m})()},58553:function(Xt,Ze){var p,O;(function(){var K;(function(){"use strict";var ce=[function(re,o,I){var k=I(1).Beautifier,g=I(5).Options;function _(S,T){var B=new k(S,T);return B.beautify()}re.exports=_,re.exports.defaultOptions=function(){return new g}},function(re,o,I){var k=I(2).Output,g=I(3).Token,_=I(4),S=I(5).Options,T=I(7).Tokenizer,B=I(7).line_starters,se=I(7).positionable_operators,z=I(7).TOKEN;function $(x,Z){return Z.indexOf(x)!==-1}function G(x){return x.replace(/^\s+/g,"")}function X(x){for(var Z={},me=0;me<x.length;me++)Z[x[me].replace(/-/g,"_")]=x[me];return Z}function L(x,Z){return x&&x.type===z.RESERVED&&x.text===Z}function D(x,Z){return x&&x.type===z.RESERVED&&$(x.text,Z)}var Y=["case","return","do","if","throw","else","await","break","continue","async"],j=["before-newline","after-newline","preserve-newline"],xe=X(j),Ce=[xe.before_newline,xe.preserve_newline],Ee={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function ge(x,Z){Z.multiline_frame||Z.mode===Ee.ForInitializer||Z.mode===Ee.Conditional||x.remove_indent(Z.start_line_index)}function de(x){x=x.replace(_.allLineBreaks,`
|
|
|
`);for(var Z=[],me=x.indexOf(`
|
|
|
`);me!==-1;)Z.push(x.substring(0,me)),x=x.substring(me+1),me=x.indexOf(`
|
|
|
`);return x.length&&Z.push(x),Z}function W(x){return x===Ee.ArrayLiteral}function be(x){return $(x,[Ee.Expression,Ee.ForInitializer,Ee.Conditional])}function N(x,Z){for(var me=0;me<x.length;me++){var Be=x[me].trim();if(Be.charAt(0)!==Z)return!1}return!0}function ue(x,Z){for(var me=0,Be=x.length,Ue;me<Be;me++)if(Ue=x[me],Ue&&Ue.indexOf(Z)!==0)return!1;return!0}function J(x,Z){Z=Z||{},this._source_text=x||"",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 S(Z)}J.prototype.create_flags=function(x,Z){var me=0;x&&(me=x.indentation_level,!this._output.just_added_newline()&&x.line_indent_level>me&&(me=x.line_indent_level));var Be={mode:Z,parent:x,last_token:x?x.last_token:new g(z.START_BLOCK,""),last_word:x?x.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:me,alignment:0,line_indent_level:x?x.line_indent_level:me,start_line_index:this._output.get_line_number(),ternary_depth:0};return Be},J.prototype._reset=function(x){var Z=x.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new k(this._options,Z),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(Ee.BlockStatement);var me=new T(x,this._options);return this._tokens=me.tokenize(),x},J.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var x,Z=this._reset(this._source_text),me=this._options.eol;this._options.eol==="auto"&&(me=`
|
|
|
`,Z&&_.lineBreak.test(Z||"")&&(me=Z.match(_.lineBreak)[0]));for(var Be=this._tokens.next();Be;)this.handle_token(Be),this._last_last_text=this._flags.last_token.text,this._flags.last_token=Be,Be=this._tokens.next();return x=this._output.get_code(me),x},J.prototype.handle_token=function(x,Z){x.type===z.START_EXPR?this.handle_start_expr(x):x.type===z.END_EXPR?this.handle_end_expr(x):x.type===z.START_BLOCK?this.handle_start_block(x):x.type===z.END_BLOCK?this.handle_end_block(x):x.type===z.WORD?this.handle_word(x):x.type===z.RESERVED?this.handle_word(x):x.type===z.SEMICOLON?this.handle_semicolon(x):x.type===z.STRING?this.handle_string(x):x.type===z.EQUALS?this.handle_equals(x):x.type===z.OPERATOR?this.handle_operator(x):x.type===z.COMMA?this.handle_comma(x):x.type===z.BLOCK_COMMENT?this.handle_block_comment(x,Z):x.type===z.COMMENT?this.handle_comment(x,Z):x.type===z.DOT?this.handle_dot(x):x.type===z.EOF?this.handle_eof(x):x.type===z.UNKNOWN?this.handle_unknown(x,Z):this.handle_unknown(x,Z)},J.prototype.handle_whitespace_and_comments=function(x,Z){var me=x.newlines,Be=this._options.keep_array_indentation&&W(this._flags.mode);if(x.comments_before)for(var Ue=x.comments_before.next();Ue;)this.handle_whitespace_and_comments(Ue,Z),this.handle_token(Ue,Z),Ue=x.comments_before.next();if(Be)for(var ze=0;ze<me;ze+=1)this.print_newline(ze>0,Z);else if(this._options.max_preserve_newlines&&me>this._options.max_preserve_newlines&&(me=this._options.max_preserve_newlines),this._options.preserve_newlines&&me>1){this.print_newline(!1,Z);for(var qe=1;qe<me;qe+=1)this.print_newline(!0,Z)}};var v=["async","break","continue","return","throw","yield"];J.prototype.allow_wrap_or_preserved_newline=function(x,Z){if(Z=Z===void 0?!1:Z,!this._output.just_added_newline()){var me=this._options.preserve_newlines&&x.newlines||Z,Be=$(this._flags.last_token.text,se)||$(x.text,se);if(Be){var Ue=$(this._flags.last_token.text,se)&&$(this._options.operator_position,Ce)||$(x.text,se);me=me&&Ue}if(me)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(D(this._flags.last_token,v))return;this._output.set_wrap_point()}}},J.prototype.print_newline=function(x,Z){if(!Z&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==z.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var me=this._tokens.peek();this._flags.mode===Ee.Statement&&!(this._flags.if_block&&L(me,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(x)&&(this._flags.multiline_frame=!0)},J.prototype.print_token_line_indentation=function(x){this._output.just_added_newline()&&(this._options.keep_array_indentation&&x.newlines&&(x.text==="["||W(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(x.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},J.prototype.print_token=function(x){if(this._output.raw){this._output.add_raw_token(x);return}if(this._options.comma_first&&x.previous&&x.previous.type===z.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var Z=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(Z),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(x),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(x),this._output.non_breaking_space=!0,this._output.add_token(x.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},J.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},J.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},J.prototype.set_mode=function(x){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,x),this._flags=this.create_flags(this._previous_flags,x),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},J.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===Ee.Statement&&ge(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},J.prototype.start_of_object_property=function(){return this._flags.parent.mode===Ee.ObjectLiteral&&this._flags.mode===Ee.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||D(this._flags.last_token,["get","set"]))},J.prototype.start_of_statement=function(x){var Z=!1;return Z=Z||D(this._flags.last_token,["var","let","const"])&&x.type===z.WORD,Z=Z||L(this._flags.last_token,"do"),Z=Z||!(this._flags.parent.mode===Ee.ObjectLiteral&&this._flags.mode===Ee.Statement)&&D(this._flags.last_token,v)&&!x.newlines,Z=Z||L(this._flags.last_token,"else")&&!(L(x,"if")&&!x.comments_before),Z=Z||this._flags.last_token.type===z.END_EXPR&&(this._previous_flags.mode===Ee.ForInitializer||this._previous_flags.mode===Ee.Conditional),Z=Z||this._flags.last_token.type===z.WORD&&this._flags.mode===Ee.BlockStatement&&!this._flags.in_case&&!(x.text==="--"||x.text==="++")&&this._last_last_text!=="function"&&x.type!==z.WORD&&x.type!==z.RESERVED,Z=Z||this._flags.mode===Ee.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||D(this._flags.last_token,["get","set"])),Z?(this.set_mode(Ee.Statement),this.indent(),this.handle_whitespace_and_comments(x,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(x,D(x,["do","for","if","while"])),!0):!1},J.prototype.handle_start_expr=function(x){this.start_of_statement(x)||this.handle_whitespace_and_comments(x);var Z=Ee.Expression;if(x.text==="["){if(this._flags.last_token.type===z.WORD||this._flags.last_token.text===")"){D(this._flags.last_token,B)&&(this._output.space_before_token=!0),this.print_token(x),this.set_mode(Z),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}Z=Ee.ArrayLiteral,W(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()),$(this._flags.last_token.type,[z.START_EXPR,z.END_EXPR,z.WORD,z.OPERATOR,z.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===z.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,Z=Ee.ForInitializer):$(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,Z=Ee.Conditional):$(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&x.whitespace_before===""?this._output.space_before_token=!1:($(this._flags.last_token.text,B)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===z.EQUALS||this._flags.last_token.type===z.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(x);else if(this._flags.last_token.type===z.WORD){this._output.space_before_token=!1;var me=this._tokens.peek(-3);if(this._options.space_after_named_function&&me){var Be=this._tokens.peek(-4);D(me,["async","function"])||me.text==="*"&&D(Be,["async","function"])?this._output.space_before_token=!0:this._flags.mode===Ee.ObjectLiteral?(me.text==="{"||me.text===","||me.text==="*"&&(Be.text==="{"||Be.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(x);(this._flags.last_token.type===z.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&($(this._last_last_text,["function","yield"])||this._flags.mode===Ee.ObjectLiteral&&$(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===z.START_BLOCK?this.print_newline():(this._flags.last_token.type===z.END_EXPR||this._flags.last_token.type===z.START_EXPR||this._flags.last_token.type===z.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===z.COMMA)&&this.allow_wrap_or_preserved_newline(x,x.newlines),this.print_token(x),this.set_mode(Z),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},J.prototype.handle_end_expr=function(x){for(;this._flags.mode===Ee.Statement;)this.restore_mode();this.handle_whitespace_and_comments(x),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(x,x.text==="]"&&W(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===z.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(x),this.restore_mode(),ge(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===Ee.Conditional&&(this._previous_flags.mode=Ee.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},J.prototype.handle_start_block=function(x){this.handle_whitespace_and_comments(x);var Z=this._tokens.peek(),me=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===z.END_EXPR?(this.set_mode(Ee.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(Ee.BlockStatement):me&&($(me.text,[":",","])&&$(Z.type,[z.STRING,z.WORD,z.RESERVED])||$(Z.text,["get","set","..."])&&$(me.type,[z.WORD,z.RESERVED]))?$(this._last_last_text,["class","interface"])&&!$(me.text,[":",","])?this.set_mode(Ee.BlockStatement):this.set_mode(Ee.ObjectLiteral):this._flags.last_token.type===z.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(Ee.BlockStatement):$(this._flags.last_token.type,[z.EQUALS,z.START_EXPR,z.COMMA,z.OPERATOR])||D(this._flags.last_token,["return","throw","import","default"])?this.set_mode(Ee.ObjectLiteral):this.set_mode(Ee.BlockStatement),this._flags.last_token&&D(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var Be=!Z.comments_before&&Z.text==="}",Ue=Be&&this._flags.last_word==="function"&&this._flags.last_token.type===z.END_EXPR;if(this._options.brace_preserve_inline){var ze=0,qe=null;this._flags.inline_frame=!0;do if(ze+=1,qe=this._tokens.peek(ze-1),qe.newlines){this._flags.inline_frame=!1;break}while(qe.type!==z.EOF&&!(qe.type===z.END_BLOCK&&qe.opened===x))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&x.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==z.OPERATOR&&(Ue||this._flags.last_token.type===z.EQUALS||D(this._flags.last_token,Y)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(W(this._previous_flags.mode)&&(this._flags.last_token.type===z.START_EXPR||this._flags.last_token.type===z.COMMA)&&((this._flags.last_token.type===z.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===z.COMMA||this._flags.last_token.type===z.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(x),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==z.OPERATOR&&this._flags.last_token.type!==z.START_EXPR&&($(this._flags.last_token.type,[z.START_BLOCK,z.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(x),this.indent(),!Be&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},J.prototype.handle_end_block=function(x){for(this.handle_whitespace_and_comments(x);this._flags.mode===Ee.Statement;)this.restore_mode();var Z=this._flags.last_token.type===z.START_BLOCK;this._flags.inline_frame&&!Z?this._output.space_before_token=!0:this._options.brace_style==="expand"?Z||this.print_newline():Z||(W(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(x)},J.prototype.handle_word=function(x){if(x.type===z.RESERVED){if($(x.text,["set","get"])&&this._flags.mode!==Ee.ObjectLiteral)x.type=z.WORD;else if(x.text==="import"&&$(this._tokens.peek().text,["(","."]))x.type=z.WORD;else if($(x.text,["as","from"])&&!this._flags.import_block)x.type=z.WORD;else if(this._flags.mode===Ee.ObjectLiteral){var Z=this._tokens.peek();Z.text===":"&&(x.type=z.WORD)}}if(this.start_of_statement(x)?D(this._flags.last_token,["var","let","const"])&&x.type===z.WORD&&(this._flags.declaration_statement=!0):x.newlines&&!be(this._flags.mode)&&(this._flags.last_token.type!==z.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==z.EQUALS&&(this._options.preserve_newlines||!D(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(x),this.print_newline()):this.handle_whitespace_and_comments(x),this._flags.do_block&&!this._flags.do_while)if(L(x,"while")){this._output.space_before_token=!0,this.print_token(x),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&&L(x,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===Ee.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&D(x,["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(x),this._flags.in_case=!0;return}if((this._flags.last_token.type===z.COMMA||this._flags.last_token.type===z.START_EXPR||this._flags.last_token.type===z.EQUALS||this._flags.last_token.type===z.OPERATOR)&&!this.start_of_object_property()&&!($(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===Ee.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(x),L(x,"function")){($(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!($(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===z.OPERATOR))&&!this._output.just_added_blankline()&&!x.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===z.RESERVED||this._flags.last_token.type===z.WORD?D(this._flags.last_token,["get","set","new","export"])||D(this._flags.last_token,v)?this._output.space_before_token=!0:L(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===z.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(be(this._flags.mode)||W(this._flags.mode))||this.print_newline(),this.print_token(x),this._flags.last_word=x.text;return}var me="NONE";if(this._flags.last_token.type===z.END_BLOCK?this._previous_flags.inline_frame?me="SPACE":D(x,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&x.newlines?me="NEWLINE":(me="SPACE",this._output.space_before_token=!0):me="NEWLINE":this._flags.last_token.type===z.SEMICOLON&&this._flags.mode===Ee.BlockStatement?me="NEWLINE":this._flags.last_token.type===z.SEMICOLON&&be(this._flags.mode)?me="SPACE":this._flags.last_token.type===z.STRING?me="NEWLINE":this._flags.last_token.type===z.RESERVED||this._flags.last_token.type===z.WORD||this._flags.last_token.text==="*"&&($(this._last_last_text,["function","yield"])||this._flags.mode===Ee.ObjectLiteral&&$(this._last_last_text,["{",","]))?me="SPACE":this._flags.last_token.type===z.START_BLOCK?this._flags.inline_frame?me="SPACE":me="NEWLINE":this._flags.last_token.type===z.END_EXPR&&(this._output.space_before_token=!0,me="NEWLINE"),D(x,B)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?me="SPACE":me="NEWLINE"),D(x,["else","catch","finally"]))if((!(this._flags.last_token.type===z.END_BLOCK&&this._previous_flags.mode===Ee.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&x.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var Be=this._output.current_line;Be.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else me==="NEWLINE"?D(this._flags.last_token,Y)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&D(x,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==z.END_EXPR?(this._flags.last_token.type!==z.START_EXPR||!D(x,["var","let","const"]))&&this._flags.last_token.text!==":"&&(L(x,"if")&&L(x.previous,"else")?this._output.space_before_token=!0:this.print_newline()):D(x,B)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&W(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():me==="SPACE"&&(this._output.space_before_token=!0);x.previous&&(x.previous.type===z.WORD||x.previous.type===z.RESERVED)&&(this._output.space_before_token=!0),this.print_token(x),this._flags.last_word=x.text,x.type===z.RESERVED&&(x.text==="do"?this._flags.do_block=!0:x.text==="if"?this._flags.if_block=!0:x.text==="import"?this._flags.import_block=!0:this._flags.import_block&&L(x,"from")&&(this._flags.import_block=!1))},J.prototype.handle_semicolon=function(x){this.start_of_statement(x)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(x);for(var Z=this._tokens.peek();this._flags.mode===Ee.Statement&&!(this._flags.if_block&&L(Z,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(x)},J.prototype.handle_string=function(x){x.text.startsWith("`")&&x.newlines===0&&x.whitespace_before===""&&(x.previous.text===")"||this._flags.last_token.type===z.WORD)||(this.start_of_statement(x)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(x),this._flags.last_token.type===z.RESERVED||this._flags.last_token.type===z.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===z.COMMA||this._flags.last_token.type===z.START_EXPR||this._flags.last_token.type===z.EQUALS||this._flags.last_token.type===z.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(x):x.text.startsWith("`")&&this._flags.last_token.type===z.END_EXPR&&(x.previous.text==="]"||x.previous.text===")")&&x.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(x)},J.prototype.handle_equals=function(x){this.start_of_statement(x)||this.handle_whitespace_and_comments(x),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(x),this._output.space_before_token=!0},J.prototype.handle_comma=function(x){this.handle_whitespace_and_comments(x,!0),this.print_token(x),this._output.space_before_token=!0,this._flags.declaration_statement?(be(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(x)):this._flags.mode===Ee.ObjectLiteral||this._flags.mode===Ee.Statement&&this._flags.parent.mode===Ee.ObjectLiteral?(this._flags.mode===Ee.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(x)},J.prototype.handle_operator=function(x){var Z=x.text==="*"&&(D(this._flags.last_token,["function","yield"])||$(this._flags.last_token.type,[z.START_BLOCK,z.COMMA,z.END_BLOCK,z.SEMICOLON])),me=$(x.text,["-","+"])&&($(this._flags.last_token.type,[z.START_BLOCK,z.START_EXPR,z.EQUALS,z.OPERATOR])||$(this._flags.last_token.text,B)||this._flags.last_token.text===",");if(!this.start_of_statement(x)){var Be=!Z;this.handle_whitespace_and_comments(x,Be)}if(x.text==="*"&&this._flags.last_token.type===z.DOT){this.print_token(x);return}if(x.text==="::"){this.print_token(x);return}if($(x.text,["-","+"])&&this.start_of_object_property()){this.print_token(x);return}if(this._flags.last_token.type===z.OPERATOR&&$(this._options.operator_position,Ce)&&this.allow_wrap_or_preserved_newline(x),x.text===":"&&this._flags.in_case){this.print_token(x),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==z.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var Ue=!0,ze=!0,qe=!1;if(x.text===":"?this._flags.ternary_depth===0?Ue=!1:(this._flags.ternary_depth-=1,qe=!0):x.text==="?"&&(this._flags.ternary_depth+=1),!me&&!Z&&this._options.preserve_newlines&&$(x.text,se)){var mt=x.text===":",gt=mt&&qe,at=mt&&!qe;switch(this._options.operator_position){case xe.before_newline:this._output.space_before_token=!at,this.print_token(x),(!mt||gt)&&this.allow_wrap_or_preserved_newline(x),this._output.space_before_token=!0;return;case xe.after_newline:this._output.space_before_token=!0,!mt||gt?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(x):this._output.space_before_token=!1,this.print_token(x),this._output.space_before_token=!0;return;case xe.preserve_newline:at||this.allow_wrap_or_preserved_newline(x),Ue=!(this._output.just_added_newline()||at),this._output.space_before_token=Ue,this.print_token(x),this._output.space_before_token=!0;return}}if(Z){this.allow_wrap_or_preserved_newline(x),Ue=!1;var Lt=this._tokens.peek();ze=Lt&&$(Lt.type,[z.WORD,z.RESERVED])}else if(x.text==="...")this.allow_wrap_or_preserved_newline(x),Ue=this._flags.last_token.type===z.START_BLOCK,ze=!1;else if($(x.text,["--","++","!","~"])||me){if((this._flags.last_token.type===z.COMMA||this._flags.last_token.type===z.START_EXPR)&&this.allow_wrap_or_preserved_newline(x),Ue=!1,ze=!1,x.newlines&&(x.text==="--"||x.text==="++"||x.text==="~")){var tn=D(this._flags.last_token,Y)&&x.newlines;tn&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(tn,!0)}this._flags.last_token.text===";"&&be(this._flags.mode)&&(Ue=!0),this._flags.last_token.type===z.RESERVED?Ue=!0:this._flags.last_token.type===z.END_EXPR?Ue=!(this._flags.last_token.text==="]"&&(x.text==="--"||x.text==="++")):this._flags.last_token.type===z.OPERATOR&&(Ue=$(x.text,["--","-","++","+"])&&$(this._flags.last_token.text,["--","-","++","+"]),$(x.text,["+","-"])&&$(this._flags.last_token.text,["--","++"])&&(ze=!0)),(this._flags.mode===Ee.BlockStatement&&!this._flags.inline_frame||this._flags.mode===Ee.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||Ue,this.print_token(x),this._output.space_before_token=ze},J.prototype.handle_block_comment=function(x,Z){if(this._output.raw){this._output.add_raw_token(x),x.directives&&x.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(x.directives){this.print_newline(!1,Z),this.print_token(x),x.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!_.newline.test(x.text)&&!x.newlines){this._output.space_before_token=!0,this.print_token(x),this._output.space_before_token=!0;return}else this.print_block_commment(x,Z)},J.prototype.print_block_commment=function(x,Z){var me=de(x.text),Be,Ue=!1,ze=!1,qe=x.whitespace_before,mt=qe.length;if(this.print_newline(!1,Z),this.print_token_line_indentation(x),this._output.add_token(me[0]),this.print_newline(!1,Z),me.length>1){for(me=me.slice(1),Ue=N(me,"*"),ze=ue(me,qe),Ue&&(this._flags.alignment=1),Be=0;Be<me.length;Be++)Ue?(this.print_token_line_indentation(x),this._output.add_token(G(me[Be]))):ze&&me[Be]?(this.print_token_line_indentation(x),this._output.add_token(me[Be].substring(mt))):(this._output.current_line.set_indent(-1),this._output.add_token(me[Be])),this.print_newline(!1,Z);this._flags.alignment=0}},J.prototype.handle_comment=function(x,Z){x.newlines?this.print_newline(!1,Z):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(x),this.print_newline(!1,Z)},J.prototype.handle_dot=function(x){this.start_of_statement(x)||this.handle_whitespace_and_comments(x,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),D(this._flags.last_token,Y)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(x,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(x)},J.prototype.handle_unknown=function(x,Z){this.print_token(x),x.text[x.text.length-1]===`
|
|
|
`&&this.print_newline(!1,Z)},J.prototype.handle_eof=function(x){for(;this._flags.mode===Ee.Statement;)this.restore_mode();this.handle_whitespace_and_comments(x)},re.exports.Beautifier=J},function(re){function o(g){this.__parent=g,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 g=new o(this.__parent);return g.set_indent(this.__indent_count,this.__alignment_count),g},o.prototype.item=function(g){return g<0?this.__items[this.__items.length+g]:this.__items[g]},o.prototype.has_match=function(g){for(var _=this.__items.length-1;_>=0;_--)if(this.__items[_].match(g))return!0;return!1},o.prototype.set_indent=function(g,_){this.is_empty()&&(this.__indent_count=g||0,this.__alignment_count=_||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},o.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},o.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},o.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var g=this.__parent.current_line;return g.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),g.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),g.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,g.__items[0]===" "&&(g.__items.splice(0,1),g.__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(g){this.__items.push(g);var _=g.lastIndexOf(`
|
|
|
`);_!==-1?this.__character_count=g.length-_:this.__character_count+=g.length},o.prototype.pop=function(){var g=null;return this.is_empty()||(g=this.__items.pop(),this.__character_count-=g.length),g},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 g="";return this.is_empty()?this.__parent.indent_empty_lines&&(g=this.__parent.get_indent_string(this.__indent_count)):(g=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),g+=this.__items.join("")),g};function I(g,_){this.__cache=[""],this.__indent_size=g.indent_size,this.__indent_string=g.indent_char,g.indent_with_tabs||(this.__indent_string=new Array(g.indent_size+1).join(g.indent_char)),_=_||"",g.indent_level>0&&(_=new Array(g.indent_level+1).join(this.__indent_string)),this.__base_string=_,this.__base_string_length=_.length}I.prototype.get_indent_size=function(g,_){var S=this.__base_string_length;return _=_||0,g<0&&(S=0),S+=g*this.__indent_size,S+=_,S},I.prototype.get_indent_string=function(g,_){var S=this.__base_string;return _=_||0,g<0&&(g=0,S=""),_+=g*this.__indent_size,this.__ensure_cache(_),S+=this.__cache[_],S},I.prototype.__ensure_cache=function(g){for(;g>=this.__cache.length;)this.__add_column()},I.prototype.__add_column=function(){var g=this.__cache.length,_=0,S="";this.__indent_size&&g>=this.__indent_size&&(_=Math.floor(g/this.__indent_size),g-=_*this.__indent_size,S=new Array(_+1).join(this.__indent_string)),g&&(S+=new Array(g+1).join(" ")),this.__cache.push(S)};function k(g,_){this.__indent_cache=new I(g,_),this.raw=!1,this._end_with_newline=g.end_with_newline,this.indent_size=g.indent_size,this.wrap_line_length=g.wrap_line_length,this.indent_empty_lines=g.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()}k.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},k.prototype.get_line_number=function(){return this.__lines.length},k.prototype.get_indent_string=function(g,_){return this.__indent_cache.get_indent_string(g,_)},k.prototype.get_indent_size=function(g,_){return this.__indent_cache.get_indent_size(g,_)},k.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},k.prototype.add_new_line=function(g){return this.is_empty()||!g&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},k.prototype.get_code=function(g){this.trim(!0);var _=this.current_line.pop();_&&(_[_.length-1]===`
|
|
|
`&&(_=_.replace(/\n+$/g,"")),this.current_line.push(_)),this._end_with_newline&&this.__add_outputline();var S=this.__lines.join(`
|
|
|
`);return g!==`
|
|
|
`&&(S=S.replace(/[\n]/g,g)),S},k.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},k.prototype.set_indent=function(g,_){return g=g||0,_=_||0,this.next_line.set_indent(g,_),this.__lines.length>1?(this.current_line.set_indent(g,_),!0):(this.current_line.set_indent(),!1)},k.prototype.add_raw_token=function(g){for(var _=0;_<g.newlines;_++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(g.whitespace_before),this.current_line.push(g.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},k.prototype.add_token=function(g){this.__add_space_before_token(),this.current_line.push(g),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},k.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(" "))},k.prototype.remove_indent=function(g){for(var _=this.__lines.length;g<_;)this.__lines[g]._remove_indent(),g++;this.current_line._remove_wrap_indent()},k.prototype.trim=function(g){for(g=g===void 0?!1:g,this.current_line.trim();g&&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},k.prototype.just_added_newline=function(){return this.current_line.is_empty()},k.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},k.prototype.ensure_empty_line_above=function(g,_){for(var S=this.__lines.length-2;S>=0;){var T=this.__lines[S];if(T.is_empty())break;if(T.item(0).indexOf(g)!==0&&T.item(-1)!==_){this.__lines.splice(S+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}S--}},re.exports.Output=k},function(re){function o(I,k,g,_){this.type=I,this.text=k,this.comments_before=null,this.newlines=g||0,this.whitespace_before=_||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}re.exports.Token=o},function(re,o){var I="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",k="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",g="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",_="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",S="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",T="(?:"+S+"|["+I+g+"])",B="(?:"+S+"|["+k+g+_+"])*";o.identifier=new RegExp(T+B,"g"),o.identifierStart=new RegExp(T),o.identifierMatch=new RegExp("(?:"+S+"|["+k+g+_+"])+");var se=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;o.newline=/[\n\r\u2028\u2029]/,o.lineBreak=new RegExp(`\r
|
|
|
|`+o.newline.source),o.allLineBreaks=new RegExp(o.lineBreak.source,"g")},function(re,o,I){var k=I(6).Options,g=["before-newline","after-newline","preserve-newline"];function _(S){k.call(this,S,"js");var T=this.raw_options.brace_style||null;T==="expand-strict"?this.raw_options.brace_style="expand":T==="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 B=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var se=0;se<B.length;se++)B[se]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=B[se];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",g),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}_.prototype=new k,re.exports.Options=_},function(re){function o(g,_){this.raw_options=I(g,_),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(g,_){var S=this.raw_options[g],T=_||[];return typeof S=="object"?S!==null&&typeof S.concat=="function"&&(T=S.concat()):typeof S=="string"&&(T=S.split(/[^a-zA-Z0-9_\/\-]+/)),T},o.prototype._get_boolean=function(g,_){var S=this.raw_options[g],T=S===void 0?!!_:!!S;return T},o.prototype._get_characters=function(g,_){var S=this.raw_options[g],T=_||"";return typeof S=="string"&&(T=S.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),T},o.prototype._get_number=function(g,_){var S=this.raw_options[g];_=parseInt(_,10),isNaN(_)&&(_=0);var T=parseInt(S,10);return isNaN(T)&&(T=_),T},o.prototype._get_selection=function(g,_,S){var T=this._get_selection_list(g,_,S);if(T.length!==1)throw new Error("Invalid Option Value: The option '"+g+`' can only be one of the following values:
|
|
|
`+_+`
|
|
|
You passed in: '`+this.raw_options[g]+"'");return T[0]},o.prototype._get_selection_list=function(g,_,S){if(!_||_.length===0)throw new Error("Selection list cannot be empty.");if(S=S||[_[0]],!this._is_valid_selection(S,_))throw new Error("Invalid Default Value!");var T=this._get_array(g,S);if(!this._is_valid_selection(T,_))throw new Error("Invalid Option Value: The option '"+g+`' can contain only the following values:
|
|
|
`+_+`
|
|
|
You passed in: '`+this.raw_options[g]+"'");return T},o.prototype._is_valid_selection=function(g,_){return g.length&&_.length&&!g.some(function(S){return _.indexOf(S)===-1})};function I(g,_){var S={};g=k(g);var T;for(T in g)T!==_&&(S[T]=g[T]);if(_&&g[_])for(T in g[_])S[T]=g[_][T];return S}function k(g){var _={},S;for(S in g){var T=S.replace(/-/g,"_");_[T]=g[S]}return _}re.exports.Options=o,re.exports.normalizeOpts=k,re.exports.mergeOpts=I},function(re,o,I){var k=I(8).InputScanner,g=I(9).Tokenizer,_=I(9).TOKEN,S=I(13).Directives,T=I(4),B=I(12).Pattern,se=I(14).TemplatablePattern;function z(N,ue){return ue.indexOf(N)!==-1}var $={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:_.START,RAW:_.RAW,EOF:_.EOF},G=new S(/\/\*/,/\*\//),X=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,L=/[0-9]/,D=/[^\d\.]/,Y=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),j=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";j=j.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),j="\\?\\.(?!\\d) "+j,j=j.replace(/ /g,"|");var xe=new RegExp(j),Ce="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),Ee=Ce.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),ge=new RegExp("^(?:"+Ee.join("|")+")$"),de,W=function(N,ue){g.call(this,N,ue),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var J=new B(this._input),v=new se(this._input).read_options(this._options);this.__patterns={template:v,identifier:v.starting_with(T.identifier).matching(T.identifierMatch),number:J.matching(X),punct:J.matching(xe),comment:J.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:J.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:J.matching(/<!--/),html_comment_end:J.matching(/-->/),include:J.starting_with(/#include/).until_after(T.lineBreak),shebang:J.starting_with(/#!/).until_after(T.lineBreak),xml:J.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:v.until(/['\\\n\r\u2028\u2029]/),double_quote:v.until(/["\\\n\r\u2028\u2029]/),template_text:v.until(/[`\\$]/),template_expression:v.until(/[`}\\]/)}};W.prototype=new g,W.prototype._is_comment=function(N){return N.type===$.COMMENT||N.type===$.BLOCK_COMMENT||N.type===$.UNKNOWN},W.prototype._is_opening=function(N){return N.type===$.START_BLOCK||N.type===$.START_EXPR},W.prototype._is_closing=function(N,ue){return(N.type===$.END_BLOCK||N.type===$.END_EXPR)&&ue&&(N.text==="]"&&ue.text==="["||N.text===")"&&ue.text==="("||N.text==="}"&&ue.text==="{")},W.prototype._reset=function(){de=!1},W.prototype._get_next_token=function(N,ue){var J=null;this._readWhitespace();var v=this._input.peek();return v===null?this._create_token($.EOF,""):(J=J||this._read_non_javascript(v),J=J||this._read_string(v),J=J||this._read_pair(v,this._input.peek(1)),J=J||this._read_word(N),J=J||this._read_singles(v),J=J||this._read_comment(v),J=J||this._read_regexp(v,N),J=J||this._read_xml(v,N),J=J||this._read_punctuation(),J=J||this._create_token($.UNKNOWN,this._input.next()),J)},W.prototype._read_word=function(N){var ue;if(ue=this.__patterns.identifier.read(),ue!=="")return ue=ue.replace(T.allLineBreaks,`
|
|
|
`),!(N.type===$.DOT||N.type===$.RESERVED&&(N.text==="set"||N.text==="get"))&&ge.test(ue)?(ue==="in"||ue==="of")&&(N.type===$.WORD||N.type===$.STRING)?this._create_token($.OPERATOR,ue):this._create_token($.RESERVED,ue):this._create_token($.WORD,ue);if(ue=this.__patterns.number.read(),ue!=="")return this._create_token($.WORD,ue)},W.prototype._read_singles=function(N){var ue=null;return N==="("||N==="["?ue=this._create_token($.START_EXPR,N):N===")"||N==="]"?ue=this._create_token($.END_EXPR,N):N==="{"?ue=this._create_token($.START_BLOCK,N):N==="}"?ue=this._create_token($.END_BLOCK,N):N===";"?ue=this._create_token($.SEMICOLON,N):N==="."&&D.test(this._input.peek(1))?ue=this._create_token($.DOT,N):N===","&&(ue=this._create_token($.COMMA,N)),ue&&this._input.next(),ue},W.prototype._read_pair=function(N,ue){var J=null;return N==="#"&&ue==="{"&&(J=this._create_token($.START_BLOCK,N+ue)),J&&(this._input.next(),this._input.next()),J},W.prototype._read_punctuation=function(){var N=this.__patterns.punct.read();if(N!=="")return N==="="?this._create_token($.EQUALS,N):N==="?."?this._create_token($.DOT,N):this._create_token($.OPERATOR,N)},W.prototype._read_non_javascript=function(N){var ue="";if(N==="#"){if(this._is_first_token()&&(ue=this.__patterns.shebang.read(),ue))return this._create_token($.UNKNOWN,ue.trim()+`
|
|
|
`);if(ue=this.__patterns.include.read(),ue)return this._create_token($.UNKNOWN,ue.trim()+`
|
|
|
`);N=this._input.next();var J="#";if(this._input.hasNext()&&this._input.testChar(L)){do N=this._input.next(),J+=N;while(this._input.hasNext()&&N!=="#"&&N!=="=");return N==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(J+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(J+="{}",this._input.next(),this._input.next())),this._create_token($.WORD,J)}this._input.back()}else if(N==="<"&&this._is_first_token()){if(ue=this.__patterns.html_comment_start.read(),ue){for(;this._input.hasNext()&&!this._input.testChar(T.newline);)ue+=this._input.next();return de=!0,this._create_token($.COMMENT,ue)}}else if(de&&N==="-"&&(ue=this.__patterns.html_comment_end.read(),ue))return de=!1,this._create_token($.COMMENT,ue);return null},W.prototype._read_comment=function(N){var ue=null;if(N==="/"){var J="";if(this._input.peek(1)==="*"){J=this.__patterns.block_comment.read();var v=G.get_directives(J);v&&v.ignore==="start"&&(J+=G.readIgnored(this._input)),J=J.replace(T.allLineBreaks,`
|
|
|
`),ue=this._create_token($.BLOCK_COMMENT,J),ue.directives=v}else this._input.peek(1)==="/"&&(J=this.__patterns.comment.read(),ue=this._create_token($.COMMENT,J))}return ue},W.prototype._read_string=function(N){if(N==="`"||N==="'"||N==='"'){var ue=this._input.next();return this.has_char_escapes=!1,N==="`"?ue+=this._read_string_recursive("`",!0,"${"):ue+=this._read_string_recursive(N),this.has_char_escapes&&this._options.unescape_strings&&(ue=be(ue)),this._input.peek()===N&&(ue+=this._input.next()),ue=ue.replace(T.allLineBreaks,`
|
|
|
`),this._create_token($.STRING,ue)}return null},W.prototype._allow_regexp_or_xml=function(N){return N.type===$.RESERVED&&z(N.text,["return","case","throw","else","do","typeof","yield"])||N.type===$.END_EXPR&&N.text===")"&&N.opened.previous.type===$.RESERVED&&z(N.opened.previous.text,["if","while","for"])||z(N.type,[$.COMMENT,$.START_EXPR,$.START_BLOCK,$.START,$.END_BLOCK,$.OPERATOR,$.EQUALS,$.EOF,$.SEMICOLON,$.COMMA])},W.prototype._read_regexp=function(N,ue){if(N==="/"&&this._allow_regexp_or_xml(ue)){for(var J=this._input.next(),v=!1,x=!1;this._input.hasNext()&&(v||x||this._input.peek()!==N)&&!this._input.testChar(T.newline);)J+=this._input.peek(),v?v=!1:(v=this._input.peek()==="\\",this._input.peek()==="["?x=!0:this._input.peek()==="]"&&(x=!1)),this._input.next();return this._input.peek()===N&&(J+=this._input.next(),J+=this._input.read(T.identifier)),this._create_token($.STRING,J)}return null},W.prototype._read_xml=function(N,ue){if(this._options.e4x&&N==="<"&&this._allow_regexp_or_xml(ue)){var J="",v=this.__patterns.xml.read_match();if(v){for(var x=v[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),Z=x.indexOf("{")===0,me=0;v;){var Be=!!v[1],Ue=v[2],ze=!!v[v.length-1]||Ue.slice(0,8)==="![CDATA[";if(!ze&&(Ue===x||Z&&Ue.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(Be?--me:++me),J+=v[0],me<=0)break;v=this.__patterns.xml.read_match()}return v||(J+=this._input.match(/[\s\S]*/g)[0]),J=J.replace(T.allLineBreaks,`
|
|
|
`),this._create_token($.STRING,J)}}return null};function be(N){for(var ue="",J=0,v=new k(N),x=null;v.hasNext();)if(x=v.match(/([\s]|[^\\]|\\\\)+/g),x&&(ue+=x[0]),v.peek()==="\\"){if(v.next(),v.peek()==="x")x=v.match(/x([0-9A-Fa-f]{2})/g);else if(v.peek()==="u")x=v.match(/u([0-9A-Fa-f]{4})/g),x||(x=v.match(/u\{([0-9A-Fa-f]+)\}/g));else{ue+="\\",v.hasNext()&&(ue+=v.next());continue}if(!x||(J=parseInt(x[1],16),J>126&&J<=255&&x[0].indexOf("x")===0))return N;J>=0&&J<32||J>1114111?ue+="\\"+x[0]:J===34||J===39||J===92?ue+="\\"+String.fromCharCode(J):ue+=String.fromCharCode(J)}return ue}W.prototype._read_string_recursive=function(N,ue,J){var v,x;N==="'"?x=this.__patterns.single_quote:N==='"'?x=this.__patterns.double_quote:N==="`"?x=this.__patterns.template_text:N==="}"&&(x=this.__patterns.template_expression);for(var Z=x.read(),me="";this._input.hasNext();){if(me=this._input.next(),me===N||!ue&&T.newline.test(me)){this._input.back();break}else me==="\\"&&this._input.hasNext()?(v=this._input.peek(),v==="x"||v==="u"?this.has_char_escapes=!0:v==="\r"&&this._input.peek(1)===`
|
|
|
`&&this._input.next(),me+=this._input.next()):J&&(J==="${"&&me==="$"&&this._input.peek()==="{"&&(me+=this._input.next()),J===me&&(N==="`"?me+=this._read_string_recursive("}",ue,"`"):me+=this._read_string_recursive("`",ue,"${"),this._input.hasNext()&&(me+=this._input.next())));me+=x.read(),Z+=me}return Z},re.exports.Tokenizer=W,re.exports.TOKEN=$,re.exports.positionable_operators=Y.slice(),re.exports.line_starters=Ce.slice()},function(re){var o=RegExp.prototype.hasOwnProperty("sticky");function I(k){this.__input=k||"",this.__input_length=this.__input.length,this.__position=0}I.prototype.restart=function(){this.__position=0},I.prototype.back=function(){this.__position>0&&(this.__position-=1)},I.prototype.hasNext=function(){return this.__position<this.__input_length},I.prototype.next=function(){var k=null;return this.hasNext()&&(k=this.__input.charAt(this.__position),this.__position+=1),k},I.prototype.peek=function(k){var g=null;return k=k||0,k+=this.__position,k>=0&&k<this.__input_length&&(g=this.__input.charAt(k)),g},I.prototype.__match=function(k,g){k.lastIndex=g;var _=k.exec(this.__input);return _&&!(o&&k.sticky)&&_.index!==g&&(_=null),_},I.prototype.test=function(k,g){return g=g||0,g+=this.__position,g>=0&&g<this.__input_length?!!this.__match(k,g):!1},I.prototype.testChar=function(k,g){var _=this.peek(g);return k.lastIndex=0,_!==null&&k.test(_)},I.prototype.match=function(k){var g=this.__match(k,this.__position);return g?this.__position+=g[0].length:g=null,g},I.prototype.read=function(k,g,_){var S="",T;return k&&(T=this.match(k),T&&(S+=T[0])),g&&(T||!k)&&(S+=this.readUntil(g,_)),S},I.prototype.readUntil=function(k,g){var _="",S=this.__position;k.lastIndex=this.__position;var T=k.exec(this.__input);return T?(S=T.index,g&&(S+=T[0].length)):S=this.__input_length,_=this.__input.substring(this.__position,S),this.__position=S,_},I.prototype.readUntilAfter=function(k){return this.readUntil(k,!0)},I.prototype.get_regexp=function(k,g){var _=null,S="g";return g&&o&&(S="y"),typeof k=="string"&&k!==""?_=new RegExp(k,S):k&&(_=new RegExp(k.source,S)),_},I.prototype.get_literal_regexp=function(k){return RegExp(k.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},I.prototype.peekUntilAfter=function(k){var g=this.__position,_=this.readUntilAfter(k);return this.__position=g,_},I.prototype.lookBack=function(k){var g=this.__position-1;return g>=k.length&&this.__input.substring(g-k.length,g).toLowerCase()===k},re.exports.InputScanner=I},function(re,o,I){var k=I(8).InputScanner,g=I(3).Token,_=I(10).TokenStream,S=I(11).WhitespacePattern,T={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},B=function(se,z){this._input=new k(se),this._options=z||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new S(this._input)};B.prototype.tokenize=function(){this._input.restart(),this.__tokens=new _,this._reset();for(var se,z=new g(T.START,""),$=null,G=[],X=new _;z.type!==T.EOF;){for(se=this._get_next_token(z,$);this._is_comment(se);)X.add(se),se=this._get_next_token(z,$);X.isEmpty()||(se.comments_before=X,X=new _),se.parent=$,this._is_opening(se)?(G.push($),$=se):$&&this._is_closing(se,$)&&(se.opened=$,$.closed=se,$=G.pop(),se.parent=$),se.previous=z,z.next=se,this.__tokens.add(se),z=se}return this.__tokens},B.prototype._is_first_token=function(){return this.__tokens.isEmpty()},B.prototype._reset=function(){},B.prototype._get_next_token=function(se,z){this._readWhitespace();var $=this._input.read(/.+/g);return $?this._create_token(T.RAW,$):this._create_token(T.EOF,"")},B.prototype._is_comment=function(se){return!1},B.prototype._is_opening=function(se){return!1},B.prototype._is_closing=function(se,z){return!1},B.prototype._create_token=function(se,z){var $=new g(se,z,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return $},B.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},re.exports.Tokenizer=B,re.exports.TOKEN=T},function(re){function o(I){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=I}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 I=null;return this.hasNext()&&(I=this.__tokens[this.__position],this.__position+=1),I},o.prototype.peek=function(I){var k=null;return I=I||0,I+=this.__position,I>=0&&I<this.__tokens_length&&(k=this.__tokens[I]),k},o.prototype.add=function(I){this.__parent_token&&(I.parent=this.__parent_token),this.__tokens.push(I),this.__tokens_length+=1},re.exports.TokenStream=o},function(re,o,I){var k=I(12).Pattern;function g(_,S){k.call(this,_,S),S?this._line_regexp=this._input.get_regexp(S._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}g.prototype=new k,g.prototype.__set_whitespace_patterns=function(_,S){_+="\\t ",S+="\\n\\r",this._match_pattern=this._input.get_regexp("["+_+S+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+S+"]")},g.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var _=this._input.read(this._match_pattern);if(_===" ")this.whitespace_before_token=" ";else if(_){var S=this.__split(this._newline_regexp,_);this.newline_count=S.length-1,this.whitespace_before_token=S[this.newline_count]}return _},g.prototype.matching=function(_,S){var T=this._create();return T.__set_whitespace_patterns(_,S),T._update(),T},g.prototype._create=function(){return new g(this._input,this)},g.prototype.__split=function(_,S){_.lastIndex=0;for(var T=0,B=[],se=_.exec(S);se;)B.push(S.substring(T,se.index)),T=se.index+se[0].length,se=_.exec(S);return T<S.length?B.push(S.substring(T,S.length)):B.push(""),B},re.exports.WhitespacePattern=g},function(re){function o(I,k){this._input=I,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,k&&(this._starting_pattern=this._input.get_regexp(k._starting_pattern,!0),this._match_pattern=this._input.get_regexp(k._match_pattern,!0),this._until_pattern=this._input.get_regexp(k._until_pattern),this._until_after=k._until_after)}o.prototype.read=function(){var I=this._input.read(this._starting_pattern);return(!this._starting_pattern||I)&&(I+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),I},o.prototype.read_match=function(){return this._input.match(this._match_pattern)},o.prototype.until_after=function(I){var k=this._create();return k._until_after=!0,k._until_pattern=this._input.get_regexp(I),k._update(),k},o.prototype.until=function(I){var k=this._create();return k._until_after=!1,k._until_pattern=this._input.get_regexp(I),k._update(),k},o.prototype.starting_with=function(I){var k=this._create();return k._starting_pattern=this._input.get_regexp(I,!0),k._update(),k},o.prototype.matching=function(I){var k=this._create();return k._match_pattern=this._input.get_regexp(I,!0),k._update(),k},o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){},re.exports.Pattern=o},function(re){function o(I,k){I=typeof I=="string"?I:I.source,k=typeof k=="string"?k:k.source,this.__directives_block_pattern=new RegExp(I+/ beautify( \w+[:]\w+)+ /.source+k,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(I+/\sbeautify\signore:end\s/.source+k,"g")}o.prototype.get_directives=function(I){if(!I.match(this.__directives_block_pattern))return null;var k={};this.__directive_pattern.lastIndex=0;for(var g=this.__directive_pattern.exec(I);g;)k[g[1]]=g[2],g=this.__directive_pattern.exec(I);return k},o.prototype.readIgnored=function(I){return I.readUntilAfter(this.__directives_end_ignore_pattern)},re.exports.Directives=o},function(re,o,I){var k=I(12).Pattern,g={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function _(S,T){k.call(this,S,T),this.__template_pattern=null,this._disabled=Object.assign({},g),this._excluded=Object.assign({},g),T&&(this.__template_pattern=this._input.get_regexp(T.__template_pattern),this._excluded=Object.assign(this._excluded,T._excluded),this._disabled=Object.assign(this._disabled,T._disabled));var B=new k(S);this.__patterns={handlebars_comment:B.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:B.starting_with(/{{{/).until_after(/}}}/),handlebars:B.starting_with(/{{/).until_after(/}}/),php:B.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:B.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:B.starting_with(/{%/).until_after(/%}/),django_value:B.starting_with(/{{/).until_after(/}}/),django_comment:B.starting_with(/{#/).until_after(/#}/),smarty:B.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:B.starting_with(/{\*/).until_after(/\*}/),smarty_literal:B.starting_with(/{literal}/).until_after(/{\/literal}/)}}_.prototype=new k,_.prototype._create=function(){return new _(this._input,this)},_.prototype._update=function(){this.__set_templated_pattern()},_.prototype.disable=function(S){var T=this._create();return T._disabled[S]=!0,T._update(),T},_.prototype.read_options=function(S){var T=this._create();for(var B in g)T._disabled[B]=S.templating.indexOf(B)===-1;return T._update(),T},_.prototype.exclude=function(S){var T=this._create();return T._excluded[S]=!0,T._update(),T},_.prototype.read=function(){var S="";this._match_pattern?S=this._input.read(this._starting_pattern):S=this._input.read(this._starting_pattern,this.__template_pattern);for(var T=this._read_template();T;)this._match_pattern?T+=this._input.read(this._match_pattern):T+=this._input.readUntil(this.__template_pattern),S+=T,T=this._read_template();return this._until_after&&(S+=this._input.readUntilAfter(this._until_pattern)),S},_.prototype.__set_templated_pattern=function(){var S=[];this._disabled.php||S.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||S.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||S.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||S.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(S.push(this.__patterns.django._starting_pattern.source),S.push(this.__patterns.django_value._starting_pattern.source),S.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||S.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&S.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+S.join("|")+")")},_.prototype._read_template=function(){var S="",T=this._input.peek();if(T==="<"){var B=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&B==="?"&&(S=S||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&B==="%"&&(S=S||this.__patterns.erb.read())}else T==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(S=S||this.__patterns.handlebars_comment.read(),S=S||this.__patterns.handlebars_unescaped.read(),S=S||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(S=S||this.__patterns.django_value.read()),this._excluded.django||(S=S||this.__patterns.django_comment.read(),S=S||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(S=S||this.__patterns.smarty_comment.read(),S=S||this.__patterns.smarty_literal.read(),S=S||this.__patterns.smarty.read()));return S},re.exports.TemplatablePattern=_}],A={};function m(re){var o=A[re];if(o!==void 0)return o.exports;var I=A[re]={exports:{}};return ce[re](I,I.exports,m),I.exports}var w=m(0);K=w})();var q=K;p=[],O=function(){return{js_beautify:q}}.apply(Ze,p),O!==void 0&&(Xt.exports=O)})()},15342:function(Xt){(function(p,O){Xt.exports=O()})(typeof self!="undefined"?self:this,function(){return function(Ze){var p={};function O(K){if(p[K])return p[K].exports;var q=p[K]={i:K,l:!1,exports:{}};return Ze[K].call(q.exports,q,q.exports,O),q.l=!0,q.exports}return O.m=Ze,O.c=p,O.d=function(K,q,ce){O.o(K,q)||Object.defineProperty(K,q,{enumerable:!0,get:ce})},O.r=function(K){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(K,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(K,"__esModule",{value:!0})},O.t=function(K,q){if(q&1&&(K=O(K)),q&8||q&4&&typeof K=="object"&&K&&K.__esModule)return K;var ce=Object.create(null);if(O.r(ce),Object.defineProperty(ce,"default",{enumerable:!0,value:K}),q&2&&typeof K!="string")for(var A in K)O.d(ce,A,function(m){return K[m]}.bind(null,A));return ce},O.n=function(K){var q=K&&K.__esModule?function(){return K.default}:function(){return K};return O.d(q,"a",q),q},O.o=function(K,q){return Object.prototype.hasOwnProperty.call(K,q)},O.p="",O(O.s=1)}([function(Ze,p,O){},function(Ze,p,O){"use strict";O.r(p);var K=O(0),q=function(){function ne(l,d,h){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=l,this.start=d,this.end=h}return ne.range=function(d,h){return h?!d||!d.loc||!h.loc||d.loc.lexer!==h.loc.lexer?null:new ne(d.loc.lexer,d.loc.start,h.loc.end):d&&d.loc},ne}(),ce=function(){function ne(d,h){this.text=void 0,this.loc=void 0,this.text=d,this.loc=h}var l=ne.prototype;return l.range=function(h,b){return new ne(b,q.range(this,h))},ne}(),A=function ne(l,d){this.position=void 0;var h="KaTeX parse error: "+l,b,F=d&&d.loc;if(F&&F.start<=F.end){var ie=F.lexer.input;b=F.start;var Ie=F.end;b===ie.length?h+=" at end of input: ":h+=" at position "+(b+1)+": ";var ke=ie.slice(b,Ie).replace(/[^]/g,"$&\u0332"),Qe;b>15?Qe="\u2026"+ie.slice(b-15,b):Qe=ie.slice(0,b);var ht;Ie+15<ie.length?ht=ie.slice(Ie,Ie+15)+"\u2026":ht=ie.slice(Ie),h+=Qe+ke+ht}var At=new Error(h);return At.name="ParseError",At.__proto__=ne.prototype,At.position=b,At};A.prototype.__proto__=Error.prototype;var m=A,w=function(l,d){return l.indexOf(d)!==-1},re=function(l,d){return l===void 0?d:l},o=/([A-Z])/g,I=function(l){return l.replace(o,"-$1").toLowerCase()},k={"&":"&",">":">","<":"<",'"':""","'":"'"},g=/[&><"']/g;function _(ne){return String(ne).replace(g,function(l){return k[l]})}var S=function ne(l){return l.type==="ordgroup"||l.type==="color"?l.body.length===1?ne(l.body[0]):l:l.type==="font"?ne(l.body):l},T=function(l){var d=S(l);return d.type==="mathord"||d.type==="textord"||d.type==="atom"},B=function(l){if(!l)throw new Error("Expected non-null, but got "+String(l));return l},se=function(l){var d=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(l);return d!=null?d[1]:"_relative"},z={contains:w,deflt:re,escape:_,hyphenate:I,getBaseElem:S,isCharacterBox:T,protocolFromUrl:se},$=function(){function ne(d){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,d=d||{},this.displayMode=z.deflt(d.displayMode,!1),this.output=z.deflt(d.output,"htmlAndMathml"),this.leqno=z.deflt(d.leqno,!1),this.fleqn=z.deflt(d.fleqn,!1),this.throwOnError=z.deflt(d.throwOnError,!0),this.errorColor=z.deflt(d.errorColor,"#cc0000"),this.macros=d.macros||{},this.minRuleThickness=Math.max(0,z.deflt(d.minRuleThickness,0)),this.colorIsTextColor=z.deflt(d.colorIsTextColor,!1),this.strict=z.deflt(d.strict,"warn"),this.trust=z.deflt(d.trust,!1),this.maxSize=Math.max(0,z.deflt(d.maxSize,1/0)),this.maxExpand=Math.max(0,z.deflt(d.maxExpand,1e3))}var l=ne.prototype;return l.reportNonstrict=function(h,b,F){var ie=this.strict;if(typeof ie=="function"&&(ie=ie(h,b,F)),!(!ie||ie==="ignore")){if(ie===!0||ie==="error")throw new m("LaTeX-incompatible input and strict mode is set to 'error': "+(b+" ["+h+"]"),F);ie==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(b+" ["+h+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+ie+"': "+b+" ["+h+"]"))}},l.useStrictBehavior=function(h,b,F){var ie=this.strict;if(typeof ie=="function")try{ie=ie(h,b,F)}catch(Ie){ie="error"}return!ie||ie==="ignore"?!1:ie===!0||ie==="error"?!0:ie==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(b+" ["+h+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+ie+"': "+b+" ["+h+"]")),!1)},l.isTrusted=function(h){h.url&&!h.protocol&&(h.protocol=z.protocolFromUrl(h.url));var b=typeof this.trust=="function"?this.trust(h):this.trust;return!!b},ne}(),G=function(){function ne(d,h,b){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=d,this.size=h,this.cramped=b}var l=ne.prototype;return l.sup=function(){return ge[de[this.id]]},l.sub=function(){return ge[W[this.id]]},l.fracNum=function(){return ge[be[this.id]]},l.fracDen=function(){return ge[N[this.id]]},l.cramp=function(){return ge[ue[this.id]]},l.text=function(){return ge[J[this.id]]},l.isTight=function(){return this.size>=2},ne}(),X=0,L=1,D=2,Y=3,j=4,xe=5,Ce=6,Ee=7,ge=[new G(X,0,!1),new G(L,0,!0),new G(D,1,!1),new G(Y,1,!0),new G(j,2,!1),new G(xe,2,!0),new G(Ce,3,!1),new G(Ee,3,!0)],de=[j,xe,j,xe,Ce,Ee,Ce,Ee],W=[xe,xe,xe,xe,Ee,Ee,Ee,Ee],be=[D,Y,j,xe,Ce,Ee,Ce,Ee],N=[Y,Y,xe,xe,Ee,Ee,Ee,Ee],ue=[L,L,Y,Y,xe,xe,Ee,Ee],J=[X,L,D,Y,D,Y,D,Y],v={DISPLAY:ge[X],TEXT:ge[D],SCRIPT:ge[j],SCRIPTSCRIPT:ge[Ce]},x=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Z(ne){for(var l=0;l<x.length;l++)for(var d=x[l],h=0;h<d.blocks.length;h++){var b=d.blocks[h];if(ne>=b[0]&&ne<=b[1])return d.name}return null}var me=[];x.forEach(function(ne){return ne.blocks.forEach(function(l){return me.push.apply(me,l)})});function Be(ne){for(var l=0;l<me.length;l+=2)if(ne>=me[l]&&ne<=me[l+1])return!0;return!1}var Ue=80,ze=function(l,d){return"M95,"+(622+l+d)+`
|
|
|
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)+" "+d+"h400000v"+(40+l)+"h-400000z"},qe=function(l,d){return"M263,"+(601+l+d)+`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)+" "+d+"h400000v"+(40+l)+"h-400000z"},mt=function(l,d){return"M983 "+(10+l+d)+`
|
|
|
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)+" "+d+"h400000v"+(40+l)+"h-400000z"},gt=function(l,d){return"M424,"+(2398+l+d)+`
|
|
|
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)+" "+d+`
|
|
|
h400000v`+(40+l)+"h-400000z"},at=function(l,d){return"M473,"+(2713+l+d)+`
|
|
|
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)+" "+d+"h400000v"+(40+l)+"H1017.7z"},Lt=function(l,d,h){var b=h-54-d-l;return"M702 "+(l+d)+"H400000"+(40+l)+`
|
|
|
H742v`+b+`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 `+d+"H400000v"+(40+l)+"H742z"},tn=function(l,d,h){d=1e3*d;var b="";switch(l){case"sqrtMain":b=ze(d,Ue);break;case"sqrtSize1":b=qe(d,Ue);break;case"sqrtSize2":b=mt(d,Ue);break;case"sqrtSize3":b=gt(d,Ue);break;case"sqrtSize4":b=at(d,Ue);break;case"sqrtTall":b=Lt(d,Ue,h)}return b},Rt={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`},Ht=function(){function ne(d){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=d,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var l=ne.prototype;return l.hasClass=function(h){return z.contains(this.classes,h)},l.toNode=function(){for(var h=document.createDocumentFragment(),b=0;b<this.children.length;b++)h.appendChild(this.children[b].toNode());return h},l.toMarkup=function(){for(var h="",b=0;b<this.children.length;b++)h+=this.children[b].toMarkup();return h},l.toText=function(){var h=function(F){return F.toText()};return this.children.map(h).join("")},ne}(),ut=function(l){return l.filter(function(d){return d}).join(" ")},wt=function(l,d,h){if(this.classes=l||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=h||{},d){d.style.isTight()&&this.classes.push("mtight");var b=d.getColor();b&&(this.style.color=b)}},he=function(l){var d=document.createElement(l);d.className=ut(this.classes);for(var h in this.style)this.style.hasOwnProperty(h)&&(d.style[h]=this.style[h]);for(var b in this.attributes)this.attributes.hasOwnProperty(b)&&d.setAttribute(b,this.attributes[b]);for(var F=0;F<this.children.length;F++)d.appendChild(this.children[F].toNode());return d},pe=function(l){var d="<"+l;this.classes.length&&(d+=' class="'+z.escape(ut(this.classes))+'"');var h="";for(var b in this.style)this.style.hasOwnProperty(b)&&(h+=z.hyphenate(b)+":"+this.style[b]+";");h&&(d+=' style="'+z.escape(h)+'"');for(var F in this.attributes)this.attributes.hasOwnProperty(F)&&(d+=" "+F+'="'+z.escape(this.attributes[F])+'"');d+=">";for(var ie=0;ie<this.children.length;ie++)d+=this.children[ie].toMarkup();return d+="</"+l+">",d},le=function(){function ne(d,h,b,F){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,wt.call(this,d,b,F),this.children=h||[]}var l=ne.prototype;return l.setAttribute=function(h,b){this.attributes[h]=b},l.hasClass=function(h){return z.contains(this.classes,h)},l.toNode=function(){return he.call(this,"span")},l.toMarkup=function(){return pe.call(this,"span")},ne}(),Q=function(){function ne(d,h,b,F){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,wt.call(this,h,F),this.children=b||[],this.setAttribute("href",d)}var l=ne.prototype;return l.setAttribute=function(h,b){this.attributes[h]=b},l.hasClass=function(h){return z.contains(this.classes,h)},l.toNode=function(){return he.call(this,"a")},l.toMarkup=function(){return pe.call(this,"a")},ne}(),Re=function(){function ne(d,h,b){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=h,this.src=d,this.classes=["mord"],this.style=b}var l=ne.prototype;return l.hasClass=function(h){return z.contains(this.classes,h)},l.toNode=function(){var h=document.createElement("img");h.src=this.src,h.alt=this.alt,h.className="mord";for(var b in this.style)this.style.hasOwnProperty(b)&&(h.style[b]=this.style[b]);return h},l.toMarkup=function(){var h="<img src='"+this.src+" 'alt='"+this.alt+"' ",b="";for(var F in this.style)this.style.hasOwnProperty(F)&&(b+=z.hyphenate(F)+":"+this.style[F]+";");return b&&(h+=' style="'+z.escape(b)+'"'),h+="'/>",h},ne}(),H={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},R=function(){function ne(d,h,b,F,ie,Ie,ke,Qe){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=d,this.height=h||0,this.depth=b||0,this.italic=F||0,this.skew=ie||0,this.width=Ie||0,this.classes=ke||[],this.style=Qe||{},this.maxFontSize=0;var ht=Z(this.text.charCodeAt(0));ht&&this.classes.push(ht+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=H[this.text])}var l=ne.prototype;return l.hasClass=function(h){return z.contains(this.classes,h)},l.toNode=function(){var h=document.createTextNode(this.text),b=null;this.italic>0&&(b=document.createElement("span"),b.style.marginRight=this.italic+"em"),this.classes.length>0&&(b=b||document.createElement("span"),b.className=ut(this.classes));for(var F in this.style)this.style.hasOwnProperty(F)&&(b=b||document.createElement("span"),b.style[F]=this.style[F]);return b?(b.appendChild(h),b):h},l.toMarkup=function(){var h=!1,b="<span";this.classes.length&&(h=!0,b+=' class="',b+=z.escape(ut(this.classes)),b+='"');var F="";this.italic>0&&(F+="margin-right:"+this.italic+"em;");for(var ie in this.style)this.style.hasOwnProperty(ie)&&(F+=z.hyphenate(ie)+":"+this.style[ie]+";");F&&(h=!0,b+=' style="'+z.escape(F)+'"');var Ie=z.escape(this.text);return h?(b+=">",b+=Ie,b+="</span>",b):Ie},ne}(),P=function(){function ne(d,h){this.children=void 0,this.attributes=void 0,this.children=d||[],this.attributes=h||{}}var l=ne.prototype;return l.toNode=function(){var h="http://www.w3.org/2000/svg",b=document.createElementNS(h,"svg");for(var F in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,F)&&b.setAttribute(F,this.attributes[F]);for(var ie=0;ie<this.children.length;ie++)b.appendChild(this.children[ie].toNode());return b},l.toMarkup=function(){var h="<svg";for(var b in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,b)&&(h+=" "+b+"='"+this.attributes[b]+"'");h+=">";for(var F=0;F<this.children.length;F++)h+=this.children[F].toMarkup();return h+="</svg>",h},ne}(),fe=function(){function ne(d,h){this.pathName=void 0,this.alternate=void 0,this.pathName=d,this.alternate=h}var l=ne.prototype;return l.toNode=function(){var h="http://www.w3.org/2000/svg",b=document.createElementNS(h,"path");return this.alternate?b.setAttribute("d",this.alternate):b.setAttribute("d",Rt[this.pathName]),b},l.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+Rt[this.pathName]+"'/>"},ne}(),oe=function(){function ne(d){this.attributes=void 0,this.attributes=d||{}}var l=ne.prototype;return l.toNode=function(){var h="http://www.w3.org/2000/svg",b=document.createElementNS(h,"line");for(var F in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,F)&&b.setAttribute(F,this.attributes[F]);return b},l.toMarkup=function(){var h="<line";for(var b in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,b)&&(h+=" "+b+"='"+this.attributes[b]+"'");return h+="/>",h},ne}();function te(ne){if(ne instanceof R)return ne;throw new Error("Expected symbolNode but got "+String(ne)+".")}function Te(ne){if(ne instanceof le)return ne;throw new Error("Expected span<HtmlDomNode> but got "+String(ne)+".")}var je={"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]}},Me={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]},Fe={\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 Je(ne,l){je[ne]=l}function Xe(ne,l,d){if(!je[l])throw new Error("Font metrics not found for font: "+l+".");var h=ne.charCodeAt(0),b=je[l][h];if(!b&&ne[0]in Fe&&(h=Fe[ne[0]].charCodeAt(0),b=je[l][h]),!b&&d==="text"&&Be(h)&&(b=je[l][77]),b)return{depth:b[0],height:b[1],italic:b[2],skew:b[3],width:b[4]}}var Ve={};function xt(ne){var l;if(ne>=5?l=0:ne>=3?l=1:l=2,!Ve[l]){var d=Ve[l]={cssEmPerMu:Me.quad[l]/18};for(var h in Me)Me.hasOwnProperty(h)&&(d[h]=Me[h][l])}return Ve[l]}var Dt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},vt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Bt={math:{},text:{}},Zt=Bt;function C(ne,l,d,h,b,F){Bt[ne][b]={font:l,group:d,replace:h},F&&h&&(Bt[ne][h]=Bt[ne][b])}var M="math",yt="text",ye="main",Ne="ams",Sn="accent-token",it="bin",nt="close",tt="inner",we="mathord",Oe="op-token",Le="open",rt="punct",_e="rel",Qt="spacing",He="textord";C(M,ye,_e,"\u2261","\\equiv",!0),C(M,ye,_e,"\u227A","\\prec",!0),C(M,ye,_e,"\u227B","\\succ",!0),C(M,ye,_e,"\u223C","\\sim",!0),C(M,ye,_e,"\u22A5","\\perp"),C(M,ye,_e,"\u2AAF","\\preceq",!0),C(M,ye,_e,"\u2AB0","\\succeq",!0),C(M,ye,_e,"\u2243","\\simeq",!0),C(M,ye,_e,"\u2223","\\mid",!0),C(M,ye,_e,"\u226A","\\ll",!0),C(M,ye,_e,"\u226B","\\gg",!0),C(M,ye,_e,"\u224D","\\asymp",!0),C(M,ye,_e,"\u2225","\\parallel"),C(M,ye,_e,"\u22C8","\\bowtie",!0),C(M,ye,_e,"\u2323","\\smile",!0),C(M,ye,_e,"\u2291","\\sqsubseteq",!0),C(M,ye,_e,"\u2292","\\sqsupseteq",!0),C(M,ye,_e,"\u2250","\\doteq",!0),C(M,ye,_e,"\u2322","\\frown",!0),C(M,ye,_e,"\u220B","\\ni",!0),C(M,ye,_e,"\u221D","\\propto",!0),C(M,ye,_e,"\u22A2","\\vdash",!0),C(M,ye,_e,"\u22A3","\\dashv",!0),C(M,ye,_e,"\u220B","\\owns"),C(M,ye,rt,".","\\ldotp"),C(M,ye,rt,"\u22C5","\\cdotp"),C(M,ye,He,"#","\\#"),C(yt,ye,He,"#","\\#"),C(M,ye,He,"&","\\&"),C(yt,ye,He,"&","\\&"),C(M,ye,He,"\u2135","\\aleph",!0),C(M,ye,He,"\u2200","\\forall",!0),C(M,ye,He,"\u210F","\\hbar",!0),C(M,ye,He,"\u2203","\\exists",!0),C(M,ye,He,"\u2207","\\nabla",!0),C(M,ye,He,"\u266D","\\flat",!0),C(M,ye,He,"\u2113","\\ell",!0),C(M,ye,He,"\u266E","\\natural",!0),C(M,ye,He,"\u2663","\\clubsuit",!0),C(M,ye,He,"\u2118","\\wp",!0),C(M,ye,He,"\u266F","\\sharp",!0),C(M,ye,He,"\u2662","\\diamondsuit",!0),C(M,ye,He,"\u211C","\\Re",!0),C(M,ye,He,"\u2661","\\heartsuit",!0),C(M,ye,He,"\u2111","\\Im",!0),C(M,ye,He,"\u2660","\\spadesuit",!0),C(yt,ye,He,"\xA7","\\S",!0),C(yt,ye,He,"\xB6","\\P",!0),C(M,ye,He,"\u2020","\\dag"),C(yt,ye,He,"\u2020","\\dag"),C(yt,ye,He,"\u2020","\\textdagger"),C(M,ye,He,"\u2021","\\ddag"),C(yt,ye,He,"\u2021","\\ddag"),C(yt,ye,He,"\u2021","\\textdaggerdbl"),C(M,ye,nt,"\u23B1","\\rmoustache",!0),C(M,ye,Le,"\u23B0","\\lmoustache",!0),C(M,ye,nt,"\u27EF","\\rgroup",!0),C(M,ye,Le,"\u27EE","\\lgroup",!0),C(M,ye,it,"\u2213","\\mp",!0),C(M,ye,it,"\u2296","\\ominus",!0),C(M,ye,it,"\u228E","\\uplus",!0),C(M,ye,it,"\u2293","\\sqcap",!0),C(M,ye,it,"\u2217","\\ast"),C(M,ye,it,"\u2294","\\sqcup",!0),C(M,ye,it,"\u25EF","\\bigcirc"),C(M,ye,it,"\u2219","\\bullet"),C(M,ye,it,"\u2021","\\ddagger"),C(M,ye,it,"\u2240","\\wr",!0),C(M,ye,it,"\u2A3F","\\amalg"),C(M,ye,it,"&","\\And"),C(M,ye,_e,"\u27F5","\\longleftarrow",!0),C(M,ye,_e,"\u21D0","\\Leftarrow",!0),C(M,ye,_e,"\u27F8","\\Longleftarrow",!0),C(M,ye,_e,"\u27F6","\\longrightarrow",!0),C(M,ye,_e,"\u21D2","\\Rightarrow",!0),C(M,ye,_e,"\u27F9","\\Longrightarrow",!0),C(M,ye,_e,"\u2194","\\leftrightarrow",!0),C(M,ye,_e,"\u27F7","\\longleftrightarrow",!0),C(M,ye,_e,"\u21D4","\\Leftrightarrow",!0),C(M,ye,_e,"\u27FA","\\Longleftrightarrow",!0),C(M,ye,_e,"\u21A6","\\mapsto",!0),C(M,ye,_e,"\u27FC","\\longmapsto",!0),C(M,ye,_e,"\u2197","\\nearrow",!0),C(M,ye,_e,"\u21A9","\\hookleftarrow",!0),C(M,ye,_e,"\u21AA","\\hookrightarrow",!0),C(M,ye,_e,"\u2198","\\searrow",!0),C(M,ye,_e,"\u21BC","\\leftharpoonup",!0),C(M,ye,_e,"\u21C0","\\rightharpoonup",!0),C(M,ye,_e,"\u2199","\\swarrow",!0),C(M,ye,_e,"\u21BD","\\leftharpoondown",!0),C(M,ye,_e,"\u21C1","\\rightharpoondown",!0),C(M,ye,_e,"\u2196","\\nwarrow",!0),C(M,ye,_e,"\u21CC","\\rightleftharpoons",!0),C(M,Ne,_e,"\u226E","\\nless",!0),C(M,Ne,_e,"\uE010","\\@nleqslant"),C(M,Ne,_e,"\uE011","\\@nleqq"),C(M,Ne,_e,"\u2A87","\\lneq",!0),C(M,Ne,_e,"\u2268","\\lneqq",!0),C(M,Ne,_e,"\uE00C","\\@lvertneqq"),C(M,Ne,_e,"\u22E6","\\lnsim",!0),C(M,Ne,_e,"\u2A89","\\lnapprox",!0),C(M,Ne,_e,"\u2280","\\nprec",!0),C(M,Ne,_e,"\u22E0","\\npreceq",!0),C(M,Ne,_e,"\u22E8","\\precnsim",!0),C(M,Ne,_e,"\u2AB9","\\precnapprox",!0),C(M,Ne,_e,"\u2241","\\nsim",!0),C(M,Ne,_e,"\uE006","\\@nshortmid"),C(M,Ne,_e,"\u2224","\\nmid",!0),C(M,Ne,_e,"\u22AC","\\nvdash",!0),C(M,Ne,_e,"\u22AD","\\nvDash",!0),C(M,Ne,_e,"\u22EA","\\ntriangleleft"),C(M,Ne,_e,"\u22EC","\\ntrianglelefteq",!0),C(M,Ne,_e,"\u228A","\\subsetneq",!0),C(M,Ne,_e,"\uE01A","\\@varsubsetneq"),C(M,Ne,_e,"\u2ACB","\\subsetneqq",!0),C(M,Ne,_e,"\uE017","\\@varsubsetneqq"),C(M,Ne,_e,"\u226F","\\ngtr",!0),C(M,Ne,_e,"\uE00F","\\@ngeqslant"),C(M,Ne,_e,"\uE00E","\\@ngeqq"),C(M,Ne,_e,"\u2A88","\\gneq",!0),C(M,Ne,_e,"\u2269","\\gneqq",!0),C(M,Ne,_e,"\uE00D","\\@gvertneqq"),C(M,Ne,_e,"\u22E7","\\gnsim",!0),C(M,Ne,_e,"\u2A8A","\\gnapprox",!0),C(M,Ne,_e,"\u2281","\\nsucc",!0),C(M,Ne,_e,"\u22E1","\\nsucceq",!0),C(M,Ne,_e,"\u22E9","\\succnsim",!0),C(M,Ne,_e,"\u2ABA","\\succnapprox",!0),C(M,Ne,_e,"\u2246","\\ncong",!0),C(M,Ne,_e,"\uE007","\\@nshortparallel"),C(M,Ne,_e,"\u2226","\\nparallel",!0),C(M,Ne,_e,"\u22AF","\\nVDash",!0),C(M,Ne,_e,"\u22EB","\\ntriangleright"),C(M,Ne,_e,"\u22ED","\\ntrianglerighteq",!0),C(M,Ne,_e,"\uE018","\\@nsupseteqq"),C(M,Ne,_e,"\u228B","\\supsetneq",!0),C(M,Ne,_e,"\uE01B","\\@varsupsetneq"),C(M,Ne,_e,"\u2ACC","\\supsetneqq",!0),C(M,Ne,_e,"\uE019","\\@varsupsetneqq"),C(M,Ne,_e,"\u22AE","\\nVdash",!0),C(M,Ne,_e,"\u2AB5","\\precneqq",!0),C(M,Ne,_e,"\u2AB6","\\succneqq",!0),C(M,Ne,_e,"\uE016","\\@nsubseteqq"),C(M,Ne,it,"\u22B4","\\unlhd"),C(M,Ne,it,"\u22B5","\\unrhd"),C(M,Ne,_e,"\u219A","\\nleftarrow",!0),C(M,Ne,_e,"\u219B","\\nrightarrow",!0),C(M,Ne,_e,"\u21CD","\\nLeftarrow",!0),C(M,Ne,_e,"\u21CF","\\nRightarrow",!0),C(M,Ne,_e,"\u21AE","\\nleftrightarrow",!0),C(M,Ne,_e,"\u21CE","\\nLeftrightarrow",!0),C(M,Ne,_e,"\u25B3","\\vartriangle"),C(M,Ne,He,"\u210F","\\hslash"),C(M,Ne,He,"\u25BD","\\triangledown"),C(M,Ne,He,"\u25CA","\\lozenge"),C(M,Ne,He,"\u24C8","\\circledS"),C(M,Ne,He,"\xAE","\\circledR"),C(yt,Ne,He,"\xAE","\\circledR"),C(M,Ne,He,"\u2221","\\measuredangle",!0),C(M,Ne,He,"\u2204","\\nexists"),C(M,Ne,He,"\u2127","\\mho"),C(M,Ne,He,"\u2132","\\Finv",!0),C(M,Ne,He,"\u2141","\\Game",!0),C(M,Ne,He,"\u2035","\\backprime"),C(M,Ne,He,"\u25B2","\\blacktriangle"),C(M,Ne,He,"\u25BC","\\blacktriangledown"),C(M,Ne,He,"\u25A0","\\blacksquare"),C(M,Ne,He,"\u29EB","\\blacklozenge"),C(M,Ne,He,"\u2605","\\bigstar"),C(M,Ne,He,"\u2222","\\sphericalangle",!0),C(M,Ne,He,"\u2201","\\complement",!0),C(M,Ne,He,"\xF0","\\eth",!0),C(M,Ne,He,"\u2571","\\diagup"),C(M,Ne,He,"\u2572","\\diagdown"),C(M,Ne,He,"\u25A1","\\square"),C(M,Ne,He,"\u25A1","\\Box"),C(M,Ne,He,"\u25CA","\\Diamond"),C(M,Ne,He,"\xA5","\\yen",!0),C(yt,Ne,He,"\xA5","\\yen",!0),C(M,Ne,He,"\u2713","\\checkmark",!0),C(yt,Ne,He,"\u2713","\\checkmark"),C(M,Ne,He,"\u2136","\\beth",!0),C(M,Ne,He,"\u2138","\\daleth",!0),C(M,Ne,He,"\u2137","\\gimel",!0),C(M,Ne,He,"\u03DD","\\digamma",!0),C(M,Ne,He,"\u03F0","\\varkappa"),C(M,Ne,Le,"\u250C","\\ulcorner",!0),C(M,Ne,nt,"\u2510","\\urcorner",!0),C(M,Ne,Le,"\u2514","\\llcorner",!0),C(M,Ne,nt,"\u2518","\\lrcorner",!0),C(M,Ne,_e,"\u2266","\\leqq",!0),C(M,Ne,_e,"\u2A7D","\\leqslant",!0),C(M,Ne,_e,"\u2A95","\\eqslantless",!0),C(M,Ne,_e,"\u2272","\\lesssim",!0),C(M,Ne,_e,"\u2A85","\\lessapprox",!0),C(M,Ne,_e,"\u224A","\\approxeq",!0),C(M,Ne,it,"\u22D6","\\lessdot"),C(M,Ne,_e,"\u22D8","\\lll",!0),C(M,Ne,_e,"\u2276","\\lessgtr",!0),C(M,Ne,_e,"\u22DA","\\lesseqgtr",!0),C(M,Ne,_e,"\u2A8B","\\lesseqqgtr",!0),C(M,Ne,_e,"\u2251","\\doteqdot"),C(M,Ne,_e,"\u2253","\\risingdotseq",!0),C(M,Ne,_e,"\u2252","\\fallingdotseq",!0),C(M,Ne,_e,"\u223D","\\backsim",!0),C(M,Ne,_e,"\u22CD","\\backsimeq",!0),C(M,Ne,_e,"\u2AC5","\\subseteqq",!0),C(M,Ne,_e,"\u22D0","\\Subset",!0),C(M,Ne,_e,"\u228F","\\sqsubset",!0),C(M,Ne,_e,"\u227C","\\preccurlyeq",!0),C(M,Ne,_e,"\u22DE","\\curlyeqprec",!0),C(M,Ne,_e,"\u227E","\\precsim",!0),C(M,Ne,_e,"\u2AB7","\\precapprox",!0),C(M,Ne,_e,"\u22B2","\\vartriangleleft"),C(M,Ne,_e,"\u22B4","\\trianglelefteq"),C(M,Ne,_e,"\u22A8","\\vDash",!0),C(M,Ne,_e,"\u22AA","\\Vvdash",!0),C(M,Ne,_e,"\u2323","\\smallsmile"),C(M,Ne,_e,"\u2322","\\smallfrown"),C(M,Ne,_e,"\u224F","\\bumpeq",!0),C(M,Ne,_e,"\u224E","\\Bumpeq",!0),C(M,Ne,_e,"\u2267","\\geqq",!0),C(M,Ne,_e,"\u2A7E","\\geqslant",!0),C(M,Ne,_e,"\u2A96","\\eqslantgtr",!0),C(M,Ne,_e,"\u2273","\\gtrsim",!0),C(M,Ne,_e,"\u2A86","\\gtrapprox",!0),C(M,Ne,it,"\u22D7","\\gtrdot"),C(M,Ne,_e,"\u22D9","\\ggg",!0),C(M,Ne,_e,"\u2277","\\gtrless",!0),C(M,Ne,_e,"\u22DB","\\gtreqless",!0),C(M,Ne,_e,"\u2A8C","\\gtreqqless",!0),C(M,Ne,_e,"\u2256","\\eqcirc",!0),C(M,Ne,_e,"\u2257","\\circeq",!0),C(M,Ne,_e,"\u225C","\\triangleq",!0),C(M,Ne,_e,"\u223C","\\thicksim"),C(M,Ne,_e,"\u2248","\\thickapprox"),C(M,Ne,_e,"\u2AC6","\\supseteqq",!0),C(M,Ne,_e,"\u22D1","\\Supset",!0),C(M,Ne,_e,"\u2290","\\sqsupset",!0),C(M,Ne,_e,"\u227D","\\succcurlyeq",!0),C(M,Ne,_e,"\u22DF","\\curlyeqsucc",!0),C(M,Ne,_e,"\u227F","\\succsim",!0),C(M,Ne,_e,"\u2AB8","\\succapprox",!0),C(M,Ne,_e,"\u22B3","\\vartriangleright"),C(M,Ne,_e,"\u22B5","\\trianglerighteq"),C(M,Ne,_e,"\u22A9","\\Vdash",!0),C(M,Ne,_e,"\u2223","\\shortmid"),C(M,Ne,_e,"\u2225","\\shortparallel"),C(M,Ne,_e,"\u226C","\\between",!0),C(M,Ne,_e,"\u22D4","\\pitchfork",!0),C(M,Ne,_e,"\u221D","\\varpropto"),C(M,Ne,_e,"\u25C0","\\blacktriangleleft"),C(M,Ne,_e,"\u2234","\\therefore",!0),C(M,Ne,_e,"\u220D","\\backepsilon"),C(M,Ne,_e,"\u25B6","\\blacktriangleright"),C(M,Ne,_e,"\u2235","\\because",!0),C(M,Ne,_e,"\u22D8","\\llless"),C(M,Ne,_e,"\u22D9","\\gggtr"),C(M,Ne,it,"\u22B2","\\lhd"),C(M,Ne,it,"\u22B3","\\rhd"),C(M,Ne,_e,"\u2242","\\eqsim",!0),C(M,ye,_e,"\u22C8","\\Join"),C(M,Ne,_e,"\u2251","\\Doteq",!0),C(M,Ne,it,"\u2214","\\dotplus",!0),C(M,Ne,it,"\u2216","\\smallsetminus"),C(M,Ne,it,"\u22D2","\\Cap",!0),C(M,Ne,it,"\u22D3","\\Cup",!0),C(M,Ne,it,"\u2A5E","\\doublebarwedge",!0),C(M,Ne,it,"\u229F","\\boxminus",!0),C(M,Ne,it,"\u229E","\\boxplus",!0),C(M,Ne,it,"\u22C7","\\divideontimes",!0),C(M,Ne,it,"\u22C9","\\ltimes",!0),C(M,Ne,it,"\u22CA","\\rtimes",!0),C(M,Ne,it,"\u22CB","\\leftthreetimes",!0),C(M,Ne,it,"\u22CC","\\rightthreetimes",!0),C(M,Ne,it,"\u22CF","\\curlywedge",!0),C(M,Ne,it,"\u22CE","\\curlyvee",!0),C(M,Ne,it,"\u229D","\\circleddash",!0),C(M,Ne,it,"\u229B","\\circledast",!0),C(M,Ne,it,"\u22C5","\\centerdot"),C(M,Ne,it,"\u22BA","\\intercal",!0),C(M,Ne,it,"\u22D2","\\doublecap"),C(M,Ne,it,"\u22D3","\\doublecup"),C(M,Ne,it,"\u22A0","\\boxtimes",!0),C(M,Ne,_e,"\u21E2","\\dashrightarrow",!0),C(M,Ne,_e,"\u21E0","\\dashleftarrow",!0),C(M,Ne,_e,"\u21C7","\\leftleftarrows",!0),C(M,Ne,_e,"\u21C6","\\leftrightarrows",!0),C(M,Ne,_e,"\u21DA","\\Lleftarrow",!0),C(M,Ne,_e,"\u219E","\\twoheadleftarrow",!0),C(M,Ne,_e,"\u21A2","\\leftarrowtail",!0),C(M,Ne,_e,"\u21AB","\\looparrowleft",!0),C(M,Ne,_e,"\u21CB","\\leftrightharpoons",!0),C(M,Ne,_e,"\u21B6","\\curvearrowleft",!0),C(M,Ne,_e,"\u21BA","\\circlearrowleft",!0),C(M,Ne,_e,"\u21B0","\\Lsh",!0),C(M,Ne,_e,"\u21C8","\\upuparrows",!0),C(M,Ne,_e,"\u21BF","\\upharpoonleft",!0),C(M,Ne,_e,"\u21C3","\\downharpoonleft",!0),C(M,Ne,_e,"\u22B8","\\multimap",!0),C(M,Ne,_e,"\u21AD","\\leftrightsquigarrow",!0),C(M,Ne,_e,"\u21C9","\\rightrightarrows",!0),C(M,Ne,_e,"\u21C4","\\rightleftarrows",!0),C(M,Ne,_e,"\u21A0","\\twoheadrightarrow",!0),C(M,Ne,_e,"\u21A3","\\rightarrowtail",!0),C(M,Ne,_e,"\u21AC","\\looparrowright",!0),C(M,Ne,_e,"\u21B7","\\curvearrowright",!0),C(M,Ne,_e,"\u21BB","\\circlearrowright",!0),C(M,Ne,_e,"\u21B1","\\Rsh",!0),C(M,Ne,_e,"\u21CA","\\downdownarrows",!0),C(M,Ne,_e,"\u21BE","\\upharpoonright",!0),C(M,Ne,_e,"\u21C2","\\downharpoonright",!0),C(M,Ne,_e,"\u21DD","\\rightsquigarrow",!0),C(M,Ne,_e,"\u21DD","\\leadsto"),C(M,Ne,_e,"\u21DB","\\Rrightarrow",!0),C(M,Ne,_e,"\u21BE","\\restriction"),C(M,ye,He,"\u2018","`"),C(M,ye,He,"$","\\$"),C(yt,ye,He,"$","\\$"),C(yt,ye,He,"$","\\textdollar"),C(M,ye,He,"%","\\%"),C(yt,ye,He,"%","\\%"),C(M,ye,He,"_","\\_"),C(yt,ye,He,"_","\\_"),C(yt,ye,He,"_","\\textunderscore"),C(M,ye,He,"\u2220","\\angle",!0),C(M,ye,He,"\u221E","\\infty",!0),C(M,ye,He,"\u2032","\\prime"),C(M,ye,He,"\u25B3","\\triangle"),C(M,ye,He,"\u0393","\\Gamma",!0),C(M,ye,He,"\u0394","\\Delta",!0),C(M,ye,He,"\u0398","\\Theta",!0),C(M,ye,He,"\u039B","\\Lambda",!0),C(M,ye,He,"\u039E","\\Xi",!0),C(M,ye,He,"\u03A0","\\Pi",!0),C(M,ye,He,"\u03A3","\\Sigma",!0),C(M,ye,He,"\u03A5","\\Upsilon",!0),C(M,ye,He,"\u03A6","\\Phi",!0),C(M,ye,He,"\u03A8","\\Psi",!0),C(M,ye,He,"\u03A9","\\Omega",!0),C(M,ye,He,"A","\u0391"),C(M,ye,He,"B","\u0392"),C(M,ye,He,"E","\u0395"),C(M,ye,He,"Z","\u0396"),C(M,ye,He,"H","\u0397"),C(M,ye,He,"I","\u0399"),C(M,ye,He,"K","\u039A"),C(M,ye,He,"M","\u039C"),C(M,ye,He,"N","\u039D"),C(M,ye,He,"O","\u039F"),C(M,ye,He,"P","\u03A1"),C(M,ye,He,"T","\u03A4"),C(M,ye,He,"X","\u03A7"),C(M,ye,He,"\xAC","\\neg",!0),C(M,ye,He,"\xAC","\\lnot"),C(M,ye,He,"\u22A4","\\top"),C(M,ye,He,"\u22A5","\\bot"),C(M,ye,He,"\u2205","\\emptyset"),C(M,Ne,He,"\u2205","\\varnothing"),C(M,ye,we,"\u03B1","\\alpha",!0),C(M,ye,we,"\u03B2","\\beta",!0),C(M,ye,we,"\u03B3","\\gamma",!0),C(M,ye,we,"\u03B4","\\delta",!0),C(M,ye,we,"\u03F5","\\epsilon",!0),C(M,ye,we,"\u03B6","\\zeta",!0),C(M,ye,we,"\u03B7","\\eta",!0),C(M,ye,we,"\u03B8","\\theta",!0),C(M,ye,we,"\u03B9","\\iota",!0),C(M,ye,we,"\u03BA","\\kappa",!0),C(M,ye,we,"\u03BB","\\lambda",!0),C(M,ye,we,"\u03BC","\\mu",!0),C(M,ye,we,"\u03BD","\\nu",!0),C(M,ye,we,"\u03BE","\\xi",!0),C(M,ye,we,"\u03BF","\\omicron",!0),C(M,ye,we,"\u03C0","\\pi",!0),C(M,ye,we,"\u03C1","\\rho",!0),C(M,ye,we,"\u03C3","\\sigma",!0),C(M,ye,we,"\u03C4","\\tau",!0),C(M,ye,we,"\u03C5","\\upsilon",!0),C(M,ye,we,"\u03D5","\\phi",!0),C(M,ye,we,"\u03C7","\\chi",!0),C(M,ye,we,"\u03C8","\\psi",!0),C(M,ye,we,"\u03C9","\\omega",!0),C(M,ye,we,"\u03B5","\\varepsilon",!0),C(M,ye,we,"\u03D1","\\vartheta",!0),C(M,ye,we,"\u03D6","\\varpi",!0),C(M,ye,we,"\u03F1","\\varrho",!0),C(M,ye,we,"\u03C2","\\varsigma",!0),C(M,ye,we,"\u03C6","\\varphi",!0),C(M,ye,it,"\u2217","*"),C(M,ye,it,"+","+"),C(M,ye,it,"\u2212","-"),C(M,ye,it,"\u22C5","\\cdot",!0),C(M,ye,it,"\u2218","\\circ"),C(M,ye,it,"\xF7","\\div",!0),C(M,ye,it,"\xB1","\\pm",!0),C(M,ye,it,"\xD7","\\times",!0),C(M,ye,it,"\u2229","\\cap",!0),C(M,ye,it,"\u222A","\\cup",!0),C(M,ye,it,"\u2216","\\setminus"),C(M,ye,it,"\u2227","\\land"),C(M,ye,it,"\u2228","\\lor"),C(M,ye,it,"\u2227","\\wedge",!0),C(M,ye,it,"\u2228","\\vee",!0),C(M,ye,He,"\u221A","\\surd"),C(M,ye,Le,"(","("),C(M,ye,Le,"[","["),C(M,ye,Le,"\u27E8","\\langle",!0),C(M,ye,Le,"\u2223","\\lvert"),C(M,ye,Le,"\u2225","\\lVert"),C(M,ye,nt,")",")"),C(M,ye,nt,"]","]"),C(M,ye,nt,"?","?"),C(M,ye,nt,"!","!"),C(M,ye,nt,"\u27E9","\\rangle",!0),C(M,ye,nt,"\u2223","\\rvert"),C(M,ye,nt,"\u2225","\\rVert"),C(M,ye,_e,"=","="),C(M,ye,_e,"<","<"),C(M,ye,_e,">",">"),C(M,ye,_e,":",":"),C(M,ye,_e,"\u2248","\\approx",!0),C(M,ye,_e,"\u2245","\\cong",!0),C(M,ye,_e,"\u2265","\\ge"),C(M,ye,_e,"\u2265","\\geq",!0),C(M,ye,_e,"\u2190","\\gets"),C(M,ye,_e,">","\\gt"),C(M,ye,_e,"\u2208","\\in",!0),C(M,ye,_e,"\uE020","\\@not"),C(M,ye,_e,"\u2282","\\subset",!0),C(M,ye,_e,"\u2283","\\supset",!0),C(M,ye,_e,"\u2286","\\subseteq",!0),C(M,ye,_e,"\u2287","\\supseteq",!0),C(M,Ne,_e,"\u2288","\\nsubseteq",!0),C(M,Ne,_e,"\u2289","\\nsupseteq",!0),C(M,ye,_e,"\u22A8","\\models"),C(M,ye,_e,"\u2190","\\leftarrow",!0),C(M,ye,_e,"\u2264","\\le"),C(M,ye,_e,"\u2264","\\leq",!0),C(M,ye,_e,"<","\\lt"),C(M,ye,_e,"\u2192","\\rightarrow",!0),C(M,ye,_e,"\u2192","\\to"),C(M,Ne,_e,"\u2271","\\ngeq",!0),C(M,Ne,_e,"\u2270","\\nleq",!0),C(M,ye,Qt,"\xA0","\\ "),C(M,ye,Qt,"\xA0","~"),C(M,ye,Qt,"\xA0","\\space"),C(M,ye,Qt,"\xA0","\\nobreakspace"),C(yt,ye,Qt,"\xA0","\\ "),C(yt,ye,Qt,"\xA0","~"),C(yt,ye,Qt,"\xA0","\\space"),C(yt,ye,Qt,"\xA0","\\nobreakspace"),C(M,ye,Qt,null,"\\nobreak"),C(M,ye,Qt,null,"\\allowbreak"),C(M,ye,rt,",",","),C(M,ye,rt,";",";"),C(M,Ne,it,"\u22BC","\\barwedge",!0),C(M,Ne,it,"\u22BB","\\veebar",!0),C(M,ye,it,"\u2299","\\odot",!0),C(M,ye,it,"\u2295","\\oplus",!0),C(M,ye,it,"\u2297","\\otimes",!0),C(M,ye,He,"\u2202","\\partial",!0),C(M,ye,it,"\u2298","\\oslash",!0),C(M,Ne,it,"\u229A","\\circledcirc",!0),C(M,Ne,it,"\u22A1","\\boxdot",!0),C(M,ye,it,"\u25B3","\\bigtriangleup"),C(M,ye,it,"\u25BD","\\bigtriangledown"),C(M,ye,it,"\u2020","\\dagger"),C(M,ye,it,"\u22C4","\\diamond"),C(M,ye,it,"\u22C6","\\star"),C(M,ye,it,"\u25C3","\\triangleleft"),C(M,ye,it,"\u25B9","\\triangleright"),C(M,ye,Le,"{","\\{"),C(yt,ye,He,"{","\\{"),C(yt,ye,He,"{","\\textbraceleft"),C(M,ye,nt,"}","\\}"),C(yt,ye,He,"}","\\}"),C(yt,ye,He,"}","\\textbraceright"),C(M,ye,Le,"{","\\lbrace"),C(M,ye,nt,"}","\\rbrace"),C(M,ye,Le,"[","\\lbrack"),C(yt,ye,He,"[","\\lbrack"),C(M,ye,nt,"]","\\rbrack"),C(yt,ye,He,"]","\\rbrack"),C(M,ye,Le,"(","\\lparen"),C(M,ye,nt,")","\\rparen"),C(yt,ye,He,"<","\\textless"),C(yt,ye,He,">","\\textgreater"),C(M,ye,Le,"\u230A","\\lfloor",!0),C(M,ye,nt,"\u230B","\\rfloor",!0),C(M,ye,Le,"\u2308","\\lceil",!0),C(M,ye,nt,"\u2309","\\rceil",!0),C(M,ye,He,"\\","\\backslash"),C(M,ye,He,"\u2223","|"),C(M,ye,He,"\u2223","\\vert"),C(yt,ye,He,"|","\\textbar"),C(M,ye,He,"\u2225","\\|"),C(M,ye,He,"\u2225","\\Vert"),C(yt,ye,He,"\u2225","\\textbardbl"),C(yt,ye,He,"~","\\textasciitilde"),C(yt,ye,He,"\\","\\textbackslash"),C(yt,ye,He,"^","\\textasciicircum"),C(M,ye,_e,"\u2191","\\uparrow",!0),C(M,ye,_e,"\u21D1","\\Uparrow",!0),C(M,ye,_e,"\u2193","\\downarrow",!0),C(M,ye,_e,"\u21D3","\\Downarrow",!0),C(M,ye,_e,"\u2195","\\updownarrow",!0),C(M,ye,_e,"\u21D5","\\Updownarrow",!0),C(M,ye,Oe,"\u2210","\\coprod"),C(M,ye,Oe,"\u22C1","\\bigvee"),C(M,ye,Oe,"\u22C0","\\bigwedge"),C(M,ye,Oe,"\u2A04","\\biguplus"),C(M,ye,Oe,"\u22C2","\\bigcap"),C(M,ye,Oe,"\u22C3","\\bigcup"),C(M,ye,Oe,"\u222B","\\int"),C(M,ye,Oe,"\u222B","\\intop"),C(M,ye,Oe,"\u222C","\\iint"),C(M,ye,Oe,"\u222D","\\iiint"),C(M,ye,Oe,"\u220F","\\prod"),C(M,ye,Oe,"\u2211","\\sum"),C(M,ye,Oe,"\u2A02","\\bigotimes"),C(M,ye,Oe,"\u2A01","\\bigoplus"),C(M,ye,Oe,"\u2A00","\\bigodot"),C(M,ye,Oe,"\u222E","\\oint"),C(M,ye,Oe,"\u222F","\\oiint"),C(M,ye,Oe,"\u2230","\\oiiint"),C(M,ye,Oe,"\u2A06","\\bigsqcup"),C(M,ye,Oe,"\u222B","\\smallint"),C(yt,ye,tt,"\u2026","\\textellipsis"),C(M,ye,tt,"\u2026","\\mathellipsis"),C(yt,ye,tt,"\u2026","\\ldots",!0),C(M,ye,tt,"\u2026","\\ldots",!0),C(M,ye,tt,"\u22EF","\\@cdots",!0),C(M,ye,tt,"\u22F1","\\ddots",!0),C(M,ye,He,"\u22EE","\\varvdots"),C(M,ye,Sn,"\u02CA","\\acute"),C(M,ye,Sn,"\u02CB","\\grave"),C(M,ye,Sn,"\xA8","\\ddot"),C(M,ye,Sn,"~","\\tilde"),C(M,ye,Sn,"\u02C9","\\bar"),C(M,ye,Sn,"\u02D8","\\breve"),C(M,ye,Sn,"\u02C7","\\check"),C(M,ye,Sn,"^","\\hat"),C(M,ye,Sn,"\u20D7","\\vec"),C(M,ye,Sn,"\u02D9","\\dot"),C(M,ye,Sn,"\u02DA","\\mathring"),C(M,ye,we,"\u0131","\\imath",!0),C(M,ye,we,"\u0237","\\jmath",!0),C(yt,ye,He,"\u0131","\\i",!0),C(yt,ye,He,"\u0237","\\j",!0),C(yt,ye,He,"\xDF","\\ss",!0),C(yt,ye,He,"\xE6","\\ae",!0),C(yt,ye,He,"\xE6","\\ae",!0),C(yt,ye,He,"\u0153","\\oe",!0),C(yt,ye,He,"\xF8","\\o",!0),C(yt,ye,He,"\xC6","\\AE",!0),C(yt,ye,He,"\u0152","\\OE",!0),C(yt,ye,He,"\xD8","\\O",!0),C(yt,ye,Sn,"\u02CA","\\'"),C(yt,ye,Sn,"\u02CB","\\`"),C(yt,ye,Sn,"\u02C6","\\^"),C(yt,ye,Sn,"\u02DC","\\~"),C(yt,ye,Sn,"\u02C9","\\="),C(yt,ye,Sn,"\u02D8","\\u"),C(yt,ye,Sn,"\u02D9","\\."),C(yt,ye,Sn,"\u02DA","\\r"),C(yt,ye,Sn,"\u02C7","\\v"),C(yt,ye,Sn,"\xA8",'\\"'),C(yt,ye,Sn,"\u02DD","\\H"),C(yt,ye,Sn,"\u25EF","\\textcircled");var xn={"--":!0,"---":!0,"``":!0,"''":!0};C(yt,ye,He,"\u2013","--"),C(yt,ye,He,"\u2013","\\textendash"),C(yt,ye,He,"\u2014","---"),C(yt,ye,He,"\u2014","\\textemdash"),C(yt,ye,He,"\u2018","`"),C(yt,ye,He,"\u2018","\\textquoteleft"),C(yt,ye,He,"\u2019","'"),C(yt,ye,He,"\u2019","\\textquoteright"),C(yt,ye,He,"\u201C","``"),C(yt,ye,He,"\u201C","\\textquotedblleft"),C(yt,ye,He,"\u201D","''"),C(yt,ye,He,"\u201D","\\textquotedblright"),C(M,ye,He,"\xB0","\\degree",!0),C(yt,ye,He,"\xB0","\\degree"),C(yt,ye,He,"\xB0","\\textdegree",!0),C(M,ye,we,"\xA3","\\pounds"),C(M,ye,we,"\xA3","\\mathsterling",!0),C(yt,ye,we,"\xA3","\\pounds"),C(yt,ye,we,"\xA3","\\textsterling",!0),C(M,Ne,He,"\u2720","\\maltese"),C(yt,Ne,He,"\u2720","\\maltese"),C(yt,ye,Qt,"\xA0","\\ "),C(yt,ye,Qt,"\xA0"," "),C(yt,ye,Qt,"\xA0","~");for(var Ln='0123456789/@."',_r=0;_r<Ln.length;_r++){var Hn=Ln.charAt(_r);C(M,ye,He,Hn,Hn)}for(var yn='0123456789!@*()-=+[]<>|";:?/.,',wn=0;wn<yn.length;wn++){var Ye=yn.charAt(wn);C(yt,ye,He,Ye,Ye)}for(var Ot="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Ut=0;Ut<Ot.length;Ut++){var Ke=Ot.charAt(Ut);C(M,ye,we,Ke,Ke),C(yt,ye,He,Ke,Ke)}C(M,Ne,He,"C","\u2102"),C(yt,Ne,He,"C","\u2102"),C(M,Ne,He,"H","\u210D"),C(yt,Ne,He,"H","\u210D"),C(M,Ne,He,"N","\u2115"),C(yt,Ne,He,"N","\u2115"),C(M,Ne,He,"P","\u2119"),C(yt,Ne,He,"P","\u2119"),C(M,Ne,He,"Q","\u211A"),C(yt,Ne,He,"Q","\u211A"),C(M,Ne,He,"R","\u211D"),C(yt,Ne,He,"R","\u211D"),C(M,Ne,He,"Z","\u2124"),C(yt,Ne,He,"Z","\u2124"),C(M,ye,we,"h","\u210E"),C(yt,ye,we,"h","\u210E");for(var Pe="",_t=0;_t<Ot.length;_t++){var Ct=Ot.charAt(_t);Pe=String.fromCharCode(55349,56320+_t),C(M,ye,we,Ct,Pe),C(yt,ye,He,Ct,Pe),Pe=String.fromCharCode(55349,56372+_t),C(M,ye,we,Ct,Pe),C(yt,ye,He,Ct,Pe),Pe=String.fromCharCode(55349,56424+_t),C(M,ye,we,Ct,Pe),C(yt,ye,He,Ct,Pe),Pe=String.fromCharCode(55349,56580+_t),C(M,ye,we,Ct,Pe),C(yt,ye,He,Ct,Pe),Pe=String.fromCharCode(55349,56736+_t),C(M,ye,we,Ct,Pe),C(yt,ye,He,Ct,Pe),Pe=String.fromCharCode(55349,56788+_t),C(M,ye,we,Ct,Pe),C(yt,ye,He,Ct,Pe),Pe=String.fromCharCode(55349,56840+_t),C(M,ye,we,Ct,Pe),C(yt,ye,He,Ct,Pe),Pe=String.fromCharCode(55349,56944+_t),C(M,ye,we,Ct,Pe),C(yt,ye,He,Ct,Pe),_t<26&&(Pe=String.fromCharCode(55349,56632+_t),C(M,ye,we,Ct,Pe),C(yt,ye,He,Ct,Pe),Pe=String.fromCharCode(55349,56476+_t),C(M,ye,we,Ct,Pe),C(yt,ye,He,Ct,Pe))}Pe="\u{1D55C}",C(M,ye,we,"k",Pe),C(yt,ye,He,"k",Pe);for(var nn=0;nn<10;nn++){var Vt=nn.toString();Pe=String.fromCharCode(55349,57294+nn),C(M,ye,we,Vt,Pe),C(yt,ye,He,Vt,Pe),Pe=String.fromCharCode(55349,57314+nn),C(M,ye,we,Vt,Pe),C(yt,ye,He,Vt,Pe),Pe=String.fromCharCode(55349,57324+nn),C(M,ye,we,Vt,Pe),C(yt,ye,He,Vt,Pe),Pe=String.fromCharCode(55349,57334+nn),C(M,ye,we,Vt,Pe),C(yt,ye,He,Vt,Pe)}for(var dn="\xC7\xD0\xDE\xE7\xFE",rn=0;rn<dn.length;rn++){var bn=dn.charAt(rn);C(M,ye,we,bn,bn),C(yt,ye,He,bn,bn)}C(yt,ye,He,"\xF0","\xF0"),C(yt,ye,He,"\u2013","\u2013"),C(yt,ye,He,"\u2014","\u2014"),C(yt,ye,He,"\u2018","\u2018"),C(yt,ye,He,"\u2019","\u2019"),C(yt,ye,He,"\u201C","\u201C"),C(yt,ye,He,"\u201D","\u201D");var In=[["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"]],Cn=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Kt=function(l,d){var h=l.charCodeAt(0),b=l.charCodeAt(1),F=(h-55296)*1024+(b-56320)+65536,ie=d==="math"?0:1;if(119808<=F&&F<120484){var Ie=Math.floor((F-119808)/26);return[In[Ie][2],In[Ie][ie]]}else if(120782<=F&&F<=120831){var ke=Math.floor((F-120782)/10);return[Cn[ke][2],Cn[ke][ie]]}else{if(F===120485||F===120486)return[In[0][2],In[0][ie]];if(120486<F&&F<120782)return["",""];throw new m("Unsupported character: "+l)}},Gt=[[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]],qt=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],fn=function(l,d){return d.size<2?l:Gt[l-1][d.size-1]},an=function(){function ne(d){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=d.style,this.color=d.color,this.size=d.size||ne.BASESIZE,this.textSize=d.textSize||this.size,this.phantom=!!d.phantom,this.font=d.font||"",this.fontFamily=d.fontFamily||"",this.fontWeight=d.fontWeight||"",this.fontShape=d.fontShape||"",this.sizeMultiplier=qt[this.size-1],this.maxSize=d.maxSize,this.minRuleThickness=d.minRuleThickness,this._fontMetrics=void 0}var l=ne.prototype;return l.extend=function(h){var b={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 F in h)h.hasOwnProperty(F)&&(b[F]=h[F]);return new ne(b)},l.havingStyle=function(h){return this.style===h?this:this.extend({style:h,size:fn(this.textSize,h)})},l.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},l.havingSize=function(h){return this.size===h&&this.textSize===h?this:this.extend({style:this.style.text(),size:h,textSize:h,sizeMultiplier:qt[h-1]})},l.havingBaseStyle=function(h){h=h||this.style.text();var b=fn(ne.BASESIZE,h);return this.size===b&&this.textSize===ne.BASESIZE&&this.style===h?this:this.extend({style:h,size:b})},l.havingBaseSizing=function(){var h;switch(this.style.id){case 4:case 5:h=3;break;case 6:case 7:h=1;break;default:h=6}return this.extend({style:this.style.text(),size:h})},l.withColor=function(h){return this.extend({color:h})},l.withPhantom=function(){return this.extend({phantom:!0})},l.withFont=function(h){return this.extend({font:h})},l.withTextFontFamily=function(h){return this.extend({fontFamily:h,font:""})},l.withTextFontWeight=function(h){return this.extend({fontWeight:h,font:""})},l.withTextFontShape=function(h){return this.extend({fontShape:h,font:""})},l.sizingClasses=function(h){return h.size!==this.size?["sizing","reset-size"+h.size,"size"+this.size]:[]},l.baseSizingClasses=function(){return this.size!==ne.BASESIZE?["sizing","reset-size"+this.size,"size"+ne.BASESIZE]:[]},l.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=xt(this.size)),this._fontMetrics},l.getColor=function(){return this.phantom?"transparent":this.color},ne}();an.BASESIZE=6;var Qn=an,Rn={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},ln={ex:!0,em:!0,mu:!0},ct=function(l){return typeof l!="string"&&(l=l.unit),l in Rn||l in ln||l==="ex"},pt=function(l,d){var h;if(l.unit in Rn)h=Rn[l.unit]/d.fontMetrics().ptPerEm/d.sizeMultiplier;else if(l.unit==="mu")h=d.fontMetrics().cssEmPerMu;else{var b;if(d.style.isTight()?b=d.havingStyle(d.style.text()):b=d,l.unit==="ex")h=b.fontMetrics().xHeight;else if(l.unit==="em")h=b.fontMetrics().quad;else throw new m("Invalid unit: '"+l.unit+"'");b!==d&&(h*=b.sizeMultiplier/d.sizeMultiplier)}return Math.min(l.number*h,d.maxSize)},Tt=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],Ft=function(l,d,h){return Zt[h][l]&&Zt[h][l].replace&&(l=Zt[h][l].replace),{value:l,metrics:Xe(l,d,h)}},It=function(l,d,h,b,F){var ie=Ft(l,d,h),Ie=ie.metrics;l=ie.value;var ke;if(Ie){var Qe=Ie.italic;(h==="text"||b&&b.font==="mathit")&&(Qe=0),ke=new R(l,Ie.height,Ie.depth,Qe,Ie.skew,Ie.width,F)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+l+"' in style '"+d+"' and mode '"+h+"'")),ke=new R(l,0,0,0,0,0,F);if(b){ke.maxFontSize=b.sizeMultiplier,b.style.isTight()&&ke.classes.push("mtight");var ht=b.getColor();ht&&(ke.style.color=ht)}return ke},sn=function(l,d,h,b){return b===void 0&&(b=[]),h.font==="boldsymbol"&&Ft(l,"Main-Bold",d).metrics?It(l,"Main-Bold",d,h,b.concat(["mathbf"])):l==="\\"||Zt[d][l].font==="main"?It(l,"Main-Regular",d,h,b):It(l,"AMS-Regular",d,h,b.concat(["amsrm"]))},$t=function(l,d,h,b){return/[0-9]/.test(l.charAt(0))||z.contains(Tt,l)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},hn=function(l,d,h,b){return z.contains(Tt,l)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(l.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},_n=function(l,d,h,b){return Ft(l,"Math-BoldItalic",d).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Dn=function(l,d,h){var b=l.mode,F=l.text,ie=["mord"],Ie=b==="math"||b==="text"&&d.font,ke=Ie?d.font:d.fontFamily;if(F.charCodeAt(0)===55349){var Qe=Kt(F,b),ht=Qe[0],At=Qe[1];return It(F,ht,b,d,ie.concat(At))}else if(ke){var Wt,mn;if(ke==="boldsymbol"||ke==="mathnormal"){var Yt=ke==="boldsymbol"?_n(F,b,d,ie):hn(F,b,d,ie);Wt=Yt.fontName,mn=[Yt.fontClass]}else z.contains(Tt,F)?(Wt="Main-Italic",mn=["mathit"]):Ie?(Wt=qr[ke].fontName,mn=[ke]):(Wt=Pr(ke,d.fontWeight,d.fontShape),mn=[ke,d.fontWeight,d.fontShape]);if(Ft(F,Wt,b).metrics)return It(F,Wt,b,d,ie.concat(mn));if(xn.hasOwnProperty(F)&&Wt.substr(0,10)==="Typewriter"){for(var en=[],et=0;et<F.length;et++)en.push(It(F[et],Wt,b,d,ie.concat(mn)));return Ir(en)}}if(h==="mathord"){var An=$t(F,b,d,ie);return It(F,An.fontName,b,d,ie.concat([An.fontClass]))}else if(h==="textord"){var lr=Zt[b][F]&&Zt[b][F].font;if(lr==="ams"){var Pn=Pr("amsrm",d.fontWeight,d.fontShape);return It(F,Pn,b,d,ie.concat("amsrm",d.fontWeight,d.fontShape))}else if(lr==="main"||!lr){var nr=Pr("textrm",d.fontWeight,d.fontShape);return It(F,nr,b,d,ie.concat(d.fontWeight,d.fontShape))}else{var Ar=Pr(lr,d.fontWeight,d.fontShape);return It(F,Ar,b,d,ie.concat(Ar,d.fontWeight,d.fontShape))}}else throw new Error("unexpected type: "+h+" in makeOrd")},Yn=function(l,d){if(ut(l.classes)!==ut(d.classes)||l.skew!==d.skew||l.maxFontSize!==d.maxFontSize)return!1;for(var h in l.style)if(l.style.hasOwnProperty(h)&&l.style[h]!==d.style[h])return!1;for(var b in d.style)if(d.style.hasOwnProperty(b)&&l.style[b]!==d.style[b])return!1;return!0},Zn=function(l){for(var d=0;d<l.length-1;d++){var h=l[d],b=l[d+1];h instanceof R&&b instanceof R&&Yn(h,b)&&(h.text+=b.text,h.height=Math.max(h.height,b.height),h.depth=Math.max(h.depth,b.depth),h.italic=b.italic,l.splice(d+1,1),d--)}return l},dr=function(l){for(var d=0,h=0,b=0,F=0;F<l.children.length;F++){var ie=l.children[F];ie.height>d&&(d=ie.height),ie.depth>h&&(h=ie.depth),ie.maxFontSize>b&&(b=ie.maxFontSize)}l.height=d,l.depth=h,l.maxFontSize=b},En=function(l,d,h,b){var F=new le(l,d,h,b);return dr(F),F},Tn=function(l,d,h,b){return new le(l,d,h,b)},pr=function(l,d,h){var b=En([l],[],d);return b.height=Math.max(h||d.fontMetrics().defaultRuleThickness,d.minRuleThickness),b.style.borderBottomWidth=b.height+"em",b.maxFontSize=1,b},mr=function(l,d,h,b){var F=new Q(l,d,h,b);return dr(F),F},Ir=function(l){var d=new Ht(l);return dr(d),d},sr=function(l,d){return l instanceof Ht?En([],[l],d):l},ar=function(l){if(l.positionType==="individualShift"){for(var d=l.children,h=[d[0]],b=-d[0].shift-d[0].elem.depth,F=b,ie=1;ie<d.length;ie++){var Ie=-d[ie].shift-F-d[ie].elem.depth,ke=Ie-(d[ie-1].elem.height+d[ie-1].elem.depth);F=F+Ie,h.push({type:"kern",size:ke}),h.push(d[ie])}return{children:h,depth:b}}var Qe;if(l.positionType==="top"){for(var ht=l.positionData,At=0;At<l.children.length;At++){var Wt=l.children[At];ht-=Wt.type==="kern"?Wt.size:Wt.elem.height+Wt.elem.depth}Qe=ht}else if(l.positionType==="bottom")Qe=-l.positionData;else{var mn=l.children[0];if(mn.type!=="elem")throw new Error('First child must have type "elem".');if(l.positionType==="shift")Qe=-mn.elem.depth-l.positionData;else if(l.positionType==="firstBaseline")Qe=-mn.elem.depth;else throw new Error("Invalid positionType "+l.positionType+".")}return{children:l.children,depth:Qe}},Cr=function(l,d){for(var h=ar(l),b=h.children,F=h.depth,ie=0,Ie=0;Ie<b.length;Ie++){var ke=b[Ie];if(ke.type==="elem"){var Qe=ke.elem;ie=Math.max(ie,Qe.maxFontSize,Qe.height)}}ie+=2;var ht=En(["pstrut"],[]);ht.style.height=ie+"em";for(var At=[],Wt=F,mn=F,Yt=F,en=0;en<b.length;en++){var et=b[en];if(et.type==="kern")Yt+=et.size;else{var An=et.elem,lr=et.wrapperClasses||[],Pn=et.wrapperStyle||{},nr=En(lr,[ht,An],void 0,Pn);nr.style.top=-ie-Yt-An.depth+"em",et.marginLeft&&(nr.style.marginLeft=et.marginLeft),et.marginRight&&(nr.style.marginRight=et.marginRight),At.push(nr),Yt+=An.height+An.depth}Wt=Math.min(Wt,Yt),mn=Math.max(mn,Yt)}var Ar=En(["vlist"],At);Ar.style.height=mn+"em";var Dr;if(Wt<0){var hi=En([],[]),pi=En(["vlist"],[hi]);pi.style.height=-Wt+"em";var Vi=En(["vlist-s"],[new R("\u200B")]);Dr=[En(["vlist-r"],[Ar,Vi]),En(["vlist-r"],[pi])]}else Dr=[En(["vlist-r"],[Ar])];var ri=En(["vlist-t"],Dr);return Dr.length===2&&ri.classes.push("vlist-t2"),ri.height=mn,ri.depth=-Wt,ri},rr=function(l,d){var h=En(["mspace"],[],d),b=pt(l,d);return h.style.marginRight=b+"em",h},Pr=function(l,d,h){var b="";switch(l){case"amsrm":b="AMS";break;case"textrm":b="Main";break;case"textsf":b="SansSerif";break;case"texttt":b="Typewriter";break;default:b=l}var F;return d==="textbf"&&h==="textit"?F="BoldItalic":d==="textbf"?F="Bold":d==="textit"?F="Italic":F="Regular",b+"-"+F},qr={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"}},qn={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},zn=function(l,d){var h=qn[l],b=h[0],F=h[1],ie=h[2],Ie=new fe(b),ke=new P([Ie],{width:F+"em",height:ie+"em",style:"width:"+F+"em",viewBox:"0 0 "+1e3*F+" "+1e3*ie,preserveAspectRatio:"xMinYMin"}),Qe=Tn(["overlay"],[ke],d);return Qe.height=ie,Qe.style.height=ie+"em",Qe.style.width=F+"em",Qe},dt={fontMap:qr,makeSymbol:It,mathsym:sn,makeSpan:En,makeSvgSpan:Tn,makeLineSpan:pr,makeAnchor:mr,makeFragment:Ir,wrapFragment:sr,makeVList:Cr,makeOrd:Dn,makeGlue:rr,staticSvg:zn,svgData:qn,tryCombineChars:Zn};function Bn(ne,l){var d=ur(ne,l);if(!d)throw new Error("Expected node of type "+l+", but got "+(ne?"node of type "+ne.type:String(ne)));return d}function ur(ne,l){return ne&&ne.type===l?ne:null}function er(ne,l){var d=Lr(ne,l);if(!d)throw new Error('Expected node of type "atom" and family "'+l+'", but got '+(ne?ne.type==="atom"?"atom of family "+ne.family:"node of type "+ne.type:String(ne)));return d}function Lr(ne,l){return ne&&ne.type==="atom"&&ne.family===l?ne:null}function zr(ne){var l=Vr(ne);if(!l)throw new Error("Expected node of symbol group type, but got "+(ne?"node of type "+ne.type:String(ne)));return l}function Vr(ne){return ne&&(ne.type==="atom"||vt.hasOwnProperty(ne.type))?ne:null}var fr={number:3,unit:"mu"},Yr={number:4,unit:"mu"},Un={number:5,unit:"mu"},On={mord:{mop:fr,mbin:Yr,mrel:Un,minner:fr},mop:{mord:fr,mop:fr,mrel:Un,minner:fr},mbin:{mord:Yr,mop:Yr,mopen:Yr,minner:Yr},mrel:{mord:Un,mop:Un,mopen:Un,minner:Un},mopen:{},mclose:{mop:fr,mbin:Yr,mrel:Un,minner:fr},mpunct:{mord:fr,mop:fr,mrel:Un,mopen:fr,mclose:fr,mpunct:fr,minner:fr},minner:{mord:fr,mop:fr,mbin:Yr,mrel:Un,mopen:fr,mpunct:fr,minner:fr}},Er={mord:{mop:fr},mop:{mord:fr,mop:fr},mbin:{},mrel:{},mopen:{},mclose:{mop:fr},mpunct:{},minner:{mop:fr}},kr={},ei={},Ii={};function jn(ne){for(var l=ne.type,d=ne.names,h=ne.props,b=ne.handler,F=ne.htmlBuilder,ie=ne.mathmlBuilder,Ie={type:l,numArgs:h.numArgs,argTypes:h.argTypes,greediness:h.greediness===void 0?1:h.greediness,allowedInText:!!h.allowedInText,allowedInMath:h.allowedInMath===void 0?!0:h.allowedInMath,numOptionalArgs:h.numOptionalArgs||0,infix:!!h.infix,handler:b},ke=0;ke<d.length;++ke)kr[d[ke]]=Ie;l&&(F&&(ei[l]=F),ie&&(Ii[l]=ie))}function ii(ne){var l=ne.type,d=ne.htmlBuilder,h=ne.mathmlBuilder;jn({type:l,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:d,mathmlBuilder:h})}var Xr=function(l){var d=ur(l,"ordgroup");return d?d.body:[l]},fi=dt.makeSpan,Li=["leftmost","mbin","mopen","mrel","mop","mpunct"],yi=["rightmost","mrel","mclose","mpunct"],si={display:v.DISPLAY,text:v.TEXT,script:v.SCRIPT,scriptscript:v.SCRIPTSCRIPT},Ci={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},ui=function(l,d,h,b){b===void 0&&(b=[null,null]);for(var F=[],ie=0;ie<l.length;ie++){var Ie=jr(l[ie],d);if(Ie instanceof Ht){var ke=Ie.children;F.push.apply(F,ke)}else F.push(Ie)}if(!h)return F;var Qe=d;if(l.length===1){var ht=ur(l[0],"sizing")||ur(l[0],"styling");ht&&(ht.type==="sizing"?Qe=d.havingSize(ht.size):ht.type==="styling"&&(Qe=d.havingStyle(si[ht.style])))}var At=fi([b[0]||"leftmost"],[],d),Wt=fi([b[1]||"rightmost"],[],d);return $i(F,function(mn,Yt){var en=Yt.classes[0],et=mn.classes[0];en==="mbin"&&z.contains(yi,et)?Yt.classes[0]="mord":et==="mbin"&&z.contains(Li,en)&&(mn.classes[0]="mord")},{node:At},Wt),$i(F,function(mn,Yt){var en=Hi(Yt),et=Hi(mn),An=en&&et?mn.hasClass("mtight")?Er[en][et]:On[en][et]:null;if(An)return dt.makeGlue(An,Qe)},{node:At},Wt),F},$i=function ne(l,d,h,b){b&&l.push(b);for(var F=0;F<l.length;F++){var ie=l[F],Ie=Tr(ie);if(Ie){ne(Ie.children,d,h);continue}if(ie.classes[0]!=="mspace"){var ke=d(ie,h.node);ke&&(h.insertAfter?h.insertAfter(ke):(l.unshift(ke),F++)),h.node=ie,h.insertAfter=function(Qe){return function(ht){l.splice(Qe+1,0,ht),F++}}(F)}}b&&l.pop()},Tr=function(l){return l instanceof Ht||l instanceof Q?l:null},Xi=function ne(l,d){var h=Tr(l);if(h){var b=h.children;if(b.length){if(d==="right")return ne(b[b.length-1],"right");if(d==="left")return ne(b[0],"left")}}return l},Hi=function(l,d){return l?(d&&(l=Xi(l,d)),Ci[l.classes[0]]||null):null},Qi=function(l,d){var h=["nulldelimiter"].concat(l.baseSizingClasses());return fi(d.concat(h))},jr=function(l,d,h){if(!l)return fi();if(ei[l.type]){var b=ei[l.type](l,d);if(h&&d.size!==h.size){b=fi(d.sizingClasses(h),[b],d);var F=d.sizeMultiplier/h.sizeMultiplier;b.height*=F,b.depth*=F}return b}else throw new m("Got group of unknown type: '"+l.type+"'")};function fs(ne,l){var d=fi(["base"],ne,l),h=fi(["strut"]);return h.style.height=d.height+d.depth+"em",h.style.verticalAlign=-d.depth+"em",d.children.unshift(h),d}function vs(ne,l){var d=null;ne.length===1&&ne[0].type==="tag"&&(d=ne[0].tag,ne=ne[0].body);for(var h=ui(ne,l,!0),b=[],F=[],ie=0;ie<h.length;ie++)if(F.push(h[ie]),h[ie].hasClass("mbin")||h[ie].hasClass("mrel")||h[ie].hasClass("allowbreak")){for(var Ie=!1;ie<h.length-1&&h[ie+1].hasClass("mspace")&&!h[ie+1].hasClass("newline");)ie++,F.push(h[ie]),h[ie].hasClass("nobreak")&&(Ie=!0);Ie||(b.push(fs(F,l)),F=[])}else h[ie].hasClass("newline")&&(F.pop(),F.length>0&&(b.push(fs(F,l)),F=[]),b.push(h[ie]));F.length>0&&b.push(fs(F,l));var ke;d&&(ke=fs(ui(d,l,!0)),ke.classes=["tag"],b.push(ke));var Qe=fi(["katex-html"],b);if(Qe.setAttribute("aria-hidden","true"),ke){var ht=ke.children[0];ht.style.height=Qe.height+Qe.depth+"em",ht.style.verticalAlign=-Qe.depth+"em"}return Qe}function cs(ne){return new Ht(ne)}var Br=function(){function ne(d,h){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=d,this.attributes={},this.children=h||[]}var l=ne.prototype;return l.setAttribute=function(h,b){this.attributes[h]=b},l.getAttribute=function(h){return this.attributes[h]},l.toNode=function(){var h=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var b in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,b)&&h.setAttribute(b,this.attributes[b]);for(var F=0;F<this.children.length;F++)h.appendChild(this.children[F].toNode());return h},l.toMarkup=function(){var h="<"+this.type;for(var b in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,b)&&(h+=" "+b+'="',h+=z.escape(this.attributes[b]),h+='"');h+=">";for(var F=0;F<this.children.length;F++)h+=this.children[F].toMarkup();return h+="</"+this.type+">",h},l.toText=function(){return this.children.map(function(h){return h.toText()}).join("")},ne}(),hs=function(){function ne(d){this.text=void 0,this.text=d}var l=ne.prototype;return l.toNode=function(){return document.createTextNode(this.text)},l.toMarkup=function(){return z.escape(this.toText())},l.toText=function(){return this.text},ne}(),Ts=function(){function ne(d){this.width=void 0,this.character=void 0,this.width=d,d>=.05555&&d<=.05556?this.character="\u200A":d>=.1666&&d<=.1667?this.character="\u2009":d>=.2222&&d<=.2223?this.character="\u2005":d>=.2777&&d<=.2778?this.character="\u2005\u200A":d>=-.05556&&d<=-.05555?this.character="\u200A\u2063":d>=-.1667&&d<=-.1666?this.character="\u2009\u2063":d>=-.2223&&d<=-.2222?this.character="\u205F\u2063":d>=-.2778&&d<=-.2777?this.character="\u2005\u2063":this.character=null}var l=ne.prototype;return l.toNode=function(){if(this.character)return document.createTextNode(this.character);var h=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return h.setAttribute("width",this.width+"em"),h},l.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},l.toText=function(){return this.character?this.character:" "},ne}(),Nn={MathNode:Br,TextNode:hs,SpaceNode:Ts,newDocumentFragment:cs},Mi=function(l,d,h){return Zt[d][l]&&Zt[d][l].replace&&l.charCodeAt(0)!==55349&&!(xn.hasOwnProperty(l)&&h&&(h.fontFamily&&h.fontFamily.substr(4,2)==="tt"||h.font&&h.font.substr(4,2)==="tt"))&&(l=Zt[d][l].replace),new Nn.TextNode(l)},ls=function(l){return l.length===1?l[0]:new Nn.MathNode("mrow",l)},gr=function(l,d){if(d.fontFamily==="texttt")return"monospace";if(d.fontFamily==="textsf")return d.fontShape==="textit"&&d.fontWeight==="textbf"?"sans-serif-bold-italic":d.fontShape==="textit"?"sans-serif-italic":d.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(d.fontShape==="textit"&&d.fontWeight==="textbf")return"bold-italic";if(d.fontShape==="textit")return"italic";if(d.fontWeight==="textbf")return"bold";var h=d.font;if(!h||h==="mathnormal")return null;var b=l.mode;if(h==="mathit")return"italic";if(h==="boldsymbol")return"bold-italic";if(h==="mathbf")return"bold";if(h==="mathbb")return"double-struck";if(h==="mathfrak")return"fraktur";if(h==="mathscr"||h==="mathcal")return"script";if(h==="mathsf")return"sans-serif";if(h==="mathtt")return"monospace";var F=l.text;if(z.contains(["\\imath","\\jmath"],F))return null;Zt[b][F]&&Zt[b][F].replace&&(F=Zt[b][F].replace);var ie=dt.fontMap[h].fontName;return Xe(F,ie,b)?dt.fontMap[h].variant:null},xr=function(l,d,h){if(l.length===1){var b=Xn(l[0],d);return h&&b instanceof Br&&b.type==="mo"&&(b.setAttribute("lspace","0em"),b.setAttribute("rspace","0em")),[b]}for(var F=[],ie,Ie=0;Ie<l.length;Ie++){var ke=Xn(l[Ie],d);if(ke instanceof Br&&ie instanceof Br){if(ke.type==="mtext"&&ie.type==="mtext"&&ke.getAttribute("mathvariant")===ie.getAttribute("mathvariant")){var Qe;(Qe=ie.children).push.apply(Qe,ke.children);continue}else if(ke.type==="mn"&&ie.type==="mn"){var ht;(ht=ie.children).push.apply(ht,ke.children);continue}else if(ke.type==="mi"&&ke.children.length===1&&ie.type==="mn"){var At=ke.children[0];if(At instanceof hs&&At.text==="."){var Wt;(Wt=ie.children).push.apply(Wt,ke.children);continue}}else if(ie.type==="mi"&&ie.children.length===1){var mn=ie.children[0];if(mn instanceof hs&&mn.text==="\u0338"&&(ke.type==="mo"||ke.type==="mi"||ke.type==="mn")){var Yt=ke.children[0];Yt instanceof hs&&Yt.text.length>0&&(Yt.text=Yt.text.slice(0,1)+"\u0338"+Yt.text.slice(1),F.pop())}}}F.push(ke),ie=ke}return F},cr=function(l,d,h){return ls(xr(l,d,h))},Xn=function(l,d){if(!l)return new Nn.MathNode("mrow");if(Ii[l.type]){var h=Ii[l.type](l,d);return h}else throw new m("Got group of unknown type: '"+l.type+"'")};function Ur(ne,l,d,h){var b=xr(ne,d),F;b.length===1&&b[0]instanceof Br&&z.contains(["mrow","mtable"],b[0].type)?F=b[0]:F=new Nn.MathNode("mrow",b);var ie=new Nn.MathNode("annotation",[new Nn.TextNode(l)]);ie.setAttribute("encoding","application/x-tex");var Ie=new Nn.MathNode("semantics",[F,ie]),ke=new Nn.MathNode("math",[Ie]);ke.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var Qe=h?"katex":"katex-mathml";return dt.makeSpan([Qe],[ke])}var ai=function(l){return new Qn({style:l.displayMode?v.DISPLAY:v.TEXT,maxSize:l.maxSize,minRuleThickness:l.minRuleThickness})},Zi=function(l,d){if(d.displayMode){var h=["katex-display"];d.leqno&&h.push("leqno"),d.fleqn&&h.push("fleqn"),l=dt.makeSpan(h,[l])}return l},Ri=function(l,d,h){var b=ai(h),F;if(h.output==="mathml")return Ur(l,d,b,!0);if(h.output==="html"){var ie=vs(l,b);F=dt.makeSpan(["katex"],[ie])}else{var Ie=Ur(l,d,b,!1),ke=vs(l,b);F=dt.makeSpan(["katex"],[Ie,ke])}return Zi(F,h)},Ti=function(l,d,h){var b=ai(h),F=vs(l,b),ie=dt.makeSpan(["katex"],[F]);return Zi(ie,h)},Fr=Ri,Oi={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"},As=function(l){var d=new Nn.MathNode("mo",[new Nn.TextNode(Oi[l.substr(1)])]);return d.setAttribute("stretchy","true"),d},Ps={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]},ps=function(l){return l.type==="ordgroup"?l.body.length:1},us=function(l,d){function h(){var ke=4e5,Qe=l.label.substr(1);if(z.contains(["widehat","widecheck","widetilde","utilde"],Qe)){var ht=l,At=ps(ht.base),Wt,mn,Yt;if(At>5)Qe==="widehat"||Qe==="widecheck"?(Wt=420,ke=2364,Yt=.42,mn=Qe+"4"):(Wt=312,ke=2340,Yt=.34,mn="tilde4");else{var en=[1,1,2,2,3,3][At];Qe==="widehat"||Qe==="widecheck"?(ke=[0,1062,2364,2364,2364][en],Wt=[0,239,300,360,420][en],Yt=[0,.24,.3,.3,.36,.42][en],mn=Qe+en):(ke=[0,600,1033,2339,2340][en],Wt=[0,260,286,306,312][en],Yt=[0,.26,.286,.3,.306,.34][en],mn="tilde"+en)}var et=new fe(mn),An=new P([et],{width:"100%",height:Yt+"em",viewBox:"0 0 "+ke+" "+Wt,preserveAspectRatio:"none"});return{span:dt.makeSvgSpan([],[An],d),minWidth:0,height:Yt}}else{var lr=[],Pn=Ps[Qe],nr=Pn[0],Ar=Pn[1],Dr=Pn[2],hi=Dr/1e3,pi=nr.length,Vi,ri;if(pi===1){var di=Pn[3];Vi=["hide-tail"],ri=[di]}else if(pi===2)Vi=["halfarrow-left","halfarrow-right"],ri=["xMinYMin","xMaxYMin"];else if(pi===3)Vi=["brace-left","brace-center","brace-right"],ri=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
|
`+pi+" children.");for(var _i=0;_i<pi;_i++){var qi=new fe(nr[_i]),zi=new P([qi],{width:"400em",height:hi+"em",viewBox:"0 0 "+ke+" "+Dr,preserveAspectRatio:ri[_i]+" slice"}),Wr=dt.makeSvgSpan([Vi[_i]],[zi],d);if(pi===1)return{span:Wr,minWidth:Ar,height:hi};Wr.style.height=hi+"em",lr.push(Wr)}return{span:dt.makeSpan(["stretchy"],lr,d),minWidth:Ar,height:hi}}}var b=h(),F=b.span,ie=b.minWidth,Ie=b.height;return F.height=Ie,F.style.height=Ie+"em",ie>0&&(F.style.minWidth=ie+"em"),F},or=function(l,d,h,b){var F,ie=l.height+l.depth+2*h;if(/fbox|color/.test(d)){if(F=dt.makeSpan(["stretchy",d],[],b),d==="fbox"){var Ie=b.color&&b.getColor();Ie&&(F.style.borderColor=Ie)}}else{var ke=[];/^[bx]cancel$/.test(d)&&ke.push(new oe({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(d)&&ke.push(new oe({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var Qe=new P(ke,{width:"100%",height:ie+"em"});F=dt.makeSvgSpan([],[Qe],b)}return F.height=ie,F.style.height=ie+"em",F},Or={encloseSpan:or,mathMLnode:As,svgSpan:us},bi=function(l,d){var h,b,F=ur(l,"supsub"),ie;F?(b=Bn(F.base,"accent"),h=b.base,F.base=h,ie=Te(jr(F,d)),F.base=b):(b=Bn(l,"accent"),h=b.base);var Ie=jr(h,d.havingCrampedStyle()),ke=b.isShifty&&z.isCharacterBox(h),Qe=0;if(ke){var ht=z.getBaseElem(h),At=jr(ht,d.havingCrampedStyle());Qe=te(At).skew}var Wt=Math.min(Ie.height,d.fontMetrics().xHeight),mn;if(b.isStretchy)mn=Or.svgSpan(b,d),mn=dt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ie},{type:"elem",elem:mn,wrapperClasses:["svg-align"],wrapperStyle:Qe>0?{width:"calc(100% - "+2*Qe+"em)",marginLeft:2*Qe+"em"}:void 0}]},d);else{var Yt,en;b.label==="\\vec"?(Yt=dt.staticSvg("vec",d),en=dt.svgData.vec[1]):(Yt=dt.makeOrd({mode:b.mode,text:b.label},d,"textord"),Yt=te(Yt),Yt.italic=0,en=Yt.width),mn=dt.makeSpan(["accent-body"],[Yt]);var et=b.label==="\\textcircled";et&&(mn.classes.push("accent-full"),Wt=Ie.height);var An=Qe;et||(An-=en/2),mn.style.left=An+"em",b.label==="\\textcircled"&&(mn.style.top=".2em"),mn=dt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ie},{type:"kern",size:-Wt},{type:"elem",elem:mn}]},d)}var lr=dt.makeSpan(["mord","accent"],[mn],d);return ie?(ie.children[0]=lr,ie.height=Math.max(lr.height,ie.height),ie.classes[0]="mord",ie):lr},ji=function(l,d){var h=l.isStretchy?Or.mathMLnode(l.label):new Nn.MathNode("mo",[Mi(l.label,l.mode)]),b=new Nn.MathNode("mover",[Xn(l.base,d),h]);return b.setAttribute("accent","true"),b},gi=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(ne){return"\\"+ne}).join("|"));jn({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,d){var h=d[0],b=!gi.test(l.funcName),F=!b||l.funcName==="\\widehat"||l.funcName==="\\widetilde"||l.funcName==="\\widecheck";return{type:"accent",mode:l.parser.mode,label:l.funcName,isStretchy:b,isShifty:F,base:h}},htmlBuilder:bi,mathmlBuilder:ji}),jn({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(l,d){var h=d[0];return{type:"accent",mode:l.parser.mode,label:l.funcName,isStretchy:!1,isShifty:!0,base:h}},htmlBuilder:bi,mathmlBuilder:ji}),jn({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(l,d){var h=l.parser,b=l.funcName,F=d[0];return{type:"accentUnder",mode:h.mode,label:b,base:F}},htmlBuilder:function(l,d){var h=jr(l.base,d),b=Or.svgSpan(l,d),F=l.label==="\\utilde"?.12:0,ie=dt.makeVList({positionType:"bottom",positionData:b.height+F,children:[{type:"elem",elem:b,wrapperClasses:["svg-align"]},{type:"kern",size:F},{type:"elem",elem:h}]},d);return dt.makeSpan(["mord","accentunder"],[ie],d)},mathmlBuilder:function(l,d){var h=Or.mathMLnode(l.label),b=new Nn.MathNode("munder",[Xn(l.base,d),h]);return b.setAttribute("accentunder","true"),b}});var Ds=function(l){var d=new Nn.MathNode("mpadded",l?[l]:[]);return d.setAttribute("width","+0.6em"),d.setAttribute("lspace","0.3em"),d};jn({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,d,h){var b=l.parser,F=l.funcName;return{type:"xArrow",mode:b.mode,label:F,body:d[0],below:h[0]}},htmlBuilder:function(l,d){var h=d.style,b=d.havingStyle(h.sup()),F=dt.wrapFragment(jr(l.body,b,d),d);F.classes.push("x-arrow-pad");var ie;l.below&&(b=d.havingStyle(h.sub()),ie=dt.wrapFragment(jr(l.below,b,d),d),ie.classes.push("x-arrow-pad"));var Ie=Or.svgSpan(l,d),ke=-d.fontMetrics().axisHeight+.5*Ie.height,Qe=-d.fontMetrics().axisHeight-.5*Ie.height-.111;(F.depth>.25||l.label==="\\xleftequilibrium")&&(Qe-=F.depth);var ht;if(ie){var At=-d.fontMetrics().axisHeight+ie.height+.5*Ie.height+.111;ht=dt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:F,shift:Qe},{type:"elem",elem:Ie,shift:ke},{type:"elem",elem:ie,shift:At}]},d)}else ht=dt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:F,shift:Qe},{type:"elem",elem:Ie,shift:ke}]},d);return ht.children[0].children[0].children[1].classes.push("svg-align"),dt.makeSpan(["mrel","x-arrow"],[ht],d)},mathmlBuilder:function(l,d){var h=Or.mathMLnode(l.label),b;if(l.body){var F=Ds(Xn(l.body,d));if(l.below){var ie=Ds(Xn(l.below,d));b=new Nn.MathNode("munderover",[h,ie,F])}else b=new Nn.MathNode("mover",[h,F])}else if(l.below){var Ie=Ds(Xn(l.below,d));b=new Nn.MathNode("munder",[h,Ie])}else b=Ds(),b=new Nn.MathNode("mover",[h,b]);return b}}),jn({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){for(var h=l.parser,b=Bn(d[0],"ordgroup"),F=b.body,ie="",Ie=0;Ie<F.length;Ie++){var ke=Bn(F[Ie],"textord");ie+=ke.text}var Qe=parseInt(ie);if(isNaN(Qe))throw new m("\\@char has non-numeric argument "+ie);return{type:"textord",mode:h.mode,text:String.fromCharCode(Qe)}}});var ks=function(l,d){var h=ui(l.body,d.withColor(l.color),!1);return dt.makeFragment(h)},Is=function(l,d){var h=xr(l.body,d.withColor(l.color)),b=new Nn.MathNode("mstyle",h);return b.setAttribute("mathcolor",l.color),b};jn({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(l,d){var h=l.parser,b=Bn(d[0],"color-token").color,F=d[1];return{type:"color",mode:h.mode,color:b,body:Xr(F)}},htmlBuilder:ks,mathmlBuilder:Is}),jn({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(l,d){var h=l.parser,b=l.breakOnTokenText,F=Bn(d[0],"color-token").color;h.gullet.macros.set("\\current@color",F);var ie=h.parseExpression(!0,b);return{type:"color",mode:h.mode,color:F,body:ie}},htmlBuilder:ks,mathmlBuilder:Is}),jn({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(l,d,h){var b=l.parser,F=l.funcName,ie=h[0],Ie=F==="\\cr",ke=!1;return Ie||(b.settings.displayMode&&b.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?ke=!1:ke=!0),{type:"cr",mode:b.mode,newLine:ke,newRow:Ie,size:ie&&Bn(ie,"size").value}},htmlBuilder:function(l,d){if(l.newRow)throw new m("\\cr valid only within a tabular/array environment");var h=dt.makeSpan(["mspace"],[],d);return l.newLine&&(h.classes.push("newline"),l.size&&(h.style.marginTop=pt(l.size,d)+"em")),h},mathmlBuilder:function(l,d){var h=new Nn.MathNode("mspace");return l.newLine&&(h.setAttribute("linebreak","newline"),l.size&&h.setAttribute("height",pt(l.size,d)+"em")),h}});var _s=function(l,d,h){var b=Zt.math[l]&&Zt.math[l].replace,F=Xe(b||l,d,h);if(!F)throw new Error("Unsupported symbol "+l+" and font size "+d+".");return F},aa=function(l,d,h,b){var F=h.havingBaseStyle(d),ie=dt.makeSpan(b.concat(F.sizingClasses(h)),[l],h),Ie=F.sizeMultiplier/h.sizeMultiplier;return ie.height*=Ie,ie.depth*=Ie,ie.maxFontSize=F.sizeMultiplier,ie},oa=function(l,d,h){var b=d.havingBaseStyle(h),F=(1-d.sizeMultiplier/b.sizeMultiplier)*d.fontMetrics().axisHeight;l.classes.push("delimcenter"),l.style.top=F+"em",l.height-=F,l.depth+=F},ha=function(l,d,h,b,F,ie){var Ie=dt.makeSymbol(l,"Main-Regular",F,b),ke=aa(Ie,d,b,ie);return h&&oa(ke,b,d),ke},Ws=function(l,d,h,b){return dt.makeSymbol(l,"Size"+d+"-Regular",h,b)},pa=function(l,d,h,b,F,ie){var Ie=Ws(l,d,F,b),ke=aa(dt.makeSpan(["delimsizing","size"+d],[Ie],b),v.TEXT,b,ie);return h&&oa(ke,b,v.TEXT),ke},ns=function(l,d,h){var b;d==="Size1-Regular"?b="delim-size1":b="delim-size4";var F=dt.makeSpan(["delimsizinginner",b],[dt.makeSpan([],[dt.makeSymbol(l,d,h)])]);return{type:"elem",elem:F}},xs={type:"kern",size:-.005},ma=function(l,d,h,b,F,ie){var Ie,ke,Qe,ht;Ie=Qe=ht=l,ke=null;var At="Size1-Regular";l==="\\uparrow"?Qe=ht="\u23D0":l==="\\Uparrow"?Qe=ht="\u2016":l==="\\downarrow"?Ie=Qe="\u23D0":l==="\\Downarrow"?Ie=Qe="\u2016":l==="\\updownarrow"?(Ie="\\uparrow",Qe="\u23D0",ht="\\downarrow"):l==="\\Updownarrow"?(Ie="\\Uparrow",Qe="\u2016",ht="\\Downarrow"):l==="["||l==="\\lbrack"?(Ie="\u23A1",Qe="\u23A2",ht="\u23A3",At="Size4-Regular"):l==="]"||l==="\\rbrack"?(Ie="\u23A4",Qe="\u23A5",ht="\u23A6",At="Size4-Regular"):l==="\\lfloor"||l==="\u230A"?(Qe=Ie="\u23A2",ht="\u23A3",At="Size4-Regular"):l==="\\lceil"||l==="\u2308"?(Ie="\u23A1",Qe=ht="\u23A2",At="Size4-Regular"):l==="\\rfloor"||l==="\u230B"?(Qe=Ie="\u23A5",ht="\u23A6",At="Size4-Regular"):l==="\\rceil"||l==="\u2309"?(Ie="\u23A4",Qe=ht="\u23A5",At="Size4-Regular"):l==="("||l==="\\lparen"?(Ie="\u239B",Qe="\u239C",ht="\u239D",At="Size4-Regular"):l===")"||l==="\\rparen"?(Ie="\u239E",Qe="\u239F",ht="\u23A0",At="Size4-Regular"):l==="\\{"||l==="\\lbrace"?(Ie="\u23A7",ke="\u23A8",ht="\u23A9",Qe="\u23AA",At="Size4-Regular"):l==="\\}"||l==="\\rbrace"?(Ie="\u23AB",ke="\u23AC",ht="\u23AD",Qe="\u23AA",At="Size4-Regular"):l==="\\lgroup"||l==="\u27EE"?(Ie="\u23A7",ht="\u23A9",Qe="\u23AA",At="Size4-Regular"):l==="\\rgroup"||l==="\u27EF"?(Ie="\u23AB",ht="\u23AD",Qe="\u23AA",At="Size4-Regular"):l==="\\lmoustache"||l==="\u23B0"?(Ie="\u23A7",ht="\u23AD",Qe="\u23AA",At="Size4-Regular"):(l==="\\rmoustache"||l==="\u23B1")&&(Ie="\u23AB",ht="\u23A9",Qe="\u23AA",At="Size4-Regular");var Wt=_s(Ie,At,F),mn=Wt.height+Wt.depth,Yt=_s(Qe,At,F),en=Yt.height+Yt.depth,et=_s(ht,At,F),An=et.height+et.depth,lr=0,Pn=1;if(ke!==null){var nr=_s(ke,At,F);lr=nr.height+nr.depth,Pn=2}var Ar=mn+An+lr,Dr=Math.max(0,Math.ceil((d-Ar)/(Pn*en))),hi=Ar+Dr*Pn*en,pi=b.fontMetrics().axisHeight;h&&(pi*=b.sizeMultiplier);var Vi=hi/2-pi,ri=(Dr+1)*.005-en,di=[];if(di.push(ns(ht,At,F)),ke===null)for(var _i=0;_i<Dr;_i++)di.push(xs),di.push(ns(Qe,At,F));else{for(var qi=0;qi<Dr;qi++)di.push(xs),di.push(ns(Qe,At,F));di.push({type:"kern",size:ri}),di.push(ns(Qe,At,F)),di.push(xs),di.push(ns(ke,At,F));for(var zi=0;zi<Dr;zi++)di.push(xs),di.push(ns(Qe,At,F))}di.push({type:"kern",size:ri}),di.push(ns(Qe,At,F)),di.push(xs),di.push(ns(Ie,At,F));var Wr=b.havingBaseStyle(v.TEXT),li=dt.makeVList({positionType:"bottom",positionData:Vi,children:di},Wr);return aa(dt.makeSpan(["delimsizing","mult"],[li],Wr),v.TEXT,b,ie)},Js=80,qs=.08,Us=function(l,d,h,b,F){var ie=tn(l,b,h),Ie=new fe(l,ie),ke=new P([Ie],{width:"400em",height:d+"em",viewBox:"0 0 400000 "+h,preserveAspectRatio:"xMinYMin slice"});return dt.makeSvgSpan(["hide-tail"],[ke],F)},oi=function(l,d){var h=d.havingBaseSizing(),b=Bs("\\surd",l*h.sizeMultiplier,ys,h),F=h.sizeMultiplier,ie=Math.max(0,d.minRuleThickness-d.fontMetrics().sqrtRuleThickness),Ie,ke=0,Qe=0,ht=0,At;return b.type==="small"?(ht=1e3+1e3*ie+Js,l<1?F=1:l<1.4&&(F=.7),ke=(1+ie+qs)/F,Qe=(1+ie)/F,Ie=Us("sqrtMain",ke,ht,ie,d),Ie.style.minWidth="0.853em",At=.833/F):b.type==="large"?(ht=(1e3+Js)*Pi[b.size],Qe=(Pi[b.size]+ie)/F,ke=(Pi[b.size]+ie+qs)/F,Ie=Us("sqrtSize"+b.size,ke,ht,ie,d),Ie.style.minWidth="1.02em",At=1/F):(ke=l+ie+qs,Qe=l+ie,ht=Math.floor(1e3*l+ie)+Js,Ie=Us("sqrtTall",ke,ht,ie,d),Ie.style.minWidth="0.742em",At=1.056),Ie.height=Qe,Ie.style.height=ke+"em",{span:Ie,advanceWidth:At,ruleWidth:(d.fontMetrics().sqrtRuleThickness+ie)*F}},Qr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],as=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],Wi=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Pi=[0,1.2,1.8,2.4,3],Gi=function(l,d,h,b,F){if(l==="<"||l==="\\lt"||l==="\u27E8"?l="\\langle":(l===">"||l==="\\gt"||l==="\u27E9")&&(l="\\rangle"),z.contains(Qr,l)||z.contains(Wi,l))return pa(l,d,!1,h,b,F);if(z.contains(as,l))return ma(l,Pi[d],!1,h,b,F);throw new m("Illegal delimiter: '"+l+"'")},ds=[{type:"small",style:v.SCRIPTSCRIPT},{type:"small",style:v.SCRIPT},{type:"small",style:v.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Es=[{type:"small",style:v.SCRIPTSCRIPT},{type:"small",style:v.SCRIPT},{type:"small",style:v.TEXT},{type:"stack"}],ys=[{type:"small",style:v.SCRIPTSCRIPT},{type:"small",style:v.SCRIPT},{type:"small",style:v.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],ea=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.")},Bs=function(l,d,h,b){for(var F=Math.min(2,3-b.style.size),ie=F;ie<h.length&&h[ie].type!=="stack";ie++){var Ie=_s(l,ea(h[ie]),"math"),ke=Ie.height+Ie.depth;if(h[ie].type==="small"){var Qe=b.havingBaseStyle(h[ie].style);ke*=Qe.sizeMultiplier}if(ke>d)return h[ie]}return h[h.length-1]},ga=function(l,d,h,b,F,ie){l==="<"||l==="\\lt"||l==="\u27E8"?l="\\langle":(l===">"||l==="\\gt"||l==="\u27E9")&&(l="\\rangle");var Ie;z.contains(Wi,l)?Ie=ds:z.contains(Qr,l)?Ie=ys:Ie=Es;var ke=Bs(l,d,Ie,b);return ke.type==="small"?ha(l,ke.style,h,b,F,ie):ke.type==="large"?pa(l,ke.size,h,b,F,ie):ma(l,d,h,b,F,ie)},za=function(l,d,h,b,F,ie){var Ie=b.fontMetrics().axisHeight*b.sizeMultiplier,ke=901,Qe=5/b.fontMetrics().ptPerEm,ht=Math.max(d-Ie,h+Ie),At=Math.max(ht/500*ke,2*ht-Qe);return ga(l,At,!0,b,F,ie)},Ms={sqrtImage:oi,sizedDelim:Gi,customSizedDelim:ga,leftRightDelim:za},la={"\\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}},va=["(","\\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 Gs(ne,l){var d=Vr(ne);if(d&&z.contains(va,d.text))return d;throw new m("Invalid delimiter: '"+(d?d.text:JSON.stringify(ne))+"' after '"+l.funcName+"'",ne)}jn({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,d){var h=Gs(d[0],l);return{type:"delimsizing",mode:l.parser.mode,size:la[l.funcName].size,mclass:la[l.funcName].mclass,delim:h.text}},htmlBuilder:function(l,d){return l.delim==="."?dt.makeSpan([l.mclass]):Ms.sizedDelim(l.delim,l.size,d,l.mode,[l.mclass])},mathmlBuilder:function(l){var d=[];l.delim!=="."&&d.push(Mi(l.delim,l.mode));var h=new Nn.MathNode("mo",d);return l.mclass==="mopen"||l.mclass==="mclose"?h.setAttribute("fence","true"):h.setAttribute("fence","false"),h}});function wa(ne){if(!ne.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}jn({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(l,d){var h=l.parser.gullet.macros.get("\\current@color");if(h&&typeof h!="string")throw new m("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:l.parser.mode,delim:Gs(d[0],l).text,color:h}}}),jn({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(l,d){var h=Gs(d[0],l),b=l.parser;++b.leftrightDepth;var F=b.parseExpression(!1);--b.leftrightDepth,b.expect("\\right",!1);var ie=Bn(b.parseFunction(),"leftright-right");return{type:"leftright",mode:b.mode,body:F,left:h.text,right:ie.delim,rightColor:ie.color}},htmlBuilder:function(l,d){wa(l);for(var h=ui(l.body,d,!0,["mopen","mclose"]),b=0,F=0,ie=!1,Ie=0;Ie<h.length;Ie++)h[Ie].isMiddle?ie=!0:(b=Math.max(h[Ie].height,b),F=Math.max(h[Ie].depth,F));b*=d.sizeMultiplier,F*=d.sizeMultiplier;var ke;if(l.left==="."?ke=Qi(d,["mopen"]):ke=Ms.leftRightDelim(l.left,b,F,d,l.mode,["mopen"]),h.unshift(ke),ie)for(var Qe=1;Qe<h.length;Qe++){var ht=h[Qe],At=ht.isMiddle;At&&(h[Qe]=Ms.leftRightDelim(At.delim,b,F,At.options,l.mode,[]))}var Wt;if(l.right===".")Wt=Qi(d,["mclose"]);else{var mn=l.rightColor?d.withColor(l.rightColor):d;Wt=Ms.leftRightDelim(l.right,b,F,mn,l.mode,["mclose"])}return h.push(Wt),dt.makeSpan(["minner"],h,d)},mathmlBuilder:function(l,d){wa(l);var h=xr(l.body,d);if(l.left!=="."){var b=new Nn.MathNode("mo",[Mi(l.left,l.mode)]);b.setAttribute("fence","true"),h.unshift(b)}if(l.right!=="."){var F=new Nn.MathNode("mo",[Mi(l.right,l.mode)]);F.setAttribute("fence","true"),l.rightColor&&F.setAttribute("mathcolor",l.rightColor),h.push(F)}return ls(h)}}),jn({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(l,d){var h=Gs(d[0],l);if(!l.parser.leftrightDepth)throw new m("\\middle without preceding \\left",h);return{type:"middle",mode:l.parser.mode,delim:h.text}},htmlBuilder:function(l,d){var h;if(l.delim===".")h=Qi(d,[]);else{h=Ms.sizedDelim(l.delim,1,d,l.mode,[]);var b={delim:l.delim,options:d};h.isMiddle=b}return h},mathmlBuilder:function(l,d){var h=l.delim==="\\vert"||l.delim==="|"?Mi("|","text"):Mi(l.delim,l.mode),b=new Nn.MathNode("mo",[h]);return b.setAttribute("fence","true"),b.setAttribute("lspace","0.05em"),b.setAttribute("rspace","0.05em"),b}});var Ca=function(l,d){var h=dt.wrapFragment(jr(l.body,d),d),b=l.label.substr(1),F=d.sizeMultiplier,ie,Ie=0,ke=z.isCharacterBox(l.body);if(b==="sout")ie=dt.makeSpan(["stretchy","sout"]),ie.height=d.fontMetrics().defaultRuleThickness/F,Ie=-.5*d.fontMetrics().xHeight;else{/cancel/.test(b)?ke||h.classes.push("cancel-pad"):h.classes.push("boxpad");var Qe=0,ht=0;/box/.test(b)?(ht=Math.max(d.fontMetrics().fboxrule,d.minRuleThickness),Qe=d.fontMetrics().fboxsep+(b==="colorbox"?0:ht)):Qe=ke?.2:0,ie=Or.encloseSpan(h,b,Qe,d),/fbox|boxed|fcolorbox/.test(b)&&(ie.style.borderStyle="solid",ie.style.borderWidth=ht+"em"),Ie=h.depth+Qe,l.backgroundColor&&(ie.style.backgroundColor=l.backgroundColor,l.borderColor&&(ie.style.borderColor=l.borderColor))}var At;return l.backgroundColor?At=dt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ie,shift:Ie},{type:"elem",elem:h,shift:0}]},d):At=dt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:0},{type:"elem",elem:ie,shift:Ie,wrapperClasses:/cancel/.test(b)?["svg-align"]:[]}]},d),/cancel/.test(b)&&(At.height=h.height,At.depth=h.depth),/cancel/.test(b)&&!ke?dt.makeSpan(["mord","cancel-lap"],[At],d):dt.makeSpan(["mord"],[At],d)},ua=function(l,d){var h=0,b=new Nn.MathNode(l.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Xn(l.body,d)]);switch(l.label){case"\\cancel":b.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":b.setAttribute("notation","downdiagonalstrike");break;case"\\sout":b.setAttribute("notation","horizontalstrike");break;case"\\fbox":b.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(h=d.fontMetrics().fboxsep*d.fontMetrics().ptPerEm,b.setAttribute("width","+"+2*h+"pt"),b.setAttribute("height","+"+2*h+"pt"),b.setAttribute("lspace",h+"pt"),b.setAttribute("voffset",h+"pt"),l.label==="\\fcolorbox"){var F=Math.max(d.fontMetrics().fboxrule,d.minRuleThickness);b.setAttribute("style","border: "+F+"em solid "+String(l.borderColor))}break;case"\\xcancel":b.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return l.backgroundColor&&b.setAttribute("mathbackground",l.backgroundColor),b};jn({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(l,d,h){var b=l.parser,F=l.funcName,ie=Bn(d[0],"color-token").color,Ie=d[1];return{type:"enclose",mode:b.mode,label:F,backgroundColor:ie,body:Ie}},htmlBuilder:Ca,mathmlBuilder:ua}),jn({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(l,d,h){var b=l.parser,F=l.funcName,ie=Bn(d[0],"color-token").color,Ie=Bn(d[1],"color-token").color,ke=d[2];return{type:"enclose",mode:b.mode,label:F,backgroundColor:Ie,borderColor:ie,body:ke}},htmlBuilder:Ca,mathmlBuilder:ua}),jn({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(l,d){var h=l.parser;return{type:"enclose",mode:h.mode,label:"\\fbox",body:d[0]}}}),jn({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(l,d,h){var b=l.parser,F=l.funcName,ie=d[0];return{type:"enclose",mode:b.mode,label:F,body:ie}},htmlBuilder:Ca,mathmlBuilder:ua});var Ta={};function Rs(ne){for(var l=ne.type,d=ne.names,h=ne.props,b=ne.handler,F=ne.htmlBuilder,ie=ne.mathmlBuilder,Ie={type:l,numArgs:h.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:b},ke=0;ke<d.length;++ke)Ta[d[ke]]=Ie;F&&(ei[l]=F),ie&&(Ii[l]=ie)}function Pa(ne){var l=[];ne.consumeSpaces();for(var d=ne.fetch().text;d==="\\hline"||d==="\\hdashline";)ne.consume(),l.push(d==="\\hdashline"),ne.consumeSpaces(),d=ne.fetch().text;return l}function Ai(ne,l,d){var h=l.hskipBeforeAndAfter,b=l.addJot,F=l.cols,ie=l.arraystretch,Ie=l.colSeparationType;if(ne.gullet.beginGroup(),ne.gullet.macros.set("\\\\","\\cr"),!ie){var ke=ne.gullet.expandMacroAsText("\\arraystretch");if(ke==null)ie=1;else if(ie=parseFloat(ke),!ie||ie<0)throw new m("Invalid \\arraystretch: "+ke)}ne.gullet.beginGroup();var Qe=[],ht=[Qe],At=[],Wt=[];for(Wt.push(Pa(ne));;){var mn=ne.parseExpression(!1,"\\cr");ne.gullet.endGroup(),ne.gullet.beginGroup(),mn={type:"ordgroup",mode:ne.mode,body:mn},d&&(mn={type:"styling",mode:ne.mode,style:d,body:[mn]}),Qe.push(mn);var Yt=ne.fetch().text;if(Yt==="&")ne.consume();else if(Yt==="\\end"){Qe.length===1&&mn.type==="styling"&&mn.body[0].body.length===0&&ht.pop(),Wt.length<ht.length+1&&Wt.push([]);break}else if(Yt==="\\cr"){var en=Bn(ne.parseFunction(),"cr");At.push(en.size),Wt.push(Pa(ne)),Qe=[],ht.push(Qe)}else throw new m("Expected & or \\\\ or \\cr or \\end",ne.nextToken)}return ne.gullet.endGroup(),ne.gullet.endGroup(),{type:"array",mode:ne.mode,addJot:b,arraystretch:ie,body:ht,cols:F,rowGaps:At,hskipBeforeAndAfter:h,hLinesBeforeRow:Wt,colSeparationType:Ie}}function Di(ne){return ne.substr(0,1)==="d"?"display":"text"}var Si=function(l,d){var h,b,F=l.body.length,ie=l.hLinesBeforeRow,Ie=0,ke=new Array(F),Qe=[],ht=Math.max(d.fontMetrics().arrayRuleWidth,d.minRuleThickness),At=1/d.fontMetrics().ptPerEm,Wt=5*At;if(l.colSeparationType&&l.colSeparationType==="small"){var mn=d.havingStyle(v.SCRIPT).sizeMultiplier;Wt=.2778*(mn/d.sizeMultiplier)}var Yt=12*At,en=3*At,et=l.arraystretch*Yt,An=.7*et,lr=.3*et,Pn=0;function nr(rs){for(var ki=0;ki<rs.length;++ki)ki>0&&(Pn+=.25),Qe.push({pos:Pn,isDashed:rs[ki]})}for(nr(ie[0]),h=0;h<l.body.length;++h){var Ar=l.body[h],Dr=An,hi=lr;Ie<Ar.length&&(Ie=Ar.length);var pi=new Array(Ar.length);for(b=0;b<Ar.length;++b){var Vi=jr(Ar[b],d);hi<Vi.depth&&(hi=Vi.depth),Dr<Vi.height&&(Dr=Vi.height),pi[b]=Vi}var ri=l.rowGaps[h],di=0;ri&&(di=pt(ri,d),di>0&&(di+=lr,hi<di&&(hi=di),di=0)),l.addJot&&(hi+=en),pi.height=Dr,pi.depth=hi,Pn+=Dr,pi.pos=Pn,Pn+=hi+di,ke[h]=pi,nr(ie[h+1])}var _i=Pn/2+d.fontMetrics().axisHeight,qi=l.cols||[],zi=[],Wr,li;for(b=0,li=0;b<Ie||li<qi.length;++b,++li){for(var vi=qi[li]||{},is=!0;vi.type==="separator";){if(is||(Wr=dt.makeSpan(["arraycolsep"],[]),Wr.style.width=d.fontMetrics().doubleRuleSep+"em",zi.push(Wr)),vi.separator==="|"||vi.separator===":"){var os=vi.separator==="|"?"solid":"dashed",Gr=dt.makeSpan(["vertical-separator"],[],d);Gr.style.height=Pn+"em",Gr.style.borderRightWidth=ht+"em",Gr.style.borderRightStyle=os,Gr.style.margin="0 -"+ht/2+"em",Gr.style.verticalAlign=-(Pn-_i)+"em",zi.push(Gr)}else throw new m("Invalid separator type: "+vi.separator);li++,vi=qi[li]||{},is=!1}if(!(b>=Ie)){var Ni=void 0;(b>0||l.hskipBeforeAndAfter)&&(Ni=z.deflt(vi.pregap,Wt),Ni!==0&&(Wr=dt.makeSpan(["arraycolsep"],[]),Wr.style.width=Ni+"em",zi.push(Wr)));var es=[];for(h=0;h<F;++h){var ms=ke[h],Fs=ms[b];if(Fs){var $s=ms.pos-_i;Fs.depth=ms.depth,Fs.height=ms.height,es.push({type:"elem",elem:Fs,shift:$s})}}es=dt.makeVList({positionType:"individualShift",children:es},d),es=dt.makeSpan(["col-align-"+(vi.align||"c")],[es]),zi.push(es),(b<Ie-1||l.hskipBeforeAndAfter)&&(Ni=z.deflt(vi.postgap,Wt),Ni!==0&&(Wr=dt.makeSpan(["arraycolsep"],[]),Wr.style.width=Ni+"em",zi.push(Wr)))}}if(ke=dt.makeSpan(["mtable"],zi),Qe.length>0){for(var ra=dt.makeLineSpan("hline",d,ht),ia=dt.makeLineSpan("hdashline",d,ht),Ns=[{type:"elem",elem:ke,shift:0}];Qe.length>0;){var bs=Qe.pop(),gs=bs.pos-_i;bs.isDashed?Ns.push({type:"elem",elem:ia,shift:gs}):Ns.push({type:"elem",elem:ra,shift:gs})}ke=dt.makeVList({positionType:"individualShift",children:Ns},d)}return dt.makeSpan(["mord"],[ke],d)},Ss={c:"center ",l:"left ",r:"right "},Ji=function(l,d){var h=new Nn.MathNode("mtable",l.body.map(function(Pn){return new Nn.MathNode("mtr",Pn.map(function(nr){return new Nn.MathNode("mtd",[Xn(nr,d)])}))})),b=l.arraystretch===.5?.1:.16+l.arraystretch-1+(l.addJot?.09:0);h.setAttribute("rowspacing",b+"em");var F="",ie="";if(l.cols){var Ie=l.cols,ke="",Qe=!1,ht=0,At=Ie.length;Ie[0].type==="separator"&&(F+="top ",ht=1),Ie[Ie.length-1].type==="separator"&&(F+="bottom ",At-=1);for(var Wt=ht;Wt<At;Wt++)Ie[Wt].type==="align"?(ie+=Ss[Ie[Wt].align],Qe&&(ke+="none "),Qe=!0):Ie[Wt].type==="separator"&&Qe&&(ke+=Ie[Wt].separator==="|"?"solid ":"dashed ",Qe=!1);h.setAttribute("columnalign",ie.trim()),/[sd]/.test(ke)&&h.setAttribute("columnlines",ke.trim())}if(l.colSeparationType==="align"){for(var mn=l.cols||[],Yt="",en=1;en<mn.length;en++)Yt+=en%2?"0em ":"1em ";h.setAttribute("columnspacing",Yt.trim())}else l.colSeparationType==="alignat"?h.setAttribute("columnspacing","0em"):l.colSeparationType==="small"?h.setAttribute("columnspacing","0.2778em"):h.setAttribute("columnspacing","1em");var et="",An=l.hLinesBeforeRow;F+=An[0].length>0?"left ":"",F+=An[An.length-1].length>0?"right ":"";for(var lr=1;lr<An.length-1;lr++)et+=An[lr].length===0?"none ":An[lr][0]?"dashed ":"solid ";return/[sd]/.test(et)&&h.setAttribute("rowlines",et.trim()),F!==""&&(h=new Nn.MathNode("menclose",[h]),h.setAttribute("notation",F.trim())),l.arraystretch&&l.arraystretch<1&&(h=new Nn.MathNode("mstyle",[h]),h.setAttribute("scriptlevel","1")),h},ya=function(l,d){var h=[],b=Ai(l.parser,{cols:h,addJot:!0},"display"),F,ie=0,Ie={type:"ordgroup",mode:l.mode,body:[]},ke=ur(d[0],"ordgroup");if(ke){for(var Qe="",ht=0;ht<ke.body.length;ht++){var At=Bn(ke.body[ht],"textord");Qe+=At.text}F=Number(Qe),ie=F*2}var Wt=!ie;b.body.forEach(function(et){for(var An=1;An<et.length;An+=2){var lr=Bn(et[An],"styling"),Pn=Bn(lr.body[0],"ordgroup");Pn.body.unshift(Ie)}if(Wt)ie<et.length&&(ie=et.length);else{var nr=et.length/2;if(F<nr)throw new m("Too many math in a row: "+("expected "+F+", but got "+nr),et[0])}});for(var mn=0;mn<ie;++mn){var Yt="r",en=0;mn%2===1?Yt="l":mn>0&&Wt&&(en=1),h[mn]={type:"align",align:Yt,pregap:en,postgap:0}}return b.colSeparationType=Wt?"align":"alignat",b};Rs({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(l,d){var h=Vr(d[0]),b=h?[d[0]]:Bn(d[0],"ordgroup").body,F=b.map(function(Ie){var ke=zr(Ie),Qe=ke.text;if("lcr".indexOf(Qe)!==-1)return{type:"align",align:Qe};if(Qe==="|")return{type:"separator",separator:"|"};if(Qe===":")return{type:"separator",separator:":"};throw new m("Unknown column alignment: "+Qe,Ie)}),ie={cols:F,hskipBeforeAndAfter:!0};return Ai(l.parser,ie,Di(l.envName))},htmlBuilder:Si,mathmlBuilder:Ji}),Rs({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(l){var d={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[l.envName],h={hskipBeforeAndAfter:!1},b=Ai(l.parser,h,Di(l.envName));return d?{type:"leftright",mode:l.mode,body:[b],left:d[0],right:d[1],rightColor:void 0}:b},htmlBuilder:Si,mathmlBuilder:Ji}),Rs({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(l){var d={arraystretch:.5},h=Ai(l.parser,d,"script");return h.colSeparationType="small",h},htmlBuilder:Si,mathmlBuilder:Ji}),Rs({type:"array",names:["subarray"],props:{numArgs:1},handler:function(l,d){var h=Vr(d[0]),b=h?[d[0]]:Bn(d[0],"ordgroup").body,F=b.map(function(Ie){var ke=zr(Ie),Qe=ke.text;if("lc".indexOf(Qe)!==-1)return{type:"align",align:Qe};throw new m("Unknown column alignment: "+Qe,Ie)});if(F.length>1)throw new m("{subarray} can contain only one column");var ie={cols:F,hskipBeforeAndAfter:!1,arraystretch:.5};if(ie=Ai(l.parser,ie,"script"),ie.body[0].length>1)throw new m("{subarray} can contain only one column");return ie},htmlBuilder:Si,mathmlBuilder:Ji}),Rs({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(l){var d={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},h=Ai(l.parser,d,Di(l.envName));return{type:"leftright",mode:l.mode,body:[h],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:Si,mathmlBuilder:Ji}),Rs({type:"array",names:["aligned"],props:{numArgs:0},handler:ya,htmlBuilder:Si,mathmlBuilder:Ji}),Rs({type:"array",names:["gathered"],props:{numArgs:0},handler:function(l){var d={cols:[{type:"align",align:"c"}],addJot:!0};return Ai(l.parser,d,"display")},htmlBuilder:Si,mathmlBuilder:Ji}),Rs({type:"array",names:["alignedat"],props:{numArgs:1},handler:ya,htmlBuilder:Si,mathmlBuilder:Ji}),jn({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(l,d){throw new m(l.funcName+" valid only within array environment")}});var gn=Ta,ta=gn;jn({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(l,d){var h=l.parser,b=l.funcName,F=d[0];if(F.type!=="ordgroup")throw new m("Invalid environment name",F);for(var ie="",Ie=0;Ie<F.body.length;++Ie)ie+=Bn(F.body[Ie],"textord").text;if(b==="\\begin"){if(!ta.hasOwnProperty(ie))throw new m("No such environment: "+ie,F);var ke=ta[ie],Qe=h.parseArguments("\\begin{"+ie+"}",ke),ht=Qe.args,At=Qe.optArgs,Wt={mode:h.mode,envName:ie,parser:h},mn=ke.handler(Wt,ht,At);h.expect("\\end",!1);var Yt=h.nextToken,en=Bn(h.parseFunction(),"environment");if(en.name!==ie)throw new m("Mismatch: \\begin{"+ie+"} matched by \\end{"+en.name+"}",Yt);return mn}return{type:"environment",mode:h.mode,name:ie,nameGroup:F}}});var ka=dt.makeSpan;function Aa(ne,l){var d=ui(ne.body,l,!0);return ka([ne.mclass],d,l)}function ba(ne,l){var d,h=xr(ne.body,l);return ne.mclass==="minner"?Nn.newDocumentFragment(h):(ne.mclass==="mord"?ne.isCharacterBox?(d=h[0],d.type="mi"):d=new Nn.MathNode("mi",h):(ne.isCharacterBox?(d=h[0],d.type="mo"):d=new Nn.MathNode("mo",h),ne.mclass==="mbin"?(d.attributes.lspace="0.22em",d.attributes.rspace="0.22em"):ne.mclass==="mpunct"?(d.attributes.lspace="0em",d.attributes.rspace="0.17em"):(ne.mclass==="mopen"||ne.mclass==="mclose")&&(d.attributes.lspace="0em",d.attributes.rspace="0em")),d)}jn({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(l,d){var h=l.parser,b=l.funcName,F=d[0];return{type:"mclass",mode:h.mode,mclass:"m"+b.substr(5),body:Xr(F),isCharacterBox:z.isCharacterBox(F)}},htmlBuilder:Aa,mathmlBuilder:ba});var na=function(l){var d=l.type==="ordgroup"&&l.body.length?l.body[0]:l;return d.type==="atom"&&(d.family==="bin"||d.family==="rel")?"m"+d.family:"mord"};jn({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(l,d){var h=l.parser;return{type:"mclass",mode:h.mode,mclass:na(d[0]),body:[d[1]],isCharacterBox:z.isCharacterBox(d[1])}}}),jn({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(l,d){var h=l.parser,b=l.funcName,F=d[1],ie=d[0],Ie;b!=="\\stackrel"?Ie=na(F):Ie="mrel";var ke={type:"op",mode:F.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:b!=="\\stackrel",body:Xr(F)},Qe={type:"supsub",mode:ie.mode,base:ke,sup:b==="\\underset"?null:ie,sub:b==="\\underset"?ie:null};return{type:"mclass",mode:h.mode,mclass:Ie,body:[Qe],isCharacterBox:z.isCharacterBox(Qe)}},htmlBuilder:Aa,mathmlBuilder:ba});var Ua=function(l,d){var h=l.font,b=d.withFont(h);return jr(l.body,b)},io=function(l,d){var h=l.font,b=d.withFont(h);return Xn(l.body,b)},Po={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};jn({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(l,d){var h=l.parser,b=l.funcName,F=d[0],ie=b;return ie in Po&&(ie=Po[ie]),{type:"font",mode:h.mode,font:ie.slice(1),body:F}},htmlBuilder:Ua,mathmlBuilder:io}),jn({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(l,d){var h=l.parser,b=d[0],F=z.isCharacterBox(b);return{type:"mclass",mode:h.mode,mclass:na(b),body:[{type:"font",mode:h.mode,font:"boldsymbol",body:b}],isCharacterBox:F}}}),jn({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(l,d){var h=l.parser,b=l.funcName,F=l.breakOnTokenText,ie=h.mode,Ie=h.parseExpression(!0,F),ke="math"+b.slice(1);return{type:"font",mode:ie,font:ke,body:{type:"ordgroup",mode:h.mode,body:Ie}}},htmlBuilder:Ua,mathmlBuilder:io});var Ka=function(l,d){var h=d;return l==="display"?h=h.id>=v.SCRIPT.id?h.text():v.DISPLAY:l==="text"&&h.size===v.DISPLAY.size?h=v.TEXT:l==="script"?h=v.SCRIPT:l==="scriptscript"&&(h=v.SCRIPTSCRIPT),h},_a=function(l,d){var h=Ka(l.size,d.style),b=h.fracNum(),F=h.fracDen(),ie;ie=d.havingStyle(b);var Ie=jr(l.numer,ie,d);if(l.continued){var ke=8.5/d.fontMetrics().ptPerEm,Qe=3.5/d.fontMetrics().ptPerEm;Ie.height=Ie.height<ke?ke:Ie.height,Ie.depth=Ie.depth<Qe?Qe:Ie.depth}ie=d.havingStyle(F);var ht=jr(l.denom,ie,d),At,Wt,mn;l.hasBarLine?(l.barSize?(Wt=pt(l.barSize,d),At=dt.makeLineSpan("frac-line",d,Wt)):At=dt.makeLineSpan("frac-line",d),Wt=At.height,mn=At.height):(At=null,Wt=0,mn=d.fontMetrics().defaultRuleThickness);var Yt,en,et;h.size===v.DISPLAY.size||l.size==="display"?(Yt=d.fontMetrics().num1,Wt>0?en=3*mn:en=7*mn,et=d.fontMetrics().denom1):(Wt>0?(Yt=d.fontMetrics().num2,en=mn):(Yt=d.fontMetrics().num3,en=3*mn),et=d.fontMetrics().denom2);var An;if(At){var Pn=d.fontMetrics().axisHeight;Yt-Ie.depth-(Pn+.5*Wt)<en&&(Yt+=en-(Yt-Ie.depth-(Pn+.5*Wt))),Pn-.5*Wt-(ht.height-et)<en&&(et+=en-(Pn-.5*Wt-(ht.height-et)));var nr=-(Pn-.5*Wt);An=dt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ht,shift:et},{type:"elem",elem:At,shift:nr},{type:"elem",elem:Ie,shift:-Yt}]},d)}else{var lr=Yt-Ie.depth-(ht.height-et);lr<en&&(Yt+=.5*(en-lr),et+=.5*(en-lr)),An=dt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ht,shift:et},{type:"elem",elem:Ie,shift:-Yt}]},d)}ie=d.havingStyle(h),An.height*=ie.sizeMultiplier/d.sizeMultiplier,An.depth*=ie.sizeMultiplier/d.sizeMultiplier;var Ar;h.size===v.DISPLAY.size?Ar=d.fontMetrics().delim1:Ar=d.fontMetrics().delim2;var Dr,hi;return l.leftDelim==null?Dr=Qi(d,["mopen"]):Dr=Ms.customSizedDelim(l.leftDelim,Ar,!0,d.havingStyle(h),l.mode,["mopen"]),l.continued?hi=dt.makeSpan([]):l.rightDelim==null?hi=Qi(d,["mclose"]):hi=Ms.customSizedDelim(l.rightDelim,Ar,!0,d.havingStyle(h),l.mode,["mclose"]),dt.makeSpan(["mord"].concat(ie.sizingClasses(d)),[Dr,dt.makeSpan(["mfrac"],[An]),hi],d)},xa=function(l,d){var h=new Nn.MathNode("mfrac",[Xn(l.numer,d),Xn(l.denom,d)]);if(!l.hasBarLine)h.setAttribute("linethickness","0px");else if(l.barSize){var b=pt(l.barSize,d);h.setAttribute("linethickness",b+"em")}var F=Ka(l.size,d.style);if(F.size!==d.style.size){h=new Nn.MathNode("mstyle",[h]);var ie=F.size===v.DISPLAY.size?"true":"false";h.setAttribute("displaystyle",ie),h.setAttribute("scriptlevel","0")}if(l.leftDelim!=null||l.rightDelim!=null){var Ie=[];if(l.leftDelim!=null){var ke=new Nn.MathNode("mo",[new Nn.TextNode(l.leftDelim.replace("\\",""))]);ke.setAttribute("fence","true"),Ie.push(ke)}if(Ie.push(h),l.rightDelim!=null){var Qe=new Nn.MathNode("mo",[new Nn.TextNode(l.rightDelim.replace("\\",""))]);Qe.setAttribute("fence","true"),Ie.push(Qe)}return ls(Ie)}return h};jn({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(l,d){var h=l.parser,b=l.funcName,F=d[0],ie=d[1],Ie,ke=null,Qe=null,ht="auto";switch(b){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":Ie=!0;break;case"\\\\atopfrac":Ie=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":Ie=!1,ke="(",Qe=")";break;case"\\\\bracefrac":Ie=!1,ke="\\{",Qe="\\}";break;case"\\\\brackfrac":Ie=!1,ke="[",Qe="]";break;default:throw new Error("Unrecognized genfrac command")}switch(b){case"\\cfrac":case"\\dfrac":case"\\dbinom":ht="display";break;case"\\tfrac":case"\\tbinom":ht="text";break}return{type:"genfrac",mode:h.mode,continued:b==="\\cfrac",numer:F,denom:ie,hasBarLine:Ie,leftDelim:ke,rightDelim:Qe,size:ht,barSize:null}},htmlBuilder:_a,mathmlBuilder:xa}),jn({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(l){var d=l.parser,h=l.funcName,b=l.token,F;switch(h){case"\\over":F="\\frac";break;case"\\choose":F="\\binom";break;case"\\atop":F="\\\\atopfrac";break;case"\\brace":F="\\\\bracefrac";break;case"\\brack":F="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:d.mode,replaceWith:F,token:b}}});var so=["display","text","script","scriptscript"],ko=function(l){var d=null;return l.length>0&&(d=l,d=d==="."?null:d),d};jn({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(l,d){var h=l.parser,b=d[4],F=d[5],ie=ur(d[0],"atom");ie&&(ie=er(d[0],"open"));var Ie=ie?ko(ie.text):null,ke=ur(d[1],"atom");ke&&(ke=er(d[1],"close"));var Qe=ke?ko(ke.text):null,ht=Bn(d[2],"size"),At,Wt=null;ht.isBlank?At=!0:(Wt=ht.value,At=Wt.number>0);var mn="auto",Yt=ur(d[3],"ordgroup");if(Yt){if(Yt.body.length>0){var en=Bn(Yt.body[0],"textord");mn=so[Number(en.text)]}}else Yt=Bn(d[3],"textord"),mn=so[Number(Yt.text)];return{type:"genfrac",mode:h.mode,numer:b,denom:F,continued:!1,hasBarLine:At,barSize:Wt,leftDelim:Ie,rightDelim:Qe,size:mn}},htmlBuilder:_a,mathmlBuilder:xa}),jn({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(l,d){var h=l.parser,b=l.funcName,F=l.token;return{type:"infix",mode:h.mode,replaceWith:"\\\\abovefrac",size:Bn(d[0],"size").value,token:F}}}),jn({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(l,d){var h=l.parser,b=l.funcName,F=d[0],ie=B(Bn(d[1],"infix").size),Ie=d[2],ke=ie.number>0;return{type:"genfrac",mode:h.mode,numer:F,denom:Ie,continued:!1,hasBarLine:ke,barSize:ie,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:_a,mathmlBuilder:xa});var ao=function(l,d){var h=d.style,b,F,ie=ur(l,"supsub");ie?(b=ie.sup?jr(ie.sup,d.havingStyle(h.sup()),d):jr(ie.sub,d.havingStyle(h.sub()),d),F=Bn(ie.base,"horizBrace")):F=Bn(l,"horizBrace");var Ie=jr(F.base,d.havingBaseStyle(v.DISPLAY)),ke=Or.svgSpan(F,d),Qe;if(F.isOver?(Qe=dt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ie},{type:"kern",size:.1},{type:"elem",elem:ke}]},d),Qe.children[0].children[0].children[1].classes.push("svg-align")):(Qe=dt.makeVList({positionType:"bottom",positionData:Ie.depth+.1+ke.height,children:[{type:"elem",elem:ke},{type:"kern",size:.1},{type:"elem",elem:Ie}]},d),Qe.children[0].children[0].children[0].classes.push("svg-align")),b){var ht=dt.makeSpan(["mord",F.isOver?"mover":"munder"],[Qe],d);F.isOver?Qe=dt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:ht},{type:"kern",size:.2},{type:"elem",elem:b}]},d):Qe=dt.makeVList({positionType:"bottom",positionData:ht.depth+.2+b.height+b.depth,children:[{type:"elem",elem:b},{type:"kern",size:.2},{type:"elem",elem:ht}]},d)}return dt.makeSpan(["mord",F.isOver?"mover":"munder"],[Qe],d)},Xo=function(l,d){var h=Or.mathMLnode(l.label);return new Nn.MathNode(l.isOver?"mover":"munder",[Xn(l.base,d),h])};jn({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(l,d){var h=l.parser,b=l.funcName;return{type:"horizBrace",mode:h.mode,label:b,isOver:/^\\over/.test(b),base:d[0]}},htmlBuilder:ao,mathmlBuilder:Xo}),jn({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(l,d){var h=l.parser,b=d[1],F=Bn(d[0],"url").url;return h.settings.isTrusted({command:"\\href",url:F})?{type:"href",mode:h.mode,href:F,body:Xr(b)}:h.formatUnsupportedCmd("\\href")},htmlBuilder:function(l,d){var h=ui(l.body,d,!1);return dt.makeAnchor(l.href,[],h,d)},mathmlBuilder:function(l,d){var h=cr(l.body,d);return h instanceof Br||(h=new Br("mrow",[h])),h.setAttribute("href",l.href),h}}),jn({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(l,d){var h=l.parser,b=Bn(d[0],"url").url;if(!h.settings.isTrusted({command:"\\url",url:b}))return h.formatUnsupportedCmd("\\url");for(var F=[],ie=0;ie<b.length;ie++){var Ie=b[ie];Ie==="~"&&(Ie="\\textasciitilde"),F.push({type:"textord",mode:"text",text:Ie})}var ke={type:"text",mode:h.mode,font:"\\texttt",body:F};return{type:"href",mode:h.mode,href:b,body:Xr(ke)}}}),jn({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(l,d){var h=l.parser;return{type:"htmlmathml",mode:h.mode,html:Xr(d[0]),mathml:Xr(d[1])}},htmlBuilder:function(l,d){var h=ui(l.html,d,!1);return dt.makeFragment(h)},mathmlBuilder:function(l,d){return cr(l.mathml,d)}});var Ha=function(l){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(l))return{number:+l,unit:"bp"};var d=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(l);if(!d)throw new m("Invalid size: '"+l+"' in \\includegraphics");var h={number:+(d[1]+d[2]),unit:d[3]};if(!ct(h))throw new m("Invalid unit: '"+h.unit+"' in \\includegraphics.");return h};jn({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(l,d,h){var b=l.parser,F={number:0,unit:"em"},ie={number:.9,unit:"em"},Ie={number:0,unit:"em"},ke="";if(h[0])for(var Qe=Bn(h[0],"raw").string,ht=Qe.split(","),At=0;At<ht.length;At++){var Wt=ht[At].split("=");if(Wt.length===2){var mn=Wt[1].trim();switch(Wt[0].trim()){case"alt":ke=mn;break;case"width":F=Ha(mn);break;case"height":ie=Ha(mn);break;case"totalheight":Ie=Ha(mn);break;default:throw new m("Invalid key: '"+Wt[0]+"' in \\includegraphics.")}}}var Yt=Bn(d[0],"url").url;return ke===""&&(ke=Yt,ke=ke.replace(/^.*[\\/]/,""),ke=ke.substring(0,ke.lastIndexOf("."))),b.settings.isTrusted({command:"\\includegraphics",url:Yt})?{type:"includegraphics",mode:b.mode,alt:ke,width:F,height:ie,totalheight:Ie,src:Yt}:b.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(l,d){var h=pt(l.height,d),b=0;l.totalheight.number>0&&(b=pt(l.totalheight,d)-h,b=Number(b.toFixed(2)));var F=0;l.width.number>0&&(F=pt(l.width,d));var ie={height:h+b+"em"};F>0&&(ie.width=F+"em"),b>0&&(ie.verticalAlign=-b+"em");var Ie=new Re(l.src,l.alt,ie);return Ie.height=h,Ie.depth=b,Ie},mathmlBuilder:function(l,d){var h=new Nn.MathNode("mglyph",[]);h.setAttribute("alt",l.alt);var b=pt(l.height,d),F=0;if(l.totalheight.number>0&&(F=pt(l.totalheight,d)-b,F=F.toFixed(2),h.setAttribute("valign","-"+F+"em")),h.setAttribute("height",b+F+"em"),l.width.number>0){var ie=pt(l.width,d);h.setAttribute("width",ie+"em")}return h.setAttribute("src",l.src),h}}),jn({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(l,d){var h=l.parser,b=l.funcName,F=Bn(d[0],"size");if(h.settings.strict){var ie=b[1]==="m",Ie=F.value.unit==="mu";ie?(Ie||h.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+b+" supports only mu units, "+("not "+F.value.unit+" units")),h.mode!=="math"&&h.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+b+" works only in math mode")):Ie&&h.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+b+" doesn't support mu units")}return{type:"kern",mode:h.mode,dimension:F.value}},htmlBuilder:function(l,d){return dt.makeGlue(l.dimension,d)},mathmlBuilder:function(l,d){var h=pt(l.dimension,d);return new Nn.SpaceNode(h)}}),jn({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var h=l.parser,b=l.funcName,F=d[0];return{type:"lap",mode:h.mode,alignment:b.slice(5),body:F}},htmlBuilder:function(l,d){var h;l.alignment==="clap"?(h=dt.makeSpan([],[jr(l.body,d)]),h=dt.makeSpan(["inner"],[h],d)):h=dt.makeSpan(["inner"],[jr(l.body,d)]);var b=dt.makeSpan(["fix"],[]),F=dt.makeSpan([l.alignment],[h,b],d),ie=dt.makeSpan(["strut"]);return ie.style.height=F.height+F.depth+"em",ie.style.verticalAlign=-F.depth+"em",F.children.unshift(ie),F=dt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:F}]},d),dt.makeSpan(["mord"],[F],d)},mathmlBuilder:function(l,d){var h=new Nn.MathNode("mpadded",[Xn(l.body,d)]);if(l.alignment!=="rlap"){var b=l.alignment==="llap"?"-1":"-0.5";h.setAttribute("lspace",b+"width")}return h.setAttribute("width","0px"),h}}),jn({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(l,d){var h=l.funcName,b=l.parser,F=b.mode;b.switchMode("math");var ie=h==="\\("?"\\)":"$",Ie=b.parseExpression(!1,ie);return b.expect(ie),b.switchMode(F),{type:"styling",mode:b.mode,style:"text",body:Ie}}}),jn({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(l,d){throw new m("Mismatched "+l.funcName)}});var Xa=function(l,d){switch(d.style.size){case v.DISPLAY.size:return l.display;case v.TEXT.size:return l.text;case v.SCRIPT.size:return l.script;case v.SCRIPTSCRIPT.size:return l.scriptscript;default:return l.text}};jn({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(l,d){var h=l.parser;return{type:"mathchoice",mode:h.mode,display:Xr(d[0]),text:Xr(d[1]),script:Xr(d[2]),scriptscript:Xr(d[3])}},htmlBuilder:function(l,d){var h=Xa(l,d),b=ui(h,d,!1);return dt.makeFragment(b)},mathmlBuilder:function(l,d){var h=Xa(l,d);return cr(h,d)}});var Ma=function(l,d,h,b,F,ie,Ie){l=dt.makeSpan([],[l]);var ke,Qe;if(d){var ht=jr(d,b.havingStyle(F.sup()),b);Qe={elem:ht,kern:Math.max(b.fontMetrics().bigOpSpacing1,b.fontMetrics().bigOpSpacing3-ht.depth)}}if(h){var At=jr(h,b.havingStyle(F.sub()),b);ke={elem:At,kern:Math.max(b.fontMetrics().bigOpSpacing2,b.fontMetrics().bigOpSpacing4-At.height)}}var Wt;if(Qe&&ke){var mn=b.fontMetrics().bigOpSpacing5+ke.elem.height+ke.elem.depth+ke.kern+l.depth+Ie;Wt=dt.makeVList({positionType:"bottom",positionData:mn,children:[{type:"kern",size:b.fontMetrics().bigOpSpacing5},{type:"elem",elem:ke.elem,marginLeft:-ie+"em"},{type:"kern",size:ke.kern},{type:"elem",elem:l},{type:"kern",size:Qe.kern},{type:"elem",elem:Qe.elem,marginLeft:ie+"em"},{type:"kern",size:b.fontMetrics().bigOpSpacing5}]},b)}else if(ke){var Yt=l.height-Ie;Wt=dt.makeVList({positionType:"top",positionData:Yt,children:[{type:"kern",size:b.fontMetrics().bigOpSpacing5},{type:"elem",elem:ke.elem,marginLeft:-ie+"em"},{type:"kern",size:ke.kern},{type:"elem",elem:l}]},b)}else if(Qe){var en=l.depth+Ie;Wt=dt.makeVList({positionType:"bottom",positionData:en,children:[{type:"elem",elem:l},{type:"kern",size:Qe.kern},{type:"elem",elem:Qe.elem,marginLeft:ie+"em"},{type:"kern",size:b.fontMetrics().bigOpSpacing5}]},b)}else return l;return dt.makeSpan(["mop","op-limits"],[Wt],b)},Na=["\\smallint"],Da=function(l,d){var h,b,F=!1,ie,Ie=ur(l,"supsub");Ie?(h=Ie.sup,b=Ie.sub,ie=Bn(Ie.base,"op"),F=!0):ie=Bn(l,"op");var ke=d.style,Qe=!1;ke.size===v.DISPLAY.size&&ie.symbol&&!z.contains(Na,ie.name)&&(Qe=!0);var ht;if(ie.symbol){var At=Qe?"Size2-Regular":"Size1-Regular",Wt="";if((ie.name==="\\oiint"||ie.name==="\\oiiint")&&(Wt=ie.name.substr(1),ie.name=Wt==="oiint"?"\\iint":"\\iiint"),ht=dt.makeSymbol(ie.name,At,"math",d,["mop","op-symbol",Qe?"large-op":"small-op"]),Wt.length>0){var mn=ht.italic,Yt=dt.staticSvg(Wt+"Size"+(Qe?"2":"1"),d);ht=dt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ht,shift:0},{type:"elem",elem:Yt,shift:Qe?.08:0}]},d),ie.name="\\"+Wt,ht.classes.unshift("mop"),ht.italic=mn}}else if(ie.body){var en=ui(ie.body,d,!0);en.length===1&&en[0]instanceof R?(ht=en[0],ht.classes[0]="mop"):ht=dt.makeSpan(["mop"],dt.tryCombineChars(en),d)}else{for(var et=[],An=1;An<ie.name.length;An++)et.push(dt.mathsym(ie.name[An],ie.mode,d));ht=dt.makeSpan(["mop"],et,d)}var lr=0,Pn=0;return(ht instanceof R||ie.name==="\\oiint"||ie.name==="\\oiiint")&&!ie.suppressBaseShift&&(lr=(ht.height-ht.depth)/2-d.fontMetrics().axisHeight,Pn=ht.italic),F?Ma(ht,h,b,d,ke,Pn,lr):(lr&&(ht.style.position="relative",ht.style.top=lr+"em"),ht)},Ba=function(l,d){var h;if(l.symbol)h=new Br("mo",[Mi(l.name,l.mode)]),z.contains(Na,l.name)&&h.setAttribute("largeop","false");else if(l.body)h=new Br("mo",xr(l.body,d));else{h=new Br("mi",[new hs(l.name.slice(1))]);var b=new Br("mo",[Mi("\u2061","text")]);l.parentIsSupSub?h=new Br("mo",[h,b]):h=cs([h,b])}return h},oo={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};jn({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,d){var h=l.parser,b=l.funcName,F=b;return F.length===1&&(F=oo[F]),{type:"op",mode:h.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:F}},htmlBuilder:Da,mathmlBuilder:Ba}),jn({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(l,d){var h=l.parser,b=d[0];return{type:"op",mode:h.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Xr(b)}},htmlBuilder:Da,mathmlBuilder:Ba});var lo={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};jn({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 d=l.parser,h=l.funcName;return{type:"op",mode:d.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:h}},htmlBuilder:Da,mathmlBuilder:Ba}),jn({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(l){var d=l.parser,h=l.funcName;return{type:"op",mode:d.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:h}},htmlBuilder:Da,mathmlBuilder:Ba}),jn({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(l){var d=l.parser,h=l.funcName,b=h;return b.length===1&&(b=lo[b]),{type:"op",mode:d.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:b}},htmlBuilder:Da,mathmlBuilder:Ba});var uo=function(l,d){var h,b,F=!1,ie,Ie=ur(l,"supsub");Ie?(h=Ie.sup,b=Ie.sub,ie=Bn(Ie.base,"operatorname"),F=!0):ie=Bn(l,"operatorname");var ke;if(ie.body.length>0){for(var Qe=ie.body.map(function(mn){var Yt=mn.text;return typeof Yt=="string"?{type:"textord",mode:mn.mode,text:Yt}:mn}),ht=ui(Qe,d.withFont("mathrm"),!0),At=0;At<ht.length;At++){var Wt=ht[At];Wt instanceof R&&(Wt.text=Wt.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}ke=dt.makeSpan(["mop"],ht,d)}else ke=dt.makeSpan(["mop"],[],d);return F?Ma(ke,h,b,d,d.style,0,0):ke},Qa=function(l,d){for(var h=xr(l.body,d.withFont("mathrm")),b=!0,F=0;F<h.length;F++){var ie=h[F];if(!(ie instanceof Nn.SpaceNode))if(ie instanceof Nn.MathNode)switch(ie.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var Ie=ie.children[0];ie.children.length===1&&Ie instanceof Nn.TextNode?Ie.text=Ie.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):b=!1;break}default:b=!1}else b=!1}if(b){var ke=h.map(function(At){return At.toText()}).join("");h=[new Nn.TextNode(ke)]}var Qe=new Nn.MathNode("mi",h);Qe.setAttribute("mathvariant","normal");var ht=new Nn.MathNode("mo",[Mi("\u2061","text")]);return l.parentIsSupSub?new Nn.MathNode("mo",[Qe,ht]):Nn.newDocumentFragment([Qe,ht])};jn({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(l,d){var h=l.parser,b=l.funcName,F=d[0];return{type:"operatorname",mode:h.mode,body:Xr(F),alwaysHandleSupSub:b==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:uo,mathmlBuilder:Qa}),ii({type:"ordgroup",htmlBuilder:function(l,d){return l.semisimple?dt.makeFragment(ui(l.body,d,!1)):dt.makeSpan(["mord"],ui(l.body,d,!0),d)},mathmlBuilder:function(l,d){return cr(l.body,d,!0)}}),jn({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(l,d){var h=l.parser,b=d[0];return{type:"overline",mode:h.mode,body:b}},htmlBuilder:function(l,d){var h=jr(l.body,d.havingCrampedStyle()),b=dt.makeLineSpan("overline-line",d),F=d.fontMetrics().defaultRuleThickness,ie=dt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:3*F},{type:"elem",elem:b},{type:"kern",size:F}]},d);return dt.makeSpan(["mord","overline"],[ie],d)},mathmlBuilder:function(l,d){var h=new Nn.MathNode("mo",[new Nn.TextNode("\u203E")]);h.setAttribute("stretchy","true");var b=new Nn.MathNode("mover",[Xn(l.body,d),h]);return b.setAttribute("accent","true"),b}}),jn({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var h=l.parser,b=d[0];return{type:"phantom",mode:h.mode,body:Xr(b)}},htmlBuilder:function(l,d){var h=ui(l.body,d.withPhantom(),!1);return dt.makeFragment(h)},mathmlBuilder:function(l,d){var h=xr(l.body,d);return new Nn.MathNode("mphantom",h)}}),jn({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var h=l.parser,b=d[0];return{type:"hphantom",mode:h.mode,body:b}},htmlBuilder:function(l,d){var h=dt.makeSpan([],[jr(l.body,d.withPhantom())]);if(h.height=0,h.depth=0,h.children)for(var b=0;b<h.children.length;b++)h.children[b].height=0,h.children[b].depth=0;return h=dt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h}]},d),dt.makeSpan(["mord"],[h],d)},mathmlBuilder:function(l,d){var h=xr(Xr(l.body),d),b=new Nn.MathNode("mphantom",h),F=new Nn.MathNode("mpadded",[b]);return F.setAttribute("height","0px"),F.setAttribute("depth","0px"),F}}),jn({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var h=l.parser,b=d[0];return{type:"vphantom",mode:h.mode,body:b}},htmlBuilder:function(l,d){var h=dt.makeSpan(["inner"],[jr(l.body,d.withPhantom())]),b=dt.makeSpan(["fix"],[]);return dt.makeSpan(["mord","rlap"],[h,b],d)},mathmlBuilder:function(l,d){var h=xr(Xr(l.body),d),b=new Nn.MathNode("mphantom",h),F=new Nn.MathNode("mpadded",[b]);return F.setAttribute("width","0px"),F}}),jn({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(l,d){var h=l.parser,b=Bn(d[0],"size").value,F=d[1];return{type:"raisebox",mode:h.mode,dy:b,body:F}},htmlBuilder:function(l,d){var h=jr(l.body,d),b=pt(l.dy,d);return dt.makeVList({positionType:"shift",positionData:-b,children:[{type:"elem",elem:h}]},d)},mathmlBuilder:function(l,d){var h=new Nn.MathNode("mpadded",[Xn(l.body,d)]),b=l.dy.number+l.dy.unit;return h.setAttribute("voffset",b),h}}),jn({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(l,d,h){var b=l.parser,F=h[0],ie=Bn(d[0],"size"),Ie=Bn(d[1],"size");return{type:"rule",mode:b.mode,shift:F&&Bn(F,"size").value,width:ie.value,height:Ie.value}},htmlBuilder:function(l,d){var h=dt.makeSpan(["mord","rule"],[],d),b=pt(l.width,d),F=pt(l.height,d),ie=l.shift?pt(l.shift,d):0;return h.style.borderRightWidth=b+"em",h.style.borderTopWidth=F+"em",h.style.bottom=ie+"em",h.width=b,h.height=F+ie,h.depth=-ie,h.maxFontSize=F*1.125*d.sizeMultiplier,h},mathmlBuilder:function(l,d){var h=pt(l.width,d),b=pt(l.height,d),F=l.shift?pt(l.shift,d):0,ie=d.color&&d.getColor()||"black",Ie=new Nn.MathNode("mspace");Ie.setAttribute("mathbackground",ie),Ie.setAttribute("width",h+"em"),Ie.setAttribute("height",b+"em");var ke=new Nn.MathNode("mpadded",[Ie]);return F>=0?ke.setAttribute("height","+"+F+"em"):(ke.setAttribute("height",F+"em"),ke.setAttribute("depth","+"+-F+"em")),ke.setAttribute("voffset",F+"em"),ke}});function co(ne,l,d){for(var h=ui(ne,l,!1),b=l.sizeMultiplier/d.sizeMultiplier,F=0;F<h.length;F++){var ie=h[F].classes.indexOf("sizing");ie<0?Array.prototype.push.apply(h[F].classes,l.sizingClasses(d)):h[F].classes[ie+1]==="reset-size"+l.size&&(h[F].classes[ie+1]="reset-size"+d.size),h[F].height*=b,h[F].depth*=b}return dt.makeFragment(h)}var Mo=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],fo=function(l,d){var h=d.havingSize(l.size);return co(l.body,h,d)};jn({type:"sizing",names:Mo,props:{numArgs:0,allowedInText:!0},handler:function(l,d){var h=l.breakOnTokenText,b=l.funcName,F=l.parser,ie=F.parseExpression(!1,h);return{type:"sizing",mode:F.mode,size:Mo.indexOf(b)+1,body:ie}},htmlBuilder:fo,mathmlBuilder:function(l,d){var h=d.havingSize(l.size),b=xr(l.body,h),F=new Nn.MathNode("mstyle",b);return F.setAttribute("mathsize",h.sizeMultiplier+"em"),F}}),jn({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(l,d,h){var b=l.parser,F=!1,ie=!1,Ie=h[0]&&Bn(h[0],"ordgroup");if(Ie)for(var ke="",Qe=0;Qe<Ie.body.length;++Qe){var ht=Ie.body[Qe];if(ke=ht.text,ke==="t")F=!0;else if(ke==="b")ie=!0;else{F=!1,ie=!1;break}}else F=!0,ie=!0;var At=d[0];return{type:"smash",mode:b.mode,body:At,smashHeight:F,smashDepth:ie}},htmlBuilder:function(l,d){var h=dt.makeSpan([],[jr(l.body,d)]);if(!l.smashHeight&&!l.smashDepth)return h;if(l.smashHeight&&(h.height=0,h.children))for(var b=0;b<h.children.length;b++)h.children[b].height=0;if(l.smashDepth&&(h.depth=0,h.children))for(var F=0;F<h.children.length;F++)h.children[F].depth=0;var ie=dt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h}]},d);return dt.makeSpan(["mord"],[ie],d)},mathmlBuilder:function(l,d){var h=new Nn.MathNode("mpadded",[Xn(l.body,d)]);return l.smashHeight&&h.setAttribute("height","0px"),l.smashDepth&&h.setAttribute("depth","0px"),h}}),jn({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(l,d,h){var b=l.parser,F=h[0],ie=d[0];return{type:"sqrt",mode:b.mode,body:ie,index:F}},htmlBuilder:function(l,d){var h=jr(l.body,d.havingCrampedStyle());h.height===0&&(h.height=d.fontMetrics().xHeight),h=dt.wrapFragment(h,d);var b=d.fontMetrics(),F=b.defaultRuleThickness,ie=F;d.style.id<v.TEXT.id&&(ie=d.fontMetrics().xHeight);var Ie=F+ie/4,ke=h.height+h.depth+Ie+F,Qe=Ms.sqrtImage(ke,d),ht=Qe.span,At=Qe.ruleWidth,Wt=Qe.advanceWidth,mn=ht.height-At;mn>h.height+h.depth+Ie&&(Ie=(Ie+mn-h.height-h.depth)/2);var Yt=ht.height-h.height-Ie-At;h.style.paddingLeft=Wt+"em";var en=dt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h,wrapperClasses:["svg-align"]},{type:"kern",size:-(h.height+Yt)},{type:"elem",elem:ht},{type:"kern",size:At}]},d);if(l.index){var et=d.havingStyle(v.SCRIPTSCRIPT),An=jr(l.index,et,d),lr=.6*(en.height-en.depth),Pn=dt.makeVList({positionType:"shift",positionData:-lr,children:[{type:"elem",elem:An}]},d),nr=dt.makeSpan(["root"],[Pn]);return dt.makeSpan(["mord","sqrt"],[nr,en],d)}else return dt.makeSpan(["mord","sqrt"],[en],d)},mathmlBuilder:function(l,d){var h=l.body,b=l.index;return b?new Nn.MathNode("mroot",[Xn(h,d),Xn(b,d)]):new Nn.MathNode("msqrt",[Xn(h,d)])}});var ho={display:v.DISPLAY,text:v.TEXT,script:v.SCRIPT,scriptscript:v.SCRIPTSCRIPT};jn({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(l,d){var h=l.breakOnTokenText,b=l.funcName,F=l.parser,ie=F.parseExpression(!0,h),Ie=b.slice(1,b.length-5);return{type:"styling",mode:F.mode,style:Ie,body:ie}},htmlBuilder:function(l,d){var h=ho[l.style],b=d.havingStyle(h).withFont("");return co(l.body,b,d)},mathmlBuilder:function(l,d){var h=ho[l.style],b=d.havingStyle(h),F=xr(l.body,b),ie=new Nn.MathNode("mstyle",F),Ie={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},ke=Ie[l.style];return ie.setAttribute("scriptlevel",ke[0]),ie.setAttribute("displaystyle",ke[1]),ie}});var No=function(l,d){var h=l.base;if(h)if(h.type==="op"){var b=h.limits&&(d.style.size===v.DISPLAY.size||h.alwaysHandleSupSub);return b?Da:null}else if(h.type==="operatorname"){var F=h.alwaysHandleSupSub&&(d.style.size===v.DISPLAY.size||h.limits);return F?uo:null}else{if(h.type==="accent")return z.isCharacterBox(h.base)?bi:null;if(h.type==="horizBrace"){var ie=!l.sub;return ie===h.isOver?ao:null}else return null}else return null};ii({type:"supsub",htmlBuilder:function(l,d){var h=No(l,d);if(h)return h(l,d);var b=l.base,F=l.sup,ie=l.sub,Ie=jr(b,d),ke,Qe,ht=d.fontMetrics(),At=0,Wt=0,mn=b&&z.isCharacterBox(b);if(F){var Yt=d.havingStyle(d.style.sup());ke=jr(F,Yt,d),mn||(At=Ie.height-Yt.fontMetrics().supDrop*Yt.sizeMultiplier/d.sizeMultiplier)}if(ie){var en=d.havingStyle(d.style.sub());Qe=jr(ie,en,d),mn||(Wt=Ie.depth+en.fontMetrics().subDrop*en.sizeMultiplier/d.sizeMultiplier)}var et;d.style===v.DISPLAY?et=ht.sup1:d.style.cramped?et=ht.sup3:et=ht.sup2;var An=d.sizeMultiplier,lr=.5/ht.ptPerEm/An+"em",Pn=null;if(Qe){var nr=l.base&&l.base.type==="op"&&l.base.name&&(l.base.name==="\\oiint"||l.base.name==="\\oiiint");(Ie instanceof R||nr)&&(Pn=-Ie.italic+"em")}var Ar;if(ke&&Qe){At=Math.max(At,et,ke.depth+.25*ht.xHeight),Wt=Math.max(Wt,ht.sub2);var Dr=ht.defaultRuleThickness,hi=4*Dr;if(At-ke.depth-(Qe.height-Wt)<hi){Wt=hi-(At-ke.depth)+Qe.height;var pi=.8*ht.xHeight-(At-ke.depth);pi>0&&(At+=pi,Wt-=pi)}var Vi=[{type:"elem",elem:Qe,shift:Wt,marginRight:lr,marginLeft:Pn},{type:"elem",elem:ke,shift:-At,marginRight:lr}];Ar=dt.makeVList({positionType:"individualShift",children:Vi},d)}else if(Qe){Wt=Math.max(Wt,ht.sub1,Qe.height-.8*ht.xHeight);var ri=[{type:"elem",elem:Qe,marginLeft:Pn,marginRight:lr}];Ar=dt.makeVList({positionType:"shift",positionData:Wt,children:ri},d)}else if(ke)At=Math.max(At,et,ke.depth+.25*ht.xHeight),Ar=dt.makeVList({positionType:"shift",positionData:-At,children:[{type:"elem",elem:ke,marginRight:lr}]},d);else throw new Error("supsub must have either sup or sub.");var di=Hi(Ie,"right")||"mord";return dt.makeSpan([di],[Ie,dt.makeSpan(["msupsub"],[Ar])],d)},mathmlBuilder:function(l,d){var h=!1,b,F,ie=ur(l.base,"horizBrace");ie&&(F=!!l.sup,F===ie.isOver&&(h=!0,b=ie.isOver)),l.base&&(l.base.type==="op"||l.base.type==="operatorname")&&(l.base.parentIsSupSub=!0);var Ie=[Xn(l.base,d)];l.sub&&Ie.push(Xn(l.sub,d)),l.sup&&Ie.push(Xn(l.sup,d));var ke;if(h)ke=b?"mover":"munder";else if(l.sub)if(l.sup){var At=l.base;At&&At.type==="op"&&At.limits&&d.style===v.DISPLAY||At&&At.type==="operatorname"&&At.alwaysHandleSupSub&&(d.style===v.DISPLAY||At.limits)?ke="munderover":ke="msubsup"}else{var ht=l.base;ht&&ht.type==="op"&&ht.limits&&(d.style===v.DISPLAY||ht.alwaysHandleSupSub)||ht&&ht.type==="operatorname"&&ht.alwaysHandleSupSub&&(ht.limits||d.style===v.DISPLAY)?ke="munder":ke="msub"}else{var Qe=l.base;Qe&&Qe.type==="op"&&Qe.limits&&(d.style===v.DISPLAY||Qe.alwaysHandleSupSub)||Qe&&Qe.type==="operatorname"&&Qe.alwaysHandleSupSub&&(Qe.limits||d.style===v.DISPLAY)?ke="mover":ke="msup"}var Wt=new Nn.MathNode(ke,Ie);return Wt}}),ii({type:"atom",htmlBuilder:function(l,d){return dt.mathsym(l.text,l.mode,d,["m"+l.family])},mathmlBuilder:function(l,d){var h=new Nn.MathNode("mo",[Mi(l.text,l.mode)]);if(l.family==="bin"){var b=gr(l,d);b==="bold-italic"&&h.setAttribute("mathvariant",b)}else l.family==="punct"?h.setAttribute("separator","true"):(l.family==="open"||l.family==="close")&&h.setAttribute("stretchy","false");return h}});var po={mi:"italic",mn:"normal",mtext:"normal"};ii({type:"mathord",htmlBuilder:function(l,d){return dt.makeOrd(l,d,"mathord")},mathmlBuilder:function(l,d){var h=new Nn.MathNode("mi",[Mi(l.text,l.mode,d)]),b=gr(l,d)||"italic";return b!==po[h.type]&&h.setAttribute("mathvariant",b),h}}),ii({type:"textord",htmlBuilder:function(l,d){return dt.makeOrd(l,d,"textord")},mathmlBuilder:function(l,d){var h=Mi(l.text,l.mode,d),b=gr(l,d)||"normal",F;return l.mode==="text"?F=new Nn.MathNode("mtext",[h]):/[0-9]/.test(l.text)?F=new Nn.MathNode("mn",[h]):l.text==="\\prime"?F=new Nn.MathNode("mo",[h]):F=new Nn.MathNode("mi",[h]),b!==po[F.type]&&F.setAttribute("mathvariant",b),F}});var Za={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},mo={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ii({type:"spacing",htmlBuilder:function(l,d){if(mo.hasOwnProperty(l.text)){var h=mo[l.text].className||"";if(l.mode==="text"){var b=dt.makeOrd(l,d,"textord");return b.classes.push(h),b}else return dt.makeSpan(["mspace",h],[dt.mathsym(l.text,l.mode,d)],d)}else{if(Za.hasOwnProperty(l.text))return dt.makeSpan(["mspace",Za[l.text]],[],d);throw new m('Unknown type of space "'+l.text+'"')}},mathmlBuilder:function(l,d){var h;if(mo.hasOwnProperty(l.text))h=new Nn.MathNode("mtext",[new Nn.TextNode("\xA0")]);else{if(Za.hasOwnProperty(l.text))return new Nn.MathNode("mspace");throw new m('Unknown type of space "'+l.text+'"')}return h}});var go=function(){var l=new Nn.MathNode("mtd",[]);return l.setAttribute("width","50%"),l};ii({type:"tag",mathmlBuilder:function(l,d){var h=new Nn.MathNode("mtable",[new Nn.MathNode("mtr",[go(),new Nn.MathNode("mtd",[cr(l.body,d)]),go(),new Nn.MathNode("mtd",[cr(l.tag,d)])])]);return h.setAttribute("width","100%"),h}});var vo={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},yo={"\\textbf":"textbf","\\textmd":"textmd"},bo={"\\textit":"textit","\\textup":"textup"},_o=function(l,d){var h=l.font;return h?vo[h]?d.withTextFontFamily(vo[h]):yo[h]?d.withTextFontWeight(yo[h]):d.withTextFontShape(bo[h]):d};jn({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(l,d){var h=l.parser,b=l.funcName,F=d[0];return{type:"text",mode:h.mode,body:Xr(F),font:b}},htmlBuilder:function(l,d){var h=_o(l,d),b=ui(l.body,h,!0);return dt.makeSpan(["mord","text"],dt.tryCombineChars(b),h)},mathmlBuilder:function(l,d){var h=_o(l,d);return cr(l.body,h)}}),jn({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var h=l.parser;return{type:"underline",mode:h.mode,body:d[0]}},htmlBuilder:function(l,d){var h=jr(l.body,d),b=dt.makeLineSpan("underline-line",d),F=d.fontMetrics().defaultRuleThickness,ie=dt.makeVList({positionType:"top",positionData:h.height,children:[{type:"kern",size:F},{type:"elem",elem:b},{type:"kern",size:3*F},{type:"elem",elem:h}]},d);return dt.makeSpan(["mord","underline"],[ie],d)},mathmlBuilder:function(l,d){var h=new Nn.MathNode("mo",[new Nn.TextNode("\u203E")]);h.setAttribute("stretchy","true");var b=new Nn.MathNode("munder",[Xn(l.body,d),h]);return b.setAttribute("accentunder","true"),b}}),jn({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(l,d,h){throw new m("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(l,d){for(var h=xo(l),b=[],F=d.havingStyle(d.style.text()),ie=0;ie<h.length;ie++){var Ie=h[ie];Ie==="~"&&(Ie="\\textasciitilde"),b.push(dt.makeSymbol(Ie,"Typewriter-Regular",l.mode,F,["mord","texttt"]))}return dt.makeSpan(["mord","text"].concat(F.sizingClasses(d)),dt.tryCombineChars(b),F)},mathmlBuilder:function(l,d){var h=new Nn.TextNode(xo(l)),b=new Nn.MathNode("mtext",[h]);return b.setAttribute("mathvariant","monospace"),b}});var xo=function(l){return l.body.replace(/ /g,l.star?"\u2423":"\xA0")},Bo=kr,Ls=Bo,Ja=`[ \r
|
|
|
]`,Eo="\\\\[a-zA-Z@]+",ae="\\\\[^\uD800-\uDFFF]",ve=""+Eo+Ja+"*",$e=new RegExp("^("+Eo+")"+Ja+"*$"),We="[\u0300-\u036F]",st=new RegExp(We+"+$"),ot="("+Ja+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(We+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(We+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+ve)+("|"+ae+")"),Et=function(){function ne(d,h){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=d,this.settings=h,this.tokenRegex=new RegExp(ot,"g"),this.catcodes={"%":14}}var l=ne.prototype;return l.setCatcode=function(h,b){this.catcodes[h]=b},l.lex=function(){var h=this.input,b=this.tokenRegex.lastIndex;if(b===h.length)return new ce("EOF",new q(this,b,b));var F=this.tokenRegex.exec(h);if(F===null||F.index!==b)throw new m("Unexpected character: '"+h[b]+"'",new ce(h[b],new q(this,b,b+1)));var ie=F[2]||" ";if(this.catcodes[ie]===14){var Ie=h.indexOf(`
|
|
|
`,this.tokenRegex.lastIndex);return Ie===-1?(this.tokenRegex.lastIndex=h.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=Ie+1,this.lex()}var ke=ie.match($e);return ke&&(ie=ke[1]),new ce(ie,new q(this,b,this.tokenRegex.lastIndex))},ne}(),St=function(){function ne(d,h){d===void 0&&(d={}),h===void 0&&(h={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=h,this.builtins=d,this.undefStack=[]}var l=ne.prototype;return l.beginGroup=function(){this.undefStack.push({})},l.endGroup=function(){if(this.undefStack.length===0)throw new m("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var h=this.undefStack.pop();for(var b in h)h.hasOwnProperty(b)&&(h[b]===void 0?delete this.current[b]:this.current[b]=h[b])},l.has=function(h){return this.current.hasOwnProperty(h)||this.builtins.hasOwnProperty(h)},l.get=function(h){return this.current.hasOwnProperty(h)?this.current[h]:this.builtins[h]},l.set=function(h,b,F){if(F===void 0&&(F=!1),F){for(var ie=0;ie<this.undefStack.length;ie++)delete this.undefStack[ie][h];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][h]=b)}else{var Ie=this.undefStack[this.undefStack.length-1];Ie&&!Ie.hasOwnProperty(h)&&(Ie[h]=this.current[h])}this.current[h]=b},ne}(),bt={},Mt=bt;function Se(ne,l){bt[ne]=l}Se("\\@firstoftwo",function(ne){var l=ne.consumeArgs(2);return{tokens:l[0],numArgs:0}}),Se("\\@secondoftwo",function(ne){var l=ne.consumeArgs(2);return{tokens:l[1],numArgs:0}}),Se("\\@ifnextchar",function(ne){var l=ne.consumeArgs(3),d=ne.future();return l[0].length===1&&l[0][0].text===d.text?{tokens:l[1],numArgs:0}:{tokens:l[2],numArgs:0}}),Se("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Se("\\TextOrMath",function(ne){var l=ne.consumeArgs(2);return ne.mode==="text"?{tokens:l[0],numArgs:0}:{tokens:l[1],numArgs:0}});var kt={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};Se("\\char",function(ne){var l=ne.popToken(),d,h="";if(l.text==="'")d=8,l=ne.popToken();else if(l.text==='"')d=16,l=ne.popToken();else if(l.text==="`")if(l=ne.popToken(),l.text[0]==="\\")h=l.text.charCodeAt(1);else{if(l.text==="EOF")throw new m("\\char` missing argument");h=l.text.charCodeAt(0)}else d=10;if(d){if(h=kt[l.text],h==null||h>=d)throw new m("Invalid base-"+d+" digit "+l.text);for(var b;(b=kt[ne.future().text])!=null&&b<d;)h*=d,h+=b,ne.popToken()}return"\\@char{"+h+"}"});var pn=function(l,d){var h=l.consumeArgs(1)[0];if(h.length!==1)throw new m("\\gdef's first argument must be a macro name");var b=h[0].text,F=0;for(h=l.consumeArgs(1)[0];h.length===1&&h[0].text==="#";){if(h=l.consumeArgs(1)[0],h.length!==1)throw new m('Invalid argument number length "'+h.length+'"');if(!/^[1-9]$/.test(h[0].text))throw new m('Invalid argument number "'+h[0].text+'"');if(F++,parseInt(h[0].text)!==F)throw new m('Argument number "'+h[0].text+'" out of order');h=l.consumeArgs(1)[0]}return l.macros.set(b,{tokens:h,numArgs:F},d),""};Se("\\gdef",function(ne){return pn(ne,!0)}),Se("\\def",function(ne){return pn(ne,!1)}),Se("\\global",function(ne){var l=ne.consumeArgs(1)[0];if(l.length!==1)throw new m("Invalid command after \\global");var d=l[0].text;if(d==="\\def")return pn(ne,!0);throw new m("Invalid command '"+d+"' after \\global")});var un=function(l,d,h){var b=l.consumeArgs(1)[0];if(b.length!==1)throw new m("\\newcommand's first argument must be a macro name");var F=b[0].text,ie=l.isDefined(F);if(ie&&!d)throw new m("\\newcommand{"+F+"} attempting to redefine "+(F+"; use \\renewcommand"));if(!ie&&!h)throw new m("\\renewcommand{"+F+"} when command "+F+" does not yet exist; use \\newcommand");var Ie=0;if(b=l.consumeArgs(1)[0],b.length===1&&b[0].text==="["){for(var ke="",Qe=l.expandNextToken();Qe.text!=="]"&&Qe.text!=="EOF";)ke+=Qe.text,Qe=l.expandNextToken();if(!ke.match(/^\s*[0-9]+\s*$/))throw new m("Invalid number of arguments: "+ke);Ie=parseInt(ke),b=l.consumeArgs(1)[0]}return l.macros.set(F,{tokens:b,numArgs:Ie}),""};Se("\\newcommand",function(ne){return un(ne,!1,!0)}),Se("\\renewcommand",function(ne){return un(ne,!0,!1)}),Se("\\providecommand",function(ne){return un(ne,!0,!0)}),Se("\\bgroup","{"),Se("\\egroup","}"),Se("\\lq","`"),Se("\\rq","'"),Se("\\aa","\\r a"),Se("\\AA","\\r A"),Se("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),Se("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Se("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),Se("\u212C","\\mathscr{B}"),Se("\u2130","\\mathscr{E}"),Se("\u2131","\\mathscr{F}"),Se("\u210B","\\mathscr{H}"),Se("\u2110","\\mathscr{I}"),Se("\u2112","\\mathscr{L}"),Se("\u2133","\\mathscr{M}"),Se("\u211B","\\mathscr{R}"),Se("\u212D","\\mathfrak{C}"),Se("\u210C","\\mathfrak{H}"),Se("\u2128","\\mathfrak{Z}"),Se("\\Bbbk","\\Bbb{k}"),Se("\xB7","\\cdotp"),Se("\\llap","\\mathllap{\\textrm{#1}}"),Se("\\rlap","\\mathrlap{\\textrm{#1}}"),Se("\\clap","\\mathclap{\\textrm{#1}}"),Se("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Se("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),Se("\\ne","\\neq"),Se("\u2260","\\neq"),Se("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),Se("\u2209","\\notin"),Se("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),Se("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),Se("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),Se("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),Se("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),Se("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),Se("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),Se("\u27C2","\\perp"),Se("\u203C","\\mathclose{!\\mkern-0.8mu!}"),Se("\u220C","\\notni"),Se("\u231C","\\ulcorner"),Se("\u231D","\\urcorner"),Se("\u231E","\\llcorner"),Se("\u231F","\\lrcorner"),Se("\xA9","\\copyright"),Se("\xAE","\\textregistered"),Se("\uFE0F","\\textregistered"),Se("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),Se("\u22EE","\\vdots"),Se("\\varGamma","\\mathit{\\Gamma}"),Se("\\varDelta","\\mathit{\\Delta}"),Se("\\varTheta","\\mathit{\\Theta}"),Se("\\varLambda","\\mathit{\\Lambda}"),Se("\\varXi","\\mathit{\\Xi}"),Se("\\varPi","\\mathit{\\Pi}"),Se("\\varSigma","\\mathit{\\Sigma}"),Se("\\varUpsilon","\\mathit{\\Upsilon}"),Se("\\varPhi","\\mathit{\\Phi}"),Se("\\varPsi","\\mathit{\\Psi}"),Se("\\varOmega","\\mathit{\\Omega}"),Se("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Se("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),Se("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Se("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Se("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Se("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var cn={",":"\\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"};Se("\\dots",function(ne){var l="\\dotso",d=ne.expandAfterFuture().text;return d in cn?l=cn[d]:(d.substr(0,4)==="\\not"||d in Zt.math&&z.contains(["bin","rel"],Zt.math[d].group))&&(l="\\dotsb"),l});var Fn={")":!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};Se("\\dotso",function(ne){var l=ne.future().text;return l in Fn?"\\ldots\\,":"\\ldots"}),Se("\\dotsc",function(ne){var l=ne.future().text;return l in Fn&&l!==","?"\\ldots\\,":"\\ldots"}),Se("\\cdots",function(ne){var l=ne.future().text;return l in Fn?"\\@cdots\\,":"\\@cdots"}),Se("\\dotsb","\\cdots"),Se("\\dotsm","\\cdots"),Se("\\dotsi","\\!\\cdots"),Se("\\dotsx","\\ldots\\,"),Se("\\DOTSI","\\relax"),Se("\\DOTSB","\\relax"),Se("\\DOTSX","\\relax"),Se("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Se("\\,","\\tmspace+{3mu}{.1667em}"),Se("\\thinspace","\\,"),Se("\\>","\\mskip{4mu}"),Se("\\:","\\tmspace+{4mu}{.2222em}"),Se("\\medspace","\\:"),Se("\\;","\\tmspace+{5mu}{.2777em}"),Se("\\thickspace","\\;"),Se("\\!","\\tmspace-{3mu}{.1667em}"),Se("\\negthinspace","\\!"),Se("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Se("\\negthickspace","\\tmspace-{5mu}{.277em}"),Se("\\enspace","\\kern.5em "),Se("\\enskip","\\hskip.5em\\relax"),Se("\\quad","\\hskip1em\\relax"),Se("\\qquad","\\hskip2em\\relax"),Se("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Se("\\tag@paren","\\tag@literal{({#1})}"),Se("\\tag@literal",function(ne){if(ne.macros.get("\\df@tag"))throw new m("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),Se("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Se("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Se("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Se("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Se("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),Se("\\\\","\\newline"),Se("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var kn=je["Main-Regular"][84][1]-.7*je["Main-Regular"][65][1]+"em";Se("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+kn+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),Se("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+kn+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),Se("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Se("\\@hspace","\\hskip #1\\relax"),Se("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Se("\\ordinarycolon",":"),Se("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Se("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Se("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Se("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Se("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Se("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Se("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Se("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Se("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Se("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Se("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Se("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Se("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Se("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Se("\u2237","\\dblcolon"),Se("\u2239","\\eqcolon"),Se("\u2254","\\coloneqq"),Se("\u2255","\\eqqcolon"),Se("\u2A74","\\Coloneqq"),Se("\\ratio","\\vcentcolon"),Se("\\coloncolon","\\dblcolon"),Se("\\colonequals","\\coloneqq"),Se("\\coloncolonequals","\\Coloneqq"),Se("\\equalscolon","\\eqqcolon"),Se("\\equalscoloncolon","\\Eqqcolon"),Se("\\colonminus","\\coloneq"),Se("\\coloncolonminus","\\Coloneq"),Se("\\minuscolon","\\eqcolon"),Se("\\minuscoloncolon","\\Eqcolon"),Se("\\coloncolonapprox","\\Colonapprox"),Se("\\coloncolonsim","\\Colonsim"),Se("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Se("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Se("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Se("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Se("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),Se("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Se("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Se("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),Se("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),Se("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),Se("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),Se("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),Se("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),Se("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),Se("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),Se("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),Se("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),Se("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),Se("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),Se("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),Se("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),Se("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),Se("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),Se("\u27E6","\\llbracket"),Se("\u27E7","\\rrbracket"),Se("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),Se("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),Se("\u2983","\\lBrace"),Se("\u2984","\\rBrace"),Se("\\darr","\\downarrow"),Se("\\dArr","\\Downarrow"),Se("\\Darr","\\Downarrow"),Se("\\lang","\\langle"),Se("\\rang","\\rangle"),Se("\\uarr","\\uparrow"),Se("\\uArr","\\Uparrow"),Se("\\Uarr","\\Uparrow"),Se("\\N","\\mathbb{N}"),Se("\\R","\\mathbb{R}"),Se("\\Z","\\mathbb{Z}"),Se("\\alef","\\aleph"),Se("\\alefsym","\\aleph"),Se("\\Alpha","\\mathrm{A}"),Se("\\Beta","\\mathrm{B}"),Se("\\bull","\\bullet"),Se("\\Chi","\\mathrm{X}"),Se("\\clubs","\\clubsuit"),Se("\\cnums","\\mathbb{C}"),Se("\\Complex","\\mathbb{C}"),Se("\\Dagger","\\ddagger"),Se("\\diamonds","\\diamondsuit"),Se("\\empty","\\emptyset"),Se("\\Epsilon","\\mathrm{E}"),Se("\\Eta","\\mathrm{H}"),Se("\\exist","\\exists"),Se("\\harr","\\leftrightarrow"),Se("\\hArr","\\Leftrightarrow"),Se("\\Harr","\\Leftrightarrow"),Se("\\hearts","\\heartsuit"),Se("\\image","\\Im"),Se("\\infin","\\infty"),Se("\\Iota","\\mathrm{I}"),Se("\\isin","\\in"),Se("\\Kappa","\\mathrm{K}"),Se("\\larr","\\leftarrow"),Se("\\lArr","\\Leftarrow"),Se("\\Larr","\\Leftarrow"),Se("\\lrarr","\\leftrightarrow"),Se("\\lrArr","\\Leftrightarrow"),Se("\\Lrarr","\\Leftrightarrow"),Se("\\Mu","\\mathrm{M}"),Se("\\natnums","\\mathbb{N}"),Se("\\Nu","\\mathrm{N}"),Se("\\Omicron","\\mathrm{O}"),Se("\\plusmn","\\pm"),Se("\\rarr","\\rightarrow"),Se("\\rArr","\\Rightarrow"),Se("\\Rarr","\\Rightarrow"),Se("\\real","\\Re"),Se("\\reals","\\mathbb{R}"),Se("\\Reals","\\mathbb{R}"),Se("\\Rho","\\mathrm{P}"),Se("\\sdot","\\cdot"),Se("\\sect","\\S"),Se("\\spades","\\spadesuit"),Se("\\sub","\\subset"),Se("\\sube","\\subseteq"),Se("\\supe","\\supseteq"),Se("\\Tau","\\mathrm{T}"),Se("\\thetasym","\\vartheta"),Se("\\weierp","\\wp"),Se("\\Zeta","\\mathrm{Z}"),Se("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Se("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Se("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Se("\\blue","\\textcolor{##6495ed}{#1}"),Se("\\orange","\\textcolor{##ffa500}{#1}"),Se("\\pink","\\textcolor{##ff00af}{#1}"),Se("\\red","\\textcolor{##df0030}{#1}"),Se("\\green","\\textcolor{##28ae7b}{#1}"),Se("\\gray","\\textcolor{gray}{#1}"),Se("\\purple","\\textcolor{##9d38bd}{#1}"),Se("\\blueA","\\textcolor{##ccfaff}{#1}"),Se("\\blueB","\\textcolor{##80f6ff}{#1}"),Se("\\blueC","\\textcolor{##63d9ea}{#1}"),Se("\\blueD","\\textcolor{##11accd}{#1}"),Se("\\blueE","\\textcolor{##0c7f99}{#1}"),Se("\\tealA","\\textcolor{##94fff5}{#1}"),Se("\\tealB","\\textcolor{##26edd5}{#1}"),Se("\\tealC","\\textcolor{##01d1c1}{#1}"),Se("\\tealD","\\textcolor{##01a995}{#1}"),Se("\\tealE","\\textcolor{##208170}{#1}"),Se("\\greenA","\\textcolor{##b6ffb0}{#1}"),Se("\\greenB","\\textcolor{##8af281}{#1}"),Se("\\greenC","\\textcolor{##74cf70}{#1}"),Se("\\greenD","\\textcolor{##1fab54}{#1}"),Se("\\greenE","\\textcolor{##0d923f}{#1}"),Se("\\goldA","\\textcolor{##ffd0a9}{#1}"),Se("\\goldB","\\textcolor{##ffbb71}{#1}"),Se("\\goldC","\\textcolor{##ff9c39}{#1}"),Se("\\goldD","\\textcolor{##e07d10}{#1}"),Se("\\goldE","\\textcolor{##a75a05}{#1}"),Se("\\redA","\\textcolor{##fca9a9}{#1}"),Se("\\redB","\\textcolor{##ff8482}{#1}"),Se("\\redC","\\textcolor{##f9685d}{#1}"),Se("\\redD","\\textcolor{##e84d39}{#1}"),Se("\\redE","\\textcolor{##bc2612}{#1}"),Se("\\maroonA","\\textcolor{##ffbde0}{#1}"),Se("\\maroonB","\\textcolor{##ff92c6}{#1}"),Se("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Se("\\maroonD","\\textcolor{##ca337c}{#1}"),Se("\\maroonE","\\textcolor{##9e034e}{#1}"),Se("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Se("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Se("\\purpleC","\\textcolor{##aa87ff}{#1}"),Se("\\purpleD","\\textcolor{##7854ab}{#1}"),Se("\\purpleE","\\textcolor{##543b78}{#1}"),Se("\\mintA","\\textcolor{##f5f9e8}{#1}"),Se("\\mintB","\\textcolor{##edf2df}{#1}"),Se("\\mintC","\\textcolor{##e0e5cc}{#1}"),Se("\\grayA","\\textcolor{##f6f7f7}{#1}"),Se("\\grayB","\\textcolor{##f0f1f2}{#1}"),Se("\\grayC","\\textcolor{##e3e5e6}{#1}"),Se("\\grayD","\\textcolor{##d6d8da}{#1}"),Se("\\grayE","\\textcolor{##babec2}{#1}"),Se("\\grayF","\\textcolor{##888d93}{#1}"),Se("\\grayG","\\textcolor{##626569}{#1}"),Se("\\grayH","\\textcolor{##3b3e40}{#1}"),Se("\\grayI","\\textcolor{##21242c}{#1}"),Se("\\kaBlue","\\textcolor{##314453}{#1}"),Se("\\kaGreen","\\textcolor{##71B307}{#1}");var $n={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Mn=function(){function ne(d,h,b){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=h,this.expansionCount=0,this.feed(d),this.macros=new St(Mt,h.macros),this.mode=b,this.stack=[]}var l=ne.prototype;return l.feed=function(h){this.lexer=new Et(h,this.settings)},l.switchMode=function(h){this.mode=h},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(h){this.stack.push(h)},l.pushTokens=function(h){var b;(b=this.stack).push.apply(b,h)},l.consumeSpaces=function(){for(;;){var h=this.future();if(h.text===" ")this.stack.pop();else break}},l.consumeArgs=function(h){for(var b=[],F=0;F<h;++F){this.consumeSpaces();var ie=this.popToken();if(ie.text==="{"){for(var Ie=[],ke=1;ke!==0;){var Qe=this.popToken();if(Ie.push(Qe),Qe.text==="{")++ke;else if(Qe.text==="}")--ke;else if(Qe.text==="EOF")throw new m("End of input in macro argument",ie)}Ie.pop(),Ie.reverse(),b[F]=Ie}else{if(ie.text==="EOF")throw new m("End of input expecting macro argument");b[F]=[ie]}}return b},l.expandOnce=function(){var h=this.popToken(),b=h.text,F=this._getExpansion(b);if(F==null)return this.pushToken(h),h;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new m("Too many expansions: infinite loop or need to increase maxExpand setting");var ie=F.tokens;if(F.numArgs){var Ie=this.consumeArgs(F.numArgs);ie=ie.slice();for(var ke=ie.length-1;ke>=0;--ke){var Qe=ie[ke];if(Qe.text==="#"){if(ke===0)throw new m("Incomplete placeholder at end of macro body",Qe);if(Qe=ie[--ke],Qe.text==="#")ie.splice(ke+1,1);else if(/^[1-9]$/.test(Qe.text)){var ht;(ht=ie).splice.apply(ht,[ke,2].concat(Ie[+Qe.text-1]))}else throw new m("Not a valid argument number",Qe)}}}return this.pushTokens(ie),ie},l.expandAfterFuture=function(){return this.expandOnce(),this.future()},l.expandNextToken=function(){for(;;){var h=this.expandOnce();if(h instanceof ce)if(h.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},l.expandMacro=function(h){if(this.macros.get(h)){var b=[],F=this.stack.length;for(this.pushToken(new ce(h));this.stack.length>F;){var ie=this.expandOnce();ie instanceof ce&&b.push(this.stack.pop())}return b}},l.expandMacroAsText=function(h){var b=this.expandMacro(h);return b&&b.map(function(F){return F.text}).join("")},l._getExpansion=function(h){var b=this.macros.get(h);if(b==null)return b;var F=typeof b=="function"?b(this):b;if(typeof F=="string"){var ie=0;if(F.indexOf("#")!==-1)for(var Ie=F.replace(/##/g,"");Ie.indexOf("#"+(ie+1))!==-1;)++ie;for(var ke=new Et(F,this.settings),Qe=[],ht=ke.lex();ht.text!=="EOF";)Qe.push(ht),ht=ke.lex();Qe.reverse();var At={tokens:Qe,numArgs:ie};return At}return F},l.isDefined=function(h){return this.macros.has(h)||Ls.hasOwnProperty(h)||Zt.math.hasOwnProperty(h)||Zt.text.hasOwnProperty(h)||$n.hasOwnProperty(h)},ne}(),Vn={"\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"}},wr={\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"},Sr=function(){function ne(d,h){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 Mn(d,h,this.mode),this.settings=h,this.leftrightDepth=0}var l=ne.prototype;return l.expect=function(h,b){if(b===void 0&&(b=!0),this.fetch().text!==h)throw new m("Expected '"+h+"', got '"+this.fetch().text+"'",this.fetch());b&&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(h){this.mode=h,this.gullet.switchMode(h)},l.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var h=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),h},l.parseExpression=function(h,b){for(var F=[];;){this.mode==="math"&&this.consumeSpaces();var ie=this.fetch();if(ne.endOfExpression.indexOf(ie.text)!==-1||b&&ie.text===b||h&&Ls[ie.text]&&Ls[ie.text].infix)break;var Ie=this.parseAtom(b);if(!Ie)break;F.push(Ie)}return this.mode==="text"&&this.formLigatures(F),this.handleInfixNodes(F)},l.handleInfixNodes=function(h){for(var b=-1,F,ie=0;ie<h.length;ie++){var Ie=ur(h[ie],"infix");if(Ie){if(b!==-1)throw new m("only one infix operator per group",Ie.token);b=ie,F=Ie.replaceWith}}if(b!==-1&&F){var ke,Qe,ht=h.slice(0,b),At=h.slice(b+1);ht.length===1&&ht[0].type==="ordgroup"?ke=ht[0]:ke={type:"ordgroup",mode:this.mode,body:ht},At.length===1&&At[0].type==="ordgroup"?Qe=At[0]:Qe={type:"ordgroup",mode:this.mode,body:At};var Wt;return F==="\\\\abovefrac"?Wt=this.callFunction(F,[ke,h[b],Qe],[]):Wt=this.callFunction(F,[ke,Qe],[]),[Wt]}else return h},l.handleSupSubscript=function(h){var b=this.fetch(),F=b.text;this.consume();var ie=this.parseGroup(h,!1,ne.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!ie)throw new m("Expected group after '"+F+"'",b);return ie},l.formatUnsupportedCmd=function(h){for(var b=[],F=0;F<h.length;F++)b.push({type:"textord",mode:"text",text:h[F]});var ie={type:"text",mode:this.mode,body:b},Ie={type:"color",mode:this.mode,color:this.settings.errorColor,body:[ie]};return Ie},l.parseAtom=function(h){var b=this.parseGroup("atom",!1,null,h);if(this.mode==="text")return b;for(var F,ie;;){this.consumeSpaces();var Ie=this.fetch();if(Ie.text==="\\limits"||Ie.text==="\\nolimits"){var ke=ur(b,"op");if(ke){var Qe=Ie.text==="\\limits";ke.limits=Qe,ke.alwaysHandleSupSub=!0}else if(ke=ur(b,"operatorname"),ke&&ke.alwaysHandleSupSub){var ht=Ie.text==="\\limits";ke.limits=ht}else throw new m("Limit controls must follow a math operator",Ie);this.consume()}else if(Ie.text==="^"){if(F)throw new m("Double superscript",Ie);F=this.handleSupSubscript("superscript")}else if(Ie.text==="_"){if(ie)throw new m("Double subscript",Ie);ie=this.handleSupSubscript("subscript")}else if(Ie.text==="'"){if(F)throw new m("Double superscript",Ie);var At={type:"textord",mode:this.mode,text:"\\prime"},Wt=[At];for(this.consume();this.fetch().text==="'";)Wt.push(At),this.consume();this.fetch().text==="^"&&Wt.push(this.handleSupSubscript("superscript")),F={type:"ordgroup",mode:this.mode,body:Wt}}else break}return F||ie?{type:"supsub",mode:this.mode,base:b,sup:F,sub:ie}:b},l.parseFunction=function(h,b,F){var ie=this.fetch(),Ie=ie.text,ke=Ls[Ie];if(!ke)return null;if(this.consume(),F!=null&&ke.greediness<=F)throw new m("Got function '"+Ie+"' with no arguments"+(b?" as "+b:""),ie);if(this.mode==="text"&&!ke.allowedInText)throw new m("Can't use function '"+Ie+"' in text mode",ie);if(this.mode==="math"&&ke.allowedInMath===!1)throw new m("Can't use function '"+Ie+"' in math mode",ie);var Qe=this.parseArguments(Ie,ke),ht=Qe.args,At=Qe.optArgs;return this.callFunction(Ie,ht,At,ie,h)},l.callFunction=function(h,b,F,ie,Ie){var ke={funcName:h,parser:this,token:ie,breakOnTokenText:Ie},Qe=Ls[h];if(Qe&&Qe.handler)return Qe.handler(ke,b,F);throw new m("No function handler for "+h)},l.parseArguments=function(h,b){var F=b.numArgs+b.numOptionalArgs;if(F===0)return{args:[],optArgs:[]};for(var ie=b.greediness,Ie=[],ke=[],Qe=0;Qe<F;Qe++){var ht=b.argTypes&&b.argTypes[Qe],At=Qe<b.numOptionalArgs,Wt=Qe>0&&!At||Qe===0&&!At&&this.mode==="math",mn=this.parseGroupOfType("argument to '"+h+"'",ht,At,ie,Wt);if(!mn){if(At){ke.push(null);continue}throw new m("Expected group after '"+h+"'",this.fetch())}(At?ke:Ie).push(mn)}return{args:Ie,optArgs:ke}},l.parseGroupOfType=function(h,b,F,ie,Ie){switch(b){case"color":return Ie&&this.consumeSpaces(),this.parseColorGroup(F);case"size":return Ie&&this.consumeSpaces(),this.parseSizeGroup(F);case"url":return this.parseUrlGroup(F,Ie);case"math":case"text":return this.parseGroup(h,F,ie,void 0,b,Ie);case"hbox":{var ke=this.parseGroup(h,F,ie,void 0,"text",Ie);if(!ke)return ke;var Qe={type:"styling",mode:ke.mode,body:[ke],style:"text"};return Qe}case"raw":{if(Ie&&this.consumeSpaces(),F&&this.fetch().text==="{")return null;var ht=this.parseStringGroup("raw",F,!0);if(ht)return{type:"raw",mode:"text",string:ht.text};throw new m("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(h,F,ie,void 0,void 0,Ie);default:throw new m("Unknown group type as "+h,this.fetch())}},l.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},l.parseStringGroup=function(h,b,F){var ie=b?"[":"{",Ie=b?"]":"}",ke=this.fetch();if(ke.text!==ie){if(b)return null;if(F&&ke.text!=="EOF"&&/[^{}[\]]/.test(ke.text))return this.consume(),ke}var Qe=this.mode;this.mode="text",this.expect(ie);for(var ht="",At=this.fetch(),Wt=0,mn=At,Yt;(Yt=this.fetch()).text!==Ie||F&&Wt>0;){switch(Yt.text){case"EOF":throw new m("Unexpected end of input in "+h,At.range(mn,ht));case ie:Wt++;break;case Ie:Wt--;break}mn=Yt,ht+=mn.text,this.consume()}return this.expect(Ie),this.mode=Qe,At.range(mn,ht)},l.parseRegexGroup=function(h,b){var F=this.mode;this.mode="text";for(var ie=this.fetch(),Ie=ie,ke="",Qe;(Qe=this.fetch()).text!=="EOF"&&h.test(ke+Qe.text);)Ie=Qe,ke+=Ie.text,this.consume();if(ke==="")throw new m("Invalid "+b+": '"+ie.text+"'",ie);return this.mode=F,ie.range(Ie,ke)},l.parseColorGroup=function(h){var b=this.parseStringGroup("color",h);if(!b)return null;var F=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(b.text);if(!F)throw new m("Invalid color: '"+b.text+"'",b);var ie=F[0];return/^[0-9a-f]{6}$/i.test(ie)&&(ie="#"+ie),{type:"color-token",mode:this.mode,color:ie}},l.parseSizeGroup=function(h){var b,F=!1;if(!h&&this.fetch().text!=="{"?b=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):b=this.parseStringGroup("size",h),!b)return null;!h&&b.text.length===0&&(b.text="0pt",F=!0);var ie=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(b.text);if(!ie)throw new m("Invalid size: '"+b.text+"'",b);var Ie={number:+(ie[1]+ie[2]),unit:ie[3]};if(!ct(Ie))throw new m("Invalid unit: '"+Ie.unit+"'",b);return{type:"size",mode:this.mode,value:Ie,isBlank:F}},l.parseUrlGroup=function(h,b){this.gullet.lexer.setCatcode("%",13);var F=this.parseStringGroup("url",h,!0);if(this.gullet.lexer.setCatcode("%",14),!F)return null;var ie=F.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:ie}},l.parseGroup=function(h,b,F,ie,Ie,ke){var Qe=this.mode;Ie&&this.switchMode(Ie),ke&&this.consumeSpaces();var ht=this.fetch(),At=ht.text,Wt;if(b?At==="[":At==="{"||At==="\\begingroup"){this.consume();var mn=ne.endOfGroup[At];this.gullet.beginGroup();var Yt=this.parseExpression(!1,mn),en=this.fetch();this.expect(mn),this.gullet.endGroup(),Wt={type:"ordgroup",mode:this.mode,loc:q.range(ht,en),body:Yt,semisimple:At==="\\begingroup"||void 0}}else if(b)Wt=null;else if(Wt=this.parseFunction(ie,h,F)||this.parseSymbol(),Wt==null&&At[0]==="\\"&&!$n.hasOwnProperty(At)){if(this.settings.throwOnError)throw new m("Undefined control sequence: "+At,ht);Wt=this.formatUnsupportedCmd(At),this.consume()}return Ie&&this.switchMode(Qe),Wt},l.formLigatures=function(h){for(var b=h.length-1,F=0;F<b;++F){var ie=h[F],Ie=ie.text;Ie==="-"&&h[F+1].text==="-"&&(F+1<b&&h[F+2].text==="-"?(h.splice(F,3,{type:"textord",mode:"text",loc:q.range(ie,h[F+2]),text:"---"}),b-=2):(h.splice(F,2,{type:"textord",mode:"text",loc:q.range(ie,h[F+1]),text:"--"}),b-=1)),(Ie==="'"||Ie==="`")&&h[F+1].text===Ie&&(h.splice(F,2,{type:"textord",mode:"text",loc:q.range(ie,h[F+1]),text:Ie+Ie}),b-=1)}},l.parseSymbol=function(){var h=this.fetch(),b=h.text;if(/^\\verb[^a-zA-Z]/.test(b)){this.consume();var F=b.slice(5),ie=F.charAt(0)==="*";if(ie&&(F=F.slice(1)),F.length<2||F.charAt(0)!==F.slice(-1))throw new m(`\\verb assertion failed --
|
|
|
please report what input caused this bug`);return F=F.slice(1,-1),{type:"verb",mode:"text",body:F,star:ie}}wr.hasOwnProperty(b[0])&&!Zt[this.mode][b[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+b[0]+'" used in math mode',h),b=wr[b[0]]+b.substr(1));var Ie=st.exec(b);Ie&&(b=b.substring(0,Ie.index),b==="i"?b="\u0131":b==="j"&&(b="\u0237"));var ke;if(Zt[this.mode][b]){this.settings.strict&&this.mode==="math"&&dn.indexOf(b)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+b[0]+'" used in math mode',h);var Qe=Zt[this.mode][b].group,ht=q.range(h),At;if(Dt.hasOwnProperty(Qe)){var Wt=Qe;At={type:"atom",mode:this.mode,family:Wt,loc:ht,text:b}}else At={type:Qe,mode:this.mode,loc:ht,text:b};ke=At}else if(b.charCodeAt(0)>=128)this.settings.strict&&(Be(b.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+b[0]+'" used in math mode',h):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+b[0]+'"'+(" ("+b.charCodeAt(0)+")"),h)),ke={type:"textord",mode:"text",loc:q.range(h),text:b};else return null;if(this.consume(),Ie)for(var mn=0;mn<Ie[0].length;mn++){var Yt=Ie[0][mn];if(!Vn[Yt])throw new m("Unknown accent ' "+Yt+"'",h);var en=Vn[Yt][this.mode];if(!en)throw new m("Accent "+Yt+" unsupported in "+this.mode+" mode",h);ke={type:"accent",mode:this.mode,loc:q.range(h),label:en,isStretchy:!1,isShifty:!0,base:ke}}return ke},ne}();Sr.endOfExpression=["}","\\endgroup","\\end","\\right","&"],Sr.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},Sr.SUPSUB_GREEDINESS=1;var vr=function(l,d){if(!(typeof l=="string"||l instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var h=new Sr(l,d);delete h.gullet.macros.current["\\df@tag"];var b=h.parse();if(h.gullet.macros.get("\\df@tag")){if(!d.displayMode)throw new m("\\tag works only in display equations");h.gullet.feed("\\df@tag"),b=[{type:"tag",mode:"text",body:b,tag:h.parse()}]}return b},Mr=vr,Kr=function(l,d,h){d.textContent="";var b=Kn(l,h).toNode();d.appendChild(b)};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."),Kr=function(){throw new m("KaTeX doesn't work in quirks mode.")});var ir=function(l,d){var h=Kn(l,d).toMarkup();return h},br=function(l,d){var h=new $(d);return Mr(l,h)},tr=function(l,d,h){if(h.throwOnError||!(l instanceof m))throw l;var b=dt.makeSpan(["katex-error"],[new R(d)]);return b.setAttribute("title",l.toString()),b.setAttribute("style","color:"+h.errorColor),b},Kn=function(l,d){var h=new $(d);try{var b=Mr(l,h);return Ri(b,l,h)}catch(F){return tr(F,l,h)}},hr=function(l,d){var h=new $(d);try{var b=Mr(l,h);return Ti(b,l,h)}catch(F){return tr(F,l,h)}},Nr={version:"0.11.1",render:Kr,renderToString:ir,ParseError:m,__parse:br,__renderToDomTree:Kn,__renderToHTMLTree:hr,__setFontMetrics:Je,__defineSymbol:C,__defineMacro:Se,__domTree:{Span:le,Anchor:Q,SymbolNode:R,SvgNode:P,PathNode:fe,LineNode:oe}},ti=p.default=Nr}]).default})},32834:function(Xt){(function(Ze,p){Xt.exports=p()})(this,function(){"use strict";function Ze(it,nt){for(var tt=0;tt<nt.length;tt++){var we=nt[tt];we.enumerable=we.enumerable||!1,we.configurable=!0,"value"in we&&(we.writable=!0),Object.defineProperty(it,we.key,we)}}function p(it,nt,tt){return nt&&Ze(it.prototype,nt),tt&&Ze(it,tt),it}function O(it,nt){if(it){if(typeof it=="string")return K(it,nt);var tt=Object.prototype.toString.call(it).slice(8,-1);if(tt==="Object"&&it.constructor&&(tt=it.constructor.name),tt==="Map"||tt==="Set")return Array.from(it);if(tt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(tt))return K(it,nt)}}function K(it,nt){(nt==null||nt>it.length)&&(nt=it.length);for(var tt=0,we=new Array(nt);tt<nt;tt++)we[tt]=it[tt];return we}function q(it,nt){var tt=typeof Symbol!="undefined"&&it[Symbol.iterator]||it["@@iterator"];if(tt)return(tt=tt.call(it)).next.bind(tt);if(Array.isArray(it)||(tt=O(it))||nt&&it&&typeof it.length=="number"){tt&&(it=tt);var we=0;return function(){return we>=it.length?{done:!0}:{done:!1,value:it[we++]}}}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 ce={exports:{}};function A(){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 m(it){ce.exports.defaults=it}ce.exports={defaults:A(),getDefaults:A,changeDefaults:m};var w=/[&<>"']/,re=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,I=/[<>"']|&(?!#?\w+;)/g,k={"&":"&","<":"<",">":">",'"':""","'":"'"},g=function(nt){return k[nt]};function _(it,nt){if(nt){if(w.test(it))return it.replace(re,g)}else if(o.test(it))return it.replace(I,g);return it}var S=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function T(it){return it.replace(S,function(nt,tt){return tt=tt.toLowerCase(),tt==="colon"?":":tt.charAt(0)==="#"?tt.charAt(1)==="x"?String.fromCharCode(parseInt(tt.substring(2),16)):String.fromCharCode(+tt.substring(1)):""})}var B=/(^|[^\[])\^/g;function se(it,nt){it=it.source||it,nt=nt||"";var tt={replace:function(Oe,Le){return Le=Le.source||Le,Le=Le.replace(B,"$1"),it=it.replace(Oe,Le),tt},getRegex:function(){return new RegExp(it,nt)}};return tt}var z=/[^\w:]/g,$=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function G(it,nt,tt){if(it){var we;try{we=decodeURIComponent(T(tt)).replace(z,"").toLowerCase()}catch(Oe){return null}if(we.indexOf("javascript:")===0||we.indexOf("vbscript:")===0||we.indexOf("data:")===0)return null}nt&&!$.test(tt)&&(tt=j(nt,tt));try{tt=encodeURI(tt).replace(/%25/g,"%")}catch(Oe){return null}return tt}var X={},L=/^[^:]+:\/*[^/]*$/,D=/^([^:]+:)[\s\S]*$/,Y=/^([^:]+:\/*[^/]*)[\s\S]*$/;function j(it,nt){X[" "+it]||(L.test(it)?X[" "+it]=it+"/":X[" "+it]=ge(it,"/",!0)),it=X[" "+it];var tt=it.indexOf(":")===-1;return nt.substring(0,2)==="//"?tt?nt:it.replace(D,"$1")+nt:nt.charAt(0)==="/"?tt?nt:it.replace(Y,"$1")+nt:it+nt}var xe={exec:function(){}};function Ce(it){for(var nt=1,tt,we;nt<arguments.length;nt++){tt=arguments[nt];for(we in tt)Object.prototype.hasOwnProperty.call(tt,we)&&(it[we]=tt[we])}return it}function Ee(it,nt){var tt=it.replace(/\|/g,function(Le,rt,_e){for(var Qt=!1,He=rt;--He>=0&&_e[He]==="\\";)Qt=!Qt;return Qt?"|":" |"}),we=tt.split(/ \|/),Oe=0;if(we.length>nt)we.splice(nt);else for(;we.length<nt;)we.push("");for(;Oe<we.length;Oe++)we[Oe]=we[Oe].trim().replace(/\\\|/g,"|");return we}function ge(it,nt,tt){var we=it.length;if(we===0)return"";for(var Oe=0;Oe<we;){var Le=it.charAt(we-Oe-1);if(Le===nt&&!tt)Oe++;else if(Le!==nt&&tt)Oe++;else break}return it.substr(0,we-Oe)}function de(it,nt){if(it.indexOf(nt[1])===-1)return-1;for(var tt=it.length,we=0,Oe=0;Oe<tt;Oe++)if(it[Oe]==="\\")Oe++;else if(it[Oe]===nt[0])we++;else if(it[Oe]===nt[1]&&(we--,we<0))return Oe;return-1}function W(it){it&&it.sanitize&&!it.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 be(it,nt){if(nt<1)return"";for(var tt="";nt>1;)nt&1&&(tt+=it),nt>>=1,it+=it;return tt+it}var N={escape:_,unescape:T,edit:se,cleanUrl:G,resolveUrl:j,noopTest:xe,merge:Ce,splitCells:Ee,rtrim:ge,findClosingBracket:de,checkSanitizeDeprecation:W,repeatString:be},ue=ce.exports.defaults,J=N.rtrim,v=N.splitCells,x=N.escape,Z=N.findClosingBracket;function me(it,nt,tt){var we=nt.href,Oe=nt.title?x(nt.title):null,Le=it[1].replace(/\\([\[\]])/g,"$1");return it[0].charAt(0)!=="!"?{type:"link",raw:tt,href:we,title:Oe,text:Le}:{type:"image",raw:tt,href:we,title:Oe,text:x(Le)}}function Be(it,nt){var tt=it.match(/^(\s+)(?:```)/);if(tt===null)return nt;var we=tt[1];return nt.split(`
|
|
|
`).map(function(Oe){var Le=Oe.match(/^\s+/);if(Le===null)return Oe;var rt=Le[0];return rt.length>=we.length?Oe.slice(we.length):Oe}).join(`
|
|
|
`)}var Ue=function(){function it(tt){this.options=tt||ue}var nt=it.prototype;return nt.space=function(we){var Oe=this.rules.block.newline.exec(we);if(Oe)return Oe[0].length>1?{type:"space",raw:Oe[0]}:{raw:`
|
|
|
`}},nt.code=function(we){var Oe=this.rules.block.code.exec(we);if(Oe){var Le=Oe[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:Oe[0],codeBlockStyle:"indented",text:this.options.pedantic?Le:J(Le,`
|
|
|
`)}}},nt.fences=function(we){var Oe=this.rules.block.fences.exec(we);if(Oe){var Le=Oe[0],rt=Be(Le,Oe[3]||"");return{type:"code",raw:Le,lang:Oe[2]?Oe[2].trim():Oe[2],text:rt}}},nt.heading=function(we){var Oe=this.rules.block.heading.exec(we);if(Oe){var Le=Oe[2].trim();if(/#$/.test(Le)){var rt=J(Le,"#");(this.options.pedantic||!rt||/ $/.test(rt))&&(Le=rt.trim())}return{type:"heading",raw:Oe[0],depth:Oe[1].length,text:Le}}},nt.nptable=function(we){var Oe=this.rules.block.nptable.exec(we);if(Oe){var Le={type:"table",header:v(Oe[1].replace(/^ *| *\| *$/g,"")),align:Oe[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Oe[3]?Oe[3].replace(/\n$/,"").split(`
|
|
|
`):[],raw:Oe[0]};if(Le.header.length===Le.align.length){var rt=Le.align.length,_e;for(_e=0;_e<rt;_e++)/^ *-+: *$/.test(Le.align[_e])?Le.align[_e]="right":/^ *:-+: *$/.test(Le.align[_e])?Le.align[_e]="center":/^ *:-+ *$/.test(Le.align[_e])?Le.align[_e]="left":Le.align[_e]=null;for(rt=Le.cells.length,_e=0;_e<rt;_e++)Le.cells[_e]=v(Le.cells[_e],Le.header.length);return Le}}},nt.hr=function(we){var Oe=this.rules.block.hr.exec(we);if(Oe)return{type:"hr",raw:Oe[0]}},nt.blockquote=function(we){var Oe=this.rules.block.blockquote.exec(we);if(Oe){var Le=Oe[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:Oe[0],text:Le}}},nt.list=function(we){var Oe=this.rules.block.list.exec(we);if(Oe){var Le=Oe[0],rt=Oe[2],_e=rt.length>1,Qt={type:"list",raw:Le,ordered:_e,start:_e?+rt.slice(0,-1):"",loose:!1,items:[]},He=Oe[0].match(this.rules.block.item),xn=!1,Ln,_r,Hn,yn,wn,Ye,Ot,Ut,Ke,Pe=He.length;Hn=this.rules.block.listItemStart.exec(He[0]);for(var _t=0;_t<Pe;_t++){if(Ln=He[_t],Le=Ln,this.options.pedantic||(Ke=Ln.match(new RegExp("\\n\\s*\\n {0,"+(Hn[0].length-1)+"}\\S")),Ke&&(wn=Ln.length-Ke.index+He.slice(_t+1).join(`
|
|
|
`).length,Qt.raw=Qt.raw.substring(0,Qt.raw.length-wn),Ln=Ln.substring(0,Ke.index),Le=Ln,Pe=_t+1)),_t!==Pe-1){if(yn=this.rules.block.listItemStart.exec(He[_t+1]),this.options.pedantic?yn[1].length>Hn[1].length:yn[1].length>=Hn[0].length||yn[1].length>3){He.splice(_t,2,He[_t]+(!this.options.pedantic&&yn[1].length<Hn[0].length&&!He[_t].match(/\n$/)?"":`
|
|
|
`)+He[_t+1]),_t--,Pe--;continue}else(!this.options.pedantic||this.options.smartLists?yn[2][yn[2].length-1]!==rt[rt.length-1]:_e===(yn[2].length===1))&&(wn=He.slice(_t+1).join(`
|
|
|
`).length,Qt.raw=Qt.raw.substring(0,Qt.raw.length-wn),_t=Pe-1);Hn=yn}_r=Ln.length,Ln=Ln.replace(/^ *([*+-]|\d+[.)]) ?/,""),~Ln.indexOf(`
|
|
|
`)&&(_r-=Ln.length,Ln=this.options.pedantic?Ln.replace(/^ {1,4}/gm,""):Ln.replace(new RegExp("^ {1,"+_r+"}","gm"),"")),Ln=J(Ln,`
|
|
|
`),_t!==Pe-1&&(Le=Le+`
|
|
|
`),Ye=xn||/\n\n(?!\s*$)/.test(Le),_t!==Pe-1&&(xn=Le.slice(-2)===`
|
|
|
|
|
|
`,Ye||(Ye=xn)),Ye&&(Qt.loose=!0),this.options.gfm&&(Ot=/^\[[ xX]\] /.test(Ln),Ut=void 0,Ot&&(Ut=Ln[1]!==" ",Ln=Ln.replace(/^\[[ xX]\] +/,""))),Qt.items.push({type:"list_item",raw:Le,task:Ot,checked:Ut,loose:Ye,text:Ln})}return Qt}},nt.html=function(we){var Oe=this.rules.block.html.exec(we);if(Oe)return{type:this.options.sanitize?"paragraph":"html",raw:Oe[0],pre:!this.options.sanitizer&&(Oe[1]==="pre"||Oe[1]==="script"||Oe[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Oe[0]):x(Oe[0]):Oe[0]}},nt.def=function(we){var Oe=this.rules.block.def.exec(we);if(Oe){Oe[3]&&(Oe[3]=Oe[3].substring(1,Oe[3].length-1));var Le=Oe[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:Le,raw:Oe[0],href:Oe[2],title:Oe[3]}}},nt.table=function(we){var Oe=this.rules.block.table.exec(we);if(Oe){var Le={type:"table",header:v(Oe[1].replace(/^ *| *\| *$/g,"")),align:Oe[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Oe[3]?Oe[3].replace(/\n$/,"").split(`
|
|
|
`):[]};if(Le.header.length===Le.align.length){Le.raw=Oe[0];var rt=Le.align.length,_e;for(_e=0;_e<rt;_e++)/^ *-+: *$/.test(Le.align[_e])?Le.align[_e]="right":/^ *:-+: *$/.test(Le.align[_e])?Le.align[_e]="center":/^ *:-+ *$/.test(Le.align[_e])?Le.align[_e]="left":Le.align[_e]=null;for(rt=Le.cells.length,_e=0;_e<rt;_e++)Le.cells[_e]=v(Le.cells[_e].replace(/^ *\| *| *\| *$/g,""),Le.header.length);return Le}}},nt.lheading=function(we){var Oe=this.rules.block.lheading.exec(we);if(Oe)return{type:"heading",raw:Oe[0],depth:Oe[2].charAt(0)==="="?1:2,text:Oe[1]}},nt.paragraph=function(we){var Oe=this.rules.block.paragraph.exec(we);if(Oe)return{type:"paragraph",raw:Oe[0],text:Oe[1].charAt(Oe[1].length-1)===`
|
|
|
`?Oe[1].slice(0,-1):Oe[1]}},nt.text=function(we){var Oe=this.rules.block.text.exec(we);if(Oe)return{type:"text",raw:Oe[0],text:Oe[0]}},nt.escape=function(we){var Oe=this.rules.inline.escape.exec(we);if(Oe)return{type:"escape",raw:Oe[0],text:x(Oe[1])}},nt.tag=function(we,Oe,Le){var rt=this.rules.inline.tag.exec(we);if(rt)return!Oe&&/^<a /i.test(rt[0])?Oe=!0:Oe&&/^<\/a>/i.test(rt[0])&&(Oe=!1),!Le&&/^<(pre|code|kbd|script)(\s|>)/i.test(rt[0])?Le=!0:Le&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(rt[0])&&(Le=!1),{type:this.options.sanitize?"text":"html",raw:rt[0],inLink:Oe,inRawBlock:Le,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(rt[0]):x(rt[0]):rt[0]}},nt.link=function(we){var Oe=this.rules.inline.link.exec(we);if(Oe){var Le=Oe[2].trim();if(!this.options.pedantic&&/^</.test(Le)){if(!/>$/.test(Le))return;var rt=J(Le.slice(0,-1),"\\");if((Le.length-rt.length)%2===0)return}else{var _e=Z(Oe[2],"()");if(_e>-1){var Qt=Oe[0].indexOf("!")===0?5:4,He=Qt+Oe[1].length+_e;Oe[2]=Oe[2].substring(0,_e),Oe[0]=Oe[0].substring(0,He).trim(),Oe[3]=""}}var xn=Oe[2],Ln="";if(this.options.pedantic){var _r=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(xn);_r&&(xn=_r[1],Ln=_r[3])}else Ln=Oe[3]?Oe[3].slice(1,-1):"";return xn=xn.trim(),/^</.test(xn)&&(this.options.pedantic&&!/>$/.test(Le)?xn=xn.slice(1):xn=xn.slice(1,-1)),me(Oe,{href:xn&&xn.replace(this.rules.inline._escapes,"$1"),title:Ln&&Ln.replace(this.rules.inline._escapes,"$1")},Oe[0])}},nt.reflink=function(we,Oe){var Le;if((Le=this.rules.inline.reflink.exec(we))||(Le=this.rules.inline.nolink.exec(we))){var rt=(Le[2]||Le[1]).replace(/\s+/g," ");if(rt=Oe[rt.toLowerCase()],!rt||!rt.href){var _e=Le[0].charAt(0);return{type:"text",raw:_e,text:_e}}return me(Le,rt,Le[0])}},nt.emStrong=function(we,Oe,Le){Le===void 0&&(Le="");var rt=this.rules.inline.emStrong.lDelim.exec(we);if(rt&&!(rt[3]&&Le.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 _e=rt[1]||rt[2]||"";if(!_e||_e&&(Le===""||this.rules.inline.punctuation.exec(Le))){var Qt=rt[0].length-1,He,xn,Ln=Qt,_r=0,Hn=rt[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(Hn.lastIndex=0,Oe=Oe.slice(-1*we.length+Qt);(rt=Hn.exec(Oe))!=null;)if(He=rt[1]||rt[2]||rt[3]||rt[4]||rt[5]||rt[6],!!He){if(xn=He.length,rt[3]||rt[4]){Ln+=xn;continue}else if((rt[5]||rt[6])&&Qt%3&&!((Qt+xn)%3)){_r+=xn;continue}if(Ln-=xn,!(Ln>0))return xn=Math.min(xn,xn+Ln+_r),Math.min(Qt,xn)%2?{type:"em",raw:we.slice(0,Qt+rt.index+xn+1),text:we.slice(1,Qt+rt.index+xn)}:{type:"strong",raw:we.slice(0,Qt+rt.index+xn+1),text:we.slice(2,Qt+rt.index+xn-1)}}}}},nt.codespan=function(we){var Oe=this.rules.inline.code.exec(we);if(Oe){var Le=Oe[2].replace(/\n/g," "),rt=/[^ ]/.test(Le),_e=/^ /.test(Le)&&/ $/.test(Le);return rt&&_e&&(Le=Le.substring(1,Le.length-1)),Le=x(Le,!0),{type:"codespan",raw:Oe[0],text:Le}}},nt.br=function(we){var Oe=this.rules.inline.br.exec(we);if(Oe)return{type:"br",raw:Oe[0]}},nt.del=function(we){var Oe=this.rules.inline.del.exec(we);if(Oe)return{type:"del",raw:Oe[0],text:Oe[2]}},nt.autolink=function(we,Oe){var Le=this.rules.inline.autolink.exec(we);if(Le){var rt,_e;return Le[2]==="@"?(rt=x(this.options.mangle?Oe(Le[1]):Le[1]),_e="mailto:"+rt):(rt=x(Le[1]),_e=rt),{type:"link",raw:Le[0],text:rt,href:_e,tokens:[{type:"text",raw:rt,text:rt}]}}},nt.url=function(we,Oe){var Le;if(Le=this.rules.inline.url.exec(we)){var rt,_e;if(Le[2]==="@")rt=x(this.options.mangle?Oe(Le[0]):Le[0]),_e="mailto:"+rt;else{var Qt;do Qt=Le[0],Le[0]=this.rules.inline._backpedal.exec(Le[0])[0];while(Qt!==Le[0]);rt=x(Le[0]),Le[1]==="www."?_e="http://"+rt:_e=rt}return{type:"link",raw:Le[0],text:rt,href:_e,tokens:[{type:"text",raw:rt,text:rt}]}}},nt.inlineText=function(we,Oe,Le){var rt=this.rules.inline.text.exec(we);if(rt){var _e;return Oe?_e=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(rt[0]):x(rt[0]):rt[0]:_e=x(this.options.smartypants?Le(rt[0]):rt[0]),{type:"text",raw:rt[0],text:_e}}},it}(),ze=N.noopTest,qe=N.edit,mt=N.merge,gt={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:ze,table:ze,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};gt._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,gt._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,gt.def=qe(gt.def).replace("label",gt._label).replace("title",gt._title).getRegex(),gt.bullet=/(?:[*+-]|\d{1,9}[.)])/,gt.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,gt.item=qe(gt.item,"gm").replace(/bull/g,gt.bullet).getRegex(),gt.listItemStart=qe(/^( *)(bull) */).replace("bull",gt.bullet).getRegex(),gt.list=qe(gt.list).replace(/bull/g,gt.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+gt.def.source+")").getRegex(),gt._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",gt._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,gt.html=qe(gt.html,"i").replace("comment",gt._comment).replace("tag",gt._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),gt.paragraph=qe(gt._paragraph).replace("hr",gt.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",gt._tag).getRegex(),gt.blockquote=qe(gt.blockquote).replace("paragraph",gt.paragraph).getRegex(),gt.normal=mt({},gt),gt.gfm=mt({},gt.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*|$)"}),gt.gfm.nptable=qe(gt.gfm.nptable).replace("hr",gt.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",gt._tag).getRegex(),gt.gfm.table=qe(gt.gfm.table).replace("hr",gt.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",gt._tag).getRegex(),gt.pedantic=mt({},gt.normal,{html:qe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",gt._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:ze,paragraph:qe(gt.normal._paragraph).replace("hr",gt.hr).replace("heading",` *#{1,6} *[^
|
|
|
]`).replace("lheading",gt.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var at={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ze,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:ze,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};at._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",at.punctuation=qe(at.punctuation).replace(/punctuation/g,at._punctuation).getRegex(),at.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,at.escapedEmSt=/\\\*|\\_/g,at._comment=qe(gt._comment).replace("(?:-->|$)","-->").getRegex(),at.emStrong.lDelim=qe(at.emStrong.lDelim).replace(/punct/g,at._punctuation).getRegex(),at.emStrong.rDelimAst=qe(at.emStrong.rDelimAst,"g").replace(/punct/g,at._punctuation).getRegex(),at.emStrong.rDelimUnd=qe(at.emStrong.rDelimUnd,"g").replace(/punct/g,at._punctuation).getRegex(),at._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,at._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,at._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])?)+(?![-_])/,at.autolink=qe(at.autolink).replace("scheme",at._scheme).replace("email",at._email).getRegex(),at._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,at.tag=qe(at.tag).replace("comment",at._comment).replace("attribute",at._attribute).getRegex(),at._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,at._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,at._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,at.link=qe(at.link).replace("label",at._label).replace("href",at._href).replace("title",at._title).getRegex(),at.reflink=qe(at.reflink).replace("label",at._label).getRegex(),at.reflinkSearch=qe(at.reflinkSearch,"g").replace("reflink",at.reflink).replace("nolink",at.nolink).getRegex(),at.normal=mt({},at),at.pedantic=mt({},at.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:qe(/^!?\[(label)\]\((.*?)\)/).replace("label",at._label).getRegex(),reflink:qe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",at._label).getRegex()}),at.gfm=mt({},at.normal,{escape:qe(at.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),at.gfm.url=qe(at.gfm.url,"i").replace("email",at.gfm._extended_email).getRegex(),at.breaks=mt({},at.gfm,{br:qe(at.br).replace("{2,}","*").getRegex(),text:qe(at.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Lt={block:gt,inline:at},tn=Ue,Rt=ce.exports.defaults,Ht=Lt.block,ut=Lt.inline,wt=N.repeatString;function he(it){return it.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 pe(it){var nt="",tt,we,Oe=it.length;for(tt=0;tt<Oe;tt++)we=it.charCodeAt(tt),Math.random()>.5&&(we="x"+we.toString(16)),nt+="&#"+we+";";return nt}var le=function(){function it(tt){this.tokens=[],this.tokens.links=Object.create(null),this.options=tt||Rt,this.options.tokenizer=this.options.tokenizer||new tn,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var we={block:Ht.normal,inline:ut.normal};this.options.pedantic?(we.block=Ht.pedantic,we.inline=ut.pedantic):this.options.gfm&&(we.block=Ht.gfm,this.options.breaks?we.inline=ut.breaks:we.inline=ut.gfm),this.tokenizer.rules=we}it.lex=function(we,Oe){var Le=new it(Oe);return Le.lex(we)},it.lexInline=function(we,Oe){var Le=new it(Oe);return Le.inlineTokens(we)};var nt=it.prototype;return nt.lex=function(we){return we=we.replace(/\r\n|\r/g,`
|
|
|
`).replace(/\t/g," "),this.blockTokens(we,this.tokens,!0),this.inline(this.tokens),this.tokens},nt.blockTokens=function(we,Oe,Le){Oe===void 0&&(Oe=[]),Le===void 0&&(Le=!0),this.options.pedantic&&(we=we.replace(/^ +$/gm,""));for(var rt,_e,Qt,He;we;){if(rt=this.tokenizer.space(we)){we=we.substring(rt.raw.length),rt.type&&Oe.push(rt);continue}if(rt=this.tokenizer.code(we)){we=we.substring(rt.raw.length),He=Oe[Oe.length-1],He&&He.type==="paragraph"?(He.raw+=`
|
|
|
`+rt.raw,He.text+=`
|
|
|
`+rt.text):Oe.push(rt);continue}if(rt=this.tokenizer.fences(we)){we=we.substring(rt.raw.length),Oe.push(rt);continue}if(rt=this.tokenizer.heading(we)){we=we.substring(rt.raw.length),Oe.push(rt);continue}if(rt=this.tokenizer.nptable(we)){we=we.substring(rt.raw.length),Oe.push(rt);continue}if(rt=this.tokenizer.hr(we)){we=we.substring(rt.raw.length),Oe.push(rt);continue}if(rt=this.tokenizer.blockquote(we)){we=we.substring(rt.raw.length),rt.tokens=this.blockTokens(rt.text,[],Le),Oe.push(rt);continue}if(rt=this.tokenizer.list(we)){for(we=we.substring(rt.raw.length),Qt=rt.items.length,_e=0;_e<Qt;_e++)rt.items[_e].tokens=this.blockTokens(rt.items[_e].text,[],!1);Oe.push(rt);continue}if(rt=this.tokenizer.html(we)){we=we.substring(rt.raw.length),Oe.push(rt);continue}if(Le&&(rt=this.tokenizer.def(we))){we=we.substring(rt.raw.length),this.tokens.links[rt.tag]||(this.tokens.links[rt.tag]={href:rt.href,title:rt.title});continue}if(rt=this.tokenizer.table(we)){we=we.substring(rt.raw.length),Oe.push(rt);continue}if(rt=this.tokenizer.lheading(we)){we=we.substring(rt.raw.length),Oe.push(rt);continue}if(Le&&(rt=this.tokenizer.paragraph(we))){we=we.substring(rt.raw.length),Oe.push(rt);continue}if(rt=this.tokenizer.text(we)){we=we.substring(rt.raw.length),He=Oe[Oe.length-1],He&&He.type==="text"?(He.raw+=`
|
|
|
`+rt.raw,He.text+=`
|
|
|
`+rt.text):Oe.push(rt);continue}if(we){var xn="Infinite loop on byte: "+we.charCodeAt(0);if(this.options.silent){console.error(xn);break}else throw new Error(xn)}}return Oe},nt.inline=function(we){var Oe,Le,rt,_e,Qt,He,xn=we.length;for(Oe=0;Oe<xn;Oe++)switch(He=we[Oe],He.type){case"paragraph":case"text":case"heading":{He.tokens=[],this.inlineTokens(He.text,He.tokens);break}case"table":{for(He.tokens={header:[],cells:[]},_e=He.header.length,Le=0;Le<_e;Le++)He.tokens.header[Le]=[],this.inlineTokens(He.header[Le],He.tokens.header[Le]);for(_e=He.cells.length,Le=0;Le<_e;Le++)for(Qt=He.cells[Le],He.tokens.cells[Le]=[],rt=0;rt<Qt.length;rt++)He.tokens.cells[Le][rt]=[],this.inlineTokens(Qt[rt],He.tokens.cells[Le][rt]);break}case"blockquote":{this.inline(He.tokens);break}case"list":{for(_e=He.items.length,Le=0;Le<_e;Le++)this.inline(He.items[Le].tokens);break}}return we},nt.inlineTokens=function(we,Oe,Le,rt){Oe===void 0&&(Oe=[]),Le===void 0&&(Le=!1),rt===void 0&&(rt=!1);var _e,Qt,He=we,xn,Ln,_r;if(this.tokens.links){var Hn=Object.keys(this.tokens.links);if(Hn.length>0)for(;(xn=this.tokenizer.rules.inline.reflinkSearch.exec(He))!=null;)Hn.includes(xn[0].slice(xn[0].lastIndexOf("[")+1,-1))&&(He=He.slice(0,xn.index)+"["+wt("a",xn[0].length-2)+"]"+He.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(xn=this.tokenizer.rules.inline.blockSkip.exec(He))!=null;)He=He.slice(0,xn.index)+"["+wt("a",xn[0].length-2)+"]"+He.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(xn=this.tokenizer.rules.inline.escapedEmSt.exec(He))!=null;)He=He.slice(0,xn.index)+"++"+He.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;we;){if(Ln||(_r=""),Ln=!1,_e=this.tokenizer.escape(we)){we=we.substring(_e.raw.length),Oe.push(_e);continue}if(_e=this.tokenizer.tag(we,Le,rt)){we=we.substring(_e.raw.length),Le=_e.inLink,rt=_e.inRawBlock;var yn=Oe[Oe.length-1];yn&&_e.type==="text"&&yn.type==="text"?(yn.raw+=_e.raw,yn.text+=_e.text):Oe.push(_e);continue}if(_e=this.tokenizer.link(we)){we=we.substring(_e.raw.length),_e.type==="link"&&(_e.tokens=this.inlineTokens(_e.text,[],!0,rt)),Oe.push(_e);continue}if(_e=this.tokenizer.reflink(we,this.tokens.links)){we=we.substring(_e.raw.length);var wn=Oe[Oe.length-1];_e.type==="link"?(_e.tokens=this.inlineTokens(_e.text,[],!0,rt),Oe.push(_e)):wn&&_e.type==="text"&&wn.type==="text"?(wn.raw+=_e.raw,wn.text+=_e.text):Oe.push(_e);continue}if(_e=this.tokenizer.emStrong(we,He,_r)){we=we.substring(_e.raw.length),_e.tokens=this.inlineTokens(_e.text,[],Le,rt),Oe.push(_e);continue}if(_e=this.tokenizer.codespan(we)){we=we.substring(_e.raw.length),Oe.push(_e);continue}if(_e=this.tokenizer.br(we)){we=we.substring(_e.raw.length),Oe.push(_e);continue}if(_e=this.tokenizer.del(we)){we=we.substring(_e.raw.length),_e.tokens=this.inlineTokens(_e.text,[],Le,rt),Oe.push(_e);continue}if(_e=this.tokenizer.autolink(we,pe)){we=we.substring(_e.raw.length),Oe.push(_e);continue}if(!Le&&(_e=this.tokenizer.url(we,pe))){we=we.substring(_e.raw.length),Oe.push(_e);continue}if(_e=this.tokenizer.inlineText(we,rt,he)){we=we.substring(_e.raw.length),_e.raw.slice(-1)!=="_"&&(_r=_e.raw.slice(-1)),Ln=!0,Qt=Oe[Oe.length-1],Qt&&Qt.type==="text"?(Qt.raw+=_e.raw,Qt.text+=_e.text):Oe.push(_e);continue}if(we){var Ye="Infinite loop on byte: "+we.charCodeAt(0);if(this.options.silent){console.error(Ye);break}else throw new Error(Ye)}}return Oe},p(it,null,[{key:"rules",get:function(){return{block:Ht,inline:ut}}}]),it}(),Q=ce.exports.defaults,Re=N.cleanUrl,H=N.escape,R=function(){function it(tt){this.options=tt||Q}var nt=it.prototype;return nt.code=function(we,Oe,Le){var rt=(Oe||"").match(/\S*/)[0];if(this.options.highlight){var _e=this.options.highlight(we,rt);_e!=null&&_e!==we&&(Le=!0,we=_e)}return we=we.replace(/\n$/,"")+`
|
|
|
`,rt?'<pre><code class="'+this.options.langPrefix+H(rt,!0)+'">'+(Le?we:H(we,!0))+`</code></pre>
|
|
|
`:"<pre><code>"+(Le?we:H(we,!0))+`</code></pre>
|
|
|
`},nt.blockquote=function(we){return`<blockquote>
|
|
|
`+we+`</blockquote>
|
|
|
`},nt.html=function(we){return we},nt.heading=function(we,Oe,Le,rt){return this.options.headerIds?"<h"+Oe+' id="'+this.options.headerPrefix+rt.slug(Le)+'">'+we+"</h"+Oe+`>
|
|
|
`:"<h"+Oe+">"+we+"</h"+Oe+`>
|
|
|
`},nt.hr=function(){return this.options.xhtml?`<hr/>
|
|
|
`:`<hr>
|
|
|
`},nt.list=function(we,Oe,Le){var rt=Oe?"ol":"ul",_e=Oe&&Le!==1?' start="'+Le+'"':"";return"<"+rt+_e+`>
|
|
|
`+we+"</"+rt+`>
|
|
|
`},nt.listitem=function(we){return"<li>"+we+`</li>
|
|
|
`},nt.checkbox=function(we){return"<input "+(we?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},nt.paragraph=function(we){return"<p>"+we+`</p>
|
|
|
`},nt.table=function(we,Oe){return Oe&&(Oe="<tbody>"+Oe+"</tbody>"),`<table>
|
|
|
<thead>
|
|
|
`+we+`</thead>
|
|
|
`+Oe+`</table>
|
|
|
`},nt.tablerow=function(we){return`<tr>
|
|
|
`+we+`</tr>
|
|
|
`},nt.tablecell=function(we,Oe){var Le=Oe.header?"th":"td",rt=Oe.align?"<"+Le+' align="'+Oe.align+'">':"<"+Le+">";return rt+we+"</"+Le+`>
|
|
|
`},nt.strong=function(we){return"<strong>"+we+"</strong>"},nt.em=function(we){return"<em>"+we+"</em>"},nt.codespan=function(we){return"<code>"+we+"</code>"},nt.br=function(){return this.options.xhtml?"<br/>":"<br>"},nt.del=function(we){return"<del>"+we+"</del>"},nt.link=function(we,Oe,Le){if(we=Re(this.options.sanitize,this.options.baseUrl,we),we===null)return Le;var rt='<a href="'+H(we)+'"';return Oe&&(rt+=' title="'+Oe+'"'),rt+=">"+Le+"</a>",rt},nt.image=function(we,Oe,Le){if(we=Re(this.options.sanitize,this.options.baseUrl,we),we===null)return Le;var rt='<img src="'+we+'" alt="'+Le+'"';return Oe&&(rt+=' title="'+Oe+'"'),rt+=this.options.xhtml?"/>":">",rt},nt.text=function(we){return we},it}(),P=function(){function it(){}var nt=it.prototype;return nt.strong=function(we){return we},nt.em=function(we){return we},nt.codespan=function(we){return we},nt.del=function(we){return we},nt.html=function(we){return we},nt.text=function(we){return we},nt.link=function(we,Oe,Le){return""+Le},nt.image=function(we,Oe,Le){return""+Le},nt.br=function(){return""},it}(),fe=function(){function it(){this.seen={}}var nt=it.prototype;return nt.serialize=function(we){return we.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},nt.getNextSafeSlug=function(we,Oe){var Le=we,rt=0;if(this.seen.hasOwnProperty(Le)){rt=this.seen[we];do rt++,Le=we+"-"+rt;while(this.seen.hasOwnProperty(Le))}return Oe||(this.seen[we]=rt,this.seen[Le]=0),Le},nt.slug=function(we,Oe){Oe===void 0&&(Oe={});var Le=this.serialize(we);return this.getNextSafeSlug(Le,Oe.dryrun)},it}(),oe=R,te=P,Te=fe,je=ce.exports.defaults,Me=N.unescape,Fe=function(){function it(tt){this.options=tt||je,this.options.renderer=this.options.renderer||new oe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new te,this.slugger=new Te}it.parse=function(we,Oe){var Le=new it(Oe);return Le.parse(we)},it.parseInline=function(we,Oe){var Le=new it(Oe);return Le.parseInline(we)};var nt=it.prototype;return nt.parse=function(we,Oe){Oe===void 0&&(Oe=!0);var Le="",rt,_e,Qt,He,xn,Ln,_r,Hn,yn,wn,Ye,Ot,Ut,Ke,Pe,_t,Ct,nn,Vt=we.length;for(rt=0;rt<Vt;rt++)switch(wn=we[rt],wn.type){case"space":continue;case"hr":{Le+=this.renderer.hr();continue}case"heading":{Le+=this.renderer.heading(this.parseInline(wn.tokens),wn.depth,Me(this.parseInline(wn.tokens,this.textRenderer)),this.slugger);continue}case"code":{Le+=this.renderer.code(wn.text,wn.lang,wn.escaped);continue}case"table":{for(Hn="",_r="",He=wn.header.length,_e=0;_e<He;_e++)_r+=this.renderer.tablecell(this.parseInline(wn.tokens.header[_e]),{header:!0,align:wn.align[_e]});for(Hn+=this.renderer.tablerow(_r),yn="",He=wn.cells.length,_e=0;_e<He;_e++){for(Ln=wn.tokens.cells[_e],_r="",xn=Ln.length,Qt=0;Qt<xn;Qt++)_r+=this.renderer.tablecell(this.parseInline(Ln[Qt]),{header:!1,align:wn.align[Qt]});yn+=this.renderer.tablerow(_r)}Le+=this.renderer.table(Hn,yn);continue}case"blockquote":{yn=this.parse(wn.tokens),Le+=this.renderer.blockquote(yn);continue}case"list":{for(Ye=wn.ordered,Ot=wn.start,Ut=wn.loose,He=wn.items.length,yn="",_e=0;_e<He;_e++)Pe=wn.items[_e],_t=Pe.checked,Ct=Pe.task,Ke="",Pe.task&&(nn=this.renderer.checkbox(_t),Ut?Pe.tokens.length>0&&Pe.tokens[0].type==="text"?(Pe.tokens[0].text=nn+" "+Pe.tokens[0].text,Pe.tokens[0].tokens&&Pe.tokens[0].tokens.length>0&&Pe.tokens[0].tokens[0].type==="text"&&(Pe.tokens[0].tokens[0].text=nn+" "+Pe.tokens[0].tokens[0].text)):Pe.tokens.unshift({type:"text",text:nn}):Ke+=nn),Ke+=this.parse(Pe.tokens,Ut),yn+=this.renderer.listitem(Ke,Ct,_t);Le+=this.renderer.list(yn,Ye,Ot);continue}case"html":{Le+=this.renderer.html(wn.text);continue}case"paragraph":{Le+=this.renderer.paragraph(this.parseInline(wn.tokens));continue}case"text":{for(yn=wn.tokens?this.parseInline(wn.tokens):wn.text;rt+1<Vt&&we[rt+1].type==="text";)wn=we[++rt],yn+=`
|
|
|
`+(wn.tokens?this.parseInline(wn.tokens):wn.text);Le+=Oe?this.renderer.paragraph(yn):yn;continue}default:{var dn='Token with "'+wn.type+'" type was not found.';if(this.options.silent){console.error(dn);return}else throw new Error(dn)}}return Le},nt.parseInline=function(we,Oe){Oe=Oe||this.renderer;var Le="",rt,_e,Qt=we.length;for(rt=0;rt<Qt;rt++)switch(_e=we[rt],_e.type){case"escape":{Le+=Oe.text(_e.text);break}case"html":{Le+=Oe.html(_e.text);break}case"link":{Le+=Oe.link(_e.href,_e.title,this.parseInline(_e.tokens,Oe));break}case"image":{Le+=Oe.image(_e.href,_e.title,_e.text);break}case"strong":{Le+=Oe.strong(this.parseInline(_e.tokens,Oe));break}case"em":{Le+=Oe.em(this.parseInline(_e.tokens,Oe));break}case"codespan":{Le+=Oe.codespan(_e.text);break}case"br":{Le+=Oe.br();break}case"del":{Le+=Oe.del(this.parseInline(_e.tokens,Oe));break}case"text":{Le+=Oe.text(_e.text);break}default:{var He='Token with "'+_e.type+'" type was not found.';if(this.options.silent){console.error(He);return}else throw new Error(He)}}return Le},it}(),Je=le,Xe=Fe,Ve=Ue,xt=R,Dt=P,vt=fe,Bt=N.merge,Zt=N.checkSanitizeDeprecation,C=N.escape,M=ce.exports.getDefaults,yt=ce.exports.changeDefaults,ye=ce.exports.defaults;function Ne(it,nt,tt){if(typeof it=="undefined"||it===null)throw new Error("marked(): input parameter is undefined or null");if(typeof it!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(it)+", string expected");if(typeof nt=="function"&&(tt=nt,nt=null),nt=Bt({},Ne.defaults,nt||{}),Zt(nt),tt){var we=nt.highlight,Oe;try{Oe=Je.lex(it,nt)}catch(Qt){return tt(Qt)}var Le=function(He){var xn;if(!He)try{nt.walkTokens&&Ne.walkTokens(Oe,nt.walkTokens),xn=Xe.parse(Oe,nt)}catch(Ln){He=Ln}return nt.highlight=we,He?tt(He):tt(null,xn)};if(!we||we.length<3||(delete nt.highlight,!Oe.length))return Le();var rt=0;Ne.walkTokens(Oe,function(Qt){Qt.type==="code"&&(rt++,setTimeout(function(){we(Qt.text,Qt.lang,function(He,xn){if(He)return Le(He);xn!=null&&xn!==Qt.text&&(Qt.text=xn,Qt.escaped=!0),rt--,rt===0&&Le()})},0))}),rt===0&&Le();return}try{var _e=Je.lex(it,nt);return nt.walkTokens&&Ne.walkTokens(_e,nt.walkTokens),Xe.parse(_e,nt)}catch(Qt){if(Qt.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,nt.silent)return"<p>An error occurred:</p><pre>"+C(Qt.message+"",!0)+"</pre>";throw Qt}}Ne.options=Ne.setOptions=function(it){return Bt(Ne.defaults,it),yt(Ne.defaults),Ne},Ne.getDefaults=M,Ne.defaults=ye,Ne.use=function(it){var nt=Bt({},it);if(it.renderer&&function(){var we=Ne.defaults.renderer||new xt,Oe=function(_e){var Qt=we[_e];we[_e]=function(){for(var He=arguments.length,xn=new Array(He),Ln=0;Ln<He;Ln++)xn[Ln]=arguments[Ln];var _r=it.renderer[_e].apply(we,xn);return _r===!1&&(_r=Qt.apply(we,xn)),_r}};for(var Le in it.renderer)Oe(Le);nt.renderer=we}(),it.tokenizer&&function(){var we=Ne.defaults.tokenizer||new Ve,Oe=function(_e){var Qt=we[_e];we[_e]=function(){for(var He=arguments.length,xn=new Array(He),Ln=0;Ln<He;Ln++)xn[Ln]=arguments[Ln];var _r=it.tokenizer[_e].apply(we,xn);return _r===!1&&(_r=Qt.apply(we,xn)),_r}};for(var Le in it.tokenizer)Oe(Le);nt.tokenizer=we}(),it.walkTokens){var tt=Ne.defaults.walkTokens;nt.walkTokens=function(we){it.walkTokens(we),tt&&tt(we)}}Ne.setOptions(nt)},Ne.walkTokens=function(it,nt){for(var tt=q(it),we;!(we=tt()).done;){var Oe=we.value;switch(nt(Oe),Oe.type){case"table":{for(var Le=q(Oe.tokens.header),rt;!(rt=Le()).done;){var _e=rt.value;Ne.walkTokens(_e,nt)}for(var Qt=q(Oe.tokens.cells),He;!(He=Qt()).done;)for(var xn=He.value,Ln=q(xn),_r;!(_r=Ln()).done;){var Hn=_r.value;Ne.walkTokens(Hn,nt)}break}case"list":{Ne.walkTokens(Oe.items,nt);break}default:Oe.tokens&&Ne.walkTokens(Oe.tokens,nt)}}},Ne.parseInline=function(it,nt){if(typeof it=="undefined"||it===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof it!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(it)+", string expected");nt=Bt({},Ne.defaults,nt||{}),Zt(nt);try{var tt=Je.lexInline(it,nt);return nt.walkTokens&&Ne.walkTokens(tt,nt.walkTokens),Xe.parseInline(tt,nt)}catch(we){if(we.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,nt.silent)return"<p>An error occurred:</p><pre>"+C(we.message+"",!0)+"</pre>";throw we}},Ne.Parser=Xe,Ne.parser=Xe.parse,Ne.Renderer=xt,Ne.TextRenderer=Dt,Ne.Lexer=Je,Ne.lexer=Je.lex,Ne.Tokenizer=Ve,Ne.Slugger=vt,Ne.parse=Ne;var Sn=Ne;return Sn})},11690:function(Xt){const Ze=/[&<>"']/,p=/[&<>"']/g,O=/[<>"']|&(?!#?\w+;)/,K=/[<>"']|&(?!#?\w+;)/g,q={"&":"&","<":"<",">":">",'"':""","'":"'"},ce=j=>q[j];function A(j,xe){if(xe){if(Ze.test(j))return j.replace(p,ce)}else if(O.test(j))return j.replace(K,ce);return j}const m=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function w(j){return j.replace(m,(xe,Ce)=>(Ce=Ce.toLowerCase(),Ce==="colon"?":":Ce.charAt(0)==="#"?Ce.charAt(1)==="x"?String.fromCharCode(parseInt(Ce.substring(2),16)):String.fromCharCode(+Ce.substring(1)):""))}const re=/(^|[^\[])\^/g;function o(j,xe){j=j.source||j,xe=xe||"";const Ce={replace:(Ee,ge)=>(ge=ge.source||ge,ge=ge.replace(re,"$1"),j=j.replace(Ee,ge),Ce),getRegex:()=>new RegExp(j,xe)};return Ce}const I=/[^\w:]/g,k=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function g(j,xe,Ce){if(j){let Ee;try{Ee=decodeURIComponent(w(Ce)).replace(I,"").toLowerCase()}catch(ge){return null}if(Ee.indexOf("javascript:")===0||Ee.indexOf("vbscript:")===0||Ee.indexOf("data:")===0)return null}xe&&!k.test(Ce)&&(Ce=se(xe,Ce));try{Ce=encodeURI(Ce).replace(/%25/g,"%")}catch(Ee){return null}return Ce}const _={},S=/^[^:]+:\/*[^/]*$/,T=/^([^:]+:)[\s\S]*$/,B=/^([^:]+:\/*[^/]*)[\s\S]*$/;function se(j,xe){_[" "+j]||(S.test(j)?_[" "+j]=j+"/":_[" "+j]=X(j,"/",!0)),j=_[" "+j];const Ce=j.indexOf(":")===-1;return xe.substring(0,2)==="//"?Ce?xe:j.replace(T,"$1")+xe:xe.charAt(0)==="/"?Ce?xe:j.replace(B,"$1")+xe:j+xe}const z={exec:function(){}};function $(j){let xe=1,Ce,Ee;for(;xe<arguments.length;xe++){Ce=arguments[xe];for(Ee in Ce)Object.prototype.hasOwnProperty.call(Ce,Ee)&&(j[Ee]=Ce[Ee])}return j}function G(j,xe){const Ce=j.replace(/\|/g,(de,W,be)=>{let N=!1,ue=W;for(;--ue>=0&&be[ue]==="\\";)N=!N;return N?"|":" |"}),Ee=Ce.split(/ \|/);let ge=0;if(Ee.length>xe)Ee.splice(xe);else for(;Ee.length<xe;)Ee.push("");for(;ge<Ee.length;ge++)Ee[ge]=Ee[ge].trim().replace(/\\\|/g,"|");return Ee}function X(j,xe,Ce){const Ee=j.length;if(Ee===0)return"";let ge=0;for(;ge<Ee;){const de=j.charAt(Ee-ge-1);if(de===xe&&!Ce)ge++;else if(de!==xe&&Ce)ge++;else break}return j.substr(0,Ee-ge)}function L(j,xe){if(j.indexOf(xe[1])===-1)return-1;const Ce=j.length;let Ee=0,ge=0;for(;ge<Ce;ge++)if(j[ge]==="\\")ge++;else if(j[ge]===xe[0])Ee++;else if(j[ge]===xe[1]&&(Ee--,Ee<0))return ge;return-1}function D(j){j&&j.sanitize&&!j.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function Y(j,xe){if(xe<1)return"";let Ce="";for(;xe>1;)xe&1&&(Ce+=j),xe>>=1,j+=j;return Ce+j}Xt.exports={escape:A,unescape:w,edit:o,cleanUrl:g,resolveUrl:se,noopTest:z,merge:$,splitCells:G,rtrim:X,findClosingBracket:L,checkSanitizeDeprecation:D,repeatString:Y}},75918:function(Xt,Ze,p){"use strict";p.d(Ze,{Wi:function(){return m},Z0:function(){return w},aU:function(){return A},eZ:function(){return o},wY:function(){return re}});var O=p(4348),K=p(69323),q=p(13268),ce=function(I,k,g,_){function S(T){return T instanceof g?T:new g(function(B){B(T)})}return new(g||(g=Promise))(function(T,B){function se(G){try{$(_.next(G))}catch(X){B(X)}}function z(G){try{$(_.throw(G))}catch(X){B(X)}}function $(G){G.done?T(G.value):S(G.value).then(se,z)}$((_=_.apply(I,k||[])).next())})};class A extends K.JT{constructor(k,g="",_="",S=!0,T){super(),this._onDidChange=this._register(new O.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=k,this._label=g,this._cssClass=_,this._enabled=S,this._actionCallback=T}get id(){return this._id}get label(){return this._label}set label(k){this._setLabel(k)}_setLabel(k){this._label!==k&&(this._label=k,this._onDidChange.fire({label:k}))}get tooltip(){return this._tooltip||""}set tooltip(k){this._setTooltip(k)}_setTooltip(k){this._tooltip!==k&&(this._tooltip=k,this._onDidChange.fire({tooltip:k}))}get class(){return this._cssClass}set class(k){this._setClass(k)}_setClass(k){this._cssClass!==k&&(this._cssClass=k,this._onDidChange.fire({class:k}))}get enabled(){return this._enabled}set enabled(k){this._setEnabled(k)}_setEnabled(k){this._enabled!==k&&(this._enabled=k,this._onDidChange.fire({enabled:k}))}get checked(){return this._checked}set checked(k){this._setChecked(k)}_setChecked(k){this._checked!==k&&(this._checked=k,this._onDidChange.fire({checked:k}))}run(k,g){return ce(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(k))})}}class m extends K.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new O.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new O.Q5),this.onDidRun=this._onDidRun.event}run(k,g){return ce(this,void 0,void 0,function*(){if(!k.enabled)return;this._onBeforeRun.fire({action:k});let _;try{yield this.runAction(k,g)}catch(S){_=S}this._onDidRun.fire({action:k,error:_})})}runAction(k,g){return ce(this,void 0,void 0,function*(){yield k.run(g)})}}class w extends A{constructor(k){super(w.ID,k,k?"separator text":"separator"),this.checked=!1,this.enabled=!1}}w.ID="vs.actions.separator";class re{constructor(k,g,_,S){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=k,this.label=g,this.class=S,this._actions=_}get actions(){return this._actions}dispose(){}run(){return ce(this,void 0,void 0,function*(){})}}class o extends A{constructor(){super(o.ID,q.N("submenu.empty","(empty)"),void 0,!1)}}o.ID="vs.actions.empty"},76068:function(Xt,Ze,p){"use strict";p.d(Ze,{ok:function(){return O}});function O(K,q){if(!K)throw new Error(q?`Assertion failed (${q})`:"Assertion Failed")}},52615:function(Xt,Ze,p){"use strict";p.d(Ze,{CM:function(){return A},JL:function(){return m},dT:function(){return re},fK:function(){return ce},lA:function(){return w}});var O=p(4348);class K{constructor(){this._icons=new Map,this._onDidRegister=new O.Q5}add(I){const k=this._icons.get(I.id);k?I.description?k.description=I.description:console.error(`Duplicate registration of codicon ${I.id}`):(this._icons.set(I.id,I),this._onDidRegister.fire(I))}get(I){return this._icons.get(I)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const q=new K,ce=q;function A(o,I){return new w(o,I)}function m(o){return o?o.replace(/\$\((.*?)\)/g,(I,k)=>` ${k} `).trim():""}class w{constructor(I,k,g){this.id=I,this.definition=k,this.description=g,q.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var re;(function(o){o.iconNameSegment="[A-Za-z0-9]+",o.iconNameExpression="[A-Za-z0-9\\-]+",o.iconModifierExpression="~[A-Za-z]+";const I=new RegExp(`^(${o.iconNameExpression})(${o.iconModifierExpression})?$`);function k(S){if(S instanceof w)return["codicon","codicon-"+S.id];const T=I.exec(S.id);if(!T)return k(w.error);let[,B,se]=T;const z=["codicon","codicon-"+B];return se&&z.push("codicon-modifier-"+se.substr(1)),z}o.asClassNameArray=k;function g(S){return k(S).join(" ")}o.asClassName=g;function _(S){return"."+k(S).join(".")}o.asCSSSelector=_})(re||(re={})),function(o){o.add=new o("add",{fontCharacter:"\\ea60"}),o.plus=new o("plus",o.add.definition),o.gistNew=new o("gist-new",o.add.definition),o.repoCreate=new o("repo-create",o.add.definition),o.lightbulb=new o("lightbulb",{fontCharacter:"\\ea61"}),o.lightBulb=new o("light-bulb",{fontCharacter:"\\ea61"}),o.repo=new o("repo",{fontCharacter:"\\ea62"}),o.repoDelete=new o("repo-delete",{fontCharacter:"\\ea62"}),o.gistFork=new o("gist-fork",{fontCharacter:"\\ea63"}),o.repoForked=new o("repo-forked",{fontCharacter:"\\ea63"}),o.gitPullRequest=new o("git-pull-request",{fontCharacter:"\\ea64"}),o.gitPullRequestAbandoned=new o("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),o.recordKeys=new o("record-keys",{fontCharacter:"\\ea65"}),o.keyboard=new o("keyboard",{fontCharacter:"\\ea65"}),o.tag=new o("tag",{fontCharacter:"\\ea66"}),o.tagAdd=new o("tag-add",{fontCharacter:"\\ea66"}),o.tagRemove=new o("tag-remove",{fontCharacter:"\\ea66"}),o.person=new o("person",{fontCharacter:"\\ea67"}),o.personFollow=new o("person-follow",{fontCharacter:"\\ea67"}),o.personOutline=new o("person-outline",{fontCharacter:"\\ea67"}),o.personFilled=new o("person-filled",{fontCharacter:"\\ea67"}),o.gitBranch=new o("git-branch",{fontCharacter:"\\ea68"}),o.gitBranchCreate=new o("git-branch-create",{fontCharacter:"\\ea68"}),o.gitBranchDelete=new o("git-branch-delete",{fontCharacter:"\\ea68"}),o.sourceControl=new o("source-control",{fontCharacter:"\\ea68"}),o.mirror=new o("mirror",{fontCharacter:"\\ea69"}),o.mirrorPublic=new o("mirror-public",{fontCharacter:"\\ea69"}),o.star=new o("star",{fontCharacter:"\\ea6a"}),o.starAdd=new o("star-add",{fontCharacter:"\\ea6a"}),o.starDelete=new o("star-delete",{fontCharacter:"\\ea6a"}),o.starEmpty=new o("star-empty",{fontCharacter:"\\ea6a"}),o.comment=new o("comment",{fontCharacter:"\\ea6b"}),o.commentAdd=new o("comment-add",{fontCharacter:"\\ea6b"}),o.alert=new o("alert",{fontCharacter:"\\ea6c"}),o.warning=new o("warning",{fontCharacter:"\\ea6c"}),o.search=new o("search",{fontCharacter:"\\ea6d"}),o.searchSave=new o("search-save",{fontCharacter:"\\ea6d"}),o.logOut=new o("log-out",{fontCharacter:"\\ea6e"}),o.signOut=new o("sign-out",{fontCharacter:"\\ea6e"}),o.logIn=new o("log-in",{fontCharacter:"\\ea6f"}),o.signIn=new o("sign-in",{fontCharacter:"\\ea6f"}),o.eye=new o("eye",{fontCharacter:"\\ea70"}),o.eyeUnwatch=new o("eye-unwatch",{fontCharacter:"\\ea70"}),o.eyeWatch=new o("eye-watch",{fontCharacter:"\\ea70"}),o.circleFilled=new o("circle-filled",{fontCharacter:"\\ea71"}),o.primitiveDot=new o("primitive-dot",{fontCharacter:"\\ea71"}),o.closeDirty=new o("close-dirty",{fontCharacter:"\\ea71"}),o.debugBreakpoint=new o("debug-breakpoint",{fontCharacter:"\\ea71"}),o.debugBreakpointDisabled=new o("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),o.debugHint=new o("debug-hint",{fontCharacter:"\\ea71"}),o.primitiveSquare=new o("primitive-square",{fontCharacter:"\\ea72"}),o.edit=new o("edit",{fontCharacter:"\\ea73"}),o.pencil=new o("pencil",{fontCharacter:"\\ea73"}),o.info=new o("info",{fontCharacter:"\\ea74"}),o.issueOpened=new o("issue-opened",{fontCharacter:"\\ea74"}),o.gistPrivate=new o("gist-private",{fontCharacter:"\\ea75"}),o.gitForkPrivate=new o("git-fork-private",{fontCharacter:"\\ea75"}),o.lock=new o("lock",{fontCharacter:"\\ea75"}),o.mirrorPrivate=new o("mirror-private",{fontCharacter:"\\ea75"}),o.close=new o("close",{fontCharacter:"\\ea76"}),o.removeClose=new o("remove-close",{fontCharacter:"\\ea76"}),o.x=new o("x",{fontCharacter:"\\ea76"}),o.repoSync=new o("repo-sync",{fontCharacter:"\\ea77"}),o.sync=new o("sync",{fontCharacter:"\\ea77"}),o.clone=new o("clone",{fontCharacter:"\\ea78"}),o.desktopDownload=new o("desktop-download",{fontCharacter:"\\ea78"}),o.beaker=new o("beaker",{fontCharacter:"\\ea79"}),o.microscope=new o("microscope",{fontCharacter:"\\ea79"}),o.vm=new o("vm",{fontCharacter:"\\ea7a"}),o.deviceDesktop=new o("device-desktop",{fontCharacter:"\\ea7a"}),o.file=new o("file",{fontCharacter:"\\ea7b"}),o.fileText=new o("file-text",{fontCharacter:"\\ea7b"}),o.more=new o("more",{fontCharacter:"\\ea7c"}),o.ellipsis=new o("ellipsis",{fontCharacter:"\\ea7c"}),o.kebabHorizontal=new o("kebab-horizontal",{fontCharacter:"\\ea7c"}),o.mailReply=new o("mail-reply",{fontCharacter:"\\ea7d"}),o.reply=new o("reply",{fontCharacter:"\\ea7d"}),o.organization=new o("organization",{fontCharacter:"\\ea7e"}),o.organizationFilled=new o("organization-filled",{fontCharacter:"\\ea7e"}),o.organizationOutline=new o("organization-outline",{fontCharacter:"\\ea7e"}),o.newFile=new o("new-file",{fontCharacter:"\\ea7f"}),o.fileAdd=new o("file-add",{fontCharacter:"\\ea7f"}),o.newFolder=new o("new-folder",{fontCharacter:"\\ea80"}),o.fileDirectoryCreate=new o("file-directory-create",{fontCharacter:"\\ea80"}),o.trash=new o("trash",{fontCharacter:"\\ea81"}),o.trashcan=new o("trashcan",{fontCharacter:"\\ea81"}),o.history=new o("history",{fontCharacter:"\\ea82"}),o.clock=new o("clock",{fontCharacter:"\\ea82"}),o.folder=new o("folder",{fontCharacter:"\\ea83"}),o.fileDirectory=new o("file-directory",{fontCharacter:"\\ea83"}),o.symbolFolder=new o("symbol-folder",{fontCharacter:"\\ea83"}),o.logoGithub=new o("logo-github",{fontCharacter:"\\ea84"}),o.markGithub=new o("mark-github",{fontCharacter:"\\ea84"}),o.github=new o("github",{fontCharacter:"\\ea84"}),o.terminal=new o("terminal",{fontCharacter:"\\ea85"}),o.console=new o("console",{fontCharacter:"\\ea85"}),o.repl=new o("repl",{fontCharacter:"\\ea85"}),o.zap=new o("zap",{fontCharacter:"\\ea86"}),o.symbolEvent=new o("symbol-event",{fontCharacter:"\\ea86"}),o.error=new o("error",{fontCharacter:"\\ea87"}),o.stop=new o("stop",{fontCharacter:"\\ea87"}),o.variable=new o("variable",{fontCharacter:"\\ea88"}),o.symbolVariable=new o("symbol-variable",{fontCharacter:"\\ea88"}),o.array=new o("array",{fontCharacter:"\\ea8a"}),o.symbolArray=new o("symbol-array",{fontCharacter:"\\ea8a"}),o.symbolModule=new o("symbol-module",{fontCharacter:"\\ea8b"}),o.symbolPackage=new o("symbol-package",{fontCharacter:"\\ea8b"}),o.symbolNamespace=new o("symbol-namespace",{fontCharacter:"\\ea8b"}),o.symbolObject=new o("symbol-object",{fontCharacter:"\\ea8b"}),o.symbolMethod=new o("symbol-method",{fontCharacter:"\\ea8c"}),o.symbolFunction=new o("symbol-function",{fontCharacter:"\\ea8c"}),o.symbolConstructor=new o("symbol-constructor",{fontCharacter:"\\ea8c"}),o.symbolBoolean=new o("symbol-boolean",{fontCharacter:"\\ea8f"}),o.symbolNull=new o("symbol-null",{fontCharacter:"\\ea8f"}),o.symbolNumeric=new o("symbol-numeric",{fontCharacter:"\\ea90"}),o.symbolNumber=new o("symbol-number",{fontCharacter:"\\ea90"}),o.symbolStructure=new o("symbol-structure",{fontCharacter:"\\ea91"}),o.symbolStruct=new o("symbol-struct",{fontCharacter:"\\ea91"}),o.symbolParameter=new o("symbol-parameter",{fontCharacter:"\\ea92"}),o.symbolTypeParameter=new o("symbol-type-parameter",{fontCharacter:"\\ea92"}),o.symbolKey=new o("symbol-key",{fontCharacter:"\\ea93"}),o.symbolText=new o("symbol-text",{fontCharacter:"\\ea93"}),o.symbolReference=new o("symbol-reference",{fontCharacter:"\\ea94"}),o.goToFile=new o("go-to-file",{fontCharacter:"\\ea94"}),o.symbolEnum=new o("symbol-enum",{fontCharacter:"\\ea95"}),o.symbolValue=new o("symbol-value",{fontCharacter:"\\ea95"}),o.symbolRuler=new o("symbol-ruler",{fontCharacter:"\\ea96"}),o.symbolUnit=new o("symbol-unit",{fontCharacter:"\\ea96"}),o.activateBreakpoints=new o("activate-breakpoints",{fontCharacter:"\\ea97"}),o.archive=new o("archive",{fontCharacter:"\\ea98"}),o.arrowBoth=new o("arrow-both",{fontCharacter:"\\ea99"}),o.arrowDown=new o("arrow-down",{fontCharacter:"\\ea9a"}),o.arrowLeft=new o("arrow-left",{fontCharacter:"\\ea9b"}),o.arrowRight=new o("arrow-right",{fontCharacter:"\\ea9c"}),o.arrowSmallDown=new o("arrow-small-down",{fontCharacter:"\\ea9d"}),o.arrowSmallLeft=new o("arrow-small-left",{fontCharacter:"\\ea9e"}),o.arrowSmallRight=new o("arrow-small-right",{fontCharacter:"\\ea9f"}),o.arrowSmallUp=new o("arrow-small-up",{fontCharacter:"\\eaa0"}),o.arrowUp=new o("arrow-up",{fontCharacter:"\\eaa1"}),o.bell=new o("bell",{fontCharacter:"\\eaa2"}),o.bold=new o("bold",{fontCharacter:"\\eaa3"}),o.book=new o("book",{fontCharacter:"\\eaa4"}),o.bookmark=new o("bookmark",{fontCharacter:"\\eaa5"}),o.debugBreakpointConditionalUnverified=new o("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),o.debugBreakpointConditional=new o("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),o.debugBreakpointConditionalDisabled=new o("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),o.debugBreakpointDataUnverified=new o("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),o.debugBreakpointData=new o("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),o.debugBreakpointDataDisabled=new o("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),o.debugBreakpointLogUnverified=new o("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),o.debugBreakpointLog=new o("debug-breakpoint-log",{fontCharacter:"\\eaab"}),o.debugBreakpointLogDisabled=new o("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),o.briefcase=new o("briefcase",{fontCharacter:"\\eaac"}),o.broadcast=new o("broadcast",{fontCharacter:"\\eaad"}),o.browser=new o("browser",{fontCharacter:"\\eaae"}),o.bug=new o("bug",{fontCharacter:"\\eaaf"}),o.calendar=new o("calendar",{fontCharacter:"\\eab0"}),o.caseSensitive=new o("case-sensitive",{fontCharacter:"\\eab1"}),o.check=new o("check",{fontCharacter:"\\eab2"}),o.checklist=new o("checklist",{fontCharacter:"\\eab3"}),o.chevronDown=new o("chevron-down",{fontCharacter:"\\eab4"}),o.dropDownButton=new o("drop-down-button",o.chevronDown.definition),o.chevronLeft=new o("chevron-left",{fontCharacter:"\\eab5"}),o.chevronRight=new o("chevron-right",{fontCharacter:"\\eab6"}),o.chevronUp=new o("chevron-up",{fontCharacter:"\\eab7"}),o.chromeClose=new o("chrome-close",{fontCharacter:"\\eab8"}),o.chromeMaximize=new o("chrome-maximize",{fontCharacter:"\\eab9"}),o.chromeMinimize=new o("chrome-minimize",{fontCharacter:"\\eaba"}),o.chromeRestore=new o("chrome-restore",{fontCharacter:"\\eabb"}),o.circleOutline=new o("circle-outline",{fontCharacter:"\\eabc"}),o.debugBreakpointUnverified=new o("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),o.circleSlash=new o("circle-slash",{fontCharacter:"\\eabd"}),o.circuitBoard=new o("circuit-board",{fontCharacter:"\\eabe"}),o.clearAll=new o("clear-all",{fontCharacter:"\\eabf"}),o.clippy=new o("clippy",{fontCharacter:"\\eac0"}),o.closeAll=new o("close-all",{fontCharacter:"\\eac1"}),o.cloudDownload=new o("cloud-download",{fontCharacter:"\\eac2"}),o.cloudUpload=new o("cloud-upload",{fontCharacter:"\\eac3"}),o.code=new o("code",{fontCharacter:"\\eac4"}),o.collapseAll=new o("collapse-all",{fontCharacter:"\\eac5"}),o.colorMode=new o("color-mode",{fontCharacter:"\\eac6"}),o.commentDiscussion=new o("comment-discussion",{fontCharacter:"\\eac7"}),o.compareChanges=new o("compare-changes",{fontCharacter:"\\eafd"}),o.creditCard=new o("credit-card",{fontCharacter:"\\eac9"}),o.dash=new o("dash",{fontCharacter:"\\eacc"}),o.dashboard=new o("dashboard",{fontCharacter:"\\eacd"}),o.database=new o("database",{fontCharacter:"\\eace"}),o.debugContinue=new o("debug-continue",{fontCharacter:"\\eacf"}),o.debugDisconnect=new o("debug-disconnect",{fontCharacter:"\\ead0"}),o.debugPause=new o("debug-pause",{fontCharacter:"\\ead1"}),o.debugRestart=new o("debug-restart",{fontCharacter:"\\ead2"}),o.debugStart=new o("debug-start",{fontCharacter:"\\ead3"}),o.debugStepInto=new o("debug-step-into",{fontCharacter:"\\ead4"}),o.debugStepOut=new o("debug-step-out",{fontCharacter:"\\ead5"}),o.debugStepOver=new o("debug-step-over",{fontCharacter:"\\ead6"}),o.debugStop=new o("debug-stop",{fontCharacter:"\\ead7"}),o.debug=new o("debug",{fontCharacter:"\\ead8"}),o.deviceCameraVideo=new o("device-camera-video",{fontCharacter:"\\ead9"}),o.deviceCamera=new o("device-camera",{fontCharacter:"\\eada"}),o.deviceMobile=new o("device-mobile",{fontCharacter:"\\eadb"}),o.diffAdded=new o("diff-added",{fontCharacter:"\\eadc"}),o.diffIgnored=new o("diff-ignored",{fontCharacter:"\\eadd"}),o.diffModified=new o("diff-modified",{fontCharacter:"\\eade"}),o.diffRemoved=new o("diff-removed",{fontCharacter:"\\eadf"}),o.diffRenamed=new o("diff-renamed",{fontCharacter:"\\eae0"}),o.diff=new o("diff",{fontCharacter:"\\eae1"}),o.discard=new o("discard",{fontCharacter:"\\eae2"}),o.editorLayout=new o("editor-layout",{fontCharacter:"\\eae3"}),o.emptyWindow=new o("empty-window",{fontCharacter:"\\eae4"}),o.exclude=new o("exclude",{fontCharacter:"\\eae5"}),o.extensions=new o("extensions",{fontCharacter:"\\eae6"}),o.eyeClosed=new o("eye-closed",{fontCharacter:"\\eae7"}),o.fileBinary=new o("file-binary",{fontCharacter:"\\eae8"}),o.fileCode=new o("file-code",{fontCharacter:"\\eae9"}),o.fileMedia=new o("file-media",{fontCharacter:"\\eaea"}),o.filePdf=new o("file-pdf",{fontCharacter:"\\eaeb"}),o.fileSubmodule=new o("file-submodule",{fontCharacter:"\\eaec"}),o.fileSymlinkDirectory=new o("file-symlink-directory",{fontCharacter:"\\eaed"}),o.fileSymlinkFile=new o("file-symlink-file",{fontCharacter:"\\eaee"}),o.fileZip=new o("file-zip",{fontCharacter:"\\eaef"}),o.files=new o("files",{fontCharacter:"\\eaf0"}),o.filter=new o("filter",{fontCharacter:"\\eaf1"}),o.flame=new o("flame",{fontCharacter:"\\eaf2"}),o.foldDown=new o("fold-down",{fontCharacter:"\\eaf3"}),o.foldUp=new o("fold-up",{fontCharacter:"\\eaf4"}),o.fold=new o("fold",{fontCharacter:"\\eaf5"}),o.folderActive=new o("folder-active",{fontCharacter:"\\eaf6"}),o.folderOpened=new o("folder-opened",{fontCharacter:"\\eaf7"}),o.gear=new o("gear",{fontCharacter:"\\eaf8"}),o.gift=new o("gift",{fontCharacter:"\\eaf9"}),o.gistSecret=new o("gist-secret",{fontCharacter:"\\eafa"}),o.gist=new o("gist",{fontCharacter:"\\eafb"}),o.gitCommit=new o("git-commit",{fontCharacter:"\\eafc"}),o.gitCompare=new o("git-compare",{fontCharacter:"\\eafd"}),o.gitMerge=new o("git-merge",{fontCharacter:"\\eafe"}),o.githubAction=new o("github-action",{fontCharacter:"\\eaff"}),o.githubAlt=new o("github-alt",{fontCharacter:"\\eb00"}),o.globe=new o("globe",{fontCharacter:"\\eb01"}),o.grabber=new o("grabber",{fontCharacter:"\\eb02"}),o.graph=new o("graph",{fontCharacter:"\\eb03"}),o.gripper=new o("gripper",{fontCharacter:"\\eb04"}),o.heart=new o("heart",{fontCharacter:"\\eb05"}),o.home=new o("home",{fontCharacter:"\\eb06"}),o.horizontalRule=new o("horizontal-rule",{fontCharacter:"\\eb07"}),o.hubot=new o("hubot",{fontCharacter:"\\eb08"}),o.inbox=new o("inbox",{fontCharacter:"\\eb09"}),o.issueClosed=new o("issue-closed",{fontCharacter:"\\eba4"}),o.issueReopened=new o("issue-reopened",{fontCharacter:"\\eb0b"}),o.issues=new o("issues",{fontCharacter:"\\eb0c"}),o.italic=new o("italic",{fontCharacter:"\\eb0d"}),o.jersey=new o("jersey",{fontCharacter:"\\eb0e"}),o.json=new o("json",{fontCharacter:"\\eb0f"}),o.kebabVertical=new o("kebab-vertical",{fontCharacter:"\\eb10"}),o.key=new o("key",{fontCharacter:"\\eb11"}),o.law=new o("law",{fontCharacter:"\\eb12"}),o.lightbulbAutofix=new o("lightbulb-autofix",{fontCharacter:"\\eb13"}),o.linkExternal=new o("link-external",{fontCharacter:"\\eb14"}),o.link=new o("link",{fontCharacter:"\\eb15"}),o.listOrdered=new o("list-ordered",{fontCharacter:"\\eb16"}),o.listUnordered=new o("list-unordered",{fontCharacter:"\\eb17"}),o.liveShare=new o("live-share",{fontCharacter:"\\eb18"}),o.loading=new o("loading",{fontCharacter:"\\eb19"}),o.location=new o("location",{fontCharacter:"\\eb1a"}),o.mailRead=new o("mail-read",{fontCharacter:"\\eb1b"}),o.mail=new o("mail",{fontCharacter:"\\eb1c"}),o.markdown=new o("markdown",{fontCharacter:"\\eb1d"}),o.megaphone=new o("megaphone",{fontCharacter:"\\eb1e"}),o.mention=new o("mention",{fontCharacter:"\\eb1f"}),o.milestone=new o("milestone",{fontCharacter:"\\eb20"}),o.mortarBoard=new o("mortar-board",{fontCharacter:"\\eb21"}),o.move=new o("move",{fontCharacter:"\\eb22"}),o.multipleWindows=new o("multiple-windows",{fontCharacter:"\\eb23"}),o.mute=new o("mute",{fontCharacter:"\\eb24"}),o.noNewline=new o("no-newline",{fontCharacter:"\\eb25"}),o.note=new o("note",{fontCharacter:"\\eb26"}),o.octoface=new o("octoface",{fontCharacter:"\\eb27"}),o.openPreview=new o("open-preview",{fontCharacter:"\\eb28"}),o.package_=new o("package",{fontCharacter:"\\eb29"}),o.paintcan=new o("paintcan",{fontCharacter:"\\eb2a"}),o.pin=new o("pin",{fontCharacter:"\\eb2b"}),o.play=new o("play",{fontCharacter:"\\eb2c"}),o.run=new o("run",{fontCharacter:"\\eb2c"}),o.plug=new o("plug",{fontCharacter:"\\eb2d"}),o.preserveCase=new o("preserve-case",{fontCharacter:"\\eb2e"}),o.preview=new o("preview",{fontCharacter:"\\eb2f"}),o.project=new o("project",{fontCharacter:"\\eb30"}),o.pulse=new o("pulse",{fontCharacter:"\\eb31"}),o.question=new o("question",{fontCharacter:"\\eb32"}),o.quote=new o("quote",{fontCharacter:"\\eb33"}),o.radioTower=new o("radio-tower",{fontCharacter:"\\eb34"}),o.reactions=new o("reactions",{fontCharacter:"\\eb35"}),o.references=new o("references",{fontCharacter:"\\eb36"}),o.refresh=new o("refresh",{fontCharacter:"\\eb37"}),o.regex=new o("regex",{fontCharacter:"\\eb38"}),o.remoteExplorer=new o("remote-explorer",{fontCharacter:"\\eb39"}),o.remote=new o("remote",{fontCharacter:"\\eb3a"}),o.remove=new o("remove",{fontCharacter:"\\eb3b"}),o.replaceAll=new o("replace-all",{fontCharacter:"\\eb3c"}),o.replace=new o("replace",{fontCharacter:"\\eb3d"}),o.repoClone=new o("repo-clone",{fontCharacter:"\\eb3e"}),o.repoForcePush=new o("repo-force-push",{fontCharacter:"\\eb3f"}),o.repoPull=new o("repo-pull",{fontCharacter:"\\eb40"}),o.repoPush=new o("repo-push",{fontCharacter:"\\eb41"}),o.report=new o("report",{fontCharacter:"\\eb42"}),o.requestChanges=new o("request-changes",{fontCharacter:"\\eb43"}),o.rocket=new o("rocket",{fontCharacter:"\\eb44"}),o.rootFolderOpened=new o("root-folder-opened",{fontCharacter:"\\eb45"}),o.rootFolder=new o("root-folder",{fontCharacter:"\\eb46"}),o.rss=new o("rss",{fontCharacter:"\\eb47"}),o.ruby=new o("ruby",{fontCharacter:"\\eb48"}),o.saveAll=new o("save-all",{fontCharacter:"\\eb49"}),o.saveAs=new o("save-as",{fontCharacter:"\\eb4a"}),o.save=new o("save",{fontCharacter:"\\eb4b"}),o.screenFull=new o("screen-full",{fontCharacter:"\\eb4c"}),o.screenNormal=new o("screen-normal",{fontCharacter:"\\eb4d"}),o.searchStop=new o("search-stop",{fontCharacter:"\\eb4e"}),o.server=new o("server",{fontCharacter:"\\eb50"}),o.settingsGear=new o("settings-gear",{fontCharacter:"\\eb51"}),o.settings=new o("settings",{fontCharacter:"\\eb52"}),o.shield=new o("shield",{fontCharacter:"\\eb53"}),o.smiley=new o("smiley",{fontCharacter:"\\eb54"}),o.sortPrecedence=new o("sort-precedence",{fontCharacter:"\\eb55"}),o.splitHorizontal=new o("split-horizontal",{fontCharacter:"\\eb56"}),o.splitVertical=new o("split-vertical",{fontCharacter:"\\eb57"}),o.squirrel=new o("squirrel",{fontCharacter:"\\eb58"}),o.starFull=new o("star-full",{fontCharacter:"\\eb59"}),o.starHalf=new o("star-half",{fontCharacter:"\\eb5a"}),o.symbolClass=new o("symbol-class",{fontCharacter:"\\eb5b"}),o.symbolColor=new o("symbol-color",{fontCharacter:"\\eb5c"}),o.symbolConstant=new o("symbol-constant",{fontCharacter:"\\eb5d"}),o.symbolEnumMember=new o("symbol-enum-member",{fontCharacter:"\\eb5e"}),o.symbolField=new o("symbol-field",{fontCharacter:"\\eb5f"}),o.symbolFile=new o("symbol-file",{fontCharacter:"\\eb60"}),o.symbolInterface=new o("symbol-interface",{fontCharacter:"\\eb61"}),o.symbolKeyword=new o("symbol-keyword",{fontCharacter:"\\eb62"}),o.symbolMisc=new o("symbol-misc",{fontCharacter:"\\eb63"}),o.symbolOperator=new o("symbol-operator",{fontCharacter:"\\eb64"}),o.symbolProperty=new o("symbol-property",{fontCharacter:"\\eb65"}),o.wrench=new o("wrench",{fontCharacter:"\\eb65"}),o.wrenchSubaction=new o("wrench-subaction",{fontCharacter:"\\eb65"}),o.symbolSnippet=new o("symbol-snippet",{fontCharacter:"\\eb66"}),o.tasklist=new o("tasklist",{fontCharacter:"\\eb67"}),o.telescope=new o("telescope",{fontCharacter:"\\eb68"}),o.textSize=new o("text-size",{fontCharacter:"\\eb69"}),o.threeBars=new o("three-bars",{fontCharacter:"\\eb6a"}),o.thumbsdown=new o("thumbsdown",{fontCharacter:"\\eb6b"}),o.thumbsup=new o("thumbsup",{fontCharacter:"\\eb6c"}),o.tools=new o("tools",{fontCharacter:"\\eb6d"}),o.triangleDown=new o("triangle-down",{fontCharacter:"\\eb6e"}),o.triangleLeft=new o("triangle-left",{fontCharacter:"\\eb6f"}),o.triangleRight=new o("triangle-right",{fontCharacter:"\\eb70"}),o.triangleUp=new o("triangle-up",{fontCharacter:"\\eb71"}),o.twitter=new o("twitter",{fontCharacter:"\\eb72"}),o.unfold=new o("unfold",{fontCharacter:"\\eb73"}),o.unlock=new o("unlock",{fontCharacter:"\\eb74"}),o.unmute=new o("unmute",{fontCharacter:"\\eb75"}),o.unverified=new o("unverified",{fontCharacter:"\\eb76"}),o.verified=new o("verified",{fontCharacter:"\\eb77"}),o.versions=new o("versions",{fontCharacter:"\\eb78"}),o.vmActive=new o("vm-active",{fontCharacter:"\\eb79"}),o.vmOutline=new o("vm-outline",{fontCharacter:"\\eb7a"}),o.vmRunning=new o("vm-running",{fontCharacter:"\\eb7b"}),o.watch=new o("watch",{fontCharacter:"\\eb7c"}),o.whitespace=new o("whitespace",{fontCharacter:"\\eb7d"}),o.wholeWord=new o("whole-word",{fontCharacter:"\\eb7e"}),o.window=new o("window",{fontCharacter:"\\eb7f"}),o.wordWrap=new o("word-wrap",{fontCharacter:"\\eb80"}),o.zoomIn=new o("zoom-in",{fontCharacter:"\\eb81"}),o.zoomOut=new o("zoom-out",{fontCharacter:"\\eb82"}),o.listFilter=new o("list-filter",{fontCharacter:"\\eb83"}),o.listFlat=new o("list-flat",{fontCharacter:"\\eb84"}),o.listSelection=new o("list-selection",{fontCharacter:"\\eb85"}),o.selection=new o("selection",{fontCharacter:"\\eb85"}),o.listTree=new o("list-tree",{fontCharacter:"\\eb86"}),o.debugBreakpointFunctionUnverified=new o("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),o.debugBreakpointFunction=new o("debug-breakpoint-function",{fontCharacter:"\\eb88"}),o.debugBreakpointFunctionDisabled=new o("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),o.debugStackframeActive=new o("debug-stackframe-active",{fontCharacter:"\\eb89"}),o.debugStackframeDot=new o("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),o.debugStackframe=new o("debug-stackframe",{fontCharacter:"\\eb8b"}),o.debugStackframeFocused=new o("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),o.debugBreakpointUnsupported=new o("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),o.symbolString=new o("symbol-string",{fontCharacter:"\\eb8d"}),o.debugReverseContinue=new o("debug-reverse-continue",{fontCharacter:"\\eb8e"}),o.debugStepBack=new o("debug-step-back",{fontCharacter:"\\eb8f"}),o.debugRestartFrame=new o("debug-restart-frame",{fontCharacter:"\\eb90"}),o.callIncoming=new o("call-incoming",{fontCharacter:"\\eb92"}),o.callOutgoing=new o("call-outgoing",{fontCharacter:"\\eb93"}),o.menu=new o("menu",{fontCharacter:"\\eb94"}),o.expandAll=new o("expand-all",{fontCharacter:"\\eb95"}),o.feedback=new o("feedback",{fontCharacter:"\\eb96"}),o.groupByRefType=new o("group-by-ref-type",{fontCharacter:"\\eb97"}),o.ungroupByRefType=new o("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),o.account=new o("account",{fontCharacter:"\\eb99"}),o.bellDot=new o("bell-dot",{fontCharacter:"\\eb9a"}),o.debugConsole=new o("debug-console",{fontCharacter:"\\eb9b"}),o.library=new o("library",{fontCharacter:"\\eb9c"}),o.output=new o("output",{fontCharacter:"\\eb9d"}),o.runAll=new o("run-all",{fontCharacter:"\\eb9e"}),o.syncIgnored=new o("sync-ignored",{fontCharacter:"\\eb9f"}),o.pinned=new o("pinned",{fontCharacter:"\\eba0"}),o.githubInverted=new o("github-inverted",{fontCharacter:"\\eba1"}),o.debugAlt=new o("debug-alt",{fontCharacter:"\\eb91"}),o.serverProcess=new o("server-process",{fontCharacter:"\\eba2"}),o.serverEnvironment=new o("server-environment",{fontCharacter:"\\eba3"}),o.pass=new o("pass",{fontCharacter:"\\eba4"}),o.stopCircle=new o("stop-circle",{fontCharacter:"\\eba5"}),o.playCircle=new o("play-circle",{fontCharacter:"\\eba6"}),o.record=new o("record",{fontCharacter:"\\eba7"}),o.debugAltSmall=new o("debug-alt-small",{fontCharacter:"\\eba8"}),o.vmConnect=new o("vm-connect",{fontCharacter:"\\eba9"}),o.cloud=new o("cloud",{fontCharacter:"\\ebaa"}),o.merge=new o("merge",{fontCharacter:"\\ebab"}),o.exportIcon=new o("export",{fontCharacter:"\\ebac"}),o.graphLeft=new o("graph-left",{fontCharacter:"\\ebad"}),o.magnet=new o("magnet",{fontCharacter:"\\ebae"}),o.notebook=new o("notebook",{fontCharacter:"\\ebaf"}),o.redo=new o("redo",{fontCharacter:"\\ebb0"}),o.checkAll=new o("check-all",{fontCharacter:"\\ebb1"}),o.pinnedDirty=new o("pinned-dirty",{fontCharacter:"\\ebb2"}),o.passFilled=new o("pass-filled",{fontCharacter:"\\ebb3"}),o.circleLargeFilled=new o("circle-large-filled",{fontCharacter:"\\ebb4"}),o.circleLargeOutline=new o("circle-large-outline",{fontCharacter:"\\ebb5"}),o.combine=new o("combine",{fontCharacter:"\\ebb6"}),o.gather=new o("gather",{fontCharacter:"\\ebb6"}),o.table=new o("table",{fontCharacter:"\\ebb7"}),o.variableGroup=new o("variable-group",{fontCharacter:"\\ebb8"}),o.typeHierarchy=new o("type-hierarchy",{fontCharacter:"\\ebb9"}),o.typeHierarchySub=new o("type-hierarchy-sub",{fontCharacter:"\\ebba"}),o.typeHierarchySuper=new o("type-hierarchy-super",{fontCharacter:"\\ebbb"}),o.gitPullRequestCreate=new o("git-pull-request-create",{fontCharacter:"\\ebbc"}),o.runAbove=new o("run-above",{fontCharacter:"\\ebbd"}),o.runBelow=new o("run-below",{fontCharacter:"\\ebbe"}),o.notebookTemplate=new o("notebook-template",{fontCharacter:"\\ebbf"}),o.debugRerun=new o("debug-rerun",{fontCharacter:"\\ebc0"}),o.workspaceTrusted=new o("workspace-trusted",{fontCharacter:"\\ebc1"}),o.workspaceUntrusted=new o("workspace-untrusted",{fontCharacter:"\\ebc2"}),o.workspaceUnspecified=new o("workspace-unspecified",{fontCharacter:"\\ebc3"}),o.terminalCmd=new o("terminal-cmd",{fontCharacter:"\\ebc4"}),o.terminalDebian=new o("terminal-debian",{fontCharacter:"\\ebc5"}),o.terminalLinux=new o("terminal-linux",{fontCharacter:"\\ebc6"}),o.terminalPowershell=new o("terminal-powershell",{fontCharacter:"\\ebc7"}),o.terminalTmux=new o("terminal-tmux",{fontCharacter:"\\ebc8"}),o.terminalUbuntu=new o("terminal-ubuntu",{fontCharacter:"\\ebc9"}),o.terminalBash=new o("terminal-bash",{fontCharacter:"\\ebca"}),o.arrowSwap=new o("arrow-swap",{fontCharacter:"\\ebcb"}),o.copy=new o("copy",{fontCharacter:"\\ebcc"}),o.personAdd=new o("person-add",{fontCharacter:"\\ebcd"}),o.filterFilled=new o("filter-filled",{fontCharacter:"\\ebce"}),o.wand=new o("wand",{fontCharacter:"\\ebcf"}),o.debugLineByLine=new o("debug-line-by-line",{fontCharacter:"\\ebd0"}),o.inspect=new o("inspect",{fontCharacter:"\\ebd1"}),o.layers=new o("layers",{fontCharacter:"\\ebd2"}),o.layersDot=new o("layers-dot",{fontCharacter:"\\ebd3"}),o.layersActive=new o("layers-active",{fontCharacter:"\\ebd4"}),o.compass=new o("compass",{fontCharacter:"\\ebd5"}),o.compassDot=new o("compass-dot",{fontCharacter:"\\ebd6"}),o.compassActive=new o("compass-active",{fontCharacter:"\\ebd7"}),o.azure=new o("azure",{fontCharacter:"\\ebd8"}),o.issueDraft=new o("issue-draft",{fontCharacter:"\\ebd9"}),o.gitPullRequestClosed=new o("git-pull-request-closed",{fontCharacter:"\\ebda"}),o.gitPullRequestDraft=new o("git-pull-request-draft",{fontCharacter:"\\ebdb"}),o.debugAll=new o("debug-all",{fontCharacter:"\\ebdc"}),o.debugCoverage=new o("debug-coverage",{fontCharacter:"\\ebdd"}),o.runErrors=new o("run-errors",{fontCharacter:"\\ebde"}),o.folderLibrary=new o("folder-library",{fontCharacter:"\\ebdf"}),o.debugContinueSmall=new o("debug-continue-small",{fontCharacter:"\\ebe0"}),o.beakerStop=new o("beaker-stop",{fontCharacter:"\\ebe1"}),o.graphLine=new o("graph-line",{fontCharacter:"\\ebe2"}),o.graphScatter=new o("graph-scatter",{fontCharacter:"\\ebe3"}),o.pieChart=new o("pie-chart",{fontCharacter:"\\ebe4"}),o.bracket=new o("bracket",o.json.definition),o.bracketDot=new o("bracket-dot",{fontCharacter:"\\ebe5"}),o.bracketError=new o("bracket-error",{fontCharacter:"\\ebe6"}),o.lockSmall=new o("lock-small",{fontCharacter:"\\ebe7"}),o.azureDevops=new o("azure-devops",{fontCharacter:"\\ebe8"}),o.verifiedFilled=new o("verified-filled",{fontCharacter:"\\ebe9"})}(w||(w={}))},79881:function(Xt,Ze,p){"use strict";p.d(Ze,{B8:function(){return k},Cp:function(){return ce},F0:function(){return re},L6:function(){return I},VV:function(){return w},b1:function(){return o},dL:function(){return q},ri:function(){return A}});class O{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(_){setTimeout(()=>{throw _.stack?new Error(_.message+`
|
|
|
|
|
|
`+_.stack):_},0)}}emit(_){this.listeners.forEach(S=>{S(_)})}onUnexpectedError(_){this.unexpectedErrorHandler(_),this.emit(_)}onUnexpectedExternalError(_){this.unexpectedErrorHandler(_)}}const K=new O;function q(g){w(g)||K.onUnexpectedError(g)}function ce(g){w(g)||K.onUnexpectedExternalError(g)}function A(g){if(g instanceof Error){let{name:_,message:S}=g;const T=g.stacktrace||g.stack;return{$isError:!0,name:_,message:S,stack:T}}return g}const m="Canceled";function w(g){return g instanceof Error&&g.name===m&&g.message===m}function re(){const g=new Error(m);return g.name=g.message,g}function o(g){return g?new Error(`Illegal argument: ${g}`):new Error("Illegal argument")}function I(g){return g?new Error(`Illegal state: ${g}`):new Error("Illegal state")}class k extends Error{constructor(_){super("NotSupported"),_&&(this.message=_)}}},4348:function(Xt,Ze,p){"use strict";p.d(Ze,{D0:function(){return k},E7:function(){return g},K3:function(){return I},Q5:function(){return o},ZD:function(){return _},ju:function(){return A}});var O=p(79881),K=p(69323),q=p(34502),ce=p(95830),A;(function(S){S.None=()=>K.JT.None;function T(be){return(N,ue=null,J)=>{let v=!1,x;return x=be(Z=>{if(!v)return x?x.dispose():v=!0,N.call(ue,Z)},null,J),v&&x.dispose(),x}}S.once=T;function B(be,N){return L((ue,J=null,v)=>be(x=>ue.call(J,N(x)),null,v))}S.map=B;function se(be,N){return L((ue,J=null,v)=>be(x=>{N(x),ue.call(J,x)},null,v))}S.forEach=se;function z(be,N){return L((ue,J=null,v)=>be(x=>N(x)&&ue.call(J,x),null,v))}S.filter=z;function $(be){return be}S.signal=$;function G(...be){return(N,ue=null,J)=>(0,K.F8)(...be.map(v=>v(x=>N.call(ue,x),null,J)))}S.any=G;function X(be,N,ue){let J=ue;return B(be,v=>(J=N(J,v),J))}S.reduce=X;function L(be){let N;const ue=new o({onFirstListenerAdd(){N=be(ue.fire,ue)},onLastListenerRemove(){N.dispose()}});return ue.event}function D(be,N,ue=100,J=!1,v){let x,Z,me,Be=0;const Ue=new o({leakWarningThreshold:v,onFirstListenerAdd(){x=be(ze=>{Be++,Z=N(Z,ze),J&&!me&&(Ue.fire(Z),Z=void 0),clearTimeout(me),me=setTimeout(()=>{const qe=Z;Z=void 0,me=void 0,(!J||Be>1)&&Ue.fire(qe),Be=0},ue)})},onLastListenerRemove(){x.dispose()}});return Ue.event}S.debounce=D;function Y(be,N=(ue,J)=>ue===J){let ue=!0,J;return z(be,v=>{const x=ue||!N(v,J);return ue=!1,J=v,x})}S.latch=Y;function j(be,N){return[S.filter(be,N),S.filter(be,ue=>!N(ue))]}S.split=j;function xe(be,N=!1,ue=[]){let J=ue.slice(),v=be(me=>{J?J.push(me):Z.fire(me)});const x=()=>{J&&J.forEach(me=>Z.fire(me)),J=null},Z=new o({onFirstListenerAdd(){v||(v=be(me=>Z.fire(me)))},onFirstListenerDidAdd(){J&&(N?setTimeout(x):x())},onLastListenerRemove(){v&&v.dispose(),v=null}});return Z.event}S.buffer=xe;class Ce{constructor(N){this.event=N}map(N){return new Ce(B(this.event,N))}forEach(N){return new Ce(se(this.event,N))}filter(N){return new Ce(z(this.event,N))}reduce(N,ue){return new Ce(X(this.event,N,ue))}latch(){return new Ce(Y(this.event))}debounce(N,ue=100,J=!1,v){return new Ce(D(this.event,N,ue,J,v))}on(N,ue,J){return this.event(N,ue,J)}once(N,ue,J){return T(this.event)(N,ue,J)}}function Ee(be){return new Ce(be)}S.chain=Ee;function ge(be,N,ue=J=>J){const J=(...me)=>Z.fire(ue(...me)),v=()=>be.on(N,J),x=()=>be.removeListener(N,J),Z=new o({onFirstListenerAdd:v,onLastListenerRemove:x});return Z.event}S.fromNodeEventEmitter=ge;function de(be,N,ue=J=>J){const J=(...me)=>Z.fire(ue(...me)),v=()=>be.addEventListener(N,J),x=()=>be.removeEventListener(N,J),Z=new o({onFirstListenerAdd:v,onLastListenerRemove:x});return Z.event}S.fromDOMEventEmitter=de;function W(be){return new Promise(N=>T(be)(N))}S.toPromise=W})(A||(A={}));class m{constructor(T){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${T}_${m._idPool++}`}start(T){this._stopWatch=new ce.G(!0),this._listenerCount=T}stop(){if(this._stopWatch){const T=this._stopWatch.elapsed();this._elapsedOverall+=T,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${T.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}m._idPool=0;let w=-1;class re{constructor(T,B=Math.random().toString(18).slice(2,5)){this.customThreshold=T,this.name=B,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(T){let B=w;if(typeof this.customThreshold=="number"&&(B=this.customThreshold),B<=0||T<B)return;this._stacks||(this._stacks=new Map);const se=new Error().stack.split(`
|
|
|
`).slice(3).join(`
|
|
|
`),z=this._stacks.get(se)||0;if(this._stacks.set(se,z+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=B*.5;let $,G=0;for(const[X,L]of this._stacks)(!$||G<L)&&($=X,G=L);console.warn(`[${this.name}] potential listener LEAK detected, having ${T} listeners already. MOST frequent listener (${G}):`),console.warn($)}return()=>{const $=this._stacks.get(se)||0;this._stacks.set(se,$-1)}}}class o{constructor(T){var B;this._disposed=!1,this._options=T,this._leakageMon=w>0?new re(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((B=this._options)===null||B===void 0)&&B._profName?new m(this._options._profName):void 0}get event(){return this._event||(this._event=(T,B,se)=>{var z;this._listeners||(this._listeners=new q.S);const $=this._listeners.isEmpty();$&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const G=this._listeners.push(B?[T,B]:T);$&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,T,B);const X=(z=this._leakageMon)===null||z===void 0?void 0:z.check(this._listeners.size),L=(0,K.OF)(()=>{X&&X(),this._disposed||(G(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return se instanceof K.SL?se.add(L):Array.isArray(se)&&se.push(L),L}),this._event}fire(T){var B,se;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new q.S);for(let z of this._listeners)this._deliveryQueue.push([z,T]);for((B=this._perfMon)===null||B===void 0||B.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[z,$]=this._deliveryQueue.shift();try{typeof z=="function"?z.call(void 0,$):z[0].call(z[1],$)}catch(G){(0,O.dL)(G)}}(se=this._perfMon)===null||se===void 0||se.stop()}}dispose(){var T,B,se,z,$;this._disposed||(this._disposed=!0,(T=this._listeners)===null||T===void 0||T.clear(),(B=this._deliveryQueue)===null||B===void 0||B.clear(),(z=(se=this._options)===null||se===void 0?void 0:se.onLastListenerRemove)===null||z===void 0||z.call(se),($=this._leakageMon)===null||$===void 0||$.dispose())}}class I extends o{constructor(T){super(T),this._isPaused=0,this._eventQueue=new q.S,this._mergeFn=T==null?void 0:T.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const T=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(T))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(T){this._listeners&&(this._isPaused!==0?this._eventQueue.push(T):super.fire(T))}}class k extends I{constructor(T){var B;super(T),this._delay=(B=T.delay)!==null&&B!==void 0?B:100}fire(T){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(T)}}class g{constructor(){this.buffers=[]}wrapEvent(T){return(B,se,z)=>T($=>{const G=this.buffers[this.buffers.length-1];G?G.push(()=>B.call(se,$)):B.call(se,$)},void 0,z)}bufferEvents(T){const B=[];this.buffers.push(B);const se=T();return this.buffers.pop(),B.forEach(z=>z()),se}}class _{constructor(){this.listening=!1,this.inputEvent=A.None,this.inputEventListener=K.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(T){this.inputEvent=T,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=T(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(Xt,Ze,p){"use strict";p.d(Ze,{I:function(){return O}});function O(K){const q=this;let ce=!1,A;return function(){return ce||(ce=!0,A=K.apply(q,arguments)),A}}},88226:function(Xt,Ze,p){"use strict";p.d(Ze,{$:function(){return O}});var O;(function(K){function q(G){return G&&typeof G=="object"&&typeof G[Symbol.iterator]=="function"}K.is=q;const ce=Object.freeze([]);function A(){return ce}K.empty=A;function*m(G){yield G}K.single=m;function w(G){return G||ce}K.from=w;function re(G){return!G||G[Symbol.iterator]().next().done===!0}K.isEmpty=re;function o(G){return G[Symbol.iterator]().next().value}K.first=o;function I(G,X){for(const L of G)if(X(L))return!0;return!1}K.some=I;function k(G,X){for(const L of G)if(X(L))return L}K.find=k;function*g(G,X){for(const L of G)X(L)&&(yield L)}K.filter=g;function*_(G,X){let L=0;for(const D of G)yield X(D,L++)}K.map=_;function*S(...G){for(const X of G)for(const L of X)yield L}K.concat=S;function*T(G){for(const X of G)for(const L of X)yield L}K.concatNested=T;function B(G,X,L){let D=L;for(const Y of G)D=X(D,Y);return D}K.reduce=B;function*se(G,X,L=G.length){for(X<0&&(X+=G.length),L<0?L+=G.length:L>G.length&&(L=G.length);X<L;X++)yield G[X]}K.slice=se;function z(G,X=Number.POSITIVE_INFINITY){const L=[];if(X===0)return[L,G];const D=G[Symbol.iterator]();for(let Y=0;Y<X;Y++){const j=D.next();if(j.done)return[L,K.empty()];L.push(j.value)}return[L,{[Symbol.iterator](){return D}}]}K.consume=z;function $(G,X,L=(D,Y)=>D===Y){const D=G[Symbol.iterator](),Y=X[Symbol.iterator]();for(;;){const j=D.next(),xe=Y.next();if(j.done!==xe.done)return!1;if(j.done)return!0;if(!L(j.value,xe.value))return!1}}K.equals=$})(O||(O={}))},69323:function(Xt,Ze,p){"use strict";p.d(Ze,{B9:function(){return _},F8:function(){return S},JT:function(){return se},Jz:function(){return $},OF:function(){return T},SL:function(){return B},Wf:function(){return g},XK:function(){return z},dk:function(){return I}});var O=p(17845),K=p(88226);const q=!1;let ce=null;function A(G){ce=G}if(q){const G="__is_disposable_tracked__";A(new class{trackDisposable(X){const L=new Error("Potentially leaked disposable").stack;setTimeout(()=>{X[G]||console.log(L)},3e3)}setParent(X,L){if(X&&X!==se.None)try{X[G]=!0}catch(D){}}markAsDisposed(X){if(X&&X!==se.None)try{X[G]=!0}catch(L){}}markAsSingleton(X){}})}function m(G){return ce==null||ce.trackDisposable(G),G}function w(G){ce==null||ce.markAsDisposed(G)}function re(G,X){ce==null||ce.setParent(G,X)}function o(G,X){if(ce)for(const L of G)ce.setParent(L,X)}function I(G){return ce==null||ce.markAsSingleton(G),G}class k extends Error{constructor(X){super(`Encountered errors while disposing of store. Errors: [${X.join(", ")}]`),this.errors=X}}function g(G){return typeof G.dispose=="function"&&G.dispose.length===0}function _(G){if(K.$.is(G)){let X=[];for(const L of G)if(L)try{L.dispose()}catch(D){X.push(D)}if(X.length===1)throw X[0];if(X.length>1)throw new k(X);return Array.isArray(G)?[]:G}else if(G)return G.dispose(),G}function S(...G){const X=T(()=>_(G));return o(G,X),X}function T(G){const X=m({dispose:(0,O.I)(()=>{w(X),G()})});return X}class B{constructor(){this._toDispose=new Set,this._isDisposed=!1,m(this)}dispose(){this._isDisposed||(w(this),this._isDisposed=!0,this.clear())}clear(){try{_(this._toDispose.values())}finally{this._toDispose.clear()}}add(X){if(!X)return X;if(X===this)throw new Error("Cannot register a disposable on itself!");return re(X,this),this._isDisposed?B.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(X),X}}B.DISABLE_DISPOSED_WARNING=!1;class se{constructor(){this._store=new B,m(this),re(this._store,this)}dispose(){w(this),this._store.dispose()}_register(X){if(X===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(X)}}se.None=Object.freeze({dispose(){}});class z{constructor(){this._isDisposed=!1,m(this)}get value(){return this._isDisposed?void 0:this._value}set value(X){var L;this._isDisposed||X===this._value||((L=this._value)===null||L===void 0||L.dispose(),X&&re(X,this),this._value=X)}clear(){this.value=void 0}dispose(){var X;this._isDisposed=!0,w(this),(X=this._value)===null||X===void 0||X.dispose(),this._value=void 0}clearAndLeak(){const X=this._value;return this._value=void 0,X&&re(X,null),X}}class ${constructor(X){this.object=X}dispose(){}}},34502:function(Xt,Ze,p){"use strict";p.d(Ze,{S:function(){return K}});class O{constructor(ce){this.element=ce,this.next=O.Undefined,this.prev=O.Undefined}}O.Undefined=new O(void 0);class K{constructor(){this._first=O.Undefined,this._last=O.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===O.Undefined}clear(){let ce=this._first;for(;ce!==O.Undefined;){const A=ce.next;ce.prev=O.Undefined,ce.next=O.Undefined,ce=A}this._first=O.Undefined,this._last=O.Undefined,this._size=0}unshift(ce){return this._insert(ce,!1)}push(ce){return this._insert(ce,!0)}_insert(ce,A){const m=new O(ce);if(this._first===O.Undefined)this._first=m,this._last=m;else if(A){const re=this._last;this._last=m,m.prev=re,re.next=m}else{const re=this._first;this._first=m,m.next=re,re.prev=m}this._size+=1;let w=!1;return()=>{w||(w=!0,this._remove(m))}}shift(){if(this._first!==O.Undefined){const ce=this._first.element;return this._remove(this._first),ce}}pop(){if(this._last!==O.Undefined){const ce=this._last.element;return this._remove(this._last),ce}}_remove(ce){if(ce.prev!==O.Undefined&&ce.next!==O.Undefined){const A=ce.prev;A.next=ce.next,ce.next.prev=A}else ce.prev===O.Undefined&&ce.next===O.Undefined?(this._first=O.Undefined,this._last=O.Undefined):ce.next===O.Undefined?(this._last=this._last.prev,this._last.next=O.Undefined):ce.prev===O.Undefined&&(this._first=this._first.next,this._first.prev=O.Undefined);this._size-=1}*[Symbol.iterator](){let ce=this._first;for(;ce!==O.Undefined;)yield ce.element,ce=ce.next}}},23345:function(Xt,Ze,p){"use strict";p.d(Ze,{$L:function(){return D},ED:function(){return $},IJ:function(){return X},OS:function(){return Ce},WE:function(){return j},dz:function(){return G},gn:function(){return Y},li:function(){return T},r:function(){return de},tY:function(){return L},xS:function(){return xe}});var O=p(97671),K;const q="en";let ce=!1,A=!1,m=!1,w=!1,re=!1,o=!1,I=!1,k,g=null,_=null,S;const T=typeof self=="object"?self:typeof p.g=="object"?p.g:{};let B;typeof T.vscode!="undefined"&&typeof T.vscode.process!="undefined"?B=T.vscode.process:typeof O!="undefined"&&(B=O);const se=typeof((K=B==null?void 0:B.versions)===null||K===void 0?void 0:K.electron)=="string"&&B.type==="renderer";if(typeof navigator=="object"&&!se)S=navigator.userAgent,ce=S.indexOf("Windows")>=0,A=S.indexOf("Macintosh")>=0,I=(S.indexOf("Macintosh")>=0||S.indexOf("iPad")>=0||S.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,m=S.indexOf("Linux")>=0,o=!0,k=navigator.language,g=k;else if(typeof B=="object"){ce=B.platform==="win32",A=B.platform==="darwin",m=B.platform==="linux",w=m&&!!B.env.SNAP&&!!B.env.SNAP_REVISION,k=q,g=q;const W=B.env.VSCODE_NLS_CONFIG;if(W)try{const be=JSON.parse(W),N=be.availableLanguages["*"];k=be.locale,g=N||q,_=be._translationsConfigFile}catch(be){}re=!0}else console.error("Unable to resolve platform.");let z=0;A?z=1:ce?z=3:m&&(z=2);const $=ce,G=A,X=m,L=re,D=o,Y=I,j=S,xe=function(){if(T.setImmediate)return T.setImmediate.bind(T);if(typeof T.postMessage=="function"&&!T.importScripts){let N=[];T.addEventListener("message",J=>{if(J.data&&J.data.vscodeSetImmediateId)for(let v=0,x=N.length;v<x;v++){const Z=N[v];if(Z.id===J.data.vscodeSetImmediateId){N.splice(v,1),Z.callback();return}}});let ue=0;return J=>{const v=++ue;N.push({id:v,callback:J}),T.postMessage({vscodeSetImmediateId:v},"*")}}if(typeof(B==null?void 0:B.nextTick)=="function")return B.nextTick.bind(B);const be=Promise.resolve();return N=>be.then(N)}(),Ce=A||I?2:ce?1:3;let Ee=!0,ge=!1;function de(){if(!ge){ge=!0;const W=new Uint8Array(2);W[0]=1,W[1]=2,Ee=new Uint16Array(W.buffer)[0]===513}return Ee}},95830:function(Xt,Ze,p){"use strict";p.d(Ze,{G:function(){return q}});var O=p(23345);const K=O.li.performance&&typeof O.li.performance.now=="function";class q{constructor(A){this._highResolution=K&&A,this._startTime=this._now(),this._stopTime=-1}static create(A=!0){return new q(A)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?O.li.performance.now():Date.now()}}},82983:function(Xt,Ze,p){"use strict";p.d(Ze,{$i:function(){return Be},C8:function(){return gt},GF:function(){return k},HO:function(){return ue},IO:function(){return g},K7:function(){return mt},Kw:function(){return tn},LC:function(){return T},Mh:function(){return xe},P1:function(){return Ce},PJ:function(){return Rt},Qe:function(){return Ue},R1:function(){return I},RP:function(){return Z},S6:function(){return Ht},TT:function(){return $},Ut:function(){return v},V8:function(){return B},WU:function(){return q},YK:function(){return ge},YU:function(){return ce},ZG:function(){return Ee},ZH:function(){return W},ab:function(){return ze},c1:function(){return at},df:function(){return D},ec:function(){return A},fi:function(){return ut},fy:function(){return m},j3:function(){return w},j_:function(){return X},m5:function(){return O},mK:function(){return L},mr:function(){return _},oH:function(){return pe},oL:function(){return re},ok:function(){return j},ow:function(){return se},qq:function(){return Y},qu:function(){return z},rL:function(){return de},uS:function(){return Lt},un:function(){return o},uq:function(){return S},vH:function(){return N},xe:function(){return qe},zY:function(){return G}});function O(H){return!H||typeof H!="string"?!0:H.trim().length===0}const K=/{(\d+)}/g;function q(H,...R){return R.length===0?H:H.replace(K,function(P,fe){const oe=parseInt(fe,10);return isNaN(oe)||oe<0||oe>=R.length?P:R[oe]})}function ce(H){return H.replace(/[<>&]/g,function(R){switch(R){case"<":return"<";case">":return">";case"&":return"&";default:return R}})}function A(H){return H.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function m(H,R=" "){const P=w(H,R);return re(P,R)}function w(H,R){if(!H||!R)return H;const P=R.length;if(P===0||H.length===0)return H;let fe=0;for(;H.indexOf(R,fe)===fe;)fe=fe+P;return H.substring(fe)}function re(H,R){if(!H||!R)return H;const P=R.length,fe=H.length;if(P===0||fe===0)return H;let oe=fe,te=-1;for(;te=H.lastIndexOf(R,oe-1),!(te===-1||te+P!==oe);){if(te===0)return"";oe=te}return H.substring(0,oe)}function o(H){return H.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function I(H){return H.replace(/\*/g,"")}function k(H,R,P={}){if(!H)throw new Error("Cannot create regex from empty string");R||(H=A(H)),P.wholeWord&&(/\B/.test(H.charAt(0))||(H="\\b"+H),/\B/.test(H.charAt(H.length-1))||(H=H+"\\b"));let fe="";return P.global&&(fe+="g"),P.matchCase||(fe+="i"),P.multiline&&(fe+="m"),P.unicode&&(fe+="u"),new RegExp(H,fe)}function g(H){return H.source==="^"||H.source==="^$"||H.source==="$"||H.source==="^\\s*$"?!1:!!(H.exec("")&&H.lastIndex===0)}function _(H){return(H.global?"g":"")+(H.ignoreCase?"i":"")+(H.multiline?"m":"")+(H.unicode?"u":"")}function S(H){return H.split(/\r\n|\r|\n/)}function T(H){for(let R=0,P=H.length;R<P;R++){const fe=H.charCodeAt(R);if(fe!==32&&fe!==9)return R}return-1}function B(H,R=0,P=H.length){for(let fe=R;fe<P;fe++){const oe=H.charCodeAt(fe);if(oe!==32&&oe!==9)return H.substring(R,fe)}return H.substring(R,P)}function se(H,R=H.length-1){for(let P=R;P>=0;P--){const fe=H.charCodeAt(P);if(fe!==32&&fe!==9)return P}return-1}function z(H,R){return H<R?-1:H>R?1:0}function $(H,R,P=0,fe=H.length,oe=0,te=R.length){for(;P<fe&&oe<te;P++,oe++){let Me=H.charCodeAt(P),Fe=R.charCodeAt(oe);if(Me<Fe)return-1;if(Me>Fe)return 1}const Te=fe-P,je=te-oe;return Te<je?-1:Te>je?1:0}function G(H,R){return X(H,R,0,H.length,0,R.length)}function X(H,R,P=0,fe=H.length,oe=0,te=R.length){for(;P<fe&&oe<te;P++,oe++){let Me=H.charCodeAt(P),Fe=R.charCodeAt(oe);if(Me===Fe)continue;if(Me>=128||Fe>=128)return $(H.toLowerCase(),R.toLowerCase(),P,fe,oe,te);L(Me)&&(Me-=32),L(Fe)&&(Fe-=32);const Je=Me-Fe;if(Je!==0)return Je}const Te=fe-P,je=te-oe;return Te<je?-1:Te>je?1:0}function L(H){return H>=97&&H<=122}function D(H){return H>=65&&H<=90}function Y(H,R){return H.length===R.length&&X(H,R)===0}function j(H,R){const P=R.length;return R.length>H.length?!1:X(H,R,0,P)===0}function xe(H,R){let P,fe=Math.min(H.length,R.length);for(P=0;P<fe;P++)if(H.charCodeAt(P)!==R.charCodeAt(P))return P;return fe}function Ce(H,R){let P,fe=Math.min(H.length,R.length);const oe=H.length-1,te=R.length-1;for(P=0;P<fe;P++)if(H.charCodeAt(oe-P)!==R.charCodeAt(te-P))return P;return fe}function Ee(H){return 55296<=H&&H<=56319}function ge(H){return 56320<=H&&H<=57343}function de(H,R){return(H-55296<<10)+(R-56320)+65536}function W(H,R,P){const fe=H.charCodeAt(P);if(Ee(fe)&&P+1<R){const oe=H.charCodeAt(P+1);if(ge(oe))return de(fe,oe)}return fe}function be(H,R){const P=H.charCodeAt(R-1);if(ge(P)&&R>1){const fe=H.charCodeAt(R-2);if(Ee(fe))return de(fe,P)}return P}function N(H,R){const P=wt.getInstance(),fe=R,oe=H.length,te=W(H,oe,R);R+=te>=65536?2:1;let Te=P.getGraphemeBreakType(te);for(;R<oe;){const je=W(H,oe,R),Me=P.getGraphemeBreakType(je);if(ut(Te,Me))break;R+=je>=65536?2:1,Te=Me}return R-fe}function ue(H,R){const P=wt.getInstance(),fe=R,oe=be(H,R);R-=oe>=65536?2:1;let te=P.getGraphemeBreakType(oe);for(;R>0;){const Te=be(H,R),je=P.getGraphemeBreakType(Te);if(ut(je,te))break;R-=Te>=65536?2:1,te=je}return fe-R}const J=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function v(H){return J.test(H)}const x=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function Z(H){return x.test(H)}const me=/^[\t\n\r\x20-\x7E]*$/;function Be(H){return me.test(H)}const Ue=/[\u2028\u2029]/;function ze(H){return Ue.test(H)}function qe(H){for(let R=0,P=H.length;R<P;R++)if(mt(H.charCodeAt(R)))return!0;return!1}function mt(H){return H=+H,H>=11904&&H<=55215||H>=63744&&H<=64255||H>=65281&&H<=65374}function gt(H){return H>=127462&&H<=127487||H===8986||H===8987||H===9200||H===9203||H>=9728&&H<=10175||H===11088||H===11093||H>=127744&&H<=128591||H>=128640&&H<=128764||H>=128992&&H<=129003||H>=129280&&H<=129535||H>=129648&&H<=129750}const at="\uFEFF";function Lt(H){return!!(H&&H.length>0&&H.charCodeAt(0)===65279)}function tn(H,R=!1){return H?(R&&(H=H.replace(/\\./g,"")),H.toLowerCase()!==H):!1}function Rt(H){return H=H%(2*26),H<26?String.fromCharCode(97+H):String.fromCharCode(65+H-26)}function Ht(H){return wt.getInstance().getGraphemeBreakType(H)}function ut(H,R){return H===0?R!==5&&R!==7:H===2&&R===3?!1:H===4||H===2||H===3||R===4||R===2||R===3?!0:!(H===8&&(R===8||R===9||R===11||R===12)||(H===11||H===9)&&(R===9||R===10)||(H===12||H===10)&&R===10||R===5||R===13||R===7||H===1||H===13&&R===14||H===6&&R===6)}class wt{constructor(){this._data=he()}static getInstance(){return wt._INSTANCE||(wt._INSTANCE=new wt),wt._INSTANCE}getGraphemeBreakType(R){if(R<32)return R===10?3:R===13?2:4;if(R<127)return 0;const P=this._data,fe=P.length/3;let oe=1;for(;oe<=fe;)if(R<P[3*oe])oe=2*oe;else if(R>P[3*oe+1])oe=2*oe+1;else return P[3*oe+2];return 0}}wt._INSTANCE=null;function he(){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 pe(H,R){if(H===0)return 0;const P=le(H,R);if(P!==void 0)return P;const fe=be(R,H);return H-=Q(fe),H}function le(H,R){let P=be(R,H);for(H-=Q(P);Re(P)||P===65039||P===8419;){if(H===0)return;P=be(R,H),H-=Q(P)}if(gt(P)){if(H>=0){const fe=be(R,H);fe===8205&&(H-=Q(fe))}return H}}function Q(H){return H>=65536?2:1}function Re(H){return 127995<=H&&H<=127999}},72999:function(Xt,Ze,p){"use strict";p.d(Ze,{$E:function(){return T},$K:function(){return w},D8:function(){return g},HD:function(){return K},IU:function(){return B},Jp:function(){return re},Kn:function(){return q},cW:function(){return I},f6:function(){return se},hj:function(){return ce},jn:function(){return A},kJ:function(){return O},mf:function(){return k},o8:function(){return m},p_:function(){return o},vE:function(){return z}});function O($){return Array.isArray($)}function K($){return typeof $=="string"}function q($){return typeof $=="object"&&$!==null&&!Array.isArray($)&&!($ instanceof RegExp)&&!($ instanceof Date)}function ce($){return typeof $=="number"&&!isNaN($)}function A($){return $===!0||$===!1}function m($){return typeof $=="undefined"}function w($){return!re($)}function re($){return m($)||$===null}function o($,G){if(!$)throw new Error(G?`Unexpected type, expected '${G}'`:"Unexpected type")}function I($){if(re($))throw new Error("Assertion Failed: argument is undefined or null");return $}function k($){return typeof $=="function"}function g($,G){const X=Math.min($.length,G.length);for(let L=0;L<X;L++)_($[L],G[L])}function _($,G){if(K(G)){if(typeof $!==G)throw new Error(`argument does not match constraint: typeof ${G}`)}else if(k(G)){try{if($ instanceof G)return}catch(X){}if(!re($)&&$.constructor===G||G.length===1&&G.call(void 0,$)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function S($){let G=[],X=Object.getPrototypeOf($);for(;Object.prototype!==X;)G=G.concat(Object.getOwnPropertyNames(X)),X=Object.getPrototypeOf(X);return G}function T($){const G=[];for(const X of S($))typeof $[X]=="function"&&G.push(X);return G}function B($,G){const X=D=>function(){const Y=Array.prototype.slice.call(arguments,0);return G(D,Y)};let L={};for(const D of $)L[D]=X(D);return L}function se($){return $===null?void 0:$}function z($,G="Unreachable"){throw new Error(G)}},13268:function(Xt,Ze,p){"use strict";p.d(Ze,{N:function(){return K}});function O(q,ce){let A;return ce.length===0?A=q:A=q.replace(/\{(\d+)\}/g,function(m,w){const re=w[0];return typeof ce[re]!="undefined"?ce[re]:m}),A}function K(q,ce,...A){return O(ce,A)}},96236:function(Xt,Ze,p){"use strict";p.d(Ze,{BH:function(){return B},NZ:function(){return se},U8:function(){return z},co:function(){return T},eH:function(){return S},vr:function(){return _}});var O=p(75918),K=p(52615),q=p(4348),ce=p(88226),A=p(69323),m=p(34502),w=p(35884),re=p(90689),o=p(16925),I=p(49055),k=function($,G,X,L){var D=arguments.length,Y=D<3?G:L===null?L=Object.getOwnPropertyDescriptor(G,X):L,j;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Y=Reflect.decorate($,G,X,L);else for(var xe=$.length-1;xe>=0;xe--)(j=$[xe])&&(Y=(D<3?j(Y):D>3?j(G,X,Y):j(G,X))||Y);return D>3&&Y&&Object.defineProperty(G,X,Y),Y},g=function($,G){return function(X,L){G(X,L,$)}};function _($){return $.command!==void 0}class S{constructor(G){this.id=S._idPool++,this._debugName=G}}S._idPool=0,S.CommandPalette=new S("CommandPalette"),S.EditorContext=new S("EditorContext"),S.SimpleEditorContext=new S("SimpleEditorContext"),S.EditorContextCopy=new S("EditorContextCopy"),S.EditorContextPeek=new S("EditorContextPeek"),S.MenubarEditMenu=new S("MenubarEditMenu"),S.MenubarCopy=new S("MenubarCopy"),S.MenubarGoMenu=new S("MenubarGoMenu"),S.MenubarSelectionMenu=new S("MenubarSelectionMenu"),S.InlineCompletionsActions=new S("InlineCompletionsActions");const T=(0,o.yh)("menuService"),B=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new q.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:$=>$===S.CommandPalette}}addCommand($){return this.addCommands(ce.$.single($))}addCommands($){for(const G of $)this._commands.set(G.id,G);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,A.OF)(()=>{let G=!1;for(const X of $)G=this._commands.delete(X.id)||G;G&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand($){return this._commands.get($)}getCommands(){const $=new Map;return this._commands.forEach((G,X)=>$.set(X,G)),$}appendMenuItem($,G){return this.appendMenuItems(ce.$.single({id:$,item:G}))}appendMenuItems($){const G=new Set,X=new m.S;for(const{id:L,item:D}of $){let Y=this._menuItems.get(L);Y||(Y=new m.S,this._menuItems.set(L,Y)),X.push(Y.push(D)),G.add(L)}return this._onDidChangeMenu.fire(G),(0,A.OF)(()=>{if(X.size>0){for(let L of X)L();this._onDidChangeMenu.fire(G),X.clear()}})}getMenuItems($){let G;return this._menuItems.has($)?G=[...this._menuItems.get($)]:G=[],$===S.CommandPalette&&this._appendImplicitItems(G),G}_appendImplicitItems($){const G=new Set;for(const X of $)_(X)&&(G.add(X.command.id),X.alt&&G.add(X.alt.id));this._commands.forEach((X,L)=>{G.has(L)||$.push({command:X})})}};class se extends O.wY{constructor(G,X,L,D){super(`submenuitem.${G.submenu.id}`,typeof G.title=="string"?G.title:G.title.value,[],"submenu"),this.item=G,this._menuService=X,this._contextKeyService=L,this._options=D}get actions(){const G=[],X=this._menuService.createMenu(this.item.submenu,this._contextKeyService),L=X.getActions(this._options);X.dispose();for(const[,D]of L)D.length>0&&(G.push(...D),G.push(new O.Z0));return G.length&&G.pop(),G}}let z=class Pu{constructor(G,X,L,D,Y){var j,xe;if(this._commandService=Y,this.id=G.id,this.label=L!=null&&L.renderShortTitle&&G.shortTitle?typeof G.shortTitle=="string"?G.shortTitle:G.shortTitle.value:typeof G.title=="string"?G.title:G.title.value,this.tooltip=(xe=typeof G.tooltip=="string"?G.tooltip:(j=G.tooltip)===null||j===void 0?void 0:j.value)!==null&&xe!==void 0?xe:"",this.enabled=!G.precondition||D.contextMatchesRules(G.precondition),this.checked=void 0,G.toggled){const Ce=G.toggled.condition?G.toggled:{condition:G.toggled};this.checked=D.contextMatchesRules(Ce.condition),this.checked&&Ce.tooltip&&(this.tooltip=typeof Ce.tooltip=="string"?Ce.tooltip:Ce.tooltip.value),Ce.title&&(this.label=typeof Ce.title=="string"?Ce.title:Ce.title.value)}this.item=G,this.alt=X?new Pu(X,void 0,L,D,Y):void 0,this._options=L,I.kS.isThemeIcon(G.icon)&&(this.class=K.dT.asClassName(G.icon))}dispose(){}run(...G){var X,L;let D=[];return!((X=this._options)===null||X===void 0)&&X.arg&&(D=[...D,this._options.arg]),!((L=this._options)===null||L===void 0)&&L.shouldForwardArgs&&(D=[...D,...G]),this._commandService.executeCommand(this.id,...D)}};z=k([g(3,re.i6),g(4,w.H)],z)},35884:function(Xt,Ze,p){"use strict";p.d(Ze,{H:function(){return w},P:function(){return re}});var O=p(4348),K=p(88226),q=p(69323),ce=p(34502),A=p(72999),m=p(16925);const w=(0,m.yh)("commandService"),re=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new O.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(o,I){if(!o)throw new Error("invalid command");if(typeof o=="string"){if(!I)throw new Error("invalid command");return this.registerCommand({id:o,handler:I})}if(o.description){const T=[];for(let se of o.description.args)T.push(se.constraint);const B=o.handler;o.handler=function(se,...z){return(0,A.D8)(z,T),B(se,...z)}}const{id:k}=o;let g=this._commands.get(k);g||(g=new ce.S,this._commands.set(k,g));let _=g.unshift(o),S=(0,q.OF)(()=>{_();const T=this._commands.get(k);T!=null&&T.isEmpty()&&this._commands.delete(k)});return this._onDidRegisterCommand.fire(k),S}registerCommandAlias(o,I){return re.registerCommand(o,(k,...g)=>k.get(w).executeCommand(I,...g))}getCommand(o){const I=this._commands.get(o);if(!(!I||I.isEmpty()))return K.$.first(I)}getCommands(){const o=new Map;for(const I of this._commands.keys()){const k=this.getCommand(I);k&&o.set(I,k)}return o}};re.registerCommand("noop",()=>{})},90689:function(Xt,Ze,p){"use strict";p.d(Ze,{Ao:function(){return w},Eq:function(){return de},Fb:function(){return re},K8:function(){return N},i6:function(){return ge},uy:function(){return Ee}});var O=p(23345),K=p(82983),q=p(16925);let ce=O.WE||"";const A=new Map;A.set("false",!1),A.set("true",!0),A.set("isMac",O.dz),A.set("isLinux",O.IJ),A.set("isWindows",O.ED),A.set("isWeb",O.$L),A.set("isMacNative",O.dz&&!O.$L),A.set("isEdge",ce.indexOf("Edg/")>=0),A.set("isFirefox",ce.indexOf("Firefox")>=0),A.set("isChrome",ce.indexOf("Chrome")>=0),A.set("isSafari",ce.indexOf("Safari")>=0);const m=Object.prototype.hasOwnProperty;class w{static has(v){return g.create(v)}static equals(v,x){return _.create(v,x)}static regex(v,x){return D.create(v,x)}static not(v){return se.create(v)}static and(...v){return xe.create(v,null)}static or(...v){return Ce.create(v,null,!0)}static deserialize(v,x=!1){if(v)return this._deserializeOrExpression(v,x)}static _deserializeOrExpression(v,x){let Z=v.split("||");return Ce.create(Z.map(me=>this._deserializeAndExpression(me,x)),null,!0)}static _deserializeAndExpression(v,x){let Z=v.split("&&");return xe.create(Z.map(me=>this._deserializeOne(me,x)),null)}static _deserializeOne(v,x){if(v=v.trim(),v.indexOf("!=")>=0){let Z=v.split("!=");return B.create(Z[0].trim(),this._deserializeValue(Z[1],x))}if(v.indexOf("==")>=0){let Z=v.split("==");return _.create(Z[0].trim(),this._deserializeValue(Z[1],x))}if(v.indexOf("=~")>=0){let Z=v.split("=~");return D.create(Z[0].trim(),this._deserializeRegexValue(Z[1],x))}if(v.indexOf(" in ")>=0){let Z=v.split(" in ");return S.create(Z[0].trim(),Z[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(v)){const Z=v.split(">=");return G.create(Z[0].trim(),Z[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(v)){const Z=v.split(">");return $.create(Z[0].trim(),Z[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(v)){const Z=v.split("<=");return L.create(Z[0].trim(),Z[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(v)){const Z=v.split("<");return X.create(Z[0].trim(),Z[1].trim())}return/^\!\s*/.test(v)?se.create(v.substr(1).trim()):g.create(v)}static _deserializeValue(v,x){if(v=v.trim(),v==="true")return!0;if(v==="false")return!1;let Z=/^'([^']*)'$/.exec(v);return Z?Z[1].trim():v}static _deserializeRegexValue(v,x){if((0,K.m5)(v)){if(x)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let Z=v.indexOf("/"),me=v.lastIndexOf("/");if(Z===me||Z<0){if(x)throw new Error(`bad regexp-value '${v}', missing /-enclosure`);return console.warn(`bad regexp-value '${v}', missing /-enclosure`),null}let Be=v.slice(Z+1,me),Ue=v[me+1]==="i"?"i":"";try{return new RegExp(Be,Ue)}catch(ze){if(x)throw new Error(`bad regexp-value '${v}', parse error: ${ze}`);return console.warn(`bad regexp-value '${v}', parse error: ${ze}`),null}}}function re(J,v){const x=J?J.substituteConstants():void 0,Z=v?v.substituteConstants():void 0;return!x&&!Z?!0:!x||!Z?!1:x.equals(Z)}function o(J,v){return J.cmp(v)}class I{constructor(){this.type=0}cmp(v){return this.type-v.type}equals(v){return v.type===this.type}substituteConstants(){return this}evaluate(v){return!1}serialize(){return"false"}keys(){return[]}negate(){return k.INSTANCE}}I.INSTANCE=new I;class k{constructor(){this.type=1}cmp(v){return this.type-v.type}equals(v){return v.type===this.type}substituteConstants(){return this}evaluate(v){return!0}serialize(){return"true"}keys(){return[]}negate(){return I.INSTANCE}}k.INSTANCE=new k;class g{constructor(v,x){this.key=v,this.negated=x,this.type=2}static create(v,x=null){const Z=A.get(v);return typeof Z=="boolean"?Z?k.INSTANCE:I.INSTANCE:new g(v,x)}cmp(v){return v.type!==this.type?this.type-v.type:W(this.key,v.key)}equals(v){return v.type===this.type?this.key===v.key:!1}substituteConstants(){const v=A.get(this.key);return typeof v=="boolean"?v?k.INSTANCE:I.INSTANCE:this}evaluate(v){return!!v.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=se.create(this.key,this)),this.negated}}class _{constructor(v,x,Z){this.key=v,this.value=x,this.negated=Z,this.type=4}static create(v,x,Z=null){if(typeof x=="boolean")return x?g.create(v,Z):se.create(v,Z);const me=A.get(v);return typeof me=="boolean"?x===(me?"true":"false")?k.INSTANCE:I.INSTANCE:new _(v,x,Z)}cmp(v){return v.type!==this.type?this.type-v.type:be(this.key,this.value,v.key,v.value)}equals(v){return v.type===this.type?this.key===v.key&&this.value===v.value:!1}substituteConstants(){const v=A.get(this.key);if(typeof v=="boolean"){const x=v?"true":"false";return this.value===x?k.INSTANCE:I.INSTANCE}return this}evaluate(v){return v.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=B.create(this.key,this.value,this)),this.negated}}class S{constructor(v,x){this.key=v,this.valueKey=x,this.type=10,this.negated=null}static create(v,x){return new S(v,x)}cmp(v){return v.type!==this.type?this.type-v.type:be(this.key,this.valueKey,v.key,v.valueKey)}equals(v){return v.type===this.type?this.key===v.key&&this.valueKey===v.valueKey:!1}substituteConstants(){return this}evaluate(v){const x=v.getValue(this.valueKey),Z=v.getValue(this.key);return Array.isArray(x)?x.indexOf(Z)>=0:typeof Z=="string"&&typeof x=="object"&&x!==null?m.call(x,Z):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=T.create(this)),this.negated}}class T{constructor(v){this._actual=v,this.type=11}static create(v){return new T(v)}cmp(v){return v.type!==this.type?this.type-v.type:this._actual.cmp(v._actual)}equals(v){return v.type===this.type?this._actual.equals(v._actual):!1}substituteConstants(){return this}evaluate(v){return!this._actual.evaluate(v)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class B{constructor(v,x,Z){this.key=v,this.value=x,this.negated=Z,this.type=5}static create(v,x,Z=null){if(typeof x=="boolean")return x?se.create(v,Z):g.create(v,Z);const me=A.get(v);return typeof me=="boolean"?x===(me?"true":"false")?I.INSTANCE:k.INSTANCE:new B(v,x,Z)}cmp(v){return v.type!==this.type?this.type-v.type:be(this.key,this.value,v.key,v.value)}equals(v){return v.type===this.type?this.key===v.key&&this.value===v.value:!1}substituteConstants(){const v=A.get(this.key);if(typeof v=="boolean"){const x=v?"true":"false";return this.value===x?I.INSTANCE:k.INSTANCE}return this}evaluate(v){return v.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=_.create(this.key,this.value,this)),this.negated}}class se{constructor(v,x){this.key=v,this.negated=x,this.type=3}static create(v,x=null){const Z=A.get(v);return typeof Z=="boolean"?Z?I.INSTANCE:k.INSTANCE:new se(v,x)}cmp(v){return v.type!==this.type?this.type-v.type:W(this.key,v.key)}equals(v){return v.type===this.type?this.key===v.key:!1}substituteConstants(){const v=A.get(this.key);return typeof v=="boolean"?v?I.INSTANCE:k.INSTANCE:this}evaluate(v){return!v.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=g.create(this.key,this)),this.negated}}function z(J,v){if(typeof J=="string"){const x=parseFloat(J);isNaN(x)||(J=x)}return typeof J=="string"||typeof J=="number"?v(J):I.INSTANCE}class ${constructor(v,x,Z){this.key=v,this.value=x,this.negated=Z,this.type=12}static create(v,x,Z=null){return z(x,me=>new $(v,me,Z))}cmp(v){return v.type!==this.type?this.type-v.type:be(this.key,this.value,v.key,v.value)}equals(v){return v.type===this.type?this.key===v.key&&this.value===v.value:!1}substituteConstants(){return this}evaluate(v){return typeof this.value=="string"?!1:parseFloat(v.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=L.create(this.key,this.value,this)),this.negated}}class G{constructor(v,x,Z){this.key=v,this.value=x,this.negated=Z,this.type=13}static create(v,x,Z=null){return z(x,me=>new G(v,me,Z))}cmp(v){return v.type!==this.type?this.type-v.type:be(this.key,this.value,v.key,v.value)}equals(v){return v.type===this.type?this.key===v.key&&this.value===v.value:!1}substituteConstants(){return this}evaluate(v){return typeof this.value=="string"?!1:parseFloat(v.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=X.create(this.key,this.value,this)),this.negated}}class X{constructor(v,x,Z){this.key=v,this.value=x,this.negated=Z,this.type=14}static create(v,x,Z=null){return z(x,me=>new X(v,me,Z))}cmp(v){return v.type!==this.type?this.type-v.type:be(this.key,this.value,v.key,v.value)}equals(v){return v.type===this.type?this.key===v.key&&this.value===v.value:!1}substituteConstants(){return this}evaluate(v){return typeof this.value=="string"?!1:parseFloat(v.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=G.create(this.key,this.value,this)),this.negated}}class L{constructor(v,x,Z){this.key=v,this.value=x,this.negated=Z,this.type=15}static create(v,x,Z=null){return z(x,me=>new L(v,me,Z))}cmp(v){return v.type!==this.type?this.type-v.type:be(this.key,this.value,v.key,v.value)}equals(v){return v.type===this.type?this.key===v.key&&this.value===v.value:!1}substituteConstants(){return this}evaluate(v){return typeof this.value=="string"?!1:parseFloat(v.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=$.create(this.key,this.value,this)),this.negated}}class D{constructor(v,x){this.key=v,this.regexp=x,this.type=7,this.negated=null}static create(v,x){return new D(v,x)}cmp(v){if(v.type!==this.type)return this.type-v.type;if(this.key<v.key)return-1;if(this.key>v.key)return 1;const x=this.regexp?this.regexp.source:"",Z=v.regexp?v.regexp.source:"";return x<Z?-1:x>Z?1:0}equals(v){if(v.type===this.type){const x=this.regexp?this.regexp.source:"",Z=v.regexp?v.regexp.source:"";return this.key===v.key&&x===Z}return!1}substituteConstants(){return this}evaluate(v){let x=v.getValue(this.key);return this.regexp?this.regexp.test(x):!1}serialize(){const v=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${v}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Y.create(this)),this.negated}}class Y{constructor(v){this._actual=v,this.type=8}static create(v){return new Y(v)}cmp(v){return v.type!==this.type?this.type-v.type:this._actual.cmp(v._actual)}equals(v){return v.type===this.type?this._actual.equals(v._actual):!1}substituteConstants(){return this}evaluate(v){return!this._actual.evaluate(v)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function j(J){let v=null;for(let x=0,Z=J.length;x<Z;x++){const me=J[x].substituteConstants();if(J[x]!==me&&v===null){v=[];for(let Be=0;Be<x;Be++)v[Be]=J[Be]}v!==null&&(v[x]=me)}return v===null?J:v}class xe{constructor(v,x){this.expr=v,this.negated=x,this.type=6}static create(v,x){return xe._normalizeArr(v,x)}cmp(v){if(v.type!==this.type)return this.type-v.type;if(this.expr.length<v.expr.length)return-1;if(this.expr.length>v.expr.length)return 1;for(let x=0,Z=this.expr.length;x<Z;x++){const me=o(this.expr[x],v.expr[x]);if(me!==0)return me}return 0}equals(v){if(v.type===this.type){if(this.expr.length!==v.expr.length)return!1;for(let x=0,Z=this.expr.length;x<Z;x++)if(!this.expr[x].equals(v.expr[x]))return!1;return!0}return!1}substituteConstants(){const v=j(this.expr);return v===this.expr?this:xe.create(v,this.negated)}evaluate(v){for(let x=0,Z=this.expr.length;x<Z;x++)if(!this.expr[x].evaluate(v))return!1;return!0}static _normalizeArr(v,x){const Z=[];let me=!1;for(const Be of v)if(Be){if(Be.type===1){me=!0;continue}if(Be.type===0)return I.INSTANCE;if(Be.type===6){Z.push(...Be.expr);continue}Z.push(Be)}if(Z.length===0&&me)return k.INSTANCE;if(Z.length!==0){if(Z.length===1)return Z[0];Z.sort(o);for(let Be=1;Be<Z.length;Be++)Z[Be-1].equals(Z[Be])&&(Z.splice(Be,1),Be--);if(Z.length===1)return Z[0];for(;Z.length>1;){const Be=Z[Z.length-1];if(Be.type!==9)break;Z.pop();const Ue=Z.pop(),ze=Z.length===0,qe=Ce.create(Be.expr.map(mt=>xe.create([mt,Ue],null)),null,ze);qe&&(Z.push(qe),Z.sort(o))}return Z.length===1?Z[0]:new xe(Z,x)}}serialize(){return this.expr.map(v=>v.serialize()).join(" && ")}keys(){const v=[];for(let x of this.expr)v.push(...x.keys());return v}negate(){if(!this.negated){const v=[];for(let x of this.expr)v.push(x.negate());this.negated=Ce.create(v,this,!0)}return this.negated}}class Ce{constructor(v,x){this.expr=v,this.negated=x,this.type=9}static create(v,x,Z){return Ce._normalizeArr(v,x,Z)}cmp(v){if(v.type!==this.type)return this.type-v.type;if(this.expr.length<v.expr.length)return-1;if(this.expr.length>v.expr.length)return 1;for(let x=0,Z=this.expr.length;x<Z;x++){const me=o(this.expr[x],v.expr[x]);if(me!==0)return me}return 0}equals(v){if(v.type===this.type){if(this.expr.length!==v.expr.length)return!1;for(let x=0,Z=this.expr.length;x<Z;x++)if(!this.expr[x].equals(v.expr[x]))return!1;return!0}return!1}substituteConstants(){const v=j(this.expr);return v===this.expr?this:Ce.create(v,this.negated,!1)}evaluate(v){for(let x=0,Z=this.expr.length;x<Z;x++)if(this.expr[x].evaluate(v))return!0;return!1}static _normalizeArr(v,x,Z){let me=[],Be=!1;if(v){for(let Ue=0,ze=v.length;Ue<ze;Ue++){const qe=v[Ue];if(qe){if(qe.type===0){Be=!0;continue}if(qe.type===1)return k.INSTANCE;if(qe.type===9){me=me.concat(qe.expr);continue}me.push(qe)}}if(me.length===0&&Be)return I.INSTANCE;me.sort(o)}if(me.length!==0){if(me.length===1)return me[0];for(let Ue=1;Ue<me.length;Ue++)me[Ue-1].equals(me[Ue])&&(me.splice(Ue,1),Ue--);if(me.length===1)return me[0];if(Z){for(let Ue=0;Ue<me.length;Ue++)for(let ze=Ue+1;ze<me.length;ze++)N(me[Ue],me[ze])&&(me.splice(ze,1),ze--);if(me.length===1)return me[0]}return new Ce(me,x)}}serialize(){return this.expr.map(v=>v.serialize()).join(" || ")}keys(){const v=[];for(let x of this.expr)v.push(...x.keys());return v}negate(){if(!this.negated){let v=[];for(let x of this.expr)v.push(x.negate());for(;v.length>1;){const x=v.shift(),Z=v.shift(),me=[];for(const Ue of ue(x))for(const ze of ue(Z))me.push(xe.create([Ue,ze],null));const Be=v.length===0;v.unshift(Ce.create(me,null,Be))}this.negated=v[0]}return this.negated}}class Ee extends g{constructor(v,x,Z){super(v,null),this._defaultValue=x,typeof Z=="object"?Ee._info.push(Object.assign(Object.assign({},Z),{key:v})):Z!==!0&&Ee._info.push({key:v,description:Z,type:x!=null?typeof x:void 0})}static all(){return Ee._info.values()}bindTo(v){return v.createKey(this.key,this._defaultValue)}getValue(v){return v.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(v){return _.create(this.key,v)}}Ee._info=[];const ge=(0,q.yh)("contextKeyService"),de="setContext";function W(J,v){return J<v?-1:J>v?1:0}function be(J,v,x,Z){return J<x?-1:J>x?1:v<Z?-1:v>Z?1:0}function N(J,v){if(v.type===6&&J.type!==9&&J.type!==6){for(const me of v.expr)if(J.equals(me))return!0}const x=J.negate(),Z=ue(x).concat(ue(v));Z.sort(o);for(let me=0;me<Z.length;me++){const Ue=Z[me].negate();for(let ze=me+1;ze<Z.length;ze++){const qe=Z[ze];if(Ue.equals(qe))return!0}}return!1}function ue(J){return J.type===9?J.expr:[J]}},16925:function(Xt,Ze,p){"use strict";p.d(Ze,{I8:function(){return O},TG:function(){return K},jt:function(){return A},yh:function(){return ce}});var O;(function(m){m.serviceIds=new Map,m.DI_TARGET="$di$target",m.DI_DEPENDENCIES="$di$dependencies";function w(re){return re[m.DI_DEPENDENCIES]||[]}m.getServiceDependencies=w})(O||(O={}));const K=ce("instantiationService");function q(m,w,re,o){w[O.DI_TARGET]===w?w[O.DI_DEPENDENCIES].push({id:m,index:re,optional:o}):(w[O.DI_DEPENDENCIES]=[{id:m,index:re,optional:o}],w[O.DI_TARGET]=w)}function ce(m){if(O.serviceIds.has(m))return O.serviceIds.get(m);const w=function(re,o,I){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");q(w,re,I,!1)};return w.toString=()=>m,O.serviceIds.set(m,w),w}function A(m){return function(w,re,o){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");q(m,w,o,!0)}}},44650:function(Xt,Ze,p){"use strict";p.d(Ze,{B:function(){return ce}});var O=p(76068),K=p(72999);class q{constructor(){this.data=new Map}add(m,w){O.ok(K.HD(m)),O.ok(K.Kn(w)),O.ok(!this.data.has(m),"There is already an extension with this id"),this.data.set(m,w)}as(m){return this.data.get(m)||null}}const ce=new q},66213:function(Xt,Ze,p){"use strict";p.d(Ze,{e:function(){return O}});var O;(function(K){K.DARK="dark",K.LIGHT="light",K.HIGH_CONTRAST="hc"})(O||(O={}))},49055:function(Xt,Ze,p){"use strict";p.d(Ze,{EN:function(){return o},IP:function(){return g},Ic:function(){return T},XE:function(){return w},bB:function(){return B},kS:function(){return I},m6:function(){return k}});var O=p(52615),K=p(4348),q=p(69323),ce=p(16925),A=p(44650),m=p(66213);const w=(0,ce.yh)("themeService");var re;(function(se){function z($){return $&&typeof $=="object"&&typeof $.id=="string"}se.isThemeColor=z})(re||(re={}));function o(se){return{id:se}}var I;(function(se){function z(Y){return Y&&typeof Y=="object"&&typeof Y.id=="string"&&(typeof Y.color=="undefined"||re.isThemeColor(Y.color))}se.isThemeIcon=z;const $=new RegExp(`^\\$\\((${O.dT.iconNameExpression}(?:${O.dT.iconModifierExpression})?)\\)$`);function G(Y){const j=$.exec(Y);if(!j)return;let[,xe]=j;return{id:xe}}se.fromString=G;function X(Y,j){let xe=Y.id;const Ce=xe.lastIndexOf("~");return Ce!==-1&&(xe=xe.substring(0,Ce)),j&&(xe=`${xe}~${j}`),{id:xe}}se.modify=X;function L(Y,j){var xe,Ce;return Y.id===j.id&&((xe=Y.color)===null||xe===void 0?void 0:xe.id)===((Ce=j.color)===null||Ce===void 0?void 0:Ce.id)}se.isEqual=L;function D(Y,j){return{id:Y.id,color:j?o(j):void 0}}se.asThemeIcon=D,se.asClassNameArray=O.dT.asClassNameArray,se.asClassName=O.dT.asClassName,se.asCSSSelector=O.dT.asCSSSelector})(I||(I={}));function k(se){switch(se){case m.e.DARK:return"vs-dark";case m.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const g={ThemingContribution:"base.contributions.theming"};class _{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new K.Q5}onColorThemeChange(z){return this.themingParticipants.push(z),this.onThemingParticipantAddedEmitter.fire(z),(0,q.OF)(()=>{const $=this.themingParticipants.indexOf(z);this.themingParticipants.splice($,1)})}getThemingParticipants(){return this.themingParticipants}}let S=new _;A.B.add(g.ThemingContribution,S);function T(se){return S.onColorThemeChange(se)}class B extends q.JT{constructor(z){super(),this.themeService=z,this.theme=z.getColorTheme(),this._register(this.themeService.onDidColorThemeChange($=>this.onThemeChange($)))}onThemeChange(z){this.theme=z,this.updateStyles()}updateStyles(){}}},5630:function(Xt,Ze,p){"use strict";var O=p(72308),K=p(77321),q=p(49618),ce=p(52487),A=p(74416),m=p(92310),w=p.n(m),re=p(18929),o=p(59301),I=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],k=(0,o.forwardRef)(function(g,_){var S,T=g.prefixCls,B=T===void 0?"rc-checkbox":T,se=g.className,z=g.style,$=g.checked,G=g.disabled,X=g.defaultChecked,L=X===void 0?!1:X,D=g.type,Y=D===void 0?"checkbox":D,j=g.title,xe=g.onChange,Ce=(0,A.Z)(g,I),Ee=(0,o.useRef)(null),ge=(0,re.Z)(L,{value:$}),de=(0,ce.Z)(ge,2),W=de[0],be=de[1];(0,o.useImperativeHandle)(_,function(){return{focus:function(){var v;(v=Ee.current)===null||v===void 0||v.focus()},blur:function(){var v;(v=Ee.current)===null||v===void 0||v.blur()},input:Ee.current}});var N=w()(B,se,(S={},(0,q.Z)(S,"".concat(B,"-checked"),W),(0,q.Z)(S,"".concat(B,"-disabled"),G),S)),ue=function(v){G||("checked"in g||be(v.target.checked),xe==null||xe({target:(0,K.Z)((0,K.Z)({},g),{},{type:Y,checked:v.target.checked}),stopPropagation:function(){v.stopPropagation()},preventDefault:function(){v.preventDefault()},nativeEvent:v.nativeEvent}))};return o.createElement("span",{className:N,title:j,style:z},o.createElement("input",(0,O.Z)({},Ce,{className:"".concat(B,"-input"),ref:Ee,onChange:ue,disabled:G,checked:!!W,type:Y})),o.createElement("span",{className:"".concat(B,"-inner")}))});Ze.Z=k},31561:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return Y}});var O=p(72308),K=p(49618),q=p(52487),ce=p(74416),A=p(35593),m=p(92310),w=p.n(m),re=p(8654),o=p(59301),I=p(10228),k=p(16089),g=I.Z.ESC,_=I.Z.TAB;function S(j){var xe=j.visible,Ce=j.triggerRef,Ee=j.onVisibleChange,ge=j.autoFocus,de=j.overlayRef,W=o.useRef(!1),be=function(){if(xe){var v,x;(v=Ce.current)===null||v===void 0||(x=v.focus)===null||x===void 0||x.call(v),Ee==null||Ee(!1)}},N=function(){var v;return(v=de.current)!==null&&v!==void 0&&v.focus?(de.current.focus(),W.current=!0,!0):!1},ue=function(v){switch(v.keyCode){case g:be();break;case _:{var x=!1;W.current||(x=N()),x?v.preventDefault():be();break}}};o.useEffect(function(){return xe?(window.addEventListener("keydown",ue),ge&&(0,k.Z)(N,3),function(){window.removeEventListener("keydown",ue),W.current=!1}):function(){W.current=!1}},[xe])}var T=(0,o.forwardRef)(function(j,xe){var Ce=j.overlay,Ee=j.arrow,ge=j.prefixCls,de=(0,o.useMemo)(function(){var be;return typeof Ce=="function"?be=Ce():be=Ce,be},[Ce]),W=(0,re.sQ)(xe,de==null?void 0:de.ref);return o.createElement(o.Fragment,null,Ee&&o.createElement("div",{className:"".concat(ge,"-arrow")}),o.cloneElement(de,{ref:(0,re.Yr)(de)?W:void 0}))}),B=T,se={adjustX:1,adjustY:1},z=[0,0],$={topLeft:{points:["bl","tl"],overflow:se,offset:[0,-4],targetOffset:z},top:{points:["bc","tc"],overflow:se,offset:[0,-4],targetOffset:z},topRight:{points:["br","tr"],overflow:se,offset:[0,-4],targetOffset:z},bottomLeft:{points:["tl","bl"],overflow:se,offset:[0,4],targetOffset:z},bottom:{points:["tc","bc"],overflow:se,offset:[0,4],targetOffset:z},bottomRight:{points:["tr","br"],overflow:se,offset:[0,4],targetOffset:z}},G=$,X=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function L(j,xe){var Ce,Ee=j.arrow,ge=Ee===void 0?!1:Ee,de=j.prefixCls,W=de===void 0?"rc-dropdown":de,be=j.transitionName,N=j.animation,ue=j.align,J=j.placement,v=J===void 0?"bottomLeft":J,x=j.placements,Z=x===void 0?G:x,me=j.getPopupContainer,Be=j.showAction,Ue=j.hideAction,ze=j.overlayClassName,qe=j.overlayStyle,mt=j.visible,gt=j.trigger,at=gt===void 0?["hover"]:gt,Lt=j.autoFocus,tn=j.overlay,Rt=j.children,Ht=j.onVisibleChange,ut=(0,ce.Z)(j,X),wt=o.useState(),he=(0,q.Z)(wt,2),pe=he[0],le=he[1],Q="visible"in j?mt:pe,Re=o.useRef(null),H=o.useRef(null),R=o.useRef(null);o.useImperativeHandle(xe,function(){return Re.current});var P=function(Xe){le(Xe),Ht==null||Ht(Xe)};S({visible:Q,triggerRef:R,onVisibleChange:P,autoFocus:Lt,overlayRef:H});var fe=function(Xe){var Ve=j.onOverlayClick;le(!1),Ve&&Ve(Xe)},oe=function(){return o.createElement(B,{ref:H,overlay:tn,prefixCls:W,arrow:ge})},te=function(){return typeof tn=="function"?oe:oe()},Te=function(){var Xe=j.minOverlayWidthMatchTrigger,Ve=j.alignPoint;return"minOverlayWidthMatchTrigger"in j?Xe:!Ve},je=function(){var Xe=j.openClassName;return Xe!==void 0?Xe:"".concat(W,"-open")},Me=o.cloneElement(Rt,{className:w()((Ce=Rt.props)===null||Ce===void 0?void 0:Ce.className,Q&&je()),ref:(0,re.Yr)(Rt)?(0,re.sQ)(R,Rt.ref):void 0}),Fe=Ue;return!Fe&&at.indexOf("contextMenu")!==-1&&(Fe=["click"]),o.createElement(A.Z,(0,O.Z)({builtinPlacements:Z},ut,{prefixCls:W,ref:Re,popupClassName:w()(ze,(0,K.Z)({},"".concat(W,"-show-arrow"),ge)),popupStyle:qe,action:at,showAction:Be,hideAction:Fe,popupPlacement:v,popupAlign:ue,popupTransitionName:be,popupAnimation:N,popupVisible:Q,stretch:Te()?"minWidth":"",popup:te(),onPopupVisibleChange:P,onPopupClick:fe,getPopupContainer:me}),Me)}var D=o.forwardRef(L),Y=D},93681:function(Xt,Ze,p){"use strict";p.r(Ze),p.d(Ze,{BaseInput:function(){return I},default:function(){return $}});var O=p(72308),K=p(77321),q=p(49618),ce=p(62853),A=p(92310),m=p.n(A),w=p(59301),re=p(5643),o=function(X){var L,D,Y=X.inputElement,j=X.prefixCls,xe=X.prefix,Ce=X.suffix,Ee=X.addonBefore,ge=X.addonAfter,de=X.className,W=X.style,be=X.disabled,N=X.readOnly,ue=X.focused,J=X.triggerFocus,v=X.allowClear,x=X.value,Z=X.handleReset,me=X.hidden,Be=X.classes,Ue=X.classNames,ze=X.dataAttrs,qe=X.styles,mt=X.components,gt=(mt==null?void 0:mt.affixWrapper)||"span",at=(mt==null?void 0:mt.groupWrapper)||"span",Lt=(mt==null?void 0:mt.wrapper)||"span",tn=(mt==null?void 0:mt.groupAddon)||"span",Rt=(0,w.useRef)(null),Ht=function(oe){var te;(te=Rt.current)!==null&&te!==void 0&&te.contains(oe.target)&&(J==null||J())},ut=function(){var oe;if(!v)return null;var te=!be&&!N&&x,Te="".concat(j,"-clear-icon"),je=(0,ce.Z)(v)==="object"&&v!==null&&v!==void 0&&v.clearIcon?v.clearIcon:"\u2716";return w.createElement("span",{onClick:Z,onMouseDown:function(Fe){return Fe.preventDefault()},className:m()(Te,(oe={},(0,q.Z)(oe,"".concat(Te,"-hidden"),!te),(0,q.Z)(oe,"".concat(Te,"-has-suffix"),!!Ce),oe)),role:"button",tabIndex:-1},je)},wt=(0,w.cloneElement)(Y,{value:x,hidden:me,className:m()((L=Y.props)===null||L===void 0?void 0:L.className,!(0,re.X3)(X)&&!(0,re.He)(X)&&de)||null,style:(0,K.Z)((0,K.Z)({},(D=Y.props)===null||D===void 0?void 0:D.style),!(0,re.X3)(X)&&!(0,re.He)(X)?W:{})});if((0,re.X3)(X)){var he,pe="".concat(j,"-affix-wrapper"),le=m()(pe,(he={},(0,q.Z)(he,"".concat(pe,"-disabled"),be),(0,q.Z)(he,"".concat(pe,"-focused"),ue),(0,q.Z)(he,"".concat(pe,"-readonly"),N),(0,q.Z)(he,"".concat(pe,"-input-with-clear-btn"),Ce&&v&&x),he),!(0,re.He)(X)&&de,Be==null?void 0:Be.affixWrapper,Ue==null?void 0:Ue.affixWrapper),Q=(Ce||v)&&w.createElement("span",{className:m()("".concat(j,"-suffix"),Ue==null?void 0:Ue.suffix),style:qe==null?void 0:qe.suffix},ut(),Ce);wt=w.createElement(gt,(0,O.Z)({className:le,style:(0,K.Z)((0,K.Z)({},(0,re.He)(X)?void 0:W),qe==null?void 0:qe.affixWrapper),hidden:!(0,re.He)(X)&&me,onClick:Ht},ze==null?void 0:ze.affixWrapper,{ref:Rt}),xe&&w.createElement("span",{className:m()("".concat(j,"-prefix"),Ue==null?void 0:Ue.prefix),style:qe==null?void 0:qe.prefix},xe),(0,w.cloneElement)(Y,{value:x,hidden:null}),Q)}if((0,re.He)(X)){var Re="".concat(j,"-group"),H="".concat(Re,"-addon"),R=m()("".concat(j,"-wrapper"),Re,Be==null?void 0:Be.wrapper),P=m()("".concat(j,"-group-wrapper"),de,Be==null?void 0:Be.group);return w.createElement(at,{className:P,style:W,hidden:me},w.createElement(Lt,{className:R},Ee&&w.createElement(tn,{className:H},Ee),(0,w.cloneElement)(wt,{hidden:null}),ge&&w.createElement(tn,{className:H},ge)))}return wt},I=o,k=p(80702),g=p(52487),_=p(74416),S=p(18929),T=p(2738),B=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],se=(0,w.forwardRef)(function(G,X){var L=G.autoComplete,D=G.onChange,Y=G.onFocus,j=G.onBlur,xe=G.onPressEnter,Ce=G.onKeyDown,Ee=G.prefixCls,ge=Ee===void 0?"rc-input":Ee,de=G.disabled,W=G.htmlSize,be=G.className,N=G.maxLength,ue=G.suffix,J=G.showCount,v=G.type,x=v===void 0?"text":v,Z=G.classes,me=G.classNames,Be=G.styles,Ue=(0,_.Z)(G,B),ze=(0,S.Z)(G.defaultValue,{value:G.value}),qe=(0,g.Z)(ze,2),mt=qe[0],gt=qe[1],at=(0,w.useState)(!1),Lt=(0,g.Z)(at,2),tn=Lt[0],Rt=Lt[1],Ht=(0,w.useRef)(null),ut=function(P){Ht.current&&(0,re.nH)(Ht.current,P)};(0,w.useImperativeHandle)(X,function(){return{focus:ut,blur:function(){var P;(P=Ht.current)===null||P===void 0||P.blur()},setSelectionRange:function(P,fe,oe){var te;(te=Ht.current)===null||te===void 0||te.setSelectionRange(P,fe,oe)},select:function(){var P;(P=Ht.current)===null||P===void 0||P.select()},input:Ht.current}}),(0,w.useEffect)(function(){Rt(function(R){return R&&de?!1:R})},[de]);var wt=function(P){G.value===void 0&>(P.target.value),Ht.current&&(0,re.rJ)(Ht.current,P,D)},he=function(P){xe&&P.key==="Enter"&&xe(P),Ce==null||Ce(P)},pe=function(P){Rt(!0),Y==null||Y(P)},le=function(P){Rt(!1),j==null||j(P)},Q=function(P){gt(""),ut(),Ht.current&&(0,re.rJ)(Ht.current,P,D)},Re=function(){var P=(0,T.Z)(G,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return w.createElement("input",(0,O.Z)({autoComplete:L},P,{onChange:wt,onFocus:pe,onBlur:le,onKeyDown:he,className:m()(ge,(0,q.Z)({},"".concat(ge,"-disabled"),de),me==null?void 0:me.input),style:Be==null?void 0:Be.input,ref:Ht,size:W,type:x}))},H=function(){var P=Number(N)>0;if(ue||J){var fe=(0,re.D7)(mt),oe=(0,k.Z)(fe).length,te=(0,ce.Z)(J)==="object"?J.formatter({value:fe,count:oe,maxLength:N}):"".concat(oe).concat(P?" / ".concat(N):"");return w.createElement(w.Fragment,null,!!J&&w.createElement("span",{className:m()("".concat(ge,"-show-count-suffix"),(0,q.Z)({},"".concat(ge,"-show-count-has-suffix"),!!ue),me==null?void 0:me.count),style:(0,K.Z)({},Be==null?void 0:Be.count)},te),ue)}return null};return w.createElement(I,(0,O.Z)({},Ue,{prefixCls:ge,className:be,inputElement:Re(),handleReset:Q,value:(0,re.D7)(mt),focused:tn,triggerFocus:ut,suffix:H(),disabled:de,classes:Z,classNames:me,styles:Be}))}),z=se,$=z},5643:function(Xt,Ze,p){"use strict";p.d(Ze,{D7:function(){return A},He:function(){return O},X3:function(){return K},nH:function(){return ce},rJ:function(){return q}});function O(m){return!!(m.addonBefore||m.addonAfter)}function K(m){return!!(m.prefix||m.suffix||m.allowClear)}function q(m,w,re,o){if(re){var I=w;if(w.type==="click"){var k=m.cloneNode(!0);I=Object.create(w,{target:{value:k},currentTarget:{value:k}}),k.value="",re(I);return}if(o!==void 0){I=Object.create(w,{target:{value:m},currentTarget:{value:m}}),m.value=o,re(I);return}re(I)}}function ce(m,w){if(m){m.focus(w);var re=w||{},o=re.cursor;if(o){var I=m.value.length;switch(o){case"start":m.setSelectionRange(0,0);break;case"end":m.setSelectionRange(I,I);break;default:m.setSelectionRange(0,I)}}}}function A(m){return typeof m=="undefined"||m===null?"":String(m)}},15285:function(Xt,Ze,p){"use strict";p.d(Ze,{iz:function(){return In},ck:function(){return tt},BW:function(){return bn},sN:function(){return tt},Wd:function(){return Ct},ZP:function(){return ln},Xl:function(){return Ce}});var O=p(72308),K=p(49618),q=p(77321),ce=p(80702),A=p(52487),m=p(74416),w=p(92310),re=p.n(w),o=p(11780),I=p(18929),k=p(13697),g=p(48736),_=p(59301),S=p(4676),T=_.createContext(null);function B(ct,pt){return ct===void 0?null:"".concat(ct,"-").concat(pt)}function se(ct){var pt=_.useContext(T);return B(pt,ct)}var z=p(80547),$=["children","locked"],G=_.createContext(null);function X(ct,pt){var Tt=(0,q.Z)({},ct);return Object.keys(pt).forEach(function(Ft){var It=pt[Ft];It!==void 0&&(Tt[Ft]=It)}),Tt}function L(ct){var pt=ct.children,Tt=ct.locked,Ft=(0,m.Z)(ct,$),It=_.useContext(G),sn=(0,z.Z)(function(){return X(It,Ft)},[It,Ft],function($t,hn){return!Tt&&($t[0]!==hn[0]||!(0,k.Z)($t[1],hn[1],!0))});return _.createElement(G.Provider,{value:sn},pt)}var D=[],Y=_.createContext(null);function j(){return _.useContext(Y)}var xe=_.createContext(D);function Ce(ct){var pt=_.useContext(xe);return _.useMemo(function(){return ct!==void 0?[].concat((0,ce.Z)(pt),[ct]):pt},[pt,ct])}var Ee=_.createContext(null),ge=_.createContext({}),de=ge,W=p(29194);function be(ct){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,W.Z)(ct)){var Tt=ct.nodeName.toLowerCase(),Ft=["input","select","textarea","button"].includes(Tt)||ct.isContentEditable||Tt==="a"&&!!ct.getAttribute("href"),It=ct.getAttribute("tabindex"),sn=Number(It),$t=null;return It&&!Number.isNaN(sn)?$t=sn:Ft&&$t===null&&($t=0),Ft&&ct.disabled&&($t=null),$t!==null&&($t>=0||pt&&$t<0)}return!1}function N(ct){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Tt=(0,ce.Z)(ct.querySelectorAll("*")).filter(function(Ft){return be(Ft,pt)});return be(ct,pt)&&Tt.unshift(ct),Tt}var ue=null;function J(){ue=document.activeElement}function v(){ue=null}function x(){if(ue)try{ue.focus()}catch(ct){}}function Z(ct,pt){if(pt.keyCode===9){var Tt=N(ct),Ft=Tt[pt.shiftKey?0:Tt.length-1],It=Ft===document.activeElement||ct===document.activeElement;if(It){var sn=Tt[pt.shiftKey?Tt.length-1:0];sn.focus(),pt.preventDefault()}}}var me=p(10228),Be=p(16089),Ue=me.Z.LEFT,ze=me.Z.RIGHT,qe=me.Z.UP,mt=me.Z.DOWN,gt=me.Z.ENTER,at=me.Z.ESC,Lt=me.Z.HOME,tn=me.Z.END,Rt=[qe,mt,Ue,ze];function Ht(ct,pt,Tt,Ft){var It,sn,$t,hn,_n="prev",Dn="next",Yn="children",Zn="parent";if(ct==="inline"&&Ft===gt)return{inlineTrigger:!0};var dr=(It={},(0,K.Z)(It,qe,_n),(0,K.Z)(It,mt,Dn),It),En=(sn={},(0,K.Z)(sn,Ue,Tt?Dn:_n),(0,K.Z)(sn,ze,Tt?_n:Dn),(0,K.Z)(sn,mt,Yn),(0,K.Z)(sn,gt,Yn),sn),Tn=($t={},(0,K.Z)($t,qe,_n),(0,K.Z)($t,mt,Dn),(0,K.Z)($t,gt,Yn),(0,K.Z)($t,at,Zn),(0,K.Z)($t,Ue,Tt?Yn:Zn),(0,K.Z)($t,ze,Tt?Zn:Yn),$t),pr={inline:dr,horizontal:En,vertical:Tn,inlineSub:dr,horizontalSub:Tn,verticalSub:Tn},mr=(hn=pr["".concat(ct).concat(pt?"":"Sub")])===null||hn===void 0?void 0:hn[Ft];switch(mr){case _n:return{offset:-1,sibling:!0};case Dn:return{offset:1,sibling:!0};case Zn:return{offset:-1,sibling:!1};case Yn:return{offset:1,sibling:!1};default:return null}}function ut(ct){for(var pt=ct;pt;){if(pt.getAttribute("data-menu-list"))return pt;pt=pt.parentElement}return null}function wt(ct,pt){for(var Tt=ct||document.activeElement;Tt;){if(pt.has(Tt))return Tt;Tt=Tt.parentElement}return null}function he(ct,pt){var Tt=N(ct,!0);return Tt.filter(function(Ft){return pt.has(Ft)})}function pe(ct,pt,Tt){var Ft=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!ct)return null;var It=he(ct,pt),sn=It.length,$t=It.findIndex(function(hn){return Tt===hn});return Ft<0?$t===-1?$t=sn-1:$t-=1:Ft>0&&($t+=1),$t=($t+sn)%sn,It[$t]}var le=function(pt,Tt){var Ft=new Set,It=new Map,sn=new Map;return pt.forEach(function($t){var hn=document.querySelector("[data-menu-id='".concat(B(Tt,$t),"']"));hn&&(Ft.add(hn),sn.set(hn,$t),It.set($t,hn))}),{elements:Ft,key2element:It,element2key:sn}};function Q(ct,pt,Tt,Ft,It,sn,$t,hn,_n,Dn){var Yn=_.useRef(),Zn=_.useRef();Zn.current=pt;var dr=function(){Be.Z.cancel(Yn.current)};return _.useEffect(function(){return function(){dr()}},[]),function(En){var Tn=En.which;if([].concat(Rt,[gt,at,Lt,tn]).includes(Tn)){var pr=sn(),mr=le(pr,Ft),Ir=mr,sr=Ir.elements,ar=Ir.key2element,Cr=Ir.element2key,rr=ar.get(pt),Pr=wt(rr,sr),qr=Cr.get(Pr),qn=Ht(ct,$t(qr,!0).length===1,Tt,Tn);if(!qn&&Tn!==Lt&&Tn!==tn)return;(Rt.includes(Tn)||[Lt,tn].includes(Tn))&&En.preventDefault();var zn=function(fr){if(fr){var Yr=fr,Un=fr.querySelector("a");Un!=null&&Un.getAttribute("href")&&(Yr=Un);var On=Cr.get(fr);hn(On),dr(),Yn.current=(0,Be.Z)(function(){Zn.current===On&&Yr.focus()})}};if([Lt,tn].includes(Tn)||qn.sibling||!Pr){var dt;!Pr||ct==="inline"?dt=It.current:dt=ut(Pr);var Bn,ur=he(dt,sr);Tn===Lt?Bn=ur[0]:Tn===tn?Bn=ur[ur.length-1]:Bn=pe(dt,sr,Pr,qn.offset),zn(Bn)}else if(qn.inlineTrigger)_n(qr);else if(qn.offset>0)_n(qr,!0),dr(),Yn.current=(0,Be.Z)(function(){mr=le(pr,Ft);var Vr=Pr.getAttribute("aria-controls"),fr=document.getElementById(Vr),Yr=pe(fr,mr.elements);zn(Yr)},5);else if(qn.offset<0){var er=$t(qr,!0),Lr=er[er.length-2],zr=ar.get(Lr);_n(Lr,!1),zn(zr)}}Dn==null||Dn(En)}}function Re(ct){Promise.resolve().then(ct)}var H="__RC_UTIL_PATH_SPLIT__",R=function(pt){return pt.join(H)},P=function(pt){return pt.split(H)},fe="rc-menu-more";function oe(){var ct=_.useState({}),pt=(0,A.Z)(ct,2),Tt=pt[1],Ft=(0,_.useRef)(new Map),It=(0,_.useRef)(new Map),sn=_.useState([]),$t=(0,A.Z)(sn,2),hn=$t[0],_n=$t[1],Dn=(0,_.useRef)(0),Yn=(0,_.useRef)(!1),Zn=function(){Yn.current||Tt({})},dr=(0,_.useCallback)(function(ar,Cr){var rr=R(Cr);It.current.set(rr,ar),Ft.current.set(ar,rr),Dn.current+=1;var Pr=Dn.current;Re(function(){Pr===Dn.current&&Zn()})},[]),En=(0,_.useCallback)(function(ar,Cr){var rr=R(Cr);It.current.delete(rr),Ft.current.delete(ar)},[]),Tn=(0,_.useCallback)(function(ar){_n(ar)},[]),pr=(0,_.useCallback)(function(ar,Cr){var rr=Ft.current.get(ar)||"",Pr=P(rr);return Cr&&hn.includes(Pr[0])&&Pr.unshift(fe),Pr},[hn]),mr=(0,_.useCallback)(function(ar,Cr){return ar.some(function(rr){var Pr=pr(rr,!0);return Pr.includes(Cr)})},[pr]),Ir=function(){var Cr=(0,ce.Z)(Ft.current.keys());return hn.length&&Cr.push(fe),Cr},sr=(0,_.useCallback)(function(ar){var Cr="".concat(Ft.current.get(ar)).concat(H),rr=new Set;return(0,ce.Z)(It.current.keys()).forEach(function(Pr){Pr.startsWith(Cr)&&rr.add(It.current.get(Pr))}),rr},[]);return _.useEffect(function(){return function(){Yn.current=!0}},[]),{registerPath:dr,unregisterPath:En,refreshOverflowKeys:Tn,isSubPathKey:mr,getKeyPath:pr,getKeys:Ir,getSubPathKeys:sr}}function te(ct){var pt=_.useRef(ct);pt.current=ct;var Tt=_.useCallback(function(){for(var Ft,It=arguments.length,sn=new Array(It),$t=0;$t<It;$t++)sn[$t]=arguments[$t];return(Ft=pt.current)===null||Ft===void 0?void 0:Ft.call.apply(Ft,[pt].concat(sn))},[]);return ct?Tt:void 0}var Te=Math.random().toFixed(5).toString().slice(2),je=0;function Me(ct){var pt=(0,I.Z)(ct,{value:ct}),Tt=(0,A.Z)(pt,2),Ft=Tt[0],It=Tt[1];return _.useEffect(function(){je+=1;var sn="".concat(Te,"-").concat(je);It("rc-menu-uuid-".concat(sn))},[]),Ft}var Fe=p(96949),Je=p(55090),Xe=p(77205),Ve=p(38793),xt=p(2738),Dt=p(8654);function vt(ct,pt,Tt,Ft){var It=_.useContext(G),sn=It.activeKey,$t=It.onActive,hn=It.onInactive,_n={active:sn===ct};return pt||(_n.onMouseEnter=function(Dn){Tt==null||Tt({key:ct,domEvent:Dn}),$t(ct)},_n.onMouseLeave=function(Dn){Ft==null||Ft({key:ct,domEvent:Dn}),hn(ct)}),_n}function Bt(ct){var pt=_.useContext(G),Tt=pt.mode,Ft=pt.rtl,It=pt.inlineIndent;if(Tt!=="inline")return null;var sn=ct;return Ft?{paddingRight:sn*It}:{paddingLeft:sn*It}}function Zt(ct){var pt=ct.icon,Tt=ct.props,Ft=ct.children,It;return pt===null||pt===!1?null:(typeof pt=="function"?It=_.createElement(pt,(0,q.Z)({},Tt)):typeof pt!="boolean"&&(It=pt),It||Ft||null)}var C=["item"];function M(ct){var pt=ct.item,Tt=(0,m.Z)(ct,C);return Object.defineProperty(Tt,"item",{get:function(){return(0,g.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),pt}}),Tt}var yt=["title","attribute","elementRef"],ye=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Ne=["active"],Sn=function(ct){(0,Xe.Z)(Tt,ct);var pt=(0,Ve.Z)(Tt);function Tt(){return(0,Fe.Z)(this,Tt),pt.apply(this,arguments)}return(0,Je.Z)(Tt,[{key:"render",value:function(){var It=this.props,sn=It.title,$t=It.attribute,hn=It.elementRef,_n=(0,m.Z)(It,yt),Dn=(0,xt.Z)(_n,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,g.ZP)(!$t,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),_.createElement(o.Z.Item,(0,O.Z)({},$t,{title:typeof sn=="string"?sn:void 0},Dn,{ref:hn}))}}]),Tt}(_.Component),it=_.forwardRef(function(ct,pt){var Tt,Ft=ct.style,It=ct.className,sn=ct.eventKey,$t=ct.warnKey,hn=ct.disabled,_n=ct.itemIcon,Dn=ct.children,Yn=ct.role,Zn=ct.onMouseEnter,dr=ct.onMouseLeave,En=ct.onClick,Tn=ct.onKeyDown,pr=ct.onFocus,mr=(0,m.Z)(ct,ye),Ir=se(sn),sr=_.useContext(G),ar=sr.prefixCls,Cr=sr.onItemClick,rr=sr.disabled,Pr=sr.overflowDisabled,qr=sr.itemIcon,qn=sr.selectedKeys,zn=sr.onActive,dt=_.useContext(de),Bn=dt._internalRenderMenuItem,ur="".concat(ar,"-item"),er=_.useRef(),Lr=_.useRef(),zr=rr||hn,Vr=(0,Dt.x1)(pt,Lr),fr=Ce(sn),Yr=function(si){return{key:sn,keyPath:(0,ce.Z)(fr).reverse(),item:er.current,domEvent:si}},Un=_n||qr,On=vt(sn,zr,Zn,dr),Er=On.active,kr=(0,m.Z)(On,Ne),ei=qn.includes(sn),Ii=Bt(fr.length),jn=function(si){if(!zr){var Ci=Yr(si);En==null||En(M(Ci)),Cr(Ci)}},ii=function(si){if(Tn==null||Tn(si),si.which===me.Z.ENTER){var Ci=Yr(si);En==null||En(M(Ci)),Cr(Ci)}},Xr=function(si){zn(sn),pr==null||pr(si)},fi={};ct.role==="option"&&(fi["aria-selected"]=ei);var Li=_.createElement(Sn,(0,O.Z)({ref:er,elementRef:Vr,role:Yn===null?"none":Yn||"menuitem",tabIndex:hn?null:-1,"data-menu-id":Pr&&Ir?null:Ir},mr,kr,fi,{component:"li","aria-disabled":hn,style:(0,q.Z)((0,q.Z)({},Ii),Ft),className:re()(ur,(Tt={},(0,K.Z)(Tt,"".concat(ur,"-active"),Er),(0,K.Z)(Tt,"".concat(ur,"-selected"),ei),(0,K.Z)(Tt,"".concat(ur,"-disabled"),zr),Tt),It),onClick:jn,onKeyDown:ii,onFocus:Xr}),Dn,_.createElement(Zt,{props:(0,q.Z)((0,q.Z)({},ct),{},{isSelected:ei}),icon:Un}));return Bn&&(Li=Bn(Li,ct,{selected:ei})),Li});function nt(ct,pt){var Tt=ct.eventKey,Ft=j(),It=Ce(Tt);return _.useEffect(function(){if(Ft)return Ft.registerPath(Tt,It),function(){Ft.unregisterPath(Tt,It)}},[It]),Ft?null:_.createElement(it,(0,O.Z)({},ct,{ref:pt}))}var tt=_.forwardRef(nt),we=["className","children"],Oe=function(pt,Tt){var Ft=pt.className,It=pt.children,sn=(0,m.Z)(pt,we),$t=_.useContext(G),hn=$t.prefixCls,_n=$t.mode,Dn=$t.rtl;return _.createElement("ul",(0,O.Z)({className:re()(hn,Dn&&"".concat(hn,"-rtl"),"".concat(hn,"-sub"),"".concat(hn,"-").concat(_n==="inline"?"inline":"vertical"),Ft),role:"menu"},sn,{"data-menu-list":!0,ref:Tt}),It)},Le=_.forwardRef(Oe);Le.displayName="SubMenuList";var rt=Le,_e=p(11592);function Qt(ct,pt){return(0,_e.Z)(ct).map(function(Tt,Ft){if(_.isValidElement(Tt)){var It,sn,$t=Tt.key,hn=(It=(sn=Tt.props)===null||sn===void 0?void 0:sn.eventKey)!==null&&It!==void 0?It:$t,_n=hn==null;_n&&(hn="tmp_key-".concat([].concat((0,ce.Z)(pt),[Ft]).join("-")));var Dn={key:hn,eventKey:hn};return _.cloneElement(Tt,Dn)}return Tt})}var He=p(35593),xn={adjustX:1,adjustY:1},Ln={topLeft:{points:["bl","tl"],overflow:xn},topRight:{points:["br","tr"],overflow:xn},bottomLeft:{points:["tl","bl"],overflow:xn},bottomRight:{points:["tr","br"],overflow:xn},leftTop:{points:["tr","tl"],overflow:xn},leftBottom:{points:["br","bl"],overflow:xn},rightTop:{points:["tl","tr"],overflow:xn},rightBottom:{points:["bl","br"],overflow:xn}},_r={topLeft:{points:["bl","tl"],overflow:xn},topRight:{points:["br","tr"],overflow:xn},bottomLeft:{points:["tl","bl"],overflow:xn},bottomRight:{points:["tr","br"],overflow:xn},rightTop:{points:["tr","tl"],overflow:xn},rightBottom:{points:["br","bl"],overflow:xn},leftTop:{points:["tl","tr"],overflow:xn},leftBottom:{points:["bl","br"],overflow:xn}},Hn=null;function yn(ct,pt,Tt){if(pt)return pt;if(Tt)return Tt[ct]||Tt.other}var wn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Ye(ct){var pt=ct.prefixCls,Tt=ct.visible,Ft=ct.children,It=ct.popup,sn=ct.popupStyle,$t=ct.popupClassName,hn=ct.popupOffset,_n=ct.disabled,Dn=ct.mode,Yn=ct.onVisibleChange,Zn=_.useContext(G),dr=Zn.getPopupContainer,En=Zn.rtl,Tn=Zn.subMenuOpenDelay,pr=Zn.subMenuCloseDelay,mr=Zn.builtinPlacements,Ir=Zn.triggerSubMenuAction,sr=Zn.forceSubMenuRender,ar=Zn.rootClassName,Cr=Zn.motion,rr=Zn.defaultMotions,Pr=_.useState(!1),qr=(0,A.Z)(Pr,2),qn=qr[0],zn=qr[1],dt=En?(0,q.Z)((0,q.Z)({},_r),mr):(0,q.Z)((0,q.Z)({},Ln),mr),Bn=wn[Dn],ur=yn(Dn,Cr,rr),er=_.useRef(ur);Dn!=="inline"&&(er.current=ur);var Lr=(0,q.Z)((0,q.Z)({},er.current),{},{leavedClassName:"".concat(pt,"-hidden"),removeOnLeave:!1,motionAppear:!0}),zr=_.useRef();return _.useEffect(function(){return zr.current=(0,Be.Z)(function(){zn(Tt)}),function(){Be.Z.cancel(zr.current)}},[Tt]),_.createElement(He.Z,{prefixCls:pt,popupClassName:re()("".concat(pt,"-popup"),(0,K.Z)({},"".concat(pt,"-rtl"),En),$t,ar),stretch:Dn==="horizontal"?"minWidth":null,getPopupContainer:dr,builtinPlacements:dt,popupPlacement:Bn,popupVisible:qn,popup:It,popupStyle:sn,popupAlign:hn&&{offset:hn},action:_n?[]:[Ir],mouseEnterDelay:Tn,mouseLeaveDelay:pr,onPopupVisibleChange:Yn,forceRender:sr,popupMotion:Lr,fresh:!0},Ft)}var Ot=p(77900);function Ut(ct){var pt=ct.id,Tt=ct.open,Ft=ct.keyPath,It=ct.children,sn="inline",$t=_.useContext(G),hn=$t.prefixCls,_n=$t.forceSubMenuRender,Dn=$t.motion,Yn=$t.defaultMotions,Zn=$t.mode,dr=_.useRef(!1);dr.current=Zn===sn;var En=_.useState(!dr.current),Tn=(0,A.Z)(En,2),pr=Tn[0],mr=Tn[1],Ir=dr.current?Tt:!1;_.useEffect(function(){dr.current&&mr(!1)},[Zn]);var sr=(0,q.Z)({},yn(sn,Dn,Yn));Ft.length>1&&(sr.motionAppear=!1);var ar=sr.onVisibleChanged;return sr.onVisibleChanged=function(Cr){return!dr.current&&!Cr&&mr(!0),ar==null?void 0:ar(Cr)},pr?null:_.createElement(L,{mode:sn,locked:!dr.current},_.createElement(Ot.default,(0,O.Z)({visible:Ir},sr,{forceRender:_n,removeOnLeave:!1,leavedClassName:"".concat(hn,"-hidden")}),function(Cr){var rr=Cr.className,Pr=Cr.style;return _.createElement(rt,{id:pt,className:rr,style:Pr},It)}))}var Ke=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Pe=["active"],_t=function(pt){var Tt,Ft=pt.style,It=pt.className,sn=pt.title,$t=pt.eventKey,hn=pt.warnKey,_n=pt.disabled,Dn=pt.internalPopupClose,Yn=pt.children,Zn=pt.itemIcon,dr=pt.expandIcon,En=pt.popupClassName,Tn=pt.popupOffset,pr=pt.popupStyle,mr=pt.onClick,Ir=pt.onMouseEnter,sr=pt.onMouseLeave,ar=pt.onTitleClick,Cr=pt.onTitleMouseEnter,rr=pt.onTitleMouseLeave,Pr=(0,m.Z)(pt,Ke),qr=se($t),qn=_.useContext(G),zn=qn.prefixCls,dt=qn.mode,Bn=qn.openKeys,ur=qn.disabled,er=qn.overflowDisabled,Lr=qn.activeKey,zr=qn.selectedKeys,Vr=qn.itemIcon,fr=qn.expandIcon,Yr=qn.onItemClick,Un=qn.onOpenChange,On=qn.onActive,Er=_.useContext(de),kr=Er._internalRenderSubMenuItem,ei=_.useContext(Ee),Ii=ei.isSubPathKey,jn=Ce(),ii="".concat(zn,"-submenu"),Xr=ur||_n,fi=_.useRef(),Li=_.useRef(),yi=Zn!=null?Zn:Vr,si=dr!=null?dr:fr,Ci=Bn.includes($t),ui=!er&&Ci,$i=Ii(zr,$t),Tr=vt($t,Xr,Cr,rr),Xi=Tr.active,Hi=(0,m.Z)(Tr,Pe),Qi=_.useState(!1),jr=(0,A.Z)(Qi,2),fs=jr[0],vs=jr[1],cs=function(Ti){Xr||vs(Ti)},Br=function(Ti){cs(!0),Ir==null||Ir({key:$t,domEvent:Ti})},hs=function(Ti){cs(!1),sr==null||sr({key:$t,domEvent:Ti})},Ts=_.useMemo(function(){return Xi||(dt!=="inline"?fs||Ii([Lr],$t):!1)},[dt,Xi,Lr,fs,$t,Ii]),Nn=Bt(jn.length),Mi=function(Ti){Xr||(ar==null||ar({key:$t,domEvent:Ti}),dt==="inline"&&Un($t,!Ci))},ls=te(function(Ri){mr==null||mr(M(Ri)),Yr(Ri)}),gr=function(Ti){dt!=="inline"&&Un($t,Ti)},xr=function(){On($t)},cr=qr&&"".concat(qr,"-popup"),Xn=_.createElement("div",(0,O.Z)({role:"menuitem",style:Nn,className:"".concat(ii,"-title"),tabIndex:Xr?null:-1,ref:fi,title:typeof sn=="string"?sn:null,"data-menu-id":er&&qr?null:qr,"aria-expanded":ui,"aria-haspopup":!0,"aria-controls":cr,"aria-disabled":Xr,onClick:Mi,onFocus:xr},Hi),sn,_.createElement(Zt,{icon:dt!=="horizontal"?si:void 0,props:(0,q.Z)((0,q.Z)({},pt),{},{isOpen:ui,isSubMenu:!0})},_.createElement("i",{className:"".concat(ii,"-arrow")}))),Ur=_.useRef(dt);if(dt!=="inline"&&jn.length>1?Ur.current="vertical":Ur.current=dt,!er){var ai=Ur.current;Xn=_.createElement(Ye,{mode:ai,prefixCls:ii,visible:!Dn&&ui&&dt!=="inline",popupClassName:En,popupOffset:Tn,popupStyle:pr,popup:_.createElement(L,{mode:ai==="horizontal"?"vertical":ai},_.createElement(rt,{id:cr,ref:Li},Yn)),disabled:Xr,onVisibleChange:gr},Xn)}var Zi=_.createElement(o.Z.Item,(0,O.Z)({role:"none"},Pr,{component:"li",style:Ft,className:re()(ii,"".concat(ii,"-").concat(dt),It,(Tt={},(0,K.Z)(Tt,"".concat(ii,"-open"),ui),(0,K.Z)(Tt,"".concat(ii,"-active"),Ts),(0,K.Z)(Tt,"".concat(ii,"-selected"),$i),(0,K.Z)(Tt,"".concat(ii,"-disabled"),Xr),Tt)),onMouseEnter:Br,onMouseLeave:hs}),Xn,!er&&_.createElement(Ut,{id:cr,open:ui,keyPath:jn},Yn));return kr&&(Zi=kr(Zi,pt,{selected:$i,active:Ts,open:ui,disabled:Xr})),_.createElement(L,{onItemClick:ls,mode:dt==="horizontal"?"vertical":dt,itemIcon:yi,expandIcon:si},Zi)};function Ct(ct){var pt=ct.eventKey,Tt=ct.children,Ft=Ce(pt),It=Qt(Tt,Ft),sn=j();_.useEffect(function(){if(sn)return sn.registerPath(pt,Ft),function(){sn.unregisterPath(pt,Ft)}},[Ft]);var $t;return sn?$t=It:$t=_.createElement(_t,ct,It),_.createElement(xe.Provider,{value:Ft},$t)}var nn=p(62853),Vt=["className","title","eventKey","children"],dn=["children"],rn=function(pt){var Tt=pt.className,Ft=pt.title,It=pt.eventKey,sn=pt.children,$t=(0,m.Z)(pt,Vt),hn=_.useContext(G),_n=hn.prefixCls,Dn="".concat(_n,"-item-group");return _.createElement("li",(0,O.Z)({role:"presentation"},$t,{onClick:function(Zn){return Zn.stopPropagation()},className:re()(Dn,Tt)}),_.createElement("div",{role:"presentation",className:"".concat(Dn,"-title"),title:typeof Ft=="string"?Ft:void 0},Ft),_.createElement("ul",{role:"group",className:"".concat(Dn,"-list")},sn))};function bn(ct){var pt=ct.children,Tt=(0,m.Z)(ct,dn),Ft=Ce(Tt.eventKey),It=Qt(pt,Ft),sn=j();return sn?It:_.createElement(rn,(0,xt.Z)(Tt,["warnKey"]),It)}function In(ct){var pt=ct.className,Tt=ct.style,Ft=_.useContext(G),It=Ft.prefixCls,sn=j();return sn?null:_.createElement("li",{role:"separator",className:re()("".concat(It,"-item-divider"),pt),style:Tt})}var Cn=["label","children","key","type"];function Kt(ct){return(ct||[]).map(function(pt,Tt){if(pt&&(0,nn.Z)(pt)==="object"){var Ft=pt,It=Ft.label,sn=Ft.children,$t=Ft.key,hn=Ft.type,_n=(0,m.Z)(Ft,Cn),Dn=$t!=null?$t:"tmp-".concat(Tt);return sn||hn==="group"?hn==="group"?_.createElement(bn,(0,O.Z)({key:Dn},_n,{title:It}),Kt(sn)):_.createElement(Ct,(0,O.Z)({key:Dn},_n,{title:It}),Kt(sn)):hn==="divider"?_.createElement(In,(0,O.Z)({key:Dn},_n)):_.createElement(tt,(0,O.Z)({key:Dn},_n),It)}return null}).filter(function(pt){return pt})}function Gt(ct,pt,Tt){var Ft=ct;return pt&&(Ft=Kt(pt)),Qt(Ft,Tt)}var qt=["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"],fn=[],an=_.forwardRef(function(ct,pt){var Tt,Ft,It=ct,sn=It.prefixCls,$t=sn===void 0?"rc-menu":sn,hn=It.rootClassName,_n=It.style,Dn=It.className,Yn=It.tabIndex,Zn=Yn===void 0?0:Yn,dr=It.items,En=It.children,Tn=It.direction,pr=It.id,mr=It.mode,Ir=mr===void 0?"vertical":mr,sr=It.inlineCollapsed,ar=It.disabled,Cr=It.disabledOverflow,rr=It.subMenuOpenDelay,Pr=rr===void 0?.1:rr,qr=It.subMenuCloseDelay,qn=qr===void 0?.1:qr,zn=It.forceSubMenuRender,dt=It.defaultOpenKeys,Bn=It.openKeys,ur=It.activeKey,er=It.defaultActiveFirst,Lr=It.selectable,zr=Lr===void 0?!0:Lr,Vr=It.multiple,fr=Vr===void 0?!1:Vr,Yr=It.defaultSelectedKeys,Un=It.selectedKeys,On=It.onSelect,Er=It.onDeselect,kr=It.inlineIndent,ei=kr===void 0?24:kr,Ii=It.motion,jn=It.defaultMotions,ii=It.triggerSubMenuAction,Xr=ii===void 0?"hover":ii,fi=It.builtinPlacements,Li=It.itemIcon,yi=It.expandIcon,si=It.overflowedIndicator,Ci=si===void 0?"...":si,ui=It.overflowedIndicatorPopupClassName,$i=It.getPopupContainer,Tr=It.onClick,Xi=It.onOpenChange,Hi=It.onKeyDown,Qi=It.openAnimation,jr=It.openTransitionName,fs=It._internalRenderMenuItem,vs=It._internalRenderSubMenuItem,cs=(0,m.Z)(It,qt),Br=_.useMemo(function(){return Gt(En,dr,fn)},[En,dr]),hs=_.useState(!1),Ts=(0,A.Z)(hs,2),Nn=Ts[0],Mi=Ts[1],ls=_.useRef(),gr=Me(pr),xr=Tn==="rtl",cr=(0,I.Z)(dt,{value:Bn,postState:function(Di){return Di||fn}}),Xn=(0,A.Z)(cr,2),Ur=Xn[0],ai=Xn[1],Zi=function(Di){var Si=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Ss(){ai(Di),Xi==null||Xi(Di)}Si?(0,S.flushSync)(Ss):Ss()},Ri=_.useState(Ur),Ti=(0,A.Z)(Ri,2),Fr=Ti[0],Oi=Ti[1],As=_.useRef(!1),Ps=_.useMemo(function(){return(Ir==="inline"||Ir==="vertical")&&sr?["vertical",sr]:[Ir,!1]},[Ir,sr]),ps=(0,A.Z)(Ps,2),us=ps[0],or=ps[1],Or=us==="inline",bi=_.useState(us),ji=(0,A.Z)(bi,2),gi=ji[0],Ds=ji[1],ks=_.useState(or),Is=(0,A.Z)(ks,2),_s=Is[0],aa=Is[1];_.useEffect(function(){Ds(us),aa(or),As.current&&(Or?ai(Fr):Zi(fn))},[us,or]);var oa=_.useState(0),ha=(0,A.Z)(oa,2),Ws=ha[0],pa=ha[1],ns=Ws>=Br.length-1||gi!=="horizontal"||Cr;_.useEffect(function(){Or&&Oi(Ur)},[Ur]),_.useEffect(function(){return As.current=!0,function(){As.current=!1}},[]);var xs=oe(),ma=xs.registerPath,Js=xs.unregisterPath,qs=xs.refreshOverflowKeys,Us=xs.isSubPathKey,oi=xs.getKeyPath,Qr=xs.getKeys,as=xs.getSubPathKeys,Wi=_.useMemo(function(){return{registerPath:ma,unregisterPath:Js}},[ma,Js]),Pi=_.useMemo(function(){return{isSubPathKey:Us}},[Us]);_.useEffect(function(){qs(ns?fn:Br.slice(Ws+1).map(function(Ai){return Ai.key}))},[Ws,ns]);var Gi=(0,I.Z)(ur||er&&((Tt=Br[0])===null||Tt===void 0?void 0:Tt.key),{value:ur}),ds=(0,A.Z)(Gi,2),Es=ds[0],ys=ds[1],ea=te(function(Ai){ys(Ai)}),Bs=te(function(){ys(void 0)});(0,_.useImperativeHandle)(pt,function(){return{list:ls.current,focus:function(Di){var Si,Ss=Qr(),Ji=le(Ss,gr),ya=Ji.elements,gn=Ji.key2element,ta=Ji.element2key,ka=he(ls.current,ya),Aa=Es!=null?Es:ka[0]?ta.get(ka[0]):(Si=Br.find(function(Ua){return!Ua.props.disabled}))===null||Si===void 0?void 0:Si.key,ba=gn.get(Aa);if(Aa&&ba){var na;ba==null||(na=ba.focus)===null||na===void 0||na.call(ba,Di)}}}});var ga=(0,I.Z)(Yr||[],{value:Un,postState:function(Di){return Array.isArray(Di)?Di:Di==null?fn:[Di]}}),za=(0,A.Z)(ga,2),Ms=za[0],la=za[1],va=function(Di){if(zr){var Si=Di.key,Ss=Ms.includes(Si),Ji;fr?Ss?Ji=Ms.filter(function(gn){return gn!==Si}):Ji=[].concat((0,ce.Z)(Ms),[Si]):Ji=[Si],la(Ji);var ya=(0,q.Z)((0,q.Z)({},Di),{},{selectedKeys:Ji});Ss?Er==null||Er(ya):On==null||On(ya)}!fr&&Ur.length&&gi!=="inline"&&Zi(fn)},Gs=te(function(Ai){Tr==null||Tr(M(Ai)),va(Ai)}),wa=te(function(Ai,Di){var Si=Ur.filter(function(Ji){return Ji!==Ai});if(Di)Si.push(Ai);else if(gi!=="inline"){var Ss=as(Ai);Si=Si.filter(function(Ji){return!Ss.has(Ji)})}(0,k.Z)(Ur,Si,!0)||Zi(Si,!0)}),Ca=function(Di,Si){var Ss=Si!=null?Si:!Ur.includes(Di);wa(Di,Ss)},ua=Q(gi,Es,xr,gr,ls,Qr,oi,ys,Ca,Hi);_.useEffect(function(){Mi(!0)},[]);var Ta=_.useMemo(function(){return{_internalRenderMenuItem:fs,_internalRenderSubMenuItem:vs}},[fs,vs]),Rs=gi!=="horizontal"||Cr?Br:Br.map(function(Ai,Di){return _.createElement(L,{key:Ai.key,overflowDisabled:Di>Ws},Ai)}),Pa=_.createElement(o.Z,(0,O.Z)({id:pr,ref:ls,prefixCls:"".concat($t,"-overflow"),component:"ul",itemComponent:tt,className:re()($t,"".concat($t,"-root"),"".concat($t,"-").concat(gi),Dn,(Ft={},(0,K.Z)(Ft,"".concat($t,"-inline-collapsed"),_s),(0,K.Z)(Ft,"".concat($t,"-rtl"),xr),Ft),hn),dir:Tn,style:_n,role:"menu",tabIndex:Zn,data:Rs,renderRawItem:function(Di){return Di},renderRawRest:function(Di){var Si=Di.length,Ss=Si?Br.slice(-Si):null;return _.createElement(Ct,{eventKey:fe,title:Ci,disabled:ns,internalPopupClose:Si===0,popupClassName:ui},Ss)},maxCount:gi!=="horizontal"||Cr?o.Z.INVALIDATE:o.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Di){pa(Di)},onKeyDown:ua},cs));return _.createElement(de.Provider,{value:Ta},_.createElement(T.Provider,{value:gr},_.createElement(L,{prefixCls:$t,rootClassName:hn,mode:gi,openKeys:Ur,rtl:xr,disabled:ar,motion:Nn?Ii:null,defaultMotions:Nn?jn:null,activeKey:Es,onActive:ea,onInactive:Bs,selectedKeys:Ms,inlineIndent:ei,subMenuOpenDelay:Pr,subMenuCloseDelay:qn,forceSubMenuRender:zn,builtinPlacements:fi,triggerSubMenuAction:Xr,getPopupContainer:$i,itemIcon:Li,expandIcon:yi,onItemClick:Gs,onOpenChange:wa},_.createElement(Ee.Provider,{value:Pi},Pa),_.createElement("div",{style:{display:"none"},"aria-hidden":!0},_.createElement(Y.Provider,{value:Wi},Br)))))}),Qn=an,Rn=Qn;Rn.Item=tt,Rn.SubMenu=Ct,Rn.ItemGroup=bn,Rn.Divider=In;var ln=Rn},11780:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return J}});var O=p(72308),K=p(77321),q=p(52487),ce=p(74416),A=p(59301),m=p(92310),w=p.n(m),re=p(29301),o=p(34280),I=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],k=void 0;function g(v,x){var Z=v.prefixCls,me=v.invalidate,Be=v.item,Ue=v.renderItem,ze=v.responsive,qe=v.responsiveDisabled,mt=v.registerSize,gt=v.itemKey,at=v.className,Lt=v.style,tn=v.children,Rt=v.display,Ht=v.order,ut=v.component,wt=ut===void 0?"div":ut,he=(0,ce.Z)(v,I),pe=ze&&!Rt;function le(P){mt(gt,P)}A.useEffect(function(){return function(){le(null)}},[]);var Q=Ue&&Be!==k?Ue(Be,{index:Ht}):tn,Re;me||(Re={opacity:pe?0:1,height:pe?0:k,overflowY:pe?"hidden":k,order:ze?Ht:k,pointerEvents:pe?"none":k,position:pe?"absolute":k});var H={};pe&&(H["aria-hidden"]=!0);var R=A.createElement(wt,(0,O.Z)({className:w()(!me&&Z,at),style:(0,K.Z)((0,K.Z)({},Re),Lt)},H,he,{ref:x}),Q);return ze&&(R=A.createElement(re.Z,{onResize:function(fe){var oe=fe.offsetWidth;le(oe)},disabled:qe},R)),R}var _=A.forwardRef(g);_.displayName="Item";var S=_,T=p(6089),B=p(4676),se=p(16089);function z(v){if(typeof MessageChannel=="undefined")(0,se.Z)(v);else{var x=new MessageChannel;x.port1.onmessage=function(){return v()},x.port2.postMessage(void 0)}}function $(){var v=A.useRef(null),x=function(me){v.current||(v.current=[],z(function(){(0,B.unstable_batchedUpdates)(function(){v.current.forEach(function(Be){Be()}),v.current=null})})),v.current.push(me)};return x}function G(v,x){var Z=A.useState(x),me=(0,q.Z)(Z,2),Be=me[0],Ue=me[1],ze=(0,T.Z)(function(qe){v(function(){Ue(qe)})});return[Be,ze]}var X=A.createContext(null),L=["component"],D=["className"],Y=["className"],j=function(x,Z){var me=A.useContext(X);if(!me){var Be=x.component,Ue=Be===void 0?"div":Be,ze=(0,ce.Z)(x,L);return A.createElement(Ue,(0,O.Z)({},ze,{ref:Z}))}var qe=me.className,mt=(0,ce.Z)(me,D),gt=x.className,at=(0,ce.Z)(x,Y);return A.createElement(X.Provider,{value:null},A.createElement(S,(0,O.Z)({ref:Z,className:w()(qe,gt)},mt,at)))},xe=A.forwardRef(j);xe.displayName="RawItem";var Ce=xe,Ee=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ge="responsive",de="invalidate";function W(v){return"+ ".concat(v.length," ...")}function be(v,x){var Z=v.prefixCls,me=Z===void 0?"rc-overflow":Z,Be=v.data,Ue=Be===void 0?[]:Be,ze=v.renderItem,qe=v.renderRawItem,mt=v.itemKey,gt=v.itemWidth,at=gt===void 0?10:gt,Lt=v.ssr,tn=v.style,Rt=v.className,Ht=v.maxCount,ut=v.renderRest,wt=v.renderRawRest,he=v.suffix,pe=v.component,le=pe===void 0?"div":pe,Q=v.itemComponent,Re=v.onVisibleChange,H=(0,ce.Z)(v,Ee),R=Lt==="full",P=$(),fe=G(P,null),oe=(0,q.Z)(fe,2),te=oe[0],Te=oe[1],je=te||0,Me=G(P,new Map),Fe=(0,q.Z)(Me,2),Je=Fe[0],Xe=Fe[1],Ve=G(P,0),xt=(0,q.Z)(Ve,2),Dt=xt[0],vt=xt[1],Bt=G(P,0),Zt=(0,q.Z)(Bt,2),C=Zt[0],M=Zt[1],yt=G(P,0),ye=(0,q.Z)(yt,2),Ne=ye[0],Sn=ye[1],it=(0,A.useState)(null),nt=(0,q.Z)(it,2),tt=nt[0],we=nt[1],Oe=(0,A.useState)(null),Le=(0,q.Z)(Oe,2),rt=Le[0],_e=Le[1],Qt=A.useMemo(function(){return rt===null&&R?Number.MAX_SAFE_INTEGER:rt||0},[rt,te]),He=(0,A.useState)(!1),xn=(0,q.Z)(He,2),Ln=xn[0],_r=xn[1],Hn="".concat(me,"-item"),yn=Math.max(Dt,C),wn=Ht===ge,Ye=Ue.length&&wn,Ot=Ht===de,Ut=Ye||typeof Ht=="number"&&Ue.length>Ht,Ke=(0,A.useMemo)(function(){var ln=Ue;return Ye?te===null&&R?ln=Ue:ln=Ue.slice(0,Math.min(Ue.length,je/at)):typeof Ht=="number"&&(ln=Ue.slice(0,Ht)),ln},[Ue,at,te,Ht,Ye]),Pe=(0,A.useMemo)(function(){return Ye?Ue.slice(Qt+1):Ue.slice(Ke.length)},[Ue,Ke,Ye,Qt]),_t=(0,A.useCallback)(function(ln,ct){var pt;return typeof mt=="function"?mt(ln):(pt=mt&&(ln==null?void 0:ln[mt]))!==null&&pt!==void 0?pt:ct},[mt]),Ct=(0,A.useCallback)(ze||function(ln){return ln},[ze]);function nn(ln,ct,pt){rt===ln&&(ct===void 0||ct===tt)||(_e(ln),pt||(_r(ln<Ue.length-1),Re==null||Re(ln)),ct!==void 0&&we(ct))}function Vt(ln,ct){Te(ct.clientWidth)}function dn(ln,ct){Xe(function(pt){var Tt=new Map(pt);return ct===null?Tt.delete(ln):Tt.set(ln,ct),Tt})}function rn(ln,ct){M(ct),vt(C)}function bn(ln,ct){Sn(ct)}function In(ln){return Je.get(_t(Ke[ln],ln))}(0,o.Z)(function(){if(je&&typeof yn=="number"&&Ke){var ln=Ne,ct=Ke.length,pt=ct-1;if(!ct){nn(0,null);return}for(var Tt=0;Tt<ct;Tt+=1){var Ft=In(Tt);if(R&&(Ft=Ft||0),Ft===void 0){nn(Tt-1,void 0,!0);break}if(ln+=Ft,pt===0&&ln<=je||Tt===pt-1&&ln+In(pt)<=je){nn(pt,null);break}else if(ln+yn>je){nn(Tt-1,ln-Ft-Ne+C);break}}he&&In(0)+Ne>je&&we(null)}},[je,Je,C,Ne,_t,Ke]);var Cn=Ln&&!!Pe.length,Kt={};tt!==null&&Ye&&(Kt={position:"absolute",left:tt,top:0});var Gt={prefixCls:Hn,responsive:Ye,component:Q,invalidate:Ot},qt=qe?function(ln,ct){var pt=_t(ln,ct);return A.createElement(X.Provider,{key:pt,value:(0,K.Z)((0,K.Z)({},Gt),{},{order:ct,item:ln,itemKey:pt,registerSize:dn,display:ct<=Qt})},qe(ln,ct))}:function(ln,ct){var pt=_t(ln,ct);return A.createElement(S,(0,O.Z)({},Gt,{order:ct,key:pt,item:ln,renderItem:Ct,itemKey:pt,registerSize:dn,display:ct<=Qt}))},fn={order:Cn?Qt:Number.MAX_SAFE_INTEGER,className:"".concat(Hn,"-rest"),registerSize:rn,display:Cn},an=ut||W,Qn=wt?A.createElement(X.Provider,{value:(0,K.Z)((0,K.Z)({},Gt),fn)},wt(Pe)):A.createElement(S,(0,O.Z)({},Gt,fn),typeof an=="function"?an(Pe):an),Rn=A.createElement(le,(0,O.Z)({className:w()(!Ot&&me,Rt),style:tn,ref:x},H),Ke.map(qt),Ut?Qn:null,he&&A.createElement(S,(0,O.Z)({},Gt,{responsive:wn,responsiveDisabled:!Ye,order:Qt,className:"".concat(Hn,"-suffix"),registerSize:bn,display:!0,style:Kt}),he));return wn?A.createElement(re.Z,{onResize:Vt,disabled:!Ye},Rn):Rn}var N=A.forwardRef(be);N.displayName="Overflow",N.Item=Ce,N.RESPONSIVE=ge,N.INVALIDATE=de;var ue=N,J=ue},29301:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return de}});var O=p(72308),K=p(59301),q=p(11592),ce=p(48736),A=p(77321),m=p(62853),w=p(76846),re=p(8654),o=K.createContext(null);function I(W){var be=W.children,N=W.onBatchResize,ue=K.useRef(0),J=K.useRef([]),v=K.useContext(o),x=K.useCallback(function(Z,me,Be){ue.current+=1;var Ue=ue.current;J.current.push({size:Z,element:me,data:Be}),Promise.resolve().then(function(){Ue===ue.current&&(N==null||N(J.current),J.current=[])}),v==null||v(Z,me,Be)},[N,v]);return K.createElement(o.Provider,{value:x},be)}var k=p(76374),g=new Map;function _(W){W.forEach(function(be){var N,ue=be.target;(N=g.get(ue))===null||N===void 0||N.forEach(function(J){return J(ue)})})}var S=new k.Z(_),T=null,B=null;function se(W,be){g.has(W)||(g.set(W,new Set),S.observe(W)),g.get(W).add(be)}function z(W,be){g.has(W)&&(g.get(W).delete(be),g.get(W).size||(S.unobserve(W),g.delete(W)))}var $=p(96949),G=p(55090),X=p(77205),L=p(38793),D=function(W){(0,X.Z)(N,W);var be=(0,L.Z)(N);function N(){return(0,$.Z)(this,N),be.apply(this,arguments)}return(0,G.Z)(N,[{key:"render",value:function(){return this.props.children}}]),N}(K.Component);function Y(W,be){var N=W.children,ue=W.disabled,J=K.useRef(null),v=K.useRef(null),x=K.useContext(o),Z=typeof N=="function",me=Z?N(J):N,Be=K.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Ue=!Z&&K.isValidElement(me)&&(0,re.Yr)(me),ze=Ue?(0,re.C4)(me):null,qe=(0,re.x1)(ze,J),mt=function(){var tn;return(0,w.ZP)(J.current)||(J.current&&(0,m.Z)(J.current)==="object"?(0,w.ZP)((tn=J.current)===null||tn===void 0?void 0:tn.nativeElement):null)||(0,w.ZP)(v.current)};K.useImperativeHandle(be,function(){return mt()});var gt=K.useRef(W);gt.current=W;var at=K.useCallback(function(Lt){var tn=gt.current,Rt=tn.onResize,Ht=tn.data,ut=Lt.getBoundingClientRect(),wt=ut.width,he=ut.height,pe=Lt.offsetWidth,le=Lt.offsetHeight,Q=Math.floor(wt),Re=Math.floor(he);if(Be.current.width!==Q||Be.current.height!==Re||Be.current.offsetWidth!==pe||Be.current.offsetHeight!==le){var H={width:Q,height:Re,offsetWidth:pe,offsetHeight:le};Be.current=H;var R=pe===Math.round(wt)?wt:pe,P=le===Math.round(he)?he:le,fe=(0,A.Z)((0,A.Z)({},H),{},{offsetWidth:R,offsetHeight:P});x==null||x(fe,Lt,Ht),Rt&&Promise.resolve().then(function(){Rt(fe,Lt)})}},[]);return K.useEffect(function(){var Lt=mt();return Lt&&!ue&&se(Lt,at),function(){return z(Lt,at)}},[J.current,ue]),K.createElement(D,{ref:v},Ue?K.cloneElement(me,{ref:qe}):me)}var j=K.forwardRef(Y),xe=j,Ce="rc-observer-key";function Ee(W,be){var N=W.children,ue=typeof N=="function"?[N]:(0,q.Z)(N);return ue.map(function(J,v){var x=(J==null?void 0:J.key)||"".concat(Ce,"-").concat(v);return K.createElement(xe,(0,O.Z)({},W,{key:x,ref:v===0?be:void 0}),J)})}var ge=K.forwardRef(Ee);ge.Collection=I;var de=ge},17115:function(Xt,Ze,p){"use strict";p.d(Ze,{ZP:function(){return w}});var O=p(52487),K=p(59301),q=p(47273),ce=0,A=(0,q.Z)();function m(){var re;return A?(re=ce,ce+=1):re="TEST_OR_SSR",re}function w(re){var o=K.useState(),I=(0,O.Z)(o,2),k=I[0],g=I[1];return K.useEffect(function(){g("rc_select_".concat(m()))},[]),re||k}},77861:function(Xt,Ze,p){"use strict";p.d(Ze,{Ac:function(){return Te},Xo:function(){return M},Wx:function(){return ye},ZP:function(){return Ut},lk:function(){return X}});var O=p(72308),K=p(80702),q=p(49618),ce=p(77321),A=p(52487),m=p(74416),w=p(62853),re=p(18929),o=p(48736),I=p(59301),k=p(92310),g=p.n(k),_=p(34280),S=p(49658),T=p(10228),B=p(8654),se=function(Pe){var _t=Pe.className,Ct=Pe.customizeIcon,nn=Pe.customizeIconProps,Vt=Pe.onMouseDown,dn=Pe.onClick,rn=Pe.children,bn;return typeof Ct=="function"?bn=Ct(nn):bn=Ct,I.createElement("span",{className:_t,onMouseDown:function(Cn){Cn.preventDefault(),Vt&&Vt(Cn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:dn,"aria-hidden":!0},bn!==void 0?bn:I.createElement("span",{className:g()(_t.split(/\s+/).map(function(In){return"".concat(In,"-icon")}))},rn))},z=se;function $(Ke,Pe,_t,Ct,nn){var Vt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,dn=arguments.length>6?arguments[6]:void 0,rn=arguments.length>7?arguments[7]:void 0,bn=I.useMemo(function(){if((0,w.Z)(Ct)==="object")return Ct.clearIcon;if(nn)return nn},[Ct,nn]),In=I.useMemo(function(){return!!(!Vt&&Ct&&(_t.length||dn)&&!(rn==="combobox"&&dn===""))},[Ct,Vt,_t.length,dn,rn]);return{allowClear:In,clearIcon:I.createElement(z,{className:"".concat(Ke,"-clear"),onMouseDown:Pe,customizeIcon:bn},"\xD7")}}var G=I.createContext(null);function X(){return I.useContext(G)}function L(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Pe=I.useState(!1),_t=(0,A.Z)(Pe,2),Ct=_t[0],nn=_t[1],Vt=I.useRef(null),dn=function(){window.clearTimeout(Vt.current)};I.useEffect(function(){return dn},[]);var rn=function(In,Cn){dn(),Vt.current=window.setTimeout(function(){nn(In),Cn&&Cn()},Ke)};return[Ct,rn,dn]}function D(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Pe=I.useRef(null),_t=I.useRef(null);I.useEffect(function(){return function(){window.clearTimeout(_t.current)}},[]);function Ct(nn){(nn||Pe.current===null)&&(Pe.current=nn),window.clearTimeout(_t.current),_t.current=window.setTimeout(function(){Pe.current=null},Ke)}return[function(){return Pe.current},Ct]}function Y(Ke,Pe,_t,Ct){var nn=I.useRef(null);nn.current={open:Pe,triggerOpen:_t,customizedTrigger:Ct},I.useEffect(function(){function Vt(dn){var rn;if(!((rn=nn.current)!==null&&rn!==void 0&&rn.customizedTrigger)){var bn=dn.target;bn.shadowRoot&&dn.composed&&(bn=dn.composedPath()[0]||bn),nn.current.open&&Ke().filter(function(In){return In}).every(function(In){return!In.contains(bn)&&In!==bn})&&nn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Vt),function(){return window.removeEventListener("mousedown",Vt)}},[])}var j=p(26112),xe=p(11780),Ce=function(Pe,_t){var Ct,nn,Vt=Pe.prefixCls,dn=Pe.id,rn=Pe.inputElement,bn=Pe.disabled,In=Pe.tabIndex,Cn=Pe.autoFocus,Kt=Pe.autoComplete,Gt=Pe.editable,qt=Pe.activeDescendantId,fn=Pe.value,an=Pe.maxLength,Qn=Pe.onKeyDown,Rn=Pe.onMouseDown,ln=Pe.onChange,ct=Pe.onPaste,pt=Pe.onCompositionStart,Tt=Pe.onCompositionEnd,Ft=Pe.open,It=Pe.attrs,sn=rn||I.createElement("input",null),$t=sn,hn=$t.ref,_n=$t.props,Dn=_n.onKeyDown,Yn=_n.onChange,Zn=_n.onMouseDown,dr=_n.onCompositionStart,En=_n.onCompositionEnd,Tn=_n.style;return(0,o.Kp)(!("maxLength"in sn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),sn=I.cloneElement(sn,(0,ce.Z)((0,ce.Z)((0,ce.Z)({type:"search"},_n),{},{id:dn,ref:(0,B.sQ)(_t,hn),disabled:bn,tabIndex:In,autoComplete:Kt||"off",autoFocus:Cn,className:g()("".concat(Vt,"-selection-search-input"),(Ct=sn)===null||Ct===void 0||(nn=Ct.props)===null||nn===void 0?void 0:nn.className),role:"combobox","aria-label":"Search","aria-expanded":Ft||!1,"aria-haspopup":"listbox","aria-owns":"".concat(dn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(dn,"_list"),"aria-activedescendant":Ft?qt:void 0},It),{},{value:Gt?fn:"",maxLength:an,readOnly:!Gt,unselectable:Gt?null:"on",style:(0,ce.Z)((0,ce.Z)({},Tn),{},{opacity:Gt?null:0}),onKeyDown:function(mr){Qn(mr),Dn&&Dn(mr)},onMouseDown:function(mr){Rn(mr),Zn&&Zn(mr)},onChange:function(mr){ln(mr),Yn&&Yn(mr)},onCompositionStart:function(mr){pt(mr),dr&&dr(mr)},onCompositionEnd:function(mr){Tt(mr),En&&En(mr)},onPaste:ct})),sn},Ee=I.forwardRef(Ce);Ee.displayName="Input";var ge=Ee;function de(Ke){return Array.isArray(Ke)?Ke:Ke!==void 0?[Ke]:[]}var W=typeof window!="undefined"&&window.document&&window.document.documentElement,be=W;function N(Ke){return Ke!=null}function ue(Ke){return!Ke&&Ke!==0}function J(Ke){return["string","number"].includes((0,w.Z)(Ke))}function v(Ke){var Pe=void 0;return Ke&&(J(Ke.title)?Pe=Ke.title.toString():J(Ke.label)&&(Pe=Ke.label.toString())),Pe}function x(Ke,Pe){be?I.useLayoutEffect(Ke,Pe):I.useEffect(Ke,Pe)}function Z(Ke){var Pe;return(Pe=Ke.key)!==null&&Pe!==void 0?Pe:Ke.value}var me=function(Pe){Pe.preventDefault(),Pe.stopPropagation()},Be=function(Pe){var _t=Pe.id,Ct=Pe.prefixCls,nn=Pe.values,Vt=Pe.open,dn=Pe.searchValue,rn=Pe.autoClearSearchValue,bn=Pe.inputRef,In=Pe.placeholder,Cn=Pe.disabled,Kt=Pe.mode,Gt=Pe.showSearch,qt=Pe.autoFocus,fn=Pe.autoComplete,an=Pe.activeDescendantId,Qn=Pe.tabIndex,Rn=Pe.removeIcon,ln=Pe.maxTagCount,ct=Pe.maxTagTextLength,pt=Pe.maxTagPlaceholder,Tt=pt===void 0?function(Lr){return"+ ".concat(Lr.length," ...")}:pt,Ft=Pe.tagRender,It=Pe.onToggleOpen,sn=Pe.onRemove,$t=Pe.onInputChange,hn=Pe.onInputPaste,_n=Pe.onInputKeyDown,Dn=Pe.onInputMouseDown,Yn=Pe.onInputCompositionStart,Zn=Pe.onInputCompositionEnd,dr=I.useRef(null),En=(0,I.useState)(0),Tn=(0,A.Z)(En,2),pr=Tn[0],mr=Tn[1],Ir=(0,I.useState)(!1),sr=(0,A.Z)(Ir,2),ar=sr[0],Cr=sr[1],rr="".concat(Ct,"-selection"),Pr=Vt||Kt==="multiple"&&rn===!1||Kt==="tags"?dn:"",qr=Kt==="tags"||Kt==="multiple"&&rn===!1||Gt&&(Vt||ar);x(function(){mr(dr.current.scrollWidth)},[Pr]);function qn(Lr,zr,Vr,fr,Yr){return I.createElement("span",{className:g()("".concat(rr,"-item"),(0,q.Z)({},"".concat(rr,"-item-disabled"),Vr)),title:v(Lr)},I.createElement("span",{className:"".concat(rr,"-item-content")},zr),fr&&I.createElement(z,{className:"".concat(rr,"-item-remove"),onMouseDown:me,onClick:Yr,customizeIcon:Rn},"\xD7"))}function zn(Lr,zr,Vr,fr,Yr){var Un=function(Er){me(Er),It(!Vt)};return I.createElement("span",{onMouseDown:Un},Ft({label:zr,value:Lr,disabled:Vr,closable:fr,onClose:Yr}))}function dt(Lr){var zr=Lr.disabled,Vr=Lr.label,fr=Lr.value,Yr=!Cn&&!zr,Un=Vr;if(typeof ct=="number"&&(typeof Vr=="string"||typeof Vr=="number")){var On=String(Un);On.length>ct&&(Un="".concat(On.slice(0,ct),"..."))}var Er=function(ei){ei&&ei.stopPropagation(),sn(Lr)};return typeof Ft=="function"?zn(fr,Un,zr,Yr,Er):qn(Lr,Un,zr,Yr,Er)}function Bn(Lr){var zr=typeof Tt=="function"?Tt(Lr):Tt;return qn({title:zr},zr,!1)}var ur=I.createElement("div",{className:"".concat(rr,"-search"),style:{width:pr},onFocus:function(){Cr(!0)},onBlur:function(){Cr(!1)}},I.createElement(ge,{ref:bn,open:Vt,prefixCls:Ct,id:_t,inputElement:null,disabled:Cn,autoFocus:qt,autoComplete:fn,editable:qr,activeDescendantId:an,value:Pr,onKeyDown:_n,onMouseDown:Dn,onChange:$t,onPaste:hn,onCompositionStart:Yn,onCompositionEnd:Zn,tabIndex:Qn,attrs:(0,j.Z)(Pe,!0)}),I.createElement("span",{ref:dr,className:"".concat(rr,"-search-mirror"),"aria-hidden":!0},Pr,"\xA0")),er=I.createElement(xe.Z,{prefixCls:"".concat(rr,"-overflow"),data:nn,renderItem:dt,renderRest:Bn,suffix:ur,itemKey:Z,maxCount:ln});return I.createElement(I.Fragment,null,er,!nn.length&&!Pr&&I.createElement("span",{className:"".concat(rr,"-placeholder")},In))},Ue=Be,ze=function(Pe){var _t=Pe.inputElement,Ct=Pe.prefixCls,nn=Pe.id,Vt=Pe.inputRef,dn=Pe.disabled,rn=Pe.autoFocus,bn=Pe.autoComplete,In=Pe.activeDescendantId,Cn=Pe.mode,Kt=Pe.open,Gt=Pe.values,qt=Pe.placeholder,fn=Pe.tabIndex,an=Pe.showSearch,Qn=Pe.searchValue,Rn=Pe.activeValue,ln=Pe.maxLength,ct=Pe.onInputKeyDown,pt=Pe.onInputMouseDown,Tt=Pe.onInputChange,Ft=Pe.onInputPaste,It=Pe.onInputCompositionStart,sn=Pe.onInputCompositionEnd,$t=Pe.title,hn=I.useState(!1),_n=(0,A.Z)(hn,2),Dn=_n[0],Yn=_n[1],Zn=Cn==="combobox",dr=Zn||an,En=Gt[0],Tn=Qn||"";Zn&&Rn&&!Dn&&(Tn=Rn),I.useEffect(function(){Zn&&Yn(!1)},[Zn,Rn]);var pr=Cn!=="combobox"&&!Kt&&!an?!1:!!Tn,mr=$t===void 0?v(En):$t,Ir=function(){if(En)return null;var ar=pr?{visibility:"hidden"}:void 0;return I.createElement("span",{className:"".concat(Ct,"-selection-placeholder"),style:ar},qt)};return I.createElement(I.Fragment,null,I.createElement("span",{className:"".concat(Ct,"-selection-search")},I.createElement(ge,{ref:Vt,prefixCls:Ct,id:nn,open:Kt,inputElement:_t,disabled:dn,autoFocus:rn,autoComplete:bn,editable:dr,activeDescendantId:In,value:Tn,onKeyDown:ct,onMouseDown:pt,onChange:function(ar){Yn(!0),Tt(ar)},onPaste:Ft,onCompositionStart:It,onCompositionEnd:sn,tabIndex:fn,attrs:(0,j.Z)(Pe,!0),maxLength:Zn?ln:void 0})),!Zn&&En?I.createElement("span",{className:"".concat(Ct,"-selection-item"),title:mr,style:pr?{visibility:"hidden"}:void 0},En.label):null,Ir())},qe=ze;function mt(Ke){return![T.Z.ESC,T.Z.SHIFT,T.Z.BACKSPACE,T.Z.TAB,T.Z.WIN_KEY,T.Z.ALT,T.Z.META,T.Z.WIN_KEY_RIGHT,T.Z.CTRL,T.Z.SEMICOLON,T.Z.EQUALS,T.Z.CAPS_LOCK,T.Z.CONTEXT_MENU,T.Z.F1,T.Z.F2,T.Z.F3,T.Z.F4,T.Z.F5,T.Z.F6,T.Z.F7,T.Z.F8,T.Z.F9,T.Z.F10,T.Z.F11,T.Z.F12].includes(Ke)}var gt=function(Pe,_t){var Ct=(0,I.useRef)(null),nn=(0,I.useRef)(!1),Vt=Pe.prefixCls,dn=Pe.open,rn=Pe.mode,bn=Pe.showSearch,In=Pe.tokenWithEnter,Cn=Pe.autoClearSearchValue,Kt=Pe.onSearch,Gt=Pe.onSearchSubmit,qt=Pe.onToggleOpen,fn=Pe.onInputKeyDown,an=Pe.domRef;I.useImperativeHandle(_t,function(){return{focus:function(){Ct.current.focus()},blur:function(){Ct.current.blur()}}});var Qn=D(0),Rn=(0,A.Z)(Qn,2),ln=Rn[0],ct=Rn[1],pt=function(Tn){var pr=Tn.which;(pr===T.Z.UP||pr===T.Z.DOWN)&&Tn.preventDefault(),fn&&fn(Tn),pr===T.Z.ENTER&&rn==="tags"&&!nn.current&&!dn&&(Gt==null||Gt(Tn.target.value)),mt(pr)&&qt(!0)},Tt=function(){ct(!0)},Ft=(0,I.useRef)(null),It=function(Tn){Kt(Tn,!0,nn.current)!==!1&&qt(!0)},sn=function(){nn.current=!0},$t=function(Tn){nn.current=!1,rn!=="combobox"&&It(Tn.target.value)},hn=function(Tn){var pr=Tn.target.value;if(In&&Ft.current&&/[\r\n]/.test(Ft.current)){var mr=Ft.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");pr=pr.replace(mr,Ft.current)}Ft.current=null,It(pr)},_n=function(Tn){var pr=Tn.clipboardData,mr=pr.getData("text");Ft.current=mr},Dn=function(Tn){var pr=Tn.target;if(pr!==Ct.current){var mr=document.body.style.msTouchAction!==void 0;mr?setTimeout(function(){Ct.current.focus()}):Ct.current.focus()}},Yn=function(Tn){var pr=ln();Tn.target!==Ct.current&&!pr&&rn!=="combobox"&&Tn.preventDefault(),(rn!=="combobox"&&(!bn||!pr)||!dn)&&(dn&&Cn!==!1&&Kt("",!0,!1),qt())},Zn={inputRef:Ct,onInputKeyDown:pt,onInputMouseDown:Tt,onInputChange:hn,onInputPaste:_n,onInputCompositionStart:sn,onInputCompositionEnd:$t},dr=rn==="multiple"||rn==="tags"?I.createElement(Ue,(0,O.Z)({},Pe,Zn)):I.createElement(qe,(0,O.Z)({},Pe,Zn));return I.createElement("div",{ref:an,className:"".concat(Vt,"-selector"),onClick:Dn,onMouseDown:Yn},dr)},at=I.forwardRef(gt);at.displayName="Selector";var Lt=at,tn=p(35593),Rt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Ht=function(Pe){var _t=Pe===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:_t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:_t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:_t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:_t,adjustY:1},htmlRegion:"scroll"}}},ut=function(Pe,_t){var Ct=Pe.prefixCls,nn=Pe.disabled,Vt=Pe.visible,dn=Pe.children,rn=Pe.popupElement,bn=Pe.animation,In=Pe.transitionName,Cn=Pe.dropdownStyle,Kt=Pe.dropdownClassName,Gt=Pe.direction,qt=Gt===void 0?"ltr":Gt,fn=Pe.placement,an=Pe.builtinPlacements,Qn=Pe.dropdownMatchSelectWidth,Rn=Pe.dropdownRender,ln=Pe.dropdownAlign,ct=Pe.getPopupContainer,pt=Pe.empty,Tt=Pe.getTriggerDOMNode,Ft=Pe.onPopupVisibleChange,It=Pe.onPopupMouseEnter,sn=(0,m.Z)(Pe,Rt),$t="".concat(Ct,"-dropdown"),hn=rn;Rn&&(hn=Rn(rn));var _n=I.useMemo(function(){return an||Ht(Qn)},[an,Qn]),Dn=bn?"".concat($t,"-").concat(bn):In,Yn=typeof Qn=="number",Zn=I.useMemo(function(){return Yn?null:Qn===!1?"minWidth":"width"},[Qn,Yn]),dr=Cn;Yn&&(dr=(0,ce.Z)((0,ce.Z)({},dr),{},{width:Qn}));var En=I.useRef(null);return I.useImperativeHandle(_t,function(){return{getPopupElement:function(){return En.current}}}),I.createElement(tn.Z,(0,O.Z)({},sn,{showAction:Ft?["click"]:[],hideAction:Ft?["click"]:[],popupPlacement:fn||(qt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:_n,prefixCls:$t,popupTransitionName:Dn,popup:I.createElement("div",{ref:En,onMouseEnter:It},hn),stretch:Zn,popupAlign:ln,popupVisible:Vt,getPopupContainer:ct,popupClassName:g()(Kt,(0,q.Z)({},"".concat($t,"-empty"),pt)),popupStyle:dr,getTriggerDOMNode:Tt,onPopupVisibleChange:Ft}),dn)},wt=I.forwardRef(ut);wt.displayName="SelectTrigger";var he=wt,pe=p(68413);function le(Ke,Pe){var _t=Ke.key,Ct;return"value"in Ke&&(Ct=Ke.value),_t!=null?_t:Ct!==void 0?Ct:"rc-index-key-".concat(Pe)}function Q(Ke,Pe){var _t=Ke||{},Ct=_t.label,nn=_t.value,Vt=_t.options,dn=_t.groupLabel,rn=Ct||(Pe?"children":"label");return{label:rn,value:nn||"value",options:Vt||"options",groupLabel:dn||rn}}function Re(Ke){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_t=Pe.fieldNames,Ct=Pe.childrenAsData,nn=[],Vt=Q(_t,!1),dn=Vt.label,rn=Vt.value,bn=Vt.options,In=Vt.groupLabel;function Cn(Kt,Gt){Kt.forEach(function(qt){if(Gt||!(bn in qt)){var fn=qt[rn];nn.push({key:le(qt,nn.length),groupOption:Gt,data:qt,label:qt[dn],value:fn})}else{var an=qt[In];an===void 0&&Ct&&(an=qt.label),nn.push({key:le(qt,nn.length),group:!0,data:qt,label:an}),Cn(qt[bn],!0)}})}return Cn(Ke,!1),nn}function H(Ke){var Pe=(0,ce.Z)({},Ke);return"props"in Pe||Object.defineProperty(Pe,"props",{get:function(){return(0,o.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Pe}}),Pe}function R(Ke,Pe){if(!Pe||!Pe.length)return null;var _t=!1;function Ct(Vt,dn){var rn=(0,pe.Z)(dn),bn=rn[0],In=rn.slice(1);if(!bn)return[Vt];var Cn=Vt.split(bn);return _t=_t||Cn.length>1,Cn.reduce(function(Kt,Gt){return[].concat((0,K.Z)(Kt),(0,K.Z)(Ct(Gt,In)))},[]).filter(function(Kt){return Kt})}var nn=Ct(Ke,Pe);return _t?nn:null}var P=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],fe=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function oe(Ke){return Ke==="tags"||Ke==="multiple"}var te=I.forwardRef(function(Ke,Pe){var _t,Ct,nn=Ke.id,Vt=Ke.prefixCls,dn=Ke.className,rn=Ke.showSearch,bn=Ke.tagRender,In=Ke.direction,Cn=Ke.omitDomProps,Kt=Ke.displayValues,Gt=Ke.onDisplayValuesChange,qt=Ke.emptyOptions,fn=Ke.notFoundContent,an=fn===void 0?"Not Found":fn,Qn=Ke.onClear,Rn=Ke.mode,ln=Ke.disabled,ct=Ke.loading,pt=Ke.getInputElement,Tt=Ke.getRawInputElement,Ft=Ke.open,It=Ke.defaultOpen,sn=Ke.onDropdownVisibleChange,$t=Ke.activeValue,hn=Ke.onActiveValueChange,_n=Ke.activeDescendantId,Dn=Ke.searchValue,Yn=Ke.autoClearSearchValue,Zn=Ke.onSearch,dr=Ke.onSearchSplit,En=Ke.tokenSeparators,Tn=Ke.allowClear,pr=Ke.suffixIcon,mr=Ke.clearIcon,Ir=Ke.OptionList,sr=Ke.animation,ar=Ke.transitionName,Cr=Ke.dropdownStyle,rr=Ke.dropdownClassName,Pr=Ke.dropdownMatchSelectWidth,qr=Ke.dropdownRender,qn=Ke.dropdownAlign,zn=Ke.placement,dt=Ke.builtinPlacements,Bn=Ke.getPopupContainer,ur=Ke.showAction,er=ur===void 0?[]:ur,Lr=Ke.onFocus,zr=Ke.onBlur,Vr=Ke.onKeyUp,fr=Ke.onKeyDown,Yr=Ke.onMouseDown,Un=(0,m.Z)(Ke,P),On=oe(Rn),Er=(rn!==void 0?rn:On)||Rn==="combobox",kr=(0,ce.Z)({},Un);fe.forEach(function(oi){delete kr[oi]}),Cn==null||Cn.forEach(function(oi){delete kr[oi]});var ei=I.useState(!1),Ii=(0,A.Z)(ei,2),jn=Ii[0],ii=Ii[1];I.useEffect(function(){ii((0,S.Z)())},[]);var Xr=I.useRef(null),fi=I.useRef(null),Li=I.useRef(null),yi=I.useRef(null),si=I.useRef(null),Ci=L(),ui=(0,A.Z)(Ci,3),$i=ui[0],Tr=ui[1],Xi=ui[2];I.useImperativeHandle(Pe,function(){var oi,Qr;return{focus:(oi=yi.current)===null||oi===void 0?void 0:oi.focus,blur:(Qr=yi.current)===null||Qr===void 0?void 0:Qr.blur,scrollTo:function(Wi){var Pi;return(Pi=si.current)===null||Pi===void 0?void 0:Pi.scrollTo(Wi)}}});var Hi=I.useMemo(function(){var oi;if(Rn!=="combobox")return Dn;var Qr=(oi=Kt[0])===null||oi===void 0?void 0:oi.value;return typeof Qr=="string"||typeof Qr=="number"?String(Qr):""},[Dn,Rn,Kt]),Qi=Rn==="combobox"&&typeof pt=="function"&&pt()||null,jr=typeof Tt=="function"&&Tt(),fs=(0,B.x1)(fi,jr==null||(_t=jr.props)===null||_t===void 0?void 0:_t.ref),vs=I.useState(!1),cs=(0,A.Z)(vs,2),Br=cs[0],hs=cs[1];(0,_.Z)(function(){hs(!0)},[]);var Ts=(0,re.Z)(!1,{defaultValue:It,value:Ft}),Nn=(0,A.Z)(Ts,2),Mi=Nn[0],ls=Nn[1],gr=Br?Mi:!1,xr=!an&&qt;(ln||xr&&gr&&Rn==="combobox")&&(gr=!1);var cr=xr?!1:gr,Xn=I.useCallback(function(oi){var Qr=oi!==void 0?oi:!gr;ln||(ls(Qr),gr!==Qr&&(sn==null||sn(Qr)))},[ln,gr,ls,sn]),Ur=I.useMemo(function(){return(En||[]).some(function(oi){return[`
|
|
|
`,`\r
|
|
|
`].includes(oi)})},[En]),ai=function(Qr,as,Wi){var Pi=!0,Gi=Qr;hn==null||hn(null);var ds=Wi?null:R(Qr,En);return Rn!=="combobox"&&ds&&(Gi="",dr==null||dr(ds),Xn(!1),Pi=!1),Zn&&Hi!==Gi&&Zn(Gi,{source:as?"typing":"effect"}),Pi},Zi=function(Qr){!Qr||!Qr.trim()||Zn(Qr,{source:"submit"})};I.useEffect(function(){!gr&&!On&&Rn!=="combobox"&&ai("",!1,!1)},[gr]),I.useEffect(function(){Mi&&ln&&ls(!1),ln&&Tr(!1)},[ln]);var Ri=D(),Ti=(0,A.Z)(Ri,2),Fr=Ti[0],Oi=Ti[1],As=function(Qr){var as=Fr(),Wi=Qr.which;if(Wi===T.Z.ENTER&&(Rn!=="combobox"&&Qr.preventDefault(),gr||Xn(!0)),Oi(!!Hi),Wi===T.Z.BACKSPACE&&!as&&On&&!Hi&&Kt.length){for(var Pi=(0,K.Z)(Kt),Gi=null,ds=Pi.length-1;ds>=0;ds-=1){var Es=Pi[ds];if(!Es.disabled){Pi.splice(ds,1),Gi=Es;break}}Gi&&Gt(Pi,{type:"remove",values:[Gi]})}for(var ys=arguments.length,ea=new Array(ys>1?ys-1:0),Bs=1;Bs<ys;Bs++)ea[Bs-1]=arguments[Bs];if(gr&&si.current){var ga;(ga=si.current).onKeyDown.apply(ga,[Qr].concat(ea))}fr==null||fr.apply(void 0,[Qr].concat(ea))},Ps=function(Qr){for(var as=arguments.length,Wi=new Array(as>1?as-1:0),Pi=1;Pi<as;Pi++)Wi[Pi-1]=arguments[Pi];if(gr&&si.current){var Gi;(Gi=si.current).onKeyUp.apply(Gi,[Qr].concat(Wi))}Vr==null||Vr.apply(void 0,[Qr].concat(Wi))},ps=function(Qr){var as=Kt.filter(function(Wi){return Wi!==Qr});Gt(as,{type:"remove",values:[Qr]})},us=I.useRef(!1),or=function(){Tr(!0),ln||(Lr&&!us.current&&Lr.apply(void 0,arguments),er.includes("focus")&&Xn(!0)),us.current=!0},Or=function(){Tr(!1,function(){us.current=!1,Xn(!1)}),!ln&&(Hi&&(Rn==="tags"?Zn(Hi,{source:"submit"}):Rn==="multiple"&&Zn("",{source:"blur"})),zr&&zr.apply(void 0,arguments))},bi=[];I.useEffect(function(){return function(){bi.forEach(function(oi){return clearTimeout(oi)}),bi.splice(0,bi.length)}},[]);var ji=function(Qr){var as,Wi=Qr.target,Pi=(as=Li.current)===null||as===void 0?void 0:as.getPopupElement();if(Pi&&Pi.contains(Wi)){var Gi=setTimeout(function(){var ea=bi.indexOf(Gi);if(ea!==-1&&bi.splice(ea,1),Xi(),!jn&&!Pi.contains(document.activeElement)){var Bs;(Bs=yi.current)===null||Bs===void 0||Bs.focus()}});bi.push(Gi)}for(var ds=arguments.length,Es=new Array(ds>1?ds-1:0),ys=1;ys<ds;ys++)Es[ys-1]=arguments[ys];Yr==null||Yr.apply(void 0,[Qr].concat(Es))},gi=I.useState({}),Ds=(0,A.Z)(gi,2),ks=Ds[1];function Is(){ks({})}var _s;jr&&(_s=function(Qr){Xn(Qr)}),Y(function(){var oi;return[Xr.current,(oi=Li.current)===null||oi===void 0?void 0:oi.getPopupElement()]},cr,Xn,!!jr);var aa=I.useMemo(function(){return(0,ce.Z)((0,ce.Z)({},Ke),{},{notFoundContent:an,open:gr,triggerOpen:cr,id:nn,showSearch:Er,multiple:On,toggleOpen:Xn})},[Ke,an,cr,gr,nn,Er,On,Xn]),oa=!!pr||ct,ha;oa&&(ha=I.createElement(z,{className:g()("".concat(Vt,"-arrow"),(0,q.Z)({},"".concat(Vt,"-arrow-loading"),ct)),customizeIcon:pr,customizeIconProps:{loading:ct,searchValue:Hi,open:gr,focused:$i,showSearch:Er}}));var Ws=function(){var Qr;Qn==null||Qn(),(Qr=yi.current)===null||Qr===void 0||Qr.focus(),Gt([],{type:"clear",values:Kt}),ai("",!1,!1)},pa=$(Vt,Ws,Kt,Tn,mr,ln,Hi,Rn),ns=pa.allowClear,xs=pa.clearIcon,ma=I.createElement(Ir,{ref:si}),Js=g()(Vt,dn,(Ct={},(0,q.Z)(Ct,"".concat(Vt,"-focused"),$i),(0,q.Z)(Ct,"".concat(Vt,"-multiple"),On),(0,q.Z)(Ct,"".concat(Vt,"-single"),!On),(0,q.Z)(Ct,"".concat(Vt,"-allow-clear"),Tn),(0,q.Z)(Ct,"".concat(Vt,"-show-arrow"),oa),(0,q.Z)(Ct,"".concat(Vt,"-disabled"),ln),(0,q.Z)(Ct,"".concat(Vt,"-loading"),ct),(0,q.Z)(Ct,"".concat(Vt,"-open"),gr),(0,q.Z)(Ct,"".concat(Vt,"-customize-input"),Qi),(0,q.Z)(Ct,"".concat(Vt,"-show-search"),Er),Ct)),qs=I.createElement(he,{ref:Li,disabled:ln,prefixCls:Vt,visible:cr,popupElement:ma,animation:sr,transitionName:ar,dropdownStyle:Cr,dropdownClassName:rr,direction:In,dropdownMatchSelectWidth:Pr,dropdownRender:qr,dropdownAlign:qn,placement:zn,builtinPlacements:dt,getPopupContainer:Bn,empty:qt,getTriggerDOMNode:function(){return fi.current},onPopupVisibleChange:_s,onPopupMouseEnter:Is},jr?I.cloneElement(jr,{ref:fs}):I.createElement(Lt,(0,O.Z)({},Ke,{domRef:fi,prefixCls:Vt,inputElement:Qi,ref:yi,id:nn,showSearch:Er,autoClearSearchValue:Yn,mode:Rn,activeDescendantId:_n,tagRender:bn,values:Kt,open:gr,onToggleOpen:Xn,activeValue:$t,searchValue:Hi,onSearch:ai,onSearchSubmit:Zi,onRemove:ps,tokenWithEnter:Ur}))),Us;return jr?Us=qs:Us=I.createElement("div",(0,O.Z)({className:Js},kr,{ref:Xr,onMouseDown:ji,onKeyDown:As,onKeyUp:Ps,onFocus:or,onBlur:Or}),$i&&!gr&&I.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Kt.map(function(oi){var Qr=oi.label,as=oi.value;return["number","string"].includes((0,w.Z)(Qr))?Qr:as}).join(", "))),qs,ha,ns&&xs),I.createElement(G.Provider,{value:aa},Us)}),Te=te,je=function(Ke,Pe){var _t=I.useRef({values:new Map,options:new Map}),Ct=I.useMemo(function(){var Vt=_t.current,dn=Vt.values,rn=Vt.options,bn=Ke.map(function(Kt){if(Kt.label===void 0){var Gt;return(0,ce.Z)((0,ce.Z)({},Kt),{},{label:(Gt=dn.get(Kt.value))===null||Gt===void 0?void 0:Gt.label})}return Kt}),In=new Map,Cn=new Map;return bn.forEach(function(Kt){In.set(Kt.value,Kt),Cn.set(Kt.value,Pe.get(Kt.value)||rn.get(Kt.value))}),_t.current.values=In,_t.current.options=Cn,bn},[Ke,Pe]),nn=I.useCallback(function(Vt){return Pe.get(Vt)||_t.current.options.get(Vt)},[Pe]);return[Ct,nn]};function Me(Ke,Pe){return de(Ke).join("").toUpperCase().includes(Pe)}var Fe=function(Ke,Pe,_t,Ct,nn){return I.useMemo(function(){if(!_t||Ct===!1)return Ke;var Vt=Pe.options,dn=Pe.label,rn=Pe.value,bn=[],In=typeof Ct=="function",Cn=_t.toUpperCase(),Kt=In?Ct:function(qt,fn){return nn?Me(fn[nn],Cn):fn[Vt]?Me(fn[dn!=="children"?dn:"label"],Cn):Me(fn[rn],Cn)},Gt=In?function(qt){return H(qt)}:function(qt){return qt};return Ke.forEach(function(qt){if(qt[Vt]){var fn=Kt(_t,Gt(qt));if(fn)bn.push(qt);else{var an=qt[Vt].filter(function(Qn){return Kt(_t,Gt(Qn))});an.length&&bn.push((0,ce.Z)((0,ce.Z)({},qt),{},(0,q.Z)({},Vt,an)))}return}Kt(_t,Gt(qt))&&bn.push(qt)}),bn},[Ke,Ct,nn,_t,Pe])},Je=p(17115),Xe=p(11592),Ve=["children","value"],xt=["children"];function Dt(Ke){var Pe=Ke,_t=Pe.key,Ct=Pe.props,nn=Ct.children,Vt=Ct.value,dn=(0,m.Z)(Ct,Ve);return(0,ce.Z)({key:_t,value:Vt!==void 0?Vt:_t,children:nn},dn)}function vt(Ke){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Xe.Z)(Ke).map(function(_t,Ct){if(!I.isValidElement(_t)||!_t.type)return null;var nn=_t,Vt=nn.type.isSelectOptGroup,dn=nn.key,rn=nn.props,bn=rn.children,In=(0,m.Z)(rn,xt);return Pe||!Vt?Dt(_t):(0,ce.Z)((0,ce.Z)({key:"__RC_SELECT_GRP__".concat(dn===null?Ct:dn,"__"),label:dn},In),{},{options:vt(bn)})}).filter(function(_t){return _t})}function Bt(Ke,Pe,_t,Ct,nn){return I.useMemo(function(){var Vt=Ke,dn=!Ke;dn&&(Vt=vt(Pe));var rn=new Map,bn=new Map,In=function(Gt,qt,fn){fn&&typeof fn=="string"&&Gt.set(qt[fn],qt)};function Cn(Kt){for(var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qt=0;qt<Kt.length;qt+=1){var fn=Kt[qt];!fn[_t.options]||Gt?(rn.set(fn[_t.value],fn),In(bn,fn,_t.label),In(bn,fn,Ct),In(bn,fn,nn)):Cn(fn[_t.options],!0)}}return Cn(Vt),{options:Vt,valueOptions:rn,labelOptions:bn}},[Ke,Pe,_t,Ct,nn])}function Zt(Ke){var Pe=I.useRef();Pe.current=Ke;var _t=I.useCallback(function(){return Pe.current.apply(Pe,arguments)},[]);return _t}var C=function(){return null};C.isSelectOptGroup=!0;var M=C,yt=function(){return null};yt.isSelectOption=!0;var ye=yt,Ne=p(80547),Sn=p(2738),it=p(45680),nt=I.createContext(null),tt=nt;function we(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Oe=["disabled","title","children","style","className"];function Le(Ke){return typeof Ke=="string"||typeof Ke=="number"}var rt=function(Pe,_t){var Ct=X(),nn=Ct.prefixCls,Vt=Ct.id,dn=Ct.open,rn=Ct.multiple,bn=Ct.mode,In=Ct.searchValue,Cn=Ct.toggleOpen,Kt=Ct.notFoundContent,Gt=Ct.onPopupScroll,qt=I.useContext(tt),fn=qt.flattenOptions,an=qt.onActiveValue,Qn=qt.defaultActiveFirstOption,Rn=qt.onSelect,ln=qt.menuItemSelectedIcon,ct=qt.rawValues,pt=qt.fieldNames,Tt=qt.virtual,Ft=qt.direction,It=qt.listHeight,sn=qt.listItemHeight,$t="".concat(nn,"-item"),hn=(0,Ne.Z)(function(){return fn},[dn,fn],function(qn,zn){return zn[0]&&qn[1]!==zn[1]}),_n=I.useRef(null),Dn=function(zn){zn.preventDefault()},Yn=function(zn){_n.current&&_n.current.scrollTo(typeof zn=="number"?{index:zn}:zn)},Zn=function(zn){for(var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Bn=hn.length,ur=0;ur<Bn;ur+=1){var er=(zn+ur*dt+Bn)%Bn,Lr=hn[er],zr=Lr.group,Vr=Lr.data;if(!zr&&!Vr.disabled)return er}return-1},dr=I.useState(function(){return Zn(0)}),En=(0,A.Z)(dr,2),Tn=En[0],pr=En[1],mr=function(zn){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;pr(zn);var Bn={source:dt?"keyboard":"mouse"},ur=hn[zn];if(!ur){an(null,-1,Bn);return}an(ur.value,zn,Bn)};(0,I.useEffect)(function(){mr(Qn!==!1?Zn(0):-1)},[hn.length,In]);var Ir=I.useCallback(function(qn){return ct.has(qn)&&bn!=="combobox"},[bn,(0,K.Z)(ct).toString(),ct.size]);(0,I.useEffect)(function(){var qn=setTimeout(function(){if(!rn&&dn&&ct.size===1){var dt=Array.from(ct)[0],Bn=hn.findIndex(function(ur){var er=ur.data;return er.value===dt});Bn!==-1&&(mr(Bn),Yn(Bn))}});if(dn){var zn;(zn=_n.current)===null||zn===void 0||zn.scrollTo(void 0)}return function(){return clearTimeout(qn)}},[dn,In,fn.length]);var sr=function(zn){zn!==void 0&&Rn(zn,{selected:!ct.has(zn)}),rn||Cn(!1)};if(I.useImperativeHandle(_t,function(){return{onKeyDown:function(zn){var dt=zn.which,Bn=zn.ctrlKey;switch(dt){case T.Z.N:case T.Z.P:case T.Z.UP:case T.Z.DOWN:{var ur=0;if(dt===T.Z.UP?ur=-1:dt===T.Z.DOWN?ur=1:we()&&Bn&&(dt===T.Z.N?ur=1:dt===T.Z.P&&(ur=-1)),ur!==0){var er=Zn(Tn+ur,ur);Yn(er),mr(er,!0)}break}case T.Z.ENTER:{var Lr=hn[Tn];Lr&&!Lr.data.disabled?sr(Lr.value):sr(void 0),dn&&zn.preventDefault();break}case T.Z.ESC:Cn(!1),dn&&zn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(zn){Yn(zn)}}}),hn.length===0)return I.createElement("div",{role:"listbox",id:"".concat(Vt,"_list"),className:"".concat($t,"-empty"),onMouseDown:Dn},Kt);var ar=Object.keys(pt).map(function(qn){return pt[qn]}),Cr=function(zn){return zn.label};function rr(qn,zn){var dt=qn.group;return{role:dt?"presentation":"option",id:"".concat(Vt,"_list_").concat(zn)}}var Pr=function(zn){var dt=hn[zn];if(!dt)return null;var Bn=dt.data||{},ur=Bn.value,er=dt.group,Lr=(0,j.Z)(Bn,!0),zr=Cr(dt);return dt?I.createElement("div",(0,O.Z)({"aria-label":typeof zr=="string"&&!er?zr:null},Lr,{key:zn},rr(dt,zn),{"aria-selected":Ir(ur)}),ur):null},qr={role:"listbox",id:"".concat(Vt,"_list")};return I.createElement(I.Fragment,null,Tt&&I.createElement("div",(0,O.Z)({},qr,{style:{height:0,width:0,overflow:"hidden"}}),Pr(Tn-1),Pr(Tn),Pr(Tn+1)),I.createElement(it.Z,{itemKey:"key",ref:_n,data:hn,height:It,itemHeight:sn,fullHeight:!1,onMouseDown:Dn,onScroll:Gt,virtual:Tt,direction:Ft,innerProps:Tt?null:qr},function(qn,zn){var dt,Bn=qn.group,ur=qn.groupOption,er=qn.data,Lr=qn.label,zr=qn.value,Vr=er.key;if(Bn){var fr,Yr=(fr=er.title)!==null&&fr!==void 0?fr:Le(Lr)?Lr.toString():void 0;return I.createElement("div",{className:g()($t,"".concat($t,"-group")),title:Yr},Lr!==void 0?Lr:Vr)}var Un=er.disabled,On=er.title,Er=er.children,kr=er.style,ei=er.className,Ii=(0,m.Z)(er,Oe),jn=(0,Sn.Z)(Ii,ar),ii=Ir(zr),Xr="".concat($t,"-option"),fi=g()($t,Xr,ei,(dt={},(0,q.Z)(dt,"".concat(Xr,"-grouped"),ur),(0,q.Z)(dt,"".concat(Xr,"-active"),Tn===zn&&!Un),(0,q.Z)(dt,"".concat(Xr,"-disabled"),Un),(0,q.Z)(dt,"".concat(Xr,"-selected"),ii),dt)),Li=Cr(qn),yi=!ln||typeof ln=="function"||ii,si=typeof Li=="number"?Li:Li||zr,Ci=Le(si)?si.toString():void 0;return On!==void 0&&(Ci=On),I.createElement("div",(0,O.Z)({},(0,j.Z)(jn),Tt?{}:rr(qn,zn),{"aria-selected":ii,className:fi,title:Ci,onMouseMove:function(){Tn===zn||Un||mr(zn)},onClick:function(){Un||sr(zr)},style:kr}),I.createElement("div",{className:"".concat(Xr,"-content")},si),I.isValidElement(ln)||ii,yi&&I.createElement(z,{className:"".concat($t,"-option-state"),customizeIcon:ln,customizeIconProps:{isSelected:ii}},ii?"\u2713":null))}))},_e=I.forwardRef(rt);_e.displayName="OptionList";var Qt=_e;function He(Ke){var Pe=Ke.mode,_t=Ke.options,Ct=Ke.children,nn=Ke.backfill,Vt=Ke.allowClear,dn=Ke.placeholder,rn=Ke.getInputElement,bn=Ke.showSearch,In=Ke.onSearch,Cn=Ke.defaultOpen,Kt=Ke.autoFocus,Gt=Ke.labelInValue,qt=Ke.value,fn=Ke.inputValue,an=Ke.optionLabelProp,Qn=isMultiple(Pe),Rn=bn!==void 0?bn:Qn||Pe==="combobox",ln=_t||convertChildrenToData(Ct);if(warning(Pe!=="tags"||ln.every(function(Ft){return!Ft.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Pe==="tags"||Pe==="combobox"){var ct=ln.some(function(Ft){return Ft.options?Ft.options.some(function(It){return typeof("value"in It?It.value:It.key)=="number"}):typeof("value"in Ft?Ft.value:Ft.key)=="number"});warning(!ct,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Pe!=="combobox"||!an,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Pe==="combobox"||!nn,"`backfill` only works with `combobox` mode."),warning(Pe==="combobox"||!rn,"`getInputElement` only work with `combobox` mode."),noteOnce(Pe!=="combobox"||!rn||!Vt||!dn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),In&&!Rn&&Pe!=="combobox"&&Pe!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Cn||Kt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),qt!=null){var pt=toArray(qt);warning(!Gt||pt.every(function(Ft){return _typeof(Ft)==="object"&&("key"in Ft||"value"in Ft)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Qn||Array.isArray(qt),"`value` should be array when `mode` is `multiple` or `tags`")}if(Ct){var Tt=null;toNodeArray(Ct).some(function(Ft){if(!React.isValidElement(Ft)||!Ft.type)return!1;var It=Ft,sn=It.type;if(sn.isSelectOption)return!1;if(sn.isSelectOptGroup){var $t=toNodeArray(Ft.props.children).every(function(hn){return!React.isValidElement(hn)||!Ft.type||hn.type.isSelectOption?!0:(Tt=hn.type,!1)});return!$t}return Tt=sn,!0}),Tt&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Tt.displayName||Tt.name||Tt,"`.")),warning(fn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function xn(Ke,Pe){if(Ke){var _t=function Ct(nn){for(var Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,dn=0;dn<nn.length;dn++){var rn=nn[dn];if(rn[Pe==null?void 0:Pe.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Vt&&Array.isArray(rn[Pe==null?void 0:Pe.options])&&Ct(rn[Pe==null?void 0:Pe.options],!0))break}};_t(Ke)}}var Ln=null,_r=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],Hn=["inputValue"];function yn(Ke){return!Ke||(0,w.Z)(Ke)!=="object"}var wn=I.forwardRef(function(Ke,Pe){var _t=Ke.id,Ct=Ke.mode,nn=Ke.prefixCls,Vt=nn===void 0?"rc-select":nn,dn=Ke.backfill,rn=Ke.fieldNames,bn=Ke.inputValue,In=Ke.searchValue,Cn=Ke.onSearch,Kt=Ke.autoClearSearchValue,Gt=Kt===void 0?!0:Kt,qt=Ke.onSelect,fn=Ke.onDeselect,an=Ke.dropdownMatchSelectWidth,Qn=an===void 0?!0:an,Rn=Ke.filterOption,ln=Ke.filterSort,ct=Ke.optionFilterProp,pt=Ke.optionLabelProp,Tt=Ke.options,Ft=Ke.children,It=Ke.defaultActiveFirstOption,sn=Ke.menuItemSelectedIcon,$t=Ke.virtual,hn=Ke.direction,_n=Ke.listHeight,Dn=_n===void 0?200:_n,Yn=Ke.listItemHeight,Zn=Yn===void 0?20:Yn,dr=Ke.value,En=Ke.defaultValue,Tn=Ke.labelInValue,pr=Ke.onChange,mr=(0,m.Z)(Ke,_r),Ir=(0,Je.ZP)(_t),sr=oe(Ct),ar=!!(!Tt&&Ft),Cr=I.useMemo(function(){return Rn===void 0&&Ct==="combobox"?!1:Rn},[Rn,Ct]),rr=I.useMemo(function(){return Q(rn,ar)},[JSON.stringify(rn),ar]),Pr=(0,re.Z)("",{value:In!==void 0?In:bn,postState:function(xr){return xr||""}}),qr=(0,A.Z)(Pr,2),qn=qr[0],zn=qr[1],dt=Bt(Tt,Ft,rr,ct,pt),Bn=dt.valueOptions,ur=dt.labelOptions,er=dt.options,Lr=I.useCallback(function(gr){var xr=de(gr);return xr.map(function(cr){var Xn,Ur,ai,Zi,Ri;if(yn(cr))Xn=cr;else{var Ti;ai=cr.key,Ur=cr.label,Xn=(Ti=cr.value)!==null&&Ti!==void 0?Ti:ai}var Fr=Bn.get(Xn);if(Fr){var Oi;if(Ur===void 0&&(Ur=Fr==null?void 0:Fr[pt||rr.label]),ai===void 0&&(ai=(Oi=Fr==null?void 0:Fr.key)!==null&&Oi!==void 0?Oi:Xn),Zi=Fr==null?void 0:Fr.disabled,Ri=Fr==null?void 0:Fr.title,0)var As}return{label:Ur,value:Xn,key:ai,disabled:Zi,title:Ri}})},[rr,pt,Bn]),zr=(0,re.Z)(En,{value:dr}),Vr=(0,A.Z)(zr,2),fr=Vr[0],Yr=Vr[1],Un=I.useMemo(function(){var gr,xr=Lr(fr);return Ct==="combobox"&&ue((gr=xr[0])===null||gr===void 0?void 0:gr.value)?[]:xr},[fr,Lr,Ct]),On=je(Un,Bn),Er=(0,A.Z)(On,2),kr=Er[0],ei=Er[1],Ii=I.useMemo(function(){if(!Ct&&kr.length===1){var gr=kr[0];if(gr.value===null&&(gr.label===null||gr.label===void 0))return[]}return kr.map(function(xr){var cr;return(0,ce.Z)((0,ce.Z)({},xr),{},{label:(cr=xr.label)!==null&&cr!==void 0?cr:xr.value})})},[Ct,kr]),jn=I.useMemo(function(){return new Set(kr.map(function(gr){return gr.value}))},[kr]);I.useEffect(function(){if(Ct==="combobox"){var gr,xr=(gr=kr[0])===null||gr===void 0?void 0:gr.value;zn(N(xr)?String(xr):"")}},[kr]);var ii=Zt(function(gr,xr){var cr,Xn=xr!=null?xr:gr;return cr={},(0,q.Z)(cr,rr.value,gr),(0,q.Z)(cr,rr.label,Xn),cr}),Xr=I.useMemo(function(){if(Ct!=="tags")return er;var gr=(0,K.Z)(er),xr=function(Xn){return Bn.has(Xn)};return(0,K.Z)(kr).sort(function(cr,Xn){return cr.value<Xn.value?-1:1}).forEach(function(cr){var Xn=cr.value;xr(Xn)||gr.push(ii(Xn,cr.label))}),gr},[ii,er,Bn,kr,Ct]),fi=Fe(Xr,rr,qn,Cr,ct),Li=I.useMemo(function(){return Ct!=="tags"||!qn||fi.some(function(gr){return gr[ct||"value"]===qn})||fi.some(function(gr){return gr[rr.value]===qn})?fi:[ii(qn)].concat((0,K.Z)(fi))},[ii,ct,Ct,fi,qn,rr]),yi=I.useMemo(function(){return ln?(0,K.Z)(Li).sort(function(gr,xr){return ln(gr,xr)}):Li},[Li,ln]),si=I.useMemo(function(){return Re(yi,{fieldNames:rr,childrenAsData:ar})},[yi,rr,ar]),Ci=function(xr){var cr=Lr(xr);if(Yr(cr),pr&&(cr.length!==kr.length||cr.some(function(ai,Zi){var Ri;return((Ri=kr[Zi])===null||Ri===void 0?void 0:Ri.value)!==(ai==null?void 0:ai.value)}))){var Xn=Tn?cr:cr.map(function(ai){return ai.value}),Ur=cr.map(function(ai){return H(ei(ai.value))});pr(sr?Xn:Xn[0],sr?Ur:Ur[0])}},ui=I.useState(null),$i=(0,A.Z)(ui,2),Tr=$i[0],Xi=$i[1],Hi=I.useState(0),Qi=(0,A.Z)(Hi,2),jr=Qi[0],fs=Qi[1],vs=It!==void 0?It:Ct!=="combobox",cs=I.useCallback(function(gr,xr){var cr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Xn=cr.source,Ur=Xn===void 0?"keyboard":Xn;fs(xr),dn&&Ct==="combobox"&&gr!==null&&Ur==="keyboard"&&Xi(String(gr))},[dn,Ct]),Br=function(xr,cr,Xn){var Ur=function(){var us,or=ei(xr);return[Tn?{label:or==null?void 0:or[rr.label],value:xr,key:(us=or==null?void 0:or.key)!==null&&us!==void 0?us:xr}:xr,H(or)]};if(cr&&qt){var ai=Ur(),Zi=(0,A.Z)(ai,2),Ri=Zi[0],Ti=Zi[1];qt(Ri,Ti)}else if(!cr&&fn&&Xn!=="clear"){var Fr=Ur(),Oi=(0,A.Z)(Fr,2),As=Oi[0],Ps=Oi[1];fn(As,Ps)}},hs=Zt(function(gr,xr){var cr,Xn=sr?xr.selected:!0;Xn?cr=sr?[].concat((0,K.Z)(kr),[gr]):[gr]:cr=kr.filter(function(Ur){return Ur.value!==gr}),Ci(cr),Br(gr,Xn),Ct==="combobox"?Xi(""):(!oe||Gt)&&(zn(""),Xi(""))}),Ts=function(xr,cr){Ci(xr);var Xn=cr.type,Ur=cr.values;(Xn==="remove"||Xn==="clear")&&Ur.forEach(function(ai){Br(ai.value,!1,Xn)})},Nn=function(xr,cr){if(zn(xr),Xi(null),cr.source==="submit"){var Xn=(xr||"").trim();if(Xn){var Ur=Array.from(new Set([].concat((0,K.Z)(jn),[Xn])));Ci(Ur),Br(Xn,!0),zn("")}return}cr.source!=="blur"&&(Ct==="combobox"&&Ci(xr),Cn==null||Cn(xr))},Mi=function(xr){var cr=xr;Ct!=="tags"&&(cr=xr.map(function(Ur){var ai=ur.get(Ur);return ai==null?void 0:ai.value}).filter(function(Ur){return Ur!==void 0}));var Xn=Array.from(new Set([].concat((0,K.Z)(jn),(0,K.Z)(cr))));Ci(Xn),Xn.forEach(function(Ur){Br(Ur,!0)})},ls=I.useMemo(function(){var gr=$t!==!1&&Qn!==!1;return(0,ce.Z)((0,ce.Z)({},dt),{},{flattenOptions:si,onActiveValue:cs,defaultActiveFirstOption:vs,onSelect:hs,menuItemSelectedIcon:sn,rawValues:jn,fieldNames:rr,virtual:gr,direction:hn,listHeight:Dn,listItemHeight:Zn,childrenAsData:ar})},[dt,si,cs,vs,hs,sn,jn,rr,$t,Qn,Dn,Zn,ar]);return I.createElement(tt.Provider,{value:ls},I.createElement(Te,(0,O.Z)({},mr,{id:Ir,prefixCls:Vt,ref:Pe,omitDomProps:Hn,mode:Ct,displayValues:Ii,onDisplayValuesChange:Ts,direction:hn,searchValue:qn,onSearch:Nn,autoClearSearchValue:Gt,onSearchSplit:Mi,dropdownMatchSelectWidth:Qn,OptionList:Qt,emptyOptions:!si.length,activeValue:Tr,activeDescendantId:"".concat(Ir,"_list_").concat(jr)})))}),Ye=wn;Ye.Option=ye,Ye.OptGroup=M;var Ot=Ye,Ut=Ot},9296:function(Xt,Ze,p){"use strict";p.r(Ze),p.d(Ze,{ResizableTextArea:function(){return Ee},default:function(){return ue}});var O=p(72308),K=p(77321),q=p(49618),ce=p(62853),A=p(52487),m=p(74416),w=p(80702),re=p(92310),o=p.n(re),I=p(93681),k=p(5643),g=p(18929),_=p(59301),S=p(29301),T=p(34280),B=p(16089),se=`
|
|
|
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;
|
|
|
`,z=["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"],$={},G;function X(J){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=J.getAttribute("id")||J.getAttribute("data-reactid")||J.getAttribute("name");if(v&&$[x])return $[x];var Z=window.getComputedStyle(J),me=Z.getPropertyValue("box-sizing")||Z.getPropertyValue("-moz-box-sizing")||Z.getPropertyValue("-webkit-box-sizing"),Be=parseFloat(Z.getPropertyValue("padding-bottom"))+parseFloat(Z.getPropertyValue("padding-top")),Ue=parseFloat(Z.getPropertyValue("border-bottom-width"))+parseFloat(Z.getPropertyValue("border-top-width")),ze=z.map(function(mt){return"".concat(mt,":").concat(Z.getPropertyValue(mt))}).join(";"),qe={sizingStyle:ze,paddingSize:Be,borderSize:Ue,boxSizing:me};return v&&x&&($[x]=qe),qe}function L(J){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;G||(G=document.createElement("textarea"),G.setAttribute("tab-index","-1"),G.setAttribute("aria-hidden","true"),document.body.appendChild(G)),J.getAttribute("wrap")?G.setAttribute("wrap",J.getAttribute("wrap")):G.removeAttribute("wrap");var me=X(J,v),Be=me.paddingSize,Ue=me.borderSize,ze=me.boxSizing,qe=me.sizingStyle;G.setAttribute("style","".concat(qe,";").concat(se)),G.value=J.value||J.placeholder||"";var mt=void 0,gt=void 0,at,Lt=G.scrollHeight;if(ze==="border-box"?Lt+=Ue:ze==="content-box"&&(Lt-=Be),x!==null||Z!==null){G.value=" ";var tn=G.scrollHeight-Be;x!==null&&(mt=tn*x,ze==="border-box"&&(mt=mt+Be+Ue),Lt=Math.max(mt,Lt)),Z!==null&&(gt=tn*Z,ze==="border-box"&&(gt=gt+Be+Ue),at=Lt>gt?"":"hidden",Lt=Math.min(gt,Lt))}var Rt={height:Lt,overflowY:at,resize:"none"};return mt&&(Rt.minHeight=mt),gt&&(Rt.maxHeight=gt),Rt}var D=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Y=0,j=1,xe=2,Ce=_.forwardRef(function(J,v){var x=J,Z=x.prefixCls,me=x.onPressEnter,Be=x.defaultValue,Ue=x.value,ze=x.autoSize,qe=x.onResize,mt=x.className,gt=x.style,at=x.disabled,Lt=x.onChange,tn=x.onInternalAutoSize,Rt=(0,m.Z)(x,D),Ht=(0,g.Z)(Be,{value:Ue,postState:function(M){return M!=null?M:""}}),ut=(0,A.Z)(Ht,2),wt=ut[0],he=ut[1],pe=function(M){he(M.target.value),Lt==null||Lt(M)},le=_.useRef();_.useImperativeHandle(v,function(){return{textArea:le.current}});var Q=_.useMemo(function(){return ze&&(0,ce.Z)(ze)==="object"?[ze.minRows,ze.maxRows]:[]},[ze]),Re=(0,A.Z)(Q,2),H=Re[0],R=Re[1],P=!!ze,fe=function(){try{if(document.activeElement===le.current){var M=le.current,yt=M.selectionStart,ye=M.selectionEnd,Ne=M.scrollTop;le.current.setSelectionRange(yt,ye),le.current.scrollTop=Ne}}catch(Sn){}},oe=_.useState(xe),te=(0,A.Z)(oe,2),Te=te[0],je=te[1],Me=_.useState(),Fe=(0,A.Z)(Me,2),Je=Fe[0],Xe=Fe[1],Ve=function(){je(Y)};(0,T.Z)(function(){P&&Ve()},[Ue,H,R,P]),(0,T.Z)(function(){if(Te===Y)je(j);else if(Te===j){var C=L(le.current,!1,H,R);je(xe),Xe(C)}else fe()},[Te]);var xt=_.useRef(),Dt=function(){B.Z.cancel(xt.current)},vt=function(M){Te===xe&&(qe==null||qe(M),ze&&(Dt(),xt.current=(0,B.Z)(function(){Ve()})))};_.useEffect(function(){return Dt},[]);var Bt=P?Je:null,Zt=(0,K.Z)((0,K.Z)({},gt),Bt);return(Te===Y||Te===j)&&(Zt.overflowY="hidden",Zt.overflowX="hidden"),_.createElement(S.Z,{onResize:vt,disabled:!(ze||qe)},_.createElement("textarea",(0,O.Z)({},Rt,{ref:le,style:Zt,className:o()(Z,mt,(0,q.Z)({},"".concat(Z,"-disabled"),at)),disabled:at,value:wt,onChange:pe})))}),Ee=Ce,ge=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function de(J,v){return(0,w.Z)(J||"").slice(0,v).join("")}function W(J,v,x,Z){var me=x;return J?me=de(x,Z):(0,w.Z)(v||"").length<x.length&&(0,w.Z)(x||"").length>Z&&(me=v),me}var be=_.forwardRef(function(J,v){var x,Z=J.defaultValue,me=J.value,Be=J.onFocus,Ue=J.onBlur,ze=J.onChange,qe=J.allowClear,mt=J.maxLength,gt=J.onCompositionStart,at=J.onCompositionEnd,Lt=J.suffix,tn=J.prefixCls,Rt=tn===void 0?"rc-textarea":tn,Ht=J.classes,ut=J.showCount,wt=J.className,he=J.style,pe=J.disabled,le=J.hidden,Q=J.classNames,Re=J.styles,H=J.onResize,R=(0,m.Z)(J,ge),P=(0,g.Z)(Z,{value:me,defaultValue:Z}),fe=(0,A.Z)(P,2),oe=fe[0],te=fe[1],Te=(0,_.useRef)(null),je=_.useState(!1),Me=(0,A.Z)(je,2),Fe=Me[0],Je=Me[1],Xe=_.useState(!1),Ve=(0,A.Z)(Xe,2),xt=Ve[0],Dt=Ve[1],vt=_.useRef(),Bt=_.useRef(0),Zt=_.useState(null),C=(0,A.Z)(Zt,2),M=C[0],yt=C[1],ye=function(){var yn;(yn=Te.current)===null||yn===void 0||yn.textArea.focus()};(0,_.useImperativeHandle)(v,function(){return{resizableTextArea:Te.current,focus:ye,blur:function(){var yn;(yn=Te.current)===null||yn===void 0||yn.textArea.blur()}}}),(0,_.useEffect)(function(){Je(function(Hn){return!pe&&Hn})},[pe]);var Ne=Number(mt)>0,Sn=function(yn){Dt(!0),vt.current=oe,Bt.current=yn.currentTarget.selectionStart,gt==null||gt(yn)},it=function(yn){Dt(!1);var wn=yn.currentTarget.value;if(Ne){var Ye,Ot=Bt.current>=mt+1||Bt.current===((Ye=vt.current)===null||Ye===void 0?void 0:Ye.length);wn=W(Ot,vt.current,wn,mt)}wn!==oe&&(te(wn),(0,k.rJ)(yn.currentTarget,yn,ze,wn)),at==null||at(yn)},nt=function(yn){var wn=yn.target.value;if(!xt&&Ne){var Ye=yn.target.selectionStart>=mt+1||yn.target.selectionStart===wn.length||!yn.target.selectionStart;wn=W(Ye,oe,wn,mt)}te(wn),(0,k.rJ)(yn.currentTarget,yn,ze,wn)},tt=function(yn){var wn=R.onPressEnter,Ye=R.onKeyDown;yn.key==="Enter"&&wn&&wn(yn),Ye==null||Ye(yn)},we=function(yn){Je(!0),Be==null||Be(yn)},Oe=function(yn){Je(!1),Ue==null||Ue(yn)},Le=function(yn){var wn;te(""),ye(),(0,k.rJ)((wn=Te.current)===null||wn===void 0?void 0:wn.textArea,yn,ze)},rt=(0,k.D7)(oe);!xt&&Ne&&me==null&&(rt=de(rt,mt));var _e=Lt,Qt;if(ut){var He=(0,w.Z)(rt).length;(0,ce.Z)(ut)==="object"?Qt=ut.formatter({value:rt,count:He,maxLength:mt}):Qt="".concat(He).concat(Ne?" / ".concat(mt):""),_e=_.createElement(_.Fragment,null,_e,_.createElement("span",{className:o()("".concat(Rt,"-data-count"),Q==null?void 0:Q.count),style:Re==null?void 0:Re.count},Qt))}var xn=function(yn){var wn;H==null||H(yn),(wn=Te.current)!==null&&wn!==void 0&&wn.textArea.style.height&&yt(!0)},Ln=!R.autoSize&&!ut&&!qe,_r=_.createElement(I.BaseInput,{value:rt,allowClear:qe,handleReset:Le,suffix:_e,prefixCls:Rt,classes:{affixWrapper:o()(Ht==null?void 0:Ht.affixWrapper,(x={},(0,q.Z)(x,"".concat(Rt,"-show-count"),ut),(0,q.Z)(x,"".concat(Rt,"-textarea-allow-clear"),qe),x))},disabled:pe,focused:Fe,className:wt,style:(0,K.Z)((0,K.Z)({},he),M&&!Ln?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Qt=="string"?Qt:void 0}},hidden:le,inputElement:_.createElement(Ee,(0,O.Z)({},R,{onKeyDown:tt,onChange:nt,onFocus:we,onBlur:Oe,onCompositionStart:Sn,onCompositionEnd:it,className:Q==null?void 0:Q.textarea,style:(0,K.Z)((0,K.Z)({},Re==null?void 0:Re.textarea),{},{resize:he==null?void 0:he.resize}),disabled:pe,prefixCls:Rt,onResize:xn,ref:Te}))});return _r}),N=be,ue=N},55477:function(Xt,Ze,p){"use strict";p.d(Ze,{G:function(){return _},Z:function(){return se}});var O=p(72308),K=p(77321),q=p(74416),ce=p(35593),A=p(59301),m={shiftX:64,adjustY:1},w={adjustX:1,shiftY:!0},re=[0,0],o={left:{points:["cr","cl"],overflow:w,offset:[-4,0],targetOffset:re},right:{points:["cl","cr"],overflow:w,offset:[4,0],targetOffset:re},top:{points:["bc","tc"],overflow:m,offset:[0,-4],targetOffset:re},bottom:{points:["tc","bc"],overflow:m,offset:[0,4],targetOffset:re},topLeft:{points:["bl","tl"],overflow:m,offset:[0,-4],targetOffset:re},leftTop:{points:["tr","tl"],overflow:w,offset:[-4,0],targetOffset:re},topRight:{points:["br","tr"],overflow:m,offset:[0,-4],targetOffset:re},rightTop:{points:["tl","tr"],overflow:w,offset:[4,0],targetOffset:re},bottomRight:{points:["tr","br"],overflow:m,offset:[0,4],targetOffset:re},rightBottom:{points:["bl","br"],overflow:w,offset:[4,0],targetOffset:re},bottomLeft:{points:["tl","bl"],overflow:m,offset:[0,4],targetOffset:re},leftBottom:{points:["br","bl"],overflow:w,offset:[-4,0],targetOffset:re}},I=null,k=p(92310),g=p.n(k);function _(z){var $=z.children,G=z.prefixCls,X=z.id,L=z.overlayInnerStyle,D=z.className,Y=z.style;return A.createElement("div",{className:g()("".concat(G,"-content"),D),style:Y},A.createElement("div",{className:"".concat(G,"-inner"),id:X,role:"tooltip",style:L},typeof $=="function"?$():$))}var S=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],T=function($,G){var X=$.overlayClassName,L=$.trigger,D=L===void 0?["hover"]:L,Y=$.mouseEnterDelay,j=Y===void 0?0:Y,xe=$.mouseLeaveDelay,Ce=xe===void 0?.1:xe,Ee=$.overlayStyle,ge=$.prefixCls,de=ge===void 0?"rc-tooltip":ge,W=$.children,be=$.onVisibleChange,N=$.afterVisibleChange,ue=$.transitionName,J=$.animation,v=$.motion,x=$.placement,Z=x===void 0?"right":x,me=$.align,Be=me===void 0?{}:me,Ue=$.destroyTooltipOnHide,ze=Ue===void 0?!1:Ue,qe=$.defaultVisible,mt=$.getTooltipContainer,gt=$.overlayInnerStyle,at=$.arrowContent,Lt=$.overlay,tn=$.id,Rt=$.showArrow,Ht=Rt===void 0?!0:Rt,ut=(0,q.Z)($,S),wt=(0,A.useRef)(null);(0,A.useImperativeHandle)(G,function(){return wt.current});var he=(0,K.Z)({},ut);"visible"in $&&(he.popupVisible=$.visible);var pe=function(){return A.createElement(_,{key:"content",prefixCls:de,id:tn,overlayInnerStyle:gt},Lt)};return A.createElement(ce.Z,(0,O.Z)({popupClassName:X,prefixCls:de,popup:pe,action:D,builtinPlacements:o,popupPlacement:Z,ref:wt,popupAlign:Be,getPopupContainer:mt,onPopupVisibleChange:be,afterPopupVisibleChange:N,popupTransitionName:ue,popupAnimation:J,popupMotion:v,defaultPopupVisible:qe,autoDestroy:ze,mouseLeaveDelay:Ce,popupStyle:Ee,mouseEnterDelay:j,arrow:Ht},he),W)},B=(0,A.forwardRef)(T),se=B},39417:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return j}});var O=p(72308),K=p(49618),q=p(74416),ce=p(77321),A=p(96949),m=p(55090),w=p(80237),re=p(77205),o=p(38793),I=p(92310),k=p.n(I),g=p(26112),_=p(59301),S=p(39378),T=function(Ce){for(var Ee=Ce.prefixCls,ge=Ce.level,de=Ce.isStart,W=Ce.isEnd,be="".concat(Ee,"-indent-unit"),N=[],ue=0;ue<ge;ue+=1){var J;N.push(_.createElement("span",{key:ue,className:k()(be,(J={},(0,K.Z)(J,"".concat(be,"-start"),de[ue]),(0,K.Z)(J,"".concat(be,"-end"),W[ue]),J))}))}return _.createElement("span",{"aria-hidden":"true",className:"".concat(Ee,"-indent")},N)},B=_.memo(T),se=p(67841),z=p(71430),$=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],G="open",X="close",L="---",D=function(xe){(0,re.Z)(Ee,xe);var Ce=(0,o.Z)(Ee);function Ee(){var ge;(0,A.Z)(this,Ee);for(var de=arguments.length,W=new Array(de),be=0;be<de;be++)W[be]=arguments[be];return ge=Ce.call.apply(Ce,[this].concat(W)),ge.state={dragNodeHighlight:!1},ge.selectHandle=void 0,ge.cacheIndent=void 0,ge.onSelectorClick=function(N){var ue=ge.props.context.onNodeClick;ue(N,(0,z.F)(ge.props)),ge.isSelectable()?ge.onSelect(N):ge.onCheck(N)},ge.onSelectorDoubleClick=function(N){var ue=ge.props.context.onNodeDoubleClick;ue(N,(0,z.F)(ge.props))},ge.onSelect=function(N){if(!ge.isDisabled()){var ue=ge.props.context.onNodeSelect;ue(N,(0,z.F)(ge.props))}},ge.onCheck=function(N){if(!ge.isDisabled()){var ue=ge.props,J=ue.disableCheckbox,v=ue.checked,x=ge.props.context.onNodeCheck;if(!(!ge.isCheckable()||J)){var Z=!v;x(N,(0,z.F)(ge.props),Z)}}},ge.onMouseEnter=function(N){var ue=ge.props.context.onNodeMouseEnter;ue(N,(0,z.F)(ge.props))},ge.onMouseLeave=function(N){var ue=ge.props.context.onNodeMouseLeave;ue(N,(0,z.F)(ge.props))},ge.onContextMenu=function(N){var ue=ge.props.context.onNodeContextMenu;ue(N,(0,z.F)(ge.props))},ge.onDragStart=function(N){var ue=ge.props.context.onNodeDragStart;N.stopPropagation(),ge.setState({dragNodeHighlight:!0}),ue(N,(0,w.Z)(ge));try{N.dataTransfer.setData("text/plain","")}catch(J){}},ge.onDragEnter=function(N){var ue=ge.props.context.onNodeDragEnter;N.preventDefault(),N.stopPropagation(),ue(N,(0,w.Z)(ge))},ge.onDragOver=function(N){var ue=ge.props.context.onNodeDragOver;N.preventDefault(),N.stopPropagation(),ue(N,(0,w.Z)(ge))},ge.onDragLeave=function(N){var ue=ge.props.context.onNodeDragLeave;N.stopPropagation(),ue(N,(0,w.Z)(ge))},ge.onDragEnd=function(N){var ue=ge.props.context.onNodeDragEnd;N.stopPropagation(),ge.setState({dragNodeHighlight:!1}),ue(N,(0,w.Z)(ge))},ge.onDrop=function(N){var ue=ge.props.context.onNodeDrop;N.preventDefault(),N.stopPropagation(),ge.setState({dragNodeHighlight:!1}),ue(N,(0,w.Z)(ge))},ge.onExpand=function(N){var ue=ge.props,J=ue.loading,v=ue.context.onNodeExpand;J||v(N,(0,z.F)(ge.props))},ge.setSelectHandle=function(N){ge.selectHandle=N},ge.getNodeState=function(){var N=ge.props.expanded;return ge.isLeaf()?null:N?G:X},ge.hasChildren=function(){var N=ge.props.eventKey,ue=ge.props.context.keyEntities,J=(0,se.Z)(ue,N)||{},v=J.children;return!!(v||[]).length},ge.isLeaf=function(){var N=ge.props,ue=N.isLeaf,J=N.loaded,v=ge.props.context.loadData,x=ge.hasChildren();return ue===!1?!1:ue||!v&&!x||v&&J&&!x},ge.isDisabled=function(){var N=ge.props.disabled,ue=ge.props.context.disabled;return!!(ue||N)},ge.isCheckable=function(){var N=ge.props.checkable,ue=ge.props.context.checkable;return!ue||N===!1?!1:ue},ge.syncLoadData=function(N){var ue=N.expanded,J=N.loading,v=N.loaded,x=ge.props.context,Z=x.loadData,me=x.onNodeLoad;J||Z&&ue&&!ge.isLeaf()&&!ge.hasChildren()&&!v&&me((0,z.F)(ge.props))},ge.isDraggable=function(){var N=ge.props,ue=N.data,J=N.context.draggable;return!!(J&&(!J.nodeDraggable||J.nodeDraggable(ue)))},ge.renderDragHandler=function(){var N=ge.props.context,ue=N.draggable,J=N.prefixCls;return ue!=null&&ue.icon?_.createElement("span",{className:"".concat(J,"-draggable-icon")},ue.icon):null},ge.renderSwitcherIconDom=function(N){var ue=ge.props.switcherIcon,J=ge.props.context.switcherIcon,v=ue||J;return typeof v=="function"?v((0,ce.Z)((0,ce.Z)({},ge.props),{},{isLeaf:N})):v},ge.renderSwitcher=function(){var N=ge.props.expanded,ue=ge.props.context.prefixCls;if(ge.isLeaf()){var J=ge.renderSwitcherIconDom(!0);return J!==!1?_.createElement("span",{className:k()("".concat(ue,"-switcher"),"".concat(ue,"-switcher-noop"))},J):null}var v=k()("".concat(ue,"-switcher"),"".concat(ue,"-switcher_").concat(N?G:X)),x=ge.renderSwitcherIconDom(!1);return x!==!1?_.createElement("span",{onClick:ge.onExpand,className:v},x):null},ge.renderCheckbox=function(){var N=ge.props,ue=N.checked,J=N.halfChecked,v=N.disableCheckbox,x=ge.props.context.prefixCls,Z=ge.isDisabled(),me=ge.isCheckable();if(!me)return null;var Be=typeof me!="boolean"?me:null;return _.createElement("span",{className:k()("".concat(x,"-checkbox"),ue&&"".concat(x,"-checkbox-checked"),!ue&&J&&"".concat(x,"-checkbox-indeterminate"),(Z||v)&&"".concat(x,"-checkbox-disabled")),onClick:ge.onCheck},Be)},ge.renderIcon=function(){var N=ge.props.loading,ue=ge.props.context.prefixCls;return _.createElement("span",{className:k()("".concat(ue,"-iconEle"),"".concat(ue,"-icon__").concat(ge.getNodeState()||"docu"),N&&"".concat(ue,"-icon_loading"))})},ge.renderSelector=function(){var N=ge.state.dragNodeHighlight,ue=ge.props,J=ue.title,v=J===void 0?L:J,x=ue.selected,Z=ue.icon,me=ue.loading,Be=ue.data,Ue=ge.props.context,ze=Ue.prefixCls,qe=Ue.showIcon,mt=Ue.icon,gt=Ue.loadData,at=Ue.titleRender,Lt=ge.isDisabled(),tn="".concat(ze,"-node-content-wrapper"),Rt;if(qe){var Ht=Z||mt;Rt=Ht?_.createElement("span",{className:k()("".concat(ze,"-iconEle"),"".concat(ze,"-icon__customize"))},typeof Ht=="function"?Ht(ge.props):Ht):ge.renderIcon()}else gt&&me&&(Rt=ge.renderIcon());var ut;typeof v=="function"?ut=v(Be):at?ut=at(Be):ut=v;var wt=_.createElement("span",{className:"".concat(ze,"-title")},ut);return _.createElement("span",{ref:ge.setSelectHandle,title:typeof v=="string"?v:"",className:k()("".concat(tn),"".concat(tn,"-").concat(ge.getNodeState()||"normal"),!Lt&&(x||N)&&"".concat(ze,"-node-selected")),onMouseEnter:ge.onMouseEnter,onMouseLeave:ge.onMouseLeave,onContextMenu:ge.onContextMenu,onClick:ge.onSelectorClick,onDoubleClick:ge.onSelectorDoubleClick},Rt,wt,ge.renderDropIndicator())},ge.renderDropIndicator=function(){var N=ge.props,ue=N.disabled,J=N.eventKey,v=ge.props.context,x=v.draggable,Z=v.dropLevelOffset,me=v.dropPosition,Be=v.prefixCls,Ue=v.indent,ze=v.dropIndicatorRender,qe=v.dragOverNodeKey,mt=v.direction,gt=!!x,at=!ue&>&&qe===J,Lt=Ue!=null?Ue:ge.cacheIndent;return ge.cacheIndent=Ue,at?ze({dropPosition:me,dropLevelOffset:Z,indent:Lt,prefixCls:Be,direction:mt}):null},ge}return(0,m.Z)(Ee,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var de=this.props.selectable,W=this.props.context.selectable;return typeof de=="boolean"?de:W}},{key:"render",value:function(){var de,W=this.props,be=W.eventKey,N=W.className,ue=W.style,J=W.dragOver,v=W.dragOverGapTop,x=W.dragOverGapBottom,Z=W.isLeaf,me=W.isStart,Be=W.isEnd,Ue=W.expanded,ze=W.selected,qe=W.checked,mt=W.halfChecked,gt=W.loading,at=W.domRef,Lt=W.active,tn=W.data,Rt=W.onMouseMove,Ht=W.selectable,ut=(0,q.Z)(W,$),wt=this.props.context,he=wt.prefixCls,pe=wt.filterTreeNode,le=wt.keyEntities,Q=wt.dropContainerKey,Re=wt.dropTargetKey,H=wt.draggingNodeKey,R=this.isDisabled(),P=(0,g.Z)(ut,{aria:!0,data:!0}),fe=(0,se.Z)(le,be)||{},oe=fe.level,te=Be[Be.length-1],Te=this.isDraggable(),je=!R&&Te,Me=H===be,Fe=Ht!==void 0?{"aria-selected":!!Ht}:void 0;return _.createElement("div",(0,O.Z)({ref:at,className:k()(N,"".concat(he,"-treenode"),(de={},(0,K.Z)(de,"".concat(he,"-treenode-disabled"),R),(0,K.Z)(de,"".concat(he,"-treenode-switcher-").concat(Ue?"open":"close"),!Z),(0,K.Z)(de,"".concat(he,"-treenode-checkbox-checked"),qe),(0,K.Z)(de,"".concat(he,"-treenode-checkbox-indeterminate"),mt),(0,K.Z)(de,"".concat(he,"-treenode-selected"),ze),(0,K.Z)(de,"".concat(he,"-treenode-loading"),gt),(0,K.Z)(de,"".concat(he,"-treenode-active"),Lt),(0,K.Z)(de,"".concat(he,"-treenode-leaf-last"),te),(0,K.Z)(de,"".concat(he,"-treenode-draggable"),Te),(0,K.Z)(de,"dragging",Me),(0,K.Z)(de,"drop-target",Re===be),(0,K.Z)(de,"drop-container",Q===be),(0,K.Z)(de,"drag-over",!R&&J),(0,K.Z)(de,"drag-over-gap-top",!R&&v),(0,K.Z)(de,"drag-over-gap-bottom",!R&&x),(0,K.Z)(de,"filter-node",pe&&pe((0,z.F)(this.props))),de)),style:ue,draggable:je,"aria-grabbed":Me,onDragStart:je?this.onDragStart:void 0,onDragEnter:Te?this.onDragEnter:void 0,onDragOver:Te?this.onDragOver:void 0,onDragLeave:Te?this.onDragLeave:void 0,onDrop:Te?this.onDrop:void 0,onDragEnd:Te?this.onDragEnd:void 0,onMouseMove:Rt},Fe,P),_.createElement(B,{prefixCls:he,level:oe,isStart:me,isEnd:Be}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Ee}(_.Component),Y=function(Ce){return _.createElement(S.k.Consumer,null,function(Ee){return _.createElement(D,(0,O.Z)({},Ce,{context:Ee}))})};Y.displayName="TreeNode",Y.isTreeNode=1;var j=Y},39378:function(Xt,Ze,p){"use strict";p.d(Ze,{k:function(){return K}});var O=p(59301),K=O.createContext(null)},54844:function(Xt,Ze,p){"use strict";p.d(Ze,{O:function(){return j.Z},Z:function(){return wt}});var O=p(72308),K=p(49618),q=p(62853),ce=p(77321),A=p(80702),m=p(96949),w=p(55090),re=p(80237),o=p(77205),I=p(38793),k=p(92310),g=p.n(k),_=p(10228),S=p(26112),T=p(48736),B=p(59301),se=p(39378);function z(he){var pe=he.dropPosition,le=he.dropLevelOffset,Q=he.indent,Re={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(pe){case-1:Re.top=0,Re.left=-le*Q;break;case 1:Re.bottom=0,Re.left=-le*Q;break;case 0:Re.bottom=0,Re.left=Q;break}return B.createElement("div",{style:Re})}function $(he){if(he==null)throw new TypeError("Cannot destructure "+he)}var G=p(52487),X=p(74416),L=p(34280),D=p(45680),Y=p(77900),j=p(39417);function xe(he,pe){var le=B.useState(!1),Q=(0,G.Z)(le,2),Re=Q[0],H=Q[1];B.useLayoutEffect(function(){if(Re)return he(),function(){pe()}},[Re]),B.useLayoutEffect(function(){return H(!0),function(){H(!1)}},[])}var Ce=p(71430),Ee=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],ge=function(pe,le){var Q=pe.className,Re=pe.style,H=pe.motion,R=pe.motionNodes,P=pe.motionType,fe=pe.onMotionStart,oe=pe.onMotionEnd,te=pe.active,Te=pe.treeNodeRequiredProps,je=(0,X.Z)(pe,Ee),Me=B.useState(!0),Fe=(0,G.Z)(Me,2),Je=Fe[0],Xe=Fe[1],Ve=B.useContext(se.k),xt=Ve.prefixCls,Dt=R&&P!=="hide";(0,L.Z)(function(){R&&Dt!==Je&&Xe(Dt)},[R]);var vt=function(){R&&fe()},Bt=B.useRef(!1),Zt=function(){R&&!Bt.current&&(Bt.current=!0,oe())};xe(vt,Zt);var C=function(yt){Dt===yt&&Zt()};return R?B.createElement(Y.default,(0,O.Z)({ref:le,visible:Je},H,{motionAppear:P==="show",onVisibleChanged:C}),function(M,yt){var ye=M.className,Ne=M.style;return B.createElement("div",{ref:yt,className:g()("".concat(xt,"-treenode-motion"),ye),style:Ne},R.map(function(Sn){var it=(0,O.Z)({},($(Sn.data),Sn.data)),nt=Sn.title,tt=Sn.key,we=Sn.isStart,Oe=Sn.isEnd;delete it.children;var Le=(0,Ce.H8)(tt,Te);return B.createElement(j.Z,(0,O.Z)({},it,Le,{title:nt,active:te,data:Sn.data,key:tt,isStart:we,isEnd:Oe}))}))}):B.createElement(j.Z,(0,O.Z)({domRef:le,className:Q,style:Re},je,{active:te}))};ge.displayName="MotionTreeNode";var de=B.forwardRef(ge),W=de;function be(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],le=he.length,Q=pe.length;if(Math.abs(le-Q)!==1)return{add:!1,key:null};function Re(H,R){var P=new Map;H.forEach(function(oe){P.set(oe,!0)});var fe=R.filter(function(oe){return!P.has(oe)});return fe.length===1?fe[0]:null}return le<Q?{add:!0,key:Re(he,pe)}:{add:!1,key:Re(pe,he)}}function N(he,pe,le){var Q=he.findIndex(function(P){return P.key===le}),Re=he[Q+1],H=pe.findIndex(function(P){return P.key===le});if(Re){var R=pe.findIndex(function(P){return P.key===Re.key});return pe.slice(H+1,R)}return pe.slice(H+1)}var ue=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],J={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},v=function(){},x="RC_TREE_MOTION_".concat(Math.random()),Z={key:x},me={key:x,level:0,index:0,pos:"0",node:Z,nodes:[Z]},Be={parent:null,children:[],pos:me.pos,data:Z,title:null,key:x,isStart:[],isEnd:[]};function Ue(he,pe,le,Q){return pe===!1||!le?he:he.slice(0,Math.ceil(le/Q)+1)}function ze(he){var pe=he.key,le=he.pos;return(0,Ce.km)(pe,le)}function qe(he){for(var pe=String(he.data.key),le=he;le.parent;)le=le.parent,pe="".concat(le.data.key," > ").concat(pe);return pe}var mt=B.forwardRef(function(he,pe){var le=he.prefixCls,Q=he.data,Re=he.selectable,H=he.checkable,R=he.expandedKeys,P=he.selectedKeys,fe=he.checkedKeys,oe=he.loadedKeys,te=he.loadingKeys,Te=he.halfCheckedKeys,je=he.keyEntities,Me=he.disabled,Fe=he.dragging,Je=he.dragOverNodeKey,Xe=he.dropPosition,Ve=he.motion,xt=he.height,Dt=he.itemHeight,vt=he.virtual,Bt=he.focusable,Zt=he.activeItem,C=he.focused,M=he.tabIndex,yt=he.onKeyDown,ye=he.onFocus,Ne=he.onBlur,Sn=he.onActiveChange,it=he.onListChangeStart,nt=he.onListChangeEnd,tt=(0,X.Z)(he,ue),we=B.useRef(null),Oe=B.useRef(null);B.useImperativeHandle(pe,function(){return{scrollTo:function(Kt){we.current.scrollTo(Kt)},getIndentWidth:function(){return Oe.current.offsetWidth}}});var Le=B.useState(R),rt=(0,G.Z)(Le,2),_e=rt[0],Qt=rt[1],He=B.useState(Q),xn=(0,G.Z)(He,2),Ln=xn[0],_r=xn[1],Hn=B.useState(Q),yn=(0,G.Z)(Hn,2),wn=yn[0],Ye=yn[1],Ot=B.useState([]),Ut=(0,G.Z)(Ot,2),Ke=Ut[0],Pe=Ut[1],_t=B.useState(null),Ct=(0,G.Z)(_t,2),nn=Ct[0],Vt=Ct[1],dn=B.useRef(Q);dn.current=Q;function rn(){var Cn=dn.current;_r(Cn),Ye(Cn),Pe([]),Vt(null),nt()}(0,L.Z)(function(){Qt(R);var Cn=be(_e,R);if(Cn.key!==null)if(Cn.add){var Kt=Ln.findIndex(function(Rn){var ln=Rn.key;return ln===Cn.key}),Gt=Ue(N(Ln,Q,Cn.key),vt,xt,Dt),qt=Ln.slice();qt.splice(Kt+1,0,Be),Ye(qt),Pe(Gt),Vt("show")}else{var fn=Q.findIndex(function(Rn){var ln=Rn.key;return ln===Cn.key}),an=Ue(N(Q,Ln,Cn.key),vt,xt,Dt),Qn=Q.slice();Qn.splice(fn+1,0,Be),Ye(Qn),Pe(an),Vt("hide")}else Ln!==Q&&(_r(Q),Ye(Q))},[R,Q]),B.useEffect(function(){Fe||rn()},[Fe]);var bn=Ve?wn:Q,In={expandedKeys:R,selectedKeys:P,loadedKeys:oe,loadingKeys:te,checkedKeys:fe,halfCheckedKeys:Te,dragOverNodeKey:Je,dropPosition:Xe,keyEntities:je};return B.createElement(B.Fragment,null,C&&Zt&&B.createElement("span",{style:J,"aria-live":"assertive"},qe(Zt)),B.createElement("div",null,B.createElement("input",{style:J,disabled:Bt===!1||Me,tabIndex:Bt!==!1?M:null,onKeyDown:yt,onFocus:ye,onBlur:Ne,value:"",onChange:v,"aria-label":"for screen reader"})),B.createElement("div",{className:"".concat(le,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},B.createElement("div",{className:"".concat(le,"-indent")},B.createElement("div",{ref:Oe,className:"".concat(le,"-indent-unit")}))),B.createElement(D.Z,(0,O.Z)({},tt,{data:bn,itemKey:ze,height:xt,fullHeight:!1,virtual:vt,itemHeight:Dt,prefixCls:"".concat(le,"-list"),ref:we,onVisibleChange:function(Kt,Gt){var qt=new Set(Kt),fn=Gt.filter(function(an){return!qt.has(an)});fn.some(function(an){return ze(an)===x})&&rn()}}),function(Cn){var Kt=Cn.pos,Gt=(0,O.Z)({},($(Cn.data),Cn.data)),qt=Cn.title,fn=Cn.key,an=Cn.isStart,Qn=Cn.isEnd,Rn=(0,Ce.km)(fn,Kt);delete Gt.key,delete Gt.children;var ln=(0,Ce.H8)(Rn,In);return B.createElement(W,(0,O.Z)({},Gt,ln,{title:qt,active:!!Zt&&fn===Zt.key,pos:Kt,data:Cn.data,isStart:an,isEnd:Qn,motion:Ve,motionNodes:fn===x?Ke:null,motionType:nn,onMotionStart:it,onMotionEnd:rn,treeNodeRequiredProps:In,onMouseMove:function(){Sn(null)}}))}))});mt.displayName="NodeList";var gt=mt,at=p(35654),Lt=p(90782),tn=p(67841),Rt=10,Ht=function(he){(0,o.Z)(le,he);var pe=(0,I.Z)(le);function le(){var Q;(0,m.Z)(this,le);for(var Re=arguments.length,H=new Array(Re),R=0;R<Re;R++)H[R]=arguments[R];return Q=pe.call.apply(pe,[this].concat(H)),Q.destroyed=!1,Q.delayedDragEnterLogic=void 0,Q.loadingRetryTimes={},Q.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,Ce.w$)()},Q.dragStartMousePosition=null,Q.dragNode=void 0,Q.currentMouseOverDroppableNodeKey=null,Q.listRef=B.createRef(),Q.onNodeDragStart=function(P,fe){var oe=Q.state,te=oe.expandedKeys,Te=oe.keyEntities,je=Q.props.onDragStart,Me=fe.props.eventKey;Q.dragNode=fe,Q.dragStartMousePosition={x:P.clientX,y:P.clientY};var Fe=(0,at._5)(te,Me);Q.setState({draggingNodeKey:Me,dragChildrenKeys:(0,at.wA)(Me,Te),indent:Q.listRef.current.getIndentWidth()}),Q.setExpandedKeys(Fe),window.addEventListener("dragend",Q.onWindowDragEnd),je==null||je({event:P,node:(0,Ce.F)(fe.props)})},Q.onNodeDragEnter=function(P,fe){var oe=Q.state,te=oe.expandedKeys,Te=oe.keyEntities,je=oe.dragChildrenKeys,Me=oe.flattenNodes,Fe=oe.indent,Je=Q.props,Xe=Je.onDragEnter,Ve=Je.onExpand,xt=Je.allowDrop,Dt=Je.direction,vt=fe.props,Bt=vt.pos,Zt=vt.eventKey,C=(0,re.Z)(Q),M=C.dragNode;if(Q.currentMouseOverDroppableNodeKey!==Zt&&(Q.currentMouseOverDroppableNodeKey=Zt),!M){Q.resetDragState();return}var yt=(0,at.OM)(P,M,fe,Fe,Q.dragStartMousePosition,xt,Me,Te,te,Dt),ye=yt.dropPosition,Ne=yt.dropLevelOffset,Sn=yt.dropTargetKey,it=yt.dropContainerKey,nt=yt.dropTargetPos,tt=yt.dropAllowed,we=yt.dragOverNodeKey;if(je.indexOf(Sn)!==-1||!tt){Q.resetDragState();return}if(Q.delayedDragEnterLogic||(Q.delayedDragEnterLogic={}),Object.keys(Q.delayedDragEnterLogic).forEach(function(Oe){clearTimeout(Q.delayedDragEnterLogic[Oe])}),M.props.eventKey!==fe.props.eventKey&&(P.persist(),Q.delayedDragEnterLogic[Bt]=window.setTimeout(function(){if(Q.state.draggingNodeKey!==null){var Oe=(0,A.Z)(te),Le=(0,tn.Z)(Te,fe.props.eventKey);Le&&(Le.children||[]).length&&(Oe=(0,at.L0)(te,fe.props.eventKey)),"expandedKeys"in Q.props||Q.setExpandedKeys(Oe),Ve==null||Ve(Oe,{node:(0,Ce.F)(fe.props),expanded:!0,nativeEvent:P.nativeEvent})}},800)),M.props.eventKey===Sn&&Ne===0){Q.resetDragState();return}Q.setState({dragOverNodeKey:we,dropPosition:ye,dropLevelOffset:Ne,dropTargetKey:Sn,dropContainerKey:it,dropTargetPos:nt,dropAllowed:tt}),Xe==null||Xe({event:P,node:(0,Ce.F)(fe.props),expandedKeys:te})},Q.onNodeDragOver=function(P,fe){var oe=Q.state,te=oe.dragChildrenKeys,Te=oe.flattenNodes,je=oe.keyEntities,Me=oe.expandedKeys,Fe=oe.indent,Je=Q.props,Xe=Je.onDragOver,Ve=Je.allowDrop,xt=Je.direction,Dt=(0,re.Z)(Q),vt=Dt.dragNode;if(vt){var Bt=(0,at.OM)(P,vt,fe,Fe,Q.dragStartMousePosition,Ve,Te,je,Me,xt),Zt=Bt.dropPosition,C=Bt.dropLevelOffset,M=Bt.dropTargetKey,yt=Bt.dropContainerKey,ye=Bt.dropAllowed,Ne=Bt.dropTargetPos,Sn=Bt.dragOverNodeKey;te.indexOf(M)!==-1||!ye||(vt.props.eventKey===M&&C===0?Q.state.dropPosition===null&&Q.state.dropLevelOffset===null&&Q.state.dropTargetKey===null&&Q.state.dropContainerKey===null&&Q.state.dropTargetPos===null&&Q.state.dropAllowed===!1&&Q.state.dragOverNodeKey===null||Q.resetDragState():Zt===Q.state.dropPosition&&C===Q.state.dropLevelOffset&&M===Q.state.dropTargetKey&&yt===Q.state.dropContainerKey&&Ne===Q.state.dropTargetPos&&ye===Q.state.dropAllowed&&Sn===Q.state.dragOverNodeKey||Q.setState({dropPosition:Zt,dropLevelOffset:C,dropTargetKey:M,dropContainerKey:yt,dropTargetPos:Ne,dropAllowed:ye,dragOverNodeKey:Sn}),Xe==null||Xe({event:P,node:(0,Ce.F)(fe.props)}))}},Q.onNodeDragLeave=function(P,fe){Q.currentMouseOverDroppableNodeKey===fe.props.eventKey&&!P.currentTarget.contains(P.relatedTarget)&&(Q.resetDragState(),Q.currentMouseOverDroppableNodeKey=null);var oe=Q.props.onDragLeave;oe==null||oe({event:P,node:(0,Ce.F)(fe.props)})},Q.onWindowDragEnd=function(P){Q.onNodeDragEnd(P,null,!0),window.removeEventListener("dragend",Q.onWindowDragEnd)},Q.onNodeDragEnd=function(P,fe){var oe=Q.props.onDragEnd;Q.setState({dragOverNodeKey:null}),Q.cleanDragState(),oe==null||oe({event:P,node:(0,Ce.F)(fe.props)}),Q.dragNode=null,window.removeEventListener("dragend",Q.onWindowDragEnd)},Q.onNodeDrop=function(P,fe){var oe,te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Te=Q.state,je=Te.dragChildrenKeys,Me=Te.dropPosition,Fe=Te.dropTargetKey,Je=Te.dropTargetPos,Xe=Te.dropAllowed;if(Xe){var Ve=Q.props.onDrop;if(Q.setState({dragOverNodeKey:null}),Q.cleanDragState(),Fe!==null){var xt=(0,ce.Z)((0,ce.Z)({},(0,Ce.H8)(Fe,Q.getTreeNodeRequiredProps())),{},{active:((oe=Q.getActiveItem())===null||oe===void 0?void 0:oe.key)===Fe,data:(0,tn.Z)(Q.state.keyEntities,Fe).node}),Dt=je.indexOf(Fe)!==-1;(0,T.ZP)(!Dt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var vt=(0,at.yx)(Je),Bt={event:P,node:(0,Ce.F)(xt),dragNode:Q.dragNode?(0,Ce.F)(Q.dragNode.props):null,dragNodesKeys:[Q.dragNode.props.eventKey].concat(je),dropToGap:Me!==0,dropPosition:Me+Number(vt[vt.length-1])};te||Ve==null||Ve(Bt),Q.dragNode=null}}},Q.cleanDragState=function(){var P=Q.state.draggingNodeKey;P!==null&&Q.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Q.dragStartMousePosition=null,Q.currentMouseOverDroppableNodeKey=null},Q.triggerExpandActionExpand=function(P,fe){var oe=Q.state,te=oe.expandedKeys,Te=oe.flattenNodes,je=fe.expanded,Me=fe.key,Fe=fe.isLeaf;if(!(Fe||P.shiftKey||P.metaKey||P.ctrlKey)){var Je=Te.filter(function(Ve){return Ve.key===Me})[0],Xe=(0,Ce.F)((0,ce.Z)((0,ce.Z)({},(0,Ce.H8)(Me,Q.getTreeNodeRequiredProps())),{},{data:Je.data}));Q.setExpandedKeys(je?(0,at._5)(te,Me):(0,at.L0)(te,Me)),Q.onNodeExpand(P,Xe)}},Q.onNodeClick=function(P,fe){var oe=Q.props,te=oe.onClick,Te=oe.expandAction;Te==="click"&&Q.triggerExpandActionExpand(P,fe),te==null||te(P,fe)},Q.onNodeDoubleClick=function(P,fe){var oe=Q.props,te=oe.onDoubleClick,Te=oe.expandAction;Te==="doubleClick"&&Q.triggerExpandActionExpand(P,fe),te==null||te(P,fe)},Q.onNodeSelect=function(P,fe){var oe=Q.state.selectedKeys,te=Q.state,Te=te.keyEntities,je=te.fieldNames,Me=Q.props,Fe=Me.onSelect,Je=Me.multiple,Xe=fe.selected,Ve=fe[je.key],xt=!Xe;xt?Je?oe=(0,at.L0)(oe,Ve):oe=[Ve]:oe=(0,at._5)(oe,Ve);var Dt=oe.map(function(vt){var Bt=(0,tn.Z)(Te,vt);return Bt?Bt.node:null}).filter(function(vt){return vt});Q.setUncontrolledState({selectedKeys:oe}),Fe==null||Fe(oe,{event:"select",selected:xt,node:fe,selectedNodes:Dt,nativeEvent:P.nativeEvent})},Q.onNodeCheck=function(P,fe,oe){var te=Q.state,Te=te.keyEntities,je=te.checkedKeys,Me=te.halfCheckedKeys,Fe=Q.props,Je=Fe.checkStrictly,Xe=Fe.onCheck,Ve=fe.key,xt,Dt={event:"check",node:fe,checked:oe,nativeEvent:P.nativeEvent};if(Je){var vt=oe?(0,at.L0)(je,Ve):(0,at._5)(je,Ve),Bt=(0,at._5)(Me,Ve);xt={checked:vt,halfChecked:Bt},Dt.checkedNodes=vt.map(function(Ne){return(0,tn.Z)(Te,Ne)}).filter(function(Ne){return Ne}).map(function(Ne){return Ne.node}),Q.setUncontrolledState({checkedKeys:vt})}else{var Zt=(0,Lt.S)([].concat((0,A.Z)(je),[Ve]),!0,Te),C=Zt.checkedKeys,M=Zt.halfCheckedKeys;if(!oe){var yt=new Set(C);yt.delete(Ve);var ye=(0,Lt.S)(Array.from(yt),{checked:!1,halfCheckedKeys:M},Te);C=ye.checkedKeys,M=ye.halfCheckedKeys}xt=C,Dt.checkedNodes=[],Dt.checkedNodesPositions=[],Dt.halfCheckedKeys=M,C.forEach(function(Ne){var Sn=(0,tn.Z)(Te,Ne);if(Sn){var it=Sn.node,nt=Sn.pos;Dt.checkedNodes.push(it),Dt.checkedNodesPositions.push({node:it,pos:nt})}}),Q.setUncontrolledState({checkedKeys:C},!1,{halfCheckedKeys:M})}Xe==null||Xe(xt,Dt)},Q.onNodeLoad=function(P){var fe=P.key,oe=new Promise(function(te,Te){Q.setState(function(je){var Me=je.loadedKeys,Fe=Me===void 0?[]:Me,Je=je.loadingKeys,Xe=Je===void 0?[]:Je,Ve=Q.props,xt=Ve.loadData,Dt=Ve.onLoad;if(!xt||Fe.indexOf(fe)!==-1||Xe.indexOf(fe)!==-1)return null;var vt=xt(P);return vt.then(function(){var Bt=Q.state.loadedKeys,Zt=(0,at.L0)(Bt,fe);Dt==null||Dt(Zt,{event:"load",node:P}),Q.setUncontrolledState({loadedKeys:Zt}),Q.setState(function(C){return{loadingKeys:(0,at._5)(C.loadingKeys,fe)}}),te()}).catch(function(Bt){if(Q.setState(function(C){return{loadingKeys:(0,at._5)(C.loadingKeys,fe)}}),Q.loadingRetryTimes[fe]=(Q.loadingRetryTimes[fe]||0)+1,Q.loadingRetryTimes[fe]>=Rt){var Zt=Q.state.loadedKeys;(0,T.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Q.setUncontrolledState({loadedKeys:(0,at.L0)(Zt,fe)}),te()}Te(Bt)}),{loadingKeys:(0,at.L0)(Xe,fe)}})});return oe.catch(function(){}),oe},Q.onNodeMouseEnter=function(P,fe){var oe=Q.props.onMouseEnter;oe==null||oe({event:P,node:fe})},Q.onNodeMouseLeave=function(P,fe){var oe=Q.props.onMouseLeave;oe==null||oe({event:P,node:fe})},Q.onNodeContextMenu=function(P,fe){var oe=Q.props.onRightClick;oe&&(P.preventDefault(),oe({event:P,node:fe}))},Q.onFocus=function(){var P=Q.props.onFocus;Q.setState({focused:!0});for(var fe=arguments.length,oe=new Array(fe),te=0;te<fe;te++)oe[te]=arguments[te];P==null||P.apply(void 0,oe)},Q.onBlur=function(){var P=Q.props.onBlur;Q.setState({focused:!1}),Q.onActiveChange(null);for(var fe=arguments.length,oe=new Array(fe),te=0;te<fe;te++)oe[te]=arguments[te];P==null||P.apply(void 0,oe)},Q.getTreeNodeRequiredProps=function(){var P=Q.state,fe=P.expandedKeys,oe=P.selectedKeys,te=P.loadedKeys,Te=P.loadingKeys,je=P.checkedKeys,Me=P.halfCheckedKeys,Fe=P.dragOverNodeKey,Je=P.dropPosition,Xe=P.keyEntities;return{expandedKeys:fe||[],selectedKeys:oe||[],loadedKeys:te||[],loadingKeys:Te||[],checkedKeys:je||[],halfCheckedKeys:Me||[],dragOverNodeKey:Fe,dropPosition:Je,keyEntities:Xe}},Q.setExpandedKeys=function(P){var fe=Q.state,oe=fe.treeData,te=fe.fieldNames,Te=(0,Ce.oH)(oe,P,te);Q.setUncontrolledState({expandedKeys:P,flattenNodes:Te},!0)},Q.onNodeExpand=function(P,fe){var oe=Q.state.expandedKeys,te=Q.state,Te=te.listChanging,je=te.fieldNames,Me=Q.props,Fe=Me.onExpand,Je=Me.loadData,Xe=fe.expanded,Ve=fe[je.key];if(!Te){var xt=oe.indexOf(Ve),Dt=!Xe;if((0,T.ZP)(Xe&&xt!==-1||!Xe&&xt===-1,"Expand state not sync with index check"),Dt?oe=(0,at.L0)(oe,Ve):oe=(0,at._5)(oe,Ve),Q.setExpandedKeys(oe),Fe==null||Fe(oe,{node:fe,expanded:Dt,nativeEvent:P.nativeEvent}),Dt&&Je){var vt=Q.onNodeLoad(fe);vt&&vt.then(function(){var Bt=(0,Ce.oH)(Q.state.treeData,oe,je);Q.setUncontrolledState({flattenNodes:Bt})}).catch(function(){var Bt=Q.state.expandedKeys,Zt=(0,at._5)(Bt,Ve);Q.setExpandedKeys(Zt)})}}},Q.onListChangeStart=function(){Q.setUncontrolledState({listChanging:!0})},Q.onListChangeEnd=function(){setTimeout(function(){Q.setUncontrolledState({listChanging:!1})})},Q.onActiveChange=function(P){var fe=Q.state.activeKey,oe=Q.props.onActiveChange;fe!==P&&(Q.setState({activeKey:P}),P!==null&&Q.scrollTo({key:P}),oe==null||oe(P))},Q.getActiveItem=function(){var P=Q.state,fe=P.activeKey,oe=P.flattenNodes;return fe===null?null:oe.find(function(te){var Te=te.key;return Te===fe})||null},Q.offsetActiveKey=function(P){var fe=Q.state,oe=fe.flattenNodes,te=fe.activeKey,Te=oe.findIndex(function(Fe){var Je=Fe.key;return Je===te});Te===-1&&P<0&&(Te=oe.length),Te=(Te+P+oe.length)%oe.length;var je=oe[Te];if(je){var Me=je.key;Q.onActiveChange(Me)}else Q.onActiveChange(null)},Q.onKeyDown=function(P){var fe=Q.state,oe=fe.activeKey,te=fe.expandedKeys,Te=fe.checkedKeys,je=fe.fieldNames,Me=Q.props,Fe=Me.onKeyDown,Je=Me.checkable,Xe=Me.selectable;switch(P.which){case _.Z.UP:{Q.offsetActiveKey(-1),P.preventDefault();break}case _.Z.DOWN:{Q.offsetActiveKey(1),P.preventDefault();break}}var Ve=Q.getActiveItem();if(Ve&&Ve.data){var xt=Q.getTreeNodeRequiredProps(),Dt=Ve.data.isLeaf===!1||!!(Ve.data[je.children]||[]).length,vt=(0,Ce.F)((0,ce.Z)((0,ce.Z)({},(0,Ce.H8)(oe,xt)),{},{data:Ve.data,active:!0}));switch(P.which){case _.Z.LEFT:{Dt&&te.includes(oe)?Q.onNodeExpand({},vt):Ve.parent&&Q.onActiveChange(Ve.parent.key),P.preventDefault();break}case _.Z.RIGHT:{Dt&&!te.includes(oe)?Q.onNodeExpand({},vt):Ve.children&&Ve.children.length&&Q.onActiveChange(Ve.children[0].key),P.preventDefault();break}case _.Z.ENTER:case _.Z.SPACE:{Je&&!vt.disabled&&vt.checkable!==!1&&!vt.disableCheckbox?Q.onNodeCheck({},vt,!Te.includes(oe)):!Je&&Xe&&!vt.disabled&&vt.selectable!==!1&&Q.onNodeSelect({},vt);break}}}Fe==null||Fe(P)},Q.setUncontrolledState=function(P){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Q.destroyed){var te=!1,Te=!0,je={};Object.keys(P).forEach(function(Me){if(Me in Q.props){Te=!1;return}te=!0,je[Me]=P[Me]}),te&&(!fe||Te)&&Q.setState((0,ce.Z)((0,ce.Z)({},je),oe))}},Q.scrollTo=function(P){Q.listRef.current.scrollTo(P)},Q}return(0,w.Z)(le,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Re=this.props.activeKey;Re!==void 0&&Re!==this.state.activeKey&&(this.setState({activeKey:Re}),Re!==null&&this.scrollTo({key:Re}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var Re,H=this.state,R=H.focused,P=H.flattenNodes,fe=H.keyEntities,oe=H.draggingNodeKey,te=H.activeKey,Te=H.dropLevelOffset,je=H.dropContainerKey,Me=H.dropTargetKey,Fe=H.dropPosition,Je=H.dragOverNodeKey,Xe=H.indent,Ve=this.props,xt=Ve.prefixCls,Dt=Ve.className,vt=Ve.style,Bt=Ve.showLine,Zt=Ve.focusable,C=Ve.tabIndex,M=C===void 0?0:C,yt=Ve.selectable,ye=Ve.showIcon,Ne=Ve.icon,Sn=Ve.switcherIcon,it=Ve.draggable,nt=Ve.checkable,tt=Ve.checkStrictly,we=Ve.disabled,Oe=Ve.motion,Le=Ve.loadData,rt=Ve.filterTreeNode,_e=Ve.height,Qt=Ve.itemHeight,He=Ve.virtual,xn=Ve.titleRender,Ln=Ve.dropIndicatorRender,_r=Ve.onContextMenu,Hn=Ve.onScroll,yn=Ve.direction,wn=Ve.rootClassName,Ye=Ve.rootStyle,Ot=(0,S.Z)(this.props,{aria:!0,data:!0}),Ut;return it&&((0,q.Z)(it)==="object"?Ut=it:typeof it=="function"?Ut={nodeDraggable:it}:Ut={}),B.createElement(se.k.Provider,{value:{prefixCls:xt,selectable:yt,showIcon:ye,icon:Ne,switcherIcon:Sn,draggable:Ut,draggingNodeKey:oe,checkable:nt,checkStrictly:tt,disabled:we,keyEntities:fe,dropLevelOffset:Te,dropContainerKey:je,dropTargetKey:Me,dropPosition:Fe,dragOverNodeKey:Je,indent:Xe,direction:yn,dropIndicatorRender:Ln,loadData:Le,filterTreeNode:rt,titleRender:xn,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},B.createElement("div",{role:"tree",className:g()(xt,Dt,wn,(Re={},(0,K.Z)(Re,"".concat(xt,"-show-line"),Bt),(0,K.Z)(Re,"".concat(xt,"-focused"),R),(0,K.Z)(Re,"".concat(xt,"-active-focused"),te!==null),Re)),style:Ye},B.createElement(gt,(0,O.Z)({ref:this.listRef,prefixCls:xt,style:vt,data:P,disabled:we,selectable:yt,checkable:!!nt,motion:Oe,dragging:oe!==null,height:_e,itemHeight:Qt,virtual:He,focusable:Zt,focused:R,tabIndex:M,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:_r,onScroll:Hn},this.getTreeNodeRequiredProps(),Ot))))}}],[{key:"getDerivedStateFromProps",value:function(Re,H){var R=H.prevProps,P={prevProps:Re};function fe(Zt){return!R&&Zt in Re||R&&R[Zt]!==Re[Zt]}var oe,te=H.fieldNames;if(fe("fieldNames")&&(te=(0,Ce.w$)(Re.fieldNames),P.fieldNames=te),fe("treeData")?oe=Re.treeData:fe("children")&&((0,T.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),oe=(0,Ce.zn)(Re.children)),oe){P.treeData=oe;var Te=(0,Ce.I8)(oe,{fieldNames:te});P.keyEntities=(0,ce.Z)((0,K.Z)({},x,me),Te.keyEntities)}var je=P.keyEntities||H.keyEntities;if(fe("expandedKeys")||R&&fe("autoExpandParent"))P.expandedKeys=Re.autoExpandParent||!R&&Re.defaultExpandParent?(0,at.r7)(Re.expandedKeys,je):Re.expandedKeys;else if(!R&&Re.defaultExpandAll){var Me=(0,ce.Z)({},je);delete Me[x],P.expandedKeys=Object.keys(Me).map(function(Zt){return Me[Zt].key})}else!R&&Re.defaultExpandedKeys&&(P.expandedKeys=Re.autoExpandParent||Re.defaultExpandParent?(0,at.r7)(Re.defaultExpandedKeys,je):Re.defaultExpandedKeys);if(P.expandedKeys||delete P.expandedKeys,oe||P.expandedKeys){var Fe=(0,Ce.oH)(oe||H.treeData,P.expandedKeys||H.expandedKeys,te);P.flattenNodes=Fe}if(Re.selectable&&(fe("selectedKeys")?P.selectedKeys=(0,at.BT)(Re.selectedKeys,Re):!R&&Re.defaultSelectedKeys&&(P.selectedKeys=(0,at.BT)(Re.defaultSelectedKeys,Re))),Re.checkable){var Je;if(fe("checkedKeys")?Je=(0,at.E6)(Re.checkedKeys)||{}:!R&&Re.defaultCheckedKeys?Je=(0,at.E6)(Re.defaultCheckedKeys)||{}:oe&&(Je=(0,at.E6)(Re.checkedKeys)||{checkedKeys:H.checkedKeys,halfCheckedKeys:H.halfCheckedKeys}),Je){var Xe=Je,Ve=Xe.checkedKeys,xt=Ve===void 0?[]:Ve,Dt=Xe.halfCheckedKeys,vt=Dt===void 0?[]:Dt;if(!Re.checkStrictly){var Bt=(0,Lt.S)(xt,!0,je);xt=Bt.checkedKeys,vt=Bt.halfCheckedKeys}P.checkedKeys=xt,P.halfCheckedKeys=vt}}return fe("loadedKeys")&&(P.loadedKeys=Re.loadedKeys),P}}]),le}(B.Component);Ht.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:z,allowDrop:function(){return!0},expandAction:!1},Ht.TreeNode=j.Z;var ut=Ht,wt=ut},35654:function(Xt,Ze,p){"use strict";p.d(Ze,{BT:function(){return B},E6:function(){return $},L0:function(){return I},OM:function(){return T},_5:function(){return o},r7:function(){return G},wA:function(){return g},yx:function(){return k}});var O=p(80702),K=p(62853),q=p(48736),ce=p(59301),A=p(39417),m=p(67841),w=p(71430),re=null;function o(X,L){if(!X)return[];var D=X.slice(),Y=D.indexOf(L);return Y>=0&&D.splice(Y,1),D}function I(X,L){var D=(X||[]).slice();return D.indexOf(L)===-1&&D.push(L),D}function k(X){return X.split("-")}function g(X,L){var D=[],Y=(0,m.Z)(L,X);function j(){var xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];xe.forEach(function(Ce){var Ee=Ce.key,ge=Ce.children;D.push(Ee),j(ge)})}return j(Y.children),D}function _(X){if(X.parent){var L=k(X.pos);return Number(L[L.length-1])===X.parent.children.length-1}return!1}function S(X){var L=k(X.pos);return Number(L[L.length-1])===0}function T(X,L,D,Y,j,xe,Ce,Ee,ge,de){var W,be=X.clientX,N=X.clientY,ue=X.target.getBoundingClientRect(),J=ue.top,v=ue.height,x=(de==="rtl"?-1:1)*(((j==null?void 0:j.x)||0)-be),Z=(x-12)/Y,me=(0,m.Z)(Ee,D.props.eventKey);if(N<J+v/2){var Be=Ce.findIndex(function(wt){return wt.key===me.key}),Ue=Be<=0?0:Be-1,ze=Ce[Ue].key;me=(0,m.Z)(Ee,ze)}var qe=me.key,mt=me,gt=me.key,at=0,Lt=0;if(!ge.includes(qe))for(var tn=0;tn<Z&&_(me);tn+=1)me=me.parent,Lt+=1;var Rt=L.props.data,Ht=me.node,ut=!0;return S(me)&&me.level===0&&N<J+v/2&&xe({dragNode:Rt,dropNode:Ht,dropPosition:-1})&&me.key===D.props.eventKey?at=-1:(mt.children||[]).length&&ge.includes(gt)?xe({dragNode:Rt,dropNode:Ht,dropPosition:0})?at=0:ut=!1:Lt===0?Z>-1.5?xe({dragNode:Rt,dropNode:Ht,dropPosition:1})?at=1:ut=!1:xe({dragNode:Rt,dropNode:Ht,dropPosition:0})?at=0:xe({dragNode:Rt,dropNode:Ht,dropPosition:1})?at=1:ut=!1:xe({dragNode:Rt,dropNode:Ht,dropPosition:1})?at=1:ut=!1,{dropPosition:at,dropLevelOffset:Lt,dropTargetKey:me.key,dropTargetPos:me.pos,dragOverNodeKey:gt,dropContainerKey:at===0?null:((W=me.parent)===null||W===void 0?void 0:W.key)||null,dropAllowed:ut}}function B(X,L){if(X){var D=L.multiple;return D?X.slice():X.length?[X[0]]:X}}var se=function(L){return L};function z(X,L){if(!X)return[];var D=L||{},Y=D.processProps,j=Y===void 0?se:Y,xe=Array.isArray(X)?X:[X];return xe.map(function(Ce){var Ee=Ce.children,ge=_objectWithoutProperties(Ce,re),de=z(Ee,L);return React.createElement(TreeNode,_extends({key:ge.key},j(ge)),de)})}function $(X){if(!X)return null;var L;if(Array.isArray(X))L={checkedKeys:X,halfCheckedKeys:void 0};else if((0,K.Z)(X)==="object")L={checkedKeys:X.checked||void 0,halfCheckedKeys:X.halfChecked||void 0};else return(0,q.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return L}function G(X,L){var D=new Set;function Y(j){if(!D.has(j)){var xe=(0,m.Z)(L,j);if(xe){D.add(j);var Ce=xe.parent,Ee=xe.node;Ee.disabled||Ce&&Y(Ce.key)}}}return(X||[]).forEach(function(j){Y(j)}),(0,O.Z)(D)}},90782:function(Xt,Ze,p){"use strict";p.d(Ze,{S:function(){return w}});var O=p(48736),K=p(67841);function q(re,o){var I=new Set;return re.forEach(function(k){o.has(k)||I.add(k)}),I}function ce(re){var o=re||{},I=o.disabled,k=o.disableCheckbox,g=o.checkable;return!!(I||k)||g===!1}function A(re,o,I,k){for(var g=new Set(re),_=new Set,S=0;S<=I;S+=1){var T=o.get(S)||new Set;T.forEach(function($){var G=$.key,X=$.node,L=$.children,D=L===void 0?[]:L;g.has(G)&&!k(X)&&D.filter(function(Y){return!k(Y.node)}).forEach(function(Y){g.add(Y.key)})})}for(var B=new Set,se=I;se>=0;se-=1){var z=o.get(se)||new Set;z.forEach(function($){var G=$.parent,X=$.node;if(!(k(X)||!$.parent||B.has($.parent.key))){if(k($.parent.node)){B.add(G.key);return}var L=!0,D=!1;(G.children||[]).filter(function(Y){return!k(Y.node)}).forEach(function(Y){var j=Y.key,xe=g.has(j);L&&!xe&&(L=!1),!D&&(xe||_.has(j))&&(D=!0)}),L&&g.add(G.key),D&&_.add(G.key),B.add(G.key)}})}return{checkedKeys:Array.from(g),halfCheckedKeys:Array.from(q(_,g))}}function m(re,o,I,k,g){for(var _=new Set(re),S=new Set(o),T=0;T<=k;T+=1){var B=I.get(T)||new Set;B.forEach(function(G){var X=G.key,L=G.node,D=G.children,Y=D===void 0?[]:D;!_.has(X)&&!S.has(X)&&!g(L)&&Y.filter(function(j){return!g(j.node)}).forEach(function(j){_.delete(j.key)})})}S=new Set;for(var se=new Set,z=k;z>=0;z-=1){var $=I.get(z)||new Set;$.forEach(function(G){var X=G.parent,L=G.node;if(!(g(L)||!G.parent||se.has(G.parent.key))){if(g(G.parent.node)){se.add(X.key);return}var D=!0,Y=!1;(X.children||[]).filter(function(j){return!g(j.node)}).forEach(function(j){var xe=j.key,Ce=_.has(xe);D&&!Ce&&(D=!1),!Y&&(Ce||S.has(xe))&&(Y=!0)}),D||_.delete(X.key),Y&&S.add(X.key),se.add(X.key)}})}return{checkedKeys:Array.from(_),halfCheckedKeys:Array.from(q(S,_))}}function w(re,o,I,k){var g=[],_;k?_=k:_=ce;var S=new Set(re.filter(function(z){var $=!!(0,K.Z)(I,z);return $||g.push(z),$})),T=new Map,B=0;Object.keys(I).forEach(function(z){var $=I[z],G=$.level,X=T.get(G);X||(X=new Set,T.set(G,X)),X.add($),B=Math.max(B,G)}),(0,O.ZP)(!g.length,"Tree missing follow keys: ".concat(g.slice(0,100).map(function(z){return"'".concat(z,"'")}).join(", ")));var se;return o===!0?se=A(S,T,B,_):se=m(S,o.halfCheckedKeys,T,B,_),se}},67841:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return O}});function O(K,q){return K[q]}},71430:function(Xt,Ze,p){"use strict";p.d(Ze,{F:function(){return G},H8:function(){return $},I8:function(){return z},km:function(){return g},oH:function(){return B},w$:function(){return _},zn:function(){return T}});var O=p(62853),K=p(80702),q=p(77321),ce=p(74416),A=p(11592),m=p(2738),w=p(48736),re=p(67841),o=["children"];function I(X,L){return"".concat(X,"-").concat(L)}function k(X){return X&&X.type&&X.type.isTreeNode}function g(X,L){return X!=null?X:L}function _(X){var L=X||{},D=L.title,Y=L._title,j=L.key,xe=L.children,Ce=D||"title";return{title:Ce,_title:Y||[Ce],key:j||"key",children:xe||"children"}}function S(X,L){var D=new Map;function Y(j){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(j||[]).forEach(function(Ce){var Ee=Ce[L.key],ge=Ce[L.children];warning(Ee!=null,"Tree node must have a certain key: [".concat(xe).concat(Ee,"]"));var de=String(Ee);warning(!D.has(de)||Ee===null||Ee===void 0,"Same 'key' exist in the Tree: ".concat(de)),D.set(de,!0),Y(ge,"".concat(xe).concat(de," > "))})}Y(X)}function T(X){function L(D){var Y=(0,A.Z)(D);return Y.map(function(j){if(!k(j))return(0,w.ZP)(!j,"Tree/TreeNode can only accept TreeNode as children."),null;var xe=j.key,Ce=j.props,Ee=Ce.children,ge=(0,ce.Z)(Ce,o),de=(0,q.Z)({key:xe},ge),W=L(Ee);return W.length&&(de.children=W),de}).filter(function(j){return j})}return L(X)}function B(X,L,D){var Y=_(D),j=Y._title,xe=Y.key,Ce=Y.children,Ee=new Set(L===!0?[]:L),ge=[];function de(W){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return W.map(function(N,ue){for(var J=I(be?be.pos:"0",ue),v=g(N[xe],J),x,Z=0;Z<j.length;Z+=1){var me=j[Z];if(N[me]!==void 0){x=N[me];break}}var Be=(0,q.Z)((0,q.Z)({},(0,m.Z)(N,[].concat((0,K.Z)(j),[xe,Ce]))),{},{title:x,key:v,parent:be,pos:J,children:null,data:N,isStart:[].concat((0,K.Z)(be?be.isStart:[]),[ue===0]),isEnd:[].concat((0,K.Z)(be?be.isEnd:[]),[ue===W.length-1])});return ge.push(Be),L===!0||Ee.has(v)?Be.children=de(N[Ce]||[],Be):Be.children=[],Be})}return de(X),ge}function se(X,L,D){var Y={};(0,O.Z)(D)==="object"?Y=D:Y={externalGetKey:D},Y=Y||{};var j=Y,xe=j.childrenPropName,Ce=j.externalGetKey,Ee=j.fieldNames,ge=_(Ee),de=ge.key,W=ge.children,be=xe||W,N;Ce?typeof Ce=="string"?N=function(v){return v[Ce]}:typeof Ce=="function"&&(N=function(v){return Ce(v)}):N=function(v,x){return g(v[de],x)};function ue(J,v,x,Z){var me=J?J[be]:X,Be=J?I(x.pos,v):"0",Ue=J?[].concat((0,K.Z)(Z),[J]):[];if(J){var ze=N(J,Be),qe={node:J,index:v,pos:Be,key:ze,parentPos:x.node?x.pos:null,level:x.level+1,nodes:Ue};L(qe)}me&&me.forEach(function(mt,gt){ue(mt,gt,{node:J,pos:Be,level:x?x.level+1:-1},Ue)})}ue(null)}function z(X){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=L.initWrapper,Y=L.processEntity,j=L.onProcessFinished,xe=L.externalGetKey,Ce=L.childrenPropName,Ee=L.fieldNames,ge=arguments.length>2?arguments[2]:void 0,de=xe||ge,W={},be={},N={posEntities:W,keyEntities:be};return D&&(N=D(N)||N),se(X,function(ue){var J=ue.node,v=ue.index,x=ue.pos,Z=ue.key,me=ue.parentPos,Be=ue.level,Ue=ue.nodes,ze={node:J,nodes:Ue,index:v,key:Z,pos:x,level:Be},qe=g(Z,x);W[x]=ze,be[qe]=ze,ze.parent=W[me],ze.parent&&(ze.parent.children=ze.parent.children||[],ze.parent.children.push(ze)),Y&&Y(ze,N)},{externalGetKey:de,childrenPropName:Ce,fieldNames:Ee}),j&&j(N),N}function $(X,L){var D=L.expandedKeys,Y=L.selectedKeys,j=L.loadedKeys,xe=L.loadingKeys,Ce=L.checkedKeys,Ee=L.halfCheckedKeys,ge=L.dragOverNodeKey,de=L.dropPosition,W=L.keyEntities,be=(0,re.Z)(W,X),N={eventKey:X,expanded:D.indexOf(X)!==-1,selected:Y.indexOf(X)!==-1,loaded:j.indexOf(X)!==-1,loading:xe.indexOf(X)!==-1,checked:Ce.indexOf(X)!==-1,halfChecked:Ee.indexOf(X)!==-1,pos:String(be?be.pos:""),dragOver:ge===X&&de===0,dragOverGapTop:ge===X&&de===-1,dragOverGapBottom:ge===X&&de===1};return N}function G(X){var L=X.data,D=X.expanded,Y=X.selected,j=X.checked,xe=X.loaded,Ce=X.loading,Ee=X.halfChecked,ge=X.dragOver,de=X.dragOverGapTop,W=X.dragOverGapBottom,be=X.pos,N=X.active,ue=X.eventKey,J=(0,q.Z)((0,q.Z)({},L),{},{expanded:D,selected:Y,checked:j,loaded:xe,loading:Ce,halfChecked:Ee,dragOver:ge,dragOverGapTop:de,dragOverGapBottom:W,pos:be,active:N,key:ue});return"props"in J||Object.defineProperty(J,"props",{get:function(){return(0,w.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),X}}),J}},8224:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return K}});var O=p(4676);function K(q,ce,A,m){var w=O.unstable_batchedUpdates?function(o){O.unstable_batchedUpdates(A,o)}:A;return q!=null&&q.addEventListener&&q.addEventListener(ce,w,m),{remove:function(){q!=null&&q.removeEventListener&&q.removeEventListener(ce,w,m)}}}},55468:function(Xt,Ze,p){"use strict";p.d(Ze,{g1:function(){return k},os:function(){return _}});var O=/margin|padding|width|height|max|min|offset/,K={left:!0,top:!0},q={cssFloat:1,styleFloat:1,float:1};function ce(S){return S.nodeType===1?S.ownerDocument.defaultView.getComputedStyle(S,null):{}}function A(S,T,B){if(T=T.toLowerCase(),B==="auto"){if(T==="height")return S.offsetHeight;if(T==="width")return S.offsetWidth}return T in K||(K[T]=O.test(T)),K[T]?parseFloat(B)||0:B}function m(S,T){var B=arguments.length,se=ce(S);return T=q[T]?"cssFloat"in S.style?"cssFloat":"styleFloat":T,B===1?se:A(S,T,se[T]||S.style[T])}function w(S,T,B){var se=arguments.length;if(T=q[T]?"cssFloat"in S.style?"cssFloat":"styleFloat":T,se===3)return typeof B=="number"&&O.test(T)&&(B="".concat(B,"px")),S.style[T]=B,B;for(var z in T)T.hasOwnProperty(z)&&w(S,z,T[z]);return ce(S)}function re(S){return S===document.body?document.documentElement.clientWidth:S.offsetWidth}function o(S){return S===document.body?window.innerHeight||document.documentElement.clientHeight:S.offsetHeight}function I(){var S=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),T=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:S,height:T}}function k(){var S=document.documentElement.clientWidth,T=window.innerHeight||document.documentElement.clientHeight;return{width:S,height:T}}function g(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function _(S){var T=S.getBoundingClientRect(),B=document.documentElement;return{left:T.left+(window.pageXOffset||B.scrollLeft)-(B.clientLeft||document.body.clientLeft||0),top:T.top+(window.pageYOffset||B.scrollTop)-(B.clientTop||document.body.clientTop||0)}}},24514:function(Xt,Ze,p){"use strict";p.d(Ze,{G:function(){return ce}});var O=p(47273),K=function(m){if((0,O.Z)()&&window.document.documentElement){var w=Array.isArray(m)?m:[m],re=window.document.documentElement;return w.some(function(o){return o in re.style})}return!1},q=function(m,w){if(!K(m))return!1;var re=document.createElement("div"),o=re.style[m];return re.style[m]=w,re.style[m]!==o};function ce(A,m){return!Array.isArray(A)&&m!==void 0?q(A,m):K(A)}},49658:function(Xt,Ze){"use strict";Ze.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var p=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(p)||/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(p==null?void 0:p.substr(0,4))}},45680:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return Ht}});var O=p(72308),K=p(62853),q=p(77321),ce=p(49618),A=p(52487),m=p(74416),w=p(92310),re=p.n(w),o=p(29301),I=p(70425),k=p(34280),g=p(59301),_=p(4676),S=g.forwardRef(function(ut,wt){var he=ut.height,pe=ut.offsetY,le=ut.offsetX,Q=ut.children,Re=ut.prefixCls,H=ut.onInnerResize,R=ut.innerProps,P=ut.rtl,fe=ut.extra,oe={},te={display:"flex",flexDirection:"column"};return pe!==void 0&&(oe={height:he,position:"relative",overflow:"hidden"},te=(0,q.Z)((0,q.Z)({},te),{},(0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)({transform:"translateY(".concat(pe,"px)")},P?"marginRight":"marginLeft",-le),"position","absolute"),"left",0),"right",0),"top",0))),g.createElement("div",{style:oe},g.createElement(o.Z,{onResize:function(je){var Me=je.offsetHeight;Me&&H&&H()}},g.createElement("div",(0,O.Z)({style:te,className:re()((0,ce.Z)({},"".concat(Re,"-holder-inner"),Re)),ref:wt},R),Q,fe)))});S.displayName="Filler";var T=S;function B(ut){var wt=ut.children,he=ut.setRef,pe=g.useCallback(function(le){he(le)},[]);return g.cloneElement(wt,{ref:pe})}function se(ut,wt,he,pe,le,Q,Re,H){var R=H.getKey;return ut.slice(wt,he+1).map(function(P,fe){var oe=wt+fe,te=Re(P,oe,{style:{width:pe},offsetX:le}),Te=R(P);return g.createElement(B,{key:Te,setRef:function(Me){return Q(P,Me)}},te)})}function z(ut,wt,he,pe){var le=he-ut,Q=wt-he,Re=Math.min(le,Q)*2;if(pe<=Re){var H=Math.floor(pe/2);return pe%2?he+H+1:he-H}return le>Q?he-(pe-Q):he+(pe-le)}function $(ut,wt,he){var pe=ut.length,le=wt.length,Q,Re;if(pe===0&&le===0)return null;pe<le?(Q=ut,Re=wt):(Q=wt,Re=ut);var H={__EMPTY_ITEM__:!0};function R(je){return je!==void 0?he(je):H}for(var P=null,fe=Math.abs(pe-le)!==1,oe=0;oe<Re.length;oe+=1){var te=R(Q[oe]),Te=R(Re[oe]);if(te!==Te){P=oe,fe=fe||te!==R(Re[oe+1]);break}}return P===null?null:{index:P,multiple:fe}}function G(ut,wt,he){var pe=g.useState(ut),le=(0,A.Z)(pe,2),Q=le[0],Re=le[1],H=g.useState(null),R=(0,A.Z)(H,2),P=R[0],fe=R[1];return g.useEffect(function(){var oe=$(Q||[],ut||[],wt);(oe==null?void 0:oe.index)!==void 0&&(he==null||he(oe.index),fe(ut[oe.index])),Re(ut)},[ut]),[P]}var X=p(16089),L=(typeof navigator=="undefined"?"undefined":(0,K.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),D=L,Y=function(ut,wt,he,pe){var le=(0,g.useRef)(!1),Q=(0,g.useRef)(null);function Re(){clearTimeout(Q.current),le.current=!0,Q.current=setTimeout(function(){le.current=!1},50)}var H=(0,g.useRef)({top:ut,bottom:wt,left:he,right:pe});return H.current.top=ut,H.current.bottom=wt,H.current.left=he,H.current.right=pe,function(R,P){var fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,oe=R?P<0&&H.current.left||P>0&&H.current.right:P<0&&H.current.top||P>0&&H.current.bottom;return fe&&oe?(clearTimeout(Q.current),le.current=!1):(!oe||le.current)&&Re(),!le.current&&oe}};function j(ut,wt,he,pe,le,Q,Re){var H=(0,g.useRef)(0),R=(0,g.useRef)(null),P=(0,g.useRef)(null),fe=(0,g.useRef)(!1),oe=Y(wt,he,pe,le);function te(Xe,Ve){if(X.Z.cancel(R.current),!oe(!1,Ve)){var xt=Xe;if(!xt._virtualHandled)xt._virtualHandled=!0;else return;H.current+=Ve,P.current=Ve,D||xt.preventDefault(),R.current=(0,X.Z)(function(){var Dt=fe.current?10:1;Re(H.current*Dt,!1),H.current=0})}}function Te(Xe,Ve){Re(Ve,!0),D||Xe.preventDefault()}var je=(0,g.useRef)(null),Me=(0,g.useRef)(null);function Fe(Xe){if(ut){X.Z.cancel(Me.current),Me.current=(0,X.Z)(function(){je.current=null},2);var Ve=Xe.deltaX,xt=Xe.deltaY,Dt=Xe.shiftKey,vt=Ve,Bt=xt;(je.current==="sx"||!je.current&&Dt&&xt&&!Ve)&&(vt=xt,Bt=0,je.current="sx");var Zt=Math.abs(vt),C=Math.abs(Bt);je.current===null&&(je.current=Q&&Zt>C?"x":"y"),je.current==="y"?te(Xe,Bt):Te(Xe,vt)}}function Je(Xe){ut&&(fe.current=Xe.detail===P.current)}return[Fe,Je]}function xe(ut,wt,he,pe){var le=g.useMemo(function(){return[new Map,[]]},[ut,he.id,pe]),Q=(0,A.Z)(le,2),Re=Q[0],H=Q[1],R=function(fe){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fe,te=Re.get(fe),Te=Re.get(oe);if(te===void 0||Te===void 0)for(var je=ut.length,Me=H.length;Me<je;Me+=1){var Fe,Je=ut[Me],Xe=wt(Je);Re.set(Xe,Me);var Ve=(Fe=he.get(Xe))!==null&&Fe!==void 0?Fe:pe;if(H[Me]=(H[Me-1]||0)+Ve,Xe===fe&&(te=Me),Xe===oe&&(Te=Me),te!==void 0&&Te!==void 0)break}return{top:H[te-1]||0,bottom:H[Te]}};return R}var Ce=p(96949),Ee=p(55090),ge=function(){function ut(){(0,Ce.Z)(this,ut),(0,ce.Z)(this,"maps",void 0),(0,ce.Z)(this,"id",0),(0,ce.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Ee.Z)(ut,[{key:"set",value:function(he,pe){this.maps[he]=pe,this.id+=1,this.diffKeys.add(he)}},{key:"get",value:function(he){return this.maps[he]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),ut}(),de=ge;function W(ut){var wt=parseFloat(ut);return isNaN(wt)?0:wt}function be(ut,wt,he){var pe=g.useState(0),le=(0,A.Z)(pe,2),Q=le[0],Re=le[1],H=(0,g.useRef)(new Map),R=(0,g.useRef)(new de),P=(0,g.useRef)(0);function fe(){P.current+=1}function oe(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;fe();var je=function(){var Je=!1;H.current.forEach(function(Xe,Ve){if(Xe&&Xe.offsetParent){var xt=Xe.offsetHeight,Dt=getComputedStyle(Xe),vt=Dt.marginTop,Bt=Dt.marginBottom,Zt=W(vt),C=W(Bt),M=xt+Zt+C;R.current.get(Ve)!==M&&(R.current.set(Ve,M),Je=!0)}}),Je&&Re(function(Xe){return Xe+1})};if(Te)je();else{P.current+=1;var Me=P.current;Promise.resolve().then(function(){Me===P.current&&je()})}}function te(Te,je){var Me=ut(Te),Fe=H.current.get(Me);je?(H.current.set(Me,je),oe()):H.current.delete(Me),!Fe!=!je&&(je?wt==null||wt(Te):he==null||he(Te))}return(0,g.useEffect)(function(){return fe},[]),[te,oe,R.current,Q]}var N=14/15;function ue(ut,wt,he){var pe=(0,g.useRef)(!1),le=(0,g.useRef)(0),Q=(0,g.useRef)(0),Re=(0,g.useRef)(null),H=(0,g.useRef)(null),R,P=function(Te){if(pe.current){var je=Math.ceil(Te.touches[0].pageX),Me=Math.ceil(Te.touches[0].pageY),Fe=le.current-je,Je=Q.current-Me,Xe=Math.abs(Fe)>Math.abs(Je);Xe?le.current=je:Q.current=Me;var Ve=he(Xe,Xe?Fe:Je,!1,Te);Ve&&Te.preventDefault(),clearInterval(H.current),Ve&&(H.current=setInterval(function(){Xe?Fe*=N:Je*=N;var xt=Math.floor(Xe?Fe:Je);(!he(Xe,xt,!0)||Math.abs(xt)<=.1)&&clearInterval(H.current)},16))}},fe=function(){pe.current=!1,R()},oe=function(Te){R(),Te.touches.length===1&&!pe.current&&(pe.current=!0,le.current=Math.ceil(Te.touches[0].pageX),Q.current=Math.ceil(Te.touches[0].pageY),Re.current=Te.target,Re.current.addEventListener("touchmove",P,{passive:!1}),Re.current.addEventListener("touchend",fe,{passive:!0}))};R=function(){Re.current&&(Re.current.removeEventListener("touchmove",P),Re.current.removeEventListener("touchend",fe))},(0,k.Z)(function(){return ut&&wt.current.addEventListener("touchstart",oe,{passive:!0}),function(){var te;(te=wt.current)===null||te===void 0||te.removeEventListener("touchstart",oe),R(),clearInterval(H.current)}},[ut])}function J(ut){return Math.floor(Math.pow(ut,.5))}function v(ut,wt){var he="touches"in ut?ut.touches[0]:ut;return he[wt?"pageX":"pageY"]-window[wt?"scrollX":"scrollY"]}function x(ut,wt,he){g.useEffect(function(){var pe=wt.current;if(ut&&pe){var le=!1,Q,Re,H=function(){X.Z.cancel(Q)},R=function te(){H(),Q=(0,X.Z)(function(){he(Re),te()})},P=function(Te){if(!(Te.target.draggable||Te.button!==0)){var je=Te;je._virtualHandled||(je._virtualHandled=!0,le=!0)}},fe=function(){le=!1,H()},oe=function(Te){if(le){var je=v(Te,!1),Me=pe.getBoundingClientRect(),Fe=Me.top,Je=Me.bottom;if(je<=Fe){var Xe=Fe-je;Re=-J(Xe),R()}else if(je>=Je){var Ve=je-Je;Re=J(Ve),R()}else H()}};return pe.addEventListener("mousedown",P),pe.ownerDocument.addEventListener("mouseup",fe),pe.ownerDocument.addEventListener("mousemove",oe),function(){pe.removeEventListener("mousedown",P),pe.ownerDocument.removeEventListener("mouseup",fe),pe.ownerDocument.removeEventListener("mousemove",oe),H()}}},[ut])}var Z=10;function me(ut,wt,he,pe,le,Q,Re,H){var R=g.useRef(),P=g.useState(null),fe=(0,A.Z)(P,2),oe=fe[0],te=fe[1];return(0,k.Z)(function(){if(oe&&oe.times<Z){if(!ut.current){te(function(Oe){return(0,q.Z)({},Oe)});return}Q();var Te=oe.targetAlign,je=oe.originAlign,Me=oe.index,Fe=oe.offset,Je=ut.current.clientHeight,Xe=!1,Ve=Te,xt=null;if(Je){for(var Dt=Te||je,vt=0,Bt=0,Zt=0,C=Math.min(wt.length-1,Me),M=0;M<=C;M+=1){var yt=le(wt[M]);Bt=vt;var ye=he.get(yt);Zt=Bt+(ye===void 0?pe:ye),vt=Zt}for(var Ne=Dt==="top"?Fe:Je-Fe,Sn=C;Sn>=0;Sn-=1){var it=le(wt[Sn]),nt=he.get(it);if(nt===void 0){Xe=!0;break}if(Ne-=nt,Ne<=0)break}switch(Dt){case"top":xt=Bt-Fe;break;case"bottom":xt=Zt-Je+Fe;break;default:{var tt=ut.current.scrollTop,we=tt+Je;Bt<tt?Ve="top":Zt>we&&(Ve="bottom")}}xt!==null&&Re(xt),xt!==oe.lastTop&&(Xe=!0)}Xe&&te((0,q.Z)((0,q.Z)({},oe),{},{times:oe.times+1,targetAlign:Ve,lastTop:xt}))}},[oe,ut.current]),function(Te){if(Te==null){H();return}if(X.Z.cancel(R.current),typeof Te=="number")Re(Te);else if(Te&&(0,K.Z)(Te)==="object"){var je,Me=Te.align;"index"in Te?je=Te.index:je=wt.findIndex(function(Xe){return le(Xe)===Te.key});var Fe=Te.offset,Je=Fe===void 0?0:Fe;te({times:0,index:je,offset:Je,originAlign:Me})}}}var Be=g.forwardRef(function(ut,wt){var he=ut.prefixCls,pe=ut.rtl,le=ut.scrollOffset,Q=ut.scrollRange,Re=ut.onStartMove,H=ut.onStopMove,R=ut.onScroll,P=ut.horizontal,fe=ut.spinSize,oe=ut.containerSize,te=ut.style,Te=ut.thumbStyle,je=ut.showScrollBar,Me=g.useState(!1),Fe=(0,A.Z)(Me,2),Je=Fe[0],Xe=Fe[1],Ve=g.useState(null),xt=(0,A.Z)(Ve,2),Dt=xt[0],vt=xt[1],Bt=g.useState(null),Zt=(0,A.Z)(Bt,2),C=Zt[0],M=Zt[1],yt=!pe,ye=g.useRef(),Ne=g.useRef(),Sn=g.useState(je),it=(0,A.Z)(Sn,2),nt=it[0],tt=it[1],we=g.useRef(),Oe=function(){je===!0||je===!1||(clearTimeout(we.current),tt(!0),we.current=setTimeout(function(){tt(!1)},3e3))},Le=Q-oe||0,rt=oe-fe||0,_e=g.useMemo(function(){if(le===0||Le===0)return 0;var Ye=le/Le;return Ye*rt},[le,Le,rt]),Qt=function(Ot){Ot.stopPropagation(),Ot.preventDefault()},He=g.useRef({top:_e,dragging:Je,pageY:Dt,startTop:C});He.current={top:_e,dragging:Je,pageY:Dt,startTop:C};var xn=function(Ot){Xe(!0),vt(v(Ot,P)),M(He.current.top),Re(),Ot.stopPropagation(),Ot.preventDefault()};g.useEffect(function(){var Ye=function(Pe){Pe.preventDefault()},Ot=ye.current,Ut=Ne.current;return Ot.addEventListener("touchstart",Ye,{passive:!1}),Ut.addEventListener("touchstart",xn,{passive:!1}),function(){Ot.removeEventListener("touchstart",Ye),Ut.removeEventListener("touchstart",xn)}},[]);var Ln=g.useRef();Ln.current=Le;var _r=g.useRef();_r.current=rt,g.useEffect(function(){if(Je){var Ye,Ot=function(Pe){var _t=He.current,Ct=_t.dragging,nn=_t.pageY,Vt=_t.startTop;X.Z.cancel(Ye);var dn=ye.current.getBoundingClientRect(),rn=oe/(P?dn.width:dn.height);if(Ct){var bn=(v(Pe,P)-nn)*rn,In=Vt;!yt&&P?In-=bn:In+=bn;var Cn=Ln.current,Kt=_r.current,Gt=Kt?In/Kt:0,qt=Math.ceil(Gt*Cn);qt=Math.max(qt,0),qt=Math.min(qt,Cn),Ye=(0,X.Z)(function(){R(qt,P)})}},Ut=function(){Xe(!1),H()};return window.addEventListener("mousemove",Ot,{passive:!0}),window.addEventListener("touchmove",Ot,{passive:!0}),window.addEventListener("mouseup",Ut,{passive:!0}),window.addEventListener("touchend",Ut,{passive:!0}),function(){window.removeEventListener("mousemove",Ot),window.removeEventListener("touchmove",Ot),window.removeEventListener("mouseup",Ut),window.removeEventListener("touchend",Ut),X.Z.cancel(Ye)}}},[Je]),g.useEffect(function(){return Oe(),function(){clearTimeout(we.current)}},[le]),g.useImperativeHandle(wt,function(){return{delayHidden:Oe}});var Hn="".concat(he,"-scrollbar"),yn={position:"absolute",visibility:nt?null:"hidden"},wn={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return P?(yn.height=8,yn.left=0,yn.right=0,yn.bottom=0,wn.height="100%",wn.width=fe,yt?wn.left=_e:wn.right=_e):(yn.width=8,yn.top=0,yn.bottom=0,yt?yn.right=0:yn.left=0,wn.width="100%",wn.height=fe,wn.top=_e),g.createElement("div",{ref:ye,className:re()(Hn,(0,ce.Z)((0,ce.Z)((0,ce.Z)({},"".concat(Hn,"-horizontal"),P),"".concat(Hn,"-vertical"),!P),"".concat(Hn,"-visible"),nt)),style:(0,q.Z)((0,q.Z)({},yn),te),onMouseDown:Qt,onMouseMove:Oe},g.createElement("div",{ref:Ne,className:re()("".concat(Hn,"-thumb"),(0,ce.Z)({},"".concat(Hn,"-thumb-moving"),Je)),style:(0,q.Z)((0,q.Z)({},wn),Te),onMouseDown:xn}))}),Ue=Be,ze=20;function qe(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,he=ut/wt*ut;return isNaN(he)&&(he=0),he=Math.max(he,ze),Math.floor(he)}var mt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],gt=[],at={overflowY:"auto",overflowAnchor:"none"};function Lt(ut,wt){var he=ut.prefixCls,pe=he===void 0?"rc-virtual-list":he,le=ut.className,Q=ut.height,Re=ut.itemHeight,H=ut.fullHeight,R=H===void 0?!0:H,P=ut.style,fe=ut.data,oe=ut.children,te=ut.itemKey,Te=ut.virtual,je=ut.direction,Me=ut.scrollWidth,Fe=ut.component,Je=Fe===void 0?"div":Fe,Xe=ut.onScroll,Ve=ut.onVirtualScroll,xt=ut.onVisibleChange,Dt=ut.innerProps,vt=ut.extraRender,Bt=ut.styles,Zt=ut.showScrollBar,C=Zt===void 0?"optional":Zt,M=(0,m.Z)(ut,mt),yt=g.useCallback(function(Un){return typeof te=="function"?te(Un):Un==null?void 0:Un[te]},[te]),ye=be(yt,null,null),Ne=(0,A.Z)(ye,4),Sn=Ne[0],it=Ne[1],nt=Ne[2],tt=Ne[3],we=!!(Te!==!1&&Q&&Re),Oe=g.useMemo(function(){return Object.values(nt.maps).reduce(function(Un,On){return Un+On},0)},[nt.id,nt.maps]),Le=we&&fe&&(Math.max(Re*fe.length,Oe)>Q||!!Me),rt=je==="rtl",_e=re()(pe,(0,ce.Z)({},"".concat(pe,"-rtl"),rt),le),Qt=fe||gt,He=(0,g.useRef)(),xn=(0,g.useRef)(),Ln=(0,g.useRef)(),_r=(0,g.useState)(0),Hn=(0,A.Z)(_r,2),yn=Hn[0],wn=Hn[1],Ye=(0,g.useState)(0),Ot=(0,A.Z)(Ye,2),Ut=Ot[0],Ke=Ot[1],Pe=(0,g.useState)(!1),_t=(0,A.Z)(Pe,2),Ct=_t[0],nn=_t[1],Vt=function(){nn(!0)},dn=function(){nn(!1)},rn={getKey:yt};function bn(Un){wn(function(On){var Er;typeof Un=="function"?Er=Un(On):Er=Un;var kr=Zn(Er);return He.current.scrollTop=kr,kr})}var In=(0,g.useRef)({start:0,end:Qt.length}),Cn=(0,g.useRef)(),Kt=G(Qt,yt),Gt=(0,A.Z)(Kt,1),qt=Gt[0];Cn.current=qt;var fn=g.useMemo(function(){if(!we)return{scrollHeight:void 0,start:0,end:Qt.length-1,offset:void 0};if(!Le){var Un;return{scrollHeight:((Un=xn.current)===null||Un===void 0?void 0:Un.offsetHeight)||0,start:0,end:Qt.length-1,offset:void 0}}for(var On=0,Er,kr,ei,Ii=Qt.length,jn=0;jn<Ii;jn+=1){var ii=Qt[jn],Xr=yt(ii),fi=nt.get(Xr),Li=On+(fi===void 0?Re:fi);Li>=yn&&Er===void 0&&(Er=jn,kr=On),Li>yn+Q&&ei===void 0&&(ei=jn),On=Li}return Er===void 0&&(Er=0,kr=0,ei=Math.ceil(Q/Re)),ei===void 0&&(ei=Qt.length-1),ei=Math.min(ei+1,Qt.length-1),{scrollHeight:On,start:Er,end:ei,offset:kr}},[Le,we,yn,Qt,tt,Q]),an=fn.scrollHeight,Qn=fn.start,Rn=fn.end,ln=fn.offset;In.current.start=Qn,In.current.end=Rn,g.useLayoutEffect(function(){var Un=nt.getRecord();if(Un.size===1){var On=Array.from(Un)[0],Er=Qt[Qn];if(Er){var kr=yt(Er);if(kr===On){var ei=nt.get(On),Ii=ei-Re;bn(function(jn){return jn+Ii})}}}nt.resetRecord()},[an]);var ct=g.useState({width:0,height:Q}),pt=(0,A.Z)(ct,2),Tt=pt[0],Ft=pt[1],It=function(On){Ft({width:On.offsetWidth,height:On.offsetHeight})},sn=(0,g.useRef)(),$t=(0,g.useRef)(),hn=g.useMemo(function(){return qe(Tt.width,Me)},[Tt.width,Me]),_n=g.useMemo(function(){return qe(Tt.height,an)},[Tt.height,an]),Dn=an-Q,Yn=(0,g.useRef)(Dn);Yn.current=Dn;function Zn(Un){var On=Un;return Number.isNaN(Yn.current)||(On=Math.min(On,Yn.current)),On=Math.max(On,0),On}var dr=yn<=0,En=yn>=Dn,Tn=Ut<=0,pr=Ut>=Me,mr=Y(dr,En,Tn,pr),Ir=function(){return{x:rt?-Ut:Ut,y:yn}},sr=(0,g.useRef)(Ir()),ar=(0,I.useEvent)(function(Un){if(Ve){var On=(0,q.Z)((0,q.Z)({},Ir()),Un);(sr.current.x!==On.x||sr.current.y!==On.y)&&(Ve(On),sr.current=On)}});function Cr(Un,On){var Er=Un;On?((0,_.flushSync)(function(){Ke(Er)}),ar()):bn(Er)}function rr(Un){var On=Un.currentTarget.scrollTop;On!==yn&&bn(On),Xe==null||Xe(Un),ar()}var Pr=function(On){var Er=On,kr=Me?Me-Tt.width:0;return Er=Math.max(Er,0),Er=Math.min(Er,kr),Er},qr=(0,I.useEvent)(function(Un,On){On?((0,_.flushSync)(function(){Ke(function(Er){var kr=Er+(rt?-Un:Un);return Pr(kr)})}),ar()):bn(function(Er){var kr=Er+Un;return kr})}),qn=j(we,dr,En,Tn,pr,!!Me,qr),zn=(0,A.Z)(qn,2),dt=zn[0],Bn=zn[1];ue(we,He,function(Un,On,Er,kr){var ei=kr;return mr(Un,On,Er)?!1:!ei||!ei._virtualHandled?(ei&&(ei._virtualHandled=!0),dt({preventDefault:function(){},deltaX:Un?On:0,deltaY:Un?0:On}),!0):!1}),x(Le,He,function(Un){bn(function(On){return On+Un})}),(0,k.Z)(function(){function Un(Er){var kr=dr&&Er.detail<0,ei=En&&Er.detail>0;we&&!kr&&!ei&&Er.preventDefault()}var On=He.current;return On.addEventListener("wheel",dt,{passive:!1}),On.addEventListener("DOMMouseScroll",Bn,{passive:!0}),On.addEventListener("MozMousePixelScroll",Un,{passive:!1}),function(){On.removeEventListener("wheel",dt),On.removeEventListener("DOMMouseScroll",Bn),On.removeEventListener("MozMousePixelScroll",Un)}},[we,dr,En]),(0,k.Z)(function(){if(Me){var Un=Pr(Ut);Ke(Un),ar({x:Un})}},[Tt.width,Me]);var ur=function(){var On,Er;(On=sn.current)===null||On===void 0||On.delayHidden(),(Er=$t.current)===null||Er===void 0||Er.delayHidden()},er=me(He,Qt,nt,Re,yt,function(){return it(!0)},bn,ur);g.useImperativeHandle(wt,function(){return{nativeElement:Ln.current,getScrollInfo:Ir,scrollTo:function(On){function Er(kr){return kr&&(0,K.Z)(kr)==="object"&&("left"in kr||"top"in kr)}Er(On)?(On.left!==void 0&&Ke(Pr(On.left)),er(On.top)):er(On)}}}),(0,k.Z)(function(){if(xt){var Un=Qt.slice(Qn,Rn+1);xt(Un,Qt)}},[Qn,Rn,Qt]);var Lr=xe(Qt,yt,nt,Re),zr=vt==null?void 0:vt({start:Qn,end:Rn,virtual:Le,offsetX:Ut,offsetY:ln,rtl:rt,getSize:Lr}),Vr=se(Qt,Qn,Rn,Me,Ut,Sn,oe,rn),fr=null;Q&&(fr=(0,q.Z)((0,ce.Z)({},R?"height":"maxHeight",Q),at),we&&(fr.overflowY="hidden",Me&&(fr.overflowX="hidden"),Ct&&(fr.pointerEvents="none")));var Yr={};return rt&&(Yr.dir="rtl"),g.createElement("div",(0,O.Z)({ref:Ln,style:(0,q.Z)((0,q.Z)({},P),{},{position:"relative"}),className:_e},Yr,M),g.createElement(o.Z,{onResize:It},g.createElement(Je,{className:"".concat(pe,"-holder"),style:fr,ref:He,onScroll:rr,onMouseEnter:ur},g.createElement(T,{prefixCls:pe,height:an,offsetX:Ut,offsetY:ln,scrollWidth:Me,onInnerResize:it,ref:xn,innerProps:Dt,rtl:rt,extra:zr},Vr))),Le&&an>Q&&g.createElement(Ue,{ref:sn,prefixCls:pe,scrollOffset:yn,scrollRange:an,rtl:rt,onScroll:Cr,onStartMove:Vt,onStopMove:dn,spinSize:_n,containerSize:Tt.height,style:Bt==null?void 0:Bt.verticalScrollBar,thumbStyle:Bt==null?void 0:Bt.verticalScrollBarThumb,showScrollBar:C}),Le&&Me>Tt.width&&g.createElement(Ue,{ref:$t,prefixCls:pe,scrollOffset:Ut,scrollRange:Me,rtl:rt,onScroll:Cr,onStartMove:Vt,onStopMove:dn,spinSize:hn,containerSize:Tt.width,horizontal:!0,style:Bt==null?void 0:Bt.horizontalScrollBar,thumbStyle:Bt==null?void 0:Bt.horizontalScrollBarThumb,showScrollBar:C}))}var tn=g.forwardRef(Lt);tn.displayName="List";var Rt=tn,Ht=Rt},83145:function(Xt,Ze,p){"use strict";Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.CopyToClipboard=void 0;var O=q(p(59301)),K=q(p(25769));function q($){return $&&$.__esModule?$:{default:$}}function ce($){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ce=function(X){return typeof X}:ce=function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},ce($)}function A($,G){var X=Object.keys($);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols($);G&&(L=L.filter(function(D){return Object.getOwnPropertyDescriptor($,D).enumerable})),X.push.apply(X,L)}return X}function m($){for(var G=1;G<arguments.length;G++){var X=arguments[G]!=null?arguments[G]:{};G%2?A(X,!0).forEach(function(L){se($,L,X[L])}):Object.getOwnPropertyDescriptors?Object.defineProperties($,Object.getOwnPropertyDescriptors(X)):A(X).forEach(function(L){Object.defineProperty($,L,Object.getOwnPropertyDescriptor(X,L))})}return $}function w($,G){if($==null)return{};var X=re($,G),L,D;if(Object.getOwnPropertySymbols){var Y=Object.getOwnPropertySymbols($);for(D=0;D<Y.length;D++)L=Y[D],!(G.indexOf(L)>=0)&&Object.prototype.propertyIsEnumerable.call($,L)&&(X[L]=$[L])}return X}function re($,G){if($==null)return{};var X={},L=Object.keys($),D,Y;for(Y=0;Y<L.length;Y++)D=L[Y],!(G.indexOf(D)>=0)&&(X[D]=$[D]);return X}function o($,G){if(!($ instanceof G))throw new TypeError("Cannot call a class as a function")}function I($,G){for(var X=0;X<G.length;X++){var L=G[X];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty($,L.key,L)}}function k($,G,X){return G&&I($.prototype,G),X&&I($,X),$}function g($,G){return G&&(ce(G)==="object"||typeof G=="function")?G:S($)}function _($){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(X){return X.__proto__||Object.getPrototypeOf(X)},_($)}function S($){if($===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $}function T($,G){if(typeof G!="function"&&G!==null)throw new TypeError("Super expression must either be null or a function");$.prototype=Object.create(G&&G.prototype,{constructor:{value:$,writable:!0,configurable:!0}}),G&&B($,G)}function B($,G){return B=Object.setPrototypeOf||function(L,D){return L.__proto__=D,L},B($,G)}function se($,G,X){return G in $?Object.defineProperty($,G,{value:X,enumerable:!0,configurable:!0,writable:!0}):$[G]=X,$}var z=function($){T(G,$);function G(){var X,L;o(this,G);for(var D=arguments.length,Y=new Array(D),j=0;j<D;j++)Y[j]=arguments[j];return L=g(this,(X=_(G)).call.apply(X,[this].concat(Y))),se(S(L),"onClick",function(xe){var Ce=L.props,Ee=Ce.text,ge=Ce.onCopy,de=Ce.children,W=Ce.options,be=O.default.Children.only(de),N=(0,K.default)(Ee,W);ge&&ge(Ee,N),be&&be.props&&typeof be.props.onClick=="function"&&be.props.onClick(xe)}),L}return k(G,[{key:"render",value:function(){var L=this.props,D=L.text,Y=L.onCopy,j=L.options,xe=L.children,Ce=w(L,["text","onCopy","options","children"]),Ee=O.default.Children.only(xe);return O.default.cloneElement(Ee,m({},Ce,{onClick:this.onClick}))}}]),G}(O.default.PureComponent);Ze.CopyToClipboard=z,se(z,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(Xt,Ze,p){"use strict";var O=p(83145),K=O.CopyToClipboard;K.CopyToClipboard=K,Xt.exports=K},76374:function(Xt,Ze,p){"use strict";var O=function(){if(typeof Map!="undefined")return Map;function de(W,be){var N=-1;return W.some(function(ue,J){return ue[0]===be?(N=J,!0):!1}),N}return function(){function W(){this.__entries__=[]}return Object.defineProperty(W.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),W.prototype.get=function(be){var N=de(this.__entries__,be),ue=this.__entries__[N];return ue&&ue[1]},W.prototype.set=function(be,N){var ue=de(this.__entries__,be);~ue?this.__entries__[ue][1]=N:this.__entries__.push([be,N])},W.prototype.delete=function(be){var N=this.__entries__,ue=de(N,be);~ue&&N.splice(ue,1)},W.prototype.has=function(be){return!!~de(this.__entries__,be)},W.prototype.clear=function(){this.__entries__.splice(0)},W.prototype.forEach=function(be,N){N===void 0&&(N=null);for(var ue=0,J=this.__entries__;ue<J.length;ue++){var v=J[ue];be.call(N,v[1],v[0])}},W}()}(),K=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,q=function(){return typeof p.g!="undefined"&&p.g.Math===Math?p.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),ce=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(q):function(de){return setTimeout(function(){return de(Date.now())},1e3/60)}}(),A=2;function m(de,W){var be=!1,N=!1,ue=0;function J(){be&&(be=!1,de()),N&&x()}function v(){ce(J)}function x(){var Z=Date.now();if(be){if(Z-ue<A)return;N=!0}else be=!0,N=!1,setTimeout(v,W);ue=Z}return x}var w=20,re=["top","right","bottom","left","width","height","size","weight"],o=typeof MutationObserver!="undefined",I=function(){function de(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=m(this.refresh.bind(this),w)}return de.prototype.addObserver=function(W){~this.observers_.indexOf(W)||this.observers_.push(W),this.connected_||this.connect_()},de.prototype.removeObserver=function(W){var be=this.observers_,N=be.indexOf(W);~N&&be.splice(N,1),!be.length&&this.connected_&&this.disconnect_()},de.prototype.refresh=function(){var W=this.updateObservers_();W&&this.refresh()},de.prototype.updateObservers_=function(){var W=this.observers_.filter(function(be){return be.gatherActive(),be.hasActive()});return W.forEach(function(be){return be.broadcastActive()}),W.length>0},de.prototype.connect_=function(){!K||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)},de.prototype.disconnect_=function(){!K||!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)},de.prototype.onTransitionEnd_=function(W){var be=W.propertyName,N=be===void 0?"":be,ue=re.some(function(J){return!!~N.indexOf(J)});ue&&this.refresh()},de.getInstance=function(){return this.instance_||(this.instance_=new de),this.instance_},de.instance_=null,de}(),k=function(de,W){for(var be=0,N=Object.keys(W);be<N.length;be++){var ue=N[be];Object.defineProperty(de,ue,{value:W[ue],enumerable:!1,writable:!1,configurable:!0})}return de},g=function(de){var W=de&&de.ownerDocument&&de.ownerDocument.defaultView;return W||q},_=D(0,0,0,0);function S(de){return parseFloat(de)||0}function T(de){for(var W=[],be=1;be<arguments.length;be++)W[be-1]=arguments[be];return W.reduce(function(N,ue){var J=de["border-"+ue+"-width"];return N+S(J)},0)}function B(de){for(var W=["top","right","bottom","left"],be={},N=0,ue=W;N<ue.length;N++){var J=ue[N],v=de["padding-"+J];be[J]=S(v)}return be}function se(de){var W=de.getBBox();return D(0,0,W.width,W.height)}function z(de){var W=de.clientWidth,be=de.clientHeight;if(!W&&!be)return _;var N=g(de).getComputedStyle(de),ue=B(N),J=ue.left+ue.right,v=ue.top+ue.bottom,x=S(N.width),Z=S(N.height);if(N.boxSizing==="border-box"&&(Math.round(x+J)!==W&&(x-=T(N,"left","right")+J),Math.round(Z+v)!==be&&(Z-=T(N,"top","bottom")+v)),!G(de)){var me=Math.round(x+J)-W,Be=Math.round(Z+v)-be;Math.abs(me)!==1&&(x-=me),Math.abs(Be)!==1&&(Z-=Be)}return D(ue.left,ue.top,x,Z)}var $=function(){return typeof SVGGraphicsElement!="undefined"?function(de){return de instanceof g(de).SVGGraphicsElement}:function(de){return de instanceof g(de).SVGElement&&typeof de.getBBox=="function"}}();function G(de){return de===g(de).document.documentElement}function X(de){return K?$(de)?se(de):z(de):_}function L(de){var W=de.x,be=de.y,N=de.width,ue=de.height,J=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,v=Object.create(J.prototype);return k(v,{x:W,y:be,width:N,height:ue,top:be,right:W+N,bottom:ue+be,left:W}),v}function D(de,W,be,N){return{x:de,y:W,width:be,height:N}}var Y=function(){function de(W){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=D(0,0,0,0),this.target=W}return de.prototype.isActive=function(){var W=X(this.target);return this.contentRect_=W,W.width!==this.broadcastWidth||W.height!==this.broadcastHeight},de.prototype.broadcastRect=function(){var W=this.contentRect_;return this.broadcastWidth=W.width,this.broadcastHeight=W.height,W},de}(),j=function(){function de(W,be){var N=L(be);k(this,{target:W,contentRect:N})}return de}(),xe=function(){function de(W,be,N){if(this.activeObservations_=[],this.observations_=new O,typeof W!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=W,this.controller_=be,this.callbackCtx_=N}return de.prototype.observe=function(W){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(W instanceof g(W).Element))throw new TypeError('parameter 1 is not of type "Element".');var be=this.observations_;be.has(W)||(be.set(W,new Y(W)),this.controller_.addObserver(this),this.controller_.refresh())}},de.prototype.unobserve=function(W){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(W instanceof g(W).Element))throw new TypeError('parameter 1 is not of type "Element".');var be=this.observations_;be.has(W)&&(be.delete(W),be.size||this.controller_.removeObserver(this))}},de.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},de.prototype.gatherActive=function(){var W=this;this.clearActive(),this.observations_.forEach(function(be){be.isActive()&&W.activeObservations_.push(be)})},de.prototype.broadcastActive=function(){if(this.hasActive()){var W=this.callbackCtx_,be=this.activeObservations_.map(function(N){return new j(N.target,N.broadcastRect())});this.callback_.call(W,be,W),this.clearActive()}},de.prototype.clearActive=function(){this.activeObservations_.splice(0)},de.prototype.hasActive=function(){return this.activeObservations_.length>0},de}(),Ce=typeof WeakMap!="undefined"?new WeakMap:new O,Ee=function(){function de(W){if(!(this instanceof de))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var be=I.getInstance(),N=new xe(W,be,this);Ce.set(this,N)}return de}();["observe","unobserve","disconnect"].forEach(function(de){Ee.prototype[de]=function(){var W;return(W=Ce.get(this))[de].apply(W,arguments)}});var ge=function(){return typeof q.ResizeObserver!="undefined"?q.ResizeObserver:Ee}();Ze.Z=ge},27774:function(Xt,Ze){"use strict";Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.SizeSensorId=Ze.SensorTabIndex=Ze.SensorClassName=void 0;var p="size-sensor-id";Ze.SizeSensorId=p;var O="size-sensor-object";Ze.SensorClassName=O;var K="-1";Ze.SensorTabIndex=K},79301:function(Xt,Ze){"use strict";Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=void 0;var p=function(K){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,ce=null;return function(){for(var A=this,m=arguments.length,w=new Array(m),re=0;re<m;re++)w[re]=arguments[re];clearTimeout(ce),ce=setTimeout(function(){K.apply(A,w)},q)}};Ze.default=p},79789:function(Xt,Ze){"use strict";Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=void 0;var p=1,O=function(){return"".concat(p++)};Ze.default=O},47242:function(Xt,Ze,p){"use strict";Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.ver=Ze.clear=Ze.bind=void 0;var O=p(95270),K=function(m,w){var re=(0,O.getSensor)(m);return re.bind(w),function(){re.unbind(w)}};Ze.bind=K;var q=function(m){var w=(0,O.getSensor)(m);(0,O.removeSensor)(w)};Ze.clear=q;var ce="1.0.2";Ze.ver=ce},95270:function(Xt,Ze,p){"use strict";Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.removeSensor=Ze.getSensor=Ze.Sensors=void 0;var O=ce(p(79789)),K=p(57829),q=p(27774);function ce(o){return o&&o.__esModule?o:{default:o}}var A={};Ze.Sensors=A;function m(o){o&&A[o]&&delete A[o]}var w=function(I){var k=I.getAttribute(q.SizeSensorId);if(k&&A[k])return A[k];var g=(0,O.default)();I.setAttribute(q.SizeSensorId,g);var _=(0,K.createSensor)(I,function(){return m(g)});return A[g]=_,_};Ze.getSensor=w;var re=function(I){var k=I.element.getAttribute(q.SizeSensorId);I.destroy(),m(k)};Ze.removeSensor=re},57829:function(Xt,Ze,p){"use strict";Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.createSensor=void 0;var O=p(20953),K=p(55202),q=typeof ResizeObserver!="undefined"?K.createSensor:O.createSensor;Ze.createSensor=q},20953:function(Xt,Ze,p){"use strict";Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.createSensor=void 0;var O=q(p(79301)),K=p(27774);function q(A){return A&&A.__esModule?A:{default:A}}var ce=function(m,w){var re=void 0,o=[],I=function(){getComputedStyle(m).position==="static"&&(m.style.position="relative");var B=document.createElement("object");return B.onload=function(){B.contentDocument.defaultView.addEventListener("resize",k),k()},B.style.display="block",B.style.position="absolute",B.style.top="0",B.style.left="0",B.style.height="100%",B.style.width="100%",B.style.overflow="hidden",B.style.pointerEvents="none",B.style.zIndex="-1",B.style.opacity="0",B.setAttribute("class",K.SensorClassName),B.setAttribute("tabindex",K.SensorTabIndex),B.type="text/html",m.appendChild(B),B.data="about:blank",B},k=(0,O.default)(function(){o.forEach(function(T){T(m)})}),g=function(B){re||(re=I()),o.indexOf(B)===-1&&o.push(B)},_=function(){re&&re.parentNode&&(re.contentDocument&&re.contentDocument.defaultView.removeEventListener("resize",k),re.parentNode.removeChild(re),m.removeAttribute(K.SizeSensorId),re=void 0,o=[],w&&w())},S=function(B){var se=o.indexOf(B);se!==-1&&o.splice(se,1),o.length===0&&re&&_()};return{element:m,bind:g,destroy:_,unbind:S}};Ze.createSensor=ce},55202:function(Xt,Ze,p){"use strict";Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.createSensor=void 0;var O=p(27774),K=q(p(79301));function q(A){return A&&A.__esModule?A:{default:A}}var ce=function(m,w){var re=void 0,o=[],I=(0,K.default)(function(){o.forEach(function(T){T(m)})}),k=function(){var B=new ResizeObserver(I);return B.observe(m),I(),B},g=function(B){re||(re=k()),o.indexOf(B)===-1&&o.push(B)},_=function(){re.disconnect(),o=[],re=void 0,m.removeAttribute(O.SizeSensorId),w&&w()},S=function(B){var se=o.indexOf(B);se!==-1&&o.splice(se,1),o.length===0&&re&&_()};return{element:m,bind:g,destroy:_,unbind:S}};Ze.createSensor=ce},98040:function(Xt){Xt.exports=function(){var Ze=document.getSelection();if(!Ze.rangeCount)return function(){};for(var p=document.activeElement,O=[],K=0;K<Ze.rangeCount;K++)O.push(Ze.getRangeAt(K));switch(p.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":p.blur();break;default:p=null;break}return Ze.removeAllRanges(),function(){Ze.type==="Caret"&&Ze.removeAllRanges(),Ze.rangeCount||O.forEach(function(q){Ze.addRange(q)}),p&&p.focus()}}},93314:function(Xt){"use strict";Xt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},46284:function(Xt,Ze,p){"use strict";p.d(Ze,{ZP:function(){return Va}});const O=Number.isFinite||function(a){return typeof a=="number"&&isFinite(a)},K=Number.isSafeInteger||function(a){return typeof a=="number"&&Math.abs(a)<=q},q=Number.MAX_SAFE_INTEGER||9007199254740991;let ce=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}({}),A=function(a){return a.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",a.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",a.KEY_SYSTEM_NO_SESSION="keySystemNoSession",a.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",a.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",a.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",a.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",a.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",a.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",a.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",a.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR="keySystemDestroyMediaKeysError",a.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR="keySystemDestroyCloseSessionError",a.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR="keySystemDestroyRemoveSessionError",a.MANIFEST_LOAD_ERROR="manifestLoadError",a.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",a.MANIFEST_PARSING_ERROR="manifestParsingError",a.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",a.LEVEL_EMPTY_ERROR="levelEmptyError",a.LEVEL_LOAD_ERROR="levelLoadError",a.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",a.LEVEL_PARSING_ERROR="levelParsingError",a.LEVEL_SWITCH_ERROR="levelSwitchError",a.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",a.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",a.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",a.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",a.FRAG_LOAD_ERROR="fragLoadError",a.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",a.FRAG_DECRYPT_ERROR="fragDecryptError",a.FRAG_PARSING_ERROR="fragParsingError",a.FRAG_GAP="fragGap",a.REMUX_ALLOC_ERROR="remuxAllocError",a.KEY_LOAD_ERROR="keyLoadError",a.KEY_LOAD_TIMEOUT="keyLoadTimeOut",a.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",a.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",a.BUFFER_APPEND_ERROR="bufferAppendError",a.BUFFER_APPENDING_ERROR="bufferAppendingError",a.BUFFER_STALLED_ERROR="bufferStalledError",a.BUFFER_FULL_ERROR="bufferFullError",a.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",a.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",a.ASSET_LIST_LOAD_ERROR="assetListLoadError",a.ASSET_LIST_LOAD_TIMEOUT="assetListLoadTimeout",a.ASSET_LIST_PARSING_ERROR="assetListParsingError",a.INTERSTITIAL_ASSET_ITEM_ERROR="interstitialAssetItemError",a.INTERNAL_EXCEPTION="internalException",a.INTERNAL_ABORTED="aborted",a.ATTACH_MEDIA_ERROR="attachMediaError",a.UNKNOWN="unknown",a}({}),m=function(a){return a.MEDIA_ATTACHING="hlsMediaAttaching",a.MEDIA_ATTACHED="hlsMediaAttached",a.MEDIA_DETACHING="hlsMediaDetaching",a.MEDIA_DETACHED="hlsMediaDetached",a.MEDIA_ENDED="hlsMediaEnded",a.STALL_RESOLVED="hlsStallResolved",a.BUFFER_RESET="hlsBufferReset",a.BUFFER_CODECS="hlsBufferCodecs",a.BUFFER_CREATED="hlsBufferCreated",a.BUFFER_APPENDING="hlsBufferAppending",a.BUFFER_APPENDED="hlsBufferAppended",a.BUFFER_EOS="hlsBufferEos",a.BUFFERED_TO_END="hlsBufferedToEnd",a.BUFFER_FLUSHING="hlsBufferFlushing",a.BUFFER_FLUSHED="hlsBufferFlushed",a.MANIFEST_LOADING="hlsManifestLoading",a.MANIFEST_LOADED="hlsManifestLoaded",a.MANIFEST_PARSED="hlsManifestParsed",a.LEVEL_SWITCHING="hlsLevelSwitching",a.LEVEL_SWITCHED="hlsLevelSwitched",a.LEVEL_LOADING="hlsLevelLoading",a.LEVEL_LOADED="hlsLevelLoaded",a.LEVEL_UPDATED="hlsLevelUpdated",a.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",a.LEVELS_UPDATED="hlsLevelsUpdated",a.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",a.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",a.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",a.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",a.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",a.AUDIO_TRACK_UPDATED="hlsAudioTrackUpdated",a.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",a.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",a.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",a.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",a.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",a.SUBTITLE_TRACK_UPDATED="hlsSubtitleTrackUpdated",a.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",a.CUES_PARSED="hlsCuesParsed",a.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",a.INIT_PTS_FOUND="hlsInitPtsFound",a.FRAG_LOADING="hlsFragLoading",a.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",a.FRAG_LOADED="hlsFragLoaded",a.FRAG_DECRYPTED="hlsFragDecrypted",a.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",a.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",a.FRAG_PARSING_METADATA="hlsFragParsingMetadata",a.FRAG_PARSED="hlsFragParsed",a.FRAG_BUFFERED="hlsFragBuffered",a.FRAG_CHANGED="hlsFragChanged",a.FPS_DROP="hlsFpsDrop",a.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",a.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",a.ERROR="hlsError",a.DESTROYING="hlsDestroying",a.KEY_LOADING="hlsKeyLoading",a.KEY_LOADED="hlsKeyLoaded",a.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",a.BACK_BUFFER_REACHED="hlsBackBufferReached",a.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",a.ASSET_LIST_LOADING="hlsAssetListLoading",a.ASSET_LIST_LOADED="hlsAssetListLoaded",a.INTERSTITIALS_UPDATED="hlsInterstitialsUpdated",a.INTERSTITIALS_BUFFERED_TO_BOUNDARY="hlsInterstitialsBufferedToBoundary",a.INTERSTITIAL_ASSET_PLAYER_CREATED="hlsInterstitialAssetPlayerCreated",a.INTERSTITIAL_STARTED="hlsInterstitialStarted",a.INTERSTITIAL_ASSET_STARTED="hlsInterstitialAssetStarted",a.INTERSTITIAL_ASSET_ENDED="hlsInterstitialAssetEnded",a.INTERSTITIAL_ASSET_ERROR="hlsInterstitialAssetError",a.INTERSTITIAL_ENDED="hlsInterstitialEnded",a.INTERSTITIALS_PRIMARY_RESUMED="hlsInterstitialsPrimaryResumed",a.PLAYOUT_LIMIT_REACHED="hlsPlayoutLimitReached",a.EVENT_CUE_ENTER="hlsEventCueEnter",a}({});var w={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},re={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};class o{constructor(e,t=0,n=0){this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=e,this.alpha_=e?Math.exp(Math.log(.5)/e):0,this.estimate_=t,this.totalWeight_=n}sample(e,t){const n=Math.pow(this.alpha_,e);this.estimate_=t*(1-n)+n*this.estimate_,this.totalWeight_+=e}getTotalWeight(){return this.totalWeight_}getEstimate(){if(this.alpha_){const e=1-Math.pow(this.alpha_,this.totalWeight_);if(e)return this.estimate_/e}return this.estimate_}}class I{constructor(e,t,n,r=100){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=n,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new o(e),this.fast_=new o(t),this.defaultTTFB_=r,this.ttfb_=new o(e)}update(e,t){const{slow_:n,fast_:r,ttfb_:i}=this;n.halfLife!==e&&(this.slow_=new o(e,n.getEstimate(),n.getTotalWeight())),r.halfLife!==t&&(this.fast_=new o(t,r.getEstimate(),r.getTotalWeight())),i.halfLife!==e&&(this.ttfb_=new o(e,i.getEstimate(),i.getTotalWeight()))}sample(e,t){e=Math.max(e,this.minDelayMs_);const n=8*t,r=e/1e3,i=n/r;this.fast_.sample(r,i),this.slow_.sample(r,i)}sampleTTFB(e){const t=e/1e3,n=Math.sqrt(2)*Math.exp(-Math.pow(t,2)/2);this.ttfb_.sample(n,Math.max(e,5))}canEstimate(){return this.fast_.getTotalWeight()>=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}get defaultEstimate(){return this.defaultEstimate_}destroy(){}}function k(a,e,t){return(e=B(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function g(){return g=Object.assign?Object.assign.bind():function(a){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)({}).hasOwnProperty.call(t,n)&&(a[n]=t[n])}return a},g.apply(null,arguments)}function _(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(a,r).enumerable})),t.push.apply(t,n)}return t}function S(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?_(Object(t),!0).forEach(function(n){k(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):_(Object(t)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(t,n))})}return a}function T(a,e){if(typeof a!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var n=t.call(a,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function B(a){var e=T(a,"string");return typeof e=="symbol"?e:e+""}class se{constructor(e,t){this.trace=void 0,this.debug=void 0,this.log=void 0,this.warn=void 0,this.info=void 0,this.error=void 0;const n=`[${e}]:`;this.trace=z,this.debug=t.debug.bind(null,n),this.log=t.log.bind(null,n),this.warn=t.warn.bind(null,n),this.info=t.info.bind(null,n),this.error=t.error.bind(null,n)}}const z=function(){},$={trace:z,debug:z,log:z,warn:z,info:z,error:z};function G(){return g({},$)}function X(a,e){const t=self.console[a];return t?t.bind(self.console,`${e?"["+e+"] ":""}[${a}] >`):z}function L(a,e,t){return e[a]?e[a].bind(e):X(a,t)}const D=G();function Y(a,e,t){const n=G();if(typeof console=="object"&&a===!0||typeof a=="object"){const r=["debug","log","info","warn","error"];r.forEach(i=>{n[i]=L(i,a,t)});try{n.log(`Debug logs enabled for "${e}" in hls.js version 1.6.1`)}catch(i){return G()}r.forEach(i=>{D[i]=L(i,a)})}else g(D,n);return n}const j=D;function xe(a=!0){return typeof self=="undefined"?void 0:(a||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function Ce(a){return typeof self!="undefined"&&a===self.ManagedMediaSource}function Ee(a,e){const t=Object.keys(a),n=Object.keys(e),r=t.length,i=n.length;return!r||!i||r===i&&!t.some(s=>n.indexOf(s)===-1)}function ge(a,e=!1){if(typeof TextDecoder!="undefined"){const c=new TextDecoder("utf-8").decode(a);if(e){const y=c.indexOf("\0");return y!==-1?c.substring(0,y):c}return c.replace(/\0/g,"")}const t=a.length;let n,r,i,s="",u=0;for(;u<t;){if(n=a[u++],n===0&&e)return s;if(n===0||n===3)continue;switch(n>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:s+=String.fromCharCode(n);break;case 12:case 13:r=a[u++],s+=String.fromCharCode((n&31)<<6|r&63);break;case 14:r=a[u++],i=a[u++],s+=String.fromCharCode((n&15)<<12|(r&63)<<6|(i&63)<<0);break}}return s}const de={hexDump:function(a){let e="";for(let t=0;t<a.length;t++){let n=a[t].toString(16);n.length<2&&(n="0"+n),e+=n}return e}};function W(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var be={exports:{}},N;function ue(){return N||(N=1,function(a,e){(function(t){var n=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,s=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,u={buildAbsoluteURL:function(f,c,y){if(y=y||{},f=f.trim(),c=c.trim(),!c){if(!y.alwaysNormalize)return f;var E=u.parseURL(f);if(!E)throw new Error("Error trying to parse base URL.");return E.path=u.normalizePath(E.path),u.buildURLFromParts(E)}var U=u.parseURL(c);if(!U)throw new Error("Error trying to parse relative URL.");if(U.scheme)return y.alwaysNormalize?(U.path=u.normalizePath(U.path),u.buildURLFromParts(U)):c;var V=u.parseURL(f);if(!V)throw new Error("Error trying to parse base URL.");if(!V.netLoc&&V.path&&V.path[0]!=="/"){var ee=r.exec(V.path);V.netLoc=ee[1],V.path=ee[2]}V.netLoc&&!V.path&&(V.path="/");var De={scheme:V.scheme,netLoc:U.netLoc,path:null,params:U.params,query:U.query,fragment:U.fragment};if(!U.netLoc&&(De.netLoc=V.netLoc,U.path[0]!=="/"))if(!U.path)De.path=V.path,U.params||(De.params=V.params,U.query||(De.query=V.query));else{var Ae=V.path,Ge=Ae.substring(0,Ae.lastIndexOf("/")+1)+U.path;De.path=u.normalizePath(Ge)}return De.path===null&&(De.path=y.alwaysNormalize?u.normalizePath(U.path):U.path),u.buildURLFromParts(De)},parseURL:function(f){var c=n.exec(f);return c?{scheme:c[1]||"",netLoc:c[2]||"",path:c[3]||"",params:c[4]||"",query:c[5]||"",fragment:c[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})()}(be)),be.exports}var J=ue();class v{constructor(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}}var x={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class Z{constructor(e){this._byteRange=null,this._url=null,this._stats=null,this._streams=null,this.base=void 0,this.relurl=void 0,typeof e=="string"&&(e={url:e}),this.base=e,qe(this,"stats")}setByteRange(e,t){const n=e.split("@",2);let r;n.length===1?r=(t==null?void 0:t.byteRangeEndOffset)||0:r=parseInt(n[1]),this._byteRange=[r,parseInt(n[0])+r]}get baseurl(){return this.base.url}get byteRange(){return this._byteRange===null?[]:this._byteRange}get byteRangeStartOffset(){return this.byteRange[0]}get byteRangeEndOffset(){return this.byteRange[1]}get elementaryStreams(){return this._streams===null&&(this._streams={[x.AUDIO]:null,[x.VIDEO]:null,[x.AUDIOVIDEO]:null}),this._streams}set elementaryStreams(e){this._streams=e}get hasStats(){return this._stats!==null}get hasStreams(){return this._streams!==null}get stats(){return this._stats===null&&(this._stats=new v),this._stats}set stats(e){this._stats=e}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=J.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[x.AUDIO]=null,e[x.VIDEO]=null,e[x.AUDIOVIDEO]=null}}function me(a){return a.sn!=="initSegment"}class Be extends Z{constructor(e,t){super(t),this._decryptdata=null,this._programDateTime=null,this._ref=null,this._bitrate=void 0,this.rawProgramDateTime=null,this.tagList=[],this.duration=0,this.sn=0,this.levelkeys=void 0,this.type=void 0,this.loader=null,this.keyLoader=null,this.level=-1,this.cc=0,this.startPTS=void 0,this.endPTS=void 0,this.startDTS=void 0,this.endDTS=void 0,this.start=0,this.playlistOffset=0,this.deltaPTS=void 0,this.maxStartPTS=void 0,this.minEndPTS=void 0,this.data=void 0,this.bitrateTest=!1,this.title=null,this.initSegment=null,this.endList=void 0,this.gap=void 0,this.urlId=0,this.type=e}get byteLength(){if(this.hasStats){const e=this.stats.total;if(e)return e}if(this.byteRange){const e=this.byteRange[0],t=this.byteRange[1];if(O(e)&&O(t))return t-e}return null}get bitrate(){return this.byteLength?this.byteLength*8/this.duration:this._bitrate?this._bitrate:null}set bitrate(e){this._bitrate=e}get decryptdata(){const{levelkeys:e}=this;if(!e&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){const t=this.levelkeys.identity;if(t)this._decryptdata=t.getDecryptData(this.sn);else{const n=Object.keys(this.levelkeys);if(n.length===1)return this._decryptdata=this.levelkeys[n[0]].getDecryptData(this.sn)}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(this.programDateTime===null)return null;const e=O(this.duration)?this.duration:0;return this.programDateTime+e*1e3}get encrypted(){var e;if((e=this._decryptdata)!=null&&e.encrypted)return!0;if(this.levelkeys){const t=Object.keys(this.levelkeys),n=t.length;if(n>1||n===1&&this.levelkeys[t[0]].encrypted)return!0}return!1}get programDateTime(){return this._programDateTime===null&&this.rawProgramDateTime&&(this.programDateTime=Date.parse(this.rawProgramDateTime)),this._programDateTime}set programDateTime(e){if(!O(e)){this._programDateTime=this.rawProgramDateTime=null;return}this._programDateTime=e}get ref(){return me(this)?(this._ref||(this._ref={base:this.base,start:this.start,duration:this.duration,sn:this.sn,programDateTime:this.programDateTime}),this._ref):null}addStart(e){this.setStart(this.start+e)}setStart(e){this.start=e,this._ref&&(this._ref.start=e)}setDuration(e){this.duration=e,this._ref&&(this._ref.duration=e)}setKeyFormat(e){if(this.levelkeys){const t=this.levelkeys[e];t&&!this._decryptdata&&(this._decryptdata=t.getDecryptData(this.sn))}}abortRequests(){var e,t;(e=this.loader)==null||e.abort(),(t=this.keyLoader)==null||t.abort()}setElementaryStreamInfo(e,t,n,r,i,s=!1){const{elementaryStreams:u}=this,f=u[e];if(!f){u[e]={startPTS:t,endPTS:n,startDTS:r,endDTS:i,partial:s};return}f.startPTS=Math.min(f.startPTS,t),f.endPTS=Math.max(f.endPTS,n),f.startDTS=Math.min(f.startDTS,r),f.endDTS=Math.max(f.endDTS,i)}}class Ue extends Z{constructor(e,t,n,r,i){super(n),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.duration=e.decimalFloatingPoint("DURATION"),this.gap=e.bool("GAP"),this.independent=e.bool("INDEPENDENT"),this.relurl=e.enumeratedString("URI"),this.fragment=t,this.index=r;const s=e.enumeratedString("BYTERANGE");s&&this.setByteRange(s,i),i&&(this.fragOffset=i.fragOffset+i.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){const{elementaryStreams:e}=this;return!!(e.audio||e.video||e.audiovideo)}}function ze(a,e){const t=Object.getPrototypeOf(a);if(t){const n=Object.getOwnPropertyDescriptor(t,e);return n||ze(t,e)}}function qe(a,e){const t=ze(a,e);t&&(t.enumerable=!0,Object.defineProperty(a,e,t))}const mt=Math.pow(2,32)-1,gt=[].push,at={video:1,audio:2,id3:3,text:4};function Lt(a){return String.fromCharCode.apply(null,a)}function tn(a,e){const t=a[e]<<8|a[e+1];return t<0?65536+t:t}function Rt(a,e){const t=ut(a,e);return t<0?4294967296+t:t}function Ht(a,e){let t=Rt(a,e);return t*=Math.pow(2,32),t+=Rt(a,e+4),t}function ut(a,e){return a[e]<<24|a[e+1]<<16|a[e+2]<<8|a[e+3]}function wt(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 he(a){const e=a.byteLength;for(let t=0;t<e;){const n=Rt(a,t);if(n>8&&a[t+4]===109&&a[t+5]===111&&a[t+6]===111&&a[t+7]===102)return!0;t=n>1?t+n:e}return!1}function pe(a,e){const t=[];if(!e.length)return t;const n=a.byteLength;for(let r=0;r<n;){const i=Rt(a,r),s=Lt(a.subarray(r+4,r+8)),u=i>1?r+i:n;if(s===e[0])if(e.length===1)t.push(a.subarray(r+8,u));else{const f=pe(a.subarray(r+8,u),e.slice(1));f.length&>.apply(t,f)}r=u}return t}function le(a){const e=[],t=a[0];let n=8;const r=Rt(a,n);n+=4;let i=0,s=0;t===0?(i=Rt(a,n),s=Rt(a,n+4),n+=8):(i=Ht(a,n),s=Ht(a,n+8),n+=16),n+=2;let u=a.length+s;const f=tn(a,n);n+=2;for(let c=0;c<f;c++){let y=n;const E=Rt(a,y);y+=4;const U=E&2147483647;if((E&2147483648)>>>31===1)return j.warn("SIDX has hierarchical references (not supported)"),null;const ee=Rt(a,y);y+=4,e.push({referenceSize:U,subsegmentDuration:ee,info:{duration:ee/r,start:u,end:u+U-1}}),u+=U,y+=4,n=y}return{earliestPresentationTime:i,timescale:r,version:t,referencesCount:f,references:e}}function Q(a){const e=[],t=pe(a,["moov","trak"]);for(let r=0;r<t.length;r++){const i=t[r],s=pe(i,["tkhd"])[0];if(s){let u=s[0];const f=Rt(s,u===0?12:20),c=pe(i,["mdia","mdhd"])[0];if(c){u=c[0];const y=Rt(c,u===0?12:20),E=pe(i,["mdia","hdlr"])[0];if(E){const U=Lt(E.subarray(8,12)),V={soun:x.AUDIO,vide:x.VIDEO}[U],ee=pe(i,["mdia","minf","stbl","stsd"])[0],De=Re(ee);V?(e[f]={timescale:y,type:V,stsd:De},e[V]=S({timescale:y,id:f},De)):e[f]={timescale:y,type:U,stsd:De}}}}}return pe(a,["moov","mvex","trex"]).forEach(r=>{const i=Rt(r,4),s=e[i];s&&(s.default={duration:Rt(r,12),flags:Rt(r,20)})}),e}function Re(a){const e=a.subarray(8),t=e.subarray(86),n=Lt(e.subarray(4,8));let r=n,i;const s=n==="enca"||n==="encv";if(s){const c=pe(e,[n])[0].subarray(n==="enca"?28:78);pe(c,["sinf"]).forEach(E=>{const U=pe(E,["schm"])[0];if(U){const V=Lt(U.subarray(4,8));if(V==="cbcs"||V==="cenc"){const ee=pe(E,["frma"])[0];ee&&(r=Lt(ee))}}})}const u=r;switch(r){case"avc1":case"avc2":case"avc3":case"avc4":{const f=pe(t,["avcC"])[0];f&&f.length>3&&(r+="."+P(f[1])+P(f[2])+P(f[3]),i=H(u==="avc1"?"dva1":"dvav",t));break}case"mp4a":{const f=pe(e,[n])[0],c=pe(f.subarray(28),["esds"])[0];if(c&&c.length>7){let y=4;if(c[y++]!==3)break;y=R(c,y),y+=2;const E=c[y++];if(E&128&&(y+=2),E&64&&(y+=c[y++]),c[y++]!==4)break;y=R(c,y);const U=c[y++];if(U===64)r+="."+P(U);else break;if(y+=12,c[y++]!==5)break;y=R(c,y);const V=c[y++];let ee=(V&248)>>3;ee===31&&(ee+=1+((V&7)<<3)+((c[y]&224)>>5)),r+="."+ee}break}case"hvc1":case"hev1":{const f=pe(t,["hvcC"])[0];if(f&&f.length>12){const c=f[1],y=["","A","B","C"][c>>6],E=c&31,U=Rt(f,2),V=(c&32)>>5?"H":"L",ee=f[12],De=f.subarray(6,12);r+="."+y+E,r+="."+U.toString(16).toUpperCase(),r+="."+V+ee;let Ae="";for(let Ge=De.length;Ge--;){const ft=De[Ge];(ft||Ae)&&(Ae="."+ft.toString(16).toUpperCase()+Ae)}r+=Ae}i=H(u=="hev1"?"dvhe":"dvh1",t);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":{r=H(r,t)||r;break}case"vp09":{const f=pe(t,["vpcC"])[0];if(f&&f.length>6){const c=f[4],y=f[5],E=f[6]>>4&15;r+="."+fe(c)+"."+fe(y)+"."+fe(E)}break}case"av01":{const f=pe(t,["av1C"])[0];if(f&&f.length>2){const c=f[1]>>>5,y=f[1]&31,E=f[2]>>>7?"H":"M",U=(f[2]&64)>>6,V=(f[2]&32)>>5,ee=c===2&&U?V?12:10:U?10:8,De=(f[2]&16)>>4,Ae=(f[2]&8)>>3,Ge=(f[2]&4)>>2,ft=f[2]&3;r+="."+c+"."+fe(y)+E+"."+fe(ee)+"."+De+"."+Ae+Ge+ft+"."+fe(1)+"."+fe(1)+"."+fe(1)+"."+0,i=H("dav1",t)}break}}return{codec:r,encrypted:s,supplemental:i}}function H(a,e){const t=pe(e,["dvvC"]),n=t.length?t[0]:pe(e,["dvcC"])[0];if(n){const r=n[2]>>1&127,i=n[2]<<5&32|n[3]>>3&31;return a+"."+fe(r)+"."+fe(i)}}function R(a,e){const t=e+5;for(;a[e++]&128&&e<t;);return e}function P(a){return("0"+a.toString(16).toUpperCase()).slice(-2)}function fe(a){return(a<10?"0":"")+a}function oe(a,e){if(!a||!e)return a;const t=e.keyId;return t&&e.isCommonEncryption&&pe(a,["moov","trak"]).forEach(r=>{const s=pe(r,["mdia","minf","stbl","stsd"])[0].subarray(8);let u=pe(s,["enca"]);const f=u.length>0;f||(u=pe(s,["encv"])),u.forEach(c=>{const y=f?c.subarray(28):c.subarray(78);pe(y,["sinf"]).forEach(U=>{const V=te(U);if(V){const ee=V.subarray(8,24);ee.some(De=>De!==0)||(j.log(`[eme] Patching keyId in 'enc${f?"a":"v"}>sinf>>tenc' box: ${de.hexDump(ee)} -> ${de.hexDump(t)}`),V.set(t,8))}})})}),a}function te(a){const e=pe(a,["schm"])[0];if(e){const t=Lt(e.subarray(4,8));if(t==="cbcs"||t==="cenc")return pe(a,["schi","tenc"])[0]}return null}function Te(a,e){return pe(e,["moof","traf"]).reduce((t,n)=>{const r=pe(n,["tfdt"])[0],i=r[0],s=pe(n,["tfhd"]).reduce((u,f)=>{const c=Rt(f,4),y=a[c];if(y){let E=Rt(r,4);if(i===1){if(E===mt)return j.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),u;E*=mt+1,E+=Rt(r,8)}const U=y.timescale||9e4,V=E/U;if(O(V)&&(u===null||V<u))return V}return u},null);return s!==null&&O(s)&&(t===null||s<t)?s:t},null)}function je(a,e){let t=0,n=0,r=0;const i=pe(a,["moof","traf"]);for(let s=0;s<i.length;s++){const u=i[s],f=pe(u,["tfhd"])[0],c=Rt(f,4),y=e[c];if(!y)continue;const E=y.default,U=Rt(f,0)|(E==null?void 0:E.flags);let V=E==null?void 0:E.duration;U&8&&(U&2?V=Rt(f,12):V=Rt(f,8));const ee=y.timescale||9e4,De=pe(u,["trun"]);for(let Ae=0;Ae<De.length;Ae++){if(t=Me(De[Ae]),!t&&V){const Ge=Rt(De[Ae],4);t=V*Ge}y.type===x.VIDEO?n+=t/ee:y.type===x.AUDIO&&(r+=t/ee)}}if(n===0&&r===0){let s=1/0,u=0,f=0;const c=pe(a,["sidx"]);for(let y=0;y<c.length;y++){const E=le(c[y]);if(E!=null&&E.references){s=Math.min(s,E.earliestPresentationTime/E.timescale);const U=E.references.reduce((V,ee)=>V+ee.info.duration||0,0);u=Math.max(u,U+E.earliestPresentationTime/E.timescale),f=u-s}}if(f&&O(f))return f}return n||r}function Me(a){const e=Rt(a,0);let t=8;e&1&&(t+=4),e&4&&(t+=4);let n=0;const r=Rt(a,4);for(let i=0;i<r;i++){if(e&256){const s=Rt(a,t);n+=s,t+=4}e&512&&(t+=4),e&1024&&(t+=4),e&2048&&(t+=4)}return n}function Fe(a,e,t){pe(e,["moof","traf"]).forEach(n=>{pe(n,["tfhd"]).forEach(r=>{const i=Rt(r,4),s=a[i];if(!s)return;const u=s.timescale||9e4;pe(n,["tfdt"]).forEach(f=>{const c=f[0],y=t*u;if(y){let E=Rt(f,4);if(c===0)E-=y,E=Math.max(E,0),wt(f,4,E);else{E*=Math.pow(2,32),E+=Rt(f,8),E-=y,E=Math.max(E,0);const U=Math.floor(E/(mt+1)),V=Math.floor(E%(mt+1));wt(f,4,U),wt(f,8,V)}}})})})}function Je(a){const e={valid:null,remainder:null},t=pe(a,["moof"]);if(t.length<2)return e.remainder=a,e;const n=t[t.length-1];return e.valid=a.slice(0,n.byteOffset-8),e.remainder=a.slice(n.byteOffset-8),e}function Xe(a,e){const t=new Uint8Array(a.length+e.length);return t.set(a),t.set(e,a.length),t}function Ve(a,e){const t=[],n=e.samples,r=e.timescale,i=e.id;let s=!1;return pe(n,["moof"]).map(f=>{const c=f.byteOffset-8;pe(f,["traf"]).map(E=>{const U=pe(E,["tfdt"]).map(V=>{const ee=V[0];let De=Rt(V,4);return ee===1&&(De*=Math.pow(2,32),De+=Rt(V,8)),De/r})[0];return U!==void 0&&(a=U),pe(E,["tfhd"]).map(V=>{const ee=Rt(V,4),De=Rt(V,0)&16777215,Ae=(De&1)!==0,Ge=(De&2)!==0,ft=(De&8)!==0;let lt=0;const Pt=(De&16)!==0;let Nt=0;const on=(De&32)!==0;let zt=8;ee===i&&(Ae&&(zt+=8),Ge&&(zt+=4),ft&&(lt=Rt(V,zt),zt+=4),Pt&&(Nt=Rt(V,zt),zt+=4),on&&(zt+=4),e.type==="video"&&(s=xt(e.codec)),pe(E,["trun"]).map(Jt=>{const vn=Jt[0],jt=Rt(Jt,0)&16777215,Wn=(jt&1)!==0;let yr=0;const wi=(jt&4)!==0,Jr=(jt&256)!==0;let Hr=0;const Rr=(jt&512)!==0;let Zr=0;const $r=(jt&1024)!==0,Gn=(jt&2048)!==0;let Jn=0;const ci=Rt(Jt,4);let ni=8;Wn&&(yr=Rt(Jt,ni),ni+=4),wi&&(ni+=4);let Ei=yr+c;for(let Fi=0;Fi<ci;Fi++){if(Jr?(Hr=Rt(Jt,ni),ni+=4):Hr=lt,Rr?(Zr=Rt(Jt,ni),ni+=4):Zr=Nt,$r&&(ni+=4),Gn&&(vn===0?Jn=Rt(Jt,ni):Jn=ut(Jt,ni),ni+=4),e.type===x.VIDEO){let Yi=0;for(;Yi<Zr;){const ss=Rt(n,Ei);if(Ei+=4,Dt(s,n[Ei])){const js=n.subarray(Ei,Ei+ss);vt(js,s?2:1,a+Jn/r,t)}Ei+=ss,Yi+=ss+4}}a+=Hr/r}}))})})}),t}function xt(a){if(!a)return!1;const e=a.substring(0,4);return e==="hvc1"||e==="hev1"||e==="dvh1"||e==="dvhe"}function Dt(a,e){if(a){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function vt(a,e,t,n){const r=Bt(a);let i=0;i+=e;let s=0,u=0,f=0;for(;i<r.length;){s=0;do{if(i>=r.length)break;f=r[i++],s+=f}while(f===255);u=0;do{if(i>=r.length)break;f=r[i++],u+=f}while(f===255);const c=r.length-i;let y=i;if(u<c)i+=u;else if(u>c){j.error(`Malformed SEI payload. ${u} is too small, only ${c} bytes left to parse.`);break}if(s===4){if(r[y++]===181){const U=tn(r,y);if(y+=2,U===49){const V=Rt(r,y);if(y+=4,V===1195456820){const ee=r[y++];if(ee===3){const De=r[y++],Ae=31&De,Ge=64&De,ft=Ge?2+Ae*3:0,lt=new Uint8Array(ft);if(Ge){lt[0]=De;for(let Pt=1;Pt<ft;Pt++)lt[Pt]=r[y++]}n.push({type:ee,payloadType:s,pts:t,bytes:lt})}}}}}else if(s===5&&u>16){const E=[];for(let ee=0;ee<16;ee++){const De=r[y++].toString(16);E.push(De.length==1?"0"+De:De),(ee===3||ee===5||ee===7||ee===9)&&E.push("-")}const U=u-16,V=new Uint8Array(U);for(let ee=0;ee<U;ee++)V[ee]=r[y++];n.push({payloadType:s,pts:t,uuid:E.join(""),userData:ge(V),userDataBytes:V})}}}function Bt(a){const e=a.byteLength,t=[];let n=1;for(;n<e-2;)a[n]===0&&a[n+1]===0&&a[n+2]===3?(t.push(n+2),n+=2):n++;if(t.length===0)return a;const r=e-t.length,i=new Uint8Array(r);let s=0;for(n=0;n<r;s++,n++)s===t[0]&&(s++,t.shift()),i[n]=a[s];return i}function Zt(a){const e=a[0];let t="",n="",r=0,i=0,s=0,u=0,f=0,c=0;if(e===0){for(;Lt(a.subarray(c,c+1))!=="\0";)t+=Lt(a.subarray(c,c+1)),c+=1;for(t+=Lt(a.subarray(c,c+1)),c+=1;Lt(a.subarray(c,c+1))!=="\0";)n+=Lt(a.subarray(c,c+1)),c+=1;n+=Lt(a.subarray(c,c+1)),c+=1,r=Rt(a,12),i=Rt(a,16),u=Rt(a,20),f=Rt(a,24),c=28}else if(e===1){c+=4,r=Rt(a,c),c+=4;const E=Rt(a,c);c+=4;const U=Rt(a,c);for(c+=4,s=Lu(2,32)*E+U,K(s)||(s=Number.MAX_SAFE_INTEGER,j.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),u=Rt(a,c),c+=4,f=Rt(a,c),c+=4;Lt(a.subarray(c,c+1))!=="\0";)t+=Lt(a.subarray(c,c+1)),c+=1;for(t+=Lt(a.subarray(c,c+1)),c+=1;Lt(a.subarray(c,c+1))!=="\0";)n+=Lt(a.subarray(c,c+1)),c+=1;n+=Lt(a.subarray(c,c+1)),c+=1}const y=a.subarray(c,a.byteLength);return{schemeIdUri:t,value:n,timeScale:r,presentationTime:s,presentationTimeDelta:i,eventDuration:u,id:f,payload:y}}function C(a,...e){const t=e.length;let n=8,r=t;for(;r--;)n+=e[r].byteLength;const i=new Uint8Array(n);for(i[0]=n>>24&255,i[1]=n>>16&255,i[2]=n>>8&255,i[3]=n&255,i.set(a,4),r=0,n=8;r<t;r++)i.set(e[r],n),n+=e[r].byteLength;return i}function M(a,e,t){if(a.byteLength!==16)throw new RangeError("Invalid system id");let n,r;n=0,r=new Uint8Array;let i;n>0?(i=new Uint8Array(4),e.length>0&&new DataView(i.buffer).setUint32(0,e.length,!1)):i=new Uint8Array;const s=new Uint8Array(4);return t&&t.byteLength>0&&new DataView(s.buffer).setUint32(0,t.byteLength,!1),C([112,115,115,104],new Uint8Array([n,0,0,0]),a,i,r,s,t||new Uint8Array)}function yt(a){const e=[];if(a instanceof ArrayBuffer){const t=a.byteLength;let n=0;for(;n+32<t;){const r=new DataView(a,n),i=ye(r);e.push(i),n+=i.size}}return e}function ye(a){const e=a.getUint32(0),t=a.byteOffset,n=a.byteLength;if(n<e)return{offset:t,size:n};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=de.hexDump(new Uint8Array(s,t+12,16)),f=a.getUint32(28);let c=null,y=null;if(i===0){if(e-32<f||f<22)return{offset:t,size:e};y=new Uint8Array(s,t+32,f)}else if(i===1){if(!f||n<t+32+f*16+16)return{offset:t,size:e};c=[];for(let E=0;E<f;E++)c.push(new Uint8Array(s,t+32+E*16,16))}return{version:i,systemId:u,kids:c,data:y,offset:t,size:e}}const Ne=()=>/\(Windows.+Firefox\//i.test(navigator.userAgent),Sn={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,dav1:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function it(a,e){const t=Sn[e];return!!t&&!!t[a.slice(0,4)]}function nt(a,e,t=!0){return!a.split(",").some(n=>!tt(n,e,t))}function tt(a,e,t=!0){var n;const r=xe(t);return(n=r==null?void 0:r.isTypeSupported(we(a,e)))!=null?n:!1}function we(a,e){return`${e}/mp4;codecs=${a}`}function Oe(a){if(a){const e=a.substring(0,4);return Sn.video[e]}return 2}function Le(a){const e=Ne();return a.split(",").reduce((t,n)=>{const i=e&&xt(n)?9:Sn.video[n];return i?(i*2+t)/(t?3:2):(Sn.audio[n]+t)/(t?2:1)},0)}const rt={};function _e(a,e=!0){if(rt[a])return rt[a];const t={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[a];for(let r=0;r<t.length;r++){var n;if(tt(t[r],"audio",e))return rt[a]=t[r],t[r];if(t[r]==="mp3"&&(n=xe(e))!=null&&n.isTypeSupported("audio/mpeg"))return""}return a}const Qt=/flac|opus|mp4a\.40\.34/i;function He(a,e=!0){return a.replace(Qt,t=>_e(t.toLowerCase(),e))}function xn(a,e){const t=[];if(a){const n=a.split(",");for(let r=0;r<n.length;r++)it(n[r],"video")||t.push(n[r])}return e&&t.push(e),t.join(",")}function Ln(a,e){if(a&&(a.length>4||["ac-3","ec-3","alac","fLaC","Opus"].indexOf(a)!==-1))return a;if(e){const t=e.split(",");if(t.length>1){if(a){for(let n=t.length;n--;)if(t[n].substring(0,4)===a.substring(0,4))return t[n]}return t[0]}}return e||a}function _r(a){const e=a.split(",");for(let t=0;t<e.length;t++){const n=e[t].split(".");if(n.length>2){let r=n.shift()+".";r+=parseInt(n.shift()).toString(16),r+=("000"+parseInt(n.shift()).toString(16)).slice(-4),e[t]=r}}return e.join(",")}function Hn(a){if(a.startsWith("av01.")){const e=a.split("."),t=["0","111","01","01","01","0"];for(let n=e.length;n>4&&n<10;n++)e[n]=t[n-4];return e.join(".")}return a}function yn(a){const e=xe(a)||{isTypeSupported:()=>!1};return{mpeg:e.isTypeSupported("audio/mpeg"),mp3:e.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:e.isTypeSupported('audio/mp4; codecs="ac-3"')}}function wn(a){return a.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const Ye={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]};function Ot(a,e){return{supported:!1,configurations:e,decodingInfoResults:[{supported:!1,smooth:!1,powerEfficient:!1}],error:a}}const Ut={};function Ke(a,e,t,n,r,i){const s=a.audioCodec?a.audioGroups:null,u=i==null?void 0:i.audioCodec,f=i==null?void 0:i.channels,c=f?parseInt(f):u?1/0:2;let y=null;if(s!=null&&s.length)try{s.length===1&&s[0]?y=e.groups[s[0]].channels:y=s.reduce((E,U)=>{if(U){const V=e.groups[U];if(!V)throw new Error(`Audio track group ${U} not found`);Object.keys(V.channels).forEach(ee=>{E[ee]=(E[ee]||0)+V.channels[ee]})}return E},{2:0})}catch(E){return!0}return a.videoCodec!==void 0&&(a.width>1920&&a.height>1088||a.height>1920&&a.width>1088||a.frameRate>Math.max(n,30)||a.videoRange!=="SDR"&&a.videoRange!==t||a.bitrate>Math.max(r,8e6))||!!y&&O(c)&&Object.keys(y).some(E=>parseInt(E)>c)}function Pe(a,e,t){const n=a.videoCodec,r=a.audioCodec;if(!n&&!r||!t)return Promise.resolve(Ye);const i=[];if(n){const s={width:a.width,height:a.height,bitrate:Math.ceil(Math.max(a.bitrate*.9,a.averageBitrate)),framerate:a.frameRate||30},u=a.videoRange;u!=="SDR"&&(s.transferFunction=u.toLowerCase());const f=n.split(","),c=navigator.userAgent;if(f.some(y=>xt(y))&&Ne())return Promise.resolve(Ot(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent sting: (${c})`),i));i.push.apply(i,f.map(y=>({type:"media-source",video:S(S({},s),{},{contentType:we(Hn(y),"video")})})))}return r&&a.audioGroups&&a.audioGroups.forEach(s=>{var u;s&&((u=e.groups[s])==null||u.tracks.forEach(f=>{if(f.groupId===s){const c=f.channels||"",y=parseFloat(c);O(y)&&y>2&&i.push.apply(i,r.split(",").map(E=>({type:"media-source",audio:{contentType:we(E,"audio"),channels:""+y}})))}}))}),Promise.all(i.map(s=>{const u=_t(s);return Ut[u]||(Ut[u]=t.decodingInfo(s))})).then(s=>({supported:!s.some(u=>!u.supported),configurations:i,decodingInfoResults:s})).catch(s=>({supported:!1,configurations:i,decodingInfoResults:[],error:s}))}function _t(a){const{audio:e,video:t}=a,n=t||e;if(n){const r=wn(n.contentType);if(t)return`r${t.height}x${t.width}f${Math.ceil(t.framerate)}${t.transferFunction||"sd"}_${r}_${Math.ceil(t.bitrate/1e5)}`;if(e)return`c${e.channels}${e.spatialRendering?"s":"n"}_${r}`}return""}const Ct=["NONE","TYPE-0","TYPE-1",null];function nn(a){return Ct.indexOf(a)>-1}const Vt=["SDR","PQ","HLG"];function dn(a){return!!a&&Vt.indexOf(a)>-1}var rn={No:"",Yes:"YES",v2:"v2"};function bn(a){const{canSkipUntil:e,canSkipDateRanges:t,age:n}=a,r=n<e/2;return e&&r?t?rn.v2:rn.Yes:rn.No}class In{constructor(e,t,n){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=t,this.skip=n}addDirectives(e){const t=new self.URL(e);return this.msn!==void 0&&t.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&t.searchParams.set("_HLS_part",this.part.toString()),this.skip&&t.searchParams.set("_HLS_skip",this.skip),t.href}}class Cn{constructor(e){if(this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.url=void 0,this.frameRate=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.supplemental=void 0,this.videoCodec=void 0,this.width=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.supportedPromise=void 0,this.supportedResult=void 0,this._avgBitrate=0,this._audioGroups=void 0,this._subtitleGroups=void 0,this._urlId=0,this.url=[e.url],this._attrs=[e.attrs],this.bitrate=e.bitrate,e.details&&(this.details=e.details),this.id=e.id||0,this.name=e.name,this.width=e.width||0,this.height=e.height||0,this.frameRate=e.attrs.optionalFloat("FRAME-RATE",0),this._avgBitrate=e.attrs.decimalInteger("AVERAGE-BANDWIDTH"),this.audioCodec=e.audioCodec,this.videoCodec=e.videoCodec,this.codecSet=[e.videoCodec,e.audioCodec].filter(n=>!!n).map(n=>n.substring(0,4)).join(","),"supplemental"in e){var t;this.supplemental=e.supplemental;const n=(t=e.supplemental)==null?void 0:t.videoCodec;n&&n!==e.videoCodec&&(this.codecSet+=`,${n.substring(0,4)}`)}this.addGroupId("audio",e.attrs.AUDIO),this.addGroupId("text",e.attrs.SUBTITLES)}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(e){return Kt(this._audioGroups,e)}hasSubtitleGroup(e){return Kt(this._subtitleGroups,e)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(e,t){if(t){if(e==="audio"){let n=this._audioGroups;n||(n=this._audioGroups=[]),n.indexOf(t)===-1&&n.push(t)}else if(e==="text"){let n=this._subtitleGroups;n||(n=this._subtitleGroups=[]),n.indexOf(t)===-1&&n.push(t)}}}get urlId(){return 0}set urlId(e){}get audioGroupIds(){return this.audioGroups?[this.audioGroupId]:void 0}get textGroupIds(){return this.subtitleGroups?[this.textGroupId]:void 0}get audioGroupId(){var e;return(e=this.audioGroups)==null?void 0:e[0]}get textGroupId(){var e;return(e=this.subtitleGroups)==null?void 0:e[0]}addFallback(){}}function Kt(a,e){return!e||!a?!1:a.indexOf(e)!==-1}function Gt(){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 qt(a,e){let t=!1,n=[];if(a&&(t=a!=="SDR",n=[a]),e){n=e.allowedVideoRanges||Vt.slice(0);const r=n.join("")!=="SDR"&&!e.videoCodec;t=e.preferHDR!==void 0?e.preferHDR:r&&Gt(),t||(n=["SDR"])}return{preferHDR:t,allowedVideoRanges:n}}const fn=a=>{const e=new WeakSet;return(t,n)=>{if(a&&(n=a(t,n)),typeof n=="object"&&n!==null){if(e.has(n))return;e.add(n)}return n}},an=(a,e)=>JSON.stringify(a,fn(e));function Qn(a,e,t,n,r){const i=Object.keys(a),s=n==null?void 0:n.channels,u=n==null?void 0:n.audioCodec,f=r==null?void 0:r.videoCodec,c=s&&parseInt(s)===2;let y=!1,E=!1,U=1/0,V=1/0,ee=1/0,De=1/0,Ae=0,Ge=[];const{preferHDR:ft,allowedVideoRanges:lt}=qt(e,r);for(let Jt=i.length;Jt--;){const vn=a[i[Jt]];y||(y=vn.channels[2]>0),U=Math.min(U,vn.minHeight),V=Math.min(V,vn.minFramerate),ee=Math.min(ee,vn.minBitrate),lt.filter(Wn=>vn.videoRanges[Wn]>0).length>0&&(E=!0)}U=O(U)?U:0,V=O(V)?V:0;const Pt=Math.max(1080,U),Nt=Math.max(30,V);ee=O(ee)?ee:t,t=Math.max(ee,t),E||(e=void 0);const on=i.length>1;return{codecSet:i.reduce((Jt,vn)=>{const jt=a[vn];if(vn===Jt)return Jt;if(Ge=E?lt.filter(Wn=>jt.videoRanges[Wn]>0):[],on){if(jt.minBitrate>t)return Rn(vn,`min bitrate of ${jt.minBitrate} > current estimate of ${t}`),Jt;if(!jt.hasDefaultAudio)return Rn(vn,"no renditions with default or auto-select sound found"),Jt;if(u&&vn.indexOf(u.substring(0,4))%5!==0)return Rn(vn,`audio codec preference "${u}" not found`),Jt;if(s&&!c){if(!jt.channels[s])return Rn(vn,`no renditions with ${s} channel sound found (channels options: ${Object.keys(jt.channels)})`),Jt}else if((!u||c)&&y&&jt.channels[2]===0)return Rn(vn,"no renditions with stereo sound found"),Jt;if(jt.minHeight>Pt)return Rn(vn,`min resolution of ${jt.minHeight} > maximum of ${Pt}`),Jt;if(jt.minFramerate>Nt)return Rn(vn,`min framerate of ${jt.minFramerate} > maximum of ${Nt}`),Jt;if(!Ge.some(Wn=>jt.videoRanges[Wn]>0))return Rn(vn,`no variants with VIDEO-RANGE of ${an(Ge)} found`),Jt;if(f&&vn.indexOf(f.substring(0,4))%5!==0)return Rn(vn,`video codec preference "${f}" not found`),Jt;if(jt.maxScore<Ae)return Rn(vn,`max score of ${jt.maxScore} < selected max of ${Ae}`),Jt}return Jt&&(Le(vn)>=Le(Jt)||jt.fragmentError>a[Jt].fragmentError)?Jt:(De=jt.minIndex,Ae=jt.maxScore,vn)},void 0),videoRanges:Ge,preferHDR:ft,minFramerate:V,minBitrate:ee,minIndex:De}}function Rn(a,e){j.log(`[abr] start candidates with "${a}" ignored because ${e}`)}function ln(a){return a.reduce((e,t)=>{let n=e.groups[t.groupId];n||(n=e.groups[t.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),n.tracks.push(t);const r=t.channels||"2";return n.channels[r]=(n.channels[r]||0)+1,n.hasDefault=n.hasDefault||t.default,n.hasAutoSelect=n.hasAutoSelect||t.autoselect,n.hasDefault&&(e.hasDefaultAudio=!0),n.hasAutoSelect&&(e.hasAutoSelectAudio=!0),e},{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function ct(a,e,t,n){return a.slice(t,n+1).reduce((r,i,s)=>{if(!i.codecSet)return r;const u=i.audioGroups;let f=r[i.codecSet];f||(r[i.codecSet]=f={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:s,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!u,fragmentError:0}),f.minBitrate=Math.min(f.minBitrate,i.bitrate);const c=Math.min(i.height,i.width);return f.minHeight=Math.min(f.minHeight,c),f.minFramerate=Math.min(f.minFramerate,i.frameRate),f.minIndex=Math.min(f.minIndex,s),f.maxScore=Math.max(f.maxScore,i.score),f.fragmentError+=i.fragmentError,f.videoRanges[i.videoRange]=(f.videoRanges[i.videoRange]||0)+1,u&&u.forEach(y=>{if(!y)return;const E=e.groups[y];E&&(f.hasDefaultAudio=f.hasDefaultAudio||e.hasDefaultAudio?E.hasDefault:E.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(E.channels).forEach(U=>{f.channels[U]=(f.channels[U]||0)+E.channels[U]}))}),r},{})}function pt(a){if(!a)return a;const{lang:e,assocLang:t,characteristics:n,channels:r,audioCodec:i}=a;return{lang:e,assocLang:t,characteristics:n,channels:r,audioCodec:i}}function Tt(a,e,t){if("attrs"in a){const n=e.indexOf(a);if(n!==-1)return n}for(let n=0;n<e.length;n++){const r=e[n];if(Ft(a,r,t))return n}return-1}function Ft(a,e,t){const{groupId:n,name:r,lang:i,assocLang:s,default:u}=a,f=a.forced;return(n===void 0||e.groupId===n)&&(r===void 0||e.name===r)&&(i===void 0||It(i,e.lang))&&(i===void 0||e.assocLang===s)&&(u===void 0||e.default===u)&&(f===void 0||e.forced===f)&&(!("characteristics"in a)||sn(a.characteristics||"",e.characteristics))&&(t===void 0||t(a,e))}function It(a,e="--"){return a.length===e.length?a===e:a.startsWith(e)||e.startsWith(a)}function sn(a,e=""){const t=a.split(","),n=e.split(",");return t.length===n.length&&!t.some(r=>n.indexOf(r)===-1)}function $t(a,e){const{audioCodec:t,channels:n}=a;return(t===void 0||(e.audioCodec||"").substring(0,4)===t.substring(0,4))&&(n===void 0||n===(e.channels||"2"))}function hn(a,e,t,n,r){const i=e[n],u=e.reduce((U,V,ee)=>{const De=V.uri;return(U[De]||(U[De]=[])).push(ee),U},{})[i.uri];u.length>1&&(n=Math.max.apply(Math,u));const f=i.videoRange,c=i.frameRate,y=i.codecSet.substring(0,4),E=_n(e,n,U=>{if(U.videoRange!==f||U.frameRate!==c||U.codecSet.substring(0,4)!==y)return!1;const V=U.audioGroups,ee=t.filter(De=>!V||V.indexOf(De.groupId)!==-1);return Tt(a,ee,r)>-1});return E>-1?E:_n(e,n,U=>{const V=U.audioGroups,ee=t.filter(De=>!V||V.indexOf(De.groupId)!==-1);return Tt(a,ee,r)>-1})}function _n(a,e,t){for(let n=e;n>-1;n--)if(t(a[n]))return n;for(let n=e+1;n<a.length;n++)if(t(a[n]))return n;return-1}function Dn(a,e){var t;return!!a&&a!==((t=e.loadLevelObj)==null?void 0:t.uri)}class Yn extends se{constructor(e){super("abr",e.logger),this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-1,this._nextAutoLevel=-1,this.nextAutoLevelKey="",this.audioTracksByGroup=null,this.codecTiers=null,this.timer=-1,this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.rebufferNotice=-1,this.bwEstimator=void 0,this._abandonRulesCheck=t=>{var n;const{fragCurrent:r,partCurrent:i,hls:s}=this,{autoLevelEnabled:u,media:f}=s;if(!r||!f)return;const c=performance.now(),y=i?i.stats:r.stats,E=i?i.duration:r.duration,U=c-y.loading.start,V=s.minAutoLevel,ee=r.level,De=this._nextAutoLevel;if(y.aborted||y.loaded&&y.loaded===y.total||ee<=V){this.clearTimer(),this._nextAutoLevel=-1;return}if(!u)return;const Ae=De>-1&&De!==ee,Ge=!!t||Ae;if(!Ge&&(f.paused||!f.playbackRate||!f.readyState))return;const ft=s.mainForwardBufferInfo;if(!Ge&&ft===null)return;const lt=this.bwEstimator.getEstimateTTFB(),Pt=Math.abs(f.playbackRate);if(U<=Math.max(lt,1e3*(E/(Pt*2))))return;const Nt=ft?ft.len/Pt:0,on=y.loading.first?y.loading.first-y.loading.start:-1,zt=y.loaded&&on>-1,Jt=this.getBwEstimate(),vn=s.levels,jt=vn[ee],Wn=Math.max(y.loaded,Math.round(E*(r.bitrate||jt.averageBitrate)/8));let yr=zt?U-on:U;yr<1&&zt&&(yr=Math.min(U,y.loaded*8/Jt));const wi=zt?y.loaded*1e3/yr:0,Jr=lt/1e3,Hr=wi?(Wn-y.loaded)/wi:Wn*8/Jt+Jr;if(Hr<=Nt)return;const Rr=wi?wi*8:Jt,Zr=((n=(t==null?void 0:t.details)||this.hls.latestLevelDetails)==null?void 0:n.live)===!0,$r=this.hls.config.abrBandWidthUpFactor;let Gn=Number.POSITIVE_INFINITY,Jn;for(Jn=ee-1;Jn>V;Jn--){const Fi=vn[Jn].maxBitrate,Yi=!vn[Jn].details||Zr;if(Gn=this.getTimeToLoadFrag(Jr,Rr,E*Fi,Yi),Gn<Math.min(Nt,E+Jr))break}if(Gn>=Hr||Gn>E*10)return;zt?this.bwEstimator.sample(U-Math.min(lt,on),y.loaded):this.bwEstimator.sampleTTFB(U);const ci=vn[Jn].maxBitrate;this.getBwEstimate()*$r>ci&&this.resetEstimator(ci);const ni=this.findBestLevel(ci,V,Jn,0,Nt,1,1);ni>-1&&(Jn=ni),this.warn(`Fragment ${r.sn}${i?" part "+i.index:""} of level ${ee} is loading too slowly;
|
|
|
Fragment duration: ${r.duration.toFixed(3)}
|
|
|
Time to underbuffer: ${Nt.toFixed(3)} s
|
|
|
Estimated load time for current fragment: ${Hr.toFixed(3)} s
|
|
|
Estimated load time for down switch fragment: ${Gn.toFixed(3)} s
|
|
|
TTFB estimate: ${on|0} ms
|
|
|
Current BW estimate: ${O(Jt)?Jt|0:"Unknown"} bps
|
|
|
New BW estimate: ${this.getBwEstimate()|0} bps
|
|
|
Switching to level ${Jn} @ ${ci|0} bps`),s.nextLoadLevel=s.nextAutoLevel=Jn,this.clearTimer();const Ei=()=>{if(this.clearTimer(),this.fragCurrent===r&&this.hls.loadLevel===Jn&&Jn>0){const Fi=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${Jn>0?"and switching down":""}
|
|
|
Fragment duration: ${r.duration.toFixed(3)} s
|
|
|
Time to underbuffer: ${Fi.toFixed(3)} s`),r.abortRequests(),this.fragCurrent=this.partCurrent=null,Jn>V){let Yi=this.findBestLevel(this.hls.levels[V].bitrate,V,Jn,0,Fi,1,1);Yi===-1&&(Yi=V),this.hls.nextLoadLevel=this.hls.nextAutoLevel=Yi,this.resetEstimator(this.hls.levels[Yi].bitrate)}}};Ae||Hr>Gn*2?Ei():this.timer=self.setInterval(Ei,Gn*1e3),s.trigger(m.FRAG_LOAD_EMERGENCY_ABORTED,{frag:r,part:i,stats:y})},this.hls=e,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(e){e&&(this.log(`setting initial bwe to ${e}`),this.hls.config.abrEwmaDefaultEstimate=e),this.firstSelection=-1,this.bwEstimator=this.initEstimator()}initEstimator(){const e=this.hls.config;return new I(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){const{hls:e}=this;e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.FRAG_LOADING,this.onFragLoading,this),e.on(m.FRAG_LOADED,this.onFragLoaded,this),e.on(m.FRAG_BUFFERED,this.onFragBuffered,this),e.on(m.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(m.LEVEL_LOADED,this.onLevelLoaded,this),e.on(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(m.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(m.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.FRAG_LOADING,this.onFragLoading,this),e.off(m.FRAG_LOADED,this.onFragLoaded,this),e.off(m.FRAG_BUFFERED,this.onFragBuffered,this),e.off(m.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(m.LEVEL_LOADED,this.onLevelLoaded,this),e.off(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(m.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(m.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 n=t.frag;if(!this.ignoreFragment(n)){if(!n.bitrateTest){var r;this.fragCurrent=n,this.partCurrent=(r=t.part)!=null?r:null}this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(e,t){this.clearTimer()}onError(e,t){if(!t.fatal)switch(t.details){case A.BUFFER_ADD_CODEC_ERROR:case A.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case A.FRAG_LOAD_TIMEOUT:{const n=t.frag,{fragCurrent:r,partCurrent:i}=this;if(n&&r&&n.sn===r.sn&&n.level===r.level){const s=performance.now(),u=i?i.stats:n.stats,f=s-u.loading.start,c=u.loading.first?u.loading.first-u.loading.start:-1;if(u.loaded&&c>-1){const E=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(f-Math.min(E,c),u.loaded)}else this.bwEstimator.sampleTTFB(f)}break}}}getTimeToLoadFrag(e,t,n,r){const i=e+n/t,s=r?e+this.lastLevelLoadSec:0;return i+s}onLevelLoaded(e,t){const n=this.hls.config,{loading:r}=t.stats,i=r.end-r.first;O(i)&&(this.lastLevelLoadSec=i/1e3),t.details.live?this.bwEstimator.update(n.abrEwmaSlowLive,n.abrEwmaFastLive):this.bwEstimator.update(n.abrEwmaSlowVoD,n.abrEwmaFastVoD),this.timer>-1&&this._abandonRulesCheck(t.levelInfo)}onFragLoaded(e,{frag:t,part:n}){const r=n?n.stats:t.stats;if(t.type===re.MAIN&&this.bwEstimator.sampleTTFB(r.loading.first-r.loading.start),!this.ignoreFragment(t)){if(this.clearTimer(),t.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const i=n?n.duration:t.duration,s=this.hls.levels[t.level],u=(s.loaded?s.loaded.bytes:0)+r.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:r,frag:t,part:n,id:t.type};this.onFragBuffered(m.FRAG_BUFFERED,i),t.bitrateTest=!1}else this.lastLoadedFragLevel=t.level}}onFragBuffered(e,t){const{frag:n,part:r}=t,i=r!=null&&r.stats.loaded?r.stats:n.stats;if(i.aborted||this.ignoreFragment(n))return;const s=i.parsing.end-i.loading.start-Math.min(i.loading.first-i.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(s,i.loaded),i.bwEstimate=this.getBwEstimate(),n.bitrateTest?this.bitrateTestDelay=s/1e3:this.bitrateTestDelay=0}ignoreFragment(e){return e.type!==re.MAIN||e.sn==="initSegment"}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:e,minAutoLevel:t}=this.hls,n=this.getBwEstimate(),r=this.hls.config.maxStarvationDelay,i=this.findBestLevel(n,t,e,0,r,1,1);if(i>-1)return i;const s=this.hls.firstLevel,u=Math.min(Math.max(s,t),e);return this.warn(`Could not find best starting auto level. Defaulting to first in playlist ${s} clamped to ${u}`),u}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const e=this.forcedAutoLevel,n=this.bwEstimator.canEstimate(),r=this.lastLoadedFragLevel>-1;if(e!==-1&&(!n||!r||this.nextAutoLevelKey===this.getAutoLevelKey()))return e;const i=n&&r?this.getNextABRAutoLevel():this.firstAutoLevel;if(e!==-1){const s=this.hls.levels;if(s.length>Math.max(e,i)&&s[e].loadError<=s[i].loadError)return e}return this._nextAutoLevel=i,this.nextAutoLevelKey=this.getAutoLevelKey(),i}getAutoLevelKey(){return`${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:e,partCurrent:t,hls:n}=this;if(n.levels.length<=1)return n.loadLevel;const{maxAutoLevel:r,config:i,minAutoLevel:s}=n,u=t?t.duration:e?e.duration:0,f=this.getBwEstimate(),c=this.getStarvationDelay();let y=i.abrBandWidthFactor,E=i.abrBandWidthUpFactor;if(c){const Ae=this.findBestLevel(f,s,r,c,0,y,E);if(Ae>=0)return this.rebufferNotice=-1,Ae}let U=u?Math.min(u,i.maxStarvationDelay):i.maxStarvationDelay;if(!c){const Ae=this.bitrateTestDelay;Ae&&(U=(u?Math.min(u,i.maxLoadingDelay):i.maxLoadingDelay)-Ae,this.info(`bitrate test took ${Math.round(1e3*Ae)}ms, set first fragment max fetchDuration to ${Math.round(1e3*U)} ms`),y=E=1)}const V=this.findBestLevel(f,s,r,c,U,y,E);if(this.rebufferNotice!==V&&(this.rebufferNotice=V,this.info(`${c?"rebuffering expected":"buffer is empty"}, optimal quality level ${V}`)),V>-1)return V;const ee=n.levels[s],De=n.loadLevelObj;return De&&(ee==null?void 0:ee.bitrate)<De.bitrate?s:n.loadLevel}getStarvationDelay(){const e=this.hls,t=e.media;if(!t)return 1/0;const n=t&&t.playbackRate!==0?Math.abs(t.playbackRate):1,r=e.mainForwardBufferInfo;return(r?r.len:0)/n}getBwEstimate(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate}findBestLevel(e,t,n,r,i,s,u){var f;const c=r+i,y=this.lastLoadedFragLevel,E=y===-1?this.hls.firstLevel:y,{fragCurrent:U,partCurrent:V}=this,{levels:ee,allAudioTracks:De,loadLevel:Ae,config:Ge}=this.hls;if(ee.length===1)return 0;const ft=ee[E],lt=!!((f=this.hls.latestLevelDetails)!=null&&f.live),Pt=Ae===-1||y===-1;let Nt,on="SDR",zt=(ft==null?void 0:ft.frameRate)||0;const{audioPreference:Jt,videoPreference:vn}=Ge,jt=this.audioTracksByGroup||(this.audioTracksByGroup=ln(De));let Wn=-1;if(Pt){if(this.firstSelection!==-1)return this.firstSelection;const Rr=this.codecTiers||(this.codecTiers=ct(ee,jt,t,n)),Zr=Qn(Rr,on,e,Jt,vn),{codecSet:$r,videoRanges:Gn,minFramerate:Jn,minBitrate:ci,minIndex:ni,preferHDR:Ei}=Zr;Wn=ni,Nt=$r,on=Ei?Gn[Gn.length-1]:Gn[0],zt=Jn,e=Math.max(e,ci),this.log(`picked start tier ${an(Zr)}`)}else Nt=ft==null?void 0:ft.codecSet,on=ft==null?void 0:ft.videoRange;const yr=V?V.duration:U?U.duration:0,wi=this.bwEstimator.getEstimateTTFB()/1e3,Jr=[];for(let Rr=n;Rr>=t;Rr--){var Hr;const Zr=ee[Rr],$r=Rr>E;if(!Zr)continue;if(Ge.useMediaCapabilities&&!Zr.supportedResult&&!Zr.supportedPromise){const Yi=navigator.mediaCapabilities;typeof(Yi==null?void 0:Yi.decodingInfo)=="function"&&(Ke(Zr,jt,on,zt,e,Jt)||xt(Zr.videoCodec))?(Zr.supportedPromise=Pe(Zr,jt,Yi),Zr.supportedPromise.then(ss=>{if(!this.hls)return;Zr.supportedResult=ss;const js=this.hls.levels,Qs=js.indexOf(Zr);ss.error?this.warn(`MediaCapabilities decodingInfo error: "${ss.error}" for level ${Qs} ${an(ss)}`):ss.supported||(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${Qs} ${an(ss)}`),Qs>-1&&js.length>1&&(this.log(`Removing unsupported level ${Qs}`),this.hls.removeLevel(Qs),this.hls.loadLevel===-1&&(this.hls.nextLoadLevel=0)))})):Zr.supportedResult=Ye}if((Nt&&Zr.codecSet!==Nt||on&&Zr.videoRange!==on||$r&&zt>Zr.frameRate||!$r&&zt>0&&zt<Zr.frameRate||Zr.supportedResult&&!((Hr=Zr.supportedResult.decodingInfoResults)!=null&&Hr[0].smooth))&&(!Pt||Rr!==Wn)){Jr.push(Rr);continue}const Gn=Zr.details,Jn=(V?Gn==null?void 0:Gn.partTarget:Gn==null?void 0:Gn.averagetargetduration)||yr;let ci;$r?ci=u*e:ci=s*e;const ni=yr&&r>=yr*2&&i===0?Zr.averageBitrate:Zr.maxBitrate,Ei=this.getTimeToLoadFrag(wi,ci,ni*Jn,Gn===void 0);if(ci>=ni&&(Rr===y||Zr.loadError===0&&Zr.fragmentError===0)&&(Ei<=wi||!O(Ei)||lt&&!this.bitrateTestDelay||Ei<c)){const Yi=this.forcedAutoLevel;return Rr!==Ae&&(Yi===-1||Yi!==Ae)&&(Jr.length&&this.trace(`Skipped level(s) ${Jr.join(",")} of ${n} max with CODECS and VIDEO-RANGE:"${ee[Jr[0]].codecs}" ${ee[Jr[0]].videoRange}; not compatible with "${Nt}" ${on}`),this.info(`switch candidate:${E}->${Rr} adjustedbw(${Math.round(ci)})-bitrate=${Math.round(ci-ni)} ttfb:${wi.toFixed(1)} avgDuration:${Jn.toFixed(1)} maxFetchDuration:${c.toFixed(1)} fetchDuration:${Ei.toFixed(1)} firstSelection:${Pt} codecSet:${Zr.codecSet} videoRange:${Zr.videoRange} hls.loadLevel:${Ae}`)),Pt&&(this.firstSelection=Rr),Rr}}return-1}set nextAutoLevel(e){const t=this.deriveNextAutoLevel(e);this._nextAutoLevel!==t&&(this.nextAutoLevelKey="",this._nextAutoLevel=t)}deriveNextAutoLevel(e){const{maxAutoLevel:t,minAutoLevel:n}=this.hls;return Math.min(Math.max(e,n),t)}}const Zn={search:function(a,e){let t=0,n=a.length-1,r=null,i=null;for(;t<=n;){r=(t+n)/2|0,i=a[r];const s=e(i);if(s>0)t=r+1;else if(s<0)n=r-1;else return i}return null}};function dr(a,e,t){if(e===null||!Array.isArray(a)||!a.length||!O(e))return null;const n=a[0].programDateTime;if(e<(n||0))return null;const r=a[a.length-1].endProgramDateTime;if(e>=(r||0))return null;t=t||0;for(let i=0;i<a.length;++i){const s=a[i];if(mr(e,t,s))return s}return null}function En(a,e,t=0,n=0,r=.005){let i=null;if(a){i=e[1+a.sn-e[0].sn]||null;const u=a.endDTS-t;u>0&&u<15e-7&&(t+=15e-7),i&&a.level!==i.level&&i.end<=a.end&&(i=e[2+a.sn-e[0].sn]||null)}else t===0&&e[0].start===0&&(i=e[0]);if(i&&((!a||a.level===i.level)&&pr(t,n,i)===0||Tn(i,a,Math.min(r,n))))return i;const s=Zn.search(e,pr.bind(null,t,n));return s&&(s!==a||!i)?s:i}function Tn(a,e,t){if(e&&e.start===0&&e.level<a.level&&(e.endPTS||0)>0){const n=e.tagList.reduce((r,i)=>(i[0]==="INF"&&(r+=parseFloat(i[1])),r),t);return a.start<=n}return!1}function pr(a=0,e=0,t){if(t.start<=a&&t.start+t.duration>a)return 0;const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0));return t.start+t.duration-n<=a?1:t.start-n>a&&t.start?-1:0}function mr(a,e,t){const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-n>a}function Ir(a,e){return Zn.search(a,t=>t.cc<e?1:t.cc>e?-1:0)}function sr(a,e,t){if(a&&a.startCC<=e&&a.endCC>=e){const n=t.start,r=t.end;let i=a.fragments;if(!t.relurl){const{fragmentHint:s}=a;s&&(i=i.concat(s))}return Zn.search(i,s=>s.cc<e||s.end<=n?1:s.cc>e||s.start>=r?-1:0)}return null}function ar(a){switch(a.details){case A.FRAG_LOAD_TIMEOUT:case A.KEY_LOAD_TIMEOUT:case A.LEVEL_LOAD_TIMEOUT:case A.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function Cr(a,e){const t=ar(e);return a.default[`${t?"timeout":"error"}Retry`]}function rr(a,e){const t=a.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*a.retryDelayMs,a.maxRetryDelayMs)}function Pr(a){return S(S({},a),{errorRetry:null,timeoutRetry:null})}function qr(a,e,t,n){if(!a)return!1;const r=n==null?void 0:n.code,i=e<a.maxNumRetry&&(qn(r)||!!t);return a.shouldRetry?a.shouldRetry(a,e,t,n,i):i}function qn(a){return a===0&&navigator.onLine===!1||!!a&&(a<400||a>499)}var zn={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},dt={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4};class Bn extends se{constructor(e){super("error-controller",e.logger),this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.hls=e,this.registerListeners()}registerListeners(){const e=this.hls;e.on(m.ERROR,this.onError,this),e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(m.ERROR,this.onError,this),e.off(m.ERROR,this.onErrorOut,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}}startLoad(e){}stopLoad(){this.playlistError=0}getVariantLevelIndex(e){return(e==null?void 0:e.type)===re.MAIN?e.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(e,t){var n;if(t.fatal)return;const r=this.hls,i=t.context;switch(t.details){case A.FRAG_LOAD_ERROR:case A.FRAG_LOAD_TIMEOUT:case A.KEY_LOAD_ERROR:case A.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case A.FRAG_PARSING_ERROR:if((n=t.frag)!=null&&n.gap){t.errorAction=ur();return}case A.FRAG_GAP:case A.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=zn.SendAlternateToPenaltyBox;return}case A.LEVEL_EMPTY_ERROR:case A.LEVEL_PARSING_ERROR:{var s,u;const c=t.parent===re.MAIN?t.level:r.loadLevel;t.details===A.LEVEL_EMPTY_ERROR&&((s=t.context)!=null&&(u=s.levelDetails)!=null&&u.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,c):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,c))}return;case A.LEVEL_LOAD_ERROR:case A.LEVEL_LOAD_TIMEOUT:typeof(i==null?void 0:i.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.level));return;case A.AUDIO_TRACK_LOAD_ERROR:case A.AUDIO_TRACK_LOAD_TIMEOUT:case A.SUBTITLE_LOAD_ERROR:case A.SUBTITLE_TRACK_LOAD_TIMEOUT:if(i){const c=r.loadLevelObj;if(c&&(i.type===w.AUDIO_TRACK&&c.hasAudioGroup(i.groupId)||i.type===w.SUBTITLE_TRACK&&c.hasSubtitleGroup(i.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,r.loadLevel),t.errorAction.action=zn.SendAlternateToPenaltyBox,t.errorAction.flags=dt.MoveAllAlternatesMatchingHost;return}}return;case A.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const c=r.loadLevelObj,y=c==null?void 0:c.attrs["HDCP-LEVEL"];y?t.errorAction={action:zn.SendAlternateToPenaltyBox,flags:dt.MoveAllAlternatesMatchingHDCP,hdcpLevel:y}:this.keySystemError(t)}return;case A.BUFFER_ADD_CODEC_ERROR:case A.REMUX_ALLOC_ERROR:case A.BUFFER_APPEND_ERROR:if(!t.errorAction){var f;t.errorAction=this.getLevelSwitchAction(t,(f=t.level)!=null?f:r.loadLevel)}return;case A.INTERNAL_EXCEPTION:case A.BUFFER_APPENDING_ERROR:case A.BUFFER_FULL_ERROR:case A.LEVEL_SWITCH_ERROR:case A.BUFFER_STALLED_ERROR:case A.BUFFER_SEEK_OVER_HOLE:case A.BUFFER_NUDGE_ON_STALL:t.errorAction=ur();return}t.type===ce.KEY_SYSTEM_ERROR&&this.keySystemError(t)}keySystemError(e){const t=this.getVariantLevelIndex(e.frag);e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,t)}getPlaylistRetryOrSwitchAction(e,t){const n=this.hls,r=Cr(n.config.playlistLoadPolicy,e),i=this.playlistError++;if(qr(r,i,ar(e),e.response))return{action:zn.RetryRequest,flags:dt.None,retryConfig:r,retryCount:i};const u=this.getLevelSwitchAction(e,t);return r&&(u.retryConfig=r,u.retryCount=i),u}getFragRetryOrSwitchAction(e){const t=this.hls,n=this.getVariantLevelIndex(e.frag),r=t.levels[n],{fragLoadPolicy:i,keyLoadPolicy:s}=t.config,u=Cr(e.details.startsWith("key")?s:i,e),f=t.levels.reduce((y,E)=>y+E.fragmentError,0);if(r&&(e.details!==A.FRAG_GAP&&r.fragmentError++,qr(u,f,ar(e),e.response)))return{action:zn.RetryRequest,flags:dt.None,retryConfig:u,retryCount:f};const c=this.getLevelSwitchAction(e,n);return u&&(c.retryConfig=u,c.retryCount=f),c}getLevelSwitchAction(e,t){const n=this.hls;t==null&&(t=n.loadLevel);const r=this.hls.levels[t];if(r){var i,s;const c=e.details;r.loadError++,c===A.BUFFER_APPEND_ERROR&&r.fragmentError++;let y=-1;const{levels:E,loadLevel:U,minAutoLevel:V,maxAutoLevel:ee}=n;n.autoLevelEnabled||(n.loadLevel=-1);const De=(i=e.frag)==null?void 0:i.type,Ge=(De===re.AUDIO&&c===A.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(c===A.BUFFER_ADD_CODEC_ERROR||c===A.BUFFER_APPEND_ERROR))&&E.some(({audioCodec:on})=>r.audioCodec!==on),lt=e.sourceBufferName==="video"&&(c===A.BUFFER_ADD_CODEC_ERROR||c===A.BUFFER_APPEND_ERROR)&&E.some(({codecSet:on,audioCodec:zt})=>r.codecSet!==on&&r.audioCodec===zt),{type:Pt,groupId:Nt}=(s=e.context)!=null?s:{};for(let on=E.length;on--;){const zt=(on+U)%E.length;if(zt!==U&&zt>=V&&zt<=ee&&E[zt].loadError===0){var u,f;const Jt=E[zt];if(c===A.FRAG_GAP&&De===re.MAIN&&e.frag){const vn=E[zt].details;if(vn){const jt=En(e.frag,vn.fragments,e.frag.start);if(jt!=null&&jt.gap)continue}}else{if(Pt===w.AUDIO_TRACK&&Jt.hasAudioGroup(Nt)||Pt===w.SUBTITLE_TRACK&&Jt.hasSubtitleGroup(Nt))continue;if(De===re.AUDIO&&(u=r.audioGroups)!=null&&u.some(vn=>Jt.hasAudioGroup(vn))||De===re.SUBTITLE&&(f=r.subtitleGroups)!=null&&f.some(vn=>Jt.hasSubtitleGroup(vn))||Ge&&r.audioCodec===Jt.audioCodec||!Ge&&r.audioCodec!==Jt.audioCodec||lt&&r.codecSet===Jt.codecSet)continue}y=zt;break}}if(y>-1&&n.loadLevel!==y)return e.levelRetry=!0,this.playlistError=0,{action:zn.SendAlternateToPenaltyBox,flags:dt.None,nextAutoLevel:y}}return{action:zn.SendAlternateToPenaltyBox,flags:dt.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var n;switch((n=t.errorAction)==null?void 0:n.action){case zn.DoNothing:break;case zn.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),!t.errorAction.resolved&&t.details!==A.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 zn.RetryRequest:break}if(t.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(e){const t=this.hls,n=e.errorAction;if(!n)return;const{flags:r,hdcpLevel:i,nextAutoLevel:s}=n;switch(r){case dt.None:this.switchLevel(e,s);break;case dt.MoveAllAlternatesMatchingHDCP:i&&(t.maxHdcpLevel=Ct[Ct.indexOf(i)-1],n.resolved=!0),this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);break}n.resolved||this.switchLevel(e,s)}switchLevel(e,t){if(t!==void 0&&e.errorAction&&(this.warn(`switching to level ${t} after ${e.details}`),this.hls.nextAutoLevel=t,e.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel,e.details===A.BUFFER_ADD_CODEC_ERROR&&e.mimeType&&e.sourceBufferName!=="audiovideo")){const n=wn(e.mimeType),r=this.hls.levels;for(let i=r.length;i--;)r[i][`${e.sourceBufferName}Codec`]===n&&this.hls.removeLevel(i)}}}function ur(a){const e={action:zn.DoNothing,flags:dt.None};return a&&(e.resolved=!0),e}var er={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class Lr{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(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.BUFFER_APPENDED,this.onBufferAppended,this),e.on(m.FRAG_BUFFERED,this.onFragBuffered,this),e.on(m.FRAG_LOADED,this.onFragLoaded,this)}_unregisterListeners(){const{hls:e}=this;e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.BUFFER_APPENDED,this.onBufferAppended,this),e.off(m.FRAG_BUFFERED,this.onFragBuffered,this),e.off(m.FRAG_LOADED,this.onFragLoaded,this)}destroy(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(e,t){const n=this.activePartLists[t];if(n)for(let r=n.length;r--;){const i=n[r];if(!i)break;const s=i.end;if(i.start<=e&&s!==null&&e<=s)return i}return this.getBufferedFrag(e,t)}getBufferedFrag(e,t){return this.getFragAtPos(e,t,!0)}getFragAtPos(e,t,n){const{fragments:r}=this,i=Object.keys(r);for(let s=i.length;s--;){const u=r[i[s]];if((u==null?void 0:u.body.type)===t&&(!n||u.buffered)){const f=u.body;if(f.start<=e&&e<=f.end)return f}}return null}detectEvictedFragments(e,t,n,r,i){this.timeRanges&&(this.timeRanges[e]=t);const s=(r==null?void 0:r.fragment.sn)||-1;Object.keys(this.fragments).forEach(u=>{const f=this.fragments[u];if(!f||s>=f.body.sn)return;if(!f.buffered&&(!f.loaded||i)){f.body.type===n&&this.removeFragment(f.body);return}const c=f.range[e];if(c){if(c.time.length===0){this.removeFragment(f.body);return}c.time.some(y=>{const E=!this.isTimeBuffered(y.startPTS,y.endPTS,t);return E&&this.removeFragment(f.body),E})}})}detectPartialFragments(e){const t=this.timeRanges;if(!t||e.frag.sn==="initSegment")return;const n=e.frag,r=Vr(n),i=this.fragments[r];if(!i||i.buffered&&n.gap)return;const s=!n.relurl;Object.keys(t).forEach(u=>{const f=n.elementaryStreams[u];if(!f)return;const c=t[u],y=s||f.partial===!0;i.range[u]=this.getBufferedTimes(n,e.part,y,c)}),i.loaded=null,Object.keys(i.range).length?(i.buffered=!0,(i.body.endList=n.endList||i.body.endList)&&(this.endListFragments[i.body.type]=i),zr(i)||this.removeParts(n.sn-1,n.type)):this.removeFragment(i.body)}removeParts(e,t){const n=this.activePartLists[t];n&&(this.activePartLists[t]=n.filter(r=>r.fragment.sn>=e))}fragBuffered(e,t){const n=Vr(e);let r=this.fragments[n];!r&&t&&(r=this.fragments[n]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),r&&(r.loaded=null,r.buffered=!0)}getBufferedTimes(e,t,n,r){const i={time:[],partial:n},s=e.start,u=e.end,f=e.minEndPTS||u,c=e.maxStartPTS||s;for(let y=0;y<r.length;y++){const E=r.start(y)-this.bufferPadding,U=r.end(y)+this.bufferPadding;if(c>=E&&f<=U){i.time.push({startPTS:Math.max(s,r.start(y)),endPTS:Math.min(u,r.end(y))});break}else if(s<U&&u>E){const V=Math.max(s,r.start(y)),ee=Math.min(u,r.end(y));ee>V&&(i.partial=!0,i.time.push({startPTS:V,endPTS:ee}))}else if(u<=E)break}return i}getPartialFragment(e){let t=null,n,r,i,s=0;const{bufferPadding:u,fragments:f}=this;return Object.keys(f).forEach(c=>{const y=f[c];y&&zr(y)&&(r=y.body.start-u,i=y.body.end+u,e>=r&&e<=i&&(n=Math.min(e-r,i-e),s<=n&&(t=y.body,s=n)))}),t}isEndListAppended(e){const t=this.endListFragments[e];return t!==void 0&&(t.buffered||zr(t))}getState(e){const t=Vr(e),n=this.fragments[t];return n?n.buffered?zr(n)?er.PARTIAL:er.OK:er.APPENDING:er.NOT_LOADED}isTimeBuffered(e,t,n){let r,i;for(let s=0;s<n.length;s++){if(r=n.start(s)-this.bufferPadding,i=n.end(s)+this.bufferPadding,e>=r&&t<=i)return!0;if(t<=r)return!1}return!1}onManifestLoading(){this.removeAllFragments()}onFragLoaded(e,t){if(t.frag.sn==="initSegment"||t.frag.bitrateTest)return;const n=t.frag,r=t.part?null:t,i=Vr(n);this.fragments[i]={body:n,appendedPTS:null,loaded:r,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:n,part:r,timeRanges:i,type:s}=t;if(n.sn==="initSegment")return;const u=n.type;if(r){let c=this.activePartLists[u];c||(this.activePartLists[u]=c=[]),c.push(r)}this.timeRanges=i;const f=i[s];this.detectEvictedFragments(s,f,u,r)}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=Vr(e);return!!this.fragments[t]}hasFragments(e){const{fragments:t}=this,n=Object.keys(t);if(!e)return n.length>0;for(let r=n.length;r--;){const i=t[n[r]];if((i==null?void 0:i.body.type)===e)return!0}return!1}hasParts(e){var t;return!!((t=this.activePartLists[e])!=null&&t.length)}removeFragmentsInRange(e,t,n,r,i){r&&!this.hasGaps||Object.keys(this.fragments).forEach(s=>{const u=this.fragments[s];if(!u)return;const f=u.body;f.type!==n||r&&!f.gap||f.start<t&&f.end>e&&(u.buffered||i)&&this.removeFragment(f)})}removeFragment(e){const t=Vr(e);e.clearElementaryStreamInfo();const n=this.activePartLists[e.type];if(n){const r=e.sn;this.activePartLists[e.type]=n.filter(i=>i.fragment.sn!==r)}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]}removeAllFragments(){var e,t;this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1;const n=(e=this.hls)==null||(t=e.latestLevelDetails)==null?void 0:t.partList;n&&n.forEach(r=>r.clearElementaryStreamInfo())}}function zr(a){var e,t,n;return a.buffered&&(a.body.gap||((e=a.range.video)==null?void 0:e.partial)||((t=a.range.audio)==null?void 0:t.partial)||((n=a.range.audiovideo)==null?void 0:n.partial))}function Vr(a){return`${a.type}_${a.level}_${a.sn}`}var fr={cbc:0,ctr:1};class Yr{constructor(e,t,n){this.subtle=void 0,this.aesIV=void 0,this.aesMode=void 0,this.subtle=e,this.aesIV=t,this.aesMode=n}decrypt(e,t){switch(this.aesMode){case fr.cbc:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e);case fr.ctr:return this.subtle.decrypt({name:"AES-CTR",counter:this.aesIV,length:64},t,e);default:throw new Error(`[AESCrypto] invalid aes mode ${this.aesMode}`)}}}function Un(a){const e=a.byteLength,t=e&&new DataView(a.buffer).getUint8(e-1);return t?a.slice(0,e-t):a}class On{constructor(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}uint8ArrayToUint32Array_(e){const t=new DataView(e),n=new Uint32Array(4);for(let r=0;r<4;r++)n[r]=t.getUint32(r*4);return n}initTable(){const e=this.sBox,t=this.invSBox,n=this.subMix,r=n[0],i=n[1],s=n[2],u=n[3],f=this.invSubMix,c=f[0],y=f[1],E=f[2],U=f[3],V=new Uint32Array(256);let ee=0,De=0,Ae=0;for(Ae=0;Ae<256;Ae++)Ae<128?V[Ae]=Ae<<1:V[Ae]=Ae<<1^283;for(Ae=0;Ae<256;Ae++){let Ge=De^De<<1^De<<2^De<<3^De<<4;Ge=Ge>>>8^Ge&255^99,e[ee]=Ge,t[Ge]=ee;const ft=V[ee],lt=V[ft],Pt=V[lt];let Nt=V[Ge]*257^Ge*16843008;r[ee]=Nt<<24|Nt>>>8,i[ee]=Nt<<16|Nt>>>16,s[ee]=Nt<<8|Nt>>>24,u[ee]=Nt,Nt=Pt*16843009^lt*65537^ft*257^ee*16843008,c[Ge]=Nt<<24|Nt>>>8,y[Ge]=Nt<<16|Nt>>>16,E[Ge]=Nt<<8|Nt>>>24,U[Ge]=Nt,ee?(ee=ft^V[V[V[Pt^ft]]],De^=V[V[De]]):ee=De=1}}expandKey(e){const t=this.uint8ArrayToUint32Array_(e);let n=!0,r=0;for(;r<t.length&&n;)n=t[r]===this.key[r],r++;if(n)return;this.key=t;const i=this.keySize=t.length;if(i!==4&&i!==6&&i!==8)throw new Error("Invalid aes key size="+i);const s=this.ksRows=(i+6+1)*4;let u,f;const c=this.keySchedule=new Uint32Array(s),y=this.invKeySchedule=new Uint32Array(s),E=this.sBox,U=this.rcon,V=this.invSubMix,ee=V[0],De=V[1],Ae=V[2],Ge=V[3];let ft,lt;for(u=0;u<s;u++){if(u<i){ft=c[u]=t[u];continue}lt=ft,u%i===0?(lt=lt<<8|lt>>>24,lt=E[lt>>>24]<<24|E[lt>>>16&255]<<16|E[lt>>>8&255]<<8|E[lt&255],lt^=U[u/i|0]<<24):i>6&&u%i===4&&(lt=E[lt>>>24]<<24|E[lt>>>16&255]<<16|E[lt>>>8&255]<<8|E[lt&255]),c[u]=ft=(c[u-i]^lt)>>>0}for(f=0;f<s;f++)u=s-f,f&3?lt=c[u]:lt=c[u-4],f<4||u<=4?y[f]=lt:y[f]=ee[E[lt>>>24]]^De[E[lt>>>16&255]]^Ae[E[lt>>>8&255]]^Ge[E[lt&255]],y[f]=y[f]>>>0}networkToHostOrderSwap(e){return e<<24|(e&65280)<<8|(e&16711680)>>8|e>>>24}decrypt(e,t,n){const r=this.keySize+6,i=this.invKeySchedule,s=this.invSBox,u=this.invSubMix,f=u[0],c=u[1],y=u[2],E=u[3],U=this.uint8ArrayToUint32Array_(n);let V=U[0],ee=U[1],De=U[2],Ae=U[3];const Ge=new Int32Array(e),ft=new Int32Array(Ge.length);let lt,Pt,Nt,on,zt,Jt,vn,jt,Wn,yr,wi,Jr,Hr,Rr;const Zr=this.networkToHostOrderSwap;for(;t<Ge.length;){for(Wn=Zr(Ge[t]),yr=Zr(Ge[t+1]),wi=Zr(Ge[t+2]),Jr=Zr(Ge[t+3]),zt=Wn^i[0],Jt=Jr^i[1],vn=wi^i[2],jt=yr^i[3],Hr=4,Rr=1;Rr<r;Rr++)lt=f[zt>>>24]^c[Jt>>16&255]^y[vn>>8&255]^E[jt&255]^i[Hr],Pt=f[Jt>>>24]^c[vn>>16&255]^y[jt>>8&255]^E[zt&255]^i[Hr+1],Nt=f[vn>>>24]^c[jt>>16&255]^y[zt>>8&255]^E[Jt&255]^i[Hr+2],on=f[jt>>>24]^c[zt>>16&255]^y[Jt>>8&255]^E[vn&255]^i[Hr+3],zt=lt,Jt=Pt,vn=Nt,jt=on,Hr=Hr+4;lt=s[zt>>>24]<<24^s[Jt>>16&255]<<16^s[vn>>8&255]<<8^s[jt&255]^i[Hr],Pt=s[Jt>>>24]<<24^s[vn>>16&255]<<16^s[jt>>8&255]<<8^s[zt&255]^i[Hr+1],Nt=s[vn>>>24]<<24^s[jt>>16&255]<<16^s[zt>>8&255]<<8^s[Jt&255]^i[Hr+2],on=s[jt>>>24]<<24^s[zt>>16&255]<<16^s[Jt>>8&255]<<8^s[vn&255]^i[Hr+3],ft[t]=Zr(lt^V),ft[t+1]=Zr(on^ee),ft[t+2]=Zr(Nt^De),ft[t+3]=Zr(Pt^Ae),V=Wn,ee=yr,De=wi,Ae=Jr,t=t+4}return ft.buffer}}class Er{constructor(e,t,n){this.subtle=void 0,this.key=void 0,this.aesMode=void 0,this.subtle=e,this.key=t,this.aesMode=n}expandKey(){const e=kr(this.aesMode);return this.subtle.importKey("raw",this.key,{name:e},!1,["encrypt","decrypt"])}}function kr(a){switch(a){case fr.cbc:return"AES-CBC";case fr.ctr:return"AES-CTR";default:throw new Error(`[FastAESKey] invalid aes mode ${a}`)}}const ei=16;class Ii{constructor(e,{removePKCS7Padding:t=!0}={}){if(this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.enableSoftwareAES=void 0,this.enableSoftwareAES=e.enableSoftwareAES,this.removePKCS7Padding=t,t)try{const n=self.crypto;n&&(this.subtle=n.subtle||n.webkitSubtle)}catch(n){}this.useSoftware=!this.subtle}destroy(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}isSync(){return this.useSoftware}flush(){const{currentResult:e,remainderData:t}=this;if(!e||t)return this.reset(),null;const n=new Uint8Array(e);return this.reset(),this.removePKCS7Padding?Un(n):n}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,n,r){return this.useSoftware?new Promise((i,s)=>{const u=ArrayBuffer.isView(e)?e:new Uint8Array(e);this.softwareDecrypt(u,t,n,r);const f=this.flush();f?i(f.buffer):s(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(e),t,n,r)}softwareDecrypt(e,t,n,r){const{currentIV:i,currentResult:s,remainderData:u}=this;if(r!==fr.cbc||t.byteLength!==16)return j.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),u&&(e=Xe(u,e),this.remainderData=null);const f=this.getValidChunk(e);if(!f.length)return null;i&&(n=i);let c=this.softwareDecrypter;c||(c=this.softwareDecrypter=new On),c.expandKey(t);const y=s;return this.currentResult=c.decrypt(f.buffer,0,n),this.currentIV=f.slice(-16).buffer,y||null}webCryptoDecrypt(e,t,n,r){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,n,r));this.key=t,this.fastAesKey=new Er(this.subtle,t,r)}return this.fastAesKey.expandKey().then(i=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new Yr(this.subtle,new Uint8Array(n),r).decrypt(e.buffer,i)):Promise.reject(new Error("web crypto not initialized"))).catch(i=>(j.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${i.name}: ${i.message}`),this.onWebCryptoError(e,t,n,r)))}onWebCryptoError(e,t,n,r){const i=this.enableSoftwareAES;if(i){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,n,r);const s=this.flush();if(s)return s.buffer}throw new Error("WebCrypto"+(i?" and softwareDecrypt":"")+": failed to decrypt data")}getValidChunk(e){let t=e;const n=e.length-e.length%ei;return n!==e.length&&(t=e.slice(0,n),this.remainderData=e.slice(n)),t}logOnce(e){this.logEnabled&&(j.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const jn=Math.pow(2,17);class ii{constructor(e){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=e}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(e,t){const n=e.url;if(!n)return Promise.reject(new yi({type:ce.NETWORK_ERROR,details:A.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error(`Fragment does not have a ${n?"part list":"url"}`),networkDetails:null}));this.abort();const r=this.config,i=r.fLoader,s=r.loader;return new Promise((u,f)=>{if(this.loader&&this.loader.destroy(),e.gap)if(e.tagList.some(ee=>ee[0]==="GAP")){f(fi(e));return}else e.gap=!1;const c=this.loader=i?new i(r):new s(r),y=Xr(e);e.loader=c;const E=Pr(r.fragLoadPolicy.default),U={loadPolicy:E,timeout:E.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:jn};e.stats=c.stats;const V={onSuccess:(ee,De,Ae,Ge)=>{this.resetLoader(e,c);let ft=ee.data;Ae.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(ft.slice(0,16)),ft=ft.slice(16)),u({frag:e,part:null,payload:ft,networkDetails:Ge})},onError:(ee,De,Ae,Ge)=>{this.resetLoader(e,c),f(new yi({type:ce.NETWORK_ERROR,details:A.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:S({url:n,data:void 0},ee),error:new Error(`HTTP Error ${ee.code} ${ee.text}`),networkDetails:Ae,stats:Ge}))},onAbort:(ee,De,Ae)=>{this.resetLoader(e,c),f(new yi({type:ce.NETWORK_ERROR,details:A.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:Ae,stats:ee}))},onTimeout:(ee,De,Ae)=>{this.resetLoader(e,c),f(new yi({type:ce.NETWORK_ERROR,details:A.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${U.timeout}ms`),networkDetails:Ae,stats:ee}))}};t&&(V.onProgress=(ee,De,Ae,Ge)=>t({frag:e,part:null,payload:Ae,networkDetails:Ge})),c.load(y,U,V)})}loadPart(e,t,n){this.abort();const r=this.config,i=r.fLoader,s=r.loader;return new Promise((u,f)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap){f(fi(e,t));return}const c=this.loader=i?new i(r):new s(r),y=Xr(e,t);e.loader=c;const E=Pr(r.fragLoadPolicy.default),U={loadPolicy:E,timeout:E.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:jn};t.stats=c.stats,c.load(y,U,{onSuccess:(V,ee,De,Ae)=>{this.resetLoader(e,c),this.updateStatsFromPart(e,t);const Ge={frag:e,part:t,payload:V.data,networkDetails:Ae};n(Ge),u(Ge)},onError:(V,ee,De,Ae)=>{this.resetLoader(e,c),f(new yi({type:ce.NETWORK_ERROR,details:A.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:S({url:y.url,data:void 0},V),error:new Error(`HTTP Error ${V.code} ${V.text}`),networkDetails:De,stats:Ae}))},onAbort:(V,ee,De)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,c),f(new yi({type:ce.NETWORK_ERROR,details:A.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:De,stats:V}))},onTimeout:(V,ee,De)=>{this.resetLoader(e,c),f(new yi({type:ce.NETWORK_ERROR,details:A.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${U.timeout}ms`),networkDetails:De,stats:V}))}})})}updateStatsFromPart(e,t){const n=e.stats,r=t.stats,i=r.total;if(n.loaded+=r.loaded,i){const f=Math.round(e.duration/t.duration),c=Math.min(Math.round(n.loaded/i),f),E=(f-c)*Math.round(n.loaded/c);n.total=n.loaded+E}else n.total=Math.max(n.loaded,n.total);const s=n.loading,u=r.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,n={frag:a,part:e,responseType:"arraybuffer",url:t.url,headers:{},rangeStart:0,rangeEnd:0},r=t.byteRangeStartOffset,i=t.byteRangeEndOffset;if(O(r)&&O(i)){var s;let u=r,f=i;if(a.sn==="initSegment"&&Li((s=a.decryptdata)==null?void 0:s.method)){const c=i-r;c%16&&(f=i+(16-c%16)),r!==0&&(n.resetIV=!0,u=r-16)}n.rangeStart=u,n.rangeEnd=f}return n}function fi(a,e){const t=new Error(`GAP ${a.gap?"tag":"attribute"} found`),n={type:ce.MEDIA_ERROR,details:A.FRAG_GAP,fatal:!1,frag:a,error:t,networkDetails:null};return e&&(n.part=e),(e||a).stats.aborted=!0,new yi(n)}function Li(a){return a==="AES-128"||a==="AES-256"}class yi extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class si extends se{constructor(e,t){super(e,t),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(e){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)}clearInterval(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}clearNextTick(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1}tick(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}class Ci{constructor(e,t,n,r=0,i=-1,s=!1){this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=ui(),this.buffering={audio:ui(),video:ui(),audiovideo:ui()},this.level=e,this.sn=t,this.id=n,this.size=r,this.part=i,this.partial=s}}function ui(){return{start:0,executeStart:0,executeEnd:0,end:0}}const $i={length:0,start:()=>0,end:()=>0};class Tr{static isBuffered(e,t){if(e){const n=Tr.getBuffered(e);for(let r=n.length;r--;)if(t>=n.start(r)&&t<=n.end(r))return!0}return!1}static bufferedRanges(e){if(e){const t=Tr.getBuffered(e);return Tr.timeRangesToArray(t)}return[]}static timeRangesToArray(e){const t=[];for(let n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t}static bufferInfo(e,t,n){if(e){const r=Tr.bufferedRanges(e);if(r.length)return Tr.bufferedInfo(r,t,n)}return{len:0,start:t,end:t,bufferedIndex:-1}}static bufferedInfo(e,t,n){t=Math.max(0,t),e.length>1&&e.sort((y,E)=>y.start-E.start||E.end-y.end);let r=-1,i=[];if(n)for(let y=0;y<e.length;y++){t>=e[y].start&&t<=e[y].end&&(r=y);const E=i.length;if(E){const U=i[E-1].end;e[y].start-U<n?e[y].end>U&&(i[E-1].end=e[y].end):i.push(e[y])}else i.push(e[y])}else i=e;let s=0,u,f=t,c=t;for(let y=0;y<i.length;y++){const E=i[y].start,U=i[y].end;if(r===-1&&t>=E&&t<=U&&(r=y),t+n>=E&&t<U)f=E,c=U,s=c-t;else if(t+n<E){u=E;break}}return{len:s,start:f||0,end:c||0,nextStart:u,buffered:e,bufferedIndex:r}}static getBuffered(e){try{return e.buffered||$i}catch(t){return j.log("failed to get media.buffered",t),$i}}}const Xi=/\{\$([a-zA-Z0-9-_]+)\}/g;function Hi(a){return Xi.test(a)}function Qi(a,e){if(a.variableList!==null||a.hasVariableRefs){const t=a.variableList;return e.replace(Xi,n=>{const r=n.substring(2,n.length-1),i=t==null?void 0:t[r];return i===void 0?(a.playlistParsingError||(a.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${r}"`)),n):i})}return e}function jr(a,e,t){let n=a.variableList;n||(a.variableList=n={});let r,i;if("QUERYPARAM"in e){r=e.QUERYPARAM;try{const s=new self.URL(t).searchParams;if(s.has(r))i=s.get(r);else throw new Error(`"${r}" does not match any query parameter in URI: "${t}"`)}catch(s){a.playlistParsingError||(a.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${s.message}`))}}else r=e.NAME,i=e.VALUE;r in n?a.playlistParsingError||(a.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${r}"`)):n[r]=i||""}function fs(a,e,t){const n=e.IMPORT;if(t&&n in t){let r=a.variableList;r||(a.variableList=r={}),r[n]=t[n]}else a.playlistParsingError||(a.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${n}"`))}const vs=/^(\d+)x(\d+)$/,cs=/(.+?)=(".*?"|.*?)(?:,|$)/g;class Br{constructor(e,t){typeof e=="string"&&(e=Br.parseAttrList(e,t)),g(this,e)}get clientAttrs(){return Object.keys(this).filter(e=>e.substring(0,2)==="X-")}decimalInteger(e){const t=parseInt(this[e],10);return t>Number.MAX_SAFE_INTEGER?1/0:t}hexadecimalInteger(e){if(this[e]){let t=(this[e]||"0x").slice(2);t=(t.length&1?"0":"")+t;const n=new Uint8Array(t.length/2);for(let r=0;r<t.length/2;r++)n[r]=parseInt(t.slice(r*2,r*2+2),16);return n}return null}hexadecimalIntegerAsNumber(e){const t=parseInt(this[e],16);return t>Number.MAX_SAFE_INTEGER?1/0:t}decimalFloatingPoint(e){return parseFloat(this[e])}optionalFloat(e,t){const n=this[e];return n?parseFloat(n):t}enumeratedString(e){return this[e]}enumeratedStringList(e,t){const n=this[e];return(n?n.split(/[ ,]+/):[]).reduce((r,i)=>(r[i.toLowerCase()]=!0,r),t)}bool(e){return this[e]==="YES"}decimalResolution(e){const t=vs.exec(this[e]);if(t!==null)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e,t){let n;const r={},i='"';for(cs.lastIndex=0;(n=cs.exec(e))!==null;){const s=n[1].trim();let u=n[2];const f=u.indexOf(i)===0&&u.lastIndexOf(i)===u.length-1;let c=!1;if(f)u=u.slice(1,-1);else switch(s){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":c=!0}if(t&&(f||c))u=Qi(t,u);else if(!c&&!f)switch(s){case"CLOSED-CAPTIONS":if(u==="NONE")break;case"ALLOWED-CPC":case"CLASS":case"ASSOC-LANGUAGE":case"AUDIO":case"BYTERANGE":case"CHANNELS":case"CHARACTERISTICS":case"CODECS":case"DATA-ID":case"END-DATE":case"GROUP-ID":case"ID":case"IMPORT":case"INSTREAM-ID":case"KEYFORMAT":case"KEYFORMATVERSIONS":case"LANGUAGE":case"NAME":case"PATHWAY-ID":case"QUERYPARAM":case"RECENTLY-REMOVED-DATERANGES":case"SERVER-URI":case"STABLE-RENDITION-ID":case"STABLE-VARIANT-ID":case"START-DATE":case"SUBTITLES":case"SUPPLEMENTAL-CODECS":case"URI":case"VALUE":case"VIDEO":case"X-ASSET-LIST":case"X-ASSET-URI":j.warn(`${e}: attribute ${s} is missing quotes`)}r[s]=u}return r}}const hs="com.apple.hls.interstitial";function Ts(a){return a!=="ID"&&a!=="CLASS"&&a!=="CUE"&&a!=="START-DATE"&&a!=="DURATION"&&a!=="END-DATE"&&a!=="END-ON-NEXT"}function Nn(a){return a==="SCTE35-OUT"||a==="SCTE35-IN"||a==="SCTE35-CMD"}class Mi{constructor(e,t,n=0){var r;if(this.attr=void 0,this.tagAnchor=void 0,this.tagOrder=void 0,this._startDate=void 0,this._endDate=void 0,this._dateAtEnd=void 0,this._cue=void 0,this._badValueForSameId=void 0,this.tagAnchor=(t==null?void 0:t.tagAnchor)||null,this.tagOrder=(r=t==null?void 0:t.tagOrder)!=null?r:n,t){const i=t.attr;for(const s in i)if(Object.prototype.hasOwnProperty.call(e,s)&&e[s]!==i[s]){j.warn(`DATERANGE tag attribute: "${s}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=s;break}e=g(new Br({}),i,e)}if(this.attr=e,t?(this._startDate=t._startDate,this._cue=t._cue,this._endDate=t._endDate,this._dateAtEnd=t._dateAtEnd):this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){const i=(t==null?void 0:t.endDate)||new Date(this.attr["END-DATE"]);O(i.getTime())&&(this._endDate=i)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get cue(){const e=this._cue;return e===void 0?this._cue=this.attr.enumeratedStringList(this.attr.CUE?"CUE":"X-CUE",{pre:!1,post:!1,once:!1}):e}get startTime(){const{tagAnchor:e}=this;return e===null||e.programDateTime===null?(j.warn(`Expected tagAnchor Fragment with PDT set for DateRange "${this.id}": ${e}`),NaN):e.start+(this.startDate.getTime()-e.programDateTime)/1e3}get startDate(){return this._startDate}get endDate(){const e=this._endDate||this._dateAtEnd;if(e)return e;const t=this.duration;return t!==null?this._dateAtEnd=new Date(this._startDate.getTime()+t*1e3):null}get duration(){if("DURATION"in this.attr){const e=this.attr.decimalFloatingPoint("DURATION");if(O(e))return e}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isInterstitial(){return this.class===hs}get isValid(){return!!this.id&&!this._badValueForSameId&&O(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)&&(!this.attr.CUE||!this.cue.pre&&!this.cue.post||this.cue.pre!==this.cue.post)&&(!this.isInterstitial||"X-ASSET-URI"in this.attr||"X-ASSET-LIST"in this.attr)}}const ls=10;class gr{constructor(e){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.dateRangeTagCount=0,this.live=!0,this.requestScheduled=-1,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.appliedTimelineOffset=void 0,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=e}reloaded(e){if(!e){this.advanced=!0,this.updated=!0;return}const t=this.lastPartSn-e.lastPartSn,n=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!n||!!t||!this.live,this.advanced=this.endSN>e.endSN||t>0||t===0&&n>0,this.updated||this.advanced?this.misses=Math.floor(e.misses*.6):this.misses=e.misses+1}get hasProgramDateTime(){return this.fragments.length?O(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||ls}get drift(){const e=this.driftEndTime-this.driftStartTime;return e>0?(this.driftEnd-this.driftStart)*1e3/e:1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}get fragmentEnd(){var e;return(e=this.fragments)!=null&&e.length?this.fragments[this.fragments.length-1].end:0}get fragmentStart(){var e;return(e=this.fragments)!=null&&e.length?this.fragments[0].start:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].index:-1}get maxPartIndex(){const e=this.partList;if(e){const t=this.lastPartIndex;if(t!==-1){for(let n=e.length;n--;)if(e[n].index>t)return e[n].index;return t}}return 0}get lastPartSn(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}get expired(){if(this.live&&this.age&&this.misses<3){const e=this.partEnd-this.fragmentStart;return this.age>Math.max(e,this.totalduration)+this.levelTargetDuration}return!1}}function xr(a){return a==="AES-128"||a==="AES-256"||a==="AES-256-CTR"}function cr(a){switch(a){case"AES-128":case"AES-256":return fr.cbc;case"AES-256-CTR":return fr.ctr;default:throw new Error(`invalid full segment method ${a}`)}}function Xn(a){return Uint8Array.from(atob(a),e=>e.charCodeAt(0))}function Ur(a){return Uint8Array.from(unescape(encodeURIComponent(a)),e=>e.charCodeAt(0))}function ai(a){const e=Ur(a).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function Zi(a){const e=function(n,r,i){const s=n[r];n[r]=n[i],n[i]=s};e(a,0,3),e(a,1,2),e(a,4,5),e(a,6,7)}function Ri(a){const e=a.split(":");let t=null;if(e[0]==="data"&&e.length===2){const n=e[1].split(";"),r=n[n.length-1].split(",");if(r.length===2){const i=r[0]==="base64",s=r[1];i?(n.splice(-1,1),t=Xn(s)):t=ai(s)}}return t}const Ti=typeof self!="undefined"?self:void 0;var Fr={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},Oi={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function As(a){switch(a){case Oi.FAIRPLAY:return Fr.FAIRPLAY;case Oi.PLAYREADY:return Fr.PLAYREADY;case Oi.WIDEVINE:return Fr.WIDEVINE;case Oi.CLEARKEY:return Fr.CLEARKEY}}var Ps={CENC:"1077efecc0b24d02ace33c1e52e2fb4b",CLEARKEY:"e2719d58a985b3c9781ab030af78d30e",PLAYREADY:"9a04f07998404286ab92e65be0885f95",WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function ps(a){if(a===Ps.WIDEVINE)return Fr.WIDEVINE;if(a===Ps.PLAYREADY)return Fr.PLAYREADY;if(a===Ps.CENC||a===Ps.CLEARKEY)return Fr.CLEARKEY}function us(a){switch(a){case Fr.FAIRPLAY:return Oi.FAIRPLAY;case Fr.PLAYREADY:return Oi.PLAYREADY;case Fr.WIDEVINE:return Oi.WIDEVINE;case Fr.CLEARKEY:return Oi.CLEARKEY}}function or(a){const{drmSystems:e,widevineLicenseUrl:t}=a,n=e?[Fr.FAIRPLAY,Fr.WIDEVINE,Fr.PLAYREADY,Fr.CLEARKEY].filter(r=>!!e[r]):[];return!n[Fr.WIDEVINE]&&t&&n.push(Fr.WIDEVINE),n}const Or=function(a){return Ti!=null&&(a=Ti.navigator)!=null&&a.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function bi(a,e,t,n){let r;switch(a){case Fr.FAIRPLAY:r=["cenc","sinf"];break;case Fr.WIDEVINE:case Fr.PLAYREADY:r=["cenc"];break;case Fr.CLEARKEY:r=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${a}`)}return ji(r,e,t,n)}function ji(a,e,t,n){return[{initDataTypes:a,persistentState:n.persistentState||"optional",distinctiveIdentifier:n.distinctiveIdentifier||"optional",sessionTypes:n.sessionTypes||[n.sessionType||"temporary"],audioCapabilities:e.map(i=>({contentType:`audio/mp4; codecs=${i}`,robustness:n.audioRobustness||"",encryptionScheme:n.audioEncryptionScheme||null})),videoCapabilities:t.map(i=>({contentType:`video/mp4; codecs=${i}`,robustness:n.videoRobustness||"",encryptionScheme:n.videoEncryptionScheme||null}))}]}function gi(a){var e;return a.sessionType==="persistent-license"||!!((e=a.sessionTypes)!=null&&e.some(t=>t==="persistent-license"))}function Ds(a){const e=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2),t=String.fromCharCode.apply(null,Array.from(e)),n=t.substring(t.indexOf("<"),t.length),s=new DOMParser().parseFromString(n,"text/xml").getElementsByTagName("KID")[0];if(s){const u=s.childNodes[0]?s.childNodes[0].nodeValue:s.getAttribute("VALUE");if(u){const f=Xn(u).subarray(0,16);return Zi(f),f}}return null}let ks={};class Is{static clearKeyUriToKeyIdMap(){ks={}}constructor(e,t,n,r=[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=n,this.keyFormatVersions=r,this.iv=i,this.encrypted=e?e!=="NONE":!1,this.isCommonEncryption=this.encrypted&&!xr(e)}isSupported(){if(this.method){if(xr(this.method)||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case Oi.FAIRPLAY:case Oi.WIDEVINE:case Oi.PLAYREADY:case Oi.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(xr(this.method)&&this.uri&&!this.iv){typeof e!="number"&&(j.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0);const n=_s(e);return new Is(this.method,this.uri,"identity",this.keyFormatVersions,n)}const t=Ri(this.uri);if(t)switch(this.keyFormat){case Oi.WIDEVINE:this.pssh=t,t.length>=22&&(this.keyId=t.subarray(t.length-22,t.length-6));break;case Oi.PLAYREADY:{const n=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=M(n,null,t),this.keyId=Ds(t);break}default:{let n=t.subarray(0,16);if(n.length!==16){const r=new Uint8Array(16);r.set(n,16-n.length),n=r}this.keyId=n;break}}if(!this.keyId||this.keyId.byteLength!==16){let n=ks[this.uri];if(!n){const r=Object.keys(ks).length%Number.MAX_SAFE_INTEGER;n=new Uint8Array(16),new DataView(n.buffer,12,4).setUint32(0,r),ks[this.uri]=n}this.keyId=n}return this}}function _s(a){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=a>>8*(15-t)&255;return e}const aa=/#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,oa=/#EXT-X-MEDIA:(.*)/g,ha=/^#EXT(?:INF|-X-TARGETDURATION):/m,Ws=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),pa=new RegExp([/#EXT-X-(PROGRAM-DATE-TIME|BYTERANGE|DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class ns{static findGroup(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(r.id===t)return r}}static resolve(e,t){return J.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return ha.test(e)}static parseMasterPlaylist(e,t){const n=Hi(e),r={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:n},i=[];aa.lastIndex=0;let s;for(;(s=aa.exec(e))!=null;)if(s[1]){var u;const c=new Br(s[1],r),y=Qi(r,s[2]),E={attrs:c,bitrate:c.decimalInteger("BANDWIDTH")||c.decimalInteger("AVERAGE-BANDWIDTH"),name:c.NAME,url:ns.resolve(y,t)},U=c.decimalResolution("RESOLUTION");U&&(E.width=U.width,E.height=U.height),Us(c.CODECS,E);const V=c["SUPPLEMENTAL-CODECS"];V&&(E.supplemental={},Us(V,E.supplemental)),(u=E.unknownCodecs)!=null&&u.length||i.push(E),r.levels.push(E)}else if(s[3]){const c=s[3],y=s[4];switch(c){case"SESSION-DATA":{const E=new Br(y,r),U=E["DATA-ID"];U&&(r.sessionData===null&&(r.sessionData={}),r.sessionData[U]=E);break}case"SESSION-KEY":{const E=Js(y,t,r);E.encrypted&&E.isSupported()?(r.sessionKeys===null&&(r.sessionKeys=[]),r.sessionKeys.push(E)):j.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${y}"`);break}case"DEFINE":{{const E=new Br(y,r);jr(r,E,t)}break}case"CONTENT-STEERING":{const E=new Br(y,r);r.contentSteering={uri:ns.resolve(E["SERVER-URI"],t),pathwayId:E["PATHWAY-ID"]||"."};break}case"START":{r.startTimeOffset=qs(y);break}}}const f=i.length>0&&i.length<r.levels.length;return r.levels=f?i:r.levels,r.levels.length===0&&(r.playlistParsingError=new Error("no levels found in manifest")),r}static parseMasterPlaylistMedia(e,t,n){let r;const i={},s=n.levels,u={AUDIO:s.map(c=>({id:c.attrs.AUDIO,audioCodec:c.audioCodec})),SUBTITLES:s.map(c=>({id:c.attrs.SUBTITLES,textCodec:c.textCodec})),"CLOSED-CAPTIONS":[]};let f=0;for(oa.lastIndex=0;(r=oa.exec(e))!==null;){const c=new Br(r[1],n),y=c.TYPE;if(y){const E=u[y],U=i[y]||[];i[y]=U;const V=c.LANGUAGE,ee=c["ASSOC-LANGUAGE"],De=c.CHANNELS,Ae=c.CHARACTERISTICS,Ge=c["INSTREAM-ID"],ft={attrs:c,bitrate:0,id:f++,groupId:c["GROUP-ID"]||"",name:c.NAME||V||"",type:y,default:c.bool("DEFAULT"),autoselect:c.bool("AUTOSELECT"),forced:c.bool("FORCED"),lang:V,url:c.URI?ns.resolve(c.URI,t):""};if(ee&&(ft.assocLang=ee),De&&(ft.channels=De),Ae&&(ft.characteristics=Ae),Ge&&(ft.instreamId=Ge),E!=null&&E.length){const lt=ns.findGroup(E,ft.groupId)||E[0];oi(ft,lt,"audioCodec"),oi(ft,lt,"textCodec")}U.push(ft)}}return i}static parseLevelPlaylist(e,t,n,r,i,s){var u;const f={url:t},c=new gr(t),y=c.fragments,E=[];let U=null,V=0,ee=0,De=0,Ae=0,Ge=0,ft=null,lt=new Be(r,f),Pt,Nt,on,zt=-1,Jt=!1,vn=null,jt;if(Ws.lastIndex=0,c.m3u8=e,c.hasVariableRefs=Hi(e),((u=Ws.exec(e))==null?void 0:u[0])!=="#EXTM3U")return c.playlistParsingError=new Error("Missing format identifier #EXTM3U"),c;for(;(Pt=Ws.exec(e))!==null;){Jt&&(Jt=!1,lt=new Be(r,f),lt.playlistOffset=De,lt.start=De,lt.sn=V,lt.cc=Ae,Ge&&(lt.bitrate=Ge),lt.level=n,U&&(lt.initSegment=U,U.rawProgramDateTime&&(lt.rawProgramDateTime=U.rawProgramDateTime,U.rawProgramDateTime=null),vn&&(lt.setByteRange(vn),vn=null)));const Jr=Pt[1];if(Jr){lt.duration=parseFloat(Jr);const Hr=(" "+Pt[2]).slice(1);lt.title=Hr||null,lt.tagList.push(Hr?["INF",Jr,Hr]:["INF",Jr])}else if(Pt[3]){if(O(lt.duration)){lt.playlistOffset=De,lt.start=De,on&&Pi(lt,on,c),lt.sn=V,lt.level=n,lt.cc=Ae,y.push(lt);const Hr=(" "+Pt[3]).slice(1);lt.relurl=Qi(c,Hr),as(lt,ft,E),ft=lt,De+=lt.duration,V++,ee=0,Jt=!0}}else{if(Pt=Pt[0].match(pa),!Pt){j.warn("No matches on slow regex match for level playlist!");continue}for(Nt=1;Nt<Pt.length&&Pt[Nt]===void 0;Nt++);const Hr=(" "+Pt[Nt]).slice(1),Rr=(" "+Pt[Nt+1]).slice(1),Zr=Pt[Nt+2]?(" "+Pt[Nt+2]).slice(1):null;switch(Hr){case"BYTERANGE":ft?lt.setByteRange(Rr,ft):lt.setByteRange(Rr);break;case"PROGRAM-DATE-TIME":lt.rawProgramDateTime=Rr,lt.tagList.push(["PROGRAM-DATE-TIME",Rr]),zt===-1&&(zt=y.length);break;case"PLAYLIST-TYPE":c.type&&Gi(c,Hr,Pt),c.type=Rr.toUpperCase();break;case"MEDIA-SEQUENCE":c.startSN!==0?Gi(c,Hr,Pt):y.length>0&&ds(c,Hr,Pt),V=c.startSN=parseInt(Rr);break;case"SKIP":{c.skippedSegments&&Gi(c,Hr,Pt);const $r=new Br(Rr,c),Gn=$r.decimalInteger("SKIPPED-SEGMENTS");if(O(Gn)){c.skippedSegments+=Gn;for(let ci=Gn;ci--;)y.push(null);V+=Gn}const Jn=$r.enumeratedString("RECENTLY-REMOVED-DATERANGES");Jn&&(c.recentlyRemovedDateranges=(c.recentlyRemovedDateranges||[]).concat(Jn.split(" ")));break}case"TARGETDURATION":c.targetduration!==0&&Gi(c,Hr,Pt),c.targetduration=Math.max(parseInt(Rr),1);break;case"VERSION":c.version!==null&&Gi(c,Hr,Pt),c.version=parseInt(Rr);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":c.live||Gi(c,Hr,Pt),c.live=!1;break;case"#":(Rr||Zr)&<.tagList.push(Zr?[Rr,Zr]:[Rr]);break;case"DISCONTINUITY":Ae++,lt.tagList.push(["DIS"]);break;case"GAP":lt.gap=!0,lt.tagList.push([Hr]);break;case"BITRATE":lt.tagList.push([Hr,Rr]),Ge=parseInt(Rr)*1e3,O(Ge)?lt.bitrate=Ge:Ge=0;break;case"DATERANGE":{const $r=new Br(Rr,c),Gn=new Mi($r,c.dateRanges[$r.ID],c.dateRangeTagCount);c.dateRangeTagCount++,Gn.isValid||c.skippedSegments?c.dateRanges[Gn.id]=Gn:j.warn(`Ignoring invalid DATERANGE tag: "${Rr}"`),lt.tagList.push(["EXT-X-DATERANGE",Rr]);break}case"DEFINE":{{const $r=new Br(Rr,c);"IMPORT"in $r?fs(c,$r,s):jr(c,$r,t)}break}case"DISCONTINUITY-SEQUENCE":c.startCC!==0?Gi(c,Hr,Pt):y.length>0&&ds(c,Hr,Pt),c.startCC=Ae=parseInt(Rr);break;case"KEY":{const $r=Js(Rr,t,c);if($r.isSupported()){if($r.method==="NONE"){on=void 0;break}on||(on={}),on[$r.keyFormat]&&(on=g({},on)),on[$r.keyFormat]=$r}else j.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${Rr}"`);break}case"START":c.startTimeOffset=qs(Rr);break;case"MAP":{const $r=new Br(Rr,c);if(lt.duration){const Gn=new Be(r,f);Wi(Gn,$r,n,on),U=Gn,lt.initSegment=U,U.rawProgramDateTime&&!lt.rawProgramDateTime&&(lt.rawProgramDateTime=U.rawProgramDateTime)}else{const Gn=lt.byteRangeEndOffset;if(Gn){const Jn=lt.byteRangeStartOffset;vn=`${Gn-Jn}@${Jn}`}else vn=null;Wi(lt,$r,n,on),U=lt,Jt=!0}U.cc=Ae;break}case"SERVER-CONTROL":{jt&&Gi(c,Hr,Pt),jt=new Br(Rr),c.canBlockReload=jt.bool("CAN-BLOCK-RELOAD"),c.canSkipUntil=jt.optionalFloat("CAN-SKIP-UNTIL",0),c.canSkipDateRanges=c.canSkipUntil>0&&jt.bool("CAN-SKIP-DATERANGES"),c.partHoldBack=jt.optionalFloat("PART-HOLD-BACK",0),c.holdBack=jt.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{c.partTarget&&Gi(c,Hr,Pt);const $r=new Br(Rr);c.partTarget=$r.decimalFloatingPoint("PART-TARGET");break}case"PART":{let $r=c.partList;$r||($r=c.partList=[]);const Gn=ee>0?$r[$r.length-1]:void 0,Jn=ee++,ci=new Br(Rr,c),ni=new Ue(ci,lt,f,Jn,Gn);$r.push(ni),lt.duration+=ni.duration;break}case"PRELOAD-HINT":{const $r=new Br(Rr,c);c.preloadHint=$r;break}case"RENDITION-REPORT":{const $r=new Br(Rr,c);c.renditionReports=c.renditionReports||[],c.renditionReports.push($r);break}default:j.warn(`line parsed but not handled: ${Pt}`);break}}}ft&&!ft.relurl?(y.pop(),De-=ft.duration,c.partList&&(c.fragmentHint=ft)):c.partList&&(as(lt,ft,E),lt.cc=Ae,c.fragmentHint=lt,on&&Pi(lt,on,c)),c.targetduration||(c.playlistParsingError=new Error("#EXT-X-TARGETDURATION is required"));const Wn=y.length,yr=y[0],wi=y[Wn-1];if(De+=c.skippedSegments*c.targetduration,De>0&&Wn&&wi){c.averagetargetduration=De/Wn;const Jr=wi.sn;c.endSN=Jr!=="initSegment"?Jr:0,c.live||(wi.endList=!0),yr&&c.startCC===void 0&&(c.startCC=yr.cc),zt>0&&(Qr(y,zt),yr&&E.unshift(yr))}else c.endSN=0,c.startCC=0;return c.fragmentHint&&(De+=c.fragmentHint.duration),c.totalduration=De,E.length&&c.dateRangeTagCount&&yr&&xs(E,c),c.endCC=Ae,c}}function xs(a,e){const t=a.length,n=a[t-1],r=e.live?1/0:e.totalduration,i=Object.keys(e.dateRanges);for(let s=i.length;s--;){const u=e.dateRanges[i[s]],f=u.startDate.getTime();u.tagAnchor=n.ref;for(let c=t;c--;){const y=ma(e,f,a,c,r);if(y!==-1){u.tagAnchor=e.fragments[y].ref;break}}}}function ma(a,e,t,n,r){const i=t[n];if(i){const u=i.programDateTime;if(e>=u||n===0){var s;const f=(((s=t[n+1])==null?void 0:s.start)||r)-i.start;if(e<=u+f*1e3){const c=t[n].sn-a.startSN,y=a.fragments;if(y.length>t.length){const U=(t[n+1]||y[y.length-1]).sn-a.startSN;for(let V=U;V>c;V--){const ee=y[V].programDateTime;if(e>=ee&&e<ee+y[V].duration*1e3)return V}}return c}}}return-1}function Js(a,e,t){var n,r;const i=new Br(a,t),s=(n=i.METHOD)!=null?n:"",u=i.URI,f=i.hexadecimalInteger("IV"),c=i.KEYFORMATVERSIONS,y=(r=i.KEYFORMAT)!=null?r:"identity";u&&i.IV&&!f&&j.error(`Invalid IV: ${i.IV}`);const E=u?ns.resolve(u,e):"",U=(c||"1").split("/").map(Number).filter(Number.isFinite);return new Is(s,E,y,U,f)}function qs(a){const t=new Br(a).decimalFloatingPoint("TIME-OFFSET");return O(t)?t:null}function Us(a,e){let t=(a||"").split(/[ ,]+/).filter(n=>n);["video","audio","text"].forEach(n=>{const r=t.filter(i=>it(i,n));r.length&&(e[`${n}Codec`]=r.map(i=>i.split("/")[0]).join(","),t=t.filter(i=>r.indexOf(i)===-1))}),e.unknownCodecs=t}function oi(a,e,t){const n=e[t];n&&(a[t]=n)}function Qr(a,e){let t=a[e];for(let n=e;n--;){const r=a[n];if(!r)return;r.programDateTime=t.programDateTime-r.duration*1e3,t=r}}function as(a,e,t){a.rawProgramDateTime?t.push(a):e!=null&&e.programDateTime&&(a.programDateTime=e.endProgramDateTime)}function Wi(a,e,t,n){a.relurl=e.URI,e.BYTERANGE&&a.setByteRange(e.BYTERANGE),a.level=t,a.sn="initSegment",n&&(a.levelkeys=n),a.initSegment=null}function Pi(a,e,t){a.levelkeys=e;const{encryptedFragments:n}=t;(!n.length||n[n.length-1].levelkeys!==e)&&Object.keys(e).some(r=>e[r].isCommonEncryption)&&n.push(a)}function Gi(a,e,t){a.playlistParsingError=new Error(`#EXT-X-${e} must not appear more than once (${t[0]})`)}function ds(a,e,t){a.playlistParsingError=new Error(`#EXT-X-${e} must appear before the first Media Segment (${t[0]})`)}function Es(a,e){const t=e.startPTS;if(O(t)){let n=0,r;e.sn>a.sn?(n=t-a.start,r=a):(n=a.start-t,r=e),r.duration!==n&&r.setDuration(n)}else e.sn>a.sn?a.cc===e.cc&&a.minEndPTS?e.setStart(a.start+(a.minEndPTS-a.start)):e.setStart(a.start+a.duration):e.setStart(Math.max(a.start-e.duration,0))}function ys(a,e,t,n,r,i){n-t<=0&&(j.warn("Fragment should have a positive duration",e),n=t+e.duration,i=r+e.duration);let u=t,f=n;const c=e.startPTS,y=e.endPTS;if(O(c)){const Ae=Math.abs(c-t);O(e.deltaPTS)?e.deltaPTS=Math.max(Ae,e.deltaPTS):e.deltaPTS=Ae,u=Math.max(t,c),t=Math.min(t,c),r=Math.min(r,e.startDTS),f=Math.min(n,y),n=Math.max(n,y),i=Math.max(i,e.endDTS)}const E=t-e.start;e.start!==0&&e.setStart(t),e.setDuration(n-e.start),e.startPTS=t,e.maxStartPTS=u,e.startDTS=r,e.endPTS=n,e.minEndPTS=f,e.endDTS=i;const U=e.sn;if(!a||U<a.startSN||U>a.endSN)return 0;let V;const ee=U-a.startSN,De=a.fragments;for(De[ee]=e,V=ee;V>0;V--)Es(De[V],De[V-1]);for(V=ee;V<De.length-1;V++)Es(De[V],De[V+1]);return a.fragmentHint&&Es(De[De.length-1],a.fragmentHint),a.PTSKnown=a.alignedSliding=!0,E}function ea(a,e){if(a===e)return;let t=null;const n=a.fragments;for(let f=n.length-1;f>=0;f--){const c=n[f].initSegment;if(c){t=c;break}}a.fragmentHint&&delete a.fragmentHint.endPTS;let r;za(a,e,(f,c,y,E)=>{if(e.skippedSegments&&c.cc!==f.cc){const U=f.cc-c.cc;for(let V=y;V<E.length;V++)E[V].cc+=U}O(f.startPTS)&&O(f.endPTS)&&(c.setStart(c.startPTS=f.startPTS),c.startDTS=f.startDTS,c.maxStartPTS=f.maxStartPTS,c.endPTS=f.endPTS,c.endDTS=f.endDTS,c.minEndPTS=f.minEndPTS,c.setDuration(f.endPTS-f.startPTS),c.duration&&(r=c),e.PTSKnown=e.alignedSliding=!0),f.hasStreams&&(c.elementaryStreams=f.elementaryStreams),c.loader=f.loader,f.hasStats&&(c.stats=f.stats),f.initSegment&&(c.initSegment=f.initSegment,t=f.initSegment)});const i=e.fragments,s=e.fragmentHint?i.concat(e.fragmentHint):i;if(t&&s.forEach(f=>{var c;f&&(!f.initSegment||f.initSegment.relurl===((c=t)==null?void 0:c.relurl))&&(f.initSegment=t)}),e.skippedSegments)if(e.deltaUpdateFailed=i.some(f=>!f),e.deltaUpdateFailed){j.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let f=e.skippedSegments;f--;)i.shift();e.startSN=i[0].sn}else{e.endCC=i[i.length-1].cc,e.canSkipDateRanges&&(e.dateRanges=Bs(a.dateRanges,e));const f=a.fragments.filter(c=>c.rawProgramDateTime);if(a.hasProgramDateTime&&!e.hasProgramDateTime)for(let c=1;c<s.length;c++)s[c].programDateTime===null&&as(s[c],s[c-1],f);xs(f,e)}ga(a.partList,e.partList,(f,c)=>{c.elementaryStreams=f.elementaryStreams,c.stats=f.stats}),r?ys(e,r,r.startPTS,r.endPTS,r.startDTS,r.endDTS):la(a,e),i.length&&(e.totalduration=e.edge-i[0].start),e.driftStartTime=a.driftStartTime,e.driftStart=a.driftStart;const u=e.advancedDateTime;if(e.advanced&&u){const f=e.edge;e.driftStart||(e.driftStartTime=u,e.driftStart=f),e.driftEndTime=u,e.driftEnd=f}else e.driftEndTime=a.driftEndTime,e.driftEnd=a.driftEnd,e.advancedDateTime=a.advancedDateTime;e.requestScheduled===-1&&(e.requestScheduled=a.requestScheduled)}function Bs(a,e){const{dateRanges:t,recentlyRemovedDateranges:n}=e,r=g({},a);n&&n.forEach(u=>{delete r[u]});const s=Object.keys(r).length;return s&&Object.keys(t).forEach(u=>{const f=r[u],c=new Mi(t[u].attr,f);c.isValid?(r[u]=c,f||(c.tagOrder+=s)):j.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${an(t[u].attr)}"`)}),r}function ga(a,e,t){if(a&&e){let n=0;for(let r=0,i=a.length;r<=i;r++){const s=a[r],u=e[r+n];s&&u&&s.index===u.index&&s.fragment.sn===u.fragment.sn?t(s,u):n--}}}function za(a,e,t){const n=e.skippedSegments,r=Math.max(a.startSN,e.startSN)-e.startSN,i=(a.fragmentHint?1:0)+(n?e.endSN:Math.min(a.endSN,e.endSN))-e.startSN,s=e.startSN-a.startSN,u=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,f=a.fragmentHint?a.fragments.concat(a.fragmentHint):a.fragments;for(let c=r;c<=i;c++){const y=f[s+c];let E=u[c];if(n&&!E&&y&&(E=e.fragments[c]=y),y&&E){if(t(y,E,c,u),y.url&&y.url!==E.url){e.playlistParsingError=Ms(`media sequence mismatch ${E.sn}:`,a,e,y,E);return}else if(y.cc!==E.cc){e.playlistParsingError=Ms(`discontinuity sequence mismatch (${y.cc}!=${E.cc})`,a,e,y,E);return}}}}function Ms(a,e,t,n,r){return new Error(`${a} ${r.url}
|
|
|
Playlist starting @${e.startSN}
|
|
|
${e.m3u8}
|
|
|
|
|
|
Playlist starting @${t.startSN}
|
|
|
${t.m3u8}`)}function la(a,e,t=!0){const n=e.startSN+e.skippedSegments-a.startSN,r=a.fragments,i=n>=0;let s=0;if(i&&n<r.length)s=r[n].start;else if(i&&e.startSN===a.endSN+1)s=a.fragmentEnd;else if(i&&t)s=a.fragmentStart+n*e.levelTargetDuration;else if(!e.skippedSegments&&e.fragmentStart===0)s=a.fragmentStart;else return;va(e,s)}function va(a,e){if(e){const t=a.fragments;for(let n=a.skippedSegments;n<t.length;n++)t[n].addStart(e);a.fragmentHint&&a.fragmentHint.addStart(e)}}function Gs(a,e=1/0){let t=1e3*a.targetduration;if(a.updated){const n=a.fragments;if(n.length&&t*4>e){const i=n[n.length-1].duration*1e3;i<t&&(t=i)}}else t/=2;return Math.round(t)}function wa(a,e,t){if(!a)return null;let n=a.fragments[e-a.startSN];return n||(n=a.fragmentHint,n&&n.sn===e)?n:e<a.startSN&&t&&t.sn===e?t:null}function Ca(a,e,t){return a?ua(a.partList,e,t):null}function ua(a,e,t){if(a)for(let n=a.length;n--;){const r=a[n];if(r.index===t&&r.fragment.sn===e)return r}return null}function Ta(a){a.forEach((e,t)=>{var n;(n=e.details)==null||n.fragments.forEach(r=>{r.level=t,r.initSegment&&(r.initSegment.level=t)})})}function Rs(a,e){for(let n=0,r=a.length;n<r;n++){var t;if(((t=a[n])==null?void 0:t.cc)===e)return a[n]}return null}function Pa(a,e){return!!(a&&e.startCC<a.endCC&&e.endCC>a.startCC)}function Ai(a,e){if(a){const t=a.start+e;a.start=a.startPTS=t,a.endPTS=t+a.duration}}function Di(a,e){const t=e.fragments;for(let n=0,r=t.length;n<r;n++)Ai(t[n],a);e.fragmentHint&&Ai(e.fragmentHint,a),e.alignedSliding=!0}function Si(a,e){a&&(Ss(e,a),!e.alignedSliding&&a&&Ji(e,a),!e.alignedSliding&&a&&!e.skippedSegments&&la(a,e,!1))}function Ss(a,e){if(!Pa(e,a))return;const t=Math.min(e.endCC,a.endCC),n=Rs(e.fragments,t),r=Rs(a.fragments,t);if(!n||!r)return;j.log(`Aligning playlist at start of dicontinuity sequence ${t}`);const i=n.start-r.start;Di(i,a)}function Ji(a,e){if(!a.hasProgramDateTime||!e.hasProgramDateTime)return;const t=a.fragments,n=e.fragments;if(!t.length||!n.length)return;let r,i;const s=Math.min(e.endCC,a.endCC);e.startCC<s&&a.startCC<s&&(r=Rs(n,s),i=Rs(t,s)),(!r||!i)&&(r=n[Math.floor(n.length/2)],i=Rs(t,r.cc)||t[Math.floor(t.length/2)]);const u=r.programDateTime,f=i.programDateTime;if(!u||!f)return;const c=(f-u)/1e3-(i.start-r.start);Di(c,a)}const ya={toString:function(a){let e="";const t=a.length;for(let n=0;n<t;n++)e+=`[${a.start(n).toFixed(3)}-${a.end(n).toFixed(3)}]`;return e}},gn={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 ta extends si{constructor(e,t,n,r,i){super(r,e.logger),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=gn.STOPPED,this.playlistType=void 0,this.media=null,this.mediaBuffer=null,this.config=void 0,this.bitrateTest=!1,this.lastCurrentTime=0,this.nextLoadPosition=0,this.startPosition=0,this.startTimeOffset=null,this.retryDate=0,this.levels=null,this.fragmentLoader=void 0,this.keyLoader=void 0,this.levelLastLoaded=null,this.startFragRequested=!1,this.decrypter=void 0,this.initPTS=[],this.buffering=!0,this.loadingParts=!1,this.loopSn=void 0,this.onMediaSeeking=()=>{const{config:s,fragCurrent:u,media:f,mediaBuffer:c,state:y}=this,E=f?f.currentTime:0,U=Tr.bufferInfo(c||f,E,s.maxBufferHole);if(this.log(`media seeking to ${O(E)?E.toFixed(3):E}, state: ${y}`),this.state===gn.ENDED)this.resetLoadingState();else if(u){const V=s.maxFragLookUpTolerance,ee=u.start-V,De=u.start+u.duration+V;if(!U.len||De<U.start||ee>U.end){const Ae=E>De;(E<ee||Ae)&&(Ae&&u.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),u.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}if(f){this.fragmentTracker.removeFragmentsInRange(E,1/0,this.playlistType,!0);const V=this.lastCurrentTime;if(E>V&&(this.lastCurrentTime=E),!this.loadingParts){const ee=Math.max(U.end,E),De=this.shouldLoadParts(this.getLevelDetails(),ee);De&&(this.log(`LL-Part loading ON after seeking to ${E.toFixed(2)} with buffer @${ee.toFixed(2)}`),this.loadingParts=De)}}!this.hls.hasEnoughToStart&&!U.len&&(this.log(`setting startPosition to ${E} because of seek before start`),this.nextLoadPosition=this.startPosition=E),this.tickImmediate()},this.onMediaEnded=()=>{this.log("setting startPosition to 0 because media ended"),this.startPosition=this.lastCurrentTime=0},this.playlistType=i,this.hls=e,this.fragmentLoader=new ii(e.config),this.keyLoader=n,this.fragmentTracker=t,this.config=e.config,this.decrypter=new Ii(e.config)}registerListeners(){const{hls:e}=this;e.on(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(m.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(m.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){if(this.state===gn.STOPPED)return;this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const e=this.fragCurrent;e!=null&&e.loader&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=gn.STOPPED}get startPositionValue(){const{nextLoadPosition:e,startPosition:t}=this;return t===-1&&e?e:t}get bufferingEnabled(){return this.buffering}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}get inFlightFrag(){return{frag:this.fragCurrent,state:this.state}}_streamEnded(e,t){if(t.live||!this.media)return!1;const n=e.end||0,r=this.config.timelineOffset||0;if(n<=r)return!1;const i=e.nextStart;if(i&&i>r&&i<t.edge||this.media.currentTime<e.start)return!1;const u=t.partList;if(u!=null&&u.length){const c=u[u.length-1];return Tr.isBuffered(this.media,c.start+c.duration/2)}const f=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(f)}getLevelDetails(){if(this.levels&&this.levelLastLoaded!==null){var e;return(e=this.levelLastLoaded)==null?void 0:e.details}}get timelineOffset(){const e=this.config.timelineOffset;if(e){var t;return((t=this.getLevelDetails())==null?void 0:t.appliedTimelineOffset)||e}return 0}onMediaAttached(e,t){const n=this.media=this.mediaBuffer=t.media;n.removeEventListener("seeking",this.onMediaSeeking),n.removeEventListener("ended",this.onMediaEnded),n.addEventListener("seeking",this.onMediaSeeking),n.addEventListener("ended",this.onMediaEnded);const r=this.config;this.levels&&r.autoStartLoad&&this.state===gn.STOPPED&&this.startLoad(r.startPosition)}onMediaDetaching(e,t){const n=!!t.transferMedia,r=this.media;if(r!==null){if(r.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),r.removeEventListener("seeking",this.onMediaSeeking),r.removeEventListener("ended",this.onMediaEnded),this.keyLoader&&!n&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loopSn=void 0,n){this.resetLoadingState(),this.resetTransmuxer();return}this.loadingParts=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}}onManifestLoading(){this.initPTS=[],this.levels=this.levelLastLoaded=this.fragCurrent=null,this.lastCurrentTime=this.startPosition=0,this.startFragRequested=!1}onError(e,t){}onManifestLoaded(e,t){this.startTimeOffset=t.startTimeOffset}onHandlerDestroying(){this.stopLoad(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),super.onHandlerDestroying(),this.hls=this.onMediaSeeking=this.onMediaEnded=null}onHandlerDestroyed(){this.state=gn.STOPPED,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,super.onHandlerDestroyed()}loadFragment(e,t,n){this.startFragRequested=!0,this._loadFragForPlayback(e,t,n)}_loadFragForPlayback(e,t,n){const r=i=>{const s=i.frag;if(this.fragContextChanged(s)){this.warn(`${s.type} sn: ${s.sn}${i.part?" part: "+i.part.index:""} of ${this.fragInfo(s,!1,i.part)}) was dropped during download.`),this.fragmentTracker.removeFragment(s);return}s.stats.chunkCount++,this._handleFragmentLoadProgress(i)};this._doFragLoad(e,t,n,r).then(i=>{if(!i)return;const s=this.state,u=i.frag;if(this.fragContextChanged(u)){(s===gn.FRAG_LOADING||!this.fragCurrent&&s===gn.PARSING)&&(this.fragmentTracker.removeFragment(u),this.state=gn.IDLE);return}"payload"in i&&(this.log(`Loaded ${u.type} sn: ${u.sn} of ${this.playlistLabel()} ${u.level}`),this.hls.trigger(m.FRAG_LOADED,i)),this._handleFragmentLoadComplete(i)}).catch(i=>{this.state===gn.STOPPED||this.state===gn.ERROR||(this.warn(`Frag error: ${(i==null?void 0:i.message)||i}`),this.resetFragmentLoading(e))})}clearTrackerIfNeeded(e){var t;const{fragmentTracker:n}=this;if(n.getState(e)===er.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))&&n.removeFragment(e)}else((t=this.mediaBuffer)==null?void 0:t.buffered.length)===0?n.removeAllFragments():n.hasParts(e.type)&&(n.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type}),n.getState(e)===er.PARTIAL&&n.removeFragment(e))}checkLiveUpdate(e){if(e.updated&&!e.live){const t=e.fragments[e.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type})}e.fragments[0]||(e.deltaUpdateFailed=!0)}waitForLive(e){const t=e.details;return(t==null?void 0:t.live)&&t.type!=="EVENT"&&(this.levelLastLoaded!==e||t.expired)}flushMainBuffer(e,t,n=null){if(!(e-t))return;const r={startOffset:e,endOffset:t,type:n};this.hls.trigger(m.BUFFER_FLUSHING,r)}_loadInitSegment(e,t){this._doFragLoad(e,t).then(n=>{const r=n==null?void 0:n.frag;if(!r||this.fragContextChanged(r)||!this.levels)throw new Error("init load aborted");return n}).then(n=>{const{hls:r}=this,{frag:i,payload:s}=n,u=i.decryptdata;if(s&&s.byteLength>0&&u!=null&&u.key&&u.iv&&xr(u.method)){const f=self.performance.now();return this.decrypter.decrypt(new Uint8Array(s),u.key.buffer,u.iv.buffer,cr(u.method)).catch(c=>{throw r.trigger(m.ERROR,{type:ce.MEDIA_ERROR,details:A.FRAG_DECRYPT_ERROR,fatal:!1,error:c,reason:c.message,frag:i}),c}).then(c=>{const y=self.performance.now();return r.trigger(m.FRAG_DECRYPTED,{frag:i,payload:c,stats:{tstart:f,tdecrypt:y}}),n.payload=c,this.completeInitSegmentLoad(n)})}return this.completeInitSegmentLoad(n)}).catch(n=>{this.state===gn.STOPPED||this.state===gn.ERROR||(this.warn(n),this.resetFragmentLoading(e))})}completeInitSegmentLoad(e){const{levels:t}=this;if(!t)throw new Error("init load aborted, missing levels");const n=e.frag.stats;this.state!==gn.STOPPED&&(this.state=gn.IDLE),e.frag.data=new Uint8Array(e.payload),n.parsing.start=n.buffering.start=self.performance.now(),n.parsing.end=n.buffering.end=self.performance.now(),this.tick()}fragContextChanged(e){const{fragCurrent:t}=this;return!e||!t||e.sn!==t.sn||e.level!==t.level}fragBufferedComplete(e,t){const n=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)} > buffer:${n?ya.toString(Tr.getBuffered(n)):"(detached)"})`),me(e)){var r;if(e.type!==re.SUBTITLE){const s=e.elementaryStreams;if(!Object.keys(s).some(u=>!!s[u])){this.state=gn.IDLE;return}}const i=(r=this.levels)==null?void 0:r[e.level];i!=null&&i.fragmentError&&(this.log(`Resetting level fragment error count of ${i.fragmentError} on frag buffered`),i.fragmentError=0)}this.state=gn.IDLE}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const{frag:n,part:r,partsLoaded:i}=e,s=!i||i.length===0||i.some(f=>!f),u=new Ci(n.level,n.sn,n.stats.chunkCount+1,0,r?r.index:-1,!s);t.flush(u)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,n=null,r){var i;this.fragCurrent=e;const s=t==null?void 0:t.details;if(!this.levels||!s)throw new Error(`frag load aborted, missing level${s?"":" detail"}s`);let u=null;e.encrypted&&!((i=e.decryptdata)!=null&&i.key)?(this.log(`Loading key for ${e.sn} of [${s.startSN}-${s.endSN}], ${this.playlistLabel()} ${e.level}`),this.state=gn.KEY_LOADING,this.fragCurrent=e,u=this.keyLoader.load(e).then(E=>{if(!this.fragContextChanged(E.frag))return this.hls.trigger(m.KEY_LOADED,E),this.state===gn.KEY_LOADING&&(this.state=gn.IDLE),E}),this.hls.trigger(m.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);const f=this.fragPrevious;if(me(e)&&(!f||e.sn!==f.sn)){const E=this.shouldLoadParts(t.details,e.end);E!==this.loadingParts&&(this.log(`LL-Part loading ${E?"ON":"OFF"} loading sn ${f==null?void 0:f.sn}->${e.sn}`),this.loadingParts=E)}if(n=Math.max(e.start,n||0),this.loadingParts&&me(e)){const E=s.partList;if(E&&r){n>e.end&&s.fragmentHint&&(e=s.fragmentHint);const U=this.getNextPart(E,e,n);if(U>-1){const V=E[U];e=this.fragCurrent=V.fragment,this.log(`Loading ${e.type} sn: ${e.sn} part: ${V.index} (${U}/${E.length-1}) of ${this.fragInfo(e,!1,V)}) cc: ${e.cc} [${s.startSN}-${s.endSN}], target: ${parseFloat(n.toFixed(3))}`),this.nextLoadPosition=V.start+V.duration,this.state=gn.FRAG_LOADING;let ee;return u?ee=u.then(De=>!De||this.fragContextChanged(De.frag)?null:this.doFragPartsLoad(e,V,t,r)).catch(De=>this.handleFragLoadError(De)):ee=this.doFragPartsLoad(e,V,t,r).catch(De=>this.handleFragLoadError(De)),this.hls.trigger(m.FRAG_LOADING,{frag:e,part:V,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):ee}else if(!e.url||this.loadedEndOfParts(E,n))return Promise.resolve(null)}}if(me(e)&&this.loadingParts)this.log(`LL-Part loading OFF after next part miss @${n.toFixed(2)}`),this.loadingParts=!1;else if(!e.url)return Promise.resolve(null);this.log(`Loading ${e.type} sn: ${e.sn} of ${this.fragInfo(e,!1)}) cc: ${e.cc} ${s?"["+s.startSN+"-"+s.endSN+"]":""}, target: ${parseFloat(n.toFixed(3))}`),O(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=gn.FRAG_LOADING;const c=this.config.progressive;let y;return c&&u?y=u.then(E=>!E||this.fragContextChanged(E==null?void 0:E.frag)?null:this.fragmentLoader.load(e,r)).catch(E=>this.handleFragLoadError(E)):y=Promise.all([this.fragmentLoader.load(e,c?r:void 0),u]).then(([E])=>(!c&&E&&r&&r(E),E)).catch(E=>this.handleFragLoadError(E)),this.hls.trigger(m.FRAG_LOADING,{frag:e,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):y}doFragPartsLoad(e,t,n,r){return new Promise((i,s)=>{var u;const f=[],c=(u=n.details)==null?void 0:u.partList,y=E=>{this.fragmentLoader.loadPart(e,E,r).then(U=>{f[E.index]=U;const V=U.part;this.hls.trigger(m.FRAG_LOADED,U);const ee=Ca(n.details,e.sn,E.index+1)||ua(c,e.sn,E.index+1);if(ee)y(ee);else return i({frag:e,part:V,partsLoaded:f})}).catch(s)};y(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;e.data&&t.details===A.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(m.ERROR,t)}else this.hls.trigger(m.ERROR,{type:ce.OTHER_ERROR,details:A.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==gn.PARSING){!this.fragCurrent&&this.state!==gn.STOPPED&&this.state!==gn.ERROR&&(this.state=gn.IDLE);return}const{frag:n,part:r,level:i}=t,s=self.performance.now();n.stats.parsing.end=s,r&&(r.stats.parsing.end=s);const u=this.getLevelDetails(),c=u&&n.sn>u.endSN||this.shouldLoadParts(u,n.end);c!==this.loadingParts&&(this.log(`LL-Part loading ${c?"ON":"OFF"} after parsing segment ending @${n.end.toFixed(2)}`),this.loadingParts=c),this.updateLevelTiming(n,r,i,e.partial)}shouldLoadParts(e,t){if(this.config.lowLatencyMode){if(!e)return this.loadingParts;if(e!=null&&e.partList){var n;const i=e.partList[0],s=i.end+(((n=e.fragmentHint)==null?void 0:n.duration)||0);if(t>=s){var r;if((this.hls.hasEnoughToStart?((r=this.media)==null?void 0:r.currentTime)||this.lastCurrentTime:this.getLoadPosition())>i.start-i.fragment.duration)return!0}}}return!1}getCurrentContext(e){const{levels:t,fragCurrent:n}=this,{level:r,sn:i,part:s}=e;if(!(t!=null&&t[r]))return this.warn(`Levels object was unset while buffering fragment ${i} of ${this.playlistLabel()} ${r}. The current chunk will not be buffered.`),null;const u=t[r],f=u.details,c=s>-1?Ca(f,i,s):null,y=c?c.fragment:wa(f,i,n);return y?(n&&n!==y&&(y.stats=n.stats),{frag:y,part:c,level:u}):null}bufferFragmentData(e,t,n,r,i){var s;if(!e||this.state!==gn.PARSING)return;const{data1:u,data2:f}=e;let c=u;if(u&&f&&(c=Xe(u,f)),!((s=c)!=null&&s.length))return;const y={type:e.type,frag:t,part:n,chunkMeta:r,parent:t.type,data:c};if(this.hls.trigger(m.BUFFER_APPENDING,y),e.dropped&&e.independent&&!n){if(i)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!Tr.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const n=t.currentTime,r=Tr.bufferInfo(t,n,0),i=e.duration,s=Math.min(this.config.maxFragLookUpTolerance*2,i*.25),u=Math.max(Math.min(e.start-s,r.end-s),n+s);e.start-u>s&&this.flushMainBuffer(u,e.start)}getFwdBufferInfo(e,t){var n;const r=this.getLoadPosition();if(!O(r))return null;const s=this.lastCurrentTime>r||(n=this.media)!=null&&n.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(e,r,t,s)}getFwdBufferInfoAtPos(e,t,n,r){const i=Tr.bufferInfo(e,t,r);if(i.len===0&&i.nextStart!==void 0){const s=this.fragmentTracker.getBufferedFrag(t,n);if(s&&(i.nextStart<=s.end||s.gap)){const u=Math.max(Math.min(i.nextStart,s.end)-t,r);return Tr.bufferInfo(e,t,u)}}return i}getMaxBufferLength(e){const{config:t}=this;let n;return e?n=Math.max(8*t.maxBufferSize/e,t.maxBufferLength):n=t.maxBufferLength,Math.min(n,t.maxMaxBufferLength)}reduceMaxBufferLength(e,t){const n=this.config,r=Math.max(Math.min(e-t,n.maxBufferLength),t),i=Math.max(e-t*3,n.maxMaxBufferLength/2,r);return i>=r?(n.maxMaxBufferLength=i,this.warn(`Reduce max buffer length to ${i}s`),!0):!1}getAppendedFrag(e,t=re.MAIN){var n;const r=(n=this.fragmentTracker)==null?void 0:n.getAppendedFrag(e,t);return r&&"fragment"in r?r.fragment:r}getNextFragment(e,t){const n=t.fragments,r=n.length;if(!r)return null;const{config:i}=this,s=n[0].start,u=i.lowLatencyMode&&!!t.partList;let f=null;if(t.live){const E=i.initialLiveManifestSize;if(r<E)return this.warn(`Not enough fragments to start playback (have: ${r}, need: ${E})`),null;if(!t.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||e<s){var c;u&&!this.loadingParts&&(this.log("LL-Part loading ON for initial live fragment"),this.loadingParts=!0),f=this.getInitialLiveFragment(t,n);const U=this.hls.startPosition,V=this.hls.liveSyncPosition,ee=f?(U!==-1&&U>=s?U:V)||f.start:e;this.log(`Setting startPosition to ${ee} to match start frag at live edge. mainStart: ${U} liveSyncPosition: ${V} frag.start: ${(c=f)==null?void 0:c.start}`),this.startPosition=this.nextLoadPosition=ee}}else e<=s&&(f=n[0]);if(!f){const E=this.loadingParts?t.partEnd:t.fragmentEnd;f=this.getFragmentAtPosition(e,E,t)}let y=this.filterReplacedPrimary(f,t);if(!y&&f){const E=f.sn-t.startSN;y=this.filterReplacedPrimary(n[E+1]||null,t)}return this.mapToInitFragWhenRequired(y)}isLoopLoading(e,t){const n=this.fragmentTracker.getState(e);return(n===er.OK||n===er.PARTIAL&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,n,r,i){let s=null;if(e.gap&&(s=this.getNextFragment(this.nextLoadPosition,t),s&&!s.gap&&n.nextStart)){const u=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,n.nextStart,r,0);if(u!==null&&n.len+u.len>=i){const f=s.sn;return this.loopSn!==f&&(this.log(`buffer full after gaps in "${r}" playlist starting at sn: ${f}`),this.loopSn=f),null}}return this.loopSn=void 0,s}get primaryPrefetch(){if(ka(this.hls.config)){var e,t;if((e=this.hls.interstitialsManager)==null||(t=e.playingItem)==null?void 0:t.event)return!0}return!1}filterReplacedPrimary(e,t){if(!e)return e;if(ka(this.hls.config)&&e.type!==re.SUBTITLE){const n=this.hls.interstitialsManager,r=n==null?void 0:n.bufferingItem;if(r){const s=r.event;if(s){if(s.appendInPlace||Math.abs(e.start-r.start)>1||r.start===0)return null}else if(e.end<=r.start&&(t==null?void 0:t.live)===!1||e.start>r.end&&r.nextEvent&&(r.nextEvent.appendInPlace||e.start-r.end>1))return null}const i=n==null?void 0:n.playerQueue;if(i)for(let s=i.length;s--;){const u=i[s].interstitial;if(u.appendInPlace&&e.start>=u.startTime&&e.end<=u.resumeTime)return null}}return e}mapToInitFragWhenRequired(e){return e!=null&&e.initSegment&&!(e!=null&&e.initSegment.data)&&!this.bitrateTest?e.initSegment:e}getNextPart(e,t,n){let r=-1,i=!1,s=!0;for(let u=0,f=e.length;u<f;u++){const c=e[u];if(s=s&&!c.independent,r>-1&&n<c.start)break;const y=c.loaded;y?r=-1:(i||c.independent||s)&&c.fragment===t&&(r=u),i=y}return r}loadedEndOfParts(e,t){const n=e[e.length-1];return n&&t>n.start&&n.loaded}getInitialLiveFragment(e,t){const n=this.fragPrevious;let r=null;if(n){if(e.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${n.programDateTime}`),r=dr(t,n.endProgramDateTime,this.config.maxFragLookUpTolerance)),!r){const i=n.sn+1;if(i>=e.startSN&&i<=e.endSN){const s=t[i-e.startSN];n.cc===s.cc&&(r=s,this.log(`Live playlist, switching playlist, load frag with next SN: ${r.sn}`))}r||(r=Ir(t,n.cc),r&&this.log(`Live playlist, switching playlist, load frag with same CC: ${r.sn}`))}}else{const i=this.hls.liveSyncPosition;i!==null&&(r=this.getFragmentAtPosition(i,this.bitrateTest?e.fragmentEnd:e.edge,e))}return r}getFragmentAtPosition(e,t,n){const{config:r}=this;let{fragPrevious:i}=this,{fragments:s,endSN:u}=n;const{fragmentHint:f}=n,{maxFragLookUpTolerance:c}=r,y=n.partList,E=!!(this.loadingParts&&y!=null&&y.length&&f);E&&f&&!this.bitrateTest&&y[y.length-1].fragment.sn===f.sn&&(s=s.concat(f),u=f.sn);let U;if(e<t){var V;const De=e<this.lastCurrentTime||e>t-c||(V=this.media)!=null&&V.paused||!this.startFragRequested?0:c;U=En(i,s,e,De)}else U=s[s.length-1];if(U){const ee=U.sn-n.startSN,De=this.fragmentTracker.getState(U);if((De===er.OK||De===er.PARTIAL&&U.gap)&&(i=U),i&&U.sn===i.sn&&(!E||y[0].fragment.sn>U.sn||!n.live&&!E)&&i&&U.level===i.level){const Ge=s[ee+1];U.sn<u&&this.fragmentTracker.getState(Ge)!==er.OK?U=Ge:U=null}}return U}alignPlaylists(e,t,n){const r=e.fragments.length;if(!r)return this.warn("No fragments in live playlist"),0;const i=e.fragmentStart,s=!t,u=e.alignedSliding&&O(i);if(s||!u&&!i){Si(n,e);const f=e.fragmentStart;return this.log(`Live playlist sliding: ${f.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} fragments: ${r}`),f}return i}waitForCdnTuneIn(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,e.partTarget*3)}setStartPosition(e,t){let n=this.startPosition;n<t&&(n=-1);const r=this.timelineOffset;if(n===-1){const i=this.startTimeOffset!==null,s=i?this.startTimeOffset:e.startTimeOffset;s!==null&&O(s)?(n=t+s,s<0&&(n+=e.edge),n=Math.min(Math.max(t,n),t+e.totalduration),this.log(`Setting startPosition to ${n} for start time offset ${s} found in ${i?"multivariant":"media"} playlist`),this.startPosition=n):e.live?(n=this.hls.liveSyncPosition||t,this.log(`Setting startPosition to -1 to start at live edge ${n}`),this.startPosition=-1):(this.log("setting startPosition to 0 by default"),this.startPosition=n=0),this.lastCurrentTime=n+r}this.nextLoadPosition=n+r}getLoadPosition(){var e;const{media:t}=this;let n=0;return(e=this.hls)!=null&&e.hasEnoughToStart&&t?n=t.currentTime:this.nextLoadPosition>=0&&(n=this.nextLoadPosition),n}handleFragLoadAborted(e,t){this.transmuxer&&e.type===this.playlistType&&me(e)&&e.stats.aborted&&(this.warn(`Fragment ${e.sn}${t?" part "+t.index:""} of ${this.playlistLabel()} ${e.level} was aborted`),this.resetFragmentLoading(e))}resetFragmentLoading(e){(!this.fragCurrent||!this.fragContextChanged(e)&&this.state!==gn.FRAG_LOADING_WAITING_RETRY)&&(this.state=gn.IDLE)}onFragmentOrKeyLoadError(e,t){if(t.chunkMeta&&!t.frag){const ee=this.getCurrentContext(t.chunkMeta);ee&&(t.frag=ee.frag)}const n=t.frag;if(!n||n.type!==e||!this.levels)return;if(this.fragContextChanged(n)){var r;this.warn(`Frag load error must match current frag to retry ${n.url} > ${(r=this.fragCurrent)==null?void 0:r.url}`);return}const i=t.details===A.FRAG_GAP;i&&this.fragmentTracker.fragBuffered(n,!0);const s=t.errorAction,{action:u,flags:f,retryCount:c=0,retryConfig:y}=s||{},E=!!s&&!!y,U=E&&u===zn.RetryRequest,V=E&&!s.resolved&&f===dt.MoveAllAlternatesMatchingHost;if(!U&&V&&me(n)&&!n.endList)this.resetFragmentErrors(e),this.treatAsGap(n),s.resolved=!0;else if((U||V)&&c<y.maxNumRetry){this.resetStartWhenNotLoaded(this.levelLastLoaded);const ee=rr(y,c);this.warn(`Fragment ${n.sn} of ${e} ${n.level} errored with ${t.details}, retrying loading ${c+1}/${y.maxNumRetry} in ${ee}ms`),s.resolved=!0,this.retryDate=self.performance.now()+ee,this.state=gn.FRAG_LOADING_WAITING_RETRY}else if(y&&s)if(this.resetFragmentErrors(e),c<y.maxNumRetry)!i&&u!==zn.RemoveAlternatePermanently&&(s.resolved=!0);else{this.warn(`${t.details} reached or exceeded max retry (${c})`);return}else u===zn.SendAlternateToPenaltyBox?this.state=gn.WAITING_LEVEL:this.state=gn.ERROR;this.tickImmediate()}reduceLengthAndFlushBuffer(e){if(this.state===gn.PARSING||this.state===gn.PARSED){const t=e.frag,n=e.parent,r=this.getFwdBufferInfo(this.mediaBuffer,n),i=r&&r.len>.5;i&&this.reduceMaxBufferLength(r.len,(t==null?void 0:t.duration)||10);const s=!i;return s&&this.warn(`Buffer full error while media.currentTime is not buffered, flush ${n} buffer`),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),s}return!1}resetFragmentErrors(e){e===re.AUDIO&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==gn.STOPPED&&(this.state=gn.IDLE)}afterBufferFlushed(e,t,n){if(!e)return;const r=Tr.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,r,n),this.state===gn.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==gn.STOPPED&&(this.state=gn.IDLE)}resetStartWhenNotLoaded(e){if(!this.hls.hasEnoughToStart){this.startFragRequested=!1;const t=e?e.details:null;t!=null&&t.live?(this.log("resetting startPosition for live start"),this.startPosition=-1,this.setStartPosition(t,t.fragmentStart),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(e){this.warn(`The loading context changed while buffering fragment ${e.sn} of ${this.playlistLabel()} ${e.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState()}removeUnbufferedFrags(e=0){this.fragmentTracker.removeFragmentsInRange(e,1/0,this.playlistType,!1,!0)}updateLevelTiming(e,t,n,r){const i=n.details;if(!i){this.warn("level.details undefined");return}if(!Object.keys(e.elementaryStreams).reduce((f,c)=>{const y=e.elementaryStreams[c];if(y){const E=y.endPTS-y.startPTS;if(E<=0)return this.warn(`Could not parse fragment ${e.sn} ${c} duration reliably (${E})`),f||!1;const U=r?0:ys(i,e,y.startPTS,y.endPTS,y.startDTS,y.endDTS);return this.hls.trigger(m.LEVEL_PTS_UPDATED,{details:i,level:n,drift:U,type:c,frag:e,start:y.startPTS,end:y.endPTS}),!0}return f},!1)){var u;if(n.fragmentError===0&&this.treatAsGap(e,n),((u=this.transmuxer)==null?void 0:u.error)===null){const f=new Error(`Found no media in fragment ${e.sn} of ${this.playlistLabel()} ${e.level} resetting transmuxer to fallback to playlist timing`);if(this.warn(f.message),this.hls.trigger(m.ERROR,{type:ce.MEDIA_ERROR,details:A.FRAG_PARSING_ERROR,fatal:!1,error:f,frag:e,reason:`Found no media in msn ${e.sn} of ${this.playlistLabel()} "${n.url}"`}),!this.hls)return;this.resetTransmuxer()}}this.state=gn.PARSED,this.log(`Parsed ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)})`),this.hls.trigger(m.FRAG_PARSED,{frag:e,part:t})}playlistLabel(){return this.playlistType===re.MAIN?"level":"track"}fragInfo(e,t=!0,n){var r,i;return`${this.playlistLabel()} ${e.level} (${n?"part":"frag"}:[${((r=t&&!n?e.startPTS:(n||e).start)!=null?r:NaN).toFixed(3)}-${((i=t&&!n?e.endPTS:(n||e).end)!=null?i:NaN).toFixed(3)}]${n&&e.type==="main"?"INDEPENDENT="+(n.independent?"YES":"NO"):""}`}treatAsGap(e,t){t&&t.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)}resetTransmuxer(){var e;(e=this.transmuxer)==null||e.reset()}recoverWorkerError(e){e.event==="demuxerWorker"&&(this.fragmentTracker.removeAllFragments(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState())}set state(e){const t=this._state;t!==e&&(this._state=e,this.log(`${t}->${e}`))}get state(){return this._state}}function ka(a){return!!a.interstitialsController&&a.enableInterstitialPlayback!==!1}class Aa{constructor(){this.chunks=[],this.dataLength=0}push(e){this.chunks.push(e),this.dataLength+=e.length}flush(){const{chunks:e,dataLength:t}=this;let n;if(e.length)e.length===1?n=e[0]:n=ba(e,t);else return new Uint8Array(0);return this.reset(),n}reset(){this.chunks.length=0,this.dataLength=0}}function ba(a,e){const t=new Uint8Array(e);let n=0;for(let r=0;r<a.length;r++){const i=a[r];t.set(i,n),n+=i.length}return t}var na={exports:{}},Ua;function io(){return Ua||(Ua=1,function(a){var e=Object.prototype.hasOwnProperty,t="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(t=!1));function r(f,c,y){this.fn=f,this.context=c,this.once=y||!1}function i(f,c,y,E,U){if(typeof y!="function")throw new TypeError("The listener must be a function");var V=new r(y,E||f,U),ee=t?t+c:c;return f._events[ee]?f._events[ee].fn?f._events[ee]=[f._events[ee],V]:f._events[ee].push(V):(f._events[ee]=V,f._eventsCount++),f}function s(f,c){--f._eventsCount===0?f._events=new n:delete f._events[c]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var c=[],y,E;if(this._eventsCount===0)return c;for(E in y=this._events)e.call(y,E)&&c.push(t?E.slice(1):E);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(y)):c},u.prototype.listeners=function(c){var y=t?t+c:c,E=this._events[y];if(!E)return[];if(E.fn)return[E.fn];for(var U=0,V=E.length,ee=new Array(V);U<V;U++)ee[U]=E[U].fn;return ee},u.prototype.listenerCount=function(c){var y=t?t+c:c,E=this._events[y];return E?E.fn?1:E.length:0},u.prototype.emit=function(c,y,E,U,V,ee){var De=t?t+c:c;if(!this._events[De])return!1;var Ae=this._events[De],Ge=arguments.length,ft,lt;if(Ae.fn){switch(Ae.once&&this.removeListener(c,Ae.fn,void 0,!0),Ge){case 1:return Ae.fn.call(Ae.context),!0;case 2:return Ae.fn.call(Ae.context,y),!0;case 3:return Ae.fn.call(Ae.context,y,E),!0;case 4:return Ae.fn.call(Ae.context,y,E,U),!0;case 5:return Ae.fn.call(Ae.context,y,E,U,V),!0;case 6:return Ae.fn.call(Ae.context,y,E,U,V,ee),!0}for(lt=1,ft=new Array(Ge-1);lt<Ge;lt++)ft[lt-1]=arguments[lt];Ae.fn.apply(Ae.context,ft)}else{var Pt=Ae.length,Nt;for(lt=0;lt<Pt;lt++)switch(Ae[lt].once&&this.removeListener(c,Ae[lt].fn,void 0,!0),Ge){case 1:Ae[lt].fn.call(Ae[lt].context);break;case 2:Ae[lt].fn.call(Ae[lt].context,y);break;case 3:Ae[lt].fn.call(Ae[lt].context,y,E);break;case 4:Ae[lt].fn.call(Ae[lt].context,y,E,U);break;default:if(!ft)for(Nt=1,ft=new Array(Ge-1);Nt<Ge;Nt++)ft[Nt-1]=arguments[Nt];Ae[lt].fn.apply(Ae[lt].context,ft)}}return!0},u.prototype.on=function(c,y,E){return i(this,c,y,E,!1)},u.prototype.once=function(c,y,E){return i(this,c,y,E,!0)},u.prototype.removeListener=function(c,y,E,U){var V=t?t+c:c;if(!this._events[V])return this;if(!y)return s(this,V),this;var ee=this._events[V];if(ee.fn)ee.fn===y&&(!U||ee.once)&&(!E||ee.context===E)&&s(this,V);else{for(var De=0,Ae=[],Ge=ee.length;De<Ge;De++)(ee[De].fn!==y||U&&!ee[De].once||E&&ee[De].context!==E)&&Ae.push(ee[De]);Ae.length?this._events[V]=Ae.length===1?Ae[0]:Ae:s(this,V)}return this},u.prototype.removeAllListeners=function(c){var y;return c?(y=t?t+c:c,this._events[y]&&s(this,y)):(this._events=new n,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}(na)),na.exports}var Po=io(),Ka=W(Po);const _a="1.6.1",xa={};function so(){return typeof __HLS_WORKER_BUNDLE__=="function"}function ko(){const a=xa[_a];if(a)return a.clientCount++,a;const e=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),t=self.URL.createObjectURL(e),r={worker:new self.Worker(t),objectURL:t,clientCount:1};return xa[_a]=r,r}function ao(a){const e=xa[a];if(e)return e.clientCount++,e;const t=new self.URL(a,self.location.href).href,r={worker:new self.Worker(t),scriptURL:t,clientCount:1};return xa[a]=r,r}function Xo(a){const e=xa[a||_a];if(e&&e.clientCount--===1){const{worker:n,objectURL:r}=e;delete xa[a||_a],r&&self.URL.revokeObjectURL(r),n.terminate()}}function Ha(a,e){return e+10<=a.length&&a[e]===51&&a[e+1]===68&&a[e+2]===73&&a[e+3]<255&&a[e+4]<255&&a[e+6]<128&&a[e+7]<128&&a[e+8]<128&&a[e+9]<128}function Xa(a,e){return e+10<=a.length&&a[e]===73&&a[e+1]===68&&a[e+2]===51&&a[e+3]<255&&a[e+4]<255&&a[e+6]<128&&a[e+7]<128&&a[e+8]<128&&a[e+9]<128}function Ma(a,e){let t=0;return t=(a[e]&127)<<21,t|=(a[e+1]&127)<<14,t|=(a[e+2]&127)<<7,t|=a[e+3]&127,t}function Na(a,e){const t=e;let n=0;for(;Xa(a,e);){n+=10;const r=Ma(a,e+6);n+=r,Ha(a,e+10)&&(n+=10),e+=n}if(n>0)return a.subarray(t,t+n)}function Da(a,e,t,n){const r=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],i=e[t+2],s=i>>2&15;if(s>12){const V=new Error(`invalid ADTS sampling index:${s}`);a.emit(m.ERROR,m.ERROR,{type:ce.MEDIA_ERROR,details:A.FRAG_PARSING_ERROR,fatal:!0,error:V,reason:V.message});return}const u=(i>>6&3)+1,f=e[t+3]>>6&3|(i&1)<<2,c="mp4a.40."+u,y=r[s];let E=s;(u===5||u===29)&&(E-=3);const U=[u<<3|(E&14)>>1,(E&1)<<7|f<<3];return j.log(`manifest codec:${n}, parsed codec:${c}, channels:${f}, rate:${y} (ADTS object type:${u} sampling index:${s})`),{config:U,samplerate:y,channelCount:f,codec:c,parsedCodec:c,manifestCodec:n}}function Ba(a,e){return a[e]===255&&(a[e+1]&246)===240}function oo(a,e){return a[e+1]&1?7:9}function lo(a,e){return(a[e+3]&3)<<11|a[e+4]<<3|(a[e+5]&224)>>>5}function uo(a,e){return e+5<a.length}function Qa(a,e){return e+1<a.length&&Ba(a,e)}function co(a,e){return uo(a,e)&&Ba(a,e)&&lo(a,e)<=a.length-e}function Mo(a,e){if(Qa(a,e)){const t=oo(a,e);if(e+t>=a.length)return!1;const n=lo(a,e);if(n<=t)return!1;const r=e+n;return r===a.length||Qa(a,r)}return!1}function fo(a,e,t,n,r){if(!a.samplerate){const i=Da(e,t,n,r);if(!i)return;g(a,i)}}function ho(a){return 1024*9e4/a}function No(a,e){const t=oo(a,e);if(e+t<=a.length){const n=lo(a,e)-t;if(n>0)return{headerLength:t,frameLength:n}}}function po(a,e,t,n,r){const i=ho(a.samplerate),s=n+r*i,u=No(e,t);let f;if(u){const{frameLength:E,headerLength:U}=u,V=U+E,ee=Math.max(0,t+V-e.length);ee?(f=new Uint8Array(V-U),f.set(e.subarray(t+U,e.length),0)):f=e.subarray(t+U,t+V);const De={unit:f,pts:s};return ee||a.samples.push(De),{sample:De,length:V,missing:ee}}const c=e.length-t;return f=new Uint8Array(c),f.set(e.subarray(t,e.length),0),{sample:{unit:f,pts:s},length:c,missing:-1}}function Za(a,e){return Xa(a,e)&&Ma(a,e+6)+10<=a.length-e}function mo(a){if(a.size<2)return;const e=ge(a.data,!0),t=new Uint8Array(a.data.subarray(e.length+1));return{key:a.type,info:e,data:t.buffer}}function go(a){if(a.size<2)return;if(a.type==="TXXX"){let t=1;const n=ge(a.data.subarray(t),!0);t+=n.length+1;const r=ge(a.data.subarray(t));return{key:a.type,info:n,data:r}}const e=ge(a.data.subarray(1));return{key:a.type,info:"",data:e}}function vo(a){if(a.type==="WXXX"){if(a.size<2)return;let t=1;const n=ge(a.data.subarray(t),!0);t+=n.length+1;const r=ge(a.data.subarray(t));return{key:a.type,info:n,data:r}}const e=ge(a.data);return{key:a.type,info:"",data:e}}function yo(a){return btoa(String.fromCharCode(...a))}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 r=Math.floor(a*t);return(r%2===0?r:r+1)/t}else return Math.round(a*t)/t}function _o(a,e){const t=new URL(a),n=new URL(e);if(t.origin!==n.origin)return a;const r=t.pathname.split("/").slice(1),i=n.pathname.split("/").slice(1,-1);for(;r[0]===i[0];)r.shift(),i.shift();for(;i.length;)i.shift(),r.unshift("..");return r.join("/")}function xo(){try{return crypto.randomUUID()}catch(a){try{const e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.slice(t.lastIndexOf("/")+1)}catch(e){let t=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,r=>{const i=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(r=="x"?i:i&3|8).toString(16)})}}}function Bo(a){return a instanceof ArrayBuffer?a:a.byteOffset==0&&a.byteLength==a.buffer.byteLength?a.buffer:new Uint8Array(a).buffer}function Ls(a,e=0,t=1/0){return Ja(a,e,t,Uint8Array)}function Ja(a,e,t,n){const r=Eo(a);let i=1;"BYTES_PER_ELEMENT"in n&&(i=n.BYTES_PER_ELEMENT);const s=ae(a)?a.byteOffset:0,u=(s+a.byteLength)/i,f=(s+e)/i,c=Math.floor(Math.max(0,Math.min(f,u))),y=Math.floor(Math.min(c+Math.max(t,0),u));return new n(r,c,y-c)}function Eo(a){return a instanceof ArrayBuffer?a:a.buffer}function ae(a){return a&&a.buffer instanceof ArrayBuffer&&a.byteLength!==void 0&&a.byteOffset!==void 0}function ve(a){const e={key:a.type,description:"",data:"",mimeType:null,pictureType:null},t=3;if(a.size<2)return;if(a.data[0]!==t){console.log("Ignore frame with unrecognized character encoding");return}const n=a.data.subarray(1).indexOf(0);if(n===-1)return;const r=ge(Ls(a.data,1,n)),i=a.data[2+n],s=a.data.subarray(3+n).indexOf(0);if(s===-1)return;const u=ge(Ls(a.data,3+n,s));let f;return r==="-->"?f=ge(Ls(a.data,4+n+s)):f=Bo(a.data.subarray(4+n+s)),e.mimeType=r,e.pictureType=i,e.description=u,e.data=f,e}function $e(a){return a.type==="PRIV"?mo(a):a.type[0]==="W"?vo(a):a.type==="APIC"?ve(a):go(a)}function We(a){const e=String.fromCharCode(a[0],a[1],a[2],a[3]),t=Ma(a,4),n=10;return{type:e,size:t,data:a.subarray(n,n+t)}}const st=10,ot=10;function Et(a){let e=0;const t=[];for(;Xa(a,e);){const n=Ma(a,e+6);a[e+5]>>6&1&&(e+=st),e+=st;const r=e+n;for(;e+ot<r;){const i=We(a.subarray(e)),s=$e(i);s&&t.push(s),e+=i.size+st}Ha(a,e)&&(e+=st)}return t}function St(a){return a&&a.key==="PRIV"&&a.info==="com.apple.streaming.transportStreamTimestamp"}function bt(a){if(a.data.byteLength===8){const e=new Uint8Array(a.data),t=e[3]&1;let n=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return n/=45,t&&(n+=4772185884e-2),Math.round(n)}}function Mt(a){const e=Et(a);for(let t=0;t<e.length;t++){const n=e[t];if(St(n))return bt(n)}}let Se=function(a){return a.audioId3="org.id3",a.dateRange="com.apple.quicktime.HLS",a.emsg="https://aomedia.org/emsg/ID3",a.misbklv="urn:misb:KLV:bin:1910.1",a}({});function kt(a="",e=9e4){return{type:a,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class pn{constructor(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}resetInitSegment(e,t,n,r){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}}resetTimeStamp(e){this.initPTS=e,this.resetContiguity()}resetContiguity(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0}canParse(e,t){return!1}appendFrame(e,t,n){}demux(e,t){this.cachedData&&(e=Xe(this.cachedData,e),this.cachedData=null);let n=Na(e,0),r=n?n.length:0,i;const s=this._audioTrack,u=this._id3Track,f=n?Mt(n):void 0,c=e.length;for((this.basePTS===null||this.frameIndex===0&&O(f))&&(this.basePTS=un(f,t,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),n&&n.length>0&&u.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:Se.audioId3,duration:Number.POSITIVE_INFINITY});r<c;){if(this.canParse(e,r)){const y=this.appendFrame(s,e,r);y?(this.frameIndex++,this.lastPTS=y.sample.pts,r+=y.length,i=r):r=c}else Za(e,r)?(n=Na(e,r),u.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:Se.audioId3,duration:Number.POSITIVE_INFINITY}),r+=n.length,i=r):r++;if(r===c&&i!==c){const y=e.slice(i);this.cachedData?this.cachedData=Xe(this.cachedData,y):this.cachedData=y}}return{audioTrack:s,videoTrack:kt(),id3Track:u,textTrack:kt()}}demuxSampleAes(e,t,n){return Promise.reject(new Error(`[${this}] This demuxer does not support Sample-AES decryption`))}flush(e){const t=this.cachedData;return t&&(this.cachedData=null,this.demux(t,0)),{audioTrack:this._audioTrack,videoTrack:kt(),id3Track:this._id3Track,textTrack:kt()}}destroy(){this.cachedData=null,this._audioTrack=this._id3Track=void 0}}const un=(a,e,t)=>{if(O(a))return a*90;const n=t?t.baseTime*9e4/t.timescale:0;return e*9e4+n};let cn=null;const Fn=[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],kn=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],$n=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Mn=[0,1,1,4];function Vn(a,e,t,n,r){if(t+24>e.length)return;const i=wr(e,t);if(i&&t+i.frameLength<=e.length){const s=i.samplesPerFrame*9e4/i.sampleRate,u=n+r*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 wr(a,e){const t=a[e+1]>>3&3,n=a[e+1]>>1&3,r=a[e+2]>>4&15,i=a[e+2]>>2&3;if(t!==1&&r!==0&&r!==15&&i!==3){const s=a[e+2]>>1&1,u=a[e+3]>>6,f=t===3?3-n:n===3?3:4,c=Fn[f*14+r-1]*1e3,E=kn[(t===3?0:t===2?1:2)*3+i],U=u===3?1:2,V=$n[t][n],ee=Mn[n],De=V*8*ee,Ae=Math.floor(V*c/E+s)*ee;if(cn===null){const lt=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);cn=lt?parseInt(lt[1]):0}return!!cn&&cn<=87&&n===2&&c>=224e3&&u===0&&(a[e+3]=a[e+3]|128),{sampleRate:E,channelCount:U,frameLength:Ae,samplesPerFrame:De}}}function Sr(a,e){return a[e]===255&&(a[e+1]&224)===224&&(a[e+1]&6)!==0}function vr(a,e){return e+1<a.length&&Sr(a,e)}function Mr(a,e){return Sr(a,e)&&4<=a.length-e}function Kr(a,e){if(e+1<a.length&&Sr(a,e)){const n=wr(a,e);let r=4;n!=null&&n.frameLength&&(r=n.frameLength);const i=e+r;return i===a.length||vr(a,i)}return!1}class ir extends pn{constructor(e,t){super(),this.observer=void 0,this.config=void 0,this.observer=e,this.config=t}resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}static probe(e,t){if(!e)return!1;const n=Na(e,0);let r=(n==null?void 0:n.length)||0;if(Kr(e,r))return!1;for(let i=e.length;r<i;r++)if(Mo(e,r))return t.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return co(e,t)}appendFrame(e,t,n){fo(e,this.observer,t,n,e.manifestCodec);const r=po(e,t,n,this.basePTS,this.frameIndex);if(r&&r.missing===0)return r}}const br=(a,e)=>{let t=0,n=5;e+=n;const r=new Uint32Array(1),i=new Uint32Array(1),s=new Uint8Array(1);for(;n>0;){s[0]=a[e];const u=Math.min(n,8),f=8-u;i[0]=4278190080>>>24+f<<f,r[0]=(s[0]&i[0])>>f,t=t?t<<u|r[0]:r[0],e+=1,n-=u}return t};class tr extends pn{constructor(e){super(),this.observer=void 0,this.observer=e}resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}canParse(e,t){return t+64<e.length}appendFrame(e,t,n){const r=Kn(e,t,n,this.basePTS,this.frameIndex);if(r!==-1)return{sample:e.samples[e.samples.length-1],length:r,missing:0}}static probe(e){if(!e)return!1;const t=Na(e,0);if(!t)return!1;const n=t.length;return e[n]===11&&e[n+1]===119&&Mt(t)!==void 0&&br(e,n)<16}}function Kn(a,e,t,n,r){if(t+8>e.length||e[t]!==11||e[t+1]!==119)return-1;const i=e[t+4]>>6;if(i>=3)return-1;const u=[48e3,44100,32e3][i],f=e[t+4]&63,y=[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+y>e.length)return-1;const E=e[t+6]>>5;let U=0;E===2?U+=2:(E&1&&E!==1&&(U+=2),E&4&&(U+=2));const V=(e[t+6]<<8|e[t+7])>>12-U&1,De=[2,1,2,3,3,4,4,5][E]+V,Ae=e[t+5]>>3,Ge=e[t+5]&7,ft=new Uint8Array([i<<6|Ae<<1|Ge>>2,(Ge&3)<<6|E<<3|V<<2|f>>4,f<<4&224]),lt=1536/u*9e4,Pt=n+r*lt,Nt=e.subarray(t,t+y);return a.config=ft,a.channelCount=De,a.samplerate=u,a.samples.push({unit:Nt,pts:Pt}),y}class hr extends pn{resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const t=Na(e,0);let n=(t==null?void 0:t.length)||0;if(t&&e[n]===11&&e[n+1]===119&&Mt(t)!==void 0&&br(e,n)<=16)return!1;for(let r=e.length;n<r;n++)if(Kr(e,n))return j.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return Mr(e,t)}appendFrame(e,t,n){if(this.basePTS!==null)return Vn(e,t,n,this.basePTS,this.frameIndex)}}const Nr=/\/emsg[-/]ID3/i;class ti{constructor(e,t){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=t}resetTimeStamp(){}resetInitSegment(e,t,n,r){const i=this.videoTrack=kt("video",1),s=this.audioTrack=kt("audio",1),u=this.txtTrack=kt("text",1);if(this.id3Track=kt("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const f=Q(e);if(f.video){const{id:c,timescale:y,codec:E,supplemental:U}=f.video;i.id=c,i.timescale=u.timescale=y,i.codec=E,i.supplemental=U}if(f.audio){const{id:c,timescale:y,codec:E}=f.audio;s.id=c,s.timescale=y,s.codec=E}u.id=at.text,i.sampleDuration=0,i.duration=s.duration=r}resetContiguity(){this.remainderData=null}static probe(e){return he(e)}demux(e,t){this.timeOffset=t;let n=e;const r=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=Xe(this.remainderData,e));const u=Je(n);this.remainderData=u.remainder,r.samples=u.valid||new Uint8Array}else r.samples=n;const s=this.extractID3Track(r,t);return i.samples=Ve(t,r),{videoTrack:r,audioTrack:this.audioTrack,id3Track:s,textTrack:this.txtTrack}}flush(){const e=this.timeOffset,t=this.videoTrack,n=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;const r=this.extractID3Track(t,this.timeOffset);return n.samples=Ve(e,t),{videoTrack:t,audioTrack:kt(),id3Track:r,textTrack:kt()}}extractID3Track(e,t){const n=this.id3Track;if(e.samples.length){const r=pe(e.samples,["emsg"]);r&&r.forEach(i=>{const s=Zt(i);if(Nr.test(s.schemeIdUri)){const u=ne(s,t);let f=s.eventDuration===4294967295?Number.POSITIVE_INFINITY:s.eventDuration/s.timeScale;f<=.001&&(f=Number.POSITIVE_INFINITY);const c=s.payload;n.samples.push({data:c,len:c.byteLength,dts:u,pts:u,type:Se.emsg,duration:f})}else if(this.config.enableEmsgKLVMetadata&&s.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const u=ne(s,t);n.samples.push({data:s.payload,len:s.payload.byteLength,dts:u,pts:u,type:Se.misbklv,duration:Number.POSITIVE_INFINITY})}})}return n}demuxSampleAes(e,t,n){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){this.config=null,this.remainderData=null,this.videoTrack=this.audioTrack=this.id3Track=this.txtTrack=void 0}}function ne(a,e){return O(a.presentationTime)?a.presentationTime/a.timeScale:e+a.presentationTimeDelta/a.timeScale}class l{constructor(e,t,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new Ii(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer,fr.cbc)}decryptAacSample(e,t,n){const r=e[t].unit;if(r.length<=16)return;const i=r.subarray(16,r.length-r.length%16),s=i.buffer.slice(i.byteOffset,i.byteOffset+i.length);this.decryptBuffer(s).then(u=>{const f=new Uint8Array(u);r.set(f,16),this.decrypter.isSync()||this.decryptAacSamples(e,t+1,n)})}decryptAacSamples(e,t,n){for(;;t++){if(t>=e.length){n();return}if(!(e[t].unit.length<32)&&(this.decryptAacSample(e,t,n),!this.decrypter.isSync()))return}}getAvcEncryptedData(e){const t=Math.floor((e.length-48)/160)*16+16,n=new Int8Array(t);let r=0;for(let i=32;i<e.length-16;i+=160,r+=16)n.set(e.subarray(i,i+16),r);return n}getAvcDecryptedUnit(e,t){const n=new Uint8Array(t);let r=0;for(let i=32;i<e.length-16;i+=160,r+=16)e.set(n.subarray(r,r+16),i);return e}decryptAvcSample(e,t,n,r,i){const s=Bt(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,n+1,r)})}decryptAvcSamples(e,t,n,r){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,n=0){if(t>=e.length){r();return}const i=e[t].units;for(;!(n>=i.length);n++){const s=i[n];if(!(s.data.length<=48||s.type!==1&&s.type!==5)&&(this.decryptAvcSample(e,t,n,r,s),!this.decrypter.isSync()))return}}}}class d{constructor(){this.VideoSample=null}createVideoSample(e,t,n){return{key:e,frame:!1,pts:t,dts:n,units:[],length:0}}getLastNalUnit(e){var t;let n=this.VideoSample,r;if((!n||n.units.length===0)&&(n=e[e.length-1]),(t=n)!=null&&t.units){const i=n.units;r=i[i.length-1]}return r}pushAccessUnit(e,t){if(e.units.length&&e.frame){if(e.pts===void 0){const n=t.samples,r=n.length;if(r){const i=n[r-1];e.pts=i.pts,e.dts=i.dts}else{t.dropped++;return}}t.samples.push(e)}}parseNALu(e,t,n){const r=t.byteLength;let i=e.naluState||0;const s=i,u=[];let f=0,c,y,E,U=-1,V=0;for(i===-1&&(U=0,V=this.getNALuType(t,0),i=0,f=1);f<r;){if(c=t[f++],!i){i=c?0:1;continue}if(i===1){i=c?0:2;continue}if(!c)i=3;else if(c===1){if(y=f-i-1,U>=0){const ee={data:t.subarray(U,y),type:V};u.push(ee)}else{const ee=this.getLastNalUnit(e.samples);ee&&(s&&f<=4-s&&ee.state&&(ee.data=ee.data.subarray(0,ee.data.byteLength-s)),y>0&&(ee.data=Xe(ee.data,t.subarray(0,y)),ee.state=0))}f<r?(E=this.getNALuType(t,f),U=f,V=E,i=0):i=-1}else i=0}if(U>=0&&i>=0){const ee={data:t.subarray(U,r),type:V,state:i};u.push(ee)}if(u.length===0){const ee=this.getLastNalUnit(e.samples);ee&&(ee.data=Xe(ee.data,t))}return e.naluState=i,u}}class h{constructor(e){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}loadWord(){const e=this.data,t=this.bytesAvailable,n=e.byteLength-t,r=new Uint8Array(4),i=Math.min(4,t);if(i===0)throw new Error("no bytes available");r.set(e.subarray(n,n+i)),this.word=new DataView(r.buffer).getUint32(0),this.bitsAvailable=i*8,this.bytesAvailable-=i}skipBits(e){let t;e=Math.min(e,this.bytesAvailable*8+this.bitsAvailable),this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,t=e>>3,e-=t<<3,this.bytesAvailable-=t,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)}readBits(e){let t=Math.min(this.bitsAvailable,e);const n=this.word>>>32-t;if(e>32&&j.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0)this.word<<=t;else if(this.bytesAvailable>0)this.loadWord();else throw new Error("no bits available");return t=e-t,t>0&&this.bitsAvailable?n<<t|this.readBits(t):n}skipLZ(){let e;for(e=0;e<this.bitsAvailable;++e)if(this.word&2147483648>>>e)return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const e=this.skipLZ();return this.readBits(e+1)-1}readEG(){const e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}readBoolean(){return this.readBits(1)===1}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}}class b extends d{parsePES(e,t,n,r){const i=this.parseNALu(e,n.data,r);let s=this.VideoSample,u,f=!1;n.data=null,s&&i.length&&!e.audFound&&(this.pushAccessUnit(s,e),s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),i.forEach(c=>{var y,E;switch(c.type){case 1:{let De=!1;u=!0;const Ae=c.data;if(f&&Ae.length>4){const Ge=this.readSliceType(Ae);(Ge===2||Ge===4||Ge===7||Ge===9)&&(De=!0)}if(De){var U;(U=s)!=null&&U.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null)}s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.frame=!0,s.key=De;break}case 5:u=!0,(y=s)!=null&&y.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 6:{u=!0,vt(c.data,1,n.pts,t.samples);break}case 7:{var V,ee;u=!0,f=!0;const De=c.data,Ae=this.readSPS(De);if(!e.sps||e.width!==Ae.width||e.height!==Ae.height||((V=e.pixelRatio)==null?void 0:V[0])!==Ae.pixelRatio[0]||((ee=e.pixelRatio)==null?void 0:ee[1])!==Ae.pixelRatio[1]){e.width=Ae.width,e.height=Ae.height,e.pixelRatio=Ae.pixelRatio,e.sps=[De];const Ge=De.subarray(1,4);let ft="avc1.";for(let lt=0;lt<3;lt++){let Pt=Ge[lt].toString(16);Pt.length<2&&(Pt="0"+Pt),ft+=Pt}e.codec=ft}break}case 8:u=!0,e.pps=[c.data];break;case 9:u=!0,e.audFound=!0,(E=s)!=null&&E.frame&&(this.pushAccessUnit(s,e),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;case 12:u=!0;break;default:u=!1;break}s&&u&&s.units.push(c)}),r&&s&&(this.pushAccessUnit(s,e),this.VideoSample=null)}getNALuType(e,t){return e[t]&31}readSliceType(e){const t=new h(e);return t.readUByte(),t.readUEG(),t.readUEG()}skipScalingList(e,t){let n=8,r=8,i;for(let s=0;s<e;s++)r!==0&&(i=t.readEG(),r=(n+i+256)%256),n=r===0?n:r}readSPS(e){const t=new h(e);let n=0,r=0,i=0,s=0,u,f,c;const y=t.readUByte.bind(t),E=t.readBits.bind(t),U=t.readUEG.bind(t),V=t.readBoolean.bind(t),ee=t.skipBits.bind(t),De=t.skipEG.bind(t),Ae=t.skipUEG.bind(t),Ge=this.skipScalingList.bind(this);y();const ft=y();if(E(5),ee(3),y(),Ae(),ft===100||ft===110||ft===122||ft===244||ft===44||ft===83||ft===86||ft===118||ft===128){const Jt=U();if(Jt===3&&ee(1),Ae(),Ae(),ee(1),V())for(f=Jt!==3?8:12,c=0;c<f;c++)V()&&(c<6?Ge(16,t):Ge(64,t))}Ae();const lt=U();if(lt===0)U();else if(lt===1)for(ee(1),De(),De(),u=U(),c=0;c<u;c++)De();Ae(),ee(1);const Pt=U(),Nt=U(),on=E(1);on===0&&ee(1),ee(1),V()&&(n=U(),r=U(),i=U(),s=U());let zt=[1,1];if(V()&&V())switch(y()){case 1:zt=[1,1];break;case 2:zt=[12,11];break;case 3:zt=[10,11];break;case 4:zt=[16,11];break;case 5:zt=[40,33];break;case 6:zt=[24,11];break;case 7:zt=[20,11];break;case 8:zt=[32,11];break;case 9:zt=[80,33];break;case 10:zt=[18,11];break;case 11:zt=[15,11];break;case 12:zt=[64,33];break;case 13:zt=[160,99];break;case 14:zt=[4,3];break;case 15:zt=[3,2];break;case 16:zt=[2,1];break;case 255:{zt=[y()<<8|y(),y()<<8|y()];break}}return{width:Math.ceil((Pt+1)*16-n*2-r*2),height:(2-on)*(Nt+1)*16-(on?2:4)*(i+s),pixelRatio:zt}}}class F extends d{constructor(...e){super(...e),this.initVPS=null}parsePES(e,t,n,r){const i=this.parseNALu(e,n.data,r);let s=this.VideoSample,u,f=!1;n.data=null,s&&i.length&&!e.audFound&&(this.pushAccessUnit(s,e),s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),i.forEach(c=>{var y,E;switch(c.type){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),s.frame=!0,u=!0;break;case 16:case 17:case 18:case 21:if(u=!0,f){var U;(U=s)!=null&&U.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null)}s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 19:case 20:u=!0,(y=s)!=null&&y.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 39:u=!0,vt(c.data,2,n.pts,t.samples);break;case 32:u=!0,e.vps||(typeof e.params!="object"&&(e.params={}),e.params=g(e.params,this.readVPS(c.data)),this.initVPS=c.data),e.vps=[c.data];break;case 33:if(u=!0,f=!0,e.vps!==void 0&&e.vps[0]!==this.initVPS&&e.sps!==void 0&&!this.matchSPS(e.sps[0],c.data)&&(this.initVPS=e.vps[0],e.sps=e.pps=void 0),!e.sps){const V=this.readSPS(c.data);e.width=V.width,e.height=V.height,e.pixelRatio=V.pixelRatio,e.codec=V.codecString,e.sps=[],typeof e.params!="object"&&(e.params={});for(const ee in V.params)e.params[ee]=V.params[ee]}this.pushParameterSet(e.sps,c.data,e.vps),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0;break;case 34:if(u=!0,typeof e.params=="object"){if(!e.pps){e.pps=[];const V=this.readPPS(c.data);for(const ee in V)e.params[ee]=V[ee]}this.pushParameterSet(e.pps,c.data,e.vps)}break;case 35:u=!0,e.audFound=!0,(E=s)!=null&&E.frame&&(this.pushAccessUnit(s,e),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;default:u=!1;break}s&&u&&s.units.push(c)}),r&&s&&(this.pushAccessUnit(s,e),this.VideoSample=null)}pushParameterSet(e,t,n){(n&&n[0]===this.initVPS||!n&&!e.length)&&e.push(t)}getNALuType(e,t){return(e[t]&126)>>>1}ebsp2rbsp(e){const t=new Uint8Array(e.byteLength);let n=0;for(let r=0;r<e.byteLength;r++)r>=2&&e[r]===3&&e[r-1]===0&&e[r-2]===0||(t[n]=e[r],n++);return new Uint8Array(t.buffer,0,n)}pushAccessUnit(e,t){super.pushAccessUnit(e,t),this.initVPS&&(this.initVPS=null)}readVPS(e){const t=new h(e);t.readUByte(),t.readUByte(),t.readBits(4),t.skipBits(2),t.readBits(6);const n=t.readBits(3),r=t.readBoolean();return{numTemporalLayers:n+1,temporalIdNested:r}}readSPS(e){const t=new h(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.readBits(4);const n=t.readBits(3);t.readBoolean();const r=t.readBits(2),i=t.readBoolean(),s=t.readBits(5),u=t.readUByte(),f=t.readUByte(),c=t.readUByte(),y=t.readUByte(),E=t.readUByte(),U=t.readUByte(),V=t.readUByte(),ee=t.readUByte(),De=t.readUByte(),Ae=t.readUByte(),Ge=t.readUByte(),ft=[],lt=[];for(let Ki=0;Ki<n;Ki++)ft.push(t.readBoolean()),lt.push(t.readBoolean());if(n>0)for(let Ki=n;Ki<8;Ki++)t.readBits(2);for(let Ki=0;Ki<n;Ki++)ft[Ki]&&(t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte()),lt[Ki]&&t.readUByte();t.readUEG();const Pt=t.readUEG();Pt==3&&t.skipBits(1);const Nt=t.readUEG(),on=t.readUEG(),zt=t.readBoolean();let Jt=0,vn=0,jt=0,Wn=0;zt&&(Jt+=t.readUEG(),vn+=t.readUEG(),jt+=t.readUEG(),Wn+=t.readUEG());const yr=t.readUEG(),wi=t.readUEG(),Jr=t.readUEG(),Hr=t.readBoolean();for(let Ki=Hr?0:n;Ki<=n;Ki++)t.skipUEG(),t.skipUEG(),t.skipUEG();if(t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.readBoolean()&&t.readBoolean())for(let Hs=0;Hs<4;Hs++)for(let fa=0;fa<(Hs===3?2:6);fa++)if(!t.readBoolean())t.readUEG();else{const Sa=Math.min(64,1<<4+(Hs<<1));Hs>1&&t.readEG();for(let Oo=0;Oo<Sa;Oo++)t.readEG()}t.readBoolean(),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.skipUEG(),t.skipUEG(),t.readBoolean());const $r=t.readUEG();let Gn=0;for(let Ki=0;Ki<$r;Ki++){let Hs=!1;if(Ki!==0&&(Hs=t.readBoolean()),Hs){Ki===$r&&t.readUEG(),t.readBoolean(),t.readUEG();let fa=0;for(let no=0;no<=Gn;no++){const Sa=t.readBoolean();let Oo=!1;Sa||(Oo=t.readBoolean()),(Sa||Oo)&&fa++}Gn=fa}else{const fa=t.readUEG(),no=t.readUEG();Gn=fa+no;for(let Sa=0;Sa<fa;Sa++)t.readUEG(),t.readBoolean();for(let Sa=0;Sa<no;Sa++)t.readUEG(),t.readBoolean()}}if(t.readBoolean()){const Ki=t.readUEG();for(let Hs=0;Hs<Ki;Hs++){for(let fa=0;fa<Jr+4;fa++)t.readBits(1);t.readBits(1)}}let ci=0,ni=1,Ei=1,Fi=!0,Yi=1,ss=0;t.readBoolean(),t.readBoolean();let js=!1;if(t.readBoolean()){if(t.readBoolean()){const ro=t.readUByte(),Tu=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],gl=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];ro>0&&ro<16?(ni=Tu[ro-1],Ei=gl[ro-1]):ro===255&&(ni=t.readBits(16),Ei=t.readBits(16))}if(t.readBoolean()&&t.readBoolean(),t.readBoolean()&&(t.readBits(3),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.readUByte(),t.readUByte())),t.readBoolean()&&(t.readUEG(),t.readUEG()),t.readBoolean(),t.readBoolean(),t.readBoolean(),js=t.readBoolean(),js&&(Jt+=t.readUEG(),vn+=t.readUEG(),jt+=t.readUEG(),Wn+=t.readUEG()),t.readBoolean()&&(Yi=t.readBits(32),ss=t.readBits(32),t.readBoolean()&&t.readUEG(),t.readBoolean())){const gl=t.readBoolean(),Au=t.readBoolean();let Vo=!1;(gl||Au)&&(Vo=t.readBoolean(),Vo&&(t.readUByte(),t.readBits(5),t.readBoolean(),t.readBits(5)),t.readBits(4),t.readBits(4),Vo&&t.readBits(4),t.readBits(5),t.readBits(5),t.readBits(5));for(let Du=0;Du<=n;Du++){Fi=t.readBoolean();const o0=Fi||t.readBoolean();let Iu=!1;o0?t.readEG():Iu=t.readBoolean();const Ru=Iu?1:t.readUEG()+1;if(gl)for(let Yo=0;Yo<Ru;Yo++)t.readUEG(),t.readUEG(),Vo&&(t.readUEG(),t.readUEG()),t.skipBits(1);if(Au)for(let Yo=0;Yo<Ru;Yo++)t.readUEG(),t.readUEG(),Vo&&(t.readUEG(),t.readUEG()),t.skipBits(1)}}t.readBoolean()&&(t.readBoolean(),t.readBoolean(),t.readBoolean(),ci=t.readUEG())}let Ya=Nt,Cu=on;if(zt||js){let Ki=1,Hs=1;Pt===1?Ki=Hs=2:Pt==2&&(Ki=2),Ya=Nt-Ki*vn-Ki*Jt,Cu=on-Hs*Wn-Hs*jt}const s0=r?["A","B","C"][r]:"",a0=u<<24|f<<16|c<<8|y;let Kl=0;for(let Ki=0;Ki<32;Ki++)Kl=(Kl|(a0>>Ki&1)<<31-Ki)>>>0;let Hl=Kl.toString(16);return s===1&&Hl==="2"&&(Hl="6"),{codecString:`hvc1.${s0}${s}.${Hl}.${i?"H":"L"}${Ge}.B0`,params:{general_tier_flag:i,general_profile_idc:s,general_profile_space:r,general_profile_compatibility_flags:[u,f,c,y],general_constraint_indicator_flags:[E,U,V,ee,De,Ae],general_level_idc:Ge,bit_depth:yr+8,bit_depth_luma_minus8:yr,bit_depth_chroma_minus8:wi,min_spatial_segmentation_idc:ci,chroma_format_idc:Pt,frame_rate:{fixed:Fi,fps:ss/Yi}},width:Ya,height:Cu,pixelRatio:[ni,Ei]}}readPPS(e){const t=new h(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.skipUEG(),t.skipUEG(),t.skipBits(2),t.skipBits(3),t.skipBits(2),t.skipUEG(),t.skipUEG(),t.skipEG(),t.skipBits(2),t.readBoolean()&&t.skipUEG(),t.skipEG(),t.skipEG(),t.skipBits(4);const r=t.readBoolean(),i=t.readBoolean();let s=1;return i&&r?s=0:i?s=3:r&&(s=2),{parallelismType:s}}matchSPS(e,t){return String.fromCharCode.apply(null,e).substr(3)===String.fromCharCode.apply(null,t).substr(3)}}const ie=188;class Ie{constructor(e,t,n,r){this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.logger=r,this.videoParser=null}static probe(e,t){const n=Ie.syncOffset(e);return n>0&&t.warn(`MPEG2-TS detected but first sync word found @ offset ${n}`),n!==-1}static syncOffset(e){const t=e.length;let n=Math.min(ie*5,t-ie)+1,r=0;for(;r<n;){let i=!1,s=-1,u=0;for(let f=r;f<t;f+=ie)if(e[f]===71&&(t-f===ie||e[f+ie]===71)){if(u++,s===-1&&(s=f,s!==0&&(n=Math.min(s+ie*99,e.length-ie)+1)),i||(i=ke(e,f)===0),i&&u>1&&(s===0&&u>2||f+ie>n))return s}else{if(u)return-1;break}r++}return-1}static createTrack(e,t){return{container:e==="video"||e==="audio"?"video/mp2t":void 0,type:e,id:at[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:e==="audio"?t:void 0}}resetInitSegment(e,t,n,r){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=Ie.createTrack("video"),this._videoTrack.duration=r,this._audioTrack=Ie.createTrack("audio",r),this._id3Track=Ie.createTrack("id3"),this._txtTrack=Ie.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=n}resetTimeStamp(){}resetContiguity(){const{_audioTrack:e,_videoTrack:t,_id3Track:n}=this;e&&(e.pesData=null),t&&(t.pesData=null),n&&(n.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(e,t,n=!1,r=!1){n||(this.sampleAes=null);let i;const s=this._videoTrack,u=this._audioTrack,f=this._id3Track,c=this._txtTrack;let y=s.pid,E=s.pesData,U=u.pid,V=f.pid,ee=u.pesData,De=f.pesData,Ae=null,Ge=this.pmtParsed,ft=this._pmtId,lt=e.length;if(this.remainderData&&(e=Xe(this.remainderData,e),lt=e.length,this.remainderData=null),lt<ie&&!r)return this.remainderData=e,{audioTrack:u,videoTrack:s,id3Track:f,textTrack:c};const Pt=Math.max(0,Ie.syncOffset(e));lt-=(lt-Pt)%ie,lt<e.byteLength&&!r&&(this.remainderData=new Uint8Array(e.buffer,lt,e.buffer.byteLength-lt));let Nt=0;for(let zt=Pt;zt<lt;zt+=ie)if(e[zt]===71){const Jt=!!(e[zt+1]&64),vn=ke(e,zt),jt=(e[zt+3]&48)>>4;let Wn;if(jt>1){if(Wn=zt+5+e[zt+4],Wn===zt+ie)continue}else Wn=zt+4;switch(vn){case y:if(Jt){if(E&&(i=mn(E,this.logger))){if(this.videoParser===null)switch(s.segmentCodec){case"avc":this.videoParser=new b;break;case"hevc":this.videoParser=new F;break}this.videoParser!==null&&this.videoParser.parsePES(s,c,i,!1)}E={data:[],size:0}}E&&(E.data.push(e.subarray(Wn,zt+ie)),E.size+=zt+ie-Wn);break;case U:if(Jt){if(ee&&(i=mn(ee,this.logger)))switch(u.segmentCodec){case"aac":this.parseAACPES(u,i);break;case"mp3":this.parseMPEGPES(u,i);break;case"ac3":this.parseAC3PES(u,i);break}ee={data:[],size:0}}ee&&(ee.data.push(e.subarray(Wn,zt+ie)),ee.size+=zt+ie-Wn);break;case V:Jt&&(De&&(i=mn(De,this.logger))&&this.parseID3PES(f,i),De={data:[],size:0}),De&&(De.data.push(e.subarray(Wn,zt+ie)),De.size+=zt+ie-Wn);break;case 0:Jt&&(Wn+=e[Wn]+1),ft=this._pmtId=Qe(e,Wn);break;case ft:{Jt&&(Wn+=e[Wn]+1);const yr=ht(e,Wn,this.typeSupported,n,this.observer,this.logger);y=yr.videoPid,y>0&&(s.pid=y,s.segmentCodec=yr.segmentVideoCodec),U=yr.audioPid,U>0&&(u.pid=U,u.segmentCodec=yr.segmentAudioCodec),V=yr.id3Pid,V>0&&(f.pid=V),Ae!==null&&!Ge&&(this.logger.warn(`MPEG-TS PMT found at ${zt} after unknown PID '${Ae}'. Backtracking to sync byte @${Pt} to parse all TS packets.`),Ae=null,zt=Pt-188),Ge=this.pmtParsed=!0;break}case 17:case 8191:break;default:Ae=vn;break}}else Nt++;Nt>0&&At(this.observer,new Error(`Found ${Nt} TS packet/s that do not start with 0x47`),void 0,this.logger),s.pesData=E,u.pesData=ee,f.pesData=De;const on={audioTrack:u,videoTrack:s,id3Track:f,textTrack:c};return r&&this.extractRemainingSamples(on),on}flush(){const{remainderData:e}=this;this.remainderData=null;let t;return e?t=this.demux(e,-1,!1,!0):t={videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(t),this.sampleAes?this.decrypt(t,this.sampleAes):t}extractRemainingSamples(e){const{audioTrack:t,videoTrack:n,id3Track:r,textTrack:i}=e,s=n.pesData,u=t.pesData,f=r.pesData;let c;if(s&&(c=mn(s,this.logger))){if(this.videoParser===null)switch(n.segmentCodec){case"avc":this.videoParser=new b;break;case"hevc":this.videoParser=new F;break}this.videoParser!==null&&(this.videoParser.parsePES(n,i,c,!0),n.pesData=null)}else n.pesData=s;if(u&&(c=mn(u,this.logger))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,c);break;case"mp3":this.parseMPEGPES(t,c);break;case"ac3":this.parseAC3PES(t,c);break}t.pesData=null}else u!=null&&u.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=u;f&&(c=mn(f,this.logger))?(this.parseID3PES(r,c),r.pesData=null):r.pesData=f}demuxSampleAes(e,t,n){const r=this.demux(e,n,!0,!this.config.progressive),i=this.sampleAes=new l(this.observer,this.config,t);return this.decrypt(r,i)}decrypt(e,t){return new Promise(n=>{const{audioTrack:r,videoTrack:i}=e;r.samples&&r.segmentCodec==="aac"?t.decryptAacSamples(r.samples,0,()=>{i.samples?t.decryptAvcSamples(i.samples,0,0,()=>{n(e)}):n(e)}):i.samples&&t.decryptAvcSamples(i.samples,0,0,()=>{n(e)})})}destroy(){this.observer&&this.observer.removeAllListeners(),this.config=this.logger=this.observer=null,this.aacOverFlow=this.videoParser=this.remainderData=this.sampleAes=null,this._videoTrack=this._audioTrack=this._id3Track=this._txtTrack=void 0}parseAACPES(e,t){let n=0;const r=this.aacOverFlow;let i=t.data;if(r){this.aacOverFlow=null;const E=r.missing,U=r.sample.unit.byteLength;if(E===-1)i=Xe(r.sample.unit,i);else{const V=U-E;r.sample.unit.set(i.subarray(0,E),V),e.samples.push(r.sample),n=r.missing}}let s,u;for(s=n,u=i.length;s<u-1&&!Qa(i,s);s++);if(s!==n){let E;const U=s<u-1;if(U?E=`AAC PES did not start with ADTS header,offset:${s}`:E="No ADTS header found in AAC PES",At(this.observer,new Error(E),U,this.logger),!U)return}fo(e,this.observer,i,s,this.audioCodec);let f;if(t.pts!==void 0)f=t.pts;else if(r){const E=ho(e.samplerate);f=r.sample.pts+E}else{this.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}let c=0,y;for(;s<u;)if(y=po(e,i,s,f,c),s+=y.length,y.missing){this.aacOverFlow=y;break}else for(c++;s<u-1&&!Qa(i,s);s++);}parseMPEGPES(e,t){const n=t.data,r=n.length;let i=0,s=0;const u=t.pts;if(u===void 0){this.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;s<r;)if(vr(n,s)){const f=Vn(e,n,s,u,i);if(f)s+=f.length,i++;else break}else s++}parseAC3PES(e,t){{const n=t.data,r=t.pts;if(r===void 0){this.logger.warn("[tsdemuxer]: AC3 PES unknown PTS");return}const i=n.length;let s=0,u=0,f;for(;u<i&&(f=Kn(e,n,u,r,s++))>0;)u+=f}}parseID3PES(e,t){if(t.pts===void 0){this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const n=g({},t,{type:this._videoTrack?Se.emsg:Se.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(n)}}function ke(a,e){return((a[e+1]&31)<<8)+a[e+2]}function Qe(a,e){return(a[e+10]&31)<<8|a[e+11]}function ht(a,e,t,n,r,i){const s={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},u=(a[e+1]&15)<<8|a[e+2],f=e+3+u-4,c=(a[e+10]&15)<<8|a[e+11];for(e+=12+c;e<f;){const y=ke(a,e),E=(a[e+3]&15)<<8|a[e+4];switch(a[e]){case 207:if(!n){Wt("ADTS AAC",i);break}case 15:s.audioPid===-1&&(s.audioPid=y);break;case 21:s.id3Pid===-1&&(s.id3Pid=y);break;case 219:if(!n){Wt("H.264",i);break}case 27:s.videoPid===-1&&(s.videoPid=y);break;case 3:case 4:!t.mpeg&&!t.mp3?i.log("MPEG audio found, not supported in this browser"):s.audioPid===-1&&(s.audioPid=y,s.segmentAudioCodec="mp3");break;case 193:if(!n){Wt("AC-3",i);break}case 129:t.ac3?s.audioPid===-1&&(s.audioPid=y,s.segmentAudioCodec="ac3"):i.log("AC-3 audio found, not supported in this browser");break;case 6:if(s.audioPid===-1&&E>0){let U=e+5,V=E;for(;V>2;){switch(a[U]){case 106:t.ac3!==!0?i.log("AC-3 audio found, not supported in this browser for now"):(s.audioPid=y,s.segmentAudioCodec="ac3");break}const De=a[U+1]+2;U+=De,V-=De}}break;case 194:case 135:return At(r,new Error("Unsupported EC-3 in M2TS found"),void 0,i),s;case 36:s.videoPid===-1&&(s.videoPid=y,s.segmentVideoCodec="hevc",i.log("HEVC in M2TS found"));break}e+=E+5}return s}function At(a,e,t,n){n.warn(`parsing error: ${e.message}`),a.emit(m.ERROR,m.ERROR,{type:ce.MEDIA_ERROR,details:A.FRAG_PARSING_ERROR,fatal:!1,levelRetry:t,error:e,reason:e.message})}function Wt(a,e){e.log(`${a} with AES-128-CBC encryption found in unencrypted stream`)}function mn(a,e){let t=0,n,r,i,s,u;const f=a.data;if(!a||a.size===0)return null;for(;f[0].length<19&&f.length>1;)f[0]=Xe(f[0],f[1]),f.splice(1,1);if(n=f[0],(n[0]<<16)+(n[1]<<8)+n[2]===1){if(r=(n[4]<<8)+n[5],r&&r>a.size-6)return null;const y=n[7];y&192&&(s=(n[9]&14)*536870912+(n[10]&255)*4194304+(n[11]&254)*16384+(n[12]&255)*128+(n[13]&254)/2,y&64?(u=(n[14]&14)*536870912+(n[15]&255)*4194304+(n[16]&254)*16384+(n[17]&255)*128+(n[18]&254)/2,s-u>60*9e4&&(e.warn(`${Math.round((s-u)/9e4)}s delta between PTS and DTS, align them`),s=u)):u=s),i=n[8];let E=i+9;if(a.size<=E)return null;a.size-=E;const U=new Uint8Array(a.size);for(let V=0,ee=f.length;V<ee;V++){n=f[V];let De=n.byteLength;if(E)if(E>De){E-=De;continue}else n=n.subarray(E),De-=E,E=0;U.set(n,t),t+=De}return r&&(r-=i+3),{data:U,pts:s,dts:u,len:r}}return null}class Yt{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 en=Math.pow(2,32)-1;class et{static init(){et.types={avc1:[],avcC:[],hvc1:[],hvcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};let e;for(e in et.types)et.types.hasOwnProperty(e)&&(et.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);const t=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),n=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);et.HDLR_TYPES={video:t,audio:n};const r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),i=new Uint8Array([0,0,0,0,0,0,0,0]);et.STTS=et.STSC=et.STCO=i,et.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),et.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),et.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),et.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]);et.FTYP=et.box(et.types.ftyp,s,f,s,u),et.DINF=et.box(et.types.dinf,et.box(et.types.dref,r))}static box(e,...t){let n=8,r=t.length;const i=r;for(;r--;)n+=t[r].byteLength;const s=new Uint8Array(n);for(s[0]=n>>24&255,s[1]=n>>16&255,s[2]=n>>8&255,s[3]=n&255,s.set(e,4),r=0,n=8;r<i;r++)s.set(t[r],n),n+=t[r].byteLength;return s}static hdlr(e){return et.box(et.types.hdlr,et.HDLR_TYPES[e])}static mdat(e){return et.box(et.types.mdat,e)}static mdhd(e,t){t*=e;const n=Math.floor(t/(en+1)),r=Math.floor(t%(en+1));return et.box(et.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,n>>24,n>>16&255,n>>8&255,n&255,r>>24,r>>16&255,r>>8&255,r&255,85,196,0,0]))}static mdia(e){return et.box(et.types.mdia,et.mdhd(e.timescale||0,e.duration||0),et.hdlr(e.type),et.minf(e))}static mfhd(e){return et.box(et.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"?et.box(et.types.minf,et.box(et.types.smhd,et.SMHD),et.DINF,et.stbl(e)):et.box(et.types.minf,et.box(et.types.vmhd,et.VMHD),et.DINF,et.stbl(e))}static moof(e,t,n){return et.box(et.types.moof,et.mfhd(e),et.traf(n,t))}static moov(e){let t=e.length;const n=[];for(;t--;)n[t]=et.trak(e[t]);return et.box.apply(null,[et.types.moov,et.mvhd(e[0].timescale||0,e[0].duration||0)].concat(n).concat(et.mvex(e)))}static mvex(e){let t=e.length;const n=[];for(;t--;)n[t]=et.trex(e[t]);return et.box.apply(null,[et.types.mvex,...n])}static mvhd(e,t){t*=e;const n=Math.floor(t/(en+1)),r=Math.floor(t%(en+1)),i=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,n>>24,n>>16&255,n>>8&255,n&255,r>>24,r>>16&255,r>>8&255,r&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return et.box(et.types.mvhd,i)}static sdtp(e){const t=e.samples||[],n=new Uint8Array(4+t.length);let r,i;for(r=0;r<t.length;r++)i=t[r].flags,n[r+4]=i.dependsOn<<4|i.isDependedOn<<2|i.hasRedundancy;return et.box(et.types.sdtp,n)}static stbl(e){return et.box(et.types.stbl,et.stsd(e),et.box(et.types.stts,et.STTS),et.box(et.types.stsc,et.STSC),et.box(et.types.stsz,et.STSZ),et.box(et.types.stco,et.STCO))}static avc1(e){let t=[],n=[],r,i,s;for(r=0;r<e.sps.length;r++)i=e.sps[r],s=i.byteLength,t.push(s>>>8&255),t.push(s&255),t=t.concat(Array.prototype.slice.call(i));for(r=0;r<e.pps.length;r++)i=e.pps[r],s=i.byteLength,n.push(s>>>8&255),n.push(s&255),n=n.concat(Array.prototype.slice.call(i));const u=et.box(et.types.avcC,new Uint8Array([1,t[3],t[4],t[5],255,224|e.sps.length].concat(t).concat([e.pps.length]).concat(n))),f=e.width,c=e.height,y=e.pixelRatio[0],E=e.pixelRatio[1];return et.box(et.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,c>>8&255,c&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),u,et.box(et.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),et.box(et.types.pasp,new Uint8Array([y>>24,y>>16&255,y>>8&255,y&255,E>>24,E>>16&255,E>>8&255,E&255])))}static esds(e){const t=e.config;return new Uint8Array([0,0,0,0,3,25,0,1,0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,...t,6,1,2])}static audioStsd(e){const t=e.samplerate||0;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount||0,0,16,0,0,0,0,t>>8&255,t&255,0,0])}static mp4a(e){return et.box(et.types.mp4a,et.audioStsd(e),et.box(et.types.esds,et.esds(e)))}static mp3(e){return et.box(et.types[".mp3"],et.audioStsd(e))}static ac3(e){return et.box(et.types["ac-3"],et.audioStsd(e),et.box(et.types.dac3,e.config))}static stsd(e){const{segmentCodec:t}=e;if(e.type==="audio"){if(t==="aac")return et.box(et.types.stsd,et.STSD,et.mp4a(e));if(t==="ac3"&&e.config)return et.box(et.types.stsd,et.STSD,et.ac3(e));if(t==="mp3"&&e.codec==="mp3")return et.box(et.types.stsd,et.STSD,et.mp3(e))}else if(e.pps&&e.sps){if(t==="avc")return et.box(et.types.stsd,et.STSD,et.avc1(e));if(t==="hevc"&&e.vps)return et.box(et.types.stsd,et.STSD,et.hvc1(e))}else throw new Error("video track missing pps or sps");throw new Error(`unsupported ${e.type} segment codec (${t}/${e.codec})`)}static tkhd(e){const t=e.id,n=(e.duration||0)*(e.timescale||0),r=e.width||0,i=e.height||0,s=Math.floor(n/(en+1)),u=Math.floor(n%(en+1));return et.box(et.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,r>>8&255,r&255,0,0,i>>8&255,i&255,0,0]))}static traf(e,t){const n=et.sdtp(e),r=e.id,i=Math.floor(t/(en+1)),s=Math.floor(t%(en+1));return et.box(et.types.traf,et.box(et.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255])),et.box(et.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])),et.trun(e,n.length+16+20+8+16+8+8),n)}static trak(e){return e.duration=e.duration||4294967295,et.box(et.types.trak,et.tkhd(e),et.mdia(e))}static trex(e){const t=e.id;return et.box(et.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(e,t){const n=e.samples||[],r=n.length,i=12+16*r,s=new Uint8Array(i);let u,f,c,y,E,U;for(t+=8+i,s.set([e.type==="video"?1:0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,r&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0),u=0;u<r;u++)f=n[u],c=f.duration,y=f.size,E=f.flags,U=f.cts,s.set([c>>>24&255,c>>>16&255,c>>>8&255,c&255,y>>>24&255,y>>>16&255,y>>>8&255,y&255,E.isLeading<<2|E.dependsOn,E.isDependedOn<<6|E.hasRedundancy<<4|E.paddingValue<<1|E.isNonSync,E.degradPrio&61440,E.degradPrio&15,U>>>24&255,U>>>16&255,U>>>8&255,U&255],12+16*u);return et.box(et.types.trun,s)}static initSegment(e){et.types||et.init();const t=et.moov(e);return Xe(et.FTYP,t)}static hvc1(e){const t=e.params,n=[e.vps,e.sps,e.pps],r=4,i=new Uint8Array([1,t.general_profile_space<<6|(t.general_tier_flag?32:0)|t.general_profile_idc,t.general_profile_compatibility_flags[0],t.general_profile_compatibility_flags[1],t.general_profile_compatibility_flags[2],t.general_profile_compatibility_flags[3],t.general_constraint_indicator_flags[0],t.general_constraint_indicator_flags[1],t.general_constraint_indicator_flags[2],t.general_constraint_indicator_flags[3],t.general_constraint_indicator_flags[4],t.general_constraint_indicator_flags[5],t.general_level_idc,240|t.min_spatial_segmentation_idc>>8,255&t.min_spatial_segmentation_idc,252|t.parallelismType,252|t.chroma_format_idc,248|t.bit_depth_luma_minus8,248|t.bit_depth_chroma_minus8,0,parseInt(t.frame_rate.fps),r-1|t.temporal_id_nested<<2|t.num_temporal_layers<<3|(t.frame_rate.fixed?64:0),n.length]);let s=i.length;for(let ee=0;ee<n.length;ee+=1){s+=3;for(let De=0;De<n[ee].length;De+=1)s+=2+n[ee][De].length}const u=new Uint8Array(s);u.set(i,0),s=i.length;const f=n.length-1;for(let ee=0;ee<n.length;ee+=1){u.set(new Uint8Array([32+ee|(ee===f?128:0),0,n[ee].length]),s),s+=3;for(let De=0;De<n[ee].length;De+=1)u.set(new Uint8Array([n[ee][De].length>>8,n[ee][De].length&255]),s),s+=2,u.set(n[ee][De],s),s+=n[ee][De].length}const c=et.box(et.types.hvcC,u),y=e.width,E=e.height,U=e.pixelRatio[0],V=e.pixelRatio[1];return et.box(et.types.hvc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,y>>8&255,y&255,E>>8&255,E&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),c,et.box(et.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),et.box(et.types.pasp,new Uint8Array([U>>24,U>>16&255,U>>8&255,U&255,V>>24,V>>16&255,V>>8&255,V&255])))}}et.types=void 0,et.HDLR_TYPES=void 0,et.STTS=void 0,et.STSC=void 0,et.STCO=void 0,et.STSZ=void 0,et.VMHD=void 0,et.SMHD=void 0,et.STSD=void 0,et.FTYP=void 0,et.DINF=void 0;const An=9e4;function lr(a,e,t=1,n=!1){const r=a*e*t;return n?Math.round(r):r}function Pn(a,e,t=1,n=!1){return lr(a,e,1/t,n)}function nr(a,e=!1){return lr(a,1e3,1/An,e)}function Ar(a,e=1){return lr(a,An,1/e)}const Dr=10*1e3,hi=1024,pi=1152,Vi=1536;let ri=null,di=null;function _i(a,e,t,n){return{duration:e,size:t,cts:n,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:a?2:1,isNonSync:a?0:1}}}class qi{constructor(e,t,n,r){if(this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.logger=r,this.ISGenerated=!1,ri===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);ri=s?parseInt(s[1]):0}if(di===null){const i=navigator.userAgent.match(/Safari\/(\d+)/i);di=i?parseInt(i[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){this.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e}resetNextTimestamp(){this.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){this.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(e){let t=!1;const n=e[0].pts,r=e.reduce((i,s)=>{let u=s.pts,f=u-i;return f<-4294967296&&(t=!0,u=zi(u,n),f=u-i),f>0?i:u},n);return t&&this.logger.debug("PTS rollover detected"),r}remux(e,t,n,r,i,s,u,f){let c,y,E,U,V,ee,De=i,Ae=i;const Ge=e.pid>-1,ft=t.pid>-1,lt=t.samples.length,Pt=e.samples.length>0,Nt=u&<>0||lt>1;if((!Ge||Pt)&&(!ft||Nt)||this.ISGenerated||u){if(this.ISGenerated){var zt,Jt,vn,jt;const Jr=this.videoTrackConfig;(Jr&&(t.width!==Jr.width||t.height!==Jr.height||((zt=t.pixelRatio)==null?void 0:zt[0])!==((Jt=Jr.pixelRatio)==null?void 0:Jt[0])||((vn=t.pixelRatio)==null?void 0:vn[1])!==((jt=Jr.pixelRatio)==null?void 0:jt[1]))||!Jr&&Nt||this.nextAudioPts===null&&Pt)&&this.resetInitSegment()}this.ISGenerated||(E=this.generateIS(e,t,i,s));const Wn=this.isVideoContiguous;let yr=-1,wi;if(Nt&&(yr=Wr(t.samples),!Wn&&this.config.forceKeyFrameOnDiscontinuity))if(ee=!0,yr>0){this.logger.warn(`[mp4-remuxer]: Dropped ${yr} out of ${lt} video samples due to a missing keyframe`);const Jr=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(yr),t.dropped+=yr,Ae+=(t.samples[0].pts-Jr)/t.inputTimeScale,wi=Ae}else yr===-1&&(this.logger.warn(`[mp4-remuxer]: No keyframe found out of ${lt} video samples`),ee=!1);if(this.ISGenerated){if(Pt&&Nt){const Jr=this.getVideoStartPts(t.samples),Rr=(zi(e.samples[0].pts,Jr)-Jr)/t.inputTimeScale;De+=Math.max(0,Rr),Ae+=Math.max(0,-Rr)}if(Pt){if(e.samplerate||(this.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),E=this.generateIS(e,t,i,s)),y=this.remuxAudio(e,De,this.isAudioContiguous,s,ft||Nt||f===re.AUDIO?Ae:void 0),Nt){const Jr=y?y.endPTS-y.startPTS:0;t.inputTimeScale||(this.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),E=this.generateIS(e,t,i,s)),c=this.remuxVideo(t,Ae,Wn,Jr)}}else Nt&&(c=this.remuxVideo(t,Ae,Wn,0));c&&(c.firstKeyFrame=yr,c.independent=yr!==-1,c.firstKeyFramePTS=wi)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(V=li(n,i,this._initPTS,this._initDTS)),r.samples.length&&(U=vi(r,i,this._initPTS))),{audio:y,video:c,initSegment:E,independent:ee,text:U,id3:V}}generateIS(e,t,n,r){const i=e.samples,s=t.samples,u=this.typeSupported,f={},c=this._initPTS;let y=!c||r,E="audio/mp4",U,V,ee;if(y&&(U=V=1/0),e.config&&i.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":u.mpeg?(E="audio/mpeg",e.codec=""):u.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}f.audio={id:"audio",container:E,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&u.mpeg?new Uint8Array(0):et.initSegment([e]),metadata:{channelCount:e.channelCount}},y&&(ee=e.inputTimeScale,!c||ee!==c.timescale?U=V=i[0].pts-Math.round(ee*n):y=!1)}if(t.sps&&t.pps&&s.length){if(t.timescale=t.inputTimeScale,f.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:et.initSegment([t]),metadata:{width:t.width,height:t.height}},y)if(ee=t.inputTimeScale,!c||ee!==c.timescale){const De=this.getVideoStartPts(s),Ae=Math.round(ee*n);V=Math.min(V,zi(s[0].dts,De)-Ae),U=Math.min(U,De-Ae)}else y=!1;this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(f).length)return this.ISGenerated=!0,y?(this._initPTS={baseTime:U,timescale:ee},this._initDTS={baseTime:V,timescale:ee}):U=ee=void 0,{tracks:f,initPTS:U,timescale:ee}}remuxVideo(e,t,n,r){const i=e.inputTimeScale,s=e.samples,u=[],f=s.length,c=this._initPTS;let y=this.nextAvcDts,E=8,U=this.videoSampleDuration,V,ee,De=Number.POSITIVE_INFINITY,Ae=Number.NEGATIVE_INFINITY,Ge=!1;if(!n||y===null){const Gn=t*i,Jn=s[0].pts-zi(s[0].dts,s[0].pts);ri&&y!==null&&Math.abs(Gn-Jn-y)<15e3?n=!0:y=Gn-Jn}const ft=c.baseTime*i/c.timescale;for(let Gn=0;Gn<f;Gn++){const Jn=s[Gn];Jn.pts=zi(Jn.pts-ft,y),Jn.dts=zi(Jn.dts-ft,y),Jn.dts<s[Gn>0?Gn-1:Gn].dts&&(Ge=!0)}Ge&&s.sort(function(Gn,Jn){const ci=Gn.dts-Jn.dts,ni=Gn.pts-Jn.pts;return ci||ni}),V=s[0].dts,ee=s[s.length-1].dts;const lt=ee-V,Pt=lt?Math.round(lt/(f-1)):U||e.inputTimeScale/30;if(n){const Gn=V-y,Jn=Gn>Pt,ci=Gn<-1;if((Jn||ci)&&(Jn?this.logger.warn(`${(e.segmentCodec||"").toUpperCase()}: ${nr(Gn,!0)} ms (${Gn}dts) hole between fragments detected at ${t.toFixed(3)}`):this.logger.warn(`${(e.segmentCodec||"").toUpperCase()}: ${nr(-Gn,!0)} ms (${Gn}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!ci||y>=s[0].pts||ri)){V=y;const ni=s[0].pts-Gn;if(Jn)s[0].dts=V,s[0].pts=ni;else{let Ei=!0;for(let Fi=0;Fi<s.length&&!(s[Fi].dts>ni&&Ei);Fi++){const Yi=s[Fi].pts;if(s[Fi].dts-=Gn,s[Fi].pts-=Gn,Fi<s.length-1){const ss=s[Fi+1].pts,js=s[Fi].pts,Qs=ss<=js,Ya=ss<=Yi;Ei=Qs==Ya}}}this.logger.log(`Video: Initial PTS/DTS adjusted: ${nr(ni,!0)}/${nr(V,!0)}, delta: ${nr(Gn,!0)} ms`)}}V=Math.max(0,V);let Nt=0,on=0,zt=V;for(let Gn=0;Gn<f;Gn++){const Jn=s[Gn],ci=Jn.units,ni=ci.length;let Ei=0;for(let Fi=0;Fi<ni;Fi++)Ei+=ci[Fi].data.length;on+=Ei,Nt+=ni,Jn.length=Ei,Jn.dts<zt?(Jn.dts=zt,zt+=Pt/4|0||1):zt=Jn.dts,De=Math.min(Jn.pts,De),Ae=Math.max(Jn.pts,Ae)}ee=s[f-1].dts;const Jt=on+4*Nt+8;let vn;try{vn=new Uint8Array(Jt)}catch(Gn){this.observer.emit(m.ERROR,m.ERROR,{type:ce.MUX_ERROR,details:A.REMUX_ALLOC_ERROR,fatal:!1,error:Gn,bytes:Jt,reason:`fail allocating video mdat ${Jt}`});return}const jt=new DataView(vn.buffer);jt.setUint32(0,Jt),vn.set(et.types.mdat,4);let Wn=!1,yr=Number.POSITIVE_INFINITY,wi=Number.POSITIVE_INFINITY,Jr=Number.NEGATIVE_INFINITY,Hr=Number.NEGATIVE_INFINITY;for(let Gn=0;Gn<f;Gn++){const Jn=s[Gn],ci=Jn.units;let ni=0;for(let Yi=0,ss=ci.length;Yi<ss;Yi++){const js=ci[Yi],Qs=js.data,Ya=js.data.byteLength;jt.setUint32(E,Ya),E+=4,vn.set(Qs,E),E+=Ya,ni+=4+Ya}let Ei;if(Gn<f-1)U=s[Gn+1].dts-Jn.dts,Ei=s[Gn+1].pts-Jn.pts;else{const Yi=this.config,ss=Gn>0?Jn.dts-s[Gn-1].dts:Pt;if(Ei=Gn>0?Jn.pts-s[Gn-1].pts:Pt,Yi.stretchShortVideoTrack&&this.nextAudioPts!==null){const js=Math.floor(Yi.maxBufferHole*i),Qs=(r?De+r*i:this.nextAudioPts)-Jn.pts;Qs>js?(U=Qs-ss,U<0?U=ss:Wn=!0,this.logger.log(`[mp4-remuxer]: It is approximately ${Qs/90} ms to the next segment; using duration ${U/90} ms for the last video frame.`)):U=ss}else U=ss}const Fi=Math.round(Jn.pts-Jn.dts);yr=Math.min(yr,U),Jr=Math.max(Jr,U),wi=Math.min(wi,Ei),Hr=Math.max(Hr,Ei),u.push(_i(Jn.key,U,ni,Fi))}if(u.length){if(ri){if(ri<70){const Gn=u[0].flags;Gn.dependsOn=2,Gn.isNonSync=0}}else if(di&&Hr-wi<Jr-yr&&Pt/Jr<.025&&u[0].cts===0){this.logger.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let Gn=V;for(let Jn=0,ci=u.length;Jn<ci;Jn++){const ni=Gn+u[Jn].duration,Ei=Gn+u[Jn].cts;if(Jn<ci-1){const Fi=ni+u[Jn+1].cts;u[Jn].duration=Fi-Ei}else u[Jn].duration=Jn?u[Jn-1].duration:Pt;u[Jn].cts=0,Gn=ni}}}U=Wn||!U?Pt:U,this.nextAvcDts=y=ee+U,this.videoSampleDuration=U,this.isVideoContiguous=!0;const $r={data1:et.moof(e.sequenceNumber++,V,g(e,{samples:u})),data2:vn,startPTS:De/i,endPTS:(Ae+U)/i,startDTS:V/i,endDTS:y/i,type:"video",hasAudio:!1,hasVideo:!0,nb:u.length,dropped:e.dropped};return e.samples=[],e.dropped=0,$r}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return pi;case"ac3":return Vi;default:return hi}}remuxAudio(e,t,n,r,i){const s=e.inputTimeScale,u=e.samplerate?e.samplerate:s,f=s/u,c=this.getSamplesPerFrame(e),y=c*f,E=this._initPTS,U=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,V=[],ee=i!==void 0;let De=e.samples,Ae=U?0:8,Ge=this.nextAudioPts||-1;const ft=t*s,lt=E.baseTime*s/E.timescale;if(this.isAudioContiguous=n=n||De.length&&Ge>0&&(r&&Math.abs(ft-Ge)<9e3||Math.abs(zi(De[0].pts-lt,ft)-Ge)<20*y),De.forEach(function(Rr){Rr.pts=zi(Rr.pts-lt,ft)}),!n||Ge<0){if(De=De.filter(Rr=>Rr.pts>=0),!De.length)return;i===0?Ge=0:r&&!ee?Ge=Math.max(0,ft):Ge=De[0].pts}if(e.segmentCodec==="aac"){const Rr=this.config.maxAudioFramesDrift;for(let Zr=0,$r=Ge;Zr<De.length;Zr++){const Gn=De[Zr],Jn=Gn.pts,ci=Jn-$r,ni=Math.abs(1e3*ci/s);if(ci<=-Rr*y&&ee)Zr===0&&(this.logger.warn(`Audio frame @ ${(Jn/s).toFixed(3)}s overlaps nextAudioPts by ${Math.round(1e3*ci/s)} ms.`),this.nextAudioPts=Ge=$r=Jn);else if(ci>=Rr*y&&ni<Dr&&ee){let Ei=Math.round(ci/y);$r=Jn-Ei*y,$r<0&&(Ei--,$r+=y),Zr===0&&(this.nextAudioPts=Ge=$r),this.logger.warn(`[mp4-remuxer]: Injecting ${Ei} audio frame @ ${($r/s).toFixed(3)}s due to ${Math.round(1e3*ci/s)} ms gap.`);for(let Fi=0;Fi<Ei;Fi++){const Yi=Math.max($r,0);let ss=Yt.getSilentFrame(e.parsedCodec||e.manifestCodec||e.codec,e.channelCount);ss||(this.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),ss=Gn.unit.subarray()),De.splice(Zr,0,{unit:ss,pts:Yi}),$r+=y,Zr++}}Gn.pts=$r,$r+=y}}let Pt=null,Nt=null,on,zt=0,Jt=De.length;for(;Jt--;)zt+=De[Jt].unit.byteLength;for(let Rr=0,Zr=De.length;Rr<Zr;Rr++){const $r=De[Rr],Gn=$r.unit;let Jn=$r.pts;if(Nt!==null){const ni=V[Rr-1];ni.duration=Math.round((Jn-Nt)/f)}else if(n&&e.segmentCodec==="aac"&&(Jn=Ge),Pt=Jn,zt>0){zt+=Ae;try{on=new Uint8Array(zt)}catch(ni){this.observer.emit(m.ERROR,m.ERROR,{type:ce.MUX_ERROR,details:A.REMUX_ALLOC_ERROR,fatal:!1,error:ni,bytes:zt,reason:`fail allocating audio mdat ${zt}`});return}U||(new DataView(on.buffer).setUint32(0,zt),on.set(et.types.mdat,4))}else return;on.set(Gn,Ae);const ci=Gn.byteLength;Ae+=ci,V.push(_i(!0,c,ci,0)),Nt=Jn}const vn=V.length;if(!vn)return;const jt=V[V.length-1];this.nextAudioPts=Ge=Nt+f*jt.duration;const Wn=U?new Uint8Array(0):et.moof(e.sequenceNumber++,Pt/f,g({},e,{samples:V}));e.samples=[];const yr=Pt/s,wi=Ge/s,Hr={data1:Wn,data2:on,startPTS:yr,endPTS:wi,startDTS:yr,endDTS:wi,type:"audio",hasAudio:!0,hasVideo:!1,nb:vn};return this.isAudioContiguous=!0,Hr}}function zi(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 Wr(a){for(let e=0;e<a.length;e++)if(a[e].key)return e;return-1}function li(a,e,t,n){const r=a.samples.length;if(!r)return;const i=a.inputTimeScale;for(let u=0;u<r;u++){const f=a.samples[u];f.pts=zi(f.pts-t.baseTime*i/t.timescale,e*i)/i,f.dts=zi(f.dts-n.baseTime*i/n.timescale,e*i)/i}const s=a.samples;return a.samples=[],{samples:s}}function vi(a,e,t){const n=a.samples.length;if(!n)return;const r=a.inputTimeScale;for(let s=0;s<n;s++){const u=a.samples[s];u.pts=zi(u.pts-t.baseTime*r/t.timescale,e*r)/r}a.samples.sort((s,u)=>s.pts-u.pts);const i=a.samples;return a.samples=[],{samples:i}}class is{constructor(e,t,n,r){this.logger=void 0,this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null,this.logger=r}destroy(){}resetTimeStamp(e){this.initPTS=e,this.lastEndTime=null}resetNextTimestamp(){this.lastEndTime=null}resetInitSegment(e,t,n,r){this.audioCodec=t,this.videoCodec=n,this.generateInitSegment(oe(e,r)),this.emitInitSegment=!0}generateInitSegment(e){let{audioCodec:t,videoCodec:n}=this;if(!(e!=null&&e.byteLength)){this.initTracks=void 0,this.initData=void 0;return}const r=this.initData=Q(e);r.audio&&(t=Gr(r.audio,x.AUDIO)),r.video&&(n=Gr(r.video,x.VIDEO));const i={};r.audio&&r.video?i.audiovideo={container:"video/mp4",codec:t+","+n,supplemental:r.video.supplemental,initSegment:e,id:"main"}:r.audio?i.audio={container:"audio/mp4",codec:t,initSegment:e,id:"audio"}:r.video?i.video={container:"video/mp4",codec:n,supplemental:r.video.supplemental,initSegment:e,id:"main"}:this.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=i}remux(e,t,n,r,i,s){var u,f;let{initPTS:c,lastEndTime:y}=this;const E={audio:void 0,video:void 0,text:r,id3:n,initSegment:void 0};O(y)||(y=this.lastEndTime=i||0);const U=t.samples;if(!(U!=null&&U.length))return E;const V={initPTS:void 0,timescale:1};let ee=this.initData;if((u=ee)!=null&&u.length||(this.generateInitSegment(U),ee=this.initData),!((f=ee)!=null&&f.length))return this.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),E;this.emitInitSegment&&(V.tracks=this.initTracks,this.emitInitSegment=!1);const De=je(U,ee),Ae=Te(ee,U),Ge=Ae===null?i:Ae;(s||!c)&&(os(c,Ge,i,De)||V.timescale!==c.timescale)&&(V.initPTS=Ge-i,c&&c.timescale===1&&this.logger.warn(`Adjusting initPTS @${i} from ${c.baseTime/c.timescale} to ${V.initPTS}`),this.initPTS=c={baseTime:V.initPTS,timescale:1});const ft=e?Ge-c.baseTime/c.timescale:y,lt=ft+De;Fe(ee,U,c.baseTime/c.timescale),De>0?this.lastEndTime=lt:(this.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const Pt=!!ee.audio,Nt=!!ee.video;let on="";Pt&&(on+="audio"),Nt&&(on+="video");const zt={data1:U,startPTS:ft,startDTS:ft,endPTS:lt,endDTS:lt,type:on,hasAudio:Pt,hasVideo:Nt,nb:1,dropped:0};return E.audio=zt.type==="audio"?zt:void 0,E.video=zt.type!=="audio"?zt:void 0,E.initSegment=V,E.id3=li(n,i,c,c),r.samples.length&&(E.text=vi(r,i,c)),E}}function os(a,e,t,n){if(a===null)return!0;const r=Math.max(n,1),i=e-a.baseTime/a.timescale;return Math.abs(i-t)>r}function Gr(a,e){const t=a==null?void 0:a.codec;return t&&t.length>4?t:e===x.AUDIO?t==="ec-3"||t==="ac-3"||t==="alac"?t:t==="fLaC"||t==="Opus"?He(t,!1):(j.warn(`Unhandled audio codec "${t}" in mp4 MAP`),t||"mp4a"):(j.warn(`Unhandled video codec "${t}" in mp4 MAP`),t||"avc1")}let Ni;try{Ni=self.performance.now.bind(self.performance)}catch(a){Ni=Date.now}const es=[{demux:ti,remux:is},{demux:Ie,remux:qi},{demux:ir,remux:qi},{demux:hr,remux:qi}];es.splice(2,0,{demux:tr,remux:qi});class ms{constructor(e,t,n,r,i,s){this.asyncResult=!1,this.logger=void 0,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=e,this.typeSupported=t,this.config=n,this.id=i,this.logger=s}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,n,r){const i=n.transmuxing;i.executeStart=Ni();let s=new Uint8Array(e);const{currentTransmuxState:u,transmuxConfig:f}=this;r&&(this.currentTransmuxState=r);const{contiguous:c,discontinuity:y,trackSwitch:E,accurateTimeOffset:U,timeOffset:V,initSegmentChange:ee}=r||u,{audioCodec:De,videoCodec:Ae,defaultInitPts:Ge,duration:ft,initSegmentData:lt}=f,Pt=Fs(s,t);if(Pt&&xr(Pt.method)){const Jt=this.getDecrypter(),vn=cr(Pt.method);if(Jt.isSync()){let jt=Jt.softwareDecrypt(s,Pt.key.buffer,Pt.iv.buffer,vn);if(n.part>-1){const yr=Jt.flush();jt=yr&&yr.buffer}if(!jt)return i.executeEnd=Ni(),$s(n);s=new Uint8Array(jt)}else return this.asyncResult=!0,this.decryptionPromise=Jt.webCryptoDecrypt(s,Pt.key.buffer,Pt.iv.buffer,vn).then(jt=>{const Wn=this.push(jt,null,n);return this.decryptionPromise=null,Wn}),this.decryptionPromise}const Nt=this.needsProbing(y,E);if(Nt){const Jt=this.configureTransmuxer(s);if(Jt)return this.logger.warn(`[transmuxer] ${Jt.message}`),this.observer.emit(m.ERROR,m.ERROR,{type:ce.MEDIA_ERROR,details:A.FRAG_PARSING_ERROR,fatal:!1,error:Jt,reason:Jt.message}),i.executeEnd=Ni(),$s(n)}(y||E||ee||Nt)&&this.resetInitSegment(lt,De,Ae,ft,t),(y||ee||Nt)&&this.resetInitialTimestamp(Ge),c||this.resetContiguity();const on=this.transmux(s,Pt,V,U,n);this.asyncResult=ra(on);const zt=this.currentTransmuxState;return zt.contiguous=!0,zt.discontinuity=!1,zt.trackSwitch=!1,i.executeEnd=Ni(),on}flush(e){const t=e.transmuxing;t.executeStart=Ni();const{decrypter:n,currentTransmuxState:r,decryptionPromise:i}=this;if(i)return this.asyncResult=!0,i.then(()=>this.flush(e));const s=[],{timeOffset:u}=r;if(n){const E=n.flush();E&&s.push(this.push(E.buffer,null,e))}const{demuxer:f,remuxer:c}=this;if(!f||!c){t.executeEnd=Ni();const E=[$s(e)];return this.asyncResult?Promise.resolve(E):E}const y=f.flush(u);return ra(y)?(this.asyncResult=!0,y.then(E=>(this.flushRemux(s,E,e),s))):(this.flushRemux(s,y,e),this.asyncResult?Promise.resolve(s):s)}flushRemux(e,t,n){const{audioTrack:r,videoTrack:i,id3Track:s,textTrack:u}=t,{accurateTimeOffset:f,timeOffset:c}=this.currentTransmuxState;this.logger.log(`[transmuxer.ts]: Flushed ${this.id} sn: ${n.sn}${n.part>-1?" part: "+n.part:""} of ${this.id===re.MAIN?"level":"track"} ${n.level}`);const y=this.remuxer.remux(r,i,s,u,c,f,!0,this.id);e.push({remuxResult:y,chunkMeta:n}),n.transmuxing.executeEnd=Ni()}resetInitialTimestamp(e){const{demuxer:t,remuxer:n}=this;!t||!n||(t.resetTimeStamp(e),n.resetTimeStamp(e))}resetContiguity(){const{demuxer:e,remuxer:t}=this;!e||!t||(e.resetContiguity(),t.resetNextTimestamp())}resetInitSegment(e,t,n,r,i){const{demuxer:s,remuxer:u}=this;!s||!u||(s.resetInitSegment(e,t,n,r),u.resetInitSegment(e,t,n,i))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(e,t,n,r,i){let s;return t&&t.method==="SAMPLE-AES"?s=this.transmuxSampleAes(e,t,n,r,i):s=this.transmuxUnencrypted(e,n,r,i),s}transmuxUnencrypted(e,t,n,r){const{audioTrack:i,videoTrack:s,id3Track:u,textTrack:f}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(i,s,u,f,t,n,!1,this.id),chunkMeta:r}}transmuxSampleAes(e,t,n,r,i){return this.demuxer.demuxSampleAes(e,t,n).then(s=>({remuxResult:this.remuxer.remux(s.audioTrack,s.videoTrack,s.id3Track,s.textTrack,n,r,!1,this.id),chunkMeta:i}))}configureTransmuxer(e){const{config:t,observer:n,typeSupported:r}=this;let i;for(let E=0,U=es.length;E<U;E++){var s;if((s=es[E].demux)!=null&&s.probe(e,this.logger)){i=es[E];break}}if(!i)return new Error("Failed to find demuxer by probing fragment data");const u=this.demuxer,f=this.remuxer,c=i.remux,y=i.demux;(!f||!(f instanceof c))&&(this.remuxer=new c(n,t,r,this.logger)),(!u||!(u instanceof y))&&(this.demuxer=new y(n,t,r,this.logger),this.probe=y.probe)}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new Ii(this.config)),e}}function Fs(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 $s=a=>({remuxResult:{},chunkMeta:a});function ra(a){return"then"in a&&a.then instanceof Function}class ia{constructor(e,t,n,r,i){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=e,this.videoCodec=t,this.initSegmentData=n,this.duration=r,this.defaultInitPts=i||null}}class Ns{constructor(e,t,n,r,i,s){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=e,this.contiguous=t,this.accurateTimeOffset=n,this.trackSwitch=r,this.timeOffset=i,this.initSegmentChange=s}}let bs=0;class gs{constructor(e,t,n,r){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=bs++,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.onWorkerMessage=f=>{const c=f.data,y=this.hls;if(!(!y||!(c!=null&&c.event)||c.instanceNo!==this.instanceNo))switch(c.event){case"init":{var E;const U=(E=this.workerContext)==null?void 0:E.objectURL;U&&self.URL.revokeObjectURL(U);break}case"transmuxComplete":{this.handleTransmuxComplete(c.data);break}case"flush":{this.onFlush(c.data);break}case"workerLog":{y.logger[c.data.logType]&&y.logger[c.data.logType](c.data.message);break}default:{c.data=c.data||{},c.data.frag=this.frag,c.data.part=this.part,c.data.id=this.id,y.trigger(c.event,c.data);break}}},this.onWorkerError=f=>{if(!this.hls)return;const c=new Error(`${f.message} (${f.filename}:${f.lineno})`);this.hls.config.enableWorker=!1,this.hls.logger.warn(`Error in "${this.id}" Web Worker, fallback to inline`),this.hls.trigger(m.ERROR,{type:ce.OTHER_ERROR,details:A.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:c})};const i=e.config;this.hls=e,this.id=t,this.useWorker=!!i.enableWorker,this.onTransmuxComplete=n,this.onFlush=r;const s=(f,c)=>{c=c||{},c.frag=this.frag||void 0,f===m.ERROR&&(c=c,c.parent=this.id,c.part=this.part,this.error=c.error),this.hls.trigger(f,c)};this.observer=new Ka,this.observer.on(m.FRAG_DECRYPTED,s),this.observer.on(m.ERROR,s);const u=yn(i.preferManagedMediaSource);if(this.useWorker&&typeof Worker!="undefined"){const f=this.hls.logger;if(i.workerPath||so()){try{i.workerPath?(f.log(`loading Web Worker ${i.workerPath} for "${t}"`),this.workerContext=ao(i.workerPath)):(f.log(`injecting Web Worker for "${t}"`),this.workerContext=ko());const{worker:y}=this.workerContext;y.addEventListener("message",this.onWorkerMessage),y.addEventListener("error",this.onWorkerError),y.postMessage({instanceNo:this.instanceNo,cmd:"init",typeSupported:u,id:t,config:an(i)})}catch(y){f.warn(`Error setting up "${t}" Web Worker, fallback to inline`,y),this.terminateWorker(),this.error=null,this.transmuxer=new ms(this.observer,u,i,"",t,e.logger)}return}}this.transmuxer=new ms(this.observer,u,i,"",t,e.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const e=this.instanceNo;this.instanceNo=bs++;const t=this.hls.config,n=yn(t.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:e,typeSupported:n,id:this.id,config:an(t)})}}terminateWorker(){if(this.workerContext){const{worker:e}=this.workerContext;this.workerContext=null,e.removeEventListener("message",this.onWorkerMessage),e.removeEventListener("error",this.onWorkerError),Xo(this.hls.config.workerPath)}}destroy(){if(this.workerContext)this.terminateWorker(),this.onWorkerMessage=this.onWorkerError=null;else{const t=this.transmuxer;t&&(t.destroy(),this.transmuxer=null)}const e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.part=null,this.observer=null,this.hls=null}push(e,t,n,r,i,s,u,f,c,y){var E,U;c.transmuxing.start=self.performance.now();const{instanceNo:V,transmuxer:ee}=this,De=s?s.start:i.start,Ae=i.decryptdata,Ge=this.frag,ft=!(Ge&&i.cc===Ge.cc),lt=!(Ge&&c.level===Ge.level),Pt=Ge?c.sn-Ge.sn:-1,Nt=this.part?c.part-this.part.index:-1,on=Pt===0&&c.id>1&&c.id===(Ge==null?void 0:Ge.stats.chunkCount),zt=!lt&&(Pt===1||Pt===0&&(Nt===1||on&&Nt<=0)),Jt=self.performance.now();(lt||Pt||i.stats.parsing.start===0)&&(i.stats.parsing.start=Jt),s&&(Nt||!zt)&&(s.stats.parsing.start=Jt);const vn=!(Ge&&((E=i.initSegment)==null?void 0:E.url)===((U=Ge.initSegment)==null?void 0:U.url)),jt=new Ns(ft,zt,f,lt,De,vn);if(!zt||ft||vn){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${i.type} sn: ${c.sn}${c.part>-1?" part: "+c.part:""} ${this.id===re.MAIN?"level":"track"}: ${c.level} id: ${c.id}
|
|
|
discontinuity: ${ft}
|
|
|
trackSwitch: ${lt}
|
|
|
contiguous: ${zt}
|
|
|
accurateTimeOffset: ${f}
|
|
|
timeOffset: ${De}
|
|
|
initSegmentChange: ${vn}`);const Wn=new ia(n,r,t,u,y);this.configureTransmuxer(Wn)}if(this.frag=i,this.part=s,this.workerContext)this.workerContext.worker.postMessage({instanceNo:V,cmd:"demux",data:e,decryptdata:Ae,chunkMeta:c,state:jt},e instanceof ArrayBuffer?[e]:[]);else if(ee){const Wn=ee.push(e,Ae,c,jt);ra(Wn)?Wn.then(yr=>{this.handleTransmuxComplete(yr)}).catch(yr=>{this.transmuxerError(yr,c,"transmuxer-interface push error")}):this.handleTransmuxComplete(Wn)}}flush(e){e.transmuxing.start=self.performance.now();const{instanceNo:t,transmuxer:n}=this;if(this.workerContext)this.workerContext.worker.postMessage({instanceNo:t,cmd:"flush",chunkMeta:e});else if(n){const r=n.flush(e);ra(r)?r.then(i=>{this.handleFlushResult(i,e)}).catch(i=>{this.transmuxerError(i,e,"transmuxer-interface flush error")}):this.handleFlushResult(r,e)}}transmuxerError(e,t,n){this.hls&&(this.error=e,this.hls.trigger(m.ERROR,{type:ce.MEDIA_ERROR,details:A.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,part:this.part||void 0,fatal:!1,error:e,err:e,reason:n}))}handleFlushResult(e,t){e.forEach(n=>{this.handleTransmuxComplete(n)}),this.onFlush(t)}configureTransmuxer(e){const{instanceNo:t,transmuxer:n}=this;this.workerContext?this.workerContext.worker.postMessage({instanceNo:t,cmd:"configure",config:e}):n&&n.configure(e)}handleTransmuxComplete(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)}}const rs=100;class ki extends ta{constructor(e,t,n){super(e,t,n,"audio-stream-controller",re.AUDIO),this.mainAnchor=null,this.mainFragLoading=null,this.audioOnly=!1,this.bufferedTrack=null,this.switchingTrack=null,this.trackId=-1,this.waitingData=null,this.mainDetails=null,this.flushing=!1,this.bufferFlushed=!1,this.cachedTrackLoadedData=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.resetItem()}resetItem(){this.mainDetails=this.mainAnchor=this.mainFragLoading=this.bufferedTrack=this.switchingTrack=this.waitingData=this.cachedTrackLoadedData=null}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(m.LEVEL_LOADED,this.onLevelLoaded,this),e.on(m.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(m.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(m.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(m.BUFFER_RESET,this.onBufferReset,this),e.on(m.BUFFER_CREATED,this.onBufferCreated,this),e.on(m.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(m.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(m.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(m.FRAG_LOADING,this.onFragLoading,this),e.on(m.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){const{hls:e}=this;e&&(super.unregisterListeners(),e.off(m.LEVEL_LOADED,this.onLevelLoaded,this),e.off(m.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(m.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(m.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(m.BUFFER_RESET,this.onBufferReset,this),e.off(m.BUFFER_CREATED,this.onBufferCreated,this),e.off(m.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(m.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(m.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(m.FRAG_LOADING,this.onFragLoading,this),e.off(m.FRAG_BUFFERED,this.onFragBuffered,this))}onInitPtsFound(e,{frag:t,id:n,initPTS:r,timescale:i}){if(n===re.MAIN){const s=t.cc,u=this.fragCurrent;if(this.initPTS[s]={baseTime:r,timescale:i},this.log(`InitPTS for cc: ${s} found from main: ${r}/${i}`),this.mainAnchor=t,this.state===gn.WAITING_INIT_PTS){const f=this.waitingData;(!f&&!this.loadingParts||f&&f.frag.cc!==s)&&(this.nextLoadPosition=this.findSyncFrag(t).start),this.tick()}else!this.hls.hasEnoughToStart&&u&&u.cc!==s?(this.startFragRequested=!1,this.nextLoadPosition=this.findSyncFrag(t).start,u.abortRequests(),this.resetLoadingState()):this.state===gn.IDLE&&this.tick()}}findSyncFrag(e){const t=this.getLevelDetails(),n=e.cc;return sr(t,n,e)||t&&Ir(t.fragments,n)||e}startLoad(e,t){if(!this.levels){this.startPosition=e,this.state=gn.STOPPED;return}const n=this.lastCurrentTime;this.stopLoad(),this.setInterval(rs),n>0&&e===-1?(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n,this.state=gn.IDLE):this.state=gn.WAITING_TRACK,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}doTick(){switch(this.state){case gn.IDLE:this.doTickIdle();break;case gn.WAITING_TRACK:{const{levels:t,trackId:n}=this,r=t==null?void 0:t[n],i=r==null?void 0:r.details;if(i&&!this.waitForLive(r)){if(this.waitForCdnTuneIn(i))break;this.state=gn.WAITING_INIT_PTS}break}case gn.FRAG_LOADING_WAITING_RETRY:{var e;const t=performance.now(),n=this.retryDate;if(!n||t>=n||(e=this.media)!=null&&e.seeking){const{levels:r,trackId:i}=this;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((r==null?void 0:r[i])||null),this.state=gn.IDLE}break}case gn.WAITING_INIT_PTS:{const t=this.waitingData;if(t){const{frag:n,part:r,cache:i,complete:s}=t,u=this.mainAnchor;if(this.initPTS[n.cc]!==void 0){this.waitingData=null,this.state=gn.FRAG_LOADING;const f=i.flush().buffer,c={frag:n,part:r,payload:f,networkDetails:null};this._handleFragmentLoadProgress(c),s&&super._handleFragmentLoadComplete(c)}else u&&u.cc!==t.frag.cc&&(this.log(`Waiting fragment cc (${n.cc}) cancelled because video is at cc ${u.cc}`),this.nextLoadPosition=this.findSyncFrag(u).start,this.clearWaitingFragment())}else this.state=gn.IDLE}}this.onTickEnd()}clearWaitingFragment(){const e=this.waitingData;e&&(this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.fragmentTracker.removeFragment(e.frag),this.waitingData=null,this.state!==gn.STOPPED&&(this.state=gn.IDLE))}resetLoadingState(){this.clearWaitingFragment(),super.resetLoadingState()}onTickEnd(){const{media:e}=this;e!=null&&e.readyState&&(this.lastCurrentTime=e.currentTime)}doTickIdle(){var e;const{hls:t,levels:n,media:r,trackId:i}=this,s=t.config;if(!this.buffering||!r&&!this.primaryPrefetch&&(this.startFragRequested||!s.startFragPrefetch)||!(n!=null&&n[i]))return;const u=n[i],f=u.details;if(!f||this.waitForLive(u)||this.waitForCdnTuneIn(f)){this.state=gn.WAITING_TRACK,this.startFragRequested=!1;return}const c=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&c&&(this.bufferFlushed=!1,this.afterBufferFlushed(c,x.AUDIO,re.AUDIO));const y=this.getFwdBufferInfo(c,re.AUDIO);if(y===null)return;if(!this.switchingTrack&&this._streamEnded(y,f)){t.trigger(m.BUFFER_EOS,{type:"audio"}),this.state=gn.ENDED;return}const E=y.len,U=t.maxBufferLength,V=f.fragments,ee=V[0].start,De=this.getLoadPosition(),Ae=this.flushing?De:y.end;if(this.switchingTrack&&r){const lt=De;f.PTSKnown&<<ee&&(y.end>ee||y.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),r.currentTime=ee+.05)}if(E>=U&&!this.switchingTrack&&Ae<V[V.length-1].start)return;let Ge=this.getNextFragment(Ae,f);if(Ge&&this.isLoopLoading(Ge,Ae)&&(Ge=this.getNextFragmentLoopLoading(Ge,f,y,re.MAIN,U)),!Ge){this.bufferFlushed=!0;return}let ft=((e=this.mainFragLoading)==null?void 0:e.frag)||null;if(!this.audioOnly&&this.startFragRequested&&ft&&me(Ge)&&!Ge.endList&&(!f.live||!this.loadingParts&&Ae<this.hls.liveSyncPosition)&&(this.fragmentTracker.getState(ft)===er.OK&&(this.mainFragLoading=ft=null),ft&&me(ft))){if(Ge.start>ft.end){const Pt=this.fragmentTracker.getFragAtPos(Ae,re.MAIN);Pt&&Pt.end>ft.end&&(ft=Pt,this.mainFragLoading={frag:Pt,targetBufferTime:null})}if(Ge.start>ft.end)return}this.loadFragment(Ge,u,Ae)}onMediaDetaching(e,t){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(e,t)}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map(n=>new Cn(n))}onAudioTrackSwitching(e,t){const n=!!t.url;this.trackId=t.id;const{fragCurrent:r}=this;r&&(r.abortRequests(),this.removeUnbufferedFrags(r.start)),this.resetLoadingState(),n?(this.switchingTrack=t,this.flushAudioIfNeeded(t),this.state!==gn.STOPPED&&(this.setInterval(rs),this.state=gn.IDLE,this.tick())):(this.resetTransmuxer(),this.switchingTrack=null,this.bufferedTrack=t,this.clearInterval())}onManifestLoading(){super.onManifestLoading(),this.bufferFlushed=this.flushing=this.audioOnly=!1,this.resetItem(),this.trackId=-1}onLevelLoaded(e,t){this.mainDetails=t.details;const n=this.cachedTrackLoadedData;n&&(this.cachedTrackLoadedData=null,this.onAudioTrackLoaded(m.AUDIO_TRACK_LOADED,n))}onAudioTrackLoaded(e,t){var n;const{levels:r}=this,{details:i,id:s,groupId:u,track:f}=t;if(!r){this.warn(`Audio tracks reset while loading track ${s} "${f.name}" of "${u}"`);return}const c=this.mainDetails;if(!c||i.endCC>c.endCC||c.expired){this.cachedTrackLoadedData=t,this.state!==gn.STOPPED&&(this.state=gn.WAITING_TRACK);return}this.cachedTrackLoadedData=null,this.log(`Audio track ${s} "${f.name}" of "${u}" loaded [${i.startSN},${i.endSN}]${i.lastPartSn?`[part-${i.lastPartSn}-${i.lastPartIndex}]`:""},duration:${i.totalduration}`);const y=r[s];let E=0;if(i.live||(n=y.details)!=null&&n.live){if(this.checkLiveUpdate(i),i.deltaUpdateFailed)return;if(y.details){var U;E=this.alignPlaylists(i,y.details,(U=this.levelLastLoaded)==null?void 0:U.details)}i.alignedSliding||(Ss(i,c),i.alignedSliding||Ji(i,c),E=i.fragmentStart)}y.details=i,this.levelLastLoaded=y,this.startFragRequested||this.setStartPosition(c,E),this.hls.trigger(m.AUDIO_TRACK_UPDATED,{details:i,id:s,groupId:t.groupId}),this.state===gn.WAITING_TRACK&&!this.waitForCdnTuneIn(i)&&(this.state=gn.IDLE),this.tick()}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:r,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 ${n.sn} of level ${n.level} will not be buffered`);return}const c=f[u];if(!c){this.warn("Audio track is undefined on fragment load progress");return}const y=c.details;if(!y){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(n.start);return}const E=s.defaultAudioCodec||c.audioCodec||"mp4a.40.2";let U=this.transmuxer;U||(U=this.transmuxer=new gs(this.hls,re.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const V=this.initPTS[n.cc],ee=(t=n.initSegment)==null?void 0:t.data;if(V!==void 0){const Ae=r?r.index:-1,Ge=Ae!==-1,ft=new Ci(n.level,n.sn,n.stats.chunkCount,i.byteLength,Ae,Ge);U.push(i,ee,E,"",n,r,y.totalduration,!1,ft,V)}else{this.log(`Unknown video PTS for cc ${n.cc}, waiting for video PTS before demuxing audio frag ${n.sn} of [${y.startSN} ,${y.endSN}],track ${u}`);const{cache:De}=this.waitingData=this.waitingData||{frag:n,part:r,cache:new Aa,complete:!1};De.push(new Uint8Array(i)),this.state!==gn.STOPPED&&(this.state=gn.WAITING_INIT_PTS)}}_handleFragmentLoadComplete(e){if(this.waitingData){this.waitingData.complete=!0;return}super._handleFragmentLoadComplete(e)}onBufferReset(){this.mediaBuffer=null}onBufferCreated(e,t){this.bufferFlushed=this.flushing=!1;const n=t.tracks.audio;n&&(this.mediaBuffer=n.buffer||null)}onFragLoading(e,t){!this.audioOnly&&t.frag.type===re.MAIN&&me(t.frag)&&(this.mainFragLoading=t,this.state===gn.IDLE&&this.tick())}onFragBuffered(e,t){const{frag:n,part:r}=t;if(n.type!==re.AUDIO){!this.audioOnly&&n.type===re.MAIN&&!n.elementaryStreams.video&&!n.elementaryStreams.audiovideo&&(this.audioOnly=!0,this.mainFragLoading=null);return}if(this.fragContextChanged(n)){this.warn(`Fragment ${n.sn}${r?" p: "+r.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);return}if(me(n)){this.fragPrevious=n;const i=this.switchingTrack;i&&(this.bufferedTrack=i,this.switchingTrack=null,this.hls.trigger(m.AUDIO_TRACK_SWITCHED,S({},i)))}this.fragBufferedComplete(n,r),this.media&&this.tick()}onError(e,t){var n;if(t.fatal){this.state=gn.ERROR;return}switch(t.details){case A.FRAG_GAP:case A.FRAG_PARSING_ERROR:case A.FRAG_DECRYPT_ERROR:case A.FRAG_LOAD_ERROR:case A.FRAG_LOAD_TIMEOUT:case A.KEY_LOAD_ERROR:case A.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(re.AUDIO,t);break;case A.AUDIO_TRACK_LOAD_ERROR:case A.AUDIO_TRACK_LOAD_TIMEOUT:case A.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===gn.WAITING_TRACK&&((n=t.context)==null?void 0:n.type)===w.AUDIO_TRACK&&(this.state=gn.IDLE);break;case A.BUFFER_ADD_CODEC_ERROR:case A.BUFFER_APPEND_ERROR:if(t.parent!=="audio")return;this.resetLoadingState();break;case A.BUFFER_FULL_ERROR:if(t.parent!=="audio")return;this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case A.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onBufferFlushing(e,{type:t}){t!==x.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==x.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===gn.ENDED&&(this.state=gn.IDLE);const n=this.mediaBuffer||this.media;n&&(this.afterBufferFlushed(n,t,re.AUDIO),this.tick())}}_handleTransmuxComplete(e){var t;const n="audio",{hls:r}=this,{remuxResult:i,chunkMeta:s}=e,u=this.getCurrentContext(s);if(!u){this.resetWhenMissingContext(s);return}const{frag:f,part:c,level:y}=u,{details:E}=y,{audio:U,text:V,id3:ee,initSegment:De}=i;if(this.fragContextChanged(f)||!E){this.fragmentTracker.removeFragment(f);return}if(this.state=gn.PARSING,this.switchingTrack&&U&&this.completeAudioSwitch(this.switchingTrack),De!=null&&De.tracks){const Ae=f.initSegment||f;this._bufferInitSegment(y,De.tracks,Ae,s),r.trigger(m.FRAG_PARSING_INIT_SEGMENT,{frag:Ae,id:n,tracks:De.tracks})}if(U){const{startPTS:Ae,endPTS:Ge,startDTS:ft,endDTS:lt}=U;c&&(c.elementaryStreams[x.AUDIO]={startPTS:Ae,endPTS:Ge,startDTS:ft,endDTS:lt}),f.setElementaryStreamInfo(x.AUDIO,Ae,Ge,ft,lt),this.bufferFragmentData(U,f,c,s)}if(ee!=null&&(t=ee.samples)!=null&&t.length){const Ae=g({id:n,frag:f,details:E},ee);r.trigger(m.FRAG_PARSING_METADATA,Ae)}if(V){const Ae=g({id:n,frag:f,details:E},V);r.trigger(m.FRAG_PARSING_USERDATA,Ae)}}_bufferInitSegment(e,t,n,r){if(this.state!==gn.PARSING||(t.video&&delete t.video,t.audiovideo&&delete t.audiovideo,!t.audio))return;const i=t.audio;i.id=re.AUDIO;const s=e.audioCodec;this.log(`Init audio buffer, container:${i.container}, codecs[level/parsed]=[${s}/${i.codec}]`),s&&s.split(",").length===1&&(i.levelCodec=s),this.hls.trigger(m.BUFFER_CODECS,t);const u=i.initSegment;if(u!=null&&u.byteLength){const f={type:"audio",frag:n,part:null,chunkMeta:r,parent:n.type,data:u};this.hls.trigger(m.BUFFER_APPENDING,f)}this.tickImmediate()}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);if(this.switchingTrack||r===er.NOT_LOADED||r===er.PARTIAL){var i;if(!me(e))this._loadInitSegment(e,t);else if((i=t.details)!=null&&i.live&&!this.initPTS[e.cc]){this.log(`Waiting for video PTS in continuity counter ${e.cc} of live stream before loading audio fragment ${e.sn} of level ${this.trackId}`),this.state=gn.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragmentStart!==t.details.fragmentStart&&Ji(t.details,s)}else super.loadFragment(e,t,n)}else this.clearTrackerIfNeeded(e)}flushAudioIfNeeded(e){if(this.media&&this.bufferedTrack){const{name:t,lang:n,assocLang:r,characteristics:i,audioCodec:s,channels:u}=this.bufferedTrack;Ft({name:t,lang:n,assocLang:r,characteristics:i,audioCodec:s,channels:u},e,$t)||(Dn(e.url,this.hls)?(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null):this.bufferedTrack=e)}}completeAudioSwitch(e){const{hls:t}=this;this.flushAudioIfNeeded(e),this.bufferedTrack=e,this.switchingTrack=null,t.trigger(m.AUDIO_TRACK_SWITCHED,S({},e))}}class Vs extends se{constructor(e,t){super(t,e.logger),this.hls=void 0,this.canLoad=!1,this.timer=-1,this.hls=e}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){this.timer!==-1&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(e,t,n){const r=t==null?void 0:t.renditionReports;if(r){let i=-1;for(let s=0;s<r.length;s++){const u=r[s];let f;try{f=new self.URL(u.URI,t.url).href}catch(c){this.warn(`Could not construct new URL for Rendition Report: ${c}`),f=u.URI||""}if(f===e){i=s;break}else f===e.substring(0,f.length)&&(i=s)}if(i!==-1){const s=r[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 y=Math.min(t.age-t.partTarget,t.targetduration);f>=0&&y>t.partTarget&&(f+=1)}const c=n&&bn(n);return new In(u,f>=0?f:void 0,c)}}}loadPlaylist(e){this.clearTimer()}loadingPlaylist(e,t){this.clearTimer()}shouldLoadPlaylist(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)}getUrlWithDirectives(e,t){if(t)try{return t.addDirectives(e)}catch(n){this.warn(`Could not construct new URL with HLS Delivery Directives: ${n}`)}return e}playlistLoaded(e,t,n){const{details:r,stats:i}=t,s=self.performance.now(),u=i.loading.first?Math.max(0,s-i.loading.first):0;r.advancedDateTime=Date.now()-u;const f=this.hls.config.timelineOffset;if(f!==r.appliedTimelineOffset){const y=Math.max(f||0,0);r.appliedTimelineOffset=y,r.fragments.forEach(E=>{E.start=E.playlistOffset+y})}if(r.live||n!=null&&n.live){const y="levelInfo"in t?t.levelInfo:t.track;if(r.reloaded(n),n&&r.fragments.length>0){ea(n,r);const ft=r.playlistParsingError;if(ft){this.warn(ft);const lt=this.hls;if(!lt.config.ignorePlaylistParsingErrors){var c;const{networkDetails:Pt}=t;lt.trigger(m.ERROR,{type:ce.NETWORK_ERROR,details:A.LEVEL_PARSING_ERROR,fatal:!1,url:r.url,error:ft,reason:ft.message,level:t.level||void 0,parent:(c=r.fragments[0])==null?void 0:c.type,networkDetails:Pt,stats:i});return}r.playlistParsingError=null}}r.requestScheduled===-1&&(r.requestScheduled=i.loading.start);const E=this.hls.mainForwardBufferInfo,U=E?E.end-E.len:0,V=(r.edge-U)*1e3,ee=Gs(r,V);if(r.requestScheduled+ee<s?r.requestScheduled=s:r.requestScheduled+=ee,this.log(`live playlist ${e} ${r.advanced?"REFRESHED "+r.lastPartSn+"-"+r.lastPartIndex:r.updated?"UPDATED":"MISSED"}`),!this.canLoad||!r.live)return;let De,Ae,Ge;if(r.canBlockReload&&r.endSN&&r.advanced){const ft=this.hls.config.lowLatencyMode,lt=r.lastPartSn,Pt=r.endSN,Nt=r.lastPartIndex,on=Nt!==-1,zt=lt===Pt;on?zt?(Ae=Pt+1,Ge=ft?0:Nt):(Ae=lt,Ge=ft?Nt+1:r.maxPartIndex):Ae=Pt+1;const Jt=r.age,vn=Jt+r.ageHeader;let jt=Math.min(vn-r.partTarget,r.targetduration*1.5);if(jt>0){if(vn>r.targetduration*3)this.log(`Playlist last advanced ${Jt.toFixed(2)}s ago. Omitting segment and part directives.`),Ae=void 0,Ge=void 0;else if(n!=null&&n.tuneInGoal&&vn-r.partTarget>n.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${n.tuneInGoal} to: ${jt} with playlist age: ${r.age}`),jt=0;else{const Wn=Math.floor(jt/r.targetduration);if(Ae+=Wn,Ge!==void 0){const yr=Math.round(jt%r.targetduration/r.partTarget);Ge+=yr}this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${Jt.toFixed(2)}s goal: ${jt} skip sn ${Wn} to part ${Ge}`)}r.tuneInGoal=jt}if(De=this.getDeliveryDirectives(r,t.deliveryDirectives,Ae,Ge),ft||!zt){r.requestScheduled=s,this.loadingPlaylist(y,De);return}}else(r.canBlockReload||r.canSkipUntil)&&(De=this.getDeliveryDirectives(r,t.deliveryDirectives,Ae,Ge));De&&Ae!==void 0&&r.canBlockReload&&(r.requestScheduled=i.loading.first+Math.max(ee-u*2,ee/2)),this.scheduleLoading(y,De,r)}else this.clearTimer()}scheduleLoading(e,t,n){const r=n||e.details;if(!r){this.loadingPlaylist(e,t);return}const i=self.performance.now(),s=r.requestScheduled;if(i>=s){this.loadingPlaylist(e,t);return}const u=s-i;this.log(`reload live playlist ${e.name||e.bitrate+"bps"} in ${Math.round(u)} ms`),this.clearTimer(),this.timer=self.setTimeout(()=>this.loadingPlaylist(e,t),u)}getDeliveryDirectives(e,t,n,r){let i=bn(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,r=t.part,i=rn.No),new In(n,r,i)}checkRetry(e){const t=e.details,n=ar(e),r=e.errorAction,{action:i,retryCount:s=0,retryConfig:u}=r||{},f=!!r&&!!u&&(i===zn.RetryRequest||!r.resolved&&i===zn.SendAlternateToPenaltyBox);if(f){var c;if(s>=u.maxNumRetry)return!1;if(n&&(c=e.context)!=null&&c.deliveryDirectives)this.warn(`Retrying playlist loading ${s+1}/${u.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const y=rr(u,s);this.clearTimer(),this.timer=self.setTimeout(()=>this.loadPlaylist(),y),this.warn(`Retrying playlist loading ${s+1}/${u.maxNumRetry} after "${t}" in ${y}ms`)}e.levelRetry=!0,r.resolved=!0}return f}}function Ia(a,e){if(a.length!==e.length)return!1;for(let t=0;t<a.length;t++)if(!Ys(a[t].attrs,e[t].attrs))return!1;return!0}function Ys(a,e,t){const n=a["STABLE-RENDITION-ID"];return n&&!t?n===e["STABLE-RENDITION-ID"]:!(t||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some(r=>a[r]!==e[r])}function Xs(a,e){return e.label.toLowerCase()===a.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(a.lang||"").toLowerCase())}class So extends Vs{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(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.MANIFEST_PARSED,this.onManifestParsed,this),e.on(m.LEVEL_LOADING,this.onLevelLoading,this),e.on(m.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(m.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(m.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.MANIFEST_PARSED,this.onManifestParsed,this),e.off(m.LEVEL_LOADING,this.onLevelLoading,this),e.off(m.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(m.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(m.ERROR,this.onError,this)}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,super.destroy()}onManifestLoading(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.audioTracks||[]}onAudioTrackLoaded(e,t){const{id:n,groupId:r,details:i}=t,s=this.tracksInGroup[n];if(!s||s.groupId!==r){this.warn(`Audio track with id:${n} and group:${r} not found in active group ${s==null?void 0:s.groupId}`);return}const u=s.details;s.details=t.details,this.log(`Audio track ${n} "${s.name}" lang:${s.lang} group:${r} loaded [${i.startSN}-${i.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,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 n=t.audioGroups||null,r=this.groupIds;let i=this.currentTrack;if(!n||(r==null?void 0:r.length)!==(n==null?void 0:n.length)||n!=null&&n.some(u=>(r==null?void 0:r.indexOf(u))===-1)){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const u=this.tracks.filter(U=>!n||n.indexOf(U.groupId)!==-1);if(u.length)this.selectDefaultTrack&&!u.some(U=>U.default)&&(this.selectDefaultTrack=!1),u.forEach((U,V)=>{U.id=V});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=u;const f=this.hls.config.audioPreference;if(!i&&f){const U=Tt(f,u,$t);if(U>-1)i=u[U];else{const V=Tt(f,this.tracks);i=this.tracks[V]}}let c=this.findTrackId(i);c===-1&&i&&(c=this.findTrackId(null));const y={audioTracks:u};this.log(`Updating audio tracks, ${u.length} track(s) found in group(s): ${n==null?void 0:n.join(",")}`),this.hls.trigger(m.AUDIO_TRACKS_UPDATED,y);const E=this.trackId;if(c!==-1&&E===-1)this.setAudioTrack(c);else if(u.length&&E===-1){var s;const U=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(U.message),this.hls.trigger(m.ERROR,{type:ce.MEDIA_ERROR,details:A.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:U})}}}onError(e,t){t.fatal||!t.context||t.context.type===w.AUDIO_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&this.checkRetry(t)}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(e){this.selectDefaultTrack=!1,this.setAudioTrack(e)}setAudioOption(e){const t=this.hls;if(t.config.audioPreference=e,e){const n=this.allAudioTracks;if(this.selectDefaultTrack=!1,n.length){const r=this.currentTrack;if(r&&Ft(e,r,$t))return r;const i=Tt(e,this.tracksInGroup,$t);if(i>-1){const s=this.tracksInGroup[i];return this.setAudioTrack(i),s}else if(r){let s=t.loadLevel;s===-1&&(s=t.firstAutoLevel);const u=hn(e,t.levels,n,s,$t);if(u===-1)return null;t.nextLoadLevel=u}if(e.channels||e.audioCodec){const s=Tt(e,n);if(s>-1)return n[s]}}}return null}setAudioTrack(e){const t=this.tracksInGroup;if(e<0||e>=t.length){this.warn(`Invalid audio track id: ${e}`);return}this.selectDefaultTrack=!1;const n=this.currentTrack,r=t[e],i=r.details&&!r.details.live;if(e===this.trackId&&r===n&&i||(this.log(`Switching to audio-track ${e} "${r.name}" lang:${r.lang} group:${r.groupId} channels:${r.channels}`),this.trackId=e,this.currentTrack=r,this.hls.trigger(m.AUDIO_TRACK_SWITCHING,S({},r)),i))return;const s=this.switchParams(r.url,n==null?void 0:n.details,r.details);this.loadPlaylist(s)}findTrackId(e){const t=this.tracksInGroup;for(let n=0;n<t.length;n++){const r=t[n];if(!(this.selectDefaultTrack&&!r.default)&&(!e||Ft(e,r,$t)))return n}if(e){const{name:n,lang:r,assocLang:i,characteristics:s,audioCodec:u,channels:f}=e;for(let c=0;c<t.length;c++){const y=t[c];if(Ft({name:n,lang:r,assocLang:i,characteristics:s,audioCodec:u,channels:f},y,$t))return c}for(let c=0;c<t.length;c++){const y=t[c];if(Ys(e.attrs,y.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return c}for(let c=0;c<t.length;c++){const y=t[c];if(Ys(e.attrs,y.attrs,["LANGUAGE"]))return c}}return-1}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;this.shouldLoadPlaylist(t)&&Dn(t.url,this.hls)&&this.scheduleLoading(t,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=e.id,r=e.groupId,i=this.getUrlWithDirectives(e.url,t),s=e.details,u=s==null?void 0:s.age;this.log(`Loading audio-track ${n} "${e.name}" lang:${e.lang} group:${r}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${u&&s.live?" age "+u.toFixed(1)+(s.type?" "+s.type||0:""):""} ${i}`),this.hls.trigger(m.AUDIO_TRACK_LOADING,{url:i,id:n,groupId:r,deliveryDirectives:t||null,track:e})}}class Fo{constructor(e){this.tracks=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.tracks=e}destroy(){this.tracks=this.queues=null}append(e,t,n){if(this.queues===null||this.tracks===null)return;const r=this.queues[t];r.push(e),r.length===1&&!n&&this.executeNext(t)}appendBlocker(e){return new Promise(t=>{const n={label:"async-blocker",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.append(n,e)})}prependBlocker(e){return new Promise(t=>{if(this.queues){const n={label:"async-blocker-prepend",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.queues[e].unshift(n)}})}removeBlockers(){this.queues!==null&&[this.queues.video,this.queues.audio,this.queues.audiovideo].forEach(e=>{var t;const n=(t=e[0])==null?void 0:t.label;(n==="async-blocker"||n==="async-blocker-prepend")&&(e[0].execute(),e.splice(0,1))})}unblockAudio(e){if(this.queues===null)return;this.queues.audio[0]===e&&this.shiftAndExecuteNext("audio")}executeNext(e){if(this.queues===null||this.tracks===null)return;const t=this.queues[e];if(t.length){const r=t[0];try{r.execute()}catch(i){var n;if(r.onError(i),this.queues===null||this.tracks===null)return;const s=(n=this.tracks[e])==null?void 0:n.buffer;s!=null&&s.updating||this.shiftAndExecuteNext(e)}}}shiftAndExecuteNext(e){this.queues!==null&&(this.queues[e].shift(),this.executeNext(e))}current(e){var t;return((t=this.queues)==null?void 0:t[e][0])||null}toString(){const{queues:e,tracks:t}=this;return e===null||t===null?"<destroyed>":`
|
|
|
${this.list("video")}
|
|
|
${this.list("audio")}
|
|
|
${this.list("audiovideo")}}`}list(e){var t,n;return(t=this.queues)!=null&&t[e]||(n=this.tracks)!=null&&n[e]?`${e}: (${this.listSbInfo(e)}) ${this.listOps(e)}`:""}listSbInfo(e){var t;const n=(t=this.tracks)==null?void 0:t[e],r=n==null?void 0:n.buffer;return r?`SourceBuffer${r.updating?" updating":""}${n.ended?" ended":""}${n.ending?" ending":""}`:"none"}listOps(e){var t;return((t=this.queues)==null?void 0:t[e].map(n=>n.label).join(", "))||""}}const mi=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,Bi="HlsJsTrackRemovedError";class ws extends Error{constructor(e){super(e),this.name=Bi}}class ts extends se{constructor(e,t){super("buffer-controller",e.logger),this.hls=void 0,this.fragmentTracker=void 0,this.details=null,this._objectUrl=null,this.operationQueue=null,this.bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.blockedAudioAppend=null,this.lastVideoAppendEnd=0,this.appendSource=void 0,this.transferData=void 0,this.overrides=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.sourceBuffers=[[null,null],[null,null]],this._onEndStreaming=n=>{var r;this.hls&&((r=this.mediaSource)==null?void 0:r.readyState)==="open"&&this.hls.pauseBuffering()},this._onStartStreaming=n=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=n=>{const{media:r,mediaSource:i}=this;n&&this.log("Media source opened"),!(!r||!i)&&(i.removeEventListener("sourceopen",this._onMediaSourceOpen),r.removeEventListener("emptied",this._onMediaEmptied),this.updateDuration(),this.hls.trigger(m.MEDIA_ATTACHED,{media:r,mediaSource:i}),this.mediaSource!==null&&this.checkPendingTracks())},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:n,_objectUrl:r}=this;n!==r&&this.error(`Media element src was set while attaching MediaSource (${r} > ${n})`)},this.hls=e,this.fragmentTracker=t,this.appendSource=Ce(xe(e.config.preferManagedMediaSource)),this.initTracks(),this.registerListeners()}hasSourceTypes(){return Object.keys(this.tracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.transferData=this.overrides=void 0,this.operationQueue&&(this.operationQueue.destroy(),this.operationQueue=null),this.hls=this.fragmentTracker=null,this._onMediaSourceOpen=this._onMediaSourceClose=null,this._onMediaSourceEnded=null,this._onStartStreaming=this._onEndStreaming=null}registerListeners(){const{hls:e}=this;e.on(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.MANIFEST_PARSED,this.onManifestParsed,this),e.on(m.BUFFER_RESET,this.onBufferReset,this),e.on(m.BUFFER_APPENDING,this.onBufferAppending,this),e.on(m.BUFFER_CODECS,this.onBufferCodecs,this),e.on(m.BUFFER_EOS,this.onBufferEos,this),e.on(m.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(m.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(m.FRAG_PARSED,this.onFragParsed,this),e.on(m.FRAG_CHANGED,this.onFragChanged,this),e.on(m.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.MANIFEST_PARSED,this.onManifestParsed,this),e.off(m.BUFFER_RESET,this.onBufferReset,this),e.off(m.BUFFER_APPENDING,this.onBufferAppending,this),e.off(m.BUFFER_CODECS,this.onBufferCodecs,this),e.off(m.BUFFER_EOS,this.onBufferEos,this),e.off(m.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(m.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(m.FRAG_PARSED,this.onFragParsed,this),e.off(m.FRAG_CHANGED,this.onFragChanged,this),e.off(m.ERROR,this.onError,this)}transferMedia(){const{media:e,mediaSource:t}=this;if(!e)return null;const n={};if(this.operationQueue){const i=this.isUpdating();i||this.operationQueue.removeBlockers();const s=this.isQueued();(i||s)&&this.warn(`Transfering MediaSource with${s?" operations in queue":""}${i?" updating SourceBuffer(s)":""} ${this.operationQueue}`),this.operationQueue.destroy()}const r=this.transferData;return!this.sourceBufferCount&&r&&r.mediaSource===t?g(n,r.tracks):this.sourceBuffers.forEach(i=>{const[s]=i;s&&(n[s]=g({},this.tracks[s]),this.removeBuffer(s)),i[0]=i[1]=null}),{media:e,mediaSource:t,tracks:n}}initTracks(){const e={};this.sourceBuffers=[[null,null],[null,null]],this.tracks=e,this.resetQueue(),this.resetAppendErrors(),this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.lastVideoAppendEnd=0}onManifestLoading(){this.bufferCodecEventsTotal=0,this.details=null}onManifestParsed(e,t){var n;let r=2;(t.audio&&!t.video||!t.altAudio)&&(r=1),this.bufferCodecEventsTotal=r,this.log(`${r} bufferCodec event(s) expected.`),(n=this.transferData)!=null&&n.mediaSource&&this.sourceBufferCount&&r&&this.bufferCreated()}onMediaAttaching(e,t){const n=this.media=t.media,r=xe(this.appendSource);if(this.transferData=this.overrides=void 0,n&&r){const i=!!t.mediaSource;(i||t.overrides)&&(this.transferData=t,this.overrides=t.overrides);const s=this.mediaSource=t.mediaSource||new r;if(this.assignMediaSource(s),i)this._objectUrl=n.src,this.attachTransferred();else{const u=this._objectUrl=self.URL.createObjectURL(s);if(this.appendSource)try{n.removeAttribute("src");const f=self.ManagedMediaSource;n.disableRemotePlayback=n.disableRemotePlayback||f&&s instanceof f,Cs(n),zs(n,u),n.load()}catch(f){n.src=u}else n.src=u}n.addEventListener("emptied",this._onMediaEmptied)}}assignMediaSource(e){var t,n;this.log(`${((t=this.transferData)==null?void 0:t.mediaSource)===e?"transferred":"created"} media source: ${(n=e.constructor)==null?void 0:n.name}`),e.addEventListener("sourceopen",this._onMediaSourceOpen),e.addEventListener("sourceended",this._onMediaSourceEnded),e.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(e.addEventListener("startstreaming",this._onStartStreaming),e.addEventListener("endstreaming",this._onEndStreaming))}attachTransferred(){const e=this.media,t=this.transferData;if(!t||!e)return;const n=this.tracks,r=t.tracks,i=r?Object.keys(r):null,s=i?i.length:0,u=()=>{this.media&&this.mediaSourceOpenOrEnded&&this._onMediaSourceOpen()};if(r&&i&&s){if(!this.tracksReady){this.hls.config.startFragPrefetch=!0,this.log("attachTransferred: waiting for SourceBuffer track info");return}if(this.log(`attachTransferred: (bufferCodecEventsTotal ${this.bufferCodecEventsTotal})
|
|
|
required tracks: ${an(n,(f,c)=>f==="initSegment"?void 0:c)};
|
|
|
transfer tracks: ${an(r,(f,c)=>f==="initSegment"?void 0:c)}}`),!Ee(r,n)){t.mediaSource=null,t.tracks=void 0;const f=e.currentTime,c=this.details,y=Math.max(f,(c==null?void 0:c.fragments[0].start)||0);if(y-f>1){this.log(`attachTransferred: waiting for playback to reach new tracks start time ${f} -> ${y}`);return}this.warn(`attachTransferred: resetting MediaSource for incompatible tracks ("${Object.keys(r)}"->"${Object.keys(n)}") start time: ${y} currentTime: ${f}`),this.onMediaDetaching(m.MEDIA_DETACHING,{}),this.onMediaAttaching(m.MEDIA_ATTACHING,t),e.currentTime=y;return}this.transferData=void 0,i.forEach(f=>{const c=f,y=r[c];if(y){const E=y.buffer;if(E){const U=this.fragmentTracker,V=y.id;if(U.hasFragments(V)||U.hasParts(V)){const Ae=Tr.getBuffered(E);U.detectEvictedFragments(c,Ae,V,null,!0)}const ee=Os(c),De=[c,E];this.sourceBuffers[ee]=De,E.updating&&this.operationQueue&&this.operationQueue.prependBlocker(c),this.trackSourceBuffer(c,y)}}}),u(),this.bufferCreated()}else this.log("attachTransferred: MediaSource w/o SourceBuffers"),u()}get mediaSourceOpenOrEnded(){var e;const t=(e=this.mediaSource)==null?void 0:e.readyState;return t==="open"||t==="ended"}onMediaDetaching(e,t){const n=!!t.transferMedia;this.transferData=this.overrides=void 0;const{media:r,mediaSource:i,_objectUrl:s}=this;if(i){if(this.log(`media source ${n?"transferring":"detaching"}`),n)this.sourceBuffers.forEach(([u])=>{u&&this.removeBuffer(u)}),this.resetQueue();else{if(this.mediaSourceOpenOrEnded){const u=i.readyState==="open";try{const f=i.sourceBuffers;for(let c=f.length;c--;)u&&f[c].abort(),i.removeSourceBuffer(f[c]);u&&i.endOfStream()}catch(f){this.warn(`onMediaDetaching: ${f.message} while calling endOfStream`)}}this.sourceBufferCount&&this.onBufferReset()}i.removeEventListener("sourceopen",this._onMediaSourceOpen),i.removeEventListener("sourceended",this._onMediaSourceEnded),i.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(i.removeEventListener("startstreaming",this._onStartStreaming),i.removeEventListener("endstreaming",this._onEndStreaming)),this.mediaSource=null,this._objectUrl=null}r&&(r.removeEventListener("emptied",this._onMediaEmptied),n||(s&&self.URL.revokeObjectURL(s),this.mediaSrc===s?(r.removeAttribute("src"),this.appendSource&&Cs(r),r.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(m.MEDIA_DETACHED,t)}onBufferReset(){this.sourceBuffers.forEach(([e])=>{e&&this.resetBuffer(e)}),this.initTracks()}resetBuffer(e){var t;const n=(t=this.tracks[e])==null?void 0:t.buffer;if(this.removeBuffer(e),n)try{var r;(r=this.mediaSource)!=null&&r.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(n)}catch(i){this.warn(`onBufferReset ${e}`,i)}delete this.tracks[e]}removeBuffer(e){this.removeBufferListeners(e),this.sourceBuffers[Os(e)]=[null,null];const t=this.tracks[e];t&&(t.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new Fo(this.tracks)}onBufferCodecs(e,t){const n=this.tracks,r=Object.keys(t);this.log(`BUFFER_CODECS: "${r}" (current SB count ${this.sourceBufferCount})`);const i="audiovideo"in t&&(n.audio||n.video)||n.audiovideo&&("audio"in t||"video"in t),s=!i&&this.sourceBufferCount&&this.media&&r.some(u=>!n[u]);if(i||s){this.warn(`Unsupported transition between "${Object.keys(n)}" and "${r}" SourceBuffers`);return}r.forEach(u=>{var f,c,y;const E=t[u],{id:U,codec:V,levelCodec:ee,container:De,metadata:Ae,supplemental:Ge}=E;let ft=n[u];const lt=(f=this.transferData)==null||(c=f.tracks)==null?void 0:c[u],Pt=lt!=null&<.buffer?lt:ft,Nt=(Pt==null?void 0:Pt.pendingCodec)||(Pt==null?void 0:Pt.codec),on=Pt==null?void 0:Pt.levelCodec;ft||(ft=n[u]={buffer:void 0,listeners:[],codec:V,supplemental:Ge,container:De,levelCodec:ee,metadata:Ae,id:U});const zt=Ln(Nt,on),Jt=zt==null?void 0:zt.replace(mi,"$1");let vn=Ln(V,ee);const jt=(y=vn)==null?void 0:y.replace(mi,"$1");vn&&zt&&Jt!==jt&&(u.slice(0,5)==="audio"&&(vn=He(vn,this.appendSource)),this.log(`switching codec ${Nt} to ${vn}`),vn!==(ft.pendingCodec||ft.codec)&&(ft.pendingCodec=vn),ft.container=De,this.appendChangeType(u,De,vn))}),(this.tracksReady||this.sourceBufferCount)&&(t.tracks=this.sourceBufferTracks),!this.sourceBufferCount&&this.mediaSourceOpenOrEnded&&this.checkPendingTracks()}get sourceBufferTracks(){return Object.keys(this.tracks).reduce((e,t)=>{const n=this.tracks[t];return e[t]={id:n.id,container:n.container,codec:n.codec,levelCodec:n.levelCodec},e},{})}appendChangeType(e,t,n){const r=`${t};codecs=${n}`,i={label:`change-type=${r}`,execute:()=>{const s=this.tracks[e];if(s){const u=s.buffer;u!=null&&u.changeType&&(this.log(`changing ${e} sourceBuffer type to ${r}`),u.changeType(r),s.codec=n,s.container=t)}this.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:s=>{this.warn(`Failed to change ${e} SourceBuffer type`,s)}};this.append(i,e,this.isPending(this.tracks[e]))}blockAudio(e){var t;const n=e.start,r=n+e.duration*.05;if(((t=this.fragmentTracker.getAppendedFrag(n,re.MAIN))==null?void 0:t.gap)===!0)return;const s={label:"block-audio",execute:()=>{var u;const f=this.tracks.video;(this.lastVideoAppendEnd>r||f!=null&&f.buffer&&Tr.isBuffered(f.buffer,r)||((u=this.fragmentTracker.getAppendedFrag(r,re.MAIN))==null?void 0:u.gap)===!0)&&(this.blockedAudioAppend=null,this.shiftAndExecuteNext("audio"))},onStart:()=>{},onComplete:()=>{},onError:u=>{this.warn("Error executing block-audio operation",u)}};this.blockedAudioAppend={op:s,frag:e},this.append(s,"audio",!0)}unblockAudio(){const{blockedAudioAppend:e,operationQueue:t}=this;e&&t&&(this.blockedAudioAppend=null,t.unblockAudio(e.op))}onBufferAppending(e,t){const{tracks:n}=this,{data:r,type:i,parent:s,frag:u,part:f,chunkMeta:c}=t,y=c.buffering[i],E=u.sn,U=self.performance.now();y.start=U;const V=u.stats.buffering,ee=f?f.stats.buffering:null;V.start===0&&(V.start=U),ee&&ee.start===0&&(ee.start=U);const De=n.audio;let Ae=!1;i==="audio"&&(De==null?void 0:De.container)==="audio/mpeg"&&(Ae=!this.lastMpegAudioChunk||c.id===1||this.lastMpegAudioChunk.sn!==c.sn,this.lastMpegAudioChunk=c);const Ge=this.tracks.video,ft=Ge==null?void 0:Ge.buffer;if(ft&&E!=="initSegment"){const Nt=f||u,on=this.blockedAudioAppend;if(i==="audio"&&s!=="main"&&!this.blockedAudioAppend){const Jt=Nt.start+Nt.duration*.05,vn=ft.buffered,jt=this.currentOp("video");!vn.length&&!jt?this.blockAudio(Nt):!jt&&!Tr.isBuffered(ft,Jt)&&this.lastVideoAppendEnd<Jt&&this.blockAudio(Nt)}else if(i==="video"){const zt=Nt.end;if(on){const Jt=on.frag.start;(zt>Jt||zt<this.lastVideoAppendEnd||Tr.isBuffered(ft,Jt))&&this.unblockAudio()}this.lastVideoAppendEnd=zt}}const lt=(f||u).start,Pt={label:`append-${i}`,execute:()=>{if(y.executeStart=self.performance.now(),Ae){const Nt=this.tracks[i];if(Nt){const on=Nt.buffer;if(on){const zt=lt-on.timestampOffset;Math.abs(zt)>=.1&&(this.log(`Updating audio SourceBuffer timestampOffset to ${lt} (delta: ${zt}) sn: ${E})`),on.timestampOffset=lt)}}}this.appendExecutor(r,i)},onStart:()=>{},onComplete:()=>{const Nt=self.performance.now();y.executeEnd=y.end=Nt,V.first===0&&(V.first=Nt),ee&&ee.first===0&&(ee.first=Nt);const on={};this.sourceBuffers.forEach(([zt,Jt])=>{zt&&(on[zt]=Tr.getBuffered(Jt))}),this.appendErrors[i]=0,i==="audio"||i==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(m.BUFFER_APPENDED,{type:i,frag:u,part:f,chunkMeta:c,parent:u.type,timeRanges:on})},onError:Nt=>{var on;const zt={type:ce.MEDIA_ERROR,parent:u.type,details:A.BUFFER_APPEND_ERROR,sourceBufferName:i,frag:u,part:f,chunkMeta:c,error:Nt,err:Nt,fatal:!1},Jt=(on=this.media)==null?void 0:on.error;if(Nt.code===DOMException.QUOTA_EXCEEDED_ERR)zt.details=A.BUFFER_FULL_ERROR;else if(Nt.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!Jt)zt.errorAction=ur(!0);else if(Nt.name===Bi&&this.sourceBufferCount===0)zt.errorAction=ur(!0);else{const vn=++this.appendErrors[i];this.warn(`Failed ${vn}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${i}" sourceBuffer (${Jt||"no media error"})`),(vn>=this.hls.config.appendErrorMaxRetry||Jt)&&(zt.fatal=!0)}this.hls.trigger(m.ERROR,zt)}};this.append(Pt,i,this.isPending(this.tracks[i]))}getFlushOp(e,t,n){return this.log(`queuing "${e}" remove ${t}-${n}`),{label:"remove",execute:()=>{this.removeExecutor(e,t,n)},onStart:()=>{},onComplete:()=>{this.hls.trigger(m.BUFFER_FLUSHED,{type:e})},onError:r=>{this.warn(`Failed to remove ${t}-${n} from "${e}" SourceBuffer`,r)}}}onBufferFlushing(e,t){const{type:n,startOffset:r,endOffset:i}=t;n?this.append(this.getFlushOp(n,r,i),n):this.sourceBuffers.forEach(([s])=>{s&&this.append(this.getFlushOp(s,r,i),s)})}onFragParsed(e,t){const{frag:n,part:r}=t,i=[],s=r?r.elementaryStreams:n.elementaryStreams;s[x.AUDIOVIDEO]?i.push("audiovideo"):(s[x.AUDIO]&&i.push("audio"),s[x.VIDEO]&&i.push("video"));const u=()=>{const f=self.performance.now();n.stats.buffering.end=f,r&&(r.stats.buffering.end=f);const c=r?r.stats:n.stats;this.hls.trigger(m.FRAG_BUFFERED,{frag:n,part:r,stats:c,id:n.type})};i.length===0&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${n.type} level: ${n.level} sn: ${n.sn}`),this.blockBuffers(u,i).catch(f=>{this.warn(`Fragment buffered callback ${f}`),this.stepOperationQueue(this.sourceBufferTypes)})}onFragChanged(e,t){this.trimBuffers()}get bufferedToEnd(){return this.sourceBufferCount>0&&!this.sourceBuffers.some(([e])=>{var t,n;return e&&(!((t=this.tracks[e])!=null&&t.ended)||((n=this.tracks[e])==null?void 0:n.ending))})}onBufferEos(e,t){var n;this.sourceBuffers.forEach(([s])=>{if(s){const u=this.tracks[s];(!t.type||t.type===s)&&(u.ending=!0,u.ended||(u.ended=!0,this.log(`${s} buffer reached EOS`)))}});const r=((n=this.overrides)==null?void 0:n.endOfStream)!==!1;this.sourceBufferCount>0&&!this.sourceBuffers.some(([s])=>{var u;return s&&!((u=this.tracks[s])!=null&&u.ended)})&&(r?(this.log("Queueing EOS"),this.blockUntilOpen(()=>{this.tracksEnded();const{mediaSource:s}=this;if(!s||s.readyState!=="open"){s&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${s.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),s.endOfStream(),this.hls.trigger(m.BUFFERED_TO_END,void 0)})):(this.tracksEnded(),this.hls.trigger(m.BUFFERED_TO_END,void 0)))}tracksEnded(){this.sourceBuffers.forEach(([e])=>{if(e!==null){const t=this.tracks[e];t&&(t.ending=!1)}})}onLevelUpdated(e,{details:t}){t.fragments.length&&(this.details=t,this.updateDuration())}updateDuration(){const e=this.getDurationAndRange();e&&this.blockUntilOpen(()=>this.updateMediaSource(e))}onError(e,t){if(t.details===A.BUFFER_APPEND_ERROR&&t.frag){var n;const r=(n=t.errorAction)==null?void 0:n.nextAutoLevel;O(r)&&r!==t.frag.level&&this.resetAppendErrors()}}resetAppendErrors(){this.appendErrors={audio:0,video:0,audiovideo:0}}trimBuffers(){const{hls:e,details:t,media:n}=this;if(!n||t===null||!this.sourceBufferCount)return;const r=e.config,i=n.currentTime,s=t.levelTargetDuration,u=t.live&&r.liveBackBufferLength!==null?r.liveBackBufferLength:r.backBufferLength;if(O(u)&&u>=0){const f=Math.max(u,s),c=Math.floor(i/s)*s-f;this.flushBackBuffer(i,s,c)}if(O(r.frontBufferFlushThreshold)&&r.frontBufferFlushThreshold>0){const f=Math.max(r.maxBufferLength,r.frontBufferFlushThreshold),c=Math.max(f,s),y=Math.floor(i/s)*s+c;this.flushFrontBuffer(i,s,y)}}flushBackBuffer(e,t,n){this.sourceBuffers.forEach(([r,i])=>{if(i){const u=Tr.getBuffered(i);if(u.length>0&&n>u.start(0)){var s;this.hls.trigger(m.BACK_BUFFER_REACHED,{bufferEnd:n});const f=this.tracks[r];if((s=this.details)!=null&&s.live)this.hls.trigger(m.LIVE_BACK_BUFFER_REACHED,{bufferEnd:n});else if(f!=null&&f.ended){this.log(`Cannot flush ${r} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(m.BUFFER_FLUSHING,{startOffset:0,endOffset:n,type:r})}}})}flushFrontBuffer(e,t,n){this.sourceBuffers.forEach(([r,i])=>{if(i){const s=Tr.getBuffered(i),u=s.length;if(u<2)return;const f=s.start(u-1),c=s.end(u-1);if(n>f||e>=f&&e<=c)return;this.hls.trigger(m.BUFFER_FLUSHING,{startOffset:f,endOffset:1/0,type:r})}})}getDurationAndRange(){var e;const{details:t,mediaSource:n}=this;if(!t||!this.media||(n==null?void 0:n.readyState)!=="open")return null;const r=t.edge;if(t.live&&this.hls.config.liveDurationInfinity){if(t.fragments.length&&t.live&&n.setLiveSeekableRange){const c=Math.max(0,t.fragmentStart),y=Math.max(c,r);return{duration:1/0,start:c,end:y}}return{duration:1/0}}const i=(e=this.overrides)==null?void 0:e.duration;if(i)return O(i)?{duration:i}:null;const s=this.media.duration,u=O(n.duration)?n.duration:0;return r>u&&r>s||!O(s)?{duration:r}:null}updateMediaSource({duration:e,start:t,end:n}){const r=this.mediaSource;!this.media||!r||r.readyState!=="open"||(r.duration!==e&&(O(e)&&this.log(`Updating MediaSource duration to ${e.toFixed(3)}`),r.duration=e),t!==void 0&&n!==void 0&&(this.log(`MediaSource duration is set to ${r.duration}. Setting seekable range to ${t}-${n}.`),r.setLiveSeekableRange(t,n)))}get tracksReady(){const e=this.pendingTrackCount;return e>0&&(e>=this.bufferCodecEventsTotal||this.isPending(this.tracks.audiovideo))}checkPendingTracks(){const{bufferCodecEventsTotal:e,pendingTrackCount:t,tracks:n}=this;if(this.log(`checkPendingTracks (pending: ${t} codec events expected: ${e}) ${an(n)}`),this.tracksReady){var r;const i=(r=this.transferData)==null?void 0:r.tracks;i&&Object.keys(i).length?this.attachTransferred():this.createSourceBuffers()}}bufferCreated(){if(this.sourceBufferCount){const e={};this.sourceBuffers.forEach(([t,n])=>{if(t){const r=this.tracks[t];e[t]={buffer:n,container:r.container,codec:r.codec,supplemental:r.supplemental,levelCodec:r.levelCodec,id:r.id,metadata:r.metadata}}}),this.hls.trigger(m.BUFFER_CREATED,{tracks:e}),this.log(`SourceBuffers created. Running queue: ${this.operationQueue}`),this.sourceBuffers.forEach(([t])=>{this.executeNext(t)})}else{const e=new Error("could not create source buffer for media codec(s)");this.hls.trigger(m.ERROR,{type:ce.MEDIA_ERROR,details:A.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:e,reason:e.message})}}createSourceBuffers(){const{tracks:e,sourceBuffers:t,mediaSource:n}=this;if(!n)throw new Error("createSourceBuffers called when mediaSource was null");for(const i in e){const s=i,u=e[s];if(this.isPending(u)){const f=this.getTrackCodec(u,s),c=`${u.container};codecs=${f}`;u.codec=f,this.log(`creating sourceBuffer(${c})${this.currentOp(s)?" Queued":""} ${an(u)}`);try{const y=n.addSourceBuffer(c),E=Os(s),U=[s,y];t[E]=U,u.buffer=y}catch(y){var r;this.error(`error while trying to add sourceBuffer: ${y.message}`),this.shiftAndExecuteNext(s),(r=this.operationQueue)==null||r.removeBlockers(),delete this.tracks[s],this.hls.trigger(m.ERROR,{type:ce.MEDIA_ERROR,details:A.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:y,sourceBufferName:s,mimeType:c,parent:u.id});return}this.trackSourceBuffer(s,u)}}this.bufferCreated()}getTrackCodec(e,t){const n=e.supplemental;let r=e.codec;n&&(t==="video"||t==="audiovideo")&&nt(n,"video")&&(r=xn(r,n));const i=Ln(r,e.levelCodec);return i?t.slice(0,5)==="audio"?He(i,this.appendSource):i:""}trackSourceBuffer(e,t){const n=t.buffer;if(!n)return;const r=this.getTrackCodec(t,e);this.tracks[e]={buffer:n,codec:r,container:t.container,levelCodec:t.levelCodec,supplemental:t.supplemental,metadata:t.metadata,id:t.id,listeners:[]},this.removeBufferListeners(e),this.addBufferListener(e,"updatestart",this.onSBUpdateStart),this.addBufferListener(e,"updateend",this.onSBUpdateEnd),this.addBufferListener(e,"error",this.onSBUpdateError),this.appendSource&&this.addBufferListener(e,"bufferedchange",(i,s)=>{const u=s.removedRanges;u!=null&&u.length&&this.hls.trigger(m.BUFFER_FLUSHED,{type:i})})}get mediaSrc(){var e,t;const n=((e=this.media)==null||(t=e.querySelector)==null?void 0:t.call(e,"source"))||this.media;return n==null?void 0:n.src}onSBUpdateStart(e){const t=this.currentOp(e);t&&t.onStart()}onSBUpdateEnd(e){var t;if(((t=this.mediaSource)==null?void 0:t.readyState)==="closed"){this.resetBuffer(e);return}const n=this.currentOp(e);n&&(n.onComplete(),this.shiftAndExecuteNext(e))}onSBUpdateError(e,t){var n;const r=new Error(`${e} SourceBuffer error. MediaSource readyState: ${(n=this.mediaSource)==null?void 0:n.readyState}`);this.error(`${r}`,t),this.hls.trigger(m.ERROR,{type:ce.MEDIA_ERROR,details:A.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:r,fatal:!1});const i=this.currentOp(e);i&&i.onError(r)}removeExecutor(e,t,n){const{media:r,mediaSource:i}=this,s=this.tracks[e],u=s==null?void 0:s.buffer;if(!r||!i||!u){this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),this.shiftAndExecuteNext(e);return}const f=O(r.duration)?r.duration:1/0,c=O(i.duration)?i.duration:1/0,y=Math.max(0,t),E=Math.min(n,f,c);E>y&&(!s.ending||s.ended)?(s.ended=!1,this.log(`Removing [${y},${E}] from the ${e} SourceBuffer`),u.remove(y,E)):this.shiftAndExecuteNext(e)}appendExecutor(e,t){const n=this.tracks[t],r=n==null?void 0:n.buffer;if(!r)throw new ws(`Attempting to append to the ${t} SourceBuffer, but it does not exist`);n.ending=!1,n.ended=!1,r.appendBuffer(e)}blockUntilOpen(e){if(this.isUpdating()||this.isQueued())this.blockBuffers(e).catch(t=>{this.warn(`SourceBuffer blocked callback ${t}`),this.stepOperationQueue(this.sourceBufferTypes)});else try{e()}catch(t){this.warn(`Callback run without blocking ${this.operationQueue} ${t}`)}}isUpdating(){return this.sourceBuffers.some(([e,t])=>e&&t.updating)}isQueued(){return this.sourceBuffers.some(([e])=>e&&!!this.currentOp(e))}isPending(e){return!!e&&!e.buffer}blockBuffers(e,t=this.sourceBufferTypes){if(!t.length)return this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(e);const{operationQueue:n}=this,r=t.map(s=>this.appendBlocker(s));return t.length>1&&!!this.blockedAudioAppend&&this.unblockAudio(),Promise.all(r).then(s=>{n===this.operationQueue&&(e(),this.stepOperationQueue(this.sourceBufferTypes))})}stepOperationQueue(e){e.forEach(t=>{var n;const r=(n=this.tracks[t])==null?void 0:n.buffer;!r||r.updating||this.shiftAndExecuteNext(t)})}append(e,t,n){this.operationQueue&&this.operationQueue.append(e,t,n)}appendBlocker(e){if(this.operationQueue)return this.operationQueue.appendBlocker(e)}currentOp(e){return this.operationQueue?this.operationQueue.current(e):null}executeNext(e){e&&this.operationQueue&&this.operationQueue.executeNext(e)}shiftAndExecuteNext(e){this.operationQueue&&this.operationQueue.shiftAndExecuteNext(e)}get pendingTrackCount(){return Object.keys(this.tracks).reduce((e,t)=>e+(this.isPending(this.tracks[t])?1:0),0)}get sourceBufferCount(){return this.sourceBuffers.reduce((e,[t])=>e+(t?1:0),0)}get sourceBufferTypes(){return this.sourceBuffers.map(([e])=>e).filter(e=>!!e)}addBufferListener(e,t,n){const r=this.tracks[e];if(!r)return;const i=r.buffer;if(!i)return;const s=n.bind(this,e);r.listeners.push({event:t,listener:s}),i.addEventListener(t,s)}removeBufferListeners(e){const t=this.tracks[e];if(!t)return;const n=t.buffer;n&&(t.listeners.forEach(r=>{n.removeEventListener(r.event,r.listener)}),t.listeners.length=0)}}function Cs(a){const e=a.querySelectorAll("source");[].slice.call(e).forEach(t=>{a.removeChild(t)})}function zs(a,e){const t=self.document.createElement("source");t.type="video/mp4",t.src=e,a.appendChild(t)}function Os(a){return a==="audio"?1:0}class sa{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(m.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(m.MANIFEST_PARSED,this.onManifestParsed,this),e.on(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(m.BUFFER_CODECS,this.onBufferCodecs,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:e}=this;e.off(m.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(m.MANIFEST_PARSED,this.onManifestParsed,this),e.off(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(m.BUFFER_CODECS,this.onBufferCodecs,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(e,t){const n=this.hls.levels[t.droppedLevel];this.isLevelAllowed(n)&&this.restrictedLevels.push({bitrate:n.bitrate,height:n.height,width:n.width})}onMediaAttaching(e,t){this.media=t.media instanceof HTMLVideoElement?t.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()}onManifestParsed(e,t){const n=this.hls;this.restrictedLevels=[],this.firstLevel=t.firstLevel,n.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onLevelsUpdated(e,t){this.timer&&O(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(e,t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onMediaDetaching(){this.stopCapping(),this.media=null}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0){this.clientRect=null;return}const e=this.hls.levels;if(e.length){const t=this.hls,n=this.getMaxLevel(e.length-1);n!==this.autoLevelCapping&&t.logger.log(`Setting autoLevelCapping to ${n}: ${e[n].height}p@${e[n].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),t.autoLevelCapping=n,t.autoLevelEnabled&&t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}}getMaxLevel(e){const t=this.hls.levels;if(!t.length)return-1;const n=t.filter((r,i)=>this.isLevelAllowed(r)&&i<=e);return this.clientRect=null,sa.getMaxLevelByMediaSize(n,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const e=this.media,t={width:0,height:0};if(e){const n=e.getBoundingClientRect();t.width=n.width,t.height=n.height,!t.width&&!t.height&&(t.width=n.right-n.left||e.width||0,t.height=n.bottom-n.top||e.height||0)}return this.clientRect=t,t}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let e=1;if(!this.hls.config.ignoreDevicePixelRatio)try{e=self.devicePixelRatio}catch(t){}return Math.min(e,this.hls.config.maxDevicePixelRatio)}isLevelAllowed(e){return!this.restrictedLevels.some(n=>e.bitrate===n.bitrate&&e.width===n.width&&e.height===n.height)}static getMaxLevelByMediaSize(e,t,n){if(!(e!=null&&e.length))return-1;const r=(u,f)=>f?u.width!==f.width||u.height!==f.height:!0;let i=e.length-1;const s=Math.max(t,n);for(let u=0;u<e.length;u+=1){const f=e[u];if((f.width>=s||f.height>=s)&&r(f,e[u+1])){i=u;break}}return i}}const Ks={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},bl={HLS:"h"},eo={OBJECT:"CMCD-Object",REQUEST:"CMCD-Request",SESSION:"CMCD-Session",STATUS:"CMCD-Status"},Qo={[eo.OBJECT]:["br","d","ot","tb"],[eo.REQUEST]:["bl","dl","mtp","nor","nrr","su"],[eo.SESSION]:["cid","pr","sf","sid","st","v"],[eo.STATUS]:["bs","rtp"]};class ja{constructor(e,t){Array.isArray(e)&&(e=e.map(n=>n instanceof ja?n:new ja(n))),this.value=e,this.params=t}}const Jo="Dict";function wo(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 qo(a,e,t,n){return new Error(`failed to ${a} "${wo(e)}" as ${t}`,{cause:n})}function ca(a,e,t){return qo("serialize",a,e,t)}class zo{constructor(e){this.description=e}}const Uo="Bare Item",El="Boolean";function Sl(a){if(typeof a!="boolean")throw ca(a,El);return a?"?1":"?0"}const wl="Byte Sequence";function el(a){if(ArrayBuffer.isView(a)===!1)throw ca(a,wl);return`:${yo(a)}:`}const Co="Integer";function Ko(a){return a<-999999999999999||999999999999999<a}function To(a){if(Ko(a))throw ca(a,Co);return a.toString()}function tl(a){return`@${To(a.getTime()/1e3)}`}const nl="Decimal";function rl(a){const e=bo(a,3);if(Math.floor(Math.abs(e)).toString().length>12)throw ca(a,nl);const t=e.toString();return t.includes(".")?t:`${t}.0`}const il="String",Cl=/[\x00-\x1f\x7f]+/;function sl(a){if(Cl.test(a))throw ca(a,il);return`"${a.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Ho(a){return a.description||a.toString().slice(7,-1)}const al="Token";function Ao(a){const e=Ho(a);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw ca(e,al);return e}function Do(a){switch(typeof a){case"number":if(!O(a))throw ca(a,Uo);return Number.isInteger(a)?To(a):rl(a);case"string":return sl(a);case"symbol":return Ao(a);case"boolean":return Sl(a);case"object":if(a instanceof Date)return tl(a);if(a instanceof Uint8Array)return el(a);if(a instanceof zo)return Ao(a);default:throw ca(a,Uo)}}const Tl="Key";function xi(a){if(/^[a-z*][a-z0-9\-_.*]*$/.test(a)===!1)throw ca(a,Tl);return a}function Ui(a){return a==null?"":Object.entries(a).map(([e,t])=>t===!0?`;${xi(e)}`:`;${xi(e)}=${Do(t)}`).join("")}function Zs(a){return a instanceof ja?`${Do(a.value)}${Ui(a.params)}`:Do(a)}function Ra(a){return`(${a.value.map(Zs).join(" ")})${Ui(a.params)}`}function La(a,e={whitespace:!0}){if(typeof a!="object")throw ca(a,Jo);const t=a instanceof Map?a.entries():Object.entries(a),n=e!=null&&e.whitespace?" ":"";return Array.from(t).map(([r,i])=>{i instanceof ja||(i=new ja(i));let s=xi(r);return i.value===!0?s+=Ui(i.params):(s+="=",Array.isArray(i.value)?s+=Ra(i):s+=Zs(i)),s}).join(`,${n}`)}function ol(a,e){return La(a,e)}function Zo(a){return a==="ot"||a==="sf"||a==="st"}function jo(a){return typeof a=="number"?O(a):a!=null&&a!==""&&a!==!1}const Wa=a=>Math.round(a),Wo=(a,e)=>(e!=null&&e.baseUrl&&(a=_o(a,e.baseUrl)),encodeURIComponent(a)),ll=a=>Wa(a/100)*100,ku={br:Wa,d:Wa,bl:ll,dl:ll,mtp:ll,nor:Wo,rtp:ll,tb:Wa};function Mu(a,e){const t={};if(a==null||typeof a!="object")return t;const n=Object.keys(a).sort(),r=g({},ku,e==null?void 0:e.formatters),i=e==null?void 0:e.filter;return n.forEach(s=>{if(i!=null&&i(s))return;let u=a[s];const f=r[s];f&&(u=f(u,e)),!(s==="v"&&u===1)&&(s=="pr"&&u===1||jo(u)&&(Zo(s)&&typeof u=="string"&&(u=new zo(u)),t[s]=u))}),t}function Zl(a,e={}){return a?ol(Mu(a,e),g({whitespace:!1},e)):""}function Nu(a,e={}){const t={};if(!a)return t;const n=Object.entries(a),r=Object.entries(Qo).concat(Object.entries((e==null?void 0:e.customHeaderMap)||{})),i=n.reduce((s,u)=>{var f,c;const[y,E]=u,U=((f=r.find(V=>V[1].includes(y)))===null||f===void 0?void 0:f[0])||eo.REQUEST;return(c=s[U])!==null&&c!==void 0||(s[U]={}),s[U][y]=E,s},{});return Object.entries(i).reduce((s,[u,f])=>(s[u]=Zl(f,e),s),t)}function Bu(a,e,t){return g(a,Nu(e,t))}const Fu="CMCD";function $u(a,e={}){if(!a)return"";const t=Zl(a,e);return`${Fu}=${encodeURIComponent(t)}`}const jl=/CMCD=[^&#]+/;function zu(a,e,t){const n=$u(e,t);if(!n)return a;if(jl.test(a))return a.replace(jl,n);const r=a.includes("?")?"&":"?";return`${a}${r}${n}`}class Uu{constructor(e){this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=()=>{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=r=>{try{this.apply(r,{ot:Ks.MANIFEST,su:!this.initialized})}catch(i){this.hls.logger.warn("Could not generate manifest CMCD data.",i)}},this.applyFragmentData=r=>{try{const{frag:i,part:s}=r,u=this.hls.levels[i.level],f=this.getObjectType(i),c={d:(s||i).duration*1e3,ot:f};(f===Ks.VIDEO||f===Ks.AUDIO||f==Ks.MUXED)&&(c.br=u.bitrate/1e3,c.tb=this.getTopBandwidth(f)/1e3,c.bl=this.getBufferLength(f));const y=s?this.getNextPart(s):this.getNextFrag(i);y!=null&&y.url&&y.url!==i.url&&(c.nor=y.url),this.apply(r,c)}catch(i){this.hls.logger.warn("Could not generate segment CMCD data.",i)}},this.hls=e;const t=this.config=e.config,{cmcd:n}=t;n!=null&&(t.pLoader=this.createPlaylistLoader(),t.fLoader=this.createFragmentLoader(),this.sid=n.sessionId||e.sessionId,this.cid=n.contentId,this.useHeaders=n.useHeaders===!0,this.includeKeys=n.includeKeys,this.registerListeners())}registerListeners(){const e=this.hls;e.on(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(m.MEDIA_DETACHED,this.onMediaDetached,this),e.on(m.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const e=this.hls;e.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(m.MEDIA_DETACHED,this.onMediaDetached,this),e.off(m.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=this.media=null}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(e,t){var n,r;this.audioBuffer=(n=t.tracks.audio)==null?void 0:n.buffer,this.videoBuffer=(r=t.tracks.video)==null?void 0:r.buffer}createData(){var e;return{v:1,sf:bl.HLS,sid:this.sid,cid:this.cid,pr:(e=this.media)==null?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){g(t,this.createData());const n=t.ot===Ks.INIT||t.ot===Ks.VIDEO||t.ot===Ks.MUXED;this.starved&&n&&(t.bs=!0,t.su=!0,this.starved=!1),t.su==null&&(t.su=this.buffering);const{includeKeys:r}=this;r&&(t=Object.keys(t).reduce((s,u)=>(r.includes(u)&&(s[u]=t[u]),s),{}));const i={baseUrl:e.url};this.useHeaders?(e.headers||(e.headers={}),Bu(e.headers,t,i)):e.url=zu(e.url,t,i)}getNextFrag(e){var t;const n=(t=this.hls.levels[e.level])==null?void 0:t.details;if(n){const r=e.sn-n.startSN;return n.fragments[r+1]}}getNextPart(e){var t,n;const{index:r,fragment:i}=e,s=(t=this.hls.levels[i.level])==null||(n=t.details)==null?void 0:n.partList;if(s){const{sn:u}=i;for(let f=s.length-1;f>=0;f--){const c=s[f];if(c.index===r&&c.fragment.sn===u)return s[f+1]}}}getObjectType(e){const{type:t}=e;if(t==="subtitle")return Ks.TIMED_TEXT;if(e.sn==="initSegment")return Ks.INIT;if(t==="audio")return Ks.AUDIO;if(t==="main")return this.hls.audioTracks.length?Ks.VIDEO:Ks.MUXED}getTopBandwidth(e){let t=0,n;const r=this.hls;if(e===Ks.AUDIO)n=r.audioTracks;else{const i=r.maxAutoLevel,s=i>-1?i+1:r.levels.length;n=r.levels.slice(0,s)}for(const i of n)i.bitrate>t&&(t=i.bitrate);return t>0?t:NaN}getBufferLength(e){const t=this.media,n=e===Ks.AUDIO?this.audioBuffer:this.videoBuffer;return!n||!t?NaN:Tr.bufferInfo(n,t.currentTime,this.config.maxBufferHole).len*1e3}createPlaylistLoader(){const{pLoader:e}=this.config,t=this.applyPlaylistData,n=e||this.config.loader;return class{constructor(i){this.loader=void 0,this.loader=new n(i)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(i,s,u){t(i),this.loader.load(i,s,u)}}}createFragmentLoader(){const{fLoader:e}=this.config,t=this.applyFragmentData,n=e||this.config.loader;return class{constructor(i){this.loader=void 0,this.loader=new n(i)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(i,s,u){t(i),this.loader.load(i,s,u)}}}}const Ku=3e5;class Hu extends se{constructor(e){super("content-steering",e.logger),this.hls=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this._pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=e,this.registerListeners()}registerListeners(){const e=this.hls;e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(m.MANIFEST_PARSED,this.onManifestParsed,this),e.on(m.ERROR,this.onError,this)}unregisterListeners(){const e=this.hls;e&&(e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(m.MANIFEST_PARSED,this.onManifestParsed,this),e.off(m.ERROR,this.onError,this))}pathways(){return(this.levels||[]).reduce((e,t)=>(e.indexOf(t.pathwayId)===-1&&e.push(t.pathwayId),e),[])}get pathwayPriority(){return this._pathwayPriority}set pathwayPriority(e){this.updatePathwayPriority(e)}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const e=this.timeToLoad*1e3-(performance.now()-this.updated);if(e>0){this.scheduleRefresh(this.uri,e);return}}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){this.reloadTimer!==-1&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(e){const t=this.levels;t&&(this.levels=t.filter(n=>n!==e))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(e,t){const{contentSteering:n}=t;n!==null&&(this.pathwayId=n.pathwayId,this.uri=n.uri,this.started&&this.startLoad())}onManifestParsed(e,t){this.audioTracks=t.audioTracks,this.subtitleTracks=t.subtitleTracks}onError(e,t){const{errorAction:n}=t;if((n==null?void 0:n.action)===zn.SendAlternateToPenaltyBox&&n.flags===dt.MoveAllAlternatesMatchingHost){const r=this.levels;let i=this._pathwayPriority,s=this.pathwayId;if(t.context){const{groupId:u,pathwayId:f,type:c}=t.context;u&&r?s=this.getPathwayForGroupId(u,c,s):f&&(s=f)}s in this.penalizedPathways||(this.penalizedPathways[s]=performance.now()),!i&&r&&(i=this.pathways()),i&&i.length>1&&(this.updatePathwayPriority(i),n.resolved=this.pathwayId!==s),n.resolved||this.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${s} levels: ${r&&r.length} priorities: ${an(i)} penalized: ${an(this.penalizedPathways)}`)}}filterParsedLevels(e){this.levels=e;let t=this.getLevelsForPathway(this.pathwayId);if(t.length===0){const n=e[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${n}"`),t=this.getLevelsForPathway(n),this.pathwayId=n}return t.length!==e.length&&this.log(`Found ${t.length}/${e.length} levels in Pathway "${this.pathwayId}"`),t}getLevelsForPathway(e){return this.levels===null?[]:this.levels.filter(t=>e===t.pathwayId)}updatePathwayPriority(e){this._pathwayPriority=e;let t;const n=this.penalizedPathways,r=performance.now();Object.keys(n).forEach(i=>{r-n[i]>Ku&&delete n[i]});for(let i=0;i<e.length;i++){const s=e[i];if(s in n)continue;if(s===this.pathwayId)return;const 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,Ta(t),this.hls.trigger(m.LEVELS_UPDATED,{levels:t});const c=this.hls.levels[u];f&&c&&this.levels&&(c.attrs["STABLE-VARIANT-ID"]!==f.attrs["STABLE-VARIANT-ID"]&&c.bitrate!==f.bitrate&&this.log(`Unstable Pathways change from bitrate ${f.bitrate} to ${c.bitrate}`),this.hls.nextLoadLevel=u);break}}}getPathwayForGroupId(e,t,n){const r=this.getLevelsForPathway(n).concat(this.levels||[]);for(let i=0;i<r.length;i++)if(t===w.AUDIO_TRACK&&r[i].hasAudioGroup(e)||t===w.SUBTITLE_TRACK&&r[i].hasSubtitleGroup(e))return r[i].pathwayId;return n}clonePathways(e){const t=this.levels;if(!t)return;const n={},r={};e.forEach(i=>{const{ID:s,"BASE-ID":u,"URI-REPLACEMENT":f}=i;if(t.some(y=>y.pathwayId===s))return;const c=this.getLevelsForPathway(u).map(y=>{const E=new Br(y.attrs);E["PATHWAY-ID"]=s;const U=E.AUDIO&&`${E.AUDIO}_clone_${s}`,V=E.SUBTITLES&&`${E.SUBTITLES}_clone_${s}`;U&&(n[E.AUDIO]=U,E.AUDIO=U),V&&(r[E.SUBTITLES]=V,E.SUBTITLES=V);const ee=Gl(y.uri,E["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",f),De=new Cn({attrs:E,audioCodec:y.audioCodec,bitrate:y.bitrate,height:y.height,name:y.name,url:ee,videoCodec:y.videoCodec,width:y.width});if(y.audioGroups)for(let Ae=1;Ae<y.audioGroups.length;Ae++)De.addGroupId("audio",`${y.audioGroups[Ae]}_clone_${s}`);if(y.subtitleGroups)for(let Ae=1;Ae<y.subtitleGroups.length;Ae++)De.addGroupId("text",`${y.subtitleGroups[Ae]}_clone_${s}`);return De});t.push(...c),Wl(this.audioTracks,n,f,s),Wl(this.subtitleTracks,r,f,s)})}loadSteeringManifest(e){const t=this.hls.config,n=t.loader;this.loader&&this.loader.destroy(),this.loader=new n(t);let r;try{r=new self.URL(e)}catch(y){this.enabled=!1,this.log(`Failed to parse Steering Manifest URI: ${e}`);return}if(r.protocol!=="data:"){const y=(this.hls.bandwidthEstimate||t.abrEwmaDefaultEstimate)|0;r.searchParams.set("_HLS_pathway",this.pathwayId),r.searchParams.set("_HLS_throughput",""+y)}const i={responseType:"json",url:r.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},c={onSuccess:(y,E,U,V)=>{this.log(`Loaded steering manifest: "${r}"`);const ee=y.data;if((ee==null?void 0:ee.VERSION)!==1){this.log(`Steering VERSION ${ee.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=ee.TTL;const{"RELOAD-URI":De,"PATHWAY-CLONES":Ae,"PATHWAY-PRIORITY":Ge}=ee;if(De)try{this.uri=new self.URL(De,r).href}catch(lt){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${De}`);return}this.scheduleRefresh(this.uri||U.url),Ae&&this.clonePathways(Ae);const ft={steeringManifest:ee,url:r.toString()};this.hls.trigger(m.STEERING_MANIFEST_LOADED,ft),Ge&&this.updatePathwayPriority(Ge)},onError:(y,E,U,V)=>{if(this.log(`Error loading steering manifest: ${y.code} ${y.text} (${E.url})`),this.stopLoad(),y.code===410){this.enabled=!1,this.log(`Steering manifest ${E.url} no longer available`);return}let ee=this.timeToLoad*1e3;if(y.code===429){const De=this.loader;if(typeof(De==null?void 0:De.getResponseHeader)=="function"){const Ae=De.getResponseHeader("Retry-After");Ae&&(ee=parseFloat(Ae)*1e3)}this.log(`Steering manifest ${E.url} rate limited`);return}this.scheduleRefresh(this.uri||E.url,ee)},onTimeout:(y,E,U)=>{this.log(`Timeout loading steering manifest (${E.url})`),this.scheduleRefresh(this.uri||E.url)}};this.log(`Requesting steering manifest: ${r}`),this.loader.load(i,f,c)}scheduleRefresh(e,t=this.timeToLoad*1e3){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var n;const r=(n=this.hls)==null?void 0:n.media;if(r&&!r.ended){this.loadSteeringManifest(e);return}this.scheduleRefresh(e,this.timeToLoad*1e3)},t)}}function Wl(a,e,t,n){a&&Object.keys(e).forEach(r=>{const i=a.filter(s=>s.groupId===r).map(s=>{const u=g({},s);return u.details=void 0,u.attrs=new Br(u.attrs),u.url=u.attrs.URI=Gl(s.url,s.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",t),u.groupId=u.attrs["GROUP-ID"]=e[r],u.attrs["PATHWAY-ID"]=n,u});a.push(...i)})}function Gl(a,e,t,n){const{HOST:r,PARAMS:i,[t]:s}=n;let u;e&&(u=s==null?void 0:s[e],u&&(a=u));const f=new self.URL(a);return r&&!u&&(f.host=r),i&&Object.keys(i).sort().forEach(c=>{c&&f.searchParams.set(c,i[c])}),f.href}class Io extends se{constructor(e){super("eme",e.logger),this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=Io.CDMCleanupPromise?[Io.CDMCleanupPromise]:[],this.onMediaEncrypted=t=>{const{initDataType:n,initData:r}=t,i=`"${t.type}" event: init data type: "${n}"`;if(this.debug(i),r!==null){if(!this.keyFormatPromise){let s=Object.keys(this.keySystemAccessPromises);s.length||(s=or(this.config));const u=s.map(us).filter(f=>!!f);this.keyFormatPromise=this.getKeyFormatPromise(u)}this.keyFormatPromise.then(s=>{const u=As(s);let f,c;if(n==="sinf"){if(u!==Fr.FAIRPLAY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${n}" for selected key-system ${u}`);return}const ee=Lt(new Uint8Array(r));try{const De=Xn(JSON.parse(ee).sinf),Ae=te(De);if(!Ae)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");f=new Uint8Array(Ae.subarray(8,24)),c=Fr.FAIRPLAY}catch(De){this.warn(`${i} Failed to parse sinf: ${De}`);return}}else{if(u!==Fr.WIDEVINE&&u!==Fr.PLAYREADY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${n}" for selected key-system ${u}`);return}const ee=yt(r),De=ee.filter(Ge=>!!Ge.systemId&&ps(Ge.systemId)===u);De.length>1&&this.warn(`${i} Using first of ${De.length} pssh found for selected key-system ${u}`);const Ae=De[0];if(!Ae){ee.length===0||ee.some(Ge=>!Ge.systemId)?this.warn(`${i} contains incomplete or invalid pssh data`):this.log(`ignoring ${i} for ${ee.map(Ge=>ps(Ge.systemId)).join(",")} pssh data in favor of playlist keys`);return}if(c=ps(Ae.systemId),Ae.version===0&&Ae.data)if(c===Fr.WIDEVINE){const Ge=Ae.data.length-22;f=new Uint8Array(Ae.data.subarray(Ge,Ge+16))}else c===Fr.PLAYREADY&&(f=Ds(Ae.data))}if(!c||!f)return;const y=de.hexDump(f),{keyIdToKeySessionPromise:E,mediaKeySessions:U}=this;let V=E[y];for(let ee=0;ee<U.length;ee++){const De=U[ee],Ae=De.decryptdata;if(!Ae.keyId)continue;const Ge=de.hexDump(Ae.keyId);if(y===Ge||Ae.uri.replace(/-/g,"").indexOf(y)!==-1){if(V=E[Ge],Ae.pssh)break;delete E[Ge],Ae.pssh=new Uint8Array(r),Ae.keyId=f,V=E[y]=V.then(()=>this.generateRequestWithPreferredKeySession(De,n,r,"encrypted-event-key-match")),V.catch(ft=>this.handleError(ft));break}}if(!V){if(c!==u){this.log(`Ignoring "${t.type}" event with ${c} init data for selected key-system ${u}`);return}V=E[y]=this.getKeySystemSelectionPromise([c]).then(({keySystem:ee,mediaKeys:De})=>{var Ae;this.throwIfDestroyed();const Ge=new Is("ISO-23001-7",y,(Ae=us(ee))!=null?Ae:"");return Ge.pssh=new Uint8Array(r),Ge.keyId=f,this.attemptSetMediaKeys(ee,De).then(()=>{this.throwIfDestroyed();const ft=this.createMediaKeySessionContext({decryptdata:Ge,keySystem:ee,mediaKeys:De});return this.generateRequestWithPreferredKeySession(ft,n,r,"encrypted-event-no-match")})}),V.catch(ee=>this.handleError(ee))}})}},this.onWaitingForKey=t=>{this.log(`"${t.type}" event`)},this.hls=e,this.config=e.config,this.registerListeners()}destroy(){const e=this.media;this.unregisterListeners(),this.onMediaDetached(),this._clear(e);const t=this.config;t.requestMediaKeySystemAccessFunc=null,t.licenseXhrSetup=t.licenseResponseCallback=void 0,t.drmSystems=t.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){this.hls.on(m.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(m.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(m.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(m.MANIFEST_LOADED,this.onManifestLoaded,this)}unregisterListeners(){this.hls.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(m.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(m.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(m.MANIFEST_LOADED,this.onManifestLoaded,this)}getLicenseServerUrl(e){const{drmSystems:t,widevineLicenseUrl:n}=this.config,r=t[e];if(r)return r.licenseUrl;if(e===Fr.WIDEVINE&&n)return n}getLicenseServerUrlOrThrow(e){const t=this.getLicenseServerUrl(e);if(t===void 0)throw new Error(`no license server URL configured for key-system "${e}"`);return t}getServerCertificateUrl(e){const{drmSystems:t}=this.config,n=t[e];if(n)return n.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${e}"]`)}attemptKeySystemAccess(e){const t=this.hls.levels,n=(s,u,f)=>!!s&&f.indexOf(s)===u,r=t.map(s=>s.audioCodec).filter(n),i=t.map(s=>s.videoCodec).filter(n);return r.length+i.length===0&&i.push("avc1.42e01e"),new Promise((s,u)=>{const f=c=>{const y=c.shift();this.getMediaKeysPromise(y,r,i).then(E=>s({keySystem:y,mediaKeys:E})).catch(E=>{c.length?f(c):E instanceof da?u(E):u(new da({type:ce.KEY_SYSTEM_ERROR,details:A.KEY_SYSTEM_NO_ACCESS,error:E,fatal:!0},E.message))})};f(e)})}requestMediaKeySystemAccess(e,t){const{requestMediaKeySystemAccessFunc:n}=this.config;if(typeof n!="function"){let r=`Configured requestMediaKeySystemAccess is not a function ${n}`;return Or===null&&self.location.protocol==="http:"&&(r=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(r))}return n(e,t)}getMediaKeysPromise(e,t,n){const r=bi(e,t,n,this.config.drmSystemOptions),i=this.keySystemAccessPromises[e];let s=i==null?void 0:i.keySystemAccess;if(!s){this.log(`Requesting encrypted media "${e}" key-system access with config: ${an(r)}`),s=this.requestMediaKeySystemAccess(e,r);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 c=this.fetchServerCertificate(e);return this.log(`Create media-keys for "${e}"`),u.mediaKeys=f.createMediaKeys().then(y=>(this.log(`Media-keys created for "${e}"`),c.then(E=>E?this.setMediaKeysServerCertificate(y,e,E):y))),u.mediaKeys.catch(y=>{this.error(`Failed to create media-keys for "${e}"}: ${y}`)}),u.mediaKeys})}return s.then(()=>i.mediaKeys)}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:n}){this.log(`Creating key-system session "${t}" keyId: ${de.hexDump(e.keyId||[])}`);const r=n.createSession(),i={decryptdata:e,keySystem:t,mediaKeys:n,mediaKeysSession:r,keyStatus:"status-pending"};return this.mediaKeySessions.push(i),i}renewKeySession(e){const t=e.decryptdata;if(t.pssh){const n=this.createMediaKeySessionContext(e),r=this.getKeyIdString(t),i="cenc";this.keyIdToKeySessionPromise[r]=this.generateRequestWithPreferredKeySession(n,i,t.pssh.buffer,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(e)}getKeyIdString(e){if(!e)throw new Error("Could not read keyId of undefined decryptdata");if(e.keyId===null)throw new Error("keyId is null");return de.hexDump(e.keyId)}updateKeySession(e,t){var n;const r=e.mediaKeysSession;return this.log(`Updating key-session "${r.sessionId}" for keyID ${de.hexDump(((n=e.decryptdata)==null?void 0:n.keyId)||[])}
|
|
|
} (data length: ${t&&t.byteLength})`),r.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,n)=>{const r=or(this.config),i=e.map(As).filter(s=>!!s&&r.indexOf(s)!==-1);return this.getKeySystemSelectionPromise(i).then(({keySystem:s})=>{const u=us(s);u?t(u):n(new Error(`Unable to find format for key-system "${s}"`))}).catch(n)})}loadKey(e){const t=e.keyInfo.decryptdata,n=this.getKeyIdString(t),r=`(keyId: ${n} format: "${t.keyFormat}" method: ${t.method} uri: ${t.uri})`;this.log(`Starting session for key ${r}`);let i=this.keyIdToKeySessionPromise[n];return i||(i=this.getKeySystemForKeyPromise(t).then(({keySystem:u,mediaKeys:f})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${r}`),this.attemptSetMediaKeys(u,f).then(()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:u,mediaKeys:f,decryptdata:t}))))),(this.keyIdToKeySessionPromise[n]=i.then(u=>{const f="cenc",c=t.pssh?t.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(u,f,c,"playlist-key")})).catch(u=>this.handleError(u))),i}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(e){this.hls&&(this.error(e.message),e instanceof da?this.hls.trigger(m.ERROR,e.data):this.hls.trigger(m.ERROR,{type:ce.KEY_SYSTEM_ERROR,details:A.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))}getKeySystemForKeyPromise(e){const t=this.getKeyIdString(e),n=this.keyIdToKeySessionPromise[t];if(!n){const r=As(e.keyFormat),i=r?[r]:or(this.config);return this.attemptKeySystemAccess(i)}return n}getKeySystemSelectionPromise(e){if(e.length||(e=or(this.config)),e.length===0)throw new da({type:ce.KEY_SYSTEM_ERROR,details:A.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${an({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(e)}attemptSetMediaKeys(e,t){const n=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${e}"`);const r=Promise.all(n).then(()=>{if(!this.media)throw new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(t)});return this.setMediaKeysQueue.push(r),r.then(()=>{this.log(`Media-keys set for "${e}"`),n.push(r),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(i=>n.indexOf(i)===-1)})}generateRequestWithPreferredKeySession(e,t,n,r){var i,s;const u=(i=this.config.drmSystems)==null||(s=i[e.keySystem])==null?void 0:s.generateRequest;if(u)try{const ee=u.call(this.hls,t,n,e);if(!ee)throw new Error("Invalid response from configured generateRequest filter");t=ee.initDataType,n=ee.initData?ee.initData:null,e.decryptdata.pssh=n?new Uint8Array(n):null}catch(ee){var f;if(this.warn(ee.message),(f=this.hls)!=null&&f.config.debug)throw ee}if(n===null)return this.log(`Skipping key-session request for "${r}" (no initData)`),Promise.resolve(e);const c=this.getKeyIdString(e.decryptdata);this.log(`Generating key-session request for "${r}": ${c} (init data type: ${t} length: ${n?n.byteLength:null})`);const y=new Ka,E=e._onmessage=ee=>{const De=e.mediaKeysSession;if(!De){y.emit("error",new Error("invalid state"));return}const{messageType:Ae,message:Ge}=ee;this.log(`"${Ae}" message event for session "${De.sessionId}" message size: ${Ge.byteLength}`),Ae==="license-request"||Ae==="license-renewal"?this.renewLicense(e,Ge).catch(ft=>{y.eventNames().length?y.emit("error",ft):this.handleError(ft)}):Ae==="license-release"?e.keySystem===Fr.FAIRPLAY&&(this.updateKeySession(e,Ur("acknowledged")),this.removeSession(e)):this.warn(`unhandled media key message type "${Ae}"`)},U=e._onkeystatuseschange=ee=>{if(!e.mediaKeysSession){y.emit("error",new Error("invalid state"));return}this.onKeyStatusChange(e);const Ae=e.keyStatus;y.emit("keyStatus",Ae),Ae==="expired"&&(this.warn(`${e.keySystem} expired for key ${c}`),this.renewKeySession(e))};e.mediaKeysSession.addEventListener("message",E),e.mediaKeysSession.addEventListener("keystatuseschange",U);const V=new Promise((ee,De)=>{y.on("error",De),y.on("keyStatus",Ae=>{Ae.startsWith("usable")?ee():Ae==="output-restricted"?De(new da({type:ce.KEY_SYSTEM_ERROR,details:A.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):Ae==="internal-error"?De(new da({type:ce.KEY_SYSTEM_ERROR,details:A.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${Ae}"`)):Ae==="expired"?De(new Error("key expired while generating request")):this.warn(`unhandled key status change "${Ae}"`)})});return e.mediaKeysSession.generateRequest(t,n).then(()=>{var ee;this.log(`Request generated for key-session "${(ee=e.mediaKeysSession)==null?void 0:ee.sessionId}" keyId: ${c}`)}).catch(ee=>{throw new da({type:ce.KEY_SYSTEM_ERROR,details:A.KEY_SYSTEM_NO_SESSION,error:ee,fatal:!1},`Error generating key-session request: ${ee}`)}).then(()=>V).catch(ee=>{throw y.removeAllListeners(),this.removeSession(e),ee}).then(()=>(y.removeAllListeners(),e))}onKeyStatusChange(e){e.mediaKeysSession.keyStatuses.forEach((t,n)=>{if(typeof n=="string"&&typeof t=="object"){const r=n;n=t,t=r}this.log(`key status change "${t}" for keyStatuses keyId: ${de.hexDump("buffer"in n?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n))} session keyId: ${de.hexDump(new Uint8Array(e.decryptdata.keyId||[]))} uri: ${e.decryptdata.uri}`),e.keyStatus=t})}fetchServerCertificate(e){const t=this.config,n=t.loader,r=new n(t),i=this.getServerCertificateUrl(e);return i?(this.log(`Fetching server certificate for "${e}"`),new Promise((s,u)=>{const f={responseType:"arraybuffer",url:i},c=t.certLoadPolicy.default,y={loadPolicy:c,timeout:c.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},E={onSuccess:(U,V,ee,De)=>{s(U.data)},onError:(U,V,ee,De)=>{u(new da({type:ce.KEY_SYSTEM_ERROR,details:A.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:ee,response:S({url:f.url,data:void 0},U)},`"${e}" certificate request failed (${i}). Status: ${U.code} (${U.text})`))},onTimeout:(U,V,ee)=>{u(new da({type:ce.KEY_SYSTEM_ERROR,details:A.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:ee,response:{url:f.url,data:void 0}},`"${e}" certificate request timed out (${i})`))},onAbort:(U,V,ee)=>{u(new Error("aborted"))}};r.load(f,y,E)})):Promise.resolve()}setMediaKeysServerCertificate(e,t,n){return new Promise((r,i)=>{e.setServerCertificate(n).then(s=>{this.log(`setServerCertificate ${s?"success":"not supported by CDM"} (${n==null?void 0:n.byteLength}) on "${t}"`),r(e)}).catch(s=>{i(new da({type:ce.KEY_SYSTEM_ERROR,details:A.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:s,fatal:!0},s.message))})})}renewLicense(e,t){return this.requestLicense(e,new Uint8Array(t)).then(n=>this.updateKeySession(e,new Uint8Array(n)).catch(r=>{throw new da({type:ce.KEY_SYSTEM_ERROR,details:A.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:r,fatal:!0},r.message)}))}unpackPlayReadyKeyMessage(e,t){const n=String.fromCharCode.apply(null,new Uint16Array(t.buffer));if(!n.includes("PlayReadyKeyMessage"))return e.setRequestHeader("Content-Type","text/xml; charset=utf-8"),t;const r=new DOMParser().parseFromString(n,"application/xml"),i=r.querySelectorAll("HttpHeader");if(i.length>0){let y;for(let E=0,U=i.length;E<U;E++){var s,u;y=i[E];const V=(s=y.querySelector("name"))==null?void 0:s.textContent,ee=(u=y.querySelector("value"))==null?void 0:u.textContent;V&&ee&&e.setRequestHeader(V,ee)}}const f=r.querySelector("Challenge"),c=f==null?void 0:f.textContent;if(!c)throw new Error("Cannot find <Challenge> in key message");return Ur(atob(c))}setupLicenseXHR(e,t,n,r){const i=this.config.licenseXhrSetup;return i?Promise.resolve().then(()=>{if(!n.decryptdata)throw new Error("Key removed");return i.call(this.hls,e,t,n,r)}).catch(s=>{if(!n.decryptdata)throw s;return e.open("POST",t,!0),i.call(this.hls,e,t,n,r)}).then(s=>(e.readyState||e.open("POST",t,!0),{xhr:e,licenseChallenge:s||r})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:r}))}requestLicense(e,t){const n=this.config.keyLoadPolicy.default;return new Promise((r,i)=>{const s=this.getLicenseServerUrlOrThrow(e.keySystem);this.log(`Sending license request to URL: ${s}`);const 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 c=this.config.licenseResponseCallback;if(c)try{f=c.call(this.hls,u,s,e)}catch(y){this.error(y)}r(f)}else{const f=n.errorRetry,c=f?f.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>c||u.status>=400&&u.status<500)i(new da({type:ce.KEY_SYSTEM_ERROR,details:A.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 y=c-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${y} attempts left`),this.requestLicense(e,t).then(r,i)}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=u,this.setupLicenseXHR(u,s,e,t).then(({xhr:f,licenseChallenge:c})=>{e.keySystem==Fr.PLAYREADY&&(c=this.unpackPlayReadyKeyMessage(f,c)),f.send(c)})})}onMediaAttached(e,t){if(!this.config.emeEnabled)return;const n=t.media;this.media=n,n.removeEventListener("encrypted",this.onMediaEncrypted),n.removeEventListener("waitingforkey",this.onWaitingForKey),n.addEventListener("encrypted",this.onMediaEncrypted),n.addEventListener("waitingforkey",this.onWaitingForKey)}onMediaDetached(){const e=this.media;e&&(e.removeEventListener("encrypted",this.onMediaEncrypted),e.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null)}_clear(e){var t;const n=this.mediaKeySessions;this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},Is.clearKeyUriToKeyIdMap();const r=n.length;Io.CDMCleanupPromise=Promise.all(n.map(i=>this.removeSession(i)).concat(e==null||(t=e.setMediaKeys(null))==null?void 0:t.catch(i=>{var s;this.log(`Could not clear media keys: ${i}`),(s=this.hls)==null||s.trigger(m.ERROR,{type:ce.OTHER_ERROR,details:A.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:new Error(`Could not clear media keys: ${i}`)})}))).then(()=>{r&&(this.log("finished closing key sessions and clearing media keys"),n.length=0)}).catch(i=>{var s;this.log(`Could not close sessions and clear media keys: ${i}`),(s=this.hls)==null||s.trigger(m.ERROR,{type:ce.OTHER_ERROR,details:A.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close sessions and clear media keys: ${i}`)})})}onManifestLoading(){this.keyFormatPromise=null}onManifestLoaded(e,{sessionKeys:t}){if(!(!t||!this.config.emeEnabled)&&!this.keyFormatPromise){const n=t.reduce((r,i)=>(r.indexOf(i.keyFormat)===-1&&r.push(i.keyFormat),r),[]);this.log(`Selecting key-system from session-keys ${n.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(n)}}removeSession(e){const{mediaKeysSession:t,licenseXhr:n}=e;if(t){this.log(`Remove licenses and keys and close session ${t.sessionId}`),e._onmessage&&(t.removeEventListener("message",e._onmessage),e._onmessage=void 0),e._onkeystatuseschange&&(t.removeEventListener("keystatuseschange",e._onkeystatuseschange),e._onkeystatuseschange=void 0),n&&n.readyState!==XMLHttpRequest.DONE&&n.abort(),e.mediaKeysSession=e.decryptdata=e.licenseXhr=void 0;const r=this.mediaKeySessions.indexOf(e);r>-1&&this.mediaKeySessions.splice(r,1);const{drmSystemOptions:i}=this.config;return(gi(i)?new Promise((u,f)=>{self.setTimeout(()=>f(new Error("MediaKeySession.remove() timeout")),8e3),t.remove().then(u)}):Promise.resolve()).catch(u=>{var f;this.log(`Could not remove session: ${u}`),(f=this.hls)==null||f.trigger(m.ERROR,{type:ce.OTHER_ERROR,details:A.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:new Error(`Could not remove session: ${u}`)})}).then(()=>t.close()).catch(u=>{var f;this.log(`Could not close session: ${u}`),(f=this.hls)==null||f.trigger(m.ERROR,{type:ce.OTHER_ERROR,details:A.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${u}`)})})}}}Io.CDMCleanupPromise=void 0;class da extends Error{constructor(e,t){super(t),this.data=void 0,e.error||(e.error=new Error(t)),this.data=e,e.err=e.error}}class Zu{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(m.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(m.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(m.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(m.MEDIA_DETACHING,this.onMediaDetaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(e,t){const n=this.hls.config;if(n.capLevelOnFPSDrop){const r=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=r,r&&typeof r.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),n.fpsDroppedMonitoringPeriod)}}onMediaDetaching(){this.media=null}checkFPS(e,t,n){const r=performance.now();if(t){if(this.lastTime){const i=r-this.lastTime,s=n-this.lastDroppedFrames,u=t-this.lastDecodedFrames,f=1e3*s/i,c=this.hls;if(c.trigger(m.FPS_DROP,{currentDropped:s,currentDecoded:u,totalDroppedFrames:n}),f>0&&s>c.config.fpsDroppedMonitoringThreshold*u){let y=c.currentLevel;c.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+y),y>0&&(c.autoLevelCapping===-1||c.autoLevelCapping>=y)&&(y=y-1,c.trigger(m.FPS_DROP_LEVEL_CAPPING,{level:y,droppedLevel:c.currentLevel}),c.autoLevelCapping=y,this.streamController.nextLevelSwitch())}}this.lastTime=r,this.lastDroppedFrames=n,this.lastDecodedFrames=t}}checkFPSInterval(){const e=this.media;if(e)if(this.isVideoPlaybackQualityAvailable){const t=e.getVideoPlaybackQuality();this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)}}function Vl(a,e){let t;try{t=new Event("addtrack")}catch(n){t=document.createEvent("Event"),t.initEvent("addtrack",!1,!1)}t.track=a,e.dispatchEvent(t)}function Yl(a,e){const t=a.mode;if(t==="disabled"&&(a.mode="hidden"),a.cues&&!a.cues.getCueById(e.id))try{if(a.addCue(e),!a.cues.getCueById(e.id))throw new Error(`addCue is failed for: ${e}`)}catch(n){j.debug(`[texttrack-utils]: ${n}`);try{const r=new self.TextTrackCue(e.startTime,e.endTime,e.text);r.id=e.id,a.addCue(r)}catch(r){j.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${r}`)}}t==="disabled"&&(a.mode=t)}function Ro(a,e){const t=a.mode;if(t==="disabled"&&(a.mode="hidden"),a.cues)for(let n=a.cues.length;n--;)e&&a.cues[n].removeEventListener("enter",e),a.removeCue(a.cues[n]);t==="disabled"&&(a.mode=t)}function Al(a,e,t,n){const r=a.mode;if(r==="disabled"&&(a.mode="hidden"),a.cues&&a.cues.length>0){const i=Wu(a.cues,e,t);for(let s=0;s<i.length;s++)(!n||n(i[s]))&&a.removeCue(i[s])}r==="disabled"&&(a.mode=r)}function ju(a,e){if(e<=a[0].startTime)return 0;const t=a.length-1;if(e>a[t].endTime)return-1;let n=0,r=t,i;for(;n<=r;)if(i=Math.floor((r+n)/2),e<a[i].startTime)r=i-1;else if(e>a[i].startTime&&n<t)n=i+1;else return i;return a[n].startTime-e<e-a[r].startTime?n:r}function Wu(a,e,t){const n=[],r=ju(a,e);if(r>-1)for(let i=r,s=a.length;i<s;i++){const u=a[i];if(u.startTime>=e&&u.endTime<=t)n.push(u);else if(u.startTime>t)return n}return n}function ul(a){const e=[];for(let t=0;t<a.length;t++){const n=a[t];(n.kind==="subtitles"||n.kind==="captions")&&n.label&&e.push(a[t])}return e}class Gu extends Vs{constructor(e){super(e,"subtitle-track-controller"),this.media=null,this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.queuedDefaultTrack=-1,this.useTextTrackPolling=!1,this.subtitlePollingInterval=-1,this._subtitleDisplay=!0,this.asyncPollTrackChange=()=>this.pollTrackChange(0),this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let t=null;const n=ul(this.media.textTracks);for(let i=0;i<n.length;i++)if(n[i].mode==="hidden")t=n[i];else if(n[i].mode==="showing"){t=n[i];break}const r=this.findTrackForTextTrack(t);this.subtitleTrack!==r&&this.setSubtitleTrack(r)},this.registerListeners()}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,this.onTextTracksChanged=this.asyncPollTrackChange=null,super.destroy()}get subtitleDisplay(){return this._subtitleDisplay}set subtitleDisplay(e){this._subtitleDisplay=e,this.trackId>-1&&this.toggleTrackModes()}registerListeners(){const{hls:e}=this;e.on(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.MANIFEST_PARSED,this.onManifestParsed,this),e.on(m.LEVEL_LOADING,this.onLevelLoading,this),e.on(m.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(m.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(m.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.MANIFEST_PARSED,this.onManifestParsed,this),e.off(m.LEVEL_LOADING,this.onLevelLoading,this),e.off(m.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(m.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(m.ERROR,this.onError,this)}onMediaAttached(e,t){this.media=t.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))}pollTrackChange(e){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,e)}onMediaDetaching(e,t){const n=this.media;if(!n)return;const r=!!t.transferMedia;if(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||n.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),this.subtitleTrack=-1,this.media=null,r)return;ul(n.textTracks).forEach(s=>{Ro(s)})}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.subtitleTracks}onSubtitleTrackLoaded(e,t){const{id:n,groupId:r,details:i}=t,s=this.tracksInGroup[n];if(!s||s.groupId!==r){this.warn(`Subtitle track with id:${n} and group:${r} not found in active group ${s==null?void 0:s.groupId}`);return}const u=s.details;s.details=t.details,this.log(`Subtitle track ${n} "${s.name}" lang:${s.lang} group:${r} loaded [${i.startSN}-${i.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,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 n=t.subtitleGroups||null,r=this.groupIds;let i=this.currentTrack;if(!n||(r==null?void 0:r.length)!==(n==null?void 0:n.length)||n!=null&&n.some(s=>(r==null?void 0:r.indexOf(s))===-1)){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const s=this.tracks.filter(y=>!n||n.indexOf(y.groupId)!==-1);if(s.length)this.selectDefaultTrack&&!s.some(y=>y.default)&&(this.selectDefaultTrack=!1),s.forEach((y,E)=>{y.id=E});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=s;const u=this.hls.config.subtitlePreference;if(!i&&u){this.selectDefaultTrack=!1;const y=Tt(u,s);if(y>-1)i=s[y];else{const E=Tt(u,this.tracks);i=this.tracks[E]}}let f=this.findTrackId(i);f===-1&&i&&(f=this.findTrackId(null));const c={subtitleTracks:s};this.log(`Updating subtitle tracks, ${s.length} track(s) found in "${n==null?void 0:n.join(",")}" group-id`),this.hls.trigger(m.SUBTITLE_TRACKS_UPDATED,c),f!==-1&&this.trackId===-1&&this.setSubtitleTrack(f)}}findTrackId(e){const t=this.tracksInGroup,n=this.selectDefaultTrack;for(let r=0;r<t.length;r++){const i=t[r];if(!(n&&!i.default||!n&&!e)&&(!e||Ft(i,e)))return r}if(e){for(let r=0;r<t.length;r++){const i=t[r];if(Ys(e.attrs,i.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return r}for(let r=0;r<t.length;r++){const i=t[r];if(Ys(e.attrs,i.attrs,["LANGUAGE"]))return r}}return-1}findTrackForTextTrack(e){if(e){const t=this.tracksInGroup;for(let n=0;n<t.length;n++){const r=t[n];if(Xs(r,e))return n}}return-1}onError(e,t){t.fatal||!t.context||t.context.type===w.SUBTITLE_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&this.checkRetry(t)}get allSubtitleTracks(){return this.tracks}get subtitleTracks(){return this.tracksInGroup}get subtitleTrack(){return this.trackId}set subtitleTrack(e){this.selectDefaultTrack=!1,this.setSubtitleTrack(e)}setSubtitleOption(e){if(this.hls.config.subtitlePreference=e,e){if(e.id===-1)return this.setSubtitleTrack(-1),null;const t=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,t.length){const n=this.currentTrack;if(n&&Ft(e,n))return n;const r=Tt(e,this.tracksInGroup);if(r>-1){const i=this.tracksInGroup[r];return this.setSubtitleTrack(r),i}else{if(n)return null;{const i=Tt(e,t);if(i>-1)return t[i]}}}}return null}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentTrack)&&this.scheduleLoading(this.currentTrack,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=e.id,r=e.groupId,i=this.getUrlWithDirectives(e.url,t),s=e.details,u=s==null?void 0:s.age;this.log(`Loading subtitle ${n} "${e.name}" lang:${e.lang} group:${r}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${u&&s.live?" age "+u.toFixed(1)+(s.type?" "+s.type||0:""):""} ${i}`),this.hls.trigger(m.SUBTITLE_TRACK_LOADING,{url:i,id:n,groupId:r,deliveryDirectives:t||null,track:e})}toggleTrackModes(){const{media:e}=this;if(!e)return;const t=ul(e.textTracks),n=this.currentTrack;let r;if(n&&(r=t.filter(i=>Xs(n,i))[0],r||this.warn(`Unable to find subtitle TextTrack with name "${n.name}" and language "${n.lang}"`)),[].slice.call(t).forEach(i=>{i.mode!=="disabled"&&i!==r&&(i.mode="disabled")}),r){const i=this.subtitleDisplay?"showing":"hidden";r.mode!==i&&(r.mode=i)}}setSubtitleTrack(e){const t=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=e;return}if(e<-1||e>=t.length||!O(e)){this.warn(`Invalid subtitle track id: ${e}`);return}this.selectDefaultTrack=!1;const n=this.currentTrack,r=t[e]||null;if(this.trackId=e,this.currentTrack=r,this.toggleTrackModes(),!r){this.hls.trigger(m.SUBTITLE_TRACK_SWITCH,{id:e});return}const i=!!r.details&&!r.details.live;if(e===this.trackId&&r===n&&i)return;this.log(`Switching to subtitle-track ${e}`+(r?` "${r.name}" lang:${r.lang} group:${r.groupId}`:""));const{id:s,groupId:u="",name:f,type:c,url:y}=r;this.hls.trigger(m.SUBTITLE_TRACK_SWITCH,{id:s,groupId:u,name:f,type:c,url:y});const E=this.switchParams(r.url,n==null?void 0:n.details,r.details);this.loadPlaylist(E)}}function Go(a){let e=5381,t=a.length;for(;t;)e=e*33^a.charCodeAt(--t);return(e>>>0).toString()}const Lo=.025;let cl=function(a){return a[a.Point=0]="Point",a[a.Range=1]="Range",a}({});function Vu(a,e,t){return`${a.identifier}-${t+1}-${Go(e)}`}class Yu{constructor(e,t){this.base=void 0,this._duration=null,this._timelineStart=null,this.appendInPlaceDisabled=void 0,this.appendInPlaceStarted=void 0,this.dateRange=void 0,this.hasPlayed=!1,this.cumulativeDuration=0,this.resumeOffset=NaN,this.playoutLimit=NaN,this.restrictions={skip:!1,jump:!1},this.snapOptions={out:!1,in:!1},this.assetList=[],this.assetListLoader=void 0,this.assetListResponse=null,this.resumeAnchor=void 0,this.error=void 0,this.resetOnResume=void 0,this.base=t,this.dateRange=e,this.setDateRange(e)}setDateRange(e){this.dateRange=e,this.resumeOffset=e.attr.optionalFloat("X-RESUME-OFFSET",this.resumeOffset),this.playoutLimit=e.attr.optionalFloat("X-PLAYOUT-LIMIT",this.playoutLimit),this.restrictions=e.attr.enumeratedStringList("X-RESTRICT",this.restrictions),this.snapOptions=e.attr.enumeratedStringList("X-SNAP",this.snapOptions)}reset(){var e;this.appendInPlaceStarted=!1,(e=this.assetListLoader)==null||e.destroy(),this.assetListLoader=void 0,this.supplementsPrimary||(this.assetListResponse=null,this.assetList=[],this._duration=null)}isAssetPastPlayoutLimit(e){if(e>=this.assetList.length)return!0;const t=this.playoutLimit;return e<=0||isNaN(t)?!1:this.assetList[e].startOffset>t}findAssetIndex(e){return this.assetList.indexOf(e)}get identifier(){return this.dateRange.id}get startDate(){return this.dateRange.startDate}get startTime(){const e=this.dateRange.startTime;if(this.snapOptions.out){const t=this.dateRange.tagAnchor;if(t)return Dl(e,t)}return e}get startOffset(){return this.cue.pre?0:this.startTime}get startIsAligned(){if(this.startTime===0||this.snapOptions.out)return!0;const e=this.dateRange.tagAnchor;if(e){const t=this.dateRange.startTime,n=Dl(t,e);return t-n<.1}return!1}get resumptionOffset(){const e=this.resumeOffset,t=O(e)?e:this.duration;return this.cumulativeDuration+t}get resumeTime(){const e=this.startOffset+this.resumptionOffset;if(this.snapOptions.in){const t=this.resumeAnchor;if(t)return Dl(e,t)}return e}get appendInPlace(){return this.appendInPlaceStarted?!0:this.appendInPlaceDisabled?!1:!!(!this.cue.once&&!this.cue.pre&&this.startIsAligned&&(isNaN(this.playoutLimit)&&isNaN(this.resumeOffset)||this.resumeOffset&&this.duration&&Math.abs(this.resumeOffset-this.duration)<Lo))}set appendInPlace(e){if(this.appendInPlaceStarted){this.resetOnResume=!e;return}this.appendInPlaceDisabled=!e}get timelineStart(){return this._timelineStart!==null?this._timelineStart:this.startTime}set timelineStart(e){this._timelineStart=e}get duration(){const e=this.playoutLimit;let t;return this._duration!==null?t=this._duration:this.dateRange.duration?t=this.dateRange.duration:t=this.dateRange.plannedDuration||0,!isNaN(e)&&e<t&&(t=e),t}set duration(e){this._duration=e}get cue(){return this.dateRange.cue}get timelineOccupancy(){return this.dateRange.attr["X-TIMELINE-OCCUPIES"]==="RANGE"?cl.Range:cl.Point}get supplementsPrimary(){return this.dateRange.attr["X-TIMELINE-STYLE"]==="PRIMARY"}get contentMayVary(){return this.dateRange.attr["X-CONTENT-MAY-VARY"]!=="NO"}get assetUrl(){return this.dateRange.attr["X-ASSET-URI"]}get assetListUrl(){return this.dateRange.attr["X-ASSET-LIST"]}get baseUrl(){return this.base.url}get assetListLoaded(){return this.assetList.length>0||this.assetListResponse!==null}toString(){return Xu(this)}}function Dl(a,e){return a-e.start<e.duration/2&&!(Math.abs(a-(e.start+e.duration))<Lo)?e.start:e.start+e.duration}function Xl(a,e,t){const n=new self.URL(a,t);return n.protocol!=="data:"&&n.searchParams.set("_HLS_primary_id",e),n}function Xu(a){return`["${a.identifier}" ${a.cue.pre?"<pre>":a.cue.post?"<post>":""}${a.timelineStart.toFixed(2)}-${a.resumeTime.toFixed(2)}]`}function Il(a){const e=a.timelineStart,t=a.duration||0;return`["${a.identifier}" ${e.toFixed(2)}-${(e+t).toFixed(2)}]`}class Qu{constructor(e,t,n,r){this.hls=void 0,this.interstitial=void 0,this.assetItem=void 0,this.tracks=null,this.hasDetails=!1,this.mediaAttached=null,this._currentTime=void 0,this._bufferedEosTime=void 0,this.checkPlayout=()=>{const c=this.interstitial.playoutLimit,y=this.currentTime;this.startOffset+y>=c&&this.hls.trigger(m.PLAYOUT_LIMIT_REACHED,{})};const i=this.hls=new e(t);this.interstitial=n,this.assetItem=r;let s=r.uri;try{s=Xl(s,i.sessionId).href}catch(f){}i.loadSource(s);const u=()=>{this.hasDetails=!0};i.once(m.LEVEL_LOADED,u),i.once(m.AUDIO_TRACK_LOADED,u),i.once(m.SUBTITLE_TRACK_LOADED,u),i.on(m.MEDIA_ATTACHING,(f,{media:c})=>{this.removeMediaListeners(),this.mediaAttached=c,this.interstitial.playoutLimit&&c.addEventListener("timeupdate",this.checkPlayout)})}bufferedInPlaceToEnd(e){var t;if(!this.interstitial.appendInPlace)return!1;if((t=this.hls)!=null&&t.bufferedToEnd)return!0;if(!e||!this._bufferedEosTime)return!1;const n=this.timelineOffset,r=Tr.bufferInfo(e,n,0);return this.getAssetTime(r.end)>=this._bufferedEosTime-.02}get destroyed(){var e;return!((e=this.hls)!=null&&e.userConfig)}get assetId(){return this.assetItem.identifier}get interstitialId(){return this.assetItem.parentIdentifier}get media(){var e;return((e=this.hls)==null?void 0:e.media)||null}get bufferedEnd(){const e=this.media||this.mediaAttached;if(!e)return this._bufferedEosTime?this._bufferedEosTime:this.currentTime;const t=Tr.bufferInfo(e,e.currentTime,.001);return this.getAssetTime(t.end)}get currentTime(){const e=this.media||this.mediaAttached;return e?this.getAssetTime(e.currentTime):this._currentTime||0}get duration(){const e=this.assetItem.duration;return e||0}get remaining(){const e=this.duration;return e?Math.max(0,e-this.currentTime):0}get startOffset(){return this.assetItem.startOffset}get timelineOffset(){var e;return((e=this.hls)==null?void 0:e.config.timelineOffset)||0}set timelineOffset(e){const t=this.timelineOffset;if(e!==t){const n=e-t;if(Math.abs(n)>1/9e4){if(this.hasDetails)throw new Error("Cannot set timelineOffset after playlists are loaded");this.hls.config.timelineOffset=e}}}getAssetTime(e){const t=this.timelineOffset,n=this.duration;return Math.min(Math.max(0,e-t),n)}removeMediaListeners(){const e=this.mediaAttached;e&&(this._currentTime=e.currentTime,this.bufferSnapShot(),e.removeEventListener("timeupdate",this.checkPlayout))}bufferSnapShot(){if(this.mediaAttached){var e;(e=this.hls)!=null&&e.bufferedToEnd&&(this._bufferedEosTime=this.bufferedEnd)}}destroy(){this.removeMediaListeners(),this.hls.destroy(),this.hls=this.interstitial=null,this.tracks=this.mediaAttached=this.checkPlayout=null}attachMedia(e){this.hls.attachMedia(e)}detachMedia(){this.removeMediaListeners(),this.mediaAttached=null,this.hls.detachMedia()}resumeBuffering(){this.hls.resumeBuffering()}pauseBuffering(){this.hls.pauseBuffering()}transferMedia(){return this.bufferSnapShot(),this.hls.transferMedia()}on(e,t,n){this.hls.on(e,t)}once(e,t,n){this.hls.once(e,t)}off(e,t,n){this.hls.off(e,t)}toString(){var e,t;return`HlsAssetPlayer: ${Il(this.assetItem)} ${(e=this.hls)==null?void 0:e.sessionId} ${(t=this.interstitial)!=null&&t.appendInPlace?"append-in-place":""}`}}const Ql=.033;class Ju extends se{constructor(e,t){super("interstitials-sched",t),this.onScheduleUpdate=void 0,this.eventMap={},this.events=null,this.items=null,this.durations={primary:0,playout:0,integrated:0},this.onScheduleUpdate=e}destroy(){this.reset(),this.onScheduleUpdate=null}reset(){this.eventMap={},this.setDurations(0,0,0),this.events&&this.events.forEach(e=>e.reset()),this.events=this.items=null}resetErrorsInRange(e,t){return this.events?this.events.reduce((n,r)=>e<=r.startOffset&&t>r.startOffset?(delete r.error,n+1):n,0):0}get duration(){const e=this.items;return e?e[e.length-1].end:0}get length(){return this.items?this.items.length:0}getEvent(e){return e&&this.eventMap[e]||null}hasEvent(e){return e in this.eventMap}findItemIndex(e,t){if(e.event)return this.findEventIndex(e.event.identifier);let n=-1;e.nextEvent?n=this.findEventIndex(e.nextEvent.identifier)-1:e.previousEvent&&(n=this.findEventIndex(e.previousEvent.identifier)+1);const r=this.items;if(r)for(r[n]||(t===void 0&&(t=e.start),n=this.findItemIndexAtTime(t));n>=0&&(i=r[n])!=null&&i.event;){var i;n--}return n}findItemIndexAtTime(e,t){const n=this.items;if(n)for(let r=0;r<n.length;r++){let i=n[r];if(t&&t!=="primary"&&(i=i[t]),e===i.start||e>i.start&&e<i.end)return r}return-1}findJumpRestrictedIndex(e,t){const n=this.items;if(n)for(let r=e;r<=t&&n[r];r++){const i=n[r].event;if(i!=null&&i.restrictions.jump&&!i.appendInPlace)return r}return-1}findEventIndex(e){const t=this.items;if(t)for(let r=t.length;r--;){var n;if(((n=t[r].event)==null?void 0:n.identifier)===e)return r}return-1}findAssetIndex(e,t){const n=e.assetList,r=n.length;if(r>1)for(let i=0;i<r;i++){const s=n[i];if(!s.error){const u=s.timelineStart;if(t===u||t>u&&t<u+(s.duration||0))return i}}return 0}get assetIdAtEnd(){var e,t;const n=(e=this.items)==null||(t=e[this.length-1])==null?void 0:t.event;if(n){const r=n.assetList,i=r[r.length-1];if(i)return i.identifier}return null}parseInterstitialDateRanges(e,t){const n=e.main.details,{dateRanges:r}=n,i=this.events,s=this.parseDateRanges(r,{url:n.url},t),u=Object.keys(r),f=i?i.filter(c=>!u.includes(c.identifier)):[];s.length&&s.sort((c,y)=>{const E=c.cue.pre,U=c.cue.post,V=y.cue.pre,ee=y.cue.post;if(E&&!V)return-1;if(V&&!E||U&&!ee)return 1;if(ee&&!U)return-1;if(!E&&!V&&!U&&!ee){const De=c.startTime,Ae=y.startTime;if(De!==Ae)return De-Ae}return c.dateRange.tagOrder-y.dateRange.tagOrder}),this.events=s,f.forEach(c=>{this.removeEvent(c)}),this.updateSchedule(e,f)}updateSchedule(e,t=[]){const n=this.events||[];if(n.length||t.length||this.length<2){const r=this.items,i=this.parseSchedule(n,e);(t.length||(r==null?void 0:r.length)!==i.length||i.some((u,f)=>Math.abs(u.playout.start-r[f].playout.start)>.005||Math.abs(u.playout.end-r[f].playout.end)>.005))&&(this.items=i,this.onScheduleUpdate(t,r))}}parseDateRanges(e,t,n){const r=[],i=Object.keys(e);for(let s=0;s<i.length;s++){const u=i[s],f=e[u];if(f.isInterstitial){let c=this.eventMap[u];c?c.setDateRange(f):(c=new Yu(f,t),this.eventMap[u]=c,n===!1&&(c.appendInPlace=n)),r.push(c)}}return r}parseSchedule(e,t){const n=[],r=t.main.details,i=r.live?1/0:r.edge;let s=0;if(e=e.filter(f=>!f.error&&!(f.cue.once&&f.hasPlayed)),e.length){this.resolveOffsets(e,t);let f=0,c=0;if(e.forEach((y,E)=>{const U=y.cue.pre,V=y.cue.post,ee=e[E-1]||null,De=y.appendInPlace,Ae=V?i:y.startOffset,Ge=y.duration,ft=y.timelineOccupancy===cl.Range?Ge:0,lt=y.resumptionOffset,Pt=(ee==null?void 0:ee.startTime)===Ae,Nt=Ae+y.cumulativeDuration;let on=De?Nt+Ge:Ae+lt;if(U||!V&&Ae<=0){const Jt=c;c+=ft,y.timelineStart=Nt;const vn=s;s+=Ge,n.push({event:y,start:Nt,end:on,playout:{start:vn,end:s},integrated:{start:Jt,end:c}})}else if(Ae<=i){if(!Pt){const jt=Ae-f;if(jt>Ql){const Wn=f,yr=c;c+=jt;const wi=s;s+=jt;const Jr={previousEvent:e[E-1]||null,nextEvent:y,start:Wn,end:Wn+jt,playout:{start:wi,end:s},integrated:{start:yr,end:c}};n.push(Jr)}else jt>0&&ee&&(ee.cumulativeDuration+=jt,n[n.length-1].end=Ae)}V&&(on=Nt),y.timelineStart=Nt;const Jt=c;c+=ft;const vn=s;s+=Ge,n.push({event:y,start:Nt,end:on,playout:{start:vn,end:s},integrated:{start:Jt,end:c}})}else return;const zt=y.resumeTime;V||zt>i?f=i:f=zt}),f<i){var u;const y=f,E=c,U=i-f;c+=U;const V=s;s+=U,n.push({previousEvent:((u=n[n.length-1])==null?void 0:u.event)||null,nextEvent:null,start:f,end:y+U,playout:{start:V,end:s},integrated:{start:E,end:c}})}this.setDurations(i,s,c)}else n.push({previousEvent:null,nextEvent:null,start:0,end:i,playout:{start:0,end:i},integrated:{start:0,end:i}}),this.setDurations(i,i,i);return n}setDurations(e,t,n){this.durations={primary:e,playout:t,integrated:n}}resolveOffsets(e,t){const n=t.main.details,r=n.live?1/0:n.edge;let i=0,s=-1;e.forEach((u,f)=>{const c=u.cue.pre,y=u.cue.post,E=c?0:y?r:u.startTime;this.updateAssetDurations(u),s===E?u.cumulativeDuration=i:(i=0,s=E),!y&&u.snapOptions.in&&(u.resumeAnchor=En(null,n.fragments,u.startOffset+u.resumptionOffset,0,0)||void 0),u.appendInPlace&&!u.appendInPlaceStarted&&(this.primaryCanResumeInPlaceAt(u,t)||(u.appendInPlace=!1)),!u.appendInPlace&&f+1<e.length&&e[f+1].startTime-e[f].resumeTime<Ql&&(e[f+1].appendInPlace=!1,e[f+1].appendInPlace&&this.warn(`Could not change append strategy for abutting event ${u}`));const V=O(u.resumeOffset)?u.resumeOffset:u.duration;i+=V})}primaryCanResumeInPlaceAt(e,t){const n=e.resumeTime,r=e.startTime+e.resumptionOffset;return Math.abs(n-r)>Lo?(this.log(`"${e.identifier}" resumption ${n} not aligned with estimated timeline end ${r}`),!1):t?!Object.keys(t).some(s=>{const u=t[s].details,f=u.edge;if(n>=f)return this.log(`"${e.identifier}" resumption ${n} past ${s} playlist end ${f}`),!1;const c=En(null,u.fragments,n);if(!c)return this.log(`"${e.identifier}" resumption ${n} does not align with any fragments in ${s} playlist (${u.fragStart}-${u.fragmentEnd})`),!0;const y=s==="audio"?.175:0;return Math.abs(c.start-n)<Lo+y||Math.abs(c.end-n)<Lo+y?!1:(this.log(`"${e.identifier}" resumption ${n} not aligned with ${s} fragment bounds (${c.start}-${c.end} sn: ${c.sn} cc: ${c.cc})`),!0)}):(this.log(`"${e.identifier}" resumption ${n} can not be aligned with media (none selected)`),!1)}updateAssetDurations(e){if(!e.assetListLoaded)return;const t=e.timelineStart;let n=0,r=!1,i=!1;e.assetList.forEach((s,u)=>{const f=t+n;s.startOffset=n,s.timelineStart=f,r||(r=s.duration===null),i||(i=!!s.error);const c=s.error?0:s.duration||0;n+=c}),r&&!i?e.duration=Math.max(n,e.duration):e.duration=n}removeEvent(e){e.reset(),delete this.eventMap[e.identifier]}}function Ga(a){return`[${a.event?'"'+a.event.identifier+'"':"primary"}: ${a.start.toFixed(2)}-${a.end.toFixed(2)}]`}class qu{constructor(e){this.hls=void 0,this.hls=e}destroy(){this.hls=null}loadAssetList(e,t){const n=e.assetListUrl;let r;try{r=Xl(n,this.hls.sessionId,e.baseUrl)}catch(U){const V=this.assignAssetListError(e,A.ASSET_LIST_LOAD_ERROR,U,n);this.hls.trigger(m.ERROR,V);return}t&&r.protocol!=="data:"&&r.searchParams.set("_HLS_start_offset",""+t);const i=this.hls.config,s=i.loader,u=new s(i),f={responseType:"json",url:r.href},c=i.interstitialAssetListLoadPolicy.default,y={loadPolicy:c,timeout:c.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},E={onSuccess:(U,V,ee,De)=>{const Ae=U.data,Ge=Ae==null?void 0:Ae.ASSETS;if(!Array.isArray(Ge)){const ft=this.assignAssetListError(e,A.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),ee.url,V,De);this.hls.trigger(m.ERROR,ft);return}e.assetListResponse=Ae,this.hls.trigger(m.ASSET_LIST_LOADED,{event:e,assetListResponse:Ae,networkDetails:De})},onError:(U,V,ee,De)=>{const Ae=this.assignAssetListError(e,A.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${U.code} ${U.text} (${V.url})`),V.url,De,ee);this.hls.trigger(m.ERROR,Ae)},onTimeout:(U,V,ee)=>{const De=this.assignAssetListError(e,A.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${V.url})`),V.url,U,ee);this.hls.trigger(m.ERROR,De)}};return u.load(f,y,E),this.hls.trigger(m.ASSET_LIST_LOADING,{event:e}),u}assignAssetListError(e,t,n,r,i,s){return e.error=n,{type:ce.NETWORK_ERROR,details:t,fatal:!1,interstitial:e,url:r,error:n,networkDetails:s,stats:i}}}function Fa(a,e,t){Oa(a,e,t),a.addEventListener(e,t)}function Oa(a,e,t){a.removeEventListener(e,t)}function Jl(a){a==null||a.play().catch(()=>{})}class ec extends se{constructor(e,t){super("interstitials",e.logger),this.HlsPlayerClass=void 0,this.hls=void 0,this.assetListLoader=void 0,this.mediaSelection=null,this.altSelection=null,this.media=null,this.detachedData=null,this.requiredTracks=null,this.manager=null,this.playerQueue=[],this.bufferedPos=-1,this.timelinePos=-1,this.schedule=void 0,this.playingItem=null,this.bufferingItem=null,this.waitingItem=null,this.endedItem=null,this.playingAsset=null,this.endedAsset=null,this.bufferingAsset=null,this.shouldPlay=!1,this.onPlay=()=>{this.shouldPlay=!0},this.onPause=()=>{this.shouldPlay=!1},this.onSeeking=()=>{const n=this.currentTime;if(n===void 0||this.playbackDisabled)return;const r=n-this.timelinePos;if(Math.abs(r)<1/7056e5)return;const s=r<=-.01;this.timelinePos=n,this.bufferedPos=n;const u=this.playingItem;if(!u){this.checkBuffer();return}if(s&&this.schedule.resetErrorsInRange(n,n-r)&&this.updateSchedule(),this.checkBuffer(),s&&n<u.start||n>=u.end){var f;const U=this.schedule.findItemIndexAtTime(this.timelinePos);if(!this.isInterstitial(u)&&(f=this.media)!=null&&f.paused&&(this.shouldPlay=!1),!s){const V=this.findItemIndex(u);if(U>V){const ee=this.schedule.findJumpRestrictedIndex(V+1,U);if(ee>V){this.setSchedulePosition(ee);return}}}this.setSchedulePosition(U);return}const c=this.playingAsset;if(!c){if(this.playingLastItem&&this.isInterstitial(u)){const U=u.event.assetList[0];U&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(n,U))}return}const y=c.timelineStart,E=c.duration||0;(s&&n<y||n>=y+E)&&this.setScheduleToAssetAtTime(n,c)},this.onTimeupdate=()=>{const n=this.currentTime;if(n===void 0||this.playbackDisabled)return;if(n>this.timelinePos)this.timelinePos=n,n>this.bufferedPos&&this.checkBuffer();else return;const r=this.playingItem;if(!r||this.playingLastItem)return;if(n>=r.end){this.timelinePos=r.end;const u=this.findItemIndex(r);this.setSchedulePosition(u+1)}const i=this.playingAsset;if(!i)return;const s=i.timelineStart+(i.duration||0);n>=s&&this.setScheduleToAssetAtTime(n,i)},this.onScheduleUpdate=(n,r)=>{const i=this.schedule,s=this.playingItem,u=i.events||[],f=i.items||[],c=i.durations,y=n.map(V=>V.identifier),E=!!(u.length||y.length);if(E&&this.log(`INTERSTITIALS_UPDATED (${u.length}): ${u}
|
|
|
Schedule: ${f.map(V=>Ga(V))}`),y.length&&this.log(`Removed events ${y}`),this.playerQueue.forEach(V=>{if(V.interstitial.appendInPlace){const ee=V.assetItem.timelineStart,De=V.timelineOffset-ee;if(De)try{V.timelineOffset=ee}catch(Ae){Math.abs(De)>Lo&&this.warn(`${Ae} ("${V.assetId}" ${V.timelineOffset}->${ee})`)}}}),s){const V=this.updateItem(s,this.timelinePos);this.itemsMatch(s,V)&&(this.playingItem=V,this.waitingItem=this.endedItem=null)}else this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);const U=this.bufferingItem;if(U){const V=this.updateItem(U,this.bufferedPos);this.itemsMatch(U,V)?this.bufferingItem=V:U.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(U.event,null))}if(n.forEach(V=>{V.assetList.forEach(ee=>{this.clearAssetPlayer(ee.identifier,null)})}),E||r){if(this.hls.trigger(m.INTERSTITIALS_UPDATED,{events:u.slice(0),schedule:f.slice(0),durations:c,removedIds:y}),this.isInterstitial(s)&&y.includes(s.event.identifier)){this.warn(`Interstitial "${s.event.identifier}" removed while playing`),this.primaryFallback(s.event);return}this.checkBuffer()}},this.hls=e,this.HlsPlayerClass=t,this.assetListLoader=new qu(e),this.schedule=new Ju(this.onScheduleUpdate,e.logger),this.registerListeners()}registerListeners(){const e=this.hls;e.on(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(m.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(m.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.on(m.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(m.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.on(m.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.on(m.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.on(m.BUFFER_APPENDED,this.onBufferAppended,this),e.on(m.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(m.BUFFERED_TO_END,this.onBufferedToEnd,this),e.on(m.MEDIA_ENDED,this.onMediaEnded,this),e.on(m.ERROR,this.onError,this),e.on(m.DESTROYING,this.onDestroying,this)}unregisterListeners(){const e=this.hls;e&&(e.off(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(m.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(m.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.off(m.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(m.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.off(m.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.off(m.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.off(m.BUFFER_CODECS,this.onBufferCodecs,this),e.off(m.BUFFER_APPENDED,this.onBufferAppended,this),e.off(m.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(m.BUFFERED_TO_END,this.onBufferedToEnd,this),e.off(m.MEDIA_ENDED,this.onMediaEnded,this),e.off(m.ERROR,this.onError,this),e.off(m.DESTROYING,this.onDestroying,this))}startLoad(){this.resumeBuffering()}stopLoad(){this.pauseBuffering()}resumeBuffering(){var e;(e=this.getBufferingPlayer())==null||e.resumeBuffering()}pauseBuffering(){var e;(e=this.getBufferingPlayer())==null||e.pauseBuffering()}destroy(){this.unregisterListeners(),this.stopLoad(),this.assetListLoader&&this.assetListLoader.destroy(),this.emptyPlayerQueue(),this.clearScheduleState(),this.schedule&&this.schedule.destroy(),this.media=this.detachedData=this.mediaSelection=this.requiredTracks=this.altSelection=this.manager=null,this.hls=this.HlsPlayerClass=this.schedule=this.log=null,this.assetListLoader=null,this.onPlay=this.onPause=this.onSeeking=this.onTimeupdate=null,this.onScheduleUpdate=null}onDestroying(){const e=this.primaryMedia||this.media;e&&this.removeMediaListeners(e)}removeMediaListeners(e){Oa(e,"play",this.onPlay),Oa(e,"pause",this.onPause),Oa(e,"seeking",this.onSeeking),Oa(e,"timeupdate",this.onTimeupdate)}onMediaAttaching(e,t){const n=this.media=t.media;Fa(n,"seeking",this.onSeeking),Fa(n,"timeupdate",this.onTimeupdate),Fa(n,"play",this.onPlay),Fa(n,"pause",this.onPause)}onMediaAttached(e,t){const n=this.effectivePlayingItem,r=this.detachedData;if(this.detachedData=null,n===null)this.checkStart();else if(!r){this.clearScheduleState();const i=this.findItemIndex(n);this.setSchedulePosition(i)}}clearScheduleState(){this.playingItem=this.bufferingItem=this.waitingItem=this.endedItem=this.playingAsset=this.endedAsset=this.bufferingAsset=null}onMediaDetaching(e,t){const n=!!t.transferMedia,r=this.media;if(this.media=null,!n&&(r&&this.removeMediaListeners(r),this.detachedData)){const i=this.getBufferingPlayer();i&&(this.playingAsset=this.endedAsset=this.bufferingAsset=this.bufferingItem=this.waitingItem=this.detachedData=null,i.detachMedia()),this.shouldPlay=!1}}get interstitialsManager(){if(!this.manager){if(!this.hls)return null;const e=this,t=()=>e.bufferingItem||e.waitingItem,n=E=>E&&e.getAssetPlayer(E.identifier),r=(E,U,V,ee,De)=>{if(E){let Ae=E[U].start;const Ge=E.event;if(Ge){if(U==="playout"||Ge.timelineOccupancy!==cl.Point){const ft=n(V);(ft==null?void 0:ft.interstitial)===Ge&&(Ae+=ft.assetItem.startOffset+ft[De])}}else{const ft=ee==="bufferedPos"?s():e[ee];Ae+=ft-E.start}return Ae}return 0},i=(E,U)=>{if(E!==0&&U!=="primary"&&e.schedule.length){var V;const ee=e.schedule.findItemIndexAtTime(E),De=(V=e.schedule.items)==null?void 0:V[ee];if(De){const Ae=De[U].start-De.start;return E+Ae}}return E},s=()=>{const E=e.bufferedPos;return E===Number.MAX_VALUE?u("primary"):Math.max(E,0)},u=E=>{var U;return(U=e.primaryDetails)!=null&&U.live?e.primaryDetails.edge:e.schedule.durations[E]},f=(E,U)=>{var V,ee;const De=e.effectivePlayingItem;if(De!=null&&(V=De.event)!=null&&V.restrictions.skip)return;e.log(`seek to ${E} "${U}"`);const Ae=e.effectivePlayingItem,Ge=e.schedule.findItemIndexAtTime(E,U),ft=(ee=e.schedule.items)==null?void 0:ee[Ge],lt=e.getBufferingPlayer(),Pt=lt==null?void 0:lt.interstitial,Nt=Pt==null?void 0:Pt.appendInPlace,on=Ae&&e.itemsMatch(Ae,ft);if(Ae&&(Nt||on)){const Jt=n(e.playingAsset),vn=(Jt==null?void 0:Jt.media)||e.primaryMedia;if(vn){const jt=U==="primary"?vn.currentTime:r(Ae,U,e.playingAsset,"timelinePos","currentTime"),Wn=E-jt,yr=(Nt?jt:vn.currentTime)+Wn;if(yr>=0&&(!Jt||Nt||yr<=Jt.duration)){vn.currentTime=yr;return}}}if(ft){let Jt=E;if(U!=="primary"){const jt=ft[U].start,Wn=E-jt;Jt=ft.start+Wn}const vn=!e.isInterstitial(ft);if((!e.isInterstitial(Ae)||Ae.event.appendInPlace)&&(vn||ft.event.appendInPlace)){const jt=e.media||(Nt?lt==null?void 0:lt.media:null);jt&&(jt.currentTime=Jt)}else if(Ae){const jt=e.findItemIndex(Ae);if(Ge>jt){const yr=e.schedule.findJumpRestrictedIndex(jt+1,Ge);if(yr>jt){e.setSchedulePosition(yr);return}}let Wn=0;if(vn)e.timelinePos=Jt,e.checkBuffer();else{var zt;const yr=ft==null||(zt=ft.event)==null?void 0:zt.assetList;if(yr){const wi=E-(ft[U]||ft).start;for(let Jr=yr.length;Jr--;){const Hr=yr[Jr];if(Hr.duration&&wi>=Hr.startOffset&&wi<Hr.startOffset+Hr.duration){Wn=Jr;break}}}}e.setSchedulePosition(Ge,Wn)}}},c=()=>{const E=e.effectivePlayingItem;if(e.isInterstitial(E))return E;const U=t();return e.isInterstitial(U)?U:null},y={get currentTime(){const E=c(),U=e.effectivePlayingItem;return U&&U===E?r(U,"playout",e.effectivePlayingAsset,"timelinePos","currentTime")-U.playout.start:0},set currentTime(E){const U=c(),V=e.effectivePlayingItem;V&&V===U&&f(E+V.playout.start,"playout")},get duration(){const E=c();return E?E.playout.end-E.playout.start:0},get assetPlayers(){var E;const U=(E=c())==null?void 0:E.event.assetList;return U?U.map(V=>e.getAssetPlayer(V.identifier)):[]},get playingIndex(){var E;const U=(E=c())==null?void 0:E.event;return U&&e.effectivePlayingAsset?U.findAssetIndex(e.effectivePlayingAsset):-1},get scheduleItem(){return c()}};this.manager={get events(){var E,U;return((E=e.schedule)==null||(U=E.events)==null?void 0:U.slice(0))||[]},get schedule(){var E,U;return((E=e.schedule)==null||(U=E.items)==null?void 0:U.slice(0))||[]},get interstitialPlayer(){return c()?y:null},get playerQueue(){return e.playerQueue.slice(0)},get bufferingAsset(){return e.bufferingAsset},get bufferingItem(){return t()},get bufferingIndex(){const E=t();return e.findItemIndex(E)},get playingAsset(){return e.effectivePlayingAsset},get playingItem(){return e.effectivePlayingItem},get playingIndex(){const E=e.effectivePlayingItem;return e.findItemIndex(E)},primary:{get bufferedEnd(){return s()},get currentTime(){const E=e.timelinePos;return E>0?E:0},set currentTime(E){f(E,"primary")},get duration(){return u("primary")},get seekableStart(){var E;return((E=e.primaryDetails)==null?void 0:E.fragmentStart)||0}},integrated:{get bufferedEnd(){return r(t(),"integrated",e.bufferingAsset,"bufferedPos","bufferedEnd")},get currentTime(){return r(e.effectivePlayingItem,"integrated",e.effectivePlayingAsset,"timelinePos","currentTime")},set currentTime(E){f(E,"integrated")},get duration(){return u("integrated")},get seekableStart(){var E;return i(((E=e.primaryDetails)==null?void 0:E.fragmentStart)||0,"integrated")}},skip:()=>{const E=e.effectivePlayingItem,U=E==null?void 0:E.event;if(U&&!U.restrictions.skip){const V=e.findItemIndex(E);if(U.appendInPlace){const ee=E.playout.start+E.event.duration;f(ee+.001,"playout")}else e.advanceAfterAssetEnded(U,V,1/0)}}}}return this.manager}get effectivePlayingItem(){return this.waitingItem||this.playingItem||this.endedItem}get effectivePlayingAsset(){return this.playingAsset||this.endedAsset}get playingLastItem(){var e;const t=this.playingItem,n=(e=this.schedule)==null?void 0:e.items;return!this.playbackStarted||!t||!n?!1:this.findItemIndex(t)===n.length-1}get playbackStarted(){return this.effectivePlayingItem!==null}get currentTime(){var e,t,n;if(this.mediaSelection===null)return;const r=this.waitingItem||this.playingItem;if(this.isInterstitial(r)&&!r.event.appendInPlace)return;let i=this.media;!i&&(e=this.bufferingItem)!=null&&(t=e.event)!=null&&t.appendInPlace&&(i=this.primaryMedia);const s=(n=i)==null?void 0:n.currentTime;if(!(s===void 0||!O(s)))return s}get primaryMedia(){var e;return this.media||((e=this.detachedData)==null?void 0:e.media)||null}isInterstitial(e){return!!(e!=null&&e.event)}retreiveMediaSource(e,t){const n=this.getAssetPlayer(e);n&&this.transferMediaFromPlayer(n,t)}transferMediaFromPlayer(e,t){const n=e.interstitial.appendInPlace,r=e.media;if(n&&r===this.primaryMedia){if(this.bufferingAsset=null,(!t||this.isInterstitial(t)&&!t.event.appendInPlace)&&t&&r){this.detachedData={media:r};return}const i=e.transferMedia();this.log(`transfer MediaSource from ${e} ${an(i)}`),this.detachedData=i}else t&&r&&(this.shouldPlay||(this.shouldPlay=!r.paused))}transferMediaTo(e,t){var n,r;if(e.media===t)return;let i=null;const s=this.hls,u=e!==s,f=u&&e.interstitial.appendInPlace,c=(n=this.detachedData)==null?void 0:n.mediaSource;let y;if(s.media)f&&(i=s.transferMedia(),this.detachedData=i),y="Primary";else if(c){const V=this.getBufferingPlayer();V?(i=V.transferMedia(),y=`${V}`):y="detached MediaSource"}else y="detached media";if(!i){if(c)i=this.detachedData,this.log(`using detachedData: MediaSource ${an(i)}`);else if(!this.detachedData||s.media===t){const V=this.playerQueue;V.length>1&&V.forEach(ee=>{if(u&&ee.interstitial.appendInPlace!==f){const De=ee.interstitial;this.clearInterstitial(ee.interstitial,null),De.appendInPlace=!1,De.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${De}`)}}),this.hls.detachMedia(),this.detachedData={media:t}}}const E=i&&"mediaSource"in i&&((r=i.mediaSource)==null?void 0:r.readyState)!=="closed",U=E&&i?i:t;if(this.log(`${E?"transfering MediaSource":"attaching media"} to ${u?e:"Primary"} from ${y}`),U===i){const V=u&&e.assetId===this.schedule.assetIdAtEnd;U.overrides={duration:this.schedule.duration,endOfStream:!u||V,cueRemoval:!u}}e.attachMedia(U)}onInterstitialCueEnter(){this.onTimeupdate()}checkStart(){const e=this.schedule,t=e.events;if(!t||this.playbackDisabled||!this.media)return;this.bufferedPos===-1&&(this.bufferedPos=0);const n=this.timelinePos,r=this.effectivePlayingItem;if(n===-1){const i=this.hls.startPosition;if(this.timelinePos=i,t.length&&t[0].cue.pre){const s=e.findEventIndex(t[0].identifier);this.setSchedulePosition(s)}else if(i>=0||!this.primaryLive){const s=this.timelinePos=i>0?i:0,u=e.findItemIndexAtTime(s);this.setSchedulePosition(u)}}else if(r&&!this.playingItem){const i=e.findItemIndex(r);this.setSchedulePosition(i)}}advanceAfterAssetEnded(e,t,n){const r=n+1;if(!e.isAssetPastPlayoutLimit(r)&&!e.assetList[r].error)this.setSchedulePosition(t,r);else{const i=this.schedule.items;if(i){const s=t+1,u=i.length;if(s>=u){this.setSchedulePosition(-1);return}const f=e.resumeTime;this.timelinePos<f&&(this.timelinePos=f,this.checkBuffer()),this.setSchedulePosition(s)}}}setScheduleToAssetAtTime(e,t){const n=this.schedule,r=t.parentIdentifier,i=n.getEvent(r);if(i){const s=n.findEventIndex(r),u=n.findAssetIndex(i,e);this.setSchedulePosition(s,u)}}setSchedulePosition(e,t){const n=this.schedule.items;if(!n||this.playbackDisabled)return;this.log(`setSchedulePosition ${e}, ${t}`);const r=e>=0?n[e]:null,i=this.playingItem,s=this.playingLastItem;if(this.isInterstitial(i)){var u;const c=i.event,y=this.playingAsset,E=y==null?void 0:y.identifier,U=E?this.getAssetPlayer(E):null;if(U&&E&&(!this.eventItemsMatch(i,r)||t!==void 0&&E!==((u=c.assetList)==null?void 0:u[t].identifier))){var f;const V=c.findAssetIndex(y);this.log(`INTERSTITIAL_ASSET_ENDED ${V+1}/${c.assetList.length} ${Il(y)}`),this.endedAsset=y,this.playingAsset=null,this.hls.trigger(m.INTERSTITIAL_ASSET_ENDED,{asset:y,assetListIndex:V,event:c,schedule:n.slice(0),scheduleIndex:e,player:U}),this.retreiveMediaSource(E,r),U.media&&!((f=this.detachedData)!=null&&f.mediaSource)&&U.detachMedia()}if(!this.eventItemsMatch(i,r)&&(this.endedItem=i,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${c} ${Ga(i)}`),c.hasPlayed=!0,this.hls.trigger(m.INTERSTITIAL_ENDED,{event:c,schedule:n.slice(0),scheduleIndex:e}),c.cue.once)){this.updateSchedule();const V=this.schedule.items;if(r&&V){const ee=this.schedule.findItemIndex(r);this.advanceSchedule(ee,V,t,i,s)}return}}this.advanceSchedule(e,n,t,i,s)}advanceSchedule(e,t,n,r,i){const s=e>=0?t[e]:null,u=this.primaryMedia,f=this.playerQueue;if(f.length&&f.forEach(c=>{const y=c.interstitial,E=this.schedule.findEventIndex(y.identifier);(E<e||E>e+1)&&this.clearInterstitial(y,s)}),this.isInterstitial(s)){this.timelinePos=Math.min(Math.max(this.timelinePos,s.start),s.end);const c=s.event;n===void 0&&(n=this.schedule.findAssetIndex(c,this.timelinePos));const y=this.waitingItem;this.assetsBuffered(s,u)||this.setBufferingItem(s);let E=this.preloadAssets(c,n);if(this.eventItemsMatch(s,y||r)||(this.waitingItem=s,this.log(`INTERSTITIAL_STARTED ${Ga(s)} ${c.appendInPlace?"append in place":""}`),this.hls.trigger(m.INTERSTITIAL_STARTED,{event:c,schedule:t.slice(0),scheduleIndex:e})),!c.assetListLoaded){this.log(`Waiting for ASSET-LIST to complete loading ${c}`);return}if(c.assetListLoader&&(c.assetListLoader.destroy(),c.assetListLoader=void 0),!u){this.log(`Waiting for attachMedia to start Interstitial ${c}`);return}this.waitingItem=this.endedItem=null,this.playingItem=s;const U=c.assetList[n];if(!U){const V=t[e+1],ee=this.media;V&&ee&&!this.isInterstitial(V)&&ee.currentTime<V.start&&(ee.currentTime=this.timelinePos=V.start),this.advanceAfterAssetEnded(c,e,n||0);return}if(E||(E=this.getAssetPlayer(U.identifier)),E===null||E.destroyed){const V=c.assetList.length;this.warn(`asset ${n+1}/${V} player destroyed ${c}`),E=this.createAssetPlayer(c,U,n)}if(!this.eventItemsMatch(s,this.bufferingItem)&&c.appendInPlace&&this.isAssetBuffered(U))return;this.startAssetPlayer(E,n,t,e,u),this.shouldPlay&&Jl(E.media)}else s!==null?(this.resumePrimary(s,e,r),this.shouldPlay&&Jl(this.hls.media)):i&&this.isInterstitial(r)&&(this.endedItem=null,this.playingItem=r,r.event.appendInPlace||this.attachPrimary(this.schedule.durations.primary,null))}get playbackDisabled(){return this.hls.config.enableInterstitialPlayback===!1}get primaryDetails(){var e,t;return(e=this.mediaSelection)==null||(t=e.main)==null?void 0:t.details}get primaryLive(){var e;return!!((e=this.primaryDetails)!=null&&e.live)}resumePrimary(e,t,n){var r;if(this.playingItem=e,this.playingAsset=this.endedAsset=null,this.waitingItem=this.endedItem=null,this.bufferedToItem(e),this.log(`resuming ${Ga(e)}`),!((r=this.detachedData)!=null&&r.mediaSource)){let s=this.timelinePos;(s<e.start||s>=e.end)&&(s=this.getPrimaryResumption(e,t),this.timelinePos=s),this.attachPrimary(s,e)}if(!n)return;const i=this.schedule.items;i&&(this.log(`resumed ${Ga(e)}`),this.hls.trigger(m.INTERSTITIALS_PRIMARY_RESUMED,{schedule:i.slice(0),scheduleIndex:t}),this.checkBuffer())}getPrimaryResumption(e,t){const n=e.start;if(this.primaryLive){const r=this.primaryDetails;if(t===0)return this.hls.startPosition;if(r&&(n<r.fragmentStart||n>r.edge))return this.hls.liveSyncPosition||-1}return n}isAssetBuffered(e){const t=this.getAssetPlayer(e.identifier);return t!=null&&t.hls?t.hls.bufferedToEnd:Tr.bufferInfo(this.primaryMedia,this.timelinePos,0).end+1>=e.timelineStart+(e.duration||0)}attachPrimary(e,t,n){t?this.setBufferingItem(t):this.bufferingItem=this.playingItem,this.bufferingAsset=null;const r=this.primaryMedia;if(!r)return;const i=this.hls;i.media?this.checkBuffer():(this.transferMediaTo(i,r),n&&this.startLoadingPrimaryAt(e,n)),n||(this.timelinePos=e,this.startLoadingPrimaryAt(e,n))}startLoadingPrimaryAt(e,t){var n;const r=this.hls;!r.loadingEnabled||!r.media||Math.abs((((n=r.mainForwardBufferInfo)==null?void 0:n.start)||r.media.currentTime)-e)>.5?r.startLoad(e,t):r.bufferingEnabled||r.resumeBuffering()}onManifestLoading(){this.stopLoad(),this.schedule.reset(),this.emptyPlayerQueue(),this.clearScheduleState(),this.shouldPlay=!1,this.bufferedPos=this.timelinePos=-1,this.mediaSelection=this.altSelection=this.manager=this.requiredTracks=null,this.hls.off(m.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(m.BUFFER_CODECS,this.onBufferCodecs,this)}onLevelUpdated(e,t){if(t.level===-1)return;const n=this.hls.levels[t.level],r=S(S({},this.mediaSelection||this.altSelection),{},{main:n});this.mediaSelection=r,this.schedule.parseInterstitialDateRanges(r,this.hls.config.interstitialAppendInPlace),!this.effectivePlayingItem&&this.schedule.items&&this.checkStart()}onAudioTrackUpdated(e,t){const n=this.hls.audioTracks[t.id],r=this.mediaSelection;if(!r){this.altSelection=S(S({},this.altSelection),{},{audio:n});return}const i=S(S({},r),{},{audio:n});this.mediaSelection=i}onSubtitleTrackUpdated(e,t){const n=this.hls.subtitleTracks[t.id],r=this.mediaSelection;if(!r){this.altSelection=S(S({},this.altSelection),{},{subtitles:n});return}const i=S(S({},r),{},{subtitles:n});this.mediaSelection=i}onAudioTrackSwitching(e,t){const n=pt(t);this.playerQueue.forEach(r=>r.hls.setAudioOption(t)||r.hls.setAudioOption(n))}onSubtitleTrackSwitch(e,t){const n=pt(t);this.playerQueue.forEach(r=>r.hls.setSubtitleOption(t)||t.id!==-1&&r.hls.setSubtitleOption(n))}onBufferCodecs(e,t){const n=t.tracks;n&&(this.requiredTracks=n)}onBufferAppended(e,t){this.checkBuffer()}onBufferFlushed(e,t){const n=this.playingItem;if(n&&!this.itemsMatch(n,this.bufferingItem)&&!this.isInterstitial(n)){const r=this.timelinePos;this.bufferedPos=r,this.checkBuffer()}}onBufferedToEnd(e){const t=this.schedule.events;if(this.bufferedPos<Number.MAX_VALUE&&t){for(let r=0;r<t.length;r++){const i=t[r];if(i.cue.post){var n;const s=this.schedule.findEventIndex(i.identifier),u=(n=this.schedule.items)==null?void 0:n[s];this.isInterstitial(u)&&this.eventItemsMatch(u,this.bufferingItem)&&this.bufferedToItem(u,0);break}}this.bufferedPos=Number.MAX_VALUE}}onMediaEnded(e){const t=this.playingItem;if(!this.playingLastItem&&t){const n=this.findItemIndex(t);this.setSchedulePosition(n+1)}else this.shouldPlay=!1}updateItem(e,t){const n=this.schedule.items;if(e&&n){const r=this.findItemIndex(e,t);return n[r]||null}return null}itemsMatch(e,t){return!!t&&(e===t||e.event&&t.event&&this.eventItemsMatch(e,t)||!e.event&&!t.event&&this.findItemIndex(e)===this.findItemIndex(t))}eventItemsMatch(e,t){var n;return!!t&&(e===t||e.event.identifier===((n=t.event)==null?void 0:n.identifier))}findItemIndex(e,t){return e?this.schedule.findItemIndex(e,t):-1}updateSchedule(){const e=this.mediaSelection;e&&this.schedule.updateSchedule(e,[])}checkBuffer(e){const t=this.schedule.items;if(!t)return;const n=Tr.bufferInfo(this.primaryMedia,this.timelinePos,0);e&&(this.bufferedPos=this.timelinePos),e||(e=n.len<1),this.updateBufferedPos(n.end,t,e)}updateBufferedPos(e,t,n){const r=this.schedule,i=this.bufferingItem;if(this.bufferedPos>e)return;if(t.length===1&&this.itemsMatch(t[0],i)){this.bufferedPos=e;return}const s=this.playingItem,u=this.findItemIndex(s);let f=r.findItemIndexAtTime(e);if(this.bufferedPos<e){var c,y;const E=this.findItemIndex(i),U=Math.min(E+1,t.length-1),V=t[U];if((f===-1&&i&&e>=i.end||(c=V.event)!=null&&c.appendInPlace&&e+.01>=V.start)&&(f=U),U-u>1&&(i==null||(y=i.event)==null?void 0:y.appendInPlace)===!1)return;if(this.bufferedPos=e,f>E&&f>u)this.bufferedToItem(V);else{const ee=this.primaryDetails;this.primaryLive&&ee&&e>ee.edge-ee.targetduration&&V.start<ee.edge+this.hls.config.interstitialLiveLookAhead&&this.isInterstitial(V)&&this.preloadAssets(V.event,0)}}else n&&s&&!this.itemsMatch(s,i)&&(f===u?this.bufferedToItem(s):f===u+1&&this.bufferedToItem(t[f]))}assetsBuffered(e,t){return e.event.assetList.length===0?!1:!e.event.assetList.some(r=>{const i=this.getAssetPlayer(r.identifier);return!(i!=null&&i.bufferedInPlaceToEnd(t))})}setBufferingItem(e){const t=this.bufferingItem,n=this.schedule;if(this.itemsMatch(e,t))this.bufferingItem!==e&&(this.bufferingItem=e);else{const{items:r,events:i}=n;if(!r||!i)return t;const s=this.isInterstitial(e),u=this.getBufferingPlayer();if(this.bufferingItem=e,this.bufferedPos=Math.max(e.start,Math.min(e.end,this.timelinePos)),!this.playbackDisabled){const f=u?u.remaining:t?t.end-this.timelinePos:0;this.log(`buffered to boundary ${Ga(e)}`+(t?` (${f.toFixed(2)} remaining)`:"")),s?e.event.assetList.forEach(c=>{const y=this.getAssetPlayer(c.identifier);y&&y.resumeBuffering()}):(this.hls.resumeBuffering(),this.playerQueue.forEach(c=>c.pauseBuffering()))}this.hls.trigger(m.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:i.slice(0),schedule:r.slice(0),bufferingIndex:this.findItemIndex(e),playingIndex:this.findItemIndex(this.playingItem)})}return t}bufferedToItem(e,t=0){const n=this.setBufferingItem(e);if(!this.playbackDisabled){if(this.isInterstitial(e))this.bufferedToEvent(e,t);else if(n!==null){this.bufferingAsset=null;const r=this.detachedData;r?r.mediaSource?this.attachPrimary(e.start,e,!0):this.preloadPrimary(e):this.preloadPrimary(e)}}}preloadPrimary(e){const t=this.findItemIndex(e),n=this.getPrimaryResumption(e,t);this.startLoadingPrimaryAt(n)}bufferedToEvent(e,t){const n=e.event,r=n.assetList.length===0&&!n.assetListLoader,i=n.cue.once;if(r||!i){const s=this.preloadAssets(n,t);if(s!=null&&s.interstitial.appendInPlace){const u=n.assetList[t],f=this.primaryMedia;u&&f&&this.bufferAssetPlayer(s,f)}}}preloadAssets(e,t){const n=e.assetUrl,r=e.assetList.length,i=r===0&&!e.assetListLoader,s=e.cue.once;if(i){const f=e.timelineStart;if(e.appendInPlace){var u;const U=this.playingItem;!this.isInterstitial(U)&&(U==null||(u=U.nextEvent)==null?void 0:u.identifier)===e.identifier&&this.flushFrontBuffer(f+.25)}let c,y=0;if(!this.playingItem&&this.primaryLive&&(y=this.hls.startPosition,y===-1&&(y=this.hls.liveSyncPosition||0)),y&&!(e.cue.pre||e.cue.post)){const U=y-f;U>0&&(c=Math.round(U*1e3)/1e3)}if(this.log(`Load interstitial asset ${t+1}/${n?1:r} ${e}${c?` live-start: ${y} start-offset: ${c}`:""}`),n)return this.createAsset(e,0,0,f,e.duration,n);const E=this.assetListLoader.loadAssetList(e,c);E&&(e.assetListLoader=E)}else if(!s&&r){for(let f=t;f<r;f++){const c=e.assetList[f],y=this.getAssetPlayerQueueIndex(c.identifier);(y===-1||this.playerQueue[y].destroyed)&&!c.error&&this.createAssetPlayer(e,c,f)}return this.getAssetPlayer(e.assetList[t].identifier)}return null}flushFrontBuffer(e){const t=this.requiredTracks;if(!t)return;this.log(`Removing front buffer starting at ${e}`),Object.keys(t).forEach(r=>{this.hls.trigger(m.BUFFER_FLUSHING,{startOffset:e,endOffset:1/0,type:r})})}getAssetPlayerQueueIndex(e){const t=this.playerQueue;for(let n=0;n<t.length;n++)if(e===t[n].assetId)return n;return-1}getAssetPlayer(e){const t=this.getAssetPlayerQueueIndex(e);return this.playerQueue[t]||null}getBufferingPlayer(){const{playerQueue:e,primaryMedia:t}=this;if(t){for(let n=0;n<e.length;n++)if(e[n].media===t)return e[n]}return null}createAsset(e,t,n,r,i,s){const u={parentIdentifier:e.identifier,identifier:Vu(e,s,t),duration:i,startOffset:n,timelineStart:r,uri:s};return this.createAssetPlayer(e,u,t)}createAssetPlayer(e,t,n){this.log(`create HLSAssetPlayer for ${Il(t)}`);const r=this.hls,i=r.userConfig;let s=i.videoPreference;const u=r.loadLevelObj||r.levels[r.currentLevel];(s||u)&&(s=g({},s),u.videoCodec&&(s.videoCodec=u.videoCodec),u.videoRange&&(s.allowedVideoRanges=[u.videoRange]));const f=r.audioTracks[r.audioTrack],c=r.subtitleTracks[r.subtitleTrack];let y=0;if(this.primaryLive||e.appendInPlace){const lt=this.timelinePos-t.timelineStart;if(lt>1){const Pt=t.duration;Pt&<<Pt&&(y=lt)}}const E=t.identifier,U=S(S({},i),{},{autoStartLoad:!0,startFragPrefetch:!0,primarySessionId:r.sessionId,assetPlayerId:E,abrEwmaDefaultEstimate:r.bandwidthEstimate,interstitialsController:void 0,startPosition:y,liveDurationInfinity:!1,testBandwidth:!1,videoPreference:s,audioPreference:f||i.audioPreference,subtitlePreference:c||i.subtitlePreference});e.appendInPlace&&(e.appendInPlaceStarted=!0,t.timelineStart&&(U.timelineOffset=t.timelineStart));const V=U.cmcd;V!=null&&V.sessionId&&V.contentId&&(U.cmcd=g({},V,{contentId:Go(t.uri)})),this.getAssetPlayer(E)&&this.warn(`Duplicate date range identifier ${e} and asset ${E}`);const ee=new Qu(this.HlsPlayerClass,U,e,t);this.playerQueue.push(ee),e.assetList[n]=t;const De=lt=>{if(lt.live){const on=new Error(`Interstitials MUST be VOD assets ${e}`),zt={fatal:!0,type:ce.OTHER_ERROR,details:A.INTERSTITIAL_ASSET_ITEM_ERROR,error:on};this.handleAssetItemError(zt,e,this.schedule.findEventIndex(e.identifier),n,on.message);return}const Pt=lt.edge-lt.fragmentStart,Nt=t.duration;(Nt===null||Pt>Nt)&&(this.log(`Interstitial asset "${E}" duration change ${Nt} > ${Pt}`),t.duration=Pt,this.updateSchedule())};ee.on(m.LEVEL_UPDATED,(lt,{details:Pt})=>De(Pt)),ee.on(m.LEVEL_PTS_UPDATED,(lt,{details:Pt})=>De(Pt));const Ae=(lt,Pt)=>{const Nt=this.getAssetPlayer(E);if(Nt&&Pt.tracks){Nt.off(m.BUFFER_CODECS,Ae),Nt.tracks=Pt.tracks;const on=this.primaryMedia;this.bufferingAsset===Nt.assetItem&&on&&!Nt.media&&this.bufferAssetPlayer(Nt,on)}};ee.on(m.BUFFER_CODECS,Ae);const Ge=()=>{var lt;const Pt=this.getAssetPlayer(E);if(this.log(`buffered to end of asset ${Pt}`),!Pt)return;const Nt=this.schedule.findEventIndex(e.identifier),on=e.findAssetIndex(t),zt=on+1,Jt=(lt=this.schedule.items)==null?void 0:lt[Nt];if(this.isInterstitial(Jt))if(on!==-1&&!e.isAssetPastPlayoutLimit(zt)&&!e.assetList[zt].error)this.bufferedToItem(Jt,zt);else{var vn;const jt=(vn=this.schedule.items)==null?void 0:vn[Nt+1];jt&&this.bufferedToItem(jt)}};ee.on(m.BUFFERED_TO_END,Ge);const ft=lt=>()=>{if(!this.getAssetPlayer(E))return;this.shouldPlay=!0;const Nt=this.schedule.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,Nt,lt)};return ee.once(m.MEDIA_ENDED,ft(n)),ee.once(m.PLAYOUT_LIMIT_REACHED,ft(1/0)),ee.on(m.ERROR,(lt,Pt)=>{const Nt=this.getAssetPlayer(E);if(Pt.details===A.BUFFER_STALLED_ERROR){if(Nt!=null&&Nt.media){const on=Nt.currentTime,zt=Nt.duration-on;on&&e.appendInPlace&&zt/Nt.media.playbackRate<.5?(this.log(`Advancing buffer past end of asset ${E} ${e} at ${Nt.media.currentTime}`),Ge()):(this.warn(`Stalled at ${on} of ${on+zt} in asset ${E} ${e}`),this.onTimeupdate(),this.checkBuffer(!0))}return}this.handleAssetItemError(Pt,e,this.schedule.findEventIndex(e.identifier),n,`Asset player error ${Pt.error} ${e}`)}),ee.on(m.DESTROYING,()=>{if(!this.getAssetPlayer(E))return;const Pt=new Error(`Asset player destroyed unexpectedly ${E}`),Nt={fatal:!0,type:ce.OTHER_ERROR,details:A.INTERSTITIAL_ASSET_ITEM_ERROR,error:Pt};this.handleAssetItemError(Nt,e,this.schedule.findEventIndex(e.identifier),n,Pt.message)}),this.hls.trigger(m.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:t,assetListIndex:n,event:e,player:ee}),ee}clearInterstitial(e,t){e.assetList.forEach(n=>{this.clearAssetPlayer(n.identifier,t)}),e.reset()}clearAssetPlayer(e,t){const n=this.getAssetPlayerQueueIndex(e);if(n!==-1){this.log(`clearAssetPlayer "${e}" toSegment: ${t&&Ga(t)}`);const r=this.playerQueue[n];this.transferMediaFromPlayer(r,t),this.playerQueue.splice(n,1),r.destroy()}}emptyPlayerQueue(){let e;for(;e=this.playerQueue.pop();)e.destroy();this.playerQueue=[]}startAssetPlayer(e,t,n,r,i){const{interstitial:s,assetItem:u,assetId:f}=e,c=s.assetList.length,y=this.playingAsset;this.endedAsset=null,this.playingAsset=u,(!y||y.identifier!==f)&&(y&&(this.clearAssetPlayer(y.identifier,n[r]),delete y.error),this.log(`INTERSTITIAL_ASSET_STARTED ${t+1}/${c} ${e}`),this.hls.trigger(m.INTERSTITIAL_ASSET_STARTED,{asset:u,assetListIndex:t,event:s,schedule:n.slice(0),scheduleIndex:r,player:e})),this.bufferAssetPlayer(e,i)}bufferAssetPlayer(e,t){var n,r;const{interstitial:i,assetItem:s,assetId:u}=e,f=this.schedule.findEventIndex(i.identifier),c=(n=this.schedule.items)==null?void 0:n[f];if(!c)return;this.setBufferingItem(c),this.bufferingAsset=s;const y=this.getBufferingPlayer();if(y===e)return;const E=i.appendInPlace;if(E&&(y==null?void 0:y.interstitial.appendInPlace)===!1)return;const U=(y==null?void 0:y.tracks)||((r=this.detachedData)==null?void 0:r.tracks)||this.requiredTracks;if(E&&s!==this.playingAsset){if(!e.tracks)return;if(U&&!Ee(U,e.tracks)){const V=new Error(`Asset "${u}" SourceBuffer tracks ('${Object.keys(e.tracks)}') are not compatible with primary content tracks ('${Object.keys(U)}')`),ee={fatal:!0,type:ce.OTHER_ERROR,details:A.INTERSTITIAL_ASSET_ITEM_ERROR,error:V},De=i.findAssetIndex(s);this.handleAssetItemError(ee,i,f,De,V.message);return}}this.transferMediaTo(e,t)}handleAssetItemError(e,t,n,r,i){if(e.details===A.BUFFER_STALLED_ERROR)return;const s=t.assetList[r]||null;let u=null;if(s){const E=this.getAssetPlayerQueueIndex(s.identifier);u=this.playerQueue[E]||null}const f=this.schedule.items,c=g({},e,{fatal:!1,errorAction:ur(!0),asset:s,assetListIndex:r,event:t,schedule:f,scheduleIndex:n,player:u});if(this.warn(`Asset item error: ${e.error}`),this.hls.trigger(m.INTERSTITIAL_ASSET_ERROR,c),!e.fatal)return;const y=new Error(i);s&&(this.playingAsset!==s&&this.clearAssetPlayer(s.identifier,null),s.error=y),t.assetList.some(E=>!E.error)?t.appendInPlace&&(t.error=y):t.error=y,this.primaryFallback(t)}primaryFallback(e){const t=e.timelineStart,n=this.effectivePlayingItem;if(this.updateSchedule(),n){this.log(`Fallback to primary from event "${e.identifier}" start: ${t} pos: ${this.timelinePos} playing: ${n?Ga(n):"<none>"} error: ${e.error}`),e.appendInPlace&&(this.attachPrimary(t,null),this.flushFrontBuffer(t));let r=this.timelinePos;r===-1&&(r=this.hls.startPosition);const i=this.updateItem(n,r);if(this.itemsMatch(n,i))this.clearInterstitial(e,null);else{const s=this.schedule.findItemIndexAtTime(r);this.setSchedulePosition(s)}}else this.checkStart()}onAssetListLoaded(e,t){var n;const r=t.event,i=r.identifier,s=t.assetListResponse.ASSETS;if(!this.schedule.hasEvent(i))return;const u=r.timelineStart,f=r.duration;let c=0;s.forEach((ee,De)=>{const Ae=parseFloat(ee.DURATION);this.createAsset(r,De,c,u+c,Ae,ee.URI),c+=Ae}),r.duration=c,this.log(`Loaded asset-list with duration: ${c} (was: ${f}) ${r}`);const y=this.waitingItem,E=(y==null?void 0:y.event.identifier)===i;this.updateSchedule();const U=(n=this.bufferingItem)==null?void 0:n.event;if(E){var V;const ee=this.schedule.findEventIndex(i),De=(V=this.schedule.items)==null?void 0:V[ee];if(De){if(!this.playingItem&&this.timelinePos>De.end&&this.schedule.findItemIndexAtTime(this.timelinePos)!==ee){r.error=new Error(`Interstitial no longer within playback range ${this.timelinePos} ${r}`),this.primaryFallback(r);return}this.setBufferingItem(De)}this.setSchedulePosition(ee)}else if((U==null?void 0:U.identifier)===i&&U.appendInPlace){const ee=r.assetList[0],De=this.getAssetPlayer(ee.identifier),Ae=this.primaryMedia;ee&&De&&Ae&&this.bufferAssetPlayer(De,Ae)}}onError(e,t){switch(t.details){case A.ASSET_LIST_PARSING_ERROR:case A.ASSET_LIST_LOAD_ERROR:case A.ASSET_LIST_LOAD_TIMEOUT:{const n=t.interstitial;n&&this.primaryFallback(n);break}case A.BUFFER_STALLED_ERROR:{this.onTimeupdate(),this.checkBuffer(!0);break}}}}const ql=500;class tc extends ta{constructor(e,t,n){super(e,t,n,"subtitle-stream-controller",re.SUBTITLE),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(m.LEVEL_LOADED,this.onLevelLoaded,this),e.on(m.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(m.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(m.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(m.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(m.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(m.LEVEL_LOADED,this.onLevelLoaded,this),e.off(m.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(m.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(m.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(m.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(m.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(e,t){this.stopLoad(),this.state=gn.IDLE,this.setInterval(ql),this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}onManifestLoading(){super.onManifestLoading(),this.mainDetails=null}onMediaDetaching(e,t){this.tracksBuffered=[],super.onMediaDetaching(e,t)}onLevelLoaded(e,t){this.mainDetails=t.details}onSubtitleFragProcessed(e,t){const{frag:n,success:r}=t;if(me(n)&&(this.fragPrevious=n),this.state=gn.IDLE,!r)return;const i=this.tracksBuffered[this.currentTrackId];if(!i)return;let s;const u=n.start;for(let c=0;c<i.length;c++)if(u>=i[c].start&&u<=i[c].end){s=i[c];break}const f=n.start+n.duration;s?s.end=f:(s={start:u,end:f},i.push(s)),this.fragmentTracker.fragBuffered(n),this.fragBufferedComplete(n,null),this.media&&this.tick()}onBufferFlushing(e,t){const{startOffset:n,endOffset:r}=t;if(n===0&&r!==Number.POSITIVE_INFINITY){const i=r-1;if(i<=0)return;t.endOffsetSubtitles=Math.max(0,i),this.tracksBuffered.forEach(s=>{for(let 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(n,i,re.SUBTITLE)}}onError(e,t){const n=t.frag;(n==null?void 0:n.type)===re.SUBTITLE&&(t.details===A.FRAG_GAP&&this.fragmentTracker.fragBuffered(n,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==gn.STOPPED&&(this.state=gn.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&Ia(this.levels,t)){this.levels=t.map(n=>new Cn(n));return}this.tracksBuffered=[],this.levels=t.map(n=>{const r=new Cn(n);return this.tracksBuffered[r.id]=[],r}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,re.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}onSubtitleTrackSwitch(e,t){var n;if(this.currentTrackId=t.id,!((n=this.levels)!=null&&n.length)||this.currentTrackId===-1){this.clearInterval();return}const r=this.levels[this.currentTrackId];r!=null&&r.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,r&&this.state!==gn.STOPPED&&this.setInterval(ql)}onSubtitleTrackLoaded(e,t){var n;const{currentTrackId:r,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 c=0;if(s.live||(n=f.details)!=null&&n.live){const E=this.mainDetails;if(s.deltaUpdateFailed||!E)return;const U=E.fragments[0];if(!f.details)s.hasProgramDateTime&&E.hasProgramDateTime?(Ji(s,E),c=s.fragmentStart):U&&(c=U.start,va(s,c));else{var y;c=this.alignPlaylists(s,f.details,(y=this.levelLastLoaded)==null?void 0:y.details),c===0&&U&&(c=U.start,va(s,c))}}f.details=s,this.levelLastLoaded=f,u===r&&(this.hls.trigger(m.SUBTITLE_TRACK_UPDATED,{details:s,id:u,groupId:t.groupId}),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===gn.IDLE&&(En(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:n}=e,r=t.decryptdata,i=this.hls;if(!this.fragContextChanged(t)&&n&&n.byteLength>0&&r!=null&&r.key&&r.iv&&xr(r.method)){const s=performance.now();this.decrypter.decrypt(new Uint8Array(n),r.key.buffer,r.iv.buffer,cr(r.method)).catch(u=>{throw i.trigger(m.ERROR,{type:ce.MEDIA_ERROR,details:A.FRAG_DECRYPT_ERROR,fatal:!1,error:u,reason:u.message,frag:t}),u}).then(u=>{const f=performance.now();i.trigger(m.FRAG_DECRYPTED,{frag:t,payload:u,stats:{tstart:s,tdecrypt:f}})}).catch(u=>{this.warn(`${u.name}: ${u.message}`),this.state=gn.IDLE})}}doTick(){if(!this.media){this.state=gn.IDLE;return}if(this.state===gn.IDLE){const{currentTrackId:e,levels:t}=this,n=t==null?void 0:t[e];if(!n||!t.length||!n.details||this.waitForLive(n))return;const{config:r}=this,i=this.getLoadPosition(),s=Tr.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],i,r.maxBufferHole),{end:u,len:f}=s,c=n.details,y=this.hls.maxBufferLength+c.levelTargetDuration;if(f>y)return;const E=c.fragments,U=E.length,V=c.edge;let ee=null;const De=this.fragPrevious;if(u<V){const ft=r.maxFragLookUpTolerance,lt=u>V-ft?0:ft;ee=En(De,E,Math.max(E[0].start,u),lt),!ee&&De&&De.start<E[0].start&&(ee=E[0])}else ee=E[U-1];if(ee=this.filterReplacedPrimary(ee,n.details),!ee)return;const Ae=ee.sn-c.startSN,Ge=E[Ae-1];if(Ge&&Ge.cc===ee.cc&&this.fragmentTracker.getState(Ge)===er.NOT_LOADED&&(ee=Ge),this.fragmentTracker.getState(ee)===er.NOT_LOADED){const ft=this.mapToInitFragWhenRequired(ee);ft&&this.loadFragment(ft,n,u)}}}loadFragment(e,t,n){me(e)?super.loadFragment(e,t,n):this._loadInitSegment(e,t)}get mediaBufferTimeRanges(){return new nc(this.tracksBuffered[this.currentTrackId]||[])}}class nc{constructor(e){this.buffered=void 0;const t=(n,r,i)=>{if(r=r>>>0,r>i-1)throw new DOMException(`Failed to execute '${n}' on 'TimeRanges': The index provided (${r}) is greater than the maximum bound (${i})`);return e[r][n]};this.buffered={get length(){return e.length},end(n){return t("end",n,e.length)},start(n){return t("start",n,e.length)}}}}const rc={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},eu=a=>String.fromCharCode(rc[a]||a),Ea=15,$a=100,ic={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},sc={17:2,18:4,21:6,22:8,23:10,19:13,20:15},ac={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},oc={25:2,26:4,29:6,30:8,31:10,27:13,28:15},lc=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class uc{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const n=typeof t=="function"?t():t;j.log(`${this.time} [${e}] ${n}`)}}}const to=function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n].toString(16));return t};class tu{constructor(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}reset(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}setStyles(e){const t=["foreground","underline","italics","background","flash"];for(let n=0;n<t.length;n++){const r=t[n];e.hasOwnProperty(r)&&(this[r]=e[r])}}isDefault(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash}equals(e){return this.foreground===e.foreground&&this.underline===e.underline&&this.italics===e.italics&&this.background===e.background&&this.flash===e.flash}copy(e){this.foreground=e.foreground,this.underline=e.underline,this.italics=e.italics,this.background=e.background,this.flash=e.flash}toString(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}}class cc{constructor(){this.uchar=" ",this.penState=new tu}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 dc{constructor(e){this.chars=[],this.pos=0,this.currPenState=new tu,this.cueStartTime=null,this.logger=void 0;for(let t=0;t<$a;t++)this.chars.push(new cc);this.logger=e}equals(e){for(let t=0;t<$a;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<$a;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<$a;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>$a&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=$a)}moveCursor(e){const t=this.pos+e;if(e>1)for(let n=this.pos+1;n<t+1;n++)this.chars[n].setPenState(this.currPenState);this.setCursor(t)}backSpace(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}insertChar(e){e>=144&&this.backSpace();const t=eu(e);if(this.pos>=$a){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<$a;t++)this.chars[t].reset()}clear(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()}clearToEndOfRow(){this.clearFromPos(this.pos)}getTextString(){const e=[];let t=!0;for(let n=0;n<$a;n++){const r=this.chars[n].uchar;r!==" "&&(t=!1),e.push(r)}return t?"":e.join("")}setPenStyles(e){this.currPenState.setStyles(e),this.chars[this.pos].setPenState(this.currPenState)}}class Rl{constructor(e){this.rows=[],this.currRow=Ea-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<Ea;t++)this.rows.push(new dc(e));this.logger=e}reset(){for(let e=0;e<Ea;e++)this.rows[e].clear();this.currRow=Ea-1}equals(e){let t=!0;for(let n=0;n<Ea;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t}copy(e){for(let t=0;t<Ea;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<Ea;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 = "+an(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<Ea;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 c=0;c<this.nrRollUpRows;c++)this.rows[t-this.nrRollUpRows+c+1].copy(s.rows[i+c])}}this.currRow=t;const n=this.rows[this.currRow];if(e.indent!==null){const i=e.indent,s=Math.max(i-1,0);n.setCursor(e.indent),e.color=n.chars[s].penState.foreground}const r={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(r)}setBkgData(e){this.logger.log(2,()=>"bkgData = "+an(e)),this.backSpace(),this.setPen(e),this.insertChar(32)}setRollUpRows(e){this.nrRollUpRows=e}rollUp(){if(this.nrRollUpRows===null){this.logger.log(3,"roll_up but nrRollUpRows not set yet");return}this.logger.log(1,()=>this.getDisplayText());const e=this.currRow+1-this.nrRollUpRows,t=this.rows.splice(e,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),this.logger.log(2,"Rolling up")}getDisplayText(e){e=e||!1;const t=[];let n="",r=-1;for(let i=0;i<Ea;i++){const s=this.rows[i].getTextString();s&&(r=i+1,e?t.push("Row "+r+": '"+s+"'"):t.push(s.trim()))}return t.length>0&&(e?n="["+t.join(" | ")+"]":n=t.join(`
|
|
|
`)),n}getTextAndFormat(){return this.rows}}class nu{constructor(e,t,n){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new Rl(n),this.nonDisplayedMemory=new Rl(n),this.lastOutputScreen=new Rl(n),this.currRollUpRow=this.displayedMemory.rows[Ea-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=n}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[Ea-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(e){this.outputFilter=e}setPAC(e){this.writeScreen.setPAC(e)}setBkgData(e){this.writeScreen.setBkgData(e)}setMode(e){e!==this.mode&&(this.mode=e,this.logger.log(2,()=>"MODE="+e),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)}insertChars(e){for(let n=0;n<e.length;n++)this.writeScreen.insertChar(e[n]);const t=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,()=>t+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(1,()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}ccBS(){this.logger.log(2,"BS - BackSpace"),this.mode!=="MODE_TEXT"&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}ccRU(e){this.logger.log(2,"RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){const e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,()=>"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)}ccTO(e){this.logger.log(2,"TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)}ccMIDROW(e){const t={flash:!1};if(t.underline=e%2===1,t.italics=e>=46,t.italics)t.foreground="white";else{const n=Math.floor(e/2)-16,r=["white","green","blue","cyan","red","yellow","magenta"];t.foreground=r[n]}this.logger.log(2,"MIDROW: "+an(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 ru{constructor(e,t,n){this.channels=void 0,this.currentChannel=0,this.cmdHistory=hc(),this.logger=void 0;const r=this.logger=new uc;this.channels=[null,new nu(e,t,r),new nu(e+1,n,r)]}getHandler(e){return this.channels[e].getHandler()}setHandler(e,t){this.channels[e].setHandler(t)}addData(e,t){this.logger.time=e;for(let n=0;n<t.length;n+=2){const r=t[n]&127,i=t[n+1]&127;let s=!1,u=null;if(r===0&&i===0)continue;this.logger.log(3,()=>"["+to([t[n],t[n+1]])+"] -> ("+to([r,i])+")");const f=this.cmdHistory;if(r>=16&&r<=31){if(fc(r,i,f)){dl(null,null,f),this.logger.log(3,()=>"Repeated command ("+to([r,i])+") is dropped");continue}dl(r,i,this.cmdHistory),s=this.parseCmd(r,i),s||(s=this.parseMidrow(r,i)),s||(s=this.parsePAC(r,i)),s||(s=this.parseBackgroundAttributes(r,i))}else dl(null,null,f);if(!s&&(u=this.parseChars(r,i),u)){const y=this.currentChannel;y&&y>0?this.channels[y].insertChars(u):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!s&&!u&&this.logger.log(2,()=>"Couldn't parse cleaned data "+to([r,i])+" orig: "+to([t[n],t[n+1]]))}}parseCmd(e,t){const n=(e===20||e===28||e===21||e===29)&&t>=32&&t<=47,r=(e===23||e===31)&&t>=33&&t<=35;if(!(n||r))return!1;const i=e===20||e===21||e===23?1:2,s=this.channels[i];return e===20||e===21||e===28||e===29?t===32?s.ccRCL():t===33?s.ccBS():t===34?s.ccAOF():t===35?s.ccAON():t===36?s.ccDER():t===37?s.ccRU(2):t===38?s.ccRU(3):t===39?s.ccRU(4):t===40?s.ccFON():t===41?s.ccRDC():t===42?s.ccTR():t===43?s.ccRTD():t===44?s.ccEDM():t===45?s.ccCR():t===46?s.ccENM():t===47&&s.ccEOC():s.ccTO(t-32),this.currentChannel=i,!0}parseMidrow(e,t){let n=0;if((e===17||e===25)&&t>=32&&t<=47){if(e===17?n=1:n=2,n!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const r=this.channels[n];return r?(r.ccMIDROW(t),this.logger.log(3,()=>"MIDROW ("+to([e,t])+")"),!0):!1}return!1}parsePAC(e,t){let n;const r=(e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127,i=(e===16||e===24)&&t>=64&&t<=95;if(!(r||i))return!1;const s=e<=23?1:2;t>=64&&t<=95?n=s===1?ic[e]:ac[e]:n=s===1?sc[e]:oc[e];const u=this.channels[s];return u?(u.setPAC(this.interpretPAC(n,t)),this.currentChannel=s,!0):!1}interpretPAC(e,t){let n;const r={color:null,italics:!1,indent:null,underline:!1,row:e};return t>95?n=t-96:n=t-64,r.underline=(n&1)===1,n<=13?r.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(r.italics=!0,r.color="white"):r.indent=Math.floor((n-16)/2)*4,r}parseChars(e,t){let n,r=null,i=null;if(e>=25?(n=2,i=e-8):(n=1,i=e),i>=17&&i<=19){let s;i===17?s=t+80:i===18?s=t+112:s=t+144,this.logger.log(2,()=>"Special char '"+eu(s)+"' in channel "+n),r=[s]}else e>=32&&e<=127&&(r=t===0?[e]:[e,t]);return r&&this.logger.log(3,()=>"Char codes = "+to(r).join(",")),r}parseBackgroundAttributes(e,t){const n=(e===16||e===24)&&t>=32&&t<=47,r=(e===23||e===31)&&t>=45&&t<=47;if(!(n||r))return!1;let i;const s={};e===16||e===24?(i=Math.floor((t-32)/2),s.background=lc[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()}dl(null,null,this.cmdHistory)}cueSplitAtTime(e){for(let t=0;t<this.channels.length;t++){const n=this.channels[t];n&&n.cueSplitAtTime(e)}}}function dl(a,e,t){t.a=a,t.b=e}function fc(a,e,t){return t.a===a&&t.b===e}function hc(){return{a:null,b:null}}var Ll=function(){if(Ti!=null&&Ti.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 c=f.toLowerCase();return~u.indexOf(c)?c:!1}function n(u){return t(a,u)}function r(u){return t(e,u)}function i(u,...f){let c=1;for(;c<arguments.length;c++){const y=arguments[c];for(const E in y)u[E]=y[E]}return u}function s(u,f,c){const y=this,E={enumerable:!0};y.hasBeenReset=!1;let U="",V=!1,ee=u,De=f,Ae=c,Ge=null,ft="",lt=!0,Pt="auto",Nt="start",on=50,zt="middle",Jt=50,vn="middle";Object.defineProperty(y,"id",i({},E,{get:function(){return U},set:function(jt){U=""+jt}})),Object.defineProperty(y,"pauseOnExit",i({},E,{get:function(){return V},set:function(jt){V=!!jt}})),Object.defineProperty(y,"startTime",i({},E,{get:function(){return ee},set:function(jt){if(typeof jt!="number")throw new TypeError("Start time must be set to a number.");ee=jt,this.hasBeenReset=!0}})),Object.defineProperty(y,"endTime",i({},E,{get:function(){return De},set:function(jt){if(typeof jt!="number")throw new TypeError("End time must be set to a number.");De=jt,this.hasBeenReset=!0}})),Object.defineProperty(y,"text",i({},E,{get:function(){return Ae},set:function(jt){Ae=""+jt,this.hasBeenReset=!0}})),Object.defineProperty(y,"region",i({},E,{get:function(){return Ge},set:function(jt){Ge=jt,this.hasBeenReset=!0}})),Object.defineProperty(y,"vertical",i({},E,{get:function(){return ft},set:function(jt){const Wn=n(jt);if(Wn===!1)throw new SyntaxError("An invalid or illegal string was specified.");ft=Wn,this.hasBeenReset=!0}})),Object.defineProperty(y,"snapToLines",i({},E,{get:function(){return lt},set:function(jt){lt=!!jt,this.hasBeenReset=!0}})),Object.defineProperty(y,"line",i({},E,{get:function(){return Pt},set:function(jt){if(typeof jt!="number"&&jt!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");Pt=jt,this.hasBeenReset=!0}})),Object.defineProperty(y,"lineAlign",i({},E,{get:function(){return Nt},set:function(jt){const Wn=r(jt);if(!Wn)throw new SyntaxError("An invalid or illegal string was specified.");Nt=Wn,this.hasBeenReset=!0}})),Object.defineProperty(y,"position",i({},E,{get:function(){return on},set:function(jt){if(jt<0||jt>100)throw new Error("Position must be between 0 and 100.");on=jt,this.hasBeenReset=!0}})),Object.defineProperty(y,"positionAlign",i({},E,{get:function(){return zt},set:function(jt){const Wn=r(jt);if(!Wn)throw new SyntaxError("An invalid or illegal string was specified.");zt=Wn,this.hasBeenReset=!0}})),Object.defineProperty(y,"size",i({},E,{get:function(){return Jt},set:function(jt){if(jt<0||jt>100)throw new Error("Size must be between 0 and 100.");Jt=jt,this.hasBeenReset=!0}})),Object.defineProperty(y,"align",i({},E,{get:function(){return vn},set:function(jt){const Wn=r(jt);if(!Wn)throw new SyntaxError("An invalid or illegal string was specified.");vn=Wn,this.hasBeenReset=!0}})),y.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s}();class pc{decode(e,t){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function iu(a){function e(n,r,i,s){return(n|0)*3600+(r|0)*60+(i|0)+parseFloat(s||0)}const t=a.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return t?parseFloat(t[2])>59?e(t[2],t[3],0,t[4]):e(t[1],t[2],t[3],t[4]):null}class mc{constructor(){this.values=Object.create(null)}set(e,t){!this.get(e)&&t!==""&&(this.values[e]=t)}get(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t}has(e){return e in this.values}alt(e,t,n){for(let r=0;r<n.length;++r)if(t===n[r]){this.set(e,t);break}}integer(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))}percent(e,t){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(t)){const n=parseFloat(t);if(n>=0&&n<=100)return this.set(e,n),!0}return!1}}function su(a,e,t,n){const r=n?a.split(n):[a];for(const i in r){if(typeof r[i]!="string")continue;const s=r[i].split(t);if(s.length!==2)continue;const u=s[0],f=s[1];e(u,f)}}const Ol=new Ll(0,0,""),fl=Ol.align==="middle"?"middle":"center";function gc(a,e,t){const n=a;function r(){const u=iu(a);if(u===null)throw new Error("Malformed timestamp: "+n);return a=a.replace(/^[^\sa-zA-Z-]+/,""),u}function i(u,f){const c=new mc;su(u,function(U,V){let ee;switch(U){case"region":for(let De=t.length-1;De>=0;De--)if(t[De].id===V){c.set(U,t[De].region);break}break;case"vertical":c.alt(U,V,["rl","lr"]);break;case"line":ee=V.split(","),c.integer(U,ee[0]),c.percent(U,ee[0])&&c.set("snapToLines",!1),c.alt(U,ee[0],["auto"]),ee.length===2&&c.alt("lineAlign",ee[1],["start",fl,"end"]);break;case"position":ee=V.split(","),c.percent(U,ee[0]),ee.length===2&&c.alt("positionAlign",ee[1],["start",fl,"end","line-left","line-right","auto"]);break;case"size":c.percent(U,V);break;case"align":c.alt(U,V,["start",fl,"end","left","right"]);break}},/:/,/\s/),f.region=c.get("region",null),f.vertical=c.get("vertical","");let y=c.get("line","auto");y==="auto"&&Ol.line===-1&&(y=-1),f.line=y,f.lineAlign=c.get("lineAlign","start"),f.snapToLines=c.get("snapToLines",!0),f.size=c.get("size",100),f.align=c.get("align",fl);let E=c.get("position","auto");E==="auto"&&Ol.position===50&&(E=f.align==="start"||f.align==="left"?0:f.align==="end"||f.align==="right"?100:50),f.position=E}function s(){a=a.replace(/^\s+/,"")}if(s(),e.startTime=r(),s(),a.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+n);a=a.slice(3),s(),e.endTime=r(),s(),i(a,e)}function au(a){return a.replace(/<br(?: \/)?>/gi,`
|
|
|
`)}class vc{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new pc,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}parse(e){const t=this;e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));function n(){let i=t.buffer,s=0;for(i=au(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 r(i){su(i,function(s,u){},/:/)}try{let i="";if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;i=n();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=n(),t.state){case"HEADER":/:/.test(i)?r(i):i||(t.state="ID");continue;case"NOTE":i||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(i)){t.state="NOTE";break}if(!i)continue;if(t.cue=new Ll(0,0,""),t.state="CUE",i.indexOf("-->")===-1){t.cue.id=i;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{gc(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 yc=/\r\n|\n\r|\n|\r/g,Pl=function(e,t,n=0){return e.slice(n,n+t.length)===t},bc=function(e){let t=parseInt(e.slice(-3));const n=parseInt(e.slice(-6,-4)),r=parseInt(e.slice(-9,-7)),i=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!O(t)||!O(n)||!O(r)||!O(i))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*n,t+=60*1e3*r,t+=60*60*1e3*i,t};function kl(a,e,t){return Go(a.toString())+Go(e.toString())+Go(t)}const _c=function(e,t,n){let r=e[t],i=e[r.prevCC];if(!i||!i.new&&r.new){e.ccOffset=e.presentationOffset=r.start,r.new=!1;return}for(;(s=i)!=null&&s.new;){var s;e.ccOffset+=r.start-i.start,r.new=!1,r=i,i=e[r.prevCC]}e.presentationOffset=n};function xc(a,e,t,n,r,i,s){const u=new vc,f=ge(new Uint8Array(a)).trim().replace(yc,`
|
|
|
`).split(`
|
|
|
`),c=[],y=e?Ar(e.baseTime,e.timescale):0;let E="00:00.000",U=0,V=0,ee,De=!0;u.oncue=function(Ae){const Ge=t[n];let ft=t.ccOffset;const lt=(U-y)/9e4;if(Ge!=null&&Ge.new&&(V!==void 0?ft=t.ccOffset=Ge.start:_c(t,n,lt)),lt){if(!e){ee=new Error("Missing initPTS for VTT MPEGTS");return}ft=lt-t.presentationOffset}const Pt=Ae.endTime-Ae.startTime,Nt=zi((Ae.startTime+ft-V)*9e4,r*9e4)/9e4;Ae.startTime=Math.max(Nt,0),Ae.endTime=Math.max(Nt+Pt,0);const on=Ae.text.trim();Ae.text=decodeURIComponent(encodeURIComponent(on)),Ae.id||(Ae.id=kl(Ae.startTime,Ae.endTime,on)),Ae.endTime>0&&c.push(Ae)},u.onparsingerror=function(Ae){ee=Ae},u.onflush=function(){if(ee){s(ee);return}i(c)},f.forEach(Ae=>{if(De)if(Pl(Ae,"X-TIMESTAMP-MAP=")){De=!1,Ae.slice(16).split(",").forEach(Ge=>{Pl(Ge,"LOCAL:")?E=Ge.slice(6):Pl(Ge,"MPEGTS:")&&(U=parseInt(Ge.slice(7)))});try{V=bc(E)/1e3}catch(Ge){ee=Ge}return}else Ae===""&&(De=!1);u.parse(Ae+`
|
|
|
`)}),u.flush()}const Ml="stpp.ttml.im1t",ou=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,lu=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,Ec={left:"start",center:"center",right:"end",start:"start",end:"end"};function uu(a,e,t,n){const r=pe(new Uint8Array(a),["mdat"]);if(r.length===0){n(new Error("Could not parse IMSC1 mdat"));return}const i=r.map(u=>ge(u)),s=Pn(e.baseTime,1,e.timescale);try{i.forEach(u=>t(Sc(u,s)))}catch(u){n(u)}}function Sc(a,e){const r=new DOMParser().parseFromString(a,"text/xml").getElementsByTagName("tt")[0];if(!r)throw new Error("Invalid ttml");const i={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},s=Object.keys(i).reduce((E,U)=>(E[U]=r.getAttribute(`ttp:${U}`)||i[U],E),{}),u=r.getAttribute("xml:space")!=="preserve",f=cu(Nl(r,"styling","style")),c=cu(Nl(r,"layout","region")),y=Nl(r,"body","[begin]");return[].map.call(y,E=>{const U=du(E,u);if(!U||!E.hasAttribute("begin"))return null;const V=Fl(E.getAttribute("begin"),s),ee=Fl(E.getAttribute("dur"),s);let De=Fl(E.getAttribute("end"),s);if(V===null)throw fu(E);if(De===null){if(ee===null)throw fu(E);De=V+ee}const Ae=new Ll(V-e,De-e,U);Ae.id=kl(Ae.startTime,Ae.endTime,Ae.text);const Ge=c[E.getAttribute("region")],ft=f[E.getAttribute("style")],lt=wc(Ge,ft,f),{textAlign:Pt}=lt;if(Pt){const Nt=Ec[Pt];Nt&&(Ae.lineAlign=Nt),Ae.align=Pt}return g(Ae,lt),Ae}).filter(E=>E!==null)}function Nl(a,e,t){const n=a.getElementsByTagName(e)[0];return n?[].slice.call(n.querySelectorAll(t)):[]}function cu(a){return a.reduce((e,t)=>{const n=t.getAttribute("xml:id");return n&&(e[n]=t),e},{})}function du(a,e){return[].slice.call(a.childNodes).reduce((t,n,r)=>{var i;return n.nodeName==="br"&&r?t+`
|
|
|
`:(i=n.childNodes)!=null&&i.length?du(n,e):e?t+n.textContent.trim().replace(/\s+/g," "):t+n.textContent},"")}function wc(a,e,t){const n="http://www.w3.org/ns/ttml#styling";let r=null;const i=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],s=a!=null&&a.hasAttribute("style")?a.getAttribute("style"):null;return s&&t.hasOwnProperty(s)&&(r=t[s]),i.reduce((u,f)=>{const c=Bl(e,n,f)||Bl(a,n,f)||Bl(r,n,f);return c&&(u[f]=c),u},{})}function Bl(a,e,t){return a&&a.hasAttributeNS(e,t)?a.getAttributeNS(e,t):null}function fu(a){return new Error(`Could not parse ttml timestamp ${a}`)}function Fl(a,e){if(!a)return null;let t=iu(a);return t===null&&(ou.test(a)?t=Cc(a,e):lu.test(a)&&(t=Tc(a,e))),t}function Cc(a,e){const t=ou.exec(a),n=(t[4]|0)+(t[5]|0)/e.subFrameRate;return(t[1]|0)*3600+(t[2]|0)*60+(t[3]|0)+n/e.frameRate}function Tc(a,e){const t=lu.exec(a),n=Number(t[1]);switch(t[2]){case"h":return n*3600;case"m":return n*60;case"ms":return n*1e3;case"f":return n/e.frameRate;case"t":return n/e.tickRate}return n}class hl{constructor(e,t){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=e,this.trackName=t}dispatchCue(){this.startTime!==null&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(e,t,n){(this.startTime===null||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=n,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}class Ac{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=mu(),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(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(m.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(m.FRAG_LOADING,this.onFragLoading,this),e.on(m.FRAG_LOADED,this.onFragLoaded,this),e.on(m.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(m.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(m.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(m.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(m.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:e}=this;e.off(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(m.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(m.FRAG_LOADING,this.onFragLoading,this),e.off(m.FRAG_LOADED,this.onFragLoaded,this),e.off(m.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(m.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(m.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(m.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(m.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const e=new hl(this,"textTrack1"),t=new hl(this,"textTrack2"),n=new hl(this,"textTrack3"),r=new hl(this,"textTrack4");this.cea608Parser1=new ru(1,e,t),this.cea608Parser2=new ru(3,n,r)}addCues(e,t,n,r,i){let s=!1;for(let u=i.length;u--;){const f=i[u],c=Dc(f[0],f[1],t,n);if(c>=0&&(f[0]=Math.min(f[0],t),f[1]=Math.max(f[1],n),s=!0,c/(n-t)>.5))return}if(s||i.push([t,n]),this.config.renderTextTracksNatively){const u=this.captionsTracks[e];this.Cues.newCue(u,t,n,r)}else{const u=this.Cues.newCue(null,t,n,r);this.hls.trigger(m.CUES_PARSED,{type:"captions",cues:u,track:e})}}onInitPtsFound(e,{frag:t,id:n,initPTS:r,timescale:i}){const{unparsedVttFrags:s}=this;n===re.MAIN&&(this.initPTS[t.cc]={baseTime:r,timescale:i}),s.length&&(this.unparsedVttFrags=[],s.forEach(u=>{this.onFragLoaded(m.FRAG_LOADED,u)}))}getExistingTrack(e,t){const{media:n}=this;if(n)for(let r=0;r<n.textTracks.length;r++){const i=n.textTracks[r];if(pu(i,{name:e,lang:t,characteristics:"transcribes-spoken-dialog,describes-music-and-sound"}))return i}return null}createCaptionsTrack(e){this.config.renderTextTracksNatively?this.createNativeTrack(e):this.createNonNativeTrack(e)}createNativeTrack(e){if(this.captionsTracks[e])return;const{captionsProperties:t,captionsTracks:n,media:r}=this,{label:i,languageCode:s}=t[e],u=this.getExistingTrack(i,s);if(u)n[e]=u,Ro(n[e]),Vl(n[e],r);else{const f=this.createTextTrack("captions",i,s);f&&(f[e]=!0,n[e]=f)}}createNonNativeTrack(e){if(this.nonNativeCaptionsTracks[e])return;const t=this.captionsProperties[e];if(!t)return;const n=t.label,r={_id:e,label:n,kind:"captions",default:t.media?!!t.media.default:!1,closedCaptions:t.media};this.nonNativeCaptionsTracks[e]=r,this.hls.trigger(m.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[r]})}createTextTrack(e,t,n){const r=this.media;if(r)return r.addTextTrack(e,t,n)}onMediaAttaching(e,t){this.media=t.media,t.mediaSource||this._cleanTracks()}onMediaDetaching(e,t){const n=!!t.transferMedia;if(this.media=null,n)return;const{captionsTracks:r}=this;Object.keys(r).forEach(i=>{Ro(r[i]),delete r[i]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=mu(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}_cleanTracks(){const{media:e}=this;if(!e)return;const t=e.textTracks;if(t)for(let n=0;n<t.length;n++)Ro(t[n])}onSubtitleTracksUpdated(e,t){const n=t.subtitleTracks||[],r=n.some(i=>i.textCodec===Ml);if(this.config.enableWebVTT||r&&this.config.enableIMSC1){if(Ia(this.tracks,n)){this.tracks=n;return}if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){const s=this.media,u=s?ul(s.textTracks):null;if(this.tracks.forEach((f,c)=>{let y;if(u){let E=null;for(let U=0;U<u.length;U++)if(u[U]&&pu(u[U],f)){E=u[U],u[U]=null;break}E&&(y=E)}if(y)Ro(y);else{const E=hu(f);y=this.createTextTrack(E,f.name,f.lang),y&&(y.mode="disabled")}y&&this.textTracks.push(y)}),u!=null&&u.length){const f=u.filter(c=>c!==null).map(c=>c.label);f.length&&this.hls.logger.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(m.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:s})}}}onManifestLoaded(e,t){this.config.enableCEA708Captions&&t.captions&&t.captions.forEach(n=>{const r=/(?:CC|SERVICE)([1-4])/.exec(n.instreamId);if(!r)return;const i=`textTrack${r[1]}`,s=this.captionsProperties[i];s&&(s.label=n.name,n.lang&&(s.languageCode=n.lang),s.media=n)})}closedCaptionsForLevel(e){const t=this.hls.levels[e.level];return t==null?void 0:t.attrs["CLOSED-CAPTIONS"]}onFragLoading(e,t){if(this.enabled&&t.frag.type===re.MAIN){var n,r;const{cea608Parser1:i,cea608Parser2:s,lastSn:u}=this,{cc:f,sn:c}=t.frag,y=(n=(r=t.part)==null?void 0:r.index)!=null?n:-1;i&&s&&(c!==u+1||c===u&&y!==this.lastPartIndex+1||f!==this.lastCc)&&(i.reset(),s.reset()),this.lastCc=f,this.lastSn=c,this.lastPartIndex=y}}onFragLoaded(e,t){const{frag:n,payload:r}=t;if(n.type===re.SUBTITLE)if(r.byteLength){const i=n.decryptdata,s="stats"in t;if(i==null||!i.encrypted||s){const u=this.tracks[n.level],f=this.vttCCs;f[n.cc]||(f[n.cc]={start:n.start,prevCC:this.prevCC,new:!0},this.prevCC=n.cc),u&&u.textCodec===Ml?this._parseIMSC1(n,r):this._parseVTTs(t)}}else this.hls.trigger(m.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:new Error("Empty subtitle payload")})}_parseIMSC1(e,t){const n=this.hls;uu(t,this.initPTS[e.cc],r=>{this._appendCues(r,e.level),n.trigger(m.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})},r=>{n.logger.log(`Failed to parse IMSC1: ${r}`),n.trigger(m.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:r})})}_parseVTTs(e){var t;const{frag:n,payload:r}=e,{initPTS:i,unparsedVttFrags:s}=this,u=i.length-1;if(!i[n.cc]&&u===-1){s.push(e);return}const f=this.hls,c=(t=n.initSegment)!=null&&t.data?Xe(n.initSegment.data,new Uint8Array(r)).buffer:r;xc(c,this.initPTS[n.cc],this.vttCCs,n.cc,n.start,y=>{this._appendCues(y,n.level),f.trigger(m.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:n})},y=>{const E=y.message==="Missing initPTS for VTT MPEGTS";E?s.push(e):this._fallbackToIMSC1(n,r),f.logger.log(`Failed to parse VTT cue: ${y}`),!(E&&u>n.cc)&&f.trigger(m.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:y})})}_fallbackToIMSC1(e,t){const n=this.tracks[e.level];n.textCodec||uu(t,this.initPTS[e.cc],()=>{n.textCodec=Ml,this._parseIMSC1(e,t)},()=>{n.textCodec="wvtt"})}_appendCues(e,t){const n=this.hls;if(this.config.renderTextTracksNatively){const r=this.textTracks[t];if(!r||r.mode==="disabled")return;e.forEach(i=>Yl(r,i))}else{const r=this.tracks[t];if(!r)return;const i=r.default?"default":"subtitles"+t;n.trigger(m.CUES_PARSED,{type:"subtitles",cues:e,track:i})}}onFragDecrypted(e,t){const{frag:n}=t;n.type===re.SUBTITLE&&this.onFragLoaded(m.FRAG_LOADED,t)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(e,t){if(!this.enabled||!this.config.enableCEA708Captions)return;const{frag:n,samples:r}=t;if(!(n.type===re.MAIN&&this.closedCaptionsForLevel(n)==="NONE"))for(let i=0;i<r.length;i++){const s=r[i].bytes;if(s){this.cea608Parser1||this.initCea608Parsers();const u=this.extractCea608Data(s);this.cea608Parser1.addData(r[i].pts,u[0]),this.cea608Parser2.addData(r[i].pts,u[1])}}}onBufferFlushing(e,{startOffset:t,endOffset:n,endOffsetSubtitles:r,type:i}){const{media:s}=this;if(!(!s||s.currentTime<n)){if(!i||i==="video"){const{captionsTracks:u}=this;Object.keys(u).forEach(f=>Al(u[f],t,n))}if(this.config.renderTextTracksNatively&&t===0&&r!==void 0){const{textTracks:u}=this;Object.keys(u).forEach(f=>Al(u[f],t,r))}}}extractCea608Data(e){const t=[[],[]],n=e[0]&31;let r=2;for(let i=0;i<n;i++){const s=e[r++],u=127&e[r++],f=127&e[r++];if(u===0&&f===0)continue;if((4&s)!==0){const y=3&s;(y===0||y===1)&&(t[y].push(u),t[y].push(f))}}return t}}function hu(a){return a.characteristics&&/transcribes-spoken-dialog/gi.test(a.characteristics)&&/describes-music-and-sound/gi.test(a.characteristics)?"captions":"subtitles"}function pu(a,e){return!!a&&a.kind===hu(e)&&Xs(e,a)}function Dc(a,e,t,n){return Math.min(e,n)-Math.max(a,t)}function mu(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}const Ic=/\s/,Rc={newCue(a,e,t,n){const r=[];let i,s,u,f,c;const y=self.VTTCue||self.TextTrackCue;for(let U=0;U<n.rows.length;U++)if(i=n.rows[U],u=!0,f=0,c="",!i.isEmpty()){var E;for(let De=0;De<i.chars.length;De++)Ic.test(i.chars[De].uchar)&&u?f++:(c+=i.chars[De].uchar,u=!1);i.cueStartTime=e,e===t&&(t+=1e-4),f>=16?f--:f++;const V=au(c.trim()),ee=kl(e,t,V);a!=null&&(E=a.cues)!=null&&E.getCueById(ee)||(s=new y(e,t,V),s.id=ee,s.line=U+1,s.align="left",s.position=10+Math.min(80,Math.floor(f*8/32)*10),r.push(s))}return a&&r.length&&(r.sort((U,V)=>U.line==="auto"||V.line==="auto"?0:U.line>8&&V.line>8?V.line-U.line:U.line-V.line),r.forEach(U=>Yl(a,U))),r}};function Lc(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(a){}return!1}const Oc=/(\d+)-(\d+)\/(\d+)/;class gu{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||Nc,this.controller=new self.AbortController,this.stats=new v}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var e;this.abortInternal(),(e=this.callbacks)!=null&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(e,t,n){const r=this.stats;if(r.loading.start)throw new Error("Loader can only be used once.");r.loading.start=self.performance.now();const i=Pc(e,this.controller.signal),s=e.responseType==="arraybuffer",u=s?"byteLength":"length",{maxTimeToFirstByteMs:f,maxLoadTimeMs:c}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=n,this.request=this.fetchSetup(e,i),self.clearTimeout(this.requestTimeout),t.timeout=f&&O(f)?f:c,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(r,e,this.response))},t.timeout),(ra(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(E=>{var U;this.response=this.loader=E;const V=Math.max(self.performance.now(),r.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=c,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(r,e,this.response))},c-(V-r.loading.start)),!E.ok){const{status:De,statusText:Ae}=E;throw new Bc(Ae||"fetch, bad network response",De,E)}r.loading.first=V,r.total=Mc(E.headers)||r.total;const ee=(U=this.callbacks)==null?void 0:U.onProgress;return ee&&O(t.highWaterMark)?this.loadProgressively(E,r,e,t.highWaterMark,ee):s?E.arrayBuffer():e.responseType==="json"?E.json():E.text()}).then(E=>{var U,V;const ee=this.response;if(!ee)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),r.loading.end=Math.max(self.performance.now(),r.loading.first);const De=E[u];De&&(r.loaded=r.total=De);const Ae={url:ee.url,data:E,code:ee.status},Ge=(U=this.callbacks)==null?void 0:U.onProgress;Ge&&!O(t.highWaterMark)&&Ge(r,e,E,ee),(V=this.callbacks)==null||V.onSuccess(Ae,r,e,ee)}).catch(E=>{var U;if(self.clearTimeout(this.requestTimeout),r.aborted)return;const V=E&&E.code||0,ee=E?E.message:null;(U=this.callbacks)==null||U.onError({code:V,text:ee},e,E?E.details:null,r)})}getCacheAge(){let e=null;if(this.response){const t=this.response.headers.get("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.response?this.response.headers.get(e):null}loadProgressively(e,t,n,r=0,i){const s=new Aa,u=e.body.getReader(),f=()=>u.read().then(c=>{if(c.done)return s.dataLength&&i(t,n,s.flush().buffer,e),Promise.resolve(new ArrayBuffer(0));const y=c.value,E=y.length;return t.loaded+=E,E<r||s.dataLength?(s.push(y),s.dataLength>=r&&i(t,n,s.flush().buffer,e)):i(t,n,y.buffer,e),f()}).catch(()=>Promise.reject());return f()}}function Pc(a,e){const t={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(g({},a.headers))};return a.rangeEnd&&t.headers.set("Range","bytes="+a.rangeStart+"-"+String(a.rangeEnd-1)),t}function kc(a){const e=Oc.exec(a);if(e)return parseInt(e[2])-parseInt(e[1])+1}function Mc(a){const e=a.get("Content-Range");if(e){const n=kc(e);if(O(n))return n}const t=a.get("Content-Length");if(t)return parseInt(t)}function Nc(a,e){return new self.Request(a.url,e)}class Bc extends Error{constructor(e,t,n){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=n}}const Fc=/^age:\s*[\d.]+\s*$/im;class vu{constructor(e){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=e&&e.xhrSetup||null,this.stats=new v,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const e=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),e&&(e.onreadystatechange=null,e.onprogress=null,e.readyState!==4&&(this.stats.aborted=!0,e.abort()))}abort(){var e;this.abortInternal(),(e=this.callbacks)!=null&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(e,t,n){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=e,this.config=t,this.callbacks=n,this.loadInternal()}loadInternal(){const{config:e,context:t}=this;if(!e||!t)return;const n=this.loader=new self.XMLHttpRequest,r=this.stats;r.loading.first=0,r.loaded=0,r.aborted=!1;const i=this.xhrSetup;i?Promise.resolve().then(()=>{if(!(this.loader!==n||this.stats.aborted))return i(n,t.url)}).catch(s=>{if(!(this.loader!==n||this.stats.aborted))return n.open("GET",t.url,!0),i(n,t.url)}).then(()=>{this.loader!==n||this.stats.aborted||this.openAndSendXhr(n,t,e)}).catch(s=>{var u;(u=this.callbacks)==null||u.onError({code:n.status,text:s.message},t,n,r)}):this.openAndSendXhr(n,t,e)}openAndSendXhr(e,t,n){e.readyState||e.open("GET",t.url,!0);const r=t.headers,{maxTimeToFirstByteMs:i,maxLoadTimeMs:s}=n.loadPolicy;if(r)for(const u in r)e.setRequestHeader(u,r[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),n.timeout=i&&O(i)?i:s,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),e.send()}readystatechange(){const{context:e,loader:t,stats:n}=this;if(!e||!t)return;const r=t.readyState,i=this.config;if(!n.aborted&&r>=2&&(n.loading.first===0&&(n.loading.first=Math.max(self.performance.now(),n.loading.start),i.timeout!==i.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),i.timeout=i.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.loadPolicy.maxLoadTimeMs-(n.loading.first-n.loading.start)))),r===4)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;const c=t.status,y=t.responseType==="text"?t.responseText:null;if(c>=200&&c<300){const ee=y!=null?y:t.response;if(ee!=null){var s,u;n.loading.end=Math.max(self.performance.now(),n.loading.first);const De=t.responseType==="arraybuffer"?ee.byteLength:ee.length;n.loaded=n.total=De,n.bwEstimate=n.total*8e3/(n.loading.end-n.loading.first);const Ae=(s=this.callbacks)==null?void 0:s.onProgress;Ae&&Ae(n,e,ee,t);const Ge={url:t.responseURL,data:ee,code:c};(u=this.callbacks)==null||u.onSuccess(Ge,n,e,t);return}}const E=i.loadPolicy.errorRetry,U=n.retry,V={url:e.url,data:void 0,code:c};if(qr(E,U,!1,V))this.retry(E);else{var f;j.error(`${c} while loading ${e.url}`),(f=this.callbacks)==null||f.onError({code:c,text:t.statusText},e,t,n)}}}loadtimeout(){if(!this.config)return;const e=this.config.loadPolicy.timeoutRetry,t=this.stats.retry;if(qr(e,t,!0))this.retry(e);else{var n;j.warn(`timeout while loading ${(n=this.context)==null?void 0:n.url}`);const r=this.callbacks;r&&(this.abortInternal(),r.onTimeout(this.stats,this.context,this.loader))}}retry(e){const{context:t,stats:n}=this;this.retryDelay=rr(e,n.retry),n.retry++,j.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${t==null?void 0:t.url}, retrying ${n.retry}/${e.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(e){const t=this.stats;t.loaded=e.loaded,e.lengthComputable&&(t.total=e.total)}getCacheAge(){let e=null;if(this.loader&&Fc.test(this.loader.getAllResponseHeaders())){const t=this.loader.getResponseHeader("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.loader&&new RegExp(`^${e}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(e):null}}const $c={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},zc=S(S({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,maxDevicePixelRatio:Number.POSITIVE_INFINITY,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,maxBufferSize:60*1e3*1e3,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,liveSyncDurationCount:3,liveSyncOnStallIncrease:1,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,ignorePlaylistParsingErrors:!1,loader:vu,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:Yn,bufferController:ts,capLevelController:sa,errorController:Bn,fpsController:Zu,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:Or,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableEmsgKLVMetadata:!1,enableID3MetadataCues:!0,enableInterstitialPlayback:!0,interstitialAppendInPlace:!0,interstitialLiveLookAhead:10,useMediaCapabilities:!0,certLoadPolicy:{default:$c},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},interstitialAssetListLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:3e4,timeoutRetry:{maxNumRetry:0,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:0,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},Uc()),{},{subtitleStreamController:tc,subtitleTrackController:Gu,timelineController:Ac,audioStreamController:ki,audioTrackController:So,emeController:Io,cmcdController:Uu,contentSteeringController:Hu,interstitialsController:ec});function Uc(){return{cueHandler:Rc,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 Kc(a,e,t){if((e.liveSyncDurationCount||e.liveMaxLatencyDurationCount)&&(e.liveSyncDuration||e.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(e.liveMaxLatencyDurationCount!==void 0&&(e.liveSyncDurationCount===void 0||e.liveMaxLatencyDurationCount<=e.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(e.liveMaxLatencyDuration!==void 0&&(e.liveSyncDuration===void 0||e.liveMaxLatencyDuration<=e.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const n=$l(a),r=["manifest","level","frag"],i=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return r.forEach(s=>{const u=`${s==="level"?"playlist":s}LoadPolicy`,f=e[u]===void 0,c=[];i.forEach(y=>{const E=`${s}Loading${y}`,U=e[E];if(U!==void 0&&f){c.push(E);const V=n[u].default;switch(e[u]={default:V},y){case"TimeOut":V.maxLoadTimeMs=U,V.maxTimeToFirstByteMs=U;break;case"MaxRetry":V.errorRetry.maxNumRetry=U,V.timeoutRetry.maxNumRetry=U;break;case"RetryDelay":V.errorRetry.retryDelayMs=U,V.timeoutRetry.retryDelayMs=U;break;case"MaxRetryTimeout":V.errorRetry.maxRetryDelayMs=U,V.timeoutRetry.maxRetryDelayMs=U;break}}}),c.length&&t.warn(`hls.js config: "${c.join('", "')}" setting(s) are deprecated, use "${u}": ${an(e[u])}`)}),S(S({},n),e)}function $l(a){return a&&typeof a=="object"?Array.isArray(a)?a.map($l):Object.keys(a).reduce((e,t)=>(e[t]=$l(a[t]),e),{}):a}function Hc(a,e){const t=a.loader;t!==gu&&t!==vu?(e.log("[config]: Custom loader detected, cannot enable progressive streaming"),a.progressive=!1):Lc()&&(a.loader=gu,a.progressive=!0,a.enableSoftwareAES=!0,e.log("[config]: Progressive streaming enabled, using FetchLoader"))}const pl=2,Zc=.1,jc=.05,Wc=100;class Gc extends si{constructor(e,t){super("gap-controller",e.logger),this.hls=null,this.fragmentTracker=null,this.media=null,this.mediaSource=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.buffered={},this.lastCurrentTime=0,this.ended=0,this.waiting=0,this.onMediaPlaying=()=>{this.ended=0,this.waiting=0},this.onMediaWaiting=()=>{var n;(n=this.media)!=null&&n.seeking||(this.waiting=self.performance.now(),this.tick())},this.onMediaEnded=()=>{if(this.hls){var n;this.ended=((n=this.media)==null?void 0:n.currentTime)||1,this.hls.trigger(m.MEDIA_ENDED,{stalled:!1})}},this.hls=e,this.fragmentTracker=t,this.registerListeners()}registerListeners(){const{hls:e}=this;e&&(e.on(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(m.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(m.BUFFER_APPENDED,this.onBufferAppended,this))}destroy(){super.destroy(),this.unregisterListeners(),this.media=this.hls=this.fragmentTracker=null,this.mediaSource=void 0}onMediaAttached(e,t){this.setInterval(Wc),this.mediaSource=t.mediaSource;const n=this.media=t.media;Fa(n,"playing",this.onMediaPlaying),Fa(n,"waiting",this.onMediaWaiting),Fa(n,"ended",this.onMediaEnded)}onMediaDetaching(e,t){this.clearInterval();const{media:n}=this;n&&(Oa(n,"playing",this.onMediaPlaying),Oa(n,"waiting",this.onMediaWaiting),Oa(n,"ended",this.onMediaEnded),this.media=null),this.mediaSource=void 0}onBufferAppended(e,t){this.buffered=t.timeRanges}get hasBuffered(){return Object.keys(this.buffered).length>0}tick(){var e;if(!((e=this.media)!=null&&e.readyState)||!this.hasBuffered)return;const t=this.media.currentTime;this.poll(t,this.lastCurrentTime),this.lastCurrentTime=t}poll(e,t){var n,r;const i=(n=this.hls)==null?void 0:n.config;if(!i)return;const{media:s,stalled:u}=this;if(!s)return;const{seeking:f}=s,c=this.seeking&&!f,y=!this.seeking&&f,E=s.paused&&!f||s.ended||s.playbackRate===0;if(this.seeking=f,e!==t){t&&(this.ended=0),this.moved=!0,f||(this.nudgeRetry=0,i.nudgeOnVideoHole&&!E&&e>t&&this.nudgeOnVideoHole(e,t)),this.waiting===0&&this.stallResolved(e);return}if(y||c){c&&this.stallResolved(e);return}if(E){this.nudgeRetry=0,this.stallResolved(e),!this.ended&&s.ended&&this.hls&&(this.ended=e||1,this.hls.trigger(m.MEDIA_ENDED,{stalled:!1}));return}if(!Tr.getBuffered(s).length){this.nudgeRetry=0;return}const U=Tr.bufferInfo(s,e,0),V=U.nextStart||0,ee=this.fragmentTracker;if(f&&ee&&this.hls){const on=yu(this.hls.inFlightFragments,e),zt=U.len>pl,Jt=!V||on||V-e>pl&&!ee.getPartialFragment(e);if(zt||Jt)return;this.moved=!1}const De=(r=this.hls)==null?void 0:r.latestLevelDetails;if(!this.moved&&this.stalled!==null&&ee){if(!(U.len>0)&&!V)return;const zt=Math.max(V,U.start||0)-e,vn=!!(De!=null&&De.live)?De.targetduration*2:pl,jt=ee.getPartialFragment(e);if(zt>0&&(zt<=vn||jt)){s.paused||this._trySkipBufferHole(jt);return}}const Ae=i.detectStallWithCurrentTimeMs,Ge=self.performance.now(),ft=this.waiting;if(u===null){ft>0&&Ge-ft<Ae?this.stalled=ft:this.stalled=Ge;return}const lt=Ge-u;if(!f&&(lt>=Ae||ft)&&this.hls){var Pt;if(((Pt=this.mediaSource)==null?void 0:Pt.readyState)==="ended"&&!(De!=null&&De.live)&&Math.abs(e-((De==null?void 0:De.edge)||0))<1){if(this.ended)return;this.ended=e||1,this.hls.trigger(m.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(U),!this.media||!this.hls)return}const Nt=Tr.bufferInfo(s,e,i.maxBufferHole);this._tryFixBufferStall(Nt,lt)}stallResolved(e){const t=this.stalled;if(t&&this.hls&&(this.stalled=null,this.stallReported)){const n=self.performance.now()-t;this.log(`playback not stuck anymore @${e}, after ${Math.round(n)}ms`),this.stallReported=!1,this.waiting=0,this.hls.trigger(m.STALL_RESOLVED,{})}}nudgeOnVideoHole(e,t){var n;const r=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&(n=this.buffered.audio)!=null&&n.length&&r&&r.length>1&&e>r.end(0)){const i=Tr.bufferedInfo(Tr.timeRangesToArray(this.buffered.audio),e,0);if(i.len>1&&t>=i.start){const s=Tr.timeRangesToArray(r),u=Tr.bufferedInfo(s,t,0).bufferedIndex;if(u>-1&&u<s.length-1){const f=Tr.bufferedInfo(s,e,0).bufferedIndex,c=s[u].end,y=s[u+1].start;if((f===-1||f>u)&&y-c<1&&e-c<2){const E=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${e} hole: ${c} -> ${y} buffered index: ${f}`);this.warn(E.message),this.media.currentTime+=1e-6;const U=this.fragmentTracker.getPartialFragment(e)||void 0,V=Tr.bufferInfo(this.media,e,0);this.hls.trigger(m.ERROR,{type:ce.MEDIA_ERROR,details:A.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:E,reason:E.message,frag:U,buffer:V.len,bufferInfo:V})}}}}}_tryFixBufferStall(e,t){var n,r;const{fragmentTracker:i,media:s}=this,u=(n=this.hls)==null?void 0:n.config;if(!s||!i||!u)return;const f=s.currentTime,c=(r=this.hls)==null?void 0:r.latestLevelDetails,y=i.getPartialFragment(f);if((y||c!=null&&c.live&&f<c.fragmentStart)&&(this._trySkipBufferHole(y)||!this.media))return;const E=e.buffered;(E&&E.length>1&&e.len>u.maxBufferHole||e.nextStart&&e.nextStart-f<u.maxBufferHole)&&(t>u.highBufferWatchdogPeriod*1e3||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(e))}_reportStall(e){const{hls:t,media:n,stallReported:r,stalled:i}=this;if(!r&&i!==null&&n&&t){this.stallReported=!0;const s=new Error(`Playback stalling at @${n.currentTime} due to low buffer (${an(e)})`);this.warn(s.message),t.trigger(m.ERROR,{type:ce.MEDIA_ERROR,details:A.BUFFER_STALLED_ERROR,fatal:!1,error:s,buffer:e.len,bufferInfo:e,stalled:{start:i}})}}_trySkipBufferHole(e){var t;const{fragmentTracker:n,media:r}=this,i=(t=this.hls)==null?void 0:t.config;if(!r||!n||!i)return 0;const s=r.currentTime,u=Tr.bufferInfo(r,s,0),f=s<u.start?u.start:u.nextStart;if(f&&this.hls){const y=u.len<=i.maxBufferHole,E=u.len>0&&u.len<1&&r.readyState<3,U=f-s;if(U>0&&(y||E)){if(U>i.maxBufferHole){let ee=!1;if(s===0){const De=n.getAppendedFrag(0,re.MAIN);De&&f<De.end&&(ee=!0)}if(!ee){const De=e||n.getAppendedFrag(s,re.MAIN);if(De){var c;if(!((c=this.hls.loadLevelObj)!=null&&c.details)||yu(this.hls.inFlightFragments,f))return 0;let Ge=!1,ft=De.end;for(;ft<f;){const lt=n.getPartialFragment(ft);if(lt)ft+=lt.duration;else{Ge=!0;break}}if(Ge)return 0}}}const V=Math.max(f+jc,s+Zc);if(this.warn(`skipping hole, adjusting currentTime from ${s} to ${V}`),this.moved=!0,r.currentTime=V,!(e!=null&&e.gap)){const ee=new Error(`fragment loaded with buffer holes, seeking from ${s} to ${V}`);this.hls.trigger(m.ERROR,{type:ce.MEDIA_ERROR,details:A.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:ee,reason:ee.message,frag:e||void 0,buffer:u.len,bufferInfo:u})}return V}}return 0}_tryNudgeBuffer(e){const{hls:t,media:n,nudgeRetry:r}=this,i=t==null?void 0:t.config;if(!n||!i)return 0;const s=n.currentTime;if(this.nudgeRetry++,r<i.nudgeMaxRetry){const u=s+(r+1)*i.nudgeOffset,f=new Error(`Nudging 'currentTime' from ${s} to ${u}`);this.warn(f.message),n.currentTime=u,t.trigger(m.ERROR,{type:ce.MEDIA_ERROR,details:A.BUFFER_NUDGE_ON_STALL,error:f,fatal:!1,buffer:e.len,bufferInfo:e})}else{const u=new Error(`Playhead still not moving while enough data buffered @${s} after ${i.nudgeMaxRetry} nudges`);this.error(u.message),t.trigger(m.ERROR,{type:ce.MEDIA_ERROR,details:A.BUFFER_STALLED_ERROR,error:u,fatal:!0,buffer:e.len,bufferInfo:e})}}}function yu(a,e){const t=bu(a.main);if(t&&t.start<=e)return t;const n=bu(a.audio);return n&&n.start<=e?n:null}function bu(a){if(!a)return null;switch(a.state){case gn.IDLE:case gn.STOPPED:case gn.ENDED:case gn.ERROR:return null}return a.frag}const Vc=.25;function zl(){if(typeof self!="undefined")return self.VTTCue||self.TextTrackCue}function _u(a,e,t,n,r){let i=new a(e,t,"");try{i.value=n,r&&(i.type=r)}catch(s){i=new a(e,t,an(r?S({type:r},n):n))}return i}const ml=(()=>{const a=zl();try{a&&new a(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();function Yc(a){return Uint8Array.from(a.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}class Xc{constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!0,this.onEventCueEnter=()=>{this.hls&&this.hls.trigger(m.EVENT_CUE_ENTER,{})},this.hls=e,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=this.onEventCueEnter=null}_registerListeners(){const{hls:e}=this;e.on(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(m.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(m.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(m.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this)}_unregisterListeners(){const{hls:e}=this;e.off(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(m.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(m.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(m.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this)}onMediaAttaching(e,t){var n;this.media=t.media,((n=t.overrides)==null?void 0:n.cueRemoval)===!1&&(this.removeCues=!1)}onMediaAttached(){const e=this.hls.latestLevelDetails;e&&this.updateDateRangeCues(e)}onMediaDetaching(e,t){this.media=null,!t.transferMedia&&(this.id3Track&&(this.removeCues&&Ro(this.id3Track,this.onEventCueEnter),this.id3Track=null),this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(e){const t=this.getID3Track(e.textTracks);return t.mode="hidden",t}getID3Track(e){if(this.media){for(let t=0;t<e.length;t++){const n=e[t];if(n.kind==="metadata"&&n.label==="id3")return Vl(n,this.media),n}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(e,t){if(!this.media)return;const{hls:{config:{enableEmsgMetadataCues:n,enableID3MetadataCues:r}}}=this;if(!n&&!r)return;const{samples:i}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));const s=zl();if(s)for(let u=0;u<i.length;u++){const f=i[u].type;if(f===Se.emsg&&!n||!r)continue;const c=Et(i[u].data);if(c){const y=i[u].pts;let E=y+i[u].duration;E>ml&&(E=ml),E-y<=0&&(E=y+Vc);for(let V=0;V<c.length;V++){const ee=c[V];if(!St(ee)){this.updateId3CueEnds(y,f);const De=_u(s,y,E,ee,f);De&&this.id3Track.addCue(De)}}}}}updateId3CueEnds(e,t){var n;const r=(n=this.id3Track)==null?void 0:n.cues;if(r)for(let i=r.length;i--;){const s=r[i];s.type===t&&s.startTime<e&&s.endTime===ml&&(s.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:n,type:r}){const{id3Track:i,hls:s}=this;if(!s)return;const{config:{enableEmsgMetadataCues:u,enableID3MetadataCues:f}}=s;if(i&&(u||f)){let c;r==="audio"?c=y=>y.type===Se.audioId3&&f:r==="video"?c=y=>y.type===Se.emsg&&u:c=y=>y.type===Se.audioId3&&f||y.type===Se.emsg&&u,Al(i,t,n,c)}}onLevelUpdated(e,{details:t}){this.updateDateRangeCues(t,!0)}onLevelPtsUpdated(e,t){Math.abs(t.drift)>.01&&this.updateDateRangeCues(t.details)}updateDateRangeCues(e,t){if(!this.media||!e.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;const{id3Track:n}=this,{dateRanges:r}=e,i=Object.keys(r);let s=this.dateRangeCuesAppended;if(n&&t){var u;if((u=n.cues)!=null&&u.length){const y=Object.keys(s).filter(E=>!i.includes(E));for(let E=y.length;E--;){const U=y[E],V=s[U].cues;delete s[U],Object.keys(V).forEach(ee=>{try{const De=V[ee];De.removeEventListener("enter",this.onEventCueEnter),n.removeCue(De)}catch(De){}})}}else s=this.dateRangeCuesAppended={}}const f=e.fragments[e.fragments.length-1];if(i.length===0||!O(f==null?void 0:f.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const c=zl();for(let y=0;y<i.length;y++){const E=i[y],U=r[E],V=U.startTime,ee=s[E],De=(ee==null?void 0:ee.cues)||{};let Ae=(ee==null?void 0:ee.durationKnown)||!1,Ge=ml;const{duration:ft,endDate:lt}=U;if(lt&&ft!==null)Ge=V+ft,Ae=!0;else if(U.endOnNext&&!Ae){const Nt=i.reduce((on,zt)=>{if(zt!==U.id){const Jt=r[zt];if(Jt.class===U.class&&Jt.startDate>U.startDate&&(!on||U.startDate<on.startDate))return Jt}return on},null);Nt&&(Ge=Nt.startTime,Ae=!0)}const Pt=Object.keys(U.attr);for(let Nt=0;Nt<Pt.length;Nt++){const on=Pt[Nt];if(!Ts(on))continue;const zt=De[on];if(zt)Ae&&!ee.durationKnown?zt.endTime=Ge:Math.abs(zt.startTime-V)>.01&&(zt.startTime=V,zt.endTime=Ge);else if(c){let Jt=U.attr[on];Nn(on)&&(Jt=Yc(Jt));const jt=_u(c,V,Ge,{key:on,data:Jt},Se.dateRange);jt&&(jt.id=E,this.id3Track.addCue(jt),De[on]=jt,this.hls.config.interstitialsController&&(on==="X-ASSET-LIST"||on==="X-ASSET-URL")&&jt.addEventListener("enter",this.onEventCueEnter))}}s[E]={cues:De,dateRange:U,durationKnown:Ae}}}}class Qc{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.currentTime=0,this.stallCount=0,this._latency=null,this._targetLatencyUpdated=!1,this.onTimeupdate=()=>{const{media:t}=this,n=this.levelDetails;if(!t||!n)return;this.currentTime=t.currentTime;const r=this.computeLatency();if(r===null)return;this._latency=r;const{lowLatencyMode:i,maxLiveSyncPlaybackRate:s}=this.config;if(!i||s===1||!n.live)return;const u=this.targetLatency;if(u===null)return;const f=r-u,c=Math.min(this.maxLatency,u+n.targetduration);if(f<c&&f>.05&&this.forwardBufferLength>1){const E=Math.min(2,Math.max(1,s)),U=Math.round(2/(1+Math.exp(-.75*f-this.edgeStalled))*20)/20,V=Math.min(E,Math.max(1,U));this.changeMediaPlaybackRate(t,V)}else t.playbackRate!==1&&t.playbackRate!==0&&this.changeMediaPlaybackRate(t,1)},this.hls=e,this.config=e.config,this.registerListeners()}get levelDetails(){var e;return((e=this.hls)==null?void 0:e.latestLevelDetails)||null}get latency(){return this._latency||0}get maxLatency(){const{config:e}=this;if(e.liveMaxLatencyDuration!==void 0)return e.liveMaxLatencyDuration;const t=this.levelDetails;return t?e.liveMaxLatencyDurationCount*t.targetduration:0}get targetLatency(){const e=this.levelDetails;if(e===null||this.hls===null)return null;const{holdBack:t,partHoldBack:n,targetduration:r}=e,{liveSyncDuration:i,liveSyncDurationCount:s,lowLatencyMode:u}=this.config,f=this.hls.userConfig;let c=u&&n||t;(this._targetLatencyUpdated||f.liveSyncDuration||f.liveSyncDurationCount||c===0)&&(c=i!==void 0?i:s*r);const y=r;return c+Math.min(this.stallCount*this.config.liveSyncOnStallIncrease,y)}set targetLatency(e){this.stallCount=0,this.config.liveSyncDuration=e,this._targetLatencyUpdated=!0}get liveSyncPosition(){const e=this.estimateLiveEdge(),t=this.targetLatency;if(e===null||t===null)return null;const n=this.levelDetails;if(n===null)return null;const r=n.edge,i=e-t-this.edgeStalled,s=r-n.totalduration,u=r-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(s,i),u)}get drift(){const e=this.levelDetails;return e===null?1:e.drift}get edgeStalled(){const e=this.levelDetails;if(e===null)return 0;const t=(this.config.lowLatencyMode&&e.partTarget||e.targetduration)*3;return Math.max(e.age-t,0)}get forwardBufferLength(){const{media:e}=this,t=this.levelDetails;if(!e||!t)return 0;const n=e.buffered.length;return(n?e.buffered.end(n-1):t.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.hls=null}registerListeners(){const{hls:e}=this;e&&(e.on(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(m.ERROR,this.onError,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(m.ERROR,this.onError,this))}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.onTimeupdate)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.onTimeupdate),this.media=null)}onManifestLoading(){this._latency=null,this.stallCount=0}onLevelUpdated(e,{details:t}){t.advanced&&this.onTimeupdate(),!t.live&&this.media&&this.media.removeEventListener("timeupdate",this.onTimeupdate)}onError(e,t){var n;t.details===A.BUFFER_STALLED_ERROR&&(this.stallCount++,this.hls&&(n=this.levelDetails)!=null&&n.live&&this.hls.logger.warn("[latency-controller]: Stall detected, adjusting target latency"))}changeMediaPlaybackRate(e,t){var n,r;e.playbackRate!==t&&((n=this.hls)==null||n.logger.debug(`[latency-controller]: latency=${this.latency.toFixed(3)}, targetLatency=${(r=this.targetLatency)==null?void 0:r.toFixed(3)}, forwardBufferLength=${this.forwardBufferLength.toFixed(3)}: adjusting playback rate from ${e.playbackRate} to ${t}`),e.playbackRate=t)}estimateLiveEdge(){const e=this.levelDetails;return e===null?null:e.edge+e.age}computeLatency(){const e=this.estimateLiveEdge();return e===null?null:e-this.currentTime}}class Jc extends Vs{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(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(m.LEVEL_LOADED,this.onLevelLoaded,this),e.on(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(m.FRAG_BUFFERED,this.onFragBuffered,this),e.on(m.ERROR,this.onError,this)}_unregisterListeners(){const{hls:e}=this;e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(m.LEVEL_LOADED,this.onLevelLoaded,this),e.off(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(m.FRAG_BUFFERED,this.onFragBuffered,this),e.off(m.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach(t=>{t.loadError=0,t.fragmentError=0}),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(e,t){this.resetLevels()}onManifestLoaded(e,t){const n=this.hls.config.preferManagedMediaSource,r=[],i={},s={};let u=!1,f=!1,c=!1;t.levels.forEach(y=>{var E;const U=y.attrs;let{audioCodec:V,videoCodec:ee}=y;V&&(y.audioCodec=V=He(V,n)||void 0),((E=ee)==null?void 0:E.indexOf("avc1"))===0&&(ee=y.videoCodec=_r(ee));const{width:De,height:Ae,unknownCodecs:Ge}=y;let ft=Ge?Ge.length:0;if(Ge)for(let Wn=ft;Wn--;){const yr=Ge[Wn];this.isAudioSupported(yr)?(y.audioCodec=V=V?`${V},${yr}`:yr,ft--,Sn.audio[V.substring(0,4)]=2):this.isVideoSupported(yr)&&(y.videoCodec=ee=ee?`${ee},${yr}`:yr,ft--,Sn.video[ee.substring(0,4)]=2)}if(u||(u=!!(De&&Ae)),f||(f=!!ee),c||(c=!!V),ft||V&&!this.isAudioSupported(V)||ee&&!this.isVideoSupported(ee)){this.log(`Some or all CODECS not supported "${U.CODECS}"`);return}const{CODECS:lt,"FRAME-RATE":Pt,"HDCP-LEVEL":Nt,"PATHWAY-ID":on,RESOLUTION:zt,"VIDEO-RANGE":Jt}=U,jt=`${`${on||"."}-`}${y.bitrate}-${zt}-${Pt}-${lt}-${Jt}-${Nt}`;if(i[jt])if(i[jt].uri!==y.url&&!y.attrs["PATHWAY-ID"]){const Wn=s[jt]+=1;y.attrs["PATHWAY-ID"]=new Array(Wn+1).join(".");const yr=this.createLevel(y);i[jt]=yr,r.push(yr)}else i[jt].addGroupId("audio",U.AUDIO),i[jt].addGroupId("text",U.SUBTITLES);else{const Wn=this.createLevel(y);i[jt]=Wn,s[jt]=1,r.push(Wn)}}),this.filterAndSortMediaOptions(r,t,u,f,c)}createLevel(e){const t=new Cn(e),n=e.supplemental;if(n!=null&&n.videoCodec&&!this.isVideoSupported(n.videoCodec)){const r=new Error(`SUPPLEMENTAL-CODECS not supported "${n.videoCodec}"`);this.log(r.message),t.supportedResult=Ot(r,[])}return t}isAudioSupported(e){return nt(e,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(e){return nt(e,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(e,t,n,r,i){let s=[],u=[],f=e;if((n||r)&&i&&(f=f.filter(({videoCodec:Ae,videoRange:Ge,width:ft,height:lt})=>(!!Ae||!!(ft&<))&&dn(Ge))),f.length===0){Promise.resolve().then(()=>{if(this.hls){let Ae="no level with compatible codecs found in manifest",Ge=Ae;t.levels.length&&(Ge=`one or more CODECS in variant not supported: ${an(t.levels.map(lt=>lt.attrs.CODECS).filter((lt,Pt,Nt)=>Nt.indexOf(lt)===Pt))}`,this.warn(Ge),Ae+=` (${Ge})`);const ft=new Error(Ae);this.hls.trigger(m.ERROR,{type:ce.MEDIA_ERROR,details:A.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:ft,reason:Ge})}});return}t.audioTracks&&(s=t.audioTracks.filter(Ae=>!Ae.audioCodec||this.isAudioSupported(Ae.audioCodec)),xu(s)),t.subtitles&&(u=t.subtitles,xu(u));const c=f.slice(0);f.sort((Ae,Ge)=>{if(Ae.attrs["HDCP-LEVEL"]!==Ge.attrs["HDCP-LEVEL"])return(Ae.attrs["HDCP-LEVEL"]||"")>(Ge.attrs["HDCP-LEVEL"]||"")?1:-1;if(n&&Ae.height!==Ge.height)return Ae.height-Ge.height;if(Ae.frameRate!==Ge.frameRate)return Ae.frameRate-Ge.frameRate;if(Ae.videoRange!==Ge.videoRange)return Vt.indexOf(Ae.videoRange)-Vt.indexOf(Ge.videoRange);if(Ae.videoCodec!==Ge.videoCodec){const ft=Oe(Ae.videoCodec),lt=Oe(Ge.videoCodec);if(ft!==lt)return lt-ft}if(Ae.uri===Ge.uri&&Ae.codecSet!==Ge.codecSet){const ft=Le(Ae.codecSet),lt=Le(Ge.codecSet);if(ft!==lt)return lt-ft}return Ae.averageBitrate!==Ge.averageBitrate?Ae.averageBitrate-Ge.averageBitrate:0});let y=c[0];if(this.steering&&(f=this.steering.filterParsedLevels(f),f.length!==c.length)){for(let Ae=0;Ae<c.length;Ae++)if(c[Ae].pathwayId===f[0].pathwayId){y=c[Ae];break}}this._levels=f;for(let Ae=0;Ae<f.length;Ae++)if(f[Ae]===y){var E;this._firstLevel=Ae;const Ge=y.bitrate,ft=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${f.length} level(s) found, first bitrate: ${Ge}`),((E=this.hls.userConfig)==null?void 0:E.abrEwmaDefaultEstimate)===void 0){const lt=Math.min(Ge,this.hls.config.abrEwmaDefaultEstimateMax);lt>ft&&ft===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=lt)}break}const U=i&&!r,V=this.hls.config,ee=!!(V.audioStreamController&&V.audioTrackController),De={levels:f,audioTracks:s,subtitleTracks:u,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:i,video:r,altAudio:ee&&!U&&s.some(Ae=>!!Ae.url)};this.hls.trigger(m.MANIFEST_PARSED,De)}get levels(){return this._levels.length===0?null:this._levels}get loadLevelObj(){return this.currentLevel}get level(){return this.currentLevelIndex}set level(e){const t=this._levels;if(t.length===0)return;if(e<0||e>=t.length){const y=new Error("invalid level idx"),E=e<0;if(this.hls.trigger(m.ERROR,{type:ce.OTHER_ERROR,details:A.LEVEL_SWITCH_ERROR,level:e,fatal:E,error:y,reason:y.message}),E)return;e=Math.min(e,t.length-1)}const n=this.currentLevelIndex,r=this.currentLevel,i=r?r.attrs["PATHWAY-ID"]:void 0,s=t[e],u=s.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=s,n===e&&r&&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 ${n}${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(m.LEVEL_SWITCHING,f);const c=s.details;if(!c||c.live){const y=this.switchParams(s.uri,r==null?void 0:r.details,c);this.loadPlaylist(y)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(e){this.manualLevelIndex=e,this._startLevel===void 0&&(this._startLevel=e),e!==-1&&(this.level=e)}get firstLevel(){return this._firstLevel}set firstLevel(e){this._firstLevel=e}get startLevel(){if(this._startLevel===void 0){const e=this.hls.config.startLevel;return e!==void 0?e:this.hls.firstAutoLevel}return this._startLevel}set startLevel(e){this._startLevel=e}get pathways(){return this.steering?this.steering.pathways():[]}get pathwayPriority(){return this.steering?this.steering.pathwayPriority:null}set pathwayPriority(e){if(this.steering){const t=this.steering.pathways(),n=e.filter(r=>t.indexOf(r)!==-1);if(e.length<1){this.warn(`pathwayPriority ${e} should contain at least one pathway from list: ${t}`);return}this.steering.pathwayPriority=n}}onError(e,t){t.fatal||!t.context||t.context.type===w.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t!==void 0&&t.type===re.MAIN){const n=t.elementaryStreams;if(!Object.keys(n).some(i=>!!n[i]))return;const r=this._levels[t.level];r!=null&&r.loadError&&(this.log(`Resetting level error count of ${r.loadError} on frag buffered`),r.loadError=0)}}onLevelLoaded(e,t){var n;const{level:r,details:i}=t,s=t.levelInfo;if(!s){var u;this.warn(`Invalid level index ${r}`),(u=t.deliveryDirectives)!=null&&u.skip&&(i.deltaUpdateFailed=!0);return}if(s===this.currentLevel||t.withoutMultiVariant){s.fragmentError===0&&(s.loadError=0);let f=s.details;f===t.details&&f.advanced&&(f=void 0),this.playlistLoaded(r,t,f)}else(n=t.deliveryDirectives)!=null&&n.skip&&(i.deltaUpdateFailed=!0)}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentLevel)&&this.scheduleLoading(this.currentLevel,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=this.getUrlWithDirectives(e.uri,t),r=this.currentLevelIndex,i=e.attrs["PATHWAY-ID"],s=e.details,u=s==null?void 0:s.age;this.log(`Loading level index ${r}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${i?" Pathway "+i:""}${u&&s.live?" age "+u.toFixed(1)+(s.type?" "+s.type||0:""):""} ${n}`),this.hls.trigger(m.LEVEL_LOADING,{url:n,level:r,levelInfo:e,pathwayId:e.attrs["PATHWAY-ID"],id:0,deliveryDirectives:t||null})}get nextLoadLevel(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(e){this.level=e,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=e)}removeLevel(e){var t;if(this._levels.length===1)return;const n=this._levels.filter((i,s)=>s!==e?!0:(this.steering&&this.steering.removeLevel(i),i===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,i.details&&i.details.fragments.forEach(u=>u.level=-1)),!1));Ta(n),this._levels=n,this.currentLevelIndex>-1&&(t=this.currentLevel)!=null&&t.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.manualLevelIndex>-1&&(this.manualLevelIndex=this.currentLevelIndex);const r=n.length-1;this._firstLevel=Math.min(this._firstLevel,r),this._startLevel&&(this._startLevel=Math.min(this._startLevel,r)),this.hls.trigger(m.LEVELS_UPDATED,{levels:n})}onLevelsUpdated(e,{levels:t}){this._levels=t}checkMaxAutoUpdated(){const{autoLevelCapping:e,maxAutoLevel:t,maxHdcpLevel:n}=this.hls;this._maxAutoLevel!==t&&(this._maxAutoLevel=t,this.hls.trigger(m.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:t,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:n}))}}function xu(a){const e={};a.forEach(t=>{const n=t.groupId||"";t.id=e[n]=e[n]||0,e[n]++})}function Eu(){return self.SourceBuffer||self.WebKitSourceBuffer}function Su(){if(!xe())return!1;const e=Eu();return!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function"}function qc(){if(!Su())return!1;const a=xe();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(we(e,"video")))||["mp4a.40.2","fLaC"].some(e=>a.isTypeSupported(we(e,"audio"))))}function e0(){var a;const e=Eu();return typeof(e==null||(a=e.prototype)==null?void 0:a.changeType)=="function"}const t0=100;class n0 extends ta{constructor(e,t,n){super(e,t,n,"stream-controller",re.MAIN),this.audioCodecSwap=!1,this.level=-1,this._forceStartLoad=!1,this._hasEnoughToStart=!1,this.altAudio=0,this.audioOnly=!1,this.fragPlaying=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this.onMediaPlaying=()=>{this.tick()},this.onMediaSeeked=()=>{const r=this.media,i=r?r.currentTime:null;if(i===null||!O(i)||(this.log(`Media seeked to ${i.toFixed(3)}`),!this.getBufferedFrag(i)))return;const s=this.getFwdBufferInfoAtPos(r,i,re.MAIN,0);if(s===null||s.len===0){this.warn(`Main forward buffer length at ${i} on "seeked" event ${s?s.len:"empty"})`);return}this.tick()},this.registerListeners()}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(m.MANIFEST_PARSED,this.onManifestParsed,this),e.on(m.LEVEL_LOADING,this.onLevelLoading,this),e.on(m.LEVEL_LOADED,this.onLevelLoaded,this),e.on(m.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(m.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(m.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(m.BUFFER_CREATED,this.onBufferCreated,this),e.on(m.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(m.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(m.MANIFEST_PARSED,this.onManifestParsed,this),e.off(m.LEVEL_LOADED,this.onLevelLoaded,this),e.off(m.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(m.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(m.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(m.BUFFER_CREATED,this.onBufferCreated,this),e.off(m.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(m.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this.onMediaPlaying=this.onMediaSeeked=null,this.unregisterListeners(),super.onHandlerDestroying()}startLoad(e,t){if(this.levels){const{lastCurrentTime:n,hls:r}=this;if(this.stopLoad(),this.setInterval(t0),this.level=-1,!this.startFragRequested){let i=r.startLevel;i===-1&&(r.config.testBandwidth&&this.levels.length>1?(i=0,this.bitrateTest=!0):i=r.firstAutoLevel),r.nextLoadLevel=i,this.level=r.loadLevel,this._hasEnoughToStart=!!t}n>0&&e===-1&&!t&&(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n),this.state=gn.IDLE,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}else this._forceStartLoad=!0,this.state=gn.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case gn.WAITING_LEVEL:{const{levels:t,level:n}=this,r=t==null?void 0:t[n],i=r==null?void 0:r.details;if(i&&(!i.live||this.levelLastLoaded===r&&!this.waitForLive(r))){if(this.waitForCdnTuneIn(i))break;this.state=gn.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=gn.IDLE;break}break}case gn.FRAG_LOADING_WAITING_RETRY:{var e;const t=self.performance.now(),n=this.retryDate;if(!n||t>=n||(e=this.media)!=null&&e.seeking){const{levels:r,level:i}=this,s=r==null?void 0:r[i];this.resetStartWhenNotLoaded(s||null),this.state=gn.IDLE}}break}this.state===gn.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){var e;super.onTickEnd(),(e=this.media)!=null&&e.readyState&&this.media.seeking===!1&&(this.lastCurrentTime=this.media.currentTime),this.checkFragmentChanged()}doTickIdle(){const{hls:e,levelLastLoaded:t,levels:n,media:r}=this;if(t===null||!r&&!this.primaryPrefetch&&(this.startFragRequested||!e.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const i=this.buffering?e.nextLoadLevel:e.loadLevel;if(!(n!=null&&n[i]))return;const s=n[i],u=this.getMainFwdBufferInfo();if(u===null)return;const f=this.getLevelDetails();if(f&&this._streamEnded(u,f)){const De={};this.altAudio===2&&(De.type="video"),this.hls.trigger(m.BUFFER_EOS,De),this.state=gn.ENDED;return}if(!this.buffering)return;e.loadLevel!==i&&e.manualLevel===-1&&this.log(`Adapting to level ${i} from level ${this.level}`),this.level=e.nextLoadLevel=i;const c=s.details;if(!c||this.state===gn.WAITING_LEVEL||this.waitForLive(s)){this.level=i,this.state=gn.WAITING_LEVEL,this.startFragRequested=!1;return}const y=u.len,E=this.getMaxBufferLength(s.maxBitrate);if(y>=E)return;this.backtrackFragment&&this.backtrackFragment.start>u.end&&(this.backtrackFragment=null);const U=this.backtrackFragment?this.backtrackFragment.start:u.end;let V=this.getNextFragment(U,c);if(this.couldBacktrack&&!this.fragPrevious&&V&&me(V)&&this.fragmentTracker.getState(V)!==er.OK){var ee;const Ae=((ee=this.backtrackFragment)!=null?ee:V).sn-c.startSN,Ge=c.fragments[Ae-1];Ge&&V.cc===Ge.cc&&(V=Ge,this.fragmentTracker.removeFragment(Ge))}else this.backtrackFragment&&u.len&&(this.backtrackFragment=null);if(V&&this.isLoopLoading(V,U)){if(!V.gap){const Ae=this.audioOnly&&!this.altAudio?x.AUDIO:x.VIDEO,Ge=(Ae===x.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;Ge&&this.afterBufferFlushed(Ge,Ae,re.MAIN)}V=this.getNextFragmentLoopLoading(V,c,u,re.MAIN,E)}V&&(V.initSegment&&!V.initSegment.data&&!this.bitrateTest&&(V=V.initSegment),this.loadFragment(V,s,U))}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);r===er.NOT_LOADED||r===er.PARTIAL?me(e)?this.bitrateTest?(this.log(`Fragment ${e.sn} of level ${e.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(e,t)):super.loadFragment(e,t,n):this._loadInitSegment(e,t):this.clearTrackerIfNeeded(e)}getBufferedFrag(e){return this.fragmentTracker.getBufferedFrag(e,re.MAIN)}followingBufferedFrag(e){return e?this.getBufferedFrag(e.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:e,media:t}=this;if(t!=null&&t.readyState){let n;const r=this.getAppendedFrag(t.currentTime);r&&r.start>1&&this.flushMainBuffer(0,r.start-1);const i=this.getLevelDetails();if(i!=null&&i.live){const u=this.getMainFwdBufferInfo();if(!u||u.len<i.targetduration*2)return}if(!t.paused&&e){const u=this.hls.nextLoadLevel,f=e[u],c=this.fragLastKbps;c&&this.fragCurrent?n=this.fragCurrent.duration*f.maxBitrate/(1e3*c)+1:n=0}else n=0;const s=this.getBufferedFrag(t.currentTime+n);if(s){const u=this.followingBufferedFrag(s);if(u){this.abortCurrentFrag();const f=u.maxStartPTS?u.maxStartPTS:u.start,c=u.duration,y=Math.max(s.end,f+Math.min(Math.max(c-this.config.maxFragLookUpTolerance,c*(this.couldBacktrack?.5:.125)),c*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(y,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 gn.KEY_LOADING:case gn.FRAG_LOADING:case gn.FRAG_LOADING_WAITING_RETRY:case gn.PARSING:case gn.PARSED:this.state=gn.IDLE;break}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(e,t){super.flushMainBuffer(e,t,this.altAudio===2?"video":null)}onMediaAttached(e,t){super.onMediaAttached(e,t);const n=t.media;Fa(n,"playing",this.onMediaPlaying),Fa(n,"seeked",this.onMediaSeeked)}onMediaDetaching(e,t){const{media:n}=this;n&&(Oa(n,"playing",this.onMediaPlaying),Oa(n,"seeked",this.onMediaSeeked)),this.videoBuffer=null,this.fragPlaying=null,super.onMediaDetaching(e,t),!t.transferMedia&&(this._hasEnoughToStart=!1)}onManifestLoading(){super.onManifestLoading(),this.log("Trigger BUFFER_RESET"),this.hls.trigger(m.BUFFER_RESET,void 0),this.couldBacktrack=!1,this.fragLastKbps=0,this.fragPlaying=this.backtrackFragment=null,this.altAudio=0,this.audioOnly=!1}onManifestParsed(e,t){let n=!1,r=!1;t.levels.forEach(i=>{const s=i.audioCodec;s&&(n=n||s.indexOf("mp4a.40.2")!==-1,r=r||s.indexOf("mp4a.40.5")!==-1)}),this.audioCodecSwitch=n&&r&&!e0(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=t.levels,this.startFragRequested=!1}onLevelLoading(e,t){const{levels:n}=this;if(!n||this.state!==gn.IDLE)return;const r=t.levelInfo;(!r.details||r.details.live&&(this.levelLastLoaded!==r||r.details.expired)||this.waitForCdnTuneIn(r.details))&&(this.state=gn.WAITING_LEVEL)}onLevelLoaded(e,t){var n;const{levels:r,startFragRequested:i}=this,s=t.level,u=t.details,f=u.totalduration;if(!r){this.warn(`Levels were reset while loading level ${s}`);return}this.log(`Level ${s} loaded [${u.startSN},${u.endSN}]${u.lastPartSn?`[part-${u.lastPartSn}-${u.lastPartIndex}]`:""}, cc [${u.startCC}, ${u.endCC}] duration:${f}`);const c=t.levelInfo,y=this.fragCurrent;y&&(this.state===gn.FRAG_LOADING||this.state===gn.FRAG_LOADING_WAITING_RETRY)&&y.level!==t.level&&y.loader&&this.abortCurrentFrag();let E=0;if(u.live||(n=c.details)!=null&&n.live){var U;if(this.checkLiveUpdate(u),u.deltaUpdateFailed)return;E=this.alignPlaylists(u,c.details,(U=this.levelLastLoaded)==null?void 0:U.details)}if(c.details=u,this.levelLastLoaded=c,i||this.setStartPosition(u,E),this.hls.trigger(m.LEVEL_UPDATED,{details:u,level:s}),this.state===gn.WAITING_LEVEL){if(this.waitForCdnTuneIn(u))return;this.state=gn.IDLE}i&&u.live&&this.synchronizeToLiveEdge(u),this.tick()}synchronizeToLiveEdge(e){const{config:t,media:n}=this;if(!n)return;const r=this.hls.liveSyncPosition,i=this.getLoadPosition(),s=e.fragmentStart,u=e.edge,f=i>=s-t.maxFragLookUpTolerance&&i<=u;if(r!==null&&n.duration>r&&(i<r||!f)){const c=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;(!f&&n.readyState<4||i<u-c)&&(this._hasEnoughToStart||(this.nextLoadPosition=r),n.readyState&&(this.warn(`Playback: ${i.toFixed(3)} is located too far from the end of live sliding playlist: ${u}, reset currentTime to : ${r.toFixed(3)}`),n.currentTime=r))}}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:r,payload:i}=e,{levels:s}=this;if(!s){this.warn(`Levels were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);return}const u=s[n.level];if(!u){this.warn(`Level ${n.level} not found on progress`);return}const f=u.details;if(!f){this.warn(`Dropping fragment ${n.sn} of level ${n.level} after level details were reset`),this.fragmentTracker.removeFragment(n);return}const c=u.videoCodec,y=f.PTSKnown||!f.live,E=(t=n.initSegment)==null?void 0:t.data,U=this._getAudioCodec(u),V=this.transmuxer=this.transmuxer||new gs(this.hls,re.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),ee=r?r.index:-1,De=ee!==-1,Ae=new Ci(n.level,n.sn,n.stats.chunkCount,i.byteLength,ee,De),Ge=this.initPTS[n.cc];V.push(i,E,U,c,n,r,f.totalduration,y,Ae,Ge)}onAudioTrackSwitching(e,t){const n=this.hls,r=this.altAudio===2;if(Dn(t.url,n))this.altAudio=1;else{if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;const s=this.fragCurrent;s&&(this.log("Switching to main audio track, cancel main fragment load"),s.abortRequests(),this.fragmentTracker.removeFragment(s)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();if(r){this.fragmentTracker.removeAllFragments(),n.once(m.BUFFER_FLUSHED,()=>{var s;(s=this.hls)==null||s.trigger(m.AUDIO_TRACK_SWITCHED,t)}),n.trigger(m.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});return}n.trigger(m.AUDIO_TRACK_SWITCHED,t)}}onAudioTrackSwitched(e,t){const n=Dn(t.url,this.hls);if(n){const r=this.videoBuffer;r&&this.mediaBuffer!==r&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=r)}this.altAudio=n?2:0,this.tick()}onBufferCreated(e,t){const n=t.tracks;let r,i,s=!1;for(const u in n){const f=n[u];if(f.id==="main"){if(i=u,r=f,u==="video"){const c=n[u];c&&(this.videoBuffer=c.buffer)}}else s=!0}s&&r?(this.log(`Alternate track found, use ${i}.buffered to schedule main fragment loading`),this.mediaBuffer=r.buffer):this.mediaBuffer=this.media}onFragBuffered(e,t){const{frag:n,part:r}=t,i=n.type===re.MAIN;if(i){if(this.fragContextChanged(n)){this.warn(`Fragment ${n.sn}${r?" p: "+r.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}`),this.state===gn.PARSED&&(this.state=gn.IDLE);return}const u=r?r.stats:n.stats;this.fragLastKbps=Math.round(8*u.total/(u.buffering.end-u.loading.first)),me(n)&&(this.fragPrevious=n),this.fragBufferedComplete(n,r)}const s=this.media;s&&(!this._hasEnoughToStart&&Tr.getBuffered(s).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),i&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(e,t){var n;if(t.fatal){this.state=gn.ERROR;return}switch(t.details){case A.FRAG_GAP:case A.FRAG_PARSING_ERROR:case A.FRAG_DECRYPT_ERROR:case A.FRAG_LOAD_ERROR:case A.FRAG_LOAD_TIMEOUT:case A.KEY_LOAD_ERROR:case A.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(re.MAIN,t);break;case A.LEVEL_LOAD_ERROR:case A.LEVEL_LOAD_TIMEOUT:case A.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===gn.WAITING_LEVEL&&((n=t.context)==null?void 0:n.type)===w.LEVEL&&(this.state=gn.IDLE);break;case A.BUFFER_ADD_CODEC_ERROR:case A.BUFFER_APPEND_ERROR:if(t.parent!=="main")return;this.resetLoadingState();break;case A.BUFFER_FULL_ERROR:if(t.parent!=="main")return;this.reduceLengthAndFlushBuffer(t)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case A.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onFragLoadEmergencyAborted(){this.state=gn.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==x.AUDIO||!this.altAudio){const n=(t===x.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;n&&(this.afterBufferFlushed(n,t,re.MAIN),this.tick())}}onLevelsUpdated(e,t){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level,this.level===-1&&this.resetWhenMissingContext(this.fragCurrent)),this.levels=t.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:e}=this;if(!e)return;const t=e.currentTime;let n=this.startPosition;if(n>=0&&t<n){if(e.seeking){this.log(`could not seek to ${n}, already seeking at ${t}`);return}const r=this.timelineOffset;r&&n&&(n+=r);const i=this.getLevelDetails(),s=Tr.getBuffered(e),u=s.length?s.start(0):0,f=u-n,c=Math.max(this.config.maxBufferHole,this.config.maxFragLookUpTolerance);f>0&&(f<c||this.loadingParts&&f<2*((i==null?void 0:i.partTarget)||0))&&(this.log(`adjusting start position by ${f} to match buffer start`),n+=f,this.startPosition=n),t<n&&(this.log(`seek to target start position ${n} from current time ${t} buffer start ${u}`),e.currentTime=n)}}_getAudioCodec(e){let t=this.config.defaultAudioCodec||e.audioCodec;return this.audioCodecSwap&&t&&(this.log("Swapping audio codec"),t.indexOf("mp4a.40.5")!==-1?t="mp4a.40.2":t="mp4a.40.5"),t}_loadBitrateTestFrag(e,t){e.bitrateTest=!0,this._doFragLoad(e,t).then(n=>{const{hls:r}=this,i=n==null?void 0:n.frag;if(!i||this.fragContextChanged(i))return;t.fragmentError=0,this.state=gn.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const s=i.stats;s.parsing.start=s.parsing.end=s.buffering.start=s.buffering.end=self.performance.now(),r.trigger(m.FRAG_LOADED,n),i.bitrateTest=!1})}_handleTransmuxComplete(e){var t;const n=this.playlistType,{hls:r}=this,{remuxResult:i,chunkMeta:s}=e,u=this.getCurrentContext(s);if(!u){this.resetWhenMissingContext(s);return}const{frag:f,part:c,level:y}=u,{video:E,text:U,id3:V,initSegment:ee}=i,{details:De}=y,Ae=this.altAudio?void 0:i.audio;if(this.fragContextChanged(f)){this.fragmentTracker.removeFragment(f);return}if(this.state=gn.PARSING,ee){if(ee!=null&&ee.tracks){const lt=f.initSegment||f;this._bufferInitSegment(y,ee.tracks,lt,s),r.trigger(m.FRAG_PARSING_INIT_SEGMENT,{frag:lt,id:n,tracks:ee.tracks})}const Ge=ee.initPTS,ft=ee.timescale;O(Ge)&&(this.initPTS[f.cc]={baseTime:Ge,timescale:ft},r.trigger(m.INIT_PTS_FOUND,{frag:f,id:n,initPTS:Ge,timescale:ft}))}if(E&&De){!Ae&&E.type==="audiovideo"&&this.logMuxedErr(f);const Ge=De.fragments[f.sn-1-De.startSN],ft=f.sn===De.startSN,lt=!Ge||f.cc>Ge.cc;if(i.independent!==!1){const{startPTS:Pt,endPTS:Nt,startDTS:on,endDTS:zt}=E;if(c)c.elementaryStreams[E.type]={startPTS:Pt,endPTS:Nt,startDTS:on,endDTS:zt};else if(E.firstKeyFrame&&E.independent&&s.id===1&&!lt&&(this.couldBacktrack=!0),E.dropped&&E.independent){const Jt=this.getMainFwdBufferInfo(),vn=(Jt?Jt.end:this.getLoadPosition())+this.config.maxBufferHole,jt=E.firstKeyFramePTS?E.firstKeyFramePTS:Pt;if(!ft&&vn<jt-this.config.maxBufferHole&&!lt){this.backtrack(f);return}else lt&&(f.gap=!0);f.setElementaryStreamInfo(E.type,f.start,Nt,f.start,zt,!0)}else ft&&Pt-(De.appliedTimelineOffset||0)>pl&&(f.gap=!0);f.setElementaryStreamInfo(E.type,Pt,Nt,on,zt),this.backtrackFragment&&(this.backtrackFragment=f),this.bufferFragmentData(E,f,c,s,ft||lt)}else if(ft||lt)f.gap=!0;else{this.backtrack(f);return}}if(Ae){const{startPTS:Ge,endPTS:ft,startDTS:lt,endDTS:Pt}=Ae;c&&(c.elementaryStreams[x.AUDIO]={startPTS:Ge,endPTS:ft,startDTS:lt,endDTS:Pt}),f.setElementaryStreamInfo(x.AUDIO,Ge,ft,lt,Pt),this.bufferFragmentData(Ae,f,c,s)}if(De&&V!=null&&(t=V.samples)!=null&&t.length){const Ge={id:n,frag:f,details:De,samples:V.samples};r.trigger(m.FRAG_PARSING_METADATA,Ge)}if(De&&U){const Ge={id:n,frag:f,details:De,samples:U.samples};r.trigger(m.FRAG_PARSING_USERDATA,Ge)}}logMuxedErr(e){this.warn(`${me(e)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${e.url}`)}_bufferInitSegment(e,t,n,r){if(this.state!==gn.PARSING)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&(delete t.audio,t.audiovideo&&this.logMuxedErr(n));const{audio:i,video:s,audiovideo:u}=t;if(i){let c=Ln(i.codec,e.audioCodec);c==="mp4a"&&(c="mp4a.40.5");const y=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){c&&(c.indexOf("mp4a.40.5")!==-1?c="mp4a.40.2":c="mp4a.40.5");const E=i.metadata;E&&"channelCount"in E&&(E.channelCount||1)!==1&&y.indexOf("firefox")===-1&&(c="mp4a.40.5")}c&&c.indexOf("mp4a.40.5")!==-1&&y.indexOf("android")!==-1&&i.container!=="audio/mpeg"&&(c="mp4a.40.2",this.log(`Android: force audio codec to ${c}`)),e.audioCodec&&e.audioCodec!==c&&this.log(`Swapping manifest audio codec "${e.audioCodec}" for "${c}"`),i.levelCodec=c,i.id=re.MAIN,this.log(`Init audio buffer, container:${i.container}, codecs[selected/level/parsed]=[${c||""}/${e.audioCodec||""}/${i.codec}]`),delete t.audiovideo}if(s){s.levelCodec=e.videoCodec,s.id=re.MAIN;const c=s.codec;if((c==null?void 0:c.length)===4)switch(c){case"hvc1":case"hev1":s.codec="hvc1.1.6.L120.90";break;case"av01":s.codec="av01.0.04M.08";break;case"avc1":s.codec="avc1.42e01e";break}this.log(`Init video buffer, container:${s.container}, codecs[level/parsed]=[${e.videoCodec||""}/${c}]${s.codec!==c?" parsed-corrected="+s.codec:""}${s.supplemental?" supplemental="+s.supplemental:""}`),delete t.audiovideo}u&&(this.log(`Init audiovideo buffer, container:${u.container}, codecs[level/parsed]=[${e.codecs}/${u.codec}]`),delete t.video,delete t.audio);const f=Object.keys(t);if(f.length){if(this.hls.trigger(m.BUFFER_CODECS,t),!this.hls)return;f.forEach(c=>{const E=t[c].initSegment;E!=null&&E.byteLength&&this.hls.trigger(m.BUFFER_APPENDING,{type:c,data:E,frag:n,part:null,chunkMeta:r,parent:n.type})})}this.tickImmediate()}getMainFwdBufferInfo(){const e=this.mediaBuffer&&this.altAudio===2?this.mediaBuffer:this.media;return this.getFwdBufferInfo(e,re.MAIN)}get maxBufferLength(){const{levels:e,level:t}=this,n=e==null?void 0:e[t];return n?this.getMaxBufferLength(n.maxBitrate):this.config.maxBufferLength}backtrack(e){this.couldBacktrack=!0,this.backtrackFragment=e,this.resetTransmuxer(),this.flushBufferGap(e),this.fragmentTracker.removeFragment(e),this.fragPrevious=null,this.nextLoadPosition=e.start,this.state=gn.IDLE}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&e.seeking===!1){const n=e.currentTime;if(Tr.isBuffered(e,n)?t=this.getAppendedFrag(n):Tr.isBuffered(e,n+.1)&&(t=this.getAppendedFrag(n+.1)),t){this.backtrackFragment=null;const r=this.fragPlaying,i=t.level;(!r||t.sn!==r.sn||r.level!==i)&&(this.fragPlaying=t,this.hls.trigger(m.FRAG_CHANGED,{frag:t}),(!r||r.level!==i)&&this.hls.trigger(m.LEVEL_SWITCHED,{level:i}))}}}get nextLevel(){const e=this.nextBufferedFrag;return e?e.level:-1}get currentFrag(){var e;if(this.fragPlaying)return this.fragPlaying;const t=((e=this.media)==null?void 0:e.currentTime)||this.lastCurrentTime;return O(t)?this.getAppendedFrag(t):null}get currentProgramDateTime(){var e;const t=((e=this.media)==null?void 0:e.currentTime)||this.lastCurrentTime;if(O(t)){const n=this.getLevelDetails(),r=this.currentFrag||(n?En(null,n.fragments,t):null);if(r){const i=r.programDateTime;if(i!==null){const s=i+(t-r.start)*1e3;return new Date(s)}}}return null}get currentLevel(){const e=this.currentFrag;return e?e.level:-1}get nextBufferedFrag(){const e=this.currentFrag;return e?this.followingBufferedFrag(e):null}get forceStartLoad(){return this._forceStartLoad}}class r0{constructor(e){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=e}abort(e){for(const n in this.keyUriToKeyInfo){const r=this.keyUriToKeyInfo[n].loader;if(r){var t;if(e&&e!==((t=r.context)==null?void 0:t.frag.type))return;r.abort()}}}detach(){for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e];(t.mediaKeySessionContext||t.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[e]}}destroy(){this.detach();for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e].loader;t&&t.destroy()}this.keyUriToKeyInfo={}}createKeyLoadError(e,t=A.KEY_LOAD_ERROR,n,r,i){return new yi({type:ce.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:i,error:n,networkDetails:r})}loadClear(e,t){if(this.emeController&&this.config.emeEnabled){const{sn:n,cc:r}=e;for(let i=0;i<t.length;i++){const s=t[i];if(r<=s.cc&&(n==="initSegment"||s.sn==="initSegment"||n<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 n,r;t&&e.setKeyFormat(t);const i=e.decryptdata;if(!i){const c=new Error(t?`Expected frag.decryptdata to be defined after setting format ${t}`:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(e,A.KEY_LOAD_ERROR,c))}const s=i.uri;if(!s)return Promise.reject(this.createKeyLoadError(e,A.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${s}"`)));let u=this.keyUriToKeyInfo[s];if((n=u)!=null&&n.decryptdata.key)return i.key=u.decryptdata.key,Promise.resolve({frag:e,keyInfo:u});if((r=u)!=null&&r.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(c=>(i.key=c.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":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(u,e);default:return Promise.reject(this.createKeyLoadError(e,A.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${i.method}"`)))}}loadKeyEME(e,t){const n={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){const r=this.emeController.loadKey(n);if(r)return(e.keyLoadPromise=r.then(i=>(e.mediaKeySessionContext=i,n))).catch(i=>{throw e.keyLoadPromise=null,i})}return Promise.resolve(n)}loadKeyHTTP(e,t){const n=this.config,r=n.loader,i=new r(n);return t.keyLoader=e.loader=i,e.keyLoadPromise=new Promise((s,u)=>{const f={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},c=n.keyLoadPolicy.default,y={loadPolicy:c,timeout:c.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},E={onSuccess:(U,V,ee,De)=>{const{frag:Ae,keyInfo:Ge,url:ft}=ee;if(!Ae.decryptdata||Ge!==this.keyUriToKeyInfo[ft])return u(this.createKeyLoadError(Ae,A.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),De));Ge.decryptdata.key=Ae.decryptdata.key=new Uint8Array(U.data),Ae.keyLoader=null,Ge.loader=null,s({frag:Ae,keyInfo:Ge})},onError:(U,V,ee,De)=>{this.resetLoader(V),u(this.createKeyLoadError(t,A.KEY_LOAD_ERROR,new Error(`HTTP Error ${U.code} loading key ${U.text}`),ee,S({url:f.url,data:void 0},U)))},onTimeout:(U,V,ee)=>{this.resetLoader(V),u(this.createKeyLoadError(t,A.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),ee))},onAbort:(U,V,ee)=>{this.resetLoader(V),u(this.createKeyLoadError(t,A.INTERNAL_ABORTED,new Error("key loading aborted"),ee))}};i.load(f,y,E)})}resetLoader(e){const{frag:t,keyInfo:n,url:r}=e,i=n.loader;t.keyLoader===i&&(t.keyLoader=null,n.loader=null),delete this.keyUriToKeyInfo[r],i&&i.destroy()}}function wu(a){const{type:e}=a;switch(e){case w.AUDIO_TRACK:return re.AUDIO;case w.SUBTITLE_TRACK:return re.SUBTITLE;default:return re.MAIN}}function Ul(a,e){let t=a.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class i0{constructor(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.onManifestLoaded=this.checkAutostartLoad,this.hls=e,this.registerListeners()}startLoad(e){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:e}=this;e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.LEVEL_LOADING,this.onLevelLoading,this),e.on(m.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(m.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.on(m.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:e}=this;e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.LEVEL_LOADING,this.onLevelLoading,this),e.off(m.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(m.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.off(m.LEVELS_UPDATED,this.onLevelsUpdated,this)}createInternalLoader(e){const t=this.hls.config,n=t.pLoader,r=t.loader,i=n||r,s=new i(t);return this.loaders[e.type]=s,s}getInternalLoader(e){return this.loaders[e.type]}resetInternalLoader(e){this.loaders[e]&&delete this.loaders[e]}destroyInternalLoaders(){for(const e in this.loaders){const t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(e,t){const{url:n}=t;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:w.MANIFEST,url:n,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(e,t){const{id:n,level:r,pathwayId:i,url:s,deliveryDirectives:u,levelInfo:f}=t;this.load({id:n,level:r,pathwayId:i,responseType:"text",type:w.LEVEL,url:s,deliveryDirectives:u,levelOrTrack:f})}onAudioTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:s,track:u}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:w.AUDIO_TRACK,url:i,deliveryDirectives:s,levelOrTrack:u})}onSubtitleTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:s,track:u}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:w.SUBTITLE_TRACK,url:i,deliveryDirectives:s,levelOrTrack:u})}onLevelsUpdated(e,t){const n=this.loaders[w.LEVEL];if(n){const r=n.context;r&&!t.levels.some(i=>i===r.levelOrTrack)&&(n.abort(),delete this.loaders[w.LEVEL])}}load(e){var t;const n=this.hls.config;let r=this.getInternalLoader(e);if(r){const c=this.hls.logger,y=r.context;if(y&&y.levelOrTrack===e.levelOrTrack&&(y.url===e.url||y.deliveryDirectives&&!e.deliveryDirectives)){y.url===e.url?c.log(`[playlist-loader]: ignore ${e.url} ongoing request`):c.log(`[playlist-loader]: ignore ${e.url} in favor of ${y.url}`);return}c.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),r.abort()}let i;if(e.type===w.MANIFEST?i=n.manifestLoadPolicy.default:i=g({},n.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),r=this.createInternalLoader(e),O((t=e.deliveryDirectives)==null?void 0:t.part)){let c;if(e.type===w.LEVEL&&e.level!==null?c=this.hls.levels[e.level].details:e.type===w.AUDIO_TRACK&&e.id!==null?c=this.hls.audioTracks[e.id].details:e.type===w.SUBTITLE_TRACK&&e.id!==null&&(c=this.hls.subtitleTracks[e.id].details),c){const y=c.partTarget,E=c.targetduration;if(y&&E){const U=Math.max(y*3,E*.8)*1e3;i=g({},i,{maxTimeToFirstByteMs:Math.min(U,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(U,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:(c,y,E,U)=>{const V=this.getInternalLoader(E);this.resetInternalLoader(E.type);const ee=c.data;if(ee.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(c,E,new Error("no EXTM3U delimiter"),U||null,y);return}y.parsing.start=performance.now(),ns.isMediaPlaylist(ee)||E.type!==w.MANIFEST?this.handleTrackOrLevelPlaylist(c,y,E,U||null,V):this.handleMasterPlaylist(c,y,E,U)},onError:(c,y,E,U)=>{this.handleNetworkError(y,E,!1,c,U)},onTimeout:(c,y,E)=>{this.handleNetworkError(y,E,!0,void 0,c)}};r.load(e,u,f)}checkAutostartLoad(){if(!this.hls)return;const{config:{autoStartLoad:e,startPosition:t},forceStartLoad:n}=this.hls;(e||n)&&(this.hls.logger.log(`${e?"auto":"force"} startLoad with configured startPosition ${t}`),this.hls.startLoad(t))}handleMasterPlaylist(e,t,n,r){const i=this.hls,s=e.data,u=Ul(e,n),f=ns.parseMasterPlaylist(s,u);if(f.playlistParsingError){this.handleManifestParsingError(e,n,f.playlistParsingError,r,t);return}const{contentSteering:c,levels:y,sessionData:E,sessionKeys:U,startTimeOffset:V,variableList:ee}=f;this.variableList=ee;const{AUDIO:De=[],SUBTITLES:Ae,"CLOSED-CAPTIONS":Ge}=ns.parseMasterPlaylistMedia(s,u,f);De.length&&!De.some(lt=>!lt.url)&&y[0].audioCodec&&!y[0].attrs.AUDIO&&(this.hls.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),De.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new Br({}),bitrate:0,url:""})),i.trigger(m.MANIFEST_LOADED,{levels:y,audioTracks:De,subtitles:Ae,captions:Ge,contentSteering:c,url:u,stats:t,networkDetails:r,sessionData:E,sessionKeys:U,startTimeOffset:V,variableList:ee})}handleTrackOrLevelPlaylist(e,t,n,r,i){const s=this.hls,{id:u,level:f,type:c}=n,y=Ul(e,n),E=O(f)?f:O(u)?u:0,U=wu(n),V=ns.parseLevelPlaylist(e.data,y,E,U,0,this.variableList);if(c===w.MANIFEST){const ee={attrs:new Br({}),bitrate:0,details:V,name:"",url:y};V.requestScheduled=t.loading.start+Gs(V,0),s.trigger(m.MANIFEST_LOADED,{levels:[ee],audioTracks:[],url:y,stats:t,networkDetails:r,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),n.levelDetails=V,this.handlePlaylistLoaded(V,e,t,n,r,i)}handleManifestParsingError(e,t,n,r,i){this.hls.trigger(m.ERROR,{type:ce.NETWORK_ERROR,details:A.MANIFEST_PARSING_ERROR,fatal:t.type===w.MANIFEST,url:e.url,err:n,error:n,reason:n.message,response:e,context:t,networkDetails:r,stats:i})}handleNetworkError(e,t,n=!1,r,i){let s=`A network ${n?"timeout":"error"+(r?" (status "+r.code+")":"")} occurred while loading ${e.type}`;e.type===w.LEVEL?s+=`: ${e.level} id: ${e.id}`:(e.type===w.AUDIO_TRACK||e.type===w.SUBTITLE_TRACK)&&(s+=` id: ${e.id} group-id: "${e.groupId}"`);const u=new Error(s);this.hls.logger.warn(`[playlist-loader]: ${s}`);let f=A.UNKNOWN,c=!1;const y=this.getInternalLoader(e);switch(e.type){case w.MANIFEST:f=n?A.MANIFEST_LOAD_TIMEOUT:A.MANIFEST_LOAD_ERROR,c=!0;break;case w.LEVEL:f=n?A.LEVEL_LOAD_TIMEOUT:A.LEVEL_LOAD_ERROR,c=!1;break;case w.AUDIO_TRACK:f=n?A.AUDIO_TRACK_LOAD_TIMEOUT:A.AUDIO_TRACK_LOAD_ERROR,c=!1;break;case w.SUBTITLE_TRACK:f=n?A.SUBTITLE_TRACK_LOAD_TIMEOUT:A.SUBTITLE_LOAD_ERROR,c=!1;break}y&&this.resetInternalLoader(e.type);const E={type:ce.NETWORK_ERROR,details:f,fatal:c,url:e.url,loader:y,context:e,error:u,networkDetails:t,stats:i};if(r){const U=(t==null?void 0:t.url)||e.url;E.response=S({url:U,data:void 0},r)}this.hls.trigger(m.ERROR,E)}handlePlaylistLoaded(e,t,n,r,i,s){const u=this.hls,{type:f,level:c,id:y,groupId:E,deliveryDirectives:U}=r,V=Ul(t,r),ee=wu(r),De=typeof r.level=="number"&&ee===re.MAIN?c:void 0;if(!e.fragments.length){const Ge=e.playlistParsingError=new Error("No Segments found in Playlist");u.trigger(m.ERROR,{type:ce.NETWORK_ERROR,details:A.LEVEL_EMPTY_ERROR,fatal:!1,url:V,error:Ge,reason:Ge.message,response:t,context:r,level:De,parent:ee,networkDetails:i,stats:n});return}e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));const Ae=e.playlistParsingError;if(Ae){if(this.hls.logger.warn(Ae),!u.config.ignorePlaylistParsingErrors){u.trigger(m.ERROR,{type:ce.NETWORK_ERROR,details:A.LEVEL_PARSING_ERROR,fatal:!1,url:V,error:Ae,reason:Ae.message,response:t,context:r,level:De,parent:ee,networkDetails:i,stats:n});return}e.playlistParsingError=null}switch(e.live&&s&&(s.getCacheAge&&(e.ageHeader=s.getCacheAge()||0),(!s.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),f){case w.MANIFEST:case w.LEVEL:u.trigger(m.LEVEL_LOADED,{details:e,levelInfo:r.levelOrTrack||u.levels[0],level:De||0,id:y||0,stats:n,networkDetails:i,deliveryDirectives:U,withoutMultiVariant:f===w.MANIFEST});break;case w.AUDIO_TRACK:u.trigger(m.AUDIO_TRACK_LOADED,{details:e,track:r.levelOrTrack,id:y||0,groupId:E||"",stats:n,networkDetails:i,deliveryDirectives:U});break;case w.SUBTITLE_TRACK:u.trigger(m.SUBTITLE_TRACK_LOADED,{details:e,track:r.levelOrTrack,id:y||0,groupId:E||"",stats:n,networkDetails:i,deliveryDirectives:U});break}}}class Va{static get version(){return _a}static isMSESupported(){return Su()}static isSupported(){return qc()}static getMediaSource(){return xe()}static get Events(){return m}static get MetadataSchema(){return Se}static get ErrorTypes(){return ce}static get ErrorDetails(){return A}static get DefaultConfig(){return Va.defaultConfig?Va.defaultConfig:zc}static set DefaultConfig(e){Va.defaultConfig=e}constructor(e={}){this.config=void 0,this.userConfig=void 0,this.logger=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new Ka,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioStreamController=void 0,this.subtititleStreamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.interstitialsController=void 0,this.gapController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this._url=null,this._sessionId=void 0,this.triggeringException=void 0,this.started=!1;const t=this.logger=Y(e.debug||!1,"Hls instance",e.assetPlayerId),n=this.config=Kc(Va.DefaultConfig,e,t);this.userConfig=e,n.progressive&&Hc(n,t);const{abrController:r,bufferController:i,capLevelController:s,errorController:u,fpsController:f}=n,c=new u(this),y=this.abrController=new r(this),E=new Lr(this),U=n.interstitialsController,V=U?this.interstitialsController=new U(this,Va):null,ee=this.bufferController=new i(this,E),De=this.capLevelController=new s(this),Ae=new f(this),Ge=new i0(this),ft=n.contentSteeringController,lt=ft?new ft(this):null,Pt=this.levelController=new Jc(this,lt),Nt=new Xc(this),on=new r0(this.config),zt=this.streamController=new n0(this,E,on),Jt=this.gapController=new Gc(this,E);De.setStreamController(zt),Ae.setStreamController(zt);const vn=[Ge,Pt,zt];V&&vn.splice(1,0,V),lt&&vn.splice(1,0,lt),this.networkControllers=vn;const jt=[y,ee,Jt,De,Ae,Nt,E];this.audioTrackController=this.createController(n.audioTrackController,vn);const Wn=n.audioStreamController;Wn&&vn.push(this.audioStreamController=new Wn(this,E,on)),this.subtitleTrackController=this.createController(n.subtitleTrackController,vn);const yr=n.subtitleStreamController;yr&&vn.push(this.subtititleStreamController=new yr(this,E,on)),this.createController(n.timelineController,jt),on.emeController=this.emeController=this.createController(n.emeController,jt),this.cmcdController=this.createController(n.cmcdController,jt),this.latencyController=this.createController(Qc,jt),this.coreComponents=jt,vn.push(c);const wi=c.onErrorOut;typeof wi=="function"&&this.on(m.ERROR,wi,c),this.on(m.MANIFEST_LOADED,Ge.onManifestLoaded,Ge)}createController(e,t){if(e){const n=new e(this);return t&&t.push(n),n}return null}on(e,t,n=this){this._emitter.on(e,t,n)}once(e,t,n=this){this._emitter.once(e,t,n)}removeAllListeners(e){this._emitter.removeAllListeners(e)}off(e,t,n=this,r){this._emitter.off(e,t,n,r)}listeners(e){return this._emitter.listeners(e)}emit(e,t,n){return this._emitter.emit(e,t,n)}trigger(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(n){if(this.logger.error("An internal error happened while handling event "+e+'. Error message: "'+n.message+'". Here is a stacktrace:',n),!this.triggeringException){this.triggeringException=!0;const r=e===m.ERROR;this.trigger(m.ERROR,{type:ce.OTHER_ERROR,details:A.INTERNAL_EXCEPTION,fatal:r,event:e,error:n}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){this.logger.log("destroy"),this.trigger(m.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this._url=null,this.networkControllers.forEach(t=>t.destroy()),this.networkControllers.length=0,this.coreComponents.forEach(t=>t.destroy()),this.coreComponents.length=0;const e=this.config;e.xhrSetup=e.fetchSetup=void 0,this.userConfig=null}attachMedia(e){if(!e||"media"in e&&!e.media){const i=new Error(`attachMedia failed: invalid argument (${e})`);this.trigger(m.ERROR,{type:ce.OTHER_ERROR,details:A.ATTACH_MEDIA_ERROR,fatal:!0,error:i});return}this.logger.log("attachMedia"),this._media&&(this.logger.warn("media must be detached before attaching"),this.detachMedia());const t="media"in e,n=t?e.media:e,r=t?e:{media:n};this._media=n,this.trigger(m.MEDIA_ATTACHING,r)}detachMedia(){this.logger.log("detachMedia"),this.trigger(m.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const e=this.bufferController.transferMedia();return this.trigger(m.MEDIA_DETACHING,{transferMedia:e}),e}loadSource(e){this.stopLoad();const t=this.media,n=this._url,r=this._url=J.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log(`loadSource:${r}`),t&&n&&(n!==r||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(m.MANIFEST_LOADING,{url:e})}get url(){return this._url}get hasEnoughToStart(){return this.streamController.hasEnoughToStart}get startPosition(){return this.streamController.startPositionValue}startLoad(e=-1,t){this.logger.log(`startLoad(${e+(t?", <skip seek to start>":"")})`),this.started=!0,this.resumeBuffering();for(let n=0;n<this.networkControllers.length&&(this.networkControllers[n].startLoad(e,t),!(!this.started||!this.networkControllers));n++);}stopLoad(){this.logger.log("stopLoad"),this.started=!1;for(let e=0;e<this.networkControllers.length&&(this.networkControllers[e].stopLoad(),!(this.started||!this.networkControllers));e++);}get loadingEnabled(){return this.started}get bufferingEnabled(){return this.streamController.bufferingEnabled}resumeBuffering(){this.bufferingEnabled||(this.logger.log("resume buffering"),this.networkControllers.forEach(e=>{e.resumeBuffering&&e.resumeBuffering()}))}pauseBuffering(){this.bufferingEnabled&&(this.logger.log("pause buffering"),this.networkControllers.forEach(e=>{e.pauseBuffering&&e.pauseBuffering()}))}get inFlightFragments(){const e={[re.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(e[re.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(e[re.SUBTITLE]=this.subtititleStreamController.inFlightFrag),e}swapAudioCodec(){this.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){this.logger.log("recoverMediaError");const e=this._media,t=e==null?void 0:e.currentTime;this.detachMedia(),e&&(this.attachMedia(e),t&&this.startLoad(t))}removeLevel(e){this.levelController.removeLevel(e)}get sessionId(){let e=this._sessionId;return e||(e=this._sessionId=xo()),e}get levels(){const e=this.levelController.levels;return e||[]}get latestLevelDetails(){return this.streamController.getLevelDetails()||null}get loadLevelObj(){return this.levelController.loadLevelObj}get currentLevel(){return this.streamController.currentLevel}set currentLevel(e){this.logger.log(`set currentLevel:${e}`),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(e){this.logger.log(`set nextLevel:${e}`),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(e){this.logger.log(`set loadLevel:${e}`),this.levelController.manualLevel=e}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(e){this.levelController.nextLoadLevel=e}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(e){this.logger.log(`set firstLevel:${e}`),this.levelController.firstLevel=e}get startLevel(){const e=this.levelController.startLevel;return e===-1&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:e}set startLevel(e){this.logger.log(`set startLevel:${e}`),e!==-1&&(e=Math.max(e,this.minAutoLevel)),this.levelController.startLevel=e}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(e){const t=!!e;t!==this.config.capLevelToPlayerSize&&(t?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=t)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimate():NaN}set bandwidthEstimate(e){this.abrController.resetEstimator(e)}get abrEwmaDefaultEstimate(){const{bwEstimator:e}=this.abrController;return e?e.defaultEstimate:NaN}get ttfbEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimateTTFB():NaN}set autoLevelCapping(e){this._autoLevelCapping!==e&&(this.logger.log(`set autoLevelCapping:${e}`),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(e){nn(e)&&this._maxHdcpLevel!==e&&(this._maxHdcpLevel=e,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return this.levelController.manualLevel===-1}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:e,config:{minAutoBitrate:t}}=this;if(!e)return 0;const n=e.length;for(let r=0;r<n;r++)if(e[r].maxBitrate>=t)return r;return 0}get maxAutoLevel(){const{levels:e,autoLevelCapping:t,maxHdcpLevel:n}=this;let r;if(t===-1&&e!=null&&e.length?r=e.length-1:r=t,n)for(let i=r;i--;){const s=e[i].attrs["HDCP-LEVEL"];if(s&&s<=n)return i}return r}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(e){this.abrController.nextAutoLevel=e}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}get maxBufferLength(){return this.streamController.maxBufferLength}setAudioOption(e){var t;return((t=this.audioTrackController)==null?void 0:t.setAudioOption(e))||null}setSubtitleOption(e){var t;return((t=this.subtitleTrackController)==null?void 0:t.setSubtitleOption(e))||null}get allAudioTracks(){const e=this.audioTrackController;return e?e.allAudioTracks:[]}get audioTracks(){const e=this.audioTrackController;return e?e.audioTracks:[]}get audioTrack(){const e=this.audioTrackController;return e?e.audioTrack:-1}set audioTrack(e){const t=this.audioTrackController;t&&(t.audioTrack=e)}get allSubtitleTracks(){const e=this.subtitleTrackController;return e?e.allSubtitleTracks:[]}get subtitleTracks(){const e=this.subtitleTrackController;return e?e.subtitleTracks:[]}get subtitleTrack(){const e=this.subtitleTrackController;return e?e.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(e){const t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}get subtitleDisplay(){const e=this.subtitleTrackController;return e?e.subtitleDisplay:!1}set subtitleDisplay(e){const t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(e){this.config.lowLatencyMode=e}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}set targetLatency(e){this.latencyController.targetLatency=e}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}get pathways(){return this.levelController.pathways}get pathwayPriority(){return this.levelController.pathwayPriority}set pathwayPriority(e){this.levelController.pathwayPriority=e}get bufferedToEnd(){var e;return!!((e=this.bufferController)!=null&&e.bufferedToEnd)}get interstitialsManager(){var e;return((e=this.interstitialsController)==null?void 0:e.interstitialsManager)||null}getMediaDecodingInfo(e,t=this.allAudioTracks){const n=ln(t);return Pe(e,n,navigator.mediaCapabilities)}}Va.defaultConfig=void 0},16722:function(Xt,Ze,p){"use strict";p.d(Ze,{Z:function(){return re}});const O=o=>typeof o=="object"&&o!=null&&o.nodeType===1,K=(o,I)=>(!I||o!=="hidden")&&o!=="visible"&&o!=="clip",q=(o,I)=>{if(o.clientHeight<o.scrollHeight||o.clientWidth<o.scrollWidth){const k=getComputedStyle(o,null);return K(k.overflowY,I)||K(k.overflowX,I)||(g=>{const _=(S=>{if(!S.ownerDocument||!S.ownerDocument.defaultView)return null;try{return S.ownerDocument.defaultView.frameElement}catch(T){return null}})(g);return!!_&&(_.clientHeight<g.scrollHeight||_.clientWidth<g.scrollWidth)})(o)}return!1},ce=(o,I,k,g,_,S,T,B)=>S<o&&T>I||S>o&&T<I?0:S<=o&&B<=k||T>=I&&B>=k?S-o-g:T>I&&B<k||S<o&&B>k?T-I+_:0,A=o=>{const I=o.parentElement;return I==null?o.getRootNode().host||null:I},m=(o,I)=>{var k,g,_,S;if(typeof document=="undefined")return[];const{scrollMode:T,block:B,inline:se,boundary:z,skipOverflowHiddenElements:$}=I,G=typeof z=="function"?z:Ue=>Ue!==z;if(!O(o))throw new TypeError("Invalid target");const X=document.scrollingElement||document.documentElement,L=[];let D=o;for(;O(D)&&G(D);){if(D=A(D),D===X){L.push(D);break}D!=null&&D===document.body&&q(D)&&!q(document.documentElement)||D!=null&&q(D,$)&&L.push(D)}const Y=(g=(k=window.visualViewport)==null?void 0:k.width)!=null?g:innerWidth,j=(S=(_=window.visualViewport)==null?void 0:_.height)!=null?S:innerHeight,{scrollX:xe,scrollY:Ce}=window,{height:Ee,width:ge,top:de,right:W,bottom:be,left:N}=o.getBoundingClientRect(),{top:ue,right:J,bottom:v,left:x}=(Ue=>{const ze=window.getComputedStyle(Ue);return{top:parseFloat(ze.scrollMarginTop)||0,right:parseFloat(ze.scrollMarginRight)||0,bottom:parseFloat(ze.scrollMarginBottom)||0,left:parseFloat(ze.scrollMarginLeft)||0}})(o);let Z=B==="start"||B==="nearest"?de-ue:B==="end"?be+v:de+Ee/2-ue+v,me=se==="center"?N+ge/2-x+J:se==="end"?W+J:N-x;const Be=[];for(let Ue=0;Ue<L.length;Ue++){const ze=L[Ue],{height:qe,width:mt,top:gt,right:at,bottom:Lt,left:tn}=ze.getBoundingClientRect();if(T==="if-needed"&&de>=0&&N>=0&&be<=j&&W<=Y&&(ze===X&&!q(ze)||de>=gt&&be<=Lt&&N>=tn&&W<=at))return Be;const Rt=getComputedStyle(ze),Ht=parseInt(Rt.borderLeftWidth,10),ut=parseInt(Rt.borderTopWidth,10),wt=parseInt(Rt.borderRightWidth,10),he=parseInt(Rt.borderBottomWidth,10);let pe=0,le=0;const Q="offsetWidth"in ze?ze.offsetWidth-ze.clientWidth-Ht-wt:0,Re="offsetHeight"in ze?ze.offsetHeight-ze.clientHeight-ut-he:0,H="offsetWidth"in ze?ze.offsetWidth===0?0:mt/ze.offsetWidth:0,R="offsetHeight"in ze?ze.offsetHeight===0?0:qe/ze.offsetHeight:0;if(X===ze)pe=B==="start"?Z:B==="end"?Z-j:B==="nearest"?ce(Ce,Ce+j,j,ut,he,Ce+Z,Ce+Z+Ee,Ee):Z-j/2,le=se==="start"?me:se==="center"?me-Y/2:se==="end"?me-Y:ce(xe,xe+Y,Y,Ht,wt,xe+me,xe+me+ge,ge),pe=Math.max(0,pe+Ce),le=Math.max(0,le+xe);else{pe=B==="start"?Z-gt-ut:B==="end"?Z-Lt+he+Re:B==="nearest"?ce(gt,Lt,qe,ut,he+Re,Z,Z+Ee,Ee):Z-(gt+qe/2)+Re/2,le=se==="start"?me-tn-Ht:se==="center"?me-(tn+mt/2)+Q/2:se==="end"?me-at+wt+Q:ce(tn,at,mt,Ht,wt+Q,me,me+ge,ge);const{scrollLeft:P,scrollTop:fe}=ze;pe=R===0?0:Math.max(0,Math.min(fe+pe/R,ze.scrollHeight-qe/R+Re)),le=H===0?0:Math.max(0,Math.min(P+le/H,ze.scrollWidth-mt/H+Q)),Z+=fe-pe,me+=P-le}Be.push({el:ze,top:pe,left:le})}return Be},w=o=>o===!1?{block:"end",inline:"nearest"}:(I=>I===Object(I)&&Object.keys(I).length!==0)(o)?o:{block:"start",inline:"nearest"};function re(o,I){if(!o.isConnected||!(_=>{let S=_;for(;S&&S.parentNode;){if(S.parentNode===document)return!0;S=S.parentNode instanceof ShadowRoot?S.parentNode.host:S.parentNode}return!1})(o))return;const k=(_=>{const S=window.getComputedStyle(_);return{top:parseFloat(S.scrollMarginTop)||0,right:parseFloat(S.scrollMarginRight)||0,bottom:parseFloat(S.scrollMarginBottom)||0,left:parseFloat(S.scrollMarginLeft)||0}})(o);if((_=>typeof _=="object"&&typeof _.behavior=="function")(I))return I.behavior(m(o,I));const g=typeof I=="boolean"||I==null?void 0:I.behavior;for(const{el:_,top:S,left:T}of m(o,w(I))){const B=S-k.top+k.bottom,se=T-k.left+k.right;_.scroll({top:B,left:se,behavior:g})}}}}]);
|
|
|
}()); |