You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__RestFul__index.fb38efc5....

1340 lines
1.4 MiB

This file contains ambiguous Unicode characters!

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

!(function(){var Yo=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[1006],{63093:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return _e}});var M=p(5891),Y=p(59301),ce={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"},Te=ce,j=p(88853),X=function(A,L){return Y.createElement(j.Z,(0,M.Z)({},A,{ref:L,icon:Te}))},ve=Y.forwardRef(X),_e=ve},10402:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return _e}});var M=p(5891),Y=p(59301),ce={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"},Te=ce,j=p(88853),X=function(A,L){return Y.createElement(j.Z,(0,M.Z)({},A,{ref:L,icon:Te}))},ve=Y.forwardRef(X),_e=ve},18290:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return _e}});var M=p(5891),Y=p(59301),ce={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"},Te=ce,j=p(88853),X=function(A,L){return Y.createElement(j.Z,(0,M.Z)({},A,{ref:L,icon:Te}))},ve=Y.forwardRef(X),_e=ve},19362:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return _e}});var M=p(5891),Y=p(59301),ce={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"},Te=ce,j=p(88853),X=function(A,L){return Y.createElement(j.Z,(0,M.Z)({},A,{ref:L,icon:Te}))},ve=Y.forwardRef(X),_e=ve},61441:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return _e}});var M=p(5891),Y=p(59301),ce={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"},Te=ce,j=p(88853),X=function(A,L){return Y.createElement(j.Z,(0,M.Z)({},A,{ref:L,icon:Te}))},ve=Y.forwardRef(X),_e=ve},30631:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return _e}});var M=p(5891),Y=p(59301),ce={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"},Te=ce,j=p(88853),X=function(A,L){return Y.createElement(j.Z,(0,M.Z)({},A,{ref:L,icon:Te}))},ve=Y.forwardRef(X),_e=ve},43971:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return _e}});var M=p(5891),Y=p(59301),ce={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"},Te=ce,j=p(88853),X=function(A,L){return Y.createElement(j.Z,(0,M.Z)({},A,{ref:L,icon:Te}))},ve=Y.forwardRef(X),_e=ve},58358:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return _e}});var M=p(5891),Y=p(59301),ce={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"},Te=ce,j=p(88853),X=function(A,L){return Y.createElement(j.Z,(0,M.Z)({},A,{ref:L,icon:Te}))},ve=Y.forwardRef(X),_e=ve},44757:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return _e}});var M=p(5891),Y=p(59301),ce={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"},Te=ce,j=p(88853),X=function(A,L){return Y.createElement(j.Z,(0,M.Z)({},A,{ref:L,icon:Te}))},ve=Y.forwardRef(X),_e=ve},16537:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return _e}});var M=p(5891),Y=p(59301),ce={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"},Te=ce,j=p(88853),X=function(A,L){return Y.createElement(j.Z,(0,M.Z)({},A,{ref:L,icon:Te}))},ve=Y.forwardRef(X),_e=ve},77042:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return _e}});var M=p(5891),Y=p(59301),ce={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"},Te=ce,j=p(88853),X=function(A,L){return Y.createElement(j.Z,(0,M.Z)({},A,{ref:L,icon:Te}))},ve=Y.forwardRef(X),_e=ve},5527:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return _e}});var M=p(5891),Y=p(59301),ce={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"},Te=ce,j=p(88853),X=function(A,L){return Y.createElement(j.Z,(0,M.Z)({},A,{ref:L,icon:Te}))},ve=Y.forwardRef(X),_e=ve},86902:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return _e}});var M=p(5891),Y=p(59301),ce={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"},Te=ce,j=p(88853),X=function(A,L){return Y.createElement(j.Z,(0,M.Z)({},A,{ref:L,icon:Te}))},ve=Y.forwardRef(X),_e=ve},53878:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return _e}});var M=p(5891),Y=p(59301),ce={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"},Te=ce,j=p(88853),X=function(A,L){return Y.createElement(j.Z,(0,M.Z)({},A,{ref:L,icon:Te}))},ve=Y.forwardRef(X),_e=ve},21970:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return _e}});var M=p(5891),Y=p(59301),ce={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"},Te=ce,j=p(88853),X=function(A,L){return Y.createElement(j.Z,(0,M.Z)({},A,{ref:L,icon:Te}))},ve=Y.forwardRef(X),_e=ve},35593:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return it}});var M=p(57259),Y=p(29043),ce=p(19149),Te=p(43403),j=p(92310),X=p.n(j),ve=p(29301),_e=p(85899),a=p(70653),A=p(8107),L=p(49879),v=p(28800),u=p(93144),y=p(59301),b=p(5891),k=p(43469),se=p(20475);function P(te){var ge=te.prefixCls,q=te.align,z=te.arrow,De=te.arrowPos,O=z||{},ae=O.className,J=O.content,oe=De.x,de=oe===void 0?0:oe,Ce=De.y,xe=Ce===void 0?0:Ce,ke=y.useRef();if(!q||!q.points)return null;var Ie={position:"absolute"};if(q.autoArrow!==!1){var Pe=q.points[0],Xe=q.points[1],rt=Pe[0],Ze=Pe[1],ct=Xe[0],ut=Xe[1];rt===ct||!["t","b"].includes(rt)?Ie.top=xe:rt==="t"?Ie.top=0:Ie.bottom=0,Ze===ut||!["l","r"].includes(Ze)?Ie.left=de:Ze==="l"?Ie.left=0:Ie.right=0}return y.createElement("div",{ref:ke,className:X()("".concat(ge,"-arrow"),ae),style:Ie},J)}function N(te){var ge=te.prefixCls,q=te.open,z=te.zIndex,De=te.mask,O=te.motion;return De?y.createElement(k.default,(0,b.Z)({},O,{motionAppear:!0,visible:q,removeOnLeave:!0}),function(ae){var J=ae.className;return y.createElement("div",{style:{zIndex:z},className:X()("".concat(ge,"-mask"),J)})}):null}var V=y.memo(function(te){var ge=te.children;return ge},function(te,ge){return ge.cache}),K=V,x=y.forwardRef(function(te,ge){var q=te.popup,z=te.className,De=te.prefixCls,O=te.style,ae=te.target,J=te.onVisibleChanged,oe=te.open,de=te.keepDom,Ce=te.fresh,xe=te.onClick,ke=te.mask,Ie=te.arrow,Pe=te.arrowPos,Xe=te.align,rt=te.motion,Ze=te.maskMotion,ct=te.forceRender,ut=te.getPopupContainer,ot=te.autoDestroy,Ot=te.portal,_t=te.zIndex,w=te.onMouseEnter,C=te.onMouseLeave,lt=te.onPointerEnter,ie=te.ready,Oe=te.offsetX,mn=te.offsetY,Fe=te.offsetR,We=te.offsetB,Je=te.onAlign,ue=te.onPrepare,W=te.stretch,we=te.targetWidth,Be=te.targetHeight,U=typeof q=="function"?q():q,at=oe||de,Ee=(ut==null?void 0:ut.length)>0,St=y.useState(!ut||!Ee),Pt=(0,Y.Z)(St,2),zt=Pt[0],on=Pt[1];if((0,v.Z)(function(){!zt&&Ee&&ae&&on(!0)},[zt,Ee,ae]),!zt)return null;var It="auto",Vt={left:"-1000vw",top:"-1000vh",right:It,bottom:It};if(ie||!oe){var Ue,ft=Xe.points,Ct=Xe.dynamicInset||((Ue=Xe._experimental)===null||Ue===void 0?void 0:Ue.dynamicInset),Ne=Ct&&ft[0][1]==="r",Ae=Ct&&ft[0][0]==="b";Ne?(Vt.right=Fe,Vt.left=It):(Vt.left=Oe,Vt.right=It),Ae?(Vt.bottom=We,Vt.top=It):(Vt.top=mn,Vt.bottom=It)}var st={};return W&&(W.includes("height")&&Be?st.height=Be:W.includes("minHeight")&&Be&&(st.minHeight=Be),W.includes("width")&&we?st.width=we:W.includes("minWidth")&&we&&(st.minWidth=we)),oe||(st.pointerEvents="none"),y.createElement(Ot,{open:ct||at,getContainer:ut&&function(){return ut(ae)},autoDestroy:ot},y.createElement(N,{prefixCls:De,open:oe,zIndex:_t,mask:ke,motion:Ze}),y.createElement(ve.Z,{onResize:Je,disabled:!oe},function(dt){return y.createElement(k.default,(0,b.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:ct,leavedClassName:"".concat(De,"-hidden")},rt,{onAppearPrepare:ue,onEnterPrepare:ue,visible:oe,onVisibleChanged:function(Lt){var Bt;rt==null||(Bt=rt.onVisibleChanged)===null||Bt===void 0||Bt.call(rt,Lt),J(Lt)}}),function(kt,Lt){var Bt=kt.className,Nt=kt.style,en=X()(De,Bt,z);return y.createElement("div",{ref:(0,se.sQ)(dt,ge,Lt),className:en,style:(0,M.Z)((0,M.Z)((0,M.Z)((0,M.Z)({"--arrow-x":"".concat(Pe.x||0,"px"),"--arrow-y":"".concat(Pe.y||0,"px")},Vt),st),Nt),{},{boxSizing:"border-box",zIndex:_t},O),onMouseEnter:w,onMouseLeave:C,onPointerEnter:lt,onClick:xe},Ie&&y.createElement(P,{prefixCls:De,arrow:Ie,arrowPos:Pe,align:Xe}),y.createElement(K,{cache:!oe&&!Ce},U))})}))}),T=x,$=y.forwardRef(function(te,ge){var q=te.children,z=te.getTriggerDOMNode,De=(0,se.Yr)(q),O=y.useCallback(function(J){(0,se.mH)(ge,z?z(J):J)},[z]),ae=(0,se.x1)(O,q.ref);return De?y.cloneElement(q,{ref:ae}):q}),B=$,fe=y.createContext(null),ye=fe;function Re(te){return te?Array.isArray(te)?te:[te]:[]}function he(te,ge,q,z){return y.useMemo(function(){var De=Re(q!=null?q:ge),O=Re(z!=null?z:ge),ae=new Set(De),J=new Set(O);return te&&(ae.has("hover")&&(ae.delete("hover"),ae.add("click")),J.has("hover")&&(J.delete("hover"),J.add("click"))),[ae,J]},[te,ge,q,z])}var G=p(48886);function F(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],q=arguments.length>2?arguments[2]:void 0;return q?te[0]===ge[0]:te[0]===ge[0]&&te[1]===ge[1]}function le(te,ge,q,z){for(var De=q.points,O=Object.keys(te),ae=0;ae<O.length;ae+=1){var J,oe=O[ae];if(F((J=te[oe])===null||J===void 0?void 0:J.points,De,z))return"".concat(ge,"-placement-").concat(oe)}return""}function D(te,ge,q,z){return ge||(q?{motionName:"".concat(te,"-").concat(q)}:z?{motionName:z}:null)}function Q(te){return te.ownerDocument.defaultView}function H(te){for(var ge=[],q=te==null?void 0:te.parentElement,z=["hidden","scroll","clip","auto"];q;){var De=Q(q).getComputedStyle(q),O=De.overflowX,ae=De.overflowY,J=De.overflow;[O,ae,J].some(function(oe){return z.includes(oe)})&&ge.push(q),q=q.parentElement}return ge}function g(te){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(te)?ge:te}function E(te){return g(parseFloat(te),0)}function Z(te,ge){var q=(0,M.Z)({},te);return(ge||[]).forEach(function(z){if(!(z instanceof HTMLBodyElement||z instanceof HTMLHtmlElement)){var De=Q(z).getComputedStyle(z),O=De.overflow,ae=De.overflowClipMargin,J=De.borderTopWidth,oe=De.borderBottomWidth,de=De.borderLeftWidth,Ce=De.borderRightWidth,xe=z.getBoundingClientRect(),ke=z.offsetHeight,Ie=z.clientHeight,Pe=z.offsetWidth,Xe=z.clientWidth,rt=E(J),Ze=E(oe),ct=E(de),ut=E(Ce),ot=g(Math.round(xe.width/Pe*1e3)/1e3),Ot=g(Math.round(xe.height/ke*1e3)/1e3),_t=(Pe-Xe-ct-ut)*ot,w=(ke-Ie-rt-Ze)*Ot,C=rt*Ot,lt=Ze*Ot,ie=ct*ot,Oe=ut*ot,mn=0,Fe=0;if(O==="clip"){var We=E(ae);mn=We*ot,Fe=We*Ot}var Je=xe.x+ie-mn,ue=xe.y+C-Fe,W=Je+xe.width+2*mn-ie-Oe-_t,we=ue+xe.height+2*Fe-C-lt-w;q.left=Math.max(q.left,Je),q.top=Math.max(q.top,ue),q.right=Math.min(q.right,W),q.bottom=Math.min(q.bottom,we)}}),q}function pe(te){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,q="".concat(ge),z=q.match(/^(.*)\%$/);return z?te*(parseFloat(z[1])/100):parseFloat(q)}function ze(te,ge){var q=ge||[],z=(0,Y.Z)(q,2),De=z[0],O=z[1];return[pe(te.width,De),pe(te.height,O)]}function Ge(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[te[0],te[1]]}function je(te,ge){var q=ge[0],z=ge[1],De,O;return q==="t"?O=te.y:q==="b"?O=te.y+te.height:O=te.y+te.height/2,z==="l"?De=te.x:z==="r"?De=te.x+te.width:De=te.x+te.width/2,{x:De,y:O}}function Ve(te,ge){var q={t:"b",b:"t",l:"r",r:"l"};return te.map(function(z,De){return De===ge?q[z]||"c":z}).join("")}function mt(te,ge,q,z,De,O,ae){var J=y.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:De[z]||{}}),oe=(0,Y.Z)(J,2),de=oe[0],Ce=oe[1],xe=y.useRef(0),ke=y.useMemo(function(){return ge?H(ge):[]},[ge]),Ie=y.useRef({}),Pe=function(){Ie.current={}};te||Pe();var Xe=(0,A.Z)(function(){if(ge&&q&&te){let xn=function(Xn,lr){var Pr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:en,Tr=U.x+Xn,Rr=U.y+lr,Mr=Tr+Ue,ui=Rr+Vt,Yr=Math.max(Tr,Pr.left),pi=Math.max(Rr,Pr.top),Bi=Math.min(Mr,Pr.right),bi=Math.min(ui,Pr.bottom);return Math.max(0,(Bi-Yr)*(bi-pi))},bn=function(){un=U.y+rn,Pn=un+Vt,Kn=U.x+cn,Gn=Kn+Ue};var ct,ut,ot=ge,Ot=ot.ownerDocument,_t=Q(ot),w=_t.getComputedStyle(ot),C=w.width,lt=w.height,ie=w.position,Oe=ot.style.left,mn=ot.style.top,Fe=ot.style.right,We=ot.style.bottom,Je=ot.style.overflow,ue=(0,M.Z)((0,M.Z)({},De[z]),O),W=Ot.createElement("div");(ct=ot.parentElement)===null||ct===void 0||ct.appendChild(W),W.style.left="".concat(ot.offsetLeft,"px"),W.style.top="".concat(ot.offsetTop,"px"),W.style.position=ie,W.style.height="".concat(ot.offsetHeight,"px"),W.style.width="".concat(ot.offsetWidth,"px"),ot.style.left="0",ot.style.top="0",ot.style.right="auto",ot.style.bottom="auto",ot.style.overflow="hidden";var we;if(Array.isArray(q))we={x:q[0],y:q[1],width:0,height:0};else{var Be=q.getBoundingClientRect();we={x:Be.x,y:Be.y,width:Be.width,height:Be.height}}var U=ot.getBoundingClientRect(),at=Ot.documentElement,Ee=at.clientWidth,St=at.clientHeight,Pt=at.scrollWidth,zt=at.scrollHeight,on=at.scrollTop,It=at.scrollLeft,Vt=U.height,Ue=U.width,ft=we.height,Ct=we.width,Ne={left:0,top:0,right:Ee,bottom:St},Ae={left:-It,top:-on,right:Pt-It,bottom:zt-on},st=ue.htmlRegion,dt="visible",kt="visibleFirst";st!=="scroll"&&st!==kt&&(st=dt);var Lt=st===kt,Bt=Z(Ae,ke),Nt=Z(Ne,ke),en=st===dt?Nt:Bt,pn=Lt?Nt:en;ot.style.left="auto",ot.style.top="auto",ot.style.right="0",ot.style.bottom="0";var Tt=ot.getBoundingClientRect();ot.style.left=Oe,ot.style.top=mn,ot.style.right=Fe,ot.style.bottom=We,ot.style.overflow=Je,(ut=ot.parentElement)===null||ut===void 0||ut.removeChild(W);var yt=g(Math.round(Ue/parseFloat(C)*1e3)/1e3),Kt=g(Math.round(Vt/parseFloat(lt)*1e3)/1e3);if(yt===0||Kt===0||(0,_e.Sh)(q)&&!(0,G.Z)(q))return;var $t=ue.offset,Zt=ue.targetOffset,ln=ze(U,$t),Ln=(0,Y.Z)(ln,2),yn=Ln[0],Ft=Ln[1],Qe=ze(we,Zt),tt=(0,Y.Z)(Qe,2),vt=tt[0],bt=tt[1];we.x-=vt,we.y-=bt;var ht=ue.points||[],Dt=(0,Y.Z)(ht,2),xt=Dt[0],jt=Dt[1],tn=Ge(jt),nn=Ge(xt),In=je(we,tn),Dn=je(U,nn),Fn=(0,M.Z)({},ue),cn=In.x-Dn.x+yn,rn=In.y-Dn.y+Ft,$n=xn(cn,rn),Sn=xn(cn,rn,Nt),Wn=je(we,["t","l"]),Cn=je(U,["t","l"]),Bn=je(we,["b","r"]),zn=je(U,["b","r"]),On=ue.overflow||{},Qn=On.adjustX,or=On.adjustY,Tn=On.shiftX,qt=On.shiftY,Ke=function(lr){return typeof lr=="boolean"?lr:lr>=0},un,Pn,Kn,Gn;bn();var nr=Ke(or),tr=nn[0]===tn[0];if(nr&&nn[0]==="t"&&(Pn>pn.bottom||Ie.current.bt)){var Hn=rn;tr?Hn-=Vt-ft:Hn=Wn.y-zn.y-Ft;var fn=xn(cn,Hn),dn=xn(cn,Hn,Nt);fn>$n||fn===$n&&(!Lt||dn>=Sn)?(Ie.current.bt=!0,rn=Hn,Ft=-Ft,Fn.points=[Ve(nn,0),Ve(tn,0)]):Ie.current.bt=!1}if(nr&&nn[0]==="b"&&(un<pn.top||Ie.current.tb)){var En=rn;tr?En+=Vt-ft:En=Bn.y-Cn.y-Ft;var Vn=xn(cn,En),ir=xn(cn,En,Nt);Vn>$n||Vn===$n&&(!Lt||ir>=Sn)?(Ie.current.tb=!0,rn=En,Ft=-Ft,Fn.points=[Ve(nn,0),Ve(tn,0)]):Ie.current.tb=!1}var wr=Ke(Qn),Lr=nn[1]===tn[1];if(wr&&nn[1]==="l"&&(Gn>pn.right||Ie.current.rl)){var An=cn;Lr?An-=Ue-Ct:An=Wn.x-zn.x-yn;var hr=xn(An,rn),ur=xn(An,rn,Nt);hr>$n||hr===$n&&(!Lt||ur>=Sn)?(Ie.current.rl=!0,cn=An,yn=-yn,Fn.points=[Ve(nn,1),Ve(tn,1)]):Ie.current.rl=!1}if(wr&&nn[1]==="r"&&(Kn<pn.left||Ie.current.lr)){var pr=cn;Lr?pr+=Ue-Ct:pr=Bn.x-Cn.x-yn;var Zr=xn(pr,rn),zr=xn(pr,rn,Nt);Zr>$n||Zr===$n&&(!Lt||zr>=Sn)?(Ie.current.lr=!0,cn=pr,yn=-yn,Fn.points=[Ve(nn,1),Ve(tn,1)]):Ie.current.lr=!1}bn();var br=Tn===!0?0:Tn;typeof br=="number"&&(Kn<Nt.left&&(cn-=Kn-Nt.left-yn,we.x+Ct<Nt.left+br&&(cn+=we.x-Nt.left+Ct-br)),Gn>Nt.right&&(cn-=Gn-Nt.right-yn,we.x>Nt.right-br&&(cn+=we.x-Nt.right+br)));var Dr=qt===!0?0:qt;typeof Dr=="number"&&(un<Nt.top&&(rn-=un-Nt.top-Ft,we.y+ft<Nt.top+Dr&&(rn+=we.y-Nt.top+ft-Dr)),Pn>Nt.bottom&&(rn-=Pn-Nt.bottom-Ft,we.y>Nt.bottom-Dr&&(rn+=we.y-Nt.bottom+Dr)));var gr=U.x+cn,jr=gr+Ue,Vr=U.y+rn,ii=Vr+Vt,Fr=we.x,ei=Fr+Ct,ar=we.y,si=ar+ft,vi=Math.max(gr,Fr),fi=Math.min(jr,ei),Or=(vi+fi)/2,hi=Or-gr,mr=Math.max(Vr,ar),Wt=Math.min(ii,si),sr=(mr+Wt)/2,vr=sr-Vr;ae==null||ae(ge,Fn);var Rn=Tt.right-U.x-(cn+U.width),Nn=Tt.bottom-U.y-(rn+U.height);Ce({ready:!0,offsetX:cn/yt,offsetY:rn/Kt,offsetR:Rn/yt,offsetB:Nn/Kt,arrowX:hi/yt,arrowY:vr/Kt,scaleX:yt,scaleY:Kt,align:Fn})}}),rt=function(){xe.current+=1;var ut=xe.current;Promise.resolve().then(function(){xe.current===ut&&Xe()})},Ze=function(){Ce(function(ut){return(0,M.Z)((0,M.Z)({},ut),{},{ready:!1})})};return(0,v.Z)(Ze,[z]),(0,v.Z)(function(){te||Ze()},[te]),[de.ready,de.offsetX,de.offsetY,de.offsetR,de.offsetB,de.arrowX,de.arrowY,de.scaleX,de.scaleY,de.align,rt]}var pt=p(26390);function nt(te,ge,q,z,De){(0,v.Z)(function(){if(te&&ge&&q){let xe=function(){z(),De()};var O=ge,ae=q,J=H(O),oe=H(ae),de=Q(ae),Ce=new Set([de].concat((0,pt.Z)(J),(0,pt.Z)(oe)));return Ce.forEach(function(ke){ke.addEventListener("scroll",xe,{passive:!0})}),de.addEventListener("resize",xe,{passive:!0}),z(),function(){Ce.forEach(function(ke){ke.removeEventListener("scroll",xe),de.removeEventListener("resize",xe)})}}},[te,ge,q])}var Gt=p(51395),Jt=p(23073);function sn(te,ge,q,z,De,O,ae,J){var oe=y.useRef(te),de=y.useRef(!1);oe.current!==te&&(de.current=!0,oe.current=te),y.useEffect(function(){var Ce=(0,Jt.Z)(function(){de.current=!1});return function(){Jt.Z.cancel(Ce)}},[te]),y.useEffect(function(){if(ge&&z&&(!De||O)){var Ce=function(){var ie=!1,Oe=function(We){var Je=We.target;ie=ae(Je)},mn=function(We){var Je=We.target;!de.current&&oe.current&&!ie&&!ae(Je)&&J(!1)};return[Oe,mn]},xe=Ce(),ke=(0,Y.Z)(xe,2),Ie=ke[0],Pe=ke[1],Xe=Ce(),rt=(0,Y.Z)(Xe,2),Ze=rt[0],ct=rt[1],ut=Q(z);ut.addEventListener("mousedown",Ie,!0),ut.addEventListener("click",Pe,!0),ut.addEventListener("contextmenu",Pe,!0);var ot=(0,a.A)(q);if(ot&&(ot.addEventListener("mousedown",Ze,!0),ot.addEventListener("click",ct,!0),ot.addEventListener("contextmenu",ct,!0)),0)var Ot,_t,w,C;return function(){ut.removeEventListener("mousedown",Ie,!0),ut.removeEventListener("click",Pe,!0),ut.removeEventListener("contextmenu",Pe,!0),ot&&(ot.removeEventListener("mousedown",Ze,!0),ot.removeEventListener("click",ct,!0),ot.removeEventListener("contextmenu",ct,!0))}}},[ge,q,z,De,O])}var Ut=["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 Xt(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Te.Z,ge=y.forwardRef(function(q,z){var De=q.prefixCls,O=De===void 0?"rc-trigger-popup":De,ae=q.children,J=q.action,oe=J===void 0?"hover":J,de=q.showAction,Ce=q.hideAction,xe=q.popupVisible,ke=q.defaultPopupVisible,Ie=q.onPopupVisibleChange,Pe=q.afterPopupVisibleChange,Xe=q.mouseEnterDelay,rt=q.mouseLeaveDelay,Ze=rt===void 0?.1:rt,ct=q.focusDelay,ut=q.blurDelay,ot=q.mask,Ot=q.maskClosable,_t=Ot===void 0?!0:Ot,w=q.getPopupContainer,C=q.forceRender,lt=q.autoDestroy,ie=q.destroyPopupOnHide,Oe=q.popup,mn=q.popupClassName,Fe=q.popupStyle,We=q.popupPlacement,Je=q.builtinPlacements,ue=Je===void 0?{}:Je,W=q.popupAlign,we=q.zIndex,Be=q.stretch,U=q.getPopupClassNameFromAlign,at=q.fresh,Ee=q.alignPoint,St=q.onPopupClick,Pt=q.onPopupAlign,zt=q.arrow,on=q.popupMotion,It=q.maskMotion,Vt=q.popupTransitionName,Ue=q.popupAnimation,ft=q.maskTransitionName,Ct=q.maskAnimation,Ne=q.className,Ae=q.getTriggerDOMNode,st=(0,ce.Z)(q,Ut),dt=lt||ie||!1,kt=y.useState(!1),Lt=(0,Y.Z)(kt,2),Bt=Lt[0],Nt=Lt[1];(0,v.Z)(function(){Nt((0,u.Z)())},[]);var en=y.useRef({}),pn=y.useContext(ye),Tt=y.useMemo(function(){return{registerSubPopup:function(Zn,yr){en.current[Zn]=yr,pn==null||pn.registerSubPopup(Zn,yr)}}},[pn]),yt=(0,L.Z)(),Kt=y.useState(null),$t=(0,Y.Z)(Kt,2),Zt=$t[0],ln=$t[1],Ln=(0,A.Z)(function(jn){(0,_e.Sh)(jn)&&Zt!==jn&&ln(jn),pn==null||pn.registerSubPopup(yt,jn)}),yn=y.useState(null),Ft=(0,Y.Z)(yn,2),Qe=Ft[0],tt=Ft[1],vt=y.useRef(null),bt=(0,A.Z)(function(jn){(0,_e.Sh)(jn)&&Qe!==jn&&(tt(jn),vt.current=jn)}),ht=y.Children.only(ae),Dt=(ht==null?void 0:ht.props)||{},xt={},jt=(0,A.Z)(function(jn){var Zn,yr,Qr=Qe;return(Qr==null?void 0:Qr.contains(jn))||((Zn=(0,a.A)(Qr))===null||Zn===void 0?void 0:Zn.host)===jn||jn===Qr||(Zt==null?void 0:Zt.contains(jn))||((yr=(0,a.A)(Zt))===null||yr===void 0?void 0:yr.host)===jn||jn===Zt||Object.values(en.current).some(function(Ir){return(Ir==null?void 0:Ir.contains(jn))||jn===Ir})}),tn=D(O,on,Ue,Vt),nn=D(O,It,Ct,ft),In=y.useState(ke||!1),Dn=(0,Y.Z)(In,2),Fn=Dn[0],cn=Dn[1],rn=xe!=null?xe:Fn,$n=(0,A.Z)(function(jn){xe===void 0&&cn(jn)});(0,v.Z)(function(){cn(xe||!1)},[xe]);var Sn=y.useRef(rn);Sn.current=rn;var Wn=y.useRef([]);Wn.current=[];var Cn=(0,A.Z)(function(jn){var Zn;$n(jn),((Zn=Wn.current[Wn.current.length-1])!==null&&Zn!==void 0?Zn:rn)!==jn&&(Wn.current.push(jn),Ie==null||Ie(jn))}),Bn=y.useRef(),zn=function(){clearTimeout(Bn.current)},On=function(Zn){var yr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;zn(),yr===0?Cn(Zn):Bn.current=setTimeout(function(){Cn(Zn)},yr*1e3)};y.useEffect(function(){return zn},[]);var Qn=y.useState(!1),or=(0,Y.Z)(Qn,2),Tn=or[0],qt=or[1];(0,v.Z)(function(jn){(!jn||rn)&&qt(!0)},[rn]);var Ke=y.useState(null),un=(0,Y.Z)(Ke,2),Pn=un[0],Kn=un[1],Gn=y.useState([0,0]),nr=(0,Y.Z)(Gn,2),tr=nr[0],Hn=nr[1],fn=function(Zn){Hn([Zn.clientX,Zn.clientY])},dn=mt(rn,Zt,Ee?tr:Qe,We,ue,W,Pt),En=(0,Y.Z)(dn,11),Vn=En[0],ir=En[1],wr=En[2],Lr=En[3],An=En[4],hr=En[5],ur=En[6],pr=En[7],Zr=En[8],zr=En[9],br=En[10],Dr=he(Bt,oe,de,Ce),gr=(0,Y.Z)(Dr,2),jr=gr[0],Vr=gr[1],ii=jr.has("click"),Fr=Vr.has("click")||Vr.has("contextMenu"),ei=(0,A.Z)(function(){Tn||br()}),ar=function(){Sn.current&&Ee&&Fr&&On(!1)};nt(rn,Qe,Zt,ei,ar),(0,v.Z)(function(){ei()},[tr,We]),(0,v.Z)(function(){rn&&!(ue!=null&&ue[We])&&ei()},[JSON.stringify(W)]);var si=y.useMemo(function(){var jn=le(ue,O,zr,Ee);return X()(jn,U==null?void 0:U(zr))},[zr,U,ue,O,Ee]);y.useImperativeHandle(z,function(){return{nativeElement:vt.current,forceAlign:ei}});var vi=y.useState(0),fi=(0,Y.Z)(vi,2),Or=fi[0],hi=fi[1],mr=y.useState(0),Wt=(0,Y.Z)(mr,2),sr=Wt[0],vr=Wt[1],Rn=function(){if(Be&&Qe){var Zn=Qe.getBoundingClientRect();hi(Zn.width),vr(Zn.height)}},Nn=function(){Rn(),ei()},xn=function(Zn){qt(!1),br(),Pe==null||Pe(Zn)},bn=function(){return new Promise(function(Zn){Rn(),Kn(function(){return Zn})})};(0,v.Z)(function(){Pn&&(br(),Pn(),Kn(null))},[Pn]);function Xn(jn,Zn,yr,Qr){xt[jn]=function(Ir){var _i;Qr==null||Qr(Ir),On(Zn,yr);for(var Wi=arguments.length,Hi=new Array(Wi>1?Wi-1:0),Ai=1;Ai<Wi;Ai++)Hi[Ai-1]=arguments[Ai];(_i=Dt[jn])===null||_i===void 0||_i.call.apply(_i,[Dt,Ir].concat(Hi))}}(ii||Fr)&&(xt.onClick=function(jn){var Zn;Sn.current&&Fr?On(!1):!Sn.current&&ii&&(fn(jn),On(!0));for(var yr=arguments.length,Qr=new Array(yr>1?yr-1:0),Ir=1;Ir<yr;Ir++)Qr[Ir-1]=arguments[Ir];(Zn=Dt.onClick)===null||Zn===void 0||Zn.call.apply(Zn,[Dt,jn].concat(Qr))}),sn(rn,Fr,Qe,Zt,ot,_t,jt,On);var lr=jr.has("hover"),Pr=Vr.has("hover"),Tr,Rr;lr&&(Xn("onMouseEnter",!0,Xe,function(jn){fn(jn)}),Xn("onPointerEnter",!0,Xe,function(jn){fn(jn)}),Tr=function(Zn){(rn||Tn)&&Zt!==null&&Zt!==void 0&&Zt.contains(Zn.target)&&On(!0,Xe)},Ee&&(xt.onMouseMove=function(jn){var Zn;(Zn=Dt.onMouseMove)===null||Zn===void 0||Zn.call(Dt,jn)})),Pr&&(Xn("onMouseLeave",!1,Ze),Xn("onPointerLeave",!1,Ze),Rr=function(){On(!1,Ze)}),jr.has("focus")&&Xn("onFocus",!0,ct),Vr.has("focus")&&Xn("onBlur",!1,ut),jr.has("contextMenu")&&(xt.onContextMenu=function(jn){var Zn;Sn.current&&Vr.has("contextMenu")?On(!1):(fn(jn),On(!0)),jn.preventDefault();for(var yr=arguments.length,Qr=new Array(yr>1?yr-1:0),Ir=1;Ir<yr;Ir++)Qr[Ir-1]=arguments[Ir];(Zn=Dt.onContextMenu)===null||Zn===void 0||Zn.call.apply(Zn,[Dt,jn].concat(Qr))}),Ne&&(xt.className=X()(Dt.className,Ne));var Mr=(0,M.Z)((0,M.Z)({},Dt),xt),ui={},Yr=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Yr.forEach(function(jn){st[jn]&&(ui[jn]=function(){for(var Zn,yr=arguments.length,Qr=new Array(yr),Ir=0;Ir<yr;Ir++)Qr[Ir]=arguments[Ir];(Zn=Mr[jn])===null||Zn===void 0||Zn.call.apply(Zn,[Mr].concat(Qr)),st[jn].apply(st,Qr)})});var pi=y.cloneElement(ht,(0,M.Z)((0,M.Z)({},Mr),ui)),Bi={x:hr,y:ur},bi=zt?(0,M.Z)({},zt!==!0?zt:{}):null;return y.createElement(y.Fragment,null,y.createElement(ve.Z,{disabled:!rn,ref:bt,onResize:Nn},y.createElement(B,{getTriggerDOMNode:Ae},pi)),y.createElement(ye.Provider,{value:Tt},y.createElement(T,{portal:te,ref:Ln,prefixCls:O,popup:Oe,className:X()(mn,si),style:Fe,target:Qe,onMouseEnter:Tr,onMouseLeave:Rr,onPointerEnter:Tr,zIndex:we,open:rn,keepDom:Tn,fresh:at,onClick:St,mask:ot,motion:tn,maskMotion:nn,onVisibleChanged:xn,onPrepare:bn,forceRender:C,autoDestroy:dt,getPopupContainer:w,align:zr,arrow:bi,arrowPos:Bi,ready:Vn,offsetX:ir,offsetY:wr,offsetR:Lr,offsetB:An,onAlign:ei,stretch:Be,targetWidth:Or/pr,targetHeight:sr/Zr})))});return ge}var it=Xt(Te.Z)},1751:function(){"use strict"},97267:function(Qt,et,p){"use strict";var M=p(59301),Y=p(93314),ce=p(3113),Te=Object.defineProperty,j=Object.defineProperties,X=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,A=(y,b,k)=>b in y?Te(y,b,{enumerable:!0,configurable:!0,writable:!0,value:k}):y[b]=k,L=(y,b)=>{for(var k in b||(b={}))_e.call(b,k)&&A(y,k,b[k]);if(ve)for(var k of ve(b))a.call(b,k)&&A(y,k,b[k]);return y},v=(y,b)=>j(y,X(b));const u=({img:y,buttonProps:b={},styles:k={},customText:se,ButtonText:P,ButtonClick:N,Buttonclass:V,ButtonTwo:K,imgStyles:x,loading:T=!1})=>M.createElement("section",{className:"tc animated fadeIn",style:L(L({},{color:"#999",margin:"100px auto",visibility:T?"hidden":"visible"}),k)},M.createElement("img",{src:y||Y,style:v(L({},x),{pointerEvents:"none",userSelect:"none"})}),M.createElement("p",{className:"mt20 font14"},se||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),P&&M.createElement(ce.ZP,L({className:V,onClick:N},b),P),K&&K);et.Z=u},79646:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return V}});var M=p(59301),Y={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},ce=p(3113),Te=p(63093),j=p(48551),X=p(6848),ve=p(58130),_e=p(79124),a=p(97267),A=p(10148),L=p(63486),v=p(59301),u=Object.defineProperty,y=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,se=(K,x,T)=>x in K?u(K,x,{enumerable:!0,configurable:!0,writable:!0,value:T}):K[x]=T,P=(K,x)=>{for(var T in x||(x={}))b.call(x,T)&&se(K,T,x[T]);if(y)for(var T of y(x))k.call(x,T)&&se(K,T,x[T]);return K},N=(K,x,T)=>new Promise(($,B)=>{var fe=he=>{try{Re(T.next(he))}catch(G){B(G)}},ye=he=>{try{Re(T.throw(he))}catch(G){B(G)}},Re=he=>he.done?$(he.value):Promise.resolve(he.value).then(fe,ye);Re((T=T.apply(K,x)).next())}),V=({editOffice:K="view",data:x,theme:T,type:$,filename:B,monacoEditor:fe,className:ye,style:Re,close:he,onClose:G,hasMask:F,disabledDownload:le,onImgDimensions:D,showNodata:Q,recordInfo:H})=>{const[g,E]=(0,M.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Z,pe]=(0,M.useState)(""),[ze,Ge]=(0,M.useState)(),je=window.ENV==="build"?"/react/build":"",Ve=location.host.startsWith("localhost")?A.Z.PROXY_SERVER:A.Z.API_SERVER,pt=10*(1024*1024),nt=(0,M.useRef)();x!=null&&x.startsWith("/api")&&$!=="txt"&&(x=A.Z.API_SERVER+x);const Gt=Xt=>Xt.substring(Xt.lastIndexOf("/")+1).split(".").pop();B&&fe&&(fe.filename=B),(0,M.useEffect)(()=>{var Xt,it;const te=(it=(Xt=document.cookie)==null?void 0:Xt.replace(/\s/g,""))==null?void 0:it.split(";");te==null||te.map(ge=>{let q=ge.split("=");q[0]==="_educoder_session"&&pe(q[1])})},[]),(0,M.useEffect)(()=>{$==="office"&&(x.indexOf("bigfilescdn.")>-1||x.indexOf("bigfiles1")>-1?Ge({url:x,fileType:Gt(x),model:x.indexOf("model=edit")?"edit":"view"}):Jt())},[$,x]);const Jt=()=>N(void 0,null,function*(){console.log("data:",x);let Xt=x;x.startsWith("http")||(Xt=location.origin+Xt);let it=new URL(Xt).pathname.split("/").pop();const te=yield(0,_e.gJ)({attachment_id:it});te.url=Ve+te.url,Ge(te)}),sn=()=>{if(x.startsWith("http")||x.startsWith("blob:")){Ut();return}(0,ve.Sv)(B||"educoder",x,B)},Ut=()=>{H&&(0,L.fc)({id:H==null?void 0:H.id,watch_type:1,course_id:H==null?void 0:H.course_id}),(0,ve.Nd)(B||"educoder",decodeURIComponent(x))};return v.createElement("div",{style:P({},Re||{}),className:`${F&&Y.bgBlack} ${$?Y.wrp:"hide"}`},he&&v.createElement("div",{className:Y.close,ref:nt},!!D&&v.createElement(X.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>nt.current},v.createElement("span",{onClick:()=>{G(),D()}},v.createElement("i",{className:"icon-yulanpizhu"}))),!le&&v.createElement(X.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>nt.current},v.createElement("span",{onClick:Ut},v.createElement("i",{className:"icon-quxiaozhiding"}))),v.createElement(X.Z,{title:"\u5173\u95ED",getPopupContainer:()=>nt.current},v.createElement("span",{className:"",onClick:G},v.createElement("i",{className:"icon-guanbi1"})))),v.createElement("div",{className:`${Y[ye]} ${ye} ${Y.monaco} ${$==="txt"?"show":"hide"}`},$==="txt"&&v.createElement(v.Fragment,null,v.createElement(j.ZP,P({},fe)))),$==="audio"&&v.createElement("audio",{src:`${(x==null?void 0:x.indexOf("http://"))>-1||(x==null?void 0:x.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${x}`,autoPlay:!0}),$==="video"&&v.createElement(v.Fragment,null,(x==null?void 0:x.indexOf("http"))>-1?v.createElement("video",{controls:!0,src:`${x}`,autoPlay:!0}):v.createElement("video",{controls:!0,src:`data:video/mp4;base64,${x}`,autoPlay:!0})),$==="office"&&ze&&v.createElement("iframe",{src:`${je}/office.html?key=${ze.key}&url=${btoa(ze.url)}&callbackUrl=${Ve+(ze.callbackUrl||"")}&fileType=${ze.fileType}&title=${ze.title||""}&model=${K}&officeServer=${A.Z.ONLYOFFICE}&disabledDownload=${!!le}`}),$==="html"&&v.createElement("iframe",{src:x+"&disposition=inline"}),$==="pdf"&&v.createElement("iframe",{src:`${je}/js/pdfview/index.html?filename=${B||"educoder.pdf"}&url=${encodeURIComponent(x)}&disabledDownload=${!!le}`}),$==="image"&&v.createElement("img",{src:`${(x==null?void 0:x.indexOf("http://"))>-1||(x==null?void 0:x.indexOf("https://"))>-1?"":"data:image/png;base64,"}${x}`}),($==="other"||$==="download")&&v.createElement(v.Fragment,null,Q?v.createElement(a.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:v.createElement(ce.ZP,{icon:v.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:sn,disabled:le},"\u4E0B\u8F7D")}):v.createElement(ce.ZP,{type:"primary",size:"middle",onClick:sn,disabled:le},v.createElement(Te.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},25711:function(Qt,et,p){"use strict";p.d(et,{z:function(){return $},Z:function(){return B}});var M=p(59301),Y=p(1751),ce=p(31087),Te=p(64018),j=p(37312),X=p(10148),ve=p(58130),_e=p(15342),a=p(1012),A=p(79646),L=p(59301),u=({html:fe})=>{const ye=(0,M.useRef)(null),Re=(0,M.useRef)(null),he=`.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,M.useEffect)(()=>{const G=ye.current.attachShadow({mode:"open"});Re.current=document.createElement("div"),Re.current.className="markdown-body",Re.current.innerHTML=fe,G.appendChild(Re.current);const F=document.createElement("style");return F.textContent=he,G.appendChild(F),()=>{G.innerHTML=""}},[]),(0,M.useEffect)(()=>{Re.current&&(Re.current.innerHTML=fe)},[fe]),L.createElement("div",{ref:ye})},y=Object.defineProperty,b=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,P=(fe,ye,Re)=>ye in fe?y(fe,ye,{enumerable:!0,configurable:!0,writable:!0,value:Re}):fe[ye]=Re,N=(fe,ye)=>{for(var Re in ye||(ye={}))k.call(ye,Re)&&P(fe,Re,ye[Re]);if(b)for(var Re of b(ye))se.call(ye,Re)&&P(fe,Re,ye[Re]);return fe};const V="@\u2581\u2581@",K="@\u2581@",x=/<pre[^>]*>/g;function T(fe){let ye=document.createElement("div");return ye.innerHTML=fe,ye.childNodes.length===0?"":ye.childNodes[0].nodeValue}const $=(fe,ye)=>{fe=fe||"";const Re=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,he=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,G=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,F=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return ye?fe.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Re,(le,D,Q,H,g,E,Z)=>{const pe=D||H||E,ze=Q||g||Z||"?";return X.Z.API_SERVER+"/api/attachments/"+pe+ze+"&t="+(0,ve.Jn)(pe,Date.now())+(le.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(fe=fe.replace(F,(le,D,Q,H,g,E,Z)=>{const pe=D||H||E,ze=Q||g||Z||"?";return X.Z.API_SERVER+"/attachments/download/"+pe+ze+"&t="+(0,ve.Jn)(pe,Date.now())+(le.indexOf(")")>-1?")":"&")}).replace(Re,(le,D,Q,H,g,E,Z)=>{const pe=D||H||E,ze=Q||g||Z||"?";return X.Z.API_SERVER+"/api/attachments/"+pe+ze+"&t="+(0,ve.Jn)(pe,Date.now())+(le.indexOf(")")>-1?")":"&")}).replace(he,(le,D,Q,H,g)=>{const E=D||H,Z=Q||g||"";return'"'+X.Z.API_SERVER+"/api/attachments/"+E+Z+E+Z+"&t="+(0,ve.Jn)(E,Date.now())}).replace(G,(le,D,Q,H,g)=>{const E=D||H,Z=Q||g||"";return"("+X.Z.API_SERVER+"/files/uploads/"+E+Z+E+Z+"&t="+(0,ve.Jn)(E,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,`
`),fe)};var B=({value:fe="",className:ye,showTextOnly:Re,showLines:he,style:G={},stylesPrev:F={},highlightKeywords:le,showProgramFill:D,isProgramFill:Q,disabledFill:H=!1,programFillValue:g,onFillChange:E=ze=>{},onFillBlur:Z=()=>{},onFillFocus:pe=()=>{}})=>{let ze=String(fe);const[Ge,je]=(0,M.useState)(""),[Ve,mt]=(0,M.useState)("office"),[pt,nt]=(0,M.useState)([]),Gt=(0,M.useRef)("a"+(0,a.Z)()),Jt={},sn=(oe,de,Ce)=>{const xe=document.createElement(oe===K?"input":"textarea");xe.style.width="100%",xe.style.height=oe===K?"40px":"151px",xe.rows=5,xe.spellcheck=!1,xe.name="edu-program-fill",xe.placeholder="\u8BF7\u8F93\u5165",xe.dataset.id=de;const ke=Object.keys(Jt).length;return Jt[ke]=xe,`<span class="edu-program-fill-wrap ${oe===K?"":"show"}" style="width:${oe===K?"400px":"100%"}" title=${Ce||""}><span>${xe.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Ut(oe){return oe=oe.replace(/!\[.*?\]\(.*?\)/g,""),oe=oe.replace(/\[.*?\]\(.*?\)/g,""),oe=oe.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),oe=oe.replace(/<embed.*?>/g,""),oe=oe.replace(/<img.*?>/g,""),oe=oe.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),oe=oe.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),oe=oe.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),oe=oe.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),oe}const Xt=oe=>oe.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(de,Ce){let xe=Ce.replace(/(\n|\r)/g,"").split("}"),ke=[];return xe.map(Ie=>{Ie!=""&&ke.push(`.${Gt.current} ${Ie}`)}),`<style>${ke.join("}")}</style>`}),it=(0,M.useMemo)(()=>{try{const xe=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,ke=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ie=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Pe=/\(\/attachments\/download\//g;ze=ze.replace(Pe,"("+X.Z.API_SERVER+"/attachments/download/").replace(xe,"("+X.Z.API_SERVER+"/api/attachments/").replace(ke,'"'+X.Z.API_SERVER+"/api/attachments/").replace(Ie,'"'+X.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(xe){}if(D){let xe=-1;return ze=ze.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(ke,Ie,Pe){var Xe;return++xe,sn(ke,xe,(Xe=g==null?void 0:g[xe])==null?void 0:Xe.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Xt(ze||"")}</pre>`}let oe=Xt(ze);oe=(0,ce.ZP)(oe);const de=(0,ce.ez)();ze.match(/\[TOC\]/)&&(oe=oe.replace("<p>[TOC]</p>",(0,ce.Qv)()),(0,ce.Iy)()),oe=oe.replace(/(__special_katext_id_\d+__)/g,(xe,ke)=>{const{type:Ie,expression:Pe}=de[ke];return(0,_e.renderToString)(T(Pe)||"",{displayMode:Ie==="block",throwOnError:!1,output:"html"})}),oe=oe.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ce.AL)();const Ce=document.createElement("div");if(Ce.innerHTML=oe,Re)return Ce.innerText;if(le){const xe=le.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return z(Ce,xe),Ce.innerHTML}return setTimeout(()=>ae(),500),Ce.innerHTML},[ze,le]);(0,M.useEffect)(()=>{De.current&&De.current.querySelectorAll(["input","textarea"]).forEach(de=>{de.oninput=te,de.onblur=ge,de.onfocus=q})},[pt]),(0,M.useEffect)(()=>{var oe,de,Ce,xe,ke;if(g!=null&&g.length)try{const Ie=De.current.querySelectorAll(".edu-program-fill-score"),Pe=De.current.querySelectorAll('[name="edu-program-fill"]');for(const[Xe,rt]of Pe.entries())rt.value=((oe=g==null?void 0:g[Xe])==null?void 0:oe.value)||"",((de=g==null?void 0:g[Xe])==null?void 0:de.type)==="warning"?rt.className="program-fill-warning":((Ce=g==null?void 0:g[Xe])==null?void 0:Ce.type)==="success"?rt.className="program-fill-success":rt.className="";for(const[Xe,rt]of Ie.entries())rt.innerHTML=(xe=g==null?void 0:g[Xe])!=null&&xe.score?`${(ke=g==null?void 0:g[Xe])==null?void 0:ke.score}\u5206`:"";nt(g)}catch(Ie){console.log(Ie,"error")}},[g]);const te=oe=>{pt[oe.target.dataset.id]=pt[oe.target.dataset.id]||{},pt[oe.target.dataset.id].value=oe.target.value,nt([...pt]),E(pt,oe.target.dataset.id)},ge=oe=>{pt[oe.target.dataset.id]=pt[oe.target.dataset.id]||{},pt[oe.target.dataset.id].value=oe.target.value,nt([...pt]),Z(pt,oe.target.dataset.id)},q=oe=>{pt[oe.target.dataset.id]=pt[oe.target.dataset.id]||{},pt[oe.target.dataset.id].value=oe.target.value,nt([...pt]),pe(pt,oe.target.dataset.id)};function z(oe,de){return oe.childNodes.forEach(Ce=>{var xe;if(Ce.childNodes.length>0)z(Ce,de);else if(Ce.nodeName!=="IMG")if(Ce.innerHTML)Ce.innerHTML=(xe=Ce.innerHTML)==null?void 0:xe.replace(new RegExp(de,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const ke=document.createElement("span");ke.innerHTML=Ce.textContent.replace(new RegExp(de,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Ce.replaceWith(ke)}})}const De=(0,M.useRef)();ce.jb.WebkitLineClamp=he,he&&(G=N(N({},G),ce.jb));function O(oe){let de=oe.target;if(de.tagName.toUpperCase()==="A"){let Ce=de.getAttribute("href");if(Ce.indexOf("office")>-1)oe.preventDefault(),je(Ce),mt("office");else if(Ce.indexOf("application/pdf")>-1)oe.preventDefault(),je(Ce),mt("pdf");else if(Ce.indexOf("text/html")>-1)oe.preventDefault(),je(Ce),mt("html");else if(Ce.startsWith("#")){oe.preventDefault();let xe=document.getElementById(Ce.replace("#",""));xe&&xe.scrollIntoView(!0)}}}const ae=()=>{var oe;const de=(oe=De.current)==null?void 0:oe.querySelectorAll("video");de==null||de.forEach(Ce=>{if(Ce.oncontextmenu=()=>!1,Ce.src.indexOf(".m3u8")>-1&&!Ce.canPlayType("application/vnd.apple.mpegurl")){if(j.ZP.isSupported()){var xe=new j.ZP;xe.loadSource(Ce.src),xe.attachMedia(Ce)}}})};(0,M.useEffect)(()=>{if(De.current&&it&&it.match(x)&&window.PR.prettyPrint(),De.current)return De.current.addEventListener("click",O),()=>{var oe;(oe=De.current)==null||oe.removeEventListener("click",O),(0,ce.AL)(),(0,ce.Iy)()}},[it,De.current,O]),(0,M.useEffect)(()=>{var oe;const de=Ce=>{Ce.preventDefault(),Ce.clipboardData.setData("text",window.getSelection().toString())};return(oe=De.current)==null||oe.addEventListener("copy",de),()=>{var Ce;(Ce=De.current)==null||Ce.removeEventListener("copy",de)}},[De.current]);const J=oe=>/<style[\s\S]*?>/i.test(oe||"");return M.createElement(M.Fragment,null,Re&&M.createElement("div",{ref:De},it),!Re&&!J(it)&&M.createElement("div",{ref:De,style:N({},G),className:`${ye||""} ${H?"disabled-fill":""} markdown-body ${Gt.current}`,dangerouslySetInnerHTML:{__html:it}}),!Re&&J(it)&&M.createElement(u,{html:it}),M.createElement(A.Z,{close:!0,data:Ge,type:Ge!=null&&Ge.length?Ve:"",style:N({},F),onClose:()=>je("")}))}},48551:function(Qt,et,p){"use strict";p.d(et,{SV:function(){return De},ZP:function(){return z}});var M=p(59301),Y=p(76374);const ce={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"]},Te={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"]},j={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(`
`)}]},X={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(`
`)}]},ve={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 _e=p(86061),a=p.n(_e),A=Object.defineProperty,L=Object.defineProperties,v=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,k=(O,ae,J)=>ae in O?A(O,ae,{enumerable:!0,configurable:!0,writable:!0,value:J}):O[ae]=J,se=(O,ae)=>{for(var J in ae||(ae={}))y.call(ae,J)&&k(O,J,ae[J]);if(u)for(var J of u(ae))b.call(ae,J)&&k(O,J,ae[J]);return O},P=(O,ae)=>L(O,v(ae)),N=(O,ae,J)=>new Promise((oe,de)=>{var Ce=Ie=>{try{ke(J.next(Ie))}catch(Pe){de(Pe)}},xe=Ie=>{try{ke(J.throw(Ie))}catch(Pe){de(Pe)}},ke=Ie=>Ie.done?oe(Ie.value):Promise.resolve(Ie.value).then(Ce,xe);ke((J=J.apply(O,ae)).next())});const V={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"]}},K=(O,ae)=>ae.map(J=>({label:J,kind:O.languages.CompletionItemKind.Keyword,insertText:J})),x=O=>Object.keys(V.tables).map(ae=>({label:ae,kind:O.languages.CompletionItemKind.Variable,insertText:ae})),T=(O,ae)=>{const J=V.tables[O];return J?J.map(oe=>({label:oe,kind:ae.languages.CompletionItemKind.Field,insertText:oe})):[]};function $(O,ae,J,oe,de){let Ce=ae.getWordUntilPosition(J),xe={startLineNumber:J.lineNumber,endLineNumber:J.lineNumber,startColumn:Ce.startColumn,endColumn:Ce.endColumn},ke=oe.map(Ie=>({label:Ie,kind:O.languages.CompletionItemKind.Keyword,insertText:Ie,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:xe}));return de.map(Ie=>{ke.push(P(se({},Ie),{range:xe}))}),ke}var B=O=>{V.languages.map(de=>(O.languages.registerDocumentFormattingEditProvider(de,{provideDocumentFormattingEdits(Ce,xe,ke){return N(this,null,function*(){const Ie=a()(Ce.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:Ce.getFullModelRange(),text:Ie}]})}}),de));const ae=j.quickKey.map(de=>({label:de.label,kind:O.languages.CompletionItemKind.Method,insertText:de.content,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet})),J=X.quickKey.map(de=>({label:de.label,kind:O.languages.CompletionItemKind.Method,insertText:de.content,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet})),oe=Te.quickKey.map(de=>({label:de.label,kind:O.languages.CompletionItemKind.Method,insertText:de.content,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet}));O.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(de,Ce){var xe=de.getWordUntilPosition(Ce),ke={startLineNumber:Ce.lineNumber,endLineNumber:Ce.lineNumber,startColumn:xe.startColumn,endColumn:xe.endColumn},Ie=de.getLineContent(Ce.lineNumber).substring(xe.startColumn-2,xe.endColumn);return{suggestions:[...j.keywords.map(Pe=>({label:Pe,kind:O.languages.CompletionItemKind.Function,documentation:Pe,insertText:Pe,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ke})),...j.quickKey.map(Pe=>({label:Pe.label,kind:O.languages.CompletionItemKind.Function,documentation:Pe.content,insertText:Ie.startsWith("#")?Pe.content.replace(/#/,""):Pe.content,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ke}))]}}}),O.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(de,Ce){var xe=de.getWordUntilPosition(Ce),ke={startLineNumber:Ce.lineNumber,endLineNumber:Ce.lineNumber,startColumn:xe.startColumn,endColumn:xe.endColumn};return{suggestions:[...ce.keywords.map(Ie=>({label:Ie,kind:O.languages.CompletionItemKind.Function,documentation:Ie,insertText:Ie,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ke}))]}}}),O.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(de,Ce){var xe=de.getWordUntilPosition(Ce),ke={startLineNumber:Ce.lineNumber,endLineNumber:Ce.lineNumber,startColumn:xe.startColumn,endColumn:xe.endColumn},Ie=de.getLineContent(Ce.lineNumber).substring(xe.startColumn-2,xe.endColumn);return{suggestions:[...Te.keywords.map(Pe=>({label:Pe,kind:O.languages.CompletionItemKind.Function,documentation:Pe,insertText:Pe,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ke})),...Te.quickKey.map(Pe=>({label:Pe.label,kind:O.languages.CompletionItemKind.Function,documentation:Pe.content,insertText:Ie.startsWith("#")?Pe.content.replace(/#/,""):Pe.content,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ke}))]}}}),O.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(de,Ce){var xe=de.getWordUntilPosition(Ce),ke={startLineNumber:Ce.lineNumber,endLineNumber:Ce.lineNumber,startColumn:xe.startColumn,endColumn:xe.endColumn},Ie=de.getLineContent(Ce.lineNumber).substring(xe.startColumn-2,xe.endColumn);return{suggestions:[...ve.keywords.map(Pe=>({label:Pe,kind:O.languages.CompletionItemKind.Function,documentation:Pe,insertText:Pe,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ke})),...ve.quickKey.map(Pe=>({label:Pe.label,kind:O.languages.CompletionItemKind.Function,documentation:Pe.content,insertText:Ie.startsWith("#")?Pe.content.replace(/#/,""):Pe.content,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ke}))]}}}),O.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(de,Ce){var xe=de.getWordUntilPosition(Ce),ke={startLineNumber:Ce.lineNumber,endLineNumber:Ce.lineNumber,startColumn:xe.startColumn,endColumn:xe.endColumn},Ie=de.getLineContent(Ce.lineNumber).substring(xe.startColumn-2,xe.endColumn);return{suggestions:[...X.keywords.map(Pe=>({label:Pe,kind:O.languages.CompletionItemKind.Function,documentation:Pe,insertText:Pe,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ke})),...X.quickKey.map(Pe=>({label:Pe.label,kind:O.languages.CompletionItemKind.Function,documentation:Pe.content,insertText:Ie.startsWith("#")?Pe.content.replace(/#/,""):Pe.content,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ke}))]}}})};const fe="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var ye=Object.defineProperty,Re=(O,ae,J)=>ae in O?ye(O,ae,{enumerable:!0,configurable:!0,writable:!0,value:J}):O[ae]=J,he=(O,ae,J)=>Re(O,typeof ae!="symbol"?ae+"":ae,J);const G=class Xo{constructor(ae,J,oe){this.placeholder=ae,this.editor=J,this.monaco=oe,J.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Xo.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};he(G,"ID","editor.widget.placeholderHint");var le=G,D=p(96236),Q=p(8591),H=p(6848),g=p(89392),E=p(86766),Z=p(56102),pe=Object.defineProperty,ze=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,pt=(O,ae,J)=>ae in O?pe(O,ae,{enumerable:!0,configurable:!0,writable:!0,value:J}):O[ae]=J,nt=(O,ae)=>{for(var J in ae||(ae={}))Ve.call(ae,J)&&pt(O,J,ae[J]);if(je)for(var J of je(ae))mt.call(ae,J)&&pt(O,J,ae[J]);return O},Gt=(O,ae)=>ze(O,Ge(ae)),Jt=(O,ae)=>{var J={};for(var oe in O)Ve.call(O,oe)&&ae.indexOf(oe)<0&&(J[oe]=O[oe]);if(O!=null&&je)for(var oe of je(O))ae.indexOf(oe)<0&&mt.call(O,oe)&&(J[oe]=O[oe]);return J},sn=(O,ae,J)=>new Promise((oe,de)=>{var Ce=Ie=>{try{ke(J.next(Ie))}catch(Pe){de(Pe)}},xe=Ie=>{try{ke(J.throw(Ie))}catch(Pe){de(Pe)}},ke=Ie=>Ie.done?oe(Ie.value):Promise.resolve(Ie.value).then(Ce,xe);ke((J=J.apply(O,ae)).next())});function Ut(O){return/^\d+$/.test(O)?`${O}px`:O}function Xt(){}let it=!1;const te={"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 ge(O=[]){let ae=O;if(Array.isArray(O)){for(let J=0;J<O.length;J++){let oe=te[O[J]];if(oe)return oe}return ae[0]}return te[ae]||ae}let q=null;var z=O=>{var ae=O,{width:J="100%",height:oe="100%",value:de,language:Ce="javascript",style:xe={},options:ke={},overrideServices:Ie={},theme:Pe="vs-dark",onEditBlur:Xe,isCopy:rt=!1,onSave:Ze,autoHeight:ct=!1,forbidCopy:ut=!1,onChange:ot=Xt,editorDidMount:Ot=Xt,onFocus:_t=Xt,onBreakPoint:w=Xt,breakPointValue:C=[],filename:lt="educoder.txt",errorLine:ie,errorContent:Oe="",highlightLine:mn,openBreakPoint:Fe=!1,placeholder:We=""}=ae,Je=Jt(ae,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const ue=(0,M.useRef)(),W=(0,M.useRef)({}),we=(0,M.useRef)(),Be=(0,M.useRef)(),U=(0,M.useRef)([]),at=(0,M.useRef)(!1),Ee=(0,M.useRef)(),St=(0,M.useRef)(),Pt=(0,M.useRef)(!1),[zt,on]=(0,M.useState)(!1);function It(){let Tt;return ue.current&&(Tt=new Y.Z(yt=>{for(let Kt of yt)(Kt.target.offsetHeight>0||Kt.target.offsetWidth>0)&&W.current.instance.layout()}),Tt.observe(ue.current)),Tt}function Vt(){Q.ZP.warning({content:decodeURIComponent(fe),key:"monaco-editor-tip"})}const Ue=()=>{let Tt=W.current.instance;if(de!=null&&Tt&&zt){const yt=Tt.getModel();yt&&de!==yt.getValue()&&(it=!0,yt.setValue(de),Tt.layout(),it=!1)}};(0,M.useEffect)(()=>{const Tt=E.Z.subscribe("formatDocument",yt=>{var Kt;let $t=W.current.instance;(Kt=$t==null?void 0:$t.getAction)==null||Kt.call($t,"editor.action.formatDocument").run()});return window.updateMonacoValue=yt=>{ot(yt)},Tt},[]),(0,M.useEffect)(()=>{var Tt;let yt=W.current.instance;Be.current&&clearTimeout(Be.current),Be.current=setTimeout(()=>{Ue()},500),de&&(de!=null&&de.length)&&((Tt=yt==null?void 0:yt.updateOptions)==null||Tt.call(yt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(de.split(/\r\n|\r|\n/g).length))+3,5)}))},[de,zt,W.current]),(0,M.useEffect)(()=>{if(ie&&W.current&&W.current.instance){let yt=W.current.instance;yt.changeViewZones(function(Kt){var $t=document.createElement("div");$t.style.padding="10px 20px",$t.style.width="calc(100% - 20px)",$t.className="my-error-line-wrp",$t.innerHTML=Oe,Kt.addZone({afterLineNumber:ie||11,heightInLines:3,domNode:$t})});var Tt={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}};yt.addOverlayWidget(Tt),yt.revealPositionInCenter({lineNumber:20,column:1})}},[ie,W.current,zt]);const ft=(Tt="",yt)=>{if(!Tt||Tt.trim()==="")return!0;const $t=W.current.instance.getModel().getLineTokens(yt);let Zt=!1;for(let ln=0;ln<2;ln++)$t.getStandardTokenType(ln)===1&&(Zt=!0);return Zt};(0,M.useEffect)(()=>{var Tt;const yt=(Tt=W.current)==null?void 0:Tt.instance;if(yt&&zt&&ut){const Kt=yt.onDidBlurEditorWidget(()=>{Pt.current=!1}),$t=yt.onDidFocusEditorText(()=>{Pt.current=!0});return()=>{Kt.dispose(),$t.dispose()}}},[W.current,zt,ut]),(0,M.useEffect)(()=>{var Tt;if((Tt=W.current)!=null&&Tt.instance&&zt&&Fe){let yt=W.current.instance,Kt=yt.getModel();if(!Kt)return;(()=>{var Dt;let xt=[],jt=[];const tn=Kt.getAllDecorations();for(let In of tn)In.options.className==="highlighted-line"&&(xt.push((Dt=In==null?void 0:In.range)==null?void 0:Dt.startLineNumber),jt.push(In==null?void 0:In.id));if(mn===xt[0])return;Kt.deltaDecorations(jt,[]);const nn=Kt.getLineCount();mn&&mn<=nn&&(yt.deltaDecorations([],[{range:new q.Range(mn,1,mn,Kt.getLineMaxColumn(mn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),yt.revealLineInCenter(mn))})();const Zt=(Dt=!1)=>{var xt;let jt=[],tn=[];const nn=Kt.getAllDecorations();for(let In of nn)In.options.linesDecorationsClassName==="breakpoints-select"&&(jt.push((xt=In==null?void 0:In.range)==null?void 0:xt.startLineNumber),tn.push(In==null?void 0:In.id));if(Dt)return{lines:jt,ids:tn};w(jt)},ln=Dt=>sn(void 0,null,function*(){let xt={range:new q.Range(Dt,1,Dt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Kt.deltaDecorations([],[xt]),Zt()}),Ln=Dt=>sn(void 0,null,function*(){let xt=[];const jt=yt.getLineDecorations(Dt);for(let tn of jt)tn.options.linesDecorationsClassName==="breakpoints-select"&&xt.push(tn.id);yield Kt.deltaDecorations(xt,[]),Zt()}),yn=Dt=>{let xt=yt.getLineDecorations(Dt);for(let jt of xt)if(jt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,g.isEqual)(C,Zt(!0).lines)){Kt.deltaDecorations(Zt(!0).ids,[]);const Dt=C.map(xt=>({range:new q.Range(xt,1,xt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Kt.deltaDecorations([],Dt)}const Ft=yt.onDidChangeModelContent(Dt=>{let xt=yt.getPosition();if(xt){let jt=xt.lineNumber;clearTimeout(St.current),St.current=setTimeout(()=>{ft(Kt.getLineContent(jt),jt)?Ln(jt):yn(jt)?(Ln(jt),ln(jt)):Zt()},100)}}),Qe=yt.onMouseDown(Dt=>{var xt,jt,tn;if(Dt.target.detail&&((tn=(jt=(xt=Dt.target)==null?void 0:xt.element)==null?void 0:jt.className)!=null&&tn.includes("line-numbers"))){let nn=Dt.target.position.lineNumber;if(ft(Kt.getLineContent(nn),nn))return;yn(nn)?Ln(nn):ln(nn)}}),tt=Dt=>{let xt={range:new q.Range(Dt,1,Dt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};U.current=yt.deltaDecorations(U.current,[xt])},vt=()=>{U.current=yt.deltaDecorations(U.current,[])},bt=yt.onMouseMove(Dt=>{var xt,jt,tn;if(vt(),Dt.target.detail&&((tn=(jt=(xt=Dt.target)==null?void 0:xt.element)==null?void 0:jt.className)!=null&&tn.includes("line-numbers"))){let nn=Dt.target.position.lineNumber;if(ft(Kt.getLineContent(nn),nn))return;tt(nn)}}),ht=yt.onMouseLeave(()=>{vt()});return()=>{Ft.dispose(),Qe.dispose(),bt.dispose(),ht.dispose()}}},[W.current,zt,C,mn,Fe,Ce]),(0,M.useEffect)(()=>{var Tt;(Tt=W.current)!=null&&Tt.instance&&Fe&&W.current.instance.setPosition({lineNumber:0,column:0})},[mn]);function Ct(){let Tt=W.current.instance;if(Tt){const yt=Tt.getSelection(),Kt=W.current.pastePos||{},$t=new q.Range(Kt.startLineNumber||yt.endLineNumber,Kt.startColumn||yt.endColumn,Kt.endLineNumber||yt.endLineNumber,Kt.endColumn||yt.endColumn);setTimeout(()=>{Tt.executeEdits("",[{range:$t,text:""}])},300)}}function Ne(Tt){(window.navigator.platform.match("Mac")?Tt.metaKey:Tt.ctrlKey)&&Tt.keyCode==83&&(Tt.preventDefault(),Ze())}const Ae=()=>{if(ct&&W.current.instance){const Tt=W.current.instance.getContentHeight();en(Tt<oe?oe:Tt)}else en(oe)};function st(Tt){var yt=document.createEvent("MouseEvents");yt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Tt.dispatchEvent(yt)}const dt=Tt=>{if(!Pt.current)return;const{keyCode:yt,ctrlKey:Kt,metaKey:$t,target:Zt,type:ln}=Tt;return(ln==="paste"||(yt===67||yt===86)&&($t||Kt))&&Zt.nodeName==="TEXTAREA"&&(Vt(),Tt.preventDefault()),!1};function kt(Tt,yt){var Kt=window.URL||window.webkitURL||window,$t=new Blob([yt]),Zt=document.createElementNS("http://www.w3.org/1999/xhtml","a");Zt.href=Kt.createObjectURL($t),Zt.download=Tt,st(Zt)}(0,M.useEffect)(()=>{Ae()},[Ae]),(0,M.useEffect)(()=>{ue.current&&!zt&&Promise.all([p.e(8909),p.e(1810)]).then(p.bind(p,71448)).then(Tt=>{try{q=Tt,W.current.instance=q.editor.create(ue.current,{value:de,language:ge(Ce),theme:Pe,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Ie);const yt=W.current.instance;let Zt=[...D.BH._menuItems].find(Ft=>Ft[0]._debugName=="EditorContext")[1],ln=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Ln=(Ft,Qe)=>{var tt,vt;let bt=Ft._first;do Qe.includes((vt=(tt=bt.element)==null?void 0:tt.command)==null?void 0:vt.id)&&Ft._remove(bt);while(bt=bt.next)};if(Ot(yt,q),setTimeout(()=>{Ae(),W.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{kt(lt||"educoder.txt",yt.getValue())}})},500),W.current.subscription=yt.onDidChangeModelContent(Ft=>{at.current?clearTimeout(Ee.current):(Ae(),ot(yt.getValue(),Ft)),Ee.current=setTimeout(()=>{at.current=!1},500)}),window.Monaco||B(q,ge(Ce)),ut&&(Ln(Zt,ln),ue.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",dt),window.removeEventListener("paste",dt),window.addEventListener("keydown",dt),window.addEventListener("paste",dt)),window.Monaco=q,Xe&&yt.onDidBlurEditorWidget(()=>{Xe(yt.getValue())}),_t&&yt.onDidFocusEditorText(()=>{_t(yt.getValue())}),ut)try{yt.onDidPaste(Ft=>{const Qe=yt.getSelection(),tt=W.current.pastePos||{},vt=new q.Range(tt.startLineNumber||Qe.endLineNumber,tt.startColumn||Qe.endColumn,tt.endLineNumber||Qe.endLineNumber,tt.endColumn||Qe.endColumn);yt.executeEdits("",[{range:Ft.range,text:""}])})}catch(Ft){}let yn=It();return We&&typeof We=="string"&&new le(We,yt,q),on(!0),()=>{const Ft=W.current.instance;Ft.dispose();const Qe=Ft.getModel();Qe&&Qe.dispose(),W.current.subscription&&W.current.subscription.dispose(),yn.unobserve(ue.current)}}catch(yt){}})},[]),(0,M.useEffect)(()=>{if(W.current.instance&&zt)return document.addEventListener("keydown",Ne,!1),()=>{document.removeEventListener("keydown",Ne)}},[Ze,zt]),(0,M.useEffect)(()=>{let Tt=W.current.instance;if(Tt&&zt){let yt=ge(Ce);q.editor.setModelLanguage(Tt.getModel(),yt)}},[Ce,zt]),(0,M.useEffect)(()=>{W.current.instance&&zt&&q.editor.setTheme(Pe)},[Pe,zt]),(0,M.useEffect)(()=>{let Tt=W.current.instance;we.current=ke,Tt&&zt&&(Tt.updateOptions(nt({},ke)),setTimeout(()=>{Tt.getModel().updateOptions(nt({},ke))},200))},[JSON.stringify(ke),zt]),(0,M.useEffect)(()=>{let Tt=W.current.instance;Tt&&zt&&Tt.layout()},[J,oe,zt]);const[Lt,Bt]=(0,M.useState)(Ut(J)),[Nt,en]=(0,M.useState)(Ut(oe)),pn=Gt(nt({},xe),{width:Lt,height:Nt,position:"relative"});return M.createElement("div",{className:"my-monaco-editor",ref:ue,style:pn},rt&&M.createElement(Z.CopyToClipboard,{text:de,onCopy:()=>Q.ZP.success("\u590D\u5236\u6210\u529F")},M.createElement(H.Z,{title:"\u590D\u5236\u4EE3\u7801"},M.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},M.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function De({width:O="100%",height:ae="100%",original:J,modified:oe,language:de,options:Ce={}}){const xe=(0,M.useRef)(),[ke,Ie]=(0,M.useState)(null);function Pe(ct){let ut;return xe.current&&(ut=new Y.Z(ot=>{for(let Ot of ot)(Ot.target.offsetHeight>0||Ot.target.offsetWidth>0)&&ct.layout()}),ut.observe(xe.current)),ut}(0,M.useEffect)(()=>(xe.current&&Promise.all([p.e(8909),p.e(9404)]).then(p.bind(p,2550)).then(ct=>{q=ct;const ut=q.editor.createDiffEditor(xe.current,Gt(nt({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},Ce),{wordWrap:!0}));Ie(ut);let ot=Pe(ut);return()=>{ut.dispose();const Ot=ut.getModel();Ot&&Ot.dispose(),ot.unobserve(xe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,M.useEffect)(()=>{ke&&ke.setModel({original:q.editor.createModel(J,de),modified:q.editor.createModel(oe,de)})},[J,oe,de,ke]);const Xe=Ut(O),rt=Ut(ae),Ze={width:Xe,height:rt};return M.createElement("div",{className:"my-diff-editor",ref:xe,style:Ze})}},28287:function(Qt,et,p){"use strict";p.r(et),p.d(et,{default:function(){return Ce}});var M=p(59301),Y=p(42203),ce=p(66104),Te=p(95237),j=p(43604),X=p(6848),ve=p(25711),_e=p(2119),a={flex_box_center:"flex_box_center___iOjMJ",flex_space_between:"flex_space_between___aidWN",flex_box_vertical_center:"flex_box_vertical_center___z01Y6",flex_box_center_end:"flex_box_center_end___bizdK",flex_box_column:"flex_box_column___T3eUo",info:"info___PTCcN",bar:"bar___F2ZHD"},A=p(92832),L=p(86914),v=p(78241),u=p(43418),y=p(8591),b=p(60324),k=p(98228),se=p(70635),P=Object.defineProperty,N=Object.getOwnPropertySymbols,V=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,x=(xe,ke,Ie)=>ke in xe?P(xe,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):xe[ke]=Ie,T=(xe,ke)=>{for(var Ie in ke||(ke={}))V.call(ke,Ie)&&x(xe,Ie,ke[Ie]);if(N)for(var Ie of N(ke))K.call(ke,Ie)&&x(xe,Ie,ke[Ie]);return xe},$=(xe,ke,Ie)=>new Promise((Pe,Xe)=>{var rt=ut=>{try{ct(Ie.next(ut))}catch(ot){Xe(ot)}},Ze=ut=>{try{ct(Ie.throw(ut))}catch(ot){Xe(ot)}},ct=ut=>ut.done?Pe(ut.value):Promise.resolve(ut.value).then(rt,Ze);ct((Ie=Ie.apply(xe,ke)).next())});const{TreeNode:B}=k.default,fe=({restful:xe,loading:ke,dispatch:Ie})=>{const Pe=(0,Y.useParams)(),Xe=(0,Y.useLocation)(),[rt,Ze]=(0,M.useState)(!1),[ct,ut]=(0,M.useState)(),{actionTabs:ot}=xe,[Ot]=v.default.useForm();return(0,M.useEffect)(()=>{xe.actionTabs.key=="\u65B0\u5EFA\u540C\u7EA7\u76EE\u5F55"&&Ot.resetFields()},[xe.actionTabs.key]),xe.actionTabs.key!=="\u65B0\u5EFA\u540C\u7EA7\u76EE\u5F55"?null:M.createElement(u.default,{centered:!0,title:"\u65B0\u5EFA\u76EE\u5F55",open:xe.actionTabs.key==="\u65B0\u5EFA\u540C\u7EA7\u76EE\u5F55",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",bodyStyle:{minHeight:150},confirmLoading:rt,onOk:()=>$(void 0,null,function*(){yield Ot.validateFields();const _t=Ot.getFieldValue();Ze(!0),(yield(0,se.ZP)("/api/restfuls.json",{method:"post",body:T({file_type:1},_t)})).status===0&&(y.ZP.success("\u6DFB\u52A0\u6210\u529F"),Ie({type:"restful/setActionTabs",payload:{}}),Ie({type:"restful/getRestful"})),Ze(!1)}),onCancel:()=>{Ie({type:"restful/setActionTabs",payload:{}})}},M.createElement("div",{className:"pl30 pr30"},M.createElement(v.default,{form:Ot,initialValues:{name:""}},M.createElement(v.default.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u76EE\u5F55\u540D\u79F0"}]},M.createElement(Te.Z,{className:"mt30"},M.createElement(j.Z,{flex:"80px",className:"font14"},"\u76EE\u5F55\u540D\u79F0\uFF1A"),M.createElement(j.Z,{flex:"1"},M.createElement(A.default,{placeholder:`\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26
`,maxLength:60})))))))};var ye=(0,Y.connect)(({restful:xe,loading:ke})=>({restful:xe,loading:ke}))(fe),Re=Object.defineProperty,he=Object.getOwnPropertySymbols,G=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable,le=(xe,ke,Ie)=>ke in xe?Re(xe,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):xe[ke]=Ie,D=(xe,ke)=>{for(var Ie in ke||(ke={}))G.call(ke,Ie)&&le(xe,Ie,ke[Ie]);if(he)for(var Ie of he(ke))F.call(ke,Ie)&&le(xe,Ie,ke[Ie]);return xe},Q=(xe,ke,Ie)=>new Promise((Pe,Xe)=>{var rt=ut=>{try{ct(Ie.next(ut))}catch(ot){Xe(ot)}},Ze=ut=>{try{ct(Ie.throw(ut))}catch(ot){Xe(ot)}},ct=ut=>ut.done?Pe(ut.value):Promise.resolve(ut.value).then(rt,Ze);ct((Ie=Ie.apply(xe,ke)).next())});const{TreeNode:H}=k.default,g=({restful:xe,loading:ke,dispatch:Ie})=>{const Pe=(0,Y.useParams)(),Xe=(0,Y.useLocation)(),[rt,Ze]=(0,M.useState)(!1),[ct,ut]=(0,M.useState)(),{actionTabs:ot}=xe,[Ot]=v.default.useForm();return(0,M.useEffect)(()=>{xe.actionTabs.key=="\u91CD\u547D\u540D"&&(Ot.resetFields(),Ot.setFieldsValue({name:xe.actionTabs.data.title}))},[xe.actionTabs.key]),xe.actionTabs.key!=="\u91CD\u547D\u540D"?null:M.createElement(u.default,{centered:!0,title:"\u91CD\u547D\u540D",open:xe.actionTabs.key==="\u91CD\u547D\u540D",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",bodyStyle:{minHeight:150},confirmLoading:rt,onOk:()=>Q(void 0,null,function*(){yield Ot.validateFields();const _t=Ot.getFieldValue();Ze(!0);let w=`/api/restfuls/${xe.actionTabs.data.id}.json`;(yield(0,se.ZP)(w,{method:"put",body:D({file_type:1},_t)})).status===0&&(y.ZP.success("\u4FEE\u6539\u6210\u529F"),Ie({type:"restful/setActionTabs",payload:{}}),Ie({type:"restful/getRestful"})),Ze(!1)}),onCancel:()=>{Ie({type:"restful/setActionTabs",payload:{}})}},M.createElement("div",{className:"pl30 pr30"},M.createElement(v.default,{form:Ot,initialValues:{name:""}},M.createElement(Te.Z,{className:"mt30"},M.createElement(j.Z,{flex:"80px",className:"font14"},"\u76EE\u5F55\u540D\u79F0\uFF1A"),M.createElement(j.Z,{flex:"1"},M.createElement(v.default.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u65B0\u540D\u79F0"}]},M.createElement(A.default,{placeholder:`\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26
`,maxLength:60})))))))};var E=(0,Y.connect)(({restful:xe,loading:ke})=>({restful:xe,loading:ke}))(g),Z=p(77981),pe={flex_box_center:"flex_box_center___EW6x1",flex_space_between:"flex_space_between___aSZFN",flex_box_vertical_center:"flex_box_vertical_center___MsqeW",flex_box_center_end:"flex_box_center_end___YMP0b",flex_box_column:"flex_box_column___KXrxt",tree:"tree___Zx4EL",actions:"actions___zwp8u"},ze=Object.defineProperty,Ge=Object.defineProperties,je=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,nt=(xe,ke,Ie)=>ke in xe?ze(xe,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):xe[ke]=Ie,Gt=(xe,ke)=>{for(var Ie in ke||(ke={}))mt.call(ke,Ie)&&nt(xe,Ie,ke[Ie]);if(Ve)for(var Ie of Ve(ke))pt.call(ke,Ie)&&nt(xe,Ie,ke[Ie]);return xe},Jt=(xe,ke)=>Ge(xe,je(ke)),sn=(xe,ke,Ie)=>new Promise((Pe,Xe)=>{var rt=ut=>{try{ct(Ie.next(ut))}catch(ot){Xe(ot)}},Ze=ut=>{try{ct(Ie.throw(ut))}catch(ot){Xe(ot)}},ct=ut=>ut.done?Pe(ut.value):Promise.resolve(ut.value).then(rt,Ze);ct((Ie=Ie.apply(xe,ke)).next())});const{Search:Ut}=A.default,{DirectoryTree:Xt}=L.default,it=({user:xe,globalSetting:ke,loading:Ie,dispatch:Pe,restful:Xe})=>{const rt=(0,Y.useParams)(),[Ze,ct]=(0,M.useState)(!0),[ut]=v.default.useForm(),[ot,Ot]=(0,M.useState)(""),[_t]=(0,M.useState)([{id:1,name:"\u65B0\u5EFA\u6587\u4EF6"},{id:2,name:"\u65B0\u5EFA\u540C\u7EA7\u76EE\u5F55"},{id:3,name:"\u91CD\u547D\u540D"},{id:4,name:"\u7F16\u8F91"},{id:5,name:"\u5220\u9664"}]),[w,C]=(0,M.useState)([]),[lt,ie]=(0,M.useState)([]),[Oe,mn]=(0,M.useState)(!1),[Fe,We]=(0,M.useState)([]);(0,M.useEffect)(()=>{var at,Ee,St,Pt;if((at=Xe.restful)!=null&&at.data){We([...(Ee=Xe.restful)==null?void 0:Ee.data]);let zt=0,on;if((Pt=(St=Xe.restful)==null?void 0:St.data)==null||Pt.map(It=>{var Vt;It.id==rt.id&&(zt=It.id),It.file_type==0&&!on&&(on=It.id),(Vt=It==null?void 0:It.children)==null||Vt.map(Ue=>{on||(on=Ue.id),Ue.id==rt.id&&(zt=It.id)}),!It.children&&!on&&(on=It.id)}),!rt.id&&on){Y.history.push(`/ch/rest/${on}`);return}zt&&setTimeout(()=>{C([zt]),ie([Number(rt.id||on)])},200)}},[Xe.restful]);const Je=(at,Ee)=>{Ee.node.file_type===0?Y.history.push(`/ch/rest/${at[0]}`):ie([...at]),console.log("Trigger Select",at,Ee)},ue=at=>{C(at),console.log("Trigger Expand",at)},W=at=>M.createElement("div",null,_t.map((Ee,St)=>M.createElement("p",{key:Ee.id,className:"current",onClick:()=>{switch(Ee.id){case 1:Y.history.push(`/ch/rest/edit/${at.id}/0`);break;case 2:case 3:Pe({type:"restful/setActionTabs",payload:{key:Ee.name,data:at}});break;case 4:document.location.href=`/ch/rest/edit/${at.pid||0}/${at.id}`;break;case 5:u.default.confirm({title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u5B9A\u5220\u9664\uFF1F",onOk:()=>sn(void 0,null,function*(){const Pt=yield(0,Z.E1)({id:at.id});(Pt==null?void 0:Pt.status)==0&&(y.ZP.success("\u5220\u9664\u6210\u529F"),Pe({type:"restful/getRestful"}))})});break}}},Ee.name)).filter(Ee=>!!Ee).filter(Ee=>at.pid||at.file_type==0?Ee.key>3:Ee.key!=4)),we=at=>at.map(Ee=>{var St;const Pt=Ee.title.indexOf(ot),zt=Ee.title.substr(0,Pt),on=Ee.title.substr(Pt+ot.length),It=M.createElement("span",null,zt,M.createElement("span",{className:"c-blue"},ot),on,(0,_e.ag)()&&M.createElement(b.Z,{placement:"right",title:ot,content:()=>W(Ee),trigger:"hover"},M.createElement("span",{className:`iconfont icon-sandian ${pe.actions}`})));return ot!==""&&Pt===-1&&!((St=Ee.children)!=null&&St.length)?null:Ee.children&&Ee.file_type===1?Jt(Gt({},Ee),{title:It,key:Ee.key,children:we(Ee.children)}):Jt(Gt({},Ee),{title:It,key:Ee.key,isLeaf:!0})}).filter(Ee=>!!Ee),Be=(at,Ee)=>{let St;for(let Pt=0;Pt<Ee.length;Pt++){const zt=Ee[Pt];zt.children&&(zt.children.some(on=>on.key===at)?St=zt.key:Be(at,zt.children)&&(St=Be(at,zt.children)))}return St},U=at=>{const{value:Ee}=at.target,St=Fe.map(Pt=>{var zt;return Pt!=null&&Pt.children&&(zt=Pt==null?void 0:Pt.children.filter(on=>on.title.indexOf(Ee)>-1))!=null&&zt.length?Pt.id:null});Ot(Ee),mn(!0),console.log("expandedKeys:",St),C(St)};return console.log("loop(treeData):",we(Fe)),M.createElement("div",{className:pe.tree},M.createElement(Ut,{style:{marginBottom:8},placeholder:"\u8F93\u5165\u5173\u952E\u5B57\u68C0\u7D22",onChange:U}),M.createElement(Xt,{multiple:!0,defaultExpandAll:!0,onSelect:Je,onExpand:ue,expandedKeys:w,selectedKeys:lt,autoExpandParent:Oe,treeData:we(Fe)}),M.createElement(ye,null),M.createElement(E,null))};var te=(0,Y.connect)(({user:xe,loading:ke,globalSetting:Ie,restful:Pe})=>({user:xe,globalSetting:Ie,restful:Pe,loading:ke.models.index}))(it),ge=Object.defineProperty,q=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,O=(xe,ke,Ie)=>ke in xe?ge(xe,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):xe[ke]=Ie,ae=(xe,ke)=>{for(var Ie in ke||(ke={}))z.call(ke,Ie)&&O(xe,Ie,ke[Ie]);if(q)for(var Ie of q(ke))De.call(ke,Ie)&&O(xe,Ie,ke[Ie]);return xe},J=(xe,ke)=>{var Ie={};for(var Pe in xe)z.call(xe,Pe)&&ke.indexOf(Pe)<0&&(Ie[Pe]=xe[Pe]);if(xe!=null&&q)for(var Pe of q(xe))ke.indexOf(Pe)<0&&De.call(xe,Pe)&&(Ie[Pe]=xe[Pe]);return Ie},oe=(xe,ke,Ie)=>new Promise((Pe,Xe)=>{var rt=ut=>{try{ct(Ie.next(ut))}catch(ot){Xe(ot)}},Ze=ut=>{try{ct(Ie.throw(ut))}catch(ot){Xe(ot)}},ct=ut=>ut.done?Pe(ut.value):Promise.resolve(ut.value).then(rt,Ze);ct((Ie=Ie.apply(xe,ke)).next())});const de=xe=>{var ke=xe,{user:Ie,globalSetting:Pe,loading:Xe,dispatch:rt,restful:Ze}=ke,ct=J(ke,["user","globalSetting","loading","dispatch","restful"]),ut,ot;const Ot=(0,Y.useParams)(),[_t,w]=(0,M.useState)(!0),C=()=>oe(void 0,null,function*(){rt({type:"restful/getRestful"}),Ot.id&&rt({type:"restful/getRestfulDetail",payload:ae({},Ot)})});(0,M.useEffect)(()=>{w(!0),C()},[Ot.id]);const lt=()=>{rt({type:"restful/setActionTabs",payload:{key:"\u65B0\u5EFA\u540C\u7EA7\u76EE\u5F55"}})},ie=()=>{var Oe,mn,Fe;if((Oe=Ze.restful)!=null&&Oe.data){let We=0;return(Fe=(mn=Ze.restful)==null?void 0:mn.data)==null||Fe.map(Je=>{var ue;(ue=Je==null?void 0:Je.children)==null||ue.map(W=>{W.id==Ot.id&&(We=Je.id)}),!Je.children&&!We&&(We=Je.id)}),We}return 0};return M.createElement("section",null,M.createElement("aside",{className:"edu-container mt20"},M.createElement(ce.Z,null,M.createElement(ce.Z.Item,null,M.createElement(Y.Link,{to:"/"},"\u9996\u9875")),M.createElement(ce.Z.Item,null,M.createElement(Y.Link,{to:"/ch/rest"},"API\u6587\u6863"))),M.createElement("div",{className:"mt20"},M.createElement(Te.Z,{gutter:[20,20]},M.createElement(j.Z,{flex:"300px"},M.createElement(te,ae({},ct))),M.createElement(j.Z,{flex:"1"},M.createElement("div",{className:a.info},M.createElement("h1",{style:{fontSize:28,paddingBottom:15,borderBottom:"1px solid #eaeaea",textAlign:"center"}},(ut=Ze.restfulDetail)==null?void 0:ut.name),M.createElement(ve.Z,{value:(ot=Ze.restfulDetail)==null?void 0:ot.description}))))),(0,_e.ag)()&&M.createElement("div",{className:a.bar},M.createElement(Te.Z,null,!!ie()&&M.createElement(j.Z,null,M.createElement(X.Z,{title:"\u7F16\u8F91\u6587\u4EF6"},M.createElement(Y.Link,{to:`/ch/rest/edit/${ie()}/${Ot.id}`,className:"icon-zhongmingming current"}))),M.createElement(j.Z,null,M.createElement(X.Z,{title:"\u6DFB\u52A0\u6587\u4EF6"},M.createElement(Y.Link,{to:`/ch/rest/edit/${ie()}/0`,className:"icon-tianjiatimu current"}))),M.createElement(j.Z,null,M.createElement(X.Z,{title:"\u65B0\u5EFA\u6587\u4EF6\u5939"},M.createElement("span",{className:"icon-wenjianjia1 current",onClick:lt})))))))};var Ce=(0,Y.connect)(({user:xe,loading:ke,globalSetting:Ie,restful:Pe})=>({user:xe,globalSetting:Ie,restful:Pe,loading:ke.models.index}))(de)},31087:function(Qt,et,p){"use strict";p.d(et,{AL:function(){return K},Iy:function(){return L},Qv:function(){return y},ez:function(){return V},jb:function(){return v}});var M=p(32834),Y=p.n(M),ce=p(11690),Te=p.n(ce);let j=1;function X(fe,ye){const Re=fe.match(/^(\s+)(?:```)/);if(Re===null)return ye;const he=Re[1];return ye.split(`
`).map(G=>{const F=G.match(/^\s+/);if(F===null)return G;const[le]=F;return le.length>=he.length?G.slice(he.length):G}).join(`
`)}let ve=[],_e=["<ul>"];const a=new(Y()).Renderer,A=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function L(){ve.length=0,_e=["<ul>"]}const v={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function u(fe,ye,Re,he){if(ye>=fe.length||fe[ye].level<=Re)return ye;var G=fe[ye];he.push("<li><a href='#"+j+G.anchor+"'>"+G.text+"</a>"),ye++;var F=[];return ye=u(fe,ye,G.level,F),F.length>0&&(he.push("<ul>"),F.forEach(function(le){he.push(le)}),he.push("</ul>")),he.push("</li>"),ye=u(fe,ye,Re,he),ye}function y(){return u(ve,0,0,_e),_e.push("</ul>"),_e.join("")}const b={heading(fe){const ye=A.exec(fe);if(j+=1,ye)return{type:"heading",raw:ye[0],depth:ye[1].length,text:ye[2]}},fences(fe){const ye=this.rules.block.fences.exec(fe);if(ye){const Re=ye[0];let he=X(Re,ye[3]||"");const G=ye[2]?ye[2].trim():ye[2];if(["latex","katex","math"].indexOf(G)>=0){const F=P(),le=he;he=F,N[F]={type:"block",expression:le}}return{type:"code",raw:Re,lang:G,text:he}}}},k=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let se=0;const P=()=>`__special_katext_id_${se++}__`;let N={};function V(){return N}function K(){se=0,N={}}function x(fe){return fe=fe.replace(k,(ye,Re)=>{const he=P();return N[he]={type:"inline",expression:Re},he}),fe}const T=a.listitem;a.listitem=function(fe){return T(x(fe))};const $=a.paragraph;a.paragraph=function(fe){return $(x(fe))};const B=a.tablecell;a.tablecell=function(fe,ye){return B(x(fe),ye)},a.code=function(fe,ye,Re){const he=(ye||"").match(/\S*/)[0];return he?["latex","katex","math"].indexOf(he)>=0?`<p class='editormd-tex'>${fe}</p>`:`<pre class="prettyprint linenums"><code class="language-${ye}">${Re?fe:(0,ce.escape)(fe,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(Re?fe:(0,ce.escape)(fe,!0))+"</code></pre>"},a.heading=function(fe,ye,Re){let he=this.options.headerPrefix+Re.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ve.push({anchor:he,level:ye,text:fe}),"<h"+ye+' id="'+j+he+'">'+fe+"</h"+ye+">"},Y().setOptions({silent:!0,gfm:!0,pedantic:!1}),Y().use({tokenizer:b,renderer:a}),et.ZP=Y()},36785:function(Qt,et,p){"use strict";p.d(et,{o2:function(){return j},yT:function(){return X}});var M=p(26390),Y=p(33166);const ce=Y.i.map(ve=>`${ve}-inverse`),Te=["success","processing","error","default","warning"];function j(ve){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,M.Z)(ce),(0,M.Z)(Y.i)).includes(ve):Y.i.includes(ve)}function X(ve){return Te.includes(ve)}},77578:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return M}});const M=Y=>Y?typeof Y=="function"?Y():Y:null},79676:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return X}});var M=p(19447);function Y(ve,_e,a,A){if(A===!1)return{adjustX:!1,adjustY:!1};const L=A&&typeof A=="object"?A:{},v={};switch(ve){case"top":case"bottom":v.shiftX=_e.dropdownArrowOffset*2+a;break;case"left":case"right":v.shiftY=_e.dropdownArrowOffsetVertical*2+a;break}const u=Object.assign(Object.assign({},v),L);return u.shiftX||(u.adjustX=!0),u.shiftY||(u.adjustY=!0),u}const ce={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"]}},Te={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"]}},j=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function X(ve){const{arrowWidth:_e,autoAdjustOverflow:a,arrowPointAtCenter:A,offset:L,borderRadius:v,visibleFirst:u}=ve,y=_e/2,b={};return Object.keys(ce).forEach(k=>{const se=A&&Te[k]||ce[k],P=Object.assign(Object.assign({},se),{offset:[0,0]});switch(b[k]=P,j.has(k)&&(P.autoArrow=!1),k){case"top":case"topLeft":case"topRight":P.offset[1]=-y-L;break;case"bottom":case"bottomLeft":case"bottomRight":P.offset[1]=y+L;break;case"left":case"leftTop":case"leftBottom":P.offset[0]=-y-L;break;case"right":case"rightTop":case"rightBottom":P.offset[0]=y+L;break}const N=(0,M.fS)({contentRadius:v,limitVerticalRadius:!0});if(A)switch(k){case"topLeft":case"bottomLeft":P.offset[0]=-N.dropdownArrowOffset-y;break;case"topRight":case"bottomRight":P.offset[0]=N.dropdownArrowOffset+y;break;case"leftTop":case"rightTop":P.offset[1]=-N.dropdownArrowOffset-y;break;case"leftBottom":case"rightBottom":P.offset[1]=N.dropdownArrowOffset+y;break}P.overflow=Y(k,N,_e,a),u&&(P.htmlRegion="visibleFirst")}),b}},19080:function(Qt,et,p){"use strict";p.d(et,{F:function(){return j},Z:function(){return Te}});var M=p(92310),Y=p.n(M);const ce=null;function Te(X,ve,_e){return Y()({[`${X}-status-success`]:ve==="success",[`${X}-status-warning`]:ve==="warning",[`${X}-status-error`]:ve==="error",[`${X}-status-validating`]:ve==="validating",[`${X}-has-feedback`]:_e})}const j=(X,ve)=>ve||X},66104:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return le}});var M=p(92310),Y=p.n(M),ce=p(38298),Te=p(36994),j=p(59301),X=p(92343),ve=p(36355),_e=p(18290),a=p(91857);const A=D=>{let{children:Q}=D;const{getPrefixCls:H}=j.useContext(ve.E_),g=H("breadcrumb");return j.createElement("li",{className:`${g}-separator`,"aria-hidden":"true"},Q===""?Q:Q||"/")};A.__ANT_BREADCRUMB_SEPARATOR=!0;var L=A,v=function(D,Q){var H={};for(var g in D)Object.prototype.hasOwnProperty.call(D,g)&&Q.indexOf(g)<0&&(H[g]=D[g]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,g=Object.getOwnPropertySymbols(D);E<g.length;E++)Q.indexOf(g[E])<0&&Object.prototype.propertyIsEnumerable.call(D,g[E])&&(H[g[E]]=D[g[E]]);return H};function u(D,Q){if(D.title===void 0||D.title===null)return null;const H=Object.keys(Q).join("|");return typeof D.title=="object"?D.title:String(D.title).replace(new RegExp(`:(${H})`,"g"),(g,E)=>Q[E]||g)}function y(D,Q,H,g){if(H==null)return null;const{className:E,onClick:Z}=Q,pe=v(Q,["className","onClick"]),ze=Object.assign(Object.assign({},(0,Te.Z)(pe,{data:!0,aria:!0})),{onClick:Z});return g!==void 0?j.createElement("a",Object.assign({},ze,{className:Y()(`${D}-link`,E),href:g}),H):j.createElement("span",Object.assign({},ze,{className:Y()(`${D}-link`,E)}),H)}function b(D,Q){return(g,E,Z,pe,ze)=>{if(Q)return Q(g,E,Z,pe);const Ge=u(g,E);return y(D,g,Ge,ze)}}var k=function(D,Q){var H={};for(var g in D)Object.prototype.hasOwnProperty.call(D,g)&&Q.indexOf(g)<0&&(H[g]=D[g]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,g=Object.getOwnPropertySymbols(D);E<g.length;E++)Q.indexOf(g[E])<0&&Object.prototype.propertyIsEnumerable.call(D,g[E])&&(H[g[E]]=D[g[E]]);return H};const se=D=>{const{prefixCls:Q,separator:H="/",children:g,menu:E,overlay:Z,dropdownProps:pe,href:ze}=D,je=(Ve=>{if(E||Z){const mt=Object.assign({},pe);if(E){const pt=E||{},{items:nt}=pt,Gt=k(pt,["items"]);mt.menu=Object.assign(Object.assign({},Gt),{items:nt==null?void 0:nt.map((Jt,sn)=>{var{key:Ut,title:Xt,label:it,path:te}=Jt,ge=k(Jt,["key","title","label","path"]);let q=it!=null?it:Xt;return te&&(q=j.createElement("a",{href:`${ze}${te}`},q)),Object.assign(Object.assign({},ge),{key:Ut!=null?Ut:sn,label:q})})})}else Z&&(mt.overlay=Z);return j.createElement(a.Z,Object.assign({placement:"bottom"},mt),j.createElement("span",{className:`${Q}-overlay-link`},Ve,j.createElement(_e.Z,null)))}return Ve})(g);return je!=null?j.createElement(j.Fragment,null,j.createElement("li",null,je),H&&j.createElement(L,null,H)):null},P=D=>{const{prefixCls:Q,children:H,href:g}=D,E=k(D,["prefixCls","children","href"]),{getPrefixCls:Z}=j.useContext(ve.E_),pe=Z("breadcrumb",Q);return j.createElement(se,Object.assign({},E,{prefixCls:pe}),y(pe,E,H,g))};P.__ANT_BREADCRUMB_ITEM=!0;var N=P,V=p(17313),K=p(83116),x=p(37613);const T=D=>{const{componentCls:Q,iconCls:H}=D;return{[Q]:Object.assign(Object.assign({},(0,V.Wf)(D)),{color:D.itemColor,fontSize:D.fontSize,[H]:{fontSize:D.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:D.linkColor,transition:`color ${D.motionDurationMid}`,padding:`0 ${D.paddingXXS}px`,borderRadius:D.borderRadiusSM,height:D.lineHeight*D.fontSize,display:"inline-block",marginInline:-D.marginXXS,"&:hover":{color:D.linkHoverColor,backgroundColor:D.colorBgTextHover}},(0,V.Qy)(D)),"li:last-child":{color:D.lastItemColor},[`${Q}-separator`]:{marginInline:D.separatorMargin,color:D.separatorColor},[`${Q}-link`]:{[`
> ${H} + span,
> ${H} + a
`]:{marginInlineStart:D.marginXXS}},[`${Q}-overlay-link`]:{borderRadius:D.borderRadiusSM,height:D.lineHeight*D.fontSize,display:"inline-block",padding:`0 ${D.paddingXXS}px`,marginInline:-D.marginXXS,[`> ${H}`]:{marginInlineStart:D.marginXXS,fontSize:D.fontSizeIcon},"&:hover":{color:D.linkHoverColor,backgroundColor:D.colorBgTextHover,a:{color:D.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${D.componentCls}-rtl`]:{direction:"rtl"}})}};var $=(0,K.Z)("Breadcrumb",D=>{const Q=(0,x.TS)(D,{});return[T(Q)]},D=>({itemColor:D.colorTextDescription,lastItemColor:D.colorText,iconFontSize:D.fontSize,linkColor:D.colorTextDescription,linkHoverColor:D.colorText,separatorColor:D.colorTextDescription,separatorMargin:D.marginXS})),B=function(D,Q){var H={};for(var g in D)Object.prototype.hasOwnProperty.call(D,g)&&Q.indexOf(g)<0&&(H[g]=D[g]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,g=Object.getOwnPropertySymbols(D);E<g.length;E++)Q.indexOf(g[E])<0&&Object.prototype.propertyIsEnumerable.call(D,g[E])&&(H[g[E]]=D[g[E]]);return H};function fe(D){const{breadcrumbName:Q,children:H}=D,g=B(D,["breadcrumbName","children"]),E=Object.assign({title:Q},g);return H&&(E.menu={items:H.map(Z=>{var{breadcrumbName:pe}=Z,ze=B(Z,["breadcrumbName"]);return Object.assign(Object.assign({},ze),{title:pe})})}),E}function ye(D,Q){return(0,j.useMemo)(()=>D||(Q?Q.map(fe):null),[D,Q])}var Re=function(D,Q){var H={};for(var g in D)Object.prototype.hasOwnProperty.call(D,g)&&Q.indexOf(g)<0&&(H[g]=D[g]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,g=Object.getOwnPropertySymbols(D);E<g.length;E++)Q.indexOf(g[E])<0&&Object.prototype.propertyIsEnumerable.call(D,g[E])&&(H[g[E]]=D[g[E]]);return H};const he=(D,Q)=>{if(Q===void 0)return Q;let H=(Q||"").replace(/^\//,"");return Object.keys(D).forEach(g=>{H=H.replace(`:${g}`,D[g])}),H},G=D=>{const{prefixCls:Q,separator:H="/",style:g,className:E,rootClassName:Z,routes:pe,items:ze,children:Ge,itemRender:je,params:Ve={}}=D,mt=Re(D,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:pt,direction:nt,breadcrumb:Gt}=j.useContext(ve.E_);let Jt;const sn=pt("breadcrumb",Q),[Ut,Xt]=$(sn),it=ye(ze,pe),te=b(sn,je);if(it&&it.length>0){const z=[],De=ze||pe;Jt=it.map((O,ae)=>{const{path:J,key:oe,type:de,menu:Ce,overlay:xe,onClick:ke,className:Ie,separator:Pe,dropdownProps:Xe}=O,rt=he(Ve,J);rt!==void 0&&z.push(rt);const Ze=oe!=null?oe:ae;if(de==="separator")return j.createElement(L,{key:Ze},Pe);const ct={},ut=ae===it.length-1;Ce?ct.menu=Ce:xe&&(ct.overlay=xe);let{href:ot}=O;return z.length&&rt!==void 0&&(ot=`#/${z.join("/")}`),j.createElement(se,Object.assign({key:Ze},ct,(0,Te.Z)(O,{data:!0,aria:!0}),{className:Ie,dropdownProps:Xe,href:ot,separator:ut?"":H,onClick:ke,prefixCls:sn}),te(O,Ve,De,z,ot))})}else if(Ge){const z=(0,ce.Z)(Ge).length;Jt=(0,ce.Z)(Ge).map((De,O)=>{if(!De)return De;const ae=O===z-1;return(0,X.Tm)(De,{separator:ae?"":H,key:O})})}const ge=Y()(sn,Gt==null?void 0:Gt.className,{[`${sn}-rtl`]:nt==="rtl"},E,Z,Xt),q=Object.assign(Object.assign({},Gt==null?void 0:Gt.style),g);return Ut(j.createElement("nav",Object.assign({className:ge,style:q},mt),j.createElement("ol",null,Jt)))};G.Item=N,G.Separator=L;var F=G,le=F},98447:function(Qt,et,p){"use strict";p.d(et,{C2:function(){return j}});var M=p(17313),Y=p(37613),ce=p(83116);const Te=X=>{const{checkboxCls:ve}=X,_e=`${ve}-wrapper`;return[{[`${ve}-group`]:Object.assign(Object.assign({},(0,M.Wf)(X)),{display:"inline-flex",flexWrap:"wrap",columnGap:X.marginXS,[`> ${X.antCls}-row`]:{flex:1}}),[_e]:Object.assign(Object.assign({},(0,M.Wf)(X)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${_e}`]:{marginInlineStart:0},[`&${_e}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ve]:Object.assign(Object.assign({},(0,M.Wf)(X)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:X.borderRadiusSM,alignSelf:"center",[`${ve}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ve}-inner`]:Object.assign({},(0,M.oN)(X))},[`${ve}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:X.checkboxSize,height:X.checkboxSize,direction:"ltr",backgroundColor:X.colorBgContainer,border:`${X.lineWidth}px ${X.lineType} ${X.colorBorder}`,borderRadius:X.borderRadiusSM,borderCollapse:"separate",transition:`all ${X.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:X.checkboxSize/14*5,height:X.checkboxSize/14*8,border:`${X.lineWidthBold}px solid ${X.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${X.motionDurationFast} ${X.motionEaseInBack}, opacity ${X.motionDurationFast}`}},"& + span":{paddingInlineStart:X.paddingXS,paddingInlineEnd:X.paddingXS}})},{[`
${_e}:not(${_e}-disabled),
${ve}:not(${ve}-disabled)
`]:{[`&:hover ${ve}-inner`]:{borderColor:X.colorPrimary}},[`${_e}:not(${_e}-disabled)`]:{[`&:hover ${ve}-checked:not(${ve}-disabled) ${ve}-inner`]:{backgroundColor:X.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ve}-checked:not(${ve}-disabled):after`]:{borderColor:X.colorPrimaryHover}}},{[`${ve}-checked`]:{[`${ve}-inner`]:{backgroundColor:X.colorPrimary,borderColor:X.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${X.motionDurationMid} ${X.motionEaseOutBack} ${X.motionDurationFast}`}}},[`
${_e}-checked:not(${_e}-disabled),
${ve}-checked:not(${ve}-disabled)
`]:{[`&:hover ${ve}-inner`]:{backgroundColor:X.colorPrimaryHover,borderColor:"transparent"}}},{[ve]:{"&-indeterminate":{[`${ve}-inner`]:{backgroundColor:X.colorBgContainer,borderColor:X.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:X.fontSizeLG/2,height:X.fontSizeLG/2,backgroundColor:X.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${_e}-disabled`]:{cursor:"not-allowed"},[`${ve}-disabled`]:{[`&, ${ve}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ve}-inner`]:{background:X.colorBgContainerDisabled,borderColor:X.colorBorder,"&:after":{borderColor:X.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:X.colorTextDisabled},[`&${ve}-indeterminate ${ve}-inner::after`]:{background:X.colorTextDisabled}}}]};function j(X,ve){const _e=(0,Y.TS)(ve,{checkboxCls:`.${X}`,checkboxSize:ve.controlInteractiveSize});return[Te(_e)]}et.ZP=(0,ce.Z)("Checkbox",(X,ve)=>{let{prefixCls:_e}=ve;return[j(_e,X)]})},93891:function(Qt,et,p){"use strict";var M=p(59301),Y=p(36355),ce=p(64165);const Te=j=>{const{componentName:X}=j,{getPrefixCls:ve}=(0,M.useContext)(Y.E_),_e=ve("empty");switch(X){case"Table":case"List":return M.createElement(ce.Z,{image:ce.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return M.createElement(ce.Z,{image:ce.Z.PRESENTED_IMAGE_SIMPLE,className:`${_e}-small`});default:return M.createElement(ce.Z,null)}};et.Z=Te},91857:function(Qt,et,p){"use strict";var M=p(59301),Y=p(53878),ce=p(92310),Te=p.n(ce),j=p(31561),X=p(80764),ve=p(35788),_e=p(64002),a=p(79676),A=p(53487),L=p(92343),v=p(36355),u=p(20834),y=p(40875),b=p(88088),k=p(47211);const se=null,P=x=>{const{menu:T,arrow:$,prefixCls:B,children:fe,trigger:ye,disabled:Re,dropdownRender:he,getPopupContainer:G,overlayClassName:F,rootClassName:le,open:D,onOpenChange:Q,visible:H,onVisibleChange:g,mouseEnterDelay:E=.15,mouseLeaveDelay:Z=.1,autoAdjustOverflow:pe=!0,placement:ze="",overlay:Ge,transitionName:je}=x,{getPopupContainer:Ve,getPrefixCls:mt,direction:pt}=M.useContext(v.E_),nt=M.useMemo(()=>{const Ce=mt();return je!==void 0?je:ze.includes("top")?`${Ce}-slide-down`:`${Ce}-slide-up`},[mt,ze,je]),Gt=M.useMemo(()=>ze?ze.includes("Center")?ze.slice(0,ze.indexOf("Center")):ze:pt==="rtl"?"bottomRight":"bottomLeft",[ze,pt]),Jt=mt("dropdown",B),[sn,Ut]=(0,k.Z)(Jt),[,Xt]=(0,b.Z)(),it=M.Children.only(fe),te=(0,L.Tm)(it,{className:Te()(`${Jt}-trigger`,{[`${Jt}-rtl`]:pt==="rtl"},it.props.className),disabled:Re}),ge=Re?[]:ye;let q;ge&&ge.includes("contextMenu")&&(q=!0);const[z,De]=(0,ve.Z)(!1,{value:D!=null?D:H}),O=(0,X.useEvent)(Ce=>{Q==null||Q(Ce),g==null||g(Ce),De(Ce)}),ae=Te()(F,le,Ut,{[`${Jt}-rtl`]:pt==="rtl"}),J=(0,a.Z)({arrowPointAtCenter:typeof $=="object"&&$.pointAtCenter,autoAdjustOverflow:pe,offset:Xt.marginXXS,arrowWidth:$?Xt.sizePopupArrow:0,borderRadius:Xt.borderRadius}),oe=M.useCallback(()=>{De(!1)},[]),de=()=>{let Ce;return T!=null&&T.items?Ce=M.createElement(u.default,Object.assign({},T)):typeof Ge=="function"?Ce=Ge():Ce=Ge,he&&(Ce=he(Ce)),Ce=M.Children.only(typeof Ce=="string"?M.createElement("span",null,Ce):Ce),M.createElement(y.J,{prefixCls:`${Jt}-menu`,expandIcon:M.createElement("span",{className:`${Jt}-menu-submenu-arrow`},M.createElement(Y.Z,{className:`${Jt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:oe,validator:xe=>{let{mode:ke}=xe}},Ce)};return sn(M.createElement(j.Z,Object.assign({alignPoint:q},(0,_e.Z)(x,["rootClassName"]),{mouseEnterDelay:E,mouseLeaveDelay:Z,visible:z,builtinPlacements:J,arrow:!!$,overlayClassName:ae,prefixCls:Jt,getPopupContainer:G||Ve,transitionName:nt,trigger:ge,overlay:de,placement:Gt,onVisibleChange:O}),te))};function N(x){return Object.assign(Object.assign({},x),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const V=(0,A.Z)(P,"dropdown",x=>x,N),K=x=>M.createElement(V,Object.assign({},x),M.createElement("span",null));P._InternalPanelDoNotUseOrYouWillBeFired=K,et.Z=P},47211:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return L}});var M=p(17313),Y=p(13826),ce=p(92899),Te=p(29878),j=p(19447),X=p(83116),ve=p(37613),a=v=>{const{componentCls:u,menuCls:y,colorError:b,colorTextLightSolid:k}=v,se=`${y}-item`;return{[`${u}, ${u}-menu-submenu`]:{[`${y} ${se}`]:{[`&${se}-danger:not(${se}-disabled)`]:{color:b,"&:hover":{color:k,backgroundColor:b}}}}}};const A=v=>{const{componentCls:u,menuCls:y,zIndexPopup:b,dropdownArrowDistance:k,sizePopupArrow:se,antCls:P,iconCls:N,motionDurationMid:V,dropdownPaddingVertical:K,fontSize:x,dropdownEdgeChildPadding:T,colorTextDisabled:$,fontSizeIcon:B,controlPaddingHorizontal:fe,colorBgElevated:ye}=v;return[{[u]:Object.assign(Object.assign({},(0,M.Wf)(v)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:b,display:"block","&::before":{position:"absolute",insetBlock:-k+se/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${P}-btn`]:{[`& > ${N}-down, & > ${P}-btn-icon > ${N}-down`]:{fontSize:B}},[`${u}-wrap`]:{position:"relative",[`${P}-btn > ${N}-down`]:{fontSize:B},[`${N}-down::before`]:{transition:`transform ${V}`}},[`${u}-wrap-open`]:{[`${N}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${P}-slide-down-enter${P}-slide-down-enter-active${u}-placement-bottomLeft,
&${P}-slide-down-appear${P}-slide-down-appear-active${u}-placement-bottomLeft,
&${P}-slide-down-enter${P}-slide-down-enter-active${u}-placement-bottom,
&${P}-slide-down-appear${P}-slide-down-appear-active${u}-placement-bottom,
&${P}-slide-down-enter${P}-slide-down-enter-active${u}-placement-bottomRight,
&${P}-slide-down-appear${P}-slide-down-appear-active${u}-placement-bottomRight`]:{animationName:Y.fJ},[`&${P}-slide-up-enter${P}-slide-up-enter-active${u}-placement-topLeft,
&${P}-slide-up-appear${P}-slide-up-appear-active${u}-placement-topLeft,
&${P}-slide-up-enter${P}-slide-up-enter-active${u}-placement-top,
&${P}-slide-up-appear${P}-slide-up-appear-active${u}-placement-top,
&${P}-slide-up-enter${P}-slide-up-enter-active${u}-placement-topRight,
&${P}-slide-up-appear${P}-slide-up-appear-active${u}-placement-topRight`]:{animationName:Y.Qt},[`&${P}-slide-down-leave${P}-slide-down-leave-active${u}-placement-bottomLeft,
&${P}-slide-down-leave${P}-slide-down-leave-active${u}-placement-bottom,
&${P}-slide-down-leave${P}-slide-down-leave-active${u}-placement-bottomRight`]:{animationName:Y.Uw},[`&${P}-slide-up-leave${P}-slide-up-leave-active${u}-placement-topLeft,
&${P}-slide-up-leave${P}-slide-up-leave-active${u}-placement-top,
&${P}-slide-up-leave${P}-slide-up-leave-active${u}-placement-topRight`]:{animationName:Y.ly}})},(0,j.ZP)(v,{colorBg:ye,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${u} ${y}`]:{position:"relative",margin:0},[`${y}-submenu-popup`]:{position:"absolute",zIndex:b,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${u}, ${u}-menu-submenu`]:{[y]:Object.assign(Object.assign({padding:T,listStyleType:"none",backgroundColor:ye,backgroundClip:"padding-box",borderRadius:v.borderRadiusLG,outline:"none",boxShadow:v.boxShadowSecondary},(0,M.Qy)(v)),{[`${y}-item-group-title`]:{padding:`${K}px ${fe}px`,color:v.colorTextDescription,transition:`all ${V}`},[`${y}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${y}-item-icon`]:{minWidth:x,marginInlineEnd:v.marginXS,fontSize:v.fontSizeSM},[`${y}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${V}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${y}-item, ${y}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${K}px ${fe}px`,color:v.colorText,fontWeight:"normal",fontSize:x,lineHeight:v.lineHeight,cursor:"pointer",transition:`all ${V}`,borderRadius:v.borderRadiusSM,"&:hover, &-active":{backgroundColor:v.controlItemBgHover}},(0,M.Qy)(v)),{"&-selected":{color:v.colorPrimary,backgroundColor:v.controlItemBgActive,"&:hover, &-active":{backgroundColor:v.controlItemBgActiveHover}},"&-disabled":{color:$,cursor:"not-allowed","&:hover":{color:$,backgroundColor:ye,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${v.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:v.colorSplit},[`${u}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:v.paddingXS,[`${u}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:v.colorTextDescription,fontSize:B,fontStyle:"normal"}}}),[`${y}-item-group-list`]:{margin:`0 ${v.marginXS}px`,padding:0,listStyle:"none"},[`${y}-submenu-title`]:{paddingInlineEnd:fe+v.fontSizeSM},[`${y}-submenu-vertical`]:{position:"relative"},[`${y}-submenu${y}-submenu-disabled ${u}-menu-submenu-title`]:{[`&, ${u}-menu-submenu-arrow-icon`]:{color:$,backgroundColor:ye,cursor:"not-allowed"}},[`${y}-submenu-selected ${u}-menu-submenu-title`]:{color:v.colorPrimary}})}},[(0,Y.oN)(v,"slide-up"),(0,Y.oN)(v,"slide-down"),(0,ce.Fm)(v,"move-up"),(0,ce.Fm)(v,"move-down"),(0,Te._y)(v,"zoom-big")]]};var L=(0,X.Z)("Dropdown",(v,u)=>{let{rootPrefixCls:y}=u;const{marginXXS:b,sizePopupArrow:k,controlHeight:se,fontSize:P,lineHeight:N,paddingXXS:V,componentCls:K,borderRadiusLG:x}=v,T=(se-P*N)/2,{dropdownArrowOffset:$}=(0,j.fS)({contentRadius:x}),B=(0,ve.TS)(v,{menuCls:`${K}-menu`,rootPrefixCls:y,dropdownArrowDistance:k/2+b,dropdownArrowOffset:$,dropdownPaddingVertical:T,dropdownEdgeChildPadding:V});return[A(B),a(B)]},v=>({zIndexPopup:v.zIndexPopupBase+50}))},64165:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return V}});var M=p(92310),Y=p.n(M),ce=p(59301),Te=p(36355),j=p(9763),X=p(64993),ve=p(88088),a=()=>{const[,K]=(0,ve.Z)(),T=new X.C(K.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return ce.createElement("svg",{style:T,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},ce.createElement("g",{fill:"none",fillRule:"evenodd"},ce.createElement("g",{transform:"translate(24 31.67)"},ce.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),ce.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"}),ce.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)"}),ce.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"}),ce.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"})),ce.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"}),ce.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},ce.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),ce.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},L=()=>{const[,K]=(0,ve.Z)(),{colorFill:x,colorFillTertiary:T,colorFillQuaternary:$,colorBgContainer:B}=K,{borderColor:fe,shadowColor:ye,contentColor:Re}=(0,ce.useMemo)(()=>({borderColor:new X.C(x).onBackground(B).toHexShortString(),shadowColor:new X.C(T).onBackground(B).toHexShortString(),contentColor:new X.C($).onBackground(B).toHexShortString()}),[x,T,$,B]);return ce.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},ce.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},ce.createElement("ellipse",{fill:ye,cx:"32",cy:"33",rx:"32",ry:"7"}),ce.createElement("g",{fillRule:"nonzero",stroke:fe},ce.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"}),ce.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:Re}))))},v=p(83116),u=p(37613);const y=K=>{const{componentCls:x,margin:T,marginXS:$,marginXL:B,fontSize:fe,lineHeight:ye}=K;return{[x]:{marginInline:$,fontSize:fe,lineHeight:ye,textAlign:"center",[`${x}-image`]:{height:K.emptyImgHeight,marginBottom:$,opacity:K.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${x}-description`]:{color:K.colorText},[`${x}-footer`]:{marginTop:T},"&-normal":{marginBlock:B,color:K.colorTextDisabled,[`${x}-description`]:{color:K.colorTextDisabled},[`${x}-image`]:{height:K.emptyImgHeightMD}},"&-small":{marginBlock:$,color:K.colorTextDisabled,[`${x}-image`]:{height:K.emptyImgHeightSM}}}}};var b=(0,v.Z)("Empty",K=>{const{componentCls:x,controlHeightLG:T}=K,$=(0,u.TS)(K,{emptyImgCls:`${x}-img`,emptyImgHeight:T*2.5,emptyImgHeightMD:T,emptyImgHeightSM:T*.875});return[y($)]}),k=function(K,x){var T={};for(var $ in K)Object.prototype.hasOwnProperty.call(K,$)&&x.indexOf($)<0&&(T[$]=K[$]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,$=Object.getOwnPropertySymbols(K);B<$.length;B++)x.indexOf($[B])<0&&Object.prototype.propertyIsEnumerable.call(K,$[B])&&(T[$[B]]=K[$[B]]);return T};const se=ce.createElement(a,null),P=ce.createElement(L,null),N=K=>{var{className:x,rootClassName:T,prefixCls:$,image:B=se,description:fe,children:ye,imageStyle:Re,style:he}=K,G=k(K,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:F,direction:le,empty:D}=ce.useContext(Te.E_),Q=F("empty",$),[H,g]=b(Q),[E]=(0,j.Z)("Empty"),Z=typeof fe!="undefined"?fe:E==null?void 0:E.description,pe=typeof Z=="string"?Z:"empty";let ze=null;return typeof B=="string"?ze=ce.createElement("img",{alt:pe,src:B}):ze=B,H(ce.createElement("div",Object.assign({className:Y()(g,Q,D==null?void 0:D.className,{[`${Q}-normal`]:B===P,[`${Q}-rtl`]:le==="rtl"},x,T),style:Object.assign(Object.assign({},D==null?void 0:D.style),he)},G),ce.createElement("div",{className:`${Q}-image`,style:Re},ze),Z&&ce.createElement("div",{className:`${Q}-description`},Z),ye&&ce.createElement("div",{className:`${Q}-footer`},ye)))};N.PRESENTED_IMAGE_DEFAULT=se,N.PRESENTED_IMAGE_SIMPLE=P;var V=N},78241:function(Qt,et,p){"use strict";p.d(et,{default:function(){return Vt}});var M=p(26390),Y=p(92310),ce=p.n(Y),Te=p(43469),j=p(59301),X=p(62892),ve=p(32441);function _e(Ue){const[ft,Ct]=j.useState(Ue);return j.useEffect(()=>{const Ne=setTimeout(()=>{Ct(Ue)},Ue.length?0:10);return()=>{clearTimeout(Ne)}},[Ue]),ft}var a=p(17313),A=p(29878),L=p(8378),v=p(37613),u=p(83116),b=Ue=>{const{componentCls:ft}=Ue,Ct=`${ft}-show-help`,Ne=`${ft}-show-help-item`;return{[Ct]:{transition:`opacity ${Ue.motionDurationSlow} ${Ue.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Ne]:{overflow:"hidden",transition:`height ${Ue.motionDurationSlow} ${Ue.motionEaseInOut},
opacity ${Ue.motionDurationSlow} ${Ue.motionEaseInOut},
transform ${Ue.motionDurationSlow} ${Ue.motionEaseInOut} !important`,[`&${Ne}-appear, &${Ne}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Ne}-leave-active`]:{transform:"translateY(-5px)"}}}}};const k=Ue=>({legend:{display:"block",width:"100%",marginBottom:Ue.marginLG,padding:0,color:Ue.colorTextDescription,fontSize:Ue.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Ue.lineWidth}px ${Ue.lineType} ${Ue.colorBorder}`},label:{fontSize:Ue.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 ${Ue.controlOutlineWidth}px ${Ue.controlOutline}`},output:{display:"block",paddingTop:15,color:Ue.colorText,fontSize:Ue.fontSize,lineHeight:Ue.lineHeight}}),se=(Ue,ft)=>{const{formItemCls:Ct}=Ue;return{[Ct]:{[`${Ct}-label > label`]:{height:ft},[`${Ct}-control-input`]:{minHeight:ft}}}},P=Ue=>{const{componentCls:ft}=Ue;return{[Ue.componentCls]:Object.assign(Object.assign(Object.assign({},(0,a.Wf)(Ue)),k(Ue)),{[`${ft}-text`]:{display:"inline-block",paddingInlineEnd:Ue.paddingSM},"&-small":Object.assign({},se(Ue,Ue.controlHeightSM)),"&-large":Object.assign({},se(Ue,Ue.controlHeightLG))})}},N=Ue=>{const{formItemCls:ft,iconCls:Ct,componentCls:Ne,rootPrefixCls:Ae,labelRequiredMarkColor:st,labelColor:dt,labelFontSize:kt,labelHeight:Lt,labelColonMarginInlineStart:Bt,labelColonMarginInlineEnd:Nt,itemMarginBottom:en}=Ue;return{[ft]:Object.assign(Object.assign({},(0,a.Wf)(Ue)),{marginBottom:en,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden.${Ae}-row`]:{display:"none"},"&-has-warning":{[`${ft}-split`]:{color:Ue.colorError}},"&-has-error":{[`${ft}-split`]:{color:Ue.colorWarning}},[`${ft}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Ue.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Lt,color:dt,fontSize:kt,[`> ${Ct}`]:{fontSize:Ue.fontSize,verticalAlign:"top"},[`&${ft}-required:not(${ft}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Ue.marginXXS,color:st,fontSize:Ue.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Ne}-hide-required-mark &`]:{display:"none"}},[`${ft}-optional`]:{display:"inline-block",marginInlineStart:Ue.marginXXS,color:Ue.colorTextDescription,[`${Ne}-hide-required-mark &`]:{display:"none"}},[`${ft}-tooltip`]:{color:Ue.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Ue.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Bt,marginInlineEnd:Nt},[`&${ft}-no-colon::after`]:{content:'"\\a0"'}}},[`${ft}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Ae}-col-'"]):not([class*="' ${Ae}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Ue.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[ft]:{"&-explain, &-extra":{clear:"both",color:Ue.colorTextDescription,fontSize:Ue.fontSize,lineHeight:Ue.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Ue.controlHeightSM,transition:`color ${Ue.motionDurationMid} ${Ue.motionEaseOut}`},"&-explain":{"&-error":{color:Ue.colorError},"&-warning":{color:Ue.colorWarning}}},[`&-with-help ${ft}-explain`]:{height:"auto",opacity:1},[`${ft}-feedback-icon`]:{fontSize:Ue.fontSize,textAlign:"center",visibility:"visible",animationName:A.kr,animationDuration:Ue.motionDurationMid,animationTimingFunction:Ue.motionEaseOutBack,pointerEvents:"none","&-success":{color:Ue.colorSuccess},"&-error":{color:Ue.colorError},"&-warning":{color:Ue.colorWarning},"&-validating":{color:Ue.colorPrimary}}})}},V=Ue=>{const{componentCls:ft,formItemCls:Ct}=Ue;return{[`${ft}-horizontal`]:{[`${Ct}-label`]:{flexGrow:0},[`${Ct}-control`]:{flex:"1 1 0",minWidth:0},[`${Ct}-label[class$='-24'], ${Ct}-label[class*='-24 ']`]:{[`& + ${Ct}-control`]:{minWidth:"unset"}}}}},K=Ue=>{const{componentCls:ft,formItemCls:Ct}=Ue;return{[`${ft}-inline`]:{display:"flex",flexWrap:"wrap",[Ct]:{flex:"none",marginInlineEnd:Ue.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Ct}-label,
> ${Ct}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Ct}-label`]:{flex:"none"},[`${ft}-text`]:{display:"inline-block"},[`${Ct}-has-feedback`]:{display:"inline-block"}}}}},x=Ue=>({padding:Ue.verticalLabelPadding,margin:Ue.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),T=Ue=>{const{componentCls:ft,formItemCls:Ct,rootPrefixCls:Ne}=Ue;return{[`${Ct} ${Ct}-label`]:x(Ue),[ft]:{[Ct]:{flexWrap:"wrap",[`${Ct}-label, ${Ct}-control`]:{[`&:not([class*=" ${Ne}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},$=Ue=>{const{componentCls:ft,formItemCls:Ct,rootPrefixCls:Ne}=Ue;return{[`${ft}-vertical`]:{[Ct]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${ft}-item-control`]:{width:"100%"}}},[`${ft}-vertical ${Ct}-label,
.${Ne}-col-24${Ct}-label,
.${Ne}-col-xl-24${Ct}-label`]:x(Ue),[`@media (max-width: ${Ue.screenXSMax}px)`]:[T(Ue),{[ft]:{[`.${Ne}-col-xs-24${Ct}-label`]:x(Ue)}}],[`@media (max-width: ${Ue.screenSMMax}px)`]:{[ft]:{[`.${Ne}-col-sm-24${Ct}-label`]:x(Ue)}},[`@media (max-width: ${Ue.screenMDMax}px)`]:{[ft]:{[`.${Ne}-col-md-24${Ct}-label`]:x(Ue)}},[`@media (max-width: ${Ue.screenLGMax}px)`]:{[ft]:{[`.${Ne}-col-lg-24${Ct}-label`]:x(Ue)}}}},B=(Ue,ft)=>(0,v.TS)(Ue,{formItemCls:`${Ue.componentCls}-item`,rootPrefixCls:ft});var fe=(0,u.Z)("Form",(Ue,ft)=>{let{rootPrefixCls:Ct}=ft;const Ne=B(Ue,Ct);return[P(Ne),N(Ne),b(Ne),V(Ne),K(Ne),$(Ne),(0,L.Z)(Ne),A.kr]},Ue=>({labelRequiredMarkColor:Ue.colorError,labelColor:Ue.colorTextHeading,labelFontSize:Ue.fontSize,labelHeight:Ue.controlHeight,labelColonMarginInlineStart:Ue.marginXXS/2,labelColonMarginInlineEnd:Ue.marginXS,itemMarginBottom:Ue.marginLG,verticalLabelPadding:`0 0 ${Ue.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const ye=[];function Re(Ue,ft,Ct){let Ne=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Ue=="string"?Ue:`${ft}-${Ne}`,error:Ue,errorStatus:Ct}}var G=Ue=>{let{help:ft,helpStatus:Ct,errors:Ne=ye,warnings:Ae=ye,className:st,fieldId:dt,onVisibleChanged:kt}=Ue;const{prefixCls:Lt}=j.useContext(ve.Rk),Bt=`${Lt}-item-explain`,[,Nt]=fe(Lt),en=(0,j.useMemo)(()=>(0,X.Z)(Lt),[Lt]),pn=_e(Ne),Tt=_e(Ae),yt=j.useMemo(()=>ft!=null?[Re(ft,"help",Ct)]:[].concat((0,M.Z)(pn.map(($t,Zt)=>Re($t,"error","error",Zt))),(0,M.Z)(Tt.map(($t,Zt)=>Re($t,"warning","warning",Zt)))),[ft,Ct,pn,Tt]),Kt={};return dt&&(Kt.id=`${dt}_help`),j.createElement(Te.default,{motionDeadline:en.motionDeadline,motionName:`${Lt}-show-help`,visible:!!yt.length,onVisibleChanged:kt},$t=>{const{className:Zt,style:ln}=$t;return j.createElement("div",Object.assign({},Kt,{className:ce()(Bt,Zt,st,Nt),style:ln,role:"alert"}),j.createElement(Te.CSSMotionList,Object.assign({keys:yt},(0,X.Z)(Lt),{motionName:`${Lt}-show-help-item`,component:!1}),Ln=>{const{key:yn,error:Ft,errorStatus:Qe,className:tt,style:vt}=Ln;return j.createElement("div",{key:yn,className:ce()(tt,{[`${Bt}-${Qe}`]:Qe}),style:vt},Ft)}))})},F=p(95013),le=p(36355),D=p(1684),Q=p(52946),H=p(19716),g=p(16722);const E=["parentNode"],Z="form_item";function pe(Ue){return Ue===void 0||Ue===!1?[]:Array.isArray(Ue)?Ue:[Ue]}function ze(Ue,ft){if(!Ue.length)return;const Ct=Ue.join("_");return ft?`${ft}_${Ct}`:E.includes(Ct)?`${Z}_${Ct}`:Ct}function Ge(Ue,ft,Ct,Ne,Ae,st){let dt=Ne;return st!==void 0?dt=st:Ct.validating?dt="validating":Ue.length?dt="error":ft.length?dt="warning":(Ct.touched||Ae&&Ct.validated)&&(dt="success"),dt}function je(Ue){return pe(Ue).join("_")}function Ve(Ue){const[ft]=(0,F.useForm)(),Ct=j.useRef({}),Ne=j.useMemo(()=>Ue!=null?Ue:Object.assign(Object.assign({},ft),{__INTERNAL__:{itemRef:Ae=>st=>{const dt=je(Ae);st?Ct.current[dt]=st:delete Ct.current[dt]}},scrollToField:function(Ae){let st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const dt=pe(Ae),kt=ze(dt,Ne.__INTERNAL__.name),Lt=kt?document.getElementById(kt):null;Lt&&(0,g.Z)(Lt,Object.assign({scrollMode:"if-needed",block:"nearest"},st))},getFieldInstance:Ae=>{const st=je(Ae);return Ct.current[st]}}),[Ue,ft]);return[Ne]}var mt=p(28726),pt=function(Ue,ft){var Ct={};for(var Ne in Ue)Object.prototype.hasOwnProperty.call(Ue,Ne)&&ft.indexOf(Ne)<0&&(Ct[Ne]=Ue[Ne]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Ne=Object.getOwnPropertySymbols(Ue);Ae<Ne.length;Ae++)ft.indexOf(Ne[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Ue,Ne[Ae])&&(Ct[Ne[Ae]]=Ue[Ne[Ae]]);return Ct};const nt=(Ue,ft)=>{const Ct=j.useContext(D.Z),{getPrefixCls:Ne,direction:Ae,form:st}=j.useContext(le.E_),{prefixCls:dt,className:kt,rootClassName:Lt,size:Bt,disabled:Nt=Ct,form:en,colon:pn,labelAlign:Tt,labelWrap:yt,labelCol:Kt,wrapperCol:$t,hideRequiredMark:Zt,layout:ln="horizontal",scrollToFirstError:Ln,requiredMark:yn,onFinishFailed:Ft,name:Qe,style:tt,feedbackIcons:vt}=Ue,bt=pt(Ue,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),ht=(0,H.Z)(Bt),Dt=j.useContext(mt.Z),xt=(0,j.useMemo)(()=>yn!==void 0?yn:st&&st.requiredMark!==void 0?st.requiredMark:!Zt,[Zt,yn,st]),jt=pn!=null?pn:st==null?void 0:st.colon,tn=Ne("form",dt),[nn,In]=fe(tn),Dn=ce()(tn,`${tn}-${ln}`,{[`${tn}-hide-required-mark`]:xt===!1,[`${tn}-rtl`]:Ae==="rtl",[`${tn}-${ht}`]:ht},In,st==null?void 0:st.className,kt,Lt),[Fn]=Ve(en),{__INTERNAL__:cn}=Fn;cn.name=Qe;const rn=(0,j.useMemo)(()=>({name:Qe,labelAlign:Tt,labelCol:Kt,labelWrap:yt,wrapperCol:$t,vertical:ln==="vertical",colon:jt,requiredMark:xt,itemRef:cn.itemRef,form:Fn,feedbackIcons:vt}),[Qe,Tt,Kt,$t,ln,jt,xt,Fn,vt]);j.useImperativeHandle(ft,()=>Fn);const $n=(Wn,Cn)=>{if(Wn){let Bn={block:"nearest"};typeof Wn=="object"&&(Bn=Wn),Fn.scrollToField(Cn,Bn)}},Sn=Wn=>{if(Ft==null||Ft(Wn),Wn.errorFields.length){const Cn=Wn.errorFields[0].name;if(Ln!==void 0){$n(Ln,Cn);return}st&&st.scrollToFirstError!==void 0&&$n(st.scrollToFirstError,Cn)}};return nn(j.createElement(D.n,{disabled:Nt},j.createElement(Q.q,{size:ht},j.createElement(ve.RV,Object.assign({},{validateMessages:Dt}),j.createElement(ve.q3.Provider,{value:rn},j.createElement(F.default,Object.assign({id:Qe},bt,{name:Qe,onFinishFailed:Sn,form:Fn,style:Object.assign(Object.assign({},st==null?void 0:st.style),tt),className:Dn})))))))};var Jt=j.forwardRef(nt),sn=p(12383),Ut=p(20475),Xt=p(92343),it=p(38298);function te(Ue){if(typeof Ue=="function")return Ue;const ft=(0,it.Z)(Ue);return ft.length<=1?ft[0]:ft}const ge=()=>{const{status:Ue,errors:ft=[],warnings:Ct=[]}=(0,j.useContext)(ve.aM);return{status:Ue,errors:ft,warnings:Ct}};ge.Context=ve.aM;var q=ge,z=p(23073);function De(Ue){const[ft,Ct]=j.useState(Ue),Ne=(0,j.useRef)(null),Ae=(0,j.useRef)([]),st=(0,j.useRef)(!1);j.useEffect(()=>(st.current=!1,()=>{st.current=!0,z.Z.cancel(Ne.current),Ne.current=null}),[]);function dt(kt){st.current||(Ne.current===null&&(Ae.current=[],Ne.current=(0,z.Z)(()=>{Ne.current=null,Ct(Lt=>{let Bt=Lt;return Ae.current.forEach(Nt=>{Bt=Nt(Bt)}),Bt})})),Ae.current.push(kt))}return[ft,dt]}function O(){const{itemRef:Ue}=j.useContext(ve.q3),ft=j.useRef({});function Ct(Ne,Ae){const st=Ae&&typeof Ae=="object"&&Ae.ref,dt=Ne.join("_");return(ft.current.name!==dt||ft.current.originRef!==st)&&(ft.current.name=dt,ft.current.originRef=st,ft.current.ref=(0,Ut.sQ)(Ue(Ne),st)),ft.current.ref}return Ct}var ae=p(48886),J=p(28800),oe=p(64002),de=p(27382),Ce=p(37028);const xe=Ue=>{const{formItemCls:ft}=Ue;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${ft}-control`]:{display:"flex"}}}};var ke=(0,u.b)(["Form","item-item"],(Ue,ft)=>{let{rootPrefixCls:Ct}=ft;const Ne=B(Ue,Ct);return[xe(Ne)]}),Pe=Ue=>{const{prefixCls:ft,status:Ct,wrapperCol:Ne,children:Ae,errors:st,warnings:dt,_internalItemRender:kt,extra:Lt,help:Bt,fieldId:Nt,marginBottom:en,onErrorVisibleChanged:pn}=Ue,Tt=`${ft}-item`,yt=j.useContext(ve.q3),Kt=Ne||yt.wrapperCol||{},$t=ce()(`${Tt}-control`,Kt.className),Zt=j.useMemo(()=>Object.assign({},yt),[yt]);delete Zt.labelCol,delete Zt.wrapperCol;const ln=j.createElement("div",{className:`${Tt}-control-input`},j.createElement("div",{className:`${Tt}-control-input-content`},Ae)),Ln=j.useMemo(()=>({prefixCls:ft,status:Ct}),[ft,Ct]),yn=en!==null||st.length||dt.length?j.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},j.createElement(ve.Rk.Provider,{value:Ln},j.createElement(G,{fieldId:Nt,errors:st,warnings:dt,help:Bt,helpStatus:Ct,className:`${Tt}-explain-connected`,onVisibleChanged:pn})),!!en&&j.createElement("div",{style:{width:0,height:en}})):null,Ft={};Nt&&(Ft.id=`${Nt}_extra`);const Qe=Lt?j.createElement("div",Object.assign({},Ft,{className:`${Tt}-extra`}),Lt):null,tt=kt&&kt.mark==="pro_table_render"&&kt.render?kt.render(Ue,{input:ln,errorList:yn,extra:Qe}):j.createElement(j.Fragment,null,ln,yn,Qe);return j.createElement(ve.q3.Provider,{value:Zt},j.createElement(Ce.Z,Object.assign({},Kt,{className:$t}),tt),j.createElement(ke,{prefixCls:ft}))},Xe=p(86902),rt=p(31724),Ze=p(9763),ct=p(6848),ut=function(Ue,ft){var Ct={};for(var Ne in Ue)Object.prototype.hasOwnProperty.call(Ue,Ne)&&ft.indexOf(Ne)<0&&(Ct[Ne]=Ue[Ne]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Ne=Object.getOwnPropertySymbols(Ue);Ae<Ne.length;Ae++)ft.indexOf(Ne[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Ue,Ne[Ae])&&(Ct[Ne[Ae]]=Ue[Ne[Ae]]);return Ct};function ot(Ue){return Ue?typeof Ue=="object"&&!j.isValidElement(Ue)?Ue:{title:Ue}:null}var _t=Ue=>{let{prefixCls:ft,label:Ct,htmlFor:Ne,labelCol:Ae,labelAlign:st,colon:dt,required:kt,requiredMark:Lt,tooltip:Bt}=Ue;var Nt;const[en]=(0,Ze.Z)("Form"),{vertical:pn,labelAlign:Tt,labelCol:yt,labelWrap:Kt,colon:$t}=j.useContext(ve.q3);if(!Ct)return null;const Zt=Ae||yt||{},ln=st||Tt,Ln=`${ft}-item-label`,yn=ce()(Ln,ln==="left"&&`${Ln}-left`,Zt.className,{[`${Ln}-wrap`]:!!Kt});let Ft=Ct;const Qe=dt===!0||$t!==!1&&dt!==!1;Qe&&!pn&&typeof Ct=="string"&&Ct.trim()!==""&&(Ft=Ct.replace(/[:|]\s*$/,""));const vt=ot(Bt);if(vt){const{icon:xt=j.createElement(Xe.Z,null)}=vt,jt=ut(vt,["icon"]),tn=j.createElement(ct.Z,Object.assign({},jt),j.cloneElement(xt,{className:`${ft}-item-tooltip`,title:""}));Ft=j.createElement(j.Fragment,null,Ft,tn)}const bt=Lt==="optional",ht=typeof Lt=="function";ht?Ft=Lt(Ft,{required:!!kt}):bt&&!kt&&(Ft=j.createElement(j.Fragment,null,Ft,j.createElement("span",{className:`${ft}-item-optional`,title:""},(en==null?void 0:en.optional)||((Nt=rt.Z.Form)===null||Nt===void 0?void 0:Nt.optional))));const Dt=ce()({[`${ft}-item-required`]:kt,[`${ft}-item-required-mark-optional`]:bt||ht,[`${ft}-item-no-colon`]:!Qe});return j.createElement(Ce.Z,Object.assign({},Zt,{className:yn}),j.createElement("label",{htmlFor:Ne,className:Dt,title:typeof Ct=="string"?Ct:""},Ft))},w=p(79999),C=p(33130),lt=p(85404),ie=p(50023);const Oe={success:w.Z,warning:lt.Z,error:C.Z,validating:ie.Z};function mn(Ue){let{children:ft,errors:Ct,warnings:Ne,hasFeedback:Ae,validateStatus:st,prefixCls:dt,meta:kt,noStyle:Lt}=Ue;const Bt=`${dt}-item`,{feedbackIcons:Nt}=j.useContext(ve.q3),en=Ge(Ct,Ne,kt,null,!!Ae,st),{isFormItemInput:pn,status:Tt}=j.useContext(ve.aM),yt=j.useMemo(()=>{var Kt;let $t;if(Ae){const Ln=Ae!==!0&&Ae.icons||Nt,yn=en&&((Kt=Ln==null?void 0:Ln({status:en,errors:Ct,warnings:Ne}))===null||Kt===void 0?void 0:Kt[en]),Ft=en&&Oe[en];$t=yn!==!1&&Ft?j.createElement("span",{className:ce()(`${Bt}-feedback-icon`,`${Bt}-feedback-icon-${en}`)},yn||j.createElement(Ft,null)):null}let Zt=!0,ln=en||"";return Lt&&(Zt=pn,ln=(en!=null?en:Tt)||""),{status:ln,errors:Ct,warnings:Ne,hasFeedback:!!Ae,feedbackIcon:$t,isFormItemInput:Zt}},[en,Ae,Lt,pn,Tt]);return j.createElement(ve.aM.Provider,{value:yt},ft)}var Fe=function(Ue,ft){var Ct={};for(var Ne in Ue)Object.prototype.hasOwnProperty.call(Ue,Ne)&&ft.indexOf(Ne)<0&&(Ct[Ne]=Ue[Ne]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Ne=Object.getOwnPropertySymbols(Ue);Ae<Ne.length;Ae++)ft.indexOf(Ne[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Ue,Ne[Ae])&&(Ct[Ne[Ae]]=Ue[Ne[Ae]]);return Ct};function We(Ue){const{prefixCls:ft,className:Ct,rootClassName:Ne,style:Ae,help:st,errors:dt,warnings:kt,validateStatus:Lt,meta:Bt,hasFeedback:Nt,hidden:en,children:pn,fieldId:Tt,required:yt,isRequired:Kt,onSubItemMetaChange:$t}=Ue,Zt=Fe(Ue,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),ln=`${ft}-item`,{requiredMark:Ln}=j.useContext(ve.q3),yn=j.useRef(null),Ft=_e(dt),Qe=_e(kt),tt=st!=null,vt=!!(tt||dt.length||kt.length),bt=!!yn.current&&(0,ae.Z)(yn.current),[ht,Dt]=j.useState(null);(0,J.Z)(()=>{if(vt&&yn.current){const In=getComputedStyle(yn.current);Dt(parseInt(In.marginBottom,10))}},[vt,bt]);const xt=In=>{In||Dt(null)},tn=function(){let In=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Dn=In?Ft:Bt.errors,Fn=In?Qe:Bt.warnings;return Ge(Dn,Fn,Bt,"",!!Nt,Lt)}(),nn=ce()(ln,Ct,Ne,{[`${ln}-with-help`]:tt||Ft.length||Qe.length,[`${ln}-has-feedback`]:tn&&Nt,[`${ln}-has-success`]:tn==="success",[`${ln}-has-warning`]:tn==="warning",[`${ln}-has-error`]:tn==="error",[`${ln}-is-validating`]:tn==="validating",[`${ln}-hidden`]:en});return j.createElement("div",{className:nn,style:Ae,ref:yn},j.createElement(de.Z,Object.assign({className:`${ln}-row`},(0,oe.Z)(Zt,["_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"])),j.createElement(_t,Object.assign({htmlFor:Tt},Ue,{requiredMark:Ln,required:yt!=null?yt:Kt,prefixCls:ft})),j.createElement(Pe,Object.assign({},Ue,Bt,{errors:Ft,warnings:Qe,prefixCls:ft,status:tn,help:st,marginBottom:ht,onErrorVisibleChanged:xt}),j.createElement(ve.qI.Provider,{value:$t},j.createElement(mn,{prefixCls:ft,meta:Bt,errors:Bt.errors,warnings:Bt.warnings,hasFeedback:Nt,validateStatus:tn},pn)))),!!ht&&j.createElement("div",{className:`${ln}-margin-offset`,style:{marginBottom:-ht}}))}const Je="__SPLIT__",ue=null,W=j.memo(Ue=>{let{children:ft}=Ue;return ft},(Ue,ft)=>Ue.value===ft.value&&Ue.update===ft.update&&Ue.childProps.length===ft.childProps.length&&Ue.childProps.every((Ct,Ne)=>Ct===ft.childProps[Ne]));function we(Ue){return Ue!=null}function Be(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function U(Ue){const{name:ft,noStyle:Ct,className:Ne,dependencies:Ae,prefixCls:st,shouldUpdate:dt,rules:kt,children:Lt,required:Bt,label:Nt,messageVariables:en,trigger:pn="onChange",validateTrigger:Tt,hidden:yt,help:Kt}=Ue,{getPrefixCls:$t}=j.useContext(le.E_),{name:Zt}=j.useContext(ve.q3),ln=te(Lt),Ln=typeof ln=="function",yn=j.useContext(ve.qI),{validateTrigger:Ft}=j.useContext(F.FieldContext),Qe=Tt!==void 0?Tt:Ft,tt=we(ft),vt=$t("form",st),[bt,ht]=fe(vt),Dt=j.useContext(F.ListContext),xt=j.useRef(),[jt,tn]=De({}),[nn,In]=(0,sn.Z)(()=>Be()),Dn=Cn=>{const Bn=Dt==null?void 0:Dt.getKey(Cn.name);if(In(Cn.destroy?Be():Cn,!0),Ct&&Kt!==!1&&yn){let zn=Cn.name;if(Cn.destroy)zn=xt.current||zn;else if(Bn!==void 0){const[On,Qn]=Bn;zn=[On].concat((0,M.Z)(Qn)),xt.current=zn}yn(Cn,zn)}},Fn=(Cn,Bn)=>{tn(zn=>{const On=Object.assign({},zn),or=[].concat((0,M.Z)(Cn.name.slice(0,-1)),(0,M.Z)(Bn)).join(Je);return Cn.destroy?delete On[or]:On[or]=Cn,On})},[cn,rn]=j.useMemo(()=>{const Cn=(0,M.Z)(nn.errors),Bn=(0,M.Z)(nn.warnings);return Object.values(jt).forEach(zn=>{Cn.push.apply(Cn,(0,M.Z)(zn.errors||[])),Bn.push.apply(Bn,(0,M.Z)(zn.warnings||[]))}),[Cn,Bn]},[jt,nn.errors,nn.warnings]),$n=O();function Sn(Cn,Bn,zn){return Ct&&!yt?j.createElement(mn,{prefixCls:vt,hasFeedback:Ue.hasFeedback,validateStatus:Ue.validateStatus,meta:nn,errors:cn,warnings:rn,noStyle:!0},Cn):j.createElement(We,Object.assign({key:"row"},Ue,{className:ce()(Ne,ht),prefixCls:vt,fieldId:Bn,isRequired:zn,errors:cn,warnings:rn,meta:nn,onSubItemMetaChange:Fn}),Cn)}if(!tt&&!Ln&&!Ae)return bt(Sn(ln));let Wn={};return typeof Nt=="string"?Wn.label=Nt:ft&&(Wn.label=String(ft)),en&&(Wn=Object.assign(Object.assign({},Wn),en)),bt(j.createElement(F.Field,Object.assign({},Ue,{messageVariables:Wn,trigger:pn,validateTrigger:Qe,onMetaChange:Dn}),(Cn,Bn,zn)=>{const On=pe(ft).length&&Bn?Bn.name:[],Qn=ze(On,Zt),or=Bt!==void 0?Bt:!!(kt&&kt.some(Ke=>{if(Ke&&typeof Ke=="object"&&Ke.required&&!Ke.warningOnly)return!0;if(typeof Ke=="function"){const un=Ke(zn);return un&&un.required&&!un.warningOnly}return!1})),Tn=Object.assign({},Cn);let qt=null;if(Array.isArray(ln)&&tt)qt=ln;else if(!(Ln&&(!(dt||Ae)||tt))){if(!(Ae&&!Ln&&!tt))if((0,Xt.l$)(ln)){const Ke=Object.assign(Object.assign({},ln.props),Tn);if(Ke.id||(Ke.id=Qn),Kt||cn.length>0||rn.length>0||Ue.extra){const Kn=[];(Kt||cn.length>0)&&Kn.push(`${Qn}_help`),Ue.extra&&Kn.push(`${Qn}_extra`),Ke["aria-describedby"]=Kn.join(" ")}cn.length>0&&(Ke["aria-invalid"]="true"),or&&(Ke["aria-required"]="true"),(0,Ut.Yr)(ln)&&(Ke.ref=$n(On,ln)),new Set([].concat((0,M.Z)(pe(pn)),(0,M.Z)(pe(Qe)))).forEach(Kn=>{Ke[Kn]=function(){for(var Gn,nr,tr,Hn,fn,dn=arguments.length,En=new Array(dn),Vn=0;Vn<dn;Vn++)En[Vn]=arguments[Vn];(tr=Tn[Kn])===null||tr===void 0||(Gn=tr).call.apply(Gn,[Tn].concat(En)),(fn=(Hn=ln.props)[Kn])===null||fn===void 0||(nr=fn).call.apply(nr,[Hn].concat(En))}});const Pn=[Ke["aria-required"],Ke["aria-invalid"],Ke["aria-describedby"]];qt=j.createElement(W,{value:Tn[Ue.valuePropName||"value"],update:ln,childProps:Pn},(0,Xt.Tm)(ln,Ke))}else Ln&&(dt||Ae)&&!tt?qt=ln(zn):qt=ln}return Sn(qt,Qn,or)}))}const at=U;at.useStatus=q;var Ee=at,St=function(Ue,ft){var Ct={};for(var Ne in Ue)Object.prototype.hasOwnProperty.call(Ue,Ne)&&ft.indexOf(Ne)<0&&(Ct[Ne]=Ue[Ne]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Ne=Object.getOwnPropertySymbols(Ue);Ae<Ne.length;Ae++)ft.indexOf(Ne[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Ue,Ne[Ae])&&(Ct[Ne[Ae]]=Ue[Ne[Ae]]);return Ct},zt=Ue=>{var{prefixCls:ft,children:Ct}=Ue,Ne=St(Ue,["prefixCls","children"]);const{getPrefixCls:Ae}=j.useContext(le.E_),st=Ae("form",ft),dt=j.useMemo(()=>({prefixCls:st,status:"error"}),[st]);return j.createElement(F.List,Object.assign({},Ne),(kt,Lt,Bt)=>j.createElement(ve.Rk.Provider,{value:dt},Ct(kt.map(Nt=>Object.assign(Object.assign({},Nt),{fieldKey:Nt.key})),Lt,{errors:Bt.errors,warnings:Bt.warnings})))};function on(){const{form:Ue}=(0,j.useContext)(ve.q3);return Ue}const It=Jt;It.Item=Ee,It.List=zt,It.ErrorList=G,It.useForm=Ve,It.useFormInstance=on,It.useWatch=F.useWatch,It.Provider=ve.RV,It.create=()=>{};var Vt=It},9432:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return N},n:function(){return se}});var M=p(33130),Y=p(92310),ce=p.n(Y),Te=p(93681),j=p(20475),X=p(59301),ve=p(19080),_e=p(36355),a=p(1684),A=p(19716),L=p(32441),v=p(33234),u=p(59412),y=p(9937);function b(V){return!!(V.prefix||V.suffix||V.allowClear)}var k=function(V,K){var x={};for(var T in V)Object.prototype.hasOwnProperty.call(V,T)&&K.indexOf(T)<0&&(x[T]=V[T]);if(V!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,T=Object.getOwnPropertySymbols(V);$<T.length;$++)K.indexOf(T[$])<0&&Object.prototype.propertyIsEnumerable.call(V,T[$])&&(x[T[$]]=V[T[$]]);return x};function se(V,K){if(!V)return;V.focus(K);const{cursor:x}=K||{};if(x){const T=V.value.length;switch(x){case"start":V.setSelectionRange(0,0);break;case"end":V.setSelectionRange(T,T);break;default:V.setSelectionRange(0,T);break}}}var N=(0,X.forwardRef)((V,K)=>{var x;const{prefixCls:T,bordered:$=!0,status:B,size:fe,disabled:ye,onBlur:Re,onFocus:he,suffix:G,allowClear:F,addonAfter:le,addonBefore:D,className:Q,style:H,styles:g,rootClassName:E,onChange:Z,classNames:pe}=V,ze=k(V,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Ge,direction:je,input:Ve}=X.useContext(_e.E_),mt=Ge("input",T),pt=(0,X.useRef)(null),[nt,Gt]=(0,y.ZP)(mt),{compactSize:Jt,compactItemClassnames:sn}=(0,v.ri)(mt,je),Ut=(0,A.Z)(ke=>{var Ie;return(Ie=fe!=null?fe:Jt)!==null&&Ie!==void 0?Ie:ke}),Xt=X.useContext(a.Z),it=ye!=null?ye:Xt,{status:te,hasFeedback:ge,feedbackIcon:q}=(0,X.useContext)(L.aM),z=(0,ve.F)(te,B),De=b(V)||!!ge,O=(0,X.useRef)(De);(0,X.useEffect)(()=>{var ke;De&&O.current,O.current=De},[De]);const ae=(0,u.Z)(pt,!0),J=ke=>{ae(),Re==null||Re(ke)},oe=ke=>{ae(),he==null||he(ke)},de=ke=>{ae(),Z==null||Z(ke)},Ce=(ge||G)&&X.createElement(X.Fragment,null,G,ge&&q);let xe;return typeof F=="object"&&(F!=null&&F.clearIcon)?xe=F:F&&(xe={clearIcon:X.createElement(M.Z,null)}),nt(X.createElement(Te.default,Object.assign({ref:(0,j.sQ)(K,pt),prefixCls:mt,autoComplete:Ve==null?void 0:Ve.autoComplete},ze,{disabled:it,onBlur:J,onFocus:oe,style:Object.assign(Object.assign({},Ve==null?void 0:Ve.style),H),styles:Object.assign(Object.assign({},Ve==null?void 0:Ve.styles),g),suffix:Ce,allowClear:xe,className:ce()(Q,E,sn,Ve==null?void 0:Ve.className),onChange:de,addonAfter:le&&X.createElement(v.BR,null,X.createElement(L.Ux,{override:!0,status:!0},le)),addonBefore:D&&X.createElement(v.BR,null,X.createElement(L.Ux,{override:!0,status:!0},D)),classNames:Object.assign(Object.assign(Object.assign({},pe),Ve==null?void 0:Ve.classNames),{input:ce()({[`${mt}-sm`]:Ut==="small",[`${mt}-lg`]:Ut==="large",[`${mt}-rtl`]:je==="rtl",[`${mt}-borderless`]:!$},!De&&(0,ve.Z)(mt,z),pe==null?void 0:pe.input,(x=Ve==null?void 0:Ve.classNames)===null||x===void 0?void 0:x.input,Gt)}),classes:{affixWrapper:ce()({[`${mt}-affix-wrapper-sm`]:Ut==="small",[`${mt}-affix-wrapper-lg`]:Ut==="large",[`${mt}-affix-wrapper-rtl`]:je==="rtl",[`${mt}-affix-wrapper-borderless`]:!$},(0,ve.Z)(`${mt}-affix-wrapper`,z,ge),Gt),wrapper:ce()({[`${mt}-group-rtl`]:je==="rtl"},Gt),group:ce()({[`${mt}-group-wrapper-sm`]:Ut==="small",[`${mt}-group-wrapper-lg`]:Ut==="large",[`${mt}-group-wrapper-rtl`]:je==="rtl",[`${mt}-group-wrapper-disabled`]:it},(0,ve.Z)(`${mt}-group-wrapper`,z,ge),Gt)}})))})},1643:function(Qt,et,p){"use strict";var M=p(33130),Y=p(92310),ce=p.n(Y),Te=p(9296),j=p(59301),X=p(19080),ve=p(36355),_e=p(1684),a=p(19716),A=p(32441),L=p(9432),v=p(9937),u=function(b,k){var se={};for(var P in b)Object.prototype.hasOwnProperty.call(b,P)&&k.indexOf(P)<0&&(se[P]=b[P]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,P=Object.getOwnPropertySymbols(b);N<P.length;N++)k.indexOf(P[N])<0&&Object.prototype.propertyIsEnumerable.call(b,P[N])&&(se[P[N]]=b[P[N]]);return se};const y=(0,j.forwardRef)((b,k)=>{const{prefixCls:se,bordered:P=!0,size:N,disabled:V,status:K,allowClear:x,showCount:T,classNames:$,rootClassName:B,className:fe}=b,ye=u(b,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Re,direction:he}=j.useContext(ve.E_),G=(0,a.Z)(N),F=j.useContext(_e.Z),le=V!=null?V:F,{status:D,hasFeedback:Q,feedbackIcon:H}=j.useContext(A.aM),g=(0,X.F)(D,K),E=j.useRef(null);j.useImperativeHandle(k,()=>{var je;return{resizableTextArea:(je=E.current)===null||je===void 0?void 0:je.resizableTextArea,focus:Ve=>{var mt,pt;(0,L.n)((pt=(mt=E.current)===null||mt===void 0?void 0:mt.resizableTextArea)===null||pt===void 0?void 0:pt.textArea,Ve)},blur:()=>{var Ve;return(Ve=E.current)===null||Ve===void 0?void 0:Ve.blur()}}});const Z=Re("input",se);let pe;typeof x=="object"&&(x!=null&&x.clearIcon)?pe=x:x&&(pe={clearIcon:j.createElement(M.Z,null)});const[ze,Ge]=(0,v.ZP)(Z);return ze(j.createElement(Te.default,Object.assign({},ye,{disabled:le,allowClear:pe,className:ce()(fe,B),classes:{affixWrapper:ce()(`${Z}-textarea-affix-wrapper`,{[`${Z}-affix-wrapper-rtl`]:he==="rtl",[`${Z}-affix-wrapper-borderless`]:!P,[`${Z}-affix-wrapper-sm`]:G==="small",[`${Z}-affix-wrapper-lg`]:G==="large",[`${Z}-textarea-show-count`]:T},(0,X.Z)(`${Z}-affix-wrapper`,g),Ge)},classNames:Object.assign(Object.assign({},$),{textarea:ce()({[`${Z}-borderless`]:!P,[`${Z}-sm`]:G==="small",[`${Z}-lg`]:G==="large"},(0,X.Z)(Z,g),Ge,$==null?void 0:$.textarea)}),prefixCls:Z,suffix:Q&&j.createElement("span",{className:`${Z}-textarea-suffix`},H),showCount:T,ref:E})))});et.Z=y},59412:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return Y}});var M=p(59301);function Y(ce,Te){const j=(0,M.useRef)([]),X=()=>{j.current.push(setTimeout(()=>{var ve,_e,a,A;!((ve=ce.current)===null||ve===void 0)&&ve.input&&((_e=ce.current)===null||_e===void 0?void 0:_e.input.getAttribute("type"))==="password"&&(!((a=ce.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((A=ce.current)===null||A===void 0||A.input.removeAttribute("value"))}))};return(0,M.useEffect)(()=>(Te&&X(),()=>j.current.forEach(ve=>{ve&&clearTimeout(ve)})),[]),X}},92832:function(Qt,et,p){"use strict";p.d(et,{default:function(){return G}});var M=p(92310),Y=p.n(M),ce=p(59301),Te=p(36355),j=p(32441),X=p(9937),_e=F=>{const{getPrefixCls:le,direction:D}=(0,ce.useContext)(Te.E_),{prefixCls:Q,className:H}=F,g=le("input-group",Q),E=le("input"),[Z,pe]=(0,X.ZP)(E),ze=Y()(g,{[`${g}-lg`]:F.size==="large",[`${g}-sm`]:F.size==="small",[`${g}-compact`]:F.compact,[`${g}-rtl`]:D==="rtl"},pe,H),Ge=(0,ce.useContext)(j.aM),je=(0,ce.useMemo)(()=>Object.assign(Object.assign({},Ge),{isFormItemInput:!1}),[Ge]);return Z(ce.createElement("span",{className:ze,style:F.style,onMouseEnter:F.onMouseEnter,onMouseLeave:F.onMouseLeave,onFocus:F.onFocus,onBlur:F.onBlur},ce.createElement(j.aM.Provider,{value:je},F.children)))},a=p(9432),A=p(61441),L=p(30631),v=p(64002),u=p(20475),y=p(59412),b=function(F,le){var D={};for(var Q in F)Object.prototype.hasOwnProperty.call(F,Q)&&le.indexOf(Q)<0&&(D[Q]=F[Q]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var H=0,Q=Object.getOwnPropertySymbols(F);H<Q.length;H++)le.indexOf(Q[H])<0&&Object.prototype.propertyIsEnumerable.call(F,Q[H])&&(D[Q[H]]=F[Q[H]]);return D};const k=F=>F?ce.createElement(L.Z,null):ce.createElement(A.Z,null),se={click:"onClick",hover:"onMouseOver"};var N=ce.forwardRef((F,le)=>{const{visibilityToggle:D=!0}=F,Q=typeof D=="object"&&D.visible!==void 0,[H,g]=(0,ce.useState)(()=>Q?D.visible:!1),E=(0,ce.useRef)(null);ce.useEffect(()=>{Q&&g(D.visible)},[Q,D]);const Z=(0,y.Z)(E),pe=()=>{const{disabled:it}=F;it||(H&&Z(),g(te=>{var ge;const q=!te;return typeof D=="object"&&((ge=D.onVisibleChange)===null||ge===void 0||ge.call(D,q)),q}))},ze=it=>{const{action:te="click",iconRender:ge=k}=F,q=se[te]||"",z=ge(H),De={[q]:pe,className:`${it}-icon`,key:"passwordIcon",onMouseDown:O=>{O.preventDefault()},onMouseUp:O=>{O.preventDefault()}};return ce.cloneElement(ce.isValidElement(z)?z:ce.createElement("span",null,z),De)},{className:Ge,prefixCls:je,inputPrefixCls:Ve,size:mt}=F,pt=b(F,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:nt}=ce.useContext(Te.E_),Gt=nt("input",Ve),Jt=nt("input-password",je),sn=D&&ze(Jt),Ut=Y()(Jt,Ge,{[`${Jt}-${mt}`]:!!mt}),Xt=Object.assign(Object.assign({},(0,v.Z)(pt,["suffix","iconRender","visibilityToggle"])),{type:H?"text":"password",className:Ut,prefixCls:Gt,suffix:sn});return mt&&(Xt.size=mt),ce.createElement(a.Z,Object.assign({ref:(0,u.sQ)(le,E)},Xt))}),V=p(21970),K=p(92343),x=p(3113),T=p(19716),$=p(33234),B=function(F,le){var D={};for(var Q in F)Object.prototype.hasOwnProperty.call(F,Q)&&le.indexOf(Q)<0&&(D[Q]=F[Q]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var H=0,Q=Object.getOwnPropertySymbols(F);H<Q.length;H++)le.indexOf(Q[H])<0&&Object.prototype.propertyIsEnumerable.call(F,Q[H])&&(D[Q[H]]=F[Q[H]]);return D},ye=ce.forwardRef((F,le)=>{const{prefixCls:D,inputPrefixCls:Q,className:H,size:g,suffix:E,enterButton:Z=!1,addonAfter:pe,loading:ze,disabled:Ge,onSearch:je,onChange:Ve,onCompositionStart:mt,onCompositionEnd:pt}=F,nt=B(F,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Gt,direction:Jt}=ce.useContext(Te.E_),sn=ce.useRef(!1),Ut=Gt("input-search",D),Xt=Gt("input",Q),{compactSize:it}=(0,$.ri)(Ut,Jt),te=(0,T.Z)(Pe=>{var Xe;return(Xe=g!=null?g:it)!==null&&Xe!==void 0?Xe:Pe}),ge=ce.useRef(null),q=Pe=>{Pe&&Pe.target&&Pe.type==="click"&&je&&je(Pe.target.value,Pe,{source:"clear"}),Ve&&Ve(Pe)},z=Pe=>{var Xe;document.activeElement===((Xe=ge.current)===null||Xe===void 0?void 0:Xe.input)&&Pe.preventDefault()},De=Pe=>{var Xe,rt;je&&je((rt=(Xe=ge.current)===null||Xe===void 0?void 0:Xe.input)===null||rt===void 0?void 0:rt.value,Pe,{source:"input"})},O=Pe=>{sn.current||ze||De(Pe)},ae=typeof Z=="boolean"?ce.createElement(V.Z,null):null,J=`${Ut}-button`;let oe;const de=Z||{},Ce=de.type&&de.type.__ANT_BUTTON===!0;Ce||de.type==="button"?oe=(0,K.Tm)(de,Object.assign({onMouseDown:z,onClick:Pe=>{var Xe,rt;(rt=(Xe=de==null?void 0:de.props)===null||Xe===void 0?void 0:Xe.onClick)===null||rt===void 0||rt.call(Xe,Pe),De(Pe)},key:"enterButton"},Ce?{className:J,size:te}:{})):oe=ce.createElement(x.ZP,{className:J,type:Z?"primary":void 0,size:te,disabled:Ge,key:"enterButton",onMouseDown:z,onClick:De,loading:ze,icon:ae},Z),pe&&(oe=[oe,(0,K.Tm)(pe,{key:"addonAfter"})]);const xe=Y()(Ut,{[`${Ut}-rtl`]:Jt==="rtl",[`${Ut}-${te}`]:!!te,[`${Ut}-with-button`]:!!Z},H),ke=Pe=>{sn.current=!0,mt==null||mt(Pe)},Ie=Pe=>{sn.current=!1,pt==null||pt(Pe)};return ce.createElement(a.Z,Object.assign({ref:(0,u.sQ)(ge,le),onPressEnter:O},nt,{size:te,onCompositionStart:ke,onCompositionEnd:Ie,prefixCls:Xt,addonAfter:oe,suffix:E,onChange:q,className:xe,disabled:Ge}))}),Re=p(1643);const he=a.Z;he.Group=_e,he.Search=ye,he.TextArea=Re.Z,he.Password=N;var G=he},9937:function(Qt,et,p){"use strict";p.d(et,{M1:function(){return ve},TM:function(){return K},Xy:function(){return _e},bi:function(){return L},e5:function(){return V},ik:function(){return v},nz:function(){return j},pU:function(){return X},s7:function(){return u},x0:function(){return A}});var M=p(17313),Y=p(74207),ce=p(37613),Te=p(83116);const j=x=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:x,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),X=x=>({borderColor:x.hoverBorderColor}),ve=x=>({borderColor:x.activeBorderColor,boxShadow:x.activeShadow,outline:0}),_e=x=>({color:x.colorTextDisabled,backgroundColor:x.colorBgContainerDisabled,borderColor:x.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},X((0,ce.TS)(x,{hoverBorderColor:x.colorBorder})))}),a=x=>{const{paddingBlockLG:T,fontSizeLG:$,lineHeightLG:B,borderRadiusLG:fe,paddingInlineLG:ye}=x;return{padding:`${T}px ${ye}px`,fontSize:$,lineHeight:B,borderRadius:fe}},A=x=>({padding:`${x.paddingBlockSM}px ${x.paddingInlineSM}px`,borderRadius:x.borderRadiusSM}),L=(x,T)=>{const{componentCls:$,colorError:B,colorWarning:fe,errorActiveShadow:ye,warningActiveShadow:Re,colorErrorBorderHover:he,colorWarningBorderHover:G}=x;return{[`&-status-error:not(${T}-disabled):not(${T}-borderless)${T}`]:{borderColor:B,"&:hover":{borderColor:he},"&:focus, &-focused":Object.assign({},ve((0,ce.TS)(x,{activeBorderColor:B,activeShadow:ye}))),[`${$}-prefix, ${$}-suffix`]:{color:B}},[`&-status-warning:not(${T}-disabled):not(${T}-borderless)${T}`]:{borderColor:fe,"&:hover":{borderColor:G},"&:focus, &-focused":Object.assign({},ve((0,ce.TS)(x,{activeBorderColor:fe,activeShadow:Re}))),[`${$}-prefix, ${$}-suffix`]:{color:fe}}}},v=x=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${x.paddingBlock}px ${x.paddingInline}px`,color:x.colorText,fontSize:x.fontSize,lineHeight:x.lineHeight,backgroundColor:x.colorBgContainer,backgroundImage:"none",borderWidth:x.lineWidth,borderStyle:x.lineType,borderColor:x.colorBorder,borderRadius:x.borderRadius,transition:`all ${x.motionDurationMid}`},j(x.colorTextPlaceholder)),{"&:hover":Object.assign({},X(x)),"&:focus, &-focused":Object.assign({},ve(x)),"&-disabled, &[disabled]":Object.assign({},_e(x)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:x.controlHeight,lineHeight:x.lineHeight,verticalAlign:"bottom",transition:`all ${x.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},a(x)),"&-sm":Object.assign({},A(x)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),u=x=>{const{componentCls:T,antCls:$}=x;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:x.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${T}, &-lg > ${T}-group-addon`]:Object.assign({},a(x)),[`&-sm ${T}, &-sm > ${T}-group-addon`]:Object.assign({},A(x)),[`&-lg ${$}-select-single ${$}-select-selector`]:{height:x.controlHeightLG},[`&-sm ${$}-select-single ${$}-select-selector`]:{height:x.controlHeightSM},[`> ${T}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${T}-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 ${x.paddingInline}px`,color:x.colorText,fontWeight:"normal",fontSize:x.fontSize,textAlign:"center",backgroundColor:x.colorFillAlter,border:`${x.lineWidth}px ${x.lineType} ${x.colorBorder}`,borderRadius:x.borderRadius,transition:`all ${x.motionDurationSlow}`,lineHeight:1,[`${$}-select`]:{margin:`-${x.paddingBlock+1}px -${x.paddingInline}px`,[`&${$}-select-single:not(${$}-select-customize-input)`]:{[`${$}-select-selector`]:{backgroundColor:"inherit",border:`${x.lineWidth}px ${x.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${$}-select-selector`]:{color:x.colorPrimary}}},[`${$}-cascader-picker`]:{margin:`-9px -${x.paddingInline}px`,backgroundColor:"transparent",[`${$}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${T}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${T}-search-with-button &`]:{zIndex:0}}},[`> ${T}:first-child, ${T}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${$}-select ${$}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${T}-affix-wrapper`]:{[`&:not(:first-child) ${T}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${T}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${T}:last-child, ${T}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${$}-select ${$}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${T}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${T}-search &`]:{borderStartStartRadius:x.borderRadius,borderEndStartRadius:x.borderRadius}},[`&:not(:first-child), ${T}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${T}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,M.dF)()),{[`${T}-group-addon, ${T}-group-wrap, > ${T}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:x.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
& > ${T}-affix-wrapper,
& > ${T}-number-affix-wrapper,
& > ${$}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-x.lineWidth,borderInlineEndWidth:x.lineWidth},[`${T}`]:{float:"none"},[`& > ${$}-select > ${$}-select-selector,
& > ${$}-select-auto-complete ${T},
& > ${$}-cascader-picker ${T},
& > ${T}-group-wrapper ${T}`]:{borderInlineEndWidth:x.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${$}-select-focused`]:{zIndex:1},[`& > ${$}-select > ${$}-select-arrow`]:{zIndex:1},[`& > *:first-child,
& > ${$}-select:first-child > ${$}-select-selector,
& > ${$}-select-auto-complete:first-child ${T},
& > ${$}-cascader-picker:first-child ${T}`]:{borderStartStartRadius:x.borderRadius,borderEndStartRadius:x.borderRadius},[`& > *:last-child,
& > ${$}-select:last-child > ${$}-select-selector,
& > ${$}-cascader-picker:last-child ${T},
& > ${$}-cascader-picker-focused:last-child ${T}`]:{borderInlineEndWidth:x.lineWidth,borderStartEndRadius:x.borderRadius,borderEndEndRadius:x.borderRadius},[`& > ${$}-select-auto-complete ${T}`]:{verticalAlign:"top"},[`${T}-group-wrapper + ${T}-group-wrapper`]:{marginInlineStart:-x.lineWidth,[`${T}-affix-wrapper`]:{borderRadius:0}},[`${T}-group-wrapper:not(:last-child)`]:{[`&${T}-search > ${T}-group`]:{[`& > ${T}-group-addon > ${T}-search-button`]:{borderRadius:0},[`& > ${T}`]:{borderStartStartRadius:x.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:x.borderRadius}}}})}},y=x=>{const{componentCls:T,controlHeightSM:$,lineWidth:B}=x,ye=($-B*2-16)/2;return{[T]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,M.Wf)(x)),v(x)),L(x,T)),{'&[type="color"]':{height:x.controlHeight,[`&${T}-lg`]:{height:x.controlHeightLG},[`&${T}-sm`]:{height:$,paddingTop:ye,paddingBottom:ye}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},b=x=>{const{componentCls:T}=x;return{[`${T}-clear-icon`]:{margin:0,color:x.colorTextQuaternary,fontSize:x.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${x.motionDurationSlow}`,"&:hover":{color:x.colorTextTertiary},"&:active":{color:x.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${x.inputAffixPadding}px`}}}},k=x=>{const{componentCls:T,inputAffixPadding:$,colorTextDescription:B,motionDurationSlow:fe,colorIcon:ye,colorIconHover:Re,iconCls:he}=x;return{[`${T}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},v(x)),{display:"inline-flex",[`&:not(${T}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},X(x)),{zIndex:1,[`${T}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${T}[disabled]`]:{background:"transparent"}},[`> input${T}`]:{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"'},[`${T}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:x.paddingXS}},"&-show-count-suffix":{color:B},"&-show-count-has-suffix":{marginInlineEnd:x.paddingXXS},"&-prefix":{marginInlineEnd:$},"&-suffix":{marginInlineStart:$}}}),b(x)),{[`${he}${T}-password-icon`]:{color:ye,cursor:"pointer",transition:`all ${fe}`,"&:hover":{color:Re}}}),L(x,`${T}-affix-wrapper`))}},se=x=>{const{componentCls:T,colorError:$,colorWarning:B,borderRadiusLG:fe,borderRadiusSM:ye}=x;return{[`${T}-group`]:Object.assign(Object.assign(Object.assign({},(0,M.Wf)(x)),u(x)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${T}-group-addon`]:{borderRadius:fe,fontSize:x.fontSizeLG}},"&-sm":{[`${T}-group-addon`]:{borderRadius:ye}},"&-status-error":{[`${T}-group-addon`]:{color:$,borderColor:$}},"&-status-warning":{[`${T}-group-addon`]:{color:B,borderColor:B}},"&-disabled":{[`${T}-group-addon`]:Object.assign({},_e(x))},[`&:not(${T}-compact-first-item):not(${T}-compact-last-item)${T}-compact-item`]:{[`${T}, ${T}-group-addon`]:{borderRadius:0}},[`&:not(${T}-compact-last-item)${T}-compact-first-item`]:{[`${T}, ${T}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${T}-compact-first-item)${T}-compact-last-item`]:{[`${T}, ${T}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},P=x=>{const{componentCls:T,antCls:$}=x,B=`${T}-search`;return{[B]:{[`${T}`]:{"&:hover, &:focus":{borderColor:x.colorPrimaryHover,[`+ ${T}-group-addon ${B}-button:not(${$}-btn-primary)`]:{borderInlineStartColor:x.colorPrimaryHover}}},[`${T}-affix-wrapper`]:{borderRadius:0},[`${T}-lg`]:{lineHeight:x.lineHeightLG-2e-4},[`> ${T}-group`]:{[`> ${T}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${B}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:x.borderRadius,borderEndEndRadius:x.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${B}-button:not(${$}-btn-primary)`]:{color:x.colorTextDescription,"&:hover":{color:x.colorPrimaryHover},"&:active":{color:x.colorPrimaryActive},[`&${$}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${B}-button`]:{height:x.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${B}-button`]:{height:x.controlHeightLG},[`&-small ${B}-button`]:{height:x.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${T}-compact-item`]:{[`&:not(${T}-compact-last-item)`]:{[`${T}-group-addon`]:{[`${T}-search-button`]:{marginInlineEnd:-x.lineWidth,borderRadius:0}}},[`&:not(${T}-compact-first-item)`]:{[`${T},${T}-affix-wrapper`]:{borderRadius:0}},[`> ${T}-group-addon ${T}-search-button,
> ${T},
${T}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${T}-affix-wrapper-focused`]:{zIndex:2}}}}},N=x=>{const{componentCls:T,paddingLG:$}=x,B=`${T}-textarea`;return{[B]:{position:"relative","&-show-count":{[`> ${T}`]:{height:"100%"},[`${T}-data-count`]:{position:"absolute",bottom:-x.fontSize*x.lineHeight,insetInlineEnd:0,color:x.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${T}`]:{paddingInlineEnd:$}},[`&-affix-wrapper${B}-has-feedback`]:{[`${T}`]:{paddingInlineEnd:$}},[`&-affix-wrapper${T}-affix-wrapper`]:{padding:0,[`> textarea${T}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${T}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${T}-clear-icon`]:{position:"absolute",insetInlineEnd:x.paddingXS,insetBlockStart:x.paddingXS},[`${B}-suffix`]:{position:"absolute",top:0,insetInlineEnd:x.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function V(x){return(0,ce.TS)(x,{inputAffixPadding:x.paddingXXS})}const K=x=>{const{controlHeight:T,fontSize:$,lineHeight:B,lineWidth:fe,controlHeightSM:ye,controlHeightLG:Re,fontSizeLG:he,lineHeightLG:G,paddingSM:F,controlPaddingHorizontalSM:le,controlPaddingHorizontal:D,colorFillAlter:Q,colorPrimaryHover:H,controlOutlineWidth:g,controlOutline:E,colorErrorOutline:Z,colorWarningOutline:pe}=x;return{paddingBlock:Math.max(Math.round((T-$*B)/2*10)/10-fe,3),paddingBlockSM:Math.max(Math.round((ye-$*B)/2*10)/10-fe,0),paddingBlockLG:Math.ceil((Re-he*G)/2*10)/10-fe,paddingInline:F-fe,paddingInlineSM:le-fe,paddingInlineLG:D-fe,addonBg:Q,activeBorderColor:H,hoverBorderColor:H,activeShadow:`0 0 0 ${g}px ${E}`,errorActiveShadow:`0 0 0 ${g}px ${Z}`,warningActiveShadow:`0 0 0 ${g}px ${pe}`}};et.ZP=(0,Te.Z)("Input",x=>{const T=(0,ce.TS)(x,V(x));return[y(T),N(T),k(T),se(T),P(T),(0,Y.c)(T)]},K)},99580:function(Qt,et,p){"use strict";p.d(et,{D:function(){return V},Z:function(){return T}});var M=p(5891),Y=p(59301),ce={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"},Te=ce,j=p(88853),X=function(B,fe){return Y.createElement(j.Z,(0,M.Z)({},B,{ref:fe,icon:Te}))},ve=Y.forwardRef(X),_e=ve,a=p(16537),A=p(53878),L=p(92310),v=p.n(L),u=p(64002),b=$=>!isNaN(parseFloat($))&&isFinite($),k=p(36355),se=p(84966),P=function($,B){var fe={};for(var ye in $)Object.prototype.hasOwnProperty.call($,ye)&&B.indexOf(ye)<0&&(fe[ye]=$[ye]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,ye=Object.getOwnPropertySymbols($);Re<ye.length;Re++)B.indexOf(ye[Re])<0&&Object.prototype.propertyIsEnumerable.call($,ye[Re])&&(fe[ye[Re]]=$[ye[Re]]);return fe};const N={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},V=Y.createContext({}),K=(()=>{let $=0;return function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return $+=1,`${B}${$}`}})();var T=Y.forwardRef(($,B)=>{const{prefixCls:fe,className:ye,trigger:Re,children:he,defaultCollapsed:G=!1,theme:F="dark",style:le={},collapsible:D=!1,reverseArrow:Q=!1,width:H=200,collapsedWidth:g=80,zeroWidthTriggerStyle:E,breakpoint:Z,onCollapse:pe,onBreakpoint:ze}=$,Ge=P($,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:je}=(0,Y.useContext)(se.Gs),[Ve,mt]=(0,Y.useState)("collapsed"in $?$.collapsed:G),[pt,nt]=(0,Y.useState)(!1);(0,Y.useEffect)(()=>{"collapsed"in $&&mt($.collapsed)},[$.collapsed]);const Gt=(te,ge)=>{"collapsed"in $||mt(te),pe==null||pe(te,ge)},Jt=(0,Y.useRef)();Jt.current=te=>{nt(te.matches),ze==null||ze(te.matches),Ve!==te.matches&&Gt(te.matches,"responsive")},(0,Y.useEffect)(()=>{function te(q){return Jt.current(q)}let ge;if(typeof window!="undefined"){const{matchMedia:q}=window;if(q&&Z&&Z in N){ge=q(`(max-width: ${N[Z]})`);try{ge.addEventListener("change",te)}catch(z){ge.addListener(te)}te(ge)}}return()=>{try{ge==null||ge.removeEventListener("change",te)}catch(q){ge==null||ge.removeListener(te)}}},[Z]),(0,Y.useEffect)(()=>{const te=K("ant-sider-");return je.addSider(te),()=>je.removeSider(te)},[]);const sn=()=>{Gt(!Ve,"clickTrigger")},{getPrefixCls:Ut}=(0,Y.useContext)(k.E_),Xt=()=>{const te=Ut("layout-sider",fe),ge=(0,u.Z)(Ge,["collapsed"]),q=Ve?g:H,z=b(q)?`${q}px`:String(q),De=parseFloat(String(g||0))===0?Y.createElement("span",{onClick:sn,className:v()(`${te}-zero-width-trigger`,`${te}-zero-width-trigger-${Q?"right":"left"}`),style:E},Re||Y.createElement(_e,null)):null,J={expanded:Q?Y.createElement(A.Z,null):Y.createElement(a.Z,null),collapsed:Q?Y.createElement(a.Z,null):Y.createElement(A.Z,null)}[Ve?"collapsed":"expanded"],oe=Re!==null?De||Y.createElement("div",{className:`${te}-trigger`,onClick:sn,style:{width:z}},Re||J):null,de=Object.assign(Object.assign({},le),{flex:`0 0 ${z}`,maxWidth:z,minWidth:z,width:z}),Ce=v()(te,`${te}-${F}`,{[`${te}-collapsed`]:!!Ve,[`${te}-has-trigger`]:D&&Re!==null&&!De,[`${te}-below`]:!!pt,[`${te}-zero-width`]:parseFloat(z)===0},ye);return Y.createElement("aside",Object.assign({className:Ce},ge,{style:de,ref:B}),Y.createElement("div",{className:`${te}-children`},he),D||pt&&De?oe:null)},it=Y.useMemo(()=>({siderCollapsed:Ve}),[Ve]);return Y.createElement(V.Provider,{value:it},Xt())})},84966:function(Qt,et,p){"use strict";p.d(et,{VY:function(){return V},$_:function(){return N},h4:function(){return P},Gs:function(){return u},ZP:function(){return K}});var M=p(26390),Y=p(92310),ce=p.n(Y),Te=p(64002),j=p(59301),X=p(36355),ve=p(83116),a=x=>{const{componentCls:T,bodyBg:$,lightSiderBg:B,lightTriggerBg:fe,lightTriggerColor:ye}=x;return{[`${T}-sider-light`]:{background:B,[`${T}-sider-trigger`]:{color:ye,background:fe},[`${T}-sider-zero-width-trigger`]:{color:ye,background:fe,border:`1px solid ${$}`,borderInlineStart:0}}}};const A=x=>{const{antCls:T,componentCls:$,colorText:B,triggerColor:fe,footerBg:ye,triggerBg:Re,headerHeight:he,headerPadding:G,headerColor:F,footerPadding:le,triggerHeight:D,zeroTriggerHeight:Q,zeroTriggerWidth:H,motionDurationMid:g,motionDurationSlow:E,fontSize:Z,borderRadius:pe,bodyBg:ze,headerBg:Ge,siderBg:je}=x;return{[$]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:ze,"&, *":{boxSizing:"border-box"},[`&${$}-has-sider`]:{flexDirection:"row",[`> ${$}, > ${$}-content`]:{width:0}},[`${$}-header, &${$}-footer`]:{flex:"0 0 auto"},[`${$}-sider`]:{position:"relative",minWidth:0,background:je,transition:`all ${g}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${T}-menu${T}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:D},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:D,color:fe,lineHeight:`${D}px`,textAlign:"center",background:Re,cursor:"pointer",transition:`all ${g}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:he,insetInlineEnd:-H,zIndex:1,width:H,height:Q,color:fe,fontSize:x.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:je,borderStartStartRadius:0,borderStartEndRadius:pe,borderEndEndRadius:pe,borderEndStartRadius:0,cursor:"pointer",transition:`background ${E} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${E}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-H,borderStartStartRadius:pe,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:pe}}}}},a(x)),{"&-rtl":{direction:"rtl"}}),[`${$}-header`]:{height:he,padding:G,color:F,lineHeight:`${he}px`,background:Ge,[`${T}-menu`]:{lineHeight:"inherit"}},[`${$}-footer`]:{padding:le,color:B,fontSize:Z,background:ye},[`${$}-content`]:{flex:"auto",minHeight:0}}};var L=(0,ve.Z)("Layout",x=>[A(x)],x=>{const{colorBgLayout:T,controlHeight:$,controlHeightLG:B,colorText:fe,controlHeightSM:ye,marginXXS:Re,colorTextLightSolid:he,colorBgContainer:G}=x,F=B*1.25;return{colorBgHeader:"#001529",colorBgBody:T,colorBgTrigger:"#002140",bodyBg:T,headerBg:"#001529",headerHeight:$*2,headerPadding:`0 ${F}px`,headerColor:fe,footerPadding:`${ye}px ${F}px`,footerBg:T,siderBg:"#001529",triggerHeight:B+Re*2,triggerBg:"#002140",triggerColor:he,zeroTriggerWidth:B,zeroTriggerHeight:B,lightSiderBg:G,lightTriggerBg:G,lightTriggerColor:fe}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),v=function(x,T){var $={};for(var B in x)Object.prototype.hasOwnProperty.call(x,B)&&T.indexOf(B)<0&&($[B]=x[B]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,B=Object.getOwnPropertySymbols(x);fe<B.length;fe++)T.indexOf(B[fe])<0&&Object.prototype.propertyIsEnumerable.call(x,B[fe])&&($[B[fe]]=x[B[fe]]);return $};const u=j.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function y(x){let{suffixCls:T,tagName:$,displayName:B}=x;return fe=>j.forwardRef((Re,he)=>j.createElement(fe,Object.assign({ref:he,suffixCls:T,tagName:$},Re)))}const b=j.forwardRef((x,T)=>{const{prefixCls:$,suffixCls:B,className:fe,tagName:ye}=x,Re=v(x,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:he}=j.useContext(X.E_),G=he("layout",$),[F,le]=L(G),D=B?`${G}-${B}`:G;return F(j.createElement(ye,Object.assign({className:ce()($||D,fe,le),ref:T},Re)))}),k=j.forwardRef((x,T)=>{const{direction:$}=j.useContext(X.E_),[B,fe]=j.useState([]),{prefixCls:ye,className:Re,rootClassName:he,children:G,hasSider:F,tagName:le,style:D}=x,Q=v(x,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),H=(0,Te.Z)(Q,["suffixCls"]),{getPrefixCls:g,layout:E}=j.useContext(X.E_),Z=g("layout",ye),[pe,ze]=L(Z),Ge=ce()(Z,{[`${Z}-has-sider`]:typeof F=="boolean"?F:B.length>0,[`${Z}-rtl`]:$==="rtl"},E==null?void 0:E.className,Re,he,ze),je=j.useMemo(()=>({siderHook:{addSider:Ve=>{fe(mt=>[].concat((0,M.Z)(mt),[Ve]))},removeSider:Ve=>{fe(mt=>mt.filter(pt=>pt!==Ve))}}}),[]);return pe(j.createElement(u.Provider,{value:je},j.createElement(le,Object.assign({ref:T,className:Ge,style:Object.assign(Object.assign({},E==null?void 0:E.style),D)},H),G)))}),se=y({tagName:"div",displayName:"Layout"})(k),P=y({suffixCls:"header",tagName:"header",displayName:"Header"})(b),N=y({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(b),V=y({suffixCls:"content",tagName:"main",displayName:"Content"})(b);var K=se},40875:function(Qt,et,p){"use strict";p.d(et,{J:function(){return X}});var M=p(59301),Y=p(33234),ce=p(80764),Te=function(ve,_e){var a={};for(var A in ve)Object.prototype.hasOwnProperty.call(ve,A)&&_e.indexOf(A)<0&&(a[A]=ve[A]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var L=0,A=Object.getOwnPropertySymbols(ve);L<A.length;L++)_e.indexOf(A[L])<0&&Object.prototype.propertyIsEnumerable.call(ve,A[L])&&(a[A[L]]=ve[A[L]]);return a};const j=M.createContext(null),X=M.forwardRef((ve,_e)=>{const{children:a}=ve,A=Te(ve,["children"]),L=M.useContext(j),v=M.useMemo(()=>Object.assign(Object.assign({},L),A),[L,A.prefixCls,A.mode,A.selectable]);return M.createElement(j.Provider,{value:v},M.createElement(Y.BR,null,(0,ce.supportNodeRef)(a)?M.cloneElement(a,{ref:_e}):a))});et.Z=j},20834:function(Qt,et,p){"use strict";p.d(et,{default:function(){return it}});var M=p(22798),Y=p(59301),ce=p(99580),Te=p(92310),j=p.n(Te),X=p(36355),ve=function(te,ge){var q={};for(var z in te)Object.prototype.hasOwnProperty.call(te,z)&&ge.indexOf(z)<0&&(q[z]=te[z]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,z=Object.getOwnPropertySymbols(te);De<z.length;De++)ge.indexOf(z[De])<0&&Object.prototype.propertyIsEnumerable.call(te,z[De])&&(q[z[De]]=te[z[De]]);return q},a=te=>{const{prefixCls:ge,className:q,dashed:z}=te,De=ve(te,["prefixCls","className","dashed"]),{getPrefixCls:O}=Y.useContext(X.E_),ae=O("menu",ge),J=j()({[`${ae}-item-divider-dashed`]:!!z},q);return Y.createElement(M.iz,Object.assign({className:J},De))},A=p(38298),L=p(64002),v=p(6848),u=p(92343),b=(0,Y.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),se=te=>{var ge;const{className:q,children:z,icon:De,title:O,danger:ae}=te,{prefixCls:J,firstLevel:oe,direction:de,disableMenuItemTitleTooltip:Ce,inlineCollapsed:xe}=Y.useContext(b),ke=ct=>{const ut=Y.createElement("span",{className:`${J}-title-content`},z);return(!De||(0,u.l$)(z)&&z.type==="span")&&z&&ct&&oe&&typeof z=="string"?Y.createElement("div",{className:`${J}-inline-collapsed-noicon`},z.charAt(0)):ut},{siderCollapsed:Ie}=Y.useContext(ce.D);let Pe=O;typeof O=="undefined"?Pe=oe?z:"":O===!1&&(Pe="");const Xe={title:Pe};!Ie&&!xe&&(Xe.title=null,Xe.open=!1);const rt=(0,A.Z)(z).length;let Ze=Y.createElement(M.ck,Object.assign({},(0,L.Z)(te,["title","icon","danger"]),{className:j()({[`${J}-item-danger`]:ae,[`${J}-item-only-child`]:(De?rt+1:rt)===1},q),title:typeof O=="string"?O:void 0}),(0,u.Tm)(De,{className:j()((0,u.l$)(De)?(ge=De.props)===null||ge===void 0?void 0:ge.className:"",`${J}-item-icon`)}),ke(xe));return Ce||(Ze=Y.createElement(v.Z,Object.assign({},Xe,{placement:de==="rtl"?"left":"right",overlayClassName:`${J}-inline-collapsed-tooltip`}),Ze)),Ze},N=te=>{var ge;const{popupClassName:q,icon:z,title:De,theme:O}=te,ae=Y.useContext(b),{prefixCls:J,inlineCollapsed:oe,theme:de}=ae,Ce=(0,M.Xl)();let xe;if(!z)xe=oe&&!Ce.length&&De&&typeof De=="string"?Y.createElement("div",{className:`${J}-inline-collapsed-noicon`},De.charAt(0)):Y.createElement("span",{className:`${J}-title-content`},De);else{const Ie=(0,u.l$)(De)&&De.type==="span";xe=Y.createElement(Y.Fragment,null,(0,u.Tm)(z,{className:j()((0,u.l$)(z)?(ge=z.props)===null||ge===void 0?void 0:ge.className:"",`${J}-item-icon`)}),Ie?De:Y.createElement("span",{className:`${J}-title-content`},De))}const ke=Y.useMemo(()=>Object.assign(Object.assign({},ae),{firstLevel:!1}),[ae]);return Y.createElement(b.Provider,{value:ke},Y.createElement(M.Wd,Object.assign({},(0,L.Z)(te,["icon"]),{title:xe,popupClassName:j()(J,q,`${J}-${O||de}`)})))},V=p(19362),K=p(80764),x=p(62892),T=p(40875),$=function(te,ge){var q={};for(var z in te)Object.prototype.hasOwnProperty.call(te,z)&&ge.indexOf(z)<0&&(q[z]=te[z]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,z=Object.getOwnPropertySymbols(te);De<z.length;De++)ge.indexOf(z[De])<0&&Object.prototype.propertyIsEnumerable.call(te,z[De])&&(q[z[De]]=te[z[De]]);return q};function B(te){return(te||[]).map((ge,q)=>{if(ge&&typeof ge=="object"){const z=ge,{label:De,children:O,key:ae,type:J}=z,oe=$(z,["label","children","key","type"]),de=ae!=null?ae:`tmp-${q}`;return O||J==="group"?J==="group"?Y.createElement(M.BW,Object.assign({key:de},oe,{title:De}),B(O)):Y.createElement(N,Object.assign({key:de},oe,{title:De}),B(O)):J==="divider"?Y.createElement(a,Object.assign({key:de},oe)):Y.createElement(se,Object.assign({key:de},oe),De)}return null}).filter(ge=>ge)}function fe(te){return Y.useMemo(()=>te&&B(te),[te])}var ye=p(64993),Re=p(17313),he=p(8378),G=p(13826),F=p(29878),le=p(83116),D=p(37613),H=te=>{const{componentCls:ge,motionDurationSlow:q,horizontalLineHeight:z,colorSplit:De,lineWidth:O,lineType:ae,itemPaddingInline:J}=te;return{[`${ge}-horizontal`]:{lineHeight:z,border:0,borderBottom:`${O}px ${ae} ${De}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ge}-item, ${ge}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:J},[`> ${ge}-item:hover,
> ${ge}-item-active,
> ${ge}-submenu ${ge}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ge}-item, ${ge}-submenu-title`]:{transition:[`border-color ${q}`,`background ${q}`].join(",")},[`${ge}-submenu-arrow`]:{display:"none"}}}},E=te=>{let{componentCls:ge,menuArrowOffset:q}=te;return{[`${ge}-rtl`]:{direction:"rtl"},[`${ge}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ge}-rtl${ge}-vertical,
${ge}-submenu-rtl ${ge}-vertical`]:{[`${ge}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${q})`},"&::after":{transform:`rotate(45deg) translateY(${q})`}}}}};const Z=te=>Object.assign({},(0,Re.oN)(te));var ze=(te,ge)=>{const{componentCls:q,itemColor:z,itemSelectedColor:De,groupTitleColor:O,itemBg:ae,subMenuItemBg:J,itemSelectedBg:oe,activeBarHeight:de,activeBarWidth:Ce,activeBarBorderWidth:xe,motionDurationSlow:ke,motionEaseInOut:Ie,motionEaseOut:Pe,itemPaddingInline:Xe,motionDurationMid:rt,itemHoverColor:Ze,lineType:ct,colorSplit:ut,itemDisabledColor:ot,dangerItemColor:Ot,dangerItemHoverColor:_t,dangerItemSelectedColor:w,dangerItemActiveBg:C,dangerItemSelectedBg:lt,itemHoverBg:ie,itemActiveBg:Oe,menuSubMenuBg:mn,horizontalItemSelectedColor:Fe,horizontalItemSelectedBg:We,horizontalItemBorderRadius:Je,horizontalItemHoverBg:ue,popupBg:W}=te;return{[`${q}-${ge}, ${q}-${ge} > ${q}`]:{color:z,background:ae,[`&${q}-root:focus-visible`]:Object.assign({},Z(te)),[`${q}-item-group-title`]:{color:O},[`${q}-submenu-selected`]:{[`> ${q}-submenu-title`]:{color:De}},[`${q}-item-disabled, ${q}-submenu-disabled`]:{color:`${ot} !important`},[`${q}-item:not(${q}-item-selected):not(${q}-submenu-selected)`]:{[`&:hover, > ${q}-submenu-title:hover`]:{color:Ze}},[`&:not(${q}-horizontal)`]:{[`${q}-item:not(${q}-item-selected)`]:{"&:hover":{backgroundColor:ie},"&:active":{backgroundColor:Oe}},[`${q}-submenu-title`]:{"&:hover":{backgroundColor:ie},"&:active":{backgroundColor:Oe}}},[`${q}-item-danger`]:{color:Ot,[`&${q}-item:hover`]:{[`&:not(${q}-item-selected):not(${q}-submenu-selected)`]:{color:_t}},[`&${q}-item:active`]:{background:C}},[`${q}-item a`]:{"&, &:hover":{color:"inherit"}},[`${q}-item-selected`]:{color:De,[`&${q}-item-danger`]:{color:w},"a, a:hover":{color:"inherit"}},[`& ${q}-item-selected`]:{backgroundColor:oe,[`&${q}-item-danger`]:{backgroundColor:lt}},[`${q}-item, ${q}-submenu-title`]:{[`&:not(${q}-item-disabled):focus-visible`]:Object.assign({},Z(te))},[`&${q}-submenu > ${q}`]:{backgroundColor:mn},[`&${q}-popup > ${q}`]:{backgroundColor:W},[`&${q}-horizontal`]:Object.assign(Object.assign({},ge==="dark"?{borderBottom:0}:{}),{[`> ${q}-item, > ${q}-submenu`]:{top:xe,marginTop:-xe,marginBottom:0,borderRadius:Je,"&::after":{position:"absolute",insetInline:Xe,bottom:0,borderBottom:`${de}px solid transparent`,transition:`border-color ${ke} ${Ie}`,content:'""'},"&:hover, &-active, &-open":{background:ue,"&::after":{borderBottomWidth:de,borderBottomColor:Fe}},"&-selected":{color:Fe,backgroundColor:We,"&:hover":{backgroundColor:We},"&::after":{borderBottomWidth:de,borderBottomColor:Fe}}}}),[`&${q}-root`]:{[`&${q}-inline, &${q}-vertical`]:{borderInlineEnd:`${xe}px ${ct} ${ut}`}},[`&${q}-inline`]:{[`${q}-sub${q}-inline`]:{background:J},[`${q}-item, ${q}-submenu-title`]:xe&&Ce?{width:`calc(100% + ${xe}px)`}:{},[`${q}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ce}px solid ${De}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${rt} ${Pe}`,`opacity ${rt} ${Pe}`].join(","),content:'""'},[`&${q}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${q}-selected, ${q}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${rt} ${Ie}`,`opacity ${rt} ${Ie}`].join(",")}}}}}};const Ge=te=>{const{componentCls:ge,itemHeight:q,itemMarginInline:z,padding:De,menuArrowSize:O,marginXS:ae,itemMarginBlock:J}=te,oe=De+O+ae;return{[`${ge}-item`]:{position:"relative",overflow:"hidden"},[`${ge}-item, ${ge}-submenu-title`]:{height:q,lineHeight:`${q}px`,paddingInline:De,overflow:"hidden",textOverflow:"ellipsis",marginInline:z,marginBlock:J,width:`calc(100% - ${z*2}px)`},[`> ${ge}-item,
> ${ge}-submenu > ${ge}-submenu-title`]:{height:q,lineHeight:`${q}px`},[`${ge}-item-group-list ${ge}-submenu-title,
${ge}-submenu-title`]:{paddingInlineEnd:oe}}};var Ve=te=>{const{componentCls:ge,iconCls:q,itemHeight:z,colorTextLightSolid:De,dropdownWidth:O,controlHeightLG:ae,motionDurationMid:J,motionEaseOut:oe,paddingXL:de,itemMarginInline:Ce,fontSizeLG:xe,motionDurationSlow:ke,paddingXS:Ie,boxShadowSecondary:Pe,collapsedWidth:Xe,collapsedIconSize:rt}=te,Ze={height:z,lineHeight:`${z}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ge]:{"&-inline, &-vertical":Object.assign({[`&${ge}-root`]:{boxShadow:"none"}},Ge(te))},[`${ge}-submenu-popup`]:{[`${ge}-vertical`]:Object.assign(Object.assign({},Ge(te)),{boxShadow:Pe})}},{[`${ge}-submenu-popup ${ge}-vertical${ge}-sub`]:{minWidth:O,maxHeight:`calc(100vh - ${ae*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ge}-inline`]:{width:"100%",[`&${ge}-root`]:{[`${ge}-item, ${ge}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${ke}`,`background ${ke}`,`padding ${J} ${oe}`].join(","),[`> ${ge}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ge}-sub${ge}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ge}-submenu > ${ge}-submenu-title`]:Ze,[`& ${ge}-item-group-title`]:{paddingInlineStart:de}},[`${ge}-item`]:Ze}},{[`${ge}-inline-collapsed`]:{width:Xe,[`&${ge}-root`]:{[`${ge}-item, ${ge}-submenu ${ge}-submenu-title`]:{[`> ${ge}-inline-collapsed-noicon`]:{fontSize:xe,textAlign:"center"}}},[`> ${ge}-item,
> ${ge}-item-group > ${ge}-item-group-list > ${ge}-item,
> ${ge}-item-group > ${ge}-item-group-list > ${ge}-submenu > ${ge}-submenu-title,
> ${ge}-submenu > ${ge}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${xe/2}px - ${Ce}px)`,textOverflow:"clip",[`
${ge}-submenu-arrow,
${ge}-submenu-expand-icon
`]:{opacity:0},[`${ge}-item-icon, ${q}`]:{margin:0,fontSize:rt,lineHeight:`${z}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ge}-item-icon, ${q}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ge}-item-icon, ${q}`]:{display:"none"},"a, a:hover":{color:De}},[`${ge}-item-group-title`]:Object.assign(Object.assign({},Re.vS),{paddingInline:Ie})}}]};const mt=te=>{const{componentCls:ge,motionDurationSlow:q,motionDurationMid:z,motionEaseInOut:De,motionEaseOut:O,iconCls:ae,iconSize:J,iconMarginInlineEnd:oe}=te;return{[`${ge}-item, ${ge}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${q}`,`background ${q}`,`padding ${q} ${De}`].join(","),[`${ge}-item-icon, ${ae}`]:{minWidth:J,fontSize:J,transition:[`font-size ${z} ${O}`,`margin ${q} ${De}`,`color ${q}`].join(","),"+ span":{marginInlineStart:oe,opacity:1,transition:[`opacity ${q} ${De}`,`margin ${q}`,`color ${q}`].join(",")}},[`${ge}-item-icon`]:Object.assign({},(0,Re.Ro)()),[`&${ge}-item-only-child`]:{[`> ${ae}, > ${ge}-item-icon`]:{marginInlineEnd:0}}},[`${ge}-item-disabled, ${ge}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ge}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},pt=te=>{const{componentCls:ge,motionDurationSlow:q,motionEaseInOut:z,borderRadius:De,menuArrowSize:O,menuArrowOffset:ae}=te;return{[`${ge}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:te.margin,width:O,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${q} ${z}, opacity ${q}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:O*.6,height:O*.15,backgroundColor:"currentcolor",borderRadius:De,transition:[`background ${q} ${z}`,`transform ${q} ${z}`,`top ${q} ${z}`,`color ${q} ${z}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${ae})`},"&::after":{transform:`rotate(-45deg) translateY(${ae})`}}}}},nt=te=>{const{antCls:ge,componentCls:q,fontSize:z,motionDurationSlow:De,motionDurationMid:O,motionEaseInOut:ae,paddingXS:J,padding:oe,colorSplit:de,lineWidth:Ce,zIndexPopup:xe,borderRadiusLG:ke,subMenuItemBorderRadius:Ie,menuArrowSize:Pe,menuArrowOffset:Xe,lineType:rt,menuPanelMaskInset:Ze,groupTitleLineHeight:ct,groupTitleFontSize:ut}=te;return[{"":{[`${q}`]:Object.assign(Object.assign({},(0,Re.dF)()),{"&-hidden":{display:"none"}})},[`${q}-submenu-hidden`]:{display:"none"}},{[q]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Re.Wf)(te)),(0,Re.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:z,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${De} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${q}-item`]:{flex:"none"}},[`${q}-item, ${q}-submenu, ${q}-submenu-title`]:{borderRadius:te.itemBorderRadius},[`${q}-item-group-title`]:{padding:`${J}px ${oe}px`,fontSize:ut,lineHeight:ct,transition:`all ${De}`},[`&-horizontal ${q}-submenu`]:{transition:[`border-color ${De} ${ae}`,`background ${De} ${ae}`].join(",")},[`${q}-submenu, ${q}-submenu-inline`]:{transition:[`border-color ${De} ${ae}`,`background ${De} ${ae}`,`padding ${O} ${ae}`].join(",")},[`${q}-submenu ${q}-sub`]:{cursor:"initial",transition:[`background ${De} ${ae}`,`padding ${De} ${ae}`].join(",")},[`${q}-title-content`]:{transition:`color ${De}`},[`${q}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${q}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:de,borderStyle:rt,borderWidth:0,borderTopWidth:Ce,marginBlock:Ce,padding:0,"&-dashed":{borderStyle:"dashed"}}}),mt(te)),{[`${q}-item-group`]:{[`${q}-item-group-list`]:{margin:0,padding:0,[`${q}-item, ${q}-submenu-title`]:{paddingInline:`${z*2}px ${oe}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:xe,borderRadius:ke,boxShadow:"none",transformOrigin:"0 0",[`&${q}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Ze}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Ze},"\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:te.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:te.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:te.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:te.paddingXS},[`> ${q}`]:Object.assign(Object.assign(Object.assign({borderRadius:ke},mt(te)),pt(te)),{[`${q}-item, ${q}-submenu > ${q}-submenu-title`]:{borderRadius:Ie},[`${q}-submenu-title::after`]:{transition:`transform ${De} ${ae}`}})}}),pt(te)),{[`&-inline-collapsed ${q}-submenu-arrow,
&-inline ${q}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Xe})`},"&::after":{transform:`rotate(45deg) translateX(-${Xe})`}},[`${q}-submenu-open${q}-submenu-inline > ${q}-submenu-title > ${q}-submenu-arrow`]:{transform:`translateY(-${Pe*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Xe})`},"&::before":{transform:`rotate(45deg) translateX(${Xe})`}}})},{[`${ge}-layout-header`]:{[q]:{lineHeight:"inherit"}}}]};var Gt=(te,ge)=>(0,le.Z)("Menu",z=>{if(ge===!1)return[];const{colorBgElevated:De,colorPrimary:O,colorTextLightSolid:ae,controlHeightLG:J,fontSize:oe,darkItemColor:de,darkDangerItemColor:Ce,darkItemBg:xe,darkSubMenuItemBg:ke,darkItemSelectedColor:Ie,darkItemSelectedBg:Pe,darkDangerItemSelectedBg:Xe,darkItemHoverBg:rt,darkGroupTitleColor:Ze,darkItemHoverColor:ct,darkItemDisabledColor:ut,darkDangerItemHoverColor:ot,darkDangerItemSelectedColor:Ot,darkDangerItemActiveBg:_t}=z,w=oe/7*5,C=(0,D.TS)(z,{menuArrowSize:w,menuHorizontalHeight:J*1.15,menuArrowOffset:`${w*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:De}),lt=(0,D.TS)(C,{itemColor:de,itemHoverColor:ct,groupTitleColor:Ze,itemSelectedColor:Ie,itemBg:xe,popupBg:xe,subMenuItemBg:ke,itemActiveBg:"transparent",itemSelectedBg:Pe,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:rt,itemDisabledColor:ut,dangerItemColor:Ce,dangerItemHoverColor:ot,dangerItemSelectedColor:Ot,dangerItemActiveBg:_t,dangerItemSelectedBg:Xe,menuSubMenuBg:ke,horizontalItemSelectedColor:ae,horizontalItemSelectedBg:O});return[nt(C),H(C),Ve(C),ze(C,"light"),ze(lt,"dark"),E(C),(0,he.Z)(C),(0,G.oN)(C,"slide-up"),(0,G.oN)(C,"slide-down"),(0,F._y)(C,"zoom-big")]},z=>{const{colorPrimary:De,colorError:O,colorTextDisabled:ae,colorErrorBg:J,colorText:oe,colorTextDescription:de,colorBgContainer:Ce,colorFillAlter:xe,colorFillContent:ke,lineWidth:Ie,lineWidthBold:Pe,controlItemBgActive:Xe,colorBgTextHover:rt,controlHeightLG:Ze,lineHeight:ct,colorBgElevated:ut,marginXXS:ot,padding:Ot,fontSize:_t,controlHeightSM:w,fontSizeLG:C,colorTextLightSolid:lt,colorErrorHover:ie}=z,Oe=new ye.C(lt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:z.zIndexPopupBase+50,radiusItem:z.borderRadiusLG,itemBorderRadius:z.borderRadiusLG,radiusSubMenuItem:z.borderRadiusSM,subMenuItemBorderRadius:z.borderRadiusSM,colorItemText:oe,itemColor:oe,colorItemTextHover:oe,itemHoverColor:oe,colorItemTextHoverHorizontal:De,horizontalItemHoverColor:De,colorGroupTitle:de,groupTitleColor:de,colorItemTextSelected:De,itemSelectedColor:De,colorItemTextSelectedHorizontal:De,horizontalItemSelectedColor:De,colorItemBg:Ce,itemBg:Ce,colorItemBgHover:rt,itemHoverBg:rt,colorItemBgActive:ke,itemActiveBg:Xe,colorSubItemBg:xe,subMenuItemBg:xe,colorItemBgSelected:Xe,itemSelectedBg:Xe,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Pe,activeBarHeight:Pe,colorActiveBarBorderSize:Ie,activeBarBorderWidth:Ie,colorItemTextDisabled:ae,itemDisabledColor:ae,colorDangerItemText:O,dangerItemColor:O,colorDangerItemTextHover:O,dangerItemHoverColor:O,colorDangerItemTextSelected:O,dangerItemSelectedColor:O,colorDangerItemBgActive:J,dangerItemActiveBg:J,colorDangerItemBgSelected:J,dangerItemSelectedBg:J,itemMarginInline:z.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ze,groupTitleLineHeight:ct,collapsedWidth:Ze*2,popupBg:ut,itemMarginBlock:ot,itemPaddingInline:Ot,horizontalLineHeight:`${Ze*1.15}px`,iconSize:_t,iconMarginInlineEnd:w-_t,collapsedIconSize:C,groupTitleFontSize:_t,darkItemDisabledColor:new ye.C(lt).setAlpha(.25).toRgbString(),darkItemColor:Oe,darkDangerItemColor:O,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:lt,darkItemSelectedBg:De,darkDangerItemSelectedBg:O,darkItemHoverBg:"transparent",darkGroupTitleColor:Oe,darkItemHoverColor:lt,darkDangerItemHoverColor:ie,darkDangerItemSelectedColor:lt,darkDangerItemActiveBg:O}},{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"]]})(te),Jt=function(te,ge){var q={};for(var z in te)Object.prototype.hasOwnProperty.call(te,z)&&ge.indexOf(z)<0&&(q[z]=te[z]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,z=Object.getOwnPropertySymbols(te);De<z.length;De++)ge.indexOf(z[De])<0&&Object.prototype.propertyIsEnumerable.call(te,z[De])&&(q[z[De]]=te[z[De]]);return q},Ut=(0,Y.forwardRef)((te,ge)=>{var q,z;const De=Y.useContext(T.Z),O=De||{},{getPrefixCls:ae,getPopupContainer:J,direction:oe,menu:de}=Y.useContext(X.E_),Ce=ae(),{prefixCls:xe,className:ke,style:Ie,theme:Pe="light",expandIcon:Xe,_internalDisableMenuItemTitleTooltip:rt,inlineCollapsed:Ze,siderCollapsed:ct,items:ut,children:ot,rootClassName:Ot,mode:_t,selectable:w,onClick:C,overflowedIndicatorPopupClassName:lt}=te,ie=Jt(te,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Oe=(0,L.Z)(ie,["collapsedWidth"]),mn=fe(ut)||ot;(q=O.validator)===null||q===void 0||q.call(O,{mode:_t});const Fe=(0,K.useEvent)(function(){var Pt;C==null||C.apply(void 0,arguments),(Pt=O.onClick)===null||Pt===void 0||Pt.call(O)}),We=O.mode||_t,Je=w!=null?w:O.selectable,ue=Y.useMemo(()=>ct!==void 0?ct:Ze,[Ze,ct]),W={horizontal:{motionName:`${Ce}-slide-up`},inline:(0,x.Z)(Ce),other:{motionName:`${Ce}-zoom-big`}},we=ae("menu",xe||O.prefixCls),[Be,U]=Gt(we,!De),at=j()(`${we}-${Pe}`,de==null?void 0:de.className,ke);let Ee;if(typeof Xe=="function")Ee=Xe;else if(Xe===null||Xe===!1)Ee=null;else if(O.expandIcon===null||O.expandIcon===!1)Ee=null;else{const Pt=Xe!=null?Xe:O.expandIcon;Ee=(0,u.Tm)(Pt,{className:j()(`${we}-submenu-expand-icon`,(0,u.l$)(Pt)?(z=Pt.props)===null||z===void 0?void 0:z.className:"")})}const St=Y.useMemo(()=>({prefixCls:we,inlineCollapsed:ue||!1,direction:oe,firstLevel:!0,theme:Pe,mode:We,disableMenuItemTitleTooltip:rt}),[we,ue,oe,rt,Pe]);return Be(Y.createElement(T.Z.Provider,{value:null},Y.createElement(b.Provider,{value:St},Y.createElement(M.ZP,Object.assign({getPopupContainer:J,overflowedIndicator:Y.createElement(V.Z,null),overflowedIndicatorPopupClassName:j()(we,`${we}-${Pe}`,lt),mode:We,selectable:Je,onClick:Fe},Oe,{inlineCollapsed:ue,style:Object.assign(Object.assign({},de==null?void 0:de.style),Ie),className:at,prefixCls:we,direction:oe,defaultMotions:W,expandIcon:Ee,ref:ge,rootClassName:j()(Ot,U)}),mn))))});const Xt=(0,Y.forwardRef)((te,ge)=>{const q=(0,Y.useRef)(null),z=Y.useContext(ce.D);return(0,Y.useImperativeHandle)(ge,()=>({menu:q.current,focus:De=>{var O;(O=q.current)===null||O===void 0||O.focus(De)}})),Y.createElement(Ut,Object.assign({ref:q},te,z))});Xt.Item=se,Xt.SubMenu=N,Xt.Divider=a,Xt.ItemGroup=M.BW;var it=Xt},39722:function(Qt,et,p){"use strict";p.d(et,{t5:function(){return A}});var M=p(92310),Y=p.n(M),ce=p(55477),Te=p(59301),j=p(36355),X=p(77578),ve=p(17356),_e=function(v,u){var y={};for(var b in v)Object.prototype.hasOwnProperty.call(v,b)&&u.indexOf(b)<0&&(y[b]=v[b]);if(v!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,b=Object.getOwnPropertySymbols(v);k<b.length;k++)u.indexOf(b[k])<0&&Object.prototype.propertyIsEnumerable.call(v,b[k])&&(y[b[k]]=v[b[k]]);return y};const a=(v,u,y)=>{if(!(!u&&!y))return Te.createElement(Te.Fragment,null,u&&Te.createElement("div",{className:`${v}-title`},(0,X.Z)(u)),Te.createElement("div",{className:`${v}-inner-content`},(0,X.Z)(y)))},A=v=>{const{hashId:u,prefixCls:y,className:b,style:k,placement:se="top",title:P,content:N,children:V}=v;return Te.createElement("div",{className:Y()(u,y,`${y}-pure`,`${y}-placement-${se}`,b),style:k},Te.createElement("div",{className:`${y}-arrow`}),Te.createElement(ce.G,Object.assign({},v,{className:u,prefixCls:y}),V||a(y,P,N)))},L=v=>{const{prefixCls:u}=v,y=_e(v,["prefixCls"]),{getPrefixCls:b}=Te.useContext(j.E_),k=b("popover",u),[se,P]=(0,ve.Z)(k);return se(Te.createElement(A,Object.assign({},y,{prefixCls:k,hashId:P})))};et.ZP=L},60324:function(Qt,et,p){"use strict";var M=p(92310),Y=p.n(M),ce=p(59301),Te=p(77578),j=p(62892),X=p(36355),ve=p(6848),_e=p(39722),a=p(17356),A=function(u,y){var b={};for(var k in u)Object.prototype.hasOwnProperty.call(u,k)&&y.indexOf(k)<0&&(b[k]=u[k]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,k=Object.getOwnPropertySymbols(u);se<k.length;se++)y.indexOf(k[se])<0&&Object.prototype.propertyIsEnumerable.call(u,k[se])&&(b[k[se]]=u[k[se]]);return b};const L=u=>{let{title:y,content:b,prefixCls:k}=u;return ce.createElement(ce.Fragment,null,y&&ce.createElement("div",{className:`${k}-title`},(0,Te.Z)(y)),ce.createElement("div",{className:`${k}-inner-content`},(0,Te.Z)(b)))},v=ce.forwardRef((u,y)=>{const{prefixCls:b,title:k,content:se,overlayClassName:P,placement:N="top",trigger:V="hover",mouseEnterDelay:K=.1,mouseLeaveDelay:x=.1,overlayStyle:T={}}=u,$=A(u,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:B}=ce.useContext(X.E_),fe=B("popover",b),[ye,Re]=(0,a.Z)(fe),he=B(),G=Y()(P,Re);return ye(ce.createElement(ve.Z,Object.assign({placement:N,trigger:V,mouseEnterDelay:K,mouseLeaveDelay:x,overlayStyle:T},$,{prefixCls:fe,overlayClassName:G,ref:y,overlay:k||se?ce.createElement(L,{prefixCls:fe,title:k,content:se}):null,transitionName:(0,j.m)(he,"zoom-big",$.transitionName),"data-popover-inject":!0})))});v._InternalPanelDoNotUseOrYouWillBeFired=_e.ZP,et.Z=v},17356:function(Qt,et,p){"use strict";var M=p(17313),Y=p(29878),ce=p(19447),Te=p(33166),j=p(83116),X=p(37613);const ve=A=>{const{componentCls:L,popoverColor:v,minWidth:u,fontWeightStrong:y,popoverPadding:b,boxShadowSecondary:k,colorTextHeading:se,borderRadiusLG:P,zIndexPopup:N,marginXS:V,colorBgElevated:K,popoverBg:x}=A;return[{[L]:Object.assign(Object.assign({},(0,M.Wf)(A)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:N,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":K,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${L}-content`]:{position:"relative"},[`${L}-inner`]:{backgroundColor:x,backgroundClip:"padding-box",borderRadius:P,boxShadow:k,padding:b},[`${L}-title`]:{minWidth:u,marginBottom:V,color:se,fontWeight:y},[`${L}-inner-content`]:{color:v}})},(0,ce.ZP)(A,{colorBg:"var(--antd-arrow-background-color)"}),{[`${L}-pure`]:{position:"relative",maxWidth:"none",margin:A.sizePopupArrow,display:"inline-block",[`${L}-content`]:{display:"inline-block"}}}]},_e=A=>{const{componentCls:L}=A;return{[L]:Te.i.map(v=>{const u=A[`${v}6`];return{[`&${L}-${v}`]:{"--antd-arrow-background-color":u,[`${L}-inner`]:{backgroundColor:u},[`${L}-arrow`]:{background:"transparent"}}}})}},a=A=>{const{componentCls:L,lineWidth:v,lineType:u,colorSplit:y,paddingSM:b,controlHeight:k,fontSize:se,lineHeight:P,padding:N}=A,V=k-Math.round(se*P),K=V/2,x=V/2-v,T=N;return{[L]:{[`${L}-inner`]:{padding:0},[`${L}-title`]:{margin:0,padding:`${K}px ${T}px ${x}px`,borderBottom:`${v}px ${u} ${y}`},[`${L}-inner-content`]:{padding:`${b}px ${T}px`}}}};et.Z=(0,j.Z)("Popover",A=>{const{colorBgElevated:L,colorText:v,wireframe:u}=A,y=(0,X.TS)(A,{popoverPadding:12,popoverBg:L,popoverColor:v});return[ve(y),_e(y),u&&a(y),(0,Y._y)(y,"zoom-big")]},A=>({width:177,minWidth:177,zIndexPopup:A.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},14154:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return x}});var M=p(17313),Y=p(74207),ce=p(37613),Te=p(83116),j=p(13826),X=p(92899);const ve=T=>{const{optionHeight:$,optionFontSize:B,optionLineHeight:fe,optionPadding:ye}=T;return{position:"relative",display:"block",minHeight:$,padding:ye,color:T.colorText,fontWeight:"normal",fontSize:B,lineHeight:fe,boxSizing:"border-box"}};var a=T=>{const{antCls:$,componentCls:B}=T,fe=`${B}-item`,ye=`&${$}-slide-up-enter${$}-slide-up-enter-active`,Re=`&${$}-slide-up-appear${$}-slide-up-appear-active`,he=`&${$}-slide-up-leave${$}-slide-up-leave-active`,G=`${B}-dropdown-placement-`;return[{[`${B}-dropdown`]:Object.assign(Object.assign({},(0,M.Wf)(T)),{position:"absolute",top:-9999,zIndex:T.zIndexPopup,boxSizing:"border-box",padding:T.paddingXXS,overflow:"hidden",fontSize:T.fontSize,fontVariant:"initial",backgroundColor:T.colorBgElevated,borderRadius:T.borderRadiusLG,outline:"none",boxShadow:T.boxShadowSecondary,[`
${ye}${G}bottomLeft,
${Re}${G}bottomLeft
`]:{animationName:j.fJ},[`
${ye}${G}topLeft,
${Re}${G}topLeft,
${ye}${G}topRight,
${Re}${G}topRight
`]:{animationName:j.Qt},[`${he}${G}bottomLeft`]:{animationName:j.Uw},[`
${he}${G}topLeft,
${he}${G}topRight
`]:{animationName:j.ly},"&-hidden":{display:"none"},[`${fe}`]:Object.assign(Object.assign({},ve(T)),{cursor:"pointer",transition:`background ${T.motionDurationSlow} ease`,borderRadius:T.borderRadiusSM,"&-group":{color:T.colorTextDescription,fontSize:T.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},M.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${fe}-option-disabled)`]:{backgroundColor:T.optionActiveBg},[`&-selected:not(${fe}-option-disabled)`]:{color:T.optionSelectedColor,fontWeight:T.optionSelectedFontWeight,backgroundColor:T.optionSelectedBg,[`${fe}-option-state`]:{color:T.colorPrimary}},"&-disabled":{[`&${fe}-option-selected`]:{backgroundColor:T.colorBgContainerDisabled},color:T.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:T.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,j.oN)(T,"slide-up"),(0,j.oN)(T,"slide-down"),(0,X.Fm)(T,"move-up"),(0,X.Fm)(T,"move-down")]};const A=2,L=T=>{let{controlHeightSM:$,controlHeight:B,lineWidth:fe}=T;const ye=(B-$)/2-fe,Re=Math.ceil(ye/2);return[ye,Re]};function v(T,$){const{componentCls:B,iconCls:fe}=T,ye=`${B}-selection-overflow`,Re=T.multipleSelectItemHeight,[he]=L(T),G=$?`${B}-${$}`:"";return{[`${B}-multiple${G}`]:{fontSize:T.fontSize,[ye]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${B}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${he-A}px ${A*2}px`,borderRadius:T.borderRadius,[`${B}-show-search&`]:{cursor:"text"},[`${B}-disabled&`]:{background:T.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${A}px 0`,lineHeight:`${Re}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${B}-show-arrow ${B}-selector,
&${B}-allow-clear ${B}-selector
`]:{paddingInlineEnd:T.fontSizeIcon+T.controlPaddingHorizontal},[`${B}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Re,marginTop:A,marginBottom:A,lineHeight:`${Re-T.lineWidth*2}px`,background:T.multipleItemBg,border:`${T.lineWidth}px ${T.lineType} ${T.multipleItemBorderColor}`,borderRadius:T.borderRadiusSM,cursor:"default",transition:`font-size ${T.motionDurationSlow}, line-height ${T.motionDurationSlow}, height ${T.motionDurationSlow}`,userSelect:"none",marginInlineEnd:A*2,paddingInlineStart:T.paddingXS,paddingInlineEnd:T.paddingXS/2,[`${B}-disabled&`]:{color:T.multipleItemColorDisabled,borderColor:T.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:T.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,M.Ro)()),{display:"inline-flex",alignItems:"center",color:T.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${fe}`]:{verticalAlign:"-0.2em"},"&:hover":{color:T.colorIconHover}})},[`${ye}-item + ${ye}-item`]:{[`${B}-selection-search`]:{marginInlineStart:0}},[`${B}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:T.inputPaddingHorizontalBase-he,"\n &-input,\n &-mirror\n ":{height:Re,fontFamily:T.fontFamily,lineHeight:`${Re}px`,transition:`all ${T.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${B}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:T.inputPaddingHorizontalBase,insetInlineEnd:T.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${T.motionDurationSlow}`}}}}var y=T=>{const{componentCls:$}=T,B=(0,ce.TS)(T,{controlHeight:T.controlHeightSM,multipleSelectItemHeight:T.controlHeightXS,borderRadius:T.borderRadiusSM,borderRadiusSM:T.borderRadiusXS}),fe=(0,ce.TS)(T,{fontSize:T.fontSizeLG,controlHeight:T.controlHeightLG,multipleSelectItemHeight:T.multipleItemHeightLG,borderRadius:T.borderRadiusLG,borderRadiusSM:T.borderRadius}),[,ye]=L(T);return[v(T),v(B,"sm"),{[`${$}-multiple${$}-sm`]:{[`${$}-selection-placeholder`]:{insetInline:T.controlPaddingHorizontalSM-T.lineWidth},[`${$}-selection-search`]:{marginInlineStart:ye}}},v(fe,"lg")]};function b(T,$){const{componentCls:B,inputPaddingHorizontalBase:fe,borderRadius:ye}=T,Re=T.controlHeight-T.lineWidth*2,he=Math.ceil(T.fontSize*1.25),G=$?`${B}-${$}`:"";return{[`${B}-single${G}`]:{fontSize:T.fontSize,[`${B}-selector`]:Object.assign(Object.assign({},(0,M.Wf)(T)),{display:"flex",borderRadius:ye,[`${B}-selection-search`]:{position:"absolute",top:0,insetInlineStart:fe,insetInlineEnd:fe,bottom:0,"&-input":{width:"100%"}},[`
${B}-selection-item,
${B}-selection-placeholder
`]:{padding:0,lineHeight:`${Re}px`,transition:`all ${T.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Re}px`}},[`${B}-selection-item`]:{position:"relative",userSelect:"none"},[`${B}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${B}-selection-item:after`,`${B}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${B}-show-arrow ${B}-selection-item,
&${B}-show-arrow ${B}-selection-placeholder
`]:{paddingInlineEnd:he},[`&${B}-open ${B}-selection-item`]:{color:T.colorTextPlaceholder},[`&:not(${B}-customize-input)`]:{[`${B}-selector`]:{width:"100%",height:T.controlHeight,padding:`0 ${fe}px`,[`${B}-selection-search-input`]:{height:Re},"&:after":{lineHeight:`${Re}px`}}},[`&${B}-customize-input`]:{[`${B}-selector`]:{"&:after":{display:"none"},[`${B}-selection-search`]:{position:"static",width:"100%"},[`${B}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${fe}px`,"&:after":{display:"none"}}}}}}}function k(T){const{componentCls:$}=T,B=T.controlPaddingHorizontalSM-T.lineWidth;return[b(T),b((0,ce.TS)(T,{controlHeight:T.controlHeightSM,borderRadius:T.borderRadiusSM}),"sm"),{[`${$}-single${$}-sm`]:{[`&:not(${$}-customize-input)`]:{[`${$}-selection-search`]:{insetInlineStart:B,insetInlineEnd:B},[`${$}-selector`]:{padding:`0 ${B}px`},[`&${$}-show-arrow ${$}-selection-search`]:{insetInlineEnd:B+T.fontSize*1.5},[`
&${$}-show-arrow ${$}-selection-item,
&${$}-show-arrow ${$}-selection-placeholder
`]:{paddingInlineEnd:T.fontSize*1.5}}}},b((0,ce.TS)(T,{controlHeight:T.singleItemHeightLG,fontSize:T.fontSizeLG,borderRadius:T.borderRadiusLG}),"lg")]}const se=T=>{const{componentCls:$,selectorBg:B}=T;return{position:"relative",backgroundColor:B,border:`${T.lineWidth}px ${T.lineType} ${T.colorBorder}`,transition:`all ${T.motionDurationMid} ${T.motionEaseInOut}`,input:{cursor:"pointer"},[`${$}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${$}-disabled&`]:{color:T.colorTextDisabled,background:T.colorBgContainerDisabled,cursor:"not-allowed",[`${$}-multiple&`]:{background:T.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},P=function(T,$){let B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:fe,borderHoverColor:ye,outlineColor:Re,antCls:he}=$,G=B?{[`${fe}-selector`]:{borderColor:ye}}:{};return{[T]:{[`&:not(${fe}-disabled):not(${fe}-customize-input):not(${he}-pagination-size-changer)`]:Object.assign(Object.assign({},G),{[`${fe}-focused& ${fe}-selector`]:{borderColor:ye,boxShadow:`0 0 0 ${$.controlOutlineWidth}px ${Re}`,outline:0},[`&:hover ${fe}-selector`]:{borderColor:ye}})}}},N=T=>{const{componentCls:$}=T;return{[`${$}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},V=T=>{const{componentCls:$,inputPaddingHorizontalBase:B,iconCls:fe}=T;return{[$]:Object.assign(Object.assign({},(0,M.Wf)(T)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${$}-customize-input) ${$}-selector`]:Object.assign(Object.assign({},se(T)),N(T)),[`${$}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},M.vS),[`${$}-selection-placeholder`]:Object.assign(Object.assign({},M.vS),{flex:1,color:T.colorTextPlaceholder,pointerEvents:"none"}),[`${$}-arrow`]:Object.assign(Object.assign({},(0,M.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:B,height:T.fontSizeIcon,marginTop:-T.fontSizeIcon/2,color:T.colorTextQuaternary,fontSize:T.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[fe]:{verticalAlign:"top",transition:`transform ${T.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${$}-suffix)`]:{pointerEvents:"auto"}},[`${$}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${$}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:B,zIndex:1,display:"inline-block",width:T.fontSizeIcon,height:T.fontSizeIcon,marginTop:-T.fontSizeIcon/2,color:T.colorTextQuaternary,fontSize:T.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:T.clearBg,cursor:"pointer",opacity:0,transition:`color ${T.motionDurationMid} ease, opacity ${T.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:T.colorTextTertiary}},"&:hover":{[`${$}-clear`]:{opacity:1}}}),[`${$}-has-feedback`]:{[`${$}-clear`]:{insetInlineEnd:B+T.fontSize+T.paddingXS}}}},K=T=>{const{componentCls:$}=T;return[{[$]:{[`&-borderless ${$}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${$}-in-form-item`]:{width:"100%"}}},V(T),k(T),y(T),a(T),{[`${$}-rtl`]:{direction:"rtl"}},P($,(0,ce.TS)(T,{borderHoverColor:T.colorPrimaryHover,outlineColor:T.controlOutline})),P(`${$}-status-error`,(0,ce.TS)(T,{borderHoverColor:T.colorErrorHover,outlineColor:T.colorErrorOutline}),!0),P(`${$}-status-warning`,(0,ce.TS)(T,{borderHoverColor:T.colorWarningHover,outlineColor:T.colorWarningOutline}),!0),(0,Y.c)(T,{borderElCls:`${$}-selector`,focusElCls:`${$}-focused`})]};var x=(0,Te.Z)("Select",(T,$)=>{let{rootPrefixCls:B}=$;const fe=(0,ce.TS)(T,{rootPrefixCls:B,inputPaddingHorizontalBase:T.paddingSM-1,multipleSelectItemHeight:T.multipleItemHeight});return[K(fe)]},T=>{const{fontSize:$,lineHeight:B,controlHeight:fe,controlPaddingHorizontal:ye,zIndexPopupBase:Re,colorText:he,fontWeightStrong:G,controlItemBgActive:F,controlItemBgHover:le,colorBgContainer:D,colorFillSecondary:Q,controlHeightLG:H,controlHeightSM:g,colorBgContainerDisabled:E,colorTextDisabled:Z}=T;return{zIndexPopup:Re+50,optionSelectedColor:he,optionSelectedFontWeight:G,optionSelectedBg:F,optionActiveBg:le,optionPadding:`${(fe-$*B)/2}px ${ye}px`,optionFontSize:$,optionLineHeight:B,optionHeight:fe,selectorBg:D,clearBg:D,singleItemHeightLG:H,multipleItemBg:Q,multipleItemBorderColor:"transparent",multipleItemHeight:g,multipleItemHeightLG:fe,multipleSelectorBgDisabled:E,multipleItemColorDisabled:Z,multipleItemBorderColorDisabled:"transparent"}})},58582:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return Y}});const M=ce=>{const j={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:ce==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},j),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},j),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},j),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},j),{points:["br","tr"],offset:[0,-4]})}};function Y(ce,Te){return ce||M(Te)}},84443:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return M}});function M(Y,ce){return ce!==void 0?ce:Y!==null}},66339:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return _e}});var M=p(10402),Y=p(33130),ce=p(72119),Te=p(18290),j=p(50023),X=p(21970),ve=p(59301);function _e(a){let{suffixIcon:A,clearIcon:L,menuItemSelectedIcon:v,removeIcon:u,loading:y,multiple:b,hasFeedback:k,prefixCls:se,showSuffixIcon:P,feedbackIcon:N,showArrow:V,componentName:K}=a;const x=L!=null?L:ve.createElement(Y.Z,null),T=ye=>A===null&&!k&&!V?null:ve.createElement(ve.Fragment,null,P!==!1&&ye,k&&N);let $=null;if(A!==void 0)$=T(A);else if(y)$=T(ve.createElement(j.Z,{spin:!0}));else{const ye=`${se}-suffix`;$=Re=>{let{open:he,showSearch:G}=Re;return T(he&&G?ve.createElement(X.Z,{className:ye}):ve.createElement(Te.Z,{className:ye}))}}let B=null;v!==void 0?B=v:b?B=ve.createElement(M.Z,null):B=null;let fe=null;return u!==void 0?fe=u:fe=ve.createElement(ce.Z,null),{clearIcon:x,suffixIcon:$,itemIcon:B,removeIcon:fe}}},8378:function(Qt,et){"use strict";const p=M=>({[M.componentCls]:{[`${M.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${M.motionDurationMid} ${M.motionEaseInOut},
opacity ${M.motionDurationMid} ${M.motionEaseInOut} !important`}},[`${M.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${M.motionDurationMid} ${M.motionEaseInOut},
opacity ${M.motionDurationMid} ${M.motionEaseInOut} !important`}}});et.Z=p},92899:function(Qt,et,p){"use strict";p.d(et,{Fm:function(){return v}});var M=p(9792),Y=p(95406);const ce=new M.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Te=new M.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),j=new M.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),X=new M.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ve=new M.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),_e=new M.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),a=new M.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),A=new M.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),L={"move-up":{inKeyframes:a,outKeyframes:A},"move-down":{inKeyframes:ce,outKeyframes:Te},"move-left":{inKeyframes:j,outKeyframes:X},"move-right":{inKeyframes:ve,outKeyframes:_e}},v=(u,y)=>{const{antCls:b}=u,k=`${b}-${y}`,{inKeyframes:se,outKeyframes:P}=L[y];return[(0,Y.R)(k,se,P,u.motionDurationMid),{[`
${k}-enter,
${k}-appear
`]:{opacity:0,animationTimingFunction:u.motionEaseOutCirc},[`${k}-leave`]:{animationTimingFunction:u.motionEaseInOutCirc}}]}},13826:function(Qt,et,p){"use strict";p.d(et,{Qt:function(){return j},Uw:function(){return Te},fJ:function(){return ce},ly:function(){return X},oN:function(){return v}});var M=p(9792),Y=p(95406);const ce=new M.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Te=new M.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),j=new M.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),X=new M.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),ve=new M.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),_e=new M.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),a=new M.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),A=new M.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),L={"slide-up":{inKeyframes:ce,outKeyframes:Te},"slide-down":{inKeyframes:j,outKeyframes:X},"slide-left":{inKeyframes:ve,outKeyframes:_e},"slide-right":{inKeyframes:a,outKeyframes:A}},v=(u,y)=>{const{antCls:b}=u,k=`${b}-${y}`,{inKeyframes:se,outKeyframes:P}=L[y];return[(0,Y.R)(k,se,P,u.motionDurationMid),{[`
${k}-enter,
${k}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:u.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${k}-leave`]:{animationTimingFunction:u.motionEaseInQuint}}]}},19447:function(Qt,et,p){"use strict";p.d(et,{ZP:function(){return j},fS:function(){return ce},qN:function(){return Y}});var M=p(47585);const Y=8;function ce(X){const ve=Y,{contentRadius:_e,limitVerticalRadius:a}=X,A=_e>12?_e+2:12;return{dropdownArrowOffset:A,dropdownArrowOffsetVertical:a?ve:A}}function Te(X,ve){return X?ve:{}}function j(X,ve){const{componentCls:_e,sizePopupArrow:a,borderRadiusXS:A,borderRadiusOuter:L,boxShadowPopoverArrow:v}=X,{colorBg:u,contentRadius:y=X.borderRadiusLG,limitVerticalRadius:b,arrowDistance:k=0,arrowPlacement:se={left:!0,right:!0,top:!0,bottom:!0}}=ve,{dropdownArrowOffsetVertical:P,dropdownArrowOffset:N}=ce({contentRadius:y,limitVerticalRadius:b});return{[_e]:Object.assign(Object.assign(Object.assign(Object.assign({[`${_e}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,M.r)(a,A,L,u,v)),{"&:before":{background:u}})]},Te(!!se.top,{[[`&-placement-top ${_e}-arrow`,`&-placement-topLeft ${_e}-arrow`,`&-placement-topRight ${_e}-arrow`].join(",")]:{bottom:k,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${_e}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${_e}-arrow`]:{left:{_skip_check_:!0,value:N}},[`&-placement-topRight ${_e}-arrow`]:{right:{_skip_check_:!0,value:N}}})),Te(!!se.bottom,{[[`&-placement-bottom ${_e}-arrow`,`&-placement-bottomLeft ${_e}-arrow`,`&-placement-bottomRight ${_e}-arrow`].join(",")]:{top:k,transform:"translateY(-100%)"},[`&-placement-bottom ${_e}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${_e}-arrow`]:{left:{_skip_check_:!0,value:N}},[`&-placement-bottomRight ${_e}-arrow`]:{right:{_skip_check_:!0,value:N}}})),Te(!!se.left,{[[`&-placement-left ${_e}-arrow`,`&-placement-leftTop ${_e}-arrow`,`&-placement-leftBottom ${_e}-arrow`].join(",")]:{right:{_skip_check_:!0,value:k},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${_e}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${_e}-arrow`]:{top:P},[`&-placement-leftBottom ${_e}-arrow`]:{bottom:P}})),Te(!!se.right,{[[`&-placement-right ${_e}-arrow`,`&-placement-rightTop ${_e}-arrow`,`&-placement-rightBottom ${_e}-arrow`].join(",")]:{left:{_skip_check_:!0,value:k},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${_e}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${_e}-arrow`]:{top:P},[`&-placement-rightBottom ${_e}-arrow`]:{bottom:P}}))}}},47585:function(Qt,et,p){"use strict";p.d(et,{r:function(){return M}});const M=(Y,ce,Te,j,X)=>{const ve=Y/2,_e=0,a=ve,A=Te*1/Math.sqrt(2),L=ve-Te*(1-1/Math.sqrt(2)),v=ve-ce*(1/Math.sqrt(2)),u=Te*(Math.sqrt(2)-1)+ce*(1/Math.sqrt(2)),y=2*ve-v,b=u,k=2*ve-A,se=L,P=2*ve-_e,N=a,V=ve*Math.sqrt(2)+Te*(Math.sqrt(2)-2),K=Te*(Math.sqrt(2)-1);return{pointerEvents:"none",width:Y,height:Y,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:Y,height:Y/2,background:j,clipPath:{_multi_value_:!0,value:[`polygon(${K}px 100%, 50% ${K}px, ${2*ve-K}px 100%, ${K}px 100%)`,`path('M ${_e} ${a} A ${Te} ${Te} 0 0 0 ${A} ${L} L ${v} ${u} A ${ce} ${ce} 0 0 1 ${y} ${b} L ${k} ${se} A ${Te} ${Te} 0 0 0 ${P} ${N} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:V,height:V,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ce}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:X,zIndex:0,background:"transparent"}}}},33166:function(Qt,et,p){"use strict";p.d(et,{i:function(){return M}});const M=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},45157:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return Y}});var M=p(33166);function Y(ce,Te){return M.i.reduce((j,X)=>{const ve=ce[`${X}1`],_e=ce[`${X}3`],a=ce[`${X}6`],A=ce[`${X}7`];return Object.assign(Object.assign({},j),Te(X,{lightColor:ve,lightBorderColor:_e,darkColor:a,textColor:A}))},{})}},6848:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return Re}});var M=p(59301),Y=p(92310),ce=p.n(Y),Te=p(55477),j=p(35788),X=p(62892),ve=p(79676),_e=p(92343),a=p(36355),A=p(33234),L=p(88088),v=p(17313),u=p(29878),y=p(19447),b=p(45157),k=p(37613),se=p(83116);const P=he=>{const{componentCls:G,tooltipMaxWidth:F,tooltipColor:le,tooltipBg:D,tooltipBorderRadius:Q,zIndexPopup:H,controlHeight:g,boxShadowSecondary:E,paddingSM:Z,paddingXS:pe,tooltipRadiusOuter:ze}=he;return[{[G]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,v.Wf)(he)),{position:"absolute",zIndex:H,display:"block",width:"max-content",maxWidth:F,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":D,[`${G}-inner`]:{minWidth:g,minHeight:g,padding:`${Z/2}px ${pe}px`,color:le,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:D,borderRadius:Q,boxShadow:E,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${G}-inner`]:{borderRadius:Math.min(Q,y.qN)}},[`${G}-content`]:{position:"relative"}}),(0,b.Z)(he,(Ge,je)=>{let{darkColor:Ve}=je;return{[`&${G}-${Ge}`]:{[`${G}-inner`]:{backgroundColor:Ve},[`${G}-arrow`]:{"--antd-arrow-background-color":Ve}}}})),{"&-rtl":{direction:"rtl"}})},(0,y.ZP)((0,k.TS)(he,{borderRadiusOuter:ze}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:Q,limitVerticalRadius:!0}),{[`${G}-pure`]:{position:"relative",maxWidth:"none",margin:he.sizePopupArrow}}]};var N=(he,G)=>(0,se.Z)("Tooltip",le=>{if(G===!1)return[];const{borderRadius:D,colorTextLightSolid:Q,colorBgDefault:H,borderRadiusOuter:g}=le,E=(0,k.TS)(le,{tooltipMaxWidth:250,tooltipColor:Q,tooltipBorderRadius:D,tooltipBg:H,tooltipRadiusOuter:g>4?4:g});return[P(E),(0,u._y)(le,"zoom-big-fast")]},le=>{let{zIndexPopupBase:D,colorBgSpotlight:Q}=le;return{zIndexPopup:D+70,colorBgDefault:Q}},{resetStyle:!1})(he),V=p(36785);function K(he,G){const F=(0,V.o2)(G),le=ce()({[`${he}-${G}`]:G&&F}),D={},Q={};return G&&!F&&(D.background=G,Q["--antd-arrow-background-color"]=G),{className:le,overlayStyle:D,arrowStyle:Q}}var T=he=>{const{prefixCls:G,className:F,placement:le="top",title:D,color:Q,overlayInnerStyle:H}=he,{getPrefixCls:g}=M.useContext(a.E_),E=g("tooltip",G),[Z,pe]=N(E,!0),ze=K(E,Q),Ge=ze.arrowStyle,je=Object.assign(Object.assign({},H),ze.overlayStyle),Ve=ce()(pe,E,`${E}-pure`,`${E}-placement-${le}`,F,ze.className);return Z(M.createElement("div",{className:Ve,style:Ge},M.createElement("div",{className:`${E}-arrow`}),M.createElement(Te.G,Object.assign({},he,{className:pe,prefixCls:E,overlayInnerStyle:je}),D)))},$=function(he,G){var F={};for(var le in he)Object.prototype.hasOwnProperty.call(he,le)&&G.indexOf(le)<0&&(F[le]=he[le]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var D=0,le=Object.getOwnPropertySymbols(he);D<le.length;D++)G.indexOf(le[D])<0&&Object.prototype.propertyIsEnumerable.call(he,le[D])&&(F[le[D]]=he[le[D]]);return F};const B=(he,G)=>{const F={},le=Object.assign({},he);return G.forEach(D=>{he&&D in he&&(F[D]=he[D],delete le[D])}),{picked:F,omitted:le}};function fe(he,G){const F=he.type;if((F.__ANT_BUTTON===!0||he.type==="button")&&he.props.disabled||F.__ANT_SWITCH===!0&&(he.props.disabled||he.props.loading)||F.__ANT_RADIO===!0&&he.props.disabled){const{picked:le,omitted:D}=B(he.props.style,["position","left","right","top","bottom","float","display","zIndex"]),Q=Object.assign(Object.assign({display:"inline-block"},le),{cursor:"not-allowed",width:he.props.block?"100%":void 0}),H=Object.assign(Object.assign({},D),{pointerEvents:"none"}),g=(0,_e.Tm)(he,{style:H,className:null});return M.createElement("span",{style:Q,className:ce()(he.props.className,`${G}-disabled-compatible-wrapper`)},g)}return he}const ye=M.forwardRef((he,G)=>{var F,le;const{prefixCls:D,openClassName:Q,getTooltipContainer:H,overlayClassName:g,color:E,overlayInnerStyle:Z,children:pe,afterOpenChange:ze,afterVisibleChange:Ge,destroyTooltipOnHide:je,arrow:Ve=!0,title:mt,overlay:pt,builtinPlacements:nt,arrowPointAtCenter:Gt=!1,autoAdjustOverflow:Jt=!0}=he,sn=!!Ve,[,Ut]=(0,L.Z)(),{getPopupContainer:Xt,getPrefixCls:it,direction:te}=M.useContext(a.E_),ge=M.useRef(null),q=()=>{var We;(We=ge.current)===null||We===void 0||We.forceAlign()};M.useImperativeHandle(G,()=>({forceAlign:q,forcePopupAlign:()=>{q()}}));const[z,De]=(0,j.Z)(!1,{value:(F=he.open)!==null&&F!==void 0?F:he.visible,defaultValue:(le=he.defaultOpen)!==null&&le!==void 0?le:he.defaultVisible}),O=!mt&&!pt&&mt!==0,ae=We=>{var Je,ue;De(O?!1:We),O||((Je=he.onOpenChange)===null||Je===void 0||Je.call(he,We),(ue=he.onVisibleChange)===null||ue===void 0||ue.call(he,We))},J=M.useMemo(()=>{var We,Je;let ue=Gt;return typeof Ve=="object"&&(ue=(Je=(We=Ve.pointAtCenter)!==null&&We!==void 0?We:Ve.arrowPointAtCenter)!==null&&Je!==void 0?Je:Gt),nt||(0,ve.Z)({arrowPointAtCenter:ue,autoAdjustOverflow:Jt,arrowWidth:sn?Ut.sizePopupArrow:0,borderRadius:Ut.borderRadius,offset:Ut.marginXXS,visibleFirst:!0})},[Gt,Ve,nt,Ut]),oe=M.useMemo(()=>mt===0?mt:pt||mt||"",[pt,mt]),de=M.createElement(A.BR,null,typeof oe=="function"?oe():oe),{getPopupContainer:Ce,placement:xe="top",mouseEnterDelay:ke=.1,mouseLeaveDelay:Ie=.1,overlayStyle:Pe,rootClassName:Xe}=he,rt=$(he,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Ze=it("tooltip",D),ct=it(),ut=he["data-popover-inject"];let ot=z;!("open"in he)&&!("visible"in he)&&O&&(ot=!1);const Ot=fe((0,_e.l$)(pe)&&!(0,_e.M2)(pe)?pe:M.createElement("span",null,pe),Ze),_t=Ot.props,w=!_t.className||typeof _t.className=="string"?ce()(_t.className,Q||`${Ze}-open`):_t.className,[C,lt]=N(Ze,!ut),ie=K(Ze,E),Oe=ie.arrowStyle,mn=Object.assign(Object.assign({},Z),ie.overlayStyle),Fe=ce()(g,{[`${Ze}-rtl`]:te==="rtl"},ie.className,Xe,lt);return C(M.createElement(Te.Z,Object.assign({},rt,{showArrow:sn,placement:xe,mouseEnterDelay:ke,mouseLeaveDelay:Ie,prefixCls:Ze,overlayClassName:Fe,overlayStyle:Object.assign(Object.assign({},Oe),Pe),getTooltipContainer:Ce||H||Xt,ref:ge,builtinPlacements:J,overlay:de,visible:ot,onVisibleChange:ae,afterVisibleChange:ze!=null?ze:Ge,overlayInnerStyle:mn,arrowContent:M.createElement("span",{className:`${Ze}-arrow-content`}),motion:{motionName:(0,X.m)(ct,"zoom-big-fast",he.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!je}),ot?(0,_e.Tm)(Ot,{className:w}):Ot))});ye._InternalPanelDoNotUseOrYouWillBeFired=T;var Re=ye},98228:function(Qt,et,p){"use strict";p.d(et,{default:function(){return ue}});var M=p(92310),Y=p.n(M),ce=p(5891),Te=p(26390),j=p(57259),X=p(29043),ve=p(19149),_e=p(80665),a=p(77861),A=p(17115),L=p(90782),v=p(35788),u=p(51395),y=p(59301),b=function(W){var we=y.useRef({valueLabels:new Map});return y.useMemo(function(){var Be=we.current.valueLabels,U=new Map,at=W.map(function(Ee){var St,Pt=Ee.value,zt=(St=Ee.label)!==null&&St!==void 0?St:Be.get(Pt);return U.set(Pt,zt),(0,j.Z)((0,j.Z)({},Ee),{},{label:zt})});return we.current.valueLabels=U,[at]},[W])},k=function(W,we,Be,U){return y.useMemo(function(){var at=W.map(function(zt){var on=zt.value;return on}),Ee=we.map(function(zt){var on=zt.value;return on}),St=at.filter(function(zt){return!U[zt]});if(Be){var Pt=(0,L.S)(at,!0,U);at=Pt.checkedKeys,Ee=Pt.halfCheckedKeys}return[Array.from(new Set([].concat((0,Te.Z)(St),(0,Te.Z)(at)))),Ee]},[W,we,Be,U])},se=p(71430),P=function(W,we){return y.useMemo(function(){var Be=(0,se.I8)(W,{fieldNames:we,initWrapper:function(at){return(0,j.Z)((0,j.Z)({},at),{},{valueEntities:new Map})},processEntity:function(at,Ee){var St=at.node[we.value];if(0)var Pt;Ee.valueEntities.set(St,at)}});return Be},[W,we])},N=p(80962),V=p(38298),K=function(){return null},x=K,T=["children","value"];function $(W){return(0,V.Z)(W).map(function(we){if(!y.isValidElement(we)||!we.type)return null;var Be=we,U=Be.key,at=Be.props,Ee=at.children,St=at.value,Pt=(0,ve.Z)(at,T),zt=(0,j.Z)({key:U,value:St},Pt),on=$(Ee);return on.length&&(zt.children=on),zt}).filter(function(we){return we})}function B(W){if(!W)return W;var we=(0,j.Z)({},W);return"props"in we||Object.defineProperty(we,"props",{get:function(){return(0,u.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),we}}),we}function fe(W,we,Be,U,at,Ee){var St=null,Pt=null;function zt(){function on(It){var Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return It.map(function(ft,Ct){var Ne="".concat(Vt,"-").concat(Ct),Ae=ft[Ee.value],st=Be.includes(Ae),dt=on(ft[Ee.children]||[],Ne,st),kt=y.createElement(x,ft,dt.map(function(Bt){return Bt.node}));if(we===Ae&&(St=kt),st){var Lt={pos:Ne,node:kt,children:dt};return Ue||Pt.push(Lt),Lt}return null}).filter(function(ft){return ft})}Pt||(Pt=[],on(U),Pt.sort(function(It,Vt){var Ue=It.node.props.value,ft=Vt.node.props.value,Ct=Be.indexOf(Ue),Ne=Be.indexOf(ft);return Ct-Ne}))}Object.defineProperty(W,"triggerNode",{get:function(){return(0,u.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),zt(),St}}),Object.defineProperty(W,"allCheckedNodes",{get:function(){return(0,u.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),zt(),at?Pt:Pt.map(function(It){var Vt=It.node;return Vt})}})}var ye=function(W,we,Be){var U=Be.treeNodeFilterProp,at=Be.filterTreeNode,Ee=Be.fieldNames,St=Ee.children;return y.useMemo(function(){if(!we||at===!1)return W;var Pt;if(typeof at=="function")Pt=at;else{var zt=we.toUpperCase();Pt=function(Vt,Ue){var ft=Ue[U];return String(ft).toUpperCase().includes(zt)}}function on(It){var Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return It.reduce(function(Ue,ft){var Ct=ft[St],Ne=Vt||Pt(we,B(ft)),Ae=on(Ct||[],Ne);return(Ne||Ae.length)&&Ue.push((0,j.Z)((0,j.Z)({},ft),{},(0,N.Z)({isLeaf:void 0},St,Ae))),Ue},[])}return on(W)},[W,we,St,U,at])};function Re(W){var we=y.useRef();we.current=W;var Be=y.useCallback(function(){return we.current.apply(we,arguments)},[]);return Be}function he(W,we){var Be=we.id,U=we.pId,at=we.rootPId,Ee={},St=[],Pt=W.map(function(zt){var on=(0,j.Z)({},zt),It=on[Be];return Ee[It]=on,on.key=on.key||It,on});return Pt.forEach(function(zt){var on=zt[U],It=Ee[on];It&&(It.children=It.children||[],It.children.push(zt)),(on===at||!It&&at===null)&&St.push(zt)}),St}function G(W,we,Be){return y.useMemo(function(){return W?Be?he(W,(0,j.Z)({id:"id",pId:"pId",rootPId:null},Be!==!0?Be:{})):W:$(we)},[we,Be,W])}var F=y.createContext(null),le=F,D=p(85108),Q=p(79722),H=p(99581),g=y.createContext(null),E=g;function Z(W){return Array.isArray(W)?W:W!==void 0?[W]:[]}function pe(W){var we=W||{},Be=we.label,U=we.value,at=we.children,Ee=U||"value";return{_title:Be?[Be]:["title","label"],value:Ee,key:Ee,children:at||"children"}}function ze(W){return!W||W.disabled||W.disableCheckbox||W.checkable===!1}function Ge(W,we){var Be=[];function U(at){at.forEach(function(Ee){var St=Ee[we.children];St&&(Be.push(Ee[we.value]),U(St))})}return U(W),Be}function je(W){return W==null}var Ve={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},mt=function(we,Be){var U=(0,a.lk)(),at=U.prefixCls,Ee=U.multiple,St=U.searchValue,Pt=U.toggleOpen,zt=U.open,on=U.notFoundContent,It=y.useContext(E),Vt=It.virtual,Ue=It.listHeight,ft=It.listItemHeight,Ct=It.treeData,Ne=It.fieldNames,Ae=It.onSelect,st=It.dropdownMatchSelectWidth,dt=It.treeExpandAction,kt=y.useContext(le),Lt=kt.checkable,Bt=kt.checkedKeys,Nt=kt.halfCheckedKeys,en=kt.treeExpandedKeys,pn=kt.treeDefaultExpandAll,Tt=kt.treeDefaultExpandedKeys,yt=kt.onTreeExpand,Kt=kt.treeIcon,$t=kt.showTreeIcon,Zt=kt.switcherIcon,ln=kt.treeLine,Ln=kt.treeNodeFilterProp,yn=kt.loadData,Ft=kt.treeLoadedKeys,Qe=kt.treeMotion,tt=kt.onTreeLoad,vt=kt.keyEntities,bt=y.useRef(),ht=(0,Q.Z)(function(){return Ct},[zt,Ct],function(Ke,un){return un[0]&&Ke[1]!==un[1]}),Dt=y.useState(null),xt=(0,X.Z)(Dt,2),jt=xt[0],tn=xt[1],nn=vt[jt],In=y.useMemo(function(){return Lt?{checked:Bt,halfChecked:Nt}:null},[Lt,Bt,Nt]);y.useEffect(function(){if(zt&&!Ee&&Bt.length){var Ke;(Ke=bt.current)===null||Ke===void 0||Ke.scrollTo({key:Bt[0]}),tn(Bt[0])}},[zt]);var Dn=String(St).toLowerCase(),Fn=function(un){return Dn?String(un[Ln]).toLowerCase().includes(Dn):!1},cn=y.useState(Tt),rn=(0,X.Z)(cn,2),$n=rn[0],Sn=rn[1],Wn=y.useState(null),Cn=(0,X.Z)(Wn,2),Bn=Cn[0],zn=Cn[1],On=y.useMemo(function(){return en?(0,Te.Z)(en):St?Bn:$n},[$n,Bn,en,St]);y.useEffect(function(){St&&zn(Ge(Ct,Ne))},[St]);var Qn=function(un){Sn(un),zn(un),yt&&yt(un)},or=function(un){un.preventDefault()},Tn=function(un,Pn){var Kn=Pn.node;Lt&&ze(Kn)||(Ae(Kn.key,{selected:!Bt.includes(Kn.key)}),Ee||Pt(!1))};if(y.useImperativeHandle(Be,function(){var Ke;return{scrollTo:(Ke=bt.current)===null||Ke===void 0?void 0:Ke.scrollTo,onKeyDown:function(Pn){var Kn,Gn=Pn.which;switch(Gn){case D.Z.UP:case D.Z.DOWN:case D.Z.LEFT:case D.Z.RIGHT:(Kn=bt.current)===null||Kn===void 0||Kn.onKeyDown(Pn);break;case D.Z.ENTER:{if(nn){var nr=(nn==null?void 0:nn.node)||{},tr=nr.selectable,Hn=nr.value;tr!==!1&&Tn(null,{node:{key:jt},selected:!Bt.includes(Hn)})}break}case D.Z.ESC:Pt(!1)}},onKeyUp:function(){}}}),ht.length===0)return y.createElement("div",{role:"listbox",className:"".concat(at,"-empty"),onMouseDown:or},on);var qt={fieldNames:Ne};return Ft&&(qt.loadedKeys=Ft),On&&(qt.expandedKeys=On),y.createElement("div",{onMouseDown:or},nn&&zt&&y.createElement("span",{style:Ve,"aria-live":"assertive"},nn.node.value),y.createElement(H.Z,(0,ce.Z)({ref:bt,focusable:!1,prefixCls:"".concat(at,"-tree"),treeData:ht,height:Ue,itemHeight:ft,virtual:Vt!==!1&&st!==!1,multiple:Ee,icon:Kt,showIcon:$t,switcherIcon:Zt,showLine:ln,loadData:St?null:yn,motion:Qe,activeKey:jt,checkable:Lt,checkStrictly:!0,checkedKeys:In,selectedKeys:Lt?[]:Bt,defaultExpandAll:pn},qt,{onActiveChange:tn,onSelect:Tn,onCheck:Tn,onExpand:Qn,onLoad:tt,filterTreeNode:Fn,expandAction:dt})))},pt=y.forwardRef(mt);pt.displayName="OptionList";var nt=pt,Gt="SHOW_ALL",Jt="SHOW_PARENT",sn="SHOW_CHILD";function Ut(W,we,Be,U){var at=new Set(W);return we===sn?W.filter(function(Ee){var St=Be[Ee];return!(St&&St.children&&St.children.some(function(Pt){var zt=Pt.node;return at.has(zt[U.value])})&&St.children.every(function(Pt){var zt=Pt.node;return ze(zt)||at.has(zt[U.value])}))}):we===Jt?W.filter(function(Ee){var St=Be[Ee],Pt=St?St.parent:null;return!(Pt&&!ze(Pt.node)&&at.has(Pt.key))}):W}function Xt(W){var we=W.searchPlaceholder,Be=W.treeCheckStrictly,U=W.treeCheckable,at=W.labelInValue,Ee=W.value,St=W.multiple;warning(!we,"`searchPlaceholder` has been removed."),Be&&at===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(at||Be)&&warning(toArray(Ee).every(function(Pt){return Pt&&_typeof(Pt)==="object"&&"value"in Pt}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Be||St||U?warning(!Ee||Array.isArray(Ee),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(Ee),"`value` should not be array when `TreeSelect` is single mode.")}var it=null,te=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"];function ge(W){return!W||(0,_e.Z)(W)!=="object"}var q=y.forwardRef(function(W,we){var Be=W.id,U=W.prefixCls,at=U===void 0?"rc-tree-select":U,Ee=W.value,St=W.defaultValue,Pt=W.onChange,zt=W.onSelect,on=W.onDeselect,It=W.searchValue,Vt=W.inputValue,Ue=W.onSearch,ft=W.autoClearSearchValue,Ct=ft===void 0?!0:ft,Ne=W.filterTreeNode,Ae=W.treeNodeFilterProp,st=Ae===void 0?"value":Ae,dt=W.showCheckedStrategy,kt=W.treeNodeLabelProp,Lt=W.multiple,Bt=W.treeCheckable,Nt=W.treeCheckStrictly,en=W.labelInValue,pn=W.fieldNames,Tt=W.treeDataSimpleMode,yt=W.treeData,Kt=W.children,$t=W.loadData,Zt=W.treeLoadedKeys,ln=W.onTreeLoad,Ln=W.treeDefaultExpandAll,yn=W.treeExpandedKeys,Ft=W.treeDefaultExpandedKeys,Qe=W.onTreeExpand,tt=W.treeExpandAction,vt=W.virtual,bt=W.listHeight,ht=bt===void 0?200:bt,Dt=W.listItemHeight,xt=Dt===void 0?20:Dt,jt=W.onDropdownVisibleChange,tn=W.dropdownMatchSelectWidth,nn=tn===void 0?!0:tn,In=W.treeLine,Dn=W.treeIcon,Fn=W.showTreeIcon,cn=W.switcherIcon,rn=W.treeMotion,$n=(0,ve.Z)(W,te),Sn=(0,A.ZP)(Be),Wn=Bt&&!Nt,Cn=Bt||Nt,Bn=Nt||en,zn=Cn||Lt,On=(0,v.Z)(St,{value:Ee}),Qn=(0,X.Z)(On,2),or=Qn[0],Tn=Qn[1],qt=y.useMemo(function(){return Bt?dt||sn:Gt},[dt,Bt]),Ke=y.useMemo(function(){return pe(pn)},[JSON.stringify(pn)]),un=(0,v.Z)("",{value:It!==void 0?It:Vt,postState:function(Wt){return Wt||""}}),Pn=(0,X.Z)(un,2),Kn=Pn[0],Gn=Pn[1],nr=function(Wt){Gn(Wt),Ue==null||Ue(Wt)},tr=G(yt,Kt,Tt),Hn=P(tr,Ke),fn=Hn.keyEntities,dn=Hn.valueEntities,En=y.useCallback(function(mr){var Wt=[],sr=[];return mr.forEach(function(vr){dn.has(vr)?sr.push(vr):Wt.push(vr)}),{missingRawValues:Wt,existRawValues:sr}},[dn]),Vn=ye(tr,Kn,{fieldNames:Ke,treeNodeFilterProp:st,filterTreeNode:Ne}),ir=y.useCallback(function(mr){if(mr){if(kt)return mr[kt];for(var Wt=Ke._title,sr=0;sr<Wt.length;sr+=1){var vr=mr[Wt[sr]];if(vr!==void 0)return vr}}},[Ke,kt]),wr=y.useCallback(function(mr){var Wt=Z(mr);return Wt.map(function(sr){return ge(sr)?{value:sr}:sr})},[]),Lr=y.useCallback(function(mr){var Wt=wr(mr);return Wt.map(function(sr){var vr=sr.label,Rn=sr.value,Nn=sr.halfChecked,xn,bn=dn.get(Rn);if(bn){var Xn;vr=(Xn=vr)!==null&&Xn!==void 0?Xn:ir(bn.node),xn=bn.node.disabled}else if(vr===void 0){var lr=wr(or).find(function(Pr){return Pr.value===Rn});vr=lr.label}return{label:vr,value:Rn,halfChecked:Nn,disabled:xn}})},[dn,ir,wr,or]),An=y.useMemo(function(){return wr(or)},[wr,or]),hr=y.useMemo(function(){var mr=[],Wt=[];return An.forEach(function(sr){sr.halfChecked?Wt.push(sr):mr.push(sr)}),[mr,Wt]},[An]),ur=(0,X.Z)(hr,2),pr=ur[0],Zr=ur[1],zr=y.useMemo(function(){return pr.map(function(mr){return mr.value})},[pr]),br=k(pr,Zr,Wn,fn),Dr=(0,X.Z)(br,2),gr=Dr[0],jr=Dr[1],Vr=y.useMemo(function(){var mr=Ut(gr,qt,fn,Ke),Wt=mr.map(function(Nn){var xn,bn,Xn;return(xn=(bn=fn[Nn])===null||bn===void 0||(Xn=bn.node)===null||Xn===void 0?void 0:Xn[Ke.value])!==null&&xn!==void 0?xn:Nn}),sr=Wt.map(function(Nn){var xn=pr.find(function(bn){return bn.value===Nn});return{value:Nn,label:xn==null?void 0:xn.label}}),vr=Lr(sr),Rn=vr[0];return!zn&&Rn&&je(Rn.value)&&je(Rn.label)?[]:vr.map(function(Nn){var xn;return(0,j.Z)((0,j.Z)({},Nn),{},{label:(xn=Nn.label)!==null&&xn!==void 0?xn:Nn.value})})},[Ke,zn,gr,pr,Lr,qt,fn]),ii=b(Vr),Fr=(0,X.Z)(ii,1),ei=Fr[0],ar=Re(function(mr,Wt,sr){var vr=Lr(mr);if(Tn(vr),Ct&&Gn(""),Pt){var Rn=mr;if(Wn){var Nn=Ut(mr,qt,fn,Ke);Rn=Nn.map(function(Yr){var pi=dn.get(Yr);return pi?pi.node[Ke.value]:Yr})}var xn=Wt||{triggerValue:void 0,selected:void 0},bn=xn.triggerValue,Xn=xn.selected,lr=Rn;if(Nt){var Pr=Zr.filter(function(Yr){return!Rn.includes(Yr.value)});lr=[].concat((0,Te.Z)(lr),(0,Te.Z)(Pr))}var Tr=Lr(lr),Rr={preValue:pr,triggerValue:bn},Mr=!0;(Nt||sr==="selection"&&!Xn)&&(Mr=!1),fe(Rr,bn,mr,tr,Mr,Ke),Cn?Rr.checked=Xn:Rr.selected=Xn;var ui=Bn?Tr:Tr.map(function(Yr){return Yr.value});Pt(zn?ui:ui[0],Bn?null:Tr.map(function(Yr){return Yr.label}),Rr)}}),si=y.useCallback(function(mr,Wt){var sr,vr=Wt.selected,Rn=Wt.source,Nn=fn[mr],xn=Nn==null?void 0:Nn.node,bn=(sr=xn==null?void 0:xn[Ke.value])!==null&&sr!==void 0?sr:mr;if(!zn)ar([bn],{selected:!0,triggerValue:bn},"option");else{var Xn=vr?[].concat((0,Te.Z)(zr),[bn]):gr.filter(function(pi){return pi!==bn});if(Wn){var lr=En(Xn),Pr=lr.missingRawValues,Tr=lr.existRawValues,Rr=Tr.map(function(pi){return dn.get(pi).key}),Mr;if(vr){var ui=(0,L.S)(Rr,!0,fn);Mr=ui.checkedKeys}else{var Yr=(0,L.S)(Rr,{checked:!1,halfCheckedKeys:jr},fn);Mr=Yr.checkedKeys}Xn=[].concat((0,Te.Z)(Pr),(0,Te.Z)(Mr.map(function(pi){return fn[pi].node[Ke.value]})))}ar(Xn,{selected:vr,triggerValue:bn},Rn||"option")}vr||!zn?zt==null||zt(bn,B(xn)):on==null||on(bn,B(xn))},[En,dn,fn,Ke,zn,zr,ar,Wn,zt,on,gr,jr]),vi=y.useCallback(function(mr){if(jt){var Wt={};Object.defineProperty(Wt,"documentClickClose",{get:function(){return(0,u.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),jt(mr,Wt)}},[jt]),fi=Re(function(mr,Wt){var sr=mr.map(function(vr){return vr.value});if(Wt.type==="clear"){ar(sr,{},"selection");return}Wt.values.length&&si(Wt.values[0].value,{selected:!1,source:"selection"})}),Or=y.useMemo(function(){return{virtual:vt,dropdownMatchSelectWidth:nn,listHeight:ht,listItemHeight:xt,treeData:Vn,fieldNames:Ke,onSelect:si,treeExpandAction:tt}},[vt,nn,ht,xt,Vn,Ke,si,tt]),hi=y.useMemo(function(){return{checkable:Cn,loadData:$t,treeLoadedKeys:Zt,onTreeLoad:ln,checkedKeys:gr,halfCheckedKeys:jr,treeDefaultExpandAll:Ln,treeExpandedKeys:yn,treeDefaultExpandedKeys:Ft,onTreeExpand:Qe,treeIcon:Dn,treeMotion:rn,showTreeIcon:Fn,switcherIcon:cn,treeLine:In,treeNodeFilterProp:st,keyEntities:fn}},[Cn,$t,Zt,ln,gr,jr,Ln,yn,Ft,Qe,Dn,rn,Fn,cn,In,st,fn]);return y.createElement(E.Provider,{value:Or},y.createElement(le.Provider,{value:hi},y.createElement(a.Ac,(0,ce.Z)({ref:we},$n,{id:Sn,prefixCls:at,mode:zn?"multiple":void 0,displayValues:ei,onDisplayValuesChange:fi,searchValue:Kn,onSearch:nr,OptionList:nt,emptyOptions:!tr.length,onDropdownVisibleChange:vi,dropdownMatchSelectWidth:nn}))))}),z=q;z.TreeNode=x,z.SHOW_ALL=Gt,z.SHOW_PARENT=Jt,z.SHOW_CHILD=sn;var De=z,O=De,ae=p(64002),J=p(53487),oe=p(62892),de=p(19080),Ce=p(36355),xe=p(1684),ke=p(93891),Ie=p(19716),Pe=p(32441),Xe=p(14154),rt=p(58582),Ze=p(84443),ct=p(66339),ut=p(33234),ot=p(48610),Ot=p(98447),_t=p(37613),w=p(83116),C=p(20648);const lt=W=>{const{componentCls:we,treePrefixCls:Be,colorBgElevated:U}=W,at=`.${Be}`;return[{[`${we}-dropdown`]:[{padding:`${W.paddingXS}px ${W.paddingXS/2}px`},(0,C.Yk)(Be,(0,_t.TS)(W,{colorBgContainer:U})),{[at]:{borderRadius:0,[`${at}-list-holder-inner`]:{alignItems:"stretch",[`${at}-treenode`]:{[`${at}-node-content-wrapper`]:{flex:"auto"}}}}},(0,Ot.C2)(`${Be}-checkbox`,W),{"&-rtl":{direction:"rtl",[`${at}-switcher${at}-switcher_close`]:{[`${at}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function ie(W,we){return(0,w.Z)("TreeSelect",Be=>{const U=(0,_t.TS)(Be,{treePrefixCls:we});return[lt(U)]},C.TM)(W)}var Oe=function(W,we){var Be={};for(var U in W)Object.prototype.hasOwnProperty.call(W,U)&&we.indexOf(U)<0&&(Be[U]=W[U]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,U=Object.getOwnPropertySymbols(W);at<U.length;at++)we.indexOf(U[at])<0&&Object.prototype.propertyIsEnumerable.call(W,U[at])&&(Be[U[at]]=W[U[at]]);return Be};const mn=(W,we)=>{var Be,{prefixCls:U,size:at,disabled:Ee,bordered:St=!0,className:Pt,rootClassName:zt,treeCheckable:on,multiple:It,listHeight:Vt=256,listItemHeight:Ue=26,placement:ft,notFoundContent:Ct,switcherIcon:Ne,treeLine:Ae,getPopupContainer:st,popupClassName:dt,dropdownClassName:kt,treeIcon:Lt=!1,transitionName:Bt,choiceTransitionName:Nt="",status:en,treeExpandAction:pn,builtinPlacements:Tt,dropdownMatchSelectWidth:yt,popupMatchSelectWidth:Kt,allowClear:$t}=W,Zt=Oe(W,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear"]);const{getPopupContainer:ln,getPrefixCls:Ln,renderEmpty:yn,direction:Ft,virtual:Qe,popupMatchSelectWidth:tt,popupOverflow:vt}=y.useContext(Ce.E_),bt=Ln(),ht=Ln("select",U),Dt=Ln("select-tree",U),xt=Ln("tree-select",U),{compactSize:jt,compactItemClassnames:tn}=(0,ut.ri)(ht,Ft),[nn,In]=(0,Xe.Z)(ht),[Dn]=ie(xt,Dt),Fn=Y()(dt||kt,`${xt}-dropdown`,{[`${xt}-dropdown-rtl`]:Ft==="rtl"},zt,In),cn=!!(on||It),rn=(0,Ze.Z)(Zt.suffixIcon,Zt.showArrow),$n=(Be=Kt!=null?Kt:yt)!==null&&Be!==void 0?Be:tt,{status:Sn,hasFeedback:Wn,isFormItemInput:Cn,feedbackIcon:Bn}=y.useContext(Pe.aM),zn=(0,de.F)(Sn,en),{suffixIcon:On,removeIcon:Qn,clearIcon:or}=(0,ct.Z)(Object.assign(Object.assign({},Zt),{multiple:cn,showSuffixIcon:rn,hasFeedback:Wn,feedbackIcon:Bn,prefixCls:ht,componentName:"TreeSelect"})),Tn=$t===!0?{clearIcon:or}:$t;let qt;Ct!==void 0?qt=Ct:qt=(yn==null?void 0:yn("Select"))||y.createElement(ke.Z,{componentName:"Select"});const Ke=(0,ae.Z)(Zt,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),un=y.useMemo(()=>ft!==void 0?ft:Ft==="rtl"?"bottomRight":"bottomLeft",[ft,Ft]),Pn=(0,rt.Z)(Tt,vt),Kn=(0,Ie.Z)(dn=>{var En;return(En=at!=null?at:jt)!==null&&En!==void 0?En:dn}),Gn=y.useContext(xe.Z),nr=Ee!=null?Ee:Gn,tr=Y()(!U&&xt,{[`${ht}-lg`]:Kn==="large",[`${ht}-sm`]:Kn==="small",[`${ht}-rtl`]:Ft==="rtl",[`${ht}-borderless`]:!St,[`${ht}-in-form-item`]:Cn},(0,de.Z)(ht,zn,Wn),tn,Pt,zt,In),Hn=dn=>y.createElement(ot.Z,{prefixCls:Dt,switcherIcon:Ne,treeNodeProps:dn,showLine:Ae}),fn=y.createElement(O,Object.assign({virtual:Qe,disabled:nr},Ke,{dropdownMatchSelectWidth:$n,builtinPlacements:Pn,ref:we,prefixCls:ht,className:tr,listHeight:Vt,listItemHeight:Ue,treeCheckable:on&&y.createElement("span",{className:`${ht}-tree-checkbox-inner`}),treeLine:!!Ae,suffixIcon:On,multiple:cn,placement:un,removeIcon:Qn,allowClear:Tn,switcherIcon:Hn,showTreeIcon:Lt,notFoundContent:qt,getPopupContainer:st||ln,treeMotion:null,dropdownClassName:Fn,choiceTransitionName:(0,oe.m)(bt,"",Nt),transitionName:(0,oe.m)(bt,"slide-up",Bt),treeExpandAction:pn}));return nn(Dn(fn))},We=y.forwardRef(mn),Je=(0,J.Z)(We);We.TreeNode=x,We.SHOW_ALL=Gt,We.SHOW_PARENT=Jt,We.SHOW_CHILD=sn,We._InternalPanelDoNotUseOrYouWillBeFired=Je;var ue=We},86914:function(Qt,et,p){"use strict";p.d(et,{default:function(){return E}});var M=p(99581),Y=p(26390),ce=p(43971),Te=p(58358),j=p(5891),X=p(59301),ve={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"},_e=ve,a=p(88853),A=function(pe,ze){return X.createElement(a.Z,(0,j.Z)({},pe,{ref:ze,icon:_e}))},L=X.forwardRef(A),v=L,u=p(92310),y=p.n(u),b=p(35654),k=p(71430),se=p(36355),P=p(44757),N=p(62892),V=p(20648);const K=4;function x(Z){const{dropPosition:pe,dropLevelOffset:ze,prefixCls:Ge,indent:je,direction:Ve="ltr"}=Z,mt=Ve==="ltr"?"left":"right",pt=Ve==="ltr"?"right":"left",nt={[mt]:-ze*je+K,[pt]:0};switch(pe){case-1:nt.top=-3;break;case 1:nt.bottom=-3;break;default:nt.bottom=-3,nt[mt]=je+K;break}return X.createElement("div",{style:nt,className:`${Ge}-drop-indicator`})}var T=p(48610),B=X.forwardRef((Z,pe)=>{const{getPrefixCls:ze,direction:Ge,virtual:je,tree:Ve}=X.useContext(se.E_),{prefixCls:mt,className:pt,showIcon:nt=!1,showLine:Gt,switcherIcon:Jt,blockNode:sn=!1,children:Ut,checkable:Xt=!1,selectable:it=!0,draggable:te,motion:ge,style:q}=Z,z=ze("tree",mt),De=ze(),O=ge!=null?ge:Object.assign(Object.assign({},(0,N.Z)(De)),{motionAppear:!1}),ae=Object.assign(Object.assign({},Z),{checkable:Xt,selectable:it,showIcon:nt,motion:O,blockNode:sn,showLine:!!Gt,dropIndicatorRender:x}),[J,oe]=(0,V.ZP)(z),de=X.useMemo(()=>{if(!te)return!1;let xe={};switch(typeof te){case"function":xe.nodeDraggable=te;break;case"object":xe=Object.assign({},te);break;default:break}return xe.icon!==!1&&(xe.icon=xe.icon||X.createElement(P.Z,null)),xe},[te]),Ce=xe=>X.createElement(T.Z,{prefixCls:z,switcherIcon:Jt,treeNodeProps:xe,showLine:Gt});return J(X.createElement(M.Z,Object.assign({itemHeight:20,ref:pe,virtual:je},ae,{style:Object.assign(Object.assign({},Ve==null?void 0:Ve.style),q),prefixCls:z,className:y()({[`${z}-icon-hide`]:!nt,[`${z}-block-node`]:sn,[`${z}-unselectable`]:!it,[`${z}-rtl`]:Ge==="rtl"},Ve==null?void 0:Ve.className,pt,oe),direction:Ge,checkable:Xt&&X.createElement("span",{className:`${z}-checkbox-inner`}),selectable:it,switcherIcon:Ce,draggable:de}),Ut))}),fe;(function(Z){Z[Z.None=0]="None",Z[Z.Start=1]="Start",Z[Z.End=2]="End"})(fe||(fe={}));function ye(Z,pe){function ze(Ge){const{key:je,children:Ve}=Ge;pe(je,Ge)!==!1&&ye(Ve||[],pe)}Z.forEach(ze)}function Re(Z){let{treeData:pe,expandedKeys:ze,startKey:Ge,endKey:je}=Z;const Ve=[];let mt=fe.None;if(Ge&&Ge===je)return[Ge];if(!Ge||!je)return[];function pt(nt){return nt===Ge||nt===je}return ye(pe,nt=>{if(mt===fe.End)return!1;if(pt(nt)){if(Ve.push(nt),mt===fe.None)mt=fe.Start;else if(mt===fe.Start)return mt=fe.End,!1}else mt===fe.Start&&Ve.push(nt);return ze.includes(nt)}),Ve}function he(Z,pe){const ze=(0,Y.Z)(pe),Ge=[];return ye(Z,(je,Ve)=>{const mt=ze.indexOf(je);return mt!==-1&&(Ge.push(Ve),ze.splice(mt,1)),!!ze.length}),Ge}var G=function(Z,pe){var ze={};for(var Ge in Z)Object.prototype.hasOwnProperty.call(Z,Ge)&&pe.indexOf(Ge)<0&&(ze[Ge]=Z[Ge]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ge=Object.getOwnPropertySymbols(Z);je<Ge.length;je++)pe.indexOf(Ge[je])<0&&Object.prototype.propertyIsEnumerable.call(Z,Ge[je])&&(ze[Ge[je]]=Z[Ge[je]]);return ze};function F(Z){const{isLeaf:pe,expanded:ze}=Z;return pe?X.createElement(ce.Z,null):ze?X.createElement(Te.Z,null):X.createElement(v,null)}function le(Z){let{treeData:pe,children:ze}=Z;return pe||(0,k.zn)(ze)}const D=(Z,pe)=>{var{defaultExpandAll:ze,defaultExpandParent:Ge,defaultExpandedKeys:je}=Z,Ve=G(Z,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const mt=X.useRef(),pt=X.useRef(),nt=()=>{const{keyEntities:de}=(0,k.I8)(le(Ve));let Ce;return ze?Ce=Object.keys(de):Ge?Ce=(0,b.r7)(Ve.expandedKeys||je||[],de):Ce=Ve.expandedKeys||je,Ce},[Gt,Jt]=X.useState(Ve.selectedKeys||Ve.defaultSelectedKeys||[]),[sn,Ut]=X.useState(()=>nt());X.useEffect(()=>{"selectedKeys"in Ve&&Jt(Ve.selectedKeys)},[Ve.selectedKeys]),X.useEffect(()=>{"expandedKeys"in Ve&&Ut(Ve.expandedKeys)},[Ve.expandedKeys]);const Xt=(de,Ce)=>{var xe;return"expandedKeys"in Ve||Ut(de),(xe=Ve.onExpand)===null||xe===void 0?void 0:xe.call(Ve,de,Ce)},it=(de,Ce)=>{var xe;const{multiple:ke}=Ve,{node:Ie,nativeEvent:Pe}=Ce,{key:Xe=""}=Ie,rt=le(Ve),Ze=Object.assign(Object.assign({},Ce),{selected:!0}),ct=(Pe==null?void 0:Pe.ctrlKey)||(Pe==null?void 0:Pe.metaKey),ut=Pe==null?void 0:Pe.shiftKey;let ot;ke&&ct?(ot=de,mt.current=Xe,pt.current=ot,Ze.selectedNodes=he(rt,ot)):ke&&ut?(ot=Array.from(new Set([].concat((0,Y.Z)(pt.current||[]),(0,Y.Z)(Re({treeData:rt,expandedKeys:sn,startKey:Xe,endKey:mt.current}))))),Ze.selectedNodes=he(rt,ot)):(ot=[Xe],mt.current=Xe,pt.current=ot,Ze.selectedNodes=he(rt,ot)),(xe=Ve.onSelect)===null||xe===void 0||xe.call(Ve,ot,Ze),"selectedKeys"in Ve||Jt(ot)},{getPrefixCls:te,direction:ge}=X.useContext(se.E_),{prefixCls:q,className:z,showIcon:De=!0,expandAction:O="click"}=Ve,ae=G(Ve,["prefixCls","className","showIcon","expandAction"]),J=te("tree",q),oe=y()(`${J}-directory`,{[`${J}-directory-rtl`]:ge==="rtl"},z);return X.createElement(B,Object.assign({icon:F,ref:pe,blockNode:!0},ae,{showIcon:De,expandAction:O,prefixCls:J,className:oe,expandedKeys:sn,selectedKeys:Gt,onSelect:it,onExpand:Xt}))};var H=X.forwardRef(D);const g=B;g.DirectoryTree=H,g.TreeNode=M.O;var E=g},20648:function(Qt,et,p){"use strict";p.d(et,{TM:function(){return u},Yk:function(){return v}});var M=p(9792),Y=p(98447),ce=p(17313),Te=p(8378),j=p(37613),X=p(83116);const ve=new M.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),_e=(y,b)=>({[`.${y}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${b.motionDurationSlow}`}}}),a=(y,b)=>({[`.${y}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:b.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${b.lineWidthBold}px solid ${b.colorPrimary}`,borderRadius:"50%",content:'""'}}}),A=(y,b)=>{const{treeCls:k,treeNodeCls:se,treeNodePadding:P,titleHeight:N,nodeSelectedBg:V,nodeHoverBg:K}=b,x=b.paddingXS;return{[k]:Object.assign(Object.assign({},(0,ce.Wf)(b)),{background:b.colorBgContainer,borderRadius:b.borderRadius,transition:`background-color ${b.motionDurationSlow}`,[`&${k}-rtl`]:{[`${k}-switcher`]:{"&_close":{[`${k}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${k}-active-focused)`]:Object.assign({},(0,ce.oN)(b)),[`${k}-list-holder-inner`]:{alignItems:"flex-start"},[`&${k}-block-node`]:{[`${k}-list-holder-inner`]:{alignItems:"stretch",[`${k}-node-content-wrapper`]:{flex:"auto"},[`${se}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:P,insetInlineStart:0,border:`1px solid ${b.colorPrimary}`,opacity:0,animationName:ve,animationDuration:b.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${se}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${P}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${k}-node-content-wrapper`]:{color:b.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${k}-node-content-wrapper`]:Object.assign({},(0,ce.oN)(b)),[`&:not(${se}-disabled).filter-node ${k}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${k}-draggable-icon`]:{flexShrink:0,width:N,lineHeight:`${N}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${b.motionDurationSlow}`,[`${se}:hover &`]:{opacity:.45}},[`&${se}-disabled`]:{[`${k}-draggable-icon`]:{visibility:"hidden"}}}},[`${k}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:N}},[`${k}-draggable-icon`]:{visibility:"hidden"},[`${k}-switcher`]:Object.assign(Object.assign({},_e(y,b)),{position:"relative",flex:"none",alignSelf:"stretch",width:N,margin:0,lineHeight:`${N}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${k}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:b.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:N/2,bottom:-P,marginInlineStart:-1,borderInlineEnd:`1px solid ${b.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:N/2*.8,height:N/2,borderBottom:`1px solid ${b.colorBorder}`,content:'""'}}}),[`${k}-checkbox`]:{top:"initial",marginInlineEnd:x},[`${k}-node-content-wrapper, ${k}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:N,margin:0,padding:`0 ${b.paddingXS/2}px`,color:"inherit",lineHeight:`${N}px`,background:"transparent",borderRadius:b.borderRadius,cursor:"pointer",transition:`all ${b.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:K},[`&${k}-node-selected`]:{backgroundColor:V},[`${k}-iconEle`]:{display:"inline-block",width:N,height:N,lineHeight:`${N}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${k}-unselectable ${k}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${k}-node-content-wrapper`]:Object.assign({lineHeight:`${N}px`,userSelect:"none"},a(y,b)),[`${se}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${b.colorPrimary}`}},"&-show-line":{[`${k}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:N/2,bottom:-P,borderInlineEnd:`1px solid ${b.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${k}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${se}-leaf-last`]:{[`${k}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${N/2}px !important`}}}}})}},L=y=>{const{treeCls:b,treeNodeCls:k,treeNodePadding:se,directoryNodeSelectedBg:P,directoryNodeSelectedColor:N}=y;return{[`${b}${b}-directory`]:{[k]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:se,insetInlineStart:0,transition:`background-color ${y.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:y.controlItemBgHover}},"> *":{zIndex:1},[`${b}-switcher`]:{transition:`color ${y.motionDurationMid}`},[`${b}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${b}-node-selected`]:{color:N,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:P},[`${b}-switcher`]:{color:N},[`${b}-node-content-wrapper`]:{color:N,background:"transparent"}}}}}},v=(y,b)=>{const k=`.${y}`,se=`${k}-treenode`,P=b.paddingXS/2,N=(0,j.TS)(b,{treeCls:k,treeNodeCls:se,treeNodePadding:P});return[A(y,N),L(N)]},u=y=>{const{controlHeightSM:b}=y;return{titleHeight:b,nodeHoverBg:y.controlItemBgHover,nodeSelectedBg:y.controlItemBgActive}};et.ZP=(0,X.Z)("Tree",(y,b)=>{let{prefixCls:k}=b;return[{[y.componentCls]:(0,Y.C2)(`${k}-checkbox`,y)},v(k,y),(0,Te.Z)(y)]},y=>{const{colorTextLightSolid:b,colorPrimary:k}=y;return Object.assign(Object.assign({},u(y)),{directoryNodeSelectedColor:b,directoryNodeSelectedBg:k})})},48610:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return se}});var M=p(5891),Y=p(59301),ce={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"},Te=ce,j=p(88853),X=function(N,V){return Y.createElement(j.Z,(0,M.Z)({},N,{ref:V,icon:Te}))},ve=Y.forwardRef(X),_e=ve,a=p(43971),A=p(50023),L=p(77042),v=p(5527),u=p(92310),y=p.n(u),b=p(92343),se=P=>{const{prefixCls:N,switcherIcon:V,treeNodeProps:K,showLine:x}=P,{isLeaf:T,expanded:$,loading:B}=K;if(B)return Y.createElement(A.Z,{className:`${N}-switcher-loading-icon`});let fe;if(x&&typeof x=="object"&&(fe=x.showLeafIcon),T){if(!x)return null;if(typeof fe!="boolean"&&fe){const he=typeof fe=="function"?fe(K):fe,G=`${N}-switcher-line-custom-icon`;return(0,b.l$)(he)?(0,b.Tm)(he,{className:y()(he.props.className||"",G)}):he}return fe?Y.createElement(a.Z,{className:`${N}-switcher-line-icon`}):Y.createElement("span",{className:`${N}-switcher-leaf-line`})}const ye=`${N}-switcher-icon`,Re=typeof V=="function"?V(K):V;return(0,b.l$)(Re)?(0,b.Tm)(Re,{className:y()(Re.props.className||"",ye)}):Re!==void 0?Re:x?$?Y.createElement(L.Z,{className:`${N}-switcher-line-icon`}):Y.createElement(v.Z,{className:`${N}-switcher-line-icon`}):Y.createElement(_e,{className:ye})}},64018:function(){var Qt,et,p,M=!1,Y,ce;window.PR_SHOULD_USE_CONTINUATION=!0;var Te,j;(function(){var X=window,ve=["break,continue,do,else,for,if,return,while"],_e=[ve,"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"],a=[_e,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],A=[a,"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"],L=[a,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],v=[a,"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"],u="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",y=[a,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],b="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",k=[ve,"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=[ve,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],P=[ve,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],N=[A,v,L,y,b,k,se,P],V=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,K="str",x="kwd",T="com",$="typ",B="lit",fe="pun",ye="pln",Re="tag",he="dec",G="src",F="atn",le="atv",D="nocode",Q="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function H(te){for(var ge=0,q=!1,z=!1,De=0,O=te.length;De<O;++De){var ae=te[De];if(ae.ignoreCase)z=!0;else if(/[a-z]/i.test(ae.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){q=!0,z=!1;break}}var J={b:8,t:9,n:10,v:11,f:12,r:13};function oe(Ie){var Pe=Ie.charCodeAt(0);if(Pe!==92)return Pe;var Xe=Ie.charAt(1);return Pe=J[Xe],Pe||("0"<=Xe&&Xe<="7"?parseInt(Ie.substring(1),8):Xe==="u"||Xe==="x"?parseInt(Ie.substring(2),16):Ie.charCodeAt(1))}function de(Ie){if(Ie<32)return(Ie<16?"\\x0":"\\x")+Ie.toString(16);var Pe=String.fromCharCode(Ie);return Pe==="\\"||Pe==="-"||Pe==="]"||Pe==="^"?"\\"+Pe:Pe}function Ce(Ie){var Pe=Ie.substring(1,Ie.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")),Xe=[],rt=Pe[0]==="^",Ze=["["];rt&&Ze.push("^");for(var ct=rt?1:0,ut=Pe.length;ct<ut;++ct){var ot=Pe[ct];if(/\\[bdsw]/i.test(ot))Ze.push(ot);else{var Ot=oe(ot),_t;ct+2<ut&&Pe[ct+1]==="-"?(_t=oe(Pe[ct+2]),ct+=2):_t=Ot,Xe.push([Ot,_t]),_t<65||Ot>122||(_t<65||Ot>90||Xe.push([Math.max(65,Ot)|32,Math.min(_t,90)|32]),_t<97||Ot>122||Xe.push([Math.max(97,Ot)&-33,Math.min(_t,122)&-33]))}}Xe.sort(function(ie,Oe){return ie[0]-Oe[0]||Oe[1]-ie[1]});for(var w=[],C=[],ct=0;ct<Xe.length;++ct){var lt=Xe[ct];lt[0]<=C[1]+1?C[1]=Math.max(C[1],lt[1]):w.push(C=lt)}for(var ct=0;ct<w.length;++ct){var lt=w[ct];Ze.push(de(lt[0])),lt[1]>lt[0]&&(lt[1]+1>lt[0]&&Ze.push("-"),Ze.push(de(lt[1])))}return Ze.push("]"),Ze.join("")}function xe(Ie){for(var Pe=Ie.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")),Xe=Pe.length,rt=[],Ze=0,ct=0;Ze<Xe;++Ze){var ut=Pe[Ze];if(ut==="(")++ct;else if(ut.charAt(0)==="\\"){var ot=+ut.substring(1);ot&&(ot<=ct?rt[ot]=-1:Pe[Ze]=de(ot))}}for(var Ze=1;Ze<rt.length;++Ze)rt[Ze]===-1&&(rt[Ze]=++ge);for(var Ze=0,ct=0;Ze<Xe;++Ze){var ut=Pe[Ze];if(ut==="(")++ct,rt[ct]||(Pe[Ze]="(?:");else if(ut.charAt(0)==="\\"){var ot=+ut.substring(1);ot&&ot<=ct&&(Pe[Ze]="\\"+rt[ot])}}for(var Ze=0;Ze<Xe;++Ze)Pe[Ze]==="^"&&Pe[Ze+1]!=="^"&&(Pe[Ze]="");if(Ie.ignoreCase&&q)for(var Ze=0;Ze<Xe;++Ze){var ut=Pe[Ze],Ot=ut.charAt(0);ut.length>=2&&Ot==="["?Pe[Ze]=Ce(ut):Ot!=="\\"&&(Pe[Ze]=ut.replace(/[a-zA-Z]/g,function(C){var lt=C.charCodeAt(0);return"["+String.fromCharCode(lt&-33,lt|32)+"]"}))}return Pe.join("")}for(var ke=[],De=0,O=te.length;De<O;++De){var ae=te[De];if(ae.global||ae.multiline)throw new Error(""+ae);ke.push("(?:"+xe(ae)+")")}return new RegExp(ke.join("|"),z?"gi":"g")}function g(te,ge){var q=/(?:^|\s)nocode(?:\s|$)/,z=[],De=0,O=[],ae=0;function J(oe){var de=oe.nodeType;if(de==1){if(q.test(oe.className))return;for(var Ce=oe.firstChild;Ce;Ce=Ce.nextSibling)J(Ce);var xe=oe.nodeName.toLowerCase();(xe==="br"||xe==="li")&&(z[ae]=`
`,O[ae<<1]=De++,O[ae++<<1|1]=oe)}else if(de==3||de==4){var ke=oe.nodeValue;ke.length&&(ge?ke=ke.replace(/\r\n?/g,`
`):ke=ke.replace(/[ \t\r\n]+/g," "),z[ae]=ke,O[ae<<1]=De,De+=ke.length,O[ae++<<1|1]=oe)}}return J(te),{sourceCode:z.join("").replace(/\n$/,""),spans:O}}function E(te,ge,q,z,De){if(q){var O={sourceNode:te,pre:1,langExtension:null,numberLines:null,sourceCode:q,spans:null,basePos:ge,decorations:null};z(O),De.push.apply(De,O.decorations)}}var Z=/\S/;function pe(te){for(var ge=void 0,q=te.firstChild;q;q=q.nextSibling){var z=q.nodeType;ge=z===1?ge?te:q:z===3&&Z.test(q.nodeValue)?te:ge}return ge===te?void 0:ge}function ze(te,ge){var q={},z;(function(){for(var ae=te.concat(ge),J=[],oe={},de=0,Ce=ae.length;de<Ce;++de){var xe=ae[de],ke=xe[3];if(ke)for(var Ie=ke.length;--Ie>=0;)q[ke.charAt(Ie)]=xe;var Pe=xe[1],Xe=""+Pe;oe.hasOwnProperty(Xe)||(J.push(Pe),oe[Xe]=null)}J.push(/[\0-\uffff]/),z=H(J)})();var De=ge.length,O=function(ae){for(var J=ae.sourceCode,oe=ae.basePos,de=ae.sourceNode,Ce=[oe,ye],xe=0,ke=J.match(z)||[],Ie={},Pe=0,Xe=ke.length;Pe<Xe;++Pe){var rt=ke[Pe],Ze=Ie[rt],ct=void 0,ut;if(typeof Ze=="string")ut=!1;else{var ot=q[rt.charAt(0)];if(ot)ct=rt.match(ot[1]),Ze=ot[0];else{for(var Ot=0;Ot<De;++Ot)if(ot=ge[Ot],ct=rt.match(ot[1]),ct){Ze=ot[0];break}ct||(Ze=ye)}ut=Ze.length>=5&&Ze.substring(0,5)==="lang-",ut&&!(ct&&typeof ct[1]=="string")&&(ut=!1,Ze=G),ut||(Ie[rt]=Ze)}var _t=xe;if(xe+=rt.length,!ut)Ce.push(oe+_t,Ze);else{var w=ct[1],C=rt.indexOf(w),lt=C+w.length;ct[2]&&(lt=rt.length-ct[2].length,C=lt-w.length);var ie=Ze.substring(5);E(de,oe+_t,rt.substring(0,C),O,Ce),E(de,oe+_t+C,w,Gt(ie,w),Ce),E(de,oe+_t+lt,rt.substring(lt),O,Ce)}}ae.decorations=Ce};return O}function Ge(te){var ge=[],q=[];te.tripleQuotedStrings?ge.push([K,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):te.multiLineStrings?ge.push([K,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):ge.push([K,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),te.verbatimStrings&&q.push([K,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var z=te.hashComments;z&&(te.cStyleComments?(z>1?ge.push([T,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):ge.push([T,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),q.push([K,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):ge.push([T,/^#[^\r\n]*/,null,"#"])),te.cStyleComments&&(q.push([T,/^\/\/[^\r\n]*/,null]),q.push([T,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var De=te.regexLiterals;if(De){var O=De>1?"":`
\r`,ae=O?".":"[\\S\\s]",J="/(?=[^/*"+O+"])(?:[^/\\x5B\\x5C"+O+"]|\\x5C"+ae+"|\\x5B(?:[^\\x5C\\x5D"+O+"]|\\x5C"+ae+")*(?:\\x5D|$))+/";q.push(["lang-regex",RegExp("^"+Q+"("+J+")")])}var oe=te.types;oe&&q.push([$,oe]);var de=(""+te.keywords).replace(/^ | $/g,"");de.length&&q.push([x,new RegExp("^(?:"+de.replace(/[\s,]+/g,"|")+")\\b"),null]),ge.push([ye,/^\s+/,null,` \r
\xA0`]);var Ce="^.[^\\s\\w.$@'\"`/\\\\]*";return te.regexLiterals&&(Ce+="(?!s*/)"),q.push([B,/^@[a-z_$][a-z_$@0-9]*/i,null],[$,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[ye,/^[a-z_$][a-z_$@0-9]*/i,null],[B,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[ye,/^\\[\s\S]?/,null],[fe,new RegExp(Ce),null]),ze(ge,q)}var je=Ge({keywords:N,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Ve(te,ge,q){for(var z=/(?:^|\s)nocode(?:\s|$)/,De=/\r\n?|\n/,O=te.ownerDocument,ae=O.createElement("li");te.firstChild;)ae.appendChild(te.firstChild);var J=[ae];function oe(Pe){var Xe=Pe.nodeType;if(Xe==1&&!z.test(Pe.className))if(Pe.nodeName==="br")de(Pe),Pe.parentNode&&Pe.parentNode.removeChild(Pe);else for(var rt=Pe.firstChild;rt;rt=rt.nextSibling)oe(rt);else if((Xe==3||Xe==4)&&q){var Ze=Pe.nodeValue,ct=Ze.match(De);if(ct){var ut=Ze.substring(0,ct.index);Pe.nodeValue=ut;var ot=Ze.substring(ct.index+ct[0].length);if(ot){var Ot=Pe.parentNode;Ot.insertBefore(O.createTextNode(ot),Pe.nextSibling)}de(Pe),ut||Pe.parentNode.removeChild(Pe)}}}function de(Pe){for(;!Pe.nextSibling;)if(Pe=Pe.parentNode,!Pe)return;function Xe(ct,ut){var ot=ut?ct.cloneNode(!1):ct,Ot=ct.parentNode;if(Ot){var _t=Xe(Ot,1),w=ct.nextSibling;_t.appendChild(ot);for(var C=w;C;C=w)w=C.nextSibling,_t.appendChild(C)}return ot}for(var rt=Xe(Pe.nextSibling,0),Ze;(Ze=rt.parentNode)&&Ze.nodeType===1;)rt=Ze;J.push(rt)}for(var Ce=0;Ce<J.length;++Ce)oe(J[Ce]);ge===(ge|0)&&J[0].setAttribute("value",ge);var xe=O.createElement("ol");xe.className="linenums";for(var ke=Math.max(0,ge-1|0)||0,Ce=0,Ie=J.length;Ce<Ie;++Ce)ae=J[Ce],ae.className="L"+(Ce+ke)%10,ae.firstChild||ae.appendChild(O.createTextNode("\xA0")),xe.appendChild(ae);te.appendChild(xe)}function mt(te){var ge=/\bMSIE\s(\d+)/.exec(navigator.userAgent);ge=ge&&+ge[1]<=8;var q=/\n/g,z=te.sourceCode,De=z.length,O=0,ae=te.spans,J=ae.length,oe=0,de=te.decorations,Ce=de.length,xe=0;de[Ce]=De;var ke,Ie;for(Ie=ke=0;Ie<Ce;)de[Ie]!==de[Ie+2]?(de[ke++]=de[Ie++],de[ke++]=de[Ie++]):Ie+=2;for(Ce=ke,Ie=ke=0;Ie<Ce;){for(var Pe=de[Ie],Xe=de[Ie+1],rt=Ie+2;rt+2<=Ce&&de[rt+1]===Xe;)rt+=2;de[ke++]=Pe,de[ke++]=Xe,Ie=rt}Ce=de.length=ke;var Ze=te.sourceNode,ct="";Ze&&(ct=Ze.style.display,Ze.style.display="none");try{for(var ut=null;oe<J;){var ot=ae[oe],Ot=ae[oe+2]||De,_t=de[xe+2]||De,rt=Math.min(Ot,_t),w=ae[oe+1],C;if(w.nodeType!==1&&(C=z.substring(O,rt))){ge&&(C=C.replace(q,"\r")),w.nodeValue=C;var lt=w.ownerDocument,ie=lt.createElement("span");ie.className=de[xe+1];var Oe=w.parentNode;Oe.replaceChild(ie,w),ie.appendChild(w),O<Ot&&(ae[oe+1]=w=lt.createTextNode(z.substring(rt,Ot)),Oe.insertBefore(w,ie.nextSibling))}O=rt,O>=Ot&&(oe+=2),O>=_t&&(xe+=2)}}finally{Ze&&(Ze.style.display=ct)}}var pt={};function nt(te,ge){for(var q=ge.length;--q>=0;){var z=ge[q];pt.hasOwnProperty(z)?X.console&&console.warn("cannot override language handler %s",z):pt[z]=te}}function Gt(te,ge){return te&&pt.hasOwnProperty(te)||(te=/^\s*</.test(ge)?"default-markup":"default-code"),pt[te]}nt(je,["default-code"]),nt(ze([],[[ye,/^[^<?]+/],[he,/^<!\w[^>]*(?:>|$)/],[T,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[fe,/^(?:<[%?]|[%?]>)/],["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"]),nt(ze([[ye,/^[\s]+/,null,` \r
`],[le,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[Re,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[F,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[fe,/^[=<>\/]+/],["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"]),nt(ze([],[[le,/^[\s\S]+/]]),["uq.val"]),nt(Ge({keywords:A,hashComments:!0,cStyleComments:!0,types:V}),["c","cc","cpp","cxx","cyc","m"]),nt(Ge({keywords:"null,true,false"}),["json"]),nt(Ge({keywords:v,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:V}),["cs"]),nt(Ge({keywords:L,cStyleComments:!0}),["java"]),nt(Ge({keywords:P,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),nt(Ge({keywords:k,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),nt(Ge({keywords:b,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),nt(Ge({keywords:se,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),nt(Ge({keywords:y,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),nt(Ge({keywords:u,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),nt(ze([],[[K,/^[\s\S]+/]]),["regex"]);function Jt(te){var ge=te.langExtension;try{var q=g(te.sourceNode,te.pre),z=q.sourceCode;te.sourceCode=z,te.spans=q.spans,te.basePos=0,Gt(ge,z)(te),mt(te)}catch(De){X.console&&console.log(De&&De.stack||De)}}function sn(te,ge,q){var z=q||!1,De=ge||null,O=document.createElement("div");O.innerHTML="<pre>"+te+"</pre>",O=O.firstChild,z&&Ve(O,z,!0);var ae={langExtension:De,numberLines:z,sourceNode:O,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Jt(ae),O.innerHTML}function Ut(te,ge){var q=ge||document.body,z=q.ownerDocument||document;function De(ot){return q.getElementsByTagName(ot)}for(var O=[De("pre"),De("code"),De("xmp")],ae=[],J=0;J<O.length;++J)for(var oe=0,de=O[J].length;oe<de;++oe)ae.push(O[J][oe]);O=null;var Ce=Date;Ce.now||(Ce={now:function(){return+new Date}});var xe=0,ke=/\blang(?:uage)?-([\w.]+)(?!\S)/,Ie=/\bprettyprint\b/,Pe=/\bprettyprinted\b/,Xe=/pre|xmp/i,rt=/^code$/i,Ze=/^(?:pre|code|xmp)$/i,ct={};function ut(){for(var ot=X.PR_SHOULD_USE_CONTINUATION?Ce.now()+250:1/0;xe<ae.length&&Ce.now()<ot;xe++){for(var Ot=ae[xe],_t=ct,w=Ot;w=w.previousSibling;){var C=w.nodeType,lt=(C===7||C===8)&&w.nodeValue;if(lt?!/^\??prettify\b/.test(lt):C!==3||/\S/.test(w.nodeValue))break;if(lt){_t={},lt.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Ee,St,Pt){_t[St]=Pt});break}}var ie=Ot.className;if((_t!==ct||Ie.test(ie))&&!Pe.test(ie)){for(var Oe=!1,mn=Ot.parentNode;mn;mn=mn.parentNode){var Fe=mn.tagName;if(Ze.test(Fe)&&mn.className&&Ie.test(mn.className)){Oe=!0;break}}if(!Oe){Ot.className+=" prettyprinted";var We=_t.lang;if(!We){We=ie.match(ke);var Je;!We&&(Je=pe(Ot))&&rt.test(Je.tagName)&&(We=Je.className.match(ke)),We&&(We=We[1])}var ue;if(Xe.test(Ot.tagName))ue=1;else{var W=Ot.currentStyle,we=z.defaultView,Be=W?W.whiteSpace:we&&we.getComputedStyle?we.getComputedStyle(Ot,null).getPropertyValue("white-space"):0;ue=Be&&Be.substring(0,3)==="pre"}var U=_t.linenums;(U=U==="true"||+U)||(U=ie.match(/\blinenums\b(?::(\d+))?/),U=U?U[1]&&U[1].length?+U[1]:!0:!1),U&&Ve(Ot,U,ue);var at={langExtension:We,sourceNode:Ot,numberLines:U,pre:ue,sourceCode:null,basePos:null,spans:null,decorations:null};Jt(at)}}}xe<ae.length?X.setTimeout(ut,250):typeof te=="function"&&te()}ut()}var Xt=X.PR={createSimpleLexer:ze,registerLangHandler:nt,sourceDecorator:Ge,PR_ATTRIB_NAME:F,PR_ATTRIB_VALUE:le,PR_COMMENT:T,PR_DECLARATION:he,PR_KEYWORD:x,PR_LITERAL:B,PR_NOCODE:D,PR_PLAIN:ye,PR_PUNCTUATION:fe,PR_SOURCE:G,PR_STRING:K,PR_TAG:Re,PR_TYPE:$,prettyPrintOne:M?X.prettyPrintOne=sn:Te=sn,prettyPrint:j=M?X.prettyPrint=Ut:j=Ut},it=X.define;typeof it=="function"&&it.amd&&it("google-code-prettify",[],function(){return Xt})})()},25769:function(Qt,et,p){"use strict";var M=p(98040),Y={"text/plain":"Text","text/html":"Url",default:"Text"},ce="Copy to clipboard: #{key}, Enter";function Te(X){var ve=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return X.replace(/#{\s*key\s*}/g,ve)}function j(X,ve){var _e,a,A,L,v,u,y=!1;ve||(ve={}),_e=ve.debug||!1;try{A=M(),L=document.createRange(),v=document.getSelection(),u=document.createElement("span"),u.textContent=X,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",function(k){if(k.stopPropagation(),ve.format)if(k.preventDefault(),typeof k.clipboardData=="undefined"){_e&&console.warn("unable to use e.clipboardData"),_e&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var se=Y[ve.format]||Y.default;window.clipboardData.setData(se,X)}else k.clipboardData.clearData(),k.clipboardData.setData(ve.format,X);ve.onCopy&&(k.preventDefault(),ve.onCopy(k.clipboardData))}),document.body.appendChild(u),L.selectNodeContents(u),v.addRange(L);var b=document.execCommand("copy");if(!b)throw new Error("copy command was unsuccessful");y=!0}catch(k){_e&&console.error("unable to copy using execCommand: ",k),_e&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(ve.format||"text",X),ve.onCopy&&ve.onCopy(window.clipboardData),y=!0}catch(se){_e&&console.error("unable to copy using clipboardData: ",se),_e&&console.error("falling back to prompt"),a=Te("message"in ve?ve.message:ce),window.prompt(a,X)}}finally{v&&(typeof v.removeRange=="function"?v.removeRange(L):v.removeAllRanges()),u&&document.body.removeChild(u),A()}return y}Qt.exports=j},86061:function(Qt,et,p){"use strict";var M,Y;function ce(Te,j,X){var ve=function(_e,a){return Te.js_beautify(_e,a)};return ve.js=Te.js_beautify,ve.css=j.css_beautify,ve.html=X.html_beautify,ve.js_beautify=Te.js_beautify,ve.css_beautify=j.css_beautify,ve.html_beautify=X.html_beautify,ve}M=[p(32328),p(34655),p(32708)],Y=function(Te,j,X){return ce(Te,j,X)}.apply(et,M),Y!==void 0&&(Qt.exports=Y)},34655:function(Qt,et){var p,M;(function(){var Y;(function(){"use strict";var Te=[,,function(_e){function a(v){this.__parent=v,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=[]}a.prototype.clone_empty=function(){var v=new a(this.__parent);return v.set_indent(this.__indent_count,this.__alignment_count),v},a.prototype.item=function(v){return v<0?this.__items[this.__items.length+v]:this.__items[v]},a.prototype.has_match=function(v){for(var u=this.__items.length-1;u>=0;u--)if(this.__items[u].match(v))return!0;return!1},a.prototype.set_indent=function(v,u){this.is_empty()&&(this.__indent_count=v||0,this.__alignment_count=u||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},a.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)},a.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},a.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var v=this.__parent.current_line;return v.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),v.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),v.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,v.__items[0]===" "&&(v.__items.splice(0,1),v.__character_count-=1),!0}return!1},a.prototype.is_empty=function(){return this.__items.length===0},a.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},a.prototype.push=function(v){this.__items.push(v);var u=v.lastIndexOf(`
`);u!==-1?this.__character_count=v.length-u:this.__character_count+=v.length},a.prototype.pop=function(){var v=null;return this.is_empty()||(v=this.__items.pop(),this.__character_count-=v.length),v},a.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},a.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},a.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},a.prototype.toString=function(){var v="";return this.is_empty()?this.__parent.indent_empty_lines&&(v=this.__parent.get_indent_string(this.__indent_count)):(v=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),v+=this.__items.join("")),v};function A(v,u){this.__cache=[""],this.__indent_size=v.indent_size,this.__indent_string=v.indent_char,v.indent_with_tabs||(this.__indent_string=new Array(v.indent_size+1).join(v.indent_char)),u=u||"",v.indent_level>0&&(u=new Array(v.indent_level+1).join(this.__indent_string)),this.__base_string=u,this.__base_string_length=u.length}A.prototype.get_indent_size=function(v,u){var y=this.__base_string_length;return u=u||0,v<0&&(y=0),y+=v*this.__indent_size,y+=u,y},A.prototype.get_indent_string=function(v,u){var y=this.__base_string;return u=u||0,v<0&&(v=0,y=""),u+=v*this.__indent_size,this.__ensure_cache(u),y+=this.__cache[u],y},A.prototype.__ensure_cache=function(v){for(;v>=this.__cache.length;)this.__add_column()},A.prototype.__add_column=function(){var v=this.__cache.length,u=0,y="";this.__indent_size&&v>=this.__indent_size&&(u=Math.floor(v/this.__indent_size),v-=u*this.__indent_size,y=new Array(u+1).join(this.__indent_string)),v&&(y+=new Array(v+1).join(" ")),this.__cache.push(y)};function L(v,u){this.__indent_cache=new A(v,u),this.raw=!1,this._end_with_newline=v.end_with_newline,this.indent_size=v.indent_size,this.wrap_line_length=v.wrap_line_length,this.indent_empty_lines=v.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new a(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}L.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},L.prototype.get_line_number=function(){return this.__lines.length},L.prototype.get_indent_string=function(v,u){return this.__indent_cache.get_indent_string(v,u)},L.prototype.get_indent_size=function(v,u){return this.__indent_cache.get_indent_size(v,u)},L.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},L.prototype.add_new_line=function(v){return this.is_empty()||!v&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},L.prototype.get_code=function(v){this.trim(!0);var u=this.current_line.pop();u&&(u[u.length-1]===`
`&&(u=u.replace(/\n+$/g,"")),this.current_line.push(u)),this._end_with_newline&&this.__add_outputline();var y=this.__lines.join(`
`);return v!==`
`&&(y=y.replace(/[\n]/g,v)),y},L.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},L.prototype.set_indent=function(v,u){return v=v||0,u=u||0,this.next_line.set_indent(v,u),this.__lines.length>1?(this.current_line.set_indent(v,u),!0):(this.current_line.set_indent(),!1)},L.prototype.add_raw_token=function(v){for(var u=0;u<v.newlines;u++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(v.whitespace_before),this.current_line.push(v.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},L.prototype.add_token=function(v){this.__add_space_before_token(),this.current_line.push(v),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},L.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(" "))},L.prototype.remove_indent=function(v){for(var u=this.__lines.length;v<u;)this.__lines[v]._remove_indent(),v++;this.current_line._remove_wrap_indent()},L.prototype.trim=function(v){for(v=v===void 0?!1:v,this.current_line.trim();v&&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},L.prototype.just_added_newline=function(){return this.current_line.is_empty()},L.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},L.prototype.ensure_empty_line_above=function(v,u){for(var y=this.__lines.length-2;y>=0;){var b=this.__lines[y];if(b.is_empty())break;if(b.item(0).indexOf(v)!==0&&b.item(-1)!==u){this.__lines.splice(y+1,0,new a(this)),this.previous_line=this.__lines[this.__lines.length-2];break}y--}},_e.exports.Output=L},,,,function(_e){function a(v,u){this.raw_options=A(v,u),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"])}a.prototype._get_array=function(v,u){var y=this.raw_options[v],b=u||[];return typeof y=="object"?y!==null&&typeof y.concat=="function"&&(b=y.concat()):typeof y=="string"&&(b=y.split(/[^a-zA-Z0-9_\/\-]+/)),b},a.prototype._get_boolean=function(v,u){var y=this.raw_options[v],b=y===void 0?!!u:!!y;return b},a.prototype._get_characters=function(v,u){var y=this.raw_options[v],b=u||"";return typeof y=="string"&&(b=y.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),b},a.prototype._get_number=function(v,u){var y=this.raw_options[v];u=parseInt(u,10),isNaN(u)&&(u=0);var b=parseInt(y,10);return isNaN(b)&&(b=u),b},a.prototype._get_selection=function(v,u,y){var b=this._get_selection_list(v,u,y);if(b.length!==1)throw new Error("Invalid Option Value: The option '"+v+`' can only be one of the following values:
`+u+`
You passed in: '`+this.raw_options[v]+"'");return b[0]},a.prototype._get_selection_list=function(v,u,y){if(!u||u.length===0)throw new Error("Selection list cannot be empty.");if(y=y||[u[0]],!this._is_valid_selection(y,u))throw new Error("Invalid Default Value!");var b=this._get_array(v,y);if(!this._is_valid_selection(b,u))throw new Error("Invalid Option Value: The option '"+v+`' can contain only the following values:
`+u+`
You passed in: '`+this.raw_options[v]+"'");return b},a.prototype._is_valid_selection=function(v,u){return v.length&&u.length&&!v.some(function(y){return u.indexOf(y)===-1})};function A(v,u){var y={};v=L(v);var b;for(b in v)b!==u&&(y[b]=v[b]);if(u&&v[u])for(b in v[u])y[b]=v[u][b];return y}function L(v){var u={},y;for(y in v){var b=y.replace(/-/g,"_");u[b]=v[y]}return u}_e.exports.Options=a,_e.exports.normalizeOpts=L,_e.exports.mergeOpts=A},,function(_e){var a=RegExp.prototype.hasOwnProperty("sticky");function A(L){this.__input=L||"",this.__input_length=this.__input.length,this.__position=0}A.prototype.restart=function(){this.__position=0},A.prototype.back=function(){this.__position>0&&(this.__position-=1)},A.prototype.hasNext=function(){return this.__position<this.__input_length},A.prototype.next=function(){var L=null;return this.hasNext()&&(L=this.__input.charAt(this.__position),this.__position+=1),L},A.prototype.peek=function(L){var v=null;return L=L||0,L+=this.__position,L>=0&&L<this.__input_length&&(v=this.__input.charAt(L)),v},A.prototype.__match=function(L,v){L.lastIndex=v;var u=L.exec(this.__input);return u&&!(a&&L.sticky)&&u.index!==v&&(u=null),u},A.prototype.test=function(L,v){return v=v||0,v+=this.__position,v>=0&&v<this.__input_length?!!this.__match(L,v):!1},A.prototype.testChar=function(L,v){var u=this.peek(v);return L.lastIndex=0,u!==null&&L.test(u)},A.prototype.match=function(L){var v=this.__match(L,this.__position);return v?this.__position+=v[0].length:v=null,v},A.prototype.read=function(L,v,u){var y="",b;return L&&(b=this.match(L),b&&(y+=b[0])),v&&(b||!L)&&(y+=this.readUntil(v,u)),y},A.prototype.readUntil=function(L,v){var u="",y=this.__position;L.lastIndex=this.__position;var b=L.exec(this.__input);return b?(y=b.index,v&&(y+=b[0].length)):y=this.__input_length,u=this.__input.substring(this.__position,y),this.__position=y,u},A.prototype.readUntilAfter=function(L){return this.readUntil(L,!0)},A.prototype.get_regexp=function(L,v){var u=null,y="g";return v&&a&&(y="y"),typeof L=="string"&&L!==""?u=new RegExp(L,y):L&&(u=new RegExp(L.source,y)),u},A.prototype.get_literal_regexp=function(L){return RegExp(L.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},A.prototype.peekUntilAfter=function(L){var v=this.__position,u=this.readUntilAfter(L);return this.__position=v,u},A.prototype.lookBack=function(L){var v=this.__position-1;return v>=L.length&&this.__input.substring(v-L.length,v).toLowerCase()===L},_e.exports.InputScanner=A},,,,,function(_e){function a(A,L){A=typeof A=="string"?A:A.source,L=typeof L=="string"?L:L.source,this.__directives_block_pattern=new RegExp(A+/ beautify( \w+[:]\w+)+ /.source+L,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(A+/\sbeautify\signore:end\s/.source+L,"g")}a.prototype.get_directives=function(A){if(!A.match(this.__directives_block_pattern))return null;var L={};this.__directive_pattern.lastIndex=0;for(var v=this.__directive_pattern.exec(A);v;)L[v[1]]=v[2],v=this.__directive_pattern.exec(A);return L},a.prototype.readIgnored=function(A){return A.readUntilAfter(this.__directives_end_ignore_pattern)},_e.exports.Directives=a},,function(_e,a,A){var L=A(16).Beautifier,v=A(17).Options;function u(y,b){var k=new L(y,b);return k.beautify()}_e.exports=u,_e.exports.defaultOptions=function(){return new v}},function(_e,a,A){var L=A(17).Options,v=A(2).Output,u=A(8).InputScanner,y=A(13).Directives,b=new y(/\/\*/,/\*\//),k=/\r\n|[\r\n]/,se=/\r\n|[\r\n]/g,P=/\s/,N=/(?:\s|\n)+/g,V=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,K=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function x(T,$){this._source_text=T||"",this._options=new L($),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}x.prototype.eatString=function(T){var $="";for(this._ch=this._input.next();this._ch;){if($+=this._ch,this._ch==="\\")$+=this._input.next();else if(T.indexOf(this._ch)!==-1||this._ch===`
`)break;this._ch=this._input.next()}return $},x.prototype.eatWhitespace=function(T){for(var $=P.test(this._input.peek()),B=0;P.test(this._input.peek());)this._ch=this._input.next(),T&&this._ch===`
`&&(B===0||B<this._options.max_preserve_newlines)&&(B++,this._output.add_new_line(!0));return $},x.prototype.foundNestedPseudoClass=function(){for(var T=0,$=1,B=this._input.peek($);B;){if(B==="{")return!0;if(B==="(")T+=1;else if(B===")"){if(T===0)return!1;T-=1}else if(B===";"||B==="}")return!1;$++,B=this._input.peek($)}return!1},x.prototype.print_string=function(T){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(T)},x.prototype.preserveSingleSpace=function(T){T&&(this._output.space_before_token=!0)},x.prototype.indent=function(){this._indentLevel++},x.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},x.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var T=this._source_text,$=this._options.eol;$==="auto"&&($=`
`,T&&k.test(T||"")&&($=T.match(k)[0])),T=T.replace(se,`
`);var B=T.match(/^[\t ]*/)[0];this._output=new v(this._options,B),this._input=new u(T),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var fe=0,ye=!1,Re=!1,he=!1,G=!1,F=!1,le=this._ch,D=!1,Q,H,g;Q=this._input.read(N),H=Q!=="",g=le,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),le=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var E=this._input.read(V),Z=b.get_directives(E);Z&&Z.ignore==="start"&&(E+=b.readIgnored(this._input)),this.print_string(E),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(K)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(H),this.print_string(this._ch);var pe=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);pe.match(/[ :]$/)&&(pe=this.eatString(": ").replace(/\s+$/,""),this.print_string(pe),this._output.space_before_token=!0),fe===0&&pe.indexOf(":")!==-1&&(Re=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(H),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var ze=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);ze.match(/[ :]$/)&&(ze=this.eatString(": ").replace(/\s+$/,""),this.print_string(ze),this._output.space_before_token=!0),fe===0&&ze.indexOf(":")!==-1?(Re=!0,this.indent()):ze in this.NESTED_AT_RULE?(this._nestedLevel+=1,ze in this.CONDITIONAL_GROUP_RULE&&(he=!0)):fe===0&&!Re&&(G=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(H),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")Re&&(Re=!1,this.outdent()),G=!1,he?(he=!1,ye=this._indentLevel>=this._nestedLevel):ye=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&ye&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(g==="("?this._output.space_before_token=!1:g!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),g==="{"&&this._output.trim(!0),Re&&(this.outdent(),Re=!1),this.print_string(this._ch),ye=!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 Ge=0;Ge<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;Ge++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[Ge])){D=!0;break}(ye||he)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!G&&fe===0?(this.print_string(":"),Re||(Re=!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 je=g==='"'||g==="'";this.preserveSingleSpace(je||H),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")D=!1,fe===0?(Re&&(this.outdent(),Re=!1),G=!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(),fe++,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(")")),fe&&(fe--,this.outdent()));else{var Ve=!1;this._input.lookBack("with")&&(Ve=!0),this.preserveSingleSpace(H||Ve),this.print_string(this._ch),Re&&g==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),F=!0):(this.eatWhitespace(),fe++,this.indent())}else if(this._ch===")")fe&&(fe--,this.outdent()),F&&this._input.peek()===";"&&this._options.selector_separator_newline&&(F=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!Re||F)&&fe===0&&!G?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!Re&&fe===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&P.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(H),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),P.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var mt=g==='"'||g==="'";this.preserveSingleSpace(mt||H),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
`&&D&&this._output.add_new_line()}var pt=this._output.get_code($);return pt},_e.exports.Beautifier=x},function(_e,a,A){var L=A(6).Options;function v(u){L.call(this,u,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var y=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||y;var b=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var k=0;k<b.length;k++)b[k]!=="expand"?this.brace_style="collapse":this.brace_style=b[k]}v.prototype=new L,_e.exports.Options=v}],j={};function X(_e){var a=j[_e];if(a!==void 0)return a.exports;var A=j[_e]={exports:{}};return Te[_e](A,A.exports,X),A.exports}var ve=X(15);Y=ve})();var ce=Y;p=[],M=function(){return{css_beautify:ce}}.apply(et,p),M!==void 0&&(Qt.exports=M)})()},32708:function(Qt,et,p){var M,Y;(function(){var ce;(function(){"use strict";var ve=[,,function(L){function v(b){this.__parent=b,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}v.prototype.clone_empty=function(){var b=new v(this.__parent);return b.set_indent(this.__indent_count,this.__alignment_count),b},v.prototype.item=function(b){return b<0?this.__items[this.__items.length+b]:this.__items[b]},v.prototype.has_match=function(b){for(var k=this.__items.length-1;k>=0;k--)if(this.__items[k].match(b))return!0;return!1},v.prototype.set_indent=function(b,k){this.is_empty()&&(this.__indent_count=b||0,this.__alignment_count=k||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},v.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)},v.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},v.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var b=this.__parent.current_line;return b.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),b.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),b.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,b.__items[0]===" "&&(b.__items.splice(0,1),b.__character_count-=1),!0}return!1},v.prototype.is_empty=function(){return this.__items.length===0},v.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},v.prototype.push=function(b){this.__items.push(b);var k=b.lastIndexOf(`
`);k!==-1?this.__character_count=b.length-k:this.__character_count+=b.length},v.prototype.pop=function(){var b=null;return this.is_empty()||(b=this.__items.pop(),this.__character_count-=b.length),b},v.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},v.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},v.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},v.prototype.toString=function(){var b="";return this.is_empty()?this.__parent.indent_empty_lines&&(b=this.__parent.get_indent_string(this.__indent_count)):(b=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),b+=this.__items.join("")),b};function u(b,k){this.__cache=[""],this.__indent_size=b.indent_size,this.__indent_string=b.indent_char,b.indent_with_tabs||(this.__indent_string=new Array(b.indent_size+1).join(b.indent_char)),k=k||"",b.indent_level>0&&(k=new Array(b.indent_level+1).join(this.__indent_string)),this.__base_string=k,this.__base_string_length=k.length}u.prototype.get_indent_size=function(b,k){var se=this.__base_string_length;return k=k||0,b<0&&(se=0),se+=b*this.__indent_size,se+=k,se},u.prototype.get_indent_string=function(b,k){var se=this.__base_string;return k=k||0,b<0&&(b=0,se=""),k+=b*this.__indent_size,this.__ensure_cache(k),se+=this.__cache[k],se},u.prototype.__ensure_cache=function(b){for(;b>=this.__cache.length;)this.__add_column()},u.prototype.__add_column=function(){var b=this.__cache.length,k=0,se="";this.__indent_size&&b>=this.__indent_size&&(k=Math.floor(b/this.__indent_size),b-=k*this.__indent_size,se=new Array(k+1).join(this.__indent_string)),b&&(se+=new Array(b+1).join(" ")),this.__cache.push(se)};function y(b,k){this.__indent_cache=new u(b,k),this.raw=!1,this._end_with_newline=b.end_with_newline,this.indent_size=b.indent_size,this.wrap_line_length=b.wrap_line_length,this.indent_empty_lines=b.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new v(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}y.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},y.prototype.get_line_number=function(){return this.__lines.length},y.prototype.get_indent_string=function(b,k){return this.__indent_cache.get_indent_string(b,k)},y.prototype.get_indent_size=function(b,k){return this.__indent_cache.get_indent_size(b,k)},y.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},y.prototype.add_new_line=function(b){return this.is_empty()||!b&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},y.prototype.get_code=function(b){this.trim(!0);var k=this.current_line.pop();k&&(k[k.length-1]===`
`&&(k=k.replace(/\n+$/g,"")),this.current_line.push(k)),this._end_with_newline&&this.__add_outputline();var se=this.__lines.join(`
`);return b!==`
`&&(se=se.replace(/[\n]/g,b)),se},y.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},y.prototype.set_indent=function(b,k){return b=b||0,k=k||0,this.next_line.set_indent(b,k),this.__lines.length>1?(this.current_line.set_indent(b,k),!0):(this.current_line.set_indent(),!1)},y.prototype.add_raw_token=function(b){for(var k=0;k<b.newlines;k++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(b.whitespace_before),this.current_line.push(b.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},y.prototype.add_token=function(b){this.__add_space_before_token(),this.current_line.push(b),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},y.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(" "))},y.prototype.remove_indent=function(b){for(var k=this.__lines.length;b<k;)this.__lines[b]._remove_indent(),b++;this.current_line._remove_wrap_indent()},y.prototype.trim=function(b){for(b=b===void 0?!1:b,this.current_line.trim();b&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},y.prototype.just_added_newline=function(){return this.current_line.is_empty()},y.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},y.prototype.ensure_empty_line_above=function(b,k){for(var se=this.__lines.length-2;se>=0;){var P=this.__lines[se];if(P.is_empty())break;if(P.item(0).indexOf(b)!==0&&P.item(-1)!==k){this.__lines.splice(se+1,0,new v(this)),this.previous_line=this.__lines[this.__lines.length-2];break}se--}},L.exports.Output=y},function(L){function v(u,y,b,k){this.type=u,this.text=y,this.comments_before=null,this.newlines=b||0,this.whitespace_before=k||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}L.exports.Token=v},,,function(L){function v(b,k){this.raw_options=u(b,k),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}v.prototype._get_array=function(b,k){var se=this.raw_options[b],P=k||[];return typeof se=="object"?se!==null&&typeof se.concat=="function"&&(P=se.concat()):typeof se=="string"&&(P=se.split(/[^a-zA-Z0-9_\/\-]+/)),P},v.prototype._get_boolean=function(b,k){var se=this.raw_options[b],P=se===void 0?!!k:!!se;return P},v.prototype._get_characters=function(b,k){var se=this.raw_options[b],P=k||"";return typeof se=="string"&&(P=se.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),P},v.prototype._get_number=function(b,k){var se=this.raw_options[b];k=parseInt(k,10),isNaN(k)&&(k=0);var P=parseInt(se,10);return isNaN(P)&&(P=k),P},v.prototype._get_selection=function(b,k,se){var P=this._get_selection_list(b,k,se);if(P.length!==1)throw new Error("Invalid Option Value: The option '"+b+`' can only be one of the following values:
`+k+`
You passed in: '`+this.raw_options[b]+"'");return P[0]},v.prototype._get_selection_list=function(b,k,se){if(!k||k.length===0)throw new Error("Selection list cannot be empty.");if(se=se||[k[0]],!this._is_valid_selection(se,k))throw new Error("Invalid Default Value!");var P=this._get_array(b,se);if(!this._is_valid_selection(P,k))throw new Error("Invalid Option Value: The option '"+b+`' can contain only the following values:
`+k+`
You passed in: '`+this.raw_options[b]+"'");return P},v.prototype._is_valid_selection=function(b,k){return b.length&&k.length&&!b.some(function(se){return k.indexOf(se)===-1})};function u(b,k){var se={};b=y(b);var P;for(P in b)P!==k&&(se[P]=b[P]);if(k&&b[k])for(P in b[k])se[P]=b[k][P];return se}function y(b){var k={},se;for(se in b){var P=se.replace(/-/g,"_");k[P]=b[se]}return k}L.exports.Options=v,L.exports.normalizeOpts=y,L.exports.mergeOpts=u},,function(L){var v=RegExp.prototype.hasOwnProperty("sticky");function u(y){this.__input=y||"",this.__input_length=this.__input.length,this.__position=0}u.prototype.restart=function(){this.__position=0},u.prototype.back=function(){this.__position>0&&(this.__position-=1)},u.prototype.hasNext=function(){return this.__position<this.__input_length},u.prototype.next=function(){var y=null;return this.hasNext()&&(y=this.__input.charAt(this.__position),this.__position+=1),y},u.prototype.peek=function(y){var b=null;return y=y||0,y+=this.__position,y>=0&&y<this.__input_length&&(b=this.__input.charAt(y)),b},u.prototype.__match=function(y,b){y.lastIndex=b;var k=y.exec(this.__input);return k&&!(v&&y.sticky)&&k.index!==b&&(k=null),k},u.prototype.test=function(y,b){return b=b||0,b+=this.__position,b>=0&&b<this.__input_length?!!this.__match(y,b):!1},u.prototype.testChar=function(y,b){var k=this.peek(b);return y.lastIndex=0,k!==null&&y.test(k)},u.prototype.match=function(y){var b=this.__match(y,this.__position);return b?this.__position+=b[0].length:b=null,b},u.prototype.read=function(y,b,k){var se="",P;return y&&(P=this.match(y),P&&(se+=P[0])),b&&(P||!y)&&(se+=this.readUntil(b,k)),se},u.prototype.readUntil=function(y,b){var k="",se=this.__position;y.lastIndex=this.__position;var P=y.exec(this.__input);return P?(se=P.index,b&&(se+=P[0].length)):se=this.__input_length,k=this.__input.substring(this.__position,se),this.__position=se,k},u.prototype.readUntilAfter=function(y){return this.readUntil(y,!0)},u.prototype.get_regexp=function(y,b){var k=null,se="g";return b&&v&&(se="y"),typeof y=="string"&&y!==""?k=new RegExp(y,se):y&&(k=new RegExp(y.source,se)),k},u.prototype.get_literal_regexp=function(y){return RegExp(y.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},u.prototype.peekUntilAfter=function(y){var b=this.__position,k=this.readUntilAfter(y);return this.__position=b,k},u.prototype.lookBack=function(y){var b=this.__position-1;return b>=y.length&&this.__input.substring(b-y.length,b).toLowerCase()===y},L.exports.InputScanner=u},function(L,v,u){var y=u(8).InputScanner,b=u(3).Token,k=u(10).TokenStream,se=u(11).WhitespacePattern,P={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},N=function(V,K){this._input=new y(V),this._options=K||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new se(this._input)};N.prototype.tokenize=function(){this._input.restart(),this.__tokens=new k,this._reset();for(var V,K=new b(P.START,""),x=null,T=[],$=new k;K.type!==P.EOF;){for(V=this._get_next_token(K,x);this._is_comment(V);)$.add(V),V=this._get_next_token(K,x);$.isEmpty()||(V.comments_before=$,$=new k),V.parent=x,this._is_opening(V)?(T.push(x),x=V):x&&this._is_closing(V,x)&&(V.opened=x,x.closed=V,x=T.pop(),V.parent=x),V.previous=K,K.next=V,this.__tokens.add(V),K=V}return this.__tokens},N.prototype._is_first_token=function(){return this.__tokens.isEmpty()},N.prototype._reset=function(){},N.prototype._get_next_token=function(V,K){this._readWhitespace();var x=this._input.read(/.+/g);return x?this._create_token(P.RAW,x):this._create_token(P.EOF,"")},N.prototype._is_comment=function(V){return!1},N.prototype._is_opening=function(V){return!1},N.prototype._is_closing=function(V,K){return!1},N.prototype._create_token=function(V,K){var x=new b(V,K,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return x},N.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},L.exports.Tokenizer=N,L.exports.TOKEN=P},function(L){function v(u){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=u}v.prototype.restart=function(){this.__position=0},v.prototype.isEmpty=function(){return this.__tokens_length===0},v.prototype.hasNext=function(){return this.__position<this.__tokens_length},v.prototype.next=function(){var u=null;return this.hasNext()&&(u=this.__tokens[this.__position],this.__position+=1),u},v.prototype.peek=function(u){var y=null;return u=u||0,u+=this.__position,u>=0&&u<this.__tokens_length&&(y=this.__tokens[u]),y},v.prototype.add=function(u){this.__parent_token&&(u.parent=this.__parent_token),this.__tokens.push(u),this.__tokens_length+=1},L.exports.TokenStream=v},function(L,v,u){var y=u(12).Pattern;function b(k,se){y.call(this,k,se),se?this._line_regexp=this._input.get_regexp(se._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}b.prototype=new y,b.prototype.__set_whitespace_patterns=function(k,se){k+="\\t ",se+="\\n\\r",this._match_pattern=this._input.get_regexp("["+k+se+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+se+"]")},b.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var k=this._input.read(this._match_pattern);if(k===" ")this.whitespace_before_token=" ";else if(k){var se=this.__split(this._newline_regexp,k);this.newline_count=se.length-1,this.whitespace_before_token=se[this.newline_count]}return k},b.prototype.matching=function(k,se){var P=this._create();return P.__set_whitespace_patterns(k,se),P._update(),P},b.prototype._create=function(){return new b(this._input,this)},b.prototype.__split=function(k,se){k.lastIndex=0;for(var P=0,N=[],V=k.exec(se);V;)N.push(se.substring(P,V.index)),P=V.index+V[0].length,V=k.exec(se);return P<se.length?N.push(se.substring(P,se.length)):N.push(""),N},L.exports.WhitespacePattern=b},function(L){function v(u,y){this._input=u,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,y&&(this._starting_pattern=this._input.get_regexp(y._starting_pattern,!0),this._match_pattern=this._input.get_regexp(y._match_pattern,!0),this._until_pattern=this._input.get_regexp(y._until_pattern),this._until_after=y._until_after)}v.prototype.read=function(){var u=this._input.read(this._starting_pattern);return(!this._starting_pattern||u)&&(u+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),u},v.prototype.read_match=function(){return this._input.match(this._match_pattern)},v.prototype.until_after=function(u){var y=this._create();return y._until_after=!0,y._until_pattern=this._input.get_regexp(u),y._update(),y},v.prototype.until=function(u){var y=this._create();return y._until_after=!1,y._until_pattern=this._input.get_regexp(u),y._update(),y},v.prototype.starting_with=function(u){var y=this._create();return y._starting_pattern=this._input.get_regexp(u,!0),y._update(),y},v.prototype.matching=function(u){var y=this._create();return y._match_pattern=this._input.get_regexp(u,!0),y._update(),y},v.prototype._create=function(){return new v(this._input,this)},v.prototype._update=function(){},L.exports.Pattern=v},function(L){function v(u,y){u=typeof u=="string"?u:u.source,y=typeof y=="string"?y:y.source,this.__directives_block_pattern=new RegExp(u+/ beautify( \w+[:]\w+)+ /.source+y,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(u+/\sbeautify\signore:end\s/.source+y,"g")}v.prototype.get_directives=function(u){if(!u.match(this.__directives_block_pattern))return null;var y={};this.__directive_pattern.lastIndex=0;for(var b=this.__directive_pattern.exec(u);b;)y[b[1]]=b[2],b=this.__directive_pattern.exec(u);return y},v.prototype.readIgnored=function(u){return u.readUntilAfter(this.__directives_end_ignore_pattern)},L.exports.Directives=v},function(L,v,u){var y=u(12).Pattern,b={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function k(se,P){y.call(this,se,P),this.__template_pattern=null,this._disabled=Object.assign({},b),this._excluded=Object.assign({},b),P&&(this.__template_pattern=this._input.get_regexp(P.__template_pattern),this._excluded=Object.assign(this._excluded,P._excluded),this._disabled=Object.assign(this._disabled,P._disabled));var N=new y(se);this.__patterns={handlebars_comment:N.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:N.starting_with(/{{{/).until_after(/}}}/),handlebars:N.starting_with(/{{/).until_after(/}}/),php:N.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:N.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:N.starting_with(/{%/).until_after(/%}/),django_value:N.starting_with(/{{/).until_after(/}}/),django_comment:N.starting_with(/{#/).until_after(/#}/),smarty:N.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:N.starting_with(/{\*/).until_after(/\*}/),smarty_literal:N.starting_with(/{literal}/).until_after(/{\/literal}/)}}k.prototype=new y,k.prototype._create=function(){return new k(this._input,this)},k.prototype._update=function(){this.__set_templated_pattern()},k.prototype.disable=function(se){var P=this._create();return P._disabled[se]=!0,P._update(),P},k.prototype.read_options=function(se){var P=this._create();for(var N in b)P._disabled[N]=se.templating.indexOf(N)===-1;return P._update(),P},k.prototype.exclude=function(se){var P=this._create();return P._excluded[se]=!0,P._update(),P},k.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 P=this._read_template();P;)this._match_pattern?P+=this._input.read(this._match_pattern):P+=this._input.readUntil(this.__template_pattern),se+=P,P=this._read_template();return this._until_after&&(se+=this._input.readUntilAfter(this._until_pattern)),se},k.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.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("|")+")")},k.prototype._read_template=function(){var se="",P=this._input.peek();if(P==="<"){var N=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&N==="?"&&(se=se||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&N==="%"&&(se=se||this.__patterns.erb.read())}else P==="{"&&(!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},L.exports.TemplatablePattern=k},,,,function(L,v,u){var y=u(19).Beautifier,b=u(20).Options;function k(se,P,N,V){var K=new y(se,P,N,V);return K.beautify()}L.exports=k,L.exports.defaultOptions=function(){return new b}},function(L,v,u){var y=u(20).Options,b=u(2).Output,k=u(21).Tokenizer,se=u(21).TOKEN,P=/\r\n|[\r\n]/,N=/\r\n|[\r\n]/g,V=function(G,F){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=G.max_preserve_newlines,this.preserve_newlines=G.preserve_newlines,this._output=new b(G,F)};V.prototype.current_line_has_match=function(G){return this._output.current_line.has_match(G)},V.prototype.set_space_before_token=function(G,F){this._output.space_before_token=G,this._output.non_breaking_space=F},V.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},V.prototype.add_raw_token=function(G){this._output.add_raw_token(G)},V.prototype.print_preserved_newlines=function(G){var F=0;G.type!==se.TEXT&&G.previous.type!==se.TEXT&&(F=G.newlines?1:0),this.preserve_newlines&&(F=G.newlines<this.max_preserve_newlines+1?G.newlines:this.max_preserve_newlines+1);for(var le=0;le<F;le++)this.print_newline(le>0);return F!==0},V.prototype.traverse_whitespace=function(G){return G.whitespace_before||G.newlines?(this.print_preserved_newlines(G)||(this._output.space_before_token=!0),!0):!1},V.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},V.prototype.print_newline=function(G){this._output.add_new_line(G)},V.prototype.print_token=function(G){G.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(G.text))},V.prototype.indent=function(){this.indent_level++},V.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},V.prototype.get_full_indent=function(G){return G=this.indent_level+(G||0),G<1?"":this._output.get_indent_string(G)};var K=function(G){for(var F=null,le=G.next;le.type!==se.EOF&&G.closed!==le;){if(le.type===se.ATTRIBUTE&&le.text==="type"){le.next&&le.next.type===se.EQUALS&&le.next.next&&le.next.next.type===se.VALUE&&(F=le.next.next.text);break}le=le.next}return F},x=function(G,F){var le=null,D=null;return F.closed?(G==="script"?le="text/javascript":G==="style"&&(le="text/css"),le=K(F)||le,le.search("text/css")>-1?D="css":le.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?D="javascript":le.search(/(text|application|dojo)\/(x-)?(html)/)>-1?D="html":le.search(/test\/null/)>-1&&(D="null"),D):null};function T(G,F){return F.indexOf(G)!==-1}function $(G,F,le){this.parent=G||null,this.tag=F?F.tag_name:"",this.indent_level=le||0,this.parser_token=F||null}function B(G){this._printer=G,this._current_frame=null}B.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},B.prototype.record_tag=function(G){var F=new $(this._current_frame,G,this._printer.indent_level);this._current_frame=F},B.prototype._try_pop_frame=function(G){var F=null;return G&&(F=G.parser_token,this._printer.indent_level=G.indent_level,this._current_frame=G.parent),F},B.prototype._get_frame=function(G,F){for(var le=this._current_frame;le&&G.indexOf(le.tag)===-1;){if(F&&F.indexOf(le.tag)!==-1){le=null;break}le=le.parent}return le},B.prototype.try_pop=function(G,F){var le=this._get_frame([G],F);return this._try_pop_frame(le)},B.prototype.indent_to_tag=function(G){var F=this._get_frame(G);F&&(this._printer.indent_level=F.indent_level)};function fe(G,F,le,D){this._source_text=G||"",F=F||{},this._js_beautify=le,this._css_beautify=D,this._tag_stack=null;var Q=new y(F,"html");this._options=Q,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"}fe.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var G=this._source_text,F=this._options.eol;this._options.eol==="auto"&&(F=`
`,G&&P.test(G)&&(F=G.match(P)[0])),G=G.replace(N,`
`);var le=G.match(/^[\t ]*/)[0],D={text:"",type:""},Q=new ye,H=new V(this._options,le),g=new k(G,this._options).tokenize();this._tag_stack=new B(H);for(var E=null,Z=g.next();Z.type!==se.EOF;)Z.type===se.TAG_OPEN||Z.type===se.COMMENT?(E=this._handle_tag_open(H,Z,Q,D,g),Q=E):Z.type===se.ATTRIBUTE||Z.type===se.EQUALS||Z.type===se.VALUE||Z.type===se.TEXT&&!Q.tag_complete?E=this._handle_inside_tag(H,Z,Q,D):Z.type===se.TAG_CLOSE?E=this._handle_tag_close(H,Z,Q):Z.type===se.TEXT?E=this._handle_text(H,Z,Q):Z.type===se.CONTROL_FLOW_OPEN?E=this._handle_control_flow_open(H,Z):Z.type===se.CONTROL_FLOW_CLOSE?E=this._handle_control_flow_close(H,Z):H.add_raw_token(Z),D=E,Z=g.next();var pe=H._output.get_code(F);return pe},fe.prototype._handle_control_flow_open=function(G,F){var le={text:F.text,type:F.type};return G.set_space_before_token(F.newlines||F.whitespace_before!=="",!0),F.newlines?G.print_preserved_newlines(F):G.set_space_before_token(F.newlines||F.whitespace_before!=="",!0),G.print_token(F),G.indent(),le},fe.prototype._handle_control_flow_close=function(G,F){var le={text:F.text,type:F.type};return G.deindent(),F.newlines?G.print_preserved_newlines(F):G.set_space_before_token(F.newlines||F.whitespace_before!=="",!0),G.print_token(F),le},fe.prototype._handle_tag_close=function(G,F,le){var D={text:F.text,type:F.type};return G.alignment_size=0,le.tag_complete=!0,G.set_space_before_token(F.newlines||F.whitespace_before!=="",!0),le.is_unformatted?G.add_raw_token(F):(le.tag_start_char==="<"&&(G.set_space_before_token(F.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&le.has_wrapped_attrs&&G.print_newline(!1)),G.print_token(F)),le.indent_content&&!(le.is_unformatted||le.is_content_unformatted)&&(G.indent(),le.indent_content=!1),!le.is_inline_element&&!(le.is_unformatted||le.is_content_unformatted)&&G.set_wrap_point(),D},fe.prototype._handle_inside_tag=function(G,F,le,D){var Q=le.has_wrapped_attrs,H={text:F.text,type:F.type};return G.set_space_before_token(F.newlines||F.whitespace_before!=="",!0),le.is_unformatted?G.add_raw_token(F):le.tag_start_char==="{"&&F.type===se.TEXT?G.print_preserved_newlines(F)?(F.newlines=0,G.add_raw_token(F)):G.print_token(F):(F.type===se.ATTRIBUTE?G.set_space_before_token(!0):(F.type===se.EQUALS||F.type===se.VALUE&&F.previous.type===se.EQUALS)&&G.set_space_before_token(!1),F.type===se.ATTRIBUTE&&le.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(G.traverse_whitespace(F),Q=Q||F.newlines!==0),this._is_wrap_attributes_force&&le.attr_count>=this._options.wrap_attributes_min_attrs&&(D.type!==se.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(G.print_newline(!1),Q=!0)),G.print_token(F),Q=Q||G.previous_token_wrapped(),le.has_wrapped_attrs=Q),H},fe.prototype._handle_text=function(G,F,le){var D={text:F.text,type:"TK_CONTENT"};return le.custom_beautifier_name?this._print_custom_beatifier_text(G,F,le):le.is_unformatted||le.is_content_unformatted?G.add_raw_token(F):(G.traverse_whitespace(F),G.print_token(F)),D},fe.prototype._print_custom_beatifier_text=function(G,F,le){var D=this;if(F.text!==""){var Q=F.text,H,g=1,E="",Z="";le.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?H=this._js_beautify:le.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?H=this._css_beautify:le.custom_beautifier_name==="html"&&(H=function(mt,pt){var nt=new fe(mt,pt,D._js_beautify,D._css_beautify);return nt.beautify()}),this._options.indent_scripts==="keep"?g=0:this._options.indent_scripts==="separate"&&(g=-G.indent_level);var pe=G.get_full_indent(g);if(Q=Q.replace(/\n[ \t]*$/,""),le.custom_beautifier_name!=="html"&&Q[0]==="<"&&Q.match(/^(<!--|<!\[CDATA\[)/)){var ze=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(Q);if(!ze){G.add_raw_token(F);return}E=pe+ze[1]+`
`,Q=ze[4],ze[5]&&(Z=pe+ze[5]),Q=Q.replace(/\n[ \t]*$/,""),(ze[2]||ze[3].indexOf(`
`)!==-1)&&(ze=ze[3].match(/[ \t]+$/),ze&&(F.whitespace_before=ze[0]))}if(Q)if(H){var Ge=function(){this.eol=`
`};Ge.prototype=this._options.raw_options;var je=new Ge;Q=H(pe+Q,je)}else{var Ve=F.whitespace_before;Ve&&(Q=Q.replace(new RegExp(`
(`+Ve+")?","g"),`
`)),Q=pe+Q.replace(/\n/g,`
`+pe)}E&&(Q?Q=E+Q+`
`+Z:Q=E+Z),G.print_newline(!1),Q&&(F.text=Q,F.whitespace_before="",F.newlines=0,G.add_raw_token(F),G.print_newline(!0))}},fe.prototype._handle_tag_open=function(G,F,le,D,Q){var H=this._get_tag_open_token(F);if((le.is_unformatted||le.is_content_unformatted)&&!le.is_empty_element&&F.type===se.TAG_OPEN&&!H.is_start_tag?(G.add_raw_token(F),H.start_tag_token=this._tag_stack.try_pop(H.tag_name)):(G.traverse_whitespace(F),this._set_tag_position(G,F,H,le,D),H.is_inline_element||G.set_wrap_point(),G.print_token(F)),H.is_start_tag&&this._is_wrap_attributes_force){var g=0,E;do E=Q.peek(g),E.type===se.ATTRIBUTE&&(H.attr_count+=1),g+=1;while(E.type!==se.EOF&&E.type!==se.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(H.alignment_size=F.text.length+1),!H.tag_complete&&!H.is_unformatted&&(G.alignment_size=H.alignment_size),H};var ye=function(G,F){if(this.parent=G||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!F)this.tag_complete=!0;else{var le;this.tag_start_char=F.text[0],this.text=F.text,this.tag_start_char==="<"?(le=F.text.match(/^<([^\s>]*)/),this.tag_check=le?le[1]:""):(le=F.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=le?le[1]:"",(F.text.startsWith("{{#>")||F.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&F.next!==null?this.tag_check=F.next.text.split(" ")[0]:this.tag_check=F.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),F.type===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||F.closed&&F.closed.text==="/>";var D=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(D=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(D)))}};fe.prototype._get_tag_open_token=function(G){var F=new ye(this._tag_stack.get_parser_token(),G);return F.alignment_size=this._options.wrap_attributes_indent_size,F.is_end_tag=F.is_end_tag||T(F.tag_check,this._options.void_elements),F.is_empty_element=F.tag_complete||F.is_start_tag&&F.is_end_tag,F.is_unformatted=!F.tag_complete&&T(F.tag_check,this._options.unformatted),F.is_content_unformatted=!F.is_empty_element&&T(F.tag_check,this._options.content_unformatted),F.is_inline_element=T(F.tag_name,this._options.inline)||this._options.inline_custom_elements&&F.tag_name.includes("-")||F.tag_start_char==="{",F},fe.prototype._set_tag_position=function(G,F,le,D,Q){if(le.is_empty_element||(le.is_end_tag?le.start_tag_token=this._tag_stack.try_pop(le.tag_name):(this._do_optional_end_element(le)&&(le.is_inline_element||G.print_newline(!1)),this._tag_stack.record_tag(le),(le.tag_name==="script"||le.tag_name==="style")&&!(le.is_unformatted||le.is_content_unformatted)&&(le.custom_beautifier_name=x(le.tag_check,F)))),T(le.tag_check,this._options.extra_liners)&&(G.print_newline(!1),G._output.just_added_blankline()||G.print_newline(!0)),le.is_empty_element){if(le.tag_start_char==="{"&&le.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),le.indent_content=!0;var H=G.current_line_has_match(/{{#if/);H||G.print_newline(!1)}le.tag_name==="!--"&&Q.type===se.TAG_CLOSE&&D.is_end_tag&&le.text.indexOf(`
`)===-1||(le.is_inline_element||le.is_unformatted||G.print_newline(!1),this._calcluate_parent_multiline(G,le))}else if(le.is_end_tag){var g=!1;g=le.start_tag_token&&le.start_tag_token.multiline_content,g=g||!le.is_inline_element&&!(D.is_inline_element||D.is_unformatted)&&!(Q.type===se.TAG_CLOSE&&le.start_tag_token===D)&&Q.type!=="TK_CONTENT",(le.is_content_unformatted||le.is_unformatted)&&(g=!1),g&&G.print_newline(!1)}else le.indent_content=!le.custom_beautifier_name,le.tag_start_char==="<"&&(le.tag_name==="html"?le.indent_content=this._options.indent_inner_html:le.tag_name==="head"?le.indent_content=this._options.indent_head_inner_html:le.tag_name==="body"&&(le.indent_content=this._options.indent_body_inner_html)),!(le.is_inline_element||le.is_unformatted)&&(Q.type!=="TK_CONTENT"||le.is_content_unformatted)&&G.print_newline(!1),this._calcluate_parent_multiline(G,le)},fe.prototype._calcluate_parent_multiline=function(G,F){F.parent&&G._output.just_added_newline()&&!((F.is_inline_element||F.is_unformatted)&&F.parent.is_inline_element)&&(F.parent.multiline_content=!0)};var Re=["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"],he=["a","audio","del","ins","map","noscript","video"];fe.prototype._do_optional_end_element=function(G){var F=null;if(!(G.is_empty_element||!G.is_start_tag||!G.parent)){if(G.tag_name==="body")F=F||this._tag_stack.try_pop("head");else if(G.tag_name==="li")F=F||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(G.tag_name==="dd"||G.tag_name==="dt")F=F||this._tag_stack.try_pop("dt",["dl"]),F=F||this._tag_stack.try_pop("dd",["dl"]);else if(G.parent.tag_name==="p"&&Re.indexOf(G.tag_name)!==-1){var le=G.parent.parent;(!le||he.indexOf(le.tag_name)===-1)&&(F=F||this._tag_stack.try_pop("p"))}else G.tag_name==="rp"||G.tag_name==="rt"?(F=F||this._tag_stack.try_pop("rt",["ruby","rtc"]),F=F||this._tag_stack.try_pop("rp",["ruby","rtc"])):G.tag_name==="optgroup"?F=F||this._tag_stack.try_pop("optgroup",["select"]):G.tag_name==="option"?F=F||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):G.tag_name==="colgroup"?F=F||this._tag_stack.try_pop("caption",["table"]):G.tag_name==="thead"?(F=F||this._tag_stack.try_pop("caption",["table"]),F=F||this._tag_stack.try_pop("colgroup",["table"])):G.tag_name==="tbody"||G.tag_name==="tfoot"?(F=F||this._tag_stack.try_pop("caption",["table"]),F=F||this._tag_stack.try_pop("colgroup",["table"]),F=F||this._tag_stack.try_pop("thead",["table"]),F=F||this._tag_stack.try_pop("tbody",["table"])):G.tag_name==="tr"?(F=F||this._tag_stack.try_pop("caption",["table"]),F=F||this._tag_stack.try_pop("colgroup",["table"]),F=F||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(G.tag_name==="th"||G.tag_name==="td")&&(F=F||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),F=F||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return G.parent=this._tag_stack.get_parser_token(),F}},L.exports.Beautifier=fe},function(L,v,u){var y=u(6).Options;function b(k){y.call(this,k,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}b.prototype=new y,L.exports.Options=b},function(L,v,u){var y=u(9).Tokenizer,b=u(9).TOKEN,k=u(13).Directives,se=u(14).TemplatablePattern,P=u(12).Pattern,N={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:b.START,RAW:b.RAW,EOF:b.EOF},V=new k(/<\!--/,/-->/),K=function(x,T){y.call(this,x,T),this._current_tag_name="";var $=new se(this._input).read_options(this._options),B=new P(this._input);if(this.__patterns={word:$.until(/[\n\r\t <]/),word_control_flow_close_excluded:$.until(/[\n\r\t <}]/),single_quote:$.until_after(/'/),double_quote:$.until_after(/"/),attribute:$.until(/[\n\r\t =>]|\/>/),element_name:$.until(/[\n\r\t >\/]/),angular_control_flow_start:B.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:B.starting_with(/{{!--/).until_after(/--}}/),handlebars:B.starting_with(/{{/).until_after(/}}/),handlebars_open:B.until(/[\n\r\t }]/),handlebars_raw_close:B.until(/}}/),comment:B.starting_with(/<!--/).until_after(/-->/),cdata:B.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:B.starting_with(/<!\[/).until_after(/]>/),processing:B.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 fe=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=B.matching(fe).until_after(fe)}};K.prototype=new y,K.prototype._is_comment=function(x){return!1},K.prototype._is_opening=function(x){return x.type===N.TAG_OPEN||x.type===N.CONTROL_FLOW_OPEN},K.prototype._is_closing=function(x,T){return x.type===N.TAG_CLOSE&&T&&((x.text===">"||x.text==="/>")&&T.text[0]==="<"||x.text==="}}"&&T.text[0]==="{"&&T.text[1]==="{")||x.type===N.CONTROL_FLOW_CLOSE&&x.text==="}"&&T.text.endsWith("{")},K.prototype._reset=function(){this._current_tag_name=""},K.prototype._get_next_token=function(x,T){var $=null;this._readWhitespace();var B=this._input.peek();return B===null?this._create_token(N.EOF,""):($=$||this._read_open_handlebars(B,T),$=$||this._read_attribute(B,x,T),$=$||this._read_close(B,T),$=$||this._read_control_flows(B,T),$=$||this._read_raw_content(B,x,T),$=$||this._read_content_word(B,T),$=$||this._read_comment_or_cdata(B),$=$||this._read_processing(B),$=$||this._read_open(B,T),$=$||this._create_token(N.UNKNOWN,this._input.next()),$)},K.prototype._read_comment_or_cdata=function(x){var T=null,$=null,B=null;if(x==="<"){var fe=this._input.peek(1);fe==="!"&&($=this.__patterns.comment.read(),$?(B=V.get_directives($),B&&B.ignore==="start"&&($+=V.readIgnored(this._input))):$=this.__patterns.cdata.read()),$&&(T=this._create_token(N.COMMENT,$),T.directives=B)}return T},K.prototype._read_processing=function(x){var T=null,$=null,B=null;if(x==="<"){var fe=this._input.peek(1);(fe==="!"||fe==="?")&&($=this.__patterns.conditional_comment.read(),$=$||this.__patterns.processing.read()),$&&(T=this._create_token(N.COMMENT,$),T.directives=B)}return T},K.prototype._read_open=function(x,T){var $=null,B=null;return(!T||T.type===N.CONTROL_FLOW_OPEN)&&x==="<"&&($=this._input.next(),this._input.peek()==="/"&&($+=this._input.next()),$+=this.__patterns.element_name.read(),B=this._create_token(N.TAG_OPEN,$)),B},K.prototype._read_open_handlebars=function(x,T){var $=null,B=null;return(!T||T.type===N.CONTROL_FLOW_OPEN)&&this._options.indent_handlebars&&x==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?($=this.__patterns.handlebars_comment.read(),$=$||this.__patterns.handlebars.read(),B=this._create_token(N.COMMENT,$)):($=this.__patterns.handlebars_open.read(),B=this._create_token(N.TAG_OPEN,$))),B},K.prototype._read_control_flows=function(x,T){var $="",B=null;if(!this._options.templating.includes("angular")||!this._options.indent_handlebars)return B;if(x==="@"){if($=this.__patterns.angular_control_flow_start.read(),$==="")return B;for(var fe=$.endsWith("(")?1:0,ye=0;!($.endsWith("{")&&fe===ye);){var Re=this._input.next();if(Re===null)break;Re==="("?fe++:Re===")"&&ye++,$+=Re}B=this._create_token(N.CONTROL_FLOW_OPEN,$)}else x==="}"&&T&&T.type===N.CONTROL_FLOW_OPEN&&($=this._input.next(),B=this._create_token(N.CONTROL_FLOW_CLOSE,$));return B},K.prototype._read_close=function(x,T){var $=null,B=null;return T&&T.type===N.TAG_OPEN&&(T.text[0]==="<"&&(x===">"||x==="/"&&this._input.peek(1)===">")?($=this._input.next(),x==="/"&&($+=this._input.next()),B=this._create_token(N.TAG_CLOSE,$)):T.text[0]==="{"&&x==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),B=this._create_token(N.TAG_CLOSE,"}}"))),B},K.prototype._read_attribute=function(x,T,$){var B=null,fe="";if($&&$.text[0]==="<")if(x==="=")B=this._create_token(N.EQUALS,this._input.next());else if(x==='"'||x==="'"){var ye=this._input.next();x==='"'?ye+=this.__patterns.double_quote.read():ye+=this.__patterns.single_quote.read(),B=this._create_token(N.VALUE,ye)}else fe=this.__patterns.attribute.read(),fe&&(T.type===N.EQUALS?B=this._create_token(N.VALUE,fe):B=this._create_token(N.ATTRIBUTE,fe));return B},K.prototype._is_content_unformatted=function(x){return this._options.void_elements.indexOf(x)===-1&&(this._options.content_unformatted.indexOf(x)!==-1||this._options.unformatted.indexOf(x)!==-1)},K.prototype._read_raw_content=function(x,T,$){var B="";if($&&$.text[0]==="{")B=this.__patterns.handlebars_raw_close.read();else if(T.type===N.TAG_CLOSE&&T.opened.text[0]==="<"&&T.text[0]!=="/"){var fe=T.opened.text.substr(1).toLowerCase();if(fe==="script"||fe==="style"){var ye=this._read_comment_or_cdata(x);if(ye)return ye.type=N.TEXT,ye;B=this._input.readUntil(new RegExp("</"+fe+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(fe)&&(B=this._input.readUntil(new RegExp("</"+fe+"[\\n\\r\\t ]*?>","ig")))}return B?this._create_token(N.TEXT,B):null},K.prototype._read_content_word=function(x,T){var $="";if(this._options.unformatted_content_delimiter&&x===this._options.unformatted_content_delimiter[0]&&($=this.__patterns.unformatted_content_delimiter.read()),$||($=T&&T.type===N.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),$)return this._create_token(N.TEXT,$)},L.exports.Tokenizer=K,L.exports.TOKEN=N}],_e={};function a(L){var v=_e[L];if(v!==void 0)return v.exports;var u=_e[L]={exports:{}};return ve[L](u,u.exports,a),u.exports}var A=a(18);ce=A})();var Te=ce;if(1)M=[p,p(32328),p(34655)],Y=function(ve){var _e=p(32328),a=p(34655);return{html_beautify:function(A,L){return Te(A,L,_e.js_beautify,a.css_beautify)}}}.apply(et,M),Y!==void 0&&(Qt.exports=Y);else var j,X})()},32328:function(Qt,et){var p,M;(function(){var Y;(function(){"use strict";var Te=[function(_e,a,A){var L=A(1).Beautifier,v=A(5).Options;function u(y,b){var k=new L(y,b);return k.beautify()}_e.exports=u,_e.exports.defaultOptions=function(){return new v}},function(_e,a,A){var L=A(2).Output,v=A(3).Token,u=A(4),y=A(5).Options,b=A(7).Tokenizer,k=A(7).line_starters,se=A(7).positionable_operators,P=A(7).TOKEN;function N(E,Z){return Z.indexOf(E)!==-1}function V(E){return E.replace(/^\s+/g,"")}function K(E){for(var Z={},pe=0;pe<E.length;pe++)Z[E[pe].replace(/-/g,"_")]=E[pe];return Z}function x(E,Z){return E&&E.type===P.RESERVED&&E.text===Z}function T(E,Z){return E&&E.type===P.RESERVED&&N(E.text,Z)}var $=["case","return","do","if","throw","else","await","break","continue","async"],B=["before-newline","after-newline","preserve-newline"],fe=K(B),ye=[fe.before_newline,fe.preserve_newline],Re={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function he(E,Z){Z.multiline_frame||Z.mode===Re.ForInitializer||Z.mode===Re.Conditional||E.remove_indent(Z.start_line_index)}function G(E){E=E.replace(u.allLineBreaks,`
`);for(var Z=[],pe=E.indexOf(`
`);pe!==-1;)Z.push(E.substring(0,pe)),E=E.substring(pe+1),pe=E.indexOf(`
`);return E.length&&Z.push(E),Z}function F(E){return E===Re.ArrayLiteral}function le(E){return N(E,[Re.Expression,Re.ForInitializer,Re.Conditional])}function D(E,Z){for(var pe=0;pe<E.length;pe++){var ze=E[pe].trim();if(ze.charAt(0)!==Z)return!1}return!0}function Q(E,Z){for(var pe=0,ze=E.length,Ge;pe<ze;pe++)if(Ge=E[pe],Ge&&Ge.indexOf(Z)!==0)return!1;return!0}function H(E,Z){Z=Z||{},this._source_text=E||"",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 y(Z)}H.prototype.create_flags=function(E,Z){var pe=0;E&&(pe=E.indentation_level,!this._output.just_added_newline()&&E.line_indent_level>pe&&(pe=E.line_indent_level));var ze={mode:Z,parent:E,last_token:E?E.last_token:new v(P.START_BLOCK,""),last_word:E?E.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:pe,alignment:0,line_indent_level:E?E.line_indent_level:pe,start_line_index:this._output.get_line_number(),ternary_depth:0};return ze},H.prototype._reset=function(E){var Z=E.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new L(this._options,Z),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(Re.BlockStatement);var pe=new b(E,this._options);return this._tokens=pe.tokenize(),E},H.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var E,Z=this._reset(this._source_text),pe=this._options.eol;this._options.eol==="auto"&&(pe=`
`,Z&&u.lineBreak.test(Z||"")&&(pe=Z.match(u.lineBreak)[0]));for(var ze=this._tokens.next();ze;)this.handle_token(ze),this._last_last_text=this._flags.last_token.text,this._flags.last_token=ze,ze=this._tokens.next();return E=this._output.get_code(pe),E},H.prototype.handle_token=function(E,Z){E.type===P.START_EXPR?this.handle_start_expr(E):E.type===P.END_EXPR?this.handle_end_expr(E):E.type===P.START_BLOCK?this.handle_start_block(E):E.type===P.END_BLOCK?this.handle_end_block(E):E.type===P.WORD?this.handle_word(E):E.type===P.RESERVED?this.handle_word(E):E.type===P.SEMICOLON?this.handle_semicolon(E):E.type===P.STRING?this.handle_string(E):E.type===P.EQUALS?this.handle_equals(E):E.type===P.OPERATOR?this.handle_operator(E):E.type===P.COMMA?this.handle_comma(E):E.type===P.BLOCK_COMMENT?this.handle_block_comment(E,Z):E.type===P.COMMENT?this.handle_comment(E,Z):E.type===P.DOT?this.handle_dot(E):E.type===P.EOF?this.handle_eof(E):E.type===P.UNKNOWN?this.handle_unknown(E,Z):this.handle_unknown(E,Z)},H.prototype.handle_whitespace_and_comments=function(E,Z){var pe=E.newlines,ze=this._options.keep_array_indentation&&F(this._flags.mode);if(E.comments_before)for(var Ge=E.comments_before.next();Ge;)this.handle_whitespace_and_comments(Ge,Z),this.handle_token(Ge,Z),Ge=E.comments_before.next();if(ze)for(var je=0;je<pe;je+=1)this.print_newline(je>0,Z);else if(this._options.max_preserve_newlines&&pe>this._options.max_preserve_newlines&&(pe=this._options.max_preserve_newlines),this._options.preserve_newlines&&pe>1){this.print_newline(!1,Z);for(var Ve=1;Ve<pe;Ve+=1)this.print_newline(!0,Z)}};var g=["async","break","continue","return","throw","yield"];H.prototype.allow_wrap_or_preserved_newline=function(E,Z){if(Z=Z===void 0?!1:Z,!this._output.just_added_newline()){var pe=this._options.preserve_newlines&&E.newlines||Z,ze=N(this._flags.last_token.text,se)||N(E.text,se);if(ze){var Ge=N(this._flags.last_token.text,se)&&N(this._options.operator_position,ye)||N(E.text,se);pe=pe&&Ge}if(pe)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(T(this._flags.last_token,g))return;this._output.set_wrap_point()}}},H.prototype.print_newline=function(E,Z){if(!Z&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==P.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var pe=this._tokens.peek();this._flags.mode===Re.Statement&&!(this._flags.if_block&&x(pe,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(E)&&(this._flags.multiline_frame=!0)},H.prototype.print_token_line_indentation=function(E){this._output.just_added_newline()&&(this._options.keep_array_indentation&&E.newlines&&(E.text==="["||F(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(E.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))},H.prototype.print_token=function(E){if(this._output.raw){this._output.add_raw_token(E);return}if(this._options.comma_first&&E.previous&&E.previous.type===P.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var Z=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(Z),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(E),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(E),this._output.non_breaking_space=!0,this._output.add_token(E.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},H.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},H.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))},H.prototype.set_mode=function(E){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,E),this._flags=this.create_flags(this._previous_flags,E),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},H.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===Re.Statement&&he(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},H.prototype.start_of_object_property=function(){return this._flags.parent.mode===Re.ObjectLiteral&&this._flags.mode===Re.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||T(this._flags.last_token,["get","set"]))},H.prototype.start_of_statement=function(E){var Z=!1;return Z=Z||T(this._flags.last_token,["var","let","const"])&&E.type===P.WORD,Z=Z||x(this._flags.last_token,"do"),Z=Z||!(this._flags.parent.mode===Re.ObjectLiteral&&this._flags.mode===Re.Statement)&&T(this._flags.last_token,g)&&!E.newlines,Z=Z||x(this._flags.last_token,"else")&&!(x(E,"if")&&!E.comments_before),Z=Z||this._flags.last_token.type===P.END_EXPR&&(this._previous_flags.mode===Re.ForInitializer||this._previous_flags.mode===Re.Conditional),Z=Z||this._flags.last_token.type===P.WORD&&this._flags.mode===Re.BlockStatement&&!this._flags.in_case&&!(E.text==="--"||E.text==="++")&&this._last_last_text!=="function"&&E.type!==P.WORD&&E.type!==P.RESERVED,Z=Z||this._flags.mode===Re.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||T(this._flags.last_token,["get","set"])),Z?(this.set_mode(Re.Statement),this.indent(),this.handle_whitespace_and_comments(E,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(E,T(E,["do","for","if","while"])),!0):!1},H.prototype.handle_start_expr=function(E){this.start_of_statement(E)||this.handle_whitespace_and_comments(E);var Z=Re.Expression;if(E.text==="["){if(this._flags.last_token.type===P.WORD||this._flags.last_token.text===")"){T(this._flags.last_token,k)&&(this._output.space_before_token=!0),this.print_token(E),this.set_mode(Z),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}Z=Re.ArrayLiteral,F(this._flags.mode)&&(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline()),N(this._flags.last_token.type,[P.START_EXPR,P.END_EXPR,P.WORD,P.OPERATOR,P.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===P.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,Z=Re.ForInitializer):N(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,Z=Re.Conditional):N(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&E.whitespace_before===""?this._output.space_before_token=!1:(N(this._flags.last_token.text,k)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===P.EQUALS||this._flags.last_token.type===P.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(E);else if(this._flags.last_token.type===P.WORD){this._output.space_before_token=!1;var pe=this._tokens.peek(-3);if(this._options.space_after_named_function&&pe){var ze=this._tokens.peek(-4);T(pe,["async","function"])||pe.text==="*"&&T(ze,["async","function"])?this._output.space_before_token=!0:this._flags.mode===Re.ObjectLiteral?(pe.text==="{"||pe.text===","||pe.text==="*"&&(ze.text==="{"||ze.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(E);(this._flags.last_token.type===P.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(N(this._last_last_text,["function","yield"])||this._flags.mode===Re.ObjectLiteral&&N(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===P.START_BLOCK?this.print_newline():(this._flags.last_token.type===P.END_EXPR||this._flags.last_token.type===P.START_EXPR||this._flags.last_token.type===P.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===P.COMMA)&&this.allow_wrap_or_preserved_newline(E,E.newlines),this.print_token(E),this.set_mode(Z),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},H.prototype.handle_end_expr=function(E){for(;this._flags.mode===Re.Statement;)this.restore_mode();this.handle_whitespace_and_comments(E),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(E,E.text==="]"&&F(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===P.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(E),this.restore_mode(),he(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===Re.Conditional&&(this._previous_flags.mode=Re.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},H.prototype.handle_start_block=function(E){this.handle_whitespace_and_comments(E);var Z=this._tokens.peek(),pe=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===P.END_EXPR?(this.set_mode(Re.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(Re.BlockStatement):pe&&(N(pe.text,[":",","])&&N(Z.type,[P.STRING,P.WORD,P.RESERVED])||N(Z.text,["get","set","..."])&&N(pe.type,[P.WORD,P.RESERVED]))?N(this._last_last_text,["class","interface"])&&!N(pe.text,[":",","])?this.set_mode(Re.BlockStatement):this.set_mode(Re.ObjectLiteral):this._flags.last_token.type===P.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(Re.BlockStatement):N(this._flags.last_token.type,[P.EQUALS,P.START_EXPR,P.COMMA,P.OPERATOR])||T(this._flags.last_token,["return","throw","import","default"])?this.set_mode(Re.ObjectLiteral):this.set_mode(Re.BlockStatement),this._flags.last_token&&T(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var ze=!Z.comments_before&&Z.text==="}",Ge=ze&&this._flags.last_word==="function"&&this._flags.last_token.type===P.END_EXPR;if(this._options.brace_preserve_inline){var je=0,Ve=null;this._flags.inline_frame=!0;do if(je+=1,Ve=this._tokens.peek(je-1),Ve.newlines){this._flags.inline_frame=!1;break}while(Ve.type!==P.EOF&&!(Ve.type===P.END_BLOCK&&Ve.opened===E))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&E.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==P.OPERATOR&&(Ge||this._flags.last_token.type===P.EQUALS||T(this._flags.last_token,$)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(F(this._previous_flags.mode)&&(this._flags.last_token.type===P.START_EXPR||this._flags.last_token.type===P.COMMA)&&((this._flags.last_token.type===P.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===P.COMMA||this._flags.last_token.type===P.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(E),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==P.OPERATOR&&this._flags.last_token.type!==P.START_EXPR&&(N(this._flags.last_token.type,[P.START_BLOCK,P.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(E),this.indent(),!ze&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},H.prototype.handle_end_block=function(E){for(this.handle_whitespace_and_comments(E);this._flags.mode===Re.Statement;)this.restore_mode();var Z=this._flags.last_token.type===P.START_BLOCK;this._flags.inline_frame&&!Z?this._output.space_before_token=!0:this._options.brace_style==="expand"?Z||this.print_newline():Z||(F(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(E)},H.prototype.handle_word=function(E){if(E.type===P.RESERVED){if(N(E.text,["set","get"])&&this._flags.mode!==Re.ObjectLiteral)E.type=P.WORD;else if(E.text==="import"&&N(this._tokens.peek().text,["(","."]))E.type=P.WORD;else if(N(E.text,["as","from"])&&!this._flags.import_block)E.type=P.WORD;else if(this._flags.mode===Re.ObjectLiteral){var Z=this._tokens.peek();Z.text===":"&&(E.type=P.WORD)}}if(this.start_of_statement(E)?T(this._flags.last_token,["var","let","const"])&&E.type===P.WORD&&(this._flags.declaration_statement=!0):E.newlines&&!le(this._flags.mode)&&(this._flags.last_token.type!==P.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==P.EQUALS&&(this._options.preserve_newlines||!T(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(E),this.print_newline()):this.handle_whitespace_and_comments(E),this._flags.do_block&&!this._flags.do_while)if(x(E,"while")){this._output.space_before_token=!0,this.print_token(E),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&x(E,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===Re.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&T(E,["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(E),this._flags.in_case=!0;return}if((this._flags.last_token.type===P.COMMA||this._flags.last_token.type===P.START_EXPR||this._flags.last_token.type===P.EQUALS||this._flags.last_token.type===P.OPERATOR)&&!this.start_of_object_property()&&!(N(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===Re.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(E),x(E,"function")){(N(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(N(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===P.OPERATOR))&&!this._output.just_added_blankline()&&!E.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===P.RESERVED||this._flags.last_token.type===P.WORD?T(this._flags.last_token,["get","set","new","export"])||T(this._flags.last_token,g)?this._output.space_before_token=!0:x(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===P.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(le(this._flags.mode)||F(this._flags.mode))||this.print_newline(),this.print_token(E),this._flags.last_word=E.text;return}var pe="NONE";if(this._flags.last_token.type===P.END_BLOCK?this._previous_flags.inline_frame?pe="SPACE":T(E,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&E.newlines?pe="NEWLINE":(pe="SPACE",this._output.space_before_token=!0):pe="NEWLINE":this._flags.last_token.type===P.SEMICOLON&&this._flags.mode===Re.BlockStatement?pe="NEWLINE":this._flags.last_token.type===P.SEMICOLON&&le(this._flags.mode)?pe="SPACE":this._flags.last_token.type===P.STRING?pe="NEWLINE":this._flags.last_token.type===P.RESERVED||this._flags.last_token.type===P.WORD||this._flags.last_token.text==="*"&&(N(this._last_last_text,["function","yield"])||this._flags.mode===Re.ObjectLiteral&&N(this._last_last_text,["{",","]))?pe="SPACE":this._flags.last_token.type===P.START_BLOCK?this._flags.inline_frame?pe="SPACE":pe="NEWLINE":this._flags.last_token.type===P.END_EXPR&&(this._output.space_before_token=!0,pe="NEWLINE"),T(E,k)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?pe="SPACE":pe="NEWLINE"),T(E,["else","catch","finally"]))if((!(this._flags.last_token.type===P.END_BLOCK&&this._previous_flags.mode===Re.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&E.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var ze=this._output.current_line;ze.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else pe==="NEWLINE"?T(this._flags.last_token,$)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&T(E,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==P.END_EXPR?(this._flags.last_token.type!==P.START_EXPR||!T(E,["var","let","const"]))&&this._flags.last_token.text!==":"&&(x(E,"if")&&x(E.previous,"else")?this._output.space_before_token=!0:this.print_newline()):T(E,k)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&F(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():pe==="SPACE"&&(this._output.space_before_token=!0);E.previous&&(E.previous.type===P.WORD||E.previous.type===P.RESERVED)&&(this._output.space_before_token=!0),this.print_token(E),this._flags.last_word=E.text,E.type===P.RESERVED&&(E.text==="do"?this._flags.do_block=!0:E.text==="if"?this._flags.if_block=!0:E.text==="import"?this._flags.import_block=!0:this._flags.import_block&&x(E,"from")&&(this._flags.import_block=!1))},H.prototype.handle_semicolon=function(E){this.start_of_statement(E)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(E);for(var Z=this._tokens.peek();this._flags.mode===Re.Statement&&!(this._flags.if_block&&x(Z,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(E)},H.prototype.handle_string=function(E){E.text.startsWith("`")&&E.newlines===0&&E.whitespace_before===""&&(E.previous.text===")"||this._flags.last_token.type===P.WORD)||(this.start_of_statement(E)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(E),this._flags.last_token.type===P.RESERVED||this._flags.last_token.type===P.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===P.COMMA||this._flags.last_token.type===P.START_EXPR||this._flags.last_token.type===P.EQUALS||this._flags.last_token.type===P.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(E):E.text.startsWith("`")&&this._flags.last_token.type===P.END_EXPR&&(E.previous.text==="]"||E.previous.text===")")&&E.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(E)},H.prototype.handle_equals=function(E){this.start_of_statement(E)||this.handle_whitespace_and_comments(E),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(E),this._output.space_before_token=!0},H.prototype.handle_comma=function(E){this.handle_whitespace_and_comments(E,!0),this.print_token(E),this._output.space_before_token=!0,this._flags.declaration_statement?(le(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(E)):this._flags.mode===Re.ObjectLiteral||this._flags.mode===Re.Statement&&this._flags.parent.mode===Re.ObjectLiteral?(this._flags.mode===Re.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(E)},H.prototype.handle_operator=function(E){var Z=E.text==="*"&&(T(this._flags.last_token,["function","yield"])||N(this._flags.last_token.type,[P.START_BLOCK,P.COMMA,P.END_BLOCK,P.SEMICOLON])),pe=N(E.text,["-","+"])&&(N(this._flags.last_token.type,[P.START_BLOCK,P.START_EXPR,P.EQUALS,P.OPERATOR])||N(this._flags.last_token.text,k)||this._flags.last_token.text===",");if(!this.start_of_statement(E)){var ze=!Z;this.handle_whitespace_and_comments(E,ze)}if(E.text==="*"&&this._flags.last_token.type===P.DOT){this.print_token(E);return}if(E.text==="::"){this.print_token(E);return}if(N(E.text,["-","+"])&&this.start_of_object_property()){this.print_token(E);return}if(this._flags.last_token.type===P.OPERATOR&&N(this._options.operator_position,ye)&&this.allow_wrap_or_preserved_newline(E),E.text===":"&&this._flags.in_case){this.print_token(E),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==P.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var Ge=!0,je=!0,Ve=!1;if(E.text===":"?this._flags.ternary_depth===0?Ge=!1:(this._flags.ternary_depth-=1,Ve=!0):E.text==="?"&&(this._flags.ternary_depth+=1),!pe&&!Z&&this._options.preserve_newlines&&N(E.text,se)){var mt=E.text===":",pt=mt&&Ve,nt=mt&&!Ve;switch(this._options.operator_position){case fe.before_newline:this._output.space_before_token=!nt,this.print_token(E),(!mt||pt)&&this.allow_wrap_or_preserved_newline(E),this._output.space_before_token=!0;return;case fe.after_newline:this._output.space_before_token=!0,!mt||pt?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(E):this._output.space_before_token=!1,this.print_token(E),this._output.space_before_token=!0;return;case fe.preserve_newline:nt||this.allow_wrap_or_preserved_newline(E),Ge=!(this._output.just_added_newline()||nt),this._output.space_before_token=Ge,this.print_token(E),this._output.space_before_token=!0;return}}if(Z){this.allow_wrap_or_preserved_newline(E),Ge=!1;var Gt=this._tokens.peek();je=Gt&&N(Gt.type,[P.WORD,P.RESERVED])}else if(E.text==="...")this.allow_wrap_or_preserved_newline(E),Ge=this._flags.last_token.type===P.START_BLOCK,je=!1;else if(N(E.text,["--","++","!","~"])||pe){if((this._flags.last_token.type===P.COMMA||this._flags.last_token.type===P.START_EXPR)&&this.allow_wrap_or_preserved_newline(E),Ge=!1,je=!1,E.newlines&&(E.text==="--"||E.text==="++"||E.text==="~")){var Jt=T(this._flags.last_token,$)&&E.newlines;Jt&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(Jt,!0)}this._flags.last_token.text===";"&&le(this._flags.mode)&&(Ge=!0),this._flags.last_token.type===P.RESERVED?Ge=!0:this._flags.last_token.type===P.END_EXPR?Ge=!(this._flags.last_token.text==="]"&&(E.text==="--"||E.text==="++")):this._flags.last_token.type===P.OPERATOR&&(Ge=N(E.text,["--","-","++","+"])&&N(this._flags.last_token.text,["--","-","++","+"]),N(E.text,["+","-"])&&N(this._flags.last_token.text,["--","++"])&&(je=!0)),(this._flags.mode===Re.BlockStatement&&!this._flags.inline_frame||this._flags.mode===Re.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||Ge,this.print_token(E),this._output.space_before_token=je},H.prototype.handle_block_comment=function(E,Z){if(this._output.raw){this._output.add_raw_token(E),E.directives&&E.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(E.directives){this.print_newline(!1,Z),this.print_token(E),E.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!u.newline.test(E.text)&&!E.newlines){this._output.space_before_token=!0,this.print_token(E),this._output.space_before_token=!0;return}else this.print_block_commment(E,Z)},H.prototype.print_block_commment=function(E,Z){var pe=G(E.text),ze,Ge=!1,je=!1,Ve=E.whitespace_before,mt=Ve.length;if(this.print_newline(!1,Z),this.print_token_line_indentation(E),this._output.add_token(pe[0]),this.print_newline(!1,Z),pe.length>1){for(pe=pe.slice(1),Ge=D(pe,"*"),je=Q(pe,Ve),Ge&&(this._flags.alignment=1),ze=0;ze<pe.length;ze++)Ge?(this.print_token_line_indentation(E),this._output.add_token(V(pe[ze]))):je&&pe[ze]?(this.print_token_line_indentation(E),this._output.add_token(pe[ze].substring(mt))):(this._output.current_line.set_indent(-1),this._output.add_token(pe[ze])),this.print_newline(!1,Z);this._flags.alignment=0}},H.prototype.handle_comment=function(E,Z){E.newlines?this.print_newline(!1,Z):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(E),this.print_newline(!1,Z)},H.prototype.handle_dot=function(E){this.start_of_statement(E)||this.handle_whitespace_and_comments(E,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),T(this._flags.last_token,$)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(E,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(E)},H.prototype.handle_unknown=function(E,Z){this.print_token(E),E.text[E.text.length-1]===`
`&&this.print_newline(!1,Z)},H.prototype.handle_eof=function(E){for(;this._flags.mode===Re.Statement;)this.restore_mode();this.handle_whitespace_and_comments(E)},_e.exports.Beautifier=H},function(_e){function a(v){this.__parent=v,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=[]}a.prototype.clone_empty=function(){var v=new a(this.__parent);return v.set_indent(this.__indent_count,this.__alignment_count),v},a.prototype.item=function(v){return v<0?this.__items[this.__items.length+v]:this.__items[v]},a.prototype.has_match=function(v){for(var u=this.__items.length-1;u>=0;u--)if(this.__items[u].match(v))return!0;return!1},a.prototype.set_indent=function(v,u){this.is_empty()&&(this.__indent_count=v||0,this.__alignment_count=u||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},a.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)},a.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},a.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var v=this.__parent.current_line;return v.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),v.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),v.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,v.__items[0]===" "&&(v.__items.splice(0,1),v.__character_count-=1),!0}return!1},a.prototype.is_empty=function(){return this.__items.length===0},a.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},a.prototype.push=function(v){this.__items.push(v);var u=v.lastIndexOf(`
`);u!==-1?this.__character_count=v.length-u:this.__character_count+=v.length},a.prototype.pop=function(){var v=null;return this.is_empty()||(v=this.__items.pop(),this.__character_count-=v.length),v},a.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},a.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},a.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},a.prototype.toString=function(){var v="";return this.is_empty()?this.__parent.indent_empty_lines&&(v=this.__parent.get_indent_string(this.__indent_count)):(v=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),v+=this.__items.join("")),v};function A(v,u){this.__cache=[""],this.__indent_size=v.indent_size,this.__indent_string=v.indent_char,v.indent_with_tabs||(this.__indent_string=new Array(v.indent_size+1).join(v.indent_char)),u=u||"",v.indent_level>0&&(u=new Array(v.indent_level+1).join(this.__indent_string)),this.__base_string=u,this.__base_string_length=u.length}A.prototype.get_indent_size=function(v,u){var y=this.__base_string_length;return u=u||0,v<0&&(y=0),y+=v*this.__indent_size,y+=u,y},A.prototype.get_indent_string=function(v,u){var y=this.__base_string;return u=u||0,v<0&&(v=0,y=""),u+=v*this.__indent_size,this.__ensure_cache(u),y+=this.__cache[u],y},A.prototype.__ensure_cache=function(v){for(;v>=this.__cache.length;)this.__add_column()},A.prototype.__add_column=function(){var v=this.__cache.length,u=0,y="";this.__indent_size&&v>=this.__indent_size&&(u=Math.floor(v/this.__indent_size),v-=u*this.__indent_size,y=new Array(u+1).join(this.__indent_string)),v&&(y+=new Array(v+1).join(" ")),this.__cache.push(y)};function L(v,u){this.__indent_cache=new A(v,u),this.raw=!1,this._end_with_newline=v.end_with_newline,this.indent_size=v.indent_size,this.wrap_line_length=v.wrap_line_length,this.indent_empty_lines=v.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new a(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}L.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},L.prototype.get_line_number=function(){return this.__lines.length},L.prototype.get_indent_string=function(v,u){return this.__indent_cache.get_indent_string(v,u)},L.prototype.get_indent_size=function(v,u){return this.__indent_cache.get_indent_size(v,u)},L.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},L.prototype.add_new_line=function(v){return this.is_empty()||!v&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},L.prototype.get_code=function(v){this.trim(!0);var u=this.current_line.pop();u&&(u[u.length-1]===`
`&&(u=u.replace(/\n+$/g,"")),this.current_line.push(u)),this._end_with_newline&&this.__add_outputline();var y=this.__lines.join(`
`);return v!==`
`&&(y=y.replace(/[\n]/g,v)),y},L.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},L.prototype.set_indent=function(v,u){return v=v||0,u=u||0,this.next_line.set_indent(v,u),this.__lines.length>1?(this.current_line.set_indent(v,u),!0):(this.current_line.set_indent(),!1)},L.prototype.add_raw_token=function(v){for(var u=0;u<v.newlines;u++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(v.whitespace_before),this.current_line.push(v.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},L.prototype.add_token=function(v){this.__add_space_before_token(),this.current_line.push(v),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},L.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(" "))},L.prototype.remove_indent=function(v){for(var u=this.__lines.length;v<u;)this.__lines[v]._remove_indent(),v++;this.current_line._remove_wrap_indent()},L.prototype.trim=function(v){for(v=v===void 0?!1:v,this.current_line.trim();v&&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},L.prototype.just_added_newline=function(){return this.current_line.is_empty()},L.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},L.prototype.ensure_empty_line_above=function(v,u){for(var y=this.__lines.length-2;y>=0;){var b=this.__lines[y];if(b.is_empty())break;if(b.item(0).indexOf(v)!==0&&b.item(-1)!==u){this.__lines.splice(y+1,0,new a(this)),this.previous_line=this.__lines[this.__lines.length-2];break}y--}},_e.exports.Output=L},function(_e){function a(A,L,v,u){this.type=A,this.text=L,this.comments_before=null,this.newlines=v||0,this.whitespace_before=u||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}_e.exports.Token=a},function(_e,a){var A="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",L="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",v="\\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",u="\\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",y="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",b="(?:"+y+"|["+A+v+"])",k="(?:"+y+"|["+L+v+u+"])*";a.identifier=new RegExp(b+k,"g"),a.identifierStart=new RegExp(b),a.identifierMatch=new RegExp("(?:"+y+"|["+L+v+u+"])+");var se=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;a.newline=/[\n\r\u2028\u2029]/,a.lineBreak=new RegExp(`\r
|`+a.newline.source),a.allLineBreaks=new RegExp(a.lineBreak.source,"g")},function(_e,a,A){var L=A(6).Options,v=["before-newline","after-newline","preserve-newline"];function u(y){L.call(this,y,"js");var b=this.raw_options.brace_style||null;b==="expand-strict"?this.raw_options.brace_style="expand":b==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var k=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var se=0;se<k.length;se++)k[se]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=k[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",v),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}u.prototype=new L,_e.exports.Options=u},function(_e){function a(v,u){this.raw_options=A(v,u),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"])}a.prototype._get_array=function(v,u){var y=this.raw_options[v],b=u||[];return typeof y=="object"?y!==null&&typeof y.concat=="function"&&(b=y.concat()):typeof y=="string"&&(b=y.split(/[^a-zA-Z0-9_\/\-]+/)),b},a.prototype._get_boolean=function(v,u){var y=this.raw_options[v],b=y===void 0?!!u:!!y;return b},a.prototype._get_characters=function(v,u){var y=this.raw_options[v],b=u||"";return typeof y=="string"&&(b=y.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),b},a.prototype._get_number=function(v,u){var y=this.raw_options[v];u=parseInt(u,10),isNaN(u)&&(u=0);var b=parseInt(y,10);return isNaN(b)&&(b=u),b},a.prototype._get_selection=function(v,u,y){var b=this._get_selection_list(v,u,y);if(b.length!==1)throw new Error("Invalid Option Value: The option '"+v+`' can only be one of the following values:
`+u+`
You passed in: '`+this.raw_options[v]+"'");return b[0]},a.prototype._get_selection_list=function(v,u,y){if(!u||u.length===0)throw new Error("Selection list cannot be empty.");if(y=y||[u[0]],!this._is_valid_selection(y,u))throw new Error("Invalid Default Value!");var b=this._get_array(v,y);if(!this._is_valid_selection(b,u))throw new Error("Invalid Option Value: The option '"+v+`' can contain only the following values:
`+u+`
You passed in: '`+this.raw_options[v]+"'");return b},a.prototype._is_valid_selection=function(v,u){return v.length&&u.length&&!v.some(function(y){return u.indexOf(y)===-1})};function A(v,u){var y={};v=L(v);var b;for(b in v)b!==u&&(y[b]=v[b]);if(u&&v[u])for(b in v[u])y[b]=v[u][b];return y}function L(v){var u={},y;for(y in v){var b=y.replace(/-/g,"_");u[b]=v[y]}return u}_e.exports.Options=a,_e.exports.normalizeOpts=L,_e.exports.mergeOpts=A},function(_e,a,A){var L=A(8).InputScanner,v=A(9).Tokenizer,u=A(9).TOKEN,y=A(13).Directives,b=A(4),k=A(12).Pattern,se=A(14).TemplatablePattern;function P(D,Q){return Q.indexOf(D)!==-1}var N={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:u.START,RAW:u.RAW,EOF:u.EOF},V=new y(/\/\*/,/\*\//),K=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,x=/[0-9]/,T=/[^\d\.]/,$=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),B=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";B=B.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),B="\\?\\.(?!\\d) "+B,B=B.replace(/ /g,"|");var fe=new RegExp(B),ye="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),Re=ye.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),he=new RegExp("^(?:"+Re.join("|")+")$"),G,F=function(D,Q){v.call(this,D,Q),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var H=new k(this._input),g=new se(this._input).read_options(this._options);this.__patterns={template:g,identifier:g.starting_with(b.identifier).matching(b.identifierMatch),number:H.matching(K),punct:H.matching(fe),comment:H.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:H.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:H.matching(/<!--/),html_comment_end:H.matching(/-->/),include:H.starting_with(/#include/).until_after(b.lineBreak),shebang:H.starting_with(/#!/).until_after(b.lineBreak),xml:H.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:g.until(/['\\\n\r\u2028\u2029]/),double_quote:g.until(/["\\\n\r\u2028\u2029]/),template_text:g.until(/[`\\$]/),template_expression:g.until(/[`}\\]/)}};F.prototype=new v,F.prototype._is_comment=function(D){return D.type===N.COMMENT||D.type===N.BLOCK_COMMENT||D.type===N.UNKNOWN},F.prototype._is_opening=function(D){return D.type===N.START_BLOCK||D.type===N.START_EXPR},F.prototype._is_closing=function(D,Q){return(D.type===N.END_BLOCK||D.type===N.END_EXPR)&&Q&&(D.text==="]"&&Q.text==="["||D.text===")"&&Q.text==="("||D.text==="}"&&Q.text==="{")},F.prototype._reset=function(){G=!1},F.prototype._get_next_token=function(D,Q){var H=null;this._readWhitespace();var g=this._input.peek();return g===null?this._create_token(N.EOF,""):(H=H||this._read_non_javascript(g),H=H||this._read_string(g),H=H||this._read_pair(g,this._input.peek(1)),H=H||this._read_word(D),H=H||this._read_singles(g),H=H||this._read_comment(g),H=H||this._read_regexp(g,D),H=H||this._read_xml(g,D),H=H||this._read_punctuation(),H=H||this._create_token(N.UNKNOWN,this._input.next()),H)},F.prototype._read_word=function(D){var Q;if(Q=this.__patterns.identifier.read(),Q!=="")return Q=Q.replace(b.allLineBreaks,`
`),!(D.type===N.DOT||D.type===N.RESERVED&&(D.text==="set"||D.text==="get"))&&he.test(Q)?(Q==="in"||Q==="of")&&(D.type===N.WORD||D.type===N.STRING)?this._create_token(N.OPERATOR,Q):this._create_token(N.RESERVED,Q):this._create_token(N.WORD,Q);if(Q=this.__patterns.number.read(),Q!=="")return this._create_token(N.WORD,Q)},F.prototype._read_singles=function(D){var Q=null;return D==="("||D==="["?Q=this._create_token(N.START_EXPR,D):D===")"||D==="]"?Q=this._create_token(N.END_EXPR,D):D==="{"?Q=this._create_token(N.START_BLOCK,D):D==="}"?Q=this._create_token(N.END_BLOCK,D):D===";"?Q=this._create_token(N.SEMICOLON,D):D==="."&&T.test(this._input.peek(1))?Q=this._create_token(N.DOT,D):D===","&&(Q=this._create_token(N.COMMA,D)),Q&&this._input.next(),Q},F.prototype._read_pair=function(D,Q){var H=null;return D==="#"&&Q==="{"&&(H=this._create_token(N.START_BLOCK,D+Q)),H&&(this._input.next(),this._input.next()),H},F.prototype._read_punctuation=function(){var D=this.__patterns.punct.read();if(D!=="")return D==="="?this._create_token(N.EQUALS,D):D==="?."?this._create_token(N.DOT,D):this._create_token(N.OPERATOR,D)},F.prototype._read_non_javascript=function(D){var Q="";if(D==="#"){if(this._is_first_token()&&(Q=this.__patterns.shebang.read(),Q))return this._create_token(N.UNKNOWN,Q.trim()+`
`);if(Q=this.__patterns.include.read(),Q)return this._create_token(N.UNKNOWN,Q.trim()+`
`);D=this._input.next();var H="#";if(this._input.hasNext()&&this._input.testChar(x)){do D=this._input.next(),H+=D;while(this._input.hasNext()&&D!=="#"&&D!=="=");return D==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(H+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(H+="{}",this._input.next(),this._input.next())),this._create_token(N.WORD,H)}this._input.back()}else if(D==="<"&&this._is_first_token()){if(Q=this.__patterns.html_comment_start.read(),Q){for(;this._input.hasNext()&&!this._input.testChar(b.newline);)Q+=this._input.next();return G=!0,this._create_token(N.COMMENT,Q)}}else if(G&&D==="-"&&(Q=this.__patterns.html_comment_end.read(),Q))return G=!1,this._create_token(N.COMMENT,Q);return null},F.prototype._read_comment=function(D){var Q=null;if(D==="/"){var H="";if(this._input.peek(1)==="*"){H=this.__patterns.block_comment.read();var g=V.get_directives(H);g&&g.ignore==="start"&&(H+=V.readIgnored(this._input)),H=H.replace(b.allLineBreaks,`
`),Q=this._create_token(N.BLOCK_COMMENT,H),Q.directives=g}else this._input.peek(1)==="/"&&(H=this.__patterns.comment.read(),Q=this._create_token(N.COMMENT,H))}return Q},F.prototype._read_string=function(D){if(D==="`"||D==="'"||D==='"'){var Q=this._input.next();return this.has_char_escapes=!1,D==="`"?Q+=this._read_string_recursive("`",!0,"${"):Q+=this._read_string_recursive(D),this.has_char_escapes&&this._options.unescape_strings&&(Q=le(Q)),this._input.peek()===D&&(Q+=this._input.next()),Q=Q.replace(b.allLineBreaks,`
`),this._create_token(N.STRING,Q)}return null},F.prototype._allow_regexp_or_xml=function(D){return D.type===N.RESERVED&&P(D.text,["return","case","throw","else","do","typeof","yield"])||D.type===N.END_EXPR&&D.text===")"&&D.opened.previous.type===N.RESERVED&&P(D.opened.previous.text,["if","while","for"])||P(D.type,[N.COMMENT,N.START_EXPR,N.START_BLOCK,N.START,N.END_BLOCK,N.OPERATOR,N.EQUALS,N.EOF,N.SEMICOLON,N.COMMA])},F.prototype._read_regexp=function(D,Q){if(D==="/"&&this._allow_regexp_or_xml(Q)){for(var H=this._input.next(),g=!1,E=!1;this._input.hasNext()&&(g||E||this._input.peek()!==D)&&!this._input.testChar(b.newline);)H+=this._input.peek(),g?g=!1:(g=this._input.peek()==="\\",this._input.peek()==="["?E=!0:this._input.peek()==="]"&&(E=!1)),this._input.next();return this._input.peek()===D&&(H+=this._input.next(),H+=this._input.read(b.identifier)),this._create_token(N.STRING,H)}return null},F.prototype._read_xml=function(D,Q){if(this._options.e4x&&D==="<"&&this._allow_regexp_or_xml(Q)){var H="",g=this.__patterns.xml.read_match();if(g){for(var E=g[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),Z=E.indexOf("{")===0,pe=0;g;){var ze=!!g[1],Ge=g[2],je=!!g[g.length-1]||Ge.slice(0,8)==="![CDATA[";if(!je&&(Ge===E||Z&&Ge.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(ze?--pe:++pe),H+=g[0],pe<=0)break;g=this.__patterns.xml.read_match()}return g||(H+=this._input.match(/[\s\S]*/g)[0]),H=H.replace(b.allLineBreaks,`
`),this._create_token(N.STRING,H)}}return null};function le(D){for(var Q="",H=0,g=new L(D),E=null;g.hasNext();)if(E=g.match(/([\s]|[^\\]|\\\\)+/g),E&&(Q+=E[0]),g.peek()==="\\"){if(g.next(),g.peek()==="x")E=g.match(/x([0-9A-Fa-f]{2})/g);else if(g.peek()==="u")E=g.match(/u([0-9A-Fa-f]{4})/g),E||(E=g.match(/u\{([0-9A-Fa-f]+)\}/g));else{Q+="\\",g.hasNext()&&(Q+=g.next());continue}if(!E||(H=parseInt(E[1],16),H>126&&H<=255&&E[0].indexOf("x")===0))return D;H>=0&&H<32||H>1114111?Q+="\\"+E[0]:H===34||H===39||H===92?Q+="\\"+String.fromCharCode(H):Q+=String.fromCharCode(H)}return Q}F.prototype._read_string_recursive=function(D,Q,H){var g,E;D==="'"?E=this.__patterns.single_quote:D==='"'?E=this.__patterns.double_quote:D==="`"?E=this.__patterns.template_text:D==="}"&&(E=this.__patterns.template_expression);for(var Z=E.read(),pe="";this._input.hasNext();){if(pe=this._input.next(),pe===D||!Q&&b.newline.test(pe)){this._input.back();break}else pe==="\\"&&this._input.hasNext()?(g=this._input.peek(),g==="x"||g==="u"?this.has_char_escapes=!0:g==="\r"&&this._input.peek(1)===`
`&&this._input.next(),pe+=this._input.next()):H&&(H==="${"&&pe==="$"&&this._input.peek()==="{"&&(pe+=this._input.next()),H===pe&&(D==="`"?pe+=this._read_string_recursive("}",Q,"`"):pe+=this._read_string_recursive("`",Q,"${"),this._input.hasNext()&&(pe+=this._input.next())));pe+=E.read(),Z+=pe}return Z},_e.exports.Tokenizer=F,_e.exports.TOKEN=N,_e.exports.positionable_operators=$.slice(),_e.exports.line_starters=ye.slice()},function(_e){var a=RegExp.prototype.hasOwnProperty("sticky");function A(L){this.__input=L||"",this.__input_length=this.__input.length,this.__position=0}A.prototype.restart=function(){this.__position=0},A.prototype.back=function(){this.__position>0&&(this.__position-=1)},A.prototype.hasNext=function(){return this.__position<this.__input_length},A.prototype.next=function(){var L=null;return this.hasNext()&&(L=this.__input.charAt(this.__position),this.__position+=1),L},A.prototype.peek=function(L){var v=null;return L=L||0,L+=this.__position,L>=0&&L<this.__input_length&&(v=this.__input.charAt(L)),v},A.prototype.__match=function(L,v){L.lastIndex=v;var u=L.exec(this.__input);return u&&!(a&&L.sticky)&&u.index!==v&&(u=null),u},A.prototype.test=function(L,v){return v=v||0,v+=this.__position,v>=0&&v<this.__input_length?!!this.__match(L,v):!1},A.prototype.testChar=function(L,v){var u=this.peek(v);return L.lastIndex=0,u!==null&&L.test(u)},A.prototype.match=function(L){var v=this.__match(L,this.__position);return v?this.__position+=v[0].length:v=null,v},A.prototype.read=function(L,v,u){var y="",b;return L&&(b=this.match(L),b&&(y+=b[0])),v&&(b||!L)&&(y+=this.readUntil(v,u)),y},A.prototype.readUntil=function(L,v){var u="",y=this.__position;L.lastIndex=this.__position;var b=L.exec(this.__input);return b?(y=b.index,v&&(y+=b[0].length)):y=this.__input_length,u=this.__input.substring(this.__position,y),this.__position=y,u},A.prototype.readUntilAfter=function(L){return this.readUntil(L,!0)},A.prototype.get_regexp=function(L,v){var u=null,y="g";return v&&a&&(y="y"),typeof L=="string"&&L!==""?u=new RegExp(L,y):L&&(u=new RegExp(L.source,y)),u},A.prototype.get_literal_regexp=function(L){return RegExp(L.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},A.prototype.peekUntilAfter=function(L){var v=this.__position,u=this.readUntilAfter(L);return this.__position=v,u},A.prototype.lookBack=function(L){var v=this.__position-1;return v>=L.length&&this.__input.substring(v-L.length,v).toLowerCase()===L},_e.exports.InputScanner=A},function(_e,a,A){var L=A(8).InputScanner,v=A(3).Token,u=A(10).TokenStream,y=A(11).WhitespacePattern,b={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},k=function(se,P){this._input=new L(se),this._options=P||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new y(this._input)};k.prototype.tokenize=function(){this._input.restart(),this.__tokens=new u,this._reset();for(var se,P=new v(b.START,""),N=null,V=[],K=new u;P.type!==b.EOF;){for(se=this._get_next_token(P,N);this._is_comment(se);)K.add(se),se=this._get_next_token(P,N);K.isEmpty()||(se.comments_before=K,K=new u),se.parent=N,this._is_opening(se)?(V.push(N),N=se):N&&this._is_closing(se,N)&&(se.opened=N,N.closed=se,N=V.pop(),se.parent=N),se.previous=P,P.next=se,this.__tokens.add(se),P=se}return this.__tokens},k.prototype._is_first_token=function(){return this.__tokens.isEmpty()},k.prototype._reset=function(){},k.prototype._get_next_token=function(se,P){this._readWhitespace();var N=this._input.read(/.+/g);return N?this._create_token(b.RAW,N):this._create_token(b.EOF,"")},k.prototype._is_comment=function(se){return!1},k.prototype._is_opening=function(se){return!1},k.prototype._is_closing=function(se,P){return!1},k.prototype._create_token=function(se,P){var N=new v(se,P,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return N},k.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},_e.exports.Tokenizer=k,_e.exports.TOKEN=b},function(_e){function a(A){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=A}a.prototype.restart=function(){this.__position=0},a.prototype.isEmpty=function(){return this.__tokens_length===0},a.prototype.hasNext=function(){return this.__position<this.__tokens_length},a.prototype.next=function(){var A=null;return this.hasNext()&&(A=this.__tokens[this.__position],this.__position+=1),A},a.prototype.peek=function(A){var L=null;return A=A||0,A+=this.__position,A>=0&&A<this.__tokens_length&&(L=this.__tokens[A]),L},a.prototype.add=function(A){this.__parent_token&&(A.parent=this.__parent_token),this.__tokens.push(A),this.__tokens_length+=1},_e.exports.TokenStream=a},function(_e,a,A){var L=A(12).Pattern;function v(u,y){L.call(this,u,y),y?this._line_regexp=this._input.get_regexp(y._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}v.prototype=new L,v.prototype.__set_whitespace_patterns=function(u,y){u+="\\t ",y+="\\n\\r",this._match_pattern=this._input.get_regexp("["+u+y+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+y+"]")},v.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var u=this._input.read(this._match_pattern);if(u===" ")this.whitespace_before_token=" ";else if(u){var y=this.__split(this._newline_regexp,u);this.newline_count=y.length-1,this.whitespace_before_token=y[this.newline_count]}return u},v.prototype.matching=function(u,y){var b=this._create();return b.__set_whitespace_patterns(u,y),b._update(),b},v.prototype._create=function(){return new v(this._input,this)},v.prototype.__split=function(u,y){u.lastIndex=0;for(var b=0,k=[],se=u.exec(y);se;)k.push(y.substring(b,se.index)),b=se.index+se[0].length,se=u.exec(y);return b<y.length?k.push(y.substring(b,y.length)):k.push(""),k},_e.exports.WhitespacePattern=v},function(_e){function a(A,L){this._input=A,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,L&&(this._starting_pattern=this._input.get_regexp(L._starting_pattern,!0),this._match_pattern=this._input.get_regexp(L._match_pattern,!0),this._until_pattern=this._input.get_regexp(L._until_pattern),this._until_after=L._until_after)}a.prototype.read=function(){var A=this._input.read(this._starting_pattern);return(!this._starting_pattern||A)&&(A+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),A},a.prototype.read_match=function(){return this._input.match(this._match_pattern)},a.prototype.until_after=function(A){var L=this._create();return L._until_after=!0,L._until_pattern=this._input.get_regexp(A),L._update(),L},a.prototype.until=function(A){var L=this._create();return L._until_after=!1,L._until_pattern=this._input.get_regexp(A),L._update(),L},a.prototype.starting_with=function(A){var L=this._create();return L._starting_pattern=this._input.get_regexp(A,!0),L._update(),L},a.prototype.matching=function(A){var L=this._create();return L._match_pattern=this._input.get_regexp(A,!0),L._update(),L},a.prototype._create=function(){return new a(this._input,this)},a.prototype._update=function(){},_e.exports.Pattern=a},function(_e){function a(A,L){A=typeof A=="string"?A:A.source,L=typeof L=="string"?L:L.source,this.__directives_block_pattern=new RegExp(A+/ beautify( \w+[:]\w+)+ /.source+L,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(A+/\sbeautify\signore:end\s/.source+L,"g")}a.prototype.get_directives=function(A){if(!A.match(this.__directives_block_pattern))return null;var L={};this.__directive_pattern.lastIndex=0;for(var v=this.__directive_pattern.exec(A);v;)L[v[1]]=v[2],v=this.__directive_pattern.exec(A);return L},a.prototype.readIgnored=function(A){return A.readUntilAfter(this.__directives_end_ignore_pattern)},_e.exports.Directives=a},function(_e,a,A){var L=A(12).Pattern,v={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function u(y,b){L.call(this,y,b),this.__template_pattern=null,this._disabled=Object.assign({},v),this._excluded=Object.assign({},v),b&&(this.__template_pattern=this._input.get_regexp(b.__template_pattern),this._excluded=Object.assign(this._excluded,b._excluded),this._disabled=Object.assign(this._disabled,b._disabled));var k=new L(y);this.__patterns={handlebars_comment:k.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:k.starting_with(/{{{/).until_after(/}}}/),handlebars:k.starting_with(/{{/).until_after(/}}/),php:k.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:k.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:k.starting_with(/{%/).until_after(/%}/),django_value:k.starting_with(/{{/).until_after(/}}/),django_comment:k.starting_with(/{#/).until_after(/#}/),smarty:k.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:k.starting_with(/{\*/).until_after(/\*}/),smarty_literal:k.starting_with(/{literal}/).until_after(/{\/literal}/)}}u.prototype=new L,u.prototype._create=function(){return new u(this._input,this)},u.prototype._update=function(){this.__set_templated_pattern()},u.prototype.disable=function(y){var b=this._create();return b._disabled[y]=!0,b._update(),b},u.prototype.read_options=function(y){var b=this._create();for(var k in v)b._disabled[k]=y.templating.indexOf(k)===-1;return b._update(),b},u.prototype.exclude=function(y){var b=this._create();return b._excluded[y]=!0,b._update(),b},u.prototype.read=function(){var y="";this._match_pattern?y=this._input.read(this._starting_pattern):y=this._input.read(this._starting_pattern,this.__template_pattern);for(var b=this._read_template();b;)this._match_pattern?b+=this._input.read(this._match_pattern):b+=this._input.readUntil(this.__template_pattern),y+=b,b=this._read_template();return this._until_after&&(y+=this._input.readUntilAfter(this._until_pattern)),y},u.prototype.__set_templated_pattern=function(){var y=[];this._disabled.php||y.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||y.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||y.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(y.push(this.__patterns.django._starting_pattern.source),y.push(this.__patterns.django_value._starting_pattern.source),y.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||y.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&y.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+y.join("|")+")")},u.prototype._read_template=function(){var y="",b=this._input.peek();if(b==="<"){var k=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&k==="?"&&(y=y||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&k==="%"&&(y=y||this.__patterns.erb.read())}else b==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(y=y||this.__patterns.handlebars_comment.read(),y=y||this.__patterns.handlebars_unescaped.read(),y=y||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(y=y||this.__patterns.django_value.read()),this._excluded.django||(y=y||this.__patterns.django_comment.read(),y=y||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(y=y||this.__patterns.smarty_comment.read(),y=y||this.__patterns.smarty_literal.read(),y=y||this.__patterns.smarty.read()));return y},_e.exports.TemplatablePattern=u}],j={};function X(_e){var a=j[_e];if(a!==void 0)return a.exports;var A=j[_e]={exports:{}};return Te[_e](A,A.exports,X),A.exports}var ve=X(0);Y=ve})();var ce=Y;p=[],M=function(){return{js_beautify:ce}}.apply(et,p),M!==void 0&&(Qt.exports=M)})()},15342:function(Qt){(function(p,M){Qt.exports=M()})(typeof self!="undefined"?self:this,function(){return function(et){var p={};function M(Y){if(p[Y])return p[Y].exports;var ce=p[Y]={i:Y,l:!1,exports:{}};return et[Y].call(ce.exports,ce,ce.exports,M),ce.l=!0,ce.exports}return M.m=et,M.c=p,M.d=function(Y,ce,Te){M.o(Y,ce)||Object.defineProperty(Y,ce,{enumerable:!0,get:Te})},M.r=function(Y){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Y,"__esModule",{value:!0})},M.t=function(Y,ce){if(ce&1&&(Y=M(Y)),ce&8||ce&4&&typeof Y=="object"&&Y&&Y.__esModule)return Y;var Te=Object.create(null);if(M.r(Te),Object.defineProperty(Te,"default",{enumerable:!0,value:Y}),ce&2&&typeof Y!="string")for(var j in Y)M.d(Te,j,function(X){return Y[X]}.bind(null,j));return Te},M.n=function(Y){var ce=Y&&Y.__esModule?function(){return Y.default}:function(){return Y};return M.d(ce,"a",ce),ce},M.o=function(Y,ce){return Object.prototype.hasOwnProperty.call(Y,ce)},M.p="",M(M.s=1)}([function(et,p,M){},function(et,p,M){"use strict";M.r(p);var Y=M(0),ce=function(){function ne(l,d,f){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=l,this.start=d,this.end=f}return ne.range=function(d,f){return f?!d||!d.loc||!f.loc||d.loc.lexer!==f.loc.lexer?null:new ne(d.loc.lexer,d.loc.start,f.loc.end):d&&d.loc},ne}(),Te=function(){function ne(d,f){this.text=void 0,this.loc=void 0,this.text=d,this.loc=f}var l=ne.prototype;return l.range=function(f,m){return new ne(m,ce.range(this,f))},ne}(),j=function ne(l,d){this.position=void 0;var f="KaTeX parse error: "+l,m,I=d&&d.loc;if(I&&I.start<=I.end){var ee=I.lexer.input;m=I.start;var Le=I.end;m===ee.length?f+=" at end of input: ":f+=" at position "+(m+1)+": ";var $e=ee.slice(m,Le).replace(/[^]/g,"$&\u0332"),Ye;m>15?Ye="\u2026"+ee.slice(m-15,m):Ye=ee.slice(0,m);var gt;Le+15<ee.length?gt=ee.slice(Le,Le+15)+"\u2026":gt=ee.slice(Le),f+=Ye+$e+gt}var At=new Error(f);return At.name="ParseError",At.__proto__=ne.prototype,At.position=m,At};j.prototype.__proto__=Error.prototype;var X=j,ve=function(l,d){return l.indexOf(d)!==-1},_e=function(l,d){return l===void 0?d:l},a=/([A-Z])/g,A=function(l){return l.replace(a,"-$1").toLowerCase()},L={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},v=/[&><"']/g;function u(ne){return String(ne).replace(v,function(l){return L[l]})}var y=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},b=function(l){var d=y(l);return d.type==="mathord"||d.type==="textord"||d.type==="atom"},k=function(l){if(!l)throw new Error("Expected non-null, but got "+String(l));return l},se=function(l){var d=/^\s*([^\\/#]*?)(?::|&#0*58|&#x0*3a)/i.exec(l);return d!=null?d[1]:"_relative"},P={contains:ve,deflt:_e,escape:u,hyphenate:A,getBaseElem:y,isCharacterBox:b,protocolFromUrl:se},N=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=P.deflt(d.displayMode,!1),this.output=P.deflt(d.output,"htmlAndMathml"),this.leqno=P.deflt(d.leqno,!1),this.fleqn=P.deflt(d.fleqn,!1),this.throwOnError=P.deflt(d.throwOnError,!0),this.errorColor=P.deflt(d.errorColor,"#cc0000"),this.macros=d.macros||{},this.minRuleThickness=Math.max(0,P.deflt(d.minRuleThickness,0)),this.colorIsTextColor=P.deflt(d.colorIsTextColor,!1),this.strict=P.deflt(d.strict,"warn"),this.trust=P.deflt(d.trust,!1),this.maxSize=Math.max(0,P.deflt(d.maxSize,1/0)),this.maxExpand=Math.max(0,P.deflt(d.maxExpand,1e3))}var l=ne.prototype;return l.reportNonstrict=function(f,m,I){var ee=this.strict;if(typeof ee=="function"&&(ee=ee(f,m,I)),!(!ee||ee==="ignore")){if(ee===!0||ee==="error")throw new X("LaTeX-incompatible input and strict mode is set to 'error': "+(m+" ["+f+"]"),I);ee==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(m+" ["+f+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+ee+"': "+m+" ["+f+"]"))}},l.useStrictBehavior=function(f,m,I){var ee=this.strict;if(typeof ee=="function")try{ee=ee(f,m,I)}catch(Le){ee="error"}return!ee||ee==="ignore"?!1:ee===!0||ee==="error"?!0:ee==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(m+" ["+f+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+ee+"': "+m+" ["+f+"]")),!1)},l.isTrusted=function(f){f.url&&!f.protocol&&(f.protocol=P.protocolFromUrl(f.url));var m=typeof this.trust=="function"?this.trust(f):this.trust;return!!m},ne}(),V=function(){function ne(d,f,m){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=d,this.size=f,this.cramped=m}var l=ne.prototype;return l.sup=function(){return he[G[this.id]]},l.sub=function(){return he[F[this.id]]},l.fracNum=function(){return he[le[this.id]]},l.fracDen=function(){return he[D[this.id]]},l.cramp=function(){return he[Q[this.id]]},l.text=function(){return he[H[this.id]]},l.isTight=function(){return this.size>=2},ne}(),K=0,x=1,T=2,$=3,B=4,fe=5,ye=6,Re=7,he=[new V(K,0,!1),new V(x,0,!0),new V(T,1,!1),new V($,1,!0),new V(B,2,!1),new V(fe,2,!0),new V(ye,3,!1),new V(Re,3,!0)],G=[B,fe,B,fe,ye,Re,ye,Re],F=[fe,fe,fe,fe,Re,Re,Re,Re],le=[T,$,B,fe,ye,Re,ye,Re],D=[$,$,fe,fe,Re,Re,Re,Re],Q=[x,x,$,$,fe,fe,Re,Re],H=[K,x,T,$,T,$,T,$],g={DISPLAY:he[K],TEXT:he[T],SCRIPT:he[B],SCRIPTSCRIPT:he[ye]},E=[{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<E.length;l++)for(var d=E[l],f=0;f<d.blocks.length;f++){var m=d.blocks[f];if(ne>=m[0]&&ne<=m[1])return d.name}return null}var pe=[];E.forEach(function(ne){return ne.blocks.forEach(function(l){return pe.push.apply(pe,l)})});function ze(ne){for(var l=0;l<pe.length;l+=2)if(ne>=pe[l]&&ne<=pe[l+1])return!0;return!1}var Ge=80,je=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"},Ve=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"},pt=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"},nt=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"},Gt=function(l,d,f){var m=f-54-d-l;return"M702 "+(l+d)+"H400000"+(40+l)+`
H742v`+m+`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"},Jt=function(l,d,f){d=1e3*d;var m="";switch(l){case"sqrtMain":m=je(d,Ge);break;case"sqrtSize1":m=Ve(d,Ge);break;case"sqrtSize2":m=mt(d,Ge);break;case"sqrtSize3":m=pt(d,Ge);break;case"sqrtSize4":m=nt(d,Ge);break;case"sqrtTall":m=Gt(d,Ge,f)}return m},sn={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`},Ut=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(f){return P.contains(this.classes,f)},l.toNode=function(){for(var f=document.createDocumentFragment(),m=0;m<this.children.length;m++)f.appendChild(this.children[m].toNode());return f},l.toMarkup=function(){for(var f="",m=0;m<this.children.length;m++)f+=this.children[m].toMarkup();return f},l.toText=function(){var f=function(I){return I.toText()};return this.children.map(f).join("")},ne}(),Xt=function(l){return l.filter(function(d){return d}).join(" ")},it=function(l,d,f){if(this.classes=l||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=f||{},d){d.style.isTight()&&this.classes.push("mtight");var m=d.getColor();m&&(this.style.color=m)}},te=function(l){var d=document.createElement(l);d.className=Xt(this.classes);for(var f in this.style)this.style.hasOwnProperty(f)&&(d.style[f]=this.style[f]);for(var m in this.attributes)this.attributes.hasOwnProperty(m)&&d.setAttribute(m,this.attributes[m]);for(var I=0;I<this.children.length;I++)d.appendChild(this.children[I].toNode());return d},ge=function(l){var d="<"+l;this.classes.length&&(d+=' class="'+P.escape(Xt(this.classes))+'"');var f="";for(var m in this.style)this.style.hasOwnProperty(m)&&(f+=P.hyphenate(m)+":"+this.style[m]+";");f&&(d+=' style="'+P.escape(f)+'"');for(var I in this.attributes)this.attributes.hasOwnProperty(I)&&(d+=" "+I+'="'+P.escape(this.attributes[I])+'"');d+=">";for(var ee=0;ee<this.children.length;ee++)d+=this.children[ee].toMarkup();return d+="</"+l+">",d},q=function(){function ne(d,f,m,I){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,it.call(this,d,m,I),this.children=f||[]}var l=ne.prototype;return l.setAttribute=function(f,m){this.attributes[f]=m},l.hasClass=function(f){return P.contains(this.classes,f)},l.toNode=function(){return te.call(this,"span")},l.toMarkup=function(){return ge.call(this,"span")},ne}(),z=function(){function ne(d,f,m,I){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,it.call(this,f,I),this.children=m||[],this.setAttribute("href",d)}var l=ne.prototype;return l.setAttribute=function(f,m){this.attributes[f]=m},l.hasClass=function(f){return P.contains(this.classes,f)},l.toNode=function(){return te.call(this,"a")},l.toMarkup=function(){return ge.call(this,"a")},ne}(),De=function(){function ne(d,f,m){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=f,this.src=d,this.classes=["mord"],this.style=m}var l=ne.prototype;return l.hasClass=function(f){return P.contains(this.classes,f)},l.toNode=function(){var f=document.createElement("img");f.src=this.src,f.alt=this.alt,f.className="mord";for(var m in this.style)this.style.hasOwnProperty(m)&&(f.style[m]=this.style[m]);return f},l.toMarkup=function(){var f="<img src='"+this.src+" 'alt='"+this.alt+"' ",m="";for(var I in this.style)this.style.hasOwnProperty(I)&&(m+=P.hyphenate(I)+":"+this.style[I]+";");return m&&(f+=' style="'+P.escape(m)+'"'),f+="'/>",f},ne}(),O={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},ae=function(){function ne(d,f,m,I,ee,Le,$e,Ye){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=f||0,this.depth=m||0,this.italic=I||0,this.skew=ee||0,this.width=Le||0,this.classes=$e||[],this.style=Ye||{},this.maxFontSize=0;var gt=Z(this.text.charCodeAt(0));gt&&this.classes.push(gt+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=O[this.text])}var l=ne.prototype;return l.hasClass=function(f){return P.contains(this.classes,f)},l.toNode=function(){var f=document.createTextNode(this.text),m=null;this.italic>0&&(m=document.createElement("span"),m.style.marginRight=this.italic+"em"),this.classes.length>0&&(m=m||document.createElement("span"),m.className=Xt(this.classes));for(var I in this.style)this.style.hasOwnProperty(I)&&(m=m||document.createElement("span"),m.style[I]=this.style[I]);return m?(m.appendChild(f),m):f},l.toMarkup=function(){var f=!1,m="<span";this.classes.length&&(f=!0,m+=' class="',m+=P.escape(Xt(this.classes)),m+='"');var I="";this.italic>0&&(I+="margin-right:"+this.italic+"em;");for(var ee in this.style)this.style.hasOwnProperty(ee)&&(I+=P.hyphenate(ee)+":"+this.style[ee]+";");I&&(f=!0,m+=' style="'+P.escape(I)+'"');var Le=P.escape(this.text);return f?(m+=">",m+=Le,m+="</span>",m):Le},ne}(),J=function(){function ne(d,f){this.children=void 0,this.attributes=void 0,this.children=d||[],this.attributes=f||{}}var l=ne.prototype;return l.toNode=function(){var f="http://www.w3.org/2000/svg",m=document.createElementNS(f,"svg");for(var I in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,I)&&m.setAttribute(I,this.attributes[I]);for(var ee=0;ee<this.children.length;ee++)m.appendChild(this.children[ee].toNode());return m},l.toMarkup=function(){var f="<svg";for(var m in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,m)&&(f+=" "+m+"='"+this.attributes[m]+"'");f+=">";for(var I=0;I<this.children.length;I++)f+=this.children[I].toMarkup();return f+="</svg>",f},ne}(),oe=function(){function ne(d,f){this.pathName=void 0,this.alternate=void 0,this.pathName=d,this.alternate=f}var l=ne.prototype;return l.toNode=function(){var f="http://www.w3.org/2000/svg",m=document.createElementNS(f,"path");return this.alternate?m.setAttribute("d",this.alternate):m.setAttribute("d",sn[this.pathName]),m},l.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+sn[this.pathName]+"'/>"},ne}(),de=function(){function ne(d){this.attributes=void 0,this.attributes=d||{}}var l=ne.prototype;return l.toNode=function(){var f="http://www.w3.org/2000/svg",m=document.createElementNS(f,"line");for(var I in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,I)&&m.setAttribute(I,this.attributes[I]);return m},l.toMarkup=function(){var f="<line";for(var m in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,m)&&(f+=" "+m+"='"+this.attributes[m]+"'");return f+="/>",f},ne}();function Ce(ne){if(ne instanceof ae)return ne;throw new Error("Expected symbolNode but got "+String(ne)+".")}function xe(ne){if(ne instanceof q)return ne;throw new Error("Expected span<HtmlDomNode> but got "+String(ne)+".")}var ke={"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]}},Ie={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]},Pe={\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 Xe(ne,l){ke[ne]=l}function rt(ne,l,d){if(!ke[l])throw new Error("Font metrics not found for font: "+l+".");var f=ne.charCodeAt(0),m=ke[l][f];if(!m&&ne[0]in Pe&&(f=Pe[ne[0]].charCodeAt(0),m=ke[l][f]),!m&&d==="text"&&ze(f)&&(m=ke[l][77]),m)return{depth:m[0],height:m[1],italic:m[2],skew:m[3],width:m[4]}}var Ze={};function ct(ne){var l;if(ne>=5?l=0:ne>=3?l=1:l=2,!Ze[l]){var d=Ze[l]={cssEmPerMu:Ie.quad[l]/18};for(var f in Ie)Ie.hasOwnProperty(f)&&(d[f]=Ie[f][l])}return Ze[l]}var ut={bin:1,close:1,inner:1,open:1,punct:1,rel:1},ot={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Ot={math:{},text:{}},_t=Ot;function w(ne,l,d,f,m,I){Ot[ne][m]={font:l,group:d,replace:f},I&&f&&(Ot[ne][f]=Ot[ne][m])}var C="math",lt="text",ie="main",Oe="ams",mn="accent-token",Fe="bin",We="close",Je="inner",ue="mathord",W="op-token",we="open",Be="punct",U="rel",at="spacing",Ee="textord";w(C,ie,U,"\u2261","\\equiv",!0),w(C,ie,U,"\u227A","\\prec",!0),w(C,ie,U,"\u227B","\\succ",!0),w(C,ie,U,"\u223C","\\sim",!0),w(C,ie,U,"\u22A5","\\perp"),w(C,ie,U,"\u2AAF","\\preceq",!0),w(C,ie,U,"\u2AB0","\\succeq",!0),w(C,ie,U,"\u2243","\\simeq",!0),w(C,ie,U,"\u2223","\\mid",!0),w(C,ie,U,"\u226A","\\ll",!0),w(C,ie,U,"\u226B","\\gg",!0),w(C,ie,U,"\u224D","\\asymp",!0),w(C,ie,U,"\u2225","\\parallel"),w(C,ie,U,"\u22C8","\\bowtie",!0),w(C,ie,U,"\u2323","\\smile",!0),w(C,ie,U,"\u2291","\\sqsubseteq",!0),w(C,ie,U,"\u2292","\\sqsupseteq",!0),w(C,ie,U,"\u2250","\\doteq",!0),w(C,ie,U,"\u2322","\\frown",!0),w(C,ie,U,"\u220B","\\ni",!0),w(C,ie,U,"\u221D","\\propto",!0),w(C,ie,U,"\u22A2","\\vdash",!0),w(C,ie,U,"\u22A3","\\dashv",!0),w(C,ie,U,"\u220B","\\owns"),w(C,ie,Be,".","\\ldotp"),w(C,ie,Be,"\u22C5","\\cdotp"),w(C,ie,Ee,"#","\\#"),w(lt,ie,Ee,"#","\\#"),w(C,ie,Ee,"&","\\&"),w(lt,ie,Ee,"&","\\&"),w(C,ie,Ee,"\u2135","\\aleph",!0),w(C,ie,Ee,"\u2200","\\forall",!0),w(C,ie,Ee,"\u210F","\\hbar",!0),w(C,ie,Ee,"\u2203","\\exists",!0),w(C,ie,Ee,"\u2207","\\nabla",!0),w(C,ie,Ee,"\u266D","\\flat",!0),w(C,ie,Ee,"\u2113","\\ell",!0),w(C,ie,Ee,"\u266E","\\natural",!0),w(C,ie,Ee,"\u2663","\\clubsuit",!0),w(C,ie,Ee,"\u2118","\\wp",!0),w(C,ie,Ee,"\u266F","\\sharp",!0),w(C,ie,Ee,"\u2662","\\diamondsuit",!0),w(C,ie,Ee,"\u211C","\\Re",!0),w(C,ie,Ee,"\u2661","\\heartsuit",!0),w(C,ie,Ee,"\u2111","\\Im",!0),w(C,ie,Ee,"\u2660","\\spadesuit",!0),w(lt,ie,Ee,"\xA7","\\S",!0),w(lt,ie,Ee,"\xB6","\\P",!0),w(C,ie,Ee,"\u2020","\\dag"),w(lt,ie,Ee,"\u2020","\\dag"),w(lt,ie,Ee,"\u2020","\\textdagger"),w(C,ie,Ee,"\u2021","\\ddag"),w(lt,ie,Ee,"\u2021","\\ddag"),w(lt,ie,Ee,"\u2021","\\textdaggerdbl"),w(C,ie,We,"\u23B1","\\rmoustache",!0),w(C,ie,we,"\u23B0","\\lmoustache",!0),w(C,ie,We,"\u27EF","\\rgroup",!0),w(C,ie,we,"\u27EE","\\lgroup",!0),w(C,ie,Fe,"\u2213","\\mp",!0),w(C,ie,Fe,"\u2296","\\ominus",!0),w(C,ie,Fe,"\u228E","\\uplus",!0),w(C,ie,Fe,"\u2293","\\sqcap",!0),w(C,ie,Fe,"\u2217","\\ast"),w(C,ie,Fe,"\u2294","\\sqcup",!0),w(C,ie,Fe,"\u25EF","\\bigcirc"),w(C,ie,Fe,"\u2219","\\bullet"),w(C,ie,Fe,"\u2021","\\ddagger"),w(C,ie,Fe,"\u2240","\\wr",!0),w(C,ie,Fe,"\u2A3F","\\amalg"),w(C,ie,Fe,"&","\\And"),w(C,ie,U,"\u27F5","\\longleftarrow",!0),w(C,ie,U,"\u21D0","\\Leftarrow",!0),w(C,ie,U,"\u27F8","\\Longleftarrow",!0),w(C,ie,U,"\u27F6","\\longrightarrow",!0),w(C,ie,U,"\u21D2","\\Rightarrow",!0),w(C,ie,U,"\u27F9","\\Longrightarrow",!0),w(C,ie,U,"\u2194","\\leftrightarrow",!0),w(C,ie,U,"\u27F7","\\longleftrightarrow",!0),w(C,ie,U,"\u21D4","\\Leftrightarrow",!0),w(C,ie,U,"\u27FA","\\Longleftrightarrow",!0),w(C,ie,U,"\u21A6","\\mapsto",!0),w(C,ie,U,"\u27FC","\\longmapsto",!0),w(C,ie,U,"\u2197","\\nearrow",!0),w(C,ie,U,"\u21A9","\\hookleftarrow",!0),w(C,ie,U,"\u21AA","\\hookrightarrow",!0),w(C,ie,U,"\u2198","\\searrow",!0),w(C,ie,U,"\u21BC","\\leftharpoonup",!0),w(C,ie,U,"\u21C0","\\rightharpoonup",!0),w(C,ie,U,"\u2199","\\swarrow",!0),w(C,ie,U,"\u21BD","\\leftharpoondown",!0),w(C,ie,U,"\u21C1","\\rightharpoondown",!0),w(C,ie,U,"\u2196","\\nwarrow",!0),w(C,ie,U,"\u21CC","\\rightleftharpoons",!0),w(C,Oe,U,"\u226E","\\nless",!0),w(C,Oe,U,"\uE010","\\@nleqslant"),w(C,Oe,U,"\uE011","\\@nleqq"),w(C,Oe,U,"\u2A87","\\lneq",!0),w(C,Oe,U,"\u2268","\\lneqq",!0),w(C,Oe,U,"\uE00C","\\@lvertneqq"),w(C,Oe,U,"\u22E6","\\lnsim",!0),w(C,Oe,U,"\u2A89","\\lnapprox",!0),w(C,Oe,U,"\u2280","\\nprec",!0),w(C,Oe,U,"\u22E0","\\npreceq",!0),w(C,Oe,U,"\u22E8","\\precnsim",!0),w(C,Oe,U,"\u2AB9","\\precnapprox",!0),w(C,Oe,U,"\u2241","\\nsim",!0),w(C,Oe,U,"\uE006","\\@nshortmid"),w(C,Oe,U,"\u2224","\\nmid",!0),w(C,Oe,U,"\u22AC","\\nvdash",!0),w(C,Oe,U,"\u22AD","\\nvDash",!0),w(C,Oe,U,"\u22EA","\\ntriangleleft"),w(C,Oe,U,"\u22EC","\\ntrianglelefteq",!0),w(C,Oe,U,"\u228A","\\subsetneq",!0),w(C,Oe,U,"\uE01A","\\@varsubsetneq"),w(C,Oe,U,"\u2ACB","\\subsetneqq",!0),w(C,Oe,U,"\uE017","\\@varsubsetneqq"),w(C,Oe,U,"\u226F","\\ngtr",!0),w(C,Oe,U,"\uE00F","\\@ngeqslant"),w(C,Oe,U,"\uE00E","\\@ngeqq"),w(C,Oe,U,"\u2A88","\\gneq",!0),w(C,Oe,U,"\u2269","\\gneqq",!0),w(C,Oe,U,"\uE00D","\\@gvertneqq"),w(C,Oe,U,"\u22E7","\\gnsim",!0),w(C,Oe,U,"\u2A8A","\\gnapprox",!0),w(C,Oe,U,"\u2281","\\nsucc",!0),w(C,Oe,U,"\u22E1","\\nsucceq",!0),w(C,Oe,U,"\u22E9","\\succnsim",!0),w(C,Oe,U,"\u2ABA","\\succnapprox",!0),w(C,Oe,U,"\u2246","\\ncong",!0),w(C,Oe,U,"\uE007","\\@nshortparallel"),w(C,Oe,U,"\u2226","\\nparallel",!0),w(C,Oe,U,"\u22AF","\\nVDash",!0),w(C,Oe,U,"\u22EB","\\ntriangleright"),w(C,Oe,U,"\u22ED","\\ntrianglerighteq",!0),w(C,Oe,U,"\uE018","\\@nsupseteqq"),w(C,Oe,U,"\u228B","\\supsetneq",!0),w(C,Oe,U,"\uE01B","\\@varsupsetneq"),w(C,Oe,U,"\u2ACC","\\supsetneqq",!0),w(C,Oe,U,"\uE019","\\@varsupsetneqq"),w(C,Oe,U,"\u22AE","\\nVdash",!0),w(C,Oe,U,"\u2AB5","\\precneqq",!0),w(C,Oe,U,"\u2AB6","\\succneqq",!0),w(C,Oe,U,"\uE016","\\@nsubseteqq"),w(C,Oe,Fe,"\u22B4","\\unlhd"),w(C,Oe,Fe,"\u22B5","\\unrhd"),w(C,Oe,U,"\u219A","\\nleftarrow",!0),w(C,Oe,U,"\u219B","\\nrightarrow",!0),w(C,Oe,U,"\u21CD","\\nLeftarrow",!0),w(C,Oe,U,"\u21CF","\\nRightarrow",!0),w(C,Oe,U,"\u21AE","\\nleftrightarrow",!0),w(C,Oe,U,"\u21CE","\\nLeftrightarrow",!0),w(C,Oe,U,"\u25B3","\\vartriangle"),w(C,Oe,Ee,"\u210F","\\hslash"),w(C,Oe,Ee,"\u25BD","\\triangledown"),w(C,Oe,Ee,"\u25CA","\\lozenge"),w(C,Oe,Ee,"\u24C8","\\circledS"),w(C,Oe,Ee,"\xAE","\\circledR"),w(lt,Oe,Ee,"\xAE","\\circledR"),w(C,Oe,Ee,"\u2221","\\measuredangle",!0),w(C,Oe,Ee,"\u2204","\\nexists"),w(C,Oe,Ee,"\u2127","\\mho"),w(C,Oe,Ee,"\u2132","\\Finv",!0),w(C,Oe,Ee,"\u2141","\\Game",!0),w(C,Oe,Ee,"\u2035","\\backprime"),w(C,Oe,Ee,"\u25B2","\\blacktriangle"),w(C,Oe,Ee,"\u25BC","\\blacktriangledown"),w(C,Oe,Ee,"\u25A0","\\blacksquare"),w(C,Oe,Ee,"\u29EB","\\blacklozenge"),w(C,Oe,Ee,"\u2605","\\bigstar"),w(C,Oe,Ee,"\u2222","\\sphericalangle",!0),w(C,Oe,Ee,"\u2201","\\complement",!0),w(C,Oe,Ee,"\xF0","\\eth",!0),w(C,Oe,Ee,"\u2571","\\diagup"),w(C,Oe,Ee,"\u2572","\\diagdown"),w(C,Oe,Ee,"\u25A1","\\square"),w(C,Oe,Ee,"\u25A1","\\Box"),w(C,Oe,Ee,"\u25CA","\\Diamond"),w(C,Oe,Ee,"\xA5","\\yen",!0),w(lt,Oe,Ee,"\xA5","\\yen",!0),w(C,Oe,Ee,"\u2713","\\checkmark",!0),w(lt,Oe,Ee,"\u2713","\\checkmark"),w(C,Oe,Ee,"\u2136","\\beth",!0),w(C,Oe,Ee,"\u2138","\\daleth",!0),w(C,Oe,Ee,"\u2137","\\gimel",!0),w(C,Oe,Ee,"\u03DD","\\digamma",!0),w(C,Oe,Ee,"\u03F0","\\varkappa"),w(C,Oe,we,"\u250C","\\ulcorner",!0),w(C,Oe,We,"\u2510","\\urcorner",!0),w(C,Oe,we,"\u2514","\\llcorner",!0),w(C,Oe,We,"\u2518","\\lrcorner",!0),w(C,Oe,U,"\u2266","\\leqq",!0),w(C,Oe,U,"\u2A7D","\\leqslant",!0),w(C,Oe,U,"\u2A95","\\eqslantless",!0),w(C,Oe,U,"\u2272","\\lesssim",!0),w(C,Oe,U,"\u2A85","\\lessapprox",!0),w(C,Oe,U,"\u224A","\\approxeq",!0),w(C,Oe,Fe,"\u22D6","\\lessdot"),w(C,Oe,U,"\u22D8","\\lll",!0),w(C,Oe,U,"\u2276","\\lessgtr",!0),w(C,Oe,U,"\u22DA","\\lesseqgtr",!0),w(C,Oe,U,"\u2A8B","\\lesseqqgtr",!0),w(C,Oe,U,"\u2251","\\doteqdot"),w(C,Oe,U,"\u2253","\\risingdotseq",!0),w(C,Oe,U,"\u2252","\\fallingdotseq",!0),w(C,Oe,U,"\u223D","\\backsim",!0),w(C,Oe,U,"\u22CD","\\backsimeq",!0),w(C,Oe,U,"\u2AC5","\\subseteqq",!0),w(C,Oe,U,"\u22D0","\\Subset",!0),w(C,Oe,U,"\u228F","\\sqsubset",!0),w(C,Oe,U,"\u227C","\\preccurlyeq",!0),w(C,Oe,U,"\u22DE","\\curlyeqprec",!0),w(C,Oe,U,"\u227E","\\precsim",!0),w(C,Oe,U,"\u2AB7","\\precapprox",!0),w(C,Oe,U,"\u22B2","\\vartriangleleft"),w(C,Oe,U,"\u22B4","\\trianglelefteq"),w(C,Oe,U,"\u22A8","\\vDash",!0),w(C,Oe,U,"\u22AA","\\Vvdash",!0),w(C,Oe,U,"\u2323","\\smallsmile"),w(C,Oe,U,"\u2322","\\smallfrown"),w(C,Oe,U,"\u224F","\\bumpeq",!0),w(C,Oe,U,"\u224E","\\Bumpeq",!0),w(C,Oe,U,"\u2267","\\geqq",!0),w(C,Oe,U,"\u2A7E","\\geqslant",!0),w(C,Oe,U,"\u2A96","\\eqslantgtr",!0),w(C,Oe,U,"\u2273","\\gtrsim",!0),w(C,Oe,U,"\u2A86","\\gtrapprox",!0),w(C,Oe,Fe,"\u22D7","\\gtrdot"),w(C,Oe,U,"\u22D9","\\ggg",!0),w(C,Oe,U,"\u2277","\\gtrless",!0),w(C,Oe,U,"\u22DB","\\gtreqless",!0),w(C,Oe,U,"\u2A8C","\\gtreqqless",!0),w(C,Oe,U,"\u2256","\\eqcirc",!0),w(C,Oe,U,"\u2257","\\circeq",!0),w(C,Oe,U,"\u225C","\\triangleq",!0),w(C,Oe,U,"\u223C","\\thicksim"),w(C,Oe,U,"\u2248","\\thickapprox"),w(C,Oe,U,"\u2AC6","\\supseteqq",!0),w(C,Oe,U,"\u22D1","\\Supset",!0),w(C,Oe,U,"\u2290","\\sqsupset",!0),w(C,Oe,U,"\u227D","\\succcurlyeq",!0),w(C,Oe,U,"\u22DF","\\curlyeqsucc",!0),w(C,Oe,U,"\u227F","\\succsim",!0),w(C,Oe,U,"\u2AB8","\\succapprox",!0),w(C,Oe,U,"\u22B3","\\vartriangleright"),w(C,Oe,U,"\u22B5","\\trianglerighteq"),w(C,Oe,U,"\u22A9","\\Vdash",!0),w(C,Oe,U,"\u2223","\\shortmid"),w(C,Oe,U,"\u2225","\\shortparallel"),w(C,Oe,U,"\u226C","\\between",!0),w(C,Oe,U,"\u22D4","\\pitchfork",!0),w(C,Oe,U,"\u221D","\\varpropto"),w(C,Oe,U,"\u25C0","\\blacktriangleleft"),w(C,Oe,U,"\u2234","\\therefore",!0),w(C,Oe,U,"\u220D","\\backepsilon"),w(C,Oe,U,"\u25B6","\\blacktriangleright"),w(C,Oe,U,"\u2235","\\because",!0),w(C,Oe,U,"\u22D8","\\llless"),w(C,Oe,U,"\u22D9","\\gggtr"),w(C,Oe,Fe,"\u22B2","\\lhd"),w(C,Oe,Fe,"\u22B3","\\rhd"),w(C,Oe,U,"\u2242","\\eqsim",!0),w(C,ie,U,"\u22C8","\\Join"),w(C,Oe,U,"\u2251","\\Doteq",!0),w(C,Oe,Fe,"\u2214","\\dotplus",!0),w(C,Oe,Fe,"\u2216","\\smallsetminus"),w(C,Oe,Fe,"\u22D2","\\Cap",!0),w(C,Oe,Fe,"\u22D3","\\Cup",!0),w(C,Oe,Fe,"\u2A5E","\\doublebarwedge",!0),w(C,Oe,Fe,"\u229F","\\boxminus",!0),w(C,Oe,Fe,"\u229E","\\boxplus",!0),w(C,Oe,Fe,"\u22C7","\\divideontimes",!0),w(C,Oe,Fe,"\u22C9","\\ltimes",!0),w(C,Oe,Fe,"\u22CA","\\rtimes",!0),w(C,Oe,Fe,"\u22CB","\\leftthreetimes",!0),w(C,Oe,Fe,"\u22CC","\\rightthreetimes",!0),w(C,Oe,Fe,"\u22CF","\\curlywedge",!0),w(C,Oe,Fe,"\u22CE","\\curlyvee",!0),w(C,Oe,Fe,"\u229D","\\circleddash",!0),w(C,Oe,Fe,"\u229B","\\circledast",!0),w(C,Oe,Fe,"\u22C5","\\centerdot"),w(C,Oe,Fe,"\u22BA","\\intercal",!0),w(C,Oe,Fe,"\u22D2","\\doublecap"),w(C,Oe,Fe,"\u22D3","\\doublecup"),w(C,Oe,Fe,"\u22A0","\\boxtimes",!0),w(C,Oe,U,"\u21E2","\\dashrightarrow",!0),w(C,Oe,U,"\u21E0","\\dashleftarrow",!0),w(C,Oe,U,"\u21C7","\\leftleftarrows",!0),w(C,Oe,U,"\u21C6","\\leftrightarrows",!0),w(C,Oe,U,"\u21DA","\\Lleftarrow",!0),w(C,Oe,U,"\u219E","\\twoheadleftarrow",!0),w(C,Oe,U,"\u21A2","\\leftarrowtail",!0),w(C,Oe,U,"\u21AB","\\looparrowleft",!0),w(C,Oe,U,"\u21CB","\\leftrightharpoons",!0),w(C,Oe,U,"\u21B6","\\curvearrowleft",!0),w(C,Oe,U,"\u21BA","\\circlearrowleft",!0),w(C,Oe,U,"\u21B0","\\Lsh",!0),w(C,Oe,U,"\u21C8","\\upuparrows",!0),w(C,Oe,U,"\u21BF","\\upharpoonleft",!0),w(C,Oe,U,"\u21C3","\\downharpoonleft",!0),w(C,Oe,U,"\u22B8","\\multimap",!0),w(C,Oe,U,"\u21AD","\\leftrightsquigarrow",!0),w(C,Oe,U,"\u21C9","\\rightrightarrows",!0),w(C,Oe,U,"\u21C4","\\rightleftarrows",!0),w(C,Oe,U,"\u21A0","\\twoheadrightarrow",!0),w(C,Oe,U,"\u21A3","\\rightarrowtail",!0),w(C,Oe,U,"\u21AC","\\looparrowright",!0),w(C,Oe,U,"\u21B7","\\curvearrowright",!0),w(C,Oe,U,"\u21BB","\\circlearrowright",!0),w(C,Oe,U,"\u21B1","\\Rsh",!0),w(C,Oe,U,"\u21CA","\\downdownarrows",!0),w(C,Oe,U,"\u21BE","\\upharpoonright",!0),w(C,Oe,U,"\u21C2","\\downharpoonright",!0),w(C,Oe,U,"\u21DD","\\rightsquigarrow",!0),w(C,Oe,U,"\u21DD","\\leadsto"),w(C,Oe,U,"\u21DB","\\Rrightarrow",!0),w(C,Oe,U,"\u21BE","\\restriction"),w(C,ie,Ee,"\u2018","`"),w(C,ie,Ee,"$","\\$"),w(lt,ie,Ee,"$","\\$"),w(lt,ie,Ee,"$","\\textdollar"),w(C,ie,Ee,"%","\\%"),w(lt,ie,Ee,"%","\\%"),w(C,ie,Ee,"_","\\_"),w(lt,ie,Ee,"_","\\_"),w(lt,ie,Ee,"_","\\textunderscore"),w(C,ie,Ee,"\u2220","\\angle",!0),w(C,ie,Ee,"\u221E","\\infty",!0),w(C,ie,Ee,"\u2032","\\prime"),w(C,ie,Ee,"\u25B3","\\triangle"),w(C,ie,Ee,"\u0393","\\Gamma",!0),w(C,ie,Ee,"\u0394","\\Delta",!0),w(C,ie,Ee,"\u0398","\\Theta",!0),w(C,ie,Ee,"\u039B","\\Lambda",!0),w(C,ie,Ee,"\u039E","\\Xi",!0),w(C,ie,Ee,"\u03A0","\\Pi",!0),w(C,ie,Ee,"\u03A3","\\Sigma",!0),w(C,ie,Ee,"\u03A5","\\Upsilon",!0),w(C,ie,Ee,"\u03A6","\\Phi",!0),w(C,ie,Ee,"\u03A8","\\Psi",!0),w(C,ie,Ee,"\u03A9","\\Omega",!0),w(C,ie,Ee,"A","\u0391"),w(C,ie,Ee,"B","\u0392"),w(C,ie,Ee,"E","\u0395"),w(C,ie,Ee,"Z","\u0396"),w(C,ie,Ee,"H","\u0397"),w(C,ie,Ee,"I","\u0399"),w(C,ie,Ee,"K","\u039A"),w(C,ie,Ee,"M","\u039C"),w(C,ie,Ee,"N","\u039D"),w(C,ie,Ee,"O","\u039F"),w(C,ie,Ee,"P","\u03A1"),w(C,ie,Ee,"T","\u03A4"),w(C,ie,Ee,"X","\u03A7"),w(C,ie,Ee,"\xAC","\\neg",!0),w(C,ie,Ee,"\xAC","\\lnot"),w(C,ie,Ee,"\u22A4","\\top"),w(C,ie,Ee,"\u22A5","\\bot"),w(C,ie,Ee,"\u2205","\\emptyset"),w(C,Oe,Ee,"\u2205","\\varnothing"),w(C,ie,ue,"\u03B1","\\alpha",!0),w(C,ie,ue,"\u03B2","\\beta",!0),w(C,ie,ue,"\u03B3","\\gamma",!0),w(C,ie,ue,"\u03B4","\\delta",!0),w(C,ie,ue,"\u03F5","\\epsilon",!0),w(C,ie,ue,"\u03B6","\\zeta",!0),w(C,ie,ue,"\u03B7","\\eta",!0),w(C,ie,ue,"\u03B8","\\theta",!0),w(C,ie,ue,"\u03B9","\\iota",!0),w(C,ie,ue,"\u03BA","\\kappa",!0),w(C,ie,ue,"\u03BB","\\lambda",!0),w(C,ie,ue,"\u03BC","\\mu",!0),w(C,ie,ue,"\u03BD","\\nu",!0),w(C,ie,ue,"\u03BE","\\xi",!0),w(C,ie,ue,"\u03BF","\\omicron",!0),w(C,ie,ue,"\u03C0","\\pi",!0),w(C,ie,ue,"\u03C1","\\rho",!0),w(C,ie,ue,"\u03C3","\\sigma",!0),w(C,ie,ue,"\u03C4","\\tau",!0),w(C,ie,ue,"\u03C5","\\upsilon",!0),w(C,ie,ue,"\u03D5","\\phi",!0),w(C,ie,ue,"\u03C7","\\chi",!0),w(C,ie,ue,"\u03C8","\\psi",!0),w(C,ie,ue,"\u03C9","\\omega",!0),w(C,ie,ue,"\u03B5","\\varepsilon",!0),w(C,ie,ue,"\u03D1","\\vartheta",!0),w(C,ie,ue,"\u03D6","\\varpi",!0),w(C,ie,ue,"\u03F1","\\varrho",!0),w(C,ie,ue,"\u03C2","\\varsigma",!0),w(C,ie,ue,"\u03C6","\\varphi",!0),w(C,ie,Fe,"\u2217","*"),w(C,ie,Fe,"+","+"),w(C,ie,Fe,"\u2212","-"),w(C,ie,Fe,"\u22C5","\\cdot",!0),w(C,ie,Fe,"\u2218","\\circ"),w(C,ie,Fe,"\xF7","\\div",!0),w(C,ie,Fe,"\xB1","\\pm",!0),w(C,ie,Fe,"\xD7","\\times",!0),w(C,ie,Fe,"\u2229","\\cap",!0),w(C,ie,Fe,"\u222A","\\cup",!0),w(C,ie,Fe,"\u2216","\\setminus"),w(C,ie,Fe,"\u2227","\\land"),w(C,ie,Fe,"\u2228","\\lor"),w(C,ie,Fe,"\u2227","\\wedge",!0),w(C,ie,Fe,"\u2228","\\vee",!0),w(C,ie,Ee,"\u221A","\\surd"),w(C,ie,we,"(","("),w(C,ie,we,"[","["),w(C,ie,we,"\u27E8","\\langle",!0),w(C,ie,we,"\u2223","\\lvert"),w(C,ie,we,"\u2225","\\lVert"),w(C,ie,We,")",")"),w(C,ie,We,"]","]"),w(C,ie,We,"?","?"),w(C,ie,We,"!","!"),w(C,ie,We,"\u27E9","\\rangle",!0),w(C,ie,We,"\u2223","\\rvert"),w(C,ie,We,"\u2225","\\rVert"),w(C,ie,U,"=","="),w(C,ie,U,"<","<"),w(C,ie,U,">",">"),w(C,ie,U,":",":"),w(C,ie,U,"\u2248","\\approx",!0),w(C,ie,U,"\u2245","\\cong",!0),w(C,ie,U,"\u2265","\\ge"),w(C,ie,U,"\u2265","\\geq",!0),w(C,ie,U,"\u2190","\\gets"),w(C,ie,U,">","\\gt"),w(C,ie,U,"\u2208","\\in",!0),w(C,ie,U,"\uE020","\\@not"),w(C,ie,U,"\u2282","\\subset",!0),w(C,ie,U,"\u2283","\\supset",!0),w(C,ie,U,"\u2286","\\subseteq",!0),w(C,ie,U,"\u2287","\\supseteq",!0),w(C,Oe,U,"\u2288","\\nsubseteq",!0),w(C,Oe,U,"\u2289","\\nsupseteq",!0),w(C,ie,U,"\u22A8","\\models"),w(C,ie,U,"\u2190","\\leftarrow",!0),w(C,ie,U,"\u2264","\\le"),w(C,ie,U,"\u2264","\\leq",!0),w(C,ie,U,"<","\\lt"),w(C,ie,U,"\u2192","\\rightarrow",!0),w(C,ie,U,"\u2192","\\to"),w(C,Oe,U,"\u2271","\\ngeq",!0),w(C,Oe,U,"\u2270","\\nleq",!0),w(C,ie,at,"\xA0","\\ "),w(C,ie,at,"\xA0","~"),w(C,ie,at,"\xA0","\\space"),w(C,ie,at,"\xA0","\\nobreakspace"),w(lt,ie,at,"\xA0","\\ "),w(lt,ie,at,"\xA0","~"),w(lt,ie,at,"\xA0","\\space"),w(lt,ie,at,"\xA0","\\nobreakspace"),w(C,ie,at,null,"\\nobreak"),w(C,ie,at,null,"\\allowbreak"),w(C,ie,Be,",",","),w(C,ie,Be,";",";"),w(C,Oe,Fe,"\u22BC","\\barwedge",!0),w(C,Oe,Fe,"\u22BB","\\veebar",!0),w(C,ie,Fe,"\u2299","\\odot",!0),w(C,ie,Fe,"\u2295","\\oplus",!0),w(C,ie,Fe,"\u2297","\\otimes",!0),w(C,ie,Ee,"\u2202","\\partial",!0),w(C,ie,Fe,"\u2298","\\oslash",!0),w(C,Oe,Fe,"\u229A","\\circledcirc",!0),w(C,Oe,Fe,"\u22A1","\\boxdot",!0),w(C,ie,Fe,"\u25B3","\\bigtriangleup"),w(C,ie,Fe,"\u25BD","\\bigtriangledown"),w(C,ie,Fe,"\u2020","\\dagger"),w(C,ie,Fe,"\u22C4","\\diamond"),w(C,ie,Fe,"\u22C6","\\star"),w(C,ie,Fe,"\u25C3","\\triangleleft"),w(C,ie,Fe,"\u25B9","\\triangleright"),w(C,ie,we,"{","\\{"),w(lt,ie,Ee,"{","\\{"),w(lt,ie,Ee,"{","\\textbraceleft"),w(C,ie,We,"}","\\}"),w(lt,ie,Ee,"}","\\}"),w(lt,ie,Ee,"}","\\textbraceright"),w(C,ie,we,"{","\\lbrace"),w(C,ie,We,"}","\\rbrace"),w(C,ie,we,"[","\\lbrack"),w(lt,ie,Ee,"[","\\lbrack"),w(C,ie,We,"]","\\rbrack"),w(lt,ie,Ee,"]","\\rbrack"),w(C,ie,we,"(","\\lparen"),w(C,ie,We,")","\\rparen"),w(lt,ie,Ee,"<","\\textless"),w(lt,ie,Ee,">","\\textgreater"),w(C,ie,we,"\u230A","\\lfloor",!0),w(C,ie,We,"\u230B","\\rfloor",!0),w(C,ie,we,"\u2308","\\lceil",!0),w(C,ie,We,"\u2309","\\rceil",!0),w(C,ie,Ee,"\\","\\backslash"),w(C,ie,Ee,"\u2223","|"),w(C,ie,Ee,"\u2223","\\vert"),w(lt,ie,Ee,"|","\\textbar"),w(C,ie,Ee,"\u2225","\\|"),w(C,ie,Ee,"\u2225","\\Vert"),w(lt,ie,Ee,"\u2225","\\textbardbl"),w(lt,ie,Ee,"~","\\textasciitilde"),w(lt,ie,Ee,"\\","\\textbackslash"),w(lt,ie,Ee,"^","\\textasciicircum"),w(C,ie,U,"\u2191","\\uparrow",!0),w(C,ie,U,"\u21D1","\\Uparrow",!0),w(C,ie,U,"\u2193","\\downarrow",!0),w(C,ie,U,"\u21D3","\\Downarrow",!0),w(C,ie,U,"\u2195","\\updownarrow",!0),w(C,ie,U,"\u21D5","\\Updownarrow",!0),w(C,ie,W,"\u2210","\\coprod"),w(C,ie,W,"\u22C1","\\bigvee"),w(C,ie,W,"\u22C0","\\bigwedge"),w(C,ie,W,"\u2A04","\\biguplus"),w(C,ie,W,"\u22C2","\\bigcap"),w(C,ie,W,"\u22C3","\\bigcup"),w(C,ie,W,"\u222B","\\int"),w(C,ie,W,"\u222B","\\intop"),w(C,ie,W,"\u222C","\\iint"),w(C,ie,W,"\u222D","\\iiint"),w(C,ie,W,"\u220F","\\prod"),w(C,ie,W,"\u2211","\\sum"),w(C,ie,W,"\u2A02","\\bigotimes"),w(C,ie,W,"\u2A01","\\bigoplus"),w(C,ie,W,"\u2A00","\\bigodot"),w(C,ie,W,"\u222E","\\oint"),w(C,ie,W,"\u222F","\\oiint"),w(C,ie,W,"\u2230","\\oiiint"),w(C,ie,W,"\u2A06","\\bigsqcup"),w(C,ie,W,"\u222B","\\smallint"),w(lt,ie,Je,"\u2026","\\textellipsis"),w(C,ie,Je,"\u2026","\\mathellipsis"),w(lt,ie,Je,"\u2026","\\ldots",!0),w(C,ie,Je,"\u2026","\\ldots",!0),w(C,ie,Je,"\u22EF","\\@cdots",!0),w(C,ie,Je,"\u22F1","\\ddots",!0),w(C,ie,Ee,"\u22EE","\\varvdots"),w(C,ie,mn,"\u02CA","\\acute"),w(C,ie,mn,"\u02CB","\\grave"),w(C,ie,mn,"\xA8","\\ddot"),w(C,ie,mn,"~","\\tilde"),w(C,ie,mn,"\u02C9","\\bar"),w(C,ie,mn,"\u02D8","\\breve"),w(C,ie,mn,"\u02C7","\\check"),w(C,ie,mn,"^","\\hat"),w(C,ie,mn,"\u20D7","\\vec"),w(C,ie,mn,"\u02D9","\\dot"),w(C,ie,mn,"\u02DA","\\mathring"),w(C,ie,ue,"\u0131","\\imath",!0),w(C,ie,ue,"\u0237","\\jmath",!0),w(lt,ie,Ee,"\u0131","\\i",!0),w(lt,ie,Ee,"\u0237","\\j",!0),w(lt,ie,Ee,"\xDF","\\ss",!0),w(lt,ie,Ee,"\xE6","\\ae",!0),w(lt,ie,Ee,"\xE6","\\ae",!0),w(lt,ie,Ee,"\u0153","\\oe",!0),w(lt,ie,Ee,"\xF8","\\o",!0),w(lt,ie,Ee,"\xC6","\\AE",!0),w(lt,ie,Ee,"\u0152","\\OE",!0),w(lt,ie,Ee,"\xD8","\\O",!0),w(lt,ie,mn,"\u02CA","\\'"),w(lt,ie,mn,"\u02CB","\\`"),w(lt,ie,mn,"\u02C6","\\^"),w(lt,ie,mn,"\u02DC","\\~"),w(lt,ie,mn,"\u02C9","\\="),w(lt,ie,mn,"\u02D8","\\u"),w(lt,ie,mn,"\u02D9","\\."),w(lt,ie,mn,"\u02DA","\\r"),w(lt,ie,mn,"\u02C7","\\v"),w(lt,ie,mn,"\xA8",'\\"'),w(lt,ie,mn,"\u02DD","\\H"),w(lt,ie,mn,"\u25EF","\\textcircled");var St={"--":!0,"---":!0,"``":!0,"''":!0};w(lt,ie,Ee,"\u2013","--"),w(lt,ie,Ee,"\u2013","\\textendash"),w(lt,ie,Ee,"\u2014","---"),w(lt,ie,Ee,"\u2014","\\textemdash"),w(lt,ie,Ee,"\u2018","`"),w(lt,ie,Ee,"\u2018","\\textquoteleft"),w(lt,ie,Ee,"\u2019","'"),w(lt,ie,Ee,"\u2019","\\textquoteright"),w(lt,ie,Ee,"\u201C","``"),w(lt,ie,Ee,"\u201C","\\textquotedblleft"),w(lt,ie,Ee,"\u201D","''"),w(lt,ie,Ee,"\u201D","\\textquotedblright"),w(C,ie,Ee,"\xB0","\\degree",!0),w(lt,ie,Ee,"\xB0","\\degree"),w(lt,ie,Ee,"\xB0","\\textdegree",!0),w(C,ie,ue,"\xA3","\\pounds"),w(C,ie,ue,"\xA3","\\mathsterling",!0),w(lt,ie,ue,"\xA3","\\pounds"),w(lt,ie,ue,"\xA3","\\textsterling",!0),w(C,Oe,Ee,"\u2720","\\maltese"),w(lt,Oe,Ee,"\u2720","\\maltese"),w(lt,ie,at,"\xA0","\\ "),w(lt,ie,at,"\xA0"," "),w(lt,ie,at,"\xA0","~");for(var Pt='0123456789/@."',zt=0;zt<Pt.length;zt++){var on=Pt.charAt(zt);w(C,ie,Ee,on,on)}for(var It='0123456789!@*()-=+[]<>|";:?/.,',Vt=0;Vt<It.length;Vt++){var Ue=It.charAt(Vt);w(lt,ie,Ee,Ue,Ue)}for(var ft="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Ct=0;Ct<ft.length;Ct++){var Ne=ft.charAt(Ct);w(C,ie,ue,Ne,Ne),w(lt,ie,Ee,Ne,Ne)}w(C,Oe,Ee,"C","\u2102"),w(lt,Oe,Ee,"C","\u2102"),w(C,Oe,Ee,"H","\u210D"),w(lt,Oe,Ee,"H","\u210D"),w(C,Oe,Ee,"N","\u2115"),w(lt,Oe,Ee,"N","\u2115"),w(C,Oe,Ee,"P","\u2119"),w(lt,Oe,Ee,"P","\u2119"),w(C,Oe,Ee,"Q","\u211A"),w(lt,Oe,Ee,"Q","\u211A"),w(C,Oe,Ee,"R","\u211D"),w(lt,Oe,Ee,"R","\u211D"),w(C,Oe,Ee,"Z","\u2124"),w(lt,Oe,Ee,"Z","\u2124"),w(C,ie,ue,"h","\u210E"),w(lt,ie,ue,"h","\u210E");for(var Ae="",st=0;st<ft.length;st++){var dt=ft.charAt(st);Ae=String.fromCharCode(55349,56320+st),w(C,ie,ue,dt,Ae),w(lt,ie,Ee,dt,Ae),Ae=String.fromCharCode(55349,56372+st),w(C,ie,ue,dt,Ae),w(lt,ie,Ee,dt,Ae),Ae=String.fromCharCode(55349,56424+st),w(C,ie,ue,dt,Ae),w(lt,ie,Ee,dt,Ae),Ae=String.fromCharCode(55349,56580+st),w(C,ie,ue,dt,Ae),w(lt,ie,Ee,dt,Ae),Ae=String.fromCharCode(55349,56736+st),w(C,ie,ue,dt,Ae),w(lt,ie,Ee,dt,Ae),Ae=String.fromCharCode(55349,56788+st),w(C,ie,ue,dt,Ae),w(lt,ie,Ee,dt,Ae),Ae=String.fromCharCode(55349,56840+st),w(C,ie,ue,dt,Ae),w(lt,ie,Ee,dt,Ae),Ae=String.fromCharCode(55349,56944+st),w(C,ie,ue,dt,Ae),w(lt,ie,Ee,dt,Ae),st<26&&(Ae=String.fromCharCode(55349,56632+st),w(C,ie,ue,dt,Ae),w(lt,ie,Ee,dt,Ae),Ae=String.fromCharCode(55349,56476+st),w(C,ie,ue,dt,Ae),w(lt,ie,Ee,dt,Ae))}Ae="\u{1D55C}",w(C,ie,ue,"k",Ae),w(lt,ie,Ee,"k",Ae);for(var kt=0;kt<10;kt++){var Lt=kt.toString();Ae=String.fromCharCode(55349,57294+kt),w(C,ie,ue,Lt,Ae),w(lt,ie,Ee,Lt,Ae),Ae=String.fromCharCode(55349,57314+kt),w(C,ie,ue,Lt,Ae),w(lt,ie,Ee,Lt,Ae),Ae=String.fromCharCode(55349,57324+kt),w(C,ie,ue,Lt,Ae),w(lt,ie,Ee,Lt,Ae),Ae=String.fromCharCode(55349,57334+kt),w(C,ie,ue,Lt,Ae),w(lt,ie,Ee,Lt,Ae)}for(var Bt="\xC7\xD0\xDE\xE7\xFE",Nt=0;Nt<Bt.length;Nt++){var en=Bt.charAt(Nt);w(C,ie,ue,en,en),w(lt,ie,Ee,en,en)}w(lt,ie,Ee,"\xF0","\xF0"),w(lt,ie,Ee,"\u2013","\u2013"),w(lt,ie,Ee,"\u2014","\u2014"),w(lt,ie,Ee,"\u2018","\u2018"),w(lt,ie,Ee,"\u2019","\u2019"),w(lt,ie,Ee,"\u201C","\u201C"),w(lt,ie,Ee,"\u201D","\u201D");var pn=[["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"]],Tt=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],yt=function(l,d){var f=l.charCodeAt(0),m=l.charCodeAt(1),I=(f-55296)*1024+(m-56320)+65536,ee=d==="math"?0:1;if(119808<=I&&I<120484){var Le=Math.floor((I-119808)/26);return[pn[Le][2],pn[Le][ee]]}else if(120782<=I&&I<=120831){var $e=Math.floor((I-120782)/10);return[Tt[$e][2],Tt[$e][ee]]}else{if(I===120485||I===120486)return[pn[0][2],pn[0][ee]];if(120486<I&&I<120782)return["",""];throw new X("Unsupported character: "+l)}},Kt=[[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]],$t=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Zt=function(l,d){return d.size<2?l:Kt[l-1][d.size-1]},ln=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=$t[this.size-1],this.maxSize=d.maxSize,this.minRuleThickness=d.minRuleThickness,this._fontMetrics=void 0}var l=ne.prototype;return l.extend=function(f){var m={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 I in f)f.hasOwnProperty(I)&&(m[I]=f[I]);return new ne(m)},l.havingStyle=function(f){return this.style===f?this:this.extend({style:f,size:Zt(this.textSize,f)})},l.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},l.havingSize=function(f){return this.size===f&&this.textSize===f?this:this.extend({style:this.style.text(),size:f,textSize:f,sizeMultiplier:$t[f-1]})},l.havingBaseStyle=function(f){f=f||this.style.text();var m=Zt(ne.BASESIZE,f);return this.size===m&&this.textSize===ne.BASESIZE&&this.style===f?this:this.extend({style:f,size:m})},l.havingBaseSizing=function(){var f;switch(this.style.id){case 4:case 5:f=3;break;case 6:case 7:f=1;break;default:f=6}return this.extend({style:this.style.text(),size:f})},l.withColor=function(f){return this.extend({color:f})},l.withPhantom=function(){return this.extend({phantom:!0})},l.withFont=function(f){return this.extend({font:f})},l.withTextFontFamily=function(f){return this.extend({fontFamily:f,font:""})},l.withTextFontWeight=function(f){return this.extend({fontWeight:f,font:""})},l.withTextFontShape=function(f){return this.extend({fontShape:f,font:""})},l.sizingClasses=function(f){return f.size!==this.size?["sizing","reset-size"+f.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=ct(this.size)),this._fontMetrics},l.getColor=function(){return this.phantom?"transparent":this.color},ne}();ln.BASESIZE=6;var Ln=ln,yn={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},Ft={ex:!0,em:!0,mu:!0},Qe=function(l){return typeof l!="string"&&(l=l.unit),l in yn||l in Ft||l==="ex"},tt=function(l,d){var f;if(l.unit in yn)f=yn[l.unit]/d.fontMetrics().ptPerEm/d.sizeMultiplier;else if(l.unit==="mu")f=d.fontMetrics().cssEmPerMu;else{var m;if(d.style.isTight()?m=d.havingStyle(d.style.text()):m=d,l.unit==="ex")f=m.fontMetrics().xHeight;else if(l.unit==="em")f=m.fontMetrics().quad;else throw new X("Invalid unit: '"+l.unit+"'");m!==d&&(f*=m.sizeMultiplier/d.sizeMultiplier)}return Math.min(l.number*f,d.maxSize)},vt=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],bt=function(l,d,f){return _t[f][l]&&_t[f][l].replace&&(l=_t[f][l].replace),{value:l,metrics:rt(l,d,f)}},ht=function(l,d,f,m,I){var ee=bt(l,d,f),Le=ee.metrics;l=ee.value;var $e;if(Le){var Ye=Le.italic;(f==="text"||m&&m.font==="mathit")&&(Ye=0),$e=new ae(l,Le.height,Le.depth,Ye,Le.skew,Le.width,I)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+l+"' in style '"+d+"' and mode '"+f+"'")),$e=new ae(l,0,0,0,0,0,I);if(m){$e.maxFontSize=m.sizeMultiplier,m.style.isTight()&&$e.classes.push("mtight");var gt=m.getColor();gt&&($e.style.color=gt)}return $e},Dt=function(l,d,f,m){return m===void 0&&(m=[]),f.font==="boldsymbol"&&bt(l,"Main-Bold",d).metrics?ht(l,"Main-Bold",d,f,m.concat(["mathbf"])):l==="\\"||_t[d][l].font==="main"?ht(l,"Main-Regular",d,f,m):ht(l,"AMS-Regular",d,f,m.concat(["amsrm"]))},xt=function(l,d,f,m){return/[0-9]/.test(l.charAt(0))||P.contains(vt,l)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},jt=function(l,d,f,m){return P.contains(vt,l)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(l.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},tn=function(l,d,f,m){return bt(l,"Math-BoldItalic",d).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},nn=function(l,d,f){var m=l.mode,I=l.text,ee=["mord"],Le=m==="math"||m==="text"&&d.font,$e=Le?d.font:d.fontFamily;if(I.charCodeAt(0)===55349){var Ye=yt(I,m),gt=Ye[0],At=Ye[1];return ht(I,gt,m,d,ee.concat(At))}else if($e){var Ht,gn;if($e==="boldsymbol"||$e==="mathnormal"){var wn=$e==="boldsymbol"?tn(I,m,d,ee):jt(I,m,d,ee);Ht=wn.fontName,gn=[wn.fontClass]}else P.contains(vt,I)?(Ht="Main-Italic",gn=["mathit"]):Le?(Ht=or[$e].fontName,gn=[$e]):(Ht=Qn($e,d.fontWeight,d.fontShape),gn=[$e,d.fontWeight,d.fontShape]);if(bt(I,Ht,m).metrics)return ht(I,Ht,m,d,ee.concat(gn));if(St.hasOwnProperty(I)&&Ht.substr(0,10)==="Typewriter"){for(var Un=[],er=0;er<I.length;er++)Un.push(ht(I[er],Ht,m,d,ee.concat(gn)));return Wn(Un)}}if(f==="mathord"){var dr=xt(I,m,d,ee);return ht(I,dr.fontName,m,d,ee.concat([dr.fontClass]))}else if(f==="textord"){var _r=_t[m][I]&&_t[m][I].font;if(_r==="ams"){var Sr=Qn("amsrm",d.fontWeight,d.fontShape);return ht(I,Sr,m,d,ee.concat("amsrm",d.fontWeight,d.fontShape))}else if(_r==="main"||!_r){var ti=Qn("textrm",d.fontWeight,d.fontShape);return ht(I,ti,m,d,ee.concat(d.fontWeight,d.fontShape))}else{var Xr=Qn(_r,d.fontWeight,d.fontShape);return ht(I,Xr,m,d,ee.concat(Xr,d.fontWeight,d.fontShape))}}else throw new Error("unexpected type: "+f+" in makeOrd")},In=function(l,d){if(Xt(l.classes)!==Xt(d.classes)||l.skew!==d.skew||l.maxFontSize!==d.maxFontSize)return!1;for(var f in l.style)if(l.style.hasOwnProperty(f)&&l.style[f]!==d.style[f])return!1;for(var m in d.style)if(d.style.hasOwnProperty(m)&&l.style[m]!==d.style[m])return!1;return!0},Dn=function(l){for(var d=0;d<l.length-1;d++){var f=l[d],m=l[d+1];f instanceof ae&&m instanceof ae&&In(f,m)&&(f.text+=m.text,f.height=Math.max(f.height,m.height),f.depth=Math.max(f.depth,m.depth),f.italic=m.italic,l.splice(d+1,1),d--)}return l},Fn=function(l){for(var d=0,f=0,m=0,I=0;I<l.children.length;I++){var ee=l.children[I];ee.height>d&&(d=ee.height),ee.depth>f&&(f=ee.depth),ee.maxFontSize>m&&(m=ee.maxFontSize)}l.height=d,l.depth=f,l.maxFontSize=m},cn=function(l,d,f,m){var I=new q(l,d,f,m);return Fn(I),I},rn=function(l,d,f,m){return new q(l,d,f,m)},$n=function(l,d,f){var m=cn([l],[],d);return m.height=Math.max(f||d.fontMetrics().defaultRuleThickness,d.minRuleThickness),m.style.borderBottomWidth=m.height+"em",m.maxFontSize=1,m},Sn=function(l,d,f,m){var I=new z(l,d,f,m);return Fn(I),I},Wn=function(l){var d=new Ut(l);return Fn(d),d},Cn=function(l,d){return l instanceof Ut?cn([],[l],d):l},Bn=function(l){if(l.positionType==="individualShift"){for(var d=l.children,f=[d[0]],m=-d[0].shift-d[0].elem.depth,I=m,ee=1;ee<d.length;ee++){var Le=-d[ee].shift-I-d[ee].elem.depth,$e=Le-(d[ee-1].elem.height+d[ee-1].elem.depth);I=I+Le,f.push({type:"kern",size:$e}),f.push(d[ee])}return{children:f,depth:m}}var Ye;if(l.positionType==="top"){for(var gt=l.positionData,At=0;At<l.children.length;At++){var Ht=l.children[At];gt-=Ht.type==="kern"?Ht.size:Ht.elem.height+Ht.elem.depth}Ye=gt}else if(l.positionType==="bottom")Ye=-l.positionData;else{var gn=l.children[0];if(gn.type!=="elem")throw new Error('First child must have type "elem".');if(l.positionType==="shift")Ye=-gn.elem.depth-l.positionData;else if(l.positionType==="firstBaseline")Ye=-gn.elem.depth;else throw new Error("Invalid positionType "+l.positionType+".")}return{children:l.children,depth:Ye}},zn=function(l,d){for(var f=Bn(l),m=f.children,I=f.depth,ee=0,Le=0;Le<m.length;Le++){var $e=m[Le];if($e.type==="elem"){var Ye=$e.elem;ee=Math.max(ee,Ye.maxFontSize,Ye.height)}}ee+=2;var gt=cn(["pstrut"],[]);gt.style.height=ee+"em";for(var At=[],Ht=I,gn=I,wn=I,Un=0;Un<m.length;Un++){var er=m[Un];if(er.type==="kern")wn+=er.size;else{var dr=er.elem,_r=er.wrapperClasses||[],Sr=er.wrapperStyle||{},ti=cn(_r,[gt,dr],void 0,Sr);ti.style.top=-ee-wn-dr.depth+"em",er.marginLeft&&(ti.style.marginLeft=er.marginLeft),er.marginRight&&(ti.style.marginRight=er.marginRight),At.push(ti),wn+=dr.height+dr.depth}Ht=Math.min(Ht,wn),gn=Math.max(gn,wn)}var Xr=cn(["vlist"],At);Xr.style.height=gn+"em";var ri;if(Ht<0){var ai=cn([],[]),di=cn(["vlist"],[ai]);di.style.height=-Ht+"em";var Ri=cn(["vlist-s"],[new ae("\u200B")]);ri=[cn(["vlist-r"],[Xr,Ri]),cn(["vlist-r"],[di])]}else ri=[cn(["vlist-r"],[Xr])];var Ti=cn(["vlist-t"],ri);return ri.length===2&&Ti.classes.push("vlist-t2"),Ti.height=gn,Ti.depth=-Ht,Ti},On=function(l,d){var f=cn(["mspace"],[],d),m=tt(l,d);return f.style.marginRight=m+"em",f},Qn=function(l,d,f){var m="";switch(l){case"amsrm":m="AMS";break;case"textrm":m="Main";break;case"textsf":m="SansSerif";break;case"texttt":m="Typewriter";break;default:m=l}var I;return d==="textbf"&&f==="textit"?I="BoldItalic":d==="textbf"?I="Bold":d==="textit"?I="Italic":I="Regular",m+"-"+I},or={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"}},Tn={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},qt=function(l,d){var f=Tn[l],m=f[0],I=f[1],ee=f[2],Le=new oe(m),$e=new J([Le],{width:I+"em",height:ee+"em",style:"width:"+I+"em",viewBox:"0 0 "+1e3*I+" "+1e3*ee,preserveAspectRatio:"xMinYMin"}),Ye=rn(["overlay"],[$e],d);return Ye.height=ee,Ye.style.height=ee+"em",Ye.style.width=I+"em",Ye},Ke={fontMap:or,makeSymbol:ht,mathsym:Dt,makeSpan:cn,makeSvgSpan:rn,makeLineSpan:$n,makeAnchor:Sn,makeFragment:Wn,wrapFragment:Cn,makeVList:zn,makeOrd:nn,makeGlue:On,staticSvg:qt,svgData:Tn,tryCombineChars:Dn};function un(ne,l){var d=Pn(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 Pn(ne,l){return ne&&ne.type===l?ne:null}function Kn(ne,l){var d=Gn(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 Gn(ne,l){return ne&&ne.type==="atom"&&ne.family===l?ne:null}function nr(ne){var l=tr(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 tr(ne){return ne&&(ne.type==="atom"||ot.hasOwnProperty(ne.type))?ne:null}var Hn={number:3,unit:"mu"},fn={number:4,unit:"mu"},dn={number:5,unit:"mu"},En={mord:{mop:Hn,mbin:fn,mrel:dn,minner:Hn},mop:{mord:Hn,mop:Hn,mrel:dn,minner:Hn},mbin:{mord:fn,mop:fn,mopen:fn,minner:fn},mrel:{mord:dn,mop:dn,mopen:dn,minner:dn},mopen:{},mclose:{mop:Hn,mbin:fn,mrel:dn,minner:Hn},mpunct:{mord:Hn,mop:Hn,mrel:dn,mopen:Hn,mclose:Hn,mpunct:Hn,minner:Hn},minner:{mord:Hn,mop:Hn,mbin:fn,mrel:dn,mopen:Hn,mpunct:Hn,minner:Hn}},Vn={mord:{mop:Hn},mop:{mord:Hn,mop:Hn},mbin:{},mrel:{},mopen:{},mclose:{mop:Hn},mpunct:{},minner:{mop:Hn}},ir={},wr={},Lr={};function An(ne){for(var l=ne.type,d=ne.names,f=ne.props,m=ne.handler,I=ne.htmlBuilder,ee=ne.mathmlBuilder,Le={type:l,numArgs:f.numArgs,argTypes:f.argTypes,greediness:f.greediness===void 0?1:f.greediness,allowedInText:!!f.allowedInText,allowedInMath:f.allowedInMath===void 0?!0:f.allowedInMath,numOptionalArgs:f.numOptionalArgs||0,infix:!!f.infix,handler:m},$e=0;$e<d.length;++$e)ir[d[$e]]=Le;l&&(I&&(wr[l]=I),ee&&(Lr[l]=ee))}function hr(ne){var l=ne.type,d=ne.htmlBuilder,f=ne.mathmlBuilder;An({type:l,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:d,mathmlBuilder:f})}var ur=function(l){var d=Pn(l,"ordgroup");return d?d.body:[l]},pr=Ke.makeSpan,Zr=["leftmost","mbin","mopen","mrel","mop","mpunct"],zr=["rightmost","mrel","mclose","mpunct"],br={display:g.DISPLAY,text:g.TEXT,script:g.SCRIPT,scriptscript:g.SCRIPTSCRIPT},Dr={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},gr=function(l,d,f,m){m===void 0&&(m=[null,null]);for(var I=[],ee=0;ee<l.length;ee++){var Le=ar(l[ee],d);if(Le instanceof Ut){var $e=Le.children;I.push.apply(I,$e)}else I.push(Le)}if(!f)return I;var Ye=d;if(l.length===1){var gt=Pn(l[0],"sizing")||Pn(l[0],"styling");gt&&(gt.type==="sizing"?Ye=d.havingSize(gt.size):gt.type==="styling"&&(Ye=d.havingStyle(br[gt.style])))}var At=pr([m[0]||"leftmost"],[],d),Ht=pr([m[1]||"rightmost"],[],d);return jr(I,function(gn,wn){var Un=wn.classes[0],er=gn.classes[0];Un==="mbin"&&P.contains(zr,er)?wn.classes[0]="mord":er==="mbin"&&P.contains(Zr,Un)&&(gn.classes[0]="mord")},{node:At},Ht),jr(I,function(gn,wn){var Un=Fr(wn),er=Fr(gn),dr=Un&&er?gn.hasClass("mtight")?Vn[Un][er]:En[Un][er]:null;if(dr)return Ke.makeGlue(dr,Ye)},{node:At},Ht),I},jr=function ne(l,d,f,m){m&&l.push(m);for(var I=0;I<l.length;I++){var ee=l[I],Le=Vr(ee);if(Le){ne(Le.children,d,f);continue}if(ee.classes[0]!=="mspace"){var $e=d(ee,f.node);$e&&(f.insertAfter?f.insertAfter($e):(l.unshift($e),I++)),f.node=ee,f.insertAfter=function(Ye){return function(gt){l.splice(Ye+1,0,gt),I++}}(I)}}m&&l.pop()},Vr=function(l){return l instanceof Ut||l instanceof z?l:null},ii=function ne(l,d){var f=Vr(l);if(f){var m=f.children;if(m.length){if(d==="right")return ne(m[m.length-1],"right");if(d==="left")return ne(m[0],"left")}}return l},Fr=function(l,d){return l?(d&&(l=ii(l,d)),Dr[l.classes[0]]||null):null},ei=function(l,d){var f=["nulldelimiter"].concat(l.baseSizingClasses());return pr(d.concat(f))},ar=function(l,d,f){if(!l)return pr();if(wr[l.type]){var m=wr[l.type](l,d);if(f&&d.size!==f.size){m=pr(d.sizingClasses(f),[m],d);var I=d.sizeMultiplier/f.sizeMultiplier;m.height*=I,m.depth*=I}return m}else throw new X("Got group of unknown type: '"+l.type+"'")};function si(ne,l){var d=pr(["base"],ne,l),f=pr(["strut"]);return f.style.height=d.height+d.depth+"em",f.style.verticalAlign=-d.depth+"em",d.children.unshift(f),d}function vi(ne,l){var d=null;ne.length===1&&ne[0].type==="tag"&&(d=ne[0].tag,ne=ne[0].body);for(var f=gr(ne,l,!0),m=[],I=[],ee=0;ee<f.length;ee++)if(I.push(f[ee]),f[ee].hasClass("mbin")||f[ee].hasClass("mrel")||f[ee].hasClass("allowbreak")){for(var Le=!1;ee<f.length-1&&f[ee+1].hasClass("mspace")&&!f[ee+1].hasClass("newline");)ee++,I.push(f[ee]),f[ee].hasClass("nobreak")&&(Le=!0);Le||(m.push(si(I,l)),I=[])}else f[ee].hasClass("newline")&&(I.pop(),I.length>0&&(m.push(si(I,l)),I=[]),m.push(f[ee]));I.length>0&&m.push(si(I,l));var $e;d&&($e=si(gr(d,l,!0)),$e.classes=["tag"],m.push($e));var Ye=pr(["katex-html"],m);if(Ye.setAttribute("aria-hidden","true"),$e){var gt=$e.children[0];gt.style.height=Ye.height+Ye.depth+"em",gt.style.verticalAlign=-Ye.depth+"em"}return Ye}function fi(ne){return new Ut(ne)}var Or=function(){function ne(d,f){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=d,this.attributes={},this.children=f||[]}var l=ne.prototype;return l.setAttribute=function(f,m){this.attributes[f]=m},l.getAttribute=function(f){return this.attributes[f]},l.toNode=function(){var f=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var m in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,m)&&f.setAttribute(m,this.attributes[m]);for(var I=0;I<this.children.length;I++)f.appendChild(this.children[I].toNode());return f},l.toMarkup=function(){var f="<"+this.type;for(var m in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,m)&&(f+=" "+m+'="',f+=P.escape(this.attributes[m]),f+='"');f+=">";for(var I=0;I<this.children.length;I++)f+=this.children[I].toMarkup();return f+="</"+this.type+">",f},l.toText=function(){return this.children.map(function(f){return f.toText()}).join("")},ne}(),hi=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 P.escape(this.toText())},l.toText=function(){return this.text},ne}(),mr=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 f=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return f.setAttribute("width",this.width+"em"),f},l.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},l.toText=function(){return this.character?this.character:" "},ne}(),Wt={MathNode:Or,TextNode:hi,SpaceNode:mr,newDocumentFragment:fi},sr=function(l,d,f){return _t[d][l]&&_t[d][l].replace&&l.charCodeAt(0)!==55349&&!(St.hasOwnProperty(l)&&f&&(f.fontFamily&&f.fontFamily.substr(4,2)==="tt"||f.font&&f.font.substr(4,2)==="tt"))&&(l=_t[d][l].replace),new Wt.TextNode(l)},vr=function(l){return l.length===1?l[0]:new Wt.MathNode("mrow",l)},Rn=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 f=d.font;if(!f||f==="mathnormal")return null;var m=l.mode;if(f==="mathit")return"italic";if(f==="boldsymbol")return"bold-italic";if(f==="mathbf")return"bold";if(f==="mathbb")return"double-struck";if(f==="mathfrak")return"fraktur";if(f==="mathscr"||f==="mathcal")return"script";if(f==="mathsf")return"sans-serif";if(f==="mathtt")return"monospace";var I=l.text;if(P.contains(["\\imath","\\jmath"],I))return null;_t[m][I]&&_t[m][I].replace&&(I=_t[m][I].replace);var ee=Ke.fontMap[f].fontName;return rt(I,ee,m)?Ke.fontMap[f].variant:null},Nn=function(l,d,f){if(l.length===1){var m=bn(l[0],d);return f&&m instanceof Or&&m.type==="mo"&&(m.setAttribute("lspace","0em"),m.setAttribute("rspace","0em")),[m]}for(var I=[],ee,Le=0;Le<l.length;Le++){var $e=bn(l[Le],d);if($e instanceof Or&&ee instanceof Or){if($e.type==="mtext"&&ee.type==="mtext"&&$e.getAttribute("mathvariant")===ee.getAttribute("mathvariant")){var Ye;(Ye=ee.children).push.apply(Ye,$e.children);continue}else if($e.type==="mn"&&ee.type==="mn"){var gt;(gt=ee.children).push.apply(gt,$e.children);continue}else if($e.type==="mi"&&$e.children.length===1&&ee.type==="mn"){var At=$e.children[0];if(At instanceof hi&&At.text==="."){var Ht;(Ht=ee.children).push.apply(Ht,$e.children);continue}}else if(ee.type==="mi"&&ee.children.length===1){var gn=ee.children[0];if(gn instanceof hi&&gn.text==="\u0338"&&($e.type==="mo"||$e.type==="mi"||$e.type==="mn")){var wn=$e.children[0];wn instanceof hi&&wn.text.length>0&&(wn.text=wn.text.slice(0,1)+"\u0338"+wn.text.slice(1),I.pop())}}}I.push($e),ee=$e}return I},xn=function(l,d,f){return vr(Nn(l,d,f))},bn=function(l,d){if(!l)return new Wt.MathNode("mrow");if(Lr[l.type]){var f=Lr[l.type](l,d);return f}else throw new X("Got group of unknown type: '"+l.type+"'")};function Xn(ne,l,d,f){var m=Nn(ne,d),I;m.length===1&&m[0]instanceof Or&&P.contains(["mrow","mtable"],m[0].type)?I=m[0]:I=new Wt.MathNode("mrow",m);var ee=new Wt.MathNode("annotation",[new Wt.TextNode(l)]);ee.setAttribute("encoding","application/x-tex");var Le=new Wt.MathNode("semantics",[I,ee]),$e=new Wt.MathNode("math",[Le]);$e.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var Ye=f?"katex":"katex-mathml";return Ke.makeSpan([Ye],[$e])}var lr=function(l){return new Ln({style:l.displayMode?g.DISPLAY:g.TEXT,maxSize:l.maxSize,minRuleThickness:l.minRuleThickness})},Pr=function(l,d){if(d.displayMode){var f=["katex-display"];d.leqno&&f.push("leqno"),d.fleqn&&f.push("fleqn"),l=Ke.makeSpan(f,[l])}return l},Tr=function(l,d,f){var m=lr(f),I;if(f.output==="mathml")return Xn(l,d,m,!0);if(f.output==="html"){var ee=vi(l,m);I=Ke.makeSpan(["katex"],[ee])}else{var Le=Xn(l,d,m,!1),$e=vi(l,m);I=Ke.makeSpan(["katex"],[Le,$e])}return Pr(I,f)},Rr=function(l,d,f){var m=lr(f),I=vi(l,m),ee=Ke.makeSpan(["katex"],[I]);return Pr(ee,f)},Mr=Tr,ui={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"},Yr=function(l){var d=new Wt.MathNode("mo",[new Wt.TextNode(ui[l.substr(1)])]);return d.setAttribute("stretchy","true"),d},pi={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]},Bi=function(l){return l.type==="ordgroup"?l.body.length:1},bi=function(l,d){function f(){var $e=4e5,Ye=l.label.substr(1);if(P.contains(["widehat","widecheck","widetilde","utilde"],Ye)){var gt=l,At=Bi(gt.base),Ht,gn,wn;if(At>5)Ye==="widehat"||Ye==="widecheck"?(Ht=420,$e=2364,wn=.42,gn=Ye+"4"):(Ht=312,$e=2340,wn=.34,gn="tilde4");else{var Un=[1,1,2,2,3,3][At];Ye==="widehat"||Ye==="widecheck"?($e=[0,1062,2364,2364,2364][Un],Ht=[0,239,300,360,420][Un],wn=[0,.24,.3,.3,.36,.42][Un],gn=Ye+Un):($e=[0,600,1033,2339,2340][Un],Ht=[0,260,286,306,312][Un],wn=[0,.26,.286,.3,.306,.34][Un],gn="tilde"+Un)}var er=new oe(gn),dr=new J([er],{width:"100%",height:wn+"em",viewBox:"0 0 "+$e+" "+Ht,preserveAspectRatio:"none"});return{span:Ke.makeSvgSpan([],[dr],d),minWidth:0,height:wn}}else{var _r=[],Sr=pi[Ye],ti=Sr[0],Xr=Sr[1],ri=Sr[2],ai=ri/1e3,di=ti.length,Ri,Ti;if(di===1){var Wr=Sr[3];Ri=["hide-tail"],Ti=[Wr]}else if(di===2)Ri=["halfarrow-left","halfarrow-right"],Ti=["xMinYMin","xMaxYMin"];else if(di===3)Ri=["brace-left","brace-center","brace-right"],Ti=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
`+di+" children.");for(var Ki=0;Ki<di;Ki++){var Ji=new oe(ti[Ki]),ji=new J([Ji],{width:"400em",height:ai+"em",viewBox:"0 0 "+$e+" "+ri,preserveAspectRatio:Ti[Ki]+" slice"}),Ii=Ke.makeSvgSpan([Ri[Ki]],[ji],d);if(di===1)return{span:Ii,minWidth:Xr,height:ai};Ii.style.height=ai+"em",_r.push(Ii)}return{span:Ke.makeSpan(["stretchy"],_r,d),minWidth:Xr,height:ai}}}var m=f(),I=m.span,ee=m.minWidth,Le=m.height;return I.height=Le,I.style.height=Le+"em",ee>0&&(I.style.minWidth=ee+"em"),I},jn=function(l,d,f,m){var I,ee=l.height+l.depth+2*f;if(/fbox|color/.test(d)){if(I=Ke.makeSpan(["stretchy",d],[],m),d==="fbox"){var Le=m.color&&m.getColor();Le&&(I.style.borderColor=Le)}}else{var $e=[];/^[bx]cancel$/.test(d)&&$e.push(new de({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(d)&&$e.push(new de({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var Ye=new J($e,{width:"100%",height:ee+"em"});I=Ke.makeSvgSpan([],[Ye],m)}return I.height=ee,I.style.height=ee+"em",I},Zn={encloseSpan:jn,mathMLnode:Yr,svgSpan:bi},yr=function(l,d){var f,m,I=Pn(l,"supsub"),ee;I?(m=un(I.base,"accent"),f=m.base,I.base=f,ee=xe(ar(I,d)),I.base=m):(m=un(l,"accent"),f=m.base);var Le=ar(f,d.havingCrampedStyle()),$e=m.isShifty&&P.isCharacterBox(f),Ye=0;if($e){var gt=P.getBaseElem(f),At=ar(gt,d.havingCrampedStyle());Ye=Ce(At).skew}var Ht=Math.min(Le.height,d.fontMetrics().xHeight),gn;if(m.isStretchy)gn=Zn.svgSpan(m,d),gn=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Le},{type:"elem",elem:gn,wrapperClasses:["svg-align"],wrapperStyle:Ye>0?{width:"calc(100% - "+2*Ye+"em)",marginLeft:2*Ye+"em"}:void 0}]},d);else{var wn,Un;m.label==="\\vec"?(wn=Ke.staticSvg("vec",d),Un=Ke.svgData.vec[1]):(wn=Ke.makeOrd({mode:m.mode,text:m.label},d,"textord"),wn=Ce(wn),wn.italic=0,Un=wn.width),gn=Ke.makeSpan(["accent-body"],[wn]);var er=m.label==="\\textcircled";er&&(gn.classes.push("accent-full"),Ht=Le.height);var dr=Ye;er||(dr-=Un/2),gn.style.left=dr+"em",m.label==="\\textcircled"&&(gn.style.top=".2em"),gn=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Le},{type:"kern",size:-Ht},{type:"elem",elem:gn}]},d)}var _r=Ke.makeSpan(["mord","accent"],[gn],d);return ee?(ee.children[0]=_r,ee.height=Math.max(_r.height,ee.height),ee.classes[0]="mord",ee):_r},Qr=function(l,d){var f=l.isStretchy?Zn.mathMLnode(l.label):new Wt.MathNode("mo",[sr(l.label,l.mode)]),m=new Wt.MathNode("mover",[bn(l.base,d),f]);return m.setAttribute("accent","true"),m},Ir=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(ne){return"\\"+ne}).join("|"));An({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 f=d[0],m=!Ir.test(l.funcName),I=!m||l.funcName==="\\widehat"||l.funcName==="\\widetilde"||l.funcName==="\\widecheck";return{type:"accent",mode:l.parser.mode,label:l.funcName,isStretchy:m,isShifty:I,base:f}},htmlBuilder:yr,mathmlBuilder:Qr}),An({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(l,d){var f=d[0];return{type:"accent",mode:l.parser.mode,label:l.funcName,isStretchy:!1,isShifty:!0,base:f}},htmlBuilder:yr,mathmlBuilder:Qr}),An({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(l,d){var f=l.parser,m=l.funcName,I=d[0];return{type:"accentUnder",mode:f.mode,label:m,base:I}},htmlBuilder:function(l,d){var f=ar(l.base,d),m=Zn.svgSpan(l,d),I=l.label==="\\utilde"?.12:0,ee=Ke.makeVList({positionType:"bottom",positionData:m.height+I,children:[{type:"elem",elem:m,wrapperClasses:["svg-align"]},{type:"kern",size:I},{type:"elem",elem:f}]},d);return Ke.makeSpan(["mord","accentunder"],[ee],d)},mathmlBuilder:function(l,d){var f=Zn.mathMLnode(l.label),m=new Wt.MathNode("munder",[bn(l.base,d),f]);return m.setAttribute("accentunder","true"),m}});var _i=function(l){var d=new Wt.MathNode("mpadded",l?[l]:[]);return d.setAttribute("width","+0.6em"),d.setAttribute("lspace","0.3em"),d};An({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,f){var m=l.parser,I=l.funcName;return{type:"xArrow",mode:m.mode,label:I,body:d[0],below:f[0]}},htmlBuilder:function(l,d){var f=d.style,m=d.havingStyle(f.sup()),I=Ke.wrapFragment(ar(l.body,m,d),d);I.classes.push("x-arrow-pad");var ee;l.below&&(m=d.havingStyle(f.sub()),ee=Ke.wrapFragment(ar(l.below,m,d),d),ee.classes.push("x-arrow-pad"));var Le=Zn.svgSpan(l,d),$e=-d.fontMetrics().axisHeight+.5*Le.height,Ye=-d.fontMetrics().axisHeight-.5*Le.height-.111;(I.depth>.25||l.label==="\\xleftequilibrium")&&(Ye-=I.depth);var gt;if(ee){var At=-d.fontMetrics().axisHeight+ee.height+.5*Le.height+.111;gt=Ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:I,shift:Ye},{type:"elem",elem:Le,shift:$e},{type:"elem",elem:ee,shift:At}]},d)}else gt=Ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:I,shift:Ye},{type:"elem",elem:Le,shift:$e}]},d);return gt.children[0].children[0].children[1].classes.push("svg-align"),Ke.makeSpan(["mrel","x-arrow"],[gt],d)},mathmlBuilder:function(l,d){var f=Zn.mathMLnode(l.label),m;if(l.body){var I=_i(bn(l.body,d));if(l.below){var ee=_i(bn(l.below,d));m=new Wt.MathNode("munderover",[f,ee,I])}else m=new Wt.MathNode("mover",[f,I])}else if(l.below){var Le=_i(bn(l.below,d));m=new Wt.MathNode("munder",[f,Le])}else m=_i(),m=new Wt.MathNode("mover",[f,m]);return m}}),An({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){for(var f=l.parser,m=un(d[0],"ordgroup"),I=m.body,ee="",Le=0;Le<I.length;Le++){var $e=un(I[Le],"textord");ee+=$e.text}var Ye=parseInt(ee);if(isNaN(Ye))throw new X("\\@char has non-numeric argument "+ee);return{type:"textord",mode:f.mode,text:String.fromCharCode(Ye)}}});var Wi=function(l,d){var f=gr(l.body,d.withColor(l.color),!1);return Ke.makeFragment(f)},Hi=function(l,d){var f=Nn(l.body,d.withColor(l.color)),m=new Wt.MathNode("mstyle",f);return m.setAttribute("mathcolor",l.color),m};An({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(l,d){var f=l.parser,m=un(d[0],"color-token").color,I=d[1];return{type:"color",mode:f.mode,color:m,body:ur(I)}},htmlBuilder:Wi,mathmlBuilder:Hi}),An({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(l,d){var f=l.parser,m=l.breakOnTokenText,I=un(d[0],"color-token").color;f.gullet.macros.set("\\current@color",I);var ee=f.parseExpression(!0,m);return{type:"color",mode:f.mode,color:I,body:ee}},htmlBuilder:Wi,mathmlBuilder:Hi}),An({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(l,d,f){var m=l.parser,I=l.funcName,ee=f[0],Le=I==="\\cr",$e=!1;return Le||(m.settings.displayMode&&m.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?$e=!1:$e=!0),{type:"cr",mode:m.mode,newLine:$e,newRow:Le,size:ee&&un(ee,"size").value}},htmlBuilder:function(l,d){if(l.newRow)throw new X("\\cr valid only within a tabular/array environment");var f=Ke.makeSpan(["mspace"],[],d);return l.newLine&&(f.classes.push("newline"),l.size&&(f.style.marginTop=tt(l.size,d)+"em")),f},mathmlBuilder:function(l,d){var f=new Wt.MathNode("mspace");return l.newLine&&(f.setAttribute("linebreak","newline"),l.size&&f.setAttribute("height",tt(l.size,d)+"em")),f}});var Ai=function(l,d,f){var m=_t.math[l]&&_t.math[l].replace,I=rt(m||l,d,f);if(!I)throw new Error("Unsupported symbol "+l+" and font size "+d+".");return I},aa=function(l,d,f,m){var I=f.havingBaseStyle(d),ee=Ke.makeSpan(m.concat(I.sizingClasses(f)),[l],f),Le=I.sizeMultiplier/f.sizeMultiplier;return ee.height*=Le,ee.depth*=Le,ee.maxFontSize=I.sizeMultiplier,ee},sa=function(l,d,f){var m=d.havingBaseStyle(f),I=(1-d.sizeMultiplier/m.sizeMultiplier)*d.fontMetrics().axisHeight;l.classes.push("delimcenter"),l.style.top=I+"em",l.height-=I,l.depth+=I},oa=function(l,d,f,m,I,ee){var Le=Ke.makeSymbol(l,"Main-Regular",I,m),$e=aa(Le,d,m,ee);return f&&sa($e,m,d),$e},ea=function(l,d,f,m){return Ke.makeSymbol(l,"Size"+d+"-Regular",f,m)},la=function(l,d,f,m,I,ee){var Le=ea(l,d,I,m),$e=aa(Ke.makeSpan(["delimsizing","size"+d],[Le],m),g.TEXT,m,ee);return f&&sa($e,m,g.TEXT),$e},Mi=function(l,d,f){var m;d==="Size1-Regular"?m="delim-size1":m="delim-size4";var I=Ke.makeSpan(["delimsizinginner",m],[Ke.makeSpan([],[Ke.makeSymbol(l,d,f)])]);return{type:"elem",elem:I}},oi={type:"kern",size:-.005},ua=function(l,d,f,m,I,ee){var Le,$e,Ye,gt;Le=Ye=gt=l,$e=null;var At="Size1-Regular";l==="\\uparrow"?Ye=gt="\u23D0":l==="\\Uparrow"?Ye=gt="\u2016":l==="\\downarrow"?Le=Ye="\u23D0":l==="\\Downarrow"?Le=Ye="\u2016":l==="\\updownarrow"?(Le="\\uparrow",Ye="\u23D0",gt="\\downarrow"):l==="\\Updownarrow"?(Le="\\Uparrow",Ye="\u2016",gt="\\Downarrow"):l==="["||l==="\\lbrack"?(Le="\u23A1",Ye="\u23A2",gt="\u23A3",At="Size4-Regular"):l==="]"||l==="\\rbrack"?(Le="\u23A4",Ye="\u23A5",gt="\u23A6",At="Size4-Regular"):l==="\\lfloor"||l==="\u230A"?(Ye=Le="\u23A2",gt="\u23A3",At="Size4-Regular"):l==="\\lceil"||l==="\u2308"?(Le="\u23A1",Ye=gt="\u23A2",At="Size4-Regular"):l==="\\rfloor"||l==="\u230B"?(Ye=Le="\u23A5",gt="\u23A6",At="Size4-Regular"):l==="\\rceil"||l==="\u2309"?(Le="\u23A4",Ye=gt="\u23A5",At="Size4-Regular"):l==="("||l==="\\lparen"?(Le="\u239B",Ye="\u239C",gt="\u239D",At="Size4-Regular"):l===")"||l==="\\rparen"?(Le="\u239E",Ye="\u239F",gt="\u23A0",At="Size4-Regular"):l==="\\{"||l==="\\lbrace"?(Le="\u23A7",$e="\u23A8",gt="\u23A9",Ye="\u23AA",At="Size4-Regular"):l==="\\}"||l==="\\rbrace"?(Le="\u23AB",$e="\u23AC",gt="\u23AD",Ye="\u23AA",At="Size4-Regular"):l==="\\lgroup"||l==="\u27EE"?(Le="\u23A7",gt="\u23A9",Ye="\u23AA",At="Size4-Regular"):l==="\\rgroup"||l==="\u27EF"?(Le="\u23AB",gt="\u23AD",Ye="\u23AA",At="Size4-Regular"):l==="\\lmoustache"||l==="\u23B0"?(Le="\u23A7",gt="\u23AD",Ye="\u23AA",At="Size4-Regular"):(l==="\\rmoustache"||l==="\u23B1")&&(Le="\u23AB",gt="\u23A9",Ye="\u23AA",At="Size4-Regular");var Ht=Ai(Le,At,I),gn=Ht.height+Ht.depth,wn=Ai(Ye,At,I),Un=wn.height+wn.depth,er=Ai(gt,At,I),dr=er.height+er.depth,_r=0,Sr=1;if($e!==null){var ti=Ai($e,At,I);_r=ti.height+ti.depth,Sr=2}var Xr=gn+dr+_r,ri=Math.max(0,Math.ceil((d-Xr)/(Sr*Un))),ai=Xr+ri*Sr*Un,di=m.fontMetrics().axisHeight;f&&(di*=m.sizeMultiplier);var Ri=ai/2-di,Ti=(ri+1)*.005-Un,Wr=[];if(Wr.push(Mi(gt,At,I)),$e===null)for(var Ki=0;Ki<ri;Ki++)Wr.push(oi),Wr.push(Mi(Ye,At,I));else{for(var Ji=0;Ji<ri;Ji++)Wr.push(oi),Wr.push(Mi(Ye,At,I));Wr.push({type:"kern",size:Ti}),Wr.push(Mi(Ye,At,I)),Wr.push(oi),Wr.push(Mi($e,At,I));for(var ji=0;ji<ri;ji++)Wr.push(oi),Wr.push(Mi(Ye,At,I))}Wr.push({type:"kern",size:Ti}),Wr.push(Mi(Ye,At,I)),Wr.push(oi),Wr.push(Mi(Le,At,I));var Ii=m.havingBaseStyle(g.TEXT),qi=Ke.makeVList({positionType:"bottom",positionData:Ri,children:Wr},Ii);return aa(Ke.makeSpan(["delimsizing","mult"],[qi],Ii),g.TEXT,m,ee)},ta=80,Si=.08,Oi=function(l,d,f,m,I){var ee=Jt(l,m,f),Le=new oe(l,ee),$e=new J([Le],{width:"400em",height:d+"em",viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});return Ke.makeSvgSpan(["hide-tail"],[$e],I)},Ar=function(l,d){var f=d.havingBaseSizing(),m=zi("\\surd",l*f.sizeMultiplier,xi,f),I=f.sizeMultiplier,ee=Math.max(0,d.minRuleThickness-d.fontMetrics().sqrtRuleThickness),Le,$e=0,Ye=0,gt=0,At;return m.type==="small"?(gt=1e3+1e3*ee+ta,l<1?I=1:l<1.4&&(I=.7),$e=(1+ee+Si)/I,Ye=(1+ee)/I,Le=Oi("sqrtMain",$e,gt,ee,d),Le.style.minWidth="0.853em",At=.833/I):m.type==="large"?(gt=(1e3+ta)*Jr[m.size],Ye=(Jr[m.size]+ee)/I,$e=(Jr[m.size]+ee+Si)/I,Le=Oi("sqrtSize"+m.size,$e,gt,ee,d),Le.style.minWidth="1.02em",At=1/I):($e=l+ee+Si,Ye=l+ee,gt=Math.floor(1e3*l+ee)+ta,Le=Oi("sqrtTall",$e,gt,ee,d),Le.style.minWidth="0.742em",At=1.056),Le.height=Ye,Le.style.height=$e+"em",{span:Le,advanceWidth:At,ruleWidth:(d.fontMetrics().sqrtRuleThickness+ee)*I}},cr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],mi=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],gi=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Jr=[0,1.2,1.8,2.4,3],Ci=function(l,d,f,m,I){if(l==="<"||l==="\\lt"||l==="\u27E8"?l="\\langle":(l===">"||l==="\\gt"||l==="\u27E9")&&(l="\\rangle"),P.contains(cr,l)||P.contains(gi,l))return la(l,d,!1,f,m,I);if(P.contains(mi,l))return ua(l,Jr[d],!1,f,m,I);throw new X("Illegal delimiter: '"+l+"'")},Br=[{type:"small",style:g.SCRIPTSCRIPT},{type:"small",style:g.SCRIPT},{type:"small",style:g.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],$i=[{type:"small",style:g.SCRIPTSCRIPT},{type:"small",style:g.SCRIPT},{type:"small",style:g.TEXT},{type:"stack"}],xi=[{type:"small",style:g.SCRIPTSCRIPT},{type:"small",style:g.SCRIPT},{type:"small",style:g.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],ki=function(l){if(l.type==="small")return"Main-Regular";if(l.type==="large")return"Size"+l.size+"-Regular";if(l.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+l.type+"' here.")},zi=function(l,d,f,m){for(var I=Math.min(2,3-m.style.size),ee=I;ee<f.length&&f[ee].type!=="stack";ee++){var Le=Ai(l,ki(f[ee]),"math"),$e=Le.height+Le.depth;if(f[ee].type==="small"){var Ye=m.havingBaseStyle(f[ee].style);$e*=Ye.sizeMultiplier}if($e>d)return f[ee]}return f[f.length-1]},Ur=function(l,d,f,m,I,ee){l==="<"||l==="\\lt"||l==="\u27E8"?l="\\langle":(l===">"||l==="\\gt"||l==="\u27E9")&&(l="\\rangle");var Le;P.contains(gi,l)?Le=Br:P.contains(cr,l)?Le=xi:Le=$i;var $e=zi(l,d,Le,m);return $e.type==="small"?oa(l,$e.style,f,m,I,ee):$e.type==="large"?la(l,$e.size,f,m,I,ee):ua(l,d,f,m,I,ee)},ga=function(l,d,f,m,I,ee){var Le=m.fontMetrics().axisHeight*m.sizeMultiplier,$e=901,Ye=5/m.fontMetrics().ptPerEm,gt=Math.max(d-Le,f+Le),At=Math.max(gt/500*$e,2*gt-Ye);return Ur(l,At,!0,m,I,ee)},Di={sqrtImage:Ar,sizedDelim:Ci,customSizedDelim:Ur,leftRightDelim:ga},ca={"\\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}},es=["(","\\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 va(ne,l){var d=tr(ne);if(d&&P.contains(es,d.text))return d;throw new X("Invalid delimiter: '"+(d?d.text:JSON.stringify(ne))+"' after '"+l.funcName+"'",ne)}An({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 f=va(d[0],l);return{type:"delimsizing",mode:l.parser.mode,size:ca[l.funcName].size,mclass:ca[l.funcName].mclass,delim:f.text}},htmlBuilder:function(l,d){return l.delim==="."?Ke.makeSpan([l.mclass]):Di.sizedDelim(l.delim,l.size,d,l.mode,[l.mclass])},mathmlBuilder:function(l){var d=[];l.delim!=="."&&d.push(sr(l.delim,l.mode));var f=new Wt.MathNode("mo",d);return l.mclass==="mopen"||l.mclass==="mclose"?f.setAttribute("fence","true"):f.setAttribute("fence","false"),f}});function ya(ne){if(!ne.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}An({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(l,d){var f=l.parser.gullet.macros.get("\\current@color");if(f&&typeof f!="string")throw new X("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:l.parser.mode,delim:va(d[0],l).text,color:f}}}),An({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(l,d){var f=va(d[0],l),m=l.parser;++m.leftrightDepth;var I=m.parseExpression(!1);--m.leftrightDepth,m.expect("\\right",!1);var ee=un(m.parseFunction(),"leftright-right");return{type:"leftright",mode:m.mode,body:I,left:f.text,right:ee.delim,rightColor:ee.color}},htmlBuilder:function(l,d){ya(l);for(var f=gr(l.body,d,!0,["mopen","mclose"]),m=0,I=0,ee=!1,Le=0;Le<f.length;Le++)f[Le].isMiddle?ee=!0:(m=Math.max(f[Le].height,m),I=Math.max(f[Le].depth,I));m*=d.sizeMultiplier,I*=d.sizeMultiplier;var $e;if(l.left==="."?$e=ei(d,["mopen"]):$e=Di.leftRightDelim(l.left,m,I,d,l.mode,["mopen"]),f.unshift($e),ee)for(var Ye=1;Ye<f.length;Ye++){var gt=f[Ye],At=gt.isMiddle;At&&(f[Ye]=Di.leftRightDelim(At.delim,m,I,At.options,l.mode,[]))}var Ht;if(l.right===".")Ht=ei(d,["mclose"]);else{var gn=l.rightColor?d.withColor(l.rightColor):d;Ht=Di.leftRightDelim(l.right,m,I,gn,l.mode,["mclose"])}return f.push(Ht),Ke.makeSpan(["minner"],f,d)},mathmlBuilder:function(l,d){ya(l);var f=Nn(l.body,d);if(l.left!=="."){var m=new Wt.MathNode("mo",[sr(l.left,l.mode)]);m.setAttribute("fence","true"),f.unshift(m)}if(l.right!=="."){var I=new Wt.MathNode("mo",[sr(l.right,l.mode)]);I.setAttribute("fence","true"),l.rightColor&&I.setAttribute("mathcolor",l.rightColor),f.push(I)}return vr(f)}}),An({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(l,d){var f=va(d[0],l);if(!l.parser.leftrightDepth)throw new X("\\middle without preceding \\left",f);return{type:"middle",mode:l.parser.mode,delim:f.text}},htmlBuilder:function(l,d){var f;if(l.delim===".")f=ei(d,[]);else{f=Di.sizedDelim(l.delim,1,d,l.mode,[]);var m={delim:l.delim,options:d};f.isMiddle=m}return f},mathmlBuilder:function(l,d){var f=l.delim==="\\vert"||l.delim==="|"?sr("|","text"):sr(l.delim,l.mode),m=new Wt.MathNode("mo",[f]);return m.setAttribute("fence","true"),m.setAttribute("lspace","0.05em"),m.setAttribute("rspace","0.05em"),m}});var ba=function(l,d){var f=Ke.wrapFragment(ar(l.body,d),d),m=l.label.substr(1),I=d.sizeMultiplier,ee,Le=0,$e=P.isCharacterBox(l.body);if(m==="sout")ee=Ke.makeSpan(["stretchy","sout"]),ee.height=d.fontMetrics().defaultRuleThickness/I,Le=-.5*d.fontMetrics().xHeight;else{/cancel/.test(m)?$e||f.classes.push("cancel-pad"):f.classes.push("boxpad");var Ye=0,gt=0;/box/.test(m)?(gt=Math.max(d.fontMetrics().fboxrule,d.minRuleThickness),Ye=d.fontMetrics().fboxsep+(m==="colorbox"?0:gt)):Ye=$e?.2:0,ee=Zn.encloseSpan(f,m,Ye,d),/fbox|boxed|fcolorbox/.test(m)&&(ee.style.borderStyle="solid",ee.style.borderWidth=gt+"em"),Le=f.depth+Ye,l.backgroundColor&&(ee.style.backgroundColor=l.backgroundColor,l.borderColor&&(ee.style.borderColor=l.borderColor))}var At;return l.backgroundColor?At=Ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ee,shift:Le},{type:"elem",elem:f,shift:0}]},d):At=Ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:f,shift:0},{type:"elem",elem:ee,shift:Le,wrapperClasses:/cancel/.test(m)?["svg-align"]:[]}]},d),/cancel/.test(m)&&(At.height=f.height,At.depth=f.depth),/cancel/.test(m)&&!$e?Ke.makeSpan(["mord","cancel-lap"],[At],d):Ke.makeSpan(["mord"],[At],d)},Aa=function(l,d){var f=0,m=new Wt.MathNode(l.label.indexOf("colorbox")>-1?"mpadded":"menclose",[bn(l.body,d)]);switch(l.label){case"\\cancel":m.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":m.setAttribute("notation","downdiagonalstrike");break;case"\\sout":m.setAttribute("notation","horizontalstrike");break;case"\\fbox":m.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(f=d.fontMetrics().fboxsep*d.fontMetrics().ptPerEm,m.setAttribute("width","+"+2*f+"pt"),m.setAttribute("height","+"+2*f+"pt"),m.setAttribute("lspace",f+"pt"),m.setAttribute("voffset",f+"pt"),l.label==="\\fcolorbox"){var I=Math.max(d.fontMetrics().fboxrule,d.minRuleThickness);m.setAttribute("style","border: "+I+"em solid "+String(l.borderColor))}break;case"\\xcancel":m.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return l.backgroundColor&&m.setAttribute("mathbackground",l.backgroundColor),m};An({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(l,d,f){var m=l.parser,I=l.funcName,ee=un(d[0],"color-token").color,Le=d[1];return{type:"enclose",mode:m.mode,label:I,backgroundColor:ee,body:Le}},htmlBuilder:ba,mathmlBuilder:Aa}),An({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(l,d,f){var m=l.parser,I=l.funcName,ee=un(d[0],"color-token").color,Le=un(d[1],"color-token").color,$e=d[2];return{type:"enclose",mode:m.mode,label:I,backgroundColor:Le,borderColor:ee,body:$e}},htmlBuilder:ba,mathmlBuilder:Aa}),An({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(l,d){var f=l.parser;return{type:"enclose",mode:f.mode,label:"\\fbox",body:d[0]}}}),An({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(l,d,f){var m=l.parser,I=l.funcName,ee=d[0];return{type:"enclose",mode:m.mode,label:I,body:ee}},htmlBuilder:ba,mathmlBuilder:Aa});var Ma={};function Ui(ne){for(var l=ne.type,d=ne.names,f=ne.props,m=ne.handler,I=ne.htmlBuilder,ee=ne.mathmlBuilder,Le={type:l,numArgs:f.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:m},$e=0;$e<d.length;++$e)Ma[d[$e]]=Le;I&&(wr[l]=I),ee&&(Lr[l]=ee)}function Da(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 Kr(ne,l,d){var f=l.hskipBeforeAndAfter,m=l.addJot,I=l.cols,ee=l.arraystretch,Le=l.colSeparationType;if(ne.gullet.beginGroup(),ne.gullet.macros.set("\\\\","\\cr"),!ee){var $e=ne.gullet.expandMacroAsText("\\arraystretch");if($e==null)ee=1;else if(ee=parseFloat($e),!ee||ee<0)throw new X("Invalid \\arraystretch: "+$e)}ne.gullet.beginGroup();var Ye=[],gt=[Ye],At=[],Ht=[];for(Ht.push(Da(ne));;){var gn=ne.parseExpression(!1,"\\cr");ne.gullet.endGroup(),ne.gullet.beginGroup(),gn={type:"ordgroup",mode:ne.mode,body:gn},d&&(gn={type:"styling",mode:ne.mode,style:d,body:[gn]}),Ye.push(gn);var wn=ne.fetch().text;if(wn==="&")ne.consume();else if(wn==="\\end"){Ye.length===1&&gn.type==="styling"&&gn.body[0].body.length===0&&gt.pop(),Ht.length<gt.length+1&&Ht.push([]);break}else if(wn==="\\cr"){var Un=un(ne.parseFunction(),"cr");At.push(Un.size),Ht.push(Da(ne)),Ye=[],gt.push(Ye)}else throw new X("Expected & or \\\\ or \\cr or \\end",ne.nextToken)}return ne.gullet.endGroup(),ne.gullet.endGroup(),{type:"array",mode:ne.mode,addJot:m,arraystretch:ee,body:gt,cols:I,rowGaps:At,hskipBeforeAndAfter:f,hLinesBeforeRow:Ht,colSeparationType:Le}}function $r(ne){return ne.substr(0,1)==="d"?"display":"text"}var Nr=function(l,d){var f,m,I=l.body.length,ee=l.hLinesBeforeRow,Le=0,$e=new Array(I),Ye=[],gt=Math.max(d.fontMetrics().arrayRuleWidth,d.minRuleThickness),At=1/d.fontMetrics().ptPerEm,Ht=5*At;if(l.colSeparationType&&l.colSeparationType==="small"){var gn=d.havingStyle(g.SCRIPT).sizeMultiplier;Ht=.2778*(gn/d.sizeMultiplier)}var wn=12*At,Un=3*At,er=l.arraystretch*wn,dr=.7*er,_r=.3*er,Sr=0;function ti(vs){for(var ma=0;ma<vs.length;++ma)ma>0&&(Sr+=.25),Ye.push({pos:Sr,isDashed:vs[ma]})}for(ti(ee[0]),f=0;f<l.body.length;++f){var Xr=l.body[f],ri=dr,ai=_r;Le<Xr.length&&(Le=Xr.length);var di=new Array(Xr.length);for(m=0;m<Xr.length;++m){var Ri=ar(Xr[m],d);ai<Ri.depth&&(ai=Ri.depth),ri<Ri.height&&(ri=Ri.height),di[m]=Ri}var Ti=l.rowGaps[f],Wr=0;Ti&&(Wr=tt(Ti,d),Wr>0&&(Wr+=_r,ai<Wr&&(ai=Wr),Wr=0)),l.addJot&&(ai+=Un),di.height=ri,di.depth=ai,Sr+=ri,di.pos=Sr,Sr+=ai+Wr,$e[f]=di,ti(ee[f+1])}var Ki=Sr/2+d.fontMetrics().axisHeight,Ji=l.cols||[],ji=[],Ii,qi;for(m=0,qi=0;m<Le||qi<Ji.length;++m,++qi){for(var yi=Ji[qi]||{},Gi=!0;yi.type==="separator";){if(Gi||(Ii=Ke.makeSpan(["arraycolsep"],[]),Ii.style.width=d.fontMetrics().doubleRuleSep+"em",ji.push(Ii)),yi.separator==="|"||yi.separator===":"){var to=yi.separator==="|"?"solid":"dashed",Sa=Ke.makeSpan(["vertical-separator"],[],d);Sa.style.height=Sr+"em",Sa.style.borderRightWidth=gt+"em",Sa.style.borderRightStyle=to,Sa.style.margin="0 -"+gt/2+"em",Sa.style.verticalAlign=-(Sr-Ki)+"em",ji.push(Sa)}else throw new X("Invalid separator type: "+yi.separator);qi++,yi=Ji[qi]||{},Gi=!1}if(!(m>=Le)){var Ca=void 0;(m>0||l.hskipBeforeAndAfter)&&(Ca=P.deflt(yi.pregap,Ht),Ca!==0&&(Ii=Ke.makeSpan(["arraycolsep"],[]),Ii.style.width=Ca+"em",ji.push(Ii)));var Ta=[];for(f=0;f<I;++f){var Ya=$e[f],Xa=Ya[m];if(Xa){var pa=Ya.pos-Ki;Xa.depth=Ya.depth,Xa.height=Ya.height,Ta.push({type:"elem",elem:Xa,shift:pa})}}Ta=Ke.makeVList({positionType:"individualShift",children:Ta},d),Ta=Ke.makeSpan(["col-align-"+(yi.align||"c")],[Ta]),ji.push(Ta),(m<Le-1||l.hskipBeforeAndAfter)&&(Ca=P.deflt(yi.postgap,Ht),Ca!==0&&(Ii=Ke.makeSpan(["arraycolsep"],[]),Ii.style.width=Ca+"em",ji.push(Ii)))}}if($e=Ke.makeSpan(["mtable"],ji),Ye.length>0){for(var Ns=Ke.makeLineSpan("hline",d,gt),no=Ke.makeLineSpan("hdashline",d,gt),ms=[{type:"elem",elem:$e,shift:0}];Ye.length>0;){var Qa=Ye.pop(),gs=Qa.pos-Ki;Qa.isDashed?ms.push({type:"elem",elem:no,shift:gs}):ms.push({type:"elem",elem:Ns,shift:gs})}$e=Ke.makeVList({positionType:"individualShift",children:ms},d)}return Ke.makeSpan(["mord"],[$e],d)},li={c:"center ",l:"left ",r:"right "},ci=function(l,d){var f=new Wt.MathNode("mtable",l.body.map(function(Sr){return new Wt.MathNode("mtr",Sr.map(function(ti){return new Wt.MathNode("mtd",[bn(ti,d)])}))})),m=l.arraystretch===.5?.1:.16+l.arraystretch-1+(l.addJot?.09:0);f.setAttribute("rowspacing",m+"em");var I="",ee="";if(l.cols){var Le=l.cols,$e="",Ye=!1,gt=0,At=Le.length;Le[0].type==="separator"&&(I+="top ",gt=1),Le[Le.length-1].type==="separator"&&(I+="bottom ",At-=1);for(var Ht=gt;Ht<At;Ht++)Le[Ht].type==="align"?(ee+=li[Le[Ht].align],Ye&&($e+="none "),Ye=!0):Le[Ht].type==="separator"&&Ye&&($e+=Le[Ht].separator==="|"?"solid ":"dashed ",Ye=!1);f.setAttribute("columnalign",ee.trim()),/[sd]/.test($e)&&f.setAttribute("columnlines",$e.trim())}if(l.colSeparationType==="align"){for(var gn=l.cols||[],wn="",Un=1;Un<gn.length;Un++)wn+=Un%2?"0em ":"1em ";f.setAttribute("columnspacing",wn.trim())}else l.colSeparationType==="alignat"?f.setAttribute("columnspacing","0em"):l.colSeparationType==="small"?f.setAttribute("columnspacing","0.2778em"):f.setAttribute("columnspacing","1em");var er="",dr=l.hLinesBeforeRow;I+=dr[0].length>0?"left ":"",I+=dr[dr.length-1].length>0?"right ":"";for(var _r=1;_r<dr.length-1;_r++)er+=dr[_r].length===0?"none ":dr[_r][0]?"dashed ":"solid ";return/[sd]/.test(er)&&f.setAttribute("rowlines",er.trim()),I!==""&&(f=new Wt.MathNode("menclose",[f]),f.setAttribute("notation",I.trim())),l.arraystretch&&l.arraystretch<1&&(f=new Wt.MathNode("mstyle",[f]),f.setAttribute("scriptlevel","1")),f},da=function(l,d){var f=[],m=Kr(l.parser,{cols:f,addJot:!0},"display"),I,ee=0,Le={type:"ordgroup",mode:l.mode,body:[]},$e=Pn(d[0],"ordgroup");if($e){for(var Ye="",gt=0;gt<$e.body.length;gt++){var At=un($e.body[gt],"textord");Ye+=At.text}I=Number(Ye),ee=I*2}var Ht=!ee;m.body.forEach(function(er){for(var dr=1;dr<er.length;dr+=2){var _r=un(er[dr],"styling"),Sr=un(_r.body[0],"ordgroup");Sr.body.unshift(Le)}if(Ht)ee<er.length&&(ee=er.length);else{var ti=er.length/2;if(I<ti)throw new X("Too many math in a row: "+("expected "+I+", but got "+ti),er[0])}});for(var gn=0;gn<ee;++gn){var wn="r",Un=0;gn%2===1?wn="l":gn>0&&Ht&&(Un=1),f[gn]={type:"align",align:wn,pregap:Un,postgap:0}}return m.colSeparationType=Ht?"align":"alignat",m};Ui({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(l,d){var f=tr(d[0]),m=f?[d[0]]:un(d[0],"ordgroup").body,I=m.map(function(Le){var $e=nr(Le),Ye=$e.text;if("lcr".indexOf(Ye)!==-1)return{type:"align",align:Ye};if(Ye==="|")return{type:"separator",separator:"|"};if(Ye===":")return{type:"separator",separator:":"};throw new X("Unknown column alignment: "+Ye,Le)}),ee={cols:I,hskipBeforeAndAfter:!0};return Kr(l.parser,ee,$r(l.envName))},htmlBuilder:Nr,mathmlBuilder:ci}),Ui({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],f={hskipBeforeAndAfter:!1},m=Kr(l.parser,f,$r(l.envName));return d?{type:"leftright",mode:l.mode,body:[m],left:d[0],right:d[1],rightColor:void 0}:m},htmlBuilder:Nr,mathmlBuilder:ci}),Ui({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(l){var d={arraystretch:.5},f=Kr(l.parser,d,"script");return f.colSeparationType="small",f},htmlBuilder:Nr,mathmlBuilder:ci}),Ui({type:"array",names:["subarray"],props:{numArgs:1},handler:function(l,d){var f=tr(d[0]),m=f?[d[0]]:un(d[0],"ordgroup").body,I=m.map(function(Le){var $e=nr(Le),Ye=$e.text;if("lc".indexOf(Ye)!==-1)return{type:"align",align:Ye};throw new X("Unknown column alignment: "+Ye,Le)});if(I.length>1)throw new X("{subarray} can contain only one column");var ee={cols:I,hskipBeforeAndAfter:!1,arraystretch:.5};if(ee=Kr(l.parser,ee,"script"),ee.body[0].length>1)throw new X("{subarray} can contain only one column");return ee},htmlBuilder:Nr,mathmlBuilder:ci}),Ui({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}]},f=Kr(l.parser,d,$r(l.envName));return{type:"leftright",mode:l.mode,body:[f],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:Nr,mathmlBuilder:ci}),Ui({type:"array",names:["aligned"],props:{numArgs:0},handler:da,htmlBuilder:Nr,mathmlBuilder:ci}),Ui({type:"array",names:["gathered"],props:{numArgs:0},handler:function(l){var d={cols:[{type:"align",align:"c"}],addJot:!0};return Kr(l.parser,d,"display")},htmlBuilder:Nr,mathmlBuilder:ci}),Ui({type:"array",names:["alignedat"],props:{numArgs:1},handler:da,htmlBuilder:Nr,mathmlBuilder:ci}),An({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(l,d){throw new X(l.funcName+" valid only within array environment")}});var Ra=Ma,Na=Ra;An({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(l,d){var f=l.parser,m=l.funcName,I=d[0];if(I.type!=="ordgroup")throw new X("Invalid environment name",I);for(var ee="",Le=0;Le<I.body.length;++Le)ee+=un(I.body[Le],"textord").text;if(m==="\\begin"){if(!Na.hasOwnProperty(ee))throw new X("No such environment: "+ee,I);var $e=Na[ee],Ye=f.parseArguments("\\begin{"+ee+"}",$e),gt=Ye.args,At=Ye.optArgs,Ht={mode:f.mode,envName:ee,parser:f},gn=$e.handler(Ht,gt,At);f.expect("\\end",!1);var wn=f.nextToken,Un=un(f.parseFunction(),"environment");if(Un.name!==ee)throw new X("Mismatch: \\begin{"+ee+"} matched by \\end{"+Un.name+"}",wn);return gn}return{type:"environment",mode:f.mode,name:ee,nameGroup:I}}});var Fa=Ke.makeSpan;function fa(ne,l){var d=gr(ne.body,l,!0);return Fa([ne.mclass],d,l)}function na(ne,l){var d,f=Nn(ne.body,l);return ne.mclass==="minner"?Wt.newDocumentFragment(f):(ne.mclass==="mord"?ne.isCharacterBox?(d=f[0],d.type="mi"):d=new Wt.MathNode("mi",f):(ne.isCharacterBox?(d=f[0],d.type="mo"):d=new Wt.MathNode("mo",f),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)}An({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(l,d){var f=l.parser,m=l.funcName,I=d[0];return{type:"mclass",mode:f.mode,mclass:"m"+m.substr(5),body:ur(I),isCharacterBox:P.isCharacterBox(I)}},htmlBuilder:fa,mathmlBuilder:na});var hn=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"};An({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(l,d){var f=l.parser;return{type:"mclass",mode:f.mode,mclass:hn(d[0]),body:[d[1]],isCharacterBox:P.isCharacterBox(d[1])}}}),An({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(l,d){var f=l.parser,m=l.funcName,I=d[1],ee=d[0],Le;m!=="\\stackrel"?Le=hn(I):Le="mrel";var $e={type:"op",mode:I.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:m!=="\\stackrel",body:ur(I)},Ye={type:"supsub",mode:ee.mode,base:$e,sup:m==="\\underset"?null:ee,sub:m==="\\underset"?ee:null};return{type:"mclass",mode:f.mode,mclass:Le,body:[Ye],isCharacterBox:P.isCharacterBox(Ye)}},htmlBuilder:fa,mathmlBuilder:na});var _a=function(l,d){var f=l.font,m=d.withFont(f);return ar(l.body,m)},ts=function(l,d){var f=l.font,m=d.withFont(f);return bn(l.body,m)},bs={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};An({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 f=l.parser,m=l.funcName,I=d[0],ee=m;return ee in bs&&(ee=bs[ee]),{type:"font",mode:f.mode,font:ee.slice(1),body:I}},htmlBuilder:_a,mathmlBuilder:ts}),An({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(l,d){var f=l.parser,m=d[0],I=P.isCharacterBox(m);return{type:"mclass",mode:f.mode,mclass:hn(m),body:[{type:"font",mode:f.mode,font:"boldsymbol",body:m}],isCharacterBox:I}}}),An({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(l,d){var f=l.parser,m=l.funcName,I=l.breakOnTokenText,ee=f.mode,Le=f.parseExpression(!0,I),$e="math"+m.slice(1);return{type:"font",mode:ee,font:$e,body:{type:"ordgroup",mode:f.mode,body:Le}}},htmlBuilder:_a,mathmlBuilder:ts});var _s=function(l,d){var f=d;return l==="display"?f=f.id>=g.SCRIPT.id?f.text():g.DISPLAY:l==="text"&&f.size===g.DISPLAY.size?f=g.TEXT:l==="script"?f=g.SCRIPT:l==="scriptscript"&&(f=g.SCRIPTSCRIPT),f},ns=function(l,d){var f=_s(l.size,d.style),m=f.fracNum(),I=f.fracDen(),ee;ee=d.havingStyle(m);var Le=ar(l.numer,ee,d);if(l.continued){var $e=8.5/d.fontMetrics().ptPerEm,Ye=3.5/d.fontMetrics().ptPerEm;Le.height=Le.height<$e?$e:Le.height,Le.depth=Le.depth<Ye?Ye:Le.depth}ee=d.havingStyle(I);var gt=ar(l.denom,ee,d),At,Ht,gn;l.hasBarLine?(l.barSize?(Ht=tt(l.barSize,d),At=Ke.makeLineSpan("frac-line",d,Ht)):At=Ke.makeLineSpan("frac-line",d),Ht=At.height,gn=At.height):(At=null,Ht=0,gn=d.fontMetrics().defaultRuleThickness);var wn,Un,er;f.size===g.DISPLAY.size||l.size==="display"?(wn=d.fontMetrics().num1,Ht>0?Un=3*gn:Un=7*gn,er=d.fontMetrics().denom1):(Ht>0?(wn=d.fontMetrics().num2,Un=gn):(wn=d.fontMetrics().num3,Un=3*gn),er=d.fontMetrics().denom2);var dr;if(At){var Sr=d.fontMetrics().axisHeight;wn-Le.depth-(Sr+.5*Ht)<Un&&(wn+=Un-(wn-Le.depth-(Sr+.5*Ht))),Sr-.5*Ht-(gt.height-er)<Un&&(er+=Un-(Sr-.5*Ht-(gt.height-er)));var ti=-(Sr-.5*Ht);dr=Ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:gt,shift:er},{type:"elem",elem:At,shift:ti},{type:"elem",elem:Le,shift:-wn}]},d)}else{var _r=wn-Le.depth-(gt.height-er);_r<Un&&(wn+=.5*(Un-_r),er+=.5*(Un-_r)),dr=Ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:gt,shift:er},{type:"elem",elem:Le,shift:-wn}]},d)}ee=d.havingStyle(f),dr.height*=ee.sizeMultiplier/d.sizeMultiplier,dr.depth*=ee.sizeMultiplier/d.sizeMultiplier;var Xr;f.size===g.DISPLAY.size?Xr=d.fontMetrics().delim1:Xr=d.fontMetrics().delim2;var ri,ai;return l.leftDelim==null?ri=ei(d,["mopen"]):ri=Di.customSizedDelim(l.leftDelim,Xr,!0,d.havingStyle(f),l.mode,["mopen"]),l.continued?ai=Ke.makeSpan([]):l.rightDelim==null?ai=ei(d,["mclose"]):ai=Di.customSizedDelim(l.rightDelim,Xr,!0,d.havingStyle(f),l.mode,["mclose"]),Ke.makeSpan(["mord"].concat(ee.sizingClasses(d)),[ri,Ke.makeSpan(["mfrac"],[dr]),ai],d)},rs=function(l,d){var f=new Wt.MathNode("mfrac",[bn(l.numer,d),bn(l.denom,d)]);if(!l.hasBarLine)f.setAttribute("linethickness","0px");else if(l.barSize){var m=tt(l.barSize,d);f.setAttribute("linethickness",m+"em")}var I=_s(l.size,d.style);if(I.size!==d.style.size){f=new Wt.MathNode("mstyle",[f]);var ee=I.size===g.DISPLAY.size?"true":"false";f.setAttribute("displaystyle",ee),f.setAttribute("scriptlevel","0")}if(l.leftDelim!=null||l.rightDelim!=null){var Le=[];if(l.leftDelim!=null){var $e=new Wt.MathNode("mo",[new Wt.TextNode(l.leftDelim.replace("\\",""))]);$e.setAttribute("fence","true"),Le.push($e)}if(Le.push(f),l.rightDelim!=null){var Ye=new Wt.MathNode("mo",[new Wt.TextNode(l.rightDelim.replace("\\",""))]);Ye.setAttribute("fence","true"),Le.push(Ye)}return vr(Le)}return f};An({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(l,d){var f=l.parser,m=l.funcName,I=d[0],ee=d[1],Le,$e=null,Ye=null,gt="auto";switch(m){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":Le=!0;break;case"\\\\atopfrac":Le=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":Le=!1,$e="(",Ye=")";break;case"\\\\bracefrac":Le=!1,$e="\\{",Ye="\\}";break;case"\\\\brackfrac":Le=!1,$e="[",Ye="]";break;default:throw new Error("Unrecognized genfrac command")}switch(m){case"\\cfrac":case"\\dfrac":case"\\dbinom":gt="display";break;case"\\tfrac":case"\\tbinom":gt="text";break}return{type:"genfrac",mode:f.mode,continued:m==="\\cfrac",numer:I,denom:ee,hasBarLine:Le,leftDelim:$e,rightDelim:Ye,size:gt,barSize:null}},htmlBuilder:ns,mathmlBuilder:rs}),An({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(l){var d=l.parser,f=l.funcName,m=l.token,I;switch(f){case"\\over":I="\\frac";break;case"\\choose":I="\\binom";break;case"\\atop":I="\\\\atopfrac";break;case"\\brace":I="\\\\bracefrac";break;case"\\brack":I="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:d.mode,replaceWith:I,token:m}}});var Zi=["display","text","script","scriptscript"],Ba=function(l){var d=null;return l.length>0&&(d=l,d=d==="."?null:d),d};An({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(l,d){var f=l.parser,m=d[4],I=d[5],ee=Pn(d[0],"atom");ee&&(ee=Kn(d[0],"open"));var Le=ee?Ba(ee.text):null,$e=Pn(d[1],"atom");$e&&($e=Kn(d[1],"close"));var Ye=$e?Ba($e.text):null,gt=un(d[2],"size"),At,Ht=null;gt.isBlank?At=!0:(Ht=gt.value,At=Ht.number>0);var gn="auto",wn=Pn(d[3],"ordgroup");if(wn){if(wn.body.length>0){var Un=un(wn.body[0],"textord");gn=Zi[Number(Un.text)]}}else wn=un(d[3],"textord"),gn=Zi[Number(wn.text)];return{type:"genfrac",mode:f.mode,numer:m,denom:I,continued:!1,hasBarLine:At,barSize:Ht,leftDelim:Le,rightDelim:Ye,size:gn}},htmlBuilder:ns,mathmlBuilder:rs}),An({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(l,d){var f=l.parser,m=l.funcName,I=l.token;return{type:"infix",mode:f.mode,replaceWith:"\\\\abovefrac",size:un(d[0],"size").value,token:I}}}),An({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(l,d){var f=l.parser,m=l.funcName,I=d[0],ee=k(un(d[1],"infix").size),Le=d[2],$e=ee.number>0;return{type:"genfrac",mode:f.mode,numer:I,denom:Le,continued:!1,hasBarLine:$e,barSize:ee,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:ns,mathmlBuilder:rs});var xs=function(l,d){var f=d.style,m,I,ee=Pn(l,"supsub");ee?(m=ee.sup?ar(ee.sup,d.havingStyle(f.sup()),d):ar(ee.sub,d.havingStyle(f.sub()),d),I=un(ee.base,"horizBrace")):I=un(l,"horizBrace");var Le=ar(I.base,d.havingBaseStyle(g.DISPLAY)),$e=Zn.svgSpan(I,d),Ye;if(I.isOver?(Ye=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Le},{type:"kern",size:.1},{type:"elem",elem:$e}]},d),Ye.children[0].children[0].children[1].classes.push("svg-align")):(Ye=Ke.makeVList({positionType:"bottom",positionData:Le.depth+.1+$e.height,children:[{type:"elem",elem:$e},{type:"kern",size:.1},{type:"elem",elem:Le}]},d),Ye.children[0].children[0].children[0].classes.push("svg-align")),m){var gt=Ke.makeSpan(["mord",I.isOver?"mover":"munder"],[Ye],d);I.isOver?Ye=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:gt},{type:"kern",size:.2},{type:"elem",elem:m}]},d):Ye=Ke.makeVList({positionType:"bottom",positionData:gt.depth+.2+m.height+m.depth,children:[{type:"elem",elem:m},{type:"kern",size:.2},{type:"elem",elem:gt}]},d)}return Ke.makeSpan(["mord",I.isOver?"mover":"munder"],[Ye],d)},Hs=function(l,d){var f=Zn.mathMLnode(l.label);return new Wt.MathNode(l.isOver?"mover":"munder",[bn(l.base,d),f])};An({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(l,d){var f=l.parser,m=l.funcName;return{type:"horizBrace",mode:f.mode,label:m,isOver:/^\\over/.test(m),base:d[0]}},htmlBuilder:xs,mathmlBuilder:Hs}),An({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(l,d){var f=l.parser,m=d[1],I=un(d[0],"url").url;return f.settings.isTrusted({command:"\\href",url:I})?{type:"href",mode:f.mode,href:I,body:ur(m)}:f.formatUnsupportedCmd("\\href")},htmlBuilder:function(l,d){var f=gr(l.body,d,!1);return Ke.makeAnchor(l.href,[],f,d)},mathmlBuilder:function(l,d){var f=xn(l.body,d);return f instanceof Or||(f=new Or("mrow",[f])),f.setAttribute("href",l.href),f}}),An({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(l,d){var f=l.parser,m=un(d[0],"url").url;if(!f.settings.isTrusted({command:"\\url",url:m}))return f.formatUnsupportedCmd("\\url");for(var I=[],ee=0;ee<m.length;ee++){var Le=m[ee];Le==="~"&&(Le="\\textasciitilde"),I.push({type:"textord",mode:"text",text:Le})}var $e={type:"text",mode:f.mode,font:"\\texttt",body:I};return{type:"href",mode:f.mode,href:m,body:ur($e)}}}),An({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(l,d){var f=l.parser;return{type:"htmlmathml",mode:f.mode,html:ur(d[0]),mathml:ur(d[1])}},htmlBuilder:function(l,d){var f=gr(l.html,d,!1);return Ke.makeFragment(f)},mathmlBuilder:function(l,d){return xn(l.mathml,d)}});var $a=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 X("Invalid size: '"+l+"' in \\includegraphics");var f={number:+(d[1]+d[2]),unit:d[3]};if(!Qe(f))throw new X("Invalid unit: '"+f.unit+"' in \\includegraphics.");return f};An({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(l,d,f){var m=l.parser,I={number:0,unit:"em"},ee={number:.9,unit:"em"},Le={number:0,unit:"em"},$e="";if(f[0])for(var Ye=un(f[0],"raw").string,gt=Ye.split(","),At=0;At<gt.length;At++){var Ht=gt[At].split("=");if(Ht.length===2){var gn=Ht[1].trim();switch(Ht[0].trim()){case"alt":$e=gn;break;case"width":I=$a(gn);break;case"height":ee=$a(gn);break;case"totalheight":Le=$a(gn);break;default:throw new X("Invalid key: '"+Ht[0]+"' in \\includegraphics.")}}}var wn=un(d[0],"url").url;return $e===""&&($e=wn,$e=$e.replace(/^.*[\\/]/,""),$e=$e.substring(0,$e.lastIndexOf("."))),m.settings.isTrusted({command:"\\includegraphics",url:wn})?{type:"includegraphics",mode:m.mode,alt:$e,width:I,height:ee,totalheight:Le,src:wn}:m.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(l,d){var f=tt(l.height,d),m=0;l.totalheight.number>0&&(m=tt(l.totalheight,d)-f,m=Number(m.toFixed(2)));var I=0;l.width.number>0&&(I=tt(l.width,d));var ee={height:f+m+"em"};I>0&&(ee.width=I+"em"),m>0&&(ee.verticalAlign=-m+"em");var Le=new De(l.src,l.alt,ee);return Le.height=f,Le.depth=m,Le},mathmlBuilder:function(l,d){var f=new Wt.MathNode("mglyph",[]);f.setAttribute("alt",l.alt);var m=tt(l.height,d),I=0;if(l.totalheight.number>0&&(I=tt(l.totalheight,d)-m,I=I.toFixed(2),f.setAttribute("valign","-"+I+"em")),f.setAttribute("height",m+I+"em"),l.width.number>0){var ee=tt(l.width,d);f.setAttribute("width",ee+"em")}return f.setAttribute("src",l.src),f}}),An({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(l,d){var f=l.parser,m=l.funcName,I=un(d[0],"size");if(f.settings.strict){var ee=m[1]==="m",Le=I.value.unit==="mu";ee?(Le||f.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+m+" supports only mu units, "+("not "+I.value.unit+" units")),f.mode!=="math"&&f.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+m+" works only in math mode")):Le&&f.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+m+" doesn't support mu units")}return{type:"kern",mode:f.mode,dimension:I.value}},htmlBuilder:function(l,d){return Ke.makeGlue(l.dimension,d)},mathmlBuilder:function(l,d){var f=tt(l.dimension,d);return new Wt.SpaceNode(f)}}),An({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var f=l.parser,m=l.funcName,I=d[0];return{type:"lap",mode:f.mode,alignment:m.slice(5),body:I}},htmlBuilder:function(l,d){var f;l.alignment==="clap"?(f=Ke.makeSpan([],[ar(l.body,d)]),f=Ke.makeSpan(["inner"],[f],d)):f=Ke.makeSpan(["inner"],[ar(l.body,d)]);var m=Ke.makeSpan(["fix"],[]),I=Ke.makeSpan([l.alignment],[f,m],d),ee=Ke.makeSpan(["strut"]);return ee.style.height=I.height+I.depth+"em",ee.style.verticalAlign=-I.depth+"em",I.children.unshift(ee),I=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:I}]},d),Ke.makeSpan(["mord"],[I],d)},mathmlBuilder:function(l,d){var f=new Wt.MathNode("mpadded",[bn(l.body,d)]);if(l.alignment!=="rlap"){var m=l.alignment==="llap"?"-1":"-0.5";f.setAttribute("lspace",m+"width")}return f.setAttribute("width","0px"),f}}),An({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(l,d){var f=l.funcName,m=l.parser,I=m.mode;m.switchMode("math");var ee=f==="\\("?"\\)":"$",Le=m.parseExpression(!1,ee);return m.expect(ee),m.switchMode(I),{type:"styling",mode:m.mode,style:"text",body:Le}}}),An({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(l,d){throw new X("Mismatched "+l.funcName)}});var is=function(l,d){switch(d.style.size){case g.DISPLAY.size:return l.display;case g.TEXT.size:return l.text;case g.SCRIPT.size:return l.script;case g.SCRIPTSCRIPT.size:return l.scriptscript;default:return l.text}};An({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(l,d){var f=l.parser;return{type:"mathchoice",mode:f.mode,display:ur(d[0]),text:ur(d[1]),script:ur(d[2]),scriptscript:ur(d[3])}},htmlBuilder:function(l,d){var f=is(l,d),m=gr(f,d,!1);return Ke.makeFragment(m)},mathmlBuilder:function(l,d){var f=is(l,d);return xn(f,d)}});var za=function(l,d,f,m,I,ee,Le){l=Ke.makeSpan([],[l]);var $e,Ye;if(d){var gt=ar(d,m.havingStyle(I.sup()),m);Ye={elem:gt,kern:Math.max(m.fontMetrics().bigOpSpacing1,m.fontMetrics().bigOpSpacing3-gt.depth)}}if(f){var At=ar(f,m.havingStyle(I.sub()),m);$e={elem:At,kern:Math.max(m.fontMetrics().bigOpSpacing2,m.fontMetrics().bigOpSpacing4-At.height)}}var Ht;if(Ye&&$e){var gn=m.fontMetrics().bigOpSpacing5+$e.elem.height+$e.elem.depth+$e.kern+l.depth+Le;Ht=Ke.makeVList({positionType:"bottom",positionData:gn,children:[{type:"kern",size:m.fontMetrics().bigOpSpacing5},{type:"elem",elem:$e.elem,marginLeft:-ee+"em"},{type:"kern",size:$e.kern},{type:"elem",elem:l},{type:"kern",size:Ye.kern},{type:"elem",elem:Ye.elem,marginLeft:ee+"em"},{type:"kern",size:m.fontMetrics().bigOpSpacing5}]},m)}else if($e){var wn=l.height-Le;Ht=Ke.makeVList({positionType:"top",positionData:wn,children:[{type:"kern",size:m.fontMetrics().bigOpSpacing5},{type:"elem",elem:$e.elem,marginLeft:-ee+"em"},{type:"kern",size:$e.kern},{type:"elem",elem:l}]},m)}else if(Ye){var Un=l.depth+Le;Ht=Ke.makeVList({positionType:"bottom",positionData:Un,children:[{type:"elem",elem:l},{type:"kern",size:Ye.kern},{type:"elem",elem:Ye.elem,marginLeft:ee+"em"},{type:"kern",size:m.fontMetrics().bigOpSpacing5}]},m)}else return l;return Ke.makeSpan(["mop","op-limits"],[Ht],m)},Es=["\\smallint"],Xi=function(l,d){var f,m,I=!1,ee,Le=Pn(l,"supsub");Le?(f=Le.sup,m=Le.sub,ee=un(Le.base,"op"),I=!0):ee=un(l,"op");var $e=d.style,Ye=!1;$e.size===g.DISPLAY.size&&ee.symbol&&!P.contains(Es,ee.name)&&(Ye=!0);var gt;if(ee.symbol){var At=Ye?"Size2-Regular":"Size1-Regular",Ht="";if((ee.name==="\\oiint"||ee.name==="\\oiiint")&&(Ht=ee.name.substr(1),ee.name=Ht==="oiint"?"\\iint":"\\iiint"),gt=Ke.makeSymbol(ee.name,At,"math",d,["mop","op-symbol",Ye?"large-op":"small-op"]),Ht.length>0){var gn=gt.italic,wn=Ke.staticSvg(Ht+"Size"+(Ye?"2":"1"),d);gt=Ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:gt,shift:0},{type:"elem",elem:wn,shift:Ye?.08:0}]},d),ee.name="\\"+Ht,gt.classes.unshift("mop"),gt.italic=gn}}else if(ee.body){var Un=gr(ee.body,d,!0);Un.length===1&&Un[0]instanceof ae?(gt=Un[0],gt.classes[0]="mop"):gt=Ke.makeSpan(["mop"],Ke.tryCombineChars(Un),d)}else{for(var er=[],dr=1;dr<ee.name.length;dr++)er.push(Ke.mathsym(ee.name[dr],ee.mode,d));gt=Ke.makeSpan(["mop"],er,d)}var _r=0,Sr=0;return(gt instanceof ae||ee.name==="\\oiint"||ee.name==="\\oiiint")&&!ee.suppressBaseShift&&(_r=(gt.height-gt.depth)/2-d.fontMetrics().axisHeight,Sr=gt.italic),I?za(gt,f,m,d,$e,Sr,_r):(_r&&(gt.style.position="relative",gt.style.top=_r+"em"),gt)},Ia=function(l,d){var f;if(l.symbol)f=new Or("mo",[sr(l.name,l.mode)]),P.contains(Es,l.name)&&f.setAttribute("largeop","false");else if(l.body)f=new Or("mo",Nn(l.body,d));else{f=new Or("mi",[new hi(l.name.slice(1))]);var m=new Or("mo",[sr("\u2061","text")]);l.parentIsSupSub?f=new Or("mo",[f,m]):f=fi([f,m])}return f},Zs={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};An({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 f=l.parser,m=l.funcName,I=m;return I.length===1&&(I=Zs[I]),{type:"op",mode:f.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:I}},htmlBuilder:Xi,mathmlBuilder:Ia}),An({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(l,d){var f=l.parser,m=d[0];return{type:"op",mode:f.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ur(m)}},htmlBuilder:Xi,mathmlBuilder:Ia});var ws={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};An({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,f=l.funcName;return{type:"op",mode:d.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:f}},htmlBuilder:Xi,mathmlBuilder:Ia}),An({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(l){var d=l.parser,f=l.funcName;return{type:"op",mode:d.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:f}},htmlBuilder:Xi,mathmlBuilder:Ia}),An({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,f=l.funcName,m=f;return m.length===1&&(m=ws[m]),{type:"op",mode:d.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:m}},htmlBuilder:Xi,mathmlBuilder:Ia});var as=function(l,d){var f,m,I=!1,ee,Le=Pn(l,"supsub");Le?(f=Le.sup,m=Le.sub,ee=un(Le.base,"operatorname"),I=!0):ee=un(l,"operatorname");var $e;if(ee.body.length>0){for(var Ye=ee.body.map(function(gn){var wn=gn.text;return typeof wn=="string"?{type:"textord",mode:gn.mode,text:wn}:gn}),gt=gr(Ye,d.withFont("mathrm"),!0),At=0;At<gt.length;At++){var Ht=gt[At];Ht instanceof ae&&(Ht.text=Ht.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}$e=Ke.makeSpan(["mop"],gt,d)}else $e=Ke.makeSpan(["mop"],[],d);return I?za($e,f,m,d,d.style,0,0):$e},js=function(l,d){for(var f=Nn(l.body,d.withFont("mathrm")),m=!0,I=0;I<f.length;I++){var ee=f[I];if(!(ee instanceof Wt.SpaceNode))if(ee instanceof Wt.MathNode)switch(ee.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var Le=ee.children[0];ee.children.length===1&&Le instanceof Wt.TextNode?Le.text=Le.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):m=!1;break}default:m=!1}else m=!1}if(m){var $e=f.map(function(At){return At.toText()}).join("");f=[new Wt.TextNode($e)]}var Ye=new Wt.MathNode("mi",f);Ye.setAttribute("mathvariant","normal");var gt=new Wt.MathNode("mo",[sr("\u2061","text")]);return l.parentIsSupSub?new Wt.MathNode("mo",[Ye,gt]):Wt.newDocumentFragment([Ye,gt])};An({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(l,d){var f=l.parser,m=l.funcName,I=d[0];return{type:"operatorname",mode:f.mode,body:ur(I),alwaysHandleSupSub:m==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:as,mathmlBuilder:js}),hr({type:"ordgroup",htmlBuilder:function(l,d){return l.semisimple?Ke.makeFragment(gr(l.body,d,!1)):Ke.makeSpan(["mord"],gr(l.body,d,!0),d)},mathmlBuilder:function(l,d){return xn(l.body,d,!0)}}),An({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(l,d){var f=l.parser,m=d[0];return{type:"overline",mode:f.mode,body:m}},htmlBuilder:function(l,d){var f=ar(l.body,d.havingCrampedStyle()),m=Ke.makeLineSpan("overline-line",d),I=d.fontMetrics().defaultRuleThickness,ee=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f},{type:"kern",size:3*I},{type:"elem",elem:m},{type:"kern",size:I}]},d);return Ke.makeSpan(["mord","overline"],[ee],d)},mathmlBuilder:function(l,d){var f=new Wt.MathNode("mo",[new Wt.TextNode("\u203E")]);f.setAttribute("stretchy","true");var m=new Wt.MathNode("mover",[bn(l.body,d),f]);return m.setAttribute("accent","true"),m}}),An({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var f=l.parser,m=d[0];return{type:"phantom",mode:f.mode,body:ur(m)}},htmlBuilder:function(l,d){var f=gr(l.body,d.withPhantom(),!1);return Ke.makeFragment(f)},mathmlBuilder:function(l,d){var f=Nn(l.body,d);return new Wt.MathNode("mphantom",f)}}),An({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var f=l.parser,m=d[0];return{type:"hphantom",mode:f.mode,body:m}},htmlBuilder:function(l,d){var f=Ke.makeSpan([],[ar(l.body,d.withPhantom())]);if(f.height=0,f.depth=0,f.children)for(var m=0;m<f.children.length;m++)f.children[m].height=0,f.children[m].depth=0;return f=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f}]},d),Ke.makeSpan(["mord"],[f],d)},mathmlBuilder:function(l,d){var f=Nn(ur(l.body),d),m=new Wt.MathNode("mphantom",f),I=new Wt.MathNode("mpadded",[m]);return I.setAttribute("height","0px"),I.setAttribute("depth","0px"),I}}),An({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var f=l.parser,m=d[0];return{type:"vphantom",mode:f.mode,body:m}},htmlBuilder:function(l,d){var f=Ke.makeSpan(["inner"],[ar(l.body,d.withPhantom())]),m=Ke.makeSpan(["fix"],[]);return Ke.makeSpan(["mord","rlap"],[f,m],d)},mathmlBuilder:function(l,d){var f=Nn(ur(l.body),d),m=new Wt.MathNode("mphantom",f),I=new Wt.MathNode("mpadded",[m]);return I.setAttribute("width","0px"),I}}),An({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(l,d){var f=l.parser,m=un(d[0],"size").value,I=d[1];return{type:"raisebox",mode:f.mode,dy:m,body:I}},htmlBuilder:function(l,d){var f=ar(l.body,d),m=tt(l.dy,d);return Ke.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:f}]},d)},mathmlBuilder:function(l,d){var f=new Wt.MathNode("mpadded",[bn(l.body,d)]),m=l.dy.number+l.dy.unit;return f.setAttribute("voffset",m),f}}),An({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(l,d,f){var m=l.parser,I=f[0],ee=un(d[0],"size"),Le=un(d[1],"size");return{type:"rule",mode:m.mode,shift:I&&un(I,"size").value,width:ee.value,height:Le.value}},htmlBuilder:function(l,d){var f=Ke.makeSpan(["mord","rule"],[],d),m=tt(l.width,d),I=tt(l.height,d),ee=l.shift?tt(l.shift,d):0;return f.style.borderRightWidth=m+"em",f.style.borderTopWidth=I+"em",f.style.bottom=ee+"em",f.width=m,f.height=I+ee,f.depth=-ee,f.maxFontSize=I*1.125*d.sizeMultiplier,f},mathmlBuilder:function(l,d){var f=tt(l.width,d),m=tt(l.height,d),I=l.shift?tt(l.shift,d):0,ee=d.color&&d.getColor()||"black",Le=new Wt.MathNode("mspace");Le.setAttribute("mathbackground",ee),Le.setAttribute("width",f+"em"),Le.setAttribute("height",m+"em");var $e=new Wt.MathNode("mpadded",[Le]);return I>=0?$e.setAttribute("height","+"+I+"em"):($e.setAttribute("height",I+"em"),$e.setAttribute("depth","+"+-I+"em")),$e.setAttribute("voffset",I+"em"),$e}});function ss(ne,l,d){for(var f=gr(ne,l,!1),m=l.sizeMultiplier/d.sizeMultiplier,I=0;I<f.length;I++){var ee=f[I].classes.indexOf("sizing");ee<0?Array.prototype.push.apply(f[I].classes,l.sizingClasses(d)):f[I].classes[ee+1]==="reset-size"+l.size&&(f[I].classes[ee+1]="reset-size"+d.size),f[I].height*=m,f[I].depth*=m}return Ke.makeFragment(f)}var La=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Ws=function(l,d){var f=d.havingSize(l.size);return ss(l.body,f,d)};An({type:"sizing",names:La,props:{numArgs:0,allowedInText:!0},handler:function(l,d){var f=l.breakOnTokenText,m=l.funcName,I=l.parser,ee=I.parseExpression(!1,f);return{type:"sizing",mode:I.mode,size:La.indexOf(m)+1,body:ee}},htmlBuilder:Ws,mathmlBuilder:function(l,d){var f=d.havingSize(l.size),m=Nn(l.body,f),I=new Wt.MathNode("mstyle",m);return I.setAttribute("mathsize",f.sizeMultiplier+"em"),I}}),An({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(l,d,f){var m=l.parser,I=!1,ee=!1,Le=f[0]&&un(f[0],"ordgroup");if(Le)for(var $e="",Ye=0;Ye<Le.body.length;++Ye){var gt=Le.body[Ye];if($e=gt.text,$e==="t")I=!0;else if($e==="b")ee=!0;else{I=!1,ee=!1;break}}else I=!0,ee=!0;var At=d[0];return{type:"smash",mode:m.mode,body:At,smashHeight:I,smashDepth:ee}},htmlBuilder:function(l,d){var f=Ke.makeSpan([],[ar(l.body,d)]);if(!l.smashHeight&&!l.smashDepth)return f;if(l.smashHeight&&(f.height=0,f.children))for(var m=0;m<f.children.length;m++)f.children[m].height=0;if(l.smashDepth&&(f.depth=0,f.children))for(var I=0;I<f.children.length;I++)f.children[I].depth=0;var ee=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f}]},d);return Ke.makeSpan(["mord"],[ee],d)},mathmlBuilder:function(l,d){var f=new Wt.MathNode("mpadded",[bn(l.body,d)]);return l.smashHeight&&f.setAttribute("height","0px"),l.smashDepth&&f.setAttribute("depth","0px"),f}}),An({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(l,d,f){var m=l.parser,I=f[0],ee=d[0];return{type:"sqrt",mode:m.mode,body:ee,index:I}},htmlBuilder:function(l,d){var f=ar(l.body,d.havingCrampedStyle());f.height===0&&(f.height=d.fontMetrics().xHeight),f=Ke.wrapFragment(f,d);var m=d.fontMetrics(),I=m.defaultRuleThickness,ee=I;d.style.id<g.TEXT.id&&(ee=d.fontMetrics().xHeight);var Le=I+ee/4,$e=f.height+f.depth+Le+I,Ye=Di.sqrtImage($e,d),gt=Ye.span,At=Ye.ruleWidth,Ht=Ye.advanceWidth,gn=gt.height-At;gn>f.height+f.depth+Le&&(Le=(Le+gn-f.height-f.depth)/2);var wn=gt.height-f.height-Le-At;f.style.paddingLeft=Ht+"em";var Un=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f,wrapperClasses:["svg-align"]},{type:"kern",size:-(f.height+wn)},{type:"elem",elem:gt},{type:"kern",size:At}]},d);if(l.index){var er=d.havingStyle(g.SCRIPTSCRIPT),dr=ar(l.index,er,d),_r=.6*(Un.height-Un.depth),Sr=Ke.makeVList({positionType:"shift",positionData:-_r,children:[{type:"elem",elem:dr}]},d),ti=Ke.makeSpan(["root"],[Sr]);return Ke.makeSpan(["mord","sqrt"],[ti,Un],d)}else return Ke.makeSpan(["mord","sqrt"],[Un],d)},mathmlBuilder:function(l,d){var f=l.body,m=l.index;return m?new Wt.MathNode("mroot",[bn(f,d),bn(m,d)]):new Wt.MathNode("msqrt",[bn(f,d)])}});var Ss={display:g.DISPLAY,text:g.TEXT,script:g.SCRIPT,scriptscript:g.SCRIPTSCRIPT};An({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(l,d){var f=l.breakOnTokenText,m=l.funcName,I=l.parser,ee=I.parseExpression(!0,f),Le=m.slice(1,m.length-5);return{type:"styling",mode:I.mode,style:Le,body:ee}},htmlBuilder:function(l,d){var f=Ss[l.style],m=d.havingStyle(f).withFont("");return ss(l.body,m,d)},mathmlBuilder:function(l,d){var f=Ss[l.style],m=d.havingStyle(f),I=Nn(l.body,m),ee=new Wt.MathNode("mstyle",I),Le={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},$e=Le[l.style];return ee.setAttribute("scriptlevel",$e[0]),ee.setAttribute("displaystyle",$e[1]),ee}});var Gs=function(l,d){var f=l.base;if(f)if(f.type==="op"){var m=f.limits&&(d.style.size===g.DISPLAY.size||f.alwaysHandleSupSub);return m?Xi:null}else if(f.type==="operatorname"){var I=f.alwaysHandleSupSub&&(d.style.size===g.DISPLAY.size||f.limits);return I?as:null}else{if(f.type==="accent")return P.isCharacterBox(f.base)?yr:null;if(f.type==="horizBrace"){var ee=!l.sub;return ee===f.isOver?xs:null}else return null}else return null};hr({type:"supsub",htmlBuilder:function(l,d){var f=Gs(l,d);if(f)return f(l,d);var m=l.base,I=l.sup,ee=l.sub,Le=ar(m,d),$e,Ye,gt=d.fontMetrics(),At=0,Ht=0,gn=m&&P.isCharacterBox(m);if(I){var wn=d.havingStyle(d.style.sup());$e=ar(I,wn,d),gn||(At=Le.height-wn.fontMetrics().supDrop*wn.sizeMultiplier/d.sizeMultiplier)}if(ee){var Un=d.havingStyle(d.style.sub());Ye=ar(ee,Un,d),gn||(Ht=Le.depth+Un.fontMetrics().subDrop*Un.sizeMultiplier/d.sizeMultiplier)}var er;d.style===g.DISPLAY?er=gt.sup1:d.style.cramped?er=gt.sup3:er=gt.sup2;var dr=d.sizeMultiplier,_r=.5/gt.ptPerEm/dr+"em",Sr=null;if(Ye){var ti=l.base&&l.base.type==="op"&&l.base.name&&(l.base.name==="\\oiint"||l.base.name==="\\oiiint");(Le instanceof ae||ti)&&(Sr=-Le.italic+"em")}var Xr;if($e&&Ye){At=Math.max(At,er,$e.depth+.25*gt.xHeight),Ht=Math.max(Ht,gt.sub2);var ri=gt.defaultRuleThickness,ai=4*ri;if(At-$e.depth-(Ye.height-Ht)<ai){Ht=ai-(At-$e.depth)+Ye.height;var di=.8*gt.xHeight-(At-$e.depth);di>0&&(At+=di,Ht-=di)}var Ri=[{type:"elem",elem:Ye,shift:Ht,marginRight:_r,marginLeft:Sr},{type:"elem",elem:$e,shift:-At,marginRight:_r}];Xr=Ke.makeVList({positionType:"individualShift",children:Ri},d)}else if(Ye){Ht=Math.max(Ht,gt.sub1,Ye.height-.8*gt.xHeight);var Ti=[{type:"elem",elem:Ye,marginLeft:Sr,marginRight:_r}];Xr=Ke.makeVList({positionType:"shift",positionData:Ht,children:Ti},d)}else if($e)At=Math.max(At,er,$e.depth+.25*gt.xHeight),Xr=Ke.makeVList({positionType:"shift",positionData:-At,children:[{type:"elem",elem:$e,marginRight:_r}]},d);else throw new Error("supsub must have either sup or sub.");var Wr=Fr(Le,"right")||"mord";return Ke.makeSpan([Wr],[Le,Ke.makeSpan(["msupsub"],[Xr])],d)},mathmlBuilder:function(l,d){var f=!1,m,I,ee=Pn(l.base,"horizBrace");ee&&(I=!!l.sup,I===ee.isOver&&(f=!0,m=ee.isOver)),l.base&&(l.base.type==="op"||l.base.type==="operatorname")&&(l.base.parentIsSupSub=!0);var Le=[bn(l.base,d)];l.sub&&Le.push(bn(l.sub,d)),l.sup&&Le.push(bn(l.sup,d));var $e;if(f)$e=m?"mover":"munder";else if(l.sub)if(l.sup){var At=l.base;At&&At.type==="op"&&At.limits&&d.style===g.DISPLAY||At&&At.type==="operatorname"&&At.alwaysHandleSupSub&&(d.style===g.DISPLAY||At.limits)?$e="munderover":$e="msubsup"}else{var gt=l.base;gt&&gt.type==="op"&&gt.limits&&(d.style===g.DISPLAY||gt.alwaysHandleSupSub)||gt&&gt.type==="operatorname"&&gt.alwaysHandleSupSub&&(gt.limits||d.style===g.DISPLAY)?$e="munder":$e="msub"}else{var Ye=l.base;Ye&&Ye.type==="op"&&Ye.limits&&(d.style===g.DISPLAY||Ye.alwaysHandleSupSub)||Ye&&Ye.type==="operatorname"&&Ye.alwaysHandleSupSub&&(Ye.limits||d.style===g.DISPLAY)?$e="mover":$e="msup"}var Ht=new Wt.MathNode($e,Le);return Ht}}),hr({type:"atom",htmlBuilder:function(l,d){return Ke.mathsym(l.text,l.mode,d,["m"+l.family])},mathmlBuilder:function(l,d){var f=new Wt.MathNode("mo",[sr(l.text,l.mode)]);if(l.family==="bin"){var m=Rn(l,d);m==="bold-italic"&&f.setAttribute("mathvariant",m)}else l.family==="punct"?f.setAttribute("separator","true"):(l.family==="open"||l.family==="close")&&f.setAttribute("stretchy","false");return f}});var Cs={mi:"italic",mn:"normal",mtext:"normal"};hr({type:"mathord",htmlBuilder:function(l,d){return Ke.makeOrd(l,d,"mathord")},mathmlBuilder:function(l,d){var f=new Wt.MathNode("mi",[sr(l.text,l.mode,d)]),m=Rn(l,d)||"italic";return m!==Cs[f.type]&&f.setAttribute("mathvariant",m),f}}),hr({type:"textord",htmlBuilder:function(l,d){return Ke.makeOrd(l,d,"textord")},mathmlBuilder:function(l,d){var f=sr(l.text,l.mode,d),m=Rn(l,d)||"normal",I;return l.mode==="text"?I=new Wt.MathNode("mtext",[f]):/[0-9]/.test(l.text)?I=new Wt.MathNode("mn",[f]):l.text==="\\prime"?I=new Wt.MathNode("mo",[f]):I=new Wt.MathNode("mi",[f]),m!==Cs[I.type]&&I.setAttribute("mathvariant",m),I}});var Ua={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Ka={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};hr({type:"spacing",htmlBuilder:function(l,d){if(Ka.hasOwnProperty(l.text)){var f=Ka[l.text].className||"";if(l.mode==="text"){var m=Ke.makeOrd(l,d,"textord");return m.classes.push(f),m}else return Ke.makeSpan(["mspace",f],[Ke.mathsym(l.text,l.mode,d)],d)}else{if(Ua.hasOwnProperty(l.text))return Ke.makeSpan(["mspace",Ua[l.text]],[],d);throw new X('Unknown type of space "'+l.text+'"')}},mathmlBuilder:function(l,d){var f;if(Ka.hasOwnProperty(l.text))f=new Wt.MathNode("mtext",[new Wt.TextNode("\xA0")]);else{if(Ua.hasOwnProperty(l.text))return new Wt.MathNode("mspace");throw new X('Unknown type of space "'+l.text+'"')}return f}});var Ha=function(){var l=new Wt.MathNode("mtd",[]);return l.setAttribute("width","50%"),l};hr({type:"tag",mathmlBuilder:function(l,d){var f=new Wt.MathNode("mtable",[new Wt.MathNode("mtr",[Ha(),new Wt.MathNode("mtd",[xn(l.body,d)]),Ha(),new Wt.MathNode("mtd",[xn(l.tag,d)])])]);return f.setAttribute("width","100%"),f}});var os={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Ts={"\\textbf":"textbf","\\textmd":"textmd"},As={"\\textit":"textit","\\textup":"textup"},Ds=function(l,d){var f=l.font;return f?os[f]?d.withTextFontFamily(os[f]):Ts[f]?d.withTextFontWeight(Ts[f]):d.withTextFontShape(As[f]):d};An({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 f=l.parser,m=l.funcName,I=d[0];return{type:"text",mode:f.mode,body:ur(I),font:m}},htmlBuilder:function(l,d){var f=Ds(l,d),m=gr(l.body,f,!0);return Ke.makeSpan(["mord","text"],Ke.tryCombineChars(m),f)},mathmlBuilder:function(l,d){var f=Ds(l,d);return xn(l.body,f)}}),An({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var f=l.parser;return{type:"underline",mode:f.mode,body:d[0]}},htmlBuilder:function(l,d){var f=ar(l.body,d),m=Ke.makeLineSpan("underline-line",d),I=d.fontMetrics().defaultRuleThickness,ee=Ke.makeVList({positionType:"top",positionData:f.height,children:[{type:"kern",size:I},{type:"elem",elem:m},{type:"kern",size:3*I},{type:"elem",elem:f}]},d);return Ke.makeSpan(["mord","underline"],[ee],d)},mathmlBuilder:function(l,d){var f=new Wt.MathNode("mo",[new Wt.TextNode("\u203E")]);f.setAttribute("stretchy","true");var m=new Wt.MathNode("munder",[bn(l.body,d),f]);return m.setAttribute("accentunder","true"),m}}),An({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(l,d,f){throw new X("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(l,d){for(var f=Rs(l),m=[],I=d.havingStyle(d.style.text()),ee=0;ee<f.length;ee++){var Le=f[ee];Le==="~"&&(Le="\\textasciitilde"),m.push(Ke.makeSymbol(Le,"Typewriter-Regular",l.mode,I,["mord","texttt"]))}return Ke.makeSpan(["mord","text"].concat(I.sizingClasses(d)),Ke.tryCombineChars(m),I)},mathmlBuilder:function(l,d){var f=new Wt.TextNode(Rs(l)),m=new Wt.MathNode("mtext",[f]);return m.setAttribute("mathvariant","monospace"),m}});var Rs=function(l){return l.body.replace(/ /g,l.star?"\u2423":"\xA0")},Vs=ir,xa=Vs,ls=`[ \r
]`,us="\\\\[a-zA-Z@]+",Ys="\\\\[^\uD800-\uDFFF]",Is=""+us+ls+"*",Xs=new RegExp("^("+us+")"+ls+"*$"),cs="[\u0300-\u036F]",Ei=new RegExp(cs+"+$"),ra="("+ls+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(cs+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(cs+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+Is)+("|"+Ys+")"),Za=function(){function ne(d,f){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=d,this.settings=f,this.tokenRegex=new RegExp(ra,"g"),this.catcodes={"%":14}}var l=ne.prototype;return l.setCatcode=function(f,m){this.catcodes[f]=m},l.lex=function(){var f=this.input,m=this.tokenRegex.lastIndex;if(m===f.length)return new Te("EOF",new ce(this,m,m));var I=this.tokenRegex.exec(f);if(I===null||I.index!==m)throw new X("Unexpected character: '"+f[m]+"'",new Te(f[m],new ce(this,m,m+1)));var ee=I[2]||" ";if(this.catcodes[ee]===14){var Le=f.indexOf(`
`,this.tokenRegex.lastIndex);return Le===-1?(this.tokenRegex.lastIndex=f.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=Le+1,this.lex()}var $e=ee.match(Xs);return $e&&(ee=$e[1]),new Te(ee,new ce(this,m,this.tokenRegex.lastIndex))},ne}(),Qs=function(){function ne(d,f){d===void 0&&(d={}),f===void 0&&(f={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=f,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 X("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var f=this.undefStack.pop();for(var m in f)f.hasOwnProperty(m)&&(f[m]===void 0?delete this.current[m]:this.current[m]=f[m])},l.has=function(f){return this.current.hasOwnProperty(f)||this.builtins.hasOwnProperty(f)},l.get=function(f){return this.current.hasOwnProperty(f)?this.current[f]:this.builtins[f]},l.set=function(f,m,I){if(I===void 0&&(I=!1),I){for(var ee=0;ee<this.undefStack.length;ee++)delete this.undefStack[ee][f];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][f]=m)}else{var Le=this.undefStack[this.undefStack.length-1];Le&&!Le.hasOwnProperty(f)&&(Le[f]=this.current[f])}this.current[f]=m},ne}(),Ls={},ja=Ls;function He(ne,l){Ls[ne]=l}He("\\@firstoftwo",function(ne){var l=ne.consumeArgs(2);return{tokens:l[0],numArgs:0}}),He("\\@secondoftwo",function(ne){var l=ne.consumeArgs(2);return{tokens:l[1],numArgs:0}}),He("\\@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}}),He("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),He("\\TextOrMath",function(ne){var l=ne.consumeArgs(2);return ne.mode==="text"?{tokens:l[0],numArgs:0}:{tokens:l[1],numArgs:0}});var ha={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};He("\\char",function(ne){var l=ne.popToken(),d,f="";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]==="\\")f=l.text.charCodeAt(1);else{if(l.text==="EOF")throw new X("\\char` missing argument");f=l.text.charCodeAt(0)}else d=10;if(d){if(f=ha[l.text],f==null||f>=d)throw new X("Invalid base-"+d+" digit "+l.text);for(var m;(m=ha[ne.future().text])!=null&&m<d;)f*=d,f+=m,ne.popToken()}return"\\@char{"+f+"}"});var ds=function(l,d){var f=l.consumeArgs(1)[0];if(f.length!==1)throw new X("\\gdef's first argument must be a macro name");var m=f[0].text,I=0;for(f=l.consumeArgs(1)[0];f.length===1&&f[0].text==="#";){if(f=l.consumeArgs(1)[0],f.length!==1)throw new X('Invalid argument number length "'+f.length+'"');if(!/^[1-9]$/.test(f[0].text))throw new X('Invalid argument number "'+f[0].text+'"');if(I++,parseInt(f[0].text)!==I)throw new X('Argument number "'+f[0].text+'" out of order');f=l.consumeArgs(1)[0]}return l.macros.set(m,{tokens:f,numArgs:I},d),""};He("\\gdef",function(ne){return ds(ne,!0)}),He("\\def",function(ne){return ds(ne,!1)}),He("\\global",function(ne){var l=ne.consumeArgs(1)[0];if(l.length!==1)throw new X("Invalid command after \\global");var d=l[0].text;if(d==="\\def")return ds(ne,!0);throw new X("Invalid command '"+d+"' after \\global")});var Wa=function(l,d,f){var m=l.consumeArgs(1)[0];if(m.length!==1)throw new X("\\newcommand's first argument must be a macro name");var I=m[0].text,ee=l.isDefined(I);if(ee&&!d)throw new X("\\newcommand{"+I+"} attempting to redefine "+(I+"; use \\renewcommand"));if(!ee&&!f)throw new X("\\renewcommand{"+I+"} when command "+I+" does not yet exist; use \\newcommand");var Le=0;if(m=l.consumeArgs(1)[0],m.length===1&&m[0].text==="["){for(var $e="",Ye=l.expandNextToken();Ye.text!=="]"&&Ye.text!=="EOF";)$e+=Ye.text,Ye=l.expandNextToken();if(!$e.match(/^\s*[0-9]+\s*$/))throw new X("Invalid number of arguments: "+$e);Le=parseInt($e),m=l.consumeArgs(1)[0]}return l.macros.set(I,{tokens:m,numArgs:Le}),""};He("\\newcommand",function(ne){return Wa(ne,!1,!0)}),He("\\renewcommand",function(ne){return Wa(ne,!0,!1)}),He("\\providecommand",function(ne){return Wa(ne,!0,!0)}),He("\\bgroup","{"),He("\\egroup","}"),He("\\lq","`"),He("\\rq","'"),He("\\aa","\\r a"),He("\\AA","\\r A"),He("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),He("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),He("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),He("\u212C","\\mathscr{B}"),He("\u2130","\\mathscr{E}"),He("\u2131","\\mathscr{F}"),He("\u210B","\\mathscr{H}"),He("\u2110","\\mathscr{I}"),He("\u2112","\\mathscr{L}"),He("\u2133","\\mathscr{M}"),He("\u211B","\\mathscr{R}"),He("\u212D","\\mathfrak{C}"),He("\u210C","\\mathfrak{H}"),He("\u2128","\\mathfrak{Z}"),He("\\Bbbk","\\Bbb{k}"),He("\xB7","\\cdotp"),He("\\llap","\\mathllap{\\textrm{#1}}"),He("\\rlap","\\mathrlap{\\textrm{#1}}"),He("\\clap","\\mathclap{\\textrm{#1}}"),He("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),He("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),He("\\ne","\\neq"),He("\u2260","\\neq"),He("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),He("\u2209","\\notin"),He("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),He("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),He("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),He("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),He("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),He("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),He("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),He("\u27C2","\\perp"),He("\u203C","\\mathclose{!\\mkern-0.8mu!}"),He("\u220C","\\notni"),He("\u231C","\\ulcorner"),He("\u231D","\\urcorner"),He("\u231E","\\llcorner"),He("\u231F","\\lrcorner"),He("\xA9","\\copyright"),He("\xAE","\\textregistered"),He("\uFE0F","\\textregistered"),He("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),He("\u22EE","\\vdots"),He("\\varGamma","\\mathit{\\Gamma}"),He("\\varDelta","\\mathit{\\Delta}"),He("\\varTheta","\\mathit{\\Theta}"),He("\\varLambda","\\mathit{\\Lambda}"),He("\\varXi","\\mathit{\\Xi}"),He("\\varPi","\\mathit{\\Pi}"),He("\\varSigma","\\mathit{\\Sigma}"),He("\\varUpsilon","\\mathit{\\Upsilon}"),He("\\varPhi","\\mathit{\\Phi}"),He("\\varPsi","\\mathit{\\Psi}"),He("\\varOmega","\\mathit{\\Omega}"),He("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),He("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),He("\\boxed","\\fbox{$\\displaystyle{#1}$}"),He("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),He("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),He("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Qi={",":"\\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"};He("\\dots",function(ne){var l="\\dotso",d=ne.expandAfterFuture().text;return d in Qi?l=Qi[d]:(d.substr(0,4)==="\\not"||d in _t.math&&P.contains(["bin","rel"],_t.math[d].group))&&(l="\\dotsb"),l});var Mt={")":!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};He("\\dotso",function(ne){var l=ne.future().text;return l in Mt?"\\ldots\\,":"\\ldots"}),He("\\dotsc",function(ne){var l=ne.future().text;return l in Mt&&l!==","?"\\ldots\\,":"\\ldots"}),He("\\cdots",function(ne){var l=ne.future().text;return l in Mt?"\\@cdots\\,":"\\@cdots"}),He("\\dotsb","\\cdots"),He("\\dotsm","\\cdots"),He("\\dotsi","\\!\\cdots"),He("\\dotsx","\\ldots\\,"),He("\\DOTSI","\\relax"),He("\\DOTSB","\\relax"),He("\\DOTSX","\\relax"),He("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),He("\\,","\\tmspace+{3mu}{.1667em}"),He("\\thinspace","\\,"),He("\\>","\\mskip{4mu}"),He("\\:","\\tmspace+{4mu}{.2222em}"),He("\\medspace","\\:"),He("\\;","\\tmspace+{5mu}{.2777em}"),He("\\thickspace","\\;"),He("\\!","\\tmspace-{3mu}{.1667em}"),He("\\negthinspace","\\!"),He("\\negmedspace","\\tmspace-{4mu}{.2222em}"),He("\\negthickspace","\\tmspace-{5mu}{.277em}"),He("\\enspace","\\kern.5em "),He("\\enskip","\\hskip.5em\\relax"),He("\\quad","\\hskip1em\\relax"),He("\\qquad","\\hskip2em\\relax"),He("\\tag","\\@ifstar\\tag@literal\\tag@paren"),He("\\tag@paren","\\tag@literal{({#1})}"),He("\\tag@literal",function(ne){if(ne.macros.get("\\df@tag"))throw new X("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),He("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),He("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),He("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),He("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),He("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),He("\\\\","\\newline"),He("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var fs=ke["Main-Regular"][84][1]-.7*ke["Main-Regular"][65][1]+"em";He("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+fs+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),He("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+fs+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),He("\\hspace","\\@ifstar\\@hspacer\\@hspace"),He("\\@hspace","\\hskip #1\\relax"),He("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),He("\\ordinarycolon",":"),He("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),He("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),He("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),He("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),He("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),He("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),He("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),He("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),He("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),He("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),He("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),He("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),He("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),He("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),He("\u2237","\\dblcolon"),He("\u2239","\\eqcolon"),He("\u2254","\\coloneqq"),He("\u2255","\\eqqcolon"),He("\u2A74","\\Coloneqq"),He("\\ratio","\\vcentcolon"),He("\\coloncolon","\\dblcolon"),He("\\colonequals","\\coloneqq"),He("\\coloncolonequals","\\Coloneqq"),He("\\equalscolon","\\eqqcolon"),He("\\equalscoloncolon","\\Eqqcolon"),He("\\colonminus","\\coloneq"),He("\\coloncolonminus","\\Coloneq"),He("\\minuscolon","\\eqcolon"),He("\\minuscoloncolon","\\Eqcolon"),He("\\coloncolonapprox","\\Colonapprox"),He("\\coloncolonsim","\\Colonsim"),He("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),He("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),He("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),He("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),He("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),He("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),He("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),He("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),He("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),He("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),He("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),He("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),He("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),He("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),He("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),He("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),He("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),He("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),He("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),He("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),He("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),He("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),He("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),He("\u27E6","\\llbracket"),He("\u27E7","\\rrbracket"),He("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),He("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),He("\u2983","\\lBrace"),He("\u2984","\\rBrace"),He("\\darr","\\downarrow"),He("\\dArr","\\Downarrow"),He("\\Darr","\\Downarrow"),He("\\lang","\\langle"),He("\\rang","\\rangle"),He("\\uarr","\\uparrow"),He("\\uArr","\\Uparrow"),He("\\Uarr","\\Uparrow"),He("\\N","\\mathbb{N}"),He("\\R","\\mathbb{R}"),He("\\Z","\\mathbb{Z}"),He("\\alef","\\aleph"),He("\\alefsym","\\aleph"),He("\\Alpha","\\mathrm{A}"),He("\\Beta","\\mathrm{B}"),He("\\bull","\\bullet"),He("\\Chi","\\mathrm{X}"),He("\\clubs","\\clubsuit"),He("\\cnums","\\mathbb{C}"),He("\\Complex","\\mathbb{C}"),He("\\Dagger","\\ddagger"),He("\\diamonds","\\diamondsuit"),He("\\empty","\\emptyset"),He("\\Epsilon","\\mathrm{E}"),He("\\Eta","\\mathrm{H}"),He("\\exist","\\exists"),He("\\harr","\\leftrightarrow"),He("\\hArr","\\Leftrightarrow"),He("\\Harr","\\Leftrightarrow"),He("\\hearts","\\heartsuit"),He("\\image","\\Im"),He("\\infin","\\infty"),He("\\Iota","\\mathrm{I}"),He("\\isin","\\in"),He("\\Kappa","\\mathrm{K}"),He("\\larr","\\leftarrow"),He("\\lArr","\\Leftarrow"),He("\\Larr","\\Leftarrow"),He("\\lrarr","\\leftrightarrow"),He("\\lrArr","\\Leftrightarrow"),He("\\Lrarr","\\Leftrightarrow"),He("\\Mu","\\mathrm{M}"),He("\\natnums","\\mathbb{N}"),He("\\Nu","\\mathrm{N}"),He("\\Omicron","\\mathrm{O}"),He("\\plusmn","\\pm"),He("\\rarr","\\rightarrow"),He("\\rArr","\\Rightarrow"),He("\\Rarr","\\Rightarrow"),He("\\real","\\Re"),He("\\reals","\\mathbb{R}"),He("\\Reals","\\mathbb{R}"),He("\\Rho","\\mathrm{P}"),He("\\sdot","\\cdot"),He("\\sect","\\S"),He("\\spades","\\spadesuit"),He("\\sub","\\subset"),He("\\sube","\\subseteq"),He("\\supe","\\supseteq"),He("\\Tau","\\mathrm{T}"),He("\\thetasym","\\vartheta"),He("\\weierp","\\wp"),He("\\Zeta","\\mathrm{Z}"),He("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),He("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),He("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),He("\\blue","\\textcolor{##6495ed}{#1}"),He("\\orange","\\textcolor{##ffa500}{#1}"),He("\\pink","\\textcolor{##ff00af}{#1}"),He("\\red","\\textcolor{##df0030}{#1}"),He("\\green","\\textcolor{##28ae7b}{#1}"),He("\\gray","\\textcolor{gray}{#1}"),He("\\purple","\\textcolor{##9d38bd}{#1}"),He("\\blueA","\\textcolor{##ccfaff}{#1}"),He("\\blueB","\\textcolor{##80f6ff}{#1}"),He("\\blueC","\\textcolor{##63d9ea}{#1}"),He("\\blueD","\\textcolor{##11accd}{#1}"),He("\\blueE","\\textcolor{##0c7f99}{#1}"),He("\\tealA","\\textcolor{##94fff5}{#1}"),He("\\tealB","\\textcolor{##26edd5}{#1}"),He("\\tealC","\\textcolor{##01d1c1}{#1}"),He("\\tealD","\\textcolor{##01a995}{#1}"),He("\\tealE","\\textcolor{##208170}{#1}"),He("\\greenA","\\textcolor{##b6ffb0}{#1}"),He("\\greenB","\\textcolor{##8af281}{#1}"),He("\\greenC","\\textcolor{##74cf70}{#1}"),He("\\greenD","\\textcolor{##1fab54}{#1}"),He("\\greenE","\\textcolor{##0d923f}{#1}"),He("\\goldA","\\textcolor{##ffd0a9}{#1}"),He("\\goldB","\\textcolor{##ffbb71}{#1}"),He("\\goldC","\\textcolor{##ff9c39}{#1}"),He("\\goldD","\\textcolor{##e07d10}{#1}"),He("\\goldE","\\textcolor{##a75a05}{#1}"),He("\\redA","\\textcolor{##fca9a9}{#1}"),He("\\redB","\\textcolor{##ff8482}{#1}"),He("\\redC","\\textcolor{##f9685d}{#1}"),He("\\redD","\\textcolor{##e84d39}{#1}"),He("\\redE","\\textcolor{##bc2612}{#1}"),He("\\maroonA","\\textcolor{##ffbde0}{#1}"),He("\\maroonB","\\textcolor{##ff92c6}{#1}"),He("\\maroonC","\\textcolor{##ed5fa6}{#1}"),He("\\maroonD","\\textcolor{##ca337c}{#1}"),He("\\maroonE","\\textcolor{##9e034e}{#1}"),He("\\purpleA","\\textcolor{##ddd7ff}{#1}"),He("\\purpleB","\\textcolor{##c6b9fc}{#1}"),He("\\purpleC","\\textcolor{##aa87ff}{#1}"),He("\\purpleD","\\textcolor{##7854ab}{#1}"),He("\\purpleE","\\textcolor{##543b78}{#1}"),He("\\mintA","\\textcolor{##f5f9e8}{#1}"),He("\\mintB","\\textcolor{##edf2df}{#1}"),He("\\mintC","\\textcolor{##e0e5cc}{#1}"),He("\\grayA","\\textcolor{##f6f7f7}{#1}"),He("\\grayB","\\textcolor{##f0f1f2}{#1}"),He("\\grayC","\\textcolor{##e3e5e6}{#1}"),He("\\grayD","\\textcolor{##d6d8da}{#1}"),He("\\grayE","\\textcolor{##babec2}{#1}"),He("\\grayF","\\textcolor{##888d93}{#1}"),He("\\grayG","\\textcolor{##626569}{#1}"),He("\\grayH","\\textcolor{##3b3e40}{#1}"),He("\\grayI","\\textcolor{##21242c}{#1}"),He("\\kaBlue","\\textcolor{##314453}{#1}"),He("\\kaGreen","\\textcolor{##71B307}{#1}");var Ga={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Js=function(){function ne(d,f,m){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=f,this.expansionCount=0,this.feed(d),this.macros=new Qs(ja,f.macros),this.mode=m,this.stack=[]}var l=ne.prototype;return l.feed=function(f){this.lexer=new Za(f,this.settings)},l.switchMode=function(f){this.mode=f},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(f){this.stack.push(f)},l.pushTokens=function(f){var m;(m=this.stack).push.apply(m,f)},l.consumeSpaces=function(){for(;;){var f=this.future();if(f.text===" ")this.stack.pop();else break}},l.consumeArgs=function(f){for(var m=[],I=0;I<f;++I){this.consumeSpaces();var ee=this.popToken();if(ee.text==="{"){for(var Le=[],$e=1;$e!==0;){var Ye=this.popToken();if(Le.push(Ye),Ye.text==="{")++$e;else if(Ye.text==="}")--$e;else if(Ye.text==="EOF")throw new X("End of input in macro argument",ee)}Le.pop(),Le.reverse(),m[I]=Le}else{if(ee.text==="EOF")throw new X("End of input expecting macro argument");m[I]=[ee]}}return m},l.expandOnce=function(){var f=this.popToken(),m=f.text,I=this._getExpansion(m);if(I==null)return this.pushToken(f),f;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new X("Too many expansions: infinite loop or need to increase maxExpand setting");var ee=I.tokens;if(I.numArgs){var Le=this.consumeArgs(I.numArgs);ee=ee.slice();for(var $e=ee.length-1;$e>=0;--$e){var Ye=ee[$e];if(Ye.text==="#"){if($e===0)throw new X("Incomplete placeholder at end of macro body",Ye);if(Ye=ee[--$e],Ye.text==="#")ee.splice($e+1,1);else if(/^[1-9]$/.test(Ye.text)){var gt;(gt=ee).splice.apply(gt,[$e,2].concat(Le[+Ye.text-1]))}else throw new X("Not a valid argument number",Ye)}}}return this.pushTokens(ee),ee},l.expandAfterFuture=function(){return this.expandOnce(),this.future()},l.expandNextToken=function(){for(;;){var f=this.expandOnce();if(f instanceof Te)if(f.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},l.expandMacro=function(f){if(this.macros.get(f)){var m=[],I=this.stack.length;for(this.pushToken(new Te(f));this.stack.length>I;){var ee=this.expandOnce();ee instanceof Te&&m.push(this.stack.pop())}return m}},l.expandMacroAsText=function(f){var m=this.expandMacro(f);return m&&m.map(function(I){return I.text}).join("")},l._getExpansion=function(f){var m=this.macros.get(f);if(m==null)return m;var I=typeof m=="function"?m(this):m;if(typeof I=="string"){var ee=0;if(I.indexOf("#")!==-1)for(var Le=I.replace(/##/g,"");Le.indexOf("#"+(ee+1))!==-1;)++ee;for(var $e=new Za(I,this.settings),Ye=[],gt=$e.lex();gt.text!=="EOF";)Ye.push(gt),gt=$e.lex();Ye.reverse();var At={tokens:Ye,numArgs:ee};return At}return I},l.isDefined=function(f){return this.macros.has(f)||xa.hasOwnProperty(f)||_t.math.hasOwnProperty(f)||_t.text.hasOwnProperty(f)||Ga.hasOwnProperty(f)},ne}(),Ea={"\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"}},Os={\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"},Va=function(){function ne(d,f){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Js(d,f,this.mode),this.settings=f,this.leftrightDepth=0}var l=ne.prototype;return l.expect=function(f,m){if(m===void 0&&(m=!0),this.fetch().text!==f)throw new X("Expected '"+f+"', got '"+this.fetch().text+"'",this.fetch());m&&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(f){this.mode=f,this.gullet.switchMode(f)},l.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var f=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),f},l.parseExpression=function(f,m){for(var I=[];;){this.mode==="math"&&this.consumeSpaces();var ee=this.fetch();if(ne.endOfExpression.indexOf(ee.text)!==-1||m&&ee.text===m||f&&xa[ee.text]&&xa[ee.text].infix)break;var Le=this.parseAtom(m);if(!Le)break;I.push(Le)}return this.mode==="text"&&this.formLigatures(I),this.handleInfixNodes(I)},l.handleInfixNodes=function(f){for(var m=-1,I,ee=0;ee<f.length;ee++){var Le=Pn(f[ee],"infix");if(Le){if(m!==-1)throw new X("only one infix operator per group",Le.token);m=ee,I=Le.replaceWith}}if(m!==-1&&I){var $e,Ye,gt=f.slice(0,m),At=f.slice(m+1);gt.length===1&&gt[0].type==="ordgroup"?$e=gt[0]:$e={type:"ordgroup",mode:this.mode,body:gt},At.length===1&&At[0].type==="ordgroup"?Ye=At[0]:Ye={type:"ordgroup",mode:this.mode,body:At};var Ht;return I==="\\\\abovefrac"?Ht=this.callFunction(I,[$e,f[m],Ye],[]):Ht=this.callFunction(I,[$e,Ye],[]),[Ht]}else return f},l.handleSupSubscript=function(f){var m=this.fetch(),I=m.text;this.consume();var ee=this.parseGroup(f,!1,ne.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!ee)throw new X("Expected group after '"+I+"'",m);return ee},l.formatUnsupportedCmd=function(f){for(var m=[],I=0;I<f.length;I++)m.push({type:"textord",mode:"text",text:f[I]});var ee={type:"text",mode:this.mode,body:m},Le={type:"color",mode:this.mode,color:this.settings.errorColor,body:[ee]};return Le},l.parseAtom=function(f){var m=this.parseGroup("atom",!1,null,f);if(this.mode==="text")return m;for(var I,ee;;){this.consumeSpaces();var Le=this.fetch();if(Le.text==="\\limits"||Le.text==="\\nolimits"){var $e=Pn(m,"op");if($e){var Ye=Le.text==="\\limits";$e.limits=Ye,$e.alwaysHandleSupSub=!0}else if($e=Pn(m,"operatorname"),$e&&$e.alwaysHandleSupSub){var gt=Le.text==="\\limits";$e.limits=gt}else throw new X("Limit controls must follow a math operator",Le);this.consume()}else if(Le.text==="^"){if(I)throw new X("Double superscript",Le);I=this.handleSupSubscript("superscript")}else if(Le.text==="_"){if(ee)throw new X("Double subscript",Le);ee=this.handleSupSubscript("subscript")}else if(Le.text==="'"){if(I)throw new X("Double superscript",Le);var At={type:"textord",mode:this.mode,text:"\\prime"},Ht=[At];for(this.consume();this.fetch().text==="'";)Ht.push(At),this.consume();this.fetch().text==="^"&&Ht.push(this.handleSupSubscript("superscript")),I={type:"ordgroup",mode:this.mode,body:Ht}}else break}return I||ee?{type:"supsub",mode:this.mode,base:m,sup:I,sub:ee}:m},l.parseFunction=function(f,m,I){var ee=this.fetch(),Le=ee.text,$e=xa[Le];if(!$e)return null;if(this.consume(),I!=null&&$e.greediness<=I)throw new X("Got function '"+Le+"' with no arguments"+(m?" as "+m:""),ee);if(this.mode==="text"&&!$e.allowedInText)throw new X("Can't use function '"+Le+"' in text mode",ee);if(this.mode==="math"&&$e.allowedInMath===!1)throw new X("Can't use function '"+Le+"' in math mode",ee);var Ye=this.parseArguments(Le,$e),gt=Ye.args,At=Ye.optArgs;return this.callFunction(Le,gt,At,ee,f)},l.callFunction=function(f,m,I,ee,Le){var $e={funcName:f,parser:this,token:ee,breakOnTokenText:Le},Ye=xa[f];if(Ye&&Ye.handler)return Ye.handler($e,m,I);throw new X("No function handler for "+f)},l.parseArguments=function(f,m){var I=m.numArgs+m.numOptionalArgs;if(I===0)return{args:[],optArgs:[]};for(var ee=m.greediness,Le=[],$e=[],Ye=0;Ye<I;Ye++){var gt=m.argTypes&&m.argTypes[Ye],At=Ye<m.numOptionalArgs,Ht=Ye>0&&!At||Ye===0&&!At&&this.mode==="math",gn=this.parseGroupOfType("argument to '"+f+"'",gt,At,ee,Ht);if(!gn){if(At){$e.push(null);continue}throw new X("Expected group after '"+f+"'",this.fetch())}(At?$e:Le).push(gn)}return{args:Le,optArgs:$e}},l.parseGroupOfType=function(f,m,I,ee,Le){switch(m){case"color":return Le&&this.consumeSpaces(),this.parseColorGroup(I);case"size":return Le&&this.consumeSpaces(),this.parseSizeGroup(I);case"url":return this.parseUrlGroup(I,Le);case"math":case"text":return this.parseGroup(f,I,ee,void 0,m,Le);case"hbox":{var $e=this.parseGroup(f,I,ee,void 0,"text",Le);if(!$e)return $e;var Ye={type:"styling",mode:$e.mode,body:[$e],style:"text"};return Ye}case"raw":{if(Le&&this.consumeSpaces(),I&&this.fetch().text==="{")return null;var gt=this.parseStringGroup("raw",I,!0);if(gt)return{type:"raw",mode:"text",string:gt.text};throw new X("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(f,I,ee,void 0,void 0,Le);default:throw new X("Unknown group type as "+f,this.fetch())}},l.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},l.parseStringGroup=function(f,m,I){var ee=m?"[":"{",Le=m?"]":"}",$e=this.fetch();if($e.text!==ee){if(m)return null;if(I&&$e.text!=="EOF"&&/[^{}[\]]/.test($e.text))return this.consume(),$e}var Ye=this.mode;this.mode="text",this.expect(ee);for(var gt="",At=this.fetch(),Ht=0,gn=At,wn;(wn=this.fetch()).text!==Le||I&&Ht>0;){switch(wn.text){case"EOF":throw new X("Unexpected end of input in "+f,At.range(gn,gt));case ee:Ht++;break;case Le:Ht--;break}gn=wn,gt+=gn.text,this.consume()}return this.expect(Le),this.mode=Ye,At.range(gn,gt)},l.parseRegexGroup=function(f,m){var I=this.mode;this.mode="text";for(var ee=this.fetch(),Le=ee,$e="",Ye;(Ye=this.fetch()).text!=="EOF"&&f.test($e+Ye.text);)Le=Ye,$e+=Le.text,this.consume();if($e==="")throw new X("Invalid "+m+": '"+ee.text+"'",ee);return this.mode=I,ee.range(Le,$e)},l.parseColorGroup=function(f){var m=this.parseStringGroup("color",f);if(!m)return null;var I=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(m.text);if(!I)throw new X("Invalid color: '"+m.text+"'",m);var ee=I[0];return/^[0-9a-f]{6}$/i.test(ee)&&(ee="#"+ee),{type:"color-token",mode:this.mode,color:ee}},l.parseSizeGroup=function(f){var m,I=!1;if(!f&&this.fetch().text!=="{"?m=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):m=this.parseStringGroup("size",f),!m)return null;!f&&m.text.length===0&&(m.text="0pt",I=!0);var ee=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(m.text);if(!ee)throw new X("Invalid size: '"+m.text+"'",m);var Le={number:+(ee[1]+ee[2]),unit:ee[3]};if(!Qe(Le))throw new X("Invalid unit: '"+Le.unit+"'",m);return{type:"size",mode:this.mode,value:Le,isBlank:I}},l.parseUrlGroup=function(f,m){this.gullet.lexer.setCatcode("%",13);var I=this.parseStringGroup("url",f,!0);if(this.gullet.lexer.setCatcode("%",14),!I)return null;var ee=I.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:ee}},l.parseGroup=function(f,m,I,ee,Le,$e){var Ye=this.mode;Le&&this.switchMode(Le),$e&&this.consumeSpaces();var gt=this.fetch(),At=gt.text,Ht;if(m?At==="[":At==="{"||At==="\\begingroup"){this.consume();var gn=ne.endOfGroup[At];this.gullet.beginGroup();var wn=this.parseExpression(!1,gn),Un=this.fetch();this.expect(gn),this.gullet.endGroup(),Ht={type:"ordgroup",mode:this.mode,loc:ce.range(gt,Un),body:wn,semisimple:At==="\\begingroup"||void 0}}else if(m)Ht=null;else if(Ht=this.parseFunction(ee,f,I)||this.parseSymbol(),Ht==null&&At[0]==="\\"&&!Ga.hasOwnProperty(At)){if(this.settings.throwOnError)throw new X("Undefined control sequence: "+At,gt);Ht=this.formatUnsupportedCmd(At),this.consume()}return Le&&this.switchMode(Ye),Ht},l.formLigatures=function(f){for(var m=f.length-1,I=0;I<m;++I){var ee=f[I],Le=ee.text;Le==="-"&&f[I+1].text==="-"&&(I+1<m&&f[I+2].text==="-"?(f.splice(I,3,{type:"textord",mode:"text",loc:ce.range(ee,f[I+2]),text:"---"}),m-=2):(f.splice(I,2,{type:"textord",mode:"text",loc:ce.range(ee,f[I+1]),text:"--"}),m-=1)),(Le==="'"||Le==="`")&&f[I+1].text===Le&&(f.splice(I,2,{type:"textord",mode:"text",loc:ce.range(ee,f[I+1]),text:Le+Le}),m-=1)}},l.parseSymbol=function(){var f=this.fetch(),m=f.text;if(/^\\verb[^a-zA-Z]/.test(m)){this.consume();var I=m.slice(5),ee=I.charAt(0)==="*";if(ee&&(I=I.slice(1)),I.length<2||I.charAt(0)!==I.slice(-1))throw new X(`\\verb assertion failed --
please report what input caused this bug`);return I=I.slice(1,-1),{type:"verb",mode:"text",body:I,star:ee}}Os.hasOwnProperty(m[0])&&!_t[this.mode][m[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+m[0]+'" used in math mode',f),m=Os[m[0]]+m.substr(1));var Le=Ei.exec(m);Le&&(m=m.substring(0,Le.index),m==="i"?m="\u0131":m==="j"&&(m="\u0237"));var $e;if(_t[this.mode][m]){this.settings.strict&&this.mode==="math"&&Bt.indexOf(m)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+m[0]+'" used in math mode',f);var Ye=_t[this.mode][m].group,gt=ce.range(f),At;if(ut.hasOwnProperty(Ye)){var Ht=Ye;At={type:"atom",mode:this.mode,family:Ht,loc:gt,text:m}}else At={type:Ye,mode:this.mode,loc:gt,text:m};$e=At}else if(m.charCodeAt(0)>=128)this.settings.strict&&(ze(m.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+m[0]+'" used in math mode',f):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+m[0]+'"'+(" ("+m.charCodeAt(0)+")"),f)),$e={type:"textord",mode:"text",loc:ce.range(f),text:m};else return null;if(this.consume(),Le)for(var gn=0;gn<Le[0].length;gn++){var wn=Le[0][gn];if(!Ea[wn])throw new X("Unknown accent ' "+wn+"'",f);var Un=Ea[wn][this.mode];if(!Un)throw new X("Accent "+wn+" unsupported in "+this.mode+" mode",f);$e={type:"accent",mode:this.mode,loc:ce.range(f),label:Un,isStretchy:!1,isShifty:!0,base:$e}}return $e},ne}();Va.endOfExpression=["}","\\endgroup","\\end","\\right","&"],Va.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},Va.SUPSUB_GREEDINESS=1;var ks=function(l,d){if(!(typeof l=="string"||l instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var f=new Va(l,d);delete f.gullet.macros.current["\\df@tag"];var m=f.parse();if(f.gullet.macros.get("\\df@tag")){if(!d.displayMode)throw new X("\\tag works only in display equations");f.gullet.feed("\\df@tag"),m=[{type:"tag",mode:"text",body:m,tag:f.parse()}]}return m},hs=ks,Ps=function(l,d,f){d.textContent="";var m=Ni(l,f).toNode();d.appendChild(m)};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."),Ps=function(){throw new X("KaTeX doesn't work in quirks mode.")});var wa=function(l,d){var f=Ni(l,d).toMarkup();return f},ps=function(l,d){var f=new N(d);return hs(l,f)},Oa=function(l,d,f){if(f.throwOnError||!(l instanceof X))throw l;var m=Ke.makeSpan(["katex-error"],[new ae(d)]);return m.setAttribute("title",l.toString()),m.setAttribute("style","color:"+f.errorColor),m},Ni=function(l,d){var f=new N(d);try{var m=hs(l,f);return Tr(m,l,f)}catch(I){return Oa(I,l,f)}},qs=function(l,d){var f=new N(d);try{var m=hs(l,f);return Rr(m,l,f)}catch(I){return Oa(I,l,f)}},Ms={version:"0.11.1",render:Ps,renderToString:wa,ParseError:X,__parse:ps,__renderToDomTree:Ni,__renderToHTMLTree:qs,__setFontMetrics:Xe,__defineSymbol:w,__defineMacro:He,__domTree:{Span:q,Anchor:z,SymbolNode:ae,SvgNode:J,PathNode:oe,LineNode:de}},eo=p.default=Ms}]).default})},32834:function(Qt){(function(et,p){Qt.exports=p()})(this,function(){"use strict";function et(Fe,We){for(var Je=0;Je<We.length;Je++){var ue=We[Je];ue.enumerable=ue.enumerable||!1,ue.configurable=!0,"value"in ue&&(ue.writable=!0),Object.defineProperty(Fe,ue.key,ue)}}function p(Fe,We,Je){return We&&et(Fe.prototype,We),Je&&et(Fe,Je),Fe}function M(Fe,We){if(Fe){if(typeof Fe=="string")return Y(Fe,We);var Je=Object.prototype.toString.call(Fe).slice(8,-1);if(Je==="Object"&&Fe.constructor&&(Je=Fe.constructor.name),Je==="Map"||Je==="Set")return Array.from(Fe);if(Je==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Je))return Y(Fe,We)}}function Y(Fe,We){(We==null||We>Fe.length)&&(We=Fe.length);for(var Je=0,ue=new Array(We);Je<We;Je++)ue[Je]=Fe[Je];return ue}function ce(Fe,We){var Je=typeof Symbol!="undefined"&&Fe[Symbol.iterator]||Fe["@@iterator"];if(Je)return(Je=Je.call(Fe)).next.bind(Je);if(Array.isArray(Fe)||(Je=M(Fe))||We&&Fe&&typeof Fe.length=="number"){Je&&(Fe=Je);var ue=0;return function(){return ue>=Fe.length?{done:!0}:{done:!1,value:Fe[ue++]}}}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 Te={exports:{}};function j(){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 X(Fe){Te.exports.defaults=Fe}Te.exports={defaults:j(),getDefaults:j,changeDefaults:X};var ve=/[&<>"']/,_e=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,A=/[<>"']|&(?!#?\w+;)/g,L={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},v=function(We){return L[We]};function u(Fe,We){if(We){if(ve.test(Fe))return Fe.replace(_e,v)}else if(a.test(Fe))return Fe.replace(A,v);return Fe}var y=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function b(Fe){return Fe.replace(y,function(We,Je){return Je=Je.toLowerCase(),Je==="colon"?":":Je.charAt(0)==="#"?Je.charAt(1)==="x"?String.fromCharCode(parseInt(Je.substring(2),16)):String.fromCharCode(+Je.substring(1)):""})}var k=/(^|[^\[])\^/g;function se(Fe,We){Fe=Fe.source||Fe,We=We||"";var Je={replace:function(W,we){return we=we.source||we,we=we.replace(k,"$1"),Fe=Fe.replace(W,we),Je},getRegex:function(){return new RegExp(Fe,We)}};return Je}var P=/[^\w:]/g,N=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function V(Fe,We,Je){if(Fe){var ue;try{ue=decodeURIComponent(b(Je)).replace(P,"").toLowerCase()}catch(W){return null}if(ue.indexOf("javascript:")===0||ue.indexOf("vbscript:")===0||ue.indexOf("data:")===0)return null}We&&!N.test(Je)&&(Je=B(We,Je));try{Je=encodeURI(Je).replace(/%25/g,"%")}catch(W){return null}return Je}var K={},x=/^[^:]+:\/*[^/]*$/,T=/^([^:]+:)[\s\S]*$/,$=/^([^:]+:\/*[^/]*)[\s\S]*$/;function B(Fe,We){K[" "+Fe]||(x.test(Fe)?K[" "+Fe]=Fe+"/":K[" "+Fe]=he(Fe,"/",!0)),Fe=K[" "+Fe];var Je=Fe.indexOf(":")===-1;return We.substring(0,2)==="//"?Je?We:Fe.replace(T,"$1")+We:We.charAt(0)==="/"?Je?We:Fe.replace($,"$1")+We:Fe+We}var fe={exec:function(){}};function ye(Fe){for(var We=1,Je,ue;We<arguments.length;We++){Je=arguments[We];for(ue in Je)Object.prototype.hasOwnProperty.call(Je,ue)&&(Fe[ue]=Je[ue])}return Fe}function Re(Fe,We){var Je=Fe.replace(/\|/g,function(we,Be,U){for(var at=!1,Ee=Be;--Ee>=0&&U[Ee]==="\\";)at=!at;return at?"|":" |"}),ue=Je.split(/ \|/),W=0;if(ue.length>We)ue.splice(We);else for(;ue.length<We;)ue.push("");for(;W<ue.length;W++)ue[W]=ue[W].trim().replace(/\\\|/g,"|");return ue}function he(Fe,We,Je){var ue=Fe.length;if(ue===0)return"";for(var W=0;W<ue;){var we=Fe.charAt(ue-W-1);if(we===We&&!Je)W++;else if(we!==We&&Je)W++;else break}return Fe.substr(0,ue-W)}function G(Fe,We){if(Fe.indexOf(We[1])===-1)return-1;for(var Je=Fe.length,ue=0,W=0;W<Je;W++)if(Fe[W]==="\\")W++;else if(Fe[W]===We[0])ue++;else if(Fe[W]===We[1]&&(ue--,ue<0))return W;return-1}function F(Fe){Fe&&Fe.sanitize&&!Fe.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 le(Fe,We){if(We<1)return"";for(var Je="";We>1;)We&1&&(Je+=Fe),We>>=1,Fe+=Fe;return Je+Fe}var D={escape:u,unescape:b,edit:se,cleanUrl:V,resolveUrl:B,noopTest:fe,merge:ye,splitCells:Re,rtrim:he,findClosingBracket:G,checkSanitizeDeprecation:F,repeatString:le},Q=Te.exports.defaults,H=D.rtrim,g=D.splitCells,E=D.escape,Z=D.findClosingBracket;function pe(Fe,We,Je){var ue=We.href,W=We.title?E(We.title):null,we=Fe[1].replace(/\\([\[\]])/g,"$1");return Fe[0].charAt(0)!=="!"?{type:"link",raw:Je,href:ue,title:W,text:we}:{type:"image",raw:Je,href:ue,title:W,text:E(we)}}function ze(Fe,We){var Je=Fe.match(/^(\s+)(?:```)/);if(Je===null)return We;var ue=Je[1];return We.split(`
`).map(function(W){var we=W.match(/^\s+/);if(we===null)return W;var Be=we[0];return Be.length>=ue.length?W.slice(ue.length):W}).join(`
`)}var Ge=function(){function Fe(Je){this.options=Je||Q}var We=Fe.prototype;return We.space=function(ue){var W=this.rules.block.newline.exec(ue);if(W)return W[0].length>1?{type:"space",raw:W[0]}:{raw:`
`}},We.code=function(ue){var W=this.rules.block.code.exec(ue);if(W){var we=W[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:W[0],codeBlockStyle:"indented",text:this.options.pedantic?we:H(we,`
`)}}},We.fences=function(ue){var W=this.rules.block.fences.exec(ue);if(W){var we=W[0],Be=ze(we,W[3]||"");return{type:"code",raw:we,lang:W[2]?W[2].trim():W[2],text:Be}}},We.heading=function(ue){var W=this.rules.block.heading.exec(ue);if(W){var we=W[2].trim();if(/#$/.test(we)){var Be=H(we,"#");(this.options.pedantic||!Be||/ $/.test(Be))&&(we=Be.trim())}return{type:"heading",raw:W[0],depth:W[1].length,text:we}}},We.nptable=function(ue){var W=this.rules.block.nptable.exec(ue);if(W){var we={type:"table",header:g(W[1].replace(/^ *| *\| *$/g,"")),align:W[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:W[3]?W[3].replace(/\n$/,"").split(`
`):[],raw:W[0]};if(we.header.length===we.align.length){var Be=we.align.length,U;for(U=0;U<Be;U++)/^ *-+: *$/.test(we.align[U])?we.align[U]="right":/^ *:-+: *$/.test(we.align[U])?we.align[U]="center":/^ *:-+ *$/.test(we.align[U])?we.align[U]="left":we.align[U]=null;for(Be=we.cells.length,U=0;U<Be;U++)we.cells[U]=g(we.cells[U],we.header.length);return we}}},We.hr=function(ue){var W=this.rules.block.hr.exec(ue);if(W)return{type:"hr",raw:W[0]}},We.blockquote=function(ue){var W=this.rules.block.blockquote.exec(ue);if(W){var we=W[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:W[0],text:we}}},We.list=function(ue){var W=this.rules.block.list.exec(ue);if(W){var we=W[0],Be=W[2],U=Be.length>1,at={type:"list",raw:we,ordered:U,start:U?+Be.slice(0,-1):"",loose:!1,items:[]},Ee=W[0].match(this.rules.block.item),St=!1,Pt,zt,on,It,Vt,Ue,ft,Ct,Ne,Ae=Ee.length;on=this.rules.block.listItemStart.exec(Ee[0]);for(var st=0;st<Ae;st++){if(Pt=Ee[st],we=Pt,this.options.pedantic||(Ne=Pt.match(new RegExp("\\n\\s*\\n {0,"+(on[0].length-1)+"}\\S")),Ne&&(Vt=Pt.length-Ne.index+Ee.slice(st+1).join(`
`).length,at.raw=at.raw.substring(0,at.raw.length-Vt),Pt=Pt.substring(0,Ne.index),we=Pt,Ae=st+1)),st!==Ae-1){if(It=this.rules.block.listItemStart.exec(Ee[st+1]),this.options.pedantic?It[1].length>on[1].length:It[1].length>=on[0].length||It[1].length>3){Ee.splice(st,2,Ee[st]+(!this.options.pedantic&&It[1].length<on[0].length&&!Ee[st].match(/\n$/)?"":`
`)+Ee[st+1]),st--,Ae--;continue}else(!this.options.pedantic||this.options.smartLists?It[2][It[2].length-1]!==Be[Be.length-1]:U===(It[2].length===1))&&(Vt=Ee.slice(st+1).join(`
`).length,at.raw=at.raw.substring(0,at.raw.length-Vt),st=Ae-1);on=It}zt=Pt.length,Pt=Pt.replace(/^ *([*+-]|\d+[.)]) ?/,""),~Pt.indexOf(`
`)&&(zt-=Pt.length,Pt=this.options.pedantic?Pt.replace(/^ {1,4}/gm,""):Pt.replace(new RegExp("^ {1,"+zt+"}","gm"),"")),Pt=H(Pt,`
`),st!==Ae-1&&(we=we+`
`),Ue=St||/\n\n(?!\s*$)/.test(we),st!==Ae-1&&(St=we.slice(-2)===`
`,Ue||(Ue=St)),Ue&&(at.loose=!0),this.options.gfm&&(ft=/^\[[ xX]\] /.test(Pt),Ct=void 0,ft&&(Ct=Pt[1]!==" ",Pt=Pt.replace(/^\[[ xX]\] +/,""))),at.items.push({type:"list_item",raw:we,task:ft,checked:Ct,loose:Ue,text:Pt})}return at}},We.html=function(ue){var W=this.rules.block.html.exec(ue);if(W)return{type:this.options.sanitize?"paragraph":"html",raw:W[0],pre:!this.options.sanitizer&&(W[1]==="pre"||W[1]==="script"||W[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(W[0]):E(W[0]):W[0]}},We.def=function(ue){var W=this.rules.block.def.exec(ue);if(W){W[3]&&(W[3]=W[3].substring(1,W[3].length-1));var we=W[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:we,raw:W[0],href:W[2],title:W[3]}}},We.table=function(ue){var W=this.rules.block.table.exec(ue);if(W){var we={type:"table",header:g(W[1].replace(/^ *| *\| *$/g,"")),align:W[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:W[3]?W[3].replace(/\n$/,"").split(`
`):[]};if(we.header.length===we.align.length){we.raw=W[0];var Be=we.align.length,U;for(U=0;U<Be;U++)/^ *-+: *$/.test(we.align[U])?we.align[U]="right":/^ *:-+: *$/.test(we.align[U])?we.align[U]="center":/^ *:-+ *$/.test(we.align[U])?we.align[U]="left":we.align[U]=null;for(Be=we.cells.length,U=0;U<Be;U++)we.cells[U]=g(we.cells[U].replace(/^ *\| *| *\| *$/g,""),we.header.length);return we}}},We.lheading=function(ue){var W=this.rules.block.lheading.exec(ue);if(W)return{type:"heading",raw:W[0],depth:W[2].charAt(0)==="="?1:2,text:W[1]}},We.paragraph=function(ue){var W=this.rules.block.paragraph.exec(ue);if(W)return{type:"paragraph",raw:W[0],text:W[1].charAt(W[1].length-1)===`
`?W[1].slice(0,-1):W[1]}},We.text=function(ue){var W=this.rules.block.text.exec(ue);if(W)return{type:"text",raw:W[0],text:W[0]}},We.escape=function(ue){var W=this.rules.inline.escape.exec(ue);if(W)return{type:"escape",raw:W[0],text:E(W[1])}},We.tag=function(ue,W,we){var Be=this.rules.inline.tag.exec(ue);if(Be)return!W&&/^<a /i.test(Be[0])?W=!0:W&&/^<\/a>/i.test(Be[0])&&(W=!1),!we&&/^<(pre|code|kbd|script)(\s|>)/i.test(Be[0])?we=!0:we&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Be[0])&&(we=!1),{type:this.options.sanitize?"text":"html",raw:Be[0],inLink:W,inRawBlock:we,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Be[0]):E(Be[0]):Be[0]}},We.link=function(ue){var W=this.rules.inline.link.exec(ue);if(W){var we=W[2].trim();if(!this.options.pedantic&&/^</.test(we)){if(!/>$/.test(we))return;var Be=H(we.slice(0,-1),"\\");if((we.length-Be.length)%2===0)return}else{var U=Z(W[2],"()");if(U>-1){var at=W[0].indexOf("!")===0?5:4,Ee=at+W[1].length+U;W[2]=W[2].substring(0,U),W[0]=W[0].substring(0,Ee).trim(),W[3]=""}}var St=W[2],Pt="";if(this.options.pedantic){var zt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(St);zt&&(St=zt[1],Pt=zt[3])}else Pt=W[3]?W[3].slice(1,-1):"";return St=St.trim(),/^</.test(St)&&(this.options.pedantic&&!/>$/.test(we)?St=St.slice(1):St=St.slice(1,-1)),pe(W,{href:St&&St.replace(this.rules.inline._escapes,"$1"),title:Pt&&Pt.replace(this.rules.inline._escapes,"$1")},W[0])}},We.reflink=function(ue,W){var we;if((we=this.rules.inline.reflink.exec(ue))||(we=this.rules.inline.nolink.exec(ue))){var Be=(we[2]||we[1]).replace(/\s+/g," ");if(Be=W[Be.toLowerCase()],!Be||!Be.href){var U=we[0].charAt(0);return{type:"text",raw:U,text:U}}return pe(we,Be,we[0])}},We.emStrong=function(ue,W,we){we===void 0&&(we="");var Be=this.rules.inline.emStrong.lDelim.exec(ue);if(Be&&!(Be[3]&&we.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var U=Be[1]||Be[2]||"";if(!U||U&&(we===""||this.rules.inline.punctuation.exec(we))){var at=Be[0].length-1,Ee,St,Pt=at,zt=0,on=Be[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(on.lastIndex=0,W=W.slice(-1*ue.length+at);(Be=on.exec(W))!=null;)if(Ee=Be[1]||Be[2]||Be[3]||Be[4]||Be[5]||Be[6],!!Ee){if(St=Ee.length,Be[3]||Be[4]){Pt+=St;continue}else if((Be[5]||Be[6])&&at%3&&!((at+St)%3)){zt+=St;continue}if(Pt-=St,!(Pt>0))return St=Math.min(St,St+Pt+zt),Math.min(at,St)%2?{type:"em",raw:ue.slice(0,at+Be.index+St+1),text:ue.slice(1,at+Be.index+St)}:{type:"strong",raw:ue.slice(0,at+Be.index+St+1),text:ue.slice(2,at+Be.index+St-1)}}}}},We.codespan=function(ue){var W=this.rules.inline.code.exec(ue);if(W){var we=W[2].replace(/\n/g," "),Be=/[^ ]/.test(we),U=/^ /.test(we)&&/ $/.test(we);return Be&&U&&(we=we.substring(1,we.length-1)),we=E(we,!0),{type:"codespan",raw:W[0],text:we}}},We.br=function(ue){var W=this.rules.inline.br.exec(ue);if(W)return{type:"br",raw:W[0]}},We.del=function(ue){var W=this.rules.inline.del.exec(ue);if(W)return{type:"del",raw:W[0],text:W[2]}},We.autolink=function(ue,W){var we=this.rules.inline.autolink.exec(ue);if(we){var Be,U;return we[2]==="@"?(Be=E(this.options.mangle?W(we[1]):we[1]),U="mailto:"+Be):(Be=E(we[1]),U=Be),{type:"link",raw:we[0],text:Be,href:U,tokens:[{type:"text",raw:Be,text:Be}]}}},We.url=function(ue,W){var we;if(we=this.rules.inline.url.exec(ue)){var Be,U;if(we[2]==="@")Be=E(this.options.mangle?W(we[0]):we[0]),U="mailto:"+Be;else{var at;do at=we[0],we[0]=this.rules.inline._backpedal.exec(we[0])[0];while(at!==we[0]);Be=E(we[0]),we[1]==="www."?U="http://"+Be:U=Be}return{type:"link",raw:we[0],text:Be,href:U,tokens:[{type:"text",raw:Be,text:Be}]}}},We.inlineText=function(ue,W,we){var Be=this.rules.inline.text.exec(ue);if(Be){var U;return W?U=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Be[0]):E(Be[0]):Be[0]:U=E(this.options.smartypants?we(Be[0]):Be[0]),{type:"text",raw:Be[0],text:U}}},Fe}(),je=D.noopTest,Ve=D.edit,mt=D.merge,pt={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:je,table:je,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};pt._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,pt._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,pt.def=Ve(pt.def).replace("label",pt._label).replace("title",pt._title).getRegex(),pt.bullet=/(?:[*+-]|\d{1,9}[.)])/,pt.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,pt.item=Ve(pt.item,"gm").replace(/bull/g,pt.bullet).getRegex(),pt.listItemStart=Ve(/^( *)(bull) */).replace("bull",pt.bullet).getRegex(),pt.list=Ve(pt.list).replace(/bull/g,pt.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+pt.def.source+")").getRegex(),pt._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",pt._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,pt.html=Ve(pt.html,"i").replace("comment",pt._comment).replace("tag",pt._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),pt.paragraph=Ve(pt._paragraph).replace("hr",pt.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",pt._tag).getRegex(),pt.blockquote=Ve(pt.blockquote).replace("paragraph",pt.paragraph).getRegex(),pt.normal=mt({},pt),pt.gfm=mt({},pt.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*|$)"}),pt.gfm.nptable=Ve(pt.gfm.nptable).replace("hr",pt.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",pt._tag).getRegex(),pt.gfm.table=Ve(pt.gfm.table).replace("hr",pt.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",pt._tag).getRegex(),pt.pedantic=mt({},pt.normal,{html:Ve(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",pt._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:je,paragraph:Ve(pt.normal._paragraph).replace("hr",pt.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",pt.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var nt={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:je,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:je,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};nt._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",nt.punctuation=Ve(nt.punctuation).replace(/punctuation/g,nt._punctuation).getRegex(),nt.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,nt.escapedEmSt=/\\\*|\\_/g,nt._comment=Ve(pt._comment).replace("(?:-->|$)","-->").getRegex(),nt.emStrong.lDelim=Ve(nt.emStrong.lDelim).replace(/punct/g,nt._punctuation).getRegex(),nt.emStrong.rDelimAst=Ve(nt.emStrong.rDelimAst,"g").replace(/punct/g,nt._punctuation).getRegex(),nt.emStrong.rDelimUnd=Ve(nt.emStrong.rDelimUnd,"g").replace(/punct/g,nt._punctuation).getRegex(),nt._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,nt._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,nt._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])?)+(?![-_])/,nt.autolink=Ve(nt.autolink).replace("scheme",nt._scheme).replace("email",nt._email).getRegex(),nt._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,nt.tag=Ve(nt.tag).replace("comment",nt._comment).replace("attribute",nt._attribute).getRegex(),nt._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,nt._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,nt._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,nt.link=Ve(nt.link).replace("label",nt._label).replace("href",nt._href).replace("title",nt._title).getRegex(),nt.reflink=Ve(nt.reflink).replace("label",nt._label).getRegex(),nt.reflinkSearch=Ve(nt.reflinkSearch,"g").replace("reflink",nt.reflink).replace("nolink",nt.nolink).getRegex(),nt.normal=mt({},nt),nt.pedantic=mt({},nt.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:Ve(/^!?\[(label)\]\((.*?)\)/).replace("label",nt._label).getRegex(),reflink:Ve(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",nt._label).getRegex()}),nt.gfm=mt({},nt.normal,{escape:Ve(nt.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),nt.gfm.url=Ve(nt.gfm.url,"i").replace("email",nt.gfm._extended_email).getRegex(),nt.breaks=mt({},nt.gfm,{br:Ve(nt.br).replace("{2,}","*").getRegex(),text:Ve(nt.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Gt={block:pt,inline:nt},Jt=Ge,sn=Te.exports.defaults,Ut=Gt.block,Xt=Gt.inline,it=D.repeatString;function te(Fe){return Fe.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 ge(Fe){var We="",Je,ue,W=Fe.length;for(Je=0;Je<W;Je++)ue=Fe.charCodeAt(Je),Math.random()>.5&&(ue="x"+ue.toString(16)),We+="&#"+ue+";";return We}var q=function(){function Fe(Je){this.tokens=[],this.tokens.links=Object.create(null),this.options=Je||sn,this.options.tokenizer=this.options.tokenizer||new Jt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var ue={block:Ut.normal,inline:Xt.normal};this.options.pedantic?(ue.block=Ut.pedantic,ue.inline=Xt.pedantic):this.options.gfm&&(ue.block=Ut.gfm,this.options.breaks?ue.inline=Xt.breaks:ue.inline=Xt.gfm),this.tokenizer.rules=ue}Fe.lex=function(ue,W){var we=new Fe(W);return we.lex(ue)},Fe.lexInline=function(ue,W){var we=new Fe(W);return we.inlineTokens(ue)};var We=Fe.prototype;return We.lex=function(ue){return ue=ue.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(ue,this.tokens,!0),this.inline(this.tokens),this.tokens},We.blockTokens=function(ue,W,we){W===void 0&&(W=[]),we===void 0&&(we=!0),this.options.pedantic&&(ue=ue.replace(/^ +$/gm,""));for(var Be,U,at,Ee;ue;){if(Be=this.tokenizer.space(ue)){ue=ue.substring(Be.raw.length),Be.type&&W.push(Be);continue}if(Be=this.tokenizer.code(ue)){ue=ue.substring(Be.raw.length),Ee=W[W.length-1],Ee&&Ee.type==="paragraph"?(Ee.raw+=`
`+Be.raw,Ee.text+=`
`+Be.text):W.push(Be);continue}if(Be=this.tokenizer.fences(ue)){ue=ue.substring(Be.raw.length),W.push(Be);continue}if(Be=this.tokenizer.heading(ue)){ue=ue.substring(Be.raw.length),W.push(Be);continue}if(Be=this.tokenizer.nptable(ue)){ue=ue.substring(Be.raw.length),W.push(Be);continue}if(Be=this.tokenizer.hr(ue)){ue=ue.substring(Be.raw.length),W.push(Be);continue}if(Be=this.tokenizer.blockquote(ue)){ue=ue.substring(Be.raw.length),Be.tokens=this.blockTokens(Be.text,[],we),W.push(Be);continue}if(Be=this.tokenizer.list(ue)){for(ue=ue.substring(Be.raw.length),at=Be.items.length,U=0;U<at;U++)Be.items[U].tokens=this.blockTokens(Be.items[U].text,[],!1);W.push(Be);continue}if(Be=this.tokenizer.html(ue)){ue=ue.substring(Be.raw.length),W.push(Be);continue}if(we&&(Be=this.tokenizer.def(ue))){ue=ue.substring(Be.raw.length),this.tokens.links[Be.tag]||(this.tokens.links[Be.tag]={href:Be.href,title:Be.title});continue}if(Be=this.tokenizer.table(ue)){ue=ue.substring(Be.raw.length),W.push(Be);continue}if(Be=this.tokenizer.lheading(ue)){ue=ue.substring(Be.raw.length),W.push(Be);continue}if(we&&(Be=this.tokenizer.paragraph(ue))){ue=ue.substring(Be.raw.length),W.push(Be);continue}if(Be=this.tokenizer.text(ue)){ue=ue.substring(Be.raw.length),Ee=W[W.length-1],Ee&&Ee.type==="text"?(Ee.raw+=`
`+Be.raw,Ee.text+=`
`+Be.text):W.push(Be);continue}if(ue){var St="Infinite loop on byte: "+ue.charCodeAt(0);if(this.options.silent){console.error(St);break}else throw new Error(St)}}return W},We.inline=function(ue){var W,we,Be,U,at,Ee,St=ue.length;for(W=0;W<St;W++)switch(Ee=ue[W],Ee.type){case"paragraph":case"text":case"heading":{Ee.tokens=[],this.inlineTokens(Ee.text,Ee.tokens);break}case"table":{for(Ee.tokens={header:[],cells:[]},U=Ee.header.length,we=0;we<U;we++)Ee.tokens.header[we]=[],this.inlineTokens(Ee.header[we],Ee.tokens.header[we]);for(U=Ee.cells.length,we=0;we<U;we++)for(at=Ee.cells[we],Ee.tokens.cells[we]=[],Be=0;Be<at.length;Be++)Ee.tokens.cells[we][Be]=[],this.inlineTokens(at[Be],Ee.tokens.cells[we][Be]);break}case"blockquote":{this.inline(Ee.tokens);break}case"list":{for(U=Ee.items.length,we=0;we<U;we++)this.inline(Ee.items[we].tokens);break}}return ue},We.inlineTokens=function(ue,W,we,Be){W===void 0&&(W=[]),we===void 0&&(we=!1),Be===void 0&&(Be=!1);var U,at,Ee=ue,St,Pt,zt;if(this.tokens.links){var on=Object.keys(this.tokens.links);if(on.length>0)for(;(St=this.tokenizer.rules.inline.reflinkSearch.exec(Ee))!=null;)on.includes(St[0].slice(St[0].lastIndexOf("[")+1,-1))&&(Ee=Ee.slice(0,St.index)+"["+it("a",St[0].length-2)+"]"+Ee.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(St=this.tokenizer.rules.inline.blockSkip.exec(Ee))!=null;)Ee=Ee.slice(0,St.index)+"["+it("a",St[0].length-2)+"]"+Ee.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(St=this.tokenizer.rules.inline.escapedEmSt.exec(Ee))!=null;)Ee=Ee.slice(0,St.index)+"++"+Ee.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;ue;){if(Pt||(zt=""),Pt=!1,U=this.tokenizer.escape(ue)){ue=ue.substring(U.raw.length),W.push(U);continue}if(U=this.tokenizer.tag(ue,we,Be)){ue=ue.substring(U.raw.length),we=U.inLink,Be=U.inRawBlock;var It=W[W.length-1];It&&U.type==="text"&&It.type==="text"?(It.raw+=U.raw,It.text+=U.text):W.push(U);continue}if(U=this.tokenizer.link(ue)){ue=ue.substring(U.raw.length),U.type==="link"&&(U.tokens=this.inlineTokens(U.text,[],!0,Be)),W.push(U);continue}if(U=this.tokenizer.reflink(ue,this.tokens.links)){ue=ue.substring(U.raw.length);var Vt=W[W.length-1];U.type==="link"?(U.tokens=this.inlineTokens(U.text,[],!0,Be),W.push(U)):Vt&&U.type==="text"&&Vt.type==="text"?(Vt.raw+=U.raw,Vt.text+=U.text):W.push(U);continue}if(U=this.tokenizer.emStrong(ue,Ee,zt)){ue=ue.substring(U.raw.length),U.tokens=this.inlineTokens(U.text,[],we,Be),W.push(U);continue}if(U=this.tokenizer.codespan(ue)){ue=ue.substring(U.raw.length),W.push(U);continue}if(U=this.tokenizer.br(ue)){ue=ue.substring(U.raw.length),W.push(U);continue}if(U=this.tokenizer.del(ue)){ue=ue.substring(U.raw.length),U.tokens=this.inlineTokens(U.text,[],we,Be),W.push(U);continue}if(U=this.tokenizer.autolink(ue,ge)){ue=ue.substring(U.raw.length),W.push(U);continue}if(!we&&(U=this.tokenizer.url(ue,ge))){ue=ue.substring(U.raw.length),W.push(U);continue}if(U=this.tokenizer.inlineText(ue,Be,te)){ue=ue.substring(U.raw.length),U.raw.slice(-1)!=="_"&&(zt=U.raw.slice(-1)),Pt=!0,at=W[W.length-1],at&&at.type==="text"?(at.raw+=U.raw,at.text+=U.text):W.push(U);continue}if(ue){var Ue="Infinite loop on byte: "+ue.charCodeAt(0);if(this.options.silent){console.error(Ue);break}else throw new Error(Ue)}}return W},p(Fe,null,[{key:"rules",get:function(){return{block:Ut,inline:Xt}}}]),Fe}(),z=Te.exports.defaults,De=D.cleanUrl,O=D.escape,ae=function(){function Fe(Je){this.options=Je||z}var We=Fe.prototype;return We.code=function(ue,W,we){var Be=(W||"").match(/\S*/)[0];if(this.options.highlight){var U=this.options.highlight(ue,Be);U!=null&&U!==ue&&(we=!0,ue=U)}return ue=ue.replace(/\n$/,"")+`
`,Be?'<pre><code class="'+this.options.langPrefix+O(Be,!0)+'">'+(we?ue:O(ue,!0))+`</code></pre>
`:"<pre><code>"+(we?ue:O(ue,!0))+`</code></pre>
`},We.blockquote=function(ue){return`<blockquote>
`+ue+`</blockquote>
`},We.html=function(ue){return ue},We.heading=function(ue,W,we,Be){return this.options.headerIds?"<h"+W+' id="'+this.options.headerPrefix+Be.slug(we)+'">'+ue+"</h"+W+`>
`:"<h"+W+">"+ue+"</h"+W+`>
`},We.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},We.list=function(ue,W,we){var Be=W?"ol":"ul",U=W&&we!==1?' start="'+we+'"':"";return"<"+Be+U+`>
`+ue+"</"+Be+`>
`},We.listitem=function(ue){return"<li>"+ue+`</li>
`},We.checkbox=function(ue){return"<input "+(ue?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},We.paragraph=function(ue){return"<p>"+ue+`</p>
`},We.table=function(ue,W){return W&&(W="<tbody>"+W+"</tbody>"),`<table>
<thead>
`+ue+`</thead>
`+W+`</table>
`},We.tablerow=function(ue){return`<tr>
`+ue+`</tr>
`},We.tablecell=function(ue,W){var we=W.header?"th":"td",Be=W.align?"<"+we+' align="'+W.align+'">':"<"+we+">";return Be+ue+"</"+we+`>
`},We.strong=function(ue){return"<strong>"+ue+"</strong>"},We.em=function(ue){return"<em>"+ue+"</em>"},We.codespan=function(ue){return"<code>"+ue+"</code>"},We.br=function(){return this.options.xhtml?"<br/>":"<br>"},We.del=function(ue){return"<del>"+ue+"</del>"},We.link=function(ue,W,we){if(ue=De(this.options.sanitize,this.options.baseUrl,ue),ue===null)return we;var Be='<a href="'+O(ue)+'"';return W&&(Be+=' title="'+W+'"'),Be+=">"+we+"</a>",Be},We.image=function(ue,W,we){if(ue=De(this.options.sanitize,this.options.baseUrl,ue),ue===null)return we;var Be='<img src="'+ue+'" alt="'+we+'"';return W&&(Be+=' title="'+W+'"'),Be+=this.options.xhtml?"/>":">",Be},We.text=function(ue){return ue},Fe}(),J=function(){function Fe(){}var We=Fe.prototype;return We.strong=function(ue){return ue},We.em=function(ue){return ue},We.codespan=function(ue){return ue},We.del=function(ue){return ue},We.html=function(ue){return ue},We.text=function(ue){return ue},We.link=function(ue,W,we){return""+we},We.image=function(ue,W,we){return""+we},We.br=function(){return""},Fe}(),oe=function(){function Fe(){this.seen={}}var We=Fe.prototype;return We.serialize=function(ue){return ue.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},We.getNextSafeSlug=function(ue,W){var we=ue,Be=0;if(this.seen.hasOwnProperty(we)){Be=this.seen[ue];do Be++,we=ue+"-"+Be;while(this.seen.hasOwnProperty(we))}return W||(this.seen[ue]=Be,this.seen[we]=0),we},We.slug=function(ue,W){W===void 0&&(W={});var we=this.serialize(ue);return this.getNextSafeSlug(we,W.dryrun)},Fe}(),de=ae,Ce=J,xe=oe,ke=Te.exports.defaults,Ie=D.unescape,Pe=function(){function Fe(Je){this.options=Je||ke,this.options.renderer=this.options.renderer||new de,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ce,this.slugger=new xe}Fe.parse=function(ue,W){var we=new Fe(W);return we.parse(ue)},Fe.parseInline=function(ue,W){var we=new Fe(W);return we.parseInline(ue)};var We=Fe.prototype;return We.parse=function(ue,W){W===void 0&&(W=!0);var we="",Be,U,at,Ee,St,Pt,zt,on,It,Vt,Ue,ft,Ct,Ne,Ae,st,dt,kt,Lt=ue.length;for(Be=0;Be<Lt;Be++)switch(Vt=ue[Be],Vt.type){case"space":continue;case"hr":{we+=this.renderer.hr();continue}case"heading":{we+=this.renderer.heading(this.parseInline(Vt.tokens),Vt.depth,Ie(this.parseInline(Vt.tokens,this.textRenderer)),this.slugger);continue}case"code":{we+=this.renderer.code(Vt.text,Vt.lang,Vt.escaped);continue}case"table":{for(on="",zt="",Ee=Vt.header.length,U=0;U<Ee;U++)zt+=this.renderer.tablecell(this.parseInline(Vt.tokens.header[U]),{header:!0,align:Vt.align[U]});for(on+=this.renderer.tablerow(zt),It="",Ee=Vt.cells.length,U=0;U<Ee;U++){for(Pt=Vt.tokens.cells[U],zt="",St=Pt.length,at=0;at<St;at++)zt+=this.renderer.tablecell(this.parseInline(Pt[at]),{header:!1,align:Vt.align[at]});It+=this.renderer.tablerow(zt)}we+=this.renderer.table(on,It);continue}case"blockquote":{It=this.parse(Vt.tokens),we+=this.renderer.blockquote(It);continue}case"list":{for(Ue=Vt.ordered,ft=Vt.start,Ct=Vt.loose,Ee=Vt.items.length,It="",U=0;U<Ee;U++)Ae=Vt.items[U],st=Ae.checked,dt=Ae.task,Ne="",Ae.task&&(kt=this.renderer.checkbox(st),Ct?Ae.tokens.length>0&&Ae.tokens[0].type==="text"?(Ae.tokens[0].text=kt+" "+Ae.tokens[0].text,Ae.tokens[0].tokens&&Ae.tokens[0].tokens.length>0&&Ae.tokens[0].tokens[0].type==="text"&&(Ae.tokens[0].tokens[0].text=kt+" "+Ae.tokens[0].tokens[0].text)):Ae.tokens.unshift({type:"text",text:kt}):Ne+=kt),Ne+=this.parse(Ae.tokens,Ct),It+=this.renderer.listitem(Ne,dt,st);we+=this.renderer.list(It,Ue,ft);continue}case"html":{we+=this.renderer.html(Vt.text);continue}case"paragraph":{we+=this.renderer.paragraph(this.parseInline(Vt.tokens));continue}case"text":{for(It=Vt.tokens?this.parseInline(Vt.tokens):Vt.text;Be+1<Lt&&ue[Be+1].type==="text";)Vt=ue[++Be],It+=`
`+(Vt.tokens?this.parseInline(Vt.tokens):Vt.text);we+=W?this.renderer.paragraph(It):It;continue}default:{var Bt='Token with "'+Vt.type+'" type was not found.';if(this.options.silent){console.error(Bt);return}else throw new Error(Bt)}}return we},We.parseInline=function(ue,W){W=W||this.renderer;var we="",Be,U,at=ue.length;for(Be=0;Be<at;Be++)switch(U=ue[Be],U.type){case"escape":{we+=W.text(U.text);break}case"html":{we+=W.html(U.text);break}case"link":{we+=W.link(U.href,U.title,this.parseInline(U.tokens,W));break}case"image":{we+=W.image(U.href,U.title,U.text);break}case"strong":{we+=W.strong(this.parseInline(U.tokens,W));break}case"em":{we+=W.em(this.parseInline(U.tokens,W));break}case"codespan":{we+=W.codespan(U.text);break}case"br":{we+=W.br();break}case"del":{we+=W.del(this.parseInline(U.tokens,W));break}case"text":{we+=W.text(U.text);break}default:{var Ee='Token with "'+U.type+'" type was not found.';if(this.options.silent){console.error(Ee);return}else throw new Error(Ee)}}return we},Fe}(),Xe=q,rt=Pe,Ze=Ge,ct=ae,ut=J,ot=oe,Ot=D.merge,_t=D.checkSanitizeDeprecation,w=D.escape,C=Te.exports.getDefaults,lt=Te.exports.changeDefaults,ie=Te.exports.defaults;function Oe(Fe,We,Je){if(typeof Fe=="undefined"||Fe===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Fe!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Fe)+", string expected");if(typeof We=="function"&&(Je=We,We=null),We=Ot({},Oe.defaults,We||{}),_t(We),Je){var ue=We.highlight,W;try{W=Xe.lex(Fe,We)}catch(at){return Je(at)}var we=function(Ee){var St;if(!Ee)try{We.walkTokens&&Oe.walkTokens(W,We.walkTokens),St=rt.parse(W,We)}catch(Pt){Ee=Pt}return We.highlight=ue,Ee?Je(Ee):Je(null,St)};if(!ue||ue.length<3||(delete We.highlight,!W.length))return we();var Be=0;Oe.walkTokens(W,function(at){at.type==="code"&&(Be++,setTimeout(function(){ue(at.text,at.lang,function(Ee,St){if(Ee)return we(Ee);St!=null&&St!==at.text&&(at.text=St,at.escaped=!0),Be--,Be===0&&we()})},0))}),Be===0&&we();return}try{var U=Xe.lex(Fe,We);return We.walkTokens&&Oe.walkTokens(U,We.walkTokens),rt.parse(U,We)}catch(at){if(at.message+=`
Please report this to https://github.com/markedjs/marked.`,We.silent)return"<p>An error occurred:</p><pre>"+w(at.message+"",!0)+"</pre>";throw at}}Oe.options=Oe.setOptions=function(Fe){return Ot(Oe.defaults,Fe),lt(Oe.defaults),Oe},Oe.getDefaults=C,Oe.defaults=ie,Oe.use=function(Fe){var We=Ot({},Fe);if(Fe.renderer&&function(){var ue=Oe.defaults.renderer||new ct,W=function(U){var at=ue[U];ue[U]=function(){for(var Ee=arguments.length,St=new Array(Ee),Pt=0;Pt<Ee;Pt++)St[Pt]=arguments[Pt];var zt=Fe.renderer[U].apply(ue,St);return zt===!1&&(zt=at.apply(ue,St)),zt}};for(var we in Fe.renderer)W(we);We.renderer=ue}(),Fe.tokenizer&&function(){var ue=Oe.defaults.tokenizer||new Ze,W=function(U){var at=ue[U];ue[U]=function(){for(var Ee=arguments.length,St=new Array(Ee),Pt=0;Pt<Ee;Pt++)St[Pt]=arguments[Pt];var zt=Fe.tokenizer[U].apply(ue,St);return zt===!1&&(zt=at.apply(ue,St)),zt}};for(var we in Fe.tokenizer)W(we);We.tokenizer=ue}(),Fe.walkTokens){var Je=Oe.defaults.walkTokens;We.walkTokens=function(ue){Fe.walkTokens(ue),Je&&Je(ue)}}Oe.setOptions(We)},Oe.walkTokens=function(Fe,We){for(var Je=ce(Fe),ue;!(ue=Je()).done;){var W=ue.value;switch(We(W),W.type){case"table":{for(var we=ce(W.tokens.header),Be;!(Be=we()).done;){var U=Be.value;Oe.walkTokens(U,We)}for(var at=ce(W.tokens.cells),Ee;!(Ee=at()).done;)for(var St=Ee.value,Pt=ce(St),zt;!(zt=Pt()).done;){var on=zt.value;Oe.walkTokens(on,We)}break}case"list":{Oe.walkTokens(W.items,We);break}default:W.tokens&&Oe.walkTokens(W.tokens,We)}}},Oe.parseInline=function(Fe,We){if(typeof Fe=="undefined"||Fe===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof Fe!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(Fe)+", string expected");We=Ot({},Oe.defaults,We||{}),_t(We);try{var Je=Xe.lexInline(Fe,We);return We.walkTokens&&Oe.walkTokens(Je,We.walkTokens),rt.parseInline(Je,We)}catch(ue){if(ue.message+=`
Please report this to https://github.com/markedjs/marked.`,We.silent)return"<p>An error occurred:</p><pre>"+w(ue.message+"",!0)+"</pre>";throw ue}},Oe.Parser=rt,Oe.parser=rt.parse,Oe.Renderer=ct,Oe.TextRenderer=ut,Oe.Lexer=Xe,Oe.lexer=Xe.lex,Oe.Tokenizer=Ze,Oe.Slugger=ot,Oe.parse=Oe;var mn=Oe;return mn})},11690:function(Qt){const et=/[&<>"']/,p=/[&<>"']/g,M=/[<>"']|&(?!#?\w+;)/,Y=/[<>"']|&(?!#?\w+;)/g,ce={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Te=B=>ce[B];function j(B,fe){if(fe){if(et.test(B))return B.replace(p,Te)}else if(M.test(B))return B.replace(Y,Te);return B}const X=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function ve(B){return B.replace(X,(fe,ye)=>(ye=ye.toLowerCase(),ye==="colon"?":":ye.charAt(0)==="#"?ye.charAt(1)==="x"?String.fromCharCode(parseInt(ye.substring(2),16)):String.fromCharCode(+ye.substring(1)):""))}const _e=/(^|[^\[])\^/g;function a(B,fe){B=B.source||B,fe=fe||"";const ye={replace:(Re,he)=>(he=he.source||he,he=he.replace(_e,"$1"),B=B.replace(Re,he),ye),getRegex:()=>new RegExp(B,fe)};return ye}const A=/[^\w:]/g,L=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function v(B,fe,ye){if(B){let Re;try{Re=decodeURIComponent(ve(ye)).replace(A,"").toLowerCase()}catch(he){return null}if(Re.indexOf("javascript:")===0||Re.indexOf("vbscript:")===0||Re.indexOf("data:")===0)return null}fe&&!L.test(ye)&&(ye=se(fe,ye));try{ye=encodeURI(ye).replace(/%25/g,"%")}catch(Re){return null}return ye}const u={},y=/^[^:]+:\/*[^/]*$/,b=/^([^:]+:)[\s\S]*$/,k=/^([^:]+:\/*[^/]*)[\s\S]*$/;function se(B,fe){u[" "+B]||(y.test(B)?u[" "+B]=B+"/":u[" "+B]=K(B,"/",!0)),B=u[" "+B];const ye=B.indexOf(":")===-1;return fe.substring(0,2)==="//"?ye?fe:B.replace(b,"$1")+fe:fe.charAt(0)==="/"?ye?fe:B.replace(k,"$1")+fe:B+fe}const P={exec:function(){}};function N(B){let fe=1,ye,Re;for(;fe<arguments.length;fe++){ye=arguments[fe];for(Re in ye)Object.prototype.hasOwnProperty.call(ye,Re)&&(B[Re]=ye[Re])}return B}function V(B,fe){const ye=B.replace(/\|/g,(G,F,le)=>{let D=!1,Q=F;for(;--Q>=0&&le[Q]==="\\";)D=!D;return D?"|":" |"}),Re=ye.split(/ \|/);let he=0;if(Re.length>fe)Re.splice(fe);else for(;Re.length<fe;)Re.push("");for(;he<Re.length;he++)Re[he]=Re[he].trim().replace(/\\\|/g,"|");return Re}function K(B,fe,ye){const Re=B.length;if(Re===0)return"";let he=0;for(;he<Re;){const G=B.charAt(Re-he-1);if(G===fe&&!ye)he++;else if(G!==fe&&ye)he++;else break}return B.substr(0,Re-he)}function x(B,fe){if(B.indexOf(fe[1])===-1)return-1;const ye=B.length;let Re=0,he=0;for(;he<ye;he++)if(B[he]==="\\")he++;else if(B[he]===fe[0])Re++;else if(B[he]===fe[1]&&(Re--,Re<0))return he;return-1}function T(B){B&&B.sanitize&&!B.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 $(B,fe){if(fe<1)return"";let ye="";for(;fe>1;)fe&1&&(ye+=B),fe>>=1,B+=B;return ye+B}Qt.exports={escape:j,unescape:ve,edit:a,cleanUrl:v,resolveUrl:se,noopTest:P,merge:N,splitCells:V,rtrim:K,findClosingBracket:x,checkSanitizeDeprecation:T,repeatString:$}},75918:function(Qt,et,p){"use strict";p.d(et,{Wi:function(){return X},Z0:function(){return ve},aU:function(){return j},eZ:function(){return a},wY:function(){return _e}});var M=p(4348),Y=p(69323),ce=p(13268),Te=function(A,L,v,u){function y(b){return b instanceof v?b:new v(function(k){k(b)})}return new(v||(v=Promise))(function(b,k){function se(V){try{N(u.next(V))}catch(K){k(K)}}function P(V){try{N(u.throw(V))}catch(K){k(K)}}function N(V){V.done?b(V.value):y(V.value).then(se,P)}N((u=u.apply(A,L||[])).next())})};class j extends Y.JT{constructor(L,v="",u="",y=!0,b){super(),this._onDidChange=this._register(new M.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=L,this._label=v,this._cssClass=u,this._enabled=y,this._actionCallback=b}get id(){return this._id}get label(){return this._label}set label(L){this._setLabel(L)}_setLabel(L){this._label!==L&&(this._label=L,this._onDidChange.fire({label:L}))}get tooltip(){return this._tooltip||""}set tooltip(L){this._setTooltip(L)}_setTooltip(L){this._tooltip!==L&&(this._tooltip=L,this._onDidChange.fire({tooltip:L}))}get class(){return this._cssClass}set class(L){this._setClass(L)}_setClass(L){this._cssClass!==L&&(this._cssClass=L,this._onDidChange.fire({class:L}))}get enabled(){return this._enabled}set enabled(L){this._setEnabled(L)}_setEnabled(L){this._enabled!==L&&(this._enabled=L,this._onDidChange.fire({enabled:L}))}get checked(){return this._checked}set checked(L){this._setChecked(L)}_setChecked(L){this._checked!==L&&(this._checked=L,this._onDidChange.fire({checked:L}))}run(L,v){return Te(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(L))})}}class X extends Y.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new M.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new M.Q5),this.onDidRun=this._onDidRun.event}run(L,v){return Te(this,void 0,void 0,function*(){if(!L.enabled)return;this._onBeforeRun.fire({action:L});let u;try{yield this.runAction(L,v)}catch(y){u=y}this._onDidRun.fire({action:L,error:u})})}runAction(L,v){return Te(this,void 0,void 0,function*(){yield L.run(v)})}}class ve extends j{constructor(L){super(ve.ID,L,L?"separator text":"separator"),this.checked=!1,this.enabled=!1}}ve.ID="vs.actions.separator";class _e{constructor(L,v,u,y){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=L,this.label=v,this.class=y,this._actions=u}get actions(){return this._actions}dispose(){}run(){return Te(this,void 0,void 0,function*(){})}}class a extends j{constructor(){super(a.ID,ce.N("submenu.empty","(empty)"),void 0,!1)}}a.ID="vs.actions.empty"},76068:function(Qt,et,p){"use strict";p.d(et,{ok:function(){return M}});function M(Y,ce){if(!Y)throw new Error(ce?`Assertion failed (${ce})`:"Assertion Failed")}},52615:function(Qt,et,p){"use strict";p.d(et,{CM:function(){return j},JL:function(){return X},dT:function(){return _e},fK:function(){return Te},lA:function(){return ve}});var M=p(4348);class Y{constructor(){this._icons=new Map,this._onDidRegister=new M.Q5}add(A){const L=this._icons.get(A.id);L?A.description?L.description=A.description:console.error(`Duplicate registration of codicon ${A.id}`):(this._icons.set(A.id,A),this._onDidRegister.fire(A))}get(A){return this._icons.get(A)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const ce=new Y,Te=ce;function j(a,A){return new ve(a,A)}function X(a){return a?a.replace(/\$\((.*?)\)/g,(A,L)=>` ${L} `).trim():""}class ve{constructor(A,L,v){this.id=A,this.definition=L,this.description=v,ce.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var _e;(function(a){a.iconNameSegment="[A-Za-z0-9]+",a.iconNameExpression="[A-Za-z0-9\\-]+",a.iconModifierExpression="~[A-Za-z]+";const A=new RegExp(`^(${a.iconNameExpression})(${a.iconModifierExpression})?$`);function L(y){if(y instanceof ve)return["codicon","codicon-"+y.id];const b=A.exec(y.id);if(!b)return L(ve.error);let[,k,se]=b;const P=["codicon","codicon-"+k];return se&&P.push("codicon-modifier-"+se.substr(1)),P}a.asClassNameArray=L;function v(y){return L(y).join(" ")}a.asClassName=v;function u(y){return"."+L(y).join(".")}a.asCSSSelector=u})(_e||(_e={})),function(a){a.add=new a("add",{fontCharacter:"\\ea60"}),a.plus=new a("plus",a.add.definition),a.gistNew=new a("gist-new",a.add.definition),a.repoCreate=new a("repo-create",a.add.definition),a.lightbulb=new a("lightbulb",{fontCharacter:"\\ea61"}),a.lightBulb=new a("light-bulb",{fontCharacter:"\\ea61"}),a.repo=new a("repo",{fontCharacter:"\\ea62"}),a.repoDelete=new a("repo-delete",{fontCharacter:"\\ea62"}),a.gistFork=new a("gist-fork",{fontCharacter:"\\ea63"}),a.repoForked=new a("repo-forked",{fontCharacter:"\\ea63"}),a.gitPullRequest=new a("git-pull-request",{fontCharacter:"\\ea64"}),a.gitPullRequestAbandoned=new a("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),a.recordKeys=new a("record-keys",{fontCharacter:"\\ea65"}),a.keyboard=new a("keyboard",{fontCharacter:"\\ea65"}),a.tag=new a("tag",{fontCharacter:"\\ea66"}),a.tagAdd=new a("tag-add",{fontCharacter:"\\ea66"}),a.tagRemove=new a("tag-remove",{fontCharacter:"\\ea66"}),a.person=new a("person",{fontCharacter:"\\ea67"}),a.personFollow=new a("person-follow",{fontCharacter:"\\ea67"}),a.personOutline=new a("person-outline",{fontCharacter:"\\ea67"}),a.personFilled=new a("person-filled",{fontCharacter:"\\ea67"}),a.gitBranch=new a("git-branch",{fontCharacter:"\\ea68"}),a.gitBranchCreate=new a("git-branch-create",{fontCharacter:"\\ea68"}),a.gitBranchDelete=new a("git-branch-delete",{fontCharacter:"\\ea68"}),a.sourceControl=new a("source-control",{fontCharacter:"\\ea68"}),a.mirror=new a("mirror",{fontCharacter:"\\ea69"}),a.mirrorPublic=new a("mirror-public",{fontCharacter:"\\ea69"}),a.star=new a("star",{fontCharacter:"\\ea6a"}),a.starAdd=new a("star-add",{fontCharacter:"\\ea6a"}),a.starDelete=new a("star-delete",{fontCharacter:"\\ea6a"}),a.starEmpty=new a("star-empty",{fontCharacter:"\\ea6a"}),a.comment=new a("comment",{fontCharacter:"\\ea6b"}),a.commentAdd=new a("comment-add",{fontCharacter:"\\ea6b"}),a.alert=new a("alert",{fontCharacter:"\\ea6c"}),a.warning=new a("warning",{fontCharacter:"\\ea6c"}),a.search=new a("search",{fontCharacter:"\\ea6d"}),a.searchSave=new a("search-save",{fontCharacter:"\\ea6d"}),a.logOut=new a("log-out",{fontCharacter:"\\ea6e"}),a.signOut=new a("sign-out",{fontCharacter:"\\ea6e"}),a.logIn=new a("log-in",{fontCharacter:"\\ea6f"}),a.signIn=new a("sign-in",{fontCharacter:"\\ea6f"}),a.eye=new a("eye",{fontCharacter:"\\ea70"}),a.eyeUnwatch=new a("eye-unwatch",{fontCharacter:"\\ea70"}),a.eyeWatch=new a("eye-watch",{fontCharacter:"\\ea70"}),a.circleFilled=new a("circle-filled",{fontCharacter:"\\ea71"}),a.primitiveDot=new a("primitive-dot",{fontCharacter:"\\ea71"}),a.closeDirty=new a("close-dirty",{fontCharacter:"\\ea71"}),a.debugBreakpoint=new a("debug-breakpoint",{fontCharacter:"\\ea71"}),a.debugBreakpointDisabled=new a("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),a.debugHint=new a("debug-hint",{fontCharacter:"\\ea71"}),a.primitiveSquare=new a("primitive-square",{fontCharacter:"\\ea72"}),a.edit=new a("edit",{fontCharacter:"\\ea73"}),a.pencil=new a("pencil",{fontCharacter:"\\ea73"}),a.info=new a("info",{fontCharacter:"\\ea74"}),a.issueOpened=new a("issue-opened",{fontCharacter:"\\ea74"}),a.gistPrivate=new a("gist-private",{fontCharacter:"\\ea75"}),a.gitForkPrivate=new a("git-fork-private",{fontCharacter:"\\ea75"}),a.lock=new a("lock",{fontCharacter:"\\ea75"}),a.mirrorPrivate=new a("mirror-private",{fontCharacter:"\\ea75"}),a.close=new a("close",{fontCharacter:"\\ea76"}),a.removeClose=new a("remove-close",{fontCharacter:"\\ea76"}),a.x=new a("x",{fontCharacter:"\\ea76"}),a.repoSync=new a("repo-sync",{fontCharacter:"\\ea77"}),a.sync=new a("sync",{fontCharacter:"\\ea77"}),a.clone=new a("clone",{fontCharacter:"\\ea78"}),a.desktopDownload=new a("desktop-download",{fontCharacter:"\\ea78"}),a.beaker=new a("beaker",{fontCharacter:"\\ea79"}),a.microscope=new a("microscope",{fontCharacter:"\\ea79"}),a.vm=new a("vm",{fontCharacter:"\\ea7a"}),a.deviceDesktop=new a("device-desktop",{fontCharacter:"\\ea7a"}),a.file=new a("file",{fontCharacter:"\\ea7b"}),a.fileText=new a("file-text",{fontCharacter:"\\ea7b"}),a.more=new a("more",{fontCharacter:"\\ea7c"}),a.ellipsis=new a("ellipsis",{fontCharacter:"\\ea7c"}),a.kebabHorizontal=new a("kebab-horizontal",{fontCharacter:"\\ea7c"}),a.mailReply=new a("mail-reply",{fontCharacter:"\\ea7d"}),a.reply=new a("reply",{fontCharacter:"\\ea7d"}),a.organization=new a("organization",{fontCharacter:"\\ea7e"}),a.organizationFilled=new a("organization-filled",{fontCharacter:"\\ea7e"}),a.organizationOutline=new a("organization-outline",{fontCharacter:"\\ea7e"}),a.newFile=new a("new-file",{fontCharacter:"\\ea7f"}),a.fileAdd=new a("file-add",{fontCharacter:"\\ea7f"}),a.newFolder=new a("new-folder",{fontCharacter:"\\ea80"}),a.fileDirectoryCreate=new a("file-directory-create",{fontCharacter:"\\ea80"}),a.trash=new a("trash",{fontCharacter:"\\ea81"}),a.trashcan=new a("trashcan",{fontCharacter:"\\ea81"}),a.history=new a("history",{fontCharacter:"\\ea82"}),a.clock=new a("clock",{fontCharacter:"\\ea82"}),a.folder=new a("folder",{fontCharacter:"\\ea83"}),a.fileDirectory=new a("file-directory",{fontCharacter:"\\ea83"}),a.symbolFolder=new a("symbol-folder",{fontCharacter:"\\ea83"}),a.logoGithub=new a("logo-github",{fontCharacter:"\\ea84"}),a.markGithub=new a("mark-github",{fontCharacter:"\\ea84"}),a.github=new a("github",{fontCharacter:"\\ea84"}),a.terminal=new a("terminal",{fontCharacter:"\\ea85"}),a.console=new a("console",{fontCharacter:"\\ea85"}),a.repl=new a("repl",{fontCharacter:"\\ea85"}),a.zap=new a("zap",{fontCharacter:"\\ea86"}),a.symbolEvent=new a("symbol-event",{fontCharacter:"\\ea86"}),a.error=new a("error",{fontCharacter:"\\ea87"}),a.stop=new a("stop",{fontCharacter:"\\ea87"}),a.variable=new a("variable",{fontCharacter:"\\ea88"}),a.symbolVariable=new a("symbol-variable",{fontCharacter:"\\ea88"}),a.array=new a("array",{fontCharacter:"\\ea8a"}),a.symbolArray=new a("symbol-array",{fontCharacter:"\\ea8a"}),a.symbolModule=new a("symbol-module",{fontCharacter:"\\ea8b"}),a.symbolPackage=new a("symbol-package",{fontCharacter:"\\ea8b"}),a.symbolNamespace=new a("symbol-namespace",{fontCharacter:"\\ea8b"}),a.symbolObject=new a("symbol-object",{fontCharacter:"\\ea8b"}),a.symbolMethod=new a("symbol-method",{fontCharacter:"\\ea8c"}),a.symbolFunction=new a("symbol-function",{fontCharacter:"\\ea8c"}),a.symbolConstructor=new a("symbol-constructor",{fontCharacter:"\\ea8c"}),a.symbolBoolean=new a("symbol-boolean",{fontCharacter:"\\ea8f"}),a.symbolNull=new a("symbol-null",{fontCharacter:"\\ea8f"}),a.symbolNumeric=new a("symbol-numeric",{fontCharacter:"\\ea90"}),a.symbolNumber=new a("symbol-number",{fontCharacter:"\\ea90"}),a.symbolStructure=new a("symbol-structure",{fontCharacter:"\\ea91"}),a.symbolStruct=new a("symbol-struct",{fontCharacter:"\\ea91"}),a.symbolParameter=new a("symbol-parameter",{fontCharacter:"\\ea92"}),a.symbolTypeParameter=new a("symbol-type-parameter",{fontCharacter:"\\ea92"}),a.symbolKey=new a("symbol-key",{fontCharacter:"\\ea93"}),a.symbolText=new a("symbol-text",{fontCharacter:"\\ea93"}),a.symbolReference=new a("symbol-reference",{fontCharacter:"\\ea94"}),a.goToFile=new a("go-to-file",{fontCharacter:"\\ea94"}),a.symbolEnum=new a("symbol-enum",{fontCharacter:"\\ea95"}),a.symbolValue=new a("symbol-value",{fontCharacter:"\\ea95"}),a.symbolRuler=new a("symbol-ruler",{fontCharacter:"\\ea96"}),a.symbolUnit=new a("symbol-unit",{fontCharacter:"\\ea96"}),a.activateBreakpoints=new a("activate-breakpoints",{fontCharacter:"\\ea97"}),a.archive=new a("archive",{fontCharacter:"\\ea98"}),a.arrowBoth=new a("arrow-both",{fontCharacter:"\\ea99"}),a.arrowDown=new a("arrow-down",{fontCharacter:"\\ea9a"}),a.arrowLeft=new a("arrow-left",{fontCharacter:"\\ea9b"}),a.arrowRight=new a("arrow-right",{fontCharacter:"\\ea9c"}),a.arrowSmallDown=new a("arrow-small-down",{fontCharacter:"\\ea9d"}),a.arrowSmallLeft=new a("arrow-small-left",{fontCharacter:"\\ea9e"}),a.arrowSmallRight=new a("arrow-small-right",{fontCharacter:"\\ea9f"}),a.arrowSmallUp=new a("arrow-small-up",{fontCharacter:"\\eaa0"}),a.arrowUp=new a("arrow-up",{fontCharacter:"\\eaa1"}),a.bell=new a("bell",{fontCharacter:"\\eaa2"}),a.bold=new a("bold",{fontCharacter:"\\eaa3"}),a.book=new a("book",{fontCharacter:"\\eaa4"}),a.bookmark=new a("bookmark",{fontCharacter:"\\eaa5"}),a.debugBreakpointConditionalUnverified=new a("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),a.debugBreakpointConditional=new a("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),a.debugBreakpointConditionalDisabled=new a("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),a.debugBreakpointDataUnverified=new a("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),a.debugBreakpointData=new a("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),a.debugBreakpointDataDisabled=new a("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),a.debugBreakpointLogUnverified=new a("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),a.debugBreakpointLog=new a("debug-breakpoint-log",{fontCharacter:"\\eaab"}),a.debugBreakpointLogDisabled=new a("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),a.briefcase=new a("briefcase",{fontCharacter:"\\eaac"}),a.broadcast=new a("broadcast",{fontCharacter:"\\eaad"}),a.browser=new a("browser",{fontCharacter:"\\eaae"}),a.bug=new a("bug",{fontCharacter:"\\eaaf"}),a.calendar=new a("calendar",{fontCharacter:"\\eab0"}),a.caseSensitive=new a("case-sensitive",{fontCharacter:"\\eab1"}),a.check=new a("check",{fontCharacter:"\\eab2"}),a.checklist=new a("checklist",{fontCharacter:"\\eab3"}),a.chevronDown=new a("chevron-down",{fontCharacter:"\\eab4"}),a.dropDownButton=new a("drop-down-button",a.chevronDown.definition),a.chevronLeft=new a("chevron-left",{fontCharacter:"\\eab5"}),a.chevronRight=new a("chevron-right",{fontCharacter:"\\eab6"}),a.chevronUp=new a("chevron-up",{fontCharacter:"\\eab7"}),a.chromeClose=new a("chrome-close",{fontCharacter:"\\eab8"}),a.chromeMaximize=new a("chrome-maximize",{fontCharacter:"\\eab9"}),a.chromeMinimize=new a("chrome-minimize",{fontCharacter:"\\eaba"}),a.chromeRestore=new a("chrome-restore",{fontCharacter:"\\eabb"}),a.circleOutline=new a("circle-outline",{fontCharacter:"\\eabc"}),a.debugBreakpointUnverified=new a("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),a.circleSlash=new a("circle-slash",{fontCharacter:"\\eabd"}),a.circuitBoard=new a("circuit-board",{fontCharacter:"\\eabe"}),a.clearAll=new a("clear-all",{fontCharacter:"\\eabf"}),a.clippy=new a("clippy",{fontCharacter:"\\eac0"}),a.closeAll=new a("close-all",{fontCharacter:"\\eac1"}),a.cloudDownload=new a("cloud-download",{fontCharacter:"\\eac2"}),a.cloudUpload=new a("cloud-upload",{fontCharacter:"\\eac3"}),a.code=new a("code",{fontCharacter:"\\eac4"}),a.collapseAll=new a("collapse-all",{fontCharacter:"\\eac5"}),a.colorMode=new a("color-mode",{fontCharacter:"\\eac6"}),a.commentDiscussion=new a("comment-discussion",{fontCharacter:"\\eac7"}),a.compareChanges=new a("compare-changes",{fontCharacter:"\\eafd"}),a.creditCard=new a("credit-card",{fontCharacter:"\\eac9"}),a.dash=new a("dash",{fontCharacter:"\\eacc"}),a.dashboard=new a("dashboard",{fontCharacter:"\\eacd"}),a.database=new a("database",{fontCharacter:"\\eace"}),a.debugContinue=new a("debug-continue",{fontCharacter:"\\eacf"}),a.debugDisconnect=new a("debug-disconnect",{fontCharacter:"\\ead0"}),a.debugPause=new a("debug-pause",{fontCharacter:"\\ead1"}),a.debugRestart=new a("debug-restart",{fontCharacter:"\\ead2"}),a.debugStart=new a("debug-start",{fontCharacter:"\\ead3"}),a.debugStepInto=new a("debug-step-into",{fontCharacter:"\\ead4"}),a.debugStepOut=new a("debug-step-out",{fontCharacter:"\\ead5"}),a.debugStepOver=new a("debug-step-over",{fontCharacter:"\\ead6"}),a.debugStop=new a("debug-stop",{fontCharacter:"\\ead7"}),a.debug=new a("debug",{fontCharacter:"\\ead8"}),a.deviceCameraVideo=new a("device-camera-video",{fontCharacter:"\\ead9"}),a.deviceCamera=new a("device-camera",{fontCharacter:"\\eada"}),a.deviceMobile=new a("device-mobile",{fontCharacter:"\\eadb"}),a.diffAdded=new a("diff-added",{fontCharacter:"\\eadc"}),a.diffIgnored=new a("diff-ignored",{fontCharacter:"\\eadd"}),a.diffModified=new a("diff-modified",{fontCharacter:"\\eade"}),a.diffRemoved=new a("diff-removed",{fontCharacter:"\\eadf"}),a.diffRenamed=new a("diff-renamed",{fontCharacter:"\\eae0"}),a.diff=new a("diff",{fontCharacter:"\\eae1"}),a.discard=new a("discard",{fontCharacter:"\\eae2"}),a.editorLayout=new a("editor-layout",{fontCharacter:"\\eae3"}),a.emptyWindow=new a("empty-window",{fontCharacter:"\\eae4"}),a.exclude=new a("exclude",{fontCharacter:"\\eae5"}),a.extensions=new a("extensions",{fontCharacter:"\\eae6"}),a.eyeClosed=new a("eye-closed",{fontCharacter:"\\eae7"}),a.fileBinary=new a("file-binary",{fontCharacter:"\\eae8"}),a.fileCode=new a("file-code",{fontCharacter:"\\eae9"}),a.fileMedia=new a("file-media",{fontCharacter:"\\eaea"}),a.filePdf=new a("file-pdf",{fontCharacter:"\\eaeb"}),a.fileSubmodule=new a("file-submodule",{fontCharacter:"\\eaec"}),a.fileSymlinkDirectory=new a("file-symlink-directory",{fontCharacter:"\\eaed"}),a.fileSymlinkFile=new a("file-symlink-file",{fontCharacter:"\\eaee"}),a.fileZip=new a("file-zip",{fontCharacter:"\\eaef"}),a.files=new a("files",{fontCharacter:"\\eaf0"}),a.filter=new a("filter",{fontCharacter:"\\eaf1"}),a.flame=new a("flame",{fontCharacter:"\\eaf2"}),a.foldDown=new a("fold-down",{fontCharacter:"\\eaf3"}),a.foldUp=new a("fold-up",{fontCharacter:"\\eaf4"}),a.fold=new a("fold",{fontCharacter:"\\eaf5"}),a.folderActive=new a("folder-active",{fontCharacter:"\\eaf6"}),a.folderOpened=new a("folder-opened",{fontCharacter:"\\eaf7"}),a.gear=new a("gear",{fontCharacter:"\\eaf8"}),a.gift=new a("gift",{fontCharacter:"\\eaf9"}),a.gistSecret=new a("gist-secret",{fontCharacter:"\\eafa"}),a.gist=new a("gist",{fontCharacter:"\\eafb"}),a.gitCommit=new a("git-commit",{fontCharacter:"\\eafc"}),a.gitCompare=new a("git-compare",{fontCharacter:"\\eafd"}),a.gitMerge=new a("git-merge",{fontCharacter:"\\eafe"}),a.githubAction=new a("github-action",{fontCharacter:"\\eaff"}),a.githubAlt=new a("github-alt",{fontCharacter:"\\eb00"}),a.globe=new a("globe",{fontCharacter:"\\eb01"}),a.grabber=new a("grabber",{fontCharacter:"\\eb02"}),a.graph=new a("graph",{fontCharacter:"\\eb03"}),a.gripper=new a("gripper",{fontCharacter:"\\eb04"}),a.heart=new a("heart",{fontCharacter:"\\eb05"}),a.home=new a("home",{fontCharacter:"\\eb06"}),a.horizontalRule=new a("horizontal-rule",{fontCharacter:"\\eb07"}),a.hubot=new a("hubot",{fontCharacter:"\\eb08"}),a.inbox=new a("inbox",{fontCharacter:"\\eb09"}),a.issueClosed=new a("issue-closed",{fontCharacter:"\\eba4"}),a.issueReopened=new a("issue-reopened",{fontCharacter:"\\eb0b"}),a.issues=new a("issues",{fontCharacter:"\\eb0c"}),a.italic=new a("italic",{fontCharacter:"\\eb0d"}),a.jersey=new a("jersey",{fontCharacter:"\\eb0e"}),a.json=new a("json",{fontCharacter:"\\eb0f"}),a.kebabVertical=new a("kebab-vertical",{fontCharacter:"\\eb10"}),a.key=new a("key",{fontCharacter:"\\eb11"}),a.law=new a("law",{fontCharacter:"\\eb12"}),a.lightbulbAutofix=new a("lightbulb-autofix",{fontCharacter:"\\eb13"}),a.linkExternal=new a("link-external",{fontCharacter:"\\eb14"}),a.link=new a("link",{fontCharacter:"\\eb15"}),a.listOrdered=new a("list-ordered",{fontCharacter:"\\eb16"}),a.listUnordered=new a("list-unordered",{fontCharacter:"\\eb17"}),a.liveShare=new a("live-share",{fontCharacter:"\\eb18"}),a.loading=new a("loading",{fontCharacter:"\\eb19"}),a.location=new a("location",{fontCharacter:"\\eb1a"}),a.mailRead=new a("mail-read",{fontCharacter:"\\eb1b"}),a.mail=new a("mail",{fontCharacter:"\\eb1c"}),a.markdown=new a("markdown",{fontCharacter:"\\eb1d"}),a.megaphone=new a("megaphone",{fontCharacter:"\\eb1e"}),a.mention=new a("mention",{fontCharacter:"\\eb1f"}),a.milestone=new a("milestone",{fontCharacter:"\\eb20"}),a.mortarBoard=new a("mortar-board",{fontCharacter:"\\eb21"}),a.move=new a("move",{fontCharacter:"\\eb22"}),a.multipleWindows=new a("multiple-windows",{fontCharacter:"\\eb23"}),a.mute=new a("mute",{fontCharacter:"\\eb24"}),a.noNewline=new a("no-newline",{fontCharacter:"\\eb25"}),a.note=new a("note",{fontCharacter:"\\eb26"}),a.octoface=new a("octoface",{fontCharacter:"\\eb27"}),a.openPreview=new a("open-preview",{fontCharacter:"\\eb28"}),a.package_=new a("package",{fontCharacter:"\\eb29"}),a.paintcan=new a("paintcan",{fontCharacter:"\\eb2a"}),a.pin=new a("pin",{fontCharacter:"\\eb2b"}),a.play=new a("play",{fontCharacter:"\\eb2c"}),a.run=new a("run",{fontCharacter:"\\eb2c"}),a.plug=new a("plug",{fontCharacter:"\\eb2d"}),a.preserveCase=new a("preserve-case",{fontCharacter:"\\eb2e"}),a.preview=new a("preview",{fontCharacter:"\\eb2f"}),a.project=new a("project",{fontCharacter:"\\eb30"}),a.pulse=new a("pulse",{fontCharacter:"\\eb31"}),a.question=new a("question",{fontCharacter:"\\eb32"}),a.quote=new a("quote",{fontCharacter:"\\eb33"}),a.radioTower=new a("radio-tower",{fontCharacter:"\\eb34"}),a.reactions=new a("reactions",{fontCharacter:"\\eb35"}),a.references=new a("references",{fontCharacter:"\\eb36"}),a.refresh=new a("refresh",{fontCharacter:"\\eb37"}),a.regex=new a("regex",{fontCharacter:"\\eb38"}),a.remoteExplorer=new a("remote-explorer",{fontCharacter:"\\eb39"}),a.remote=new a("remote",{fontCharacter:"\\eb3a"}),a.remove=new a("remove",{fontCharacter:"\\eb3b"}),a.replaceAll=new a("replace-all",{fontCharacter:"\\eb3c"}),a.replace=new a("replace",{fontCharacter:"\\eb3d"}),a.repoClone=new a("repo-clone",{fontCharacter:"\\eb3e"}),a.repoForcePush=new a("repo-force-push",{fontCharacter:"\\eb3f"}),a.repoPull=new a("repo-pull",{fontCharacter:"\\eb40"}),a.repoPush=new a("repo-push",{fontCharacter:"\\eb41"}),a.report=new a("report",{fontCharacter:"\\eb42"}),a.requestChanges=new a("request-changes",{fontCharacter:"\\eb43"}),a.rocket=new a("rocket",{fontCharacter:"\\eb44"}),a.rootFolderOpened=new a("root-folder-opened",{fontCharacter:"\\eb45"}),a.rootFolder=new a("root-folder",{fontCharacter:"\\eb46"}),a.rss=new a("rss",{fontCharacter:"\\eb47"}),a.ruby=new a("ruby",{fontCharacter:"\\eb48"}),a.saveAll=new a("save-all",{fontCharacter:"\\eb49"}),a.saveAs=new a("save-as",{fontCharacter:"\\eb4a"}),a.save=new a("save",{fontCharacter:"\\eb4b"}),a.screenFull=new a("screen-full",{fontCharacter:"\\eb4c"}),a.screenNormal=new a("screen-normal",{fontCharacter:"\\eb4d"}),a.searchStop=new a("search-stop",{fontCharacter:"\\eb4e"}),a.server=new a("server",{fontCharacter:"\\eb50"}),a.settingsGear=new a("settings-gear",{fontCharacter:"\\eb51"}),a.settings=new a("settings",{fontCharacter:"\\eb52"}),a.shield=new a("shield",{fontCharacter:"\\eb53"}),a.smiley=new a("smiley",{fontCharacter:"\\eb54"}),a.sortPrecedence=new a("sort-precedence",{fontCharacter:"\\eb55"}),a.splitHorizontal=new a("split-horizontal",{fontCharacter:"\\eb56"}),a.splitVertical=new a("split-vertical",{fontCharacter:"\\eb57"}),a.squirrel=new a("squirrel",{fontCharacter:"\\eb58"}),a.starFull=new a("star-full",{fontCharacter:"\\eb59"}),a.starHalf=new a("star-half",{fontCharacter:"\\eb5a"}),a.symbolClass=new a("symbol-class",{fontCharacter:"\\eb5b"}),a.symbolColor=new a("symbol-color",{fontCharacter:"\\eb5c"}),a.symbolConstant=new a("symbol-constant",{fontCharacter:"\\eb5d"}),a.symbolEnumMember=new a("symbol-enum-member",{fontCharacter:"\\eb5e"}),a.symbolField=new a("symbol-field",{fontCharacter:"\\eb5f"}),a.symbolFile=new a("symbol-file",{fontCharacter:"\\eb60"}),a.symbolInterface=new a("symbol-interface",{fontCharacter:"\\eb61"}),a.symbolKeyword=new a("symbol-keyword",{fontCharacter:"\\eb62"}),a.symbolMisc=new a("symbol-misc",{fontCharacter:"\\eb63"}),a.symbolOperator=new a("symbol-operator",{fontCharacter:"\\eb64"}),a.symbolProperty=new a("symbol-property",{fontCharacter:"\\eb65"}),a.wrench=new a("wrench",{fontCharacter:"\\eb65"}),a.wrenchSubaction=new a("wrench-subaction",{fontCharacter:"\\eb65"}),a.symbolSnippet=new a("symbol-snippet",{fontCharacter:"\\eb66"}),a.tasklist=new a("tasklist",{fontCharacter:"\\eb67"}),a.telescope=new a("telescope",{fontCharacter:"\\eb68"}),a.textSize=new a("text-size",{fontCharacter:"\\eb69"}),a.threeBars=new a("three-bars",{fontCharacter:"\\eb6a"}),a.thumbsdown=new a("thumbsdown",{fontCharacter:"\\eb6b"}),a.thumbsup=new a("thumbsup",{fontCharacter:"\\eb6c"}),a.tools=new a("tools",{fontCharacter:"\\eb6d"}),a.triangleDown=new a("triangle-down",{fontCharacter:"\\eb6e"}),a.triangleLeft=new a("triangle-left",{fontCharacter:"\\eb6f"}),a.triangleRight=new a("triangle-right",{fontCharacter:"\\eb70"}),a.triangleUp=new a("triangle-up",{fontCharacter:"\\eb71"}),a.twitter=new a("twitter",{fontCharacter:"\\eb72"}),a.unfold=new a("unfold",{fontCharacter:"\\eb73"}),a.unlock=new a("unlock",{fontCharacter:"\\eb74"}),a.unmute=new a("unmute",{fontCharacter:"\\eb75"}),a.unverified=new a("unverified",{fontCharacter:"\\eb76"}),a.verified=new a("verified",{fontCharacter:"\\eb77"}),a.versions=new a("versions",{fontCharacter:"\\eb78"}),a.vmActive=new a("vm-active",{fontCharacter:"\\eb79"}),a.vmOutline=new a("vm-outline",{fontCharacter:"\\eb7a"}),a.vmRunning=new a("vm-running",{fontCharacter:"\\eb7b"}),a.watch=new a("watch",{fontCharacter:"\\eb7c"}),a.whitespace=new a("whitespace",{fontCharacter:"\\eb7d"}),a.wholeWord=new a("whole-word",{fontCharacter:"\\eb7e"}),a.window=new a("window",{fontCharacter:"\\eb7f"}),a.wordWrap=new a("word-wrap",{fontCharacter:"\\eb80"}),a.zoomIn=new a("zoom-in",{fontCharacter:"\\eb81"}),a.zoomOut=new a("zoom-out",{fontCharacter:"\\eb82"}),a.listFilter=new a("list-filter",{fontCharacter:"\\eb83"}),a.listFlat=new a("list-flat",{fontCharacter:"\\eb84"}),a.listSelection=new a("list-selection",{fontCharacter:"\\eb85"}),a.selection=new a("selection",{fontCharacter:"\\eb85"}),a.listTree=new a("list-tree",{fontCharacter:"\\eb86"}),a.debugBreakpointFunctionUnverified=new a("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),a.debugBreakpointFunction=new a("debug-breakpoint-function",{fontCharacter:"\\eb88"}),a.debugBreakpointFunctionDisabled=new a("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),a.debugStackframeActive=new a("debug-stackframe-active",{fontCharacter:"\\eb89"}),a.debugStackframeDot=new a("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),a.debugStackframe=new a("debug-stackframe",{fontCharacter:"\\eb8b"}),a.debugStackframeFocused=new a("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),a.debugBreakpointUnsupported=new a("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),a.symbolString=new a("symbol-string",{fontCharacter:"\\eb8d"}),a.debugReverseContinue=new a("debug-reverse-continue",{fontCharacter:"\\eb8e"}),a.debugStepBack=new a("debug-step-back",{fontCharacter:"\\eb8f"}),a.debugRestartFrame=new a("debug-restart-frame",{fontCharacter:"\\eb90"}),a.callIncoming=new a("call-incoming",{fontCharacter:"\\eb92"}),a.callOutgoing=new a("call-outgoing",{fontCharacter:"\\eb93"}),a.menu=new a("menu",{fontCharacter:"\\eb94"}),a.expandAll=new a("expand-all",{fontCharacter:"\\eb95"}),a.feedback=new a("feedback",{fontCharacter:"\\eb96"}),a.groupByRefType=new a("group-by-ref-type",{fontCharacter:"\\eb97"}),a.ungroupByRefType=new a("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),a.account=new a("account",{fontCharacter:"\\eb99"}),a.bellDot=new a("bell-dot",{fontCharacter:"\\eb9a"}),a.debugConsole=new a("debug-console",{fontCharacter:"\\eb9b"}),a.library=new a("library",{fontCharacter:"\\eb9c"}),a.output=new a("output",{fontCharacter:"\\eb9d"}),a.runAll=new a("run-all",{fontCharacter:"\\eb9e"}),a.syncIgnored=new a("sync-ignored",{fontCharacter:"\\eb9f"}),a.pinned=new a("pinned",{fontCharacter:"\\eba0"}),a.githubInverted=new a("github-inverted",{fontCharacter:"\\eba1"}),a.debugAlt=new a("debug-alt",{fontCharacter:"\\eb91"}),a.serverProcess=new a("server-process",{fontCharacter:"\\eba2"}),a.serverEnvironment=new a("server-environment",{fontCharacter:"\\eba3"}),a.pass=new a("pass",{fontCharacter:"\\eba4"}),a.stopCircle=new a("stop-circle",{fontCharacter:"\\eba5"}),a.playCircle=new a("play-circle",{fontCharacter:"\\eba6"}),a.record=new a("record",{fontCharacter:"\\eba7"}),a.debugAltSmall=new a("debug-alt-small",{fontCharacter:"\\eba8"}),a.vmConnect=new a("vm-connect",{fontCharacter:"\\eba9"}),a.cloud=new a("cloud",{fontCharacter:"\\ebaa"}),a.merge=new a("merge",{fontCharacter:"\\ebab"}),a.exportIcon=new a("export",{fontCharacter:"\\ebac"}),a.graphLeft=new a("graph-left",{fontCharacter:"\\ebad"}),a.magnet=new a("magnet",{fontCharacter:"\\ebae"}),a.notebook=new a("notebook",{fontCharacter:"\\ebaf"}),a.redo=new a("redo",{fontCharacter:"\\ebb0"}),a.checkAll=new a("check-all",{fontCharacter:"\\ebb1"}),a.pinnedDirty=new a("pinned-dirty",{fontCharacter:"\\ebb2"}),a.passFilled=new a("pass-filled",{fontCharacter:"\\ebb3"}),a.circleLargeFilled=new a("circle-large-filled",{fontCharacter:"\\ebb4"}),a.circleLargeOutline=new a("circle-large-outline",{fontCharacter:"\\ebb5"}),a.combine=new a("combine",{fontCharacter:"\\ebb6"}),a.gather=new a("gather",{fontCharacter:"\\ebb6"}),a.table=new a("table",{fontCharacter:"\\ebb7"}),a.variableGroup=new a("variable-group",{fontCharacter:"\\ebb8"}),a.typeHierarchy=new a("type-hierarchy",{fontCharacter:"\\ebb9"}),a.typeHierarchySub=new a("type-hierarchy-sub",{fontCharacter:"\\ebba"}),a.typeHierarchySuper=new a("type-hierarchy-super",{fontCharacter:"\\ebbb"}),a.gitPullRequestCreate=new a("git-pull-request-create",{fontCharacter:"\\ebbc"}),a.runAbove=new a("run-above",{fontCharacter:"\\ebbd"}),a.runBelow=new a("run-below",{fontCharacter:"\\ebbe"}),a.notebookTemplate=new a("notebook-template",{fontCharacter:"\\ebbf"}),a.debugRerun=new a("debug-rerun",{fontCharacter:"\\ebc0"}),a.workspaceTrusted=new a("workspace-trusted",{fontCharacter:"\\ebc1"}),a.workspaceUntrusted=new a("workspace-untrusted",{fontCharacter:"\\ebc2"}),a.workspaceUnspecified=new a("workspace-unspecified",{fontCharacter:"\\ebc3"}),a.terminalCmd=new a("terminal-cmd",{fontCharacter:"\\ebc4"}),a.terminalDebian=new a("terminal-debian",{fontCharacter:"\\ebc5"}),a.terminalLinux=new a("terminal-linux",{fontCharacter:"\\ebc6"}),a.terminalPowershell=new a("terminal-powershell",{fontCharacter:"\\ebc7"}),a.terminalTmux=new a("terminal-tmux",{fontCharacter:"\\ebc8"}),a.terminalUbuntu=new a("terminal-ubuntu",{fontCharacter:"\\ebc9"}),a.terminalBash=new a("terminal-bash",{fontCharacter:"\\ebca"}),a.arrowSwap=new a("arrow-swap",{fontCharacter:"\\ebcb"}),a.copy=new a("copy",{fontCharacter:"\\ebcc"}),a.personAdd=new a("person-add",{fontCharacter:"\\ebcd"}),a.filterFilled=new a("filter-filled",{fontCharacter:"\\ebce"}),a.wand=new a("wand",{fontCharacter:"\\ebcf"}),a.debugLineByLine=new a("debug-line-by-line",{fontCharacter:"\\ebd0"}),a.inspect=new a("inspect",{fontCharacter:"\\ebd1"}),a.layers=new a("layers",{fontCharacter:"\\ebd2"}),a.layersDot=new a("layers-dot",{fontCharacter:"\\ebd3"}),a.layersActive=new a("layers-active",{fontCharacter:"\\ebd4"}),a.compass=new a("compass",{fontCharacter:"\\ebd5"}),a.compassDot=new a("compass-dot",{fontCharacter:"\\ebd6"}),a.compassActive=new a("compass-active",{fontCharacter:"\\ebd7"}),a.azure=new a("azure",{fontCharacter:"\\ebd8"}),a.issueDraft=new a("issue-draft",{fontCharacter:"\\ebd9"}),a.gitPullRequestClosed=new a("git-pull-request-closed",{fontCharacter:"\\ebda"}),a.gitPullRequestDraft=new a("git-pull-request-draft",{fontCharacter:"\\ebdb"}),a.debugAll=new a("debug-all",{fontCharacter:"\\ebdc"}),a.debugCoverage=new a("debug-coverage",{fontCharacter:"\\ebdd"}),a.runErrors=new a("run-errors",{fontCharacter:"\\ebde"}),a.folderLibrary=new a("folder-library",{fontCharacter:"\\ebdf"}),a.debugContinueSmall=new a("debug-continue-small",{fontCharacter:"\\ebe0"}),a.beakerStop=new a("beaker-stop",{fontCharacter:"\\ebe1"}),a.graphLine=new a("graph-line",{fontCharacter:"\\ebe2"}),a.graphScatter=new a("graph-scatter",{fontCharacter:"\\ebe3"}),a.pieChart=new a("pie-chart",{fontCharacter:"\\ebe4"}),a.bracket=new a("bracket",a.json.definition),a.bracketDot=new a("bracket-dot",{fontCharacter:"\\ebe5"}),a.bracketError=new a("bracket-error",{fontCharacter:"\\ebe6"}),a.lockSmall=new a("lock-small",{fontCharacter:"\\ebe7"}),a.azureDevops=new a("azure-devops",{fontCharacter:"\\ebe8"}),a.verifiedFilled=new a("verified-filled",{fontCharacter:"\\ebe9"})}(ve||(ve={}))},79881:function(Qt,et,p){"use strict";p.d(et,{B8:function(){return L},Cp:function(){return Te},F0:function(){return _e},L6:function(){return A},VV:function(){return ve},b1:function(){return a},dL:function(){return ce},ri:function(){return j}});class M{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(u){setTimeout(()=>{throw u.stack?new Error(u.message+`
`+u.stack):u},0)}}emit(u){this.listeners.forEach(y=>{y(u)})}onUnexpectedError(u){this.unexpectedErrorHandler(u),this.emit(u)}onUnexpectedExternalError(u){this.unexpectedErrorHandler(u)}}const Y=new M;function ce(v){ve(v)||Y.onUnexpectedError(v)}function Te(v){ve(v)||Y.onUnexpectedExternalError(v)}function j(v){if(v instanceof Error){let{name:u,message:y}=v;const b=v.stacktrace||v.stack;return{$isError:!0,name:u,message:y,stack:b}}return v}const X="Canceled";function ve(v){return v instanceof Error&&v.name===X&&v.message===X}function _e(){const v=new Error(X);return v.name=v.message,v}function a(v){return v?new Error(`Illegal argument: ${v}`):new Error("Illegal argument")}function A(v){return v?new Error(`Illegal state: ${v}`):new Error("Illegal state")}class L extends Error{constructor(u){super("NotSupported"),u&&(this.message=u)}}},4348:function(Qt,et,p){"use strict";p.d(et,{D0:function(){return L},E7:function(){return v},K3:function(){return A},Q5:function(){return a},ZD:function(){return u},ju:function(){return j}});var M=p(79881),Y=p(69323),ce=p(34502),Te=p(95830),j;(function(y){y.None=()=>Y.JT.None;function b(le){return(D,Q=null,H)=>{let g=!1,E;return E=le(Z=>{if(!g)return E?E.dispose():g=!0,D.call(Q,Z)},null,H),g&&E.dispose(),E}}y.once=b;function k(le,D){return x((Q,H=null,g)=>le(E=>Q.call(H,D(E)),null,g))}y.map=k;function se(le,D){return x((Q,H=null,g)=>le(E=>{D(E),Q.call(H,E)},null,g))}y.forEach=se;function P(le,D){return x((Q,H=null,g)=>le(E=>D(E)&&Q.call(H,E),null,g))}y.filter=P;function N(le){return le}y.signal=N;function V(...le){return(D,Q=null,H)=>(0,Y.F8)(...le.map(g=>g(E=>D.call(Q,E),null,H)))}y.any=V;function K(le,D,Q){let H=Q;return k(le,g=>(H=D(H,g),H))}y.reduce=K;function x(le){let D;const Q=new a({onFirstListenerAdd(){D=le(Q.fire,Q)},onLastListenerRemove(){D.dispose()}});return Q.event}function T(le,D,Q=100,H=!1,g){let E,Z,pe,ze=0;const Ge=new a({leakWarningThreshold:g,onFirstListenerAdd(){E=le(je=>{ze++,Z=D(Z,je),H&&!pe&&(Ge.fire(Z),Z=void 0),clearTimeout(pe),pe=setTimeout(()=>{const Ve=Z;Z=void 0,pe=void 0,(!H||ze>1)&&Ge.fire(Ve),ze=0},Q)})},onLastListenerRemove(){E.dispose()}});return Ge.event}y.debounce=T;function $(le,D=(Q,H)=>Q===H){let Q=!0,H;return P(le,g=>{const E=Q||!D(g,H);return Q=!1,H=g,E})}y.latch=$;function B(le,D){return[y.filter(le,D),y.filter(le,Q=>!D(Q))]}y.split=B;function fe(le,D=!1,Q=[]){let H=Q.slice(),g=le(pe=>{H?H.push(pe):Z.fire(pe)});const E=()=>{H&&H.forEach(pe=>Z.fire(pe)),H=null},Z=new a({onFirstListenerAdd(){g||(g=le(pe=>Z.fire(pe)))},onFirstListenerDidAdd(){H&&(D?setTimeout(E):E())},onLastListenerRemove(){g&&g.dispose(),g=null}});return Z.event}y.buffer=fe;class ye{constructor(D){this.event=D}map(D){return new ye(k(this.event,D))}forEach(D){return new ye(se(this.event,D))}filter(D){return new ye(P(this.event,D))}reduce(D,Q){return new ye(K(this.event,D,Q))}latch(){return new ye($(this.event))}debounce(D,Q=100,H=!1,g){return new ye(T(this.event,D,Q,H,g))}on(D,Q,H){return this.event(D,Q,H)}once(D,Q,H){return b(this.event)(D,Q,H)}}function Re(le){return new ye(le)}y.chain=Re;function he(le,D,Q=H=>H){const H=(...pe)=>Z.fire(Q(...pe)),g=()=>le.on(D,H),E=()=>le.removeListener(D,H),Z=new a({onFirstListenerAdd:g,onLastListenerRemove:E});return Z.event}y.fromNodeEventEmitter=he;function G(le,D,Q=H=>H){const H=(...pe)=>Z.fire(Q(...pe)),g=()=>le.addEventListener(D,H),E=()=>le.removeEventListener(D,H),Z=new a({onFirstListenerAdd:g,onLastListenerRemove:E});return Z.event}y.fromDOMEventEmitter=G;function F(le){return new Promise(D=>b(le)(D))}y.toPromise=F})(j||(j={}));class X{constructor(b){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${b}_${X._idPool++}`}start(b){this._stopWatch=new Te.G(!0),this._listenerCount=b}stop(){if(this._stopWatch){const b=this._stopWatch.elapsed();this._elapsedOverall+=b,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${b.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}X._idPool=0;let ve=-1;class _e{constructor(b,k=Math.random().toString(18).slice(2,5)){this.customThreshold=b,this.name=k,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(b){let k=ve;if(typeof this.customThreshold=="number"&&(k=this.customThreshold),k<=0||b<k)return;this._stacks||(this._stacks=new Map);const se=new Error().stack.split(`
`).slice(3).join(`
`),P=this._stacks.get(se)||0;if(this._stacks.set(se,P+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=k*.5;let N,V=0;for(const[K,x]of this._stacks)(!N||V<x)&&(N=K,V=x);console.warn(`[${this.name}] potential listener LEAK detected, having ${b} listeners already. MOST frequent listener (${V}):`),console.warn(N)}return()=>{const N=this._stacks.get(se)||0;this._stacks.set(se,N-1)}}}class a{constructor(b){var k;this._disposed=!1,this._options=b,this._leakageMon=ve>0?new _e(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((k=this._options)===null||k===void 0)&&k._profName?new X(this._options._profName):void 0}get event(){return this._event||(this._event=(b,k,se)=>{var P;this._listeners||(this._listeners=new ce.S);const N=this._listeners.isEmpty();N&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const V=this._listeners.push(k?[b,k]:b);N&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,b,k);const K=(P=this._leakageMon)===null||P===void 0?void 0:P.check(this._listeners.size),x=(0,Y.OF)(()=>{K&&K(),this._disposed||(V(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return se instanceof Y.SL?se.add(x):Array.isArray(se)&&se.push(x),x}),this._event}fire(b){var k,se;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new ce.S);for(let P of this._listeners)this._deliveryQueue.push([P,b]);for((k=this._perfMon)===null||k===void 0||k.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[P,N]=this._deliveryQueue.shift();try{typeof P=="function"?P.call(void 0,N):P[0].call(P[1],N)}catch(V){(0,M.dL)(V)}}(se=this._perfMon)===null||se===void 0||se.stop()}}dispose(){var b,k,se,P,N;this._disposed||(this._disposed=!0,(b=this._listeners)===null||b===void 0||b.clear(),(k=this._deliveryQueue)===null||k===void 0||k.clear(),(P=(se=this._options)===null||se===void 0?void 0:se.onLastListenerRemove)===null||P===void 0||P.call(se),(N=this._leakageMon)===null||N===void 0||N.dispose())}}class A extends a{constructor(b){super(b),this._isPaused=0,this._eventQueue=new ce.S,this._mergeFn=b==null?void 0:b.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const b=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(b))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(b){this._listeners&&(this._isPaused!==0?this._eventQueue.push(b):super.fire(b))}}class L extends A{constructor(b){var k;super(b),this._delay=(k=b.delay)!==null&&k!==void 0?k:100}fire(b){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(b)}}class v{constructor(){this.buffers=[]}wrapEvent(b){return(k,se,P)=>b(N=>{const V=this.buffers[this.buffers.length-1];V?V.push(()=>k.call(se,N)):k.call(se,N)},void 0,P)}bufferEvents(b){const k=[];this.buffers.push(k);const se=b();return this.buffers.pop(),k.forEach(P=>P()),se}}class u{constructor(){this.listening=!1,this.inputEvent=j.None,this.inputEventListener=Y.JT.None,this.emitter=new a({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(b){this.inputEvent=b,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=b(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(Qt,et,p){"use strict";p.d(et,{I:function(){return M}});function M(Y){const ce=this;let Te=!1,j;return function(){return Te||(Te=!0,j=Y.apply(ce,arguments)),j}}},88226:function(Qt,et,p){"use strict";p.d(et,{$:function(){return M}});var M;(function(Y){function ce(V){return V&&typeof V=="object"&&typeof V[Symbol.iterator]=="function"}Y.is=ce;const Te=Object.freeze([]);function j(){return Te}Y.empty=j;function*X(V){yield V}Y.single=X;function ve(V){return V||Te}Y.from=ve;function _e(V){return!V||V[Symbol.iterator]().next().done===!0}Y.isEmpty=_e;function a(V){return V[Symbol.iterator]().next().value}Y.first=a;function A(V,K){for(const x of V)if(K(x))return!0;return!1}Y.some=A;function L(V,K){for(const x of V)if(K(x))return x}Y.find=L;function*v(V,K){for(const x of V)K(x)&&(yield x)}Y.filter=v;function*u(V,K){let x=0;for(const T of V)yield K(T,x++)}Y.map=u;function*y(...V){for(const K of V)for(const x of K)yield x}Y.concat=y;function*b(V){for(const K of V)for(const x of K)yield x}Y.concatNested=b;function k(V,K,x){let T=x;for(const $ of V)T=K(T,$);return T}Y.reduce=k;function*se(V,K,x=V.length){for(K<0&&(K+=V.length),x<0?x+=V.length:x>V.length&&(x=V.length);K<x;K++)yield V[K]}Y.slice=se;function P(V,K=Number.POSITIVE_INFINITY){const x=[];if(K===0)return[x,V];const T=V[Symbol.iterator]();for(let $=0;$<K;$++){const B=T.next();if(B.done)return[x,Y.empty()];x.push(B.value)}return[x,{[Symbol.iterator](){return T}}]}Y.consume=P;function N(V,K,x=(T,$)=>T===$){const T=V[Symbol.iterator](),$=K[Symbol.iterator]();for(;;){const B=T.next(),fe=$.next();if(B.done!==fe.done)return!1;if(B.done)return!0;if(!x(B.value,fe.value))return!1}}Y.equals=N})(M||(M={}))},69323:function(Qt,et,p){"use strict";p.d(et,{B9:function(){return u},F8:function(){return y},JT:function(){return se},Jz:function(){return N},OF:function(){return b},SL:function(){return k},Wf:function(){return v},XK:function(){return P},dk:function(){return A}});var M=p(17845),Y=p(88226);const ce=!1;let Te=null;function j(V){Te=V}if(ce){const V="__is_disposable_tracked__";j(new class{trackDisposable(K){const x=new Error("Potentially leaked disposable").stack;setTimeout(()=>{K[V]||console.log(x)},3e3)}setParent(K,x){if(K&&K!==se.None)try{K[V]=!0}catch(T){}}markAsDisposed(K){if(K&&K!==se.None)try{K[V]=!0}catch(x){}}markAsSingleton(K){}})}function X(V){return Te==null||Te.trackDisposable(V),V}function ve(V){Te==null||Te.markAsDisposed(V)}function _e(V,K){Te==null||Te.setParent(V,K)}function a(V,K){if(Te)for(const x of V)Te.setParent(x,K)}function A(V){return Te==null||Te.markAsSingleton(V),V}class L extends Error{constructor(K){super(`Encountered errors while disposing of store. Errors: [${K.join(", ")}]`),this.errors=K}}function v(V){return typeof V.dispose=="function"&&V.dispose.length===0}function u(V){if(Y.$.is(V)){let K=[];for(const x of V)if(x)try{x.dispose()}catch(T){K.push(T)}if(K.length===1)throw K[0];if(K.length>1)throw new L(K);return Array.isArray(V)?[]:V}else if(V)return V.dispose(),V}function y(...V){const K=b(()=>u(V));return a(V,K),K}function b(V){const K=X({dispose:(0,M.I)(()=>{ve(K),V()})});return K}class k{constructor(){this._toDispose=new Set,this._isDisposed=!1,X(this)}dispose(){this._isDisposed||(ve(this),this._isDisposed=!0,this.clear())}clear(){try{u(this._toDispose.values())}finally{this._toDispose.clear()}}add(K){if(!K)return K;if(K===this)throw new Error("Cannot register a disposable on itself!");return _e(K,this),this._isDisposed?k.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(K),K}}k.DISABLE_DISPOSED_WARNING=!1;class se{constructor(){this._store=new k,X(this),_e(this._store,this)}dispose(){ve(this),this._store.dispose()}_register(K){if(K===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(K)}}se.None=Object.freeze({dispose(){}});class P{constructor(){this._isDisposed=!1,X(this)}get value(){return this._isDisposed?void 0:this._value}set value(K){var x;this._isDisposed||K===this._value||((x=this._value)===null||x===void 0||x.dispose(),K&&_e(K,this),this._value=K)}clear(){this.value=void 0}dispose(){var K;this._isDisposed=!0,ve(this),(K=this._value)===null||K===void 0||K.dispose(),this._value=void 0}clearAndLeak(){const K=this._value;return this._value=void 0,K&&_e(K,null),K}}class N{constructor(K){this.object=K}dispose(){}}},34502:function(Qt,et,p){"use strict";p.d(et,{S:function(){return Y}});class M{constructor(Te){this.element=Te,this.next=M.Undefined,this.prev=M.Undefined}}M.Undefined=new M(void 0);class Y{constructor(){this._first=M.Undefined,this._last=M.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===M.Undefined}clear(){let Te=this._first;for(;Te!==M.Undefined;){const j=Te.next;Te.prev=M.Undefined,Te.next=M.Undefined,Te=j}this._first=M.Undefined,this._last=M.Undefined,this._size=0}unshift(Te){return this._insert(Te,!1)}push(Te){return this._insert(Te,!0)}_insert(Te,j){const X=new M(Te);if(this._first===M.Undefined)this._first=X,this._last=X;else if(j){const _e=this._last;this._last=X,X.prev=_e,_e.next=X}else{const _e=this._first;this._first=X,X.next=_e,_e.prev=X}this._size+=1;let ve=!1;return()=>{ve||(ve=!0,this._remove(X))}}shift(){if(this._first!==M.Undefined){const Te=this._first.element;return this._remove(this._first),Te}}pop(){if(this._last!==M.Undefined){const Te=this._last.element;return this._remove(this._last),Te}}_remove(Te){if(Te.prev!==M.Undefined&&Te.next!==M.Undefined){const j=Te.prev;j.next=Te.next,Te.next.prev=j}else Te.prev===M.Undefined&&Te.next===M.Undefined?(this._first=M.Undefined,this._last=M.Undefined):Te.next===M.Undefined?(this._last=this._last.prev,this._last.next=M.Undefined):Te.prev===M.Undefined&&(this._first=this._first.next,this._first.prev=M.Undefined);this._size-=1}*[Symbol.iterator](){let Te=this._first;for(;Te!==M.Undefined;)yield Te.element,Te=Te.next}}},23345:function(Qt,et,p){"use strict";p.d(et,{$L:function(){return T},ED:function(){return N},IJ:function(){return K},OS:function(){return ye},WE:function(){return B},dz:function(){return V},gn:function(){return $},li:function(){return b},r:function(){return G},tY:function(){return x},xS:function(){return fe}});var M=p(97671),Y;const ce="en";let Te=!1,j=!1,X=!1,ve=!1,_e=!1,a=!1,A=!1,L,v=null,u=null,y;const b=typeof self=="object"?self:typeof p.g=="object"?p.g:{};let k;typeof b.vscode!="undefined"&&typeof b.vscode.process!="undefined"?k=b.vscode.process:typeof M!="undefined"&&(k=M);const se=typeof((Y=k==null?void 0:k.versions)===null||Y===void 0?void 0:Y.electron)=="string"&&k.type==="renderer";if(typeof navigator=="object"&&!se)y=navigator.userAgent,Te=y.indexOf("Windows")>=0,j=y.indexOf("Macintosh")>=0,A=(y.indexOf("Macintosh")>=0||y.indexOf("iPad")>=0||y.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,X=y.indexOf("Linux")>=0,a=!0,L=navigator.language,v=L;else if(typeof k=="object"){Te=k.platform==="win32",j=k.platform==="darwin",X=k.platform==="linux",ve=X&&!!k.env.SNAP&&!!k.env.SNAP_REVISION,L=ce,v=ce;const F=k.env.VSCODE_NLS_CONFIG;if(F)try{const le=JSON.parse(F),D=le.availableLanguages["*"];L=le.locale,v=D||ce,u=le._translationsConfigFile}catch(le){}_e=!0}else console.error("Unable to resolve platform.");let P=0;j?P=1:Te?P=3:X&&(P=2);const N=Te,V=j,K=X,x=_e,T=a,$=A,B=y,fe=function(){if(b.setImmediate)return b.setImmediate.bind(b);if(typeof b.postMessage=="function"&&!b.importScripts){let D=[];b.addEventListener("message",H=>{if(H.data&&H.data.vscodeSetImmediateId)for(let g=0,E=D.length;g<E;g++){const Z=D[g];if(Z.id===H.data.vscodeSetImmediateId){D.splice(g,1),Z.callback();return}}});let Q=0;return H=>{const g=++Q;D.push({id:g,callback:H}),b.postMessage({vscodeSetImmediateId:g},"*")}}if(typeof(k==null?void 0:k.nextTick)=="function")return k.nextTick.bind(k);const le=Promise.resolve();return D=>le.then(D)}(),ye=j||A?2:Te?1:3;let Re=!0,he=!1;function G(){if(!he){he=!0;const F=new Uint8Array(2);F[0]=1,F[1]=2,Re=new Uint16Array(F.buffer)[0]===513}return Re}},95830:function(Qt,et,p){"use strict";p.d(et,{G:function(){return ce}});var M=p(23345);const Y=M.li.performance&&typeof M.li.performance.now=="function";class ce{constructor(j){this._highResolution=Y&&j,this._startTime=this._now(),this._stopTime=-1}static create(j=!0){return new ce(j)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?M.li.performance.now():Date.now()}}},82983:function(Qt,et,p){"use strict";p.d(et,{$i:function(){return ze},C8:function(){return pt},GF:function(){return L},HO:function(){return Q},IO:function(){return v},K7:function(){return mt},Kw:function(){return Jt},LC:function(){return b},Mh:function(){return fe},P1:function(){return ye},PJ:function(){return sn},Qe:function(){return Ge},R1:function(){return A},RP:function(){return Z},S6:function(){return Ut},TT:function(){return N},Ut:function(){return g},V8:function(){return k},WU:function(){return ce},YK:function(){return he},YU:function(){return Te},ZG:function(){return Re},ZH:function(){return F},ab:function(){return je},c1:function(){return nt},df:function(){return T},ec:function(){return j},fi:function(){return Xt},fy:function(){return X},j3:function(){return ve},j_:function(){return K},m5:function(){return M},mK:function(){return x},mr:function(){return u},oH:function(){return ge},oL:function(){return _e},ok:function(){return B},ow:function(){return se},qq:function(){return $},qu:function(){return P},rL:function(){return G},uS:function(){return Gt},un:function(){return a},uq:function(){return y},vH:function(){return D},xe:function(){return Ve},zY:function(){return V}});function M(O){return!O||typeof O!="string"?!0:O.trim().length===0}const Y=/{(\d+)}/g;function ce(O,...ae){return ae.length===0?O:O.replace(Y,function(J,oe){const de=parseInt(oe,10);return isNaN(de)||de<0||de>=ae.length?J:ae[de]})}function Te(O){return O.replace(/[<>&]/g,function(ae){switch(ae){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return ae}})}function j(O){return O.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function X(O,ae=" "){const J=ve(O,ae);return _e(J,ae)}function ve(O,ae){if(!O||!ae)return O;const J=ae.length;if(J===0||O.length===0)return O;let oe=0;for(;O.indexOf(ae,oe)===oe;)oe=oe+J;return O.substring(oe)}function _e(O,ae){if(!O||!ae)return O;const J=ae.length,oe=O.length;if(J===0||oe===0)return O;let de=oe,Ce=-1;for(;Ce=O.lastIndexOf(ae,de-1),!(Ce===-1||Ce+J!==de);){if(Ce===0)return"";de=Ce}return O.substring(0,de)}function a(O){return O.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function A(O){return O.replace(/\*/g,"")}function L(O,ae,J={}){if(!O)throw new Error("Cannot create regex from empty string");ae||(O=j(O)),J.wholeWord&&(/\B/.test(O.charAt(0))||(O="\\b"+O),/\B/.test(O.charAt(O.length-1))||(O=O+"\\b"));let oe="";return J.global&&(oe+="g"),J.matchCase||(oe+="i"),J.multiline&&(oe+="m"),J.unicode&&(oe+="u"),new RegExp(O,oe)}function v(O){return O.source==="^"||O.source==="^$"||O.source==="$"||O.source==="^\\s*$"?!1:!!(O.exec("")&&O.lastIndex===0)}function u(O){return(O.global?"g":"")+(O.ignoreCase?"i":"")+(O.multiline?"m":"")+(O.unicode?"u":"")}function y(O){return O.split(/\r\n|\r|\n/)}function b(O){for(let ae=0,J=O.length;ae<J;ae++){const oe=O.charCodeAt(ae);if(oe!==32&&oe!==9)return ae}return-1}function k(O,ae=0,J=O.length){for(let oe=ae;oe<J;oe++){const de=O.charCodeAt(oe);if(de!==32&&de!==9)return O.substring(ae,oe)}return O.substring(ae,J)}function se(O,ae=O.length-1){for(let J=ae;J>=0;J--){const oe=O.charCodeAt(J);if(oe!==32&&oe!==9)return J}return-1}function P(O,ae){return O<ae?-1:O>ae?1:0}function N(O,ae,J=0,oe=O.length,de=0,Ce=ae.length){for(;J<oe&&de<Ce;J++,de++){let Ie=O.charCodeAt(J),Pe=ae.charCodeAt(de);if(Ie<Pe)return-1;if(Ie>Pe)return 1}const xe=oe-J,ke=Ce-de;return xe<ke?-1:xe>ke?1:0}function V(O,ae){return K(O,ae,0,O.length,0,ae.length)}function K(O,ae,J=0,oe=O.length,de=0,Ce=ae.length){for(;J<oe&&de<Ce;J++,de++){let Ie=O.charCodeAt(J),Pe=ae.charCodeAt(de);if(Ie===Pe)continue;if(Ie>=128||Pe>=128)return N(O.toLowerCase(),ae.toLowerCase(),J,oe,de,Ce);x(Ie)&&(Ie-=32),x(Pe)&&(Pe-=32);const Xe=Ie-Pe;if(Xe!==0)return Xe}const xe=oe-J,ke=Ce-de;return xe<ke?-1:xe>ke?1:0}function x(O){return O>=97&&O<=122}function T(O){return O>=65&&O<=90}function $(O,ae){return O.length===ae.length&&K(O,ae)===0}function B(O,ae){const J=ae.length;return ae.length>O.length?!1:K(O,ae,0,J)===0}function fe(O,ae){let J,oe=Math.min(O.length,ae.length);for(J=0;J<oe;J++)if(O.charCodeAt(J)!==ae.charCodeAt(J))return J;return oe}function ye(O,ae){let J,oe=Math.min(O.length,ae.length);const de=O.length-1,Ce=ae.length-1;for(J=0;J<oe;J++)if(O.charCodeAt(de-J)!==ae.charCodeAt(Ce-J))return J;return oe}function Re(O){return 55296<=O&&O<=56319}function he(O){return 56320<=O&&O<=57343}function G(O,ae){return(O-55296<<10)+(ae-56320)+65536}function F(O,ae,J){const oe=O.charCodeAt(J);if(Re(oe)&&J+1<ae){const de=O.charCodeAt(J+1);if(he(de))return G(oe,de)}return oe}function le(O,ae){const J=O.charCodeAt(ae-1);if(he(J)&&ae>1){const oe=O.charCodeAt(ae-2);if(Re(oe))return G(oe,J)}return J}function D(O,ae){const J=it.getInstance(),oe=ae,de=O.length,Ce=F(O,de,ae);ae+=Ce>=65536?2:1;let xe=J.getGraphemeBreakType(Ce);for(;ae<de;){const ke=F(O,de,ae),Ie=J.getGraphemeBreakType(ke);if(Xt(xe,Ie))break;ae+=ke>=65536?2:1,xe=Ie}return ae-oe}function Q(O,ae){const J=it.getInstance(),oe=ae,de=le(O,ae);ae-=de>=65536?2:1;let Ce=J.getGraphemeBreakType(de);for(;ae>0;){const xe=le(O,ae),ke=J.getGraphemeBreakType(xe);if(Xt(ke,Ce))break;ae-=xe>=65536?2:1,Ce=ke}return oe-ae}const H=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function g(O){return H.test(O)}const E=/(?:[\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(O){return E.test(O)}const pe=/^[\t\n\r\x20-\x7E]*$/;function ze(O){return pe.test(O)}const Ge=/[\u2028\u2029]/;function je(O){return Ge.test(O)}function Ve(O){for(let ae=0,J=O.length;ae<J;ae++)if(mt(O.charCodeAt(ae)))return!0;return!1}function mt(O){return O=+O,O>=11904&&O<=55215||O>=63744&&O<=64255||O>=65281&&O<=65374}function pt(O){return O>=127462&&O<=127487||O===8986||O===8987||O===9200||O===9203||O>=9728&&O<=10175||O===11088||O===11093||O>=127744&&O<=128591||O>=128640&&O<=128764||O>=128992&&O<=129003||O>=129280&&O<=129535||O>=129648&&O<=129750}const nt="\uFEFF";function Gt(O){return!!(O&&O.length>0&&O.charCodeAt(0)===65279)}function Jt(O,ae=!1){return O?(ae&&(O=O.replace(/\\./g,"")),O.toLowerCase()!==O):!1}function sn(O){return O=O%(2*26),O<26?String.fromCharCode(97+O):String.fromCharCode(65+O-26)}function Ut(O){return it.getInstance().getGraphemeBreakType(O)}function Xt(O,ae){return O===0?ae!==5&&ae!==7:O===2&&ae===3?!1:O===4||O===2||O===3||ae===4||ae===2||ae===3?!0:!(O===8&&(ae===8||ae===9||ae===11||ae===12)||(O===11||O===9)&&(ae===9||ae===10)||(O===12||O===10)&&ae===10||ae===5||ae===13||ae===7||O===1||O===13&&ae===14||O===6&&ae===6)}class it{constructor(){this._data=te()}static getInstance(){return it._INSTANCE||(it._INSTANCE=new it),it._INSTANCE}getGraphemeBreakType(ae){if(ae<32)return ae===10?3:ae===13?2:4;if(ae<127)return 0;const J=this._data,oe=J.length/3;let de=1;for(;de<=oe;)if(ae<J[3*de])de=2*de;else if(ae>J[3*de+1])de=2*de+1;else return J[3*de+2];return 0}}it._INSTANCE=null;function te(){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 ge(O,ae){if(O===0)return 0;const J=q(O,ae);if(J!==void 0)return J;const oe=le(ae,O);return O-=z(oe),O}function q(O,ae){let J=le(ae,O);for(O-=z(J);De(J)||J===65039||J===8419;){if(O===0)return;J=le(ae,O),O-=z(J)}if(pt(J)){if(O>=0){const oe=le(ae,O);oe===8205&&(O-=z(oe))}return O}}function z(O){return O>=65536?2:1}function De(O){return 127995<=O&&O<=127999}},72999:function(Qt,et,p){"use strict";p.d(et,{$E:function(){return b},$K:function(){return ve},D8:function(){return v},HD:function(){return Y},IU:function(){return k},Jp:function(){return _e},Kn:function(){return ce},cW:function(){return A},f6:function(){return se},hj:function(){return Te},jn:function(){return j},kJ:function(){return M},mf:function(){return L},o8:function(){return X},p_:function(){return a},vE:function(){return P}});function M(N){return Array.isArray(N)}function Y(N){return typeof N=="string"}function ce(N){return typeof N=="object"&&N!==null&&!Array.isArray(N)&&!(N instanceof RegExp)&&!(N instanceof Date)}function Te(N){return typeof N=="number"&&!isNaN(N)}function j(N){return N===!0||N===!1}function X(N){return typeof N=="undefined"}function ve(N){return!_e(N)}function _e(N){return X(N)||N===null}function a(N,V){if(!N)throw new Error(V?`Unexpected type, expected '${V}'`:"Unexpected type")}function A(N){if(_e(N))throw new Error("Assertion Failed: argument is undefined or null");return N}function L(N){return typeof N=="function"}function v(N,V){const K=Math.min(N.length,V.length);for(let x=0;x<K;x++)u(N[x],V[x])}function u(N,V){if(Y(V)){if(typeof N!==V)throw new Error(`argument does not match constraint: typeof ${V}`)}else if(L(V)){try{if(N instanceof V)return}catch(K){}if(!_e(N)&&N.constructor===V||V.length===1&&V.call(void 0,N)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function y(N){let V=[],K=Object.getPrototypeOf(N);for(;Object.prototype!==K;)V=V.concat(Object.getOwnPropertyNames(K)),K=Object.getPrototypeOf(K);return V}function b(N){const V=[];for(const K of y(N))typeof N[K]=="function"&&V.push(K);return V}function k(N,V){const K=T=>function(){const $=Array.prototype.slice.call(arguments,0);return V(T,$)};let x={};for(const T of N)x[T]=K(T);return x}function se(N){return N===null?void 0:N}function P(N,V="Unreachable"){throw new Error(V)}},13268:function(Qt,et,p){"use strict";p.d(et,{N:function(){return Y}});function M(ce,Te){let j;return Te.length===0?j=ce:j=ce.replace(/\{(\d+)\}/g,function(X,ve){const _e=ve[0];return typeof Te[_e]!="undefined"?Te[_e]:X}),j}function Y(ce,Te,...j){return M(Te,j)}},96236:function(Qt,et,p){"use strict";p.d(et,{BH:function(){return k},NZ:function(){return se},U8:function(){return P},co:function(){return b},eH:function(){return y},vr:function(){return u}});var M=p(75918),Y=p(52615),ce=p(4348),Te=p(88226),j=p(69323),X=p(34502),ve=p(35884),_e=p(90689),a=p(16925),A=p(49055),L=function(N,V,K,x){var T=arguments.length,$=T<3?V:x===null?x=Object.getOwnPropertyDescriptor(V,K):x,B;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")$=Reflect.decorate(N,V,K,x);else for(var fe=N.length-1;fe>=0;fe--)(B=N[fe])&&($=(T<3?B($):T>3?B(V,K,$):B(V,K))||$);return T>3&&$&&Object.defineProperty(V,K,$),$},v=function(N,V){return function(K,x){V(K,x,N)}};function u(N){return N.command!==void 0}class y{constructor(V){this.id=y._idPool++,this._debugName=V}}y._idPool=0,y.CommandPalette=new y("CommandPalette"),y.EditorContext=new y("EditorContext"),y.SimpleEditorContext=new y("SimpleEditorContext"),y.EditorContextCopy=new y("EditorContextCopy"),y.EditorContextPeek=new y("EditorContextPeek"),y.MenubarEditMenu=new y("MenubarEditMenu"),y.MenubarCopy=new y("MenubarCopy"),y.MenubarGoMenu=new y("MenubarGoMenu"),y.MenubarSelectionMenu=new y("MenubarSelectionMenu"),y.InlineCompletionsActions=new y("InlineCompletionsActions");const b=(0,a.yh)("menuService"),k=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new ce.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:N=>N===y.CommandPalette}}addCommand(N){return this.addCommands(Te.$.single(N))}addCommands(N){for(const V of N)this._commands.set(V.id,V);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,j.OF)(()=>{let V=!1;for(const K of N)V=this._commands.delete(K.id)||V;V&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(N){return this._commands.get(N)}getCommands(){const N=new Map;return this._commands.forEach((V,K)=>N.set(K,V)),N}appendMenuItem(N,V){return this.appendMenuItems(Te.$.single({id:N,item:V}))}appendMenuItems(N){const V=new Set,K=new X.S;for(const{id:x,item:T}of N){let $=this._menuItems.get(x);$||($=new X.S,this._menuItems.set(x,$)),K.push($.push(T)),V.add(x)}return this._onDidChangeMenu.fire(V),(0,j.OF)(()=>{if(K.size>0){for(let x of K)x();this._onDidChangeMenu.fire(V),K.clear()}})}getMenuItems(N){let V;return this._menuItems.has(N)?V=[...this._menuItems.get(N)]:V=[],N===y.CommandPalette&&this._appendImplicitItems(V),V}_appendImplicitItems(N){const V=new Set;for(const K of N)u(K)&&(V.add(K.command.id),K.alt&&V.add(K.alt.id));this._commands.forEach((K,x)=>{V.has(x)||N.push({command:K})})}};class se extends M.wY{constructor(V,K,x,T){super(`submenuitem.${V.submenu.id}`,typeof V.title=="string"?V.title:V.title.value,[],"submenu"),this.item=V,this._menuService=K,this._contextKeyService=x,this._options=T}get actions(){const V=[],K=this._menuService.createMenu(this.item.submenu,this._contextKeyService),x=K.getActions(this._options);K.dispose();for(const[,T]of x)T.length>0&&(V.push(...T),V.push(new M.Z0));return V.length&&V.pop(),V}}let P=class Qo{constructor(V,K,x,T,$){var B,fe;if(this._commandService=$,this.id=V.id,this.label=x!=null&&x.renderShortTitle&&V.shortTitle?typeof V.shortTitle=="string"?V.shortTitle:V.shortTitle.value:typeof V.title=="string"?V.title:V.title.value,this.tooltip=(fe=typeof V.tooltip=="string"?V.tooltip:(B=V.tooltip)===null||B===void 0?void 0:B.value)!==null&&fe!==void 0?fe:"",this.enabled=!V.precondition||T.contextMatchesRules(V.precondition),this.checked=void 0,V.toggled){const ye=V.toggled.condition?V.toggled:{condition:V.toggled};this.checked=T.contextMatchesRules(ye.condition),this.checked&&ye.tooltip&&(this.tooltip=typeof ye.tooltip=="string"?ye.tooltip:ye.tooltip.value),ye.title&&(this.label=typeof ye.title=="string"?ye.title:ye.title.value)}this.item=V,this.alt=K?new Qo(K,void 0,x,T,$):void 0,this._options=x,A.kS.isThemeIcon(V.icon)&&(this.class=Y.dT.asClassName(V.icon))}dispose(){}run(...V){var K,x;let T=[];return!((K=this._options)===null||K===void 0)&&K.arg&&(T=[...T,this._options.arg]),!((x=this._options)===null||x===void 0)&&x.shouldForwardArgs&&(T=[...T,...V]),this._commandService.executeCommand(this.id,...T)}};P=L([v(3,_e.i6),v(4,ve.H)],P)},35884:function(Qt,et,p){"use strict";p.d(et,{H:function(){return ve},P:function(){return _e}});var M=p(4348),Y=p(88226),ce=p(69323),Te=p(34502),j=p(72999),X=p(16925);const ve=(0,X.yh)("commandService"),_e=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new M.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(a,A){if(!a)throw new Error("invalid command");if(typeof a=="string"){if(!A)throw new Error("invalid command");return this.registerCommand({id:a,handler:A})}if(a.description){const b=[];for(let se of a.description.args)b.push(se.constraint);const k=a.handler;a.handler=function(se,...P){return(0,j.D8)(P,b),k(se,...P)}}const{id:L}=a;let v=this._commands.get(L);v||(v=new Te.S,this._commands.set(L,v));let u=v.unshift(a),y=(0,ce.OF)(()=>{u();const b=this._commands.get(L);b!=null&&b.isEmpty()&&this._commands.delete(L)});return this._onDidRegisterCommand.fire(L),y}registerCommandAlias(a,A){return _e.registerCommand(a,(L,...v)=>L.get(ve).executeCommand(A,...v))}getCommand(a){const A=this._commands.get(a);if(!(!A||A.isEmpty()))return Y.$.first(A)}getCommands(){const a=new Map;for(const A of this._commands.keys()){const L=this.getCommand(A);L&&a.set(A,L)}return a}};_e.registerCommand("noop",()=>{})},90689:function(Qt,et,p){"use strict";p.d(et,{Ao:function(){return ve},Eq:function(){return G},Fb:function(){return _e},K8:function(){return D},i6:function(){return he},uy:function(){return Re}});var M=p(23345),Y=p(82983),ce=p(16925);let Te=M.WE||"";const j=new Map;j.set("false",!1),j.set("true",!0),j.set("isMac",M.dz),j.set("isLinux",M.IJ),j.set("isWindows",M.ED),j.set("isWeb",M.$L),j.set("isMacNative",M.dz&&!M.$L),j.set("isEdge",Te.indexOf("Edg/")>=0),j.set("isFirefox",Te.indexOf("Firefox")>=0),j.set("isChrome",Te.indexOf("Chrome")>=0),j.set("isSafari",Te.indexOf("Safari")>=0);const X=Object.prototype.hasOwnProperty;class ve{static has(g){return v.create(g)}static equals(g,E){return u.create(g,E)}static regex(g,E){return T.create(g,E)}static not(g){return se.create(g)}static and(...g){return fe.create(g,null)}static or(...g){return ye.create(g,null,!0)}static deserialize(g,E=!1){if(g)return this._deserializeOrExpression(g,E)}static _deserializeOrExpression(g,E){let Z=g.split("||");return ye.create(Z.map(pe=>this._deserializeAndExpression(pe,E)),null,!0)}static _deserializeAndExpression(g,E){let Z=g.split("&&");return fe.create(Z.map(pe=>this._deserializeOne(pe,E)),null)}static _deserializeOne(g,E){if(g=g.trim(),g.indexOf("!=")>=0){let Z=g.split("!=");return k.create(Z[0].trim(),this._deserializeValue(Z[1],E))}if(g.indexOf("==")>=0){let Z=g.split("==");return u.create(Z[0].trim(),this._deserializeValue(Z[1],E))}if(g.indexOf("=~")>=0){let Z=g.split("=~");return T.create(Z[0].trim(),this._deserializeRegexValue(Z[1],E))}if(g.indexOf(" in ")>=0){let Z=g.split(" in ");return y.create(Z[0].trim(),Z[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(g)){const Z=g.split(">=");return V.create(Z[0].trim(),Z[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(g)){const Z=g.split(">");return N.create(Z[0].trim(),Z[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(g)){const Z=g.split("<=");return x.create(Z[0].trim(),Z[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(g)){const Z=g.split("<");return K.create(Z[0].trim(),Z[1].trim())}return/^\!\s*/.test(g)?se.create(g.substr(1).trim()):v.create(g)}static _deserializeValue(g,E){if(g=g.trim(),g==="true")return!0;if(g==="false")return!1;let Z=/^'([^']*)'$/.exec(g);return Z?Z[1].trim():g}static _deserializeRegexValue(g,E){if((0,Y.m5)(g)){if(E)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let Z=g.indexOf("/"),pe=g.lastIndexOf("/");if(Z===pe||Z<0){if(E)throw new Error(`bad regexp-value '${g}', missing /-enclosure`);return console.warn(`bad regexp-value '${g}', missing /-enclosure`),null}let ze=g.slice(Z+1,pe),Ge=g[pe+1]==="i"?"i":"";try{return new RegExp(ze,Ge)}catch(je){if(E)throw new Error(`bad regexp-value '${g}', parse error: ${je}`);return console.warn(`bad regexp-value '${g}', parse error: ${je}`),null}}}function _e(H,g){const E=H?H.substituteConstants():void 0,Z=g?g.substituteConstants():void 0;return!E&&!Z?!0:!E||!Z?!1:E.equals(Z)}function a(H,g){return H.cmp(g)}class A{constructor(){this.type=0}cmp(g){return this.type-g.type}equals(g){return g.type===this.type}substituteConstants(){return this}evaluate(g){return!1}serialize(){return"false"}keys(){return[]}negate(){return L.INSTANCE}}A.INSTANCE=new A;class L{constructor(){this.type=1}cmp(g){return this.type-g.type}equals(g){return g.type===this.type}substituteConstants(){return this}evaluate(g){return!0}serialize(){return"true"}keys(){return[]}negate(){return A.INSTANCE}}L.INSTANCE=new L;class v{constructor(g,E){this.key=g,this.negated=E,this.type=2}static create(g,E=null){const Z=j.get(g);return typeof Z=="boolean"?Z?L.INSTANCE:A.INSTANCE:new v(g,E)}cmp(g){return g.type!==this.type?this.type-g.type:F(this.key,g.key)}equals(g){return g.type===this.type?this.key===g.key:!1}substituteConstants(){const g=j.get(this.key);return typeof g=="boolean"?g?L.INSTANCE:A.INSTANCE:this}evaluate(g){return!!g.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 u{constructor(g,E,Z){this.key=g,this.value=E,this.negated=Z,this.type=4}static create(g,E,Z=null){if(typeof E=="boolean")return E?v.create(g,Z):se.create(g,Z);const pe=j.get(g);return typeof pe=="boolean"?E===(pe?"true":"false")?L.INSTANCE:A.INSTANCE:new u(g,E,Z)}cmp(g){return g.type!==this.type?this.type-g.type:le(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){const g=j.get(this.key);if(typeof g=="boolean"){const E=g?"true":"false";return this.value===E?L.INSTANCE:A.INSTANCE}return this}evaluate(g){return g.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=k.create(this.key,this.value,this)),this.negated}}class y{constructor(g,E){this.key=g,this.valueKey=E,this.type=10,this.negated=null}static create(g,E){return new y(g,E)}cmp(g){return g.type!==this.type?this.type-g.type:le(this.key,this.valueKey,g.key,g.valueKey)}equals(g){return g.type===this.type?this.key===g.key&&this.valueKey===g.valueKey:!1}substituteConstants(){return this}evaluate(g){const E=g.getValue(this.valueKey),Z=g.getValue(this.key);return Array.isArray(E)?E.indexOf(Z)>=0:typeof Z=="string"&&typeof E=="object"&&E!==null?X.call(E,Z):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=b.create(this)),this.negated}}class b{constructor(g){this._actual=g,this.type=11}static create(g){return new b(g)}cmp(g){return g.type!==this.type?this.type-g.type:this._actual.cmp(g._actual)}equals(g){return g.type===this.type?this._actual.equals(g._actual):!1}substituteConstants(){return this}evaluate(g){return!this._actual.evaluate(g)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class k{constructor(g,E,Z){this.key=g,this.value=E,this.negated=Z,this.type=5}static create(g,E,Z=null){if(typeof E=="boolean")return E?se.create(g,Z):v.create(g,Z);const pe=j.get(g);return typeof pe=="boolean"?E===(pe?"true":"false")?A.INSTANCE:L.INSTANCE:new k(g,E,Z)}cmp(g){return g.type!==this.type?this.type-g.type:le(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){const g=j.get(this.key);if(typeof g=="boolean"){const E=g?"true":"false";return this.value===E?A.INSTANCE:L.INSTANCE}return this}evaluate(g){return g.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=u.create(this.key,this.value,this)),this.negated}}class se{constructor(g,E){this.key=g,this.negated=E,this.type=3}static create(g,E=null){const Z=j.get(g);return typeof Z=="boolean"?Z?A.INSTANCE:L.INSTANCE:new se(g,E)}cmp(g){return g.type!==this.type?this.type-g.type:F(this.key,g.key)}equals(g){return g.type===this.type?this.key===g.key:!1}substituteConstants(){const g=j.get(this.key);return typeof g=="boolean"?g?A.INSTANCE:L.INSTANCE:this}evaluate(g){return!g.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=v.create(this.key,this)),this.negated}}function P(H,g){if(typeof H=="string"){const E=parseFloat(H);isNaN(E)||(H=E)}return typeof H=="string"||typeof H=="number"?g(H):A.INSTANCE}class N{constructor(g,E,Z){this.key=g,this.value=E,this.negated=Z,this.type=12}static create(g,E,Z=null){return P(E,pe=>new N(g,pe,Z))}cmp(g){return g.type!==this.type?this.type-g.type:le(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){return this}evaluate(g){return typeof this.value=="string"?!1:parseFloat(g.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=x.create(this.key,this.value,this)),this.negated}}class V{constructor(g,E,Z){this.key=g,this.value=E,this.negated=Z,this.type=13}static create(g,E,Z=null){return P(E,pe=>new V(g,pe,Z))}cmp(g){return g.type!==this.type?this.type-g.type:le(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){return this}evaluate(g){return typeof this.value=="string"?!1:parseFloat(g.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=K.create(this.key,this.value,this)),this.negated}}class K{constructor(g,E,Z){this.key=g,this.value=E,this.negated=Z,this.type=14}static create(g,E,Z=null){return P(E,pe=>new K(g,pe,Z))}cmp(g){return g.type!==this.type?this.type-g.type:le(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){return this}evaluate(g){return typeof this.value=="string"?!1:parseFloat(g.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=V.create(this.key,this.value,this)),this.negated}}class x{constructor(g,E,Z){this.key=g,this.value=E,this.negated=Z,this.type=15}static create(g,E,Z=null){return P(E,pe=>new x(g,pe,Z))}cmp(g){return g.type!==this.type?this.type-g.type:le(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){return this}evaluate(g){return typeof this.value=="string"?!1:parseFloat(g.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=N.create(this.key,this.value,this)),this.negated}}class T{constructor(g,E){this.key=g,this.regexp=E,this.type=7,this.negated=null}static create(g,E){return new T(g,E)}cmp(g){if(g.type!==this.type)return this.type-g.type;if(this.key<g.key)return-1;if(this.key>g.key)return 1;const E=this.regexp?this.regexp.source:"",Z=g.regexp?g.regexp.source:"";return E<Z?-1:E>Z?1:0}equals(g){if(g.type===this.type){const E=this.regexp?this.regexp.source:"",Z=g.regexp?g.regexp.source:"";return this.key===g.key&&E===Z}return!1}substituteConstants(){return this}evaluate(g){let E=g.getValue(this.key);return this.regexp?this.regexp.test(E):!1}serialize(){const g=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${g}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=$.create(this)),this.negated}}class ${constructor(g){this._actual=g,this.type=8}static create(g){return new $(g)}cmp(g){return g.type!==this.type?this.type-g.type:this._actual.cmp(g._actual)}equals(g){return g.type===this.type?this._actual.equals(g._actual):!1}substituteConstants(){return this}evaluate(g){return!this._actual.evaluate(g)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function B(H){let g=null;for(let E=0,Z=H.length;E<Z;E++){const pe=H[E].substituteConstants();if(H[E]!==pe&&g===null){g=[];for(let ze=0;ze<E;ze++)g[ze]=H[ze]}g!==null&&(g[E]=pe)}return g===null?H:g}class fe{constructor(g,E){this.expr=g,this.negated=E,this.type=6}static create(g,E){return fe._normalizeArr(g,E)}cmp(g){if(g.type!==this.type)return this.type-g.type;if(this.expr.length<g.expr.length)return-1;if(this.expr.length>g.expr.length)return 1;for(let E=0,Z=this.expr.length;E<Z;E++){const pe=a(this.expr[E],g.expr[E]);if(pe!==0)return pe}return 0}equals(g){if(g.type===this.type){if(this.expr.length!==g.expr.length)return!1;for(let E=0,Z=this.expr.length;E<Z;E++)if(!this.expr[E].equals(g.expr[E]))return!1;return!0}return!1}substituteConstants(){const g=B(this.expr);return g===this.expr?this:fe.create(g,this.negated)}evaluate(g){for(let E=0,Z=this.expr.length;E<Z;E++)if(!this.expr[E].evaluate(g))return!1;return!0}static _normalizeArr(g,E){const Z=[];let pe=!1;for(const ze of g)if(ze){if(ze.type===1){pe=!0;continue}if(ze.type===0)return A.INSTANCE;if(ze.type===6){Z.push(...ze.expr);continue}Z.push(ze)}if(Z.length===0&&pe)return L.INSTANCE;if(Z.length!==0){if(Z.length===1)return Z[0];Z.sort(a);for(let ze=1;ze<Z.length;ze++)Z[ze-1].equals(Z[ze])&&(Z.splice(ze,1),ze--);if(Z.length===1)return Z[0];for(;Z.length>1;){const ze=Z[Z.length-1];if(ze.type!==9)break;Z.pop();const Ge=Z.pop(),je=Z.length===0,Ve=ye.create(ze.expr.map(mt=>fe.create([mt,Ge],null)),null,je);Ve&&(Z.push(Ve),Z.sort(a))}return Z.length===1?Z[0]:new fe(Z,E)}}serialize(){return this.expr.map(g=>g.serialize()).join(" && ")}keys(){const g=[];for(let E of this.expr)g.push(...E.keys());return g}negate(){if(!this.negated){const g=[];for(let E of this.expr)g.push(E.negate());this.negated=ye.create(g,this,!0)}return this.negated}}class ye{constructor(g,E){this.expr=g,this.negated=E,this.type=9}static create(g,E,Z){return ye._normalizeArr(g,E,Z)}cmp(g){if(g.type!==this.type)return this.type-g.type;if(this.expr.length<g.expr.length)return-1;if(this.expr.length>g.expr.length)return 1;for(let E=0,Z=this.expr.length;E<Z;E++){const pe=a(this.expr[E],g.expr[E]);if(pe!==0)return pe}return 0}equals(g){if(g.type===this.type){if(this.expr.length!==g.expr.length)return!1;for(let E=0,Z=this.expr.length;E<Z;E++)if(!this.expr[E].equals(g.expr[E]))return!1;return!0}return!1}substituteConstants(){const g=B(this.expr);return g===this.expr?this:ye.create(g,this.negated,!1)}evaluate(g){for(let E=0,Z=this.expr.length;E<Z;E++)if(this.expr[E].evaluate(g))return!0;return!1}static _normalizeArr(g,E,Z){let pe=[],ze=!1;if(g){for(let Ge=0,je=g.length;Ge<je;Ge++){const Ve=g[Ge];if(Ve){if(Ve.type===0){ze=!0;continue}if(Ve.type===1)return L.INSTANCE;if(Ve.type===9){pe=pe.concat(Ve.expr);continue}pe.push(Ve)}}if(pe.length===0&&ze)return A.INSTANCE;pe.sort(a)}if(pe.length!==0){if(pe.length===1)return pe[0];for(let Ge=1;Ge<pe.length;Ge++)pe[Ge-1].equals(pe[Ge])&&(pe.splice(Ge,1),Ge--);if(pe.length===1)return pe[0];if(Z){for(let Ge=0;Ge<pe.length;Ge++)for(let je=Ge+1;je<pe.length;je++)D(pe[Ge],pe[je])&&(pe.splice(je,1),je--);if(pe.length===1)return pe[0]}return new ye(pe,E)}}serialize(){return this.expr.map(g=>g.serialize()).join(" || ")}keys(){const g=[];for(let E of this.expr)g.push(...E.keys());return g}negate(){if(!this.negated){let g=[];for(let E of this.expr)g.push(E.negate());for(;g.length>1;){const E=g.shift(),Z=g.shift(),pe=[];for(const Ge of Q(E))for(const je of Q(Z))pe.push(fe.create([Ge,je],null));const ze=g.length===0;g.unshift(ye.create(pe,null,ze))}this.negated=g[0]}return this.negated}}class Re extends v{constructor(g,E,Z){super(g,null),this._defaultValue=E,typeof Z=="object"?Re._info.push(Object.assign(Object.assign({},Z),{key:g})):Z!==!0&&Re._info.push({key:g,description:Z,type:E!=null?typeof E:void 0})}static all(){return Re._info.values()}bindTo(g){return g.createKey(this.key,this._defaultValue)}getValue(g){return g.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(g){return u.create(this.key,g)}}Re._info=[];const he=(0,ce.yh)("contextKeyService"),G="setContext";function F(H,g){return H<g?-1:H>g?1:0}function le(H,g,E,Z){return H<E?-1:H>E?1:g<Z?-1:g>Z?1:0}function D(H,g){if(g.type===6&&H.type!==9&&H.type!==6){for(const pe of g.expr)if(H.equals(pe))return!0}const E=H.negate(),Z=Q(E).concat(Q(g));Z.sort(a);for(let pe=0;pe<Z.length;pe++){const Ge=Z[pe].negate();for(let je=pe+1;je<Z.length;je++){const Ve=Z[je];if(Ge.equals(Ve))return!0}}return!1}function Q(H){return H.type===9?H.expr:[H]}},16925:function(Qt,et,p){"use strict";p.d(et,{I8:function(){return M},TG:function(){return Y},jt:function(){return j},yh:function(){return Te}});var M;(function(X){X.serviceIds=new Map,X.DI_TARGET="$di$target",X.DI_DEPENDENCIES="$di$dependencies";function ve(_e){return _e[X.DI_DEPENDENCIES]||[]}X.getServiceDependencies=ve})(M||(M={}));const Y=Te("instantiationService");function ce(X,ve,_e,a){ve[M.DI_TARGET]===ve?ve[M.DI_DEPENDENCIES].push({id:X,index:_e,optional:a}):(ve[M.DI_DEPENDENCIES]=[{id:X,index:_e,optional:a}],ve[M.DI_TARGET]=ve)}function Te(X){if(M.serviceIds.has(X))return M.serviceIds.get(X);const ve=function(_e,a,A){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");ce(ve,_e,A,!1)};return ve.toString=()=>X,M.serviceIds.set(X,ve),ve}function j(X){return function(ve,_e,a){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");ce(X,ve,a,!0)}}},44650:function(Qt,et,p){"use strict";p.d(et,{B:function(){return Te}});var M=p(76068),Y=p(72999);class ce{constructor(){this.data=new Map}add(X,ve){M.ok(Y.HD(X)),M.ok(Y.Kn(ve)),M.ok(!this.data.has(X),"There is already an extension with this id"),this.data.set(X,ve)}as(X){return this.data.get(X)||null}}const Te=new ce},66213:function(Qt,et,p){"use strict";p.d(et,{e:function(){return M}});var M;(function(Y){Y.DARK="dark",Y.LIGHT="light",Y.HIGH_CONTRAST="hc"})(M||(M={}))},49055:function(Qt,et,p){"use strict";p.d(et,{EN:function(){return a},IP:function(){return v},Ic:function(){return b},XE:function(){return ve},bB:function(){return k},kS:function(){return A},m6:function(){return L}});var M=p(52615),Y=p(4348),ce=p(69323),Te=p(16925),j=p(44650),X=p(66213);const ve=(0,Te.yh)("themeService");var _e;(function(se){function P(N){return N&&typeof N=="object"&&typeof N.id=="string"}se.isThemeColor=P})(_e||(_e={}));function a(se){return{id:se}}var A;(function(se){function P($){return $&&typeof $=="object"&&typeof $.id=="string"&&(typeof $.color=="undefined"||_e.isThemeColor($.color))}se.isThemeIcon=P;const N=new RegExp(`^\\$\\((${M.dT.iconNameExpression}(?:${M.dT.iconModifierExpression})?)\\)$`);function V($){const B=N.exec($);if(!B)return;let[,fe]=B;return{id:fe}}se.fromString=V;function K($,B){let fe=$.id;const ye=fe.lastIndexOf("~");return ye!==-1&&(fe=fe.substring(0,ye)),B&&(fe=`${fe}~${B}`),{id:fe}}se.modify=K;function x($,B){var fe,ye;return $.id===B.id&&((fe=$.color)===null||fe===void 0?void 0:fe.id)===((ye=B.color)===null||ye===void 0?void 0:ye.id)}se.isEqual=x;function T($,B){return{id:$.id,color:B?a(B):void 0}}se.asThemeIcon=T,se.asClassNameArray=M.dT.asClassNameArray,se.asClassName=M.dT.asClassName,se.asCSSSelector=M.dT.asCSSSelector})(A||(A={}));function L(se){switch(se){case X.e.DARK:return"vs-dark";case X.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const v={ThemingContribution:"base.contributions.theming"};class u{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new Y.Q5}onColorThemeChange(P){return this.themingParticipants.push(P),this.onThemingParticipantAddedEmitter.fire(P),(0,ce.OF)(()=>{const N=this.themingParticipants.indexOf(P);this.themingParticipants.splice(N,1)})}getThemingParticipants(){return this.themingParticipants}}let y=new u;j.B.add(v.ThemingContribution,y);function b(se){return y.onColorThemeChange(se)}class k extends ce.JT{constructor(P){super(),this.themeService=P,this.theme=P.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(N=>this.onThemeChange(N)))}onThemeChange(P){this.theme=P,this.updateStyles()}updateStyles(){}}},31561:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return $}});var M=p(5891),Y=p(80962),ce=p(29043),Te=p(19149),j=p(35593),X=p(92310),ve=p.n(X),_e=p(20475),a=p(59301),A=p(85108),L=p(23073),v=A.Z.ESC,u=A.Z.TAB;function y(B){var fe=B.visible,ye=B.triggerRef,Re=B.onVisibleChange,he=B.autoFocus,G=B.overlayRef,F=a.useRef(!1),le=function(){if(fe){var g,E;(g=ye.current)===null||g===void 0||(E=g.focus)===null||E===void 0||E.call(g),Re==null||Re(!1)}},D=function(){var g;return(g=G.current)!==null&&g!==void 0&&g.focus?(G.current.focus(),F.current=!0,!0):!1},Q=function(g){switch(g.keyCode){case v:le();break;case u:{var E=!1;F.current||(E=D()),E?g.preventDefault():le();break}}};a.useEffect(function(){return fe?(window.addEventListener("keydown",Q),he&&(0,L.Z)(D,3),function(){window.removeEventListener("keydown",Q),F.current=!1}):function(){F.current=!1}},[fe])}var b=(0,a.forwardRef)(function(B,fe){var ye=B.overlay,Re=B.arrow,he=B.prefixCls,G=(0,a.useMemo)(function(){var le;return typeof ye=="function"?le=ye():le=ye,le},[ye]),F=(0,_e.sQ)(fe,G==null?void 0:G.ref);return a.createElement(a.Fragment,null,Re&&a.createElement("div",{className:"".concat(he,"-arrow")}),a.cloneElement(G,{ref:(0,_e.Yr)(G)?F:void 0}))}),k=b,se={adjustX:1,adjustY:1},P=[0,0],N={topLeft:{points:["bl","tl"],overflow:se,offset:[0,-4],targetOffset:P},top:{points:["bc","tc"],overflow:se,offset:[0,-4],targetOffset:P},topRight:{points:["br","tr"],overflow:se,offset:[0,-4],targetOffset:P},bottomLeft:{points:["tl","bl"],overflow:se,offset:[0,4],targetOffset:P},bottom:{points:["tc","bc"],overflow:se,offset:[0,4],targetOffset:P},bottomRight:{points:["tr","br"],overflow:se,offset:[0,4],targetOffset:P}},V=N,K=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function x(B,fe){var ye,Re=B.arrow,he=Re===void 0?!1:Re,G=B.prefixCls,F=G===void 0?"rc-dropdown":G,le=B.transitionName,D=B.animation,Q=B.align,H=B.placement,g=H===void 0?"bottomLeft":H,E=B.placements,Z=E===void 0?V:E,pe=B.getPopupContainer,ze=B.showAction,Ge=B.hideAction,je=B.overlayClassName,Ve=B.overlayStyle,mt=B.visible,pt=B.trigger,nt=pt===void 0?["hover"]:pt,Gt=B.autoFocus,Jt=B.overlay,sn=B.children,Ut=B.onVisibleChange,Xt=(0,Te.Z)(B,K),it=a.useState(),te=(0,ce.Z)(it,2),ge=te[0],q=te[1],z="visible"in B?mt:ge,De=a.useRef(null),O=a.useRef(null),ae=a.useRef(null);a.useImperativeHandle(fe,function(){return De.current});var J=function(rt){q(rt),Ut==null||Ut(rt)};y({visible:z,triggerRef:ae,onVisibleChange:J,autoFocus:Gt,overlayRef:O});var oe=function(rt){var Ze=B.onOverlayClick;q(!1),Ze&&Ze(rt)},de=function(){return a.createElement(k,{ref:O,overlay:Jt,prefixCls:F,arrow:he})},Ce=function(){return typeof Jt=="function"?de:de()},xe=function(){var rt=B.minOverlayWidthMatchTrigger,Ze=B.alignPoint;return"minOverlayWidthMatchTrigger"in B?rt:!Ze},ke=function(){var rt=B.openClassName;return rt!==void 0?rt:"".concat(F,"-open")},Ie=a.cloneElement(sn,{className:ve()((ye=sn.props)===null||ye===void 0?void 0:ye.className,z&&ke()),ref:(0,_e.Yr)(sn)?(0,_e.sQ)(ae,sn.ref):void 0}),Pe=Ge;return!Pe&&nt.indexOf("contextMenu")!==-1&&(Pe=["click"]),a.createElement(j.Z,(0,M.Z)({builtinPlacements:Z},Xt,{prefixCls:F,ref:De,popupClassName:ve()(je,(0,Y.Z)({},"".concat(F,"-show-arrow"),he)),popupStyle:Ve,action:nt,showAction:ze,hideAction:Pe,popupPlacement:g,popupAlign:Q,popupTransitionName:le,popupAnimation:D,popupVisible:z,stretch:xe()?"minWidth":"",popup:Ce(),onPopupVisibleChange:J,onPopupClick:oe,getPopupContainer:pe}),Ie)}var T=a.forwardRef(x),$=T},93681:function(Qt,et,p){"use strict";p.r(et),p.d(et,{BaseInput:function(){return A},default:function(){return N}});var M=p(5891),Y=p(57259),ce=p(80962),Te=p(80665),j=p(92310),X=p.n(j),ve=p(59301),_e=p(5643),a=function(K){var x,T,$=K.inputElement,B=K.prefixCls,fe=K.prefix,ye=K.suffix,Re=K.addonBefore,he=K.addonAfter,G=K.className,F=K.style,le=K.disabled,D=K.readOnly,Q=K.focused,H=K.triggerFocus,g=K.allowClear,E=K.value,Z=K.handleReset,pe=K.hidden,ze=K.classes,Ge=K.classNames,je=K.dataAttrs,Ve=K.styles,mt=K.components,pt=(mt==null?void 0:mt.affixWrapper)||"span",nt=(mt==null?void 0:mt.groupWrapper)||"span",Gt=(mt==null?void 0:mt.wrapper)||"span",Jt=(mt==null?void 0:mt.groupAddon)||"span",sn=(0,ve.useRef)(null),Ut=function(de){var Ce;(Ce=sn.current)!==null&&Ce!==void 0&&Ce.contains(de.target)&&(H==null||H())},Xt=function(){var de;if(!g)return null;var Ce=!le&&!D&&E,xe="".concat(B,"-clear-icon"),ke=(0,Te.Z)(g)==="object"&&g!==null&&g!==void 0&&g.clearIcon?g.clearIcon:"\u2716";return ve.createElement("span",{onClick:Z,onMouseDown:function(Pe){return Pe.preventDefault()},className:X()(xe,(de={},(0,ce.Z)(de,"".concat(xe,"-hidden"),!Ce),(0,ce.Z)(de,"".concat(xe,"-has-suffix"),!!ye),de)),role:"button",tabIndex:-1},ke)},it=(0,ve.cloneElement)($,{value:E,hidden:pe,className:X()((x=$.props)===null||x===void 0?void 0:x.className,!(0,_e.X3)(K)&&!(0,_e.He)(K)&&G)||null,style:(0,Y.Z)((0,Y.Z)({},(T=$.props)===null||T===void 0?void 0:T.style),!(0,_e.X3)(K)&&!(0,_e.He)(K)?F:{})});if((0,_e.X3)(K)){var te,ge="".concat(B,"-affix-wrapper"),q=X()(ge,(te={},(0,ce.Z)(te,"".concat(ge,"-disabled"),le),(0,ce.Z)(te,"".concat(ge,"-focused"),Q),(0,ce.Z)(te,"".concat(ge,"-readonly"),D),(0,ce.Z)(te,"".concat(ge,"-input-with-clear-btn"),ye&&g&&E),te),!(0,_e.He)(K)&&G,ze==null?void 0:ze.affixWrapper,Ge==null?void 0:Ge.affixWrapper),z=(ye||g)&&ve.createElement("span",{className:X()("".concat(B,"-suffix"),Ge==null?void 0:Ge.suffix),style:Ve==null?void 0:Ve.suffix},Xt(),ye);it=ve.createElement(pt,(0,M.Z)({className:q,style:(0,Y.Z)((0,Y.Z)({},(0,_e.He)(K)?void 0:F),Ve==null?void 0:Ve.affixWrapper),hidden:!(0,_e.He)(K)&&pe,onClick:Ut},je==null?void 0:je.affixWrapper,{ref:sn}),fe&&ve.createElement("span",{className:X()("".concat(B,"-prefix"),Ge==null?void 0:Ge.prefix),style:Ve==null?void 0:Ve.prefix},fe),(0,ve.cloneElement)($,{value:E,hidden:null}),z)}if((0,_e.He)(K)){var De="".concat(B,"-group"),O="".concat(De,"-addon"),ae=X()("".concat(B,"-wrapper"),De,ze==null?void 0:ze.wrapper),J=X()("".concat(B,"-group-wrapper"),G,ze==null?void 0:ze.group);return ve.createElement(nt,{className:J,style:F,hidden:pe},ve.createElement(Gt,{className:ae},Re&&ve.createElement(Jt,{className:O},Re),(0,ve.cloneElement)(it,{hidden:null}),he&&ve.createElement(Jt,{className:O},he)))}return it},A=a,L=p(26390),v=p(29043),u=p(19149),y=p(35788),b=p(64002),k=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],se=(0,ve.forwardRef)(function(V,K){var x=V.autoComplete,T=V.onChange,$=V.onFocus,B=V.onBlur,fe=V.onPressEnter,ye=V.onKeyDown,Re=V.prefixCls,he=Re===void 0?"rc-input":Re,G=V.disabled,F=V.htmlSize,le=V.className,D=V.maxLength,Q=V.suffix,H=V.showCount,g=V.type,E=g===void 0?"text":g,Z=V.classes,pe=V.classNames,ze=V.styles,Ge=(0,u.Z)(V,k),je=(0,y.Z)(V.defaultValue,{value:V.value}),Ve=(0,v.Z)(je,2),mt=Ve[0],pt=Ve[1],nt=(0,ve.useState)(!1),Gt=(0,v.Z)(nt,2),Jt=Gt[0],sn=Gt[1],Ut=(0,ve.useRef)(null),Xt=function(J){Ut.current&&(0,_e.nH)(Ut.current,J)};(0,ve.useImperativeHandle)(K,function(){return{focus:Xt,blur:function(){var J;(J=Ut.current)===null||J===void 0||J.blur()},setSelectionRange:function(J,oe,de){var Ce;(Ce=Ut.current)===null||Ce===void 0||Ce.setSelectionRange(J,oe,de)},select:function(){var J;(J=Ut.current)===null||J===void 0||J.select()},input:Ut.current}}),(0,ve.useEffect)(function(){sn(function(ae){return ae&&G?!1:ae})},[G]);var it=function(J){V.value===void 0&&pt(J.target.value),Ut.current&&(0,_e.rJ)(Ut.current,J,T)},te=function(J){fe&&J.key==="Enter"&&fe(J),ye==null||ye(J)},ge=function(J){sn(!0),$==null||$(J)},q=function(J){sn(!1),B==null||B(J)},z=function(J){pt(""),Xt(),Ut.current&&(0,_e.rJ)(Ut.current,J,T)},De=function(){var J=(0,b.Z)(V,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return ve.createElement("input",(0,M.Z)({autoComplete:x},J,{onChange:it,onFocus:ge,onBlur:q,onKeyDown:te,className:X()(he,(0,ce.Z)({},"".concat(he,"-disabled"),G),pe==null?void 0:pe.input),style:ze==null?void 0:ze.input,ref:Ut,size:F,type:E}))},O=function(){var J=Number(D)>0;if(Q||H){var oe=(0,_e.D7)(mt),de=(0,L.Z)(oe).length,Ce=(0,Te.Z)(H)==="object"?H.formatter({value:oe,count:de,maxLength:D}):"".concat(de).concat(J?" / ".concat(D):"");return ve.createElement(ve.Fragment,null,!!H&&ve.createElement("span",{className:X()("".concat(he,"-show-count-suffix"),(0,ce.Z)({},"".concat(he,"-show-count-has-suffix"),!!Q),pe==null?void 0:pe.count),style:(0,Y.Z)({},ze==null?void 0:ze.count)},Ce),Q)}return null};return ve.createElement(A,(0,M.Z)({},Ge,{prefixCls:he,className:le,inputElement:De(),handleReset:z,value:(0,_e.D7)(mt),focused:Jt,triggerFocus:Xt,suffix:O(),disabled:G,classes:Z,classNames:pe,styles:ze}))}),P=se,N=P},5643:function(Qt,et,p){"use strict";p.d(et,{D7:function(){return j},He:function(){return M},X3:function(){return Y},nH:function(){return Te},rJ:function(){return ce}});function M(X){return!!(X.addonBefore||X.addonAfter)}function Y(X){return!!(X.prefix||X.suffix||X.allowClear)}function ce(X,ve,_e,a){if(_e){var A=ve;if(ve.type==="click"){var L=X.cloneNode(!0);A=Object.create(ve,{target:{value:L},currentTarget:{value:L}}),L.value="",_e(A);return}if(a!==void 0){A=Object.create(ve,{target:{value:X},currentTarget:{value:X}}),X.value=a,_e(A);return}_e(A)}}function Te(X,ve){if(X){X.focus(ve);var _e=ve||{},a=_e.cursor;if(a){var A=X.value.length;switch(a){case"start":X.setSelectionRange(0,0);break;case"end":X.setSelectionRange(A,A);break;default:X.setSelectionRange(0,A)}}}}function j(X){return typeof X=="undefined"||X===null?"":String(X)}},22798:function(Qt,et,p){"use strict";p.d(et,{iz:function(){return pn},ck:function(){return Je},BW:function(){return en},sN:function(){return Je},Wd:function(){return dt},ZP:function(){return Ft},Xl:function(){return ye}});var M=p(5891),Y=p(80962),ce=p(57259),Te=p(26390),j=p(29043),X=p(19149),ve=p(92310),_e=p.n(ve),a=p(11780),A=p(35788),L=p(51346),v=p(51395),u=p(59301),y=p(4676),b=u.createContext(null);function k(Qe,tt){return Qe===void 0?null:"".concat(Qe,"-").concat(tt)}function se(Qe){var tt=u.useContext(b);return k(tt,Qe)}var P=p(79722),N=["children","locked"],V=u.createContext(null);function K(Qe,tt){var vt=(0,ce.Z)({},Qe);return Object.keys(tt).forEach(function(bt){var ht=tt[bt];ht!==void 0&&(vt[bt]=ht)}),vt}function x(Qe){var tt=Qe.children,vt=Qe.locked,bt=(0,X.Z)(Qe,N),ht=u.useContext(V),Dt=(0,P.Z)(function(){return K(ht,bt)},[ht,bt],function(xt,jt){return!vt&&(xt[0]!==jt[0]||!(0,L.Z)(xt[1],jt[1],!0))});return u.createElement(V.Provider,{value:Dt},tt)}var T=[],$=u.createContext(null);function B(){return u.useContext($)}var fe=u.createContext(T);function ye(Qe){var tt=u.useContext(fe);return u.useMemo(function(){return Qe!==void 0?[].concat((0,Te.Z)(tt),[Qe]):tt},[tt,Qe])}var Re=u.createContext(null),he=u.createContext({}),G=he,F=p(48886);function le(Qe){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,F.Z)(Qe)){var vt=Qe.nodeName.toLowerCase(),bt=["input","select","textarea","button"].includes(vt)||Qe.isContentEditable||vt==="a"&&!!Qe.getAttribute("href"),ht=Qe.getAttribute("tabindex"),Dt=Number(ht),xt=null;return ht&&!Number.isNaN(Dt)?xt=Dt:bt&&xt===null&&(xt=0),bt&&Qe.disabled&&(xt=null),xt!==null&&(xt>=0||tt&&xt<0)}return!1}function D(Qe){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,vt=(0,Te.Z)(Qe.querySelectorAll("*")).filter(function(bt){return le(bt,tt)});return le(Qe,tt)&&vt.unshift(Qe),vt}var Q=null;function H(){Q=document.activeElement}function g(){Q=null}function E(){if(Q)try{Q.focus()}catch(Qe){}}function Z(Qe,tt){if(tt.keyCode===9){var vt=D(Qe),bt=vt[tt.shiftKey?0:vt.length-1],ht=bt===document.activeElement||Qe===document.activeElement;if(ht){var Dt=vt[tt.shiftKey?vt.length-1:0];Dt.focus(),tt.preventDefault()}}}var pe=p(85108),ze=p(23073),Ge=pe.Z.LEFT,je=pe.Z.RIGHT,Ve=pe.Z.UP,mt=pe.Z.DOWN,pt=pe.Z.ENTER,nt=pe.Z.ESC,Gt=pe.Z.HOME,Jt=pe.Z.END,sn=[Ve,mt,Ge,je];function Ut(Qe,tt,vt,bt){var ht,Dt,xt,jt,tn="prev",nn="next",In="children",Dn="parent";if(Qe==="inline"&&bt===pt)return{inlineTrigger:!0};var Fn=(ht={},(0,Y.Z)(ht,Ve,tn),(0,Y.Z)(ht,mt,nn),ht),cn=(Dt={},(0,Y.Z)(Dt,Ge,vt?nn:tn),(0,Y.Z)(Dt,je,vt?tn:nn),(0,Y.Z)(Dt,mt,In),(0,Y.Z)(Dt,pt,In),Dt),rn=(xt={},(0,Y.Z)(xt,Ve,tn),(0,Y.Z)(xt,mt,nn),(0,Y.Z)(xt,pt,In),(0,Y.Z)(xt,nt,Dn),(0,Y.Z)(xt,Ge,vt?In:Dn),(0,Y.Z)(xt,je,vt?Dn:In),xt),$n={inline:Fn,horizontal:cn,vertical:rn,inlineSub:Fn,horizontalSub:rn,verticalSub:rn},Sn=(jt=$n["".concat(Qe).concat(tt?"":"Sub")])===null||jt===void 0?void 0:jt[bt];switch(Sn){case tn:return{offset:-1,sibling:!0};case nn:return{offset:1,sibling:!0};case Dn:return{offset:-1,sibling:!1};case In:return{offset:1,sibling:!1};default:return null}}function Xt(Qe){for(var tt=Qe;tt;){if(tt.getAttribute("data-menu-list"))return tt;tt=tt.parentElement}return null}function it(Qe,tt){for(var vt=Qe||document.activeElement;vt;){if(tt.has(vt))return vt;vt=vt.parentElement}return null}function te(Qe,tt){var vt=D(Qe,!0);return vt.filter(function(bt){return tt.has(bt)})}function ge(Qe,tt,vt){var bt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Qe)return null;var ht=te(Qe,tt),Dt=ht.length,xt=ht.findIndex(function(jt){return vt===jt});return bt<0?xt===-1?xt=Dt-1:xt-=1:bt>0&&(xt+=1),xt=(xt+Dt)%Dt,ht[xt]}var q=function(tt,vt){var bt=new Set,ht=new Map,Dt=new Map;return tt.forEach(function(xt){var jt=document.querySelector("[data-menu-id='".concat(k(vt,xt),"']"));jt&&(bt.add(jt),Dt.set(jt,xt),ht.set(xt,jt))}),{elements:bt,key2element:ht,element2key:Dt}};function z(Qe,tt,vt,bt,ht,Dt,xt,jt,tn,nn){var In=u.useRef(),Dn=u.useRef();Dn.current=tt;var Fn=function(){ze.Z.cancel(In.current)};return u.useEffect(function(){return function(){Fn()}},[]),function(cn){var rn=cn.which;if([].concat(sn,[pt,nt,Gt,Jt]).includes(rn)){var $n=Dt(),Sn=q($n,bt),Wn=Sn,Cn=Wn.elements,Bn=Wn.key2element,zn=Wn.element2key,On=Bn.get(tt),Qn=it(On,Cn),or=zn.get(Qn),Tn=Ut(Qe,xt(or,!0).length===1,vt,rn);if(!Tn&&rn!==Gt&&rn!==Jt)return;(sn.includes(rn)||[Gt,Jt].includes(rn))&&cn.preventDefault();var qt=function(Hn){if(Hn){var fn=Hn,dn=Hn.querySelector("a");dn!=null&&dn.getAttribute("href")&&(fn=dn);var En=zn.get(Hn);jt(En),Fn(),In.current=(0,ze.Z)(function(){Dn.current===En&&fn.focus()})}};if([Gt,Jt].includes(rn)||Tn.sibling||!Qn){var Ke;!Qn||Qe==="inline"?Ke=ht.current:Ke=Xt(Qn);var un,Pn=te(Ke,Cn);rn===Gt?un=Pn[0]:rn===Jt?un=Pn[Pn.length-1]:un=ge(Ke,Cn,Qn,Tn.offset),qt(un)}else if(Tn.inlineTrigger)tn(or);else if(Tn.offset>0)tn(or,!0),Fn(),In.current=(0,ze.Z)(function(){Sn=q($n,bt);var tr=Qn.getAttribute("aria-controls"),Hn=document.getElementById(tr),fn=ge(Hn,Sn.elements);qt(fn)},5);else if(Tn.offset<0){var Kn=xt(or,!0),Gn=Kn[Kn.length-2],nr=Bn.get(Gn);tn(Gn,!1),qt(nr)}}nn==null||nn(cn)}}function De(Qe){Promise.resolve().then(Qe)}var O="__RC_UTIL_PATH_SPLIT__",ae=function(tt){return tt.join(O)},J=function(tt){return tt.split(O)},oe="rc-menu-more";function de(){var Qe=u.useState({}),tt=(0,j.Z)(Qe,2),vt=tt[1],bt=(0,u.useRef)(new Map),ht=(0,u.useRef)(new Map),Dt=u.useState([]),xt=(0,j.Z)(Dt,2),jt=xt[0],tn=xt[1],nn=(0,u.useRef)(0),In=(0,u.useRef)(!1),Dn=function(){In.current||vt({})},Fn=(0,u.useCallback)(function(Bn,zn){var On=ae(zn);ht.current.set(On,Bn),bt.current.set(Bn,On),nn.current+=1;var Qn=nn.current;De(function(){Qn===nn.current&&Dn()})},[]),cn=(0,u.useCallback)(function(Bn,zn){var On=ae(zn);ht.current.delete(On),bt.current.delete(Bn)},[]),rn=(0,u.useCallback)(function(Bn){tn(Bn)},[]),$n=(0,u.useCallback)(function(Bn,zn){var On=bt.current.get(Bn)||"",Qn=J(On);return zn&&jt.includes(Qn[0])&&Qn.unshift(oe),Qn},[jt]),Sn=(0,u.useCallback)(function(Bn,zn){return Bn.some(function(On){var Qn=$n(On,!0);return Qn.includes(zn)})},[$n]),Wn=function(){var zn=(0,Te.Z)(bt.current.keys());return jt.length&&zn.push(oe),zn},Cn=(0,u.useCallback)(function(Bn){var zn="".concat(bt.current.get(Bn)).concat(O),On=new Set;return(0,Te.Z)(ht.current.keys()).forEach(function(Qn){Qn.startsWith(zn)&&On.add(ht.current.get(Qn))}),On},[]);return u.useEffect(function(){return function(){In.current=!0}},[]),{registerPath:Fn,unregisterPath:cn,refreshOverflowKeys:rn,isSubPathKey:Sn,getKeyPath:$n,getKeys:Wn,getSubPathKeys:Cn}}function Ce(Qe){var tt=u.useRef(Qe);tt.current=Qe;var vt=u.useCallback(function(){for(var bt,ht=arguments.length,Dt=new Array(ht),xt=0;xt<ht;xt++)Dt[xt]=arguments[xt];return(bt=tt.current)===null||bt===void 0?void 0:bt.call.apply(bt,[tt].concat(Dt))},[]);return Qe?vt:void 0}var xe=Math.random().toFixed(5).toString().slice(2),ke=0;function Ie(Qe){var tt=(0,A.Z)(Qe,{value:Qe}),vt=(0,j.Z)(tt,2),bt=vt[0],ht=vt[1];return u.useEffect(function(){ke+=1;var Dt="".concat(xe,"-").concat(ke);ht("rc-menu-uuid-".concat(Dt))},[]),bt}var Pe=p(79545),Xe=p(68550),rt=p(17928),Ze=p(7711),ct=p(64002),ut=p(20475);function ot(Qe,tt,vt,bt){var ht=u.useContext(V),Dt=ht.activeKey,xt=ht.onActive,jt=ht.onInactive,tn={active:Dt===Qe};return tt||(tn.onMouseEnter=function(nn){vt==null||vt({key:Qe,domEvent:nn}),xt(Qe)},tn.onMouseLeave=function(nn){bt==null||bt({key:Qe,domEvent:nn}),jt(Qe)}),tn}function Ot(Qe){var tt=u.useContext(V),vt=tt.mode,bt=tt.rtl,ht=tt.inlineIndent;if(vt!=="inline")return null;var Dt=Qe;return bt?{paddingRight:Dt*ht}:{paddingLeft:Dt*ht}}function _t(Qe){var tt=Qe.icon,vt=Qe.props,bt=Qe.children,ht;return tt===null||tt===!1?null:(typeof tt=="function"?ht=u.createElement(tt,(0,ce.Z)({},vt)):typeof tt!="boolean"&&(ht=tt),ht||bt||null)}var w=["item"];function C(Qe){var tt=Qe.item,vt=(0,X.Z)(Qe,w);return Object.defineProperty(vt,"item",{get:function(){return(0,v.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),tt}}),vt}var lt=["title","attribute","elementRef"],ie=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Oe=["active"],mn=function(Qe){(0,rt.Z)(vt,Qe);var tt=(0,Ze.Z)(vt);function vt(){return(0,Pe.Z)(this,vt),tt.apply(this,arguments)}return(0,Xe.Z)(vt,[{key:"render",value:function(){var ht=this.props,Dt=ht.title,xt=ht.attribute,jt=ht.elementRef,tn=(0,X.Z)(ht,lt),nn=(0,ct.Z)(tn,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,v.ZP)(!xt,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),u.createElement(a.Z.Item,(0,M.Z)({},xt,{title:typeof Dt=="string"?Dt:void 0},nn,{ref:jt}))}}]),vt}(u.Component),Fe=u.forwardRef(function(Qe,tt){var vt,bt=Qe.style,ht=Qe.className,Dt=Qe.eventKey,xt=Qe.warnKey,jt=Qe.disabled,tn=Qe.itemIcon,nn=Qe.children,In=Qe.role,Dn=Qe.onMouseEnter,Fn=Qe.onMouseLeave,cn=Qe.onClick,rn=Qe.onKeyDown,$n=Qe.onFocus,Sn=(0,X.Z)(Qe,ie),Wn=se(Dt),Cn=u.useContext(V),Bn=Cn.prefixCls,zn=Cn.onItemClick,On=Cn.disabled,Qn=Cn.overflowDisabled,or=Cn.itemIcon,Tn=Cn.selectedKeys,qt=Cn.onActive,Ke=u.useContext(G),un=Ke._internalRenderMenuItem,Pn="".concat(Bn,"-item"),Kn=u.useRef(),Gn=u.useRef(),nr=On||jt,tr=(0,ut.x1)(tt,Gn),Hn=ye(Dt),fn=function(br){return{key:Dt,keyPath:(0,Te.Z)(Hn).reverse(),item:Kn.current,domEvent:br}},dn=tn||or,En=ot(Dt,nr,Dn,Fn),Vn=En.active,ir=(0,X.Z)(En,Oe),wr=Tn.includes(Dt),Lr=Ot(Hn.length),An=function(br){if(!nr){var Dr=fn(br);cn==null||cn(C(Dr)),zn(Dr)}},hr=function(br){if(rn==null||rn(br),br.which===pe.Z.ENTER){var Dr=fn(br);cn==null||cn(C(Dr)),zn(Dr)}},ur=function(br){qt(Dt),$n==null||$n(br)},pr={};Qe.role==="option"&&(pr["aria-selected"]=wr);var Zr=u.createElement(mn,(0,M.Z)({ref:Kn,elementRef:tr,role:In===null?"none":In||"menuitem",tabIndex:jt?null:-1,"data-menu-id":Qn&&Wn?null:Wn},Sn,ir,pr,{component:"li","aria-disabled":jt,style:(0,ce.Z)((0,ce.Z)({},Lr),bt),className:_e()(Pn,(vt={},(0,Y.Z)(vt,"".concat(Pn,"-active"),Vn),(0,Y.Z)(vt,"".concat(Pn,"-selected"),wr),(0,Y.Z)(vt,"".concat(Pn,"-disabled"),nr),vt),ht),onClick:An,onKeyDown:hr,onFocus:ur}),nn,u.createElement(_t,{props:(0,ce.Z)((0,ce.Z)({},Qe),{},{isSelected:wr}),icon:dn}));return un&&(Zr=un(Zr,Qe,{selected:wr})),Zr});function We(Qe,tt){var vt=Qe.eventKey,bt=B(),ht=ye(vt);return u.useEffect(function(){if(bt)return bt.registerPath(vt,ht),function(){bt.unregisterPath(vt,ht)}},[ht]),bt?null:u.createElement(Fe,(0,M.Z)({},Qe,{ref:tt}))}var Je=u.forwardRef(We),ue=["className","children"],W=function(tt,vt){var bt=tt.className,ht=tt.children,Dt=(0,X.Z)(tt,ue),xt=u.useContext(V),jt=xt.prefixCls,tn=xt.mode,nn=xt.rtl;return u.createElement("ul",(0,M.Z)({className:_e()(jt,nn&&"".concat(jt,"-rtl"),"".concat(jt,"-sub"),"".concat(jt,"-").concat(tn==="inline"?"inline":"vertical"),bt),role:"menu"},Dt,{"data-menu-list":!0,ref:vt}),ht)},we=u.forwardRef(W);we.displayName="SubMenuList";var Be=we,U=p(38298);function at(Qe,tt){return(0,U.Z)(Qe).map(function(vt,bt){if(u.isValidElement(vt)){var ht,Dt,xt=vt.key,jt=(ht=(Dt=vt.props)===null||Dt===void 0?void 0:Dt.eventKey)!==null&&ht!==void 0?ht:xt,tn=jt==null;tn&&(jt="tmp_key-".concat([].concat((0,Te.Z)(tt),[bt]).join("-")));var nn={key:jt,eventKey:jt};return u.cloneElement(vt,nn)}return vt})}var Ee=p(35593),St={adjustX:1,adjustY:1},Pt={topLeft:{points:["bl","tl"],overflow:St},topRight:{points:["br","tr"],overflow:St},bottomLeft:{points:["tl","bl"],overflow:St},bottomRight:{points:["tr","br"],overflow:St},leftTop:{points:["tr","tl"],overflow:St},leftBottom:{points:["br","bl"],overflow:St},rightTop:{points:["tl","tr"],overflow:St},rightBottom:{points:["bl","br"],overflow:St}},zt={topLeft:{points:["bl","tl"],overflow:St},topRight:{points:["br","tr"],overflow:St},bottomLeft:{points:["tl","bl"],overflow:St},bottomRight:{points:["tr","br"],overflow:St},rightTop:{points:["tr","tl"],overflow:St},rightBottom:{points:["br","bl"],overflow:St},leftTop:{points:["tl","tr"],overflow:St},leftBottom:{points:["bl","br"],overflow:St}},on=null;function It(Qe,tt,vt){if(tt)return tt;if(vt)return vt[Qe]||vt.other}var Vt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Ue(Qe){var tt=Qe.prefixCls,vt=Qe.visible,bt=Qe.children,ht=Qe.popup,Dt=Qe.popupStyle,xt=Qe.popupClassName,jt=Qe.popupOffset,tn=Qe.disabled,nn=Qe.mode,In=Qe.onVisibleChange,Dn=u.useContext(V),Fn=Dn.getPopupContainer,cn=Dn.rtl,rn=Dn.subMenuOpenDelay,$n=Dn.subMenuCloseDelay,Sn=Dn.builtinPlacements,Wn=Dn.triggerSubMenuAction,Cn=Dn.forceSubMenuRender,Bn=Dn.rootClassName,zn=Dn.motion,On=Dn.defaultMotions,Qn=u.useState(!1),or=(0,j.Z)(Qn,2),Tn=or[0],qt=or[1],Ke=cn?(0,ce.Z)((0,ce.Z)({},zt),Sn):(0,ce.Z)((0,ce.Z)({},Pt),Sn),un=Vt[nn],Pn=It(nn,zn,On),Kn=u.useRef(Pn);nn!=="inline"&&(Kn.current=Pn);var Gn=(0,ce.Z)((0,ce.Z)({},Kn.current),{},{leavedClassName:"".concat(tt,"-hidden"),removeOnLeave:!1,motionAppear:!0}),nr=u.useRef();return u.useEffect(function(){return nr.current=(0,ze.Z)(function(){qt(vt)}),function(){ze.Z.cancel(nr.current)}},[vt]),u.createElement(Ee.Z,{prefixCls:tt,popupClassName:_e()("".concat(tt,"-popup"),(0,Y.Z)({},"".concat(tt,"-rtl"),cn),xt,Bn),stretch:nn==="horizontal"?"minWidth":null,getPopupContainer:Fn,builtinPlacements:Ke,popupPlacement:un,popupVisible:Tn,popup:ht,popupStyle:Dt,popupAlign:jt&&{offset:jt},action:tn?[]:[Wn],mouseEnterDelay:rn,mouseLeaveDelay:$n,onPopupVisibleChange:In,forceRender:Cn,popupMotion:Gn,fresh:!0},bt)}var ft=p(43469);function Ct(Qe){var tt=Qe.id,vt=Qe.open,bt=Qe.keyPath,ht=Qe.children,Dt="inline",xt=u.useContext(V),jt=xt.prefixCls,tn=xt.forceSubMenuRender,nn=xt.motion,In=xt.defaultMotions,Dn=xt.mode,Fn=u.useRef(!1);Fn.current=Dn===Dt;var cn=u.useState(!Fn.current),rn=(0,j.Z)(cn,2),$n=rn[0],Sn=rn[1],Wn=Fn.current?vt:!1;u.useEffect(function(){Fn.current&&Sn(!1)},[Dn]);var Cn=(0,ce.Z)({},It(Dt,nn,In));bt.length>1&&(Cn.motionAppear=!1);var Bn=Cn.onVisibleChanged;return Cn.onVisibleChanged=function(zn){return!Fn.current&&!zn&&Sn(!0),Bn==null?void 0:Bn(zn)},$n?null:u.createElement(x,{mode:Dt,locked:!Fn.current},u.createElement(ft.default,(0,M.Z)({visible:Wn},Cn,{forceRender:tn,removeOnLeave:!1,leavedClassName:"".concat(jt,"-hidden")}),function(zn){var On=zn.className,Qn=zn.style;return u.createElement(Be,{id:tt,className:On,style:Qn},ht)}))}var Ne=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Ae=["active"],st=function(tt){var vt,bt=tt.style,ht=tt.className,Dt=tt.title,xt=tt.eventKey,jt=tt.warnKey,tn=tt.disabled,nn=tt.internalPopupClose,In=tt.children,Dn=tt.itemIcon,Fn=tt.expandIcon,cn=tt.popupClassName,rn=tt.popupOffset,$n=tt.popupStyle,Sn=tt.onClick,Wn=tt.onMouseEnter,Cn=tt.onMouseLeave,Bn=tt.onTitleClick,zn=tt.onTitleMouseEnter,On=tt.onTitleMouseLeave,Qn=(0,X.Z)(tt,Ne),or=se(xt),Tn=u.useContext(V),qt=Tn.prefixCls,Ke=Tn.mode,un=Tn.openKeys,Pn=Tn.disabled,Kn=Tn.overflowDisabled,Gn=Tn.activeKey,nr=Tn.selectedKeys,tr=Tn.itemIcon,Hn=Tn.expandIcon,fn=Tn.onItemClick,dn=Tn.onOpenChange,En=Tn.onActive,Vn=u.useContext(G),ir=Vn._internalRenderSubMenuItem,wr=u.useContext(Re),Lr=wr.isSubPathKey,An=ye(),hr="".concat(qt,"-submenu"),ur=Pn||tn,pr=u.useRef(),Zr=u.useRef(),zr=Dn!=null?Dn:tr,br=Fn!=null?Fn:Hn,Dr=un.includes(xt),gr=!Kn&&Dr,jr=Lr(nr,xt),Vr=ot(xt,ur,zn,On),ii=Vr.active,Fr=(0,X.Z)(Vr,Ae),ei=u.useState(!1),ar=(0,j.Z)(ei,2),si=ar[0],vi=ar[1],fi=function(Rr){ur||vi(Rr)},Or=function(Rr){fi(!0),Wn==null||Wn({key:xt,domEvent:Rr})},hi=function(Rr){fi(!1),Cn==null||Cn({key:xt,domEvent:Rr})},mr=u.useMemo(function(){return ii||(Ke!=="inline"?si||Lr([Gn],xt):!1)},[Ke,ii,Gn,si,xt,Lr]),Wt=Ot(An.length),sr=function(Rr){ur||(Bn==null||Bn({key:xt,domEvent:Rr}),Ke==="inline"&&dn(xt,!Dr))},vr=Ce(function(Tr){Sn==null||Sn(C(Tr)),fn(Tr)}),Rn=function(Rr){Ke!=="inline"&&dn(xt,Rr)},Nn=function(){En(xt)},xn=or&&"".concat(or,"-popup"),bn=u.createElement("div",(0,M.Z)({role:"menuitem",style:Wt,className:"".concat(hr,"-title"),tabIndex:ur?null:-1,ref:pr,title:typeof Dt=="string"?Dt:null,"data-menu-id":Kn&&or?null:or,"aria-expanded":gr,"aria-haspopup":!0,"aria-controls":xn,"aria-disabled":ur,onClick:sr,onFocus:Nn},Fr),Dt,u.createElement(_t,{icon:Ke!=="horizontal"?br:void 0,props:(0,ce.Z)((0,ce.Z)({},tt),{},{isOpen:gr,isSubMenu:!0})},u.createElement("i",{className:"".concat(hr,"-arrow")}))),Xn=u.useRef(Ke);if(Ke!=="inline"&&An.length>1?Xn.current="vertical":Xn.current=Ke,!Kn){var lr=Xn.current;bn=u.createElement(Ue,{mode:lr,prefixCls:hr,visible:!nn&&gr&&Ke!=="inline",popupClassName:cn,popupOffset:rn,popupStyle:$n,popup:u.createElement(x,{mode:lr==="horizontal"?"vertical":lr},u.createElement(Be,{id:xn,ref:Zr},In)),disabled:ur,onVisibleChange:Rn},bn)}var Pr=u.createElement(a.Z.Item,(0,M.Z)({role:"none"},Qn,{component:"li",style:bt,className:_e()(hr,"".concat(hr,"-").concat(Ke),ht,(vt={},(0,Y.Z)(vt,"".concat(hr,"-open"),gr),(0,Y.Z)(vt,"".concat(hr,"-active"),mr),(0,Y.Z)(vt,"".concat(hr,"-selected"),jr),(0,Y.Z)(vt,"".concat(hr,"-disabled"),ur),vt)),onMouseEnter:Or,onMouseLeave:hi}),bn,!Kn&&u.createElement(Ct,{id:xn,open:gr,keyPath:An},In));return ir&&(Pr=ir(Pr,tt,{selected:jr,active:mr,open:gr,disabled:ur})),u.createElement(x,{onItemClick:vr,mode:Ke==="horizontal"?"vertical":Ke,itemIcon:zr,expandIcon:br},Pr)};function dt(Qe){var tt=Qe.eventKey,vt=Qe.children,bt=ye(tt),ht=at(vt,bt),Dt=B();u.useEffect(function(){if(Dt)return Dt.registerPath(tt,bt),function(){Dt.unregisterPath(tt,bt)}},[bt]);var xt;return Dt?xt=ht:xt=u.createElement(st,Qe,ht),u.createElement(fe.Provider,{value:bt},xt)}var kt=p(80665),Lt=["className","title","eventKey","children"],Bt=["children"],Nt=function(tt){var vt=tt.className,bt=tt.title,ht=tt.eventKey,Dt=tt.children,xt=(0,X.Z)(tt,Lt),jt=u.useContext(V),tn=jt.prefixCls,nn="".concat(tn,"-item-group");return u.createElement("li",(0,M.Z)({role:"presentation"},xt,{onClick:function(Dn){return Dn.stopPropagation()},className:_e()(nn,vt)}),u.createElement("div",{role:"presentation",className:"".concat(nn,"-title"),title:typeof bt=="string"?bt:void 0},bt),u.createElement("ul",{role:"group",className:"".concat(nn,"-list")},Dt))};function en(Qe){var tt=Qe.children,vt=(0,X.Z)(Qe,Bt),bt=ye(vt.eventKey),ht=at(tt,bt),Dt=B();return Dt?ht:u.createElement(Nt,(0,ct.Z)(vt,["warnKey"]),ht)}function pn(Qe){var tt=Qe.className,vt=Qe.style,bt=u.useContext(V),ht=bt.prefixCls,Dt=B();return Dt?null:u.createElement("li",{role:"separator",className:_e()("".concat(ht,"-item-divider"),tt),style:vt})}var Tt=["label","children","key","type"];function yt(Qe){return(Qe||[]).map(function(tt,vt){if(tt&&(0,kt.Z)(tt)==="object"){var bt=tt,ht=bt.label,Dt=bt.children,xt=bt.key,jt=bt.type,tn=(0,X.Z)(bt,Tt),nn=xt!=null?xt:"tmp-".concat(vt);return Dt||jt==="group"?jt==="group"?u.createElement(en,(0,M.Z)({key:nn},tn,{title:ht}),yt(Dt)):u.createElement(dt,(0,M.Z)({key:nn},tn,{title:ht}),yt(Dt)):jt==="divider"?u.createElement(pn,(0,M.Z)({key:nn},tn)):u.createElement(Je,(0,M.Z)({key:nn},tn),ht)}return null}).filter(function(tt){return tt})}function Kt(Qe,tt,vt){var bt=Qe;return tt&&(bt=yt(tt)),at(bt,vt)}var $t=["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"],Zt=[],ln=u.forwardRef(function(Qe,tt){var vt,bt,ht=Qe,Dt=ht.prefixCls,xt=Dt===void 0?"rc-menu":Dt,jt=ht.rootClassName,tn=ht.style,nn=ht.className,In=ht.tabIndex,Dn=In===void 0?0:In,Fn=ht.items,cn=ht.children,rn=ht.direction,$n=ht.id,Sn=ht.mode,Wn=Sn===void 0?"vertical":Sn,Cn=ht.inlineCollapsed,Bn=ht.disabled,zn=ht.disabledOverflow,On=ht.subMenuOpenDelay,Qn=On===void 0?.1:On,or=ht.subMenuCloseDelay,Tn=or===void 0?.1:or,qt=ht.forceSubMenuRender,Ke=ht.defaultOpenKeys,un=ht.openKeys,Pn=ht.activeKey,Kn=ht.defaultActiveFirst,Gn=ht.selectable,nr=Gn===void 0?!0:Gn,tr=ht.multiple,Hn=tr===void 0?!1:tr,fn=ht.defaultSelectedKeys,dn=ht.selectedKeys,En=ht.onSelect,Vn=ht.onDeselect,ir=ht.inlineIndent,wr=ir===void 0?24:ir,Lr=ht.motion,An=ht.defaultMotions,hr=ht.triggerSubMenuAction,ur=hr===void 0?"hover":hr,pr=ht.builtinPlacements,Zr=ht.itemIcon,zr=ht.expandIcon,br=ht.overflowedIndicator,Dr=br===void 0?"...":br,gr=ht.overflowedIndicatorPopupClassName,jr=ht.getPopupContainer,Vr=ht.onClick,ii=ht.onOpenChange,Fr=ht.onKeyDown,ei=ht.openAnimation,ar=ht.openTransitionName,si=ht._internalRenderMenuItem,vi=ht._internalRenderSubMenuItem,fi=(0,X.Z)(ht,$t),Or=u.useMemo(function(){return Kt(cn,Fn,Zt)},[cn,Fn]),hi=u.useState(!1),mr=(0,j.Z)(hi,2),Wt=mr[0],sr=mr[1],vr=u.useRef(),Rn=Ie($n),Nn=rn==="rtl",xn=(0,A.Z)(Ke,{value:un,postState:function($r){return $r||Zt}}),bn=(0,j.Z)(xn,2),Xn=bn[0],lr=bn[1],Pr=function($r){var Nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function li(){lr($r),ii==null||ii($r)}Nr?(0,y.flushSync)(li):li()},Tr=u.useState(Xn),Rr=(0,j.Z)(Tr,2),Mr=Rr[0],ui=Rr[1],Yr=u.useRef(!1),pi=u.useMemo(function(){return(Wn==="inline"||Wn==="vertical")&&Cn?["vertical",Cn]:[Wn,!1]},[Wn,Cn]),Bi=(0,j.Z)(pi,2),bi=Bi[0],jn=Bi[1],Zn=bi==="inline",yr=u.useState(bi),Qr=(0,j.Z)(yr,2),Ir=Qr[0],_i=Qr[1],Wi=u.useState(jn),Hi=(0,j.Z)(Wi,2),Ai=Hi[0],aa=Hi[1];u.useEffect(function(){_i(bi),aa(jn),Yr.current&&(Zn?lr(Mr):Pr(Zt))},[bi,jn]);var sa=u.useState(0),oa=(0,j.Z)(sa,2),ea=oa[0],la=oa[1],Mi=ea>=Or.length-1||Ir!=="horizontal"||zn;u.useEffect(function(){Zn&&ui(Xn)},[Xn]),u.useEffect(function(){return Yr.current=!0,function(){Yr.current=!1}},[]);var oi=de(),ua=oi.registerPath,ta=oi.unregisterPath,Si=oi.refreshOverflowKeys,Oi=oi.isSubPathKey,Ar=oi.getKeyPath,cr=oi.getKeys,mi=oi.getSubPathKeys,gi=u.useMemo(function(){return{registerPath:ua,unregisterPath:ta}},[ua,ta]),Jr=u.useMemo(function(){return{isSubPathKey:Oi}},[Oi]);u.useEffect(function(){Si(Mi?Zt:Or.slice(ea+1).map(function(Kr){return Kr.key}))},[ea,Mi]);var Ci=(0,A.Z)(Pn||Kn&&((vt=Or[0])===null||vt===void 0?void 0:vt.key),{value:Pn}),Br=(0,j.Z)(Ci,2),$i=Br[0],xi=Br[1],ki=Ce(function(Kr){xi(Kr)}),zi=Ce(function(){xi(void 0)});(0,u.useImperativeHandle)(tt,function(){return{list:vr.current,focus:function($r){var Nr,li=cr(),ci=q(li,Rn),da=ci.elements,Ra=ci.key2element,Na=ci.element2key,Fa=te(vr.current,da),fa=$i!=null?$i:Fa[0]?Na.get(Fa[0]):(Nr=Or.find(function(_a){return!_a.props.disabled}))===null||Nr===void 0?void 0:Nr.key,na=Ra.get(fa);if(fa&&na){var hn;na==null||(hn=na.focus)===null||hn===void 0||hn.call(na,$r)}}}});var Ur=(0,A.Z)(fn||[],{value:dn,postState:function($r){return Array.isArray($r)?$r:$r==null?Zt:[$r]}}),ga=(0,j.Z)(Ur,2),Di=ga[0],ca=ga[1],es=function($r){if(nr){var Nr=$r.key,li=Di.includes(Nr),ci;Hn?li?ci=Di.filter(function(Ra){return Ra!==Nr}):ci=[].concat((0,Te.Z)(Di),[Nr]):ci=[Nr],ca(ci);var da=(0,ce.Z)((0,ce.Z)({},$r),{},{selectedKeys:ci});li?Vn==null||Vn(da):En==null||En(da)}!Hn&&Xn.length&&Ir!=="inline"&&Pr(Zt)},va=Ce(function(Kr){Vr==null||Vr(C(Kr)),es(Kr)}),ya=Ce(function(Kr,$r){var Nr=Xn.filter(function(ci){return ci!==Kr});if($r)Nr.push(Kr);else if(Ir!=="inline"){var li=mi(Kr);Nr=Nr.filter(function(ci){return!li.has(ci)})}(0,L.Z)(Xn,Nr,!0)||Pr(Nr,!0)}),ba=function($r,Nr){var li=Nr!=null?Nr:!Xn.includes($r);ya($r,li)},Aa=z(Ir,$i,Nn,Rn,vr,cr,Ar,xi,ba,Fr);u.useEffect(function(){sr(!0)},[]);var Ma=u.useMemo(function(){return{_internalRenderMenuItem:si,_internalRenderSubMenuItem:vi}},[si,vi]),Ui=Ir!=="horizontal"||zn?Or:Or.map(function(Kr,$r){return u.createElement(x,{key:Kr.key,overflowDisabled:$r>ea},Kr)}),Da=u.createElement(a.Z,(0,M.Z)({id:$n,ref:vr,prefixCls:"".concat(xt,"-overflow"),component:"ul",itemComponent:Je,className:_e()(xt,"".concat(xt,"-root"),"".concat(xt,"-").concat(Ir),nn,(bt={},(0,Y.Z)(bt,"".concat(xt,"-inline-collapsed"),Ai),(0,Y.Z)(bt,"".concat(xt,"-rtl"),Nn),bt),jt),dir:rn,style:tn,role:"menu",tabIndex:Dn,data:Ui,renderRawItem:function($r){return $r},renderRawRest:function($r){var Nr=$r.length,li=Nr?Or.slice(-Nr):null;return u.createElement(dt,{eventKey:oe,title:Dr,disabled:Mi,internalPopupClose:Nr===0,popupClassName:gr},li)},maxCount:Ir!=="horizontal"||zn?a.Z.INVALIDATE:a.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function($r){la($r)},onKeyDown:Aa},fi));return u.createElement(G.Provider,{value:Ma},u.createElement(b.Provider,{value:Rn},u.createElement(x,{prefixCls:xt,rootClassName:jt,mode:Ir,openKeys:Xn,rtl:Nn,disabled:Bn,motion:Wt?Lr:null,defaultMotions:Wt?An:null,activeKey:$i,onActive:ki,onInactive:zi,selectedKeys:Di,inlineIndent:wr,subMenuOpenDelay:Qn,subMenuCloseDelay:Tn,forceSubMenuRender:qt,builtinPlacements:pr,triggerSubMenuAction:ur,getPopupContainer:jr,itemIcon:Zr,expandIcon:zr,onItemClick:va,onOpenChange:ya},u.createElement(Re.Provider,{value:Jr},Da),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement($.Provider,{value:gi},Or)))))}),Ln=ln,yn=Ln;yn.Item=Je,yn.SubMenu=dt,yn.ItemGroup=en,yn.Divider=pn;var Ft=yn},11780:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return H}});var M=p(5891),Y=p(57259),ce=p(29043),Te=p(19149),j=p(59301),X=p(92310),ve=p.n(X),_e=p(29301),a=p(28800),A=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],L=void 0;function v(g,E){var Z=g.prefixCls,pe=g.invalidate,ze=g.item,Ge=g.renderItem,je=g.responsive,Ve=g.responsiveDisabled,mt=g.registerSize,pt=g.itemKey,nt=g.className,Gt=g.style,Jt=g.children,sn=g.display,Ut=g.order,Xt=g.component,it=Xt===void 0?"div":Xt,te=(0,Te.Z)(g,A),ge=je&&!sn;function q(J){mt(pt,J)}j.useEffect(function(){return function(){q(null)}},[]);var z=Ge&&ze!==L?Ge(ze,{index:Ut}):Jt,De;pe||(De={opacity:ge?0:1,height:ge?0:L,overflowY:ge?"hidden":L,order:je?Ut:L,pointerEvents:ge?"none":L,position:ge?"absolute":L});var O={};ge&&(O["aria-hidden"]=!0);var ae=j.createElement(it,(0,M.Z)({className:ve()(!pe&&Z,nt),style:(0,Y.Z)((0,Y.Z)({},De),Gt)},O,te,{ref:E}),z);return je&&(ae=j.createElement(_e.Z,{onResize:function(oe){var de=oe.offsetWidth;q(de)},disabled:Ve},ae)),ae}var u=j.forwardRef(v);u.displayName="Item";var y=u,b=p(8107),k=p(4676),se=p(23073);function P(g){if(typeof MessageChannel=="undefined")(0,se.Z)(g);else{var E=new MessageChannel;E.port1.onmessage=function(){return g()},E.port2.postMessage(void 0)}}function N(){var g=j.useRef(null),E=function(pe){g.current||(g.current=[],P(function(){(0,k.unstable_batchedUpdates)(function(){g.current.forEach(function(ze){ze()}),g.current=null})})),g.current.push(pe)};return E}function V(g,E){var Z=j.useState(E),pe=(0,ce.Z)(Z,2),ze=pe[0],Ge=pe[1],je=(0,b.Z)(function(Ve){g(function(){Ge(Ve)})});return[ze,je]}var K=j.createContext(null),x=["component"],T=["className"],$=["className"],B=function(E,Z){var pe=j.useContext(K);if(!pe){var ze=E.component,Ge=ze===void 0?"div":ze,je=(0,Te.Z)(E,x);return j.createElement(Ge,(0,M.Z)({},je,{ref:Z}))}var Ve=pe.className,mt=(0,Te.Z)(pe,T),pt=E.className,nt=(0,Te.Z)(E,$);return j.createElement(K.Provider,{value:null},j.createElement(y,(0,M.Z)({ref:Z,className:ve()(Ve,pt)},mt,nt)))},fe=j.forwardRef(B);fe.displayName="RawItem";var ye=fe,Re=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],he="responsive",G="invalidate";function F(g){return"+ ".concat(g.length," ...")}function le(g,E){var Z=g.prefixCls,pe=Z===void 0?"rc-overflow":Z,ze=g.data,Ge=ze===void 0?[]:ze,je=g.renderItem,Ve=g.renderRawItem,mt=g.itemKey,pt=g.itemWidth,nt=pt===void 0?10:pt,Gt=g.ssr,Jt=g.style,sn=g.className,Ut=g.maxCount,Xt=g.renderRest,it=g.renderRawRest,te=g.suffix,ge=g.component,q=ge===void 0?"div":ge,z=g.itemComponent,De=g.onVisibleChange,O=(0,Te.Z)(g,Re),ae=Gt==="full",J=N(),oe=V(J,null),de=(0,ce.Z)(oe,2),Ce=de[0],xe=de[1],ke=Ce||0,Ie=V(J,new Map),Pe=(0,ce.Z)(Ie,2),Xe=Pe[0],rt=Pe[1],Ze=V(J,0),ct=(0,ce.Z)(Ze,2),ut=ct[0],ot=ct[1],Ot=V(J,0),_t=(0,ce.Z)(Ot,2),w=_t[0],C=_t[1],lt=V(J,0),ie=(0,ce.Z)(lt,2),Oe=ie[0],mn=ie[1],Fe=(0,j.useState)(null),We=(0,ce.Z)(Fe,2),Je=We[0],ue=We[1],W=(0,j.useState)(null),we=(0,ce.Z)(W,2),Be=we[0],U=we[1],at=j.useMemo(function(){return Be===null&&ae?Number.MAX_SAFE_INTEGER:Be||0},[Be,Ce]),Ee=(0,j.useState)(!1),St=(0,ce.Z)(Ee,2),Pt=St[0],zt=St[1],on="".concat(pe,"-item"),It=Math.max(ut,w),Vt=Ut===he,Ue=Ge.length&&Vt,ft=Ut===G,Ct=Ue||typeof Ut=="number"&&Ge.length>Ut,Ne=(0,j.useMemo)(function(){var Ft=Ge;return Ue?Ce===null&&ae?Ft=Ge:Ft=Ge.slice(0,Math.min(Ge.length,ke/nt)):typeof Ut=="number"&&(Ft=Ge.slice(0,Ut)),Ft},[Ge,nt,Ce,Ut,Ue]),Ae=(0,j.useMemo)(function(){return Ue?Ge.slice(at+1):Ge.slice(Ne.length)},[Ge,Ne,Ue,at]),st=(0,j.useCallback)(function(Ft,Qe){var tt;return typeof mt=="function"?mt(Ft):(tt=mt&&(Ft==null?void 0:Ft[mt]))!==null&&tt!==void 0?tt:Qe},[mt]),dt=(0,j.useCallback)(je||function(Ft){return Ft},[je]);function kt(Ft,Qe,tt){Be===Ft&&(Qe===void 0||Qe===Je)||(U(Ft),tt||(zt(Ft<Ge.length-1),De==null||De(Ft)),Qe!==void 0&&ue(Qe))}function Lt(Ft,Qe){xe(Qe.clientWidth)}function Bt(Ft,Qe){rt(function(tt){var vt=new Map(tt);return Qe===null?vt.delete(Ft):vt.set(Ft,Qe),vt})}function Nt(Ft,Qe){C(Qe),ot(w)}function en(Ft,Qe){mn(Qe)}function pn(Ft){return Xe.get(st(Ne[Ft],Ft))}(0,a.Z)(function(){if(ke&&typeof It=="number"&&Ne){var Ft=Oe,Qe=Ne.length,tt=Qe-1;if(!Qe){kt(0,null);return}for(var vt=0;vt<Qe;vt+=1){var bt=pn(vt);if(ae&&(bt=bt||0),bt===void 0){kt(vt-1,void 0,!0);break}if(Ft+=bt,tt===0&&Ft<=ke||vt===tt-1&&Ft+pn(tt)<=ke){kt(tt,null);break}else if(Ft+It>ke){kt(vt-1,Ft-bt-Oe+w);break}}te&&pn(0)+Oe>ke&&ue(null)}},[ke,Xe,w,Oe,st,Ne]);var Tt=Pt&&!!Ae.length,yt={};Je!==null&&Ue&&(yt={position:"absolute",left:Je,top:0});var Kt={prefixCls:on,responsive:Ue,component:z,invalidate:ft},$t=Ve?function(Ft,Qe){var tt=st(Ft,Qe);return j.createElement(K.Provider,{key:tt,value:(0,Y.Z)((0,Y.Z)({},Kt),{},{order:Qe,item:Ft,itemKey:tt,registerSize:Bt,display:Qe<=at})},Ve(Ft,Qe))}:function(Ft,Qe){var tt=st(Ft,Qe);return j.createElement(y,(0,M.Z)({},Kt,{order:Qe,key:tt,item:Ft,renderItem:dt,itemKey:tt,registerSize:Bt,display:Qe<=at}))},Zt={order:Tt?at:Number.MAX_SAFE_INTEGER,className:"".concat(on,"-rest"),registerSize:Nt,display:Tt},ln=Xt||F,Ln=it?j.createElement(K.Provider,{value:(0,Y.Z)((0,Y.Z)({},Kt),Zt)},it(Ae)):j.createElement(y,(0,M.Z)({},Kt,Zt),typeof ln=="function"?ln(Ae):ln),yn=j.createElement(q,(0,M.Z)({className:ve()(!ft&&pe,sn),style:Jt,ref:E},O),Ne.map($t),Ct?Ln:null,te&&j.createElement(y,(0,M.Z)({},Kt,{responsive:Vt,responsiveDisabled:!Ue,order:at,className:"".concat(on,"-suffix"),registerSize:en,display:!0,style:yt}),te));return Vt?j.createElement(_e.Z,{onResize:Lt,disabled:!Ue},yn):yn}var D=j.forwardRef(le);D.displayName="Overflow",D.Item=ye,D.RESPONSIVE=he,D.INVALIDATE=G;var Q=D,H=Q},29301:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return G}});var M=p(5891),Y=p(59301),ce=p(38298),Te=p(51395),j=p(57259),X=p(80665),ve=p(85899),_e=p(20475),a=Y.createContext(null);function A(F){var le=F.children,D=F.onBatchResize,Q=Y.useRef(0),H=Y.useRef([]),g=Y.useContext(a),E=Y.useCallback(function(Z,pe,ze){Q.current+=1;var Ge=Q.current;H.current.push({size:Z,element:pe,data:ze}),Promise.resolve().then(function(){Ge===Q.current&&(D==null||D(H.current),H.current=[])}),g==null||g(Z,pe,ze)},[D,g]);return Y.createElement(a.Provider,{value:E},le)}var L=p(76374),v=new Map;function u(F){F.forEach(function(le){var D,Q=le.target;(D=v.get(Q))===null||D===void 0||D.forEach(function(H){return H(Q)})})}var y=new L.Z(u),b=null,k=null;function se(F,le){v.has(F)||(v.set(F,new Set),y.observe(F)),v.get(F).add(le)}function P(F,le){v.has(F)&&(v.get(F).delete(le),v.get(F).size||(y.unobserve(F),v.delete(F)))}var N=p(79545),V=p(68550),K=p(17928),x=p(7711),T=function(F){(0,K.Z)(D,F);var le=(0,x.Z)(D);function D(){return(0,N.Z)(this,D),le.apply(this,arguments)}return(0,V.Z)(D,[{key:"render",value:function(){return this.props.children}}]),D}(Y.Component);function $(F,le){var D=F.children,Q=F.disabled,H=Y.useRef(null),g=Y.useRef(null),E=Y.useContext(a),Z=typeof D=="function",pe=Z?D(H):D,ze=Y.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Ge=!Z&&Y.isValidElement(pe)&&(0,_e.Yr)(pe),je=Ge?(0,_e.C4)(pe):null,Ve=(0,_e.x1)(je,H),mt=function(){var Jt;return(0,ve.ZP)(H.current)||(H.current&&(0,X.Z)(H.current)==="object"?(0,ve.ZP)((Jt=H.current)===null||Jt===void 0?void 0:Jt.nativeElement):null)||(0,ve.ZP)(g.current)};Y.useImperativeHandle(le,function(){return mt()});var pt=Y.useRef(F);pt.current=F;var nt=Y.useCallback(function(Gt){var Jt=pt.current,sn=Jt.onResize,Ut=Jt.data,Xt=Gt.getBoundingClientRect(),it=Xt.width,te=Xt.height,ge=Gt.offsetWidth,q=Gt.offsetHeight,z=Math.floor(it),De=Math.floor(te);if(ze.current.width!==z||ze.current.height!==De||ze.current.offsetWidth!==ge||ze.current.offsetHeight!==q){var O={width:z,height:De,offsetWidth:ge,offsetHeight:q};ze.current=O;var ae=ge===Math.round(it)?it:ge,J=q===Math.round(te)?te:q,oe=(0,j.Z)((0,j.Z)({},O),{},{offsetWidth:ae,offsetHeight:J});E==null||E(oe,Gt,Ut),sn&&Promise.resolve().then(function(){sn(oe,Gt)})}},[]);return Y.useEffect(function(){var Gt=mt();return Gt&&!Q&&se(Gt,nt),function(){return P(Gt,nt)}},[H.current,Q]),Y.createElement(T,{ref:g},Ge?Y.cloneElement(pe,{ref:Ve}):pe)}var B=Y.forwardRef($),fe=B,ye="rc-observer-key";function Re(F,le){var D=F.children,Q=typeof D=="function"?[D]:(0,ce.Z)(D);return Q.map(function(H,g){var E=(H==null?void 0:H.key)||"".concat(ye,"-").concat(g);return Y.createElement(fe,(0,M.Z)({},F,{key:E,ref:g===0?le:void 0}),H)})}var he=Y.forwardRef(Re);he.Collection=A;var G=he},17115:function(Qt,et,p){"use strict";p.d(et,{ZP:function(){return ve}});var M=p(29043),Y=p(59301),ce=p(87746),Te=0,j=(0,ce.Z)();function X(){var _e;return j?(_e=Te,Te+=1):_e="TEST_OR_SSR",_e}function ve(_e){var a=Y.useState(),A=(0,M.Z)(a,2),L=A[0],v=A[1];return Y.useEffect(function(){v("rc_select_".concat(X()))},[]),_e||L}},77861:function(Qt,et,p){"use strict";p.d(et,{Ac:function(){return xe},Xo:function(){return C},Wx:function(){return ie},ZP:function(){return Ct},lk:function(){return K}});var M=p(5891),Y=p(26390),ce=p(80962),Te=p(57259),j=p(29043),X=p(19149),ve=p(80665),_e=p(35788),a=p(51395),A=p(59301),L=p(92310),v=p.n(L),u=p(28800),y=p(93144),b=p(85108),k=p(20475),se=function(Ae){var st=Ae.className,dt=Ae.customizeIcon,kt=Ae.customizeIconProps,Lt=Ae.onMouseDown,Bt=Ae.onClick,Nt=Ae.children,en;return typeof dt=="function"?en=dt(kt):en=dt,A.createElement("span",{className:st,onMouseDown:function(Tt){Tt.preventDefault(),Lt&&Lt(Tt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Bt,"aria-hidden":!0},en!==void 0?en:A.createElement("span",{className:v()(st.split(/\s+/).map(function(pn){return"".concat(pn,"-icon")}))},Nt))},P=se;function N(Ne,Ae,st,dt,kt){var Lt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Bt=arguments.length>6?arguments[6]:void 0,Nt=arguments.length>7?arguments[7]:void 0,en=A.useMemo(function(){if((0,ve.Z)(dt)==="object")return dt.clearIcon;if(kt)return kt},[dt,kt]),pn=A.useMemo(function(){return!!(!Lt&&dt&&(st.length||Bt)&&!(Nt==="combobox"&&Bt===""))},[dt,Lt,st.length,Bt,Nt]);return{allowClear:pn,clearIcon:A.createElement(P,{className:"".concat(Ne,"-clear"),onMouseDown:Ae,customizeIcon:en},"\xD7")}}var V=A.createContext(null);function K(){return A.useContext(V)}function x(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ae=A.useState(!1),st=(0,j.Z)(Ae,2),dt=st[0],kt=st[1],Lt=A.useRef(null),Bt=function(){window.clearTimeout(Lt.current)};A.useEffect(function(){return Bt},[]);var Nt=function(pn,Tt){Bt(),Lt.current=window.setTimeout(function(){kt(pn),Tt&&Tt()},Ne)};return[dt,Nt,Bt]}function T(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ae=A.useRef(null),st=A.useRef(null);A.useEffect(function(){return function(){window.clearTimeout(st.current)}},[]);function dt(kt){(kt||Ae.current===null)&&(Ae.current=kt),window.clearTimeout(st.current),st.current=window.setTimeout(function(){Ae.current=null},Ne)}return[function(){return Ae.current},dt]}function $(Ne,Ae,st,dt){var kt=A.useRef(null);kt.current={open:Ae,triggerOpen:st,customizedTrigger:dt},A.useEffect(function(){function Lt(Bt){var Nt;if(!((Nt=kt.current)!==null&&Nt!==void 0&&Nt.customizedTrigger)){var en=Bt.target;en.shadowRoot&&Bt.composed&&(en=Bt.composedPath()[0]||en),kt.current.open&&Ne().filter(function(pn){return pn}).every(function(pn){return!pn.contains(en)&&pn!==en})&&kt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Lt),function(){return window.removeEventListener("mousedown",Lt)}},[])}var B=p(36994),fe=p(11780),ye=function(Ae,st){var dt,kt,Lt=Ae.prefixCls,Bt=Ae.id,Nt=Ae.inputElement,en=Ae.disabled,pn=Ae.tabIndex,Tt=Ae.autoFocus,yt=Ae.autoComplete,Kt=Ae.editable,$t=Ae.activeDescendantId,Zt=Ae.value,ln=Ae.maxLength,Ln=Ae.onKeyDown,yn=Ae.onMouseDown,Ft=Ae.onChange,Qe=Ae.onPaste,tt=Ae.onCompositionStart,vt=Ae.onCompositionEnd,bt=Ae.open,ht=Ae.attrs,Dt=Nt||A.createElement("input",null),xt=Dt,jt=xt.ref,tn=xt.props,nn=tn.onKeyDown,In=tn.onChange,Dn=tn.onMouseDown,Fn=tn.onCompositionStart,cn=tn.onCompositionEnd,rn=tn.style;return(0,a.Kp)(!("maxLength"in Dt.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Dt=A.cloneElement(Dt,(0,Te.Z)((0,Te.Z)((0,Te.Z)({type:"search"},tn),{},{id:Bt,ref:(0,k.sQ)(st,jt),disabled:en,tabIndex:pn,autoComplete:yt||"off",autoFocus:Tt,className:v()("".concat(Lt,"-selection-search-input"),(dt=Dt)===null||dt===void 0||(kt=dt.props)===null||kt===void 0?void 0:kt.className),role:"combobox","aria-label":"Search","aria-expanded":bt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Bt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Bt,"_list"),"aria-activedescendant":bt?$t:void 0},ht),{},{value:Kt?Zt:"",maxLength:ln,readOnly:!Kt,unselectable:Kt?null:"on",style:(0,Te.Z)((0,Te.Z)({},rn),{},{opacity:Kt?null:0}),onKeyDown:function(Sn){Ln(Sn),nn&&nn(Sn)},onMouseDown:function(Sn){yn(Sn),Dn&&Dn(Sn)},onChange:function(Sn){Ft(Sn),In&&In(Sn)},onCompositionStart:function(Sn){tt(Sn),Fn&&Fn(Sn)},onCompositionEnd:function(Sn){vt(Sn),cn&&cn(Sn)},onPaste:Qe})),Dt},Re=A.forwardRef(ye);Re.displayName="Input";var he=Re;function G(Ne){return Array.isArray(Ne)?Ne:Ne!==void 0?[Ne]:[]}var F=typeof window!="undefined"&&window.document&&window.document.documentElement,le=F;function D(Ne){return Ne!=null}function Q(Ne){return!Ne&&Ne!==0}function H(Ne){return["string","number"].includes((0,ve.Z)(Ne))}function g(Ne){var Ae=void 0;return Ne&&(H(Ne.title)?Ae=Ne.title.toString():H(Ne.label)&&(Ae=Ne.label.toString())),Ae}function E(Ne,Ae){le?A.useLayoutEffect(Ne,Ae):A.useEffect(Ne,Ae)}function Z(Ne){var Ae;return(Ae=Ne.key)!==null&&Ae!==void 0?Ae:Ne.value}var pe=function(Ae){Ae.preventDefault(),Ae.stopPropagation()},ze=function(Ae){var st=Ae.id,dt=Ae.prefixCls,kt=Ae.values,Lt=Ae.open,Bt=Ae.searchValue,Nt=Ae.autoClearSearchValue,en=Ae.inputRef,pn=Ae.placeholder,Tt=Ae.disabled,yt=Ae.mode,Kt=Ae.showSearch,$t=Ae.autoFocus,Zt=Ae.autoComplete,ln=Ae.activeDescendantId,Ln=Ae.tabIndex,yn=Ae.removeIcon,Ft=Ae.maxTagCount,Qe=Ae.maxTagTextLength,tt=Ae.maxTagPlaceholder,vt=tt===void 0?function(Gn){return"+ ".concat(Gn.length," ...")}:tt,bt=Ae.tagRender,ht=Ae.onToggleOpen,Dt=Ae.onRemove,xt=Ae.onInputChange,jt=Ae.onInputPaste,tn=Ae.onInputKeyDown,nn=Ae.onInputMouseDown,In=Ae.onInputCompositionStart,Dn=Ae.onInputCompositionEnd,Fn=A.useRef(null),cn=(0,A.useState)(0),rn=(0,j.Z)(cn,2),$n=rn[0],Sn=rn[1],Wn=(0,A.useState)(!1),Cn=(0,j.Z)(Wn,2),Bn=Cn[0],zn=Cn[1],On="".concat(dt,"-selection"),Qn=Lt||yt==="multiple"&&Nt===!1||yt==="tags"?Bt:"",or=yt==="tags"||yt==="multiple"&&Nt===!1||Kt&&(Lt||Bn);E(function(){Sn(Fn.current.scrollWidth)},[Qn]);function Tn(Gn,nr,tr,Hn,fn){return A.createElement("span",{className:v()("".concat(On,"-item"),(0,ce.Z)({},"".concat(On,"-item-disabled"),tr)),title:g(Gn)},A.createElement("span",{className:"".concat(On,"-item-content")},nr),Hn&&A.createElement(P,{className:"".concat(On,"-item-remove"),onMouseDown:pe,onClick:fn,customizeIcon:yn},"\xD7"))}function qt(Gn,nr,tr,Hn,fn){var dn=function(Vn){pe(Vn),ht(!Lt)};return A.createElement("span",{onMouseDown:dn},bt({label:nr,value:Gn,disabled:tr,closable:Hn,onClose:fn}))}function Ke(Gn){var nr=Gn.disabled,tr=Gn.label,Hn=Gn.value,fn=!Tt&&!nr,dn=tr;if(typeof Qe=="number"&&(typeof tr=="string"||typeof tr=="number")){var En=String(dn);En.length>Qe&&(dn="".concat(En.slice(0,Qe),"..."))}var Vn=function(wr){wr&&wr.stopPropagation(),Dt(Gn)};return typeof bt=="function"?qt(Hn,dn,nr,fn,Vn):Tn(Gn,dn,nr,fn,Vn)}function un(Gn){var nr=typeof vt=="function"?vt(Gn):vt;return Tn({title:nr},nr,!1)}var Pn=A.createElement("div",{className:"".concat(On,"-search"),style:{width:$n},onFocus:function(){zn(!0)},onBlur:function(){zn(!1)}},A.createElement(he,{ref:en,open:Lt,prefixCls:dt,id:st,inputElement:null,disabled:Tt,autoFocus:$t,autoComplete:Zt,editable:or,activeDescendantId:ln,value:Qn,onKeyDown:tn,onMouseDown:nn,onChange:xt,onPaste:jt,onCompositionStart:In,onCompositionEnd:Dn,tabIndex:Ln,attrs:(0,B.Z)(Ae,!0)}),A.createElement("span",{ref:Fn,className:"".concat(On,"-search-mirror"),"aria-hidden":!0},Qn,"\xA0")),Kn=A.createElement(fe.Z,{prefixCls:"".concat(On,"-overflow"),data:kt,renderItem:Ke,renderRest:un,suffix:Pn,itemKey:Z,maxCount:Ft});return A.createElement(A.Fragment,null,Kn,!kt.length&&!Qn&&A.createElement("span",{className:"".concat(On,"-placeholder")},pn))},Ge=ze,je=function(Ae){var st=Ae.inputElement,dt=Ae.prefixCls,kt=Ae.id,Lt=Ae.inputRef,Bt=Ae.disabled,Nt=Ae.autoFocus,en=Ae.autoComplete,pn=Ae.activeDescendantId,Tt=Ae.mode,yt=Ae.open,Kt=Ae.values,$t=Ae.placeholder,Zt=Ae.tabIndex,ln=Ae.showSearch,Ln=Ae.searchValue,yn=Ae.activeValue,Ft=Ae.maxLength,Qe=Ae.onInputKeyDown,tt=Ae.onInputMouseDown,vt=Ae.onInputChange,bt=Ae.onInputPaste,ht=Ae.onInputCompositionStart,Dt=Ae.onInputCompositionEnd,xt=Ae.title,jt=A.useState(!1),tn=(0,j.Z)(jt,2),nn=tn[0],In=tn[1],Dn=Tt==="combobox",Fn=Dn||ln,cn=Kt[0],rn=Ln||"";Dn&&yn&&!nn&&(rn=yn),A.useEffect(function(){Dn&&In(!1)},[Dn,yn]);var $n=Tt!=="combobox"&&!yt&&!ln?!1:!!rn,Sn=xt===void 0?g(cn):xt,Wn=function(){if(cn)return null;var Bn=$n?{visibility:"hidden"}:void 0;return A.createElement("span",{className:"".concat(dt,"-selection-placeholder"),style:Bn},$t)};return A.createElement(A.Fragment,null,A.createElement("span",{className:"".concat(dt,"-selection-search")},A.createElement(he,{ref:Lt,prefixCls:dt,id:kt,open:yt,inputElement:st,disabled:Bt,autoFocus:Nt,autoComplete:en,editable:Fn,activeDescendantId:pn,value:rn,onKeyDown:Qe,onMouseDown:tt,onChange:function(Bn){In(!0),vt(Bn)},onPaste:bt,onCompositionStart:ht,onCompositionEnd:Dt,tabIndex:Zt,attrs:(0,B.Z)(Ae,!0),maxLength:Dn?Ft:void 0})),!Dn&&cn?A.createElement("span",{className:"".concat(dt,"-selection-item"),title:Sn,style:$n?{visibility:"hidden"}:void 0},cn.label):null,Wn())},Ve=je;function mt(Ne){return![b.Z.ESC,b.Z.SHIFT,b.Z.BACKSPACE,b.Z.TAB,b.Z.WIN_KEY,b.Z.ALT,b.Z.META,b.Z.WIN_KEY_RIGHT,b.Z.CTRL,b.Z.SEMICOLON,b.Z.EQUALS,b.Z.CAPS_LOCK,b.Z.CONTEXT_MENU,b.Z.F1,b.Z.F2,b.Z.F3,b.Z.F4,b.Z.F5,b.Z.F6,b.Z.F7,b.Z.F8,b.Z.F9,b.Z.F10,b.Z.F11,b.Z.F12].includes(Ne)}var pt=function(Ae,st){var dt=(0,A.useRef)(null),kt=(0,A.useRef)(!1),Lt=Ae.prefixCls,Bt=Ae.open,Nt=Ae.mode,en=Ae.showSearch,pn=Ae.tokenWithEnter,Tt=Ae.autoClearSearchValue,yt=Ae.onSearch,Kt=Ae.onSearchSubmit,$t=Ae.onToggleOpen,Zt=Ae.onInputKeyDown,ln=Ae.domRef;A.useImperativeHandle(st,function(){return{focus:function(){dt.current.focus()},blur:function(){dt.current.blur()}}});var Ln=T(0),yn=(0,j.Z)(Ln,2),Ft=yn[0],Qe=yn[1],tt=function(rn){var $n=rn.which;($n===b.Z.UP||$n===b.Z.DOWN)&&rn.preventDefault(),Zt&&Zt(rn),$n===b.Z.ENTER&&Nt==="tags"&&!kt.current&&!Bt&&(Kt==null||Kt(rn.target.value)),mt($n)&&$t(!0)},vt=function(){Qe(!0)},bt=(0,A.useRef)(null),ht=function(rn){yt(rn,!0,kt.current)!==!1&&$t(!0)},Dt=function(){kt.current=!0},xt=function(rn){kt.current=!1,Nt!=="combobox"&&ht(rn.target.value)},jt=function(rn){var $n=rn.target.value;if(pn&&bt.current&&/[\r\n]/.test(bt.current)){var Sn=bt.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");$n=$n.replace(Sn,bt.current)}bt.current=null,ht($n)},tn=function(rn){var $n=rn.clipboardData,Sn=$n.getData("text");bt.current=Sn},nn=function(rn){var $n=rn.target;if($n!==dt.current){var Sn=document.body.style.msTouchAction!==void 0;Sn?setTimeout(function(){dt.current.focus()}):dt.current.focus()}},In=function(rn){var $n=Ft();rn.target!==dt.current&&!$n&&Nt!=="combobox"&&rn.preventDefault(),(Nt!=="combobox"&&(!en||!$n)||!Bt)&&(Bt&&Tt!==!1&&yt("",!0,!1),$t())},Dn={inputRef:dt,onInputKeyDown:tt,onInputMouseDown:vt,onInputChange:jt,onInputPaste:tn,onInputCompositionStart:Dt,onInputCompositionEnd:xt},Fn=Nt==="multiple"||Nt==="tags"?A.createElement(Ge,(0,M.Z)({},Ae,Dn)):A.createElement(Ve,(0,M.Z)({},Ae,Dn));return A.createElement("div",{ref:ln,className:"".concat(Lt,"-selector"),onClick:nn,onMouseDown:In},Fn)},nt=A.forwardRef(pt);nt.displayName="Selector";var Gt=nt,Jt=p(35593),sn=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Ut=function(Ae){var st=Ae===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:st,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:st,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:st,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:st,adjustY:1},htmlRegion:"scroll"}}},Xt=function(Ae,st){var dt=Ae.prefixCls,kt=Ae.disabled,Lt=Ae.visible,Bt=Ae.children,Nt=Ae.popupElement,en=Ae.animation,pn=Ae.transitionName,Tt=Ae.dropdownStyle,yt=Ae.dropdownClassName,Kt=Ae.direction,$t=Kt===void 0?"ltr":Kt,Zt=Ae.placement,ln=Ae.builtinPlacements,Ln=Ae.dropdownMatchSelectWidth,yn=Ae.dropdownRender,Ft=Ae.dropdownAlign,Qe=Ae.getPopupContainer,tt=Ae.empty,vt=Ae.getTriggerDOMNode,bt=Ae.onPopupVisibleChange,ht=Ae.onPopupMouseEnter,Dt=(0,X.Z)(Ae,sn),xt="".concat(dt,"-dropdown"),jt=Nt;yn&&(jt=yn(Nt));var tn=A.useMemo(function(){return ln||Ut(Ln)},[ln,Ln]),nn=en?"".concat(xt,"-").concat(en):pn,In=typeof Ln=="number",Dn=A.useMemo(function(){return In?null:Ln===!1?"minWidth":"width"},[Ln,In]),Fn=Tt;In&&(Fn=(0,Te.Z)((0,Te.Z)({},Fn),{},{width:Ln}));var cn=A.useRef(null);return A.useImperativeHandle(st,function(){return{getPopupElement:function(){return cn.current}}}),A.createElement(Jt.Z,(0,M.Z)({},Dt,{showAction:bt?["click"]:[],hideAction:bt?["click"]:[],popupPlacement:Zt||($t==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:tn,prefixCls:xt,popupTransitionName:nn,popup:A.createElement("div",{ref:cn,onMouseEnter:ht},jt),stretch:Dn,popupAlign:Ft,popupVisible:Lt,getPopupContainer:Qe,popupClassName:v()(yt,(0,ce.Z)({},"".concat(xt,"-empty"),tt)),popupStyle:Fn,getTriggerDOMNode:vt,onPopupVisibleChange:bt}),Bt)},it=A.forwardRef(Xt);it.displayName="SelectTrigger";var te=it,ge=p(17953);function q(Ne,Ae){var st=Ne.key,dt;return"value"in Ne&&(dt=Ne.value),st!=null?st:dt!==void 0?dt:"rc-index-key-".concat(Ae)}function z(Ne,Ae){var st=Ne||{},dt=st.label,kt=st.value,Lt=st.options,Bt=st.groupLabel,Nt=dt||(Ae?"children":"label");return{label:Nt,value:kt||"value",options:Lt||"options",groupLabel:Bt||Nt}}function De(Ne){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},st=Ae.fieldNames,dt=Ae.childrenAsData,kt=[],Lt=z(st,!1),Bt=Lt.label,Nt=Lt.value,en=Lt.options,pn=Lt.groupLabel;function Tt(yt,Kt){yt.forEach(function($t){if(Kt||!(en in $t)){var Zt=$t[Nt];kt.push({key:q($t,kt.length),groupOption:Kt,data:$t,label:$t[Bt],value:Zt})}else{var ln=$t[pn];ln===void 0&&dt&&(ln=$t.label),kt.push({key:q($t,kt.length),group:!0,data:$t,label:ln}),Tt($t[en],!0)}})}return Tt(Ne,!1),kt}function O(Ne){var Ae=(0,Te.Z)({},Ne);return"props"in Ae||Object.defineProperty(Ae,"props",{get:function(){return(0,a.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ae}}),Ae}function ae(Ne,Ae){if(!Ae||!Ae.length)return null;var st=!1;function dt(Lt,Bt){var Nt=(0,ge.Z)(Bt),en=Nt[0],pn=Nt.slice(1);if(!en)return[Lt];var Tt=Lt.split(en);return st=st||Tt.length>1,Tt.reduce(function(yt,Kt){return[].concat((0,Y.Z)(yt),(0,Y.Z)(dt(Kt,pn)))},[]).filter(function(yt){return yt})}var kt=dt(Ne,Ae);return st?kt:null}var J=["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"],oe=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function de(Ne){return Ne==="tags"||Ne==="multiple"}var Ce=A.forwardRef(function(Ne,Ae){var st,dt,kt=Ne.id,Lt=Ne.prefixCls,Bt=Ne.className,Nt=Ne.showSearch,en=Ne.tagRender,pn=Ne.direction,Tt=Ne.omitDomProps,yt=Ne.displayValues,Kt=Ne.onDisplayValuesChange,$t=Ne.emptyOptions,Zt=Ne.notFoundContent,ln=Zt===void 0?"Not Found":Zt,Ln=Ne.onClear,yn=Ne.mode,Ft=Ne.disabled,Qe=Ne.loading,tt=Ne.getInputElement,vt=Ne.getRawInputElement,bt=Ne.open,ht=Ne.defaultOpen,Dt=Ne.onDropdownVisibleChange,xt=Ne.activeValue,jt=Ne.onActiveValueChange,tn=Ne.activeDescendantId,nn=Ne.searchValue,In=Ne.autoClearSearchValue,Dn=Ne.onSearch,Fn=Ne.onSearchSplit,cn=Ne.tokenSeparators,rn=Ne.allowClear,$n=Ne.suffixIcon,Sn=Ne.clearIcon,Wn=Ne.OptionList,Cn=Ne.animation,Bn=Ne.transitionName,zn=Ne.dropdownStyle,On=Ne.dropdownClassName,Qn=Ne.dropdownMatchSelectWidth,or=Ne.dropdownRender,Tn=Ne.dropdownAlign,qt=Ne.placement,Ke=Ne.builtinPlacements,un=Ne.getPopupContainer,Pn=Ne.showAction,Kn=Pn===void 0?[]:Pn,Gn=Ne.onFocus,nr=Ne.onBlur,tr=Ne.onKeyUp,Hn=Ne.onKeyDown,fn=Ne.onMouseDown,dn=(0,X.Z)(Ne,J),En=de(yn),Vn=(Nt!==void 0?Nt:En)||yn==="combobox",ir=(0,Te.Z)({},dn);oe.forEach(function(Ar){delete ir[Ar]}),Tt==null||Tt.forEach(function(Ar){delete ir[Ar]});var wr=A.useState(!1),Lr=(0,j.Z)(wr,2),An=Lr[0],hr=Lr[1];A.useEffect(function(){hr((0,y.Z)())},[]);var ur=A.useRef(null),pr=A.useRef(null),Zr=A.useRef(null),zr=A.useRef(null),br=A.useRef(null),Dr=x(),gr=(0,j.Z)(Dr,3),jr=gr[0],Vr=gr[1],ii=gr[2];A.useImperativeHandle(Ae,function(){var Ar,cr;return{focus:(Ar=zr.current)===null||Ar===void 0?void 0:Ar.focus,blur:(cr=zr.current)===null||cr===void 0?void 0:cr.blur,scrollTo:function(gi){var Jr;return(Jr=br.current)===null||Jr===void 0?void 0:Jr.scrollTo(gi)}}});var Fr=A.useMemo(function(){var Ar;if(yn!=="combobox")return nn;var cr=(Ar=yt[0])===null||Ar===void 0?void 0:Ar.value;return typeof cr=="string"||typeof cr=="number"?String(cr):""},[nn,yn,yt]),ei=yn==="combobox"&&typeof tt=="function"&&tt()||null,ar=typeof vt=="function"&&vt(),si=(0,k.x1)(pr,ar==null||(st=ar.props)===null||st===void 0?void 0:st.ref),vi=A.useState(!1),fi=(0,j.Z)(vi,2),Or=fi[0],hi=fi[1];(0,u.Z)(function(){hi(!0)},[]);var mr=(0,_e.Z)(!1,{defaultValue:ht,value:bt}),Wt=(0,j.Z)(mr,2),sr=Wt[0],vr=Wt[1],Rn=Or?sr:!1,Nn=!ln&&$t;(Ft||Nn&&Rn&&yn==="combobox")&&(Rn=!1);var xn=Nn?!1:Rn,bn=A.useCallback(function(Ar){var cr=Ar!==void 0?Ar:!Rn;Ft||(vr(cr),Rn!==cr&&(Dt==null||Dt(cr)))},[Ft,Rn,vr,Dt]),Xn=A.useMemo(function(){return(cn||[]).some(function(Ar){return[`
`,`\r
`].includes(Ar)})},[cn]),lr=function(cr,mi,gi){var Jr=!0,Ci=cr;jt==null||jt(null);var Br=gi?null:ae(cr,cn);return yn!=="combobox"&&Br&&(Ci="",Fn==null||Fn(Br),bn(!1),Jr=!1),Dn&&Fr!==Ci&&Dn(Ci,{source:mi?"typing":"effect"}),Jr},Pr=function(cr){!cr||!cr.trim()||Dn(cr,{source:"submit"})};A.useEffect(function(){!Rn&&!En&&yn!=="combobox"&&lr("",!1,!1)},[Rn]),A.useEffect(function(){sr&&Ft&&vr(!1),Ft&&Vr(!1)},[Ft]);var Tr=T(),Rr=(0,j.Z)(Tr,2),Mr=Rr[0],ui=Rr[1],Yr=function(cr){var mi=Mr(),gi=cr.which;if(gi===b.Z.ENTER&&(yn!=="combobox"&&cr.preventDefault(),Rn||bn(!0)),ui(!!Fr),gi===b.Z.BACKSPACE&&!mi&&En&&!Fr&&yt.length){for(var Jr=(0,Y.Z)(yt),Ci=null,Br=Jr.length-1;Br>=0;Br-=1){var $i=Jr[Br];if(!$i.disabled){Jr.splice(Br,1),Ci=$i;break}}Ci&&Kt(Jr,{type:"remove",values:[Ci]})}for(var xi=arguments.length,ki=new Array(xi>1?xi-1:0),zi=1;zi<xi;zi++)ki[zi-1]=arguments[zi];if(Rn&&br.current){var Ur;(Ur=br.current).onKeyDown.apply(Ur,[cr].concat(ki))}Hn==null||Hn.apply(void 0,[cr].concat(ki))},pi=function(cr){for(var mi=arguments.length,gi=new Array(mi>1?mi-1:0),Jr=1;Jr<mi;Jr++)gi[Jr-1]=arguments[Jr];if(Rn&&br.current){var Ci;(Ci=br.current).onKeyUp.apply(Ci,[cr].concat(gi))}tr==null||tr.apply(void 0,[cr].concat(gi))},Bi=function(cr){var mi=yt.filter(function(gi){return gi!==cr});Kt(mi,{type:"remove",values:[cr]})},bi=A.useRef(!1),jn=function(){Vr(!0),Ft||(Gn&&!bi.current&&Gn.apply(void 0,arguments),Kn.includes("focus")&&bn(!0)),bi.current=!0},Zn=function(){Vr(!1,function(){bi.current=!1,bn(!1)}),!Ft&&(Fr&&(yn==="tags"?Dn(Fr,{source:"submit"}):yn==="multiple"&&Dn("",{source:"blur"})),nr&&nr.apply(void 0,arguments))},yr=[];A.useEffect(function(){return function(){yr.forEach(function(Ar){return clearTimeout(Ar)}),yr.splice(0,yr.length)}},[]);var Qr=function(cr){var mi,gi=cr.target,Jr=(mi=Zr.current)===null||mi===void 0?void 0:mi.getPopupElement();if(Jr&&Jr.contains(gi)){var Ci=setTimeout(function(){var ki=yr.indexOf(Ci);if(ki!==-1&&yr.splice(ki,1),ii(),!An&&!Jr.contains(document.activeElement)){var zi;(zi=zr.current)===null||zi===void 0||zi.focus()}});yr.push(Ci)}for(var Br=arguments.length,$i=new Array(Br>1?Br-1:0),xi=1;xi<Br;xi++)$i[xi-1]=arguments[xi];fn==null||fn.apply(void 0,[cr].concat($i))},Ir=A.useState({}),_i=(0,j.Z)(Ir,2),Wi=_i[1];function Hi(){Wi({})}var Ai;ar&&(Ai=function(cr){bn(cr)}),$(function(){var Ar;return[ur.current,(Ar=Zr.current)===null||Ar===void 0?void 0:Ar.getPopupElement()]},xn,bn,!!ar);var aa=A.useMemo(function(){return(0,Te.Z)((0,Te.Z)({},Ne),{},{notFoundContent:ln,open:Rn,triggerOpen:xn,id:kt,showSearch:Vn,multiple:En,toggleOpen:bn})},[Ne,ln,xn,Rn,kt,Vn,En,bn]),sa=!!$n||Qe,oa;sa&&(oa=A.createElement(P,{className:v()("".concat(Lt,"-arrow"),(0,ce.Z)({},"".concat(Lt,"-arrow-loading"),Qe)),customizeIcon:$n,customizeIconProps:{loading:Qe,searchValue:Fr,open:Rn,focused:jr,showSearch:Vn}}));var ea=function(){var cr;Ln==null||Ln(),(cr=zr.current)===null||cr===void 0||cr.focus(),Kt([],{type:"clear",values:yt}),lr("",!1,!1)},la=N(Lt,ea,yt,rn,Sn,Ft,Fr,yn),Mi=la.allowClear,oi=la.clearIcon,ua=A.createElement(Wn,{ref:br}),ta=v()(Lt,Bt,(dt={},(0,ce.Z)(dt,"".concat(Lt,"-focused"),jr),(0,ce.Z)(dt,"".concat(Lt,"-multiple"),En),(0,ce.Z)(dt,"".concat(Lt,"-single"),!En),(0,ce.Z)(dt,"".concat(Lt,"-allow-clear"),rn),(0,ce.Z)(dt,"".concat(Lt,"-show-arrow"),sa),(0,ce.Z)(dt,"".concat(Lt,"-disabled"),Ft),(0,ce.Z)(dt,"".concat(Lt,"-loading"),Qe),(0,ce.Z)(dt,"".concat(Lt,"-open"),Rn),(0,ce.Z)(dt,"".concat(Lt,"-customize-input"),ei),(0,ce.Z)(dt,"".concat(Lt,"-show-search"),Vn),dt)),Si=A.createElement(te,{ref:Zr,disabled:Ft,prefixCls:Lt,visible:xn,popupElement:ua,animation:Cn,transitionName:Bn,dropdownStyle:zn,dropdownClassName:On,direction:pn,dropdownMatchSelectWidth:Qn,dropdownRender:or,dropdownAlign:Tn,placement:qt,builtinPlacements:Ke,getPopupContainer:un,empty:$t,getTriggerDOMNode:function(){return pr.current},onPopupVisibleChange:Ai,onPopupMouseEnter:Hi},ar?A.cloneElement(ar,{ref:si}):A.createElement(Gt,(0,M.Z)({},Ne,{domRef:pr,prefixCls:Lt,inputElement:ei,ref:zr,id:kt,showSearch:Vn,autoClearSearchValue:In,mode:yn,activeDescendantId:tn,tagRender:en,values:yt,open:Rn,onToggleOpen:bn,activeValue:xt,searchValue:Fr,onSearch:lr,onSearchSubmit:Pr,onRemove:Bi,tokenWithEnter:Xn}))),Oi;return ar?Oi=Si:Oi=A.createElement("div",(0,M.Z)({className:ta},ir,{ref:ur,onMouseDown:Qr,onKeyDown:Yr,onKeyUp:pi,onFocus:jn,onBlur:Zn}),jr&&!Rn&&A.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(yt.map(function(Ar){var cr=Ar.label,mi=Ar.value;return["number","string"].includes((0,ve.Z)(cr))?cr:mi}).join(", "))),Si,oa,Mi&&oi),A.createElement(V.Provider,{value:aa},Oi)}),xe=Ce,ke=function(Ne,Ae){var st=A.useRef({values:new Map,options:new Map}),dt=A.useMemo(function(){var Lt=st.current,Bt=Lt.values,Nt=Lt.options,en=Ne.map(function(yt){if(yt.label===void 0){var Kt;return(0,Te.Z)((0,Te.Z)({},yt),{},{label:(Kt=Bt.get(yt.value))===null||Kt===void 0?void 0:Kt.label})}return yt}),pn=new Map,Tt=new Map;return en.forEach(function(yt){pn.set(yt.value,yt),Tt.set(yt.value,Ae.get(yt.value)||Nt.get(yt.value))}),st.current.values=pn,st.current.options=Tt,en},[Ne,Ae]),kt=A.useCallback(function(Lt){return Ae.get(Lt)||st.current.options.get(Lt)},[Ae]);return[dt,kt]};function Ie(Ne,Ae){return G(Ne).join("").toUpperCase().includes(Ae)}var Pe=function(Ne,Ae,st,dt,kt){return A.useMemo(function(){if(!st||dt===!1)return Ne;var Lt=Ae.options,Bt=Ae.label,Nt=Ae.value,en=[],pn=typeof dt=="function",Tt=st.toUpperCase(),yt=pn?dt:function($t,Zt){return kt?Ie(Zt[kt],Tt):Zt[Lt]?Ie(Zt[Bt!=="children"?Bt:"label"],Tt):Ie(Zt[Nt],Tt)},Kt=pn?function($t){return O($t)}:function($t){return $t};return Ne.forEach(function($t){if($t[Lt]){var Zt=yt(st,Kt($t));if(Zt)en.push($t);else{var ln=$t[Lt].filter(function(Ln){return yt(st,Kt(Ln))});ln.length&&en.push((0,Te.Z)((0,Te.Z)({},$t),{},(0,ce.Z)({},Lt,ln)))}return}yt(st,Kt($t))&&en.push($t)}),en},[Ne,dt,kt,st,Ae])},Xe=p(17115),rt=p(38298),Ze=["children","value"],ct=["children"];function ut(Ne){var Ae=Ne,st=Ae.key,dt=Ae.props,kt=dt.children,Lt=dt.value,Bt=(0,X.Z)(dt,Ze);return(0,Te.Z)({key:st,value:Lt!==void 0?Lt:st,children:kt},Bt)}function ot(Ne){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,rt.Z)(Ne).map(function(st,dt){if(!A.isValidElement(st)||!st.type)return null;var kt=st,Lt=kt.type.isSelectOptGroup,Bt=kt.key,Nt=kt.props,en=Nt.children,pn=(0,X.Z)(Nt,ct);return Ae||!Lt?ut(st):(0,Te.Z)((0,Te.Z)({key:"__RC_SELECT_GRP__".concat(Bt===null?dt:Bt,"__"),label:Bt},pn),{},{options:ot(en)})}).filter(function(st){return st})}function Ot(Ne,Ae,st,dt,kt){return A.useMemo(function(){var Lt=Ne,Bt=!Ne;Bt&&(Lt=ot(Ae));var Nt=new Map,en=new Map,pn=function(Kt,$t,Zt){Zt&&typeof Zt=="string"&&Kt.set($t[Zt],$t)};function Tt(yt){for(var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$t=0;$t<yt.length;$t+=1){var Zt=yt[$t];!Zt[st.options]||Kt?(Nt.set(Zt[st.value],Zt),pn(en,Zt,st.label),pn(en,Zt,dt),pn(en,Zt,kt)):Tt(Zt[st.options],!0)}}return Tt(Lt),{options:Lt,valueOptions:Nt,labelOptions:en}},[Ne,Ae,st,dt,kt])}function _t(Ne){var Ae=A.useRef();Ae.current=Ne;var st=A.useCallback(function(){return Ae.current.apply(Ae,arguments)},[]);return st}var w=function(){return null};w.isSelectOptGroup=!0;var C=w,lt=function(){return null};lt.isSelectOption=!0;var ie=lt,Oe=p(79722),mn=p(64002),Fe=p(70318),We=A.createContext(null),Je=We;function ue(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var W=["disabled","title","children","style","className"];function we(Ne){return typeof Ne=="string"||typeof Ne=="number"}var Be=function(Ae,st){var dt=K(),kt=dt.prefixCls,Lt=dt.id,Bt=dt.open,Nt=dt.multiple,en=dt.mode,pn=dt.searchValue,Tt=dt.toggleOpen,yt=dt.notFoundContent,Kt=dt.onPopupScroll,$t=A.useContext(Je),Zt=$t.flattenOptions,ln=$t.onActiveValue,Ln=$t.defaultActiveFirstOption,yn=$t.onSelect,Ft=$t.menuItemSelectedIcon,Qe=$t.rawValues,tt=$t.fieldNames,vt=$t.virtual,bt=$t.direction,ht=$t.listHeight,Dt=$t.listItemHeight,xt="".concat(kt,"-item"),jt=(0,Oe.Z)(function(){return Zt},[Bt,Zt],function(Tn,qt){return qt[0]&&Tn[1]!==qt[1]}),tn=A.useRef(null),nn=function(qt){qt.preventDefault()},In=function(qt){tn.current&&tn.current.scrollTo(typeof qt=="number"?{index:qt}:qt)},Dn=function(qt){for(var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,un=jt.length,Pn=0;Pn<un;Pn+=1){var Kn=(qt+Pn*Ke+un)%un,Gn=jt[Kn],nr=Gn.group,tr=Gn.data;if(!nr&&!tr.disabled)return Kn}return-1},Fn=A.useState(function(){return Dn(0)}),cn=(0,j.Z)(Fn,2),rn=cn[0],$n=cn[1],Sn=function(qt){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;$n(qt);var un={source:Ke?"keyboard":"mouse"},Pn=jt[qt];if(!Pn){ln(null,-1,un);return}ln(Pn.value,qt,un)};(0,A.useEffect)(function(){Sn(Ln!==!1?Dn(0):-1)},[jt.length,pn]);var Wn=A.useCallback(function(Tn){return Qe.has(Tn)&&en!=="combobox"},[en,(0,Y.Z)(Qe).toString(),Qe.size]);(0,A.useEffect)(function(){var Tn=setTimeout(function(){if(!Nt&&Bt&&Qe.size===1){var Ke=Array.from(Qe)[0],un=jt.findIndex(function(Pn){var Kn=Pn.data;return Kn.value===Ke});un!==-1&&(Sn(un),In(un))}});if(Bt){var qt;(qt=tn.current)===null||qt===void 0||qt.scrollTo(void 0)}return function(){return clearTimeout(Tn)}},[Bt,pn,Zt.length]);var Cn=function(qt){qt!==void 0&&yn(qt,{selected:!Qe.has(qt)}),Nt||Tt(!1)};if(A.useImperativeHandle(st,function(){return{onKeyDown:function(qt){var Ke=qt.which,un=qt.ctrlKey;switch(Ke){case b.Z.N:case b.Z.P:case b.Z.UP:case b.Z.DOWN:{var Pn=0;if(Ke===b.Z.UP?Pn=-1:Ke===b.Z.DOWN?Pn=1:ue()&&un&&(Ke===b.Z.N?Pn=1:Ke===b.Z.P&&(Pn=-1)),Pn!==0){var Kn=Dn(rn+Pn,Pn);In(Kn),Sn(Kn,!0)}break}case b.Z.ENTER:{var Gn=jt[rn];Gn&&!Gn.data.disabled?Cn(Gn.value):Cn(void 0),Bt&&qt.preventDefault();break}case b.Z.ESC:Tt(!1),Bt&&qt.stopPropagation()}},onKeyUp:function(){},scrollTo:function(qt){In(qt)}}}),jt.length===0)return A.createElement("div",{role:"listbox",id:"".concat(Lt,"_list"),className:"".concat(xt,"-empty"),onMouseDown:nn},yt);var Bn=Object.keys(tt).map(function(Tn){return tt[Tn]}),zn=function(qt){return qt.label};function On(Tn,qt){var Ke=Tn.group;return{role:Ke?"presentation":"option",id:"".concat(Lt,"_list_").concat(qt)}}var Qn=function(qt){var Ke=jt[qt];if(!Ke)return null;var un=Ke.data||{},Pn=un.value,Kn=Ke.group,Gn=(0,B.Z)(un,!0),nr=zn(Ke);return Ke?A.createElement("div",(0,M.Z)({"aria-label":typeof nr=="string"&&!Kn?nr:null},Gn,{key:qt},On(Ke,qt),{"aria-selected":Wn(Pn)}),Pn):null},or={role:"listbox",id:"".concat(Lt,"_list")};return A.createElement(A.Fragment,null,vt&&A.createElement("div",(0,M.Z)({},or,{style:{height:0,width:0,overflow:"hidden"}}),Qn(rn-1),Qn(rn),Qn(rn+1)),A.createElement(Fe.Z,{itemKey:"key",ref:tn,data:jt,height:ht,itemHeight:Dt,fullHeight:!1,onMouseDown:nn,onScroll:Kt,virtual:vt,direction:bt,innerProps:vt?null:or},function(Tn,qt){var Ke,un=Tn.group,Pn=Tn.groupOption,Kn=Tn.data,Gn=Tn.label,nr=Tn.value,tr=Kn.key;if(un){var Hn,fn=(Hn=Kn.title)!==null&&Hn!==void 0?Hn:we(Gn)?Gn.toString():void 0;return A.createElement("div",{className:v()(xt,"".concat(xt,"-group")),title:fn},Gn!==void 0?Gn:tr)}var dn=Kn.disabled,En=Kn.title,Vn=Kn.children,ir=Kn.style,wr=Kn.className,Lr=(0,X.Z)(Kn,W),An=(0,mn.Z)(Lr,Bn),hr=Wn(nr),ur="".concat(xt,"-option"),pr=v()(xt,ur,wr,(Ke={},(0,ce.Z)(Ke,"".concat(ur,"-grouped"),Pn),(0,ce.Z)(Ke,"".concat(ur,"-active"),rn===qt&&!dn),(0,ce.Z)(Ke,"".concat(ur,"-disabled"),dn),(0,ce.Z)(Ke,"".concat(ur,"-selected"),hr),Ke)),Zr=zn(Tn),zr=!Ft||typeof Ft=="function"||hr,br=typeof Zr=="number"?Zr:Zr||nr,Dr=we(br)?br.toString():void 0;return En!==void 0&&(Dr=En),A.createElement("div",(0,M.Z)({},(0,B.Z)(An),vt?{}:On(Tn,qt),{"aria-selected":hr,className:pr,title:Dr,onMouseMove:function(){rn===qt||dn||Sn(qt)},onClick:function(){dn||Cn(nr)},style:ir}),A.createElement("div",{className:"".concat(ur,"-content")},br),A.isValidElement(Ft)||hr,zr&&A.createElement(P,{className:"".concat(xt,"-option-state"),customizeIcon:Ft,customizeIconProps:{isSelected:hr}},hr?"\u2713":null))}))},U=A.forwardRef(Be);U.displayName="OptionList";var at=U;function Ee(Ne){var Ae=Ne.mode,st=Ne.options,dt=Ne.children,kt=Ne.backfill,Lt=Ne.allowClear,Bt=Ne.placeholder,Nt=Ne.getInputElement,en=Ne.showSearch,pn=Ne.onSearch,Tt=Ne.defaultOpen,yt=Ne.autoFocus,Kt=Ne.labelInValue,$t=Ne.value,Zt=Ne.inputValue,ln=Ne.optionLabelProp,Ln=isMultiple(Ae),yn=en!==void 0?en:Ln||Ae==="combobox",Ft=st||convertChildrenToData(dt);if(warning(Ae!=="tags"||Ft.every(function(bt){return!bt.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ae==="tags"||Ae==="combobox"){var Qe=Ft.some(function(bt){return bt.options?bt.options.some(function(ht){return typeof("value"in ht?ht.value:ht.key)=="number"}):typeof("value"in bt?bt.value:bt.key)=="number"});warning(!Qe,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ae!=="combobox"||!ln,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ae==="combobox"||!kt,"`backfill` only works with `combobox` mode."),warning(Ae==="combobox"||!Nt,"`getInputElement` only work with `combobox` mode."),noteOnce(Ae!=="combobox"||!Nt||!Lt||!Bt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),pn&&!yn&&Ae!=="combobox"&&Ae!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Tt||yt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),$t!=null){var tt=toArray($t);warning(!Kt||tt.every(function(bt){return _typeof(bt)==="object"&&("key"in bt||"value"in bt)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Ln||Array.isArray($t),"`value` should be array when `mode` is `multiple` or `tags`")}if(dt){var vt=null;toNodeArray(dt).some(function(bt){if(!React.isValidElement(bt)||!bt.type)return!1;var ht=bt,Dt=ht.type;if(Dt.isSelectOption)return!1;if(Dt.isSelectOptGroup){var xt=toNodeArray(bt.props.children).every(function(jt){return!React.isValidElement(jt)||!bt.type||jt.type.isSelectOption?!0:(vt=jt.type,!1)});return!xt}return vt=Dt,!0}),vt&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(vt.displayName||vt.name||vt,"`.")),warning(Zt===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function St(Ne,Ae){if(Ne){var st=function dt(kt){for(var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Bt=0;Bt<kt.length;Bt++){var Nt=kt[Bt];if(Nt[Ae==null?void 0:Ae.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Lt&&Array.isArray(Nt[Ae==null?void 0:Ae.options])&&dt(Nt[Ae==null?void 0:Ae.options],!0))break}};st(Ne)}}var Pt=null,zt=["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"],on=["inputValue"];function It(Ne){return!Ne||(0,ve.Z)(Ne)!=="object"}var Vt=A.forwardRef(function(Ne,Ae){var st=Ne.id,dt=Ne.mode,kt=Ne.prefixCls,Lt=kt===void 0?"rc-select":kt,Bt=Ne.backfill,Nt=Ne.fieldNames,en=Ne.inputValue,pn=Ne.searchValue,Tt=Ne.onSearch,yt=Ne.autoClearSearchValue,Kt=yt===void 0?!0:yt,$t=Ne.onSelect,Zt=Ne.onDeselect,ln=Ne.dropdownMatchSelectWidth,Ln=ln===void 0?!0:ln,yn=Ne.filterOption,Ft=Ne.filterSort,Qe=Ne.optionFilterProp,tt=Ne.optionLabelProp,vt=Ne.options,bt=Ne.children,ht=Ne.defaultActiveFirstOption,Dt=Ne.menuItemSelectedIcon,xt=Ne.virtual,jt=Ne.direction,tn=Ne.listHeight,nn=tn===void 0?200:tn,In=Ne.listItemHeight,Dn=In===void 0?20:In,Fn=Ne.value,cn=Ne.defaultValue,rn=Ne.labelInValue,$n=Ne.onChange,Sn=(0,X.Z)(Ne,zt),Wn=(0,Xe.ZP)(st),Cn=de(dt),Bn=!!(!vt&&bt),zn=A.useMemo(function(){return yn===void 0&&dt==="combobox"?!1:yn},[yn,dt]),On=A.useMemo(function(){return z(Nt,Bn)},[JSON.stringify(Nt),Bn]),Qn=(0,_e.Z)("",{value:pn!==void 0?pn:en,postState:function(Nn){return Nn||""}}),or=(0,j.Z)(Qn,2),Tn=or[0],qt=or[1],Ke=Ot(vt,bt,On,Qe,tt),un=Ke.valueOptions,Pn=Ke.labelOptions,Kn=Ke.options,Gn=A.useCallback(function(Rn){var Nn=G(Rn);return Nn.map(function(xn){var bn,Xn,lr,Pr,Tr;if(It(xn))bn=xn;else{var Rr;lr=xn.key,Xn=xn.label,bn=(Rr=xn.value)!==null&&Rr!==void 0?Rr:lr}var Mr=un.get(bn);if(Mr){var ui;if(Xn===void 0&&(Xn=Mr==null?void 0:Mr[tt||On.label]),lr===void 0&&(lr=(ui=Mr==null?void 0:Mr.key)!==null&&ui!==void 0?ui:bn),Pr=Mr==null?void 0:Mr.disabled,Tr=Mr==null?void 0:Mr.title,0)var Yr}return{label:Xn,value:bn,key:lr,disabled:Pr,title:Tr}})},[On,tt,un]),nr=(0,_e.Z)(cn,{value:Fn}),tr=(0,j.Z)(nr,2),Hn=tr[0],fn=tr[1],dn=A.useMemo(function(){var Rn,Nn=Gn(Hn);return dt==="combobox"&&Q((Rn=Nn[0])===null||Rn===void 0?void 0:Rn.value)?[]:Nn},[Hn,Gn,dt]),En=ke(dn,un),Vn=(0,j.Z)(En,2),ir=Vn[0],wr=Vn[1],Lr=A.useMemo(function(){if(!dt&&ir.length===1){var Rn=ir[0];if(Rn.value===null&&(Rn.label===null||Rn.label===void 0))return[]}return ir.map(function(Nn){var xn;return(0,Te.Z)((0,Te.Z)({},Nn),{},{label:(xn=Nn.label)!==null&&xn!==void 0?xn:Nn.value})})},[dt,ir]),An=A.useMemo(function(){return new Set(ir.map(function(Rn){return Rn.value}))},[ir]);A.useEffect(function(){if(dt==="combobox"){var Rn,Nn=(Rn=ir[0])===null||Rn===void 0?void 0:Rn.value;qt(D(Nn)?String(Nn):"")}},[ir]);var hr=_t(function(Rn,Nn){var xn,bn=Nn!=null?Nn:Rn;return xn={},(0,ce.Z)(xn,On.value,Rn),(0,ce.Z)(xn,On.label,bn),xn}),ur=A.useMemo(function(){if(dt!=="tags")return Kn;var Rn=(0,Y.Z)(Kn),Nn=function(bn){return un.has(bn)};return(0,Y.Z)(ir).sort(function(xn,bn){return xn.value<bn.value?-1:1}).forEach(function(xn){var bn=xn.value;Nn(bn)||Rn.push(hr(bn,xn.label))}),Rn},[hr,Kn,un,ir,dt]),pr=Pe(ur,On,Tn,zn,Qe),Zr=A.useMemo(function(){return dt!=="tags"||!Tn||pr.some(function(Rn){return Rn[Qe||"value"]===Tn})||pr.some(function(Rn){return Rn[On.value]===Tn})?pr:[hr(Tn)].concat((0,Y.Z)(pr))},[hr,Qe,dt,pr,Tn,On]),zr=A.useMemo(function(){return Ft?(0,Y.Z)(Zr).sort(function(Rn,Nn){return Ft(Rn,Nn)}):Zr},[Zr,Ft]),br=A.useMemo(function(){return De(zr,{fieldNames:On,childrenAsData:Bn})},[zr,On,Bn]),Dr=function(Nn){var xn=Gn(Nn);if(fn(xn),$n&&(xn.length!==ir.length||xn.some(function(lr,Pr){var Tr;return((Tr=ir[Pr])===null||Tr===void 0?void 0:Tr.value)!==(lr==null?void 0:lr.value)}))){var bn=rn?xn:xn.map(function(lr){return lr.value}),Xn=xn.map(function(lr){return O(wr(lr.value))});$n(Cn?bn:bn[0],Cn?Xn:Xn[0])}},gr=A.useState(null),jr=(0,j.Z)(gr,2),Vr=jr[0],ii=jr[1],Fr=A.useState(0),ei=(0,j.Z)(Fr,2),ar=ei[0],si=ei[1],vi=ht!==void 0?ht:dt!=="combobox",fi=A.useCallback(function(Rn,Nn){var xn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},bn=xn.source,Xn=bn===void 0?"keyboard":bn;si(Nn),Bt&&dt==="combobox"&&Rn!==null&&Xn==="keyboard"&&ii(String(Rn))},[Bt,dt]),Or=function(Nn,xn,bn){var Xn=function(){var bi,jn=wr(Nn);return[rn?{label:jn==null?void 0:jn[On.label],value:Nn,key:(bi=jn==null?void 0:jn.key)!==null&&bi!==void 0?bi:Nn}:Nn,O(jn)]};if(xn&&$t){var lr=Xn(),Pr=(0,j.Z)(lr,2),Tr=Pr[0],Rr=Pr[1];$t(Tr,Rr)}else if(!xn&&Zt&&bn!=="clear"){var Mr=Xn(),ui=(0,j.Z)(Mr,2),Yr=ui[0],pi=ui[1];Zt(Yr,pi)}},hi=_t(function(Rn,Nn){var xn,bn=Cn?Nn.selected:!0;bn?xn=Cn?[].concat((0,Y.Z)(ir),[Rn]):[Rn]:xn=ir.filter(function(Xn){return Xn.value!==Rn}),Dr(xn),Or(Rn,bn),dt==="combobox"?ii(""):(!de||Kt)&&(qt(""),ii(""))}),mr=function(Nn,xn){Dr(Nn);var bn=xn.type,Xn=xn.values;(bn==="remove"||bn==="clear")&&Xn.forEach(function(lr){Or(lr.value,!1,bn)})},Wt=function(Nn,xn){if(qt(Nn),ii(null),xn.source==="submit"){var bn=(Nn||"").trim();if(bn){var Xn=Array.from(new Set([].concat((0,Y.Z)(An),[bn])));Dr(Xn),Or(bn,!0),qt("")}return}xn.source!=="blur"&&(dt==="combobox"&&Dr(Nn),Tt==null||Tt(Nn))},sr=function(Nn){var xn=Nn;dt!=="tags"&&(xn=Nn.map(function(Xn){var lr=Pn.get(Xn);return lr==null?void 0:lr.value}).filter(function(Xn){return Xn!==void 0}));var bn=Array.from(new Set([].concat((0,Y.Z)(An),(0,Y.Z)(xn))));Dr(bn),bn.forEach(function(Xn){Or(Xn,!0)})},vr=A.useMemo(function(){var Rn=xt!==!1&&Ln!==!1;return(0,Te.Z)((0,Te.Z)({},Ke),{},{flattenOptions:br,onActiveValue:fi,defaultActiveFirstOption:vi,onSelect:hi,menuItemSelectedIcon:Dt,rawValues:An,fieldNames:On,virtual:Rn,direction:jt,listHeight:nn,listItemHeight:Dn,childrenAsData:Bn})},[Ke,br,fi,vi,hi,Dt,An,On,xt,Ln,nn,Dn,Bn]);return A.createElement(Je.Provider,{value:vr},A.createElement(xe,(0,M.Z)({},Sn,{id:Wn,prefixCls:Lt,ref:Ae,omitDomProps:on,mode:dt,displayValues:Lr,onDisplayValuesChange:mr,direction:jt,searchValue:Tn,onSearch:Wt,autoClearSearchValue:Kt,onSearchSplit:sr,dropdownMatchSelectWidth:Ln,OptionList:at,emptyOptions:!br.length,activeValue:Vr,activeDescendantId:"".concat(Wn,"_list_").concat(ar)})))}),Ue=Vt;Ue.Option=ie,Ue.OptGroup=C;var ft=Ue,Ct=ft},9296:function(Qt,et,p){"use strict";p.r(et),p.d(et,{ResizableTextArea:function(){return Re},default:function(){return Q}});var M=p(5891),Y=p(57259),ce=p(80962),Te=p(80665),j=p(29043),X=p(19149),ve=p(26390),_e=p(92310),a=p.n(_e),A=p(93681),L=p(5643),v=p(35788),u=p(59301),y=p(29301),b=p(28800),k=p(23073),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;
`,P=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],N={},V;function K(H){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E=H.getAttribute("id")||H.getAttribute("data-reactid")||H.getAttribute("name");if(g&&N[E])return N[E];var Z=window.getComputedStyle(H),pe=Z.getPropertyValue("box-sizing")||Z.getPropertyValue("-moz-box-sizing")||Z.getPropertyValue("-webkit-box-sizing"),ze=parseFloat(Z.getPropertyValue("padding-bottom"))+parseFloat(Z.getPropertyValue("padding-top")),Ge=parseFloat(Z.getPropertyValue("border-bottom-width"))+parseFloat(Z.getPropertyValue("border-top-width")),je=P.map(function(mt){return"".concat(mt,":").concat(Z.getPropertyValue(mt))}).join(";"),Ve={sizingStyle:je,paddingSize:ze,borderSize:Ge,boxSizing:pe};return g&&E&&(N[E]=Ve),Ve}function x(H){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;V||(V=document.createElement("textarea"),V.setAttribute("tab-index","-1"),V.setAttribute("aria-hidden","true"),document.body.appendChild(V)),H.getAttribute("wrap")?V.setAttribute("wrap",H.getAttribute("wrap")):V.removeAttribute("wrap");var pe=K(H,g),ze=pe.paddingSize,Ge=pe.borderSize,je=pe.boxSizing,Ve=pe.sizingStyle;V.setAttribute("style","".concat(Ve,";").concat(se)),V.value=H.value||H.placeholder||"";var mt=void 0,pt=void 0,nt,Gt=V.scrollHeight;if(je==="border-box"?Gt+=Ge:je==="content-box"&&(Gt-=ze),E!==null||Z!==null){V.value=" ";var Jt=V.scrollHeight-ze;E!==null&&(mt=Jt*E,je==="border-box"&&(mt=mt+ze+Ge),Gt=Math.max(mt,Gt)),Z!==null&&(pt=Jt*Z,je==="border-box"&&(pt=pt+ze+Ge),nt=Gt>pt?"":"hidden",Gt=Math.min(pt,Gt))}var sn={height:Gt,overflowY:nt,resize:"none"};return mt&&(sn.minHeight=mt),pt&&(sn.maxHeight=pt),sn}var T=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],$=0,B=1,fe=2,ye=u.forwardRef(function(H,g){var E=H,Z=E.prefixCls,pe=E.onPressEnter,ze=E.defaultValue,Ge=E.value,je=E.autoSize,Ve=E.onResize,mt=E.className,pt=E.style,nt=E.disabled,Gt=E.onChange,Jt=E.onInternalAutoSize,sn=(0,X.Z)(E,T),Ut=(0,v.Z)(ze,{value:Ge,postState:function(C){return C!=null?C:""}}),Xt=(0,j.Z)(Ut,2),it=Xt[0],te=Xt[1],ge=function(C){te(C.target.value),Gt==null||Gt(C)},q=u.useRef();u.useImperativeHandle(g,function(){return{textArea:q.current}});var z=u.useMemo(function(){return je&&(0,Te.Z)(je)==="object"?[je.minRows,je.maxRows]:[]},[je]),De=(0,j.Z)(z,2),O=De[0],ae=De[1],J=!!je,oe=function(){try{if(document.activeElement===q.current){var C=q.current,lt=C.selectionStart,ie=C.selectionEnd,Oe=C.scrollTop;q.current.setSelectionRange(lt,ie),q.current.scrollTop=Oe}}catch(mn){}},de=u.useState(fe),Ce=(0,j.Z)(de,2),xe=Ce[0],ke=Ce[1],Ie=u.useState(),Pe=(0,j.Z)(Ie,2),Xe=Pe[0],rt=Pe[1],Ze=function(){ke($)};(0,b.Z)(function(){J&&Ze()},[Ge,O,ae,J]),(0,b.Z)(function(){if(xe===$)ke(B);else if(xe===B){var w=x(q.current,!1,O,ae);ke(fe),rt(w)}else oe()},[xe]);var ct=u.useRef(),ut=function(){k.Z.cancel(ct.current)},ot=function(C){xe===fe&&(Ve==null||Ve(C),je&&(ut(),ct.current=(0,k.Z)(function(){Ze()})))};u.useEffect(function(){return ut},[]);var Ot=J?Xe:null,_t=(0,Y.Z)((0,Y.Z)({},pt),Ot);return(xe===$||xe===B)&&(_t.overflowY="hidden",_t.overflowX="hidden"),u.createElement(y.Z,{onResize:ot,disabled:!(je||Ve)},u.createElement("textarea",(0,M.Z)({},sn,{ref:q,style:_t,className:a()(Z,mt,(0,ce.Z)({},"".concat(Z,"-disabled"),nt)),disabled:nt,value:it,onChange:ge})))}),Re=ye,he=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function G(H,g){return(0,ve.Z)(H||"").slice(0,g).join("")}function F(H,g,E,Z){var pe=E;return H?pe=G(E,Z):(0,ve.Z)(g||"").length<E.length&&(0,ve.Z)(E||"").length>Z&&(pe=g),pe}var le=u.forwardRef(function(H,g){var E,Z=H.defaultValue,pe=H.value,ze=H.onFocus,Ge=H.onBlur,je=H.onChange,Ve=H.allowClear,mt=H.maxLength,pt=H.onCompositionStart,nt=H.onCompositionEnd,Gt=H.suffix,Jt=H.prefixCls,sn=Jt===void 0?"rc-textarea":Jt,Ut=H.classes,Xt=H.showCount,it=H.className,te=H.style,ge=H.disabled,q=H.hidden,z=H.classNames,De=H.styles,O=H.onResize,ae=(0,X.Z)(H,he),J=(0,v.Z)(Z,{value:pe,defaultValue:Z}),oe=(0,j.Z)(J,2),de=oe[0],Ce=oe[1],xe=(0,u.useRef)(null),ke=u.useState(!1),Ie=(0,j.Z)(ke,2),Pe=Ie[0],Xe=Ie[1],rt=u.useState(!1),Ze=(0,j.Z)(rt,2),ct=Ze[0],ut=Ze[1],ot=u.useRef(),Ot=u.useRef(0),_t=u.useState(null),w=(0,j.Z)(_t,2),C=w[0],lt=w[1],ie=function(){var It;(It=xe.current)===null||It===void 0||It.textArea.focus()};(0,u.useImperativeHandle)(g,function(){return{resizableTextArea:xe.current,focus:ie,blur:function(){var It;(It=xe.current)===null||It===void 0||It.textArea.blur()}}}),(0,u.useEffect)(function(){Xe(function(on){return!ge&&on})},[ge]);var Oe=Number(mt)>0,mn=function(It){ut(!0),ot.current=de,Ot.current=It.currentTarget.selectionStart,pt==null||pt(It)},Fe=function(It){ut(!1);var Vt=It.currentTarget.value;if(Oe){var Ue,ft=Ot.current>=mt+1||Ot.current===((Ue=ot.current)===null||Ue===void 0?void 0:Ue.length);Vt=F(ft,ot.current,Vt,mt)}Vt!==de&&(Ce(Vt),(0,L.rJ)(It.currentTarget,It,je,Vt)),nt==null||nt(It)},We=function(It){var Vt=It.target.value;if(!ct&&Oe){var Ue=It.target.selectionStart>=mt+1||It.target.selectionStart===Vt.length||!It.target.selectionStart;Vt=F(Ue,de,Vt,mt)}Ce(Vt),(0,L.rJ)(It.currentTarget,It,je,Vt)},Je=function(It){var Vt=ae.onPressEnter,Ue=ae.onKeyDown;It.key==="Enter"&&Vt&&Vt(It),Ue==null||Ue(It)},ue=function(It){Xe(!0),ze==null||ze(It)},W=function(It){Xe(!1),Ge==null||Ge(It)},we=function(It){var Vt;Ce(""),ie(),(0,L.rJ)((Vt=xe.current)===null||Vt===void 0?void 0:Vt.textArea,It,je)},Be=(0,L.D7)(de);!ct&&Oe&&pe==null&&(Be=G(Be,mt));var U=Gt,at;if(Xt){var Ee=(0,ve.Z)(Be).length;(0,Te.Z)(Xt)==="object"?at=Xt.formatter({value:Be,count:Ee,maxLength:mt}):at="".concat(Ee).concat(Oe?" / ".concat(mt):""),U=u.createElement(u.Fragment,null,U,u.createElement("span",{className:a()("".concat(sn,"-data-count"),z==null?void 0:z.count),style:De==null?void 0:De.count},at))}var St=function(It){var Vt;O==null||O(It),(Vt=xe.current)!==null&&Vt!==void 0&&Vt.textArea.style.height&&lt(!0)},Pt=!ae.autoSize&&!Xt&&!Ve,zt=u.createElement(A.BaseInput,{value:Be,allowClear:Ve,handleReset:we,suffix:U,prefixCls:sn,classes:{affixWrapper:a()(Ut==null?void 0:Ut.affixWrapper,(E={},(0,ce.Z)(E,"".concat(sn,"-show-count"),Xt),(0,ce.Z)(E,"".concat(sn,"-textarea-allow-clear"),Ve),E))},disabled:ge,focused:Pe,className:it,style:(0,Y.Z)((0,Y.Z)({},te),C&&!Pt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof at=="string"?at:void 0}},hidden:q,inputElement:u.createElement(Re,(0,M.Z)({},ae,{onKeyDown:Je,onChange:We,onFocus:ue,onBlur:W,onCompositionStart:mn,onCompositionEnd:Fe,className:z==null?void 0:z.textarea,style:(0,Y.Z)((0,Y.Z)({},De==null?void 0:De.textarea),{},{resize:te==null?void 0:te.resize}),disabled:ge,prefixCls:sn,onResize:St,ref:xe}))});return zt}),D=le,Q=D},55477:function(Qt,et,p){"use strict";p.d(et,{G:function(){return u},Z:function(){return se}});var M=p(5891),Y=p(57259),ce=p(19149),Te=p(35593),j=p(59301),X={shiftX:64,adjustY:1},ve={adjustX:1,shiftY:!0},_e=[0,0],a={left:{points:["cr","cl"],overflow:ve,offset:[-4,0],targetOffset:_e},right:{points:["cl","cr"],overflow:ve,offset:[4,0],targetOffset:_e},top:{points:["bc","tc"],overflow:X,offset:[0,-4],targetOffset:_e},bottom:{points:["tc","bc"],overflow:X,offset:[0,4],targetOffset:_e},topLeft:{points:["bl","tl"],overflow:X,offset:[0,-4],targetOffset:_e},leftTop:{points:["tr","tl"],overflow:ve,offset:[-4,0],targetOffset:_e},topRight:{points:["br","tr"],overflow:X,offset:[0,-4],targetOffset:_e},rightTop:{points:["tl","tr"],overflow:ve,offset:[4,0],targetOffset:_e},bottomRight:{points:["tr","br"],overflow:X,offset:[0,4],targetOffset:_e},rightBottom:{points:["bl","br"],overflow:ve,offset:[4,0],targetOffset:_e},bottomLeft:{points:["tl","bl"],overflow:X,offset:[0,4],targetOffset:_e},leftBottom:{points:["br","bl"],overflow:ve,offset:[-4,0],targetOffset:_e}},A=null,L=p(92310),v=p.n(L);function u(P){var N=P.children,V=P.prefixCls,K=P.id,x=P.overlayInnerStyle,T=P.className,$=P.style;return j.createElement("div",{className:v()("".concat(V,"-content"),T),style:$},j.createElement("div",{className:"".concat(V,"-inner"),id:K,role:"tooltip",style:x},typeof N=="function"?N():N))}var y=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],b=function(N,V){var K=N.overlayClassName,x=N.trigger,T=x===void 0?["hover"]:x,$=N.mouseEnterDelay,B=$===void 0?0:$,fe=N.mouseLeaveDelay,ye=fe===void 0?.1:fe,Re=N.overlayStyle,he=N.prefixCls,G=he===void 0?"rc-tooltip":he,F=N.children,le=N.onVisibleChange,D=N.afterVisibleChange,Q=N.transitionName,H=N.animation,g=N.motion,E=N.placement,Z=E===void 0?"right":E,pe=N.align,ze=pe===void 0?{}:pe,Ge=N.destroyTooltipOnHide,je=Ge===void 0?!1:Ge,Ve=N.defaultVisible,mt=N.getTooltipContainer,pt=N.overlayInnerStyle,nt=N.arrowContent,Gt=N.overlay,Jt=N.id,sn=N.showArrow,Ut=sn===void 0?!0:sn,Xt=(0,ce.Z)(N,y),it=(0,j.useRef)(null);(0,j.useImperativeHandle)(V,function(){return it.current});var te=(0,Y.Z)({},Xt);"visible"in N&&(te.popupVisible=N.visible);var ge=function(){return j.createElement(u,{key:"content",prefixCls:G,id:Jt,overlayInnerStyle:pt},Gt)};return j.createElement(Te.Z,(0,M.Z)({popupClassName:K,prefixCls:G,popup:ge,action:T,builtinPlacements:a,popupPlacement:Z,ref:it,popupAlign:ze,getPopupContainer:mt,onPopupVisibleChange:le,afterPopupVisibleChange:D,popupTransitionName:Q,popupAnimation:H,popupMotion:g,defaultPopupVisible:Ve,autoDestroy:je,mouseLeaveDelay:ye,popupStyle:Re,mouseEnterDelay:B,arrow:Ut},te),F)},k=(0,j.forwardRef)(b),se=k},39417:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return B}});var M=p(5891),Y=p(80962),ce=p(19149),Te=p(57259),j=p(79545),X=p(68550),ve=p(21882),_e=p(17928),a=p(7711),A=p(92310),L=p.n(A),v=p(36994),u=p(59301),y=p(39378),b=function(ye){for(var Re=ye.prefixCls,he=ye.level,G=ye.isStart,F=ye.isEnd,le="".concat(Re,"-indent-unit"),D=[],Q=0;Q<he;Q+=1){var H;D.push(u.createElement("span",{key:Q,className:L()(le,(H={},(0,Y.Z)(H,"".concat(le,"-start"),G[Q]),(0,Y.Z)(H,"".concat(le,"-end"),F[Q]),H))}))}return u.createElement("span",{"aria-hidden":"true",className:"".concat(Re,"-indent")},D)},k=u.memo(b),se=p(67841),P=p(71430),N=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],V="open",K="close",x="---",T=function(fe){(0,_e.Z)(Re,fe);var ye=(0,a.Z)(Re);function Re(){var he;(0,j.Z)(this,Re);for(var G=arguments.length,F=new Array(G),le=0;le<G;le++)F[le]=arguments[le];return he=ye.call.apply(ye,[this].concat(F)),he.state={dragNodeHighlight:!1},he.selectHandle=void 0,he.cacheIndent=void 0,he.onSelectorClick=function(D){var Q=he.props.context.onNodeClick;Q(D,(0,P.F)(he.props)),he.isSelectable()?he.onSelect(D):he.onCheck(D)},he.onSelectorDoubleClick=function(D){var Q=he.props.context.onNodeDoubleClick;Q(D,(0,P.F)(he.props))},he.onSelect=function(D){if(!he.isDisabled()){var Q=he.props.context.onNodeSelect;Q(D,(0,P.F)(he.props))}},he.onCheck=function(D){if(!he.isDisabled()){var Q=he.props,H=Q.disableCheckbox,g=Q.checked,E=he.props.context.onNodeCheck;if(!(!he.isCheckable()||H)){var Z=!g;E(D,(0,P.F)(he.props),Z)}}},he.onMouseEnter=function(D){var Q=he.props.context.onNodeMouseEnter;Q(D,(0,P.F)(he.props))},he.onMouseLeave=function(D){var Q=he.props.context.onNodeMouseLeave;Q(D,(0,P.F)(he.props))},he.onContextMenu=function(D){var Q=he.props.context.onNodeContextMenu;Q(D,(0,P.F)(he.props))},he.onDragStart=function(D){var Q=he.props.context.onNodeDragStart;D.stopPropagation(),he.setState({dragNodeHighlight:!0}),Q(D,(0,ve.Z)(he));try{D.dataTransfer.setData("text/plain","")}catch(H){}},he.onDragEnter=function(D){var Q=he.props.context.onNodeDragEnter;D.preventDefault(),D.stopPropagation(),Q(D,(0,ve.Z)(he))},he.onDragOver=function(D){var Q=he.props.context.onNodeDragOver;D.preventDefault(),D.stopPropagation(),Q(D,(0,ve.Z)(he))},he.onDragLeave=function(D){var Q=he.props.context.onNodeDragLeave;D.stopPropagation(),Q(D,(0,ve.Z)(he))},he.onDragEnd=function(D){var Q=he.props.context.onNodeDragEnd;D.stopPropagation(),he.setState({dragNodeHighlight:!1}),Q(D,(0,ve.Z)(he))},he.onDrop=function(D){var Q=he.props.context.onNodeDrop;D.preventDefault(),D.stopPropagation(),he.setState({dragNodeHighlight:!1}),Q(D,(0,ve.Z)(he))},he.onExpand=function(D){var Q=he.props,H=Q.loading,g=Q.context.onNodeExpand;H||g(D,(0,P.F)(he.props))},he.setSelectHandle=function(D){he.selectHandle=D},he.getNodeState=function(){var D=he.props.expanded;return he.isLeaf()?null:D?V:K},he.hasChildren=function(){var D=he.props.eventKey,Q=he.props.context.keyEntities,H=(0,se.Z)(Q,D)||{},g=H.children;return!!(g||[]).length},he.isLeaf=function(){var D=he.props,Q=D.isLeaf,H=D.loaded,g=he.props.context.loadData,E=he.hasChildren();return Q===!1?!1:Q||!g&&!E||g&&H&&!E},he.isDisabled=function(){var D=he.props.disabled,Q=he.props.context.disabled;return!!(Q||D)},he.isCheckable=function(){var D=he.props.checkable,Q=he.props.context.checkable;return!Q||D===!1?!1:Q},he.syncLoadData=function(D){var Q=D.expanded,H=D.loading,g=D.loaded,E=he.props.context,Z=E.loadData,pe=E.onNodeLoad;H||Z&&Q&&!he.isLeaf()&&!he.hasChildren()&&!g&&pe((0,P.F)(he.props))},he.isDraggable=function(){var D=he.props,Q=D.data,H=D.context.draggable;return!!(H&&(!H.nodeDraggable||H.nodeDraggable(Q)))},he.renderDragHandler=function(){var D=he.props.context,Q=D.draggable,H=D.prefixCls;return Q!=null&&Q.icon?u.createElement("span",{className:"".concat(H,"-draggable-icon")},Q.icon):null},he.renderSwitcherIconDom=function(D){var Q=he.props.switcherIcon,H=he.props.context.switcherIcon,g=Q||H;return typeof g=="function"?g((0,Te.Z)((0,Te.Z)({},he.props),{},{isLeaf:D})):g},he.renderSwitcher=function(){var D=he.props.expanded,Q=he.props.context.prefixCls;if(he.isLeaf()){var H=he.renderSwitcherIconDom(!0);return H!==!1?u.createElement("span",{className:L()("".concat(Q,"-switcher"),"".concat(Q,"-switcher-noop"))},H):null}var g=L()("".concat(Q,"-switcher"),"".concat(Q,"-switcher_").concat(D?V:K)),E=he.renderSwitcherIconDom(!1);return E!==!1?u.createElement("span",{onClick:he.onExpand,className:g},E):null},he.renderCheckbox=function(){var D=he.props,Q=D.checked,H=D.halfChecked,g=D.disableCheckbox,E=he.props.context.prefixCls,Z=he.isDisabled(),pe=he.isCheckable();if(!pe)return null;var ze=typeof pe!="boolean"?pe:null;return u.createElement("span",{className:L()("".concat(E,"-checkbox"),Q&&"".concat(E,"-checkbox-checked"),!Q&&H&&"".concat(E,"-checkbox-indeterminate"),(Z||g)&&"".concat(E,"-checkbox-disabled")),onClick:he.onCheck},ze)},he.renderIcon=function(){var D=he.props.loading,Q=he.props.context.prefixCls;return u.createElement("span",{className:L()("".concat(Q,"-iconEle"),"".concat(Q,"-icon__").concat(he.getNodeState()||"docu"),D&&"".concat(Q,"-icon_loading"))})},he.renderSelector=function(){var D=he.state.dragNodeHighlight,Q=he.props,H=Q.title,g=H===void 0?x:H,E=Q.selected,Z=Q.icon,pe=Q.loading,ze=Q.data,Ge=he.props.context,je=Ge.prefixCls,Ve=Ge.showIcon,mt=Ge.icon,pt=Ge.loadData,nt=Ge.titleRender,Gt=he.isDisabled(),Jt="".concat(je,"-node-content-wrapper"),sn;if(Ve){var Ut=Z||mt;sn=Ut?u.createElement("span",{className:L()("".concat(je,"-iconEle"),"".concat(je,"-icon__customize"))},typeof Ut=="function"?Ut(he.props):Ut):he.renderIcon()}else pt&&pe&&(sn=he.renderIcon());var Xt;typeof g=="function"?Xt=g(ze):nt?Xt=nt(ze):Xt=g;var it=u.createElement("span",{className:"".concat(je,"-title")},Xt);return u.createElement("span",{ref:he.setSelectHandle,title:typeof g=="string"?g:"",className:L()("".concat(Jt),"".concat(Jt,"-").concat(he.getNodeState()||"normal"),!Gt&&(E||D)&&"".concat(je,"-node-selected")),onMouseEnter:he.onMouseEnter,onMouseLeave:he.onMouseLeave,onContextMenu:he.onContextMenu,onClick:he.onSelectorClick,onDoubleClick:he.onSelectorDoubleClick},sn,it,he.renderDropIndicator())},he.renderDropIndicator=function(){var D=he.props,Q=D.disabled,H=D.eventKey,g=he.props.context,E=g.draggable,Z=g.dropLevelOffset,pe=g.dropPosition,ze=g.prefixCls,Ge=g.indent,je=g.dropIndicatorRender,Ve=g.dragOverNodeKey,mt=g.direction,pt=!!E,nt=!Q&&pt&&Ve===H,Gt=Ge!=null?Ge:he.cacheIndent;return he.cacheIndent=Ge,nt?je({dropPosition:pe,dropLevelOffset:Z,indent:Gt,prefixCls:ze,direction:mt}):null},he}return(0,X.Z)(Re,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var G=this.props.selectable,F=this.props.context.selectable;return typeof G=="boolean"?G:F}},{key:"render",value:function(){var G,F=this.props,le=F.eventKey,D=F.className,Q=F.style,H=F.dragOver,g=F.dragOverGapTop,E=F.dragOverGapBottom,Z=F.isLeaf,pe=F.isStart,ze=F.isEnd,Ge=F.expanded,je=F.selected,Ve=F.checked,mt=F.halfChecked,pt=F.loading,nt=F.domRef,Gt=F.active,Jt=F.data,sn=F.onMouseMove,Ut=F.selectable,Xt=(0,ce.Z)(F,N),it=this.props.context,te=it.prefixCls,ge=it.filterTreeNode,q=it.keyEntities,z=it.dropContainerKey,De=it.dropTargetKey,O=it.draggingNodeKey,ae=this.isDisabled(),J=(0,v.Z)(Xt,{aria:!0,data:!0}),oe=(0,se.Z)(q,le)||{},de=oe.level,Ce=ze[ze.length-1],xe=this.isDraggable(),ke=!ae&&xe,Ie=O===le,Pe=Ut!==void 0?{"aria-selected":!!Ut}:void 0;return u.createElement("div",(0,M.Z)({ref:nt,className:L()(D,"".concat(te,"-treenode"),(G={},(0,Y.Z)(G,"".concat(te,"-treenode-disabled"),ae),(0,Y.Z)(G,"".concat(te,"-treenode-switcher-").concat(Ge?"open":"close"),!Z),(0,Y.Z)(G,"".concat(te,"-treenode-checkbox-checked"),Ve),(0,Y.Z)(G,"".concat(te,"-treenode-checkbox-indeterminate"),mt),(0,Y.Z)(G,"".concat(te,"-treenode-selected"),je),(0,Y.Z)(G,"".concat(te,"-treenode-loading"),pt),(0,Y.Z)(G,"".concat(te,"-treenode-active"),Gt),(0,Y.Z)(G,"".concat(te,"-treenode-leaf-last"),Ce),(0,Y.Z)(G,"".concat(te,"-treenode-draggable"),xe),(0,Y.Z)(G,"dragging",Ie),(0,Y.Z)(G,"drop-target",De===le),(0,Y.Z)(G,"drop-container",z===le),(0,Y.Z)(G,"drag-over",!ae&&H),(0,Y.Z)(G,"drag-over-gap-top",!ae&&g),(0,Y.Z)(G,"drag-over-gap-bottom",!ae&&E),(0,Y.Z)(G,"filter-node",ge&&ge((0,P.F)(this.props))),G)),style:Q,draggable:ke,"aria-grabbed":Ie,onDragStart:ke?this.onDragStart:void 0,onDragEnter:xe?this.onDragEnter:void 0,onDragOver:xe?this.onDragOver:void 0,onDragLeave:xe?this.onDragLeave:void 0,onDrop:xe?this.onDrop:void 0,onDragEnd:xe?this.onDragEnd:void 0,onMouseMove:sn},Pe,J),u.createElement(k,{prefixCls:te,level:de,isStart:pe,isEnd:ze}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Re}(u.Component),$=function(ye){return u.createElement(y.k.Consumer,null,function(Re){return u.createElement(T,(0,M.Z)({},ye,{context:Re}))})};$.displayName="TreeNode",$.isTreeNode=1;var B=$},39378:function(Qt,et,p){"use strict";p.d(et,{k:function(){return Y}});var M=p(59301),Y=M.createContext(null)},99581:function(Qt,et,p){"use strict";p.d(et,{O:function(){return B.Z},Z:function(){return it}});var M=p(5891),Y=p(80962),ce=p(80665),Te=p(57259),j=p(26390),X=p(79545),ve=p(68550),_e=p(21882),a=p(17928),A=p(7711),L=p(92310),v=p.n(L),u=p(85108),y=p(36994),b=p(51395),k=p(59301),se=p(39378);function P(te){var ge=te.dropPosition,q=te.dropLevelOffset,z=te.indent,De={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(ge){case-1:De.top=0,De.left=-q*z;break;case 1:De.bottom=0,De.left=-q*z;break;case 0:De.bottom=0,De.left=z;break}return k.createElement("div",{style:De})}function N(te){if(te==null)throw new TypeError("Cannot destructure "+te)}var V=p(29043),K=p(19149),x=p(28800),T=p(70318),$=p(43469),B=p(39417);function fe(te,ge){var q=k.useState(!1),z=(0,V.Z)(q,2),De=z[0],O=z[1];k.useLayoutEffect(function(){if(De)return te(),function(){ge()}},[De]),k.useLayoutEffect(function(){return O(!0),function(){O(!1)}},[])}var ye=p(71430),Re=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],he=function(ge,q){var z=ge.className,De=ge.style,O=ge.motion,ae=ge.motionNodes,J=ge.motionType,oe=ge.onMotionStart,de=ge.onMotionEnd,Ce=ge.active,xe=ge.treeNodeRequiredProps,ke=(0,K.Z)(ge,Re),Ie=k.useState(!0),Pe=(0,V.Z)(Ie,2),Xe=Pe[0],rt=Pe[1],Ze=k.useContext(se.k),ct=Ze.prefixCls,ut=ae&&J!=="hide";(0,x.Z)(function(){ae&&ut!==Xe&&rt(ut)},[ae]);var ot=function(){ae&&oe()},Ot=k.useRef(!1),_t=function(){ae&&!Ot.current&&(Ot.current=!0,de())};fe(ot,_t);var w=function(lt){ut===lt&&_t()};return ae?k.createElement($.default,(0,M.Z)({ref:q,visible:Xe},O,{motionAppear:J==="show",onVisibleChanged:w}),function(C,lt){var ie=C.className,Oe=C.style;return k.createElement("div",{ref:lt,className:v()("".concat(ct,"-treenode-motion"),ie),style:Oe},ae.map(function(mn){var Fe=(0,M.Z)({},(N(mn.data),mn.data)),We=mn.title,Je=mn.key,ue=mn.isStart,W=mn.isEnd;delete Fe.children;var we=(0,ye.H8)(Je,xe);return k.createElement(B.Z,(0,M.Z)({},Fe,we,{title:We,active:Ce,data:mn.data,key:Je,isStart:ue,isEnd:W}))}))}):k.createElement(B.Z,(0,M.Z)({domRef:q,className:z,style:De},ke,{active:Ce}))};he.displayName="MotionTreeNode";var G=k.forwardRef(he),F=G;function le(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],q=te.length,z=ge.length;if(Math.abs(q-z)!==1)return{add:!1,key:null};function De(O,ae){var J=new Map;O.forEach(function(de){J.set(de,!0)});var oe=ae.filter(function(de){return!J.has(de)});return oe.length===1?oe[0]:null}return q<z?{add:!0,key:De(te,ge)}:{add:!1,key:De(ge,te)}}function D(te,ge,q){var z=te.findIndex(function(J){return J.key===q}),De=te[z+1],O=ge.findIndex(function(J){return J.key===q});if(De){var ae=ge.findIndex(function(J){return J.key===De.key});return ge.slice(O+1,ae)}return ge.slice(O+1)}var Q=["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"],H={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},g=function(){},E="RC_TREE_MOTION_".concat(Math.random()),Z={key:E},pe={key:E,level:0,index:0,pos:"0",node:Z,nodes:[Z]},ze={parent:null,children:[],pos:pe.pos,data:Z,title:null,key:E,isStart:[],isEnd:[]};function Ge(te,ge,q,z){return ge===!1||!q?te:te.slice(0,Math.ceil(q/z)+1)}function je(te){var ge=te.key,q=te.pos;return(0,ye.km)(ge,q)}function Ve(te){for(var ge=String(te.data.key),q=te;q.parent;)q=q.parent,ge="".concat(q.data.key," > ").concat(ge);return ge}var mt=k.forwardRef(function(te,ge){var q=te.prefixCls,z=te.data,De=te.selectable,O=te.checkable,ae=te.expandedKeys,J=te.selectedKeys,oe=te.checkedKeys,de=te.loadedKeys,Ce=te.loadingKeys,xe=te.halfCheckedKeys,ke=te.keyEntities,Ie=te.disabled,Pe=te.dragging,Xe=te.dragOverNodeKey,rt=te.dropPosition,Ze=te.motion,ct=te.height,ut=te.itemHeight,ot=te.virtual,Ot=te.focusable,_t=te.activeItem,w=te.focused,C=te.tabIndex,lt=te.onKeyDown,ie=te.onFocus,Oe=te.onBlur,mn=te.onActiveChange,Fe=te.onListChangeStart,We=te.onListChangeEnd,Je=(0,K.Z)(te,Q),ue=k.useRef(null),W=k.useRef(null);k.useImperativeHandle(ge,function(){return{scrollTo:function(yt){ue.current.scrollTo(yt)},getIndentWidth:function(){return W.current.offsetWidth}}});var we=k.useState(ae),Be=(0,V.Z)(we,2),U=Be[0],at=Be[1],Ee=k.useState(z),St=(0,V.Z)(Ee,2),Pt=St[0],zt=St[1],on=k.useState(z),It=(0,V.Z)(on,2),Vt=It[0],Ue=It[1],ft=k.useState([]),Ct=(0,V.Z)(ft,2),Ne=Ct[0],Ae=Ct[1],st=k.useState(null),dt=(0,V.Z)(st,2),kt=dt[0],Lt=dt[1],Bt=k.useRef(z);Bt.current=z;function Nt(){var Tt=Bt.current;zt(Tt),Ue(Tt),Ae([]),Lt(null),We()}(0,x.Z)(function(){at(ae);var Tt=le(U,ae);if(Tt.key!==null)if(Tt.add){var yt=Pt.findIndex(function(yn){var Ft=yn.key;return Ft===Tt.key}),Kt=Ge(D(Pt,z,Tt.key),ot,ct,ut),$t=Pt.slice();$t.splice(yt+1,0,ze),Ue($t),Ae(Kt),Lt("show")}else{var Zt=z.findIndex(function(yn){var Ft=yn.key;return Ft===Tt.key}),ln=Ge(D(z,Pt,Tt.key),ot,ct,ut),Ln=z.slice();Ln.splice(Zt+1,0,ze),Ue(Ln),Ae(ln),Lt("hide")}else Pt!==z&&(zt(z),Ue(z))},[ae,z]),k.useEffect(function(){Pe||Nt()},[Pe]);var en=Ze?Vt:z,pn={expandedKeys:ae,selectedKeys:J,loadedKeys:de,loadingKeys:Ce,checkedKeys:oe,halfCheckedKeys:xe,dragOverNodeKey:Xe,dropPosition:rt,keyEntities:ke};return k.createElement(k.Fragment,null,w&&_t&&k.createElement("span",{style:H,"aria-live":"assertive"},Ve(_t)),k.createElement("div",null,k.createElement("input",{style:H,disabled:Ot===!1||Ie,tabIndex:Ot!==!1?C:null,onKeyDown:lt,onFocus:ie,onBlur:Oe,value:"",onChange:g,"aria-label":"for screen reader"})),k.createElement("div",{className:"".concat(q,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},k.createElement("div",{className:"".concat(q,"-indent")},k.createElement("div",{ref:W,className:"".concat(q,"-indent-unit")}))),k.createElement(T.Z,(0,M.Z)({},Je,{data:en,itemKey:je,height:ct,fullHeight:!1,virtual:ot,itemHeight:ut,prefixCls:"".concat(q,"-list"),ref:ue,onVisibleChange:function(yt,Kt){var $t=new Set(yt),Zt=Kt.filter(function(ln){return!$t.has(ln)});Zt.some(function(ln){return je(ln)===E})&&Nt()}}),function(Tt){var yt=Tt.pos,Kt=(0,M.Z)({},(N(Tt.data),Tt.data)),$t=Tt.title,Zt=Tt.key,ln=Tt.isStart,Ln=Tt.isEnd,yn=(0,ye.km)(Zt,yt);delete Kt.key,delete Kt.children;var Ft=(0,ye.H8)(yn,pn);return k.createElement(F,(0,M.Z)({},Kt,Ft,{title:$t,active:!!_t&&Zt===_t.key,pos:yt,data:Tt.data,isStart:ln,isEnd:Ln,motion:Ze,motionNodes:Zt===E?Ne:null,motionType:kt,onMotionStart:Fe,onMotionEnd:Nt,treeNodeRequiredProps:pn,onMouseMove:function(){mn(null)}}))}))});mt.displayName="NodeList";var pt=mt,nt=p(35654),Gt=p(90782),Jt=p(67841),sn=10,Ut=function(te){(0,a.Z)(q,te);var ge=(0,A.Z)(q);function q(){var z;(0,X.Z)(this,q);for(var De=arguments.length,O=new Array(De),ae=0;ae<De;ae++)O[ae]=arguments[ae];return z=ge.call.apply(ge,[this].concat(O)),z.destroyed=!1,z.delayedDragEnterLogic=void 0,z.loadingRetryTimes={},z.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,ye.w$)()},z.dragStartMousePosition=null,z.dragNode=void 0,z.currentMouseOverDroppableNodeKey=null,z.listRef=k.createRef(),z.onNodeDragStart=function(J,oe){var de=z.state,Ce=de.expandedKeys,xe=de.keyEntities,ke=z.props.onDragStart,Ie=oe.props.eventKey;z.dragNode=oe,z.dragStartMousePosition={x:J.clientX,y:J.clientY};var Pe=(0,nt._5)(Ce,Ie);z.setState({draggingNodeKey:Ie,dragChildrenKeys:(0,nt.wA)(Ie,xe),indent:z.listRef.current.getIndentWidth()}),z.setExpandedKeys(Pe),window.addEventListener("dragend",z.onWindowDragEnd),ke==null||ke({event:J,node:(0,ye.F)(oe.props)})},z.onNodeDragEnter=function(J,oe){var de=z.state,Ce=de.expandedKeys,xe=de.keyEntities,ke=de.dragChildrenKeys,Ie=de.flattenNodes,Pe=de.indent,Xe=z.props,rt=Xe.onDragEnter,Ze=Xe.onExpand,ct=Xe.allowDrop,ut=Xe.direction,ot=oe.props,Ot=ot.pos,_t=ot.eventKey,w=(0,_e.Z)(z),C=w.dragNode;if(z.currentMouseOverDroppableNodeKey!==_t&&(z.currentMouseOverDroppableNodeKey=_t),!C){z.resetDragState();return}var lt=(0,nt.OM)(J,C,oe,Pe,z.dragStartMousePosition,ct,Ie,xe,Ce,ut),ie=lt.dropPosition,Oe=lt.dropLevelOffset,mn=lt.dropTargetKey,Fe=lt.dropContainerKey,We=lt.dropTargetPos,Je=lt.dropAllowed,ue=lt.dragOverNodeKey;if(ke.indexOf(mn)!==-1||!Je){z.resetDragState();return}if(z.delayedDragEnterLogic||(z.delayedDragEnterLogic={}),Object.keys(z.delayedDragEnterLogic).forEach(function(W){clearTimeout(z.delayedDragEnterLogic[W])}),C.props.eventKey!==oe.props.eventKey&&(J.persist(),z.delayedDragEnterLogic[Ot]=window.setTimeout(function(){if(z.state.draggingNodeKey!==null){var W=(0,j.Z)(Ce),we=(0,Jt.Z)(xe,oe.props.eventKey);we&&(we.children||[]).length&&(W=(0,nt.L0)(Ce,oe.props.eventKey)),"expandedKeys"in z.props||z.setExpandedKeys(W),Ze==null||Ze(W,{node:(0,ye.F)(oe.props),expanded:!0,nativeEvent:J.nativeEvent})}},800)),C.props.eventKey===mn&&Oe===0){z.resetDragState();return}z.setState({dragOverNodeKey:ue,dropPosition:ie,dropLevelOffset:Oe,dropTargetKey:mn,dropContainerKey:Fe,dropTargetPos:We,dropAllowed:Je}),rt==null||rt({event:J,node:(0,ye.F)(oe.props),expandedKeys:Ce})},z.onNodeDragOver=function(J,oe){var de=z.state,Ce=de.dragChildrenKeys,xe=de.flattenNodes,ke=de.keyEntities,Ie=de.expandedKeys,Pe=de.indent,Xe=z.props,rt=Xe.onDragOver,Ze=Xe.allowDrop,ct=Xe.direction,ut=(0,_e.Z)(z),ot=ut.dragNode;if(ot){var Ot=(0,nt.OM)(J,ot,oe,Pe,z.dragStartMousePosition,Ze,xe,ke,Ie,ct),_t=Ot.dropPosition,w=Ot.dropLevelOffset,C=Ot.dropTargetKey,lt=Ot.dropContainerKey,ie=Ot.dropAllowed,Oe=Ot.dropTargetPos,mn=Ot.dragOverNodeKey;Ce.indexOf(C)!==-1||!ie||(ot.props.eventKey===C&&w===0?z.state.dropPosition===null&&z.state.dropLevelOffset===null&&z.state.dropTargetKey===null&&z.state.dropContainerKey===null&&z.state.dropTargetPos===null&&z.state.dropAllowed===!1&&z.state.dragOverNodeKey===null||z.resetDragState():_t===z.state.dropPosition&&w===z.state.dropLevelOffset&&C===z.state.dropTargetKey&&lt===z.state.dropContainerKey&&Oe===z.state.dropTargetPos&&ie===z.state.dropAllowed&&mn===z.state.dragOverNodeKey||z.setState({dropPosition:_t,dropLevelOffset:w,dropTargetKey:C,dropContainerKey:lt,dropTargetPos:Oe,dropAllowed:ie,dragOverNodeKey:mn}),rt==null||rt({event:J,node:(0,ye.F)(oe.props)}))}},z.onNodeDragLeave=function(J,oe){z.currentMouseOverDroppableNodeKey===oe.props.eventKey&&!J.currentTarget.contains(J.relatedTarget)&&(z.resetDragState(),z.currentMouseOverDroppableNodeKey=null);var de=z.props.onDragLeave;de==null||de({event:J,node:(0,ye.F)(oe.props)})},z.onWindowDragEnd=function(J){z.onNodeDragEnd(J,null,!0),window.removeEventListener("dragend",z.onWindowDragEnd)},z.onNodeDragEnd=function(J,oe){var de=z.props.onDragEnd;z.setState({dragOverNodeKey:null}),z.cleanDragState(),de==null||de({event:J,node:(0,ye.F)(oe.props)}),z.dragNode=null,window.removeEventListener("dragend",z.onWindowDragEnd)},z.onNodeDrop=function(J,oe){var de,Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,xe=z.state,ke=xe.dragChildrenKeys,Ie=xe.dropPosition,Pe=xe.dropTargetKey,Xe=xe.dropTargetPos,rt=xe.dropAllowed;if(rt){var Ze=z.props.onDrop;if(z.setState({dragOverNodeKey:null}),z.cleanDragState(),Pe!==null){var ct=(0,Te.Z)((0,Te.Z)({},(0,ye.H8)(Pe,z.getTreeNodeRequiredProps())),{},{active:((de=z.getActiveItem())===null||de===void 0?void 0:de.key)===Pe,data:(0,Jt.Z)(z.state.keyEntities,Pe).node}),ut=ke.indexOf(Pe)!==-1;(0,b.ZP)(!ut,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var ot=(0,nt.yx)(Xe),Ot={event:J,node:(0,ye.F)(ct),dragNode:z.dragNode?(0,ye.F)(z.dragNode.props):null,dragNodesKeys:[z.dragNode.props.eventKey].concat(ke),dropToGap:Ie!==0,dropPosition:Ie+Number(ot[ot.length-1])};Ce||Ze==null||Ze(Ot),z.dragNode=null}}},z.cleanDragState=function(){var J=z.state.draggingNodeKey;J!==null&&z.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),z.dragStartMousePosition=null,z.currentMouseOverDroppableNodeKey=null},z.triggerExpandActionExpand=function(J,oe){var de=z.state,Ce=de.expandedKeys,xe=de.flattenNodes,ke=oe.expanded,Ie=oe.key,Pe=oe.isLeaf;if(!(Pe||J.shiftKey||J.metaKey||J.ctrlKey)){var Xe=xe.filter(function(Ze){return Ze.key===Ie})[0],rt=(0,ye.F)((0,Te.Z)((0,Te.Z)({},(0,ye.H8)(Ie,z.getTreeNodeRequiredProps())),{},{data:Xe.data}));z.setExpandedKeys(ke?(0,nt._5)(Ce,Ie):(0,nt.L0)(Ce,Ie)),z.onNodeExpand(J,rt)}},z.onNodeClick=function(J,oe){var de=z.props,Ce=de.onClick,xe=de.expandAction;xe==="click"&&z.triggerExpandActionExpand(J,oe),Ce==null||Ce(J,oe)},z.onNodeDoubleClick=function(J,oe){var de=z.props,Ce=de.onDoubleClick,xe=de.expandAction;xe==="doubleClick"&&z.triggerExpandActionExpand(J,oe),Ce==null||Ce(J,oe)},z.onNodeSelect=function(J,oe){var de=z.state.selectedKeys,Ce=z.state,xe=Ce.keyEntities,ke=Ce.fieldNames,Ie=z.props,Pe=Ie.onSelect,Xe=Ie.multiple,rt=oe.selected,Ze=oe[ke.key],ct=!rt;ct?Xe?de=(0,nt.L0)(de,Ze):de=[Ze]:de=(0,nt._5)(de,Ze);var ut=de.map(function(ot){var Ot=(0,Jt.Z)(xe,ot);return Ot?Ot.node:null}).filter(function(ot){return ot});z.setUncontrolledState({selectedKeys:de}),Pe==null||Pe(de,{event:"select",selected:ct,node:oe,selectedNodes:ut,nativeEvent:J.nativeEvent})},z.onNodeCheck=function(J,oe,de){var Ce=z.state,xe=Ce.keyEntities,ke=Ce.checkedKeys,Ie=Ce.halfCheckedKeys,Pe=z.props,Xe=Pe.checkStrictly,rt=Pe.onCheck,Ze=oe.key,ct,ut={event:"check",node:oe,checked:de,nativeEvent:J.nativeEvent};if(Xe){var ot=de?(0,nt.L0)(ke,Ze):(0,nt._5)(ke,Ze),Ot=(0,nt._5)(Ie,Ze);ct={checked:ot,halfChecked:Ot},ut.checkedNodes=ot.map(function(Oe){return(0,Jt.Z)(xe,Oe)}).filter(function(Oe){return Oe}).map(function(Oe){return Oe.node}),z.setUncontrolledState({checkedKeys:ot})}else{var _t=(0,Gt.S)([].concat((0,j.Z)(ke),[Ze]),!0,xe),w=_t.checkedKeys,C=_t.halfCheckedKeys;if(!de){var lt=new Set(w);lt.delete(Ze);var ie=(0,Gt.S)(Array.from(lt),{checked:!1,halfCheckedKeys:C},xe);w=ie.checkedKeys,C=ie.halfCheckedKeys}ct=w,ut.checkedNodes=[],ut.checkedNodesPositions=[],ut.halfCheckedKeys=C,w.forEach(function(Oe){var mn=(0,Jt.Z)(xe,Oe);if(mn){var Fe=mn.node,We=mn.pos;ut.checkedNodes.push(Fe),ut.checkedNodesPositions.push({node:Fe,pos:We})}}),z.setUncontrolledState({checkedKeys:w},!1,{halfCheckedKeys:C})}rt==null||rt(ct,ut)},z.onNodeLoad=function(J){var oe=J.key,de=new Promise(function(Ce,xe){z.setState(function(ke){var Ie=ke.loadedKeys,Pe=Ie===void 0?[]:Ie,Xe=ke.loadingKeys,rt=Xe===void 0?[]:Xe,Ze=z.props,ct=Ze.loadData,ut=Ze.onLoad;if(!ct||Pe.indexOf(oe)!==-1||rt.indexOf(oe)!==-1)return null;var ot=ct(J);return ot.then(function(){var Ot=z.state.loadedKeys,_t=(0,nt.L0)(Ot,oe);ut==null||ut(_t,{event:"load",node:J}),z.setUncontrolledState({loadedKeys:_t}),z.setState(function(w){return{loadingKeys:(0,nt._5)(w.loadingKeys,oe)}}),Ce()}).catch(function(Ot){if(z.setState(function(w){return{loadingKeys:(0,nt._5)(w.loadingKeys,oe)}}),z.loadingRetryTimes[oe]=(z.loadingRetryTimes[oe]||0)+1,z.loadingRetryTimes[oe]>=sn){var _t=z.state.loadedKeys;(0,b.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),z.setUncontrolledState({loadedKeys:(0,nt.L0)(_t,oe)}),Ce()}xe(Ot)}),{loadingKeys:(0,nt.L0)(rt,oe)}})});return de.catch(function(){}),de},z.onNodeMouseEnter=function(J,oe){var de=z.props.onMouseEnter;de==null||de({event:J,node:oe})},z.onNodeMouseLeave=function(J,oe){var de=z.props.onMouseLeave;de==null||de({event:J,node:oe})},z.onNodeContextMenu=function(J,oe){var de=z.props.onRightClick;de&&(J.preventDefault(),de({event:J,node:oe}))},z.onFocus=function(){var J=z.props.onFocus;z.setState({focused:!0});for(var oe=arguments.length,de=new Array(oe),Ce=0;Ce<oe;Ce++)de[Ce]=arguments[Ce];J==null||J.apply(void 0,de)},z.onBlur=function(){var J=z.props.onBlur;z.setState({focused:!1}),z.onActiveChange(null);for(var oe=arguments.length,de=new Array(oe),Ce=0;Ce<oe;Ce++)de[Ce]=arguments[Ce];J==null||J.apply(void 0,de)},z.getTreeNodeRequiredProps=function(){var J=z.state,oe=J.expandedKeys,de=J.selectedKeys,Ce=J.loadedKeys,xe=J.loadingKeys,ke=J.checkedKeys,Ie=J.halfCheckedKeys,Pe=J.dragOverNodeKey,Xe=J.dropPosition,rt=J.keyEntities;return{expandedKeys:oe||[],selectedKeys:de||[],loadedKeys:Ce||[],loadingKeys:xe||[],checkedKeys:ke||[],halfCheckedKeys:Ie||[],dragOverNodeKey:Pe,dropPosition:Xe,keyEntities:rt}},z.setExpandedKeys=function(J){var oe=z.state,de=oe.treeData,Ce=oe.fieldNames,xe=(0,ye.oH)(de,J,Ce);z.setUncontrolledState({expandedKeys:J,flattenNodes:xe},!0)},z.onNodeExpand=function(J,oe){var de=z.state.expandedKeys,Ce=z.state,xe=Ce.listChanging,ke=Ce.fieldNames,Ie=z.props,Pe=Ie.onExpand,Xe=Ie.loadData,rt=oe.expanded,Ze=oe[ke.key];if(!xe){var ct=de.indexOf(Ze),ut=!rt;if((0,b.ZP)(rt&&ct!==-1||!rt&&ct===-1,"Expand state not sync with index check"),ut?de=(0,nt.L0)(de,Ze):de=(0,nt._5)(de,Ze),z.setExpandedKeys(de),Pe==null||Pe(de,{node:oe,expanded:ut,nativeEvent:J.nativeEvent}),ut&&Xe){var ot=z.onNodeLoad(oe);ot&&ot.then(function(){var Ot=(0,ye.oH)(z.state.treeData,de,ke);z.setUncontrolledState({flattenNodes:Ot})}).catch(function(){var Ot=z.state.expandedKeys,_t=(0,nt._5)(Ot,Ze);z.setExpandedKeys(_t)})}}},z.onListChangeStart=function(){z.setUncontrolledState({listChanging:!0})},z.onListChangeEnd=function(){setTimeout(function(){z.setUncontrolledState({listChanging:!1})})},z.onActiveChange=function(J){var oe=z.state.activeKey,de=z.props.onActiveChange;oe!==J&&(z.setState({activeKey:J}),J!==null&&z.scrollTo({key:J}),de==null||de(J))},z.getActiveItem=function(){var J=z.state,oe=J.activeKey,de=J.flattenNodes;return oe===null?null:de.find(function(Ce){var xe=Ce.key;return xe===oe})||null},z.offsetActiveKey=function(J){var oe=z.state,de=oe.flattenNodes,Ce=oe.activeKey,xe=de.findIndex(function(Pe){var Xe=Pe.key;return Xe===Ce});xe===-1&&J<0&&(xe=de.length),xe=(xe+J+de.length)%de.length;var ke=de[xe];if(ke){var Ie=ke.key;z.onActiveChange(Ie)}else z.onActiveChange(null)},z.onKeyDown=function(J){var oe=z.state,de=oe.activeKey,Ce=oe.expandedKeys,xe=oe.checkedKeys,ke=oe.fieldNames,Ie=z.props,Pe=Ie.onKeyDown,Xe=Ie.checkable,rt=Ie.selectable;switch(J.which){case u.Z.UP:{z.offsetActiveKey(-1),J.preventDefault();break}case u.Z.DOWN:{z.offsetActiveKey(1),J.preventDefault();break}}var Ze=z.getActiveItem();if(Ze&&Ze.data){var ct=z.getTreeNodeRequiredProps(),ut=Ze.data.isLeaf===!1||!!(Ze.data[ke.children]||[]).length,ot=(0,ye.F)((0,Te.Z)((0,Te.Z)({},(0,ye.H8)(de,ct)),{},{data:Ze.data,active:!0}));switch(J.which){case u.Z.LEFT:{ut&&Ce.includes(de)?z.onNodeExpand({},ot):Ze.parent&&z.onActiveChange(Ze.parent.key),J.preventDefault();break}case u.Z.RIGHT:{ut&&!Ce.includes(de)?z.onNodeExpand({},ot):Ze.children&&Ze.children.length&&z.onActiveChange(Ze.children[0].key),J.preventDefault();break}case u.Z.ENTER:case u.Z.SPACE:{Xe&&!ot.disabled&&ot.checkable!==!1&&!ot.disableCheckbox?z.onNodeCheck({},ot,!xe.includes(de)):!Xe&&rt&&!ot.disabled&&ot.selectable!==!1&&z.onNodeSelect({},ot);break}}}Pe==null||Pe(J)},z.setUncontrolledState=function(J){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,de=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!z.destroyed){var Ce=!1,xe=!0,ke={};Object.keys(J).forEach(function(Ie){if(Ie in z.props){xe=!1;return}Ce=!0,ke[Ie]=J[Ie]}),Ce&&(!oe||xe)&&z.setState((0,Te.Z)((0,Te.Z)({},ke),de))}},z.scrollTo=function(J){z.listRef.current.scrollTo(J)},z}return(0,ve.Z)(q,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var De=this.props.activeKey;De!==void 0&&De!==this.state.activeKey&&(this.setState({activeKey:De}),De!==null&&this.scrollTo({key:De}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var De,O=this.state,ae=O.focused,J=O.flattenNodes,oe=O.keyEntities,de=O.draggingNodeKey,Ce=O.activeKey,xe=O.dropLevelOffset,ke=O.dropContainerKey,Ie=O.dropTargetKey,Pe=O.dropPosition,Xe=O.dragOverNodeKey,rt=O.indent,Ze=this.props,ct=Ze.prefixCls,ut=Ze.className,ot=Ze.style,Ot=Ze.showLine,_t=Ze.focusable,w=Ze.tabIndex,C=w===void 0?0:w,lt=Ze.selectable,ie=Ze.showIcon,Oe=Ze.icon,mn=Ze.switcherIcon,Fe=Ze.draggable,We=Ze.checkable,Je=Ze.checkStrictly,ue=Ze.disabled,W=Ze.motion,we=Ze.loadData,Be=Ze.filterTreeNode,U=Ze.height,at=Ze.itemHeight,Ee=Ze.virtual,St=Ze.titleRender,Pt=Ze.dropIndicatorRender,zt=Ze.onContextMenu,on=Ze.onScroll,It=Ze.direction,Vt=Ze.rootClassName,Ue=Ze.rootStyle,ft=(0,y.Z)(this.props,{aria:!0,data:!0}),Ct;return Fe&&((0,ce.Z)(Fe)==="object"?Ct=Fe:typeof Fe=="function"?Ct={nodeDraggable:Fe}:Ct={}),k.createElement(se.k.Provider,{value:{prefixCls:ct,selectable:lt,showIcon:ie,icon:Oe,switcherIcon:mn,draggable:Ct,draggingNodeKey:de,checkable:We,checkStrictly:Je,disabled:ue,keyEntities:oe,dropLevelOffset:xe,dropContainerKey:ke,dropTargetKey:Ie,dropPosition:Pe,dragOverNodeKey:Xe,indent:rt,direction:It,dropIndicatorRender:Pt,loadData:we,filterTreeNode:Be,titleRender:St,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}},k.createElement("div",{role:"tree",className:v()(ct,ut,Vt,(De={},(0,Y.Z)(De,"".concat(ct,"-show-line"),Ot),(0,Y.Z)(De,"".concat(ct,"-focused"),ae),(0,Y.Z)(De,"".concat(ct,"-active-focused"),Ce!==null),De)),style:Ue},k.createElement(pt,(0,M.Z)({ref:this.listRef,prefixCls:ct,style:ot,data:J,disabled:ue,selectable:lt,checkable:!!We,motion:W,dragging:de!==null,height:U,itemHeight:at,virtual:Ee,focusable:_t,focused:ae,tabIndex:C,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:zt,onScroll:on},this.getTreeNodeRequiredProps(),ft))))}}],[{key:"getDerivedStateFromProps",value:function(De,O){var ae=O.prevProps,J={prevProps:De};function oe(_t){return!ae&&_t in De||ae&&ae[_t]!==De[_t]}var de,Ce=O.fieldNames;if(oe("fieldNames")&&(Ce=(0,ye.w$)(De.fieldNames),J.fieldNames=Ce),oe("treeData")?de=De.treeData:oe("children")&&((0,b.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),de=(0,ye.zn)(De.children)),de){J.treeData=de;var xe=(0,ye.I8)(de,{fieldNames:Ce});J.keyEntities=(0,Te.Z)((0,Y.Z)({},E,pe),xe.keyEntities)}var ke=J.keyEntities||O.keyEntities;if(oe("expandedKeys")||ae&&oe("autoExpandParent"))J.expandedKeys=De.autoExpandParent||!ae&&De.defaultExpandParent?(0,nt.r7)(De.expandedKeys,ke):De.expandedKeys;else if(!ae&&De.defaultExpandAll){var Ie=(0,Te.Z)({},ke);delete Ie[E],J.expandedKeys=Object.keys(Ie).map(function(_t){return Ie[_t].key})}else!ae&&De.defaultExpandedKeys&&(J.expandedKeys=De.autoExpandParent||De.defaultExpandParent?(0,nt.r7)(De.defaultExpandedKeys,ke):De.defaultExpandedKeys);if(J.expandedKeys||delete J.expandedKeys,de||J.expandedKeys){var Pe=(0,ye.oH)(de||O.treeData,J.expandedKeys||O.expandedKeys,Ce);J.flattenNodes=Pe}if(De.selectable&&(oe("selectedKeys")?J.selectedKeys=(0,nt.BT)(De.selectedKeys,De):!ae&&De.defaultSelectedKeys&&(J.selectedKeys=(0,nt.BT)(De.defaultSelectedKeys,De))),De.checkable){var Xe;if(oe("checkedKeys")?Xe=(0,nt.E6)(De.checkedKeys)||{}:!ae&&De.defaultCheckedKeys?Xe=(0,nt.E6)(De.defaultCheckedKeys)||{}:de&&(Xe=(0,nt.E6)(De.checkedKeys)||{checkedKeys:O.checkedKeys,halfCheckedKeys:O.halfCheckedKeys}),Xe){var rt=Xe,Ze=rt.checkedKeys,ct=Ze===void 0?[]:Ze,ut=rt.halfCheckedKeys,ot=ut===void 0?[]:ut;if(!De.checkStrictly){var Ot=(0,Gt.S)(ct,!0,ke);ct=Ot.checkedKeys,ot=Ot.halfCheckedKeys}J.checkedKeys=ct,J.halfCheckedKeys=ot}}return oe("loadedKeys")&&(J.loadedKeys=De.loadedKeys),J}}]),q}(k.Component);Ut.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:P,allowDrop:function(){return!0},expandAction:!1},Ut.TreeNode=B.Z;var Xt=Ut,it=Xt},35654:function(Qt,et,p){"use strict";p.d(et,{BT:function(){return k},E6:function(){return N},L0:function(){return A},OM:function(){return b},_5:function(){return a},r7:function(){return V},wA:function(){return v},yx:function(){return L}});var M=p(26390),Y=p(80665),ce=p(51395),Te=p(59301),j=p(39417),X=p(67841),ve=p(71430),_e=null;function a(K,x){if(!K)return[];var T=K.slice(),$=T.indexOf(x);return $>=0&&T.splice($,1),T}function A(K,x){var T=(K||[]).slice();return T.indexOf(x)===-1&&T.push(x),T}function L(K){return K.split("-")}function v(K,x){var T=[],$=(0,X.Z)(x,K);function B(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];fe.forEach(function(ye){var Re=ye.key,he=ye.children;T.push(Re),B(he)})}return B($.children),T}function u(K){if(K.parent){var x=L(K.pos);return Number(x[x.length-1])===K.parent.children.length-1}return!1}function y(K){var x=L(K.pos);return Number(x[x.length-1])===0}function b(K,x,T,$,B,fe,ye,Re,he,G){var F,le=K.clientX,D=K.clientY,Q=K.target.getBoundingClientRect(),H=Q.top,g=Q.height,E=(G==="rtl"?-1:1)*(((B==null?void 0:B.x)||0)-le),Z=(E-12)/$,pe=(0,X.Z)(Re,T.props.eventKey);if(D<H+g/2){var ze=ye.findIndex(function(it){return it.key===pe.key}),Ge=ze<=0?0:ze-1,je=ye[Ge].key;pe=(0,X.Z)(Re,je)}var Ve=pe.key,mt=pe,pt=pe.key,nt=0,Gt=0;if(!he.includes(Ve))for(var Jt=0;Jt<Z&&u(pe);Jt+=1)pe=pe.parent,Gt+=1;var sn=x.props.data,Ut=pe.node,Xt=!0;return y(pe)&&pe.level===0&&D<H+g/2&&fe({dragNode:sn,dropNode:Ut,dropPosition:-1})&&pe.key===T.props.eventKey?nt=-1:(mt.children||[]).length&&he.includes(pt)?fe({dragNode:sn,dropNode:Ut,dropPosition:0})?nt=0:Xt=!1:Gt===0?Z>-1.5?fe({dragNode:sn,dropNode:Ut,dropPosition:1})?nt=1:Xt=!1:fe({dragNode:sn,dropNode:Ut,dropPosition:0})?nt=0:fe({dragNode:sn,dropNode:Ut,dropPosition:1})?nt=1:Xt=!1:fe({dragNode:sn,dropNode:Ut,dropPosition:1})?nt=1:Xt=!1,{dropPosition:nt,dropLevelOffset:Gt,dropTargetKey:pe.key,dropTargetPos:pe.pos,dragOverNodeKey:pt,dropContainerKey:nt===0?null:((F=pe.parent)===null||F===void 0?void 0:F.key)||null,dropAllowed:Xt}}function k(K,x){if(K){var T=x.multiple;return T?K.slice():K.length?[K[0]]:K}}var se=function(x){return x};function P(K,x){if(!K)return[];var T=x||{},$=T.processProps,B=$===void 0?se:$,fe=Array.isArray(K)?K:[K];return fe.map(function(ye){var Re=ye.children,he=_objectWithoutProperties(ye,_e),G=P(Re,x);return React.createElement(TreeNode,_extends({key:he.key},B(he)),G)})}function N(K){if(!K)return null;var x;if(Array.isArray(K))x={checkedKeys:K,halfCheckedKeys:void 0};else if((0,Y.Z)(K)==="object")x={checkedKeys:K.checked||void 0,halfCheckedKeys:K.halfChecked||void 0};else return(0,ce.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return x}function V(K,x){var T=new Set;function $(B){if(!T.has(B)){var fe=(0,X.Z)(x,B);if(fe){T.add(B);var ye=fe.parent,Re=fe.node;Re.disabled||ye&&$(ye.key)}}}return(K||[]).forEach(function(B){$(B)}),(0,M.Z)(T)}},90782:function(Qt,et,p){"use strict";p.d(et,{S:function(){return ve}});var M=p(51395),Y=p(67841);function ce(_e,a){var A=new Set;return _e.forEach(function(L){a.has(L)||A.add(L)}),A}function Te(_e){var a=_e||{},A=a.disabled,L=a.disableCheckbox,v=a.checkable;return!!(A||L)||v===!1}function j(_e,a,A,L){for(var v=new Set(_e),u=new Set,y=0;y<=A;y+=1){var b=a.get(y)||new Set;b.forEach(function(N){var V=N.key,K=N.node,x=N.children,T=x===void 0?[]:x;v.has(V)&&!L(K)&&T.filter(function($){return!L($.node)}).forEach(function($){v.add($.key)})})}for(var k=new Set,se=A;se>=0;se-=1){var P=a.get(se)||new Set;P.forEach(function(N){var V=N.parent,K=N.node;if(!(L(K)||!N.parent||k.has(N.parent.key))){if(L(N.parent.node)){k.add(V.key);return}var x=!0,T=!1;(V.children||[]).filter(function($){return!L($.node)}).forEach(function($){var B=$.key,fe=v.has(B);x&&!fe&&(x=!1),!T&&(fe||u.has(B))&&(T=!0)}),x&&v.add(V.key),T&&u.add(V.key),k.add(V.key)}})}return{checkedKeys:Array.from(v),halfCheckedKeys:Array.from(ce(u,v))}}function X(_e,a,A,L,v){for(var u=new Set(_e),y=new Set(a),b=0;b<=L;b+=1){var k=A.get(b)||new Set;k.forEach(function(V){var K=V.key,x=V.node,T=V.children,$=T===void 0?[]:T;!u.has(K)&&!y.has(K)&&!v(x)&&$.filter(function(B){return!v(B.node)}).forEach(function(B){u.delete(B.key)})})}y=new Set;for(var se=new Set,P=L;P>=0;P-=1){var N=A.get(P)||new Set;N.forEach(function(V){var K=V.parent,x=V.node;if(!(v(x)||!V.parent||se.has(V.parent.key))){if(v(V.parent.node)){se.add(K.key);return}var T=!0,$=!1;(K.children||[]).filter(function(B){return!v(B.node)}).forEach(function(B){var fe=B.key,ye=u.has(fe);T&&!ye&&(T=!1),!$&&(ye||y.has(fe))&&($=!0)}),T||u.delete(K.key),$&&y.add(K.key),se.add(K.key)}})}return{checkedKeys:Array.from(u),halfCheckedKeys:Array.from(ce(y,u))}}function ve(_e,a,A,L){var v=[],u;L?u=L:u=Te;var y=new Set(_e.filter(function(P){var N=!!(0,Y.Z)(A,P);return N||v.push(P),N})),b=new Map,k=0;Object.keys(A).forEach(function(P){var N=A[P],V=N.level,K=b.get(V);K||(K=new Set,b.set(V,K)),K.add(N),k=Math.max(k,V)}),(0,M.ZP)(!v.length,"Tree missing follow keys: ".concat(v.slice(0,100).map(function(P){return"'".concat(P,"'")}).join(", ")));var se;return a===!0?se=j(y,b,k,u):se=X(y,a.halfCheckedKeys,b,k,u),se}},67841:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return M}});function M(Y,ce){return Y[ce]}},71430:function(Qt,et,p){"use strict";p.d(et,{F:function(){return V},H8:function(){return N},I8:function(){return P},km:function(){return v},oH:function(){return k},w$:function(){return u},zn:function(){return b}});var M=p(80665),Y=p(26390),ce=p(57259),Te=p(19149),j=p(38298),X=p(64002),ve=p(51395),_e=p(67841),a=["children"];function A(K,x){return"".concat(K,"-").concat(x)}function L(K){return K&&K.type&&K.type.isTreeNode}function v(K,x){return K!=null?K:x}function u(K){var x=K||{},T=x.title,$=x._title,B=x.key,fe=x.children,ye=T||"title";return{title:ye,_title:$||[ye],key:B||"key",children:fe||"children"}}function y(K,x){var T=new Map;function $(B){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(B||[]).forEach(function(ye){var Re=ye[x.key],he=ye[x.children];warning(Re!=null,"Tree node must have a certain key: [".concat(fe).concat(Re,"]"));var G=String(Re);warning(!T.has(G)||Re===null||Re===void 0,"Same 'key' exist in the Tree: ".concat(G)),T.set(G,!0),$(he,"".concat(fe).concat(G," > "))})}$(K)}function b(K){function x(T){var $=(0,j.Z)(T);return $.map(function(B){if(!L(B))return(0,ve.ZP)(!B,"Tree/TreeNode can only accept TreeNode as children."),null;var fe=B.key,ye=B.props,Re=ye.children,he=(0,Te.Z)(ye,a),G=(0,ce.Z)({key:fe},he),F=x(Re);return F.length&&(G.children=F),G}).filter(function(B){return B})}return x(K)}function k(K,x,T){var $=u(T),B=$._title,fe=$.key,ye=$.children,Re=new Set(x===!0?[]:x),he=[];function G(F){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return F.map(function(D,Q){for(var H=A(le?le.pos:"0",Q),g=v(D[fe],H),E,Z=0;Z<B.length;Z+=1){var pe=B[Z];if(D[pe]!==void 0){E=D[pe];break}}var ze=(0,ce.Z)((0,ce.Z)({},(0,X.Z)(D,[].concat((0,Y.Z)(B),[fe,ye]))),{},{title:E,key:g,parent:le,pos:H,children:null,data:D,isStart:[].concat((0,Y.Z)(le?le.isStart:[]),[Q===0]),isEnd:[].concat((0,Y.Z)(le?le.isEnd:[]),[Q===F.length-1])});return he.push(ze),x===!0||Re.has(g)?ze.children=G(D[ye]||[],ze):ze.children=[],ze})}return G(K),he}function se(K,x,T){var $={};(0,M.Z)(T)==="object"?$=T:$={externalGetKey:T},$=$||{};var B=$,fe=B.childrenPropName,ye=B.externalGetKey,Re=B.fieldNames,he=u(Re),G=he.key,F=he.children,le=fe||F,D;ye?typeof ye=="string"?D=function(g){return g[ye]}:typeof ye=="function"&&(D=function(g){return ye(g)}):D=function(g,E){return v(g[G],E)};function Q(H,g,E,Z){var pe=H?H[le]:K,ze=H?A(E.pos,g):"0",Ge=H?[].concat((0,Y.Z)(Z),[H]):[];if(H){var je=D(H,ze),Ve={node:H,index:g,pos:ze,key:je,parentPos:E.node?E.pos:null,level:E.level+1,nodes:Ge};x(Ve)}pe&&pe.forEach(function(mt,pt){Q(mt,pt,{node:H,pos:ze,level:E?E.level+1:-1},Ge)})}Q(null)}function P(K){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=x.initWrapper,$=x.processEntity,B=x.onProcessFinished,fe=x.externalGetKey,ye=x.childrenPropName,Re=x.fieldNames,he=arguments.length>2?arguments[2]:void 0,G=fe||he,F={},le={},D={posEntities:F,keyEntities:le};return T&&(D=T(D)||D),se(K,function(Q){var H=Q.node,g=Q.index,E=Q.pos,Z=Q.key,pe=Q.parentPos,ze=Q.level,Ge=Q.nodes,je={node:H,nodes:Ge,index:g,key:Z,pos:E,level:ze},Ve=v(Z,E);F[E]=je,le[Ve]=je,je.parent=F[pe],je.parent&&(je.parent.children=je.parent.children||[],je.parent.children.push(je)),$&&$(je,D)},{externalGetKey:G,childrenPropName:ye,fieldNames:Re}),B&&B(D),D}function N(K,x){var T=x.expandedKeys,$=x.selectedKeys,B=x.loadedKeys,fe=x.loadingKeys,ye=x.checkedKeys,Re=x.halfCheckedKeys,he=x.dragOverNodeKey,G=x.dropPosition,F=x.keyEntities,le=(0,_e.Z)(F,K),D={eventKey:K,expanded:T.indexOf(K)!==-1,selected:$.indexOf(K)!==-1,loaded:B.indexOf(K)!==-1,loading:fe.indexOf(K)!==-1,checked:ye.indexOf(K)!==-1,halfChecked:Re.indexOf(K)!==-1,pos:String(le?le.pos:""),dragOver:he===K&&G===0,dragOverGapTop:he===K&&G===-1,dragOverGapBottom:he===K&&G===1};return D}function V(K){var x=K.data,T=K.expanded,$=K.selected,B=K.checked,fe=K.loaded,ye=K.loading,Re=K.halfChecked,he=K.dragOver,G=K.dragOverGapTop,F=K.dragOverGapBottom,le=K.pos,D=K.active,Q=K.eventKey,H=(0,ce.Z)((0,ce.Z)({},x),{},{expanded:T,selected:$,checked:B,loaded:fe,loading:ye,halfChecked:Re,dragOver:he,dragOverGapTop:G,dragOverGapBottom:F,pos:le,active:D,key:Q});return"props"in H||Object.defineProperty(H,"props",{get:function(){return(0,ve.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),K}}),H}},93144:function(Qt,et){"use strict";et.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))}},70318:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return Xt}});var M=p(5891),Y=p(80665),ce=p(57259),Te=p(80962),j=p(29043),X=p(19149),ve=p(92310),_e=p.n(ve),a=p(29301),A=p(80764),L=p(28800),v=p(59301),u=p(4676),y=v.forwardRef(function(it,te){var ge=it.height,q=it.offsetY,z=it.offsetX,De=it.children,O=it.prefixCls,ae=it.onInnerResize,J=it.innerProps,oe=it.rtl,de=it.extra,Ce={},xe={display:"flex",flexDirection:"column"};return q!==void 0&&(Ce={height:ge,position:"relative",overflow:"hidden"},xe=(0,ce.Z)((0,ce.Z)({},xe),{},(0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)({transform:"translateY(".concat(q,"px)")},oe?"marginRight":"marginLeft",-z),"position","absolute"),"left",0),"right",0),"top",0))),v.createElement("div",{style:Ce},v.createElement(a.Z,{onResize:function(Ie){var Pe=Ie.offsetHeight;Pe&&ae&&ae()}},v.createElement("div",(0,M.Z)({style:xe,className:_e()((0,Te.Z)({},"".concat(O,"-holder-inner"),O)),ref:te},J),De,de)))});y.displayName="Filler";var b=y;function k(it){var te=it.children,ge=it.setRef,q=v.useCallback(function(z){ge(z)},[]);return v.cloneElement(te,{ref:q})}function se(it,te,ge,q,z,De,O,ae){var J=ae.getKey;return it.slice(te,ge+1).map(function(oe,de){var Ce=te+de,xe=O(oe,Ce,{style:{width:q},offsetX:z}),ke=J(oe);return v.createElement(k,{key:ke,setRef:function(Pe){return De(oe,Pe)}},xe)})}function P(it,te,ge,q){var z=ge-it,De=te-ge,O=Math.min(z,De)*2;if(q<=O){var ae=Math.floor(q/2);return q%2?ge+ae+1:ge-ae}return z>De?ge-(q-De):ge+(q-z)}function N(it,te,ge){var q=it.length,z=te.length,De,O;if(q===0&&z===0)return null;q<z?(De=it,O=te):(De=te,O=it);var ae={__EMPTY_ITEM__:!0};function J(Ie){return Ie!==void 0?ge(Ie):ae}for(var oe=null,de=Math.abs(q-z)!==1,Ce=0;Ce<O.length;Ce+=1){var xe=J(De[Ce]),ke=J(O[Ce]);if(xe!==ke){oe=Ce,de=de||xe!==J(O[Ce+1]);break}}return oe===null?null:{index:oe,multiple:de}}function V(it,te,ge){var q=v.useState(it),z=(0,j.Z)(q,2),De=z[0],O=z[1],ae=v.useState(null),J=(0,j.Z)(ae,2),oe=J[0],de=J[1];return v.useEffect(function(){var Ce=N(De||[],it||[],te);(Ce==null?void 0:Ce.index)!==void 0&&(ge==null||ge(Ce.index),de(it[Ce.index])),O(it)},[it]),[oe]}var K=p(23073),x=(typeof navigator=="undefined"?"undefined":(0,Y.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),T=x,$=function(it,te,ge,q){var z=(0,v.useRef)(!1),De=(0,v.useRef)(null);function O(){clearTimeout(De.current),z.current=!0,De.current=setTimeout(function(){z.current=!1},50)}var ae=(0,v.useRef)({top:it,bottom:te,left:ge,right:q});return ae.current.top=it,ae.current.bottom=te,ae.current.left=ge,ae.current.right=q,function(J,oe){var de=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ce=J?oe<0&&ae.current.left||oe>0&&ae.current.right:oe<0&&ae.current.top||oe>0&&ae.current.bottom;return de&&Ce?(clearTimeout(De.current),z.current=!1):(!Ce||z.current)&&O(),!z.current&&Ce}};function B(it,te,ge,q,z,De,O){var ae=(0,v.useRef)(0),J=(0,v.useRef)(null),oe=(0,v.useRef)(null),de=(0,v.useRef)(!1),Ce=$(te,ge,q,z);function xe(Ze,ct){if(K.Z.cancel(J.current),!Ce(!1,ct)){var ut=Ze;if(!ut._virtualHandled)ut._virtualHandled=!0;else return;ae.current+=ct,oe.current=ct,T||ut.preventDefault(),J.current=(0,K.Z)(function(){var ot=de.current?10:1;O(ae.current*ot,!1),ae.current=0})}}function ke(Ze,ct){O(ct,!0),T||Ze.preventDefault()}var Ie=(0,v.useRef)(null),Pe=(0,v.useRef)(null);function Xe(Ze){if(it){K.Z.cancel(Pe.current),Pe.current=(0,K.Z)(function(){Ie.current=null},2);var ct=Ze.deltaX,ut=Ze.deltaY,ot=Ze.shiftKey,Ot=ct,_t=ut;(Ie.current==="sx"||!Ie.current&&ot&&ut&&!ct)&&(Ot=ut,_t=0,Ie.current="sx");var w=Math.abs(Ot),C=Math.abs(_t);Ie.current===null&&(Ie.current=De&&w>C?"x":"y"),Ie.current==="y"?xe(Ze,_t):ke(Ze,Ot)}}function rt(Ze){it&&(de.current=Ze.detail===oe.current)}return[Xe,rt]}function fe(it,te,ge,q){var z=v.useMemo(function(){return[new Map,[]]},[it,ge.id,q]),De=(0,j.Z)(z,2),O=De[0],ae=De[1],J=function(de){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:de,xe=O.get(de),ke=O.get(Ce);if(xe===void 0||ke===void 0)for(var Ie=it.length,Pe=ae.length;Pe<Ie;Pe+=1){var Xe,rt=it[Pe],Ze=te(rt);O.set(Ze,Pe);var ct=(Xe=ge.get(Ze))!==null&&Xe!==void 0?Xe:q;if(ae[Pe]=(ae[Pe-1]||0)+ct,Ze===de&&(xe=Pe),Ze===Ce&&(ke=Pe),xe!==void 0&&ke!==void 0)break}return{top:ae[xe-1]||0,bottom:ae[ke]}};return J}var ye=p(85899),Re=p(79545),he=p(68550),G=function(){function it(){(0,Re.Z)(this,it),(0,Te.Z)(this,"maps",void 0),(0,Te.Z)(this,"id",0),(0,Te.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,he.Z)(it,[{key:"set",value:function(ge,q){this.maps[ge]=q,this.id+=1,this.diffKeys.add(ge)}},{key:"get",value:function(ge){return this.maps[ge]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),it}(),F=G;function le(it){var te=parseFloat(it);return isNaN(te)?0:te}function D(it,te,ge){var q=v.useState(0),z=(0,j.Z)(q,2),De=z[0],O=z[1],ae=(0,v.useRef)(new Map),J=(0,v.useRef)(new F),oe=(0,v.useRef)(0);function de(){oe.current+=1}function Ce(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;de();var Ie=function(){ae.current.forEach(function(rt,Ze){if(rt&&rt.offsetParent){var ct=(0,ye.ZP)(rt),ut=ct.offsetHeight,ot=getComputedStyle(ct),Ot=ot.marginTop,_t=ot.marginBottom,w=le(Ot),C=le(_t),lt=ut+w+C;J.current.get(Ze)!==lt&&J.current.set(Ze,lt)}}),O(function(rt){return rt+1})};if(ke)Ie();else{oe.current+=1;var Pe=oe.current;Promise.resolve().then(function(){Pe===oe.current&&Ie()})}}function xe(ke,Ie){var Pe=it(ke),Xe=ae.current.get(Pe);Ie?(ae.current.set(Pe,Ie),Ce()):ae.current.delete(Pe),!Xe!=!Ie&&(Ie?te==null||te(ke):ge==null||ge(ke))}return(0,v.useEffect)(function(){return de},[]),[xe,Ce,J.current,De]}var Q=14/15;function H(it,te,ge){var q=(0,v.useRef)(!1),z=(0,v.useRef)(0),De=(0,v.useRef)(0),O=(0,v.useRef)(null),ae=(0,v.useRef)(null),J,oe=function(ke){if(q.current){var Ie=Math.ceil(ke.touches[0].pageX),Pe=Math.ceil(ke.touches[0].pageY),Xe=z.current-Ie,rt=De.current-Pe,Ze=Math.abs(Xe)>Math.abs(rt);Ze?z.current=Ie:De.current=Pe;var ct=ge(Ze,Ze?Xe:rt,!1,ke);ct&&ke.preventDefault(),clearInterval(ae.current),ct&&(ae.current=setInterval(function(){Ze?Xe*=Q:rt*=Q;var ut=Math.floor(Ze?Xe:rt);(!ge(Ze,ut,!0)||Math.abs(ut)<=.1)&&clearInterval(ae.current)},16))}},de=function(){q.current=!1,J()},Ce=function(ke){J(),ke.touches.length===1&&!q.current&&(q.current=!0,z.current=Math.ceil(ke.touches[0].pageX),De.current=Math.ceil(ke.touches[0].pageY),O.current=ke.target,O.current.addEventListener("touchmove",oe,{passive:!1}),O.current.addEventListener("touchend",de,{passive:!0}))};J=function(){O.current&&(O.current.removeEventListener("touchmove",oe),O.current.removeEventListener("touchend",de))},(0,L.Z)(function(){return it&&te.current.addEventListener("touchstart",Ce,{passive:!0}),function(){var xe;(xe=te.current)===null||xe===void 0||xe.removeEventListener("touchstart",Ce),J(),clearInterval(ae.current)}},[it])}function g(it){return Math.floor(Math.pow(it,.5))}function E(it,te){var ge="touches"in it?it.touches[0]:it;return ge[te?"pageX":"pageY"]-window[te?"scrollX":"scrollY"]}function Z(it,te,ge){v.useEffect(function(){var q=te.current;if(it&&q){var z=!1,De,O,ae=function(){K.Z.cancel(De)},J=function xe(){ae(),De=(0,K.Z)(function(){ge(O),xe()})},oe=function(ke){var Ie=ke;Ie._virtualHandled||(Ie._virtualHandled=!0,z=!0)},de=function(){z=!1,ae()},Ce=function(ke){if(z){var Ie=E(ke,!1),Pe=q.getBoundingClientRect(),Xe=Pe.top,rt=Pe.bottom;if(Ie<=Xe){var Ze=Xe-Ie;O=-g(Ze),J()}else if(Ie>=rt){var ct=Ie-rt;O=g(ct),J()}else ae()}};return q.addEventListener("mousedown",oe),q.ownerDocument.addEventListener("mouseup",de),q.ownerDocument.addEventListener("mousemove",Ce),function(){q.removeEventListener("mousedown",oe),q.ownerDocument.removeEventListener("mouseup",de),q.ownerDocument.removeEventListener("mousemove",Ce),ae()}}},[it])}var pe=10;function ze(it,te,ge,q,z,De,O,ae){var J=v.useRef(),oe=v.useState(null),de=(0,j.Z)(oe,2),Ce=de[0],xe=de[1];return(0,L.Z)(function(){if(Ce&&Ce.times<pe){if(!it.current){xe(function(we){return(0,ce.Z)({},we)});return}De();var ke=Ce.targetAlign,Ie=Ce.originAlign,Pe=Ce.index,Xe=Ce.offset,rt=it.current.clientHeight,Ze=!1,ct=ke,ut=null;if(rt){for(var ot=ke||Ie,Ot=0,_t=0,w=0,C=Math.min(te.length-1,Pe),lt=0;lt<=C;lt+=1){var ie=z(te[lt]);_t=Ot;var Oe=ge.get(ie);w=_t+(Oe===void 0?q:Oe),Ot=w}for(var mn=ot==="top"?Xe:rt-Xe,Fe=C;Fe>=0;Fe-=1){var We=z(te[Fe]),Je=ge.get(We);if(Je===void 0){Ze=!0;break}if(mn-=Je,mn<=0)break}switch(ot){case"top":ut=_t-Xe;break;case"bottom":ut=w-rt+Xe;break;default:{var ue=it.current.scrollTop,W=ue+rt;_t<ue?ct="top":w>W&&(ct="bottom")}}ut!==null&&O(ut),ut!==Ce.lastTop&&(Ze=!0)}Ze&&xe((0,ce.Z)((0,ce.Z)({},Ce),{},{times:Ce.times+1,targetAlign:ct,lastTop:ut}))}},[Ce,it.current]),function(ke){if(ke==null){ae();return}if(K.Z.cancel(J.current),typeof ke=="number")O(ke);else if(ke&&(0,Y.Z)(ke)==="object"){var Ie,Pe=ke.align;"index"in ke?Ie=ke.index:Ie=te.findIndex(function(Ze){return z(Ze)===ke.key});var Xe=ke.offset,rt=Xe===void 0?0:Xe;xe({times:0,index:Ie,offset:rt,originAlign:Pe})}}}var Ge=v.forwardRef(function(it,te){var ge=it.prefixCls,q=it.rtl,z=it.scrollOffset,De=it.scrollRange,O=it.onStartMove,ae=it.onStopMove,J=it.onScroll,oe=it.horizontal,de=it.spinSize,Ce=it.containerSize,xe=it.style,ke=it.thumbStyle,Ie=v.useState(!1),Pe=(0,j.Z)(Ie,2),Xe=Pe[0],rt=Pe[1],Ze=v.useState(null),ct=(0,j.Z)(Ze,2),ut=ct[0],ot=ct[1],Ot=v.useState(null),_t=(0,j.Z)(Ot,2),w=_t[0],C=_t[1],lt=!q,ie=v.useRef(),Oe=v.useRef(),mn=v.useState(!1),Fe=(0,j.Z)(mn,2),We=Fe[0],Je=Fe[1],ue=v.useRef(),W=function(){clearTimeout(ue.current),Je(!0),ue.current=setTimeout(function(){Je(!1)},3e3)},we=De-Ce||0,Be=Ce-de||0,U=v.useMemo(function(){if(z===0||we===0)return 0;var Ue=z/we;return Ue*Be},[z,we,Be]),at=function(ft){ft.stopPropagation(),ft.preventDefault()},Ee=v.useRef({top:U,dragging:Xe,pageY:ut,startTop:w});Ee.current={top:U,dragging:Xe,pageY:ut,startTop:w};var St=function(ft){rt(!0),ot(E(ft,oe)),C(Ee.current.top),O(),ft.stopPropagation(),ft.preventDefault()};v.useEffect(function(){var Ue=function(Ae){Ae.preventDefault()},ft=ie.current,Ct=Oe.current;return ft.addEventListener("touchstart",Ue,{passive:!1}),Ct.addEventListener("touchstart",St,{passive:!1}),function(){ft.removeEventListener("touchstart",Ue),Ct.removeEventListener("touchstart",St)}},[]);var Pt=v.useRef();Pt.current=we;var zt=v.useRef();zt.current=Be,v.useEffect(function(){if(Xe){var Ue,ft=function(Ae){var st=Ee.current,dt=st.dragging,kt=st.pageY,Lt=st.startTop;K.Z.cancel(Ue);var Bt=ie.current.getBoundingClientRect(),Nt=Ce/(oe?Bt.width:Bt.height);if(dt){var en=(E(Ae,oe)-kt)*Nt,pn=Lt;!lt&&oe?pn-=en:pn+=en;var Tt=Pt.current,yt=zt.current,Kt=yt?pn/yt:0,$t=Math.ceil(Kt*Tt);$t=Math.max($t,0),$t=Math.min($t,Tt),Ue=(0,K.Z)(function(){J($t,oe)})}},Ct=function(){rt(!1),ae()};return window.addEventListener("mousemove",ft,{passive:!0}),window.addEventListener("touchmove",ft,{passive:!0}),window.addEventListener("mouseup",Ct,{passive:!0}),window.addEventListener("touchend",Ct,{passive:!0}),function(){window.removeEventListener("mousemove",ft),window.removeEventListener("touchmove",ft),window.removeEventListener("mouseup",Ct),window.removeEventListener("touchend",Ct),K.Z.cancel(Ue)}}},[Xe]),v.useEffect(function(){return W(),function(){clearTimeout(ue.current)}},[z]),v.useImperativeHandle(te,function(){return{delayHidden:W}});var on="".concat(ge,"-scrollbar"),It={position:"absolute",visibility:We?null:"hidden"},Vt={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return oe?(It.height=8,It.left=0,It.right=0,It.bottom=0,Vt.height="100%",Vt.width=de,lt?Vt.left=U:Vt.right=U):(It.width=8,It.top=0,It.bottom=0,lt?It.right=0:It.left=0,Vt.width="100%",Vt.height=de,Vt.top=U),v.createElement("div",{ref:ie,className:_e()(on,(0,Te.Z)((0,Te.Z)((0,Te.Z)({},"".concat(on,"-horizontal"),oe),"".concat(on,"-vertical"),!oe),"".concat(on,"-visible"),We)),style:(0,ce.Z)((0,ce.Z)({},It),xe),onMouseDown:at,onMouseMove:W},v.createElement("div",{ref:Oe,className:_e()("".concat(on,"-thumb"),(0,Te.Z)({},"".concat(on,"-thumb-moving"),Xe)),style:(0,ce.Z)((0,ce.Z)({},Vt),ke),onMouseDown:St}))}),je=Ge,Ve=20;function mt(){var it=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ge=it/te*it;return isNaN(ge)&&(ge=0),ge=Math.max(ge,Ve),Math.floor(ge)}var pt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],nt=[],Gt={overflowY:"auto",overflowAnchor:"none"};function Jt(it,te){var ge=it.prefixCls,q=ge===void 0?"rc-virtual-list":ge,z=it.className,De=it.height,O=it.itemHeight,ae=it.fullHeight,J=ae===void 0?!0:ae,oe=it.style,de=it.data,Ce=it.children,xe=it.itemKey,ke=it.virtual,Ie=it.direction,Pe=it.scrollWidth,Xe=it.component,rt=Xe===void 0?"div":Xe,Ze=it.onScroll,ct=it.onVirtualScroll,ut=it.onVisibleChange,ot=it.innerProps,Ot=it.extraRender,_t=it.styles,w=(0,X.Z)(it,pt),C=v.useCallback(function(fn){return typeof xe=="function"?xe(fn):fn==null?void 0:fn[xe]},[xe]),lt=D(C,null,null),ie=(0,j.Z)(lt,4),Oe=ie[0],mn=ie[1],Fe=ie[2],We=ie[3],Je=!!(ke!==!1&&De&&O),ue=v.useMemo(function(){return Object.values(Fe.maps).reduce(function(fn,dn){return fn+dn},0)},[Fe.id,Fe.maps]),W=Je&&de&&(Math.max(O*de.length,ue)>De||!!Pe),we=Ie==="rtl",Be=_e()(q,(0,Te.Z)({},"".concat(q,"-rtl"),we),z),U=de||nt,at=(0,v.useRef)(),Ee=(0,v.useRef)(),St=(0,v.useRef)(),Pt=(0,v.useState)(0),zt=(0,j.Z)(Pt,2),on=zt[0],It=zt[1],Vt=(0,v.useState)(0),Ue=(0,j.Z)(Vt,2),ft=Ue[0],Ct=Ue[1],Ne=(0,v.useState)(!1),Ae=(0,j.Z)(Ne,2),st=Ae[0],dt=Ae[1],kt=function(){dt(!0)},Lt=function(){dt(!1)},Bt={getKey:C};function Nt(fn){It(function(dn){var En;typeof fn=="function"?En=fn(dn):En=fn;var Vn=In(En);return at.current.scrollTop=Vn,Vn})}var en=(0,v.useRef)({start:0,end:U.length}),pn=(0,v.useRef)(),Tt=V(U,C),yt=(0,j.Z)(Tt,1),Kt=yt[0];pn.current=Kt;var $t=v.useMemo(function(){if(!Je)return{scrollHeight:void 0,start:0,end:U.length-1,offset:void 0};if(!W){var fn;return{scrollHeight:((fn=Ee.current)===null||fn===void 0?void 0:fn.offsetHeight)||0,start:0,end:U.length-1,offset:void 0}}for(var dn=0,En,Vn,ir,wr=U.length,Lr=0;Lr<wr;Lr+=1){var An=U[Lr],hr=C(An),ur=Fe.get(hr),pr=dn+(ur===void 0?O:ur);pr>=on&&En===void 0&&(En=Lr,Vn=dn),pr>on+De&&ir===void 0&&(ir=Lr),dn=pr}return En===void 0&&(En=0,Vn=0,ir=Math.ceil(De/O)),ir===void 0&&(ir=U.length-1),ir=Math.min(ir+1,U.length-1),{scrollHeight:dn,start:En,end:ir,offset:Vn}},[W,Je,on,U,We,De]),Zt=$t.scrollHeight,ln=$t.start,Ln=$t.end,yn=$t.offset;en.current.start=ln,en.current.end=Ln,v.useLayoutEffect(function(){var fn=Fe.getRecord();if(fn.size===1){var dn=Array.from(fn)[0],En=C(U[ln]);if(En===dn){var Vn=Fe.get(dn),ir=Vn-O;Nt(function(wr){return wr+ir})}}Fe.resetRecord()},[Zt]);var Ft=v.useState({width:0,height:De}),Qe=(0,j.Z)(Ft,2),tt=Qe[0],vt=Qe[1],bt=function(dn){vt({width:dn.offsetWidth,height:dn.offsetHeight})},ht=(0,v.useRef)(),Dt=(0,v.useRef)(),xt=v.useMemo(function(){return mt(tt.width,Pe)},[tt.width,Pe]),jt=v.useMemo(function(){return mt(tt.height,Zt)},[tt.height,Zt]),tn=Zt-De,nn=(0,v.useRef)(tn);nn.current=tn;function In(fn){var dn=fn;return Number.isNaN(nn.current)||(dn=Math.min(dn,nn.current)),dn=Math.max(dn,0),dn}var Dn=on<=0,Fn=on>=tn,cn=ft<=0,rn=ft>=Pe,$n=$(Dn,Fn,cn,rn),Sn=function(){return{x:we?-ft:ft,y:on}},Wn=(0,v.useRef)(Sn()),Cn=(0,A.useEvent)(function(fn){if(ct){var dn=(0,ce.Z)((0,ce.Z)({},Sn()),fn);(Wn.current.x!==dn.x||Wn.current.y!==dn.y)&&(ct(dn),Wn.current=dn)}});function Bn(fn,dn){var En=fn;dn?((0,u.flushSync)(function(){Ct(En)}),Cn()):Nt(En)}function zn(fn){var dn=fn.currentTarget.scrollTop;dn!==on&&Nt(dn),Ze==null||Ze(fn),Cn()}var On=function(dn){var En=dn,Vn=Pe?Pe-tt.width:0;return En=Math.max(En,0),En=Math.min(En,Vn),En},Qn=(0,A.useEvent)(function(fn,dn){dn?((0,u.flushSync)(function(){Ct(function(En){var Vn=En+(we?-fn:fn);return On(Vn)})}),Cn()):Nt(function(En){var Vn=En+fn;return Vn})}),or=B(Je,Dn,Fn,cn,rn,!!Pe,Qn),Tn=(0,j.Z)(or,2),qt=Tn[0],Ke=Tn[1];H(Je,at,function(fn,dn,En,Vn){var ir=Vn;return $n(fn,dn,En)?!1:!ir||!ir._virtualHandled?(ir&&(ir._virtualHandled=!0),qt({preventDefault:function(){},deltaX:fn?dn:0,deltaY:fn?0:dn}),!0):!1}),Z(W,at,function(fn){Nt(function(dn){return dn+fn})}),(0,L.Z)(function(){function fn(En){var Vn=Dn&&En.detail<0,ir=Fn&&En.detail>0;Je&&!Vn&&!ir&&En.preventDefault()}var dn=at.current;return dn.addEventListener("wheel",qt,{passive:!1}),dn.addEventListener("DOMMouseScroll",Ke,{passive:!0}),dn.addEventListener("MozMousePixelScroll",fn,{passive:!1}),function(){dn.removeEventListener("wheel",qt),dn.removeEventListener("DOMMouseScroll",Ke),dn.removeEventListener("MozMousePixelScroll",fn)}},[Je,Dn,Fn]),(0,L.Z)(function(){if(Pe){var fn=On(ft);Ct(fn),Cn({x:fn})}},[tt.width,Pe]);var un=function(){var dn,En;(dn=ht.current)===null||dn===void 0||dn.delayHidden(),(En=Dt.current)===null||En===void 0||En.delayHidden()},Pn=ze(at,U,Fe,O,C,function(){return mn(!0)},Nt,un);v.useImperativeHandle(te,function(){return{nativeElement:St.current,getScrollInfo:Sn,scrollTo:function(dn){function En(Vn){return Vn&&(0,Y.Z)(Vn)==="object"&&("left"in Vn||"top"in Vn)}En(dn)?(dn.left!==void 0&&Ct(On(dn.left)),Pn(dn.top)):Pn(dn)}}}),(0,L.Z)(function(){if(ut){var fn=U.slice(ln,Ln+1);ut(fn,U)}},[ln,Ln,U]);var Kn=fe(U,C,Fe,O),Gn=Ot==null?void 0:Ot({start:ln,end:Ln,virtual:W,offsetX:ft,offsetY:yn,rtl:we,getSize:Kn}),nr=se(U,ln,Ln,Pe,ft,Oe,Ce,Bt),tr=null;De&&(tr=(0,ce.Z)((0,Te.Z)({},J?"height":"maxHeight",De),Gt),Je&&(tr.overflowY="hidden",Pe&&(tr.overflowX="hidden"),st&&(tr.pointerEvents="none")));var Hn={};return we&&(Hn.dir="rtl"),v.createElement("div",(0,M.Z)({ref:St,style:(0,ce.Z)((0,ce.Z)({},oe),{},{position:"relative"}),className:Be},Hn,w),v.createElement(a.Z,{onResize:bt},v.createElement(rt,{className:"".concat(q,"-holder"),style:tr,ref:at,onScroll:zn,onMouseEnter:un},v.createElement(b,{prefixCls:q,height:Zt,offsetX:ft,offsetY:yn,scrollWidth:Pe,onInnerResize:mn,ref:Ee,innerProps:ot,rtl:we,extra:Gn},nr))),W&&Zt>De&&v.createElement(je,{ref:ht,prefixCls:q,scrollOffset:on,scrollRange:Zt,rtl:we,onScroll:Bn,onStartMove:kt,onStopMove:Lt,spinSize:jt,containerSize:tt.height,style:_t==null?void 0:_t.verticalScrollBar,thumbStyle:_t==null?void 0:_t.verticalScrollBarThumb}),W&&Pe>tt.width&&v.createElement(je,{ref:Dt,prefixCls:q,scrollOffset:ft,scrollRange:Pe,rtl:we,onScroll:Bn,onStartMove:kt,onStopMove:Lt,spinSize:xt,containerSize:tt.width,horizontal:!0,style:_t==null?void 0:_t.horizontalScrollBar,thumbStyle:_t==null?void 0:_t.horizontalScrollBarThumb}))}var sn=v.forwardRef(Jt);sn.displayName="List";var Ut=sn,Xt=Ut},83145:function(Qt,et,p){"use strict";Object.defineProperty(et,"__esModule",{value:!0}),et.CopyToClipboard=void 0;var M=ce(p(59301)),Y=ce(p(25769));function ce(N){return N&&N.__esModule?N:{default:N}}function Te(N){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Te=function(K){return typeof K}:Te=function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},Te(N)}function j(N,V){var K=Object.keys(N);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(N);V&&(x=x.filter(function(T){return Object.getOwnPropertyDescriptor(N,T).enumerable})),K.push.apply(K,x)}return K}function X(N){for(var V=1;V<arguments.length;V++){var K=arguments[V]!=null?arguments[V]:{};V%2?j(K,!0).forEach(function(x){se(N,x,K[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(K)):j(K).forEach(function(x){Object.defineProperty(N,x,Object.getOwnPropertyDescriptor(K,x))})}return N}function ve(N,V){if(N==null)return{};var K=_e(N,V),x,T;if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(N);for(T=0;T<$.length;T++)x=$[T],!(V.indexOf(x)>=0)&&Object.prototype.propertyIsEnumerable.call(N,x)&&(K[x]=N[x])}return K}function _e(N,V){if(N==null)return{};var K={},x=Object.keys(N),T,$;for($=0;$<x.length;$++)T=x[$],!(V.indexOf(T)>=0)&&(K[T]=N[T]);return K}function a(N,V){if(!(N instanceof V))throw new TypeError("Cannot call a class as a function")}function A(N,V){for(var K=0;K<V.length;K++){var x=V[K];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(N,x.key,x)}}function L(N,V,K){return V&&A(N.prototype,V),K&&A(N,K),N}function v(N,V){return V&&(Te(V)==="object"||typeof V=="function")?V:y(N)}function u(N){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(K){return K.__proto__||Object.getPrototypeOf(K)},u(N)}function y(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function b(N,V){if(typeof V!="function"&&V!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(V&&V.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),V&&k(N,V)}function k(N,V){return k=Object.setPrototypeOf||function(x,T){return x.__proto__=T,x},k(N,V)}function se(N,V,K){return V in N?Object.defineProperty(N,V,{value:K,enumerable:!0,configurable:!0,writable:!0}):N[V]=K,N}var P=function(N){b(V,N);function V(){var K,x;a(this,V);for(var T=arguments.length,$=new Array(T),B=0;B<T;B++)$[B]=arguments[B];return x=v(this,(K=u(V)).call.apply(K,[this].concat($))),se(y(x),"onClick",function(fe){var ye=x.props,Re=ye.text,he=ye.onCopy,G=ye.children,F=ye.options,le=M.default.Children.only(G),D=(0,Y.default)(Re,F);he&&he(Re,D),le&&le.props&&typeof le.props.onClick=="function"&&le.props.onClick(fe)}),x}return L(V,[{key:"render",value:function(){var x=this.props,T=x.text,$=x.onCopy,B=x.options,fe=x.children,ye=ve(x,["text","onCopy","options","children"]),Re=M.default.Children.only(fe);return M.default.cloneElement(Re,X({},ye,{onClick:this.onClick}))}}]),V}(M.default.PureComponent);et.CopyToClipboard=P,se(P,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(Qt,et,p){"use strict";var M=p(83145),Y=M.CopyToClipboard;Y.CopyToClipboard=Y,Qt.exports=Y},76374:function(Qt,et,p){"use strict";var M=function(){if(typeof Map!="undefined")return Map;function G(F,le){var D=-1;return F.some(function(Q,H){return Q[0]===le?(D=H,!0):!1}),D}return function(){function F(){this.__entries__=[]}return Object.defineProperty(F.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),F.prototype.get=function(le){var D=G(this.__entries__,le),Q=this.__entries__[D];return Q&&Q[1]},F.prototype.set=function(le,D){var Q=G(this.__entries__,le);~Q?this.__entries__[Q][1]=D:this.__entries__.push([le,D])},F.prototype.delete=function(le){var D=this.__entries__,Q=G(D,le);~Q&&D.splice(Q,1)},F.prototype.has=function(le){return!!~G(this.__entries__,le)},F.prototype.clear=function(){this.__entries__.splice(0)},F.prototype.forEach=function(le,D){D===void 0&&(D=null);for(var Q=0,H=this.__entries__;Q<H.length;Q++){var g=H[Q];le.call(D,g[1],g[0])}},F}()}(),Y=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,ce=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")()}(),Te=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ce):function(G){return setTimeout(function(){return G(Date.now())},1e3/60)}}(),j=2;function X(G,F){var le=!1,D=!1,Q=0;function H(){le&&(le=!1,G()),D&&E()}function g(){Te(H)}function E(){var Z=Date.now();if(le){if(Z-Q<j)return;D=!0}else le=!0,D=!1,setTimeout(g,F);Q=Z}return E}var ve=20,_e=["top","right","bottom","left","width","height","size","weight"],a=typeof MutationObserver!="undefined",A=function(){function G(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=X(this.refresh.bind(this),ve)}return G.prototype.addObserver=function(F){~this.observers_.indexOf(F)||this.observers_.push(F),this.connected_||this.connect_()},G.prototype.removeObserver=function(F){var le=this.observers_,D=le.indexOf(F);~D&&le.splice(D,1),!le.length&&this.connected_&&this.disconnect_()},G.prototype.refresh=function(){var F=this.updateObservers_();F&&this.refresh()},G.prototype.updateObservers_=function(){var F=this.observers_.filter(function(le){return le.gatherActive(),le.hasActive()});return F.forEach(function(le){return le.broadcastActive()}),F.length>0},G.prototype.connect_=function(){!Y||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),a?(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)},G.prototype.disconnect_=function(){!Y||!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)},G.prototype.onTransitionEnd_=function(F){var le=F.propertyName,D=le===void 0?"":le,Q=_e.some(function(H){return!!~D.indexOf(H)});Q&&this.refresh()},G.getInstance=function(){return this.instance_||(this.instance_=new G),this.instance_},G.instance_=null,G}(),L=function(G,F){for(var le=0,D=Object.keys(F);le<D.length;le++){var Q=D[le];Object.defineProperty(G,Q,{value:F[Q],enumerable:!1,writable:!1,configurable:!0})}return G},v=function(G){var F=G&&G.ownerDocument&&G.ownerDocument.defaultView;return F||ce},u=T(0,0,0,0);function y(G){return parseFloat(G)||0}function b(G){for(var F=[],le=1;le<arguments.length;le++)F[le-1]=arguments[le];return F.reduce(function(D,Q){var H=G["border-"+Q+"-width"];return D+y(H)},0)}function k(G){for(var F=["top","right","bottom","left"],le={},D=0,Q=F;D<Q.length;D++){var H=Q[D],g=G["padding-"+H];le[H]=y(g)}return le}function se(G){var F=G.getBBox();return T(0,0,F.width,F.height)}function P(G){var F=G.clientWidth,le=G.clientHeight;if(!F&&!le)return u;var D=v(G).getComputedStyle(G),Q=k(D),H=Q.left+Q.right,g=Q.top+Q.bottom,E=y(D.width),Z=y(D.height);if(D.boxSizing==="border-box"&&(Math.round(E+H)!==F&&(E-=b(D,"left","right")+H),Math.round(Z+g)!==le&&(Z-=b(D,"top","bottom")+g)),!V(G)){var pe=Math.round(E+H)-F,ze=Math.round(Z+g)-le;Math.abs(pe)!==1&&(E-=pe),Math.abs(ze)!==1&&(Z-=ze)}return T(Q.left,Q.top,E,Z)}var N=function(){return typeof SVGGraphicsElement!="undefined"?function(G){return G instanceof v(G).SVGGraphicsElement}:function(G){return G instanceof v(G).SVGElement&&typeof G.getBBox=="function"}}();function V(G){return G===v(G).document.documentElement}function K(G){return Y?N(G)?se(G):P(G):u}function x(G){var F=G.x,le=G.y,D=G.width,Q=G.height,H=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,g=Object.create(H.prototype);return L(g,{x:F,y:le,width:D,height:Q,top:le,right:F+D,bottom:Q+le,left:F}),g}function T(G,F,le,D){return{x:G,y:F,width:le,height:D}}var $=function(){function G(F){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=T(0,0,0,0),this.target=F}return G.prototype.isActive=function(){var F=K(this.target);return this.contentRect_=F,F.width!==this.broadcastWidth||F.height!==this.broadcastHeight},G.prototype.broadcastRect=function(){var F=this.contentRect_;return this.broadcastWidth=F.width,this.broadcastHeight=F.height,F},G}(),B=function(){function G(F,le){var D=x(le);L(this,{target:F,contentRect:D})}return G}(),fe=function(){function G(F,le,D){if(this.activeObservations_=[],this.observations_=new M,typeof F!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=F,this.controller_=le,this.callbackCtx_=D}return G.prototype.observe=function(F){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(F instanceof v(F).Element))throw new TypeError('parameter 1 is not of type "Element".');var le=this.observations_;le.has(F)||(le.set(F,new $(F)),this.controller_.addObserver(this),this.controller_.refresh())}},G.prototype.unobserve=function(F){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(F instanceof v(F).Element))throw new TypeError('parameter 1 is not of type "Element".');var le=this.observations_;le.has(F)&&(le.delete(F),le.size||this.controller_.removeObserver(this))}},G.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},G.prototype.gatherActive=function(){var F=this;this.clearActive(),this.observations_.forEach(function(le){le.isActive()&&F.activeObservations_.push(le)})},G.prototype.broadcastActive=function(){if(this.hasActive()){var F=this.callbackCtx_,le=this.activeObservations_.map(function(D){return new B(D.target,D.broadcastRect())});this.callback_.call(F,le,F),this.clearActive()}},G.prototype.clearActive=function(){this.activeObservations_.splice(0)},G.prototype.hasActive=function(){return this.activeObservations_.length>0},G}(),ye=typeof WeakMap!="undefined"?new WeakMap:new M,Re=function(){function G(F){if(!(this instanceof G))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var le=A.getInstance(),D=new fe(F,le,this);ye.set(this,D)}return G}();["observe","unobserve","disconnect"].forEach(function(G){Re.prototype[G]=function(){var F;return(F=ye.get(this))[G].apply(F,arguments)}});var he=function(){return typeof ce.ResizeObserver!="undefined"?ce.ResizeObserver:Re}();et.Z=he},98040:function(Qt){Qt.exports=function(){var et=document.getSelection();if(!et.rangeCount)return function(){};for(var p=document.activeElement,M=[],Y=0;Y<et.rangeCount;Y++)M.push(et.getRangeAt(Y));switch(p.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":p.blur();break;default:p=null;break}return et.removeAllRanges(),function(){et.type==="Caret"&&et.removeAllRanges(),et.rangeCount||M.forEach(function(ce){et.addRange(ce)}),p&&p.focus()}}},1012:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return v}});var M=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),Y=new Uint8Array(16);function ce(){if(!M)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return M(Y)}var Te=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function j(u){return typeof u=="string"&&Te.test(u)}for(var X=j,ve=[],_e=0;_e<256;++_e)ve.push((_e+256).toString(16).substr(1));function a(u){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,b=(ve[u[y+0]]+ve[u[y+1]]+ve[u[y+2]]+ve[u[y+3]]+"-"+ve[u[y+4]]+ve[u[y+5]]+"-"+ve[u[y+6]]+ve[u[y+7]]+"-"+ve[u[y+8]]+ve[u[y+9]]+"-"+ve[u[y+10]]+ve[u[y+11]]+ve[u[y+12]]+ve[u[y+13]]+ve[u[y+14]]+ve[u[y+15]]).toLowerCase();if(!X(b))throw TypeError("Stringified UUID is invalid");return b}var A=a;function L(u,y,b){u=u||{};var k=u.random||(u.rng||ce)();if(k[6]=k[6]&15|64,k[8]=k[8]&63|128,y){b=b||0;for(var se=0;se<16;++se)y[b+se]=k[se];return y}return A(k)}var v=L},93314:function(Qt){"use strict";Qt.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=="},37312:function(Qt,et,p){"use strict";p.d(et,{ZP:function(){return Pa}});function M(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var Y={exports:{}};(function(o,e){(function(t){var n=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,s=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,c={buildAbsoluteURL:function(h,_,S){if(S=S||{},h=h.trim(),_=_.trim(),!_){if(!S.alwaysNormalize)return h;var R=c.parseURL(h);if(!R)throw new Error("Error trying to parse base URL.");return R.path=c.normalizePath(R.path),c.buildURLFromParts(R)}var re=c.parseURL(_);if(!re)throw new Error("Error trying to parse relative URL.");if(re.scheme)return S.alwaysNormalize?(re.path=c.normalizePath(re.path),c.buildURLFromParts(re)):_;var be=c.parseURL(h);if(!be)throw new Error("Error trying to parse base URL.");if(!be.netLoc&&be.path&&be.path[0]!=="/"){var me=r.exec(be.path);be.netLoc=me[1],be.path=me[2]}be.netLoc&&!be.path&&(be.path="/");var Se={scheme:be.scheme,netLoc:re.netLoc,path:null,params:re.params,query:re.query,fragment:re.fragment};if(!re.netLoc&&(Se.netLoc=be.netLoc,re.path[0]!=="/"))if(!re.path)Se.path=be.path,re.params||(Se.params=be.params,re.query||(Se.query=be.query));else{var Me=be.path,qe=Me.substring(0,Me.lastIndexOf("/")+1)+re.path;Se.path=c.normalizePath(qe)}return Se.path===null&&(Se.path=S.alwaysNormalize?c.normalizePath(re.path):re.path),c.buildURLFromParts(Se)},parseURL:function(h){var _=n.exec(h);return _?{scheme:_[1]||"",netLoc:_[2]||"",path:_[3]||"",params:_[4]||"",query:_[5]||"",fragment:_[6]||""}:null},normalizePath:function(h){for(h=h.split("").reverse().join("").replace(i,"");h.length!==(h=h.replace(s,"")).length;);return h.split("").reverse().join("")},buildURLFromParts:function(h){return h.scheme+h.netLoc+h.path+h.params+h.query+h.fragment}};o.exports=c})()})(Y);var ce=Y.exports;function Te(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(o,r).enumerable})),t.push.apply(t,n)}return t}function j(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Te(Object(t),!0).forEach(function(n){_e(o,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):Te(Object(t)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(t,n))})}return o}function X(o,e){if(typeof o!="object"||!o)return o;var t=o[Symbol.toPrimitive];if(t!==void 0){var n=t.call(o,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function ve(o){var e=X(o,"string");return typeof e=="symbol"?e:String(e)}function _e(o,e,t){return e=ve(e),e in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function a(){return a=Object.assign?Object.assign.bind():function(o){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(o[n]=t[n])}return o},a.apply(this,arguments)}const A=Number.isFinite||function(o){return typeof o=="number"&&isFinite(o)},L=Number.isSafeInteger||function(o){return typeof o=="number"&&Math.abs(o)<=v},v=Number.MAX_SAFE_INTEGER||9007199254740991;let u=function(o){return o.MEDIA_ATTACHING="hlsMediaAttaching",o.MEDIA_ATTACHED="hlsMediaAttached",o.MEDIA_DETACHING="hlsMediaDetaching",o.MEDIA_DETACHED="hlsMediaDetached",o.BUFFER_RESET="hlsBufferReset",o.BUFFER_CODECS="hlsBufferCodecs",o.BUFFER_CREATED="hlsBufferCreated",o.BUFFER_APPENDING="hlsBufferAppending",o.BUFFER_APPENDED="hlsBufferAppended",o.BUFFER_EOS="hlsBufferEos",o.BUFFER_FLUSHING="hlsBufferFlushing",o.BUFFER_FLUSHED="hlsBufferFlushed",o.MANIFEST_LOADING="hlsManifestLoading",o.MANIFEST_LOADED="hlsManifestLoaded",o.MANIFEST_PARSED="hlsManifestParsed",o.LEVEL_SWITCHING="hlsLevelSwitching",o.LEVEL_SWITCHED="hlsLevelSwitched",o.LEVEL_LOADING="hlsLevelLoading",o.LEVEL_LOADED="hlsLevelLoaded",o.LEVEL_UPDATED="hlsLevelUpdated",o.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",o.LEVELS_UPDATED="hlsLevelsUpdated",o.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",o.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",o.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",o.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",o.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",o.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",o.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",o.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",o.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",o.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",o.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",o.CUES_PARSED="hlsCuesParsed",o.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",o.INIT_PTS_FOUND="hlsInitPtsFound",o.FRAG_LOADING="hlsFragLoading",o.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",o.FRAG_LOADED="hlsFragLoaded",o.FRAG_DECRYPTED="hlsFragDecrypted",o.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",o.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",o.FRAG_PARSING_METADATA="hlsFragParsingMetadata",o.FRAG_PARSED="hlsFragParsed",o.FRAG_BUFFERED="hlsFragBuffered",o.FRAG_CHANGED="hlsFragChanged",o.FPS_DROP="hlsFpsDrop",o.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",o.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",o.ERROR="hlsError",o.DESTROYING="hlsDestroying",o.KEY_LOADING="hlsKeyLoading",o.KEY_LOADED="hlsKeyLoaded",o.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",o.BACK_BUFFER_REACHED="hlsBackBufferReached",o.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",o}({}),y=function(o){return o.NETWORK_ERROR="networkError",o.MEDIA_ERROR="mediaError",o.KEY_SYSTEM_ERROR="keySystemError",o.MUX_ERROR="muxError",o.OTHER_ERROR="otherError",o}({}),b=function(o){return o.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",o.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",o.KEY_SYSTEM_NO_SESSION="keySystemNoSession",o.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",o.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",o.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",o.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",o.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",o.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",o.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",o.MANIFEST_LOAD_ERROR="manifestLoadError",o.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",o.MANIFEST_PARSING_ERROR="manifestParsingError",o.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",o.LEVEL_EMPTY_ERROR="levelEmptyError",o.LEVEL_LOAD_ERROR="levelLoadError",o.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",o.LEVEL_PARSING_ERROR="levelParsingError",o.LEVEL_SWITCH_ERROR="levelSwitchError",o.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",o.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",o.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",o.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",o.FRAG_LOAD_ERROR="fragLoadError",o.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",o.FRAG_DECRYPT_ERROR="fragDecryptError",o.FRAG_PARSING_ERROR="fragParsingError",o.FRAG_GAP="fragGap",o.REMUX_ALLOC_ERROR="remuxAllocError",o.KEY_LOAD_ERROR="keyLoadError",o.KEY_LOAD_TIMEOUT="keyLoadTimeOut",o.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",o.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",o.BUFFER_APPEND_ERROR="bufferAppendError",o.BUFFER_APPENDING_ERROR="bufferAppendingError",o.BUFFER_STALLED_ERROR="bufferStalledError",o.BUFFER_FULL_ERROR="bufferFullError",o.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",o.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",o.INTERNAL_EXCEPTION="internalException",o.INTERNAL_ABORTED="aborted",o.UNKNOWN="unknown",o}({});const k=function(){},se={trace:k,debug:k,log:k,warn:k,info:k,error:k};let P=se;function N(o){const e=self.console[o];return e?e.bind(self.console,`[${o}] >`):k}function V(o,...e){e.forEach(function(t){P[t]=o[t]?o[t].bind(o):N(t)})}function K(o,e){if(typeof console=="object"&&o===!0||typeof o=="object"){V(o,"debug","log","info","warn","error");try{P.log(`Debug logs enabled for "${e}" in hls.js version 1.5.19`)}catch(t){P=se}}else P=se}const x=P,T=/^(\d+)x(\d+)$/,$=/(.+?)=(".*?"|.*?)(?:,|$)/g;class B{constructor(e){typeof e=="string"&&(e=B.parseAttrList(e)),a(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}else return null}hexadecimalIntegerAsNumber(e){const t=parseInt(this[e],16);return t>Number.MAX_SAFE_INTEGER?1/0:t}decimalFloatingPoint(e){return parseFloat(this[e])}optionalFloat(e,t){const n=this[e];return n?parseFloat(n):t}enumeratedString(e){return this[e]}bool(e){return this[e]==="YES"}decimalResolution(e){const t=T.exec(this[e]);if(t!==null)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e){let t;const n={},r='"';for($.lastIndex=0;(t=$.exec(e))!==null;){let i=t[2];i.indexOf(r)===0&&i.lastIndexOf(r)===i.length-1&&(i=i.slice(1,-1));const s=t[1].trim();n[s]=i}return n}}function fe(o){return o!=="ID"&&o!=="CLASS"&&o!=="START-DATE"&&o!=="DURATION"&&o!=="END-DATE"&&o!=="END-ON-NEXT"}function ye(o){return o==="SCTE35-OUT"||o==="SCTE35-IN"}class Re{constructor(e,t){if(this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,t){const n=t.attr;for(const r in n)if(Object.prototype.hasOwnProperty.call(e,r)&&e[r]!==n[r]){x.warn(`DATERANGE tag attribute: "${r}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=r;break}e=a(new B({}),n,e)}if(this.attr=e,this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){const n=new Date(this.attr["END-DATE"]);A(n.getTime())&&(this._endDate=n)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get startDate(){return this._startDate}get endDate(){if(this._endDate)return this._endDate;const e=this.duration;return e!==null?new Date(this._startDate.getTime()+e*1e3):null}get duration(){if("DURATION"in this.attr){const e=this.attr.decimalFloatingPoint("DURATION");if(A(e))return e}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isValid(){return!!this.id&&!this._badValueForSameId&&A(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)}}class he{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 G={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class F{constructor(e){this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams={[G.AUDIO]:null,[G.VIDEO]:null,[G.AUDIOVIDEO]:null},this.baseurl=e}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 byteRange(){return this._byteRange?this._byteRange:[]}get byteRangeStartOffset(){return this.byteRange[0]}get byteRangeEndOffset(){return this.byteRange[1]}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=ce.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}}class le extends F{constructor(e,t){super(t),this._decryptdata=null,this.rawProgramDateTime=null,this.programDateTime=null,this.tagList=[],this.duration=0,this.sn=0,this.levelkeys=void 0,this.type=void 0,this.loader=null,this.keyLoader=null,this.level=-1,this.cc=0,this.startPTS=void 0,this.endPTS=void 0,this.startDTS=void 0,this.endDTS=void 0,this.start=0,this.deltaPTS=void 0,this.maxStartPTS=void 0,this.minEndPTS=void 0,this.stats=new he,this.data=void 0,this.bitrateTest=!1,this.title=null,this.initSegment=null,this.endList=void 0,this.gap=void 0,this.urlId=0,this.type=e}get decryptdata(){const{levelkeys:e}=this;if(!e&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){const t=this.levelkeys.identity;if(t)this._decryptdata=t.getDecryptData(this.sn);else{const 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||!A(this.programDateTime))return null;const e=A(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}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:c}=this,h=c[e];if(!h){c[e]={startPTS:t,endPTS:n,startDTS:r,endDTS:i,partial:s};return}h.startPTS=Math.min(h.startPTS,t),h.endPTS=Math.max(h.endPTS,n),h.startDTS=Math.min(h.startDTS,r),h.endDTS=Math.max(h.endDTS,i)}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[G.AUDIO]=null,e[G.VIDEO]=null,e[G.AUDIOVIDEO]=null}}class D extends F{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.stats=new he,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)}}const Q=10;class H{constructor(e){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=e}reloaded(e){if(!e){this.advanced=!0,this.updated=!0;return}const t=this.lastPartSn-e.lastPartSn,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,this.availabilityDelay=e.availabilityDelay}get hasProgramDateTime(){return this.fragments.length?A(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||Q}get drift(){const e=this.driftEndTime-this.driftStartTime;return e>0?(this.driftEnd-this.driftStart)*1e3/e:1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}get fragmentEnd(){var e;return(e=this.fragments)!=null&&e.length?this.fragments[this.fragments.length-1].end:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].index:-1}get lastPartSn(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}function g(o){return Uint8Array.from(atob(o),e=>e.charCodeAt(0))}function E(o){const e=ze(o).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function Z(o){const e=function(n,r,i){const s=n[r];n[r]=n[i],n[i]=s};e(o,0,3),e(o,1,2),e(o,4,5),e(o,6,7)}function pe(o){const e=o.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=g(s)):t=E(s)}}return t}function ze(o){return Uint8Array.from(unescape(encodeURIComponent(o)),e=>e.charCodeAt(0))}const Ge=typeof self!="undefined"?self:void 0;var je={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},Ve={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function mt(o){switch(o){case Ve.FAIRPLAY:return je.FAIRPLAY;case Ve.PLAYREADY:return je.PLAYREADY;case Ve.WIDEVINE:return je.WIDEVINE;case Ve.CLEARKEY:return je.CLEARKEY}}var pt={CENC:"1077efecc0b24d02ace33c1e52e2fb4b",CLEARKEY:"e2719d58a985b3c9781ab030af78d30e",FAIRPLAY:"94ce86fb07ff4f43adb893d2fa968ca2",PLAYREADY:"9a04f07998404286ab92e65be0885f95",WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function nt(o){if(o===pt.WIDEVINE)return je.WIDEVINE;if(o===pt.PLAYREADY)return je.PLAYREADY;if(o===pt.CENC||o===pt.CLEARKEY)return je.CLEARKEY}function Gt(o){switch(o){case je.FAIRPLAY:return Ve.FAIRPLAY;case je.PLAYREADY:return Ve.PLAYREADY;case je.WIDEVINE:return Ve.WIDEVINE;case je.CLEARKEY:return Ve.CLEARKEY}}function Jt(o){const{drmSystems:e,widevineLicenseUrl:t}=o,n=e?[je.FAIRPLAY,je.WIDEVINE,je.PLAYREADY,je.CLEARKEY].filter(r=>!!e[r]):[];return!n[je.WIDEVINE]&&t&&n.push(je.WIDEVINE),n}const sn=function(o){return Ge!=null&&(o=Ge.navigator)!=null&&o.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function Ut(o,e,t,n){let r;switch(o){case je.FAIRPLAY:r=["cenc","sinf"];break;case je.WIDEVINE:case je.PLAYREADY:r=["cenc"];break;case je.CLEARKEY:r=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${o}`)}return Xt(r,e,t,n)}function Xt(o,e,t,n){return[{initDataTypes:o,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 it(o){const e=new Uint16Array(o.buffer,o.byteOffset,o.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 c=s.childNodes[0]?s.childNodes[0].nodeValue:s.getAttribute("VALUE");if(c){const h=g(c).subarray(0,16);return Z(h),h}}return null}function te(o,e,t){return Uint8Array.prototype.slice?o.slice(e,t):new Uint8Array(Array.prototype.slice.call(o,e,t))}const ge=(o,e)=>e+10<=o.length&&o[e]===73&&o[e+1]===68&&o[e+2]===51&&o[e+3]<255&&o[e+4]<255&&o[e+6]<128&&o[e+7]<128&&o[e+8]<128&&o[e+9]<128,q=(o,e)=>e+10<=o.length&&o[e]===51&&o[e+1]===68&&o[e+2]===73&&o[e+3]<255&&o[e+4]<255&&o[e+6]<128&&o[e+7]<128&&o[e+8]<128&&o[e+9]<128,z=(o,e)=>{const t=e;let n=0;for(;ge(o,e);){n+=10;const r=De(o,e+6);n+=r,q(o,e+10)&&(n+=10),e+=n}if(n>0)return o.subarray(t,t+n)},De=(o,e)=>{let t=0;return t=(o[e]&127)<<21,t|=(o[e+1]&127)<<14,t|=(o[e+2]&127)<<7,t|=o[e+3]&127,t},O=(o,e)=>ge(o,e)&&De(o,e+6)+10<=o.length-e,ae=o=>{const e=de(o);for(let t=0;t<e.length;t++){const n=e[t];if(J(n))return Pe(n)}},J=o=>o&&o.key==="PRIV"&&o.info==="com.apple.streaming.transportStreamTimestamp",oe=o=>{const e=String.fromCharCode(o[0],o[1],o[2],o[3]),t=De(o,4),n=10;return{type:e,size:t,data:o.subarray(n,n+t)}},de=o=>{let e=0;const t=[];for(;ge(o,e);){const n=De(o,e+6);e+=10;const r=e+n;for(;e+8<r;){const i=oe(o.subarray(e)),s=Ce(i);s&&t.push(s),e+=i.size+10}q(o,e)&&(e+=10)}return t},Ce=o=>o.type==="PRIV"?xe(o):o.type[0]==="W"?Ie(o):ke(o),xe=o=>{if(o.size<2)return;const e=Xe(o.data,!0),t=new Uint8Array(o.data.subarray(e.length+1));return{key:o.type,info:e,data:t.buffer}},ke=o=>{if(o.size<2)return;if(o.type==="TXXX"){let t=1;const n=Xe(o.data.subarray(t),!0);t+=n.length+1;const r=Xe(o.data.subarray(t));return{key:o.type,info:n,data:r}}const e=Xe(o.data.subarray(1));return{key:o.type,data:e}},Ie=o=>{if(o.type==="WXXX"){if(o.size<2)return;let t=1;const n=Xe(o.data.subarray(t),!0);t+=n.length+1;const r=Xe(o.data.subarray(t));return{key:o.type,info:n,data:r}}const e=Xe(o.data);return{key:o.type,data:e}},Pe=o=>{if(o.data.byteLength===8){const e=new Uint8Array(o.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)}},Xe=(o,e=!1)=>{const t=Ze();if(t){const _=t.decode(o);if(e){const S=_.indexOf("\0");return S!==-1?_.substring(0,S):_}return _.replace(/\0/g,"")}const n=o.length;let r,i,s,c="",h=0;for(;h<n;){if(r=o[h++],r===0&&e)return c;if(r===0||r===3)continue;switch(r>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:c+=String.fromCharCode(r);break;case 12:case 13:i=o[h++],c+=String.fromCharCode((r&31)<<6|i&63);break;case 14:i=o[h++],s=o[h++],c+=String.fromCharCode((r&15)<<12|(i&63)<<6|(s&63)<<0);break}}return c};let rt;function Ze(){if(!navigator.userAgent.includes("PlayStation 4"))return!rt&&typeof self.TextDecoder!="undefined"&&(rt=new self.TextDecoder("utf-8")),rt}const ct={hexDump:function(o){let e="";for(let t=0;t<o.length;t++){let n=o[t].toString(16);n.length<2&&(n="0"+n),e+=n}return e}},ut=Math.pow(2,32)-1,ot=[].push,Ot={video:1,audio:2,id3:3,text:4};function _t(o){return String.fromCharCode.apply(null,o)}function w(o,e){const t=o[e]<<8|o[e+1];return t<0?65536+t:t}function C(o,e){const t=ie(o,e);return t<0?4294967296+t:t}function lt(o,e){let t=C(o,e);return t*=Math.pow(2,32),t+=C(o,e+4),t}function ie(o,e){return o[e]<<24|o[e+1]<<16|o[e+2]<<8|o[e+3]}function Oe(o,e,t){o[e]=t>>24,o[e+1]=t>>16&255,o[e+2]=t>>8&255,o[e+3]=t&255}function mn(o){const e=o.byteLength;for(let t=0;t<e;){const n=C(o,t);if(n>8&&o[t+4]===109&&o[t+5]===111&&o[t+6]===111&&o[t+7]===102)return!0;t=n>1?t+n:e}return!1}function Fe(o,e){const t=[];if(!e.length)return t;const n=o.byteLength;for(let r=0;r<n;){const i=C(o,r),s=_t(o.subarray(r+4,r+8)),c=i>1?r+i:n;if(s===e[0])if(e.length===1)t.push(o.subarray(r+8,c));else{const h=Fe(o.subarray(r+8,c),e.slice(1));h.length&&ot.apply(t,h)}r=c}return t}function We(o){const e=[],t=o[0];let n=8;const r=C(o,n);n+=4;let i=0,s=0;t===0?(i=C(o,n),s=C(o,n+4),n+=8):(i=lt(o,n),s=lt(o,n+8),n+=16),n+=2;let c=o.length+s;const h=w(o,n);n+=2;for(let _=0;_<h;_++){let S=n;const R=C(o,S);S+=4;const re=R&2147483647;if((R&2147483648)>>>31===1)return x.warn("SIDX has hierarchical references (not supported)"),null;const me=C(o,S);S+=4,e.push({referenceSize:re,subsegmentDuration:me,info:{duration:me/r,start:c,end:c+re-1}}),c+=re,S+=4,n=S}return{earliestPresentationTime:i,timescale:r,version:t,referencesCount:h,references:e}}function Je(o){const e=[],t=Fe(o,["moov","trak"]);for(let r=0;r<t.length;r++){const i=t[r],s=Fe(i,["tkhd"])[0];if(s){let c=s[0];const h=C(s,c===0?12:20),_=Fe(i,["mdia","mdhd"])[0];if(_){c=_[0];const S=C(_,c===0?12:20),R=Fe(i,["mdia","hdlr"])[0];if(R){const re=_t(R.subarray(8,12)),be={soun:G.AUDIO,vide:G.VIDEO}[re];if(be){const me=Fe(i,["mdia","minf","stbl","stsd"])[0],Se=ue(me);e[h]={timescale:S,type:be},e[be]=j({timescale:S,id:h},Se)}}}}}return Fe(o,["moov","mvex","trex"]).forEach(r=>{const i=C(r,4),s=e[i];s&&(s.default={duration:C(r,12),flags:C(r,20)})}),e}function ue(o){const e=o.subarray(8),t=e.subarray(86),n=_t(e.subarray(4,8));let r=n;const i=n==="enca"||n==="encv";if(i){const c=Fe(e,[n])[0].subarray(n==="enca"?28:78);Fe(c,["sinf"]).forEach(_=>{const S=Fe(_,["schm"])[0];if(S){const R=_t(S.subarray(4,8));if(R==="cbcs"||R==="cenc"){const re=Fe(_,["frma"])[0];re&&(r=_t(re))}}})}switch(r){case"avc1":case"avc2":case"avc3":case"avc4":{const s=Fe(t,["avcC"])[0];r+="."+we(s[1])+we(s[2])+we(s[3]);break}case"mp4a":{const s=Fe(e,[n])[0],c=Fe(s.subarray(28),["esds"])[0];if(c&&c.length>12){let h=4;if(c[h++]!==3)break;h=W(c,h),h+=2;const _=c[h++];if(_&128&&(h+=2),_&64&&(h+=c[h++]),c[h++]!==4)break;h=W(c,h);const S=c[h++];if(S===64)r+="."+we(S);else break;if(h+=12,c[h++]!==5)break;h=W(c,h);const R=c[h++];let re=(R&248)>>3;re===31&&(re+=1+((R&7)<<3)+((c[h]&224)>>5)),r+="."+re}break}case"hvc1":case"hev1":{const s=Fe(t,["hvcC"])[0],c=s[1],h=["","A","B","C"][c>>6],_=c&31,S=C(s,2),R=(c&32)>>5?"H":"L",re=s[12],be=s.subarray(6,12);r+="."+h+_,r+="."+S.toString(16).toUpperCase(),r+="."+R+re;let me="";for(let Se=be.length;Se--;){const Me=be[Se];(Me||me)&&(me="."+Me.toString(16).toUpperCase()+me)}r+=me;break}case"dvh1":case"dvhe":{const s=Fe(t,["dvcC"])[0],c=s[2]>>1&127,h=s[2]<<5&32|s[3]>>3&31;r+="."+Be(c)+"."+Be(h);break}case"vp09":{const s=Fe(t,["vpcC"])[0],c=s[4],h=s[5],_=s[6]>>4&15;r+="."+Be(c)+"."+Be(h)+"."+Be(_);break}case"av01":{const s=Fe(t,["av1C"])[0],c=s[1]>>>5,h=s[1]&31,_=s[2]>>>7?"H":"M",S=(s[2]&64)>>6,R=(s[2]&32)>>5,re=c===2&&S?R?12:10:S?10:8,be=(s[2]&16)>>4,me=(s[2]&8)>>3,Se=(s[2]&4)>>2,Me=s[2]&3;r+="."+c+"."+Be(h)+_+"."+Be(re)+"."+be+"."+me+Se+Me+"."+Be(1)+"."+Be(1)+"."+Be(1)+"."+0;break}}return{codec:r,encrypted:i}}function W(o,e){const t=e+5;for(;o[e++]&128&&e<t;);return e}function we(o){return("0"+o.toString(16).toUpperCase()).slice(-2)}function Be(o){return(o<10?"0":"")+o}function U(o,e){if(!o||!e)return o;const t=e.keyId;return t&&e.isCommonEncryption&&Fe(o,["moov","trak"]).forEach(r=>{const s=Fe(r,["mdia","minf","stbl","stsd"])[0].subarray(8);let c=Fe(s,["enca"]);const h=c.length>0;h||(c=Fe(s,["encv"])),c.forEach(_=>{const S=h?_.subarray(28):_.subarray(78);Fe(S,["sinf"]).forEach(re=>{const be=at(re);if(be){const me=be.subarray(8,24);me.some(Se=>Se!==0)||(x.log(`[eme] Patching keyId in 'enc${h?"a":"v"}>sinf>>tenc' box: ${ct.hexDump(me)} -> ${ct.hexDump(t)}`),be.set(t,8))}})})}),o}function at(o){const e=Fe(o,["schm"])[0];if(e){const t=_t(e.subarray(4,8));if(t==="cbcs"||t==="cenc")return Fe(o,["schi","tenc"])[0]}return null}function Ee(o,e){return Fe(e,["moof","traf"]).reduce((t,n)=>{const r=Fe(n,["tfdt"])[0],i=r[0],s=Fe(n,["tfhd"]).reduce((c,h)=>{const _=C(h,4),S=o[_];if(S){let R=C(r,4);if(i===1){if(R===ut)return x.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),c;R*=ut+1,R+=C(r,8)}const re=S.timescale||9e4,be=R/re;if(A(be)&&(c===null||be<c))return be}return c},null);return s!==null&&A(s)&&(t===null||s<t)?s:t},null)}function St(o,e){let t=0,n=0,r=0;const i=Fe(o,["moof","traf"]);for(let s=0;s<i.length;s++){const c=i[s],h=Fe(c,["tfhd"])[0],_=C(h,4),S=e[_];if(!S)continue;const R=S.default,re=C(h,0)|(R==null?void 0:R.flags);let be=R==null?void 0:R.duration;re&8&&(re&2?be=C(h,12):be=C(h,8));const me=S.timescale||9e4,Se=Fe(c,["trun"]);for(let Me=0;Me<Se.length;Me++){if(t=Pt(Se[Me]),!t&&be){const qe=C(Se[Me],4);t=be*qe}S.type===G.VIDEO?n+=t/me:S.type===G.AUDIO&&(r+=t/me)}}if(n===0&&r===0){let s=1/0,c=0,h=0;const _=Fe(o,["sidx"]);for(let S=0;S<_.length;S++){const R=We(_[S]);if(R!=null&&R.references){s=Math.min(s,R.earliestPresentationTime/R.timescale);const re=R.references.reduce((be,me)=>be+me.info.duration||0,0);c=Math.max(c,re+R.earliestPresentationTime/R.timescale),h=c-s}}if(h&&A(h))return h}return n||r}function Pt(o){const e=C(o,0);let t=8;e&1&&(t+=4),e&4&&(t+=4);let n=0;const r=C(o,4);for(let i=0;i<r;i++){if(e&256){const s=C(o,t);n+=s,t+=4}e&512&&(t+=4),e&1024&&(t+=4),e&2048&&(t+=4)}return n}function zt(o,e,t){Fe(e,["moof","traf"]).forEach(n=>{Fe(n,["tfhd"]).forEach(r=>{const i=C(r,4),s=o[i];if(!s)return;const c=s.timescale||9e4;Fe(n,["tfdt"]).forEach(h=>{const _=h[0],S=t*c;if(S){let R=C(h,4);if(_===0)R-=S,R=Math.max(R,0),Oe(h,4,R);else{R*=Math.pow(2,32),R+=C(h,8),R-=S,R=Math.max(R,0);const re=Math.floor(R/(ut+1)),be=Math.floor(R%(ut+1));Oe(h,4,re),Oe(h,8,be)}}})})})}function on(o){const e={valid:null,remainder:null},t=Fe(o,["moof"]);if(t.length<2)return e.remainder=o,e;const n=t[t.length-1];return e.valid=te(o,0,n.byteOffset-8),e.remainder=te(o,n.byteOffset-8),e}function It(o,e){const t=new Uint8Array(o.length+e.length);return t.set(o),t.set(e,o.length),t}function Vt(o,e){const t=[],n=e.samples,r=e.timescale,i=e.id;let s=!1;return Fe(n,["moof"]).map(h=>{const _=h.byteOffset-8;Fe(h,["traf"]).map(R=>{const re=Fe(R,["tfdt"]).map(be=>{const me=be[0];let Se=C(be,4);return me===1&&(Se*=Math.pow(2,32),Se+=C(be,8)),Se/r})[0];return re!==void 0&&(o=re),Fe(R,["tfhd"]).map(be=>{const me=C(be,4),Se=C(be,0)&16777215,Me=(Se&1)!==0,qe=(Se&2)!==0,Et=(Se&8)!==0;let wt=0;const an=(Se&16)!==0;let Rt=0;const _n=(Se&32)!==0;let Yt=8;me===i&&(Me&&(Yt+=8),qe&&(Yt+=4),Et&&(wt=C(be,Yt),Yt+=4),an&&(Rt=C(be,Yt),Yt+=4),_n&&(Yt+=4),e.type==="video"&&(s=Ue(e.codec)),Fe(R,["trun"]).map(kn=>{const Yn=kn[0],vn=C(kn,0)&16777215,Mn=(vn&1)!==0;let Cr=0;const Jn=(vn&4)!==0,Er=(vn&256)!==0;let xr=0;const fr=(vn&512)!==0;let Hr=0;const ni=(vn&1024)!==0,rr=(vn&2048)!==0;let qn=0;const Gr=C(kn,4);let kr=8;Mn&&(Cr=C(kn,kr),kr+=4),Jn&&(kr+=4);let qr=Cr+_;for(let wi=0;wi<Gr;wi++){if(Er?(xr=C(kn,kr),kr+=4):xr=wt,fr?(Hr=C(kn,kr),kr+=4):Hr=Rt,ni&&(kr+=4),rr&&(Yn===0?qn=C(kn,kr):qn=ie(kn,kr),kr+=4),e.type===G.VIDEO){let Li=0;for(;Li<Hr;){const Pi=C(n,qr);if(qr+=4,ft(s,n[qr])){const Yi=n.subarray(qr,qr+Pi);Ct(Yi,s?2:1,o+qn/r,t)}qr+=Pi,Li+=Pi+4}}o+=xr/r}}))})})}),t}function Ue(o){if(!o)return!1;const e=o.indexOf("."),t=e<0?o:o.substring(0,e);return t==="hvc1"||t==="hev1"||t==="dvh1"||t==="dvhe"}function ft(o,e){if(o){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function Ct(o,e,t,n){const r=Ne(o);let i=0;i+=e;let s=0,c=0,h=0;for(;i<r.length;){s=0;do{if(i>=r.length)break;h=r[i++],s+=h}while(h===255);c=0;do{if(i>=r.length)break;h=r[i++],c+=h}while(h===255);const _=r.length-i;let S=i;if(c<_)i+=c;else if(c>_){x.error(`Malformed SEI payload. ${c} is too small, only ${_} bytes left to parse.`);break}if(s===4){if(r[S++]===181){const re=w(r,S);if(S+=2,re===49){const be=C(r,S);if(S+=4,be===1195456820){const me=r[S++];if(me===3){const Se=r[S++],Me=31&Se,qe=64&Se,Et=qe?2+Me*3:0,wt=new Uint8Array(Et);if(qe){wt[0]=Se;for(let an=1;an<Et;an++)wt[an]=r[S++]}n.push({type:me,payloadType:s,pts:t,bytes:wt})}}}}}else if(s===5&&c>16){const R=[];for(let me=0;me<16;me++){const Se=r[S++].toString(16);R.push(Se.length==1?"0"+Se:Se),(me===3||me===5||me===7||me===9)&&R.push("-")}const re=c-16,be=new Uint8Array(re);for(let me=0;me<re;me++)be[me]=r[S++];n.push({payloadType:s,pts:t,uuid:R.join(""),userData:Xe(be),userDataBytes:be})}}}function Ne(o){const e=o.byteLength,t=[];let n=1;for(;n<e-2;)o[n]===0&&o[n+1]===0&&o[n+2]===3?(t.push(n+2),n+=2):n++;if(t.length===0)return o;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]=o[s];return i}function Ae(o){const e=o[0];let t="",n="",r=0,i=0,s=0,c=0,h=0,_=0;if(e===0){for(;_t(o.subarray(_,_+1))!=="\0";)t+=_t(o.subarray(_,_+1)),_+=1;for(t+=_t(o.subarray(_,_+1)),_+=1;_t(o.subarray(_,_+1))!=="\0";)n+=_t(o.subarray(_,_+1)),_+=1;n+=_t(o.subarray(_,_+1)),_+=1,r=C(o,12),i=C(o,16),c=C(o,20),h=C(o,24),_=28}else if(e===1){_+=4,r=C(o,_),_+=4;const R=C(o,_);_+=4;const re=C(o,_);for(_+=4,s=Yo(2,32)*R+re,L(s)||(s=Number.MAX_SAFE_INTEGER,x.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),c=C(o,_),_+=4,h=C(o,_),_+=4;_t(o.subarray(_,_+1))!=="\0";)t+=_t(o.subarray(_,_+1)),_+=1;for(t+=_t(o.subarray(_,_+1)),_+=1;_t(o.subarray(_,_+1))!=="\0";)n+=_t(o.subarray(_,_+1)),_+=1;n+=_t(o.subarray(_,_+1)),_+=1}const S=o.subarray(_,o.byteLength);return{schemeIdUri:t,value:n,timeScale:r,presentationTime:s,presentationTimeDelta:i,eventDuration:c,id:h,payload:S}}function st(o,...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(o,4),r=0,n=8;r<t;r++)i.set(e[r],n),n+=e[r].byteLength;return i}function dt(o,e,t){if(o.byteLength!==16)throw new RangeError("Invalid system id");let n,r;if(e){n=1,r=new Uint8Array(e.length*16);for(let c=0;c<e.length;c++){const h=e[c];if(h.byteLength!==16)throw new RangeError("Invalid key");r.set(h,c*16)}}else 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),st([112,115,115,104],new Uint8Array([n,0,0,0]),o,i,r,s,t||new Uint8Array)}function kt(o){const e=[];if(o instanceof ArrayBuffer){const t=o.byteLength;let n=0;for(;n+32<t;){const r=new DataView(o,n),i=Lt(r);e.push(i),n+=i.size}}return e}function Lt(o){const e=o.getUint32(0),t=o.byteOffset,n=o.byteLength;if(n<e)return{offset:t,size:n};if(o.getUint32(4)!==1886614376)return{offset:t,size:e};const i=o.getUint32(8)>>>24;if(i!==0&&i!==1)return{offset:t,size:e};const s=o.buffer,c=ct.hexDump(new Uint8Array(s,t+12,16)),h=o.getUint32(28);let _=null,S=null;if(i===0){if(e-32<h||h<22)return{offset:t,size:e};S=new Uint8Array(s,t+32,h)}else if(i===1){if(!h||n<t+32+h*16+16)return{offset:t,size:e};_=[];for(let R=0;R<h;R++)_.push(new Uint8Array(s,t+32+R*16,16))}return{version:i,systemId:c,kids:_,data:S,offset:t,size:e}}let Bt={};class Nt{static clearKeyUriToKeyIdMap(){Bt={}}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&&e!=="AES-128"}isSupported(){if(this.method){if(this.method==="AES-128"||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case Ve.FAIRPLAY:case Ve.WIDEVINE:case Ve.PLAYREADY:case Ve.CLEARKEY:return["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}getDecryptData(e){if(!this.encrypted||!this.uri)return null;if(this.method==="AES-128"&&this.uri&&!this.iv){typeof e!="number"&&(this.method==="AES-128"&&!this.iv&&x.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0);const n=en(e);return new Nt(this.method,this.uri,"identity",this.keyFormatVersions,n)}const t=pe(this.uri);if(t)switch(this.keyFormat){case Ve.WIDEVINE:this.pssh=t,t.length>=22&&(this.keyId=t.subarray(t.length-22,t.length-6));break;case Ve.PLAYREADY:{const n=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=dt(n,null,t),this.keyId=it(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=Bt[this.uri];if(!n){const r=Object.keys(Bt).length%Number.MAX_SAFE_INTEGER;n=new Uint8Array(16),new DataView(n.buffer,12,4).setUint32(0,r),Bt[this.uri]=n}this.keyId=n}return this}}function en(o){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=o>>8*(15-t)&255;return e}const pn=/\{\$([a-zA-Z0-9-_]+)\}/g;function Tt(o){return pn.test(o)}function yt(o,e,t){if(o.variableList!==null||o.hasVariableRefs)for(let n=t.length;n--;){const r=t[n],i=e[r];i&&(e[r]=Kt(o,i))}}function Kt(o,e){if(o.variableList!==null||o.hasVariableRefs){const t=o.variableList;return e.replace(pn,n=>{const r=n.substring(2,n.length-1),i=t==null?void 0:t[r];return i===void 0?(o.playlistParsingError||(o.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${r}"`)),n):i})}return e}function $t(o,e,t){let n=o.variableList;n||(o.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){o.playlistParsingError||(o.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${s.message}`))}}else r=e.NAME,i=e.VALUE;r in n?o.playlistParsingError||(o.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${r}"`)):n[r]=i||""}function Zt(o,e,t){const n=e.IMPORT;if(t&&n in t){let r=o.variableList;r||(o.variableList=r={}),r[n]=t[n]}else o.playlistParsingError||(o.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${n}"`))}function ln(o=!0){return typeof self=="undefined"?void 0:(o||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function Ln(o){return typeof self!="undefined"&&o===self.ManagedMediaSource}const yn={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function Ft(o,e){const t=yn[e];return!!t&&!!t[o.slice(0,4)]}function Qe(o,e,t=!0){return!o.split(",").some(n=>!tt(n,e,t))}function tt(o,e,t=!0){var n;const r=ln(t);return(n=r==null?void 0:r.isTypeSupported(vt(o,e)))!=null?n:!1}function vt(o,e){return`${e}/mp4;codecs="${o}"`}function bt(o){if(o){const e=o.substring(0,4);return yn.video[e]}return 2}function ht(o){return o.split(",").reduce((e,t)=>{const n=yn.video[t];return n?(n*2+e)/(e?3:2):(yn.audio[t]+e)/(e?2:1)},0)}const Dt={};function xt(o,e=!0){if(Dt[o])return Dt[o];const t={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"]}[o];for(let n=0;n<t.length;n++)if(tt(t[n],"audio",e))return Dt[o]=t[n],t[n];return o}const jt=/flac|opus/i;function tn(o,e=!0){return o.replace(jt,t=>xt(t.toLowerCase(),e))}function nn(o,e){return o&&o!=="mp4a"?o:e&&e.split(",")[0]}function In(o){const e=o.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(",")}const Dn=/#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,Fn=/#EXT-X-MEDIA:(.*)/g,cn=/^#EXT(?:INF|-X-TARGETDURATION):/m,rn=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),$n=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class Sn{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 ce.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return cn.test(e)}static parseMasterPlaylist(e,t){const n=Tt(e),r={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:n},i=[];Dn.lastIndex=0;let s;for(;(s=Dn.exec(e))!=null;)if(s[1]){var c;const _=new B(s[1]);yt(r,_,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);const S=Kt(r,s[2]),R={attrs:_,bitrate:_.decimalInteger("BANDWIDTH")||_.decimalInteger("AVERAGE-BANDWIDTH"),name:_.NAME,url:Sn.resolve(S,t)},re=_.decimalResolution("RESOLUTION");re&&(R.width=re.width,R.height=re.height),Bn(_.CODECS,R),(c=R.unknownCodecs)!=null&&c.length||i.push(R),r.levels.push(R)}else if(s[3]){const _=s[3],S=s[4];switch(_){case"SESSION-DATA":{const R=new B(S);yt(r,R,["DATA-ID","LANGUAGE","VALUE","URI"]);const re=R["DATA-ID"];re&&(r.sessionData===null&&(r.sessionData={}),r.sessionData[re]=R);break}case"SESSION-KEY":{const R=Wn(S,t,r);R.encrypted&&R.isSupported()?(r.sessionKeys===null&&(r.sessionKeys=[]),r.sessionKeys.push(R)):x.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${S}"`);break}case"DEFINE":{{const R=new B(S);yt(r,R,["NAME","VALUE","QUERYPARAM"]),$t(r,R,t)}break}case"CONTENT-STEERING":{const R=new B(S);yt(r,R,["SERVER-URI","PATHWAY-ID"]),r.contentSteering={uri:Sn.resolve(R["SERVER-URI"],t),pathwayId:R["PATHWAY-ID"]||"."};break}case"START":{r.startTimeOffset=Cn(S);break}}}const h=i.length>0&&i.length<r.levels.length;return r.levels=h?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,c={AUDIO:s.map(_=>({id:_.attrs.AUDIO,audioCodec:_.audioCodec})),SUBTITLES:s.map(_=>({id:_.attrs.SUBTITLES,textCodec:_.textCodec})),"CLOSED-CAPTIONS":[]};let h=0;for(Fn.lastIndex=0;(r=Fn.exec(e))!==null;){const _=new B(r[1]),S=_.TYPE;if(S){const R=c[S],re=i[S]||[];i[S]=re,yt(n,_,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);const be=_.LANGUAGE,me=_["ASSOC-LANGUAGE"],Se=_.CHANNELS,Me=_.CHARACTERISTICS,qe=_["INSTREAM-ID"],Et={attrs:_,bitrate:0,id:h++,groupId:_["GROUP-ID"]||"",name:_.NAME||be||"",type:S,default:_.bool("DEFAULT"),autoselect:_.bool("AUTOSELECT"),forced:_.bool("FORCED"),lang:be,url:_.URI?Sn.resolve(_.URI,t):""};if(me&&(Et.assocLang=me),Se&&(Et.channels=Se),Me&&(Et.characteristics=Me),qe&&(Et.instreamId=qe),R!=null&&R.length){const wt=Sn.findGroup(R,Et.groupId)||R[0];zn(Et,wt,"audioCodec"),zn(Et,wt,"textCodec")}re.push(Et)}}return i}static parseLevelPlaylist(e,t,n,r,i,s){const c=new H(t),h=c.fragments;let _=null,S=0,R=0,re=0,be=0,me=null,Se=new le(r,t),Me,qe,Et,wt=-1,an=!1,Rt=null;for(rn.lastIndex=0,c.m3u8=e,c.hasVariableRefs=Tt(e);(Me=rn.exec(e))!==null;){an&&(an=!1,Se=new le(r,t),Se.start=re,Se.sn=S,Se.cc=be,Se.level=n,_&&(Se.initSegment=_,Se.rawProgramDateTime=_.rawProgramDateTime,_.rawProgramDateTime=null,Rt&&(Se.setByteRange(Rt),Rt=null)));const Yn=Me[1];if(Yn){Se.duration=parseFloat(Yn);const vn=(" "+Me[2]).slice(1);Se.title=vn||null,Se.tagList.push(vn?["INF",Yn,vn]:["INF",Yn])}else if(Me[3]){if(A(Se.duration)){Se.start=re,Et&&Tn(Se,Et,c),Se.sn=S,Se.level=n,Se.cc=be,h.push(Se);const vn=(" "+Me[3]).slice(1);Se.relurl=Kt(c,vn),Qn(Se,me),me=Se,re+=Se.duration,S++,R=0,an=!0}}else if(Me[4]){const vn=(" "+Me[4]).slice(1);me?Se.setByteRange(vn,me):Se.setByteRange(vn)}else if(Me[5])Se.rawProgramDateTime=(" "+Me[5]).slice(1),Se.tagList.push(["PROGRAM-DATE-TIME",Se.rawProgramDateTime]),wt===-1&&(wt=h.length);else{if(Me=Me[0].match($n),!Me){x.warn("No matches on slow regex match for level playlist!");continue}for(qe=1;qe<Me.length&&typeof Me[qe]=="undefined";qe++);const vn=(" "+Me[qe]).slice(1),Mn=(" "+Me[qe+1]).slice(1),Cr=Me[qe+2]?(" "+Me[qe+2]).slice(1):"";switch(vn){case"PLAYLIST-TYPE":c.type=Mn.toUpperCase();break;case"MEDIA-SEQUENCE":S=c.startSN=parseInt(Mn);break;case"SKIP":{const Jn=new B(Mn);yt(c,Jn,["RECENTLY-REMOVED-DATERANGES"]);const Er=Jn.decimalInteger("SKIPPED-SEGMENTS");if(A(Er)){c.skippedSegments=Er;for(let fr=Er;fr--;)h.unshift(null);S+=Er}const xr=Jn.enumeratedString("RECENTLY-REMOVED-DATERANGES");xr&&(c.recentlyRemovedDateranges=xr.split(" "));break}case"TARGETDURATION":c.targetduration=Math.max(parseInt(Mn),1);break;case"VERSION":c.version=parseInt(Mn);break;case"INDEPENDENT-SEGMENTS":case"EXTM3U":break;case"ENDLIST":c.live=!1;break;case"#":(Mn||Cr)&&Se.tagList.push(Cr?[Mn,Cr]:[Mn]);break;case"DISCONTINUITY":be++,Se.tagList.push(["DIS"]);break;case"GAP":Se.gap=!0,Se.tagList.push([vn]);break;case"BITRATE":Se.tagList.push([vn,Mn]);break;case"DATERANGE":{const Jn=new B(Mn);yt(c,Jn,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),yt(c,Jn,Jn.clientAttrs);const Er=new Re(Jn,c.dateRanges[Jn.ID]);Er.isValid||c.skippedSegments?c.dateRanges[Er.id]=Er:x.warn(`Ignoring invalid DATERANGE tag: "${Mn}"`),Se.tagList.push(["EXT-X-DATERANGE",Mn]);break}case"DEFINE":{{const Jn=new B(Mn);yt(c,Jn,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in Jn?Zt(c,Jn,s):$t(c,Jn,t)}break}case"DISCONTINUITY-SEQUENCE":be=parseInt(Mn);break;case"KEY":{const Jn=Wn(Mn,t,c);if(Jn.isSupported()){if(Jn.method==="NONE"){Et=void 0;break}Et||(Et={}),Et[Jn.keyFormat]&&(Et=a({},Et)),Et[Jn.keyFormat]=Jn}else x.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${Mn}"`);break}case"START":c.startTimeOffset=Cn(Mn);break;case"MAP":{const Jn=new B(Mn);if(yt(c,Jn,["BYTERANGE","URI"]),Se.duration){const Er=new le(r,t);or(Er,Jn,n,Et),_=Er,Se.initSegment=_,_.rawProgramDateTime&&!Se.rawProgramDateTime&&(Se.rawProgramDateTime=_.rawProgramDateTime)}else{const Er=Se.byteRangeEndOffset;if(Er){const xr=Se.byteRangeStartOffset;Rt=`${Er-xr}@${xr}`}else Rt=null;or(Se,Jn,n,Et),_=Se,an=!0}break}case"SERVER-CONTROL":{const Jn=new B(Mn);c.canBlockReload=Jn.bool("CAN-BLOCK-RELOAD"),c.canSkipUntil=Jn.optionalFloat("CAN-SKIP-UNTIL",0),c.canSkipDateRanges=c.canSkipUntil>0&&Jn.bool("CAN-SKIP-DATERANGES"),c.partHoldBack=Jn.optionalFloat("PART-HOLD-BACK",0),c.holdBack=Jn.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{const Jn=new B(Mn);c.partTarget=Jn.decimalFloatingPoint("PART-TARGET");break}case"PART":{let Jn=c.partList;Jn||(Jn=c.partList=[]);const Er=R>0?Jn[Jn.length-1]:void 0,xr=R++,fr=new B(Mn);yt(c,fr,["BYTERANGE","URI"]);const Hr=new D(fr,Se,t,xr,Er);Jn.push(Hr),Se.duration+=Hr.duration;break}case"PRELOAD-HINT":{const Jn=new B(Mn);yt(c,Jn,["URI"]),c.preloadHint=Jn;break}case"RENDITION-REPORT":{const Jn=new B(Mn);yt(c,Jn,["URI"]),c.renditionReports=c.renditionReports||[],c.renditionReports.push(Jn);break}default:x.warn(`line parsed but not handled: ${Me}`);break}}}me&&!me.relurl?(h.pop(),re-=me.duration,c.partList&&(c.fragmentHint=me)):c.partList&&(Qn(Se,me),Se.cc=be,c.fragmentHint=Se,Et&&Tn(Se,Et,c));const _n=h.length,Yt=h[0],kn=h[_n-1];if(re+=c.skippedSegments*c.targetduration,re>0&&_n&&kn){c.averagetargetduration=re/_n;const Yn=kn.sn;c.endSN=Yn!=="initSegment"?Yn:0,c.live||(kn.endList=!0),Yt&&(c.startCC=Yt.cc)}else c.endSN=0,c.startCC=0;return c.fragmentHint&&(re+=c.fragmentHint.duration),c.totalduration=re,c.endCC=be,wt>0&&On(h,wt),c}}function Wn(o,e,t){var n,r;const i=new B(o);yt(t,i,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);const s=(n=i.METHOD)!=null?n:"",c=i.URI,h=i.hexadecimalInteger("IV"),_=i.KEYFORMATVERSIONS,S=(r=i.KEYFORMAT)!=null?r:"identity";c&&i.IV&&!h&&x.error(`Invalid IV: ${i.IV}`);const R=c?Sn.resolve(c,e):"",re=(_||"1").split("/").map(Number).filter(Number.isFinite);return new Nt(s,R,S,re,h)}function Cn(o){const t=new B(o).decimalFloatingPoint("TIME-OFFSET");return A(t)?t:null}function Bn(o,e){let t=(o||"").split(/[ ,]+/).filter(n=>n);["video","audio","text"].forEach(n=>{const r=t.filter(i=>Ft(i,n));r.length&&(e[`${n}Codec`]=r.join(","),t=t.filter(i=>r.indexOf(i)===-1))}),e.unknownCodecs=t}function zn(o,e,t){const n=e[t];n&&(o[t]=n)}function On(o,e){let t=o[e];for(let n=e;n--;){const r=o[n];if(!r)return;r.programDateTime=t.programDateTime-r.duration*1e3,t=r}}function Qn(o,e){o.rawProgramDateTime?o.programDateTime=Date.parse(o.rawProgramDateTime):e!=null&&e.programDateTime&&(o.programDateTime=e.endProgramDateTime),A(o.programDateTime)||(o.programDateTime=null,o.rawProgramDateTime=null)}function or(o,e,t,n){o.relurl=e.URI,e.BYTERANGE&&o.setByteRange(e.BYTERANGE),o.level=t,o.sn="initSegment",n&&(o.levelkeys=n),o.initSegment=null}function Tn(o,e,t){o.levelkeys=e;const{encryptedFragments:n}=t;(!n.length||n[n.length-1].levelkeys!==e)&&Object.keys(e).some(r=>e[r].isCommonEncryption)&&n.push(o)}var qt={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},Ke={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};function un(o){const{type:e}=o;switch(e){case qt.AUDIO_TRACK:return Ke.AUDIO;case qt.SUBTITLE_TRACK:return Ke.SUBTITLE;default:return Ke.MAIN}}function Pn(o,e){let t=o.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class Kn{constructor(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=e,this.registerListeners()}startLoad(e){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:e}=this;e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.LEVEL_LOADING,this.onLevelLoading,this),e.on(u.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(u.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}unregisterListeners(){const{hls:e}=this;e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.LEVEL_LOADING,this.onLevelLoading,this),e.off(u.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(u.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,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:qt.MANIFEST,url:n,deliveryDirectives:null})}onLevelLoading(e,t){const{id:n,level:r,pathwayId:i,url:s,deliveryDirectives:c}=t;this.load({id:n,level:r,pathwayId:i,responseType:"text",type:qt.LEVEL,url:s,deliveryDirectives:c})}onAudioTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:s}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:qt.AUDIO_TRACK,url:i,deliveryDirectives:s})}onSubtitleTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:s}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:qt.SUBTITLE_TRACK,url:i,deliveryDirectives:s})}load(e){var t;const n=this.hls.config;let r=this.getInternalLoader(e);if(r){const _=r.context;if(_&&_.url===e.url&&_.level===e.level){x.trace("[playlist-loader]: playlist request ongoing");return}x.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),r.abort()}let i;if(e.type===qt.MANIFEST?i=n.manifestLoadPolicy.default:i=a({},n.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),r=this.createInternalLoader(e),A((t=e.deliveryDirectives)==null?void 0:t.part)){let _;if(e.type===qt.LEVEL&&e.level!==null?_=this.hls.levels[e.level].details:e.type===qt.AUDIO_TRACK&&e.id!==null?_=this.hls.audioTracks[e.id].details:e.type===qt.SUBTITLE_TRACK&&e.id!==null&&(_=this.hls.subtitleTracks[e.id].details),_){const S=_.partTarget,R=_.targetduration;if(S&&R){const re=Math.max(S*3,R*.8)*1e3;i=a({},i,{maxTimeToFirstByteMs:Math.min(re,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(re,i.maxTimeToFirstByteMs)})}}}const s=i.errorRetry||i.timeoutRetry||{},c={loadPolicy:i,timeout:i.maxLoadTimeMs,maxRetry:s.maxNumRetry||0,retryDelay:s.retryDelayMs||0,maxRetryDelay:s.maxRetryDelayMs||0},h={onSuccess:(_,S,R,re)=>{const be=this.getInternalLoader(R);this.resetInternalLoader(R.type);const me=_.data;if(me.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(_,R,new Error("no EXTM3U delimiter"),re||null,S);return}S.parsing.start=performance.now(),Sn.isMediaPlaylist(me)?this.handleTrackOrLevelPlaylist(_,S,R,re||null,be):this.handleMasterPlaylist(_,S,R,re)},onError:(_,S,R,re)=>{this.handleNetworkError(S,R,!1,_,re)},onTimeout:(_,S,R)=>{this.handleNetworkError(S,R,!0,void 0,_)}};r.load(e,c,h)}handleMasterPlaylist(e,t,n,r){const i=this.hls,s=e.data,c=Pn(e,n),h=Sn.parseMasterPlaylist(s,c);if(h.playlistParsingError){this.handleManifestParsingError(e,n,h.playlistParsingError,r,t);return}const{contentSteering:_,levels:S,sessionData:R,sessionKeys:re,startTimeOffset:be,variableList:me}=h;this.variableList=me;const{AUDIO:Se=[],SUBTITLES:Me,"CLOSED-CAPTIONS":qe}=Sn.parseMasterPlaylistMedia(s,c,h);Se.length&&!Se.some(wt=>!wt.url)&&S[0].audioCodec&&!S[0].attrs.AUDIO&&(x.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),Se.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new B({}),bitrate:0,url:""})),i.trigger(u.MANIFEST_LOADED,{levels:S,audioTracks:Se,subtitles:Me,captions:qe,contentSteering:_,url:c,stats:t,networkDetails:r,sessionData:R,sessionKeys:re,startTimeOffset:be,variableList:me})}handleTrackOrLevelPlaylist(e,t,n,r,i){const s=this.hls,{id:c,level:h,type:_}=n,S=Pn(e,n),R=0,re=A(h)?h:A(c)?c:0,be=un(n),me=Sn.parseLevelPlaylist(e.data,S,re,be,R,this.variableList);if(_===qt.MANIFEST){const Se={attrs:new B({}),bitrate:0,details:me,name:"",url:S};s.trigger(u.MANIFEST_LOADED,{levels:[Se],audioTracks:[],url:S,stats:t,networkDetails:r,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),n.levelDetails=me,this.handlePlaylistLoaded(me,e,t,n,r,i)}handleManifestParsingError(e,t,n,r,i){this.hls.trigger(u.ERROR,{type:y.NETWORK_ERROR,details:b.MANIFEST_PARSING_ERROR,fatal:t.type===qt.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===qt.LEVEL?s+=`: ${e.level} id: ${e.id}`:(e.type===qt.AUDIO_TRACK||e.type===qt.SUBTITLE_TRACK)&&(s+=` id: ${e.id} group-id: "${e.groupId}"`);const c=new Error(s);x.warn(`[playlist-loader]: ${s}`);let h=b.UNKNOWN,_=!1;const S=this.getInternalLoader(e);switch(e.type){case qt.MANIFEST:h=n?b.MANIFEST_LOAD_TIMEOUT:b.MANIFEST_LOAD_ERROR,_=!0;break;case qt.LEVEL:h=n?b.LEVEL_LOAD_TIMEOUT:b.LEVEL_LOAD_ERROR,_=!1;break;case qt.AUDIO_TRACK:h=n?b.AUDIO_TRACK_LOAD_TIMEOUT:b.AUDIO_TRACK_LOAD_ERROR,_=!1;break;case qt.SUBTITLE_TRACK:h=n?b.SUBTITLE_TRACK_LOAD_TIMEOUT:b.SUBTITLE_LOAD_ERROR,_=!1;break}S&&this.resetInternalLoader(e.type);const R={type:y.NETWORK_ERROR,details:h,fatal:_,url:e.url,loader:S,context:e,error:c,networkDetails:t,stats:i};if(r){const re=(t==null?void 0:t.url)||e.url;R.response=j({url:re,data:void 0},r)}this.hls.trigger(u.ERROR,R)}handlePlaylistLoaded(e,t,n,r,i,s){const c=this.hls,{type:h,level:_,id:S,groupId:R,deliveryDirectives:re}=r,be=Pn(t,r),me=un(r),Se=typeof r.level=="number"&&me===Ke.MAIN?_:void 0;if(!e.fragments.length){const qe=new Error("No Segments found in Playlist");c.trigger(u.ERROR,{type:y.NETWORK_ERROR,details:b.LEVEL_EMPTY_ERROR,fatal:!1,url:be,error:qe,reason:qe.message,response:t,context:r,level:Se,parent:me,networkDetails:i,stats:n});return}e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));const Me=e.playlistParsingError;if(Me){c.trigger(u.ERROR,{type:y.NETWORK_ERROR,details:b.LEVEL_PARSING_ERROR,fatal:!1,url:be,error:Me,reason:Me.message,response:t,context:r,level:Se,parent:me,networkDetails:i,stats:n});return}switch(e.live&&s&&(s.getCacheAge&&(e.ageHeader=s.getCacheAge()||0),(!s.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),h){case qt.MANIFEST:case qt.LEVEL:c.trigger(u.LEVEL_LOADED,{details:e,level:Se||0,id:S||0,stats:n,networkDetails:i,deliveryDirectives:re});break;case qt.AUDIO_TRACK:c.trigger(u.AUDIO_TRACK_LOADED,{details:e,id:S||0,groupId:R||"",stats:n,networkDetails:i,deliveryDirectives:re});break;case qt.SUBTITLE_TRACK:c.trigger(u.SUBTITLE_TRACK_LOADED,{details:e,id:S||0,groupId:R||"",stats:n,networkDetails:i,deliveryDirectives:re});break}}}function Gn(o,e){let t;try{t=new Event("addtrack")}catch(n){t=document.createEvent("Event"),t.initEvent("addtrack",!1,!1)}t.track=o,e.dispatchEvent(t)}function nr(o,e){const t=o.mode;if(t==="disabled"&&(o.mode="hidden"),o.cues&&!o.cues.getCueById(e.id))try{if(o.addCue(e),!o.cues.getCueById(e.id))throw new Error(`addCue is failed for: ${e}`)}catch(n){x.debug(`[texttrack-utils]: ${n}`);try{const r=new self.TextTrackCue(e.startTime,e.endTime,e.text);r.id=e.id,o.addCue(r)}catch(r){x.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${r}`)}}t==="disabled"&&(o.mode=t)}function tr(o){const e=o.mode;if(e==="disabled"&&(o.mode="hidden"),o.cues)for(let t=o.cues.length;t--;)o.removeCue(o.cues[t]);e==="disabled"&&(o.mode=e)}function Hn(o,e,t,n){const r=o.mode;if(r==="disabled"&&(o.mode="hidden"),o.cues&&o.cues.length>0){const i=dn(o.cues,e,t);for(let s=0;s<i.length;s++)(!n||n(i[s]))&&o.removeCue(i[s])}r==="disabled"&&(o.mode=r)}function fn(o,e){if(e<o[0].startTime)return 0;const t=o.length-1;if(e>o[t].endTime)return-1;let n=0,r=t;for(;n<=r;){const i=Math.floor((r+n)/2);if(e<o[i].startTime)r=i-1;else if(e>o[i].startTime&&n<t)n=i+1;else return i}return o[n].startTime-e<e-o[r].startTime?n:r}function dn(o,e,t){const n=[],r=fn(o,e);if(r>-1)for(let i=r,s=o.length;i<s;i++){const c=o[i];if(c.startTime>=e&&c.endTime<=t)n.push(c);else if(c.startTime>t)return n}return n}function En(o){const e=[];for(let t=0;t<o.length;t++){const n=o[t];(n.kind==="subtitles"||n.kind==="captions")&&n.label&&e.push(o[t])}return e}var Vn={audioId3:"org.id3",dateRange:"com.apple.quicktime.HLS",emsg:"https://aomedia.org/emsg/ID3"};const ir=.25;function wr(){if(typeof self!="undefined")return self.VTTCue||self.TextTrackCue}function Lr(o,e,t,n,r){let i=new o(e,t,"");try{i.value=n,r&&(i.type=r)}catch(s){i=new o(e,t,JSON.stringify(r?j({type:r},n):n))}return i}const An=(()=>{const o=wr();try{o&&new o(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();function hr(o,e){return o.getTime()/1e3-e}function ur(o){return Uint8Array.from(o.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}class pr{constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=e,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=null}_registerListeners(){const{hls:e}=this;e.on(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(u.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(u.LEVEL_UPDATED,this.onLevelUpdated,this)}_unregisterListeners(){const{hls:e}=this;e.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(u.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(u.LEVEL_UPDATED,this.onLevelUpdated,this)}onMediaAttached(e,t){this.media=t.media}onMediaDetaching(){this.id3Track&&(tr(this.id3Track),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(e){const t=this.getID3Track(e.textTracks);return t.mode="hidden",t}getID3Track(e){if(this.media){for(let t=0;t<e.length;t++){const n=e[t];if(n.kind==="metadata"&&n.label==="id3")return Gn(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=wr();if(s)for(let c=0;c<i.length;c++){const h=i[c].type;if(h===Vn.emsg&&!n||!r)continue;const _=de(i[c].data);if(_){const S=i[c].pts;let R=S+i[c].duration;R>An&&(R=An),R-S<=0&&(R=S+ir);for(let be=0;be<_.length;be++){const me=_[be];if(!J(me)){this.updateId3CueEnds(S,h);const Se=Lr(s,S,R,me,h);Se&&this.id3Track.addCue(Se)}}}}}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===An&&(s.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:n,type:r}){const{id3Track:i,hls:s}=this;if(!s)return;const{config:{enableEmsgMetadataCues:c,enableID3MetadataCues:h}}=s;if(i&&(c||h)){let _;r==="audio"?_=S=>S.type===Vn.audioId3&&h:r==="video"?_=S=>S.type===Vn.emsg&&c:_=S=>S.type===Vn.audioId3&&h||S.type===Vn.emsg&&c,Hn(i,t,n,_)}}onLevelUpdated(e,{details:t}){if(!this.media||!t.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;const{dateRangeCuesAppended:n,id3Track:r}=this,{dateRanges:i}=t,s=Object.keys(i);if(r){const S=Object.keys(n).filter(R=>!s.includes(R));for(let R=S.length;R--;){const re=S[R];Object.keys(n[re].cues).forEach(be=>{r.removeCue(n[re].cues[be])}),delete n[re]}}const c=t.fragments[t.fragments.length-1];if(s.length===0||!A(c==null?void 0:c.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const h=c.programDateTime/1e3-c.start,_=wr();for(let S=0;S<s.length;S++){const R=s[S],re=i[R],be=hr(re.startDate,h),me=n[R],Se=(me==null?void 0:me.cues)||{};let Me=(me==null?void 0:me.durationKnown)||!1,qe=An;const Et=re.endDate;if(Et)qe=hr(Et,h),Me=!0;else if(re.endOnNext&&!Me){const an=s.reduce((Rt,_n)=>{if(_n!==re.id){const Yt=i[_n];if(Yt.class===re.class&&Yt.startDate>re.startDate&&(!Rt||re.startDate<Rt.startDate))return Yt}return Rt},null);an&&(qe=hr(an.startDate,h),Me=!0)}const wt=Object.keys(re.attr);for(let an=0;an<wt.length;an++){const Rt=wt[an];if(!fe(Rt))continue;const _n=Se[Rt];if(_n)Me&&!me.durationKnown&&(_n.endTime=qe);else if(_){let Yt=re.attr[Rt];ye(Rt)&&(Yt=ur(Yt));const kn=Lr(_,be,qe,{key:Rt,data:Yt},Vn.dateRange);kn&&(kn.id=R,this.id3Track.addCue(kn),Se[Rt]=kn)}}n[R]={cues:Se,dateRange:re,durationKnown:Me}}}}class Zr{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=()=>this.timeupdate(),this.hls=e,this.config=e.config,this.registerListeners()}get latency(){return this._latency||0}get maxLatency(){const{config:e,levelDetails:t}=this;return e.liveMaxLatencyDuration!==void 0?e.liveMaxLatencyDuration:t?e.liveMaxLatencyDurationCount*t.targetduration:0}get targetLatency(){const{levelDetails:e}=this;if(e===null)return null;const{holdBack:t,partHoldBack:n,targetduration:r}=e,{liveSyncDuration:i,liveSyncDurationCount:s,lowLatencyMode:c}=this.config,h=this.hls.userConfig;let _=c&&n||t;(h.liveSyncDuration||h.liveSyncDurationCount||_===0)&&(_=i!==void 0?i:s*r);const S=r;return _+Math.min(this.stallCount*1,S)}get liveSyncPosition(){const e=this.estimateLiveEdge(),t=this.targetLatency,n=this.levelDetails;if(e===null||t===null||n===null)return null;const r=n.edge,i=e-t-this.edgeStalled,s=r-n.totalduration,c=r-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(s,i),c)}get drift(){const{levelDetails:e}=this;return e===null?1:e.drift}get edgeStalled(){const{levelDetails:e}=this;if(e===null)return 0;const t=(this.config.lowLatencyMode&&e.partTarget||e.targetduration)*3;return Math.max(e.age-t,0)}get forwardBufferLength(){const{media:e,levelDetails:t}=this;if(!e||!t)return 0;const n=e.buffered.length;return(n?e.buffered.end(n-1):t.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null}registerListeners(){this.hls.on(u.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(u.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(u.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(u.ERROR,this.onError,this)}unregisterListeners(){this.hls.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.off(u.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(u.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.off(u.ERROR,this.onError,this)}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)}onManifestLoading(){this.levelDetails=null,this._latency=null,this.stallCount=0}onLevelUpdated(e,{details:t}){this.levelDetails=t,t.advanced&&this.timeupdate(),!t.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)}onError(e,t){var n;t.details===b.BUFFER_STALLED_ERROR&&(this.stallCount++,(n=this.levelDetails)!=null&&n.live&&x.warn("[playback-rate-controller]: Stall detected, adjusting target latency"))}timeupdate(){const{media:e,levelDetails:t}=this;if(!e||!t)return;this.currentTime=e.currentTime;const n=this.computeLatency();if(n===null)return;this._latency=n;const{lowLatencyMode:r,maxLiveSyncPlaybackRate:i}=this.config;if(!r||i===1||!t.live)return;const s=this.targetLatency;if(s===null)return;const c=n-s,h=Math.min(this.maxLatency,s+t.targetduration);if(c<h&&c>.05&&this.forwardBufferLength>1){const S=Math.min(2,Math.max(1,i)),R=Math.round(2/(1+Math.exp(-.75*c-this.edgeStalled))*20)/20;e.playbackRate=Math.min(S,Math.max(1,R))}else e.playbackRate!==1&&e.playbackRate!==0&&(e.playbackRate=1)}estimateLiveEdge(){const{levelDetails:e}=this;return e===null?null:e.edge+e.age}computeLatency(){const e=this.estimateLiveEdge();return e===null?null:e-this.currentTime}}const zr=["NONE","TYPE-0","TYPE-1",null];function br(o){return zr.indexOf(o)>-1}const Dr=["SDR","PQ","HLG"];function gr(o){return!!o&&Dr.indexOf(o)>-1}var jr={No:"",Yes:"YES",v2:"v2"};function Vr(o){const{canSkipUntil:e,canSkipDateRanges:t,age:n}=o,r=n<e/2;return e&&r?t?jr.v2:jr.Yes:jr.No}class ii{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 Fr{constructor(e){this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.url=void 0,this.frameRate=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.supportedPromise=void 0,this.supportedResult=void 0,this._avgBitrate=0,this._audioGroups=void 0,this._subtitleGroups=void 0,this._urlId=0,this.url=[e.url],this._attrs=[e.attrs],this.bitrate=e.bitrate,e.details&&(this.details=e.details),this.id=e.id||0,this.name=e.name,this.width=e.width||0,this.height=e.height||0,this.frameRate=e.attrs.optionalFloat("FRAME-RATE",0),this._avgBitrate=e.attrs.decimalInteger("AVERAGE-BANDWIDTH"),this.audioCodec=e.audioCodec,this.videoCodec=e.videoCodec,this.codecSet=[e.videoCodec,e.audioCodec].filter(t=>!!t).map(t=>t.substring(0,4)).join(","),this.addGroupId("audio",e.attrs.AUDIO),this.addGroupId("text",e.attrs.SUBTITLES)}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(e){return ei(this._audioGroups,e)}hasSubtitleGroup(e){return ei(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 ei(o,e){return!e||!o?!1:o.indexOf(e)!==-1}function ar(o,e){const t=e.startPTS;if(A(t)){let n=0,r;e.sn>o.sn?(n=t-o.start,r=o):(n=o.start-t,r=e),r.duration!==n&&(r.duration=n)}else e.sn>o.sn?o.cc===e.cc&&o.minEndPTS?e.start=o.start+(o.minEndPTS-o.start):e.start=o.start+o.duration:e.start=Math.max(o.start-e.duration,0)}function si(o,e,t,n,r,i){n-t<=0&&(x.warn("Fragment should have a positive duration",e),n=t+e.duration,i=r+e.duration);let c=t,h=n;const _=e.startPTS,S=e.endPTS;if(A(_)){const Me=Math.abs(_-t);A(e.deltaPTS)?e.deltaPTS=Math.max(Me,e.deltaPTS):e.deltaPTS=Me,c=Math.max(t,_),t=Math.min(t,_),r=Math.min(r,e.startDTS),h=Math.min(n,S),n=Math.max(n,S),i=Math.max(i,e.endDTS)}const R=t-e.start;e.start!==0&&(e.start=t),e.duration=n-e.start,e.startPTS=t,e.maxStartPTS=c,e.startDTS=r,e.endPTS=n,e.minEndPTS=h,e.endDTS=i;const re=e.sn;if(!o||re<o.startSN||re>o.endSN)return 0;let be;const me=re-o.startSN,Se=o.fragments;for(Se[me]=e,be=me;be>0;be--)ar(Se[be],Se[be-1]);for(be=me;be<Se.length-1;be++)ar(Se[be],Se[be+1]);return o.fragmentHint&&ar(Se[Se.length-1],o.fragmentHint),o.PTSKnown=o.alignedSliding=!0,R}function vi(o,e){let t=null;const n=o.fragments;for(let c=n.length-1;c>=0;c--){const h=n[c].initSegment;if(h){t=h;break}}o.fragmentHint&&delete o.fragmentHint.endPTS;let r;hi(o,e,(c,h,_,S)=>{if(e.skippedSegments&&h.cc!==c.cc){const R=c.cc-h.cc;for(let re=_;re<S.length;re++)S[re].cc+=R}A(c.startPTS)&&A(c.endPTS)&&(h.start=h.startPTS=c.startPTS,h.startDTS=c.startDTS,h.maxStartPTS=c.maxStartPTS,h.endPTS=c.endPTS,h.endDTS=c.endDTS,h.minEndPTS=c.minEndPTS,h.duration=c.endPTS-c.startPTS,h.duration&&(r=h),e.PTSKnown=e.alignedSliding=!0),h.elementaryStreams=c.elementaryStreams,h.loader=c.loader,h.stats=c.stats,c.initSegment&&(h.initSegment=c.initSegment,t=c.initSegment)});const i=e.fragments;if(t&&(e.fragmentHint?i.concat(e.fragmentHint):i).forEach(h=>{var _;h&&(!h.initSegment||h.initSegment.relurl===((_=t)==null?void 0:_.relurl))&&(h.initSegment=t)}),e.skippedSegments){if(e.deltaUpdateFailed=i.some(c=>!c),e.deltaUpdateFailed){x.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let c=e.skippedSegments;c--;)i.shift();e.startSN=i[0].sn}else e.canSkipDateRanges&&(e.dateRanges=fi(o.dateRanges,e.dateRanges,e.recentlyRemovedDateranges));e.startCC=e.fragments[0].cc,e.endCC=i[i.length-1].cc}Or(o.partList,e.partList,(c,h)=>{h.elementaryStreams=c.elementaryStreams,h.stats=c.stats}),r?si(e,r,r.startPTS,r.endPTS,r.startDTS,r.endDTS):mr(o,e),i.length&&(e.totalduration=e.edge-i[0].start),e.driftStartTime=o.driftStartTime,e.driftStart=o.driftStart;const s=e.advancedDateTime;if(e.advanced&&s){const c=e.edge;e.driftStart||(e.driftStartTime=s,e.driftStart=c),e.driftEndTime=s,e.driftEnd=c}else e.driftEndTime=o.driftEndTime,e.driftEnd=o.driftEnd,e.advancedDateTime=o.advancedDateTime}function fi(o,e,t){const n=a({},o);return t&&t.forEach(r=>{delete n[r]}),Object.keys(e).forEach(r=>{const i=new Re(e[r].attr,n[r]);i.isValid?n[r]=i:x.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${JSON.stringify(e[r].attr)}"`)}),n}function Or(o,e,t){if(o&&e){let n=0;for(let r=0,i=o.length;r<=i;r++){const s=o[r],c=e[r+n];s&&c&&s.index===c.index&&s.fragment.sn===c.fragment.sn?t(s,c):n--}}}function hi(o,e,t){const n=e.skippedSegments,r=Math.max(o.startSN,e.startSN)-e.startSN,i=(o.fragmentHint?1:0)+(n?e.endSN:Math.min(o.endSN,e.endSN))-e.startSN,s=e.startSN-o.startSN,c=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,h=o.fragmentHint?o.fragments.concat(o.fragmentHint):o.fragments;for(let _=r;_<=i;_++){const S=h[s+_];let R=c[_];n&&!R&&_<n&&(R=e.fragments[_]=S),S&&R&&t(S,R,_,c)}}function mr(o,e){const t=e.startSN+e.skippedSegments-o.startSN,n=o.fragments;t<0||t>=n.length||Wt(e,n[t].start)}function Wt(o,e){if(e){const t=o.fragments;for(let n=o.skippedSegments;n<t.length;n++)t[n].start+=e;o.fragmentHint&&(o.fragmentHint.start+=e)}}function sr(o,e=1/0){let t=1e3*o.targetduration;if(o.updated){const n=o.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 vr(o,e,t){if(!(o!=null&&o.details))return null;const n=o.details;let r=n.fragments[e-n.startSN];return r||(r=n.fragmentHint,r&&r.sn===e)?r:e<n.startSN&&t&&t.sn===e?t:null}function Rn(o,e,t){var n;return o!=null&&o.details?Nn((n=o.details)==null?void 0:n.partList,e,t):null}function Nn(o,e,t){if(o)for(let n=o.length;n--;){const r=o[n];if(r.index===t&&r.fragment.sn===e)return r}return null}function xn(o){o.forEach((e,t)=>{const{details:n}=e;n!=null&&n.fragments&&n.fragments.forEach(r=>{r.level=t})})}function bn(o){switch(o.details){case b.FRAG_LOAD_TIMEOUT:case b.KEY_LOAD_TIMEOUT:case b.LEVEL_LOAD_TIMEOUT:case b.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function Xn(o,e){const t=bn(e);return o.default[`${t?"timeout":"error"}Retry`]}function lr(o,e){const t=o.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*o.retryDelayMs,o.maxRetryDelayMs)}function Pr(o){return j(j({},o),{errorRetry:null,timeoutRetry:null})}function Tr(o,e,t,n){if(!o)return!1;const r=n==null?void 0:n.code,i=e<o.maxNumRetry&&(Rr(r)||!!t);return o.shouldRetry?o.shouldRetry(o,e,t,n,i):i}function Rr(o){return o===0&&navigator.onLine===!1||!!o&&(o<400||o>499)}const Mr={search:function(o,e){let t=0,n=o.length-1,r=null,i=null;for(;t<=n;){r=(t+n)/2|0,i=o[r];const s=e(i);if(s>0)t=r+1;else if(s<0)n=r-1;else return i}return null}};function ui(o,e,t){if(e===null||!Array.isArray(o)||!o.length||!A(e))return null;const n=o[0].programDateTime;if(e<(n||0))return null;const r=o[o.length-1].endProgramDateTime;if(e>=(r||0))return null;t=t||0;for(let i=0;i<o.length;++i){const s=o[i];if(bi(e,t,s))return s}return null}function Yr(o,e,t=0,n=0,r=.005){let i=null;if(o){i=e[o.sn-e[0].sn+1]||null;const c=o.endDTS-t;c>0&&c<15e-7&&(t+=15e-7)}else t===0&&e[0].start===0&&(i=e[0]);if(i&&((!o||o.level===i.level)&&Bi(t,n,i)===0||pi(i,o,Math.min(r,n))))return i;const s=Mr.search(e,Bi.bind(null,t,n));return s&&(s!==o||!i)?s:i}function pi(o,e,t){if(e&&e.start===0&&e.level<o.level&&(e.endPTS||0)>0){const n=e.tagList.reduce((r,i)=>(i[0]==="INF"&&(r+=parseFloat(i[1])),r),t);return o.start<=n}return!1}function Bi(o=0,e=0,t){if(t.start<=o&&t.start+t.duration>o)return 0;const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0));return t.start+t.duration-n<=o?1:t.start-n>o&&t.start?-1:0}function bi(o,e,t){const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-n>o}function jn(o,e){return Mr.search(o,t=>t.cc<e?1:t.cc>e?-1:0)}var Zn={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},yr={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4};class Qr{constructor(e){this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=e,this.log=x.log.bind(x,"[info]:"),this.warn=x.warn.bind(x,"[warning]:"),this.error=x.error.bind(x,"[error]:"),this.registerListeners()}registerListeners(){const e=this.hls;e.on(u.ERROR,this.onError,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(u.ERROR,this.onError,this),e.off(u.ERROR,this.onErrorOut,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.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)===Ke.MAIN?e.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(e,t){var n,r;if(t.fatal)return;const i=this.hls,s=t.context;switch(t.details){case b.FRAG_LOAD_ERROR:case b.FRAG_LOAD_TIMEOUT:case b.KEY_LOAD_ERROR:case b.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case b.FRAG_PARSING_ERROR:if((n=t.frag)!=null&&n.gap){t.errorAction={action:Zn.DoNothing,flags:yr.None};return}case b.FRAG_GAP:case b.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=Zn.SendAlternateToPenaltyBox;return}case b.LEVEL_EMPTY_ERROR:case b.LEVEL_PARSING_ERROR:{var c,h;const _=t.parent===Ke.MAIN?t.level:i.loadLevel;t.details===b.LEVEL_EMPTY_ERROR&&((c=t.context)!=null&&(h=c.levelDetails)!=null&&h.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,_):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,_))}return;case b.LEVEL_LOAD_ERROR:case b.LEVEL_LOAD_TIMEOUT:typeof(s==null?void 0:s.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,s.level));return;case b.AUDIO_TRACK_LOAD_ERROR:case b.AUDIO_TRACK_LOAD_TIMEOUT:case b.SUBTITLE_LOAD_ERROR:case b.SUBTITLE_TRACK_LOAD_TIMEOUT:if(s){const _=i.levels[i.loadLevel];if(_&&(s.type===qt.AUDIO_TRACK&&_.hasAudioGroup(s.groupId)||s.type===qt.SUBTITLE_TRACK&&_.hasSubtitleGroup(s.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.loadLevel),t.errorAction.action=Zn.SendAlternateToPenaltyBox,t.errorAction.flags=yr.MoveAllAlternatesMatchingHost;return}}return;case b.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const _=i.levels[i.loadLevel],S=_==null?void 0:_.attrs["HDCP-LEVEL"];S?t.errorAction={action:Zn.SendAlternateToPenaltyBox,flags:yr.MoveAllAlternatesMatchingHDCP,hdcpLevel:S}:this.keySystemError(t)}return;case b.BUFFER_ADD_CODEC_ERROR:case b.REMUX_ALLOC_ERROR:case b.BUFFER_APPEND_ERROR:t.errorAction=this.getLevelSwitchAction(t,(r=t.level)!=null?r:i.loadLevel);return;case b.INTERNAL_EXCEPTION:case b.BUFFER_APPENDING_ERROR:case b.BUFFER_FULL_ERROR:case b.LEVEL_SWITCH_ERROR:case b.BUFFER_STALLED_ERROR:case b.BUFFER_SEEK_OVER_HOLE:case b.BUFFER_NUDGE_ON_STALL:t.errorAction={action:Zn.DoNothing,flags:yr.None};return}t.type===y.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=Xn(n.config.playlistLoadPolicy,e),i=this.playlistError++;if(Tr(r,i,bn(e),e.response))return{action:Zn.RetryRequest,flags:yr.None,retryConfig:r,retryCount:i};const c=this.getLevelSwitchAction(e,t);return r&&(c.retryConfig=r,c.retryCount=i),c}getFragRetryOrSwitchAction(e){const t=this.hls,n=this.getVariantLevelIndex(e.frag),r=t.levels[n],{fragLoadPolicy:i,keyLoadPolicy:s}=t.config,c=Xn(e.details.startsWith("key")?s:i,e),h=t.levels.reduce((S,R)=>S+R.fragmentError,0);if(r&&(e.details!==b.FRAG_GAP&&r.fragmentError++,Tr(c,h,bn(e),e.response)))return{action:Zn.RetryRequest,flags:yr.None,retryConfig:c,retryCount:h};const _=this.getLevelSwitchAction(e,n);return c&&(_.retryConfig=c,_.retryCount=h),_}getLevelSwitchAction(e,t){const n=this.hls;t==null&&(t=n.loadLevel);const r=this.hls.levels[t];if(r){var i,s;const _=e.details;r.loadError++,_===b.BUFFER_APPEND_ERROR&&r.fragmentError++;let S=-1;const{levels:R,loadLevel:re,minAutoLevel:be,maxAutoLevel:me}=n;n.autoLevelEnabled||(n.loadLevel=-1);const Se=(i=e.frag)==null?void 0:i.type,qe=(Se===Ke.AUDIO&&_===b.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(_===b.BUFFER_ADD_CODEC_ERROR||_===b.BUFFER_APPEND_ERROR))&&R.some(({audioCodec:_n})=>r.audioCodec!==_n),wt=e.sourceBufferName==="video"&&(_===b.BUFFER_ADD_CODEC_ERROR||_===b.BUFFER_APPEND_ERROR)&&R.some(({codecSet:_n,audioCodec:Yt})=>r.codecSet!==_n&&r.audioCodec===Yt),{type:an,groupId:Rt}=(s=e.context)!=null?s:{};for(let _n=R.length;_n--;){const Yt=(_n+re)%R.length;if(Yt!==re&&Yt>=be&&Yt<=me&&R[Yt].loadError===0){var c,h;const kn=R[Yt];if(_===b.FRAG_GAP&&Se===Ke.MAIN&&e.frag){const Yn=R[Yt].details;if(Yn){const vn=Yr(e.frag,Yn.fragments,e.frag.start);if(vn!=null&&vn.gap)continue}}else{if(an===qt.AUDIO_TRACK&&kn.hasAudioGroup(Rt)||an===qt.SUBTITLE_TRACK&&kn.hasSubtitleGroup(Rt))continue;if(Se===Ke.AUDIO&&(c=r.audioGroups)!=null&&c.some(Yn=>kn.hasAudioGroup(Yn))||Se===Ke.SUBTITLE&&(h=r.subtitleGroups)!=null&&h.some(Yn=>kn.hasSubtitleGroup(Yn))||qe&&r.audioCodec===kn.audioCodec||!qe&&r.audioCodec!==kn.audioCodec||wt&&r.codecSet===kn.codecSet)continue}S=Yt;break}}if(S>-1&&n.loadLevel!==S)return e.levelRetry=!0,this.playlistError=0,{action:Zn.SendAlternateToPenaltyBox,flags:yr.None,nextAutoLevel:S}}return{action:Zn.SendAlternateToPenaltyBox,flags:yr.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!==b.FRAG_GAP?t.fatal=!0:/MediaSource readyState: ended/.test(t.error.message)&&(this.warn(`MediaSource ended after "${t.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`),this.hls.recoverMediaError());break;case 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 yr.None:this.switchLevel(e,s);break;case yr.MoveAllAlternatesMatchingHDCP:i&&(t.maxHdcpLevel=zr[zr.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){t!==void 0&&e.errorAction&&(this.warn(`switching to level ${t} after ${e.details}`),this.hls.nextAutoLevel=t,e.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel)}}class Ir{constructor(e,t){this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=x.log.bind(x,`${t}:`),this.warn=x.warn.bind(x,`${t}:`),this.hls=e}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){this.timer!==-1&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.requestScheduled=-1,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(e,t,n){const r=t==null?void 0:t.renditionReports;if(r){let i=-1;for(let s=0;s<r.length;s++){const c=r[s];let h;try{h=new self.URL(c.URI,t.url).href}catch(_){x.warn(`Could not construct new URL for Rendition Report: ${_}`),h=c.URI||""}if(h===e){i=s;break}else h===e.substring(0,h.length)&&(i=s)}if(i!==-1){const s=r[i],c=parseInt(s["LAST-MSN"])||(t==null?void 0:t.lastPartSn);let h=parseInt(s["LAST-PART"])||(t==null?void 0:t.lastPartIndex);if(this.hls.config.lowLatencyMode){const S=Math.min(t.age-t.partTarget,t.targetduration);h>=0&&S>t.partTarget&&(h+=1)}const _=n&&Vr(n);return new ii(c,h>=0?h:void 0,_)}}}loadPlaylist(e){this.requestScheduled===-1&&(this.requestScheduled=self.performance.now())}shouldLoadPlaylist(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)}shouldReloadPlaylist(e){return this.timer===-1&&this.requestScheduled===-1&&this.shouldLoadPlaylist(e)}playlistLoaded(e,t,n){const{details:r,stats:i}=t,s=self.performance.now(),c=i.loading.first?Math.max(0,s-i.loading.first):0;if(r.advancedDateTime=Date.now()-c,r.live||n!=null&&n.live){if(r.reloaded(n),n&&this.log(`live playlist ${e} ${r.advanced?"REFRESHED "+r.lastPartSn+"-"+r.lastPartIndex:r.updated?"UPDATED":"MISSED"}`),n&&r.fragments.length>0&&vi(n,r),!this.canLoad||!r.live)return;let h,_,S;if(r.canBlockReload&&r.endSN&&r.advanced){const Me=this.hls.config.lowLatencyMode,qe=r.lastPartSn,Et=r.endSN,wt=r.lastPartIndex,an=wt!==-1,Rt=qe===Et,_n=Me?0:wt;an?(_=Rt?Et+1:qe,S=Rt?_n:wt+1):_=Et+1;const Yt=r.age,kn=Yt+r.ageHeader;let Yn=Math.min(kn-r.partTarget,r.targetduration*1.5);if(Yn>0){if(n&&Yn>n.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${n.tuneInGoal} to: ${Yn} with playlist age: ${r.age}`),Yn=0;else{const vn=Math.floor(Yn/r.targetduration);if(_+=vn,S!==void 0){const Mn=Math.round(Yn%r.targetduration/r.partTarget);S+=Mn}this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${Yt.toFixed(2)}s goal: ${Yn} skip sn ${vn} to part ${S}`)}r.tuneInGoal=Yn}if(h=this.getDeliveryDirectives(r,t.deliveryDirectives,_,S),Me||!Rt){this.loadPlaylist(h);return}}else(r.canBlockReload||r.canSkipUntil)&&(h=this.getDeliveryDirectives(r,t.deliveryDirectives,_,S));const R=this.hls.mainForwardBufferInfo,re=R?R.end-R.len:0,be=(r.edge-re)*1e3,me=sr(r,be);r.updated&&s>this.requestScheduled+me&&(this.requestScheduled=i.loading.start),_!==void 0&&r.canBlockReload?this.requestScheduled=i.loading.first+me-(r.partTarget*1e3||1e3):this.requestScheduled===-1||this.requestScheduled+me<s?this.requestScheduled=s:this.requestScheduled-s<=0&&(this.requestScheduled+=me);let Se=this.requestScheduled-s;Se=Math.max(0,Se),this.log(`reload live playlist ${e} in ${Math.round(Se)} ms`),this.timer=self.setTimeout(()=>this.loadPlaylist(h),Se)}else this.clearTimer()}getDeliveryDirectives(e,t,n,r){let i=Vr(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,r=t.part,i=jr.No),new ii(n,r,i)}checkRetry(e){const t=e.details,n=bn(e),r=e.errorAction,{action:i,retryCount:s=0,retryConfig:c}=r||{},h=!!r&&!!c&&(i===Zn.RetryRequest||!r.resolved&&i===Zn.SendAlternateToPenaltyBox);if(h){var _;if(this.requestScheduled=-1,s>=c.maxNumRetry)return!1;if(n&&(_=e.context)!=null&&_.deliveryDirectives)this.warn(`Retrying playlist loading ${s+1}/${c.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const S=lr(c,s);this.timer=self.setTimeout(()=>this.loadPlaylist(),S),this.warn(`Retrying playlist loading ${s+1}/${c.maxNumRetry} after "${t}" in ${S}ms`)}e.levelRetry=!0,r.resolved=!0}return h}}class _i{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 Wi{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 _i(e),this.fast_=new _i(t),this.defaultTTFB_=r,this.ttfb_=new _i(e)}update(e,t){const{slow_:n,fast_:r,ttfb_:i}=this;n.halfLife!==e&&(this.slow_=new _i(e,n.getEstimate(),n.getTotalWeight())),r.halfLife!==t&&(this.fast_=new _i(t,r.getEstimate(),r.getTotalWeight())),i.halfLife!==e&&(this.ttfb_=new _i(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_}destroy(){}}const Hi={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]},Ai={};function aa(o,e,t,n,r,i){const s=o.audioCodec?o.audioGroups:null,c=i==null?void 0:i.audioCodec,h=i==null?void 0:i.channels,_=h?parseInt(h):c?1/0:2;let S=null;if(s!=null&&s.length)try{s.length===1&&s[0]?S=e.groups[s[0]].channels:S=s.reduce((R,re)=>{if(re){const be=e.groups[re];if(!be)throw new Error(`Audio track group ${re} not found`);Object.keys(be.channels).forEach(me=>{R[me]=(R[me]||0)+be.channels[me]})}return R},{2:0})}catch(R){return!0}return o.videoCodec!==void 0&&(o.width>1920&&o.height>1088||o.height>1920&&o.width>1088||o.frameRate>Math.max(n,30)||o.videoRange!=="SDR"&&o.videoRange!==t||o.bitrate>Math.max(r,8e6))||!!S&&A(_)&&Object.keys(S).some(R=>parseInt(R)>_)}function sa(o,e,t){const n=o.videoCodec,r=o.audioCodec;if(!n||!r||!t)return Promise.resolve(Hi);const i={width:o.width,height:o.height,bitrate:Math.ceil(Math.max(o.bitrate*.9,o.averageBitrate)),framerate:o.frameRate||30},s=o.videoRange;s!=="SDR"&&(i.transferFunction=s.toLowerCase());const c=n.split(",").map(h=>({type:"media-source",video:j(j({},i),{},{contentType:vt(h,"video")})}));return r&&o.audioGroups&&o.audioGroups.forEach(h=>{var _;h&&((_=e.groups[h])==null||_.tracks.forEach(S=>{if(S.groupId===h){const R=S.channels||"",re=parseFloat(R);A(re)&&re>2&&c.push.apply(c,r.split(",").map(be=>({type:"media-source",audio:{contentType:vt(be,"audio"),channels:""+re}})))}}))}),Promise.all(c.map(h=>{const _=oa(h);return Ai[_]||(Ai[_]=t.decodingInfo(h))})).then(h=>({supported:!h.some(_=>!_.supported),configurations:c,decodingInfoResults:h})).catch(h=>({supported:!1,configurations:c,decodingInfoResults:[],error:h}))}function oa(o){const{audio:e,video:t}=o,n=t||e;if(n){const r=n.contentType.split('"')[1];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""}function ea(){if(typeof matchMedia=="function"){const o=matchMedia("(dynamic-range: high)"),e=matchMedia("bad query");if(o.media!==e.media)return o.matches===!0}return!1}function la(o,e){let t=!1,n=[];return o&&(t=o!=="SDR",n=[o]),e&&(n=e.allowedVideoRanges||Dr.slice(0),t=e.preferHDR!==void 0?e.preferHDR:ea(),t?n=n.filter(r=>r!=="SDR"):n=["SDR"]),{preferHDR:t,allowedVideoRanges:n}}function Mi(o,e,t,n,r){const i=Object.keys(o),s=n==null?void 0:n.channels,c=n==null?void 0:n.audioCodec,h=s&&parseInt(s)===2;let _=!0,S=!1,R=1/0,re=1/0,be=1/0,me=0,Se=[];const{preferHDR:Me,allowedVideoRanges:qe}=la(e,r);for(let Rt=i.length;Rt--;){const _n=o[i[Rt]];_=_n.channels[2]>0,R=Math.min(R,_n.minHeight),re=Math.min(re,_n.minFramerate),be=Math.min(be,_n.minBitrate);const Yt=qe.filter(kn=>_n.videoRanges[kn]>0);Yt.length>0&&(S=!0,Se=Yt)}R=A(R)?R:0,re=A(re)?re:0;const Et=Math.max(1080,R),wt=Math.max(30,re);return be=A(be)?be:t,t=Math.max(be,t),S||(e=void 0,Se=[]),{codecSet:i.reduce((Rt,_n)=>{const Yt=o[_n];if(_n===Rt)return Rt;if(Yt.minBitrate>t)return oi(_n,`min bitrate of ${Yt.minBitrate} > current estimate of ${t}`),Rt;if(!Yt.hasDefaultAudio)return oi(_n,"no renditions with default or auto-select sound found"),Rt;if(c&&_n.indexOf(c.substring(0,4))%5!==0)return oi(_n,`audio codec preference "${c}" not found`),Rt;if(s&&!h){if(!Yt.channels[s])return oi(_n,`no renditions with ${s} channel sound found (channels options: ${Object.keys(Yt.channels)})`),Rt}else if((!c||h)&&_&&Yt.channels[2]===0)return oi(_n,"no renditions with stereo sound found"),Rt;return Yt.minHeight>Et?(oi(_n,`min resolution of ${Yt.minHeight} > maximum of ${Et}`),Rt):Yt.minFramerate>wt?(oi(_n,`min framerate of ${Yt.minFramerate} > maximum of ${wt}`),Rt):Se.some(kn=>Yt.videoRanges[kn]>0)?Yt.maxScore<me?(oi(_n,`max score of ${Yt.maxScore} < selected max of ${me}`),Rt):Rt&&(ht(_n)>=ht(Rt)||Yt.fragmentError>o[Rt].fragmentError)?Rt:(me=Yt.maxScore,_n):(oi(_n,`no variants with VIDEO-RANGE of ${JSON.stringify(Se)} found`),Rt)},void 0),videoRanges:Se,preferHDR:Me,minFramerate:re,minBitrate:be}}function oi(o,e){x.log(`[abr] start candidates with "${o}" ignored because ${e}`)}function ua(o){return o.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 ta(o,e,t,n){return o.slice(t,n+1).reduce((r,i)=>{if(!i.codecSet)return r;const s=i.audioGroups;let c=r[i.codecSet];c||(r[i.codecSet]=c={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!s,fragmentError:0}),c.minBitrate=Math.min(c.minBitrate,i.bitrate);const h=Math.min(i.height,i.width);return c.minHeight=Math.min(c.minHeight,h),c.minFramerate=Math.min(c.minFramerate,i.frameRate),c.maxScore=Math.max(c.maxScore,i.score),c.fragmentError+=i.fragmentError,c.videoRanges[i.videoRange]=(c.videoRanges[i.videoRange]||0)+1,s&&s.forEach(_=>{if(!_)return;const S=e.groups[_];S&&(c.hasDefaultAudio=c.hasDefaultAudio||e.hasDefaultAudio?S.hasDefault:S.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(S.channels).forEach(R=>{c.channels[R]=(c.channels[R]||0)+S.channels[R]}))}),r},{})}function Si(o,e,t){if("attrs"in o){const n=e.indexOf(o);if(n!==-1)return n}for(let n=0;n<e.length;n++){const r=e[n];if(Oi(o,r,t))return n}return-1}function Oi(o,e,t){const{groupId:n,name:r,lang:i,assocLang:s,characteristics:c,default:h}=o,_=o.forced;return(n===void 0||e.groupId===n)&&(r===void 0||e.name===r)&&(i===void 0||e.lang===i)&&(i===void 0||e.assocLang===s)&&(h===void 0||e.default===h)&&(_===void 0||e.forced===_)&&(c===void 0||Ar(c,e.characteristics))&&(t===void 0||t(o,e))}function Ar(o,e=""){const t=o.split(","),n=e.split(",");return t.length===n.length&&!t.some(r=>n.indexOf(r)===-1)}function cr(o,e){const{audioCodec:t,channels:n}=o;return(t===void 0||(e.audioCodec||"").substring(0,4)===t.substring(0,4))&&(n===void 0||n===(e.channels||"2"))}function mi(o,e,t,n,r){const i=e[n],c=e.reduce((re,be,me)=>{const Se=be.uri;return(re[Se]||(re[Se]=[])).push(me),re},{})[i.uri];c.length>1&&(n=Math.max.apply(Math,c));const h=i.videoRange,_=i.frameRate,S=i.codecSet.substring(0,4),R=gi(e,n,re=>{if(re.videoRange!==h||re.frameRate!==_||re.codecSet.substring(0,4)!==S)return!1;const be=re.audioGroups,me=t.filter(Se=>!be||be.indexOf(Se.groupId)!==-1);return Si(o,me,r)>-1});return R>-1?R:gi(e,n,re=>{const be=re.audioGroups,me=t.filter(Se=>!be||be.indexOf(Se.groupId)!==-1);return Si(o,me,r)>-1})}function gi(o,e,t){for(let n=e;n>-1;n--)if(t(o[n]))return n;for(let n=e+1;n<o.length;n++)if(t(o[n]))return n;return-1}class Jr{constructor(e){this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-1,this._nextAutoLevel=-1,this.nextAutoLevelKey="",this.audioTracksByGroup=null,this.codecTiers=null,this.timer=-1,this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this._abandonRulesCheck=()=>{const{fragCurrent:t,partCurrent:n,hls:r}=this,{autoLevelEnabled:i,media:s}=r;if(!t||!s)return;const c=performance.now(),h=n?n.stats:t.stats,_=n?n.duration:t.duration,S=c-h.loading.start,R=r.minAutoLevel;if(h.aborted||h.loaded&&h.loaded===h.total||t.level<=R){this.clearTimer(),this._nextAutoLevel=-1;return}if(!i||s.paused||!s.playbackRate||!s.readyState)return;const re=r.mainForwardBufferInfo;if(re===null)return;const be=this.bwEstimator.getEstimateTTFB(),me=Math.abs(s.playbackRate);if(S<=Math.max(be,1e3*(_/(me*2))))return;const Se=re.len/me,Me=h.loading.first?h.loading.first-h.loading.start:-1,qe=h.loaded&&Me>-1,Et=this.getBwEstimate(),wt=r.levels,an=wt[t.level],Rt=h.total||Math.max(h.loaded,Math.round(_*an.averageBitrate/8));let _n=qe?S-Me:S;_n<1&&qe&&(_n=Math.min(S,h.loaded*8/Et));const Yt=qe?h.loaded*1e3/_n:0,kn=Yt?(Rt-h.loaded)/Yt:Rt*8/Et+be/1e3;if(kn<=Se)return;const Yn=Yt?Yt*8:Et;let vn=Number.POSITIVE_INFINITY,Mn;for(Mn=t.level-1;Mn>R;Mn--){const Jn=wt[Mn].maxBitrate;if(vn=this.getTimeToLoadFrag(be/1e3,Yn,_*Jn,!wt[Mn].details),vn<Se)break}if(vn>=kn||vn>_*10)return;r.nextLoadLevel=r.nextAutoLevel=Mn,qe?this.bwEstimator.sample(S-Math.min(be,Me),h.loaded):this.bwEstimator.sampleTTFB(S);const Cr=wt[Mn].maxBitrate;this.getBwEstimate()*this.hls.config.abrBandWidthUpFactor>Cr&&this.resetEstimator(Cr),this.clearTimer(),x.warn(`[abr] Fragment ${t.sn}${n?" part "+n.index:""} of level ${t.level} is loading too slowly;
Time to underbuffer: ${Se.toFixed(3)} s
Estimated load time for current fragment: ${kn.toFixed(3)} s
Estimated load time for down switch fragment: ${vn.toFixed(3)} s
TTFB estimate: ${Me|0} ms
Current BW estimate: ${A(Et)?Et|0:"Unknown"} bps
New BW estimate: ${this.getBwEstimate()|0} bps
Switching to level ${Mn} @ ${Cr|0} bps`),r.trigger(u.FRAG_LOAD_EMERGENCY_ABORTED,{frag:t,part:n,stats:h})},this.hls=e,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(e){e&&(x.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 Wi(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){const{hls:e}=this;e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.FRAG_LOADING,this.onFragLoading,this),e.on(u.FRAG_LOADED,this.onFragLoaded,this),e.on(u.FRAG_BUFFERED,this.onFragBuffered,this),e.on(u.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(u.LEVEL_LOADED,this.onLevelLoaded,this),e.on(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(u.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(u.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.FRAG_LOADING,this.onFragLoading,this),e.off(u.FRAG_LOADED,this.onFragLoaded,this),e.off(u.FRAG_BUFFERED,this.onFragBuffered,this),e.off(u.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(u.LEVEL_LOADED,this.onLevelLoaded,this),e.off(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(u.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(u.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 b.BUFFER_ADD_CODEC_ERROR:case b.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case b.FRAG_LOAD_TIMEOUT:{const n=t.frag,{fragCurrent:r,partCurrent:i}=this;if(n&&r&&n.sn===r.sn&&n.level===r.level){const s=performance.now(),c=i?i.stats:n.stats,h=s-c.loading.start,_=c.loading.first?c.loading.first-c.loading.start:-1;if(c.loaded&&_>-1){const R=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(h-Math.min(R,_),c.loaded)}else this.bwEstimator.sampleTTFB(h)}break}}}getTimeToLoadFrag(e,t,n,r){const i=e+n/t,s=r?this.lastLevelLoadSec:0;return i+s}onLevelLoaded(e,t){const n=this.hls.config,{loading:r}=t.stats,i=r.end-r.start;A(i)&&(this.lastLevelLoadSec=i/1e3),t.details.live?this.bwEstimator.update(n.abrEwmaSlowLive,n.abrEwmaFastLive):this.bwEstimator.update(n.abrEwmaSlowVoD,n.abrEwmaFastVoD)}onFragLoaded(e,{frag:t,part:n}){const r=n?n.stats:t.stats;if(t.type===Ke.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],c=(s.loaded?s.loaded.bytes:0)+r.loaded,h=(s.loaded?s.loaded.duration:0)+i;s.loaded={bytes:c,duration:h},s.realBitrate=Math.round(8*c/h)}if(t.bitrateTest){const i={stats:r,frag:t,part:n,id:t.type};this.onFragBuffered(u.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!==Ke.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,c=Math.min(Math.max(s,t),e);return x.warn(`[abr] Could not find best starting auto level. Defaulting to first in playlist ${s} clamped to ${c}`),c}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,{maxAutoLevel:r,config:i,minAutoLevel:s}=n,c=t?t.duration:e?e.duration:0,h=this.getBwEstimate(),_=this.getStarvationDelay();let S=i.abrBandWidthFactor,R=i.abrBandWidthUpFactor;if(_){const Me=this.findBestLevel(h,s,r,_,0,S,R);if(Me>=0)return Me}let re=c?Math.min(c,i.maxStarvationDelay):i.maxStarvationDelay;if(!_){const Me=this.bitrateTestDelay;Me&&(re=(c?Math.min(c,i.maxLoadingDelay):i.maxLoadingDelay)-Me,x.info(`[abr] bitrate test took ${Math.round(1e3*Me)}ms, set first fragment max fetchDuration to ${Math.round(1e3*re)} ms`),S=R=1)}const be=this.findBestLevel(h,s,r,_,re,S,R);if(x.info(`[abr] ${_?"rebuffering expected":"buffer is empty"}, optimal quality level ${be}`),be>-1)return be;const me=n.levels[s],Se=n.levels[n.loadLevel];return(me==null?void 0:me.bitrate)<(Se==null?void 0:Se.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,c){var h;const _=r+i,S=this.lastLoadedFragLevel,R=S===-1?this.hls.firstLevel:S,{fragCurrent:re,partCurrent:be}=this,{levels:me,allAudioTracks:Se,loadLevel:Me,config:qe}=this.hls;if(me.length===1)return 0;const Et=me[R],wt=!!(Et!=null&&(h=Et.details)!=null&&h.live),an=Me===-1||S===-1;let Rt,_n="SDR",Yt=(Et==null?void 0:Et.frameRate)||0;const{audioPreference:kn,videoPreference:Yn}=qe,vn=this.audioTracksByGroup||(this.audioTracksByGroup=ua(Se));if(an){if(this.firstSelection!==-1)return this.firstSelection;const xr=this.codecTiers||(this.codecTiers=ta(me,vn,t,n)),fr=Mi(xr,_n,e,kn,Yn),{codecSet:Hr,videoRanges:ni,minFramerate:rr,minBitrate:qn,preferHDR:Gr}=fr;Rt=Hr,_n=Gr?ni[ni.length-1]:ni[0],Yt=rr,e=Math.max(e,qn),x.log(`[abr] picked start tier ${JSON.stringify(fr)}`)}else Rt=Et==null?void 0:Et.codecSet,_n=Et==null?void 0:Et.videoRange;const Mn=be?be.duration:re?re.duration:0,Cr=this.bwEstimator.getEstimateTTFB()/1e3,Jn=[];for(let xr=n;xr>=t;xr--){var Er;const fr=me[xr],Hr=xr>R;if(!fr)continue;if(qe.useMediaCapabilities&&!fr.supportedResult&&!fr.supportedPromise){const wi=navigator.mediaCapabilities;typeof(wi==null?void 0:wi.decodingInfo)=="function"&&aa(fr,vn,_n,Yt,e,kn)?(fr.supportedPromise=sa(fr,vn,wi),fr.supportedPromise.then(Li=>{if(!this.hls)return;fr.supportedResult=Li;const Pi=this.hls.levels,Yi=Pi.indexOf(fr);Li.error?x.warn(`[abr] MediaCapabilities decodingInfo error: "${Li.error}" for level ${Yi} ${JSON.stringify(Li)}`):Li.supported||(x.warn(`[abr] Unsupported MediaCapabilities decodingInfo result for level ${Yi} ${JSON.stringify(Li)}`),Yi>-1&&Pi.length>1&&(x.log(`[abr] Removing unsupported level ${Yi}`),this.hls.removeLevel(Yi)))})):fr.supportedResult=Hi}if(Rt&&fr.codecSet!==Rt||_n&&fr.videoRange!==_n||Hr&&Yt>fr.frameRate||!Hr&&Yt>0&&Yt<fr.frameRate||fr.supportedResult&&!((Er=fr.supportedResult.decodingInfoResults)!=null&&Er[0].smooth)){Jn.push(xr);continue}const ni=fr.details,rr=(be?ni==null?void 0:ni.partTarget:ni==null?void 0:ni.averagetargetduration)||Mn;let qn;Hr?qn=c*e:qn=s*e;const Gr=Mn&&r>=Mn*2&&i===0?me[xr].averageBitrate:me[xr].maxBitrate,kr=this.getTimeToLoadFrag(Cr,qn,Gr*rr,ni===void 0);if(qn>=Gr&&(xr===S||fr.loadError===0&&fr.fragmentError===0)&&(kr<=Cr||!A(kr)||wt&&!this.bitrateTestDelay||kr<_)){const wi=this.forcedAutoLevel;return xr!==Me&&(wi===-1||wi!==Me)&&(Jn.length&&x.trace(`[abr] Skipped level(s) ${Jn.join(",")} of ${n} max with CODECS and VIDEO-RANGE:"${me[Jn[0]].codecs}" ${me[Jn[0]].videoRange}; not compatible with "${Et.codecs}" ${_n}`),x.info(`[abr] switch candidate:${R}->${xr} adjustedbw(${Math.round(qn)})-bitrate=${Math.round(qn-Gr)} ttfb:${Cr.toFixed(1)} avgDuration:${rr.toFixed(1)} maxFetchDuration:${_.toFixed(1)} fetchDuration:${kr.toFixed(1)} firstSelection:${an} codecSet:${Rt} videoRange:${_n} hls.loadLevel:${Me}`)),an&&(this.firstSelection=xr),xr}}return-1}set nextAutoLevel(e){const{maxAutoLevel:t,minAutoLevel:n}=this.hls,r=Math.min(Math.max(e,n),t);this._nextAutoLevel!==r&&(this.nextAutoLevelKey="",this._nextAutoLevel=r)}}class Ci{constructor(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(e){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)}clearInterval(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}clearNextTick(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1}tick(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}var Br={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class $i{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(u.BUFFER_APPENDED,this.onBufferAppended,this),e.on(u.FRAG_BUFFERED,this.onFragBuffered,this),e.on(u.FRAG_LOADED,this.onFragLoaded,this)}_unregisterListeners(){const{hls:e}=this;e.off(u.BUFFER_APPENDED,this.onBufferAppended,this),e.off(u.FRAG_BUFFERED,this.onFragBuffered,this),e.off(u.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){const{fragments:n}=this,r=Object.keys(n);for(let i=r.length;i--;){const s=n[r[i]];if((s==null?void 0:s.body.type)===t&&s.buffered){const c=s.body;if(c.start<=e&&e<=c.end)return c}}return null}detectEvictedFragments(e,t,n,r){this.timeRanges&&(this.timeRanges[e]=t);const i=(r==null?void 0:r.fragment.sn)||-1;Object.keys(this.fragments).forEach(s=>{const c=this.fragments[s];if(!c||i>=c.body.sn)return;if(!c.buffered&&!c.loaded){c.body.type===n&&this.removeFragment(c.body);return}const h=c.range[e];h&&h.time.some(_=>{const S=!this.isTimeBuffered(_.startPTS,_.endPTS,t);return S&&this.removeFragment(c.body),S})})}detectPartialFragments(e){const t=this.timeRanges,{frag:n,part:r}=e;if(!t||n.sn==="initSegment")return;const i=ki(n),s=this.fragments[i];if(!s||s.buffered&&n.gap)return;const c=!n.relurl;Object.keys(t).forEach(h=>{const _=n.elementaryStreams[h];if(!_)return;const S=t[h],R=c||_.partial===!0;s.range[h]=this.getBufferedTimes(n,r,R,S)}),s.loaded=null,Object.keys(s.range).length?(s.buffered=!0,(s.body.endList=n.endList||s.body.endList)&&(this.endListFragments[s.body.type]=s),xi(s)||this.removeParts(n.sn-1,n.type)):this.removeFragment(s.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=ki(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,c=e.end,h=e.minEndPTS||c,_=e.maxStartPTS||s;for(let S=0;S<r.length;S++){const R=r.start(S)-this.bufferPadding,re=r.end(S)+this.bufferPadding;if(_>=R&&h<=re){i.time.push({startPTS:Math.max(s,r.start(S)),endPTS:Math.min(c,r.end(S))});break}else if(s<re&&c>R){const be=Math.max(s,r.start(S)),me=Math.min(c,r.end(S));me>be&&(i.partial=!0,i.time.push({startPTS:be,endPTS:me}))}else if(c<=R)break}return i}getPartialFragment(e){let t=null,n,r,i,s=0;const{bufferPadding:c,fragments:h}=this;return Object.keys(h).forEach(_=>{const S=h[_];S&&xi(S)&&(r=S.body.start-c,i=S.body.end+c,e>=r&&e<=i&&(n=Math.min(e-r,i-e),s<=n&&(t=S.body,s=n)))}),t}isEndListAppended(e){const t=this.endListFragments[e];return t!==void 0&&(t.buffered||xi(t))}getState(e){const t=ki(e),n=this.fragments[t];return n?n.buffered?xi(n)?Br.PARTIAL:Br.OK:Br.APPENDING:Br.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}onFragLoaded(e,t){const{frag:n,part:r}=t;if(n.sn==="initSegment"||n.bitrateTest)return;const i=r?null:t,s=ki(n);this.fragments[s]={body:n,appendedPTS:null,loaded:i,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:n,part:r,timeRanges:i}=t;if(n.sn==="initSegment")return;const s=n.type;if(r){let c=this.activePartLists[s];c||(this.activePartLists[s]=c=[]),c.push(r)}this.timeRanges=i,Object.keys(i).forEach(c=>{const h=i[c];this.detectEvictedFragments(c,h,s,r)})}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=ki(e);return!!this.fragments[t]}hasParts(e){var t;return!!((t=this.activePartLists[e])!=null&&t.length)}removeFragmentsInRange(e,t,n,r,i){r&&!this.hasGaps||Object.keys(this.fragments).forEach(s=>{const c=this.fragments[s];if(!c)return;const h=c.body;h.type!==n||r&&!h.gap||h.start<t&&h.end>e&&(c.buffered||i)&&this.removeFragment(h)})}removeFragment(e){const t=ki(e);e.stats.loaded=0,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(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1}}function xi(o){var e,t,n;return o.buffered&&(o.body.gap||((e=o.range.video)==null?void 0:e.partial)||((t=o.range.audio)==null?void 0:t.partial)||((n=o.range.audiovideo)==null?void 0:n.partial))}function ki(o){return`${o.type}_${o.level}_${o.sn}`}const zi={length:0,start:()=>0,end:()=>0};class Ur{static isBuffered(e,t){try{if(e){const n=Ur.getBuffered(e);for(let r=0;r<n.length;r++)if(t>=n.start(r)&&t<=n.end(r))return!0}}catch(n){}return!1}static bufferInfo(e,t,n){try{if(e){const r=Ur.getBuffered(e),i=[];let s;for(s=0;s<r.length;s++)i.push({start:r.start(s),end:r.end(s)});return this.bufferedInfo(i,t,n)}}catch(r){}return{len:0,start:t,end:t,nextStart:void 0}}static bufferedInfo(e,t,n){t=Math.max(0,t),e.sort(function(_,S){const R=_.start-S.start;return R||S.end-_.end});let r=[];if(n)for(let _=0;_<e.length;_++){const S=r.length;if(S){const R=r[S-1].end;e[_].start-R<n?e[_].end>R&&(r[S-1].end=e[_].end):r.push(e[_])}else r.push(e[_])}else r=e;let i=0,s,c=t,h=t;for(let _=0;_<r.length;_++){const S=r[_].start,R=r[_].end;if(t+n>=S&&t<R)c=S,h=R,i=h-t;else if(t+n<S){s=S;break}}return{len:i,start:c||0,end:h||0,nextStart:s}}static getBuffered(e){try{return e.buffered}catch(t){return x.log("failed to get media.buffered",t),zi}}}class ga{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=Di(),this.buffering={audio:Di(),video:Di(),audiovideo:Di()},this.level=e,this.sn=t,this.id=n,this.size=r,this.part=i,this.partial=s}}function Di(){return{start:0,executeStart:0,executeEnd:0,end:0}}function ca(o,e){for(let n=0,r=o.length;n<r;n++){var t;if(((t=o[n])==null?void 0:t.cc)===e)return o[n]}return null}function es(o,e,t){return!!(e&&(t.endCC>t.startCC||o&&o.cc<t.startCC))}function va(o,e){const t=o.fragments,n=e.fragments;if(!n.length||!t.length){x.log("No fragments to align");return}const r=ca(t,n[0].cc);if(!r||r&&!r.startPTS){x.log("No frag in previous level to align on");return}return r}function ya(o,e){if(o){const t=o.start+e;o.start=o.startPTS=t,o.endPTS=t+o.duration}}function ba(o,e){const t=e.fragments;for(let n=0,r=t.length;n<r;n++)ya(t[n],o);e.fragmentHint&&ya(e.fragmentHint,o),e.alignedSliding=!0}function Aa(o,e,t){e&&(Ma(o,t,e),!t.alignedSliding&&e&&Ui(t,e),!t.alignedSliding&&e&&!t.skippedSegments&&mr(e,t))}function Ma(o,e,t){if(es(o,t,e)){const n=va(t,e);n&&A(n.start)&&(x.log(`Adjusting PTS using last level due to CC increase within current level ${e.url}`),ba(n.start,e))}}function Ui(o,e){if(!o.hasProgramDateTime||!e.hasProgramDateTime)return;const t=o.fragments,n=e.fragments;if(!t.length||!n.length)return;let r,i;const s=Math.min(e.endCC,o.endCC);e.startCC<s&&o.startCC<s&&(r=ca(n,s),i=ca(t,s)),(!r||!i)&&(r=n[Math.floor(n.length/2)],i=ca(t,r.cc)||t[Math.floor(t.length/2)]);const c=r.programDateTime,h=i.programDateTime;if(!c||!h)return;const _=(h-c)/1e3-(i.start-r.start);ba(_,o)}const Da=Math.pow(2,17);class Kr{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 li({type:y.NETWORK_ERROR,details:b.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error(`Fragment does not have a ${n?"part list":"url"}`),networkDetails:null}));this.abort();const r=this.config,i=r.fLoader,s=r.loader;return new Promise((c,h)=>{if(this.loader&&this.loader.destroy(),e.gap)if(e.tagList.some(be=>be[0]==="GAP")){h(Nr(e));return}else e.gap=!1;const _=this.loader=e.loader=i?new i(r):new s(r),S=$r(e),R=Pr(r.fragLoadPolicy.default),re={loadPolicy:R,timeout:R.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:Da};e.stats=_.stats,_.load(S,re,{onSuccess:(be,me,Se,Me)=>{this.resetLoader(e,_);let qe=be.data;Se.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(qe.slice(0,16)),qe=qe.slice(16)),c({frag:e,part:null,payload:qe,networkDetails:Me})},onError:(be,me,Se,Me)=>{this.resetLoader(e,_),h(new li({type:y.NETWORK_ERROR,details:b.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:j({url:n,data:void 0},be),error:new Error(`HTTP Error ${be.code} ${be.text}`),networkDetails:Se,stats:Me}))},onAbort:(be,me,Se)=>{this.resetLoader(e,_),h(new li({type:y.NETWORK_ERROR,details:b.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:Se,stats:be}))},onTimeout:(be,me,Se)=>{this.resetLoader(e,_),h(new li({type:y.NETWORK_ERROR,details:b.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${re.timeout}ms`),networkDetails:Se,stats:be}))},onProgress:(be,me,Se,Me)=>{t&&t({frag:e,part:null,payload:Se,networkDetails:Me})}})})}loadPart(e,t,n){this.abort();const r=this.config,i=r.fLoader,s=r.loader;return new Promise((c,h)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap){h(Nr(e,t));return}const _=this.loader=e.loader=i?new i(r):new s(r),S=$r(e,t),R=Pr(r.fragLoadPolicy.default),re={loadPolicy:R,timeout:R.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:Da};t.stats=_.stats,_.load(S,re,{onSuccess:(be,me,Se,Me)=>{this.resetLoader(e,_),this.updateStatsFromPart(e,t);const qe={frag:e,part:t,payload:be.data,networkDetails:Me};n(qe),c(qe)},onError:(be,me,Se,Me)=>{this.resetLoader(e,_),h(new li({type:y.NETWORK_ERROR,details:b.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:j({url:S.url,data:void 0},be),error:new Error(`HTTP Error ${be.code} ${be.text}`),networkDetails:Se,stats:Me}))},onAbort:(be,me,Se)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,_),h(new li({type:y.NETWORK_ERROR,details:b.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:Se,stats:be}))},onTimeout:(be,me,Se)=>{this.resetLoader(e,_),h(new li({type:y.NETWORK_ERROR,details:b.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${re.timeout}ms`),networkDetails:Se,stats:be}))}})})}updateStatsFromPart(e,t){const n=e.stats,r=t.stats,i=r.total;if(n.loaded+=r.loaded,i){const h=Math.round(e.duration/t.duration),_=Math.min(Math.round(n.loaded/i),h),R=(h-_)*Math.round(n.loaded/_);n.total=n.loaded+R}else n.total=Math.max(n.loaded,n.total);const s=n.loading,c=r.loading;s.start?s.first+=c.first-c.start:(s.start=c.start,s.first=c.first),s.end=c.end}resetLoader(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function $r(o,e=null){const t=e||o,n={frag:o,part:e,responseType:"arraybuffer",url:t.url,headers:{},rangeStart:0,rangeEnd:0},r=t.byteRangeStartOffset,i=t.byteRangeEndOffset;if(A(r)&&A(i)){var s;let c=r,h=i;if(o.sn==="initSegment"&&((s=o.decryptdata)==null?void 0:s.method)==="AES-128"){const _=i-r;_%16&&(h=i+(16-_%16)),r!==0&&(n.resetIV=!0,c=r-16)}n.rangeStart=c,n.rangeEnd=h}return n}function Nr(o,e){const t=new Error(`GAP ${o.gap?"tag":"attribute"} found`),n={type:y.MEDIA_ERROR,details:b.FRAG_GAP,fatal:!1,frag:o,error:t,networkDetails:null};return e&&(n.part=e),(e||o).stats.aborted=!0,new li(n)}class li extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class ci{constructor(e,t){this.subtle=void 0,this.aesIV=void 0,this.subtle=e,this.aesIV=t}decrypt(e,t){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e)}}class da{constructor(e,t){this.subtle=void 0,this.key=void 0,this.subtle=e,this.key=t}expandKey(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])}}function Ra(o){const e=o.byteLength,t=e&&new DataView(o.buffer).getUint8(e-1);return t?te(o,0,e-t):o}class Na{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],c=n[3],h=this.invSubMix,_=h[0],S=h[1],R=h[2],re=h[3],be=new Uint32Array(256);let me=0,Se=0,Me=0;for(Me=0;Me<256;Me++)Me<128?be[Me]=Me<<1:be[Me]=Me<<1^283;for(Me=0;Me<256;Me++){let qe=Se^Se<<1^Se<<2^Se<<3^Se<<4;qe=qe>>>8^qe&255^99,e[me]=qe,t[qe]=me;const Et=be[me],wt=be[Et],an=be[wt];let Rt=be[qe]*257^qe*16843008;r[me]=Rt<<24|Rt>>>8,i[me]=Rt<<16|Rt>>>16,s[me]=Rt<<8|Rt>>>24,c[me]=Rt,Rt=an*16843009^wt*65537^Et*257^me*16843008,_[qe]=Rt<<24|Rt>>>8,S[qe]=Rt<<16|Rt>>>16,R[qe]=Rt<<8|Rt>>>24,re[qe]=Rt,me?(me=Et^be[be[be[an^Et]]],Se^=be[be[Se]]):me=Se=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 c,h;const _=this.keySchedule=new Uint32Array(s),S=this.invKeySchedule=new Uint32Array(s),R=this.sBox,re=this.rcon,be=this.invSubMix,me=be[0],Se=be[1],Me=be[2],qe=be[3];let Et,wt;for(c=0;c<s;c++){if(c<i){Et=_[c]=t[c];continue}wt=Et,c%i===0?(wt=wt<<8|wt>>>24,wt=R[wt>>>24]<<24|R[wt>>>16&255]<<16|R[wt>>>8&255]<<8|R[wt&255],wt^=re[c/i|0]<<24):i>6&&c%i===4&&(wt=R[wt>>>24]<<24|R[wt>>>16&255]<<16|R[wt>>>8&255]<<8|R[wt&255]),_[c]=Et=(_[c-i]^wt)>>>0}for(h=0;h<s;h++)c=s-h,h&3?wt=_[c]:wt=_[c-4],h<4||c<=4?S[h]=wt:S[h]=me[R[wt>>>24]]^Se[R[wt>>>16&255]]^Me[R[wt>>>8&255]]^qe[R[wt&255]],S[h]=S[h]>>>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,c=this.invSubMix,h=c[0],_=c[1],S=c[2],R=c[3],re=this.uint8ArrayToUint32Array_(n);let be=re[0],me=re[1],Se=re[2],Me=re[3];const qe=new Int32Array(e),Et=new Int32Array(qe.length);let wt,an,Rt,_n,Yt,kn,Yn,vn,Mn,Cr,Jn,Er,xr,fr;const Hr=this.networkToHostOrderSwap;for(;t<qe.length;){for(Mn=Hr(qe[t]),Cr=Hr(qe[t+1]),Jn=Hr(qe[t+2]),Er=Hr(qe[t+3]),Yt=Mn^i[0],kn=Er^i[1],Yn=Jn^i[2],vn=Cr^i[3],xr=4,fr=1;fr<r;fr++)wt=h[Yt>>>24]^_[kn>>16&255]^S[Yn>>8&255]^R[vn&255]^i[xr],an=h[kn>>>24]^_[Yn>>16&255]^S[vn>>8&255]^R[Yt&255]^i[xr+1],Rt=h[Yn>>>24]^_[vn>>16&255]^S[Yt>>8&255]^R[kn&255]^i[xr+2],_n=h[vn>>>24]^_[Yt>>16&255]^S[kn>>8&255]^R[Yn&255]^i[xr+3],Yt=wt,kn=an,Yn=Rt,vn=_n,xr=xr+4;wt=s[Yt>>>24]<<24^s[kn>>16&255]<<16^s[Yn>>8&255]<<8^s[vn&255]^i[xr],an=s[kn>>>24]<<24^s[Yn>>16&255]<<16^s[vn>>8&255]<<8^s[Yt&255]^i[xr+1],Rt=s[Yn>>>24]<<24^s[vn>>16&255]<<16^s[Yt>>8&255]<<8^s[kn&255]^i[xr+2],_n=s[vn>>>24]<<24^s[Yt>>16&255]<<16^s[kn>>8&255]<<8^s[Yn&255]^i[xr+3],Et[t]=Hr(wt^be),Et[t+1]=Hr(_n^me),Et[t+2]=Hr(Rt^Se),Et[t+3]=Hr(an^Me),be=Mn,me=Cr,Se=Jn,Me=Er,t=t+4}return Et.buffer}}const Fa=16;class fa{constructor(e,{removePKCS7Padding:t=!0}={}){if(this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.useSoftware=e.enableSoftwareAES,this.removePKCS7Padding=t,t)try{const 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?Ra(n):n}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,n){return this.useSoftware?new Promise((r,i)=>{this.softwareDecrypt(new Uint8Array(e),t,n);const s=this.flush();s?r(s.buffer):i(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(e),t,n)}softwareDecrypt(e,t,n){const{currentIV:r,currentResult:i,remainderData:s}=this;this.logOnce("JS AES decrypt"),s&&(e=It(s,e),this.remainderData=null);const c=this.getValidChunk(e);if(!c.length)return null;r&&(n=r);let h=this.softwareDecrypter;h||(h=this.softwareDecrypter=new Na),h.expandKey(t);const _=i;return this.currentResult=h.decrypt(c.buffer,0,n),this.currentIV=te(c,-16).buffer,_||null}webCryptoDecrypt(e,t,n){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,n));this.key=t,this.fastAesKey=new da(this.subtle,t)}return this.fastAesKey.expandKey().then(r=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new ci(this.subtle,new Uint8Array(n)).decrypt(e.buffer,r)):Promise.reject(new Error("web crypto not initialized"))).catch(r=>(x.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${r.name}: ${r.message}`),this.onWebCryptoError(e,t,n)))}onWebCryptoError(e,t,n){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,n);const r=this.flush();if(r)return r.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")}getValidChunk(e){let t=e;const n=e.length-e.length%Fa;return n!==e.length&&(t=te(e,0,n),this.remainderData=te(e,n)),t}logOnce(e){this.logEnabled&&(x.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const na={toString:function(o){let e="";const t=o.length;for(let n=0;n<t;n++)e+=`[${o.start(n).toFixed(3)}-${o.end(n).toFixed(3)}]`;return e}},hn={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"};class _a extends Ci{constructor(e,t,n,r,i){super(),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=hn.STOPPED,this.playlistType=void 0,this.media=null,this.mediaBuffer=null,this.config=void 0,this.bitrateTest=!1,this.lastCurrentTime=0,this.nextLoadPosition=0,this.startPosition=0,this.startTimeOffset=null,this.loadedmetadata=!1,this.retryDate=0,this.levels=null,this.fragmentLoader=void 0,this.keyLoader=void 0,this.levelLastLoaded=null,this.startFragRequested=!1,this.decrypter=void 0,this.initPTS=[],this.buffering=!0,this.onvseeking=null,this.onvended=null,this.logPrefix="",this.log=void 0,this.warn=void 0,this.playlistType=i,this.logPrefix=r,this.log=x.log.bind(x,`${r}:`),this.warn=x.warn.bind(x,`${r}:`),this.hls=e,this.fragmentLoader=new Kr(e.config),this.keyLoader=n,this.fragmentTracker=t,this.config=e.config,this.decrypter=new fa(e.config),e.on(u.MANIFEST_LOADED,this.onManifestLoaded,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const e=this.fragCurrent;e!=null&&e.loader&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=hn.STOPPED}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}_streamEnded(e,t){if(t.live||e.nextStart||!e.end||!this.media)return!1;const n=t.partList;if(n!=null&&n.length){const i=n[n.length-1];return Ur.isBuffered(this.media,i.start+i.duration/2)}const r=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(r)}getLevelDetails(){if(this.levels&&this.levelLastLoaded!==null){var e;return(e=this.levelLastLoaded)==null?void 0:e.details}}onMediaAttached(e,t){const n=this.media=this.mediaBuffer=t.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),n.addEventListener("seeking",this.onvseeking),n.addEventListener("ended",this.onvended);const r=this.config;this.levels&&r.autoStartLoad&&this.state===hn.STOPPED&&this.startLoad(r.startPosition)}onMediaDetaching(){const e=this.media;e!=null&&e.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),e&&this.onvseeking&&this.onvended&&(e.removeEventListener("seeking",this.onvseeking),e.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.keyLoader&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}onMediaSeeking(){const{config:e,fragCurrent:t,media:n,mediaBuffer:r,state:i}=this,s=n?n.currentTime:0,c=Ur.bufferInfo(r||n,s,e.maxBufferHole);if(this.log(`media seeking to ${A(s)?s.toFixed(3):s}, state: ${i}`),this.state===hn.ENDED)this.resetLoadingState();else if(t){const h=e.maxFragLookUpTolerance,_=t.start-h,S=t.start+t.duration+h;if(!c.len||S<c.start||_>c.end){const R=s>S;(s<_||R)&&(R&&t.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),t.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}n&&(this.fragmentTracker.removeFragmentsInRange(s,1/0,this.playlistType,!0),this.lastCurrentTime=s),!this.loadedmetadata&&!c.len&&(this.nextLoadPosition=this.startPosition=s),this.tickImmediate()}onMediaEnded(){this.startPosition=this.lastCurrentTime=0}onManifestLoaded(e,t){this.startTimeOffset=t.startTimeOffset,this.initPTS=[]}onHandlerDestroying(){this.hls.off(u.MANIFEST_LOADED,this.onManifestLoaded,this),this.stopLoad(),super.onHandlerDestroying(),this.hls=null}onHandlerDestroyed(){this.state=hn.STOPPED,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,super.onHandlerDestroyed()}loadFragment(e,t,n){this._loadFragForPlayback(e,t,n)}_loadFragForPlayback(e,t,n){const r=i=>{if(this.fragContextChanged(e)){this.warn(`Fragment ${e.sn}${i.part?" p: "+i.part.index:""} of level ${e.level} was dropped during download.`),this.fragmentTracker.removeFragment(e);return}e.stats.chunkCount++,this._handleFragmentLoadProgress(i)};this._doFragLoad(e,t,n,r).then(i=>{if(!i)return;const s=this.state;if(this.fragContextChanged(e)){(s===hn.FRAG_LOADING||!this.fragCurrent&&s===hn.PARSING)&&(this.fragmentTracker.removeFragment(e),this.state=hn.IDLE);return}"payload"in i&&(this.log(`Loaded fragment ${e.sn} of level ${e.level}`),this.hls.trigger(u.FRAG_LOADED,i)),this._handleFragmentLoadComplete(i)}).catch(i=>{this.state===hn.STOPPED||this.state===hn.ERROR||(this.warn(`Frag error: ${(i==null?void 0:i.message)||i}`),this.resetFragmentLoading(e))})}clearTrackerIfNeeded(e){var t;const{fragmentTracker:n}=this;if(n.getState(e)===Br.APPENDING){const i=e.type,s=this.getFwdBufferInfo(this.mediaBuffer,i),c=Math.max(e.duration,s?s.len:this.config.maxBufferLength),h=this.backtrackFragment;((h?e.sn-h.sn:0)===1||this.reduceMaxBufferLength(c,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)===Br.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)}flushMainBuffer(e,t,n=null){if(!(e-t))return;const r={startOffset:e,endOffset:t,type:n};this.hls.trigger(u.BUFFER_FLUSHING,r)}_loadInitSegment(e,t){this._doFragLoad(e,t).then(n=>{if(!n||this.fragContextChanged(e)||!this.levels)throw new Error("init load aborted");return n}).then(n=>{const{hls:r}=this,{payload:i}=n,s=e.decryptdata;if(i&&i.byteLength>0&&s!=null&&s.key&&s.iv&&s.method==="AES-128"){const c=self.performance.now();return this.decrypter.decrypt(new Uint8Array(i),s.key.buffer,s.iv.buffer).catch(h=>{throw r.trigger(u.ERROR,{type:y.MEDIA_ERROR,details:b.FRAG_DECRYPT_ERROR,fatal:!1,error:h,reason:h.message,frag:e}),h}).then(h=>{const _=self.performance.now();return r.trigger(u.FRAG_DECRYPTED,{frag:e,payload:h,stats:{tstart:c,tdecrypt:_}}),n.payload=h,this.completeInitSegmentLoad(n)})}return this.completeInitSegmentLoad(n)}).catch(n=>{this.state===hn.STOPPED||this.state===hn.ERROR||(this.warn(n),this.resetFragmentLoading(e))})}completeInitSegmentLoad(e){const{levels:t}=this;if(!t)throw new Error("init load aborted, missing levels");const n=e.frag.stats;this.state=hn.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){var n,r,i,s;const c=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.playlistType===Ke.MAIN?"level":"track"} ${e.level} (frag:[${((n=e.startPTS)!=null?n:NaN).toFixed(3)}-${((r=e.endPTS)!=null?r:NaN).toFixed(3)}] > buffer:${c?na.toString(Ur.getBuffered(c)):"(detached)"})`),e.sn!=="initSegment"){var h;if(e.type!==Ke.SUBTITLE){const S=e.elementaryStreams;if(!Object.keys(S).some(R=>!!S[R])){this.state=hn.IDLE;return}}const _=(h=this.levels)==null?void 0:h[e.level];_!=null&&_.fragmentError&&(this.log(`Resetting level fragment error count of ${_.fragmentError} on frag buffered`),_.fragmentError=0)}this.state=hn.IDLE,c&&(!this.loadedmetadata&&e.type==Ke.MAIN&&c.buffered.length&&((i=this.fragCurrent)==null?void 0:i.sn)===((s=this.fragPrevious)==null?void 0:s.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick())}seekToStartPos(){}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const{frag:n,part:r,partsLoaded:i}=e,s=!i||i.length===0||i.some(h=>!h),c=new ga(n.level,n.sn,n.stats.chunkCount+1,0,r?r.index:-1,!s);t.flush(c)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,n=null,r){var i;const s=t==null?void 0:t.details;if(!this.levels||!s)throw new Error(`frag load aborted, missing level${s?"":" detail"}s`);let c=null;if(e.encrypted&&!((i=e.decryptdata)!=null&&i.key)?(this.log(`Loading key for ${e.sn} of [${s.startSN}-${s.endSN}], ${this.logPrefix==="[stream-controller]"?"level":"track"} ${e.level}`),this.state=hn.KEY_LOADING,this.fragCurrent=e,c=this.keyLoader.load(e).then(S=>{if(!this.fragContextChanged(S.frag))return this.hls.trigger(u.KEY_LOADED,S),this.state===hn.KEY_LOADING&&(this.state=hn.IDLE),S}),this.hls.trigger(u.KEY_LOADING,{frag:e}),this.fragCurrent===null&&(c=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))):!e.encrypted&&s.encryptedFragments.length&&this.keyLoader.loadClear(e,s.encryptedFragments),n=Math.max(e.start,n||0),this.config.lowLatencyMode&&e.sn!=="initSegment"){const S=s.partList;if(S&&r){n>e.end&&s.fragmentHint&&(e=s.fragmentHint);const R=this.getNextPart(S,e,n);if(R>-1){const re=S[R];this.log(`Loading part sn: ${e.sn} p: ${re.index} cc: ${e.cc} of playlist [${s.startSN}-${s.endSN}] parts [0-${R}-${S.length-1}] ${this.logPrefix==="[stream-controller]"?"level":"track"}: ${e.level}, target: ${parseFloat(n.toFixed(3))}`),this.nextLoadPosition=re.start+re.duration,this.state=hn.FRAG_LOADING;let be;return c?be=c.then(me=>!me||this.fragContextChanged(me.frag)?null:this.doFragPartsLoad(e,re,t,r)).catch(me=>this.handleFragLoadError(me)):be=this.doFragPartsLoad(e,re,t,r).catch(me=>this.handleFragLoadError(me)),this.hls.trigger(u.FRAG_LOADING,{frag:e,part:re,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):be}else if(!e.url||this.loadedEndOfParts(S,n))return Promise.resolve(null)}}this.log(`Loading fragment ${e.sn} cc: ${e.cc} ${s?"of ["+s.startSN+"-"+s.endSN+"] ":""}${this.logPrefix==="[stream-controller]"?"level":"track"}: ${e.level}, target: ${parseFloat(n.toFixed(3))}`),A(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=hn.FRAG_LOADING;const h=this.config.progressive;let _;return h&&c?_=c.then(S=>!S||this.fragContextChanged(S==null?void 0:S.frag)?null:this.fragmentLoader.load(e,r)).catch(S=>this.handleFragLoadError(S)):_=Promise.all([this.fragmentLoader.load(e,h?r:void 0),c]).then(([S])=>(!h&&S&&r&&r(S),S)).catch(S=>this.handleFragLoadError(S)),this.hls.trigger(u.FRAG_LOADING,{frag:e,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):_}doFragPartsLoad(e,t,n,r){return new Promise((i,s)=>{var c;const h=[],_=(c=n.details)==null?void 0:c.partList,S=R=>{this.fragmentLoader.loadPart(e,R,r).then(re=>{h[R.index]=re;const be=re.part;this.hls.trigger(u.FRAG_LOADED,re);const me=Rn(n,e.sn,R.index+1)||Nn(_,e.sn,R.index+1);if(me)S(me);else return i({frag:e,part:be,partsLoaded:h})}).catch(s)};S(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;e.data&&t.details===b.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(u.ERROR,t)}else this.hls.trigger(u.ERROR,{type:y.OTHER_ERROR,details:b.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==hn.PARSING){!this.fragCurrent&&this.state!==hn.STOPPED&&this.state!==hn.ERROR&&(this.state=hn.IDLE);return}const{frag:n,part:r,level:i}=t,s=self.performance.now();n.stats.parsing.end=s,r&&(r.stats.parsing.end=s),this.updateLevelTiming(n,r,i,e.partial)}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 level ${r}. The current chunk will not be buffered.`),null;const c=t[r],h=s>-1?Rn(c,i,s):null,_=h?h.fragment:vr(c,i,n);return _?(n&&n!==_&&(_.stats=n.stats),{frag:_,part:h,level:c}):null}bufferFragmentData(e,t,n,r,i){var s;if(!e||this.state!==hn.PARSING)return;const{data1:c,data2:h}=e;let _=c;if(c&&h&&(_=It(c,h)),!((s=_)!=null&&s.length))return;const S={type:e.type,frag:t,part:n,chunkMeta:r,parent:t.type,data:_};if(this.hls.trigger(u.BUFFER_APPENDING,S),e.dropped&&e.independent&&!n){if(i)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!Ur.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const n=t.currentTime,r=Ur.bufferInfo(t,n,0),i=e.duration,s=Math.min(this.config.maxFragLookUpTolerance*2,i*.25),c=Math.max(Math.min(e.start-s,r.end-s),n+s);e.start-c>s&&this.flushMainBuffer(c,e.start)}getFwdBufferInfo(e,t){const n=this.getLoadPosition();return A(n)?this.getFwdBufferInfoAtPos(e,n,t):null}getFwdBufferInfoAtPos(e,t,n){const{config:{maxBufferHole:r}}=this,i=Ur.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)return Ur.bufferInfo(e,t,Math.max(i.nextStart,r))}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=Ke.MAIN){const n=this.fragmentTracker.getAppendedFrag(e,Ke.MAIN);return n&&"fragment"in n?n.fragment:n}getNextFragment(e,t){const n=t.fragments,r=n.length;if(!r)return null;const{config:i}=this,s=n[0].start;let c;if(t.live){const h=i.initialLiveManifestSize;if(r<h)return this.warn(`Not enough fragments to start playback (have: ${r}, need: ${h})`),null;(!t.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||e<s)&&(c=this.getInitialLiveFragment(t,n),this.startPosition=this.nextLoadPosition=c?this.hls.liveSyncPosition||c.start:e)}else e<=s&&(c=n[0]);if(!c){const h=i.lowLatencyMode?t.partEnd:t.fragmentEnd;c=this.getFragmentAtPosition(e,h,t)}return this.mapToInitFragWhenRequired(c)}isLoopLoading(e,t){const n=this.fragmentTracker.getState(e);return(n===Br.OK||n===Br.PARTIAL&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,n,r,i){const s=e.gap,c=this.getNextFragment(this.nextLoadPosition,t);if(c===null)return c;if(e=c,s&&e&&!e.gap&&n.nextStart){const h=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,n.nextStart,r);if(h!==null&&n.len+h.len>=i)return this.log(`buffer full after gaps in "${r}" playlist starting at sn: ${e.sn}`),null}return e}mapToInitFragWhenRequired(e){return e!=null&&e.initSegment&&!(e!=null&&e.initSegment.data)&&!this.bitrateTest?e.initSegment:e}getNextPart(e,t,n){let r=-1,i=!1,s=!0;for(let c=0,h=e.length;c<h;c++){const _=e[c];if(s=s&&!_.independent,r>-1&&n<_.start)break;const S=_.loaded;S?r=-1:(i||_.independent||s)&&_.fragment===t&&(r=c),i=S}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=ui(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=jn(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:c}=n;const{fragmentHint:h}=n,{maxFragLookUpTolerance:_}=r,S=n.partList,R=!!(r.lowLatencyMode&&S!=null&&S.length&&h);R&&h&&!this.bitrateTest&&(s=s.concat(h),c=h.sn);let re;if(e<t){const be=e>t-_?0:_;re=Yr(i,s,e,be)}else re=s[s.length-1];if(re){const be=re.sn-n.startSN,me=this.fragmentTracker.getState(re);if((me===Br.OK||me===Br.PARTIAL&&re.gap)&&(i=re),i&&re.sn===i.sn&&(!R||S[0].fragment.sn>re.sn)&&i&&re.level===i.level){const Me=s[be+1];re.sn<c&&this.fragmentTracker.getState(Me)!==Br.OK?re=Me:re=null}}return re}synchronizeToLiveEdge(e){const{config:t,media:n}=this;if(!n)return;const r=this.hls.liveSyncPosition,i=n.currentTime,s=e.fragments[0].start,c=e.edge,h=i>=s-t.maxFragLookUpTolerance&&i<=c;if(r!==null&&n.duration>r&&(i<r||!h)){const _=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;(!h&&n.readyState<4||i<c-_)&&(this.loadedmetadata||(this.nextLoadPosition=r),n.readyState&&(this.warn(`Playback: ${i.toFixed(3)} is located too far from the end of live sliding playlist: ${c}, reset currentTime to : ${r.toFixed(3)}`),n.currentTime=r))}}alignPlaylists(e,t,n){const r=e.fragments.length;if(!r)return this.warn("No fragments in live playlist"),0;const i=e.fragments[0].start,s=!t,c=e.alignedSliding&&A(i);if(s||!c&&!i){const{fragPrevious:h}=this;Aa(h,n,e);const _=e.fragments[0].start;return this.log(`Live playlist sliding: ${_.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} prev-sn: ${h?h.sn:"na"} fragments: ${r}`),_}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;if(n<t&&(n=-1),n===-1||this.lastCurrentTime===-1){const r=this.startTimeOffset!==null,i=r?this.startTimeOffset:e.startTimeOffset;i!==null&&A(i)?(n=t+i,i<0&&(n+=e.totalduration),n=Math.min(Math.max(t,n),t+e.totalduration),this.log(`Start time offset ${i} found in ${r?"multivariant":"media"} playlist, adjust startPosition to ${n}`),this.startPosition=n):e.live?n=this.hls.liveSyncPosition||t:this.startPosition=n=0,this.lastCurrentTime=n}this.nextLoadPosition=n}getLoadPosition(){const{media:e}=this;let t=0;return this.loadedmetadata&&e?t=e.currentTime:this.nextLoadPosition&&(t=this.nextLoadPosition),t}handleFragLoadAborted(e,t){this.transmuxer&&e.sn!=="initSegment"&&e.stats.aborted&&(this.warn(`Fragment ${e.sn}${t?" part "+t.index:""} of level ${e.level} was aborted`),this.resetFragmentLoading(e))}resetFragmentLoading(e){(!this.fragCurrent||!this.fragContextChanged(e)&&this.state!==hn.FRAG_LOADING_WAITING_RETRY)&&(this.state=hn.IDLE)}onFragmentOrKeyLoadError(e,t){if(t.chunkMeta&&!t.frag){const S=this.getCurrentContext(t.chunkMeta);S&&(t.frag=S.frag)}const n=t.frag;if(!n||n.type!==e||!this.levels)return;if(this.fragContextChanged(n)){var r;this.warn(`Frag load error must match current frag to retry ${n.url} > ${(r=this.fragCurrent)==null?void 0:r.url}`);return}const i=t.details===b.FRAG_GAP;i&&this.fragmentTracker.fragBuffered(n,!0);const s=t.errorAction,{action:c,retryCount:h=0,retryConfig:_}=s||{};if(s&&c===Zn.RetryRequest&&_){this.resetStartWhenNotLoaded(this.levelLastLoaded);const S=lr(_,h);this.warn(`Fragment ${n.sn} of ${e} ${n.level} errored with ${t.details}, retrying loading ${h+1}/${_.maxNumRetry} in ${S}ms`),s.resolved=!0,this.retryDate=self.performance.now()+S,this.state=hn.FRAG_LOADING_WAITING_RETRY}else if(_&&s)if(this.resetFragmentErrors(e),h<_.maxNumRetry)!i&&c!==Zn.RemoveAlternatePermanently&&(s.resolved=!0);else{x.warn(`${t.details} reached or exceeded max retry (${h})`);return}else(s==null?void 0:s.action)===Zn.SendAlternateToPenaltyBox?this.state=hn.WAITING_LEVEL:this.state=hn.ERROR;this.tickImmediate()}reduceLengthAndFlushBuffer(e){if(this.state===hn.PARSING||this.state===hn.PARSED){const t=e.frag,n=e.parent,r=this.getFwdBufferInfo(this.mediaBuffer,n),i=r&&r.len>.5;i&&this.reduceMaxBufferLength(r.len,(t==null?void 0:t.duration)||10);const s=!i;return s&&this.warn(`Buffer full error while media.currentTime is not buffered, flush ${n} buffer`),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),s}return!1}resetFragmentErrors(e){e===Ke.AUDIO&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==hn.STOPPED&&(this.state=hn.IDLE)}afterBufferFlushed(e,t,n){if(!e)return;const r=Ur.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,r,n),this.state===hn.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=hn.IDLE}resetStartWhenNotLoaded(e){if(!this.loadedmetadata){this.startFragRequested=!1;const t=e?e.details:null;t!=null&&t.live?(this.startPosition=-1,this.setStartPosition(t,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(e){this.warn(`The loading context changed while buffering fragment ${e.sn} of level ${e.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState()}removeUnbufferedFrags(e=0){this.fragmentTracker.removeFragmentsInRange(e,1/0,this.playlistType,!1,!0)}updateLevelTiming(e,t,n,r){var i;const s=n.details;if(!s){this.warn("level.details undefined");return}if(!Object.keys(e.elementaryStreams).reduce((h,_)=>{const S=e.elementaryStreams[_];if(S){const R=S.endPTS-S.startPTS;if(R<=0)return this.warn(`Could not parse fragment ${e.sn} ${_} duration reliably (${R})`),h||!1;const re=r?0:si(s,e,S.startPTS,S.endPTS,S.startDTS,S.endDTS);return this.hls.trigger(u.LEVEL_PTS_UPDATED,{details:s,level:n,drift:re,type:_,frag:e,start:S.startPTS,end:S.endPTS}),!0}return h},!1)&&((i=this.transmuxer)==null?void 0:i.error)===null){const h=new Error(`Found no media in fragment ${e.sn} of level ${e.level} resetting transmuxer to fallback to playlist timing`);if(n.fragmentError===0&&(n.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)),this.warn(h.message),this.hls.trigger(u.ERROR,{type:y.MEDIA_ERROR,details:b.FRAG_PARSING_ERROR,fatal:!1,error:h,frag:e,reason:`Found no media in msn ${e.sn} of level "${n.url}"`}),!this.hls)return;this.resetTransmuxer()}this.state=hn.PARSED,this.hls.trigger(u.FRAG_PARSED,{frag:e,part:t})}resetTransmuxer(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)}recoverWorkerError(e){e.event==="demuxerWorker"&&(this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState())}set state(e){const t=this._state;t!==e&&(this._state=e,this.log(`${t}->${e}`))}get state(){return this._state}}class ts{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=bs(e,t);else return new Uint8Array(0);return this.reset(),n}reset(){this.chunks.length=0,this.dataLength=0}}function bs(o,e){const t=new Uint8Array(e);let n=0;for(let r=0;r<o.length;r++){const i=o[r];t.set(i,n),n+=i.length}return t}function _s(){return typeof __HLS_WORKER_BUNDLE__=="function"}function ns(){const o=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),e=self.URL.createObjectURL(o);return{worker:new self.Worker(e),objectURL:e}}function rs(o){const e=new self.URL(o,self.location.href).href;return{worker:new self.Worker(e),scriptURL:e}}function Zi(o="",e=9e4){return{type:o,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class Ba{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=It(this.cachedData,e),this.cachedData=null);let n=z(e,0),r=n?n.length:0,i;const s=this._audioTrack,c=this._id3Track,h=n?ae(n):void 0,_=e.length;for((this.basePTS===null||this.frameIndex===0&&A(h))&&(this.basePTS=xs(h,t,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),n&&n.length>0&&c.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:Vn.audioId3,duration:Number.POSITIVE_INFINITY});r<_;){if(this.canParse(e,r)){const S=this.appendFrame(s,e,r);S?(this.frameIndex++,this.lastPTS=S.sample.pts,r+=S.length,i=r):r=_}else O(e,r)?(n=z(e,r),c.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:Vn.audioId3,duration:Number.POSITIVE_INFINITY}),r+=n.length,i=r):r++;if(r===_&&i!==_){const S=te(e,i);this.cachedData?this.cachedData=It(this.cachedData,S):this.cachedData=S}}return{audioTrack:s,videoTrack:Zi(),id3Track:c,textTrack:Zi()}}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:Zi(),id3Track:this._id3Track,textTrack:Zi()}}destroy(){}}const xs=(o,e,t)=>{if(A(o))return o*90;const n=t?t.baseTime*9e4/t.timescale:0;return e*9e4+n};function Hs(o,e,t,n){let r,i,s,c;const h=navigator.userAgent.toLowerCase(),_=n,S=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];r=((e[t+2]&192)>>>6)+1;const R=(e[t+2]&60)>>>2;if(R>S.length-1){const re=new Error(`invalid ADTS sampling index:${R}`);o.emit(u.ERROR,u.ERROR,{type:y.MEDIA_ERROR,details:b.FRAG_PARSING_ERROR,fatal:!0,error:re,reason:re.message});return}return s=(e[t+2]&1)<<2,s|=(e[t+3]&192)>>>6,x.log(`manifest codec:${n}, ADTS type:${r}, samplingIndex:${R}`),/firefox/i.test(h)?R>=6?(r=5,c=new Array(4),i=R-3):(r=2,c=new Array(2),i=R):h.indexOf("android")!==-1?(r=2,c=new Array(2),i=R):(r=5,c=new Array(4),n&&(n.indexOf("mp4a.40.29")!==-1||n.indexOf("mp4a.40.5")!==-1)||!n&&R>=6?i=R-3:((n&&n.indexOf("mp4a.40.2")!==-1&&(R>=6&&s===1||/vivaldi/i.test(h))||!n&&s===1)&&(r=2,c=new Array(2)),i=R)),c[0]=r<<3,c[0]|=(R&14)>>1,c[1]|=(R&1)<<7,c[1]|=s<<3,r===5&&(c[1]|=(i&14)>>1,c[2]=(i&1)<<7,c[2]|=8,c[3]=0),{config:c,samplerate:S[R],channelCount:s,codec:"mp4a.40."+r,manifestCodec:_}}function $a(o,e){return o[e]===255&&(o[e+1]&246)===240}function is(o,e){return o[e+1]&1?7:9}function za(o,e){return(o[e+3]&3)<<11|o[e+4]<<3|(o[e+5]&224)>>>5}function Es(o,e){return e+5<o.length}function Xi(o,e){return e+1<o.length&&$a(o,e)}function Ia(o,e){return Es(o,e)&&$a(o,e)&&za(o,e)<=o.length-e}function Zs(o,e){if(Xi(o,e)){const t=is(o,e);if(e+t>=o.length)return!1;const n=za(o,e);if(n<=t)return!1;const r=e+n;return r===o.length||Xi(o,r)}return!1}function ws(o,e,t,n,r){if(!o.samplerate){const i=Hs(e,t,n,r);if(!i)return;o.config=i.config,o.samplerate=i.samplerate,o.channelCount=i.channelCount,o.codec=i.codec,o.manifestCodec=i.manifestCodec,x.log(`parsed codec:${o.codec}, rate:${i.samplerate}, channels:${i.channelCount}`)}}function as(o){return 1024*9e4/o}function js(o,e){const t=is(o,e);if(e+t<=o.length){const n=za(o,e)-t;if(n>0)return{headerLength:t,frameLength:n}}}function ss(o,e,t,n,r){const i=as(o.samplerate),s=n+r*i,c=js(e,t);let h;if(c){const{frameLength:R,headerLength:re}=c,be=re+R,me=Math.max(0,t+be-e.length);me?(h=new Uint8Array(be-re),h.set(e.subarray(t+re,e.length),0)):h=e.subarray(t+re,t+be);const Se={unit:h,pts:s};return me||o.samples.push(Se),{sample:Se,length:be,missing:me}}const _=e.length-t;return h=new Uint8Array(_),h.set(e.subarray(t,e.length),0),{sample:{unit:h,pts:s},length:_,missing:-1}}let La=null;const Ws=[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],Ss=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Gs=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Cs=[0,1,1,4];function Ua(o,e,t,n,r){if(t+24>e.length)return;const i=Ka(e,t);if(i&&t+i.frameLength<=e.length){const s=i.samplesPerFrame*9e4/i.sampleRate,c=n+r*s,h={unit:e.subarray(t,t+i.frameLength),pts:c,dts:c};return o.config=[],o.channelCount=i.channelCount,o.samplerate=i.sampleRate,o.samples.push(h),{sample:h,length:i.frameLength,missing:0}}}function Ka(o,e){const t=o[e+1]>>3&3,n=o[e+1]>>1&3,r=o[e+2]>>4&15,i=o[e+2]>>2&3;if(t!==1&&r!==0&&r!==15&&i!==3){const s=o[e+2]>>1&1,c=o[e+3]>>6,h=t===3?3-n:n===3?3:4,_=Ws[h*14+r-1]*1e3,R=Ss[(t===3?0:t===2?1:2)*3+i],re=c===3?1:2,be=Gs[t][n],me=Cs[n],Se=be*8*me,Me=Math.floor(be*_/R+s)*me;if(La===null){const wt=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);La=wt?parseInt(wt[1]):0}return!!La&&La<=87&&n===2&&_>=224e3&&c===0&&(o[e+3]=o[e+3]|128),{sampleRate:R,channelCount:re,frameLength:Me,samplesPerFrame:Se}}}function Ha(o,e){return o[e]===255&&(o[e+1]&224)===224&&(o[e+1]&6)!==0}function os(o,e){return e+1<o.length&&Ha(o,e)}function Ts(o,e){return Ha(o,e)&&4<=o.length-e}function As(o,e){if(e+1<o.length&&Ha(o,e)){const n=Ka(o,e);let r=4;n!=null&&n.frameLength&&(r=n.frameLength);const i=e+r;return i===o.length||os(o,i)}return!1}class Ds extends Ba{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){if(!e)return!1;const t=z(e,0);let n=(t==null?void 0:t.length)||0;if(As(e,n))return!1;for(let r=e.length;n<r;n++)if(Zs(e,n))return x.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return Ia(e,t)}appendFrame(e,t,n){ws(e,this.observer,t,n,e.manifestCodec);const r=ss(e,t,n,this.basePTS,this.frameIndex);if(r&&r.missing===0)return r}}const Rs=/\/emsg[-/]ID3/i;class Vs{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=Zi("video",1),s=this.audioTrack=Zi("audio",1),c=this.txtTrack=Zi("text",1);if(this.id3Track=Zi("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const h=Je(e);if(h.video){const{id:_,timescale:S,codec:R}=h.video;i.id=_,i.timescale=c.timescale=S,i.codec=R}if(h.audio){const{id:_,timescale:S,codec:R}=h.audio;s.id=_,s.timescale=S,s.codec=R}c.id=Ot.text,i.sampleDuration=0,i.duration=s.duration=r}resetContiguity(){this.remainderData=null}static probe(e){return mn(e)}demux(e,t){this.timeOffset=t;let n=e;const r=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=It(this.remainderData,e));const c=on(n);this.remainderData=c.remainder,r.samples=c.valid||new Uint8Array}else r.samples=n;const s=this.extractID3Track(r,t);return i.samples=Vt(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=Vt(e,t),{videoTrack:t,audioTrack:Zi(),id3Track:r,textTrack:Zi()}}extractID3Track(e,t){const n=this.id3Track;if(e.samples.length){const r=Fe(e.samples,["emsg"]);r&&r.forEach(i=>{const s=Ae(i);if(Rs.test(s.schemeIdUri)){const c=A(s.presentationTime)?s.presentationTime/s.timeScale:t+s.presentationTimeDelta/s.timeScale;let h=s.eventDuration===4294967295?Number.POSITIVE_INFINITY:s.eventDuration/s.timeScale;h<=.001&&(h=Number.POSITIVE_INFINITY);const _=s.payload;n.samples.push({data:_,len:_.byteLength,dts:c,pts:c,type:Vn.emsg,duration:h})}})}return n}demuxSampleAes(e,t,n){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){}}const xa=(o,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]=o[e];const c=Math.min(n,8),h=8-c;i[0]=4278190080>>>24+h<<h,r[0]=(s[0]&i[0])>>h,t=t?t<<c|r[0]:r[0],e+=1,n-=c}return t};class ls extends Ba{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=us(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=z(e,0);if(!t)return!1;const n=t.length;return e[n]===11&&e[n+1]===119&&ae(t)!==void 0&&xa(e,n)<16}}function us(o,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 c=[48e3,44100,32e3][i],h=e[t+4]&63,S=[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][h*3+i]*2;if(t+S>e.length)return-1;const R=e[t+6]>>5;let re=0;R===2?re+=2:(R&1&&R!==1&&(re+=2),R&4&&(re+=2));const be=(e[t+6]<<8|e[t+7])>>12-re&1,Se=[2,1,2,3,3,4,4,5][R]+be,Me=e[t+5]>>3,qe=e[t+5]&7,Et=new Uint8Array([i<<6|Me<<1|qe>>2,(qe&3)<<6|R<<3|be<<2|h>>4,h<<4&224]),wt=1536/c*9e4,an=n+r*wt,Rt=e.subarray(t,t+S);return o.config=Et,o.channelCount=Se,o.samplerate=c,o.samples.push({unit:Rt,pts:an}),S}class Ys{constructor(){this.VideoSample=null}createVideoSample(e,t,n,r){return{key:e,frame:!1,pts:t,dts:n,units:[],debug:r,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)}e.debug.length&&x.log(e.pts+"/"+e.dts+":"+e.debug)}}class Is{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&&x.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)}skipScalingList(e){let t=8,n=8,r;for(let i=0;i<e;i++)n!==0&&(r=this.readEG(),n=(t+r+256)%256),t=n===0?t:n}readSPS(){let e=0,t=0,n=0,r=0,i,s,c;const h=this.readUByte.bind(this),_=this.readBits.bind(this),S=this.readUEG.bind(this),R=this.readBoolean.bind(this),re=this.skipBits.bind(this),be=this.skipEG.bind(this),me=this.skipUEG.bind(this),Se=this.skipScalingList.bind(this);h();const Me=h();if(_(5),re(3),h(),me(),Me===100||Me===110||Me===122||Me===244||Me===44||Me===83||Me===86||Me===118||Me===128){const _n=S();if(_n===3&&re(1),me(),me(),re(1),R())for(s=_n!==3?8:12,c=0;c<s;c++)R()&&(c<6?Se(16):Se(64))}me();const qe=S();if(qe===0)S();else if(qe===1)for(re(1),be(),be(),i=S(),c=0;c<i;c++)be();me(),re(1);const Et=S(),wt=S(),an=_(1);an===0&&re(1),re(1),R()&&(e=S(),t=S(),n=S(),r=S());let Rt=[1,1];if(R()&&R())switch(h()){case 1:Rt=[1,1];break;case 2:Rt=[12,11];break;case 3:Rt=[10,11];break;case 4:Rt=[16,11];break;case 5:Rt=[40,33];break;case 6:Rt=[24,11];break;case 7:Rt=[20,11];break;case 8:Rt=[32,11];break;case 9:Rt=[80,33];break;case 10:Rt=[18,11];break;case 11:Rt=[15,11];break;case 12:Rt=[64,33];break;case 13:Rt=[160,99];break;case 14:Rt=[4,3];break;case 15:Rt=[3,2];break;case 16:Rt=[2,1];break;case 255:{Rt=[h()<<8|h(),h()<<8|h()];break}}return{width:Math.ceil((Et+1)*16-e*2-t*2),height:(2-an)*(wt+1)*16-(an?2:4)*(n+r),pixelRatio:Rt}}readSliceType(){return this.readUByte(),this.readUEG(),this.readUEG()}}class Xs extends Ys{parseAVCPES(e,t,n,r,i){const s=this.parseAVCNALu(e,n.data);let c=this.VideoSample,h,_=!1;n.data=null,c&&s.length&&!e.audFound&&(this.pushAccessUnit(c,e),c=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts,"")),s.forEach(S=>{var R;switch(S.type){case 1:{let Se=!1;h=!0;const Me=S.data;if(_&&Me.length>4){const qe=new Is(Me).readSliceType();(qe===2||qe===4||qe===7||qe===9)&&(Se=!0)}if(Se){var re;(re=c)!=null&&re.frame&&!c.key&&(this.pushAccessUnit(c,e),c=this.VideoSample=null)}c||(c=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts,"")),c.frame=!0,c.key=Se;break}case 5:h=!0,(R=c)!=null&&R.frame&&!c.key&&(this.pushAccessUnit(c,e),c=this.VideoSample=null),c||(c=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts,"")),c.key=!0,c.frame=!0;break;case 6:{h=!0,Ct(S.data,1,n.pts,t.samples);break}case 7:{var be,me;h=!0,_=!0;const Se=S.data,qe=new Is(Se).readSPS();if(!e.sps||e.width!==qe.width||e.height!==qe.height||((be=e.pixelRatio)==null?void 0:be[0])!==qe.pixelRatio[0]||((me=e.pixelRatio)==null?void 0:me[1])!==qe.pixelRatio[1]){e.width=qe.width,e.height=qe.height,e.pixelRatio=qe.pixelRatio,e.sps=[Se],e.duration=i;const Et=Se.subarray(1,4);let wt="avc1.";for(let an=0;an<3;an++){let Rt=Et[an].toString(16);Rt.length<2&&(Rt="0"+Rt),wt+=Rt}e.codec=wt}break}case 8:h=!0,e.pps=[S.data];break;case 9:h=!0,e.audFound=!0,c&&this.pushAccessUnit(c,e),c=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts,"");break;case 12:h=!0;break;default:h=!1,c&&(c.debug+="unknown NAL "+S.type+" ");break}c&&h&&c.units.push(S)}),r&&c&&(this.pushAccessUnit(c,e),this.VideoSample=null)}parseAVCNALu(e,t){const n=t.byteLength;let r=e.naluState||0;const i=r,s=[];let c=0,h,_,S,R=-1,re=0;for(r===-1&&(R=0,re=t[0]&31,r=0,c=1);c<n;){if(h=t[c++],!r){r=h?0:1;continue}if(r===1){r=h?0:2;continue}if(!h)r=3;else if(h===1){if(_=c-r-1,R>=0){const be={data:t.subarray(R,_),type:re};s.push(be)}else{const be=this.getLastNalUnit(e.samples);be&&(i&&c<=4-i&&be.state&&(be.data=be.data.subarray(0,be.data.byteLength-i)),_>0&&(be.data=It(be.data,t.subarray(0,_)),be.state=0))}c<n?(S=t[c]&31,R=c,re=S,r=0):r=-1}else r=0}if(R>=0&&r>=0){const be={data:t.subarray(R,n),type:re,state:r};s.push(be)}if(s.length===0){const be=this.getLastNalUnit(e.samples);be&&(be.data=It(be.data,t))}return e.naluState=r,s}}class cs{constructor(e,t,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new fa(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer)}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(c=>{const h=new Uint8Array(c);r.set(h,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=Ne(i.data),c=this.getAvcEncryptedData(s);this.decryptBuffer(c.buffer).then(h=>{i.data=this.getAvcDecryptedUnit(s,h),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}}}}const Ei=188;class ra{constructor(e,t,n){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.videoParser=new Xs}static probe(e){const t=ra.syncOffset(e);return t>0&&x.warn(`MPEG2-TS detected but first sync word found @ offset ${t}`),t!==-1}static syncOffset(e){const t=e.length;let n=Math.min(Ei*5,t-Ei)+1,r=0;for(;r<n;){let i=!1,s=-1,c=0;for(let h=r;h<t;h+=Ei)if(e[h]===71&&(t-h===Ei||e[h+Ei]===71)){if(c++,s===-1&&(s=h,s!==0&&(n=Math.min(s+Ei*99,e.length-Ei)+1)),i||(i=Za(e,h)===0),i&&c>1&&(s===0&&c>2||h+Ei>n))return s}else{if(c)return-1;break}r++}return-1}static createTrack(e,t){return{container:e==="video"||e==="audio"?"video/mp2t":void 0,type:e,id:Ot[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=ra.createTrack("video"),this._audioTrack=ra.createTrack("audio",r),this._id3Track=ra.createTrack("id3"),this._txtTrack=ra.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=n,this._duration=r}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,c=this._audioTrack,h=this._id3Track,_=this._txtTrack;let S=s.pid,R=s.pesData,re=c.pid,be=h.pid,me=c.pesData,Se=h.pesData,Me=null,qe=this.pmtParsed,Et=this._pmtId,wt=e.length;if(this.remainderData&&(e=It(this.remainderData,e),wt=e.length,this.remainderData=null),wt<Ei&&!r)return this.remainderData=e,{audioTrack:c,videoTrack:s,id3Track:h,textTrack:_};const an=Math.max(0,ra.syncOffset(e));wt-=(wt-an)%Ei,wt<e.byteLength&&!r&&(this.remainderData=new Uint8Array(e.buffer,wt,e.buffer.byteLength-wt));let Rt=0;for(let Yt=an;Yt<wt;Yt+=Ei)if(e[Yt]===71){const kn=!!(e[Yt+1]&64),Yn=Za(e,Yt),vn=(e[Yt+3]&48)>>4;let Mn;if(vn>1){if(Mn=Yt+5+e[Yt+4],Mn===Yt+Ei)continue}else Mn=Yt+4;switch(Yn){case S:kn&&(R&&(i=ha(R))&&this.videoParser.parseAVCPES(s,_,i,!1,this._duration),R={data:[],size:0}),R&&(R.data.push(e.subarray(Mn,Yt+Ei)),R.size+=Yt+Ei-Mn);break;case re:if(kn){if(me&&(i=ha(me)))switch(c.segmentCodec){case"aac":this.parseAACPES(c,i);break;case"mp3":this.parseMPEGPES(c,i);break;case"ac3":this.parseAC3PES(c,i);break}me={data:[],size:0}}me&&(me.data.push(e.subarray(Mn,Yt+Ei)),me.size+=Yt+Ei-Mn);break;case be:kn&&(Se&&(i=ha(Se))&&this.parseID3PES(h,i),Se={data:[],size:0}),Se&&(Se.data.push(e.subarray(Mn,Yt+Ei)),Se.size+=Yt+Ei-Mn);break;case 0:kn&&(Mn+=e[Mn]+1),Et=this._pmtId=Qs(e,Mn);break;case Et:{kn&&(Mn+=e[Mn]+1);const Cr=Ls(e,Mn,this.typeSupported,n,this.observer);S=Cr.videoPid,S>0&&(s.pid=S,s.segmentCodec=Cr.segmentVideoCodec),re=Cr.audioPid,re>0&&(c.pid=re,c.segmentCodec=Cr.segmentAudioCodec),be=Cr.id3Pid,be>0&&(h.pid=be),Me!==null&&!qe&&(x.warn(`MPEG-TS PMT found at ${Yt} after unknown PID '${Me}'. Backtracking to sync byte @${an} to parse all TS packets.`),Me=null,Yt=an-188),qe=this.pmtParsed=!0;break}case 17:case 8191:break;default:Me=Yn;break}}else Rt++;Rt>0&&ja(this.observer,new Error(`Found ${Rt} TS packet/s that do not start with 0x47`)),s.pesData=R,c.pesData=me,h.pesData=Se;const _n={audioTrack:c,videoTrack:s,id3Track:h,textTrack:_};return r&&this.extractRemainingSamples(_n),_n}flush(){const{remainderData:e}=this;this.remainderData=null;let t;return e?t=this.demux(e,-1,!1,!0):t={videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(t),this.sampleAes?this.decrypt(t,this.sampleAes):t}extractRemainingSamples(e){const{audioTrack:t,videoTrack:n,id3Track:r,textTrack:i}=e,s=n.pesData,c=t.pesData,h=r.pesData;let _;if(s&&(_=ha(s))?(this.videoParser.parseAVCPES(n,i,_,!0,this._duration),n.pesData=null):n.pesData=s,c&&(_=ha(c))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,_);break;case"mp3":this.parseMPEGPES(t,_);break;case"ac3":this.parseAC3PES(t,_);break}t.pesData=null}else c!=null&&c.size&&x.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=c;h&&(_=ha(h))?(this.parseID3PES(r,_),r.pesData=null):r.pesData=h}demuxSampleAes(e,t,n){const r=this.demux(e,n,!0,!this.config.progressive),i=this.sampleAes=new cs(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._duration=0}parseAACPES(e,t){let n=0;const r=this.aacOverFlow;let i=t.data;if(r){this.aacOverFlow=null;const R=r.missing,re=r.sample.unit.byteLength;if(R===-1)i=It(r.sample.unit,i);else{const be=re-R;r.sample.unit.set(i.subarray(0,R),be),e.samples.push(r.sample),n=r.missing}}let s,c;for(s=n,c=i.length;s<c-1&&!Xi(i,s);s++);if(s!==n){let R;const re=s<c-1;if(re?R=`AAC PES did not start with ADTS header,offset:${s}`:R="No ADTS header found in AAC PES",ja(this.observer,new Error(R),re),!re)return}ws(e,this.observer,i,s,this.audioCodec);let h;if(t.pts!==void 0)h=t.pts;else if(r){const R=as(e.samplerate);h=r.sample.pts+R}else{x.warn("[tsdemuxer]: AAC PES unknown PTS");return}let _=0,S;for(;s<c;)if(S=ss(e,i,s,h,_),s+=S.length,S.missing){this.aacOverFlow=S;break}else for(_++;s<c-1&&!Xi(i,s);s++);}parseMPEGPES(e,t){const n=t.data,r=n.length;let i=0,s=0;const c=t.pts;if(c===void 0){x.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;s<r;)if(os(n,s)){const h=Ua(e,n,s,c,i);if(h)s+=h.length,i++;else break}else s++}parseAC3PES(e,t){{const n=t.data,r=t.pts;if(r===void 0){x.warn("[tsdemuxer]: AC3 PES unknown PTS");return}const i=n.length;let s=0,c=0,h;for(;c<i&&(h=us(e,n,c,r,s++))>0;)c+=h}}parseID3PES(e,t){if(t.pts===void 0){x.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const n=a({},t,{type:this._videoTrack?Vn.emsg:Vn.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(n)}}function Za(o,e){return((o[e+1]&31)<<8)+o[e+2]}function Qs(o,e){return(o[e+10]&31)<<8|o[e+11]}function Ls(o,e,t,n,r){const i={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},s=(o[e+1]&15)<<8|o[e+2],c=e+3+s-4,h=(o[e+10]&15)<<8|o[e+11];for(e+=12+h;e<c;){const _=Za(o,e),S=(o[e+3]&15)<<8|o[e+4];switch(o[e]){case 207:if(!n){He("ADTS AAC");break}case 15:i.audioPid===-1&&(i.audioPid=_);break;case 21:i.id3Pid===-1&&(i.id3Pid=_);break;case 219:if(!n){He("H.264");break}case 27:i.videoPid===-1&&(i.videoPid=_,i.segmentVideoCodec="avc");break;case 3:case 4:!t.mpeg&&!t.mp3?x.log("MPEG audio found, not supported in this browser"):i.audioPid===-1&&(i.audioPid=_,i.segmentAudioCodec="mp3");break;case 193:if(!n){He("AC-3");break}case 129:t.ac3?i.audioPid===-1&&(i.audioPid=_,i.segmentAudioCodec="ac3"):x.log("AC-3 audio found, not supported in this browser");break;case 6:if(i.audioPid===-1&&S>0){let R=e+5,re=S;for(;re>2;){switch(o[R]){case 106:t.ac3!==!0?x.log("AC-3 audio found, not supported in this browser for now"):(i.audioPid=_,i.segmentAudioCodec="ac3");break}const me=o[R+1]+2;R+=me,re-=me}}break;case 194:case 135:return ja(r,new Error("Unsupported EC-3 in M2TS found")),i;case 36:return ja(r,new Error("Unsupported HEVC in M2TS found")),i}e+=S+5}return i}function ja(o,e,t){x.warn(`parsing error: ${e.message}`),o.emit(u.ERROR,u.ERROR,{type:y.MEDIA_ERROR,details:b.FRAG_PARSING_ERROR,fatal:!1,levelRetry:t,error:e,reason:e.message})}function He(o){x.log(`${o} with AES-128-CBC encryption found in unencrypted stream`)}function ha(o){let e=0,t,n,r,i,s;const c=o.data;if(!o||o.size===0)return null;for(;c[0].length<19&&c.length>1;)c[0]=It(c[0],c[1]),c.splice(1,1);if(t=c[0],(t[0]<<16)+(t[1]<<8)+t[2]===1){if(n=(t[4]<<8)+t[5],n&&n>o.size-6)return null;const _=t[7];_&192&&(i=(t[9]&14)*536870912+(t[10]&255)*4194304+(t[11]&254)*16384+(t[12]&255)*128+(t[13]&254)/2,_&64?(s=(t[14]&14)*536870912+(t[15]&255)*4194304+(t[16]&254)*16384+(t[17]&255)*128+(t[18]&254)/2,i-s>60*9e4&&(x.warn(`${Math.round((i-s)/9e4)}s delta between PTS and DTS, align them`),i=s)):s=i),r=t[8];let S=r+9;if(o.size<=S)return null;o.size-=S;const R=new Uint8Array(o.size);for(let re=0,be=c.length;re<be;re++){t=c[re];let me=t.byteLength;if(S)if(S>me){S-=me;continue}else t=t.subarray(S),me-=S,S=0;R.set(t,e),e+=me}return n&&(n-=r+3),{data:R,pts:i,dts:s,len:n}}return null}class ds extends Ba{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=z(e,0);let n=(t==null?void 0:t.length)||0;if(t&&e[n]===11&&e[n+1]===119&&ae(t)!==void 0&&xa(e,n)<=16)return!1;for(let r=e.length;n<r;n++)if(As(e,n))return x.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return Ts(e,t)}appendFrame(e,t,n){if(this.basePTS!==null)return Ua(e,t,n,this.basePTS,this.frameIndex)}}class Wa{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 Qi=Math.pow(2,32)-1;class Mt{static init(){Mt.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};let e;for(e in Mt.types)Mt.types.hasOwnProperty(e)&&(Mt.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]);Mt.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]);Mt.STTS=Mt.STSC=Mt.STCO=i,Mt.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Mt.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Mt.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Mt.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const s=new Uint8Array([105,115,111,109]),c=new Uint8Array([97,118,99,49]),h=new Uint8Array([0,0,0,1]);Mt.FTYP=Mt.box(Mt.types.ftyp,s,h,s,c),Mt.DINF=Mt.box(Mt.types.dinf,Mt.box(Mt.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 Mt.box(Mt.types.hdlr,Mt.HDLR_TYPES[e])}static mdat(e){return Mt.box(Mt.types.mdat,e)}static mdhd(e,t){t*=e;const n=Math.floor(t/(Qi+1)),r=Math.floor(t%(Qi+1));return Mt.box(Mt.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 Mt.box(Mt.types.mdia,Mt.mdhd(e.timescale,e.duration),Mt.hdlr(e.type),Mt.minf(e))}static mfhd(e){return Mt.box(Mt.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"?Mt.box(Mt.types.minf,Mt.box(Mt.types.smhd,Mt.SMHD),Mt.DINF,Mt.stbl(e)):Mt.box(Mt.types.minf,Mt.box(Mt.types.vmhd,Mt.VMHD),Mt.DINF,Mt.stbl(e))}static moof(e,t,n){return Mt.box(Mt.types.moof,Mt.mfhd(e),Mt.traf(n,t))}static moov(e){let t=e.length;const n=[];for(;t--;)n[t]=Mt.trak(e[t]);return Mt.box.apply(null,[Mt.types.moov,Mt.mvhd(e[0].timescale,e[0].duration)].concat(n).concat(Mt.mvex(e)))}static mvex(e){let t=e.length;const n=[];for(;t--;)n[t]=Mt.trex(e[t]);return Mt.box.apply(null,[Mt.types.mvex,...n])}static mvhd(e,t){t*=e;const n=Math.floor(t/(Qi+1)),r=Math.floor(t%(Qi+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 Mt.box(Mt.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 Mt.box(Mt.types.sdtp,n)}static stbl(e){return Mt.box(Mt.types.stbl,Mt.stsd(e),Mt.box(Mt.types.stts,Mt.STTS),Mt.box(Mt.types.stsc,Mt.STSC),Mt.box(Mt.types.stsz,Mt.STSZ),Mt.box(Mt.types.stco,Mt.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 c=Mt.box(Mt.types.avcC,new Uint8Array([1,t[3],t[4],t[5],255,224|e.sps.length].concat(t).concat([e.pps.length]).concat(n))),h=e.width,_=e.height,S=e.pixelRatio[0],R=e.pixelRatio[1];return Mt.box(Mt.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,h>>8&255,h&255,_>>8&255,_&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),c,Mt.box(Mt.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Mt.box(Mt.types.pasp,new Uint8Array([S>>24,S>>16&255,S>>8&255,S&255,R>>24,R>>16&255,R>>8&255,R&255])))}static esds(e){const t=e.config.length;return new Uint8Array([0,0,0,0,3,23+t,0,1,0,4,15+t,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([t]).concat(e.config).concat([6,1,2]))}static audioStsd(e){const t=e.samplerate;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,t>>8&255,t&255,0,0])}static mp4a(e){return Mt.box(Mt.types.mp4a,Mt.audioStsd(e),Mt.box(Mt.types.esds,Mt.esds(e)))}static mp3(e){return Mt.box(Mt.types[".mp3"],Mt.audioStsd(e))}static ac3(e){return Mt.box(Mt.types["ac-3"],Mt.audioStsd(e),Mt.box(Mt.types.dac3,e.config))}static stsd(e){return e.type==="audio"?e.segmentCodec==="mp3"&&e.codec==="mp3"?Mt.box(Mt.types.stsd,Mt.STSD,Mt.mp3(e)):e.segmentCodec==="ac3"?Mt.box(Mt.types.stsd,Mt.STSD,Mt.ac3(e)):Mt.box(Mt.types.stsd,Mt.STSD,Mt.mp4a(e)):Mt.box(Mt.types.stsd,Mt.STSD,Mt.avc1(e))}static tkhd(e){const t=e.id,n=e.duration*e.timescale,r=e.width,i=e.height,s=Math.floor(n/(Qi+1)),c=Math.floor(n%(Qi+1));return Mt.box(Mt.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,c>>24,c>>16&255,c>>8&255,c&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=Mt.sdtp(e),r=e.id,i=Math.floor(t/(Qi+1)),s=Math.floor(t%(Qi+1));return Mt.box(Mt.types.traf,Mt.box(Mt.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255])),Mt.box(Mt.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])),Mt.trun(e,n.length+16+20+8+16+8+8),n)}static trak(e){return e.duration=e.duration||4294967295,Mt.box(Mt.types.trak,Mt.tkhd(e),Mt.mdia(e))}static trex(e){const t=e.id;return Mt.box(Mt.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 c,h,_,S,R,re;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),c=0;c<r;c++)h=n[c],_=h.duration,S=h.size,R=h.flags,re=h.cts,s.set([_>>>24&255,_>>>16&255,_>>>8&255,_&255,S>>>24&255,S>>>16&255,S>>>8&255,S&255,R.isLeading<<2|R.dependsOn,R.isDependedOn<<6|R.hasRedundancy<<4|R.paddingValue<<1|R.isNonSync,R.degradPrio&61440,R.degradPrio&15,re>>>24&255,re>>>16&255,re>>>8&255,re&255],12+16*c);return Mt.box(Mt.types.trun,s)}static initSegment(e){Mt.types||Mt.init();const t=Mt.moov(e);return It(Mt.FTYP,t)}}Mt.types=void 0,Mt.HDLR_TYPES=void 0,Mt.STTS=void 0,Mt.STSC=void 0,Mt.STCO=void 0,Mt.STSZ=void 0,Mt.VMHD=void 0,Mt.SMHD=void 0,Mt.STSD=void 0,Mt.FTYP=void 0,Mt.DINF=void 0;const fs=9e4;function Ga(o,e,t=1,n=!1){const r=o*e*t;return n?Math.round(r):r}function Js(o,e,t=1,n=!1){return Ga(o,e,1/t,n)}function Ea(o,e=!1){return Ga(o,1e3,1/fs,e)}function Os(o,e=1){return Ga(o,fs,1/e)}const Va=10*1e3,ks=1024,hs=1152,Ps=1536;let wa=null,ps=null;class Oa{constructor(e,t,n,r=""){if(this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.ISGenerated=!1,wa===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);wa=s?parseInt(s[1]):0}if(ps===null){const i=navigator.userAgent.match(/Safari\/(\d+)/i);ps=i?parseInt(i[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){x.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e}resetNextTimestamp(){x.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){x.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 c=s.pts,h=c-i;return h<-4294967296&&(t=!0,c=Ni(c,n),h=c-i),h>0?i:c},n);return t&&x.debug("PTS rollover detected"),r}remux(e,t,n,r,i,s,c,h){let _,S,R,re,be,me,Se=i,Me=i;const qe=e.pid>-1,Et=t.pid>-1,wt=t.samples.length,an=e.samples.length>0,Rt=c&&wt>0||wt>1;if((!qe||an)&&(!Et||Rt)||this.ISGenerated||c){if(this.ISGenerated){var Yt,kn,Yn,vn;const Er=this.videoTrackConfig;Er&&(t.width!==Er.width||t.height!==Er.height||((Yt=t.pixelRatio)==null?void 0:Yt[0])!==((kn=Er.pixelRatio)==null?void 0:kn[0])||((Yn=t.pixelRatio)==null?void 0:Yn[1])!==((vn=Er.pixelRatio)==null?void 0:vn[1]))&&this.resetInitSegment()}else R=this.generateIS(e,t,i,s);const Mn=this.isVideoContiguous;let Cr=-1,Jn;if(Rt&&(Cr=qs(t.samples),!Mn&&this.config.forceKeyFrameOnDiscontinuity))if(me=!0,Cr>0){x.warn(`[mp4-remuxer]: Dropped ${Cr} out of ${wt} video samples due to a missing keyframe`);const Er=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(Cr),t.dropped+=Cr,Me+=(t.samples[0].pts-Er)/t.inputTimeScale,Jn=Me}else Cr===-1&&(x.warn(`[mp4-remuxer]: No keyframe found out of ${wt} video samples`),me=!1);if(this.ISGenerated){if(an&&Rt){const Er=this.getVideoStartPts(t.samples),fr=(Ni(e.samples[0].pts,Er)-Er)/t.inputTimeScale;Se+=Math.max(0,fr),Me+=Math.max(0,-fr)}if(an){if(e.samplerate||(x.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),R=this.generateIS(e,t,i,s)),S=this.remuxAudio(e,Se,this.isAudioContiguous,s,Et||Rt||h===Ke.AUDIO?Me:void 0),Rt){const Er=S?S.endPTS-S.startPTS:0;t.inputTimeScale||(x.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),R=this.generateIS(e,t,i,s)),_=this.remuxVideo(t,Me,Mn,Er)}}else Rt&&(_=this.remuxVideo(t,Me,Mn,0));_&&(_.firstKeyFrame=Cr,_.independent=Cr!==-1,_.firstKeyFramePTS=Jn)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(be=Ms(n,i,this._initPTS,this._initDTS)),r.samples.length&&(re=eo(r,i,this._initPTS))),{audio:S,video:_,initSegment:R,independent:me,text:re,id3:be}}generateIS(e,t,n,r){const i=e.samples,s=t.samples,c=this.typeSupported,h={},_=this._initPTS;let S=!_||r,R="audio/mp4",re,be,me;if(S&&(re=be=1/0),e.config&&i.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":c.mpeg?(R="audio/mpeg",e.codec=""):c.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}h.audio={id:"audio",container:R,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&c.mpeg?new Uint8Array(0):Mt.initSegment([e]),metadata:{channelCount:e.channelCount}},S&&(me=e.inputTimeScale,!_||me!==_.timescale?re=be=i[0].pts-Math.round(me*n):S=!1)}if(t.sps&&t.pps&&s.length){if(t.timescale=t.inputTimeScale,h.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:Mt.initSegment([t]),metadata:{width:t.width,height:t.height}},S)if(me=t.inputTimeScale,!_||me!==_.timescale){const Se=this.getVideoStartPts(s),Me=Math.round(me*n);be=Math.min(be,Ni(s[0].dts,Se)-Me),re=Math.min(re,Se-Me)}else S=!1;this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(h).length)return this.ISGenerated=!0,S?(this._initPTS={baseTime:re,timescale:me},this._initDTS={baseTime:be,timescale:me}):re=me=void 0,{tracks:h,initPTS:re,timescale:me}}remuxVideo(e,t,n,r){const i=e.inputTimeScale,s=e.samples,c=[],h=s.length,_=this._initPTS;let S=this.nextAvcDts,R=8,re=this.videoSampleDuration,be,me,Se=Number.POSITIVE_INFINITY,Me=Number.NEGATIVE_INFINITY,qe=!1;if(!n||S===null){const rr=t*i,qn=s[0].pts-Ni(s[0].dts,s[0].pts);wa&&S!==null&&Math.abs(rr-qn-S)<15e3?n=!0:S=rr-qn}const Et=_.baseTime*i/_.timescale;for(let rr=0;rr<h;rr++){const qn=s[rr];qn.pts=Ni(qn.pts-Et,S),qn.dts=Ni(qn.dts-Et,S),qn.dts<s[rr>0?rr-1:rr].dts&&(qe=!0)}qe&&s.sort(function(rr,qn){const Gr=rr.dts-qn.dts,kr=rr.pts-qn.pts;return Gr||kr}),be=s[0].dts,me=s[s.length-1].dts;const wt=me-be,an=wt?Math.round(wt/(h-1)):re||e.inputTimeScale/30;if(n){const rr=be-S,qn=rr>an,Gr=rr<-1;if((qn||Gr)&&(qn?x.warn(`AVC: ${Ea(rr,!0)} ms (${rr}dts) hole between fragments detected at ${t.toFixed(3)}`):x.warn(`AVC: ${Ea(-rr,!0)} ms (${rr}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!Gr||S>=s[0].pts||wa)){be=S;const kr=s[0].pts-rr;if(qn)s[0].dts=be,s[0].pts=kr;else for(let qr=0;qr<s.length&&!(s[qr].dts>kr);qr++)s[qr].dts-=rr,s[qr].pts-=rr;x.log(`Video: Initial PTS/DTS adjusted: ${Ea(kr,!0)}/${Ea(be,!0)}, delta: ${Ea(rr,!0)} ms`)}}be=Math.max(0,be);let Rt=0,_n=0,Yt=be;for(let rr=0;rr<h;rr++){const qn=s[rr],Gr=qn.units,kr=Gr.length;let qr=0;for(let wi=0;wi<kr;wi++)qr+=Gr[wi].data.length;_n+=qr,Rt+=kr,qn.length=qr,qn.dts<Yt?(qn.dts=Yt,Yt+=an/4|0||1):Yt=qn.dts,Se=Math.min(qn.pts,Se),Me=Math.max(qn.pts,Me)}me=s[h-1].dts;const kn=_n+4*Rt+8;let Yn;try{Yn=new Uint8Array(kn)}catch(rr){this.observer.emit(u.ERROR,u.ERROR,{type:y.MUX_ERROR,details:b.REMUX_ALLOC_ERROR,fatal:!1,error:rr,bytes:kn,reason:`fail allocating video mdat ${kn}`});return}const vn=new DataView(Yn.buffer);vn.setUint32(0,kn),Yn.set(Mt.types.mdat,4);let Mn=!1,Cr=Number.POSITIVE_INFINITY,Jn=Number.POSITIVE_INFINITY,Er=Number.NEGATIVE_INFINITY,xr=Number.NEGATIVE_INFINITY;for(let rr=0;rr<h;rr++){const qn=s[rr],Gr=qn.units;let kr=0;for(let Li=0,Pi=Gr.length;Li<Pi;Li++){const Yi=Gr[Li],ys=Yi.data,_o=Yi.data.byteLength;vn.setUint32(R,_o),R+=4,Yn.set(ys,R),R+=_o,kr+=4+_o}let qr;if(rr<h-1)re=s[rr+1].dts-qn.dts,qr=s[rr+1].pts-qn.pts;else{const Li=this.config,Pi=rr>0?qn.dts-s[rr-1].dts:an;if(qr=rr>0?qn.pts-s[rr-1].pts:an,Li.stretchShortVideoTrack&&this.nextAudioPts!==null){const Yi=Math.floor(Li.maxBufferHole*i),ys=(r?Se+r*i:this.nextAudioPts)-qn.pts;ys>Yi?(re=ys-Pi,re<0?re=Pi:Mn=!0,x.log(`[mp4-remuxer]: It is approximately ${ys/90} ms to the next segment; using duration ${re/90} ms for the last video frame.`)):re=Pi}else re=Pi}const wi=Math.round(qn.pts-qn.dts);Cr=Math.min(Cr,re),Er=Math.max(Er,re),Jn=Math.min(Jn,qr),xr=Math.max(xr,qr),c.push(new ne(qn.key,re,kr,wi))}if(c.length){if(wa){if(wa<70){const rr=c[0].flags;rr.dependsOn=2,rr.isNonSync=0}}else if(ps&&xr-Jn<Er-Cr&&an/Er<.025&&c[0].cts===0){x.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let rr=be;for(let qn=0,Gr=c.length;qn<Gr;qn++){const kr=rr+c[qn].duration,qr=rr+c[qn].cts;if(qn<Gr-1){const wi=kr+c[qn+1].cts;c[qn].duration=wi-qr}else c[qn].duration=qn?c[qn-1].duration:an;c[qn].cts=0,rr=kr}}}re=Mn||!re?an:re,this.nextAvcDts=S=me+re,this.videoSampleDuration=re,this.isVideoContiguous=!0;const ni={data1:Mt.moof(e.sequenceNumber++,be,a({},e,{samples:c})),data2:Yn,startPTS:Se/i,endPTS:(Me+re)/i,startDTS:be/i,endDTS:S/i,type:"video",hasAudio:!1,hasVideo:!0,nb:c.length,dropped:e.dropped};return e.samples=[],e.dropped=0,ni}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return hs;case"ac3":return Ps;default:return ks}}remuxAudio(e,t,n,r,i){const s=e.inputTimeScale,c=e.samplerate?e.samplerate:s,h=s/c,_=this.getSamplesPerFrame(e),S=_*h,R=this._initPTS,re=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,be=[],me=i!==void 0;let Se=e.samples,Me=re?0:8,qe=this.nextAudioPts||-1;const Et=t*s,wt=R.baseTime*s/R.timescale;if(this.isAudioContiguous=n=n||Se.length&&qe>0&&(r&&Math.abs(Et-qe)<9e3||Math.abs(Ni(Se[0].pts-wt,Et)-qe)<20*S),Se.forEach(function(fr){fr.pts=Ni(fr.pts-wt,Et)}),!n||qe<0){if(Se=Se.filter(fr=>fr.pts>=0),!Se.length)return;i===0?qe=0:r&&!me?qe=Math.max(0,Et):qe=Se[0].pts}if(e.segmentCodec==="aac"){const fr=this.config.maxAudioFramesDrift;for(let Hr=0,ni=qe;Hr<Se.length;Hr++){const rr=Se[Hr],qn=rr.pts,Gr=qn-ni,kr=Math.abs(1e3*Gr/s);if(Gr<=-fr*S&&me)Hr===0&&(x.warn(`Audio frame @ ${(qn/s).toFixed(3)}s overlaps nextAudioPts by ${Math.round(1e3*Gr/s)} ms.`),this.nextAudioPts=qe=ni=qn);else if(Gr>=fr*S&&kr<Va&&me){let qr=Math.round(Gr/S);ni=qn-qr*S,ni<0&&(qr--,ni+=S),Hr===0&&(this.nextAudioPts=qe=ni),x.warn(`[mp4-remuxer]: Injecting ${qr} audio frame @ ${(ni/s).toFixed(3)}s due to ${Math.round(1e3*Gr/s)} ms gap.`);for(let wi=0;wi<qr;wi++){const Li=Math.max(ni,0);let Pi=Wa.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);Pi||(x.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),Pi=rr.unit.subarray()),Se.splice(Hr,0,{unit:Pi,pts:Li}),ni+=S,Hr++}}rr.pts=ni,ni+=S}}let an=null,Rt=null,_n,Yt=0,kn=Se.length;for(;kn--;)Yt+=Se[kn].unit.byteLength;for(let fr=0,Hr=Se.length;fr<Hr;fr++){const ni=Se[fr],rr=ni.unit;let qn=ni.pts;if(Rt!==null){const kr=be[fr-1];kr.duration=Math.round((qn-Rt)/h)}else if(n&&e.segmentCodec==="aac"&&(qn=qe),an=qn,Yt>0){Yt+=Me;try{_n=new Uint8Array(Yt)}catch(kr){this.observer.emit(u.ERROR,u.ERROR,{type:y.MUX_ERROR,details:b.REMUX_ALLOC_ERROR,fatal:!1,error:kr,bytes:Yt,reason:`fail allocating audio mdat ${Yt}`});return}re||(new DataView(_n.buffer).setUint32(0,Yt),_n.set(Mt.types.mdat,4))}else return;_n.set(rr,Me);const Gr=rr.byteLength;Me+=Gr,be.push(new ne(!0,_,Gr,0)),Rt=qn}const Yn=be.length;if(!Yn)return;const vn=be[be.length-1];this.nextAudioPts=qe=Rt+h*vn.duration;const Mn=re?new Uint8Array(0):Mt.moof(e.sequenceNumber++,an/h,a({},e,{samples:be}));e.samples=[];const Cr=an/s,Jn=qe/s,xr={data1:Mn,data2:_n,startPTS:Cr,endPTS:Jn,startDTS:Cr,endDTS:Jn,type:"audio",hasAudio:!0,hasVideo:!1,nb:Yn};return this.isAudioContiguous=!0,xr}remuxEmptyAudio(e,t,n,r){const i=e.inputTimeScale,s=e.samplerate?e.samplerate:i,c=i/s,h=this.nextAudioPts,_=this._initDTS,S=_.baseTime*9e4/_.timescale,R=(h!==null?h:r.startDTS*i)+S,re=r.endDTS*i+S,be=c*ks,me=Math.ceil((re-R)/be),Se=Wa.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);if(x.warn("[mp4-remuxer]: remux empty Audio"),!Se){x.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}const Me=[];for(let qe=0;qe<me;qe++){const Et=R+qe*be;Me.push({unit:Se,pts:Et,dts:Et})}return e.samples=Me,this.remuxAudio(e,t,n,!1)}}function Ni(o,e){let t;if(e===null)return o;for(e<o?t=-8589934592:t=8589934592;Math.abs(o-e)>4294967296;)o+=t;return o}function qs(o){for(let e=0;e<o.length;e++)if(o[e].key)return e;return-1}function Ms(o,e,t,n){const r=o.samples.length;if(!r)return;const i=o.inputTimeScale;for(let c=0;c<r;c++){const h=o.samples[c];h.pts=Ni(h.pts-t.baseTime*i/t.timescale,e*i)/i,h.dts=Ni(h.dts-n.baseTime*i/n.timescale,e*i)/i}const s=o.samples;return o.samples=[],{samples:s}}function eo(o,e,t){const n=o.samples.length;if(!n)return;const r=o.inputTimeScale;for(let s=0;s<n;s++){const c=o.samples[s];c.pts=Ni(c.pts-t.baseTime*r/t.timescale,e*r)/r}o.samples.sort((s,c)=>s.pts-c.pts);const i=o.samples;return o.samples=[],{samples:i}}class ne{constructor(e,t,n,r){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=t,this.size=n,this.cts=r,this.flags={isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:e?2:1,isNonSync:e?0:1}}}class l{constructor(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null}destroy(){}resetTimeStamp(e){this.initPTS=e,this.lastEndTime=null}resetNextTimestamp(){this.lastEndTime=null}resetInitSegment(e,t,n,r){this.audioCodec=t,this.videoCodec=n,this.generateInitSegment(U(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=Je(e);r.audio&&(t=f(r.audio,G.AUDIO)),r.video&&(n=f(r.video,G.VIDEO));const i={};r.audio&&r.video?i.audiovideo={container:"video/mp4",codec:t+","+n,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,initSegment:e,id:"main"}:x.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=i}remux(e,t,n,r,i,s){var c,h;let{initPTS:_,lastEndTime:S}=this;const R={audio:void 0,video:void 0,text:r,id3:n,initSegment:void 0};A(S)||(S=this.lastEndTime=i||0);const re=t.samples;if(!(re!=null&&re.length))return R;const be={initPTS:void 0,timescale:1};let me=this.initData;if((c=me)!=null&&c.length||(this.generateInitSegment(re),me=this.initData),!((h=me)!=null&&h.length))return x.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),R;this.emitInitSegment&&(be.tracks=this.initTracks,this.emitInitSegment=!1);const Se=St(re,me),Me=Ee(me,re),qe=Me===null?i:Me;(d(_,qe,i,Se)||be.timescale!==_.timescale&&s)&&(be.initPTS=qe-i,_&&_.timescale===1&&x.warn(`Adjusting initPTS by ${be.initPTS-_.baseTime}`),this.initPTS=_={baseTime:be.initPTS,timescale:1});const Et=e?qe-_.baseTime/_.timescale:S,wt=Et+Se;zt(me,re,_.baseTime/_.timescale),Se>0?this.lastEndTime=wt:(x.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const an=!!me.audio,Rt=!!me.video;let _n="";an&&(_n+="audio"),Rt&&(_n+="video");const Yt={data1:re,startPTS:Et,startDTS:Et,endPTS:wt,endDTS:wt,type:_n,hasAudio:an,hasVideo:Rt,nb:1,dropped:0};return R.audio=Yt.type==="audio"?Yt:void 0,R.video=Yt.type!=="audio"?Yt:void 0,R.initSegment=be,R.id3=Ms(n,i,_,_),r.samples.length&&(R.text=eo(r,i,_)),R}}function d(o,e,t,n){if(o===null)return!0;const r=Math.max(n,1),i=e-o.baseTime/o.timescale;return Math.abs(i-t)>r}function f(o,e){const t=o==null?void 0:o.codec;if(t&&t.length>4)return t;if(e===G.AUDIO){if(t==="ec-3"||t==="ac-3"||t==="alac")return t;if(t==="fLaC"||t==="Opus")return tn(t,!1);const n="mp4a.40.5";return x.info(`Parsed audio codec "${t}" or audio object type not handled. Using "${n}"`),n}return x.warn(`Unhandled video codec "${t}"`),t==="hvc1"||t==="hev1"?"hvc1.1.6.L120.90":t==="av01"?"av01.0.04M.08":"avc1.42e01e"}let m;try{m=self.performance.now.bind(self.performance)}catch(o){x.debug("Unable to use Performance API on this environment"),m=Ge==null?void 0:Ge.Date.now}const I=[{demux:Vs,remux:l},{demux:ra,remux:Oa},{demux:Ds,remux:Oa},{demux:ds,remux:Oa}];I.splice(2,0,{demux:ls,remux:Oa});class ee{constructor(e,t,n,r,i){this.async=!1,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=e,this.typeSupported=t,this.config=n,this.vendor=r,this.id=i}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,n,r){const i=n.transmuxing;i.executeStart=m();let s=new Uint8Array(e);const{currentTransmuxState:c,transmuxConfig:h}=this;r&&(this.currentTransmuxState=r);const{contiguous:_,discontinuity:S,trackSwitch:R,accurateTimeOffset:re,timeOffset:be,initSegmentChange:me}=r||c,{audioCodec:Se,videoCodec:Me,defaultInitPts:qe,duration:Et,initSegmentData:wt}=h,an=Le(s,t);if(an&&an.method==="AES-128"){const kn=this.getDecrypter();if(kn.isSync()){let Yn=kn.softwareDecrypt(s,an.key.buffer,an.iv.buffer);if(n.part>-1&&(Yn=kn.flush()),!Yn)return i.executeEnd=m(),$e(n);s=new Uint8Array(Yn)}else return this.decryptionPromise=kn.webCryptoDecrypt(s,an.key.buffer,an.iv.buffer).then(Yn=>{const vn=this.push(Yn,null,n);return this.decryptionPromise=null,vn}),this.decryptionPromise}const Rt=this.needsProbing(S,R);if(Rt){const kn=this.configureTransmuxer(s);if(kn)return x.warn(`[transmuxer] ${kn.message}`),this.observer.emit(u.ERROR,u.ERROR,{type:y.MEDIA_ERROR,details:b.FRAG_PARSING_ERROR,fatal:!1,error:kn,reason:kn.message}),i.executeEnd=m(),$e(n)}(S||R||me||Rt)&&this.resetInitSegment(wt,Se,Me,Et,t),(S||me||Rt)&&this.resetInitialTimestamp(qe),_||this.resetContiguity();const _n=this.transmux(s,an,be,re,n),Yt=this.currentTransmuxState;return Yt.contiguous=!0,Yt.discontinuity=!1,Yt.trackSwitch=!1,i.executeEnd=m(),_n}flush(e){const t=e.transmuxing;t.executeStart=m();const{decrypter:n,currentTransmuxState:r,decryptionPromise:i}=this;if(i)return i.then(()=>this.flush(e));const s=[],{timeOffset:c}=r;if(n){const R=n.flush();R&&s.push(this.push(R,null,e))}const{demuxer:h,remuxer:_}=this;if(!h||!_)return t.executeEnd=m(),[$e(e)];const S=h.flush(c);return Ye(S)?S.then(R=>(this.flushRemux(s,R,e),s)):(this.flushRemux(s,S,e),s)}flushRemux(e,t,n){const{audioTrack:r,videoTrack:i,id3Track:s,textTrack:c}=t,{accurateTimeOffset:h,timeOffset:_}=this.currentTransmuxState;x.log(`[transmuxer.ts]: Flushed fragment ${n.sn}${n.part>-1?" p: "+n.part:""} of level ${n.level}`);const S=this.remuxer.remux(r,i,s,c,_,h,!0,this.id);e.push({remuxResult:S,chunkMeta:n}),n.transmuxing.executeEnd=m()}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:c}=this;!s||!c||(s.resetInitSegment(e,t,n,r),c.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:c,textTrack:h}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(i,s,c,h,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,vendor:i}=this;let s;for(let re=0,be=I.length;re<be;re++){var c;if((c=I[re].demux)!=null&&c.probe(e)){s=I[re];break}}if(!s)return new Error("Failed to find demuxer by probing fragment data");const h=this.demuxer,_=this.remuxer,S=s.remux,R=s.demux;(!_||!(_ instanceof S))&&(this.remuxer=new S(n,t,r,i)),(!h||!(h instanceof R))&&(this.demuxer=new R(n,t,r),this.probe=R.probe)}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new fa(this.config)),e}}function Le(o,e){let t=null;return o.byteLength>0&&(e==null?void 0:e.key)!=null&&e.iv!==null&&e.method!=null&&(t=e),t}const $e=o=>({remuxResult:{},chunkMeta:o});function Ye(o){return"then"in o&&o.then instanceof Function}class gt{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 At{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}}var Ht={exports:{}};(function(o){var e=Object.prototype.hasOwnProperty,t="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(t=!1));function r(h,_,S){this.fn=h,this.context=_,this.once=S||!1}function i(h,_,S,R,re){if(typeof S!="function")throw new TypeError("The listener must be a function");var be=new r(S,R||h,re),me=t?t+_:_;return h._events[me]?h._events[me].fn?h._events[me]=[h._events[me],be]:h._events[me].push(be):(h._events[me]=be,h._eventsCount++),h}function s(h,_){--h._eventsCount===0?h._events=new n:delete h._events[_]}function c(){this._events=new n,this._eventsCount=0}c.prototype.eventNames=function(){var _=[],S,R;if(this._eventsCount===0)return _;for(R in S=this._events)e.call(S,R)&&_.push(t?R.slice(1):R);return Object.getOwnPropertySymbols?_.concat(Object.getOwnPropertySymbols(S)):_},c.prototype.listeners=function(_){var S=t?t+_:_,R=this._events[S];if(!R)return[];if(R.fn)return[R.fn];for(var re=0,be=R.length,me=new Array(be);re<be;re++)me[re]=R[re].fn;return me},c.prototype.listenerCount=function(_){var S=t?t+_:_,R=this._events[S];return R?R.fn?1:R.length:0},c.prototype.emit=function(_,S,R,re,be,me){var Se=t?t+_:_;if(!this._events[Se])return!1;var Me=this._events[Se],qe=arguments.length,Et,wt;if(Me.fn){switch(Me.once&&this.removeListener(_,Me.fn,void 0,!0),qe){case 1:return Me.fn.call(Me.context),!0;case 2:return Me.fn.call(Me.context,S),!0;case 3:return Me.fn.call(Me.context,S,R),!0;case 4:return Me.fn.call(Me.context,S,R,re),!0;case 5:return Me.fn.call(Me.context,S,R,re,be),!0;case 6:return Me.fn.call(Me.context,S,R,re,be,me),!0}for(wt=1,Et=new Array(qe-1);wt<qe;wt++)Et[wt-1]=arguments[wt];Me.fn.apply(Me.context,Et)}else{var an=Me.length,Rt;for(wt=0;wt<an;wt++)switch(Me[wt].once&&this.removeListener(_,Me[wt].fn,void 0,!0),qe){case 1:Me[wt].fn.call(Me[wt].context);break;case 2:Me[wt].fn.call(Me[wt].context,S);break;case 3:Me[wt].fn.call(Me[wt].context,S,R);break;case 4:Me[wt].fn.call(Me[wt].context,S,R,re);break;default:if(!Et)for(Rt=1,Et=new Array(qe-1);Rt<qe;Rt++)Et[Rt-1]=arguments[Rt];Me[wt].fn.apply(Me[wt].context,Et)}}return!0},c.prototype.on=function(_,S,R){return i(this,_,S,R,!1)},c.prototype.once=function(_,S,R){return i(this,_,S,R,!0)},c.prototype.removeListener=function(_,S,R,re){var be=t?t+_:_;if(!this._events[be])return this;if(!S)return s(this,be),this;var me=this._events[be];if(me.fn)me.fn===S&&(!re||me.once)&&(!R||me.context===R)&&s(this,be);else{for(var Se=0,Me=[],qe=me.length;Se<qe;Se++)(me[Se].fn!==S||re&&!me[Se].once||R&&me[Se].context!==R)&&Me.push(me[Se]);Me.length?this._events[be]=Me.length===1?Me[0]:Me:s(this,be)}return this},c.prototype.removeAllListeners=function(_){var S;return _?(S=t?t+_:_,this._events[S]&&s(this,S)):(this._events=new n,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=t,c.EventEmitter=c,o.exports=c})(Ht);var gn=Ht.exports,wn=M(gn);class Un{constructor(e,t,n,r){this.error=null,this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0;const i=e.config;this.hls=e,this.id=t,this.useWorker=!!i.enableWorker,this.onTransmuxComplete=n,this.onFlush=r;const s=(_,S)=>{S=S||{},S.frag=this.frag,S.id=this.id,_===u.ERROR&&(this.error=S.error),this.hls.trigger(_,S)};this.observer=new wn,this.observer.on(u.FRAG_DECRYPTED,s),this.observer.on(u.ERROR,s);const c=ln(i.preferManagedMediaSource)||{isTypeSupported:()=>!1},h={mpeg:c.isTypeSupported("audio/mpeg"),mp3:c.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:c.isTypeSupported('audio/mp4; codecs="ac-3"')};if(this.useWorker&&typeof Worker!="undefined"&&(i.workerPath||_s())){try{i.workerPath?(x.log(`loading Web Worker ${i.workerPath} for "${t}"`),this.workerContext=rs(i.workerPath)):(x.log(`injecting Web Worker for "${t}"`),this.workerContext=ns()),this.onwmsg=R=>this.onWorkerMessage(R);const{worker:S}=this.workerContext;S.addEventListener("message",this.onwmsg),S.onerror=R=>{const re=new Error(`${R.message} (${R.filename}:${R.lineno})`);i.enableWorker=!1,x.warn(`Error in "${t}" Web Worker, fallback to inline`),this.hls.trigger(u.ERROR,{type:y.OTHER_ERROR,details:b.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:re})},S.postMessage({cmd:"init",typeSupported:h,vendor:"",id:t,config:JSON.stringify(i)})}catch(S){x.warn(`Error setting up "${t}" Web Worker, fallback to inline`,S),this.resetWorker(),this.error=null,this.transmuxer=new ee(this.observer,h,i,"",t)}return}this.transmuxer=new ee(this.observer,h,i,"",t)}resetWorker(){if(this.workerContext){const{worker:e,objectURL:t}=this.workerContext;t&&self.URL.revokeObjectURL(t),e.removeEventListener("message",this.onwmsg),e.onerror=null,e.terminate(),this.workerContext=null}}destroy(){if(this.workerContext)this.resetWorker(),this.onwmsg=void 0;else{const t=this.transmuxer;t&&(t.destroy(),this.transmuxer=null)}const e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null}push(e,t,n,r,i,s,c,h,_,S){var R,re;_.transmuxing.start=self.performance.now();const{transmuxer:be}=this,me=s?s.start:i.start,Se=i.decryptdata,Me=this.frag,qe=!(Me&&i.cc===Me.cc),Et=!(Me&&_.level===Me.level),wt=Me?_.sn-Me.sn:-1,an=this.part?_.part-this.part.index:-1,Rt=wt===0&&_.id>1&&_.id===(Me==null?void 0:Me.stats.chunkCount),_n=!Et&&(wt===1||wt===0&&(an===1||Rt&&an<=0)),Yt=self.performance.now();(Et||wt||i.stats.parsing.start===0)&&(i.stats.parsing.start=Yt),s&&(an||!_n)&&(s.stats.parsing.start=Yt);const kn=!(Me&&((R=i.initSegment)==null?void 0:R.url)===((re=Me.initSegment)==null?void 0:re.url)),Yn=new At(qe,_n,h,Et,me,kn);if(!_n||qe||kn){x.log(`[transmuxer-interface, ${i.type}]: Starting new transmux session for sn: ${_.sn} p: ${_.part} level: ${_.level} id: ${_.id}
discontinuity: ${qe}
trackSwitch: ${Et}
contiguous: ${_n}
accurateTimeOffset: ${h}
timeOffset: ${me}
initSegmentChange: ${kn}`);const vn=new gt(n,r,t,c,S);this.configureTransmuxer(vn)}if(this.frag=i,this.part=s,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:e,decryptdata:Se,chunkMeta:_,state:Yn},e instanceof ArrayBuffer?[e]:[]);else if(be){const vn=be.push(e,Se,_,Yn);Ye(vn)?(be.async=!0,vn.then(Mn=>{this.handleTransmuxComplete(Mn)}).catch(Mn=>{this.transmuxerError(Mn,_,"transmuxer-interface push error")})):(be.async=!1,this.handleTransmuxComplete(vn))}}flush(e){e.transmuxing.start=self.performance.now();const{transmuxer:t}=this;if(this.workerContext)this.workerContext.worker.postMessage({cmd:"flush",chunkMeta:e});else if(t){let n=t.flush(e);Ye(n)||t.async?(Ye(n)||(n=Promise.resolve(n)),n.then(i=>{this.handleFlushResult(i,e)}).catch(i=>{this.transmuxerError(i,e,"transmuxer-interface flush error")})):this.handleFlushResult(n,e)}}transmuxerError(e,t,n){this.hls&&(this.error=e,this.hls.trigger(u.ERROR,{type:y.MEDIA_ERROR,details:b.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,fatal:!1,error:e,err:e,reason:n}))}handleFlushResult(e,t){e.forEach(n=>{this.handleTransmuxComplete(n)}),this.onFlush(t)}onWorkerMessage(e){const t=e.data;if(!(t!=null&&t.event)){x.warn(`worker message received with no ${t?"event name":"data"}`);return}const n=this.hls;if(this.hls)switch(t.event){case"init":{var r;const i=(r=this.workerContext)==null?void 0:r.objectURL;i&&self.URL.revokeObjectURL(i);break}case"transmuxComplete":{this.handleTransmuxComplete(t.data);break}case"flush":{this.onFlush(t.data);break}case"workerLog":x[t.data.logType]&&x[t.data.logType](t.data.message);break;default:{t.data=t.data||{},t.data.frag=this.frag,t.data.id=this.id,n.trigger(t.event,t.data);break}}}configureTransmuxer(e){const{transmuxer:t}=this;this.workerContext?this.workerContext.worker.postMessage({cmd:"configure",config:e}):t&&t.configure(e)}handleTransmuxComplete(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)}}function er(o,e){if(o.length!==e.length)return!1;for(let t=0;t<o.length;t++)if(!dr(o[t].attrs,e[t].attrs))return!1;return!0}function dr(o,e,t){const n=o["STABLE-RENDITION-ID"];return n&&!t?n===e["STABLE-RENDITION-ID"]:!(t||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some(r=>o[r]!==e[r])}function _r(o,e){return e.label.toLowerCase()===o.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(o.lang||"").toLowerCase())}const Sr=100;class ti extends _a{constructor(e,t,n){super(e,t,n,"[audio-stream-controller]",Ke.AUDIO),this.videoBuffer=null,this.videoTrackCC=-1,this.waitingVideoCC=-1,this.bufferedTrack=null,this.switchingTrack=null,this.trackId=-1,this.waitingData=null,this.mainDetails=null,this.flushing=!1,this.bufferFlushed=!1,this.cachedTrackLoadedData=null,this._registerListeners()}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null,this.bufferedTrack=null,this.switchingTrack=null}_registerListeners(){const{hls:e}=this;e.on(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.LEVEL_LOADED,this.onLevelLoaded,this),e.on(u.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(u.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(u.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(u.ERROR,this.onError,this),e.on(u.BUFFER_RESET,this.onBufferReset,this),e.on(u.BUFFER_CREATED,this.onBufferCreated,this),e.on(u.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(u.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(u.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(u.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.LEVEL_LOADED,this.onLevelLoaded,this),e.off(u.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(u.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(u.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(u.ERROR,this.onError,this),e.off(u.BUFFER_RESET,this.onBufferReset,this),e.off(u.BUFFER_CREATED,this.onBufferCreated,this),e.off(u.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(u.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(u.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(u.FRAG_BUFFERED,this.onFragBuffered,this)}onInitPtsFound(e,{frag:t,id:n,initPTS:r,timescale:i}){if(n==="main"){const s=t.cc;this.initPTS[t.cc]={baseTime:r,timescale:i},this.log(`InitPTS for cc: ${s} found from main: ${r}`),this.videoTrackCC=s,this.state===hn.WAITING_INIT_PTS&&this.tick()}}startLoad(e){if(!this.levels){this.startPosition=e,this.state=hn.STOPPED;return}const t=this.lastCurrentTime;this.stopLoad(),this.setInterval(Sr),t>0&&e===-1?(this.log(`Override startPosition with lastCurrentTime @${t.toFixed(3)}`),e=t,this.state=hn.IDLE):(this.loadedmetadata=!1,this.state=hn.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}doTick(){switch(this.state){case hn.IDLE:this.doTickIdle();break;case hn.WAITING_TRACK:{var e;const{levels:n,trackId:r}=this,i=n==null||(e=n[r])==null?void 0:e.details;if(i){if(this.waitForCdnTuneIn(i))break;this.state=hn.WAITING_INIT_PTS}break}case hn.FRAG_LOADING_WAITING_RETRY:{var t;const n=performance.now(),r=this.retryDate;if(!r||n>=r||(t=this.media)!=null&&t.seeking){const{levels:i,trackId:s}=this;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((i==null?void 0:i[s])||null),this.state=hn.IDLE}break}case hn.WAITING_INIT_PTS:{const n=this.waitingData;if(n){const{frag:r,part:i,cache:s,complete:c}=n;if(this.initPTS[r.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=hn.FRAG_LOADING;const h=s.flush(),_={frag:r,part:i,payload:h,networkDetails:null};this._handleFragmentLoadProgress(_),c&&super._handleFragmentLoadComplete(_)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log(`Waiting fragment cc (${r.cc}) cancelled because video is at cc ${this.videoTrackCC}`),this.clearWaitingFragment();else{const h=this.getLoadPosition(),_=Ur.bufferInfo(this.mediaBuffer,h,this.config.maxBufferHole);Bi(_.end,this.config.maxFragLookUpTolerance,r)<0&&(this.log(`Waiting fragment cc (${r.cc}) @ ${r.start} cancelled because another fragment at ${_.end} is needed`),this.clearWaitingFragment())}}else this.state=hn.IDLE}}this.onTickEnd()}clearWaitingFragment(){const e=this.waitingData;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=hn.IDLE)}resetLoadingState(){this.clearWaitingFragment(),super.resetLoadingState()}onTickEnd(){const{media:e}=this;e!=null&&e.readyState&&(this.lastCurrentTime=e.currentTime)}doTickIdle(){const{hls:e,levels:t,media:n,trackId:r}=this,i=e.config;if(!this.buffering||!n&&(this.startFragRequested||!i.startFragPrefetch)||!(t!=null&&t[r]))return;const s=t[r],c=s.details;if(!c||c.live&&this.levelLastLoaded!==s||this.waitForCdnTuneIn(c)){this.state=hn.WAITING_TRACK;return}const h=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&h&&(this.bufferFlushed=!1,this.afterBufferFlushed(h,G.AUDIO,Ke.AUDIO));const _=this.getFwdBufferInfo(h,Ke.AUDIO);if(_===null)return;const{bufferedTrack:S,switchingTrack:R}=this;if(!R&&this._streamEnded(_,c)){e.trigger(u.BUFFER_EOS,{type:"audio"}),this.state=hn.ENDED;return}const re=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,Ke.MAIN),be=_.len,me=this.getMaxBufferLength(re==null?void 0:re.len),Se=c.fragments,Me=Se[0].start;let qe=this.flushing?this.getLoadPosition():_.end;if(R&&n){const Rt=this.getLoadPosition();S&&!dr(R.attrs,S.attrs)&&(qe=Rt),c.PTSKnown&&Rt<Me&&(_.end>Me||_.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),n.currentTime=Me+.05)}if(be>=me&&!R&&qe<Se[Se.length-1].start)return;let Et=this.getNextFragment(qe,c),wt=!1;if(Et&&this.isLoopLoading(Et,qe)&&(wt=!!Et.gap,Et=this.getNextFragmentLoopLoading(Et,c,_,Ke.MAIN,me)),!Et){this.bufferFlushed=!0;return}const an=re&&Et.start>re.end+c.targetduration;if(an||!(re!=null&&re.len)&&_.len){const Rt=this.getAppendedFrag(Et.start,Ke.MAIN);if(Rt===null||(wt||(wt=!!Rt.gap||!!an&&re.len===0),an&&!wt||wt&&_.nextStart&&_.nextStart<Rt.end))return}this.loadFragment(Et,s,qe)}getMaxBufferLength(e){const t=super.getMaxBufferLength();return e?Math.min(Math.max(t,e),this.config.maxMaxBufferLength):t}onMediaDetaching(){this.videoBuffer=null,this.bufferFlushed=this.flushing=!1,super.onMediaDetaching()}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map(n=>new Fr(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.setInterval(Sr):this.resetTransmuxer(),n?(this.switchingTrack=t,this.state=hn.IDLE,this.flushAudioIfNeeded(t)):(this.switchingTrack=null,this.bufferedTrack=t,this.state=hn.STOPPED),this.tick()}onManifestLoading(){this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=this.flushing=!1,this.levels=this.mainDetails=this.waitingData=this.bufferedTrack=this.cachedTrackLoadedData=this.switchingTrack=null,this.startFragRequested=!1,this.trackId=this.videoTrackCC=this.waitingVideoCC=-1}onLevelLoaded(e,t){this.mainDetails=t.details,this.cachedTrackLoadedData!==null&&(this.hls.trigger(u.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)}onAudioTrackLoaded(e,t){var n;if(this.mainDetails==null){this.cachedTrackLoadedData=t;return}const{levels:r}=this,{details:i,id:s}=t;if(!r){this.warn(`Audio tracks were reset while loading level ${s}`);return}this.log(`Audio track ${s} loaded [${i.startSN},${i.endSN}]${i.lastPartSn?`[part-${i.lastPartSn}-${i.lastPartIndex}]`:""},duration:${i.totalduration}`);const c=r[s];let h=0;if(i.live||(n=c.details)!=null&&n.live){this.checkLiveUpdate(i);const S=this.mainDetails;if(i.deltaUpdateFailed||!S)return;if(!c.details&&i.hasProgramDateTime&&S.hasProgramDateTime)Ui(i,S),h=i.fragments[0].start;else{var _;h=this.alignPlaylists(i,c.details,(_=this.levelLastLoaded)==null?void 0:_.details)}}c.details=i,this.levelLastLoaded=c,!this.startFragRequested&&(this.mainDetails||!i.live)&&this.setStartPosition(this.mainDetails||i,h),this.state===hn.WAITING_TRACK&&!this.waitForCdnTuneIn(i)&&(this.state=hn.IDLE),this.tick()}_handleFragmentLoadProgress(e){var t;const{frag:n,part:r,payload:i}=e,{config:s,trackId:c,levels:h}=this;if(!h){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 _=h[c];if(!_){this.warn("Audio track is undefined on fragment load progress");return}const S=_.details;if(!S){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(n.start);return}const R=s.defaultAudioCodec||_.audioCodec||"mp4a.40.2";let re=this.transmuxer;re||(re=this.transmuxer=new Un(this.hls,Ke.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const be=this.initPTS[n.cc],me=(t=n.initSegment)==null?void 0:t.data;if(be!==void 0){const Me=r?r.index:-1,qe=Me!==-1,Et=new ga(n.level,n.sn,n.stats.chunkCount,i.byteLength,Me,qe);re.push(i,me,R,"",n,r,S.totalduration,!1,Et,be)}else{this.log(`Unknown video PTS for cc ${n.cc}, waiting for video PTS before demuxing audio frag ${n.sn} of [${S.startSN} ,${S.endSN}],track ${c}`);const{cache:Se}=this.waitingData=this.waitingData||{frag:n,part:r,cache:new ts,complete:!1};Se.push(new Uint8Array(i)),this.waitingVideoCC=this.videoTrackCC,this.state=hn.WAITING_INIT_PTS}}_handleFragmentLoadComplete(e){if(this.waitingData){this.waitingData.complete=!0;return}super._handleFragmentLoadComplete(e)}onBufferReset(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1}onBufferCreated(e,t){const n=t.tracks.audio;n&&(this.mediaBuffer=n.buffer||null),t.tracks.video&&(this.videoBuffer=t.tracks.video.buffer||null)}onFragBuffered(e,t){const{frag:n,part:r}=t;if(n.type!==Ke.AUDIO){if(!this.loadedmetadata&&n.type===Ke.MAIN){const i=this.videoBuffer||this.media;i&&Ur.getBuffered(i).length&&(this.loadedmetadata=!0)}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(n.sn!=="initSegment"){this.fragPrevious=n;const i=this.switchingTrack;i&&(this.bufferedTrack=i,this.switchingTrack=null,this.hls.trigger(u.AUDIO_TRACK_SWITCHED,j({},i)))}this.fragBufferedComplete(n,r)}onError(e,t){var n;if(t.fatal){this.state=hn.ERROR;return}switch(t.details){case b.FRAG_GAP:case b.FRAG_PARSING_ERROR:case b.FRAG_DECRYPT_ERROR:case b.FRAG_LOAD_ERROR:case b.FRAG_LOAD_TIMEOUT:case b.KEY_LOAD_ERROR:case b.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Ke.AUDIO,t);break;case b.AUDIO_TRACK_LOAD_ERROR:case b.AUDIO_TRACK_LOAD_TIMEOUT:case b.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===hn.WAITING_TRACK&&((n=t.context)==null?void 0:n.type)===qt.AUDIO_TRACK&&(this.state=hn.IDLE);break;case b.BUFFER_APPEND_ERROR:case b.BUFFER_FULL_ERROR:if(!t.parent||t.parent!=="audio")return;if(t.details===b.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case b.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onBufferFlushing(e,{type:t}){t!==G.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==G.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===hn.ENDED&&(this.state=hn.IDLE);const n=this.mediaBuffer||this.media;n&&(this.afterBufferFlushed(n,t,Ke.AUDIO),this.tick())}}_handleTransmuxComplete(e){var t;const n="audio",{hls:r}=this,{remuxResult:i,chunkMeta:s}=e,c=this.getCurrentContext(s);if(!c){this.resetWhenMissingContext(s);return}const{frag:h,part:_,level:S}=c,{details:R}=S,{audio:re,text:be,id3:me,initSegment:Se}=i;if(this.fragContextChanged(h)||!R){this.fragmentTracker.removeFragment(h);return}if(this.state=hn.PARSING,this.switchingTrack&&re&&this.completeAudioSwitch(this.switchingTrack),Se!=null&&Se.tracks){const Me=h.initSegment||h;this._bufferInitSegment(S,Se.tracks,Me,s),r.trigger(u.FRAG_PARSING_INIT_SEGMENT,{frag:Me,id:n,tracks:Se.tracks})}if(re){const{startPTS:Me,endPTS:qe,startDTS:Et,endDTS:wt}=re;_&&(_.elementaryStreams[G.AUDIO]={startPTS:Me,endPTS:qe,startDTS:Et,endDTS:wt}),h.setElementaryStreamInfo(G.AUDIO,Me,qe,Et,wt),this.bufferFragmentData(re,h,_,s)}if(me!=null&&(t=me.samples)!=null&&t.length){const Me=a({id:n,frag:h,details:R},me);r.trigger(u.FRAG_PARSING_METADATA,Me)}if(be){const Me=a({id:n,frag:h,details:R},be);r.trigger(u.FRAG_PARSING_USERDATA,Me)}}_bufferInitSegment(e,t,n,r){if(this.state!==hn.PARSING)return;t.video&&delete t.video;const i=t.audio;if(!i)return;i.id="audio";const s=e.audioCodec;this.log(`Init audio buffer, container:${i.container}, codecs[level/parsed]=[${s}/${i.codec}]`),s&&s.split(",").length===1&&(i.levelCodec=s),this.hls.trigger(u.BUFFER_CODECS,t);const c=i.initSegment;if(c!=null&&c.byteLength){const h={type:"audio",frag:n,part:null,chunkMeta:r,parent:n.type,data:c};this.hls.trigger(u.BUFFER_APPENDING,h)}this.tickImmediate()}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);if(this.fragCurrent=e,this.switchingTrack||r===Br.NOT_LOADED||r===Br.PARTIAL){var i;if(e.sn==="initSegment")this._loadInitSegment(e,t);else if((i=t.details)!=null&&i.live&&!this.initPTS[e.cc]){this.log(`Waiting for video PTS in continuity counter ${e.cc} of live stream before loading audio fragment ${e.sn} of level ${this.trackId}`),this.state=hn.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragments[0].start!==t.details.fragments[0].start&&Ui(t.details,s)}else this.startFragRequested=!0,super.loadFragment(e,t,n)}else this.clearTrackerIfNeeded(e)}flushAudioIfNeeded(e){const{media:t,bufferedTrack:n}=this,r=n==null?void 0:n.attrs,i=e.attrs;t&&r&&(r.CHANNELS!==i.CHANNELS||n.name!==e.name||n.lang!==e.lang)&&(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null)}completeAudioSwitch(e){const{hls:t}=this;this.flushAudioIfNeeded(e),this.bufferedTrack=e,this.switchingTrack=null,t.trigger(u.AUDIO_TRACK_SWITCHED,j({},e))}}class Xr extends Ir{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(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.MANIFEST_PARSED,this.onManifestParsed,this),e.on(u.LEVEL_LOADING,this.onLevelLoading,this),e.on(u.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(u.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(u.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.MANIFEST_PARSED,this.onManifestParsed,this),e.off(u.LEVEL_LOADING,this.onLevelLoading,this),e.off(u.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(u.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(u.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 c=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,c)}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(c=>(r==null?void 0:r.indexOf(c))===-1)){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const c=this.tracks.filter(re=>!n||n.indexOf(re.groupId)!==-1);if(c.length)this.selectDefaultTrack&&!c.some(re=>re.default)&&(this.selectDefaultTrack=!1),c.forEach((re,be)=>{re.id=be});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=c;const h=this.hls.config.audioPreference;if(!i&&h){const re=Si(h,c,cr);if(re>-1)i=c[re];else{const be=Si(h,this.tracks);i=this.tracks[be]}}let _=this.findTrackId(i);_===-1&&i&&(_=this.findTrackId(null));const S={audioTracks:c};this.log(`Updating audio tracks, ${c.length} track(s) found in group(s): ${n==null?void 0:n.join(",")}`),this.hls.trigger(u.AUDIO_TRACKS_UPDATED,S);const R=this.trackId;if(_!==-1&&R===-1)this.setAudioTrack(_);else if(c.length&&R===-1){var s;const re=new Error(`No audio track selected for current audio group-ID(s): ${(s=this.groupIds)==null?void 0:s.join(",")} track count: ${c.length}`);this.warn(re.message),this.hls.trigger(u.ERROR,{type:y.MEDIA_ERROR,details:b.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:re})}}else this.shouldReloadPlaylist(i)&&this.setAudioTrack(this.trackId)}onError(e,t){t.fatal||!t.context||t.context.type===qt.AUDIO_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&(this.requestScheduled=-1,this.checkRetry(t))}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(e){this.selectDefaultTrack=!1,this.setAudioTrack(e)}setAudioOption(e){const t=this.hls;if(t.config.audioPreference=e,e){const n=this.allAudioTracks;if(this.selectDefaultTrack=!1,n.length){const r=this.currentTrack;if(r&&Oi(e,r,cr))return r;const i=Si(e,this.tracksInGroup,cr);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 c=mi(e,t.levels,n,s,cr);if(c===-1)return null;t.nextLoadLevel=c}if(e.channels||e.audioCodec){const s=Si(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.clearTimer(),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(u.AUDIO_TRACK_SWITCHING,j({},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||Oi(e,r,cr)))return n}if(e){const{name:n,lang:r,assocLang:i,characteristics:s,audioCodec:c,channels:h}=e;for(let _=0;_<t.length;_++){const S=t[_];if(Oi({name:n,lang:r,assocLang:i,characteristics:s,audioCodec:c,channels:h},S,cr))return _}for(let _=0;_<t.length;_++){const S=t[_];if(dr(e.attrs,S.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return _}for(let _=0;_<t.length;_++){const S=t[_];if(dr(e.attrs,S.attrs,["LANGUAGE"]))return _}}return-1}loadPlaylist(e){const t=this.currentTrack;if(this.shouldLoadPlaylist(t)&&t){super.loadPlaylist();const n=t.id,r=t.groupId;let i=t.url;if(e)try{i=e.addDirectives(i)}catch(s){this.warn(`Could not construct new URL with HLS Delivery Directives: ${s}`)}this.log(`loading audio-track playlist ${n} "${t.name}" lang:${t.lang} group:${r}`),this.clearTimer(),this.hls.trigger(u.AUDIO_TRACK_LOADING,{url:i,id:n,groupId:r,deliveryDirectives:e||null})}}}const ri=500;class ai extends _a{constructor(e,t,n){super(e,t,n,"[subtitle-stream-controller]",Ke.SUBTITLE),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this._registerListeners()}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}_registerListeners(){const{hls:e}=this;e.on(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.LEVEL_LOADED,this.onLevelLoaded,this),e.on(u.ERROR,this.onError,this),e.on(u.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(u.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(u.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(u.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(u.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(u.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.LEVEL_LOADED,this.onLevelLoaded,this),e.off(u.ERROR,this.onError,this),e.off(u.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(u.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(u.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(u.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(u.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(u.FRAG_BUFFERED,this.onFragBuffered,this)}startLoad(e){this.stopLoad(),this.state=hn.IDLE,this.setInterval(ri),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}onManifestLoading(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()}onMediaDetaching(){this.tracksBuffered=[],super.onMediaDetaching()}onLevelLoaded(e,t){this.mainDetails=t.details}onSubtitleFragProcessed(e,t){const{frag:n,success:r}=t;if(this.fragPrevious=n,this.state=hn.IDLE,!r)return;const i=this.tracksBuffered[this.currentTrackId];if(!i)return;let s;const c=n.start;for(let _=0;_<i.length;_++)if(c>=i[_].start&&c<=i[_].end){s=i[_];break}const h=n.start+n.duration;s?s.end=h:(s={start:c,end:h},i.push(s)),this.fragmentTracker.fragBuffered(n),this.fragBufferedComplete(n,null)}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 c=0;c<s.length;){if(s[c].end<=i){s.shift();continue}else if(s[c].start<i)s[c].start=i;else break;c++}}),this.fragmentTracker.removeFragmentsInRange(n,i,Ke.SUBTITLE)}}onFragBuffered(e,t){if(!this.loadedmetadata&&t.frag.type===Ke.MAIN){var n;(n=this.media)!=null&&n.buffered.length&&(this.loadedmetadata=!0)}}onError(e,t){const n=t.frag;(n==null?void 0:n.type)===Ke.SUBTITLE&&(t.details===b.FRAG_GAP&&this.fragmentTracker.fragBuffered(n,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==hn.STOPPED&&(this.state=hn.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&er(this.levels,t)){this.levels=t.map(n=>new Fr(n));return}this.tracksBuffered=[],this.levels=t.map(n=>{const r=new Fr(n);return this.tracksBuffered[r.id]=[],r}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,Ke.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.setInterval(ri)}onSubtitleTrackLoaded(e,t){var n;const{currentTrackId:r,levels:i}=this,{details:s,id:c}=t;if(!i){this.warn(`Subtitle tracks were reset while loading level ${c}`);return}const h=i[c];if(c>=i.length||!h)return;this.log(`Subtitle track ${c} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""},duration:${s.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let _=0;if(s.live||(n=h.details)!=null&&n.live){const R=this.mainDetails;if(s.deltaUpdateFailed||!R)return;const re=R.fragments[0];if(!h.details)s.hasProgramDateTime&&R.hasProgramDateTime?(Ui(s,R),_=s.fragments[0].start):re&&(_=re.start,Wt(s,_));else{var S;_=this.alignPlaylists(s,h.details,(S=this.levelLastLoaded)==null?void 0:S.details),_===0&&re&&(_=re.start,Wt(s,_))}}h.details=s,this.levelLastLoaded=h,c===r&&(!this.startFragRequested&&(this.mainDetails||!s.live)&&this.setStartPosition(this.mainDetails||s,_),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===hn.IDLE&&(Yr(null,s.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),h.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&&r.method==="AES-128"){const s=performance.now();this.decrypter.decrypt(new Uint8Array(n),r.key.buffer,r.iv.buffer).catch(c=>{throw i.trigger(u.ERROR,{type:y.MEDIA_ERROR,details:b.FRAG_DECRYPT_ERROR,fatal:!1,error:c,reason:c.message,frag:t}),c}).then(c=>{const h=performance.now();i.trigger(u.FRAG_DECRYPTED,{frag:t,payload:c,stats:{tstart:s,tdecrypt:h}})}).catch(c=>{this.warn(`${c.name}: ${c.message}`),this.state=hn.IDLE})}}doTick(){if(!this.media){this.state=hn.IDLE;return}if(this.state===hn.IDLE){const{currentTrackId:e,levels:t}=this,n=t==null?void 0:t[e];if(!n||!t.length||!n.details)return;const{config:r}=this,i=this.getLoadPosition(),s=Ur.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],i,r.maxBufferHole),{end:c,len:h}=s,_=this.getFwdBufferInfo(this.media,Ke.MAIN),S=n.details,R=this.getMaxBufferLength(_==null?void 0:_.len)+S.levelTargetDuration;if(h>R)return;const re=S.fragments,be=re.length,me=S.edge;let Se=null;const Me=this.fragPrevious;if(c<me){const qe=r.maxFragLookUpTolerance,Et=c>me-qe?0:qe;Se=Yr(Me,re,Math.max(re[0].start,c),Et),!Se&&Me&&Me.start<re[0].start&&(Se=re[0])}else Se=re[be-1];if(!Se)return;if(Se=this.mapToInitFragWhenRequired(Se),Se.sn!=="initSegment"){const qe=Se.sn-S.startSN,Et=re[qe-1];Et&&Et.cc===Se.cc&&this.fragmentTracker.getState(Et)===Br.NOT_LOADED&&(Se=Et)}this.fragmentTracker.getState(Se)===Br.NOT_LOADED&&this.loadFragment(Se,n,c)}}getMaxBufferLength(e){const t=super.getMaxBufferLength();return e?Math.max(t,e):t}loadFragment(e,t,n){this.fragCurrent=e,e.sn==="initSegment"?this._loadInitSegment(e,t):(this.startFragRequested=!0,super.loadFragment(e,t,n))}get mediaBufferTimeRanges(){return new di(this.tracksBuffered[this.currentTrackId]||[])}}class di{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)}}}}class Ri extends Ir{constructor(e){super(e,"[subtitle-track-controller]"),this.media=null,this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.queuedDefaultTrack=-1,this.asyncPollTrackChange=()=>this.pollTrackChange(0),this.useTextTrackPolling=!1,this.subtitlePollingInterval=-1,this._subtitleDisplay=!0,this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let t=null;const n=En(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(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.MANIFEST_PARSED,this.onManifestParsed,this),e.on(u.LEVEL_LOADING,this.onLevelLoading,this),e.on(u.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(u.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(u.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.MANIFEST_PARSED,this.onManifestParsed,this),e.off(u.LEVEL_LOADING,this.onLevelLoading,this),e.off(u.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(u.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(u.ERROR,this.onError,this)}onMediaAttached(e,t){this.media=t.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))}pollTrackChange(e){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,e)}onMediaDetaching(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),En(this.media.textTracks).forEach(t=>{tr(t)}),this.subtitleTrack=-1,this.media=null}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.subtitleTracks}onSubtitleTrackLoaded(e,t){const{id: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 c=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,c)}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(S=>!n||n.indexOf(S.groupId)!==-1);if(s.length)this.selectDefaultTrack&&!s.some(S=>S.default)&&(this.selectDefaultTrack=!1),s.forEach((S,R)=>{S.id=R});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=s;const c=this.hls.config.subtitlePreference;if(!i&&c){this.selectDefaultTrack=!1;const S=Si(c,s);if(S>-1)i=s[S];else{const R=Si(c,this.tracks);i=this.tracks[R]}}let h=this.findTrackId(i);h===-1&&i&&(h=this.findTrackId(null));const _={subtitleTracks:s};this.log(`Updating subtitle tracks, ${s.length} track(s) found in "${n==null?void 0:n.join(",")}" group-id`),this.hls.trigger(u.SUBTITLE_TRACKS_UPDATED,_),h!==-1&&this.trackId===-1&&this.setSubtitleTrack(h)}else this.shouldReloadPlaylist(i)&&this.setSubtitleTrack(this.trackId)}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||Oi(i,e)))return r}if(e){for(let r=0;r<t.length;r++){const i=t[r];if(dr(e.attrs,i.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return r}for(let r=0;r<t.length;r++){const i=t[r];if(dr(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(_r(r,e))return n}}return-1}onError(e,t){t.fatal||!t.context||t.context.type===qt.SUBTITLE_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&this.checkRetry(t)}get allSubtitleTracks(){return this.tracks}get subtitleTracks(){return this.tracksInGroup}get subtitleTrack(){return this.trackId}set subtitleTrack(e){this.selectDefaultTrack=!1,this.setSubtitleTrack(e)}setSubtitleOption(e){if(this.hls.config.subtitlePreference=e,e){const t=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,t.length){const n=this.currentTrack;if(n&&Oi(e,n))return n;const r=Si(e,this.tracksInGroup);if(r>-1){const i=this.tracksInGroup[r];return this.setSubtitleTrack(r),i}else{if(n)return null;{const i=Si(e,t);if(i>-1)return t[i]}}}}return null}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;if(this.shouldLoadPlaylist(t)&&t){const n=t.id,r=t.groupId;let i=t.url;if(e)try{i=e.addDirectives(i)}catch(s){this.warn(`Could not construct new URL with HLS Delivery Directives: ${s}`)}this.log(`Loading subtitle playlist for id ${n}`),this.hls.trigger(u.SUBTITLE_TRACK_LOADING,{url:i,id:n,groupId:r,deliveryDirectives:e||null})}}toggleTrackModes(){const{media:e}=this;if(!e)return;const t=En(e.textTracks),n=this.currentTrack;let r;if(n&&(r=t.filter(i=>_r(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||!A(e)){this.warn(`Invalid subtitle track id: ${e}`);return}this.clearTimer(),this.selectDefaultTrack=!1;const n=this.currentTrack,r=t[e]||null;if(this.trackId=e,this.currentTrack=r,this.toggleTrackModes(),!r){this.hls.trigger(u.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:c="",name:h,type:_,url:S}=r;this.hls.trigger(u.SUBTITLE_TRACK_SWITCH,{id:s,groupId:c,name:h,type:_,url:S});const R=this.switchParams(r.url,n==null?void 0:n.details,r.details);this.loadPlaylist(R)}}class Ti{constructor(e){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=e}append(e,t,n){const r=this.queues[t];r.push(e),r.length===1&&!n&&this.executeNext(t)}insertAbort(e,t){this.queues[t].unshift(e),this.executeNext(t)}appendBlocker(e){let t;const n=new Promise(i=>{t=i}),r={execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};return this.append(r,e),n}executeNext(e){const t=this.queues[e];if(t.length){const n=t[0];try{n.execute()}catch(r){x.warn(`[buffer-operation-queue]: Exception executing "${e}" SourceBuffer operation: ${r}`),n.onError(r);const i=this.buffers[e];i!=null&&i.updating||this.shiftAndExecuteNext(e)}}}shiftAndExecuteNext(e){this.queues[e].shift(),this.executeNext(e)}current(e){return this.queues[e][0]}}const Wr=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/;class Ki{constructor(e){this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.appendSource=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this.log=void 0,this.warn=void 0,this.error=void 0,this._onEndStreaming=n=>{this.hls&&this.hls.pauseBuffering()},this._onStartStreaming=n=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=()=>{const{media:n,mediaSource:r}=this;this.log("Media source opened"),n&&(n.removeEventListener("emptied",this._onMediaEmptied),this.updateMediaElementDuration(),this.hls.trigger(u.MEDIA_ATTACHED,{media:n,mediaSource:r})),r&&r.removeEventListener("sourceopen",this._onMediaSourceOpen),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&&x.error(`Media element src was set while attaching MediaSource (${r} > ${n})`)},this.hls=e;const t="[buffer-controller]";this.appendSource=Ln(ln(e.config.preferManagedMediaSource)),this.log=x.log.bind(x,t),this.warn=x.warn.bind(x,t),this.error=x.error.bind(x,t),this._initSourceBuffer(),this.registerListeners()}hasSourceTypes(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null,this.hls=null}registerListeners(){const{hls:e}=this;e.on(u.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.MANIFEST_PARSED,this.onManifestParsed,this),e.on(u.BUFFER_RESET,this.onBufferReset,this),e.on(u.BUFFER_APPENDING,this.onBufferAppending,this),e.on(u.BUFFER_CODECS,this.onBufferCodecs,this),e.on(u.BUFFER_EOS,this.onBufferEos,this),e.on(u.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(u.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(u.FRAG_PARSED,this.onFragParsed,this),e.on(u.FRAG_CHANGED,this.onFragChanged,this)}unregisterListeners(){const{hls:e}=this;e.off(u.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.MANIFEST_PARSED,this.onManifestParsed,this),e.off(u.BUFFER_RESET,this.onBufferReset,this),e.off(u.BUFFER_APPENDING,this.onBufferAppending,this),e.off(u.BUFFER_CODECS,this.onBufferCodecs,this),e.off(u.BUFFER_EOS,this.onBufferEos,this),e.off(u.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(u.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(u.FRAG_PARSED,this.onFragParsed,this),e.off(u.FRAG_CHANGED,this.onFragChanged,this)}_initSourceBuffer(){this.sourceBuffer={},this.operationQueue=new Ti(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]},this.appendErrors={audio:0,video:0,audiovideo:0},this.lastMpegAudioChunk=null}onManifestLoading(){this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=0,this.details=null}onManifestParsed(e,t){let n=2;(t.audio&&!t.video||!t.altAudio)&&(n=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=n,this.log(`${this.bufferCodecEventsExpected} bufferCodec event(s) expected`)}onMediaAttaching(e,t){const n=this.media=t.media,r=ln(this.appendSource);if(n&&r){var i;const s=this.mediaSource=new r;this.log(`created media source: ${(i=s.constructor)==null?void 0:i.name}`),s.addEventListener("sourceopen",this._onMediaSourceOpen),s.addEventListener("sourceended",this._onMediaSourceEnded),s.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(s.addEventListener("startstreaming",this._onStartStreaming),s.addEventListener("endstreaming",this._onEndStreaming));const c=this._objectUrl=self.URL.createObjectURL(s);if(this.appendSource)try{n.removeAttribute("src");const h=self.ManagedMediaSource;n.disableRemotePlayback=n.disableRemotePlayback||h&&s instanceof h,Ji(n),ji(n,c),n.load()}catch(h){n.src=c}else n.src=c;n.addEventListener("emptied",this._onMediaEmptied)}}onMediaDetaching(){const{media:e,mediaSource:t,_objectUrl:n}=this;if(t){if(this.log("media source detaching"),t.readyState==="open")try{t.endOfStream()}catch(r){this.warn(`onMediaDetaching: ${r.message} while calling endOfStream`)}this.onBufferReset(),t.removeEventListener("sourceopen",this._onMediaSourceOpen),t.removeEventListener("sourceended",this._onMediaSourceEnded),t.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(t.removeEventListener("startstreaming",this._onStartStreaming),t.removeEventListener("endstreaming",this._onEndStreaming)),e&&(e.removeEventListener("emptied",this._onMediaEmptied),n&&self.URL.revokeObjectURL(n),this.mediaSrc===n?(e.removeAttribute("src"),this.appendSource&&Ji(e),e.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(u.MEDIA_DETACHED,void 0)}onBufferReset(){this.getSourceBufferTypes().forEach(e=>{this.resetBuffer(e)}),this._initSourceBuffer(),this.hls.resumeBuffering()}resetBuffer(e){const t=this.sourceBuffer[e];try{if(t){var n;this.removeBufferListeners(e),this.sourceBuffer[e]=void 0,(n=this.mediaSource)!=null&&n.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(t)}}catch(r){this.warn(`onBufferReset ${e}`,r)}}onBufferCodecs(e,t){const n=this.getSourceBufferTypes().length,r=Object.keys(t);if(r.forEach(s=>{if(n){const h=this.tracks[s];if(h&&typeof h.buffer.changeType=="function"){var c;const{id:_,codec:S,levelCodec:R,container:re,metadata:be}=t[s],me=nn(h.codec,h.levelCodec),Se=me==null?void 0:me.replace(Wr,"$1");let Me=nn(S,R);const qe=(c=Me)==null?void 0:c.replace(Wr,"$1");if(Me&&Se!==qe){s.slice(0,5)==="audio"&&(Me=tn(Me,this.appendSource));const Et=`${re};codecs=${Me}`;this.appendChangeType(s,Et),this.log(`switching codec ${me} to ${Me}`),this.tracks[s]={buffer:h.buffer,codec:S,container:re,levelCodec:R,metadata:be,id:_}}}}else this.pendingTracks[s]=t[s]}),n)return;const i=Math.max(this.bufferCodecEventsExpected-1,0);this.bufferCodecEventsExpected!==i&&(this.log(`${i} bufferCodec event(s) expected ${r.join(",")}`),this.bufferCodecEventsExpected=i),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()}appendChangeType(e,t){const{operationQueue:n}=this,r={execute:()=>{const i=this.sourceBuffer[e];i&&(this.log(`changing ${e} sourceBuffer type to ${t}`),i.changeType(t)),n.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:i=>{this.warn(`Failed to change ${e} SourceBuffer type`,i)}};n.append(r,e,!!this.pendingTracks[e])}onBufferAppending(e,t){const{hls:n,operationQueue:r,tracks:i}=this,{data:s,type:c,frag:h,part:_,chunkMeta:S}=t,R=S.buffering[c],re=self.performance.now();R.start=re;const be=h.stats.buffering,me=_?_.stats.buffering:null;be.start===0&&(be.start=re),me&&me.start===0&&(me.start=re);const Se=i.audio;let Me=!1;c==="audio"&&(Se==null?void 0:Se.container)==="audio/mpeg"&&(Me=!this.lastMpegAudioChunk||S.id===1||this.lastMpegAudioChunk.sn!==S.sn,this.lastMpegAudioChunk=S);const qe=h.start,Et={execute:()=>{if(R.executeStart=self.performance.now(),Me){const wt=this.sourceBuffer[c];if(wt){const an=qe-wt.timestampOffset;Math.abs(an)>=.1&&(this.log(`Updating audio SourceBuffer timestampOffset to ${qe} (delta: ${an}) sn: ${h.sn})`),wt.timestampOffset=qe)}}this.appendExecutor(s,c)},onStart:()=>{},onComplete:()=>{const wt=self.performance.now();R.executeEnd=R.end=wt,be.first===0&&(be.first=wt),me&&me.first===0&&(me.first=wt);const{sourceBuffer:an}=this,Rt={};for(const _n in an)Rt[_n]=Ur.getBuffered(an[_n]);this.appendErrors[c]=0,c==="audio"||c==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(u.BUFFER_APPENDED,{type:c,frag:h,part:_,chunkMeta:S,parent:h.type,timeRanges:Rt})},onError:wt=>{const an={type:y.MEDIA_ERROR,parent:h.type,details:b.BUFFER_APPEND_ERROR,sourceBufferName:c,frag:h,part:_,chunkMeta:S,error:wt,err:wt,fatal:!1};if(wt.code===DOMException.QUOTA_EXCEEDED_ERR)an.details=b.BUFFER_FULL_ERROR;else{const Rt=++this.appendErrors[c];an.details=b.BUFFER_APPEND_ERROR,this.warn(`Failed ${Rt}/${n.config.appendErrorMaxRetry} times to append segment in "${c}" sourceBuffer`),Rt>=n.config.appendErrorMaxRetry&&(an.fatal=!0)}n.trigger(u.ERROR,an)}};r.append(Et,c,!!this.pendingTracks[c])}onBufferFlushing(e,t){const{operationQueue:n}=this,r=i=>({execute:this.removeExecutor.bind(this,i,t.startOffset,t.endOffset),onStart:()=>{},onComplete:()=>{this.hls.trigger(u.BUFFER_FLUSHED,{type:i})},onError:s=>{this.warn(`Failed to remove from ${i} SourceBuffer`,s)}});t.type?n.append(r(t.type),t.type):this.getSourceBufferTypes().forEach(i=>{n.append(r(i),i)})}onFragParsed(e,t){const{frag:n,part:r}=t,i=[],s=r?r.elementaryStreams:n.elementaryStreams;s[G.AUDIOVIDEO]?i.push("audiovideo"):(s[G.AUDIO]&&i.push("audio"),s[G.VIDEO]&&i.push("video"));const c=()=>{const h=self.performance.now();n.stats.buffering.end=h,r&&(r.stats.buffering.end=h);const _=r?r.stats:n.stats;this.hls.trigger(u.FRAG_BUFFERED,{frag:n,part:r,stats:_,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(c,i)}onFragChanged(e,t){this.trimBuffers()}onBufferEos(e,t){this.getSourceBufferTypes().reduce((r,i)=>{const s=this.sourceBuffer[i];return s&&(!t.type||t.type===i)&&(s.ending=!0,s.ended||(s.ended=!0,this.log(`${i} sourceBuffer now EOS`))),r&&!!(!s||s.ended)},!0)&&(this.log("Queueing mediaSource.endOfStream()"),this.blockBuffers(()=>{this.getSourceBufferTypes().forEach(i=>{const s=this.sourceBuffer[i];s&&(s.ending=!1)});const{mediaSource:r}=this;if(!r||r.readyState!=="open"){r&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${r.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),r.endOfStream()}))}onLevelUpdated(e,{details:t}){t.fragments.length&&(this.details=t,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration())}trimBuffers(){const{hls:e,details:t,media:n}=this;if(!n||t===null||!this.getSourceBufferTypes().length)return;const i=e.config,s=n.currentTime,c=t.levelTargetDuration,h=t.live&&i.liveBackBufferLength!==null?i.liveBackBufferLength:i.backBufferLength;if(A(h)&&h>0){const _=Math.max(h,c),S=Math.floor(s/c)*c-_;this.flushBackBuffer(s,c,S)}if(A(i.frontBufferFlushThreshold)&&i.frontBufferFlushThreshold>0){const _=Math.max(i.maxBufferLength,i.frontBufferFlushThreshold),S=Math.max(_,c),R=Math.floor(s/c)*c+S;this.flushFrontBuffer(s,c,R)}}flushBackBuffer(e,t,n){const{details:r,sourceBuffer:i}=this;this.getSourceBufferTypes().forEach(c=>{const h=i[c];if(h){const _=Ur.getBuffered(h);if(_.length>0&&n>_.start(0)){if(this.hls.trigger(u.BACK_BUFFER_REACHED,{bufferEnd:n}),r!=null&&r.live)this.hls.trigger(u.LIVE_BACK_BUFFER_REACHED,{bufferEnd:n});else if(h.ended&&_.end(_.length-1)-e<t*2){this.log(`Cannot flush ${c} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(u.BUFFER_FLUSHING,{startOffset:0,endOffset:n,type:c})}}})}flushFrontBuffer(e,t,n){const{sourceBuffer:r}=this;this.getSourceBufferTypes().forEach(s=>{const c=r[s];if(c){const h=Ur.getBuffered(c),_=h.length;if(_<2)return;const S=h.start(_-1),R=h.end(_-1);if(n>S||e>=S&&e<=R)return;if(c.ended&&e-R<2*t){this.log(`Cannot flush ${s} front buffer while SourceBuffer is in ended state`);return}this.hls.trigger(u.BUFFER_FLUSHING,{startOffset:S,endOffset:1/0,type:s})}})}updateMediaElementDuration(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;const{details:e,hls:t,media:n,mediaSource:r}=this,i=e.fragments[0].start+e.totalduration,s=n.duration,c=A(r.duration)?r.duration:0;e.live&&t.config.liveDurationInfinity?(r.duration=1/0,this.updateSeekableRange(e)):(i>c&&i>s||!A(s))&&(this.log(`Updating Media Source duration to ${i.toFixed(3)}`),r.duration=i)}updateSeekableRange(e){const t=this.mediaSource,n=e.fragments;if(n.length&&e.live&&t!=null&&t.setLiveSeekableRange){const i=Math.max(0,n[0].start),s=Math.max(i,i+e.totalduration);this.log(`Media Source duration is set to ${t.duration}. Setting seekable range to ${i}-${s}.`),t.setLiveSeekableRange(i,s)}}checkPendingTracks(){const{bufferCodecEventsExpected:e,operationQueue:t,pendingTracks:n}=this,r=Object.keys(n).length;if(r&&(!e||r===2||"audiovideo"in n)){this.createSourceBuffers(n),this.pendingTracks={};const i=this.getSourceBufferTypes();if(i.length)this.hls.trigger(u.BUFFER_CREATED,{tracks:this.tracks}),i.forEach(s=>{t.executeNext(s)});else{const s=new Error("could not create source buffer for media codec(s)");this.hls.trigger(u.ERROR,{type:y.MEDIA_ERROR,details:b.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:s,reason:s.message})}}}createSourceBuffers(e){const{sourceBuffer:t,mediaSource:n}=this;if(!n)throw Error("createSourceBuffers called when mediaSource was null");for(const i in e)if(!t[i]){var r;const s=e[i];if(!s)throw Error(`source buffer exists for track ${i}, however track does not`);let c=((r=s.levelCodec)==null?void 0:r.indexOf(","))===-1?s.levelCodec:s.codec;c&&i.slice(0,5)==="audio"&&(c=tn(c,this.appendSource));const h=`${s.container};codecs=${c}`;this.log(`creating sourceBuffer(${h})`);try{const _=t[i]=n.addSourceBuffer(h),S=i;this.addBufferListener(S,"updatestart",this._onSBUpdateStart),this.addBufferListener(S,"updateend",this._onSBUpdateEnd),this.addBufferListener(S,"error",this._onSBUpdateError),this.appendSource&&this.addBufferListener(S,"bufferedchange",(R,re)=>{const be=re.removedRanges;be!=null&&be.length&&this.hls.trigger(u.BUFFER_FLUSHED,{type:i})}),this.tracks[i]={buffer:_,codec:c,container:s.container,levelCodec:s.levelCodec,metadata:s.metadata,id:s.id}}catch(_){this.error(`error while trying to add sourceBuffer: ${_.message}`),this.hls.trigger(u.ERROR,{type:y.MEDIA_ERROR,details:b.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:_,sourceBufferName:i,mimeType:h})}}}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{operationQueue:t}=this;t.current(e).onStart()}_onSBUpdateEnd(e){var t;if(((t=this.mediaSource)==null?void 0:t.readyState)==="closed"){this.resetBuffer(e);return}const{operationQueue:n}=this;n.current(e).onComplete(),n.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(u.ERROR,{type:y.MEDIA_ERROR,details:b.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:r,fatal:!1});const i=this.operationQueue.current(e);i&&i.onError(r)}removeExecutor(e,t,n){const{media:r,mediaSource:i,operationQueue:s,sourceBuffer:c}=this,h=c[e];if(!r||!i||!h){this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),s.shiftAndExecuteNext(e);return}const _=A(r.duration)?r.duration:1/0,S=A(i.duration)?i.duration:1/0,R=Math.max(0,t),re=Math.min(n,_,S);re>R&&(!h.ending||h.ended)?(h.ended=!1,this.log(`Removing [${R},${re}] from the ${e} SourceBuffer`),h.remove(R,re)):s.shiftAndExecuteNext(e)}appendExecutor(e,t){const n=this.sourceBuffer[t];if(!n){if(!this.pendingTracks[t])throw new Error(`Attempting to append to the ${t} SourceBuffer, but it does not exist`);return}n.ended=!1,n.appendBuffer(e)}blockBuffers(e,t=this.getSourceBufferTypes()){if(!t.length){this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(e);return}const{operationQueue:n}=this,r=t.map(i=>n.appendBlocker(i));Promise.all(r).then(()=>{e(),t.forEach(i=>{const s=this.sourceBuffer[i];s!=null&&s.updating||n.shiftAndExecuteNext(i)})})}getSourceBufferTypes(){return Object.keys(this.sourceBuffer)}addBufferListener(e,t,n){const r=this.sourceBuffer[e];if(!r)return;const i=n.bind(this,e);this.listeners[e].push({event:t,listener:i}),r.addEventListener(t,i)}removeBufferListeners(e){const t=this.sourceBuffer[e];t&&this.listeners[e].forEach(n=>{t.removeEventListener(n.event,n.listener)})}}function Ji(o){const e=o.querySelectorAll("source");[].slice.call(e).forEach(t=>{o.removeChild(t)})}function ji(o,e){const t=self.document.createElement("source");t.type="video/mp4",t.src=e,o.appendChild(t)}const Ii={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},qi=o=>String.fromCharCode(Ii[o]||o),yi=15,Gi=100,to={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Sa={17:2,18:4,21:6,22:8,23:10,19:13,20:15},Ca={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},Ta={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Ya=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class Xa{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const n=typeof t=="function"?t():t;x.log(`${this.time} [${e}] ${n}`)}}}const pa=function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n].toString(16));return t};class Ns{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 no{constructor(){this.uchar=" ",this.penState=new Ns}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 ms{constructor(e){this.chars=[],this.pos=0,this.currPenState=new Ns,this.cueStartTime=null,this.logger=void 0;for(let t=0;t<Gi;t++)this.chars.push(new no);this.logger=e}equals(e){for(let t=0;t<Gi;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<Gi;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<Gi;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>Gi&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=Gi)}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=qi(e);if(this.pos>=Gi){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<Gi;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<Gi;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 Qa{constructor(e){this.rows=[],this.currRow=yi-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<yi;t++)this.rows.push(new ms(e));this.logger=e}reset(){for(let e=0;e<yi;e++)this.rows[e].clear();this.currRow=yi-1}equals(e){let t=!0;for(let n=0;n<yi;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t}copy(e){for(let t=0;t<yi;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<yi;t++)if(!this.rows[t].isEmpty()){e=!1;break}return e}backSpace(){this.rows[this.currRow].backSpace()}clearToEndOfRow(){this.rows[this.currRow].clearToEndOfRow()}insertChar(e){this.rows[this.currRow].insertChar(e)}setPen(e){this.rows[this.currRow].setPenStyles(e)}moveCursor(e){this.rows[this.currRow].moveCursor(e)}setCursor(e){this.logger.log(2,"setCursor: "+e),this.rows[this.currRow].setCursor(e)}setPAC(e){this.logger.log(2,()=>"pacData = "+JSON.stringify(e));let t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(let c=0;c<yi;c++)this.rows[c].clear();const i=this.currRow+1-this.nrRollUpRows,s=this.lastOutputScreen;if(s){const c=s.rows[i].cueStartTime,h=this.logger.time;if(c!==null&&h!==null&&c<h)for(let _=0;_<this.nrRollUpRows;_++)this.rows[t-this.nrRollUpRows+_+1].copy(s.rows[i+_])}}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 = "+JSON.stringify(e)),this.backSpace(),this.setPen(e),this.insertChar(32)}setRollUpRows(e){this.nrRollUpRows=e}rollUp(){if(this.nrRollUpRows===null){this.logger.log(3,"roll_up but nrRollUpRows not set yet");return}this.logger.log(1,()=>this.getDisplayText());const e=this.currRow+1-this.nrRollUpRows,t=this.rows.splice(e,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),this.logger.log(2,"Rolling up")}getDisplayText(e){e=e||!1;const t=[];let n="",r=-1;for(let i=0;i<yi;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 gs{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 Qa(n),this.nonDisplayedMemory=new Qa(n),this.lastOutputScreen=new Qa(n),this.currRollUpRow=this.displayedMemory.rows[yi-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[yi-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: "+JSON.stringify(t)),this.writeScreen.setPen(t)}outputDataUpdate(e=!1){const t=this.logger.time;t!==null&&this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=t:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,t,this.lastOutputScreen),e&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:t),this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))}}class vs{constructor(e,t,n){this.channels=void 0,this.currentChannel=0,this.cmdHistory=qo(),this.logger=void 0;const r=this.logger=new Xa;this.channels=[null,new gs(e,t,r),new gs(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,c=null;if(r===0&&i===0)continue;this.logger.log(3,()=>"["+pa([t[n],t[n+1]])+"] -> ("+pa([r,i])+")");const h=this.cmdHistory;if(r>=16&&r<=31){if(Jo(r,i,h)){ma(null,null,h),this.logger.log(3,()=>"Repeated command ("+pa([r,i])+") is dropped");continue}ma(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 ma(null,null,h);if(!s&&(c=this.parseChars(r,i),c)){const S=this.currentChannel;S&&S>0?this.channels[S].insertChars(c):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!s&&!c&&this.logger.log(2,()=>"Couldn't parse cleaned data "+pa([r,i])+" orig: "+pa([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 ("+pa([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?to[e]:Ca[e]:n=s===1?Sa[e]:Ta[e];const c=this.channels[s];return c?(c.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 '"+qi(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 = "+pa(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=Ya[i],t%2===1&&(s.background=s.background+"_semi")):t===45?s.background="transparent":(s.foreground="black",t===47&&(s.underline=!0));const c=e<=23?1:2;return this.channels[c].setBkgData(s),!0}reset(){for(let e=0;e<Object.keys(this.channels).length;e++){const t=this.channels[e];t&&t.reset()}ma(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 ma(o,e,t){t.a=o,t.b=e}function Jo(o,e,t){return t.a===o&&t.b===e}function qo(){return{a:null,b:null}}class Fs{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}}var ro=function(){if(Ge!=null&&Ge.VTTCue)return self.VTTCue;const o=["","lr","rl"],e=["start","middle","end","left","right"];function t(c,h){if(typeof h!="string"||!Array.isArray(c))return!1;const _=h.toLowerCase();return~c.indexOf(_)?_:!1}function n(c){return t(o,c)}function r(c){return t(e,c)}function i(c,...h){let _=1;for(;_<arguments.length;_++){const S=arguments[_];for(const R in S)c[R]=S[R]}return c}function s(c,h,_){const S=this,R={enumerable:!0};S.hasBeenReset=!1;let re="",be=!1,me=c,Se=h,Me=_,qe=null,Et="",wt=!0,an="auto",Rt="start",_n=50,Yt="middle",kn=50,Yn="middle";Object.defineProperty(S,"id",i({},R,{get:function(){return re},set:function(vn){re=""+vn}})),Object.defineProperty(S,"pauseOnExit",i({},R,{get:function(){return be},set:function(vn){be=!!vn}})),Object.defineProperty(S,"startTime",i({},R,{get:function(){return me},set:function(vn){if(typeof vn!="number")throw new TypeError("Start time must be set to a number.");me=vn,this.hasBeenReset=!0}})),Object.defineProperty(S,"endTime",i({},R,{get:function(){return Se},set:function(vn){if(typeof vn!="number")throw new TypeError("End time must be set to a number.");Se=vn,this.hasBeenReset=!0}})),Object.defineProperty(S,"text",i({},R,{get:function(){return Me},set:function(vn){Me=""+vn,this.hasBeenReset=!0}})),Object.defineProperty(S,"region",i({},R,{get:function(){return qe},set:function(vn){qe=vn,this.hasBeenReset=!0}})),Object.defineProperty(S,"vertical",i({},R,{get:function(){return Et},set:function(vn){const Mn=n(vn);if(Mn===!1)throw new SyntaxError("An invalid or illegal string was specified.");Et=Mn,this.hasBeenReset=!0}})),Object.defineProperty(S,"snapToLines",i({},R,{get:function(){return wt},set:function(vn){wt=!!vn,this.hasBeenReset=!0}})),Object.defineProperty(S,"line",i({},R,{get:function(){return an},set:function(vn){if(typeof vn!="number"&&vn!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");an=vn,this.hasBeenReset=!0}})),Object.defineProperty(S,"lineAlign",i({},R,{get:function(){return Rt},set:function(vn){const Mn=r(vn);if(!Mn)throw new SyntaxError("An invalid or illegal string was specified.");Rt=Mn,this.hasBeenReset=!0}})),Object.defineProperty(S,"position",i({},R,{get:function(){return _n},set:function(vn){if(vn<0||vn>100)throw new Error("Position must be between 0 and 100.");_n=vn,this.hasBeenReset=!0}})),Object.defineProperty(S,"positionAlign",i({},R,{get:function(){return Yt},set:function(vn){const Mn=r(vn);if(!Mn)throw new SyntaxError("An invalid or illegal string was specified.");Yt=Mn,this.hasBeenReset=!0}})),Object.defineProperty(S,"size",i({},R,{get:function(){return kn},set:function(vn){if(vn<0||vn>100)throw new Error("Size must be between 0 and 100.");kn=vn,this.hasBeenReset=!0}})),Object.defineProperty(S,"align",i({},R,{get:function(){return Yn},set:function(vn){const Mn=r(vn);if(!Mn)throw new SyntaxError("An invalid or illegal string was specified.");Yn=Mn,this.hasBeenReset=!0}})),S.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s}();class el{decode(e,t){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function xo(o){function e(n,r,i,s){return(n|0)*3600+(r|0)*60+(i|0)+parseFloat(s||0)}const t=o.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return t?parseFloat(t[2])>59?e(t[2],t[3],0,t[4]):e(t[1],t[2],t[3],t[4]):null}class tl{constructor(){this.values=Object.create(null)}set(e,t){!this.get(e)&&t!==""&&(this.values[e]=t)}get(e,t,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 Eo(o,e,t,n){const r=n?o.split(n):[o];for(const i in r){if(typeof r[i]!="string")continue;const s=r[i].split(t);if(s.length!==2)continue;const c=s[0],h=s[1];e(c,h)}}const io=new ro(0,0,""),Bs=io.align==="middle"?"middle":"center";function nl(o,e,t){const n=o;function r(){const c=xo(o);if(c===null)throw new Error("Malformed timestamp: "+n);return o=o.replace(/^[^\sa-zA-Z-]+/,""),c}function i(c,h){const _=new tl;Eo(c,function(re,be){let me;switch(re){case"region":for(let Se=t.length-1;Se>=0;Se--)if(t[Se].id===be){_.set(re,t[Se].region);break}break;case"vertical":_.alt(re,be,["rl","lr"]);break;case"line":me=be.split(","),_.integer(re,me[0]),_.percent(re,me[0])&&_.set("snapToLines",!1),_.alt(re,me[0],["auto"]),me.length===2&&_.alt("lineAlign",me[1],["start",Bs,"end"]);break;case"position":me=be.split(","),_.percent(re,me[0]),me.length===2&&_.alt("positionAlign",me[1],["start",Bs,"end","line-left","line-right","auto"]);break;case"size":_.percent(re,be);break;case"align":_.alt(re,be,["start",Bs,"end","left","right"]);break}},/:/,/\s/),h.region=_.get("region",null),h.vertical=_.get("vertical","");let S=_.get("line","auto");S==="auto"&&io.line===-1&&(S=-1),h.line=S,h.lineAlign=_.get("lineAlign","start"),h.snapToLines=_.get("snapToLines",!0),h.size=_.get("size",100),h.align=_.get("align",Bs);let R=_.get("position","auto");R==="auto"&&io.position===50&&(R=h.align==="start"||h.align==="left"?0:h.align==="end"||h.align==="right"?100:50),h.position=R}function s(){o=o.replace(/^\s+/,"")}if(s(),e.startTime=r(),s(),o.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+n);o=o.slice(3),s(),e.endTime=r(),s(),i(o,e)}function wo(o){return o.replace(/<br(?: \/)?>/gi,`
`)}class rl{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new el,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}parse(e){const t=this;e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));function n(){let i=t.buffer,s=0;for(i=wo(i);s<i.length&&i[s]!=="\r"&&i[s]!==`
`;)++s;const c=i.slice(0,s);return i[s]==="\r"&&++s,i[s]===`
`&&++s,t.buffer=i.slice(s),c}function r(i){Eo(i,function(s,c){},/:/)}try{let i="";if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;i=n();const c=i.match(/^()?WEBVTT([ \t].*)?$/);if(!(c!=null&&c[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 ro(0,0,""),t.state="CUE",i.indexOf("-->")===-1){t.cue.id=i;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{nl(i,t.cue,t.regionList)}catch(c){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":{const c=i.indexOf("-->")!==-1;if(!i||c&&(s=!0)){t.oncue&&t.cue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}if(t.cue===null)continue;t.cue.text&&(t.cue.text+=`
`),t.cue.text+=i}continue;case"BADCUE":i||(t.state="ID")}}}catch(i){t.state==="CUETEXT"&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state=t.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this}flush(){const e=this;try{if((e.cue||e.state==="HEADER")&&(e.buffer+=`
`,e.parse()),e.state==="INITIAL"||e.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(t){e.onparsingerror&&e.onparsingerror(t)}return e.onflush&&e.onflush(),this}}const il=/\r\n|\n\r|\n|\r/g,ao=function(e,t,n=0){return e.slice(n,n+t.length)===t},al=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(!A(t)||!A(n)||!A(r)||!A(i))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*n,t+=60*1e3*r,t+=60*60*1e3*i,t},so=function(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0).toString()};function oo(o,e,t){return so(o.toString())+so(e.toString())+so(t)}const sl=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 ol(o,e,t,n,r,i,s){const c=new rl,h=Xe(new Uint8Array(o)).trim().replace(il,`
`).split(`
`),_=[],S=e?Os(e.baseTime,e.timescale):0;let R="00:00.000",re=0,be=0,me,Se=!0;c.oncue=function(Me){const qe=t[n];let Et=t.ccOffset;const wt=(re-S)/9e4;if(qe!=null&&qe.new&&(be!==void 0?Et=t.ccOffset=qe.start:sl(t,n,wt)),wt){if(!e){me=new Error("Missing initPTS for VTT MPEGTS");return}Et=wt-t.presentationOffset}const an=Me.endTime-Me.startTime,Rt=Ni((Me.startTime+Et-be)*9e4,r*9e4)/9e4;Me.startTime=Math.max(Rt,0),Me.endTime=Math.max(Rt+an,0);const _n=Me.text.trim();Me.text=decodeURIComponent(encodeURIComponent(_n)),Me.id||(Me.id=oo(Me.startTime,Me.endTime,_n)),Me.endTime>0&&_.push(Me)},c.onparsingerror=function(Me){me=Me},c.onflush=function(){if(me){s(me);return}i(_)},h.forEach(Me=>{if(Se)if(ao(Me,"X-TIMESTAMP-MAP=")){Se=!1,Me.slice(16).split(",").forEach(qe=>{ao(qe,"LOCAL:")?R=qe.slice(6):ao(qe,"MPEGTS:")&&(re=parseInt(qe.slice(7)))});try{be=al(R)/1e3}catch(qe){me=qe}return}else Me===""&&(Se=!1);c.parse(Me+`
`)}),c.flush()}const lo="stpp.ttml.im1t",So=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Co=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,ll={left:"start",center:"center",right:"end",start:"start",end:"end"};function To(o,e,t,n){const r=Fe(new Uint8Array(o),["mdat"]);if(r.length===0){n(new Error("Could not parse IMSC1 mdat"));return}const i=r.map(c=>Xe(c)),s=Js(e.baseTime,1,e.timescale);try{i.forEach(c=>t(ul(c,s)))}catch(c){n(c)}}function ul(o,e){const r=new DOMParser().parseFromString(o,"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((R,re)=>(R[re]=r.getAttribute(`ttp:${re}`)||i[re],R),{}),c=r.getAttribute("xml:space")!=="preserve",h=Ao(uo(r,"styling","style")),_=Ao(uo(r,"layout","region")),S=uo(r,"body","[begin]");return[].map.call(S,R=>{const re=Do(R,c);if(!re||!R.hasAttribute("begin"))return null;const be=fo(R.getAttribute("begin"),s),me=fo(R.getAttribute("dur"),s);let Se=fo(R.getAttribute("end"),s);if(be===null)throw Ro(R);if(Se===null){if(me===null)throw Ro(R);Se=be+me}const Me=new ro(be-e,Se-e,re);Me.id=oo(Me.startTime,Me.endTime,Me.text);const qe=_[R.getAttribute("region")],Et=h[R.getAttribute("style")],wt=cl(qe,Et,h),{textAlign:an}=wt;if(an){const Rt=ll[an];Rt&&(Me.lineAlign=Rt),Me.align=an}return a(Me,wt),Me}).filter(R=>R!==null)}function uo(o,e,t){const n=o.getElementsByTagName(e)[0];return n?[].slice.call(n.querySelectorAll(t)):[]}function Ao(o){return o.reduce((e,t)=>{const n=t.getAttribute("xml:id");return n&&(e[n]=t),e},{})}function Do(o,e){return[].slice.call(o.childNodes).reduce((t,n,r)=>{var i;return n.nodeName==="br"&&r?t+`
`:(i=n.childNodes)!=null&&i.length?Do(n,e):e?t+n.textContent.trim().replace(/\s+/g," "):t+n.textContent},"")}function cl(o,e,t){const n="http://www.w3.org/ns/ttml#styling";let r=null;const i=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],s=o!=null&&o.hasAttribute("style")?o.getAttribute("style"):null;return s&&t.hasOwnProperty(s)&&(r=t[s]),i.reduce((c,h)=>{const _=co(e,n,h)||co(o,n,h)||co(r,n,h);return _&&(c[h]=_),c},{})}function co(o,e,t){return o&&o.hasAttributeNS(e,t)?o.getAttributeNS(e,t):null}function Ro(o){return new Error(`Could not parse ttml timestamp ${o}`)}function fo(o,e){if(!o)return null;let t=xo(o);return t===null&&(So.test(o)?t=dl(o,e):Co.test(o)&&(t=fl(o,e))),t}function dl(o,e){const t=So.exec(o),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 fl(o,e){const t=Co.exec(o),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){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=Oo(),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(u.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(u.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(u.FRAG_LOADING,this.onFragLoading,this),e.on(u.FRAG_LOADED,this.onFragLoaded,this),e.on(u.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(u.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(u.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(u.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(u.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:e}=this;e.off(u.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(u.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(u.FRAG_LOADING,this.onFragLoading,this),e.off(u.FRAG_LOADED,this.onFragLoaded,this),e.off(u.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(u.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(u.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(u.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(u.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){if(this.config.enableCEA708Captions&&(!this.cea608Parser1||!this.cea608Parser2)){const e=new Fs(this,"textTrack1"),t=new Fs(this,"textTrack2"),n=new Fs(this,"textTrack3"),r=new Fs(this,"textTrack4");this.cea608Parser1=new vs(1,e,t),this.cea608Parser2=new vs(3,n,r)}}addCues(e,t,n,r,i){let s=!1;for(let c=i.length;c--;){const h=i[c],_=pl(h[0],h[1],t,n);if(_>=0&&(h[0]=Math.min(h[0],t),h[1]=Math.max(h[1],n),s=!0,_/(n-t)>.5))return}if(s||i.push([t,n]),this.config.renderTextTracksNatively){const c=this.captionsTracks[e];this.Cues.newCue(c,t,n,r)}else{const c=this.Cues.newCue(null,t,n,r);this.hls.trigger(u.CUES_PARSED,{type:"captions",cues:c,track:e})}}onInitPtsFound(e,{frag:t,id:n,initPTS:r,timescale:i}){const{unparsedVttFrags:s}=this;n==="main"&&(this.initPTS[t.cc]={baseTime:r,timescale:i}),s.length&&(this.unparsedVttFrags=[],s.forEach(c=>{this.onFragLoaded(u.FRAG_LOADED,c)}))}getExistingTrack(e,t){const{media:n}=this;if(n)for(let r=0;r<n.textTracks.length;r++){const i=n.textTracks[r];if(Lo(i,{name:e,lang:t,attrs:{}}))return i}return null}createCaptionsTrack(e){this.config.renderTextTracksNatively?this.createNativeTrack(e):this.createNonNativeTrack(e)}createNativeTrack(e){if(this.captionsTracks[e])return;const{captionsProperties:t,captionsTracks:n,media:r}=this,{label:i,languageCode:s}=t[e],c=this.getExistingTrack(i,s);if(c)n[e]=c,tr(n[e]),Gn(n[e],r);else{const h=this.createTextTrack("captions",i,s);h&&(h[e]=!0,n[e]=h)}}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(u.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,this._cleanTracks()}onMediaDetaching(){const{captionsTracks:e}=this;Object.keys(e).forEach(t=>{tr(e[t]),delete e[t]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Oo(),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++)tr(t[n])}onSubtitleTracksUpdated(e,t){const n=t.subtitleTracks||[],r=n.some(i=>i.textCodec===lo);if(this.config.enableWebVTT||r&&this.config.enableIMSC1){if(er(this.tracks,n)){this.tracks=n;return}if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){const s=this.media,c=s?En(s.textTracks):null;if(this.tracks.forEach((h,_)=>{let S;if(c){let R=null;for(let re=0;re<c.length;re++)if(c[re]&&Lo(c[re],h)){R=c[re],c[re]=null;break}R&&(S=R)}if(S)tr(S);else{const R=Io(h);S=this.createTextTrack(R,h.name,h.lang),S&&(S.mode="disabled")}S&&this.textTracks.push(S)}),c!=null&&c.length){const h=c.filter(_=>_!==null).map(_=>_.label);h.length&&x.warn(`Media element contains unused subtitle tracks: ${h.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const s=this.tracks.map(c=>({label:c.name,kind:c.type.toLowerCase(),default:c.default,subtitleTrack:c}));this.hls.trigger(u.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===Ke.MAIN){var n,r;const{cea608Parser1:i,cea608Parser2:s,lastSn:c}=this,{cc:h,sn:_}=t.frag,S=(n=(r=t.part)==null?void 0:r.index)!=null?n:-1;i&&s&&(_!==c+1||_===c&&S!==this.lastPartIndex+1||h!==this.lastCc)&&(i.reset(),s.reset()),this.lastCc=h,this.lastSn=_,this.lastPartIndex=S}}onFragLoaded(e,t){const{frag:n,payload:r}=t;if(n.type===Ke.SUBTITLE)if(r.byteLength){const i=n.decryptdata,s="stats"in t;if(i==null||!i.encrypted||s){const c=this.tracks[n.level],h=this.vttCCs;h[n.cc]||(h[n.cc]={start:n.start,prevCC:this.prevCC,new:!0},this.prevCC=n.cc),c&&c.textCodec===lo?this._parseIMSC1(n,r):this._parseVTTs(t)}}else this.hls.trigger(u.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:new Error("Empty subtitle payload")})}_parseIMSC1(e,t){const n=this.hls;To(t,this.initPTS[e.cc],r=>{this._appendCues(r,e.level),n.trigger(u.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})},r=>{x.log(`Failed to parse IMSC1: ${r}`),n.trigger(u.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:r})})}_parseVTTs(e){var t;const{frag:n,payload:r}=e,{initPTS:i,unparsedVttFrags:s}=this,c=i.length-1;if(!i[n.cc]&&c===-1){s.push(e);return}const h=this.hls,_=(t=n.initSegment)!=null&&t.data?It(n.initSegment.data,new Uint8Array(r)):r;ol(_,this.initPTS[n.cc],this.vttCCs,n.cc,n.start,S=>{this._appendCues(S,n.level),h.trigger(u.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:n})},S=>{const R=S.message==="Missing initPTS for VTT MPEGTS";R?s.push(e):this._fallbackToIMSC1(n,r),x.log(`Failed to parse VTT cue: ${S}`),!(R&&c>n.cc)&&h.trigger(u.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:S})})}_fallbackToIMSC1(e,t){const n=this.tracks[e.level];n.textCodec||To(t,this.initPTS[e.cc],()=>{n.textCodec=lo,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=>nr(r,i))}else{const r=this.tracks[t];if(!r)return;const i=r.default?"default":"subtitles"+t;n.trigger(u.CUES_PARSED,{type:"subtitles",cues:e,track:i})}}onFragDecrypted(e,t){const{frag:n}=t;n.type===Ke.SUBTITLE&&this.onFragLoaded(u.FRAG_LOADED,t)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(e,t){this.initCea608Parsers();const{cea608Parser1:n,cea608Parser2:r}=this;if(!this.enabled||!n||!r)return;const{frag:i,samples:s}=t;if(!(i.type===Ke.MAIN&&this.closedCaptionsForLevel(i)==="NONE"))for(let c=0;c<s.length;c++){const h=s[c].bytes;if(h){const _=this.extractCea608Data(h);n.addData(s[c].pts,_[0]),r.addData(s[c].pts,_[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:c}=this;Object.keys(c).forEach(h=>Hn(c[h],t,n))}if(this.config.renderTextTracksNatively&&t===0&&r!==void 0){const{textTracks:c}=this;Object.keys(c).forEach(h=>Hn(c[h],t,r))}}}extractCea608Data(e){const t=[[],[]],n=e[0]&31;let r=2;for(let i=0;i<n;i++){const s=e[r++],c=127&e[r++],h=127&e[r++];if(c===0&&h===0)continue;if((4&s)!==0){const S=3&s;(S===0||S===1)&&(t[S].push(c),t[S].push(h))}}return t}}function Io(o){return o.characteristics&&/transcribes-spoken-dialog/gi.test(o.characteristics)&&/describes-music-and-sound/gi.test(o.characteristics)?"captions":"subtitles"}function Lo(o,e){return!!o&&o.kind===Io(e)&&_r(e,o)}function pl(o,e,t,n){return Math.min(e,n)-Math.max(o,t)}function Oo(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}class ho{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(u.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(u.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(u.MANIFEST_PARSED,this.onManifestParsed,this),e.on(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(u.BUFFER_CODECS,this.onBufferCodecs,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:e}=this;e.off(u.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(u.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(u.MANIFEST_PARSED,this.onManifestParsed,this),e.off(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(u.BUFFER_CODECS,this.onBufferCodecs,this),e.off(u.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&&A(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(e,t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onMediaDetaching(){this.stopCapping()}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0){this.clientRect=null;return}const e=this.hls.levels;if(e.length){const t=this.hls,n=this.getMaxLevel(e.length-1);n!==this.autoLevelCapping&&x.log(`Setting autoLevelCapping to ${n}: ${e[n].height}p@${e[n].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),t.autoLevelCapping=n,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,ho.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 e}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=(c,h)=>h?c.width!==h.width||c.height!==h.height:!0;let i=e.length-1;const s=Math.max(t,n);for(let c=0;c<e.length;c+=1){const h=e[c];if((h.width>=s||h.height>=s)&&r(h,e[c+1])){i=c;break}}return i}}class ml{constructor(e){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=e,this.registerListeners()}setStreamController(e){this.streamController=e}registerListeners(){this.hls.on(u.MEDIA_ATTACHING,this.onMediaAttaching,this)}unregisterListeners(){this.hls.off(u.MEDIA_ATTACHING,this.onMediaAttaching,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)}}checkFPS(e,t,n){const r=performance.now();if(t){if(this.lastTime){const i=r-this.lastTime,s=n-this.lastDroppedFrames,c=t-this.lastDecodedFrames,h=1e3*s/i,_=this.hls;if(_.trigger(u.FPS_DROP,{currentDropped:s,currentDecoded:c,totalDroppedFrames:n}),h>0&&s>_.config.fpsDroppedMonitoringThreshold*c){let S=_.currentLevel;x.warn("drop FPS ratio greater than max allowed value for currentLevel: "+S),S>0&&(_.autoLevelCapping===-1||_.autoLevelCapping>=S)&&(S=S-1,_.trigger(u.FPS_DROP_LEVEL_CAPPING,{level:S,droppedLevel:_.currentLevel}),_.autoLevelCapping=S,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)}}const $s="[eme]";class Ja{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=Ja.CDMCleanupPromise?[Ja.CDMCleanupPromise]:[],this.debug=x.debug.bind(x,$s),this.log=x.log.bind(x,$s),this.warn=x.warn.bind(x,$s),this.error=x.error.bind(x,$s),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=Jt(this.config));const c=s.map(Gt).filter(h=>!!h);this.keyFormatPromise=this.getKeyFormatPromise(c)}this.keyFormatPromise.then(s=>{const c=mt(s);let h,_;if(n==="sinf"){if(c!==je.FAIRPLAY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${n}" for selected key-system ${c}`);return}const me=_t(new Uint8Array(r));try{const Se=g(JSON.parse(me).sinf),Me=at(Se);if(!Me)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");h=Me.subarray(8,24),_=je.FAIRPLAY}catch(Se){this.warn(`${i} Failed to parse sinf: ${Se}`);return}}else{if(c!==je.WIDEVINE&&c!==je.PLAYREADY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${n}" for selected key-system ${c}`);return}const me=kt(r),Se=me.filter(qe=>!!qe.systemId&&nt(qe.systemId)===c);Se.length>1&&this.warn(`${i} Using first of ${Se.length} pssh found for selected key-system ${c}`);const Me=Se[0];if(!Me){me.length===0||me.some(qe=>!qe.systemId)?this.warn(`${i} contains incomplete or invalid pssh data`):this.log(`ignoring ${i} for ${me.map(qe=>nt(qe.systemId)).join(",")} pssh data in favor of playlist keys`);return}if(_=nt(Me.systemId),Me.version===0&&Me.data)if(_===je.WIDEVINE){const qe=Me.data.length-22;h=Me.data.subarray(qe,qe+16)}else _===je.PLAYREADY&&(h=it(Me.data))}if(!_||!h){this.log(`Unable to handle ${i} with key-system ${c}`);return}const S=ct.hexDump(h),{keyIdToKeySessionPromise:R,mediaKeySessions:re}=this;let be=R[S];for(let me=0;me<re.length;me++){const Se=re[me],Me=Se.decryptdata;if(!Me.keyId)continue;const qe=ct.hexDump(Me.keyId);if(S===qe||Me.uri.replace(/-/g,"").indexOf(S)!==-1){if(be=R[qe],Me.pssh)break;delete R[qe],Me.pssh=new Uint8Array(r),Me.keyId=h,be=R[S]=be.then(()=>this.generateRequestWithPreferredKeySession(Se,n,r,"encrypted-event-key-match")),be.catch(Et=>this.handleError(Et));break}}if(!be){if(_!==c){this.log(`Ignoring "${i}" with ${_} init data for selected key-system ${c}`);return}be=R[S]=this.getKeySystemSelectionPromise([_]).then(({keySystem:me,mediaKeys:Se})=>{var Me;this.throwIfDestroyed();const qe=new Nt("ISO-23001-7",S,(Me=Gt(me))!=null?Me:"");return qe.pssh=new Uint8Array(r),qe.keyId=h,this.attemptSetMediaKeys(me,Se).then(()=>{this.throwIfDestroyed();const Et=this.createMediaKeySessionContext({decryptdata:qe,keySystem:me,mediaKeys:Se});return this.generateRequestWithPreferredKeySession(Et,n,r,"encrypted-event-no-match")})}),be.catch(me=>this.handleError(me))}})}},this.onWaitingForKey=t=>{this.log(`"${t.type}" event`)},this.hls=e,this.config=e.config,this.registerListeners()}destroy(){this.unregisterListeners(),this.onMediaDetached();const e=this.config;e.requestMediaKeySystemAccessFunc=null,e.licenseXhrSetup=e.licenseResponseCallback=void 0,e.drmSystems=e.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){this.hls.on(u.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(u.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(u.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(u.MANIFEST_LOADED,this.onManifestLoaded,this)}unregisterListeners(){this.hls.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(u.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(u.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(u.MANIFEST_LOADED,this.onManifestLoaded,this)}getLicenseServerUrl(e){const{drmSystems:t,widevineLicenseUrl:n}=this.config,r=t[e];if(r)return r.licenseUrl;if(e===je.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,c,h)=>!!s&&h.indexOf(s)===c,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,c)=>{const h=_=>{const S=_.shift();this.getMediaKeysPromise(S,r,i).then(R=>s({keySystem:S,mediaKeys:R})).catch(R=>{_.length?h(_):R instanceof Vi?c(R):c(new Vi({type:y.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_NO_ACCESS,error:R,fatal:!0},R.message))})};h(e)})}requestMediaKeySystemAccess(e,t){const{requestMediaKeySystemAccessFunc:n}=this.config;if(typeof n!="function"){let r=`Configured requestMediaKeySystemAccess is not a function ${n}`;return sn===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=Ut(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: ${JSON.stringify(r)}`),s=this.requestMediaKeySystemAccess(e,r);const c=this.keySystemAccessPromises[e]={keySystemAccess:s};return s.catch(h=>{this.log(`Failed to obtain access to key-system "${e}": ${h}`)}),s.then(h=>{this.log(`Access for key-system "${h.keySystem}" obtained`);const _=this.fetchServerCertificate(e);return this.log(`Create media-keys for "${e}"`),c.mediaKeys=h.createMediaKeys().then(S=>(this.log(`Media-keys created for "${e}"`),_.then(R=>R?this.setMediaKeysServerCertificate(S,e,R):S))),c.mediaKeys.catch(S=>{this.error(`Failed to create media-keys for "${e}"}: ${S}`)}),c.mediaKeys})}return s.then(()=>i.mediaKeys)}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:n}){this.log(`Creating key-system session "${t}" keyId: ${ct.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,"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 ct.hexDump(e.keyId)}updateKeySession(e,t){var n;const r=e.mediaKeysSession;return this.log(`Updating key-session "${r.sessionId}" for keyID ${ct.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=Jt(this.config),i=e.map(mt).filter(s=>!!s&&r.indexOf(s)!==-1);return this.getKeySystemSelectionPromise(i).then(({keySystem:s})=>{const c=Gt(s);c?t(c):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.keyIdToKeySessionPromise[n]=this.getKeySystemForKeyPromise(t).then(({keySystem:s,mediaKeys:c})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${r}`),this.attemptSetMediaKeys(s,c).then(()=>{this.throwIfDestroyed();const h=this.createMediaKeySessionContext({keySystem:s,mediaKeys:c,decryptdata:t});return this.generateRequestWithPreferredKeySession(h,"cenc",t.pssh,"playlist-key")}))),i.catch(s=>this.handleError(s))),i}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(e){this.hls&&(this.error(e.message),e instanceof Vi?this.hls.trigger(u.ERROR,e.data):this.hls.trigger(u.ERROR,{type:y.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))}getKeySystemForKeyPromise(e){const t=this.getKeyIdString(e),n=this.keyIdToKeySessionPromise[t];if(!n){const r=mt(e.keyFormat),i=r?[r]:Jt(this.config);return this.attemptKeySystemAccess(i)}return n}getKeySystemSelectionPromise(e){if(e.length||(e=Jt(this.config)),e.length===0)throw new Vi({type:y.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${JSON.stringify({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(e)}attemptSetMediaKeys(e,t){const 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 c=(i=this.config.drmSystems)==null||(s=i[e.keySystem])==null?void 0:s.generateRequest;if(c)try{const me=c.call(this.hls,t,n,e);if(!me)throw new Error("Invalid response from configured generateRequest filter");t=me.initDataType,n=e.decryptdata.pssh=me.initData?new Uint8Array(me.initData):null}catch(me){var h;if(this.warn(me.message),(h=this.hls)!=null&&h.config.debug)throw me}if(n===null)return this.log(`Skipping key-session request for "${r}" (no initData)`),Promise.resolve(e);const _=this.getKeyIdString(e.decryptdata);this.log(`Generating key-session request for "${r}": ${_} (init data type: ${t} length: ${n?n.byteLength:null})`);const S=new wn,R=e._onmessage=me=>{const Se=e.mediaKeysSession;if(!Se){S.emit("error",new Error("invalid state"));return}const{messageType:Me,message:qe}=me;this.log(`"${Me}" message event for session "${Se.sessionId}" message size: ${qe.byteLength}`),Me==="license-request"||Me==="license-renewal"?this.renewLicense(e,qe).catch(Et=>{this.handleError(Et),S.emit("error",Et)}):Me==="license-release"?e.keySystem===je.FAIRPLAY&&(this.updateKeySession(e,ze("acknowledged")),this.removeSession(e)):this.warn(`unhandled media key message type "${Me}"`)},re=e._onkeystatuseschange=me=>{if(!e.mediaKeysSession){S.emit("error",new Error("invalid state"));return}this.onKeyStatusChange(e);const Me=e.keyStatus;S.emit("keyStatus",Me),Me==="expired"&&(this.warn(`${e.keySystem} expired for key ${_}`),this.renewKeySession(e))};e.mediaKeysSession.addEventListener("message",R),e.mediaKeysSession.addEventListener("keystatuseschange",re);const be=new Promise((me,Se)=>{S.on("error",Se),S.on("keyStatus",Me=>{Me.startsWith("usable")?me():Me==="output-restricted"?Se(new Vi({type:y.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):Me==="internal-error"?Se(new Vi({type:y.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${Me}"`)):Me==="expired"?Se(new Error("key expired while generating request")):this.warn(`unhandled key status change "${Me}"`)})});return e.mediaKeysSession.generateRequest(t,n).then(()=>{var me;this.log(`Request generated for key-session "${(me=e.mediaKeysSession)==null?void 0:me.sessionId}" keyId: ${_}`)}).catch(me=>{throw new Vi({type:y.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_NO_SESSION,error:me,fatal:!1},`Error generating key-session request: ${me}`)}).then(()=>be).catch(me=>{throw S.removeAllListeners(),this.removeSession(e),me}).then(()=>(S.removeAllListeners(),e))}onKeyStatusChange(e){e.mediaKeysSession.keyStatuses.forEach((t,n)=>{this.log(`key status change "${t}" for keyStatuses keyId: ${ct.hexDump("buffer"in n?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n))} session keyId: ${ct.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,c)=>{const h={responseType:"arraybuffer",url:i},_=t.certLoadPolicy.default,S={loadPolicy:_,timeout:_.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},R={onSuccess:(re,be,me,Se)=>{s(re.data)},onError:(re,be,me,Se)=>{c(new Vi({type:y.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:me,response:j({url:h.url,data:void 0},re)},`"${e}" certificate request failed (${i}). Status: ${re.code} (${re.text})`))},onTimeout:(re,be,me)=>{c(new Vi({type:y.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:me,response:{url:h.url,data:void 0}},`"${e}" certificate request timed out (${i})`))},onAbort:(re,be,me)=>{c(new Error("aborted"))}};r.load(h,S,R)})):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 Vi({type:y.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:s,fatal:!0},s.message))})})}renewLicense(e,t){return this.requestLicense(e,new Uint8Array(t)).then(n=>this.updateKeySession(e,new Uint8Array(n)).catch(r=>{throw new Vi({type:y.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:r,fatal:!0},r.message)}))}unpackPlayReadyKeyMessage(e,t){const n=String.fromCharCode.apply(null,new Uint16Array(t.buffer));if(!n.includes("PlayReadyKeyMessage"))return e.setRequestHeader("Content-Type","text/xml; charset=utf-8"),t;const r=new DOMParser().parseFromString(n,"application/xml"),i=r.querySelectorAll("HttpHeader");if(i.length>0){let S;for(let R=0,re=i.length;R<re;R++){var s,c;S=i[R];const be=(s=S.querySelector("name"))==null?void 0:s.textContent,me=(c=S.querySelector("value"))==null?void 0:c.textContent;be&&me&&e.setRequestHeader(be,me)}}const h=r.querySelector("Challenge"),_=h==null?void 0:h.textContent;if(!_)throw new Error("Cannot find <Challenge> in key message");return ze(atob(_))}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 c=new XMLHttpRequest;c.responseType="arraybuffer",c.onreadystatechange=()=>{if(!this.hls||!e.mediaKeysSession)return i(new Error("invalid state"));if(c.readyState===4)if(c.status===200){this._requestLicenseFailureCount=0;let h=c.response;this.log(`License received ${h instanceof ArrayBuffer?h.byteLength:h}`);const _=this.config.licenseResponseCallback;if(_)try{h=_.call(this.hls,c,s,e)}catch(S){this.error(S)}r(h)}else{const h=n.errorRetry,_=h?h.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>_||c.status>=400&&c.status<500)i(new Vi({type:y.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:c,response:{url:s,data:void 0,code:c.status,text:c.statusText}},`License Request XHR failed (${s}). Status: ${c.status} (${c.statusText})`));else{const S=_-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${S} attempts left`),this.requestLicense(e,t).then(r,i)}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=c,this.setupLicenseXHR(c,s,e,t).then(({xhr:h,licenseChallenge:_})=>{e.keySystem==je.PLAYREADY&&(_=this.unpackPlayReadyKeyMessage(h,_)),h.send(_)})})}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,t=this.mediaKeySessions;e&&(e.removeEventListener("encrypted",this.onMediaEncrypted),e.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},Nt.clearKeyUriToKeyIdMap();const n=t.length;Ja.CDMCleanupPromise=Promise.all(t.map(r=>this.removeSession(r)).concat(e==null?void 0:e.setMediaKeys(null).catch(r=>{this.log(`Could not clear media keys: ${r}`)}))).then(()=>{n&&(this.log("finished closing key sessions and clearing media keys"),t.length=0)}).catch(r=>{this.log(`Could not close sessions and clear media keys: ${r}`)})}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);return r>-1&&this.mediaKeySessions.splice(r,1),t.remove().catch(i=>{this.log(`Could not remove session: ${i}`)}).then(()=>t.close()).catch(i=>{this.log(`Could not close session: ${i}`)})}}}Ja.CDMCleanupPromise=void 0;class Vi extends Error{constructor(e,t){super(t),this.data=void 0,e.error||(e.error=new Error(t)),this.data=e,e.err=e.error}}var Fi;(function(o){o.MANIFEST="m",o.AUDIO="a",o.VIDEO="v",o.MUXED="av",o.INIT="i",o.CAPTION="c",o.TIMED_TEXT="tt",o.KEY="k",o.OTHER="o"})(Fi||(Fi={}));var po;(function(o){o.DASH="d",o.HLS="h",o.SMOOTH="s",o.OTHER="o"})(po||(po={}));var ka;(function(o){o.OBJECT="CMCD-Object",o.REQUEST="CMCD-Request",o.SESSION="CMCD-Session",o.STATUS="CMCD-Status"})(ka||(ka={}));const gl={[ka.OBJECT]:["br","d","ot","tb"],[ka.REQUEST]:["bl","dl","mtp","nor","nrr","su"],[ka.SESSION]:["cid","pr","sf","sid","st","v"],[ka.STATUS]:["bs","rtp"]};class qa{constructor(e,t){this.value=void 0,this.params=void 0,Array.isArray(e)&&(e=e.map(n=>n instanceof qa?n:new qa(n))),this.value=e,this.params=t}}class ko{constructor(e){this.description=void 0,this.description=e}}const vl="Dict";function yl(o){return Array.isArray(o)?JSON.stringify(o):o instanceof Map?"Map{}":o instanceof Set?"Set{}":typeof o=="object"?JSON.stringify(o):String(o)}function bl(o,e,t,n){return new Error(`failed to ${o} "${yl(e)}" as ${t}`,{cause:n})}const Po="Bare Item",_l="Boolean",xl="Byte Sequence",El="Decimal",wl="Integer";function Sl(o){return o<-999999999999999||999999999999999<o}const Cl=/[\x00-\x1f\x7f]+/,Tl="Token",Al="Key";function ia(o,e,t){return bl("serialize",o,e,t)}function Dl(o){if(typeof o!="boolean")throw ia(o,_l);return o?"?1":"?0"}function Rl(o){return btoa(String.fromCharCode(...o))}function Il(o){if(ArrayBuffer.isView(o)===!1)throw ia(o,xl);return`:${Rl(o)}:`}function Mo(o){if(Sl(o))throw ia(o,wl);return o.toString()}function Ll(o){return`@${Mo(o.getTime()/1e3)}`}function No(o,e){if(o<0)return-No(-o,e);const t=Math.pow(10,e);if(Math.abs(o*t%1-.5)<Number.EPSILON){const r=Math.floor(o*t);return(r%2===0?r:r+1)/t}else return Math.round(o*t)/t}function Ol(o){const e=No(o,3);if(Math.floor(Math.abs(e)).toString().length>12)throw ia(o,El);const t=e.toString();return t.includes(".")?t:`${t}.0`}const kl="String";function Pl(o){if(Cl.test(o))throw ia(o,kl);return`"${o.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Ml(o){return o.description||o.toString().slice(7,-1)}function Fo(o){const e=Ml(o);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw ia(e,Tl);return e}function mo(o){switch(typeof o){case"number":if(!A(o))throw ia(o,Po);return Number.isInteger(o)?Mo(o):Ol(o);case"string":return Pl(o);case"symbol":return Fo(o);case"boolean":return Dl(o);case"object":if(o instanceof Date)return Ll(o);if(o instanceof Uint8Array)return Il(o);if(o instanceof ko)return Fo(o);default:throw ia(o,Po)}}function go(o){if(/^[a-z*][a-z0-9\-_.*]*$/.test(o)===!1)throw ia(o,Al);return o}function vo(o){return o==null?"":Object.entries(o).map(([e,t])=>t===!0?`;${go(e)}`:`;${go(e)}=${mo(t)}`).join("")}function Bo(o){return o instanceof qa?`${mo(o.value)}${vo(o.params)}`:mo(o)}function Nl(o){return`(${o.value.map(Bo).join(" ")})${vo(o.params)}`}function Fl(o,e={whitespace:!0}){if(typeof o!="object")throw ia(o,vl);const t=o instanceof Map?o.entries():Object.entries(o),n=e!=null&&e.whitespace?" ":"";return Array.from(t).map(([r,i])=>{i instanceof qa||(i=new qa(i));let s=go(r);return i.value===!0?s+=vo(i.params):(s+="=",Array.isArray(i.value)?s+=Nl(i):s+=Bo(i)),s}).join(`,${n}`)}function Bl(o,e){return Fl(o,e)}const $l=o=>o==="ot"||o==="sf"||o==="st",zl=o=>typeof o=="number"?A(o):o!=null&&o!==""&&o!==!1;function Ul(o,e){const t=new URL(o),n=new URL(e);if(t.origin!==n.origin)return o;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 Kl(){try{return crypto.randomUUID()}catch(o){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)})}}}const zs=o=>Math.round(o),Hl=(o,e)=>(e!=null&&e.baseUrl&&(o=Ul(o,e.baseUrl)),encodeURIComponent(o)),Us=o=>zs(o/100)*100,Zl={br:zs,d:zs,bl:Us,dl:Us,mtp:Us,nor:Hl,rtp:Us,tb:zs};function jl(o,e){const t={};if(o==null||typeof o!="object")return t;const n=Object.keys(o).sort(),r=a({},Zl,e==null?void 0:e.formatters),i=e==null?void 0:e.filter;return n.forEach(s=>{if(i!=null&&i(s))return;let c=o[s];const h=r[s];h&&(c=h(c,e)),!(s==="v"&&c===1)&&(s=="pr"&&c===1||zl(c)&&($l(s)&&typeof c=="string"&&(c=new ko(c)),t[s]=c))}),t}function $o(o,e={}){return o?Bl(jl(o,e),a({whitespace:!1},e)):""}function Wl(o,e={}){if(!o)return{};const t=Object.entries(o),n=Object.entries(gl).concat(Object.entries((e==null?void 0:e.customHeaderMap)||{})),r=t.reduce((i,s)=>{var c,h;const[_,S]=s,R=((c=n.find(re=>re[1].includes(_)))==null?void 0:c[0])||ka.REQUEST;return(h=i[R])!=null||(i[R]={}),i[R][_]=S,i},{});return Object.entries(r).reduce((i,[s,c])=>(i[s]=$o(c,e),i),{})}function Gl(o,e,t){return a(o,Wl(e,t))}const Vl="CMCD";function Yl(o,e={}){if(!o)return"";const t=$o(o,e);return`${Vl}=${encodeURIComponent(t)}`}const zo=/CMCD=[^&#]+/;function Xl(o,e,t){const n=Yl(e,t);if(!n)return o;if(zo.test(o))return o.replace(zo,n);const r=o.includes("?")?"&":"?";return`${o}${r}${n}`}class Ql{constructor(e){this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=()=>{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=r=>{try{this.apply(r,{ot:Fi.MANIFEST,su:!this.initialized})}catch(i){x.warn("Could not generate manifest CMCD data.",i)}},this.applyFragmentData=r=>{try{const i=r.frag,s=this.hls.levels[i.level],c=this.getObjectType(i),h={d:i.duration*1e3,ot:c};(c===Fi.VIDEO||c===Fi.AUDIO||c==Fi.MUXED)&&(h.br=s.bitrate/1e3,h.tb=this.getTopBandwidth(c)/1e3,h.bl=this.getBufferLength(c)),this.apply(r,h)}catch(i){x.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||Kl(),this.cid=n.contentId,this.useHeaders=n.useHeaders===!0,this.includeKeys=n.includeKeys,this.registerListeners())}registerListeners(){const e=this.hls;e.on(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(u.MEDIA_DETACHED,this.onMediaDetached,this),e.on(u.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const e=this.hls;e.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(u.MEDIA_DETACHED,this.onMediaDetached,this),e.off(u.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=null}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(e,t){var 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:po.HLS,sid:this.sid,cid:this.cid,pr:(e=this.media)==null?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){a(t,this.createData());const n=t.ot===Fi.INIT||t.ot===Fi.VIDEO||t.ot===Fi.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((i,s)=>(r.includes(s)&&(i[s]=t[s]),i),{})),this.useHeaders?(e.headers||(e.headers={}),Gl(e.headers,t)):e.url=Xl(e.url,t)}getObjectType(e){const{type:t}=e;if(t==="subtitle")return Fi.TIMED_TEXT;if(e.sn==="initSegment")return Fi.INIT;if(t==="audio")return Fi.AUDIO;if(t==="main")return this.hls.audioTracks.length?Fi.VIDEO:Fi.MUXED}getTopBandwidth(e){let t=0,n;const r=this.hls;if(e===Fi.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.hls.media,n=e===Fi.AUDIO?this.audioBuffer:this.videoBuffer;return!n||!t?NaN:Ur.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,c){t(i),this.loader.load(i,s,c)}}}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,c){t(i),this.loader.load(i,s,c)}}}}const Jl=3e5;class ql{constructor(e){this.hls=void 0,this.log=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this.pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=e,this.log=x.log.bind(x,"[content-steering]:"),this.registerListeners()}registerListeners(){const e=this.hls;e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(u.MANIFEST_PARSED,this.onManifestParsed,this),e.on(u.ERROR,this.onError,this)}unregisterListeners(){const e=this.hls;e&&(e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(u.MANIFEST_PARSED,this.onManifestParsed,this),e.off(u.ERROR,this.onError,this))}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const e=this.timeToLoad*1e3-(performance.now()-this.updated);if(e>0){this.scheduleRefresh(this.uri,e);return}}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){this.reloadTimer!==-1&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(e){const t=this.levels;t&&(this.levels=t.filter(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===yr.MoveAllAlternatesMatchingHost){const r=this.levels;let i=this.pathwayPriority,s=this.pathwayId;if(t.context){const{groupId:c,pathwayId:h,type:_}=t.context;c&&r?s=this.getPathwayForGroupId(c,_,s):h&&(s=h)}s in this.penalizedPathways||(this.penalizedPathways[s]=performance.now()),!i&&r&&(i=r.reduce((c,h)=>(c.indexOf(h.pathwayId)===-1&&c.push(h.pathwayId),c),[])),i&&i.length>1&&(this.updatePathwayPriority(i),n.resolved=this.pathwayId!==s),n.resolved||x.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${s} levels: ${r&&r.length} priorities: ${JSON.stringify(i)} penalized: ${JSON.stringify(this.penalizedPathways)}`)}}filterParsedLevels(e){this.levels=e;let t=this.getLevelsForPathway(this.pathwayId);if(t.length===0){const 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]>Jl&&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 c=this.hls.nextLoadLevel,h=this.hls.levels[c];if(t=this.getLevelsForPathway(s),t.length>0){this.log(`Setting Pathway to "${s}"`),this.pathwayId=s,xn(t),this.hls.trigger(u.LEVELS_UPDATED,{levels:t});const _=this.hls.levels[c];h&&_&&this.levels&&(_.attrs["STABLE-VARIANT-ID"]!==h.attrs["STABLE-VARIANT-ID"]&&_.bitrate!==h.bitrate&&this.log(`Unstable Pathways change from bitrate ${h.bitrate} to ${_.bitrate}`),this.hls.nextLoadLevel=c);break}}}getPathwayForGroupId(e,t,n){const r=this.getLevelsForPathway(n).concat(this.levels||[]);for(let i=0;i<r.length;i++)if(t===qt.AUDIO_TRACK&&r[i].hasAudioGroup(e)||t===qt.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":c,"URI-REPLACEMENT":h}=i;if(t.some(S=>S.pathwayId===s))return;const _=this.getLevelsForPathway(c).map(S=>{const R=new B(S.attrs);R["PATHWAY-ID"]=s;const re=R.AUDIO&&`${R.AUDIO}_clone_${s}`,be=R.SUBTITLES&&`${R.SUBTITLES}_clone_${s}`;re&&(n[R.AUDIO]=re,R.AUDIO=re),be&&(r[R.SUBTITLES]=be,R.SUBTITLES=be);const me=Ko(S.uri,R["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",h),Se=new Fr({attrs:R,audioCodec:S.audioCodec,bitrate:S.bitrate,height:S.height,name:S.name,url:me,videoCodec:S.videoCodec,width:S.width});if(S.audioGroups)for(let Me=1;Me<S.audioGroups.length;Me++)Se.addGroupId("audio",`${S.audioGroups[Me]}_clone_${s}`);if(S.subtitleGroups)for(let Me=1;Me<S.subtitleGroups.length;Me++)Se.addGroupId("text",`${S.subtitleGroups[Me]}_clone_${s}`);return Se});t.push(..._),Uo(this.audioTracks,n,h,s),Uo(this.subtitleTracks,r,h,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(S){this.enabled=!1,this.log(`Failed to parse Steering Manifest URI: ${e}`);return}if(r.protocol!=="data:"){const S=(this.hls.bandwidthEstimate||t.abrEwmaDefaultEstimate)|0;r.searchParams.set("_HLS_pathway",this.pathwayId),r.searchParams.set("_HLS_throughput",""+S)}const i={responseType:"json",url:r.href},s=t.steeringManifestLoadPolicy.default,c=s.errorRetry||s.timeoutRetry||{},h={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:c.maxNumRetry||0,retryDelay:c.retryDelayMs||0,maxRetryDelay:c.maxRetryDelayMs||0},_={onSuccess:(S,R,re,be)=>{this.log(`Loaded steering manifest: "${r}"`);const me=S.data;if(me.VERSION!==1){this.log(`Steering VERSION ${me.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=me.TTL;const{"RELOAD-URI":Se,"PATHWAY-CLONES":Me,"PATHWAY-PRIORITY":qe}=me;if(Se)try{this.uri=new self.URL(Se,r).href}catch(wt){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${Se}`);return}this.scheduleRefresh(this.uri||re.url),Me&&this.clonePathways(Me);const Et={steeringManifest:me,url:r.toString()};this.hls.trigger(u.STEERING_MANIFEST_LOADED,Et),qe&&this.updatePathwayPriority(qe)},onError:(S,R,re,be)=>{if(this.log(`Error loading steering manifest: ${S.code} ${S.text} (${R.url})`),this.stopLoad(),S.code===410){this.enabled=!1,this.log(`Steering manifest ${R.url} no longer available`);return}let me=this.timeToLoad*1e3;if(S.code===429){const Se=this.loader;if(typeof(Se==null?void 0:Se.getResponseHeader)=="function"){const Me=Se.getResponseHeader("Retry-After");Me&&(me=parseFloat(Me)*1e3)}this.log(`Steering manifest ${R.url} rate limited`);return}this.scheduleRefresh(this.uri||R.url,me)},onTimeout:(S,R,re)=>{this.log(`Timeout loading steering manifest (${R.url})`),this.scheduleRefresh(this.uri||R.url)}};this.log(`Requesting steering manifest: ${r}`),this.loader.load(i,h,_)}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 Uo(o,e,t,n){o&&Object.keys(e).forEach(r=>{const i=o.filter(s=>s.groupId===r).map(s=>{const c=a({},s);return c.details=void 0,c.attrs=new B(c.attrs),c.url=c.attrs.URI=Ko(s.url,s.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",t),c.groupId=c.attrs["GROUP-ID"]=e[r],c.attrs["PATHWAY-ID"]=n,c});o.push(...i)})}function Ko(o,e,t,n){const{HOST:r,PARAMS:i,[t]:s}=n;let c;e&&(c=s==null?void 0:s[e],c&&(o=c));const h=new self.URL(o);return r&&!c&&(h.host=r),i&&Object.keys(i).sort().forEach(_=>{_&&h.searchParams.set(_,i[_])}),h.href}const eu=/^age:\s*[\d.]+\s*$/im;class Ho{constructor(e){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=e&&e.xhrSetup||null,this.stats=new he,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=>{this.callbacks.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 c in r)e.setRequestHeader(c,r[c]);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&&A(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 s=t.status,c=t.responseType==="text"?t.responseText:null;if(s>=200&&s<300){const R=c!=null?c:t.response;if(R!=null){n.loading.end=Math.max(self.performance.now(),n.loading.first);const re=t.responseType==="arraybuffer"?R.byteLength:R.length;if(n.loaded=n.total=re,n.bwEstimate=n.total*8e3/(n.loading.end-n.loading.first),!this.callbacks)return;const be=this.callbacks.onProgress;if(be&&be(n,e,R,t),!this.callbacks)return;const me={url:t.responseURL,data:R,code:s};this.callbacks.onSuccess(me,n,e,t);return}}const h=i.loadPolicy.errorRetry,_=n.retry,S={url:e.url,data:void 0,code:s};Tr(h,_,!1,S)?this.retry(h):(x.error(`${s} while loading ${e.url}`),this.callbacks.onError({code:s,text:t.statusText},e,t,n))}}loadtimeout(){if(!this.config)return;const e=this.config.loadPolicy.timeoutRetry,t=this.stats.retry;if(Tr(e,t,!0))this.retry(e);else{var n;x.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=lr(e,n.retry),n.retry++,x.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&&eu.test(this.loader.getAllResponseHeaders())){const t=this.loader.getResponseHeader("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.loader&&new RegExp(`^${e}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(e):null}}function tu(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(o){}return!1}const nu=/(\d+)-(\d+)\/(\d+)/;class Zo{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||su,this.controller=new self.AbortController,this.stats=new he}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=ru(e,this.controller.signal),s=n.onProgress,c=e.responseType==="arraybuffer",h=c?"byteLength":"length",{maxTimeToFirstByteMs:_,maxLoadTimeMs:S}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=n,this.request=this.fetchSetup(e,i),self.clearTimeout(this.requestTimeout),t.timeout=_&&A(_)?_:S,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),n.onTimeout(r,e,this.response)},t.timeout),self.fetch(this.request).then(R=>{this.response=this.loader=R;const re=Math.max(self.performance.now(),r.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=S,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),n.onTimeout(r,e,this.response)},S-(re-r.loading.start)),!R.ok){const{status:be,statusText:me}=R;throw new ou(me||"fetch, bad network response",be,R)}return r.loading.first=re,r.total=au(R.headers)||r.total,s&&A(t.highWaterMark)?this.loadProgressively(R,r,e,t.highWaterMark,s):c?R.arrayBuffer():e.responseType==="json"?R.json():R.text()}).then(R=>{const re=this.response;if(!re)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),r.loading.end=Math.max(self.performance.now(),r.loading.first);const be=R[h];be&&(r.loaded=r.total=be);const me={url:re.url,data:R,code:re.status};s&&!A(t.highWaterMark)&&s(r,e,R,re),n.onSuccess(me,r,e,re)}).catch(R=>{if(self.clearTimeout(this.requestTimeout),r.aborted)return;const re=R&&R.code||0,be=R?R.message:null;n.onError({code:re,text:be},e,R?R.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 ts,c=e.body.getReader(),h=()=>c.read().then(_=>{if(_.done)return s.dataLength&&i(t,n,s.flush(),e),Promise.resolve(new ArrayBuffer(0));const S=_.value,R=S.length;return t.loaded+=R,R<r||s.dataLength?(s.push(S),s.dataLength>=r&&i(t,n,s.flush(),e)):i(t,n,S,e),h()}).catch(()=>Promise.reject());return h()}}function ru(o,e){const t={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(a({},o.headers))};return o.rangeEnd&&t.headers.set("Range","bytes="+o.rangeStart+"-"+String(o.rangeEnd-1)),t}function iu(o){const e=nu.exec(o);if(e)return parseInt(e[2])-parseInt(e[1])+1}function au(o){const e=o.get("Content-Range");if(e){const n=iu(e);if(A(n))return n}const t=o.get("Content-Length");if(t)return parseInt(t)}function su(o,e){return new self.Request(o.url,e)}class ou extends Error{constructor(e,t,n){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=n}}const lu=/\s/,uu={newCue(o,e,t,n){const r=[];let i,s,c,h,_;const S=self.VTTCue||self.TextTrackCue;for(let re=0;re<n.rows.length;re++)if(i=n.rows[re],c=!0,h=0,_="",!i.isEmpty()){var R;for(let Se=0;Se<i.chars.length;Se++)lu.test(i.chars[Se].uchar)&&c?h++:(_+=i.chars[Se].uchar,c=!1);i.cueStartTime=e,e===t&&(t+=1e-4),h>=16?h--:h++;const be=wo(_.trim()),me=oo(e,t,be);o!=null&&(R=o.cues)!=null&&R.getCueById(me)||(s=new S(e,t,be),s.id=me,s.line=re+1,s.align="left",s.position=10+Math.min(80,Math.floor(h*8/32)*10),r.push(s))}return o&&r.length&&(r.sort((re,be)=>re.line==="auto"||be.line==="auto"?0:re.line>8&&be.line>8?be.line-re.line:re.line-be.line),r.forEach(re=>nr(o,re))),r}},cu={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},jo=j(j({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:Ho,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:Jr,bufferController:Ki,capLevelController:ho,errorController:Qr,fpsController:ml,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:sn,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,useMediaCapabilities:!0,certLoadPolicy:{default:cu},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},du()),{},{subtitleStreamController:ai,subtitleTrackController:Ri,timelineController:hl,audioStreamController:ti,audioTrackController:Xr,emeController:Ja,cmcdController:Ql,contentSteeringController:ql});function du(){return{cueHandler:uu,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function fu(o,e){if((e.liveSyncDurationCount||e.liveMaxLatencyDurationCount)&&(e.liveSyncDuration||e.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(e.liveMaxLatencyDurationCount!==void 0&&(e.liveSyncDurationCount===void 0||e.liveMaxLatencyDurationCount<=e.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(e.liveMaxLatencyDuration!==void 0&&(e.liveSyncDuration===void 0||e.liveMaxLatencyDuration<=e.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const t=yo(o),n=["manifest","level","frag"],r=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return n.forEach(i=>{const s=`${i==="level"?"playlist":i}LoadPolicy`,c=e[s]===void 0,h=[];r.forEach(_=>{const S=`${i}Loading${_}`,R=e[S];if(R!==void 0&&c){h.push(S);const re=t[s].default;switch(e[s]={default:re},_){case"TimeOut":re.maxLoadTimeMs=R,re.maxTimeToFirstByteMs=R;break;case"MaxRetry":re.errorRetry.maxNumRetry=R,re.timeoutRetry.maxNumRetry=R;break;case"RetryDelay":re.errorRetry.retryDelayMs=R,re.timeoutRetry.retryDelayMs=R;break;case"MaxRetryTimeout":re.errorRetry.maxRetryDelayMs=R,re.timeoutRetry.maxRetryDelayMs=R;break}}}),h.length&&x.warn(`hls.js config: "${h.join('", "')}" setting(s) are deprecated, use "${s}": ${JSON.stringify(e[s])}`)}),j(j({},t),e)}function yo(o){return o&&typeof o=="object"?Array.isArray(o)?o.map(yo):Object.keys(o).reduce((e,t)=>(e[t]=yo(o[t]),e),{}):o}function hu(o){const e=o.loader;e!==Zo&&e!==Ho?(x.log("[config]: Custom loader detected, cannot enable progressive streaming"),o.progressive=!1):tu()&&(o.loader=Zo,o.progressive=!0,o.enableSoftwareAES=!0,x.log("[config]: Progressive streaming enabled, using FetchLoader"))}let bo;class pu extends Ir{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(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(u.LEVEL_LOADED,this.onLevelLoaded,this),e.on(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(u.FRAG_BUFFERED,this.onFragBuffered,this),e.on(u.ERROR,this.onError,this)}_unregisterListeners(){const{hls:e}=this;e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(u.LEVEL_LOADED,this.onLevelLoaded,this),e.off(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(u.FRAG_BUFFERED,this.onFragBuffered,this),e.off(u.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 c=!1,h=!1,_=!1;t.levels.forEach(S=>{var R,re;const be=S.attrs;let{audioCodec:me,videoCodec:Se}=S;((R=me)==null?void 0:R.indexOf("mp4a.40.34"))!==-1&&(bo||(bo=/chrome|firefox/i.test(navigator.userAgent)),bo&&(S.audioCodec=me=void 0)),me&&(S.audioCodec=me=tn(me,n)),((re=Se)==null?void 0:re.indexOf("avc1"))===0&&(Se=S.videoCodec=In(Se));const{width:Me,height:qe,unknownCodecs:Et}=S;if(c||(c=!!(Me&&qe)),h||(h=!!Se),_||(_=!!me),Et!=null&&Et.length||me&&!Qe(me,"audio",n)||Se&&!Qe(Se,"video",n))return;const{CODECS:wt,"FRAME-RATE":an,"HDCP-LEVEL":Rt,"PATHWAY-ID":_n,RESOLUTION:Yt,"VIDEO-RANGE":kn}=be,vn=`${`${_n||"."}-`}${S.bitrate}-${Yt}-${an}-${wt}-${kn}-${Rt}`;if(i[vn])if(i[vn].uri!==S.url&&!S.attrs["PATHWAY-ID"]){const Mn=s[vn]+=1;S.attrs["PATHWAY-ID"]=new Array(Mn+1).join(".");const Cr=new Fr(S);i[vn]=Cr,r.push(Cr)}else i[vn].addGroupId("audio",be.AUDIO),i[vn].addGroupId("text",be.SUBTITLES);else{const Mn=new Fr(S);i[vn]=Mn,s[vn]=1,r.push(Mn)}}),this.filterAndSortMediaOptions(r,t,c,h,_)}filterAndSortMediaOptions(e,t,n,r,i){let s=[],c=[],h=e;if((n||r)&&i&&(h=h.filter(({videoCodec:me,videoRange:Se,width:Me,height:qe})=>(!!me||!!(Me&&qe))&&gr(Se))),h.length===0){Promise.resolve().then(()=>{if(this.hls){t.levels.length&&this.warn(`One or more CODECS in variant not supported: ${JSON.stringify(t.levels[0].attrs)}`);const me=new Error("no level with compatible codecs found in manifest");this.hls.trigger(u.ERROR,{type:y.MEDIA_ERROR,details:b.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:me,reason:me.message})}});return}if(t.audioTracks){const{preferManagedMediaSource:me}=this.hls.config;s=t.audioTracks.filter(Se=>!Se.audioCodec||Qe(Se.audioCodec,"audio",me)),Wo(s)}t.subtitles&&(c=t.subtitles,Wo(c));const _=h.slice(0);h.sort((me,Se)=>{if(me.attrs["HDCP-LEVEL"]!==Se.attrs["HDCP-LEVEL"])return(me.attrs["HDCP-LEVEL"]||"")>(Se.attrs["HDCP-LEVEL"]||"")?1:-1;if(n&&me.height!==Se.height)return me.height-Se.height;if(me.frameRate!==Se.frameRate)return me.frameRate-Se.frameRate;if(me.videoRange!==Se.videoRange)return Dr.indexOf(me.videoRange)-Dr.indexOf(Se.videoRange);if(me.videoCodec!==Se.videoCodec){const Me=bt(me.videoCodec),qe=bt(Se.videoCodec);if(Me!==qe)return qe-Me}if(me.uri===Se.uri&&me.codecSet!==Se.codecSet){const Me=ht(me.codecSet),qe=ht(Se.codecSet);if(Me!==qe)return qe-Me}return me.averageBitrate!==Se.averageBitrate?me.averageBitrate-Se.averageBitrate:0});let S=_[0];if(this.steering&&(h=this.steering.filterParsedLevels(h),h.length!==_.length)){for(let me=0;me<_.length;me++)if(_[me].pathwayId===h[0].pathwayId){S=_[me];break}}this._levels=h;for(let me=0;me<h.length;me++)if(h[me]===S){var R;this._firstLevel=me;const Se=S.bitrate,Me=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${h.length} level(s) found, first bitrate: ${Se}`),((R=this.hls.userConfig)==null?void 0:R.abrEwmaDefaultEstimate)===void 0){const qe=Math.min(Se,this.hls.config.abrEwmaDefaultEstimateMax);qe>Me&&Me===jo.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=qe)}break}const re=i&&!r,be={levels:h,audioTracks:s,subtitleTracks:c,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:i,video:r,altAudio:!re&&s.some(me=>!!me.url)};this.hls.trigger(u.MANIFEST_PARSED,be),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}get levels(){return this._levels.length===0?null:this._levels}get level(){return this.currentLevelIndex}set level(e){const t=this._levels;if(t.length===0)return;if(e<0||e>=t.length){const S=new Error("invalid level idx"),R=e<0;if(this.hls.trigger(u.ERROR,{type:y.OTHER_ERROR,details:b.LEVEL_SWITCH_ERROR,level:e,fatal:R,error:S,reason:S.message}),R)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],c=s.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=s,n===e&&s.details&&r&&i===c)return;this.log(`Switching to level ${e} (${s.height?s.height+"p ":""}${s.videoRange?s.videoRange+" ":""}${s.codecSet?s.codecSet+" ":""}@${s.bitrate})${c?" with Pathway "+c:""} from level ${n}${i?" with Pathway "+i:""}`);const h={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(u.LEVEL_SWITCHING,h);const _=s.details;if(!_||_.live){const S=this.switchParams(s.uri,r==null?void 0:r.details,_);this.loadPlaylist(S)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(e){this.manualLevelIndex=e,this._startLevel===void 0&&(this._startLevel=e),e!==-1&&(this.level=e)}get firstLevel(){return this._firstLevel}set firstLevel(e){this._firstLevel=e}get startLevel(){if(this._startLevel===void 0){const e=this.hls.config.startLevel;return e!==void 0?e:this.hls.firstAutoLevel}return this._startLevel}set startLevel(e){this._startLevel=e}onError(e,t){t.fatal||!t.context||t.context.type===qt.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t!==void 0&&t.type===Ke.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=this._levels[r];if(!s){var c;this.warn(`Invalid level index ${r}`),(c=t.deliveryDirectives)!=null&&c.skip&&(i.deltaUpdateFailed=!0);return}r===this.currentLevelIndex?(s.fragmentError===0&&(s.loadError=0),this.playlistLoaded(r,t,s.details)):(n=t.deliveryDirectives)!=null&&n.skip&&(i.deltaUpdateFailed=!0)}loadPlaylist(e){super.loadPlaylist();const t=this.currentLevelIndex,n=this.currentLevel;if(n&&this.shouldLoadPlaylist(n)){let r=n.uri;if(e)try{r=e.addDirectives(r)}catch(s){this.warn(`Could not construct new URL with HLS Delivery Directives: ${s}`)}const i=n.attrs["PATHWAY-ID"];this.log(`Loading level index ${t}${(e==null?void 0:e.msn)!==void 0?" at sn "+e.msn+" part "+e.part:""} with${i?" Pathway "+i:""} ${r}`),this.clearTimer(),this.hls.trigger(u.LEVEL_LOADING,{url:r,level:t,pathwayId:n.attrs["PATHWAY-ID"],id:0,deliveryDirectives:e||null})}}get nextLoadLevel(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(e){this.level=e,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=e)}removeLevel(e){var t;const n=this._levels.filter((r,i)=>i!==e?!0:(this.steering&&this.steering.removeLevel(r),r===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,r.details&&r.details.fragments.forEach(s=>s.level=-1)),!1));xn(n),this._levels=n,this.currentLevelIndex>-1&&(t=this.currentLevel)!=null&&t.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.hls.trigger(u.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(u.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:t,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:n}))}}function Wo(o){const e={};o.forEach(t=>{const n=t.groupId||"";t.id=e[n]=e[n]||0,e[n]++})}class mu{constructor(e){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=e}abort(e){for(const n in this.keyUriToKeyInfo){const r=this.keyUriToKeyInfo[n].loader;if(r){var t;if(e&&e!==((t=r.context)==null?void 0:t.frag.type))return;r.abort()}}}detach(){for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e];(t.mediaKeySessionContext||t.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[e]}}destroy(){this.detach();for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e].loader;t&&t.destroy()}this.keyUriToKeyInfo={}}createKeyLoadError(e,t=b.KEY_LOAD_ERROR,n,r,i){return new li({type:y.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(c=>{s.setKeyFormat(c)});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 _=new Error(t?`Expected frag.decryptdata to be defined after setting format ${t}`:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(e,b.KEY_LOAD_ERROR,_))}const s=i.uri;if(!s)return Promise.reject(this.createKeyLoadError(e,b.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${s}"`)));let c=this.keyUriToKeyInfo[s];if((n=c)!=null&&n.decryptdata.key)return i.key=c.decryptdata.key,Promise.resolve({frag:e,keyInfo:c});if((r=c)!=null&&r.keyLoadPromise){var h;switch((h=c.mediaKeySessionContext)==null?void 0:h.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return c.keyLoadPromise.then(_=>(i.key=_.keyInfo.decryptdata.key,{frag:e,keyInfo:c}))}}switch(c=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(c,e):this.loadKeyEME(c,e);case"AES-128":return this.loadKeyHTTP(c,e);default:return Promise.reject(this.createKeyLoadError(e,b.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${i.method}"`)))}}loadKeyEME(e,t){const n={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){const r=this.emeController.loadKey(n);if(r)return(e.keyLoadPromise=r.then(i=>(e.mediaKeySessionContext=i,n))).catch(i=>{throw e.keyLoadPromise=null,i})}return Promise.resolve(n)}loadKeyHTTP(e,t){const n=this.config,r=n.loader,i=new r(n);return t.keyLoader=e.loader=i,e.keyLoadPromise=new Promise((s,c)=>{const h={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},_=n.keyLoadPolicy.default,S={loadPolicy:_,timeout:_.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},R={onSuccess:(re,be,me,Se)=>{const{frag:Me,keyInfo:qe,url:Et}=me;if(!Me.decryptdata||qe!==this.keyUriToKeyInfo[Et])return c(this.createKeyLoadError(Me,b.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),Se));qe.decryptdata.key=Me.decryptdata.key=new Uint8Array(re.data),Me.keyLoader=null,qe.loader=null,s({frag:Me,keyInfo:qe})},onError:(re,be,me,Se)=>{this.resetLoader(be),c(this.createKeyLoadError(t,b.KEY_LOAD_ERROR,new Error(`HTTP Error ${re.code} loading key ${re.text}`),me,j({url:h.url,data:void 0},re)))},onTimeout:(re,be,me)=>{this.resetLoader(be),c(this.createKeyLoadError(t,b.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),me))},onAbort:(re,be,me)=>{this.resetLoader(be),c(this.createKeyLoadError(t,b.INTERNAL_ABORTED,new Error("key loading aborted"),me))}};i.load(h,S,R)})}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 Go(){return self.SourceBuffer||self.WebKitSourceBuffer}function Vo(){if(!ln())return!1;const e=Go();return!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function"}function gu(){if(!Vo())return!1;const o=ln();return typeof(o==null?void 0:o.isTypeSupported)=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(e=>o.isTypeSupported(vt(e,"video")))||["mp4a.40.2","fLaC"].some(e=>o.isTypeSupported(vt(e,"audio"))))}function vu(){var o;const e=Go();return typeof(e==null||(o=e.prototype)==null?void 0:o.changeType)=="function"}const yu=250,Ks=2,bu=.1,_u=.05;class xu{constructor(e,t,n,r){this.config=void 0,this.media=null,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=e,this.media=t,this.fragmentTracker=n,this.hls=r}destroy(){this.media=null,this.hls=this.fragmentTracker=null}poll(e,t){const{config:n,media:r,stalled:i}=this;if(r===null)return;const{currentTime:s,seeking:c}=r,h=this.seeking&&!c,_=!this.seeking&&c;if(this.seeking=c,s!==e){if(this.moved=!0,c||(this.nudgeRetry=0),i!==null){if(this.stallReported){const Me=self.performance.now()-i;x.warn(`playback not stuck anymore @${s}, after ${Math.round(Me)}ms`),this.stallReported=!1}this.stalled=null}return}if(_||h){this.stalled=null;return}if(r.paused&&!c||r.ended||r.playbackRate===0||!Ur.getBuffered(r).length){this.nudgeRetry=0;return}const S=Ur.bufferInfo(r,s,0),R=S.nextStart||0;if(c){const Me=S.len>Ks,qe=!R||t&&t.start<=s||R-s>Ks&&!this.fragmentTracker.getPartialFragment(s);if(Me||qe)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var re;if(!(S.len>0)&&!R)return;const qe=Math.max(R,S.start||0)-s,Et=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,an=(Et==null||(re=Et.details)==null?void 0:re.live)?Et.details.targetduration*2:Ks,Rt=this.fragmentTracker.getPartialFragment(s);if(qe>0&&(qe<=an||Rt)){r.paused||this._trySkipBufferHole(Rt);return}}const be=self.performance.now();if(i===null){this.stalled=be;return}const me=be-i;if(!c&&me>=yu&&(this._reportStall(S),!this.media))return;const Se=Ur.bufferInfo(r,s,n.maxBufferHole);this._tryFixBufferStall(Se,me)}_tryFixBufferStall(e,t){const{config:n,fragmentTracker:r,media:i}=this;if(i===null)return;const s=i.currentTime,c=r.getPartialFragment(s);c&&(this._trySkipBufferHole(c)||!this.media)||(e.len>n.maxBufferHole||e.nextStart&&e.nextStart-s<n.maxBufferHole)&&t>n.highBufferWatchdogPeriod*1e3&&(x.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}_reportStall(e){const{hls:t,media:n,stallReported:r}=this;if(!r&&n){this.stallReported=!0;const i=new Error(`Playback stalling at @${n.currentTime} due to low buffer (${JSON.stringify(e)})`);x.warn(i.message),t.trigger(u.ERROR,{type:y.MEDIA_ERROR,details:b.BUFFER_STALLED_ERROR,fatal:!1,error:i,buffer:e.len})}}_trySkipBufferHole(e){const{config:t,hls:n,media:r}=this;if(r===null)return 0;const i=r.currentTime,s=Ur.bufferInfo(r,i,0),c=i<s.start?s.start:s.nextStart;if(c){const h=s.len<=t.maxBufferHole,_=s.len>0&&s.len<1&&r.readyState<3,S=c-i;if(S>0&&(h||_)){if(S>t.maxBufferHole){const{fragmentTracker:re}=this;let be=!1;if(i===0){const me=re.getAppendedFrag(0,Ke.MAIN);me&&c<me.end&&(be=!0)}if(!be){const me=e||re.getAppendedFrag(i,Ke.MAIN);if(me){let Se=!1,Me=me.end;for(;Me<c;){const qe=re.getPartialFragment(Me);if(qe)Me+=qe.duration;else{Se=!0;break}}if(Se)return 0}}}const R=Math.max(c+_u,i+bu);if(x.warn(`skipping hole, adjusting currentTime from ${i} to ${R}`),this.moved=!0,this.stalled=null,r.currentTime=R,e&&!e.gap){const re=new Error(`fragment loaded with buffer holes, seeking from ${i} to ${R}`);n.trigger(u.ERROR,{type:y.MEDIA_ERROR,details:b.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:re,reason:re.message,frag:e})}return R}}return 0}_tryNudgeBuffer(){const{config:e,hls:t,media:n,nudgeRetry:r}=this;if(n===null)return;const i=n.currentTime;if(this.nudgeRetry++,r<e.nudgeMaxRetry){const s=i+(r+1)*e.nudgeOffset,c=new Error(`Nudging 'currentTime' from ${i} to ${s}`);x.warn(c.message),n.currentTime=s,t.trigger(u.ERROR,{type:y.MEDIA_ERROR,details:b.BUFFER_NUDGE_ON_STALL,error:c,fatal:!1})}else{const s=new Error(`Playhead still not moving while enough data buffered @${i} after ${e.nudgeMaxRetry} nudges`);x.error(s.message),t.trigger(u.ERROR,{type:y.MEDIA_ERROR,details:b.BUFFER_STALLED_ERROR,error:s,fatal:!0})}}}const Eu=100;class wu extends _a{constructor(e,t,n){super(e,t,n,"[stream-controller]",Ke.MAIN),this.audioCodecSwap=!1,this.gapController=null,this.level=-1,this._forceStartLoad=!1,this.altAudio=!1,this.audioOnly=!1,this.fragPlaying=null,this.onvplaying=null,this.onvseeked=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.MANIFEST_PARSED,this.onManifestParsed,this),e.on(u.LEVEL_LOADING,this.onLevelLoading,this),e.on(u.LEVEL_LOADED,this.onLevelLoaded,this),e.on(u.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(u.ERROR,this.onError,this),e.on(u.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(u.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(u.BUFFER_CREATED,this.onBufferCreated,this),e.on(u.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(u.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.MANIFEST_PARSED,this.onManifestParsed,this),e.off(u.LEVEL_LOADED,this.onLevelLoaded,this),e.off(u.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(u.ERROR,this.onError,this),e.off(u.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(u.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(u.BUFFER_CREATED,this.onBufferCreated,this),e.off(u.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(u.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying()}startLoad(e){if(this.levels){const{lastCurrentTime:t,hls:n}=this;if(this.stopLoad(),this.setInterval(Eu),this.level=-1,!this.startFragRequested){let r=n.startLevel;r===-1&&(n.config.testBandwidth&&this.levels.length>1?(r=0,this.bitrateTest=!0):r=n.firstAutoLevel),n.nextLoadLevel=r,this.level=n.loadLevel,this.loadedmetadata=!1}t>0&&e===-1&&(this.log(`Override startPosition with lastCurrentTime @${t.toFixed(3)}`),e=t),this.state=hn.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}else this._forceStartLoad=!0,this.state=hn.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case hn.WAITING_LEVEL:{const{levels:t,level:n}=this,r=t==null?void 0:t[n],i=r==null?void 0:r.details;if(i&&(!i.live||this.levelLastLoaded===r)){if(this.waitForCdnTuneIn(i))break;this.state=hn.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=hn.IDLE;break}break}case hn.FRAG_LOADING_WAITING_RETRY:{var e;const t=self.performance.now(),n=this.retryDate;if(!n||t>=n||(e=this.media)!=null&&e.seeking){const{levels:r,level:i}=this,s=r==null?void 0:r[i];this.resetStartWhenNotLoaded(s||null),this.state=hn.IDLE}}break}this.state===hn.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){super.onTickEnd(),this.checkBuffer(),this.checkFragmentChanged()}doTickIdle(){const{hls:e,levelLastLoaded:t,levels:n,media:r}=this;if(t===null||!r&&(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],c=this.getMainFwdBufferInfo();if(c===null)return;const h=this.getLevelDetails();if(h&&this._streamEnded(c,h)){const Se={};this.altAudio&&(Se.type="video"),this.hls.trigger(u.BUFFER_EOS,Se),this.state=hn.ENDED;return}if(!this.buffering)return;e.loadLevel!==i&&e.manualLevel===-1&&this.log(`Adapting to level ${i} from level ${this.level}`),this.level=e.nextLoadLevel=i;const _=s.details;if(!_||this.state===hn.WAITING_LEVEL||_.live&&this.levelLastLoaded!==s){this.level=i,this.state=hn.WAITING_LEVEL;return}const S=c.len,R=this.getMaxBufferLength(s.maxBitrate);if(S>=R)return;this.backtrackFragment&&this.backtrackFragment.start>c.end&&(this.backtrackFragment=null);const re=this.backtrackFragment?this.backtrackFragment.start:c.end;let be=this.getNextFragment(re,_);if(this.couldBacktrack&&!this.fragPrevious&&be&&be.sn!=="initSegment"&&this.fragmentTracker.getState(be)!==Br.OK){var me;const Me=((me=this.backtrackFragment)!=null?me:be).sn-_.startSN,qe=_.fragments[Me-1];qe&&be.cc===qe.cc&&(be=qe,this.fragmentTracker.removeFragment(qe))}else this.backtrackFragment&&c.len&&(this.backtrackFragment=null);if(be&&this.isLoopLoading(be,re)){if(!be.gap){const Me=this.audioOnly&&!this.altAudio?G.AUDIO:G.VIDEO,qe=(Me===G.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;qe&&this.afterBufferFlushed(qe,Me,Ke.MAIN)}be=this.getNextFragmentLoopLoading(be,_,c,Ke.MAIN,R)}be&&(be.initSegment&&!be.initSegment.data&&!this.bitrateTest&&(be=be.initSegment),this.loadFragment(be,s,re))}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);this.fragCurrent=e,r===Br.NOT_LOADED||r===Br.PARTIAL?e.sn==="initSegment"?this._loadInitSegment(e,t):this.bitrateTest?(this.log(`Fragment ${e.sn} of level ${e.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(e,t)):(this.startFragRequested=!0,super.loadFragment(e,t,n)):this.clearTrackerIfNeeded(e)}getBufferedFrag(e){return this.fragmentTracker.getBufferedFrag(e,Ke.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 c=this.getMainFwdBufferInfo();if(!c||c.len<i.targetduration*2)return}if(!t.paused&&e){const c=this.hls.nextLoadLevel,h=e[c],_=this.fragLastKbps;_&&this.fragCurrent?n=this.fragCurrent.duration*h.maxBitrate/(1e3*_)+1:n=0}else n=0;const s=this.getBufferedFrag(t.currentTime+n);if(s){const c=this.followingBufferedFrag(s);if(c){this.abortCurrentFrag();const h=c.maxStartPTS?c.maxStartPTS:c.start,_=c.duration,S=Math.max(s.end,h+Math.min(Math.max(_-this.config.maxFragLookUpTolerance,_*(this.couldBacktrack?.5:.125)),_*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(S,Number.POSITIVE_INFINITY)}}}}abortCurrentFrag(){const e=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,e&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.state){case hn.KEY_LOADING:case hn.FRAG_LOADING:case hn.FRAG_LOADING_WAITING_RETRY:case hn.PARSING:case hn.PARSED:this.state=hn.IDLE;break}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(e,t){super.flushMainBuffer(e,t,this.altAudio?"video":null)}onMediaAttached(e,t){super.onMediaAttached(e,t);const n=t.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),n.addEventListener("playing",this.onvplaying),n.addEventListener("seeked",this.onvseeked),this.gapController=new xu(this.config,n,this.fragmentTracker,this.hls)}onMediaDetaching(){const{media:e}=this;e&&this.onvplaying&&this.onvseeked&&(e.removeEventListener("playing",this.onvplaying),e.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),super.onMediaDetaching()}onMediaPlaying(){this.tick()}onMediaSeeked(){const e=this.media,t=e?e.currentTime:null;A(t)&&this.log(`Media seeked to ${t.toFixed(3)}`);const n=this.getMainFwdBufferInfo();if(n===null||n.len===0){this.warn(`Main forward buffer length on "seeked" event ${n?n.len:"empty"})`);return}this.tick()}onManifestLoading(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(u.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=!1,this.startPosition=this.lastCurrentTime=this.fragLastKbps=0,this.levels=this.fragPlaying=this.backtrackFragment=this.levelLastLoaded=null,this.altAudio=this.audioOnly=this.startFragRequested=!1}onManifestParsed(e,t){let 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&&!vu(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=t.levels,this.startFragRequested=!1}onLevelLoading(e,t){const{levels:n}=this;if(!n||this.state!==hn.IDLE)return;const r=n[t.level];(!r.details||r.details.live&&this.levelLastLoaded!==r||this.waitForCdnTuneIn(r.details))&&(this.state=hn.WAITING_LEVEL)}onLevelLoaded(e,t){var n;const{levels:r}=this,i=t.level,s=t.details,c=s.totalduration;if(!r){this.warn(`Levels were reset while loading level ${i}`);return}this.log(`Level ${i} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""}, cc [${s.startCC}, ${s.endCC}] duration:${c}`);const h=r[i],_=this.fragCurrent;_&&(this.state===hn.FRAG_LOADING||this.state===hn.FRAG_LOADING_WAITING_RETRY)&&_.level!==t.level&&_.loader&&this.abortCurrentFrag();let S=0;if(s.live||(n=h.details)!=null&&n.live){var R;if(this.checkLiveUpdate(s),s.deltaUpdateFailed)return;S=this.alignPlaylists(s,h.details,(R=this.levelLastLoaded)==null?void 0:R.details)}if(h.details=s,this.levelLastLoaded=h,this.hls.trigger(u.LEVEL_UPDATED,{details:s,level:i}),this.state===hn.WAITING_LEVEL){if(this.waitForCdnTuneIn(s))return;this.state=hn.IDLE}this.startFragRequested?s.live&&this.synchronizeToLiveEdge(s):this.setStartPosition(s,S),this.tick()}_handleFragmentLoadProgress(e){var t;const{frag:n,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 c=s[n.level],h=c.details;if(!h){this.warn(`Dropping fragment ${n.sn} of level ${n.level} after level details were reset`),this.fragmentTracker.removeFragment(n);return}const _=c.videoCodec,S=h.PTSKnown||!h.live,R=(t=n.initSegment)==null?void 0:t.data,re=this._getAudioCodec(c),be=this.transmuxer=this.transmuxer||new Un(this.hls,Ke.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),me=r?r.index:-1,Se=me!==-1,Me=new ga(n.level,n.sn,n.stats.chunkCount,i.byteLength,me,Se),qe=this.initPTS[n.cc];be.push(i,R,re,_,n,r,h.totalduration,S,Me,qe)}onAudioTrackSwitching(e,t){const n=this.altAudio;if(!!!t.url){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;const s=this.fragCurrent;s&&(this.log("Switching to main audio track, cancel main fragment load"),s.abortRequests(),this.fragmentTracker.removeFragment(s)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();const i=this.hls;n&&(i.trigger(u.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),i.trigger(u.AUDIO_TRACK_SWITCHED,t)}}onAudioTrackSwitched(e,t){const n=t.id,r=!!this.hls.audioTracks[n].url;if(r){const i=this.videoBuffer;i&&this.mediaBuffer!==i&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=i)}this.altAudio=r,this.tick()}onBufferCreated(e,t){const n=t.tracks;let r,i,s=!1;for(const c in n){const h=n[c];if(h.id==="main"){if(i=c,r=h,c==="video"){const _=n[c];_&&(this.videoBuffer=_.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;if(n&&n.type!==Ke.MAIN)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}`),this.state===hn.PARSED&&(this.state=hn.IDLE);return}const i=r?r.stats:n.stats;this.fragLastKbps=Math.round(8*i.total/(i.buffering.end-i.loading.first)),n.sn!=="initSegment"&&(this.fragPrevious=n),this.fragBufferedComplete(n,r)}onError(e,t){var n;if(t.fatal){this.state=hn.ERROR;return}switch(t.details){case b.FRAG_GAP:case b.FRAG_PARSING_ERROR:case b.FRAG_DECRYPT_ERROR:case b.FRAG_LOAD_ERROR:case b.FRAG_LOAD_TIMEOUT:case b.KEY_LOAD_ERROR:case b.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Ke.MAIN,t);break;case b.LEVEL_LOAD_ERROR:case b.LEVEL_LOAD_TIMEOUT:case b.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===hn.WAITING_LEVEL&&((n=t.context)==null?void 0:n.type)===qt.LEVEL&&(this.state=hn.IDLE);break;case b.BUFFER_APPEND_ERROR:case b.BUFFER_FULL_ERROR:if(!t.parent||t.parent!=="main")return;if(t.details===b.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(t)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case b.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}checkBuffer(){const{media:e,gapController:t}=this;if(!(!e||!t||!e.readyState)){if(this.loadedmetadata||!Ur.getBuffered(e).length){const n=this.state!==hn.IDLE?this.fragCurrent:null;t.poll(this.lastCurrentTime,n)}this.lastCurrentTime=e.currentTime}}onFragLoadEmergencyAborted(){this.state=hn.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==G.AUDIO||this.audioOnly&&!this.altAudio){const n=(t===G.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(n,t,Ke.MAIN),this.tick()}}onLevelsUpdated(e,t){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level),this.levels=t.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:e}=this;if(!e)return;const t=e.currentTime;let 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=Ur.getBuffered(e),s=(r.length?r.start(0):0)-n;s>0&&(s<this.config.maxBufferHole||s<this.config.maxFragLookUpTolerance)&&(this.log(`adjusting start position by ${s} to match buffer start`),n+=s,this.startPosition=n),this.log(`seek to target start position ${n} from current time ${t}`),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;if(!n||this.fragContextChanged(e))return;t.fragmentError=0,this.state=hn.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const i=e.stats;i.parsing.start=i.parsing.end=i.buffering.start=i.buffering.end=self.performance.now(),r.trigger(u.FRAG_LOADED,n),e.bitrateTest=!1})}_handleTransmuxComplete(e){var t;const n="main",{hls:r}=this,{remuxResult:i,chunkMeta:s}=e,c=this.getCurrentContext(s);if(!c){this.resetWhenMissingContext(s);return}const{frag:h,part:_,level:S}=c,{video:R,text:re,id3:be,initSegment:me}=i,{details:Se}=S,Me=this.altAudio?void 0:i.audio;if(this.fragContextChanged(h)){this.fragmentTracker.removeFragment(h);return}if(this.state=hn.PARSING,me){if(me!=null&&me.tracks){const wt=h.initSegment||h;this._bufferInitSegment(S,me.tracks,wt,s),r.trigger(u.FRAG_PARSING_INIT_SEGMENT,{frag:wt,id:n,tracks:me.tracks})}const qe=me.initPTS,Et=me.timescale;A(qe)&&(this.initPTS[h.cc]={baseTime:qe,timescale:Et},r.trigger(u.INIT_PTS_FOUND,{frag:h,id:n,initPTS:qe,timescale:Et}))}if(R&&Se&&h.sn!=="initSegment"){const qe=Se.fragments[h.sn-1-Se.startSN],Et=h.sn===Se.startSN,wt=!qe||h.cc>qe.cc;if(i.independent!==!1){const{startPTS:an,endPTS:Rt,startDTS:_n,endDTS:Yt}=R;if(_)_.elementaryStreams[R.type]={startPTS:an,endPTS:Rt,startDTS:_n,endDTS:Yt};else if(R.firstKeyFrame&&R.independent&&s.id===1&&!wt&&(this.couldBacktrack=!0),R.dropped&&R.independent){const kn=this.getMainFwdBufferInfo(),Yn=(kn?kn.end:this.getLoadPosition())+this.config.maxBufferHole,vn=R.firstKeyFramePTS?R.firstKeyFramePTS:an;if(!Et&&Yn<vn-this.config.maxBufferHole&&!wt){this.backtrack(h);return}else wt&&(h.gap=!0);h.setElementaryStreamInfo(R.type,h.start,Rt,h.start,Yt,!0)}else Et&&an>Ks&&(h.gap=!0);h.setElementaryStreamInfo(R.type,an,Rt,_n,Yt),this.backtrackFragment&&(this.backtrackFragment=h),this.bufferFragmentData(R,h,_,s,Et||wt)}else if(Et||wt)h.gap=!0;else{this.backtrack(h);return}}if(Me){const{startPTS:qe,endPTS:Et,startDTS:wt,endDTS:an}=Me;_&&(_.elementaryStreams[G.AUDIO]={startPTS:qe,endPTS:Et,startDTS:wt,endDTS:an}),h.setElementaryStreamInfo(G.AUDIO,qe,Et,wt,an),this.bufferFragmentData(Me,h,_,s)}if(Se&&be!=null&&(t=be.samples)!=null&&t.length){const qe={id:n,frag:h,details:Se,samples:be.samples};r.trigger(u.FRAG_PARSING_METADATA,qe)}if(Se&&re){const qe={id:n,frag:h,details:Se,samples:re.samples};r.trigger(u.FRAG_PARSING_USERDATA,qe)}}_bufferInitSegment(e,t,n,r){if(this.state!==hn.PARSING)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&delete t.audio;const{audio:i,video:s,audiovideo:c}=t;if(i){let h=e.audioCodec;const _=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){h&&(h.indexOf("mp4a.40.5")!==-1?h="mp4a.40.2":h="mp4a.40.5");const S=i.metadata;S&&"channelCount"in S&&(S.channelCount||1)!==1&&_.indexOf("firefox")===-1&&(h="mp4a.40.5")}h&&h.indexOf("mp4a.40.5")!==-1&&_.indexOf("android")!==-1&&i.container!=="audio/mpeg"&&(h="mp4a.40.2",this.log(`Android: force audio codec to ${h}`)),e.audioCodec&&e.audioCodec!==h&&this.log(`Swapping manifest audio codec "${e.audioCodec}" for "${h}"`),i.levelCodec=h,i.id="main",this.log(`Init audio buffer, container:${i.container}, codecs[selected/level/parsed]=[${h||""}/${e.audioCodec||""}/${i.codec}]`)}s&&(s.levelCodec=e.videoCodec,s.id="main",this.log(`Init video buffer, container:${s.container}, codecs[level/parsed]=[${e.videoCodec||""}/${s.codec}]`)),c&&this.log(`Init audiovideo buffer, container:${c.container}, codecs[level/parsed]=[${e.codecs}/${c.codec}]`),this.hls.trigger(u.BUFFER_CODECS,t),Object.keys(t).forEach(h=>{const S=t[h].initSegment;S!=null&&S.byteLength&&this.hls.trigger(u.BUFFER_APPENDING,{type:h,data:S,frag:n,part:null,chunkMeta:r,parent:n.type})}),this.tickImmediate()}getMainFwdBufferInfo(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,Ke.MAIN)}backtrack(e){this.couldBacktrack=!0,this.backtrackFragment=e,this.resetTransmuxer(),this.flushBufferGap(e),this.fragmentTracker.removeFragment(e),this.fragPrevious=null,this.nextLoadPosition=e.start,this.state=hn.IDLE}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&e.seeking===!1){const n=e.currentTime;if(Ur.isBuffered(e,n)?t=this.getAppendedFrag(n):Ur.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(u.FRAG_CHANGED,{frag:t}),(!r||r.level!==i)&&this.hls.trigger(u.LEVEL_SWITCHED,{level:i}))}}}get nextLevel(){const e=this.nextBufferedFrag;return e?e.level:-1}get currentFrag(){const e=this.media;return e?this.fragPlaying||this.getAppendedFrag(e.currentTime):null}get currentProgramDateTime(){const e=this.media;if(e){const t=e.currentTime,n=this.currentFrag;if(n&&A(t)&&A(n.programDateTime)){const r=n.programDateTime+(t-n.start)*1e3;return new Date(r)}}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 Pa{static get version(){return"1.5.19"}static isMSESupported(){return Vo()}static isSupported(){return gu()}static getMediaSource(){return ln()}static get Events(){return u}static get ErrorTypes(){return y}static get ErrorDetails(){return b}static get DefaultConfig(){return Pa.defaultConfig?Pa.defaultConfig:jo}static set DefaultConfig(e){Pa.defaultConfig=e}constructor(e={}){this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this.started=!1,this._emitter=new wn,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,this.triggeringException=void 0,K(e.debug||!1,"Hls instance");const t=this.config=fu(Pa.DefaultConfig,e);this.userConfig=e,t.progressive&&hu(t);const{abrController:n,bufferController:r,capLevelController:i,errorController:s,fpsController:c}=t,h=new s(this),_=this.abrController=new n(this),S=this.bufferController=new r(this),R=this.capLevelController=new i(this),re=new c(this),be=new Kn(this),me=new pr(this),Se=t.contentSteeringController,Me=Se?new Se(this):null,qe=this.levelController=new pu(this,Me),Et=new $i(this),wt=new mu(this.config),an=this.streamController=new wu(this,Et,wt);R.setStreamController(an),re.setStreamController(an);const Rt=[be,qe,an];Me&&Rt.splice(1,0,Me),this.networkControllers=Rt;const _n=[_,S,R,re,me,Et];this.audioTrackController=this.createController(t.audioTrackController,Rt);const Yt=t.audioStreamController;Yt&&Rt.push(new Yt(this,Et,wt)),this.subtitleTrackController=this.createController(t.subtitleTrackController,Rt);const kn=t.subtitleStreamController;kn&&Rt.push(new kn(this,Et,wt)),this.createController(t.timelineController,_n),wt.emeController=this.emeController=this.createController(t.emeController,_n),this.cmcdController=this.createController(t.cmcdController,_n),this.latencyController=this.createController(Zr,_n),this.coreComponents=_n,Rt.push(h);const Yn=h.onErrorOut;typeof Yn=="function"&&this.on(u.ERROR,Yn,h)}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(x.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===u.ERROR;this.trigger(u.ERROR,{type:y.OTHER_ERROR,details:b.INTERNAL_EXCEPTION,fatal:r,event:e,error:n}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){x.log("destroy"),this.trigger(u.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){x.log("attachMedia"),this._media=e,this.trigger(u.MEDIA_ATTACHING,{media:e})}detachMedia(){x.log("detachMedia"),this.trigger(u.MEDIA_DETACHING,void 0),this._media=null}loadSource(e){this.stopLoad();const t=this.media,n=this.url,r=this.url=ce.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,x.log(`loadSource:${r}`),t&&n&&(n!==r||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(u.MANIFEST_LOADING,{url:e})}startLoad(e=-1){x.log(`startLoad(${e})`),this.started=!0,this.resumeBuffering();for(let t=0;t<this.networkControllers.length&&(this.networkControllers[t].startLoad(e),!(!this.started||!this.networkControllers));t++);}stopLoad(){x.log("stopLoad"),this.started=!1;for(let e=0;e<this.networkControllers.length&&(this.networkControllers[e].stopLoad(),!(this.started||!this.networkControllers));e++);}resumeBuffering(){x.log("resume buffering"),this.networkControllers.forEach(e=>{e.resumeBuffering&&e.resumeBuffering()})}pauseBuffering(){x.log("pause buffering"),this.networkControllers.forEach(e=>{e.pauseBuffering&&e.pauseBuffering()})}swapAudioCodec(){x.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){x.log("recoverMediaError");const e=this._media;this.detachMedia(),e&&this.attachMedia(e)}removeLevel(e){this.levelController.removeLevel(e)}get levels(){const e=this.levelController.levels;return e||[]}get currentLevel(){return this.streamController.currentLevel}set currentLevel(e){x.log(`set currentLevel:${e}`),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(e){x.log(`set nextLevel:${e}`),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(e){x.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){x.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){x.log(`set startLevel:${e}`),e!==-1&&(e=Math.max(e,this.minAutoLevel)),this.levelController.startLevel=e}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(e){const t=!!e;t!==this.config.capLevelToPlayerSize&&(t?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=t)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimate():NaN}set bandwidthEstimate(e){this.abrController.resetEstimator(e)}get ttfbEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimateTTFB():NaN}set autoLevelCapping(e){this._autoLevelCapping!==e&&(x.log(`set autoLevelCapping:${e}`),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(e){br(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()}setAudioOption(e){var t;return(t=this.audioTrackController)==null?void 0:t.setAudioOption(e)}setSubtitleOption(e){var t;return(t=this.subtitleTrackController)==null||t.setSubtitleOption(e),null}get allAudioTracks(){const e=this.audioTrackController;return e?e.allAudioTracks:[]}get audioTracks(){const e=this.audioTrackController;return e?e.audioTracks:[]}get audioTrack(){const e=this.audioTrackController;return e?e.audioTrack:-1}set audioTrack(e){const t=this.audioTrackController;t&&(t.audioTrack=e)}get allSubtitleTracks(){const e=this.subtitleTrackController;return e?e.allSubtitleTracks:[]}get subtitleTracks(){const e=this.subtitleTrackController;return e?e.subtitleTracks:[]}get subtitleTrack(){const e=this.subtitleTrackController;return e?e.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(e){const t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}get subtitleDisplay(){const e=this.subtitleTrackController;return e?e.subtitleDisplay:!1}set subtitleDisplay(e){const t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(e){this.config.lowLatencyMode=e}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}}Pa.defaultConfig=void 0},16722:function(Qt,et,p){"use strict";p.d(et,{Z:function(){return _e}});const M=a=>typeof a=="object"&&a!=null&&a.nodeType===1,Y=(a,A)=>(!A||a!=="hidden")&&a!=="visible"&&a!=="clip",ce=(a,A)=>{if(a.clientHeight<a.scrollHeight||a.clientWidth<a.scrollWidth){const L=getComputedStyle(a,null);return Y(L.overflowY,A)||Y(L.overflowX,A)||(v=>{const u=(y=>{if(!y.ownerDocument||!y.ownerDocument.defaultView)return null;try{return y.ownerDocument.defaultView.frameElement}catch(b){return null}})(v);return!!u&&(u.clientHeight<v.scrollHeight||u.clientWidth<v.scrollWidth)})(a)}return!1},Te=(a,A,L,v,u,y,b,k)=>y<a&&b>A||y>a&&b<A?0:y<=a&&k<=L||b>=A&&k>=L?y-a-v:b>A&&k<L||y<a&&k>L?b-A+u:0,j=a=>{const A=a.parentElement;return A==null?a.getRootNode().host||null:A},X=(a,A)=>{var L,v,u,y;if(typeof document=="undefined")return[];const{scrollMode:b,block:k,inline:se,boundary:P,skipOverflowHiddenElements:N}=A,V=typeof P=="function"?P:Ge=>Ge!==P;if(!M(a))throw new TypeError("Invalid target");const K=document.scrollingElement||document.documentElement,x=[];let T=a;for(;M(T)&&V(T);){if(T=j(T),T===K){x.push(T);break}T!=null&&T===document.body&&ce(T)&&!ce(document.documentElement)||T!=null&&ce(T,N)&&x.push(T)}const $=(v=(L=window.visualViewport)==null?void 0:L.width)!=null?v:innerWidth,B=(y=(u=window.visualViewport)==null?void 0:u.height)!=null?y:innerHeight,{scrollX:fe,scrollY:ye}=window,{height:Re,width:he,top:G,right:F,bottom:le,left:D}=a.getBoundingClientRect(),{top:Q,right:H,bottom:g,left:E}=(Ge=>{const je=window.getComputedStyle(Ge);return{top:parseFloat(je.scrollMarginTop)||0,right:parseFloat(je.scrollMarginRight)||0,bottom:parseFloat(je.scrollMarginBottom)||0,left:parseFloat(je.scrollMarginLeft)||0}})(a);let Z=k==="start"||k==="nearest"?G-Q:k==="end"?le+g:G+Re/2-Q+g,pe=se==="center"?D+he/2-E+H:se==="end"?F+H:D-E;const ze=[];for(let Ge=0;Ge<x.length;Ge++){const je=x[Ge],{height:Ve,width:mt,top:pt,right:nt,bottom:Gt,left:Jt}=je.getBoundingClientRect();if(b==="if-needed"&&G>=0&&D>=0&&le<=B&&F<=$&&(je===K&&!ce(je)||G>=pt&&le<=Gt&&D>=Jt&&F<=nt))return ze;const sn=getComputedStyle(je),Ut=parseInt(sn.borderLeftWidth,10),Xt=parseInt(sn.borderTopWidth,10),it=parseInt(sn.borderRightWidth,10),te=parseInt(sn.borderBottomWidth,10);let ge=0,q=0;const z="offsetWidth"in je?je.offsetWidth-je.clientWidth-Ut-it:0,De="offsetHeight"in je?je.offsetHeight-je.clientHeight-Xt-te:0,O="offsetWidth"in je?je.offsetWidth===0?0:mt/je.offsetWidth:0,ae="offsetHeight"in je?je.offsetHeight===0?0:Ve/je.offsetHeight:0;if(K===je)ge=k==="start"?Z:k==="end"?Z-B:k==="nearest"?Te(ye,ye+B,B,Xt,te,ye+Z,ye+Z+Re,Re):Z-B/2,q=se==="start"?pe:se==="center"?pe-$/2:se==="end"?pe-$:Te(fe,fe+$,$,Ut,it,fe+pe,fe+pe+he,he),ge=Math.max(0,ge+ye),q=Math.max(0,q+fe);else{ge=k==="start"?Z-pt-Xt:k==="end"?Z-Gt+te+De:k==="nearest"?Te(pt,Gt,Ve,Xt,te+De,Z,Z+Re,Re):Z-(pt+Ve/2)+De/2,q=se==="start"?pe-Jt-Ut:se==="center"?pe-(Jt+mt/2)+z/2:se==="end"?pe-nt+it+z:Te(Jt,nt,mt,Ut,it+z,pe,pe+he,he);const{scrollLeft:J,scrollTop:oe}=je;ge=ae===0?0:Math.max(0,Math.min(oe+ge/ae,je.scrollHeight-Ve/ae+De)),q=O===0?0:Math.max(0,Math.min(J+q/O,je.scrollWidth-mt/O+z)),Z+=oe-ge,pe+=J-q}ze.push({el:je,top:ge,left:q})}return ze},ve=a=>a===!1?{block:"end",inline:"nearest"}:(A=>A===Object(A)&&Object.keys(A).length!==0)(a)?a:{block:"start",inline:"nearest"};function _e(a,A){if(!a.isConnected||!(u=>{let y=u;for(;y&&y.parentNode;){if(y.parentNode===document)return!0;y=y.parentNode instanceof ShadowRoot?y.parentNode.host:y.parentNode}return!1})(a))return;const L=(u=>{const y=window.getComputedStyle(u);return{top:parseFloat(y.scrollMarginTop)||0,right:parseFloat(y.scrollMarginRight)||0,bottom:parseFloat(y.scrollMarginBottom)||0,left:parseFloat(y.scrollMarginLeft)||0}})(a);if((u=>typeof u=="object"&&typeof u.behavior=="function")(A))return A.behavior(X(a,A));const v=typeof A=="boolean"||A==null?void 0:A.behavior;for(const{el:u,top:y,left:b}of X(a,ve(A))){const k=y-L.top+L.bottom,se=b-L.left+L.right;u.scroll({top:k,left:se,behavior:v})}}}}]);
}());