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/6309.2898bc8d.async.js

1416 lines
1.5 MiB

This file contains ambiguous Unicode characters!

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

!(function(){var _l=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[6309],{70557:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return pe}});var z=h(96663),N=h(59301),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},ye=Q,U=h(7657),H=function(C,O){return N.createElement(U.Z,(0,z.Z)({},C,{ref:O,icon:ye}))},S=N.forwardRef(H),pe=S},27812:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return pe}});var z=h(96663),N=h(59301),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},ye=Q,U=h(7657),H=function(C,O){return N.createElement(U.Z,(0,z.Z)({},C,{ref:O,icon:ye}))},S=N.forwardRef(H),pe=S},89489:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return pe}});var z=h(96663),N=h(59301),Q={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},ye=Q,U=h(7657),H=function(C,O){return N.createElement(U.Z,(0,z.Z)({},C,{ref:O,icon:ye}))},S=N.forwardRef(H),pe=S},59477:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return pe}});var z=h(96663),N=h(59301),Q={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},ye=Q,U=h(7657),H=function(C,O){return N.createElement(U.Z,(0,z.Z)({},C,{ref:O,icon:ye}))},S=N.forwardRef(H),pe=S},40001:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return pe}});var z=h(96663),N=h(59301),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},ye=Q,U=h(7657),H=function(C,O){return N.createElement(U.Z,(0,z.Z)({},C,{ref:O,icon:ye}))},S=N.forwardRef(H),pe=S},49198:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return pe}});var z=h(96663),N=h(59301),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},ye=Q,U=h(7657),H=function(C,O){return N.createElement(U.Z,(0,z.Z)({},C,{ref:O,icon:ye}))},S=N.forwardRef(H),pe=S},84105:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return pe}});var z=h(96663),N=h(59301),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},ye=Q,U=h(7657),H=function(C,O){return N.createElement(U.Z,(0,z.Z)({},C,{ref:O,icon:ye}))},S=N.forwardRef(H),pe=S},18785:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return pe}});var z=h(96663),N=h(59301),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},ye=Q,U=h(7657),H=function(C,O){return N.createElement(U.Z,(0,z.Z)({},C,{ref:O,icon:ye}))},S=N.forwardRef(H),pe=S},73331:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return pe}});var z=h(96663),N=h(59301),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},ye=Q,U=h(7657),H=function(C,O){return N.createElement(U.Z,(0,z.Z)({},C,{ref:O,icon:ye}))},S=N.forwardRef(H),pe=S},15277:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return pe}});var z=h(96663),N=h(59301),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},ye=Q,U=h(7657),H=function(C,O){return N.createElement(U.Z,(0,z.Z)({},C,{ref:O,icon:ye}))},S=N.forwardRef(H),pe=S},52671:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return pe}});var z=h(96663),N=h(59301),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},ye=Q,U=h(7657),H=function(C,O){return N.createElement(U.Z,(0,z.Z)({},C,{ref:O,icon:ye}))},S=N.forwardRef(H),pe=S},8657:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return pe}});var z=h(96663),N=h(59301),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},ye=Q,U=h(7657),H=function(C,O){return N.createElement(U.Z,(0,z.Z)({},C,{ref:O,icon:ye}))},S=N.forwardRef(H),pe=S},56082:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return pe}});var z=h(96663),N=h(59301),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},ye=Q,U=h(7657),H=function(C,O){return N.createElement(U.Z,(0,z.Z)({},C,{ref:O,icon:ye}))},S=N.forwardRef(H),pe=S},33853:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return pe}});var z=h(96663),N=h(59301),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},ye=Q,U=h(7657),H=function(C,O){return N.createElement(U.Z,(0,z.Z)({},C,{ref:O,icon:ye}))},S=N.forwardRef(H),pe=S},15075:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return pe}});var z=h(96663),N=h(59301),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},ye=Q,U=h(7657),H=function(C,O){return N.createElement(U.Z,(0,z.Z)({},C,{ref:O,icon:ye}))},S=N.forwardRef(H),pe=S},43531:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return pe}});var z=h(96663),N=h(59301),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},ye=Q,U=h(7657),H=function(C,O){return N.createElement(U.Z,(0,z.Z)({},C,{ref:O,icon:ye}))},S=N.forwardRef(H),pe=S},61485:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return pe}});var z=h(96663),N=h(59301),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},ye=Q,U=h(7657),H=function(C,O){return N.createElement(U.Z,(0,z.Z)({},C,{ref:O,icon:ye}))},S=N.forwardRef(H),pe=S},38819:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return pe}});var z=h(96663),N=h(59301),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},ye=Q,U=h(7657),H=function(C,O){return N.createElement(U.Z,(0,z.Z)({},C,{ref:O,icon:ye}))},S=N.forwardRef(H),pe=S},47472:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return pe}});var z=h(96663),N=h(59301),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},ye=Q,U=h(7657),H=function(C,O){return N.createElement(U.Z,(0,z.Z)({},C,{ref:O,icon:ye}))},S=N.forwardRef(H),pe=S},35593:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return Et}});var z=h(44127),N=h(72071),Q=h(6620),ye=h(43403),U=h(92310),H=h.n(U),S=h(29301),pe=h(76846),a=h(96452),C=h(6089),O=h(80402),m=h(34280),u=h(49658),x=h(59301),y=h(96663),L=h(77900),te=h(8654);function B(oe){var ve=oe.prefixCls,ie=oe.align,Y=oe.arrow,Ae=oe.arrowPos,$=Y||{},R=$.className,I=$.content,le=Ae.x,re=le===void 0?0:le,J=Ae.y,Ce=J===void 0?0:J,We=x.useRef();if(!ie||!ie.points)return null;var Pe={position:"absolute"};if(ie.autoArrow!==!1){var Be=ie.points[0],Xe=ie.points[1],rt=Be[0],Ye=Be[1],vt=Xe[0],wt=Xe[1];rt===vt||!["t","b"].includes(rt)?Pe.top=Ce:rt==="t"?Pe.top=0:Pe.bottom=0,Ye===wt||!["l","r"].includes(Ye)?Pe.left=re:Ye==="l"?Pe.left=0:Pe.right=0}return x.createElement("div",{ref:We,className:H()("".concat(ve,"-arrow"),R),style:Pe},I)}function M(oe){var ve=oe.prefixCls,ie=oe.open,Y=oe.zIndex,Ae=oe.mask,$=oe.motion;return Ae?x.createElement(L.default,(0,y.Z)({},$,{motionAppear:!0,visible:ie,removeOnLeave:!0}),function(R){var I=R.className;return x.createElement("div",{style:{zIndex:Y},className:H()("".concat(ve,"-mask"),I)})}):null}var W=x.memo(function(oe){var ve=oe.children;return ve},function(oe,ve){return ve.cache}),V=W,b=x.forwardRef(function(oe,ve){var ie=oe.popup,Y=oe.className,Ae=oe.prefixCls,$=oe.style,R=oe.target,I=oe.onVisibleChanged,le=oe.open,re=oe.keepDom,J=oe.fresh,Ce=oe.onClick,We=oe.mask,Pe=oe.arrow,Be=oe.arrowPos,Xe=oe.align,rt=oe.motion,Ye=oe.maskMotion,vt=oe.forceRender,wt=oe.getPopupContainer,mt=oe.autoDestroy,Pt=oe.portal,At=oe.zIndex,w=oe.onMouseEnter,A=oe.onMouseLeave,gt=oe.onPointerEnter,fe=oe.ready,Me=oe.offsetX,Dn=oe.offsetY,je=oe.offsetR,nt=oe.offsetB,tt=oe.onAlign,_e=oe.onPrepare,De=oe.stretch,Fe=oe.targetWidth,Qe=oe.targetHeight,ge=typeof ie=="function"?ie():ie,Vt=le||re,Ze=(wt==null?void 0:wt.length)>0,gn=x.useState(!wt||!Ze),In=(0,N.Z)(gn,2),Hn=In[0],mr=In[1];if((0,m.Z)(function(){!Hn&&Ze&&R&&mr(!0)},[Hn,Ze,R]),!Hn)return null;var rn="auto",vn={left:"-1000vw",top:"-1000vh",right:rn,bottom:rn};if(fe||!le){var Je,It=Xe.points,zt=Xe.dynamicInset||((Je=Xe._experimental)===null||Je===void 0?void 0:Je.dynamicInset),Ke=zt&&It[0][1]==="r",Oe=zt&&It[0][0]==="b";Ke?(vn.right=je,vn.left=rn):(vn.left=Me,vn.right=rn),Oe?(vn.bottom=nt,vn.top=rn):(vn.top=Dn,vn.bottom=rn)}var bt={};return De&&(De.includes("height")&&Qe?bt.height=Qe:De.includes("minHeight")&&Qe&&(bt.minHeight=Qe),De.includes("width")&&Fe?bt.width=Fe:De.includes("minWidth")&&Fe&&(bt.minWidth=Fe)),le||(bt.pointerEvents="none"),x.createElement(Pt,{open:vt||Vt,getContainer:wt&&function(){return wt(R)},autoDestroy:mt},x.createElement(M,{prefixCls:Ae,open:le,zIndex:At,mask:We,motion:Ye}),x.createElement(S.Z,{onResize:tt,disabled:!le},function(St){return x.createElement(L.default,(0,y.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:vt,leavedClassName:"".concat(Ae,"-hidden")},rt,{onAppearPrepare:_e,onEnterPrepare:_e,visible:le,onVisibleChanged:function(Wt){var on;rt==null||(on=rt.onVisibleChanged)===null||on===void 0||on.call(rt,Wt),I(Wt)}}),function(qt,Wt){var on=qt.className,Xt=qt.style,hn=H()(Ae,on,Y);return x.createElement("div",{ref:(0,te.sQ)(St,ve,Wt),className:hn,style:(0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)({"--arrow-x":"".concat(Be.x||0,"px"),"--arrow-y":"".concat(Be.y||0,"px")},vn),bt),Xt),{},{boxSizing:"border-box",zIndex:At},$),onMouseEnter:w,onMouseLeave:A,onPointerEnter:gt,onClick:Ce},Pe&&x.createElement(B,{prefixCls:Ae,arrow:Pe,arrowPos:Be,align:Xe}),x.createElement(V,{cache:!le&&!J},ge))})}))}),T=b,G=x.forwardRef(function(oe,ve){var ie=oe.children,Y=oe.getTriggerDOMNode,Ae=(0,te.Yr)(ie),$=x.useCallback(function(I){(0,te.mH)(ve,Y?Y(I):I)},[Y]),R=(0,te.x1)($,ie.ref);return Ae?x.cloneElement(ie,{ref:R}):ie}),j=G,be=x.createContext(null),Ee=be;function xe(oe){return oe?Array.isArray(oe)?oe:[oe]:[]}function ce(oe,ve,ie,Y){return x.useMemo(function(){var Ae=xe(ie!=null?ie:ve),$=xe(Y!=null?Y:ve),R=new Set(Ae),I=new Set($);return oe&&(R.has("hover")&&(R.delete("hover"),R.add("click")),I.has("hover")&&(I.delete("hover"),I.add("click"))),[R,I]},[oe,ve,ie,Y])}var ee=h(29194);function Z(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ie=arguments.length>2?arguments[2]:void 0;return ie?oe[0]===ve[0]:oe[0]===ve[0]&&oe[1]===ve[1]}function me(oe,ve,ie,Y){for(var Ae=ie.points,$=Object.keys(oe),R=0;R<$.length;R+=1){var I,le=$[R];if(Z((I=oe[le])===null||I===void 0?void 0:I.points,Ae,Y))return"".concat(ve,"-placement-").concat(le)}return""}function P(oe,ve,ie,Y){return ve||(ie?{motionName:"".concat(oe,"-").concat(ie)}:Y?{motionName:Y}:null)}function se(oe){return oe.ownerDocument.defaultView}function X(oe){for(var ve=[],ie=oe==null?void 0:oe.parentElement,Y=["hidden","scroll","clip","auto"];ie;){var Ae=se(ie).getComputedStyle(ie),$=Ae.overflowX,R=Ae.overflowY,I=Ae.overflow;[$,R,I].some(function(le){return Y.includes(le)})&&ve.push(ie),ie=ie.parentElement}return ve}function v(oe){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(oe)?ve:oe}function E(oe){return v(parseFloat(oe),0)}function K(oe,ve){var ie=(0,z.Z)({},oe);return(ve||[]).forEach(function(Y){if(!(Y instanceof HTMLBodyElement||Y instanceof HTMLHtmlElement)){var Ae=se(Y).getComputedStyle(Y),$=Ae.overflow,R=Ae.overflowClipMargin,I=Ae.borderTopWidth,le=Ae.borderBottomWidth,re=Ae.borderLeftWidth,J=Ae.borderRightWidth,Ce=Y.getBoundingClientRect(),We=Y.offsetHeight,Pe=Y.clientHeight,Be=Y.offsetWidth,Xe=Y.clientWidth,rt=E(I),Ye=E(le),vt=E(re),wt=E(J),mt=v(Math.round(Ce.width/Be*1e3)/1e3),Pt=v(Math.round(Ce.height/We*1e3)/1e3),At=(Be-Xe-vt-wt)*mt,w=(We-Pe-rt-Ye)*Pt,A=rt*Pt,gt=Ye*Pt,fe=vt*mt,Me=wt*mt,Dn=0,je=0;if($==="clip"){var nt=E(R);Dn=nt*mt,je=nt*Pt}var tt=Ce.x+fe-Dn,_e=Ce.y+A-je,De=tt+Ce.width+2*Dn-fe-Me-At,Fe=_e+Ce.height+2*je-A-gt-w;ie.left=Math.max(ie.left,tt),ie.top=Math.max(ie.top,_e),ie.right=Math.min(ie.right,De),ie.bottom=Math.min(ie.bottom,Fe)}}),ie}function de(oe){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ie="".concat(ve),Y=ie.match(/^(.*)\%$/);return Y?oe*(parseFloat(Y[1])/100):parseFloat(ie)}function Ne(oe,ve){var ie=ve||[],Y=(0,N.Z)(ie,2),Ae=Y[0],$=Y[1];return[de(oe.width,Ae),de(oe.height,$)]}function Ue(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[oe[0],oe[1]]}function ke(oe,ve){var ie=ve[0],Y=ve[1],Ae,$;return ie==="t"?$=oe.y:ie==="b"?$=oe.y+oe.height:$=oe.y+oe.height/2,Y==="l"?Ae=oe.x:Y==="r"?Ae=oe.x+oe.width:Ae=oe.x+oe.width/2,{x:Ae,y:$}}function Ve(oe,ve){var ie={t:"b",b:"t",l:"r",r:"l"};return oe.map(function(Y,Ae){return Ae===ve?ie[Y]||"c":Y}).join("")}function ht(oe,ve,ie,Y,Ae,$,R){var I=x.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Ae[Y]||{}}),le=(0,N.Z)(I,2),re=le[0],J=le[1],Ce=x.useRef(0),We=x.useMemo(function(){return ve?X(ve):[]},[ve]),Pe=x.useRef({}),Be=function(){Pe.current={}};oe||Be();var Xe=(0,C.Z)(function(){if(ve&&ie&&oe){let cr=function(Nr,Yr){var Ni=arguments.length>2&&arguments[2]!==void 0?arguments[2]:hn,yi=ge.x+Nr,Oi=ge.y+Yr,Bi=yi+Je,va=Oi+vn,Ca=Math.max(yi,Ni.left),Za=Math.max(Oi,Ni.top),da=Math.min(Bi,Ni.right),fa=Math.min(va,Ni.bottom);return Math.max(0,(da-Ca)*(fa-Za))},Zn=function(){Fn=ge.y+yn,lr=Fn+vn,Cr=ge.x+_n,Dr=Cr+Je};var vt,wt,mt=ve,Pt=mt.ownerDocument,At=se(mt),w=At.getComputedStyle(mt),A=w.width,gt=w.height,fe=w.position,Me=mt.style.left,Dn=mt.style.top,je=mt.style.right,nt=mt.style.bottom,tt=mt.style.overflow,_e=(0,z.Z)((0,z.Z)({},Ae[Y]),$),De=Pt.createElement("div");(vt=mt.parentElement)===null||vt===void 0||vt.appendChild(De),De.style.left="".concat(mt.offsetLeft,"px"),De.style.top="".concat(mt.offsetTop,"px"),De.style.position=fe,De.style.height="".concat(mt.offsetHeight,"px"),De.style.width="".concat(mt.offsetWidth,"px"),mt.style.left="0",mt.style.top="0",mt.style.right="auto",mt.style.bottom="auto",mt.style.overflow="hidden";var Fe;if(Array.isArray(ie))Fe={x:ie[0],y:ie[1],width:0,height:0};else{var Qe=ie.getBoundingClientRect();Fe={x:Qe.x,y:Qe.y,width:Qe.width,height:Qe.height}}var ge=mt.getBoundingClientRect(),Vt=Pt.documentElement,Ze=Vt.clientWidth,gn=Vt.clientHeight,In=Vt.scrollWidth,Hn=Vt.scrollHeight,mr=Vt.scrollTop,rn=Vt.scrollLeft,vn=ge.height,Je=ge.width,It=Fe.height,zt=Fe.width,Ke={left:0,top:0,right:Ze,bottom:gn},Oe={left:-rn,top:-mr,right:In-rn,bottom:Hn-mr},bt=_e.htmlRegion,St="visible",qt="visibleFirst";bt!=="scroll"&&bt!==qt&&(bt=St);var Wt=bt===qt,on=K(Oe,We),Xt=K(Ke,We),hn=bt===St?Xt:on,An=Wt?Xt:hn;mt.style.left="auto",mt.style.top="auto",mt.style.right="0",mt.style.bottom="0";var $t=mt.getBoundingClientRect();mt.style.left=Me,mt.style.top=Dn,mt.style.right=je,mt.style.bottom=nt,mt.style.overflow=tt,(wt=mt.parentElement)===null||wt===void 0||wt.removeChild(De);var Rt=v(Math.round(Je/parseFloat(A)*1e3)/1e3),an=v(Math.round(vn/parseFloat(gt)*1e3)/1e3);if(Rt===0||an===0||(0,pe.Sh)(ie)&&!(0,ee.Z)(ie))return;var tn=_e.offset,cn=_e.targetOffset,bn=Ne(ge,tn),tr=(0,N.Z)(bn,2),Mn=tr[0],Qt=tr[1],ct=Ne(Fe,cn),ft=(0,N.Z)(ct,2),Tt=ft[0],Nt=ft[1];Fe.x-=Tt,Fe.y-=Nt;var Dt=_e.points||[],Ht=(0,N.Z)(Dt,2),Bt=Ht[0],dn=Ht[1],xn=Ue(dn),Rn=Ue(Bt),Qn=ke(Fe,xn),nr=ke(ge,Rn),ar=(0,z.Z)({},_e),_n=Qn.x-nr.x+Mn,yn=Qn.y-nr.y+Qt,gr=cr(_n,yn),Gn=cr(_n,yn,Xt),Tr=ke(Fe,["t","l"]),Jn=ke(ge,["t","l"]),or=ke(Fe,["b","r"]),yr=ke(ge,["b","r"]),rr=_e.overflow||{},Ir=rr.adjustX,Jr=rr.adjustY,Xn=rr.shiftX,En=rr.shiftY,it=function(Yr){return typeof Yr=="boolean"?Yr:Yr>=0},Fn,lr,Cr,Dr;Zn();var Mr=it(Jr),Ur=Rn[0]===xn[0];if(Mr&&Rn[0]==="t"&&(lr>An.bottom||Pe.current.bt)){var vr=yn;Ur?vr-=vn-It:vr=Tr.y-yr.y-Qt;var Kr=cr(_n,vr),zn=cr(_n,vr,Xt);Kr>gr||Kr===gr&&(!Wt||zn>=Gn)?(Pe.current.bt=!0,yn=vr,Qt=-Qt,ar.points=[Ve(Rn,0),Ve(xn,0)]):Pe.current.bt=!1}if(Mr&&Rn[0]==="b"&&(Fn<An.top||Pe.current.tb)){var Sn=yn;Ur?Sn+=vn-It:Sn=or.y-Jn.y-Qt;var qn=cr(_n,Sn),Lr=cr(_n,Sn,Xt);qn>gr||qn===gr&&(!Wt||Lr>=Gn)?(Pe.current.tb=!0,yn=Sn,Qt=-Qt,ar.points=[Ve(Rn,0),Ve(xn,0)]):Pe.current.tb=!1}var Zr=it(Ir),Ci=Rn[1]===xn[1];if(Zr&&Rn[1]==="l"&&(Dr>An.right||Pe.current.rl)){var Un=_n;Ci?Un-=Je-zt:Un=Tr.x-yr.x-Mn;var Vr=cr(Un,yn),jr=cr(Un,yn,Xt);Vr>gr||Vr===gr&&(!Wt||jr>=Gn)?(Pe.current.rl=!0,_n=Un,Mn=-Mn,ar.points=[Ve(Rn,1),Ve(xn,1)]):Pe.current.rl=!1}if(Zr&&Rn[1]==="r"&&(Cr<An.left||Pe.current.lr)){var oi=_n;Ci?oi+=Je-zt:oi=or.x-Jn.x-Mn;var Ai=cr(oi,yn),Li=cr(oi,yn,Xt);Ai>gr||Ai===gr&&(!Wt||Li>=Gn)?(Pe.current.lr=!0,_n=oi,Mn=-Mn,ar.points=[Ve(Rn,1),Ve(xn,1)]):Pe.current.lr=!1}Zn();var ei=Xn===!0?0:Xn;typeof ei=="number"&&(Cr<Xt.left&&(_n-=Cr-Xt.left-Mn,Fe.x+zt<Xt.left+ei&&(_n+=Fe.x-Xt.left+zt-ei)),Dr>Xt.right&&(_n-=Dr-Xt.right-Mn,Fe.x>Xt.right-ei&&(_n+=Fe.x-Xt.right+ei)));var gi=En===!0?0:En;typeof gi=="number"&&(Fn<Xt.top&&(yn-=Fn-Xt.top-Qt,Fe.y+It<Xt.top+gi&&(yn+=Fe.y-Xt.top+It-gi)),lr>Xt.bottom&&(yn-=lr-Xt.bottom-Qt,Fe.y>Xt.bottom-gi&&(yn+=Fe.y-Xt.bottom+gi)));var li=ge.x+_n,Ri=li+Je,Ii=ge.y+yn,ji=Ii+vn,Ti=Fe.x,Gi=Ti+zt,$r=Fe.y,aa=$r+It,ga=Math.max(li,Ti),ua=Math.min(Ri,Gi),vi=(ga+ua)/2,ca=vi-li,wa=Math.max(Ii,$r),Pn=Math.min(ji,aa),Mi=(wa+Pn)/2,na=Mi-Ii;R==null||R(ve,ar);var ur=$t.right-ge.x-(_n+ge.width),_r=$t.bottom-ge.y-(yn+ge.height);J({ready:!0,offsetX:_n/Rt,offsetY:yn/an,offsetR:ur/Rt,offsetB:_r/an,arrowX:ca/Rt,arrowY:na/an,scaleX:Rt,scaleY:an,align:ar})}}),rt=function(){Ce.current+=1;var wt=Ce.current;Promise.resolve().then(function(){Ce.current===wt&&Xe()})},Ye=function(){J(function(wt){return(0,z.Z)((0,z.Z)({},wt),{},{ready:!1})})};return(0,m.Z)(Ye,[Y]),(0,m.Z)(function(){oe||Ye()},[oe]),[re.ready,re.offsetX,re.offsetY,re.offsetR,re.offsetB,re.arrowX,re.arrowY,re.scaleX,re.scaleY,re.align,rt]}var pt=h(19127);function st(oe,ve,ie,Y,Ae){(0,m.Z)(function(){if(oe&&ve&&ie){let Ce=function(){Y(),Ae()};var $=ve,R=ie,I=X($),le=X(R),re=se(R),J=new Set([re].concat((0,pt.Z)(I),(0,pt.Z)(le)));return J.forEach(function(We){We.addEventListener("scroll",Ce,{passive:!0})}),re.addEventListener("resize",Ce,{passive:!0}),Y(),function(){J.forEach(function(We){We.removeEventListener("scroll",Ce),re.removeEventListener("resize",Ce)})}}},[oe,ve,ie])}var Ft=h(48736),Yt=h(16089);function en(oe,ve,ie,Y,Ae,$,R,I){var le=x.useRef(oe),re=x.useRef(!1);le.current!==oe&&(re.current=!0,le.current=oe),x.useEffect(function(){var J=(0,Yt.Z)(function(){re.current=!1});return function(){Yt.Z.cancel(J)}},[oe]),x.useEffect(function(){if(ve&&Y&&(!Ae||$)){var J=function(){var fe=!1,Me=function(nt){var tt=nt.target;fe=R(tt)},Dn=function(nt){var tt=nt.target;!re.current&&le.current&&!fe&&!R(tt)&&I(!1)};return[Me,Dn]},Ce=J(),We=(0,N.Z)(Ce,2),Pe=We[0],Be=We[1],Xe=J(),rt=(0,N.Z)(Xe,2),Ye=rt[0],vt=rt[1],wt=se(Y);wt.addEventListener("mousedown",Pe,!0),wt.addEventListener("click",Be,!0),wt.addEventListener("contextmenu",Be,!0);var mt=(0,a.A)(ie);if(mt&&(mt.addEventListener("mousedown",Ye,!0),mt.addEventListener("click",vt,!0),mt.addEventListener("contextmenu",vt,!0)),0)var Pt,At,w,A;return function(){wt.removeEventListener("mousedown",Pe,!0),wt.removeEventListener("click",Be,!0),wt.removeEventListener("contextmenu",Be,!0),mt&&(mt.removeEventListener("mousedown",Ye,!0),mt.removeEventListener("click",vt,!0),mt.removeEventListener("contextmenu",vt,!0))}}},[ve,ie,Y,Ae,$])}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 ut(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ye.Z,ve=x.forwardRef(function(ie,Y){var Ae=ie.prefixCls,$=Ae===void 0?"rc-trigger-popup":Ae,R=ie.children,I=ie.action,le=I===void 0?"hover":I,re=ie.showAction,J=ie.hideAction,Ce=ie.popupVisible,We=ie.defaultPopupVisible,Pe=ie.onPopupVisibleChange,Be=ie.afterPopupVisibleChange,Xe=ie.mouseEnterDelay,rt=ie.mouseLeaveDelay,Ye=rt===void 0?.1:rt,vt=ie.focusDelay,wt=ie.blurDelay,mt=ie.mask,Pt=ie.maskClosable,At=Pt===void 0?!0:Pt,w=ie.getPopupContainer,A=ie.forceRender,gt=ie.autoDestroy,fe=ie.destroyPopupOnHide,Me=ie.popup,Dn=ie.popupClassName,je=ie.popupStyle,nt=ie.popupPlacement,tt=ie.builtinPlacements,_e=tt===void 0?{}:tt,De=ie.popupAlign,Fe=ie.zIndex,Qe=ie.stretch,ge=ie.getPopupClassNameFromAlign,Vt=ie.fresh,Ze=ie.alignPoint,gn=ie.onPopupClick,In=ie.onPopupAlign,Hn=ie.arrow,mr=ie.popupMotion,rn=ie.maskMotion,vn=ie.popupTransitionName,Je=ie.popupAnimation,It=ie.maskTransitionName,zt=ie.maskAnimation,Ke=ie.className,Oe=ie.getTriggerDOMNode,bt=(0,Q.Z)(ie,Ut),St=gt||fe||!1,qt=x.useState(!1),Wt=(0,N.Z)(qt,2),on=Wt[0],Xt=Wt[1];(0,m.Z)(function(){Xt((0,u.Z)())},[]);var hn=x.useRef({}),An=x.useContext(Ee),$t=x.useMemo(function(){return{registerSubPopup:function(sr,Xr){hn.current[sr]=Xr,An==null||An.registerSubPopup(sr,Xr)}}},[An]),Rt=(0,O.Z)(),an=x.useState(null),tn=(0,N.Z)(an,2),cn=tn[0],bn=tn[1],tr=(0,C.Z)(function(dr){(0,pe.Sh)(dr)&&cn!==dr&&bn(dr),An==null||An.registerSubPopup(Rt,dr)}),Mn=x.useState(null),Qt=(0,N.Z)(Mn,2),ct=Qt[0],ft=Qt[1],Tt=x.useRef(null),Nt=(0,C.Z)(function(dr){(0,pe.Sh)(dr)&&ct!==dr&&(ft(dr),Tt.current=dr)}),Dt=x.Children.only(R),Ht=(Dt==null?void 0:Dt.props)||{},Bt={},dn=(0,C.Z)(function(dr){var sr,Xr,zi=ct;return(zi==null?void 0:zi.contains(dr))||((sr=(0,a.A)(zi))===null||sr===void 0?void 0:sr.host)===dr||dr===zi||(cn==null?void 0:cn.contains(dr))||((Xr=(0,a.A)(cn))===null||Xr===void 0?void 0:Xr.host)===dr||dr===cn||Object.values(hn.current).some(function(ui){return(ui==null?void 0:ui.contains(dr))||dr===ui})}),xn=P($,mr,Je,vn),Rn=P($,rn,zt,It),Qn=x.useState(We||!1),nr=(0,N.Z)(Qn,2),ar=nr[0],_n=nr[1],yn=Ce!=null?Ce:ar,gr=(0,C.Z)(function(dr){Ce===void 0&&_n(dr)});(0,m.Z)(function(){_n(Ce||!1)},[Ce]);var Gn=x.useRef(yn);Gn.current=yn;var Tr=x.useRef([]);Tr.current=[];var Jn=(0,C.Z)(function(dr){var sr;gr(dr),((sr=Tr.current[Tr.current.length-1])!==null&&sr!==void 0?sr:yn)!==dr&&(Tr.current.push(dr),Pe==null||Pe(dr))}),or=x.useRef(),yr=function(){clearTimeout(or.current)},rr=function(sr){var Xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;yr(),Xr===0?Jn(sr):or.current=setTimeout(function(){Jn(sr)},Xr*1e3)};x.useEffect(function(){return yr},[]);var Ir=x.useState(!1),Jr=(0,N.Z)(Ir,2),Xn=Jr[0],En=Jr[1];(0,m.Z)(function(dr){(!dr||yn)&&En(!0)},[yn]);var it=x.useState(null),Fn=(0,N.Z)(it,2),lr=Fn[0],Cr=Fn[1],Dr=x.useState([0,0]),Mr=(0,N.Z)(Dr,2),Ur=Mr[0],vr=Mr[1],Kr=function(sr){vr([sr.clientX,sr.clientY])},zn=ht(yn,cn,Ze?Ur:ct,nt,_e,De,In),Sn=(0,N.Z)(zn,11),qn=Sn[0],Lr=Sn[1],Zr=Sn[2],Ci=Sn[3],Un=Sn[4],Vr=Sn[5],jr=Sn[6],oi=Sn[7],Ai=Sn[8],Li=Sn[9],ei=Sn[10],gi=ce(on,le,re,J),li=(0,N.Z)(gi,2),Ri=li[0],Ii=li[1],ji=Ri.has("click"),Ti=Ii.has("click")||Ii.has("contextMenu"),Gi=(0,C.Z)(function(){Xn||ei()}),$r=function(){Gn.current&&Ze&&Ti&&rr(!1)};st(yn,ct,cn,Gi,$r),(0,m.Z)(function(){Gi()},[Ur,nt]),(0,m.Z)(function(){yn&&!(_e!=null&&_e[nt])&&Gi()},[JSON.stringify(De)]);var aa=x.useMemo(function(){var dr=me(_e,$,Li,Ze);return H()(dr,ge==null?void 0:ge(Li))},[Li,ge,_e,$,Ze]);x.useImperativeHandle(Y,function(){return{nativeElement:Tt.current,forceAlign:Gi}});var ga=x.useState(0),ua=(0,N.Z)(ga,2),vi=ua[0],ca=ua[1],wa=x.useState(0),Pn=(0,N.Z)(wa,2),Mi=Pn[0],na=Pn[1],ur=function(){if(Qe&&ct){var sr=ct.getBoundingClientRect();ca(sr.width),na(sr.height)}},_r=function(){ur(),Gi()},cr=function(sr){En(!1),ei(),Be==null||Be(sr)},Zn=function(){return new Promise(function(sr){ur(),Cr(function(){return sr})})};(0,m.Z)(function(){lr&&(ei(),lr(),Cr(null))},[lr]);function Nr(dr,sr,Xr,zi){Bt[dr]=function(ui){var sa;zi==null||zi(ui),rr(sr,Xr);for(var ja=arguments.length,Ka=new Array(ja>1?ja-1:0),ya=1;ya<ja;ya++)Ka[ya-1]=arguments[ya];(sa=Ht[dr])===null||sa===void 0||sa.call.apply(sa,[Ht,ui].concat(Ka))}}(ji||Ti)&&(Bt.onClick=function(dr){var sr;Gn.current&&Ti?rr(!1):!Gn.current&&ji&&(Kr(dr),rr(!0));for(var Xr=arguments.length,zi=new Array(Xr>1?Xr-1:0),ui=1;ui<Xr;ui++)zi[ui-1]=arguments[ui];(sr=Ht.onClick)===null||sr===void 0||sr.call.apply(sr,[Ht,dr].concat(zi))}),en(yn,Ti,ct,cn,mt,At,dn,rr);var Yr=Ri.has("hover"),Ni=Ii.has("hover"),yi,Oi;Yr&&(Nr("onMouseEnter",!0,Xe,function(dr){Kr(dr)}),Nr("onPointerEnter",!0,Xe,function(dr){Kr(dr)}),yi=function(sr){(yn||Xn)&&cn!==null&&cn!==void 0&&cn.contains(sr.target)&&rr(!0,Xe)},Ze&&(Bt.onMouseMove=function(dr){var sr;(sr=Ht.onMouseMove)===null||sr===void 0||sr.call(Ht,dr)})),Ni&&(Nr("onMouseLeave",!1,Ye),Nr("onPointerLeave",!1,Ye),Oi=function(){rr(!1,Ye)}),Ri.has("focus")&&Nr("onFocus",!0,vt),Ii.has("focus")&&Nr("onBlur",!1,wt),Ri.has("contextMenu")&&(Bt.onContextMenu=function(dr){var sr;Gn.current&&Ii.has("contextMenu")?rr(!1):(Kr(dr),rr(!0)),dr.preventDefault();for(var Xr=arguments.length,zi=new Array(Xr>1?Xr-1:0),ui=1;ui<Xr;ui++)zi[ui-1]=arguments[ui];(sr=Ht.onContextMenu)===null||sr===void 0||sr.call.apply(sr,[Ht,dr].concat(zi))}),Ke&&(Bt.className=H()(Ht.className,Ke));var Bi=(0,z.Z)((0,z.Z)({},Ht),Bt),va={},Ca=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Ca.forEach(function(dr){bt[dr]&&(va[dr]=function(){for(var sr,Xr=arguments.length,zi=new Array(Xr),ui=0;ui<Xr;ui++)zi[ui]=arguments[ui];(sr=Bi[dr])===null||sr===void 0||sr.call.apply(sr,[Bi].concat(zi)),bt[dr].apply(bt,zi)})});var Za=x.cloneElement(Dt,(0,z.Z)((0,z.Z)({},Bi),va)),da={x:Vr,y:jr},fa=Hn?(0,z.Z)({},Hn!==!0?Hn:{}):null;return x.createElement(x.Fragment,null,x.createElement(S.Z,{disabled:!yn,ref:Nt,onResize:_r},x.createElement(j,{getTriggerDOMNode:Oe},Za)),x.createElement(Ee.Provider,{value:$t},x.createElement(T,{portal:oe,ref:tr,prefixCls:$,popup:Me,className:H()(Dn,aa),style:je,target:ct,onMouseEnter:yi,onMouseLeave:Oi,onPointerEnter:yi,zIndex:Fe,open:yn,keepDom:Xn,fresh:Vt,onClick:gn,mask:mt,motion:xn,maskMotion:Rn,onVisibleChanged:cr,onPrepare:Zn,forceRender:A,autoDestroy:St,getPopupContainer:w,align:Li,arrow:fa,arrowPos:da,ready:qn,offsetX:Lr,offsetY:Zr,offsetR:Ci,offsetB:Un,onAlign:Gi,stretch:Qe,targetWidth:vi/oi,targetHeight:Mi/Ai})))});return ve}var Et=ut(ye.Z)},50304:function(){"use strict"},8797:function(Gt,He,h){"use strict";var z=h(59301),N=h(93314),Q=h(3113),ye=Object.defineProperty,U=Object.defineProperties,H=Object.getOwnPropertyDescriptors,S=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,C=(x,y,L)=>y in x?ye(x,y,{enumerable:!0,configurable:!0,writable:!0,value:L}):x[y]=L,O=(x,y)=>{for(var L in y||(y={}))pe.call(y,L)&&C(x,L,y[L]);if(S)for(var L of S(y))a.call(y,L)&&C(x,L,y[L]);return x},m=(x,y)=>U(x,H(y));const u=({img:x,buttonProps:y={},styles:L={},customText:te,ButtonText:B,ButtonClick:M,Buttonclass:W,ButtonTwo:V,imgStyles:b,loading:T=!1})=>z.createElement("section",{className:"tc animated fadeIn",style:O(O({},{color:"#999",margin:"100px auto",visibility:T?"hidden":"visible"}),L)},z.createElement("img",{src:x||N,style:m(O({},b),{pointerEvents:"none",userSelect:"none"})}),z.createElement("p",{className:"mt20 font14"},te||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),B&&z.createElement(Q.ZP,O({className:W,onClick:M},y),B),V&&V);He.Z=u},23210:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return W}});var z=h(59301),N={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Q=h(3113),ye=h(70557),U=h(23954),H=h(6848),S=h(955),pe=h(94941),a=h(8797),C=h(3294),O=h(19381),m=h(59301),u=Object.defineProperty,x=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,te=(V,b,T)=>b in V?u(V,b,{enumerable:!0,configurable:!0,writable:!0,value:T}):V[b]=T,B=(V,b)=>{for(var T in b||(b={}))y.call(b,T)&&te(V,T,b[T]);if(x)for(var T of x(b))L.call(b,T)&&te(V,T,b[T]);return V},M=(V,b,T)=>new Promise((G,j)=>{var be=ce=>{try{xe(T.next(ce))}catch(ee){j(ee)}},Ee=ce=>{try{xe(T.throw(ce))}catch(ee){j(ee)}},xe=ce=>ce.done?G(ce.value):Promise.resolve(ce.value).then(be,Ee);xe((T=T.apply(V,b)).next())}),W=({editOffice:V="view",data:b,theme:T,type:G,filename:j,monacoEditor:be,className:Ee,style:xe,close:ce,onClose:ee,hasMask:Z,disabledDownload:me,onImgDimensions:P,showNodata:se,recordInfo:X})=>{const[v,E]=(0,z.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[K,de]=(0,z.useState)(""),[Ne,Ue]=(0,z.useState)(),ke=window.ENV==="build"?"/react/build":"",Ve=location.host.startsWith("localhost")?C.Z.PROXY_SERVER:C.Z.API_SERVER,pt=10*(1024*1024),st=(0,z.useRef)();b!=null&&b.startsWith("/api")&&G!=="txt"&&(b=C.Z.API_SERVER+b);const Ft=ut=>ut.substring(ut.lastIndexOf("/")+1).split(".").pop();j&&be&&(be.filename=j),(0,z.useEffect)(()=>{var ut,Et;const oe=(Et=(ut=document.cookie)==null?void 0:ut.replace(/\s/g,""))==null?void 0:Et.split(";");oe==null||oe.map(ve=>{let ie=ve.split("=");ie[0]==="_educoder_session"&&de(ie[1])})},[]),(0,z.useEffect)(()=>{G==="office"&&(b.indexOf("bigfilescdn.")>-1||b.indexOf("bigfiles1")>-1?Ue({url:b,fileType:Ft(b),model:b.indexOf("model=edit")?"edit":"view"}):Yt())},[G,b]);const Yt=()=>M(void 0,null,function*(){console.log("data:",b);let ut=b;b.startsWith("http")||(ut=location.origin+ut);let Et=new URL(ut).pathname.split("/").pop();const oe=yield(0,pe.gJ)({attachment_id:Et});oe.url=Ve+oe.url,Ue(oe)}),en=()=>{if(b.startsWith("http")||b.startsWith("blob:")){Ut();return}(0,S.Sv)(j||"educoder",b,j)},Ut=()=>{X&&(0,O.fc)({id:X==null?void 0:X.id,watch_type:1,course_id:X==null?void 0:X.course_id}),(0,S.Nd)(j||"educoder",decodeURIComponent(b))};return m.createElement("div",{style:B({},xe||{}),className:`${Z&&N.bgBlack} ${G?N.wrp:"hide"}`},ce&&m.createElement("div",{className:N.close,ref:st},!!P&&m.createElement(H.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>st.current},m.createElement("span",{onClick:()=>{ee(),P()}},m.createElement("i",{className:"icon-yulanpizhu"}))),!me&&m.createElement(H.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>st.current},m.createElement("span",{onClick:Ut},m.createElement("i",{className:"icon-quxiaozhiding"}))),m.createElement(H.Z,{title:"\u5173\u95ED",getPopupContainer:()=>st.current},m.createElement("span",{className:"",onClick:ee},m.createElement("i",{className:"icon-guanbi1"})))),m.createElement("div",{className:`${N[Ee]} ${Ee} ${N.monaco} ${G==="txt"?"show":"hide"}`},G==="txt"&&m.createElement(m.Fragment,null,m.createElement(U.ZP,B({},be)))),G==="audio"&&m.createElement("audio",{src:`${(b==null?void 0:b.indexOf("http://"))>-1||(b==null?void 0:b.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${b}`,autoPlay:!0}),G==="video"&&m.createElement(m.Fragment,null,(b==null?void 0:b.indexOf("http"))>-1?m.createElement("video",{controls:!0,src:`${b}`,autoPlay:!0}):m.createElement("video",{controls:!0,src:`data:video/mp4;base64,${b}`,autoPlay:!0})),G==="office"&&Ne&&m.createElement("iframe",{src:`${ke}/office.html?key=${Ne.key}&url=${btoa(Ne.url)}&callbackUrl=${Ve+(Ne.callbackUrl||"")}&fileType=${Ne.fileType}&title=${Ne.title||""}&model=${V}&officeServer=${C.Z.ONLYOFFICE}&disabledDownload=${!!me}`}),G==="html"&&m.createElement("iframe",{src:b+"&disposition=inline"}),G==="pdf"&&m.createElement("iframe",{src:`${ke}/js/pdfview/index.html?filename=${j||"educoder.pdf"}&url=${encodeURIComponent(b)}&disabledDownload=${!!me}`}),G==="image"&&m.createElement("img",{src:`${(b==null?void 0:b.indexOf("http://"))>-1||(b==null?void 0:b.indexOf("https://"))>-1?"":"data:image/png;base64,"}${b}`}),(G==="other"||G==="download")&&m.createElement(m.Fragment,null,se?m.createElement(a.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:m.createElement(Q.ZP,{icon:m.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:en,disabled:me},"\u4E0B\u8F7D")}):m.createElement(Q.ZP,{type:"primary",size:"middle",onClick:en,disabled:me},m.createElement(ye.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(Gt,He,h){"use strict";h.d(He,{z:function(){return G},Z:function(){return j}});var z=h(59301),N=h(50304),Q=h(24768),ye=h(64018),U=h(40846),H=h(3294),S=h(955),pe=h(15342),a=h(1012),C=h(23210),O=h(59301),u=({html:be})=>{const Ee=(0,z.useRef)(null),xe=(0,z.useRef)(null),ce=`.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,z.useEffect)(()=>{const ee=Ee.current.attachShadow({mode:"open"});xe.current=document.createElement("div"),xe.current.className="markdown-body",xe.current.innerHTML=be,ee.appendChild(xe.current);const Z=document.createElement("style");return Z.textContent=ce,ee.appendChild(Z),()=>{ee.innerHTML=""}},[]),(0,z.useEffect)(()=>{xe.current&&(xe.current.innerHTML=be)},[be]),O.createElement("div",{ref:Ee})},x=Object.defineProperty,y=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,B=(be,Ee,xe)=>Ee in be?x(be,Ee,{enumerable:!0,configurable:!0,writable:!0,value:xe}):be[Ee]=xe,M=(be,Ee)=>{for(var xe in Ee||(Ee={}))L.call(Ee,xe)&&B(be,xe,Ee[xe]);if(y)for(var xe of y(Ee))te.call(Ee,xe)&&B(be,xe,Ee[xe]);return be};const W="@\u2581\u2581@",V="@\u2581@",b=/<pre[^>]*>/g;function T(be){let Ee=document.createElement("div");return Ee.innerHTML=be,Ee.childNodes.length===0?"":Ee.childNodes[0].nodeValue}const G=(be,Ee)=>{be=be||"";const xe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ce=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ee=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Z=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ee?be.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(xe,(me,P,se,X,v,E,K)=>{const de=P||X||E,Ne=se||v||K||"?";return H.Z.API_SERVER+"/api/attachments/"+de+Ne+"&t="+(0,S.Jn)(de,Date.now())+(me.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(be=be.replace(Z,(me,P,se,X,v,E,K)=>{const de=P||X||E,Ne=se||v||K||"?";return H.Z.API_SERVER+"/attachments/download/"+de+Ne+"&t="+(0,S.Jn)(de,Date.now())+(me.indexOf(")")>-1?")":"&")}).replace(xe,(me,P,se,X,v,E,K)=>{const de=P||X||E,Ne=se||v||K||"?";return H.Z.API_SERVER+"/api/attachments/"+de+Ne+"&t="+(0,S.Jn)(de,Date.now())+(me.indexOf(")")>-1?")":"&")}).replace(ce,(me,P,se,X,v)=>{const E=P||X,K=se||v||"";return'"'+H.Z.API_SERVER+"/api/attachments/"+E+K+E+K+"&t="+(0,S.Jn)(E,Date.now())}).replace(ee,(me,P,se,X,v)=>{const E=P||X,K=se||v||"";return"("+H.Z.API_SERVER+"/files/uploads/"+E+K+E+K+"&t="+(0,S.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,`
`),be)};var j=({value:be="",className:Ee,showTextOnly:xe,showLines:ce,style:ee={},stylesPrev:Z={},highlightKeywords:me,showProgramFill:P,isProgramFill:se,disabledFill:X=!1,programFillValue:v,onFillChange:E=Ne=>{},onFillBlur:K=()=>{},onFillFocus:de=()=>{}})=>{let Ne=String(be);const[Ue,ke]=(0,z.useState)(""),[Ve,ht]=(0,z.useState)("office"),[pt,st]=(0,z.useState)([]),Ft=(0,z.useRef)("a"+(0,a.Z)()),Yt={},en=(le,re,J)=>{const Ce=document.createElement(le===V?"input":"textarea");Ce.style.width="100%",Ce.style.height=le===V?"40px":"151px",Ce.rows=5,Ce.spellcheck=!1,Ce.name="edu-program-fill",Ce.placeholder="\u8BF7\u8F93\u5165",Ce.dataset.id=re;const We=Object.keys(Yt).length;return Yt[We]=Ce,`<span class="edu-program-fill-wrap ${le===V?"":"show"}" style="width:${le===V?"400px":"100%"}" title=${J||""}><span>${Ce.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Ut(le){return le=le.replace(/!\[.*?\]\(.*?\)/g,""),le=le.replace(/\[.*?\]\(.*?\)/g,""),le=le.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),le=le.replace(/<embed.*?>/g,""),le=le.replace(/<img.*?>/g,""),le=le.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),le=le.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),le=le.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),le=le.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),le}const ut=le=>le.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(re,J){let Ce=J.replace(/(\n|\r)/g,"").split("}"),We=[];return Ce.map(Pe=>{Pe!=""&&We.push(`.${Ft.current} ${Pe}`)}),`<style>${We.join("}")}</style>`}),Et=(0,z.useMemo)(()=>{try{const Ce=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,We=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Pe=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Be=/\(\/attachments\/download\//g;Ne=Ne.replace(Be,"("+H.Z.API_SERVER+"/attachments/download/").replace(Ce,"("+H.Z.API_SERVER+"/api/attachments/").replace(We,'"'+H.Z.API_SERVER+"/api/attachments/").replace(Pe,'"'+H.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(Ce){}if(P){let Ce=-1;return Ne=Ne.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(We,Pe,Be){var Xe;return++Ce,en(We,Ce,(Xe=v==null?void 0:v[Ce])==null?void 0:Xe.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${ut(Ne||"")}</pre>`}let le=ut(Ne);le=(0,Q.ZP)(le);const re=(0,Q.ez)();Ne.match(/\[TOC\]/)&&(le=le.replace("<p>[TOC]</p>",(0,Q.Qv)()),(0,Q.Iy)()),le=le.replace(/(__special_katext_id_\d+__)/g,(Ce,We)=>{const{type:Pe,expression:Be}=re[We];return(0,pe.renderToString)(T(Be)||"",{displayMode:Pe==="block",throwOnError:!1,output:"html"})}),le=le.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Q.AL)();const J=document.createElement("div");if(J.innerHTML=le,xe)return J.innerText;if(me){const Ce=me.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Y(J,Ce),J.innerHTML}return setTimeout(()=>R(),500),J.innerHTML},[Ne,me]);(0,z.useEffect)(()=>{Ae.current&&Ae.current.querySelectorAll(["input","textarea"]).forEach(re=>{re.oninput=oe,re.onblur=ve,re.onfocus=ie})},[pt]),(0,z.useEffect)(()=>{var le,re,J,Ce,We;if(v!=null&&v.length)try{const Pe=Ae.current.querySelectorAll(".edu-program-fill-score"),Be=Ae.current.querySelectorAll('[name="edu-program-fill"]');for(const[Xe,rt]of Be.entries())rt.value=((le=v==null?void 0:v[Xe])==null?void 0:le.value)||"",((re=v==null?void 0:v[Xe])==null?void 0:re.type)==="warning"?rt.className="program-fill-warning":((J=v==null?void 0:v[Xe])==null?void 0:J.type)==="success"?rt.className="program-fill-success":rt.className="";for(const[Xe,rt]of Pe.entries())rt.innerHTML=(Ce=v==null?void 0:v[Xe])!=null&&Ce.score?`${(We=v==null?void 0:v[Xe])==null?void 0:We.score}\u5206`:"";st(v)}catch(Pe){console.log(Pe,"error")}},[v]);const oe=le=>{pt[le.target.dataset.id]=pt[le.target.dataset.id]||{},pt[le.target.dataset.id].value=le.target.value,st([...pt]),E(pt,le.target.dataset.id)},ve=le=>{pt[le.target.dataset.id]=pt[le.target.dataset.id]||{},pt[le.target.dataset.id].value=le.target.value,st([...pt]),K(pt,le.target.dataset.id)},ie=le=>{pt[le.target.dataset.id]=pt[le.target.dataset.id]||{},pt[le.target.dataset.id].value=le.target.value,st([...pt]),de(pt,le.target.dataset.id)};function Y(le,re){return le.childNodes.forEach(J=>{var Ce;if(J.childNodes.length>0)Y(J,re);else if(J.nodeName!=="IMG")if(J.innerHTML)J.innerHTML=(Ce=J.innerHTML)==null?void 0:Ce.replace(new RegExp(re,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const We=document.createElement("span");We.innerHTML=J.textContent.replace(new RegExp(re,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),J.replaceWith(We)}})}const Ae=(0,z.useRef)();Q.jb.WebkitLineClamp=ce,ce&&(ee=M(M({},ee),Q.jb));function $(le){let re=le.target;if(re.tagName.toUpperCase()==="A"){let J=re.getAttribute("href");if(J.indexOf("office")>-1)le.preventDefault(),ke(J),ht("office");else if(J.indexOf("application/pdf")>-1)le.preventDefault(),ke(J),ht("pdf");else if(J.indexOf("text/html")>-1)le.preventDefault(),ke(J),ht("html");else if(J.startsWith("#")){le.preventDefault();let Ce=document.getElementById(J.replace("#",""));Ce&&Ce.scrollIntoView(!0)}}}const R=()=>{var le;const re=(le=Ae.current)==null?void 0:le.querySelectorAll("video");re==null||re.forEach(J=>{if(J.oncontextmenu=()=>!1,J.src.indexOf(".m3u8")>-1&&!J.canPlayType("application/vnd.apple.mpegurl")){if(U.ZP.isSupported()){var Ce=new U.ZP;Ce.loadSource(J.src),Ce.attachMedia(J)}}})};(0,z.useEffect)(()=>{if(Ae.current&&Et&&Et.match(b)&&window.PR.prettyPrint(),Ae.current)return Ae.current.addEventListener("click",$),()=>{var le;(le=Ae.current)==null||le.removeEventListener("click",$),(0,Q.AL)(),(0,Q.Iy)()}},[Et,Ae.current,$]),(0,z.useEffect)(()=>{var le;const re=J=>{J.preventDefault(),J.clipboardData.setData("text",window.getSelection().toString())};return(le=Ae.current)==null||le.addEventListener("copy",re),()=>{var J;(J=Ae.current)==null||J.removeEventListener("copy",re)}},[Ae.current]);const I=le=>/<style[\s\S]*?>/i.test(le||"");return z.createElement(z.Fragment,null,xe&&z.createElement("div",{ref:Ae},Et),!xe&&!I(Et)&&z.createElement("div",{ref:Ae,style:M({},ee),className:`${Ee||""} ${X?"disabled-fill":""} markdown-body ${Ft.current}`,dangerouslySetInnerHTML:{__html:Et}}),!xe&&I(Et)&&z.createElement(u,{html:Et}),z.createElement(C.Z,{close:!0,data:Ue,type:Ue!=null&&Ue.length?Ve:"",style:M({},Z),onClose:()=>ke("")}))}},23954:function(Gt,He,h){"use strict";h.d(He,{SV:function(){return Ae},ZP:function(){return Y}});var z=h(59301),N=h(76374);const Q={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},ye={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"]},U={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(`
`)}]},H={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(`
`)}]},S={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 pe=h(53184),a=h.n(pe),C=Object.defineProperty,O=Object.defineProperties,m=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,L=($,R,I)=>R in $?C($,R,{enumerable:!0,configurable:!0,writable:!0,value:I}):$[R]=I,te=($,R)=>{for(var I in R||(R={}))x.call(R,I)&&L($,I,R[I]);if(u)for(var I of u(R))y.call(R,I)&&L($,I,R[I]);return $},B=($,R)=>O($,m(R)),M=($,R,I)=>new Promise((le,re)=>{var J=Pe=>{try{We(I.next(Pe))}catch(Be){re(Be)}},Ce=Pe=>{try{We(I.throw(Pe))}catch(Be){re(Be)}},We=Pe=>Pe.done?le(Pe.value):Promise.resolve(Pe.value).then(J,Ce);We((I=I.apply($,R)).next())});const W={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"]}},V=($,R)=>R.map(I=>({label:I,kind:$.languages.CompletionItemKind.Keyword,insertText:I})),b=$=>Object.keys(W.tables).map(R=>({label:R,kind:$.languages.CompletionItemKind.Variable,insertText:R})),T=($,R)=>{const I=W.tables[$];return I?I.map(le=>({label:le,kind:R.languages.CompletionItemKind.Field,insertText:le})):[]};function G($,R,I,le,re){let J=R.getWordUntilPosition(I),Ce={startLineNumber:I.lineNumber,endLineNumber:I.lineNumber,startColumn:J.startColumn,endColumn:J.endColumn},We=le.map(Pe=>({label:Pe,kind:$.languages.CompletionItemKind.Keyword,insertText:Pe,insertTextRules:$.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ce}));return re.map(Pe=>{We.push(B(te({},Pe),{range:Ce}))}),We}var j=$=>{W.languages.map(re=>($.languages.registerDocumentFormattingEditProvider(re,{provideDocumentFormattingEdits(J,Ce,We){return M(this,null,function*(){const Pe=a()(J.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:J.getFullModelRange(),text:Pe}]})}}),re));const R=U.quickKey.map(re=>({label:re.label,kind:$.languages.CompletionItemKind.Method,insertText:re.content,insertTextRules:$.languages.CompletionItemInsertTextRule.InsertAsSnippet})),I=H.quickKey.map(re=>({label:re.label,kind:$.languages.CompletionItemKind.Method,insertText:re.content,insertTextRules:$.languages.CompletionItemInsertTextRule.InsertAsSnippet})),le=ye.quickKey.map(re=>({label:re.label,kind:$.languages.CompletionItemKind.Method,insertText:re.content,insertTextRules:$.languages.CompletionItemInsertTextRule.InsertAsSnippet}));$.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(re,J){var Ce=re.getWordUntilPosition(J),We={startLineNumber:J.lineNumber,endLineNumber:J.lineNumber,startColumn:Ce.startColumn,endColumn:Ce.endColumn},Pe=re.getLineContent(J.lineNumber).substring(Ce.startColumn-2,Ce.endColumn);return{suggestions:[...U.keywords.map(Be=>({label:Be,kind:$.languages.CompletionItemKind.Function,documentation:Be,insertText:Be,insertTextRules:$.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We})),...U.quickKey.map(Be=>({label:Be.label,kind:$.languages.CompletionItemKind.Function,documentation:Be.content,insertText:Pe.startsWith("#")?Be.content.replace(/#/,""):Be.content,insertTextRules:$.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We}))]}}}),$.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(re,J){var Ce=re.getWordUntilPosition(J),We={startLineNumber:J.lineNumber,endLineNumber:J.lineNumber,startColumn:Ce.startColumn,endColumn:Ce.endColumn};return{suggestions:[...Q.keywords.map(Pe=>({label:Pe,kind:$.languages.CompletionItemKind.Function,documentation:Pe,insertText:Pe,insertTextRules:$.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We}))]}}}),$.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(re,J){var Ce=re.getWordUntilPosition(J),We={startLineNumber:J.lineNumber,endLineNumber:J.lineNumber,startColumn:Ce.startColumn,endColumn:Ce.endColumn},Pe=re.getLineContent(J.lineNumber).substring(Ce.startColumn-2,Ce.endColumn);return{suggestions:[...ye.keywords.map(Be=>({label:Be,kind:$.languages.CompletionItemKind.Function,documentation:Be,insertText:Be,insertTextRules:$.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We})),...ye.quickKey.map(Be=>({label:Be.label,kind:$.languages.CompletionItemKind.Function,documentation:Be.content,insertText:Pe.startsWith("#")?Be.content.replace(/#/,""):Be.content,insertTextRules:$.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We}))]}}}),$.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(re,J){var Ce=re.getWordUntilPosition(J),We={startLineNumber:J.lineNumber,endLineNumber:J.lineNumber,startColumn:Ce.startColumn,endColumn:Ce.endColumn},Pe=re.getLineContent(J.lineNumber).substring(Ce.startColumn-2,Ce.endColumn);return{suggestions:[...S.keywords.map(Be=>({label:Be,kind:$.languages.CompletionItemKind.Function,documentation:Be,insertText:Be,insertTextRules:$.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We})),...S.quickKey.map(Be=>({label:Be.label,kind:$.languages.CompletionItemKind.Function,documentation:Be.content,insertText:Pe.startsWith("#")?Be.content.replace(/#/,""):Be.content,insertTextRules:$.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We}))]}}}),$.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(re,J){var Ce=re.getWordUntilPosition(J),We={startLineNumber:J.lineNumber,endLineNumber:J.lineNumber,startColumn:Ce.startColumn,endColumn:Ce.endColumn},Pe=re.getLineContent(J.lineNumber).substring(Ce.startColumn-2,Ce.endColumn);return{suggestions:[...H.keywords.map(Be=>({label:Be,kind:$.languages.CompletionItemKind.Function,documentation:Be,insertText:Be,insertTextRules:$.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We})),...H.quickKey.map(Be=>({label:Be.label,kind:$.languages.CompletionItemKind.Function,documentation:Be.content,insertText:Pe.startsWith("#")?Be.content.replace(/#/,""):Be.content,insertTextRules:$.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We}))]}}})};const be="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ee=Object.defineProperty,xe=($,R,I)=>R in $?Ee($,R,{enumerable:!0,configurable:!0,writable:!0,value:I}):$[R]=I,ce=($,R,I)=>xe($,typeof R!="symbol"?R+"":R,I);const ee=class El{constructor(R,I,le){this.placeholder=R,this.editor=I,this.monaco=le,I.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return El.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)}};ce(ee,"ID","editor.widget.placeholderHint");var me=ee,P=h(96236),se=h(8591),X=h(6848),v=h(89392),E=h(34604),K=h(56102),de=Object.defineProperty,Ne=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,pt=($,R,I)=>R in $?de($,R,{enumerable:!0,configurable:!0,writable:!0,value:I}):$[R]=I,st=($,R)=>{for(var I in R||(R={}))Ve.call(R,I)&&pt($,I,R[I]);if(ke)for(var I of ke(R))ht.call(R,I)&&pt($,I,R[I]);return $},Ft=($,R)=>Ne($,Ue(R)),Yt=($,R)=>{var I={};for(var le in $)Ve.call($,le)&&R.indexOf(le)<0&&(I[le]=$[le]);if($!=null&&ke)for(var le of ke($))R.indexOf(le)<0&&ht.call($,le)&&(I[le]=$[le]);return I},en=($,R,I)=>new Promise((le,re)=>{var J=Pe=>{try{We(I.next(Pe))}catch(Be){re(Be)}},Ce=Pe=>{try{We(I.throw(Pe))}catch(Be){re(Be)}},We=Pe=>Pe.done?le(Pe.value):Promise.resolve(Pe.value).then(J,Ce);We((I=I.apply($,R)).next())});function Ut($){return/^\d+$/.test($)?`${$}px`:$}function ut(){}let Et=!1;const oe={"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 ve($=[]){let R=$;if(Array.isArray($)){for(let I=0;I<$.length;I++){let le=oe[$[I]];if(le)return le}return R[0]}return oe[R]||R}let ie=null;var Y=$=>{var R=$,{width:I="100%",height:le="100%",value:re,language:J="javascript",style:Ce={},options:We={},overrideServices:Pe={},theme:Be="vs-dark",onEditBlur:Xe,isCopy:rt=!1,onSave:Ye,autoHeight:vt=!1,forbidCopy:wt=!1,onChange:mt=ut,editorDidMount:Pt=ut,onFocus:At=ut,onBreakPoint:w=ut,breakPointValue:A=[],filename:gt="educoder.txt",errorLine:fe,errorContent:Me="",highlightLine:Dn,openBreakPoint:je=!1,placeholder:nt=""}=R,tt=Yt(R,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const _e=(0,z.useRef)(),De=(0,z.useRef)({}),Fe=(0,z.useRef)(),Qe=(0,z.useRef)(),ge=(0,z.useRef)([]),Vt=(0,z.useRef)(!1),Ze=(0,z.useRef)(),gn=(0,z.useRef)(),In=(0,z.useRef)(!1),[Hn,mr]=(0,z.useState)(!1);function rn(){let $t;return _e.current&&($t=new N.Z(Rt=>{for(let an of Rt)(an.target.offsetHeight>0||an.target.offsetWidth>0)&&De.current.instance.layout()}),$t.observe(_e.current)),$t}function vn(){se.ZP.warning({content:decodeURIComponent(be),key:"monaco-editor-tip"})}const Je=()=>{let $t=De.current.instance;if(re!=null&&$t&&Hn){const Rt=$t.getModel();Rt&&re!==Rt.getValue()&&(Et=!0,Rt.setValue(re),$t.layout(),Et=!1)}};(0,z.useEffect)(()=>{const $t=E.Z.subscribe("formatDocument",Rt=>{var an;let tn=De.current.instance;(an=tn==null?void 0:tn.getAction)==null||an.call(tn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Rt=>{mt(Rt)},$t},[]),(0,z.useEffect)(()=>{var $t;let Rt=De.current.instance;Qe.current&&clearTimeout(Qe.current),Qe.current=setTimeout(()=>{Je()},500),re&&(re!=null&&re.length)&&(($t=Rt==null?void 0:Rt.updateOptions)==null||$t.call(Rt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(re.split(/\r\n|\r|\n/g).length))+3,5)}))},[re,Hn,De.current]),(0,z.useEffect)(()=>{if(fe&&De.current&&De.current.instance){let Rt=De.current.instance;Rt.changeViewZones(function(an){var tn=document.createElement("div");tn.style.padding="10px 20px",tn.style.width="calc(100% - 20px)",tn.className="my-error-line-wrp",tn.innerHTML=Me,an.addZone({afterLineNumber:fe||11,heightInLines:3,domNode:tn})});var $t={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}};Rt.addOverlayWidget($t),Rt.revealPositionInCenter({lineNumber:20,column:1})}},[fe,De.current,Hn]);const It=($t="",Rt)=>{if(!$t||$t.trim()==="")return!0;const tn=De.current.instance.getModel().getLineTokens(Rt);let cn=!1;for(let bn=0;bn<2;bn++)tn.getStandardTokenType(bn)===1&&(cn=!0);return cn};(0,z.useEffect)(()=>{var $t;const Rt=($t=De.current)==null?void 0:$t.instance;if(Rt&&Hn&&wt){const an=Rt.onDidBlurEditorWidget(()=>{In.current=!1}),tn=Rt.onDidFocusEditorText(()=>{In.current=!0});return()=>{an.dispose(),tn.dispose()}}},[De.current,Hn,wt]),(0,z.useEffect)(()=>{var $t;if(($t=De.current)!=null&&$t.instance&&Hn&&je){let Rt=De.current.instance,an=Rt.getModel();if(!an)return;(()=>{var Ht;let Bt=[],dn=[];const xn=an.getAllDecorations();for(let Qn of xn)Qn.options.className==="highlighted-line"&&(Bt.push((Ht=Qn==null?void 0:Qn.range)==null?void 0:Ht.startLineNumber),dn.push(Qn==null?void 0:Qn.id));if(Dn===Bt[0])return;an.deltaDecorations(dn,[]);const Rn=an.getLineCount();Dn&&Dn<=Rn&&(Rt.deltaDecorations([],[{range:new ie.Range(Dn,1,Dn,an.getLineMaxColumn(Dn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Rt.revealLineInCenter(Dn))})();const cn=(Ht=!1)=>{var Bt;let dn=[],xn=[];const Rn=an.getAllDecorations();for(let Qn of Rn)Qn.options.linesDecorationsClassName==="breakpoints-select"&&(dn.push((Bt=Qn==null?void 0:Qn.range)==null?void 0:Bt.startLineNumber),xn.push(Qn==null?void 0:Qn.id));if(Ht)return{lines:dn,ids:xn};w(dn)},bn=Ht=>en(void 0,null,function*(){let Bt={range:new ie.Range(Ht,1,Ht,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield an.deltaDecorations([],[Bt]),cn()}),tr=Ht=>en(void 0,null,function*(){let Bt=[];const dn=Rt.getLineDecorations(Ht);for(let xn of dn)xn.options.linesDecorationsClassName==="breakpoints-select"&&Bt.push(xn.id);yield an.deltaDecorations(Bt,[]),cn()}),Mn=Ht=>{let Bt=Rt.getLineDecorations(Ht);for(let dn of Bt)if(dn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,v.isEqual)(A,cn(!0).lines)){an.deltaDecorations(cn(!0).ids,[]);const Ht=A.map(Bt=>({range:new ie.Range(Bt,1,Bt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));an.deltaDecorations([],Ht)}const Qt=Rt.onDidChangeModelContent(Ht=>{let Bt=Rt.getPosition();if(Bt){let dn=Bt.lineNumber;clearTimeout(gn.current),gn.current=setTimeout(()=>{It(an.getLineContent(dn),dn)?tr(dn):Mn(dn)?(tr(dn),bn(dn)):cn()},100)}}),ct=Rt.onMouseDown(Ht=>{var Bt,dn,xn;if(Ht.target.detail&&((xn=(dn=(Bt=Ht.target)==null?void 0:Bt.element)==null?void 0:dn.className)!=null&&xn.includes("line-numbers"))){let Rn=Ht.target.position.lineNumber;if(It(an.getLineContent(Rn),Rn))return;Mn(Rn)?tr(Rn):bn(Rn)}}),ft=Ht=>{let Bt={range:new ie.Range(Ht,1,Ht,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};ge.current=Rt.deltaDecorations(ge.current,[Bt])},Tt=()=>{ge.current=Rt.deltaDecorations(ge.current,[])},Nt=Rt.onMouseMove(Ht=>{var Bt,dn,xn;if(Tt(),Ht.target.detail&&((xn=(dn=(Bt=Ht.target)==null?void 0:Bt.element)==null?void 0:dn.className)!=null&&xn.includes("line-numbers"))){let Rn=Ht.target.position.lineNumber;if(It(an.getLineContent(Rn),Rn))return;ft(Rn)}}),Dt=Rt.onMouseLeave(()=>{Tt()});return()=>{Qt.dispose(),ct.dispose(),Nt.dispose(),Dt.dispose()}}},[De.current,Hn,A,Dn,je,J]),(0,z.useEffect)(()=>{var $t;($t=De.current)!=null&&$t.instance&&je&&De.current.instance.setPosition({lineNumber:0,column:0})},[Dn]);function zt(){let $t=De.current.instance;if($t){const Rt=$t.getSelection(),an=De.current.pastePos||{},tn=new ie.Range(an.startLineNumber||Rt.endLineNumber,an.startColumn||Rt.endColumn,an.endLineNumber||Rt.endLineNumber,an.endColumn||Rt.endColumn);setTimeout(()=>{$t.executeEdits("",[{range:tn,text:""}])},300)}}function Ke($t){(window.navigator.platform.match("Mac")?$t.metaKey:$t.ctrlKey)&&$t.keyCode==83&&($t.preventDefault(),Ye())}const Oe=()=>{if(vt&&De.current.instance){const $t=De.current.instance.getContentHeight();hn($t<le?le:$t)}else hn(le)};function bt($t){var Rt=document.createEvent("MouseEvents");Rt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),$t.dispatchEvent(Rt)}const St=$t=>{if(!In.current)return;const{keyCode:Rt,ctrlKey:an,metaKey:tn,target:cn,type:bn}=$t;return(bn==="paste"||(Rt===67||Rt===86)&&(tn||an))&&cn.nodeName==="TEXTAREA"&&(vn(),$t.preventDefault()),!1};function qt($t,Rt){var an=window.URL||window.webkitURL||window,tn=new Blob([Rt]),cn=document.createElementNS("http://www.w3.org/1999/xhtml","a");cn.href=an.createObjectURL(tn),cn.download=$t,bt(cn)}(0,z.useEffect)(()=>{Oe()},[Oe]),(0,z.useEffect)(()=>{_e.current&&!Hn&&Promise.all([h.e(8909),h.e(3267)]).then(h.bind(h,71448)).then($t=>{try{ie=$t,De.current.instance=ie.editor.create(_e.current,{value:re,language:ve(J),theme:Be,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Pe);const Rt=De.current.instance;let cn=[...P.BH._menuItems].find(Qt=>Qt[0]._debugName=="EditorContext")[1],bn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],tr=(Qt,ct)=>{var ft,Tt;let Nt=Qt._first;do ct.includes((Tt=(ft=Nt.element)==null?void 0:ft.command)==null?void 0:Tt.id)&&Qt._remove(Nt);while(Nt=Nt.next)};if(Pt(Rt,ie),setTimeout(()=>{Oe(),De.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{qt(gt||"educoder.txt",Rt.getValue())}})},500),De.current.subscription=Rt.onDidChangeModelContent(Qt=>{Vt.current?clearTimeout(Ze.current):(Oe(),mt(Rt.getValue(),Qt)),Ze.current=setTimeout(()=>{Vt.current=!1},500)}),window.Monaco||j(ie,ve(J)),wt&&(tr(cn,bn),_e.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",St),window.removeEventListener("paste",St),window.addEventListener("keydown",St),window.addEventListener("paste",St)),window.Monaco=ie,Xe&&Rt.onDidBlurEditorWidget(()=>{Xe(Rt.getValue())}),At&&Rt.onDidFocusEditorText(()=>{At(Rt.getValue())}),wt)try{Rt.onDidPaste(Qt=>{const ct=Rt.getSelection(),ft=De.current.pastePos||{},Tt=new ie.Range(ft.startLineNumber||ct.endLineNumber,ft.startColumn||ct.endColumn,ft.endLineNumber||ct.endLineNumber,ft.endColumn||ct.endColumn);Rt.executeEdits("",[{range:Qt.range,text:""}])})}catch(Qt){}let Mn=rn();return nt&&typeof nt=="string"&&new me(nt,Rt,ie),mr(!0),()=>{const Qt=De.current.instance;Qt.dispose();const ct=Qt.getModel();ct&&ct.dispose(),De.current.subscription&&De.current.subscription.dispose(),Mn.unobserve(_e.current)}}catch(Rt){}})},[]),(0,z.useEffect)(()=>{if(De.current.instance&&Hn)return document.addEventListener("keydown",Ke,!1),()=>{document.removeEventListener("keydown",Ke)}},[Ye,Hn]),(0,z.useEffect)(()=>{let $t=De.current.instance;if($t&&Hn){let Rt=ve(J);ie.editor.setModelLanguage($t.getModel(),Rt)}},[J,Hn]),(0,z.useEffect)(()=>{De.current.instance&&Hn&&ie.editor.setTheme(Be)},[Be,Hn]),(0,z.useEffect)(()=>{let $t=De.current.instance;Fe.current=We,$t&&Hn&&($t.updateOptions(st({},We)),setTimeout(()=>{$t.getModel().updateOptions(st({},We))},200))},[JSON.stringify(We),Hn]),(0,z.useEffect)(()=>{let $t=De.current.instance;$t&&Hn&&$t.layout()},[I,le,Hn]);const[Wt,on]=(0,z.useState)(Ut(I)),[Xt,hn]=(0,z.useState)(Ut(le)),An=Ft(st({},Ce),{width:Wt,height:Xt,position:"relative"});return z.createElement("div",{className:"my-monaco-editor",ref:_e,style:An},rt&&z.createElement(K.CopyToClipboard,{text:re,onCopy:()=>se.ZP.success("\u590D\u5236\u6210\u529F")},z.createElement(X.Z,{title:"\u590D\u5236\u4EE3\u7801"},z.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},z.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Ae({width:$="100%",height:R="100%",original:I,modified:le,language:re,options:J={}}){const Ce=(0,z.useRef)(),[We,Pe]=(0,z.useState)(null);function Be(vt){let wt;return Ce.current&&(wt=new N.Z(mt=>{for(let Pt of mt)(Pt.target.offsetHeight>0||Pt.target.offsetWidth>0)&&vt.layout()}),wt.observe(Ce.current)),wt}(0,z.useEffect)(()=>(Ce.current&&Promise.all([h.e(8909),h.e(9404)]).then(h.bind(h,2550)).then(vt=>{ie=vt;const wt=ie.editor.createDiffEditor(Ce.current,Ft(st({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},J),{wordWrap:!0}));Pe(wt);let mt=Be(wt);return()=>{wt.dispose();const Pt=wt.getModel();Pt&&Pt.dispose(),mt.unobserve(Ce.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,z.useEffect)(()=>{We&&We.setModel({original:ie.editor.createModel(I,re),modified:ie.editor.createModel(le,re)})},[I,le,re,We]);const Xe=Ut($),rt=Ut(R),Ye={width:Xe,height:rt};return z.createElement("div",{className:"my-diff-editor",ref:Ce,style:Ye})}},60913:function(Gt,He,h){"use strict";h.d(He,{H:function(){return S}});var z=h(59301),N=h(78241),Q=h(92832),ye=h(42441),U=h(85149);const H=({form:pe,index:a=1,field:C,ParentName:O=[]})=>{(typeof O=="string"||typeof O=="number")&&(O=[O]);const m=N.default.useWatch([...O,C.name,"chart_1"],{form:pe}),u=N.default.useWatch([...O,C.name,"chart_2"],{form:pe}),x=N.default.useWatch([...O,C.name,"name"],{form:pe}),y=N.default.useWatch([...O,C.name,"question_type"],{form:pe}),L=(0,z.useMemo)(()=>{const B=[],M=[];return m==null||m.forEach(W=>{B.push(W==null?void 0:W.x_axis),M.push(W==null?void 0:W.y_axis)}),{tooltip:{},grid:{left:"7%",right:"5%",bottom:"15%",top:"15%",containLabel:!0},xAxis:{type:"category",data:[...B||[],[4,5,6,7,8].includes(y)?"\u5206\u6570\u533A\u95F4":"\u7B54\u5BF9\u9898\u6570\uFF08\u5355\u4F4D\uFF1A\u9898\uFF09"],axisTick:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666",interval:0}},yAxis:{name:"\u4EBA\u6570\uFF08\u5355\u4F4D\uFF1A\u4EBA\uFF09",nameTextStyle:{color:"#666",padding:[0,0,10,0]},type:"value",splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666"}},series:[{data:M,barMaxWidth:"40px",itemStyle:{color:"#A2BEFF",borderColor:"#165DFF"},type:"bar"}]}},[m]),te=(0,z.useMemo)(()=>{const B=[],M=[];return u==null||u.forEach(W=>{B.push(W==null?void 0:W.x_axis),M.push(Math.round((W==null?void 0:W.y_axis)*1e4)/100)}),{tooltip:{},grid:{left:"5%",right:"5%",bottom:"7%",containLabel:!0},xAxis:{type:"category",data:[...B||[],"\u9898\u76EE"],axisTick:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666",interval:0,formatter:(W,V)=>W!=="\u9898\u76EE"?`${V+1}
{subtext|${(W.length>6?W==null?void 0:W.slice(0,6):W).split("").join(`
`)}}`:W,rich:{subtext:{align:"center",color:"#666",lineHeight:15}}}},yAxis:{name:"\u5E73\u5747\u5F97\u5206",nameTextStyle:{color:"#666",padding:[0,0,10,0]},type:"value",splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666"}},series:[{data:M,barMaxWidth:"40px",itemStyle:{color:"#2EC25B"},type:"bar",label:{color:"#666",show:!0,position:"top",valueAnimation:!0,formatter:"{c}%"}}]}},[u]);return z.createElement(z.Fragment,null,z.createElement("div",{className:"text-500 font14 mb10"},a,".",x),z.createElement(N.default.Item,{name:[C.name,"content"]},z.createElement(Q.default.TextArea,{rows:3})),z.createElement("div",{className:"mt20"},z.createElement("div",{className:"font14 mb10"},"\u5B66\u5458\u7B54\u9898\u60C5\u51B5"),z.createElement(ye.Z,{className:"bg-white",style:{border:"1px solid #EBEBEB"},option:L})),z.createElement("div",{className:"mt20"},z.createElement("div",{className:"font14 mb10"},"\u5404\u5C0F\u9898\u7B54\u9898\u60C5\u51B5"),z.createElement(ye.Z,{className:"bg-white",style:{border:"1px solid #EBEBEB",height:331},option:te})))};He.Z=z.memo(H);const S=z.memo(({form:pe,index:a=1,data:C})=>{const O=(0,z.useMemo)(()=>{var u;const x=[],y=[];return(u=C==null?void 0:C.chart_1)==null||u.forEach(L=>{x.push(L==null?void 0:L.x_axis),y.push(L==null?void 0:L.y_axis)}),{tooltip:{},grid:{left:"5%",right:"5%",bottom:"15%",top:"20%",containLabel:!0},xAxis:{type:"category",data:[...x||[],[4,5,6,7,8].includes(C==null?void 0:C.question_type)?"\u5206\u6570\u533A\u95F4":"\u7B54\u5BF9\u9898\u6570\uFF08\u5355\u4F4D\uFF1A\u9898\uFF09"],axisTick:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666",interval:0}},yAxis:{name:"\u4EBA\u6570\uFF08\u5355\u4F4D\uFF1A\u4EBA\uFF09",nameTextStyle:{color:"#666",padding:[0,0,10,0]},type:"value",splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666"}},series:[{data:y,barMaxWidth:"40px",itemStyle:{color:"#A2BEFF",borderColor:"#165DFF"},type:"bar"}]}},[C==null?void 0:C.chart_1]),m=(0,z.useMemo)(()=>{var u;const x=[],y=[];return(u=C==null?void 0:C.chart_2)==null||u.forEach(L=>{x.push(L==null?void 0:L.x_axis),y.push(Math.round((L==null?void 0:L.y_axis)*1e4)/100)}),{tooltip:{},grid:{left:"5%",right:"5%",bottom:"7%",containLabel:!0},xAxis:{type:"category",data:[...x||[],"\u9898\u76EE"],axisTick:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666",interval:0,formatter:(L,te)=>L!=="\u9898\u76EE"?`${te+1}
{subtext|${(L.length>6?L==null?void 0:L.slice(0,6):L).split("").join(`
`)}}`:L,rich:{subtext:{align:"center",color:"#666",lineHeight:15}}}},yAxis:{name:"\u5E73\u5747\u5F97\u5206",nameTextStyle:{color:"#666",padding:[0,0,10,0]},type:"value",splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666"}},series:[{data:y,barMaxWidth:"40px",itemStyle:{color:"#2EC25B"},type:"bar",label:{color:"#666",show:!0,position:"top",valueAnimation:!0,formatter:"{c}%"}}]}},[C==null?void 0:C.chart_2]);return z.createElement("div",{className:"text-start pl10 pr10"},z.createElement("div",{className:"text-500 font14 mb10 c-black"},a,".",C==null?void 0:C.name),z.createElement("div",null,z.createElement(U.Z,{className:"font14 c-grey-333",value:C==null?void 0:C.content})),z.createElement("div",{className:"mt20"},z.createElement(ye.Z,{className:"bg-white",style:{background:"#F6F7F9"},option:O}),z.createElement("div",{className:"font14 mt10 text-center"},"\u56FE",a*2-1,"\xA0\xA0",C==null?void 0:C.name,"\u7B54\u9898\u5F97\u5206\u60C5\u51B5\u5206\u5E03")),z.createElement("div",{className:"mt20"},z.createElement(ye.Z,{className:"bg-white",style:{background:"#F6F7F9",height:331},option:m}),z.createElement("div",{className:"font14 mt10 text-center"},"\u56FE",a*2,"\xA0\xA0",C==null?void 0:C.name,"\u5404\u5C0F\u9898\u5F97\u5206\u7387")))})},83312:function(Gt,He,h){"use strict";h.d(He,{U:function(){return a}});var z=h(59301),N=Object.defineProperty,Q=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,H=(C,O,m)=>O in C?N(C,O,{enumerable:!0,configurable:!0,writable:!0,value:m}):C[O]=m,S=(C,O)=>{for(var m in O||(O={}))ye.call(O,m)&&H(C,m,O[m]);if(Q)for(var m of Q(O))U.call(O,m)&&H(C,m,O[m]);return C},pe=(C,O,m)=>new Promise((u,x)=>{var y=B=>{try{te(m.next(B))}catch(M){x(M)}},L=B=>{try{te(m.throw(B))}catch(M){x(M)}},te=B=>B.done?u(B.value):Promise.resolve(B.value).then(y,L);te((m=m.apply(C,O)).next())});function a(C,O){const[m,u]=(0,z.useState)(O),[x,y]=(0,z.useState)(!1),[L,te]=(0,z.useState)();return[m,x,(M,W=!1)=>pe(this,null,function*(){const V=W?O:S(S({},m),M);y(!0),u(V);const b=yield C(V);return y(!1),te(b),b}),L,te]}},24768:function(Gt,He,h){"use strict";h.d(He,{AL:function(){return V},Iy:function(){return O},Qv:function(){return x},ez:function(){return W},jb:function(){return m}});var z=h(32834),N=h.n(z),Q=h(11690),ye=h.n(Q);let U=1;function H(be,Ee){const xe=be.match(/^(\s+)(?:```)/);if(xe===null)return Ee;const ce=xe[1];return Ee.split(`
`).map(ee=>{const Z=ee.match(/^\s+/);if(Z===null)return ee;const[me]=Z;return me.length>=ce.length?ee.slice(ce.length):ee}).join(`
`)}let S=[],pe=["<ul>"];const a=new(N()).Renderer,C=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function O(){S.length=0,pe=["<ul>"]}const m={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function u(be,Ee,xe,ce){if(Ee>=be.length||be[Ee].level<=xe)return Ee;var ee=be[Ee];ce.push("<li><a href='#"+U+ee.anchor+"'>"+ee.text+"</a>"),Ee++;var Z=[];return Ee=u(be,Ee,ee.level,Z),Z.length>0&&(ce.push("<ul>"),Z.forEach(function(me){ce.push(me)}),ce.push("</ul>")),ce.push("</li>"),Ee=u(be,Ee,xe,ce),Ee}function x(){return u(S,0,0,pe),pe.push("</ul>"),pe.join("")}const y={heading(be){const Ee=C.exec(be);if(U+=1,Ee)return{type:"heading",raw:Ee[0],depth:Ee[1].length,text:Ee[2]}},fences(be){const Ee=this.rules.block.fences.exec(be);if(Ee){const xe=Ee[0];let ce=H(xe,Ee[3]||"");const ee=Ee[2]?Ee[2].trim():Ee[2];if(["latex","katex","math"].indexOf(ee)>=0){const Z=B(),me=ce;ce=Z,M[Z]={type:"block",expression:me}}return{type:"code",raw:xe,lang:ee,text:ce}}}},L=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let te=0;const B=()=>`__special_katext_id_${te++}__`;let M={};function W(){return M}function V(){te=0,M={}}function b(be){return be=be.replace(L,(Ee,xe)=>{const ce=B();return M[ce]={type:"inline",expression:xe},ce}),be}const T=a.listitem;a.listitem=function(be){return T(b(be))};const G=a.paragraph;a.paragraph=function(be){return G(b(be))};const j=a.tablecell;a.tablecell=function(be,Ee){return j(b(be),Ee)},a.code=function(be,Ee,xe){const ce=(Ee||"").match(/\S*/)[0];return ce?["latex","katex","math"].indexOf(ce)>=0?`<p class='editormd-tex'>${be}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ee}">${xe?be:(0,Q.escape)(be,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(xe?be:(0,Q.escape)(be,!0))+"</code></pre>"},a.heading=function(be,Ee,xe){let ce=this.options.headerPrefix+xe.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return S.push({anchor:ce,level:Ee,text:be}),"<h"+Ee+' id="'+U+ce+'">'+be+"</h"+Ee+">"},N().setOptions({silent:!0,gfm:!0,pedantic:!1}),N().use({tokenizer:y,renderer:a}),He.ZP=N()},36785:function(Gt,He,h){"use strict";h.d(He,{o2:function(){return U},yT:function(){return H}});var z=h(19127),N=h(33166);const Q=N.i.map(S=>`${S}-inverse`),ye=["success","processing","error","default","warning"];function U(S){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,z.Z)(Q),(0,z.Z)(N.i)).includes(S):N.i.includes(S)}function H(S){return ye.includes(S)}},50371:function(Gt,He){"use strict";function h(){const z=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let N=1;N<arguments.length;N++){const Q=N<0||arguments.length<=N?void 0:arguments[N];Q&&Object.keys(Q).forEach(ye=>{const U=Q[ye];U!==void 0&&(z[ye]=U)})}return z}He.Z=h},13845:function(Gt,He,h){"use strict";h.d(He,{F:function(){return z},Z:function(){return N}});function z(Q){return Q!=null&&Q===Q.window}function N(Q,ye){var U,H;if(typeof window=="undefined")return 0;const S=ye?"scrollTop":"scrollLeft";let pe=0;return z(Q)?pe=Q[ye?"pageYOffset":"pageXOffset"]:Q instanceof Document?pe=Q.documentElement[S]:(Q instanceof HTMLElement||Q)&&(pe=Q[S]),Q&&!z(Q)&&typeof pe!="number"&&(pe=(H=((U=Q.ownerDocument)!==null&&U!==void 0?U:Q).documentElement)===null||H===void 0?void 0:H[S]),pe}},56762:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return N}});var z=h(59301);function N(){const[,Q]=z.useReducer(ye=>ye+1,0);return Q}},79676:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return H}});var z=h(19447);function N(S,pe,a,C){if(C===!1)return{adjustX:!1,adjustY:!1};const O=C&&typeof C=="object"?C:{},m={};switch(S){case"top":case"bottom":m.shiftX=pe.dropdownArrowOffset*2+a;break;case"left":case"right":m.shiftY=pe.dropdownArrowOffsetVertical*2+a;break}const u=Object.assign(Object.assign({},m),O);return u.shiftX||(u.adjustX=!0),u.shiftY||(u.adjustY=!0),u}const Q={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},ye={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"]}},U=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function H(S){const{arrowWidth:pe,autoAdjustOverflow:a,arrowPointAtCenter:C,offset:O,borderRadius:m,visibleFirst:u}=S,x=pe/2,y={};return Object.keys(Q).forEach(L=>{const te=C&&ye[L]||Q[L],B=Object.assign(Object.assign({},te),{offset:[0,0]});switch(y[L]=B,U.has(L)&&(B.autoArrow=!1),L){case"top":case"topLeft":case"topRight":B.offset[1]=-x-O;break;case"bottom":case"bottomLeft":case"bottomRight":B.offset[1]=x+O;break;case"left":case"leftTop":case"leftBottom":B.offset[0]=-x-O;break;case"right":case"rightTop":case"rightBottom":B.offset[0]=x+O;break}const M=(0,z.fS)({contentRadius:m,limitVerticalRadius:!0});if(C)switch(L){case"topLeft":case"bottomLeft":B.offset[0]=-M.dropdownArrowOffset-x;break;case"topRight":case"bottomRight":B.offset[0]=M.dropdownArrowOffset+x;break;case"leftTop":case"rightTop":B.offset[1]=-M.dropdownArrowOffset-x;break;case"leftBottom":case"rightBottom":B.offset[1]=M.dropdownArrowOffset+x;break}B.overflow=N(L,M,pe,a),u&&(B.htmlRegion="visibleFirst")}),y}},68031:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return ye}});var z=h(16089);function N(U,H,S,pe){const a=S-H;return U/=pe/2,U<1?a/2*U*U*U+H:a/2*((U-=2)*U*U+2)+H}var Q=h(13845);function ye(U){let H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:S=()=>window,callback:pe,duration:a=450}=H,C=S(),O=(0,Q.Z)(C,!0),m=Date.now(),u=()=>{const y=Date.now()-m,L=N(y>a?a:y,O,U,a);(0,Q.F)(C)?C.scrollTo(window.pageXOffset,L):C instanceof Document||C.constructor.name==="HTMLDocument"?C.documentElement.scrollTop=L:C.scrollTop=L,y<a?(0,z.Z)(u):typeof pe=="function"&&pe()};(0,z.Z)(u)}},19080:function(Gt,He,h){"use strict";h.d(He,{F:function(){return U},Z:function(){return ye}});var z=h(92310),N=h.n(z);const Q=null;function ye(H,S,pe){return N()({[`${H}-status-success`]:S==="success",[`${H}-status-warning`]:S==="warning",[`${H}-status-error`]:S==="error",[`${H}-status-validating`]:S==="validating",[`${H}-has-feedback`]:pe})}const U=(H,S)=>S||H},66104:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return me}});var z=h(92310),N=h.n(z),Q=h(11592),ye=h(26112),U=h(59301),H=h(92343),S=h(36355),pe=h(84105),a=h(91857);const C=P=>{let{children:se}=P;const{getPrefixCls:X}=U.useContext(S.E_),v=X("breadcrumb");return U.createElement("li",{className:`${v}-separator`,"aria-hidden":"true"},se===""?se:se||"/")};C.__ANT_BREADCRUMB_SEPARATOR=!0;var O=C,m=function(P,se){var X={};for(var v in P)Object.prototype.hasOwnProperty.call(P,v)&&se.indexOf(v)<0&&(X[v]=P[v]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,v=Object.getOwnPropertySymbols(P);E<v.length;E++)se.indexOf(v[E])<0&&Object.prototype.propertyIsEnumerable.call(P,v[E])&&(X[v[E]]=P[v[E]]);return X};function u(P,se){if(P.title===void 0||P.title===null)return null;const X=Object.keys(se).join("|");return typeof P.title=="object"?P.title:String(P.title).replace(new RegExp(`:(${X})`,"g"),(v,E)=>se[E]||v)}function x(P,se,X,v){if(X==null)return null;const{className:E,onClick:K}=se,de=m(se,["className","onClick"]),Ne=Object.assign(Object.assign({},(0,ye.Z)(de,{data:!0,aria:!0})),{onClick:K});return v!==void 0?U.createElement("a",Object.assign({},Ne,{className:N()(`${P}-link`,E),href:v}),X):U.createElement("span",Object.assign({},Ne,{className:N()(`${P}-link`,E)}),X)}function y(P,se){return(v,E,K,de,Ne)=>{if(se)return se(v,E,K,de);const Ue=u(v,E);return x(P,v,Ue,Ne)}}var L=function(P,se){var X={};for(var v in P)Object.prototype.hasOwnProperty.call(P,v)&&se.indexOf(v)<0&&(X[v]=P[v]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,v=Object.getOwnPropertySymbols(P);E<v.length;E++)se.indexOf(v[E])<0&&Object.prototype.propertyIsEnumerable.call(P,v[E])&&(X[v[E]]=P[v[E]]);return X};const te=P=>{const{prefixCls:se,separator:X="/",children:v,menu:E,overlay:K,dropdownProps:de,href:Ne}=P,ke=(Ve=>{if(E||K){const ht=Object.assign({},de);if(E){const pt=E||{},{items:st}=pt,Ft=L(pt,["items"]);ht.menu=Object.assign(Object.assign({},Ft),{items:st==null?void 0:st.map((Yt,en)=>{var{key:Ut,title:ut,label:Et,path:oe}=Yt,ve=L(Yt,["key","title","label","path"]);let ie=Et!=null?Et:ut;return oe&&(ie=U.createElement("a",{href:`${Ne}${oe}`},ie)),Object.assign(Object.assign({},ve),{key:Ut!=null?Ut:en,label:ie})})})}else K&&(ht.overlay=K);return U.createElement(a.Z,Object.assign({placement:"bottom"},ht),U.createElement("span",{className:`${se}-overlay-link`},Ve,U.createElement(pe.Z,null)))}return Ve})(v);return ke!=null?U.createElement(U.Fragment,null,U.createElement("li",null,ke),X&&U.createElement(O,null,X)):null},B=P=>{const{prefixCls:se,children:X,href:v}=P,E=L(P,["prefixCls","children","href"]),{getPrefixCls:K}=U.useContext(S.E_),de=K("breadcrumb",se);return U.createElement(te,Object.assign({},E,{prefixCls:de}),x(de,E,X,v))};B.__ANT_BREADCRUMB_ITEM=!0;var M=B,W=h(17313),V=h(83116),b=h(37613);const T=P=>{const{componentCls:se,iconCls:X}=P;return{[se]:Object.assign(Object.assign({},(0,W.Wf)(P)),{color:P.itemColor,fontSize:P.fontSize,[X]:{fontSize:P.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:P.linkColor,transition:`color ${P.motionDurationMid}`,padding:`0 ${P.paddingXXS}px`,borderRadius:P.borderRadiusSM,height:P.lineHeight*P.fontSize,display:"inline-block",marginInline:-P.marginXXS,"&:hover":{color:P.linkHoverColor,backgroundColor:P.colorBgTextHover}},(0,W.Qy)(P)),"li:last-child":{color:P.lastItemColor},[`${se}-separator`]:{marginInline:P.separatorMargin,color:P.separatorColor},[`${se}-link`]:{[`
> ${X} + span,
> ${X} + a
`]:{marginInlineStart:P.marginXXS}},[`${se}-overlay-link`]:{borderRadius:P.borderRadiusSM,height:P.lineHeight*P.fontSize,display:"inline-block",padding:`0 ${P.paddingXXS}px`,marginInline:-P.marginXXS,[`> ${X}`]:{marginInlineStart:P.marginXXS,fontSize:P.fontSizeIcon},"&:hover":{color:P.linkHoverColor,backgroundColor:P.colorBgTextHover,a:{color:P.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${P.componentCls}-rtl`]:{direction:"rtl"}})}};var G=(0,V.Z)("Breadcrumb",P=>{const se=(0,b.TS)(P,{});return[T(se)]},P=>({itemColor:P.colorTextDescription,lastItemColor:P.colorText,iconFontSize:P.fontSize,linkColor:P.colorTextDescription,linkHoverColor:P.colorText,separatorColor:P.colorTextDescription,separatorMargin:P.marginXS})),j=function(P,se){var X={};for(var v in P)Object.prototype.hasOwnProperty.call(P,v)&&se.indexOf(v)<0&&(X[v]=P[v]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,v=Object.getOwnPropertySymbols(P);E<v.length;E++)se.indexOf(v[E])<0&&Object.prototype.propertyIsEnumerable.call(P,v[E])&&(X[v[E]]=P[v[E]]);return X};function be(P){const{breadcrumbName:se,children:X}=P,v=j(P,["breadcrumbName","children"]),E=Object.assign({title:se},v);return X&&(E.menu={items:X.map(K=>{var{breadcrumbName:de}=K,Ne=j(K,["breadcrumbName"]);return Object.assign(Object.assign({},Ne),{title:de})})}),E}function Ee(P,se){return(0,U.useMemo)(()=>P||(se?se.map(be):null),[P,se])}var xe=function(P,se){var X={};for(var v in P)Object.prototype.hasOwnProperty.call(P,v)&&se.indexOf(v)<0&&(X[v]=P[v]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,v=Object.getOwnPropertySymbols(P);E<v.length;E++)se.indexOf(v[E])<0&&Object.prototype.propertyIsEnumerable.call(P,v[E])&&(X[v[E]]=P[v[E]]);return X};const ce=(P,se)=>{if(se===void 0)return se;let X=(se||"").replace(/^\//,"");return Object.keys(P).forEach(v=>{X=X.replace(`:${v}`,P[v])}),X},ee=P=>{const{prefixCls:se,separator:X="/",style:v,className:E,rootClassName:K,routes:de,items:Ne,children:Ue,itemRender:ke,params:Ve={}}=P,ht=xe(P,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:pt,direction:st,breadcrumb:Ft}=U.useContext(S.E_);let Yt;const en=pt("breadcrumb",se),[Ut,ut]=G(en),Et=Ee(Ne,de),oe=y(en,ke);if(Et&&Et.length>0){const Y=[],Ae=Ne||de;Yt=Et.map(($,R)=>{const{path:I,key:le,type:re,menu:J,overlay:Ce,onClick:We,className:Pe,separator:Be,dropdownProps:Xe}=$,rt=ce(Ve,I);rt!==void 0&&Y.push(rt);const Ye=le!=null?le:R;if(re==="separator")return U.createElement(O,{key:Ye},Be);const vt={},wt=R===Et.length-1;J?vt.menu=J:Ce&&(vt.overlay=Ce);let{href:mt}=$;return Y.length&&rt!==void 0&&(mt=`#/${Y.join("/")}`),U.createElement(te,Object.assign({key:Ye},vt,(0,ye.Z)($,{data:!0,aria:!0}),{className:Pe,dropdownProps:Xe,href:mt,separator:wt?"":X,onClick:We,prefixCls:en}),oe($,Ve,Ae,Y,mt))})}else if(Ue){const Y=(0,Q.Z)(Ue).length;Yt=(0,Q.Z)(Ue).map((Ae,$)=>{if(!Ae)return Ae;const R=$===Y-1;return(0,H.Tm)(Ae,{separator:R?"":X,key:$})})}const ve=N()(en,Ft==null?void 0:Ft.className,{[`${en}-rtl`]:st==="rtl"},E,K,ut),ie=Object.assign(Object.assign({},Ft==null?void 0:Ft.style),v);return Ut(U.createElement("nav",Object.assign({className:ve,style:ie},ht),U.createElement("ol",null,Yt)))};ee.Item=M,ee.Separator=O;var Z=ee,me=Z},24905:function(Gt,He,h){"use strict";h.d(He,{default:function(){return G}});var z=h(92310),N=h.n(z),Q=h(5630),ye=h(59301),U=h(36355),H=h(1684),S=h(32441),a=ye.createContext(null),C=h(98447),O=h(14088),m=h(4572),u=function(j,be){var Ee={};for(var xe in j)Object.prototype.hasOwnProperty.call(j,xe)&&be.indexOf(xe)<0&&(Ee[xe]=j[xe]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,xe=Object.getOwnPropertySymbols(j);ce<xe.length;ce++)be.indexOf(xe[ce])<0&&Object.prototype.propertyIsEnumerable.call(j,xe[ce])&&(Ee[xe[ce]]=j[xe[ce]]);return Ee};const x=(j,be)=>{var Ee;const{prefixCls:xe,className:ce,rootClassName:ee,children:Z,indeterminate:me=!1,style:P,onMouseEnter:se,onMouseLeave:X,skipGroup:v=!1,disabled:E}=j,K=u(j,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:de,direction:Ne,checkbox:Ue}=ye.useContext(U.E_),ke=ye.useContext(a),{isFormItemInput:Ve}=ye.useContext(S.aM),ht=ye.useContext(H.Z),pt=(Ee=(ke==null?void 0:ke.disabled)||E)!==null&&Ee!==void 0?Ee:ht,st=ye.useRef(K.value);ye.useEffect(()=>{ke==null||ke.registerValue(K.value)},[]),ye.useEffect(()=>{if(!v)return K.value!==st.current&&(ke==null||ke.cancelValue(st.current),ke==null||ke.registerValue(K.value),st.current=K.value),()=>ke==null?void 0:ke.cancelValue(K.value)},[K.value]);const Ft=de("checkbox",xe),[Yt,en]=(0,C.ZP)(Ft),Ut=Object.assign({},K);ke&&!v&&(Ut.onChange=function(){K.onChange&&K.onChange.apply(K,arguments),ke.toggleOption&&ke.toggleOption({label:Z,value:K.value})},Ut.name=ke.name,Ut.checked=ke.value.includes(K.value));const ut=N()(`${Ft}-wrapper`,{[`${Ft}-rtl`]:Ne==="rtl",[`${Ft}-wrapper-checked`]:Ut.checked,[`${Ft}-wrapper-disabled`]:pt,[`${Ft}-wrapper-in-form-item`]:Ve},Ue==null?void 0:Ue.className,ce,ee,en),Et=N()({[`${Ft}-indeterminate`]:me},m.A,en),oe=me?"mixed":void 0;return Yt(ye.createElement(O.Z,{component:"Checkbox",disabled:pt},ye.createElement("label",{className:ut,style:Object.assign(Object.assign({},Ue==null?void 0:Ue.style),P),onMouseEnter:se,onMouseLeave:X},ye.createElement(Q.Z,Object.assign({"aria-checked":oe},Ut,{prefixCls:Ft,className:Et,disabled:pt,ref:be})),Z!==void 0&&ye.createElement("span",null,Z))))};var L=ye.forwardRef(x),te=h(19127),B=h(2738),M=function(j,be){var Ee={};for(var xe in j)Object.prototype.hasOwnProperty.call(j,xe)&&be.indexOf(xe)<0&&(Ee[xe]=j[xe]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,xe=Object.getOwnPropertySymbols(j);ce<xe.length;ce++)be.indexOf(xe[ce])<0&&Object.prototype.propertyIsEnumerable.call(j,xe[ce])&&(Ee[xe[ce]]=j[xe[ce]]);return Ee};const W=(j,be)=>{const{defaultValue:Ee,children:xe,options:ce=[],prefixCls:ee,className:Z,rootClassName:me,style:P,onChange:se}=j,X=M(j,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:v,direction:E}=ye.useContext(U.E_),[K,de]=ye.useState(X.value||Ee||[]),[Ne,Ue]=ye.useState([]);ye.useEffect(()=>{"value"in X&&de(X.value||[])},[X.value]);const ke=ye.useMemo(()=>ce.map(ve=>typeof ve=="string"||typeof ve=="number"?{label:ve,value:ve}:ve),[ce]),Ve=ve=>{Ue(ie=>ie.filter(Y=>Y!==ve))},ht=ve=>{Ue(ie=>[].concat((0,te.Z)(ie),[ve]))},pt=ve=>{const ie=K.indexOf(ve.value),Y=(0,te.Z)(K);ie===-1?Y.push(ve.value):Y.splice(ie,1),"value"in X||de(Y),se==null||se(Y.filter(Ae=>Ne.includes(Ae)).sort((Ae,$)=>{const R=ke.findIndex(le=>le.value===Ae),I=ke.findIndex(le=>le.value===$);return R-I}))},st=v("checkbox",ee),Ft=`${st}-group`,[Yt,en]=(0,C.ZP)(st),Ut=(0,B.Z)(X,["value","disabled"]),ut=ce.length?ke.map(ve=>ye.createElement(L,{prefixCls:st,key:ve.value.toString(),disabled:"disabled"in ve?ve.disabled:X.disabled,value:ve.value,checked:K.includes(ve.value),onChange:ve.onChange,className:`${Ft}-item`,style:ve.style,title:ve.title},ve.label)):xe,Et={toggleOption:pt,value:K,disabled:X.disabled,name:X.name,registerValue:ht,cancelValue:Ve},oe=N()(Ft,{[`${Ft}-rtl`]:E==="rtl"},Z,me,en);return Yt(ye.createElement("div",Object.assign({className:oe,style:P},Ut,{ref:be}),ye.createElement(a.Provider,{value:Et},ut)))},V=ye.forwardRef(W);var b=ye.memo(V);const T=L;T.Group=b,T.__ANT_CHECKBOX=!0;var G=T},98447:function(Gt,He,h){"use strict";h.d(He,{C2:function(){return U}});var z=h(17313),N=h(37613),Q=h(83116);const ye=H=>{const{checkboxCls:S}=H,pe=`${S}-wrapper`;return[{[`${S}-group`]:Object.assign(Object.assign({},(0,z.Wf)(H)),{display:"inline-flex",flexWrap:"wrap",columnGap:H.marginXS,[`> ${H.antCls}-row`]:{flex:1}}),[pe]:Object.assign(Object.assign({},(0,z.Wf)(H)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${pe}`]:{marginInlineStart:0},[`&${pe}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[S]:Object.assign(Object.assign({},(0,z.Wf)(H)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:H.borderRadiusSM,alignSelf:"center",[`${S}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${S}-inner`]:Object.assign({},(0,z.oN)(H))},[`${S}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:H.checkboxSize,height:H.checkboxSize,direction:"ltr",backgroundColor:H.colorBgContainer,border:`${H.lineWidth}px ${H.lineType} ${H.colorBorder}`,borderRadius:H.borderRadiusSM,borderCollapse:"separate",transition:`all ${H.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:H.checkboxSize/14*5,height:H.checkboxSize/14*8,border:`${H.lineWidthBold}px solid ${H.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${H.motionDurationFast} ${H.motionEaseInBack}, opacity ${H.motionDurationFast}`}},"& + span":{paddingInlineStart:H.paddingXS,paddingInlineEnd:H.paddingXS}})},{[`
${pe}:not(${pe}-disabled),
${S}:not(${S}-disabled)
`]:{[`&:hover ${S}-inner`]:{borderColor:H.colorPrimary}},[`${pe}:not(${pe}-disabled)`]:{[`&:hover ${S}-checked:not(${S}-disabled) ${S}-inner`]:{backgroundColor:H.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${S}-checked:not(${S}-disabled):after`]:{borderColor:H.colorPrimaryHover}}},{[`${S}-checked`]:{[`${S}-inner`]:{backgroundColor:H.colorPrimary,borderColor:H.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${H.motionDurationMid} ${H.motionEaseOutBack} ${H.motionDurationFast}`}}},[`
${pe}-checked:not(${pe}-disabled),
${S}-checked:not(${S}-disabled)
`]:{[`&:hover ${S}-inner`]:{backgroundColor:H.colorPrimaryHover,borderColor:"transparent"}}},{[S]:{"&-indeterminate":{[`${S}-inner`]:{backgroundColor:H.colorBgContainer,borderColor:H.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:H.fontSizeLG/2,height:H.fontSizeLG/2,backgroundColor:H.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${pe}-disabled`]:{cursor:"not-allowed"},[`${S}-disabled`]:{[`&, ${S}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${S}-inner`]:{background:H.colorBgContainerDisabled,borderColor:H.colorBorder,"&:after":{borderColor:H.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:H.colorTextDisabled},[`&${S}-indeterminate ${S}-inner::after`]:{background:H.colorTextDisabled}}}]};function U(H,S){const pe=(0,N.TS)(S,{checkboxCls:`.${H}`,checkboxSize:S.controlInteractiveSize});return[ye(pe)]}He.ZP=(0,Q.Z)("Checkbox",(H,S)=>{let{prefixCls:pe}=S;return[U(pe,H)]})},93891:function(Gt,He,h){"use strict";var z=h(59301),N=h(36355),Q=h(64165);const ye=U=>{const{componentName:H}=U,{getPrefixCls:S}=(0,z.useContext)(N.E_),pe=S("empty");switch(H){case"Table":case"List":return z.createElement(Q.Z,{image:Q.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return z.createElement(Q.Z,{image:Q.Z.PRESENTED_IMAGE_SIMPLE,className:`${pe}-small`});default:return z.createElement(Q.Z,null)}};He.Z=ye},91857:function(Gt,He,h){"use strict";var z=h(59301),N=h(38819),Q=h(92310),ye=h.n(Q),U=h(31561),H=h(70425),S=h(18929),pe=h(2738),a=h(79676),C=h(53487),O=h(92343),m=h(36355),u=h(20834),x=h(40875),y=h(88088),L=h(47211);const te=null,B=b=>{const{menu:T,arrow:G,prefixCls:j,children:be,trigger:Ee,disabled:xe,dropdownRender:ce,getPopupContainer:ee,overlayClassName:Z,rootClassName:me,open:P,onOpenChange:se,visible:X,onVisibleChange:v,mouseEnterDelay:E=.15,mouseLeaveDelay:K=.1,autoAdjustOverflow:de=!0,placement:Ne="",overlay:Ue,transitionName:ke}=b,{getPopupContainer:Ve,getPrefixCls:ht,direction:pt}=z.useContext(m.E_),st=z.useMemo(()=>{const J=ht();return ke!==void 0?ke:Ne.includes("top")?`${J}-slide-down`:`${J}-slide-up`},[ht,Ne,ke]),Ft=z.useMemo(()=>Ne?Ne.includes("Center")?Ne.slice(0,Ne.indexOf("Center")):Ne:pt==="rtl"?"bottomRight":"bottomLeft",[Ne,pt]),Yt=ht("dropdown",j),[en,Ut]=(0,L.Z)(Yt),[,ut]=(0,y.Z)(),Et=z.Children.only(be),oe=(0,O.Tm)(Et,{className:ye()(`${Yt}-trigger`,{[`${Yt}-rtl`]:pt==="rtl"},Et.props.className),disabled:xe}),ve=xe?[]:Ee;let ie;ve&&ve.includes("contextMenu")&&(ie=!0);const[Y,Ae]=(0,S.Z)(!1,{value:P!=null?P:X}),$=(0,H.useEvent)(J=>{se==null||se(J),v==null||v(J),Ae(J)}),R=ye()(Z,me,Ut,{[`${Yt}-rtl`]:pt==="rtl"}),I=(0,a.Z)({arrowPointAtCenter:typeof G=="object"&&G.pointAtCenter,autoAdjustOverflow:de,offset:ut.marginXXS,arrowWidth:G?ut.sizePopupArrow:0,borderRadius:ut.borderRadius}),le=z.useCallback(()=>{Ae(!1)},[]),re=()=>{let J;return T!=null&&T.items?J=z.createElement(u.default,Object.assign({},T)):typeof Ue=="function"?J=Ue():J=Ue,ce&&(J=ce(J)),J=z.Children.only(typeof J=="string"?z.createElement("span",null,J):J),z.createElement(x.J,{prefixCls:`${Yt}-menu`,expandIcon:z.createElement("span",{className:`${Yt}-menu-submenu-arrow`},z.createElement(N.Z,{className:`${Yt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:le,validator:Ce=>{let{mode:We}=Ce}},J)};return en(z.createElement(U.Z,Object.assign({alignPoint:ie},(0,pe.Z)(b,["rootClassName"]),{mouseEnterDelay:E,mouseLeaveDelay:K,visible:Y,builtinPlacements:I,arrow:!!G,overlayClassName:R,prefixCls:Yt,getPopupContainer:ee||Ve,transitionName:st,trigger:ve,overlay:re,placement:Ft,onVisibleChange:$}),oe))};function M(b){return Object.assign(Object.assign({},b),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const W=(0,C.Z)(B,"dropdown",b=>b,M),V=b=>z.createElement(W,Object.assign({},b),z.createElement("span",null));B._InternalPanelDoNotUseOrYouWillBeFired=V,He.Z=B},38854:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return y}});var z=h(91857),N=h(92310),Q=h.n(N),ye=h(59301),U=h(18785),H=h(3113),S=h(36355),pe=h(81327),a=h(33234),C=h(47211),O=function(L,te){var B={};for(var M in L)Object.prototype.hasOwnProperty.call(L,M)&&te.indexOf(M)<0&&(B[M]=L[M]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,M=Object.getOwnPropertySymbols(L);W<M.length;W++)te.indexOf(M[W])<0&&Object.prototype.propertyIsEnumerable.call(L,M[W])&&(B[M[W]]=L[M[W]]);return B};const m=L=>{const{getPopupContainer:te,getPrefixCls:B,direction:M}=ye.useContext(S.E_),{prefixCls:W,type:V="default",danger:b,disabled:T,loading:G,onClick:j,htmlType:be,children:Ee,className:xe,menu:ce,arrow:ee,autoFocus:Z,overlay:me,trigger:P,align:se,open:X,onOpenChange:v,placement:E,getPopupContainer:K,href:de,icon:Ne=ye.createElement(U.Z,null),title:Ue,buttonsRender:ke=re=>re,mouseEnterDelay:Ve,mouseLeaveDelay:ht,overlayClassName:pt,overlayStyle:st,destroyPopupOnHide:Ft,dropdownRender:Yt}=L,en=O(L,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),Ut=B("dropdown",W),ut=`${Ut}-button`,[Et,oe]=(0,C.Z)(Ut),ve={menu:ce,arrow:ee,autoFocus:Z,align:se,disabled:T,trigger:T?[]:P,onOpenChange:v,getPopupContainer:K||te,mouseEnterDelay:Ve,mouseLeaveDelay:ht,overlayClassName:pt,overlayStyle:st,destroyPopupOnHide:Ft,dropdownRender:Yt},{compactSize:ie,compactItemClassnames:Y}=(0,a.ri)(Ut,M),Ae=Q()(ut,Y,xe,oe);"overlay"in L&&(ve.overlay=me),"open"in L&&(ve.open=X),"placement"in L?ve.placement=E:ve.placement=M==="rtl"?"bottomLeft":"bottomRight";const $=ye.createElement(H.ZP,{type:V,danger:b,disabled:T,loading:G,onClick:j,htmlType:be,href:de,title:Ue},Ee),R=ye.createElement(H.ZP,{type:V,danger:b,icon:Ne}),[I,le]=ke([$,R]);return Et(ye.createElement(pe.Z.Compact,Object.assign({className:Ae,size:ie,block:!0},en),I,ye.createElement(z.Z,Object.assign({},ve),le)))};m.__ANT_BUTTON=!0;var u=m;const x=z.Z;x.Button=u;var y=x},47211:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return O}});var z=h(17313),N=h(13826),Q=h(92899),ye=h(29878),U=h(19447),H=h(83116),S=h(37613),a=m=>{const{componentCls:u,menuCls:x,colorError:y,colorTextLightSolid:L}=m,te=`${x}-item`;return{[`${u}, ${u}-menu-submenu`]:{[`${x} ${te}`]:{[`&${te}-danger:not(${te}-disabled)`]:{color:y,"&:hover":{color:L,backgroundColor:y}}}}}};const C=m=>{const{componentCls:u,menuCls:x,zIndexPopup:y,dropdownArrowDistance:L,sizePopupArrow:te,antCls:B,iconCls:M,motionDurationMid:W,dropdownPaddingVertical:V,fontSize:b,dropdownEdgeChildPadding:T,colorTextDisabled:G,fontSizeIcon:j,controlPaddingHorizontal:be,colorBgElevated:Ee}=m;return[{[u]:Object.assign(Object.assign({},(0,z.Wf)(m)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:y,display:"block","&::before":{position:"absolute",insetBlock:-L+te/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${B}-btn`]:{[`& > ${M}-down, & > ${B}-btn-icon > ${M}-down`]:{fontSize:j}},[`${u}-wrap`]:{position:"relative",[`${B}-btn > ${M}-down`]:{fontSize:j},[`${M}-down::before`]:{transition:`transform ${W}`}},[`${u}-wrap-open`]:{[`${M}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${B}-slide-down-enter${B}-slide-down-enter-active${u}-placement-bottomLeft,
&${B}-slide-down-appear${B}-slide-down-appear-active${u}-placement-bottomLeft,
&${B}-slide-down-enter${B}-slide-down-enter-active${u}-placement-bottom,
&${B}-slide-down-appear${B}-slide-down-appear-active${u}-placement-bottom,
&${B}-slide-down-enter${B}-slide-down-enter-active${u}-placement-bottomRight,
&${B}-slide-down-appear${B}-slide-down-appear-active${u}-placement-bottomRight`]:{animationName:N.fJ},[`&${B}-slide-up-enter${B}-slide-up-enter-active${u}-placement-topLeft,
&${B}-slide-up-appear${B}-slide-up-appear-active${u}-placement-topLeft,
&${B}-slide-up-enter${B}-slide-up-enter-active${u}-placement-top,
&${B}-slide-up-appear${B}-slide-up-appear-active${u}-placement-top,
&${B}-slide-up-enter${B}-slide-up-enter-active${u}-placement-topRight,
&${B}-slide-up-appear${B}-slide-up-appear-active${u}-placement-topRight`]:{animationName:N.Qt},[`&${B}-slide-down-leave${B}-slide-down-leave-active${u}-placement-bottomLeft,
&${B}-slide-down-leave${B}-slide-down-leave-active${u}-placement-bottom,
&${B}-slide-down-leave${B}-slide-down-leave-active${u}-placement-bottomRight`]:{animationName:N.Uw},[`&${B}-slide-up-leave${B}-slide-up-leave-active${u}-placement-topLeft,
&${B}-slide-up-leave${B}-slide-up-leave-active${u}-placement-top,
&${B}-slide-up-leave${B}-slide-up-leave-active${u}-placement-topRight`]:{animationName:N.ly}})},(0,U.ZP)(m,{colorBg:Ee,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${u} ${x}`]:{position:"relative",margin:0},[`${x}-submenu-popup`]:{position:"absolute",zIndex:y,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${u}, ${u}-menu-submenu`]:{[x]:Object.assign(Object.assign({padding:T,listStyleType:"none",backgroundColor:Ee,backgroundClip:"padding-box",borderRadius:m.borderRadiusLG,outline:"none",boxShadow:m.boxShadowSecondary},(0,z.Qy)(m)),{[`${x}-item-group-title`]:{padding:`${V}px ${be}px`,color:m.colorTextDescription,transition:`all ${W}`},[`${x}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${x}-item-icon`]:{minWidth:b,marginInlineEnd:m.marginXS,fontSize:m.fontSizeSM},[`${x}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${W}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${x}-item, ${x}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${V}px ${be}px`,color:m.colorText,fontWeight:"normal",fontSize:b,lineHeight:m.lineHeight,cursor:"pointer",transition:`all ${W}`,borderRadius:m.borderRadiusSM,"&:hover, &-active":{backgroundColor:m.controlItemBgHover}},(0,z.Qy)(m)),{"&-selected":{color:m.colorPrimary,backgroundColor:m.controlItemBgActive,"&:hover, &-active":{backgroundColor:m.controlItemBgActiveHover}},"&-disabled":{color:G,cursor:"not-allowed","&:hover":{color:G,backgroundColor:Ee,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${m.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:m.colorSplit},[`${u}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:m.paddingXS,[`${u}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:m.colorTextDescription,fontSize:j,fontStyle:"normal"}}}),[`${x}-item-group-list`]:{margin:`0 ${m.marginXS}px`,padding:0,listStyle:"none"},[`${x}-submenu-title`]:{paddingInlineEnd:be+m.fontSizeSM},[`${x}-submenu-vertical`]:{position:"relative"},[`${x}-submenu${x}-submenu-disabled ${u}-menu-submenu-title`]:{[`&, ${u}-menu-submenu-arrow-icon`]:{color:G,backgroundColor:Ee,cursor:"not-allowed"}},[`${x}-submenu-selected ${u}-menu-submenu-title`]:{color:m.colorPrimary}})}},[(0,N.oN)(m,"slide-up"),(0,N.oN)(m,"slide-down"),(0,Q.Fm)(m,"move-up"),(0,Q.Fm)(m,"move-down"),(0,ye._y)(m,"zoom-big")]]};var O=(0,H.Z)("Dropdown",(m,u)=>{let{rootPrefixCls:x}=u;const{marginXXS:y,sizePopupArrow:L,controlHeight:te,fontSize:B,lineHeight:M,paddingXXS:W,componentCls:V,borderRadiusLG:b}=m,T=(te-B*M)/2,{dropdownArrowOffset:G}=(0,U.fS)({contentRadius:b}),j=(0,S.TS)(m,{menuCls:`${V}-menu`,rootPrefixCls:x,dropdownArrowDistance:L/2+y,dropdownArrowOffset:G,dropdownPaddingVertical:T,dropdownEdgeChildPadding:W});return[C(j),a(j)]},m=>({zIndexPopup:m.zIndexPopupBase+50}))},64165:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return W}});var z=h(92310),N=h.n(z),Q=h(59301),ye=h(36355),U=h(9763),H=h(64993),S=h(88088),a=()=>{const[,V]=(0,S.Z)(),T=new H.C(V.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Q.createElement("svg",{style:T,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Q.createElement("g",{fill:"none",fillRule:"evenodd"},Q.createElement("g",{transform:"translate(24 31.67)"},Q.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Q.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),Q.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),Q.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),Q.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),Q.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),Q.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Q.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Q.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},O=()=>{const[,V]=(0,S.Z)(),{colorFill:b,colorFillTertiary:T,colorFillQuaternary:G,colorBgContainer:j}=V,{borderColor:be,shadowColor:Ee,contentColor:xe}=(0,Q.useMemo)(()=>({borderColor:new H.C(b).onBackground(j).toHexShortString(),shadowColor:new H.C(T).onBackground(j).toHexShortString(),contentColor:new H.C(G).onBackground(j).toHexShortString()}),[b,T,G,j]);return Q.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Q.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Q.createElement("ellipse",{fill:Ee,cx:"32",cy:"33",rx:"32",ry:"7"}),Q.createElement("g",{fillRule:"nonzero",stroke:be},Q.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),Q.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:xe}))))},m=h(83116),u=h(37613);const x=V=>{const{componentCls:b,margin:T,marginXS:G,marginXL:j,fontSize:be,lineHeight:Ee}=V;return{[b]:{marginInline:G,fontSize:be,lineHeight:Ee,textAlign:"center",[`${b}-image`]:{height:V.emptyImgHeight,marginBottom:G,opacity:V.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${b}-description`]:{color:V.colorText},[`${b}-footer`]:{marginTop:T},"&-normal":{marginBlock:j,color:V.colorTextDisabled,[`${b}-description`]:{color:V.colorTextDisabled},[`${b}-image`]:{height:V.emptyImgHeightMD}},"&-small":{marginBlock:G,color:V.colorTextDisabled,[`${b}-image`]:{height:V.emptyImgHeightSM}}}}};var y=(0,m.Z)("Empty",V=>{const{componentCls:b,controlHeightLG:T}=V,G=(0,u.TS)(V,{emptyImgCls:`${b}-img`,emptyImgHeight:T*2.5,emptyImgHeightMD:T,emptyImgHeightSM:T*.875});return[x(G)]}),L=function(V,b){var T={};for(var G in V)Object.prototype.hasOwnProperty.call(V,G)&&b.indexOf(G)<0&&(T[G]=V[G]);if(V!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,G=Object.getOwnPropertySymbols(V);j<G.length;j++)b.indexOf(G[j])<0&&Object.prototype.propertyIsEnumerable.call(V,G[j])&&(T[G[j]]=V[G[j]]);return T};const te=Q.createElement(a,null),B=Q.createElement(O,null),M=V=>{var{className:b,rootClassName:T,prefixCls:G,image:j=te,description:be,children:Ee,imageStyle:xe,style:ce}=V,ee=L(V,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Z,direction:me,empty:P}=Q.useContext(ye.E_),se=Z("empty",G),[X,v]=y(se),[E]=(0,U.Z)("Empty"),K=typeof be!="undefined"?be:E==null?void 0:E.description,de=typeof K=="string"?K:"empty";let Ne=null;return typeof j=="string"?Ne=Q.createElement("img",{alt:de,src:j}):Ne=j,X(Q.createElement("div",Object.assign({className:N()(v,se,P==null?void 0:P.className,{[`${se}-normal`]:j===B,[`${se}-rtl`]:me==="rtl"},b,T),style:Object.assign(Object.assign({},P==null?void 0:P.style),ce)},ee),Q.createElement("div",{className:`${se}-image`,style:xe},Ne),K&&Q.createElement("div",{className:`${se}-description`},K),Ee&&Q.createElement("div",{className:`${se}-footer`},Ee)))};M.PRESENTED_IMAGE_DEFAULT=te,M.PRESENTED_IMAGE_SIMPLE=B;var W=M},78241:function(Gt,He,h){"use strict";h.d(He,{default:function(){return vn}});var z=h(19127),N=h(92310),Q=h.n(N),ye=h(77900),U=h(59301),H=h(62892),S=h(32441);function pe(Je){const[It,zt]=U.useState(Je);return U.useEffect(()=>{const Ke=setTimeout(()=>{zt(Je)},Je.length?0:10);return()=>{clearTimeout(Ke)}},[Je]),It}var a=h(17313),C=h(29878),O=h(8378),m=h(37613),u=h(83116),y=Je=>{const{componentCls:It}=Je,zt=`${It}-show-help`,Ke=`${It}-show-help-item`;return{[zt]:{transition:`opacity ${Je.motionDurationSlow} ${Je.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Ke]:{overflow:"hidden",transition:`height ${Je.motionDurationSlow} ${Je.motionEaseInOut},
opacity ${Je.motionDurationSlow} ${Je.motionEaseInOut},
transform ${Je.motionDurationSlow} ${Je.motionEaseInOut} !important`,[`&${Ke}-appear, &${Ke}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Ke}-leave-active`]:{transform:"translateY(-5px)"}}}}};const L=Je=>({legend:{display:"block",width:"100%",marginBottom:Je.marginLG,padding:0,color:Je.colorTextDescription,fontSize:Je.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Je.lineWidth}px ${Je.lineType} ${Je.colorBorder}`},label:{fontSize:Je.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 ${Je.controlOutlineWidth}px ${Je.controlOutline}`},output:{display:"block",paddingTop:15,color:Je.colorText,fontSize:Je.fontSize,lineHeight:Je.lineHeight}}),te=(Je,It)=>{const{formItemCls:zt}=Je;return{[zt]:{[`${zt}-label > label`]:{height:It},[`${zt}-control-input`]:{minHeight:It}}}},B=Je=>{const{componentCls:It}=Je;return{[Je.componentCls]:Object.assign(Object.assign(Object.assign({},(0,a.Wf)(Je)),L(Je)),{[`${It}-text`]:{display:"inline-block",paddingInlineEnd:Je.paddingSM},"&-small":Object.assign({},te(Je,Je.controlHeightSM)),"&-large":Object.assign({},te(Je,Je.controlHeightLG))})}},M=Je=>{const{formItemCls:It,iconCls:zt,componentCls:Ke,rootPrefixCls:Oe,labelRequiredMarkColor:bt,labelColor:St,labelFontSize:qt,labelHeight:Wt,labelColonMarginInlineStart:on,labelColonMarginInlineEnd:Xt,itemMarginBottom:hn}=Je;return{[It]:Object.assign(Object.assign({},(0,a.Wf)(Je)),{marginBottom:hn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden.${Oe}-row`]:{display:"none"},"&-has-warning":{[`${It}-split`]:{color:Je.colorError}},"&-has-error":{[`${It}-split`]:{color:Je.colorWarning}},[`${It}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Je.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Wt,color:St,fontSize:qt,[`> ${zt}`]:{fontSize:Je.fontSize,verticalAlign:"top"},[`&${It}-required:not(${It}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Je.marginXXS,color:bt,fontSize:Je.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Ke}-hide-required-mark &`]:{display:"none"}},[`${It}-optional`]:{display:"inline-block",marginInlineStart:Je.marginXXS,color:Je.colorTextDescription,[`${Ke}-hide-required-mark &`]:{display:"none"}},[`${It}-tooltip`]:{color:Je.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Je.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:on,marginInlineEnd:Xt},[`&${It}-no-colon::after`]:{content:'"\\a0"'}}},[`${It}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Oe}-col-'"]):not([class*="' ${Oe}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Je.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[It]:{"&-explain, &-extra":{clear:"both",color:Je.colorTextDescription,fontSize:Je.fontSize,lineHeight:Je.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Je.controlHeightSM,transition:`color ${Je.motionDurationMid} ${Je.motionEaseOut}`},"&-explain":{"&-error":{color:Je.colorError},"&-warning":{color:Je.colorWarning}}},[`&-with-help ${It}-explain`]:{height:"auto",opacity:1},[`${It}-feedback-icon`]:{fontSize:Je.fontSize,textAlign:"center",visibility:"visible",animationName:C.kr,animationDuration:Je.motionDurationMid,animationTimingFunction:Je.motionEaseOutBack,pointerEvents:"none","&-success":{color:Je.colorSuccess},"&-error":{color:Je.colorError},"&-warning":{color:Je.colorWarning},"&-validating":{color:Je.colorPrimary}}})}},W=Je=>{const{componentCls:It,formItemCls:zt}=Je;return{[`${It}-horizontal`]:{[`${zt}-label`]:{flexGrow:0},[`${zt}-control`]:{flex:"1 1 0",minWidth:0},[`${zt}-label[class$='-24'], ${zt}-label[class*='-24 ']`]:{[`& + ${zt}-control`]:{minWidth:"unset"}}}}},V=Je=>{const{componentCls:It,formItemCls:zt}=Je;return{[`${It}-inline`]:{display:"flex",flexWrap:"wrap",[zt]:{flex:"none",marginInlineEnd:Je.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${zt}-label,
> ${zt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${zt}-label`]:{flex:"none"},[`${It}-text`]:{display:"inline-block"},[`${zt}-has-feedback`]:{display:"inline-block"}}}}},b=Je=>({padding:Je.verticalLabelPadding,margin:Je.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),T=Je=>{const{componentCls:It,formItemCls:zt,rootPrefixCls:Ke}=Je;return{[`${zt} ${zt}-label`]:b(Je),[It]:{[zt]:{flexWrap:"wrap",[`${zt}-label, ${zt}-control`]:{[`&:not([class*=" ${Ke}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},G=Je=>{const{componentCls:It,formItemCls:zt,rootPrefixCls:Ke}=Je;return{[`${It}-vertical`]:{[zt]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${It}-item-control`]:{width:"100%"}}},[`${It}-vertical ${zt}-label,
.${Ke}-col-24${zt}-label,
.${Ke}-col-xl-24${zt}-label`]:b(Je),[`@media (max-width: ${Je.screenXSMax}px)`]:[T(Je),{[It]:{[`.${Ke}-col-xs-24${zt}-label`]:b(Je)}}],[`@media (max-width: ${Je.screenSMMax}px)`]:{[It]:{[`.${Ke}-col-sm-24${zt}-label`]:b(Je)}},[`@media (max-width: ${Je.screenMDMax}px)`]:{[It]:{[`.${Ke}-col-md-24${zt}-label`]:b(Je)}},[`@media (max-width: ${Je.screenLGMax}px)`]:{[It]:{[`.${Ke}-col-lg-24${zt}-label`]:b(Je)}}}},j=(Je,It)=>(0,m.TS)(Je,{formItemCls:`${Je.componentCls}-item`,rootPrefixCls:It});var be=(0,u.Z)("Form",(Je,It)=>{let{rootPrefixCls:zt}=It;const Ke=j(Je,zt);return[B(Ke),M(Ke),y(Ke),W(Ke),V(Ke),G(Ke),(0,O.Z)(Ke),C.kr]},Je=>({labelRequiredMarkColor:Je.colorError,labelColor:Je.colorTextHeading,labelFontSize:Je.fontSize,labelHeight:Je.controlHeight,labelColonMarginInlineStart:Je.marginXXS/2,labelColonMarginInlineEnd:Je.marginXS,itemMarginBottom:Je.marginLG,verticalLabelPadding:`0 0 ${Je.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Ee=[];function xe(Je,It,zt){let Ke=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Je=="string"?Je:`${It}-${Ke}`,error:Je,errorStatus:zt}}var ee=Je=>{let{help:It,helpStatus:zt,errors:Ke=Ee,warnings:Oe=Ee,className:bt,fieldId:St,onVisibleChanged:qt}=Je;const{prefixCls:Wt}=U.useContext(S.Rk),on=`${Wt}-item-explain`,[,Xt]=be(Wt),hn=(0,U.useMemo)(()=>(0,H.Z)(Wt),[Wt]),An=pe(Ke),$t=pe(Oe),Rt=U.useMemo(()=>It!=null?[xe(It,"help",zt)]:[].concat((0,z.Z)(An.map((tn,cn)=>xe(tn,"error","error",cn))),(0,z.Z)($t.map((tn,cn)=>xe(tn,"warning","warning",cn)))),[It,zt,An,$t]),an={};return St&&(an.id=`${St}_help`),U.createElement(ye.default,{motionDeadline:hn.motionDeadline,motionName:`${Wt}-show-help`,visible:!!Rt.length,onVisibleChanged:qt},tn=>{const{className:cn,style:bn}=tn;return U.createElement("div",Object.assign({},an,{className:Q()(on,cn,bt,Xt),style:bn,role:"alert"}),U.createElement(ye.CSSMotionList,Object.assign({keys:Rt},(0,H.Z)(Wt),{motionName:`${Wt}-show-help-item`,component:!1}),tr=>{const{key:Mn,error:Qt,errorStatus:ct,className:ft,style:Tt}=tr;return U.createElement("div",{key:Mn,className:Q()(ft,{[`${on}-${ct}`]:ct}),style:Tt},Qt)}))})},Z=h(95013),me=h(36355),P=h(1684),se=h(52946),X=h(19716),v=h(16722);const E=["parentNode"],K="form_item";function de(Je){return Je===void 0||Je===!1?[]:Array.isArray(Je)?Je:[Je]}function Ne(Je,It){if(!Je.length)return;const zt=Je.join("_");return It?`${It}_${zt}`:E.includes(zt)?`${K}_${zt}`:zt}function Ue(Je,It,zt,Ke,Oe,bt){let St=Ke;return bt!==void 0?St=bt:zt.validating?St="validating":Je.length?St="error":It.length?St="warning":(zt.touched||Oe&&zt.validated)&&(St="success"),St}function ke(Je){return de(Je).join("_")}function Ve(Je){const[It]=(0,Z.useForm)(),zt=U.useRef({}),Ke=U.useMemo(()=>Je!=null?Je:Object.assign(Object.assign({},It),{__INTERNAL__:{itemRef:Oe=>bt=>{const St=ke(Oe);bt?zt.current[St]=bt:delete zt.current[St]}},scrollToField:function(Oe){let bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const St=de(Oe),qt=Ne(St,Ke.__INTERNAL__.name),Wt=qt?document.getElementById(qt):null;Wt&&(0,v.Z)(Wt,Object.assign({scrollMode:"if-needed",block:"nearest"},bt))},getFieldInstance:Oe=>{const bt=ke(Oe);return zt.current[bt]}}),[Je,It]);return[Ke]}var ht=h(28726),pt=function(Je,It){var zt={};for(var Ke in Je)Object.prototype.hasOwnProperty.call(Je,Ke)&&It.indexOf(Ke)<0&&(zt[Ke]=Je[Ke]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Ke=Object.getOwnPropertySymbols(Je);Oe<Ke.length;Oe++)It.indexOf(Ke[Oe])<0&&Object.prototype.propertyIsEnumerable.call(Je,Ke[Oe])&&(zt[Ke[Oe]]=Je[Ke[Oe]]);return zt};const st=(Je,It)=>{const zt=U.useContext(P.Z),{getPrefixCls:Ke,direction:Oe,form:bt}=U.useContext(me.E_),{prefixCls:St,className:qt,rootClassName:Wt,size:on,disabled:Xt=zt,form:hn,colon:An,labelAlign:$t,labelWrap:Rt,labelCol:an,wrapperCol:tn,hideRequiredMark:cn,layout:bn="horizontal",scrollToFirstError:tr,requiredMark:Mn,onFinishFailed:Qt,name:ct,style:ft,feedbackIcons:Tt}=Je,Nt=pt(Je,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Dt=(0,X.Z)(on),Ht=U.useContext(ht.Z),Bt=(0,U.useMemo)(()=>Mn!==void 0?Mn:bt&&bt.requiredMark!==void 0?bt.requiredMark:!cn,[cn,Mn,bt]),dn=An!=null?An:bt==null?void 0:bt.colon,xn=Ke("form",St),[Rn,Qn]=be(xn),nr=Q()(xn,`${xn}-${bn}`,{[`${xn}-hide-required-mark`]:Bt===!1,[`${xn}-rtl`]:Oe==="rtl",[`${xn}-${Dt}`]:Dt},Qn,bt==null?void 0:bt.className,qt,Wt),[ar]=Ve(hn),{__INTERNAL__:_n}=ar;_n.name=ct;const yn=(0,U.useMemo)(()=>({name:ct,labelAlign:$t,labelCol:an,labelWrap:Rt,wrapperCol:tn,vertical:bn==="vertical",colon:dn,requiredMark:Bt,itemRef:_n.itemRef,form:ar,feedbackIcons:Tt}),[ct,$t,an,tn,bn,dn,Bt,ar,Tt]);U.useImperativeHandle(It,()=>ar);const gr=(Tr,Jn)=>{if(Tr){let or={block:"nearest"};typeof Tr=="object"&&(or=Tr),ar.scrollToField(Jn,or)}},Gn=Tr=>{if(Qt==null||Qt(Tr),Tr.errorFields.length){const Jn=Tr.errorFields[0].name;if(tr!==void 0){gr(tr,Jn);return}bt&&bt.scrollToFirstError!==void 0&&gr(bt.scrollToFirstError,Jn)}};return Rn(U.createElement(P.n,{disabled:Xt},U.createElement(se.q,{size:Dt},U.createElement(S.RV,Object.assign({},{validateMessages:Ht}),U.createElement(S.q3.Provider,{value:yn},U.createElement(Z.default,Object.assign({id:ct},Nt,{name:ct,onFinishFailed:Gn,form:ar,style:Object.assign(Object.assign({},bt==null?void 0:bt.style),ft),className:nr})))))))};var Yt=U.forwardRef(st),en=h(41799),Ut=h(8654),ut=h(92343),Et=h(11592);function oe(Je){if(typeof Je=="function")return Je;const It=(0,Et.Z)(Je);return It.length<=1?It[0]:It}const ve=()=>{const{status:Je,errors:It=[],warnings:zt=[]}=(0,U.useContext)(S.aM);return{status:Je,errors:It,warnings:zt}};ve.Context=S.aM;var ie=ve,Y=h(16089);function Ae(Je){const[It,zt]=U.useState(Je),Ke=(0,U.useRef)(null),Oe=(0,U.useRef)([]),bt=(0,U.useRef)(!1);U.useEffect(()=>(bt.current=!1,()=>{bt.current=!0,Y.Z.cancel(Ke.current),Ke.current=null}),[]);function St(qt){bt.current||(Ke.current===null&&(Oe.current=[],Ke.current=(0,Y.Z)(()=>{Ke.current=null,zt(Wt=>{let on=Wt;return Oe.current.forEach(Xt=>{on=Xt(on)}),on})})),Oe.current.push(qt))}return[It,St]}function $(){const{itemRef:Je}=U.useContext(S.q3),It=U.useRef({});function zt(Ke,Oe){const bt=Oe&&typeof Oe=="object"&&Oe.ref,St=Ke.join("_");return(It.current.name!==St||It.current.originRef!==bt)&&(It.current.name=St,It.current.originRef=bt,It.current.ref=(0,Ut.sQ)(Je(Ke),bt)),It.current.ref}return zt}var R=h(29194),I=h(34280),le=h(2738),re=h(27382),J=h(37028);const Ce=Je=>{const{formItemCls:It}=Je;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${It}-control`]:{display:"flex"}}}};var We=(0,u.b)(["Form","item-item"],(Je,It)=>{let{rootPrefixCls:zt}=It;const Ke=j(Je,zt);return[Ce(Ke)]}),Be=Je=>{const{prefixCls:It,status:zt,wrapperCol:Ke,children:Oe,errors:bt,warnings:St,_internalItemRender:qt,extra:Wt,help:on,fieldId:Xt,marginBottom:hn,onErrorVisibleChanged:An}=Je,$t=`${It}-item`,Rt=U.useContext(S.q3),an=Ke||Rt.wrapperCol||{},tn=Q()(`${$t}-control`,an.className),cn=U.useMemo(()=>Object.assign({},Rt),[Rt]);delete cn.labelCol,delete cn.wrapperCol;const bn=U.createElement("div",{className:`${$t}-control-input`},U.createElement("div",{className:`${$t}-control-input-content`},Oe)),tr=U.useMemo(()=>({prefixCls:It,status:zt}),[It,zt]),Mn=hn!==null||bt.length||St.length?U.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},U.createElement(S.Rk.Provider,{value:tr},U.createElement(ee,{fieldId:Xt,errors:bt,warnings:St,help:on,helpStatus:zt,className:`${$t}-explain-connected`,onVisibleChanged:An})),!!hn&&U.createElement("div",{style:{width:0,height:hn}})):null,Qt={};Xt&&(Qt.id=`${Xt}_extra`);const ct=Wt?U.createElement("div",Object.assign({},Qt,{className:`${$t}-extra`}),Wt):null,ft=qt&&qt.mark==="pro_table_render"&&qt.render?qt.render(Je,{input:bn,errorList:Mn,extra:ct}):U.createElement(U.Fragment,null,bn,Mn,ct);return U.createElement(S.q3.Provider,{value:cn},U.createElement(J.Z,Object.assign({},an,{className:tn}),ft),U.createElement(We,{prefixCls:It}))},Xe=h(61485),rt=h(31724),Ye=h(9763),vt=h(6848),wt=function(Je,It){var zt={};for(var Ke in Je)Object.prototype.hasOwnProperty.call(Je,Ke)&&It.indexOf(Ke)<0&&(zt[Ke]=Je[Ke]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Ke=Object.getOwnPropertySymbols(Je);Oe<Ke.length;Oe++)It.indexOf(Ke[Oe])<0&&Object.prototype.propertyIsEnumerable.call(Je,Ke[Oe])&&(zt[Ke[Oe]]=Je[Ke[Oe]]);return zt};function mt(Je){return Je?typeof Je=="object"&&!U.isValidElement(Je)?Je:{title:Je}:null}var At=Je=>{let{prefixCls:It,label:zt,htmlFor:Ke,labelCol:Oe,labelAlign:bt,colon:St,required:qt,requiredMark:Wt,tooltip:on}=Je;var Xt;const[hn]=(0,Ye.Z)("Form"),{vertical:An,labelAlign:$t,labelCol:Rt,labelWrap:an,colon:tn}=U.useContext(S.q3);if(!zt)return null;const cn=Oe||Rt||{},bn=bt||$t,tr=`${It}-item-label`,Mn=Q()(tr,bn==="left"&&`${tr}-left`,cn.className,{[`${tr}-wrap`]:!!an});let Qt=zt;const ct=St===!0||tn!==!1&&St!==!1;ct&&!An&&typeof zt=="string"&&zt.trim()!==""&&(Qt=zt.replace(/[:|]\s*$/,""));const Tt=mt(on);if(Tt){const{icon:Bt=U.createElement(Xe.Z,null)}=Tt,dn=wt(Tt,["icon"]),xn=U.createElement(vt.Z,Object.assign({},dn),U.cloneElement(Bt,{className:`${It}-item-tooltip`,title:""}));Qt=U.createElement(U.Fragment,null,Qt,xn)}const Nt=Wt==="optional",Dt=typeof Wt=="function";Dt?Qt=Wt(Qt,{required:!!qt}):Nt&&!qt&&(Qt=U.createElement(U.Fragment,null,Qt,U.createElement("span",{className:`${It}-item-optional`,title:""},(hn==null?void 0:hn.optional)||((Xt=rt.Z.Form)===null||Xt===void 0?void 0:Xt.optional))));const Ht=Q()({[`${It}-item-required`]:qt,[`${It}-item-required-mark-optional`]:Nt||Dt,[`${It}-item-no-colon`]:!ct});return U.createElement(J.Z,Object.assign({},cn,{className:Mn}),U.createElement("label",{htmlFor:Ke,className:Ht,title:typeof zt=="string"?zt:""},Qt))},w=h(29679),A=h(19248),gt=h(96512),fe=h(58617);const Me={success:w.Z,warning:gt.Z,error:A.Z,validating:fe.Z};function Dn(Je){let{children:It,errors:zt,warnings:Ke,hasFeedback:Oe,validateStatus:bt,prefixCls:St,meta:qt,noStyle:Wt}=Je;const on=`${St}-item`,{feedbackIcons:Xt}=U.useContext(S.q3),hn=Ue(zt,Ke,qt,null,!!Oe,bt),{isFormItemInput:An,status:$t}=U.useContext(S.aM),Rt=U.useMemo(()=>{var an;let tn;if(Oe){const tr=Oe!==!0&&Oe.icons||Xt,Mn=hn&&((an=tr==null?void 0:tr({status:hn,errors:zt,warnings:Ke}))===null||an===void 0?void 0:an[hn]),Qt=hn&&Me[hn];tn=Mn!==!1&&Qt?U.createElement("span",{className:Q()(`${on}-feedback-icon`,`${on}-feedback-icon-${hn}`)},Mn||U.createElement(Qt,null)):null}let cn=!0,bn=hn||"";return Wt&&(cn=An,bn=(hn!=null?hn:$t)||""),{status:bn,errors:zt,warnings:Ke,hasFeedback:!!Oe,feedbackIcon:tn,isFormItemInput:cn}},[hn,Oe,Wt,An,$t]);return U.createElement(S.aM.Provider,{value:Rt},It)}var je=function(Je,It){var zt={};for(var Ke in Je)Object.prototype.hasOwnProperty.call(Je,Ke)&&It.indexOf(Ke)<0&&(zt[Ke]=Je[Ke]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Ke=Object.getOwnPropertySymbols(Je);Oe<Ke.length;Oe++)It.indexOf(Ke[Oe])<0&&Object.prototype.propertyIsEnumerable.call(Je,Ke[Oe])&&(zt[Ke[Oe]]=Je[Ke[Oe]]);return zt};function nt(Je){const{prefixCls:It,className:zt,rootClassName:Ke,style:Oe,help:bt,errors:St,warnings:qt,validateStatus:Wt,meta:on,hasFeedback:Xt,hidden:hn,children:An,fieldId:$t,required:Rt,isRequired:an,onSubItemMetaChange:tn}=Je,cn=je(Je,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),bn=`${It}-item`,{requiredMark:tr}=U.useContext(S.q3),Mn=U.useRef(null),Qt=pe(St),ct=pe(qt),ft=bt!=null,Tt=!!(ft||St.length||qt.length),Nt=!!Mn.current&&(0,R.Z)(Mn.current),[Dt,Ht]=U.useState(null);(0,I.Z)(()=>{if(Tt&&Mn.current){const Qn=getComputedStyle(Mn.current);Ht(parseInt(Qn.marginBottom,10))}},[Tt,Nt]);const Bt=Qn=>{Qn||Ht(null)},xn=function(){let Qn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const nr=Qn?Qt:on.errors,ar=Qn?ct:on.warnings;return Ue(nr,ar,on,"",!!Xt,Wt)}(),Rn=Q()(bn,zt,Ke,{[`${bn}-with-help`]:ft||Qt.length||ct.length,[`${bn}-has-feedback`]:xn&&Xt,[`${bn}-has-success`]:xn==="success",[`${bn}-has-warning`]:xn==="warning",[`${bn}-has-error`]:xn==="error",[`${bn}-is-validating`]:xn==="validating",[`${bn}-hidden`]:hn});return U.createElement("div",{className:Rn,style:Oe,ref:Mn},U.createElement(re.Z,Object.assign({className:`${bn}-row`},(0,le.Z)(cn,["_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"])),U.createElement(At,Object.assign({htmlFor:$t},Je,{requiredMark:tr,required:Rt!=null?Rt:an,prefixCls:It})),U.createElement(Be,Object.assign({},Je,on,{errors:Qt,warnings:ct,prefixCls:It,status:xn,help:bt,marginBottom:Dt,onErrorVisibleChanged:Bt}),U.createElement(S.qI.Provider,{value:tn},U.createElement(Dn,{prefixCls:It,meta:on,errors:on.errors,warnings:on.warnings,hasFeedback:Xt,validateStatus:xn},An)))),!!Dt&&U.createElement("div",{className:`${bn}-margin-offset`,style:{marginBottom:-Dt}}))}const tt="__SPLIT__",_e=null,De=U.memo(Je=>{let{children:It}=Je;return It},(Je,It)=>Je.value===It.value&&Je.update===It.update&&Je.childProps.length===It.childProps.length&&Je.childProps.every((zt,Ke)=>zt===It.childProps[Ke]));function Fe(Je){return Je!=null}function Qe(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function ge(Je){const{name:It,noStyle:zt,className:Ke,dependencies:Oe,prefixCls:bt,shouldUpdate:St,rules:qt,children:Wt,required:on,label:Xt,messageVariables:hn,trigger:An="onChange",validateTrigger:$t,hidden:Rt,help:an}=Je,{getPrefixCls:tn}=U.useContext(me.E_),{name:cn}=U.useContext(S.q3),bn=oe(Wt),tr=typeof bn=="function",Mn=U.useContext(S.qI),{validateTrigger:Qt}=U.useContext(Z.FieldContext),ct=$t!==void 0?$t:Qt,ft=Fe(It),Tt=tn("form",bt),[Nt,Dt]=be(Tt),Ht=U.useContext(Z.ListContext),Bt=U.useRef(),[dn,xn]=Ae({}),[Rn,Qn]=(0,en.Z)(()=>Qe()),nr=Jn=>{const or=Ht==null?void 0:Ht.getKey(Jn.name);if(Qn(Jn.destroy?Qe():Jn,!0),zt&&an!==!1&&Mn){let yr=Jn.name;if(Jn.destroy)yr=Bt.current||yr;else if(or!==void 0){const[rr,Ir]=or;yr=[rr].concat((0,z.Z)(Ir)),Bt.current=yr}Mn(Jn,yr)}},ar=(Jn,or)=>{xn(yr=>{const rr=Object.assign({},yr),Jr=[].concat((0,z.Z)(Jn.name.slice(0,-1)),(0,z.Z)(or)).join(tt);return Jn.destroy?delete rr[Jr]:rr[Jr]=Jn,rr})},[_n,yn]=U.useMemo(()=>{const Jn=(0,z.Z)(Rn.errors),or=(0,z.Z)(Rn.warnings);return Object.values(dn).forEach(yr=>{Jn.push.apply(Jn,(0,z.Z)(yr.errors||[])),or.push.apply(or,(0,z.Z)(yr.warnings||[]))}),[Jn,or]},[dn,Rn.errors,Rn.warnings]),gr=$();function Gn(Jn,or,yr){return zt&&!Rt?U.createElement(Dn,{prefixCls:Tt,hasFeedback:Je.hasFeedback,validateStatus:Je.validateStatus,meta:Rn,errors:_n,warnings:yn,noStyle:!0},Jn):U.createElement(nt,Object.assign({key:"row"},Je,{className:Q()(Ke,Dt),prefixCls:Tt,fieldId:or,isRequired:yr,errors:_n,warnings:yn,meta:Rn,onSubItemMetaChange:ar}),Jn)}if(!ft&&!tr&&!Oe)return Nt(Gn(bn));let Tr={};return typeof Xt=="string"?Tr.label=Xt:It&&(Tr.label=String(It)),hn&&(Tr=Object.assign(Object.assign({},Tr),hn)),Nt(U.createElement(Z.Field,Object.assign({},Je,{messageVariables:Tr,trigger:An,validateTrigger:ct,onMetaChange:nr}),(Jn,or,yr)=>{const rr=de(It).length&&or?or.name:[],Ir=Ne(rr,cn),Jr=on!==void 0?on:!!(qt&&qt.some(it=>{if(it&&typeof it=="object"&&it.required&&!it.warningOnly)return!0;if(typeof it=="function"){const Fn=it(yr);return Fn&&Fn.required&&!Fn.warningOnly}return!1})),Xn=Object.assign({},Jn);let En=null;if(Array.isArray(bn)&&ft)En=bn;else if(!(tr&&(!(St||Oe)||ft))){if(!(Oe&&!tr&&!ft))if((0,ut.l$)(bn)){const it=Object.assign(Object.assign({},bn.props),Xn);if(it.id||(it.id=Ir),an||_n.length>0||yn.length>0||Je.extra){const Cr=[];(an||_n.length>0)&&Cr.push(`${Ir}_help`),Je.extra&&Cr.push(`${Ir}_extra`),it["aria-describedby"]=Cr.join(" ")}_n.length>0&&(it["aria-invalid"]="true"),Jr&&(it["aria-required"]="true"),(0,Ut.Yr)(bn)&&(it.ref=gr(rr,bn)),new Set([].concat((0,z.Z)(de(An)),(0,z.Z)(de(ct)))).forEach(Cr=>{it[Cr]=function(){for(var Dr,Mr,Ur,vr,Kr,zn=arguments.length,Sn=new Array(zn),qn=0;qn<zn;qn++)Sn[qn]=arguments[qn];(Ur=Xn[Cr])===null||Ur===void 0||(Dr=Ur).call.apply(Dr,[Xn].concat(Sn)),(Kr=(vr=bn.props)[Cr])===null||Kr===void 0||(Mr=Kr).call.apply(Mr,[vr].concat(Sn))}});const lr=[it["aria-required"],it["aria-invalid"],it["aria-describedby"]];En=U.createElement(De,{value:Xn[Je.valuePropName||"value"],update:bn,childProps:lr},(0,ut.Tm)(bn,it))}else tr&&(St||Oe)&&!ft?En=bn(yr):En=bn}return Gn(En,Ir,Jr)}))}const Vt=ge;Vt.useStatus=ie;var Ze=Vt,gn=function(Je,It){var zt={};for(var Ke in Je)Object.prototype.hasOwnProperty.call(Je,Ke)&&It.indexOf(Ke)<0&&(zt[Ke]=Je[Ke]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Ke=Object.getOwnPropertySymbols(Je);Oe<Ke.length;Oe++)It.indexOf(Ke[Oe])<0&&Object.prototype.propertyIsEnumerable.call(Je,Ke[Oe])&&(zt[Ke[Oe]]=Je[Ke[Oe]]);return zt},Hn=Je=>{var{prefixCls:It,children:zt}=Je,Ke=gn(Je,["prefixCls","children"]);const{getPrefixCls:Oe}=U.useContext(me.E_),bt=Oe("form",It),St=U.useMemo(()=>({prefixCls:bt,status:"error"}),[bt]);return U.createElement(Z.List,Object.assign({},Ke),(qt,Wt,on)=>U.createElement(S.Rk.Provider,{value:St},zt(qt.map(Xt=>Object.assign(Object.assign({},Xt),{fieldKey:Xt.key})),Wt,{errors:on.errors,warnings:on.warnings})))};function mr(){const{form:Je}=(0,U.useContext)(S.q3);return Je}const rn=Yt;rn.Item=Ze,rn.List=Hn,rn.ErrorList=ee,rn.useForm=Ve,rn.useFormInstance=mr,rn.useWatch=Z.useWatch,rn.Provider=S.RV,rn.create=()=>{};var vn=rn},8628:function(Gt,He,h){"use strict";var z=h(59301),N=h(34280),Q=h(56762),ye=h(69507);function U(){let H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const S=(0,z.useRef)({}),pe=(0,Q.Z)(),a=(0,ye.ZP)();return(0,N.Z)(()=>{const C=a.subscribe(O=>{S.current=O,H&&pe()});return()=>a.unsubscribe(C)},[]),S.current}He.Z=U},9432:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return M},n:function(){return te}});var z=h(19248),N=h(92310),Q=h.n(N),ye=h(93681),U=h(8654),H=h(59301),S=h(19080),pe=h(36355),a=h(1684),C=h(19716),O=h(32441),m=h(33234),u=h(59412),x=h(9937);function y(W){return!!(W.prefix||W.suffix||W.allowClear)}var L=function(W,V){var b={};for(var T in W)Object.prototype.hasOwnProperty.call(W,T)&&V.indexOf(T)<0&&(b[T]=W[T]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,T=Object.getOwnPropertySymbols(W);G<T.length;G++)V.indexOf(T[G])<0&&Object.prototype.propertyIsEnumerable.call(W,T[G])&&(b[T[G]]=W[T[G]]);return b};function te(W,V){if(!W)return;W.focus(V);const{cursor:b}=V||{};if(b){const T=W.value.length;switch(b){case"start":W.setSelectionRange(0,0);break;case"end":W.setSelectionRange(T,T);break;default:W.setSelectionRange(0,T);break}}}var M=(0,H.forwardRef)((W,V)=>{var b;const{prefixCls:T,bordered:G=!0,status:j,size:be,disabled:Ee,onBlur:xe,onFocus:ce,suffix:ee,allowClear:Z,addonAfter:me,addonBefore:P,className:se,style:X,styles:v,rootClassName:E,onChange:K,classNames:de}=W,Ne=L(W,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Ue,direction:ke,input:Ve}=H.useContext(pe.E_),ht=Ue("input",T),pt=(0,H.useRef)(null),[st,Ft]=(0,x.ZP)(ht),{compactSize:Yt,compactItemClassnames:en}=(0,m.ri)(ht,ke),Ut=(0,C.Z)(We=>{var Pe;return(Pe=be!=null?be:Yt)!==null&&Pe!==void 0?Pe:We}),ut=H.useContext(a.Z),Et=Ee!=null?Ee:ut,{status:oe,hasFeedback:ve,feedbackIcon:ie}=(0,H.useContext)(O.aM),Y=(0,S.F)(oe,j),Ae=y(W)||!!ve,$=(0,H.useRef)(Ae);(0,H.useEffect)(()=>{var We;Ae&&$.current,$.current=Ae},[Ae]);const R=(0,u.Z)(pt,!0),I=We=>{R(),xe==null||xe(We)},le=We=>{R(),ce==null||ce(We)},re=We=>{R(),K==null||K(We)},J=(ve||ee)&&H.createElement(H.Fragment,null,ee,ve&&ie);let Ce;return typeof Z=="object"&&(Z!=null&&Z.clearIcon)?Ce=Z:Z&&(Ce={clearIcon:H.createElement(z.Z,null)}),st(H.createElement(ye.default,Object.assign({ref:(0,U.sQ)(V,pt),prefixCls:ht,autoComplete:Ve==null?void 0:Ve.autoComplete},Ne,{disabled:Et,onBlur:I,onFocus:le,style:Object.assign(Object.assign({},Ve==null?void 0:Ve.style),X),styles:Object.assign(Object.assign({},Ve==null?void 0:Ve.styles),v),suffix:J,allowClear:Ce,className:Q()(se,E,en,Ve==null?void 0:Ve.className),onChange:re,addonAfter:me&&H.createElement(m.BR,null,H.createElement(O.Ux,{override:!0,status:!0},me)),addonBefore:P&&H.createElement(m.BR,null,H.createElement(O.Ux,{override:!0,status:!0},P)),classNames:Object.assign(Object.assign(Object.assign({},de),Ve==null?void 0:Ve.classNames),{input:Q()({[`${ht}-sm`]:Ut==="small",[`${ht}-lg`]:Ut==="large",[`${ht}-rtl`]:ke==="rtl",[`${ht}-borderless`]:!G},!Ae&&(0,S.Z)(ht,Y),de==null?void 0:de.input,(b=Ve==null?void 0:Ve.classNames)===null||b===void 0?void 0:b.input,Ft)}),classes:{affixWrapper:Q()({[`${ht}-affix-wrapper-sm`]:Ut==="small",[`${ht}-affix-wrapper-lg`]:Ut==="large",[`${ht}-affix-wrapper-rtl`]:ke==="rtl",[`${ht}-affix-wrapper-borderless`]:!G},(0,S.Z)(`${ht}-affix-wrapper`,Y,ve),Ft),wrapper:Q()({[`${ht}-group-rtl`]:ke==="rtl"},Ft),group:Q()({[`${ht}-group-wrapper-sm`]:Ut==="small",[`${ht}-group-wrapper-lg`]:Ut==="large",[`${ht}-group-wrapper-rtl`]:ke==="rtl",[`${ht}-group-wrapper-disabled`]:Et},(0,S.Z)(`${ht}-group-wrapper`,Y,ve),Ft)}})))})},1643:function(Gt,He,h){"use strict";var z=h(19248),N=h(92310),Q=h.n(N),ye=h(9296),U=h(59301),H=h(19080),S=h(36355),pe=h(1684),a=h(19716),C=h(32441),O=h(9432),m=h(9937),u=function(y,L){var te={};for(var B in y)Object.prototype.hasOwnProperty.call(y,B)&&L.indexOf(B)<0&&(te[B]=y[B]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,B=Object.getOwnPropertySymbols(y);M<B.length;M++)L.indexOf(B[M])<0&&Object.prototype.propertyIsEnumerable.call(y,B[M])&&(te[B[M]]=y[B[M]]);return te};const x=(0,U.forwardRef)((y,L)=>{const{prefixCls:te,bordered:B=!0,size:M,disabled:W,status:V,allowClear:b,showCount:T,classNames:G,rootClassName:j,className:be}=y,Ee=u(y,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:xe,direction:ce}=U.useContext(S.E_),ee=(0,a.Z)(M),Z=U.useContext(pe.Z),me=W!=null?W:Z,{status:P,hasFeedback:se,feedbackIcon:X}=U.useContext(C.aM),v=(0,H.F)(P,V),E=U.useRef(null);U.useImperativeHandle(L,()=>{var ke;return{resizableTextArea:(ke=E.current)===null||ke===void 0?void 0:ke.resizableTextArea,focus:Ve=>{var ht,pt;(0,O.n)((pt=(ht=E.current)===null||ht===void 0?void 0:ht.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 K=xe("input",te);let de;typeof b=="object"&&(b!=null&&b.clearIcon)?de=b:b&&(de={clearIcon:U.createElement(z.Z,null)});const[Ne,Ue]=(0,m.ZP)(K);return Ne(U.createElement(ye.default,Object.assign({},Ee,{disabled:me,allowClear:de,className:Q()(be,j),classes:{affixWrapper:Q()(`${K}-textarea-affix-wrapper`,{[`${K}-affix-wrapper-rtl`]:ce==="rtl",[`${K}-affix-wrapper-borderless`]:!B,[`${K}-affix-wrapper-sm`]:ee==="small",[`${K}-affix-wrapper-lg`]:ee==="large",[`${K}-textarea-show-count`]:T},(0,H.Z)(`${K}-affix-wrapper`,v),Ue)},classNames:Object.assign(Object.assign({},G),{textarea:Q()({[`${K}-borderless`]:!B,[`${K}-sm`]:ee==="small",[`${K}-lg`]:ee==="large"},(0,H.Z)(K,v),Ue,G==null?void 0:G.textarea)}),prefixCls:K,suffix:se&&U.createElement("span",{className:`${K}-textarea-suffix`},X),showCount:T,ref:E})))});He.Z=x},59412:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return N}});var z=h(59301);function N(Q,ye){const U=(0,z.useRef)([]),H=()=>{U.current.push(setTimeout(()=>{var S,pe,a,C;!((S=Q.current)===null||S===void 0)&&S.input&&((pe=Q.current)===null||pe===void 0?void 0:pe.input.getAttribute("type"))==="password"&&(!((a=Q.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((C=Q.current)===null||C===void 0||C.input.removeAttribute("value"))}))};return(0,z.useEffect)(()=>(ye&&H(),()=>U.current.forEach(S=>{S&&clearTimeout(S)})),[]),H}},92832:function(Gt,He,h){"use strict";h.d(He,{default:function(){return ee}});var z=h(92310),N=h.n(z),Q=h(59301),ye=h(36355),U=h(32441),H=h(9937),pe=Z=>{const{getPrefixCls:me,direction:P}=(0,Q.useContext)(ye.E_),{prefixCls:se,className:X}=Z,v=me("input-group",se),E=me("input"),[K,de]=(0,H.ZP)(E),Ne=N()(v,{[`${v}-lg`]:Z.size==="large",[`${v}-sm`]:Z.size==="small",[`${v}-compact`]:Z.compact,[`${v}-rtl`]:P==="rtl"},de,X),Ue=(0,Q.useContext)(U.aM),ke=(0,Q.useMemo)(()=>Object.assign(Object.assign({},Ue),{isFormItemInput:!1}),[Ue]);return K(Q.createElement("span",{className:Ne,style:Z.style,onMouseEnter:Z.onMouseEnter,onMouseLeave:Z.onMouseLeave,onFocus:Z.onFocus,onBlur:Z.onBlur},Q.createElement(U.aM.Provider,{value:ke},Z.children)))},a=h(9432),C=h(73331),O=h(15277),m=h(2738),u=h(8654),x=h(59412),y=function(Z,me){var P={};for(var se in Z)Object.prototype.hasOwnProperty.call(Z,se)&&me.indexOf(se)<0&&(P[se]=Z[se]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,se=Object.getOwnPropertySymbols(Z);X<se.length;X++)me.indexOf(se[X])<0&&Object.prototype.propertyIsEnumerable.call(Z,se[X])&&(P[se[X]]=Z[se[X]]);return P};const L=Z=>Z?Q.createElement(O.Z,null):Q.createElement(C.Z,null),te={click:"onClick",hover:"onMouseOver"};var M=Q.forwardRef((Z,me)=>{const{visibilityToggle:P=!0}=Z,se=typeof P=="object"&&P.visible!==void 0,[X,v]=(0,Q.useState)(()=>se?P.visible:!1),E=(0,Q.useRef)(null);Q.useEffect(()=>{se&&v(P.visible)},[se,P]);const K=(0,x.Z)(E),de=()=>{const{disabled:Et}=Z;Et||(X&&K(),v(oe=>{var ve;const ie=!oe;return typeof P=="object"&&((ve=P.onVisibleChange)===null||ve===void 0||ve.call(P,ie)),ie}))},Ne=Et=>{const{action:oe="click",iconRender:ve=L}=Z,ie=te[oe]||"",Y=ve(X),Ae={[ie]:de,className:`${Et}-icon`,key:"passwordIcon",onMouseDown:$=>{$.preventDefault()},onMouseUp:$=>{$.preventDefault()}};return Q.cloneElement(Q.isValidElement(Y)?Y:Q.createElement("span",null,Y),Ae)},{className:Ue,prefixCls:ke,inputPrefixCls:Ve,size:ht}=Z,pt=y(Z,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:st}=Q.useContext(ye.E_),Ft=st("input",Ve),Yt=st("input-password",ke),en=P&&Ne(Yt),Ut=N()(Yt,Ue,{[`${Yt}-${ht}`]:!!ht}),ut=Object.assign(Object.assign({},(0,m.Z)(pt,["suffix","iconRender","visibilityToggle"])),{type:X?"text":"password",className:Ut,prefixCls:Ft,suffix:en});return ht&&(ut.size=ht),Q.createElement(a.Z,Object.assign({ref:(0,u.sQ)(me,E)},ut))}),W=h(47472),V=h(92343),b=h(3113),T=h(19716),G=h(33234),j=function(Z,me){var P={};for(var se in Z)Object.prototype.hasOwnProperty.call(Z,se)&&me.indexOf(se)<0&&(P[se]=Z[se]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,se=Object.getOwnPropertySymbols(Z);X<se.length;X++)me.indexOf(se[X])<0&&Object.prototype.propertyIsEnumerable.call(Z,se[X])&&(P[se[X]]=Z[se[X]]);return P},Ee=Q.forwardRef((Z,me)=>{const{prefixCls:P,inputPrefixCls:se,className:X,size:v,suffix:E,enterButton:K=!1,addonAfter:de,loading:Ne,disabled:Ue,onSearch:ke,onChange:Ve,onCompositionStart:ht,onCompositionEnd:pt}=Z,st=j(Z,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Ft,direction:Yt}=Q.useContext(ye.E_),en=Q.useRef(!1),Ut=Ft("input-search",P),ut=Ft("input",se),{compactSize:Et}=(0,G.ri)(Ut,Yt),oe=(0,T.Z)(Be=>{var Xe;return(Xe=v!=null?v:Et)!==null&&Xe!==void 0?Xe:Be}),ve=Q.useRef(null),ie=Be=>{Be&&Be.target&&Be.type==="click"&&ke&&ke(Be.target.value,Be,{source:"clear"}),Ve&&Ve(Be)},Y=Be=>{var Xe;document.activeElement===((Xe=ve.current)===null||Xe===void 0?void 0:Xe.input)&&Be.preventDefault()},Ae=Be=>{var Xe,rt;ke&&ke((rt=(Xe=ve.current)===null||Xe===void 0?void 0:Xe.input)===null||rt===void 0?void 0:rt.value,Be,{source:"input"})},$=Be=>{en.current||Ne||Ae(Be)},R=typeof K=="boolean"?Q.createElement(W.Z,null):null,I=`${Ut}-button`;let le;const re=K||{},J=re.type&&re.type.__ANT_BUTTON===!0;J||re.type==="button"?le=(0,V.Tm)(re,Object.assign({onMouseDown:Y,onClick:Be=>{var Xe,rt;(rt=(Xe=re==null?void 0:re.props)===null||Xe===void 0?void 0:Xe.onClick)===null||rt===void 0||rt.call(Xe,Be),Ae(Be)},key:"enterButton"},J?{className:I,size:oe}:{})):le=Q.createElement(b.ZP,{className:I,type:K?"primary":void 0,size:oe,disabled:Ue,key:"enterButton",onMouseDown:Y,onClick:Ae,loading:Ne,icon:R},K),de&&(le=[le,(0,V.Tm)(de,{key:"addonAfter"})]);const Ce=N()(Ut,{[`${Ut}-rtl`]:Yt==="rtl",[`${Ut}-${oe}`]:!!oe,[`${Ut}-with-button`]:!!K},X),We=Be=>{en.current=!0,ht==null||ht(Be)},Pe=Be=>{en.current=!1,pt==null||pt(Be)};return Q.createElement(a.Z,Object.assign({ref:(0,u.sQ)(ve,me),onPressEnter:$},st,{size:oe,onCompositionStart:We,onCompositionEnd:Pe,prefixCls:ut,addonAfter:le,suffix:E,onChange:ie,className:Ce,disabled:Ue}))}),xe=h(1643);const ce=a.Z;ce.Group=pe,ce.Search=Ee,ce.TextArea=xe.Z,ce.Password=M;var ee=ce},9937:function(Gt,He,h){"use strict";h.d(He,{M1:function(){return S},TM:function(){return V},Xy:function(){return pe},bi:function(){return O},e5:function(){return W},ik:function(){return m},nz:function(){return U},pU:function(){return H},s7:function(){return u},x0:function(){return C}});var z=h(17313),N=h(74207),Q=h(37613),ye=h(83116);const U=b=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:b,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),H=b=>({borderColor:b.hoverBorderColor}),S=b=>({borderColor:b.activeBorderColor,boxShadow:b.activeShadow,outline:0}),pe=b=>({color:b.colorTextDisabled,backgroundColor:b.colorBgContainerDisabled,borderColor:b.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},H((0,Q.TS)(b,{hoverBorderColor:b.colorBorder})))}),a=b=>{const{paddingBlockLG:T,fontSizeLG:G,lineHeightLG:j,borderRadiusLG:be,paddingInlineLG:Ee}=b;return{padding:`${T}px ${Ee}px`,fontSize:G,lineHeight:j,borderRadius:be}},C=b=>({padding:`${b.paddingBlockSM}px ${b.paddingInlineSM}px`,borderRadius:b.borderRadiusSM}),O=(b,T)=>{const{componentCls:G,colorError:j,colorWarning:be,errorActiveShadow:Ee,warningActiveShadow:xe,colorErrorBorderHover:ce,colorWarningBorderHover:ee}=b;return{[`&-status-error:not(${T}-disabled):not(${T}-borderless)${T}`]:{borderColor:j,"&:hover":{borderColor:ce},"&:focus, &-focused":Object.assign({},S((0,Q.TS)(b,{activeBorderColor:j,activeShadow:Ee}))),[`${G}-prefix, ${G}-suffix`]:{color:j}},[`&-status-warning:not(${T}-disabled):not(${T}-borderless)${T}`]:{borderColor:be,"&:hover":{borderColor:ee},"&:focus, &-focused":Object.assign({},S((0,Q.TS)(b,{activeBorderColor:be,activeShadow:xe}))),[`${G}-prefix, ${G}-suffix`]:{color:be}}}},m=b=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${b.paddingBlock}px ${b.paddingInline}px`,color:b.colorText,fontSize:b.fontSize,lineHeight:b.lineHeight,backgroundColor:b.colorBgContainer,backgroundImage:"none",borderWidth:b.lineWidth,borderStyle:b.lineType,borderColor:b.colorBorder,borderRadius:b.borderRadius,transition:`all ${b.motionDurationMid}`},U(b.colorTextPlaceholder)),{"&:hover":Object.assign({},H(b)),"&:focus, &-focused":Object.assign({},S(b)),"&-disabled, &[disabled]":Object.assign({},pe(b)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:b.controlHeight,lineHeight:b.lineHeight,verticalAlign:"bottom",transition:`all ${b.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},a(b)),"&-sm":Object.assign({},C(b)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),u=b=>{const{componentCls:T,antCls:G}=b;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:b.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${T}, &-lg > ${T}-group-addon`]:Object.assign({},a(b)),[`&-sm ${T}, &-sm > ${T}-group-addon`]:Object.assign({},C(b)),[`&-lg ${G}-select-single ${G}-select-selector`]:{height:b.controlHeightLG},[`&-sm ${G}-select-single ${G}-select-selector`]:{height:b.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 ${b.paddingInline}px`,color:b.colorText,fontWeight:"normal",fontSize:b.fontSize,textAlign:"center",backgroundColor:b.colorFillAlter,border:`${b.lineWidth}px ${b.lineType} ${b.colorBorder}`,borderRadius:b.borderRadius,transition:`all ${b.motionDurationSlow}`,lineHeight:1,[`${G}-select`]:{margin:`-${b.paddingBlock+1}px -${b.paddingInline}px`,[`&${G}-select-single:not(${G}-select-customize-input)`]:{[`${G}-select-selector`]:{backgroundColor:"inherit",border:`${b.lineWidth}px ${b.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${G}-select-selector`]:{color:b.colorPrimary}}},[`${G}-cascader-picker`]:{margin:`-9px -${b.paddingInline}px`,backgroundColor:"transparent",[`${G}-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,[`${G}-select ${G}-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,[`${G}-select ${G}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${T}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${T}-search &`]:{borderStartStartRadius:b.borderRadius,borderEndStartRadius:b.borderRadius}},[`&:not(:first-child), ${T}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${T}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,z.dF)()),{[`${T}-group-addon, ${T}-group-wrap, > ${T}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:b.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
& > ${T}-affix-wrapper,
& > ${T}-number-affix-wrapper,
& > ${G}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-b.lineWidth,borderInlineEndWidth:b.lineWidth},[`${T}`]:{float:"none"},[`& > ${G}-select > ${G}-select-selector,
& > ${G}-select-auto-complete ${T},
& > ${G}-cascader-picker ${T},
& > ${T}-group-wrapper ${T}`]:{borderInlineEndWidth:b.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${G}-select-focused`]:{zIndex:1},[`& > ${G}-select > ${G}-select-arrow`]:{zIndex:1},[`& > *:first-child,
& > ${G}-select:first-child > ${G}-select-selector,
& > ${G}-select-auto-complete:first-child ${T},
& > ${G}-cascader-picker:first-child ${T}`]:{borderStartStartRadius:b.borderRadius,borderEndStartRadius:b.borderRadius},[`& > *:last-child,
& > ${G}-select:last-child > ${G}-select-selector,
& > ${G}-cascader-picker:last-child ${T},
& > ${G}-cascader-picker-focused:last-child ${T}`]:{borderInlineEndWidth:b.lineWidth,borderStartEndRadius:b.borderRadius,borderEndEndRadius:b.borderRadius},[`& > ${G}-select-auto-complete ${T}`]:{verticalAlign:"top"},[`${T}-group-wrapper + ${T}-group-wrapper`]:{marginInlineStart:-b.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:b.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:b.borderRadius}}}})}},x=b=>{const{componentCls:T,controlHeightSM:G,lineWidth:j}=b,Ee=(G-j*2-16)/2;return{[T]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,z.Wf)(b)),m(b)),O(b,T)),{'&[type="color"]':{height:b.controlHeight,[`&${T}-lg`]:{height:b.controlHeightLG},[`&${T}-sm`]:{height:G,paddingTop:Ee,paddingBottom:Ee}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},y=b=>{const{componentCls:T}=b;return{[`${T}-clear-icon`]:{margin:0,color:b.colorTextQuaternary,fontSize:b.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${b.motionDurationSlow}`,"&:hover":{color:b.colorTextTertiary},"&:active":{color:b.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${b.inputAffixPadding}px`}}}},L=b=>{const{componentCls:T,inputAffixPadding:G,colorTextDescription:j,motionDurationSlow:be,colorIcon:Ee,colorIconHover:xe,iconCls:ce}=b;return{[`${T}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},m(b)),{display:"inline-flex",[`&:not(${T}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},H(b)),{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:b.paddingXS}},"&-show-count-suffix":{color:j},"&-show-count-has-suffix":{marginInlineEnd:b.paddingXXS},"&-prefix":{marginInlineEnd:G},"&-suffix":{marginInlineStart:G}}}),y(b)),{[`${ce}${T}-password-icon`]:{color:Ee,cursor:"pointer",transition:`all ${be}`,"&:hover":{color:xe}}}),O(b,`${T}-affix-wrapper`))}},te=b=>{const{componentCls:T,colorError:G,colorWarning:j,borderRadiusLG:be,borderRadiusSM:Ee}=b;return{[`${T}-group`]:Object.assign(Object.assign(Object.assign({},(0,z.Wf)(b)),u(b)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${T}-group-addon`]:{borderRadius:be,fontSize:b.fontSizeLG}},"&-sm":{[`${T}-group-addon`]:{borderRadius:Ee}},"&-status-error":{[`${T}-group-addon`]:{color:G,borderColor:G}},"&-status-warning":{[`${T}-group-addon`]:{color:j,borderColor:j}},"&-disabled":{[`${T}-group-addon`]:Object.assign({},pe(b))},[`&: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}}}})}},B=b=>{const{componentCls:T,antCls:G}=b,j=`${T}-search`;return{[j]:{[`${T}`]:{"&:hover, &:focus":{borderColor:b.colorPrimaryHover,[`+ ${T}-group-addon ${j}-button:not(${G}-btn-primary)`]:{borderInlineStartColor:b.colorPrimaryHover}}},[`${T}-affix-wrapper`]:{borderRadius:0},[`${T}-lg`]:{lineHeight:b.lineHeightLG-2e-4},[`> ${T}-group`]:{[`> ${T}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${j}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:b.borderRadius,borderEndEndRadius:b.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${j}-button:not(${G}-btn-primary)`]:{color:b.colorTextDescription,"&:hover":{color:b.colorPrimaryHover},"&:active":{color:b.colorPrimaryActive},[`&${G}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${j}-button`]:{height:b.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${j}-button`]:{height:b.controlHeightLG},[`&-small ${j}-button`]:{height:b.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${T}-compact-item`]:{[`&:not(${T}-compact-last-item)`]:{[`${T}-group-addon`]:{[`${T}-search-button`]:{marginInlineEnd:-b.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}}}}},M=b=>{const{componentCls:T,paddingLG:G}=b,j=`${T}-textarea`;return{[j]:{position:"relative","&-show-count":{[`> ${T}`]:{height:"100%"},[`${T}-data-count`]:{position:"absolute",bottom:-b.fontSize*b.lineHeight,insetInlineEnd:0,color:b.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${T}`]:{paddingInlineEnd:G}},[`&-affix-wrapper${j}-has-feedback`]:{[`${T}`]:{paddingInlineEnd:G}},[`&-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:b.paddingXS,insetBlockStart:b.paddingXS},[`${j}-suffix`]:{position:"absolute",top:0,insetInlineEnd:b.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function W(b){return(0,Q.TS)(b,{inputAffixPadding:b.paddingXXS})}const V=b=>{const{controlHeight:T,fontSize:G,lineHeight:j,lineWidth:be,controlHeightSM:Ee,controlHeightLG:xe,fontSizeLG:ce,lineHeightLG:ee,paddingSM:Z,controlPaddingHorizontalSM:me,controlPaddingHorizontal:P,colorFillAlter:se,colorPrimaryHover:X,controlOutlineWidth:v,controlOutline:E,colorErrorOutline:K,colorWarningOutline:de}=b;return{paddingBlock:Math.max(Math.round((T-G*j)/2*10)/10-be,3),paddingBlockSM:Math.max(Math.round((Ee-G*j)/2*10)/10-be,0),paddingBlockLG:Math.ceil((xe-ce*ee)/2*10)/10-be,paddingInline:Z-be,paddingInlineSM:me-be,paddingInlineLG:P-be,addonBg:se,activeBorderColor:X,hoverBorderColor:X,activeShadow:`0 0 0 ${v}px ${E}`,errorActiveShadow:`0 0 0 ${v}px ${K}`,warningActiveShadow:`0 0 0 ${v}px ${de}`}};He.ZP=(0,ye.Z)("Input",b=>{const T=(0,Q.TS)(b,W(b));return[x(T),M(T),L(T),te(T),B(T),(0,N.c)(T)]},V)},45818:function(Gt,He,h){"use strict";h.d(He,{D:function(){return W},Z:function(){return T}});var z=h(96663),N=h(59301),Q={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},ye=Q,U=h(7657),H=function(j,be){return N.createElement(U.Z,(0,z.Z)({},j,{ref:be,icon:ye}))},S=N.forwardRef(H),pe=S,a=h(33853),C=h(38819),O=h(92310),m=h.n(O),u=h(2738),y=G=>!isNaN(parseFloat(G))&&isFinite(G),L=h(36355),te=h(84966),B=function(G,j){var be={};for(var Ee in G)Object.prototype.hasOwnProperty.call(G,Ee)&&j.indexOf(Ee)<0&&(be[Ee]=G[Ee]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,Ee=Object.getOwnPropertySymbols(G);xe<Ee.length;xe++)j.indexOf(Ee[xe])<0&&Object.prototype.propertyIsEnumerable.call(G,Ee[xe])&&(be[Ee[xe]]=G[Ee[xe]]);return be};const M={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},W=N.createContext({}),V=(()=>{let G=0;return function(){let j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return G+=1,`${j}${G}`}})();var T=N.forwardRef((G,j)=>{const{prefixCls:be,className:Ee,trigger:xe,children:ce,defaultCollapsed:ee=!1,theme:Z="dark",style:me={},collapsible:P=!1,reverseArrow:se=!1,width:X=200,collapsedWidth:v=80,zeroWidthTriggerStyle:E,breakpoint:K,onCollapse:de,onBreakpoint:Ne}=G,Ue=B(G,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ke}=(0,N.useContext)(te.Gs),[Ve,ht]=(0,N.useState)("collapsed"in G?G.collapsed:ee),[pt,st]=(0,N.useState)(!1);(0,N.useEffect)(()=>{"collapsed"in G&&ht(G.collapsed)},[G.collapsed]);const Ft=(oe,ve)=>{"collapsed"in G||ht(oe),de==null||de(oe,ve)},Yt=(0,N.useRef)();Yt.current=oe=>{st(oe.matches),Ne==null||Ne(oe.matches),Ve!==oe.matches&&Ft(oe.matches,"responsive")},(0,N.useEffect)(()=>{function oe(ie){return Yt.current(ie)}let ve;if(typeof window!="undefined"){const{matchMedia:ie}=window;if(ie&&K&&K in M){ve=ie(`(max-width: ${M[K]})`);try{ve.addEventListener("change",oe)}catch(Y){ve.addListener(oe)}oe(ve)}}return()=>{try{ve==null||ve.removeEventListener("change",oe)}catch(ie){ve==null||ve.removeListener(oe)}}},[K]),(0,N.useEffect)(()=>{const oe=V("ant-sider-");return ke.addSider(oe),()=>ke.removeSider(oe)},[]);const en=()=>{Ft(!Ve,"clickTrigger")},{getPrefixCls:Ut}=(0,N.useContext)(L.E_),ut=()=>{const oe=Ut("layout-sider",be),ve=(0,u.Z)(Ue,["collapsed"]),ie=Ve?v:X,Y=y(ie)?`${ie}px`:String(ie),Ae=parseFloat(String(v||0))===0?N.createElement("span",{onClick:en,className:m()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${se?"right":"left"}`),style:E},xe||N.createElement(pe,null)):null,I={expanded:se?N.createElement(C.Z,null):N.createElement(a.Z,null),collapsed:se?N.createElement(a.Z,null):N.createElement(C.Z,null)}[Ve?"collapsed":"expanded"],le=xe!==null?Ae||N.createElement("div",{className:`${oe}-trigger`,onClick:en,style:{width:Y}},xe||I):null,re=Object.assign(Object.assign({},me),{flex:`0 0 ${Y}`,maxWidth:Y,minWidth:Y,width:Y}),J=m()(oe,`${oe}-${Z}`,{[`${oe}-collapsed`]:!!Ve,[`${oe}-has-trigger`]:P&&xe!==null&&!Ae,[`${oe}-below`]:!!pt,[`${oe}-zero-width`]:parseFloat(Y)===0},Ee);return N.createElement("aside",Object.assign({className:J},ve,{style:re,ref:j}),N.createElement("div",{className:`${oe}-children`},ce),P||pt&&Ae?le:null)},Et=N.useMemo(()=>({siderCollapsed:Ve}),[Ve]);return N.createElement(W.Provider,{value:Et},ut())})},84966:function(Gt,He,h){"use strict";h.d(He,{VY:function(){return W},$_:function(){return M},h4:function(){return B},Gs:function(){return u},ZP:function(){return V}});var z=h(19127),N=h(92310),Q=h.n(N),ye=h(2738),U=h(59301),H=h(36355),S=h(83116),a=b=>{const{componentCls:T,bodyBg:G,lightSiderBg:j,lightTriggerBg:be,lightTriggerColor:Ee}=b;return{[`${T}-sider-light`]:{background:j,[`${T}-sider-trigger`]:{color:Ee,background:be},[`${T}-sider-zero-width-trigger`]:{color:Ee,background:be,border:`1px solid ${G}`,borderInlineStart:0}}}};const C=b=>{const{antCls:T,componentCls:G,colorText:j,triggerColor:be,footerBg:Ee,triggerBg:xe,headerHeight:ce,headerPadding:ee,headerColor:Z,footerPadding:me,triggerHeight:P,zeroTriggerHeight:se,zeroTriggerWidth:X,motionDurationMid:v,motionDurationSlow:E,fontSize:K,borderRadius:de,bodyBg:Ne,headerBg:Ue,siderBg:ke}=b;return{[G]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ne,"&, *":{boxSizing:"border-box"},[`&${G}-has-sider`]:{flexDirection:"row",[`> ${G}, > ${G}-content`]:{width:0}},[`${G}-header, &${G}-footer`]:{flex:"0 0 auto"},[`${G}-sider`]:{position:"relative",minWidth:0,background:ke,transition:`all ${v}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${T}-menu${T}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:P},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:P,color:be,lineHeight:`${P}px`,textAlign:"center",background:xe,cursor:"pointer",transition:`all ${v}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:ce,insetInlineEnd:-X,zIndex:1,width:X,height:se,color:be,fontSize:b.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ke,borderStartStartRadius:0,borderStartEndRadius:de,borderEndEndRadius:de,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:-X,borderStartStartRadius:de,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:de}}}}},a(b)),{"&-rtl":{direction:"rtl"}}),[`${G}-header`]:{height:ce,padding:ee,color:Z,lineHeight:`${ce}px`,background:Ue,[`${T}-menu`]:{lineHeight:"inherit"}},[`${G}-footer`]:{padding:me,color:j,fontSize:K,background:Ee},[`${G}-content`]:{flex:"auto",minHeight:0}}};var O=(0,S.Z)("Layout",b=>[C(b)],b=>{const{colorBgLayout:T,controlHeight:G,controlHeightLG:j,colorText:be,controlHeightSM:Ee,marginXXS:xe,colorTextLightSolid:ce,colorBgContainer:ee}=b,Z=j*1.25;return{colorBgHeader:"#001529",colorBgBody:T,colorBgTrigger:"#002140",bodyBg:T,headerBg:"#001529",headerHeight:G*2,headerPadding:`0 ${Z}px`,headerColor:be,footerPadding:`${Ee}px ${Z}px`,footerBg:T,siderBg:"#001529",triggerHeight:j+xe*2,triggerBg:"#002140",triggerColor:ce,zeroTriggerWidth:j,zeroTriggerHeight:j,lightSiderBg:ee,lightTriggerBg:ee,lightTriggerColor:be}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),m=function(b,T){var G={};for(var j in b)Object.prototype.hasOwnProperty.call(b,j)&&T.indexOf(j)<0&&(G[j]=b[j]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,j=Object.getOwnPropertySymbols(b);be<j.length;be++)T.indexOf(j[be])<0&&Object.prototype.propertyIsEnumerable.call(b,j[be])&&(G[j[be]]=b[j[be]]);return G};const u=U.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function x(b){let{suffixCls:T,tagName:G,displayName:j}=b;return be=>U.forwardRef((xe,ce)=>U.createElement(be,Object.assign({ref:ce,suffixCls:T,tagName:G},xe)))}const y=U.forwardRef((b,T)=>{const{prefixCls:G,suffixCls:j,className:be,tagName:Ee}=b,xe=m(b,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:ce}=U.useContext(H.E_),ee=ce("layout",G),[Z,me]=O(ee),P=j?`${ee}-${j}`:ee;return Z(U.createElement(Ee,Object.assign({className:Q()(G||P,be,me),ref:T},xe)))}),L=U.forwardRef((b,T)=>{const{direction:G}=U.useContext(H.E_),[j,be]=U.useState([]),{prefixCls:Ee,className:xe,rootClassName:ce,children:ee,hasSider:Z,tagName:me,style:P}=b,se=m(b,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),X=(0,ye.Z)(se,["suffixCls"]),{getPrefixCls:v,layout:E}=U.useContext(H.E_),K=v("layout",Ee),[de,Ne]=O(K),Ue=Q()(K,{[`${K}-has-sider`]:typeof Z=="boolean"?Z:j.length>0,[`${K}-rtl`]:G==="rtl"},E==null?void 0:E.className,xe,ce,Ne),ke=U.useMemo(()=>({siderHook:{addSider:Ve=>{be(ht=>[].concat((0,z.Z)(ht),[Ve]))},removeSider:Ve=>{be(ht=>ht.filter(pt=>pt!==Ve))}}}),[]);return de(U.createElement(u.Provider,{value:ke},U.createElement(me,Object.assign({ref:T,className:Ue,style:Object.assign(Object.assign({},E==null?void 0:E.style),P)},X),ee)))}),te=x({tagName:"div",displayName:"Layout"})(L),B=x({suffixCls:"header",tagName:"header",displayName:"Header"})(y),M=x({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(y),W=x({suffixCls:"content",tagName:"main",displayName:"Content"})(y);var V=te},40875:function(Gt,He,h){"use strict";h.d(He,{J:function(){return H}});var z=h(59301),N=h(33234),Q=h(70425),ye=function(S,pe){var a={};for(var C in S)Object.prototype.hasOwnProperty.call(S,C)&&pe.indexOf(C)<0&&(a[C]=S[C]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,C=Object.getOwnPropertySymbols(S);O<C.length;O++)pe.indexOf(C[O])<0&&Object.prototype.propertyIsEnumerable.call(S,C[O])&&(a[C[O]]=S[C[O]]);return a};const U=z.createContext(null),H=z.forwardRef((S,pe)=>{const{children:a}=S,C=ye(S,["children"]),O=z.useContext(U),m=z.useMemo(()=>Object.assign(Object.assign({},O),C),[O,C.prefixCls,C.mode,C.selectable]);return z.createElement(U.Provider,{value:m},z.createElement(N.BR,null,(0,Q.supportNodeRef)(a)?z.cloneElement(a,{ref:pe}):a))});He.Z=U},20834:function(Gt,He,h){"use strict";h.d(He,{default:function(){return Et}});var z=h(15285),N=h(59301),Q=h(45818),ye=h(92310),U=h.n(ye),H=h(36355),S=function(oe,ve){var ie={};for(var Y in oe)Object.prototype.hasOwnProperty.call(oe,Y)&&ve.indexOf(Y)<0&&(ie[Y]=oe[Y]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Y=Object.getOwnPropertySymbols(oe);Ae<Y.length;Ae++)ve.indexOf(Y[Ae])<0&&Object.prototype.propertyIsEnumerable.call(oe,Y[Ae])&&(ie[Y[Ae]]=oe[Y[Ae]]);return ie},a=oe=>{const{prefixCls:ve,className:ie,dashed:Y}=oe,Ae=S(oe,["prefixCls","className","dashed"]),{getPrefixCls:$}=N.useContext(H.E_),R=$("menu",ve),I=U()({[`${R}-item-divider-dashed`]:!!Y},ie);return N.createElement(z.iz,Object.assign({className:I},Ae))},C=h(11592),O=h(2738),m=h(6848),u=h(92343),y=(0,N.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),te=oe=>{var ve;const{className:ie,children:Y,icon:Ae,title:$,danger:R}=oe,{prefixCls:I,firstLevel:le,direction:re,disableMenuItemTitleTooltip:J,inlineCollapsed:Ce}=N.useContext(y),We=vt=>{const wt=N.createElement("span",{className:`${I}-title-content`},Y);return(!Ae||(0,u.l$)(Y)&&Y.type==="span")&&Y&&vt&&le&&typeof Y=="string"?N.createElement("div",{className:`${I}-inline-collapsed-noicon`},Y.charAt(0)):wt},{siderCollapsed:Pe}=N.useContext(Q.D);let Be=$;typeof $=="undefined"?Be=le?Y:"":$===!1&&(Be="");const Xe={title:Be};!Pe&&!Ce&&(Xe.title=null,Xe.open=!1);const rt=(0,C.Z)(Y).length;let Ye=N.createElement(z.ck,Object.assign({},(0,O.Z)(oe,["title","icon","danger"]),{className:U()({[`${I}-item-danger`]:R,[`${I}-item-only-child`]:(Ae?rt+1:rt)===1},ie),title:typeof $=="string"?$:void 0}),(0,u.Tm)(Ae,{className:U()((0,u.l$)(Ae)?(ve=Ae.props)===null||ve===void 0?void 0:ve.className:"",`${I}-item-icon`)}),We(Ce));return J||(Ye=N.createElement(m.Z,Object.assign({},Xe,{placement:re==="rtl"?"left":"right",overlayClassName:`${I}-inline-collapsed-tooltip`}),Ye)),Ye},M=oe=>{var ve;const{popupClassName:ie,icon:Y,title:Ae,theme:$}=oe,R=N.useContext(y),{prefixCls:I,inlineCollapsed:le,theme:re}=R,J=(0,z.Xl)();let Ce;if(!Y)Ce=le&&!J.length&&Ae&&typeof Ae=="string"?N.createElement("div",{className:`${I}-inline-collapsed-noicon`},Ae.charAt(0)):N.createElement("span",{className:`${I}-title-content`},Ae);else{const Pe=(0,u.l$)(Ae)&&Ae.type==="span";Ce=N.createElement(N.Fragment,null,(0,u.Tm)(Y,{className:U()((0,u.l$)(Y)?(ve=Y.props)===null||ve===void 0?void 0:ve.className:"",`${I}-item-icon`)}),Pe?Ae:N.createElement("span",{className:`${I}-title-content`},Ae))}const We=N.useMemo(()=>Object.assign(Object.assign({},R),{firstLevel:!1}),[R]);return N.createElement(y.Provider,{value:We},N.createElement(z.Wd,Object.assign({},(0,O.Z)(oe,["icon"]),{title:Ce,popupClassName:U()(I,ie,`${I}-${$||re}`)})))},W=h(18785),V=h(70425),b=h(62892),T=h(40875),G=function(oe,ve){var ie={};for(var Y in oe)Object.prototype.hasOwnProperty.call(oe,Y)&&ve.indexOf(Y)<0&&(ie[Y]=oe[Y]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Y=Object.getOwnPropertySymbols(oe);Ae<Y.length;Ae++)ve.indexOf(Y[Ae])<0&&Object.prototype.propertyIsEnumerable.call(oe,Y[Ae])&&(ie[Y[Ae]]=oe[Y[Ae]]);return ie};function j(oe){return(oe||[]).map((ve,ie)=>{if(ve&&typeof ve=="object"){const Y=ve,{label:Ae,children:$,key:R,type:I}=Y,le=G(Y,["label","children","key","type"]),re=R!=null?R:`tmp-${ie}`;return $||I==="group"?I==="group"?N.createElement(z.BW,Object.assign({key:re},le,{title:Ae}),j($)):N.createElement(M,Object.assign({key:re},le,{title:Ae}),j($)):I==="divider"?N.createElement(a,Object.assign({key:re},le)):N.createElement(te,Object.assign({key:re},le),Ae)}return null}).filter(ve=>ve)}function be(oe){return N.useMemo(()=>oe&&j(oe),[oe])}var Ee=h(64993),xe=h(17313),ce=h(8378),ee=h(13826),Z=h(29878),me=h(83116),P=h(37613),X=oe=>{const{componentCls:ve,motionDurationSlow:ie,horizontalLineHeight:Y,colorSplit:Ae,lineWidth:$,lineType:R,itemPaddingInline:I}=oe;return{[`${ve}-horizontal`]:{lineHeight:Y,border:0,borderBottom:`${$}px ${R} ${Ae}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ve}-item, ${ve}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:I},[`> ${ve}-item:hover,
> ${ve}-item-active,
> ${ve}-submenu ${ve}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ve}-item, ${ve}-submenu-title`]:{transition:[`border-color ${ie}`,`background ${ie}`].join(",")},[`${ve}-submenu-arrow`]:{display:"none"}}}},E=oe=>{let{componentCls:ve,menuArrowOffset:ie}=oe;return{[`${ve}-rtl`]:{direction:"rtl"},[`${ve}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ve}-rtl${ve}-vertical,
${ve}-submenu-rtl ${ve}-vertical`]:{[`${ve}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${ie})`},"&::after":{transform:`rotate(45deg) translateY(${ie})`}}}}};const K=oe=>Object.assign({},(0,xe.oN)(oe));var Ne=(oe,ve)=>{const{componentCls:ie,itemColor:Y,itemSelectedColor:Ae,groupTitleColor:$,itemBg:R,subMenuItemBg:I,itemSelectedBg:le,activeBarHeight:re,activeBarWidth:J,activeBarBorderWidth:Ce,motionDurationSlow:We,motionEaseInOut:Pe,motionEaseOut:Be,itemPaddingInline:Xe,motionDurationMid:rt,itemHoverColor:Ye,lineType:vt,colorSplit:wt,itemDisabledColor:mt,dangerItemColor:Pt,dangerItemHoverColor:At,dangerItemSelectedColor:w,dangerItemActiveBg:A,dangerItemSelectedBg:gt,itemHoverBg:fe,itemActiveBg:Me,menuSubMenuBg:Dn,horizontalItemSelectedColor:je,horizontalItemSelectedBg:nt,horizontalItemBorderRadius:tt,horizontalItemHoverBg:_e,popupBg:De}=oe;return{[`${ie}-${ve}, ${ie}-${ve} > ${ie}`]:{color:Y,background:R,[`&${ie}-root:focus-visible`]:Object.assign({},K(oe)),[`${ie}-item-group-title`]:{color:$},[`${ie}-submenu-selected`]:{[`> ${ie}-submenu-title`]:{color:Ae}},[`${ie}-item-disabled, ${ie}-submenu-disabled`]:{color:`${mt} !important`},[`${ie}-item:not(${ie}-item-selected):not(${ie}-submenu-selected)`]:{[`&:hover, > ${ie}-submenu-title:hover`]:{color:Ye}},[`&:not(${ie}-horizontal)`]:{[`${ie}-item:not(${ie}-item-selected)`]:{"&:hover":{backgroundColor:fe},"&:active":{backgroundColor:Me}},[`${ie}-submenu-title`]:{"&:hover":{backgroundColor:fe},"&:active":{backgroundColor:Me}}},[`${ie}-item-danger`]:{color:Pt,[`&${ie}-item:hover`]:{[`&:not(${ie}-item-selected):not(${ie}-submenu-selected)`]:{color:At}},[`&${ie}-item:active`]:{background:A}},[`${ie}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ie}-item-selected`]:{color:Ae,[`&${ie}-item-danger`]:{color:w},"a, a:hover":{color:"inherit"}},[`& ${ie}-item-selected`]:{backgroundColor:le,[`&${ie}-item-danger`]:{backgroundColor:gt}},[`${ie}-item, ${ie}-submenu-title`]:{[`&:not(${ie}-item-disabled):focus-visible`]:Object.assign({},K(oe))},[`&${ie}-submenu > ${ie}`]:{backgroundColor:Dn},[`&${ie}-popup > ${ie}`]:{backgroundColor:De},[`&${ie}-horizontal`]:Object.assign(Object.assign({},ve==="dark"?{borderBottom:0}:{}),{[`> ${ie}-item, > ${ie}-submenu`]:{top:Ce,marginTop:-Ce,marginBottom:0,borderRadius:tt,"&::after":{position:"absolute",insetInline:Xe,bottom:0,borderBottom:`${re}px solid transparent`,transition:`border-color ${We} ${Pe}`,content:'""'},"&:hover, &-active, &-open":{background:_e,"&::after":{borderBottomWidth:re,borderBottomColor:je}},"&-selected":{color:je,backgroundColor:nt,"&:hover":{backgroundColor:nt},"&::after":{borderBottomWidth:re,borderBottomColor:je}}}}),[`&${ie}-root`]:{[`&${ie}-inline, &${ie}-vertical`]:{borderInlineEnd:`${Ce}px ${vt} ${wt}`}},[`&${ie}-inline`]:{[`${ie}-sub${ie}-inline`]:{background:I},[`${ie}-item, ${ie}-submenu-title`]:Ce&&J?{width:`calc(100% + ${Ce}px)`}:{},[`${ie}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${J}px solid ${Ae}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${rt} ${Be}`,`opacity ${rt} ${Be}`].join(","),content:'""'},[`&${ie}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${ie}-selected, ${ie}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${rt} ${Pe}`,`opacity ${rt} ${Pe}`].join(",")}}}}}};const Ue=oe=>{const{componentCls:ve,itemHeight:ie,itemMarginInline:Y,padding:Ae,menuArrowSize:$,marginXS:R,itemMarginBlock:I}=oe,le=Ae+$+R;return{[`${ve}-item`]:{position:"relative",overflow:"hidden"},[`${ve}-item, ${ve}-submenu-title`]:{height:ie,lineHeight:`${ie}px`,paddingInline:Ae,overflow:"hidden",textOverflow:"ellipsis",marginInline:Y,marginBlock:I,width:`calc(100% - ${Y*2}px)`},[`> ${ve}-item,
> ${ve}-submenu > ${ve}-submenu-title`]:{height:ie,lineHeight:`${ie}px`},[`${ve}-item-group-list ${ve}-submenu-title,
${ve}-submenu-title`]:{paddingInlineEnd:le}}};var Ve=oe=>{const{componentCls:ve,iconCls:ie,itemHeight:Y,colorTextLightSolid:Ae,dropdownWidth:$,controlHeightLG:R,motionDurationMid:I,motionEaseOut:le,paddingXL:re,itemMarginInline:J,fontSizeLG:Ce,motionDurationSlow:We,paddingXS:Pe,boxShadowSecondary:Be,collapsedWidth:Xe,collapsedIconSize:rt}=oe,Ye={height:Y,lineHeight:`${Y}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ve]:{"&-inline, &-vertical":Object.assign({[`&${ve}-root`]:{boxShadow:"none"}},Ue(oe))},[`${ve}-submenu-popup`]:{[`${ve}-vertical`]:Object.assign(Object.assign({},Ue(oe)),{boxShadow:Be})}},{[`${ve}-submenu-popup ${ve}-vertical${ve}-sub`]:{minWidth:$,maxHeight:`calc(100vh - ${R*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ve}-inline`]:{width:"100%",[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${We}`,`background ${We}`,`padding ${I} ${le}`].join(","),[`> ${ve}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ve}-sub${ve}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ve}-submenu > ${ve}-submenu-title`]:Ye,[`& ${ve}-item-group-title`]:{paddingInlineStart:re}},[`${ve}-item`]:Ye}},{[`${ve}-inline-collapsed`]:{width:Xe,[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu ${ve}-submenu-title`]:{[`> ${ve}-inline-collapsed-noicon`]:{fontSize:Ce,textAlign:"center"}}},[`> ${ve}-item,
> ${ve}-item-group > ${ve}-item-group-list > ${ve}-item,
> ${ve}-item-group > ${ve}-item-group-list > ${ve}-submenu > ${ve}-submenu-title,
> ${ve}-submenu > ${ve}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ce/2}px - ${J}px)`,textOverflow:"clip",[`
${ve}-submenu-arrow,
${ve}-submenu-expand-icon
`]:{opacity:0},[`${ve}-item-icon, ${ie}`]:{margin:0,fontSize:rt,lineHeight:`${Y}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ve}-item-icon, ${ie}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ve}-item-icon, ${ie}`]:{display:"none"},"a, a:hover":{color:Ae}},[`${ve}-item-group-title`]:Object.assign(Object.assign({},xe.vS),{paddingInline:Pe})}}]};const ht=oe=>{const{componentCls:ve,motionDurationSlow:ie,motionDurationMid:Y,motionEaseInOut:Ae,motionEaseOut:$,iconCls:R,iconSize:I,iconMarginInlineEnd:le}=oe;return{[`${ve}-item, ${ve}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ie}`,`background ${ie}`,`padding ${ie} ${Ae}`].join(","),[`${ve}-item-icon, ${R}`]:{minWidth:I,fontSize:I,transition:[`font-size ${Y} ${$}`,`margin ${ie} ${Ae}`,`color ${ie}`].join(","),"+ span":{marginInlineStart:le,opacity:1,transition:[`opacity ${ie} ${Ae}`,`margin ${ie}`,`color ${ie}`].join(",")}},[`${ve}-item-icon`]:Object.assign({},(0,xe.Ro)()),[`&${ve}-item-only-child`]:{[`> ${R}, > ${ve}-item-icon`]:{marginInlineEnd:0}}},[`${ve}-item-disabled, ${ve}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ve}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},pt=oe=>{const{componentCls:ve,motionDurationSlow:ie,motionEaseInOut:Y,borderRadius:Ae,menuArrowSize:$,menuArrowOffset:R}=oe;return{[`${ve}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:oe.margin,width:$,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ie} ${Y}, opacity ${ie}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:$*.6,height:$*.15,backgroundColor:"currentcolor",borderRadius:Ae,transition:[`background ${ie} ${Y}`,`transform ${ie} ${Y}`,`top ${ie} ${Y}`,`color ${ie} ${Y}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${R})`},"&::after":{transform:`rotate(-45deg) translateY(${R})`}}}}},st=oe=>{const{antCls:ve,componentCls:ie,fontSize:Y,motionDurationSlow:Ae,motionDurationMid:$,motionEaseInOut:R,paddingXS:I,padding:le,colorSplit:re,lineWidth:J,zIndexPopup:Ce,borderRadiusLG:We,subMenuItemBorderRadius:Pe,menuArrowSize:Be,menuArrowOffset:Xe,lineType:rt,menuPanelMaskInset:Ye,groupTitleLineHeight:vt,groupTitleFontSize:wt}=oe;return[{"":{[`${ie}`]:Object.assign(Object.assign({},(0,xe.dF)()),{"&-hidden":{display:"none"}})},[`${ie}-submenu-hidden`]:{display:"none"}},{[ie]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,xe.Wf)(oe)),(0,xe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Y,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ae} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ie}-item`]:{flex:"none"}},[`${ie}-item, ${ie}-submenu, ${ie}-submenu-title`]:{borderRadius:oe.itemBorderRadius},[`${ie}-item-group-title`]:{padding:`${I}px ${le}px`,fontSize:wt,lineHeight:vt,transition:`all ${Ae}`},[`&-horizontal ${ie}-submenu`]:{transition:[`border-color ${Ae} ${R}`,`background ${Ae} ${R}`].join(",")},[`${ie}-submenu, ${ie}-submenu-inline`]:{transition:[`border-color ${Ae} ${R}`,`background ${Ae} ${R}`,`padding ${$} ${R}`].join(",")},[`${ie}-submenu ${ie}-sub`]:{cursor:"initial",transition:[`background ${Ae} ${R}`,`padding ${Ae} ${R}`].join(",")},[`${ie}-title-content`]:{transition:`color ${Ae}`},[`${ie}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ie}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:re,borderStyle:rt,borderWidth:0,borderTopWidth:J,marginBlock:J,padding:0,"&-dashed":{borderStyle:"dashed"}}}),ht(oe)),{[`${ie}-item-group`]:{[`${ie}-item-group-list`]:{margin:0,padding:0,[`${ie}-item, ${ie}-submenu-title`]:{paddingInline:`${Y*2}px ${le}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ce,borderRadius:We,boxShadow:"none",transformOrigin:"0 0",[`&${ie}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Ye}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Ye},"\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:oe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:oe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:oe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:oe.paddingXS},[`> ${ie}`]:Object.assign(Object.assign(Object.assign({borderRadius:We},ht(oe)),pt(oe)),{[`${ie}-item, ${ie}-submenu > ${ie}-submenu-title`]:{borderRadius:Pe},[`${ie}-submenu-title::after`]:{transition:`transform ${Ae} ${R}`}})}}),pt(oe)),{[`&-inline-collapsed ${ie}-submenu-arrow,
&-inline ${ie}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Xe})`},"&::after":{transform:`rotate(45deg) translateX(-${Xe})`}},[`${ie}-submenu-open${ie}-submenu-inline > ${ie}-submenu-title > ${ie}-submenu-arrow`]:{transform:`translateY(-${Be*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Xe})`},"&::before":{transform:`rotate(45deg) translateX(${Xe})`}}})},{[`${ve}-layout-header`]:{[ie]:{lineHeight:"inherit"}}}]};var Ft=(oe,ve)=>(0,me.Z)("Menu",Y=>{if(ve===!1)return[];const{colorBgElevated:Ae,colorPrimary:$,colorTextLightSolid:R,controlHeightLG:I,fontSize:le,darkItemColor:re,darkDangerItemColor:J,darkItemBg:Ce,darkSubMenuItemBg:We,darkItemSelectedColor:Pe,darkItemSelectedBg:Be,darkDangerItemSelectedBg:Xe,darkItemHoverBg:rt,darkGroupTitleColor:Ye,darkItemHoverColor:vt,darkItemDisabledColor:wt,darkDangerItemHoverColor:mt,darkDangerItemSelectedColor:Pt,darkDangerItemActiveBg:At}=Y,w=le/7*5,A=(0,P.TS)(Y,{menuArrowSize:w,menuHorizontalHeight:I*1.15,menuArrowOffset:`${w*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ae}),gt=(0,P.TS)(A,{itemColor:re,itemHoverColor:vt,groupTitleColor:Ye,itemSelectedColor:Pe,itemBg:Ce,popupBg:Ce,subMenuItemBg:We,itemActiveBg:"transparent",itemSelectedBg:Be,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:rt,itemDisabledColor:wt,dangerItemColor:J,dangerItemHoverColor:mt,dangerItemSelectedColor:Pt,dangerItemActiveBg:At,dangerItemSelectedBg:Xe,menuSubMenuBg:We,horizontalItemSelectedColor:R,horizontalItemSelectedBg:$});return[st(A),X(A),Ve(A),Ne(A,"light"),Ne(gt,"dark"),E(A),(0,ce.Z)(A),(0,ee.oN)(A,"slide-up"),(0,ee.oN)(A,"slide-down"),(0,Z._y)(A,"zoom-big")]},Y=>{const{colorPrimary:Ae,colorError:$,colorTextDisabled:R,colorErrorBg:I,colorText:le,colorTextDescription:re,colorBgContainer:J,colorFillAlter:Ce,colorFillContent:We,lineWidth:Pe,lineWidthBold:Be,controlItemBgActive:Xe,colorBgTextHover:rt,controlHeightLG:Ye,lineHeight:vt,colorBgElevated:wt,marginXXS:mt,padding:Pt,fontSize:At,controlHeightSM:w,fontSizeLG:A,colorTextLightSolid:gt,colorErrorHover:fe}=Y,Me=new Ee.C(gt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Y.zIndexPopupBase+50,radiusItem:Y.borderRadiusLG,itemBorderRadius:Y.borderRadiusLG,radiusSubMenuItem:Y.borderRadiusSM,subMenuItemBorderRadius:Y.borderRadiusSM,colorItemText:le,itemColor:le,colorItemTextHover:le,itemHoverColor:le,colorItemTextHoverHorizontal:Ae,horizontalItemHoverColor:Ae,colorGroupTitle:re,groupTitleColor:re,colorItemTextSelected:Ae,itemSelectedColor:Ae,colorItemTextSelectedHorizontal:Ae,horizontalItemSelectedColor:Ae,colorItemBg:J,itemBg:J,colorItemBgHover:rt,itemHoverBg:rt,colorItemBgActive:We,itemActiveBg:Xe,colorSubItemBg:Ce,subMenuItemBg:Ce,colorItemBgSelected:Xe,itemSelectedBg:Xe,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Be,activeBarHeight:Be,colorActiveBarBorderSize:Pe,activeBarBorderWidth:Pe,colorItemTextDisabled:R,itemDisabledColor:R,colorDangerItemText:$,dangerItemColor:$,colorDangerItemTextHover:$,dangerItemHoverColor:$,colorDangerItemTextSelected:$,dangerItemSelectedColor:$,colorDangerItemBgActive:I,dangerItemActiveBg:I,colorDangerItemBgSelected:I,dangerItemSelectedBg:I,itemMarginInline:Y.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ye,groupTitleLineHeight:vt,collapsedWidth:Ye*2,popupBg:wt,itemMarginBlock:mt,itemPaddingInline:Pt,horizontalLineHeight:`${Ye*1.15}px`,iconSize:At,iconMarginInlineEnd:w-At,collapsedIconSize:A,groupTitleFontSize:At,darkItemDisabledColor:new Ee.C(gt).setAlpha(.25).toRgbString(),darkItemColor:Me,darkDangerItemColor:$,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:gt,darkItemSelectedBg:Ae,darkDangerItemSelectedBg:$,darkItemHoverBg:"transparent",darkGroupTitleColor:Me,darkItemHoverColor:gt,darkDangerItemHoverColor:fe,darkDangerItemSelectedColor:gt,darkDangerItemActiveBg:$}},{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"]]})(oe),Yt=function(oe,ve){var ie={};for(var Y in oe)Object.prototype.hasOwnProperty.call(oe,Y)&&ve.indexOf(Y)<0&&(ie[Y]=oe[Y]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Y=Object.getOwnPropertySymbols(oe);Ae<Y.length;Ae++)ve.indexOf(Y[Ae])<0&&Object.prototype.propertyIsEnumerable.call(oe,Y[Ae])&&(ie[Y[Ae]]=oe[Y[Ae]]);return ie},Ut=(0,N.forwardRef)((oe,ve)=>{var ie,Y;const Ae=N.useContext(T.Z),$=Ae||{},{getPrefixCls:R,getPopupContainer:I,direction:le,menu:re}=N.useContext(H.E_),J=R(),{prefixCls:Ce,className:We,style:Pe,theme:Be="light",expandIcon:Xe,_internalDisableMenuItemTitleTooltip:rt,inlineCollapsed:Ye,siderCollapsed:vt,items:wt,children:mt,rootClassName:Pt,mode:At,selectable:w,onClick:A,overflowedIndicatorPopupClassName:gt}=oe,fe=Yt(oe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Me=(0,O.Z)(fe,["collapsedWidth"]),Dn=be(wt)||mt;(ie=$.validator)===null||ie===void 0||ie.call($,{mode:At});const je=(0,V.useEvent)(function(){var In;A==null||A.apply(void 0,arguments),(In=$.onClick)===null||In===void 0||In.call($)}),nt=$.mode||At,tt=w!=null?w:$.selectable,_e=N.useMemo(()=>vt!==void 0?vt:Ye,[Ye,vt]),De={horizontal:{motionName:`${J}-slide-up`},inline:(0,b.Z)(J),other:{motionName:`${J}-zoom-big`}},Fe=R("menu",Ce||$.prefixCls),[Qe,ge]=Ft(Fe,!Ae),Vt=U()(`${Fe}-${Be}`,re==null?void 0:re.className,We);let Ze;if(typeof Xe=="function")Ze=Xe;else if(Xe===null||Xe===!1)Ze=null;else if($.expandIcon===null||$.expandIcon===!1)Ze=null;else{const In=Xe!=null?Xe:$.expandIcon;Ze=(0,u.Tm)(In,{className:U()(`${Fe}-submenu-expand-icon`,(0,u.l$)(In)?(Y=In.props)===null||Y===void 0?void 0:Y.className:"")})}const gn=N.useMemo(()=>({prefixCls:Fe,inlineCollapsed:_e||!1,direction:le,firstLevel:!0,theme:Be,mode:nt,disableMenuItemTitleTooltip:rt}),[Fe,_e,le,rt,Be]);return Qe(N.createElement(T.Z.Provider,{value:null},N.createElement(y.Provider,{value:gn},N.createElement(z.ZP,Object.assign({getPopupContainer:I,overflowedIndicator:N.createElement(W.Z,null),overflowedIndicatorPopupClassName:U()(Fe,`${Fe}-${Be}`,gt),mode:nt,selectable:tt,onClick:je},Me,{inlineCollapsed:_e,style:Object.assign(Object.assign({},re==null?void 0:re.style),Pe),className:Vt,prefixCls:Fe,direction:le,defaultMotions:De,expandIcon:Ze,ref:ve,rootClassName:U()(Pt,ge)}),Dn))))});const ut=(0,N.forwardRef)((oe,ve)=>{const ie=(0,N.useRef)(null),Y=N.useContext(Q.D);return(0,N.useImperativeHandle)(ve,()=>({menu:ie.current,focus:Ae=>{var $;($=ie.current)===null||$===void 0||$.focus(Ae)}})),N.createElement(Ut,Object.assign({ref:ie},oe,Y))});ut.Item=te,ut.SubMenu=M,ut.Divider=a,ut.ItemGroup=z.BW;var Et=ut},58421:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return $}});var z=h(96663),N=h(59301),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},ye=Q,U=h(7657),H=function(I,le){return N.createElement(U.Z,(0,z.Z)({},I,{ref:le,icon:ye}))},S=N.forwardRef(H),pe=S,a=h(49198),C=h(33853),O=h(38819),m=h(92310),u=h.n(m),x=h(90493),y=h(44127),L=h(52884),te=h(95727),B=h(65711),M=h(85745),W=h(26112),V={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},b=V,T=h(91735),G=function(R){(0,B.Z)(le,R);var I=(0,M.Z)(le);function le(){var re;(0,L.Z)(this,le);for(var J=arguments.length,Ce=new Array(J),We=0;We<J;We++)Ce[We]=arguments[We];return re=I.call.apply(I,[this].concat(Ce)),re.state={goInputText:""},re.getValidValue=function(){var Pe=re.state.goInputText;return!Pe||Number.isNaN(Pe)?void 0:Number(Pe)},re.buildOptionText=function(Pe){return"".concat(Pe," ").concat(re.props.locale.items_per_page)},re.changeSize=function(Pe){re.props.changeSize(Number(Pe))},re.handleChange=function(Pe){re.setState({goInputText:Pe.target.value})},re.handleBlur=function(Pe){var Be=re.props,Xe=Be.goButton,rt=Be.quickGo,Ye=Be.rootPrefixCls,vt=re.state.goInputText;Xe||vt===""||(re.setState({goInputText:""}),!(Pe.relatedTarget&&(Pe.relatedTarget.className.indexOf("".concat(Ye,"-item-link"))>=0||Pe.relatedTarget.className.indexOf("".concat(Ye,"-item"))>=0))&&rt(re.getValidValue()))},re.go=function(Pe){var Be=re.state.goInputText;Be!==""&&(Pe.keyCode===b.ENTER||Pe.type==="click")&&(re.setState({goInputText:""}),re.props.quickGo(re.getValidValue()))},re}return(0,te.Z)(le,[{key:"getPageSizeOptions",value:function(){var J=this.props,Ce=J.pageSize,We=J.pageSizeOptions;return We.some(function(Pe){return Pe.toString()===Ce.toString()})?We:We.concat([Ce.toString()]).sort(function(Pe,Be){var Xe=Number.isNaN(Number(Pe))?0:Number(Pe),rt=Number.isNaN(Number(Be))?0:Number(Be);return Xe-rt})}},{key:"render",value:function(){var J=this,Ce=this.props,We=Ce.pageSize,Pe=Ce.locale,Be=Ce.rootPrefixCls,Xe=Ce.changeSize,rt=Ce.quickGo,Ye=Ce.goButton,vt=Ce.selectComponentClass,wt=Ce.buildOptionText,mt=Ce.selectPrefixCls,Pt=Ce.disabled,At=this.state.goInputText,w="".concat(Be,"-options"),A=vt,gt=null,fe=null,Me=null;if(!Xe&&!rt)return null;var Dn=this.getPageSizeOptions();if(Xe&&A){var je=Dn.map(function(nt,tt){return N.createElement(A.Option,{key:tt,value:nt.toString()},(wt||J.buildOptionText)(nt))});gt=N.createElement(A,{disabled:Pt,prefixCls:mt,showSearch:!1,className:"".concat(w,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(We||Dn[0]).toString(),onChange:this.changeSize,getPopupContainer:function(tt){return tt.parentNode},"aria-label":Pe.page_size,defaultOpen:!1},je)}return rt&&(Ye&&(Me=typeof Ye=="boolean"?N.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Pt,className:"".concat(w,"-quick-jumper-button")},Pe.jump_to_confirm):N.createElement("span",{onClick:this.go,onKeyUp:this.go},Ye)),fe=N.createElement("div",{className:"".concat(w,"-quick-jumper")},Pe.jump_to,N.createElement("input",{disabled:Pt,type:"text",value:At,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Pe.page}),Pe.page,Me)),N.createElement("li",{className:"".concat(w)},gt,fe)}}]),le}(N.Component);G.defaultProps={pageSizeOptions:["10","20","50","100"]};var j=G,be=function(I){var le,re=I.rootPrefixCls,J=I.page,Ce=I.active,We=I.className,Pe=I.showTitle,Be=I.onClick,Xe=I.onKeyPress,rt=I.itemRender,Ye="".concat(re,"-item"),vt=u()(Ye,"".concat(Ye,"-").concat(J),(le={},(0,x.Z)(le,"".concat(Ye,"-active"),Ce),(0,x.Z)(le,"".concat(Ye,"-disabled"),!J),(0,x.Z)(le,I.className,We),le)),wt=function(){Be(J)},mt=function(w){Xe(w,Be,J)},Pt=rt(J,"page",N.createElement("a",{rel:"nofollow"},J));return Pt?N.createElement("li",{title:Pe?J.toString():null,className:vt,onClick:wt,onKeyPress:mt,tabIndex:0},Pt):null},Ee=be;function xe(){}function ce(R){var I=Number(R);return typeof I=="number"&&!Number.isNaN(I)&&isFinite(I)&&Math.floor(I)===I}var ee=function(I,le,re){return re};function Z(R,I,le){var re=typeof R=="undefined"?I.pageSize:R;return Math.floor((le.total-1)/re)+1}var me=function(R){(0,B.Z)(le,R);var I=(0,M.Z)(le);function le(re){var J;(0,L.Z)(this,le),J=I.call(this,re),J.paginationNode=N.createRef(),J.getJumpPrevPage=function(){return Math.max(1,J.state.current-(J.props.showLessItems?3:5))},J.getJumpNextPage=function(){return Math.min(Z(void 0,J.state,J.props),J.state.current+(J.props.showLessItems?3:5))},J.getItemIcon=function(Xe,rt){var Ye=J.props.prefixCls,vt=Xe||N.createElement("button",{type:"button","aria-label":rt,className:"".concat(Ye,"-item-link")});return typeof Xe=="function"&&(vt=N.createElement(Xe,(0,y.Z)({},J.props))),vt},J.isValid=function(Xe){var rt=J.props.total;return ce(Xe)&&Xe!==J.state.current&&ce(rt)&&rt>0},J.shouldDisplayQuickJumper=function(){var Xe=J.props,rt=Xe.showQuickJumper,Ye=Xe.total,vt=J.state.pageSize;return Ye<=vt?!1:rt},J.handleKeyDown=function(Xe){(Xe.keyCode===b.ARROW_UP||Xe.keyCode===b.ARROW_DOWN)&&Xe.preventDefault()},J.handleKeyUp=function(Xe){var rt=J.getValidValue(Xe),Ye=J.state.currentInputValue;rt!==Ye&&J.setState({currentInputValue:rt}),Xe.keyCode===b.ENTER?J.handleChange(rt):Xe.keyCode===b.ARROW_UP?J.handleChange(rt-1):Xe.keyCode===b.ARROW_DOWN&&J.handleChange(rt+1)},J.handleBlur=function(Xe){var rt=J.getValidValue(Xe);J.handleChange(rt)},J.changePageSize=function(Xe){var rt=J.state.current,Ye=Z(Xe,J.state,J.props);rt=rt>Ye?Ye:rt,Ye===0&&(rt=J.state.current),typeof Xe=="number"&&("pageSize"in J.props||J.setState({pageSize:Xe}),"current"in J.props||J.setState({current:rt,currentInputValue:rt})),J.props.onShowSizeChange(rt,Xe),"onChange"in J.props&&J.props.onChange&&J.props.onChange(rt,Xe)},J.handleChange=function(Xe){var rt=J.props,Ye=rt.disabled,vt=rt.onChange,wt=J.state,mt=wt.pageSize,Pt=wt.current,At=wt.currentInputValue;if(J.isValid(Xe)&&!Ye){var w=Z(void 0,J.state,J.props),A=Xe;return Xe>w?A=w:Xe<1&&(A=1),"current"in J.props||J.setState({current:A}),A!==At&&J.setState({currentInputValue:A}),vt(A,mt),A}return Pt},J.prev=function(){J.hasPrev()&&J.handleChange(J.state.current-1)},J.next=function(){J.hasNext()&&J.handleChange(J.state.current+1)},J.jumpPrev=function(){J.handleChange(J.getJumpPrevPage())},J.jumpNext=function(){J.handleChange(J.getJumpNextPage())},J.hasPrev=function(){return J.state.current>1},J.hasNext=function(){return J.state.current<Z(void 0,J.state,J.props)},J.runIfEnter=function(Xe,rt){if(Xe.key==="Enter"||Xe.charCode===13){for(var Ye=arguments.length,vt=new Array(Ye>2?Ye-2:0),wt=2;wt<Ye;wt++)vt[wt-2]=arguments[wt];rt.apply(void 0,vt)}},J.runIfEnterPrev=function(Xe){J.runIfEnter(Xe,J.prev)},J.runIfEnterNext=function(Xe){J.runIfEnter(Xe,J.next)},J.runIfEnterJumpPrev=function(Xe){J.runIfEnter(Xe,J.jumpPrev)},J.runIfEnterJumpNext=function(Xe){J.runIfEnter(Xe,J.jumpNext)},J.handleGoTO=function(Xe){(Xe.keyCode===b.ENTER||Xe.type==="click")&&J.handleChange(J.state.currentInputValue)},J.renderPrev=function(Xe){var rt=J.props,Ye=rt.prevIcon,vt=rt.itemRender,wt=vt(Xe,"prev",J.getItemIcon(Ye,"prev page")),mt=!J.hasPrev();return(0,N.isValidElement)(wt)?(0,N.cloneElement)(wt,{disabled:mt}):wt},J.renderNext=function(Xe){var rt=J.props,Ye=rt.nextIcon,vt=rt.itemRender,wt=vt(Xe,"next",J.getItemIcon(Ye,"next page")),mt=!J.hasNext();return(0,N.isValidElement)(wt)?(0,N.cloneElement)(wt,{disabled:mt}):wt};var Ce=re.onChange!==xe,We="current"in re;We&&!Ce&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Pe=re.defaultCurrent;"current"in re&&(Pe=re.current);var Be=re.defaultPageSize;return"pageSize"in re&&(Be=re.pageSize),Pe=Math.min(Pe,Z(Be,void 0,re)),J.state={current:Pe,currentInputValue:Pe,pageSize:Be},J}return(0,te.Z)(le,[{key:"componentDidUpdate",value:function(J,Ce){var We=this.props.prefixCls;if(Ce.current!==this.state.current&&this.paginationNode.current){var Pe=this.paginationNode.current.querySelector(".".concat(We,"-item-").concat(Ce.current));if(Pe&&document.activeElement===Pe){var Be;Pe==null||(Be=Pe.blur)===null||Be===void 0||Be.call(Pe)}}}},{key:"getValidValue",value:function(J){var Ce=J.target.value,We=Z(void 0,this.state,this.props),Pe=this.state.currentInputValue,Be;return Ce===""?Be=Ce:Number.isNaN(Number(Ce))?Be=Pe:Ce>=We?Be=We:Be=Number(Ce),Be}},{key:"getShowSizeChanger",value:function(){var J=this.props,Ce=J.showSizeChanger,We=J.total,Pe=J.totalBoundaryShowSizeChanger;return typeof Ce!="undefined"?Ce:We>Pe}},{key:"render",value:function(){var J=this.props,Ce=J.prefixCls,We=J.className,Pe=J.style,Be=J.disabled,Xe=J.hideOnSinglePage,rt=J.total,Ye=J.locale,vt=J.showQuickJumper,wt=J.showLessItems,mt=J.showTitle,Pt=J.showTotal,At=J.simple,w=J.itemRender,A=J.showPrevNextJumpers,gt=J.jumpPrevIcon,fe=J.jumpNextIcon,Me=J.selectComponentClass,Dn=J.selectPrefixCls,je=J.pageSizeOptions,nt=this.state,tt=nt.current,_e=nt.pageSize,De=nt.currentInputValue;if(Xe===!0&&rt<=_e)return null;var Fe=Z(void 0,this.state,this.props),Qe=[],ge=null,Vt=null,Ze=null,gn=null,In=null,Hn=vt&&vt.goButton,mr=wt?1:2,rn=tt-1>0?tt-1:0,vn=tt+1<Fe?tt+1:Fe,Je=(0,W.Z)(this.props,{aria:!0,data:!0}),It=Pt&&N.createElement("li",{className:"".concat(Ce,"-total-text")},Pt(rt,[rt===0?0:(tt-1)*_e+1,tt*_e>rt?rt:tt*_e]));if(At){Hn&&(typeof Hn=="boolean"?In=N.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ye.jump_to_confirm):In=N.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Hn),In=N.createElement("li",{title:mt?"".concat(Ye.jump_to).concat(tt,"/").concat(Fe):null,className:"".concat(Ce,"-simple-pager")},In));var zt=this.renderPrev(rn);return N.createElement("ul",(0,z.Z)({className:u()(Ce,"".concat(Ce,"-simple"),(0,x.Z)({},"".concat(Ce,"-disabled"),Be),We),style:Pe,ref:this.paginationNode},Je),It,zt?N.createElement("li",{title:mt?Ye.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:u()("".concat(Ce,"-prev"),(0,x.Z)({},"".concat(Ce,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},zt):null,N.createElement("li",{title:mt?"".concat(tt,"/").concat(Fe):null,className:"".concat(Ce,"-simple-pager")},N.createElement("input",{type:"text",value:De,disabled:Be,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),N.createElement("span",{className:"".concat(Ce,"-slash")},"/"),Fe),N.createElement("li",{title:mt?Ye.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:u()("".concat(Ce,"-next"),(0,x.Z)({},"".concat(Ce,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(vn)),In)}if(Fe<=3+mr*2){var Ke={locale:Ye,rootPrefixCls:Ce,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:mt,itemRender:w};Fe||Qe.push(N.createElement(Ee,(0,z.Z)({},Ke,{key:"noPager",page:1,className:"".concat(Ce,"-item-disabled")})));for(var Oe=1;Oe<=Fe;Oe+=1){var bt=tt===Oe;Qe.push(N.createElement(Ee,(0,z.Z)({},Ke,{key:Oe,page:Oe,active:bt})))}}else{var St=wt?Ye.prev_3:Ye.prev_5,qt=wt?Ye.next_3:Ye.next_5,Wt=w(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(gt,"prev page")),on=w(this.getJumpNextPage(),"jump-next",this.getItemIcon(fe,"next page"));A&&(ge=Wt?N.createElement("li",{title:mt?St:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:u()("".concat(Ce,"-jump-prev"),(0,x.Z)({},"".concat(Ce,"-jump-prev-custom-icon"),!!gt))},Wt):null,Vt=on?N.createElement("li",{title:mt?qt:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:u()("".concat(Ce,"-jump-next"),(0,x.Z)({},"".concat(Ce,"-jump-next-custom-icon"),!!fe))},on):null),gn=N.createElement(Ee,{locale:Ye,last:!0,rootPrefixCls:Ce,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Fe,page:Fe,active:!1,showTitle:mt,itemRender:w}),Ze=N.createElement(Ee,{locale:Ye,rootPrefixCls:Ce,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:mt,itemRender:w});var Xt=Math.max(1,tt-mr),hn=Math.min(tt+mr,Fe);tt-1<=mr&&(hn=1+mr*2),Fe-tt<=mr&&(Xt=Fe-mr*2);for(var An=Xt;An<=hn;An+=1){var $t=tt===An;Qe.push(N.createElement(Ee,{locale:Ye,rootPrefixCls:Ce,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:An,page:An,active:$t,showTitle:mt,itemRender:w}))}tt-1>=mr*2&&tt!==3&&(Qe[0]=(0,N.cloneElement)(Qe[0],{className:"".concat(Ce,"-item-after-jump-prev")}),Qe.unshift(ge)),Fe-tt>=mr*2&&tt!==Fe-2&&(Qe[Qe.length-1]=(0,N.cloneElement)(Qe[Qe.length-1],{className:"".concat(Ce,"-item-before-jump-next")}),Qe.push(Vt)),Xt!==1&&Qe.unshift(Ze),hn!==Fe&&Qe.push(gn)}var Rt=!this.hasPrev()||!Fe,an=!this.hasNext()||!Fe,tn=this.renderPrev(rn),cn=this.renderNext(vn);return N.createElement("ul",(0,z.Z)({className:u()(Ce,We,(0,x.Z)({},"".concat(Ce,"-disabled"),Be)),style:Pe,ref:this.paginationNode},Je),It,tn?N.createElement("li",{title:mt?Ye.prev_page:null,onClick:this.prev,tabIndex:Rt?null:0,onKeyPress:this.runIfEnterPrev,className:u()("".concat(Ce,"-prev"),(0,x.Z)({},"".concat(Ce,"-disabled"),Rt)),"aria-disabled":Rt},tn):null,Qe,cn?N.createElement("li",{title:mt?Ye.next_page:null,onClick:this.next,tabIndex:an?null:0,onKeyPress:this.runIfEnterNext,className:u()("".concat(Ce,"-next"),(0,x.Z)({},"".concat(Ce,"-disabled"),an)),"aria-disabled":an},cn):null,N.createElement(j,{disabled:Be,locale:Ye,rootPrefixCls:Ce,selectComponentClass:Me,selectPrefixCls:Dn,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:tt,pageSize:_e,pageSizeOptions:je,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Hn}))}}],[{key:"getDerivedStateFromProps",value:function(J,Ce){var We={};if("current"in J&&(We.current=J.current,J.current!==Ce.current&&(We.currentInputValue=We.current)),"pageSize"in J&&J.pageSize!==Ce.pageSize){var Pe=Ce.current,Be=Z(J.pageSize,Ce,J);Pe=Pe>Be?Be:Pe,"current"in J||(We.current=Pe,We.currentInputValue=Pe),We.pageSize=J.pageSize}return We}}]),le}(N.Component);me.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:xe,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:xe,locale:T.Z,style:{},itemRender:ee,totalBoundaryShowSizeChanger:50};var P=me,se=h(22075),X=h(36355),v=h(19716),E=h(8628),K=h(9763),de=h(57809);const Ne=R=>N.createElement(de.default,Object.assign({},R,{showSearch:!0,size:"small"})),Ue=R=>N.createElement(de.default,Object.assign({},R,{showSearch:!0,size:"middle"}));Ne.Option=de.default.Option,Ue.Option=de.default.Option;var ke=h(9937),Ve=h(17313),ht=h(83116),pt=h(37613);const st=R=>{const{componentCls:I}=R;return{[`${I}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${I}-item-link`]:{color:R.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${I}-item-link`]:{color:R.colorTextDisabled,cursor:"not-allowed"}}},[`&${I}-disabled`]:{cursor:"not-allowed",[`${I}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:R.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:R.colorBorder,backgroundColor:R.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:R.itemActiveBgDisabled},a:{color:R.itemActiveColorDisabled}}},[`${I}-item-link`]:{color:R.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${I}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${I}-simple-pager`]:{color:R.colorTextDisabled},[`${I}-jump-prev, ${I}-jump-next`]:{[`${I}-item-link-icon`]:{opacity:0},[`${I}-item-ellipsis`]:{opacity:1}}},[`&${I}-simple`]:{[`${I}-prev, ${I}-next`]:{[`&${I}-disabled ${I}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Ft=R=>{const{componentCls:I}=R;return{[`&${I}-mini ${I}-total-text, &${I}-mini ${I}-simple-pager`]:{height:R.itemSizeSM,lineHeight:`${R.itemSizeSM}px`},[`&${I}-mini ${I}-item`]:{minWidth:R.itemSizeSM,height:R.itemSizeSM,margin:0,lineHeight:`${R.itemSizeSM-2}px`},[`&${I}-mini:not(${I}-disabled) ${I}-item:not(${I}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:R.colorBgTextHover},"&:active":{backgroundColor:R.colorBgTextActive}},[`&${I}-mini ${I}-prev, &${I}-mini ${I}-next`]:{minWidth:R.itemSizeSM,height:R.itemSizeSM,margin:0,lineHeight:`${R.itemSizeSM}px`},[`&${I}-mini:not(${I}-disabled)`]:{[`${I}-prev, ${I}-next`]:{[`&:hover ${I}-item-link`]:{backgroundColor:R.colorBgTextHover},[`&:active ${I}-item-link`]:{backgroundColor:R.colorBgTextActive},[`&${I}-disabled:hover ${I}-item-link`]:{backgroundColor:"transparent"}}},[`
&${I}-mini ${I}-prev ${I}-item-link,
&${I}-mini ${I}-next ${I}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:R.itemSizeSM,lineHeight:`${R.itemSizeSM}px`}},[`&${I}-mini ${I}-jump-prev, &${I}-mini ${I}-jump-next`]:{height:R.itemSizeSM,marginInlineEnd:0,lineHeight:`${R.itemSizeSM}px`},[`&${I}-mini ${I}-options`]:{marginInlineStart:R.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:R.miniOptionsSizeChangerTop},"&-quick-jumper":{height:R.itemSizeSM,lineHeight:`${R.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,ke.x0)(R)),{width:R.paginationMiniQuickJumperInputWidth,height:R.controlHeightSM})}}}},Yt=R=>{const{componentCls:I}=R;return{[`
&${I}-simple ${I}-prev,
&${I}-simple ${I}-next
`]:{height:R.itemSizeSM,lineHeight:`${R.itemSizeSM}px`,verticalAlign:"top",[`${I}-item-link`]:{height:R.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:R.colorBgTextHover},"&:active":{backgroundColor:R.colorBgTextActive},"&::after":{height:R.itemSizeSM,lineHeight:`${R.itemSizeSM}px`}}},[`&${I}-simple ${I}-simple-pager`]:{display:"inline-block",height:R.itemSizeSM,marginInlineEnd:R.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:R.marginXS,padding:`0 ${R.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:R.itemInputBg,border:`${R.lineWidth}px ${R.lineType} ${R.colorBorder}`,borderRadius:R.borderRadius,outline:"none",transition:`border-color ${R.motionDurationMid}`,color:"inherit","&:hover":{borderColor:R.colorPrimary},"&:focus":{borderColor:R.colorPrimaryHover,boxShadow:`${R.inputOutlineOffset}px 0 ${R.controlOutlineWidth}px ${R.controlOutline}`},"&[disabled]":{color:R.colorTextDisabled,backgroundColor:R.colorBgContainerDisabled,borderColor:R.colorBorder,cursor:"not-allowed"}}}}},en=R=>{const{componentCls:I}=R;return{[`${I}-jump-prev, ${I}-jump-next`]:{outline:0,[`${I}-item-container`]:{position:"relative",[`${I}-item-link-icon`]:{color:R.colorPrimary,fontSize:R.fontSizeSM,opacity:0,transition:`all ${R.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${I}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:R.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:R.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:R.paginationEllipsisTextIndent,opacity:1,transition:`all ${R.motionDurationMid}`}},"&:hover":{[`${I}-item-link-icon`]:{opacity:1},[`${I}-item-ellipsis`]:{opacity:0}}},[`
${I}-prev,
${I}-jump-prev,
${I}-jump-next
`]:{marginInlineEnd:R.marginXS},[`
${I}-prev,
${I}-next,
${I}-jump-prev,
${I}-jump-next
`]:{display:"inline-block",minWidth:R.itemSize,height:R.itemSize,color:R.colorText,fontFamily:R.fontFamily,lineHeight:`${R.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:R.borderRadius,cursor:"pointer",transition:`all ${R.motionDurationMid}`},[`${I}-prev, ${I}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:R.colorText,cursor:"pointer",userSelect:"none"},[`${I}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:R.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${R.lineWidth}px ${R.lineType} transparent`,borderRadius:R.borderRadius,outline:"none",transition:`all ${R.motionDurationMid}`},[`&:hover ${I}-item-link`]:{backgroundColor:R.colorBgTextHover},[`&:active ${I}-item-link`]:{backgroundColor:R.colorBgTextActive},[`&${I}-disabled:hover`]:{[`${I}-item-link`]:{backgroundColor:"transparent"}}},[`${I}-slash`]:{marginInlineEnd:R.paginationSlashMarginInlineEnd,marginInlineStart:R.paginationSlashMarginInlineStart},[`${I}-options`]:{display:"inline-block",marginInlineStart:R.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:R.controlHeight,marginInlineStart:R.marginXS,lineHeight:`${R.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,ke.ik)(R)),{width:R.controlHeightLG*1.25,height:R.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:R.marginXS,marginInlineEnd:R.marginXS})}}}},Ut=R=>{const{componentCls:I}=R;return{[`${I}-item`]:{display:"inline-block",minWidth:R.itemSize,height:R.itemSize,marginInlineEnd:R.marginXS,fontFamily:R.fontFamily,lineHeight:`${R.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${R.lineWidth}px ${R.lineType} transparent`,borderRadius:R.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${R.paginationItemPaddingInline}px`,color:R.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${I}-item-active)`]:{"&:hover":{transition:`all ${R.motionDurationMid}`,backgroundColor:R.colorBgTextHover},"&:active":{backgroundColor:R.colorBgTextActive}},"&-active":{fontWeight:R.fontWeightStrong,backgroundColor:R.itemActiveBg,borderColor:R.colorPrimary,a:{color:R.colorPrimary},"&:hover":{borderColor:R.colorPrimaryHover},"&:hover a":{color:R.colorPrimaryHover}}}}},ut=R=>{const{componentCls:I}=R;return{[I]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ve.Wf)(R)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${I}-total-text`]:{display:"inline-block",height:R.itemSize,marginInlineEnd:R.marginXS,lineHeight:`${R.itemSize-2}px`,verticalAlign:"middle"}}),Ut(R)),en(R)),Yt(R)),Ft(R)),st(R)),{[`@media only screen and (max-width: ${R.screenLG}px)`]:{[`${I}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${R.screenSM}px)`]:{[`${I}-options`]:{display:"none"}}}),[`&${R.componentCls}-rtl`]:{direction:"rtl"}}},Et=R=>{const{componentCls:I}=R;return{[`${I}${I}-disabled:not(${I}-mini)`]:{"&, &:hover":{[`${I}-item-link`]:{borderColor:R.colorBorder}},"&:focus-visible":{[`${I}-item-link`]:{borderColor:R.colorBorder}},[`${I}-item, ${I}-item-link`]:{backgroundColor:R.colorBgContainerDisabled,borderColor:R.colorBorder,[`&:hover:not(${I}-item-active)`]:{backgroundColor:R.colorBgContainerDisabled,borderColor:R.colorBorder,a:{color:R.colorTextDisabled}},[`&${I}-item-active`]:{backgroundColor:R.itemActiveBgDisabled}},[`${I}-prev, ${I}-next`]:{"&:hover button":{backgroundColor:R.colorBgContainerDisabled,borderColor:R.colorBorder,color:R.colorTextDisabled},[`${I}-item-link`]:{backgroundColor:R.colorBgContainerDisabled,borderColor:R.colorBorder}}},[`${I}:not(${I}-mini)`]:{[`${I}-prev, ${I}-next`]:{"&:hover button":{borderColor:R.colorPrimaryHover,backgroundColor:R.itemBg},[`${I}-item-link`]:{backgroundColor:R.itemLinkBg,borderColor:R.colorBorder},[`&:hover ${I}-item-link`]:{borderColor:R.colorPrimary,backgroundColor:R.itemBg,color:R.colorPrimary},[`&${I}-disabled`]:{[`${I}-item-link`]:{borderColor:R.colorBorder,color:R.colorTextDisabled}}},[`${I}-item`]:{backgroundColor:R.itemBg,border:`${R.lineWidth}px ${R.lineType} ${R.colorBorder}`,[`&:hover:not(${I}-item-active)`]:{borderColor:R.colorPrimary,backgroundColor:R.itemBg,a:{color:R.colorPrimary}},"&-active":{borderColor:R.colorPrimary}}}}},oe=R=>{const{componentCls:I}=R;return{[`${I}:not(${I}-disabled)`]:{[`${I}-item`]:Object.assign({},(0,Ve.Qy)(R)),[`${I}-jump-prev, ${I}-jump-next`]:{"&:focus-visible":Object.assign({[`${I}-item-link-icon`]:{opacity:1},[`${I}-item-ellipsis`]:{opacity:0}},(0,Ve.oN)(R))},[`${I}-prev, ${I}-next`]:{[`&:focus-visible ${I}-item-link`]:Object.assign({},(0,Ve.oN)(R))}}}};var ve=(0,ht.Z)("Pagination",R=>{const I=(0,pt.TS)(R,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:R.marginXXS/2,paginationMiniQuickJumperInputWidth:R.controlHeightLG*1.1,paginationItemPaddingInline:R.marginXXS*1.5,paginationEllipsisLetterSpacing:R.marginXXS/2,paginationSlashMarginInlineStart:R.marginXXS,paginationSlashMarginInlineEnd:R.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,ke.e5)(R),(0,ke.TM)(R));return[ut(I),oe(I),R.wireframe&&Et(I)]},R=>({itemBg:R.colorBgContainer,itemSize:R.controlHeight,itemSizeSM:R.controlHeightSM,itemActiveBg:R.colorBgContainer,itemLinkBg:R.colorBgContainer,itemActiveColorDisabled:R.colorTextDisabled,itemActiveBgDisabled:R.controlItemBgActiveDisabled,itemInputBg:R.colorBgContainer,miniOptionsSizeChangerTop:0})),ie=function(R,I){var le={};for(var re in R)Object.prototype.hasOwnProperty.call(R,re)&&I.indexOf(re)<0&&(le[re]=R[re]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,re=Object.getOwnPropertySymbols(R);J<re.length;J++)I.indexOf(re[J])<0&&Object.prototype.propertyIsEnumerable.call(R,re[J])&&(le[re[J]]=R[re[J]]);return le},Ae=R=>{const{prefixCls:I,selectPrefixCls:le,className:re,rootClassName:J,style:Ce,size:We,locale:Pe,selectComponentClass:Be,responsive:Xe,showSizeChanger:rt}=R,Ye=ie(R,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:vt}=(0,E.Z)(Xe),{getPrefixCls:wt,direction:mt,pagination:Pt={}}=N.useContext(X.E_),At=wt("pagination",I),[w,A]=ve(At),gt=rt!=null?rt:Pt.showSizeChanger,fe=N.useMemo(()=>{const Fe=N.createElement("span",{className:`${At}-item-ellipsis`},"\u2022\u2022\u2022"),Qe=N.createElement("button",{className:`${At}-item-link`,type:"button",tabIndex:-1},mt==="rtl"?N.createElement(O.Z,null):N.createElement(C.Z,null)),ge=N.createElement("button",{className:`${At}-item-link`,type:"button",tabIndex:-1},mt==="rtl"?N.createElement(C.Z,null):N.createElement(O.Z,null)),Vt=N.createElement("a",{className:`${At}-item-link`},N.createElement("div",{className:`${At}-item-container`},mt==="rtl"?N.createElement(a.Z,{className:`${At}-item-link-icon`}):N.createElement(pe,{className:`${At}-item-link-icon`}),Fe)),Ze=N.createElement("a",{className:`${At}-item-link`},N.createElement("div",{className:`${At}-item-container`},mt==="rtl"?N.createElement(pe,{className:`${At}-item-link-icon`}):N.createElement(a.Z,{className:`${At}-item-link-icon`}),Fe));return{prevIcon:Qe,nextIcon:ge,jumpPrevIcon:Vt,jumpNextIcon:Ze}},[mt,At]),[Me]=(0,K.Z)("Pagination",se.Z),Dn=Object.assign(Object.assign({},Me),Pe),je=(0,v.Z)(We),nt=je==="small"||!!(vt&&!je&&Xe),tt=wt("select",le),_e=u()({[`${At}-mini`]:nt,[`${At}-rtl`]:mt==="rtl"},Pt==null?void 0:Pt.className,re,J,A),De=Object.assign(Object.assign({},Pt==null?void 0:Pt.style),Ce);return w(N.createElement(P,Object.assign({},fe,Ye,{style:De,prefixCls:At,selectPrefixCls:tt,className:_e,selectComponentClass:Be||(nt?Ne:Ue),locale:Dn,showSizeChanger:gt})))},$=Ae},5112:function(Gt,He,h){"use strict";h.d(He,{ZP:function(){return E}});var z=h(92310),N=h.n(z),Q=h(18929),ye=h(26112),U=h(59301),H=h(36355),S=h(19716);const pe=U.createContext(null),a=pe.Provider;var C=pe;const O=U.createContext(null),m=O.Provider;var u=h(5630),x=h(8654),y=h(1684),L=h(32441),te=h(17313),B=h(83116),M=h(37613);const W=K=>{const{componentCls:de,antCls:Ne}=K,Ue=`${de}-group`;return{[Ue]:Object.assign(Object.assign({},(0,te.Wf)(K)),{display:"inline-block",fontSize:0,[`&${Ue}-rtl`]:{direction:"rtl"},[`${Ne}-badge ${Ne}-badge-count`]:{zIndex:1},[`> ${Ne}-badge:not(:first-child) > ${Ne}-button-wrapper`]:{borderInlineStart:"none"}})}},V=K=>{const{componentCls:de,wrapperMarginInlineEnd:Ne,colorPrimary:Ue,radioSize:ke,motionDurationSlow:Ve,motionDurationMid:ht,motionEaseInOutCirc:pt,colorBgContainer:st,colorBorder:Ft,lineWidth:Yt,dotSize:en,colorBgContainerDisabled:Ut,colorTextDisabled:ut,paddingXS:Et,dotColorDisabled:oe,lineType:ve,radioDotDisabledSize:ie,wireframe:Y,colorWhite:Ae}=K,$=`${de}-inner`;return{[`${de}-wrapper`]:Object.assign(Object.assign({},(0,te.Wf)(K)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Ne,cursor:"pointer",[`&${de}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:K.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${de}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Yt}px ${ve} ${Ue}`,borderRadius:"50%",visibility:"hidden",content:'""'},[de]:Object.assign(Object.assign({},(0,te.Wf)(K)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${de}-wrapper:hover &,
&:hover ${$}`]:{borderColor:Ue},[`${de}-input:focus-visible + ${$}`]:Object.assign({},(0,te.oN)(K)),[`${de}:hover::after, ${de}-wrapper:hover &::after`]:{visibility:"visible"},[`${de}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:ke,height:ke,marginBlockStart:ke/-2,marginInlineStart:ke/-2,backgroundColor:Y?Ue:Ae,borderBlockStart:0,borderInlineStart:0,borderRadius:ke,transform:"scale(0)",opacity:0,transition:`all ${Ve} ${pt}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:ke,height:ke,backgroundColor:st,borderColor:Ft,borderStyle:"solid",borderWidth:Yt,borderRadius:"50%",transition:`all ${ht}`},[`${de}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${de}-checked`]:{[$]:{borderColor:Ue,backgroundColor:Y?st:Ue,"&::after":{transform:`scale(${en/ke})`,opacity:1,transition:`all ${Ve} ${pt}`}}},[`${de}-disabled`]:{cursor:"not-allowed",[$]:{backgroundColor:Ut,borderColor:Ft,cursor:"not-allowed","&::after":{backgroundColor:oe}},[`${de}-input`]:{cursor:"not-allowed"},[`${de}-disabled + span`]:{color:ut,cursor:"not-allowed"},[`&${de}-checked`]:{[$]:{"&::after":{transform:`scale(${ie/ke})`}}}},[`span${de} + *`]:{paddingInlineStart:Et,paddingInlineEnd:Et}})}},b=K=>{const{buttonColor:de,controlHeight:Ne,componentCls:Ue,lineWidth:ke,lineType:Ve,colorBorder:ht,motionDurationSlow:pt,motionDurationMid:st,buttonPaddingInline:Ft,fontSize:Yt,buttonBg:en,fontSizeLG:Ut,controlHeightLG:ut,controlHeightSM:Et,paddingXS:oe,borderRadius:ve,borderRadiusSM:ie,borderRadiusLG:Y,buttonCheckedBg:Ae,buttonSolidCheckedColor:$,colorTextDisabled:R,colorBgContainerDisabled:I,buttonCheckedBgDisabled:le,buttonCheckedColorDisabled:re,colorPrimary:J,colorPrimaryHover:Ce,colorPrimaryActive:We,buttonSolidCheckedBg:Pe,buttonSolidCheckedHoverBg:Be,buttonSolidCheckedActiveBg:Xe}=K;return{[`${Ue}-button-wrapper`]:{position:"relative",display:"inline-block",height:Ne,margin:0,paddingInline:Ft,paddingBlock:0,color:de,fontSize:Yt,lineHeight:`${Ne-ke*2}px`,background:en,border:`${ke}px ${Ve} ${ht}`,borderBlockStartWidth:ke+.02,borderInlineStartWidth:0,borderInlineEndWidth:ke,cursor:"pointer",transition:[`color ${st}`,`background ${st}`,`box-shadow ${st}`].join(","),a:{color:de},[`> ${Ue}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-ke,insetInlineStart:-ke,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:ke,paddingInline:0,backgroundColor:ht,transition:`background-color ${pt}`,content:'""'}},"&:first-child":{borderInlineStart:`${ke}px ${Ve} ${ht}`,borderStartStartRadius:ve,borderEndStartRadius:ve},"&:last-child":{borderStartEndRadius:ve,borderEndEndRadius:ve},"&:first-child:last-child":{borderRadius:ve},[`${Ue}-group-large &`]:{height:ut,fontSize:Ut,lineHeight:`${ut-ke*2}px`,"&:first-child":{borderStartStartRadius:Y,borderEndStartRadius:Y},"&:last-child":{borderStartEndRadius:Y,borderEndEndRadius:Y}},[`${Ue}-group-small &`]:{height:Et,paddingInline:oe-ke,paddingBlock:0,lineHeight:`${Et-ke*2}px`,"&:first-child":{borderStartStartRadius:ie,borderEndStartRadius:ie},"&:last-child":{borderStartEndRadius:ie,borderEndEndRadius:ie}},"&:hover":{position:"relative",color:J},"&:has(:focus-visible)":Object.assign({},(0,te.oN)(K)),[`${Ue}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${Ue}-button-wrapper-disabled)`]:{zIndex:1,color:J,background:Ae,borderColor:J,"&::before":{backgroundColor:J},"&:first-child":{borderColor:J},"&:hover":{color:Ce,borderColor:Ce,"&::before":{backgroundColor:Ce}},"&:active":{color:We,borderColor:We,"&::before":{backgroundColor:We}}},[`${Ue}-group-solid &-checked:not(${Ue}-button-wrapper-disabled)`]:{color:$,background:Pe,borderColor:Pe,"&:hover":{color:$,background:Be,borderColor:Be},"&:active":{color:$,background:Xe,borderColor:Xe}},"&-disabled":{color:R,backgroundColor:I,borderColor:ht,cursor:"not-allowed","&:first-child, &:hover":{color:R,backgroundColor:I,borderColor:ht}},[`&-disabled${Ue}-button-wrapper-checked`]:{color:re,backgroundColor:le,borderColor:ht,boxShadow:"none"}}}},T=K=>K-4*2;var G=(0,B.Z)("Radio",K=>{const{controlOutline:de,controlOutlineWidth:Ne,radioSize:Ue}=K,ke=`0 0 0 ${Ne}px ${de}`,Ve=ke,ht=T(Ue),pt=(0,M.TS)(K,{radioDotDisabledSize:ht,radioFocusShadow:ke,radioButtonFocusShadow:Ve});return[W(pt),V(pt),b(pt)]},K=>{const{wireframe:de,padding:Ne,marginXS:Ue,lineWidth:ke,fontSizeLG:Ve,colorText:ht,colorBgContainer:pt,colorTextDisabled:st,controlItemBgActiveDisabled:Ft,colorTextLightSolid:Yt,colorPrimary:en,colorPrimaryHover:Ut,colorPrimaryActive:ut}=K,Et=4,oe=Ve,ve=de?T(oe):oe-(Et+ke)*2;return{radioSize:oe,dotSize:ve,dotColorDisabled:st,buttonSolidCheckedColor:Yt,buttonSolidCheckedBg:en,buttonSolidCheckedHoverBg:Ut,buttonSolidCheckedActiveBg:ut,buttonBg:pt,buttonCheckedBg:pt,buttonColor:ht,buttonCheckedBgDisabled:Ft,buttonCheckedColorDisabled:st,buttonPaddingInline:Ne-ke,wrapperMarginInlineEnd:Ue}}),j=h(14088),be=h(4572),Ee=function(K,de){var Ne={};for(var Ue in K)Object.prototype.hasOwnProperty.call(K,Ue)&&de.indexOf(Ue)<0&&(Ne[Ue]=K[Ue]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Ue=Object.getOwnPropertySymbols(K);ke<Ue.length;ke++)de.indexOf(Ue[ke])<0&&Object.prototype.propertyIsEnumerable.call(K,Ue[ke])&&(Ne[Ue[ke]]=K[Ue[ke]]);return Ne};const xe=(K,de)=>{var Ne,Ue;const ke=U.useContext(C),Ve=U.useContext(O),{getPrefixCls:ht,direction:pt,radio:st}=U.useContext(H.E_),Ft=U.useRef(null),Yt=(0,x.sQ)(de,Ft),{isFormItemInput:en}=U.useContext(L.aM),Ut=We=>{var Pe,Be;(Pe=K.onChange)===null||Pe===void 0||Pe.call(K,We),(Be=ke==null?void 0:ke.onChange)===null||Be===void 0||Be.call(ke,We)},{prefixCls:ut,className:Et,rootClassName:oe,children:ve,style:ie}=K,Y=Ee(K,["prefixCls","className","rootClassName","children","style"]),Ae=ht("radio",ut),$=((ke==null?void 0:ke.optionType)||Ve)==="button",R=$?`${Ae}-button`:Ae,[I,le]=G(Ae),re=Object.assign({},Y),J=U.useContext(y.Z);ke&&(re.name=ke.name,re.onChange=Ut,re.checked=K.value===ke.value,re.disabled=(Ne=re.disabled)!==null&&Ne!==void 0?Ne:ke.disabled),re.disabled=(Ue=re.disabled)!==null&&Ue!==void 0?Ue:J;const Ce=N()(`${R}-wrapper`,{[`${R}-wrapper-checked`]:re.checked,[`${R}-wrapper-disabled`]:re.disabled,[`${R}-wrapper-rtl`]:pt==="rtl",[`${R}-wrapper-in-form-item`]:en},st==null?void 0:st.className,Et,oe,le);return I(U.createElement(j.Z,{component:"Radio",disabled:re.disabled},U.createElement("label",{className:Ce,style:Object.assign(Object.assign({},st==null?void 0:st.style),ie),onMouseEnter:K.onMouseEnter,onMouseLeave:K.onMouseLeave},U.createElement(u.Z,Object.assign({},re,{className:N()(re.className,!$&&be.A),type:"radio",prefixCls:R,ref:Yt})),ve!==void 0?U.createElement("span",null,ve):null)))};var ee=U.forwardRef(xe);const Z=U.forwardRef((K,de)=>{const{getPrefixCls:Ne,direction:Ue}=U.useContext(H.E_),[ke,Ve]=(0,Q.Z)(K.defaultValue,{value:K.value}),ht=Pe=>{const Be=ke,Xe=Pe.target.value;"value"in K||Ve(Xe);const{onChange:rt}=K;rt&&Xe!==Be&&rt(Pe)},{prefixCls:pt,className:st,rootClassName:Ft,options:Yt,buttonStyle:en="outline",disabled:Ut,children:ut,size:Et,style:oe,id:ve,onMouseEnter:ie,onMouseLeave:Y,onFocus:Ae,onBlur:$}=K,R=Ne("radio",pt),I=`${R}-group`,[le,re]=G(R);let J=ut;Yt&&Yt.length>0&&(J=Yt.map(Pe=>typeof Pe=="string"||typeof Pe=="number"?U.createElement(ee,{key:Pe.toString(),prefixCls:R,disabled:Ut,value:Pe,checked:ke===Pe},Pe):U.createElement(ee,{key:`radio-group-value-options-${Pe.value}`,prefixCls:R,disabled:Pe.disabled||Ut,value:Pe.value,checked:ke===Pe.value,title:Pe.title,style:Pe.style},Pe.label)));const Ce=(0,S.Z)(Et),We=N()(I,`${I}-${en}`,{[`${I}-${Ce}`]:Ce,[`${I}-rtl`]:Ue==="rtl"},st,Ft,re);return le(U.createElement("div",Object.assign({},(0,ye.Z)(K,{aria:!0,data:!0}),{className:We,style:oe,onMouseEnter:ie,onMouseLeave:Y,onFocus:Ae,onBlur:$,id:ve,ref:de}),U.createElement(a,{value:{onChange:ht,value:ke,disabled:K.disabled,name:K.name,optionType:K.optionType}},J)))});var me=U.memo(Z),P=function(K,de){var Ne={};for(var Ue in K)Object.prototype.hasOwnProperty.call(K,Ue)&&de.indexOf(Ue)<0&&(Ne[Ue]=K[Ue]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Ue=Object.getOwnPropertySymbols(K);ke<Ue.length;ke++)de.indexOf(Ue[ke])<0&&Object.prototype.propertyIsEnumerable.call(K,Ue[ke])&&(Ne[Ue[ke]]=K[Ue[ke]]);return Ne};const se=(K,de)=>{const{getPrefixCls:Ne}=U.useContext(H.E_),{prefixCls:Ue}=K,ke=P(K,["prefixCls"]),Ve=Ne("radio",Ue);return U.createElement(m,{value:"button"},U.createElement(ee,Object.assign({prefixCls:Ve},ke,{type:"radio",ref:de})))};var X=U.forwardRef(se);const v=ee;v.Button=X,v.Group=me,v.__ANT_RADIO=!0;var E=v},57809:function(Gt,He,h){"use strict";var z=h(92310),N=h.n(z),Q=h(77861),ye=h(2738),U=h(59301),H=h(53487),S=h(62892),pe=h(19080),a=h(36355),C=h(1684),O=h(93891),m=h(19716),u=h(32441),x=h(33234),y=h(14154),L=h(58582),te=h(84443),B=h(66339),M=function(G,j){var be={};for(var Ee in G)Object.prototype.hasOwnProperty.call(G,Ee)&&j.indexOf(Ee)<0&&(be[Ee]=G[Ee]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,Ee=Object.getOwnPropertySymbols(G);xe<Ee.length;xe++)j.indexOf(Ee[xe])<0&&Object.prototype.propertyIsEnumerable.call(G,Ee[xe])&&(be[Ee[xe]]=G[Ee[xe]]);return be};const W="SECRET_COMBOBOX_MODE_DO_NOT_USE",V=(G,j)=>{var be,{prefixCls:Ee,bordered:xe=!0,className:ce,rootClassName:ee,getPopupContainer:Z,popupClassName:me,dropdownClassName:P,listHeight:se=256,placement:X,listItemHeight:v=24,size:E,disabled:K,notFoundContent:de,status:Ne,builtinPlacements:Ue,dropdownMatchSelectWidth:ke,popupMatchSelectWidth:Ve,direction:ht,style:pt,allowClear:st}=G,Ft=M(G,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Yt,getPrefixCls:en,renderEmpty:Ut,direction:ut,virtual:Et,popupMatchSelectWidth:oe,popupOverflow:ve,select:ie}=U.useContext(a.E_),Y=en("select",Ee),Ae=en(),$=ht!=null?ht:ut,{compactSize:R,compactItemClassnames:I}=(0,x.ri)(Y,$),[le,re]=(0,y.Z)(Y),J=U.useMemo(()=>{const{mode:De}=Ft;if(De!=="combobox")return De===W?"combobox":De},[Ft.mode]),Ce=J==="multiple"||J==="tags",We=(0,te.Z)(Ft.suffixIcon,Ft.showArrow),Pe=(be=Ve!=null?Ve:ke)!==null&&be!==void 0?be:oe,{status:Be,hasFeedback:Xe,isFormItemInput:rt,feedbackIcon:Ye}=U.useContext(u.aM),vt=(0,pe.F)(Be,Ne);let wt;de!==void 0?wt=de:J==="combobox"?wt=null:wt=(Ut==null?void 0:Ut("Select"))||U.createElement(O.Z,{componentName:"Select"});const{suffixIcon:mt,itemIcon:Pt,removeIcon:At,clearIcon:w}=(0,B.Z)(Object.assign(Object.assign({},Ft),{multiple:Ce,hasFeedback:Xe,feedbackIcon:Ye,showSuffixIcon:We,prefixCls:Y,showArrow:Ft.showArrow,componentName:"Select"})),A=st===!0?{clearIcon:w}:st,gt=(0,ye.Z)(Ft,["suffixIcon","itemIcon"]),fe=N()(me||P,{[`${Y}-dropdown-${$}`]:$==="rtl"},ee,re),Me=(0,m.Z)(De=>{var Fe;return(Fe=E!=null?E:R)!==null&&Fe!==void 0?Fe:De}),Dn=U.useContext(C.Z),je=K!=null?K:Dn,nt=N()({[`${Y}-lg`]:Me==="large",[`${Y}-sm`]:Me==="small",[`${Y}-rtl`]:$==="rtl",[`${Y}-borderless`]:!xe,[`${Y}-in-form-item`]:rt},(0,pe.Z)(Y,vt,Xe),I,ie==null?void 0:ie.className,ce,ee,re),tt=U.useMemo(()=>X!==void 0?X:$==="rtl"?"bottomRight":"bottomLeft",[X,$]),_e=(0,L.Z)(Ue,ve);return le(U.createElement(Q.ZP,Object.assign({ref:j,virtual:Et,showSearch:ie==null?void 0:ie.showSearch},gt,{style:Object.assign(Object.assign({},ie==null?void 0:ie.style),pt),dropdownMatchSelectWidth:Pe,builtinPlacements:_e,transitionName:(0,S.m)(Ae,"slide-up",Ft.transitionName),listHeight:se,listItemHeight:v,mode:J,prefixCls:Y,placement:tt,direction:$,suffixIcon:mt,menuItemSelectedIcon:Pt,removeIcon:At,allowClear:A,notFoundContent:wt,className:nt,getPopupContainer:Z||Yt,dropdownClassName:fe,disabled:je})))},b=U.forwardRef(V),T=(0,H.Z)(b);b.SECRET_COMBOBOX_MODE_DO_NOT_USE=W,b.Option=Q.Wx,b.OptGroup=Q.Xo,b._InternalPanelDoNotUseOrYouWillBeFired=T,He.default=b},14154:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return b}});var z=h(17313),N=h(74207),Q=h(37613),ye=h(83116),U=h(13826),H=h(92899);const S=T=>{const{optionHeight:G,optionFontSize:j,optionLineHeight:be,optionPadding:Ee}=T;return{position:"relative",display:"block",minHeight:G,padding:Ee,color:T.colorText,fontWeight:"normal",fontSize:j,lineHeight:be,boxSizing:"border-box"}};var a=T=>{const{antCls:G,componentCls:j}=T,be=`${j}-item`,Ee=`&${G}-slide-up-enter${G}-slide-up-enter-active`,xe=`&${G}-slide-up-appear${G}-slide-up-appear-active`,ce=`&${G}-slide-up-leave${G}-slide-up-leave-active`,ee=`${j}-dropdown-placement-`;return[{[`${j}-dropdown`]:Object.assign(Object.assign({},(0,z.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,[`
${Ee}${ee}bottomLeft,
${xe}${ee}bottomLeft
`]:{animationName:U.fJ},[`
${Ee}${ee}topLeft,
${xe}${ee}topLeft,
${Ee}${ee}topRight,
${xe}${ee}topRight
`]:{animationName:U.Qt},[`${ce}${ee}bottomLeft`]:{animationName:U.Uw},[`
${ce}${ee}topLeft,
${ce}${ee}topRight
`]:{animationName:U.ly},"&-hidden":{display:"none"},[`${be}`]:Object.assign(Object.assign({},S(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"},z.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${be}-option-disabled)`]:{backgroundColor:T.optionActiveBg},[`&-selected:not(${be}-option-disabled)`]:{color:T.optionSelectedColor,fontWeight:T.optionSelectedFontWeight,backgroundColor:T.optionSelectedBg,[`${be}-option-state`]:{color:T.colorPrimary}},"&-disabled":{[`&${be}-option-selected`]:{backgroundColor:T.colorBgContainerDisabled},color:T.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:T.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,U.oN)(T,"slide-up"),(0,U.oN)(T,"slide-down"),(0,H.Fm)(T,"move-up"),(0,H.Fm)(T,"move-down")]};const C=2,O=T=>{let{controlHeightSM:G,controlHeight:j,lineWidth:be}=T;const Ee=(j-G)/2-be,xe=Math.ceil(Ee/2);return[Ee,xe]};function m(T,G){const{componentCls:j,iconCls:be}=T,Ee=`${j}-selection-overflow`,xe=T.multipleSelectItemHeight,[ce]=O(T),ee=G?`${j}-${G}`:"";return{[`${j}-multiple${ee}`]:{fontSize:T.fontSize,[Ee]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${j}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${ce-C}px ${C*2}px`,borderRadius:T.borderRadius,[`${j}-show-search&`]:{cursor:"text"},[`${j}-disabled&`]:{background:T.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${C}px 0`,lineHeight:`${xe}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${j}-show-arrow ${j}-selector,
&${j}-allow-clear ${j}-selector
`]:{paddingInlineEnd:T.fontSizeIcon+T.controlPaddingHorizontal},[`${j}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:xe,marginTop:C,marginBottom:C,lineHeight:`${xe-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:C*2,paddingInlineStart:T.paddingXS,paddingInlineEnd:T.paddingXS/2,[`${j}-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,z.Ro)()),{display:"inline-flex",alignItems:"center",color:T.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${be}`]:{verticalAlign:"-0.2em"},"&:hover":{color:T.colorIconHover}})},[`${Ee}-item + ${Ee}-item`]:{[`${j}-selection-search`]:{marginInlineStart:0}},[`${j}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:T.inputPaddingHorizontalBase-ce,"\n &-input,\n &-mirror\n ":{height:xe,fontFamily:T.fontFamily,lineHeight:`${xe}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"}},[`${j}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:T.inputPaddingHorizontalBase,insetInlineEnd:T.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${T.motionDurationSlow}`}}}}var x=T=>{const{componentCls:G}=T,j=(0,Q.TS)(T,{controlHeight:T.controlHeightSM,multipleSelectItemHeight:T.controlHeightXS,borderRadius:T.borderRadiusSM,borderRadiusSM:T.borderRadiusXS}),be=(0,Q.TS)(T,{fontSize:T.fontSizeLG,controlHeight:T.controlHeightLG,multipleSelectItemHeight:T.multipleItemHeightLG,borderRadius:T.borderRadiusLG,borderRadiusSM:T.borderRadius}),[,Ee]=O(T);return[m(T),m(j,"sm"),{[`${G}-multiple${G}-sm`]:{[`${G}-selection-placeholder`]:{insetInline:T.controlPaddingHorizontalSM-T.lineWidth},[`${G}-selection-search`]:{marginInlineStart:Ee}}},m(be,"lg")]};function y(T,G){const{componentCls:j,inputPaddingHorizontalBase:be,borderRadius:Ee}=T,xe=T.controlHeight-T.lineWidth*2,ce=Math.ceil(T.fontSize*1.25),ee=G?`${j}-${G}`:"";return{[`${j}-single${ee}`]:{fontSize:T.fontSize,[`${j}-selector`]:Object.assign(Object.assign({},(0,z.Wf)(T)),{display:"flex",borderRadius:Ee,[`${j}-selection-search`]:{position:"absolute",top:0,insetInlineStart:be,insetInlineEnd:be,bottom:0,"&-input":{width:"100%"}},[`
${j}-selection-item,
${j}-selection-placeholder
`]:{padding:0,lineHeight:`${xe}px`,transition:`all ${T.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${xe}px`}},[`${j}-selection-item`]:{position:"relative",userSelect:"none"},[`${j}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${j}-selection-item:after`,`${j}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${j}-show-arrow ${j}-selection-item,
&${j}-show-arrow ${j}-selection-placeholder
`]:{paddingInlineEnd:ce},[`&${j}-open ${j}-selection-item`]:{color:T.colorTextPlaceholder},[`&:not(${j}-customize-input)`]:{[`${j}-selector`]:{width:"100%",height:T.controlHeight,padding:`0 ${be}px`,[`${j}-selection-search-input`]:{height:xe},"&:after":{lineHeight:`${xe}px`}}},[`&${j}-customize-input`]:{[`${j}-selector`]:{"&:after":{display:"none"},[`${j}-selection-search`]:{position:"static",width:"100%"},[`${j}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${be}px`,"&:after":{display:"none"}}}}}}}function L(T){const{componentCls:G}=T,j=T.controlPaddingHorizontalSM-T.lineWidth;return[y(T),y((0,Q.TS)(T,{controlHeight:T.controlHeightSM,borderRadius:T.borderRadiusSM}),"sm"),{[`${G}-single${G}-sm`]:{[`&:not(${G}-customize-input)`]:{[`${G}-selection-search`]:{insetInlineStart:j,insetInlineEnd:j},[`${G}-selector`]:{padding:`0 ${j}px`},[`&${G}-show-arrow ${G}-selection-search`]:{insetInlineEnd:j+T.fontSize*1.5},[`
&${G}-show-arrow ${G}-selection-item,
&${G}-show-arrow ${G}-selection-placeholder
`]:{paddingInlineEnd:T.fontSize*1.5}}}},y((0,Q.TS)(T,{controlHeight:T.singleItemHeightLG,fontSize:T.fontSizeLG,borderRadius:T.borderRadiusLG}),"lg")]}const te=T=>{const{componentCls:G,selectorBg:j}=T;return{position:"relative",backgroundColor:j,border:`${T.lineWidth}px ${T.lineType} ${T.colorBorder}`,transition:`all ${T.motionDurationMid} ${T.motionEaseInOut}`,input:{cursor:"pointer"},[`${G}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${G}-disabled&`]:{color:T.colorTextDisabled,background:T.colorBgContainerDisabled,cursor:"not-allowed",[`${G}-multiple&`]:{background:T.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},B=function(T,G){let j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:be,borderHoverColor:Ee,outlineColor:xe,antCls:ce}=G,ee=j?{[`${be}-selector`]:{borderColor:Ee}}:{};return{[T]:{[`&:not(${be}-disabled):not(${be}-customize-input):not(${ce}-pagination-size-changer)`]:Object.assign(Object.assign({},ee),{[`${be}-focused& ${be}-selector`]:{borderColor:Ee,boxShadow:`0 0 0 ${G.controlOutlineWidth}px ${xe}`,outline:0},[`&:hover ${be}-selector`]:{borderColor:Ee}})}}},M=T=>{const{componentCls:G}=T;return{[`${G}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},W=T=>{const{componentCls:G,inputPaddingHorizontalBase:j,iconCls:be}=T;return{[G]:Object.assign(Object.assign({},(0,z.Wf)(T)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${G}-customize-input) ${G}-selector`]:Object.assign(Object.assign({},te(T)),M(T)),[`${G}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},z.vS),[`${G}-selection-placeholder`]:Object.assign(Object.assign({},z.vS),{flex:1,color:T.colorTextPlaceholder,pointerEvents:"none"}),[`${G}-arrow`]:Object.assign(Object.assign({},(0,z.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:j,height:T.fontSizeIcon,marginTop:-T.fontSizeIcon/2,color:T.colorTextQuaternary,fontSize:T.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[be]:{verticalAlign:"top",transition:`transform ${T.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${G}-suffix)`]:{pointerEvents:"auto"}},[`${G}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${G}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:j,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":{[`${G}-clear`]:{opacity:1}}}),[`${G}-has-feedback`]:{[`${G}-clear`]:{insetInlineEnd:j+T.fontSize+T.paddingXS}}}},V=T=>{const{componentCls:G}=T;return[{[G]:{[`&-borderless ${G}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${G}-in-form-item`]:{width:"100%"}}},W(T),L(T),x(T),a(T),{[`${G}-rtl`]:{direction:"rtl"}},B(G,(0,Q.TS)(T,{borderHoverColor:T.colorPrimaryHover,outlineColor:T.controlOutline})),B(`${G}-status-error`,(0,Q.TS)(T,{borderHoverColor:T.colorErrorHover,outlineColor:T.colorErrorOutline}),!0),B(`${G}-status-warning`,(0,Q.TS)(T,{borderHoverColor:T.colorWarningHover,outlineColor:T.colorWarningOutline}),!0),(0,N.c)(T,{borderElCls:`${G}-selector`,focusElCls:`${G}-focused`})]};var b=(0,ye.Z)("Select",(T,G)=>{let{rootPrefixCls:j}=G;const be=(0,Q.TS)(T,{rootPrefixCls:j,inputPaddingHorizontalBase:T.paddingSM-1,multipleSelectItemHeight:T.multipleItemHeight});return[V(be)]},T=>{const{fontSize:G,lineHeight:j,controlHeight:be,controlPaddingHorizontal:Ee,zIndexPopupBase:xe,colorText:ce,fontWeightStrong:ee,controlItemBgActive:Z,controlItemBgHover:me,colorBgContainer:P,colorFillSecondary:se,controlHeightLG:X,controlHeightSM:v,colorBgContainerDisabled:E,colorTextDisabled:K}=T;return{zIndexPopup:xe+50,optionSelectedColor:ce,optionSelectedFontWeight:ee,optionSelectedBg:Z,optionActiveBg:me,optionPadding:`${(be-G*j)/2}px ${Ee}px`,optionFontSize:G,optionLineHeight:j,optionHeight:be,selectorBg:P,clearBg:P,singleItemHeightLG:X,multipleItemBg:se,multipleItemBorderColor:"transparent",multipleItemHeight:v,multipleItemHeightLG:be,multipleSelectorBgDisabled:E,multipleItemColorDisabled:K,multipleItemBorderColorDisabled:"transparent"}})},58582:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return N}});const z=Q=>{const U={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Q==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},U),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},U),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},U),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},U),{points:["br","tr"],offset:[0,-4]})}};function N(Q,ye){return Q||z(ye)}},84443:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return z}});function z(N,Q){return Q!==void 0?Q:N!==null}},66339:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return pe}});var z=h(40001),N=h(19248),Q=h(99267),ye=h(84105),U=h(58617),H=h(47472),S=h(59301);function pe(a){let{suffixIcon:C,clearIcon:O,menuItemSelectedIcon:m,removeIcon:u,loading:x,multiple:y,hasFeedback:L,prefixCls:te,showSuffixIcon:B,feedbackIcon:M,showArrow:W,componentName:V}=a;const b=O!=null?O:S.createElement(N.Z,null),T=Ee=>C===null&&!L&&!W?null:S.createElement(S.Fragment,null,B!==!1&&Ee,L&&M);let G=null;if(C!==void 0)G=T(C);else if(x)G=T(S.createElement(U.Z,{spin:!0}));else{const Ee=`${te}-suffix`;G=xe=>{let{open:ce,showSearch:ee}=xe;return T(ce&&ee?S.createElement(H.Z,{className:Ee}):S.createElement(ye.Z,{className:Ee}))}}let j=null;m!==void 0?j=m:y?j=S.createElement(z.Z,null):j=null;let be=null;return u!==void 0?be=u:be=S.createElement(Q.Z,null),{clearIcon:b,suffixIcon:G,itemIcon:j,removeIcon:be}}},81327:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return te}});var z=h(59301),N=h(92310),Q=h.n(N),ye=h(11592),U=h(36355),H=h(33234);const S=z.createContext({latestIndex:0}),pe=S.Provider;var C=B=>{let{className:M,index:W,children:V,split:b,style:T}=B;const{latestIndex:G}=z.useContext(S);return V==null?null:z.createElement(z.Fragment,null,z.createElement("div",{className:M,style:T},V),W<G&&b&&z.createElement("span",{className:`${M}-split`},b))},O=h(2856);function m(B){return["small","middle","large"].includes(B)}function u(B){return B?typeof B=="number"&&!Number.isNaN(B):!1}var x=function(B,M){var W={};for(var V in B)Object.prototype.hasOwnProperty.call(B,V)&&M.indexOf(V)<0&&(W[V]=B[V]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,V=Object.getOwnPropertySymbols(B);b<V.length;b++)M.indexOf(V[b])<0&&Object.prototype.propertyIsEnumerable.call(B,V[b])&&(W[V[b]]=B[V[b]]);return W};const L=z.forwardRef((B,M)=>{var W,V;const{getPrefixCls:b,space:T,direction:G}=z.useContext(U.E_),{size:j=(T==null?void 0:T.size)||"small",align:be,className:Ee,rootClassName:xe,children:ce,direction:ee="horizontal",prefixCls:Z,split:me,style:P,wrap:se=!1,classNames:X,styles:v}=B,E=x(B,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[K,de]=Array.isArray(j)?j:[j,j],Ne=m(de),Ue=m(K),ke=u(de),Ve=u(K),ht=(0,ye.Z)(ce,{keepEmpty:!0}),pt=be===void 0&&ee==="horizontal"?"center":be,st=b("space",Z),[Ft,Yt]=(0,O.Z)(st),en=Q()(st,T==null?void 0:T.className,Yt,`${st}-${ee}`,{[`${st}-rtl`]:G==="rtl",[`${st}-align-${pt}`]:pt,[`${st}-gap-row-${de}`]:Ne,[`${st}-gap-col-${K}`]:Ue},Ee,xe),Ut=Q()(`${st}-item`,(W=X==null?void 0:X.item)!==null&&W!==void 0?W:(V=T==null?void 0:T.classNames)===null||V===void 0?void 0:V.item);let ut=0;const Et=ht.map((ie,Y)=>{var Ae,$;ie!=null&&(ut=Y);const R=ie&&ie.key||`${Ut}-${Y}`;return z.createElement(C,{className:Ut,key:R,index:Y,split:me,style:(Ae=v==null?void 0:v.item)!==null&&Ae!==void 0?Ae:($=T==null?void 0:T.styles)===null||$===void 0?void 0:$.item},ie)}),oe=z.useMemo(()=>({latestIndex:ut}),[ut]);if(ht.length===0)return null;const ve={};return se&&(ve.flexWrap="wrap"),!Ue&&Ve&&(ve.columnGap=K),!Ne&&ke&&(ve.rowGap=de),Ft(z.createElement("div",Object.assign({ref:M,className:en,style:Object.assign(Object.assign(Object.assign({},ve),T==null?void 0:T.style),P)},E),z.createElement(pe,{value:oe},Et)))});L.Compact=H.ZP;var te=L},8378:function(Gt,He){"use strict";const h=z=>({[z.componentCls]:{[`${z.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${z.motionDurationMid} ${z.motionEaseInOut},
opacity ${z.motionDurationMid} ${z.motionEaseInOut} !important`}},[`${z.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${z.motionDurationMid} ${z.motionEaseInOut},
opacity ${z.motionDurationMid} ${z.motionEaseInOut} !important`}}});He.Z=h},92899:function(Gt,He,h){"use strict";h.d(He,{Fm:function(){return m}});var z=h(93083),N=h(95406);const Q=new z.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ye=new z.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),U=new z.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),H=new z.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),S=new z.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),pe=new z.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 z.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),C=new z.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),O={"move-up":{inKeyframes:a,outKeyframes:C},"move-down":{inKeyframes:Q,outKeyframes:ye},"move-left":{inKeyframes:U,outKeyframes:H},"move-right":{inKeyframes:S,outKeyframes:pe}},m=(u,x)=>{const{antCls:y}=u,L=`${y}-${x}`,{inKeyframes:te,outKeyframes:B}=O[x];return[(0,N.R)(L,te,B,u.motionDurationMid),{[`
${L}-enter,
${L}-appear
`]:{opacity:0,animationTimingFunction:u.motionEaseOutCirc},[`${L}-leave`]:{animationTimingFunction:u.motionEaseInOutCirc}}]}},13826:function(Gt,He,h){"use strict";h.d(He,{Qt:function(){return U},Uw:function(){return ye},fJ:function(){return Q},ly:function(){return H},oN:function(){return m}});var z=h(93083),N=h(95406);const Q=new z.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),ye=new z.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),U=new z.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),H=new z.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),S=new z.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),pe=new z.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),a=new z.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),C=new z.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),O={"slide-up":{inKeyframes:Q,outKeyframes:ye},"slide-down":{inKeyframes:U,outKeyframes:H},"slide-left":{inKeyframes:S,outKeyframes:pe},"slide-right":{inKeyframes:a,outKeyframes:C}},m=(u,x)=>{const{antCls:y}=u,L=`${y}-${x}`,{inKeyframes:te,outKeyframes:B}=O[x];return[(0,N.R)(L,te,B,u.motionDurationMid),{[`
${L}-enter,
${L}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:u.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${L}-leave`]:{animationTimingFunction:u.motionEaseInQuint}}]}},15969:function(Gt,He,h){"use strict";h.d(He,{N:function(){return z}});const z=N=>({color:N.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${N.motionDurationSlow}`,"&:focus, &:hover":{color:N.colorLinkHover},"&:active":{color:N.colorLinkActive}})},19447:function(Gt,He,h){"use strict";h.d(He,{ZP:function(){return U},fS:function(){return Q},qN:function(){return N}});var z=h(47585);const N=8;function Q(H){const S=N,{contentRadius:pe,limitVerticalRadius:a}=H,C=pe>12?pe+2:12;return{dropdownArrowOffset:C,dropdownArrowOffsetVertical:a?S:C}}function ye(H,S){return H?S:{}}function U(H,S){const{componentCls:pe,sizePopupArrow:a,borderRadiusXS:C,borderRadiusOuter:O,boxShadowPopoverArrow:m}=H,{colorBg:u,contentRadius:x=H.borderRadiusLG,limitVerticalRadius:y,arrowDistance:L=0,arrowPlacement:te={left:!0,right:!0,top:!0,bottom:!0}}=S,{dropdownArrowOffsetVertical:B,dropdownArrowOffset:M}=Q({contentRadius:x,limitVerticalRadius:y});return{[pe]:Object.assign(Object.assign(Object.assign(Object.assign({[`${pe}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,z.r)(a,C,O,u,m)),{"&:before":{background:u}})]},ye(!!te.top,{[[`&-placement-top ${pe}-arrow`,`&-placement-topLeft ${pe}-arrow`,`&-placement-topRight ${pe}-arrow`].join(",")]:{bottom:L,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${pe}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${pe}-arrow`]:{left:{_skip_check_:!0,value:M}},[`&-placement-topRight ${pe}-arrow`]:{right:{_skip_check_:!0,value:M}}})),ye(!!te.bottom,{[[`&-placement-bottom ${pe}-arrow`,`&-placement-bottomLeft ${pe}-arrow`,`&-placement-bottomRight ${pe}-arrow`].join(",")]:{top:L,transform:"translateY(-100%)"},[`&-placement-bottom ${pe}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${pe}-arrow`]:{left:{_skip_check_:!0,value:M}},[`&-placement-bottomRight ${pe}-arrow`]:{right:{_skip_check_:!0,value:M}}})),ye(!!te.left,{[[`&-placement-left ${pe}-arrow`,`&-placement-leftTop ${pe}-arrow`,`&-placement-leftBottom ${pe}-arrow`].join(",")]:{right:{_skip_check_:!0,value:L},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${pe}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${pe}-arrow`]:{top:B},[`&-placement-leftBottom ${pe}-arrow`]:{bottom:B}})),ye(!!te.right,{[[`&-placement-right ${pe}-arrow`,`&-placement-rightTop ${pe}-arrow`,`&-placement-rightBottom ${pe}-arrow`].join(",")]:{left:{_skip_check_:!0,value:L},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${pe}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${pe}-arrow`]:{top:B},[`&-placement-rightBottom ${pe}-arrow`]:{bottom:B}}))}}},47585:function(Gt,He,h){"use strict";h.d(He,{r:function(){return z}});const z=(N,Q,ye,U,H)=>{const S=N/2,pe=0,a=S,C=ye*1/Math.sqrt(2),O=S-ye*(1-1/Math.sqrt(2)),m=S-Q*(1/Math.sqrt(2)),u=ye*(Math.sqrt(2)-1)+Q*(1/Math.sqrt(2)),x=2*S-m,y=u,L=2*S-C,te=O,B=2*S-pe,M=a,W=S*Math.sqrt(2)+ye*(Math.sqrt(2)-2),V=ye*(Math.sqrt(2)-1);return{pointerEvents:"none",width:N,height:N,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:N,height:N/2,background:U,clipPath:{_multi_value_:!0,value:[`polygon(${V}px 100%, 50% ${V}px, ${2*S-V}px 100%, ${V}px 100%)`,`path('M ${pe} ${a} A ${ye} ${ye} 0 0 0 ${C} ${O} L ${m} ${u} A ${Q} ${Q} 0 0 1 ${x} ${y} L ${L} ${te} A ${ye} ${ye} 0 0 0 ${B} ${M} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:W,height:W,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Q}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:H,zIndex:0,background:"transparent"}}}},1710:function(Gt,He,h){"use strict";h.d(He,{default:function(){return Gs}});var z={},N="rc-table-internal-hook",Q=h(72071),ye=h(6089),U=h(34280),H=h(13697),S=h(59301),pe=h(4676);function a(ne){var ue=S.createContext(void 0),$e=function(et){var at=et.value,xt=et.children,_t=S.useRef(at);_t.current=at;var yt=S.useState(function(){return{getValue:function(){return _t.current},listeners:new Set}}),Ot=(0,Q.Z)(yt,1),Se=Ot[0];return(0,U.Z)(function(){(0,pe.unstable_batchedUpdates)(function(){Se.listeners.forEach(function(Lt){Lt(at)})})},[at]),S.createElement(ue.Provider,{value:Se},xt)};return{Context:ue,Provider:$e,defaultValue:ne}}function C(ne,ue){var $e=(0,ye.Z)(typeof ue=="function"?ue:function(Lt){if(ue===void 0)return Lt;if(!Array.isArray(ue))return Lt[ue];var ln={};return ue.forEach(function(sn){ln[sn]=Lt[sn]}),ln}),Ge=S.useContext(ne==null?void 0:ne.Context),et=Ge||{},at=et.listeners,xt=et.getValue,_t=S.useRef();_t.current=$e(Ge?xt():ne==null?void 0:ne.defaultValue);var yt=S.useState({}),Ot=(0,Q.Z)(yt,2),Se=Ot[1];return(0,U.Z)(function(){if(!Ge)return;function Lt(ln){var sn=$e(ln);(0,H.Z)(_t.current,sn,!0)||Se({})}return at.add(Lt),function(){at.delete(Lt)}},[Ge]),_t.current}var O=h(96663),m=h(8654);function u(){var ne=S.createContext(null);function ue(){return S.useContext(ne)}function $e(et,at){var xt=(0,m.Yr)(et),_t=function(Ot,Se){var Lt=xt?{ref:Se}:{},ln=S.useRef(0),sn=S.useRef(Ot),nn=ue();return nn!==null?S.createElement(et,(0,O.Z)({},Ot,Lt)):((!at||at(sn.current,Ot))&&(ln.current+=1),sn.current=Ot,S.createElement(ne.Provider,{value:ln.current},S.createElement(et,(0,O.Z)({},Ot,Lt))))};return xt?S.forwardRef(_t):_t}function Ge(et,at){var xt=(0,m.Yr)(et),_t=function(Ot,Se){var Lt=xt?{ref:Se}:{};return ue(),S.createElement(et,(0,O.Z)({},Ot,Lt))};return xt?S.memo(S.forwardRef(_t),at):S.memo(_t,at)}return{makeImmutable:$e,responseImmutable:Ge,useImmutableMark:ue}}var x=u(),y=x.makeImmutable,L=x.responseImmutable,te=x.useImmutableMark,B=u(),M=B.makeImmutable,W=B.responseImmutable,V=B.useImmutableMark,b=a(),T=b;function G(ne,ue){var $e=S.useRef(0);$e.current+=1;var Ge=S.useRef(ne),et=[];Object.keys(ne||{}).map(function(xt){var _t;(ne==null?void 0:ne[xt])!==((_t=Ge.current)===null||_t===void 0?void 0:_t[xt])&&et.push(xt)}),Ge.current=ne;var at=S.useRef([]);return et.length&&(at.current=et),S.useDebugValue($e.current),S.useDebugValue(at.current.join(", ")),ue&&console.log("".concat(ue,":"),$e.current,at.current),$e.current}var j=null,be=S.memo(function(){var ne=G();return S.createElement("h1",null,"Render Times: ",ne)});be.displayName="RenderBlock";var Ee=h(20135),xe=h(44127),ce=h(90493),ee=h(92310),Z=h.n(ee),me=h(80547),P=h(97938),se=h(48736),X=S.createContext({renderWithProps:!1}),v=X,E="RC_TABLE_KEY";function K(ne){return ne==null?[]:Array.isArray(ne)?ne:[ne]}function de(ne){var ue=[],$e={};return ne.forEach(function(Ge){for(var et=Ge||{},at=et.key,xt=et.dataIndex,_t=at||K(xt).join("-")||E;$e[_t];)_t="".concat(_t,"_next");$e[_t]=!0,ue.push(_t)}),ue}function Ne(ne){return ne!=null}function Ue(ne){return ne&&(0,Ee.Z)(ne)==="object"&&!Array.isArray(ne)&&!S.isValidElement(ne)}function ke(ne,ue,$e,Ge,et,at){var xt=S.useContext(v),_t=V(),yt=(0,me.Z)(function(){if(Ne(Ge))return[Ge];var Ot=ue==null||ue===""?[]:Array.isArray(ue)?ue:[ue],Se=(0,P.Z)(ne,Ot),Lt=Se,ln=void 0;if(et){var sn=et(Se,ne,$e);Ue(sn)?(Lt=sn.children,ln=sn.props,xt.renderWithProps=!0):Lt=sn}return[Lt,ln]},[_t,ne,Ge,ue,et,$e],function(Ot,Se){if(at){var Lt=(0,Q.Z)(Ot,2),ln=Lt[1],sn=(0,Q.Z)(Se,2),nn=sn[1];return at(nn,ln)}return xt.renderWithProps?!0:!(0,H.Z)(Ot,Se,!0)});return yt}function Ve(ne,ue,$e,Ge){var et=ne+ue-1;return ne<=Ge&&et>=$e}function ht(ne,ue){return C(T,function($e){var Ge=Ve(ne,ue||1,$e.hoverStartRow,$e.hoverEndRow);return[Ge,$e.onHover]})}var pt=function(ue){var $e=ue.ellipsis,Ge=ue.rowType,et=ue.children,at,xt=$e===!0?{showTitle:!0}:$e;return xt&&(xt.showTitle||Ge==="header")&&(typeof et=="string"||typeof et=="number"?at=et.toString():S.isValidElement(et)&&typeof et.props.children=="string"&&(at=et.props.children)),at};function st(ne){var ue,$e,Ge,et,at,xt,_t,yt,Ot=ne.component,Se=ne.children,Lt=ne.ellipsis,ln=ne.scope,sn=ne.prefixCls,nn=ne.className,lt=ne.align,Ln=ne.record,$n=ne.render,Nn=ne.dataIndex,Kn=ne.renderIndex,br=ne.shouldCellUpdate,xr=ne.index,hr=ne.rowType,Pr=ne.colSpan,Fr=ne.rowSpan,jn=ne.fixLeft,pr=ne.fixRight,Vn=ne.firstFixLeft,kn=ne.lastFixLeft,fr=ne.firstFixRight,Or=ne.lastFixRight,Wr=ne.appendNode,q=ne.additionalProps,l=q===void 0?{}:q,d=ne.isSticky,f="".concat(sn,"-cell"),g=C(T,["supportSticky","allColumnsFixedLeft"]),k=g.supportSticky,ae=g.allColumnsFixedLeft,Re=ke(Ln,Nn,Kn,Se,$n,br),Le=(0,Q.Z)(Re,2),qe=Le[0],dt=Le[1],Ct={},Kt=typeof jn=="number"&&k,pn=typeof pr=="number"&&k;Kt&&(Ct.position="sticky",Ct.left=jn),pn&&(Ct.position="sticky",Ct.right=pr);var jt=(ue=($e=(Ge=dt==null?void 0:dt.colSpan)!==null&&Ge!==void 0?Ge:l.colSpan)!==null&&$e!==void 0?$e:Pr)!==null&&ue!==void 0?ue:1,Jt=(et=(at=(xt=dt==null?void 0:dt.rowSpan)!==null&&xt!==void 0?xt:l.rowSpan)!==null&&at!==void 0?at:Fr)!==null&&et!==void 0?et:1,un=ht(xr,Jt),Cn=(0,Q.Z)(un,2),ir=Cn[0],Tn=Cn[1],er=function(bi){var Ji;Ln&&Tn(xr,xr+Jt-1),l==null||(Ji=l.onMouseEnter)===null||Ji===void 0||Ji.call(l,bi)},Sr=function(bi){var Ji;Ln&&Tn(-1,-1),l==null||(Ji=l.onMouseLeave)===null||Ji===void 0||Ji.call(l,bi)};if(jt===0||Jt===0)return null;var wr=(_t=l.title)!==null&&_t!==void 0?_t:pt({rowType:hr,ellipsis:Lt,children:qe}),ri=Z()(f,nn,(yt={},(0,ce.Z)(yt,"".concat(f,"-fix-left"),Kt&&k),(0,ce.Z)(yt,"".concat(f,"-fix-left-first"),Vn&&k),(0,ce.Z)(yt,"".concat(f,"-fix-left-last"),kn&&k),(0,ce.Z)(yt,"".concat(f,"-fix-left-all"),kn&&ae&&k),(0,ce.Z)(yt,"".concat(f,"-fix-right"),pn&&k),(0,ce.Z)(yt,"".concat(f,"-fix-right-first"),fr&&k),(0,ce.Z)(yt,"".concat(f,"-fix-right-last"),Or&&k),(0,ce.Z)(yt,"".concat(f,"-ellipsis"),Lt),(0,ce.Z)(yt,"".concat(f,"-with-append"),Wr),(0,ce.Z)(yt,"".concat(f,"-fix-sticky"),(Kt||pn)&&d&&k),(0,ce.Z)(yt,"".concat(f,"-row-hover"),!dt&&ir),yt),l.className,dt==null?void 0:dt.className),ii={};lt&&(ii.textAlign=lt);var Zi=(0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)({},Ct),l.style),ii),dt==null?void 0:dt.style),ci=qe;return(0,Ee.Z)(ci)==="object"&&!Array.isArray(ci)&&!S.isValidElement(ci)&&(ci=null),Lt&&(kn||fr)&&(ci=S.createElement("span",{className:"".concat(f,"-content")},ci)),S.createElement(Ot,(0,O.Z)({},dt,l,{className:ri,style:Zi,title:wr,scope:ln,onMouseEnter:er,onMouseLeave:Sr,colSpan:jt!==1?jt:null,rowSpan:Jt!==1?Jt:null}),Wr,ci)}var Ft=S.memo(st);function Yt(ne,ue,$e,Ge,et,at){var xt=$e[ne]||{},_t=$e[ue]||{},yt,Ot;xt.fixed==="left"?yt=Ge.left[et==="rtl"?ue:ne]:_t.fixed==="right"&&(Ot=Ge.right[et==="rtl"?ne:ue]);var Se=!1,Lt=!1,ln=!1,sn=!1,nn=$e[ue+1],lt=$e[ne-1],Ln=!(at!=null&&at.children);if(et==="rtl"){if(yt!==void 0){var $n=lt&&lt.fixed==="left";sn=!$n&&Ln}else if(Ot!==void 0){var Nn=nn&&nn.fixed==="right";ln=!Nn&&Ln}}else if(yt!==void 0){var Kn=nn&&nn.fixed==="left";Se=!Kn&&Ln}else if(Ot!==void 0){var br=lt&&lt.fixed==="right";Lt=!br&&Ln}return{fixLeft:yt,fixRight:Ot,lastFixLeft:Se,firstFixRight:Lt,lastFixRight:ln,firstFixLeft:sn,isSticky:Ge.isSticky}}var en=S.createContext({}),Ut=en;function ut(ne){var ue=ne.className,$e=ne.index,Ge=ne.children,et=ne.colSpan,at=et===void 0?1:et,xt=ne.rowSpan,_t=ne.align,yt=C(T,["prefixCls","direction"]),Ot=yt.prefixCls,Se=yt.direction,Lt=S.useContext(Ut),ln=Lt.scrollColumnIndex,sn=Lt.stickyOffsets,nn=Lt.flattenColumns,lt=Lt.columns,Ln=$e+at-1,$n=Ln+1===ln?at+1:at,Nn=Yt($e,$e+$n-1,nn,sn,Se,lt==null?void 0:lt[$e]);return S.createElement(Ft,(0,O.Z)({className:ue,index:$e,component:"td",prefixCls:Ot,record:null,dataIndex:null,align:_t,colSpan:$n,rowSpan:xt,render:function(){return Ge}},Nn))}var Et=h(6620),oe=["children"];function ve(ne){var ue=ne.children,$e=(0,Et.Z)(ne,oe);return S.createElement("tr",$e,ue)}function ie(ne){var ue=ne.children;return ue}ie.Row=ve,ie.Cell=ut;var Y=ie;function Ae(ne){var ue=ne.children,$e=ne.stickyOffsets,Ge=ne.flattenColumns,et=ne.columns,at=C(T,"prefixCls"),xt=Ge.length-1,_t=Ge[xt],yt=S.useMemo(function(){return{stickyOffsets:$e,flattenColumns:Ge,scrollColumnIndex:_t!=null&&_t.scrollbar?xt:null,columns:et}},[_t,Ge,xt,$e,et]);return S.createElement(Ut.Provider,{value:yt},S.createElement("tfoot",{className:"".concat(at,"-summary")},ue))}var $=W(Ae),R=Y,I=h(70425),le=h(29301),re=h(29194),J=h(24514),Ce=h(75152),We=h(26112);function Pe(ne,ue,$e,Ge,et,at,xt){ne.push({record:ue,indent:$e,index:xt});var _t=at(ue),yt=et==null?void 0:et.has(_t);if(ue&&Array.isArray(ue[Ge])&&yt)for(var Ot=0;Ot<ue[Ge].length;Ot+=1)Pe(ne,ue[Ge][Ot],$e+1,Ge,et,at,Ot)}function Be(ne,ue,$e,Ge){var et=S.useMemo(function(){if($e!=null&&$e.size){for(var at=[],xt=0;xt<(ne==null?void 0:ne.length);xt+=1){var _t=ne[xt];Pe(at,_t,0,ue,$e,Ge,xt)}return at}return ne==null?void 0:ne.map(function(yt,Ot){return{record:yt,indent:0,index:Ot}})},[ne,ue,$e,Ge]);return et}function Xe(ne){var ue=ne.prefixCls,$e=ne.children,Ge=ne.component,et=ne.cellComponent,at=ne.className,xt=ne.expanded,_t=ne.colSpan,yt=ne.isEmpty,Ot=C(T,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Se=Ot.scrollbarSize,Lt=Ot.fixHeader,ln=Ot.fixColumn,sn=Ot.componentWidth,nn=Ot.horizonScroll,lt=$e;return(yt?nn&&sn:ln)&&(lt=S.createElement("div",{style:{width:sn-(Lt?Se:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(ue,"-expanded-row-fixed")},lt)),S.createElement(Ge,{className:at,style:{display:xt?null:"none"}},S.createElement(Ft,{component:et,prefixCls:ue,colSpan:_t},lt))}var rt=Xe;function Ye(ne,ue,$e,Ge){var et=C(T,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),at=et.flattenColumns,xt=et.expandableType,_t=et.expandedKeys,yt=et.childrenColumnName,Ot=et.onTriggerExpand,Se=et.rowExpandable,Lt=et.onRow,ln=et.expandRowByClick,sn=et.rowClassName,nn=xt==="nest",lt=xt==="row"&&(!Se||Se(ne)),Ln=lt||nn,$n=_t&&_t.has(ue),Nn=yt&&ne&&ne[yt],Kn=(0,I.useEvent)(Ot),br=Lt==null?void 0:Lt(ne,$e),xr=br==null?void 0:br.onClick,hr=function(pr){ln&&Ln&&Ot(ne,pr);for(var Vn=arguments.length,kn=new Array(Vn>1?Vn-1:0),fr=1;fr<Vn;fr++)kn[fr-1]=arguments[fr];xr==null||xr.apply(void 0,[pr].concat(kn))},Pr;typeof sn=="string"?Pr=sn:typeof sn=="function"&&(Pr=sn(ne,$e,Ge));var Fr=de(at);return(0,xe.Z)((0,xe.Z)({},et),{},{columnsKey:Fr,nestExpandable:nn,expanded:$n,hasNestChildren:Nn,record:ne,onTriggerExpand:Kn,rowSupportExpand:lt,expandable:Ln,rowProps:(0,xe.Z)((0,xe.Z)({},br),{},{className:Z()(Pr,br==null?void 0:br.className),onClick:hr})})}function vt(ne,ue,$e,Ge,et){var at=ne.record,xt=ne.prefixCls,_t=ne.columnsKey,yt=ne.fixedInfoList,Ot=ne.expandIconColumnIndex,Se=ne.nestExpandable,Lt=ne.indentSize,ln=ne.expandIcon,sn=ne.expanded,nn=ne.hasNestChildren,lt=ne.onTriggerExpand,Ln=_t[$e],$n=yt[$e],Nn;$e===(Ot||0)&&Se&&(Nn=S.createElement(S.Fragment,null,S.createElement("span",{style:{paddingLeft:"".concat(Lt*Ge,"px")},className:"".concat(xt,"-row-indent indent-level-").concat(Ge)}),ln({prefixCls:xt,expanded:sn,expandable:nn,record:at,onExpand:lt})));var Kn;return ue.onCell&&(Kn=ue.onCell(at,et)),{key:Ln,fixedInfo:$n,appendCellNode:Nn,additionalCellProps:Kn||{}}}function wt(ne){var ue=ne.className,$e=ne.style,Ge=ne.record,et=ne.index,at=ne.renderIndex,xt=ne.rowKey,_t=ne.indent,yt=_t===void 0?0:_t,Ot=ne.rowComponent,Se=ne.cellComponent,Lt=ne.scopeCellComponent,ln=Ye(Ge,xt,et,yt),sn=ln.prefixCls,nn=ln.flattenColumns,lt=ln.expandedRowClassName,Ln=ln.expandedRowRender,$n=ln.rowProps,Nn=ln.expanded,Kn=ln.rowSupportExpand,br=S.useState(!1),xr=(0,Q.Z)(br,2),hr=xr[0],Pr=xr[1];S.useEffect(function(){Nn&&Pr(!0)},[Nn]);var Fr=S.createElement(Ot,(0,O.Z)({},$n,{"data-row-key":xt,className:Z()(ue,"".concat(sn,"-row"),"".concat(sn,"-row-level-").concat(yt),$n==null?void 0:$n.className),style:(0,xe.Z)((0,xe.Z)({},$e),$n==null?void 0:$n.style)}),nn.map(function(kn,fr){var Or=kn.render,Wr=kn.dataIndex,q=kn.className,l=vt(ln,kn,fr,yt,et),d=l.key,f=l.fixedInfo,g=l.appendCellNode,k=l.additionalCellProps;return S.createElement(Ft,(0,O.Z)({className:q,ellipsis:kn.ellipsis,align:kn.align,scope:kn.rowScope,component:kn.rowScope?Lt:Se,prefixCls:sn,key:d,record:Ge,index:et,renderIndex:at,dataIndex:Wr,render:Or,shouldCellUpdate:kn.shouldCellUpdate},f,{appendNode:g,additionalProps:k}))})),jn;if(Kn&&(hr||Nn)){var pr=Ln(Ge,et,yt+1,Nn),Vn=lt&&lt(Ge,et,yt);jn=S.createElement(rt,{expanded:Nn,className:Z()("".concat(sn,"-expanded-row"),"".concat(sn,"-expanded-row-level-").concat(yt+1),Vn),prefixCls:sn,component:Ot,cellComponent:Se,colSpan:nn.length,isEmpty:!1},pr)}return S.createElement(S.Fragment,null,Fr,jn)}wt.displayName="BodyRow";var mt=W(wt);function Pt(ne){var ue=ne.columnKey,$e=ne.onColumnResize,Ge=S.useRef();return S.useEffect(function(){Ge.current&&$e(ue,Ge.current.offsetWidth)},[]),S.createElement(le.Z,{data:ue},S.createElement("td",{ref:Ge,style:{padding:0,border:0,height:0}},S.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function At(ne){var ue=ne.prefixCls,$e=ne.columnsKey,Ge=ne.onColumnResize;return S.createElement("tr",{"aria-hidden":"true",className:"".concat(ue,"-measure-row"),style:{height:0,fontSize:0}},S.createElement(le.Z.Collection,{onBatchResize:function(at){at.forEach(function(xt){var _t=xt.data,yt=xt.size;Ge(_t,yt.offsetWidth)})}},$e.map(function(et){return S.createElement(Pt,{key:et,columnKey:et,onColumnResize:Ge})})))}function w(ne){var ue=ne.data,$e=ne.measureColumnWidth,Ge=C(T,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),et=Ge.prefixCls,at=Ge.getComponent,xt=Ge.onColumnResize,_t=Ge.flattenColumns,yt=Ge.getRowKey,Ot=Ge.expandedKeys,Se=Ge.childrenColumnName,Lt=Ge.emptyNode,ln=Be(ue,Se,Ot,yt),sn=S.useRef({renderWithProps:!1}),nn=at(["body","wrapper"],"tbody"),lt=at(["body","row"],"tr"),Ln=at(["body","cell"],"td"),$n=at(["body","cell"],"th"),Nn;ue.length?Nn=ln.map(function(br,xr){var hr=br.record,Pr=br.indent,Fr=br.index,jn=yt(hr,xr);return S.createElement(mt,{key:jn,rowKey:jn,record:hr,index:xr,renderIndex:Fr,rowComponent:lt,cellComponent:Ln,scopeCellComponent:$n,getRowKey:yt,indent:Pr})}):Nn=S.createElement(rt,{expanded:!0,className:"".concat(et,"-placeholder"),prefixCls:et,component:lt,cellComponent:Ln,colSpan:_t.length,isEmpty:!0},Lt);var Kn=de(_t);return S.createElement(v.Provider,{value:sn.current},S.createElement(nn,{className:"".concat(et,"-tbody")},$e&&S.createElement(At,{prefixCls:et,columnsKey:Kn,onColumnResize:xt}),Nn))}w.displayName="Body";var A=W(w),gt=["expandable"],fe="RC_TABLE_INTERNAL_COL_DEFINE";function Me(ne){var ue=ne.expandable,$e=(0,Et.Z)(ne,gt),Ge;return"expandable"in ne?Ge=(0,xe.Z)((0,xe.Z)({},$e),ue):Ge=$e,Ge.showExpandColumn===!1&&(Ge.expandIconColumnIndex=-1),Ge}var Dn=["columnType"];function je(ne){for(var ue=ne.colWidths,$e=ne.columns,Ge=ne.columCount,et=[],at=Ge||$e.length,xt=!1,_t=at-1;_t>=0;_t-=1){var yt=ue[_t],Ot=$e&&$e[_t],Se=Ot&&Ot[fe];if(yt||Se||xt){var Lt=Se||{},ln=Lt.columnType,sn=(0,Et.Z)(Lt,Dn);et.unshift(S.createElement("col",(0,O.Z)({key:_t,style:{width:yt}},sn))),xt=!0}}return S.createElement("colgroup",null,et)}var nt=je,tt=h(19127),_e=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function De(ne,ue){return(0,S.useMemo)(function(){for(var $e=[],Ge=0;Ge<ue;Ge+=1){var et=ne[Ge];if(et!==void 0)$e[Ge]=et;else return null}return $e},[ne.join("_"),ue])}var Fe=S.forwardRef(function(ne,ue){var $e=ne.className,Ge=ne.noData,et=ne.columns,at=ne.flattenColumns,xt=ne.colWidths,_t=ne.columCount,yt=ne.stickyOffsets,Ot=ne.direction,Se=ne.fixHeader,Lt=ne.stickyTopOffset,ln=ne.stickyBottomOffset,sn=ne.stickyClassName,nn=ne.onScroll,lt=ne.maxContentScroll,Ln=ne.children,$n=(0,Et.Z)(ne,_e),Nn=C(T,["prefixCls","scrollbarSize","isSticky"]),Kn=Nn.prefixCls,br=Nn.scrollbarSize,xr=Nn.isSticky,hr=xr&&!Se?0:br,Pr=S.useRef(null),Fr=S.useCallback(function(q){(0,m.mH)(ue,q),(0,m.mH)(Pr,q)},[]);S.useEffect(function(){var q;function l(d){var f=d,g=f.currentTarget,k=f.deltaX;k&&(nn({currentTarget:g,scrollLeft:g.scrollLeft+k}),d.preventDefault())}return(q=Pr.current)===null||q===void 0||q.addEventListener("wheel",l),function(){var d;(d=Pr.current)===null||d===void 0||d.removeEventListener("wheel",l)}},[]);var jn=S.useMemo(function(){return at.every(function(q){return q.width})},[at]),pr=at[at.length-1],Vn={fixed:pr?pr.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Kn,"-cell-scrollbar")}}},kn=(0,S.useMemo)(function(){return hr?[].concat((0,tt.Z)(et),[Vn]):et},[hr,et]),fr=(0,S.useMemo)(function(){return hr?[].concat((0,tt.Z)(at),[Vn]):at},[hr,at]),Or=(0,S.useMemo)(function(){var q=yt.right,l=yt.left;return(0,xe.Z)((0,xe.Z)({},yt),{},{left:Ot==="rtl"?[].concat((0,tt.Z)(l.map(function(d){return d+hr})),[0]):l,right:Ot==="rtl"?q:[].concat((0,tt.Z)(q.map(function(d){return d+hr})),[0]),isSticky:xr})},[hr,yt,xr]),Wr=De(xt,_t);return S.createElement("div",{style:(0,xe.Z)({overflow:"hidden"},xr?{top:Lt,bottom:ln}:{}),ref:Fr,className:Z()($e,(0,ce.Z)({},sn,!!sn))},S.createElement("table",{style:{tableLayout:"fixed",visibility:Ge||Wr?null:"hidden"}},(!Ge||!lt||jn)&&S.createElement(nt,{colWidths:Wr?[].concat((0,tt.Z)(Wr),[hr]):[],columCount:_t+1,columns:fr}),Ln((0,xe.Z)((0,xe.Z)({},$n),{},{stickyOffsets:Or,columns:kn,flattenColumns:fr}))))});Fe.displayName="FixedHolder";var Qe=S.memo(Fe);function ge(ne){var ue=ne.cells,$e=ne.stickyOffsets,Ge=ne.flattenColumns,et=ne.rowComponent,at=ne.cellComponent,xt=ne.tdCellComponent,_t=ne.onHeaderRow,yt=ne.index,Ot=C(T,["prefixCls","direction"]),Se=Ot.prefixCls,Lt=Ot.direction,ln;_t&&(ln=_t(ue.map(function(nn){return nn.column}),yt));var sn=de(ue.map(function(nn){return nn.column}));return S.createElement(et,ln,ue.map(function(nn,lt){var Ln=nn.column,$n=Yt(nn.colStart,nn.colEnd,Ge,$e,Lt,Ln),Nn;return Ln&&Ln.onHeaderCell&&(Nn=nn.column.onHeaderCell(Ln)),S.createElement(Ft,(0,O.Z)({},nn,{scope:Ln.title?nn.colSpan>1?"colgroup":"col":null,ellipsis:Ln.ellipsis,align:Ln.align,component:Ln.title?at:xt,prefixCls:Se,key:sn[lt]},$n,{additionalProps:Nn,rowType:"header"}))}))}ge.displayName="HeaderRow";var Vt=ge;function Ze(ne){var ue=[];function $e(xt,_t){var yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ue[yt]=ue[yt]||[];var Ot=_t,Se=xt.filter(Boolean).map(function(Lt){var ln={key:Lt.key,className:Lt.className||"",children:Lt.title,column:Lt,colStart:Ot},sn=1,nn=Lt.children;return nn&&nn.length>0&&(sn=$e(nn,Ot,yt+1).reduce(function(lt,Ln){return lt+Ln},0),ln.hasSubColumns=!0),"colSpan"in Lt&&(sn=Lt.colSpan),"rowSpan"in Lt&&(ln.rowSpan=Lt.rowSpan),ln.colSpan=sn,ln.colEnd=ln.colStart+sn-1,ue[yt].push(ln),Ot+=sn,sn});return Se}$e(ne,0);for(var Ge=ue.length,et=function(_t){ue[_t].forEach(function(yt){!("rowSpan"in yt)&&!yt.hasSubColumns&&(yt.rowSpan=Ge-_t)})},at=0;at<Ge;at+=1)et(at);return ue}function gn(ne){var ue=ne.stickyOffsets,$e=ne.columns,Ge=ne.flattenColumns,et=ne.onHeaderRow,at=C(T,["prefixCls","getComponent"]),xt=at.prefixCls,_t=at.getComponent,yt=S.useMemo(function(){return Ze($e)},[$e]),Ot=_t(["header","wrapper"],"thead"),Se=_t(["header","row"],"tr"),Lt=_t(["header","cell"],"th"),ln=_t(["header","cell"],"td");return S.createElement(Ot,{className:"".concat(xt,"-thead")},yt.map(function(sn,nn){var lt=S.createElement(Vt,{key:nn,flattenColumns:Ge,cells:sn,stickyOffsets:ue,rowComponent:Se,cellComponent:Lt,tdCellComponent:ln,onHeaderRow:et,index:nn});return lt}))}var In=W(gn),Hn=h(11592);function mr(ne){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof ue=="number"?ue:ue.endsWith("%")?ne*parseFloat(ue)/100:null}function rn(ne,ue){return S.useMemo(function(){if(ue&&ue>0){var $e=0,Ge=0;ne.forEach(function(Ot){var Se=mr(ue,Ot.width);Se?$e+=Se:Ge+=1});var et=ue-$e,at=Ge,xt=et/Ge,_t=0,yt=ne.map(function(Ot){var Se=(0,xe.Z)({},Ot),Lt=mr(ue,Se.width);if(Lt)Se.width=Lt;else{var ln=Math.floor(xt);Se.width=at===1?et:ln,et-=ln,at-=1}return _t+=Se.width,Se});return[yt,_t]}return[ne,ue]},[ne,ue])}var vn=["children"],Je=["fixed"];function It(ne){return(0,Hn.Z)(ne).filter(function(ue){return S.isValidElement(ue)}).map(function(ue){var $e=ue.key,Ge=ue.props,et=Ge.children,at=(0,Et.Z)(Ge,vn),xt=(0,xe.Z)({key:$e},at);return et&&(xt.children=It(et)),xt})}function zt(ne){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return ne.filter(function($e){return $e&&(0,Ee.Z)($e)==="object"}).reduce(function($e,Ge,et){var at=Ge.fixed,xt=at===!0?"left":at,_t="".concat(ue,"-").concat(et),yt=Ge.children;return yt&&yt.length>0?[].concat((0,tt.Z)($e),(0,tt.Z)(zt(yt,_t).map(function(Ot){return(0,xe.Z)({fixed:xt},Ot)}))):[].concat((0,tt.Z)($e),[(0,xe.Z)((0,xe.Z)({key:_t},Ge),{},{fixed:xt})])},[])}function Ke(ne){for(var ue=!0,$e=0;$e<ne.length;$e+=1){var Ge=ne[$e];if(ue&&Ge.fixed!=="left")ue=!1;else if(!ue&&Ge.fixed==="left"){warning(!1,"Index ".concat($e-1," of `columns` missing `fixed='left'` prop."));break}}for(var et=!0,at=ne.length-1;at>=0;at-=1){var xt=ne[at];if(et&&xt.fixed!=="right")et=!1;else if(!et&&xt.fixed==="right"){warning(!1,"Index ".concat(at+1," of `columns` missing `fixed='right'` prop."));break}}}function Oe(ne){return ne.map(function(ue){var $e=ue.fixed,Ge=(0,Et.Z)(ue,Je),et=$e;return $e==="left"?et="right":$e==="right"&&(et="left"),(0,xe.Z)({fixed:et},Ge)})}function bt(ne,ue){var $e=ne.prefixCls,Ge=ne.columns,et=ne.children,at=ne.expandable,xt=ne.expandedKeys,_t=ne.columnTitle,yt=ne.getRowKey,Ot=ne.onTriggerExpand,Se=ne.expandIcon,Lt=ne.rowExpandable,ln=ne.expandIconColumnIndex,sn=ne.direction,nn=ne.expandRowByClick,lt=ne.columnWidth,Ln=ne.fixed,$n=ne.scrollWidth,Nn=S.useMemo(function(){return Ge||It(et)},[Ge,et]),Kn=S.useMemo(function(){if(at){var pr,Vn=Nn.slice();if(!Vn.includes(z)){var kn=ln||0;kn>=0&&Vn.splice(kn,0,z)}var fr=Vn.indexOf(z);Vn=Vn.filter(function(l,d){return l!==z||d===fr});var Or=Nn[fr],Wr;(Ln==="left"||Ln)&&!ln?Wr="left":(Ln==="right"||Ln)&&ln===Nn.length?Wr="right":Wr=Or?Or.fixed:null;var q=(pr={},(0,ce.Z)(pr,fe,{className:"".concat($e,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,ce.Z)(pr,"title",_t),(0,ce.Z)(pr,"fixed",Wr),(0,ce.Z)(pr,"className","".concat($e,"-row-expand-icon-cell")),(0,ce.Z)(pr,"width",lt),(0,ce.Z)(pr,"render",function(d,f,g){var k=yt(f,g),ae=xt.has(k),Re=Lt?Lt(f):!0,Le=Se({prefixCls:$e,expanded:ae,expandable:Re,record:f,onExpand:Ot});return nn?S.createElement("span",{onClick:function(dt){return dt.stopPropagation()}},Le):Le}),pr);return Vn.map(function(l){return l===z?q:l})}return Nn.filter(function(l){return l!==z})},[at,Nn,yt,xt,Se,sn]),br=S.useMemo(function(){var pr=Kn;return ue&&(pr=ue(pr)),pr.length||(pr=[{render:function(){return null}}]),pr},[ue,Kn,sn]),xr=S.useMemo(function(){return sn==="rtl"?Oe(zt(br)):zt(br)},[br,sn,$n]),hr=rn(xr,$n),Pr=(0,Q.Z)(hr,2),Fr=Pr[0],jn=Pr[1];return[br,Fr,jn]}var St=bt;function qt(ne){var ue,$e=ne.prefixCls,Ge=ne.record,et=ne.onExpand,at=ne.expanded,xt=ne.expandable,_t="".concat($e,"-row-expand-icon");if(!xt)return S.createElement("span",{className:Z()(_t,"".concat($e,"-row-spaced"))});var yt=function(Se){et(Ge,Se),Se.stopPropagation()};return S.createElement("span",{className:Z()(_t,(ue={},(0,ce.Z)(ue,"".concat($e,"-row-expanded"),at),(0,ce.Z)(ue,"".concat($e,"-row-collapsed"),!at),ue)),onClick:yt})}function Wt(ne,ue,$e){var Ge=[];function et(at){(at||[]).forEach(function(xt,_t){Ge.push(ue(xt,_t)),et(xt[$e])})}return et(ne),Ge}function on(ne,ue,$e){var Ge=Me(ne),et=Ge.expandIcon,at=Ge.expandedRowKeys,xt=Ge.defaultExpandedRowKeys,_t=Ge.defaultExpandAllRows,yt=Ge.expandedRowRender,Ot=Ge.onExpand,Se=Ge.onExpandedRowsChange,Lt=Ge.childrenColumnName,ln=et||qt,sn=Lt||"children",nn=S.useMemo(function(){return yt?"row":ne.expandable&&ne.internalHooks===N&&ne.expandable.__PARENT_RENDER_ICON__||ue.some(function(xr){return xr&&(0,Ee.Z)(xr)==="object"&&xr[sn]})?"nest":!1},[!!yt,ue]),lt=S.useState(function(){return xt||(_t?Wt(ue,$e,sn):[])}),Ln=(0,Q.Z)(lt,2),$n=Ln[0],Nn=Ln[1],Kn=S.useMemo(function(){return new Set(at||$n||[])},[at,$n]),br=S.useCallback(function(xr){var hr=$e(xr,ue.indexOf(xr)),Pr,Fr=Kn.has(hr);Fr?(Kn.delete(hr),Pr=(0,tt.Z)(Kn)):Pr=[].concat((0,tt.Z)(Kn),[hr]),Nn(Pr),Ot&&Ot(!Fr,xr),Se&&Se(Pr)},[$e,Kn,ue,Ot,Se]);return[Ge,nn,Kn,ln,sn,br]}function Xt(ne,ue,$e,Ge){var et=ne.map(function(at,xt){return Yt(xt,xt,ne,ue,$e,Ge==null?void 0:Ge[xt])});return(0,me.Z)(function(){return et},[et],function(at,xt){return!(0,H.Z)(at,xt)})}function hn(ne){var ue=(0,S.useRef)(ne),$e=(0,S.useState)({}),Ge=(0,Q.Z)($e,2),et=Ge[1],at=(0,S.useRef)(null),xt=(0,S.useRef)([]);function _t(yt){xt.current.push(yt);var Ot=Promise.resolve();at.current=Ot,Ot.then(function(){if(at.current===Ot){var Se=xt.current,Lt=ue.current;xt.current=[],Se.forEach(function(ln){ue.current=ln(ue.current)}),at.current=null,Lt!==ue.current&&et({})}})}return(0,S.useEffect)(function(){return function(){at.current=null}},[]),[ue.current,_t]}function An(ne){var ue=(0,S.useRef)(ne||null),$e=(0,S.useRef)();function Ge(){window.clearTimeout($e.current)}function et(xt){ue.current=xt,Ge(),$e.current=window.setTimeout(function(){ue.current=null,$e.current=void 0},100)}function at(){return ue.current}return(0,S.useEffect)(function(){return Ge},[]),[et,at]}function $t(){var ne=S.useState(-1),ue=(0,Q.Z)(ne,2),$e=ue[0],Ge=ue[1],et=S.useState(-1),at=(0,Q.Z)(et,2),xt=at[0],_t=at[1],yt=S.useCallback(function(Ot,Se){Ge(Ot),_t(Se)},[]);return[$e,xt,yt]}var Rt=h(47273),an=(0,Rt.Z)()?window:null;function tn(ne,ue){var $e=(0,Ee.Z)(ne)==="object"?ne:{},Ge=$e.offsetHeader,et=Ge===void 0?0:Ge,at=$e.offsetSummary,xt=at===void 0?0:at,_t=$e.offsetScroll,yt=_t===void 0?0:_t,Ot=$e.getContainer,Se=Ot===void 0?function(){return an}:Ot,Lt=Se()||an;return S.useMemo(function(){var ln=!!ne;return{isSticky:ln,stickyClassName:ln?"".concat(ue,"-sticky-holder"):"",offsetHeader:et,offsetSummary:xt,offsetScroll:yt,container:Lt}},[yt,et,xt,ue,Lt])}function cn(ne,ue,$e){var Ge=(0,S.useMemo)(function(){for(var et=[],at=[],xt=0,_t=0,yt=0;yt<ue;yt+=1)if($e==="rtl"){at[yt]=_t,_t+=ne[yt]||0;var Ot=ue-yt-1;et[Ot]=xt,xt+=ne[Ot]||0}else{et[yt]=xt,xt+=ne[yt]||0;var Se=ue-yt-1;at[Se]=_t,_t+=ne[Se]||0}return{left:et,right:at}},[ne,ue,$e]);return Ge}var bn=cn;function tr(ne){var ue=ne.className,$e=ne.children;return S.createElement("div",{className:ue},$e)}var Mn=tr,Qt=h(8224),ct=h(55468),ft=function(ue,$e){var Ge,et,at=ue.scrollBodyRef,xt=ue.onScroll,_t=ue.offsetScroll,yt=ue.container,Ot=C(T,"prefixCls"),Se=((Ge=at.current)===null||Ge===void 0?void 0:Ge.scrollWidth)||0,Lt=((et=at.current)===null||et===void 0?void 0:et.clientWidth)||0,ln=Se&&Lt*(Lt/Se),sn=S.useRef(),nn=hn({scrollLeft:0,isHiddenScrollBar:!1}),lt=(0,Q.Z)(nn,2),Ln=lt[0],$n=lt[1],Nn=S.useRef({delta:0,x:0}),Kn=S.useState(!1),br=(0,Q.Z)(Kn,2),xr=br[0],hr=br[1],Pr=function(){hr(!1)},Fr=function(fr){fr.persist(),Nn.current.delta=fr.pageX-Ln.scrollLeft,Nn.current.x=0,hr(!0),fr.preventDefault()},jn=function(fr){var Or,Wr=fr||((Or=window)===null||Or===void 0?void 0:Or.event),q=Wr.buttons;if(!xr||q===0){xr&&hr(!1);return}var l=Nn.current.x+fr.pageX-Nn.current.x-Nn.current.delta;l<=0&&(l=0),l+ln>=Lt&&(l=Lt-ln),xt({scrollLeft:l/Lt*(Se+2)}),Nn.current.x=fr.pageX},pr=function(){if(at.current){var fr=(0,ct.os)(at.current).top,Or=fr+at.current.offsetHeight,Wr=yt===window?document.documentElement.scrollTop+window.innerHeight:(0,ct.os)(yt).top+yt.clientHeight;Or-(0,Ce.Z)()<=Wr||fr>=Wr-_t?$n(function(q){return(0,xe.Z)((0,xe.Z)({},q),{},{isHiddenScrollBar:!0})}):$n(function(q){return(0,xe.Z)((0,xe.Z)({},q),{},{isHiddenScrollBar:!1})})}},Vn=function(fr){$n(function(Or){return(0,xe.Z)((0,xe.Z)({},Or),{},{scrollLeft:fr/Se*Lt||0})})};return S.useImperativeHandle($e,function(){return{setScrollLeft:Vn}}),S.useEffect(function(){var kn=(0,Qt.Z)(document.body,"mouseup",Pr,!1),fr=(0,Qt.Z)(document.body,"mousemove",jn,!1);return pr(),function(){kn.remove(),fr.remove()}},[ln,xr]),S.useEffect(function(){var kn=(0,Qt.Z)(yt,"scroll",pr,!1),fr=(0,Qt.Z)(window,"resize",pr,!1);return function(){kn.remove(),fr.remove()}},[yt]),S.useEffect(function(){Ln.isHiddenScrollBar||$n(function(kn){var fr=at.current;return fr?(0,xe.Z)((0,xe.Z)({},kn),{},{scrollLeft:fr.scrollLeft/fr.scrollWidth*fr.clientWidth}):kn})},[Ln.isHiddenScrollBar]),Se<=Lt||!ln||Ln.isHiddenScrollBar?null:S.createElement("div",{style:{height:(0,Ce.Z)(),width:Lt,bottom:_t},className:"".concat(Ot,"-sticky-scroll")},S.createElement("div",{onMouseDown:Fr,ref:sn,className:Z()("".concat(Ot,"-sticky-scroll-bar"),(0,ce.Z)({},"".concat(Ot,"-sticky-scroll-bar-active"),xr)),style:{width:"".concat(ln,"px"),transform:"translate3d(".concat(Ln.scrollLeft,"px, 0, 0)")}}))},Tt=S.forwardRef(ft);function Nt(ne){return null}var Dt=Nt;function Ht(ne){return null}var Bt=Ht,dn="rc-table",xn=[],Rn={};function Qn(){return"No Data"}function nr(ne){var ue,$e=(0,xe.Z)({rowKey:"key",prefixCls:dn,emptyText:Qn},ne),Ge=$e.prefixCls,et=$e.className,at=$e.rowClassName,xt=$e.style,_t=$e.data,yt=$e.rowKey,Ot=$e.scroll,Se=$e.tableLayout,Lt=$e.direction,ln=$e.title,sn=$e.footer,nn=$e.summary,lt=$e.caption,Ln=$e.id,$n=$e.showHeader,Nn=$e.components,Kn=$e.emptyText,br=$e.onRow,xr=$e.onHeaderRow,hr=$e.internalHooks,Pr=$e.transformColumns,Fr=$e.internalRefs,jn=$e.tailor,pr=$e.sticky,Vn=_t||xn,kn=!!Vn.length,fr=hr===N,Or=S.useCallback(function(hi,Ki){return(0,P.Z)(Nn,hi)||Ki},[Nn]),Wr=S.useMemo(function(){return typeof yt=="function"?yt:function(hi){var Ki=hi&&hi[yt];return Ki}},[yt]),q=Or(["body"]),l=$t(),d=(0,Q.Z)(l,3),f=d[0],g=d[1],k=d[2],ae=on($e,Vn,Wr),Re=(0,Q.Z)(ae,6),Le=Re[0],qe=Re[1],dt=Re[2],Ct=Re[3],Kt=Re[4],pn=Re[5],jt=Ot==null?void 0:Ot.x,Jt=S.useState(0),un=(0,Q.Z)(Jt,2),Cn=un[0],ir=un[1],Tn=St((0,xe.Z)((0,xe.Z)((0,xe.Z)({},$e),Le),{},{expandable:!!Le.expandedRowRender,columnTitle:Le.columnTitle,expandedKeys:dt,getRowKey:Wr,onTriggerExpand:pn,expandIcon:Ct,expandIconColumnIndex:Le.expandIconColumnIndex,direction:Lt,scrollWidth:fr&&jn&&typeof jt=="number"?jt:null}),fr?Pr:null),er=(0,Q.Z)(Tn,3),Sr=er[0],wr=er[1],ri=er[2],ii=ri!=null?ri:jt,Zi=S.useMemo(function(){return{columns:Sr,flattenColumns:wr}},[Sr,wr]),ci=S.useRef(),ai=S.useRef(),bi=S.useRef(),Ji=S.useRef(),_a=S.useRef(),zr=S.useState(!1),qr=(0,Q.Z)(zr,2),Qr=qr[0],Di=qr[1],ea=S.useState(!1),Hr=(0,Q.Z)(ea,2),ra=Hr[0],ta=Hr[1],Ea=hn(new Map),$a=(0,Q.Z)(Ea,2),Sa=$a[0],xs=$a[1],qa=de(wr),Ma=qa.map(function(hi){return Sa.get(hi)}),ha=S.useMemo(function(){return Ma},[Ma.join("_")]),pa=bn(ha,wr.length,Lt),Vi=Ot&&Ne(Ot.y),Ei=Ot&&Ne(ii)||!!Le.fixed,rs=Ei&&wr.some(function(hi){var Ki=hi.fixed;return Ki}),Is=S.useRef(),es=tn(pr,Ge),Va=es.isSticky,io=es.offsetHeader,ao=es.offsetSummary,fi=es.offsetScroll,ki=es.stickyClassName,ma=es.container,Fi=S.useMemo(function(){return nn==null?void 0:nn(Vn)},[nn,Vn]),Ra=(Vi||Va)&&S.isValidElement(Fi)&&Fi.type===Y&&Fi.props.fixed,Na,za,gs;Vi&&(za={overflowY:"scroll",maxHeight:Ot.y}),Ei&&(Na={overflowX:"auto"},Vi||(za={overflowY:"hidden"}),gs={width:ii===!0?"auto":ii,minWidth:"100%"});var so=S.useCallback(function(hi,Ki){(0,re.Z)(ci.current)&&xs(function(Ya){if(Ya.get(hi)!==Ki){var Ss=new Map(Ya);return Ss.set(hi,Ki),Ss}return Ya})},[]),Jo=An(null),oo=(0,Q.Z)(Jo,2),Co=oo[0],Fo=oo[1];function lo(hi,Ki){Ki&&(typeof Ki=="function"?Ki(hi):Ki.scrollLeft!==hi&&(Ki.scrollLeft=hi,Ki.scrollLeft!==hi&&setTimeout(function(){Ki.scrollLeft=hi},0)))}var _s=(0,ye.Z)(function(hi){var Ki=hi.currentTarget,Ya=hi.scrollLeft,Ss=Lt==="rtl",ws=typeof Ya=="number"?Ya:Ki.scrollLeft,Io=Ki||Rn;if(!Fo()||Fo()===Io){var Oo;Co(Io),lo(ws,ai.current),lo(ws,bi.current),lo(ws,_a.current),lo(ws,(Oo=Is.current)===null||Oo===void 0?void 0:Oo.setScrollLeft)}var Lo=Ki||ai.current;if(Lo){var Po=Lo.scrollWidth,ko=Lo.clientWidth;if(Po===ko){Di(!1),ta(!1);return}Ss?(Di(-ws<Po-ko),ta(-ws>0)):(Di(ws>0),ta(ws<Po-ko))}}),To=function(){Ei&&bi.current?_s({currentTarget:bi.current}):(Di(!1),ta(!1))},$o=function(Ki){var Ya=Ki.width;Ya!==Cn&&(To(),ir(ci.current?ci.current.offsetWidth:Ya))},zo=S.useRef(!1);S.useEffect(function(){zo.current&&To()},[Ei,_t,Sr.length]),S.useEffect(function(){zo.current=!0},[]);var Uo=S.useState(0),Ko=(0,Q.Z)(Uo,2),Fs=Ko[0],Do=Ko[1],Ho=S.useState(!0),Zo=(0,Q.Z)(Ho,2),uo=Zo[0],jo=Zo[1];S.useEffect(function(){(!jn||!fr)&&(bi.current instanceof Element?Do((0,Ce.o)(bi.current).width):Do((0,Ce.o)(Ji.current).width)),jo((0,J.G)("position","sticky"))},[]),S.useEffect(function(){fr&&Fr&&(Fr.body.current=bi.current)});var Ao=S.useCallback(function(hi){return S.createElement(S.Fragment,null,S.createElement(In,hi),Ra==="top"&&S.createElement($,hi,Fi))},[Ra,Fi]),qo=S.useCallback(function(hi){return S.createElement($,hi,Fi)},[Fi]),Wo=Or(["table"],"table"),co=S.useMemo(function(){return Se||(rs?ii==="max-content"?"auto":"fixed":Vi||Va||wr.some(function(hi){var Ki=hi.ellipsis;return Ki})?"fixed":"auto")},[Vi,rs,wr,Se,Va]),fo,ho={colWidths:ha,columCount:wr.length,stickyOffsets:pa,onHeaderRow:xr,fixHeader:Vi,scroll:Ot},Go=S.useMemo(function(){return kn?null:typeof Kn=="function"?Kn():Kn},[kn,Kn]),Ro=S.createElement(A,{data:Vn,measureColumnWidth:Vi||Ei||Va}),po=S.createElement(nt,{colWidths:wr.map(function(hi){var Ki=hi.width;return Ki}),columns:wr}),Vo=lt!=null?S.createElement("caption",{className:"".concat(Ge,"-caption")},lt):void 0,mo=(0,We.Z)($e,{data:!0}),Os=(0,We.Z)($e,{aria:!0});if(Vi||Va){var Ha;typeof q=="function"?(Ha=q(Vn,{scrollbarSize:Fs,ref:bi,onScroll:_s}),ho.colWidths=wr.map(function(hi,Ki){var Ya=hi.width,Ss=Ki===wr.length-1?Ya-Fs:Ya;return typeof Ss=="number"&&!Number.isNaN(Ss)?Ss:0})):Ha=S.createElement("div",{style:(0,xe.Z)((0,xe.Z)({},Na),za),onScroll:_s,ref:bi,className:Z()("".concat(Ge,"-body"))},S.createElement(Wo,(0,O.Z)({style:(0,xe.Z)((0,xe.Z)({},gs),{},{tableLayout:co})},Os),Vo,po,Ro,!Ra&&Fi&&S.createElement($,{stickyOffsets:pa,flattenColumns:wr,columns:Sr},Fi)));var Ia=(0,xe.Z)((0,xe.Z)((0,xe.Z)({noData:!Vn.length,maxContentScroll:Ei&&ii==="max-content"},ho),Zi),{},{direction:Lt,stickyClassName:ki,onScroll:_s});fo=S.createElement(S.Fragment,null,$n!==!1&&S.createElement(Qe,(0,O.Z)({},Ia,{stickyTopOffset:io,className:"".concat(Ge,"-header"),ref:ai}),Ao),Ha,Ra&&Ra!=="top"&&S.createElement(Qe,(0,O.Z)({},Ia,{stickyBottomOffset:ao,className:"".concat(Ge,"-summary"),ref:_a}),qo),Va&&S.createElement(Tt,{ref:Is,offsetScroll:fi,scrollBodyRef:bi,onScroll:_s,container:ma}))}else fo=S.createElement("div",{style:(0,xe.Z)((0,xe.Z)({},Na),za),className:Z()("".concat(Ge,"-content")),onScroll:_s,ref:bi},S.createElement(Wo,(0,O.Z)({style:(0,xe.Z)((0,xe.Z)({},gs),{},{tableLayout:co})},Os),Vo,po,$n!==!1&&S.createElement(In,(0,O.Z)({},ho,Zi)),Ro,Fi&&S.createElement($,{stickyOffsets:pa,flattenColumns:wr,columns:Sr},Fi)));var Vs=S.createElement("div",(0,O.Z)({className:Z()(Ge,et,(ue={},(0,ce.Z)(ue,"".concat(Ge,"-rtl"),Lt==="rtl"),(0,ce.Z)(ue,"".concat(Ge,"-ping-left"),Qr),(0,ce.Z)(ue,"".concat(Ge,"-ping-right"),ra),(0,ce.Z)(ue,"".concat(Ge,"-layout-fixed"),Se==="fixed"),(0,ce.Z)(ue,"".concat(Ge,"-fixed-header"),Vi),(0,ce.Z)(ue,"".concat(Ge,"-fixed-column"),rs),(0,ce.Z)(ue,"".concat(Ge,"-scroll-horizontal"),Ei),(0,ce.Z)(ue,"".concat(Ge,"-has-fix-left"),wr[0]&&wr[0].fixed),(0,ce.Z)(ue,"".concat(Ge,"-has-fix-right"),wr[wr.length-1]&&wr[wr.length-1].fixed==="right"),ue)),style:xt,id:Ln,ref:ci},mo),ln&&S.createElement(Mn,{className:"".concat(Ge,"-title")},ln(Vn)),S.createElement("div",{ref:Ji,className:"".concat(Ge,"-container")},fo),sn&&S.createElement(Mn,{className:"".concat(Ge,"-footer")},sn(Vn)));Ei&&(Vs=S.createElement(le.Z,{onResize:$o},Vs));var Es=Xt(wr,pa,Lt,Sr),el=S.useMemo(function(){return{scrollX:ii,prefixCls:Ge,getComponent:Or,scrollbarSize:Fs,direction:Lt,fixedInfoList:Es,isSticky:Va,supportSticky:uo,componentWidth:Cn,fixHeader:Vi,fixColumn:rs,horizonScroll:Ei,tableLayout:co,rowClassName:at,expandedRowClassName:Le.expandedRowClassName,expandIcon:Ct,expandableType:qe,expandRowByClick:Le.expandRowByClick,expandedRowRender:Le.expandedRowRender,onTriggerExpand:pn,expandIconColumnIndex:Le.expandIconColumnIndex,indentSize:Le.indentSize,allColumnsFixedLeft:wr.every(function(hi){return hi.fixed==="left"}),emptyNode:Go,columns:Sr,flattenColumns:wr,onColumnResize:so,hoverStartRow:f,hoverEndRow:g,onHover:k,rowExpandable:Le.rowExpandable,onRow:br,getRowKey:Wr,expandedKeys:dt,childrenColumnName:Kt}},[ii,Ge,Or,Fs,Lt,Es,Va,uo,Cn,Vi,rs,Ei,co,at,Le.expandedRowClassName,Ct,qe,Le.expandRowByClick,Le.expandedRowRender,pn,Le.expandIconColumnIndex,Le.indentSize,Go,Sr,wr,so,f,g,k,Le.rowExpandable,br,Wr,dt,Kt]);return S.createElement(T.Provider,{value:el},Vs)}function ar(ne){return M(nr,ne)}var _n=ar();_n.EXPAND_COLUMN=z,_n.INTERNAL_HOOKS=N,_n.Column=Dt,_n.ColumnGroup=Bt,_n.Summary=R;var yn=_n,gr=h(24916),Gn=a(null),Tr=a(null);function Jn(ne,ue,$e){var Ge=ue||1;return $e[ne+Ge]-($e[ne]||0)}function or(ne){var ue=ne.rowInfo,$e=ne.column,Ge=ne.colIndex,et=ne.indent,at=ne.index,xt=ne.renderIndex,_t=ne.record,yt=ne.style,Ot=ne.className,Se=ne.inverse,Lt=ne.getHeight,ln=$e.render,sn=$e.dataIndex,nn=$e.className,lt=$e.width,Ln=C(Tr,["columnsOffset"]),$n=Ln.columnsOffset,Nn=vt(ue,$e,Ge,et,at),Kn=Nn.key,br=Nn.fixedInfo,xr=Nn.appendCellNode,hr=Nn.additionalCellProps,Pr=hr.style,Fr=hr.colSpan,jn=Fr===void 0?1:Fr,pr=hr.rowSpan,Vn=pr===void 0?1:pr,kn=Ge-1,fr=Jn(kn,jn,$n),Or=jn>1?lt-fr:0,Wr=(0,xe.Z)((0,xe.Z)((0,xe.Z)({},Pr),yt),{},{flex:"0 0 ".concat(fr,"px"),width:"".concat(fr,"px"),marginRight:Or,pointerEvents:"auto"}),q=S.useMemo(function(){return Se?Vn<=1:jn===0||Vn===0||Vn>1},[Vn,jn,Se]);q?Wr.visibility="hidden":Se&&(Wr.height=Lt==null?void 0:Lt(Vn));var l=q?function(){return null}:ln,d={};return(Vn===0||jn===0)&&(d.rowSpan=1,d.colSpan=1),S.createElement(Ft,(0,O.Z)({className:Z()(nn,Ot),ellipsis:$e.ellipsis,align:$e.align,scope:$e.rowScope,component:"div",prefixCls:ue.prefixCls,key:Kn,record:_t,index:at,renderIndex:xt,dataIndex:sn,render:l,shouldCellUpdate:$e.shouldCellUpdate},br,{appendNode:xr,additionalProps:(0,xe.Z)((0,xe.Z)({},hr),{},{style:Wr},d)}))}var yr=or,rr=["data","index","className","rowKey","style","extra","getHeight"],Ir=S.forwardRef(function(ne,ue){var $e=ne.data,Ge=ne.index,et=ne.className,at=ne.rowKey,xt=ne.style,_t=ne.extra,yt=ne.getHeight,Ot=(0,Et.Z)(ne,rr),Se=$e.record,Lt=$e.indent,ln=$e.index,sn=C(T,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),nn=sn.scrollX,lt=sn.flattenColumns,Ln=sn.prefixCls,$n=sn.fixColumn,Nn=sn.componentWidth,Kn=Ye(Se,at,Ge,Lt),br=Kn.rowSupportExpand,xr=Kn.expanded,hr=Kn.rowProps,Pr=Kn.expandedRowRender,Fr=Kn.expandedRowClassName,jn;if(br&&xr){var pr=Pr(Se,Ge,Lt+1,xr),Vn=Fr==null?void 0:Fr(Se,Ge,Lt),kn={};$n&&(kn={style:(0,ce.Z)({},"--virtual-width","".concat(Nn,"px"))});var fr="".concat(Ln,"-expanded-row-cell");jn=S.createElement("div",{className:Z()("".concat(Ln,"-expanded-row"),"".concat(Ln,"-expanded-row-level-").concat(Lt+1),Vn)},S.createElement(Ft,{component:"div",prefixCls:Ln,className:Z()(fr,(0,ce.Z)({},"".concat(fr,"-fixed"),$n)),additionalProps:kn},pr))}var Or=(0,xe.Z)((0,xe.Z)({},xt),{},{width:nn});_t&&(Or.position="absolute",Or.pointerEvents="none");var Wr=S.createElement("div",(0,O.Z)({},hr,Ot,{ref:br?null:ue,className:Z()(et,"".concat(Ln,"-row"),hr==null?void 0:hr.className,(0,ce.Z)({},"".concat(Ln,"-row-extra"),_t)),style:(0,xe.Z)((0,xe.Z)({},Or),hr==null?void 0:hr.style)}),lt.map(function(q,l){return S.createElement(yr,{key:l,rowInfo:Kn,column:q,colIndex:l,indent:Lt,index:Ge,renderIndex:ln,record:Se,inverse:_t,getHeight:yt})}));return br?S.createElement("div",{ref:ue},Wr,jn):Wr}),Jr=W(Ir),Xn=Jr,En=S.forwardRef(function(ne,ue){var $e=ne.data,Ge=ne.onScroll,et=C(T,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),at=et.flattenColumns,xt=et.onColumnResize,_t=et.getRowKey,yt=et.expandedKeys,Ot=et.prefixCls,Se=et.childrenColumnName,Lt=et.emptyNode,ln=et.scrollX,sn=C(Gn),nn=sn.scrollY,lt=sn.listItemHeight,Ln=S.useRef(),$n=Be($e,Se,yt,_t),Nn=S.useMemo(function(){var jn=0;return at.map(function(pr){var Vn=pr.width,kn=pr.key;return jn+=Vn,[kn,Vn,jn]})},[at]),Kn=S.useMemo(function(){return Nn.map(function(jn){return jn[2]})},[Nn]);S.useEffect(function(){Nn.forEach(function(jn){var pr=(0,Q.Z)(jn,2),Vn=pr[0],kn=pr[1];xt(Vn,kn)})},[Nn]),S.useImperativeHandle(ue,function(){var jn={};return Object.defineProperty(jn,"scrollLeft",{get:function(){var Vn;return((Vn=Ln.current)===null||Vn===void 0?void 0:Vn.getScrollInfo().x)||0},set:function(Vn){var kn;(kn=Ln.current)===null||kn===void 0||kn.scrollTo({left:Vn})}}),jn});var br=function(pr,Vn){var kn,fr=(kn=$n[Vn])===null||kn===void 0?void 0:kn.record,Or=pr.onCell;if(Or){var Wr,q=Or(fr,Vn);return(Wr=q==null?void 0:q.rowSpan)!==null&&Wr!==void 0?Wr:1}return 1},xr=function(pr){var Vn=pr.start,kn=pr.end,fr=pr.getSize,Or=pr.offsetY;if(kn<0)return null;for(var Wr=at.filter(function(jt){return br(jt,Vn)===0}),q=Vn,l=function(Jt){if(Wr=Wr.filter(function(un){return br(un,Jt)===0}),!Wr.length)return q=Jt,"break"},d=Vn;d>=0;d-=1){var f=l(d);if(f==="break")break}for(var g=at.filter(function(jt){return br(jt,kn)!==1}),k=kn,ae=function(Jt){if(g=g.filter(function(un){return br(un,Jt)!==1}),!g.length)return k=Math.max(Jt-1,kn),"break"},Re=kn;Re<$n.length;Re+=1){var Le=ae(Re);if(Le==="break")break}for(var qe=[],dt=function(Jt){var un=$n[Jt];if(!un)return"continue";at.some(function(Cn){return br(Cn,Jt)>1})&&qe.push(Jt)},Ct=q;Ct<=k;Ct+=1)var Kt=dt(Ct);var pn=qe.map(function(jt){var Jt=$n[jt],un=_t(Jt.record,jt),Cn=function(er){var Sr=jt+er-1,wr=_t($n[Sr].record,Sr),ri=fr(un,wr);return ri.bottom-ri.top},ir=fr(un);return S.createElement(Xn,{key:jt,data:Jt,rowKey:un,index:jt,style:{top:-Or+ir.top},extra:!0,getHeight:Cn})});return pn},hr=S.useMemo(function(){return{columnsOffset:Kn}},[Kn]),Pr="".concat(Ot,"-tbody"),Fr;return $n.length?Fr=S.createElement(gr.Z,{fullHeight:!1,ref:Ln,className:Z()(Pr,"".concat(Pr,"-virtual")),height:nn,itemHeight:lt||24,data:$n,itemKey:function(pr){return _t(pr.record)},scrollWidth:ln,onVirtualScroll:function(pr){var Vn=pr.x;Ge({scrollLeft:Vn})},extraRender:xr},function(jn,pr,Vn){var kn=_t(jn.record,pr);return S.createElement(Xn,(0,O.Z)({data:jn,rowKey:kn,index:pr},Vn))}):Fr=S.createElement("div",{className:Z()("".concat(Ot,"-placeholder"))},S.createElement(Ft,{component:"div",prefixCls:Ot},Lt)),S.createElement(Tr.Provider,{value:hr},Fr)}),it=W(En),Fn=it,lr=function(ue,$e){var Ge=$e.ref,et=$e.onScroll;return S.createElement(Fn,{ref:Ge,data:ue,onScroll:et})},Cr=100;function Dr(ne){var ue=ne.columns,$e=ne.scroll,Ge=ne.prefixCls,et=Ge===void 0?dn:Ge,at=ne.className,xt=ne.listItemHeight,_t=$e||{},yt=_t.x,Ot=_t.y;typeof yt!="number"&&(yt=((ue||[]).length+1)*Cr),typeof Ot!="number"&&(Ot=500);var Se=S.useMemo(function(){return{scrollY:Ot,listItemHeight:xt}},[Ot,xt]);return S.createElement(Gn.Provider,{value:Se},S.createElement(yn,(0,O.Z)({},ne,{className:Z()(at,"".concat(et,"-virtual")),scroll:(0,xe.Z)((0,xe.Z)({},$e),{},{x:yt}),components:{body:lr},columns:ue,internalHooks:N,tailor:!0})))}function Mr(ne){return M(Dr,ne)}var Ur=Mr(),vr=null;function Kr(ne){return null}var zn=Kr;function Sn(ne){return null}var qn=Sn,Lr=h(2738),Zr=h(68031),Ci=h(36355),Un=h(93891),Vr=h(19716),jr=h(8628),oi=h(31724),Ai=h(58421),Li=h(71418),ei=h(88088);function gi(ne){return function($e){let{prefixCls:Ge,onExpand:et,record:at,expanded:xt,expandable:_t}=$e;const yt=`${Ge}-row-expand-icon`;return S.createElement("button",{type:"button",onClick:Ot=>{et(at,Ot),Ot.stopPropagation()},className:Z()(yt,{[`${yt}-spaced`]:!_t,[`${yt}-expanded`]:_t&&xt,[`${yt}-collapsed`]:_t&&!xt}),"aria-label":xt?ne.collapse:ne.expand,"aria-expanded":xt})}}var li=gi;function Ri(ne,ue){return"key"in ne&&ne.key!==void 0&&ne.key!==null?ne.key:ne.dataIndex?Array.isArray(ne.dataIndex)?ne.dataIndex.join("."):ne.dataIndex:ue}function Ii(ne,ue){return ue?`${ue}-${ne}`:`${ne}`}function ji(ne,ue){return typeof ne=="function"?ne(ue):ne}function Ti(ne,ue){const $e=ji(ne,ue);return Object.prototype.toString.call($e)==="[object Object]"?"":$e}var Gi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},$r=Gi,aa=h(7657),ga=function(ue,$e){return S.createElement(aa.Z,(0,O.Z)({},ue,{ref:$e,icon:$r}))},ua=S.forwardRef(ga),vi=ua,ca=h(56762);function wa(ne){const ue=S.useRef(ne),$e=(0,ca.Z)();return[()=>ue.current,Ge=>{ue.current=Ge,$e()}]}var Pn=h(3113),Mi=h(24905),na=h(38854),ur=h(64165),_r=h(20834),cr=h(40875),Zn=h(5112),Nr=h(17574),Yr=h(47472),Ni=h(92832);function yi(ne){let{value:ue,onChange:$e,filterSearch:Ge,tablePrefixCls:et,locale:at}=ne;return Ge?S.createElement("div",{className:`${et}-filter-dropdown-search`},S.createElement(Ni.default,{prefix:S.createElement(Yr.Z,null),placeholder:at.filterSearchPlaceholder,onChange:$e,value:ue,htmlSize:1,className:`${et}-filter-dropdown-search-input`})):null}var Oi=yi,Bi=h(10228);const va=ne=>{const{keyCode:ue}=ne;ue===Bi.Z.ENTER&&ne.stopPropagation()};var Za=S.forwardRef((ne,ue)=>S.createElement("div",{className:ne.className,onClick:$e=>$e.stopPropagation(),onKeyDown:va,ref:ue},ne.children));function da(ne){let ue=[];return(ne||[]).forEach($e=>{let{value:Ge,children:et}=$e;ue.push(Ge),et&&(ue=[].concat((0,tt.Z)(ue),(0,tt.Z)(da(et))))}),ue}function fa(ne){return ne.some(ue=>{let{children:$e}=ue;return $e})}function dr(ne,ue){return typeof ue=="string"||typeof ue=="number"?ue==null?void 0:ue.toString().toLowerCase().includes(ne.trim().toLowerCase()):!1}function sr(ne){let{filters:ue,prefixCls:$e,filteredKeys:Ge,filterMultiple:et,searchValue:at,filterSearch:xt}=ne;return ue.map((_t,yt)=>{const Ot=String(_t.value);if(_t.children)return{key:Ot||yt,label:_t.text,popupClassName:`${$e}-dropdown-submenu`,children:sr({filters:_t.children,prefixCls:$e,filteredKeys:Ge,filterMultiple:et,searchValue:at,filterSearch:xt})};const Se=et?Mi.default:Zn.ZP,Lt={key:_t.value!==void 0?Ot:yt,label:S.createElement(S.Fragment,null,S.createElement(Se,{checked:Ge.includes(Ot)}),S.createElement("span",null,_t.text))};return at.trim()?typeof xt=="function"?xt(at,_t)?Lt:null:dr(at,_t.text)?Lt:null:Lt})}function Xr(ne){var ue,$e;const{tablePrefixCls:Ge,prefixCls:et,column:at,dropdownPrefixCls:xt,columnKey:_t,filterMultiple:yt,filterMode:Ot="menu",filterSearch:Se=!1,filterState:Lt,triggerFilter:ln,locale:sn,children:nn,getPopupContainer:lt}=ne,{filterDropdownOpen:Ln,onFilterDropdownOpenChange:$n,filterResetToDefaultFilteredValue:Nn,defaultFilteredValue:Kn,filterDropdownVisible:br,onFilterDropdownVisibleChange:xr}=at,[hr,Pr]=S.useState(!1),Fr=!!(Lt&&(!((ue=Lt.filteredKeys)===null||ue===void 0)&&ue.length||Lt.forceFiltered)),jn=Tn=>{Pr(Tn),$n==null||$n(Tn),xr==null||xr(Tn)},pr=($e=Ln!=null?Ln:br)!==null&&$e!==void 0?$e:hr,Vn=Lt==null?void 0:Lt.filteredKeys,[kn,fr]=wa(Vn||[]),Or=Tn=>{let{selectedKeys:er}=Tn;fr(er)},Wr=(Tn,er)=>{let{node:Sr,checked:wr}=er;Or(yt?{selectedKeys:Tn}:{selectedKeys:wr&&Sr.key?[Sr.key]:[]})};S.useEffect(()=>{hr&&Or({selectedKeys:Vn||[]})},[Vn]);const[q,l]=S.useState([]),d=Tn=>{l(Tn)},[f,g]=S.useState(""),k=Tn=>{const{value:er}=Tn.target;g(er)};S.useEffect(()=>{hr||g("")},[hr]);const ae=Tn=>{const er=Tn&&Tn.length?Tn:null;if(er===null&&(!Lt||!Lt.filteredKeys)||(0,H.Z)(er,Lt==null?void 0:Lt.filteredKeys,!0))return null;ln({column:at,key:_t,filteredKeys:er})},Re=()=>{jn(!1),ae(kn())},Le=function(){let{confirm:Tn,closeDropdown:er}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Tn&&ae([]),er&&jn(!1),g(""),fr(Nn?(Kn||[]).map(Sr=>String(Sr)):[])},qe=function(){let{closeDropdown:Tn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Tn&&jn(!1),ae(kn())},dt=Tn=>{Tn&&Vn!==void 0&&fr(Vn||[]),jn(Tn),!Tn&&!at.filterDropdown&&Re()},Ct=Z()({[`${xt}-menu-without-submenu`]:!fa(at.filters||[])}),Kt=Tn=>{if(Tn.target.checked){const er=da(at==null?void 0:at.filters).map(Sr=>String(Sr));fr(er)}else fr([])},pn=Tn=>{let{filters:er}=Tn;return(er||[]).map((Sr,wr)=>{const ri=String(Sr.value),ii={title:Sr.text,key:Sr.value!==void 0?ri:wr};return Sr.children&&(ii.children=pn({filters:Sr.children})),ii})},jt=Tn=>{var er;return Object.assign(Object.assign({},Tn),{text:Tn.title,value:Tn.key,children:((er=Tn.children)===null||er===void 0?void 0:er.map(Sr=>jt(Sr)))||[]})};let Jt;if(typeof at.filterDropdown=="function")Jt=at.filterDropdown({prefixCls:`${xt}-custom`,setSelectedKeys:Tn=>Or({selectedKeys:Tn}),selectedKeys:kn(),confirm:qe,clearFilters:Le,filters:at.filters,visible:pr,close:()=>{jn(!1)}});else if(at.filterDropdown)Jt=at.filterDropdown;else{const Tn=kn()||[],er=()=>(at.filters||[]).length===0?S.createElement(ur.Z,{image:ur.Z.PRESENTED_IMAGE_SIMPLE,description:sn.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Ot==="tree"?S.createElement(S.Fragment,null,S.createElement(Oi,{filterSearch:Se,value:f,onChange:k,tablePrefixCls:Ge,locale:sn}),S.createElement("div",{className:`${Ge}-filter-dropdown-tree`},yt?S.createElement(Mi.default,{checked:Tn.length===da(at.filters).length,indeterminate:Tn.length>0&&Tn.length<da(at.filters).length,className:`${Ge}-filter-dropdown-checkall`,onChange:Kt},sn.filterCheckall):null,S.createElement(Nr.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:yt,checkStrictly:!yt,className:`${xt}-menu`,onCheck:Wr,checkedKeys:Tn,selectedKeys:Tn,showIcon:!1,treeData:pn({filters:at.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:f.trim()?wr=>typeof Se=="function"?Se(f,jt(wr)):dr(f,wr.title):void 0}))):S.createElement(S.Fragment,null,S.createElement(Oi,{filterSearch:Se,value:f,onChange:k,tablePrefixCls:Ge,locale:sn}),S.createElement(_r.default,{selectable:!0,multiple:yt,prefixCls:`${xt}-menu`,className:Ct,onSelect:Or,onDeselect:Or,selectedKeys:Tn,getPopupContainer:lt,openKeys:q,onOpenChange:d,items:sr({filters:at.filters||[],filterSearch:Se,prefixCls:et,filteredKeys:kn(),filterMultiple:yt,searchValue:f})})),Sr=()=>Nn?(0,H.Z)((Kn||[]).map(wr=>String(wr)),Tn,!0):Tn.length===0;Jt=S.createElement(S.Fragment,null,er(),S.createElement("div",{className:`${et}-dropdown-btns`},S.createElement(Pn.ZP,{type:"link",size:"small",disabled:Sr(),onClick:()=>Le()},sn.filterReset),S.createElement(Pn.ZP,{type:"primary",size:"small",onClick:Re},sn.filterConfirm)))}at.filterDropdown&&(Jt=S.createElement(cr.J,{selectable:void 0},Jt));const un=()=>S.createElement(Za,{className:`${et}-dropdown`},Jt);let Cn;typeof at.filterIcon=="function"?Cn=at.filterIcon(Fr):at.filterIcon?Cn=at.filterIcon:Cn=S.createElement(vi,null);const{direction:ir}=S.useContext(Ci.E_);return S.createElement("div",{className:`${et}-column`},S.createElement("span",{className:`${Ge}-column-title`},nn),S.createElement(na.Z,{dropdownRender:un,trigger:["click"],open:pr,onOpenChange:dt,getPopupContainer:lt,placement:ir==="rtl"?"bottomLeft":"bottomRight"},S.createElement("span",{role:"button",tabIndex:-1,className:Z()(`${et}-trigger`,{active:Fr}),onClick:Tn=>{Tn.stopPropagation()}},Cn)))}var zi=Xr;function ui(ne,ue,$e){let Ge=[];return(ne||[]).forEach((et,at)=>{var xt;const _t=Ii(at,$e);if(et.filters||"filterDropdown"in et||"onFilter"in et)if("filteredValue"in et){let yt=et.filteredValue;"filterDropdown"in et||(yt=(xt=yt==null?void 0:yt.map(String))!==null&&xt!==void 0?xt:yt),Ge.push({column:et,key:Ri(et,_t),filteredKeys:yt,forceFiltered:et.filtered})}else Ge.push({column:et,key:Ri(et,_t),filteredKeys:ue&&et.defaultFilteredValue?et.defaultFilteredValue:void 0,forceFiltered:et.filtered});"children"in et&&(Ge=[].concat((0,tt.Z)(Ge),(0,tt.Z)(ui(et.children,ue,_t))))}),Ge}function sa(ne,ue,$e,Ge,et,at,xt,_t){return $e.map((yt,Ot)=>{const Se=Ii(Ot,_t),{filterMultiple:Lt=!0,filterMode:ln,filterSearch:sn}=yt;let nn=yt;if(nn.filters||nn.filterDropdown){const lt=Ri(nn,Se),Ln=Ge.find($n=>{let{key:Nn}=$n;return lt===Nn});nn=Object.assign(Object.assign({},nn),{title:$n=>S.createElement(zi,{tablePrefixCls:ne,prefixCls:`${ne}-filter`,dropdownPrefixCls:ue,column:nn,columnKey:lt,filterState:Ln,filterMultiple:Lt,filterMode:ln,filterSearch:sn,triggerFilter:at,locale:et,getPopupContainer:xt},ji(yt.title,$n))})}return"children"in nn&&(nn=Object.assign(Object.assign({},nn),{children:sa(ne,ue,nn.children,Ge,et,at,xt,Se)})),nn})}function ja(ne){const ue={};return ne.forEach($e=>{let{key:Ge,filteredKeys:et,column:at}=$e;const{filters:xt,filterDropdown:_t}=at;if(_t)ue[Ge]=et||null;else if(Array.isArray(et)){const yt=da(xt);ue[Ge]=yt.filter(Ot=>et.includes(String(Ot)))}else ue[Ge]=null}),ue}function Ka(ne,ue){return ue.reduce(($e,Ge)=>{const{column:{onFilter:et,filters:at},filteredKeys:xt}=Ge;return et&&xt&&xt.length?$e.filter(_t=>xt.some(yt=>{const Ot=da(at),Se=Ot.findIndex(ln=>String(ln)===String(yt)),Lt=Se!==-1?Ot[Se]:yt;return et(Lt,_t)})):$e},ne)}const ya=ne=>ne.flatMap(ue=>"children"in ue?[ue].concat((0,tt.Z)(ya(ue.children||[]))):[ue]);function as(ne){let{prefixCls:ue,dropdownPrefixCls:$e,mergedColumns:Ge,onFilterChange:et,getPopupContainer:at,locale:xt}=ne;const _t=S.useMemo(()=>ya(Ge||[]),[Ge]),[yt,Ot]=S.useState(()=>ui(_t,!0)),Se=S.useMemo(()=>{const nn=ui(_t,!1);if(nn.length===0)return nn;let lt=!0,Ln=!0;if(nn.forEach($n=>{let{filteredKeys:Nn}=$n;Nn!==void 0?lt=!1:Ln=!1}),lt){const $n=(_t||[]).map((Nn,Kn)=>Ri(Nn,Ii(Kn)));return yt.filter(Nn=>{let{key:Kn}=Nn;return $n.includes(Kn)}).map(Nn=>{const Kn=_t[$n.findIndex(br=>br===Nn.key)];return Object.assign(Object.assign({},Nn),{column:Object.assign(Object.assign({},Nn.column),Kn),forceFiltered:Kn.filtered})})}return nn},[_t,yt]),Lt=S.useMemo(()=>ja(Se),[Se]),ln=nn=>{const lt=Se.filter(Ln=>{let{key:$n}=Ln;return $n!==nn.key});lt.push(nn),Ot(lt),et(ja(lt),lt)};return[nn=>sa(ue,$e,nn,Se,xt,ln,at),Se,Lt]}var ss=as;function os(ne,ue,$e){const Ge=S.useRef({});function et(at){if(!Ge.current||Ge.current.data!==ne||Ge.current.childrenColumnName!==ue||Ge.current.getRowKey!==$e){let _t=function(yt){yt.forEach((Ot,Se)=>{const Lt=$e(Ot,Se);xt.set(Lt,Ot),Ot&&typeof Ot=="object"&&ue in Ot&&_t(Ot[ue]||[])})};const xt=new Map;_t(ne),Ge.current={data:ne,childrenColumnName:ue,kvMap:xt,getRowKey:$e}}return Ge.current.kvMap.get(at)}return[et]}var ts=h(50371),ls=function(ne,ue){var $e={};for(var Ge in ne)Object.prototype.hasOwnProperty.call(ne,Ge)&&ue.indexOf(Ge)<0&&($e[Ge]=ne[Ge]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,Ge=Object.getOwnPropertySymbols(ne);et<Ge.length;et++)ue.indexOf(Ge[et])<0&&Object.prototype.propertyIsEnumerable.call(ne,Ge[et])&&($e[Ge[et]]=ne[Ge[et]]);return $e};const Aa=10;function Xi(ne,ue){const $e={current:ne.current,pageSize:ne.pageSize};return Object.keys(ue&&typeof ue=="object"?ue:{}).forEach(et=>{const at=ne[et];typeof at!="function"&&($e[et]=at)}),$e}function us(ne,ue,$e){const Ge=$e&&typeof $e=="object"?$e:{},{total:et=0}=Ge,at=ls(Ge,["total"]),[xt,_t]=(0,S.useState)(()=>({current:"defaultCurrent"in at?at.defaultCurrent:1,pageSize:"defaultPageSize"in at?at.defaultPageSize:Aa})),yt=(0,ts.Z)(xt,at,{total:et>0?et:ne}),Ot=Math.ceil((et||ne)/yt.pageSize);yt.current>Ot&&(yt.current=Ot||1);const Se=(ln,sn)=>{_t({current:ln!=null?ln:1,pageSize:sn||yt.pageSize})},Lt=(ln,sn)=>{var nn;$e&&((nn=$e.onChange)===null||nn===void 0||nn.call($e,ln,sn)),Se(ln,sn),ue(ln,sn||(yt==null?void 0:yt.pageSize))};return $e===!1?[{},()=>{}]:[Object.assign(Object.assign({},yt),{onChange:Lt}),Se]}var ns=us,ba=h(84105),xa=h(35654),ti=h(90782),Br=h(71430),ia=h(18929);const Ui={},Pi="SELECT_ALL",oa="SELECT_INVERT",pi="SELECT_NONE",Oa=[],la=(ne,ue)=>{let $e=[];return(ue||[]).forEach(Ge=>{$e.push(Ge),Ge&&typeof Ge=="object"&&ne in Ge&&($e=[].concat((0,tt.Z)($e),(0,tt.Z)(la(ne,Ge[ne]))))}),$e};var Fa=(ne,ue)=>{const{preserveSelectedRowKeys:$e,selectedRowKeys:Ge,defaultSelectedRowKeys:et,getCheckboxProps:at,onChange:xt,onSelect:_t,onSelectAll:yt,onSelectInvert:Ot,onSelectNone:Se,onSelectMultiple:Lt,columnWidth:ln,type:sn,selections:nn,fixed:lt,renderCell:Ln,hideSelectAll:$n,checkStrictly:Nn=!0}=ue||{},{prefixCls:Kn,data:br,pageData:xr,getRecordByKey:hr,getRowKey:Pr,expandType:Fr,childrenColumnName:jn,locale:pr,getPopupContainer:Vn}=ne,[kn,fr]=(0,ia.Z)(Ge||et||Oa,{value:Ge}),Or=S.useRef(new Map),Wr=(0,S.useCallback)(jt=>{if($e){const Jt=new Map;jt.forEach(un=>{let Cn=hr(un);!Cn&&Or.current.has(un)&&(Cn=Or.current.get(un)),Jt.set(un,Cn)}),Or.current=Jt}},[hr,$e]);S.useEffect(()=>{Wr(kn)},[kn]);const{keyEntities:q}=(0,S.useMemo)(()=>{if(Nn)return{keyEntities:null};let jt=br;if($e){const Jt=new Set(br.map((Cn,ir)=>Pr(Cn,ir))),un=Array.from(Or.current).reduce((Cn,ir)=>{let[Tn,er]=ir;return Jt.has(Tn)?Cn:Cn.concat(er)},[]);jt=[].concat((0,tt.Z)(jt),(0,tt.Z)(un))}return(0,Br.I8)(jt,{externalGetKey:Pr,childrenPropName:jn})},[br,Pr,Nn,jn,$e]),l=(0,S.useMemo)(()=>la(jn,xr),[jn,xr]),d=(0,S.useMemo)(()=>{const jt=new Map;return l.forEach((Jt,un)=>{const Cn=Pr(Jt,un),ir=(at?at(Jt):null)||{};jt.set(Cn,ir)}),jt},[l,Pr,at]),f=(0,S.useCallback)(jt=>{var Jt;return!!(!((Jt=d.get(Pr(jt)))===null||Jt===void 0)&&Jt.disabled)},[d,Pr]),[g,k]=(0,S.useMemo)(()=>{if(Nn)return[kn||[],[]];const{checkedKeys:jt,halfCheckedKeys:Jt}=(0,ti.S)(kn,!0,q,f);return[jt||[],Jt]},[kn,Nn,q,f]),ae=(0,S.useMemo)(()=>{const jt=sn==="radio"?g.slice(0,1):g;return new Set(jt)},[g,sn]),Re=(0,S.useMemo)(()=>sn==="radio"?new Set:new Set(k),[k,sn]),[Le,qe]=(0,S.useState)(null);S.useEffect(()=>{ue||fr(Oa)},[!!ue]);const dt=(0,S.useCallback)((jt,Jt)=>{let un,Cn;Wr(jt),$e?(un=jt,Cn=jt.map(ir=>Or.current.get(ir))):(un=[],Cn=[],jt.forEach(ir=>{const Tn=hr(ir);Tn!==void 0&&(un.push(ir),Cn.push(Tn))})),fr(un),xt==null||xt(un,Cn,{type:Jt})},[fr,hr,xt,$e]),Ct=(0,S.useCallback)((jt,Jt,un,Cn)=>{if(_t){const ir=un.map(Tn=>hr(Tn));_t(hr(jt),Jt,ir,Cn)}dt(un,"single")},[_t,hr,dt]),Kt=(0,S.useMemo)(()=>!nn||$n?null:(nn===!0?[Pi,oa,pi]:nn).map(Jt=>Jt===Pi?{key:"all",text:pr.selectionAll,onSelect(){dt(br.map((un,Cn)=>Pr(un,Cn)).filter(un=>{const Cn=d.get(un);return!(Cn!=null&&Cn.disabled)||ae.has(un)}),"all")}}:Jt===oa?{key:"invert",text:pr.selectInvert,onSelect(){const un=new Set(ae);xr.forEach((ir,Tn)=>{const er=Pr(ir,Tn),Sr=d.get(er);Sr!=null&&Sr.disabled||(un.has(er)?un.delete(er):un.add(er))});const Cn=Array.from(un);Ot&&Ot(Cn),dt(Cn,"invert")}}:Jt===pi?{key:"none",text:pr.selectNone,onSelect(){Se==null||Se(),dt(Array.from(ae).filter(un=>{const Cn=d.get(un);return Cn==null?void 0:Cn.disabled}),"none")}}:Jt).map(Jt=>Object.assign(Object.assign({},Jt),{onSelect:function(){for(var un,Cn,ir=arguments.length,Tn=new Array(ir),er=0;er<ir;er++)Tn[er]=arguments[er];(Cn=Jt.onSelect)===null||Cn===void 0||(un=Cn).call.apply(un,[Jt].concat(Tn)),qe(null)}})),[nn,ae,xr,Pr,Ot,dt]);return[(0,S.useCallback)(jt=>{var Jt;if(!ue)return jt.filter(zr=>zr!==Ui);let un=(0,tt.Z)(jt);const Cn=new Set(ae),ir=l.map(Pr).filter(zr=>!d.get(zr).disabled),Tn=ir.every(zr=>Cn.has(zr)),er=ir.some(zr=>Cn.has(zr)),Sr=()=>{const zr=[];Tn?ir.forEach(Qr=>{Cn.delete(Qr),zr.push(Qr)}):ir.forEach(Qr=>{Cn.has(Qr)||(Cn.add(Qr),zr.push(Qr))});const qr=Array.from(Cn);yt==null||yt(!Tn,qr.map(Qr=>hr(Qr)),zr.map(Qr=>hr(Qr))),dt(qr,"all"),qe(null)};let wr;if(sn!=="radio"){let zr;if(Kt){const Hr={getPopupContainer:Vn,items:Kt.map((ra,ta)=>{const{key:Ea,text:$a,onSelect:Sa}=ra;return{key:Ea!=null?Ea:ta,onClick:()=>{Sa==null||Sa(ir)},label:$a}})};zr=S.createElement("div",{className:`${Kn}-selection-extra`},S.createElement(na.Z,{menu:Hr,getPopupContainer:Vn},S.createElement("span",null,S.createElement(ba.Z,null))))}const qr=l.map((Hr,ra)=>{const ta=Pr(Hr,ra),Ea=d.get(ta)||{};return Object.assign({checked:Cn.has(ta)},Ea)}).filter(Hr=>{let{disabled:ra}=Hr;return ra}),Qr=!!qr.length&&qr.length===l.length,Di=Qr&&qr.every(Hr=>{let{checked:ra}=Hr;return ra}),ea=Qr&&qr.some(Hr=>{let{checked:ra}=Hr;return ra});wr=!$n&&S.createElement("div",{className:`${Kn}-selection`},S.createElement(Mi.default,{checked:Qr?Di:!!l.length&&Tn,indeterminate:Qr?!Di&&ea:!Tn&&er,onChange:Sr,disabled:l.length===0||Qr,"aria-label":zr?"Custom selection":"Select all",skipGroup:!0}),zr)}let ri;sn==="radio"?ri=(zr,qr,Qr)=>{const Di=Pr(qr,Qr),ea=Cn.has(Di);return{node:S.createElement(Zn.ZP,Object.assign({},d.get(Di),{checked:ea,onClick:Hr=>Hr.stopPropagation(),onChange:Hr=>{Cn.has(Di)||Ct(Di,!0,[Di],Hr.nativeEvent)}})),checked:ea}}:ri=(zr,qr,Qr)=>{var Di;const ea=Pr(qr,Qr),Hr=Cn.has(ea),ra=Re.has(ea),ta=d.get(ea);let Ea;return Fr==="nest"?Ea=ra:Ea=(Di=ta==null?void 0:ta.indeterminate)!==null&&Di!==void 0?Di:ra,{node:S.createElement(Mi.default,Object.assign({},ta,{indeterminate:Ea,checked:Hr,skipGroup:!0,onClick:$a=>$a.stopPropagation(),onChange:$a=>{let{nativeEvent:Sa}=$a;const{shiftKey:xs}=Sa;let qa=-1,Ma=-1;if(xs&&Nn){const ha=new Set([Le,ea]);ir.some((pa,Vi)=>{if(ha.has(pa))if(qa===-1)qa=Vi;else return Ma=Vi,!0;return!1})}if(Ma!==-1&&qa!==Ma&&Nn){const ha=ir.slice(qa,Ma+1),pa=[];Hr?ha.forEach(Ei=>{Cn.has(Ei)&&(pa.push(Ei),Cn.delete(Ei))}):ha.forEach(Ei=>{Cn.has(Ei)||(pa.push(Ei),Cn.add(Ei))});const Vi=Array.from(Cn);Lt==null||Lt(!Hr,Vi.map(Ei=>hr(Ei)),pa.map(Ei=>hr(Ei))),dt(Vi,"multiple")}else{const ha=g;if(Nn){const pa=Hr?(0,xa._5)(ha,ea):(0,xa.L0)(ha,ea);Ct(ea,!Hr,pa,Sa)}else{const pa=(0,ti.S)([].concat((0,tt.Z)(ha),[ea]),!0,q,f),{checkedKeys:Vi,halfCheckedKeys:Ei}=pa;let rs=Vi;if(Hr){const Is=new Set(Vi);Is.delete(ea),rs=(0,ti.S)(Array.from(Is),{checked:!1,halfCheckedKeys:Ei},q,f).checkedKeys}Ct(ea,!Hr,rs,Sa)}}qe(Hr?null:ea)}})),checked:Hr}};const ii=(zr,qr,Qr)=>{const{node:Di,checked:ea}=ri(zr,qr,Qr);return Ln?Ln(ea,qr,Qr,Di):Di};if(!un.includes(Ui))if(un.findIndex(zr=>{var qr;return((qr=zr[fe])===null||qr===void 0?void 0:qr.columnType)==="EXPAND_COLUMN"})===0){const[zr,...qr]=un;un=[zr,Ui].concat((0,tt.Z)(qr))}else un=[Ui].concat((0,tt.Z)(un));const Zi=un.indexOf(Ui);un=un.filter((zr,qr)=>zr!==Ui||qr===Zi);const ci=un[Zi-1],ai=un[Zi+1];let bi=lt;bi===void 0&&((ai==null?void 0:ai.fixed)!==void 0?bi=ai.fixed:(ci==null?void 0:ci.fixed)!==void 0&&(bi=ci.fixed)),bi&&ci&&((Jt=ci[fe])===null||Jt===void 0?void 0:Jt.columnType)==="EXPAND_COLUMN"&&ci.fixed===void 0&&(ci.fixed=bi);const Ji=Z()(`${Kn}-selection-col`,{[`${Kn}-selection-col-with-dropdown`]:nn&&sn==="checkbox"}),_a={fixed:bi,width:ln,className:`${Kn}-selection-column`,title:ue.columnTitle||wr,render:ii,onCell:ue.onCell,[fe]:{className:Ji}};return un.map(zr=>zr===Ui?_a:zr)},[Pr,l,ue,g,ae,Re,ln,Kt,Fr,Le,d,Lt,Ct,f]),ae]},Si=h(89489),vs=h(59477),Ta=h(6848);const Ga="ascend",Ts="descend";function Xa(ne){return typeof ne.sorter=="object"&&typeof ne.sorter.multiple=="number"?ne.sorter.multiple:!1}function cs(ne){return typeof ne=="function"?ne:ne&&typeof ne=="object"&&ne.compare?ne.compare:!1}function ys(ne,ue){return ue?ne[ne.indexOf(ue)+1]:ne[0]}function ds(ne,ue,$e){let Ge=[];function et(at,xt){Ge.push({column:at,key:Ri(at,xt),multiplePriority:Xa(at),sortOrder:at.sortOrder})}return(ne||[]).forEach((at,xt)=>{const _t=Ii(xt,$e);at.children?("sortOrder"in at&&et(at,_t),Ge=[].concat((0,tt.Z)(Ge),(0,tt.Z)(ds(at.children,ue,_t)))):at.sorter&&("sortOrder"in at?et(at,_t):ue&&at.defaultSortOrder&&Ge.push({column:at,key:Ri(at,_t),multiplePriority:Xa(at),sortOrder:at.defaultSortOrder}))}),Ge}function Ds(ne,ue,$e,Ge,et,at,xt,_t){return(ue||[]).map((yt,Ot)=>{const Se=Ii(Ot,_t);let Lt=yt;if(Lt.sorter){const ln=Lt.sortDirections||et,sn=Lt.showSorterTooltip===void 0?xt:Lt.showSorterTooltip,nn=Ri(Lt,Se),lt=$e.find(Fr=>{let{key:jn}=Fr;return jn===nn}),Ln=lt?lt.sortOrder:null,$n=ys(ln,Ln);let Nn;if(yt.sortIcon)Nn=yt.sortIcon({sortOrder:Ln});else{const Fr=ln.includes(Ga)&&S.createElement(vs.Z,{className:Z()(`${ne}-column-sorter-up`,{active:Ln===Ga})}),jn=ln.includes(Ts)&&S.createElement(Si.Z,{className:Z()(`${ne}-column-sorter-down`,{active:Ln===Ts})});Nn=S.createElement("span",{className:Z()(`${ne}-column-sorter`,{[`${ne}-column-sorter-full`]:!!(Fr&&jn)})},S.createElement("span",{className:`${ne}-column-sorter-inner`,"aria-hidden":"true"},Fr,jn))}const{cancelSort:Kn,triggerAsc:br,triggerDesc:xr}=at||{};let hr=Kn;$n===Ts?hr=xr:$n===Ga&&(hr=br);const Pr=typeof sn=="object"?sn:{title:hr};Lt=Object.assign(Object.assign({},Lt),{className:Z()(Lt.className,{[`${ne}-column-sort`]:Ln}),title:Fr=>{const jn=S.createElement("div",{className:`${ne}-column-sorters`},S.createElement("span",{className:`${ne}-column-title`},ji(yt.title,Fr)),Nn);return sn?S.createElement(Ta.Z,Object.assign({},Pr),jn):jn},onHeaderCell:Fr=>{const jn=yt.onHeaderCell&&yt.onHeaderCell(Fr)||{},pr=jn.onClick,Vn=jn.onKeyDown;jn.onClick=Or=>{Ge({column:yt,key:nn,sortOrder:$n,multiplePriority:Xa(yt)}),pr==null||pr(Or)},jn.onKeyDown=Or=>{Or.keyCode===Bi.Z.ENTER&&(Ge({column:yt,key:nn,sortOrder:$n,multiplePriority:Xa(yt)}),Vn==null||Vn(Or))};const kn=Ti(yt.title,{}),fr=kn==null?void 0:kn.toString();return Ln?jn["aria-sort"]=Ln==="ascend"?"ascending":"descending":jn["aria-label"]=fr||"",jn.className=Z()(jn.className,`${ne}-column-has-sorters`),jn.tabIndex=0,yt.ellipsis&&(jn.title=(kn!=null?kn:"").toString()),jn}})}return"children"in Lt&&(Lt=Object.assign(Object.assign({},Lt),{children:Ds(ne,Lt.children,$e,Ge,et,at,xt,Se)})),Lt})}function Pa(ne){const{column:ue,sortOrder:$e}=ne;return{column:ue,order:$e,field:ue.dataIndex,columnKey:ue.key}}function bs(ne){const ue=ne.filter($e=>{let{sortOrder:Ge}=$e;return Ge}).map(Pa);return ue.length===0&&ne.length?Object.assign(Object.assign({},Pa(ne[ne.length-1])),{column:void 0}):ue.length<=1?ue[0]||{}:ue}function wi(ne,ue,$e){const Ge=ue.slice().sort((xt,_t)=>_t.multiplePriority-xt.multiplePriority),et=ne.slice(),at=Ge.filter(xt=>{let{column:{sorter:_t},sortOrder:yt}=xt;return cs(_t)&&yt});return at.length?et.sort((xt,_t)=>{for(let yt=0;yt<at.length;yt+=1){const Ot=at[yt],{column:{sorter:Se},sortOrder:Lt}=Ot,ln=cs(Se);if(ln&&Lt){const sn=ln(xt,_t,Lt);if(sn!==0)return Lt===Ga?sn:-sn}}return 0}).map(xt=>{const _t=xt[$e];return _t?Object.assign(Object.assign({},xt),{[$e]:wi(_t,ue,$e)}):xt}):et}function _i(ne){let{prefixCls:ue,mergedColumns:$e,onSorterChange:Ge,sortDirections:et,tableLocale:at,showSorterTooltip:xt}=ne;const[_t,yt]=S.useState(ds($e,!0)),Ot=S.useMemo(()=>{let nn=!0;const lt=ds($e,!1);if(!lt.length)return _t;const Ln=[];function $n(Kn){nn?Ln.push(Kn):Ln.push(Object.assign(Object.assign({},Kn),{sortOrder:null}))}let Nn=null;return lt.forEach(Kn=>{Nn===null?($n(Kn),Kn.sortOrder&&(Kn.multiplePriority===!1?nn=!1:Nn=!0)):(Nn&&Kn.multiplePriority!==!1||(nn=!1),$n(Kn))}),Ln},[$e,_t]),Se=S.useMemo(()=>{const nn=Ot.map(lt=>{let{column:Ln,sortOrder:$n}=lt;return{column:Ln,order:$n}});return{sortColumns:nn,sortColumn:nn[0]&&nn[0].column,sortOrder:nn[0]&&nn[0].order}},[Ot]);function Lt(nn){let lt;nn.multiplePriority===!1||!Ot.length||Ot[0].multiplePriority===!1?lt=[nn]:lt=[].concat((0,tt.Z)(Ot.filter(Ln=>{let{key:$n}=Ln;return $n!==nn.key})),[nn]),yt(lt),Ge(bs(lt),lt)}return[nn=>Ds(ue,nn,Ot,Lt,et,at,xt),Ot,Se,()=>bs(Ot)]}function mi(ne,ue){return ne.map($e=>{const Ge=Object.assign({},$e);return Ge.title=ji($e.title,ue),"children"in Ge&&(Ge.children=mi(Ge.children,ue)),Ge})}function Qi(ne){return[S.useCallback($e=>mi($e,ne),[ne])]}var qi=ar((ne,ue)=>{const{_renderTimes:$e}=ne,{_renderTimes:Ge}=ue;return $e!==Ge}),fs=Mr((ne,ue)=>{const{_renderTimes:$e}=ne,{_renderTimes:Ge}=ue;return $e!==Ge}),Qa=h(64993),hs=h(17313),Ls=h(83116),ps=h(37613),wn=ne=>{const{componentCls:ue}=ne,$e=`${ne.lineWidth}px ${ne.lineType} ${ne.tableBorderColor}`,Ge=(et,at,xt)=>({[`&${ue}-${et}`]:{[`> ${ue}-container`]:{[`> ${ue}-content, > ${ue}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${ue}-expanded-row-fixed`]:{margin:`-${at}px -${xt+ne.lineWidth}px`}}}}}});return{[`${ue}-wrapper`]:{[`${ue}${ue}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${ue}-title`]:{border:$e,borderBottom:0},[`> ${ue}-container`]:{borderInlineStart:$e,borderTop:$e,[`
> ${ue}-content,
> ${ue}-header,
> ${ue}-body,
> ${ue}-summary
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:$e},"> thead":{"> tr:not(:last-child) > th":{borderBottom:$e},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${ue}-cell-fix-right-first::after`]:{borderInlineEnd:$e}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${ue}-expanded-row-fixed`]:{margin:`-${ne.tablePaddingVertical}px -${ne.tablePaddingHorizontal+ne.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:ne.lineWidth,bottom:0,borderInlineEnd:$e,content:'""'}}}}}},[`&${ue}-scroll-horizontal`]:{[`> ${ue}-container > ${ue}-body`]:{"> table > tbody":{[`
> tr${ue}-expanded-row,
> tr${ue}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Ge("middle",ne.tablePaddingVerticalMiddle,ne.tablePaddingHorizontalMiddle)),Ge("small",ne.tablePaddingVerticalSmall,ne.tablePaddingHorizontalSmall)),{[`> ${ue}-footer`]:{border:$e,borderTop:0}}),[`${ue}-cell`]:{[`${ue}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${ne.lineWidth}px 0 ${ne.lineWidth}px ${ne.tableHeaderBg}`}},[`${ue}-bordered ${ue}-cell-scrollbar`]:{borderInlineEnd:$e}}}},$s=ne=>{const{componentCls:ue}=ne;return{[`${ue}-wrapper`]:{[`${ue}-cell-ellipsis`]:Object.assign(Object.assign({},hs.vS),{wordBreak:"keep-all",[`
&${ue}-cell-fix-left-last,
&${ue}-cell-fix-right-first
`]:{overflow:"visible",[`${ue}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${ue}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Xs=ne=>{const{componentCls:ue}=ne;return{[`${ue}-wrapper`]:{[`${ue}-tbody > tr${ue}-placeholder`]:{textAlign:"center",color:ne.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:ne.colorBgContainer}}}}},zs=h(15969),Wa=ne=>{const{componentCls:ue,antCls:$e,controlInteractiveSize:Ge,motionDurationSlow:et,lineWidth:at,paddingXS:xt,lineType:_t,tableBorderColor:yt,tableExpandIconBg:Ot,tableExpandColumnWidth:Se,borderRadius:Lt,fontSize:ln,fontSizeSM:sn,lineHeight:nn,tablePaddingVertical:lt,tablePaddingHorizontal:Ln,tableExpandedRowBg:$n,paddingXXS:Nn}=ne,Kn=Ge/2-at,br=Kn*2+at*3,xr=`${at}px ${_t} ${yt}`,hr=Nn-at;return{[`${ue}-wrapper`]:{[`${ue}-expand-icon-col`]:{width:Se},[`${ue}-row-expand-icon-cell`]:{textAlign:"center",[`${ue}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${ue}-row-indent`]:{height:1,float:"left"},[`${ue}-row-expand-icon`]:Object.assign(Object.assign({},(0,zs.N)(ne)),{position:"relative",float:"left",boxSizing:"border-box",width:br,height:br,padding:0,color:"inherit",lineHeight:`${br}px`,background:Ot,border:xr,borderRadius:Lt,transform:`scale(${Ge/br})`,transition:`all ${et}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${et} ease-out`,content:'""'},"&::before":{top:Kn,insetInlineEnd:hr,insetInlineStart:hr,height:at},"&::after":{top:hr,bottom:hr,insetInlineStart:Kn,width:at,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${ue}-row-indent + ${ue}-row-expand-icon`]:{marginTop:(ln*nn-at*3)/2-Math.ceil((sn*1.4-at*3)/2),marginInlineEnd:xt},[`tr${ue}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:$n}},[`${$e}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${ue}-expanded-row-fixed`]:{position:"relative",margin:`-${lt}px -${Ln}px`,padding:`${lt}px ${Ln}px`}}}},Js=ne=>{const{componentCls:ue,antCls:$e,iconCls:Ge,tableFilterDropdownWidth:et,tableFilterDropdownSearchWidth:at,paddingXXS:xt,paddingXS:_t,colorText:yt,lineWidth:Ot,lineType:Se,tableBorderColor:Lt,tableHeaderIconColor:ln,fontSizeSM:sn,tablePaddingHorizontal:nn,borderRadius:lt,motionDurationSlow:Ln,colorTextDescription:$n,colorPrimary:Nn,tableHeaderFilterActiveBg:Kn,colorTextDisabled:br,tableFilterDropdownBg:xr,tableFilterDropdownHeight:hr,controlItemBgHover:Pr,controlItemBgActive:Fr,boxShadowSecondary:jn,filterDropdownMenuBg:pr}=ne,Vn=`${$e}-dropdown`,kn=`${ue}-filter-dropdown`,fr=`${$e}-tree`,Or=`${Ot}px ${Se} ${Lt}`;return[{[`${ue}-wrapper`]:{[`${ue}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${ue}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-xt,marginInline:`${xt}px ${-nn/2}px`,padding:`0 ${xt}px`,color:ln,fontSize:sn,borderRadius:lt,cursor:"pointer",transition:`all ${Ln}`,"&:hover":{color:$n,background:Kn},"&.active":{color:Nn}}}},{[`${$e}-dropdown`]:{[kn]:Object.assign(Object.assign({},(0,hs.Wf)(ne)),{minWidth:et,backgroundColor:xr,borderRadius:lt,boxShadow:jn,overflow:"hidden",[`${Vn}-menu`]:{maxHeight:hr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:pr,"&:empty::after":{display:"block",padding:`${_t}px 0`,color:br,fontSize:sn,textAlign:"center",content:'"Not Found"'}},[`${kn}-tree`]:{paddingBlock:`${_t}px 0`,paddingInline:_t,[fr]:{padding:0},[`${fr}-treenode ${fr}-node-content-wrapper:hover`]:{backgroundColor:Pr},[`${fr}-treenode-checkbox-checked ${fr}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Fr}}},[`${kn}-search`]:{padding:_t,borderBottom:Or,"&-input":{input:{minWidth:at},[Ge]:{color:br}}},[`${kn}-checkall`]:{width:"100%",marginBottom:xt,marginInlineStart:xt},[`${kn}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${_t-Ot}px ${_t}px`,overflow:"hidden",borderTop:Or}})}},{[`${$e}-dropdown ${kn}, ${kn}-submenu`]:{[`${$e}-checkbox-wrapper + span`]:{paddingInlineStart:_t,color:yt},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Ps=ne=>{const{componentCls:ue,lineWidth:$e,colorSplit:Ge,motionDurationSlow:et,zIndexTableFixed:at,tableBg:xt,zIndexTableSticky:_t}=ne,yt=Ge;return{[`${ue}-wrapper`]:{[`
${ue}-cell-fix-left,
${ue}-cell-fix-right
`]:{position:"sticky !important",zIndex:at,background:xt},[`
${ue}-cell-fix-left-first::after,
${ue}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-$e,width:30,transform:"translateX(100%)",transition:`box-shadow ${et}`,content:'""',pointerEvents:"none"},[`${ue}-cell-fix-left-all::after`]:{display:"none"},[`
${ue}-cell-fix-right-first::after,
${ue}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-$e,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${et}`,content:'""',pointerEvents:"none"},[`${ue}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:_t+1,width:30,transition:`box-shadow ${et}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${ue}-ping-left`]:{[`&:not(${ue}-has-fix-left) ${ue}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${yt}`}},[`
${ue}-cell-fix-left-first::after,
${ue}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${yt}`},[`${ue}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${ue}-ping-right`]:{[`&:not(${ue}-has-fix-right) ${ue}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${yt}`}},[`
${ue}-cell-fix-right-first::after,
${ue}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${yt}`}}}}},ks=ne=>{const{componentCls:ue,antCls:$e}=ne;return{[`${ue}-wrapper`]:{[`${ue}-pagination${$e}-pagination`]:{margin:`${ne.margin}px 0`},[`${ue}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:ne.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Ja=ne=>{const{componentCls:ue,tableRadius:$e}=ne;return{[`${ue}-wrapper`]:{[ue]:{[`${ue}-title, ${ue}-header`]:{borderRadius:`${$e}px ${$e}px 0 0`},[`${ue}-title + ${ue}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${ue}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:$e,borderStartEndRadius:$e,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:$e},"> *:last-child":{borderStartEndRadius:$e}}},"&-footer":{borderRadius:`0 0 ${$e}px ${$e}px`}}}}},yo=ne=>{const{componentCls:ue}=ne;return{[`${ue}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${ue}-pagination-left`]:{justifyContent:"flex-end"},[`${ue}-pagination-right`]:{justifyContent:"flex-start"},[`${ue}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${ue}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${ue}-row-indent`]:{float:"right"}}}}},Ks=ne=>{const{componentCls:ue,antCls:$e,iconCls:Ge,fontSizeIcon:et,padding:at,paddingXS:xt,tableHeaderIconColor:_t,tableHeaderIconColorHover:yt,tableSelectionColumnWidth:Ot}=ne;return{[`${ue}-wrapper`]:{[`${ue}-selection-col`]:{width:Ot,[`&${ue}-selection-col-with-dropdown`]:{width:Ot+et+at/4}},[`${ue}-bordered ${ue}-selection-col`]:{width:Ot+xt*2,[`&${ue}-selection-col-with-dropdown`]:{width:Ot+et+at/4+xt*2}},[`
table tr th${ue}-selection-column,
table tr td${ue}-selection-column
`]:{paddingInlineEnd:ne.paddingXS,paddingInlineStart:ne.paddingXS,textAlign:"center",[`${$e}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${ue}-selection-column${ue}-cell-fix-left`]:{zIndex:ne.zIndexTableFixed+1},[`table tr th${ue}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${ue}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${ue}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${ne.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${ne.tablePaddingHorizontal/4}px`,[Ge]:{color:_t,fontSize:et,verticalAlign:"baseline","&:hover":{color:yt}}}}}},Hs=ne=>{const{componentCls:ue}=ne,$e=(Ge,et,at,xt)=>({[`${ue}${ue}-${Ge}`]:{fontSize:xt,[`
${ue}-title,
${ue}-footer,
${ue}-cell,
${ue}-thead > tr > th,
${ue}-tbody > tr > th,
${ue}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${et}px ${at}px`},[`${ue}-filter-trigger`]:{marginInlineEnd:`-${at/2}px`},[`${ue}-expanded-row-fixed`]:{margin:`-${et}px -${at}px`},[`${ue}-tbody`]:{[`${ue}-wrapper:only-child ${ue}`]:{marginBlock:`-${et}px`,marginInline:`${ne.tableExpandColumnWidth-at}px -${at}px`}},[`${ue}-selection-column`]:{paddingInlineStart:`${at/4}px`}}});return{[`${ue}-wrapper`]:Object.assign(Object.assign({},$e("middle",ne.tablePaddingVerticalMiddle,ne.tablePaddingHorizontalMiddle,ne.tableFontSizeMiddle)),$e("small",ne.tablePaddingVerticalSmall,ne.tablePaddingHorizontalSmall,ne.tableFontSizeSmall))}},xo=ne=>{const{componentCls:ue,marginXXS:$e,fontSizeIcon:Ge,tableHeaderIconColor:et,tableHeaderIconColorHover:at}=ne;return{[`${ue}-wrapper`]:{[`${ue}-thead th${ue}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${ne.motionDurationSlow}`,"&:hover":{background:ne.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:ne.colorPrimary},[`
&${ue}-cell-fix-left:hover,
&${ue}-cell-fix-right:hover
`]:{background:ne.tableFixedHeaderSortActiveBg}},[`${ue}-thead th${ue}-column-sort`]:{background:ne.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${ue}-column-sort`]:{background:ne.tableBodySortBg},[`${ue}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${ue}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${ue}-column-sorter`]:{marginInlineStart:$e,color:et,fontSize:0,transition:`color ${ne.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Ge,"&.active":{color:ne.colorPrimary}},[`${ue}-column-sorter-up + ${ue}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${ue}-column-sorters:hover ${ue}-column-sorter`]:{color:at}}}},Eo=ne=>{const{componentCls:ue,opacityLoading:$e,tableScrollThumbBg:Ge,tableScrollThumbBgHover:et,tableScrollThumbSize:at,tableScrollBg:xt,zIndexTableSticky:_t,stickyScrollBarBorderRadius:yt}=ne,Ot=`${ne.lineWidth}px ${ne.lineType} ${ne.tableBorderColor}`;return{[`${ue}-wrapper`]:{[`${ue}-sticky`]:{"&-holder":{position:"sticky",zIndex:_t,background:ne.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${at}px !important`,zIndex:_t,display:"flex",alignItems:"center",background:xt,borderTop:Ot,opacity:$e,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:at,backgroundColor:Ge,borderRadius:yt,transition:`all ${ne.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:et}}}}}}},Rs=ne=>{const{componentCls:ue,lineWidth:$e,tableBorderColor:Ge}=ne,et=`${$e}px ${ne.lineType} ${Ge}`;return{[`${ue}-wrapper`]:{[`${ue}-summary`]:{position:"relative",zIndex:ne.zIndexTableFixed,background:ne.tableBg,"> tr":{"> th, > td":{borderBottom:et}}},[`div${ue}-summary`]:{boxShadow:`0 -${$e}px 0 ${Ge}`}}}},Bs=ne=>{const{componentCls:ue}=ne,$e=`${ne.lineWidth}px ${ne.lineType} ${ne.tableBorderColor}`,Ge=`${ue}-expanded-row-cell`;return{[`${ue}-wrapper`]:{[`${ue}-tbody-virtual`]:{[`${ue}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${ue}-cell`]:{borderBottom:$e},[`${ue}-expanded-row`]:{[`${Ge}${Ge}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${ne.lineWidth}px)`,borderInlineEnd:"none"}}},[`${ue}-bordered`]:{[`${ue}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:$e,position:"absolute"},[`${ue}-cell`]:{borderInlineEnd:$e,[`&${ue}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-ne.lineWidth,borderInlineStart:$e}}}}}}};const js=ne=>{const{componentCls:ue,fontWeightStrong:$e,tablePaddingVertical:Ge,tablePaddingHorizontal:et,lineWidth:at,lineType:xt,tableBorderColor:_t,tableFontSize:yt,tableBg:Ot,tableRadius:Se,tableHeaderTextColor:Lt,motionDurationMid:ln,tableHeaderBg:sn,tableHeaderCellSplitColor:nn,tableRowHoverBg:lt,tableSelectedRowBg:Ln,tableSelectedRowHoverBg:$n,tableFooterTextColor:Nn,tableFooterBg:Kn,paddingContentVerticalLG:br}=ne,xr=`${at}px ${xt} ${_t}`;return{[`${ue}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,hs.dF)()),{[ue]:Object.assign(Object.assign({},(0,hs.Wf)(ne)),{fontSize:yt,background:Ot,borderRadius:`${Se}px ${Se}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Se}px ${Se}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${ue}-cell,
${ue}-thead > tr > th,
${ue}-tbody > tr > th,
${ue}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${br}px ${et}px`,overflowWrap:"break-word"},[`${ue}-title`]:{padding:`${Ge}px ${et}px`},[`${ue}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Lt,fontWeight:$e,textAlign:"start",background:sn,borderBottom:xr,transition:`background ${ln} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${ue}-selection-column):not(${ue}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:nn,transform:"translateY(-50%)",transition:`background-color ${ln}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${ue}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${ln}, border-color ${ln}`,borderBottom:xr,[`
> ${ue}-wrapper:only-child,
> ${ue}-expanded-row-fixed > ${ue}-wrapper:only-child
`]:{[ue]:{marginBlock:`-${Ge}px`,marginInline:`${ne.tableExpandColumnWidth-et}px -${et}px`,[`${ue}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Lt,fontWeight:$e,textAlign:"start",background:sn,borderBottom:xr,transition:`background ${ln} ease`},[`
&${ue}-row:hover > th,
&${ue}-row:hover > td,
> th${ue}-cell-row-hover,
> td${ue}-cell-row-hover
`]:{background:lt},[`&${ue}-row-selected`]:{"> th, > td":{background:Ln},"&:hover > th, &:hover > td":{background:$n}}}},[`${ue}-footer`]:{padding:`${Ge}px ${et}px`,color:Nn,background:Kn}})}};var eo=(0,Ls.Z)("Table",ne=>{const{colorTextHeading:ue,colorSplit:$e,colorIcon:Ge,colorIconHover:et,opacityLoading:at,colorBgContainer:xt,controlInteractiveSize:_t,headerBg:yt,headerColor:Ot,headerSortActiveBg:Se,headerSortHoverBg:Lt,bodySortBg:ln,rowHoverBg:sn,rowSelectedBg:nn,rowSelectedHoverBg:lt,rowExpandedBg:Ln,cellPaddingBlock:$n,cellPaddingInline:Nn,cellPaddingBlockMD:Kn,cellPaddingInlineMD:br,cellPaddingBlockSM:xr,cellPaddingInlineSM:hr,borderColor:Pr,footerBg:Fr,footerColor:jn,headerBorderRadius:pr,cellFontSize:Vn,cellFontSizeMD:kn,cellFontSizeSM:fr,headerSplitColor:Or,fixedHeaderSortActiveBg:Wr,headerFilterHoverBg:q,filterDropdownBg:l,expandIconBg:d,selectionColumnWidth:f,stickyScrollBarBg:g}=ne,k=new Qa.C(Ge),ae=new Qa.C(et),Re=2,Le=(0,ps.TS)(ne,{tableFontSize:Vn,tableBg:xt,tableRadius:pr,tablePaddingVertical:$n,tablePaddingHorizontal:Nn,tablePaddingVerticalMiddle:Kn,tablePaddingHorizontalMiddle:br,tablePaddingVerticalSmall:xr,tablePaddingHorizontalSmall:hr,tableBorderColor:Pr,tableHeaderTextColor:Ot,tableHeaderBg:yt,tableFooterTextColor:jn,tableFooterBg:Fr,tableHeaderCellSplitColor:Or,tableHeaderSortBg:Se,tableHeaderSortHoverBg:Lt,tableHeaderIconColor:k.clone().setAlpha(k.getAlpha()*at).toRgbString(),tableHeaderIconColorHover:ae.clone().setAlpha(ae.getAlpha()*at).toRgbString(),tableBodySortBg:ln,tableFixedHeaderSortActiveBg:Wr,tableHeaderFilterActiveBg:q,tableFilterDropdownBg:l,tableRowHoverBg:sn,tableSelectedRowBg:nn,tableSelectedRowHoverBg:lt,zIndexTableFixed:Re,zIndexTableSticky:Re+1,tableFontSizeMiddle:kn,tableFontSizeSmall:fr,tableSelectionColumnWidth:f,tableExpandIconBg:d,tableExpandColumnWidth:_t+2*ne.padding,tableExpandedRowBg:Ln,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:g,tableScrollThumbBgHover:ue,tableScrollBg:$e});return[js(Le),ks(Le),Rs(Le),xo(Le),Js(Le),wn(Le),Ja(Le),Wa(Le),Rs(Le),Xs(Le),Ks(Le),Ps(Le),Eo(Le),$s(Le),Hs(Le),yo(Le),Bs(Le)]},ne=>{const{colorFillAlter:ue,colorBgContainer:$e,colorTextHeading:Ge,colorFillSecondary:et,colorFillContent:at,controlItemBgActive:xt,controlItemBgActiveHover:_t,padding:yt,paddingSM:Ot,paddingXS:Se,colorBorderSecondary:Lt,borderRadiusLG:ln,fontSize:sn,controlHeight:nn,colorTextPlaceholder:lt}=ne,Ln=new Qa.C(et).onBackground($e).toHexShortString(),$n=new Qa.C(at).onBackground($e).toHexShortString(),Nn=new Qa.C(ue).onBackground($e).toHexShortString();return{headerBg:Nn,headerColor:Ge,headerSortActiveBg:Ln,headerSortHoverBg:$n,bodySortBg:Nn,rowHoverBg:Nn,rowSelectedBg:xt,rowSelectedHoverBg:_t,rowExpandedBg:ue,cellPaddingBlock:yt,cellPaddingInline:yt,cellPaddingBlockMD:Ot,cellPaddingInlineMD:Se,cellPaddingBlockSM:Se,cellPaddingInlineSM:Se,borderColor:Lt,headerBorderRadius:ln,footerBg:Nn,footerColor:Ge,cellFontSize:sn,cellFontSizeMD:sn,cellFontSizeSM:sn,headerSplitColor:Lt,fixedHeaderSortActiveBg:Ln,headerFilterHoverBg:at,filterDropdownMenuBg:$e,filterDropdownBg:$e,expandIconBg:$e,selectionColumnWidth:nn,stickyScrollBarBg:lt,stickyScrollBarBorderRadius:100}});const to=[],no=(ne,ue)=>{const{prefixCls:$e,className:Ge,rootClassName:et,style:at,size:xt,bordered:_t,dropdownPrefixCls:yt,dataSource:Ot,pagination:Se,rowSelection:Lt,rowKey:ln="key",rowClassName:sn,columns:nn,children:lt,childrenColumnName:Ln,onChange:$n,getPopupContainer:Nn,loading:Kn,expandIcon:br,expandable:xr,expandedRowRender:hr,expandIconColumnIndex:Pr,indentSize:Fr,scroll:jn,sortDirections:pr,locale:Vn,showSorterTooltip:kn=!0,virtual:fr}=ne,Or=S.useMemo(()=>nn||It(lt),[nn,lt]),Wr=S.useMemo(()=>Or.some(fi=>fi.responsive),[Or]),q=(0,jr.Z)(Wr),l=S.useMemo(()=>{const fi=new Set(Object.keys(q).filter(ki=>q[ki]));return Or.filter(ki=>!ki.responsive||ki.responsive.some(ma=>fi.has(ma)))},[Or,q]),d=(0,Lr.Z)(ne,["className","style","columns"]),{locale:f=oi.Z,direction:g,table:k,renderEmpty:ae,getPrefixCls:Re,getPopupContainer:Le}=S.useContext(Ci.E_),qe=(0,Vr.Z)(xt),dt=Object.assign(Object.assign({},f.Table),Vn),Ct=Ot||to,Kt=Re("table",$e),pn=Re("dropdown",yt),jt=Object.assign({childrenColumnName:Ln,expandIconColumnIndex:Pr},xr),{childrenColumnName:Jt="children"}=jt,un=S.useMemo(()=>Ct.some(fi=>fi==null?void 0:fi[Jt])?"nest":hr||xr&&xr.expandedRowRender?"row":null,[Ct]),Cn={body:S.useRef()},ir=S.useMemo(()=>typeof ln=="function"?ln:fi=>fi==null?void 0:fi[ln],[ln]),[Tn]=os(Ct,Jt,ir),er={},Sr=function(fi,ki){let ma=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Fi,Ra,Na;const za=Object.assign(Object.assign({},er),fi);ma&&((Fi=er.resetPagination)===null||Fi===void 0||Fi.call(er),!((Ra=za.pagination)===null||Ra===void 0)&&Ra.current&&(za.pagination.current=1),Se&&Se.onChange&&Se.onChange(1,(Na=za.pagination)===null||Na===void 0?void 0:Na.pageSize)),jn&&jn.scrollToFirstRowOnChange!==!1&&Cn.body.current&&(0,Zr.Z)(0,{getContainer:()=>Cn.body.current}),$n==null||$n(za.pagination,za.filters,za.sorter,{currentDataSource:Ka(wi(Ct,za.sorterStates,Jt),za.filterStates),action:ki})},wr=(fi,ki)=>{Sr({sorter:fi,sorterStates:ki},"sort",!1)},[ri,ii,Zi,ci]=_i({prefixCls:Kt,mergedColumns:l,onSorterChange:wr,sortDirections:pr||["ascend","descend"],tableLocale:dt,showSorterTooltip:kn}),ai=S.useMemo(()=>wi(Ct,ii,Jt),[Ct,ii]);er.sorter=ci(),er.sorterStates=ii;const bi=(fi,ki)=>{Sr({filters:fi,filterStates:ki},"filter",!0)},[Ji,_a,zr]=ss({prefixCls:Kt,locale:dt,dropdownPrefixCls:pn,mergedColumns:l,onFilterChange:bi,getPopupContainer:Nn||Le}),qr=Ka(ai,_a);er.filters=zr,er.filterStates=_a;const Qr=S.useMemo(()=>{const fi={};return Object.keys(zr).forEach(ki=>{zr[ki]!==null&&(fi[ki]=zr[ki])}),Object.assign(Object.assign({},Zi),{filters:fi})},[Zi,zr]),[Di]=Qi(Qr),ea=(fi,ki)=>{Sr({pagination:Object.assign(Object.assign({},er.pagination),{current:fi,pageSize:ki})},"paginate")},[Hr,ra]=ns(qr.length,ea,Se);er.pagination=Se===!1?{}:Xi(Hr,Se),er.resetPagination=ra;const ta=S.useMemo(()=>{if(Se===!1||!Hr.pageSize)return qr;const{current:fi=1,total:ki,pageSize:ma=Aa}=Hr;return qr.length<ki?qr.length>ma?qr.slice((fi-1)*ma,fi*ma):qr:qr.slice((fi-1)*ma,fi*ma)},[!!Se,qr,Hr&&Hr.current,Hr&&Hr.pageSize,Hr&&Hr.total]),[Ea,$a]=Fa({prefixCls:Kt,data:qr,pageData:ta,getRowKey:ir,getRecordByKey:Tn,expandType:un,childrenColumnName:Jt,locale:dt,getPopupContainer:Nn||Le},Lt),Sa=(fi,ki,ma)=>{let Fi;return typeof sn=="function"?Fi=Z()(sn(fi,ki,ma)):Fi=Z()(sn),Z()({[`${Kt}-row-selected`]:$a.has(ir(fi,ki))},Fi)};jt.__PARENT_RENDER_ICON__=jt.expandIcon,jt.expandIcon=jt.expandIcon||br||li(dt),un==="nest"&&jt.expandIconColumnIndex===void 0?jt.expandIconColumnIndex=Lt?1:0:jt.expandIconColumnIndex>0&&Lt&&(jt.expandIconColumnIndex-=1),typeof jt.indentSize!="number"&&(jt.indentSize=typeof Fr=="number"?Fr:15);const xs=S.useCallback(fi=>Di(Ea(Ji(ri(fi)))),[ri,Ji,Ea]);let qa,Ma;if(Se!==!1&&(Hr!=null&&Hr.total)){let fi;Hr.size?fi=Hr.size:fi=qe==="small"||qe==="middle"?"small":void 0;const ki=Ra=>S.createElement(Ai.Z,Object.assign({},Hr,{className:Z()(`${Kt}-pagination ${Kt}-pagination-${Ra}`,Hr.className),size:fi})),ma=g==="rtl"?"left":"right",{position:Fi}=Hr;if(Fi!==null&&Array.isArray(Fi)){const Ra=Fi.find(gs=>gs.includes("top")),Na=Fi.find(gs=>gs.includes("bottom")),za=Fi.every(gs=>`${gs}`=="none");!Ra&&!Na&&!za&&(Ma=ki(ma)),Ra&&(qa=ki(Ra.toLowerCase().replace("top",""))),Na&&(Ma=ki(Na.toLowerCase().replace("bottom","")))}else Ma=ki(ma)}let ha;typeof Kn=="boolean"?ha={spinning:Kn}:typeof Kn=="object"&&(ha=Object.assign({spinning:!0},Kn));const[pa,Vi]=eo(Kt),[,Ei]=(0,ei.Z)(),rs=Z()(`${Kt}-wrapper`,k==null?void 0:k.className,{[`${Kt}-wrapper-rtl`]:g==="rtl"},Ge,et,Vi),Is=Object.assign(Object.assign({},k==null?void 0:k.style),at),es=Vn&&Vn.emptyText||(ae==null?void 0:ae("Table"))||S.createElement(Un.Z,{componentName:"Table"}),Va=fr?fs:qi,io={},ao=S.useMemo(()=>{const{fontSize:fi,lineHeight:ki,padding:ma,paddingXS:Fi,paddingSM:Ra}=Ei,Na=Math.floor(fi*ki);switch(qe){case"large":return ma*2+Na;case"small":return Fi*2+Na;default:return Ra*2+Na}},[Ei,qe]);return fr&&(io.listItemHeight=ao),pa(S.createElement("div",{ref:ue,className:rs,style:Is},S.createElement(Li.Z,Object.assign({spinning:!1},ha),qa,S.createElement(Va,Object.assign({},io,d,{columns:l,direction:g,expandable:jt,prefixCls:Kt,className:Z()({[`${Kt}-middle`]:qe==="middle",[`${Kt}-small`]:qe==="small",[`${Kt}-bordered`]:_t,[`${Kt}-empty`]:Ct.length===0}),data:ta,rowKey:ir,rowClassName:Sa,emptyText:es,internalHooks:N,internalRefs:Cn,transformColumns:xs})),Ma)))};var ro=S.forwardRef(no);const wo=(ne,ue)=>{const $e=S.useRef(0);return $e.current+=1,S.createElement(ro,Object.assign({},ne,{ref:ue,_renderTimes:$e.current}))},ka=S.forwardRef(wo);ka.SELECTION_COLUMN=Ui,ka.EXPAND_COLUMN=z,ka.SELECTION_ALL=Pi,ka.SELECTION_INVERT=oa,ka.SELECTION_NONE=pi,ka.Column=zn,ka.ColumnGroup=qn,ka.Summary=R;var Ws=ka,Gs=Ws},33166:function(Gt,He,h){"use strict";h.d(He,{i:function(){return z}});const z=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},45157:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return N}});var z=h(33166);function N(Q,ye){return z.i.reduce((U,H)=>{const S=Q[`${H}1`],pe=Q[`${H}3`],a=Q[`${H}6`],C=Q[`${H}7`];return Object.assign(Object.assign({},U),ye(H,{lightColor:S,lightBorderColor:pe,darkColor:a,textColor:C}))},{})}},6848:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return xe}});var z=h(59301),N=h(92310),Q=h.n(N),ye=h(55477),U=h(18929),H=h(62892),S=h(79676),pe=h(92343),a=h(36355),C=h(33234),O=h(88088),m=h(17313),u=h(29878),x=h(19447),y=h(45157),L=h(37613),te=h(83116);const B=ce=>{const{componentCls:ee,tooltipMaxWidth:Z,tooltipColor:me,tooltipBg:P,tooltipBorderRadius:se,zIndexPopup:X,controlHeight:v,boxShadowSecondary:E,paddingSM:K,paddingXS:de,tooltipRadiusOuter:Ne}=ce;return[{[ee]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,m.Wf)(ce)),{position:"absolute",zIndex:X,display:"block",width:"max-content",maxWidth:Z,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":P,[`${ee}-inner`]:{minWidth:v,minHeight:v,padding:`${K/2}px ${de}px`,color:me,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:P,borderRadius:se,boxShadow:E,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${ee}-inner`]:{borderRadius:Math.min(se,x.qN)}},[`${ee}-content`]:{position:"relative"}}),(0,y.Z)(ce,(Ue,ke)=>{let{darkColor:Ve}=ke;return{[`&${ee}-${Ue}`]:{[`${ee}-inner`]:{backgroundColor:Ve},[`${ee}-arrow`]:{"--antd-arrow-background-color":Ve}}}})),{"&-rtl":{direction:"rtl"}})},(0,x.ZP)((0,L.TS)(ce,{borderRadiusOuter:Ne}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:se,limitVerticalRadius:!0}),{[`${ee}-pure`]:{position:"relative",maxWidth:"none",margin:ce.sizePopupArrow}}]};var M=(ce,ee)=>(0,te.Z)("Tooltip",me=>{if(ee===!1)return[];const{borderRadius:P,colorTextLightSolid:se,colorBgDefault:X,borderRadiusOuter:v}=me,E=(0,L.TS)(me,{tooltipMaxWidth:250,tooltipColor:se,tooltipBorderRadius:P,tooltipBg:X,tooltipRadiusOuter:v>4?4:v});return[B(E),(0,u._y)(me,"zoom-big-fast")]},me=>{let{zIndexPopupBase:P,colorBgSpotlight:se}=me;return{zIndexPopup:P+70,colorBgDefault:se}},{resetStyle:!1})(ce),W=h(36785);function V(ce,ee){const Z=(0,W.o2)(ee),me=Q()({[`${ce}-${ee}`]:ee&&Z}),P={},se={};return ee&&!Z&&(P.background=ee,se["--antd-arrow-background-color"]=ee),{className:me,overlayStyle:P,arrowStyle:se}}var T=ce=>{const{prefixCls:ee,className:Z,placement:me="top",title:P,color:se,overlayInnerStyle:X}=ce,{getPrefixCls:v}=z.useContext(a.E_),E=v("tooltip",ee),[K,de]=M(E,!0),Ne=V(E,se),Ue=Ne.arrowStyle,ke=Object.assign(Object.assign({},X),Ne.overlayStyle),Ve=Q()(de,E,`${E}-pure`,`${E}-placement-${me}`,Z,Ne.className);return K(z.createElement("div",{className:Ve,style:Ue},z.createElement("div",{className:`${E}-arrow`}),z.createElement(ye.G,Object.assign({},ce,{className:de,prefixCls:E,overlayInnerStyle:ke}),P)))},G=function(ce,ee){var Z={};for(var me in ce)Object.prototype.hasOwnProperty.call(ce,me)&&ee.indexOf(me)<0&&(Z[me]=ce[me]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,me=Object.getOwnPropertySymbols(ce);P<me.length;P++)ee.indexOf(me[P])<0&&Object.prototype.propertyIsEnumerable.call(ce,me[P])&&(Z[me[P]]=ce[me[P]]);return Z};const j=(ce,ee)=>{const Z={},me=Object.assign({},ce);return ee.forEach(P=>{ce&&P in ce&&(Z[P]=ce[P],delete me[P])}),{picked:Z,omitted:me}};function be(ce,ee){const Z=ce.type;if((Z.__ANT_BUTTON===!0||ce.type==="button")&&ce.props.disabled||Z.__ANT_SWITCH===!0&&(ce.props.disabled||ce.props.loading)||Z.__ANT_RADIO===!0&&ce.props.disabled){const{picked:me,omitted:P}=j(ce.props.style,["position","left","right","top","bottom","float","display","zIndex"]),se=Object.assign(Object.assign({display:"inline-block"},me),{cursor:"not-allowed",width:ce.props.block?"100%":void 0}),X=Object.assign(Object.assign({},P),{pointerEvents:"none"}),v=(0,pe.Tm)(ce,{style:X,className:null});return z.createElement("span",{style:se,className:Q()(ce.props.className,`${ee}-disabled-compatible-wrapper`)},v)}return ce}const Ee=z.forwardRef((ce,ee)=>{var Z,me;const{prefixCls:P,openClassName:se,getTooltipContainer:X,overlayClassName:v,color:E,overlayInnerStyle:K,children:de,afterOpenChange:Ne,afterVisibleChange:Ue,destroyTooltipOnHide:ke,arrow:Ve=!0,title:ht,overlay:pt,builtinPlacements:st,arrowPointAtCenter:Ft=!1,autoAdjustOverflow:Yt=!0}=ce,en=!!Ve,[,Ut]=(0,O.Z)(),{getPopupContainer:ut,getPrefixCls:Et,direction:oe}=z.useContext(a.E_),ve=z.useRef(null),ie=()=>{var nt;(nt=ve.current)===null||nt===void 0||nt.forceAlign()};z.useImperativeHandle(ee,()=>({forceAlign:ie,forcePopupAlign:()=>{ie()}}));const[Y,Ae]=(0,U.Z)(!1,{value:(Z=ce.open)!==null&&Z!==void 0?Z:ce.visible,defaultValue:(me=ce.defaultOpen)!==null&&me!==void 0?me:ce.defaultVisible}),$=!ht&&!pt&&ht!==0,R=nt=>{var tt,_e;Ae($?!1:nt),$||((tt=ce.onOpenChange)===null||tt===void 0||tt.call(ce,nt),(_e=ce.onVisibleChange)===null||_e===void 0||_e.call(ce,nt))},I=z.useMemo(()=>{var nt,tt;let _e=Ft;return typeof Ve=="object"&&(_e=(tt=(nt=Ve.pointAtCenter)!==null&&nt!==void 0?nt:Ve.arrowPointAtCenter)!==null&&tt!==void 0?tt:Ft),st||(0,S.Z)({arrowPointAtCenter:_e,autoAdjustOverflow:Yt,arrowWidth:en?Ut.sizePopupArrow:0,borderRadius:Ut.borderRadius,offset:Ut.marginXXS,visibleFirst:!0})},[Ft,Ve,st,Ut]),le=z.useMemo(()=>ht===0?ht:pt||ht||"",[pt,ht]),re=z.createElement(C.BR,null,typeof le=="function"?le():le),{getPopupContainer:J,placement:Ce="top",mouseEnterDelay:We=.1,mouseLeaveDelay:Pe=.1,overlayStyle:Be,rootClassName:Xe}=ce,rt=G(ce,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Ye=Et("tooltip",P),vt=Et(),wt=ce["data-popover-inject"];let mt=Y;!("open"in ce)&&!("visible"in ce)&&$&&(mt=!1);const Pt=be((0,pe.l$)(de)&&!(0,pe.M2)(de)?de:z.createElement("span",null,de),Ye),At=Pt.props,w=!At.className||typeof At.className=="string"?Q()(At.className,se||`${Ye}-open`):At.className,[A,gt]=M(Ye,!wt),fe=V(Ye,E),Me=fe.arrowStyle,Dn=Object.assign(Object.assign({},K),fe.overlayStyle),je=Q()(v,{[`${Ye}-rtl`]:oe==="rtl"},fe.className,Xe,gt);return A(z.createElement(ye.Z,Object.assign({},rt,{showArrow:en,placement:Ce,mouseEnterDelay:We,mouseLeaveDelay:Pe,prefixCls:Ye,overlayClassName:je,overlayStyle:Object.assign(Object.assign({},Me),Be),getTooltipContainer:J||X||ut,ref:ve,builtinPlacements:I,overlay:re,visible:mt,onVisibleChange:R,afterVisibleChange:Ne!=null?Ne:Ue,overlayInnerStyle:Dn,arrowContent:z.createElement("span",{className:`${Ye}-arrow-content`}),motion:{motionName:(0,H.m)(vt,"zoom-big-fast",ce.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!ke}),mt?(0,pe.Tm)(Pt,{className:w}):Pt))});Ee._InternalPanelDoNotUseOrYouWillBeFired=T;var xe=Ee},17574:function(Gt,He,h){"use strict";h.d(He,{default:function(){return E}});var z=h(43858),N=h(19127),Q=h(52671),ye=h(8657),U=h(96663),H=h(59301),S={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"},pe=S,a=h(7657),C=function(de,Ne){return H.createElement(a.Z,(0,U.Z)({},de,{ref:Ne,icon:pe}))},O=H.forwardRef(C),m=O,u=h(92310),x=h.n(u),y=h(35654),L=h(71430),te=h(36355),B=h(56082),M=h(62892),W=h(20648);const V=4;function b(K){const{dropPosition:de,dropLevelOffset:Ne,prefixCls:Ue,indent:ke,direction:Ve="ltr"}=K,ht=Ve==="ltr"?"left":"right",pt=Ve==="ltr"?"right":"left",st={[ht]:-Ne*ke+V,[pt]:0};switch(de){case-1:st.top=-3;break;case 1:st.bottom=-3;break;default:st.bottom=-3,st[ht]=ke+V;break}return H.createElement("div",{style:st,className:`${Ue}-drop-indicator`})}var T=h(71997),j=H.forwardRef((K,de)=>{const{getPrefixCls:Ne,direction:Ue,virtual:ke,tree:Ve}=H.useContext(te.E_),{prefixCls:ht,className:pt,showIcon:st=!1,showLine:Ft,switcherIcon:Yt,blockNode:en=!1,children:Ut,checkable:ut=!1,selectable:Et=!0,draggable:oe,motion:ve,style:ie}=K,Y=Ne("tree",ht),Ae=Ne(),$=ve!=null?ve:Object.assign(Object.assign({},(0,M.Z)(Ae)),{motionAppear:!1}),R=Object.assign(Object.assign({},K),{checkable:ut,selectable:Et,showIcon:st,motion:$,blockNode:en,showLine:!!Ft,dropIndicatorRender:b}),[I,le]=(0,W.ZP)(Y),re=H.useMemo(()=>{if(!oe)return!1;let Ce={};switch(typeof oe){case"function":Ce.nodeDraggable=oe;break;case"object":Ce=Object.assign({},oe);break;default:break}return Ce.icon!==!1&&(Ce.icon=Ce.icon||H.createElement(B.Z,null)),Ce},[oe]),J=Ce=>H.createElement(T.Z,{prefixCls:Y,switcherIcon:Yt,treeNodeProps:Ce,showLine:Ft});return I(H.createElement(z.Z,Object.assign({itemHeight:20,ref:de,virtual:ke},R,{style:Object.assign(Object.assign({},Ve==null?void 0:Ve.style),ie),prefixCls:Y,className:x()({[`${Y}-icon-hide`]:!st,[`${Y}-block-node`]:en,[`${Y}-unselectable`]:!Et,[`${Y}-rtl`]:Ue==="rtl"},Ve==null?void 0:Ve.className,pt,le),direction:Ue,checkable:ut&&H.createElement("span",{className:`${Y}-checkbox-inner`}),selectable:Et,switcherIcon:J,draggable:re}),Ut))}),be;(function(K){K[K.None=0]="None",K[K.Start=1]="Start",K[K.End=2]="End"})(be||(be={}));function Ee(K,de){function Ne(Ue){const{key:ke,children:Ve}=Ue;de(ke,Ue)!==!1&&Ee(Ve||[],de)}K.forEach(Ne)}function xe(K){let{treeData:de,expandedKeys:Ne,startKey:Ue,endKey:ke}=K;const Ve=[];let ht=be.None;if(Ue&&Ue===ke)return[Ue];if(!Ue||!ke)return[];function pt(st){return st===Ue||st===ke}return Ee(de,st=>{if(ht===be.End)return!1;if(pt(st)){if(Ve.push(st),ht===be.None)ht=be.Start;else if(ht===be.Start)return ht=be.End,!1}else ht===be.Start&&Ve.push(st);return Ne.includes(st)}),Ve}function ce(K,de){const Ne=(0,N.Z)(de),Ue=[];return Ee(K,(ke,Ve)=>{const ht=Ne.indexOf(ke);return ht!==-1&&(Ue.push(Ve),Ne.splice(ht,1)),!!Ne.length}),Ue}var ee=function(K,de){var Ne={};for(var Ue in K)Object.prototype.hasOwnProperty.call(K,Ue)&&de.indexOf(Ue)<0&&(Ne[Ue]=K[Ue]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Ue=Object.getOwnPropertySymbols(K);ke<Ue.length;ke++)de.indexOf(Ue[ke])<0&&Object.prototype.propertyIsEnumerable.call(K,Ue[ke])&&(Ne[Ue[ke]]=K[Ue[ke]]);return Ne};function Z(K){const{isLeaf:de,expanded:Ne}=K;return de?H.createElement(Q.Z,null):Ne?H.createElement(ye.Z,null):H.createElement(m,null)}function me(K){let{treeData:de,children:Ne}=K;return de||(0,L.zn)(Ne)}const P=(K,de)=>{var{defaultExpandAll:Ne,defaultExpandParent:Ue,defaultExpandedKeys:ke}=K,Ve=ee(K,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const ht=H.useRef(),pt=H.useRef(),st=()=>{const{keyEntities:re}=(0,L.I8)(me(Ve));let J;return Ne?J=Object.keys(re):Ue?J=(0,y.r7)(Ve.expandedKeys||ke||[],re):J=Ve.expandedKeys||ke,J},[Ft,Yt]=H.useState(Ve.selectedKeys||Ve.defaultSelectedKeys||[]),[en,Ut]=H.useState(()=>st());H.useEffect(()=>{"selectedKeys"in Ve&&Yt(Ve.selectedKeys)},[Ve.selectedKeys]),H.useEffect(()=>{"expandedKeys"in Ve&&Ut(Ve.expandedKeys)},[Ve.expandedKeys]);const ut=(re,J)=>{var Ce;return"expandedKeys"in Ve||Ut(re),(Ce=Ve.onExpand)===null||Ce===void 0?void 0:Ce.call(Ve,re,J)},Et=(re,J)=>{var Ce;const{multiple:We}=Ve,{node:Pe,nativeEvent:Be}=J,{key:Xe=""}=Pe,rt=me(Ve),Ye=Object.assign(Object.assign({},J),{selected:!0}),vt=(Be==null?void 0:Be.ctrlKey)||(Be==null?void 0:Be.metaKey),wt=Be==null?void 0:Be.shiftKey;let mt;We&&vt?(mt=re,ht.current=Xe,pt.current=mt,Ye.selectedNodes=ce(rt,mt)):We&&wt?(mt=Array.from(new Set([].concat((0,N.Z)(pt.current||[]),(0,N.Z)(xe({treeData:rt,expandedKeys:en,startKey:Xe,endKey:ht.current}))))),Ye.selectedNodes=ce(rt,mt)):(mt=[Xe],ht.current=Xe,pt.current=mt,Ye.selectedNodes=ce(rt,mt)),(Ce=Ve.onSelect)===null||Ce===void 0||Ce.call(Ve,mt,Ye),"selectedKeys"in Ve||Yt(mt)},{getPrefixCls:oe,direction:ve}=H.useContext(te.E_),{prefixCls:ie,className:Y,showIcon:Ae=!0,expandAction:$="click"}=Ve,R=ee(Ve,["prefixCls","className","showIcon","expandAction"]),I=oe("tree",ie),le=x()(`${I}-directory`,{[`${I}-directory-rtl`]:ve==="rtl"},Y);return H.createElement(j,Object.assign({icon:Z,ref:de,blockNode:!0},R,{showIcon:Ae,expandAction:$,prefixCls:I,className:le,expandedKeys:en,selectedKeys:Ft,onSelect:Et,onExpand:ut}))};var X=H.forwardRef(P);const v=j;v.DirectoryTree=X,v.TreeNode=z.O;var E=v},20648:function(Gt,He,h){"use strict";h.d(He,{TM:function(){return u},Yk:function(){return m}});var z=h(93083),N=h(98447),Q=h(17313),ye=h(8378),U=h(37613),H=h(83116);const S=new z.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),pe=(x,y)=>({[`.${x}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${y.motionDurationSlow}`}}}),a=(x,y)=>({[`.${x}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:y.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${y.lineWidthBold}px solid ${y.colorPrimary}`,borderRadius:"50%",content:'""'}}}),C=(x,y)=>{const{treeCls:L,treeNodeCls:te,treeNodePadding:B,titleHeight:M,nodeSelectedBg:W,nodeHoverBg:V}=y,b=y.paddingXS;return{[L]:Object.assign(Object.assign({},(0,Q.Wf)(y)),{background:y.colorBgContainer,borderRadius:y.borderRadius,transition:`background-color ${y.motionDurationSlow}`,[`&${L}-rtl`]:{[`${L}-switcher`]:{"&_close":{[`${L}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${L}-active-focused)`]:Object.assign({},(0,Q.oN)(y)),[`${L}-list-holder-inner`]:{alignItems:"flex-start"},[`&${L}-block-node`]:{[`${L}-list-holder-inner`]:{alignItems:"stretch",[`${L}-node-content-wrapper`]:{flex:"auto"},[`${te}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:B,insetInlineStart:0,border:`1px solid ${y.colorPrimary}`,opacity:0,animationName:S,animationDuration:y.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${te}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${B}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${L}-node-content-wrapper`]:{color:y.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${L}-node-content-wrapper`]:Object.assign({},(0,Q.oN)(y)),[`&:not(${te}-disabled).filter-node ${L}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${L}-draggable-icon`]:{flexShrink:0,width:M,lineHeight:`${M}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${y.motionDurationSlow}`,[`${te}:hover &`]:{opacity:.45}},[`&${te}-disabled`]:{[`${L}-draggable-icon`]:{visibility:"hidden"}}}},[`${L}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:M}},[`${L}-draggable-icon`]:{visibility:"hidden"},[`${L}-switcher`]:Object.assign(Object.assign({},pe(x,y)),{position:"relative",flex:"none",alignSelf:"stretch",width:M,margin:0,lineHeight:`${M}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${L}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:y.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:M/2,bottom:-B,marginInlineStart:-1,borderInlineEnd:`1px solid ${y.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:M/2*.8,height:M/2,borderBottom:`1px solid ${y.colorBorder}`,content:'""'}}}),[`${L}-checkbox`]:{top:"initial",marginInlineEnd:b},[`${L}-node-content-wrapper, ${L}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:M,margin:0,padding:`0 ${y.paddingXS/2}px`,color:"inherit",lineHeight:`${M}px`,background:"transparent",borderRadius:y.borderRadius,cursor:"pointer",transition:`all ${y.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:V},[`&${L}-node-selected`]:{backgroundColor:W},[`${L}-iconEle`]:{display:"inline-block",width:M,height:M,lineHeight:`${M}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${L}-unselectable ${L}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${L}-node-content-wrapper`]:Object.assign({lineHeight:`${M}px`,userSelect:"none"},a(x,y)),[`${te}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${y.colorPrimary}`}},"&-show-line":{[`${L}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:M/2,bottom:-B,borderInlineEnd:`1px solid ${y.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${L}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${te}-leaf-last`]:{[`${L}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${M/2}px !important`}}}}})}},O=x=>{const{treeCls:y,treeNodeCls:L,treeNodePadding:te,directoryNodeSelectedBg:B,directoryNodeSelectedColor:M}=x;return{[`${y}${y}-directory`]:{[L]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:te,insetInlineStart:0,transition:`background-color ${x.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:x.controlItemBgHover}},"> *":{zIndex:1},[`${y}-switcher`]:{transition:`color ${x.motionDurationMid}`},[`${y}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${y}-node-selected`]:{color:M,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:B},[`${y}-switcher`]:{color:M},[`${y}-node-content-wrapper`]:{color:M,background:"transparent"}}}}}},m=(x,y)=>{const L=`.${x}`,te=`${L}-treenode`,B=y.paddingXS/2,M=(0,U.TS)(y,{treeCls:L,treeNodeCls:te,treeNodePadding:B});return[C(x,M),O(M)]},u=x=>{const{controlHeightSM:y}=x;return{titleHeight:y,nodeHoverBg:x.controlItemBgHover,nodeSelectedBg:x.controlItemBgActive}};He.ZP=(0,H.Z)("Tree",(x,y)=>{let{prefixCls:L}=y;return[{[x.componentCls]:(0,N.C2)(`${L}-checkbox`,x)},m(L,x),(0,ye.Z)(x)]},x=>{const{colorTextLightSolid:y,colorPrimary:L}=x;return Object.assign(Object.assign({},u(x)),{directoryNodeSelectedColor:y,directoryNodeSelectedBg:L})})},71997:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return te}});var z=h(96663),N=h(59301),Q={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},ye=Q,U=h(7657),H=function(M,W){return N.createElement(U.Z,(0,z.Z)({},M,{ref:W,icon:ye}))},S=N.forwardRef(H),pe=S,a=h(52671),C=h(58617),O=h(15075),m=h(43531),u=h(92310),x=h.n(u),y=h(92343),te=B=>{const{prefixCls:M,switcherIcon:W,treeNodeProps:V,showLine:b}=B,{isLeaf:T,expanded:G,loading:j}=V;if(j)return N.createElement(C.Z,{className:`${M}-switcher-loading-icon`});let be;if(b&&typeof b=="object"&&(be=b.showLeafIcon),T){if(!b)return null;if(typeof be!="boolean"&&be){const ce=typeof be=="function"?be(V):be,ee=`${M}-switcher-line-custom-icon`;return(0,y.l$)(ce)?(0,y.Tm)(ce,{className:x()(ce.props.className||"",ee)}):ce}return be?N.createElement(a.Z,{className:`${M}-switcher-line-icon`}):N.createElement("span",{className:`${M}-switcher-leaf-line`})}const Ee=`${M}-switcher-icon`,xe=typeof W=="function"?W(V):W;return(0,y.l$)(xe)?(0,y.Tm)(xe,{className:x()(xe.props.className||"",Ee)}):xe!==void 0?xe:b?G?N.createElement(O.Z,{className:`${M}-switcher-line-icon`}):N.createElement(m.Z,{className:`${M}-switcher-line-icon`}):N.createElement(pe,{className:Ee})}},64018:function(){var Gt,He,h,z=!1,N,Q;window.PR_SHOULD_USE_CONTINUATION=!0;var ye,U;(function(){var H=window,S=["break,continue,do,else,for,if,return,while"],pe=[S,"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=[pe,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],C=[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"],O=[a,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],m=[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",x=[a,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],y="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",L=[S,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],te=[S,"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"],B=[S,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],M=[C,m,O,x,y,L,te,B],W=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,V="str",b="kwd",T="com",G="typ",j="lit",be="pun",Ee="pln",xe="tag",ce="dec",ee="src",Z="atn",me="atv",P="nocode",se="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function X(oe){for(var ve=0,ie=!1,Y=!1,Ae=0,$=oe.length;Ae<$;++Ae){var R=oe[Ae];if(R.ignoreCase)Y=!0;else if(/[a-z]/i.test(R.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){ie=!0,Y=!1;break}}var I={b:8,t:9,n:10,v:11,f:12,r:13};function le(Pe){var Be=Pe.charCodeAt(0);if(Be!==92)return Be;var Xe=Pe.charAt(1);return Be=I[Xe],Be||("0"<=Xe&&Xe<="7"?parseInt(Pe.substring(1),8):Xe==="u"||Xe==="x"?parseInt(Pe.substring(2),16):Pe.charCodeAt(1))}function re(Pe){if(Pe<32)return(Pe<16?"\\x0":"\\x")+Pe.toString(16);var Be=String.fromCharCode(Pe);return Be==="\\"||Be==="-"||Be==="]"||Be==="^"?"\\"+Be:Be}function J(Pe){var Be=Pe.substring(1,Pe.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=Be[0]==="^",Ye=["["];rt&&Ye.push("^");for(var vt=rt?1:0,wt=Be.length;vt<wt;++vt){var mt=Be[vt];if(/\\[bdsw]/i.test(mt))Ye.push(mt);else{var Pt=le(mt),At;vt+2<wt&&Be[vt+1]==="-"?(At=le(Be[vt+2]),vt+=2):At=Pt,Xe.push([Pt,At]),At<65||Pt>122||(At<65||Pt>90||Xe.push([Math.max(65,Pt)|32,Math.min(At,90)|32]),At<97||Pt>122||Xe.push([Math.max(97,Pt)&-33,Math.min(At,122)&-33]))}}Xe.sort(function(fe,Me){return fe[0]-Me[0]||Me[1]-fe[1]});for(var w=[],A=[],vt=0;vt<Xe.length;++vt){var gt=Xe[vt];gt[0]<=A[1]+1?A[1]=Math.max(A[1],gt[1]):w.push(A=gt)}for(var vt=0;vt<w.length;++vt){var gt=w[vt];Ye.push(re(gt[0])),gt[1]>gt[0]&&(gt[1]+1>gt[0]&&Ye.push("-"),Ye.push(re(gt[1])))}return Ye.push("]"),Ye.join("")}function Ce(Pe){for(var Be=Pe.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=Be.length,rt=[],Ye=0,vt=0;Ye<Xe;++Ye){var wt=Be[Ye];if(wt==="(")++vt;else if(wt.charAt(0)==="\\"){var mt=+wt.substring(1);mt&&(mt<=vt?rt[mt]=-1:Be[Ye]=re(mt))}}for(var Ye=1;Ye<rt.length;++Ye)rt[Ye]===-1&&(rt[Ye]=++ve);for(var Ye=0,vt=0;Ye<Xe;++Ye){var wt=Be[Ye];if(wt==="(")++vt,rt[vt]||(Be[Ye]="(?:");else if(wt.charAt(0)==="\\"){var mt=+wt.substring(1);mt&&mt<=vt&&(Be[Ye]="\\"+rt[mt])}}for(var Ye=0;Ye<Xe;++Ye)Be[Ye]==="^"&&Be[Ye+1]!=="^"&&(Be[Ye]="");if(Pe.ignoreCase&&ie)for(var Ye=0;Ye<Xe;++Ye){var wt=Be[Ye],Pt=wt.charAt(0);wt.length>=2&&Pt==="["?Be[Ye]=J(wt):Pt!=="\\"&&(Be[Ye]=wt.replace(/[a-zA-Z]/g,function(A){var gt=A.charCodeAt(0);return"["+String.fromCharCode(gt&-33,gt|32)+"]"}))}return Be.join("")}for(var We=[],Ae=0,$=oe.length;Ae<$;++Ae){var R=oe[Ae];if(R.global||R.multiline)throw new Error(""+R);We.push("(?:"+Ce(R)+")")}return new RegExp(We.join("|"),Y?"gi":"g")}function v(oe,ve){var ie=/(?:^|\s)nocode(?:\s|$)/,Y=[],Ae=0,$=[],R=0;function I(le){var re=le.nodeType;if(re==1){if(ie.test(le.className))return;for(var J=le.firstChild;J;J=J.nextSibling)I(J);var Ce=le.nodeName.toLowerCase();(Ce==="br"||Ce==="li")&&(Y[R]=`
`,$[R<<1]=Ae++,$[R++<<1|1]=le)}else if(re==3||re==4){var We=le.nodeValue;We.length&&(ve?We=We.replace(/\r\n?/g,`
`):We=We.replace(/[ \t\r\n]+/g," "),Y[R]=We,$[R<<1]=Ae,Ae+=We.length,$[R++<<1|1]=le)}}return I(oe),{sourceCode:Y.join("").replace(/\n$/,""),spans:$}}function E(oe,ve,ie,Y,Ae){if(ie){var $={sourceNode:oe,pre:1,langExtension:null,numberLines:null,sourceCode:ie,spans:null,basePos:ve,decorations:null};Y($),Ae.push.apply(Ae,$.decorations)}}var K=/\S/;function de(oe){for(var ve=void 0,ie=oe.firstChild;ie;ie=ie.nextSibling){var Y=ie.nodeType;ve=Y===1?ve?oe:ie:Y===3&&K.test(ie.nodeValue)?oe:ve}return ve===oe?void 0:ve}function Ne(oe,ve){var ie={},Y;(function(){for(var R=oe.concat(ve),I=[],le={},re=0,J=R.length;re<J;++re){var Ce=R[re],We=Ce[3];if(We)for(var Pe=We.length;--Pe>=0;)ie[We.charAt(Pe)]=Ce;var Be=Ce[1],Xe=""+Be;le.hasOwnProperty(Xe)||(I.push(Be),le[Xe]=null)}I.push(/[\0-\uffff]/),Y=X(I)})();var Ae=ve.length,$=function(R){for(var I=R.sourceCode,le=R.basePos,re=R.sourceNode,J=[le,Ee],Ce=0,We=I.match(Y)||[],Pe={},Be=0,Xe=We.length;Be<Xe;++Be){var rt=We[Be],Ye=Pe[rt],vt=void 0,wt;if(typeof Ye=="string")wt=!1;else{var mt=ie[rt.charAt(0)];if(mt)vt=rt.match(mt[1]),Ye=mt[0];else{for(var Pt=0;Pt<Ae;++Pt)if(mt=ve[Pt],vt=rt.match(mt[1]),vt){Ye=mt[0];break}vt||(Ye=Ee)}wt=Ye.length>=5&&Ye.substring(0,5)==="lang-",wt&&!(vt&&typeof vt[1]=="string")&&(wt=!1,Ye=ee),wt||(Pe[rt]=Ye)}var At=Ce;if(Ce+=rt.length,!wt)J.push(le+At,Ye);else{var w=vt[1],A=rt.indexOf(w),gt=A+w.length;vt[2]&&(gt=rt.length-vt[2].length,A=gt-w.length);var fe=Ye.substring(5);E(re,le+At,rt.substring(0,A),$,J),E(re,le+At+A,w,Ft(fe,w),J),E(re,le+At+gt,rt.substring(gt),$,J)}}R.decorations=J};return $}function Ue(oe){var ve=[],ie=[];oe.tripleQuotedStrings?ve.push([V,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):oe.multiLineStrings?ve.push([V,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):ve.push([V,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),oe.verbatimStrings&&ie.push([V,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Y=oe.hashComments;Y&&(oe.cStyleComments?(Y>1?ve.push([T,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):ve.push([T,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),ie.push([V,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):ve.push([T,/^#[^\r\n]*/,null,"#"])),oe.cStyleComments&&(ie.push([T,/^\/\/[^\r\n]*/,null]),ie.push([T,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Ae=oe.regexLiterals;if(Ae){var $=Ae>1?"":`
\r`,R=$?".":"[\\S\\s]",I="/(?=[^/*"+$+"])(?:[^/\\x5B\\x5C"+$+"]|\\x5C"+R+"|\\x5B(?:[^\\x5C\\x5D"+$+"]|\\x5C"+R+")*(?:\\x5D|$))+/";ie.push(["lang-regex",RegExp("^"+se+"("+I+")")])}var le=oe.types;le&&ie.push([G,le]);var re=(""+oe.keywords).replace(/^ | $/g,"");re.length&&ie.push([b,new RegExp("^(?:"+re.replace(/[\s,]+/g,"|")+")\\b"),null]),ve.push([Ee,/^\s+/,null,` \r
\xA0`]);var J="^.[^\\s\\w.$@'\"`/\\\\]*";return oe.regexLiterals&&(J+="(?!s*/)"),ie.push([j,/^@[a-z_$][a-z_$@0-9]*/i,null],[G,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[Ee,/^[a-z_$][a-z_$@0-9]*/i,null],[j,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[Ee,/^\\[\s\S]?/,null],[be,new RegExp(J),null]),Ne(ve,ie)}var ke=Ue({keywords:M,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Ve(oe,ve,ie){for(var Y=/(?:^|\s)nocode(?:\s|$)/,Ae=/\r\n?|\n/,$=oe.ownerDocument,R=$.createElement("li");oe.firstChild;)R.appendChild(oe.firstChild);var I=[R];function le(Be){var Xe=Be.nodeType;if(Xe==1&&!Y.test(Be.className))if(Be.nodeName==="br")re(Be),Be.parentNode&&Be.parentNode.removeChild(Be);else for(var rt=Be.firstChild;rt;rt=rt.nextSibling)le(rt);else if((Xe==3||Xe==4)&&ie){var Ye=Be.nodeValue,vt=Ye.match(Ae);if(vt){var wt=Ye.substring(0,vt.index);Be.nodeValue=wt;var mt=Ye.substring(vt.index+vt[0].length);if(mt){var Pt=Be.parentNode;Pt.insertBefore($.createTextNode(mt),Be.nextSibling)}re(Be),wt||Be.parentNode.removeChild(Be)}}}function re(Be){for(;!Be.nextSibling;)if(Be=Be.parentNode,!Be)return;function Xe(vt,wt){var mt=wt?vt.cloneNode(!1):vt,Pt=vt.parentNode;if(Pt){var At=Xe(Pt,1),w=vt.nextSibling;At.appendChild(mt);for(var A=w;A;A=w)w=A.nextSibling,At.appendChild(A)}return mt}for(var rt=Xe(Be.nextSibling,0),Ye;(Ye=rt.parentNode)&&Ye.nodeType===1;)rt=Ye;I.push(rt)}for(var J=0;J<I.length;++J)le(I[J]);ve===(ve|0)&&I[0].setAttribute("value",ve);var Ce=$.createElement("ol");Ce.className="linenums";for(var We=Math.max(0,ve-1|0)||0,J=0,Pe=I.length;J<Pe;++J)R=I[J],R.className="L"+(J+We)%10,R.firstChild||R.appendChild($.createTextNode("\xA0")),Ce.appendChild(R);oe.appendChild(Ce)}function ht(oe){var ve=/\bMSIE\s(\d+)/.exec(navigator.userAgent);ve=ve&&+ve[1]<=8;var ie=/\n/g,Y=oe.sourceCode,Ae=Y.length,$=0,R=oe.spans,I=R.length,le=0,re=oe.decorations,J=re.length,Ce=0;re[J]=Ae;var We,Pe;for(Pe=We=0;Pe<J;)re[Pe]!==re[Pe+2]?(re[We++]=re[Pe++],re[We++]=re[Pe++]):Pe+=2;for(J=We,Pe=We=0;Pe<J;){for(var Be=re[Pe],Xe=re[Pe+1],rt=Pe+2;rt+2<=J&&re[rt+1]===Xe;)rt+=2;re[We++]=Be,re[We++]=Xe,Pe=rt}J=re.length=We;var Ye=oe.sourceNode,vt="";Ye&&(vt=Ye.style.display,Ye.style.display="none");try{for(var wt=null;le<I;){var mt=R[le],Pt=R[le+2]||Ae,At=re[Ce+2]||Ae,rt=Math.min(Pt,At),w=R[le+1],A;if(w.nodeType!==1&&(A=Y.substring($,rt))){ve&&(A=A.replace(ie,"\r")),w.nodeValue=A;var gt=w.ownerDocument,fe=gt.createElement("span");fe.className=re[Ce+1];var Me=w.parentNode;Me.replaceChild(fe,w),fe.appendChild(w),$<Pt&&(R[le+1]=w=gt.createTextNode(Y.substring(rt,Pt)),Me.insertBefore(w,fe.nextSibling))}$=rt,$>=Pt&&(le+=2),$>=At&&(Ce+=2)}}finally{Ye&&(Ye.style.display=vt)}}var pt={};function st(oe,ve){for(var ie=ve.length;--ie>=0;){var Y=ve[ie];pt.hasOwnProperty(Y)?H.console&&console.warn("cannot override language handler %s",Y):pt[Y]=oe}}function Ft(oe,ve){return oe&&pt.hasOwnProperty(oe)||(oe=/^\s*</.test(ve)?"default-markup":"default-code"),pt[oe]}st(ke,["default-code"]),st(Ne([],[[Ee,/^[^<?]+/],[ce,/^<!\w[^>]*(?:>|$)/],[T,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[be,/^(?:<[%?]|[%?]>)/],["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"]),st(Ne([[Ee,/^[\s]+/,null,` \r
`],[me,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[xe,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[Z,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[be,/^[=<>\/]+/],["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"]),st(Ne([],[[me,/^[\s\S]+/]]),["uq.val"]),st(Ue({keywords:C,hashComments:!0,cStyleComments:!0,types:W}),["c","cc","cpp","cxx","cyc","m"]),st(Ue({keywords:"null,true,false"}),["json"]),st(Ue({keywords:m,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:W}),["cs"]),st(Ue({keywords:O,cStyleComments:!0}),["java"]),st(Ue({keywords:B,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),st(Ue({keywords:L,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),st(Ue({keywords:y,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),st(Ue({keywords:te,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),st(Ue({keywords:x,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),st(Ue({keywords:u,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),st(Ne([],[[V,/^[\s\S]+/]]),["regex"]);function Yt(oe){var ve=oe.langExtension;try{var ie=v(oe.sourceNode,oe.pre),Y=ie.sourceCode;oe.sourceCode=Y,oe.spans=ie.spans,oe.basePos=0,Ft(ve,Y)(oe),ht(oe)}catch(Ae){H.console&&console.log(Ae&&Ae.stack||Ae)}}function en(oe,ve,ie){var Y=ie||!1,Ae=ve||null,$=document.createElement("div");$.innerHTML="<pre>"+oe+"</pre>",$=$.firstChild,Y&&Ve($,Y,!0);var R={langExtension:Ae,numberLines:Y,sourceNode:$,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Yt(R),$.innerHTML}function Ut(oe,ve){var ie=ve||document.body,Y=ie.ownerDocument||document;function Ae(mt){return ie.getElementsByTagName(mt)}for(var $=[Ae("pre"),Ae("code"),Ae("xmp")],R=[],I=0;I<$.length;++I)for(var le=0,re=$[I].length;le<re;++le)R.push($[I][le]);$=null;var J=Date;J.now||(J={now:function(){return+new Date}});var Ce=0,We=/\blang(?:uage)?-([\w.]+)(?!\S)/,Pe=/\bprettyprint\b/,Be=/\bprettyprinted\b/,Xe=/pre|xmp/i,rt=/^code$/i,Ye=/^(?:pre|code|xmp)$/i,vt={};function wt(){for(var mt=H.PR_SHOULD_USE_CONTINUATION?J.now()+250:1/0;Ce<R.length&&J.now()<mt;Ce++){for(var Pt=R[Ce],At=vt,w=Pt;w=w.previousSibling;){var A=w.nodeType,gt=(A===7||A===8)&&w.nodeValue;if(gt?!/^\??prettify\b/.test(gt):A!==3||/\S/.test(w.nodeValue))break;if(gt){At={},gt.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Ze,gn,In){At[gn]=In});break}}var fe=Pt.className;if((At!==vt||Pe.test(fe))&&!Be.test(fe)){for(var Me=!1,Dn=Pt.parentNode;Dn;Dn=Dn.parentNode){var je=Dn.tagName;if(Ye.test(je)&&Dn.className&&Pe.test(Dn.className)){Me=!0;break}}if(!Me){Pt.className+=" prettyprinted";var nt=At.lang;if(!nt){nt=fe.match(We);var tt;!nt&&(tt=de(Pt))&&rt.test(tt.tagName)&&(nt=tt.className.match(We)),nt&&(nt=nt[1])}var _e;if(Xe.test(Pt.tagName))_e=1;else{var De=Pt.currentStyle,Fe=Y.defaultView,Qe=De?De.whiteSpace:Fe&&Fe.getComputedStyle?Fe.getComputedStyle(Pt,null).getPropertyValue("white-space"):0;_e=Qe&&Qe.substring(0,3)==="pre"}var ge=At.linenums;(ge=ge==="true"||+ge)||(ge=fe.match(/\blinenums\b(?::(\d+))?/),ge=ge?ge[1]&&ge[1].length?+ge[1]:!0:!1),ge&&Ve(Pt,ge,_e);var Vt={langExtension:nt,sourceNode:Pt,numberLines:ge,pre:_e,sourceCode:null,basePos:null,spans:null,decorations:null};Yt(Vt)}}}Ce<R.length?H.setTimeout(wt,250):typeof oe=="function"&&oe()}wt()}var ut=H.PR={createSimpleLexer:Ne,registerLangHandler:st,sourceDecorator:Ue,PR_ATTRIB_NAME:Z,PR_ATTRIB_VALUE:me,PR_COMMENT:T,PR_DECLARATION:ce,PR_KEYWORD:b,PR_LITERAL:j,PR_NOCODE:P,PR_PLAIN:Ee,PR_PUNCTUATION:be,PR_SOURCE:ee,PR_STRING:V,PR_TAG:xe,PR_TYPE:G,prettyPrintOne:z?H.prettyPrintOne=en:ye=en,prettyPrint:U=z?H.prettyPrint=Ut:U=Ut},Et=H.define;typeof Et=="function"&&Et.amd&&Et("google-code-prettify",[],function(){return ut})})()},25769:function(Gt,He,h){"use strict";var z=h(98040),N={"text/plain":"Text","text/html":"Url",default:"Text"},Q="Copy to clipboard: #{key}, Enter";function ye(H){var S=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return H.replace(/#{\s*key\s*}/g,S)}function U(H,S){var pe,a,C,O,m,u,x=!1;S||(S={}),pe=S.debug||!1;try{C=z(),O=document.createRange(),m=document.getSelection(),u=document.createElement("span"),u.textContent=H,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(L){if(L.stopPropagation(),S.format)if(L.preventDefault(),typeof L.clipboardData=="undefined"){pe&&console.warn("unable to use e.clipboardData"),pe&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var te=N[S.format]||N.default;window.clipboardData.setData(te,H)}else L.clipboardData.clearData(),L.clipboardData.setData(S.format,H);S.onCopy&&(L.preventDefault(),S.onCopy(L.clipboardData))}),document.body.appendChild(u),O.selectNodeContents(u),m.addRange(O);var y=document.execCommand("copy");if(!y)throw new Error("copy command was unsuccessful");x=!0}catch(L){pe&&console.error("unable to copy using execCommand: ",L),pe&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(S.format||"text",H),S.onCopy&&S.onCopy(window.clipboardData),x=!0}catch(te){pe&&console.error("unable to copy using clipboardData: ",te),pe&&console.error("falling back to prompt"),a=ye("message"in S?S.message:Q),window.prompt(a,H)}}finally{m&&(typeof m.removeRange=="function"?m.removeRange(O):m.removeAllRanges()),u&&document.body.removeChild(u),C()}return x}Gt.exports=U},97774:function(Gt,He,h){"use strict";Object.defineProperty(He,"__esModule",{value:!0}),He.default=void 0;var z=Object.assign||function(L){for(var te=1;te<arguments.length;te++){var B=arguments[te];for(var M in B)Object.prototype.hasOwnProperty.call(B,M)&&(L[M]=B[M])}return L},N=function(){function L(te,B){for(var M=0;M<B.length;M++){var W=B[M];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(te,W.key,W)}}return function(te,B,M){return B&&L(te.prototype,B),M&&L(te,M),te}}(),Q=h(59301),ye=O(Q),U=h(12708),H=O(U),S=h(53291),pe=O(S),a=h(47242),C=h(65429);function O(L){return L&&L.__esModule?L:{default:L}}function m(L,te){if(!(L instanceof te))throw new TypeError("Cannot call a class as a function")}function u(L,te){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return te&&(typeof te=="object"||typeof te=="function")?te:L}function x(L,te){if(typeof te!="function"&&te!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof te);L.prototype=Object.create(te&&te.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),te&&(Object.setPrototypeOf?Object.setPrototypeOf(L,te):L.__proto__=te)}var y=function(L){x(te,L);function te(B){m(this,te);var M=u(this,(te.__proto__||Object.getPrototypeOf(te)).call(this,B));return M.getEchartsInstance=function(){return M.echartsLib.getInstanceByDom(M.echartsElement)||M.echartsLib.init(M.echartsElement,M.props.theme,M.props.opts)},M.dispose=function(){if(M.echartsElement){try{(0,a.clear)(M.echartsElement)}catch(W){console.warn(W)}M.echartsLib.dispose(M.echartsElement)}},M.rerender=function(){var W=M.props,V=W.onEvents,b=W.onChartReady,T=M.renderEchartDom();M.bindEvents(T,V||{}),typeof b=="function"&&M.props.onChartReady(T),M.echartsElement&&(0,a.bind)(M.echartsElement,function(){try{T.resize()}catch(G){console.warn(G)}})},M.bindEvents=function(W,V){var b=function(j,be){typeof j=="string"&&typeof be=="function"&&W.on(j,function(Ee){be(Ee,W)})};for(var T in V)Object.prototype.hasOwnProperty.call(V,T)&&b(T,V[T])},M.renderEchartDom=function(){var W=M.getEchartsInstance();return W.setOption(M.props.option,M.props.notMerge||!1,M.props.lazyUpdate||!1),M.props.showLoading?W.showLoading(M.props.loadingOption||null):W.hideLoading(),W},M.echartsLib=B.echarts,M.echartsElement=null,M}return N(te,[{key:"componentDidMount",value:function(){this.rerender()}},{key:"componentDidUpdate",value:function(M){if(!(typeof this.props.shouldSetOption=="function"&&!this.props.shouldSetOption(M,this.props))){if(!(0,pe.default)(M.theme,this.props.theme)||!(0,pe.default)(M.opts,this.props.opts)||!(0,pe.default)(M.onEvents,this.props.onEvents)){this.dispose(),this.rerender();return}var W=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if(!(0,pe.default)((0,C.pick)(this.props,W),(0,C.pick)(M,W))){var V=this.renderEchartDom();if(!(0,pe.default)(M.style,this.props.style)||!(0,pe.default)(M.className,this.props.className))try{V.resize()}catch(b){console.warn(b)}}}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var M=this,W=this.props,V=W.style,b=W.className,T=z({height:300},V);return ye.default.createElement("div",{ref:function(j){M.echartsElement=j},style:T,className:"echarts-for-react "+b})}}]),te}(Q.Component);He.default=y,y.propTypes={option:H.default.object.isRequired,echarts:H.default.object,notMerge:H.default.bool,lazyUpdate:H.default.bool,style:H.default.object,className:H.default.string,theme:H.default.oneOfType([H.default.string,H.default.object]),onChartReady:H.default.func,showLoading:H.default.bool,loadingOption:H.default.object,onEvents:H.default.object,opts:H.default.shape({devicePixelRatio:H.default.number,renderer:H.default.oneOf(["canvas","svg"]),width:H.default.oneOfType([H.default.number,H.default.oneOf([null,void 0,"auto"])]),height:H.default.oneOfType([H.default.number,H.default.oneOf([null,void 0,"auto"])])}),shouldSetOption:H.default.func},y.defaultProps={echarts:{},notMerge:!1,lazyUpdate:!1,style:{},className:"",theme:null,onChartReady:function(){},showLoading:!1,loadingOption:null,onEvents:{},opts:{},shouldSetOption:function(){return!0}}},42441:function(Gt,He,h){"use strict";var z;z={value:!0},He.Z=void 0;var N=h(76411),Q=H(N),ye=h(97774),U=H(ye);function H(O){return O&&O.__esModule?O:{default:O}}function S(O,m){if(!(O instanceof m))throw new TypeError("Cannot call a class as a function")}function pe(O,m){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:O}function a(O,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);O.prototype=Object.create(m&&m.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(O,m):O.__proto__=m)}var C=function(O){a(m,O);function m(u){S(this,m);var x=pe(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,u));return x.echartsLib=Q.default,x}return m}(U.default);He.Z=C},65429:function(Gt,He){"use strict";Object.defineProperty(He,"__esModule",{value:!0});var h=He.pick=function(N,Q){var ye={};return Q.forEach(function(U){ye[U]=N[U]}),ye}},53291:function(Gt){"use strict";var He=Array.isArray,h=Object.keys,z=Object.prototype.hasOwnProperty;Gt.exports=function N(Q,ye){if(Q===ye)return!0;if(Q&&ye&&typeof Q=="object"&&typeof ye=="object"){var U=He(Q),H=He(ye),S,pe,a;if(U&&H){if(pe=Q.length,pe!=ye.length)return!1;for(S=pe;S--!==0;)if(!N(Q[S],ye[S]))return!1;return!0}if(U!=H)return!1;var C=Q instanceof Date,O=ye instanceof Date;if(C!=O)return!1;if(C&&O)return Q.getTime()==ye.getTime();var m=Q instanceof RegExp,u=ye instanceof RegExp;if(m!=u)return!1;if(m&&u)return Q.toString()==ye.toString();var x=h(Q);if(pe=x.length,pe!==h(ye).length)return!1;for(S=pe;S--!==0;)if(!z.call(ye,x[S]))return!1;for(S=pe;S--!==0;)if(a=x[S],!N(Q[a],ye[a]))return!1;return!0}return Q!==Q&&ye!==ye}},53184:function(Gt,He,h){"use strict";var z,N;function Q(ye,U,H){var S=function(pe,a){return ye.js_beautify(pe,a)};return S.js=ye.js_beautify,S.css=U.css_beautify,S.html=H.html_beautify,S.js_beautify=ye.js_beautify,S.css_beautify=U.css_beautify,S.html_beautify=H.html_beautify,S}z=[h(58553),h(87804),h(40998)],N=function(ye,U,H){return Q(ye,U,H)}.apply(He,z),N!==void 0&&(Gt.exports=N)},87804:function(Gt,He){var h,z;(function(){var N;(function(){"use strict";var ye=[,,function(pe){function a(m){this.__parent=m,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}a.prototype.clone_empty=function(){var m=new a(this.__parent);return m.set_indent(this.__indent_count,this.__alignment_count),m},a.prototype.item=function(m){return m<0?this.__items[this.__items.length+m]:this.__items[m]},a.prototype.has_match=function(m){for(var u=this.__items.length-1;u>=0;u--)if(this.__items[u].match(m))return!0;return!1},a.prototype.set_indent=function(m,u){this.is_empty()&&(this.__indent_count=m||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 m=this.__parent.current_line;return m.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),m.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),m.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,m.__items[0]===" "&&(m.__items.splice(0,1),m.__character_count-=1),!0}return!1},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(m){this.__items.push(m);var u=m.lastIndexOf(`
`);u!==-1?this.__character_count=m.length-u:this.__character_count+=m.length},a.prototype.pop=function(){var m=null;return this.is_empty()||(m=this.__items.pop(),this.__character_count-=m.length),m},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 m="";return this.is_empty()?this.__parent.indent_empty_lines&&(m=this.__parent.get_indent_string(this.__indent_count)):(m=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),m+=this.__items.join("")),m};function C(m,u){this.__cache=[""],this.__indent_size=m.indent_size,this.__indent_string=m.indent_char,m.indent_with_tabs||(this.__indent_string=new Array(m.indent_size+1).join(m.indent_char)),u=u||"",m.indent_level>0&&(u=new Array(m.indent_level+1).join(this.__indent_string)),this.__base_string=u,this.__base_string_length=u.length}C.prototype.get_indent_size=function(m,u){var x=this.__base_string_length;return u=u||0,m<0&&(x=0),x+=m*this.__indent_size,x+=u,x},C.prototype.get_indent_string=function(m,u){var x=this.__base_string;return u=u||0,m<0&&(m=0,x=""),u+=m*this.__indent_size,this.__ensure_cache(u),x+=this.__cache[u],x},C.prototype.__ensure_cache=function(m){for(;m>=this.__cache.length;)this.__add_column()},C.prototype.__add_column=function(){var m=this.__cache.length,u=0,x="";this.__indent_size&&m>=this.__indent_size&&(u=Math.floor(m/this.__indent_size),m-=u*this.__indent_size,x=new Array(u+1).join(this.__indent_string)),m&&(x+=new Array(m+1).join(" ")),this.__cache.push(x)};function O(m,u){this.__indent_cache=new C(m,u),this.raw=!1,this._end_with_newline=m.end_with_newline,this.indent_size=m.indent_size,this.wrap_line_length=m.wrap_line_length,this.indent_empty_lines=m.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new a(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}O.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},O.prototype.get_line_number=function(){return this.__lines.length},O.prototype.get_indent_string=function(m,u){return this.__indent_cache.get_indent_string(m,u)},O.prototype.get_indent_size=function(m,u){return this.__indent_cache.get_indent_size(m,u)},O.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},O.prototype.add_new_line=function(m){return this.is_empty()||!m&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},O.prototype.get_code=function(m){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 x=this.__lines.join(`
`);return m!==`
`&&(x=x.replace(/[\n]/g,m)),x},O.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},O.prototype.set_indent=function(m,u){return m=m||0,u=u||0,this.next_line.set_indent(m,u),this.__lines.length>1?(this.current_line.set_indent(m,u),!0):(this.current_line.set_indent(),!1)},O.prototype.add_raw_token=function(m){for(var u=0;u<m.newlines;u++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(m.whitespace_before),this.current_line.push(m.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},O.prototype.add_token=function(m){this.__add_space_before_token(),this.current_line.push(m),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},O.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(" "))},O.prototype.remove_indent=function(m){for(var u=this.__lines.length;m<u;)this.__lines[m]._remove_indent(),m++;this.current_line._remove_wrap_indent()},O.prototype.trim=function(m){for(m=m===void 0?!1:m,this.current_line.trim();m&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},O.prototype.just_added_newline=function(){return this.current_line.is_empty()},O.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},O.prototype.ensure_empty_line_above=function(m,u){for(var x=this.__lines.length-2;x>=0;){var y=this.__lines[x];if(y.is_empty())break;if(y.item(0).indexOf(m)!==0&&y.item(-1)!==u){this.__lines.splice(x+1,0,new a(this)),this.previous_line=this.__lines[this.__lines.length-2];break}x--}},pe.exports.Output=O},,,,function(pe){function a(m,u){this.raw_options=C(m,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(m,u){var x=this.raw_options[m],y=u||[];return typeof x=="object"?x!==null&&typeof x.concat=="function"&&(y=x.concat()):typeof x=="string"&&(y=x.split(/[^a-zA-Z0-9_\/\-]+/)),y},a.prototype._get_boolean=function(m,u){var x=this.raw_options[m],y=x===void 0?!!u:!!x;return y},a.prototype._get_characters=function(m,u){var x=this.raw_options[m],y=u||"";return typeof x=="string"&&(y=x.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),y},a.prototype._get_number=function(m,u){var x=this.raw_options[m];u=parseInt(u,10),isNaN(u)&&(u=0);var y=parseInt(x,10);return isNaN(y)&&(y=u),y},a.prototype._get_selection=function(m,u,x){var y=this._get_selection_list(m,u,x);if(y.length!==1)throw new Error("Invalid Option Value: The option '"+m+`' can only be one of the following values:
`+u+`
You passed in: '`+this.raw_options[m]+"'");return y[0]},a.prototype._get_selection_list=function(m,u,x){if(!u||u.length===0)throw new Error("Selection list cannot be empty.");if(x=x||[u[0]],!this._is_valid_selection(x,u))throw new Error("Invalid Default Value!");var y=this._get_array(m,x);if(!this._is_valid_selection(y,u))throw new Error("Invalid Option Value: The option '"+m+`' can contain only the following values:
`+u+`
You passed in: '`+this.raw_options[m]+"'");return y},a.prototype._is_valid_selection=function(m,u){return m.length&&u.length&&!m.some(function(x){return u.indexOf(x)===-1})};function C(m,u){var x={};m=O(m);var y;for(y in m)y!==u&&(x[y]=m[y]);if(u&&m[u])for(y in m[u])x[y]=m[u][y];return x}function O(m){var u={},x;for(x in m){var y=x.replace(/-/g,"_");u[y]=m[x]}return u}pe.exports.Options=a,pe.exports.normalizeOpts=O,pe.exports.mergeOpts=C},,function(pe){var a=RegExp.prototype.hasOwnProperty("sticky");function C(O){this.__input=O||"",this.__input_length=this.__input.length,this.__position=0}C.prototype.restart=function(){this.__position=0},C.prototype.back=function(){this.__position>0&&(this.__position-=1)},C.prototype.hasNext=function(){return this.__position<this.__input_length},C.prototype.next=function(){var O=null;return this.hasNext()&&(O=this.__input.charAt(this.__position),this.__position+=1),O},C.prototype.peek=function(O){var m=null;return O=O||0,O+=this.__position,O>=0&&O<this.__input_length&&(m=this.__input.charAt(O)),m},C.prototype.__match=function(O,m){O.lastIndex=m;var u=O.exec(this.__input);return u&&!(a&&O.sticky)&&u.index!==m&&(u=null),u},C.prototype.test=function(O,m){return m=m||0,m+=this.__position,m>=0&&m<this.__input_length?!!this.__match(O,m):!1},C.prototype.testChar=function(O,m){var u=this.peek(m);return O.lastIndex=0,u!==null&&O.test(u)},C.prototype.match=function(O){var m=this.__match(O,this.__position);return m?this.__position+=m[0].length:m=null,m},C.prototype.read=function(O,m,u){var x="",y;return O&&(y=this.match(O),y&&(x+=y[0])),m&&(y||!O)&&(x+=this.readUntil(m,u)),x},C.prototype.readUntil=function(O,m){var u="",x=this.__position;O.lastIndex=this.__position;var y=O.exec(this.__input);return y?(x=y.index,m&&(x+=y[0].length)):x=this.__input_length,u=this.__input.substring(this.__position,x),this.__position=x,u},C.prototype.readUntilAfter=function(O){return this.readUntil(O,!0)},C.prototype.get_regexp=function(O,m){var u=null,x="g";return m&&a&&(x="y"),typeof O=="string"&&O!==""?u=new RegExp(O,x):O&&(u=new RegExp(O.source,x)),u},C.prototype.get_literal_regexp=function(O){return RegExp(O.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},C.prototype.peekUntilAfter=function(O){var m=this.__position,u=this.readUntilAfter(O);return this.__position=m,u},C.prototype.lookBack=function(O){var m=this.__position-1;return m>=O.length&&this.__input.substring(m-O.length,m).toLowerCase()===O},pe.exports.InputScanner=C},,,,,function(pe){function a(C,O){C=typeof C=="string"?C:C.source,O=typeof O=="string"?O:O.source,this.__directives_block_pattern=new RegExp(C+/ beautify( \w+[:]\w+)+ /.source+O,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(C+/\sbeautify\signore:end\s/.source+O,"g")}a.prototype.get_directives=function(C){if(!C.match(this.__directives_block_pattern))return null;var O={};this.__directive_pattern.lastIndex=0;for(var m=this.__directive_pattern.exec(C);m;)O[m[1]]=m[2],m=this.__directive_pattern.exec(C);return O},a.prototype.readIgnored=function(C){return C.readUntilAfter(this.__directives_end_ignore_pattern)},pe.exports.Directives=a},,function(pe,a,C){var O=C(16).Beautifier,m=C(17).Options;function u(x,y){var L=new O(x,y);return L.beautify()}pe.exports=u,pe.exports.defaultOptions=function(){return new m}},function(pe,a,C){var O=C(17).Options,m=C(2).Output,u=C(8).InputScanner,x=C(13).Directives,y=new x(/\/\*/,/\*\//),L=/\r\n|[\r\n]/,te=/\r\n|[\r\n]/g,B=/\s/,M=/(?:\s|\n)+/g,W=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,V=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function b(T,G){this._source_text=T||"",this._options=new O(G),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"]}b.prototype.eatString=function(T){var G="";for(this._ch=this._input.next();this._ch;){if(G+=this._ch,this._ch==="\\")G+=this._input.next();else if(T.indexOf(this._ch)!==-1||this._ch===`
`)break;this._ch=this._input.next()}return G},b.prototype.eatWhitespace=function(T){for(var G=B.test(this._input.peek()),j=0;B.test(this._input.peek());)this._ch=this._input.next(),T&&this._ch===`
`&&(j===0||j<this._options.max_preserve_newlines)&&(j++,this._output.add_new_line(!0));return G},b.prototype.foundNestedPseudoClass=function(){for(var T=0,G=1,j=this._input.peek(G);j;){if(j==="{")return!0;if(j==="(")T+=1;else if(j===")"){if(T===0)return!1;T-=1}else if(j===";"||j==="}")return!1;G++,j=this._input.peek(G)}return!1},b.prototype.print_string=function(T){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(T)},b.prototype.preserveSingleSpace=function(T){T&&(this._output.space_before_token=!0)},b.prototype.indent=function(){this._indentLevel++},b.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},b.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var T=this._source_text,G=this._options.eol;G==="auto"&&(G=`
`,T&&L.test(T||"")&&(G=T.match(L)[0])),T=T.replace(te,`
`);var j=T.match(/^[\t ]*/)[0];this._output=new m(this._options,j),this._input=new u(T),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var be=0,Ee=!1,xe=!1,ce=!1,ee=!1,Z=!1,me=this._ch,P=!1,se,X,v;se=this._input.read(M),X=se!=="",v=me,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),me=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var E=this._input.read(W),K=y.get_directives(E);K&&K.ignore==="start"&&(E+=y.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(V)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(X),this.print_string(this._ch);var de=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);de.match(/[ :]$/)&&(de=this.eatString(": ").replace(/\s+$/,""),this.print_string(de),this._output.space_before_token=!0),be===0&&de.indexOf(":")!==-1&&(xe=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(X),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var Ne=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);Ne.match(/[ :]$/)&&(Ne=this.eatString(": ").replace(/\s+$/,""),this.print_string(Ne),this._output.space_before_token=!0),be===0&&Ne.indexOf(":")!==-1?(xe=!0,this.indent()):Ne in this.NESTED_AT_RULE?(this._nestedLevel+=1,Ne in this.CONDITIONAL_GROUP_RULE&&(ce=!0)):be===0&&!xe&&(ee=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(X),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")xe&&(xe=!1,this.outdent()),ee=!1,ce?(ce=!1,Ee=this._indentLevel>=this._nestedLevel):Ee=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&Ee&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(v==="("?this._output.space_before_token=!1:v!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),v==="{"&&this._output.trim(!0),xe&&(this.outdent(),xe=!1),this.print_string(this._ch),Ee=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var Ue=0;Ue<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;Ue++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[Ue])){P=!0;break}(Ee||ce)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!ee&&be===0?(this.print_string(":"),xe||(xe=!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 ke=v==='"'||v==="'";this.preserveSingleSpace(ke||X),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")P=!1,be===0?(xe&&(this.outdent(),xe=!1),ee=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),be++,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(")")),be&&(be--,this.outdent()));else{var Ve=!1;this._input.lookBack("with")&&(Ve=!0),this.preserveSingleSpace(X||Ve),this.print_string(this._ch),xe&&v==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),Z=!0):(this.eatWhitespace(),be++,this.indent())}else if(this._ch===")")be&&(be--,this.outdent()),Z&&this._input.peek()===";"&&this._options.selector_separator_newline&&(Z=!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&&(!xe||Z)&&be===0&&!ee?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!xe&&be===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&&B.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(X),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),B.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 ht=v==='"'||v==="'";this.preserveSingleSpace(ht||X),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
`&&P&&this._output.add_new_line()}var pt=this._output.get_code(G);return pt},pe.exports.Beautifier=b},function(pe,a,C){var O=C(6).Options;function m(u){O.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 x=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||x;var y=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var L=0;L<y.length;L++)y[L]!=="expand"?this.brace_style="collapse":this.brace_style=y[L]}m.prototype=new O,pe.exports.Options=m}],U={};function H(pe){var a=U[pe];if(a!==void 0)return a.exports;var C=U[pe]={exports:{}};return ye[pe](C,C.exports,H),C.exports}var S=H(15);N=S})();var Q=N;h=[],z=function(){return{css_beautify:Q}}.apply(He,h),z!==void 0&&(Gt.exports=z)})()},40998:function(Gt,He,h){var z,N;(function(){var Q;(function(){"use strict";var S=[,,function(O){function m(y){this.__parent=y,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}m.prototype.clone_empty=function(){var y=new m(this.__parent);return y.set_indent(this.__indent_count,this.__alignment_count),y},m.prototype.item=function(y){return y<0?this.__items[this.__items.length+y]:this.__items[y]},m.prototype.has_match=function(y){for(var L=this.__items.length-1;L>=0;L--)if(this.__items[L].match(y))return!0;return!1},m.prototype.set_indent=function(y,L){this.is_empty()&&(this.__indent_count=y||0,this.__alignment_count=L||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},m.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},m.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},m.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var y=this.__parent.current_line;return y.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),y.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),y.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,y.__items[0]===" "&&(y.__items.splice(0,1),y.__character_count-=1),!0}return!1},m.prototype.is_empty=function(){return this.__items.length===0},m.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},m.prototype.push=function(y){this.__items.push(y);var L=y.lastIndexOf(`
`);L!==-1?this.__character_count=y.length-L:this.__character_count+=y.length},m.prototype.pop=function(){var y=null;return this.is_empty()||(y=this.__items.pop(),this.__character_count-=y.length),y},m.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},m.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},m.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},m.prototype.toString=function(){var y="";return this.is_empty()?this.__parent.indent_empty_lines&&(y=this.__parent.get_indent_string(this.__indent_count)):(y=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),y+=this.__items.join("")),y};function u(y,L){this.__cache=[""],this.__indent_size=y.indent_size,this.__indent_string=y.indent_char,y.indent_with_tabs||(this.__indent_string=new Array(y.indent_size+1).join(y.indent_char)),L=L||"",y.indent_level>0&&(L=new Array(y.indent_level+1).join(this.__indent_string)),this.__base_string=L,this.__base_string_length=L.length}u.prototype.get_indent_size=function(y,L){var te=this.__base_string_length;return L=L||0,y<0&&(te=0),te+=y*this.__indent_size,te+=L,te},u.prototype.get_indent_string=function(y,L){var te=this.__base_string;return L=L||0,y<0&&(y=0,te=""),L+=y*this.__indent_size,this.__ensure_cache(L),te+=this.__cache[L],te},u.prototype.__ensure_cache=function(y){for(;y>=this.__cache.length;)this.__add_column()},u.prototype.__add_column=function(){var y=this.__cache.length,L=0,te="";this.__indent_size&&y>=this.__indent_size&&(L=Math.floor(y/this.__indent_size),y-=L*this.__indent_size,te=new Array(L+1).join(this.__indent_string)),y&&(te+=new Array(y+1).join(" ")),this.__cache.push(te)};function x(y,L){this.__indent_cache=new u(y,L),this.raw=!1,this._end_with_newline=y.end_with_newline,this.indent_size=y.indent_size,this.wrap_line_length=y.wrap_line_length,this.indent_empty_lines=y.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new m(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}x.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},x.prototype.get_line_number=function(){return this.__lines.length},x.prototype.get_indent_string=function(y,L){return this.__indent_cache.get_indent_string(y,L)},x.prototype.get_indent_size=function(y,L){return this.__indent_cache.get_indent_size(y,L)},x.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},x.prototype.add_new_line=function(y){return this.is_empty()||!y&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},x.prototype.get_code=function(y){this.trim(!0);var L=this.current_line.pop();L&&(L[L.length-1]===`
`&&(L=L.replace(/\n+$/g,"")),this.current_line.push(L)),this._end_with_newline&&this.__add_outputline();var te=this.__lines.join(`
`);return y!==`
`&&(te=te.replace(/[\n]/g,y)),te},x.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},x.prototype.set_indent=function(y,L){return y=y||0,L=L||0,this.next_line.set_indent(y,L),this.__lines.length>1?(this.current_line.set_indent(y,L),!0):(this.current_line.set_indent(),!1)},x.prototype.add_raw_token=function(y){for(var L=0;L<y.newlines;L++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(y.whitespace_before),this.current_line.push(y.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},x.prototype.add_token=function(y){this.__add_space_before_token(),this.current_line.push(y),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},x.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(" "))},x.prototype.remove_indent=function(y){for(var L=this.__lines.length;y<L;)this.__lines[y]._remove_indent(),y++;this.current_line._remove_wrap_indent()},x.prototype.trim=function(y){for(y=y===void 0?!1:y,this.current_line.trim();y&&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},x.prototype.just_added_newline=function(){return this.current_line.is_empty()},x.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},x.prototype.ensure_empty_line_above=function(y,L){for(var te=this.__lines.length-2;te>=0;){var B=this.__lines[te];if(B.is_empty())break;if(B.item(0).indexOf(y)!==0&&B.item(-1)!==L){this.__lines.splice(te+1,0,new m(this)),this.previous_line=this.__lines[this.__lines.length-2];break}te--}},O.exports.Output=x},function(O){function m(u,x,y,L){this.type=u,this.text=x,this.comments_before=null,this.newlines=y||0,this.whitespace_before=L||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}O.exports.Token=m},,,function(O){function m(y,L){this.raw_options=u(y,L),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}m.prototype._get_array=function(y,L){var te=this.raw_options[y],B=L||[];return typeof te=="object"?te!==null&&typeof te.concat=="function"&&(B=te.concat()):typeof te=="string"&&(B=te.split(/[^a-zA-Z0-9_\/\-]+/)),B},m.prototype._get_boolean=function(y,L){var te=this.raw_options[y],B=te===void 0?!!L:!!te;return B},m.prototype._get_characters=function(y,L){var te=this.raw_options[y],B=L||"";return typeof te=="string"&&(B=te.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),B},m.prototype._get_number=function(y,L){var te=this.raw_options[y];L=parseInt(L,10),isNaN(L)&&(L=0);var B=parseInt(te,10);return isNaN(B)&&(B=L),B},m.prototype._get_selection=function(y,L,te){var B=this._get_selection_list(y,L,te);if(B.length!==1)throw new Error("Invalid Option Value: The option '"+y+`' can only be one of the following values:
`+L+`
You passed in: '`+this.raw_options[y]+"'");return B[0]},m.prototype._get_selection_list=function(y,L,te){if(!L||L.length===0)throw new Error("Selection list cannot be empty.");if(te=te||[L[0]],!this._is_valid_selection(te,L))throw new Error("Invalid Default Value!");var B=this._get_array(y,te);if(!this._is_valid_selection(B,L))throw new Error("Invalid Option Value: The option '"+y+`' can contain only the following values:
`+L+`
You passed in: '`+this.raw_options[y]+"'");return B},m.prototype._is_valid_selection=function(y,L){return y.length&&L.length&&!y.some(function(te){return L.indexOf(te)===-1})};function u(y,L){var te={};y=x(y);var B;for(B in y)B!==L&&(te[B]=y[B]);if(L&&y[L])for(B in y[L])te[B]=y[L][B];return te}function x(y){var L={},te;for(te in y){var B=te.replace(/-/g,"_");L[B]=y[te]}return L}O.exports.Options=m,O.exports.normalizeOpts=x,O.exports.mergeOpts=u},,function(O){var m=RegExp.prototype.hasOwnProperty("sticky");function u(x){this.__input=x||"",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 x=null;return this.hasNext()&&(x=this.__input.charAt(this.__position),this.__position+=1),x},u.prototype.peek=function(x){var y=null;return x=x||0,x+=this.__position,x>=0&&x<this.__input_length&&(y=this.__input.charAt(x)),y},u.prototype.__match=function(x,y){x.lastIndex=y;var L=x.exec(this.__input);return L&&!(m&&x.sticky)&&L.index!==y&&(L=null),L},u.prototype.test=function(x,y){return y=y||0,y+=this.__position,y>=0&&y<this.__input_length?!!this.__match(x,y):!1},u.prototype.testChar=function(x,y){var L=this.peek(y);return x.lastIndex=0,L!==null&&x.test(L)},u.prototype.match=function(x){var y=this.__match(x,this.__position);return y?this.__position+=y[0].length:y=null,y},u.prototype.read=function(x,y,L){var te="",B;return x&&(B=this.match(x),B&&(te+=B[0])),y&&(B||!x)&&(te+=this.readUntil(y,L)),te},u.prototype.readUntil=function(x,y){var L="",te=this.__position;x.lastIndex=this.__position;var B=x.exec(this.__input);return B?(te=B.index,y&&(te+=B[0].length)):te=this.__input_length,L=this.__input.substring(this.__position,te),this.__position=te,L},u.prototype.readUntilAfter=function(x){return this.readUntil(x,!0)},u.prototype.get_regexp=function(x,y){var L=null,te="g";return y&&m&&(te="y"),typeof x=="string"&&x!==""?L=new RegExp(x,te):x&&(L=new RegExp(x.source,te)),L},u.prototype.get_literal_regexp=function(x){return RegExp(x.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},u.prototype.peekUntilAfter=function(x){var y=this.__position,L=this.readUntilAfter(x);return this.__position=y,L},u.prototype.lookBack=function(x){var y=this.__position-1;return y>=x.length&&this.__input.substring(y-x.length,y).toLowerCase()===x},O.exports.InputScanner=u},function(O,m,u){var x=u(8).InputScanner,y=u(3).Token,L=u(10).TokenStream,te=u(11).WhitespacePattern,B={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},M=function(W,V){this._input=new x(W),this._options=V||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new te(this._input)};M.prototype.tokenize=function(){this._input.restart(),this.__tokens=new L,this._reset();for(var W,V=new y(B.START,""),b=null,T=[],G=new L;V.type!==B.EOF;){for(W=this._get_next_token(V,b);this._is_comment(W);)G.add(W),W=this._get_next_token(V,b);G.isEmpty()||(W.comments_before=G,G=new L),W.parent=b,this._is_opening(W)?(T.push(b),b=W):b&&this._is_closing(W,b)&&(W.opened=b,b.closed=W,b=T.pop(),W.parent=b),W.previous=V,V.next=W,this.__tokens.add(W),V=W}return this.__tokens},M.prototype._is_first_token=function(){return this.__tokens.isEmpty()},M.prototype._reset=function(){},M.prototype._get_next_token=function(W,V){this._readWhitespace();var b=this._input.read(/.+/g);return b?this._create_token(B.RAW,b):this._create_token(B.EOF,"")},M.prototype._is_comment=function(W){return!1},M.prototype._is_opening=function(W){return!1},M.prototype._is_closing=function(W,V){return!1},M.prototype._create_token=function(W,V){var b=new y(W,V,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return b},M.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},O.exports.Tokenizer=M,O.exports.TOKEN=B},function(O){function m(u){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=u}m.prototype.restart=function(){this.__position=0},m.prototype.isEmpty=function(){return this.__tokens_length===0},m.prototype.hasNext=function(){return this.__position<this.__tokens_length},m.prototype.next=function(){var u=null;return this.hasNext()&&(u=this.__tokens[this.__position],this.__position+=1),u},m.prototype.peek=function(u){var x=null;return u=u||0,u+=this.__position,u>=0&&u<this.__tokens_length&&(x=this.__tokens[u]),x},m.prototype.add=function(u){this.__parent_token&&(u.parent=this.__parent_token),this.__tokens.push(u),this.__tokens_length+=1},O.exports.TokenStream=m},function(O,m,u){var x=u(12).Pattern;function y(L,te){x.call(this,L,te),te?this._line_regexp=this._input.get_regexp(te._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}y.prototype=new x,y.prototype.__set_whitespace_patterns=function(L,te){L+="\\t ",te+="\\n\\r",this._match_pattern=this._input.get_regexp("["+L+te+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+te+"]")},y.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var L=this._input.read(this._match_pattern);if(L===" ")this.whitespace_before_token=" ";else if(L){var te=this.__split(this._newline_regexp,L);this.newline_count=te.length-1,this.whitespace_before_token=te[this.newline_count]}return L},y.prototype.matching=function(L,te){var B=this._create();return B.__set_whitespace_patterns(L,te),B._update(),B},y.prototype._create=function(){return new y(this._input,this)},y.prototype.__split=function(L,te){L.lastIndex=0;for(var B=0,M=[],W=L.exec(te);W;)M.push(te.substring(B,W.index)),B=W.index+W[0].length,W=L.exec(te);return B<te.length?M.push(te.substring(B,te.length)):M.push(""),M},O.exports.WhitespacePattern=y},function(O){function m(u,x){this._input=u,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,x&&(this._starting_pattern=this._input.get_regexp(x._starting_pattern,!0),this._match_pattern=this._input.get_regexp(x._match_pattern,!0),this._until_pattern=this._input.get_regexp(x._until_pattern),this._until_after=x._until_after)}m.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},m.prototype.read_match=function(){return this._input.match(this._match_pattern)},m.prototype.until_after=function(u){var x=this._create();return x._until_after=!0,x._until_pattern=this._input.get_regexp(u),x._update(),x},m.prototype.until=function(u){var x=this._create();return x._until_after=!1,x._until_pattern=this._input.get_regexp(u),x._update(),x},m.prototype.starting_with=function(u){var x=this._create();return x._starting_pattern=this._input.get_regexp(u,!0),x._update(),x},m.prototype.matching=function(u){var x=this._create();return x._match_pattern=this._input.get_regexp(u,!0),x._update(),x},m.prototype._create=function(){return new m(this._input,this)},m.prototype._update=function(){},O.exports.Pattern=m},function(O){function m(u,x){u=typeof u=="string"?u:u.source,x=typeof x=="string"?x:x.source,this.__directives_block_pattern=new RegExp(u+/ beautify( \w+[:]\w+)+ /.source+x,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(u+/\sbeautify\signore:end\s/.source+x,"g")}m.prototype.get_directives=function(u){if(!u.match(this.__directives_block_pattern))return null;var x={};this.__directive_pattern.lastIndex=0;for(var y=this.__directive_pattern.exec(u);y;)x[y[1]]=y[2],y=this.__directive_pattern.exec(u);return x},m.prototype.readIgnored=function(u){return u.readUntilAfter(this.__directives_end_ignore_pattern)},O.exports.Directives=m},function(O,m,u){var x=u(12).Pattern,y={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function L(te,B){x.call(this,te,B),this.__template_pattern=null,this._disabled=Object.assign({},y),this._excluded=Object.assign({},y),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 M=new x(te);this.__patterns={handlebars_comment:M.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:M.starting_with(/{{{/).until_after(/}}}/),handlebars:M.starting_with(/{{/).until_after(/}}/),php:M.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:M.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:M.starting_with(/{%/).until_after(/%}/),django_value:M.starting_with(/{{/).until_after(/}}/),django_comment:M.starting_with(/{#/).until_after(/#}/),smarty:M.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:M.starting_with(/{\*/).until_after(/\*}/),smarty_literal:M.starting_with(/{literal}/).until_after(/{\/literal}/)}}L.prototype=new x,L.prototype._create=function(){return new L(this._input,this)},L.prototype._update=function(){this.__set_templated_pattern()},L.prototype.disable=function(te){var B=this._create();return B._disabled[te]=!0,B._update(),B},L.prototype.read_options=function(te){var B=this._create();for(var M in y)B._disabled[M]=te.templating.indexOf(M)===-1;return B._update(),B},L.prototype.exclude=function(te){var B=this._create();return B._excluded[te]=!0,B._update(),B},L.prototype.read=function(){var te="";this._match_pattern?te=this._input.read(this._starting_pattern):te=this._input.read(this._starting_pattern,this.__template_pattern);for(var B=this._read_template();B;)this._match_pattern?B+=this._input.read(this._match_pattern):B+=this._input.readUntil(this.__template_pattern),te+=B,B=this._read_template();return this._until_after&&(te+=this._input.readUntilAfter(this._until_pattern)),te},L.prototype.__set_templated_pattern=function(){var te=[];this._disabled.php||te.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||te.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||te.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||te.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(te.push(this.__patterns.django._starting_pattern.source),te.push(this.__patterns.django_value._starting_pattern.source),te.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||te.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&te.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+te.join("|")+")")},L.prototype._read_template=function(){var te="",B=this._input.peek();if(B==="<"){var M=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&M==="?"&&(te=te||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&M==="%"&&(te=te||this.__patterns.erb.read())}else B==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(te=te||this.__patterns.handlebars_comment.read(),te=te||this.__patterns.handlebars_unescaped.read(),te=te||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(te=te||this.__patterns.django_value.read()),this._excluded.django||(te=te||this.__patterns.django_comment.read(),te=te||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(te=te||this.__patterns.smarty_comment.read(),te=te||this.__patterns.smarty_literal.read(),te=te||this.__patterns.smarty.read()));return te},O.exports.TemplatablePattern=L},,,,function(O,m,u){var x=u(19).Beautifier,y=u(20).Options;function L(te,B,M,W){var V=new x(te,B,M,W);return V.beautify()}O.exports=L,O.exports.defaultOptions=function(){return new y}},function(O,m,u){var x=u(20).Options,y=u(2).Output,L=u(21).Tokenizer,te=u(21).TOKEN,B=/\r\n|[\r\n]/,M=/\r\n|[\r\n]/g,W=function(ee,Z){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=ee.max_preserve_newlines,this.preserve_newlines=ee.preserve_newlines,this._output=new y(ee,Z)};W.prototype.current_line_has_match=function(ee){return this._output.current_line.has_match(ee)},W.prototype.set_space_before_token=function(ee,Z){this._output.space_before_token=ee,this._output.non_breaking_space=Z},W.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},W.prototype.add_raw_token=function(ee){this._output.add_raw_token(ee)},W.prototype.print_preserved_newlines=function(ee){var Z=0;ee.type!==te.TEXT&&ee.previous.type!==te.TEXT&&(Z=ee.newlines?1:0),this.preserve_newlines&&(Z=ee.newlines<this.max_preserve_newlines+1?ee.newlines:this.max_preserve_newlines+1);for(var me=0;me<Z;me++)this.print_newline(me>0);return Z!==0},W.prototype.traverse_whitespace=function(ee){return ee.whitespace_before||ee.newlines?(this.print_preserved_newlines(ee)||(this._output.space_before_token=!0),!0):!1},W.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},W.prototype.print_newline=function(ee){this._output.add_new_line(ee)},W.prototype.print_token=function(ee){ee.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(ee.text))},W.prototype.indent=function(){this.indent_level++},W.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},W.prototype.get_full_indent=function(ee){return ee=this.indent_level+(ee||0),ee<1?"":this._output.get_indent_string(ee)};var V=function(ee){for(var Z=null,me=ee.next;me.type!==te.EOF&&ee.closed!==me;){if(me.type===te.ATTRIBUTE&&me.text==="type"){me.next&&me.next.type===te.EQUALS&&me.next.next&&me.next.next.type===te.VALUE&&(Z=me.next.next.text);break}me=me.next}return Z},b=function(ee,Z){var me=null,P=null;return Z.closed?(ee==="script"?me="text/javascript":ee==="style"&&(me="text/css"),me=V(Z)||me,me.search("text/css")>-1?P="css":me.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?P="javascript":me.search(/(text|application|dojo)\/(x-)?(html)/)>-1?P="html":me.search(/test\/null/)>-1&&(P="null"),P):null};function T(ee,Z){return Z.indexOf(ee)!==-1}function G(ee,Z,me){this.parent=ee||null,this.tag=Z?Z.tag_name:"",this.indent_level=me||0,this.parser_token=Z||null}function j(ee){this._printer=ee,this._current_frame=null}j.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},j.prototype.record_tag=function(ee){var Z=new G(this._current_frame,ee,this._printer.indent_level);this._current_frame=Z},j.prototype._try_pop_frame=function(ee){var Z=null;return ee&&(Z=ee.parser_token,this._printer.indent_level=ee.indent_level,this._current_frame=ee.parent),Z},j.prototype._get_frame=function(ee,Z){for(var me=this._current_frame;me&&ee.indexOf(me.tag)===-1;){if(Z&&Z.indexOf(me.tag)!==-1){me=null;break}me=me.parent}return me},j.prototype.try_pop=function(ee,Z){var me=this._get_frame([ee],Z);return this._try_pop_frame(me)},j.prototype.indent_to_tag=function(ee){var Z=this._get_frame(ee);Z&&(this._printer.indent_level=Z.indent_level)};function be(ee,Z,me,P){this._source_text=ee||"",Z=Z||{},this._js_beautify=me,this._css_beautify=P,this._tag_stack=null;var se=new x(Z,"html");this._options=se,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"}be.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var ee=this._source_text,Z=this._options.eol;this._options.eol==="auto"&&(Z=`
`,ee&&B.test(ee)&&(Z=ee.match(B)[0])),ee=ee.replace(M,`
`);var me=ee.match(/^[\t ]*/)[0],P={text:"",type:""},se=new Ee(this._options),X=new W(this._options,me),v=new L(ee,this._options).tokenize();this._tag_stack=new j(X);for(var E=null,K=v.next();K.type!==te.EOF;)K.type===te.TAG_OPEN||K.type===te.COMMENT?(E=this._handle_tag_open(X,K,se,P,v),se=E):K.type===te.ATTRIBUTE||K.type===te.EQUALS||K.type===te.VALUE||K.type===te.TEXT&&!se.tag_complete?E=this._handle_inside_tag(X,K,se,P):K.type===te.TAG_CLOSE?E=this._handle_tag_close(X,K,se):K.type===te.TEXT?E=this._handle_text(X,K,se):K.type===te.CONTROL_FLOW_OPEN?E=this._handle_control_flow_open(X,K):K.type===te.CONTROL_FLOW_CLOSE?E=this._handle_control_flow_close(X,K):X.add_raw_token(K),P=E,K=v.next();var de=X._output.get_code(Z);return de},be.prototype._handle_control_flow_open=function(ee,Z){var me={text:Z.text,type:Z.type};return ee.set_space_before_token(Z.newlines||Z.whitespace_before!=="",!0),Z.newlines?ee.print_preserved_newlines(Z):ee.set_space_before_token(Z.newlines||Z.whitespace_before!=="",!0),ee.print_token(Z),ee.indent(),me},be.prototype._handle_control_flow_close=function(ee,Z){var me={text:Z.text,type:Z.type};return ee.deindent(),Z.newlines?ee.print_preserved_newlines(Z):ee.set_space_before_token(Z.newlines||Z.whitespace_before!=="",!0),ee.print_token(Z),me},be.prototype._handle_tag_close=function(ee,Z,me){var P={text:Z.text,type:Z.type};return ee.alignment_size=0,me.tag_complete=!0,ee.set_space_before_token(Z.newlines||Z.whitespace_before!=="",!0),me.is_unformatted?ee.add_raw_token(Z):(me.tag_start_char==="<"&&(ee.set_space_before_token(Z.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&me.has_wrapped_attrs&&ee.print_newline(!1)),ee.print_token(Z)),me.indent_content&&!(me.is_unformatted||me.is_content_unformatted)&&(ee.indent(),me.indent_content=!1),!me.is_inline_element&&!(me.is_unformatted||me.is_content_unformatted)&&ee.set_wrap_point(),P},be.prototype._handle_inside_tag=function(ee,Z,me,P){var se=me.has_wrapped_attrs,X={text:Z.text,type:Z.type};return ee.set_space_before_token(Z.newlines||Z.whitespace_before!=="",!0),me.is_unformatted?ee.add_raw_token(Z):me.tag_start_char==="{"&&Z.type===te.TEXT?ee.print_preserved_newlines(Z)?(Z.newlines=0,ee.add_raw_token(Z)):ee.print_token(Z):(Z.type===te.ATTRIBUTE?ee.set_space_before_token(!0):(Z.type===te.EQUALS||Z.type===te.VALUE&&Z.previous.type===te.EQUALS)&&ee.set_space_before_token(!1),Z.type===te.ATTRIBUTE&&me.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(ee.traverse_whitespace(Z),se=se||Z.newlines!==0),this._is_wrap_attributes_force&&me.attr_count>=this._options.wrap_attributes_min_attrs&&(P.type!==te.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(ee.print_newline(!1),se=!0)),ee.print_token(Z),se=se||ee.previous_token_wrapped(),me.has_wrapped_attrs=se),X},be.prototype._handle_text=function(ee,Z,me){var P={text:Z.text,type:"TK_CONTENT"};return me.custom_beautifier_name?this._print_custom_beatifier_text(ee,Z,me):me.is_unformatted||me.is_content_unformatted?ee.add_raw_token(Z):(ee.traverse_whitespace(Z),ee.print_token(Z)),P},be.prototype._print_custom_beatifier_text=function(ee,Z,me){var P=this;if(Z.text!==""){var se=Z.text,X,v=1,E="",K="";me.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?X=this._js_beautify:me.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?X=this._css_beautify:me.custom_beautifier_name==="html"&&(X=function(ht,pt){var st=new be(ht,pt,P._js_beautify,P._css_beautify);return st.beautify()}),this._options.indent_scripts==="keep"?v=0:this._options.indent_scripts==="separate"&&(v=-ee.indent_level);var de=ee.get_full_indent(v);if(se=se.replace(/\n[ \t]*$/,""),me.custom_beautifier_name!=="html"&&se[0]==="<"&&se.match(/^(<!--|<!\[CDATA\[)/)){var Ne=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(se);if(!Ne){ee.add_raw_token(Z);return}E=de+Ne[1]+`
`,se=Ne[4],Ne[5]&&(K=de+Ne[5]),se=se.replace(/\n[ \t]*$/,""),(Ne[2]||Ne[3].indexOf(`
`)!==-1)&&(Ne=Ne[3].match(/[ \t]+$/),Ne&&(Z.whitespace_before=Ne[0]))}if(se)if(X){var Ue=function(){this.eol=`
`};Ue.prototype=this._options.raw_options;var ke=new Ue;se=X(de+se,ke)}else{var Ve=Z.whitespace_before;Ve&&(se=se.replace(new RegExp(`
(`+Ve+")?","g"),`
`)),se=de+se.replace(/\n/g,`
`+de)}E&&(se?se=E+se+`
`+K:se=E+K),ee.print_newline(!1),se&&(Z.text=se,Z.whitespace_before="",Z.newlines=0,ee.add_raw_token(Z),ee.print_newline(!0))}},be.prototype._handle_tag_open=function(ee,Z,me,P,se){var X=this._get_tag_open_token(Z);if((me.is_unformatted||me.is_content_unformatted)&&!me.is_empty_element&&Z.type===te.TAG_OPEN&&!X.is_start_tag?(ee.add_raw_token(Z),X.start_tag_token=this._tag_stack.try_pop(X.tag_name)):(ee.traverse_whitespace(Z),this._set_tag_position(ee,Z,X,me,P),X.is_inline_element||ee.set_wrap_point(),ee.print_token(Z)),X.is_start_tag&&this._is_wrap_attributes_force){var v=0,E;do E=se.peek(v),E.type===te.ATTRIBUTE&&(X.attr_count+=1),v+=1;while(E.type!==te.EOF&&E.type!==te.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(X.alignment_size=Z.text.length+1),!X.tag_complete&&!X.is_unformatted&&(ee.alignment_size=X.alignment_size),X};var Ee=function(ee,Z,me){if(this.parent=Z||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="",!me)this.tag_complete=!0;else{var P;this.tag_start_char=me.text[0],this.text=me.text,this.tag_start_char==="<"?(P=me.text.match(/^<([^\s>]*)/),this.tag_check=P?P[1]:""):(P=me.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=P?P[1]:"",(me.text.startsWith("{{#>")||me.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&me.next!==null?this.tag_check=me.next.text.split(" ")[0]:this.tag_check=me.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),me.type===te.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||me.closed&&me.closed.text==="/>";var se=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(se=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!ee.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(se)))}};be.prototype._get_tag_open_token=function(ee){var Z=new Ee(this._options,this._tag_stack.get_parser_token(),ee);return Z.alignment_size=this._options.wrap_attributes_indent_size,Z.is_end_tag=Z.is_end_tag||T(Z.tag_check,this._options.void_elements),Z.is_empty_element=Z.tag_complete||Z.is_start_tag&&Z.is_end_tag,Z.is_unformatted=!Z.tag_complete&&T(Z.tag_check,this._options.unformatted),Z.is_content_unformatted=!Z.is_empty_element&&T(Z.tag_check,this._options.content_unformatted),Z.is_inline_element=T(Z.tag_name,this._options.inline)||this._options.inline_custom_elements&&Z.tag_name.includes("-")||Z.tag_start_char==="{",Z},be.prototype._set_tag_position=function(ee,Z,me,P,se){if(me.is_empty_element||(me.is_end_tag?me.start_tag_token=this._tag_stack.try_pop(me.tag_name):(this._do_optional_end_element(me)&&(me.is_inline_element||ee.print_newline(!1)),this._tag_stack.record_tag(me),(me.tag_name==="script"||me.tag_name==="style")&&!(me.is_unformatted||me.is_content_unformatted)&&(me.custom_beautifier_name=b(me.tag_check,Z)))),T(me.tag_check,this._options.extra_liners)&&(ee.print_newline(!1),ee._output.just_added_blankline()||ee.print_newline(!0)),me.is_empty_element){if(me.tag_start_char==="{"&&me.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),me.indent_content=!0;var X=ee.current_line_has_match(/{{#if/);X||ee.print_newline(!1)}me.tag_name==="!--"&&se.type===te.TAG_CLOSE&&P.is_end_tag&&me.text.indexOf(`
`)===-1||(me.is_inline_element||me.is_unformatted||ee.print_newline(!1),this._calcluate_parent_multiline(ee,me))}else if(me.is_end_tag){var v=!1;v=me.start_tag_token&&me.start_tag_token.multiline_content,v=v||!me.is_inline_element&&!(P.is_inline_element||P.is_unformatted)&&!(se.type===te.TAG_CLOSE&&me.start_tag_token===P)&&se.type!=="TK_CONTENT",(me.is_content_unformatted||me.is_unformatted)&&(v=!1),v&&ee.print_newline(!1)}else me.indent_content=!me.custom_beautifier_name,me.tag_start_char==="<"&&(me.tag_name==="html"?me.indent_content=this._options.indent_inner_html:me.tag_name==="head"?me.indent_content=this._options.indent_head_inner_html:me.tag_name==="body"&&(me.indent_content=this._options.indent_body_inner_html)),!(me.is_inline_element||me.is_unformatted)&&(se.type!=="TK_CONTENT"||me.is_content_unformatted)&&ee.print_newline(!1),this._calcluate_parent_multiline(ee,me)},be.prototype._calcluate_parent_multiline=function(ee,Z){Z.parent&&ee._output.just_added_newline()&&!((Z.is_inline_element||Z.is_unformatted)&&Z.parent.is_inline_element)&&(Z.parent.multiline_content=!0)};var xe=["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"],ce=["a","audio","del","ins","map","noscript","video"];be.prototype._do_optional_end_element=function(ee){var Z=null;if(!(ee.is_empty_element||!ee.is_start_tag||!ee.parent)){if(ee.tag_name==="body")Z=Z||this._tag_stack.try_pop("head");else if(ee.tag_name==="li")Z=Z||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(ee.tag_name==="dd"||ee.tag_name==="dt")Z=Z||this._tag_stack.try_pop("dt",["dl"]),Z=Z||this._tag_stack.try_pop("dd",["dl"]);else if(ee.parent.tag_name==="p"&&xe.indexOf(ee.tag_name)!==-1){var me=ee.parent.parent;(!me||ce.indexOf(me.tag_name)===-1)&&(Z=Z||this._tag_stack.try_pop("p"))}else ee.tag_name==="rp"||ee.tag_name==="rt"?(Z=Z||this._tag_stack.try_pop("rt",["ruby","rtc"]),Z=Z||this._tag_stack.try_pop("rp",["ruby","rtc"])):ee.tag_name==="optgroup"?Z=Z||this._tag_stack.try_pop("optgroup",["select"]):ee.tag_name==="option"?Z=Z||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):ee.tag_name==="colgroup"?Z=Z||this._tag_stack.try_pop("caption",["table"]):ee.tag_name==="thead"?(Z=Z||this._tag_stack.try_pop("caption",["table"]),Z=Z||this._tag_stack.try_pop("colgroup",["table"])):ee.tag_name==="tbody"||ee.tag_name==="tfoot"?(Z=Z||this._tag_stack.try_pop("caption",["table"]),Z=Z||this._tag_stack.try_pop("colgroup",["table"]),Z=Z||this._tag_stack.try_pop("thead",["table"]),Z=Z||this._tag_stack.try_pop("tbody",["table"])):ee.tag_name==="tr"?(Z=Z||this._tag_stack.try_pop("caption",["table"]),Z=Z||this._tag_stack.try_pop("colgroup",["table"]),Z=Z||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(ee.tag_name==="th"||ee.tag_name==="td")&&(Z=Z||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),Z=Z||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return ee.parent=this._tag_stack.get_parser_token(),Z}},O.exports.Beautifier=be},function(O,m,u){var x=u(6).Options;function y(L){x.call(this,L,"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"])}y.prototype=new x,O.exports.Options=y},function(O,m,u){var x=u(9).Tokenizer,y=u(9).TOKEN,L=u(13).Directives,te=u(14).TemplatablePattern,B=u(12).Pattern,M={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:y.START,RAW:y.RAW,EOF:y.EOF},W=new L(/<\!--/,/-->/),V=function(b,T){x.call(this,b,T),this._current_tag_name="";var G=new te(this._input).read_options(this._options),j=new B(this._input);if(this.__patterns={word:G.until(/[\n\r\t <]/),word_control_flow_close_excluded:G.until(/[\n\r\t <}]/),single_quote:G.until_after(/'/),double_quote:G.until_after(/"/),attribute:G.until(/[\n\r\t =>]|\/>/),element_name:G.until(/[\n\r\t >\/]/),angular_control_flow_start:j.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:j.starting_with(/{{!--/).until_after(/--}}/),handlebars:j.starting_with(/{{/).until_after(/}}/),handlebars_open:j.until(/[\n\r\t }]/),handlebars_raw_close:j.until(/}}/),comment:j.starting_with(/<!--/).until_after(/-->/),cdata:j.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:j.starting_with(/<!\[/).until_after(/]>/),processing:j.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var be=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=j.matching(be).until_after(be)}};V.prototype=new x,V.prototype._is_comment=function(b){return!1},V.prototype._is_opening=function(b){return b.type===M.TAG_OPEN||b.type===M.CONTROL_FLOW_OPEN},V.prototype._is_closing=function(b,T){return b.type===M.TAG_CLOSE&&T&&((b.text===">"||b.text==="/>")&&T.text[0]==="<"||b.text==="}}"&&T.text[0]==="{"&&T.text[1]==="{")||b.type===M.CONTROL_FLOW_CLOSE&&b.text==="}"&&T.text.endsWith("{")},V.prototype._reset=function(){this._current_tag_name=""},V.prototype._get_next_token=function(b,T){var G=null;this._readWhitespace();var j=this._input.peek();return j===null?this._create_token(M.EOF,""):(G=G||this._read_open_handlebars(j,T),G=G||this._read_attribute(j,b,T),G=G||this._read_close(j,T),G=G||this._read_script_and_style(j,b),G=G||this._read_control_flows(j,T),G=G||this._read_raw_content(j,b,T),G=G||this._read_content_word(j,T),G=G||this._read_comment_or_cdata(j),G=G||this._read_processing(j),G=G||this._read_open(j,T),G=G||this._create_token(M.UNKNOWN,this._input.next()),G)},V.prototype._read_comment_or_cdata=function(b){var T=null,G=null,j=null;if(b==="<"){var be=this._input.peek(1);be==="!"&&(G=this.__patterns.comment.read(),G?(j=W.get_directives(G),j&&j.ignore==="start"&&(G+=W.readIgnored(this._input))):G=this.__patterns.cdata.read()),G&&(T=this._create_token(M.COMMENT,G),T.directives=j)}return T},V.prototype._read_processing=function(b){var T=null,G=null,j=null;if(b==="<"){var be=this._input.peek(1);(be==="!"||be==="?")&&(G=this.__patterns.conditional_comment.read(),G=G||this.__patterns.processing.read()),G&&(T=this._create_token(M.COMMENT,G),T.directives=j)}return T},V.prototype._read_open=function(b,T){var G=null,j=null;return(!T||T.type===M.CONTROL_FLOW_OPEN)&&b==="<"&&(G=this._input.next(),this._input.peek()==="/"&&(G+=this._input.next()),G+=this.__patterns.element_name.read(),j=this._create_token(M.TAG_OPEN,G)),j},V.prototype._read_open_handlebars=function(b,T){var G=null,j=null;return(!T||T.type===M.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&b==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(G=this.__patterns.handlebars_comment.read(),G=G||this.__patterns.handlebars.read(),j=this._create_token(M.COMMENT,G)):(G=this.__patterns.handlebars_open.read(),j=this._create_token(M.TAG_OPEN,G))),j},V.prototype._read_control_flows=function(b,T){var G="",j=null;if(!this._options.templating.includes("angular"))return j;if(b==="@"){if(G=this.__patterns.angular_control_flow_start.read(),G==="")return j;for(var be=G.endsWith("(")?1:0,Ee=0;!(G.endsWith("{")&&be===Ee);){var xe=this._input.next();if(xe===null)break;xe==="("?be++:xe===")"&&Ee++,G+=xe}j=this._create_token(M.CONTROL_FLOW_OPEN,G)}else b==="}"&&T&&T.type===M.CONTROL_FLOW_OPEN&&(G=this._input.next(),j=this._create_token(M.CONTROL_FLOW_CLOSE,G));return j},V.prototype._read_close=function(b,T){var G=null,j=null;return T&&T.type===M.TAG_OPEN&&(T.text[0]==="<"&&(b===">"||b==="/"&&this._input.peek(1)===">")?(G=this._input.next(),b==="/"&&(G+=this._input.next()),j=this._create_token(M.TAG_CLOSE,G)):T.text[0]==="{"&&b==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),j=this._create_token(M.TAG_CLOSE,"}}"))),j},V.prototype._read_attribute=function(b,T,G){var j=null,be="";if(G&&G.text[0]==="<")if(b==="=")j=this._create_token(M.EQUALS,this._input.next());else if(b==='"'||b==="'"){var Ee=this._input.next();b==='"'?Ee+=this.__patterns.double_quote.read():Ee+=this.__patterns.single_quote.read(),j=this._create_token(M.VALUE,Ee)}else be=this.__patterns.attribute.read(),be&&(T.type===M.EQUALS?j=this._create_token(M.VALUE,be):j=this._create_token(M.ATTRIBUTE,be));return j},V.prototype._is_content_unformatted=function(b){return this._options.void_elements.indexOf(b)===-1&&(this._options.content_unformatted.indexOf(b)!==-1||this._options.unformatted.indexOf(b)!==-1)},V.prototype._read_raw_content=function(b,T,G){var j="";if(G&&G.text[0]==="{")j=this.__patterns.handlebars_raw_close.read();else if(T.type===M.TAG_CLOSE&&T.opened.text[0]==="<"&&T.text[0]!=="/"){var be=T.opened.text.substr(1).toLowerCase();this._is_content_unformatted(be)&&(j=this._input.readUntil(new RegExp("</"+be+"[\\n\\r\\t ]*?>","ig")))}return j?this._create_token(M.TEXT,j):null},V.prototype._read_script_and_style=function(b,T){if(T.type===M.TAG_CLOSE&&T.opened.text[0]==="<"&&T.text[0]!=="/"){var G=T.opened.text.substr(1).toLowerCase();if(G==="script"||G==="style"){var j=this._read_comment_or_cdata(b);if(j)return j.type=M.TEXT,j;var be=this._input.readUntil(new RegExp("</"+G+"[\\n\\r\\t ]*?>","ig"));if(be)return this._create_token(M.TEXT,be)}}return null},V.prototype._read_content_word=function(b,T){var G="";return this._options.unformatted_content_delimiter&&b===this._options.unformatted_content_delimiter[0]&&(G=this.__patterns.unformatted_content_delimiter.read()),G||(G=T&&T.type===M.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),G?this._create_token(M.TEXT,G):null},O.exports.Tokenizer=V,O.exports.TOKEN=M}],pe={};function a(O){var m=pe[O];if(m!==void 0)return m.exports;var u=pe[O]={exports:{}};return S[O](u,u.exports,a),u.exports}var C=a(18);Q=C})();var ye=Q;if(1)z=[h,h(58553),h(87804)],N=function(S){var pe=h(58553),a=h(87804);return{html_beautify:function(C,O){return ye(C,O,pe.js_beautify,a.css_beautify)}}}.apply(He,z),N!==void 0&&(Gt.exports=N);else var U,H})()},58553:function(Gt,He){var h,z;(function(){var N;(function(){"use strict";var ye=[function(pe,a,C){var O=C(1).Beautifier,m=C(5).Options;function u(x,y){var L=new O(x,y);return L.beautify()}pe.exports=u,pe.exports.defaultOptions=function(){return new m}},function(pe,a,C){var O=C(2).Output,m=C(3).Token,u=C(4),x=C(5).Options,y=C(7).Tokenizer,L=C(7).line_starters,te=C(7).positionable_operators,B=C(7).TOKEN;function M(E,K){return K.indexOf(E)!==-1}function W(E){return E.replace(/^\s+/g,"")}function V(E){for(var K={},de=0;de<E.length;de++)K[E[de].replace(/-/g,"_")]=E[de];return K}function b(E,K){return E&&E.type===B.RESERVED&&E.text===K}function T(E,K){return E&&E.type===B.RESERVED&&M(E.text,K)}var G=["case","return","do","if","throw","else","await","break","continue","async"],j=["before-newline","after-newline","preserve-newline"],be=V(j),Ee=[be.before_newline,be.preserve_newline],xe={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function ce(E,K){K.multiline_frame||K.mode===xe.ForInitializer||K.mode===xe.Conditional||E.remove_indent(K.start_line_index)}function ee(E){E=E.replace(u.allLineBreaks,`
`);for(var K=[],de=E.indexOf(`
`);de!==-1;)K.push(E.substring(0,de)),E=E.substring(de+1),de=E.indexOf(`
`);return E.length&&K.push(E),K}function Z(E){return E===xe.ArrayLiteral}function me(E){return M(E,[xe.Expression,xe.ForInitializer,xe.Conditional])}function P(E,K){for(var de=0;de<E.length;de++){var Ne=E[de].trim();if(Ne.charAt(0)!==K)return!1}return!0}function se(E,K){for(var de=0,Ne=E.length,Ue;de<Ne;de++)if(Ue=E[de],Ue&&Ue.indexOf(K)!==0)return!1;return!0}function X(E,K){K=K||{},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 x(K)}X.prototype.create_flags=function(E,K){var de=0;E&&(de=E.indentation_level,!this._output.just_added_newline()&&E.line_indent_level>de&&(de=E.line_indent_level));var Ne={mode:K,parent:E,last_token:E?E.last_token:new m(B.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:de,alignment:0,line_indent_level:E?E.line_indent_level:de,start_line_index:this._output.get_line_number(),ternary_depth:0};return Ne},X.prototype._reset=function(E){var K=E.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new O(this._options,K),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(xe.BlockStatement);var de=new y(E,this._options);return this._tokens=de.tokenize(),E},X.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var E,K=this._reset(this._source_text),de=this._options.eol;this._options.eol==="auto"&&(de=`
`,K&&u.lineBreak.test(K||"")&&(de=K.match(u.lineBreak)[0]));for(var Ne=this._tokens.next();Ne;)this.handle_token(Ne),this._last_last_text=this._flags.last_token.text,this._flags.last_token=Ne,Ne=this._tokens.next();return E=this._output.get_code(de),E},X.prototype.handle_token=function(E,K){E.type===B.START_EXPR?this.handle_start_expr(E):E.type===B.END_EXPR?this.handle_end_expr(E):E.type===B.START_BLOCK?this.handle_start_block(E):E.type===B.END_BLOCK?this.handle_end_block(E):E.type===B.WORD?this.handle_word(E):E.type===B.RESERVED?this.handle_word(E):E.type===B.SEMICOLON?this.handle_semicolon(E):E.type===B.STRING?this.handle_string(E):E.type===B.EQUALS?this.handle_equals(E):E.type===B.OPERATOR?this.handle_operator(E):E.type===B.COMMA?this.handle_comma(E):E.type===B.BLOCK_COMMENT?this.handle_block_comment(E,K):E.type===B.COMMENT?this.handle_comment(E,K):E.type===B.DOT?this.handle_dot(E):E.type===B.EOF?this.handle_eof(E):E.type===B.UNKNOWN?this.handle_unknown(E,K):this.handle_unknown(E,K)},X.prototype.handle_whitespace_and_comments=function(E,K){var de=E.newlines,Ne=this._options.keep_array_indentation&&Z(this._flags.mode);if(E.comments_before)for(var Ue=E.comments_before.next();Ue;)this.handle_whitespace_and_comments(Ue,K),this.handle_token(Ue,K),Ue=E.comments_before.next();if(Ne)for(var ke=0;ke<de;ke+=1)this.print_newline(ke>0,K);else if(this._options.max_preserve_newlines&&de>this._options.max_preserve_newlines&&(de=this._options.max_preserve_newlines),this._options.preserve_newlines&&de>1){this.print_newline(!1,K);for(var Ve=1;Ve<de;Ve+=1)this.print_newline(!0,K)}};var v=["async","break","continue","return","throw","yield"];X.prototype.allow_wrap_or_preserved_newline=function(E,K){if(K=K===void 0?!1:K,!this._output.just_added_newline()){var de=this._options.preserve_newlines&&E.newlines||K,Ne=M(this._flags.last_token.text,te)||M(E.text,te);if(Ne){var Ue=M(this._flags.last_token.text,te)&&M(this._options.operator_position,Ee)||M(E.text,te);de=de&&Ue}if(de)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(T(this._flags.last_token,v))return;this._output.set_wrap_point()}}},X.prototype.print_newline=function(E,K){if(!K&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==B.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var de=this._tokens.peek();this._flags.mode===xe.Statement&&!(this._flags.if_block&&b(de,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(E)&&(this._flags.multiline_frame=!0)},X.prototype.print_token_line_indentation=function(E){this._output.just_added_newline()&&(this._options.keep_array_indentation&&E.newlines&&(E.text==="["||Z(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))},X.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===B.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var K=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(K),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)},X.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},X.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))},X.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)},X.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===xe.Statement&&ce(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},X.prototype.start_of_object_property=function(){return this._flags.parent.mode===xe.ObjectLiteral&&this._flags.mode===xe.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||T(this._flags.last_token,["get","set"]))},X.prototype.start_of_statement=function(E){var K=!1;return K=K||T(this._flags.last_token,["var","let","const"])&&E.type===B.WORD,K=K||b(this._flags.last_token,"do"),K=K||!(this._flags.parent.mode===xe.ObjectLiteral&&this._flags.mode===xe.Statement)&&T(this._flags.last_token,v)&&!E.newlines,K=K||b(this._flags.last_token,"else")&&!(b(E,"if")&&!E.comments_before),K=K||this._flags.last_token.type===B.END_EXPR&&(this._previous_flags.mode===xe.ForInitializer||this._previous_flags.mode===xe.Conditional),K=K||this._flags.last_token.type===B.WORD&&this._flags.mode===xe.BlockStatement&&!this._flags.in_case&&!(E.text==="--"||E.text==="++")&&this._last_last_text!=="function"&&E.type!==B.WORD&&E.type!==B.RESERVED,K=K||this._flags.mode===xe.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||T(this._flags.last_token,["get","set"])),K?(this.set_mode(xe.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},X.prototype.handle_start_expr=function(E){this.start_of_statement(E)||this.handle_whitespace_and_comments(E);var K=xe.Expression;if(E.text==="["){if(this._flags.last_token.type===B.WORD||this._flags.last_token.text===")"){T(this._flags.last_token,L)&&(this._output.space_before_token=!0),this.print_token(E),this.set_mode(K),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}K=xe.ArrayLiteral,Z(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()),M(this._flags.last_token.type,[B.START_EXPR,B.END_EXPR,B.WORD,B.OPERATOR,B.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===B.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,K=xe.ForInitializer):M(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,K=xe.Conditional):M(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:(M(this._flags.last_token.text,L)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===B.EQUALS||this._flags.last_token.type===B.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(E);else if(this._flags.last_token.type===B.WORD){this._output.space_before_token=!1;var de=this._tokens.peek(-3);if(this._options.space_after_named_function&&de){var Ne=this._tokens.peek(-4);T(de,["async","function"])||de.text==="*"&&T(Ne,["async","function"])?this._output.space_before_token=!0:this._flags.mode===xe.ObjectLiteral?(de.text==="{"||de.text===","||de.text==="*"&&(Ne.text==="{"||Ne.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===B.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(M(this._last_last_text,["function","yield"])||this._flags.mode===xe.ObjectLiteral&&M(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===B.START_BLOCK?this.print_newline():(this._flags.last_token.type===B.END_EXPR||this._flags.last_token.type===B.START_EXPR||this._flags.last_token.type===B.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===B.COMMA)&&this.allow_wrap_or_preserved_newline(E,E.newlines),this.print_token(E),this.set_mode(K),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},X.prototype.handle_end_expr=function(E){for(;this._flags.mode===xe.Statement;)this.restore_mode();this.handle_whitespace_and_comments(E),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(E,E.text==="]"&&Z(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===B.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(),ce(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===xe.Conditional&&(this._previous_flags.mode=xe.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},X.prototype.handle_start_block=function(E){this.handle_whitespace_and_comments(E);var K=this._tokens.peek(),de=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===B.END_EXPR?(this.set_mode(xe.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(xe.BlockStatement):de&&(M(de.text,[":",","])&&M(K.type,[B.STRING,B.WORD,B.RESERVED])||M(K.text,["get","set","..."])&&M(de.type,[B.WORD,B.RESERVED]))?M(this._last_last_text,["class","interface"])&&!M(de.text,[":",","])?this.set_mode(xe.BlockStatement):this.set_mode(xe.ObjectLiteral):this._flags.last_token.type===B.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(xe.BlockStatement):M(this._flags.last_token.type,[B.EQUALS,B.START_EXPR,B.COMMA,B.OPERATOR])||T(this._flags.last_token,["return","throw","import","default"])?this.set_mode(xe.ObjectLiteral):this.set_mode(xe.BlockStatement),this._flags.last_token&&T(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var Ne=!K.comments_before&&K.text==="}",Ue=Ne&&this._flags.last_word==="function"&&this._flags.last_token.type===B.END_EXPR;if(this._options.brace_preserve_inline){var ke=0,Ve=null;this._flags.inline_frame=!0;do if(ke+=1,Ve=this._tokens.peek(ke-1),Ve.newlines){this._flags.inline_frame=!1;break}while(Ve.type!==B.EOF&&!(Ve.type===B.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!==B.OPERATOR&&(Ue||this._flags.last_token.type===B.EQUALS||T(this._flags.last_token,G)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(Z(this._previous_flags.mode)&&(this._flags.last_token.type===B.START_EXPR||this._flags.last_token.type===B.COMMA)&&((this._flags.last_token.type===B.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===B.COMMA||this._flags.last_token.type===B.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!==B.OPERATOR&&this._flags.last_token.type!==B.START_EXPR&&(M(this._flags.last_token.type,[B.START_BLOCK,B.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(E),this.indent(),!Ne&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},X.prototype.handle_end_block=function(E){for(this.handle_whitespace_and_comments(E);this._flags.mode===xe.Statement;)this.restore_mode();var K=this._flags.last_token.type===B.START_BLOCK;this._flags.inline_frame&&!K?this._output.space_before_token=!0:this._options.brace_style==="expand"?K||this.print_newline():K||(Z(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)},X.prototype.handle_word=function(E){if(E.type===B.RESERVED){if(M(E.text,["set","get"])&&this._flags.mode!==xe.ObjectLiteral)E.type=B.WORD;else if(E.text==="import"&&M(this._tokens.peek().text,["(","."]))E.type=B.WORD;else if(M(E.text,["as","from"])&&!this._flags.import_block)E.type=B.WORD;else if(this._flags.mode===xe.ObjectLiteral){var K=this._tokens.peek();K.text===":"&&(E.type=B.WORD)}}if(this.start_of_statement(E)?T(this._flags.last_token,["var","let","const"])&&E.type===B.WORD&&(this._flags.declaration_statement=!0):E.newlines&&!me(this._flags.mode)&&(this._flags.last_token.type!==B.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==B.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(b(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&&b(E,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===xe.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===B.COMMA||this._flags.last_token.type===B.START_EXPR||this._flags.last_token.type===B.EQUALS||this._flags.last_token.type===B.OPERATOR)&&!this.start_of_object_property()&&!(M(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===xe.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(E),b(E,"function")){(M(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(M(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===B.OPERATOR))&&!this._output.just_added_blankline()&&!E.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===B.RESERVED||this._flags.last_token.type===B.WORD?T(this._flags.last_token,["get","set","new","export"])||T(this._flags.last_token,v)?this._output.space_before_token=!0:b(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===B.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(me(this._flags.mode)||Z(this._flags.mode))||this.print_newline(),this.print_token(E),this._flags.last_word=E.text;return}var de="NONE";if(this._flags.last_token.type===B.END_BLOCK?this._previous_flags.inline_frame?de="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?de="NEWLINE":(de="SPACE",this._output.space_before_token=!0):de="NEWLINE":this._flags.last_token.type===B.SEMICOLON&&this._flags.mode===xe.BlockStatement?de="NEWLINE":this._flags.last_token.type===B.SEMICOLON&&me(this._flags.mode)?de="SPACE":this._flags.last_token.type===B.STRING?de="NEWLINE":this._flags.last_token.type===B.RESERVED||this._flags.last_token.type===B.WORD||this._flags.last_token.text==="*"&&(M(this._last_last_text,["function","yield"])||this._flags.mode===xe.ObjectLiteral&&M(this._last_last_text,["{",","]))?de="SPACE":this._flags.last_token.type===B.START_BLOCK?this._flags.inline_frame?de="SPACE":de="NEWLINE":this._flags.last_token.type===B.END_EXPR&&(this._output.space_before_token=!0,de="NEWLINE"),T(E,L)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?de="SPACE":de="NEWLINE"),T(E,["else","catch","finally"]))if((!(this._flags.last_token.type===B.END_BLOCK&&this._previous_flags.mode===xe.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 Ne=this._output.current_line;Ne.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else de==="NEWLINE"?T(this._flags.last_token,G)?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!==B.END_EXPR?(this._flags.last_token.type!==B.START_EXPR||!T(E,["var","let","const"]))&&this._flags.last_token.text!==":"&&(b(E,"if")&&b(E.previous,"else")?this._output.space_before_token=!0:this.print_newline()):T(E,L)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&Z(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():de==="SPACE"&&(this._output.space_before_token=!0);E.previous&&(E.previous.type===B.WORD||E.previous.type===B.RESERVED)&&(this._output.space_before_token=!0),this.print_token(E),this._flags.last_word=E.text,E.type===B.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&&b(E,"from")&&(this._flags.import_block=!1))},X.prototype.handle_semicolon=function(E){this.start_of_statement(E)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(E);for(var K=this._tokens.peek();this._flags.mode===xe.Statement&&!(this._flags.if_block&&b(K,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(E)},X.prototype.handle_string=function(E){E.text.startsWith("`")&&E.newlines===0&&E.whitespace_before===""&&(E.previous.text===")"||this._flags.last_token.type===B.WORD)||(this.start_of_statement(E)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(E),this._flags.last_token.type===B.RESERVED||this._flags.last_token.type===B.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===B.COMMA||this._flags.last_token.type===B.START_EXPR||this._flags.last_token.type===B.EQUALS||this._flags.last_token.type===B.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(E):E.text.startsWith("`")&&this._flags.last_token.type===B.END_EXPR&&(E.previous.text==="]"||E.previous.text===")")&&E.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(E)},X.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},X.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?(me(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===xe.ObjectLiteral||this._flags.mode===xe.Statement&&this._flags.parent.mode===xe.ObjectLiteral?(this._flags.mode===xe.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(E)},X.prototype.handle_operator=function(E){var K=E.text==="*"&&(T(this._flags.last_token,["function","yield"])||M(this._flags.last_token.type,[B.START_BLOCK,B.COMMA,B.END_BLOCK,B.SEMICOLON])),de=M(E.text,["-","+"])&&(M(this._flags.last_token.type,[B.START_BLOCK,B.START_EXPR,B.EQUALS,B.OPERATOR])||M(this._flags.last_token.text,L)||this._flags.last_token.text===",");if(!this.start_of_statement(E)){var Ne=!K;this.handle_whitespace_and_comments(E,Ne)}if(E.text==="*"&&this._flags.last_token.type===B.DOT){this.print_token(E);return}if(E.text==="::"){this.print_token(E);return}if(M(E.text,["-","+"])&&this.start_of_object_property()){this.print_token(E);return}if(this._flags.last_token.type===B.OPERATOR&&M(this._options.operator_position,Ee)&&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!==B.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var Ue=!0,ke=!0,Ve=!1;if(E.text===":"?this._flags.ternary_depth===0?Ue=!1:(this._flags.ternary_depth-=1,Ve=!0):E.text==="?"&&(this._flags.ternary_depth+=1),!de&&!K&&this._options.preserve_newlines&&M(E.text,te)){var ht=E.text===":",pt=ht&&Ve,st=ht&&!Ve;switch(this._options.operator_position){case be.before_newline:this._output.space_before_token=!st,this.print_token(E),(!ht||pt)&&this.allow_wrap_or_preserved_newline(E),this._output.space_before_token=!0;return;case be.after_newline:this._output.space_before_token=!0,!ht||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 be.preserve_newline:st||this.allow_wrap_or_preserved_newline(E),Ue=!(this._output.just_added_newline()||st),this._output.space_before_token=Ue,this.print_token(E),this._output.space_before_token=!0;return}}if(K){this.allow_wrap_or_preserved_newline(E),Ue=!1;var Ft=this._tokens.peek();ke=Ft&&M(Ft.type,[B.WORD,B.RESERVED])}else if(E.text==="...")this.allow_wrap_or_preserved_newline(E),Ue=this._flags.last_token.type===B.START_BLOCK,ke=!1;else if(M(E.text,["--","++","!","~"])||de){if((this._flags.last_token.type===B.COMMA||this._flags.last_token.type===B.START_EXPR)&&this.allow_wrap_or_preserved_newline(E),Ue=!1,ke=!1,E.newlines&&(E.text==="--"||E.text==="++"||E.text==="~")){var Yt=T(this._flags.last_token,G)&&E.newlines;Yt&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(Yt,!0)}this._flags.last_token.text===";"&&me(this._flags.mode)&&(Ue=!0),this._flags.last_token.type===B.RESERVED?Ue=!0:this._flags.last_token.type===B.END_EXPR?Ue=!(this._flags.last_token.text==="]"&&(E.text==="--"||E.text==="++")):this._flags.last_token.type===B.OPERATOR&&(Ue=M(E.text,["--","-","++","+"])&&M(this._flags.last_token.text,["--","-","++","+"]),M(E.text,["+","-"])&&M(this._flags.last_token.text,["--","++"])&&(ke=!0)),(this._flags.mode===xe.BlockStatement&&!this._flags.inline_frame||this._flags.mode===xe.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||Ue,this.print_token(E),this._output.space_before_token=ke},X.prototype.handle_block_comment=function(E,K){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,K),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,K)},X.prototype.print_block_commment=function(E,K){var de=ee(E.text),Ne,Ue=!1,ke=!1,Ve=E.whitespace_before,ht=Ve.length;if(this.print_newline(!1,K),this.print_token_line_indentation(E),this._output.add_token(de[0]),this.print_newline(!1,K),de.length>1){for(de=de.slice(1),Ue=P(de,"*"),ke=se(de,Ve),Ue&&(this._flags.alignment=1),Ne=0;Ne<de.length;Ne++)Ue?(this.print_token_line_indentation(E),this._output.add_token(W(de[Ne]))):ke&&de[Ne]?(this.print_token_line_indentation(E),this._output.add_token(de[Ne].substring(ht))):(this._output.current_line.set_indent(-1),this._output.add_token(de[Ne])),this.print_newline(!1,K);this._flags.alignment=0}},X.prototype.handle_comment=function(E,K){E.newlines?this.print_newline(!1,K):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(E),this.print_newline(!1,K)},X.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,G)?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)},X.prototype.handle_unknown=function(E,K){this.print_token(E),E.text[E.text.length-1]===`
`&&this.print_newline(!1,K)},X.prototype.handle_eof=function(E){for(;this._flags.mode===xe.Statement;)this.restore_mode();this.handle_whitespace_and_comments(E)},pe.exports.Beautifier=X},function(pe){function a(m){this.__parent=m,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}a.prototype.clone_empty=function(){var m=new a(this.__parent);return m.set_indent(this.__indent_count,this.__alignment_count),m},a.prototype.item=function(m){return m<0?this.__items[this.__items.length+m]:this.__items[m]},a.prototype.has_match=function(m){for(var u=this.__items.length-1;u>=0;u--)if(this.__items[u].match(m))return!0;return!1},a.prototype.set_indent=function(m,u){this.is_empty()&&(this.__indent_count=m||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 m=this.__parent.current_line;return m.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),m.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),m.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,m.__items[0]===" "&&(m.__items.splice(0,1),m.__character_count-=1),!0}return!1},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(m){this.__items.push(m);var u=m.lastIndexOf(`
`);u!==-1?this.__character_count=m.length-u:this.__character_count+=m.length},a.prototype.pop=function(){var m=null;return this.is_empty()||(m=this.__items.pop(),this.__character_count-=m.length),m},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 m="";return this.is_empty()?this.__parent.indent_empty_lines&&(m=this.__parent.get_indent_string(this.__indent_count)):(m=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),m+=this.__items.join("")),m};function C(m,u){this.__cache=[""],this.__indent_size=m.indent_size,this.__indent_string=m.indent_char,m.indent_with_tabs||(this.__indent_string=new Array(m.indent_size+1).join(m.indent_char)),u=u||"",m.indent_level>0&&(u=new Array(m.indent_level+1).join(this.__indent_string)),this.__base_string=u,this.__base_string_length=u.length}C.prototype.get_indent_size=function(m,u){var x=this.__base_string_length;return u=u||0,m<0&&(x=0),x+=m*this.__indent_size,x+=u,x},C.prototype.get_indent_string=function(m,u){var x=this.__base_string;return u=u||0,m<0&&(m=0,x=""),u+=m*this.__indent_size,this.__ensure_cache(u),x+=this.__cache[u],x},C.prototype.__ensure_cache=function(m){for(;m>=this.__cache.length;)this.__add_column()},C.prototype.__add_column=function(){var m=this.__cache.length,u=0,x="";this.__indent_size&&m>=this.__indent_size&&(u=Math.floor(m/this.__indent_size),m-=u*this.__indent_size,x=new Array(u+1).join(this.__indent_string)),m&&(x+=new Array(m+1).join(" ")),this.__cache.push(x)};function O(m,u){this.__indent_cache=new C(m,u),this.raw=!1,this._end_with_newline=m.end_with_newline,this.indent_size=m.indent_size,this.wrap_line_length=m.wrap_line_length,this.indent_empty_lines=m.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new a(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}O.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},O.prototype.get_line_number=function(){return this.__lines.length},O.prototype.get_indent_string=function(m,u){return this.__indent_cache.get_indent_string(m,u)},O.prototype.get_indent_size=function(m,u){return this.__indent_cache.get_indent_size(m,u)},O.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},O.prototype.add_new_line=function(m){return this.is_empty()||!m&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},O.prototype.get_code=function(m){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 x=this.__lines.join(`
`);return m!==`
`&&(x=x.replace(/[\n]/g,m)),x},O.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},O.prototype.set_indent=function(m,u){return m=m||0,u=u||0,this.next_line.set_indent(m,u),this.__lines.length>1?(this.current_line.set_indent(m,u),!0):(this.current_line.set_indent(),!1)},O.prototype.add_raw_token=function(m){for(var u=0;u<m.newlines;u++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(m.whitespace_before),this.current_line.push(m.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},O.prototype.add_token=function(m){this.__add_space_before_token(),this.current_line.push(m),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},O.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(" "))},O.prototype.remove_indent=function(m){for(var u=this.__lines.length;m<u;)this.__lines[m]._remove_indent(),m++;this.current_line._remove_wrap_indent()},O.prototype.trim=function(m){for(m=m===void 0?!1:m,this.current_line.trim();m&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},O.prototype.just_added_newline=function(){return this.current_line.is_empty()},O.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},O.prototype.ensure_empty_line_above=function(m,u){for(var x=this.__lines.length-2;x>=0;){var y=this.__lines[x];if(y.is_empty())break;if(y.item(0).indexOf(m)!==0&&y.item(-1)!==u){this.__lines.splice(x+1,0,new a(this)),this.previous_line=this.__lines[this.__lines.length-2];break}x--}},pe.exports.Output=O},function(pe){function a(C,O,m,u){this.type=C,this.text=O,this.comments_before=null,this.newlines=m||0,this.whitespace_before=u||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}pe.exports.Token=a},function(pe,a){var C="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",O="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",m="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",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",x="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",y="(?:"+x+"|["+C+m+"])",L="(?:"+x+"|["+O+m+u+"])*";a.identifier=new RegExp(y+L,"g"),a.identifierStart=new RegExp(y),a.identifierMatch=new RegExp("(?:"+x+"|["+O+m+u+"])+");var te=/[\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(pe,a,C){var O=C(6).Options,m=["before-newline","after-newline","preserve-newline"];function u(x){O.call(this,x,"js");var y=this.raw_options.brace_style||null;y==="expand-strict"?this.raw_options.brace_style="expand":y==="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 L=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var te=0;te<L.length;te++)L[te]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=L[te];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",m),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}u.prototype=new O,pe.exports.Options=u},function(pe){function a(m,u){this.raw_options=C(m,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(m,u){var x=this.raw_options[m],y=u||[];return typeof x=="object"?x!==null&&typeof x.concat=="function"&&(y=x.concat()):typeof x=="string"&&(y=x.split(/[^a-zA-Z0-9_\/\-]+/)),y},a.prototype._get_boolean=function(m,u){var x=this.raw_options[m],y=x===void 0?!!u:!!x;return y},a.prototype._get_characters=function(m,u){var x=this.raw_options[m],y=u||"";return typeof x=="string"&&(y=x.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),y},a.prototype._get_number=function(m,u){var x=this.raw_options[m];u=parseInt(u,10),isNaN(u)&&(u=0);var y=parseInt(x,10);return isNaN(y)&&(y=u),y},a.prototype._get_selection=function(m,u,x){var y=this._get_selection_list(m,u,x);if(y.length!==1)throw new Error("Invalid Option Value: The option '"+m+`' can only be one of the following values:
`+u+`
You passed in: '`+this.raw_options[m]+"'");return y[0]},a.prototype._get_selection_list=function(m,u,x){if(!u||u.length===0)throw new Error("Selection list cannot be empty.");if(x=x||[u[0]],!this._is_valid_selection(x,u))throw new Error("Invalid Default Value!");var y=this._get_array(m,x);if(!this._is_valid_selection(y,u))throw new Error("Invalid Option Value: The option '"+m+`' can contain only the following values:
`+u+`
You passed in: '`+this.raw_options[m]+"'");return y},a.prototype._is_valid_selection=function(m,u){return m.length&&u.length&&!m.some(function(x){return u.indexOf(x)===-1})};function C(m,u){var x={};m=O(m);var y;for(y in m)y!==u&&(x[y]=m[y]);if(u&&m[u])for(y in m[u])x[y]=m[u][y];return x}function O(m){var u={},x;for(x in m){var y=x.replace(/-/g,"_");u[y]=m[x]}return u}pe.exports.Options=a,pe.exports.normalizeOpts=O,pe.exports.mergeOpts=C},function(pe,a,C){var O=C(8).InputScanner,m=C(9).Tokenizer,u=C(9).TOKEN,x=C(13).Directives,y=C(4),L=C(12).Pattern,te=C(14).TemplatablePattern;function B(P,se){return se.indexOf(P)!==-1}var M={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},W=new x(/\/\*/,/\*\//),V=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,b=/[0-9]/,T=/[^\d\.]/,G=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),j=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";j=j.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),j="\\?\\.(?!\\d) "+j,j=j.replace(/ /g,"|");var be=new RegExp(j),Ee="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),xe=Ee.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),ce=new RegExp("^(?:"+xe.join("|")+")$"),ee,Z=function(P,se){m.call(this,P,se),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var X=new L(this._input),v=new te(this._input).read_options(this._options);this.__patterns={template:v,identifier:v.starting_with(y.identifier).matching(y.identifierMatch),number:X.matching(V),punct:X.matching(be),comment:X.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:X.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:X.matching(/<!--/),html_comment_end:X.matching(/-->/),include:X.starting_with(/#include/).until_after(y.lineBreak),shebang:X.starting_with(/#!/).until_after(y.lineBreak),xml:X.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:v.until(/['\\\n\r\u2028\u2029]/),double_quote:v.until(/["\\\n\r\u2028\u2029]/),template_text:v.until(/[`\\$]/),template_expression:v.until(/[`}\\]/)}};Z.prototype=new m,Z.prototype._is_comment=function(P){return P.type===M.COMMENT||P.type===M.BLOCK_COMMENT||P.type===M.UNKNOWN},Z.prototype._is_opening=function(P){return P.type===M.START_BLOCK||P.type===M.START_EXPR},Z.prototype._is_closing=function(P,se){return(P.type===M.END_BLOCK||P.type===M.END_EXPR)&&se&&(P.text==="]"&&se.text==="["||P.text===")"&&se.text==="("||P.text==="}"&&se.text==="{")},Z.prototype._reset=function(){ee=!1},Z.prototype._get_next_token=function(P,se){var X=null;this._readWhitespace();var v=this._input.peek();return v===null?this._create_token(M.EOF,""):(X=X||this._read_non_javascript(v),X=X||this._read_string(v),X=X||this._read_pair(v,this._input.peek(1)),X=X||this._read_word(P),X=X||this._read_singles(v),X=X||this._read_comment(v),X=X||this._read_regexp(v,P),X=X||this._read_xml(v,P),X=X||this._read_punctuation(),X=X||this._create_token(M.UNKNOWN,this._input.next()),X)},Z.prototype._read_word=function(P){var se;if(se=this.__patterns.identifier.read(),se!=="")return se=se.replace(y.allLineBreaks,`
`),!(P.type===M.DOT||P.type===M.RESERVED&&(P.text==="set"||P.text==="get"))&&ce.test(se)?(se==="in"||se==="of")&&(P.type===M.WORD||P.type===M.STRING)?this._create_token(M.OPERATOR,se):this._create_token(M.RESERVED,se):this._create_token(M.WORD,se);if(se=this.__patterns.number.read(),se!=="")return this._create_token(M.WORD,se)},Z.prototype._read_singles=function(P){var se=null;return P==="("||P==="["?se=this._create_token(M.START_EXPR,P):P===")"||P==="]"?se=this._create_token(M.END_EXPR,P):P==="{"?se=this._create_token(M.START_BLOCK,P):P==="}"?se=this._create_token(M.END_BLOCK,P):P===";"?se=this._create_token(M.SEMICOLON,P):P==="."&&T.test(this._input.peek(1))?se=this._create_token(M.DOT,P):P===","&&(se=this._create_token(M.COMMA,P)),se&&this._input.next(),se},Z.prototype._read_pair=function(P,se){var X=null;return P==="#"&&se==="{"&&(X=this._create_token(M.START_BLOCK,P+se)),X&&(this._input.next(),this._input.next()),X},Z.prototype._read_punctuation=function(){var P=this.__patterns.punct.read();if(P!=="")return P==="="?this._create_token(M.EQUALS,P):P==="?."?this._create_token(M.DOT,P):this._create_token(M.OPERATOR,P)},Z.prototype._read_non_javascript=function(P){var se="";if(P==="#"){if(this._is_first_token()&&(se=this.__patterns.shebang.read(),se))return this._create_token(M.UNKNOWN,se.trim()+`
`);if(se=this.__patterns.include.read(),se)return this._create_token(M.UNKNOWN,se.trim()+`
`);P=this._input.next();var X="#";if(this._input.hasNext()&&this._input.testChar(b)){do P=this._input.next(),X+=P;while(this._input.hasNext()&&P!=="#"&&P!=="=");return P==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(X+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(X+="{}",this._input.next(),this._input.next())),this._create_token(M.WORD,X)}this._input.back()}else if(P==="<"&&this._is_first_token()){if(se=this.__patterns.html_comment_start.read(),se){for(;this._input.hasNext()&&!this._input.testChar(y.newline);)se+=this._input.next();return ee=!0,this._create_token(M.COMMENT,se)}}else if(ee&&P==="-"&&(se=this.__patterns.html_comment_end.read(),se))return ee=!1,this._create_token(M.COMMENT,se);return null},Z.prototype._read_comment=function(P){var se=null;if(P==="/"){var X="";if(this._input.peek(1)==="*"){X=this.__patterns.block_comment.read();var v=W.get_directives(X);v&&v.ignore==="start"&&(X+=W.readIgnored(this._input)),X=X.replace(y.allLineBreaks,`
`),se=this._create_token(M.BLOCK_COMMENT,X),se.directives=v}else this._input.peek(1)==="/"&&(X=this.__patterns.comment.read(),se=this._create_token(M.COMMENT,X))}return se},Z.prototype._read_string=function(P){if(P==="`"||P==="'"||P==='"'){var se=this._input.next();return this.has_char_escapes=!1,P==="`"?se+=this._read_string_recursive("`",!0,"${"):se+=this._read_string_recursive(P),this.has_char_escapes&&this._options.unescape_strings&&(se=me(se)),this._input.peek()===P&&(se+=this._input.next()),se=se.replace(y.allLineBreaks,`
`),this._create_token(M.STRING,se)}return null},Z.prototype._allow_regexp_or_xml=function(P){return P.type===M.RESERVED&&B(P.text,["return","case","throw","else","do","typeof","yield"])||P.type===M.END_EXPR&&P.text===")"&&P.opened.previous.type===M.RESERVED&&B(P.opened.previous.text,["if","while","for"])||B(P.type,[M.COMMENT,M.START_EXPR,M.START_BLOCK,M.START,M.END_BLOCK,M.OPERATOR,M.EQUALS,M.EOF,M.SEMICOLON,M.COMMA])},Z.prototype._read_regexp=function(P,se){if(P==="/"&&this._allow_regexp_or_xml(se)){for(var X=this._input.next(),v=!1,E=!1;this._input.hasNext()&&(v||E||this._input.peek()!==P)&&!this._input.testChar(y.newline);)X+=this._input.peek(),v?v=!1:(v=this._input.peek()==="\\",this._input.peek()==="["?E=!0:this._input.peek()==="]"&&(E=!1)),this._input.next();return this._input.peek()===P&&(X+=this._input.next(),X+=this._input.read(y.identifier)),this._create_token(M.STRING,X)}return null},Z.prototype._read_xml=function(P,se){if(this._options.e4x&&P==="<"&&this._allow_regexp_or_xml(se)){var X="",v=this.__patterns.xml.read_match();if(v){for(var E=v[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),K=E.indexOf("{")===0,de=0;v;){var Ne=!!v[1],Ue=v[2],ke=!!v[v.length-1]||Ue.slice(0,8)==="![CDATA[";if(!ke&&(Ue===E||K&&Ue.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(Ne?--de:++de),X+=v[0],de<=0)break;v=this.__patterns.xml.read_match()}return v||(X+=this._input.match(/[\s\S]*/g)[0]),X=X.replace(y.allLineBreaks,`
`),this._create_token(M.STRING,X)}}return null};function me(P){for(var se="",X=0,v=new O(P),E=null;v.hasNext();)if(E=v.match(/([\s]|[^\\]|\\\\)+/g),E&&(se+=E[0]),v.peek()==="\\"){if(v.next(),v.peek()==="x")E=v.match(/x([0-9A-Fa-f]{2})/g);else if(v.peek()==="u")E=v.match(/u([0-9A-Fa-f]{4})/g),E||(E=v.match(/u\{([0-9A-Fa-f]+)\}/g));else{se+="\\",v.hasNext()&&(se+=v.next());continue}if(!E||(X=parseInt(E[1],16),X>126&&X<=255&&E[0].indexOf("x")===0))return P;X>=0&&X<32||X>1114111?se+="\\"+E[0]:X===34||X===39||X===92?se+="\\"+String.fromCharCode(X):se+=String.fromCharCode(X)}return se}Z.prototype._read_string_recursive=function(P,se,X){var v,E;P==="'"?E=this.__patterns.single_quote:P==='"'?E=this.__patterns.double_quote:P==="`"?E=this.__patterns.template_text:P==="}"&&(E=this.__patterns.template_expression);for(var K=E.read(),de="";this._input.hasNext();){if(de=this._input.next(),de===P||!se&&y.newline.test(de)){this._input.back();break}else de==="\\"&&this._input.hasNext()?(v=this._input.peek(),v==="x"||v==="u"?this.has_char_escapes=!0:v==="\r"&&this._input.peek(1)===`
`&&this._input.next(),de+=this._input.next()):X&&(X==="${"&&de==="$"&&this._input.peek()==="{"&&(de+=this._input.next()),X===de&&(P==="`"?de+=this._read_string_recursive("}",se,"`"):de+=this._read_string_recursive("`",se,"${"),this._input.hasNext()&&(de+=this._input.next())));de+=E.read(),K+=de}return K},pe.exports.Tokenizer=Z,pe.exports.TOKEN=M,pe.exports.positionable_operators=G.slice(),pe.exports.line_starters=Ee.slice()},function(pe){var a=RegExp.prototype.hasOwnProperty("sticky");function C(O){this.__input=O||"",this.__input_length=this.__input.length,this.__position=0}C.prototype.restart=function(){this.__position=0},C.prototype.back=function(){this.__position>0&&(this.__position-=1)},C.prototype.hasNext=function(){return this.__position<this.__input_length},C.prototype.next=function(){var O=null;return this.hasNext()&&(O=this.__input.charAt(this.__position),this.__position+=1),O},C.prototype.peek=function(O){var m=null;return O=O||0,O+=this.__position,O>=0&&O<this.__input_length&&(m=this.__input.charAt(O)),m},C.prototype.__match=function(O,m){O.lastIndex=m;var u=O.exec(this.__input);return u&&!(a&&O.sticky)&&u.index!==m&&(u=null),u},C.prototype.test=function(O,m){return m=m||0,m+=this.__position,m>=0&&m<this.__input_length?!!this.__match(O,m):!1},C.prototype.testChar=function(O,m){var u=this.peek(m);return O.lastIndex=0,u!==null&&O.test(u)},C.prototype.match=function(O){var m=this.__match(O,this.__position);return m?this.__position+=m[0].length:m=null,m},C.prototype.read=function(O,m,u){var x="",y;return O&&(y=this.match(O),y&&(x+=y[0])),m&&(y||!O)&&(x+=this.readUntil(m,u)),x},C.prototype.readUntil=function(O,m){var u="",x=this.__position;O.lastIndex=this.__position;var y=O.exec(this.__input);return y?(x=y.index,m&&(x+=y[0].length)):x=this.__input_length,u=this.__input.substring(this.__position,x),this.__position=x,u},C.prototype.readUntilAfter=function(O){return this.readUntil(O,!0)},C.prototype.get_regexp=function(O,m){var u=null,x="g";return m&&a&&(x="y"),typeof O=="string"&&O!==""?u=new RegExp(O,x):O&&(u=new RegExp(O.source,x)),u},C.prototype.get_literal_regexp=function(O){return RegExp(O.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},C.prototype.peekUntilAfter=function(O){var m=this.__position,u=this.readUntilAfter(O);return this.__position=m,u},C.prototype.lookBack=function(O){var m=this.__position-1;return m>=O.length&&this.__input.substring(m-O.length,m).toLowerCase()===O},pe.exports.InputScanner=C},function(pe,a,C){var O=C(8).InputScanner,m=C(3).Token,u=C(10).TokenStream,x=C(11).WhitespacePattern,y={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},L=function(te,B){this._input=new O(te),this._options=B||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new x(this._input)};L.prototype.tokenize=function(){this._input.restart(),this.__tokens=new u,this._reset();for(var te,B=new m(y.START,""),M=null,W=[],V=new u;B.type!==y.EOF;){for(te=this._get_next_token(B,M);this._is_comment(te);)V.add(te),te=this._get_next_token(B,M);V.isEmpty()||(te.comments_before=V,V=new u),te.parent=M,this._is_opening(te)?(W.push(M),M=te):M&&this._is_closing(te,M)&&(te.opened=M,M.closed=te,M=W.pop(),te.parent=M),te.previous=B,B.next=te,this.__tokens.add(te),B=te}return this.__tokens},L.prototype._is_first_token=function(){return this.__tokens.isEmpty()},L.prototype._reset=function(){},L.prototype._get_next_token=function(te,B){this._readWhitespace();var M=this._input.read(/.+/g);return M?this._create_token(y.RAW,M):this._create_token(y.EOF,"")},L.prototype._is_comment=function(te){return!1},L.prototype._is_opening=function(te){return!1},L.prototype._is_closing=function(te,B){return!1},L.prototype._create_token=function(te,B){var M=new m(te,B,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return M},L.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},pe.exports.Tokenizer=L,pe.exports.TOKEN=y},function(pe){function a(C){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=C}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 C=null;return this.hasNext()&&(C=this.__tokens[this.__position],this.__position+=1),C},a.prototype.peek=function(C){var O=null;return C=C||0,C+=this.__position,C>=0&&C<this.__tokens_length&&(O=this.__tokens[C]),O},a.prototype.add=function(C){this.__parent_token&&(C.parent=this.__parent_token),this.__tokens.push(C),this.__tokens_length+=1},pe.exports.TokenStream=a},function(pe,a,C){var O=C(12).Pattern;function m(u,x){O.call(this,u,x),x?this._line_regexp=this._input.get_regexp(x._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}m.prototype=new O,m.prototype.__set_whitespace_patterns=function(u,x){u+="\\t ",x+="\\n\\r",this._match_pattern=this._input.get_regexp("["+u+x+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+x+"]")},m.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 x=this.__split(this._newline_regexp,u);this.newline_count=x.length-1,this.whitespace_before_token=x[this.newline_count]}return u},m.prototype.matching=function(u,x){var y=this._create();return y.__set_whitespace_patterns(u,x),y._update(),y},m.prototype._create=function(){return new m(this._input,this)},m.prototype.__split=function(u,x){u.lastIndex=0;for(var y=0,L=[],te=u.exec(x);te;)L.push(x.substring(y,te.index)),y=te.index+te[0].length,te=u.exec(x);return y<x.length?L.push(x.substring(y,x.length)):L.push(""),L},pe.exports.WhitespacePattern=m},function(pe){function a(C,O){this._input=C,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,O&&(this._starting_pattern=this._input.get_regexp(O._starting_pattern,!0),this._match_pattern=this._input.get_regexp(O._match_pattern,!0),this._until_pattern=this._input.get_regexp(O._until_pattern),this._until_after=O._until_after)}a.prototype.read=function(){var C=this._input.read(this._starting_pattern);return(!this._starting_pattern||C)&&(C+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),C},a.prototype.read_match=function(){return this._input.match(this._match_pattern)},a.prototype.until_after=function(C){var O=this._create();return O._until_after=!0,O._until_pattern=this._input.get_regexp(C),O._update(),O},a.prototype.until=function(C){var O=this._create();return O._until_after=!1,O._until_pattern=this._input.get_regexp(C),O._update(),O},a.prototype.starting_with=function(C){var O=this._create();return O._starting_pattern=this._input.get_regexp(C,!0),O._update(),O},a.prototype.matching=function(C){var O=this._create();return O._match_pattern=this._input.get_regexp(C,!0),O._update(),O},a.prototype._create=function(){return new a(this._input,this)},a.prototype._update=function(){},pe.exports.Pattern=a},function(pe){function a(C,O){C=typeof C=="string"?C:C.source,O=typeof O=="string"?O:O.source,this.__directives_block_pattern=new RegExp(C+/ beautify( \w+[:]\w+)+ /.source+O,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(C+/\sbeautify\signore:end\s/.source+O,"g")}a.prototype.get_directives=function(C){if(!C.match(this.__directives_block_pattern))return null;var O={};this.__directive_pattern.lastIndex=0;for(var m=this.__directive_pattern.exec(C);m;)O[m[1]]=m[2],m=this.__directive_pattern.exec(C);return O},a.prototype.readIgnored=function(C){return C.readUntilAfter(this.__directives_end_ignore_pattern)},pe.exports.Directives=a},function(pe,a,C){var O=C(12).Pattern,m={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function u(x,y){O.call(this,x,y),this.__template_pattern=null,this._disabled=Object.assign({},m),this._excluded=Object.assign({},m),y&&(this.__template_pattern=this._input.get_regexp(y.__template_pattern),this._excluded=Object.assign(this._excluded,y._excluded),this._disabled=Object.assign(this._disabled,y._disabled));var L=new O(x);this.__patterns={handlebars_comment:L.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:L.starting_with(/{{{/).until_after(/}}}/),handlebars:L.starting_with(/{{/).until_after(/}}/),php:L.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:L.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:L.starting_with(/{%/).until_after(/%}/),django_value:L.starting_with(/{{/).until_after(/}}/),django_comment:L.starting_with(/{#/).until_after(/#}/),smarty:L.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:L.starting_with(/{\*/).until_after(/\*}/),smarty_literal:L.starting_with(/{literal}/).until_after(/{\/literal}/)}}u.prototype=new O,u.prototype._create=function(){return new u(this._input,this)},u.prototype._update=function(){this.__set_templated_pattern()},u.prototype.disable=function(x){var y=this._create();return y._disabled[x]=!0,y._update(),y},u.prototype.read_options=function(x){var y=this._create();for(var L in m)y._disabled[L]=x.templating.indexOf(L)===-1;return y._update(),y},u.prototype.exclude=function(x){var y=this._create();return y._excluded[x]=!0,y._update(),y},u.prototype.read=function(){var x="";this._match_pattern?x=this._input.read(this._starting_pattern):x=this._input.read(this._starting_pattern,this.__template_pattern);for(var y=this._read_template();y;)this._match_pattern?y+=this._input.read(this._match_pattern):y+=this._input.readUntil(this.__template_pattern),x+=y,y=this._read_template();return this._until_after&&(x+=this._input.readUntilAfter(this._until_pattern)),x},u.prototype.__set_templated_pattern=function(){var x=[];this._disabled.php||x.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||x.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||x.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||x.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(x.push(this.__patterns.django._starting_pattern.source),x.push(this.__patterns.django_value._starting_pattern.source),x.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||x.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&x.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+x.join("|")+")")},u.prototype._read_template=function(){var x="",y=this._input.peek();if(y==="<"){var L=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&L==="?"&&(x=x||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&L==="%"&&(x=x||this.__patterns.erb.read())}else y==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(x=x||this.__patterns.handlebars_comment.read(),x=x||this.__patterns.handlebars_unescaped.read(),x=x||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(x=x||this.__patterns.django_value.read()),this._excluded.django||(x=x||this.__patterns.django_comment.read(),x=x||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(x=x||this.__patterns.smarty_comment.read(),x=x||this.__patterns.smarty_literal.read(),x=x||this.__patterns.smarty.read()));return x},pe.exports.TemplatablePattern=u}],U={};function H(pe){var a=U[pe];if(a!==void 0)return a.exports;var C=U[pe]={exports:{}};return ye[pe](C,C.exports,H),C.exports}var S=H(0);N=S})();var Q=N;h=[],z=function(){return{js_beautify:Q}}.apply(He,h),z!==void 0&&(Gt.exports=z)})()},15342:function(Gt){(function(h,z){Gt.exports=z()})(typeof self!="undefined"?self:this,function(){return function(He){var h={};function z(N){if(h[N])return h[N].exports;var Q=h[N]={i:N,l:!1,exports:{}};return He[N].call(Q.exports,Q,Q.exports,z),Q.l=!0,Q.exports}return z.m=He,z.c=h,z.d=function(N,Q,ye){z.o(N,Q)||Object.defineProperty(N,Q,{enumerable:!0,get:ye})},z.r=function(N){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(N,"__esModule",{value:!0})},z.t=function(N,Q){if(Q&1&&(N=z(N)),Q&8||Q&4&&typeof N=="object"&&N&&N.__esModule)return N;var ye=Object.create(null);if(z.r(ye),Object.defineProperty(ye,"default",{enumerable:!0,value:N}),Q&2&&typeof N!="string")for(var U in N)z.d(ye,U,function(H){return N[H]}.bind(null,U));return ye},z.n=function(N){var Q=N&&N.__esModule?function(){return N.default}:function(){return N};return z.d(Q,"a",Q),Q},z.o=function(N,Q){return Object.prototype.hasOwnProperty.call(N,Q)},z.p="",z(z.s=1)}([function(He,h,z){},function(He,h,z){"use strict";z.r(h);var N=z(0),Q=function(){function q(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 q.range=function(d,f){return f?!d||!d.loc||!f.loc||d.loc.lexer!==f.loc.lexer?null:new q(d.loc.lexer,d.loc.start,f.loc.end):d&&d.loc},q}(),ye=function(){function q(d,f){this.text=void 0,this.loc=void 0,this.text=d,this.loc=f}var l=q.prototype;return l.range=function(f,g){return new q(g,Q.range(this,f))},q}(),U=function q(l,d){this.position=void 0;var f="KaTeX parse error: "+l,g,k=d&&d.loc;if(k&&k.start<=k.end){var ae=k.lexer.input;g=k.start;var Re=k.end;g===ae.length?f+=" at end of input: ":f+=" at position "+(g+1)+": ";var Le=ae.slice(g,Re).replace(/[^]/g,"$&\u0332"),qe;g>15?qe="\u2026"+ae.slice(g-15,g):qe=ae.slice(0,g);var dt;Re+15<ae.length?dt=ae.slice(Re,Re+15)+"\u2026":dt=ae.slice(Re),f+=qe+Le+dt}var Ct=new Error(f);return Ct.name="ParseError",Ct.__proto__=q.prototype,Ct.position=g,Ct};U.prototype.__proto__=Error.prototype;var H=U,S=function(l,d){return l.indexOf(d)!==-1},pe=function(l,d){return l===void 0?d:l},a=/([A-Z])/g,C=function(l){return l.replace(a,"-$1").toLowerCase()},O={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},m=/[&><"']/g;function u(q){return String(q).replace(m,function(l){return O[l]})}var x=function q(l){return l.type==="ordgroup"||l.type==="color"?l.body.length===1?q(l.body[0]):l:l.type==="font"?q(l.body):l},y=function(l){var d=x(l);return d.type==="mathord"||d.type==="textord"||d.type==="atom"},L=function(l){if(!l)throw new Error("Expected non-null, but got "+String(l));return l},te=function(l){var d=/^\s*([^\\/#]*?)(?::|&#0*58|&#x0*3a)/i.exec(l);return d!=null?d[1]:"_relative"},B={contains:S,deflt:pe,escape:u,hyphenate:C,getBaseElem:x,isCharacterBox:y,protocolFromUrl:te},M=function(){function q(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=B.deflt(d.displayMode,!1),this.output=B.deflt(d.output,"htmlAndMathml"),this.leqno=B.deflt(d.leqno,!1),this.fleqn=B.deflt(d.fleqn,!1),this.throwOnError=B.deflt(d.throwOnError,!0),this.errorColor=B.deflt(d.errorColor,"#cc0000"),this.macros=d.macros||{},this.minRuleThickness=Math.max(0,B.deflt(d.minRuleThickness,0)),this.colorIsTextColor=B.deflt(d.colorIsTextColor,!1),this.strict=B.deflt(d.strict,"warn"),this.trust=B.deflt(d.trust,!1),this.maxSize=Math.max(0,B.deflt(d.maxSize,1/0)),this.maxExpand=Math.max(0,B.deflt(d.maxExpand,1e3))}var l=q.prototype;return l.reportNonstrict=function(f,g,k){var ae=this.strict;if(typeof ae=="function"&&(ae=ae(f,g,k)),!(!ae||ae==="ignore")){if(ae===!0||ae==="error")throw new H("LaTeX-incompatible input and strict mode is set to 'error': "+(g+" ["+f+"]"),k);ae==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(g+" ["+f+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+ae+"': "+g+" ["+f+"]"))}},l.useStrictBehavior=function(f,g,k){var ae=this.strict;if(typeof ae=="function")try{ae=ae(f,g,k)}catch(Re){ae="error"}return!ae||ae==="ignore"?!1:ae===!0||ae==="error"?!0:ae==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(g+" ["+f+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+ae+"': "+g+" ["+f+"]")),!1)},l.isTrusted=function(f){f.url&&!f.protocol&&(f.protocol=B.protocolFromUrl(f.url));var g=typeof this.trust=="function"?this.trust(f):this.trust;return!!g},q}(),W=function(){function q(d,f,g){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=d,this.size=f,this.cramped=g}var l=q.prototype;return l.sup=function(){return ce[ee[this.id]]},l.sub=function(){return ce[Z[this.id]]},l.fracNum=function(){return ce[me[this.id]]},l.fracDen=function(){return ce[P[this.id]]},l.cramp=function(){return ce[se[this.id]]},l.text=function(){return ce[X[this.id]]},l.isTight=function(){return this.size>=2},q}(),V=0,b=1,T=2,G=3,j=4,be=5,Ee=6,xe=7,ce=[new W(V,0,!1),new W(b,0,!0),new W(T,1,!1),new W(G,1,!0),new W(j,2,!1),new W(be,2,!0),new W(Ee,3,!1),new W(xe,3,!0)],ee=[j,be,j,be,Ee,xe,Ee,xe],Z=[be,be,be,be,xe,xe,xe,xe],me=[T,G,j,be,Ee,xe,Ee,xe],P=[G,G,be,be,xe,xe,xe,xe],se=[b,b,G,G,be,be,xe,xe],X=[V,b,T,G,T,G,T,G],v={DISPLAY:ce[V],TEXT:ce[T],SCRIPT:ce[j],SCRIPTSCRIPT:ce[Ee]},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 K(q){for(var l=0;l<E.length;l++)for(var d=E[l],f=0;f<d.blocks.length;f++){var g=d.blocks[f];if(q>=g[0]&&q<=g[1])return d.name}return null}var de=[];E.forEach(function(q){return q.blocks.forEach(function(l){return de.push.apply(de,l)})});function Ne(q){for(var l=0;l<de.length;l+=2)if(q>=de[l]&&q<=de[l+1])return!0;return!1}var Ue=80,ke=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"},ht=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"},st=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"},Ft=function(l,d,f){var g=f-54-d-l;return"M702 "+(l+d)+"H400000"+(40+l)+`
H742v`+g+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
219 661 l218 661zM702 `+d+"H400000v"+(40+l)+"H742z"},Yt=function(l,d,f){d=1e3*d;var g="";switch(l){case"sqrtMain":g=ke(d,Ue);break;case"sqrtSize1":g=Ve(d,Ue);break;case"sqrtSize2":g=ht(d,Ue);break;case"sqrtSize3":g=pt(d,Ue);break;case"sqrtSize4":g=st(d,Ue);break;case"sqrtTall":g=Ft(d,Ue,f)}return g},en={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 q(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=q.prototype;return l.hasClass=function(f){return B.contains(this.classes,f)},l.toNode=function(){for(var f=document.createDocumentFragment(),g=0;g<this.children.length;g++)f.appendChild(this.children[g].toNode());return f},l.toMarkup=function(){for(var f="",g=0;g<this.children.length;g++)f+=this.children[g].toMarkup();return f},l.toText=function(){var f=function(k){return k.toText()};return this.children.map(f).join("")},q}(),ut=function(l){return l.filter(function(d){return d}).join(" ")},Et=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 g=d.getColor();g&&(this.style.color=g)}},oe=function(l){var d=document.createElement(l);d.className=ut(this.classes);for(var f in this.style)this.style.hasOwnProperty(f)&&(d.style[f]=this.style[f]);for(var g in this.attributes)this.attributes.hasOwnProperty(g)&&d.setAttribute(g,this.attributes[g]);for(var k=0;k<this.children.length;k++)d.appendChild(this.children[k].toNode());return d},ve=function(l){var d="<"+l;this.classes.length&&(d+=' class="'+B.escape(ut(this.classes))+'"');var f="";for(var g in this.style)this.style.hasOwnProperty(g)&&(f+=B.hyphenate(g)+":"+this.style[g]+";");f&&(d+=' style="'+B.escape(f)+'"');for(var k in this.attributes)this.attributes.hasOwnProperty(k)&&(d+=" "+k+'="'+B.escape(this.attributes[k])+'"');d+=">";for(var ae=0;ae<this.children.length;ae++)d+=this.children[ae].toMarkup();return d+="</"+l+">",d},ie=function(){function q(d,f,g,k){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,Et.call(this,d,g,k),this.children=f||[]}var l=q.prototype;return l.setAttribute=function(f,g){this.attributes[f]=g},l.hasClass=function(f){return B.contains(this.classes,f)},l.toNode=function(){return oe.call(this,"span")},l.toMarkup=function(){return ve.call(this,"span")},q}(),Y=function(){function q(d,f,g,k){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,Et.call(this,f,k),this.children=g||[],this.setAttribute("href",d)}var l=q.prototype;return l.setAttribute=function(f,g){this.attributes[f]=g},l.hasClass=function(f){return B.contains(this.classes,f)},l.toNode=function(){return oe.call(this,"a")},l.toMarkup=function(){return ve.call(this,"a")},q}(),Ae=function(){function q(d,f,g){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=f,this.src=d,this.classes=["mord"],this.style=g}var l=q.prototype;return l.hasClass=function(f){return B.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 g in this.style)this.style.hasOwnProperty(g)&&(f.style[g]=this.style[g]);return f},l.toMarkup=function(){var f="<img src='"+this.src+" 'alt='"+this.alt+"' ",g="";for(var k in this.style)this.style.hasOwnProperty(k)&&(g+=B.hyphenate(k)+":"+this.style[k]+";");return g&&(f+=' style="'+B.escape(g)+'"'),f+="'/>",f},q}(),$={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},R=function(){function q(d,f,g,k,ae,Re,Le,qe){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=d,this.height=f||0,this.depth=g||0,this.italic=k||0,this.skew=ae||0,this.width=Re||0,this.classes=Le||[],this.style=qe||{},this.maxFontSize=0;var dt=K(this.text.charCodeAt(0));dt&&this.classes.push(dt+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=$[this.text])}var l=q.prototype;return l.hasClass=function(f){return B.contains(this.classes,f)},l.toNode=function(){var f=document.createTextNode(this.text),g=null;this.italic>0&&(g=document.createElement("span"),g.style.marginRight=this.italic+"em"),this.classes.length>0&&(g=g||document.createElement("span"),g.className=ut(this.classes));for(var k in this.style)this.style.hasOwnProperty(k)&&(g=g||document.createElement("span"),g.style[k]=this.style[k]);return g?(g.appendChild(f),g):f},l.toMarkup=function(){var f=!1,g="<span";this.classes.length&&(f=!0,g+=' class="',g+=B.escape(ut(this.classes)),g+='"');var k="";this.italic>0&&(k+="margin-right:"+this.italic+"em;");for(var ae in this.style)this.style.hasOwnProperty(ae)&&(k+=B.hyphenate(ae)+":"+this.style[ae]+";");k&&(f=!0,g+=' style="'+B.escape(k)+'"');var Re=B.escape(this.text);return f?(g+=">",g+=Re,g+="</span>",g):Re},q}(),I=function(){function q(d,f){this.children=void 0,this.attributes=void 0,this.children=d||[],this.attributes=f||{}}var l=q.prototype;return l.toNode=function(){var f="http://www.w3.org/2000/svg",g=document.createElementNS(f,"svg");for(var k in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,k)&&g.setAttribute(k,this.attributes[k]);for(var ae=0;ae<this.children.length;ae++)g.appendChild(this.children[ae].toNode());return g},l.toMarkup=function(){var f="<svg";for(var g in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,g)&&(f+=" "+g+"='"+this.attributes[g]+"'");f+=">";for(var k=0;k<this.children.length;k++)f+=this.children[k].toMarkup();return f+="</svg>",f},q}(),le=function(){function q(d,f){this.pathName=void 0,this.alternate=void 0,this.pathName=d,this.alternate=f}var l=q.prototype;return l.toNode=function(){var f="http://www.w3.org/2000/svg",g=document.createElementNS(f,"path");return this.alternate?g.setAttribute("d",this.alternate):g.setAttribute("d",en[this.pathName]),g},l.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+en[this.pathName]+"'/>"},q}(),re=function(){function q(d){this.attributes=void 0,this.attributes=d||{}}var l=q.prototype;return l.toNode=function(){var f="http://www.w3.org/2000/svg",g=document.createElementNS(f,"line");for(var k in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,k)&&g.setAttribute(k,this.attributes[k]);return g},l.toMarkup=function(){var f="<line";for(var g in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,g)&&(f+=" "+g+"='"+this.attributes[g]+"'");return f+="/>",f},q}();function J(q){if(q instanceof R)return q;throw new Error("Expected symbolNode but got "+String(q)+".")}function Ce(q){if(q instanceof ie)return q;throw new Error("Expected span<HtmlDomNode> but got "+String(q)+".")}var We={"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]}},Pe={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]},Be={\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(q,l){We[q]=l}function rt(q,l,d){if(!We[l])throw new Error("Font metrics not found for font: "+l+".");var f=q.charCodeAt(0),g=We[l][f];if(!g&&q[0]in Be&&(f=Be[q[0]].charCodeAt(0),g=We[l][f]),!g&&d==="text"&&Ne(f)&&(g=We[l][77]),g)return{depth:g[0],height:g[1],italic:g[2],skew:g[3],width:g[4]}}var Ye={};function vt(q){var l;if(q>=5?l=0:q>=3?l=1:l=2,!Ye[l]){var d=Ye[l]={cssEmPerMu:Pe.quad[l]/18};for(var f in Pe)Pe.hasOwnProperty(f)&&(d[f]=Pe[f][l])}return Ye[l]}var wt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},mt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Pt={math:{},text:{}},At=Pt;function w(q,l,d,f,g,k){Pt[q][g]={font:l,group:d,replace:f},k&&f&&(Pt[q][f]=Pt[q][g])}var A="math",gt="text",fe="main",Me="ams",Dn="accent-token",je="bin",nt="close",tt="inner",_e="mathord",De="op-token",Fe="open",Qe="punct",ge="rel",Vt="spacing",Ze="textord";w(A,fe,ge,"\u2261","\\equiv",!0),w(A,fe,ge,"\u227A","\\prec",!0),w(A,fe,ge,"\u227B","\\succ",!0),w(A,fe,ge,"\u223C","\\sim",!0),w(A,fe,ge,"\u22A5","\\perp"),w(A,fe,ge,"\u2AAF","\\preceq",!0),w(A,fe,ge,"\u2AB0","\\succeq",!0),w(A,fe,ge,"\u2243","\\simeq",!0),w(A,fe,ge,"\u2223","\\mid",!0),w(A,fe,ge,"\u226A","\\ll",!0),w(A,fe,ge,"\u226B","\\gg",!0),w(A,fe,ge,"\u224D","\\asymp",!0),w(A,fe,ge,"\u2225","\\parallel"),w(A,fe,ge,"\u22C8","\\bowtie",!0),w(A,fe,ge,"\u2323","\\smile",!0),w(A,fe,ge,"\u2291","\\sqsubseteq",!0),w(A,fe,ge,"\u2292","\\sqsupseteq",!0),w(A,fe,ge,"\u2250","\\doteq",!0),w(A,fe,ge,"\u2322","\\frown",!0),w(A,fe,ge,"\u220B","\\ni",!0),w(A,fe,ge,"\u221D","\\propto",!0),w(A,fe,ge,"\u22A2","\\vdash",!0),w(A,fe,ge,"\u22A3","\\dashv",!0),w(A,fe,ge,"\u220B","\\owns"),w(A,fe,Qe,".","\\ldotp"),w(A,fe,Qe,"\u22C5","\\cdotp"),w(A,fe,Ze,"#","\\#"),w(gt,fe,Ze,"#","\\#"),w(A,fe,Ze,"&","\\&"),w(gt,fe,Ze,"&","\\&"),w(A,fe,Ze,"\u2135","\\aleph",!0),w(A,fe,Ze,"\u2200","\\forall",!0),w(A,fe,Ze,"\u210F","\\hbar",!0),w(A,fe,Ze,"\u2203","\\exists",!0),w(A,fe,Ze,"\u2207","\\nabla",!0),w(A,fe,Ze,"\u266D","\\flat",!0),w(A,fe,Ze,"\u2113","\\ell",!0),w(A,fe,Ze,"\u266E","\\natural",!0),w(A,fe,Ze,"\u2663","\\clubsuit",!0),w(A,fe,Ze,"\u2118","\\wp",!0),w(A,fe,Ze,"\u266F","\\sharp",!0),w(A,fe,Ze,"\u2662","\\diamondsuit",!0),w(A,fe,Ze,"\u211C","\\Re",!0),w(A,fe,Ze,"\u2661","\\heartsuit",!0),w(A,fe,Ze,"\u2111","\\Im",!0),w(A,fe,Ze,"\u2660","\\spadesuit",!0),w(gt,fe,Ze,"\xA7","\\S",!0),w(gt,fe,Ze,"\xB6","\\P",!0),w(A,fe,Ze,"\u2020","\\dag"),w(gt,fe,Ze,"\u2020","\\dag"),w(gt,fe,Ze,"\u2020","\\textdagger"),w(A,fe,Ze,"\u2021","\\ddag"),w(gt,fe,Ze,"\u2021","\\ddag"),w(gt,fe,Ze,"\u2021","\\textdaggerdbl"),w(A,fe,nt,"\u23B1","\\rmoustache",!0),w(A,fe,Fe,"\u23B0","\\lmoustache",!0),w(A,fe,nt,"\u27EF","\\rgroup",!0),w(A,fe,Fe,"\u27EE","\\lgroup",!0),w(A,fe,je,"\u2213","\\mp",!0),w(A,fe,je,"\u2296","\\ominus",!0),w(A,fe,je,"\u228E","\\uplus",!0),w(A,fe,je,"\u2293","\\sqcap",!0),w(A,fe,je,"\u2217","\\ast"),w(A,fe,je,"\u2294","\\sqcup",!0),w(A,fe,je,"\u25EF","\\bigcirc"),w(A,fe,je,"\u2219","\\bullet"),w(A,fe,je,"\u2021","\\ddagger"),w(A,fe,je,"\u2240","\\wr",!0),w(A,fe,je,"\u2A3F","\\amalg"),w(A,fe,je,"&","\\And"),w(A,fe,ge,"\u27F5","\\longleftarrow",!0),w(A,fe,ge,"\u21D0","\\Leftarrow",!0),w(A,fe,ge,"\u27F8","\\Longleftarrow",!0),w(A,fe,ge,"\u27F6","\\longrightarrow",!0),w(A,fe,ge,"\u21D2","\\Rightarrow",!0),w(A,fe,ge,"\u27F9","\\Longrightarrow",!0),w(A,fe,ge,"\u2194","\\leftrightarrow",!0),w(A,fe,ge,"\u27F7","\\longleftrightarrow",!0),w(A,fe,ge,"\u21D4","\\Leftrightarrow",!0),w(A,fe,ge,"\u27FA","\\Longleftrightarrow",!0),w(A,fe,ge,"\u21A6","\\mapsto",!0),w(A,fe,ge,"\u27FC","\\longmapsto",!0),w(A,fe,ge,"\u2197","\\nearrow",!0),w(A,fe,ge,"\u21A9","\\hookleftarrow",!0),w(A,fe,ge,"\u21AA","\\hookrightarrow",!0),w(A,fe,ge,"\u2198","\\searrow",!0),w(A,fe,ge,"\u21BC","\\leftharpoonup",!0),w(A,fe,ge,"\u21C0","\\rightharpoonup",!0),w(A,fe,ge,"\u2199","\\swarrow",!0),w(A,fe,ge,"\u21BD","\\leftharpoondown",!0),w(A,fe,ge,"\u21C1","\\rightharpoondown",!0),w(A,fe,ge,"\u2196","\\nwarrow",!0),w(A,fe,ge,"\u21CC","\\rightleftharpoons",!0),w(A,Me,ge,"\u226E","\\nless",!0),w(A,Me,ge,"\uE010","\\@nleqslant"),w(A,Me,ge,"\uE011","\\@nleqq"),w(A,Me,ge,"\u2A87","\\lneq",!0),w(A,Me,ge,"\u2268","\\lneqq",!0),w(A,Me,ge,"\uE00C","\\@lvertneqq"),w(A,Me,ge,"\u22E6","\\lnsim",!0),w(A,Me,ge,"\u2A89","\\lnapprox",!0),w(A,Me,ge,"\u2280","\\nprec",!0),w(A,Me,ge,"\u22E0","\\npreceq",!0),w(A,Me,ge,"\u22E8","\\precnsim",!0),w(A,Me,ge,"\u2AB9","\\precnapprox",!0),w(A,Me,ge,"\u2241","\\nsim",!0),w(A,Me,ge,"\uE006","\\@nshortmid"),w(A,Me,ge,"\u2224","\\nmid",!0),w(A,Me,ge,"\u22AC","\\nvdash",!0),w(A,Me,ge,"\u22AD","\\nvDash",!0),w(A,Me,ge,"\u22EA","\\ntriangleleft"),w(A,Me,ge,"\u22EC","\\ntrianglelefteq",!0),w(A,Me,ge,"\u228A","\\subsetneq",!0),w(A,Me,ge,"\uE01A","\\@varsubsetneq"),w(A,Me,ge,"\u2ACB","\\subsetneqq",!0),w(A,Me,ge,"\uE017","\\@varsubsetneqq"),w(A,Me,ge,"\u226F","\\ngtr",!0),w(A,Me,ge,"\uE00F","\\@ngeqslant"),w(A,Me,ge,"\uE00E","\\@ngeqq"),w(A,Me,ge,"\u2A88","\\gneq",!0),w(A,Me,ge,"\u2269","\\gneqq",!0),w(A,Me,ge,"\uE00D","\\@gvertneqq"),w(A,Me,ge,"\u22E7","\\gnsim",!0),w(A,Me,ge,"\u2A8A","\\gnapprox",!0),w(A,Me,ge,"\u2281","\\nsucc",!0),w(A,Me,ge,"\u22E1","\\nsucceq",!0),w(A,Me,ge,"\u22E9","\\succnsim",!0),w(A,Me,ge,"\u2ABA","\\succnapprox",!0),w(A,Me,ge,"\u2246","\\ncong",!0),w(A,Me,ge,"\uE007","\\@nshortparallel"),w(A,Me,ge,"\u2226","\\nparallel",!0),w(A,Me,ge,"\u22AF","\\nVDash",!0),w(A,Me,ge,"\u22EB","\\ntriangleright"),w(A,Me,ge,"\u22ED","\\ntrianglerighteq",!0),w(A,Me,ge,"\uE018","\\@nsupseteqq"),w(A,Me,ge,"\u228B","\\supsetneq",!0),w(A,Me,ge,"\uE01B","\\@varsupsetneq"),w(A,Me,ge,"\u2ACC","\\supsetneqq",!0),w(A,Me,ge,"\uE019","\\@varsupsetneqq"),w(A,Me,ge,"\u22AE","\\nVdash",!0),w(A,Me,ge,"\u2AB5","\\precneqq",!0),w(A,Me,ge,"\u2AB6","\\succneqq",!0),w(A,Me,ge,"\uE016","\\@nsubseteqq"),w(A,Me,je,"\u22B4","\\unlhd"),w(A,Me,je,"\u22B5","\\unrhd"),w(A,Me,ge,"\u219A","\\nleftarrow",!0),w(A,Me,ge,"\u219B","\\nrightarrow",!0),w(A,Me,ge,"\u21CD","\\nLeftarrow",!0),w(A,Me,ge,"\u21CF","\\nRightarrow",!0),w(A,Me,ge,"\u21AE","\\nleftrightarrow",!0),w(A,Me,ge,"\u21CE","\\nLeftrightarrow",!0),w(A,Me,ge,"\u25B3","\\vartriangle"),w(A,Me,Ze,"\u210F","\\hslash"),w(A,Me,Ze,"\u25BD","\\triangledown"),w(A,Me,Ze,"\u25CA","\\lozenge"),w(A,Me,Ze,"\u24C8","\\circledS"),w(A,Me,Ze,"\xAE","\\circledR"),w(gt,Me,Ze,"\xAE","\\circledR"),w(A,Me,Ze,"\u2221","\\measuredangle",!0),w(A,Me,Ze,"\u2204","\\nexists"),w(A,Me,Ze,"\u2127","\\mho"),w(A,Me,Ze,"\u2132","\\Finv",!0),w(A,Me,Ze,"\u2141","\\Game",!0),w(A,Me,Ze,"\u2035","\\backprime"),w(A,Me,Ze,"\u25B2","\\blacktriangle"),w(A,Me,Ze,"\u25BC","\\blacktriangledown"),w(A,Me,Ze,"\u25A0","\\blacksquare"),w(A,Me,Ze,"\u29EB","\\blacklozenge"),w(A,Me,Ze,"\u2605","\\bigstar"),w(A,Me,Ze,"\u2222","\\sphericalangle",!0),w(A,Me,Ze,"\u2201","\\complement",!0),w(A,Me,Ze,"\xF0","\\eth",!0),w(A,Me,Ze,"\u2571","\\diagup"),w(A,Me,Ze,"\u2572","\\diagdown"),w(A,Me,Ze,"\u25A1","\\square"),w(A,Me,Ze,"\u25A1","\\Box"),w(A,Me,Ze,"\u25CA","\\Diamond"),w(A,Me,Ze,"\xA5","\\yen",!0),w(gt,Me,Ze,"\xA5","\\yen",!0),w(A,Me,Ze,"\u2713","\\checkmark",!0),w(gt,Me,Ze,"\u2713","\\checkmark"),w(A,Me,Ze,"\u2136","\\beth",!0),w(A,Me,Ze,"\u2138","\\daleth",!0),w(A,Me,Ze,"\u2137","\\gimel",!0),w(A,Me,Ze,"\u03DD","\\digamma",!0),w(A,Me,Ze,"\u03F0","\\varkappa"),w(A,Me,Fe,"\u250C","\\ulcorner",!0),w(A,Me,nt,"\u2510","\\urcorner",!0),w(A,Me,Fe,"\u2514","\\llcorner",!0),w(A,Me,nt,"\u2518","\\lrcorner",!0),w(A,Me,ge,"\u2266","\\leqq",!0),w(A,Me,ge,"\u2A7D","\\leqslant",!0),w(A,Me,ge,"\u2A95","\\eqslantless",!0),w(A,Me,ge,"\u2272","\\lesssim",!0),w(A,Me,ge,"\u2A85","\\lessapprox",!0),w(A,Me,ge,"\u224A","\\approxeq",!0),w(A,Me,je,"\u22D6","\\lessdot"),w(A,Me,ge,"\u22D8","\\lll",!0),w(A,Me,ge,"\u2276","\\lessgtr",!0),w(A,Me,ge,"\u22DA","\\lesseqgtr",!0),w(A,Me,ge,"\u2A8B","\\lesseqqgtr",!0),w(A,Me,ge,"\u2251","\\doteqdot"),w(A,Me,ge,"\u2253","\\risingdotseq",!0),w(A,Me,ge,"\u2252","\\fallingdotseq",!0),w(A,Me,ge,"\u223D","\\backsim",!0),w(A,Me,ge,"\u22CD","\\backsimeq",!0),w(A,Me,ge,"\u2AC5","\\subseteqq",!0),w(A,Me,ge,"\u22D0","\\Subset",!0),w(A,Me,ge,"\u228F","\\sqsubset",!0),w(A,Me,ge,"\u227C","\\preccurlyeq",!0),w(A,Me,ge,"\u22DE","\\curlyeqprec",!0),w(A,Me,ge,"\u227E","\\precsim",!0),w(A,Me,ge,"\u2AB7","\\precapprox",!0),w(A,Me,ge,"\u22B2","\\vartriangleleft"),w(A,Me,ge,"\u22B4","\\trianglelefteq"),w(A,Me,ge,"\u22A8","\\vDash",!0),w(A,Me,ge,"\u22AA","\\Vvdash",!0),w(A,Me,ge,"\u2323","\\smallsmile"),w(A,Me,ge,"\u2322","\\smallfrown"),w(A,Me,ge,"\u224F","\\bumpeq",!0),w(A,Me,ge,"\u224E","\\Bumpeq",!0),w(A,Me,ge,"\u2267","\\geqq",!0),w(A,Me,ge,"\u2A7E","\\geqslant",!0),w(A,Me,ge,"\u2A96","\\eqslantgtr",!0),w(A,Me,ge,"\u2273","\\gtrsim",!0),w(A,Me,ge,"\u2A86","\\gtrapprox",!0),w(A,Me,je,"\u22D7","\\gtrdot"),w(A,Me,ge,"\u22D9","\\ggg",!0),w(A,Me,ge,"\u2277","\\gtrless",!0),w(A,Me,ge,"\u22DB","\\gtreqless",!0),w(A,Me,ge,"\u2A8C","\\gtreqqless",!0),w(A,Me,ge,"\u2256","\\eqcirc",!0),w(A,Me,ge,"\u2257","\\circeq",!0),w(A,Me,ge,"\u225C","\\triangleq",!0),w(A,Me,ge,"\u223C","\\thicksim"),w(A,Me,ge,"\u2248","\\thickapprox"),w(A,Me,ge,"\u2AC6","\\supseteqq",!0),w(A,Me,ge,"\u22D1","\\Supset",!0),w(A,Me,ge,"\u2290","\\sqsupset",!0),w(A,Me,ge,"\u227D","\\succcurlyeq",!0),w(A,Me,ge,"\u22DF","\\curlyeqsucc",!0),w(A,Me,ge,"\u227F","\\succsim",!0),w(A,Me,ge,"\u2AB8","\\succapprox",!0),w(A,Me,ge,"\u22B3","\\vartriangleright"),w(A,Me,ge,"\u22B5","\\trianglerighteq"),w(A,Me,ge,"\u22A9","\\Vdash",!0),w(A,Me,ge,"\u2223","\\shortmid"),w(A,Me,ge,"\u2225","\\shortparallel"),w(A,Me,ge,"\u226C","\\between",!0),w(A,Me,ge,"\u22D4","\\pitchfork",!0),w(A,Me,ge,"\u221D","\\varpropto"),w(A,Me,ge,"\u25C0","\\blacktriangleleft"),w(A,Me,ge,"\u2234","\\therefore",!0),w(A,Me,ge,"\u220D","\\backepsilon"),w(A,Me,ge,"\u25B6","\\blacktriangleright"),w(A,Me,ge,"\u2235","\\because",!0),w(A,Me,ge,"\u22D8","\\llless"),w(A,Me,ge,"\u22D9","\\gggtr"),w(A,Me,je,"\u22B2","\\lhd"),w(A,Me,je,"\u22B3","\\rhd"),w(A,Me,ge,"\u2242","\\eqsim",!0),w(A,fe,ge,"\u22C8","\\Join"),w(A,Me,ge,"\u2251","\\Doteq",!0),w(A,Me,je,"\u2214","\\dotplus",!0),w(A,Me,je,"\u2216","\\smallsetminus"),w(A,Me,je,"\u22D2","\\Cap",!0),w(A,Me,je,"\u22D3","\\Cup",!0),w(A,Me,je,"\u2A5E","\\doublebarwedge",!0),w(A,Me,je,"\u229F","\\boxminus",!0),w(A,Me,je,"\u229E","\\boxplus",!0),w(A,Me,je,"\u22C7","\\divideontimes",!0),w(A,Me,je,"\u22C9","\\ltimes",!0),w(A,Me,je,"\u22CA","\\rtimes",!0),w(A,Me,je,"\u22CB","\\leftthreetimes",!0),w(A,Me,je,"\u22CC","\\rightthreetimes",!0),w(A,Me,je,"\u22CF","\\curlywedge",!0),w(A,Me,je,"\u22CE","\\curlyvee",!0),w(A,Me,je,"\u229D","\\circleddash",!0),w(A,Me,je,"\u229B","\\circledast",!0),w(A,Me,je,"\u22C5","\\centerdot"),w(A,Me,je,"\u22BA","\\intercal",!0),w(A,Me,je,"\u22D2","\\doublecap"),w(A,Me,je,"\u22D3","\\doublecup"),w(A,Me,je,"\u22A0","\\boxtimes",!0),w(A,Me,ge,"\u21E2","\\dashrightarrow",!0),w(A,Me,ge,"\u21E0","\\dashleftarrow",!0),w(A,Me,ge,"\u21C7","\\leftleftarrows",!0),w(A,Me,ge,"\u21C6","\\leftrightarrows",!0),w(A,Me,ge,"\u21DA","\\Lleftarrow",!0),w(A,Me,ge,"\u219E","\\twoheadleftarrow",!0),w(A,Me,ge,"\u21A2","\\leftarrowtail",!0),w(A,Me,ge,"\u21AB","\\looparrowleft",!0),w(A,Me,ge,"\u21CB","\\leftrightharpoons",!0),w(A,Me,ge,"\u21B6","\\curvearrowleft",!0),w(A,Me,ge,"\u21BA","\\circlearrowleft",!0),w(A,Me,ge,"\u21B0","\\Lsh",!0),w(A,Me,ge,"\u21C8","\\upuparrows",!0),w(A,Me,ge,"\u21BF","\\upharpoonleft",!0),w(A,Me,ge,"\u21C3","\\downharpoonleft",!0),w(A,Me,ge,"\u22B8","\\multimap",!0),w(A,Me,ge,"\u21AD","\\leftrightsquigarrow",!0),w(A,Me,ge,"\u21C9","\\rightrightarrows",!0),w(A,Me,ge,"\u21C4","\\rightleftarrows",!0),w(A,Me,ge,"\u21A0","\\twoheadrightarrow",!0),w(A,Me,ge,"\u21A3","\\rightarrowtail",!0),w(A,Me,ge,"\u21AC","\\looparrowright",!0),w(A,Me,ge,"\u21B7","\\curvearrowright",!0),w(A,Me,ge,"\u21BB","\\circlearrowright",!0),w(A,Me,ge,"\u21B1","\\Rsh",!0),w(A,Me,ge,"\u21CA","\\downdownarrows",!0),w(A,Me,ge,"\u21BE","\\upharpoonright",!0),w(A,Me,ge,"\u21C2","\\downharpoonright",!0),w(A,Me,ge,"\u21DD","\\rightsquigarrow",!0),w(A,Me,ge,"\u21DD","\\leadsto"),w(A,Me,ge,"\u21DB","\\Rrightarrow",!0),w(A,Me,ge,"\u21BE","\\restriction"),w(A,fe,Ze,"\u2018","`"),w(A,fe,Ze,"$","\\$"),w(gt,fe,Ze,"$","\\$"),w(gt,fe,Ze,"$","\\textdollar"),w(A,fe,Ze,"%","\\%"),w(gt,fe,Ze,"%","\\%"),w(A,fe,Ze,"_","\\_"),w(gt,fe,Ze,"_","\\_"),w(gt,fe,Ze,"_","\\textunderscore"),w(A,fe,Ze,"\u2220","\\angle",!0),w(A,fe,Ze,"\u221E","\\infty",!0),w(A,fe,Ze,"\u2032","\\prime"),w(A,fe,Ze,"\u25B3","\\triangle"),w(A,fe,Ze,"\u0393","\\Gamma",!0),w(A,fe,Ze,"\u0394","\\Delta",!0),w(A,fe,Ze,"\u0398","\\Theta",!0),w(A,fe,Ze,"\u039B","\\Lambda",!0),w(A,fe,Ze,"\u039E","\\Xi",!0),w(A,fe,Ze,"\u03A0","\\Pi",!0),w(A,fe,Ze,"\u03A3","\\Sigma",!0),w(A,fe,Ze,"\u03A5","\\Upsilon",!0),w(A,fe,Ze,"\u03A6","\\Phi",!0),w(A,fe,Ze,"\u03A8","\\Psi",!0),w(A,fe,Ze,"\u03A9","\\Omega",!0),w(A,fe,Ze,"A","\u0391"),w(A,fe,Ze,"B","\u0392"),w(A,fe,Ze,"E","\u0395"),w(A,fe,Ze,"Z","\u0396"),w(A,fe,Ze,"H","\u0397"),w(A,fe,Ze,"I","\u0399"),w(A,fe,Ze,"K","\u039A"),w(A,fe,Ze,"M","\u039C"),w(A,fe,Ze,"N","\u039D"),w(A,fe,Ze,"O","\u039F"),w(A,fe,Ze,"P","\u03A1"),w(A,fe,Ze,"T","\u03A4"),w(A,fe,Ze,"X","\u03A7"),w(A,fe,Ze,"\xAC","\\neg",!0),w(A,fe,Ze,"\xAC","\\lnot"),w(A,fe,Ze,"\u22A4","\\top"),w(A,fe,Ze,"\u22A5","\\bot"),w(A,fe,Ze,"\u2205","\\emptyset"),w(A,Me,Ze,"\u2205","\\varnothing"),w(A,fe,_e,"\u03B1","\\alpha",!0),w(A,fe,_e,"\u03B2","\\beta",!0),w(A,fe,_e,"\u03B3","\\gamma",!0),w(A,fe,_e,"\u03B4","\\delta",!0),w(A,fe,_e,"\u03F5","\\epsilon",!0),w(A,fe,_e,"\u03B6","\\zeta",!0),w(A,fe,_e,"\u03B7","\\eta",!0),w(A,fe,_e,"\u03B8","\\theta",!0),w(A,fe,_e,"\u03B9","\\iota",!0),w(A,fe,_e,"\u03BA","\\kappa",!0),w(A,fe,_e,"\u03BB","\\lambda",!0),w(A,fe,_e,"\u03BC","\\mu",!0),w(A,fe,_e,"\u03BD","\\nu",!0),w(A,fe,_e,"\u03BE","\\xi",!0),w(A,fe,_e,"\u03BF","\\omicron",!0),w(A,fe,_e,"\u03C0","\\pi",!0),w(A,fe,_e,"\u03C1","\\rho",!0),w(A,fe,_e,"\u03C3","\\sigma",!0),w(A,fe,_e,"\u03C4","\\tau",!0),w(A,fe,_e,"\u03C5","\\upsilon",!0),w(A,fe,_e,"\u03D5","\\phi",!0),w(A,fe,_e,"\u03C7","\\chi",!0),w(A,fe,_e,"\u03C8","\\psi",!0),w(A,fe,_e,"\u03C9","\\omega",!0),w(A,fe,_e,"\u03B5","\\varepsilon",!0),w(A,fe,_e,"\u03D1","\\vartheta",!0),w(A,fe,_e,"\u03D6","\\varpi",!0),w(A,fe,_e,"\u03F1","\\varrho",!0),w(A,fe,_e,"\u03C2","\\varsigma",!0),w(A,fe,_e,"\u03C6","\\varphi",!0),w(A,fe,je,"\u2217","*"),w(A,fe,je,"+","+"),w(A,fe,je,"\u2212","-"),w(A,fe,je,"\u22C5","\\cdot",!0),w(A,fe,je,"\u2218","\\circ"),w(A,fe,je,"\xF7","\\div",!0),w(A,fe,je,"\xB1","\\pm",!0),w(A,fe,je,"\xD7","\\times",!0),w(A,fe,je,"\u2229","\\cap",!0),w(A,fe,je,"\u222A","\\cup",!0),w(A,fe,je,"\u2216","\\setminus"),w(A,fe,je,"\u2227","\\land"),w(A,fe,je,"\u2228","\\lor"),w(A,fe,je,"\u2227","\\wedge",!0),w(A,fe,je,"\u2228","\\vee",!0),w(A,fe,Ze,"\u221A","\\surd"),w(A,fe,Fe,"(","("),w(A,fe,Fe,"[","["),w(A,fe,Fe,"\u27E8","\\langle",!0),w(A,fe,Fe,"\u2223","\\lvert"),w(A,fe,Fe,"\u2225","\\lVert"),w(A,fe,nt,")",")"),w(A,fe,nt,"]","]"),w(A,fe,nt,"?","?"),w(A,fe,nt,"!","!"),w(A,fe,nt,"\u27E9","\\rangle",!0),w(A,fe,nt,"\u2223","\\rvert"),w(A,fe,nt,"\u2225","\\rVert"),w(A,fe,ge,"=","="),w(A,fe,ge,"<","<"),w(A,fe,ge,">",">"),w(A,fe,ge,":",":"),w(A,fe,ge,"\u2248","\\approx",!0),w(A,fe,ge,"\u2245","\\cong",!0),w(A,fe,ge,"\u2265","\\ge"),w(A,fe,ge,"\u2265","\\geq",!0),w(A,fe,ge,"\u2190","\\gets"),w(A,fe,ge,">","\\gt"),w(A,fe,ge,"\u2208","\\in",!0),w(A,fe,ge,"\uE020","\\@not"),w(A,fe,ge,"\u2282","\\subset",!0),w(A,fe,ge,"\u2283","\\supset",!0),w(A,fe,ge,"\u2286","\\subseteq",!0),w(A,fe,ge,"\u2287","\\supseteq",!0),w(A,Me,ge,"\u2288","\\nsubseteq",!0),w(A,Me,ge,"\u2289","\\nsupseteq",!0),w(A,fe,ge,"\u22A8","\\models"),w(A,fe,ge,"\u2190","\\leftarrow",!0),w(A,fe,ge,"\u2264","\\le"),w(A,fe,ge,"\u2264","\\leq",!0),w(A,fe,ge,"<","\\lt"),w(A,fe,ge,"\u2192","\\rightarrow",!0),w(A,fe,ge,"\u2192","\\to"),w(A,Me,ge,"\u2271","\\ngeq",!0),w(A,Me,ge,"\u2270","\\nleq",!0),w(A,fe,Vt,"\xA0","\\ "),w(A,fe,Vt,"\xA0","~"),w(A,fe,Vt,"\xA0","\\space"),w(A,fe,Vt,"\xA0","\\nobreakspace"),w(gt,fe,Vt,"\xA0","\\ "),w(gt,fe,Vt,"\xA0","~"),w(gt,fe,Vt,"\xA0","\\space"),w(gt,fe,Vt,"\xA0","\\nobreakspace"),w(A,fe,Vt,null,"\\nobreak"),w(A,fe,Vt,null,"\\allowbreak"),w(A,fe,Qe,",",","),w(A,fe,Qe,";",";"),w(A,Me,je,"\u22BC","\\barwedge",!0),w(A,Me,je,"\u22BB","\\veebar",!0),w(A,fe,je,"\u2299","\\odot",!0),w(A,fe,je,"\u2295","\\oplus",!0),w(A,fe,je,"\u2297","\\otimes",!0),w(A,fe,Ze,"\u2202","\\partial",!0),w(A,fe,je,"\u2298","\\oslash",!0),w(A,Me,je,"\u229A","\\circledcirc",!0),w(A,Me,je,"\u22A1","\\boxdot",!0),w(A,fe,je,"\u25B3","\\bigtriangleup"),w(A,fe,je,"\u25BD","\\bigtriangledown"),w(A,fe,je,"\u2020","\\dagger"),w(A,fe,je,"\u22C4","\\diamond"),w(A,fe,je,"\u22C6","\\star"),w(A,fe,je,"\u25C3","\\triangleleft"),w(A,fe,je,"\u25B9","\\triangleright"),w(A,fe,Fe,"{","\\{"),w(gt,fe,Ze,"{","\\{"),w(gt,fe,Ze,"{","\\textbraceleft"),w(A,fe,nt,"}","\\}"),w(gt,fe,Ze,"}","\\}"),w(gt,fe,Ze,"}","\\textbraceright"),w(A,fe,Fe,"{","\\lbrace"),w(A,fe,nt,"}","\\rbrace"),w(A,fe,Fe,"[","\\lbrack"),w(gt,fe,Ze,"[","\\lbrack"),w(A,fe,nt,"]","\\rbrack"),w(gt,fe,Ze,"]","\\rbrack"),w(A,fe,Fe,"(","\\lparen"),w(A,fe,nt,")","\\rparen"),w(gt,fe,Ze,"<","\\textless"),w(gt,fe,Ze,">","\\textgreater"),w(A,fe,Fe,"\u230A","\\lfloor",!0),w(A,fe,nt,"\u230B","\\rfloor",!0),w(A,fe,Fe,"\u2308","\\lceil",!0),w(A,fe,nt,"\u2309","\\rceil",!0),w(A,fe,Ze,"\\","\\backslash"),w(A,fe,Ze,"\u2223","|"),w(A,fe,Ze,"\u2223","\\vert"),w(gt,fe,Ze,"|","\\textbar"),w(A,fe,Ze,"\u2225","\\|"),w(A,fe,Ze,"\u2225","\\Vert"),w(gt,fe,Ze,"\u2225","\\textbardbl"),w(gt,fe,Ze,"~","\\textasciitilde"),w(gt,fe,Ze,"\\","\\textbackslash"),w(gt,fe,Ze,"^","\\textasciicircum"),w(A,fe,ge,"\u2191","\\uparrow",!0),w(A,fe,ge,"\u21D1","\\Uparrow",!0),w(A,fe,ge,"\u2193","\\downarrow",!0),w(A,fe,ge,"\u21D3","\\Downarrow",!0),w(A,fe,ge,"\u2195","\\updownarrow",!0),w(A,fe,ge,"\u21D5","\\Updownarrow",!0),w(A,fe,De,"\u2210","\\coprod"),w(A,fe,De,"\u22C1","\\bigvee"),w(A,fe,De,"\u22C0","\\bigwedge"),w(A,fe,De,"\u2A04","\\biguplus"),w(A,fe,De,"\u22C2","\\bigcap"),w(A,fe,De,"\u22C3","\\bigcup"),w(A,fe,De,"\u222B","\\int"),w(A,fe,De,"\u222B","\\intop"),w(A,fe,De,"\u222C","\\iint"),w(A,fe,De,"\u222D","\\iiint"),w(A,fe,De,"\u220F","\\prod"),w(A,fe,De,"\u2211","\\sum"),w(A,fe,De,"\u2A02","\\bigotimes"),w(A,fe,De,"\u2A01","\\bigoplus"),w(A,fe,De,"\u2A00","\\bigodot"),w(A,fe,De,"\u222E","\\oint"),w(A,fe,De,"\u222F","\\oiint"),w(A,fe,De,"\u2230","\\oiiint"),w(A,fe,De,"\u2A06","\\bigsqcup"),w(A,fe,De,"\u222B","\\smallint"),w(gt,fe,tt,"\u2026","\\textellipsis"),w(A,fe,tt,"\u2026","\\mathellipsis"),w(gt,fe,tt,"\u2026","\\ldots",!0),w(A,fe,tt,"\u2026","\\ldots",!0),w(A,fe,tt,"\u22EF","\\@cdots",!0),w(A,fe,tt,"\u22F1","\\ddots",!0),w(A,fe,Ze,"\u22EE","\\varvdots"),w(A,fe,Dn,"\u02CA","\\acute"),w(A,fe,Dn,"\u02CB","\\grave"),w(A,fe,Dn,"\xA8","\\ddot"),w(A,fe,Dn,"~","\\tilde"),w(A,fe,Dn,"\u02C9","\\bar"),w(A,fe,Dn,"\u02D8","\\breve"),w(A,fe,Dn,"\u02C7","\\check"),w(A,fe,Dn,"^","\\hat"),w(A,fe,Dn,"\u20D7","\\vec"),w(A,fe,Dn,"\u02D9","\\dot"),w(A,fe,Dn,"\u02DA","\\mathring"),w(A,fe,_e,"\u0131","\\imath",!0),w(A,fe,_e,"\u0237","\\jmath",!0),w(gt,fe,Ze,"\u0131","\\i",!0),w(gt,fe,Ze,"\u0237","\\j",!0),w(gt,fe,Ze,"\xDF","\\ss",!0),w(gt,fe,Ze,"\xE6","\\ae",!0),w(gt,fe,Ze,"\xE6","\\ae",!0),w(gt,fe,Ze,"\u0153","\\oe",!0),w(gt,fe,Ze,"\xF8","\\o",!0),w(gt,fe,Ze,"\xC6","\\AE",!0),w(gt,fe,Ze,"\u0152","\\OE",!0),w(gt,fe,Ze,"\xD8","\\O",!0),w(gt,fe,Dn,"\u02CA","\\'"),w(gt,fe,Dn,"\u02CB","\\`"),w(gt,fe,Dn,"\u02C6","\\^"),w(gt,fe,Dn,"\u02DC","\\~"),w(gt,fe,Dn,"\u02C9","\\="),w(gt,fe,Dn,"\u02D8","\\u"),w(gt,fe,Dn,"\u02D9","\\."),w(gt,fe,Dn,"\u02DA","\\r"),w(gt,fe,Dn,"\u02C7","\\v"),w(gt,fe,Dn,"\xA8",'\\"'),w(gt,fe,Dn,"\u02DD","\\H"),w(gt,fe,Dn,"\u25EF","\\textcircled");var gn={"--":!0,"---":!0,"``":!0,"''":!0};w(gt,fe,Ze,"\u2013","--"),w(gt,fe,Ze,"\u2013","\\textendash"),w(gt,fe,Ze,"\u2014","---"),w(gt,fe,Ze,"\u2014","\\textemdash"),w(gt,fe,Ze,"\u2018","`"),w(gt,fe,Ze,"\u2018","\\textquoteleft"),w(gt,fe,Ze,"\u2019","'"),w(gt,fe,Ze,"\u2019","\\textquoteright"),w(gt,fe,Ze,"\u201C","``"),w(gt,fe,Ze,"\u201C","\\textquotedblleft"),w(gt,fe,Ze,"\u201D","''"),w(gt,fe,Ze,"\u201D","\\textquotedblright"),w(A,fe,Ze,"\xB0","\\degree",!0),w(gt,fe,Ze,"\xB0","\\degree"),w(gt,fe,Ze,"\xB0","\\textdegree",!0),w(A,fe,_e,"\xA3","\\pounds"),w(A,fe,_e,"\xA3","\\mathsterling",!0),w(gt,fe,_e,"\xA3","\\pounds"),w(gt,fe,_e,"\xA3","\\textsterling",!0),w(A,Me,Ze,"\u2720","\\maltese"),w(gt,Me,Ze,"\u2720","\\maltese"),w(gt,fe,Vt,"\xA0","\\ "),w(gt,fe,Vt,"\xA0"," "),w(gt,fe,Vt,"\xA0","~");for(var In='0123456789/@."',Hn=0;Hn<In.length;Hn++){var mr=In.charAt(Hn);w(A,fe,Ze,mr,mr)}for(var rn='0123456789!@*()-=+[]<>|";:?/.,',vn=0;vn<rn.length;vn++){var Je=rn.charAt(vn);w(gt,fe,Ze,Je,Je)}for(var It="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",zt=0;zt<It.length;zt++){var Ke=It.charAt(zt);w(A,fe,_e,Ke,Ke),w(gt,fe,Ze,Ke,Ke)}w(A,Me,Ze,"C","\u2102"),w(gt,Me,Ze,"C","\u2102"),w(A,Me,Ze,"H","\u210D"),w(gt,Me,Ze,"H","\u210D"),w(A,Me,Ze,"N","\u2115"),w(gt,Me,Ze,"N","\u2115"),w(A,Me,Ze,"P","\u2119"),w(gt,Me,Ze,"P","\u2119"),w(A,Me,Ze,"Q","\u211A"),w(gt,Me,Ze,"Q","\u211A"),w(A,Me,Ze,"R","\u211D"),w(gt,Me,Ze,"R","\u211D"),w(A,Me,Ze,"Z","\u2124"),w(gt,Me,Ze,"Z","\u2124"),w(A,fe,_e,"h","\u210E"),w(gt,fe,_e,"h","\u210E");for(var Oe="",bt=0;bt<It.length;bt++){var St=It.charAt(bt);Oe=String.fromCharCode(55349,56320+bt),w(A,fe,_e,St,Oe),w(gt,fe,Ze,St,Oe),Oe=String.fromCharCode(55349,56372+bt),w(A,fe,_e,St,Oe),w(gt,fe,Ze,St,Oe),Oe=String.fromCharCode(55349,56424+bt),w(A,fe,_e,St,Oe),w(gt,fe,Ze,St,Oe),Oe=String.fromCharCode(55349,56580+bt),w(A,fe,_e,St,Oe),w(gt,fe,Ze,St,Oe),Oe=String.fromCharCode(55349,56736+bt),w(A,fe,_e,St,Oe),w(gt,fe,Ze,St,Oe),Oe=String.fromCharCode(55349,56788+bt),w(A,fe,_e,St,Oe),w(gt,fe,Ze,St,Oe),Oe=String.fromCharCode(55349,56840+bt),w(A,fe,_e,St,Oe),w(gt,fe,Ze,St,Oe),Oe=String.fromCharCode(55349,56944+bt),w(A,fe,_e,St,Oe),w(gt,fe,Ze,St,Oe),bt<26&&(Oe=String.fromCharCode(55349,56632+bt),w(A,fe,_e,St,Oe),w(gt,fe,Ze,St,Oe),Oe=String.fromCharCode(55349,56476+bt),w(A,fe,_e,St,Oe),w(gt,fe,Ze,St,Oe))}Oe="\u{1D55C}",w(A,fe,_e,"k",Oe),w(gt,fe,Ze,"k",Oe);for(var qt=0;qt<10;qt++){var Wt=qt.toString();Oe=String.fromCharCode(55349,57294+qt),w(A,fe,_e,Wt,Oe),w(gt,fe,Ze,Wt,Oe),Oe=String.fromCharCode(55349,57314+qt),w(A,fe,_e,Wt,Oe),w(gt,fe,Ze,Wt,Oe),Oe=String.fromCharCode(55349,57324+qt),w(A,fe,_e,Wt,Oe),w(gt,fe,Ze,Wt,Oe),Oe=String.fromCharCode(55349,57334+qt),w(A,fe,_e,Wt,Oe),w(gt,fe,Ze,Wt,Oe)}for(var on="\xC7\xD0\xDE\xE7\xFE",Xt=0;Xt<on.length;Xt++){var hn=on.charAt(Xt);w(A,fe,_e,hn,hn),w(gt,fe,Ze,hn,hn)}w(gt,fe,Ze,"\xF0","\xF0"),w(gt,fe,Ze,"\u2013","\u2013"),w(gt,fe,Ze,"\u2014","\u2014"),w(gt,fe,Ze,"\u2018","\u2018"),w(gt,fe,Ze,"\u2019","\u2019"),w(gt,fe,Ze,"\u201C","\u201C"),w(gt,fe,Ze,"\u201D","\u201D");var An=[["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"]],$t=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Rt=function(l,d){var f=l.charCodeAt(0),g=l.charCodeAt(1),k=(f-55296)*1024+(g-56320)+65536,ae=d==="math"?0:1;if(119808<=k&&k<120484){var Re=Math.floor((k-119808)/26);return[An[Re][2],An[Re][ae]]}else if(120782<=k&&k<=120831){var Le=Math.floor((k-120782)/10);return[$t[Le][2],$t[Le][ae]]}else{if(k===120485||k===120486)return[An[0][2],An[0][ae]];if(120486<k&&k<120782)return["",""];throw new H("Unsupported character: "+l)}},an=[[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]],tn=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],cn=function(l,d){return d.size<2?l:an[l-1][d.size-1]},bn=function(){function q(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||q.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=tn[this.size-1],this.maxSize=d.maxSize,this.minRuleThickness=d.minRuleThickness,this._fontMetrics=void 0}var l=q.prototype;return l.extend=function(f){var g={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var k in f)f.hasOwnProperty(k)&&(g[k]=f[k]);return new q(g)},l.havingStyle=function(f){return this.style===f?this:this.extend({style:f,size:cn(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:tn[f-1]})},l.havingBaseStyle=function(f){f=f||this.style.text();var g=cn(q.BASESIZE,f);return this.size===g&&this.textSize===q.BASESIZE&&this.style===f?this:this.extend({style:f,size:g})},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!==q.BASESIZE?["sizing","reset-size"+this.size,"size"+q.BASESIZE]:[]},l.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=vt(this.size)),this._fontMetrics},l.getColor=function(){return this.phantom?"transparent":this.color},q}();bn.BASESIZE=6;var tr=bn,Mn={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Qt={ex:!0,em:!0,mu:!0},ct=function(l){return typeof l!="string"&&(l=l.unit),l in Mn||l in Qt||l==="ex"},ft=function(l,d){var f;if(l.unit in Mn)f=Mn[l.unit]/d.fontMetrics().ptPerEm/d.sizeMultiplier;else if(l.unit==="mu")f=d.fontMetrics().cssEmPerMu;else{var g;if(d.style.isTight()?g=d.havingStyle(d.style.text()):g=d,l.unit==="ex")f=g.fontMetrics().xHeight;else if(l.unit==="em")f=g.fontMetrics().quad;else throw new H("Invalid unit: '"+l.unit+"'");g!==d&&(f*=g.sizeMultiplier/d.sizeMultiplier)}return Math.min(l.number*f,d.maxSize)},Tt=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],Nt=function(l,d,f){return At[f][l]&&At[f][l].replace&&(l=At[f][l].replace),{value:l,metrics:rt(l,d,f)}},Dt=function(l,d,f,g,k){var ae=Nt(l,d,f),Re=ae.metrics;l=ae.value;var Le;if(Re){var qe=Re.italic;(f==="text"||g&&g.font==="mathit")&&(qe=0),Le=new R(l,Re.height,Re.depth,qe,Re.skew,Re.width,k)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+l+"' in style '"+d+"' and mode '"+f+"'")),Le=new R(l,0,0,0,0,0,k);if(g){Le.maxFontSize=g.sizeMultiplier,g.style.isTight()&&Le.classes.push("mtight");var dt=g.getColor();dt&&(Le.style.color=dt)}return Le},Ht=function(l,d,f,g){return g===void 0&&(g=[]),f.font==="boldsymbol"&&Nt(l,"Main-Bold",d).metrics?Dt(l,"Main-Bold",d,f,g.concat(["mathbf"])):l==="\\"||At[d][l].font==="main"?Dt(l,"Main-Regular",d,f,g):Dt(l,"AMS-Regular",d,f,g.concat(["amsrm"]))},Bt=function(l,d,f,g){return/[0-9]/.test(l.charAt(0))||B.contains(Tt,l)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},dn=function(l,d,f,g){return B.contains(Tt,l)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(l.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},xn=function(l,d,f,g){return Nt(l,"Math-BoldItalic",d).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Rn=function(l,d,f){var g=l.mode,k=l.text,ae=["mord"],Re=g==="math"||g==="text"&&d.font,Le=Re?d.font:d.fontFamily;if(k.charCodeAt(0)===55349){var qe=Rt(k,g),dt=qe[0],Ct=qe[1];return Dt(k,dt,g,d,ae.concat(Ct))}else if(Le){var Kt,pn;if(Le==="boldsymbol"||Le==="mathnormal"){var jt=Le==="boldsymbol"?xn(k,g,d,ae):dn(k,g,d,ae);Kt=jt.fontName,pn=[jt.fontClass]}else B.contains(Tt,k)?(Kt="Main-Italic",pn=["mathit"]):Re?(Kt=Jr[Le].fontName,pn=[Le]):(Kt=Ir(Le,d.fontWeight,d.fontShape),pn=[Le,d.fontWeight,d.fontShape]);if(Nt(k,Kt,g).metrics)return Dt(k,Kt,g,d,ae.concat(pn));if(gn.hasOwnProperty(k)&&Kt.substr(0,10)==="Typewriter"){for(var Jt=[],un=0;un<k.length;un++)Jt.push(Dt(k[un],Kt,g,d,ae.concat(pn)));return Tr(Jt)}}if(f==="mathord"){var Cn=Bt(k,g,d,ae);return Dt(k,Cn.fontName,g,d,ae.concat([Cn.fontClass]))}else if(f==="textord"){var ir=At[g][k]&&At[g][k].font;if(ir==="ams"){var Tn=Ir("amsrm",d.fontWeight,d.fontShape);return Dt(k,Tn,g,d,ae.concat("amsrm",d.fontWeight,d.fontShape))}else if(ir==="main"||!ir){var er=Ir("textrm",d.fontWeight,d.fontShape);return Dt(k,er,g,d,ae.concat(d.fontWeight,d.fontShape))}else{var Sr=Ir(ir,d.fontWeight,d.fontShape);return Dt(k,Sr,g,d,ae.concat(Sr,d.fontWeight,d.fontShape))}}else throw new Error("unexpected type: "+f+" in makeOrd")},Qn=function(l,d){if(ut(l.classes)!==ut(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 g in d.style)if(d.style.hasOwnProperty(g)&&l.style[g]!==d.style[g])return!1;return!0},nr=function(l){for(var d=0;d<l.length-1;d++){var f=l[d],g=l[d+1];f instanceof R&&g instanceof R&&Qn(f,g)&&(f.text+=g.text,f.height=Math.max(f.height,g.height),f.depth=Math.max(f.depth,g.depth),f.italic=g.italic,l.splice(d+1,1),d--)}return l},ar=function(l){for(var d=0,f=0,g=0,k=0;k<l.children.length;k++){var ae=l.children[k];ae.height>d&&(d=ae.height),ae.depth>f&&(f=ae.depth),ae.maxFontSize>g&&(g=ae.maxFontSize)}l.height=d,l.depth=f,l.maxFontSize=g},_n=function(l,d,f,g){var k=new ie(l,d,f,g);return ar(k),k},yn=function(l,d,f,g){return new ie(l,d,f,g)},gr=function(l,d,f){var g=_n([l],[],d);return g.height=Math.max(f||d.fontMetrics().defaultRuleThickness,d.minRuleThickness),g.style.borderBottomWidth=g.height+"em",g.maxFontSize=1,g},Gn=function(l,d,f,g){var k=new Y(l,d,f,g);return ar(k),k},Tr=function(l){var d=new Ut(l);return ar(d),d},Jn=function(l,d){return l instanceof Ut?_n([],[l],d):l},or=function(l){if(l.positionType==="individualShift"){for(var d=l.children,f=[d[0]],g=-d[0].shift-d[0].elem.depth,k=g,ae=1;ae<d.length;ae++){var Re=-d[ae].shift-k-d[ae].elem.depth,Le=Re-(d[ae-1].elem.height+d[ae-1].elem.depth);k=k+Re,f.push({type:"kern",size:Le}),f.push(d[ae])}return{children:f,depth:g}}var qe;if(l.positionType==="top"){for(var dt=l.positionData,Ct=0;Ct<l.children.length;Ct++){var Kt=l.children[Ct];dt-=Kt.type==="kern"?Kt.size:Kt.elem.height+Kt.elem.depth}qe=dt}else if(l.positionType==="bottom")qe=-l.positionData;else{var pn=l.children[0];if(pn.type!=="elem")throw new Error('First child must have type "elem".');if(l.positionType==="shift")qe=-pn.elem.depth-l.positionData;else if(l.positionType==="firstBaseline")qe=-pn.elem.depth;else throw new Error("Invalid positionType "+l.positionType+".")}return{children:l.children,depth:qe}},yr=function(l,d){for(var f=or(l),g=f.children,k=f.depth,ae=0,Re=0;Re<g.length;Re++){var Le=g[Re];if(Le.type==="elem"){var qe=Le.elem;ae=Math.max(ae,qe.maxFontSize,qe.height)}}ae+=2;var dt=_n(["pstrut"],[]);dt.style.height=ae+"em";for(var Ct=[],Kt=k,pn=k,jt=k,Jt=0;Jt<g.length;Jt++){var un=g[Jt];if(un.type==="kern")jt+=un.size;else{var Cn=un.elem,ir=un.wrapperClasses||[],Tn=un.wrapperStyle||{},er=_n(ir,[dt,Cn],void 0,Tn);er.style.top=-ae-jt-Cn.depth+"em",un.marginLeft&&(er.style.marginLeft=un.marginLeft),un.marginRight&&(er.style.marginRight=un.marginRight),Ct.push(er),jt+=Cn.height+Cn.depth}Kt=Math.min(Kt,jt),pn=Math.max(pn,jt)}var Sr=_n(["vlist"],Ct);Sr.style.height=pn+"em";var wr;if(Kt<0){var ri=_n([],[]),ii=_n(["vlist"],[ri]);ii.style.height=-Kt+"em";var Zi=_n(["vlist-s"],[new R("\u200B")]);wr=[_n(["vlist-r"],[Sr,Zi]),_n(["vlist-r"],[ii])]}else wr=[_n(["vlist-r"],[Sr])];var ci=_n(["vlist-t"],wr);return wr.length===2&&ci.classes.push("vlist-t2"),ci.height=pn,ci.depth=-Kt,ci},rr=function(l,d){var f=_n(["mspace"],[],d),g=ft(l,d);return f.style.marginRight=g+"em",f},Ir=function(l,d,f){var g="";switch(l){case"amsrm":g="AMS";break;case"textrm":g="Main";break;case"textsf":g="SansSerif";break;case"texttt":g="Typewriter";break;default:g=l}var k;return d==="textbf"&&f==="textit"?k="BoldItalic":d==="textbf"?k="Bold":d==="textit"?k="Italic":k="Regular",g+"-"+k},Jr={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"}},Xn={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},En=function(l,d){var f=Xn[l],g=f[0],k=f[1],ae=f[2],Re=new le(g),Le=new I([Re],{width:k+"em",height:ae+"em",style:"width:"+k+"em",viewBox:"0 0 "+1e3*k+" "+1e3*ae,preserveAspectRatio:"xMinYMin"}),qe=yn(["overlay"],[Le],d);return qe.height=ae,qe.style.height=ae+"em",qe.style.width=k+"em",qe},it={fontMap:Jr,makeSymbol:Dt,mathsym:Ht,makeSpan:_n,makeSvgSpan:yn,makeLineSpan:gr,makeAnchor:Gn,makeFragment:Tr,wrapFragment:Jn,makeVList:yr,makeOrd:Rn,makeGlue:rr,staticSvg:En,svgData:Xn,tryCombineChars:nr};function Fn(q,l){var d=lr(q,l);if(!d)throw new Error("Expected node of type "+l+", but got "+(q?"node of type "+q.type:String(q)));return d}function lr(q,l){return q&&q.type===l?q:null}function Cr(q,l){var d=Dr(q,l);if(!d)throw new Error('Expected node of type "atom" and family "'+l+'", but got '+(q?q.type==="atom"?"atom of family "+q.family:"node of type "+q.type:String(q)));return d}function Dr(q,l){return q&&q.type==="atom"&&q.family===l?q:null}function Mr(q){var l=Ur(q);if(!l)throw new Error("Expected node of symbol group type, but got "+(q?"node of type "+q.type:String(q)));return l}function Ur(q){return q&&(q.type==="atom"||mt.hasOwnProperty(q.type))?q:null}var vr={number:3,unit:"mu"},Kr={number:4,unit:"mu"},zn={number:5,unit:"mu"},Sn={mord:{mop:vr,mbin:Kr,mrel:zn,minner:vr},mop:{mord:vr,mop:vr,mrel:zn,minner:vr},mbin:{mord:Kr,mop:Kr,mopen:Kr,minner:Kr},mrel:{mord:zn,mop:zn,mopen:zn,minner:zn},mopen:{},mclose:{mop:vr,mbin:Kr,mrel:zn,minner:vr},mpunct:{mord:vr,mop:vr,mrel:zn,mopen:vr,mclose:vr,mpunct:vr,minner:vr},minner:{mord:vr,mop:vr,mbin:Kr,mrel:zn,mopen:vr,mpunct:vr,minner:vr}},qn={mord:{mop:vr},mop:{mord:vr,mop:vr},mbin:{},mrel:{},mopen:{},mclose:{mop:vr},mpunct:{},minner:{mop:vr}},Lr={},Zr={},Ci={};function Un(q){for(var l=q.type,d=q.names,f=q.props,g=q.handler,k=q.htmlBuilder,ae=q.mathmlBuilder,Re={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:g},Le=0;Le<d.length;++Le)Lr[d[Le]]=Re;l&&(k&&(Zr[l]=k),ae&&(Ci[l]=ae))}function Vr(q){var l=q.type,d=q.htmlBuilder,f=q.mathmlBuilder;Un({type:l,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:d,mathmlBuilder:f})}var jr=function(l){var d=lr(l,"ordgroup");return d?d.body:[l]},oi=it.makeSpan,Ai=["leftmost","mbin","mopen","mrel","mop","mpunct"],Li=["rightmost","mrel","mclose","mpunct"],ei={display:v.DISPLAY,text:v.TEXT,script:v.SCRIPT,scriptscript:v.SCRIPTSCRIPT},gi={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},li=function(l,d,f,g){g===void 0&&(g=[null,null]);for(var k=[],ae=0;ae<l.length;ae++){var Re=$r(l[ae],d);if(Re instanceof Ut){var Le=Re.children;k.push.apply(k,Le)}else k.push(Re)}if(!f)return k;var qe=d;if(l.length===1){var dt=lr(l[0],"sizing")||lr(l[0],"styling");dt&&(dt.type==="sizing"?qe=d.havingSize(dt.size):dt.type==="styling"&&(qe=d.havingStyle(ei[dt.style])))}var Ct=oi([g[0]||"leftmost"],[],d),Kt=oi([g[1]||"rightmost"],[],d);return Ri(k,function(pn,jt){var Jt=jt.classes[0],un=pn.classes[0];Jt==="mbin"&&B.contains(Li,un)?jt.classes[0]="mord":un==="mbin"&&B.contains(Ai,Jt)&&(pn.classes[0]="mord")},{node:Ct},Kt),Ri(k,function(pn,jt){var Jt=Ti(jt),un=Ti(pn),Cn=Jt&&un?pn.hasClass("mtight")?qn[Jt][un]:Sn[Jt][un]:null;if(Cn)return it.makeGlue(Cn,qe)},{node:Ct},Kt),k},Ri=function q(l,d,f,g){g&&l.push(g);for(var k=0;k<l.length;k++){var ae=l[k],Re=Ii(ae);if(Re){q(Re.children,d,f);continue}if(ae.classes[0]!=="mspace"){var Le=d(ae,f.node);Le&&(f.insertAfter?f.insertAfter(Le):(l.unshift(Le),k++)),f.node=ae,f.insertAfter=function(qe){return function(dt){l.splice(qe+1,0,dt),k++}}(k)}}g&&l.pop()},Ii=function(l){return l instanceof Ut||l instanceof Y?l:null},ji=function q(l,d){var f=Ii(l);if(f){var g=f.children;if(g.length){if(d==="right")return q(g[g.length-1],"right");if(d==="left")return q(g[0],"left")}}return l},Ti=function(l,d){return l?(d&&(l=ji(l,d)),gi[l.classes[0]]||null):null},Gi=function(l,d){var f=["nulldelimiter"].concat(l.baseSizingClasses());return oi(d.concat(f))},$r=function(l,d,f){if(!l)return oi();if(Zr[l.type]){var g=Zr[l.type](l,d);if(f&&d.size!==f.size){g=oi(d.sizingClasses(f),[g],d);var k=d.sizeMultiplier/f.sizeMultiplier;g.height*=k,g.depth*=k}return g}else throw new H("Got group of unknown type: '"+l.type+"'")};function aa(q,l){var d=oi(["base"],q,l),f=oi(["strut"]);return f.style.height=d.height+d.depth+"em",f.style.verticalAlign=-d.depth+"em",d.children.unshift(f),d}function ga(q,l){var d=null;q.length===1&&q[0].type==="tag"&&(d=q[0].tag,q=q[0].body);for(var f=li(q,l,!0),g=[],k=[],ae=0;ae<f.length;ae++)if(k.push(f[ae]),f[ae].hasClass("mbin")||f[ae].hasClass("mrel")||f[ae].hasClass("allowbreak")){for(var Re=!1;ae<f.length-1&&f[ae+1].hasClass("mspace")&&!f[ae+1].hasClass("newline");)ae++,k.push(f[ae]),f[ae].hasClass("nobreak")&&(Re=!0);Re||(g.push(aa(k,l)),k=[])}else f[ae].hasClass("newline")&&(k.pop(),k.length>0&&(g.push(aa(k,l)),k=[]),g.push(f[ae]));k.length>0&&g.push(aa(k,l));var Le;d&&(Le=aa(li(d,l,!0)),Le.classes=["tag"],g.push(Le));var qe=oi(["katex-html"],g);if(qe.setAttribute("aria-hidden","true"),Le){var dt=Le.children[0];dt.style.height=qe.height+qe.depth+"em",dt.style.verticalAlign=-qe.depth+"em"}return qe}function ua(q){return new Ut(q)}var vi=function(){function q(d,f){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=d,this.attributes={},this.children=f||[]}var l=q.prototype;return l.setAttribute=function(f,g){this.attributes[f]=g},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 g in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,g)&&f.setAttribute(g,this.attributes[g]);for(var k=0;k<this.children.length;k++)f.appendChild(this.children[k].toNode());return f},l.toMarkup=function(){var f="<"+this.type;for(var g in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,g)&&(f+=" "+g+'="',f+=B.escape(this.attributes[g]),f+='"');f+=">";for(var k=0;k<this.children.length;k++)f+=this.children[k].toMarkup();return f+="</"+this.type+">",f},l.toText=function(){return this.children.map(function(f){return f.toText()}).join("")},q}(),ca=function(){function q(d){this.text=void 0,this.text=d}var l=q.prototype;return l.toNode=function(){return document.createTextNode(this.text)},l.toMarkup=function(){return B.escape(this.toText())},l.toText=function(){return this.text},q}(),wa=function(){function q(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=q.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:" "},q}(),Pn={MathNode:vi,TextNode:ca,SpaceNode:wa,newDocumentFragment:ua},Mi=function(l,d,f){return At[d][l]&&At[d][l].replace&&l.charCodeAt(0)!==55349&&!(gn.hasOwnProperty(l)&&f&&(f.fontFamily&&f.fontFamily.substr(4,2)==="tt"||f.font&&f.font.substr(4,2)==="tt"))&&(l=At[d][l].replace),new Pn.TextNode(l)},na=function(l){return l.length===1?l[0]:new Pn.MathNode("mrow",l)},ur=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 g=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 k=l.text;if(B.contains(["\\imath","\\jmath"],k))return null;At[g][k]&&At[g][k].replace&&(k=At[g][k].replace);var ae=it.fontMap[f].fontName;return rt(k,ae,g)?it.fontMap[f].variant:null},_r=function(l,d,f){if(l.length===1){var g=Zn(l[0],d);return f&&g instanceof vi&&g.type==="mo"&&(g.setAttribute("lspace","0em"),g.setAttribute("rspace","0em")),[g]}for(var k=[],ae,Re=0;Re<l.length;Re++){var Le=Zn(l[Re],d);if(Le instanceof vi&&ae instanceof vi){if(Le.type==="mtext"&&ae.type==="mtext"&&Le.getAttribute("mathvariant")===ae.getAttribute("mathvariant")){var qe;(qe=ae.children).push.apply(qe,Le.children);continue}else if(Le.type==="mn"&&ae.type==="mn"){var dt;(dt=ae.children).push.apply(dt,Le.children);continue}else if(Le.type==="mi"&&Le.children.length===1&&ae.type==="mn"){var Ct=Le.children[0];if(Ct instanceof ca&&Ct.text==="."){var Kt;(Kt=ae.children).push.apply(Kt,Le.children);continue}}else if(ae.type==="mi"&&ae.children.length===1){var pn=ae.children[0];if(pn instanceof ca&&pn.text==="\u0338"&&(Le.type==="mo"||Le.type==="mi"||Le.type==="mn")){var jt=Le.children[0];jt instanceof ca&&jt.text.length>0&&(jt.text=jt.text.slice(0,1)+"\u0338"+jt.text.slice(1),k.pop())}}}k.push(Le),ae=Le}return k},cr=function(l,d,f){return na(_r(l,d,f))},Zn=function(l,d){if(!l)return new Pn.MathNode("mrow");if(Ci[l.type]){var f=Ci[l.type](l,d);return f}else throw new H("Got group of unknown type: '"+l.type+"'")};function Nr(q,l,d,f){var g=_r(q,d),k;g.length===1&&g[0]instanceof vi&&B.contains(["mrow","mtable"],g[0].type)?k=g[0]:k=new Pn.MathNode("mrow",g);var ae=new Pn.MathNode("annotation",[new Pn.TextNode(l)]);ae.setAttribute("encoding","application/x-tex");var Re=new Pn.MathNode("semantics",[k,ae]),Le=new Pn.MathNode("math",[Re]);Le.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var qe=f?"katex":"katex-mathml";return it.makeSpan([qe],[Le])}var Yr=function(l){return new tr({style:l.displayMode?v.DISPLAY:v.TEXT,maxSize:l.maxSize,minRuleThickness:l.minRuleThickness})},Ni=function(l,d){if(d.displayMode){var f=["katex-display"];d.leqno&&f.push("leqno"),d.fleqn&&f.push("fleqn"),l=it.makeSpan(f,[l])}return l},yi=function(l,d,f){var g=Yr(f),k;if(f.output==="mathml")return Nr(l,d,g,!0);if(f.output==="html"){var ae=ga(l,g);k=it.makeSpan(["katex"],[ae])}else{var Re=Nr(l,d,g,!1),Le=ga(l,g);k=it.makeSpan(["katex"],[Re,Le])}return Ni(k,f)},Oi=function(l,d,f){var g=Yr(f),k=ga(l,g),ae=it.makeSpan(["katex"],[k]);return Ni(ae,f)},Bi=yi,va={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"},Ca=function(l){var d=new Pn.MathNode("mo",[new Pn.TextNode(va[l.substr(1)])]);return d.setAttribute("stretchy","true"),d},Za={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]},da=function(l){return l.type==="ordgroup"?l.body.length:1},fa=function(l,d){function f(){var Le=4e5,qe=l.label.substr(1);if(B.contains(["widehat","widecheck","widetilde","utilde"],qe)){var dt=l,Ct=da(dt.base),Kt,pn,jt;if(Ct>5)qe==="widehat"||qe==="widecheck"?(Kt=420,Le=2364,jt=.42,pn=qe+"4"):(Kt=312,Le=2340,jt=.34,pn="tilde4");else{var Jt=[1,1,2,2,3,3][Ct];qe==="widehat"||qe==="widecheck"?(Le=[0,1062,2364,2364,2364][Jt],Kt=[0,239,300,360,420][Jt],jt=[0,.24,.3,.3,.36,.42][Jt],pn=qe+Jt):(Le=[0,600,1033,2339,2340][Jt],Kt=[0,260,286,306,312][Jt],jt=[0,.26,.286,.3,.306,.34][Jt],pn="tilde"+Jt)}var un=new le(pn),Cn=new I([un],{width:"100%",height:jt+"em",viewBox:"0 0 "+Le+" "+Kt,preserveAspectRatio:"none"});return{span:it.makeSvgSpan([],[Cn],d),minWidth:0,height:jt}}else{var ir=[],Tn=Za[qe],er=Tn[0],Sr=Tn[1],wr=Tn[2],ri=wr/1e3,ii=er.length,Zi,ci;if(ii===1){var ai=Tn[3];Zi=["hide-tail"],ci=[ai]}else if(ii===2)Zi=["halfarrow-left","halfarrow-right"],ci=["xMinYMin","xMaxYMin"];else if(ii===3)Zi=["brace-left","brace-center","brace-right"],ci=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
`+ii+" children.");for(var bi=0;bi<ii;bi++){var Ji=new le(er[bi]),_a=new I([Ji],{width:"400em",height:ri+"em",viewBox:"0 0 "+Le+" "+wr,preserveAspectRatio:ci[bi]+" slice"}),zr=it.makeSvgSpan([Zi[bi]],[_a],d);if(ii===1)return{span:zr,minWidth:Sr,height:ri};zr.style.height=ri+"em",ir.push(zr)}return{span:it.makeSpan(["stretchy"],ir,d),minWidth:Sr,height:ri}}}var g=f(),k=g.span,ae=g.minWidth,Re=g.height;return k.height=Re,k.style.height=Re+"em",ae>0&&(k.style.minWidth=ae+"em"),k},dr=function(l,d,f,g){var k,ae=l.height+l.depth+2*f;if(/fbox|color/.test(d)){if(k=it.makeSpan(["stretchy",d],[],g),d==="fbox"){var Re=g.color&&g.getColor();Re&&(k.style.borderColor=Re)}}else{var Le=[];/^[bx]cancel$/.test(d)&&Le.push(new re({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(d)&&Le.push(new re({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var qe=new I(Le,{width:"100%",height:ae+"em"});k=it.makeSvgSpan([],[qe],g)}return k.height=ae,k.style.height=ae+"em",k},sr={encloseSpan:dr,mathMLnode:Ca,svgSpan:fa},Xr=function(l,d){var f,g,k=lr(l,"supsub"),ae;k?(g=Fn(k.base,"accent"),f=g.base,k.base=f,ae=Ce($r(k,d)),k.base=g):(g=Fn(l,"accent"),f=g.base);var Re=$r(f,d.havingCrampedStyle()),Le=g.isShifty&&B.isCharacterBox(f),qe=0;if(Le){var dt=B.getBaseElem(f),Ct=$r(dt,d.havingCrampedStyle());qe=J(Ct).skew}var Kt=Math.min(Re.height,d.fontMetrics().xHeight),pn;if(g.isStretchy)pn=sr.svgSpan(g,d),pn=it.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Re},{type:"elem",elem:pn,wrapperClasses:["svg-align"],wrapperStyle:qe>0?{width:"calc(100% - "+2*qe+"em)",marginLeft:2*qe+"em"}:void 0}]},d);else{var jt,Jt;g.label==="\\vec"?(jt=it.staticSvg("vec",d),Jt=it.svgData.vec[1]):(jt=it.makeOrd({mode:g.mode,text:g.label},d,"textord"),jt=J(jt),jt.italic=0,Jt=jt.width),pn=it.makeSpan(["accent-body"],[jt]);var un=g.label==="\\textcircled";un&&(pn.classes.push("accent-full"),Kt=Re.height);var Cn=qe;un||(Cn-=Jt/2),pn.style.left=Cn+"em",g.label==="\\textcircled"&&(pn.style.top=".2em"),pn=it.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Re},{type:"kern",size:-Kt},{type:"elem",elem:pn}]},d)}var ir=it.makeSpan(["mord","accent"],[pn],d);return ae?(ae.children[0]=ir,ae.height=Math.max(ir.height,ae.height),ae.classes[0]="mord",ae):ir},zi=function(l,d){var f=l.isStretchy?sr.mathMLnode(l.label):new Pn.MathNode("mo",[Mi(l.label,l.mode)]),g=new Pn.MathNode("mover",[Zn(l.base,d),f]);return g.setAttribute("accent","true"),g},ui=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(q){return"\\"+q}).join("|"));Un({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],g=!ui.test(l.funcName),k=!g||l.funcName==="\\widehat"||l.funcName==="\\widetilde"||l.funcName==="\\widecheck";return{type:"accent",mode:l.parser.mode,label:l.funcName,isStretchy:g,isShifty:k,base:f}},htmlBuilder:Xr,mathmlBuilder:zi}),Un({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:Xr,mathmlBuilder:zi}),Un({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(l,d){var f=l.parser,g=l.funcName,k=d[0];return{type:"accentUnder",mode:f.mode,label:g,base:k}},htmlBuilder:function(l,d){var f=$r(l.base,d),g=sr.svgSpan(l,d),k=l.label==="\\utilde"?.12:0,ae=it.makeVList({positionType:"bottom",positionData:g.height+k,children:[{type:"elem",elem:g,wrapperClasses:["svg-align"]},{type:"kern",size:k},{type:"elem",elem:f}]},d);return it.makeSpan(["mord","accentunder"],[ae],d)},mathmlBuilder:function(l,d){var f=sr.mathMLnode(l.label),g=new Pn.MathNode("munder",[Zn(l.base,d),f]);return g.setAttribute("accentunder","true"),g}});var sa=function(l){var d=new Pn.MathNode("mpadded",l?[l]:[]);return d.setAttribute("width","+0.6em"),d.setAttribute("lspace","0.3em"),d};Un({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 g=l.parser,k=l.funcName;return{type:"xArrow",mode:g.mode,label:k,body:d[0],below:f[0]}},htmlBuilder:function(l,d){var f=d.style,g=d.havingStyle(f.sup()),k=it.wrapFragment($r(l.body,g,d),d);k.classes.push("x-arrow-pad");var ae;l.below&&(g=d.havingStyle(f.sub()),ae=it.wrapFragment($r(l.below,g,d),d),ae.classes.push("x-arrow-pad"));var Re=sr.svgSpan(l,d),Le=-d.fontMetrics().axisHeight+.5*Re.height,qe=-d.fontMetrics().axisHeight-.5*Re.height-.111;(k.depth>.25||l.label==="\\xleftequilibrium")&&(qe-=k.depth);var dt;if(ae){var Ct=-d.fontMetrics().axisHeight+ae.height+.5*Re.height+.111;dt=it.makeVList({positionType:"individualShift",children:[{type:"elem",elem:k,shift:qe},{type:"elem",elem:Re,shift:Le},{type:"elem",elem:ae,shift:Ct}]},d)}else dt=it.makeVList({positionType:"individualShift",children:[{type:"elem",elem:k,shift:qe},{type:"elem",elem:Re,shift:Le}]},d);return dt.children[0].children[0].children[1].classes.push("svg-align"),it.makeSpan(["mrel","x-arrow"],[dt],d)},mathmlBuilder:function(l,d){var f=sr.mathMLnode(l.label),g;if(l.body){var k=sa(Zn(l.body,d));if(l.below){var ae=sa(Zn(l.below,d));g=new Pn.MathNode("munderover",[f,ae,k])}else g=new Pn.MathNode("mover",[f,k])}else if(l.below){var Re=sa(Zn(l.below,d));g=new Pn.MathNode("munder",[f,Re])}else g=sa(),g=new Pn.MathNode("mover",[f,g]);return g}}),Un({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){for(var f=l.parser,g=Fn(d[0],"ordgroup"),k=g.body,ae="",Re=0;Re<k.length;Re++){var Le=Fn(k[Re],"textord");ae+=Le.text}var qe=parseInt(ae);if(isNaN(qe))throw new H("\\@char has non-numeric argument "+ae);return{type:"textord",mode:f.mode,text:String.fromCharCode(qe)}}});var ja=function(l,d){var f=li(l.body,d.withColor(l.color),!1);return it.makeFragment(f)},Ka=function(l,d){var f=_r(l.body,d.withColor(l.color)),g=new Pn.MathNode("mstyle",f);return g.setAttribute("mathcolor",l.color),g};Un({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(l,d){var f=l.parser,g=Fn(d[0],"color-token").color,k=d[1];return{type:"color",mode:f.mode,color:g,body:jr(k)}},htmlBuilder:ja,mathmlBuilder:Ka}),Un({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(l,d){var f=l.parser,g=l.breakOnTokenText,k=Fn(d[0],"color-token").color;f.gullet.macros.set("\\current@color",k);var ae=f.parseExpression(!0,g);return{type:"color",mode:f.mode,color:k,body:ae}},htmlBuilder:ja,mathmlBuilder:Ka}),Un({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(l,d,f){var g=l.parser,k=l.funcName,ae=f[0],Re=k==="\\cr",Le=!1;return Re||(g.settings.displayMode&&g.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?Le=!1:Le=!0),{type:"cr",mode:g.mode,newLine:Le,newRow:Re,size:ae&&Fn(ae,"size").value}},htmlBuilder:function(l,d){if(l.newRow)throw new H("\\cr valid only within a tabular/array environment");var f=it.makeSpan(["mspace"],[],d);return l.newLine&&(f.classes.push("newline"),l.size&&(f.style.marginTop=ft(l.size,d)+"em")),f},mathmlBuilder:function(l,d){var f=new Pn.MathNode("mspace");return l.newLine&&(f.setAttribute("linebreak","newline"),l.size&&f.setAttribute("height",ft(l.size,d)+"em")),f}});var ya=function(l,d,f){var g=At.math[l]&&At.math[l].replace,k=rt(g||l,d,f);if(!k)throw new Error("Unsupported symbol "+l+" and font size "+d+".");return k},as=function(l,d,f,g){var k=f.havingBaseStyle(d),ae=it.makeSpan(g.concat(k.sizingClasses(f)),[l],f),Re=k.sizeMultiplier/f.sizeMultiplier;return ae.height*=Re,ae.depth*=Re,ae.maxFontSize=k.sizeMultiplier,ae},ss=function(l,d,f){var g=d.havingBaseStyle(f),k=(1-d.sizeMultiplier/g.sizeMultiplier)*d.fontMetrics().axisHeight;l.classes.push("delimcenter"),l.style.top=k+"em",l.height-=k,l.depth+=k},os=function(l,d,f,g,k,ae){var Re=it.makeSymbol(l,"Main-Regular",k,g),Le=as(Re,d,g,ae);return f&&ss(Le,g,d),Le},ts=function(l,d,f,g){return it.makeSymbol(l,"Size"+d+"-Regular",f,g)},ls=function(l,d,f,g,k,ae){var Re=ts(l,d,k,g),Le=as(it.makeSpan(["delimsizing","size"+d],[Re],g),v.TEXT,g,ae);return f&&ss(Le,g,v.TEXT),Le},Aa=function(l,d,f){var g;d==="Size1-Regular"?g="delim-size1":g="delim-size4";var k=it.makeSpan(["delimsizinginner",g],[it.makeSpan([],[it.makeSymbol(l,d,f)])]);return{type:"elem",elem:k}},Xi={type:"kern",size:-.005},us=function(l,d,f,g,k,ae){var Re,Le,qe,dt;Re=qe=dt=l,Le=null;var Ct="Size1-Regular";l==="\\uparrow"?qe=dt="\u23D0":l==="\\Uparrow"?qe=dt="\u2016":l==="\\downarrow"?Re=qe="\u23D0":l==="\\Downarrow"?Re=qe="\u2016":l==="\\updownarrow"?(Re="\\uparrow",qe="\u23D0",dt="\\downarrow"):l==="\\Updownarrow"?(Re="\\Uparrow",qe="\u2016",dt="\\Downarrow"):l==="["||l==="\\lbrack"?(Re="\u23A1",qe="\u23A2",dt="\u23A3",Ct="Size4-Regular"):l==="]"||l==="\\rbrack"?(Re="\u23A4",qe="\u23A5",dt="\u23A6",Ct="Size4-Regular"):l==="\\lfloor"||l==="\u230A"?(qe=Re="\u23A2",dt="\u23A3",Ct="Size4-Regular"):l==="\\lceil"||l==="\u2308"?(Re="\u23A1",qe=dt="\u23A2",Ct="Size4-Regular"):l==="\\rfloor"||l==="\u230B"?(qe=Re="\u23A5",dt="\u23A6",Ct="Size4-Regular"):l==="\\rceil"||l==="\u2309"?(Re="\u23A4",qe=dt="\u23A5",Ct="Size4-Regular"):l==="("||l==="\\lparen"?(Re="\u239B",qe="\u239C",dt="\u239D",Ct="Size4-Regular"):l===")"||l==="\\rparen"?(Re="\u239E",qe="\u239F",dt="\u23A0",Ct="Size4-Regular"):l==="\\{"||l==="\\lbrace"?(Re="\u23A7",Le="\u23A8",dt="\u23A9",qe="\u23AA",Ct="Size4-Regular"):l==="\\}"||l==="\\rbrace"?(Re="\u23AB",Le="\u23AC",dt="\u23AD",qe="\u23AA",Ct="Size4-Regular"):l==="\\lgroup"||l==="\u27EE"?(Re="\u23A7",dt="\u23A9",qe="\u23AA",Ct="Size4-Regular"):l==="\\rgroup"||l==="\u27EF"?(Re="\u23AB",dt="\u23AD",qe="\u23AA",Ct="Size4-Regular"):l==="\\lmoustache"||l==="\u23B0"?(Re="\u23A7",dt="\u23AD",qe="\u23AA",Ct="Size4-Regular"):(l==="\\rmoustache"||l==="\u23B1")&&(Re="\u23AB",dt="\u23A9",qe="\u23AA",Ct="Size4-Regular");var Kt=ya(Re,Ct,k),pn=Kt.height+Kt.depth,jt=ya(qe,Ct,k),Jt=jt.height+jt.depth,un=ya(dt,Ct,k),Cn=un.height+un.depth,ir=0,Tn=1;if(Le!==null){var er=ya(Le,Ct,k);ir=er.height+er.depth,Tn=2}var Sr=pn+Cn+ir,wr=Math.max(0,Math.ceil((d-Sr)/(Tn*Jt))),ri=Sr+wr*Tn*Jt,ii=g.fontMetrics().axisHeight;f&&(ii*=g.sizeMultiplier);var Zi=ri/2-ii,ci=(wr+1)*.005-Jt,ai=[];if(ai.push(Aa(dt,Ct,k)),Le===null)for(var bi=0;bi<wr;bi++)ai.push(Xi),ai.push(Aa(qe,Ct,k));else{for(var Ji=0;Ji<wr;Ji++)ai.push(Xi),ai.push(Aa(qe,Ct,k));ai.push({type:"kern",size:ci}),ai.push(Aa(qe,Ct,k)),ai.push(Xi),ai.push(Aa(Le,Ct,k));for(var _a=0;_a<wr;_a++)ai.push(Xi),ai.push(Aa(qe,Ct,k))}ai.push({type:"kern",size:ci}),ai.push(Aa(qe,Ct,k)),ai.push(Xi),ai.push(Aa(Re,Ct,k));var zr=g.havingBaseStyle(v.TEXT),qr=it.makeVList({positionType:"bottom",positionData:Zi,children:ai},zr);return as(it.makeSpan(["delimsizing","mult"],[qr],zr),v.TEXT,g,ae)},ns=80,ba=.08,xa=function(l,d,f,g,k){var ae=Yt(l,g,f),Re=new le(l,ae),Le=new I([Re],{width:"400em",height:d+"em",viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});return it.makeSvgSpan(["hide-tail"],[Le],k)},ti=function(l,d){var f=d.havingBaseSizing(),g=Fa("\\surd",l*f.sizeMultiplier,la,f),k=f.sizeMultiplier,ae=Math.max(0,d.minRuleThickness-d.fontMetrics().sqrtRuleThickness),Re,Le=0,qe=0,dt=0,Ct;return g.type==="small"?(dt=1e3+1e3*ae+ns,l<1?k=1:l<1.4&&(k=.7),Le=(1+ae+ba)/k,qe=(1+ae)/k,Re=xa("sqrtMain",Le,dt,ae,d),Re.style.minWidth="0.853em",Ct=.833/k):g.type==="large"?(dt=(1e3+ns)*Pi[g.size],qe=(Pi[g.size]+ae)/k,Le=(Pi[g.size]+ae+ba)/k,Re=xa("sqrtSize"+g.size,Le,dt,ae,d),Re.style.minWidth="1.02em",Ct=1/k):(Le=l+ae+ba,qe=l+ae,dt=Math.floor(1e3*l+ae)+ns,Re=xa("sqrtTall",Le,dt,ae,d),Re.style.minWidth="0.742em",Ct=1.056),Re.height=qe,Re.style.height=Le+"em",{span:Re,advanceWidth:Ct,ruleWidth:(d.fontMetrics().sqrtRuleThickness+ae)*k}},Br=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],ia=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],Ui=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Pi=[0,1.2,1.8,2.4,3],oa=function(l,d,f,g,k){if(l==="<"||l==="\\lt"||l==="\u27E8"?l="\\langle":(l===">"||l==="\\gt"||l==="\u27E9")&&(l="\\rangle"),B.contains(Br,l)||B.contains(Ui,l))return ls(l,d,!1,f,g,k);if(B.contains(ia,l))return us(l,Pi[d],!1,f,g,k);throw new H("Illegal delimiter: '"+l+"'")},pi=[{type:"small",style:v.SCRIPTSCRIPT},{type:"small",style:v.SCRIPT},{type:"small",style:v.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Oa=[{type:"small",style:v.SCRIPTSCRIPT},{type:"small",style:v.SCRIPT},{type:"small",style:v.TEXT},{type:"stack"}],la=[{type:"small",style:v.SCRIPTSCRIPT},{type:"small",style:v.SCRIPT},{type:"small",style:v.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],La=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.")},Fa=function(l,d,f,g){for(var k=Math.min(2,3-g.style.size),ae=k;ae<f.length&&f[ae].type!=="stack";ae++){var Re=ya(l,La(f[ae]),"math"),Le=Re.height+Re.depth;if(f[ae].type==="small"){var qe=g.havingBaseStyle(f[ae].style);Le*=qe.sizeMultiplier}if(Le>d)return f[ae]}return f[f.length-1]},Si=function(l,d,f,g,k,ae){l==="<"||l==="\\lt"||l==="\u27E8"?l="\\langle":(l===">"||l==="\\gt"||l==="\u27E9")&&(l="\\rangle");var Re;B.contains(Ui,l)?Re=pi:B.contains(Br,l)?Re=la:Re=Oa;var Le=Fa(l,d,Re,g);return Le.type==="small"?os(l,Le.style,f,g,k,ae):Le.type==="large"?ls(l,Le.size,f,g,k,ae):us(l,d,f,g,k,ae)},vs=function(l,d,f,g,k,ae){var Re=g.fontMetrics().axisHeight*g.sizeMultiplier,Le=901,qe=5/g.fontMetrics().ptPerEm,dt=Math.max(d-Re,f+Re),Ct=Math.max(dt/500*Le,2*dt-qe);return Si(l,Ct,!0,g,k,ae)},Ta={sqrtImage:ti,sizedDelim:oa,customSizedDelim:Si,leftRightDelim:vs},Ga={"\\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}},Ts=["(","\\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 Xa(q,l){var d=Ur(q);if(d&&B.contains(Ts,d.text))return d;throw new H("Invalid delimiter: '"+(d?d.text:JSON.stringify(q))+"' after '"+l.funcName+"'",q)}Un({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=Xa(d[0],l);return{type:"delimsizing",mode:l.parser.mode,size:Ga[l.funcName].size,mclass:Ga[l.funcName].mclass,delim:f.text}},htmlBuilder:function(l,d){return l.delim==="."?it.makeSpan([l.mclass]):Ta.sizedDelim(l.delim,l.size,d,l.mode,[l.mclass])},mathmlBuilder:function(l){var d=[];l.delim!=="."&&d.push(Mi(l.delim,l.mode));var f=new Pn.MathNode("mo",d);return l.mclass==="mopen"||l.mclass==="mclose"?f.setAttribute("fence","true"):f.setAttribute("fence","false"),f}});function cs(q){if(!q.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Un({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 H("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:l.parser.mode,delim:Xa(d[0],l).text,color:f}}}),Un({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(l,d){var f=Xa(d[0],l),g=l.parser;++g.leftrightDepth;var k=g.parseExpression(!1);--g.leftrightDepth,g.expect("\\right",!1);var ae=Fn(g.parseFunction(),"leftright-right");return{type:"leftright",mode:g.mode,body:k,left:f.text,right:ae.delim,rightColor:ae.color}},htmlBuilder:function(l,d){cs(l);for(var f=li(l.body,d,!0,["mopen","mclose"]),g=0,k=0,ae=!1,Re=0;Re<f.length;Re++)f[Re].isMiddle?ae=!0:(g=Math.max(f[Re].height,g),k=Math.max(f[Re].depth,k));g*=d.sizeMultiplier,k*=d.sizeMultiplier;var Le;if(l.left==="."?Le=Gi(d,["mopen"]):Le=Ta.leftRightDelim(l.left,g,k,d,l.mode,["mopen"]),f.unshift(Le),ae)for(var qe=1;qe<f.length;qe++){var dt=f[qe],Ct=dt.isMiddle;Ct&&(f[qe]=Ta.leftRightDelim(Ct.delim,g,k,Ct.options,l.mode,[]))}var Kt;if(l.right===".")Kt=Gi(d,["mclose"]);else{var pn=l.rightColor?d.withColor(l.rightColor):d;Kt=Ta.leftRightDelim(l.right,g,k,pn,l.mode,["mclose"])}return f.push(Kt),it.makeSpan(["minner"],f,d)},mathmlBuilder:function(l,d){cs(l);var f=_r(l.body,d);if(l.left!=="."){var g=new Pn.MathNode("mo",[Mi(l.left,l.mode)]);g.setAttribute("fence","true"),f.unshift(g)}if(l.right!=="."){var k=new Pn.MathNode("mo",[Mi(l.right,l.mode)]);k.setAttribute("fence","true"),l.rightColor&&k.setAttribute("mathcolor",l.rightColor),f.push(k)}return na(f)}}),Un({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(l,d){var f=Xa(d[0],l);if(!l.parser.leftrightDepth)throw new H("\\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=Gi(d,[]);else{f=Ta.sizedDelim(l.delim,1,d,l.mode,[]);var g={delim:l.delim,options:d};f.isMiddle=g}return f},mathmlBuilder:function(l,d){var f=l.delim==="\\vert"||l.delim==="|"?Mi("|","text"):Mi(l.delim,l.mode),g=new Pn.MathNode("mo",[f]);return g.setAttribute("fence","true"),g.setAttribute("lspace","0.05em"),g.setAttribute("rspace","0.05em"),g}});var ys=function(l,d){var f=it.wrapFragment($r(l.body,d),d),g=l.label.substr(1),k=d.sizeMultiplier,ae,Re=0,Le=B.isCharacterBox(l.body);if(g==="sout")ae=it.makeSpan(["stretchy","sout"]),ae.height=d.fontMetrics().defaultRuleThickness/k,Re=-.5*d.fontMetrics().xHeight;else{/cancel/.test(g)?Le||f.classes.push("cancel-pad"):f.classes.push("boxpad");var qe=0,dt=0;/box/.test(g)?(dt=Math.max(d.fontMetrics().fboxrule,d.minRuleThickness),qe=d.fontMetrics().fboxsep+(g==="colorbox"?0:dt)):qe=Le?.2:0,ae=sr.encloseSpan(f,g,qe,d),/fbox|boxed|fcolorbox/.test(g)&&(ae.style.borderStyle="solid",ae.style.borderWidth=dt+"em"),Re=f.depth+qe,l.backgroundColor&&(ae.style.backgroundColor=l.backgroundColor,l.borderColor&&(ae.style.borderColor=l.borderColor))}var Ct;return l.backgroundColor?Ct=it.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ae,shift:Re},{type:"elem",elem:f,shift:0}]},d):Ct=it.makeVList({positionType:"individualShift",children:[{type:"elem",elem:f,shift:0},{type:"elem",elem:ae,shift:Re,wrapperClasses:/cancel/.test(g)?["svg-align"]:[]}]},d),/cancel/.test(g)&&(Ct.height=f.height,Ct.depth=f.depth),/cancel/.test(g)&&!Le?it.makeSpan(["mord","cancel-lap"],[Ct],d):it.makeSpan(["mord"],[Ct],d)},ds=function(l,d){var f=0,g=new Pn.MathNode(l.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Zn(l.body,d)]);switch(l.label){case"\\cancel":g.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":g.setAttribute("notation","downdiagonalstrike");break;case"\\sout":g.setAttribute("notation","horizontalstrike");break;case"\\fbox":g.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(f=d.fontMetrics().fboxsep*d.fontMetrics().ptPerEm,g.setAttribute("width","+"+2*f+"pt"),g.setAttribute("height","+"+2*f+"pt"),g.setAttribute("lspace",f+"pt"),g.setAttribute("voffset",f+"pt"),l.label==="\\fcolorbox"){var k=Math.max(d.fontMetrics().fboxrule,d.minRuleThickness);g.setAttribute("style","border: "+k+"em solid "+String(l.borderColor))}break;case"\\xcancel":g.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return l.backgroundColor&&g.setAttribute("mathbackground",l.backgroundColor),g};Un({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(l,d,f){var g=l.parser,k=l.funcName,ae=Fn(d[0],"color-token").color,Re=d[1];return{type:"enclose",mode:g.mode,label:k,backgroundColor:ae,body:Re}},htmlBuilder:ys,mathmlBuilder:ds}),Un({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(l,d,f){var g=l.parser,k=l.funcName,ae=Fn(d[0],"color-token").color,Re=Fn(d[1],"color-token").color,Le=d[2];return{type:"enclose",mode:g.mode,label:k,backgroundColor:Re,borderColor:ae,body:Le}},htmlBuilder:ys,mathmlBuilder:ds}),Un({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]}}}),Un({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(l,d,f){var g=l.parser,k=l.funcName,ae=d[0];return{type:"enclose",mode:g.mode,label:k,body:ae}},htmlBuilder:ys,mathmlBuilder:ds});var Ds={};function Pa(q){for(var l=q.type,d=q.names,f=q.props,g=q.handler,k=q.htmlBuilder,ae=q.mathmlBuilder,Re={type:l,numArgs:f.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:g},Le=0;Le<d.length;++Le)Ds[d[Le]]=Re;k&&(Zr[l]=k),ae&&(Ci[l]=ae)}function bs(q){var l=[];q.consumeSpaces();for(var d=q.fetch().text;d==="\\hline"||d==="\\hdashline";)q.consume(),l.push(d==="\\hdashline"),q.consumeSpaces(),d=q.fetch().text;return l}function wi(q,l,d){var f=l.hskipBeforeAndAfter,g=l.addJot,k=l.cols,ae=l.arraystretch,Re=l.colSeparationType;if(q.gullet.beginGroup(),q.gullet.macros.set("\\\\","\\cr"),!ae){var Le=q.gullet.expandMacroAsText("\\arraystretch");if(Le==null)ae=1;else if(ae=parseFloat(Le),!ae||ae<0)throw new H("Invalid \\arraystretch: "+Le)}q.gullet.beginGroup();var qe=[],dt=[qe],Ct=[],Kt=[];for(Kt.push(bs(q));;){var pn=q.parseExpression(!1,"\\cr");q.gullet.endGroup(),q.gullet.beginGroup(),pn={type:"ordgroup",mode:q.mode,body:pn},d&&(pn={type:"styling",mode:q.mode,style:d,body:[pn]}),qe.push(pn);var jt=q.fetch().text;if(jt==="&")q.consume();else if(jt==="\\end"){qe.length===1&&pn.type==="styling"&&pn.body[0].body.length===0&&dt.pop(),Kt.length<dt.length+1&&Kt.push([]);break}else if(jt==="\\cr"){var Jt=Fn(q.parseFunction(),"cr");Ct.push(Jt.size),Kt.push(bs(q)),qe=[],dt.push(qe)}else throw new H("Expected & or \\\\ or \\cr or \\end",q.nextToken)}return q.gullet.endGroup(),q.gullet.endGroup(),{type:"array",mode:q.mode,addJot:g,arraystretch:ae,body:dt,cols:k,rowGaps:Ct,hskipBeforeAndAfter:f,hLinesBeforeRow:Kt,colSeparationType:Re}}function _i(q){return q.substr(0,1)==="d"?"display":"text"}var mi=function(l,d){var f,g,k=l.body.length,ae=l.hLinesBeforeRow,Re=0,Le=new Array(k),qe=[],dt=Math.max(d.fontMetrics().arrayRuleWidth,d.minRuleThickness),Ct=1/d.fontMetrics().ptPerEm,Kt=5*Ct;if(l.colSeparationType&&l.colSeparationType==="small"){var pn=d.havingStyle(v.SCRIPT).sizeMultiplier;Kt=.2778*(pn/d.sizeMultiplier)}var jt=12*Ct,Jt=3*Ct,un=l.arraystretch*jt,Cn=.7*un,ir=.3*un,Tn=0;function er(Vi){for(var Ei=0;Ei<Vi.length;++Ei)Ei>0&&(Tn+=.25),qe.push({pos:Tn,isDashed:Vi[Ei]})}for(er(ae[0]),f=0;f<l.body.length;++f){var Sr=l.body[f],wr=Cn,ri=ir;Re<Sr.length&&(Re=Sr.length);var ii=new Array(Sr.length);for(g=0;g<Sr.length;++g){var Zi=$r(Sr[g],d);ri<Zi.depth&&(ri=Zi.depth),wr<Zi.height&&(wr=Zi.height),ii[g]=Zi}var ci=l.rowGaps[f],ai=0;ci&&(ai=ft(ci,d),ai>0&&(ai+=ir,ri<ai&&(ri=ai),ai=0)),l.addJot&&(ri+=Jt),ii.height=wr,ii.depth=ri,Tn+=wr,ii.pos=Tn,Tn+=ri+ai,Le[f]=ii,er(ae[f+1])}var bi=Tn/2+d.fontMetrics().axisHeight,Ji=l.cols||[],_a=[],zr,qr;for(g=0,qr=0;g<Re||qr<Ji.length;++g,++qr){for(var Qr=Ji[qr]||{},Di=!0;Qr.type==="separator";){if(Di||(zr=it.makeSpan(["arraycolsep"],[]),zr.style.width=d.fontMetrics().doubleRuleSep+"em",_a.push(zr)),Qr.separator==="|"||Qr.separator===":"){var ea=Qr.separator==="|"?"solid":"dashed",Hr=it.makeSpan(["vertical-separator"],[],d);Hr.style.height=Tn+"em",Hr.style.borderRightWidth=dt+"em",Hr.style.borderRightStyle=ea,Hr.style.margin="0 -"+dt/2+"em",Hr.style.verticalAlign=-(Tn-bi)+"em",_a.push(Hr)}else throw new H("Invalid separator type: "+Qr.separator);qr++,Qr=Ji[qr]||{},Di=!1}if(!(g>=Re)){var ra=void 0;(g>0||l.hskipBeforeAndAfter)&&(ra=B.deflt(Qr.pregap,Kt),ra!==0&&(zr=it.makeSpan(["arraycolsep"],[]),zr.style.width=ra+"em",_a.push(zr)));var ta=[];for(f=0;f<k;++f){var Ea=Le[f],$a=Ea[g];if($a){var Sa=Ea.pos-bi;$a.depth=Ea.depth,$a.height=Ea.height,ta.push({type:"elem",elem:$a,shift:Sa})}}ta=it.makeVList({positionType:"individualShift",children:ta},d),ta=it.makeSpan(["col-align-"+(Qr.align||"c")],[ta]),_a.push(ta),(g<Re-1||l.hskipBeforeAndAfter)&&(ra=B.deflt(Qr.postgap,Kt),ra!==0&&(zr=it.makeSpan(["arraycolsep"],[]),zr.style.width=ra+"em",_a.push(zr)))}}if(Le=it.makeSpan(["mtable"],_a),qe.length>0){for(var xs=it.makeLineSpan("hline",d,dt),qa=it.makeLineSpan("hdashline",d,dt),Ma=[{type:"elem",elem:Le,shift:0}];qe.length>0;){var ha=qe.pop(),pa=ha.pos-bi;ha.isDashed?Ma.push({type:"elem",elem:qa,shift:pa}):Ma.push({type:"elem",elem:xs,shift:pa})}Le=it.makeVList({positionType:"individualShift",children:Ma},d)}return it.makeSpan(["mord"],[Le],d)},Qi={c:"center ",l:"left ",r:"right "},qi=function(l,d){var f=new Pn.MathNode("mtable",l.body.map(function(Tn){return new Pn.MathNode("mtr",Tn.map(function(er){return new Pn.MathNode("mtd",[Zn(er,d)])}))})),g=l.arraystretch===.5?.1:.16+l.arraystretch-1+(l.addJot?.09:0);f.setAttribute("rowspacing",g+"em");var k="",ae="";if(l.cols){var Re=l.cols,Le="",qe=!1,dt=0,Ct=Re.length;Re[0].type==="separator"&&(k+="top ",dt=1),Re[Re.length-1].type==="separator"&&(k+="bottom ",Ct-=1);for(var Kt=dt;Kt<Ct;Kt++)Re[Kt].type==="align"?(ae+=Qi[Re[Kt].align],qe&&(Le+="none "),qe=!0):Re[Kt].type==="separator"&&qe&&(Le+=Re[Kt].separator==="|"?"solid ":"dashed ",qe=!1);f.setAttribute("columnalign",ae.trim()),/[sd]/.test(Le)&&f.setAttribute("columnlines",Le.trim())}if(l.colSeparationType==="align"){for(var pn=l.cols||[],jt="",Jt=1;Jt<pn.length;Jt++)jt+=Jt%2?"0em ":"1em ";f.setAttribute("columnspacing",jt.trim())}else l.colSeparationType==="alignat"?f.setAttribute("columnspacing","0em"):l.colSeparationType==="small"?f.setAttribute("columnspacing","0.2778em"):f.setAttribute("columnspacing","1em");var un="",Cn=l.hLinesBeforeRow;k+=Cn[0].length>0?"left ":"",k+=Cn[Cn.length-1].length>0?"right ":"";for(var ir=1;ir<Cn.length-1;ir++)un+=Cn[ir].length===0?"none ":Cn[ir][0]?"dashed ":"solid ";return/[sd]/.test(un)&&f.setAttribute("rowlines",un.trim()),k!==""&&(f=new Pn.MathNode("menclose",[f]),f.setAttribute("notation",k.trim())),l.arraystretch&&l.arraystretch<1&&(f=new Pn.MathNode("mstyle",[f]),f.setAttribute("scriptlevel","1")),f},fs=function(l,d){var f=[],g=wi(l.parser,{cols:f,addJot:!0},"display"),k,ae=0,Re={type:"ordgroup",mode:l.mode,body:[]},Le=lr(d[0],"ordgroup");if(Le){for(var qe="",dt=0;dt<Le.body.length;dt++){var Ct=Fn(Le.body[dt],"textord");qe+=Ct.text}k=Number(qe),ae=k*2}var Kt=!ae;g.body.forEach(function(un){for(var Cn=1;Cn<un.length;Cn+=2){var ir=Fn(un[Cn],"styling"),Tn=Fn(ir.body[0],"ordgroup");Tn.body.unshift(Re)}if(Kt)ae<un.length&&(ae=un.length);else{var er=un.length/2;if(k<er)throw new H("Too many math in a row: "+("expected "+k+", but got "+er),un[0])}});for(var pn=0;pn<ae;++pn){var jt="r",Jt=0;pn%2===1?jt="l":pn>0&&Kt&&(Jt=1),f[pn]={type:"align",align:jt,pregap:Jt,postgap:0}}return g.colSeparationType=Kt?"align":"alignat",g};Pa({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(l,d){var f=Ur(d[0]),g=f?[d[0]]:Fn(d[0],"ordgroup").body,k=g.map(function(Re){var Le=Mr(Re),qe=Le.text;if("lcr".indexOf(qe)!==-1)return{type:"align",align:qe};if(qe==="|")return{type:"separator",separator:"|"};if(qe===":")return{type:"separator",separator:":"};throw new H("Unknown column alignment: "+qe,Re)}),ae={cols:k,hskipBeforeAndAfter:!0};return wi(l.parser,ae,_i(l.envName))},htmlBuilder:mi,mathmlBuilder:qi}),Pa({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},g=wi(l.parser,f,_i(l.envName));return d?{type:"leftright",mode:l.mode,body:[g],left:d[0],right:d[1],rightColor:void 0}:g},htmlBuilder:mi,mathmlBuilder:qi}),Pa({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(l){var d={arraystretch:.5},f=wi(l.parser,d,"script");return f.colSeparationType="small",f},htmlBuilder:mi,mathmlBuilder:qi}),Pa({type:"array",names:["subarray"],props:{numArgs:1},handler:function(l,d){var f=Ur(d[0]),g=f?[d[0]]:Fn(d[0],"ordgroup").body,k=g.map(function(Re){var Le=Mr(Re),qe=Le.text;if("lc".indexOf(qe)!==-1)return{type:"align",align:qe};throw new H("Unknown column alignment: "+qe,Re)});if(k.length>1)throw new H("{subarray} can contain only one column");var ae={cols:k,hskipBeforeAndAfter:!1,arraystretch:.5};if(ae=wi(l.parser,ae,"script"),ae.body[0].length>1)throw new H("{subarray} can contain only one column");return ae},htmlBuilder:mi,mathmlBuilder:qi}),Pa({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=wi(l.parser,d,_i(l.envName));return{type:"leftright",mode:l.mode,body:[f],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:mi,mathmlBuilder:qi}),Pa({type:"array",names:["aligned"],props:{numArgs:0},handler:fs,htmlBuilder:mi,mathmlBuilder:qi}),Pa({type:"array",names:["gathered"],props:{numArgs:0},handler:function(l){var d={cols:[{type:"align",align:"c"}],addJot:!0};return wi(l.parser,d,"display")},htmlBuilder:mi,mathmlBuilder:qi}),Pa({type:"array",names:["alignedat"],props:{numArgs:1},handler:fs,htmlBuilder:mi,mathmlBuilder:qi}),Un({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(l,d){throw new H(l.funcName+" valid only within array environment")}});var Qa=Ds,hs=Qa;Un({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(l,d){var f=l.parser,g=l.funcName,k=d[0];if(k.type!=="ordgroup")throw new H("Invalid environment name",k);for(var ae="",Re=0;Re<k.body.length;++Re)ae+=Fn(k.body[Re],"textord").text;if(g==="\\begin"){if(!hs.hasOwnProperty(ae))throw new H("No such environment: "+ae,k);var Le=hs[ae],qe=f.parseArguments("\\begin{"+ae+"}",Le),dt=qe.args,Ct=qe.optArgs,Kt={mode:f.mode,envName:ae,parser:f},pn=Le.handler(Kt,dt,Ct);f.expect("\\end",!1);var jt=f.nextToken,Jt=Fn(f.parseFunction(),"environment");if(Jt.name!==ae)throw new H("Mismatch: \\begin{"+ae+"} matched by \\end{"+Jt.name+"}",jt);return pn}return{type:"environment",mode:f.mode,name:ae,nameGroup:k}}});var Ls=it.makeSpan;function ps(q,l){var d=li(q.body,l,!0);return Ls([q.mclass],d,l)}function ms(q,l){var d,f=_r(q.body,l);return q.mclass==="minner"?Pn.newDocumentFragment(f):(q.mclass==="mord"?q.isCharacterBox?(d=f[0],d.type="mi"):d=new Pn.MathNode("mi",f):(q.isCharacterBox?(d=f[0],d.type="mo"):d=new Pn.MathNode("mo",f),q.mclass==="mbin"?(d.attributes.lspace="0.22em",d.attributes.rspace="0.22em"):q.mclass==="mpunct"?(d.attributes.lspace="0em",d.attributes.rspace="0.17em"):(q.mclass==="mopen"||q.mclass==="mclose")&&(d.attributes.lspace="0em",d.attributes.rspace="0em")),d)}Un({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(l,d){var f=l.parser,g=l.funcName,k=d[0];return{type:"mclass",mode:f.mode,mclass:"m"+g.substr(5),body:jr(k),isCharacterBox:B.isCharacterBox(k)}},htmlBuilder:ps,mathmlBuilder:ms});var wn=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"};Un({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(l,d){var f=l.parser;return{type:"mclass",mode:f.mode,mclass:wn(d[0]),body:[d[1]],isCharacterBox:B.isCharacterBox(d[1])}}}),Un({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(l,d){var f=l.parser,g=l.funcName,k=d[1],ae=d[0],Re;g!=="\\stackrel"?Re=wn(k):Re="mrel";var Le={type:"op",mode:k.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:g!=="\\stackrel",body:jr(k)},qe={type:"supsub",mode:ae.mode,base:Le,sup:g==="\\underset"?null:ae,sub:g==="\\underset"?ae:null};return{type:"mclass",mode:f.mode,mclass:Re,body:[qe],isCharacterBox:B.isCharacterBox(qe)}},htmlBuilder:ps,mathmlBuilder:ms});var As=function(l,d){var f=l.font,g=d.withFont(f);return $r(l.body,g)},$s=function(l,d){var f=l.font,g=d.withFont(f);return Zn(l.body,g)},go={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Un({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,g=l.funcName,k=d[0],ae=g;return ae in go&&(ae=go[ae]),{type:"font",mode:f.mode,font:ae.slice(1),body:k}},htmlBuilder:As,mathmlBuilder:$s}),Un({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(l,d){var f=l.parser,g=d[0],k=B.isCharacterBox(g);return{type:"mclass",mode:f.mode,mclass:wn(g),body:[{type:"font",mode:f.mode,font:"boldsymbol",body:g}],isCharacterBox:k}}}),Un({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(l,d){var f=l.parser,g=l.funcName,k=l.breakOnTokenText,ae=f.mode,Re=f.parseExpression(!0,k),Le="math"+g.slice(1);return{type:"font",mode:ae,font:Le,body:{type:"ordgroup",mode:f.mode,body:Re}}},htmlBuilder:As,mathmlBuilder:$s});var Xs=function(l,d){var f=d;return l==="display"?f=f.id>=v.SCRIPT.id?f.text():v.DISPLAY:l==="text"&&f.size===v.DISPLAY.size?f=v.TEXT:l==="script"?f=v.SCRIPT:l==="scriptscript"&&(f=v.SCRIPTSCRIPT),f},zs=function(l,d){var f=Xs(l.size,d.style),g=f.fracNum(),k=f.fracDen(),ae;ae=d.havingStyle(g);var Re=$r(l.numer,ae,d);if(l.continued){var Le=8.5/d.fontMetrics().ptPerEm,qe=3.5/d.fontMetrics().ptPerEm;Re.height=Re.height<Le?Le:Re.height,Re.depth=Re.depth<qe?qe:Re.depth}ae=d.havingStyle(k);var dt=$r(l.denom,ae,d),Ct,Kt,pn;l.hasBarLine?(l.barSize?(Kt=ft(l.barSize,d),Ct=it.makeLineSpan("frac-line",d,Kt)):Ct=it.makeLineSpan("frac-line",d),Kt=Ct.height,pn=Ct.height):(Ct=null,Kt=0,pn=d.fontMetrics().defaultRuleThickness);var jt,Jt,un;f.size===v.DISPLAY.size||l.size==="display"?(jt=d.fontMetrics().num1,Kt>0?Jt=3*pn:Jt=7*pn,un=d.fontMetrics().denom1):(Kt>0?(jt=d.fontMetrics().num2,Jt=pn):(jt=d.fontMetrics().num3,Jt=3*pn),un=d.fontMetrics().denom2);var Cn;if(Ct){var Tn=d.fontMetrics().axisHeight;jt-Re.depth-(Tn+.5*Kt)<Jt&&(jt+=Jt-(jt-Re.depth-(Tn+.5*Kt))),Tn-.5*Kt-(dt.height-un)<Jt&&(un+=Jt-(Tn-.5*Kt-(dt.height-un)));var er=-(Tn-.5*Kt);Cn=it.makeVList({positionType:"individualShift",children:[{type:"elem",elem:dt,shift:un},{type:"elem",elem:Ct,shift:er},{type:"elem",elem:Re,shift:-jt}]},d)}else{var ir=jt-Re.depth-(dt.height-un);ir<Jt&&(jt+=.5*(Jt-ir),un+=.5*(Jt-ir)),Cn=it.makeVList({positionType:"individualShift",children:[{type:"elem",elem:dt,shift:un},{type:"elem",elem:Re,shift:-jt}]},d)}ae=d.havingStyle(f),Cn.height*=ae.sizeMultiplier/d.sizeMultiplier,Cn.depth*=ae.sizeMultiplier/d.sizeMultiplier;var Sr;f.size===v.DISPLAY.size?Sr=d.fontMetrics().delim1:Sr=d.fontMetrics().delim2;var wr,ri;return l.leftDelim==null?wr=Gi(d,["mopen"]):wr=Ta.customSizedDelim(l.leftDelim,Sr,!0,d.havingStyle(f),l.mode,["mopen"]),l.continued?ri=it.makeSpan([]):l.rightDelim==null?ri=Gi(d,["mclose"]):ri=Ta.customSizedDelim(l.rightDelim,Sr,!0,d.havingStyle(f),l.mode,["mclose"]),it.makeSpan(["mord"].concat(ae.sizingClasses(d)),[wr,it.makeSpan(["mfrac"],[Cn]),ri],d)},Qs=function(l,d){var f=new Pn.MathNode("mfrac",[Zn(l.numer,d),Zn(l.denom,d)]);if(!l.hasBarLine)f.setAttribute("linethickness","0px");else if(l.barSize){var g=ft(l.barSize,d);f.setAttribute("linethickness",g+"em")}var k=Xs(l.size,d.style);if(k.size!==d.style.size){f=new Pn.MathNode("mstyle",[f]);var ae=k.size===v.DISPLAY.size?"true":"false";f.setAttribute("displaystyle",ae),f.setAttribute("scriptlevel","0")}if(l.leftDelim!=null||l.rightDelim!=null){var Re=[];if(l.leftDelim!=null){var Le=new Pn.MathNode("mo",[new Pn.TextNode(l.leftDelim.replace("\\",""))]);Le.setAttribute("fence","true"),Re.push(Le)}if(Re.push(f),l.rightDelim!=null){var qe=new Pn.MathNode("mo",[new Pn.TextNode(l.rightDelim.replace("\\",""))]);qe.setAttribute("fence","true"),Re.push(qe)}return na(Re)}return f};Un({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,g=l.funcName,k=d[0],ae=d[1],Re,Le=null,qe=null,dt="auto";switch(g){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":Re=!0;break;case"\\\\atopfrac":Re=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":Re=!1,Le="(",qe=")";break;case"\\\\bracefrac":Re=!1,Le="\\{",qe="\\}";break;case"\\\\brackfrac":Re=!1,Le="[",qe="]";break;default:throw new Error("Unrecognized genfrac command")}switch(g){case"\\cfrac":case"\\dfrac":case"\\dbinom":dt="display";break;case"\\tfrac":case"\\tbinom":dt="text";break}return{type:"genfrac",mode:f.mode,continued:g==="\\cfrac",numer:k,denom:ae,hasBarLine:Re,leftDelim:Le,rightDelim:qe,size:dt,barSize:null}},htmlBuilder:zs,mathmlBuilder:Qs}),Un({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(l){var d=l.parser,f=l.funcName,g=l.token,k;switch(f){case"\\over":k="\\frac";break;case"\\choose":k="\\binom";break;case"\\atop":k="\\\\atopfrac";break;case"\\brace":k="\\\\bracefrac";break;case"\\brack":k="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:d.mode,replaceWith:k,token:g}}});var Wa=["display","text","script","scriptscript"],Us=function(l){var d=null;return l.length>0&&(d=l,d=d==="."?null:d),d};Un({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(l,d){var f=l.parser,g=d[4],k=d[5],ae=lr(d[0],"atom");ae&&(ae=Cr(d[0],"open"));var Re=ae?Us(ae.text):null,Le=lr(d[1],"atom");Le&&(Le=Cr(d[1],"close"));var qe=Le?Us(Le.text):null,dt=Fn(d[2],"size"),Ct,Kt=null;dt.isBlank?Ct=!0:(Kt=dt.value,Ct=Kt.number>0);var pn="auto",jt=lr(d[3],"ordgroup");if(jt){if(jt.body.length>0){var Jt=Fn(jt.body[0],"textord");pn=Wa[Number(Jt.text)]}}else jt=Fn(d[3],"textord"),pn=Wa[Number(jt.text)];return{type:"genfrac",mode:f.mode,numer:g,denom:k,continued:!1,hasBarLine:Ct,barSize:Kt,leftDelim:Re,rightDelim:qe,size:pn}},htmlBuilder:zs,mathmlBuilder:Qs}),Un({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(l,d){var f=l.parser,g=l.funcName,k=l.token;return{type:"infix",mode:f.mode,replaceWith:"\\\\abovefrac",size:Fn(d[0],"size").value,token:k}}}),Un({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(l,d){var f=l.parser,g=l.funcName,k=d[0],ae=L(Fn(d[1],"infix").size),Re=d[2],Le=ae.number>0;return{type:"genfrac",mode:f.mode,numer:k,denom:Re,continued:!1,hasBarLine:Le,barSize:ae,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:zs,mathmlBuilder:Qs});var Js=function(l,d){var f=d.style,g,k,ae=lr(l,"supsub");ae?(g=ae.sup?$r(ae.sup,d.havingStyle(f.sup()),d):$r(ae.sub,d.havingStyle(f.sub()),d),k=Fn(ae.base,"horizBrace")):k=Fn(l,"horizBrace");var Re=$r(k.base,d.havingBaseStyle(v.DISPLAY)),Le=sr.svgSpan(k,d),qe;if(k.isOver?(qe=it.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Re},{type:"kern",size:.1},{type:"elem",elem:Le}]},d),qe.children[0].children[0].children[1].classes.push("svg-align")):(qe=it.makeVList({positionType:"bottom",positionData:Re.depth+.1+Le.height,children:[{type:"elem",elem:Le},{type:"kern",size:.1},{type:"elem",elem:Re}]},d),qe.children[0].children[0].children[0].classes.push("svg-align")),g){var dt=it.makeSpan(["mord",k.isOver?"mover":"munder"],[qe],d);k.isOver?qe=it.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:dt},{type:"kern",size:.2},{type:"elem",elem:g}]},d):qe=it.makeVList({positionType:"bottom",positionData:dt.depth+.2+g.height+g.depth,children:[{type:"elem",elem:g},{type:"kern",size:.2},{type:"elem",elem:dt}]},d)}return it.makeSpan(["mord",k.isOver?"mover":"munder"],[qe],d)},No=function(l,d){var f=sr.mathMLnode(l.label);return new Pn.MathNode(l.isOver?"mover":"munder",[Zn(l.base,d),f])};Un({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(l,d){var f=l.parser,g=l.funcName;return{type:"horizBrace",mode:f.mode,label:g,isOver:/^\\over/.test(g),base:d[0]}},htmlBuilder:Js,mathmlBuilder:No}),Un({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(l,d){var f=l.parser,g=d[1],k=Fn(d[0],"url").url;return f.settings.isTrusted({command:"\\href",url:k})?{type:"href",mode:f.mode,href:k,body:jr(g)}:f.formatUnsupportedCmd("\\href")},htmlBuilder:function(l,d){var f=li(l.body,d,!1);return it.makeAnchor(l.href,[],f,d)},mathmlBuilder:function(l,d){var f=cr(l.body,d);return f instanceof vi||(f=new vi("mrow",[f])),f.setAttribute("href",l.href),f}}),Un({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(l,d){var f=l.parser,g=Fn(d[0],"url").url;if(!f.settings.isTrusted({command:"\\url",url:g}))return f.formatUnsupportedCmd("\\url");for(var k=[],ae=0;ae<g.length;ae++){var Re=g[ae];Re==="~"&&(Re="\\textasciitilde"),k.push({type:"textord",mode:"text",text:Re})}var Le={type:"text",mode:f.mode,font:"\\texttt",body:k};return{type:"href",mode:f.mode,href:g,body:jr(Le)}}}),Un({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:jr(d[0]),mathml:jr(d[1])}},htmlBuilder:function(l,d){var f=li(l.html,d,!1);return it.makeFragment(f)},mathmlBuilder:function(l,d){return cr(l.mathml,d)}});var Ps=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 H("Invalid size: '"+l+"' in \\includegraphics");var f={number:+(d[1]+d[2]),unit:d[3]};if(!ct(f))throw new H("Invalid unit: '"+f.unit+"' in \\includegraphics.");return f};Un({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(l,d,f){var g=l.parser,k={number:0,unit:"em"},ae={number:.9,unit:"em"},Re={number:0,unit:"em"},Le="";if(f[0])for(var qe=Fn(f[0],"raw").string,dt=qe.split(","),Ct=0;Ct<dt.length;Ct++){var Kt=dt[Ct].split("=");if(Kt.length===2){var pn=Kt[1].trim();switch(Kt[0].trim()){case"alt":Le=pn;break;case"width":k=Ps(pn);break;case"height":ae=Ps(pn);break;case"totalheight":Re=Ps(pn);break;default:throw new H("Invalid key: '"+Kt[0]+"' in \\includegraphics.")}}}var jt=Fn(d[0],"url").url;return Le===""&&(Le=jt,Le=Le.replace(/^.*[\\/]/,""),Le=Le.substring(0,Le.lastIndexOf("."))),g.settings.isTrusted({command:"\\includegraphics",url:jt})?{type:"includegraphics",mode:g.mode,alt:Le,width:k,height:ae,totalheight:Re,src:jt}:g.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(l,d){var f=ft(l.height,d),g=0;l.totalheight.number>0&&(g=ft(l.totalheight,d)-f,g=Number(g.toFixed(2)));var k=0;l.width.number>0&&(k=ft(l.width,d));var ae={height:f+g+"em"};k>0&&(ae.width=k+"em"),g>0&&(ae.verticalAlign=-g+"em");var Re=new Ae(l.src,l.alt,ae);return Re.height=f,Re.depth=g,Re},mathmlBuilder:function(l,d){var f=new Pn.MathNode("mglyph",[]);f.setAttribute("alt",l.alt);var g=ft(l.height,d),k=0;if(l.totalheight.number>0&&(k=ft(l.totalheight,d)-g,k=k.toFixed(2),f.setAttribute("valign","-"+k+"em")),f.setAttribute("height",g+k+"em"),l.width.number>0){var ae=ft(l.width,d);f.setAttribute("width",ae+"em")}return f.setAttribute("src",l.src),f}}),Un({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(l,d){var f=l.parser,g=l.funcName,k=Fn(d[0],"size");if(f.settings.strict){var ae=g[1]==="m",Re=k.value.unit==="mu";ae?(Re||f.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+g+" supports only mu units, "+("not "+k.value.unit+" units")),f.mode!=="math"&&f.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+g+" works only in math mode")):Re&&f.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+g+" doesn't support mu units")}return{type:"kern",mode:f.mode,dimension:k.value}},htmlBuilder:function(l,d){return it.makeGlue(l.dimension,d)},mathmlBuilder:function(l,d){var f=ft(l.dimension,d);return new Pn.SpaceNode(f)}}),Un({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var f=l.parser,g=l.funcName,k=d[0];return{type:"lap",mode:f.mode,alignment:g.slice(5),body:k}},htmlBuilder:function(l,d){var f;l.alignment==="clap"?(f=it.makeSpan([],[$r(l.body,d)]),f=it.makeSpan(["inner"],[f],d)):f=it.makeSpan(["inner"],[$r(l.body,d)]);var g=it.makeSpan(["fix"],[]),k=it.makeSpan([l.alignment],[f,g],d),ae=it.makeSpan(["strut"]);return ae.style.height=k.height+k.depth+"em",ae.style.verticalAlign=-k.depth+"em",k.children.unshift(ae),k=it.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:k}]},d),it.makeSpan(["mord"],[k],d)},mathmlBuilder:function(l,d){var f=new Pn.MathNode("mpadded",[Zn(l.body,d)]);if(l.alignment!=="rlap"){var g=l.alignment==="llap"?"-1":"-0.5";f.setAttribute("lspace",g+"width")}return f.setAttribute("width","0px"),f}}),Un({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(l,d){var f=l.funcName,g=l.parser,k=g.mode;g.switchMode("math");var ae=f==="\\("?"\\)":"$",Re=g.parseExpression(!1,ae);return g.expect(ae),g.switchMode(k),{type:"styling",mode:g.mode,style:"text",body:Re}}}),Un({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(l,d){throw new H("Mismatched "+l.funcName)}});var qs=function(l,d){switch(d.style.size){case v.DISPLAY.size:return l.display;case v.TEXT.size:return l.text;case v.SCRIPT.size:return l.script;case v.SCRIPTSCRIPT.size:return l.scriptscript;default:return l.text}};Un({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(l,d){var f=l.parser;return{type:"mathchoice",mode:f.mode,display:jr(d[0]),text:jr(d[1]),script:jr(d[2]),scriptscript:jr(d[3])}},htmlBuilder:function(l,d){var f=qs(l,d),g=li(f,d,!1);return it.makeFragment(g)},mathmlBuilder:function(l,d){var f=qs(l,d);return cr(f,d)}});var ks=function(l,d,f,g,k,ae,Re){l=it.makeSpan([],[l]);var Le,qe;if(d){var dt=$r(d,g.havingStyle(k.sup()),g);qe={elem:dt,kern:Math.max(g.fontMetrics().bigOpSpacing1,g.fontMetrics().bigOpSpacing3-dt.depth)}}if(f){var Ct=$r(f,g.havingStyle(k.sub()),g);Le={elem:Ct,kern:Math.max(g.fontMetrics().bigOpSpacing2,g.fontMetrics().bigOpSpacing4-Ct.height)}}var Kt;if(qe&&Le){var pn=g.fontMetrics().bigOpSpacing5+Le.elem.height+Le.elem.depth+Le.kern+l.depth+Re;Kt=it.makeVList({positionType:"bottom",positionData:pn,children:[{type:"kern",size:g.fontMetrics().bigOpSpacing5},{type:"elem",elem:Le.elem,marginLeft:-ae+"em"},{type:"kern",size:Le.kern},{type:"elem",elem:l},{type:"kern",size:qe.kern},{type:"elem",elem:qe.elem,marginLeft:ae+"em"},{type:"kern",size:g.fontMetrics().bigOpSpacing5}]},g)}else if(Le){var jt=l.height-Re;Kt=it.makeVList({positionType:"top",positionData:jt,children:[{type:"kern",size:g.fontMetrics().bigOpSpacing5},{type:"elem",elem:Le.elem,marginLeft:-ae+"em"},{type:"kern",size:Le.kern},{type:"elem",elem:l}]},g)}else if(qe){var Jt=l.depth+Re;Kt=it.makeVList({positionType:"bottom",positionData:Jt,children:[{type:"elem",elem:l},{type:"kern",size:qe.kern},{type:"elem",elem:qe.elem,marginLeft:ae+"em"},{type:"kern",size:g.fontMetrics().bigOpSpacing5}]},g)}else return l;return it.makeSpan(["mop","op-limits"],[Kt],g)},vo=["\\smallint"],Ja=function(l,d){var f,g,k=!1,ae,Re=lr(l,"supsub");Re?(f=Re.sup,g=Re.sub,ae=Fn(Re.base,"op"),k=!0):ae=Fn(l,"op");var Le=d.style,qe=!1;Le.size===v.DISPLAY.size&&ae.symbol&&!B.contains(vo,ae.name)&&(qe=!0);var dt;if(ae.symbol){var Ct=qe?"Size2-Regular":"Size1-Regular",Kt="";if((ae.name==="\\oiint"||ae.name==="\\oiiint")&&(Kt=ae.name.substr(1),ae.name=Kt==="oiint"?"\\iint":"\\iiint"),dt=it.makeSymbol(ae.name,Ct,"math",d,["mop","op-symbol",qe?"large-op":"small-op"]),Kt.length>0){var pn=dt.italic,jt=it.staticSvg(Kt+"Size"+(qe?"2":"1"),d);dt=it.makeVList({positionType:"individualShift",children:[{type:"elem",elem:dt,shift:0},{type:"elem",elem:jt,shift:qe?.08:0}]},d),ae.name="\\"+Kt,dt.classes.unshift("mop"),dt.italic=pn}}else if(ae.body){var Jt=li(ae.body,d,!0);Jt.length===1&&Jt[0]instanceof R?(dt=Jt[0],dt.classes[0]="mop"):dt=it.makeSpan(["mop"],it.tryCombineChars(Jt),d)}else{for(var un=[],Cn=1;Cn<ae.name.length;Cn++)un.push(it.mathsym(ae.name[Cn],ae.mode,d));dt=it.makeSpan(["mop"],un,d)}var ir=0,Tn=0;return(dt instanceof R||ae.name==="\\oiint"||ae.name==="\\oiiint")&&!ae.suppressBaseShift&&(ir=(dt.height-dt.depth)/2-d.fontMetrics().axisHeight,Tn=dt.italic),k?ks(dt,f,g,d,Le,Tn,ir):(ir&&(dt.style.position="relative",dt.style.top=ir+"em"),dt)},Ms=function(l,d){var f;if(l.symbol)f=new vi("mo",[Mi(l.name,l.mode)]),B.contains(vo,l.name)&&f.setAttribute("largeop","false");else if(l.body)f=new vi("mo",_r(l.body,d));else{f=new vi("mi",[new ca(l.name.slice(1))]);var g=new vi("mo",[Mi("\u2061","text")]);l.parentIsSupSub?f=new vi("mo",[f,g]):f=ua([f,g])}return f},yo={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};Un({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,g=l.funcName,k=g;return k.length===1&&(k=yo[k]),{type:"op",mode:f.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:k}},htmlBuilder:Ja,mathmlBuilder:Ms}),Un({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(l,d){var f=l.parser,g=d[0];return{type:"op",mode:f.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:jr(g)}},htmlBuilder:Ja,mathmlBuilder:Ms});var bo={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};Un({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:Ja,mathmlBuilder:Ms}),Un({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:Ja,mathmlBuilder:Ms}),Un({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,g=f;return g.length===1&&(g=bo[g]),{type:"op",mode:d.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:g}},htmlBuilder:Ja,mathmlBuilder:Ms});var Ks=function(l,d){var f,g,k=!1,ae,Re=lr(l,"supsub");Re?(f=Re.sup,g=Re.sub,ae=Fn(Re.base,"operatorname"),k=!0):ae=Fn(l,"operatorname");var Le;if(ae.body.length>0){for(var qe=ae.body.map(function(pn){var jt=pn.text;return typeof jt=="string"?{type:"textord",mode:pn.mode,text:jt}:pn}),dt=li(qe,d.withFont("mathrm"),!0),Ct=0;Ct<dt.length;Ct++){var Kt=dt[Ct];Kt instanceof R&&(Kt.text=Kt.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}Le=it.makeSpan(["mop"],dt,d)}else Le=it.makeSpan(["mop"],[],d);return k?ks(Le,f,g,d,d.style,0,0):Le},Bo=function(l,d){for(var f=_r(l.body,d.withFont("mathrm")),g=!0,k=0;k<f.length;k++){var ae=f[k];if(!(ae instanceof Pn.SpaceNode))if(ae instanceof Pn.MathNode)switch(ae.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var Re=ae.children[0];ae.children.length===1&&Re instanceof Pn.TextNode?Re.text=Re.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):g=!1;break}default:g=!1}else g=!1}if(g){var Le=f.map(function(Ct){return Ct.toText()}).join("");f=[new Pn.TextNode(Le)]}var qe=new Pn.MathNode("mi",f);qe.setAttribute("mathvariant","normal");var dt=new Pn.MathNode("mo",[Mi("\u2061","text")]);return l.parentIsSupSub?new Pn.MathNode("mo",[qe,dt]):Pn.newDocumentFragment([qe,dt])};Un({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(l,d){var f=l.parser,g=l.funcName,k=d[0];return{type:"operatorname",mode:f.mode,body:jr(k),alwaysHandleSupSub:g==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:Ks,mathmlBuilder:Bo}),Vr({type:"ordgroup",htmlBuilder:function(l,d){return l.semisimple?it.makeFragment(li(l.body,d,!1)):it.makeSpan(["mord"],li(l.body,d,!0),d)},mathmlBuilder:function(l,d){return cr(l.body,d,!0)}}),Un({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(l,d){var f=l.parser,g=d[0];return{type:"overline",mode:f.mode,body:g}},htmlBuilder:function(l,d){var f=$r(l.body,d.havingCrampedStyle()),g=it.makeLineSpan("overline-line",d),k=d.fontMetrics().defaultRuleThickness,ae=it.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f},{type:"kern",size:3*k},{type:"elem",elem:g},{type:"kern",size:k}]},d);return it.makeSpan(["mord","overline"],[ae],d)},mathmlBuilder:function(l,d){var f=new Pn.MathNode("mo",[new Pn.TextNode("\u203E")]);f.setAttribute("stretchy","true");var g=new Pn.MathNode("mover",[Zn(l.body,d),f]);return g.setAttribute("accent","true"),g}}),Un({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var f=l.parser,g=d[0];return{type:"phantom",mode:f.mode,body:jr(g)}},htmlBuilder:function(l,d){var f=li(l.body,d.withPhantom(),!1);return it.makeFragment(f)},mathmlBuilder:function(l,d){var f=_r(l.body,d);return new Pn.MathNode("mphantom",f)}}),Un({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var f=l.parser,g=d[0];return{type:"hphantom",mode:f.mode,body:g}},htmlBuilder:function(l,d){var f=it.makeSpan([],[$r(l.body,d.withPhantom())]);if(f.height=0,f.depth=0,f.children)for(var g=0;g<f.children.length;g++)f.children[g].height=0,f.children[g].depth=0;return f=it.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f}]},d),it.makeSpan(["mord"],[f],d)},mathmlBuilder:function(l,d){var f=_r(jr(l.body),d),g=new Pn.MathNode("mphantom",f),k=new Pn.MathNode("mpadded",[g]);return k.setAttribute("height","0px"),k.setAttribute("depth","0px"),k}}),Un({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var f=l.parser,g=d[0];return{type:"vphantom",mode:f.mode,body:g}},htmlBuilder:function(l,d){var f=it.makeSpan(["inner"],[$r(l.body,d.withPhantom())]),g=it.makeSpan(["fix"],[]);return it.makeSpan(["mord","rlap"],[f,g],d)},mathmlBuilder:function(l,d){var f=_r(jr(l.body),d),g=new Pn.MathNode("mphantom",f),k=new Pn.MathNode("mpadded",[g]);return k.setAttribute("width","0px"),k}}),Un({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(l,d){var f=l.parser,g=Fn(d[0],"size").value,k=d[1];return{type:"raisebox",mode:f.mode,dy:g,body:k}},htmlBuilder:function(l,d){var f=$r(l.body,d),g=ft(l.dy,d);return it.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:f}]},d)},mathmlBuilder:function(l,d){var f=new Pn.MathNode("mpadded",[Zn(l.body,d)]),g=l.dy.number+l.dy.unit;return f.setAttribute("voffset",g),f}}),Un({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(l,d,f){var g=l.parser,k=f[0],ae=Fn(d[0],"size"),Re=Fn(d[1],"size");return{type:"rule",mode:g.mode,shift:k&&Fn(k,"size").value,width:ae.value,height:Re.value}},htmlBuilder:function(l,d){var f=it.makeSpan(["mord","rule"],[],d),g=ft(l.width,d),k=ft(l.height,d),ae=l.shift?ft(l.shift,d):0;return f.style.borderRightWidth=g+"em",f.style.borderTopWidth=k+"em",f.style.bottom=ae+"em",f.width=g,f.height=k+ae,f.depth=-ae,f.maxFontSize=k*1.125*d.sizeMultiplier,f},mathmlBuilder:function(l,d){var f=ft(l.width,d),g=ft(l.height,d),k=l.shift?ft(l.shift,d):0,ae=d.color&&d.getColor()||"black",Re=new Pn.MathNode("mspace");Re.setAttribute("mathbackground",ae),Re.setAttribute("width",f+"em"),Re.setAttribute("height",g+"em");var Le=new Pn.MathNode("mpadded",[Re]);return k>=0?Le.setAttribute("height","+"+k+"em"):(Le.setAttribute("height",k+"em"),Le.setAttribute("depth","+"+-k+"em")),Le.setAttribute("voffset",k+"em"),Le}});function Hs(q,l,d){for(var f=li(q,l,!1),g=l.sizeMultiplier/d.sizeMultiplier,k=0;k<f.length;k++){var ae=f[k].classes.indexOf("sizing");ae<0?Array.prototype.push.apply(f[k].classes,l.sizingClasses(d)):f[k].classes[ae+1]==="reset-size"+l.size&&(f[k].classes[ae+1]="reset-size"+d.size),f[k].height*=g,f[k].depth*=g}return it.makeFragment(f)}var Ns=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],xo=function(l,d){var f=d.havingSize(l.size);return Hs(l.body,f,d)};Un({type:"sizing",names:Ns,props:{numArgs:0,allowedInText:!0},handler:function(l,d){var f=l.breakOnTokenText,g=l.funcName,k=l.parser,ae=k.parseExpression(!1,f);return{type:"sizing",mode:k.mode,size:Ns.indexOf(g)+1,body:ae}},htmlBuilder:xo,mathmlBuilder:function(l,d){var f=d.havingSize(l.size),g=_r(l.body,f),k=new Pn.MathNode("mstyle",g);return k.setAttribute("mathsize",f.sizeMultiplier+"em"),k}}),Un({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(l,d,f){var g=l.parser,k=!1,ae=!1,Re=f[0]&&Fn(f[0],"ordgroup");if(Re)for(var Le="",qe=0;qe<Re.body.length;++qe){var dt=Re.body[qe];if(Le=dt.text,Le==="t")k=!0;else if(Le==="b")ae=!0;else{k=!1,ae=!1;break}}else k=!0,ae=!0;var Ct=d[0];return{type:"smash",mode:g.mode,body:Ct,smashHeight:k,smashDepth:ae}},htmlBuilder:function(l,d){var f=it.makeSpan([],[$r(l.body,d)]);if(!l.smashHeight&&!l.smashDepth)return f;if(l.smashHeight&&(f.height=0,f.children))for(var g=0;g<f.children.length;g++)f.children[g].height=0;if(l.smashDepth&&(f.depth=0,f.children))for(var k=0;k<f.children.length;k++)f.children[k].depth=0;var ae=it.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f}]},d);return it.makeSpan(["mord"],[ae],d)},mathmlBuilder:function(l,d){var f=new Pn.MathNode("mpadded",[Zn(l.body,d)]);return l.smashHeight&&f.setAttribute("height","0px"),l.smashDepth&&f.setAttribute("depth","0px"),f}}),Un({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(l,d,f){var g=l.parser,k=f[0],ae=d[0];return{type:"sqrt",mode:g.mode,body:ae,index:k}},htmlBuilder:function(l,d){var f=$r(l.body,d.havingCrampedStyle());f.height===0&&(f.height=d.fontMetrics().xHeight),f=it.wrapFragment(f,d);var g=d.fontMetrics(),k=g.defaultRuleThickness,ae=k;d.style.id<v.TEXT.id&&(ae=d.fontMetrics().xHeight);var Re=k+ae/4,Le=f.height+f.depth+Re+k,qe=Ta.sqrtImage(Le,d),dt=qe.span,Ct=qe.ruleWidth,Kt=qe.advanceWidth,pn=dt.height-Ct;pn>f.height+f.depth+Re&&(Re=(Re+pn-f.height-f.depth)/2);var jt=dt.height-f.height-Re-Ct;f.style.paddingLeft=Kt+"em";var Jt=it.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f,wrapperClasses:["svg-align"]},{type:"kern",size:-(f.height+jt)},{type:"elem",elem:dt},{type:"kern",size:Ct}]},d);if(l.index){var un=d.havingStyle(v.SCRIPTSCRIPT),Cn=$r(l.index,un,d),ir=.6*(Jt.height-Jt.depth),Tn=it.makeVList({positionType:"shift",positionData:-ir,children:[{type:"elem",elem:Cn}]},d),er=it.makeSpan(["root"],[Tn]);return it.makeSpan(["mord","sqrt"],[er,Jt],d)}else return it.makeSpan(["mord","sqrt"],[Jt],d)},mathmlBuilder:function(l,d){var f=l.body,g=l.index;return g?new Pn.MathNode("mroot",[Zn(f,d),Zn(g,d)]):new Pn.MathNode("msqrt",[Zn(f,d)])}});var _o={display:v.DISPLAY,text:v.TEXT,script:v.SCRIPT,scriptscript:v.SCRIPTSCRIPT};Un({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(l,d){var f=l.breakOnTokenText,g=l.funcName,k=l.parser,ae=k.parseExpression(!0,f),Re=g.slice(1,g.length-5);return{type:"styling",mode:k.mode,style:Re,body:ae}},htmlBuilder:function(l,d){var f=_o[l.style],g=d.havingStyle(f).withFont("");return Hs(l.body,g,d)},mathmlBuilder:function(l,d){var f=_o[l.style],g=d.havingStyle(f),k=_r(l.body,g),ae=new Pn.MathNode("mstyle",k),Re={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},Le=Re[l.style];return ae.setAttribute("scriptlevel",Le[0]),ae.setAttribute("displaystyle",Le[1]),ae}});var Eo=function(l,d){var f=l.base;if(f)if(f.type==="op"){var g=f.limits&&(d.style.size===v.DISPLAY.size||f.alwaysHandleSupSub);return g?Ja:null}else if(f.type==="operatorname"){var k=f.alwaysHandleSupSub&&(d.style.size===v.DISPLAY.size||f.limits);return k?Ks:null}else{if(f.type==="accent")return B.isCharacterBox(f.base)?Xr:null;if(f.type==="horizBrace"){var ae=!l.sub;return ae===f.isOver?Js:null}else return null}else return null};Vr({type:"supsub",htmlBuilder:function(l,d){var f=Eo(l,d);if(f)return f(l,d);var g=l.base,k=l.sup,ae=l.sub,Re=$r(g,d),Le,qe,dt=d.fontMetrics(),Ct=0,Kt=0,pn=g&&B.isCharacterBox(g);if(k){var jt=d.havingStyle(d.style.sup());Le=$r(k,jt,d),pn||(Ct=Re.height-jt.fontMetrics().supDrop*jt.sizeMultiplier/d.sizeMultiplier)}if(ae){var Jt=d.havingStyle(d.style.sub());qe=$r(ae,Jt,d),pn||(Kt=Re.depth+Jt.fontMetrics().subDrop*Jt.sizeMultiplier/d.sizeMultiplier)}var un;d.style===v.DISPLAY?un=dt.sup1:d.style.cramped?un=dt.sup3:un=dt.sup2;var Cn=d.sizeMultiplier,ir=.5/dt.ptPerEm/Cn+"em",Tn=null;if(qe){var er=l.base&&l.base.type==="op"&&l.base.name&&(l.base.name==="\\oiint"||l.base.name==="\\oiiint");(Re instanceof R||er)&&(Tn=-Re.italic+"em")}var Sr;if(Le&&qe){Ct=Math.max(Ct,un,Le.depth+.25*dt.xHeight),Kt=Math.max(Kt,dt.sub2);var wr=dt.defaultRuleThickness,ri=4*wr;if(Ct-Le.depth-(qe.height-Kt)<ri){Kt=ri-(Ct-Le.depth)+qe.height;var ii=.8*dt.xHeight-(Ct-Le.depth);ii>0&&(Ct+=ii,Kt-=ii)}var Zi=[{type:"elem",elem:qe,shift:Kt,marginRight:ir,marginLeft:Tn},{type:"elem",elem:Le,shift:-Ct,marginRight:ir}];Sr=it.makeVList({positionType:"individualShift",children:Zi},d)}else if(qe){Kt=Math.max(Kt,dt.sub1,qe.height-.8*dt.xHeight);var ci=[{type:"elem",elem:qe,marginLeft:Tn,marginRight:ir}];Sr=it.makeVList({positionType:"shift",positionData:Kt,children:ci},d)}else if(Le)Ct=Math.max(Ct,un,Le.depth+.25*dt.xHeight),Sr=it.makeVList({positionType:"shift",positionData:-Ct,children:[{type:"elem",elem:Le,marginRight:ir}]},d);else throw new Error("supsub must have either sup or sub.");var ai=Ti(Re,"right")||"mord";return it.makeSpan([ai],[Re,it.makeSpan(["msupsub"],[Sr])],d)},mathmlBuilder:function(l,d){var f=!1,g,k,ae=lr(l.base,"horizBrace");ae&&(k=!!l.sup,k===ae.isOver&&(f=!0,g=ae.isOver)),l.base&&(l.base.type==="op"||l.base.type==="operatorname")&&(l.base.parentIsSupSub=!0);var Re=[Zn(l.base,d)];l.sub&&Re.push(Zn(l.sub,d)),l.sup&&Re.push(Zn(l.sup,d));var Le;if(f)Le=g?"mover":"munder";else if(l.sub)if(l.sup){var Ct=l.base;Ct&&Ct.type==="op"&&Ct.limits&&d.style===v.DISPLAY||Ct&&Ct.type==="operatorname"&&Ct.alwaysHandleSupSub&&(d.style===v.DISPLAY||Ct.limits)?Le="munderover":Le="msubsup"}else{var dt=l.base;dt&&dt.type==="op"&&dt.limits&&(d.style===v.DISPLAY||dt.alwaysHandleSupSub)||dt&&dt.type==="operatorname"&&dt.alwaysHandleSupSub&&(dt.limits||d.style===v.DISPLAY)?Le="munder":Le="msub"}else{var qe=l.base;qe&&qe.type==="op"&&qe.limits&&(d.style===v.DISPLAY||qe.alwaysHandleSupSub)||qe&&qe.type==="operatorname"&&qe.alwaysHandleSupSub&&(qe.limits||d.style===v.DISPLAY)?Le="mover":Le="msup"}var Kt=new Pn.MathNode(Le,Re);return Kt}}),Vr({type:"atom",htmlBuilder:function(l,d){return it.mathsym(l.text,l.mode,d,["m"+l.family])},mathmlBuilder:function(l,d){var f=new Pn.MathNode("mo",[Mi(l.text,l.mode)]);if(l.family==="bin"){var g=ur(l,d);g==="bold-italic"&&f.setAttribute("mathvariant",g)}else l.family==="punct"?f.setAttribute("separator","true"):(l.family==="open"||l.family==="close")&&f.setAttribute("stretchy","false");return f}});var So={mi:"italic",mn:"normal",mtext:"normal"};Vr({type:"mathord",htmlBuilder:function(l,d){return it.makeOrd(l,d,"mathord")},mathmlBuilder:function(l,d){var f=new Pn.MathNode("mi",[Mi(l.text,l.mode,d)]),g=ur(l,d)||"italic";return g!==So[f.type]&&f.setAttribute("mathvariant",g),f}}),Vr({type:"textord",htmlBuilder:function(l,d){return it.makeOrd(l,d,"textord")},mathmlBuilder:function(l,d){var f=Mi(l.text,l.mode,d),g=ur(l,d)||"normal",k;return l.mode==="text"?k=new Pn.MathNode("mtext",[f]):/[0-9]/.test(l.text)?k=new Pn.MathNode("mn",[f]):l.text==="\\prime"?k=new Pn.MathNode("mo",[f]):k=new Pn.MathNode("mi",[f]),g!==So[k.type]&&k.setAttribute("mathvariant",g),k}});var Rs={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Zs={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Vr({type:"spacing",htmlBuilder:function(l,d){if(Zs.hasOwnProperty(l.text)){var f=Zs[l.text].className||"";if(l.mode==="text"){var g=it.makeOrd(l,d,"textord");return g.classes.push(f),g}else return it.makeSpan(["mspace",f],[it.mathsym(l.text,l.mode,d)],d)}else{if(Rs.hasOwnProperty(l.text))return it.makeSpan(["mspace",Rs[l.text]],[],d);throw new H('Unknown type of space "'+l.text+'"')}},mathmlBuilder:function(l,d){var f;if(Zs.hasOwnProperty(l.text))f=new Pn.MathNode("mtext",[new Pn.TextNode("\xA0")]);else{if(Rs.hasOwnProperty(l.text))return new Pn.MathNode("mspace");throw new H('Unknown type of space "'+l.text+'"')}return f}});var Bs=function(){var l=new Pn.MathNode("mtd",[]);return l.setAttribute("width","50%"),l};Vr({type:"tag",mathmlBuilder:function(l,d){var f=new Pn.MathNode("mtable",[new Pn.MathNode("mtr",[Bs(),new Pn.MathNode("mtd",[cr(l.body,d)]),Bs(),new Pn.MathNode("mtd",[cr(l.tag,d)])])]);return f.setAttribute("width","100%"),f}});var js={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},eo={"\\textbf":"textbf","\\textmd":"textmd"},to={"\\textit":"textit","\\textup":"textup"},no=function(l,d){var f=l.font;return f?js[f]?d.withTextFontFamily(js[f]):eo[f]?d.withTextFontWeight(eo[f]):d.withTextFontShape(to[f]):d};Un({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,g=l.funcName,k=d[0];return{type:"text",mode:f.mode,body:jr(k),font:g}},htmlBuilder:function(l,d){var f=no(l,d),g=li(l.body,f,!0);return it.makeSpan(["mord","text"],it.tryCombineChars(g),f)},mathmlBuilder:function(l,d){var f=no(l,d);return cr(l.body,f)}}),Un({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=$r(l.body,d),g=it.makeLineSpan("underline-line",d),k=d.fontMetrics().defaultRuleThickness,ae=it.makeVList({positionType:"top",positionData:f.height,children:[{type:"kern",size:k},{type:"elem",elem:g},{type:"kern",size:3*k},{type:"elem",elem:f}]},d);return it.makeSpan(["mord","underline"],[ae],d)},mathmlBuilder:function(l,d){var f=new Pn.MathNode("mo",[new Pn.TextNode("\u203E")]);f.setAttribute("stretchy","true");var g=new Pn.MathNode("munder",[Zn(l.body,d),f]);return g.setAttribute("accentunder","true"),g}}),Un({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(l,d,f){throw new H("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(l,d){for(var f=ro(l),g=[],k=d.havingStyle(d.style.text()),ae=0;ae<f.length;ae++){var Re=f[ae];Re==="~"&&(Re="\\textasciitilde"),g.push(it.makeSymbol(Re,"Typewriter-Regular",l.mode,k,["mord","texttt"]))}return it.makeSpan(["mord","text"].concat(k.sizingClasses(d)),it.tryCombineChars(g),k)},mathmlBuilder:function(l,d){var f=new Pn.TextNode(ro(l)),g=new Pn.MathNode("mtext",[f]);return g.setAttribute("mathvariant","monospace"),g}});var ro=function(l){return l.body.replace(/ /g,l.star?"\u2423":"\xA0")},wo=Lr,ka=wo,Ws=`[ \r
]`,Gs="\\\\[a-zA-Z@]+",ne="\\\\[^\uD800-\uDFFF]",ue=""+Gs+Ws+"*",$e=new RegExp("^("+Gs+")"+Ws+"*$"),Ge="[\u0300-\u036F]",et=new RegExp(Ge+"+$"),at="("+Ws+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(Ge+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Ge+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+ue)+("|"+ne+")"),xt=function(){function q(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(at,"g"),this.catcodes={"%":14}}var l=q.prototype;return l.setCatcode=function(f,g){this.catcodes[f]=g},l.lex=function(){var f=this.input,g=this.tokenRegex.lastIndex;if(g===f.length)return new ye("EOF",new Q(this,g,g));var k=this.tokenRegex.exec(f);if(k===null||k.index!==g)throw new H("Unexpected character: '"+f[g]+"'",new ye(f[g],new Q(this,g,g+1)));var ae=k[2]||" ";if(this.catcodes[ae]===14){var Re=f.indexOf(`
`,this.tokenRegex.lastIndex);return Re===-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=Re+1,this.lex()}var Le=ae.match($e);return Le&&(ae=Le[1]),new ye(ae,new Q(this,g,this.tokenRegex.lastIndex))},q}(),_t=function(){function q(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=q.prototype;return l.beginGroup=function(){this.undefStack.push({})},l.endGroup=function(){if(this.undefStack.length===0)throw new H("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var f=this.undefStack.pop();for(var g in f)f.hasOwnProperty(g)&&(f[g]===void 0?delete this.current[g]:this.current[g]=f[g])},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,g,k){if(k===void 0&&(k=!1),k){for(var ae=0;ae<this.undefStack.length;ae++)delete this.undefStack[ae][f];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][f]=g)}else{var Re=this.undefStack[this.undefStack.length-1];Re&&!Re.hasOwnProperty(f)&&(Re[f]=this.current[f])}this.current[f]=g},q}(),yt={},Ot=yt;function Se(q,l){yt[q]=l}Se("\\@firstoftwo",function(q){var l=q.consumeArgs(2);return{tokens:l[0],numArgs:0}}),Se("\\@secondoftwo",function(q){var l=q.consumeArgs(2);return{tokens:l[1],numArgs:0}}),Se("\\@ifnextchar",function(q){var l=q.consumeArgs(3),d=q.future();return l[0].length===1&&l[0][0].text===d.text?{tokens:l[1],numArgs:0}:{tokens:l[2],numArgs:0}}),Se("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Se("\\TextOrMath",function(q){var l=q.consumeArgs(2);return q.mode==="text"?{tokens:l[0],numArgs:0}:{tokens:l[1],numArgs:0}});var Lt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Se("\\char",function(q){var l=q.popToken(),d,f="";if(l.text==="'")d=8,l=q.popToken();else if(l.text==='"')d=16,l=q.popToken();else if(l.text==="`")if(l=q.popToken(),l.text[0]==="\\")f=l.text.charCodeAt(1);else{if(l.text==="EOF")throw new H("\\char` missing argument");f=l.text.charCodeAt(0)}else d=10;if(d){if(f=Lt[l.text],f==null||f>=d)throw new H("Invalid base-"+d+" digit "+l.text);for(var g;(g=Lt[q.future().text])!=null&&g<d;)f*=d,f+=g,q.popToken()}return"\\@char{"+f+"}"});var ln=function(l,d){var f=l.consumeArgs(1)[0];if(f.length!==1)throw new H("\\gdef's first argument must be a macro name");var g=f[0].text,k=0;for(f=l.consumeArgs(1)[0];f.length===1&&f[0].text==="#";){if(f=l.consumeArgs(1)[0],f.length!==1)throw new H('Invalid argument number length "'+f.length+'"');if(!/^[1-9]$/.test(f[0].text))throw new H('Invalid argument number "'+f[0].text+'"');if(k++,parseInt(f[0].text)!==k)throw new H('Argument number "'+f[0].text+'" out of order');f=l.consumeArgs(1)[0]}return l.macros.set(g,{tokens:f,numArgs:k},d),""};Se("\\gdef",function(q){return ln(q,!0)}),Se("\\def",function(q){return ln(q,!1)}),Se("\\global",function(q){var l=q.consumeArgs(1)[0];if(l.length!==1)throw new H("Invalid command after \\global");var d=l[0].text;if(d==="\\def")return ln(q,!0);throw new H("Invalid command '"+d+"' after \\global")});var sn=function(l,d,f){var g=l.consumeArgs(1)[0];if(g.length!==1)throw new H("\\newcommand's first argument must be a macro name");var k=g[0].text,ae=l.isDefined(k);if(ae&&!d)throw new H("\\newcommand{"+k+"} attempting to redefine "+(k+"; use \\renewcommand"));if(!ae&&!f)throw new H("\\renewcommand{"+k+"} when command "+k+" does not yet exist; use \\newcommand");var Re=0;if(g=l.consumeArgs(1)[0],g.length===1&&g[0].text==="["){for(var Le="",qe=l.expandNextToken();qe.text!=="]"&&qe.text!=="EOF";)Le+=qe.text,qe=l.expandNextToken();if(!Le.match(/^\s*[0-9]+\s*$/))throw new H("Invalid number of arguments: "+Le);Re=parseInt(Le),g=l.consumeArgs(1)[0]}return l.macros.set(k,{tokens:g,numArgs:Re}),""};Se("\\newcommand",function(q){return sn(q,!1,!0)}),Se("\\renewcommand",function(q){return sn(q,!0,!1)}),Se("\\providecommand",function(q){return sn(q,!0,!0)}),Se("\\bgroup","{"),Se("\\egroup","}"),Se("\\lq","`"),Se("\\rq","'"),Se("\\aa","\\r a"),Se("\\AA","\\r A"),Se("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),Se("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Se("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),Se("\u212C","\\mathscr{B}"),Se("\u2130","\\mathscr{E}"),Se("\u2131","\\mathscr{F}"),Se("\u210B","\\mathscr{H}"),Se("\u2110","\\mathscr{I}"),Se("\u2112","\\mathscr{L}"),Se("\u2133","\\mathscr{M}"),Se("\u211B","\\mathscr{R}"),Se("\u212D","\\mathfrak{C}"),Se("\u210C","\\mathfrak{H}"),Se("\u2128","\\mathfrak{Z}"),Se("\\Bbbk","\\Bbb{k}"),Se("\xB7","\\cdotp"),Se("\\llap","\\mathllap{\\textrm{#1}}"),Se("\\rlap","\\mathrlap{\\textrm{#1}}"),Se("\\clap","\\mathclap{\\textrm{#1}}"),Se("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Se("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),Se("\\ne","\\neq"),Se("\u2260","\\neq"),Se("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),Se("\u2209","\\notin"),Se("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),Se("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),Se("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),Se("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),Se("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),Se("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),Se("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),Se("\u27C2","\\perp"),Se("\u203C","\\mathclose{!\\mkern-0.8mu!}"),Se("\u220C","\\notni"),Se("\u231C","\\ulcorner"),Se("\u231D","\\urcorner"),Se("\u231E","\\llcorner"),Se("\u231F","\\lrcorner"),Se("\xA9","\\copyright"),Se("\xAE","\\textregistered"),Se("\uFE0F","\\textregistered"),Se("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),Se("\u22EE","\\vdots"),Se("\\varGamma","\\mathit{\\Gamma}"),Se("\\varDelta","\\mathit{\\Delta}"),Se("\\varTheta","\\mathit{\\Theta}"),Se("\\varLambda","\\mathit{\\Lambda}"),Se("\\varXi","\\mathit{\\Xi}"),Se("\\varPi","\\mathit{\\Pi}"),Se("\\varSigma","\\mathit{\\Sigma}"),Se("\\varUpsilon","\\mathit{\\Upsilon}"),Se("\\varPhi","\\mathit{\\Phi}"),Se("\\varPsi","\\mathit{\\Psi}"),Se("\\varOmega","\\mathit{\\Omega}"),Se("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Se("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),Se("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Se("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Se("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Se("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var nn={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};Se("\\dots",function(q){var l="\\dotso",d=q.expandAfterFuture().text;return d in nn?l=nn[d]:(d.substr(0,4)==="\\not"||d in At.math&&B.contains(["bin","rel"],At.math[d].group))&&(l="\\dotsb"),l});var lt={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Se("\\dotso",function(q){var l=q.future().text;return l in lt?"\\ldots\\,":"\\ldots"}),Se("\\dotsc",function(q){var l=q.future().text;return l in lt&&l!==","?"\\ldots\\,":"\\ldots"}),Se("\\cdots",function(q){var l=q.future().text;return l in lt?"\\@cdots\\,":"\\@cdots"}),Se("\\dotsb","\\cdots"),Se("\\dotsm","\\cdots"),Se("\\dotsi","\\!\\cdots"),Se("\\dotsx","\\ldots\\,"),Se("\\DOTSI","\\relax"),Se("\\DOTSB","\\relax"),Se("\\DOTSX","\\relax"),Se("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Se("\\,","\\tmspace+{3mu}{.1667em}"),Se("\\thinspace","\\,"),Se("\\>","\\mskip{4mu}"),Se("\\:","\\tmspace+{4mu}{.2222em}"),Se("\\medspace","\\:"),Se("\\;","\\tmspace+{5mu}{.2777em}"),Se("\\thickspace","\\;"),Se("\\!","\\tmspace-{3mu}{.1667em}"),Se("\\negthinspace","\\!"),Se("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Se("\\negthickspace","\\tmspace-{5mu}{.277em}"),Se("\\enspace","\\kern.5em "),Se("\\enskip","\\hskip.5em\\relax"),Se("\\quad","\\hskip1em\\relax"),Se("\\qquad","\\hskip2em\\relax"),Se("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Se("\\tag@paren","\\tag@literal{({#1})}"),Se("\\tag@literal",function(q){if(q.macros.get("\\df@tag"))throw new H("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),Se("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Se("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Se("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Se("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Se("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),Se("\\\\","\\newline"),Se("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Ln=We["Main-Regular"][84][1]-.7*We["Main-Regular"][65][1]+"em";Se("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Ln+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),Se("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Ln+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),Se("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Se("\\@hspace","\\hskip #1\\relax"),Se("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Se("\\ordinarycolon",":"),Se("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Se("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Se("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Se("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Se("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Se("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Se("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Se("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Se("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Se("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Se("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Se("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Se("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Se("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Se("\u2237","\\dblcolon"),Se("\u2239","\\eqcolon"),Se("\u2254","\\coloneqq"),Se("\u2255","\\eqqcolon"),Se("\u2A74","\\Coloneqq"),Se("\\ratio","\\vcentcolon"),Se("\\coloncolon","\\dblcolon"),Se("\\colonequals","\\coloneqq"),Se("\\coloncolonequals","\\Coloneqq"),Se("\\equalscolon","\\eqqcolon"),Se("\\equalscoloncolon","\\Eqqcolon"),Se("\\colonminus","\\coloneq"),Se("\\coloncolonminus","\\Coloneq"),Se("\\minuscolon","\\eqcolon"),Se("\\minuscoloncolon","\\Eqcolon"),Se("\\coloncolonapprox","\\Colonapprox"),Se("\\coloncolonsim","\\Colonsim"),Se("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Se("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Se("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Se("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Se("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),Se("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Se("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Se("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),Se("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),Se("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),Se("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),Se("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),Se("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),Se("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),Se("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),Se("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),Se("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),Se("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),Se("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),Se("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),Se("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),Se("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),Se("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),Se("\u27E6","\\llbracket"),Se("\u27E7","\\rrbracket"),Se("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),Se("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),Se("\u2983","\\lBrace"),Se("\u2984","\\rBrace"),Se("\\darr","\\downarrow"),Se("\\dArr","\\Downarrow"),Se("\\Darr","\\Downarrow"),Se("\\lang","\\langle"),Se("\\rang","\\rangle"),Se("\\uarr","\\uparrow"),Se("\\uArr","\\Uparrow"),Se("\\Uarr","\\Uparrow"),Se("\\N","\\mathbb{N}"),Se("\\R","\\mathbb{R}"),Se("\\Z","\\mathbb{Z}"),Se("\\alef","\\aleph"),Se("\\alefsym","\\aleph"),Se("\\Alpha","\\mathrm{A}"),Se("\\Beta","\\mathrm{B}"),Se("\\bull","\\bullet"),Se("\\Chi","\\mathrm{X}"),Se("\\clubs","\\clubsuit"),Se("\\cnums","\\mathbb{C}"),Se("\\Complex","\\mathbb{C}"),Se("\\Dagger","\\ddagger"),Se("\\diamonds","\\diamondsuit"),Se("\\empty","\\emptyset"),Se("\\Epsilon","\\mathrm{E}"),Se("\\Eta","\\mathrm{H}"),Se("\\exist","\\exists"),Se("\\harr","\\leftrightarrow"),Se("\\hArr","\\Leftrightarrow"),Se("\\Harr","\\Leftrightarrow"),Se("\\hearts","\\heartsuit"),Se("\\image","\\Im"),Se("\\infin","\\infty"),Se("\\Iota","\\mathrm{I}"),Se("\\isin","\\in"),Se("\\Kappa","\\mathrm{K}"),Se("\\larr","\\leftarrow"),Se("\\lArr","\\Leftarrow"),Se("\\Larr","\\Leftarrow"),Se("\\lrarr","\\leftrightarrow"),Se("\\lrArr","\\Leftrightarrow"),Se("\\Lrarr","\\Leftrightarrow"),Se("\\Mu","\\mathrm{M}"),Se("\\natnums","\\mathbb{N}"),Se("\\Nu","\\mathrm{N}"),Se("\\Omicron","\\mathrm{O}"),Se("\\plusmn","\\pm"),Se("\\rarr","\\rightarrow"),Se("\\rArr","\\Rightarrow"),Se("\\Rarr","\\Rightarrow"),Se("\\real","\\Re"),Se("\\reals","\\mathbb{R}"),Se("\\Reals","\\mathbb{R}"),Se("\\Rho","\\mathrm{P}"),Se("\\sdot","\\cdot"),Se("\\sect","\\S"),Se("\\spades","\\spadesuit"),Se("\\sub","\\subset"),Se("\\sube","\\subseteq"),Se("\\supe","\\supseteq"),Se("\\Tau","\\mathrm{T}"),Se("\\thetasym","\\vartheta"),Se("\\weierp","\\wp"),Se("\\Zeta","\\mathrm{Z}"),Se("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Se("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Se("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Se("\\blue","\\textcolor{##6495ed}{#1}"),Se("\\orange","\\textcolor{##ffa500}{#1}"),Se("\\pink","\\textcolor{##ff00af}{#1}"),Se("\\red","\\textcolor{##df0030}{#1}"),Se("\\green","\\textcolor{##28ae7b}{#1}"),Se("\\gray","\\textcolor{gray}{#1}"),Se("\\purple","\\textcolor{##9d38bd}{#1}"),Se("\\blueA","\\textcolor{##ccfaff}{#1}"),Se("\\blueB","\\textcolor{##80f6ff}{#1}"),Se("\\blueC","\\textcolor{##63d9ea}{#1}"),Se("\\blueD","\\textcolor{##11accd}{#1}"),Se("\\blueE","\\textcolor{##0c7f99}{#1}"),Se("\\tealA","\\textcolor{##94fff5}{#1}"),Se("\\tealB","\\textcolor{##26edd5}{#1}"),Se("\\tealC","\\textcolor{##01d1c1}{#1}"),Se("\\tealD","\\textcolor{##01a995}{#1}"),Se("\\tealE","\\textcolor{##208170}{#1}"),Se("\\greenA","\\textcolor{##b6ffb0}{#1}"),Se("\\greenB","\\textcolor{##8af281}{#1}"),Se("\\greenC","\\textcolor{##74cf70}{#1}"),Se("\\greenD","\\textcolor{##1fab54}{#1}"),Se("\\greenE","\\textcolor{##0d923f}{#1}"),Se("\\goldA","\\textcolor{##ffd0a9}{#1}"),Se("\\goldB","\\textcolor{##ffbb71}{#1}"),Se("\\goldC","\\textcolor{##ff9c39}{#1}"),Se("\\goldD","\\textcolor{##e07d10}{#1}"),Se("\\goldE","\\textcolor{##a75a05}{#1}"),Se("\\redA","\\textcolor{##fca9a9}{#1}"),Se("\\redB","\\textcolor{##ff8482}{#1}"),Se("\\redC","\\textcolor{##f9685d}{#1}"),Se("\\redD","\\textcolor{##e84d39}{#1}"),Se("\\redE","\\textcolor{##bc2612}{#1}"),Se("\\maroonA","\\textcolor{##ffbde0}{#1}"),Se("\\maroonB","\\textcolor{##ff92c6}{#1}"),Se("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Se("\\maroonD","\\textcolor{##ca337c}{#1}"),Se("\\maroonE","\\textcolor{##9e034e}{#1}"),Se("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Se("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Se("\\purpleC","\\textcolor{##aa87ff}{#1}"),Se("\\purpleD","\\textcolor{##7854ab}{#1}"),Se("\\purpleE","\\textcolor{##543b78}{#1}"),Se("\\mintA","\\textcolor{##f5f9e8}{#1}"),Se("\\mintB","\\textcolor{##edf2df}{#1}"),Se("\\mintC","\\textcolor{##e0e5cc}{#1}"),Se("\\grayA","\\textcolor{##f6f7f7}{#1}"),Se("\\grayB","\\textcolor{##f0f1f2}{#1}"),Se("\\grayC","\\textcolor{##e3e5e6}{#1}"),Se("\\grayD","\\textcolor{##d6d8da}{#1}"),Se("\\grayE","\\textcolor{##babec2}{#1}"),Se("\\grayF","\\textcolor{##888d93}{#1}"),Se("\\grayG","\\textcolor{##626569}{#1}"),Se("\\grayH","\\textcolor{##3b3e40}{#1}"),Se("\\grayI","\\textcolor{##21242c}{#1}"),Se("\\kaBlue","\\textcolor{##314453}{#1}"),Se("\\kaGreen","\\textcolor{##71B307}{#1}");var $n={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Nn=function(){function q(d,f,g){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=f,this.expansionCount=0,this.feed(d),this.macros=new _t(Ot,f.macros),this.mode=g,this.stack=[]}var l=q.prototype;return l.feed=function(f){this.lexer=new xt(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 g;(g=this.stack).push.apply(g,f)},l.consumeSpaces=function(){for(;;){var f=this.future();if(f.text===" ")this.stack.pop();else break}},l.consumeArgs=function(f){for(var g=[],k=0;k<f;++k){this.consumeSpaces();var ae=this.popToken();if(ae.text==="{"){for(var Re=[],Le=1;Le!==0;){var qe=this.popToken();if(Re.push(qe),qe.text==="{")++Le;else if(qe.text==="}")--Le;else if(qe.text==="EOF")throw new H("End of input in macro argument",ae)}Re.pop(),Re.reverse(),g[k]=Re}else{if(ae.text==="EOF")throw new H("End of input expecting macro argument");g[k]=[ae]}}return g},l.expandOnce=function(){var f=this.popToken(),g=f.text,k=this._getExpansion(g);if(k==null)return this.pushToken(f),f;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new H("Too many expansions: infinite loop or need to increase maxExpand setting");var ae=k.tokens;if(k.numArgs){var Re=this.consumeArgs(k.numArgs);ae=ae.slice();for(var Le=ae.length-1;Le>=0;--Le){var qe=ae[Le];if(qe.text==="#"){if(Le===0)throw new H("Incomplete placeholder at end of macro body",qe);if(qe=ae[--Le],qe.text==="#")ae.splice(Le+1,1);else if(/^[1-9]$/.test(qe.text)){var dt;(dt=ae).splice.apply(dt,[Le,2].concat(Re[+qe.text-1]))}else throw new H("Not a valid argument number",qe)}}}return this.pushTokens(ae),ae},l.expandAfterFuture=function(){return this.expandOnce(),this.future()},l.expandNextToken=function(){for(;;){var f=this.expandOnce();if(f instanceof ye)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 g=[],k=this.stack.length;for(this.pushToken(new ye(f));this.stack.length>k;){var ae=this.expandOnce();ae instanceof ye&&g.push(this.stack.pop())}return g}},l.expandMacroAsText=function(f){var g=this.expandMacro(f);return g&&g.map(function(k){return k.text}).join("")},l._getExpansion=function(f){var g=this.macros.get(f);if(g==null)return g;var k=typeof g=="function"?g(this):g;if(typeof k=="string"){var ae=0;if(k.indexOf("#")!==-1)for(var Re=k.replace(/##/g,"");Re.indexOf("#"+(ae+1))!==-1;)++ae;for(var Le=new xt(k,this.settings),qe=[],dt=Le.lex();dt.text!=="EOF";)qe.push(dt),dt=Le.lex();qe.reverse();var Ct={tokens:qe,numArgs:ae};return Ct}return k},l.isDefined=function(f){return this.macros.has(f)||ka.hasOwnProperty(f)||At.math.hasOwnProperty(f)||At.text.hasOwnProperty(f)||$n.hasOwnProperty(f)},q}(),Kn={"\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"}},br={\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"},xr=function(){function q(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 Nn(d,f,this.mode),this.settings=f,this.leftrightDepth=0}var l=q.prototype;return l.expect=function(f,g){if(g===void 0&&(g=!0),this.fetch().text!==f)throw new H("Expected '"+f+"', got '"+this.fetch().text+"'",this.fetch());g&&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,g){for(var k=[];;){this.mode==="math"&&this.consumeSpaces();var ae=this.fetch();if(q.endOfExpression.indexOf(ae.text)!==-1||g&&ae.text===g||f&&ka[ae.text]&&ka[ae.text].infix)break;var Re=this.parseAtom(g);if(!Re)break;k.push(Re)}return this.mode==="text"&&this.formLigatures(k),this.handleInfixNodes(k)},l.handleInfixNodes=function(f){for(var g=-1,k,ae=0;ae<f.length;ae++){var Re=lr(f[ae],"infix");if(Re){if(g!==-1)throw new H("only one infix operator per group",Re.token);g=ae,k=Re.replaceWith}}if(g!==-1&&k){var Le,qe,dt=f.slice(0,g),Ct=f.slice(g+1);dt.length===1&&dt[0].type==="ordgroup"?Le=dt[0]:Le={type:"ordgroup",mode:this.mode,body:dt},Ct.length===1&&Ct[0].type==="ordgroup"?qe=Ct[0]:qe={type:"ordgroup",mode:this.mode,body:Ct};var Kt;return k==="\\\\abovefrac"?Kt=this.callFunction(k,[Le,f[g],qe],[]):Kt=this.callFunction(k,[Le,qe],[]),[Kt]}else return f},l.handleSupSubscript=function(f){var g=this.fetch(),k=g.text;this.consume();var ae=this.parseGroup(f,!1,q.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!ae)throw new H("Expected group after '"+k+"'",g);return ae},l.formatUnsupportedCmd=function(f){for(var g=[],k=0;k<f.length;k++)g.push({type:"textord",mode:"text",text:f[k]});var ae={type:"text",mode:this.mode,body:g},Re={type:"color",mode:this.mode,color:this.settings.errorColor,body:[ae]};return Re},l.parseAtom=function(f){var g=this.parseGroup("atom",!1,null,f);if(this.mode==="text")return g;for(var k,ae;;){this.consumeSpaces();var Re=this.fetch();if(Re.text==="\\limits"||Re.text==="\\nolimits"){var Le=lr(g,"op");if(Le){var qe=Re.text==="\\limits";Le.limits=qe,Le.alwaysHandleSupSub=!0}else if(Le=lr(g,"operatorname"),Le&&Le.alwaysHandleSupSub){var dt=Re.text==="\\limits";Le.limits=dt}else throw new H("Limit controls must follow a math operator",Re);this.consume()}else if(Re.text==="^"){if(k)throw new H("Double superscript",Re);k=this.handleSupSubscript("superscript")}else if(Re.text==="_"){if(ae)throw new H("Double subscript",Re);ae=this.handleSupSubscript("subscript")}else if(Re.text==="'"){if(k)throw new H("Double superscript",Re);var Ct={type:"textord",mode:this.mode,text:"\\prime"},Kt=[Ct];for(this.consume();this.fetch().text==="'";)Kt.push(Ct),this.consume();this.fetch().text==="^"&&Kt.push(this.handleSupSubscript("superscript")),k={type:"ordgroup",mode:this.mode,body:Kt}}else break}return k||ae?{type:"supsub",mode:this.mode,base:g,sup:k,sub:ae}:g},l.parseFunction=function(f,g,k){var ae=this.fetch(),Re=ae.text,Le=ka[Re];if(!Le)return null;if(this.consume(),k!=null&&Le.greediness<=k)throw new H("Got function '"+Re+"' with no arguments"+(g?" as "+g:""),ae);if(this.mode==="text"&&!Le.allowedInText)throw new H("Can't use function '"+Re+"' in text mode",ae);if(this.mode==="math"&&Le.allowedInMath===!1)throw new H("Can't use function '"+Re+"' in math mode",ae);var qe=this.parseArguments(Re,Le),dt=qe.args,Ct=qe.optArgs;return this.callFunction(Re,dt,Ct,ae,f)},l.callFunction=function(f,g,k,ae,Re){var Le={funcName:f,parser:this,token:ae,breakOnTokenText:Re},qe=ka[f];if(qe&&qe.handler)return qe.handler(Le,g,k);throw new H("No function handler for "+f)},l.parseArguments=function(f,g){var k=g.numArgs+g.numOptionalArgs;if(k===0)return{args:[],optArgs:[]};for(var ae=g.greediness,Re=[],Le=[],qe=0;qe<k;qe++){var dt=g.argTypes&&g.argTypes[qe],Ct=qe<g.numOptionalArgs,Kt=qe>0&&!Ct||qe===0&&!Ct&&this.mode==="math",pn=this.parseGroupOfType("argument to '"+f+"'",dt,Ct,ae,Kt);if(!pn){if(Ct){Le.push(null);continue}throw new H("Expected group after '"+f+"'",this.fetch())}(Ct?Le:Re).push(pn)}return{args:Re,optArgs:Le}},l.parseGroupOfType=function(f,g,k,ae,Re){switch(g){case"color":return Re&&this.consumeSpaces(),this.parseColorGroup(k);case"size":return Re&&this.consumeSpaces(),this.parseSizeGroup(k);case"url":return this.parseUrlGroup(k,Re);case"math":case"text":return this.parseGroup(f,k,ae,void 0,g,Re);case"hbox":{var Le=this.parseGroup(f,k,ae,void 0,"text",Re);if(!Le)return Le;var qe={type:"styling",mode:Le.mode,body:[Le],style:"text"};return qe}case"raw":{if(Re&&this.consumeSpaces(),k&&this.fetch().text==="{")return null;var dt=this.parseStringGroup("raw",k,!0);if(dt)return{type:"raw",mode:"text",string:dt.text};throw new H("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(f,k,ae,void 0,void 0,Re);default:throw new H("Unknown group type as "+f,this.fetch())}},l.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},l.parseStringGroup=function(f,g,k){var ae=g?"[":"{",Re=g?"]":"}",Le=this.fetch();if(Le.text!==ae){if(g)return null;if(k&&Le.text!=="EOF"&&/[^{}[\]]/.test(Le.text))return this.consume(),Le}var qe=this.mode;this.mode="text",this.expect(ae);for(var dt="",Ct=this.fetch(),Kt=0,pn=Ct,jt;(jt=this.fetch()).text!==Re||k&&Kt>0;){switch(jt.text){case"EOF":throw new H("Unexpected end of input in "+f,Ct.range(pn,dt));case ae:Kt++;break;case Re:Kt--;break}pn=jt,dt+=pn.text,this.consume()}return this.expect(Re),this.mode=qe,Ct.range(pn,dt)},l.parseRegexGroup=function(f,g){var k=this.mode;this.mode="text";for(var ae=this.fetch(),Re=ae,Le="",qe;(qe=this.fetch()).text!=="EOF"&&f.test(Le+qe.text);)Re=qe,Le+=Re.text,this.consume();if(Le==="")throw new H("Invalid "+g+": '"+ae.text+"'",ae);return this.mode=k,ae.range(Re,Le)},l.parseColorGroup=function(f){var g=this.parseStringGroup("color",f);if(!g)return null;var k=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(g.text);if(!k)throw new H("Invalid color: '"+g.text+"'",g);var ae=k[0];return/^[0-9a-f]{6}$/i.test(ae)&&(ae="#"+ae),{type:"color-token",mode:this.mode,color:ae}},l.parseSizeGroup=function(f){var g,k=!1;if(!f&&this.fetch().text!=="{"?g=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):g=this.parseStringGroup("size",f),!g)return null;!f&&g.text.length===0&&(g.text="0pt",k=!0);var ae=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(g.text);if(!ae)throw new H("Invalid size: '"+g.text+"'",g);var Re={number:+(ae[1]+ae[2]),unit:ae[3]};if(!ct(Re))throw new H("Invalid unit: '"+Re.unit+"'",g);return{type:"size",mode:this.mode,value:Re,isBlank:k}},l.parseUrlGroup=function(f,g){this.gullet.lexer.setCatcode("%",13);var k=this.parseStringGroup("url",f,!0);if(this.gullet.lexer.setCatcode("%",14),!k)return null;var ae=k.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:ae}},l.parseGroup=function(f,g,k,ae,Re,Le){var qe=this.mode;Re&&this.switchMode(Re),Le&&this.consumeSpaces();var dt=this.fetch(),Ct=dt.text,Kt;if(g?Ct==="[":Ct==="{"||Ct==="\\begingroup"){this.consume();var pn=q.endOfGroup[Ct];this.gullet.beginGroup();var jt=this.parseExpression(!1,pn),Jt=this.fetch();this.expect(pn),this.gullet.endGroup(),Kt={type:"ordgroup",mode:this.mode,loc:Q.range(dt,Jt),body:jt,semisimple:Ct==="\\begingroup"||void 0}}else if(g)Kt=null;else if(Kt=this.parseFunction(ae,f,k)||this.parseSymbol(),Kt==null&&Ct[0]==="\\"&&!$n.hasOwnProperty(Ct)){if(this.settings.throwOnError)throw new H("Undefined control sequence: "+Ct,dt);Kt=this.formatUnsupportedCmd(Ct),this.consume()}return Re&&this.switchMode(qe),Kt},l.formLigatures=function(f){for(var g=f.length-1,k=0;k<g;++k){var ae=f[k],Re=ae.text;Re==="-"&&f[k+1].text==="-"&&(k+1<g&&f[k+2].text==="-"?(f.splice(k,3,{type:"textord",mode:"text",loc:Q.range(ae,f[k+2]),text:"---"}),g-=2):(f.splice(k,2,{type:"textord",mode:"text",loc:Q.range(ae,f[k+1]),text:"--"}),g-=1)),(Re==="'"||Re==="`")&&f[k+1].text===Re&&(f.splice(k,2,{type:"textord",mode:"text",loc:Q.range(ae,f[k+1]),text:Re+Re}),g-=1)}},l.parseSymbol=function(){var f=this.fetch(),g=f.text;if(/^\\verb[^a-zA-Z]/.test(g)){this.consume();var k=g.slice(5),ae=k.charAt(0)==="*";if(ae&&(k=k.slice(1)),k.length<2||k.charAt(0)!==k.slice(-1))throw new H(`\\verb assertion failed --
please report what input caused this bug`);return k=k.slice(1,-1),{type:"verb",mode:"text",body:k,star:ae}}br.hasOwnProperty(g[0])&&!At[this.mode][g[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+g[0]+'" used in math mode',f),g=br[g[0]]+g.substr(1));var Re=et.exec(g);Re&&(g=g.substring(0,Re.index),g==="i"?g="\u0131":g==="j"&&(g="\u0237"));var Le;if(At[this.mode][g]){this.settings.strict&&this.mode==="math"&&on.indexOf(g)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+g[0]+'" used in math mode',f);var qe=At[this.mode][g].group,dt=Q.range(f),Ct;if(wt.hasOwnProperty(qe)){var Kt=qe;Ct={type:"atom",mode:this.mode,family:Kt,loc:dt,text:g}}else Ct={type:qe,mode:this.mode,loc:dt,text:g};Le=Ct}else if(g.charCodeAt(0)>=128)this.settings.strict&&(Ne(g.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+g[0]+'" used in math mode',f):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+g[0]+'"'+(" ("+g.charCodeAt(0)+")"),f)),Le={type:"textord",mode:"text",loc:Q.range(f),text:g};else return null;if(this.consume(),Re)for(var pn=0;pn<Re[0].length;pn++){var jt=Re[0][pn];if(!Kn[jt])throw new H("Unknown accent ' "+jt+"'",f);var Jt=Kn[jt][this.mode];if(!Jt)throw new H("Accent "+jt+" unsupported in "+this.mode+" mode",f);Le={type:"accent",mode:this.mode,loc:Q.range(f),label:Jt,isStretchy:!1,isShifty:!0,base:Le}}return Le},q}();xr.endOfExpression=["}","\\endgroup","\\end","\\right","&"],xr.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},xr.SUPSUB_GREEDINESS=1;var hr=function(l,d){if(!(typeof l=="string"||l instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var f=new xr(l,d);delete f.gullet.macros.current["\\df@tag"];var g=f.parse();if(f.gullet.macros.get("\\df@tag")){if(!d.displayMode)throw new H("\\tag works only in display equations");f.gullet.feed("\\df@tag"),g=[{type:"tag",mode:"text",body:g,tag:f.parse()}]}return g},Pr=hr,Fr=function(l,d,f){d.textContent="";var g=kn(l,f).toNode();d.appendChild(g)};typeof document!="undefined"&&document.compatMode!=="CSS1Compat"&&(typeof console!="undefined"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Fr=function(){throw new H("KaTeX doesn't work in quirks mode.")});var jn=function(l,d){var f=kn(l,d).toMarkup();return f},pr=function(l,d){var f=new M(d);return Pr(l,f)},Vn=function(l,d,f){if(f.throwOnError||!(l instanceof H))throw l;var g=it.makeSpan(["katex-error"],[new R(d)]);return g.setAttribute("title",l.toString()),g.setAttribute("style","color:"+f.errorColor),g},kn=function(l,d){var f=new M(d);try{var g=Pr(l,f);return yi(g,l,f)}catch(k){return Vn(k,l,f)}},fr=function(l,d){var f=new M(d);try{var g=Pr(l,f);return Oi(g,l,f)}catch(k){return Vn(k,l,f)}},Or={version:"0.11.1",render:Fr,renderToString:jn,ParseError:H,__parse:pr,__renderToDomTree:kn,__renderToHTMLTree:fr,__setFontMetrics:Xe,__defineSymbol:w,__defineMacro:Se,__domTree:{Span:ie,Anchor:Y,SymbolNode:R,SvgNode:I,PathNode:le,LineNode:re}},Wr=h.default=Or}]).default})},32834:function(Gt){(function(He,h){Gt.exports=h()})(this,function(){"use strict";function He(je,nt){for(var tt=0;tt<nt.length;tt++){var _e=nt[tt];_e.enumerable=_e.enumerable||!1,_e.configurable=!0,"value"in _e&&(_e.writable=!0),Object.defineProperty(je,_e.key,_e)}}function h(je,nt,tt){return nt&&He(je.prototype,nt),tt&&He(je,tt),je}function z(je,nt){if(je){if(typeof je=="string")return N(je,nt);var tt=Object.prototype.toString.call(je).slice(8,-1);if(tt==="Object"&&je.constructor&&(tt=je.constructor.name),tt==="Map"||tt==="Set")return Array.from(je);if(tt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(tt))return N(je,nt)}}function N(je,nt){(nt==null||nt>je.length)&&(nt=je.length);for(var tt=0,_e=new Array(nt);tt<nt;tt++)_e[tt]=je[tt];return _e}function Q(je,nt){var tt=typeof Symbol!="undefined"&&je[Symbol.iterator]||je["@@iterator"];if(tt)return(tt=tt.call(je)).next.bind(tt);if(Array.isArray(je)||(tt=z(je))||nt&&je&&typeof je.length=="number"){tt&&(je=tt);var _e=0;return function(){return _e>=je.length?{done:!0}:{done:!1,value:je[_e++]}}}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 ye={exports:{}};function U(){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 H(je){ye.exports.defaults=je}ye.exports={defaults:U(),getDefaults:U,changeDefaults:H};var S=/[&<>"']/,pe=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,C=/[<>"']|&(?!#?\w+;)/g,O={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},m=function(nt){return O[nt]};function u(je,nt){if(nt){if(S.test(je))return je.replace(pe,m)}else if(a.test(je))return je.replace(C,m);return je}var x=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function y(je){return je.replace(x,function(nt,tt){return tt=tt.toLowerCase(),tt==="colon"?":":tt.charAt(0)==="#"?tt.charAt(1)==="x"?String.fromCharCode(parseInt(tt.substring(2),16)):String.fromCharCode(+tt.substring(1)):""})}var L=/(^|[^\[])\^/g;function te(je,nt){je=je.source||je,nt=nt||"";var tt={replace:function(De,Fe){return Fe=Fe.source||Fe,Fe=Fe.replace(L,"$1"),je=je.replace(De,Fe),tt},getRegex:function(){return new RegExp(je,nt)}};return tt}var B=/[^\w:]/g,M=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function W(je,nt,tt){if(je){var _e;try{_e=decodeURIComponent(y(tt)).replace(B,"").toLowerCase()}catch(De){return null}if(_e.indexOf("javascript:")===0||_e.indexOf("vbscript:")===0||_e.indexOf("data:")===0)return null}nt&&!M.test(tt)&&(tt=j(nt,tt));try{tt=encodeURI(tt).replace(/%25/g,"%")}catch(De){return null}return tt}var V={},b=/^[^:]+:\/*[^/]*$/,T=/^([^:]+:)[\s\S]*$/,G=/^([^:]+:\/*[^/]*)[\s\S]*$/;function j(je,nt){V[" "+je]||(b.test(je)?V[" "+je]=je+"/":V[" "+je]=ce(je,"/",!0)),je=V[" "+je];var tt=je.indexOf(":")===-1;return nt.substring(0,2)==="//"?tt?nt:je.replace(T,"$1")+nt:nt.charAt(0)==="/"?tt?nt:je.replace(G,"$1")+nt:je+nt}var be={exec:function(){}};function Ee(je){for(var nt=1,tt,_e;nt<arguments.length;nt++){tt=arguments[nt];for(_e in tt)Object.prototype.hasOwnProperty.call(tt,_e)&&(je[_e]=tt[_e])}return je}function xe(je,nt){var tt=je.replace(/\|/g,function(Fe,Qe,ge){for(var Vt=!1,Ze=Qe;--Ze>=0&&ge[Ze]==="\\";)Vt=!Vt;return Vt?"|":" |"}),_e=tt.split(/ \|/),De=0;if(_e.length>nt)_e.splice(nt);else for(;_e.length<nt;)_e.push("");for(;De<_e.length;De++)_e[De]=_e[De].trim().replace(/\\\|/g,"|");return _e}function ce(je,nt,tt){var _e=je.length;if(_e===0)return"";for(var De=0;De<_e;){var Fe=je.charAt(_e-De-1);if(Fe===nt&&!tt)De++;else if(Fe!==nt&&tt)De++;else break}return je.substr(0,_e-De)}function ee(je,nt){if(je.indexOf(nt[1])===-1)return-1;for(var tt=je.length,_e=0,De=0;De<tt;De++)if(je[De]==="\\")De++;else if(je[De]===nt[0])_e++;else if(je[De]===nt[1]&&(_e--,_e<0))return De;return-1}function Z(je){je&&je.sanitize&&!je.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 me(je,nt){if(nt<1)return"";for(var tt="";nt>1;)nt&1&&(tt+=je),nt>>=1,je+=je;return tt+je}var P={escape:u,unescape:y,edit:te,cleanUrl:W,resolveUrl:j,noopTest:be,merge:Ee,splitCells:xe,rtrim:ce,findClosingBracket:ee,checkSanitizeDeprecation:Z,repeatString:me},se=ye.exports.defaults,X=P.rtrim,v=P.splitCells,E=P.escape,K=P.findClosingBracket;function de(je,nt,tt){var _e=nt.href,De=nt.title?E(nt.title):null,Fe=je[1].replace(/\\([\[\]])/g,"$1");return je[0].charAt(0)!=="!"?{type:"link",raw:tt,href:_e,title:De,text:Fe}:{type:"image",raw:tt,href:_e,title:De,text:E(Fe)}}function Ne(je,nt){var tt=je.match(/^(\s+)(?:```)/);if(tt===null)return nt;var _e=tt[1];return nt.split(`
`).map(function(De){var Fe=De.match(/^\s+/);if(Fe===null)return De;var Qe=Fe[0];return Qe.length>=_e.length?De.slice(_e.length):De}).join(`
`)}var Ue=function(){function je(tt){this.options=tt||se}var nt=je.prototype;return nt.space=function(_e){var De=this.rules.block.newline.exec(_e);if(De)return De[0].length>1?{type:"space",raw:De[0]}:{raw:`
`}},nt.code=function(_e){var De=this.rules.block.code.exec(_e);if(De){var Fe=De[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:De[0],codeBlockStyle:"indented",text:this.options.pedantic?Fe:X(Fe,`
`)}}},nt.fences=function(_e){var De=this.rules.block.fences.exec(_e);if(De){var Fe=De[0],Qe=Ne(Fe,De[3]||"");return{type:"code",raw:Fe,lang:De[2]?De[2].trim():De[2],text:Qe}}},nt.heading=function(_e){var De=this.rules.block.heading.exec(_e);if(De){var Fe=De[2].trim();if(/#$/.test(Fe)){var Qe=X(Fe,"#");(this.options.pedantic||!Qe||/ $/.test(Qe))&&(Fe=Qe.trim())}return{type:"heading",raw:De[0],depth:De[1].length,text:Fe}}},nt.nptable=function(_e){var De=this.rules.block.nptable.exec(_e);if(De){var Fe={type:"table",header:v(De[1].replace(/^ *| *\| *$/g,"")),align:De[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:De[3]?De[3].replace(/\n$/,"").split(`
`):[],raw:De[0]};if(Fe.header.length===Fe.align.length){var Qe=Fe.align.length,ge;for(ge=0;ge<Qe;ge++)/^ *-+: *$/.test(Fe.align[ge])?Fe.align[ge]="right":/^ *:-+: *$/.test(Fe.align[ge])?Fe.align[ge]="center":/^ *:-+ *$/.test(Fe.align[ge])?Fe.align[ge]="left":Fe.align[ge]=null;for(Qe=Fe.cells.length,ge=0;ge<Qe;ge++)Fe.cells[ge]=v(Fe.cells[ge],Fe.header.length);return Fe}}},nt.hr=function(_e){var De=this.rules.block.hr.exec(_e);if(De)return{type:"hr",raw:De[0]}},nt.blockquote=function(_e){var De=this.rules.block.blockquote.exec(_e);if(De){var Fe=De[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:De[0],text:Fe}}},nt.list=function(_e){var De=this.rules.block.list.exec(_e);if(De){var Fe=De[0],Qe=De[2],ge=Qe.length>1,Vt={type:"list",raw:Fe,ordered:ge,start:ge?+Qe.slice(0,-1):"",loose:!1,items:[]},Ze=De[0].match(this.rules.block.item),gn=!1,In,Hn,mr,rn,vn,Je,It,zt,Ke,Oe=Ze.length;mr=this.rules.block.listItemStart.exec(Ze[0]);for(var bt=0;bt<Oe;bt++){if(In=Ze[bt],Fe=In,this.options.pedantic||(Ke=In.match(new RegExp("\\n\\s*\\n {0,"+(mr[0].length-1)+"}\\S")),Ke&&(vn=In.length-Ke.index+Ze.slice(bt+1).join(`
`).length,Vt.raw=Vt.raw.substring(0,Vt.raw.length-vn),In=In.substring(0,Ke.index),Fe=In,Oe=bt+1)),bt!==Oe-1){if(rn=this.rules.block.listItemStart.exec(Ze[bt+1]),this.options.pedantic?rn[1].length>mr[1].length:rn[1].length>=mr[0].length||rn[1].length>3){Ze.splice(bt,2,Ze[bt]+(!this.options.pedantic&&rn[1].length<mr[0].length&&!Ze[bt].match(/\n$/)?"":`
`)+Ze[bt+1]),bt--,Oe--;continue}else(!this.options.pedantic||this.options.smartLists?rn[2][rn[2].length-1]!==Qe[Qe.length-1]:ge===(rn[2].length===1))&&(vn=Ze.slice(bt+1).join(`
`).length,Vt.raw=Vt.raw.substring(0,Vt.raw.length-vn),bt=Oe-1);mr=rn}Hn=In.length,In=In.replace(/^ *([*+-]|\d+[.)]) ?/,""),~In.indexOf(`
`)&&(Hn-=In.length,In=this.options.pedantic?In.replace(/^ {1,4}/gm,""):In.replace(new RegExp("^ {1,"+Hn+"}","gm"),"")),In=X(In,`
`),bt!==Oe-1&&(Fe=Fe+`
`),Je=gn||/\n\n(?!\s*$)/.test(Fe),bt!==Oe-1&&(gn=Fe.slice(-2)===`
`,Je||(Je=gn)),Je&&(Vt.loose=!0),this.options.gfm&&(It=/^\[[ xX]\] /.test(In),zt=void 0,It&&(zt=In[1]!==" ",In=In.replace(/^\[[ xX]\] +/,""))),Vt.items.push({type:"list_item",raw:Fe,task:It,checked:zt,loose:Je,text:In})}return Vt}},nt.html=function(_e){var De=this.rules.block.html.exec(_e);if(De)return{type:this.options.sanitize?"paragraph":"html",raw:De[0],pre:!this.options.sanitizer&&(De[1]==="pre"||De[1]==="script"||De[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(De[0]):E(De[0]):De[0]}},nt.def=function(_e){var De=this.rules.block.def.exec(_e);if(De){De[3]&&(De[3]=De[3].substring(1,De[3].length-1));var Fe=De[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:Fe,raw:De[0],href:De[2],title:De[3]}}},nt.table=function(_e){var De=this.rules.block.table.exec(_e);if(De){var Fe={type:"table",header:v(De[1].replace(/^ *| *\| *$/g,"")),align:De[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:De[3]?De[3].replace(/\n$/,"").split(`
`):[]};if(Fe.header.length===Fe.align.length){Fe.raw=De[0];var Qe=Fe.align.length,ge;for(ge=0;ge<Qe;ge++)/^ *-+: *$/.test(Fe.align[ge])?Fe.align[ge]="right":/^ *:-+: *$/.test(Fe.align[ge])?Fe.align[ge]="center":/^ *:-+ *$/.test(Fe.align[ge])?Fe.align[ge]="left":Fe.align[ge]=null;for(Qe=Fe.cells.length,ge=0;ge<Qe;ge++)Fe.cells[ge]=v(Fe.cells[ge].replace(/^ *\| *| *\| *$/g,""),Fe.header.length);return Fe}}},nt.lheading=function(_e){var De=this.rules.block.lheading.exec(_e);if(De)return{type:"heading",raw:De[0],depth:De[2].charAt(0)==="="?1:2,text:De[1]}},nt.paragraph=function(_e){var De=this.rules.block.paragraph.exec(_e);if(De)return{type:"paragraph",raw:De[0],text:De[1].charAt(De[1].length-1)===`
`?De[1].slice(0,-1):De[1]}},nt.text=function(_e){var De=this.rules.block.text.exec(_e);if(De)return{type:"text",raw:De[0],text:De[0]}},nt.escape=function(_e){var De=this.rules.inline.escape.exec(_e);if(De)return{type:"escape",raw:De[0],text:E(De[1])}},nt.tag=function(_e,De,Fe){var Qe=this.rules.inline.tag.exec(_e);if(Qe)return!De&&/^<a /i.test(Qe[0])?De=!0:De&&/^<\/a>/i.test(Qe[0])&&(De=!1),!Fe&&/^<(pre|code|kbd|script)(\s|>)/i.test(Qe[0])?Fe=!0:Fe&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Qe[0])&&(Fe=!1),{type:this.options.sanitize?"text":"html",raw:Qe[0],inLink:De,inRawBlock:Fe,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Qe[0]):E(Qe[0]):Qe[0]}},nt.link=function(_e){var De=this.rules.inline.link.exec(_e);if(De){var Fe=De[2].trim();if(!this.options.pedantic&&/^</.test(Fe)){if(!/>$/.test(Fe))return;var Qe=X(Fe.slice(0,-1),"\\");if((Fe.length-Qe.length)%2===0)return}else{var ge=K(De[2],"()");if(ge>-1){var Vt=De[0].indexOf("!")===0?5:4,Ze=Vt+De[1].length+ge;De[2]=De[2].substring(0,ge),De[0]=De[0].substring(0,Ze).trim(),De[3]=""}}var gn=De[2],In="";if(this.options.pedantic){var Hn=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(gn);Hn&&(gn=Hn[1],In=Hn[3])}else In=De[3]?De[3].slice(1,-1):"";return gn=gn.trim(),/^</.test(gn)&&(this.options.pedantic&&!/>$/.test(Fe)?gn=gn.slice(1):gn=gn.slice(1,-1)),de(De,{href:gn&&gn.replace(this.rules.inline._escapes,"$1"),title:In&&In.replace(this.rules.inline._escapes,"$1")},De[0])}},nt.reflink=function(_e,De){var Fe;if((Fe=this.rules.inline.reflink.exec(_e))||(Fe=this.rules.inline.nolink.exec(_e))){var Qe=(Fe[2]||Fe[1]).replace(/\s+/g," ");if(Qe=De[Qe.toLowerCase()],!Qe||!Qe.href){var ge=Fe[0].charAt(0);return{type:"text",raw:ge,text:ge}}return de(Fe,Qe,Fe[0])}},nt.emStrong=function(_e,De,Fe){Fe===void 0&&(Fe="");var Qe=this.rules.inline.emStrong.lDelim.exec(_e);if(Qe&&!(Qe[3]&&Fe.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\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 ge=Qe[1]||Qe[2]||"";if(!ge||ge&&(Fe===""||this.rules.inline.punctuation.exec(Fe))){var Vt=Qe[0].length-1,Ze,gn,In=Vt,Hn=0,mr=Qe[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(mr.lastIndex=0,De=De.slice(-1*_e.length+Vt);(Qe=mr.exec(De))!=null;)if(Ze=Qe[1]||Qe[2]||Qe[3]||Qe[4]||Qe[5]||Qe[6],!!Ze){if(gn=Ze.length,Qe[3]||Qe[4]){In+=gn;continue}else if((Qe[5]||Qe[6])&&Vt%3&&!((Vt+gn)%3)){Hn+=gn;continue}if(In-=gn,!(In>0))return gn=Math.min(gn,gn+In+Hn),Math.min(Vt,gn)%2?{type:"em",raw:_e.slice(0,Vt+Qe.index+gn+1),text:_e.slice(1,Vt+Qe.index+gn)}:{type:"strong",raw:_e.slice(0,Vt+Qe.index+gn+1),text:_e.slice(2,Vt+Qe.index+gn-1)}}}}},nt.codespan=function(_e){var De=this.rules.inline.code.exec(_e);if(De){var Fe=De[2].replace(/\n/g," "),Qe=/[^ ]/.test(Fe),ge=/^ /.test(Fe)&&/ $/.test(Fe);return Qe&&ge&&(Fe=Fe.substring(1,Fe.length-1)),Fe=E(Fe,!0),{type:"codespan",raw:De[0],text:Fe}}},nt.br=function(_e){var De=this.rules.inline.br.exec(_e);if(De)return{type:"br",raw:De[0]}},nt.del=function(_e){var De=this.rules.inline.del.exec(_e);if(De)return{type:"del",raw:De[0],text:De[2]}},nt.autolink=function(_e,De){var Fe=this.rules.inline.autolink.exec(_e);if(Fe){var Qe,ge;return Fe[2]==="@"?(Qe=E(this.options.mangle?De(Fe[1]):Fe[1]),ge="mailto:"+Qe):(Qe=E(Fe[1]),ge=Qe),{type:"link",raw:Fe[0],text:Qe,href:ge,tokens:[{type:"text",raw:Qe,text:Qe}]}}},nt.url=function(_e,De){var Fe;if(Fe=this.rules.inline.url.exec(_e)){var Qe,ge;if(Fe[2]==="@")Qe=E(this.options.mangle?De(Fe[0]):Fe[0]),ge="mailto:"+Qe;else{var Vt;do Vt=Fe[0],Fe[0]=this.rules.inline._backpedal.exec(Fe[0])[0];while(Vt!==Fe[0]);Qe=E(Fe[0]),Fe[1]==="www."?ge="http://"+Qe:ge=Qe}return{type:"link",raw:Fe[0],text:Qe,href:ge,tokens:[{type:"text",raw:Qe,text:Qe}]}}},nt.inlineText=function(_e,De,Fe){var Qe=this.rules.inline.text.exec(_e);if(Qe){var ge;return De?ge=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Qe[0]):E(Qe[0]):Qe[0]:ge=E(this.options.smartypants?Fe(Qe[0]):Qe[0]),{type:"text",raw:Qe[0],text:ge}}},je}(),ke=P.noopTest,Ve=P.edit,ht=P.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:ke,table:ke,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=ht({},pt),pt.gfm=ht({},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=ht({},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:ke,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 st={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ke,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:ke,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};st._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",st.punctuation=Ve(st.punctuation).replace(/punctuation/g,st._punctuation).getRegex(),st.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,st.escapedEmSt=/\\\*|\\_/g,st._comment=Ve(pt._comment).replace("(?:-->|$)","-->").getRegex(),st.emStrong.lDelim=Ve(st.emStrong.lDelim).replace(/punct/g,st._punctuation).getRegex(),st.emStrong.rDelimAst=Ve(st.emStrong.rDelimAst,"g").replace(/punct/g,st._punctuation).getRegex(),st.emStrong.rDelimUnd=Ve(st.emStrong.rDelimUnd,"g").replace(/punct/g,st._punctuation).getRegex(),st._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,st._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,st._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])?)+(?![-_])/,st.autolink=Ve(st.autolink).replace("scheme",st._scheme).replace("email",st._email).getRegex(),st._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,st.tag=Ve(st.tag).replace("comment",st._comment).replace("attribute",st._attribute).getRegex(),st._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,st._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,st._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,st.link=Ve(st.link).replace("label",st._label).replace("href",st._href).replace("title",st._title).getRegex(),st.reflink=Ve(st.reflink).replace("label",st._label).getRegex(),st.reflinkSearch=Ve(st.reflinkSearch,"g").replace("reflink",st.reflink).replace("nolink",st.nolink).getRegex(),st.normal=ht({},st),st.pedantic=ht({},st.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",st._label).getRegex(),reflink:Ve(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",st._label).getRegex()}),st.gfm=ht({},st.normal,{escape:Ve(st.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),st.gfm.url=Ve(st.gfm.url,"i").replace("email",st.gfm._extended_email).getRegex(),st.breaks=ht({},st.gfm,{br:Ve(st.br).replace("{2,}","*").getRegex(),text:Ve(st.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Ft={block:pt,inline:st},Yt=Ue,en=ye.exports.defaults,Ut=Ft.block,ut=Ft.inline,Et=P.repeatString;function oe(je){return je.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 ve(je){var nt="",tt,_e,De=je.length;for(tt=0;tt<De;tt++)_e=je.charCodeAt(tt),Math.random()>.5&&(_e="x"+_e.toString(16)),nt+="&#"+_e+";";return nt}var ie=function(){function je(tt){this.tokens=[],this.tokens.links=Object.create(null),this.options=tt||en,this.options.tokenizer=this.options.tokenizer||new Yt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var _e={block:Ut.normal,inline:ut.normal};this.options.pedantic?(_e.block=Ut.pedantic,_e.inline=ut.pedantic):this.options.gfm&&(_e.block=Ut.gfm,this.options.breaks?_e.inline=ut.breaks:_e.inline=ut.gfm),this.tokenizer.rules=_e}je.lex=function(_e,De){var Fe=new je(De);return Fe.lex(_e)},je.lexInline=function(_e,De){var Fe=new je(De);return Fe.inlineTokens(_e)};var nt=je.prototype;return nt.lex=function(_e){return _e=_e.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(_e,this.tokens,!0),this.inline(this.tokens),this.tokens},nt.blockTokens=function(_e,De,Fe){De===void 0&&(De=[]),Fe===void 0&&(Fe=!0),this.options.pedantic&&(_e=_e.replace(/^ +$/gm,""));for(var Qe,ge,Vt,Ze;_e;){if(Qe=this.tokenizer.space(_e)){_e=_e.substring(Qe.raw.length),Qe.type&&De.push(Qe);continue}if(Qe=this.tokenizer.code(_e)){_e=_e.substring(Qe.raw.length),Ze=De[De.length-1],Ze&&Ze.type==="paragraph"?(Ze.raw+=`
`+Qe.raw,Ze.text+=`
`+Qe.text):De.push(Qe);continue}if(Qe=this.tokenizer.fences(_e)){_e=_e.substring(Qe.raw.length),De.push(Qe);continue}if(Qe=this.tokenizer.heading(_e)){_e=_e.substring(Qe.raw.length),De.push(Qe);continue}if(Qe=this.tokenizer.nptable(_e)){_e=_e.substring(Qe.raw.length),De.push(Qe);continue}if(Qe=this.tokenizer.hr(_e)){_e=_e.substring(Qe.raw.length),De.push(Qe);continue}if(Qe=this.tokenizer.blockquote(_e)){_e=_e.substring(Qe.raw.length),Qe.tokens=this.blockTokens(Qe.text,[],Fe),De.push(Qe);continue}if(Qe=this.tokenizer.list(_e)){for(_e=_e.substring(Qe.raw.length),Vt=Qe.items.length,ge=0;ge<Vt;ge++)Qe.items[ge].tokens=this.blockTokens(Qe.items[ge].text,[],!1);De.push(Qe);continue}if(Qe=this.tokenizer.html(_e)){_e=_e.substring(Qe.raw.length),De.push(Qe);continue}if(Fe&&(Qe=this.tokenizer.def(_e))){_e=_e.substring(Qe.raw.length),this.tokens.links[Qe.tag]||(this.tokens.links[Qe.tag]={href:Qe.href,title:Qe.title});continue}if(Qe=this.tokenizer.table(_e)){_e=_e.substring(Qe.raw.length),De.push(Qe);continue}if(Qe=this.tokenizer.lheading(_e)){_e=_e.substring(Qe.raw.length),De.push(Qe);continue}if(Fe&&(Qe=this.tokenizer.paragraph(_e))){_e=_e.substring(Qe.raw.length),De.push(Qe);continue}if(Qe=this.tokenizer.text(_e)){_e=_e.substring(Qe.raw.length),Ze=De[De.length-1],Ze&&Ze.type==="text"?(Ze.raw+=`
`+Qe.raw,Ze.text+=`
`+Qe.text):De.push(Qe);continue}if(_e){var gn="Infinite loop on byte: "+_e.charCodeAt(0);if(this.options.silent){console.error(gn);break}else throw new Error(gn)}}return De},nt.inline=function(_e){var De,Fe,Qe,ge,Vt,Ze,gn=_e.length;for(De=0;De<gn;De++)switch(Ze=_e[De],Ze.type){case"paragraph":case"text":case"heading":{Ze.tokens=[],this.inlineTokens(Ze.text,Ze.tokens);break}case"table":{for(Ze.tokens={header:[],cells:[]},ge=Ze.header.length,Fe=0;Fe<ge;Fe++)Ze.tokens.header[Fe]=[],this.inlineTokens(Ze.header[Fe],Ze.tokens.header[Fe]);for(ge=Ze.cells.length,Fe=0;Fe<ge;Fe++)for(Vt=Ze.cells[Fe],Ze.tokens.cells[Fe]=[],Qe=0;Qe<Vt.length;Qe++)Ze.tokens.cells[Fe][Qe]=[],this.inlineTokens(Vt[Qe],Ze.tokens.cells[Fe][Qe]);break}case"blockquote":{this.inline(Ze.tokens);break}case"list":{for(ge=Ze.items.length,Fe=0;Fe<ge;Fe++)this.inline(Ze.items[Fe].tokens);break}}return _e},nt.inlineTokens=function(_e,De,Fe,Qe){De===void 0&&(De=[]),Fe===void 0&&(Fe=!1),Qe===void 0&&(Qe=!1);var ge,Vt,Ze=_e,gn,In,Hn;if(this.tokens.links){var mr=Object.keys(this.tokens.links);if(mr.length>0)for(;(gn=this.tokenizer.rules.inline.reflinkSearch.exec(Ze))!=null;)mr.includes(gn[0].slice(gn[0].lastIndexOf("[")+1,-1))&&(Ze=Ze.slice(0,gn.index)+"["+Et("a",gn[0].length-2)+"]"+Ze.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(gn=this.tokenizer.rules.inline.blockSkip.exec(Ze))!=null;)Ze=Ze.slice(0,gn.index)+"["+Et("a",gn[0].length-2)+"]"+Ze.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(gn=this.tokenizer.rules.inline.escapedEmSt.exec(Ze))!=null;)Ze=Ze.slice(0,gn.index)+"++"+Ze.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;_e;){if(In||(Hn=""),In=!1,ge=this.tokenizer.escape(_e)){_e=_e.substring(ge.raw.length),De.push(ge);continue}if(ge=this.tokenizer.tag(_e,Fe,Qe)){_e=_e.substring(ge.raw.length),Fe=ge.inLink,Qe=ge.inRawBlock;var rn=De[De.length-1];rn&&ge.type==="text"&&rn.type==="text"?(rn.raw+=ge.raw,rn.text+=ge.text):De.push(ge);continue}if(ge=this.tokenizer.link(_e)){_e=_e.substring(ge.raw.length),ge.type==="link"&&(ge.tokens=this.inlineTokens(ge.text,[],!0,Qe)),De.push(ge);continue}if(ge=this.tokenizer.reflink(_e,this.tokens.links)){_e=_e.substring(ge.raw.length);var vn=De[De.length-1];ge.type==="link"?(ge.tokens=this.inlineTokens(ge.text,[],!0,Qe),De.push(ge)):vn&&ge.type==="text"&&vn.type==="text"?(vn.raw+=ge.raw,vn.text+=ge.text):De.push(ge);continue}if(ge=this.tokenizer.emStrong(_e,Ze,Hn)){_e=_e.substring(ge.raw.length),ge.tokens=this.inlineTokens(ge.text,[],Fe,Qe),De.push(ge);continue}if(ge=this.tokenizer.codespan(_e)){_e=_e.substring(ge.raw.length),De.push(ge);continue}if(ge=this.tokenizer.br(_e)){_e=_e.substring(ge.raw.length),De.push(ge);continue}if(ge=this.tokenizer.del(_e)){_e=_e.substring(ge.raw.length),ge.tokens=this.inlineTokens(ge.text,[],Fe,Qe),De.push(ge);continue}if(ge=this.tokenizer.autolink(_e,ve)){_e=_e.substring(ge.raw.length),De.push(ge);continue}if(!Fe&&(ge=this.tokenizer.url(_e,ve))){_e=_e.substring(ge.raw.length),De.push(ge);continue}if(ge=this.tokenizer.inlineText(_e,Qe,oe)){_e=_e.substring(ge.raw.length),ge.raw.slice(-1)!=="_"&&(Hn=ge.raw.slice(-1)),In=!0,Vt=De[De.length-1],Vt&&Vt.type==="text"?(Vt.raw+=ge.raw,Vt.text+=ge.text):De.push(ge);continue}if(_e){var Je="Infinite loop on byte: "+_e.charCodeAt(0);if(this.options.silent){console.error(Je);break}else throw new Error(Je)}}return De},h(je,null,[{key:"rules",get:function(){return{block:Ut,inline:ut}}}]),je}(),Y=ye.exports.defaults,Ae=P.cleanUrl,$=P.escape,R=function(){function je(tt){this.options=tt||Y}var nt=je.prototype;return nt.code=function(_e,De,Fe){var Qe=(De||"").match(/\S*/)[0];if(this.options.highlight){var ge=this.options.highlight(_e,Qe);ge!=null&&ge!==_e&&(Fe=!0,_e=ge)}return _e=_e.replace(/\n$/,"")+`
`,Qe?'<pre><code class="'+this.options.langPrefix+$(Qe,!0)+'">'+(Fe?_e:$(_e,!0))+`</code></pre>
`:"<pre><code>"+(Fe?_e:$(_e,!0))+`</code></pre>
`},nt.blockquote=function(_e){return`<blockquote>
`+_e+`</blockquote>
`},nt.html=function(_e){return _e},nt.heading=function(_e,De,Fe,Qe){return this.options.headerIds?"<h"+De+' id="'+this.options.headerPrefix+Qe.slug(Fe)+'">'+_e+"</h"+De+`>
`:"<h"+De+">"+_e+"</h"+De+`>
`},nt.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},nt.list=function(_e,De,Fe){var Qe=De?"ol":"ul",ge=De&&Fe!==1?' start="'+Fe+'"':"";return"<"+Qe+ge+`>
`+_e+"</"+Qe+`>
`},nt.listitem=function(_e){return"<li>"+_e+`</li>
`},nt.checkbox=function(_e){return"<input "+(_e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},nt.paragraph=function(_e){return"<p>"+_e+`</p>
`},nt.table=function(_e,De){return De&&(De="<tbody>"+De+"</tbody>"),`<table>
<thead>
`+_e+`</thead>
`+De+`</table>
`},nt.tablerow=function(_e){return`<tr>
`+_e+`</tr>
`},nt.tablecell=function(_e,De){var Fe=De.header?"th":"td",Qe=De.align?"<"+Fe+' align="'+De.align+'">':"<"+Fe+">";return Qe+_e+"</"+Fe+`>
`},nt.strong=function(_e){return"<strong>"+_e+"</strong>"},nt.em=function(_e){return"<em>"+_e+"</em>"},nt.codespan=function(_e){return"<code>"+_e+"</code>"},nt.br=function(){return this.options.xhtml?"<br/>":"<br>"},nt.del=function(_e){return"<del>"+_e+"</del>"},nt.link=function(_e,De,Fe){if(_e=Ae(this.options.sanitize,this.options.baseUrl,_e),_e===null)return Fe;var Qe='<a href="'+$(_e)+'"';return De&&(Qe+=' title="'+De+'"'),Qe+=">"+Fe+"</a>",Qe},nt.image=function(_e,De,Fe){if(_e=Ae(this.options.sanitize,this.options.baseUrl,_e),_e===null)return Fe;var Qe='<img src="'+_e+'" alt="'+Fe+'"';return De&&(Qe+=' title="'+De+'"'),Qe+=this.options.xhtml?"/>":">",Qe},nt.text=function(_e){return _e},je}(),I=function(){function je(){}var nt=je.prototype;return nt.strong=function(_e){return _e},nt.em=function(_e){return _e},nt.codespan=function(_e){return _e},nt.del=function(_e){return _e},nt.html=function(_e){return _e},nt.text=function(_e){return _e},nt.link=function(_e,De,Fe){return""+Fe},nt.image=function(_e,De,Fe){return""+Fe},nt.br=function(){return""},je}(),le=function(){function je(){this.seen={}}var nt=je.prototype;return nt.serialize=function(_e){return _e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},nt.getNextSafeSlug=function(_e,De){var Fe=_e,Qe=0;if(this.seen.hasOwnProperty(Fe)){Qe=this.seen[_e];do Qe++,Fe=_e+"-"+Qe;while(this.seen.hasOwnProperty(Fe))}return De||(this.seen[_e]=Qe,this.seen[Fe]=0),Fe},nt.slug=function(_e,De){De===void 0&&(De={});var Fe=this.serialize(_e);return this.getNextSafeSlug(Fe,De.dryrun)},je}(),re=R,J=I,Ce=le,We=ye.exports.defaults,Pe=P.unescape,Be=function(){function je(tt){this.options=tt||We,this.options.renderer=this.options.renderer||new re,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new J,this.slugger=new Ce}je.parse=function(_e,De){var Fe=new je(De);return Fe.parse(_e)},je.parseInline=function(_e,De){var Fe=new je(De);return Fe.parseInline(_e)};var nt=je.prototype;return nt.parse=function(_e,De){De===void 0&&(De=!0);var Fe="",Qe,ge,Vt,Ze,gn,In,Hn,mr,rn,vn,Je,It,zt,Ke,Oe,bt,St,qt,Wt=_e.length;for(Qe=0;Qe<Wt;Qe++)switch(vn=_e[Qe],vn.type){case"space":continue;case"hr":{Fe+=this.renderer.hr();continue}case"heading":{Fe+=this.renderer.heading(this.parseInline(vn.tokens),vn.depth,Pe(this.parseInline(vn.tokens,this.textRenderer)),this.slugger);continue}case"code":{Fe+=this.renderer.code(vn.text,vn.lang,vn.escaped);continue}case"table":{for(mr="",Hn="",Ze=vn.header.length,ge=0;ge<Ze;ge++)Hn+=this.renderer.tablecell(this.parseInline(vn.tokens.header[ge]),{header:!0,align:vn.align[ge]});for(mr+=this.renderer.tablerow(Hn),rn="",Ze=vn.cells.length,ge=0;ge<Ze;ge++){for(In=vn.tokens.cells[ge],Hn="",gn=In.length,Vt=0;Vt<gn;Vt++)Hn+=this.renderer.tablecell(this.parseInline(In[Vt]),{header:!1,align:vn.align[Vt]});rn+=this.renderer.tablerow(Hn)}Fe+=this.renderer.table(mr,rn);continue}case"blockquote":{rn=this.parse(vn.tokens),Fe+=this.renderer.blockquote(rn);continue}case"list":{for(Je=vn.ordered,It=vn.start,zt=vn.loose,Ze=vn.items.length,rn="",ge=0;ge<Ze;ge++)Oe=vn.items[ge],bt=Oe.checked,St=Oe.task,Ke="",Oe.task&&(qt=this.renderer.checkbox(bt),zt?Oe.tokens.length>0&&Oe.tokens[0].type==="text"?(Oe.tokens[0].text=qt+" "+Oe.tokens[0].text,Oe.tokens[0].tokens&&Oe.tokens[0].tokens.length>0&&Oe.tokens[0].tokens[0].type==="text"&&(Oe.tokens[0].tokens[0].text=qt+" "+Oe.tokens[0].tokens[0].text)):Oe.tokens.unshift({type:"text",text:qt}):Ke+=qt),Ke+=this.parse(Oe.tokens,zt),rn+=this.renderer.listitem(Ke,St,bt);Fe+=this.renderer.list(rn,Je,It);continue}case"html":{Fe+=this.renderer.html(vn.text);continue}case"paragraph":{Fe+=this.renderer.paragraph(this.parseInline(vn.tokens));continue}case"text":{for(rn=vn.tokens?this.parseInline(vn.tokens):vn.text;Qe+1<Wt&&_e[Qe+1].type==="text";)vn=_e[++Qe],rn+=`
`+(vn.tokens?this.parseInline(vn.tokens):vn.text);Fe+=De?this.renderer.paragraph(rn):rn;continue}default:{var on='Token with "'+vn.type+'" type was not found.';if(this.options.silent){console.error(on);return}else throw new Error(on)}}return Fe},nt.parseInline=function(_e,De){De=De||this.renderer;var Fe="",Qe,ge,Vt=_e.length;for(Qe=0;Qe<Vt;Qe++)switch(ge=_e[Qe],ge.type){case"escape":{Fe+=De.text(ge.text);break}case"html":{Fe+=De.html(ge.text);break}case"link":{Fe+=De.link(ge.href,ge.title,this.parseInline(ge.tokens,De));break}case"image":{Fe+=De.image(ge.href,ge.title,ge.text);break}case"strong":{Fe+=De.strong(this.parseInline(ge.tokens,De));break}case"em":{Fe+=De.em(this.parseInline(ge.tokens,De));break}case"codespan":{Fe+=De.codespan(ge.text);break}case"br":{Fe+=De.br();break}case"del":{Fe+=De.del(this.parseInline(ge.tokens,De));break}case"text":{Fe+=De.text(ge.text);break}default:{var Ze='Token with "'+ge.type+'" type was not found.';if(this.options.silent){console.error(Ze);return}else throw new Error(Ze)}}return Fe},je}(),Xe=ie,rt=Be,Ye=Ue,vt=R,wt=I,mt=le,Pt=P.merge,At=P.checkSanitizeDeprecation,w=P.escape,A=ye.exports.getDefaults,gt=ye.exports.changeDefaults,fe=ye.exports.defaults;function Me(je,nt,tt){if(typeof je=="undefined"||je===null)throw new Error("marked(): input parameter is undefined or null");if(typeof je!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(je)+", string expected");if(typeof nt=="function"&&(tt=nt,nt=null),nt=Pt({},Me.defaults,nt||{}),At(nt),tt){var _e=nt.highlight,De;try{De=Xe.lex(je,nt)}catch(Vt){return tt(Vt)}var Fe=function(Ze){var gn;if(!Ze)try{nt.walkTokens&&Me.walkTokens(De,nt.walkTokens),gn=rt.parse(De,nt)}catch(In){Ze=In}return nt.highlight=_e,Ze?tt(Ze):tt(null,gn)};if(!_e||_e.length<3||(delete nt.highlight,!De.length))return Fe();var Qe=0;Me.walkTokens(De,function(Vt){Vt.type==="code"&&(Qe++,setTimeout(function(){_e(Vt.text,Vt.lang,function(Ze,gn){if(Ze)return Fe(Ze);gn!=null&&gn!==Vt.text&&(Vt.text=gn,Vt.escaped=!0),Qe--,Qe===0&&Fe()})},0))}),Qe===0&&Fe();return}try{var ge=Xe.lex(je,nt);return nt.walkTokens&&Me.walkTokens(ge,nt.walkTokens),rt.parse(ge,nt)}catch(Vt){if(Vt.message+=`
Please report this to https://github.com/markedjs/marked.`,nt.silent)return"<p>An error occurred:</p><pre>"+w(Vt.message+"",!0)+"</pre>";throw Vt}}Me.options=Me.setOptions=function(je){return Pt(Me.defaults,je),gt(Me.defaults),Me},Me.getDefaults=A,Me.defaults=fe,Me.use=function(je){var nt=Pt({},je);if(je.renderer&&function(){var _e=Me.defaults.renderer||new vt,De=function(ge){var Vt=_e[ge];_e[ge]=function(){for(var Ze=arguments.length,gn=new Array(Ze),In=0;In<Ze;In++)gn[In]=arguments[In];var Hn=je.renderer[ge].apply(_e,gn);return Hn===!1&&(Hn=Vt.apply(_e,gn)),Hn}};for(var Fe in je.renderer)De(Fe);nt.renderer=_e}(),je.tokenizer&&function(){var _e=Me.defaults.tokenizer||new Ye,De=function(ge){var Vt=_e[ge];_e[ge]=function(){for(var Ze=arguments.length,gn=new Array(Ze),In=0;In<Ze;In++)gn[In]=arguments[In];var Hn=je.tokenizer[ge].apply(_e,gn);return Hn===!1&&(Hn=Vt.apply(_e,gn)),Hn}};for(var Fe in je.tokenizer)De(Fe);nt.tokenizer=_e}(),je.walkTokens){var tt=Me.defaults.walkTokens;nt.walkTokens=function(_e){je.walkTokens(_e),tt&&tt(_e)}}Me.setOptions(nt)},Me.walkTokens=function(je,nt){for(var tt=Q(je),_e;!(_e=tt()).done;){var De=_e.value;switch(nt(De),De.type){case"table":{for(var Fe=Q(De.tokens.header),Qe;!(Qe=Fe()).done;){var ge=Qe.value;Me.walkTokens(ge,nt)}for(var Vt=Q(De.tokens.cells),Ze;!(Ze=Vt()).done;)for(var gn=Ze.value,In=Q(gn),Hn;!(Hn=In()).done;){var mr=Hn.value;Me.walkTokens(mr,nt)}break}case"list":{Me.walkTokens(De.items,nt);break}default:De.tokens&&Me.walkTokens(De.tokens,nt)}}},Me.parseInline=function(je,nt){if(typeof je=="undefined"||je===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof je!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(je)+", string expected");nt=Pt({},Me.defaults,nt||{}),At(nt);try{var tt=Xe.lexInline(je,nt);return nt.walkTokens&&Me.walkTokens(tt,nt.walkTokens),rt.parseInline(tt,nt)}catch(_e){if(_e.message+=`
Please report this to https://github.com/markedjs/marked.`,nt.silent)return"<p>An error occurred:</p><pre>"+w(_e.message+"",!0)+"</pre>";throw _e}},Me.Parser=rt,Me.parser=rt.parse,Me.Renderer=vt,Me.TextRenderer=wt,Me.Lexer=Xe,Me.lexer=Xe.lex,Me.Tokenizer=Ye,Me.Slugger=mt,Me.parse=Me;var Dn=Me;return Dn})},11690:function(Gt){const He=/[&<>"']/,h=/[&<>"']/g,z=/[<>"']|&(?!#?\w+;)/,N=/[<>"']|&(?!#?\w+;)/g,Q={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ye=j=>Q[j];function U(j,be){if(be){if(He.test(j))return j.replace(h,ye)}else if(z.test(j))return j.replace(N,ye);return j}const H=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function S(j){return j.replace(H,(be,Ee)=>(Ee=Ee.toLowerCase(),Ee==="colon"?":":Ee.charAt(0)==="#"?Ee.charAt(1)==="x"?String.fromCharCode(parseInt(Ee.substring(2),16)):String.fromCharCode(+Ee.substring(1)):""))}const pe=/(^|[^\[])\^/g;function a(j,be){j=j.source||j,be=be||"";const Ee={replace:(xe,ce)=>(ce=ce.source||ce,ce=ce.replace(pe,"$1"),j=j.replace(xe,ce),Ee),getRegex:()=>new RegExp(j,be)};return Ee}const C=/[^\w:]/g,O=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function m(j,be,Ee){if(j){let xe;try{xe=decodeURIComponent(S(Ee)).replace(C,"").toLowerCase()}catch(ce){return null}if(xe.indexOf("javascript:")===0||xe.indexOf("vbscript:")===0||xe.indexOf("data:")===0)return null}be&&!O.test(Ee)&&(Ee=te(be,Ee));try{Ee=encodeURI(Ee).replace(/%25/g,"%")}catch(xe){return null}return Ee}const u={},x=/^[^:]+:\/*[^/]*$/,y=/^([^:]+:)[\s\S]*$/,L=/^([^:]+:\/*[^/]*)[\s\S]*$/;function te(j,be){u[" "+j]||(x.test(j)?u[" "+j]=j+"/":u[" "+j]=V(j,"/",!0)),j=u[" "+j];const Ee=j.indexOf(":")===-1;return be.substring(0,2)==="//"?Ee?be:j.replace(y,"$1")+be:be.charAt(0)==="/"?Ee?be:j.replace(L,"$1")+be:j+be}const B={exec:function(){}};function M(j){let be=1,Ee,xe;for(;be<arguments.length;be++){Ee=arguments[be];for(xe in Ee)Object.prototype.hasOwnProperty.call(Ee,xe)&&(j[xe]=Ee[xe])}return j}function W(j,be){const Ee=j.replace(/\|/g,(ee,Z,me)=>{let P=!1,se=Z;for(;--se>=0&&me[se]==="\\";)P=!P;return P?"|":" |"}),xe=Ee.split(/ \|/);let ce=0;if(xe.length>be)xe.splice(be);else for(;xe.length<be;)xe.push("");for(;ce<xe.length;ce++)xe[ce]=xe[ce].trim().replace(/\\\|/g,"|");return xe}function V(j,be,Ee){const xe=j.length;if(xe===0)return"";let ce=0;for(;ce<xe;){const ee=j.charAt(xe-ce-1);if(ee===be&&!Ee)ce++;else if(ee!==be&&Ee)ce++;else break}return j.substr(0,xe-ce)}function b(j,be){if(j.indexOf(be[1])===-1)return-1;const Ee=j.length;let xe=0,ce=0;for(;ce<Ee;ce++)if(j[ce]==="\\")ce++;else if(j[ce]===be[0])xe++;else if(j[ce]===be[1]&&(xe--,xe<0))return ce;return-1}function T(j){j&&j.sanitize&&!j.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function G(j,be){if(be<1)return"";let Ee="";for(;be>1;)be&1&&(Ee+=j),be>>=1,j+=j;return Ee+j}Gt.exports={escape:U,unescape:S,edit:a,cleanUrl:m,resolveUrl:te,noopTest:B,merge:M,splitCells:W,rtrim:V,findClosingBracket:b,checkSanitizeDeprecation:T,repeatString:G}},75918:function(Gt,He,h){"use strict";h.d(He,{Wi:function(){return H},Z0:function(){return S},aU:function(){return U},eZ:function(){return a},wY:function(){return pe}});var z=h(4348),N=h(69323),Q=h(13268),ye=function(C,O,m,u){function x(y){return y instanceof m?y:new m(function(L){L(y)})}return new(m||(m=Promise))(function(y,L){function te(W){try{M(u.next(W))}catch(V){L(V)}}function B(W){try{M(u.throw(W))}catch(V){L(V)}}function M(W){W.done?y(W.value):x(W.value).then(te,B)}M((u=u.apply(C,O||[])).next())})};class U extends N.JT{constructor(O,m="",u="",x=!0,y){super(),this._onDidChange=this._register(new z.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=O,this._label=m,this._cssClass=u,this._enabled=x,this._actionCallback=y}get id(){return this._id}get label(){return this._label}set label(O){this._setLabel(O)}_setLabel(O){this._label!==O&&(this._label=O,this._onDidChange.fire({label:O}))}get tooltip(){return this._tooltip||""}set tooltip(O){this._setTooltip(O)}_setTooltip(O){this._tooltip!==O&&(this._tooltip=O,this._onDidChange.fire({tooltip:O}))}get class(){return this._cssClass}set class(O){this._setClass(O)}_setClass(O){this._cssClass!==O&&(this._cssClass=O,this._onDidChange.fire({class:O}))}get enabled(){return this._enabled}set enabled(O){this._setEnabled(O)}_setEnabled(O){this._enabled!==O&&(this._enabled=O,this._onDidChange.fire({enabled:O}))}get checked(){return this._checked}set checked(O){this._setChecked(O)}_setChecked(O){this._checked!==O&&(this._checked=O,this._onDidChange.fire({checked:O}))}run(O,m){return ye(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(O))})}}class H extends N.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new z.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new z.Q5),this.onDidRun=this._onDidRun.event}run(O,m){return ye(this,void 0,void 0,function*(){if(!O.enabled)return;this._onBeforeRun.fire({action:O});let u;try{yield this.runAction(O,m)}catch(x){u=x}this._onDidRun.fire({action:O,error:u})})}runAction(O,m){return ye(this,void 0,void 0,function*(){yield O.run(m)})}}class S extends U{constructor(O){super(S.ID,O,O?"separator text":"separator"),this.checked=!1,this.enabled=!1}}S.ID="vs.actions.separator";class pe{constructor(O,m,u,x){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=O,this.label=m,this.class=x,this._actions=u}get actions(){return this._actions}dispose(){}run(){return ye(this,void 0,void 0,function*(){})}}class a extends U{constructor(){super(a.ID,Q.N("submenu.empty","(empty)"),void 0,!1)}}a.ID="vs.actions.empty"},76068:function(Gt,He,h){"use strict";h.d(He,{ok:function(){return z}});function z(N,Q){if(!N)throw new Error(Q?`Assertion failed (${Q})`:"Assertion Failed")}},52615:function(Gt,He,h){"use strict";h.d(He,{CM:function(){return U},JL:function(){return H},dT:function(){return pe},fK:function(){return ye},lA:function(){return S}});var z=h(4348);class N{constructor(){this._icons=new Map,this._onDidRegister=new z.Q5}add(C){const O=this._icons.get(C.id);O?C.description?O.description=C.description:console.error(`Duplicate registration of codicon ${C.id}`):(this._icons.set(C.id,C),this._onDidRegister.fire(C))}get(C){return this._icons.get(C)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const Q=new N,ye=Q;function U(a,C){return new S(a,C)}function H(a){return a?a.replace(/\$\((.*?)\)/g,(C,O)=>` ${O} `).trim():""}class S{constructor(C,O,m){this.id=C,this.definition=O,this.description=m,Q.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var pe;(function(a){a.iconNameSegment="[A-Za-z0-9]+",a.iconNameExpression="[A-Za-z0-9\\-]+",a.iconModifierExpression="~[A-Za-z]+";const C=new RegExp(`^(${a.iconNameExpression})(${a.iconModifierExpression})?$`);function O(x){if(x instanceof S)return["codicon","codicon-"+x.id];const y=C.exec(x.id);if(!y)return O(S.error);let[,L,te]=y;const B=["codicon","codicon-"+L];return te&&B.push("codicon-modifier-"+te.substr(1)),B}a.asClassNameArray=O;function m(x){return O(x).join(" ")}a.asClassName=m;function u(x){return"."+O(x).join(".")}a.asCSSSelector=u})(pe||(pe={})),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"})}(S||(S={}))},79881:function(Gt,He,h){"use strict";h.d(He,{B8:function(){return O},Cp:function(){return ye},F0:function(){return pe},L6:function(){return C},VV:function(){return S},b1:function(){return a},dL:function(){return Q},ri:function(){return U}});class z{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(u){setTimeout(()=>{throw u.stack?new Error(u.message+`
`+u.stack):u},0)}}emit(u){this.listeners.forEach(x=>{x(u)})}onUnexpectedError(u){this.unexpectedErrorHandler(u),this.emit(u)}onUnexpectedExternalError(u){this.unexpectedErrorHandler(u)}}const N=new z;function Q(m){S(m)||N.onUnexpectedError(m)}function ye(m){S(m)||N.onUnexpectedExternalError(m)}function U(m){if(m instanceof Error){let{name:u,message:x}=m;const y=m.stacktrace||m.stack;return{$isError:!0,name:u,message:x,stack:y}}return m}const H="Canceled";function S(m){return m instanceof Error&&m.name===H&&m.message===H}function pe(){const m=new Error(H);return m.name=m.message,m}function a(m){return m?new Error(`Illegal argument: ${m}`):new Error("Illegal argument")}function C(m){return m?new Error(`Illegal state: ${m}`):new Error("Illegal state")}class O extends Error{constructor(u){super("NotSupported"),u&&(this.message=u)}}},4348:function(Gt,He,h){"use strict";h.d(He,{D0:function(){return O},E7:function(){return m},K3:function(){return C},Q5:function(){return a},ZD:function(){return u},ju:function(){return U}});var z=h(79881),N=h(69323),Q=h(34502),ye=h(95830),U;(function(x){x.None=()=>N.JT.None;function y(me){return(P,se=null,X)=>{let v=!1,E;return E=me(K=>{if(!v)return E?E.dispose():v=!0,P.call(se,K)},null,X),v&&E.dispose(),E}}x.once=y;function L(me,P){return b((se,X=null,v)=>me(E=>se.call(X,P(E)),null,v))}x.map=L;function te(me,P){return b((se,X=null,v)=>me(E=>{P(E),se.call(X,E)},null,v))}x.forEach=te;function B(me,P){return b((se,X=null,v)=>me(E=>P(E)&&se.call(X,E),null,v))}x.filter=B;function M(me){return me}x.signal=M;function W(...me){return(P,se=null,X)=>(0,N.F8)(...me.map(v=>v(E=>P.call(se,E),null,X)))}x.any=W;function V(me,P,se){let X=se;return L(me,v=>(X=P(X,v),X))}x.reduce=V;function b(me){let P;const se=new a({onFirstListenerAdd(){P=me(se.fire,se)},onLastListenerRemove(){P.dispose()}});return se.event}function T(me,P,se=100,X=!1,v){let E,K,de,Ne=0;const Ue=new a({leakWarningThreshold:v,onFirstListenerAdd(){E=me(ke=>{Ne++,K=P(K,ke),X&&!de&&(Ue.fire(K),K=void 0),clearTimeout(de),de=setTimeout(()=>{const Ve=K;K=void 0,de=void 0,(!X||Ne>1)&&Ue.fire(Ve),Ne=0},se)})},onLastListenerRemove(){E.dispose()}});return Ue.event}x.debounce=T;function G(me,P=(se,X)=>se===X){let se=!0,X;return B(me,v=>{const E=se||!P(v,X);return se=!1,X=v,E})}x.latch=G;function j(me,P){return[x.filter(me,P),x.filter(me,se=>!P(se))]}x.split=j;function be(me,P=!1,se=[]){let X=se.slice(),v=me(de=>{X?X.push(de):K.fire(de)});const E=()=>{X&&X.forEach(de=>K.fire(de)),X=null},K=new a({onFirstListenerAdd(){v||(v=me(de=>K.fire(de)))},onFirstListenerDidAdd(){X&&(P?setTimeout(E):E())},onLastListenerRemove(){v&&v.dispose(),v=null}});return K.event}x.buffer=be;class Ee{constructor(P){this.event=P}map(P){return new Ee(L(this.event,P))}forEach(P){return new Ee(te(this.event,P))}filter(P){return new Ee(B(this.event,P))}reduce(P,se){return new Ee(V(this.event,P,se))}latch(){return new Ee(G(this.event))}debounce(P,se=100,X=!1,v){return new Ee(T(this.event,P,se,X,v))}on(P,se,X){return this.event(P,se,X)}once(P,se,X){return y(this.event)(P,se,X)}}function xe(me){return new Ee(me)}x.chain=xe;function ce(me,P,se=X=>X){const X=(...de)=>K.fire(se(...de)),v=()=>me.on(P,X),E=()=>me.removeListener(P,X),K=new a({onFirstListenerAdd:v,onLastListenerRemove:E});return K.event}x.fromNodeEventEmitter=ce;function ee(me,P,se=X=>X){const X=(...de)=>K.fire(se(...de)),v=()=>me.addEventListener(P,X),E=()=>me.removeEventListener(P,X),K=new a({onFirstListenerAdd:v,onLastListenerRemove:E});return K.event}x.fromDOMEventEmitter=ee;function Z(me){return new Promise(P=>y(me)(P))}x.toPromise=Z})(U||(U={}));class H{constructor(y){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${y}_${H._idPool++}`}start(y){this._stopWatch=new ye.G(!0),this._listenerCount=y}stop(){if(this._stopWatch){const y=this._stopWatch.elapsed();this._elapsedOverall+=y,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${y.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}H._idPool=0;let S=-1;class pe{constructor(y,L=Math.random().toString(18).slice(2,5)){this.customThreshold=y,this.name=L,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(y){let L=S;if(typeof this.customThreshold=="number"&&(L=this.customThreshold),L<=0||y<L)return;this._stacks||(this._stacks=new Map);const te=new Error().stack.split(`
`).slice(3).join(`
`),B=this._stacks.get(te)||0;if(this._stacks.set(te,B+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=L*.5;let M,W=0;for(const[V,b]of this._stacks)(!M||W<b)&&(M=V,W=b);console.warn(`[${this.name}] potential listener LEAK detected, having ${y} listeners already. MOST frequent listener (${W}):`),console.warn(M)}return()=>{const M=this._stacks.get(te)||0;this._stacks.set(te,M-1)}}}class a{constructor(y){var L;this._disposed=!1,this._options=y,this._leakageMon=S>0?new pe(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((L=this._options)===null||L===void 0)&&L._profName?new H(this._options._profName):void 0}get event(){return this._event||(this._event=(y,L,te)=>{var B;this._listeners||(this._listeners=new Q.S);const M=this._listeners.isEmpty();M&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const W=this._listeners.push(L?[y,L]:y);M&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,y,L);const V=(B=this._leakageMon)===null||B===void 0?void 0:B.check(this._listeners.size),b=(0,N.OF)(()=>{V&&V(),this._disposed||(W(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return te instanceof N.SL?te.add(b):Array.isArray(te)&&te.push(b),b}),this._event}fire(y){var L,te;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new Q.S);for(let B of this._listeners)this._deliveryQueue.push([B,y]);for((L=this._perfMon)===null||L===void 0||L.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[B,M]=this._deliveryQueue.shift();try{typeof B=="function"?B.call(void 0,M):B[0].call(B[1],M)}catch(W){(0,z.dL)(W)}}(te=this._perfMon)===null||te===void 0||te.stop()}}dispose(){var y,L,te,B,M;this._disposed||(this._disposed=!0,(y=this._listeners)===null||y===void 0||y.clear(),(L=this._deliveryQueue)===null||L===void 0||L.clear(),(B=(te=this._options)===null||te===void 0?void 0:te.onLastListenerRemove)===null||B===void 0||B.call(te),(M=this._leakageMon)===null||M===void 0||M.dispose())}}class C extends a{constructor(y){super(y),this._isPaused=0,this._eventQueue=new Q.S,this._mergeFn=y==null?void 0:y.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const y=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(y))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(y){this._listeners&&(this._isPaused!==0?this._eventQueue.push(y):super.fire(y))}}class O extends C{constructor(y){var L;super(y),this._delay=(L=y.delay)!==null&&L!==void 0?L:100}fire(y){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(y)}}class m{constructor(){this.buffers=[]}wrapEvent(y){return(L,te,B)=>y(M=>{const W=this.buffers[this.buffers.length-1];W?W.push(()=>L.call(te,M)):L.call(te,M)},void 0,B)}bufferEvents(y){const L=[];this.buffers.push(L);const te=y();return this.buffers.pop(),L.forEach(B=>B()),te}}class u{constructor(){this.listening=!1,this.inputEvent=U.None,this.inputEventListener=N.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(y){this.inputEvent=y,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=y(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(Gt,He,h){"use strict";h.d(He,{I:function(){return z}});function z(N){const Q=this;let ye=!1,U;return function(){return ye||(ye=!0,U=N.apply(Q,arguments)),U}}},88226:function(Gt,He,h){"use strict";h.d(He,{$:function(){return z}});var z;(function(N){function Q(W){return W&&typeof W=="object"&&typeof W[Symbol.iterator]=="function"}N.is=Q;const ye=Object.freeze([]);function U(){return ye}N.empty=U;function*H(W){yield W}N.single=H;function S(W){return W||ye}N.from=S;function pe(W){return!W||W[Symbol.iterator]().next().done===!0}N.isEmpty=pe;function a(W){return W[Symbol.iterator]().next().value}N.first=a;function C(W,V){for(const b of W)if(V(b))return!0;return!1}N.some=C;function O(W,V){for(const b of W)if(V(b))return b}N.find=O;function*m(W,V){for(const b of W)V(b)&&(yield b)}N.filter=m;function*u(W,V){let b=0;for(const T of W)yield V(T,b++)}N.map=u;function*x(...W){for(const V of W)for(const b of V)yield b}N.concat=x;function*y(W){for(const V of W)for(const b of V)yield b}N.concatNested=y;function L(W,V,b){let T=b;for(const G of W)T=V(T,G);return T}N.reduce=L;function*te(W,V,b=W.length){for(V<0&&(V+=W.length),b<0?b+=W.length:b>W.length&&(b=W.length);V<b;V++)yield W[V]}N.slice=te;function B(W,V=Number.POSITIVE_INFINITY){const b=[];if(V===0)return[b,W];const T=W[Symbol.iterator]();for(let G=0;G<V;G++){const j=T.next();if(j.done)return[b,N.empty()];b.push(j.value)}return[b,{[Symbol.iterator](){return T}}]}N.consume=B;function M(W,V,b=(T,G)=>T===G){const T=W[Symbol.iterator](),G=V[Symbol.iterator]();for(;;){const j=T.next(),be=G.next();if(j.done!==be.done)return!1;if(j.done)return!0;if(!b(j.value,be.value))return!1}}N.equals=M})(z||(z={}))},69323:function(Gt,He,h){"use strict";h.d(He,{B9:function(){return u},F8:function(){return x},JT:function(){return te},Jz:function(){return M},OF:function(){return y},SL:function(){return L},Wf:function(){return m},XK:function(){return B},dk:function(){return C}});var z=h(17845),N=h(88226);const Q=!1;let ye=null;function U(W){ye=W}if(Q){const W="__is_disposable_tracked__";U(new class{trackDisposable(V){const b=new Error("Potentially leaked disposable").stack;setTimeout(()=>{V[W]||console.log(b)},3e3)}setParent(V,b){if(V&&V!==te.None)try{V[W]=!0}catch(T){}}markAsDisposed(V){if(V&&V!==te.None)try{V[W]=!0}catch(b){}}markAsSingleton(V){}})}function H(W){return ye==null||ye.trackDisposable(W),W}function S(W){ye==null||ye.markAsDisposed(W)}function pe(W,V){ye==null||ye.setParent(W,V)}function a(W,V){if(ye)for(const b of W)ye.setParent(b,V)}function C(W){return ye==null||ye.markAsSingleton(W),W}class O extends Error{constructor(V){super(`Encountered errors while disposing of store. Errors: [${V.join(", ")}]`),this.errors=V}}function m(W){return typeof W.dispose=="function"&&W.dispose.length===0}function u(W){if(N.$.is(W)){let V=[];for(const b of W)if(b)try{b.dispose()}catch(T){V.push(T)}if(V.length===1)throw V[0];if(V.length>1)throw new O(V);return Array.isArray(W)?[]:W}else if(W)return W.dispose(),W}function x(...W){const V=y(()=>u(W));return a(W,V),V}function y(W){const V=H({dispose:(0,z.I)(()=>{S(V),W()})});return V}class L{constructor(){this._toDispose=new Set,this._isDisposed=!1,H(this)}dispose(){this._isDisposed||(S(this),this._isDisposed=!0,this.clear())}clear(){try{u(this._toDispose.values())}finally{this._toDispose.clear()}}add(V){if(!V)return V;if(V===this)throw new Error("Cannot register a disposable on itself!");return pe(V,this),this._isDisposed?L.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(V),V}}L.DISABLE_DISPOSED_WARNING=!1;class te{constructor(){this._store=new L,H(this),pe(this._store,this)}dispose(){S(this),this._store.dispose()}_register(V){if(V===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(V)}}te.None=Object.freeze({dispose(){}});class B{constructor(){this._isDisposed=!1,H(this)}get value(){return this._isDisposed?void 0:this._value}set value(V){var b;this._isDisposed||V===this._value||((b=this._value)===null||b===void 0||b.dispose(),V&&pe(V,this),this._value=V)}clear(){this.value=void 0}dispose(){var V;this._isDisposed=!0,S(this),(V=this._value)===null||V===void 0||V.dispose(),this._value=void 0}clearAndLeak(){const V=this._value;return this._value=void 0,V&&pe(V,null),V}}class M{constructor(V){this.object=V}dispose(){}}},34502:function(Gt,He,h){"use strict";h.d(He,{S:function(){return N}});class z{constructor(ye){this.element=ye,this.next=z.Undefined,this.prev=z.Undefined}}z.Undefined=new z(void 0);class N{constructor(){this._first=z.Undefined,this._last=z.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===z.Undefined}clear(){let ye=this._first;for(;ye!==z.Undefined;){const U=ye.next;ye.prev=z.Undefined,ye.next=z.Undefined,ye=U}this._first=z.Undefined,this._last=z.Undefined,this._size=0}unshift(ye){return this._insert(ye,!1)}push(ye){return this._insert(ye,!0)}_insert(ye,U){const H=new z(ye);if(this._first===z.Undefined)this._first=H,this._last=H;else if(U){const pe=this._last;this._last=H,H.prev=pe,pe.next=H}else{const pe=this._first;this._first=H,H.next=pe,pe.prev=H}this._size+=1;let S=!1;return()=>{S||(S=!0,this._remove(H))}}shift(){if(this._first!==z.Undefined){const ye=this._first.element;return this._remove(this._first),ye}}pop(){if(this._last!==z.Undefined){const ye=this._last.element;return this._remove(this._last),ye}}_remove(ye){if(ye.prev!==z.Undefined&&ye.next!==z.Undefined){const U=ye.prev;U.next=ye.next,ye.next.prev=U}else ye.prev===z.Undefined&&ye.next===z.Undefined?(this._first=z.Undefined,this._last=z.Undefined):ye.next===z.Undefined?(this._last=this._last.prev,this._last.next=z.Undefined):ye.prev===z.Undefined&&(this._first=this._first.next,this._first.prev=z.Undefined);this._size-=1}*[Symbol.iterator](){let ye=this._first;for(;ye!==z.Undefined;)yield ye.element,ye=ye.next}}},23345:function(Gt,He,h){"use strict";h.d(He,{$L:function(){return T},ED:function(){return M},IJ:function(){return V},OS:function(){return Ee},WE:function(){return j},dz:function(){return W},gn:function(){return G},li:function(){return y},r:function(){return ee},tY:function(){return b},xS:function(){return be}});var z=h(97671),N;const Q="en";let ye=!1,U=!1,H=!1,S=!1,pe=!1,a=!1,C=!1,O,m=null,u=null,x;const y=typeof self=="object"?self:typeof h.g=="object"?h.g:{};let L;typeof y.vscode!="undefined"&&typeof y.vscode.process!="undefined"?L=y.vscode.process:typeof z!="undefined"&&(L=z);const te=typeof((N=L==null?void 0:L.versions)===null||N===void 0?void 0:N.electron)=="string"&&L.type==="renderer";if(typeof navigator=="object"&&!te)x=navigator.userAgent,ye=x.indexOf("Windows")>=0,U=x.indexOf("Macintosh")>=0,C=(x.indexOf("Macintosh")>=0||x.indexOf("iPad")>=0||x.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,H=x.indexOf("Linux")>=0,a=!0,O=navigator.language,m=O;else if(typeof L=="object"){ye=L.platform==="win32",U=L.platform==="darwin",H=L.platform==="linux",S=H&&!!L.env.SNAP&&!!L.env.SNAP_REVISION,O=Q,m=Q;const Z=L.env.VSCODE_NLS_CONFIG;if(Z)try{const me=JSON.parse(Z),P=me.availableLanguages["*"];O=me.locale,m=P||Q,u=me._translationsConfigFile}catch(me){}pe=!0}else console.error("Unable to resolve platform.");let B=0;U?B=1:ye?B=3:H&&(B=2);const M=ye,W=U,V=H,b=pe,T=a,G=C,j=x,be=function(){if(y.setImmediate)return y.setImmediate.bind(y);if(typeof y.postMessage=="function"&&!y.importScripts){let P=[];y.addEventListener("message",X=>{if(X.data&&X.data.vscodeSetImmediateId)for(let v=0,E=P.length;v<E;v++){const K=P[v];if(K.id===X.data.vscodeSetImmediateId){P.splice(v,1),K.callback();return}}});let se=0;return X=>{const v=++se;P.push({id:v,callback:X}),y.postMessage({vscodeSetImmediateId:v},"*")}}if(typeof(L==null?void 0:L.nextTick)=="function")return L.nextTick.bind(L);const me=Promise.resolve();return P=>me.then(P)}(),Ee=U||C?2:ye?1:3;let xe=!0,ce=!1;function ee(){if(!ce){ce=!0;const Z=new Uint8Array(2);Z[0]=1,Z[1]=2,xe=new Uint16Array(Z.buffer)[0]===513}return xe}},95830:function(Gt,He,h){"use strict";h.d(He,{G:function(){return Q}});var z=h(23345);const N=z.li.performance&&typeof z.li.performance.now=="function";class Q{constructor(U){this._highResolution=N&&U,this._startTime=this._now(),this._stopTime=-1}static create(U=!0){return new Q(U)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?z.li.performance.now():Date.now()}}},82983:function(Gt,He,h){"use strict";h.d(He,{$i:function(){return Ne},C8:function(){return pt},GF:function(){return O},HO:function(){return se},IO:function(){return m},K7:function(){return ht},Kw:function(){return Yt},LC:function(){return y},Mh:function(){return be},P1:function(){return Ee},PJ:function(){return en},Qe:function(){return Ue},R1:function(){return C},RP:function(){return K},S6:function(){return Ut},TT:function(){return M},Ut:function(){return v},V8:function(){return L},WU:function(){return Q},YK:function(){return ce},YU:function(){return ye},ZG:function(){return xe},ZH:function(){return Z},ab:function(){return ke},c1:function(){return st},df:function(){return T},ec:function(){return U},fi:function(){return ut},fy:function(){return H},j3:function(){return S},j_:function(){return V},m5:function(){return z},mK:function(){return b},mr:function(){return u},oH:function(){return ve},oL:function(){return pe},ok:function(){return j},ow:function(){return te},qq:function(){return G},qu:function(){return B},rL:function(){return ee},uS:function(){return Ft},un:function(){return a},uq:function(){return x},vH:function(){return P},xe:function(){return Ve},zY:function(){return W}});function z($){return!$||typeof $!="string"?!0:$.trim().length===0}const N=/{(\d+)}/g;function Q($,...R){return R.length===0?$:$.replace(N,function(I,le){const re=parseInt(le,10);return isNaN(re)||re<0||re>=R.length?I:R[re]})}function ye($){return $.replace(/[<>&]/g,function(R){switch(R){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return R}})}function U($){return $.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function H($,R=" "){const I=S($,R);return pe(I,R)}function S($,R){if(!$||!R)return $;const I=R.length;if(I===0||$.length===0)return $;let le=0;for(;$.indexOf(R,le)===le;)le=le+I;return $.substring(le)}function pe($,R){if(!$||!R)return $;const I=R.length,le=$.length;if(I===0||le===0)return $;let re=le,J=-1;for(;J=$.lastIndexOf(R,re-1),!(J===-1||J+I!==re);){if(J===0)return"";re=J}return $.substring(0,re)}function a($){return $.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function C($){return $.replace(/\*/g,"")}function O($,R,I={}){if(!$)throw new Error("Cannot create regex from empty string");R||($=U($)),I.wholeWord&&(/\B/.test($.charAt(0))||($="\\b"+$),/\B/.test($.charAt($.length-1))||($=$+"\\b"));let le="";return I.global&&(le+="g"),I.matchCase||(le+="i"),I.multiline&&(le+="m"),I.unicode&&(le+="u"),new RegExp($,le)}function m($){return $.source==="^"||$.source==="^$"||$.source==="$"||$.source==="^\\s*$"?!1:!!($.exec("")&&$.lastIndex===0)}function u($){return($.global?"g":"")+($.ignoreCase?"i":"")+($.multiline?"m":"")+($.unicode?"u":"")}function x($){return $.split(/\r\n|\r|\n/)}function y($){for(let R=0,I=$.length;R<I;R++){const le=$.charCodeAt(R);if(le!==32&&le!==9)return R}return-1}function L($,R=0,I=$.length){for(let le=R;le<I;le++){const re=$.charCodeAt(le);if(re!==32&&re!==9)return $.substring(R,le)}return $.substring(R,I)}function te($,R=$.length-1){for(let I=R;I>=0;I--){const le=$.charCodeAt(I);if(le!==32&&le!==9)return I}return-1}function B($,R){return $<R?-1:$>R?1:0}function M($,R,I=0,le=$.length,re=0,J=R.length){for(;I<le&&re<J;I++,re++){let Pe=$.charCodeAt(I),Be=R.charCodeAt(re);if(Pe<Be)return-1;if(Pe>Be)return 1}const Ce=le-I,We=J-re;return Ce<We?-1:Ce>We?1:0}function W($,R){return V($,R,0,$.length,0,R.length)}function V($,R,I=0,le=$.length,re=0,J=R.length){for(;I<le&&re<J;I++,re++){let Pe=$.charCodeAt(I),Be=R.charCodeAt(re);if(Pe===Be)continue;if(Pe>=128||Be>=128)return M($.toLowerCase(),R.toLowerCase(),I,le,re,J);b(Pe)&&(Pe-=32),b(Be)&&(Be-=32);const Xe=Pe-Be;if(Xe!==0)return Xe}const Ce=le-I,We=J-re;return Ce<We?-1:Ce>We?1:0}function b($){return $>=97&&$<=122}function T($){return $>=65&&$<=90}function G($,R){return $.length===R.length&&V($,R)===0}function j($,R){const I=R.length;return R.length>$.length?!1:V($,R,0,I)===0}function be($,R){let I,le=Math.min($.length,R.length);for(I=0;I<le;I++)if($.charCodeAt(I)!==R.charCodeAt(I))return I;return le}function Ee($,R){let I,le=Math.min($.length,R.length);const re=$.length-1,J=R.length-1;for(I=0;I<le;I++)if($.charCodeAt(re-I)!==R.charCodeAt(J-I))return I;return le}function xe($){return 55296<=$&&$<=56319}function ce($){return 56320<=$&&$<=57343}function ee($,R){return($-55296<<10)+(R-56320)+65536}function Z($,R,I){const le=$.charCodeAt(I);if(xe(le)&&I+1<R){const re=$.charCodeAt(I+1);if(ce(re))return ee(le,re)}return le}function me($,R){const I=$.charCodeAt(R-1);if(ce(I)&&R>1){const le=$.charCodeAt(R-2);if(xe(le))return ee(le,I)}return I}function P($,R){const I=Et.getInstance(),le=R,re=$.length,J=Z($,re,R);R+=J>=65536?2:1;let Ce=I.getGraphemeBreakType(J);for(;R<re;){const We=Z($,re,R),Pe=I.getGraphemeBreakType(We);if(ut(Ce,Pe))break;R+=We>=65536?2:1,Ce=Pe}return R-le}function se($,R){const I=Et.getInstance(),le=R,re=me($,R);R-=re>=65536?2:1;let J=I.getGraphemeBreakType(re);for(;R>0;){const Ce=me($,R),We=I.getGraphemeBreakType(Ce);if(ut(We,J))break;R-=Ce>=65536?2:1,J=We}return le-R}const X=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function v($){return X.test($)}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 K($){return E.test($)}const de=/^[\t\n\r\x20-\x7E]*$/;function Ne($){return de.test($)}const Ue=/[\u2028\u2029]/;function ke($){return Ue.test($)}function Ve($){for(let R=0,I=$.length;R<I;R++)if(ht($.charCodeAt(R)))return!0;return!1}function ht($){return $=+$,$>=11904&&$<=55215||$>=63744&&$<=64255||$>=65281&&$<=65374}function pt($){return $>=127462&&$<=127487||$===8986||$===8987||$===9200||$===9203||$>=9728&&$<=10175||$===11088||$===11093||$>=127744&&$<=128591||$>=128640&&$<=128764||$>=128992&&$<=129003||$>=129280&&$<=129535||$>=129648&&$<=129750}const st="\uFEFF";function Ft($){return!!($&&$.length>0&&$.charCodeAt(0)===65279)}function Yt($,R=!1){return $?(R&&($=$.replace(/\\./g,"")),$.toLowerCase()!==$):!1}function en($){return $=$%(2*26),$<26?String.fromCharCode(97+$):String.fromCharCode(65+$-26)}function Ut($){return Et.getInstance().getGraphemeBreakType($)}function ut($,R){return $===0?R!==5&&R!==7:$===2&&R===3?!1:$===4||$===2||$===3||R===4||R===2||R===3?!0:!($===8&&(R===8||R===9||R===11||R===12)||($===11||$===9)&&(R===9||R===10)||($===12||$===10)&&R===10||R===5||R===13||R===7||$===1||$===13&&R===14||$===6&&R===6)}class Et{constructor(){this._data=oe()}static getInstance(){return Et._INSTANCE||(Et._INSTANCE=new Et),Et._INSTANCE}getGraphemeBreakType(R){if(R<32)return R===10?3:R===13?2:4;if(R<127)return 0;const I=this._data,le=I.length/3;let re=1;for(;re<=le;)if(R<I[3*re])re=2*re;else if(R>I[3*re+1])re=2*re+1;else return I[3*re+2];return 0}}Et._INSTANCE=null;function oe(){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 ve($,R){if($===0)return 0;const I=ie($,R);if(I!==void 0)return I;const le=me(R,$);return $-=Y(le),$}function ie($,R){let I=me(R,$);for($-=Y(I);Ae(I)||I===65039||I===8419;){if($===0)return;I=me(R,$),$-=Y(I)}if(pt(I)){if($>=0){const le=me(R,$);le===8205&&($-=Y(le))}return $}}function Y($){return $>=65536?2:1}function Ae($){return 127995<=$&&$<=127999}},72999:function(Gt,He,h){"use strict";h.d(He,{$E:function(){return y},$K:function(){return S},D8:function(){return m},HD:function(){return N},IU:function(){return L},Jp:function(){return pe},Kn:function(){return Q},cW:function(){return C},f6:function(){return te},hj:function(){return ye},jn:function(){return U},kJ:function(){return z},mf:function(){return O},o8:function(){return H},p_:function(){return a},vE:function(){return B}});function z(M){return Array.isArray(M)}function N(M){return typeof M=="string"}function Q(M){return typeof M=="object"&&M!==null&&!Array.isArray(M)&&!(M instanceof RegExp)&&!(M instanceof Date)}function ye(M){return typeof M=="number"&&!isNaN(M)}function U(M){return M===!0||M===!1}function H(M){return typeof M=="undefined"}function S(M){return!pe(M)}function pe(M){return H(M)||M===null}function a(M,W){if(!M)throw new Error(W?`Unexpected type, expected '${W}'`:"Unexpected type")}function C(M){if(pe(M))throw new Error("Assertion Failed: argument is undefined or null");return M}function O(M){return typeof M=="function"}function m(M,W){const V=Math.min(M.length,W.length);for(let b=0;b<V;b++)u(M[b],W[b])}function u(M,W){if(N(W)){if(typeof M!==W)throw new Error(`argument does not match constraint: typeof ${W}`)}else if(O(W)){try{if(M instanceof W)return}catch(V){}if(!pe(M)&&M.constructor===W||W.length===1&&W.call(void 0,M)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function x(M){let W=[],V=Object.getPrototypeOf(M);for(;Object.prototype!==V;)W=W.concat(Object.getOwnPropertyNames(V)),V=Object.getPrototypeOf(V);return W}function y(M){const W=[];for(const V of x(M))typeof M[V]=="function"&&W.push(V);return W}function L(M,W){const V=T=>function(){const G=Array.prototype.slice.call(arguments,0);return W(T,G)};let b={};for(const T of M)b[T]=V(T);return b}function te(M){return M===null?void 0:M}function B(M,W="Unreachable"){throw new Error(W)}},13268:function(Gt,He,h){"use strict";h.d(He,{N:function(){return N}});function z(Q,ye){let U;return ye.length===0?U=Q:U=Q.replace(/\{(\d+)\}/g,function(H,S){const pe=S[0];return typeof ye[pe]!="undefined"?ye[pe]:H}),U}function N(Q,ye,...U){return z(ye,U)}},96236:function(Gt,He,h){"use strict";h.d(He,{BH:function(){return L},NZ:function(){return te},U8:function(){return B},co:function(){return y},eH:function(){return x},vr:function(){return u}});var z=h(75918),N=h(52615),Q=h(4348),ye=h(88226),U=h(69323),H=h(34502),S=h(35884),pe=h(90689),a=h(16925),C=h(49055),O=function(M,W,V,b){var T=arguments.length,G=T<3?W:b===null?b=Object.getOwnPropertyDescriptor(W,V):b,j;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(M,W,V,b);else for(var be=M.length-1;be>=0;be--)(j=M[be])&&(G=(T<3?j(G):T>3?j(W,V,G):j(W,V))||G);return T>3&&G&&Object.defineProperty(W,V,G),G},m=function(M,W){return function(V,b){W(V,b,M)}};function u(M){return M.command!==void 0}class x{constructor(W){this.id=x._idPool++,this._debugName=W}}x._idPool=0,x.CommandPalette=new x("CommandPalette"),x.EditorContext=new x("EditorContext"),x.SimpleEditorContext=new x("SimpleEditorContext"),x.EditorContextCopy=new x("EditorContextCopy"),x.EditorContextPeek=new x("EditorContextPeek"),x.MenubarEditMenu=new x("MenubarEditMenu"),x.MenubarCopy=new x("MenubarCopy"),x.MenubarGoMenu=new x("MenubarGoMenu"),x.MenubarSelectionMenu=new x("MenubarSelectionMenu"),x.InlineCompletionsActions=new x("InlineCompletionsActions");const y=(0,a.yh)("menuService"),L=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new Q.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:M=>M===x.CommandPalette}}addCommand(M){return this.addCommands(ye.$.single(M))}addCommands(M){for(const W of M)this._commands.set(W.id,W);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,U.OF)(()=>{let W=!1;for(const V of M)W=this._commands.delete(V.id)||W;W&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(M){return this._commands.get(M)}getCommands(){const M=new Map;return this._commands.forEach((W,V)=>M.set(V,W)),M}appendMenuItem(M,W){return this.appendMenuItems(ye.$.single({id:M,item:W}))}appendMenuItems(M){const W=new Set,V=new H.S;for(const{id:b,item:T}of M){let G=this._menuItems.get(b);G||(G=new H.S,this._menuItems.set(b,G)),V.push(G.push(T)),W.add(b)}return this._onDidChangeMenu.fire(W),(0,U.OF)(()=>{if(V.size>0){for(let b of V)b();this._onDidChangeMenu.fire(W),V.clear()}})}getMenuItems(M){let W;return this._menuItems.has(M)?W=[...this._menuItems.get(M)]:W=[],M===x.CommandPalette&&this._appendImplicitItems(W),W}_appendImplicitItems(M){const W=new Set;for(const V of M)u(V)&&(W.add(V.command.id),V.alt&&W.add(V.alt.id));this._commands.forEach((V,b)=>{W.has(b)||M.push({command:V})})}};class te extends z.wY{constructor(W,V,b,T){super(`submenuitem.${W.submenu.id}`,typeof W.title=="string"?W.title:W.title.value,[],"submenu"),this.item=W,this._menuService=V,this._contextKeyService=b,this._options=T}get actions(){const W=[],V=this._menuService.createMenu(this.item.submenu,this._contextKeyService),b=V.getActions(this._options);V.dispose();for(const[,T]of b)T.length>0&&(W.push(...T),W.push(new z.Z0));return W.length&&W.pop(),W}}let B=class Sl{constructor(W,V,b,T,G){var j,be;if(this._commandService=G,this.id=W.id,this.label=b!=null&&b.renderShortTitle&&W.shortTitle?typeof W.shortTitle=="string"?W.shortTitle:W.shortTitle.value:typeof W.title=="string"?W.title:W.title.value,this.tooltip=(be=typeof W.tooltip=="string"?W.tooltip:(j=W.tooltip)===null||j===void 0?void 0:j.value)!==null&&be!==void 0?be:"",this.enabled=!W.precondition||T.contextMatchesRules(W.precondition),this.checked=void 0,W.toggled){const Ee=W.toggled.condition?W.toggled:{condition:W.toggled};this.checked=T.contextMatchesRules(Ee.condition),this.checked&&Ee.tooltip&&(this.tooltip=typeof Ee.tooltip=="string"?Ee.tooltip:Ee.tooltip.value),Ee.title&&(this.label=typeof Ee.title=="string"?Ee.title:Ee.title.value)}this.item=W,this.alt=V?new Sl(V,void 0,b,T,G):void 0,this._options=b,C.kS.isThemeIcon(W.icon)&&(this.class=N.dT.asClassName(W.icon))}dispose(){}run(...W){var V,b;let T=[];return!((V=this._options)===null||V===void 0)&&V.arg&&(T=[...T,this._options.arg]),!((b=this._options)===null||b===void 0)&&b.shouldForwardArgs&&(T=[...T,...W]),this._commandService.executeCommand(this.id,...T)}};B=O([m(3,pe.i6),m(4,S.H)],B)},35884:function(Gt,He,h){"use strict";h.d(He,{H:function(){return S},P:function(){return pe}});var z=h(4348),N=h(88226),Q=h(69323),ye=h(34502),U=h(72999),H=h(16925);const S=(0,H.yh)("commandService"),pe=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new z.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(a,C){if(!a)throw new Error("invalid command");if(typeof a=="string"){if(!C)throw new Error("invalid command");return this.registerCommand({id:a,handler:C})}if(a.description){const y=[];for(let te of a.description.args)y.push(te.constraint);const L=a.handler;a.handler=function(te,...B){return(0,U.D8)(B,y),L(te,...B)}}const{id:O}=a;let m=this._commands.get(O);m||(m=new ye.S,this._commands.set(O,m));let u=m.unshift(a),x=(0,Q.OF)(()=>{u();const y=this._commands.get(O);y!=null&&y.isEmpty()&&this._commands.delete(O)});return this._onDidRegisterCommand.fire(O),x}registerCommandAlias(a,C){return pe.registerCommand(a,(O,...m)=>O.get(S).executeCommand(C,...m))}getCommand(a){const C=this._commands.get(a);if(!(!C||C.isEmpty()))return N.$.first(C)}getCommands(){const a=new Map;for(const C of this._commands.keys()){const O=this.getCommand(C);O&&a.set(C,O)}return a}};pe.registerCommand("noop",()=>{})},90689:function(Gt,He,h){"use strict";h.d(He,{Ao:function(){return S},Eq:function(){return ee},Fb:function(){return pe},K8:function(){return P},i6:function(){return ce},uy:function(){return xe}});var z=h(23345),N=h(82983),Q=h(16925);let ye=z.WE||"";const U=new Map;U.set("false",!1),U.set("true",!0),U.set("isMac",z.dz),U.set("isLinux",z.IJ),U.set("isWindows",z.ED),U.set("isWeb",z.$L),U.set("isMacNative",z.dz&&!z.$L),U.set("isEdge",ye.indexOf("Edg/")>=0),U.set("isFirefox",ye.indexOf("Firefox")>=0),U.set("isChrome",ye.indexOf("Chrome")>=0),U.set("isSafari",ye.indexOf("Safari")>=0);const H=Object.prototype.hasOwnProperty;class S{static has(v){return m.create(v)}static equals(v,E){return u.create(v,E)}static regex(v,E){return T.create(v,E)}static not(v){return te.create(v)}static and(...v){return be.create(v,null)}static or(...v){return Ee.create(v,null,!0)}static deserialize(v,E=!1){if(v)return this._deserializeOrExpression(v,E)}static _deserializeOrExpression(v,E){let K=v.split("||");return Ee.create(K.map(de=>this._deserializeAndExpression(de,E)),null,!0)}static _deserializeAndExpression(v,E){let K=v.split("&&");return be.create(K.map(de=>this._deserializeOne(de,E)),null)}static _deserializeOne(v,E){if(v=v.trim(),v.indexOf("!=")>=0){let K=v.split("!=");return L.create(K[0].trim(),this._deserializeValue(K[1],E))}if(v.indexOf("==")>=0){let K=v.split("==");return u.create(K[0].trim(),this._deserializeValue(K[1],E))}if(v.indexOf("=~")>=0){let K=v.split("=~");return T.create(K[0].trim(),this._deserializeRegexValue(K[1],E))}if(v.indexOf(" in ")>=0){let K=v.split(" in ");return x.create(K[0].trim(),K[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(v)){const K=v.split(">=");return W.create(K[0].trim(),K[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(v)){const K=v.split(">");return M.create(K[0].trim(),K[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(v)){const K=v.split("<=");return b.create(K[0].trim(),K[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(v)){const K=v.split("<");return V.create(K[0].trim(),K[1].trim())}return/^\!\s*/.test(v)?te.create(v.substr(1).trim()):m.create(v)}static _deserializeValue(v,E){if(v=v.trim(),v==="true")return!0;if(v==="false")return!1;let K=/^'([^']*)'$/.exec(v);return K?K[1].trim():v}static _deserializeRegexValue(v,E){if((0,N.m5)(v)){if(E)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let K=v.indexOf("/"),de=v.lastIndexOf("/");if(K===de||K<0){if(E)throw new Error(`bad regexp-value '${v}', missing /-enclosure`);return console.warn(`bad regexp-value '${v}', missing /-enclosure`),null}let Ne=v.slice(K+1,de),Ue=v[de+1]==="i"?"i":"";try{return new RegExp(Ne,Ue)}catch(ke){if(E)throw new Error(`bad regexp-value '${v}', parse error: ${ke}`);return console.warn(`bad regexp-value '${v}', parse error: ${ke}`),null}}}function pe(X,v){const E=X?X.substituteConstants():void 0,K=v?v.substituteConstants():void 0;return!E&&!K?!0:!E||!K?!1:E.equals(K)}function a(X,v){return X.cmp(v)}class C{constructor(){this.type=0}cmp(v){return this.type-v.type}equals(v){return v.type===this.type}substituteConstants(){return this}evaluate(v){return!1}serialize(){return"false"}keys(){return[]}negate(){return O.INSTANCE}}C.INSTANCE=new C;class O{constructor(){this.type=1}cmp(v){return this.type-v.type}equals(v){return v.type===this.type}substituteConstants(){return this}evaluate(v){return!0}serialize(){return"true"}keys(){return[]}negate(){return C.INSTANCE}}O.INSTANCE=new O;class m{constructor(v,E){this.key=v,this.negated=E,this.type=2}static create(v,E=null){const K=U.get(v);return typeof K=="boolean"?K?O.INSTANCE:C.INSTANCE:new m(v,E)}cmp(v){return v.type!==this.type?this.type-v.type:Z(this.key,v.key)}equals(v){return v.type===this.type?this.key===v.key:!1}substituteConstants(){const v=U.get(this.key);return typeof v=="boolean"?v?O.INSTANCE:C.INSTANCE:this}evaluate(v){return!!v.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=te.create(this.key,this)),this.negated}}class u{constructor(v,E,K){this.key=v,this.value=E,this.negated=K,this.type=4}static create(v,E,K=null){if(typeof E=="boolean")return E?m.create(v,K):te.create(v,K);const de=U.get(v);return typeof de=="boolean"?E===(de?"true":"false")?O.INSTANCE:C.INSTANCE:new u(v,E,K)}cmp(v){return v.type!==this.type?this.type-v.type:me(this.key,this.value,v.key,v.value)}equals(v){return v.type===this.type?this.key===v.key&&this.value===v.value:!1}substituteConstants(){const v=U.get(this.key);if(typeof v=="boolean"){const E=v?"true":"false";return this.value===E?O.INSTANCE:C.INSTANCE}return this}evaluate(v){return v.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=L.create(this.key,this.value,this)),this.negated}}class x{constructor(v,E){this.key=v,this.valueKey=E,this.type=10,this.negated=null}static create(v,E){return new x(v,E)}cmp(v){return v.type!==this.type?this.type-v.type:me(this.key,this.valueKey,v.key,v.valueKey)}equals(v){return v.type===this.type?this.key===v.key&&this.valueKey===v.valueKey:!1}substituteConstants(){return this}evaluate(v){const E=v.getValue(this.valueKey),K=v.getValue(this.key);return Array.isArray(E)?E.indexOf(K)>=0:typeof K=="string"&&typeof E=="object"&&E!==null?H.call(E,K):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=y.create(this)),this.negated}}class y{constructor(v){this._actual=v,this.type=11}static create(v){return new y(v)}cmp(v){return v.type!==this.type?this.type-v.type:this._actual.cmp(v._actual)}equals(v){return v.type===this.type?this._actual.equals(v._actual):!1}substituteConstants(){return this}evaluate(v){return!this._actual.evaluate(v)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class L{constructor(v,E,K){this.key=v,this.value=E,this.negated=K,this.type=5}static create(v,E,K=null){if(typeof E=="boolean")return E?te.create(v,K):m.create(v,K);const de=U.get(v);return typeof de=="boolean"?E===(de?"true":"false")?C.INSTANCE:O.INSTANCE:new L(v,E,K)}cmp(v){return v.type!==this.type?this.type-v.type:me(this.key,this.value,v.key,v.value)}equals(v){return v.type===this.type?this.key===v.key&&this.value===v.value:!1}substituteConstants(){const v=U.get(this.key);if(typeof v=="boolean"){const E=v?"true":"false";return this.value===E?C.INSTANCE:O.INSTANCE}return this}evaluate(v){return v.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=u.create(this.key,this.value,this)),this.negated}}class te{constructor(v,E){this.key=v,this.negated=E,this.type=3}static create(v,E=null){const K=U.get(v);return typeof K=="boolean"?K?C.INSTANCE:O.INSTANCE:new te(v,E)}cmp(v){return v.type!==this.type?this.type-v.type:Z(this.key,v.key)}equals(v){return v.type===this.type?this.key===v.key:!1}substituteConstants(){const v=U.get(this.key);return typeof v=="boolean"?v?C.INSTANCE:O.INSTANCE:this}evaluate(v){return!v.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=m.create(this.key,this)),this.negated}}function B(X,v){if(typeof X=="string"){const E=parseFloat(X);isNaN(E)||(X=E)}return typeof X=="string"||typeof X=="number"?v(X):C.INSTANCE}class M{constructor(v,E,K){this.key=v,this.value=E,this.negated=K,this.type=12}static create(v,E,K=null){return B(E,de=>new M(v,de,K))}cmp(v){return v.type!==this.type?this.type-v.type:me(this.key,this.value,v.key,v.value)}equals(v){return v.type===this.type?this.key===v.key&&this.value===v.value:!1}substituteConstants(){return this}evaluate(v){return typeof this.value=="string"?!1:parseFloat(v.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=b.create(this.key,this.value,this)),this.negated}}class W{constructor(v,E,K){this.key=v,this.value=E,this.negated=K,this.type=13}static create(v,E,K=null){return B(E,de=>new W(v,de,K))}cmp(v){return v.type!==this.type?this.type-v.type:me(this.key,this.value,v.key,v.value)}equals(v){return v.type===this.type?this.key===v.key&&this.value===v.value:!1}substituteConstants(){return this}evaluate(v){return typeof this.value=="string"?!1:parseFloat(v.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=V.create(this.key,this.value,this)),this.negated}}class V{constructor(v,E,K){this.key=v,this.value=E,this.negated=K,this.type=14}static create(v,E,K=null){return B(E,de=>new V(v,de,K))}cmp(v){return v.type!==this.type?this.type-v.type:me(this.key,this.value,v.key,v.value)}equals(v){return v.type===this.type?this.key===v.key&&this.value===v.value:!1}substituteConstants(){return this}evaluate(v){return typeof this.value=="string"?!1:parseFloat(v.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=W.create(this.key,this.value,this)),this.negated}}class b{constructor(v,E,K){this.key=v,this.value=E,this.negated=K,this.type=15}static create(v,E,K=null){return B(E,de=>new b(v,de,K))}cmp(v){return v.type!==this.type?this.type-v.type:me(this.key,this.value,v.key,v.value)}equals(v){return v.type===this.type?this.key===v.key&&this.value===v.value:!1}substituteConstants(){return this}evaluate(v){return typeof this.value=="string"?!1:parseFloat(v.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=M.create(this.key,this.value,this)),this.negated}}class T{constructor(v,E){this.key=v,this.regexp=E,this.type=7,this.negated=null}static create(v,E){return new T(v,E)}cmp(v){if(v.type!==this.type)return this.type-v.type;if(this.key<v.key)return-1;if(this.key>v.key)return 1;const E=this.regexp?this.regexp.source:"",K=v.regexp?v.regexp.source:"";return E<K?-1:E>K?1:0}equals(v){if(v.type===this.type){const E=this.regexp?this.regexp.source:"",K=v.regexp?v.regexp.source:"";return this.key===v.key&&E===K}return!1}substituteConstants(){return this}evaluate(v){let E=v.getValue(this.key);return this.regexp?this.regexp.test(E):!1}serialize(){const v=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${v}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=G.create(this)),this.negated}}class G{constructor(v){this._actual=v,this.type=8}static create(v){return new G(v)}cmp(v){return v.type!==this.type?this.type-v.type:this._actual.cmp(v._actual)}equals(v){return v.type===this.type?this._actual.equals(v._actual):!1}substituteConstants(){return this}evaluate(v){return!this._actual.evaluate(v)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function j(X){let v=null;for(let E=0,K=X.length;E<K;E++){const de=X[E].substituteConstants();if(X[E]!==de&&v===null){v=[];for(let Ne=0;Ne<E;Ne++)v[Ne]=X[Ne]}v!==null&&(v[E]=de)}return v===null?X:v}class be{constructor(v,E){this.expr=v,this.negated=E,this.type=6}static create(v,E){return be._normalizeArr(v,E)}cmp(v){if(v.type!==this.type)return this.type-v.type;if(this.expr.length<v.expr.length)return-1;if(this.expr.length>v.expr.length)return 1;for(let E=0,K=this.expr.length;E<K;E++){const de=a(this.expr[E],v.expr[E]);if(de!==0)return de}return 0}equals(v){if(v.type===this.type){if(this.expr.length!==v.expr.length)return!1;for(let E=0,K=this.expr.length;E<K;E++)if(!this.expr[E].equals(v.expr[E]))return!1;return!0}return!1}substituteConstants(){const v=j(this.expr);return v===this.expr?this:be.create(v,this.negated)}evaluate(v){for(let E=0,K=this.expr.length;E<K;E++)if(!this.expr[E].evaluate(v))return!1;return!0}static _normalizeArr(v,E){const K=[];let de=!1;for(const Ne of v)if(Ne){if(Ne.type===1){de=!0;continue}if(Ne.type===0)return C.INSTANCE;if(Ne.type===6){K.push(...Ne.expr);continue}K.push(Ne)}if(K.length===0&&de)return O.INSTANCE;if(K.length!==0){if(K.length===1)return K[0];K.sort(a);for(let Ne=1;Ne<K.length;Ne++)K[Ne-1].equals(K[Ne])&&(K.splice(Ne,1),Ne--);if(K.length===1)return K[0];for(;K.length>1;){const Ne=K[K.length-1];if(Ne.type!==9)break;K.pop();const Ue=K.pop(),ke=K.length===0,Ve=Ee.create(Ne.expr.map(ht=>be.create([ht,Ue],null)),null,ke);Ve&&(K.push(Ve),K.sort(a))}return K.length===1?K[0]:new be(K,E)}}serialize(){return this.expr.map(v=>v.serialize()).join(" && ")}keys(){const v=[];for(let E of this.expr)v.push(...E.keys());return v}negate(){if(!this.negated){const v=[];for(let E of this.expr)v.push(E.negate());this.negated=Ee.create(v,this,!0)}return this.negated}}class Ee{constructor(v,E){this.expr=v,this.negated=E,this.type=9}static create(v,E,K){return Ee._normalizeArr(v,E,K)}cmp(v){if(v.type!==this.type)return this.type-v.type;if(this.expr.length<v.expr.length)return-1;if(this.expr.length>v.expr.length)return 1;for(let E=0,K=this.expr.length;E<K;E++){const de=a(this.expr[E],v.expr[E]);if(de!==0)return de}return 0}equals(v){if(v.type===this.type){if(this.expr.length!==v.expr.length)return!1;for(let E=0,K=this.expr.length;E<K;E++)if(!this.expr[E].equals(v.expr[E]))return!1;return!0}return!1}substituteConstants(){const v=j(this.expr);return v===this.expr?this:Ee.create(v,this.negated,!1)}evaluate(v){for(let E=0,K=this.expr.length;E<K;E++)if(this.expr[E].evaluate(v))return!0;return!1}static _normalizeArr(v,E,K){let de=[],Ne=!1;if(v){for(let Ue=0,ke=v.length;Ue<ke;Ue++){const Ve=v[Ue];if(Ve){if(Ve.type===0){Ne=!0;continue}if(Ve.type===1)return O.INSTANCE;if(Ve.type===9){de=de.concat(Ve.expr);continue}de.push(Ve)}}if(de.length===0&&Ne)return C.INSTANCE;de.sort(a)}if(de.length!==0){if(de.length===1)return de[0];for(let Ue=1;Ue<de.length;Ue++)de[Ue-1].equals(de[Ue])&&(de.splice(Ue,1),Ue--);if(de.length===1)return de[0];if(K){for(let Ue=0;Ue<de.length;Ue++)for(let ke=Ue+1;ke<de.length;ke++)P(de[Ue],de[ke])&&(de.splice(ke,1),ke--);if(de.length===1)return de[0]}return new Ee(de,E)}}serialize(){return this.expr.map(v=>v.serialize()).join(" || ")}keys(){const v=[];for(let E of this.expr)v.push(...E.keys());return v}negate(){if(!this.negated){let v=[];for(let E of this.expr)v.push(E.negate());for(;v.length>1;){const E=v.shift(),K=v.shift(),de=[];for(const Ue of se(E))for(const ke of se(K))de.push(be.create([Ue,ke],null));const Ne=v.length===0;v.unshift(Ee.create(de,null,Ne))}this.negated=v[0]}return this.negated}}class xe extends m{constructor(v,E,K){super(v,null),this._defaultValue=E,typeof K=="object"?xe._info.push(Object.assign(Object.assign({},K),{key:v})):K!==!0&&xe._info.push({key:v,description:K,type:E!=null?typeof E:void 0})}static all(){return xe._info.values()}bindTo(v){return v.createKey(this.key,this._defaultValue)}getValue(v){return v.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(v){return u.create(this.key,v)}}xe._info=[];const ce=(0,Q.yh)("contextKeyService"),ee="setContext";function Z(X,v){return X<v?-1:X>v?1:0}function me(X,v,E,K){return X<E?-1:X>E?1:v<K?-1:v>K?1:0}function P(X,v){if(v.type===6&&X.type!==9&&X.type!==6){for(const de of v.expr)if(X.equals(de))return!0}const E=X.negate(),K=se(E).concat(se(v));K.sort(a);for(let de=0;de<K.length;de++){const Ue=K[de].negate();for(let ke=de+1;ke<K.length;ke++){const Ve=K[ke];if(Ue.equals(Ve))return!0}}return!1}function se(X){return X.type===9?X.expr:[X]}},16925:function(Gt,He,h){"use strict";h.d(He,{I8:function(){return z},TG:function(){return N},jt:function(){return U},yh:function(){return ye}});var z;(function(H){H.serviceIds=new Map,H.DI_TARGET="$di$target",H.DI_DEPENDENCIES="$di$dependencies";function S(pe){return pe[H.DI_DEPENDENCIES]||[]}H.getServiceDependencies=S})(z||(z={}));const N=ye("instantiationService");function Q(H,S,pe,a){S[z.DI_TARGET]===S?S[z.DI_DEPENDENCIES].push({id:H,index:pe,optional:a}):(S[z.DI_DEPENDENCIES]=[{id:H,index:pe,optional:a}],S[z.DI_TARGET]=S)}function ye(H){if(z.serviceIds.has(H))return z.serviceIds.get(H);const S=function(pe,a,C){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");Q(S,pe,C,!1)};return S.toString=()=>H,z.serviceIds.set(H,S),S}function U(H){return function(S,pe,a){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");Q(H,S,a,!0)}}},44650:function(Gt,He,h){"use strict";h.d(He,{B:function(){return ye}});var z=h(76068),N=h(72999);class Q{constructor(){this.data=new Map}add(H,S){z.ok(N.HD(H)),z.ok(N.Kn(S)),z.ok(!this.data.has(H),"There is already an extension with this id"),this.data.set(H,S)}as(H){return this.data.get(H)||null}}const ye=new Q},66213:function(Gt,He,h){"use strict";h.d(He,{e:function(){return z}});var z;(function(N){N.DARK="dark",N.LIGHT="light",N.HIGH_CONTRAST="hc"})(z||(z={}))},49055:function(Gt,He,h){"use strict";h.d(He,{EN:function(){return a},IP:function(){return m},Ic:function(){return y},XE:function(){return S},bB:function(){return L},kS:function(){return C},m6:function(){return O}});var z=h(52615),N=h(4348),Q=h(69323),ye=h(16925),U=h(44650),H=h(66213);const S=(0,ye.yh)("themeService");var pe;(function(te){function B(M){return M&&typeof M=="object"&&typeof M.id=="string"}te.isThemeColor=B})(pe||(pe={}));function a(te){return{id:te}}var C;(function(te){function B(G){return G&&typeof G=="object"&&typeof G.id=="string"&&(typeof G.color=="undefined"||pe.isThemeColor(G.color))}te.isThemeIcon=B;const M=new RegExp(`^\\$\\((${z.dT.iconNameExpression}(?:${z.dT.iconModifierExpression})?)\\)$`);function W(G){const j=M.exec(G);if(!j)return;let[,be]=j;return{id:be}}te.fromString=W;function V(G,j){let be=G.id;const Ee=be.lastIndexOf("~");return Ee!==-1&&(be=be.substring(0,Ee)),j&&(be=`${be}~${j}`),{id:be}}te.modify=V;function b(G,j){var be,Ee;return G.id===j.id&&((be=G.color)===null||be===void 0?void 0:be.id)===((Ee=j.color)===null||Ee===void 0?void 0:Ee.id)}te.isEqual=b;function T(G,j){return{id:G.id,color:j?a(j):void 0}}te.asThemeIcon=T,te.asClassNameArray=z.dT.asClassNameArray,te.asClassName=z.dT.asClassName,te.asCSSSelector=z.dT.asCSSSelector})(C||(C={}));function O(te){switch(te){case H.e.DARK:return"vs-dark";case H.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const m={ThemingContribution:"base.contributions.theming"};class u{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new N.Q5}onColorThemeChange(B){return this.themingParticipants.push(B),this.onThemingParticipantAddedEmitter.fire(B),(0,Q.OF)(()=>{const M=this.themingParticipants.indexOf(B);this.themingParticipants.splice(M,1)})}getThemingParticipants(){return this.themingParticipants}}let x=new u;U.B.add(m.ThemingContribution,x);function y(te){return x.onColorThemeChange(te)}class L extends Q.JT{constructor(B){super(),this.themeService=B,this.theme=B.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(M=>this.onThemeChange(M)))}onThemeChange(B){this.theme=B,this.updateStyles()}updateStyles(){}}},5630:function(Gt,He,h){"use strict";var z=h(96663),N=h(44127),Q=h(90493),ye=h(72071),U=h(6620),H=h(92310),S=h.n(H),pe=h(18929),a=h(59301),C=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],O=(0,a.forwardRef)(function(m,u){var x,y=m.prefixCls,L=y===void 0?"rc-checkbox":y,te=m.className,B=m.style,M=m.checked,W=m.disabled,V=m.defaultChecked,b=V===void 0?!1:V,T=m.type,G=T===void 0?"checkbox":T,j=m.title,be=m.onChange,Ee=(0,U.Z)(m,C),xe=(0,a.useRef)(null),ce=(0,pe.Z)(b,{value:M}),ee=(0,ye.Z)(ce,2),Z=ee[0],me=ee[1];(0,a.useImperativeHandle)(u,function(){return{focus:function(){var v;(v=xe.current)===null||v===void 0||v.focus()},blur:function(){var v;(v=xe.current)===null||v===void 0||v.blur()},input:xe.current}});var P=S()(L,te,(x={},(0,Q.Z)(x,"".concat(L,"-checked"),Z),(0,Q.Z)(x,"".concat(L,"-disabled"),W),x)),se=function(v){W||("checked"in m||me(v.target.checked),be==null||be({target:(0,N.Z)((0,N.Z)({},m),{},{type:G,checked:v.target.checked}),stopPropagation:function(){v.stopPropagation()},preventDefault:function(){v.preventDefault()},nativeEvent:v.nativeEvent}))};return a.createElement("span",{className:P,title:j,style:B},a.createElement("input",(0,z.Z)({},Ee,{className:"".concat(L,"-input"),ref:xe,onChange:se,disabled:W,checked:!!Z,type:G})),a.createElement("span",{className:"".concat(L,"-inner")}))});He.Z=O},31561:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return G}});var z=h(96663),N=h(90493),Q=h(72071),ye=h(6620),U=h(35593),H=h(92310),S=h.n(H),pe=h(8654),a=h(59301),C=h(10228),O=h(16089),m=C.Z.ESC,u=C.Z.TAB;function x(j){var be=j.visible,Ee=j.triggerRef,xe=j.onVisibleChange,ce=j.autoFocus,ee=j.overlayRef,Z=a.useRef(!1),me=function(){if(be){var v,E;(v=Ee.current)===null||v===void 0||(E=v.focus)===null||E===void 0||E.call(v),xe==null||xe(!1)}},P=function(){var v;return(v=ee.current)!==null&&v!==void 0&&v.focus?(ee.current.focus(),Z.current=!0,!0):!1},se=function(v){switch(v.keyCode){case m:me();break;case u:{var E=!1;Z.current||(E=P()),E?v.preventDefault():me();break}}};a.useEffect(function(){return be?(window.addEventListener("keydown",se),ce&&(0,O.Z)(P,3),function(){window.removeEventListener("keydown",se),Z.current=!1}):function(){Z.current=!1}},[be])}var y=(0,a.forwardRef)(function(j,be){var Ee=j.overlay,xe=j.arrow,ce=j.prefixCls,ee=(0,a.useMemo)(function(){var me;return typeof Ee=="function"?me=Ee():me=Ee,me},[Ee]),Z=(0,pe.sQ)(be,ee==null?void 0:ee.ref);return a.createElement(a.Fragment,null,xe&&a.createElement("div",{className:"".concat(ce,"-arrow")}),a.cloneElement(ee,{ref:(0,pe.Yr)(ee)?Z:void 0}))}),L=y,te={adjustX:1,adjustY:1},B=[0,0],M={topLeft:{points:["bl","tl"],overflow:te,offset:[0,-4],targetOffset:B},top:{points:["bc","tc"],overflow:te,offset:[0,-4],targetOffset:B},topRight:{points:["br","tr"],overflow:te,offset:[0,-4],targetOffset:B},bottomLeft:{points:["tl","bl"],overflow:te,offset:[0,4],targetOffset:B},bottom:{points:["tc","bc"],overflow:te,offset:[0,4],targetOffset:B},bottomRight:{points:["tr","br"],overflow:te,offset:[0,4],targetOffset:B}},W=M,V=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function b(j,be){var Ee,xe=j.arrow,ce=xe===void 0?!1:xe,ee=j.prefixCls,Z=ee===void 0?"rc-dropdown":ee,me=j.transitionName,P=j.animation,se=j.align,X=j.placement,v=X===void 0?"bottomLeft":X,E=j.placements,K=E===void 0?W:E,de=j.getPopupContainer,Ne=j.showAction,Ue=j.hideAction,ke=j.overlayClassName,Ve=j.overlayStyle,ht=j.visible,pt=j.trigger,st=pt===void 0?["hover"]:pt,Ft=j.autoFocus,Yt=j.overlay,en=j.children,Ut=j.onVisibleChange,ut=(0,ye.Z)(j,V),Et=a.useState(),oe=(0,Q.Z)(Et,2),ve=oe[0],ie=oe[1],Y="visible"in j?ht:ve,Ae=a.useRef(null),$=a.useRef(null),R=a.useRef(null);a.useImperativeHandle(be,function(){return Ae.current});var I=function(rt){ie(rt),Ut==null||Ut(rt)};x({visible:Y,triggerRef:R,onVisibleChange:I,autoFocus:Ft,overlayRef:$});var le=function(rt){var Ye=j.onOverlayClick;ie(!1),Ye&&Ye(rt)},re=function(){return a.createElement(L,{ref:$,overlay:Yt,prefixCls:Z,arrow:ce})},J=function(){return typeof Yt=="function"?re:re()},Ce=function(){var rt=j.minOverlayWidthMatchTrigger,Ye=j.alignPoint;return"minOverlayWidthMatchTrigger"in j?rt:!Ye},We=function(){var rt=j.openClassName;return rt!==void 0?rt:"".concat(Z,"-open")},Pe=a.cloneElement(en,{className:S()((Ee=en.props)===null||Ee===void 0?void 0:Ee.className,Y&&We()),ref:(0,pe.Yr)(en)?(0,pe.sQ)(R,en.ref):void 0}),Be=Ue;return!Be&&st.indexOf("contextMenu")!==-1&&(Be=["click"]),a.createElement(U.Z,(0,z.Z)({builtinPlacements:K},ut,{prefixCls:Z,ref:Ae,popupClassName:S()(ke,(0,N.Z)({},"".concat(Z,"-show-arrow"),ce)),popupStyle:Ve,action:st,showAction:Ne,hideAction:Be,popupPlacement:v,popupAlign:se,popupTransitionName:me,popupAnimation:P,popupVisible:Y,stretch:Ce()?"minWidth":"",popup:J(),onPopupVisibleChange:I,onPopupClick:le,getPopupContainer:de}),Pe)}var T=a.forwardRef(b),G=T},93681:function(Gt,He,h){"use strict";h.r(He),h.d(He,{BaseInput:function(){return C},default:function(){return M}});var z=h(96663),N=h(44127),Q=h(90493),ye=h(20135),U=h(92310),H=h.n(U),S=h(59301),pe=h(5643),a=function(V){var b,T,G=V.inputElement,j=V.prefixCls,be=V.prefix,Ee=V.suffix,xe=V.addonBefore,ce=V.addonAfter,ee=V.className,Z=V.style,me=V.disabled,P=V.readOnly,se=V.focused,X=V.triggerFocus,v=V.allowClear,E=V.value,K=V.handleReset,de=V.hidden,Ne=V.classes,Ue=V.classNames,ke=V.dataAttrs,Ve=V.styles,ht=V.components,pt=(ht==null?void 0:ht.affixWrapper)||"span",st=(ht==null?void 0:ht.groupWrapper)||"span",Ft=(ht==null?void 0:ht.wrapper)||"span",Yt=(ht==null?void 0:ht.groupAddon)||"span",en=(0,S.useRef)(null),Ut=function(re){var J;(J=en.current)!==null&&J!==void 0&&J.contains(re.target)&&(X==null||X())},ut=function(){var re;if(!v)return null;var J=!me&&!P&&E,Ce="".concat(j,"-clear-icon"),We=(0,ye.Z)(v)==="object"&&v!==null&&v!==void 0&&v.clearIcon?v.clearIcon:"\u2716";return S.createElement("span",{onClick:K,onMouseDown:function(Be){return Be.preventDefault()},className:H()(Ce,(re={},(0,Q.Z)(re,"".concat(Ce,"-hidden"),!J),(0,Q.Z)(re,"".concat(Ce,"-has-suffix"),!!Ee),re)),role:"button",tabIndex:-1},We)},Et=(0,S.cloneElement)(G,{value:E,hidden:de,className:H()((b=G.props)===null||b===void 0?void 0:b.className,!(0,pe.X3)(V)&&!(0,pe.He)(V)&&ee)||null,style:(0,N.Z)((0,N.Z)({},(T=G.props)===null||T===void 0?void 0:T.style),!(0,pe.X3)(V)&&!(0,pe.He)(V)?Z:{})});if((0,pe.X3)(V)){var oe,ve="".concat(j,"-affix-wrapper"),ie=H()(ve,(oe={},(0,Q.Z)(oe,"".concat(ve,"-disabled"),me),(0,Q.Z)(oe,"".concat(ve,"-focused"),se),(0,Q.Z)(oe,"".concat(ve,"-readonly"),P),(0,Q.Z)(oe,"".concat(ve,"-input-with-clear-btn"),Ee&&v&&E),oe),!(0,pe.He)(V)&&ee,Ne==null?void 0:Ne.affixWrapper,Ue==null?void 0:Ue.affixWrapper),Y=(Ee||v)&&S.createElement("span",{className:H()("".concat(j,"-suffix"),Ue==null?void 0:Ue.suffix),style:Ve==null?void 0:Ve.suffix},ut(),Ee);Et=S.createElement(pt,(0,z.Z)({className:ie,style:(0,N.Z)((0,N.Z)({},(0,pe.He)(V)?void 0:Z),Ve==null?void 0:Ve.affixWrapper),hidden:!(0,pe.He)(V)&&de,onClick:Ut},ke==null?void 0:ke.affixWrapper,{ref:en}),be&&S.createElement("span",{className:H()("".concat(j,"-prefix"),Ue==null?void 0:Ue.prefix),style:Ve==null?void 0:Ve.prefix},be),(0,S.cloneElement)(G,{value:E,hidden:null}),Y)}if((0,pe.He)(V)){var Ae="".concat(j,"-group"),$="".concat(Ae,"-addon"),R=H()("".concat(j,"-wrapper"),Ae,Ne==null?void 0:Ne.wrapper),I=H()("".concat(j,"-group-wrapper"),ee,Ne==null?void 0:Ne.group);return S.createElement(st,{className:I,style:Z,hidden:de},S.createElement(Ft,{className:R},xe&&S.createElement(Yt,{className:$},xe),(0,S.cloneElement)(Et,{hidden:null}),ce&&S.createElement(Yt,{className:$},ce)))}return Et},C=a,O=h(19127),m=h(72071),u=h(6620),x=h(18929),y=h(2738),L=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],te=(0,S.forwardRef)(function(W,V){var b=W.autoComplete,T=W.onChange,G=W.onFocus,j=W.onBlur,be=W.onPressEnter,Ee=W.onKeyDown,xe=W.prefixCls,ce=xe===void 0?"rc-input":xe,ee=W.disabled,Z=W.htmlSize,me=W.className,P=W.maxLength,se=W.suffix,X=W.showCount,v=W.type,E=v===void 0?"text":v,K=W.classes,de=W.classNames,Ne=W.styles,Ue=(0,u.Z)(W,L),ke=(0,x.Z)(W.defaultValue,{value:W.value}),Ve=(0,m.Z)(ke,2),ht=Ve[0],pt=Ve[1],st=(0,S.useState)(!1),Ft=(0,m.Z)(st,2),Yt=Ft[0],en=Ft[1],Ut=(0,S.useRef)(null),ut=function(I){Ut.current&&(0,pe.nH)(Ut.current,I)};(0,S.useImperativeHandle)(V,function(){return{focus:ut,blur:function(){var I;(I=Ut.current)===null||I===void 0||I.blur()},setSelectionRange:function(I,le,re){var J;(J=Ut.current)===null||J===void 0||J.setSelectionRange(I,le,re)},select:function(){var I;(I=Ut.current)===null||I===void 0||I.select()},input:Ut.current}}),(0,S.useEffect)(function(){en(function(R){return R&&ee?!1:R})},[ee]);var Et=function(I){W.value===void 0&&pt(I.target.value),Ut.current&&(0,pe.rJ)(Ut.current,I,T)},oe=function(I){be&&I.key==="Enter"&&be(I),Ee==null||Ee(I)},ve=function(I){en(!0),G==null||G(I)},ie=function(I){en(!1),j==null||j(I)},Y=function(I){pt(""),ut(),Ut.current&&(0,pe.rJ)(Ut.current,I,T)},Ae=function(){var I=(0,y.Z)(W,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return S.createElement("input",(0,z.Z)({autoComplete:b},I,{onChange:Et,onFocus:ve,onBlur:ie,onKeyDown:oe,className:H()(ce,(0,Q.Z)({},"".concat(ce,"-disabled"),ee),de==null?void 0:de.input),style:Ne==null?void 0:Ne.input,ref:Ut,size:Z,type:E}))},$=function(){var I=Number(P)>0;if(se||X){var le=(0,pe.D7)(ht),re=(0,O.Z)(le).length,J=(0,ye.Z)(X)==="object"?X.formatter({value:le,count:re,maxLength:P}):"".concat(re).concat(I?" / ".concat(P):"");return S.createElement(S.Fragment,null,!!X&&S.createElement("span",{className:H()("".concat(ce,"-show-count-suffix"),(0,Q.Z)({},"".concat(ce,"-show-count-has-suffix"),!!se),de==null?void 0:de.count),style:(0,N.Z)({},Ne==null?void 0:Ne.count)},J),se)}return null};return S.createElement(C,(0,z.Z)({},Ue,{prefixCls:ce,className:me,inputElement:Ae(),handleReset:Y,value:(0,pe.D7)(ht),focused:Yt,triggerFocus:ut,suffix:$(),disabled:ee,classes:K,classNames:de,styles:Ne}))}),B=te,M=B},5643:function(Gt,He,h){"use strict";h.d(He,{D7:function(){return U},He:function(){return z},X3:function(){return N},nH:function(){return ye},rJ:function(){return Q}});function z(H){return!!(H.addonBefore||H.addonAfter)}function N(H){return!!(H.prefix||H.suffix||H.allowClear)}function Q(H,S,pe,a){if(pe){var C=S;if(S.type==="click"){var O=H.cloneNode(!0);C=Object.create(S,{target:{value:O},currentTarget:{value:O}}),O.value="",pe(C);return}if(a!==void 0){C=Object.create(S,{target:{value:H},currentTarget:{value:H}}),H.value=a,pe(C);return}pe(C)}}function ye(H,S){if(H){H.focus(S);var pe=S||{},a=pe.cursor;if(a){var C=H.value.length;switch(a){case"start":H.setSelectionRange(0,0);break;case"end":H.setSelectionRange(C,C);break;default:H.setSelectionRange(0,C)}}}}function U(H){return typeof H=="undefined"||H===null?"":String(H)}},15285:function(Gt,He,h){"use strict";h.d(He,{iz:function(){return An},ck:function(){return tt},BW:function(){return hn},sN:function(){return tt},Wd:function(){return St},ZP:function(){return Qt},Xl:function(){return Ee}});var z=h(96663),N=h(90493),Q=h(44127),ye=h(19127),U=h(72071),H=h(6620),S=h(92310),pe=h.n(S),a=h(11780),C=h(18929),O=h(13697),m=h(48736),u=h(59301),x=h(4676),y=u.createContext(null);function L(ct,ft){return ct===void 0?null:"".concat(ct,"-").concat(ft)}function te(ct){var ft=u.useContext(y);return L(ft,ct)}var B=h(80547),M=["children","locked"],W=u.createContext(null);function V(ct,ft){var Tt=(0,Q.Z)({},ct);return Object.keys(ft).forEach(function(Nt){var Dt=ft[Nt];Dt!==void 0&&(Tt[Nt]=Dt)}),Tt}function b(ct){var ft=ct.children,Tt=ct.locked,Nt=(0,H.Z)(ct,M),Dt=u.useContext(W),Ht=(0,B.Z)(function(){return V(Dt,Nt)},[Dt,Nt],function(Bt,dn){return!Tt&&(Bt[0]!==dn[0]||!(0,O.Z)(Bt[1],dn[1],!0))});return u.createElement(W.Provider,{value:Ht},ft)}var T=[],G=u.createContext(null);function j(){return u.useContext(G)}var be=u.createContext(T);function Ee(ct){var ft=u.useContext(be);return u.useMemo(function(){return ct!==void 0?[].concat((0,ye.Z)(ft),[ct]):ft},[ft,ct])}var xe=u.createContext(null),ce=u.createContext({}),ee=ce,Z=h(29194);function me(ct){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,Z.Z)(ct)){var Tt=ct.nodeName.toLowerCase(),Nt=["input","select","textarea","button"].includes(Tt)||ct.isContentEditable||Tt==="a"&&!!ct.getAttribute("href"),Dt=ct.getAttribute("tabindex"),Ht=Number(Dt),Bt=null;return Dt&&!Number.isNaN(Ht)?Bt=Ht:Nt&&Bt===null&&(Bt=0),Nt&&ct.disabled&&(Bt=null),Bt!==null&&(Bt>=0||ft&&Bt<0)}return!1}function P(ct){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Tt=(0,ye.Z)(ct.querySelectorAll("*")).filter(function(Nt){return me(Nt,ft)});return me(ct,ft)&&Tt.unshift(ct),Tt}var se=null;function X(){se=document.activeElement}function v(){se=null}function E(){if(se)try{se.focus()}catch(ct){}}function K(ct,ft){if(ft.keyCode===9){var Tt=P(ct),Nt=Tt[ft.shiftKey?0:Tt.length-1],Dt=Nt===document.activeElement||ct===document.activeElement;if(Dt){var Ht=Tt[ft.shiftKey?Tt.length-1:0];Ht.focus(),ft.preventDefault()}}}var de=h(10228),Ne=h(16089),Ue=de.Z.LEFT,ke=de.Z.RIGHT,Ve=de.Z.UP,ht=de.Z.DOWN,pt=de.Z.ENTER,st=de.Z.ESC,Ft=de.Z.HOME,Yt=de.Z.END,en=[Ve,ht,Ue,ke];function Ut(ct,ft,Tt,Nt){var Dt,Ht,Bt,dn,xn="prev",Rn="next",Qn="children",nr="parent";if(ct==="inline"&&Nt===pt)return{inlineTrigger:!0};var ar=(Dt={},(0,N.Z)(Dt,Ve,xn),(0,N.Z)(Dt,ht,Rn),Dt),_n=(Ht={},(0,N.Z)(Ht,Ue,Tt?Rn:xn),(0,N.Z)(Ht,ke,Tt?xn:Rn),(0,N.Z)(Ht,ht,Qn),(0,N.Z)(Ht,pt,Qn),Ht),yn=(Bt={},(0,N.Z)(Bt,Ve,xn),(0,N.Z)(Bt,ht,Rn),(0,N.Z)(Bt,pt,Qn),(0,N.Z)(Bt,st,nr),(0,N.Z)(Bt,Ue,Tt?Qn:nr),(0,N.Z)(Bt,ke,Tt?nr:Qn),Bt),gr={inline:ar,horizontal:_n,vertical:yn,inlineSub:ar,horizontalSub:yn,verticalSub:yn},Gn=(dn=gr["".concat(ct).concat(ft?"":"Sub")])===null||dn===void 0?void 0:dn[Nt];switch(Gn){case xn:return{offset:-1,sibling:!0};case Rn:return{offset:1,sibling:!0};case nr:return{offset:-1,sibling:!1};case Qn:return{offset:1,sibling:!1};default:return null}}function ut(ct){for(var ft=ct;ft;){if(ft.getAttribute("data-menu-list"))return ft;ft=ft.parentElement}return null}function Et(ct,ft){for(var Tt=ct||document.activeElement;Tt;){if(ft.has(Tt))return Tt;Tt=Tt.parentElement}return null}function oe(ct,ft){var Tt=P(ct,!0);return Tt.filter(function(Nt){return ft.has(Nt)})}function ve(ct,ft,Tt){var Nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!ct)return null;var Dt=oe(ct,ft),Ht=Dt.length,Bt=Dt.findIndex(function(dn){return Tt===dn});return Nt<0?Bt===-1?Bt=Ht-1:Bt-=1:Nt>0&&(Bt+=1),Bt=(Bt+Ht)%Ht,Dt[Bt]}var ie=function(ft,Tt){var Nt=new Set,Dt=new Map,Ht=new Map;return ft.forEach(function(Bt){var dn=document.querySelector("[data-menu-id='".concat(L(Tt,Bt),"']"));dn&&(Nt.add(dn),Ht.set(dn,Bt),Dt.set(Bt,dn))}),{elements:Nt,key2element:Dt,element2key:Ht}};function Y(ct,ft,Tt,Nt,Dt,Ht,Bt,dn,xn,Rn){var Qn=u.useRef(),nr=u.useRef();nr.current=ft;var ar=function(){Ne.Z.cancel(Qn.current)};return u.useEffect(function(){return function(){ar()}},[]),function(_n){var yn=_n.which;if([].concat(en,[pt,st,Ft,Yt]).includes(yn)){var gr=Ht(),Gn=ie(gr,Nt),Tr=Gn,Jn=Tr.elements,or=Tr.key2element,yr=Tr.element2key,rr=or.get(ft),Ir=Et(rr,Jn),Jr=yr.get(Ir),Xn=Ut(ct,Bt(Jr,!0).length===1,Tt,yn);if(!Xn&&yn!==Ft&&yn!==Yt)return;(en.includes(yn)||[Ft,Yt].includes(yn))&&_n.preventDefault();var En=function(vr){if(vr){var Kr=vr,zn=vr.querySelector("a");zn!=null&&zn.getAttribute("href")&&(Kr=zn);var Sn=yr.get(vr);dn(Sn),ar(),Qn.current=(0,Ne.Z)(function(){nr.current===Sn&&Kr.focus()})}};if([Ft,Yt].includes(yn)||Xn.sibling||!Ir){var it;!Ir||ct==="inline"?it=Dt.current:it=ut(Ir);var Fn,lr=oe(it,Jn);yn===Ft?Fn=lr[0]:yn===Yt?Fn=lr[lr.length-1]:Fn=ve(it,Jn,Ir,Xn.offset),En(Fn)}else if(Xn.inlineTrigger)xn(Jr);else if(Xn.offset>0)xn(Jr,!0),ar(),Qn.current=(0,Ne.Z)(function(){Gn=ie(gr,Nt);var Ur=Ir.getAttribute("aria-controls"),vr=document.getElementById(Ur),Kr=ve(vr,Gn.elements);En(Kr)},5);else if(Xn.offset<0){var Cr=Bt(Jr,!0),Dr=Cr[Cr.length-2],Mr=or.get(Dr);xn(Dr,!1),En(Mr)}}Rn==null||Rn(_n)}}function Ae(ct){Promise.resolve().then(ct)}var $="__RC_UTIL_PATH_SPLIT__",R=function(ft){return ft.join($)},I=function(ft){return ft.split($)},le="rc-menu-more";function re(){var ct=u.useState({}),ft=(0,U.Z)(ct,2),Tt=ft[1],Nt=(0,u.useRef)(new Map),Dt=(0,u.useRef)(new Map),Ht=u.useState([]),Bt=(0,U.Z)(Ht,2),dn=Bt[0],xn=Bt[1],Rn=(0,u.useRef)(0),Qn=(0,u.useRef)(!1),nr=function(){Qn.current||Tt({})},ar=(0,u.useCallback)(function(or,yr){var rr=R(yr);Dt.current.set(rr,or),Nt.current.set(or,rr),Rn.current+=1;var Ir=Rn.current;Ae(function(){Ir===Rn.current&&nr()})},[]),_n=(0,u.useCallback)(function(or,yr){var rr=R(yr);Dt.current.delete(rr),Nt.current.delete(or)},[]),yn=(0,u.useCallback)(function(or){xn(or)},[]),gr=(0,u.useCallback)(function(or,yr){var rr=Nt.current.get(or)||"",Ir=I(rr);return yr&&dn.includes(Ir[0])&&Ir.unshift(le),Ir},[dn]),Gn=(0,u.useCallback)(function(or,yr){return or.some(function(rr){var Ir=gr(rr,!0);return Ir.includes(yr)})},[gr]),Tr=function(){var yr=(0,ye.Z)(Nt.current.keys());return dn.length&&yr.push(le),yr},Jn=(0,u.useCallback)(function(or){var yr="".concat(Nt.current.get(or)).concat($),rr=new Set;return(0,ye.Z)(Dt.current.keys()).forEach(function(Ir){Ir.startsWith(yr)&&rr.add(Dt.current.get(Ir))}),rr},[]);return u.useEffect(function(){return function(){Qn.current=!0}},[]),{registerPath:ar,unregisterPath:_n,refreshOverflowKeys:yn,isSubPathKey:Gn,getKeyPath:gr,getKeys:Tr,getSubPathKeys:Jn}}function J(ct){var ft=u.useRef(ct);ft.current=ct;var Tt=u.useCallback(function(){for(var Nt,Dt=arguments.length,Ht=new Array(Dt),Bt=0;Bt<Dt;Bt++)Ht[Bt]=arguments[Bt];return(Nt=ft.current)===null||Nt===void 0?void 0:Nt.call.apply(Nt,[ft].concat(Ht))},[]);return ct?Tt:void 0}var Ce=Math.random().toFixed(5).toString().slice(2),We=0;function Pe(ct){var ft=(0,C.Z)(ct,{value:ct}),Tt=(0,U.Z)(ft,2),Nt=Tt[0],Dt=Tt[1];return u.useEffect(function(){We+=1;var Ht="".concat(Ce,"-").concat(We);Dt("rc-menu-uuid-".concat(Ht))},[]),Nt}var Be=h(52884),Xe=h(95727),rt=h(65711),Ye=h(85745),vt=h(2738),wt=h(8654);function mt(ct,ft,Tt,Nt){var Dt=u.useContext(W),Ht=Dt.activeKey,Bt=Dt.onActive,dn=Dt.onInactive,xn={active:Ht===ct};return ft||(xn.onMouseEnter=function(Rn){Tt==null||Tt({key:ct,domEvent:Rn}),Bt(ct)},xn.onMouseLeave=function(Rn){Nt==null||Nt({key:ct,domEvent:Rn}),dn(ct)}),xn}function Pt(ct){var ft=u.useContext(W),Tt=ft.mode,Nt=ft.rtl,Dt=ft.inlineIndent;if(Tt!=="inline")return null;var Ht=ct;return Nt?{paddingRight:Ht*Dt}:{paddingLeft:Ht*Dt}}function At(ct){var ft=ct.icon,Tt=ct.props,Nt=ct.children,Dt;return ft===null||ft===!1?null:(typeof ft=="function"?Dt=u.createElement(ft,(0,Q.Z)({},Tt)):typeof ft!="boolean"&&(Dt=ft),Dt||Nt||null)}var w=["item"];function A(ct){var ft=ct.item,Tt=(0,H.Z)(ct,w);return Object.defineProperty(Tt,"item",{get:function(){return(0,m.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),ft}}),Tt}var gt=["title","attribute","elementRef"],fe=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Me=["active"],Dn=function(ct){(0,rt.Z)(Tt,ct);var ft=(0,Ye.Z)(Tt);function Tt(){return(0,Be.Z)(this,Tt),ft.apply(this,arguments)}return(0,Xe.Z)(Tt,[{key:"render",value:function(){var Dt=this.props,Ht=Dt.title,Bt=Dt.attribute,dn=Dt.elementRef,xn=(0,H.Z)(Dt,gt),Rn=(0,vt.Z)(xn,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,m.ZP)(!Bt,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),u.createElement(a.Z.Item,(0,z.Z)({},Bt,{title:typeof Ht=="string"?Ht:void 0},Rn,{ref:dn}))}}]),Tt}(u.Component),je=u.forwardRef(function(ct,ft){var Tt,Nt=ct.style,Dt=ct.className,Ht=ct.eventKey,Bt=ct.warnKey,dn=ct.disabled,xn=ct.itemIcon,Rn=ct.children,Qn=ct.role,nr=ct.onMouseEnter,ar=ct.onMouseLeave,_n=ct.onClick,yn=ct.onKeyDown,gr=ct.onFocus,Gn=(0,H.Z)(ct,fe),Tr=te(Ht),Jn=u.useContext(W),or=Jn.prefixCls,yr=Jn.onItemClick,rr=Jn.disabled,Ir=Jn.overflowDisabled,Jr=Jn.itemIcon,Xn=Jn.selectedKeys,En=Jn.onActive,it=u.useContext(ee),Fn=it._internalRenderMenuItem,lr="".concat(or,"-item"),Cr=u.useRef(),Dr=u.useRef(),Mr=rr||dn,Ur=(0,wt.x1)(ft,Dr),vr=Ee(Ht),Kr=function(ei){return{key:Ht,keyPath:(0,ye.Z)(vr).reverse(),item:Cr.current,domEvent:ei}},zn=xn||Jr,Sn=mt(Ht,Mr,nr,ar),qn=Sn.active,Lr=(0,H.Z)(Sn,Me),Zr=Xn.includes(Ht),Ci=Pt(vr.length),Un=function(ei){if(!Mr){var gi=Kr(ei);_n==null||_n(A(gi)),yr(gi)}},Vr=function(ei){if(yn==null||yn(ei),ei.which===de.Z.ENTER){var gi=Kr(ei);_n==null||_n(A(gi)),yr(gi)}},jr=function(ei){En(Ht),gr==null||gr(ei)},oi={};ct.role==="option"&&(oi["aria-selected"]=Zr);var Ai=u.createElement(Dn,(0,z.Z)({ref:Cr,elementRef:Ur,role:Qn===null?"none":Qn||"menuitem",tabIndex:dn?null:-1,"data-menu-id":Ir&&Tr?null:Tr},Gn,Lr,oi,{component:"li","aria-disabled":dn,style:(0,Q.Z)((0,Q.Z)({},Ci),Nt),className:pe()(lr,(Tt={},(0,N.Z)(Tt,"".concat(lr,"-active"),qn),(0,N.Z)(Tt,"".concat(lr,"-selected"),Zr),(0,N.Z)(Tt,"".concat(lr,"-disabled"),Mr),Tt),Dt),onClick:Un,onKeyDown:Vr,onFocus:jr}),Rn,u.createElement(At,{props:(0,Q.Z)((0,Q.Z)({},ct),{},{isSelected:Zr}),icon:zn}));return Fn&&(Ai=Fn(Ai,ct,{selected:Zr})),Ai});function nt(ct,ft){var Tt=ct.eventKey,Nt=j(),Dt=Ee(Tt);return u.useEffect(function(){if(Nt)return Nt.registerPath(Tt,Dt),function(){Nt.unregisterPath(Tt,Dt)}},[Dt]),Nt?null:u.createElement(je,(0,z.Z)({},ct,{ref:ft}))}var tt=u.forwardRef(nt),_e=["className","children"],De=function(ft,Tt){var Nt=ft.className,Dt=ft.children,Ht=(0,H.Z)(ft,_e),Bt=u.useContext(W),dn=Bt.prefixCls,xn=Bt.mode,Rn=Bt.rtl;return u.createElement("ul",(0,z.Z)({className:pe()(dn,Rn&&"".concat(dn,"-rtl"),"".concat(dn,"-sub"),"".concat(dn,"-").concat(xn==="inline"?"inline":"vertical"),Nt),role:"menu"},Ht,{"data-menu-list":!0,ref:Tt}),Dt)},Fe=u.forwardRef(De);Fe.displayName="SubMenuList";var Qe=Fe,ge=h(11592);function Vt(ct,ft){return(0,ge.Z)(ct).map(function(Tt,Nt){if(u.isValidElement(Tt)){var Dt,Ht,Bt=Tt.key,dn=(Dt=(Ht=Tt.props)===null||Ht===void 0?void 0:Ht.eventKey)!==null&&Dt!==void 0?Dt:Bt,xn=dn==null;xn&&(dn="tmp_key-".concat([].concat((0,ye.Z)(ft),[Nt]).join("-")));var Rn={key:dn,eventKey:dn};return u.cloneElement(Tt,Rn)}return Tt})}var Ze=h(35593),gn={adjustX:1,adjustY:1},In={topLeft:{points:["bl","tl"],overflow:gn},topRight:{points:["br","tr"],overflow:gn},bottomLeft:{points:["tl","bl"],overflow:gn},bottomRight:{points:["tr","br"],overflow:gn},leftTop:{points:["tr","tl"],overflow:gn},leftBottom:{points:["br","bl"],overflow:gn},rightTop:{points:["tl","tr"],overflow:gn},rightBottom:{points:["bl","br"],overflow:gn}},Hn={topLeft:{points:["bl","tl"],overflow:gn},topRight:{points:["br","tr"],overflow:gn},bottomLeft:{points:["tl","bl"],overflow:gn},bottomRight:{points:["tr","br"],overflow:gn},rightTop:{points:["tr","tl"],overflow:gn},rightBottom:{points:["br","bl"],overflow:gn},leftTop:{points:["tl","tr"],overflow:gn},leftBottom:{points:["bl","br"],overflow:gn}},mr=null;function rn(ct,ft,Tt){if(ft)return ft;if(Tt)return Tt[ct]||Tt.other}var vn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Je(ct){var ft=ct.prefixCls,Tt=ct.visible,Nt=ct.children,Dt=ct.popup,Ht=ct.popupStyle,Bt=ct.popupClassName,dn=ct.popupOffset,xn=ct.disabled,Rn=ct.mode,Qn=ct.onVisibleChange,nr=u.useContext(W),ar=nr.getPopupContainer,_n=nr.rtl,yn=nr.subMenuOpenDelay,gr=nr.subMenuCloseDelay,Gn=nr.builtinPlacements,Tr=nr.triggerSubMenuAction,Jn=nr.forceSubMenuRender,or=nr.rootClassName,yr=nr.motion,rr=nr.defaultMotions,Ir=u.useState(!1),Jr=(0,U.Z)(Ir,2),Xn=Jr[0],En=Jr[1],it=_n?(0,Q.Z)((0,Q.Z)({},Hn),Gn):(0,Q.Z)((0,Q.Z)({},In),Gn),Fn=vn[Rn],lr=rn(Rn,yr,rr),Cr=u.useRef(lr);Rn!=="inline"&&(Cr.current=lr);var Dr=(0,Q.Z)((0,Q.Z)({},Cr.current),{},{leavedClassName:"".concat(ft,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Mr=u.useRef();return u.useEffect(function(){return Mr.current=(0,Ne.Z)(function(){En(Tt)}),function(){Ne.Z.cancel(Mr.current)}},[Tt]),u.createElement(Ze.Z,{prefixCls:ft,popupClassName:pe()("".concat(ft,"-popup"),(0,N.Z)({},"".concat(ft,"-rtl"),_n),Bt,or),stretch:Rn==="horizontal"?"minWidth":null,getPopupContainer:ar,builtinPlacements:it,popupPlacement:Fn,popupVisible:Xn,popup:Dt,popupStyle:Ht,popupAlign:dn&&{offset:dn},action:xn?[]:[Tr],mouseEnterDelay:yn,mouseLeaveDelay:gr,onPopupVisibleChange:Qn,forceRender:Jn,popupMotion:Dr,fresh:!0},Nt)}var It=h(77900);function zt(ct){var ft=ct.id,Tt=ct.open,Nt=ct.keyPath,Dt=ct.children,Ht="inline",Bt=u.useContext(W),dn=Bt.prefixCls,xn=Bt.forceSubMenuRender,Rn=Bt.motion,Qn=Bt.defaultMotions,nr=Bt.mode,ar=u.useRef(!1);ar.current=nr===Ht;var _n=u.useState(!ar.current),yn=(0,U.Z)(_n,2),gr=yn[0],Gn=yn[1],Tr=ar.current?Tt:!1;u.useEffect(function(){ar.current&&Gn(!1)},[nr]);var Jn=(0,Q.Z)({},rn(Ht,Rn,Qn));Nt.length>1&&(Jn.motionAppear=!1);var or=Jn.onVisibleChanged;return Jn.onVisibleChanged=function(yr){return!ar.current&&!yr&&Gn(!0),or==null?void 0:or(yr)},gr?null:u.createElement(b,{mode:Ht,locked:!ar.current},u.createElement(It.default,(0,z.Z)({visible:Tr},Jn,{forceRender:xn,removeOnLeave:!1,leavedClassName:"".concat(dn,"-hidden")}),function(yr){var rr=yr.className,Ir=yr.style;return u.createElement(Qe,{id:ft,className:rr,style:Ir},Dt)}))}var Ke=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Oe=["active"],bt=function(ft){var Tt,Nt=ft.style,Dt=ft.className,Ht=ft.title,Bt=ft.eventKey,dn=ft.warnKey,xn=ft.disabled,Rn=ft.internalPopupClose,Qn=ft.children,nr=ft.itemIcon,ar=ft.expandIcon,_n=ft.popupClassName,yn=ft.popupOffset,gr=ft.popupStyle,Gn=ft.onClick,Tr=ft.onMouseEnter,Jn=ft.onMouseLeave,or=ft.onTitleClick,yr=ft.onTitleMouseEnter,rr=ft.onTitleMouseLeave,Ir=(0,H.Z)(ft,Ke),Jr=te(Bt),Xn=u.useContext(W),En=Xn.prefixCls,it=Xn.mode,Fn=Xn.openKeys,lr=Xn.disabled,Cr=Xn.overflowDisabled,Dr=Xn.activeKey,Mr=Xn.selectedKeys,Ur=Xn.itemIcon,vr=Xn.expandIcon,Kr=Xn.onItemClick,zn=Xn.onOpenChange,Sn=Xn.onActive,qn=u.useContext(ee),Lr=qn._internalRenderSubMenuItem,Zr=u.useContext(xe),Ci=Zr.isSubPathKey,Un=Ee(),Vr="".concat(En,"-submenu"),jr=lr||xn,oi=u.useRef(),Ai=u.useRef(),Li=nr!=null?nr:Ur,ei=ar!=null?ar:vr,gi=Fn.includes(Bt),li=!Cr&&gi,Ri=Ci(Mr,Bt),Ii=mt(Bt,jr,yr,rr),ji=Ii.active,Ti=(0,H.Z)(Ii,Oe),Gi=u.useState(!1),$r=(0,U.Z)(Gi,2),aa=$r[0],ga=$r[1],ua=function(Oi){jr||ga(Oi)},vi=function(Oi){ua(!0),Tr==null||Tr({key:Bt,domEvent:Oi})},ca=function(Oi){ua(!1),Jn==null||Jn({key:Bt,domEvent:Oi})},wa=u.useMemo(function(){return ji||(it!=="inline"?aa||Ci([Dr],Bt):!1)},[it,ji,Dr,aa,Bt,Ci]),Pn=Pt(Un.length),Mi=function(Oi){jr||(or==null||or({key:Bt,domEvent:Oi}),it==="inline"&&zn(Bt,!gi))},na=J(function(yi){Gn==null||Gn(A(yi)),Kr(yi)}),ur=function(Oi){it!=="inline"&&zn(Bt,Oi)},_r=function(){Sn(Bt)},cr=Jr&&"".concat(Jr,"-popup"),Zn=u.createElement("div",(0,z.Z)({role:"menuitem",style:Pn,className:"".concat(Vr,"-title"),tabIndex:jr?null:-1,ref:oi,title:typeof Ht=="string"?Ht:null,"data-menu-id":Cr&&Jr?null:Jr,"aria-expanded":li,"aria-haspopup":!0,"aria-controls":cr,"aria-disabled":jr,onClick:Mi,onFocus:_r},Ti),Ht,u.createElement(At,{icon:it!=="horizontal"?ei:void 0,props:(0,Q.Z)((0,Q.Z)({},ft),{},{isOpen:li,isSubMenu:!0})},u.createElement("i",{className:"".concat(Vr,"-arrow")}))),Nr=u.useRef(it);if(it!=="inline"&&Un.length>1?Nr.current="vertical":Nr.current=it,!Cr){var Yr=Nr.current;Zn=u.createElement(Je,{mode:Yr,prefixCls:Vr,visible:!Rn&&li&&it!=="inline",popupClassName:_n,popupOffset:yn,popupStyle:gr,popup:u.createElement(b,{mode:Yr==="horizontal"?"vertical":Yr},u.createElement(Qe,{id:cr,ref:Ai},Qn)),disabled:jr,onVisibleChange:ur},Zn)}var Ni=u.createElement(a.Z.Item,(0,z.Z)({role:"none"},Ir,{component:"li",style:Nt,className:pe()(Vr,"".concat(Vr,"-").concat(it),Dt,(Tt={},(0,N.Z)(Tt,"".concat(Vr,"-open"),li),(0,N.Z)(Tt,"".concat(Vr,"-active"),wa),(0,N.Z)(Tt,"".concat(Vr,"-selected"),Ri),(0,N.Z)(Tt,"".concat(Vr,"-disabled"),jr),Tt)),onMouseEnter:vi,onMouseLeave:ca}),Zn,!Cr&&u.createElement(zt,{id:cr,open:li,keyPath:Un},Qn));return Lr&&(Ni=Lr(Ni,ft,{selected:Ri,active:wa,open:li,disabled:jr})),u.createElement(b,{onItemClick:na,mode:it==="horizontal"?"vertical":it,itemIcon:Li,expandIcon:ei},Ni)};function St(ct){var ft=ct.eventKey,Tt=ct.children,Nt=Ee(ft),Dt=Vt(Tt,Nt),Ht=j();u.useEffect(function(){if(Ht)return Ht.registerPath(ft,Nt),function(){Ht.unregisterPath(ft,Nt)}},[Nt]);var Bt;return Ht?Bt=Dt:Bt=u.createElement(bt,ct,Dt),u.createElement(be.Provider,{value:Nt},Bt)}var qt=h(20135),Wt=["className","title","eventKey","children"],on=["children"],Xt=function(ft){var Tt=ft.className,Nt=ft.title,Dt=ft.eventKey,Ht=ft.children,Bt=(0,H.Z)(ft,Wt),dn=u.useContext(W),xn=dn.prefixCls,Rn="".concat(xn,"-item-group");return u.createElement("li",(0,z.Z)({role:"presentation"},Bt,{onClick:function(nr){return nr.stopPropagation()},className:pe()(Rn,Tt)}),u.createElement("div",{role:"presentation",className:"".concat(Rn,"-title"),title:typeof Nt=="string"?Nt:void 0},Nt),u.createElement("ul",{role:"group",className:"".concat(Rn,"-list")},Ht))};function hn(ct){var ft=ct.children,Tt=(0,H.Z)(ct,on),Nt=Ee(Tt.eventKey),Dt=Vt(ft,Nt),Ht=j();return Ht?Dt:u.createElement(Xt,(0,vt.Z)(Tt,["warnKey"]),Dt)}function An(ct){var ft=ct.className,Tt=ct.style,Nt=u.useContext(W),Dt=Nt.prefixCls,Ht=j();return Ht?null:u.createElement("li",{role:"separator",className:pe()("".concat(Dt,"-item-divider"),ft),style:Tt})}var $t=["label","children","key","type"];function Rt(ct){return(ct||[]).map(function(ft,Tt){if(ft&&(0,qt.Z)(ft)==="object"){var Nt=ft,Dt=Nt.label,Ht=Nt.children,Bt=Nt.key,dn=Nt.type,xn=(0,H.Z)(Nt,$t),Rn=Bt!=null?Bt:"tmp-".concat(Tt);return Ht||dn==="group"?dn==="group"?u.createElement(hn,(0,z.Z)({key:Rn},xn,{title:Dt}),Rt(Ht)):u.createElement(St,(0,z.Z)({key:Rn},xn,{title:Dt}),Rt(Ht)):dn==="divider"?u.createElement(An,(0,z.Z)({key:Rn},xn)):u.createElement(tt,(0,z.Z)({key:Rn},xn),Dt)}return null}).filter(function(ft){return ft})}function an(ct,ft,Tt){var Nt=ct;return ft&&(Nt=Rt(ft)),Vt(Nt,Tt)}var tn=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],cn=[],bn=u.forwardRef(function(ct,ft){var Tt,Nt,Dt=ct,Ht=Dt.prefixCls,Bt=Ht===void 0?"rc-menu":Ht,dn=Dt.rootClassName,xn=Dt.style,Rn=Dt.className,Qn=Dt.tabIndex,nr=Qn===void 0?0:Qn,ar=Dt.items,_n=Dt.children,yn=Dt.direction,gr=Dt.id,Gn=Dt.mode,Tr=Gn===void 0?"vertical":Gn,Jn=Dt.inlineCollapsed,or=Dt.disabled,yr=Dt.disabledOverflow,rr=Dt.subMenuOpenDelay,Ir=rr===void 0?.1:rr,Jr=Dt.subMenuCloseDelay,Xn=Jr===void 0?.1:Jr,En=Dt.forceSubMenuRender,it=Dt.defaultOpenKeys,Fn=Dt.openKeys,lr=Dt.activeKey,Cr=Dt.defaultActiveFirst,Dr=Dt.selectable,Mr=Dr===void 0?!0:Dr,Ur=Dt.multiple,vr=Ur===void 0?!1:Ur,Kr=Dt.defaultSelectedKeys,zn=Dt.selectedKeys,Sn=Dt.onSelect,qn=Dt.onDeselect,Lr=Dt.inlineIndent,Zr=Lr===void 0?24:Lr,Ci=Dt.motion,Un=Dt.defaultMotions,Vr=Dt.triggerSubMenuAction,jr=Vr===void 0?"hover":Vr,oi=Dt.builtinPlacements,Ai=Dt.itemIcon,Li=Dt.expandIcon,ei=Dt.overflowedIndicator,gi=ei===void 0?"...":ei,li=Dt.overflowedIndicatorPopupClassName,Ri=Dt.getPopupContainer,Ii=Dt.onClick,ji=Dt.onOpenChange,Ti=Dt.onKeyDown,Gi=Dt.openAnimation,$r=Dt.openTransitionName,aa=Dt._internalRenderMenuItem,ga=Dt._internalRenderSubMenuItem,ua=(0,H.Z)(Dt,tn),vi=u.useMemo(function(){return an(_n,ar,cn)},[_n,ar]),ca=u.useState(!1),wa=(0,U.Z)(ca,2),Pn=wa[0],Mi=wa[1],na=u.useRef(),ur=Pe(gr),_r=yn==="rtl",cr=(0,C.Z)(it,{value:Fn,postState:function(_i){return _i||cn}}),Zn=(0,U.Z)(cr,2),Nr=Zn[0],Yr=Zn[1],Ni=function(_i){var mi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Qi(){Yr(_i),ji==null||ji(_i)}mi?(0,x.flushSync)(Qi):Qi()},yi=u.useState(Nr),Oi=(0,U.Z)(yi,2),Bi=Oi[0],va=Oi[1],Ca=u.useRef(!1),Za=u.useMemo(function(){return(Tr==="inline"||Tr==="vertical")&&Jn?["vertical",Jn]:[Tr,!1]},[Tr,Jn]),da=(0,U.Z)(Za,2),fa=da[0],dr=da[1],sr=fa==="inline",Xr=u.useState(fa),zi=(0,U.Z)(Xr,2),ui=zi[0],sa=zi[1],ja=u.useState(dr),Ka=(0,U.Z)(ja,2),ya=Ka[0],as=Ka[1];u.useEffect(function(){sa(fa),as(dr),Ca.current&&(sr?Yr(Bi):Ni(cn))},[fa,dr]);var ss=u.useState(0),os=(0,U.Z)(ss,2),ts=os[0],ls=os[1],Aa=ts>=vi.length-1||ui!=="horizontal"||yr;u.useEffect(function(){sr&&va(Nr)},[Nr]),u.useEffect(function(){return Ca.current=!0,function(){Ca.current=!1}},[]);var Xi=re(),us=Xi.registerPath,ns=Xi.unregisterPath,ba=Xi.refreshOverflowKeys,xa=Xi.isSubPathKey,ti=Xi.getKeyPath,Br=Xi.getKeys,ia=Xi.getSubPathKeys,Ui=u.useMemo(function(){return{registerPath:us,unregisterPath:ns}},[us,ns]),Pi=u.useMemo(function(){return{isSubPathKey:xa}},[xa]);u.useEffect(function(){ba(Aa?cn:vi.slice(ts+1).map(function(wi){return wi.key}))},[ts,Aa]);var oa=(0,C.Z)(lr||Cr&&((Tt=vi[0])===null||Tt===void 0?void 0:Tt.key),{value:lr}),pi=(0,U.Z)(oa,2),Oa=pi[0],la=pi[1],La=J(function(wi){la(wi)}),Fa=J(function(){la(void 0)});(0,u.useImperativeHandle)(ft,function(){return{list:na.current,focus:function(_i){var mi,Qi=Br(),qi=ie(Qi,ur),fs=qi.elements,Qa=qi.key2element,hs=qi.element2key,Ls=oe(na.current,fs),ps=Oa!=null?Oa:Ls[0]?hs.get(Ls[0]):(mi=vi.find(function(As){return!As.props.disabled}))===null||mi===void 0?void 0:mi.key,ms=Qa.get(ps);if(ps&&ms){var wn;ms==null||(wn=ms.focus)===null||wn===void 0||wn.call(ms,_i)}}}});var Si=(0,C.Z)(Kr||[],{value:zn,postState:function(_i){return Array.isArray(_i)?_i:_i==null?cn:[_i]}}),vs=(0,U.Z)(Si,2),Ta=vs[0],Ga=vs[1],Ts=function(_i){if(Mr){var mi=_i.key,Qi=Ta.includes(mi),qi;vr?Qi?qi=Ta.filter(function(Qa){return Qa!==mi}):qi=[].concat((0,ye.Z)(Ta),[mi]):qi=[mi],Ga(qi);var fs=(0,Q.Z)((0,Q.Z)({},_i),{},{selectedKeys:qi});Qi?qn==null||qn(fs):Sn==null||Sn(fs)}!vr&&Nr.length&&ui!=="inline"&&Ni(cn)},Xa=J(function(wi){Ii==null||Ii(A(wi)),Ts(wi)}),cs=J(function(wi,_i){var mi=Nr.filter(function(qi){return qi!==wi});if(_i)mi.push(wi);else if(ui!=="inline"){var Qi=ia(wi);mi=mi.filter(function(qi){return!Qi.has(qi)})}(0,O.Z)(Nr,mi,!0)||Ni(mi,!0)}),ys=function(_i,mi){var Qi=mi!=null?mi:!Nr.includes(_i);cs(_i,Qi)},ds=Y(ui,Oa,_r,ur,na,Br,ti,la,ys,Ti);u.useEffect(function(){Mi(!0)},[]);var Ds=u.useMemo(function(){return{_internalRenderMenuItem:aa,_internalRenderSubMenuItem:ga}},[aa,ga]),Pa=ui!=="horizontal"||yr?vi:vi.map(function(wi,_i){return u.createElement(b,{key:wi.key,overflowDisabled:_i>ts},wi)}),bs=u.createElement(a.Z,(0,z.Z)({id:gr,ref:na,prefixCls:"".concat(Bt,"-overflow"),component:"ul",itemComponent:tt,className:pe()(Bt,"".concat(Bt,"-root"),"".concat(Bt,"-").concat(ui),Rn,(Nt={},(0,N.Z)(Nt,"".concat(Bt,"-inline-collapsed"),ya),(0,N.Z)(Nt,"".concat(Bt,"-rtl"),_r),Nt),dn),dir:yn,style:xn,role:"menu",tabIndex:nr,data:Pa,renderRawItem:function(_i){return _i},renderRawRest:function(_i){var mi=_i.length,Qi=mi?vi.slice(-mi):null;return u.createElement(St,{eventKey:le,title:gi,disabled:Aa,internalPopupClose:mi===0,popupClassName:li},Qi)},maxCount:ui!=="horizontal"||yr?a.Z.INVALIDATE:a.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(_i){ls(_i)},onKeyDown:ds},ua));return u.createElement(ee.Provider,{value:Ds},u.createElement(y.Provider,{value:ur},u.createElement(b,{prefixCls:Bt,rootClassName:dn,mode:ui,openKeys:Nr,rtl:_r,disabled:or,motion:Pn?Ci:null,defaultMotions:Pn?Un:null,activeKey:Oa,onActive:La,onInactive:Fa,selectedKeys:Ta,inlineIndent:Zr,subMenuOpenDelay:Ir,subMenuCloseDelay:Xn,forceSubMenuRender:En,builtinPlacements:oi,triggerSubMenuAction:jr,getPopupContainer:Ri,itemIcon:Ai,expandIcon:Li,onItemClick:Xa,onOpenChange:cs},u.createElement(xe.Provider,{value:Pi},bs),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement(G.Provider,{value:Ui},vi)))))}),tr=bn,Mn=tr;Mn.Item=tt,Mn.SubMenu=St,Mn.ItemGroup=hn,Mn.Divider=An;var Qt=Mn},11780:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return X}});var z=h(96663),N=h(44127),Q=h(72071),ye=h(6620),U=h(59301),H=h(92310),S=h.n(H),pe=h(29301),a=h(34280),C=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],O=void 0;function m(v,E){var K=v.prefixCls,de=v.invalidate,Ne=v.item,Ue=v.renderItem,ke=v.responsive,Ve=v.responsiveDisabled,ht=v.registerSize,pt=v.itemKey,st=v.className,Ft=v.style,Yt=v.children,en=v.display,Ut=v.order,ut=v.component,Et=ut===void 0?"div":ut,oe=(0,ye.Z)(v,C),ve=ke&&!en;function ie(I){ht(pt,I)}U.useEffect(function(){return function(){ie(null)}},[]);var Y=Ue&&Ne!==O?Ue(Ne,{index:Ut}):Yt,Ae;de||(Ae={opacity:ve?0:1,height:ve?0:O,overflowY:ve?"hidden":O,order:ke?Ut:O,pointerEvents:ve?"none":O,position:ve?"absolute":O});var $={};ve&&($["aria-hidden"]=!0);var R=U.createElement(Et,(0,z.Z)({className:S()(!de&&K,st),style:(0,N.Z)((0,N.Z)({},Ae),Ft)},$,oe,{ref:E}),Y);return ke&&(R=U.createElement(pe.Z,{onResize:function(le){var re=le.offsetWidth;ie(re)},disabled:Ve},R)),R}var u=U.forwardRef(m);u.displayName="Item";var x=u,y=h(6089),L=h(4676),te=h(16089);function B(v){if(typeof MessageChannel=="undefined")(0,te.Z)(v);else{var E=new MessageChannel;E.port1.onmessage=function(){return v()},E.port2.postMessage(void 0)}}function M(){var v=U.useRef(null),E=function(de){v.current||(v.current=[],B(function(){(0,L.unstable_batchedUpdates)(function(){v.current.forEach(function(Ne){Ne()}),v.current=null})})),v.current.push(de)};return E}function W(v,E){var K=U.useState(E),de=(0,Q.Z)(K,2),Ne=de[0],Ue=de[1],ke=(0,y.Z)(function(Ve){v(function(){Ue(Ve)})});return[Ne,ke]}var V=U.createContext(null),b=["component"],T=["className"],G=["className"],j=function(E,K){var de=U.useContext(V);if(!de){var Ne=E.component,Ue=Ne===void 0?"div":Ne,ke=(0,ye.Z)(E,b);return U.createElement(Ue,(0,z.Z)({},ke,{ref:K}))}var Ve=de.className,ht=(0,ye.Z)(de,T),pt=E.className,st=(0,ye.Z)(E,G);return U.createElement(V.Provider,{value:null},U.createElement(x,(0,z.Z)({ref:K,className:S()(Ve,pt)},ht,st)))},be=U.forwardRef(j);be.displayName="RawItem";var Ee=be,xe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ce="responsive",ee="invalidate";function Z(v){return"+ ".concat(v.length," ...")}function me(v,E){var K=v.prefixCls,de=K===void 0?"rc-overflow":K,Ne=v.data,Ue=Ne===void 0?[]:Ne,ke=v.renderItem,Ve=v.renderRawItem,ht=v.itemKey,pt=v.itemWidth,st=pt===void 0?10:pt,Ft=v.ssr,Yt=v.style,en=v.className,Ut=v.maxCount,ut=v.renderRest,Et=v.renderRawRest,oe=v.suffix,ve=v.component,ie=ve===void 0?"div":ve,Y=v.itemComponent,Ae=v.onVisibleChange,$=(0,ye.Z)(v,xe),R=Ft==="full",I=M(),le=W(I,null),re=(0,Q.Z)(le,2),J=re[0],Ce=re[1],We=J||0,Pe=W(I,new Map),Be=(0,Q.Z)(Pe,2),Xe=Be[0],rt=Be[1],Ye=W(I,0),vt=(0,Q.Z)(Ye,2),wt=vt[0],mt=vt[1],Pt=W(I,0),At=(0,Q.Z)(Pt,2),w=At[0],A=At[1],gt=W(I,0),fe=(0,Q.Z)(gt,2),Me=fe[0],Dn=fe[1],je=(0,U.useState)(null),nt=(0,Q.Z)(je,2),tt=nt[0],_e=nt[1],De=(0,U.useState)(null),Fe=(0,Q.Z)(De,2),Qe=Fe[0],ge=Fe[1],Vt=U.useMemo(function(){return Qe===null&&R?Number.MAX_SAFE_INTEGER:Qe||0},[Qe,J]),Ze=(0,U.useState)(!1),gn=(0,Q.Z)(Ze,2),In=gn[0],Hn=gn[1],mr="".concat(de,"-item"),rn=Math.max(wt,w),vn=Ut===ce,Je=Ue.length&&vn,It=Ut===ee,zt=Je||typeof Ut=="number"&&Ue.length>Ut,Ke=(0,U.useMemo)(function(){var Qt=Ue;return Je?J===null&&R?Qt=Ue:Qt=Ue.slice(0,Math.min(Ue.length,We/st)):typeof Ut=="number"&&(Qt=Ue.slice(0,Ut)),Qt},[Ue,st,J,Ut,Je]),Oe=(0,U.useMemo)(function(){return Je?Ue.slice(Vt+1):Ue.slice(Ke.length)},[Ue,Ke,Je,Vt]),bt=(0,U.useCallback)(function(Qt,ct){var ft;return typeof ht=="function"?ht(Qt):(ft=ht&&(Qt==null?void 0:Qt[ht]))!==null&&ft!==void 0?ft:ct},[ht]),St=(0,U.useCallback)(ke||function(Qt){return Qt},[ke]);function qt(Qt,ct,ft){Qe===Qt&&(ct===void 0||ct===tt)||(ge(Qt),ft||(Hn(Qt<Ue.length-1),Ae==null||Ae(Qt)),ct!==void 0&&_e(ct))}function Wt(Qt,ct){Ce(ct.clientWidth)}function on(Qt,ct){rt(function(ft){var Tt=new Map(ft);return ct===null?Tt.delete(Qt):Tt.set(Qt,ct),Tt})}function Xt(Qt,ct){A(ct),mt(w)}function hn(Qt,ct){Dn(ct)}function An(Qt){return Xe.get(bt(Ke[Qt],Qt))}(0,a.Z)(function(){if(We&&typeof rn=="number"&&Ke){var Qt=Me,ct=Ke.length,ft=ct-1;if(!ct){qt(0,null);return}for(var Tt=0;Tt<ct;Tt+=1){var Nt=An(Tt);if(R&&(Nt=Nt||0),Nt===void 0){qt(Tt-1,void 0,!0);break}if(Qt+=Nt,ft===0&&Qt<=We||Tt===ft-1&&Qt+An(ft)<=We){qt(ft,null);break}else if(Qt+rn>We){qt(Tt-1,Qt-Nt-Me+w);break}}oe&&An(0)+Me>We&&_e(null)}},[We,Xe,w,Me,bt,Ke]);var $t=In&&!!Oe.length,Rt={};tt!==null&&Je&&(Rt={position:"absolute",left:tt,top:0});var an={prefixCls:mr,responsive:Je,component:Y,invalidate:It},tn=Ve?function(Qt,ct){var ft=bt(Qt,ct);return U.createElement(V.Provider,{key:ft,value:(0,N.Z)((0,N.Z)({},an),{},{order:ct,item:Qt,itemKey:ft,registerSize:on,display:ct<=Vt})},Ve(Qt,ct))}:function(Qt,ct){var ft=bt(Qt,ct);return U.createElement(x,(0,z.Z)({},an,{order:ct,key:ft,item:Qt,renderItem:St,itemKey:ft,registerSize:on,display:ct<=Vt}))},cn={order:$t?Vt:Number.MAX_SAFE_INTEGER,className:"".concat(mr,"-rest"),registerSize:Xt,display:$t},bn=ut||Z,tr=Et?U.createElement(V.Provider,{value:(0,N.Z)((0,N.Z)({},an),cn)},Et(Oe)):U.createElement(x,(0,z.Z)({},an,cn),typeof bn=="function"?bn(Oe):bn),Mn=U.createElement(ie,(0,z.Z)({className:S()(!It&&de,en),style:Yt,ref:E},$),Ke.map(tn),zt?tr:null,oe&&U.createElement(x,(0,z.Z)({},an,{responsive:vn,responsiveDisabled:!Je,order:Vt,className:"".concat(mr,"-suffix"),registerSize:hn,display:!0,style:Rt}),oe));return vn?U.createElement(pe.Z,{onResize:Wt,disabled:!Je},Mn):Mn}var P=U.forwardRef(me);P.displayName="Overflow",P.Item=Ee,P.RESPONSIVE=ce,P.INVALIDATE=ee;var se=P,X=se},29301:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return ee}});var z=h(96663),N=h(59301),Q=h(11592),ye=h(48736),U=h(44127),H=h(20135),S=h(76846),pe=h(8654),a=N.createContext(null);function C(Z){var me=Z.children,P=Z.onBatchResize,se=N.useRef(0),X=N.useRef([]),v=N.useContext(a),E=N.useCallback(function(K,de,Ne){se.current+=1;var Ue=se.current;X.current.push({size:K,element:de,data:Ne}),Promise.resolve().then(function(){Ue===se.current&&(P==null||P(X.current),X.current=[])}),v==null||v(K,de,Ne)},[P,v]);return N.createElement(a.Provider,{value:E},me)}var O=h(76374),m=new Map;function u(Z){Z.forEach(function(me){var P,se=me.target;(P=m.get(se))===null||P===void 0||P.forEach(function(X){return X(se)})})}var x=new O.Z(u),y=null,L=null;function te(Z,me){m.has(Z)||(m.set(Z,new Set),x.observe(Z)),m.get(Z).add(me)}function B(Z,me){m.has(Z)&&(m.get(Z).delete(me),m.get(Z).size||(x.unobserve(Z),m.delete(Z)))}var M=h(52884),W=h(95727),V=h(65711),b=h(85745),T=function(Z){(0,V.Z)(P,Z);var me=(0,b.Z)(P);function P(){return(0,M.Z)(this,P),me.apply(this,arguments)}return(0,W.Z)(P,[{key:"render",value:function(){return this.props.children}}]),P}(N.Component);function G(Z,me){var P=Z.children,se=Z.disabled,X=N.useRef(null),v=N.useRef(null),E=N.useContext(a),K=typeof P=="function",de=K?P(X):P,Ne=N.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Ue=!K&&N.isValidElement(de)&&(0,pe.Yr)(de),ke=Ue?(0,pe.C4)(de):null,Ve=(0,pe.x1)(ke,X),ht=function(){var Yt;return(0,S.ZP)(X.current)||(X.current&&(0,H.Z)(X.current)==="object"?(0,S.ZP)((Yt=X.current)===null||Yt===void 0?void 0:Yt.nativeElement):null)||(0,S.ZP)(v.current)};N.useImperativeHandle(me,function(){return ht()});var pt=N.useRef(Z);pt.current=Z;var st=N.useCallback(function(Ft){var Yt=pt.current,en=Yt.onResize,Ut=Yt.data,ut=Ft.getBoundingClientRect(),Et=ut.width,oe=ut.height,ve=Ft.offsetWidth,ie=Ft.offsetHeight,Y=Math.floor(Et),Ae=Math.floor(oe);if(Ne.current.width!==Y||Ne.current.height!==Ae||Ne.current.offsetWidth!==ve||Ne.current.offsetHeight!==ie){var $={width:Y,height:Ae,offsetWidth:ve,offsetHeight:ie};Ne.current=$;var R=ve===Math.round(Et)?Et:ve,I=ie===Math.round(oe)?oe:ie,le=(0,U.Z)((0,U.Z)({},$),{},{offsetWidth:R,offsetHeight:I});E==null||E(le,Ft,Ut),en&&Promise.resolve().then(function(){en(le,Ft)})}},[]);return N.useEffect(function(){var Ft=ht();return Ft&&!se&&te(Ft,st),function(){return B(Ft,st)}},[X.current,se]),N.createElement(T,{ref:v},Ue?N.cloneElement(de,{ref:Ve}):de)}var j=N.forwardRef(G),be=j,Ee="rc-observer-key";function xe(Z,me){var P=Z.children,se=typeof P=="function"?[P]:(0,Q.Z)(P);return se.map(function(X,v){var E=(X==null?void 0:X.key)||"".concat(Ee,"-").concat(v);return N.createElement(be,(0,z.Z)({},Z,{key:E,ref:v===0?me:void 0}),X)})}var ce=N.forwardRef(xe);ce.Collection=C;var ee=ce},17115:function(Gt,He,h){"use strict";h.d(He,{ZP:function(){return S}});var z=h(72071),N=h(59301),Q=h(47273),ye=0,U=(0,Q.Z)();function H(){var pe;return U?(pe=ye,ye+=1):pe="TEST_OR_SSR",pe}function S(pe){var a=N.useState(),C=(0,z.Z)(a,2),O=C[0],m=C[1];return N.useEffect(function(){m("rc_select_".concat(H()))},[]),pe||O}},77861:function(Gt,He,h){"use strict";h.d(He,{Ac:function(){return Ce},Xo:function(){return A},Wx:function(){return fe},ZP:function(){return zt},lk:function(){return V}});var z=h(96663),N=h(19127),Q=h(90493),ye=h(44127),U=h(72071),H=h(6620),S=h(20135),pe=h(18929),a=h(48736),C=h(59301),O=h(92310),m=h.n(O),u=h(34280),x=h(49658),y=h(10228),L=h(8654),te=function(Oe){var bt=Oe.className,St=Oe.customizeIcon,qt=Oe.customizeIconProps,Wt=Oe.onMouseDown,on=Oe.onClick,Xt=Oe.children,hn;return typeof St=="function"?hn=St(qt):hn=St,C.createElement("span",{className:bt,onMouseDown:function($t){$t.preventDefault(),Wt&&Wt($t)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:on,"aria-hidden":!0},hn!==void 0?hn:C.createElement("span",{className:m()(bt.split(/\s+/).map(function(An){return"".concat(An,"-icon")}))},Xt))},B=te;function M(Ke,Oe,bt,St,qt){var Wt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,on=arguments.length>6?arguments[6]:void 0,Xt=arguments.length>7?arguments[7]:void 0,hn=C.useMemo(function(){if((0,S.Z)(St)==="object")return St.clearIcon;if(qt)return qt},[St,qt]),An=C.useMemo(function(){return!!(!Wt&&St&&(bt.length||on)&&!(Xt==="combobox"&&on===""))},[St,Wt,bt.length,on,Xt]);return{allowClear:An,clearIcon:C.createElement(B,{className:"".concat(Ke,"-clear"),onMouseDown:Oe,customizeIcon:hn},"\xD7")}}var W=C.createContext(null);function V(){return C.useContext(W)}function b(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Oe=C.useState(!1),bt=(0,U.Z)(Oe,2),St=bt[0],qt=bt[1],Wt=C.useRef(null),on=function(){window.clearTimeout(Wt.current)};C.useEffect(function(){return on},[]);var Xt=function(An,$t){on(),Wt.current=window.setTimeout(function(){qt(An),$t&&$t()},Ke)};return[St,Xt,on]}function T(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Oe=C.useRef(null),bt=C.useRef(null);C.useEffect(function(){return function(){window.clearTimeout(bt.current)}},[]);function St(qt){(qt||Oe.current===null)&&(Oe.current=qt),window.clearTimeout(bt.current),bt.current=window.setTimeout(function(){Oe.current=null},Ke)}return[function(){return Oe.current},St]}function G(Ke,Oe,bt,St){var qt=C.useRef(null);qt.current={open:Oe,triggerOpen:bt,customizedTrigger:St},C.useEffect(function(){function Wt(on){var Xt;if(!((Xt=qt.current)!==null&&Xt!==void 0&&Xt.customizedTrigger)){var hn=on.target;hn.shadowRoot&&on.composed&&(hn=on.composedPath()[0]||hn),qt.current.open&&Ke().filter(function(An){return An}).every(function(An){return!An.contains(hn)&&An!==hn})&&qt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Wt),function(){return window.removeEventListener("mousedown",Wt)}},[])}var j=h(26112),be=h(11780),Ee=function(Oe,bt){var St,qt,Wt=Oe.prefixCls,on=Oe.id,Xt=Oe.inputElement,hn=Oe.disabled,An=Oe.tabIndex,$t=Oe.autoFocus,Rt=Oe.autoComplete,an=Oe.editable,tn=Oe.activeDescendantId,cn=Oe.value,bn=Oe.maxLength,tr=Oe.onKeyDown,Mn=Oe.onMouseDown,Qt=Oe.onChange,ct=Oe.onPaste,ft=Oe.onCompositionStart,Tt=Oe.onCompositionEnd,Nt=Oe.open,Dt=Oe.attrs,Ht=Xt||C.createElement("input",null),Bt=Ht,dn=Bt.ref,xn=Bt.props,Rn=xn.onKeyDown,Qn=xn.onChange,nr=xn.onMouseDown,ar=xn.onCompositionStart,_n=xn.onCompositionEnd,yn=xn.style;return(0,a.Kp)(!("maxLength"in Ht.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Ht=C.cloneElement(Ht,(0,ye.Z)((0,ye.Z)((0,ye.Z)({type:"search"},xn),{},{id:on,ref:(0,L.sQ)(bt,dn),disabled:hn,tabIndex:An,autoComplete:Rt||"off",autoFocus:$t,className:m()("".concat(Wt,"-selection-search-input"),(St=Ht)===null||St===void 0||(qt=St.props)===null||qt===void 0?void 0:qt.className),role:"combobox","aria-label":"Search","aria-expanded":Nt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(on,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(on,"_list"),"aria-activedescendant":Nt?tn:void 0},Dt),{},{value:an?cn:"",maxLength:bn,readOnly:!an,unselectable:an?null:"on",style:(0,ye.Z)((0,ye.Z)({},yn),{},{opacity:an?null:0}),onKeyDown:function(Gn){tr(Gn),Rn&&Rn(Gn)},onMouseDown:function(Gn){Mn(Gn),nr&&nr(Gn)},onChange:function(Gn){Qt(Gn),Qn&&Qn(Gn)},onCompositionStart:function(Gn){ft(Gn),ar&&ar(Gn)},onCompositionEnd:function(Gn){Tt(Gn),_n&&_n(Gn)},onPaste:ct})),Ht},xe=C.forwardRef(Ee);xe.displayName="Input";var ce=xe;function ee(Ke){return Array.isArray(Ke)?Ke:Ke!==void 0?[Ke]:[]}var Z=typeof window!="undefined"&&window.document&&window.document.documentElement,me=Z;function P(Ke){return Ke!=null}function se(Ke){return!Ke&&Ke!==0}function X(Ke){return["string","number"].includes((0,S.Z)(Ke))}function v(Ke){var Oe=void 0;return Ke&&(X(Ke.title)?Oe=Ke.title.toString():X(Ke.label)&&(Oe=Ke.label.toString())),Oe}function E(Ke,Oe){me?C.useLayoutEffect(Ke,Oe):C.useEffect(Ke,Oe)}function K(Ke){var Oe;return(Oe=Ke.key)!==null&&Oe!==void 0?Oe:Ke.value}var de=function(Oe){Oe.preventDefault(),Oe.stopPropagation()},Ne=function(Oe){var bt=Oe.id,St=Oe.prefixCls,qt=Oe.values,Wt=Oe.open,on=Oe.searchValue,Xt=Oe.autoClearSearchValue,hn=Oe.inputRef,An=Oe.placeholder,$t=Oe.disabled,Rt=Oe.mode,an=Oe.showSearch,tn=Oe.autoFocus,cn=Oe.autoComplete,bn=Oe.activeDescendantId,tr=Oe.tabIndex,Mn=Oe.removeIcon,Qt=Oe.maxTagCount,ct=Oe.maxTagTextLength,ft=Oe.maxTagPlaceholder,Tt=ft===void 0?function(Dr){return"+ ".concat(Dr.length," ...")}:ft,Nt=Oe.tagRender,Dt=Oe.onToggleOpen,Ht=Oe.onRemove,Bt=Oe.onInputChange,dn=Oe.onInputPaste,xn=Oe.onInputKeyDown,Rn=Oe.onInputMouseDown,Qn=Oe.onInputCompositionStart,nr=Oe.onInputCompositionEnd,ar=C.useRef(null),_n=(0,C.useState)(0),yn=(0,U.Z)(_n,2),gr=yn[0],Gn=yn[1],Tr=(0,C.useState)(!1),Jn=(0,U.Z)(Tr,2),or=Jn[0],yr=Jn[1],rr="".concat(St,"-selection"),Ir=Wt||Rt==="multiple"&&Xt===!1||Rt==="tags"?on:"",Jr=Rt==="tags"||Rt==="multiple"&&Xt===!1||an&&(Wt||or);E(function(){Gn(ar.current.scrollWidth)},[Ir]);function Xn(Dr,Mr,Ur,vr,Kr){return C.createElement("span",{className:m()("".concat(rr,"-item"),(0,Q.Z)({},"".concat(rr,"-item-disabled"),Ur)),title:v(Dr)},C.createElement("span",{className:"".concat(rr,"-item-content")},Mr),vr&&C.createElement(B,{className:"".concat(rr,"-item-remove"),onMouseDown:de,onClick:Kr,customizeIcon:Mn},"\xD7"))}function En(Dr,Mr,Ur,vr,Kr){var zn=function(qn){de(qn),Dt(!Wt)};return C.createElement("span",{onMouseDown:zn},Nt({label:Mr,value:Dr,disabled:Ur,closable:vr,onClose:Kr}))}function it(Dr){var Mr=Dr.disabled,Ur=Dr.label,vr=Dr.value,Kr=!$t&&!Mr,zn=Ur;if(typeof ct=="number"&&(typeof Ur=="string"||typeof Ur=="number")){var Sn=String(zn);Sn.length>ct&&(zn="".concat(Sn.slice(0,ct),"..."))}var qn=function(Zr){Zr&&Zr.stopPropagation(),Ht(Dr)};return typeof Nt=="function"?En(vr,zn,Mr,Kr,qn):Xn(Dr,zn,Mr,Kr,qn)}function Fn(Dr){var Mr=typeof Tt=="function"?Tt(Dr):Tt;return Xn({title:Mr},Mr,!1)}var lr=C.createElement("div",{className:"".concat(rr,"-search"),style:{width:gr},onFocus:function(){yr(!0)},onBlur:function(){yr(!1)}},C.createElement(ce,{ref:hn,open:Wt,prefixCls:St,id:bt,inputElement:null,disabled:$t,autoFocus:tn,autoComplete:cn,editable:Jr,activeDescendantId:bn,value:Ir,onKeyDown:xn,onMouseDown:Rn,onChange:Bt,onPaste:dn,onCompositionStart:Qn,onCompositionEnd:nr,tabIndex:tr,attrs:(0,j.Z)(Oe,!0)}),C.createElement("span",{ref:ar,className:"".concat(rr,"-search-mirror"),"aria-hidden":!0},Ir,"\xA0")),Cr=C.createElement(be.Z,{prefixCls:"".concat(rr,"-overflow"),data:qt,renderItem:it,renderRest:Fn,suffix:lr,itemKey:K,maxCount:Qt});return C.createElement(C.Fragment,null,Cr,!qt.length&&!Ir&&C.createElement("span",{className:"".concat(rr,"-placeholder")},An))},Ue=Ne,ke=function(Oe){var bt=Oe.inputElement,St=Oe.prefixCls,qt=Oe.id,Wt=Oe.inputRef,on=Oe.disabled,Xt=Oe.autoFocus,hn=Oe.autoComplete,An=Oe.activeDescendantId,$t=Oe.mode,Rt=Oe.open,an=Oe.values,tn=Oe.placeholder,cn=Oe.tabIndex,bn=Oe.showSearch,tr=Oe.searchValue,Mn=Oe.activeValue,Qt=Oe.maxLength,ct=Oe.onInputKeyDown,ft=Oe.onInputMouseDown,Tt=Oe.onInputChange,Nt=Oe.onInputPaste,Dt=Oe.onInputCompositionStart,Ht=Oe.onInputCompositionEnd,Bt=Oe.title,dn=C.useState(!1),xn=(0,U.Z)(dn,2),Rn=xn[0],Qn=xn[1],nr=$t==="combobox",ar=nr||bn,_n=an[0],yn=tr||"";nr&&Mn&&!Rn&&(yn=Mn),C.useEffect(function(){nr&&Qn(!1)},[nr,Mn]);var gr=$t!=="combobox"&&!Rt&&!bn?!1:!!yn,Gn=Bt===void 0?v(_n):Bt,Tr=function(){if(_n)return null;var or=gr?{visibility:"hidden"}:void 0;return C.createElement("span",{className:"".concat(St,"-selection-placeholder"),style:or},tn)};return C.createElement(C.Fragment,null,C.createElement("span",{className:"".concat(St,"-selection-search")},C.createElement(ce,{ref:Wt,prefixCls:St,id:qt,open:Rt,inputElement:bt,disabled:on,autoFocus:Xt,autoComplete:hn,editable:ar,activeDescendantId:An,value:yn,onKeyDown:ct,onMouseDown:ft,onChange:function(or){Qn(!0),Tt(or)},onPaste:Nt,onCompositionStart:Dt,onCompositionEnd:Ht,tabIndex:cn,attrs:(0,j.Z)(Oe,!0),maxLength:nr?Qt:void 0})),!nr&&_n?C.createElement("span",{className:"".concat(St,"-selection-item"),title:Gn,style:gr?{visibility:"hidden"}:void 0},_n.label):null,Tr())},Ve=ke;function ht(Ke){return![y.Z.ESC,y.Z.SHIFT,y.Z.BACKSPACE,y.Z.TAB,y.Z.WIN_KEY,y.Z.ALT,y.Z.META,y.Z.WIN_KEY_RIGHT,y.Z.CTRL,y.Z.SEMICOLON,y.Z.EQUALS,y.Z.CAPS_LOCK,y.Z.CONTEXT_MENU,y.Z.F1,y.Z.F2,y.Z.F3,y.Z.F4,y.Z.F5,y.Z.F6,y.Z.F7,y.Z.F8,y.Z.F9,y.Z.F10,y.Z.F11,y.Z.F12].includes(Ke)}var pt=function(Oe,bt){var St=(0,C.useRef)(null),qt=(0,C.useRef)(!1),Wt=Oe.prefixCls,on=Oe.open,Xt=Oe.mode,hn=Oe.showSearch,An=Oe.tokenWithEnter,$t=Oe.autoClearSearchValue,Rt=Oe.onSearch,an=Oe.onSearchSubmit,tn=Oe.onToggleOpen,cn=Oe.onInputKeyDown,bn=Oe.domRef;C.useImperativeHandle(bt,function(){return{focus:function(){St.current.focus()},blur:function(){St.current.blur()}}});var tr=T(0),Mn=(0,U.Z)(tr,2),Qt=Mn[0],ct=Mn[1],ft=function(yn){var gr=yn.which;(gr===y.Z.UP||gr===y.Z.DOWN)&&yn.preventDefault(),cn&&cn(yn),gr===y.Z.ENTER&&Xt==="tags"&&!qt.current&&!on&&(an==null||an(yn.target.value)),ht(gr)&&tn(!0)},Tt=function(){ct(!0)},Nt=(0,C.useRef)(null),Dt=function(yn){Rt(yn,!0,qt.current)!==!1&&tn(!0)},Ht=function(){qt.current=!0},Bt=function(yn){qt.current=!1,Xt!=="combobox"&&Dt(yn.target.value)},dn=function(yn){var gr=yn.target.value;if(An&&Nt.current&&/[\r\n]/.test(Nt.current)){var Gn=Nt.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");gr=gr.replace(Gn,Nt.current)}Nt.current=null,Dt(gr)},xn=function(yn){var gr=yn.clipboardData,Gn=gr.getData("text");Nt.current=Gn},Rn=function(yn){var gr=yn.target;if(gr!==St.current){var Gn=document.body.style.msTouchAction!==void 0;Gn?setTimeout(function(){St.current.focus()}):St.current.focus()}},Qn=function(yn){var gr=Qt();yn.target!==St.current&&!gr&&Xt!=="combobox"&&yn.preventDefault(),(Xt!=="combobox"&&(!hn||!gr)||!on)&&(on&&$t!==!1&&Rt("",!0,!1),tn())},nr={inputRef:St,onInputKeyDown:ft,onInputMouseDown:Tt,onInputChange:dn,onInputPaste:xn,onInputCompositionStart:Ht,onInputCompositionEnd:Bt},ar=Xt==="multiple"||Xt==="tags"?C.createElement(Ue,(0,z.Z)({},Oe,nr)):C.createElement(Ve,(0,z.Z)({},Oe,nr));return C.createElement("div",{ref:bn,className:"".concat(Wt,"-selector"),onClick:Rn,onMouseDown:Qn},ar)},st=C.forwardRef(pt);st.displayName="Selector";var Ft=st,Yt=h(35593),en=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Ut=function(Oe){var bt=Oe===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:bt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:bt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:bt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:bt,adjustY:1},htmlRegion:"scroll"}}},ut=function(Oe,bt){var St=Oe.prefixCls,qt=Oe.disabled,Wt=Oe.visible,on=Oe.children,Xt=Oe.popupElement,hn=Oe.animation,An=Oe.transitionName,$t=Oe.dropdownStyle,Rt=Oe.dropdownClassName,an=Oe.direction,tn=an===void 0?"ltr":an,cn=Oe.placement,bn=Oe.builtinPlacements,tr=Oe.dropdownMatchSelectWidth,Mn=Oe.dropdownRender,Qt=Oe.dropdownAlign,ct=Oe.getPopupContainer,ft=Oe.empty,Tt=Oe.getTriggerDOMNode,Nt=Oe.onPopupVisibleChange,Dt=Oe.onPopupMouseEnter,Ht=(0,H.Z)(Oe,en),Bt="".concat(St,"-dropdown"),dn=Xt;Mn&&(dn=Mn(Xt));var xn=C.useMemo(function(){return bn||Ut(tr)},[bn,tr]),Rn=hn?"".concat(Bt,"-").concat(hn):An,Qn=typeof tr=="number",nr=C.useMemo(function(){return Qn?null:tr===!1?"minWidth":"width"},[tr,Qn]),ar=$t;Qn&&(ar=(0,ye.Z)((0,ye.Z)({},ar),{},{width:tr}));var _n=C.useRef(null);return C.useImperativeHandle(bt,function(){return{getPopupElement:function(){return _n.current}}}),C.createElement(Yt.Z,(0,z.Z)({},Ht,{showAction:Nt?["click"]:[],hideAction:Nt?["click"]:[],popupPlacement:cn||(tn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:xn,prefixCls:Bt,popupTransitionName:Rn,popup:C.createElement("div",{ref:_n,onMouseEnter:Dt},dn),stretch:nr,popupAlign:Qt,popupVisible:Wt,getPopupContainer:ct,popupClassName:m()(Rt,(0,Q.Z)({},"".concat(Bt,"-empty"),ft)),popupStyle:ar,getTriggerDOMNode:Tt,onPopupVisibleChange:Nt}),on)},Et=C.forwardRef(ut);Et.displayName="SelectTrigger";var oe=Et,ve=h(4537);function ie(Ke,Oe){var bt=Ke.key,St;return"value"in Ke&&(St=Ke.value),bt!=null?bt:St!==void 0?St:"rc-index-key-".concat(Oe)}function Y(Ke,Oe){var bt=Ke||{},St=bt.label,qt=bt.value,Wt=bt.options,on=bt.groupLabel,Xt=St||(Oe?"children":"label");return{label:Xt,value:qt||"value",options:Wt||"options",groupLabel:on||Xt}}function Ae(Ke){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},bt=Oe.fieldNames,St=Oe.childrenAsData,qt=[],Wt=Y(bt,!1),on=Wt.label,Xt=Wt.value,hn=Wt.options,An=Wt.groupLabel;function $t(Rt,an){Rt.forEach(function(tn){if(an||!(hn in tn)){var cn=tn[Xt];qt.push({key:ie(tn,qt.length),groupOption:an,data:tn,label:tn[on],value:cn})}else{var bn=tn[An];bn===void 0&&St&&(bn=tn.label),qt.push({key:ie(tn,qt.length),group:!0,data:tn,label:bn}),$t(tn[hn],!0)}})}return $t(Ke,!1),qt}function $(Ke){var Oe=(0,ye.Z)({},Ke);return"props"in Oe||Object.defineProperty(Oe,"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`."),Oe}}),Oe}function R(Ke,Oe){if(!Oe||!Oe.length)return null;var bt=!1;function St(Wt,on){var Xt=(0,ve.Z)(on),hn=Xt[0],An=Xt.slice(1);if(!hn)return[Wt];var $t=Wt.split(hn);return bt=bt||$t.length>1,$t.reduce(function(Rt,an){return[].concat((0,N.Z)(Rt),(0,N.Z)(St(an,An)))},[]).filter(function(Rt){return Rt})}var qt=St(Ke,Oe);return bt?qt:null}var I=["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"],le=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function re(Ke){return Ke==="tags"||Ke==="multiple"}var J=C.forwardRef(function(Ke,Oe){var bt,St,qt=Ke.id,Wt=Ke.prefixCls,on=Ke.className,Xt=Ke.showSearch,hn=Ke.tagRender,An=Ke.direction,$t=Ke.omitDomProps,Rt=Ke.displayValues,an=Ke.onDisplayValuesChange,tn=Ke.emptyOptions,cn=Ke.notFoundContent,bn=cn===void 0?"Not Found":cn,tr=Ke.onClear,Mn=Ke.mode,Qt=Ke.disabled,ct=Ke.loading,ft=Ke.getInputElement,Tt=Ke.getRawInputElement,Nt=Ke.open,Dt=Ke.defaultOpen,Ht=Ke.onDropdownVisibleChange,Bt=Ke.activeValue,dn=Ke.onActiveValueChange,xn=Ke.activeDescendantId,Rn=Ke.searchValue,Qn=Ke.autoClearSearchValue,nr=Ke.onSearch,ar=Ke.onSearchSplit,_n=Ke.tokenSeparators,yn=Ke.allowClear,gr=Ke.suffixIcon,Gn=Ke.clearIcon,Tr=Ke.OptionList,Jn=Ke.animation,or=Ke.transitionName,yr=Ke.dropdownStyle,rr=Ke.dropdownClassName,Ir=Ke.dropdownMatchSelectWidth,Jr=Ke.dropdownRender,Xn=Ke.dropdownAlign,En=Ke.placement,it=Ke.builtinPlacements,Fn=Ke.getPopupContainer,lr=Ke.showAction,Cr=lr===void 0?[]:lr,Dr=Ke.onFocus,Mr=Ke.onBlur,Ur=Ke.onKeyUp,vr=Ke.onKeyDown,Kr=Ke.onMouseDown,zn=(0,H.Z)(Ke,I),Sn=re(Mn),qn=(Xt!==void 0?Xt:Sn)||Mn==="combobox",Lr=(0,ye.Z)({},zn);le.forEach(function(ti){delete Lr[ti]}),$t==null||$t.forEach(function(ti){delete Lr[ti]});var Zr=C.useState(!1),Ci=(0,U.Z)(Zr,2),Un=Ci[0],Vr=Ci[1];C.useEffect(function(){Vr((0,x.Z)())},[]);var jr=C.useRef(null),oi=C.useRef(null),Ai=C.useRef(null),Li=C.useRef(null),ei=C.useRef(null),gi=b(),li=(0,U.Z)(gi,3),Ri=li[0],Ii=li[1],ji=li[2];C.useImperativeHandle(Oe,function(){var ti,Br;return{focus:(ti=Li.current)===null||ti===void 0?void 0:ti.focus,blur:(Br=Li.current)===null||Br===void 0?void 0:Br.blur,scrollTo:function(Ui){var Pi;return(Pi=ei.current)===null||Pi===void 0?void 0:Pi.scrollTo(Ui)}}});var Ti=C.useMemo(function(){var ti;if(Mn!=="combobox")return Rn;var Br=(ti=Rt[0])===null||ti===void 0?void 0:ti.value;return typeof Br=="string"||typeof Br=="number"?String(Br):""},[Rn,Mn,Rt]),Gi=Mn==="combobox"&&typeof ft=="function"&&ft()||null,$r=typeof Tt=="function"&&Tt(),aa=(0,L.x1)(oi,$r==null||(bt=$r.props)===null||bt===void 0?void 0:bt.ref),ga=C.useState(!1),ua=(0,U.Z)(ga,2),vi=ua[0],ca=ua[1];(0,u.Z)(function(){ca(!0)},[]);var wa=(0,pe.Z)(!1,{defaultValue:Dt,value:Nt}),Pn=(0,U.Z)(wa,2),Mi=Pn[0],na=Pn[1],ur=vi?Mi:!1,_r=!bn&&tn;(Qt||_r&&ur&&Mn==="combobox")&&(ur=!1);var cr=_r?!1:ur,Zn=C.useCallback(function(ti){var Br=ti!==void 0?ti:!ur;Qt||(na(Br),ur!==Br&&(Ht==null||Ht(Br)))},[Qt,ur,na,Ht]),Nr=C.useMemo(function(){return(_n||[]).some(function(ti){return[`
`,`\r
`].includes(ti)})},[_n]),Yr=function(Br,ia,Ui){var Pi=!0,oa=Br;dn==null||dn(null);var pi=Ui?null:R(Br,_n);return Mn!=="combobox"&&pi&&(oa="",ar==null||ar(pi),Zn(!1),Pi=!1),nr&&Ti!==oa&&nr(oa,{source:ia?"typing":"effect"}),Pi},Ni=function(Br){!Br||!Br.trim()||nr(Br,{source:"submit"})};C.useEffect(function(){!ur&&!Sn&&Mn!=="combobox"&&Yr("",!1,!1)},[ur]),C.useEffect(function(){Mi&&Qt&&na(!1),Qt&&Ii(!1)},[Qt]);var yi=T(),Oi=(0,U.Z)(yi,2),Bi=Oi[0],va=Oi[1],Ca=function(Br){var ia=Bi(),Ui=Br.which;if(Ui===y.Z.ENTER&&(Mn!=="combobox"&&Br.preventDefault(),ur||Zn(!0)),va(!!Ti),Ui===y.Z.BACKSPACE&&!ia&&Sn&&!Ti&&Rt.length){for(var Pi=(0,N.Z)(Rt),oa=null,pi=Pi.length-1;pi>=0;pi-=1){var Oa=Pi[pi];if(!Oa.disabled){Pi.splice(pi,1),oa=Oa;break}}oa&&an(Pi,{type:"remove",values:[oa]})}for(var la=arguments.length,La=new Array(la>1?la-1:0),Fa=1;Fa<la;Fa++)La[Fa-1]=arguments[Fa];if(ur&&ei.current){var Si;(Si=ei.current).onKeyDown.apply(Si,[Br].concat(La))}vr==null||vr.apply(void 0,[Br].concat(La))},Za=function(Br){for(var ia=arguments.length,Ui=new Array(ia>1?ia-1:0),Pi=1;Pi<ia;Pi++)Ui[Pi-1]=arguments[Pi];if(ur&&ei.current){var oa;(oa=ei.current).onKeyUp.apply(oa,[Br].concat(Ui))}Ur==null||Ur.apply(void 0,[Br].concat(Ui))},da=function(Br){var ia=Rt.filter(function(Ui){return Ui!==Br});an(ia,{type:"remove",values:[Br]})},fa=C.useRef(!1),dr=function(){Ii(!0),Qt||(Dr&&!fa.current&&Dr.apply(void 0,arguments),Cr.includes("focus")&&Zn(!0)),fa.current=!0},sr=function(){Ii(!1,function(){fa.current=!1,Zn(!1)}),!Qt&&(Ti&&(Mn==="tags"?nr(Ti,{source:"submit"}):Mn==="multiple"&&nr("",{source:"blur"})),Mr&&Mr.apply(void 0,arguments))},Xr=[];C.useEffect(function(){return function(){Xr.forEach(function(ti){return clearTimeout(ti)}),Xr.splice(0,Xr.length)}},[]);var zi=function(Br){var ia,Ui=Br.target,Pi=(ia=Ai.current)===null||ia===void 0?void 0:ia.getPopupElement();if(Pi&&Pi.contains(Ui)){var oa=setTimeout(function(){var La=Xr.indexOf(oa);if(La!==-1&&Xr.splice(La,1),ji(),!Un&&!Pi.contains(document.activeElement)){var Fa;(Fa=Li.current)===null||Fa===void 0||Fa.focus()}});Xr.push(oa)}for(var pi=arguments.length,Oa=new Array(pi>1?pi-1:0),la=1;la<pi;la++)Oa[la-1]=arguments[la];Kr==null||Kr.apply(void 0,[Br].concat(Oa))},ui=C.useState({}),sa=(0,U.Z)(ui,2),ja=sa[1];function Ka(){ja({})}var ya;$r&&(ya=function(Br){Zn(Br)}),G(function(){var ti;return[jr.current,(ti=Ai.current)===null||ti===void 0?void 0:ti.getPopupElement()]},cr,Zn,!!$r);var as=C.useMemo(function(){return(0,ye.Z)((0,ye.Z)({},Ke),{},{notFoundContent:bn,open:ur,triggerOpen:cr,id:qt,showSearch:qn,multiple:Sn,toggleOpen:Zn})},[Ke,bn,cr,ur,qt,qn,Sn,Zn]),ss=!!gr||ct,os;ss&&(os=C.createElement(B,{className:m()("".concat(Wt,"-arrow"),(0,Q.Z)({},"".concat(Wt,"-arrow-loading"),ct)),customizeIcon:gr,customizeIconProps:{loading:ct,searchValue:Ti,open:ur,focused:Ri,showSearch:qn}}));var ts=function(){var Br;tr==null||tr(),(Br=Li.current)===null||Br===void 0||Br.focus(),an([],{type:"clear",values:Rt}),Yr("",!1,!1)},ls=M(Wt,ts,Rt,yn,Gn,Qt,Ti,Mn),Aa=ls.allowClear,Xi=ls.clearIcon,us=C.createElement(Tr,{ref:ei}),ns=m()(Wt,on,(St={},(0,Q.Z)(St,"".concat(Wt,"-focused"),Ri),(0,Q.Z)(St,"".concat(Wt,"-multiple"),Sn),(0,Q.Z)(St,"".concat(Wt,"-single"),!Sn),(0,Q.Z)(St,"".concat(Wt,"-allow-clear"),yn),(0,Q.Z)(St,"".concat(Wt,"-show-arrow"),ss),(0,Q.Z)(St,"".concat(Wt,"-disabled"),Qt),(0,Q.Z)(St,"".concat(Wt,"-loading"),ct),(0,Q.Z)(St,"".concat(Wt,"-open"),ur),(0,Q.Z)(St,"".concat(Wt,"-customize-input"),Gi),(0,Q.Z)(St,"".concat(Wt,"-show-search"),qn),St)),ba=C.createElement(oe,{ref:Ai,disabled:Qt,prefixCls:Wt,visible:cr,popupElement:us,animation:Jn,transitionName:or,dropdownStyle:yr,dropdownClassName:rr,direction:An,dropdownMatchSelectWidth:Ir,dropdownRender:Jr,dropdownAlign:Xn,placement:En,builtinPlacements:it,getPopupContainer:Fn,empty:tn,getTriggerDOMNode:function(){return oi.current},onPopupVisibleChange:ya,onPopupMouseEnter:Ka},$r?C.cloneElement($r,{ref:aa}):C.createElement(Ft,(0,z.Z)({},Ke,{domRef:oi,prefixCls:Wt,inputElement:Gi,ref:Li,id:qt,showSearch:qn,autoClearSearchValue:Qn,mode:Mn,activeDescendantId:xn,tagRender:hn,values:Rt,open:ur,onToggleOpen:Zn,activeValue:Bt,searchValue:Ti,onSearch:Yr,onSearchSubmit:Ni,onRemove:da,tokenWithEnter:Nr}))),xa;return $r?xa=ba:xa=C.createElement("div",(0,z.Z)({className:ns},Lr,{ref:jr,onMouseDown:zi,onKeyDown:Ca,onKeyUp:Za,onFocus:dr,onBlur:sr}),Ri&&!ur&&C.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Rt.map(function(ti){var Br=ti.label,ia=ti.value;return["number","string"].includes((0,S.Z)(Br))?Br:ia}).join(", "))),ba,os,Aa&&Xi),C.createElement(W.Provider,{value:as},xa)}),Ce=J,We=function(Ke,Oe){var bt=C.useRef({values:new Map,options:new Map}),St=C.useMemo(function(){var Wt=bt.current,on=Wt.values,Xt=Wt.options,hn=Ke.map(function(Rt){if(Rt.label===void 0){var an;return(0,ye.Z)((0,ye.Z)({},Rt),{},{label:(an=on.get(Rt.value))===null||an===void 0?void 0:an.label})}return Rt}),An=new Map,$t=new Map;return hn.forEach(function(Rt){An.set(Rt.value,Rt),$t.set(Rt.value,Oe.get(Rt.value)||Xt.get(Rt.value))}),bt.current.values=An,bt.current.options=$t,hn},[Ke,Oe]),qt=C.useCallback(function(Wt){return Oe.get(Wt)||bt.current.options.get(Wt)},[Oe]);return[St,qt]};function Pe(Ke,Oe){return ee(Ke).join("").toUpperCase().includes(Oe)}var Be=function(Ke,Oe,bt,St,qt){return C.useMemo(function(){if(!bt||St===!1)return Ke;var Wt=Oe.options,on=Oe.label,Xt=Oe.value,hn=[],An=typeof St=="function",$t=bt.toUpperCase(),Rt=An?St:function(tn,cn){return qt?Pe(cn[qt],$t):cn[Wt]?Pe(cn[on!=="children"?on:"label"],$t):Pe(cn[Xt],$t)},an=An?function(tn){return $(tn)}:function(tn){return tn};return Ke.forEach(function(tn){if(tn[Wt]){var cn=Rt(bt,an(tn));if(cn)hn.push(tn);else{var bn=tn[Wt].filter(function(tr){return Rt(bt,an(tr))});bn.length&&hn.push((0,ye.Z)((0,ye.Z)({},tn),{},(0,Q.Z)({},Wt,bn)))}return}Rt(bt,an(tn))&&hn.push(tn)}),hn},[Ke,St,qt,bt,Oe])},Xe=h(17115),rt=h(11592),Ye=["children","value"],vt=["children"];function wt(Ke){var Oe=Ke,bt=Oe.key,St=Oe.props,qt=St.children,Wt=St.value,on=(0,H.Z)(St,Ye);return(0,ye.Z)({key:bt,value:Wt!==void 0?Wt:bt,children:qt},on)}function mt(Ke){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,rt.Z)(Ke).map(function(bt,St){if(!C.isValidElement(bt)||!bt.type)return null;var qt=bt,Wt=qt.type.isSelectOptGroup,on=qt.key,Xt=qt.props,hn=Xt.children,An=(0,H.Z)(Xt,vt);return Oe||!Wt?wt(bt):(0,ye.Z)((0,ye.Z)({key:"__RC_SELECT_GRP__".concat(on===null?St:on,"__"),label:on},An),{},{options:mt(hn)})}).filter(function(bt){return bt})}function Pt(Ke,Oe,bt,St,qt){return C.useMemo(function(){var Wt=Ke,on=!Ke;on&&(Wt=mt(Oe));var Xt=new Map,hn=new Map,An=function(an,tn,cn){cn&&typeof cn=="string"&&an.set(tn[cn],tn)};function $t(Rt){for(var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,tn=0;tn<Rt.length;tn+=1){var cn=Rt[tn];!cn[bt.options]||an?(Xt.set(cn[bt.value],cn),An(hn,cn,bt.label),An(hn,cn,St),An(hn,cn,qt)):$t(cn[bt.options],!0)}}return $t(Wt),{options:Wt,valueOptions:Xt,labelOptions:hn}},[Ke,Oe,bt,St,qt])}function At(Ke){var Oe=C.useRef();Oe.current=Ke;var bt=C.useCallback(function(){return Oe.current.apply(Oe,arguments)},[]);return bt}var w=function(){return null};w.isSelectOptGroup=!0;var A=w,gt=function(){return null};gt.isSelectOption=!0;var fe=gt,Me=h(80547),Dn=h(2738),je=h(24916),nt=C.createContext(null),tt=nt;function _e(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var De=["disabled","title","children","style","className"];function Fe(Ke){return typeof Ke=="string"||typeof Ke=="number"}var Qe=function(Oe,bt){var St=V(),qt=St.prefixCls,Wt=St.id,on=St.open,Xt=St.multiple,hn=St.mode,An=St.searchValue,$t=St.toggleOpen,Rt=St.notFoundContent,an=St.onPopupScroll,tn=C.useContext(tt),cn=tn.flattenOptions,bn=tn.onActiveValue,tr=tn.defaultActiveFirstOption,Mn=tn.onSelect,Qt=tn.menuItemSelectedIcon,ct=tn.rawValues,ft=tn.fieldNames,Tt=tn.virtual,Nt=tn.direction,Dt=tn.listHeight,Ht=tn.listItemHeight,Bt="".concat(qt,"-item"),dn=(0,Me.Z)(function(){return cn},[on,cn],function(Xn,En){return En[0]&&Xn[1]!==En[1]}),xn=C.useRef(null),Rn=function(En){En.preventDefault()},Qn=function(En){xn.current&&xn.current.scrollTo(typeof En=="number"?{index:En}:En)},nr=function(En){for(var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Fn=dn.length,lr=0;lr<Fn;lr+=1){var Cr=(En+lr*it+Fn)%Fn,Dr=dn[Cr],Mr=Dr.group,Ur=Dr.data;if(!Mr&&!Ur.disabled)return Cr}return-1},ar=C.useState(function(){return nr(0)}),_n=(0,U.Z)(ar,2),yn=_n[0],gr=_n[1],Gn=function(En){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;gr(En);var Fn={source:it?"keyboard":"mouse"},lr=dn[En];if(!lr){bn(null,-1,Fn);return}bn(lr.value,En,Fn)};(0,C.useEffect)(function(){Gn(tr!==!1?nr(0):-1)},[dn.length,An]);var Tr=C.useCallback(function(Xn){return ct.has(Xn)&&hn!=="combobox"},[hn,(0,N.Z)(ct).toString(),ct.size]);(0,C.useEffect)(function(){var Xn=setTimeout(function(){if(!Xt&&on&&ct.size===1){var it=Array.from(ct)[0],Fn=dn.findIndex(function(lr){var Cr=lr.data;return Cr.value===it});Fn!==-1&&(Gn(Fn),Qn(Fn))}});if(on){var En;(En=xn.current)===null||En===void 0||En.scrollTo(void 0)}return function(){return clearTimeout(Xn)}},[on,An,cn.length]);var Jn=function(En){En!==void 0&&Mn(En,{selected:!ct.has(En)}),Xt||$t(!1)};if(C.useImperativeHandle(bt,function(){return{onKeyDown:function(En){var it=En.which,Fn=En.ctrlKey;switch(it){case y.Z.N:case y.Z.P:case y.Z.UP:case y.Z.DOWN:{var lr=0;if(it===y.Z.UP?lr=-1:it===y.Z.DOWN?lr=1:_e()&&Fn&&(it===y.Z.N?lr=1:it===y.Z.P&&(lr=-1)),lr!==0){var Cr=nr(yn+lr,lr);Qn(Cr),Gn(Cr,!0)}break}case y.Z.ENTER:{var Dr=dn[yn];Dr&&!Dr.data.disabled?Jn(Dr.value):Jn(void 0),on&&En.preventDefault();break}case y.Z.ESC:$t(!1),on&&En.stopPropagation()}},onKeyUp:function(){},scrollTo:function(En){Qn(En)}}}),dn.length===0)return C.createElement("div",{role:"listbox",id:"".concat(Wt,"_list"),className:"".concat(Bt,"-empty"),onMouseDown:Rn},Rt);var or=Object.keys(ft).map(function(Xn){return ft[Xn]}),yr=function(En){return En.label};function rr(Xn,En){var it=Xn.group;return{role:it?"presentation":"option",id:"".concat(Wt,"_list_").concat(En)}}var Ir=function(En){var it=dn[En];if(!it)return null;var Fn=it.data||{},lr=Fn.value,Cr=it.group,Dr=(0,j.Z)(Fn,!0),Mr=yr(it);return it?C.createElement("div",(0,z.Z)({"aria-label":typeof Mr=="string"&&!Cr?Mr:null},Dr,{key:En},rr(it,En),{"aria-selected":Tr(lr)}),lr):null},Jr={role:"listbox",id:"".concat(Wt,"_list")};return C.createElement(C.Fragment,null,Tt&&C.createElement("div",(0,z.Z)({},Jr,{style:{height:0,width:0,overflow:"hidden"}}),Ir(yn-1),Ir(yn),Ir(yn+1)),C.createElement(je.Z,{itemKey:"key",ref:xn,data:dn,height:Dt,itemHeight:Ht,fullHeight:!1,onMouseDown:Rn,onScroll:an,virtual:Tt,direction:Nt,innerProps:Tt?null:Jr},function(Xn,En){var it,Fn=Xn.group,lr=Xn.groupOption,Cr=Xn.data,Dr=Xn.label,Mr=Xn.value,Ur=Cr.key;if(Fn){var vr,Kr=(vr=Cr.title)!==null&&vr!==void 0?vr:Fe(Dr)?Dr.toString():void 0;return C.createElement("div",{className:m()(Bt,"".concat(Bt,"-group")),title:Kr},Dr!==void 0?Dr:Ur)}var zn=Cr.disabled,Sn=Cr.title,qn=Cr.children,Lr=Cr.style,Zr=Cr.className,Ci=(0,H.Z)(Cr,De),Un=(0,Dn.Z)(Ci,or),Vr=Tr(Mr),jr="".concat(Bt,"-option"),oi=m()(Bt,jr,Zr,(it={},(0,Q.Z)(it,"".concat(jr,"-grouped"),lr),(0,Q.Z)(it,"".concat(jr,"-active"),yn===En&&!zn),(0,Q.Z)(it,"".concat(jr,"-disabled"),zn),(0,Q.Z)(it,"".concat(jr,"-selected"),Vr),it)),Ai=yr(Xn),Li=!Qt||typeof Qt=="function"||Vr,ei=typeof Ai=="number"?Ai:Ai||Mr,gi=Fe(ei)?ei.toString():void 0;return Sn!==void 0&&(gi=Sn),C.createElement("div",(0,z.Z)({},(0,j.Z)(Un),Tt?{}:rr(Xn,En),{"aria-selected":Vr,className:oi,title:gi,onMouseMove:function(){yn===En||zn||Gn(En)},onClick:function(){zn||Jn(Mr)},style:Lr}),C.createElement("div",{className:"".concat(jr,"-content")},ei),C.isValidElement(Qt)||Vr,Li&&C.createElement(B,{className:"".concat(Bt,"-option-state"),customizeIcon:Qt,customizeIconProps:{isSelected:Vr}},Vr?"\u2713":null))}))},ge=C.forwardRef(Qe);ge.displayName="OptionList";var Vt=ge;function Ze(Ke){var Oe=Ke.mode,bt=Ke.options,St=Ke.children,qt=Ke.backfill,Wt=Ke.allowClear,on=Ke.placeholder,Xt=Ke.getInputElement,hn=Ke.showSearch,An=Ke.onSearch,$t=Ke.defaultOpen,Rt=Ke.autoFocus,an=Ke.labelInValue,tn=Ke.value,cn=Ke.inputValue,bn=Ke.optionLabelProp,tr=isMultiple(Oe),Mn=hn!==void 0?hn:tr||Oe==="combobox",Qt=bt||convertChildrenToData(St);if(warning(Oe!=="tags"||Qt.every(function(Nt){return!Nt.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Oe==="tags"||Oe==="combobox"){var ct=Qt.some(function(Nt){return Nt.options?Nt.options.some(function(Dt){return typeof("value"in Dt?Dt.value:Dt.key)=="number"}):typeof("value"in Nt?Nt.value:Nt.key)=="number"});warning(!ct,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Oe!=="combobox"||!bn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Oe==="combobox"||!qt,"`backfill` only works with `combobox` mode."),warning(Oe==="combobox"||!Xt,"`getInputElement` only work with `combobox` mode."),noteOnce(Oe!=="combobox"||!Xt||!Wt||!on,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),An&&!Mn&&Oe!=="combobox"&&Oe!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!$t||Rt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),tn!=null){var ft=toArray(tn);warning(!an||ft.every(function(Nt){return _typeof(Nt)==="object"&&("key"in Nt||"value"in Nt)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!tr||Array.isArray(tn),"`value` should be array when `mode` is `multiple` or `tags`")}if(St){var Tt=null;toNodeArray(St).some(function(Nt){if(!React.isValidElement(Nt)||!Nt.type)return!1;var Dt=Nt,Ht=Dt.type;if(Ht.isSelectOption)return!1;if(Ht.isSelectOptGroup){var Bt=toNodeArray(Nt.props.children).every(function(dn){return!React.isValidElement(dn)||!Nt.type||dn.type.isSelectOption?!0:(Tt=dn.type,!1)});return!Bt}return Tt=Ht,!0}),Tt&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Tt.displayName||Tt.name||Tt,"`.")),warning(cn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function gn(Ke,Oe){if(Ke){var bt=function St(qt){for(var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,on=0;on<qt.length;on++){var Xt=qt[on];if(Xt[Oe==null?void 0:Oe.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Wt&&Array.isArray(Xt[Oe==null?void 0:Oe.options])&&St(Xt[Oe==null?void 0:Oe.options],!0))break}};bt(Ke)}}var In=null,Hn=["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"],mr=["inputValue"];function rn(Ke){return!Ke||(0,S.Z)(Ke)!=="object"}var vn=C.forwardRef(function(Ke,Oe){var bt=Ke.id,St=Ke.mode,qt=Ke.prefixCls,Wt=qt===void 0?"rc-select":qt,on=Ke.backfill,Xt=Ke.fieldNames,hn=Ke.inputValue,An=Ke.searchValue,$t=Ke.onSearch,Rt=Ke.autoClearSearchValue,an=Rt===void 0?!0:Rt,tn=Ke.onSelect,cn=Ke.onDeselect,bn=Ke.dropdownMatchSelectWidth,tr=bn===void 0?!0:bn,Mn=Ke.filterOption,Qt=Ke.filterSort,ct=Ke.optionFilterProp,ft=Ke.optionLabelProp,Tt=Ke.options,Nt=Ke.children,Dt=Ke.defaultActiveFirstOption,Ht=Ke.menuItemSelectedIcon,Bt=Ke.virtual,dn=Ke.direction,xn=Ke.listHeight,Rn=xn===void 0?200:xn,Qn=Ke.listItemHeight,nr=Qn===void 0?20:Qn,ar=Ke.value,_n=Ke.defaultValue,yn=Ke.labelInValue,gr=Ke.onChange,Gn=(0,H.Z)(Ke,Hn),Tr=(0,Xe.ZP)(bt),Jn=re(St),or=!!(!Tt&&Nt),yr=C.useMemo(function(){return Mn===void 0&&St==="combobox"?!1:Mn},[Mn,St]),rr=C.useMemo(function(){return Y(Xt,or)},[JSON.stringify(Xt),or]),Ir=(0,pe.Z)("",{value:An!==void 0?An:hn,postState:function(_r){return _r||""}}),Jr=(0,U.Z)(Ir,2),Xn=Jr[0],En=Jr[1],it=Pt(Tt,Nt,rr,ct,ft),Fn=it.valueOptions,lr=it.labelOptions,Cr=it.options,Dr=C.useCallback(function(ur){var _r=ee(ur);return _r.map(function(cr){var Zn,Nr,Yr,Ni,yi;if(rn(cr))Zn=cr;else{var Oi;Yr=cr.key,Nr=cr.label,Zn=(Oi=cr.value)!==null&&Oi!==void 0?Oi:Yr}var Bi=Fn.get(Zn);if(Bi){var va;if(Nr===void 0&&(Nr=Bi==null?void 0:Bi[ft||rr.label]),Yr===void 0&&(Yr=(va=Bi==null?void 0:Bi.key)!==null&&va!==void 0?va:Zn),Ni=Bi==null?void 0:Bi.disabled,yi=Bi==null?void 0:Bi.title,0)var Ca}return{label:Nr,value:Zn,key:Yr,disabled:Ni,title:yi}})},[rr,ft,Fn]),Mr=(0,pe.Z)(_n,{value:ar}),Ur=(0,U.Z)(Mr,2),vr=Ur[0],Kr=Ur[1],zn=C.useMemo(function(){var ur,_r=Dr(vr);return St==="combobox"&&se((ur=_r[0])===null||ur===void 0?void 0:ur.value)?[]:_r},[vr,Dr,St]),Sn=We(zn,Fn),qn=(0,U.Z)(Sn,2),Lr=qn[0],Zr=qn[1],Ci=C.useMemo(function(){if(!St&&Lr.length===1){var ur=Lr[0];if(ur.value===null&&(ur.label===null||ur.label===void 0))return[]}return Lr.map(function(_r){var cr;return(0,ye.Z)((0,ye.Z)({},_r),{},{label:(cr=_r.label)!==null&&cr!==void 0?cr:_r.value})})},[St,Lr]),Un=C.useMemo(function(){return new Set(Lr.map(function(ur){return ur.value}))},[Lr]);C.useEffect(function(){if(St==="combobox"){var ur,_r=(ur=Lr[0])===null||ur===void 0?void 0:ur.value;En(P(_r)?String(_r):"")}},[Lr]);var Vr=At(function(ur,_r){var cr,Zn=_r!=null?_r:ur;return cr={},(0,Q.Z)(cr,rr.value,ur),(0,Q.Z)(cr,rr.label,Zn),cr}),jr=C.useMemo(function(){if(St!=="tags")return Cr;var ur=(0,N.Z)(Cr),_r=function(Zn){return Fn.has(Zn)};return(0,N.Z)(Lr).sort(function(cr,Zn){return cr.value<Zn.value?-1:1}).forEach(function(cr){var Zn=cr.value;_r(Zn)||ur.push(Vr(Zn,cr.label))}),ur},[Vr,Cr,Fn,Lr,St]),oi=Be(jr,rr,Xn,yr,ct),Ai=C.useMemo(function(){return St!=="tags"||!Xn||oi.some(function(ur){return ur[ct||"value"]===Xn})||oi.some(function(ur){return ur[rr.value]===Xn})?oi:[Vr(Xn)].concat((0,N.Z)(oi))},[Vr,ct,St,oi,Xn,rr]),Li=C.useMemo(function(){return Qt?(0,N.Z)(Ai).sort(function(ur,_r){return Qt(ur,_r)}):Ai},[Ai,Qt]),ei=C.useMemo(function(){return Ae(Li,{fieldNames:rr,childrenAsData:or})},[Li,rr,or]),gi=function(_r){var cr=Dr(_r);if(Kr(cr),gr&&(cr.length!==Lr.length||cr.some(function(Yr,Ni){var yi;return((yi=Lr[Ni])===null||yi===void 0?void 0:yi.value)!==(Yr==null?void 0:Yr.value)}))){var Zn=yn?cr:cr.map(function(Yr){return Yr.value}),Nr=cr.map(function(Yr){return $(Zr(Yr.value))});gr(Jn?Zn:Zn[0],Jn?Nr:Nr[0])}},li=C.useState(null),Ri=(0,U.Z)(li,2),Ii=Ri[0],ji=Ri[1],Ti=C.useState(0),Gi=(0,U.Z)(Ti,2),$r=Gi[0],aa=Gi[1],ga=Dt!==void 0?Dt:St!=="combobox",ua=C.useCallback(function(ur,_r){var cr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Zn=cr.source,Nr=Zn===void 0?"keyboard":Zn;aa(_r),on&&St==="combobox"&&ur!==null&&Nr==="keyboard"&&ji(String(ur))},[on,St]),vi=function(_r,cr,Zn){var Nr=function(){var fa,dr=Zr(_r);return[yn?{label:dr==null?void 0:dr[rr.label],value:_r,key:(fa=dr==null?void 0:dr.key)!==null&&fa!==void 0?fa:_r}:_r,$(dr)]};if(cr&&tn){var Yr=Nr(),Ni=(0,U.Z)(Yr,2),yi=Ni[0],Oi=Ni[1];tn(yi,Oi)}else if(!cr&&cn&&Zn!=="clear"){var Bi=Nr(),va=(0,U.Z)(Bi,2),Ca=va[0],Za=va[1];cn(Ca,Za)}},ca=At(function(ur,_r){var cr,Zn=Jn?_r.selected:!0;Zn?cr=Jn?[].concat((0,N.Z)(Lr),[ur]):[ur]:cr=Lr.filter(function(Nr){return Nr.value!==ur}),gi(cr),vi(ur,Zn),St==="combobox"?ji(""):(!re||an)&&(En(""),ji(""))}),wa=function(_r,cr){gi(_r);var Zn=cr.type,Nr=cr.values;(Zn==="remove"||Zn==="clear")&&Nr.forEach(function(Yr){vi(Yr.value,!1,Zn)})},Pn=function(_r,cr){if(En(_r),ji(null),cr.source==="submit"){var Zn=(_r||"").trim();if(Zn){var Nr=Array.from(new Set([].concat((0,N.Z)(Un),[Zn])));gi(Nr),vi(Zn,!0),En("")}return}cr.source!=="blur"&&(St==="combobox"&&gi(_r),$t==null||$t(_r))},Mi=function(_r){var cr=_r;St!=="tags"&&(cr=_r.map(function(Nr){var Yr=lr.get(Nr);return Yr==null?void 0:Yr.value}).filter(function(Nr){return Nr!==void 0}));var Zn=Array.from(new Set([].concat((0,N.Z)(Un),(0,N.Z)(cr))));gi(Zn),Zn.forEach(function(Nr){vi(Nr,!0)})},na=C.useMemo(function(){var ur=Bt!==!1&&tr!==!1;return(0,ye.Z)((0,ye.Z)({},it),{},{flattenOptions:ei,onActiveValue:ua,defaultActiveFirstOption:ga,onSelect:ca,menuItemSelectedIcon:Ht,rawValues:Un,fieldNames:rr,virtual:ur,direction:dn,listHeight:Rn,listItemHeight:nr,childrenAsData:or})},[it,ei,ua,ga,ca,Ht,Un,rr,Bt,tr,Rn,nr,or]);return C.createElement(tt.Provider,{value:na},C.createElement(Ce,(0,z.Z)({},Gn,{id:Tr,prefixCls:Wt,ref:Oe,omitDomProps:mr,mode:St,displayValues:Ci,onDisplayValuesChange:wa,direction:dn,searchValue:Xn,onSearch:Pn,autoClearSearchValue:an,onSearchSplit:Mi,dropdownMatchSelectWidth:tr,OptionList:Vt,emptyOptions:!ei.length,activeValue:Ii,activeDescendantId:"".concat(Tr,"_list_").concat($r)})))}),Je=vn;Je.Option=fe,Je.OptGroup=A;var It=Je,zt=It},9296:function(Gt,He,h){"use strict";h.r(He),h.d(He,{ResizableTextArea:function(){return xe},default:function(){return se}});var z=h(96663),N=h(44127),Q=h(90493),ye=h(20135),U=h(72071),H=h(6620),S=h(19127),pe=h(92310),a=h.n(pe),C=h(93681),O=h(5643),m=h(18929),u=h(59301),x=h(29301),y=h(34280),L=h(16089),te=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,B=["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"],M={},W;function V(X){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E=X.getAttribute("id")||X.getAttribute("data-reactid")||X.getAttribute("name");if(v&&M[E])return M[E];var K=window.getComputedStyle(X),de=K.getPropertyValue("box-sizing")||K.getPropertyValue("-moz-box-sizing")||K.getPropertyValue("-webkit-box-sizing"),Ne=parseFloat(K.getPropertyValue("padding-bottom"))+parseFloat(K.getPropertyValue("padding-top")),Ue=parseFloat(K.getPropertyValue("border-bottom-width"))+parseFloat(K.getPropertyValue("border-top-width")),ke=B.map(function(ht){return"".concat(ht,":").concat(K.getPropertyValue(ht))}).join(";"),Ve={sizingStyle:ke,paddingSize:Ne,borderSize:Ue,boxSizing:de};return v&&E&&(M[E]=Ve),Ve}function b(X){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,K=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;W||(W=document.createElement("textarea"),W.setAttribute("tab-index","-1"),W.setAttribute("aria-hidden","true"),document.body.appendChild(W)),X.getAttribute("wrap")?W.setAttribute("wrap",X.getAttribute("wrap")):W.removeAttribute("wrap");var de=V(X,v),Ne=de.paddingSize,Ue=de.borderSize,ke=de.boxSizing,Ve=de.sizingStyle;W.setAttribute("style","".concat(Ve,";").concat(te)),W.value=X.value||X.placeholder||"";var ht=void 0,pt=void 0,st,Ft=W.scrollHeight;if(ke==="border-box"?Ft+=Ue:ke==="content-box"&&(Ft-=Ne),E!==null||K!==null){W.value=" ";var Yt=W.scrollHeight-Ne;E!==null&&(ht=Yt*E,ke==="border-box"&&(ht=ht+Ne+Ue),Ft=Math.max(ht,Ft)),K!==null&&(pt=Yt*K,ke==="border-box"&&(pt=pt+Ne+Ue),st=Ft>pt?"":"hidden",Ft=Math.min(pt,Ft))}var en={height:Ft,overflowY:st,resize:"none"};return ht&&(en.minHeight=ht),pt&&(en.maxHeight=pt),en}var T=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],G=0,j=1,be=2,Ee=u.forwardRef(function(X,v){var E=X,K=E.prefixCls,de=E.onPressEnter,Ne=E.defaultValue,Ue=E.value,ke=E.autoSize,Ve=E.onResize,ht=E.className,pt=E.style,st=E.disabled,Ft=E.onChange,Yt=E.onInternalAutoSize,en=(0,H.Z)(E,T),Ut=(0,m.Z)(Ne,{value:Ue,postState:function(A){return A!=null?A:""}}),ut=(0,U.Z)(Ut,2),Et=ut[0],oe=ut[1],ve=function(A){oe(A.target.value),Ft==null||Ft(A)},ie=u.useRef();u.useImperativeHandle(v,function(){return{textArea:ie.current}});var Y=u.useMemo(function(){return ke&&(0,ye.Z)(ke)==="object"?[ke.minRows,ke.maxRows]:[]},[ke]),Ae=(0,U.Z)(Y,2),$=Ae[0],R=Ae[1],I=!!ke,le=function(){try{if(document.activeElement===ie.current){var A=ie.current,gt=A.selectionStart,fe=A.selectionEnd,Me=A.scrollTop;ie.current.setSelectionRange(gt,fe),ie.current.scrollTop=Me}}catch(Dn){}},re=u.useState(be),J=(0,U.Z)(re,2),Ce=J[0],We=J[1],Pe=u.useState(),Be=(0,U.Z)(Pe,2),Xe=Be[0],rt=Be[1],Ye=function(){We(G)};(0,y.Z)(function(){I&&Ye()},[Ue,$,R,I]),(0,y.Z)(function(){if(Ce===G)We(j);else if(Ce===j){var w=b(ie.current,!1,$,R);We(be),rt(w)}else le()},[Ce]);var vt=u.useRef(),wt=function(){L.Z.cancel(vt.current)},mt=function(A){Ce===be&&(Ve==null||Ve(A),ke&&(wt(),vt.current=(0,L.Z)(function(){Ye()})))};u.useEffect(function(){return wt},[]);var Pt=I?Xe:null,At=(0,N.Z)((0,N.Z)({},pt),Pt);return(Ce===G||Ce===j)&&(At.overflowY="hidden",At.overflowX="hidden"),u.createElement(x.Z,{onResize:mt,disabled:!(ke||Ve)},u.createElement("textarea",(0,z.Z)({},en,{ref:ie,style:At,className:a()(K,ht,(0,Q.Z)({},"".concat(K,"-disabled"),st)),disabled:st,value:Et,onChange:ve})))}),xe=Ee,ce=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function ee(X,v){return(0,S.Z)(X||"").slice(0,v).join("")}function Z(X,v,E,K){var de=E;return X?de=ee(E,K):(0,S.Z)(v||"").length<E.length&&(0,S.Z)(E||"").length>K&&(de=v),de}var me=u.forwardRef(function(X,v){var E,K=X.defaultValue,de=X.value,Ne=X.onFocus,Ue=X.onBlur,ke=X.onChange,Ve=X.allowClear,ht=X.maxLength,pt=X.onCompositionStart,st=X.onCompositionEnd,Ft=X.suffix,Yt=X.prefixCls,en=Yt===void 0?"rc-textarea":Yt,Ut=X.classes,ut=X.showCount,Et=X.className,oe=X.style,ve=X.disabled,ie=X.hidden,Y=X.classNames,Ae=X.styles,$=X.onResize,R=(0,H.Z)(X,ce),I=(0,m.Z)(K,{value:de,defaultValue:K}),le=(0,U.Z)(I,2),re=le[0],J=le[1],Ce=(0,u.useRef)(null),We=u.useState(!1),Pe=(0,U.Z)(We,2),Be=Pe[0],Xe=Pe[1],rt=u.useState(!1),Ye=(0,U.Z)(rt,2),vt=Ye[0],wt=Ye[1],mt=u.useRef(),Pt=u.useRef(0),At=u.useState(null),w=(0,U.Z)(At,2),A=w[0],gt=w[1],fe=function(){var rn;(rn=Ce.current)===null||rn===void 0||rn.textArea.focus()};(0,u.useImperativeHandle)(v,function(){return{resizableTextArea:Ce.current,focus:fe,blur:function(){var rn;(rn=Ce.current)===null||rn===void 0||rn.textArea.blur()}}}),(0,u.useEffect)(function(){Xe(function(mr){return!ve&&mr})},[ve]);var Me=Number(ht)>0,Dn=function(rn){wt(!0),mt.current=re,Pt.current=rn.currentTarget.selectionStart,pt==null||pt(rn)},je=function(rn){wt(!1);var vn=rn.currentTarget.value;if(Me){var Je,It=Pt.current>=ht+1||Pt.current===((Je=mt.current)===null||Je===void 0?void 0:Je.length);vn=Z(It,mt.current,vn,ht)}vn!==re&&(J(vn),(0,O.rJ)(rn.currentTarget,rn,ke,vn)),st==null||st(rn)},nt=function(rn){var vn=rn.target.value;if(!vt&&Me){var Je=rn.target.selectionStart>=ht+1||rn.target.selectionStart===vn.length||!rn.target.selectionStart;vn=Z(Je,re,vn,ht)}J(vn),(0,O.rJ)(rn.currentTarget,rn,ke,vn)},tt=function(rn){var vn=R.onPressEnter,Je=R.onKeyDown;rn.key==="Enter"&&vn&&vn(rn),Je==null||Je(rn)},_e=function(rn){Xe(!0),Ne==null||Ne(rn)},De=function(rn){Xe(!1),Ue==null||Ue(rn)},Fe=function(rn){var vn;J(""),fe(),(0,O.rJ)((vn=Ce.current)===null||vn===void 0?void 0:vn.textArea,rn,ke)},Qe=(0,O.D7)(re);!vt&&Me&&de==null&&(Qe=ee(Qe,ht));var ge=Ft,Vt;if(ut){var Ze=(0,S.Z)(Qe).length;(0,ye.Z)(ut)==="object"?Vt=ut.formatter({value:Qe,count:Ze,maxLength:ht}):Vt="".concat(Ze).concat(Me?" / ".concat(ht):""),ge=u.createElement(u.Fragment,null,ge,u.createElement("span",{className:a()("".concat(en,"-data-count"),Y==null?void 0:Y.count),style:Ae==null?void 0:Ae.count},Vt))}var gn=function(rn){var vn;$==null||$(rn),(vn=Ce.current)!==null&&vn!==void 0&&vn.textArea.style.height&&gt(!0)},In=!R.autoSize&&!ut&&!Ve,Hn=u.createElement(C.BaseInput,{value:Qe,allowClear:Ve,handleReset:Fe,suffix:ge,prefixCls:en,classes:{affixWrapper:a()(Ut==null?void 0:Ut.affixWrapper,(E={},(0,Q.Z)(E,"".concat(en,"-show-count"),ut),(0,Q.Z)(E,"".concat(en,"-textarea-allow-clear"),Ve),E))},disabled:ve,focused:Be,className:Et,style:(0,N.Z)((0,N.Z)({},oe),A&&!In?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Vt=="string"?Vt:void 0}},hidden:ie,inputElement:u.createElement(xe,(0,z.Z)({},R,{onKeyDown:tt,onChange:nt,onFocus:_e,onBlur:De,onCompositionStart:Dn,onCompositionEnd:je,className:Y==null?void 0:Y.textarea,style:(0,N.Z)((0,N.Z)({},Ae==null?void 0:Ae.textarea),{},{resize:oe==null?void 0:oe.resize}),disabled:ve,prefixCls:en,onResize:gn,ref:Ce}))});return Hn}),P=me,se=P},55477:function(Gt,He,h){"use strict";h.d(He,{G:function(){return u},Z:function(){return te}});var z=h(96663),N=h(44127),Q=h(6620),ye=h(35593),U=h(59301),H={shiftX:64,adjustY:1},S={adjustX:1,shiftY:!0},pe=[0,0],a={left:{points:["cr","cl"],overflow:S,offset:[-4,0],targetOffset:pe},right:{points:["cl","cr"],overflow:S,offset:[4,0],targetOffset:pe},top:{points:["bc","tc"],overflow:H,offset:[0,-4],targetOffset:pe},bottom:{points:["tc","bc"],overflow:H,offset:[0,4],targetOffset:pe},topLeft:{points:["bl","tl"],overflow:H,offset:[0,-4],targetOffset:pe},leftTop:{points:["tr","tl"],overflow:S,offset:[-4,0],targetOffset:pe},topRight:{points:["br","tr"],overflow:H,offset:[0,-4],targetOffset:pe},rightTop:{points:["tl","tr"],overflow:S,offset:[4,0],targetOffset:pe},bottomRight:{points:["tr","br"],overflow:H,offset:[0,4],targetOffset:pe},rightBottom:{points:["bl","br"],overflow:S,offset:[4,0],targetOffset:pe},bottomLeft:{points:["tl","bl"],overflow:H,offset:[0,4],targetOffset:pe},leftBottom:{points:["br","bl"],overflow:S,offset:[-4,0],targetOffset:pe}},C=null,O=h(92310),m=h.n(O);function u(B){var M=B.children,W=B.prefixCls,V=B.id,b=B.overlayInnerStyle,T=B.className,G=B.style;return U.createElement("div",{className:m()("".concat(W,"-content"),T),style:G},U.createElement("div",{className:"".concat(W,"-inner"),id:V,role:"tooltip",style:b},typeof M=="function"?M():M))}var x=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],y=function(M,W){var V=M.overlayClassName,b=M.trigger,T=b===void 0?["hover"]:b,G=M.mouseEnterDelay,j=G===void 0?0:G,be=M.mouseLeaveDelay,Ee=be===void 0?.1:be,xe=M.overlayStyle,ce=M.prefixCls,ee=ce===void 0?"rc-tooltip":ce,Z=M.children,me=M.onVisibleChange,P=M.afterVisibleChange,se=M.transitionName,X=M.animation,v=M.motion,E=M.placement,K=E===void 0?"right":E,de=M.align,Ne=de===void 0?{}:de,Ue=M.destroyTooltipOnHide,ke=Ue===void 0?!1:Ue,Ve=M.defaultVisible,ht=M.getTooltipContainer,pt=M.overlayInnerStyle,st=M.arrowContent,Ft=M.overlay,Yt=M.id,en=M.showArrow,Ut=en===void 0?!0:en,ut=(0,Q.Z)(M,x),Et=(0,U.useRef)(null);(0,U.useImperativeHandle)(W,function(){return Et.current});var oe=(0,N.Z)({},ut);"visible"in M&&(oe.popupVisible=M.visible);var ve=function(){return U.createElement(u,{key:"content",prefixCls:ee,id:Yt,overlayInnerStyle:pt},Ft)};return U.createElement(ye.Z,(0,z.Z)({popupClassName:V,prefixCls:ee,popup:ve,action:T,builtinPlacements:a,popupPlacement:K,ref:Et,popupAlign:Ne,getPopupContainer:ht,onPopupVisibleChange:me,afterPopupVisibleChange:P,popupTransitionName:se,popupAnimation:X,popupMotion:v,defaultPopupVisible:Ve,autoDestroy:ke,mouseLeaveDelay:Ee,popupStyle:xe,mouseEnterDelay:j,arrow:Ut},oe),Z)},L=(0,U.forwardRef)(y),te=L},39417:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return j}});var z=h(96663),N=h(90493),Q=h(6620),ye=h(44127),U=h(52884),H=h(95727),S=h(89866),pe=h(65711),a=h(85745),C=h(92310),O=h.n(C),m=h(26112),u=h(59301),x=h(39378),y=function(Ee){for(var xe=Ee.prefixCls,ce=Ee.level,ee=Ee.isStart,Z=Ee.isEnd,me="".concat(xe,"-indent-unit"),P=[],se=0;se<ce;se+=1){var X;P.push(u.createElement("span",{key:se,className:O()(me,(X={},(0,N.Z)(X,"".concat(me,"-start"),ee[se]),(0,N.Z)(X,"".concat(me,"-end"),Z[se]),X))}))}return u.createElement("span",{"aria-hidden":"true",className:"".concat(xe,"-indent")},P)},L=u.memo(y),te=h(67841),B=h(71430),M=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],W="open",V="close",b="---",T=function(be){(0,pe.Z)(xe,be);var Ee=(0,a.Z)(xe);function xe(){var ce;(0,U.Z)(this,xe);for(var ee=arguments.length,Z=new Array(ee),me=0;me<ee;me++)Z[me]=arguments[me];return ce=Ee.call.apply(Ee,[this].concat(Z)),ce.state={dragNodeHighlight:!1},ce.selectHandle=void 0,ce.cacheIndent=void 0,ce.onSelectorClick=function(P){var se=ce.props.context.onNodeClick;se(P,(0,B.F)(ce.props)),ce.isSelectable()?ce.onSelect(P):ce.onCheck(P)},ce.onSelectorDoubleClick=function(P){var se=ce.props.context.onNodeDoubleClick;se(P,(0,B.F)(ce.props))},ce.onSelect=function(P){if(!ce.isDisabled()){var se=ce.props.context.onNodeSelect;se(P,(0,B.F)(ce.props))}},ce.onCheck=function(P){if(!ce.isDisabled()){var se=ce.props,X=se.disableCheckbox,v=se.checked,E=ce.props.context.onNodeCheck;if(!(!ce.isCheckable()||X)){var K=!v;E(P,(0,B.F)(ce.props),K)}}},ce.onMouseEnter=function(P){var se=ce.props.context.onNodeMouseEnter;se(P,(0,B.F)(ce.props))},ce.onMouseLeave=function(P){var se=ce.props.context.onNodeMouseLeave;se(P,(0,B.F)(ce.props))},ce.onContextMenu=function(P){var se=ce.props.context.onNodeContextMenu;se(P,(0,B.F)(ce.props))},ce.onDragStart=function(P){var se=ce.props.context.onNodeDragStart;P.stopPropagation(),ce.setState({dragNodeHighlight:!0}),se(P,(0,S.Z)(ce));try{P.dataTransfer.setData("text/plain","")}catch(X){}},ce.onDragEnter=function(P){var se=ce.props.context.onNodeDragEnter;P.preventDefault(),P.stopPropagation(),se(P,(0,S.Z)(ce))},ce.onDragOver=function(P){var se=ce.props.context.onNodeDragOver;P.preventDefault(),P.stopPropagation(),se(P,(0,S.Z)(ce))},ce.onDragLeave=function(P){var se=ce.props.context.onNodeDragLeave;P.stopPropagation(),se(P,(0,S.Z)(ce))},ce.onDragEnd=function(P){var se=ce.props.context.onNodeDragEnd;P.stopPropagation(),ce.setState({dragNodeHighlight:!1}),se(P,(0,S.Z)(ce))},ce.onDrop=function(P){var se=ce.props.context.onNodeDrop;P.preventDefault(),P.stopPropagation(),ce.setState({dragNodeHighlight:!1}),se(P,(0,S.Z)(ce))},ce.onExpand=function(P){var se=ce.props,X=se.loading,v=se.context.onNodeExpand;X||v(P,(0,B.F)(ce.props))},ce.setSelectHandle=function(P){ce.selectHandle=P},ce.getNodeState=function(){var P=ce.props.expanded;return ce.isLeaf()?null:P?W:V},ce.hasChildren=function(){var P=ce.props.eventKey,se=ce.props.context.keyEntities,X=(0,te.Z)(se,P)||{},v=X.children;return!!(v||[]).length},ce.isLeaf=function(){var P=ce.props,se=P.isLeaf,X=P.loaded,v=ce.props.context.loadData,E=ce.hasChildren();return se===!1?!1:se||!v&&!E||v&&X&&!E},ce.isDisabled=function(){var P=ce.props.disabled,se=ce.props.context.disabled;return!!(se||P)},ce.isCheckable=function(){var P=ce.props.checkable,se=ce.props.context.checkable;return!se||P===!1?!1:se},ce.syncLoadData=function(P){var se=P.expanded,X=P.loading,v=P.loaded,E=ce.props.context,K=E.loadData,de=E.onNodeLoad;X||K&&se&&!ce.isLeaf()&&!ce.hasChildren()&&!v&&de((0,B.F)(ce.props))},ce.isDraggable=function(){var P=ce.props,se=P.data,X=P.context.draggable;return!!(X&&(!X.nodeDraggable||X.nodeDraggable(se)))},ce.renderDragHandler=function(){var P=ce.props.context,se=P.draggable,X=P.prefixCls;return se!=null&&se.icon?u.createElement("span",{className:"".concat(X,"-draggable-icon")},se.icon):null},ce.renderSwitcherIconDom=function(P){var se=ce.props.switcherIcon,X=ce.props.context.switcherIcon,v=se||X;return typeof v=="function"?v((0,ye.Z)((0,ye.Z)({},ce.props),{},{isLeaf:P})):v},ce.renderSwitcher=function(){var P=ce.props.expanded,se=ce.props.context.prefixCls;if(ce.isLeaf()){var X=ce.renderSwitcherIconDom(!0);return X!==!1?u.createElement("span",{className:O()("".concat(se,"-switcher"),"".concat(se,"-switcher-noop"))},X):null}var v=O()("".concat(se,"-switcher"),"".concat(se,"-switcher_").concat(P?W:V)),E=ce.renderSwitcherIconDom(!1);return E!==!1?u.createElement("span",{onClick:ce.onExpand,className:v},E):null},ce.renderCheckbox=function(){var P=ce.props,se=P.checked,X=P.halfChecked,v=P.disableCheckbox,E=ce.props.context.prefixCls,K=ce.isDisabled(),de=ce.isCheckable();if(!de)return null;var Ne=typeof de!="boolean"?de:null;return u.createElement("span",{className:O()("".concat(E,"-checkbox"),se&&"".concat(E,"-checkbox-checked"),!se&&X&&"".concat(E,"-checkbox-indeterminate"),(K||v)&&"".concat(E,"-checkbox-disabled")),onClick:ce.onCheck},Ne)},ce.renderIcon=function(){var P=ce.props.loading,se=ce.props.context.prefixCls;return u.createElement("span",{className:O()("".concat(se,"-iconEle"),"".concat(se,"-icon__").concat(ce.getNodeState()||"docu"),P&&"".concat(se,"-icon_loading"))})},ce.renderSelector=function(){var P=ce.state.dragNodeHighlight,se=ce.props,X=se.title,v=X===void 0?b:X,E=se.selected,K=se.icon,de=se.loading,Ne=se.data,Ue=ce.props.context,ke=Ue.prefixCls,Ve=Ue.showIcon,ht=Ue.icon,pt=Ue.loadData,st=Ue.titleRender,Ft=ce.isDisabled(),Yt="".concat(ke,"-node-content-wrapper"),en;if(Ve){var Ut=K||ht;en=Ut?u.createElement("span",{className:O()("".concat(ke,"-iconEle"),"".concat(ke,"-icon__customize"))},typeof Ut=="function"?Ut(ce.props):Ut):ce.renderIcon()}else pt&&de&&(en=ce.renderIcon());var ut;typeof v=="function"?ut=v(Ne):st?ut=st(Ne):ut=v;var Et=u.createElement("span",{className:"".concat(ke,"-title")},ut);return u.createElement("span",{ref:ce.setSelectHandle,title:typeof v=="string"?v:"",className:O()("".concat(Yt),"".concat(Yt,"-").concat(ce.getNodeState()||"normal"),!Ft&&(E||P)&&"".concat(ke,"-node-selected")),onMouseEnter:ce.onMouseEnter,onMouseLeave:ce.onMouseLeave,onContextMenu:ce.onContextMenu,onClick:ce.onSelectorClick,onDoubleClick:ce.onSelectorDoubleClick},en,Et,ce.renderDropIndicator())},ce.renderDropIndicator=function(){var P=ce.props,se=P.disabled,X=P.eventKey,v=ce.props.context,E=v.draggable,K=v.dropLevelOffset,de=v.dropPosition,Ne=v.prefixCls,Ue=v.indent,ke=v.dropIndicatorRender,Ve=v.dragOverNodeKey,ht=v.direction,pt=!!E,st=!se&&pt&&Ve===X,Ft=Ue!=null?Ue:ce.cacheIndent;return ce.cacheIndent=Ue,st?ke({dropPosition:de,dropLevelOffset:K,indent:Ft,prefixCls:Ne,direction:ht}):null},ce}return(0,H.Z)(xe,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var ee=this.props.selectable,Z=this.props.context.selectable;return typeof ee=="boolean"?ee:Z}},{key:"render",value:function(){var ee,Z=this.props,me=Z.eventKey,P=Z.className,se=Z.style,X=Z.dragOver,v=Z.dragOverGapTop,E=Z.dragOverGapBottom,K=Z.isLeaf,de=Z.isStart,Ne=Z.isEnd,Ue=Z.expanded,ke=Z.selected,Ve=Z.checked,ht=Z.halfChecked,pt=Z.loading,st=Z.domRef,Ft=Z.active,Yt=Z.data,en=Z.onMouseMove,Ut=Z.selectable,ut=(0,Q.Z)(Z,M),Et=this.props.context,oe=Et.prefixCls,ve=Et.filterTreeNode,ie=Et.keyEntities,Y=Et.dropContainerKey,Ae=Et.dropTargetKey,$=Et.draggingNodeKey,R=this.isDisabled(),I=(0,m.Z)(ut,{aria:!0,data:!0}),le=(0,te.Z)(ie,me)||{},re=le.level,J=Ne[Ne.length-1],Ce=this.isDraggable(),We=!R&&Ce,Pe=$===me,Be=Ut!==void 0?{"aria-selected":!!Ut}:void 0;return u.createElement("div",(0,z.Z)({ref:st,className:O()(P,"".concat(oe,"-treenode"),(ee={},(0,N.Z)(ee,"".concat(oe,"-treenode-disabled"),R),(0,N.Z)(ee,"".concat(oe,"-treenode-switcher-").concat(Ue?"open":"close"),!K),(0,N.Z)(ee,"".concat(oe,"-treenode-checkbox-checked"),Ve),(0,N.Z)(ee,"".concat(oe,"-treenode-checkbox-indeterminate"),ht),(0,N.Z)(ee,"".concat(oe,"-treenode-selected"),ke),(0,N.Z)(ee,"".concat(oe,"-treenode-loading"),pt),(0,N.Z)(ee,"".concat(oe,"-treenode-active"),Ft),(0,N.Z)(ee,"".concat(oe,"-treenode-leaf-last"),J),(0,N.Z)(ee,"".concat(oe,"-treenode-draggable"),Ce),(0,N.Z)(ee,"dragging",Pe),(0,N.Z)(ee,"drop-target",Ae===me),(0,N.Z)(ee,"drop-container",Y===me),(0,N.Z)(ee,"drag-over",!R&&X),(0,N.Z)(ee,"drag-over-gap-top",!R&&v),(0,N.Z)(ee,"drag-over-gap-bottom",!R&&E),(0,N.Z)(ee,"filter-node",ve&&ve((0,B.F)(this.props))),ee)),style:se,draggable:We,"aria-grabbed":Pe,onDragStart:We?this.onDragStart:void 0,onDragEnter:Ce?this.onDragEnter:void 0,onDragOver:Ce?this.onDragOver:void 0,onDragLeave:Ce?this.onDragLeave:void 0,onDrop:Ce?this.onDrop:void 0,onDragEnd:Ce?this.onDragEnd:void 0,onMouseMove:en},Be,I),u.createElement(L,{prefixCls:oe,level:re,isStart:de,isEnd:Ne}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),xe}(u.Component),G=function(Ee){return u.createElement(x.k.Consumer,null,function(xe){return u.createElement(T,(0,z.Z)({},Ee,{context:xe}))})};G.displayName="TreeNode",G.isTreeNode=1;var j=G},39378:function(Gt,He,h){"use strict";h.d(He,{k:function(){return N}});var z=h(59301),N=z.createContext(null)},43858:function(Gt,He,h){"use strict";h.d(He,{O:function(){return j.Z},Z:function(){return Et}});var z=h(96663),N=h(90493),Q=h(20135),ye=h(44127),U=h(19127),H=h(52884),S=h(95727),pe=h(89866),a=h(65711),C=h(85745),O=h(92310),m=h.n(O),u=h(10228),x=h(26112),y=h(48736),L=h(59301),te=h(39378);function B(oe){var ve=oe.dropPosition,ie=oe.dropLevelOffset,Y=oe.indent,Ae={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(ve){case-1:Ae.top=0,Ae.left=-ie*Y;break;case 1:Ae.bottom=0,Ae.left=-ie*Y;break;case 0:Ae.bottom=0,Ae.left=Y;break}return L.createElement("div",{style:Ae})}function M(oe){if(oe==null)throw new TypeError("Cannot destructure "+oe)}var W=h(72071),V=h(6620),b=h(34280),T=h(24916),G=h(77900),j=h(39417);function be(oe,ve){var ie=L.useState(!1),Y=(0,W.Z)(ie,2),Ae=Y[0],$=Y[1];L.useLayoutEffect(function(){if(Ae)return oe(),function(){ve()}},[Ae]),L.useLayoutEffect(function(){return $(!0),function(){$(!1)}},[])}var Ee=h(71430),xe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],ce=function(ve,ie){var Y=ve.className,Ae=ve.style,$=ve.motion,R=ve.motionNodes,I=ve.motionType,le=ve.onMotionStart,re=ve.onMotionEnd,J=ve.active,Ce=ve.treeNodeRequiredProps,We=(0,V.Z)(ve,xe),Pe=L.useState(!0),Be=(0,W.Z)(Pe,2),Xe=Be[0],rt=Be[1],Ye=L.useContext(te.k),vt=Ye.prefixCls,wt=R&&I!=="hide";(0,b.Z)(function(){R&&wt!==Xe&&rt(wt)},[R]);var mt=function(){R&&le()},Pt=L.useRef(!1),At=function(){R&&!Pt.current&&(Pt.current=!0,re())};be(mt,At);var w=function(gt){wt===gt&&At()};return R?L.createElement(G.default,(0,z.Z)({ref:ie,visible:Xe},$,{motionAppear:I==="show",onVisibleChanged:w}),function(A,gt){var fe=A.className,Me=A.style;return L.createElement("div",{ref:gt,className:m()("".concat(vt,"-treenode-motion"),fe),style:Me},R.map(function(Dn){var je=(0,z.Z)({},(M(Dn.data),Dn.data)),nt=Dn.title,tt=Dn.key,_e=Dn.isStart,De=Dn.isEnd;delete je.children;var Fe=(0,Ee.H8)(tt,Ce);return L.createElement(j.Z,(0,z.Z)({},je,Fe,{title:nt,active:J,data:Dn.data,key:tt,isStart:_e,isEnd:De}))}))}):L.createElement(j.Z,(0,z.Z)({domRef:ie,className:Y,style:Ae},We,{active:J}))};ce.displayName="MotionTreeNode";var ee=L.forwardRef(ce),Z=ee;function me(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ie=oe.length,Y=ve.length;if(Math.abs(ie-Y)!==1)return{add:!1,key:null};function Ae($,R){var I=new Map;$.forEach(function(re){I.set(re,!0)});var le=R.filter(function(re){return!I.has(re)});return le.length===1?le[0]:null}return ie<Y?{add:!0,key:Ae(oe,ve)}:{add:!1,key:Ae(ve,oe)}}function P(oe,ve,ie){var Y=oe.findIndex(function(I){return I.key===ie}),Ae=oe[Y+1],$=ve.findIndex(function(I){return I.key===ie});if(Ae){var R=ve.findIndex(function(I){return I.key===Ae.key});return ve.slice($+1,R)}return ve.slice($+1)}var se=["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"],X={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},v=function(){},E="RC_TREE_MOTION_".concat(Math.random()),K={key:E},de={key:E,level:0,index:0,pos:"0",node:K,nodes:[K]},Ne={parent:null,children:[],pos:de.pos,data:K,title:null,key:E,isStart:[],isEnd:[]};function Ue(oe,ve,ie,Y){return ve===!1||!ie?oe:oe.slice(0,Math.ceil(ie/Y)+1)}function ke(oe){var ve=oe.key,ie=oe.pos;return(0,Ee.km)(ve,ie)}function Ve(oe){for(var ve=String(oe.data.key),ie=oe;ie.parent;)ie=ie.parent,ve="".concat(ie.data.key," > ").concat(ve);return ve}var ht=L.forwardRef(function(oe,ve){var ie=oe.prefixCls,Y=oe.data,Ae=oe.selectable,$=oe.checkable,R=oe.expandedKeys,I=oe.selectedKeys,le=oe.checkedKeys,re=oe.loadedKeys,J=oe.loadingKeys,Ce=oe.halfCheckedKeys,We=oe.keyEntities,Pe=oe.disabled,Be=oe.dragging,Xe=oe.dragOverNodeKey,rt=oe.dropPosition,Ye=oe.motion,vt=oe.height,wt=oe.itemHeight,mt=oe.virtual,Pt=oe.focusable,At=oe.activeItem,w=oe.focused,A=oe.tabIndex,gt=oe.onKeyDown,fe=oe.onFocus,Me=oe.onBlur,Dn=oe.onActiveChange,je=oe.onListChangeStart,nt=oe.onListChangeEnd,tt=(0,V.Z)(oe,se),_e=L.useRef(null),De=L.useRef(null);L.useImperativeHandle(ve,function(){return{scrollTo:function(Rt){_e.current.scrollTo(Rt)},getIndentWidth:function(){return De.current.offsetWidth}}});var Fe=L.useState(R),Qe=(0,W.Z)(Fe,2),ge=Qe[0],Vt=Qe[1],Ze=L.useState(Y),gn=(0,W.Z)(Ze,2),In=gn[0],Hn=gn[1],mr=L.useState(Y),rn=(0,W.Z)(mr,2),vn=rn[0],Je=rn[1],It=L.useState([]),zt=(0,W.Z)(It,2),Ke=zt[0],Oe=zt[1],bt=L.useState(null),St=(0,W.Z)(bt,2),qt=St[0],Wt=St[1],on=L.useRef(Y);on.current=Y;function Xt(){var $t=on.current;Hn($t),Je($t),Oe([]),Wt(null),nt()}(0,b.Z)(function(){Vt(R);var $t=me(ge,R);if($t.key!==null)if($t.add){var Rt=In.findIndex(function(Mn){var Qt=Mn.key;return Qt===$t.key}),an=Ue(P(In,Y,$t.key),mt,vt,wt),tn=In.slice();tn.splice(Rt+1,0,Ne),Je(tn),Oe(an),Wt("show")}else{var cn=Y.findIndex(function(Mn){var Qt=Mn.key;return Qt===$t.key}),bn=Ue(P(Y,In,$t.key),mt,vt,wt),tr=Y.slice();tr.splice(cn+1,0,Ne),Je(tr),Oe(bn),Wt("hide")}else In!==Y&&(Hn(Y),Je(Y))},[R,Y]),L.useEffect(function(){Be||Xt()},[Be]);var hn=Ye?vn:Y,An={expandedKeys:R,selectedKeys:I,loadedKeys:re,loadingKeys:J,checkedKeys:le,halfCheckedKeys:Ce,dragOverNodeKey:Xe,dropPosition:rt,keyEntities:We};return L.createElement(L.Fragment,null,w&&At&&L.createElement("span",{style:X,"aria-live":"assertive"},Ve(At)),L.createElement("div",null,L.createElement("input",{style:X,disabled:Pt===!1||Pe,tabIndex:Pt!==!1?A:null,onKeyDown:gt,onFocus:fe,onBlur:Me,value:"",onChange:v,"aria-label":"for screen reader"})),L.createElement("div",{className:"".concat(ie,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},L.createElement("div",{className:"".concat(ie,"-indent")},L.createElement("div",{ref:De,className:"".concat(ie,"-indent-unit")}))),L.createElement(T.Z,(0,z.Z)({},tt,{data:hn,itemKey:ke,height:vt,fullHeight:!1,virtual:mt,itemHeight:wt,prefixCls:"".concat(ie,"-list"),ref:_e,onVisibleChange:function(Rt,an){var tn=new Set(Rt),cn=an.filter(function(bn){return!tn.has(bn)});cn.some(function(bn){return ke(bn)===E})&&Xt()}}),function($t){var Rt=$t.pos,an=(0,z.Z)({},(M($t.data),$t.data)),tn=$t.title,cn=$t.key,bn=$t.isStart,tr=$t.isEnd,Mn=(0,Ee.km)(cn,Rt);delete an.key,delete an.children;var Qt=(0,Ee.H8)(Mn,An);return L.createElement(Z,(0,z.Z)({},an,Qt,{title:tn,active:!!At&&cn===At.key,pos:Rt,data:$t.data,isStart:bn,isEnd:tr,motion:Ye,motionNodes:cn===E?Ke:null,motionType:qt,onMotionStart:je,onMotionEnd:Xt,treeNodeRequiredProps:An,onMouseMove:function(){Dn(null)}}))}))});ht.displayName="NodeList";var pt=ht,st=h(35654),Ft=h(90782),Yt=h(67841),en=10,Ut=function(oe){(0,a.Z)(ie,oe);var ve=(0,C.Z)(ie);function ie(){var Y;(0,H.Z)(this,ie);for(var Ae=arguments.length,$=new Array(Ae),R=0;R<Ae;R++)$[R]=arguments[R];return Y=ve.call.apply(ve,[this].concat($)),Y.destroyed=!1,Y.delayedDragEnterLogic=void 0,Y.loadingRetryTimes={},Y.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,Ee.w$)()},Y.dragStartMousePosition=null,Y.dragNode=void 0,Y.currentMouseOverDroppableNodeKey=null,Y.listRef=L.createRef(),Y.onNodeDragStart=function(I,le){var re=Y.state,J=re.expandedKeys,Ce=re.keyEntities,We=Y.props.onDragStart,Pe=le.props.eventKey;Y.dragNode=le,Y.dragStartMousePosition={x:I.clientX,y:I.clientY};var Be=(0,st._5)(J,Pe);Y.setState({draggingNodeKey:Pe,dragChildrenKeys:(0,st.wA)(Pe,Ce),indent:Y.listRef.current.getIndentWidth()}),Y.setExpandedKeys(Be),window.addEventListener("dragend",Y.onWindowDragEnd),We==null||We({event:I,node:(0,Ee.F)(le.props)})},Y.onNodeDragEnter=function(I,le){var re=Y.state,J=re.expandedKeys,Ce=re.keyEntities,We=re.dragChildrenKeys,Pe=re.flattenNodes,Be=re.indent,Xe=Y.props,rt=Xe.onDragEnter,Ye=Xe.onExpand,vt=Xe.allowDrop,wt=Xe.direction,mt=le.props,Pt=mt.pos,At=mt.eventKey,w=(0,pe.Z)(Y),A=w.dragNode;if(Y.currentMouseOverDroppableNodeKey!==At&&(Y.currentMouseOverDroppableNodeKey=At),!A){Y.resetDragState();return}var gt=(0,st.OM)(I,A,le,Be,Y.dragStartMousePosition,vt,Pe,Ce,J,wt),fe=gt.dropPosition,Me=gt.dropLevelOffset,Dn=gt.dropTargetKey,je=gt.dropContainerKey,nt=gt.dropTargetPos,tt=gt.dropAllowed,_e=gt.dragOverNodeKey;if(We.indexOf(Dn)!==-1||!tt){Y.resetDragState();return}if(Y.delayedDragEnterLogic||(Y.delayedDragEnterLogic={}),Object.keys(Y.delayedDragEnterLogic).forEach(function(De){clearTimeout(Y.delayedDragEnterLogic[De])}),A.props.eventKey!==le.props.eventKey&&(I.persist(),Y.delayedDragEnterLogic[Pt]=window.setTimeout(function(){if(Y.state.draggingNodeKey!==null){var De=(0,U.Z)(J),Fe=(0,Yt.Z)(Ce,le.props.eventKey);Fe&&(Fe.children||[]).length&&(De=(0,st.L0)(J,le.props.eventKey)),"expandedKeys"in Y.props||Y.setExpandedKeys(De),Ye==null||Ye(De,{node:(0,Ee.F)(le.props),expanded:!0,nativeEvent:I.nativeEvent})}},800)),A.props.eventKey===Dn&&Me===0){Y.resetDragState();return}Y.setState({dragOverNodeKey:_e,dropPosition:fe,dropLevelOffset:Me,dropTargetKey:Dn,dropContainerKey:je,dropTargetPos:nt,dropAllowed:tt}),rt==null||rt({event:I,node:(0,Ee.F)(le.props),expandedKeys:J})},Y.onNodeDragOver=function(I,le){var re=Y.state,J=re.dragChildrenKeys,Ce=re.flattenNodes,We=re.keyEntities,Pe=re.expandedKeys,Be=re.indent,Xe=Y.props,rt=Xe.onDragOver,Ye=Xe.allowDrop,vt=Xe.direction,wt=(0,pe.Z)(Y),mt=wt.dragNode;if(mt){var Pt=(0,st.OM)(I,mt,le,Be,Y.dragStartMousePosition,Ye,Ce,We,Pe,vt),At=Pt.dropPosition,w=Pt.dropLevelOffset,A=Pt.dropTargetKey,gt=Pt.dropContainerKey,fe=Pt.dropAllowed,Me=Pt.dropTargetPos,Dn=Pt.dragOverNodeKey;J.indexOf(A)!==-1||!fe||(mt.props.eventKey===A&&w===0?Y.state.dropPosition===null&&Y.state.dropLevelOffset===null&&Y.state.dropTargetKey===null&&Y.state.dropContainerKey===null&&Y.state.dropTargetPos===null&&Y.state.dropAllowed===!1&&Y.state.dragOverNodeKey===null||Y.resetDragState():At===Y.state.dropPosition&&w===Y.state.dropLevelOffset&&A===Y.state.dropTargetKey&&gt===Y.state.dropContainerKey&&Me===Y.state.dropTargetPos&&fe===Y.state.dropAllowed&&Dn===Y.state.dragOverNodeKey||Y.setState({dropPosition:At,dropLevelOffset:w,dropTargetKey:A,dropContainerKey:gt,dropTargetPos:Me,dropAllowed:fe,dragOverNodeKey:Dn}),rt==null||rt({event:I,node:(0,Ee.F)(le.props)}))}},Y.onNodeDragLeave=function(I,le){Y.currentMouseOverDroppableNodeKey===le.props.eventKey&&!I.currentTarget.contains(I.relatedTarget)&&(Y.resetDragState(),Y.currentMouseOverDroppableNodeKey=null);var re=Y.props.onDragLeave;re==null||re({event:I,node:(0,Ee.F)(le.props)})},Y.onWindowDragEnd=function(I){Y.onNodeDragEnd(I,null,!0),window.removeEventListener("dragend",Y.onWindowDragEnd)},Y.onNodeDragEnd=function(I,le){var re=Y.props.onDragEnd;Y.setState({dragOverNodeKey:null}),Y.cleanDragState(),re==null||re({event:I,node:(0,Ee.F)(le.props)}),Y.dragNode=null,window.removeEventListener("dragend",Y.onWindowDragEnd)},Y.onNodeDrop=function(I,le){var re,J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ce=Y.state,We=Ce.dragChildrenKeys,Pe=Ce.dropPosition,Be=Ce.dropTargetKey,Xe=Ce.dropTargetPos,rt=Ce.dropAllowed;if(rt){var Ye=Y.props.onDrop;if(Y.setState({dragOverNodeKey:null}),Y.cleanDragState(),Be!==null){var vt=(0,ye.Z)((0,ye.Z)({},(0,Ee.H8)(Be,Y.getTreeNodeRequiredProps())),{},{active:((re=Y.getActiveItem())===null||re===void 0?void 0:re.key)===Be,data:(0,Yt.Z)(Y.state.keyEntities,Be).node}),wt=We.indexOf(Be)!==-1;(0,y.ZP)(!wt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var mt=(0,st.yx)(Xe),Pt={event:I,node:(0,Ee.F)(vt),dragNode:Y.dragNode?(0,Ee.F)(Y.dragNode.props):null,dragNodesKeys:[Y.dragNode.props.eventKey].concat(We),dropToGap:Pe!==0,dropPosition:Pe+Number(mt[mt.length-1])};J||Ye==null||Ye(Pt),Y.dragNode=null}}},Y.cleanDragState=function(){var I=Y.state.draggingNodeKey;I!==null&&Y.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Y.dragStartMousePosition=null,Y.currentMouseOverDroppableNodeKey=null},Y.triggerExpandActionExpand=function(I,le){var re=Y.state,J=re.expandedKeys,Ce=re.flattenNodes,We=le.expanded,Pe=le.key,Be=le.isLeaf;if(!(Be||I.shiftKey||I.metaKey||I.ctrlKey)){var Xe=Ce.filter(function(Ye){return Ye.key===Pe})[0],rt=(0,Ee.F)((0,ye.Z)((0,ye.Z)({},(0,Ee.H8)(Pe,Y.getTreeNodeRequiredProps())),{},{data:Xe.data}));Y.setExpandedKeys(We?(0,st._5)(J,Pe):(0,st.L0)(J,Pe)),Y.onNodeExpand(I,rt)}},Y.onNodeClick=function(I,le){var re=Y.props,J=re.onClick,Ce=re.expandAction;Ce==="click"&&Y.triggerExpandActionExpand(I,le),J==null||J(I,le)},Y.onNodeDoubleClick=function(I,le){var re=Y.props,J=re.onDoubleClick,Ce=re.expandAction;Ce==="doubleClick"&&Y.triggerExpandActionExpand(I,le),J==null||J(I,le)},Y.onNodeSelect=function(I,le){var re=Y.state.selectedKeys,J=Y.state,Ce=J.keyEntities,We=J.fieldNames,Pe=Y.props,Be=Pe.onSelect,Xe=Pe.multiple,rt=le.selected,Ye=le[We.key],vt=!rt;vt?Xe?re=(0,st.L0)(re,Ye):re=[Ye]:re=(0,st._5)(re,Ye);var wt=re.map(function(mt){var Pt=(0,Yt.Z)(Ce,mt);return Pt?Pt.node:null}).filter(function(mt){return mt});Y.setUncontrolledState({selectedKeys:re}),Be==null||Be(re,{event:"select",selected:vt,node:le,selectedNodes:wt,nativeEvent:I.nativeEvent})},Y.onNodeCheck=function(I,le,re){var J=Y.state,Ce=J.keyEntities,We=J.checkedKeys,Pe=J.halfCheckedKeys,Be=Y.props,Xe=Be.checkStrictly,rt=Be.onCheck,Ye=le.key,vt,wt={event:"check",node:le,checked:re,nativeEvent:I.nativeEvent};if(Xe){var mt=re?(0,st.L0)(We,Ye):(0,st._5)(We,Ye),Pt=(0,st._5)(Pe,Ye);vt={checked:mt,halfChecked:Pt},wt.checkedNodes=mt.map(function(Me){return(0,Yt.Z)(Ce,Me)}).filter(function(Me){return Me}).map(function(Me){return Me.node}),Y.setUncontrolledState({checkedKeys:mt})}else{var At=(0,Ft.S)([].concat((0,U.Z)(We),[Ye]),!0,Ce),w=At.checkedKeys,A=At.halfCheckedKeys;if(!re){var gt=new Set(w);gt.delete(Ye);var fe=(0,Ft.S)(Array.from(gt),{checked:!1,halfCheckedKeys:A},Ce);w=fe.checkedKeys,A=fe.halfCheckedKeys}vt=w,wt.checkedNodes=[],wt.checkedNodesPositions=[],wt.halfCheckedKeys=A,w.forEach(function(Me){var Dn=(0,Yt.Z)(Ce,Me);if(Dn){var je=Dn.node,nt=Dn.pos;wt.checkedNodes.push(je),wt.checkedNodesPositions.push({node:je,pos:nt})}}),Y.setUncontrolledState({checkedKeys:w},!1,{halfCheckedKeys:A})}rt==null||rt(vt,wt)},Y.onNodeLoad=function(I){var le=I.key,re=new Promise(function(J,Ce){Y.setState(function(We){var Pe=We.loadedKeys,Be=Pe===void 0?[]:Pe,Xe=We.loadingKeys,rt=Xe===void 0?[]:Xe,Ye=Y.props,vt=Ye.loadData,wt=Ye.onLoad;if(!vt||Be.indexOf(le)!==-1||rt.indexOf(le)!==-1)return null;var mt=vt(I);return mt.then(function(){var Pt=Y.state.loadedKeys,At=(0,st.L0)(Pt,le);wt==null||wt(At,{event:"load",node:I}),Y.setUncontrolledState({loadedKeys:At}),Y.setState(function(w){return{loadingKeys:(0,st._5)(w.loadingKeys,le)}}),J()}).catch(function(Pt){if(Y.setState(function(w){return{loadingKeys:(0,st._5)(w.loadingKeys,le)}}),Y.loadingRetryTimes[le]=(Y.loadingRetryTimes[le]||0)+1,Y.loadingRetryTimes[le]>=en){var At=Y.state.loadedKeys;(0,y.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Y.setUncontrolledState({loadedKeys:(0,st.L0)(At,le)}),J()}Ce(Pt)}),{loadingKeys:(0,st.L0)(rt,le)}})});return re.catch(function(){}),re},Y.onNodeMouseEnter=function(I,le){var re=Y.props.onMouseEnter;re==null||re({event:I,node:le})},Y.onNodeMouseLeave=function(I,le){var re=Y.props.onMouseLeave;re==null||re({event:I,node:le})},Y.onNodeContextMenu=function(I,le){var re=Y.props.onRightClick;re&&(I.preventDefault(),re({event:I,node:le}))},Y.onFocus=function(){var I=Y.props.onFocus;Y.setState({focused:!0});for(var le=arguments.length,re=new Array(le),J=0;J<le;J++)re[J]=arguments[J];I==null||I.apply(void 0,re)},Y.onBlur=function(){var I=Y.props.onBlur;Y.setState({focused:!1}),Y.onActiveChange(null);for(var le=arguments.length,re=new Array(le),J=0;J<le;J++)re[J]=arguments[J];I==null||I.apply(void 0,re)},Y.getTreeNodeRequiredProps=function(){var I=Y.state,le=I.expandedKeys,re=I.selectedKeys,J=I.loadedKeys,Ce=I.loadingKeys,We=I.checkedKeys,Pe=I.halfCheckedKeys,Be=I.dragOverNodeKey,Xe=I.dropPosition,rt=I.keyEntities;return{expandedKeys:le||[],selectedKeys:re||[],loadedKeys:J||[],loadingKeys:Ce||[],checkedKeys:We||[],halfCheckedKeys:Pe||[],dragOverNodeKey:Be,dropPosition:Xe,keyEntities:rt}},Y.setExpandedKeys=function(I){var le=Y.state,re=le.treeData,J=le.fieldNames,Ce=(0,Ee.oH)(re,I,J);Y.setUncontrolledState({expandedKeys:I,flattenNodes:Ce},!0)},Y.onNodeExpand=function(I,le){var re=Y.state.expandedKeys,J=Y.state,Ce=J.listChanging,We=J.fieldNames,Pe=Y.props,Be=Pe.onExpand,Xe=Pe.loadData,rt=le.expanded,Ye=le[We.key];if(!Ce){var vt=re.indexOf(Ye),wt=!rt;if((0,y.ZP)(rt&&vt!==-1||!rt&&vt===-1,"Expand state not sync with index check"),wt?re=(0,st.L0)(re,Ye):re=(0,st._5)(re,Ye),Y.setExpandedKeys(re),Be==null||Be(re,{node:le,expanded:wt,nativeEvent:I.nativeEvent}),wt&&Xe){var mt=Y.onNodeLoad(le);mt&&mt.then(function(){var Pt=(0,Ee.oH)(Y.state.treeData,re,We);Y.setUncontrolledState({flattenNodes:Pt})}).catch(function(){var Pt=Y.state.expandedKeys,At=(0,st._5)(Pt,Ye);Y.setExpandedKeys(At)})}}},Y.onListChangeStart=function(){Y.setUncontrolledState({listChanging:!0})},Y.onListChangeEnd=function(){setTimeout(function(){Y.setUncontrolledState({listChanging:!1})})},Y.onActiveChange=function(I){var le=Y.state.activeKey,re=Y.props.onActiveChange;le!==I&&(Y.setState({activeKey:I}),I!==null&&Y.scrollTo({key:I}),re==null||re(I))},Y.getActiveItem=function(){var I=Y.state,le=I.activeKey,re=I.flattenNodes;return le===null?null:re.find(function(J){var Ce=J.key;return Ce===le})||null},Y.offsetActiveKey=function(I){var le=Y.state,re=le.flattenNodes,J=le.activeKey,Ce=re.findIndex(function(Be){var Xe=Be.key;return Xe===J});Ce===-1&&I<0&&(Ce=re.length),Ce=(Ce+I+re.length)%re.length;var We=re[Ce];if(We){var Pe=We.key;Y.onActiveChange(Pe)}else Y.onActiveChange(null)},Y.onKeyDown=function(I){var le=Y.state,re=le.activeKey,J=le.expandedKeys,Ce=le.checkedKeys,We=le.fieldNames,Pe=Y.props,Be=Pe.onKeyDown,Xe=Pe.checkable,rt=Pe.selectable;switch(I.which){case u.Z.UP:{Y.offsetActiveKey(-1),I.preventDefault();break}case u.Z.DOWN:{Y.offsetActiveKey(1),I.preventDefault();break}}var Ye=Y.getActiveItem();if(Ye&&Ye.data){var vt=Y.getTreeNodeRequiredProps(),wt=Ye.data.isLeaf===!1||!!(Ye.data[We.children]||[]).length,mt=(0,Ee.F)((0,ye.Z)((0,ye.Z)({},(0,Ee.H8)(re,vt)),{},{data:Ye.data,active:!0}));switch(I.which){case u.Z.LEFT:{wt&&J.includes(re)?Y.onNodeExpand({},mt):Ye.parent&&Y.onActiveChange(Ye.parent.key),I.preventDefault();break}case u.Z.RIGHT:{wt&&!J.includes(re)?Y.onNodeExpand({},mt):Ye.children&&Ye.children.length&&Y.onActiveChange(Ye.children[0].key),I.preventDefault();break}case u.Z.ENTER:case u.Z.SPACE:{Xe&&!mt.disabled&&mt.checkable!==!1&&!mt.disableCheckbox?Y.onNodeCheck({},mt,!Ce.includes(re)):!Xe&&rt&&!mt.disabled&&mt.selectable!==!1&&Y.onNodeSelect({},mt);break}}}Be==null||Be(I)},Y.setUncontrolledState=function(I){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Y.destroyed){var J=!1,Ce=!0,We={};Object.keys(I).forEach(function(Pe){if(Pe in Y.props){Ce=!1;return}J=!0,We[Pe]=I[Pe]}),J&&(!le||Ce)&&Y.setState((0,ye.Z)((0,ye.Z)({},We),re))}},Y.scrollTo=function(I){Y.listRef.current.scrollTo(I)},Y}return(0,S.Z)(ie,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Ae=this.props.activeKey;Ae!==void 0&&Ae!==this.state.activeKey&&(this.setState({activeKey:Ae}),Ae!==null&&this.scrollTo({key:Ae}))}},{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 Ae,$=this.state,R=$.focused,I=$.flattenNodes,le=$.keyEntities,re=$.draggingNodeKey,J=$.activeKey,Ce=$.dropLevelOffset,We=$.dropContainerKey,Pe=$.dropTargetKey,Be=$.dropPosition,Xe=$.dragOverNodeKey,rt=$.indent,Ye=this.props,vt=Ye.prefixCls,wt=Ye.className,mt=Ye.style,Pt=Ye.showLine,At=Ye.focusable,w=Ye.tabIndex,A=w===void 0?0:w,gt=Ye.selectable,fe=Ye.showIcon,Me=Ye.icon,Dn=Ye.switcherIcon,je=Ye.draggable,nt=Ye.checkable,tt=Ye.checkStrictly,_e=Ye.disabled,De=Ye.motion,Fe=Ye.loadData,Qe=Ye.filterTreeNode,ge=Ye.height,Vt=Ye.itemHeight,Ze=Ye.virtual,gn=Ye.titleRender,In=Ye.dropIndicatorRender,Hn=Ye.onContextMenu,mr=Ye.onScroll,rn=Ye.direction,vn=Ye.rootClassName,Je=Ye.rootStyle,It=(0,x.Z)(this.props,{aria:!0,data:!0}),zt;return je&&((0,Q.Z)(je)==="object"?zt=je:typeof je=="function"?zt={nodeDraggable:je}:zt={}),L.createElement(te.k.Provider,{value:{prefixCls:vt,selectable:gt,showIcon:fe,icon:Me,switcherIcon:Dn,draggable:zt,draggingNodeKey:re,checkable:nt,checkStrictly:tt,disabled:_e,keyEntities:le,dropLevelOffset:Ce,dropContainerKey:We,dropTargetKey:Pe,dropPosition:Be,dragOverNodeKey:Xe,indent:rt,direction:rn,dropIndicatorRender:In,loadData:Fe,filterTreeNode:Qe,titleRender:gn,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}},L.createElement("div",{role:"tree",className:m()(vt,wt,vn,(Ae={},(0,N.Z)(Ae,"".concat(vt,"-show-line"),Pt),(0,N.Z)(Ae,"".concat(vt,"-focused"),R),(0,N.Z)(Ae,"".concat(vt,"-active-focused"),J!==null),Ae)),style:Je},L.createElement(pt,(0,z.Z)({ref:this.listRef,prefixCls:vt,style:mt,data:I,disabled:_e,selectable:gt,checkable:!!nt,motion:De,dragging:re!==null,height:ge,itemHeight:Vt,virtual:Ze,focusable:At,focused:R,tabIndex:A,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Hn,onScroll:mr},this.getTreeNodeRequiredProps(),It))))}}],[{key:"getDerivedStateFromProps",value:function(Ae,$){var R=$.prevProps,I={prevProps:Ae};function le(At){return!R&&At in Ae||R&&R[At]!==Ae[At]}var re,J=$.fieldNames;if(le("fieldNames")&&(J=(0,Ee.w$)(Ae.fieldNames),I.fieldNames=J),le("treeData")?re=Ae.treeData:le("children")&&((0,y.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),re=(0,Ee.zn)(Ae.children)),re){I.treeData=re;var Ce=(0,Ee.I8)(re,{fieldNames:J});I.keyEntities=(0,ye.Z)((0,N.Z)({},E,de),Ce.keyEntities)}var We=I.keyEntities||$.keyEntities;if(le("expandedKeys")||R&&le("autoExpandParent"))I.expandedKeys=Ae.autoExpandParent||!R&&Ae.defaultExpandParent?(0,st.r7)(Ae.expandedKeys,We):Ae.expandedKeys;else if(!R&&Ae.defaultExpandAll){var Pe=(0,ye.Z)({},We);delete Pe[E],I.expandedKeys=Object.keys(Pe).map(function(At){return Pe[At].key})}else!R&&Ae.defaultExpandedKeys&&(I.expandedKeys=Ae.autoExpandParent||Ae.defaultExpandParent?(0,st.r7)(Ae.defaultExpandedKeys,We):Ae.defaultExpandedKeys);if(I.expandedKeys||delete I.expandedKeys,re||I.expandedKeys){var Be=(0,Ee.oH)(re||$.treeData,I.expandedKeys||$.expandedKeys,J);I.flattenNodes=Be}if(Ae.selectable&&(le("selectedKeys")?I.selectedKeys=(0,st.BT)(Ae.selectedKeys,Ae):!R&&Ae.defaultSelectedKeys&&(I.selectedKeys=(0,st.BT)(Ae.defaultSelectedKeys,Ae))),Ae.checkable){var Xe;if(le("checkedKeys")?Xe=(0,st.E6)(Ae.checkedKeys)||{}:!R&&Ae.defaultCheckedKeys?Xe=(0,st.E6)(Ae.defaultCheckedKeys)||{}:re&&(Xe=(0,st.E6)(Ae.checkedKeys)||{checkedKeys:$.checkedKeys,halfCheckedKeys:$.halfCheckedKeys}),Xe){var rt=Xe,Ye=rt.checkedKeys,vt=Ye===void 0?[]:Ye,wt=rt.halfCheckedKeys,mt=wt===void 0?[]:wt;if(!Ae.checkStrictly){var Pt=(0,Ft.S)(vt,!0,We);vt=Pt.checkedKeys,mt=Pt.halfCheckedKeys}I.checkedKeys=vt,I.halfCheckedKeys=mt}}return le("loadedKeys")&&(I.loadedKeys=Ae.loadedKeys),I}}]),ie}(L.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:B,allowDrop:function(){return!0},expandAction:!1},Ut.TreeNode=j.Z;var ut=Ut,Et=ut},35654:function(Gt,He,h){"use strict";h.d(He,{BT:function(){return L},E6:function(){return M},L0:function(){return C},OM:function(){return y},_5:function(){return a},r7:function(){return W},wA:function(){return m},yx:function(){return O}});var z=h(19127),N=h(20135),Q=h(48736),ye=h(59301),U=h(39417),H=h(67841),S=h(71430),pe=null;function a(V,b){if(!V)return[];var T=V.slice(),G=T.indexOf(b);return G>=0&&T.splice(G,1),T}function C(V,b){var T=(V||[]).slice();return T.indexOf(b)===-1&&T.push(b),T}function O(V){return V.split("-")}function m(V,b){var T=[],G=(0,H.Z)(b,V);function j(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];be.forEach(function(Ee){var xe=Ee.key,ce=Ee.children;T.push(xe),j(ce)})}return j(G.children),T}function u(V){if(V.parent){var b=O(V.pos);return Number(b[b.length-1])===V.parent.children.length-1}return!1}function x(V){var b=O(V.pos);return Number(b[b.length-1])===0}function y(V,b,T,G,j,be,Ee,xe,ce,ee){var Z,me=V.clientX,P=V.clientY,se=V.target.getBoundingClientRect(),X=se.top,v=se.height,E=(ee==="rtl"?-1:1)*(((j==null?void 0:j.x)||0)-me),K=(E-12)/G,de=(0,H.Z)(xe,T.props.eventKey);if(P<X+v/2){var Ne=Ee.findIndex(function(Et){return Et.key===de.key}),Ue=Ne<=0?0:Ne-1,ke=Ee[Ue].key;de=(0,H.Z)(xe,ke)}var Ve=de.key,ht=de,pt=de.key,st=0,Ft=0;if(!ce.includes(Ve))for(var Yt=0;Yt<K&&u(de);Yt+=1)de=de.parent,Ft+=1;var en=b.props.data,Ut=de.node,ut=!0;return x(de)&&de.level===0&&P<X+v/2&&be({dragNode:en,dropNode:Ut,dropPosition:-1})&&de.key===T.props.eventKey?st=-1:(ht.children||[]).length&&ce.includes(pt)?be({dragNode:en,dropNode:Ut,dropPosition:0})?st=0:ut=!1:Ft===0?K>-1.5?be({dragNode:en,dropNode:Ut,dropPosition:1})?st=1:ut=!1:be({dragNode:en,dropNode:Ut,dropPosition:0})?st=0:be({dragNode:en,dropNode:Ut,dropPosition:1})?st=1:ut=!1:be({dragNode:en,dropNode:Ut,dropPosition:1})?st=1:ut=!1,{dropPosition:st,dropLevelOffset:Ft,dropTargetKey:de.key,dropTargetPos:de.pos,dragOverNodeKey:pt,dropContainerKey:st===0?null:((Z=de.parent)===null||Z===void 0?void 0:Z.key)||null,dropAllowed:ut}}function L(V,b){if(V){var T=b.multiple;return T?V.slice():V.length?[V[0]]:V}}var te=function(b){return b};function B(V,b){if(!V)return[];var T=b||{},G=T.processProps,j=G===void 0?te:G,be=Array.isArray(V)?V:[V];return be.map(function(Ee){var xe=Ee.children,ce=_objectWithoutProperties(Ee,pe),ee=B(xe,b);return React.createElement(TreeNode,_extends({key:ce.key},j(ce)),ee)})}function M(V){if(!V)return null;var b;if(Array.isArray(V))b={checkedKeys:V,halfCheckedKeys:void 0};else if((0,N.Z)(V)==="object")b={checkedKeys:V.checked||void 0,halfCheckedKeys:V.halfChecked||void 0};else return(0,Q.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return b}function W(V,b){var T=new Set;function G(j){if(!T.has(j)){var be=(0,H.Z)(b,j);if(be){T.add(j);var Ee=be.parent,xe=be.node;xe.disabled||Ee&&G(Ee.key)}}}return(V||[]).forEach(function(j){G(j)}),(0,z.Z)(T)}},90782:function(Gt,He,h){"use strict";h.d(He,{S:function(){return S}});var z=h(48736),N=h(67841);function Q(pe,a){var C=new Set;return pe.forEach(function(O){a.has(O)||C.add(O)}),C}function ye(pe){var a=pe||{},C=a.disabled,O=a.disableCheckbox,m=a.checkable;return!!(C||O)||m===!1}function U(pe,a,C,O){for(var m=new Set(pe),u=new Set,x=0;x<=C;x+=1){var y=a.get(x)||new Set;y.forEach(function(M){var W=M.key,V=M.node,b=M.children,T=b===void 0?[]:b;m.has(W)&&!O(V)&&T.filter(function(G){return!O(G.node)}).forEach(function(G){m.add(G.key)})})}for(var L=new Set,te=C;te>=0;te-=1){var B=a.get(te)||new Set;B.forEach(function(M){var W=M.parent,V=M.node;if(!(O(V)||!M.parent||L.has(M.parent.key))){if(O(M.parent.node)){L.add(W.key);return}var b=!0,T=!1;(W.children||[]).filter(function(G){return!O(G.node)}).forEach(function(G){var j=G.key,be=m.has(j);b&&!be&&(b=!1),!T&&(be||u.has(j))&&(T=!0)}),b&&m.add(W.key),T&&u.add(W.key),L.add(W.key)}})}return{checkedKeys:Array.from(m),halfCheckedKeys:Array.from(Q(u,m))}}function H(pe,a,C,O,m){for(var u=new Set(pe),x=new Set(a),y=0;y<=O;y+=1){var L=C.get(y)||new Set;L.forEach(function(W){var V=W.key,b=W.node,T=W.children,G=T===void 0?[]:T;!u.has(V)&&!x.has(V)&&!m(b)&&G.filter(function(j){return!m(j.node)}).forEach(function(j){u.delete(j.key)})})}x=new Set;for(var te=new Set,B=O;B>=0;B-=1){var M=C.get(B)||new Set;M.forEach(function(W){var V=W.parent,b=W.node;if(!(m(b)||!W.parent||te.has(W.parent.key))){if(m(W.parent.node)){te.add(V.key);return}var T=!0,G=!1;(V.children||[]).filter(function(j){return!m(j.node)}).forEach(function(j){var be=j.key,Ee=u.has(be);T&&!Ee&&(T=!1),!G&&(Ee||x.has(be))&&(G=!0)}),T||u.delete(V.key),G&&x.add(V.key),te.add(V.key)}})}return{checkedKeys:Array.from(u),halfCheckedKeys:Array.from(Q(x,u))}}function S(pe,a,C,O){var m=[],u;O?u=O:u=ye;var x=new Set(pe.filter(function(B){var M=!!(0,N.Z)(C,B);return M||m.push(B),M})),y=new Map,L=0;Object.keys(C).forEach(function(B){var M=C[B],W=M.level,V=y.get(W);V||(V=new Set,y.set(W,V)),V.add(M),L=Math.max(L,W)}),(0,z.ZP)(!m.length,"Tree missing follow keys: ".concat(m.slice(0,100).map(function(B){return"'".concat(B,"'")}).join(", ")));var te;return a===!0?te=U(x,y,L,u):te=H(x,a.halfCheckedKeys,y,L,u),te}},67841:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return z}});function z(N,Q){return N[Q]}},71430:function(Gt,He,h){"use strict";h.d(He,{F:function(){return W},H8:function(){return M},I8:function(){return B},km:function(){return m},oH:function(){return L},w$:function(){return u},zn:function(){return y}});var z=h(20135),N=h(19127),Q=h(44127),ye=h(6620),U=h(11592),H=h(2738),S=h(48736),pe=h(67841),a=["children"];function C(V,b){return"".concat(V,"-").concat(b)}function O(V){return V&&V.type&&V.type.isTreeNode}function m(V,b){return V!=null?V:b}function u(V){var b=V||{},T=b.title,G=b._title,j=b.key,be=b.children,Ee=T||"title";return{title:Ee,_title:G||[Ee],key:j||"key",children:be||"children"}}function x(V,b){var T=new Map;function G(j){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(j||[]).forEach(function(Ee){var xe=Ee[b.key],ce=Ee[b.children];warning(xe!=null,"Tree node must have a certain key: [".concat(be).concat(xe,"]"));var ee=String(xe);warning(!T.has(ee)||xe===null||xe===void 0,"Same 'key' exist in the Tree: ".concat(ee)),T.set(ee,!0),G(ce,"".concat(be).concat(ee," > "))})}G(V)}function y(V){function b(T){var G=(0,U.Z)(T);return G.map(function(j){if(!O(j))return(0,S.ZP)(!j,"Tree/TreeNode can only accept TreeNode as children."),null;var be=j.key,Ee=j.props,xe=Ee.children,ce=(0,ye.Z)(Ee,a),ee=(0,Q.Z)({key:be},ce),Z=b(xe);return Z.length&&(ee.children=Z),ee}).filter(function(j){return j})}return b(V)}function L(V,b,T){var G=u(T),j=G._title,be=G.key,Ee=G.children,xe=new Set(b===!0?[]:b),ce=[];function ee(Z){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Z.map(function(P,se){for(var X=C(me?me.pos:"0",se),v=m(P[be],X),E,K=0;K<j.length;K+=1){var de=j[K];if(P[de]!==void 0){E=P[de];break}}var Ne=(0,Q.Z)((0,Q.Z)({},(0,H.Z)(P,[].concat((0,N.Z)(j),[be,Ee]))),{},{title:E,key:v,parent:me,pos:X,children:null,data:P,isStart:[].concat((0,N.Z)(me?me.isStart:[]),[se===0]),isEnd:[].concat((0,N.Z)(me?me.isEnd:[]),[se===Z.length-1])});return ce.push(Ne),b===!0||xe.has(v)?Ne.children=ee(P[Ee]||[],Ne):Ne.children=[],Ne})}return ee(V),ce}function te(V,b,T){var G={};(0,z.Z)(T)==="object"?G=T:G={externalGetKey:T},G=G||{};var j=G,be=j.childrenPropName,Ee=j.externalGetKey,xe=j.fieldNames,ce=u(xe),ee=ce.key,Z=ce.children,me=be||Z,P;Ee?typeof Ee=="string"?P=function(v){return v[Ee]}:typeof Ee=="function"&&(P=function(v){return Ee(v)}):P=function(v,E){return m(v[ee],E)};function se(X,v,E,K){var de=X?X[me]:V,Ne=X?C(E.pos,v):"0",Ue=X?[].concat((0,N.Z)(K),[X]):[];if(X){var ke=P(X,Ne),Ve={node:X,index:v,pos:Ne,key:ke,parentPos:E.node?E.pos:null,level:E.level+1,nodes:Ue};b(Ve)}de&&de.forEach(function(ht,pt){se(ht,pt,{node:X,pos:Ne,level:E?E.level+1:-1},Ue)})}se(null)}function B(V){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=b.initWrapper,G=b.processEntity,j=b.onProcessFinished,be=b.externalGetKey,Ee=b.childrenPropName,xe=b.fieldNames,ce=arguments.length>2?arguments[2]:void 0,ee=be||ce,Z={},me={},P={posEntities:Z,keyEntities:me};return T&&(P=T(P)||P),te(V,function(se){var X=se.node,v=se.index,E=se.pos,K=se.key,de=se.parentPos,Ne=se.level,Ue=se.nodes,ke={node:X,nodes:Ue,index:v,key:K,pos:E,level:Ne},Ve=m(K,E);Z[E]=ke,me[Ve]=ke,ke.parent=Z[de],ke.parent&&(ke.parent.children=ke.parent.children||[],ke.parent.children.push(ke)),G&&G(ke,P)},{externalGetKey:ee,childrenPropName:Ee,fieldNames:xe}),j&&j(P),P}function M(V,b){var T=b.expandedKeys,G=b.selectedKeys,j=b.loadedKeys,be=b.loadingKeys,Ee=b.checkedKeys,xe=b.halfCheckedKeys,ce=b.dragOverNodeKey,ee=b.dropPosition,Z=b.keyEntities,me=(0,pe.Z)(Z,V),P={eventKey:V,expanded:T.indexOf(V)!==-1,selected:G.indexOf(V)!==-1,loaded:j.indexOf(V)!==-1,loading:be.indexOf(V)!==-1,checked:Ee.indexOf(V)!==-1,halfChecked:xe.indexOf(V)!==-1,pos:String(me?me.pos:""),dragOver:ce===V&&ee===0,dragOverGapTop:ce===V&&ee===-1,dragOverGapBottom:ce===V&&ee===1};return P}function W(V){var b=V.data,T=V.expanded,G=V.selected,j=V.checked,be=V.loaded,Ee=V.loading,xe=V.halfChecked,ce=V.dragOver,ee=V.dragOverGapTop,Z=V.dragOverGapBottom,me=V.pos,P=V.active,se=V.eventKey,X=(0,Q.Z)((0,Q.Z)({},b),{},{expanded:T,selected:G,checked:j,loaded:be,loading:Ee,halfChecked:xe,dragOver:ce,dragOverGapTop:ee,dragOverGapBottom:Z,pos:me,active:P,key:se});return"props"in X||Object.defineProperty(X,"props",{get:function(){return(0,S.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),V}}),X}},8224:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return N}});var z=h(4676);function N(Q,ye,U,H){var S=z.unstable_batchedUpdates?function(a){z.unstable_batchedUpdates(U,a)}:U;return Q!=null&&Q.addEventListener&&Q.addEventListener(ye,S,H),{remove:function(){Q!=null&&Q.removeEventListener&&Q.removeEventListener(ye,S,H)}}}},55468:function(Gt,He,h){"use strict";h.d(He,{g1:function(){return O},os:function(){return u}});var z=/margin|padding|width|height|max|min|offset/,N={left:!0,top:!0},Q={cssFloat:1,styleFloat:1,float:1};function ye(x){return x.nodeType===1?x.ownerDocument.defaultView.getComputedStyle(x,null):{}}function U(x,y,L){if(y=y.toLowerCase(),L==="auto"){if(y==="height")return x.offsetHeight;if(y==="width")return x.offsetWidth}return y in N||(N[y]=z.test(y)),N[y]?parseFloat(L)||0:L}function H(x,y){var L=arguments.length,te=ye(x);return y=Q[y]?"cssFloat"in x.style?"cssFloat":"styleFloat":y,L===1?te:U(x,y,te[y]||x.style[y])}function S(x,y,L){var te=arguments.length;if(y=Q[y]?"cssFloat"in x.style?"cssFloat":"styleFloat":y,te===3)return typeof L=="number"&&z.test(y)&&(L="".concat(L,"px")),x.style[y]=L,L;for(var B in y)y.hasOwnProperty(B)&&S(x,B,y[B]);return ye(x)}function pe(x){return x===document.body?document.documentElement.clientWidth:x.offsetWidth}function a(x){return x===document.body?window.innerHeight||document.documentElement.clientHeight:x.offsetHeight}function C(){var x=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),y=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:x,height:y}}function O(){var x=document.documentElement.clientWidth,y=window.innerHeight||document.documentElement.clientHeight;return{width:x,height:y}}function m(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function u(x){var y=x.getBoundingClientRect(),L=document.documentElement;return{left:y.left+(window.pageXOffset||L.scrollLeft)-(L.clientLeft||document.body.clientLeft||0),top:y.top+(window.pageYOffset||L.scrollTop)-(L.clientTop||document.body.clientTop||0)}}},24514:function(Gt,He,h){"use strict";h.d(He,{G:function(){return ye}});var z=h(47273),N=function(H){if((0,z.Z)()&&window.document.documentElement){var S=Array.isArray(H)?H:[H],pe=window.document.documentElement;return S.some(function(a){return a in pe.style})}return!1},Q=function(H,S){if(!N(H))return!1;var pe=document.createElement("div"),a=pe.style[H];return pe.style[H]=S,pe.style[H]!==a};function ye(U,H){return!Array.isArray(U)&&H!==void 0?Q(U,H):N(U)}},49658:function(Gt,He){"use strict";He.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var h=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(h)||/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(h==null?void 0:h.substr(0,4))}},24916:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return Ut}});var z=h(96663),N=h(20135),Q=h(44127),ye=h(90493),U=h(72071),H=h(6620),S=h(92310),pe=h.n(S),a=h(29301),C=h(70425),O=h(34280),m=h(59301),u=h(4676),x=m.forwardRef(function(ut,Et){var oe=ut.height,ve=ut.offsetY,ie=ut.offsetX,Y=ut.children,Ae=ut.prefixCls,$=ut.onInnerResize,R=ut.innerProps,I=ut.rtl,le=ut.extra,re={},J={display:"flex",flexDirection:"column"};return ve!==void 0&&(re={height:oe,position:"relative",overflow:"hidden"},J=(0,Q.Z)((0,Q.Z)({},J),{},(0,ye.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)({transform:"translateY(".concat(ve,"px)")},I?"marginRight":"marginLeft",-ie),"position","absolute"),"left",0),"right",0),"top",0))),m.createElement("div",{style:re},m.createElement(a.Z,{onResize:function(We){var Pe=We.offsetHeight;Pe&&$&&$()}},m.createElement("div",(0,z.Z)({style:J,className:pe()((0,ye.Z)({},"".concat(Ae,"-holder-inner"),Ae)),ref:Et},R),Y,le)))});x.displayName="Filler";var y=x;function L(ut){var Et=ut.children,oe=ut.setRef,ve=m.useCallback(function(ie){oe(ie)},[]);return m.cloneElement(Et,{ref:ve})}function te(ut,Et,oe,ve,ie,Y,Ae,$){var R=$.getKey;return ut.slice(Et,oe+1).map(function(I,le){var re=Et+le,J=Ae(I,re,{style:{width:ve},offsetX:ie}),Ce=R(I);return m.createElement(L,{key:Ce,setRef:function(Pe){return Y(I,Pe)}},J)})}function B(ut,Et,oe,ve){var ie=oe-ut,Y=Et-oe,Ae=Math.min(ie,Y)*2;if(ve<=Ae){var $=Math.floor(ve/2);return ve%2?oe+$+1:oe-$}return ie>Y?oe-(ve-Y):oe+(ve-ie)}function M(ut,Et,oe){var ve=ut.length,ie=Et.length,Y,Ae;if(ve===0&&ie===0)return null;ve<ie?(Y=ut,Ae=Et):(Y=Et,Ae=ut);var $={__EMPTY_ITEM__:!0};function R(We){return We!==void 0?oe(We):$}for(var I=null,le=Math.abs(ve-ie)!==1,re=0;re<Ae.length;re+=1){var J=R(Y[re]),Ce=R(Ae[re]);if(J!==Ce){I=re,le=le||J!==R(Ae[re+1]);break}}return I===null?null:{index:I,multiple:le}}function W(ut,Et,oe){var ve=m.useState(ut),ie=(0,U.Z)(ve,2),Y=ie[0],Ae=ie[1],$=m.useState(null),R=(0,U.Z)($,2),I=R[0],le=R[1];return m.useEffect(function(){var re=M(Y||[],ut||[],Et);(re==null?void 0:re.index)!==void 0&&(oe==null||oe(re.index),le(ut[re.index])),Ae(ut)},[ut]),[I]}var V=h(16089),b=(typeof navigator=="undefined"?"undefined":(0,N.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),T=b,G=function(ut,Et,oe,ve){var ie=(0,m.useRef)(!1),Y=(0,m.useRef)(null);function Ae(){clearTimeout(Y.current),ie.current=!0,Y.current=setTimeout(function(){ie.current=!1},50)}var $=(0,m.useRef)({top:ut,bottom:Et,left:oe,right:ve});return $.current.top=ut,$.current.bottom=Et,$.current.left=oe,$.current.right=ve,function(R,I){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,re=R?I<0&&$.current.left||I>0&&$.current.right:I<0&&$.current.top||I>0&&$.current.bottom;return le&&re?(clearTimeout(Y.current),ie.current=!1):(!re||ie.current)&&Ae(),!ie.current&&re}};function j(ut,Et,oe,ve,ie,Y,Ae){var $=(0,m.useRef)(0),R=(0,m.useRef)(null),I=(0,m.useRef)(null),le=(0,m.useRef)(!1),re=G(Et,oe,ve,ie);function J(rt,Ye){if(V.Z.cancel(R.current),!re(!1,Ye)){var vt=rt;if(!vt._virtualHandled)vt._virtualHandled=!0;else return;$.current+=Ye,I.current=Ye,T||vt.preventDefault(),R.current=(0,V.Z)(function(){var wt=le.current?10:1;Ae($.current*wt,!1),$.current=0})}}function Ce(rt,Ye){Ae(Ye,!0),T||rt.preventDefault()}var We=(0,m.useRef)(null),Pe=(0,m.useRef)(null);function Be(rt){if(ut){V.Z.cancel(Pe.current),Pe.current=(0,V.Z)(function(){We.current=null},2);var Ye=rt.deltaX,vt=rt.deltaY,wt=rt.shiftKey,mt=Ye,Pt=vt;(We.current==="sx"||!We.current&&wt&&vt&&!Ye)&&(mt=vt,Pt=0,We.current="sx");var At=Math.abs(mt),w=Math.abs(Pt);We.current===null&&(We.current=Y&&At>w?"x":"y"),We.current==="y"?J(rt,Pt):Ce(rt,mt)}}function Xe(rt){ut&&(le.current=rt.detail===I.current)}return[Be,Xe]}function be(ut,Et,oe,ve){var ie=m.useMemo(function(){return[new Map,[]]},[ut,oe.id,ve]),Y=(0,U.Z)(ie,2),Ae=Y[0],$=Y[1],R=function(le){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le,J=Ae.get(le),Ce=Ae.get(re);if(J===void 0||Ce===void 0)for(var We=ut.length,Pe=$.length;Pe<We;Pe+=1){var Be,Xe=ut[Pe],rt=Et(Xe);Ae.set(rt,Pe);var Ye=(Be=oe.get(rt))!==null&&Be!==void 0?Be:ve;if($[Pe]=($[Pe-1]||0)+Ye,rt===le&&(J=Pe),rt===re&&(Ce=Pe),J!==void 0&&Ce!==void 0)break}return{top:$[J-1]||0,bottom:$[Ce]}};return R}var Ee=h(52884),xe=h(95727),ce=function(){function ut(){(0,Ee.Z)(this,ut),(0,ye.Z)(this,"maps",void 0),(0,ye.Z)(this,"id",0),(0,ye.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,xe.Z)(ut,[{key:"set",value:function(oe,ve){this.maps[oe]=ve,this.id+=1,this.diffKeys.add(oe)}},{key:"get",value:function(oe){return this.maps[oe]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),ut}(),ee=ce;function Z(ut){var Et=parseFloat(ut);return isNaN(Et)?0:Et}function me(ut,Et,oe){var ve=m.useState(0),ie=(0,U.Z)(ve,2),Y=ie[0],Ae=ie[1],$=(0,m.useRef)(new Map),R=(0,m.useRef)(new ee),I=(0,m.useRef)(0);function le(){I.current+=1}function re(){var Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;le();var We=function(){var Xe=!1;$.current.forEach(function(rt,Ye){if(rt&&rt.offsetParent){var vt=rt.offsetHeight,wt=getComputedStyle(rt),mt=wt.marginTop,Pt=wt.marginBottom,At=Z(mt),w=Z(Pt),A=vt+At+w;R.current.get(Ye)!==A&&(R.current.set(Ye,A),Xe=!0)}}),Xe&&Ae(function(rt){return rt+1})};if(Ce)We();else{I.current+=1;var Pe=I.current;Promise.resolve().then(function(){Pe===I.current&&We()})}}function J(Ce,We){var Pe=ut(Ce),Be=$.current.get(Pe);We?($.current.set(Pe,We),re()):$.current.delete(Pe),!Be!=!We&&(We?Et==null||Et(Ce):oe==null||oe(Ce))}return(0,m.useEffect)(function(){return le},[]),[J,re,R.current,Y]}var P=14/15;function se(ut,Et,oe){var ve=(0,m.useRef)(!1),ie=(0,m.useRef)(0),Y=(0,m.useRef)(0),Ae=(0,m.useRef)(null),$=(0,m.useRef)(null),R,I=function(Ce){if(ve.current){var We=Math.ceil(Ce.touches[0].pageX),Pe=Math.ceil(Ce.touches[0].pageY),Be=ie.current-We,Xe=Y.current-Pe,rt=Math.abs(Be)>Math.abs(Xe);rt?ie.current=We:Y.current=Pe;var Ye=oe(rt,rt?Be:Xe,!1,Ce);Ye&&Ce.preventDefault(),clearInterval($.current),Ye&&($.current=setInterval(function(){rt?Be*=P:Xe*=P;var vt=Math.floor(rt?Be:Xe);(!oe(rt,vt,!0)||Math.abs(vt)<=.1)&&clearInterval($.current)},16))}},le=function(){ve.current=!1,R()},re=function(Ce){R(),Ce.touches.length===1&&!ve.current&&(ve.current=!0,ie.current=Math.ceil(Ce.touches[0].pageX),Y.current=Math.ceil(Ce.touches[0].pageY),Ae.current=Ce.target,Ae.current.addEventListener("touchmove",I,{passive:!1}),Ae.current.addEventListener("touchend",le,{passive:!0}))};R=function(){Ae.current&&(Ae.current.removeEventListener("touchmove",I),Ae.current.removeEventListener("touchend",le))},(0,O.Z)(function(){return ut&&Et.current.addEventListener("touchstart",re,{passive:!0}),function(){var J;(J=Et.current)===null||J===void 0||J.removeEventListener("touchstart",re),R(),clearInterval($.current)}},[ut])}function X(ut){return Math.floor(Math.pow(ut,.5))}function v(ut,Et){var oe="touches"in ut?ut.touches[0]:ut;return oe[Et?"pageX":"pageY"]-window[Et?"scrollX":"scrollY"]}function E(ut,Et,oe){m.useEffect(function(){var ve=Et.current;if(ut&&ve){var ie=!1,Y,Ae,$=function(){V.Z.cancel(Y)},R=function J(){$(),Y=(0,V.Z)(function(){oe(Ae),J()})},I=function(Ce){if(!Ce.target.draggable){var We=Ce;We._virtualHandled||(We._virtualHandled=!0,ie=!0)}},le=function(){ie=!1,$()},re=function(Ce){if(ie){var We=v(Ce,!1),Pe=ve.getBoundingClientRect(),Be=Pe.top,Xe=Pe.bottom;if(We<=Be){var rt=Be-We;Ae=-X(rt),R()}else if(We>=Xe){var Ye=We-Xe;Ae=X(Ye),R()}else $()}};return ve.addEventListener("mousedown",I),ve.ownerDocument.addEventListener("mouseup",le),ve.ownerDocument.addEventListener("mousemove",re),function(){ve.removeEventListener("mousedown",I),ve.ownerDocument.removeEventListener("mouseup",le),ve.ownerDocument.removeEventListener("mousemove",re),$()}}},[ut])}var K=10;function de(ut,Et,oe,ve,ie,Y,Ae,$){var R=m.useRef(),I=m.useState(null),le=(0,U.Z)(I,2),re=le[0],J=le[1];return(0,O.Z)(function(){if(re&&re.times<K){if(!ut.current){J(function(De){return(0,Q.Z)({},De)});return}Y();var Ce=re.targetAlign,We=re.originAlign,Pe=re.index,Be=re.offset,Xe=ut.current.clientHeight,rt=!1,Ye=Ce,vt=null;if(Xe){for(var wt=Ce||We,mt=0,Pt=0,At=0,w=Math.min(Et.length-1,Pe),A=0;A<=w;A+=1){var gt=ie(Et[A]);Pt=mt;var fe=oe.get(gt);At=Pt+(fe===void 0?ve:fe),mt=At}for(var Me=wt==="top"?Be:Xe-Be,Dn=w;Dn>=0;Dn-=1){var je=ie(Et[Dn]),nt=oe.get(je);if(nt===void 0){rt=!0;break}if(Me-=nt,Me<=0)break}switch(wt){case"top":vt=Pt-Be;break;case"bottom":vt=At-Xe+Be;break;default:{var tt=ut.current.scrollTop,_e=tt+Xe;Pt<tt?Ye="top":At>_e&&(Ye="bottom")}}vt!==null&&Ae(vt),vt!==re.lastTop&&(rt=!0)}rt&&J((0,Q.Z)((0,Q.Z)({},re),{},{times:re.times+1,targetAlign:Ye,lastTop:vt}))}},[re,ut.current]),function(Ce){if(Ce==null){$();return}if(V.Z.cancel(R.current),typeof Ce=="number")Ae(Ce);else if(Ce&&(0,N.Z)(Ce)==="object"){var We,Pe=Ce.align;"index"in Ce?We=Ce.index:We=Et.findIndex(function(rt){return ie(rt)===Ce.key});var Be=Ce.offset,Xe=Be===void 0?0:Be;J({times:0,index:We,offset:Xe,originAlign:Pe})}}}var Ne=m.forwardRef(function(ut,Et){var oe=ut.prefixCls,ve=ut.rtl,ie=ut.scrollOffset,Y=ut.scrollRange,Ae=ut.onStartMove,$=ut.onStopMove,R=ut.onScroll,I=ut.horizontal,le=ut.spinSize,re=ut.containerSize,J=ut.style,Ce=ut.thumbStyle,We=ut.showScrollBar,Pe=m.useState(!1),Be=(0,U.Z)(Pe,2),Xe=Be[0],rt=Be[1],Ye=m.useState(null),vt=(0,U.Z)(Ye,2),wt=vt[0],mt=vt[1],Pt=m.useState(null),At=(0,U.Z)(Pt,2),w=At[0],A=At[1],gt=!ve,fe=m.useRef(),Me=m.useRef(),Dn=m.useState(We),je=(0,U.Z)(Dn,2),nt=je[0],tt=je[1],_e=m.useRef(),De=function(){We===!0||We===!1||(clearTimeout(_e.current),tt(!0),_e.current=setTimeout(function(){tt(!1)},3e3))},Fe=Y-re||0,Qe=re-le||0,ge=m.useMemo(function(){if(ie===0||Fe===0)return 0;var Je=ie/Fe;return Je*Qe},[ie,Fe,Qe]),Vt=function(It){It.stopPropagation(),It.preventDefault()},Ze=m.useRef({top:ge,dragging:Xe,pageY:wt,startTop:w});Ze.current={top:ge,dragging:Xe,pageY:wt,startTop:w};var gn=function(It){rt(!0),mt(v(It,I)),A(Ze.current.top),Ae(),It.stopPropagation(),It.preventDefault()};m.useEffect(function(){var Je=function(Oe){Oe.preventDefault()},It=fe.current,zt=Me.current;return It.addEventListener("touchstart",Je,{passive:!1}),zt.addEventListener("touchstart",gn,{passive:!1}),function(){It.removeEventListener("touchstart",Je),zt.removeEventListener("touchstart",gn)}},[]);var In=m.useRef();In.current=Fe;var Hn=m.useRef();Hn.current=Qe,m.useEffect(function(){if(Xe){var Je,It=function(Oe){var bt=Ze.current,St=bt.dragging,qt=bt.pageY,Wt=bt.startTop;V.Z.cancel(Je);var on=fe.current.getBoundingClientRect(),Xt=re/(I?on.width:on.height);if(St){var hn=(v(Oe,I)-qt)*Xt,An=Wt;!gt&&I?An-=hn:An+=hn;var $t=In.current,Rt=Hn.current,an=Rt?An/Rt:0,tn=Math.ceil(an*$t);tn=Math.max(tn,0),tn=Math.min(tn,$t),Je=(0,V.Z)(function(){R(tn,I)})}},zt=function(){rt(!1),$()};return window.addEventListener("mousemove",It,{passive:!0}),window.addEventListener("touchmove",It,{passive:!0}),window.addEventListener("mouseup",zt,{passive:!0}),window.addEventListener("touchend",zt,{passive:!0}),function(){window.removeEventListener("mousemove",It),window.removeEventListener("touchmove",It),window.removeEventListener("mouseup",zt),window.removeEventListener("touchend",zt),V.Z.cancel(Je)}}},[Xe]),m.useEffect(function(){return De(),function(){clearTimeout(_e.current)}},[ie]),m.useImperativeHandle(Et,function(){return{delayHidden:De}});var mr="".concat(oe,"-scrollbar"),rn={position:"absolute",visibility:nt?null:"hidden"},vn={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return I?(rn.height=8,rn.left=0,rn.right=0,rn.bottom=0,vn.height="100%",vn.width=le,gt?vn.left=ge:vn.right=ge):(rn.width=8,rn.top=0,rn.bottom=0,gt?rn.right=0:rn.left=0,vn.width="100%",vn.height=le,vn.top=ge),m.createElement("div",{ref:fe,className:pe()(mr,(0,ye.Z)((0,ye.Z)((0,ye.Z)({},"".concat(mr,"-horizontal"),I),"".concat(mr,"-vertical"),!I),"".concat(mr,"-visible"),nt)),style:(0,Q.Z)((0,Q.Z)({},rn),J),onMouseDown:Vt,onMouseMove:De},m.createElement("div",{ref:Me,className:pe()("".concat(mr,"-thumb"),(0,ye.Z)({},"".concat(mr,"-thumb-moving"),Xe)),style:(0,Q.Z)((0,Q.Z)({},vn),Ce),onMouseDown:gn}))}),Ue=Ne,ke=20;function Ve(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,oe=ut/Et*ut;return isNaN(oe)&&(oe=0),oe=Math.max(oe,ke),Math.floor(oe)}var ht=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],pt=[],st={overflowY:"auto",overflowAnchor:"none"};function Ft(ut,Et){var oe=ut.prefixCls,ve=oe===void 0?"rc-virtual-list":oe,ie=ut.className,Y=ut.height,Ae=ut.itemHeight,$=ut.fullHeight,R=$===void 0?!0:$,I=ut.style,le=ut.data,re=ut.children,J=ut.itemKey,Ce=ut.virtual,We=ut.direction,Pe=ut.scrollWidth,Be=ut.component,Xe=Be===void 0?"div":Be,rt=ut.onScroll,Ye=ut.onVirtualScroll,vt=ut.onVisibleChange,wt=ut.innerProps,mt=ut.extraRender,Pt=ut.styles,At=ut.showScrollBar,w=At===void 0?"optional":At,A=(0,H.Z)(ut,ht),gt=m.useCallback(function(zn){return typeof J=="function"?J(zn):zn==null?void 0:zn[J]},[J]),fe=me(gt,null,null),Me=(0,U.Z)(fe,4),Dn=Me[0],je=Me[1],nt=Me[2],tt=Me[3],_e=!!(Ce!==!1&&Y&&Ae),De=m.useMemo(function(){return Object.values(nt.maps).reduce(function(zn,Sn){return zn+Sn},0)},[nt.id,nt.maps]),Fe=_e&&le&&(Math.max(Ae*le.length,De)>Y||!!Pe),Qe=We==="rtl",ge=pe()(ve,(0,ye.Z)({},"".concat(ve,"-rtl"),Qe),ie),Vt=le||pt,Ze=(0,m.useRef)(),gn=(0,m.useRef)(),In=(0,m.useRef)(),Hn=(0,m.useState)(0),mr=(0,U.Z)(Hn,2),rn=mr[0],vn=mr[1],Je=(0,m.useState)(0),It=(0,U.Z)(Je,2),zt=It[0],Ke=It[1],Oe=(0,m.useState)(!1),bt=(0,U.Z)(Oe,2),St=bt[0],qt=bt[1],Wt=function(){qt(!0)},on=function(){qt(!1)},Xt={getKey:gt};function hn(zn){vn(function(Sn){var qn;typeof zn=="function"?qn=zn(Sn):qn=zn;var Lr=nr(qn);return Ze.current.scrollTop=Lr,Lr})}var An=(0,m.useRef)({start:0,end:Vt.length}),$t=(0,m.useRef)(),Rt=W(Vt,gt),an=(0,U.Z)(Rt,1),tn=an[0];$t.current=tn;var cn=m.useMemo(function(){if(!_e)return{scrollHeight:void 0,start:0,end:Vt.length-1,offset:void 0};if(!Fe){var zn;return{scrollHeight:((zn=gn.current)===null||zn===void 0?void 0:zn.offsetHeight)||0,start:0,end:Vt.length-1,offset:void 0}}for(var Sn=0,qn,Lr,Zr,Ci=Vt.length,Un=0;Un<Ci;Un+=1){var Vr=Vt[Un],jr=gt(Vr),oi=nt.get(jr),Ai=Sn+(oi===void 0?Ae:oi);Ai>=rn&&qn===void 0&&(qn=Un,Lr=Sn),Ai>rn+Y&&Zr===void 0&&(Zr=Un),Sn=Ai}return qn===void 0&&(qn=0,Lr=0,Zr=Math.ceil(Y/Ae)),Zr===void 0&&(Zr=Vt.length-1),Zr=Math.min(Zr+1,Vt.length-1),{scrollHeight:Sn,start:qn,end:Zr,offset:Lr}},[Fe,_e,rn,Vt,tt,Y]),bn=cn.scrollHeight,tr=cn.start,Mn=cn.end,Qt=cn.offset;An.current.start=tr,An.current.end=Mn,m.useLayoutEffect(function(){var zn=nt.getRecord();if(zn.size===1){var Sn=Array.from(zn)[0],qn=Vt[tr];if(qn){var Lr=gt(qn);if(Lr===Sn){var Zr=nt.get(Sn),Ci=Zr-Ae;hn(function(Un){return Un+Ci})}}}nt.resetRecord()},[bn]);var ct=m.useState({width:0,height:Y}),ft=(0,U.Z)(ct,2),Tt=ft[0],Nt=ft[1],Dt=function(Sn){Nt({width:Sn.offsetWidth,height:Sn.offsetHeight})},Ht=(0,m.useRef)(),Bt=(0,m.useRef)(),dn=m.useMemo(function(){return Ve(Tt.width,Pe)},[Tt.width,Pe]),xn=m.useMemo(function(){return Ve(Tt.height,bn)},[Tt.height,bn]),Rn=bn-Y,Qn=(0,m.useRef)(Rn);Qn.current=Rn;function nr(zn){var Sn=zn;return Number.isNaN(Qn.current)||(Sn=Math.min(Sn,Qn.current)),Sn=Math.max(Sn,0),Sn}var ar=rn<=0,_n=rn>=Rn,yn=zt<=0,gr=zt>=Pe,Gn=G(ar,_n,yn,gr),Tr=function(){return{x:Qe?-zt:zt,y:rn}},Jn=(0,m.useRef)(Tr()),or=(0,C.useEvent)(function(zn){if(Ye){var Sn=(0,Q.Z)((0,Q.Z)({},Tr()),zn);(Jn.current.x!==Sn.x||Jn.current.y!==Sn.y)&&(Ye(Sn),Jn.current=Sn)}});function yr(zn,Sn){var qn=zn;Sn?((0,u.flushSync)(function(){Ke(qn)}),or()):hn(qn)}function rr(zn){var Sn=zn.currentTarget.scrollTop;Sn!==rn&&hn(Sn),rt==null||rt(zn),or()}var Ir=function(Sn){var qn=Sn,Lr=Pe?Pe-Tt.width:0;return qn=Math.max(qn,0),qn=Math.min(qn,Lr),qn},Jr=(0,C.useEvent)(function(zn,Sn){Sn?((0,u.flushSync)(function(){Ke(function(qn){var Lr=qn+(Qe?-zn:zn);return Ir(Lr)})}),or()):hn(function(qn){var Lr=qn+zn;return Lr})}),Xn=j(_e,ar,_n,yn,gr,!!Pe,Jr),En=(0,U.Z)(Xn,2),it=En[0],Fn=En[1];se(_e,Ze,function(zn,Sn,qn,Lr){var Zr=Lr;return Gn(zn,Sn,qn)?!1:!Zr||!Zr._virtualHandled?(Zr&&(Zr._virtualHandled=!0),it({preventDefault:function(){},deltaX:zn?Sn:0,deltaY:zn?0:Sn}),!0):!1}),E(Fe,Ze,function(zn){hn(function(Sn){return Sn+zn})}),(0,O.Z)(function(){function zn(qn){var Lr=ar&&qn.detail<0,Zr=_n&&qn.detail>0;_e&&!Lr&&!Zr&&qn.preventDefault()}var Sn=Ze.current;return Sn.addEventListener("wheel",it,{passive:!1}),Sn.addEventListener("DOMMouseScroll",Fn,{passive:!0}),Sn.addEventListener("MozMousePixelScroll",zn,{passive:!1}),function(){Sn.removeEventListener("wheel",it),Sn.removeEventListener("DOMMouseScroll",Fn),Sn.removeEventListener("MozMousePixelScroll",zn)}},[_e,ar,_n]),(0,O.Z)(function(){if(Pe){var zn=Ir(zt);Ke(zn),or({x:zn})}},[Tt.width,Pe]);var lr=function(){var Sn,qn;(Sn=Ht.current)===null||Sn===void 0||Sn.delayHidden(),(qn=Bt.current)===null||qn===void 0||qn.delayHidden()},Cr=de(Ze,Vt,nt,Ae,gt,function(){return je(!0)},hn,lr);m.useImperativeHandle(Et,function(){return{nativeElement:In.current,getScrollInfo:Tr,scrollTo:function(Sn){function qn(Lr){return Lr&&(0,N.Z)(Lr)==="object"&&("left"in Lr||"top"in Lr)}qn(Sn)?(Sn.left!==void 0&&Ke(Ir(Sn.left)),Cr(Sn.top)):Cr(Sn)}}}),(0,O.Z)(function(){if(vt){var zn=Vt.slice(tr,Mn+1);vt(zn,Vt)}},[tr,Mn,Vt]);var Dr=be(Vt,gt,nt,Ae),Mr=mt==null?void 0:mt({start:tr,end:Mn,virtual:Fe,offsetX:zt,offsetY:Qt,rtl:Qe,getSize:Dr}),Ur=te(Vt,tr,Mn,Pe,zt,Dn,re,Xt),vr=null;Y&&(vr=(0,Q.Z)((0,ye.Z)({},R?"height":"maxHeight",Y),st),_e&&(vr.overflowY="hidden",Pe&&(vr.overflowX="hidden"),St&&(vr.pointerEvents="none")));var Kr={};return Qe&&(Kr.dir="rtl"),m.createElement("div",(0,z.Z)({ref:In,style:(0,Q.Z)((0,Q.Z)({},I),{},{position:"relative"}),className:ge},Kr,A),m.createElement(a.Z,{onResize:Dt},m.createElement(Xe,{className:"".concat(ve,"-holder"),style:vr,ref:Ze,onScroll:rr,onMouseEnter:lr},m.createElement(y,{prefixCls:ve,height:bn,offsetX:zt,offsetY:Qt,scrollWidth:Pe,onInnerResize:je,ref:gn,innerProps:wt,rtl:Qe,extra:Mr},Ur))),Fe&&bn>Y&&m.createElement(Ue,{ref:Ht,prefixCls:ve,scrollOffset:rn,scrollRange:bn,rtl:Qe,onScroll:yr,onStartMove:Wt,onStopMove:on,spinSize:xn,containerSize:Tt.height,style:Pt==null?void 0:Pt.verticalScrollBar,thumbStyle:Pt==null?void 0:Pt.verticalScrollBarThumb,showScrollBar:w}),Fe&&Pe>Tt.width&&m.createElement(Ue,{ref:Bt,prefixCls:ve,scrollOffset:zt,scrollRange:Pe,rtl:Qe,onScroll:yr,onStartMove:Wt,onStopMove:on,spinSize:dn,containerSize:Tt.width,horizontal:!0,style:Pt==null?void 0:Pt.horizontalScrollBar,thumbStyle:Pt==null?void 0:Pt.horizontalScrollBarThumb,showScrollBar:w}))}var Yt=m.forwardRef(Ft);Yt.displayName="List";var en=Yt,Ut=en},83145:function(Gt,He,h){"use strict";Object.defineProperty(He,"__esModule",{value:!0}),He.CopyToClipboard=void 0;var z=Q(h(59301)),N=Q(h(25769));function Q(M){return M&&M.__esModule?M:{default:M}}function ye(M){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ye=function(V){return typeof V}:ye=function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},ye(M)}function U(M,W){var V=Object.keys(M);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(M);W&&(b=b.filter(function(T){return Object.getOwnPropertyDescriptor(M,T).enumerable})),V.push.apply(V,b)}return V}function H(M){for(var W=1;W<arguments.length;W++){var V=arguments[W]!=null?arguments[W]:{};W%2?U(V,!0).forEach(function(b){te(M,b,V[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(V)):U(V).forEach(function(b){Object.defineProperty(M,b,Object.getOwnPropertyDescriptor(V,b))})}return M}function S(M,W){if(M==null)return{};var V=pe(M,W),b,T;if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(M);for(T=0;T<G.length;T++)b=G[T],!(W.indexOf(b)>=0)&&Object.prototype.propertyIsEnumerable.call(M,b)&&(V[b]=M[b])}return V}function pe(M,W){if(M==null)return{};var V={},b=Object.keys(M),T,G;for(G=0;G<b.length;G++)T=b[G],!(W.indexOf(T)>=0)&&(V[T]=M[T]);return V}function a(M,W){if(!(M instanceof W))throw new TypeError("Cannot call a class as a function")}function C(M,W){for(var V=0;V<W.length;V++){var b=W[V];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(M,b.key,b)}}function O(M,W,V){return W&&C(M.prototype,W),V&&C(M,V),M}function m(M,W){return W&&(ye(W)==="object"||typeof W=="function")?W:x(M)}function u(M){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(V){return V.__proto__||Object.getPrototypeOf(V)},u(M)}function x(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function y(M,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(W&&W.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),W&&L(M,W)}function L(M,W){return L=Object.setPrototypeOf||function(b,T){return b.__proto__=T,b},L(M,W)}function te(M,W,V){return W in M?Object.defineProperty(M,W,{value:V,enumerable:!0,configurable:!0,writable:!0}):M[W]=V,M}var B=function(M){y(W,M);function W(){var V,b;a(this,W);for(var T=arguments.length,G=new Array(T),j=0;j<T;j++)G[j]=arguments[j];return b=m(this,(V=u(W)).call.apply(V,[this].concat(G))),te(x(b),"onClick",function(be){var Ee=b.props,xe=Ee.text,ce=Ee.onCopy,ee=Ee.children,Z=Ee.options,me=z.default.Children.only(ee),P=(0,N.default)(xe,Z);ce&&ce(xe,P),me&&me.props&&typeof me.props.onClick=="function"&&me.props.onClick(be)}),b}return O(W,[{key:"render",value:function(){var b=this.props,T=b.text,G=b.onCopy,j=b.options,be=b.children,Ee=S(b,["text","onCopy","options","children"]),xe=z.default.Children.only(be);return z.default.cloneElement(xe,H({},Ee,{onClick:this.onClick}))}}]),W}(z.default.PureComponent);He.CopyToClipboard=B,te(B,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(Gt,He,h){"use strict";var z=h(83145),N=z.CopyToClipboard;N.CopyToClipboard=N,Gt.exports=N},76374:function(Gt,He,h){"use strict";var z=function(){if(typeof Map!="undefined")return Map;function ee(Z,me){var P=-1;return Z.some(function(se,X){return se[0]===me?(P=X,!0):!1}),P}return function(){function Z(){this.__entries__=[]}return Object.defineProperty(Z.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),Z.prototype.get=function(me){var P=ee(this.__entries__,me),se=this.__entries__[P];return se&&se[1]},Z.prototype.set=function(me,P){var se=ee(this.__entries__,me);~se?this.__entries__[se][1]=P:this.__entries__.push([me,P])},Z.prototype.delete=function(me){var P=this.__entries__,se=ee(P,me);~se&&P.splice(se,1)},Z.prototype.has=function(me){return!!~ee(this.__entries__,me)},Z.prototype.clear=function(){this.__entries__.splice(0)},Z.prototype.forEach=function(me,P){P===void 0&&(P=null);for(var se=0,X=this.__entries__;se<X.length;se++){var v=X[se];me.call(P,v[1],v[0])}},Z}()}(),N=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,Q=function(){return typeof h.g!="undefined"&&h.g.Math===Math?h.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),ye=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Q):function(ee){return setTimeout(function(){return ee(Date.now())},1e3/60)}}(),U=2;function H(ee,Z){var me=!1,P=!1,se=0;function X(){me&&(me=!1,ee()),P&&E()}function v(){ye(X)}function E(){var K=Date.now();if(me){if(K-se<U)return;P=!0}else me=!0,P=!1,setTimeout(v,Z);se=K}return E}var S=20,pe=["top","right","bottom","left","width","height","size","weight"],a=typeof MutationObserver!="undefined",C=function(){function ee(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=H(this.refresh.bind(this),S)}return ee.prototype.addObserver=function(Z){~this.observers_.indexOf(Z)||this.observers_.push(Z),this.connected_||this.connect_()},ee.prototype.removeObserver=function(Z){var me=this.observers_,P=me.indexOf(Z);~P&&me.splice(P,1),!me.length&&this.connected_&&this.disconnect_()},ee.prototype.refresh=function(){var Z=this.updateObservers_();Z&&this.refresh()},ee.prototype.updateObservers_=function(){var Z=this.observers_.filter(function(me){return me.gatherActive(),me.hasActive()});return Z.forEach(function(me){return me.broadcastActive()}),Z.length>0},ee.prototype.connect_=function(){!N||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)},ee.prototype.disconnect_=function(){!N||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},ee.prototype.onTransitionEnd_=function(Z){var me=Z.propertyName,P=me===void 0?"":me,se=pe.some(function(X){return!!~P.indexOf(X)});se&&this.refresh()},ee.getInstance=function(){return this.instance_||(this.instance_=new ee),this.instance_},ee.instance_=null,ee}(),O=function(ee,Z){for(var me=0,P=Object.keys(Z);me<P.length;me++){var se=P[me];Object.defineProperty(ee,se,{value:Z[se],enumerable:!1,writable:!1,configurable:!0})}return ee},m=function(ee){var Z=ee&&ee.ownerDocument&&ee.ownerDocument.defaultView;return Z||Q},u=T(0,0,0,0);function x(ee){return parseFloat(ee)||0}function y(ee){for(var Z=[],me=1;me<arguments.length;me++)Z[me-1]=arguments[me];return Z.reduce(function(P,se){var X=ee["border-"+se+"-width"];return P+x(X)},0)}function L(ee){for(var Z=["top","right","bottom","left"],me={},P=0,se=Z;P<se.length;P++){var X=se[P],v=ee["padding-"+X];me[X]=x(v)}return me}function te(ee){var Z=ee.getBBox();return T(0,0,Z.width,Z.height)}function B(ee){var Z=ee.clientWidth,me=ee.clientHeight;if(!Z&&!me)return u;var P=m(ee).getComputedStyle(ee),se=L(P),X=se.left+se.right,v=se.top+se.bottom,E=x(P.width),K=x(P.height);if(P.boxSizing==="border-box"&&(Math.round(E+X)!==Z&&(E-=y(P,"left","right")+X),Math.round(K+v)!==me&&(K-=y(P,"top","bottom")+v)),!W(ee)){var de=Math.round(E+X)-Z,Ne=Math.round(K+v)-me;Math.abs(de)!==1&&(E-=de),Math.abs(Ne)!==1&&(K-=Ne)}return T(se.left,se.top,E,K)}var M=function(){return typeof SVGGraphicsElement!="undefined"?function(ee){return ee instanceof m(ee).SVGGraphicsElement}:function(ee){return ee instanceof m(ee).SVGElement&&typeof ee.getBBox=="function"}}();function W(ee){return ee===m(ee).document.documentElement}function V(ee){return N?M(ee)?te(ee):B(ee):u}function b(ee){var Z=ee.x,me=ee.y,P=ee.width,se=ee.height,X=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,v=Object.create(X.prototype);return O(v,{x:Z,y:me,width:P,height:se,top:me,right:Z+P,bottom:se+me,left:Z}),v}function T(ee,Z,me,P){return{x:ee,y:Z,width:me,height:P}}var G=function(){function ee(Z){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=T(0,0,0,0),this.target=Z}return ee.prototype.isActive=function(){var Z=V(this.target);return this.contentRect_=Z,Z.width!==this.broadcastWidth||Z.height!==this.broadcastHeight},ee.prototype.broadcastRect=function(){var Z=this.contentRect_;return this.broadcastWidth=Z.width,this.broadcastHeight=Z.height,Z},ee}(),j=function(){function ee(Z,me){var P=b(me);O(this,{target:Z,contentRect:P})}return ee}(),be=function(){function ee(Z,me,P){if(this.activeObservations_=[],this.observations_=new z,typeof Z!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=Z,this.controller_=me,this.callbackCtx_=P}return ee.prototype.observe=function(Z){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(Z instanceof m(Z).Element))throw new TypeError('parameter 1 is not of type "Element".');var me=this.observations_;me.has(Z)||(me.set(Z,new G(Z)),this.controller_.addObserver(this),this.controller_.refresh())}},ee.prototype.unobserve=function(Z){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(Z instanceof m(Z).Element))throw new TypeError('parameter 1 is not of type "Element".');var me=this.observations_;me.has(Z)&&(me.delete(Z),me.size||this.controller_.removeObserver(this))}},ee.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},ee.prototype.gatherActive=function(){var Z=this;this.clearActive(),this.observations_.forEach(function(me){me.isActive()&&Z.activeObservations_.push(me)})},ee.prototype.broadcastActive=function(){if(this.hasActive()){var Z=this.callbackCtx_,me=this.activeObservations_.map(function(P){return new j(P.target,P.broadcastRect())});this.callback_.call(Z,me,Z),this.clearActive()}},ee.prototype.clearActive=function(){this.activeObservations_.splice(0)},ee.prototype.hasActive=function(){return this.activeObservations_.length>0},ee}(),Ee=typeof WeakMap!="undefined"?new WeakMap:new z,xe=function(){function ee(Z){if(!(this instanceof ee))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var me=C.getInstance(),P=new be(Z,me,this);Ee.set(this,P)}return ee}();["observe","unobserve","disconnect"].forEach(function(ee){xe.prototype[ee]=function(){var Z;return(Z=Ee.get(this))[ee].apply(Z,arguments)}});var ce=function(){return typeof Q.ResizeObserver!="undefined"?Q.ResizeObserver:xe}();He.Z=ce},27774:function(Gt,He){"use strict";Object.defineProperty(He,"__esModule",{value:!0}),He.SizeSensorId=He.SensorTabIndex=He.SensorClassName=void 0;var h="size-sensor-id";He.SizeSensorId=h;var z="size-sensor-object";He.SensorClassName=z;var N="-1";He.SensorTabIndex=N},79301:function(Gt,He){"use strict";Object.defineProperty(He,"__esModule",{value:!0}),He.default=void 0;var h=function(N){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,ye=null;return function(){for(var U=this,H=arguments.length,S=new Array(H),pe=0;pe<H;pe++)S[pe]=arguments[pe];clearTimeout(ye),ye=setTimeout(function(){N.apply(U,S)},Q)}};He.default=h},79789:function(Gt,He){"use strict";Object.defineProperty(He,"__esModule",{value:!0}),He.default=void 0;var h=1,z=function(){return"".concat(h++)};He.default=z},47242:function(Gt,He,h){"use strict";Object.defineProperty(He,"__esModule",{value:!0}),He.ver=He.clear=He.bind=void 0;var z=h(95270),N=function(H,S){var pe=(0,z.getSensor)(H);return pe.bind(S),function(){pe.unbind(S)}};He.bind=N;var Q=function(H){var S=(0,z.getSensor)(H);(0,z.removeSensor)(S)};He.clear=Q;var ye="1.0.2";He.ver=ye},95270:function(Gt,He,h){"use strict";Object.defineProperty(He,"__esModule",{value:!0}),He.removeSensor=He.getSensor=He.Sensors=void 0;var z=ye(h(79789)),N=h(57829),Q=h(27774);function ye(a){return a&&a.__esModule?a:{default:a}}var U={};He.Sensors=U;function H(a){a&&U[a]&&delete U[a]}var S=function(C){var O=C.getAttribute(Q.SizeSensorId);if(O&&U[O])return U[O];var m=(0,z.default)();C.setAttribute(Q.SizeSensorId,m);var u=(0,N.createSensor)(C,function(){return H(m)});return U[m]=u,u};He.getSensor=S;var pe=function(C){var O=C.element.getAttribute(Q.SizeSensorId);C.destroy(),H(O)};He.removeSensor=pe},57829:function(Gt,He,h){"use strict";Object.defineProperty(He,"__esModule",{value:!0}),He.createSensor=void 0;var z=h(20953),N=h(55202),Q=typeof ResizeObserver!="undefined"?N.createSensor:z.createSensor;He.createSensor=Q},20953:function(Gt,He,h){"use strict";Object.defineProperty(He,"__esModule",{value:!0}),He.createSensor=void 0;var z=Q(h(79301)),N=h(27774);function Q(U){return U&&U.__esModule?U:{default:U}}var ye=function(H,S){var pe=void 0,a=[],C=function(){getComputedStyle(H).position==="static"&&(H.style.position="relative");var L=document.createElement("object");return L.onload=function(){L.contentDocument.defaultView.addEventListener("resize",O),O()},L.style.display="block",L.style.position="absolute",L.style.top="0",L.style.left="0",L.style.height="100%",L.style.width="100%",L.style.overflow="hidden",L.style.pointerEvents="none",L.style.zIndex="-1",L.style.opacity="0",L.setAttribute("class",N.SensorClassName),L.setAttribute("tabindex",N.SensorTabIndex),L.type="text/html",H.appendChild(L),L.data="about:blank",L},O=(0,z.default)(function(){a.forEach(function(y){y(H)})}),m=function(L){pe||(pe=C()),a.indexOf(L)===-1&&a.push(L)},u=function(){pe&&pe.parentNode&&(pe.contentDocument&&pe.contentDocument.defaultView.removeEventListener("resize",O),pe.parentNode.removeChild(pe),H.removeAttribute(N.SizeSensorId),pe=void 0,a=[],S&&S())},x=function(L){var te=a.indexOf(L);te!==-1&&a.splice(te,1),a.length===0&&pe&&u()};return{element:H,bind:m,destroy:u,unbind:x}};He.createSensor=ye},55202:function(Gt,He,h){"use strict";Object.defineProperty(He,"__esModule",{value:!0}),He.createSensor=void 0;var z=h(27774),N=Q(h(79301));function Q(U){return U&&U.__esModule?U:{default:U}}var ye=function(H,S){var pe=void 0,a=[],C=(0,N.default)(function(){a.forEach(function(y){y(H)})}),O=function(){var L=new ResizeObserver(C);return L.observe(H),C(),L},m=function(L){pe||(pe=O()),a.indexOf(L)===-1&&a.push(L)},u=function(){pe.disconnect(),a=[],pe=void 0,H.removeAttribute(z.SizeSensorId),S&&S()},x=function(L){var te=a.indexOf(L);te!==-1&&a.splice(te,1),a.length===0&&pe&&u()};return{element:H,bind:m,destroy:u,unbind:x}};He.createSensor=ye},98040:function(Gt){Gt.exports=function(){var He=document.getSelection();if(!He.rangeCount)return function(){};for(var h=document.activeElement,z=[],N=0;N<He.rangeCount;N++)z.push(He.getRangeAt(N));switch(h.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":h.blur();break;default:h=null;break}return He.removeAllRanges(),function(){He.type==="Caret"&&He.removeAllRanges(),He.rangeCount||z.forEach(function(Q){He.addRange(Q)}),h&&h.focus()}}},1012:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return m}});var z=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),N=new Uint8Array(16);function Q(){if(!z)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return z(N)}var ye=/^(?:[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 U(u){return typeof u=="string"&&ye.test(u)}for(var H=U,S=[],pe=0;pe<256;++pe)S.push((pe+256).toString(16).substr(1));function a(u){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,y=(S[u[x+0]]+S[u[x+1]]+S[u[x+2]]+S[u[x+3]]+"-"+S[u[x+4]]+S[u[x+5]]+"-"+S[u[x+6]]+S[u[x+7]]+"-"+S[u[x+8]]+S[u[x+9]]+"-"+S[u[x+10]]+S[u[x+11]]+S[u[x+12]]+S[u[x+13]]+S[u[x+14]]+S[u[x+15]]).toLowerCase();if(!H(y))throw TypeError("Stringified UUID is invalid");return y}var C=a;function O(u,x,y){u=u||{};var L=u.random||(u.rng||Q)();if(L[6]=L[6]&15|64,L[8]=L[8]&63|128,x){y=y||0;for(var te=0;te<16;++te)x[y+te]=L[te];return x}return C(L)}var m=O},93314:function(Gt){"use strict";Gt.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=="},40846:function(Gt,He,h){"use strict";h.d(He,{ZP:function(){return Ys}});function z(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var N={exports:{}};(function(o,e){(function(t){var n=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,s=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,c={buildAbsoluteURL:function(p,_,D){if(D=D||{},p=p.trim(),_=_.trim(),!_){if(!D.alwaysNormalize)return p;var F=c.parseURL(p);if(!F)throw new Error("Error trying to parse base URL.");return F.path=c.normalizePath(F.path),c.buildURLFromParts(F)}var he=c.parseURL(_);if(!he)throw new Error("Error trying to parse relative URL.");if(he.scheme)return D.alwaysNormalize?(he.path=c.normalizePath(he.path),c.buildURLFromParts(he)):_;var Te=c.parseURL(p);if(!Te)throw new Error("Error trying to parse base URL.");if(!Te.netLoc&&Te.path&&Te.path[0]!=="/"){var we=r.exec(Te.path);Te.netLoc=we[1],Te.path=we[2]}Te.netLoc&&!Te.path&&(Te.path="/");var Ie={scheme:Te.scheme,netLoc:he.netLoc,path:null,params:he.params,query:he.query,fragment:he.fragment};if(!he.netLoc&&(Ie.netLoc=Te.netLoc,he.path[0]!=="/"))if(!he.path)Ie.path=Te.path,he.params||(Ie.params=Te.params,he.query||(Ie.query=Te.query));else{var ze=Te.path,ot=ze.substring(0,ze.lastIndexOf("/")+1)+he.path;Ie.path=c.normalizePath(ot)}return Ie.path===null&&(Ie.path=D.alwaysNormalize?c.normalizePath(he.path):he.path),c.buildURLFromParts(Ie)},parseURL:function(p){var _=n.exec(p);return _?{scheme:_[1]||"",netLoc:_[2]||"",path:_[3]||"",params:_[4]||"",query:_[5]||"",fragment:_[6]||""}:null},normalizePath:function(p){for(p=p.split("").reverse().join("").replace(i,"");p.length!==(p=p.replace(s,"")).length;);return p.split("").reverse().join("")},buildURLFromParts:function(p){return p.scheme+p.netLoc+p.path+p.params+p.query+p.fragment}};o.exports=c})()})(N);var Q=N.exports;function ye(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 U(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ye(Object(t),!0).forEach(function(n){pe(o,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):ye(Object(t)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(t,n))})}return o}function H(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 S(o){var e=H(o,"string");return typeof e=="symbol"?e:String(e)}function pe(o,e,t){return e=S(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 C=Number.isFinite||function(o){return typeof o=="number"&&isFinite(o)},O=Number.isSafeInteger||function(o){return typeof o=="number"&&Math.abs(o)<=m},m=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}({}),x=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}({}),y=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 L=function(){},te={trace:L,debug:L,log:L,warn:L,info:L,error:L};let B=te;function M(o){const e=self.console[o];return e?e.bind(self.console,`[${o}] >`):L}function W(o,...e){e.forEach(function(t){B[t]=o[t]?o[t].bind(o):M(t)})}function V(o,e){if(typeof console=="object"&&o===!0||typeof o=="object"){W(o,"debug","log","info","warn","error");try{B.log(`Debug logs enabled for "${e}" in hls.js version 1.5.20`)}catch(t){B=te}}else B=te}const b=B,T=/^(\d+)x(\d+)$/,G=/(.+?)=(".*?"|.*?)(?:,|$)/g;class j{constructor(e){typeof e=="string"&&(e=j.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(G.lastIndex=0;(t=G.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 be(o){return o!=="ID"&&o!=="CLASS"&&o!=="START-DATE"&&o!=="DURATION"&&o!=="END-DATE"&&o!=="END-ON-NEXT"}function Ee(o){return o==="SCTE35-OUT"||o==="SCTE35-IN"}class xe{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]){b.warn(`DATERANGE tag attribute: "${r}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=r;break}e=a(new j({}),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"]);C(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(C(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&&C(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)}}class ce{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 ee={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class Z{constructor(e){this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams={[ee.AUDIO]:null,[ee.VIDEO]:null,[ee.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=Q.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}}class me extends Z{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 ce,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||!C(this.programDateTime))return null;const e=C(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,p=c[e];if(!p){c[e]={startPTS:t,endPTS:n,startDTS:r,endDTS:i,partial:s};return}p.startPTS=Math.min(p.startPTS,t),p.endPTS=Math.max(p.endPTS,n),p.startDTS=Math.min(p.startDTS,r),p.endDTS=Math.max(p.endDTS,i)}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[ee.AUDIO]=null,e[ee.VIDEO]=null,e[ee.AUDIOVIDEO]=null}}class P extends Z{constructor(e,t,n,r,i){super(n),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.stats=new ce,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 se=10;class X{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?C(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||se}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 v(o){return Uint8Array.from(atob(o),e=>e.charCodeAt(0))}function E(o){const e=Ne(o).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function K(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 de(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=v(s)):t=E(s)}}return t}function Ne(o){return Uint8Array.from(unescape(encodeURIComponent(o)),e=>e.charCodeAt(0))}const Ue=typeof self!="undefined"?self:void 0;var ke={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 ht(o){switch(o){case Ve.FAIRPLAY:return ke.FAIRPLAY;case Ve.PLAYREADY:return ke.PLAYREADY;case Ve.WIDEVINE:return ke.WIDEVINE;case Ve.CLEARKEY:return ke.CLEARKEY}}var pt={CENC:"1077efecc0b24d02ace33c1e52e2fb4b",CLEARKEY:"e2719d58a985b3c9781ab030af78d30e",FAIRPLAY:"94ce86fb07ff4f43adb893d2fa968ca2",PLAYREADY:"9a04f07998404286ab92e65be0885f95",WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function st(o){if(o===pt.WIDEVINE)return ke.WIDEVINE;if(o===pt.PLAYREADY)return ke.PLAYREADY;if(o===pt.CENC||o===pt.CLEARKEY)return ke.CLEARKEY}function Ft(o){switch(o){case ke.FAIRPLAY:return Ve.FAIRPLAY;case ke.PLAYREADY:return Ve.PLAYREADY;case ke.WIDEVINE:return Ve.WIDEVINE;case ke.CLEARKEY:return Ve.CLEARKEY}}function Yt(o){const{drmSystems:e,widevineLicenseUrl:t}=o,n=e?[ke.FAIRPLAY,ke.WIDEVINE,ke.PLAYREADY,ke.CLEARKEY].filter(r=>!!e[r]):[];return!n[ke.WIDEVINE]&&t&&n.push(ke.WIDEVINE),n}const en=function(o){return Ue!=null&&(o=Ue.navigator)!=null&&o.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function Ut(o,e,t,n){let r;switch(o){case ke.FAIRPLAY:r=["cenc","sinf"];break;case ke.WIDEVINE:case ke.PLAYREADY:r=["cenc"];break;case ke.CLEARKEY:r=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${o}`)}return ut(r,e,t,n)}function ut(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 Et(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 p=v(c).subarray(0,16);return K(p),p}}return null}function oe(o,e,t){return Uint8Array.prototype.slice?o.slice(e,t):new Uint8Array(Array.prototype.slice.call(o,e,t))}const ve=(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,ie=(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,Y=(o,e)=>{const t=e;let n=0;for(;ve(o,e);){n+=10;const r=Ae(o,e+6);n+=r,ie(o,e+10)&&(n+=10),e+=n}if(n>0)return o.subarray(t,t+n)},Ae=(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,e)=>ve(o,e)&&Ae(o,e+6)+10<=o.length-e,R=o=>{const e=re(o);for(let t=0;t<e.length;t++){const n=e[t];if(I(n))return Be(n)}},I=o=>o&&o.key==="PRIV"&&o.info==="com.apple.streaming.transportStreamTimestamp",le=o=>{const e=String.fromCharCode(o[0],o[1],o[2],o[3]),t=Ae(o,4),n=10;return{type:e,size:t,data:o.subarray(n,n+t)}},re=o=>{let e=0;const t=[];for(;ve(o,e);){const n=Ae(o,e+6);e+=10;const r=e+n;for(;e+8<r;){const i=le(o.subarray(e)),s=J(i);s&&t.push(s),e+=i.size+10}ie(o,e)&&(e+=10)}return t},J=o=>o.type==="PRIV"?Ce(o):o.type[0]==="W"?Pe(o):We(o),Ce=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}},We=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}},Pe=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}},Be=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=Ye();if(t){const _=t.decode(o);if(e){const D=_.indexOf("\0");return D!==-1?_.substring(0,D):_}return _.replace(/\0/g,"")}const n=o.length;let r,i,s,c="",p=0;for(;p<n;){if(r=o[p++],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[p++],c+=String.fromCharCode((r&31)<<6|i&63);break;case 14:i=o[p++],s=o[p++],c+=String.fromCharCode((r&15)<<12|(i&63)<<6|(s&63)<<0);break}}return c};let rt;function Ye(){if(!navigator.userAgent.includes("PlayStation 4"))return!rt&&typeof self.TextDecoder!="undefined"&&(rt=new self.TextDecoder("utf-8")),rt}const vt={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}},wt=Math.pow(2,32)-1,mt=[].push,Pt={video:1,audio:2,id3:3,text:4};function At(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 A(o,e){const t=fe(o,e);return t<0?4294967296+t:t}function gt(o,e){let t=A(o,e);return t*=Math.pow(2,32),t+=A(o,e+4),t}function fe(o,e){return o[e]<<24|o[e+1]<<16|o[e+2]<<8|o[e+3]}function Me(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 Dn(o){const e=o.byteLength;for(let t=0;t<e;){const n=A(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 je(o,e){const t=[];if(!e.length)return t;const n=o.byteLength;for(let r=0;r<n;){const i=A(o,r),s=At(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 p=je(o.subarray(r+8,c),e.slice(1));p.length&&mt.apply(t,p)}r=c}return t}function nt(o){const e=[],t=o[0];let n=8;const r=A(o,n);n+=4;let i=0,s=0;t===0?(i=A(o,n),s=A(o,n+4),n+=8):(i=gt(o,n),s=gt(o,n+8),n+=16),n+=2;let c=o.length+s;const p=w(o,n);n+=2;for(let _=0;_<p;_++){let D=n;const F=A(o,D);D+=4;const he=F&2147483647;if((F&2147483648)>>>31===1)return b.warn("SIDX has hierarchical references (not supported)"),null;const we=A(o,D);D+=4,e.push({referenceSize:he,subsegmentDuration:we,info:{duration:we/r,start:c,end:c+he-1}}),c+=he,D+=4,n=D}return{earliestPresentationTime:i,timescale:r,version:t,referencesCount:p,references:e}}function tt(o){const e=[],t=je(o,["moov","trak"]);for(let r=0;r<t.length;r++){const i=t[r],s=je(i,["tkhd"])[0];if(s){let c=s[0];const p=A(s,c===0?12:20),_=je(i,["mdia","mdhd"])[0];if(_){c=_[0];const D=A(_,c===0?12:20),F=je(i,["mdia","hdlr"])[0];if(F){const he=At(F.subarray(8,12)),Te={soun:ee.AUDIO,vide:ee.VIDEO}[he];if(Te){const we=je(i,["mdia","minf","stbl","stsd"])[0],Ie=_e(we);e[p]={timescale:D,type:Te},e[Te]=U({timescale:D,id:p},Ie)}}}}}return je(o,["moov","mvex","trex"]).forEach(r=>{const i=A(r,4),s=e[i];s&&(s.default={duration:A(r,12),flags:A(r,20)})}),e}function _e(o){const e=o.subarray(8),t=e.subarray(86),n=At(e.subarray(4,8));let r=n;const i=n==="enca"||n==="encv";if(i){const c=je(e,[n])[0].subarray(n==="enca"?28:78);je(c,["sinf"]).forEach(_=>{const D=je(_,["schm"])[0];if(D){const F=At(D.subarray(4,8));if(F==="cbcs"||F==="cenc"){const he=je(_,["frma"])[0];he&&(r=At(he))}}})}switch(r){case"avc1":case"avc2":case"avc3":case"avc4":{const s=je(t,["avcC"])[0];r+="."+Fe(s[1])+Fe(s[2])+Fe(s[3]);break}case"mp4a":{const s=je(e,[n])[0],c=je(s.subarray(28),["esds"])[0];if(c&&c.length>12){let p=4;if(c[p++]!==3)break;p=De(c,p),p+=2;const _=c[p++];if(_&128&&(p+=2),_&64&&(p+=c[p++]),c[p++]!==4)break;p=De(c,p);const D=c[p++];if(D===64)r+="."+Fe(D);else break;if(p+=12,c[p++]!==5)break;p=De(c,p);const F=c[p++];let he=(F&248)>>3;he===31&&(he+=1+((F&7)<<3)+((c[p]&224)>>5)),r+="."+he}break}case"hvc1":case"hev1":{const s=je(t,["hvcC"])[0],c=s[1],p=["","A","B","C"][c>>6],_=c&31,D=A(s,2),F=(c&32)>>5?"H":"L",he=s[12],Te=s.subarray(6,12);r+="."+p+_,r+="."+D.toString(16).toUpperCase(),r+="."+F+he;let we="";for(let Ie=Te.length;Ie--;){const ze=Te[Ie];(ze||we)&&(we="."+ze.toString(16).toUpperCase()+we)}r+=we;break}case"dvh1":case"dvhe":{const s=je(t,["dvcC"])[0],c=s[2]>>1&127,p=s[2]<<5&32|s[3]>>3&31;r+="."+Qe(c)+"."+Qe(p);break}case"vp09":{const s=je(t,["vpcC"])[0],c=s[4],p=s[5],_=s[6]>>4&15;r+="."+Qe(c)+"."+Qe(p)+"."+Qe(_);break}case"av01":{const s=je(t,["av1C"])[0],c=s[1]>>>5,p=s[1]&31,_=s[2]>>>7?"H":"M",D=(s[2]&64)>>6,F=(s[2]&32)>>5,he=c===2&&D?F?12:10:D?10:8,Te=(s[2]&16)>>4,we=(s[2]&8)>>3,Ie=(s[2]&4)>>2,ze=s[2]&3;r+="."+c+"."+Qe(p)+_+"."+Qe(he)+"."+Te+"."+we+Ie+ze+"."+Qe(1)+"."+Qe(1)+"."+Qe(1)+"."+0;break}}return{codec:r,encrypted:i}}function De(o,e){const t=e+5;for(;o[e++]&128&&e<t;);return e}function Fe(o){return("0"+o.toString(16).toUpperCase()).slice(-2)}function Qe(o){return(o<10?"0":"")+o}function ge(o,e){if(!o||!e)return o;const t=e.keyId;return t&&e.isCommonEncryption&&je(o,["moov","trak"]).forEach(r=>{const s=je(r,["mdia","minf","stbl","stsd"])[0].subarray(8);let c=je(s,["enca"]);const p=c.length>0;p||(c=je(s,["encv"])),c.forEach(_=>{const D=p?_.subarray(28):_.subarray(78);je(D,["sinf"]).forEach(he=>{const Te=Vt(he);if(Te){const we=Te.subarray(8,24);we.some(Ie=>Ie!==0)||(b.log(`[eme] Patching keyId in 'enc${p?"a":"v"}>sinf>>tenc' box: ${vt.hexDump(we)} -> ${vt.hexDump(t)}`),Te.set(t,8))}})})}),o}function Vt(o){const e=je(o,["schm"])[0];if(e){const t=At(e.subarray(4,8));if(t==="cbcs"||t==="cenc")return je(o,["schi","tenc"])[0]}return null}function Ze(o,e){return je(e,["moof","traf"]).reduce((t,n)=>{const r=je(n,["tfdt"])[0],i=r[0],s=je(n,["tfhd"]).reduce((c,p)=>{const _=A(p,4),D=o[_];if(D){let F=A(r,4);if(i===1){if(F===wt)return b.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),c;F*=wt+1,F+=A(r,8)}const he=D.timescale||9e4,Te=F/he;if(C(Te)&&(c===null||Te<c))return Te}return c},null);return s!==null&&C(s)&&(t===null||s<t)?s:t},null)}function gn(o,e){let t=0,n=0,r=0;const i=je(o,["moof","traf"]);for(let s=0;s<i.length;s++){const c=i[s],p=je(c,["tfhd"])[0],_=A(p,4),D=e[_];if(!D)continue;const F=D.default,he=A(p,0)|(F==null?void 0:F.flags);let Te=F==null?void 0:F.duration;he&8&&(he&2?Te=A(p,12):Te=A(p,8));const we=D.timescale||9e4,Ie=je(c,["trun"]);for(let ze=0;ze<Ie.length;ze++){if(t=In(Ie[ze]),!t&&Te){const ot=A(Ie[ze],4);t=Te*ot}D.type===ee.VIDEO?n+=t/we:D.type===ee.AUDIO&&(r+=t/we)}}if(n===0&&r===0){let s=1/0,c=0,p=0;const _=je(o,["sidx"]);for(let D=0;D<_.length;D++){const F=nt(_[D]);if(F!=null&&F.references){s=Math.min(s,F.earliestPresentationTime/F.timescale);const he=F.references.reduce((Te,we)=>Te+we.info.duration||0,0);c=Math.max(c,he+F.earliestPresentationTime/F.timescale),p=c-s}}if(p&&C(p))return p}return n||r}function In(o){const e=A(o,0);let t=8;e&1&&(t+=4),e&4&&(t+=4);let n=0;const r=A(o,4);for(let i=0;i<r;i++){if(e&256){const s=A(o,t);n+=s,t+=4}e&512&&(t+=4),e&1024&&(t+=4),e&2048&&(t+=4)}return n}function Hn(o,e,t){je(e,["moof","traf"]).forEach(n=>{je(n,["tfhd"]).forEach(r=>{const i=A(r,4),s=o[i];if(!s)return;const c=s.timescale||9e4;je(n,["tfdt"]).forEach(p=>{const _=p[0],D=t*c;if(D){let F=A(p,4);if(_===0)F-=D,F=Math.max(F,0),Me(p,4,F);else{F*=Math.pow(2,32),F+=A(p,8),F-=D,F=Math.max(F,0);const he=Math.floor(F/(wt+1)),Te=Math.floor(F%(wt+1));Me(p,4,he),Me(p,8,Te)}}})})})}function mr(o){const e={valid:null,remainder:null},t=je(o,["moof"]);if(t.length<2)return e.remainder=o,e;const n=t[t.length-1];return e.valid=oe(o,0,n.byteOffset-8),e.remainder=oe(o,n.byteOffset-8),e}function rn(o,e){const t=new Uint8Array(o.length+e.length);return t.set(o),t.set(e,o.length),t}function vn(o,e){const t=[],n=e.samples,r=e.timescale,i=e.id;let s=!1;return je(n,["moof"]).map(p=>{const _=p.byteOffset-8;je(p,["traf"]).map(F=>{const he=je(F,["tfdt"]).map(Te=>{const we=Te[0];let Ie=A(Te,4);return we===1&&(Ie*=Math.pow(2,32),Ie+=A(Te,8)),Ie/r})[0];return he!==void 0&&(o=he),je(F,["tfhd"]).map(Te=>{const we=A(Te,4),Ie=A(Te,0)&16777215,ze=(Ie&1)!==0,ot=(Ie&2)!==0,Mt=(Ie&8)!==0;let kt=0;const mn=(Ie&16)!==0;let Zt=0;const Bn=(Ie&32)!==0;let fn=8;we===i&&(ze&&(fn+=8),ot&&(fn+=4),Mt&&(kt=A(Te,fn),fn+=4),mn&&(Zt=A(Te,fn),fn+=4),Bn&&(fn+=4),e.type==="video"&&(s=Je(e.codec)),je(F,["trun"]).map(Wn=>{const Er=Wn[0],On=A(Wn,0)&16777215,Yn=(On&1)!==0;let di=0;const Ar=(On&4)!==0,si=(On&256)!==0;let ni=0;const Gr=(On&512)!==0;let $i=0;const Yi=(On&1024)!==0,kr=(On&2048)!==0;let Rr=0;const Hi=A(Wn,4);let xi=8;Yn&&(di=A(Wn,xi),xi+=4),Ar&&(xi+=4);let Wi=di+_;for(let Da=0;Da<Hi;Da++){if(si?(ni=A(Wn,xi),xi+=4):ni=kt,Gr?($i=A(Wn,xi),xi+=4):$i=Zt,Yi&&(xi+=4),kr&&(Er===0?Rr=A(Wn,xi):Rr=fe(Wn,xi),xi+=4),e.type===ee.VIDEO){let Ba=0;for(;Ba<$i;){const Ua=A(n,Wi);if(Wi+=4,It(s,n[Wi])){const is=n.subarray(Wi,Wi+Ua);zt(is,s?2:1,o+Rr/r,t)}Wi+=Ua,Ba+=Ua+4}}o+=ni/r}}))})})}),t}function Je(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 It(o,e){if(o){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function zt(o,e,t,n){const r=Ke(o);let i=0;i+=e;let s=0,c=0,p=0;for(;i<r.length;){s=0;do{if(i>=r.length)break;p=r[i++],s+=p}while(p===255);c=0;do{if(i>=r.length)break;p=r[i++],c+=p}while(p===255);const _=r.length-i;let D=i;if(c<_)i+=c;else if(c>_){b.error(`Malformed SEI payload. ${c} is too small, only ${_} bytes left to parse.`);break}if(s===4){if(r[D++]===181){const he=w(r,D);if(D+=2,he===49){const Te=A(r,D);if(D+=4,Te===1195456820){const we=r[D++];if(we===3){const Ie=r[D++],ze=31&Ie,ot=64&Ie,Mt=ot?2+ze*3:0,kt=new Uint8Array(Mt);if(ot){kt[0]=Ie;for(let mn=1;mn<Mt;mn++)kt[mn]=r[D++]}n.push({type:we,payloadType:s,pts:t,bytes:kt})}}}}}else if(s===5&&c>16){const F=[];for(let we=0;we<16;we++){const Ie=r[D++].toString(16);F.push(Ie.length==1?"0"+Ie:Ie),(we===3||we===5||we===7||we===9)&&F.push("-")}const he=c-16,Te=new Uint8Array(he);for(let we=0;we<he;we++)Te[we]=r[D++];n.push({payloadType:s,pts:t,uuid:F.join(""),userData:Xe(Te),userDataBytes:Te})}}}function Ke(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 Oe(o){const e=o[0];let t="",n="",r=0,i=0,s=0,c=0,p=0,_=0;if(e===0){for(;At(o.subarray(_,_+1))!=="\0";)t+=At(o.subarray(_,_+1)),_+=1;for(t+=At(o.subarray(_,_+1)),_+=1;At(o.subarray(_,_+1))!=="\0";)n+=At(o.subarray(_,_+1)),_+=1;n+=At(o.subarray(_,_+1)),_+=1,r=A(o,12),i=A(o,16),c=A(o,20),p=A(o,24),_=28}else if(e===1){_+=4,r=A(o,_),_+=4;const F=A(o,_);_+=4;const he=A(o,_);for(_+=4,s=_l(2,32)*F+he,O(s)||(s=Number.MAX_SAFE_INTEGER,b.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),c=A(o,_),_+=4,p=A(o,_),_+=4;At(o.subarray(_,_+1))!=="\0";)t+=At(o.subarray(_,_+1)),_+=1;for(t+=At(o.subarray(_,_+1)),_+=1;At(o.subarray(_,_+1))!=="\0";)n+=At(o.subarray(_,_+1)),_+=1;n+=At(o.subarray(_,_+1)),_+=1}const D=o.subarray(_,o.byteLength);return{schemeIdUri:t,value:n,timeScale:r,presentationTime:s,presentationTimeDelta:i,eventDuration:c,id:p,payload:D}}function bt(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 St(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 p=e[c];if(p.byteLength!==16)throw new RangeError("Invalid key");r.set(p,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),bt([112,115,115,104],new Uint8Array([n,0,0,0]),o,i,r,s,t||new Uint8Array)}function qt(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=Wt(r);e.push(i),n+=i.size}}return e}function Wt(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=vt.hexDump(new Uint8Array(s,t+12,16)),p=o.getUint32(28);let _=null,D=null;if(i===0){if(e-32<p||p<22)return{offset:t,size:e};D=new Uint8Array(s,t+32,p)}else if(i===1){if(!p||n<t+32+p*16+16)return{offset:t,size:e};_=[];for(let F=0;F<p;F++)_.push(new Uint8Array(s,t+32+F*16,16))}return{version:i,systemId:c,kids:_,data:D,offset:t,size:e}}let on={};class Xt{static clearKeyUriToKeyIdMap(){on={}}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&&b.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0);const n=hn(e);return new Xt(this.method,this.uri,"identity",this.keyFormatVersions,n)}const t=de(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=St(n,null,t),this.keyId=Et(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=on[this.uri];if(!n){const r=Object.keys(on).length%Number.MAX_SAFE_INTEGER;n=new Uint8Array(16),new DataView(n.buffer,12,4).setUint32(0,r),on[this.uri]=n}this.keyId=n}return this}}function hn(o){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=o>>8*(15-t)&255;return e}const An=/\{\$([a-zA-Z0-9-_]+)\}/g;function $t(o){return An.test(o)}function Rt(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]=an(o,i))}}function an(o,e){if(o.variableList!==null||o.hasVariableRefs){const t=o.variableList;return e.replace(An,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 tn(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 cn(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 bn(o=!0){return typeof self=="undefined"?void 0:(o||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function tr(o){return typeof self!="undefined"&&o===self.ManagedMediaSource}const Mn={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function Qt(o,e){const t=Mn[e];return!!t&&!!t[o.slice(0,4)]}function ct(o,e,t=!0){return!o.split(",").some(n=>!ft(n,e,t))}function ft(o,e,t=!0){var n;const r=bn(t);return(n=r==null?void 0:r.isTypeSupported(Tt(o,e)))!=null?n:!1}function Tt(o,e){return`${e}/mp4;codecs="${o}"`}function Nt(o){if(o){const e=o.substring(0,4);return Mn.video[e]}return 2}function Dt(o){return o.split(",").reduce((e,t)=>{const n=Mn.video[t];return n?(n*2+e)/(e?3:2):(Mn.audio[t]+e)/(e?2:1)},0)}const Ht={};function Bt(o,e=!0){if(Ht[o])return Ht[o];const t={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"]}[o];for(let n=0;n<t.length;n++)if(ft(t[n],"audio",e))return Ht[o]=t[n],t[n];return o}const dn=/flac|opus/i;function xn(o,e=!0){return o.replace(dn,t=>Bt(t.toLowerCase(),e))}function Rn(o,e){return o&&o!=="mp4a"?o:e&&e.split(",")[0]}function Qn(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 nr=/#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,ar=/#EXT-X-MEDIA:(.*)/g,_n=/^#EXT(?:INF|-X-TARGETDURATION):/m,yn=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"),gr=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 Gn{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 Q.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return _n.test(e)}static parseMasterPlaylist(e,t){const n=$t(e),r={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:n},i=[];nr.lastIndex=0;let s;for(;(s=nr.exec(e))!=null;)if(s[1]){var c;const _=new j(s[1]);Rt(r,_,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);const D=an(r,s[2]),F={attrs:_,bitrate:_.decimalInteger("BANDWIDTH")||_.decimalInteger("AVERAGE-BANDWIDTH"),name:_.NAME,url:Gn.resolve(D,t)},he=_.decimalResolution("RESOLUTION");he&&(F.width=he.width,F.height=he.height),or(_.CODECS,F),(c=F.unknownCodecs)!=null&&c.length||i.push(F),r.levels.push(F)}else if(s[3]){const _=s[3],D=s[4];switch(_){case"SESSION-DATA":{const F=new j(D);Rt(r,F,["DATA-ID","LANGUAGE","VALUE","URI"]);const he=F["DATA-ID"];he&&(r.sessionData===null&&(r.sessionData={}),r.sessionData[he]=F);break}case"SESSION-KEY":{const F=Tr(D,t,r);F.encrypted&&F.isSupported()?(r.sessionKeys===null&&(r.sessionKeys=[]),r.sessionKeys.push(F)):b.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${D}"`);break}case"DEFINE":{{const F=new j(D);Rt(r,F,["NAME","VALUE","QUERYPARAM"]),tn(r,F,t)}break}case"CONTENT-STEERING":{const F=new j(D);Rt(r,F,["SERVER-URI","PATHWAY-ID"]),r.contentSteering={uri:Gn.resolve(F["SERVER-URI"],t),pathwayId:F["PATHWAY-ID"]||"."};break}case"START":{r.startTimeOffset=Jn(D);break}}}const p=i.length>0&&i.length<r.levels.length;return r.levels=p?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 p=0;for(ar.lastIndex=0;(r=ar.exec(e))!==null;){const _=new j(r[1]),D=_.TYPE;if(D){const F=c[D],he=i[D]||[];i[D]=he,Rt(n,_,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);const Te=_.LANGUAGE,we=_["ASSOC-LANGUAGE"],Ie=_.CHANNELS,ze=_.CHARACTERISTICS,ot=_["INSTREAM-ID"],Mt={attrs:_,bitrate:0,id:p++,groupId:_["GROUP-ID"]||"",name:_.NAME||Te||"",type:D,default:_.bool("DEFAULT"),autoselect:_.bool("AUTOSELECT"),forced:_.bool("FORCED"),lang:Te,url:_.URI?Gn.resolve(_.URI,t):""};if(we&&(Mt.assocLang=we),Ie&&(Mt.channels=Ie),ze&&(Mt.characteristics=ze),ot&&(Mt.instreamId=ot),F!=null&&F.length){const kt=Gn.findGroup(F,Mt.groupId)||F[0];yr(Mt,kt,"audioCodec"),yr(Mt,kt,"textCodec")}he.push(Mt)}}return i}static parseLevelPlaylist(e,t,n,r,i,s){const c=new X(t),p=c.fragments;let _=null,D=0,F=0,he=0,Te=0,we=null,Ie=new me(r,t),ze,ot,Mt,kt=-1,mn=!1,Zt=null;for(yn.lastIndex=0,c.m3u8=e,c.hasVariableRefs=$t(e);(ze=yn.exec(e))!==null;){mn&&(mn=!1,Ie=new me(r,t),Ie.start=he,Ie.sn=D,Ie.cc=Te,Ie.level=n,_&&(Ie.initSegment=_,Ie.rawProgramDateTime=_.rawProgramDateTime,_.rawProgramDateTime=null,Zt&&(Ie.setByteRange(Zt),Zt=null)));const Er=ze[1];if(Er){Ie.duration=parseFloat(Er);const On=(" "+ze[2]).slice(1);Ie.title=On||null,Ie.tagList.push(On?["INF",Er,On]:["INF",Er])}else if(ze[3]){if(C(Ie.duration)){Ie.start=he,Mt&&Xn(Ie,Mt,c),Ie.sn=D,Ie.level=n,Ie.cc=Te,p.push(Ie);const On=(" "+ze[3]).slice(1);Ie.relurl=an(c,On),Ir(Ie,we),we=Ie,he+=Ie.duration,D++,F=0,mn=!0}}else if(ze[4]){const On=(" "+ze[4]).slice(1);we?Ie.setByteRange(On,we):Ie.setByteRange(On)}else if(ze[5])Ie.rawProgramDateTime=(" "+ze[5]).slice(1),Ie.tagList.push(["PROGRAM-DATE-TIME",Ie.rawProgramDateTime]),kt===-1&&(kt=p.length);else{if(ze=ze[0].match(gr),!ze){b.warn("No matches on slow regex match for level playlist!");continue}for(ot=1;ot<ze.length&&typeof ze[ot]=="undefined";ot++);const On=(" "+ze[ot]).slice(1),Yn=(" "+ze[ot+1]).slice(1),di=ze[ot+2]?(" "+ze[ot+2]).slice(1):"";switch(On){case"PLAYLIST-TYPE":c.type=Yn.toUpperCase();break;case"MEDIA-SEQUENCE":D=c.startSN=parseInt(Yn);break;case"SKIP":{const Ar=new j(Yn);Rt(c,Ar,["RECENTLY-REMOVED-DATERANGES"]);const si=Ar.decimalInteger("SKIPPED-SEGMENTS");if(C(si)){c.skippedSegments=si;for(let Gr=si;Gr--;)p.unshift(null);D+=si}const ni=Ar.enumeratedString("RECENTLY-REMOVED-DATERANGES");ni&&(c.recentlyRemovedDateranges=ni.split(" "));break}case"TARGETDURATION":c.targetduration=Math.max(parseInt(Yn),1);break;case"VERSION":c.version=parseInt(Yn);break;case"INDEPENDENT-SEGMENTS":case"EXTM3U":break;case"ENDLIST":c.live=!1;break;case"#":(Yn||di)&&Ie.tagList.push(di?[Yn,di]:[Yn]);break;case"DISCONTINUITY":Te++,Ie.tagList.push(["DIS"]);break;case"GAP":Ie.gap=!0,Ie.tagList.push([On]);break;case"BITRATE":Ie.tagList.push([On,Yn]);break;case"DATERANGE":{const Ar=new j(Yn);Rt(c,Ar,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),Rt(c,Ar,Ar.clientAttrs);const si=new xe(Ar,c.dateRanges[Ar.ID]);si.isValid||c.skippedSegments?c.dateRanges[si.id]=si:b.warn(`Ignoring invalid DATERANGE tag: "${Yn}"`),Ie.tagList.push(["EXT-X-DATERANGE",Yn]);break}case"DEFINE":{{const Ar=new j(Yn);Rt(c,Ar,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in Ar?cn(c,Ar,s):tn(c,Ar,t)}break}case"DISCONTINUITY-SEQUENCE":Te=parseInt(Yn);break;case"KEY":{const Ar=Tr(Yn,t,c);if(Ar.isSupported()){if(Ar.method==="NONE"){Mt=void 0;break}Mt||(Mt={}),Mt[Ar.keyFormat]&&(Mt=a({},Mt)),Mt[Ar.keyFormat]=Ar}else b.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${Yn}"`);break}case"START":c.startTimeOffset=Jn(Yn);break;case"MAP":{const Ar=new j(Yn);if(Rt(c,Ar,["BYTERANGE","URI"]),Ie.duration){const si=new me(r,t);Jr(si,Ar,n,Mt),_=si,Ie.initSegment=_,_.rawProgramDateTime&&!Ie.rawProgramDateTime&&(Ie.rawProgramDateTime=_.rawProgramDateTime)}else{const si=Ie.byteRangeEndOffset;if(si){const ni=Ie.byteRangeStartOffset;Zt=`${si-ni}@${ni}`}else Zt=null;Jr(Ie,Ar,n,Mt),_=Ie,mn=!0}break}case"SERVER-CONTROL":{const Ar=new j(Yn);c.canBlockReload=Ar.bool("CAN-BLOCK-RELOAD"),c.canSkipUntil=Ar.optionalFloat("CAN-SKIP-UNTIL",0),c.canSkipDateRanges=c.canSkipUntil>0&&Ar.bool("CAN-SKIP-DATERANGES"),c.partHoldBack=Ar.optionalFloat("PART-HOLD-BACK",0),c.holdBack=Ar.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{const Ar=new j(Yn);c.partTarget=Ar.decimalFloatingPoint("PART-TARGET");break}case"PART":{let Ar=c.partList;Ar||(Ar=c.partList=[]);const si=F>0?Ar[Ar.length-1]:void 0,ni=F++,Gr=new j(Yn);Rt(c,Gr,["BYTERANGE","URI"]);const $i=new P(Gr,Ie,t,ni,si);Ar.push($i),Ie.duration+=$i.duration;break}case"PRELOAD-HINT":{const Ar=new j(Yn);Rt(c,Ar,["URI"]),c.preloadHint=Ar;break}case"RENDITION-REPORT":{const Ar=new j(Yn);Rt(c,Ar,["URI"]),c.renditionReports=c.renditionReports||[],c.renditionReports.push(Ar);break}default:b.warn(`line parsed but not handled: ${ze}`);break}}}we&&!we.relurl?(p.pop(),he-=we.duration,c.partList&&(c.fragmentHint=we)):c.partList&&(Ir(Ie,we),Ie.cc=Te,c.fragmentHint=Ie,Mt&&Xn(Ie,Mt,c));const Bn=p.length,fn=p[0],Wn=p[Bn-1];if(he+=c.skippedSegments*c.targetduration,he>0&&Bn&&Wn){c.averagetargetduration=he/Bn;const Er=Wn.sn;c.endSN=Er!=="initSegment"?Er:0,c.live||(Wn.endList=!0),fn&&(c.startCC=fn.cc)}else c.endSN=0,c.startCC=0;return c.fragmentHint&&(he+=c.fragmentHint.duration),c.totalduration=he,c.endCC=Te,kt>0&&rr(p,kt),c}}function Tr(o,e,t){var n,r;const i=new j(o);Rt(t,i,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);const s=(n=i.METHOD)!=null?n:"",c=i.URI,p=i.hexadecimalInteger("IV"),_=i.KEYFORMATVERSIONS,D=(r=i.KEYFORMAT)!=null?r:"identity";c&&i.IV&&!p&&b.error(`Invalid IV: ${i.IV}`);const F=c?Gn.resolve(c,e):"",he=(_||"1").split("/").map(Number).filter(Number.isFinite);return new Xt(s,F,D,he,p)}function Jn(o){const t=new j(o).decimalFloatingPoint("TIME-OFFSET");return C(t)?t:null}function or(o,e){let t=(o||"").split(/[ ,]+/).filter(n=>n);["video","audio","text"].forEach(n=>{const r=t.filter(i=>Qt(i,n));r.length&&(e[`${n}Codec`]=r.join(","),t=t.filter(i=>r.indexOf(i)===-1))}),e.unknownCodecs=t}function yr(o,e,t){const n=e[t];n&&(o[t]=n)}function rr(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 Ir(o,e){o.rawProgramDateTime?o.programDateTime=Date.parse(o.rawProgramDateTime):e!=null&&e.programDateTime&&(o.programDateTime=e.endProgramDateTime),C(o.programDateTime)||(o.programDateTime=null,o.rawProgramDateTime=null)}function Jr(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 Xn(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 En={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},it={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};function Fn(o){const{type:e}=o;switch(e){case En.AUDIO_TRACK:return it.AUDIO;case En.SUBTITLE_TRACK:return it.SUBTITLE;default:return it.MAIN}}function lr(o,e){let t=o.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class Cr{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:En.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:En.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:En.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:En.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){b.trace("[playlist-loader]: playlist request ongoing");return}b.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),r.abort()}let i;if(e.type===En.MANIFEST?i=n.manifestLoadPolicy.default:i=a({},n.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),r=this.createInternalLoader(e),C((t=e.deliveryDirectives)==null?void 0:t.part)){let _;if(e.type===En.LEVEL&&e.level!==null?_=this.hls.levels[e.level].details:e.type===En.AUDIO_TRACK&&e.id!==null?_=this.hls.audioTracks[e.id].details:e.type===En.SUBTITLE_TRACK&&e.id!==null&&(_=this.hls.subtitleTracks[e.id].details),_){const D=_.partTarget,F=_.targetduration;if(D&&F){const he=Math.max(D*3,F*.8)*1e3;i=a({},i,{maxTimeToFirstByteMs:Math.min(he,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(he,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},p={onSuccess:(_,D,F,he)=>{const Te=this.getInternalLoader(F);this.resetInternalLoader(F.type);const we=_.data;if(we.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(_,F,new Error("no EXTM3U delimiter"),he||null,D);return}D.parsing.start=performance.now(),Gn.isMediaPlaylist(we)?this.handleTrackOrLevelPlaylist(_,D,F,he||null,Te):this.handleMasterPlaylist(_,D,F,he)},onError:(_,D,F,he)=>{this.handleNetworkError(D,F,!1,_,he)},onTimeout:(_,D,F)=>{this.handleNetworkError(D,F,!0,void 0,_)}};r.load(e,c,p)}handleMasterPlaylist(e,t,n,r){const i=this.hls,s=e.data,c=lr(e,n),p=Gn.parseMasterPlaylist(s,c);if(p.playlistParsingError){this.handleManifestParsingError(e,n,p.playlistParsingError,r,t);return}const{contentSteering:_,levels:D,sessionData:F,sessionKeys:he,startTimeOffset:Te,variableList:we}=p;this.variableList=we;const{AUDIO:Ie=[],SUBTITLES:ze,"CLOSED-CAPTIONS":ot}=Gn.parseMasterPlaylistMedia(s,c,p);Ie.length&&!Ie.some(kt=>!kt.url)&&D[0].audioCodec&&!D[0].attrs.AUDIO&&(b.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),Ie.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new j({}),bitrate:0,url:""})),i.trigger(u.MANIFEST_LOADED,{levels:D,audioTracks:Ie,subtitles:ze,captions:ot,contentSteering:_,url:c,stats:t,networkDetails:r,sessionData:F,sessionKeys:he,startTimeOffset:Te,variableList:we})}handleTrackOrLevelPlaylist(e,t,n,r,i){const s=this.hls,{id:c,level:p,type:_}=n,D=lr(e,n),F=0,he=C(p)?p:C(c)?c:0,Te=Fn(n),we=Gn.parseLevelPlaylist(e.data,D,he,Te,F,this.variableList);if(_===En.MANIFEST){const Ie={attrs:new j({}),bitrate:0,details:we,name:"",url:D};s.trigger(u.MANIFEST_LOADED,{levels:[Ie],audioTracks:[],url:D,stats:t,networkDetails:r,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),n.levelDetails=we,this.handlePlaylistLoaded(we,e,t,n,r,i)}handleManifestParsingError(e,t,n,r,i){this.hls.trigger(u.ERROR,{type:x.NETWORK_ERROR,details:y.MANIFEST_PARSING_ERROR,fatal:t.type===En.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===En.LEVEL?s+=`: ${e.level} id: ${e.id}`:(e.type===En.AUDIO_TRACK||e.type===En.SUBTITLE_TRACK)&&(s+=` id: ${e.id} group-id: "${e.groupId}"`);const c=new Error(s);b.warn(`[playlist-loader]: ${s}`);let p=y.UNKNOWN,_=!1;const D=this.getInternalLoader(e);switch(e.type){case En.MANIFEST:p=n?y.MANIFEST_LOAD_TIMEOUT:y.MANIFEST_LOAD_ERROR,_=!0;break;case En.LEVEL:p=n?y.LEVEL_LOAD_TIMEOUT:y.LEVEL_LOAD_ERROR,_=!1;break;case En.AUDIO_TRACK:p=n?y.AUDIO_TRACK_LOAD_TIMEOUT:y.AUDIO_TRACK_LOAD_ERROR,_=!1;break;case En.SUBTITLE_TRACK:p=n?y.SUBTITLE_TRACK_LOAD_TIMEOUT:y.SUBTITLE_LOAD_ERROR,_=!1;break}D&&this.resetInternalLoader(e.type);const F={type:x.NETWORK_ERROR,details:p,fatal:_,url:e.url,loader:D,context:e,error:c,networkDetails:t,stats:i};if(r){const he=(t==null?void 0:t.url)||e.url;F.response=U({url:he,data:void 0},r)}this.hls.trigger(u.ERROR,F)}handlePlaylistLoaded(e,t,n,r,i,s){const c=this.hls,{type:p,level:_,id:D,groupId:F,deliveryDirectives:he}=r,Te=lr(t,r),we=Fn(r),Ie=typeof r.level=="number"&&we===it.MAIN?_:void 0;if(!e.fragments.length){const ot=new Error("No Segments found in Playlist");c.trigger(u.ERROR,{type:x.NETWORK_ERROR,details:y.LEVEL_EMPTY_ERROR,fatal:!1,url:Te,error:ot,reason:ot.message,response:t,context:r,level:Ie,parent:we,networkDetails:i,stats:n});return}e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));const ze=e.playlistParsingError;if(ze){c.trigger(u.ERROR,{type:x.NETWORK_ERROR,details:y.LEVEL_PARSING_ERROR,fatal:!1,url:Te,error:ze,reason:ze.message,response:t,context:r,level:Ie,parent:we,networkDetails:i,stats:n});return}switch(e.live&&s&&(s.getCacheAge&&(e.ageHeader=s.getCacheAge()||0),(!s.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),p){case En.MANIFEST:case En.LEVEL:c.trigger(u.LEVEL_LOADED,{details:e,level:Ie||0,id:D||0,stats:n,networkDetails:i,deliveryDirectives:he});break;case En.AUDIO_TRACK:c.trigger(u.AUDIO_TRACK_LOADED,{details:e,id:D||0,groupId:F||"",stats:n,networkDetails:i,deliveryDirectives:he});break;case En.SUBTITLE_TRACK:c.trigger(u.SUBTITLE_TRACK_LOADED,{details:e,id:D||0,groupId:F||"",stats:n,networkDetails:i,deliveryDirectives:he});break}}}function Dr(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 Mr(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){b.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){b.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${r}`)}}t==="disabled"&&(o.mode=t)}function Ur(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 vr(o,e,t,n){const r=o.mode;if(r==="disabled"&&(o.mode="hidden"),o.cues&&o.cues.length>0){const i=zn(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 Kr(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 zn(o,e,t){const n=[],r=Kr(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 Sn(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 qn={audioId3:"org.id3",dateRange:"com.apple.quicktime.HLS",emsg:"https://aomedia.org/emsg/ID3"};const Lr=.25;function Zr(){if(typeof self!="undefined")return self.VTTCue||self.TextTrackCue}function Ci(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?U({type:r},n):n))}return i}const Un=(()=>{const o=Zr();try{o&&new o(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();function Vr(o,e){return o.getTime()/1e3-e}function jr(o){return Uint8Array.from(o.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}class oi{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&&(Ur(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 Dr(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=Zr();if(s)for(let c=0;c<i.length;c++){const p=i[c].type;if(p===qn.emsg&&!n||!r)continue;const _=re(i[c].data);if(_){const D=i[c].pts;let F=D+i[c].duration;F>Un&&(F=Un),F-D<=0&&(F=D+Lr);for(let Te=0;Te<_.length;Te++){const we=_[Te];if(!I(we)){this.updateId3CueEnds(D,p);const Ie=Ci(s,D,F,we,p);Ie&&this.id3Track.addCue(Ie)}}}}}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===Un&&(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:p}}=s;if(i&&(c||p)){let _;r==="audio"?_=D=>D.type===qn.audioId3&&p:r==="video"?_=D=>D.type===qn.emsg&&c:_=D=>D.type===qn.audioId3&&p||D.type===qn.emsg&&c,vr(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 D=Object.keys(n).filter(F=>!s.includes(F));for(let F=D.length;F--;){const he=D[F];Object.keys(n[he].cues).forEach(Te=>{r.removeCue(n[he].cues[Te])}),delete n[he]}}const c=t.fragments[t.fragments.length-1];if(s.length===0||!C(c==null?void 0:c.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const p=c.programDateTime/1e3-c.start,_=Zr();for(let D=0;D<s.length;D++){const F=s[D],he=i[F],Te=Vr(he.startDate,p),we=n[F],Ie=(we==null?void 0:we.cues)||{};let ze=(we==null?void 0:we.durationKnown)||!1,ot=Un;const Mt=he.endDate;if(Mt)ot=Vr(Mt,p),ze=!0;else if(he.endOnNext&&!ze){const mn=s.reduce((Zt,Bn)=>{if(Bn!==he.id){const fn=i[Bn];if(fn.class===he.class&&fn.startDate>he.startDate&&(!Zt||he.startDate<Zt.startDate))return fn}return Zt},null);mn&&(ot=Vr(mn.startDate,p),ze=!0)}const kt=Object.keys(he.attr);for(let mn=0;mn<kt.length;mn++){const Zt=kt[mn];if(!be(Zt))continue;const Bn=Ie[Zt];if(Bn)ze&&!we.durationKnown&&(Bn.endTime=ot);else if(_){let fn=he.attr[Zt];Ee(Zt)&&(fn=jr(fn));const Wn=Ci(_,Te,ot,{key:Zt,data:fn},qn.dateRange);Wn&&(Wn.id=F,this.id3Track.addCue(Wn),Ie[Zt]=Wn)}}n[F]={cues:Ie,dateRange:he,durationKnown:ze}}}}class Ai{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,p=this.hls.userConfig;let _=c&&n||t;(p.liveSyncDuration||p.liveSyncDurationCount||_===0)&&(_=i!==void 0?i:s*r);const D=r;return _+Math.min(this.stallCount*1,D)}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===y.BUFFER_STALLED_ERROR&&(this.stallCount++,(n=this.levelDetails)!=null&&n.live&&b.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,p=Math.min(this.maxLatency,s+t.targetduration);if(c<p&&c>.05&&this.forwardBufferLength>1){const D=Math.min(2,Math.max(1,i)),F=Math.round(2/(1+Math.exp(-.75*c-this.edgeStalled))*20)/20;e.playbackRate=Math.min(D,Math.max(1,F))}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 Li=["NONE","TYPE-0","TYPE-1",null];function ei(o){return Li.indexOf(o)>-1}const gi=["SDR","PQ","HLG"];function li(o){return!!o&&gi.indexOf(o)>-1}var Ri={No:"",Yes:"YES",v2:"v2"};function Ii(o){const{canSkipUntil:e,canSkipDateRanges:t,age:n}=o,r=n<e/2;return e&&r?t?Ri.v2:Ri.Yes:Ri.No}class ji{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 Ti{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 Gi(this._audioGroups,e)}hasSubtitleGroup(e){return Gi(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 Gi(o,e){return!e||!o?!1:o.indexOf(e)!==-1}function $r(o,e){const t=e.startPTS;if(C(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 aa(o,e,t,n,r,i){n-t<=0&&(b.warn("Fragment should have a positive duration",e),n=t+e.duration,i=r+e.duration);let c=t,p=n;const _=e.startPTS,D=e.endPTS;if(C(_)){const ze=Math.abs(_-t);C(e.deltaPTS)?e.deltaPTS=Math.max(ze,e.deltaPTS):e.deltaPTS=ze,c=Math.max(t,_),t=Math.min(t,_),r=Math.min(r,e.startDTS),p=Math.min(n,D),n=Math.max(n,D),i=Math.max(i,e.endDTS)}const F=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=p,e.endDTS=i;const he=e.sn;if(!o||he<o.startSN||he>o.endSN)return 0;let Te;const we=he-o.startSN,Ie=o.fragments;for(Ie[we]=e,Te=we;Te>0;Te--)$r(Ie[Te],Ie[Te-1]);for(Te=we;Te<Ie.length-1;Te++)$r(Ie[Te],Ie[Te+1]);return o.fragmentHint&&$r(Ie[Ie.length-1],o.fragmentHint),o.PTSKnown=o.alignedSliding=!0,F}function ga(o,e){let t=null;const n=o.fragments;for(let c=n.length-1;c>=0;c--){const p=n[c].initSegment;if(p){t=p;break}}o.fragmentHint&&delete o.fragmentHint.endPTS;let r;ca(o,e,(c,p,_,D)=>{if(e.skippedSegments&&p.cc!==c.cc){const F=c.cc-p.cc;for(let he=_;he<D.length;he++)D[he].cc+=F}C(c.startPTS)&&C(c.endPTS)&&(p.start=p.startPTS=c.startPTS,p.startDTS=c.startDTS,p.maxStartPTS=c.maxStartPTS,p.endPTS=c.endPTS,p.endDTS=c.endDTS,p.minEndPTS=c.minEndPTS,p.duration=c.endPTS-c.startPTS,p.duration&&(r=p),e.PTSKnown=e.alignedSliding=!0),p.elementaryStreams=c.elementaryStreams,p.loader=c.loader,p.stats=c.stats,c.initSegment&&(p.initSegment=c.initSegment,t=c.initSegment)});const i=e.fragments;if(t&&(e.fragmentHint?i.concat(e.fragmentHint):i).forEach(p=>{var _;p&&(!p.initSegment||p.initSegment.relurl===((_=t)==null?void 0:_.relurl))&&(p.initSegment=t)}),e.skippedSegments){if(e.deltaUpdateFailed=i.some(c=>!c),e.deltaUpdateFailed){b.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=ua(o.dateRanges,e.dateRanges,e.recentlyRemovedDateranges));e.startCC=e.fragments[0].cc,e.endCC=i[i.length-1].cc}vi(o.partList,e.partList,(c,p)=>{p.elementaryStreams=c.elementaryStreams,p.stats=c.stats}),r?aa(e,r,r.startPTS,r.endPTS,r.startDTS,r.endDTS):wa(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 ua(o,e,t){const n=a({},o);return t&&t.forEach(r=>{delete n[r]}),Object.keys(e).forEach(r=>{const i=new xe(e[r].attr,n[r]);i.isValid?n[r]=i:b.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${JSON.stringify(e[r].attr)}"`)}),n}function vi(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 ca(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,p=o.fragmentHint?o.fragments.concat(o.fragmentHint):o.fragments;for(let _=r;_<=i;_++){const D=p[s+_];let F=c[_];n&&!F&&_<n&&(F=e.fragments[_]=D),D&&F&&t(D,F,_,c)}}function wa(o,e){const t=e.startSN+e.skippedSegments-o.startSN,n=o.fragments;t<0||t>=n.length||Pn(e,n[t].start)}function Pn(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 Mi(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 na(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 ur(o,e,t){var n;return o!=null&&o.details?_r((n=o.details)==null?void 0:n.partList,e,t):null}function _r(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 cr(o){o.forEach((e,t)=>{const{details:n}=e;n!=null&&n.fragments&&n.fragments.forEach(r=>{r.level=t})})}function Zn(o){switch(o.details){case y.FRAG_LOAD_TIMEOUT:case y.KEY_LOAD_TIMEOUT:case y.LEVEL_LOAD_TIMEOUT:case y.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function Nr(o,e){const t=Zn(e);return o.default[`${t?"timeout":"error"}Retry`]}function Yr(o,e){const t=o.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*o.retryDelayMs,o.maxRetryDelayMs)}function Ni(o){return U(U({},o),{errorRetry:null,timeoutRetry:null})}function yi(o,e,t,n){if(!o)return!1;const r=n==null?void 0:n.code,i=e<o.maxNumRetry&&(Oi(r)||!!t);return o.shouldRetry?o.shouldRetry(o,e,t,n,i):i}function Oi(o){return o===0&&navigator.onLine===!1||!!o&&(o<400||o>499)}const Bi={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 va(o,e,t){if(e===null||!Array.isArray(o)||!o.length||!C(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(fa(e,t,s))return s}return null}function Ca(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)&&da(t,n,i)===0||Za(i,o,Math.min(r,n))))return i;const s=Bi.search(e,da.bind(null,t,n));return s&&(s!==o||!i)?s:i}function Za(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 da(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 fa(o,e,t){const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-n>o}function dr(o,e){return Bi.search(o,t=>t.cc<e?1:t.cc>e?-1:0)}var sr={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},Xr={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4};class zi{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=b.log.bind(b,"[info]:"),this.warn=b.warn.bind(b,"[warning]:"),this.error=b.error.bind(b,"[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)===it.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 y.FRAG_LOAD_ERROR:case y.FRAG_LOAD_TIMEOUT:case y.KEY_LOAD_ERROR:case y.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case y.FRAG_PARSING_ERROR:if((n=t.frag)!=null&&n.gap){t.errorAction={action:sr.DoNothing,flags:Xr.None};return}case y.FRAG_GAP:case y.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=sr.SendAlternateToPenaltyBox;return}case y.LEVEL_EMPTY_ERROR:case y.LEVEL_PARSING_ERROR:{var c,p;const _=t.parent===it.MAIN?t.level:i.loadLevel;t.details===y.LEVEL_EMPTY_ERROR&&((c=t.context)!=null&&(p=c.levelDetails)!=null&&p.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,_):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,_))}return;case y.LEVEL_LOAD_ERROR:case y.LEVEL_LOAD_TIMEOUT:typeof(s==null?void 0:s.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,s.level));return;case y.AUDIO_TRACK_LOAD_ERROR:case y.AUDIO_TRACK_LOAD_TIMEOUT:case y.SUBTITLE_LOAD_ERROR:case y.SUBTITLE_TRACK_LOAD_TIMEOUT:if(s){const _=i.levels[i.loadLevel];if(_&&(s.type===En.AUDIO_TRACK&&_.hasAudioGroup(s.groupId)||s.type===En.SUBTITLE_TRACK&&_.hasSubtitleGroup(s.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.loadLevel),t.errorAction.action=sr.SendAlternateToPenaltyBox,t.errorAction.flags=Xr.MoveAllAlternatesMatchingHost;return}}return;case y.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const _=i.levels[i.loadLevel],D=_==null?void 0:_.attrs["HDCP-LEVEL"];D?t.errorAction={action:sr.SendAlternateToPenaltyBox,flags:Xr.MoveAllAlternatesMatchingHDCP,hdcpLevel:D}:this.keySystemError(t)}return;case y.BUFFER_ADD_CODEC_ERROR:case y.REMUX_ALLOC_ERROR:case y.BUFFER_APPEND_ERROR:t.errorAction=this.getLevelSwitchAction(t,(r=t.level)!=null?r:i.loadLevel);return;case y.INTERNAL_EXCEPTION:case y.BUFFER_APPENDING_ERROR:case y.BUFFER_FULL_ERROR:case y.LEVEL_SWITCH_ERROR:case y.BUFFER_STALLED_ERROR:case y.BUFFER_SEEK_OVER_HOLE:case y.BUFFER_NUDGE_ON_STALL:t.errorAction={action:sr.DoNothing,flags:Xr.None};return}t.type===x.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=Nr(n.config.playlistLoadPolicy,e),i=this.playlistError++;if(yi(r,i,Zn(e),e.response))return{action:sr.RetryRequest,flags:Xr.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=Nr(e.details.startsWith("key")?s:i,e),p=t.levels.reduce((D,F)=>D+F.fragmentError,0);if(r&&(e.details!==y.FRAG_GAP&&r.fragmentError++,yi(c,p,Zn(e),e.response)))return{action:sr.RetryRequest,flags:Xr.None,retryConfig:c,retryCount:p};const _=this.getLevelSwitchAction(e,n);return c&&(_.retryConfig=c,_.retryCount=p),_}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++,_===y.BUFFER_APPEND_ERROR&&r.fragmentError++;let D=-1;const{levels:F,loadLevel:he,minAutoLevel:Te,maxAutoLevel:we}=n;n.autoLevelEnabled||(n.loadLevel=-1);const Ie=(i=e.frag)==null?void 0:i.type,ot=(Ie===it.AUDIO&&_===y.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(_===y.BUFFER_ADD_CODEC_ERROR||_===y.BUFFER_APPEND_ERROR))&&F.some(({audioCodec:Bn})=>r.audioCodec!==Bn),kt=e.sourceBufferName==="video"&&(_===y.BUFFER_ADD_CODEC_ERROR||_===y.BUFFER_APPEND_ERROR)&&F.some(({codecSet:Bn,audioCodec:fn})=>r.codecSet!==Bn&&r.audioCodec===fn),{type:mn,groupId:Zt}=(s=e.context)!=null?s:{};for(let Bn=F.length;Bn--;){const fn=(Bn+he)%F.length;if(fn!==he&&fn>=Te&&fn<=we&&F[fn].loadError===0){var c,p;const Wn=F[fn];if(_===y.FRAG_GAP&&Ie===it.MAIN&&e.frag){const Er=F[fn].details;if(Er){const On=Ca(e.frag,Er.fragments,e.frag.start);if(On!=null&&On.gap)continue}}else{if(mn===En.AUDIO_TRACK&&Wn.hasAudioGroup(Zt)||mn===En.SUBTITLE_TRACK&&Wn.hasSubtitleGroup(Zt))continue;if(Ie===it.AUDIO&&(c=r.audioGroups)!=null&&c.some(Er=>Wn.hasAudioGroup(Er))||Ie===it.SUBTITLE&&(p=r.subtitleGroups)!=null&&p.some(Er=>Wn.hasSubtitleGroup(Er))||ot&&r.audioCodec===Wn.audioCodec||!ot&&r.audioCodec!==Wn.audioCodec||kt&&r.codecSet===Wn.codecSet)continue}D=fn;break}}if(D>-1&&n.loadLevel!==D)return e.levelRetry=!0,this.playlistError=0,{action:sr.SendAlternateToPenaltyBox,flags:Xr.None,nextAutoLevel:D}}return{action:sr.SendAlternateToPenaltyBox,flags:Xr.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var n;switch((n=t.errorAction)==null?void 0:n.action){case sr.DoNothing:break;case sr.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),!t.errorAction.resolved&&t.details!==y.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 sr.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 Xr.None:this.switchLevel(e,s);break;case Xr.MoveAllAlternatesMatchingHDCP:i&&(t.maxHdcpLevel=Li[Li.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 ui{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=b.log.bind(b,`${t}:`),this.warn=b.warn.bind(b,`${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 p;try{p=new self.URL(c.URI,t.url).href}catch(_){b.warn(`Could not construct new URL for Rendition Report: ${_}`),p=c.URI||""}if(p===e){i=s;break}else p===e.substring(0,p.length)&&(i=s)}if(i!==-1){const s=r[i],c=parseInt(s["LAST-MSN"])||(t==null?void 0:t.lastPartSn);let p=parseInt(s["LAST-PART"])||(t==null?void 0:t.lastPartIndex);if(this.hls.config.lowLatencyMode){const D=Math.min(t.age-t.partTarget,t.targetduration);p>=0&&D>t.partTarget&&(p+=1)}const _=n&&Ii(n);return new ji(c,p>=0?p: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&&ga(n,r),!this.canLoad||!r.live)return;let p,_,D;if(r.canBlockReload&&r.endSN&&r.advanced){const ze=this.hls.config.lowLatencyMode,ot=r.lastPartSn,Mt=r.endSN,kt=r.lastPartIndex,mn=kt!==-1,Zt=ot===Mt,Bn=ze?0:kt;mn?(_=Zt?Mt+1:ot,D=Zt?Bn:kt+1):_=Mt+1;const fn=r.age,Wn=fn+r.ageHeader;let Er=Math.min(Wn-r.partTarget,r.targetduration*1.5);if(Er>0){if(n&&Er>n.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${n.tuneInGoal} to: ${Er} with playlist age: ${r.age}`),Er=0;else{const On=Math.floor(Er/r.targetduration);if(_+=On,D!==void 0){const Yn=Math.round(Er%r.targetduration/r.partTarget);D+=Yn}this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${fn.toFixed(2)}s goal: ${Er} skip sn ${On} to part ${D}`)}r.tuneInGoal=Er}if(p=this.getDeliveryDirectives(r,t.deliveryDirectives,_,D),ze||!Zt){this.loadPlaylist(p);return}}else(r.canBlockReload||r.canSkipUntil)&&(p=this.getDeliveryDirectives(r,t.deliveryDirectives,_,D));const F=this.hls.mainForwardBufferInfo,he=F?F.end-F.len:0,Te=(r.edge-he)*1e3,we=Mi(r,Te);r.updated&&s>this.requestScheduled+we&&(this.requestScheduled=i.loading.start),_!==void 0&&r.canBlockReload?this.requestScheduled=i.loading.first+we-(r.partTarget*1e3||1e3):this.requestScheduled===-1||this.requestScheduled+we<s?this.requestScheduled=s:this.requestScheduled-s<=0&&(this.requestScheduled+=we);let Ie=this.requestScheduled-s;Ie=Math.max(0,Ie),this.log(`reload live playlist ${e} in ${Math.round(Ie)} ms`),this.timer=self.setTimeout(()=>this.loadPlaylist(p),Ie)}else this.clearTimer()}getDeliveryDirectives(e,t,n,r){let i=Ii(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,r=t.part,i=Ri.No),new ji(n,r,i)}checkRetry(e){const t=e.details,n=Zn(e),r=e.errorAction,{action:i,retryCount:s=0,retryConfig:c}=r||{},p=!!r&&!!c&&(i===sr.RetryRequest||!r.resolved&&i===sr.SendAlternateToPenaltyBox);if(p){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 D=Yr(c,s);this.timer=self.setTimeout(()=>this.loadPlaylist(),D),this.warn(`Retrying playlist loading ${s+1}/${c.maxNumRetry} after "${t}" in ${D}ms`)}e.levelRetry=!0,r.resolved=!0}return p}}class sa{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 ja{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 sa(e),this.fast_=new sa(t),this.defaultTTFB_=r,this.ttfb_=new sa(e)}update(e,t){const{slow_:n,fast_:r,ttfb_:i}=this;n.halfLife!==e&&(this.slow_=new sa(e,n.getEstimate(),n.getTotalWeight())),r.halfLife!==t&&(this.fast_=new sa(t,r.getEstimate(),r.getTotalWeight())),i.halfLife!==e&&(this.ttfb_=new sa(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 Ka={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]},ya={};function as(o,e,t,n,r,i){const s=o.audioCodec?o.audioGroups:null,c=i==null?void 0:i.audioCodec,p=i==null?void 0:i.channels,_=p?parseInt(p):c?1/0:2;let D=null;if(s!=null&&s.length)try{s.length===1&&s[0]?D=e.groups[s[0]].channels:D=s.reduce((F,he)=>{if(he){const Te=e.groups[he];if(!Te)throw new Error(`Audio track group ${he} not found`);Object.keys(Te.channels).forEach(we=>{F[we]=(F[we]||0)+Te.channels[we]})}return F},{2:0})}catch(F){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))||!!D&&C(_)&&Object.keys(D).some(F=>parseInt(F)>_)}function ss(o,e,t){const n=o.videoCodec,r=o.audioCodec;if(!n||!r||!t)return Promise.resolve(Ka);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(p=>({type:"media-source",video:U(U({},i),{},{contentType:Tt(p,"video")})}));return r&&o.audioGroups&&o.audioGroups.forEach(p=>{var _;p&&((_=e.groups[p])==null||_.tracks.forEach(D=>{if(D.groupId===p){const F=D.channels||"",he=parseFloat(F);C(he)&&he>2&&c.push.apply(c,r.split(",").map(Te=>({type:"media-source",audio:{contentType:Tt(Te,"audio"),channels:""+he}})))}}))}),Promise.all(c.map(p=>{const _=os(p);return ya[_]||(ya[_]=t.decodingInfo(p))})).then(p=>({supported:!p.some(_=>!_.supported),configurations:c,decodingInfoResults:p})).catch(p=>({supported:!1,configurations:c,decodingInfoResults:[],error:p}))}function os(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 ts(){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 ls(o,e){let t=!1,n=[];return o&&(t=o!=="SDR",n=[o]),e&&(n=e.allowedVideoRanges||gi.slice(0),t=e.preferHDR!==void 0?e.preferHDR:ts(),t?n=n.filter(r=>r!=="SDR"):n=["SDR"]),{preferHDR:t,allowedVideoRanges:n}}function Aa(o,e,t,n,r){const i=Object.keys(o),s=n==null?void 0:n.channels,c=n==null?void 0:n.audioCodec,p=s&&parseInt(s)===2;let _=!0,D=!1,F=1/0,he=1/0,Te=1/0,we=0,Ie=[];const{preferHDR:ze,allowedVideoRanges:ot}=ls(e,r);for(let Zt=i.length;Zt--;){const Bn=o[i[Zt]];_=Bn.channels[2]>0,F=Math.min(F,Bn.minHeight),he=Math.min(he,Bn.minFramerate),Te=Math.min(Te,Bn.minBitrate);const fn=ot.filter(Wn=>Bn.videoRanges[Wn]>0);fn.length>0&&(D=!0,Ie=fn)}F=C(F)?F:0,he=C(he)?he:0;const Mt=Math.max(1080,F),kt=Math.max(30,he);return Te=C(Te)?Te:t,t=Math.max(Te,t),D||(e=void 0,Ie=[]),{codecSet:i.reduce((Zt,Bn)=>{const fn=o[Bn];if(Bn===Zt)return Zt;if(fn.minBitrate>t)return Xi(Bn,`min bitrate of ${fn.minBitrate} > current estimate of ${t}`),Zt;if(!fn.hasDefaultAudio)return Xi(Bn,"no renditions with default or auto-select sound found"),Zt;if(c&&Bn.indexOf(c.substring(0,4))%5!==0)return Xi(Bn,`audio codec preference "${c}" not found`),Zt;if(s&&!p){if(!fn.channels[s])return Xi(Bn,`no renditions with ${s} channel sound found (channels options: ${Object.keys(fn.channels)})`),Zt}else if((!c||p)&&_&&fn.channels[2]===0)return Xi(Bn,"no renditions with stereo sound found"),Zt;return fn.minHeight>Mt?(Xi(Bn,`min resolution of ${fn.minHeight} > maximum of ${Mt}`),Zt):fn.minFramerate>kt?(Xi(Bn,`min framerate of ${fn.minFramerate} > maximum of ${kt}`),Zt):Ie.some(Wn=>fn.videoRanges[Wn]>0)?fn.maxScore<we?(Xi(Bn,`max score of ${fn.maxScore} < selected max of ${we}`),Zt):Zt&&(Dt(Bn)>=Dt(Zt)||fn.fragmentError>o[Zt].fragmentError)?Zt:(we=fn.maxScore,Bn):(Xi(Bn,`no variants with VIDEO-RANGE of ${JSON.stringify(Ie)} found`),Zt)},void 0),videoRanges:Ie,preferHDR:ze,minFramerate:he,minBitrate:Te}}function Xi(o,e){b.log(`[abr] start candidates with "${o}" ignored because ${e}`)}function us(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 ns(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 p=Math.min(i.height,i.width);return c.minHeight=Math.min(c.minHeight,p),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 D=e.groups[_];D&&(c.hasDefaultAudio=c.hasDefaultAudio||e.hasDefaultAudio?D.hasDefault:D.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(D.channels).forEach(F=>{c.channels[F]=(c.channels[F]||0)+D.channels[F]}))}),r},{})}function ba(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(xa(o,r,t))return n}return-1}function xa(o,e,t){const{groupId:n,name:r,lang:i,assocLang:s,default:c}=o,p=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)&&(c===void 0||e.default===c)&&(p===void 0||e.forced===p)&&(!("characteristics"in o)||ti(o.characteristics||"",e.characteristics))&&(t===void 0||t(o,e))}function ti(o,e=""){const t=o.split(","),n=e.split(",");return t.length===n.length&&!t.some(r=>n.indexOf(r)===-1)}function Br(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 ia(o,e,t,n,r){const i=e[n],c=e.reduce((he,Te,we)=>{const Ie=Te.uri;return(he[Ie]||(he[Ie]=[])).push(we),he},{})[i.uri];c.length>1&&(n=Math.max.apply(Math,c));const p=i.videoRange,_=i.frameRate,D=i.codecSet.substring(0,4),F=Ui(e,n,he=>{if(he.videoRange!==p||he.frameRate!==_||he.codecSet.substring(0,4)!==D)return!1;const Te=he.audioGroups,we=t.filter(Ie=>!Te||Te.indexOf(Ie.groupId)!==-1);return ba(o,we,r)>-1});return F>-1?F:Ui(e,n,he=>{const Te=he.audioGroups,we=t.filter(Ie=>!Te||Te.indexOf(Ie.groupId)!==-1);return ba(o,we,r)>-1})}function Ui(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 Pi{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(),p=n?n.stats:t.stats,_=n?n.duration:t.duration,D=c-p.loading.start,F=r.minAutoLevel;if(p.aborted||p.loaded&&p.loaded===p.total||t.level<=F){this.clearTimer(),this._nextAutoLevel=-1;return}if(!i||s.paused||!s.playbackRate||!s.readyState)return;const he=r.mainForwardBufferInfo;if(he===null)return;const Te=this.bwEstimator.getEstimateTTFB(),we=Math.abs(s.playbackRate);if(D<=Math.max(Te,1e3*(_/(we*2))))return;const Ie=he.len/we,ze=p.loading.first?p.loading.first-p.loading.start:-1,ot=p.loaded&&ze>-1,Mt=this.getBwEstimate(),kt=r.levels,mn=kt[t.level],Zt=p.total||Math.max(p.loaded,Math.round(_*mn.averageBitrate/8));let Bn=ot?D-ze:D;Bn<1&&ot&&(Bn=Math.min(D,p.loaded*8/Mt));const fn=ot?p.loaded*1e3/Bn:0,Wn=fn?(Zt-p.loaded)/fn:Zt*8/Mt+Te/1e3;if(Wn<=Ie)return;const Er=fn?fn*8:Mt;let On=Number.POSITIVE_INFINITY,Yn;for(Yn=t.level-1;Yn>F;Yn--){const Ar=kt[Yn].maxBitrate;if(On=this.getTimeToLoadFrag(Te/1e3,Er,_*Ar,!kt[Yn].details),On<Ie)break}if(On>=Wn||On>_*10)return;r.nextLoadLevel=r.nextAutoLevel=Yn,ot?this.bwEstimator.sample(D-Math.min(Te,ze),p.loaded):this.bwEstimator.sampleTTFB(D);const di=kt[Yn].maxBitrate;this.getBwEstimate()*this.hls.config.abrBandWidthUpFactor>di&&this.resetEstimator(di),this.clearTimer(),b.warn(`[abr] Fragment ${t.sn}${n?" part "+n.index:""} of level ${t.level} is loading too slowly;
Time to underbuffer: ${Ie.toFixed(3)} s
Estimated load time for current fragment: ${Wn.toFixed(3)} s
Estimated load time for down switch fragment: ${On.toFixed(3)} s
TTFB estimate: ${ze|0} ms
Current BW estimate: ${C(Mt)?Mt|0:"Unknown"} bps
New BW estimate: ${this.getBwEstimate()|0} bps
Switching to level ${Yn} @ ${di|0} bps`),r.trigger(u.FRAG_LOAD_EMERGENCY_ABORTED,{frag:t,part:n,stats:p})},this.hls=e,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(e){e&&(b.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 ja(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 y.BUFFER_ADD_CODEC_ERROR:case y.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case y.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,p=s-c.loading.start,_=c.loading.first?c.loading.first-c.loading.start:-1;if(c.loaded&&_>-1){const F=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(p-Math.min(F,_),c.loaded)}else this.bwEstimator.sampleTTFB(p)}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;C(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===it.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,p=(s.loaded?s.loaded.duration:0)+i;s.loaded={bytes:c,duration:p},s.realBitrate=Math.round(8*c/p)}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!==it.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 b.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,p=this.getBwEstimate(),_=this.getStarvationDelay();let D=i.abrBandWidthFactor,F=i.abrBandWidthUpFactor;if(_){const ze=this.findBestLevel(p,s,r,_,0,D,F);if(ze>=0)return ze}let he=c?Math.min(c,i.maxStarvationDelay):i.maxStarvationDelay;if(!_){const ze=this.bitrateTestDelay;ze&&(he=(c?Math.min(c,i.maxLoadingDelay):i.maxLoadingDelay)-ze,b.info(`[abr] bitrate test took ${Math.round(1e3*ze)}ms, set first fragment max fetchDuration to ${Math.round(1e3*he)} ms`),D=F=1)}const Te=this.findBestLevel(p,s,r,_,he,D,F);if(b.info(`[abr] ${_?"rebuffering expected":"buffer is empty"}, optimal quality level ${Te}`),Te>-1)return Te;const we=n.levels[s],Ie=n.levels[n.loadLevel];return(we==null?void 0:we.bitrate)<(Ie==null?void 0:Ie.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 p;const _=r+i,D=this.lastLoadedFragLevel,F=D===-1?this.hls.firstLevel:D,{fragCurrent:he,partCurrent:Te}=this,{levels:we,allAudioTracks:Ie,loadLevel:ze,config:ot}=this.hls;if(we.length===1)return 0;const Mt=we[F],kt=!!(Mt!=null&&(p=Mt.details)!=null&&p.live),mn=ze===-1||D===-1;let Zt,Bn="SDR",fn=(Mt==null?void 0:Mt.frameRate)||0;const{audioPreference:Wn,videoPreference:Er}=ot,On=this.audioTracksByGroup||(this.audioTracksByGroup=us(Ie));if(mn){if(this.firstSelection!==-1)return this.firstSelection;const ni=this.codecTiers||(this.codecTiers=ns(we,On,t,n)),Gr=Aa(ni,Bn,e,Wn,Er),{codecSet:$i,videoRanges:Yi,minFramerate:kr,minBitrate:Rr,preferHDR:Hi}=Gr;Zt=$i,Bn=Hi?Yi[Yi.length-1]:Yi[0],fn=kr,e=Math.max(e,Rr),b.log(`[abr] picked start tier ${JSON.stringify(Gr)}`)}else Zt=Mt==null?void 0:Mt.codecSet,Bn=Mt==null?void 0:Mt.videoRange;const Yn=Te?Te.duration:he?he.duration:0,di=this.bwEstimator.getEstimateTTFB()/1e3,Ar=[];for(let ni=n;ni>=t;ni--){var si;const Gr=we[ni],$i=ni>F;if(!Gr)continue;if(ot.useMediaCapabilities&&!Gr.supportedResult&&!Gr.supportedPromise){const Da=navigator.mediaCapabilities;typeof(Da==null?void 0:Da.decodingInfo)=="function"&&as(Gr,On,Bn,fn,e,Wn)?(Gr.supportedPromise=ss(Gr,On,Da),Gr.supportedPromise.then(Ba=>{if(!this.hls)return;Gr.supportedResult=Ba;const Ua=this.hls.levels,is=Ua.indexOf(Gr);Ba.error?b.warn(`[abr] MediaCapabilities decodingInfo error: "${Ba.error}" for level ${is} ${JSON.stringify(Ba)}`):Ba.supported||(b.warn(`[abr] Unsupported MediaCapabilities decodingInfo result for level ${is} ${JSON.stringify(Ba)}`),is>-1&&Ua.length>1&&(b.log(`[abr] Removing unsupported level ${is}`),this.hls.removeLevel(is)))})):Gr.supportedResult=Ka}if(Zt&&Gr.codecSet!==Zt||Bn&&Gr.videoRange!==Bn||$i&&fn>Gr.frameRate||!$i&&fn>0&&fn<Gr.frameRate||Gr.supportedResult&&!((si=Gr.supportedResult.decodingInfoResults)!=null&&si[0].smooth)){Ar.push(ni);continue}const Yi=Gr.details,kr=(Te?Yi==null?void 0:Yi.partTarget:Yi==null?void 0:Yi.averagetargetduration)||Yn;let Rr;$i?Rr=c*e:Rr=s*e;const Hi=Yn&&r>=Yn*2&&i===0?we[ni].averageBitrate:we[ni].maxBitrate,xi=this.getTimeToLoadFrag(di,Rr,Hi*kr,Yi===void 0);if(Rr>=Hi&&(ni===D||Gr.loadError===0&&Gr.fragmentError===0)&&(xi<=di||!C(xi)||kt&&!this.bitrateTestDelay||xi<_)){const Da=this.forcedAutoLevel;return ni!==ze&&(Da===-1||Da!==ze)&&(Ar.length&&b.trace(`[abr] Skipped level(s) ${Ar.join(",")} of ${n} max with CODECS and VIDEO-RANGE:"${we[Ar[0]].codecs}" ${we[Ar[0]].videoRange}; not compatible with "${Mt.codecs}" ${Bn}`),b.info(`[abr] switch candidate:${F}->${ni} adjustedbw(${Math.round(Rr)})-bitrate=${Math.round(Rr-Hi)} ttfb:${di.toFixed(1)} avgDuration:${kr.toFixed(1)} maxFetchDuration:${_.toFixed(1)} fetchDuration:${xi.toFixed(1)} firstSelection:${mn} codecSet:${Zt} videoRange:${Bn} hls.loadLevel:${ze}`)),mn&&(this.firstSelection=ni),ni}}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 oa{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 pi={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class Oa{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 p=c.range[e];p&&p.time.some(_=>{const D=!this.isTimeBuffered(_.startPTS,_.endPTS,t);return D&&this.removeFragment(c.body),D})})}detectPartialFragments(e){const t=this.timeRanges,{frag:n,part:r}=e;if(!t||n.sn==="initSegment")return;const i=La(n),s=this.fragments[i];if(!s||s.buffered&&n.gap)return;const c=!n.relurl;Object.keys(t).forEach(p=>{const _=n.elementaryStreams[p];if(!_)return;const D=t[p],F=c||_.partial===!0;s.range[p]=this.getBufferedTimes(n,r,F,D)}),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),la(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=La(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,p=e.minEndPTS||c,_=e.maxStartPTS||s;for(let D=0;D<r.length;D++){const F=r.start(D)-this.bufferPadding,he=r.end(D)+this.bufferPadding;if(_>=F&&p<=he){i.time.push({startPTS:Math.max(s,r.start(D)),endPTS:Math.min(c,r.end(D))});break}else if(s<he&&c>F){const Te=Math.max(s,r.start(D)),we=Math.min(c,r.end(D));we>Te&&(i.partial=!0,i.time.push({startPTS:Te,endPTS:we}))}else if(c<=F)break}return i}getPartialFragment(e){let t=null,n,r,i,s=0;const{bufferPadding:c,fragments:p}=this;return Object.keys(p).forEach(_=>{const D=p[_];D&&la(D)&&(r=D.body.start-c,i=D.body.end+c,e>=r&&e<=i&&(n=Math.min(e-r,i-e),s<=n&&(t=D.body,s=n)))}),t}isEndListAppended(e){const t=this.endListFragments[e];return t!==void 0&&(t.buffered||la(t))}getState(e){const t=La(e),n=this.fragments[t];return n?n.buffered?la(n)?pi.PARTIAL:pi.OK:pi.APPENDING:pi.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=La(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 p=i[c];this.detectEvictedFragments(c,p,s,r)})}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=La(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 p=c.body;p.type!==n||r&&!p.gap||p.start<t&&p.end>e&&(c.buffered||i)&&this.removeFragment(p)})}removeFragment(e){const t=La(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 la(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 La(o){return`${o.type}_${o.level}_${o.sn}`}const Fa={length:0,start:()=>0,end:()=>0};class Si{static isBuffered(e,t){try{if(e){const n=Si.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=Si.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(_,D){const F=_.start-D.start;return F||D.end-_.end});let r=[];if(n)for(let _=0;_<e.length;_++){const D=r.length;if(D){const F=r[D-1].end;e[_].start-F<n?e[_].end>F&&(r[D-1].end=e[_].end):r.push(e[_])}else r.push(e[_])}else r=e;let i=0,s,c=t,p=t;for(let _=0;_<r.length;_++){const D=r[_].start,F=r[_].end;if(t+n>=D&&t<F)c=D,p=F,i=p-t;else if(t+n<D){s=D;break}}return{len:i,start:c||0,end:p||0,nextStart:s}}static getBuffered(e){try{return e.buffered}catch(t){return b.log("failed to get media.buffered",t),Fa}}}class vs{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=Ta(),this.buffering={audio:Ta(),video:Ta(),audiovideo:Ta()},this.level=e,this.sn=t,this.id=n,this.size=r,this.part=i,this.partial=s}}function Ta(){return{start:0,executeStart:0,executeEnd:0,end:0}}function Ga(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 Ts(o,e,t){return!!(e&&(t.endCC>t.startCC||o&&o.cc<t.startCC))}function Xa(o,e){const t=o.fragments,n=e.fragments;if(!n.length||!t.length){b.log("No fragments to align");return}const r=Ga(t,n[0].cc);if(!r||r&&!r.startPTS){b.log("No frag in previous level to align on");return}return r}function cs(o,e){if(o){const t=o.start+e;o.start=o.startPTS=t,o.endPTS=t+o.duration}}function ys(o,e){const t=e.fragments;for(let n=0,r=t.length;n<r;n++)cs(t[n],o);e.fragmentHint&&cs(e.fragmentHint,o),e.alignedSliding=!0}function ds(o,e,t){e&&(Ds(o,t,e),!t.alignedSliding&&e&&Pa(t,e),!t.alignedSliding&&e&&!t.skippedSegments&&wa(e,t))}function Ds(o,e,t){if(Ts(o,t,e)){const n=Xa(t,e);n&&C(n.start)&&(b.log(`Adjusting PTS using last level due to CC increase within current level ${e.url}`),ys(n.start,e))}}function Pa(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=Ga(n,s),i=Ga(t,s)),(!r||!i)&&(r=n[Math.floor(n.length/2)],i=Ga(t,r.cc)||t[Math.floor(t.length/2)]);const c=r.programDateTime,p=i.programDateTime;if(!c||!p)return;const _=(p-c)/1e3-(i.start-r.start);ys(_,o)}const bs=Math.pow(2,17);class wi{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 Qi({type:x.NETWORK_ERROR,details:y.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,p)=>{if(this.loader&&this.loader.destroy(),e.gap)if(e.tagList.some(Te=>Te[0]==="GAP")){p(mi(e));return}else e.gap=!1;const _=this.loader=e.loader=i?new i(r):new s(r),D=_i(e),F=Ni(r.fragLoadPolicy.default),he={loadPolicy:F,timeout:F.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:bs};e.stats=_.stats,_.load(D,he,{onSuccess:(Te,we,Ie,ze)=>{this.resetLoader(e,_);let ot=Te.data;Ie.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(ot.slice(0,16)),ot=ot.slice(16)),c({frag:e,part:null,payload:ot,networkDetails:ze})},onError:(Te,we,Ie,ze)=>{this.resetLoader(e,_),p(new Qi({type:x.NETWORK_ERROR,details:y.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:U({url:n,data:void 0},Te),error:new Error(`HTTP Error ${Te.code} ${Te.text}`),networkDetails:Ie,stats:ze}))},onAbort:(Te,we,Ie)=>{this.resetLoader(e,_),p(new Qi({type:x.NETWORK_ERROR,details:y.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:Ie,stats:Te}))},onTimeout:(Te,we,Ie)=>{this.resetLoader(e,_),p(new Qi({type:x.NETWORK_ERROR,details:y.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${he.timeout}ms`),networkDetails:Ie,stats:Te}))},onProgress:(Te,we,Ie,ze)=>{t&&t({frag:e,part:null,payload:Ie,networkDetails:ze})}})})}loadPart(e,t,n){this.abort();const r=this.config,i=r.fLoader,s=r.loader;return new Promise((c,p)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap){p(mi(e,t));return}const _=this.loader=e.loader=i?new i(r):new s(r),D=_i(e,t),F=Ni(r.fragLoadPolicy.default),he={loadPolicy:F,timeout:F.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:bs};t.stats=_.stats,_.load(D,he,{onSuccess:(Te,we,Ie,ze)=>{this.resetLoader(e,_),this.updateStatsFromPart(e,t);const ot={frag:e,part:t,payload:Te.data,networkDetails:ze};n(ot),c(ot)},onError:(Te,we,Ie,ze)=>{this.resetLoader(e,_),p(new Qi({type:x.NETWORK_ERROR,details:y.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:U({url:D.url,data:void 0},Te),error:new Error(`HTTP Error ${Te.code} ${Te.text}`),networkDetails:Ie,stats:ze}))},onAbort:(Te,we,Ie)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,_),p(new Qi({type:x.NETWORK_ERROR,details:y.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:Ie,stats:Te}))},onTimeout:(Te,we,Ie)=>{this.resetLoader(e,_),p(new Qi({type:x.NETWORK_ERROR,details:y.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${he.timeout}ms`),networkDetails:Ie,stats:Te}))}})})}updateStatsFromPart(e,t){const n=e.stats,r=t.stats,i=r.total;if(n.loaded+=r.loaded,i){const p=Math.round(e.duration/t.duration),_=Math.min(Math.round(n.loaded/i),p),F=(p-_)*Math.round(n.loaded/_);n.total=n.loaded+F}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 _i(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(C(r)&&C(i)){var s;let c=r,p=i;if(o.sn==="initSegment"&&((s=o.decryptdata)==null?void 0:s.method)==="AES-128"){const _=i-r;_%16&&(p=i+(16-_%16)),r!==0&&(n.resetIV=!0,c=r-16)}n.rangeStart=c,n.rangeEnd=p}return n}function mi(o,e){const t=new Error(`GAP ${o.gap?"tag":"attribute"} found`),n={type:x.MEDIA_ERROR,details:y.FRAG_GAP,fatal:!1,frag:o,error:t,networkDetails:null};return e&&(n.part=e),(e||o).stats.aborted=!0,new Qi(n)}class Qi extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class qi{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 fs{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 Qa(o){const e=o.byteLength,t=e&&new DataView(o.buffer).getUint8(e-1);return t?oe(o,0,e-t):o}class hs{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],p=this.invSubMix,_=p[0],D=p[1],F=p[2],he=p[3],Te=new Uint32Array(256);let we=0,Ie=0,ze=0;for(ze=0;ze<256;ze++)ze<128?Te[ze]=ze<<1:Te[ze]=ze<<1^283;for(ze=0;ze<256;ze++){let ot=Ie^Ie<<1^Ie<<2^Ie<<3^Ie<<4;ot=ot>>>8^ot&255^99,e[we]=ot,t[ot]=we;const Mt=Te[we],kt=Te[Mt],mn=Te[kt];let Zt=Te[ot]*257^ot*16843008;r[we]=Zt<<24|Zt>>>8,i[we]=Zt<<16|Zt>>>16,s[we]=Zt<<8|Zt>>>24,c[we]=Zt,Zt=mn*16843009^kt*65537^Mt*257^we*16843008,_[ot]=Zt<<24|Zt>>>8,D[ot]=Zt<<16|Zt>>>16,F[ot]=Zt<<8|Zt>>>24,he[ot]=Zt,we?(we=Mt^Te[Te[Te[mn^Mt]]],Ie^=Te[Te[Ie]]):we=Ie=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,p;const _=this.keySchedule=new Uint32Array(s),D=this.invKeySchedule=new Uint32Array(s),F=this.sBox,he=this.rcon,Te=this.invSubMix,we=Te[0],Ie=Te[1],ze=Te[2],ot=Te[3];let Mt,kt;for(c=0;c<s;c++){if(c<i){Mt=_[c]=t[c];continue}kt=Mt,c%i===0?(kt=kt<<8|kt>>>24,kt=F[kt>>>24]<<24|F[kt>>>16&255]<<16|F[kt>>>8&255]<<8|F[kt&255],kt^=he[c/i|0]<<24):i>6&&c%i===4&&(kt=F[kt>>>24]<<24|F[kt>>>16&255]<<16|F[kt>>>8&255]<<8|F[kt&255]),_[c]=Mt=(_[c-i]^kt)>>>0}for(p=0;p<s;p++)c=s-p,p&3?kt=_[c]:kt=_[c-4],p<4||c<=4?D[p]=kt:D[p]=we[F[kt>>>24]]^Ie[F[kt>>>16&255]]^ze[F[kt>>>8&255]]^ot[F[kt&255]],D[p]=D[p]>>>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,p=c[0],_=c[1],D=c[2],F=c[3],he=this.uint8ArrayToUint32Array_(n);let Te=he[0],we=he[1],Ie=he[2],ze=he[3];const ot=new Int32Array(e),Mt=new Int32Array(ot.length);let kt,mn,Zt,Bn,fn,Wn,Er,On,Yn,di,Ar,si,ni,Gr;const $i=this.networkToHostOrderSwap;for(;t<ot.length;){for(Yn=$i(ot[t]),di=$i(ot[t+1]),Ar=$i(ot[t+2]),si=$i(ot[t+3]),fn=Yn^i[0],Wn=si^i[1],Er=Ar^i[2],On=di^i[3],ni=4,Gr=1;Gr<r;Gr++)kt=p[fn>>>24]^_[Wn>>16&255]^D[Er>>8&255]^F[On&255]^i[ni],mn=p[Wn>>>24]^_[Er>>16&255]^D[On>>8&255]^F[fn&255]^i[ni+1],Zt=p[Er>>>24]^_[On>>16&255]^D[fn>>8&255]^F[Wn&255]^i[ni+2],Bn=p[On>>>24]^_[fn>>16&255]^D[Wn>>8&255]^F[Er&255]^i[ni+3],fn=kt,Wn=mn,Er=Zt,On=Bn,ni=ni+4;kt=s[fn>>>24]<<24^s[Wn>>16&255]<<16^s[Er>>8&255]<<8^s[On&255]^i[ni],mn=s[Wn>>>24]<<24^s[Er>>16&255]<<16^s[On>>8&255]<<8^s[fn&255]^i[ni+1],Zt=s[Er>>>24]<<24^s[On>>16&255]<<16^s[fn>>8&255]<<8^s[Wn&255]^i[ni+2],Bn=s[On>>>24]<<24^s[fn>>16&255]<<16^s[Wn>>8&255]<<8^s[Er&255]^i[ni+3],Mt[t]=$i(kt^Te),Mt[t+1]=$i(Bn^we),Mt[t+2]=$i(Zt^Ie),Mt[t+3]=$i(mn^ze),Te=Yn,we=di,Ie=Ar,ze=si,t=t+4}return Mt.buffer}}const Ls=16;class ps{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?Qa(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=rn(s,e),this.remainderData=null);const c=this.getValidChunk(e);if(!c.length)return null;r&&(n=r);let p=this.softwareDecrypter;p||(p=this.softwareDecrypter=new hs),p.expandKey(t);const _=i;return this.currentResult=p.decrypt(c.buffer,0,n),this.currentIV=oe(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 fs(this.subtle,t)}return this.fastAesKey.expandKey().then(r=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new qi(this.subtle,new Uint8Array(n)).decrypt(e.buffer,r)):Promise.reject(new Error("web crypto not initialized"))).catch(r=>(b.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%Ls;return n!==e.length&&(t=oe(e,0,n),this.remainderData=oe(e,n)),t}logOnce(e){this.logEnabled&&(b.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const ms={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}},wn={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 As extends oa{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=wn.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=b.log.bind(b,`${r}:`),this.warn=b.warn.bind(b,`${r}:`),this.hls=e,this.fragmentLoader=new wi(e.config),this.keyLoader=n,this.fragmentTracker=t,this.config=e.config,this.decrypter=new ps(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=wn.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 Si.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===wn.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=Si.bufferInfo(r||n,s,e.maxBufferHole);if(this.log(`media seeking to ${C(s)?s.toFixed(3):s}, state: ${i}`),this.state===wn.ENDED)this.resetLoadingState();else if(t){const p=e.maxFragLookUpTolerance,_=t.start-p,D=t.start+t.duration+p;if(!c.len||D<c.start||_>c.end){const F=s>D;(s<_||F)&&(F&&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=wn.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===wn.FRAG_LOADING||!this.fragCurrent&&s===wn.PARSING)&&(this.fragmentTracker.removeFragment(e),this.state=wn.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===wn.STOPPED||this.state===wn.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)===pi.APPENDING){const i=e.type,s=this.getFwdBufferInfo(this.mediaBuffer,i),c=Math.max(e.duration,s?s.len:this.config.maxBufferLength),p=this.backtrackFragment;((p?e.sn-p.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)===pi.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(p=>{throw r.trigger(u.ERROR,{type:x.MEDIA_ERROR,details:y.FRAG_DECRYPT_ERROR,fatal:!1,error:p,reason:p.message,frag:e}),p}).then(p=>{const _=self.performance.now();return r.trigger(u.FRAG_DECRYPTED,{frag:e,payload:p,stats:{tstart:c,tdecrypt:_}}),n.payload=p,this.completeInitSegmentLoad(n)})}return this.completeInitSegmentLoad(n)}).catch(n=>{this.state===wn.STOPPED||this.state===wn.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=wn.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===it.MAIN?"level":"track"} ${e.level} (frag:[${((n=e.startPTS)!=null?n:NaN).toFixed(3)}-${((r=e.endPTS)!=null?r:NaN).toFixed(3)}] > buffer:${c?ms.toString(Si.getBuffered(c)):"(detached)"})`),e.sn!=="initSegment"){var p;if(e.type!==it.SUBTITLE){const D=e.elementaryStreams;if(!Object.keys(D).some(F=>!!D[F])){this.state=wn.IDLE;return}}const _=(p=this.levels)==null?void 0:p[e.level];_!=null&&_.fragmentError&&(this.log(`Resetting level fragment error count of ${_.fragmentError} on frag buffered`),_.fragmentError=0)}this.state=wn.IDLE,c&&(!this.loadedmetadata&&e.type==it.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(p=>!p),c=new vs(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=wn.KEY_LOADING,this.fragCurrent=e,c=this.keyLoader.load(e).then(D=>{if(!this.fragContextChanged(D.frag))return this.hls.trigger(u.KEY_LOADED,D),this.state===wn.KEY_LOADING&&(this.state=wn.IDLE),D}),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 D=s.partList;if(D&&r){n>e.end&&s.fragmentHint&&(e=s.fragmentHint);const F=this.getNextPart(D,e,n);if(F>-1){const he=D[F];this.log(`Loading part sn: ${e.sn} p: ${he.index} cc: ${e.cc} of playlist [${s.startSN}-${s.endSN}] parts [0-${F}-${D.length-1}] ${this.logPrefix==="[stream-controller]"?"level":"track"}: ${e.level}, target: ${parseFloat(n.toFixed(3))}`),this.nextLoadPosition=he.start+he.duration,this.state=wn.FRAG_LOADING;let Te;return c?Te=c.then(we=>!we||this.fragContextChanged(we.frag)?null:this.doFragPartsLoad(e,he,t,r)).catch(we=>this.handleFragLoadError(we)):Te=this.doFragPartsLoad(e,he,t,r).catch(we=>this.handleFragLoadError(we)),this.hls.trigger(u.FRAG_LOADING,{frag:e,part:he,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):Te}else if(!e.url||this.loadedEndOfParts(D,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))}`),C(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=wn.FRAG_LOADING;const p=this.config.progressive;let _;return p&&c?_=c.then(D=>!D||this.fragContextChanged(D==null?void 0:D.frag)?null:this.fragmentLoader.load(e,r)).catch(D=>this.handleFragLoadError(D)):_=Promise.all([this.fragmentLoader.load(e,p?r:void 0),c]).then(([D])=>(!p&&D&&r&&r(D),D)).catch(D=>this.handleFragLoadError(D)),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 p=[],_=(c=n.details)==null?void 0:c.partList,D=F=>{this.fragmentLoader.loadPart(e,F,r).then(he=>{p[F.index]=he;const Te=he.part;this.hls.trigger(u.FRAG_LOADED,he);const we=ur(n,e.sn,F.index+1)||_r(_,e.sn,F.index+1);if(we)D(we);else return i({frag:e,part:Te,partsLoaded:p})}).catch(s)};D(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;e.data&&t.details===y.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(u.ERROR,t)}else this.hls.trigger(u.ERROR,{type:x.OTHER_ERROR,details:y.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==wn.PARSING){!this.fragCurrent&&this.state!==wn.STOPPED&&this.state!==wn.ERROR&&(this.state=wn.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],p=s>-1?ur(c,i,s):null,_=p?p.fragment:na(c,i,n);return _?(n&&n!==_&&(_.stats=n.stats),{frag:_,part:p,level:c}):null}bufferFragmentData(e,t,n,r,i){var s;if(!e||this.state!==wn.PARSING)return;const{data1:c,data2:p}=e;let _=c;if(c&&p&&(_=rn(c,p)),!((s=_)!=null&&s.length))return;const D={type:e.type,frag:t,part:n,chunkMeta:r,parent:t.type,data:_};if(this.hls.trigger(u.BUFFER_APPENDING,D),e.dropped&&e.independent&&!n){if(i)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!Si.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const n=t.currentTime,r=Si.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 C(n)?this.getFwdBufferInfoAtPos(e,n,t):null}getFwdBufferInfoAtPos(e,t,n){const{config:{maxBufferHole:r}}=this,i=Si.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 Si.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=it.MAIN){const n=this.fragmentTracker.getAppendedFrag(e,it.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 p=i.initialLiveManifestSize;if(r<p)return this.warn(`Not enough fragments to start playback (have: ${r}, need: ${p})`),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 p=i.lowLatencyMode?t.partEnd:t.fragmentEnd;c=this.getFragmentAtPosition(e,p,t)}return this.mapToInitFragWhenRequired(c)}isLoopLoading(e,t){const n=this.fragmentTracker.getState(e);return(n===pi.OK||n===pi.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 p=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,n.nextStart,r);if(p!==null&&n.len+p.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,p=e.length;c<p;c++){const _=e[c];if(s=s&&!_.independent,r>-1&&n<_.start)break;const D=_.loaded;D?r=-1:(i||_.independent||s)&&_.fragment===t&&(r=c),i=D}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=va(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=dr(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:p}=n,{maxFragLookUpTolerance:_}=r,D=n.partList,F=!!(r.lowLatencyMode&&D!=null&&D.length&&p);F&&p&&!this.bitrateTest&&(s=s.concat(p),c=p.sn);let he;if(e<t){const Te=e>t-_?0:_;he=Ca(i,s,e,Te)}else he=s[s.length-1];if(he){const Te=he.sn-n.startSN,we=this.fragmentTracker.getState(he);if((we===pi.OK||we===pi.PARTIAL&&he.gap)&&(i=he),i&&he.sn===i.sn&&(!F||D[0].fragment.sn>he.sn)&&i&&he.level===i.level){const ze=s[Te+1];he.sn<c&&this.fragmentTracker.getState(ze)!==pi.OK?he=ze:he=null}}return he}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,p=i>=s-t.maxFragLookUpTolerance&&i<=c;if(r!==null&&n.duration>r&&(i<r||!p)){const _=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;(!p&&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&&C(i);if(s||!c&&!i){const{fragPrevious:p}=this;ds(p,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: ${p?p.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&&C(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!==wn.FRAG_LOADING_WAITING_RETRY)&&(this.state=wn.IDLE)}onFragmentOrKeyLoadError(e,t){if(t.chunkMeta&&!t.frag){const D=this.getCurrentContext(t.chunkMeta);D&&(t.frag=D.frag)}const n=t.frag;if(!n||n.type!==e||!this.levels)return;if(this.fragContextChanged(n)){var r;this.warn(`Frag load error must match current frag to retry ${n.url} > ${(r=this.fragCurrent)==null?void 0:r.url}`);return}const i=t.details===y.FRAG_GAP;i&&this.fragmentTracker.fragBuffered(n,!0);const s=t.errorAction,{action:c,retryCount:p=0,retryConfig:_}=s||{};if(s&&c===sr.RetryRequest&&_){this.resetStartWhenNotLoaded(this.levelLastLoaded);const D=Yr(_,p);this.warn(`Fragment ${n.sn} of ${e} ${n.level} errored with ${t.details}, retrying loading ${p+1}/${_.maxNumRetry} in ${D}ms`),s.resolved=!0,this.retryDate=self.performance.now()+D,this.state=wn.FRAG_LOADING_WAITING_RETRY}else if(_&&s)if(this.resetFragmentErrors(e),p<_.maxNumRetry)!i&&c!==sr.RemoveAlternatePermanently&&(s.resolved=!0);else{b.warn(`${t.details} reached or exceeded max retry (${p})`);return}else(s==null?void 0:s.action)===sr.SendAlternateToPenaltyBox?this.state=wn.WAITING_LEVEL:this.state=wn.ERROR;this.tickImmediate()}reduceLengthAndFlushBuffer(e){if(this.state===wn.PARSING||this.state===wn.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===it.AUDIO&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==wn.STOPPED&&(this.state=wn.IDLE)}afterBufferFlushed(e,t,n){if(!e)return;const r=Si.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,r,n),this.state===wn.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=wn.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((p,_)=>{const D=e.elementaryStreams[_];if(D){const F=D.endPTS-D.startPTS;if(F<=0)return this.warn(`Could not parse fragment ${e.sn} ${_} duration reliably (${F})`),p||!1;const he=r?0:aa(s,e,D.startPTS,D.endPTS,D.startDTS,D.endDTS);return this.hls.trigger(u.LEVEL_PTS_UPDATED,{details:s,level:n,drift:he,type:_,frag:e,start:D.startPTS,end:D.endPTS}),!0}return p},!1)&&((i=this.transmuxer)==null?void 0:i.error)===null){const p=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(p.message),this.hls.trigger(u.ERROR,{type:x.MEDIA_ERROR,details:y.FRAG_PARSING_ERROR,fatal:!1,error:p,frag:e,reason:`Found no media in msn ${e.sn} of level "${n.url}"`}),!this.hls)return;this.resetTransmuxer()}this.state=wn.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 $s{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=go(e,t);else return new Uint8Array(0);return this.reset(),n}reset(){this.chunks.length=0,this.dataLength=0}}function go(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 Xs(){return typeof __HLS_WORKER_BUNDLE__=="function"}function zs(){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 Qs(o){const e=new self.URL(o,self.location.href).href;return{worker:new self.Worker(e),scriptURL:e}}function Wa(o="",e=9e4){return{type:o,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class Us{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=rn(this.cachedData,e),this.cachedData=null);let n=Y(e,0),r=n?n.length:0,i;const s=this._audioTrack,c=this._id3Track,p=n?R(n):void 0,_=e.length;for((this.basePTS===null||this.frameIndex===0&&C(p))&&(this.basePTS=Js(p,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:qn.audioId3,duration:Number.POSITIVE_INFINITY});r<_;){if(this.canParse(e,r)){const D=this.appendFrame(s,e,r);D?(this.frameIndex++,this.lastPTS=D.sample.pts,r+=D.length,i=r):r=_}else $(e,r)?(n=Y(e,r),c.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:qn.audioId3,duration:Number.POSITIVE_INFINITY}),r+=n.length,i=r):r++;if(r===_&&i!==_){const D=oe(e,i);this.cachedData?this.cachedData=rn(this.cachedData,D):this.cachedData=D}}return{audioTrack:s,videoTrack:Wa(),id3Track:c,textTrack:Wa()}}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:Wa(),id3Track:this._id3Track,textTrack:Wa()}}destroy(){}}const Js=(o,e,t)=>{if(C(o))return o*90;const n=t?t.baseTime*9e4/t.timescale:0;return e*9e4+n};function No(o,e,t,n){let r,i,s,c;const p=navigator.userAgent.toLowerCase(),_=n,D=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];r=((e[t+2]&192)>>>6)+1;const F=(e[t+2]&60)>>>2;if(F>D.length-1){const he=new Error(`invalid ADTS sampling index:${F}`);o.emit(u.ERROR,u.ERROR,{type:x.MEDIA_ERROR,details:y.FRAG_PARSING_ERROR,fatal:!0,error:he,reason:he.message});return}return s=(e[t+2]&1)<<2,s|=(e[t+3]&192)>>>6,b.log(`manifest codec:${n}, ADTS type:${r}, samplingIndex:${F}`),/firefox/i.test(p)?F>=6?(r=5,c=new Array(4),i=F-3):(r=2,c=new Array(2),i=F):p.indexOf("android")!==-1?(r=2,c=new Array(2),i=F):(r=5,c=new Array(4),n&&(n.indexOf("mp4a.40.29")!==-1||n.indexOf("mp4a.40.5")!==-1)||!n&&F>=6?i=F-3:((n&&n.indexOf("mp4a.40.2")!==-1&&(F>=6&&s===1||/vivaldi/i.test(p))||!n&&s===1)&&(r=2,c=new Array(2)),i=F)),c[0]=r<<3,c[0]|=(F&14)>>1,c[1]|=(F&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:D[F],channelCount:s,codec:"mp4a.40."+r,manifestCodec:_}}function Ps(o,e){return o[e]===255&&(o[e+1]&246)===240}function qs(o,e){return o[e+1]&1?7:9}function ks(o,e){return(o[e+3]&3)<<11|o[e+4]<<3|(o[e+5]&224)>>>5}function vo(o,e){return e+5<o.length}function Ja(o,e){return e+1<o.length&&Ps(o,e)}function Ms(o,e){return vo(o,e)&&Ps(o,e)&&ks(o,e)<=o.length-e}function yo(o,e){if(Ja(o,e)){const t=qs(o,e);if(e+t>=o.length)return!1;const n=ks(o,e);if(n<=t)return!1;const r=e+n;return r===o.length||Ja(o,r)}return!1}function bo(o,e,t,n,r){if(!o.samplerate){const i=No(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,b.log(`parsed codec:${o.codec}, rate:${i.samplerate}, channels:${i.channelCount}`)}}function Ks(o){return 1024*9e4/o}function Bo(o,e){const t=qs(o,e);if(e+t<=o.length){const n=ks(o,e)-t;if(n>0)return{headerLength:t,frameLength:n}}}function Hs(o,e,t,n,r){const i=Ks(o.samplerate),s=n+r*i,c=Bo(e,t);let p;if(c){const{frameLength:F,headerLength:he}=c,Te=he+F,we=Math.max(0,t+Te-e.length);we?(p=new Uint8Array(Te-he),p.set(e.subarray(t+he,e.length),0)):p=e.subarray(t+he,t+Te);const Ie={unit:p,pts:s};return we||o.samples.push(Ie),{sample:Ie,length:Te,missing:we}}const _=e.length-t;return p=new Uint8Array(_),p.set(e.subarray(t,e.length),0),{sample:{unit:p,pts:s},length:_,missing:-1}}let Ns=null;const xo=[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],_o=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Eo=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],So=[0,1,1,4];function Rs(o,e,t,n,r){if(t+24>e.length)return;const i=Zs(e,t);if(i&&t+i.frameLength<=e.length){const s=i.samplesPerFrame*9e4/i.sampleRate,c=n+r*s,p={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(p),{sample:p,length:i.frameLength,missing:0}}}function Zs(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,p=t===3?3-n:n===3?3:4,_=xo[p*14+r-1]*1e3,F=_o[(t===3?0:t===2?1:2)*3+i],he=c===3?1:2,Te=Eo[t][n],we=So[n],Ie=Te*8*we,ze=Math.floor(Te*_/F+s)*we;if(Ns===null){const kt=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Ns=kt?parseInt(kt[1]):0}return!!Ns&&Ns<=87&&n===2&&_>=224e3&&c===0&&(o[e+3]=o[e+3]|128),{sampleRate:F,channelCount:he,frameLength:ze,samplesPerFrame:Ie}}}function Bs(o,e){return o[e]===255&&(o[e+1]&224)===224&&(o[e+1]&6)!==0}function js(o,e){return e+1<o.length&&Bs(o,e)}function eo(o,e){return Bs(o,e)&&4<=o.length-e}function to(o,e){if(e+1<o.length&&Bs(o,e)){const n=Zs(o,e);let r=4;n!=null&&n.frameLength&&(r=n.frameLength);const i=e+r;return i===o.length||js(o,i)}return!1}class no extends Us{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=Y(e,0);let n=(t==null?void 0:t.length)||0;if(to(e,n))return!1;for(let r=e.length;n<r;n++)if(yo(e,n))return b.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return Ms(e,t)}appendFrame(e,t,n){bo(e,this.observer,t,n,e.manifestCodec);const r=Hs(e,t,n,this.basePTS,this.frameIndex);if(r&&r.missing===0)return r}}const ro=/\/emsg[-/]ID3/i;class wo{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=Wa("video",1),s=this.audioTrack=Wa("audio",1),c=this.txtTrack=Wa("text",1);if(this.id3Track=Wa("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const p=tt(e);if(p.video){const{id:_,timescale:D,codec:F}=p.video;i.id=_,i.timescale=c.timescale=D,i.codec=F}if(p.audio){const{id:_,timescale:D,codec:F}=p.audio;s.id=_,s.timescale=D,s.codec=F}c.id=Pt.text,i.sampleDuration=0,i.duration=s.duration=r}resetContiguity(){this.remainderData=null}static probe(e){return Dn(e)}demux(e,t){this.timeOffset=t;let n=e;const r=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=rn(this.remainderData,e));const c=mr(n);this.remainderData=c.remainder,r.samples=c.valid||new Uint8Array}else r.samples=n;const s=this.extractID3Track(r,t);return i.samples=vn(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=vn(e,t),{videoTrack:t,audioTrack:Wa(),id3Track:r,textTrack:Wa()}}extractID3Track(e,t){const n=this.id3Track;if(e.samples.length){const r=je(e.samples,["emsg"]);r&&r.forEach(i=>{const s=Oe(i);if(ro.test(s.schemeIdUri)){const c=C(s.presentationTime)?s.presentationTime/s.timeScale:t+s.presentationTimeDelta/s.timeScale;let p=s.eventDuration===4294967295?Number.POSITIVE_INFINITY:s.eventDuration/s.timeScale;p<=.001&&(p=Number.POSITIVE_INFINITY);const _=s.payload;n.samples.push({data:_,len:_.byteLength,dts:c,pts:c,type:qn.emsg,duration:p})}})}return n}demuxSampleAes(e,t,n){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){}}const ka=(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),p=8-c;i[0]=4278190080>>>24+p<<p,r[0]=(s[0]&i[0])>>p,t=t?t<<c|r[0]:r[0],e+=1,n-=c}return t};class Ws extends Us{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=Gs(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=Y(e,0);if(!t)return!1;const n=t.length;return e[n]===11&&e[n+1]===119&&R(t)!==void 0&&ka(e,n)<16}}function Gs(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],p=e[t+4]&63,D=[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][p*3+i]*2;if(t+D>e.length)return-1;const F=e[t+6]>>5;let he=0;F===2?he+=2:(F&1&&F!==1&&(he+=2),F&4&&(he+=2));const Te=(e[t+6]<<8|e[t+7])>>12-he&1,Ie=[2,1,2,3,3,4,4,5][F]+Te,ze=e[t+5]>>3,ot=e[t+5]&7,Mt=new Uint8Array([i<<6|ze<<1|ot>>2,(ot&3)<<6|F<<3|Te<<2|p>>4,p<<4&224]),kt=1536/c*9e4,mn=n+r*kt,Zt=e.subarray(t,t+D);return o.config=Mt,o.channelCount=Ie,o.samplerate=c,o.samples.push({unit:Zt,pts:mn}),D}class ne{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&&b.log(e.pts+"/"+e.dts+":"+e.debug)}}class ue{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&&b.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 p=this.readUByte.bind(this),_=this.readBits.bind(this),D=this.readUEG.bind(this),F=this.readBoolean.bind(this),he=this.skipBits.bind(this),Te=this.skipEG.bind(this),we=this.skipUEG.bind(this),Ie=this.skipScalingList.bind(this);p();const ze=p();if(_(5),he(3),p(),we(),ze===100||ze===110||ze===122||ze===244||ze===44||ze===83||ze===86||ze===118||ze===128){const Bn=D();if(Bn===3&&he(1),we(),we(),he(1),F())for(s=Bn!==3?8:12,c=0;c<s;c++)F()&&(c<6?Ie(16):Ie(64))}we();const ot=D();if(ot===0)D();else if(ot===1)for(he(1),Te(),Te(),i=D(),c=0;c<i;c++)Te();we(),he(1);const Mt=D(),kt=D(),mn=_(1);mn===0&&he(1),he(1),F()&&(e=D(),t=D(),n=D(),r=D());let Zt=[1,1];if(F()&&F())switch(p()){case 1:Zt=[1,1];break;case 2:Zt=[12,11];break;case 3:Zt=[10,11];break;case 4:Zt=[16,11];break;case 5:Zt=[40,33];break;case 6:Zt=[24,11];break;case 7:Zt=[20,11];break;case 8:Zt=[32,11];break;case 9:Zt=[80,33];break;case 10:Zt=[18,11];break;case 11:Zt=[15,11];break;case 12:Zt=[64,33];break;case 13:Zt=[160,99];break;case 14:Zt=[4,3];break;case 15:Zt=[3,2];break;case 16:Zt=[2,1];break;case 255:{Zt=[p()<<8|p(),p()<<8|p()];break}}return{width:Math.ceil((Mt+1)*16-e*2-t*2),height:(2-mn)*(kt+1)*16-(mn?2:4)*(n+r),pixelRatio:Zt}}readSliceType(){return this.readUByte(),this.readUEG(),this.readUEG()}}class $e extends ne{parseAVCPES(e,t,n,r,i){const s=this.parseAVCNALu(e,n.data);let c=this.VideoSample,p,_=!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(D=>{var F;switch(D.type){case 1:{let Ie=!1;p=!0;const ze=D.data;if(_&&ze.length>4){const ot=new ue(ze).readSliceType();(ot===2||ot===4||ot===7||ot===9)&&(Ie=!0)}if(Ie){var he;(he=c)!=null&&he.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=Ie;break}case 5:p=!0,(F=c)!=null&&F.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:{p=!0,zt(D.data,1,n.pts,t.samples);break}case 7:{var Te,we;p=!0,_=!0;const Ie=D.data,ot=new ue(Ie).readSPS();if(!e.sps||e.width!==ot.width||e.height!==ot.height||((Te=e.pixelRatio)==null?void 0:Te[0])!==ot.pixelRatio[0]||((we=e.pixelRatio)==null?void 0:we[1])!==ot.pixelRatio[1]){e.width=ot.width,e.height=ot.height,e.pixelRatio=ot.pixelRatio,e.sps=[Ie],e.duration=i;const Mt=Ie.subarray(1,4);let kt="avc1.";for(let mn=0;mn<3;mn++){let Zt=Mt[mn].toString(16);Zt.length<2&&(Zt="0"+Zt),kt+=Zt}e.codec=kt}break}case 8:p=!0,e.pps=[D.data];break;case 9:p=!0,e.audFound=!0,c&&this.pushAccessUnit(c,e),c=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts,"");break;case 12:p=!0;break;default:p=!1,c&&(c.debug+="unknown NAL "+D.type+" ");break}c&&p&&c.units.push(D)}),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,p,_,D,F=-1,he=0;for(r===-1&&(F=0,he=t[0]&31,r=0,c=1);c<n;){if(p=t[c++],!r){r=p?0:1;continue}if(r===1){r=p?0:2;continue}if(!p)r=3;else if(p===1){if(_=c-r-1,F>=0){const Te={data:t.subarray(F,_),type:he};s.push(Te)}else{const Te=this.getLastNalUnit(e.samples);Te&&(i&&c<=4-i&&Te.state&&(Te.data=Te.data.subarray(0,Te.data.byteLength-i)),_>0&&(Te.data=rn(Te.data,t.subarray(0,_)),Te.state=0))}c<n?(D=t[c]&31,F=c,he=D,r=0):r=-1}else r=0}if(F>=0&&r>=0){const Te={data:t.subarray(F,n),type:he,state:r};s.push(Te)}if(s.length===0){const Te=this.getLastNalUnit(e.samples);Te&&(Te.data=rn(Te.data,t))}return e.naluState=r,s}}class Ge{constructor(e,t,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new ps(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 p=new Uint8Array(c);r.set(p,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=Ke(i.data),c=this.getAvcEncryptedData(s);this.decryptBuffer(c.buffer).then(p=>{i.data=this.getAvcDecryptedUnit(s,p),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 et=188;class at{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 $e}static probe(e){const t=at.syncOffset(e);return t>0&&b.warn(`MPEG2-TS detected but first sync word found @ offset ${t}`),t!==-1}static syncOffset(e){const t=e.length;let n=Math.min(et*5,t-et)+1,r=0;for(;r<n;){let i=!1,s=-1,c=0;for(let p=r;p<t;p+=et)if(e[p]===71&&(t-p===et||e[p+et]===71)){if(c++,s===-1&&(s=p,s!==0&&(n=Math.min(s+et*99,e.length-et)+1)),i||(i=xt(e,p)===0),i&&c>1&&(s===0&&c>2||p+et>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:Pt[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=at.createTrack("video"),this._audioTrack=at.createTrack("audio",r),this._id3Track=at.createTrack("id3"),this._txtTrack=at.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,p=this._id3Track,_=this._txtTrack;let D=s.pid,F=s.pesData,he=c.pid,Te=p.pid,we=c.pesData,Ie=p.pesData,ze=null,ot=this.pmtParsed,Mt=this._pmtId,kt=e.length;if(this.remainderData&&(e=rn(this.remainderData,e),kt=e.length,this.remainderData=null),kt<et&&!r)return this.remainderData=e,{audioTrack:c,videoTrack:s,id3Track:p,textTrack:_};const mn=Math.max(0,at.syncOffset(e));kt-=(kt-mn)%et,kt<e.byteLength&&!r&&(this.remainderData=new Uint8Array(e.buffer,kt,e.buffer.byteLength-kt));let Zt=0;for(let fn=mn;fn<kt;fn+=et)if(e[fn]===71){const Wn=!!(e[fn+1]&64),Er=xt(e,fn),On=(e[fn+3]&48)>>4;let Yn;if(On>1){if(Yn=fn+5+e[fn+4],Yn===fn+et)continue}else Yn=fn+4;switch(Er){case D:Wn&&(F&&(i=Lt(F))&&this.videoParser.parseAVCPES(s,_,i,!1,this._duration),F={data:[],size:0}),F&&(F.data.push(e.subarray(Yn,fn+et)),F.size+=fn+et-Yn);break;case he:if(Wn){if(we&&(i=Lt(we)))switch(c.segmentCodec){case"aac":this.parseAACPES(c,i);break;case"mp3":this.parseMPEGPES(c,i);break;case"ac3":this.parseAC3PES(c,i);break}we={data:[],size:0}}we&&(we.data.push(e.subarray(Yn,fn+et)),we.size+=fn+et-Yn);break;case Te:Wn&&(Ie&&(i=Lt(Ie))&&this.parseID3PES(p,i),Ie={data:[],size:0}),Ie&&(Ie.data.push(e.subarray(Yn,fn+et)),Ie.size+=fn+et-Yn);break;case 0:Wn&&(Yn+=e[Yn]+1),Mt=this._pmtId=_t(e,Yn);break;case Mt:{Wn&&(Yn+=e[Yn]+1);const di=yt(e,Yn,this.typeSupported,n,this.observer);D=di.videoPid,D>0&&(s.pid=D,s.segmentCodec=di.segmentVideoCodec),he=di.audioPid,he>0&&(c.pid=he,c.segmentCodec=di.segmentAudioCodec),Te=di.id3Pid,Te>0&&(p.pid=Te),ze!==null&&!ot&&(b.warn(`MPEG-TS PMT found at ${fn} after unknown PID '${ze}'. Backtracking to sync byte @${mn} to parse all TS packets.`),ze=null,fn=mn-188),ot=this.pmtParsed=!0;break}case 17:case 8191:break;default:ze=Er;break}}else Zt++;Zt>0&&Ot(this.observer,new Error(`Found ${Zt} TS packet/s that do not start with 0x47`)),s.pesData=F,c.pesData=we,p.pesData=Ie;const Bn={audioTrack:c,videoTrack:s,id3Track:p,textTrack:_};return r&&this.extractRemainingSamples(Bn),Bn}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,p=r.pesData;let _;if(s&&(_=Lt(s))?(this.videoParser.parseAVCPES(n,i,_,!0,this._duration),n.pesData=null):n.pesData=s,c&&(_=Lt(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&&b.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=c;p&&(_=Lt(p))?(this.parseID3PES(r,_),r.pesData=null):r.pesData=p}demuxSampleAes(e,t,n){const r=this.demux(e,n,!0,!this.config.progressive),i=this.sampleAes=new Ge(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 F=r.missing,he=r.sample.unit.byteLength;if(F===-1)i=rn(r.sample.unit,i);else{const Te=he-F;r.sample.unit.set(i.subarray(0,F),Te),e.samples.push(r.sample),n=r.missing}}let s,c;for(s=n,c=i.length;s<c-1&&!Ja(i,s);s++);if(s!==n){let F;const he=s<c-1;if(he?F=`AAC PES did not start with ADTS header,offset:${s}`:F="No ADTS header found in AAC PES",Ot(this.observer,new Error(F),he),!he)return}bo(e,this.observer,i,s,this.audioCodec);let p;if(t.pts!==void 0)p=t.pts;else if(r){const F=Ks(e.samplerate);p=r.sample.pts+F}else{b.warn("[tsdemuxer]: AAC PES unknown PTS");return}let _=0,D;for(;s<c;)if(D=Hs(e,i,s,p,_),s+=D.length,D.missing){this.aacOverFlow=D;break}else for(_++;s<c-1&&!Ja(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){b.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;s<r;)if(js(n,s)){const p=Rs(e,n,s,c,i);if(p)s+=p.length,i++;else break}else s++}parseAC3PES(e,t){{const n=t.data,r=t.pts;if(r===void 0){b.warn("[tsdemuxer]: AC3 PES unknown PTS");return}const i=n.length;let s=0,c=0,p;for(;c<i&&(p=Gs(e,n,c,r,s++))>0;)c+=p}}parseID3PES(e,t){if(t.pts===void 0){b.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const n=a({},t,{type:this._videoTrack?qn.emsg:qn.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(n)}}function xt(o,e){return((o[e+1]&31)<<8)+o[e+2]}function _t(o,e){return(o[e+10]&31)<<8|o[e+11]}function yt(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,p=(o[e+10]&15)<<8|o[e+11];for(e+=12+p;e<c;){const _=xt(o,e),D=(o[e+3]&15)<<8|o[e+4];switch(o[e]){case 207:if(!n){Se("ADTS AAC");break}case 15:i.audioPid===-1&&(i.audioPid=_);break;case 21:i.id3Pid===-1&&(i.id3Pid=_);break;case 219:if(!n){Se("H.264");break}case 27:i.videoPid===-1&&(i.videoPid=_,i.segmentVideoCodec="avc");break;case 3:case 4:!t.mpeg&&!t.mp3?b.log("MPEG audio found, not supported in this browser"):i.audioPid===-1&&(i.audioPid=_,i.segmentAudioCodec="mp3");break;case 193:if(!n){Se("AC-3");break}case 129:t.ac3?i.audioPid===-1&&(i.audioPid=_,i.segmentAudioCodec="ac3"):b.log("AC-3 audio found, not supported in this browser");break;case 6:if(i.audioPid===-1&&D>0){let F=e+5,he=D;for(;he>2;){switch(o[F]){case 106:t.ac3!==!0?b.log("AC-3 audio found, not supported in this browser for now"):(i.audioPid=_,i.segmentAudioCodec="ac3");break}const we=o[F+1]+2;F+=we,he-=we}}break;case 194:case 135:return Ot(r,new Error("Unsupported EC-3 in M2TS found")),i;case 36:return Ot(r,new Error("Unsupported HEVC in M2TS found")),i}e+=D+5}return i}function Ot(o,e,t){b.warn(`parsing error: ${e.message}`),o.emit(u.ERROR,u.ERROR,{type:x.MEDIA_ERROR,details:y.FRAG_PARSING_ERROR,fatal:!1,levelRetry:t,error:e,reason:e.message})}function Se(o){b.log(`${o} with AES-128-CBC encryption found in unencrypted stream`)}function Lt(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]=rn(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&&(b.warn(`${Math.round((i-s)/9e4)}s delta between PTS and DTS, align them`),i=s)):s=i),r=t[8];let D=r+9;if(o.size<=D)return null;o.size-=D;const F=new Uint8Array(o.size);for(let he=0,Te=c.length;he<Te;he++){t=c[he];let we=t.byteLength;if(D)if(D>we){D-=we;continue}else t=t.subarray(D),we-=D,D=0;F.set(t,e),e+=we}return n&&(n-=r+3),{data:F,pts:i,dts:s,len:n}}return null}class ln extends Us{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=Y(e,0);let n=(t==null?void 0:t.length)||0;if(t&&e[n]===11&&e[n+1]===119&&R(t)!==void 0&&ka(e,n)<=16)return!1;for(let r=e.length;n<r;n++)if(to(e,n))return b.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return eo(e,t)}appendFrame(e,t,n){if(this.basePTS!==null)return Rs(e,t,n,this.basePTS,this.frameIndex)}}class sn{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 nn=Math.pow(2,32)-1;class lt{static init(){lt.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};let e;for(e in lt.types)lt.types.hasOwnProperty(e)&&(lt.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);const t=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),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]);lt.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]);lt.STTS=lt.STSC=lt.STCO=i,lt.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),lt.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),lt.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),lt.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const s=new Uint8Array([105,115,111,109]),c=new Uint8Array([97,118,99,49]),p=new Uint8Array([0,0,0,1]);lt.FTYP=lt.box(lt.types.ftyp,s,p,s,c),lt.DINF=lt.box(lt.types.dinf,lt.box(lt.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 lt.box(lt.types.hdlr,lt.HDLR_TYPES[e])}static mdat(e){return lt.box(lt.types.mdat,e)}static mdhd(e,t){t*=e;const n=Math.floor(t/(nn+1)),r=Math.floor(t%(nn+1));return lt.box(lt.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,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 lt.box(lt.types.mdia,lt.mdhd(e.timescale,e.duration),lt.hdlr(e.type),lt.minf(e))}static mfhd(e){return lt.box(lt.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,e&255]))}static minf(e){return e.type==="audio"?lt.box(lt.types.minf,lt.box(lt.types.smhd,lt.SMHD),lt.DINF,lt.stbl(e)):lt.box(lt.types.minf,lt.box(lt.types.vmhd,lt.VMHD),lt.DINF,lt.stbl(e))}static moof(e,t,n){return lt.box(lt.types.moof,lt.mfhd(e),lt.traf(n,t))}static moov(e){let t=e.length;const n=[];for(;t--;)n[t]=lt.trak(e[t]);return lt.box.apply(null,[lt.types.moov,lt.mvhd(e[0].timescale,e[0].duration)].concat(n).concat(lt.mvex(e)))}static mvex(e){let t=e.length;const n=[];for(;t--;)n[t]=lt.trex(e[t]);return lt.box.apply(null,[lt.types.mvex,...n])}static mvhd(e,t){t*=e;const n=Math.floor(t/(nn+1)),r=Math.floor(t%(nn+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 lt.box(lt.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 lt.box(lt.types.sdtp,n)}static stbl(e){return lt.box(lt.types.stbl,lt.stsd(e),lt.box(lt.types.stts,lt.STTS),lt.box(lt.types.stsc,lt.STSC),lt.box(lt.types.stsz,lt.STSZ),lt.box(lt.types.stco,lt.STCO))}static avc1(e){let t=[],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=lt.box(lt.types.avcC,new Uint8Array([1,t[3],t[4],t[5],255,224|e.sps.length].concat(t).concat([e.pps.length]).concat(n))),p=e.width,_=e.height,D=e.pixelRatio[0],F=e.pixelRatio[1];return lt.box(lt.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,p>>8&255,p&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,lt.box(lt.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),lt.box(lt.types.pasp,new Uint8Array([D>>24,D>>16&255,D>>8&255,D&255,F>>24,F>>16&255,F>>8&255,F&255])))}static esds(e){const t=e.config.length;return new Uint8Array([0,0,0,0,3,23+t,0,1,0,4,15+t,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([t]).concat(e.config).concat([6,1,2]))}static audioStsd(e){const t=e.samplerate;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,t>>8&255,t&255,0,0])}static mp4a(e){return lt.box(lt.types.mp4a,lt.audioStsd(e),lt.box(lt.types.esds,lt.esds(e)))}static mp3(e){return lt.box(lt.types[".mp3"],lt.audioStsd(e))}static ac3(e){return lt.box(lt.types["ac-3"],lt.audioStsd(e),lt.box(lt.types.dac3,e.config))}static stsd(e){return e.type==="audio"?e.segmentCodec==="mp3"&&e.codec==="mp3"?lt.box(lt.types.stsd,lt.STSD,lt.mp3(e)):e.segmentCodec==="ac3"?lt.box(lt.types.stsd,lt.STSD,lt.ac3(e)):lt.box(lt.types.stsd,lt.STSD,lt.mp4a(e)):lt.box(lt.types.stsd,lt.STSD,lt.avc1(e))}static tkhd(e){const t=e.id,n=e.duration*e.timescale,r=e.width,i=e.height,s=Math.floor(n/(nn+1)),c=Math.floor(n%(nn+1));return lt.box(lt.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,t&255,0,0,0,0,s>>24,s>>16&255,s>>8&255,s&255,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=lt.sdtp(e),r=e.id,i=Math.floor(t/(nn+1)),s=Math.floor(t%(nn+1));return lt.box(lt.types.traf,lt.box(lt.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255])),lt.box(lt.types.tfdt,new Uint8Array([1,0,0,0,i>>24,i>>16&255,i>>8&255,i&255,s>>24,s>>16&255,s>>8&255,s&255])),lt.trun(e,n.length+16+20+8+16+8+8),n)}static trak(e){return e.duration=e.duration||4294967295,lt.box(lt.types.trak,lt.tkhd(e),lt.mdia(e))}static trex(e){const t=e.id;return lt.box(lt.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(e,t){const n=e.samples||[],r=n.length,i=12+16*r,s=new Uint8Array(i);let c,p,_,D,F,he;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++)p=n[c],_=p.duration,D=p.size,F=p.flags,he=p.cts,s.set([_>>>24&255,_>>>16&255,_>>>8&255,_&255,D>>>24&255,D>>>16&255,D>>>8&255,D&255,F.isLeading<<2|F.dependsOn,F.isDependedOn<<6|F.hasRedundancy<<4|F.paddingValue<<1|F.isNonSync,F.degradPrio&61440,F.degradPrio&15,he>>>24&255,he>>>16&255,he>>>8&255,he&255],12+16*c);return lt.box(lt.types.trun,s)}static initSegment(e){lt.types||lt.init();const t=lt.moov(e);return rn(lt.FTYP,t)}}lt.types=void 0,lt.HDLR_TYPES=void 0,lt.STTS=void 0,lt.STSC=void 0,lt.STCO=void 0,lt.STSZ=void 0,lt.VMHD=void 0,lt.SMHD=void 0,lt.STSD=void 0,lt.FTYP=void 0,lt.DINF=void 0;const Ln=9e4;function $n(o,e,t=1,n=!1){const r=o*e*t;return n?Math.round(r):r}function Nn(o,e,t=1,n=!1){return $n(o,e,1/t,n)}function Kn(o,e=!1){return $n(o,1e3,1/Ln,e)}function br(o,e=1){return $n(o,Ln,1/e)}const xr=10*1e3,hr=1024,Pr=1152,Fr=1536;let jn=null,pr=null;class Vn{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,jn===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);jn=s?parseInt(s[1]):0}if(pr===null){const i=navigator.userAgent.match(/Safari\/(\d+)/i);pr=i?parseInt(i[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){b.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e}resetNextTimestamp(){b.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){b.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,p=c-i;return p<-4294967296&&(t=!0,c=kn(c,n),p=c-i),p>0?i:c},n);return t&&b.debug("PTS rollover detected"),r}remux(e,t,n,r,i,s,c,p){let _,D,F,he,Te,we,Ie=i,ze=i;const ot=e.pid>-1,Mt=t.pid>-1,kt=t.samples.length,mn=e.samples.length>0,Zt=c&&kt>0||kt>1;if((!ot||mn)&&(!Mt||Zt)||this.ISGenerated||c){if(this.ISGenerated){var fn,Wn,Er,On;const si=this.videoTrackConfig;si&&(t.width!==si.width||t.height!==si.height||((fn=t.pixelRatio)==null?void 0:fn[0])!==((Wn=si.pixelRatio)==null?void 0:Wn[0])||((Er=t.pixelRatio)==null?void 0:Er[1])!==((On=si.pixelRatio)==null?void 0:On[1]))&&this.resetInitSegment()}else F=this.generateIS(e,t,i,s);const Yn=this.isVideoContiguous;let di=-1,Ar;if(Zt&&(di=fr(t.samples),!Yn&&this.config.forceKeyFrameOnDiscontinuity))if(we=!0,di>0){b.warn(`[mp4-remuxer]: Dropped ${di} out of ${kt} video samples due to a missing keyframe`);const si=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(di),t.dropped+=di,ze+=(t.samples[0].pts-si)/t.inputTimeScale,Ar=ze}else di===-1&&(b.warn(`[mp4-remuxer]: No keyframe found out of ${kt} video samples`),we=!1);if(this.ISGenerated){if(mn&&Zt){const si=this.getVideoStartPts(t.samples),Gr=(kn(e.samples[0].pts,si)-si)/t.inputTimeScale;Ie+=Math.max(0,Gr),ze+=Math.max(0,-Gr)}if(mn){if(e.samplerate||(b.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),F=this.generateIS(e,t,i,s)),D=this.remuxAudio(e,Ie,this.isAudioContiguous,s,Mt||Zt||p===it.AUDIO?ze:void 0),Zt){const si=D?D.endPTS-D.startPTS:0;t.inputTimeScale||(b.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),F=this.generateIS(e,t,i,s)),_=this.remuxVideo(t,ze,Yn,si)}}else Zt&&(_=this.remuxVideo(t,ze,Yn,0));_&&(_.firstKeyFrame=di,_.independent=di!==-1,_.firstKeyFramePTS=Ar)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(Te=Or(n,i,this._initPTS,this._initDTS)),r.samples.length&&(he=Wr(r,i,this._initPTS))),{audio:D,video:_,initSegment:F,independent:we,text:he,id3:Te}}generateIS(e,t,n,r){const i=e.samples,s=t.samples,c=this.typeSupported,p={},_=this._initPTS;let D=!_||r,F="audio/mp4",he,Te,we;if(D&&(he=Te=1/0),e.config&&i.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":c.mpeg?(F="audio/mpeg",e.codec=""):c.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}p.audio={id:"audio",container:F,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&c.mpeg?new Uint8Array(0):lt.initSegment([e]),metadata:{channelCount:e.channelCount}},D&&(we=e.inputTimeScale,!_||we!==_.timescale?he=Te=i[0].pts-Math.round(we*n):D=!1)}if(t.sps&&t.pps&&s.length){if(t.timescale=t.inputTimeScale,p.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:lt.initSegment([t]),metadata:{width:t.width,height:t.height}},D)if(we=t.inputTimeScale,!_||we!==_.timescale){const Ie=this.getVideoStartPts(s),ze=Math.round(we*n);Te=Math.min(Te,kn(s[0].dts,Ie)-ze),he=Math.min(he,Ie-ze)}else D=!1;this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(p).length)return this.ISGenerated=!0,D?(this._initPTS={baseTime:he,timescale:we},this._initDTS={baseTime:Te,timescale:we}):he=we=void 0,{tracks:p,initPTS:he,timescale:we}}remuxVideo(e,t,n,r){const i=e.inputTimeScale,s=e.samples,c=[],p=s.length,_=this._initPTS;let D=this.nextAvcDts,F=8,he=this.videoSampleDuration,Te,we,Ie=Number.POSITIVE_INFINITY,ze=Number.NEGATIVE_INFINITY,ot=!1;if(!n||D===null){const kr=t*i,Rr=s[0].pts-kn(s[0].dts,s[0].pts);jn&&D!==null&&Math.abs(kr-Rr-D)<15e3?n=!0:D=kr-Rr}const Mt=_.baseTime*i/_.timescale;for(let kr=0;kr<p;kr++){const Rr=s[kr];Rr.pts=kn(Rr.pts-Mt,D),Rr.dts=kn(Rr.dts-Mt,D),Rr.dts<s[kr>0?kr-1:kr].dts&&(ot=!0)}ot&&s.sort(function(kr,Rr){const Hi=kr.dts-Rr.dts,xi=kr.pts-Rr.pts;return Hi||xi}),Te=s[0].dts,we=s[s.length-1].dts;const kt=we-Te,mn=kt?Math.round(kt/(p-1)):he||e.inputTimeScale/30;if(n){const kr=Te-D,Rr=kr>mn,Hi=kr<-1;if((Rr||Hi)&&(Rr?b.warn(`AVC: ${Kn(kr,!0)} ms (${kr}dts) hole between fragments detected at ${t.toFixed(3)}`):b.warn(`AVC: ${Kn(-kr,!0)} ms (${kr}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!Hi||D>=s[0].pts||jn)){Te=D;const xi=s[0].pts-kr;if(Rr)s[0].dts=Te,s[0].pts=xi;else for(let Wi=0;Wi<s.length&&!(s[Wi].dts>xi);Wi++)s[Wi].dts-=kr,s[Wi].pts-=kr;b.log(`Video: Initial PTS/DTS adjusted: ${Kn(xi,!0)}/${Kn(Te,!0)}, delta: ${Kn(kr,!0)} ms`)}}Te=Math.max(0,Te);let Zt=0,Bn=0,fn=Te;for(let kr=0;kr<p;kr++){const Rr=s[kr],Hi=Rr.units,xi=Hi.length;let Wi=0;for(let Da=0;Da<xi;Da++)Wi+=Hi[Da].data.length;Bn+=Wi,Zt+=xi,Rr.length=Wi,Rr.dts<fn?(Rr.dts=fn,fn+=mn/4|0||1):fn=Rr.dts,Ie=Math.min(Rr.pts,Ie),ze=Math.max(Rr.pts,ze)}we=s[p-1].dts;const Wn=Bn+4*Zt+8;let Er;try{Er=new Uint8Array(Wn)}catch(kr){this.observer.emit(u.ERROR,u.ERROR,{type:x.MUX_ERROR,details:y.REMUX_ALLOC_ERROR,fatal:!1,error:kr,bytes:Wn,reason:`fail allocating video mdat ${Wn}`});return}const On=new DataView(Er.buffer);On.setUint32(0,Wn),Er.set(lt.types.mdat,4);let Yn=!1,di=Number.POSITIVE_INFINITY,Ar=Number.POSITIVE_INFINITY,si=Number.NEGATIVE_INFINITY,ni=Number.NEGATIVE_INFINITY;for(let kr=0;kr<p;kr++){const Rr=s[kr],Hi=Rr.units;let xi=0;for(let Ba=0,Ua=Hi.length;Ba<Ua;Ba++){const is=Hi[Ba],Mo=is.data,sl=is.data.byteLength;On.setUint32(F,sl),F+=4,Er.set(Mo,F),F+=sl,xi+=4+sl}let Wi;if(kr<p-1)he=s[kr+1].dts-Rr.dts,Wi=s[kr+1].pts-Rr.pts;else{const Ba=this.config,Ua=kr>0?Rr.dts-s[kr-1].dts:mn;if(Wi=kr>0?Rr.pts-s[kr-1].pts:mn,Ba.stretchShortVideoTrack&&this.nextAudioPts!==null){const is=Math.floor(Ba.maxBufferHole*i),Mo=(r?Ie+r*i:this.nextAudioPts)-Rr.pts;Mo>is?(he=Mo-Ua,he<0?he=Ua:Yn=!0,b.log(`[mp4-remuxer]: It is approximately ${Mo/90} ms to the next segment; using duration ${he/90} ms for the last video frame.`)):he=Ua}else he=Ua}const Da=Math.round(Rr.pts-Rr.dts);di=Math.min(di,he),si=Math.max(si,he),Ar=Math.min(Ar,Wi),ni=Math.max(ni,Wi),c.push(new q(Rr.key,he,xi,Da))}if(c.length){if(jn){if(jn<70){const kr=c[0].flags;kr.dependsOn=2,kr.isNonSync=0}}else if(pr&&ni-Ar<si-di&&mn/si<.025&&c[0].cts===0){b.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let kr=Te;for(let Rr=0,Hi=c.length;Rr<Hi;Rr++){const xi=kr+c[Rr].duration,Wi=kr+c[Rr].cts;if(Rr<Hi-1){const Da=xi+c[Rr+1].cts;c[Rr].duration=Da-Wi}else c[Rr].duration=Rr?c[Rr-1].duration:mn;c[Rr].cts=0,kr=xi}}}he=Yn||!he?mn:he,this.nextAvcDts=D=we+he,this.videoSampleDuration=he,this.isVideoContiguous=!0;const Yi={data1:lt.moof(e.sequenceNumber++,Te,a({},e,{samples:c})),data2:Er,startPTS:Ie/i,endPTS:(ze+he)/i,startDTS:Te/i,endDTS:D/i,type:"video",hasAudio:!1,hasVideo:!0,nb:c.length,dropped:e.dropped};return e.samples=[],e.dropped=0,Yi}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return Pr;case"ac3":return Fr;default:return hr}}remuxAudio(e,t,n,r,i){const s=e.inputTimeScale,c=e.samplerate?e.samplerate:s,p=s/c,_=this.getSamplesPerFrame(e),D=_*p,F=this._initPTS,he=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,Te=[],we=i!==void 0;let Ie=e.samples,ze=he?0:8,ot=this.nextAudioPts||-1;const Mt=t*s,kt=F.baseTime*s/F.timescale;if(this.isAudioContiguous=n=n||Ie.length&&ot>0&&(r&&Math.abs(Mt-ot)<9e3||Math.abs(kn(Ie[0].pts-kt,Mt)-ot)<20*D),Ie.forEach(function(Gr){Gr.pts=kn(Gr.pts-kt,Mt)}),!n||ot<0){if(Ie=Ie.filter(Gr=>Gr.pts>=0),!Ie.length)return;i===0?ot=0:r&&!we?ot=Math.max(0,Mt):ot=Ie[0].pts}if(e.segmentCodec==="aac"){const Gr=this.config.maxAudioFramesDrift;for(let $i=0,Yi=ot;$i<Ie.length;$i++){const kr=Ie[$i],Rr=kr.pts,Hi=Rr-Yi,xi=Math.abs(1e3*Hi/s);if(Hi<=-Gr*D&&we)$i===0&&(b.warn(`Audio frame @ ${(Rr/s).toFixed(3)}s overlaps nextAudioPts by ${Math.round(1e3*Hi/s)} ms.`),this.nextAudioPts=ot=Yi=Rr);else if(Hi>=Gr*D&&xi<xr&&we){let Wi=Math.round(Hi/D);Yi=Rr-Wi*D,Yi<0&&(Wi--,Yi+=D),$i===0&&(this.nextAudioPts=ot=Yi),b.warn(`[mp4-remuxer]: Injecting ${Wi} audio frame @ ${(Yi/s).toFixed(3)}s due to ${Math.round(1e3*Hi/s)} ms gap.`);for(let Da=0;Da<Wi;Da++){const Ba=Math.max(Yi,0);let Ua=sn.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);Ua||(b.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),Ua=kr.unit.subarray()),Ie.splice($i,0,{unit:Ua,pts:Ba}),Yi+=D,$i++}}kr.pts=Yi,Yi+=D}}let mn=null,Zt=null,Bn,fn=0,Wn=Ie.length;for(;Wn--;)fn+=Ie[Wn].unit.byteLength;for(let Gr=0,$i=Ie.length;Gr<$i;Gr++){const Yi=Ie[Gr],kr=Yi.unit;let Rr=Yi.pts;if(Zt!==null){const xi=Te[Gr-1];xi.duration=Math.round((Rr-Zt)/p)}else if(n&&e.segmentCodec==="aac"&&(Rr=ot),mn=Rr,fn>0){fn+=ze;try{Bn=new Uint8Array(fn)}catch(xi){this.observer.emit(u.ERROR,u.ERROR,{type:x.MUX_ERROR,details:y.REMUX_ALLOC_ERROR,fatal:!1,error:xi,bytes:fn,reason:`fail allocating audio mdat ${fn}`});return}he||(new DataView(Bn.buffer).setUint32(0,fn),Bn.set(lt.types.mdat,4))}else return;Bn.set(kr,ze);const Hi=kr.byteLength;ze+=Hi,Te.push(new q(!0,_,Hi,0)),Zt=Rr}const Er=Te.length;if(!Er)return;const On=Te[Te.length-1];this.nextAudioPts=ot=Zt+p*On.duration;const Yn=he?new Uint8Array(0):lt.moof(e.sequenceNumber++,mn/p,a({},e,{samples:Te}));e.samples=[];const di=mn/s,Ar=ot/s,ni={data1:Yn,data2:Bn,startPTS:di,endPTS:Ar,startDTS:di,endDTS:Ar,type:"audio",hasAudio:!0,hasVideo:!1,nb:Er};return this.isAudioContiguous=!0,ni}remuxEmptyAudio(e,t,n,r){const i=e.inputTimeScale,s=e.samplerate?e.samplerate:i,c=i/s,p=this.nextAudioPts,_=this._initDTS,D=_.baseTime*9e4/_.timescale,F=(p!==null?p:r.startDTS*i)+D,he=r.endDTS*i+D,Te=c*hr,we=Math.ceil((he-F)/Te),Ie=sn.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);if(b.warn("[mp4-remuxer]: remux empty Audio"),!Ie){b.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}const ze=[];for(let ot=0;ot<we;ot++){const Mt=F+ot*Te;ze.push({unit:Ie,pts:Mt,dts:Mt})}return e.samples=ze,this.remuxAudio(e,t,n,!1)}}function kn(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 fr(o){for(let e=0;e<o.length;e++)if(o[e].key)return e;return-1}function Or(o,e,t,n){const r=o.samples.length;if(!r)return;const i=o.inputTimeScale;for(let c=0;c<r;c++){const p=o.samples[c];p.pts=kn(p.pts-t.baseTime*i/t.timescale,e*i)/i,p.dts=kn(p.dts-n.baseTime*i/n.timescale,e*i)/i}const s=o.samples;return o.samples=[],{samples:s}}function Wr(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=kn(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 q{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(ge(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=tt(e);r.audio&&(t=f(r.audio,ee.AUDIO)),r.video&&(n=f(r.video,ee.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"}:b.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=i}remux(e,t,n,r,i,s){var c,p;let{initPTS:_,lastEndTime:D}=this;const F={audio:void 0,video:void 0,text:r,id3:n,initSegment:void 0};C(D)||(D=this.lastEndTime=i||0);const he=t.samples;if(!(he!=null&&he.length))return F;const Te={initPTS:void 0,timescale:1};let we=this.initData;if((c=we)!=null&&c.length||(this.generateInitSegment(he),we=this.initData),!((p=we)!=null&&p.length))return b.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),F;this.emitInitSegment&&(Te.tracks=this.initTracks,this.emitInitSegment=!1);const Ie=gn(he,we),ze=Ze(we,he),ot=ze===null?i:ze;(d(_,ot,i,Ie)||Te.timescale!==_.timescale&&s)&&(Te.initPTS=ot-i,_&&_.timescale===1&&b.warn(`Adjusting initPTS by ${Te.initPTS-_.baseTime}`),this.initPTS=_={baseTime:Te.initPTS,timescale:1});const Mt=e?ot-_.baseTime/_.timescale:D,kt=Mt+Ie;Hn(we,he,_.baseTime/_.timescale),Ie>0?this.lastEndTime=kt:(b.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const mn=!!we.audio,Zt=!!we.video;let Bn="";mn&&(Bn+="audio"),Zt&&(Bn+="video");const fn={data1:he,startPTS:Mt,startDTS:Mt,endPTS:kt,endDTS:kt,type:Bn,hasAudio:mn,hasVideo:Zt,nb:1,dropped:0};return F.audio=fn.type==="audio"?fn:void 0,F.video=fn.type!=="audio"?fn:void 0,F.initSegment=Te,F.id3=Or(n,i,_,_),r.samples.length&&(F.text=Wr(r,i,_)),F}}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===ee.AUDIO){if(t==="ec-3"||t==="ac-3"||t==="alac")return t;if(t==="fLaC"||t==="Opus")return xn(t,!1);const n="mp4a.40.5";return b.info(`Parsed audio codec "${t}" or audio object type not handled. Using "${n}"`),n}return b.warn(`Unhandled video codec "${t}"`),t==="hvc1"||t==="hev1"?"hvc1.1.6.L120.90":t==="av01"?"av01.0.04M.08":"avc1.42e01e"}let g;try{g=self.performance.now.bind(self.performance)}catch(o){b.debug("Unable to use Performance API on this environment"),g=Ue==null?void 0:Ue.Date.now}const k=[{demux:wo,remux:l},{demux:at,remux:Vn},{demux:no,remux:Vn},{demux:ln,remux:Vn}];k.splice(2,0,{demux:Ws,remux:Vn});class ae{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=g();let s=new Uint8Array(e);const{currentTransmuxState:c,transmuxConfig:p}=this;r&&(this.currentTransmuxState=r);const{contiguous:_,discontinuity:D,trackSwitch:F,accurateTimeOffset:he,timeOffset:Te,initSegmentChange:we}=r||c,{audioCodec:Ie,videoCodec:ze,defaultInitPts:ot,duration:Mt,initSegmentData:kt}=p,mn=Re(s,t);if(mn&&mn.method==="AES-128"){const Wn=this.getDecrypter();if(Wn.isSync()){let Er=Wn.softwareDecrypt(s,mn.key.buffer,mn.iv.buffer);if(n.part>-1&&(Er=Wn.flush()),!Er)return i.executeEnd=g(),Le(n);s=new Uint8Array(Er)}else return this.decryptionPromise=Wn.webCryptoDecrypt(s,mn.key.buffer,mn.iv.buffer).then(Er=>{const On=this.push(Er,null,n);return this.decryptionPromise=null,On}),this.decryptionPromise}const Zt=this.needsProbing(D,F);if(Zt){const Wn=this.configureTransmuxer(s);if(Wn)return b.warn(`[transmuxer] ${Wn.message}`),this.observer.emit(u.ERROR,u.ERROR,{type:x.MEDIA_ERROR,details:y.FRAG_PARSING_ERROR,fatal:!1,error:Wn,reason:Wn.message}),i.executeEnd=g(),Le(n)}(D||F||we||Zt)&&this.resetInitSegment(kt,Ie,ze,Mt,t),(D||we||Zt)&&this.resetInitialTimestamp(ot),_||this.resetContiguity();const Bn=this.transmux(s,mn,Te,he,n),fn=this.currentTransmuxState;return fn.contiguous=!0,fn.discontinuity=!1,fn.trackSwitch=!1,i.executeEnd=g(),Bn}flush(e){const t=e.transmuxing;t.executeStart=g();const{decrypter:n,currentTransmuxState:r,decryptionPromise:i}=this;if(i)return i.then(()=>this.flush(e));const s=[],{timeOffset:c}=r;if(n){const F=n.flush();F&&s.push(this.push(F,null,e))}const{demuxer:p,remuxer:_}=this;if(!p||!_)return t.executeEnd=g(),[Le(e)];const D=p.flush(c);return qe(D)?D.then(F=>(this.flushRemux(s,F,e),s)):(this.flushRemux(s,D,e),s)}flushRemux(e,t,n){const{audioTrack:r,videoTrack:i,id3Track:s,textTrack:c}=t,{accurateTimeOffset:p,timeOffset:_}=this.currentTransmuxState;b.log(`[transmuxer.ts]: Flushed fragment ${n.sn}${n.part>-1?" p: "+n.part:""} of level ${n.level}`);const D=this.remuxer.remux(r,i,s,c,_,p,!0,this.id);e.push({remuxResult:D,chunkMeta:n}),n.transmuxing.executeEnd=g()}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:p}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(i,s,c,p,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 he=0,Te=k.length;he<Te;he++){var c;if((c=k[he].demux)!=null&&c.probe(e)){s=k[he];break}}if(!s)return new Error("Failed to find demuxer by probing fragment data");const p=this.demuxer,_=this.remuxer,D=s.remux,F=s.demux;(!_||!(_ instanceof D))&&(this.remuxer=new D(n,t,r,i)),(!p||!(p instanceof F))&&(this.demuxer=new F(n,t,r),this.probe=F.probe)}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new ps(this.config)),e}}function Re(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 Le=o=>({remuxResult:{},chunkMeta:o});function qe(o){return"then"in o&&o.then instanceof Function}class dt{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 Ct{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 Kt={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(p,_,D){this.fn=p,this.context=_,this.once=D||!1}function i(p,_,D,F,he){if(typeof D!="function")throw new TypeError("The listener must be a function");var Te=new r(D,F||p,he),we=t?t+_:_;return p._events[we]?p._events[we].fn?p._events[we]=[p._events[we],Te]:p._events[we].push(Te):(p._events[we]=Te,p._eventsCount++),p}function s(p,_){--p._eventsCount===0?p._events=new n:delete p._events[_]}function c(){this._events=new n,this._eventsCount=0}c.prototype.eventNames=function(){var _=[],D,F;if(this._eventsCount===0)return _;for(F in D=this._events)e.call(D,F)&&_.push(t?F.slice(1):F);return Object.getOwnPropertySymbols?_.concat(Object.getOwnPropertySymbols(D)):_},c.prototype.listeners=function(_){var D=t?t+_:_,F=this._events[D];if(!F)return[];if(F.fn)return[F.fn];for(var he=0,Te=F.length,we=new Array(Te);he<Te;he++)we[he]=F[he].fn;return we},c.prototype.listenerCount=function(_){var D=t?t+_:_,F=this._events[D];return F?F.fn?1:F.length:0},c.prototype.emit=function(_,D,F,he,Te,we){var Ie=t?t+_:_;if(!this._events[Ie])return!1;var ze=this._events[Ie],ot=arguments.length,Mt,kt;if(ze.fn){switch(ze.once&&this.removeListener(_,ze.fn,void 0,!0),ot){case 1:return ze.fn.call(ze.context),!0;case 2:return ze.fn.call(ze.context,D),!0;case 3:return ze.fn.call(ze.context,D,F),!0;case 4:return ze.fn.call(ze.context,D,F,he),!0;case 5:return ze.fn.call(ze.context,D,F,he,Te),!0;case 6:return ze.fn.call(ze.context,D,F,he,Te,we),!0}for(kt=1,Mt=new Array(ot-1);kt<ot;kt++)Mt[kt-1]=arguments[kt];ze.fn.apply(ze.context,Mt)}else{var mn=ze.length,Zt;for(kt=0;kt<mn;kt++)switch(ze[kt].once&&this.removeListener(_,ze[kt].fn,void 0,!0),ot){case 1:ze[kt].fn.call(ze[kt].context);break;case 2:ze[kt].fn.call(ze[kt].context,D);break;case 3:ze[kt].fn.call(ze[kt].context,D,F);break;case 4:ze[kt].fn.call(ze[kt].context,D,F,he);break;default:if(!Mt)for(Zt=1,Mt=new Array(ot-1);Zt<ot;Zt++)Mt[Zt-1]=arguments[Zt];ze[kt].fn.apply(ze[kt].context,Mt)}}return!0},c.prototype.on=function(_,D,F){return i(this,_,D,F,!1)},c.prototype.once=function(_,D,F){return i(this,_,D,F,!0)},c.prototype.removeListener=function(_,D,F,he){var Te=t?t+_:_;if(!this._events[Te])return this;if(!D)return s(this,Te),this;var we=this._events[Te];if(we.fn)we.fn===D&&(!he||we.once)&&(!F||we.context===F)&&s(this,Te);else{for(var Ie=0,ze=[],ot=we.length;Ie<ot;Ie++)(we[Ie].fn!==D||he&&!we[Ie].once||F&&we[Ie].context!==F)&&ze.push(we[Ie]);ze.length?this._events[Te]=ze.length===1?ze[0]:ze:s(this,Te)}return this},c.prototype.removeAllListeners=function(_){var D;return _?(D=t?t+_:_,this._events[D]&&s(this,D)):(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})(Kt);var pn=Kt.exports,jt=z(pn);class Jt{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=(_,D)=>{D=D||{},D.frag=this.frag,D.id=this.id,_===u.ERROR&&(this.error=D.error),this.hls.trigger(_,D)};this.observer=new jt,this.observer.on(u.FRAG_DECRYPTED,s),this.observer.on(u.ERROR,s);const c=bn(i.preferManagedMediaSource)||{isTypeSupported:()=>!1},p={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||Xs())){try{i.workerPath?(b.log(`loading Web Worker ${i.workerPath} for "${t}"`),this.workerContext=Qs(i.workerPath)):(b.log(`injecting Web Worker for "${t}"`),this.workerContext=zs()),this.onwmsg=F=>this.onWorkerMessage(F);const{worker:D}=this.workerContext;D.addEventListener("message",this.onwmsg),D.onerror=F=>{const he=new Error(`${F.message} (${F.filename}:${F.lineno})`);i.enableWorker=!1,b.warn(`Error in "${t}" Web Worker, fallback to inline`),this.hls.trigger(u.ERROR,{type:x.OTHER_ERROR,details:y.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:he})},D.postMessage({cmd:"init",typeSupported:p,vendor:"",id:t,config:JSON.stringify(i)})}catch(D){b.warn(`Error setting up "${t}" Web Worker, fallback to inline`,D),this.resetWorker(),this.error=null,this.transmuxer=new ae(this.observer,p,i,"",t)}return}this.transmuxer=new ae(this.observer,p,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,p,_,D){var F,he;_.transmuxing.start=self.performance.now();const{transmuxer:Te}=this,we=s?s.start:i.start,Ie=i.decryptdata,ze=this.frag,ot=!(ze&&i.cc===ze.cc),Mt=!(ze&&_.level===ze.level),kt=ze?_.sn-ze.sn:-1,mn=this.part?_.part-this.part.index:-1,Zt=kt===0&&_.id>1&&_.id===(ze==null?void 0:ze.stats.chunkCount),Bn=!Mt&&(kt===1||kt===0&&(mn===1||Zt&&mn<=0)),fn=self.performance.now();(Mt||kt||i.stats.parsing.start===0)&&(i.stats.parsing.start=fn),s&&(mn||!Bn)&&(s.stats.parsing.start=fn);const Wn=!(ze&&((F=i.initSegment)==null?void 0:F.url)===((he=ze.initSegment)==null?void 0:he.url)),Er=new Ct(ot,Bn,p,Mt,we,Wn);if(!Bn||ot||Wn){b.log(`[transmuxer-interface, ${i.type}]: Starting new transmux session for sn: ${_.sn} p: ${_.part} level: ${_.level} id: ${_.id}
discontinuity: ${ot}
trackSwitch: ${Mt}
contiguous: ${Bn}
accurateTimeOffset: ${p}
timeOffset: ${we}
initSegmentChange: ${Wn}`);const On=new dt(n,r,t,c,D);this.configureTransmuxer(On)}if(this.frag=i,this.part=s,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:e,decryptdata:Ie,chunkMeta:_,state:Er},e instanceof ArrayBuffer?[e]:[]);else if(Te){const On=Te.push(e,Ie,_,Er);qe(On)?(Te.async=!0,On.then(Yn=>{this.handleTransmuxComplete(Yn)}).catch(Yn=>{this.transmuxerError(Yn,_,"transmuxer-interface push error")})):(Te.async=!1,this.handleTransmuxComplete(On))}}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);qe(n)||t.async?(qe(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:x.MEDIA_ERROR,details:y.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)){b.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":b[t.data.logType]&&b[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)}}const un=100;class Cn extends As{constructor(e,t,n){super(e,t,n,"[audio-stream-controller]",it.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===wn.WAITING_INIT_PTS&&this.tick()}}startLoad(e){if(!this.levels){this.startPosition=e,this.state=wn.STOPPED;return}const t=this.lastCurrentTime;this.stopLoad(),this.setInterval(un),t>0&&e===-1?(this.log(`Override startPosition with lastCurrentTime @${t.toFixed(3)}`),e=t,this.state=wn.IDLE):(this.loadedmetadata=!1,this.state=wn.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}doTick(){switch(this.state){case wn.IDLE:this.doTickIdle();break;case wn.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=wn.WAITING_INIT_PTS}break}case wn.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=wn.IDLE}break}case wn.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=wn.FRAG_LOADING;const p=s.flush(),_={frag:r,part:i,payload:p,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 p=this.getLoadPosition(),_=Si.bufferInfo(this.mediaBuffer,p,this.config.maxBufferHole);da(_.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=wn.IDLE}}this.onTickEnd()}clearWaitingFragment(){const e=this.waitingData;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=wn.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=wn.WAITING_TRACK;return}const p=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&p&&(this.bufferFlushed=!1,this.afterBufferFlushed(p,ee.AUDIO,it.AUDIO));const _=this.getFwdBufferInfo(p,it.AUDIO);if(_===null)return;if(!this.switchingTrack&&this._streamEnded(_,c)){e.trigger(u.BUFFER_EOS,{type:"audio"}),this.state=wn.ENDED;return}const D=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,it.MAIN),F=_.len,he=this.getMaxBufferLength(D==null?void 0:D.len),Te=c.fragments,we=Te[0].start,Ie=this.getLoadPosition(),ze=this.flushing?Ie:_.end;if(this.switchingTrack&&n){const mn=Ie;c.PTSKnown&&mn<we&&(_.end>we||_.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),n.currentTime=we+.05)}if(F>=he&&!this.switchingTrack&&ze<Te[Te.length-1].start)return;let ot=this.getNextFragment(ze,c),Mt=!1;if(ot&&this.isLoopLoading(ot,ze)&&(Mt=!!ot.gap,ot=this.getNextFragmentLoopLoading(ot,c,_,it.MAIN,he)),!ot){this.bufferFlushed=!0;return}const kt=D&&ot.start>D.end+c.targetduration;if(kt||!(D!=null&&D.len)&&_.len){const mn=this.getAppendedFrag(ot.start,it.MAIN);if(mn===null||(Mt||(Mt=!!mn.gap||!!kt&&D.len===0),kt&&!Mt||Mt&&_.nextStart&&_.nextStart<mn.end))return}this.loadFragment(ot,s,ze)}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 Ti(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(un):this.resetTransmuxer(),n?(this.switchingTrack=t,this.state=wn.IDLE,this.flushAudioIfNeeded(t)):(this.switchingTrack=null,this.bufferedTrack=t,this.state=wn.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 p=0;if(i.live||(n=c.details)!=null&&n.live){this.checkLiveUpdate(i);const D=this.mainDetails;if(i.deltaUpdateFailed||!D)return;if(!c.details&&i.hasProgramDateTime&&D.hasProgramDateTime)Pa(i,D),p=i.fragments[0].start;else{var _;p=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,p),this.state===wn.WAITING_TRACK&&!this.waitForCdnTuneIn(i)&&(this.state=wn.IDLE),this.tick()}_handleFragmentLoadProgress(e){var t;const{frag:n,part:r,payload:i}=e,{config:s,trackId:c,levels:p}=this;if(!p){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 _=p[c];if(!_){this.warn("Audio track is undefined on fragment load progress");return}const D=_.details;if(!D){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(n.start);return}const F=s.defaultAudioCodec||_.audioCodec||"mp4a.40.2";let he=this.transmuxer;he||(he=this.transmuxer=new Jt(this.hls,it.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const Te=this.initPTS[n.cc],we=(t=n.initSegment)==null?void 0:t.data;if(Te!==void 0){const ze=r?r.index:-1,ot=ze!==-1,Mt=new vs(n.level,n.sn,n.stats.chunkCount,i.byteLength,ze,ot);he.push(i,we,F,"",n,r,D.totalduration,!1,Mt,Te)}else{this.log(`Unknown video PTS for cc ${n.cc}, waiting for video PTS before demuxing audio frag ${n.sn} of [${D.startSN} ,${D.endSN}],track ${c}`);const{cache:Ie}=this.waitingData=this.waitingData||{frag:n,part:r,cache:new $s,complete:!1};Ie.push(new Uint8Array(i)),this.waitingVideoCC=this.videoTrackCC,this.state=wn.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!==it.AUDIO){if(!this.loadedmetadata&&n.type===it.MAIN){const i=this.videoBuffer||this.media;i&&Si.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,U({},i)))}this.fragBufferedComplete(n,r)}onError(e,t){var n;if(t.fatal){this.state=wn.ERROR;return}switch(t.details){case y.FRAG_GAP:case y.FRAG_PARSING_ERROR:case y.FRAG_DECRYPT_ERROR:case y.FRAG_LOAD_ERROR:case y.FRAG_LOAD_TIMEOUT:case y.KEY_LOAD_ERROR:case y.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(it.AUDIO,t);break;case y.AUDIO_TRACK_LOAD_ERROR:case y.AUDIO_TRACK_LOAD_TIMEOUT:case y.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===wn.WAITING_TRACK&&((n=t.context)==null?void 0:n.type)===En.AUDIO_TRACK&&(this.state=wn.IDLE);break;case y.BUFFER_APPEND_ERROR:case y.BUFFER_FULL_ERROR:if(!t.parent||t.parent!=="audio")return;if(t.details===y.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case y.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onBufferFlushing(e,{type:t}){t!==ee.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==ee.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===wn.ENDED&&(this.state=wn.IDLE);const n=this.mediaBuffer||this.media;n&&(this.afterBufferFlushed(n,t,it.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:p,part:_,level:D}=c,{details:F}=D,{audio:he,text:Te,id3:we,initSegment:Ie}=i;if(this.fragContextChanged(p)||!F){this.fragmentTracker.removeFragment(p);return}if(this.state=wn.PARSING,this.switchingTrack&&he&&this.completeAudioSwitch(this.switchingTrack),Ie!=null&&Ie.tracks){const ze=p.initSegment||p;this._bufferInitSegment(D,Ie.tracks,ze,s),r.trigger(u.FRAG_PARSING_INIT_SEGMENT,{frag:ze,id:n,tracks:Ie.tracks})}if(he){const{startPTS:ze,endPTS:ot,startDTS:Mt,endDTS:kt}=he;_&&(_.elementaryStreams[ee.AUDIO]={startPTS:ze,endPTS:ot,startDTS:Mt,endDTS:kt}),p.setElementaryStreamInfo(ee.AUDIO,ze,ot,Mt,kt),this.bufferFragmentData(he,p,_,s)}if(we!=null&&(t=we.samples)!=null&&t.length){const ze=a({id:n,frag:p,details:F},we);r.trigger(u.FRAG_PARSING_METADATA,ze)}if(Te){const ze=a({id:n,frag:p,details:F},Te);r.trigger(u.FRAG_PARSING_USERDATA,ze)}}_bufferInitSegment(e,t,n,r){if(this.state!==wn.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 p={type:"audio",frag:n,part:null,chunkMeta:r,parent:n.type,data:c};this.hls.trigger(u.BUFFER_APPENDING,p)}this.tickImmediate()}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);if(this.fragCurrent=e,this.switchingTrack||r===pi.NOT_LOADED||r===pi.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=wn.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragments[0].start!==t.details.fragments[0].start&&Pa(t.details,s)}else this.startFragRequested=!0,super.loadFragment(e,t,n)}else this.clearTrackerIfNeeded(e)}flushAudioIfNeeded(e){if(this.media&&this.bufferedTrack){const{name:t,lang:n,assocLang:r,characteristics:i,audioCodec:s,channels:c}=this.bufferedTrack;xa({name:t,lang:n,assocLang:r,characteristics:i,audioCodec:s,channels:c},e,Br)||(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,U({},e))}}function ir(o,e){if(o.length!==e.length)return!1;for(let t=0;t<o.length;t++)if(!Tn(o[t].attrs,e[t].attrs))return!1;return!0}function Tn(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 er(o,e){return e.label.toLowerCase()===o.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(o.lang||"").toLowerCase())}class Sr extends ui{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(he=>!n||n.indexOf(he.groupId)!==-1);if(c.length)this.selectDefaultTrack&&!c.some(he=>he.default)&&(this.selectDefaultTrack=!1),c.forEach((he,Te)=>{he.id=Te});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=c;const p=this.hls.config.audioPreference;if(!i&&p){const he=ba(p,c,Br);if(he>-1)i=c[he];else{const Te=ba(p,this.tracks);i=this.tracks[Te]}}let _=this.findTrackId(i);_===-1&&i&&(_=this.findTrackId(null));const D={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,D);const F=this.trackId;if(_!==-1&&F===-1)this.setAudioTrack(_);else if(c.length&&F===-1){var s;const he=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(he.message),this.hls.trigger(u.ERROR,{type:x.MEDIA_ERROR,details:y.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:he})}}else this.shouldReloadPlaylist(i)&&this.setAudioTrack(this.trackId)}onError(e,t){t.fatal||!t.context||t.context.type===En.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&&xa(e,r,Br))return r;const i=ba(e,this.tracksInGroup,Br);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=ia(e,t.levels,n,s,Br);if(c===-1)return null;t.nextLoadLevel=c}if(e.channels||e.audioCodec){const s=ba(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,U({},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||xa(e,r,Br)))return n}if(e){const{name:n,lang:r,assocLang:i,characteristics:s,audioCodec:c,channels:p}=e;for(let _=0;_<t.length;_++){const D=t[_];if(xa({name:n,lang:r,assocLang:i,characteristics:s,audioCodec:c,channels:p},D,Br))return _}for(let _=0;_<t.length;_++){const D=t[_];if(Tn(e.attrs,D.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return _}for(let _=0;_<t.length;_++){const D=t[_];if(Tn(e.attrs,D.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 wr=500;class ri extends As{constructor(e,t,n){super(e,t,n,"[subtitle-stream-controller]",it.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=wn.IDLE,this.setInterval(wr),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=wn.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 p=n.start+n.duration;s?s.end=p:(s={start:c,end:p},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,it.SUBTITLE)}}onFragBuffered(e,t){if(!this.loadedmetadata&&t.frag.type===it.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)===it.SUBTITLE&&(t.details===y.FRAG_GAP&&this.fragmentTracker.fragBuffered(n,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==wn.STOPPED&&(this.state=wn.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&ir(this.levels,t)){this.levels=t.map(n=>new Ti(n));return}this.tracksBuffered=[],this.levels=t.map(n=>{const r=new Ti(n);return this.tracksBuffered[r.id]=[],r}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,it.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(wr)}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 p=i[c];if(c>=i.length||!p)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=p.details)!=null&&n.live){const F=this.mainDetails;if(s.deltaUpdateFailed||!F)return;const he=F.fragments[0];if(!p.details)s.hasProgramDateTime&&F.hasProgramDateTime?(Pa(s,F),_=s.fragments[0].start):he&&(_=he.start,Pn(s,_));else{var D;_=this.alignPlaylists(s,p.details,(D=this.levelLastLoaded)==null?void 0:D.details),_===0&&he&&(_=he.start,Pn(s,_))}}p.details=s,this.levelLastLoaded=p,c===r&&(!this.startFragRequested&&(this.mainDetails||!s.live)&&this.setStartPosition(this.mainDetails||s,_),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===wn.IDLE&&(Ca(null,s.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),p.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:x.MEDIA_ERROR,details:y.FRAG_DECRYPT_ERROR,fatal:!1,error:c,reason:c.message,frag:t}),c}).then(c=>{const p=performance.now();i.trigger(u.FRAG_DECRYPTED,{frag:t,payload:c,stats:{tstart:s,tdecrypt:p}})}).catch(c=>{this.warn(`${c.name}: ${c.message}`),this.state=wn.IDLE})}}doTick(){if(!this.media){this.state=wn.IDLE;return}if(this.state===wn.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=Si.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],i,r.maxBufferHole),{end:c,len:p}=s,_=this.getFwdBufferInfo(this.media,it.MAIN),D=n.details,F=this.getMaxBufferLength(_==null?void 0:_.len)+D.levelTargetDuration;if(p>F)return;const he=D.fragments,Te=he.length,we=D.edge;let Ie=null;const ze=this.fragPrevious;if(c<we){const ot=r.maxFragLookUpTolerance,Mt=c>we-ot?0:ot;Ie=Ca(ze,he,Math.max(he[0].start,c),Mt),!Ie&&ze&&ze.start<he[0].start&&(Ie=he[0])}else Ie=he[Te-1];if(!Ie)return;if(Ie=this.mapToInitFragWhenRequired(Ie),Ie.sn!=="initSegment"){const ot=Ie.sn-D.startSN,Mt=he[ot-1];Mt&&Mt.cc===Ie.cc&&this.fragmentTracker.getState(Mt)===pi.NOT_LOADED&&(Ie=Mt)}this.fragmentTracker.getState(Ie)===pi.NOT_LOADED&&this.loadFragment(Ie,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 ii(this.tracksBuffered[this.currentTrackId]||[])}}class ii{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 Zi extends ui{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=Sn(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),Sn(this.media.textTracks).forEach(t=>{Ur(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(D=>!n||n.indexOf(D.groupId)!==-1);if(s.length)this.selectDefaultTrack&&!s.some(D=>D.default)&&(this.selectDefaultTrack=!1),s.forEach((D,F)=>{D.id=F});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=s;const c=this.hls.config.subtitlePreference;if(!i&&c){this.selectDefaultTrack=!1;const D=ba(c,s);if(D>-1)i=s[D];else{const F=ba(c,this.tracks);i=this.tracks[F]}}let p=this.findTrackId(i);p===-1&&i&&(p=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,_),p!==-1&&this.trackId===-1&&this.setSubtitleTrack(p)}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||xa(i,e)))return r}if(e){for(let r=0;r<t.length;r++){const i=t[r];if(Tn(e.attrs,i.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return r}for(let r=0;r<t.length;r++){const i=t[r];if(Tn(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(er(r,e))return n}}return-1}onError(e,t){t.fatal||!t.context||t.context.type===En.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&&xa(e,n))return n;const r=ba(e,this.tracksInGroup);if(r>-1){const i=this.tracksInGroup[r];return this.setSubtitleTrack(r),i}else{if(n)return null;{const i=ba(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=Sn(e.textTracks),n=this.currentTrack;let r;if(n&&(r=t.filter(i=>er(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||!C(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:p,type:_,url:D}=r;this.hls.trigger(u.SUBTITLE_TRACK_SWITCH,{id:s,groupId:c,name:p,type:_,url:D});const F=this.switchParams(r.url,n==null?void 0:n.details,r.details);this.loadPlaylist(F)}}class ci{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){b.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 ai=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/;class bi{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&&b.error(`Media element src was set while attaching MediaSource (${r} > ${n})`)},this.hls=e;const t="[buffer-controller]";this.appendSource=tr(bn(e.config.preferManagedMediaSource)),this.log=b.log.bind(b,t),this.warn=b.warn.bind(b,t),this.error=b.error.bind(b,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 ci(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=bn(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 p=self.ManagedMediaSource;n.disableRemotePlayback=n.disableRemotePlayback||p&&s instanceof p,Ji(n),_a(n,c),n.load()}catch(p){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 p=this.tracks[s];if(p&&typeof p.buffer.changeType=="function"){var c;const{id:_,codec:D,levelCodec:F,container:he,metadata:Te}=t[s],we=Rn(p.codec,p.levelCodec),Ie=we==null?void 0:we.replace(ai,"$1");let ze=Rn(D,F);const ot=(c=ze)==null?void 0:c.replace(ai,"$1");if(ze&&Ie!==ot){s.slice(0,5)==="audio"&&(ze=xn(ze,this.appendSource));const Mt=`${he};codecs=${ze}`;this.appendChangeType(s,Mt),this.log(`switching codec ${we} to ${ze}`),this.tracks[s]={buffer:p.buffer,codec:D,container:he,levelCodec:F,metadata:Te,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:p,part:_,chunkMeta:D}=t,F=D.buffering[c],he=self.performance.now();F.start=he;const Te=p.stats.buffering,we=_?_.stats.buffering:null;Te.start===0&&(Te.start=he),we&&we.start===0&&(we.start=he);const Ie=i.audio;let ze=!1;c==="audio"&&(Ie==null?void 0:Ie.container)==="audio/mpeg"&&(ze=!this.lastMpegAudioChunk||D.id===1||this.lastMpegAudioChunk.sn!==D.sn,this.lastMpegAudioChunk=D);const ot=p.start,Mt={execute:()=>{if(F.executeStart=self.performance.now(),ze){const kt=this.sourceBuffer[c];if(kt){const mn=ot-kt.timestampOffset;Math.abs(mn)>=.1&&(this.log(`Updating audio SourceBuffer timestampOffset to ${ot} (delta: ${mn}) sn: ${p.sn})`),kt.timestampOffset=ot)}}this.appendExecutor(s,c)},onStart:()=>{},onComplete:()=>{const kt=self.performance.now();F.executeEnd=F.end=kt,Te.first===0&&(Te.first=kt),we&&we.first===0&&(we.first=kt);const{sourceBuffer:mn}=this,Zt={};for(const Bn in mn)Zt[Bn]=Si.getBuffered(mn[Bn]);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:p,part:_,chunkMeta:D,parent:p.type,timeRanges:Zt})},onError:kt=>{const mn={type:x.MEDIA_ERROR,parent:p.type,details:y.BUFFER_APPEND_ERROR,sourceBufferName:c,frag:p,part:_,chunkMeta:D,error:kt,err:kt,fatal:!1};if(kt.code===DOMException.QUOTA_EXCEEDED_ERR)mn.details=y.BUFFER_FULL_ERROR;else{const Zt=++this.appendErrors[c];mn.details=y.BUFFER_APPEND_ERROR,this.warn(`Failed ${Zt}/${n.config.appendErrorMaxRetry} times to append segment in "${c}" sourceBuffer`),Zt>=n.config.appendErrorMaxRetry&&(mn.fatal=!0)}n.trigger(u.ERROR,mn)}};r.append(Mt,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[ee.AUDIOVIDEO]?i.push("audiovideo"):(s[ee.AUDIO]&&i.push("audio"),s[ee.VIDEO]&&i.push("video"));const c=()=>{const p=self.performance.now();n.stats.buffering.end=p,r&&(r.stats.buffering.end=p);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,p=t.live&&i.liveBackBufferLength!==null?i.liveBackBufferLength:i.backBufferLength;if(C(p)&&p>0){const _=Math.max(p,c),D=Math.floor(s/c)*c-_;this.flushBackBuffer(s,c,D)}if(C(i.frontBufferFlushThreshold)&&i.frontBufferFlushThreshold>0){const _=Math.max(i.maxBufferLength,i.frontBufferFlushThreshold),D=Math.max(_,c),F=Math.floor(s/c)*c+D;this.flushFrontBuffer(s,c,F)}}flushBackBuffer(e,t,n){const{details:r,sourceBuffer:i}=this;this.getSourceBufferTypes().forEach(c=>{const p=i[c];if(p){const _=Si.getBuffered(p);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(p.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 p=Si.getBuffered(c),_=p.length;if(_<2)return;const D=p.start(_-1),F=p.end(_-1);if(n>D||e>=D&&e<=F)return;if(c.ended&&e-F<2*t){this.log(`Cannot flush ${s} front buffer while SourceBuffer is in ended state`);return}this.hls.trigger(u.BUFFER_FLUSHING,{startOffset:D,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=C(r.duration)?r.duration:0;e.live&&t.config.liveDurationInfinity?(r.duration=1/0,this.updateSeekableRange(e)):(i>c&&i>s||!C(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:x.MEDIA_ERROR,details:y.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=xn(c,this.appendSource));const p=`${s.container};codecs=${c}`;this.log(`creating sourceBuffer(${p})`);try{const _=t[i]=n.addSourceBuffer(p),D=i;this.addBufferListener(D,"updatestart",this._onSBUpdateStart),this.addBufferListener(D,"updateend",this._onSBUpdateEnd),this.addBufferListener(D,"error",this._onSBUpdateError),this.appendSource&&this.addBufferListener(D,"bufferedchange",(F,he)=>{const Te=he.removedRanges;Te!=null&&Te.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:x.MEDIA_ERROR,details:y.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:_,sourceBufferName:i,mimeType:p})}}}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:x.MEDIA_ERROR,details:y.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,p=c[e];if(!r||!i||!p){this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),s.shiftAndExecuteNext(e);return}const _=C(r.duration)?r.duration:1/0,D=C(i.duration)?i.duration:1/0,F=Math.max(0,t),he=Math.min(n,_,D);he>F&&(!p.ending||p.ended)?(p.ended=!1,this.log(`Removing [${F},${he}] from the ${e} SourceBuffer`),p.remove(F,he)):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 _a(o,e){const t=self.document.createElement("source");t.type="video/mp4",t.src=e,o.appendChild(t)}const zr={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},qr=o=>String.fromCharCode(zr[o]||o),Qr=15,Di=100,ea={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Hr={17:2,18:4,21:6,22:8,23:10,19:13,20:15},ra={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},Ea=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class $a{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const n=typeof t=="function"?t():t;b.log(`${this.time} [${e}] ${n}`)}}}const Sa=function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n].toString(16));return t};class xs{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 qa{constructor(){this.uchar=" ",this.penState=new xs}reset(){this.uchar=" ",this.penState.reset()}setChar(e,t){this.uchar=e,this.penState.copy(t)}setPenState(e){this.penState.copy(e)}equals(e){return this.uchar===e.uchar&&this.penState.equals(e.penState)}copy(e){this.uchar=e.uchar,this.penState.copy(e.penState)}isEmpty(){return this.uchar===" "&&this.penState.isDefault()}}class Ma{constructor(e){this.chars=[],this.pos=0,this.currPenState=new xs,this.cueStartTime=null,this.logger=void 0;for(let t=0;t<Di;t++)this.chars.push(new qa);this.logger=e}equals(e){for(let t=0;t<Di;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<Di;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<Di;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>Di&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=Di)}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=qr(e);if(this.pos>=Di){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<Di;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<Di;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 ha{constructor(e){this.rows=[],this.currRow=Qr-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<Qr;t++)this.rows.push(new Ma(e));this.logger=e}reset(){for(let e=0;e<Qr;e++)this.rows[e].clear();this.currRow=Qr-1}equals(e){let t=!0;for(let n=0;n<Qr;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t}copy(e){for(let t=0;t<Qr;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<Qr;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<Qr;c++)this.rows[c].clear();const i=this.currRow+1-this.nrRollUpRows,s=this.lastOutputScreen;if(s){const c=s.rows[i].cueStartTime,p=this.logger.time;if(c!==null&&p!==null&&c<p)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<Qr;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 pa{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 ha(n),this.nonDisplayedMemory=new ha(n),this.lastOutputScreen=new ha(n),this.currRollUpRow=this.displayedMemory.rows[Qr-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[Qr-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 Vi{constructor(e,t,n){this.channels=void 0,this.currentChannel=0,this.cmdHistory=Is(),this.logger=void 0;const r=this.logger=new $a;this.channels=[null,new pa(e,t,r),new pa(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,()=>"["+Sa([t[n],t[n+1]])+"] -> ("+Sa([r,i])+")");const p=this.cmdHistory;if(r>=16&&r<=31){if(rs(r,i,p)){Ei(null,null,p),this.logger.log(3,()=>"Repeated command ("+Sa([r,i])+") is dropped");continue}Ei(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 Ei(null,null,p);if(!s&&(c=this.parseChars(r,i),c)){const D=this.currentChannel;D&&D>0?this.channels[D].insertChars(c):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!s&&!c&&this.logger.log(2,()=>"Couldn't parse cleaned data "+Sa([r,i])+" orig: "+Sa([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 ("+Sa([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?ea[e]:ra[e]:n=s===1?Hr[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 '"+qr(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 = "+Sa(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=Ea[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()}Ei(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 Ei(o,e,t){t.a=o,t.b=e}function rs(o,e,t){return t.a===o&&t.b===e}function Is(){return{a:null,b:null}}class es{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 Va=function(){if(Ue!=null&&Ue.VTTCue)return self.VTTCue;const o=["","lr","rl"],e=["start","middle","end","left","right"];function t(c,p){if(typeof p!="string"||!Array.isArray(c))return!1;const _=p.toLowerCase();return~c.indexOf(_)?_:!1}function n(c){return t(o,c)}function r(c){return t(e,c)}function i(c,...p){let _=1;for(;_<arguments.length;_++){const D=arguments[_];for(const F in D)c[F]=D[F]}return c}function s(c,p,_){const D=this,F={enumerable:!0};D.hasBeenReset=!1;let he="",Te=!1,we=c,Ie=p,ze=_,ot=null,Mt="",kt=!0,mn="auto",Zt="start",Bn=50,fn="middle",Wn=50,Er="middle";Object.defineProperty(D,"id",i({},F,{get:function(){return he},set:function(On){he=""+On}})),Object.defineProperty(D,"pauseOnExit",i({},F,{get:function(){return Te},set:function(On){Te=!!On}})),Object.defineProperty(D,"startTime",i({},F,{get:function(){return we},set:function(On){if(typeof On!="number")throw new TypeError("Start time must be set to a number.");we=On,this.hasBeenReset=!0}})),Object.defineProperty(D,"endTime",i({},F,{get:function(){return Ie},set:function(On){if(typeof On!="number")throw new TypeError("End time must be set to a number.");Ie=On,this.hasBeenReset=!0}})),Object.defineProperty(D,"text",i({},F,{get:function(){return ze},set:function(On){ze=""+On,this.hasBeenReset=!0}})),Object.defineProperty(D,"region",i({},F,{get:function(){return ot},set:function(On){ot=On,this.hasBeenReset=!0}})),Object.defineProperty(D,"vertical",i({},F,{get:function(){return Mt},set:function(On){const Yn=n(On);if(Yn===!1)throw new SyntaxError("An invalid or illegal string was specified.");Mt=Yn,this.hasBeenReset=!0}})),Object.defineProperty(D,"snapToLines",i({},F,{get:function(){return kt},set:function(On){kt=!!On,this.hasBeenReset=!0}})),Object.defineProperty(D,"line",i({},F,{get:function(){return mn},set:function(On){if(typeof On!="number"&&On!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");mn=On,this.hasBeenReset=!0}})),Object.defineProperty(D,"lineAlign",i({},F,{get:function(){return Zt},set:function(On){const Yn=r(On);if(!Yn)throw new SyntaxError("An invalid or illegal string was specified.");Zt=Yn,this.hasBeenReset=!0}})),Object.defineProperty(D,"position",i({},F,{get:function(){return Bn},set:function(On){if(On<0||On>100)throw new Error("Position must be between 0 and 100.");Bn=On,this.hasBeenReset=!0}})),Object.defineProperty(D,"positionAlign",i({},F,{get:function(){return fn},set:function(On){const Yn=r(On);if(!Yn)throw new SyntaxError("An invalid or illegal string was specified.");fn=Yn,this.hasBeenReset=!0}})),Object.defineProperty(D,"size",i({},F,{get:function(){return Wn},set:function(On){if(On<0||On>100)throw new Error("Size must be between 0 and 100.");Wn=On,this.hasBeenReset=!0}})),Object.defineProperty(D,"align",i({},F,{get:function(){return Er},set:function(On){const Yn=r(On);if(!Yn)throw new SyntaxError("An invalid or illegal string was specified.");Er=Yn,this.hasBeenReset=!0}})),D.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s}();class io{decode(e,t){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function ao(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 fi{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 ki(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],p=s[1];e(c,p)}}const ma=new Va(0,0,""),Fi=ma.align==="middle"?"middle":"center";function Ra(o,e,t){const n=o;function r(){const c=ao(o);if(c===null)throw new Error("Malformed timestamp: "+n);return o=o.replace(/^[^\sa-zA-Z-]+/,""),c}function i(c,p){const _=new fi;ki(c,function(he,Te){let we;switch(he){case"region":for(let Ie=t.length-1;Ie>=0;Ie--)if(t[Ie].id===Te){_.set(he,t[Ie].region);break}break;case"vertical":_.alt(he,Te,["rl","lr"]);break;case"line":we=Te.split(","),_.integer(he,we[0]),_.percent(he,we[0])&&_.set("snapToLines",!1),_.alt(he,we[0],["auto"]),we.length===2&&_.alt("lineAlign",we[1],["start",Fi,"end"]);break;case"position":we=Te.split(","),_.percent(he,we[0]),we.length===2&&_.alt("positionAlign",we[1],["start",Fi,"end","line-left","line-right","auto"]);break;case"size":_.percent(he,Te);break;case"align":_.alt(he,Te,["start",Fi,"end","left","right"]);break}},/:/,/\s/),p.region=_.get("region",null),p.vertical=_.get("vertical","");let D=_.get("line","auto");D==="auto"&&ma.line===-1&&(D=-1),p.line=D,p.lineAlign=_.get("lineAlign","start"),p.snapToLines=_.get("snapToLines",!0),p.size=_.get("size",100),p.align=_.get("align",Fi);let F=_.get("position","auto");F==="auto"&&ma.position===50&&(F=p.align==="start"||p.align==="left"?0:p.align==="end"||p.align==="right"?100:50),p.position=F}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 Na(o){return o.replace(/<br(?: \/)?>/gi,`
`)}class za{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new io,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=Na(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){ki(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 Va(0,0,""),t.state="CUE",i.indexOf("-->")===-1){t.cue.id=i;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{Ra(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 gs=/\r\n|\n\r|\n|\r/g,so=function(e,t,n=0){return e.slice(n,n+t.length)===t},Jo=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(!C(t)||!C(n)||!C(r)||!C(i))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*n,t+=60*1e3*r,t+=60*60*1e3*i,t},oo=function(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0).toString()};function Co(o,e,t){return oo(o.toString())+oo(e.toString())+oo(t)}const Fo=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 lo(o,e,t,n,r,i,s){const c=new za,p=Xe(new Uint8Array(o)).trim().replace(gs,`
`).split(`
`),_=[],D=e?br(e.baseTime,e.timescale):0;let F="00:00.000",he=0,Te=0,we,Ie=!0;c.oncue=function(ze){const ot=t[n];let Mt=t.ccOffset;const kt=(he-D)/9e4;if(ot!=null&&ot.new&&(Te!==void 0?Mt=t.ccOffset=ot.start:Fo(t,n,kt)),kt){if(!e){we=new Error("Missing initPTS for VTT MPEGTS");return}Mt=kt-t.presentationOffset}const mn=ze.endTime-ze.startTime,Zt=kn((ze.startTime+Mt-Te)*9e4,r*9e4)/9e4;ze.startTime=Math.max(Zt,0),ze.endTime=Math.max(Zt+mn,0);const Bn=ze.text.trim();ze.text=decodeURIComponent(encodeURIComponent(Bn)),ze.id||(ze.id=Co(ze.startTime,ze.endTime,Bn)),ze.endTime>0&&_.push(ze)},c.onparsingerror=function(ze){we=ze},c.onflush=function(){if(we){s(we);return}i(_)},p.forEach(ze=>{if(Ie)if(so(ze,"X-TIMESTAMP-MAP=")){Ie=!1,ze.slice(16).split(",").forEach(ot=>{so(ot,"LOCAL:")?F=ot.slice(6):so(ot,"MPEGTS:")&&(he=parseInt(ot.slice(7)))});try{Te=Jo(F)/1e3}catch(ot){we=ot}return}else ze===""&&(Ie=!1);c.parse(ze+`
`)}),c.flush()}const _s="stpp.ttml.im1t",To=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,$o=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,zo={left:"start",center:"center",right:"end",start:"start",end:"end"};function Uo(o,e,t,n){const r=je(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=Nn(e.baseTime,1,e.timescale);try{i.forEach(c=>t(Ko(c,s)))}catch(c){n(c)}}function Ko(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((F,he)=>(F[he]=r.getAttribute(`ttp:${he}`)||i[he],F),{}),c=r.getAttribute("xml:space")!=="preserve",p=Do(Fs(r,"styling","style")),_=Do(Fs(r,"layout","region")),D=Fs(r,"body","[begin]");return[].map.call(D,F=>{const he=Ho(F,c);if(!he||!F.hasAttribute("begin"))return null;const Te=Ao(F.getAttribute("begin"),s),we=Ao(F.getAttribute("dur"),s);let Ie=Ao(F.getAttribute("end"),s);if(Te===null)throw jo(F);if(Ie===null){if(we===null)throw jo(F);Ie=Te+we}const ze=new Va(Te-e,Ie-e,he);ze.id=Co(ze.startTime,ze.endTime,ze.text);const ot=_[F.getAttribute("region")],Mt=p[F.getAttribute("style")],kt=Zo(ot,Mt,p),{textAlign:mn}=kt;if(mn){const Zt=zo[mn];Zt&&(ze.lineAlign=Zt),ze.align=mn}return a(ze,kt),ze}).filter(F=>F!==null)}function Fs(o,e,t){const n=o.getElementsByTagName(e)[0];return n?[].slice.call(n.querySelectorAll(t)):[]}function Do(o){return o.reduce((e,t)=>{const n=t.getAttribute("xml:id");return n&&(e[n]=t),e},{})}function Ho(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?Ho(n,e):e?t+n.textContent.trim().replace(/\s+/g," "):t+n.textContent},"")}function Zo(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,p)=>{const _=uo(e,n,p)||uo(o,n,p)||uo(r,n,p);return _&&(c[p]=_),c},{})}function uo(o,e,t){return o&&o.hasAttributeNS(e,t)?o.getAttributeNS(e,t):null}function jo(o){return new Error(`Could not parse ttml timestamp ${o}`)}function Ao(o,e){if(!o)return null;let t=ao(o);return t===null&&(To.test(o)?t=qo(o,e):$o.test(o)&&(t=Wo(o,e))),t}function qo(o,e){const t=To.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 Wo(o,e){const t=$o.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 co{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=Ro(),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 es(this,"textTrack1"),t=new es(this,"textTrack2"),n=new es(this,"textTrack3"),r=new es(this,"textTrack4");this.cea608Parser1=new Vi(1,e,t),this.cea608Parser2=new Vi(3,n,r)}}addCues(e,t,n,r,i){let s=!1;for(let c=i.length;c--;){const p=i[c],_=Go(p[0],p[1],t,n);if(_>=0&&(p[0]=Math.min(p[0],t),p[1]=Math.max(p[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(ho(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,Ur(n[e]),Dr(n[e],r);else{const p=this.createTextTrack("captions",i,s);p&&(p[e]=!0,n[e]=p)}}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=>{Ur(e[t]),delete e[t]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Ro(),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++)Ur(t[n])}onSubtitleTracksUpdated(e,t){const n=t.subtitleTracks||[],r=n.some(i=>i.textCodec===_s);if(this.config.enableWebVTT||r&&this.config.enableIMSC1){if(ir(this.tracks,n)){this.tracks=n;return}if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){const s=this.media,c=s?Sn(s.textTracks):null;if(this.tracks.forEach((p,_)=>{let D;if(c){let F=null;for(let he=0;he<c.length;he++)if(c[he]&&ho(c[he],p)){F=c[he],c[he]=null;break}F&&(D=F)}if(D)Ur(D);else{const F=fo(p);D=this.createTextTrack(F,p.name,p.lang),D&&(D.mode="disabled")}D&&this.textTracks.push(D)}),c!=null&&c.length){const p=c.filter(_=>_!==null).map(_=>_.label);p.length&&b.warn(`Media element contains unused subtitle tracks: ${p.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===it.MAIN){var n,r;const{cea608Parser1:i,cea608Parser2:s,lastSn:c}=this,{cc:p,sn:_}=t.frag,D=(n=(r=t.part)==null?void 0:r.index)!=null?n:-1;i&&s&&(_!==c+1||_===c&&D!==this.lastPartIndex+1||p!==this.lastCc)&&(i.reset(),s.reset()),this.lastCc=p,this.lastSn=_,this.lastPartIndex=D}}onFragLoaded(e,t){const{frag:n,payload:r}=t;if(n.type===it.SUBTITLE)if(r.byteLength){const i=n.decryptdata,s="stats"in t;if(i==null||!i.encrypted||s){const c=this.tracks[n.level],p=this.vttCCs;p[n.cc]||(p[n.cc]={start:n.start,prevCC:this.prevCC,new:!0},this.prevCC=n.cc),c&&c.textCodec===_s?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;Uo(t,this.initPTS[e.cc],r=>{this._appendCues(r,e.level),n.trigger(u.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})},r=>{b.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 p=this.hls,_=(t=n.initSegment)!=null&&t.data?rn(n.initSegment.data,new Uint8Array(r)):r;lo(_,this.initPTS[n.cc],this.vttCCs,n.cc,n.start,D=>{this._appendCues(D,n.level),p.trigger(u.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:n})},D=>{const F=D.message==="Missing initPTS for VTT MPEGTS";F?s.push(e):this._fallbackToIMSC1(n,r),b.log(`Failed to parse VTT cue: ${D}`),!(F&&c>n.cc)&&p.trigger(u.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:D})})}_fallbackToIMSC1(e,t){const n=this.tracks[e.level];n.textCodec||Uo(t,this.initPTS[e.cc],()=>{n.textCodec=_s,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=>Mr(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===it.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===it.MAIN&&this.closedCaptionsForLevel(i)==="NONE"))for(let c=0;c<s.length;c++){const p=s[c].bytes;if(p){const _=this.extractCea608Data(p);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(p=>vr(c[p],t,n))}if(this.config.renderTextTracksNatively&&t===0&&r!==void 0){const{textTracks:c}=this;Object.keys(c).forEach(p=>vr(c[p],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++],p=127&e[r++];if(c===0&&p===0)continue;if((4&s)!==0){const D=3&s;(D===0||D===1)&&(t[D].push(c),t[D].push(p))}}return t}}function fo(o){return o.characteristics&&/transcribes-spoken-dialog/gi.test(o.characteristics)&&/describes-music-and-sound/gi.test(o.characteristics)?"captions":"subtitles"}function ho(o,e){return!!o&&o.kind===fo(e)&&er(e,o)}function Go(o,e,t,n){return Math.min(e,n)-Math.max(o,t)}function Ro(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}class po{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&&C(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&&b.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,po.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,p)=>p?c.width!==p.width||c.height!==p.height:!0;let i=e.length-1;const s=Math.max(t,n);for(let c=0;c<e.length;c+=1){const p=e[c];if((p.width>=s||p.height>=s)&&r(p,e[c+1])){i=c;break}}return i}}class Vo{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,p=1e3*s/i,_=this.hls;if(_.trigger(u.FPS_DROP,{currentDropped:s,currentDecoded:c,totalDroppedFrames:n}),p>0&&s>_.config.fpsDroppedMonitoringThreshold*c){let D=_.currentLevel;b.warn("drop FPS ratio greater than max allowed value for currentLevel: "+D),D>0&&(_.autoLevelCapping===-1||_.autoLevelCapping>=D)&&(D=D-1,_.trigger(u.FPS_DROP_LEVEL_CAPPING,{level:D,droppedLevel:_.currentLevel}),_.autoLevelCapping=D,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 mo="[eme]";class Os{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=Os.CDMCleanupPromise?[Os.CDMCleanupPromise]:[],this.debug=b.debug.bind(b,mo),this.log=b.log.bind(b,mo),this.warn=b.warn.bind(b,mo),this.error=b.error.bind(b,mo),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=Yt(this.config));const c=s.map(Ft).filter(p=>!!p);this.keyFormatPromise=this.getKeyFormatPromise(c)}this.keyFormatPromise.then(s=>{const c=ht(s);let p,_;if(n==="sinf"){if(c!==ke.FAIRPLAY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${n}" for selected key-system ${c}`);return}const we=At(new Uint8Array(r));try{const Ie=v(JSON.parse(we).sinf),ze=Vt(Ie);if(!ze)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");p=ze.subarray(8,24),_=ke.FAIRPLAY}catch(Ie){this.warn(`${i} Failed to parse sinf: ${Ie}`);return}}else{if(c!==ke.WIDEVINE&&c!==ke.PLAYREADY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${n}" for selected key-system ${c}`);return}const we=qt(r),Ie=we.filter(ot=>!!ot.systemId&&st(ot.systemId)===c);Ie.length>1&&this.warn(`${i} Using first of ${Ie.length} pssh found for selected key-system ${c}`);const ze=Ie[0];if(!ze){we.length===0||we.some(ot=>!ot.systemId)?this.warn(`${i} contains incomplete or invalid pssh data`):this.log(`ignoring ${i} for ${we.map(ot=>st(ot.systemId)).join(",")} pssh data in favor of playlist keys`);return}if(_=st(ze.systemId),ze.version===0&&ze.data)if(_===ke.WIDEVINE){const ot=ze.data.length-22;p=ze.data.subarray(ot,ot+16)}else _===ke.PLAYREADY&&(p=Et(ze.data))}if(!_||!p){this.log(`Unable to handle ${i} with key-system ${c}`);return}const D=vt.hexDump(p),{keyIdToKeySessionPromise:F,mediaKeySessions:he}=this;let Te=F[D];for(let we=0;we<he.length;we++){const Ie=he[we],ze=Ie.decryptdata;if(!ze.keyId)continue;const ot=vt.hexDump(ze.keyId);if(D===ot||ze.uri.replace(/-/g,"").indexOf(D)!==-1){if(Te=F[ot],ze.pssh)break;delete F[ot],ze.pssh=new Uint8Array(r),ze.keyId=p,Te=F[D]=Te.then(()=>this.generateRequestWithPreferredKeySession(Ie,n,r,"encrypted-event-key-match")),Te.catch(Mt=>this.handleError(Mt));break}}if(!Te){if(_!==c){this.log(`Ignoring "${i}" with ${_} init data for selected key-system ${c}`);return}Te=F[D]=this.getKeySystemSelectionPromise([_]).then(({keySystem:we,mediaKeys:Ie})=>{var ze;this.throwIfDestroyed();const ot=new Xt("ISO-23001-7",D,(ze=Ft(we))!=null?ze:"");return ot.pssh=new Uint8Array(r),ot.keyId=p,this.attemptSetMediaKeys(we,Ie).then(()=>{this.throwIfDestroyed();const Mt=this.createMediaKeySessionContext({decryptdata:ot,keySystem:we,mediaKeys:Ie});return this.generateRequestWithPreferredKeySession(Mt,n,r,"encrypted-event-no-match")})}),Te.catch(we=>this.handleError(we))}})}},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===ke.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,p)=>!!s&&p.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 p=_=>{const D=_.shift();this.getMediaKeysPromise(D,r,i).then(F=>s({keySystem:D,mediaKeys:F})).catch(F=>{_.length?p(_):F instanceof Ha?c(F):c(new Ha({type:x.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_NO_ACCESS,error:F,fatal:!0},F.message))})};p(e)})}requestMediaKeySystemAccess(e,t){const{requestMediaKeySystemAccessFunc:n}=this.config;if(typeof n!="function"){let r=`Configured requestMediaKeySystemAccess is not a function ${n}`;return en===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(p=>{this.log(`Failed to obtain access to key-system "${e}": ${p}`)}),s.then(p=>{this.log(`Access for key-system "${p.keySystem}" obtained`);const _=this.fetchServerCertificate(e);return this.log(`Create media-keys for "${e}"`),c.mediaKeys=p.createMediaKeys().then(D=>(this.log(`Media-keys created for "${e}"`),_.then(F=>F?this.setMediaKeysServerCertificate(D,e,F):D))),c.mediaKeys.catch(D=>{this.error(`Failed to create media-keys for "${e}"}: ${D}`)}),c.mediaKeys})}return s.then(()=>i.mediaKeys)}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:n}){this.log(`Creating key-system session "${t}" keyId: ${vt.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 vt.hexDump(e.keyId)}updateKeySession(e,t){var n;const r=e.mediaKeysSession;return this.log(`Updating key-session "${r.sessionId}" for keyID ${vt.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=Yt(this.config),i=e.map(ht).filter(s=>!!s&&r.indexOf(s)!==-1);return this.getKeySystemSelectionPromise(i).then(({keySystem:s})=>{const c=Ft(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 p=this.createMediaKeySessionContext({keySystem:s,mediaKeys:c,decryptdata:t});return this.generateRequestWithPreferredKeySession(p,"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 Ha?this.hls.trigger(u.ERROR,e.data):this.hls.trigger(u.ERROR,{type:x.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))}getKeySystemForKeyPromise(e){const t=this.getKeyIdString(e),n=this.keyIdToKeySessionPromise[t];if(!n){const r=ht(e.keyFormat),i=r?[r]:Yt(this.config);return this.attemptKeySystemAccess(i)}return n}getKeySystemSelectionPromise(e){if(e.length||(e=Yt(this.config)),e.length===0)throw new Ha({type:x.KEY_SYSTEM_ERROR,details:y.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 we=c.call(this.hls,t,n,e);if(!we)throw new Error("Invalid response from configured generateRequest filter");t=we.initDataType,n=e.decryptdata.pssh=we.initData?new Uint8Array(we.initData):null}catch(we){var p;if(this.warn(we.message),(p=this.hls)!=null&&p.config.debug)throw we}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 D=new jt,F=e._onmessage=we=>{const Ie=e.mediaKeysSession;if(!Ie){D.emit("error",new Error("invalid state"));return}const{messageType:ze,message:ot}=we;this.log(`"${ze}" message event for session "${Ie.sessionId}" message size: ${ot.byteLength}`),ze==="license-request"||ze==="license-renewal"?this.renewLicense(e,ot).catch(Mt=>{this.handleError(Mt),D.emit("error",Mt)}):ze==="license-release"?e.keySystem===ke.FAIRPLAY&&(this.updateKeySession(e,Ne("acknowledged")),this.removeSession(e)):this.warn(`unhandled media key message type "${ze}"`)},he=e._onkeystatuseschange=we=>{if(!e.mediaKeysSession){D.emit("error",new Error("invalid state"));return}this.onKeyStatusChange(e);const ze=e.keyStatus;D.emit("keyStatus",ze),ze==="expired"&&(this.warn(`${e.keySystem} expired for key ${_}`),this.renewKeySession(e))};e.mediaKeysSession.addEventListener("message",F),e.mediaKeysSession.addEventListener("keystatuseschange",he);const Te=new Promise((we,Ie)=>{D.on("error",Ie),D.on("keyStatus",ze=>{ze.startsWith("usable")?we():ze==="output-restricted"?Ie(new Ha({type:x.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):ze==="internal-error"?Ie(new Ha({type:x.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${ze}"`)):ze==="expired"?Ie(new Error("key expired while generating request")):this.warn(`unhandled key status change "${ze}"`)})});return e.mediaKeysSession.generateRequest(t,n).then(()=>{var we;this.log(`Request generated for key-session "${(we=e.mediaKeysSession)==null?void 0:we.sessionId}" keyId: ${_}`)}).catch(we=>{throw new Ha({type:x.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_NO_SESSION,error:we,fatal:!1},`Error generating key-session request: ${we}`)}).then(()=>Te).catch(we=>{throw D.removeAllListeners(),this.removeSession(e),we}).then(()=>(D.removeAllListeners(),e))}onKeyStatusChange(e){e.mediaKeysSession.keyStatuses.forEach((t,n)=>{this.log(`key status change "${t}" for keyStatuses keyId: ${vt.hexDump("buffer"in n?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n))} session keyId: ${vt.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 p={responseType:"arraybuffer",url:i},_=t.certLoadPolicy.default,D={loadPolicy:_,timeout:_.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},F={onSuccess:(he,Te,we,Ie)=>{s(he.data)},onError:(he,Te,we,Ie)=>{c(new Ha({type:x.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:we,response:U({url:p.url,data:void 0},he)},`"${e}" certificate request failed (${i}). Status: ${he.code} (${he.text})`))},onTimeout:(he,Te,we)=>{c(new Ha({type:x.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:we,response:{url:p.url,data:void 0}},`"${e}" certificate request timed out (${i})`))},onAbort:(he,Te,we)=>{c(new Error("aborted"))}};r.load(p,D,F)})):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 Ha({type:x.KEY_SYSTEM_ERROR,details:y.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 Ha({type:x.KEY_SYSTEM_ERROR,details:y.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 D;for(let F=0,he=i.length;F<he;F++){var s,c;D=i[F];const Te=(s=D.querySelector("name"))==null?void 0:s.textContent,we=(c=D.querySelector("value"))==null?void 0:c.textContent;Te&&we&&e.setRequestHeader(Te,we)}}const p=r.querySelector("Challenge"),_=p==null?void 0:p.textContent;if(!_)throw new Error("Cannot find <Challenge> in key message");return Ne(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 p=c.response;this.log(`License received ${p instanceof ArrayBuffer?p.byteLength:p}`);const _=this.config.licenseResponseCallback;if(_)try{p=_.call(this.hls,c,s,e)}catch(D){this.error(D)}r(p)}else{const p=n.errorRetry,_=p?p.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>_||c.status>=400&&c.status<500)i(new Ha({type:x.KEY_SYSTEM_ERROR,details:y.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 D=_-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${D} 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:p,licenseChallenge:_})=>{e.keySystem==ke.PLAYREADY&&(_=this.unpackPlayReadyKeyMessage(p,_)),p.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={},Xt.clearKeyUriToKeyIdMap();const n=t.length;Os.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}`)})}}}Os.CDMCleanupPromise=void 0;class Ha 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 Ia;(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"})(Ia||(Ia={}));var Vs;(function(o){o.DASH="d",o.HLS="h",o.SMOOTH="s",o.OTHER="o"})(Vs||(Vs={}));var Es;(function(o){o.OBJECT="CMCD-Object",o.REQUEST="CMCD-Request",o.SESSION="CMCD-Session",o.STATUS="CMCD-Status"})(Es||(Es={}));const el={[Es.OBJECT]:["br","d","ot","tb"],[Es.REQUEST]:["bl","dl","mtp","nor","nrr","su"],[Es.SESSION]:["cid","pr","sf","sid","st","v"],[Es.STATUS]:["bs","rtp"]};class hi{constructor(e,t){this.value=void 0,this.params=void 0,Array.isArray(e)&&(e=e.map(n=>n instanceof hi?n:new hi(n))),this.value=e,this.params=t}}class Ki{constructor(e){this.description=void 0,this.description=e}}const Ya="Dict";function Ss(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 ws(o,e,t,n){return new Error(`failed to ${o} "${Ss(e)}" as ${t}`,{cause:n})}const Io="Bare Item",Oo="Boolean",Lo="Byte Sequence",Po="Decimal",ko="Integer";function wl(o){return o<-999999999999999||999999999999999<o}const Cl=/[\x00-\x1f\x7f]+/,Tl="Token",Dl="Key";function Cs(o,e,t){return ws("serialize",o,e,t)}function Al(o){if(typeof o!="boolean")throw Cs(o,Oo);return o?"?1":"?0"}function Rl(o){return btoa(String.fromCharCode(...o))}function Il(o){if(ArrayBuffer.isView(o)===!1)throw Cs(o,Lo);return`:${Rl(o)}:`}function ol(o){if(wl(o))throw Cs(o,ko);return o.toString()}function Ol(o){return`@${ol(o.getTime()/1e3)}`}function ll(o,e){if(o<0)return-ll(-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 Ll(o){const e=ll(o,3);if(Math.floor(Math.abs(e)).toString().length>12)throw Cs(o,Po);const t=e.toString();return t.includes(".")?t:`${t}.0`}const Pl="String";function kl(o){if(Cl.test(o))throw Cs(o,Pl);return`"${o.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Ml(o){return o.description||o.toString().slice(7,-1)}function ul(o){const e=Ml(o);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw Cs(e,Tl);return e}function tl(o){switch(typeof o){case"number":if(!C(o))throw Cs(o,Io);return Number.isInteger(o)?ol(o):Ll(o);case"string":return kl(o);case"symbol":return ul(o);case"boolean":return Al(o);case"object":if(o instanceof Date)return Ol(o);if(o instanceof Uint8Array)return Il(o);if(o instanceof Ki)return ul(o);default:throw Cs(o,Io)}}function nl(o){if(/^[a-z*][a-z0-9\-_.*]*$/.test(o)===!1)throw Cs(o,Dl);return o}function rl(o){return o==null?"":Object.entries(o).map(([e,t])=>t===!0?`;${nl(e)}`:`;${nl(e)}=${tl(t)}`).join("")}function cl(o){return o instanceof hi?`${tl(o.value)}${rl(o.params)}`:tl(o)}function Nl(o){return`(${o.value.map(cl).join(" ")})${rl(o.params)}`}function Bl(o,e={whitespace:!0}){if(typeof o!="object")throw Cs(o,Ya);const t=o instanceof Map?o.entries():Object.entries(o),n=e!=null&&e.whitespace?" ":"";return Array.from(t).map(([r,i])=>{i instanceof hi||(i=new hi(i));let s=nl(r);return i.value===!0?s+=rl(i.params):(s+="=",Array.isArray(i.value)?s+=Nl(i):s+=cl(i)),s}).join(`,${n}`)}function Fl(o,e){return Bl(o,e)}const $l=o=>o==="ot"||o==="sf"||o==="st",zl=o=>typeof o=="number"?C(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 Yo=o=>Math.round(o),Hl=(o,e)=>(e!=null&&e.baseUrl&&(o=Ul(o,e.baseUrl)),encodeURIComponent(o)),Xo=o=>Yo(o/100)*100,Zl={br:Yo,d:Yo,bl:Xo,dl:Xo,mtp:Xo,nor:Hl,rtp:Xo,tb:Yo};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 p=r[s];p&&(c=p(c,e)),!(s==="v"&&c===1)&&(s=="pr"&&c===1||zl(c)&&($l(s)&&typeof c=="string"&&(c=new Ki(c)),t[s]=c))}),t}function dl(o,e={}){return o?Fl(jl(o,e),a({whitespace:!1},e)):""}function Wl(o,e={}){if(!o)return{};const t=Object.entries(o),n=Object.entries(el).concat(Object.entries((e==null?void 0:e.customHeaderMap)||{})),r=t.reduce((i,s)=>{var c,p;const[_,D]=s,F=((c=n.find(he=>he[1].includes(_)))==null?void 0:c[0])||Es.REQUEST;return(p=i[F])!=null||(i[F]={}),i[F][_]=D,i},{});return Object.entries(r).reduce((i,[s,c])=>(i[s]=dl(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=dl(o,e);return`${Vl}=${encodeURIComponent(t)}`}const fl=/CMCD=[^&#]+/;function Xl(o,e,t){const n=Yl(e,t);if(!n)return o;if(fl.test(o))return o.replace(fl,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:Ia.MANIFEST,su:!this.initialized})}catch(i){b.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),p={d:i.duration*1e3,ot:c};(c===Ia.VIDEO||c===Ia.AUDIO||c==Ia.MUXED)&&(p.br=s.bitrate/1e3,p.tb=this.getTopBandwidth(c)/1e3,p.bl=this.getBufferLength(c)),this.apply(r,p)}catch(i){b.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:Vs.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===Ia.INIT||t.ot===Ia.VIDEO||t.ot===Ia.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 Ia.TIMED_TEXT;if(e.sn==="initSegment")return Ia.INIT;if(t==="audio")return Ia.AUDIO;if(t==="main")return this.hls.audioTracks.length?Ia.VIDEO:Ia.MUXED}getTopBandwidth(e){let t=0,n;const r=this.hls;if(e===Ia.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===Ia.AUDIO?this.audioBuffer:this.videoBuffer;return!n||!t?NaN:Si.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=b.log.bind(b,"[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)===sr.SendAlternateToPenaltyBox&&n.flags===Xr.MoveAllAlternatesMatchingHost){const r=this.levels;let i=this.pathwayPriority,s=this.pathwayId;if(t.context){const{groupId:c,pathwayId:p,type:_}=t.context;c&&r?s=this.getPathwayForGroupId(c,_,s):p&&(s=p)}s in this.penalizedPathways||(this.penalizedPathways[s]=performance.now()),!i&&r&&(i=r.reduce((c,p)=>(c.indexOf(p.pathwayId)===-1&&c.push(p.pathwayId),c),[])),i&&i.length>1&&(this.updatePathwayPriority(i),n.resolved=this.pathwayId!==s),n.resolved||b.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,p=this.hls.levels[c];if(t=this.getLevelsForPathway(s),t.length>0){this.log(`Setting Pathway to "${s}"`),this.pathwayId=s,cr(t),this.hls.trigger(u.LEVELS_UPDATED,{levels:t});const _=this.hls.levels[c];p&&_&&this.levels&&(_.attrs["STABLE-VARIANT-ID"]!==p.attrs["STABLE-VARIANT-ID"]&&_.bitrate!==p.bitrate&&this.log(`Unstable Pathways change from bitrate ${p.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===En.AUDIO_TRACK&&r[i].hasAudioGroup(e)||t===En.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":p}=i;if(t.some(D=>D.pathwayId===s))return;const _=this.getLevelsForPathway(c).map(D=>{const F=new j(D.attrs);F["PATHWAY-ID"]=s;const he=F.AUDIO&&`${F.AUDIO}_clone_${s}`,Te=F.SUBTITLES&&`${F.SUBTITLES}_clone_${s}`;he&&(n[F.AUDIO]=he,F.AUDIO=he),Te&&(r[F.SUBTITLES]=Te,F.SUBTITLES=Te);const we=pl(D.uri,F["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",p),Ie=new Ti({attrs:F,audioCodec:D.audioCodec,bitrate:D.bitrate,height:D.height,name:D.name,url:we,videoCodec:D.videoCodec,width:D.width});if(D.audioGroups)for(let ze=1;ze<D.audioGroups.length;ze++)Ie.addGroupId("audio",`${D.audioGroups[ze]}_clone_${s}`);if(D.subtitleGroups)for(let ze=1;ze<D.subtitleGroups.length;ze++)Ie.addGroupId("text",`${D.subtitleGroups[ze]}_clone_${s}`);return Ie});t.push(..._),hl(this.audioTracks,n,p,s),hl(this.subtitleTracks,r,p,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(D){this.enabled=!1,this.log(`Failed to parse Steering Manifest URI: ${e}`);return}if(r.protocol!=="data:"){const D=(this.hls.bandwidthEstimate||t.abrEwmaDefaultEstimate)|0;r.searchParams.set("_HLS_pathway",this.pathwayId),r.searchParams.set("_HLS_throughput",""+D)}const i={responseType:"json",url:r.href},s=t.steeringManifestLoadPolicy.default,c=s.errorRetry||s.timeoutRetry||{},p={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:c.maxNumRetry||0,retryDelay:c.retryDelayMs||0,maxRetryDelay:c.maxRetryDelayMs||0},_={onSuccess:(D,F,he,Te)=>{this.log(`Loaded steering manifest: "${r}"`);const we=D.data;if(we.VERSION!==1){this.log(`Steering VERSION ${we.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=we.TTL;const{"RELOAD-URI":Ie,"PATHWAY-CLONES":ze,"PATHWAY-PRIORITY":ot}=we;if(Ie)try{this.uri=new self.URL(Ie,r).href}catch(kt){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${Ie}`);return}this.scheduleRefresh(this.uri||he.url),ze&&this.clonePathways(ze);const Mt={steeringManifest:we,url:r.toString()};this.hls.trigger(u.STEERING_MANIFEST_LOADED,Mt),ot&&this.updatePathwayPriority(ot)},onError:(D,F,he,Te)=>{if(this.log(`Error loading steering manifest: ${D.code} ${D.text} (${F.url})`),this.stopLoad(),D.code===410){this.enabled=!1,this.log(`Steering manifest ${F.url} no longer available`);return}let we=this.timeToLoad*1e3;if(D.code===429){const Ie=this.loader;if(typeof(Ie==null?void 0:Ie.getResponseHeader)=="function"){const ze=Ie.getResponseHeader("Retry-After");ze&&(we=parseFloat(ze)*1e3)}this.log(`Steering manifest ${F.url} rate limited`);return}this.scheduleRefresh(this.uri||F.url,we)},onTimeout:(D,F,he)=>{this.log(`Timeout loading steering manifest (${F.url})`),this.scheduleRefresh(this.uri||F.url)}};this.log(`Requesting steering manifest: ${r}`),this.loader.load(i,p,_)}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 hl(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 j(c.attrs),c.url=c.attrs.URI=pl(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 pl(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 p=new self.URL(o);return r&&!c&&(p.host=r),i&&Object.keys(i).sort().forEach(_=>{_&&p.searchParams.set(_,i[_])}),p.href}const eu=/^age:\s*[\d.]+\s*$/im;class ml{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 ce,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&&C(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 F=c!=null?c:t.response;if(F!=null){n.loading.end=Math.max(self.performance.now(),n.loading.first);const he=t.responseType==="arraybuffer"?F.byteLength:F.length;if(n.loaded=n.total=he,n.bwEstimate=n.total*8e3/(n.loading.end-n.loading.first),!this.callbacks)return;const Te=this.callbacks.onProgress;if(Te&&Te(n,e,F,t),!this.callbacks)return;const we={url:t.responseURL,data:F,code:s};this.callbacks.onSuccess(we,n,e,t);return}}const p=i.loadPolicy.errorRetry,_=n.retry,D={url:e.url,data:void 0,code:s};yi(p,_,!1,D)?this.retry(p):(b.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(yi(e,t,!0))this.retry(e);else{var n;b.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=Yr(e,n.retry),n.retry++,b.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 gl{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 ce}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",p=c?"byteLength":"length",{maxTimeToFirstByteMs:_,maxLoadTimeMs:D}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=n,this.request=this.fetchSetup(e,i),self.clearTimeout(this.requestTimeout),t.timeout=_&&C(_)?_:D,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),n.onTimeout(r,e,this.response)},t.timeout),self.fetch(this.request).then(F=>{this.response=this.loader=F;const he=Math.max(self.performance.now(),r.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=D,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),n.onTimeout(r,e,this.response)},D-(he-r.loading.start)),!F.ok){const{status:Te,statusText:we}=F;throw new ou(we||"fetch, bad network response",Te,F)}return r.loading.first=he,r.total=au(F.headers)||r.total,s&&C(t.highWaterMark)?this.loadProgressively(F,r,e,t.highWaterMark,s):c?F.arrayBuffer():e.responseType==="json"?F.json():F.text()}).then(F=>{const he=this.response;if(!he)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),r.loading.end=Math.max(self.performance.now(),r.loading.first);const Te=F[p];Te&&(r.loaded=r.total=Te);const we={url:he.url,data:F,code:he.status};s&&!C(t.highWaterMark)&&s(r,e,F,he),n.onSuccess(we,r,e,he)}).catch(F=>{if(self.clearTimeout(this.requestTimeout),r.aborted)return;const he=F&&F.code||0,Te=F?F.message:null;n.onError({code:he,text:Te},e,F?F.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 $s,c=e.body.getReader(),p=()=>c.read().then(_=>{if(_.done)return s.dataLength&&i(t,n,s.flush(),e),Promise.resolve(new ArrayBuffer(0));const D=_.value,F=D.length;return t.loaded+=F,F<r||s.dataLength?(s.push(D),s.dataLength>=r&&i(t,n,s.flush(),e)):i(t,n,D,e),p()}).catch(()=>Promise.reject());return p()}}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(C(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,p,_;const D=self.VTTCue||self.TextTrackCue;for(let he=0;he<n.rows.length;he++)if(i=n.rows[he],c=!0,p=0,_="",!i.isEmpty()){var F;for(let Ie=0;Ie<i.chars.length;Ie++)lu.test(i.chars[Ie].uchar)&&c?p++:(_+=i.chars[Ie].uchar,c=!1);i.cueStartTime=e,e===t&&(t+=1e-4),p>=16?p--:p++;const Te=Na(_.trim()),we=Co(e,t,Te);o!=null&&(F=o.cues)!=null&&F.getCueById(we)||(s=new D(e,t,Te),s.id=we,s.line=he+1,s.align="left",s.position=10+Math.min(80,Math.floor(p*8/32)*10),r.push(s))}return o&&r.length&&(r.sort((he,Te)=>he.line==="auto"||Te.line==="auto"?0:he.line>8&&Te.line>8?Te.line-he.line:he.line-Te.line),r.forEach(he=>Mr(o,he))),r}},cu={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},vl=U(U({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:ml,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:Pi,bufferController:bi,capLevelController:po,errorController:zi,fpsController:Vo,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:en,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:ri,subtitleTrackController:Zi,timelineController:co,audioStreamController:Cn,audioTrackController:Sr,emeController:Os,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=il(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,p=[];r.forEach(_=>{const D=`${i}Loading${_}`,F=e[D];if(F!==void 0&&c){p.push(D);const he=t[s].default;switch(e[s]={default:he},_){case"TimeOut":he.maxLoadTimeMs=F,he.maxTimeToFirstByteMs=F;break;case"MaxRetry":he.errorRetry.maxNumRetry=F,he.timeoutRetry.maxNumRetry=F;break;case"RetryDelay":he.errorRetry.retryDelayMs=F,he.timeoutRetry.retryDelayMs=F;break;case"MaxRetryTimeout":he.errorRetry.maxRetryDelayMs=F,he.timeoutRetry.maxRetryDelayMs=F;break}}}),p.length&&b.warn(`hls.js config: "${p.join('", "')}" setting(s) are deprecated, use "${s}": ${JSON.stringify(e[s])}`)}),U(U({},t),e)}function il(o){return o&&typeof o=="object"?Array.isArray(o)?o.map(il):Object.keys(o).reduce((e,t)=>(e[t]=il(o[t]),e),{}):o}function hu(o){const e=o.loader;e!==gl&&e!==ml?(b.log("[config]: Custom loader detected, cannot enable progressive streaming"),o.progressive=!1):tu()&&(o.loader=gl,o.progressive=!0,o.enableSoftwareAES=!0,b.log("[config]: Progressive streaming enabled, using FetchLoader"))}let al;class pu extends ui{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,p=!1,_=!1;t.levels.forEach(D=>{var F,he;const Te=D.attrs;let{audioCodec:we,videoCodec:Ie}=D;((F=we)==null?void 0:F.indexOf("mp4a.40.34"))!==-1&&(al||(al=/chrome|firefox/i.test(navigator.userAgent)),al&&(D.audioCodec=we=void 0)),we&&(D.audioCodec=we=xn(we,n)),((he=Ie)==null?void 0:he.indexOf("avc1"))===0&&(Ie=D.videoCodec=Qn(Ie));const{width:ze,height:ot,unknownCodecs:Mt}=D;if(c||(c=!!(ze&&ot)),p||(p=!!Ie),_||(_=!!we),Mt!=null&&Mt.length||we&&!ct(we,"audio",n)||Ie&&!ct(Ie,"video",n))return;const{CODECS:kt,"FRAME-RATE":mn,"HDCP-LEVEL":Zt,"PATHWAY-ID":Bn,RESOLUTION:fn,"VIDEO-RANGE":Wn}=Te,On=`${`${Bn||"."}-`}${D.bitrate}-${fn}-${mn}-${kt}-${Wn}-${Zt}`;if(i[On])if(i[On].uri!==D.url&&!D.attrs["PATHWAY-ID"]){const Yn=s[On]+=1;D.attrs["PATHWAY-ID"]=new Array(Yn+1).join(".");const di=new Ti(D);i[On]=di,r.push(di)}else i[On].addGroupId("audio",Te.AUDIO),i[On].addGroupId("text",Te.SUBTITLES);else{const Yn=new Ti(D);i[On]=Yn,s[On]=1,r.push(Yn)}}),this.filterAndSortMediaOptions(r,t,c,p,_)}filterAndSortMediaOptions(e,t,n,r,i){let s=[],c=[],p=e;if((n||r)&&i&&(p=p.filter(({videoCodec:we,videoRange:Ie,width:ze,height:ot})=>(!!we||!!(ze&&ot))&&li(Ie))),p.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 we=new Error("no level with compatible codecs found in manifest");this.hls.trigger(u.ERROR,{type:x.MEDIA_ERROR,details:y.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:we,reason:we.message})}});return}if(t.audioTracks){const{preferManagedMediaSource:we}=this.hls.config;s=t.audioTracks.filter(Ie=>!Ie.audioCodec||ct(Ie.audioCodec,"audio",we)),yl(s)}t.subtitles&&(c=t.subtitles,yl(c));const _=p.slice(0);p.sort((we,Ie)=>{if(we.attrs["HDCP-LEVEL"]!==Ie.attrs["HDCP-LEVEL"])return(we.attrs["HDCP-LEVEL"]||"")>(Ie.attrs["HDCP-LEVEL"]||"")?1:-1;if(n&&we.height!==Ie.height)return we.height-Ie.height;if(we.frameRate!==Ie.frameRate)return we.frameRate-Ie.frameRate;if(we.videoRange!==Ie.videoRange)return gi.indexOf(we.videoRange)-gi.indexOf(Ie.videoRange);if(we.videoCodec!==Ie.videoCodec){const ze=Nt(we.videoCodec),ot=Nt(Ie.videoCodec);if(ze!==ot)return ot-ze}if(we.uri===Ie.uri&&we.codecSet!==Ie.codecSet){const ze=Dt(we.codecSet),ot=Dt(Ie.codecSet);if(ze!==ot)return ot-ze}return we.averageBitrate!==Ie.averageBitrate?we.averageBitrate-Ie.averageBitrate:0});let D=_[0];if(this.steering&&(p=this.steering.filterParsedLevels(p),p.length!==_.length)){for(let we=0;we<_.length;we++)if(_[we].pathwayId===p[0].pathwayId){D=_[we];break}}this._levels=p;for(let we=0;we<p.length;we++)if(p[we]===D){var F;this._firstLevel=we;const Ie=D.bitrate,ze=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${p.length} level(s) found, first bitrate: ${Ie}`),((F=this.hls.userConfig)==null?void 0:F.abrEwmaDefaultEstimate)===void 0){const ot=Math.min(Ie,this.hls.config.abrEwmaDefaultEstimateMax);ot>ze&&ze===vl.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=ot)}break}const he=i&&!r,Te={levels:p,audioTracks:s,subtitleTracks:c,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:i,video:r,altAudio:!he&&s.some(we=>!!we.url)};this.hls.trigger(u.MANIFEST_PARSED,Te),(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 D=new Error("invalid level idx"),F=e<0;if(this.hls.trigger(u.ERROR,{type:x.OTHER_ERROR,details:y.LEVEL_SWITCH_ERROR,level:e,fatal:F,error:D,reason:D.message}),F)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 p={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,p);const _=s.details;if(!_||_.live){const D=this.switchParams(s.uri,r==null?void 0:r.details,_);this.loadPlaylist(D)}}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===En.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t!==void 0&&t.type===it.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));cr(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 yl(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=y.KEY_LOAD_ERROR,n,r,i){return new Qi({type:x.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,y.KEY_LOAD_ERROR,_))}const s=i.uri;if(!s)return Promise.reject(this.createKeyLoadError(e,y.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 p;switch((p=c.mediaKeySessionContext)==null?void 0:p.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,y.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 p={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},_=n.keyLoadPolicy.default,D={loadPolicy:_,timeout:_.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},F={onSuccess:(he,Te,we,Ie)=>{const{frag:ze,keyInfo:ot,url:Mt}=we;if(!ze.decryptdata||ot!==this.keyUriToKeyInfo[Mt])return c(this.createKeyLoadError(ze,y.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),Ie));ot.decryptdata.key=ze.decryptdata.key=new Uint8Array(he.data),ze.keyLoader=null,ot.loader=null,s({frag:ze,keyInfo:ot})},onError:(he,Te,we,Ie)=>{this.resetLoader(Te),c(this.createKeyLoadError(t,y.KEY_LOAD_ERROR,new Error(`HTTP Error ${he.code} loading key ${he.text}`),we,U({url:p.url,data:void 0},he)))},onTimeout:(he,Te,we)=>{this.resetLoader(Te),c(this.createKeyLoadError(t,y.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),we))},onAbort:(he,Te,we)=>{this.resetLoader(Te),c(this.createKeyLoadError(t,y.INTERNAL_ABORTED,new Error("key loading aborted"),we))}};i.load(p,D,F)})}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 bl(){return self.SourceBuffer||self.WebKitSourceBuffer}function xl(){if(!bn())return!1;const e=bl();return!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function"}function gu(){if(!xl())return!1;const o=bn();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(Tt(e,"video")))||["mp4a.40.2","fLaC"].some(e=>o.isTypeSupported(Tt(e,"audio"))))}function vu(){var o;const e=bl();return typeof(e==null||(o=e.prototype)==null?void 0:o.changeType)=="function"}const yu=250,Qo=2,bu=.1,xu=.05;class _u{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,p=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 ze=self.performance.now()-i;b.warn(`playback not stuck anymore @${s}, after ${Math.round(ze)}ms`),this.stallReported=!1}this.stalled=null}return}if(_||p){this.stalled=null;return}if(r.paused&&!c||r.ended||r.playbackRate===0||!Si.getBuffered(r).length){this.nudgeRetry=0;return}const D=Si.bufferInfo(r,s,0),F=D.nextStart||0;if(c){const ze=D.len>Qo,ot=!F||t&&t.start<=s||F-s>Qo&&!this.fragmentTracker.getPartialFragment(s);if(ze||ot)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var he;if(!(D.len>0)&&!F)return;const ot=Math.max(F,D.start||0)-s,Mt=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,mn=(Mt==null||(he=Mt.details)==null?void 0:he.live)?Mt.details.targetduration*2:Qo,Zt=this.fragmentTracker.getPartialFragment(s);if(ot>0&&(ot<=mn||Zt)){r.paused||this._trySkipBufferHole(Zt);return}}const Te=self.performance.now();if(i===null){this.stalled=Te;return}const we=Te-i;if(!c&&we>=yu&&(this._reportStall(D),!this.media))return;const Ie=Si.bufferInfo(r,s,n.maxBufferHole);this._tryFixBufferStall(Ie,we)}_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&&(b.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)})`);b.warn(i.message),t.trigger(u.ERROR,{type:x.MEDIA_ERROR,details:y.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=Si.bufferInfo(r,i,0),c=i<s.start?s.start:s.nextStart;if(c){const p=s.len<=t.maxBufferHole,_=s.len>0&&s.len<1&&r.readyState<3,D=c-i;if(D>0&&(p||_)){if(D>t.maxBufferHole){const{fragmentTracker:he}=this;let Te=!1;if(i===0){const we=he.getAppendedFrag(0,it.MAIN);we&&c<we.end&&(Te=!0)}if(!Te){const we=e||he.getAppendedFrag(i,it.MAIN);if(we){let Ie=!1,ze=we.end;for(;ze<c;){const ot=he.getPartialFragment(ze);if(ot)ze+=ot.duration;else{Ie=!0;break}}if(Ie)return 0}}}const F=Math.max(c+xu,i+bu);if(b.warn(`skipping hole, adjusting currentTime from ${i} to ${F}`),this.moved=!0,this.stalled=null,r.currentTime=F,e&&!e.gap){const he=new Error(`fragment loaded with buffer holes, seeking from ${i} to ${F}`);n.trigger(u.ERROR,{type:x.MEDIA_ERROR,details:y.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:he,reason:he.message,frag:e})}return F}}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}`);b.warn(c.message),n.currentTime=s,t.trigger(u.ERROR,{type:x.MEDIA_ERROR,details:y.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`);b.error(s.message),t.trigger(u.ERROR,{type:x.MEDIA_ERROR,details:y.BUFFER_STALLED_ERROR,error:s,fatal:!0})}}}const Eu=100;class Su extends As{constructor(e,t,n){super(e,t,n,"[stream-controller]",it.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=wn.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}else this._forceStartLoad=!0,this.state=wn.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case wn.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=wn.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=wn.IDLE;break}break}case wn.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=wn.IDLE}}break}this.state===wn.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 p=this.getLevelDetails();if(p&&this._streamEnded(c,p)){const Ie={};this.altAudio&&(Ie.type="video"),this.hls.trigger(u.BUFFER_EOS,Ie),this.state=wn.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===wn.WAITING_LEVEL||_.live&&this.levelLastLoaded!==s){this.level=i,this.state=wn.WAITING_LEVEL;return}const D=c.len,F=this.getMaxBufferLength(s.maxBitrate);if(D>=F)return;this.backtrackFragment&&this.backtrackFragment.start>c.end&&(this.backtrackFragment=null);const he=this.backtrackFragment?this.backtrackFragment.start:c.end;let Te=this.getNextFragment(he,_);if(this.couldBacktrack&&!this.fragPrevious&&Te&&Te.sn!=="initSegment"&&this.fragmentTracker.getState(Te)!==pi.OK){var we;const ze=((we=this.backtrackFragment)!=null?we:Te).sn-_.startSN,ot=_.fragments[ze-1];ot&&Te.cc===ot.cc&&(Te=ot,this.fragmentTracker.removeFragment(ot))}else this.backtrackFragment&&c.len&&(this.backtrackFragment=null);if(Te&&this.isLoopLoading(Te,he)){if(!Te.gap){const ze=this.audioOnly&&!this.altAudio?ee.AUDIO:ee.VIDEO,ot=(ze===ee.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;ot&&this.afterBufferFlushed(ot,ze,it.MAIN)}Te=this.getNextFragmentLoopLoading(Te,_,c,it.MAIN,F)}Te&&(Te.initSegment&&!Te.initSegment.data&&!this.bitrateTest&&(Te=Te.initSegment),this.loadFragment(Te,s,he))}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);this.fragCurrent=e,r===pi.NOT_LOADED||r===pi.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,it.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,p=e[c],_=this.fragLastKbps;_&&this.fragCurrent?n=this.fragCurrent.duration*p.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 p=c.maxStartPTS?c.maxStartPTS:c.start,_=c.duration,D=Math.max(s.end,p+Math.min(Math.max(_-this.config.maxFragLookUpTolerance,_*(this.couldBacktrack?.5:.125)),_*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(D,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 wn.KEY_LOADING:case wn.FRAG_LOADING:case wn.FRAG_LOADING_WAITING_RETRY:case wn.PARSING:case wn.PARSED:this.state=wn.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 _u(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;C(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!==wn.IDLE)return;const r=n[t.level];(!r.details||r.details.live&&this.levelLastLoaded!==r||this.waitForCdnTuneIn(r.details))&&(this.state=wn.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 p=r[i],_=this.fragCurrent;_&&(this.state===wn.FRAG_LOADING||this.state===wn.FRAG_LOADING_WAITING_RETRY)&&_.level!==t.level&&_.loader&&this.abortCurrentFrag();let D=0;if(s.live||(n=p.details)!=null&&n.live){var F;if(this.checkLiveUpdate(s),s.deltaUpdateFailed)return;D=this.alignPlaylists(s,p.details,(F=this.levelLastLoaded)==null?void 0:F.details)}if(p.details=s,this.levelLastLoaded=p,this.hls.trigger(u.LEVEL_UPDATED,{details:s,level:i}),this.state===wn.WAITING_LEVEL){if(this.waitForCdnTuneIn(s))return;this.state=wn.IDLE}this.startFragRequested?s.live&&this.synchronizeToLiveEdge(s):this.setStartPosition(s,D),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],p=c.details;if(!p){this.warn(`Dropping fragment ${n.sn} of level ${n.level} after level details were reset`),this.fragmentTracker.removeFragment(n);return}const _=c.videoCodec,D=p.PTSKnown||!p.live,F=(t=n.initSegment)==null?void 0:t.data,he=this._getAudioCodec(c),Te=this.transmuxer=this.transmuxer||new Jt(this.hls,it.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),we=r?r.index:-1,Ie=we!==-1,ze=new vs(n.level,n.sn,n.stats.chunkCount,i.byteLength,we,Ie),ot=this.initPTS[n.cc];Te.push(i,F,he,_,n,r,p.totalduration,D,ze,ot)}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 p=n[c];if(p.id==="main"){if(i=c,r=p,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!==it.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===wn.PARSED&&(this.state=wn.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=wn.ERROR;return}switch(t.details){case y.FRAG_GAP:case y.FRAG_PARSING_ERROR:case y.FRAG_DECRYPT_ERROR:case y.FRAG_LOAD_ERROR:case y.FRAG_LOAD_TIMEOUT:case y.KEY_LOAD_ERROR:case y.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(it.MAIN,t);break;case y.LEVEL_LOAD_ERROR:case y.LEVEL_LOAD_TIMEOUT:case y.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===wn.WAITING_LEVEL&&((n=t.context)==null?void 0:n.type)===En.LEVEL&&(this.state=wn.IDLE);break;case y.BUFFER_APPEND_ERROR:case y.BUFFER_FULL_ERROR:if(!t.parent||t.parent!=="main")return;if(t.details===y.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(t)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case y.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}checkBuffer(){const{media:e,gapController:t}=this;if(!(!e||!t||!e.readyState)){if(this.loadedmetadata||!Si.getBuffered(e).length){const n=this.state!==wn.IDLE?this.fragCurrent:null;t.poll(this.lastCurrentTime,n)}this.lastCurrentTime=e.currentTime}}onFragLoadEmergencyAborted(){this.state=wn.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==ee.AUDIO||this.audioOnly&&!this.altAudio){const n=(t===ee.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(n,t,it.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=Si.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=wn.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:p,part:_,level:D}=c,{video:F,text:he,id3:Te,initSegment:we}=i,{details:Ie}=D,ze=this.altAudio?void 0:i.audio;if(this.fragContextChanged(p)){this.fragmentTracker.removeFragment(p);return}if(this.state=wn.PARSING,we){if(we!=null&&we.tracks){const kt=p.initSegment||p;this._bufferInitSegment(D,we.tracks,kt,s),r.trigger(u.FRAG_PARSING_INIT_SEGMENT,{frag:kt,id:n,tracks:we.tracks})}const ot=we.initPTS,Mt=we.timescale;C(ot)&&(this.initPTS[p.cc]={baseTime:ot,timescale:Mt},r.trigger(u.INIT_PTS_FOUND,{frag:p,id:n,initPTS:ot,timescale:Mt}))}if(F&&Ie&&p.sn!=="initSegment"){const ot=Ie.fragments[p.sn-1-Ie.startSN],Mt=p.sn===Ie.startSN,kt=!ot||p.cc>ot.cc;if(i.independent!==!1){const{startPTS:mn,endPTS:Zt,startDTS:Bn,endDTS:fn}=F;if(_)_.elementaryStreams[F.type]={startPTS:mn,endPTS:Zt,startDTS:Bn,endDTS:fn};else if(F.firstKeyFrame&&F.independent&&s.id===1&&!kt&&(this.couldBacktrack=!0),F.dropped&&F.independent){const Wn=this.getMainFwdBufferInfo(),Er=(Wn?Wn.end:this.getLoadPosition())+this.config.maxBufferHole,On=F.firstKeyFramePTS?F.firstKeyFramePTS:mn;if(!Mt&&Er<On-this.config.maxBufferHole&&!kt){this.backtrack(p);return}else kt&&(p.gap=!0);p.setElementaryStreamInfo(F.type,p.start,Zt,p.start,fn,!0)}else Mt&&mn>Qo&&(p.gap=!0);p.setElementaryStreamInfo(F.type,mn,Zt,Bn,fn),this.backtrackFragment&&(this.backtrackFragment=p),this.bufferFragmentData(F,p,_,s,Mt||kt)}else if(Mt||kt)p.gap=!0;else{this.backtrack(p);return}}if(ze){const{startPTS:ot,endPTS:Mt,startDTS:kt,endDTS:mn}=ze;_&&(_.elementaryStreams[ee.AUDIO]={startPTS:ot,endPTS:Mt,startDTS:kt,endDTS:mn}),p.setElementaryStreamInfo(ee.AUDIO,ot,Mt,kt,mn),this.bufferFragmentData(ze,p,_,s)}if(Ie&&Te!=null&&(t=Te.samples)!=null&&t.length){const ot={id:n,frag:p,details:Ie,samples:Te.samples};r.trigger(u.FRAG_PARSING_METADATA,ot)}if(Ie&&he){const ot={id:n,frag:p,details:Ie,samples:he.samples};r.trigger(u.FRAG_PARSING_USERDATA,ot)}}_bufferInitSegment(e,t,n,r){if(this.state!==wn.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 p=e.audioCodec;const _=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){p&&(p.indexOf("mp4a.40.5")!==-1?p="mp4a.40.2":p="mp4a.40.5");const D=i.metadata;D&&"channelCount"in D&&(D.channelCount||1)!==1&&_.indexOf("firefox")===-1&&(p="mp4a.40.5")}p&&p.indexOf("mp4a.40.5")!==-1&&_.indexOf("android")!==-1&&i.container!=="audio/mpeg"&&(p="mp4a.40.2",this.log(`Android: force audio codec to ${p}`)),e.audioCodec&&e.audioCodec!==p&&this.log(`Swapping manifest audio codec "${e.audioCodec}" for "${p}"`),i.levelCodec=p,i.id="main",this.log(`Init audio buffer, container:${i.container}, codecs[selected/level/parsed]=[${p||""}/${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(p=>{const D=t[p].initSegment;D!=null&&D.byteLength&&this.hls.trigger(u.BUFFER_APPENDING,{type:p,data:D,frag:n,part:null,chunkMeta:r,parent:n.type})}),this.tickImmediate()}getMainFwdBufferInfo(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,it.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=wn.IDLE}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&e.seeking===!1){const n=e.currentTime;if(Si.isBuffered(e,n)?t=this.getAppendedFrag(n):Si.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&&C(t)&&C(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 Ys{static get version(){return"1.5.20"}static isMSESupported(){return xl()}static isSupported(){return gu()}static getMediaSource(){return bn()}static get Events(){return u}static get ErrorTypes(){return x}static get ErrorDetails(){return y}static get DefaultConfig(){return Ys.defaultConfig?Ys.defaultConfig:vl}static set DefaultConfig(e){Ys.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 jt,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,V(e.debug||!1,"Hls instance");const t=this.config=fu(Ys.DefaultConfig,e);this.userConfig=e,t.progressive&&hu(t);const{abrController:n,bufferController:r,capLevelController:i,errorController:s,fpsController:c}=t,p=new s(this),_=this.abrController=new n(this),D=this.bufferController=new r(this),F=this.capLevelController=new i(this),he=new c(this),Te=new Cr(this),we=new oi(this),Ie=t.contentSteeringController,ze=Ie?new Ie(this):null,ot=this.levelController=new pu(this,ze),Mt=new Oa(this),kt=new mu(this.config),mn=this.streamController=new Su(this,Mt,kt);F.setStreamController(mn),he.setStreamController(mn);const Zt=[Te,ot,mn];ze&&Zt.splice(1,0,ze),this.networkControllers=Zt;const Bn=[_,D,F,he,we,Mt];this.audioTrackController=this.createController(t.audioTrackController,Zt);const fn=t.audioStreamController;fn&&Zt.push(new fn(this,Mt,kt)),this.subtitleTrackController=this.createController(t.subtitleTrackController,Zt);const Wn=t.subtitleStreamController;Wn&&Zt.push(new Wn(this,Mt,kt)),this.createController(t.timelineController,Bn),kt.emeController=this.emeController=this.createController(t.emeController,Bn),this.cmcdController=this.createController(t.cmcdController,Bn),this.latencyController=this.createController(Ai,Bn),this.coreComponents=Bn,Zt.push(p);const Er=p.onErrorOut;typeof Er=="function"&&this.on(u.ERROR,Er,p)}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(b.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:x.OTHER_ERROR,details:y.INTERNAL_EXCEPTION,fatal:r,event:e,error:n}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){b.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){b.log("attachMedia"),this._media=e,this.trigger(u.MEDIA_ATTACHING,{media:e})}detachMedia(){b.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=Q.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,b.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){b.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(){b.log("stopLoad"),this.started=!1;for(let e=0;e<this.networkControllers.length&&(this.networkControllers[e].stopLoad(),!(this.started||!this.networkControllers));e++);}resumeBuffering(){b.log("resume buffering"),this.networkControllers.forEach(e=>{e.resumeBuffering&&e.resumeBuffering()})}pauseBuffering(){b.log("pause buffering"),this.networkControllers.forEach(e=>{e.pauseBuffering&&e.pauseBuffering()})}swapAudioCodec(){b.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){b.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){b.log(`set currentLevel:${e}`),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(e){b.log(`set nextLevel:${e}`),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(e){b.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){b.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){b.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&&(b.log(`set autoLevelCapping:${e}`),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(e){ei(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}}Ys.defaultConfig=void 0},16722:function(Gt,He,h){"use strict";h.d(He,{Z:function(){return pe}});const z=a=>typeof a=="object"&&a!=null&&a.nodeType===1,N=(a,C)=>(!C||a!=="hidden")&&a!=="visible"&&a!=="clip",Q=(a,C)=>{if(a.clientHeight<a.scrollHeight||a.clientWidth<a.scrollWidth){const O=getComputedStyle(a,null);return N(O.overflowY,C)||N(O.overflowX,C)||(m=>{const u=(x=>{if(!x.ownerDocument||!x.ownerDocument.defaultView)return null;try{return x.ownerDocument.defaultView.frameElement}catch(y){return null}})(m);return!!u&&(u.clientHeight<m.scrollHeight||u.clientWidth<m.scrollWidth)})(a)}return!1},ye=(a,C,O,m,u,x,y,L)=>x<a&&y>C||x>a&&y<C?0:x<=a&&L<=O||y>=C&&L>=O?x-a-m:y>C&&L<O||x<a&&L>O?y-C+u:0,U=a=>{const C=a.parentElement;return C==null?a.getRootNode().host||null:C},H=(a,C)=>{var O,m,u,x;if(typeof document=="undefined")return[];const{scrollMode:y,block:L,inline:te,boundary:B,skipOverflowHiddenElements:M}=C,W=typeof B=="function"?B:Ue=>Ue!==B;if(!z(a))throw new TypeError("Invalid target");const V=document.scrollingElement||document.documentElement,b=[];let T=a;for(;z(T)&&W(T);){if(T=U(T),T===V){b.push(T);break}T!=null&&T===document.body&&Q(T)&&!Q(document.documentElement)||T!=null&&Q(T,M)&&b.push(T)}const G=(m=(O=window.visualViewport)==null?void 0:O.width)!=null?m:innerWidth,j=(x=(u=window.visualViewport)==null?void 0:u.height)!=null?x:innerHeight,{scrollX:be,scrollY:Ee}=window,{height:xe,width:ce,top:ee,right:Z,bottom:me,left:P}=a.getBoundingClientRect(),{top:se,right:X,bottom:v,left:E}=(Ue=>{const ke=window.getComputedStyle(Ue);return{top:parseFloat(ke.scrollMarginTop)||0,right:parseFloat(ke.scrollMarginRight)||0,bottom:parseFloat(ke.scrollMarginBottom)||0,left:parseFloat(ke.scrollMarginLeft)||0}})(a);let K=L==="start"||L==="nearest"?ee-se:L==="end"?me+v:ee+xe/2-se+v,de=te==="center"?P+ce/2-E+X:te==="end"?Z+X:P-E;const Ne=[];for(let Ue=0;Ue<b.length;Ue++){const ke=b[Ue],{height:Ve,width:ht,top:pt,right:st,bottom:Ft,left:Yt}=ke.getBoundingClientRect();if(y==="if-needed"&&ee>=0&&P>=0&&me<=j&&Z<=G&&(ke===V&&!Q(ke)||ee>=pt&&me<=Ft&&P>=Yt&&Z<=st))return Ne;const en=getComputedStyle(ke),Ut=parseInt(en.borderLeftWidth,10),ut=parseInt(en.borderTopWidth,10),Et=parseInt(en.borderRightWidth,10),oe=parseInt(en.borderBottomWidth,10);let ve=0,ie=0;const Y="offsetWidth"in ke?ke.offsetWidth-ke.clientWidth-Ut-Et:0,Ae="offsetHeight"in ke?ke.offsetHeight-ke.clientHeight-ut-oe:0,$="offsetWidth"in ke?ke.offsetWidth===0?0:ht/ke.offsetWidth:0,R="offsetHeight"in ke?ke.offsetHeight===0?0:Ve/ke.offsetHeight:0;if(V===ke)ve=L==="start"?K:L==="end"?K-j:L==="nearest"?ye(Ee,Ee+j,j,ut,oe,Ee+K,Ee+K+xe,xe):K-j/2,ie=te==="start"?de:te==="center"?de-G/2:te==="end"?de-G:ye(be,be+G,G,Ut,Et,be+de,be+de+ce,ce),ve=Math.max(0,ve+Ee),ie=Math.max(0,ie+be);else{ve=L==="start"?K-pt-ut:L==="end"?K-Ft+oe+Ae:L==="nearest"?ye(pt,Ft,Ve,ut,oe+Ae,K,K+xe,xe):K-(pt+Ve/2)+Ae/2,ie=te==="start"?de-Yt-Ut:te==="center"?de-(Yt+ht/2)+Y/2:te==="end"?de-st+Et+Y:ye(Yt,st,ht,Ut,Et+Y,de,de+ce,ce);const{scrollLeft:I,scrollTop:le}=ke;ve=R===0?0:Math.max(0,Math.min(le+ve/R,ke.scrollHeight-Ve/R+Ae)),ie=$===0?0:Math.max(0,Math.min(I+ie/$,ke.scrollWidth-ht/$+Y)),K+=le-ve,de+=I-ie}Ne.push({el:ke,top:ve,left:ie})}return Ne},S=a=>a===!1?{block:"end",inline:"nearest"}:(C=>C===Object(C)&&Object.keys(C).length!==0)(a)?a:{block:"start",inline:"nearest"};function pe(a,C){if(!a.isConnected||!(u=>{let x=u;for(;x&&x.parentNode;){if(x.parentNode===document)return!0;x=x.parentNode instanceof ShadowRoot?x.parentNode.host:x.parentNode}return!1})(a))return;const O=(u=>{const x=window.getComputedStyle(u);return{top:parseFloat(x.scrollMarginTop)||0,right:parseFloat(x.scrollMarginRight)||0,bottom:parseFloat(x.scrollMarginBottom)||0,left:parseFloat(x.scrollMarginLeft)||0}})(a);if((u=>typeof u=="object"&&typeof u.behavior=="function")(C))return C.behavior(H(a,C));const m=typeof C=="boolean"||C==null?void 0:C.behavior;for(const{el:u,top:x,left:y}of H(a,S(C))){const L=x-O.top+O.bottom,te=y-O.left+O.right;u.scroll({top:L,left:te,behavior:m})}}}}]);
}());