promptfoo 0.35.1 → 0.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist/package.json +1 -1
  2. package/dist/src/constants.d.ts +3 -0
  3. package/dist/src/constants.d.ts.map +1 -0
  4. package/dist/src/constants.js +12 -0
  5. package/dist/src/constants.js.map +1 -0
  6. package/dist/src/feedback.d.ts.map +1 -1
  7. package/dist/src/feedback.js +2 -1
  8. package/dist/src/feedback.js.map +1 -1
  9. package/dist/src/index.js +1 -1
  10. package/dist/src/index.js.map +1 -1
  11. package/dist/src/main.js +155 -89
  12. package/dist/src/main.js.map +1 -1
  13. package/dist/src/providers/azureopenai.d.ts +5 -0
  14. package/dist/src/providers/azureopenai.d.ts.map +1 -1
  15. package/dist/src/providers/azureopenai.js +8 -4
  16. package/dist/src/providers/azureopenai.js.map +1 -1
  17. package/dist/src/share.d.ts.map +1 -1
  18. package/dist/src/share.js +5 -2
  19. package/dist/src/share.js.map +1 -1
  20. package/dist/src/testCases.d.ts +10 -1
  21. package/dist/src/testCases.d.ts.map +1 -1
  22. package/dist/src/testCases.js +100 -1
  23. package/dist/src/testCases.js.map +1 -1
  24. package/dist/src/types.d.ts +5 -1
  25. package/dist/src/types.d.ts.map +1 -1
  26. package/dist/src/util.d.ts +3 -1
  27. package/dist/src/util.d.ts.map +1 -1
  28. package/dist/src/util.js +9 -1
  29. package/dist/src/util.js.map +1 -1
  30. package/dist/src/web/nextui/404/index.html +1 -1
  31. package/dist/src/web/nextui/404.html +1 -1
  32. package/dist/src/web/nextui/_next/static/chunks/{376-a39927cc33e4fa4c.js → 376-1c0d6e6983c73fe2.js} +1 -1
  33. package/dist/src/web/nextui/_next/static/chunks/{396-fbb80808f0f5faf9.js → 445-3ef592231331d9ed.js} +1 -1
  34. package/dist/src/web/nextui/_next/static/chunks/782-04f667f750859e43.js +37 -0
  35. package/dist/src/web/nextui/_next/static/chunks/952-41ca99945f156cbf.js +1 -0
  36. package/dist/src/web/nextui/_next/static/chunks/app/eval/[id]/{page-7fff0bfff35032c6.js → page-8875bf3354bef591.js} +1 -1
  37. package/dist/src/web/nextui/_next/static/chunks/app/eval/page-5a7e2b8bc8f37780.js +1 -0
  38. package/dist/src/web/nextui/_next/static/chunks/app/layout-492760d669ed6dd7.js +1 -0
  39. package/dist/src/web/nextui/_next/static/chunks/app/setup/page-6b4f7c854be99fc9.js +1 -0
  40. package/dist/src/web/nextui/_next/static/chunks/{main-b81070c77c77982d.js → main-8674b1b080b54762.js} +1 -1
  41. package/dist/src/web/nextui/_next/static/chunks/webpack-e7aa396ee7944e48.js +1 -0
  42. package/dist/src/web/nextui/_next/static/css/83c296e124c7293a.css +1 -0
  43. package/dist/src/web/nextui/_next/static/css/{97987f58984b220b.css → e14a0dd8058bc3be.css} +1 -1
  44. package/dist/src/web/nextui/_next/static/css/{5cdfd82118ad2424.css → e6c7df5aef93b247.css} +1 -1
  45. package/dist/src/web/nextui/_next/static/media/03b685511c0eaac3-s.woff2 +0 -0
  46. package/dist/src/web/nextui/_next/static/media/04fe87c30c4f76ea-s.woff2 +0 -0
  47. package/dist/src/web/nextui/_next/static/media/101c7b68f2d8b610-s.woff2 +0 -0
  48. package/dist/src/web/nextui/_next/static/media/13259ce60de2aa3e-s.woff2 +0 -0
  49. package/dist/src/web/nextui/_next/static/media/1e8103c5d17beb1d-s.woff2 +0 -0
  50. package/dist/src/web/nextui/_next/static/media/388fb79562c9fc54-s.woff2 +0 -0
  51. package/dist/src/web/nextui/_next/static/media/3a04115668d8070d-s.p.woff2 +0 -0
  52. package/dist/src/web/nextui/_next/static/media/3a18fc8da1cdcd01-s.p.woff2 +0 -0
  53. package/dist/src/web/nextui/_next/static/media/5f4dfe83faee04f1-s.woff2 +0 -0
  54. package/dist/src/web/nextui/_next/static/media/67e05ba3467b9f4d-s.woff2 +0 -0
  55. package/dist/src/web/nextui/_next/static/media/699512af39861afa-s.p.woff2 +0 -0
  56. package/dist/src/web/nextui/_next/static/media/79015435f1a55eef-s.woff2 +0 -0
  57. package/dist/src/web/nextui/_next/static/media/91a88e0c5dd21dfa-s.woff2 +0 -0
  58. package/dist/src/web/nextui/_next/static/media/9b67ab375515cd6f-s.woff2 +0 -0
  59. package/dist/src/web/nextui/_next/static/media/9cf7d128be063d32-s.woff2 +0 -0
  60. package/dist/src/web/nextui/_next/static/media/a3c201c07e8eb753-s.woff2 +0 -0
  61. package/dist/src/web/nextui/_next/static/media/b6db722c6886c2cd-s.woff2 +0 -0
  62. package/dist/src/web/nextui/_next/static/media/daa8cca6b52a70fa-s.woff2 +0 -0
  63. package/dist/src/web/nextui/_next/static/media/e195dd2ded485df3-s.woff2 +0 -0
  64. package/dist/src/web/nextui/_next/static/media/e35c7314ac518ddc-s.woff2 +0 -0
  65. package/dist/src/web/nextui/_next/static/media/ee7e17a7bdd8636b-s.woff2 +0 -0
  66. package/dist/src/web/nextui/auth/login/index.html +1 -1
  67. package/dist/src/web/nextui/auth/login/index.txt +14 -11
  68. package/dist/src/web/nextui/auth/signup/index.html +1 -1
  69. package/dist/src/web/nextui/auth/signup/index.txt +14 -11
  70. package/dist/src/web/nextui/datasets/index.html +1 -1
  71. package/dist/src/web/nextui/datasets/index.txt +14 -11
  72. package/dist/src/web/nextui/eval/index.html +1 -1
  73. package/dist/src/web/nextui/eval/index.txt +16 -13
  74. package/dist/src/web/nextui/index.html +1 -1
  75. package/dist/src/web/nextui/index.txt +15 -12
  76. package/dist/src/web/nextui/prompts/index.html +1 -1
  77. package/dist/src/web/nextui/prompts/index.txt +14 -11
  78. package/dist/src/web/nextui/setup/index.html +2 -2
  79. package/dist/src/web/nextui/setup/index.txt +16 -13
  80. package/dist/src/web/server.d.ts.map +1 -1
  81. package/dist/src/web/server.js +15 -3
  82. package/dist/src/web/server.js.map +1 -1
  83. package/package.json +1 -1
  84. package/dist/src/web/nextui/_next/static/chunks/237-aa412c3c913a56dd.js +0 -37
  85. package/dist/src/web/nextui/_next/static/chunks/729-aa603ea2d6bdca0a.js +0 -1
  86. package/dist/src/web/nextui/_next/static/chunks/app/eval/page-e0eccb898774840e.js +0 -1
  87. package/dist/src/web/nextui/_next/static/chunks/app/layout-ba6ec844d4da825e.js +0 -1
  88. package/dist/src/web/nextui/_next/static/chunks/app/setup/page-af09a6c20748a4ee.js +0 -1
  89. package/dist/src/web/nextui/_next/static/chunks/webpack-ca74e230adf25371.js +0 -1
  90. package/dist/src/web/nextui/_next/static/css/50ba86fc4d789db8.css +0 -1
  91. /package/dist/src/web/nextui/_next/static/{ASnrNbV9r4Fouf8Mm1iNx → mxkRaSA6iUTYeSCbLQn--}/_buildManifest.js +0 -0
  92. /package/dist/src/web/nextui/_next/static/{ASnrNbV9r4Fouf8Mm1iNx → mxkRaSA6iUTYeSCbLQn--}/_ssgManifest.js +0 -0
@@ -0,0 +1,37 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[782],{9396:function(e,t,n){"use strict";var r=n(6314);t.Z=void 0;var i=r(n(984)),o=n(7437),l=(0,i.default)((0,o.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");t.Z=l},4719:function(e,t,n){"use strict";var r=n(6314);t.Z=void 0;var i=r(n(984)),o=n(7437),l=(0,i.default)((0,o.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");t.Z=l},3533:function(e,t,n){"use strict";var r=n(6314);t.Z=void 0;var i=r(n(984)),o=n(7437),l=(0,i.default)((0,o.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");t.Z=l},2481:function(e,t,n){"use strict";var r=n(6314);t.Z=void 0;var i=r(n(984)),o=n(7437),l=(0,i.default)((0,o.jsx)("path",{d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"}),"Download");t.Z=l},7175:function(e,t,n){"use strict";var r=n(6314);t.Z=void 0;var i=r(n(984)),o=n(7437),l=(0,i.default)((0,o.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4 6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"}),"FileCopy");t.Z=l},5391:function(e,t,n){"use strict";var r=n(6314);t.Z=void 0;var i=r(n(984)),o=n(7437),l=(0,i.default)((0,o.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"OpenInNew");t.Z=l},2467:function(e,t,n){"use strict";var r=n(6314);t.Z=void 0;var i=r(n(984)),o=n(7437),l=(0,i.default)((0,o.jsx)("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z"}),"Share");t.Z=l},9605:function(e,t,n){"use strict";var r=n(6314);t.Z=void 0;var i=r(n(984)),o=n(7437),l=(0,i.default)((0,o.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility");t.Z=l},7760:function(e,t,n){"use strict";n.d(t,{Z:function(){return B}});var r=n(791),i=n(3428),o=n(2265),l=n(7042),a=n(5600),s=n(9975),u=n(8702),c=n(5843),f=n(3292),d=n(9592),h=n(6659),p=n(6520),g=n(5702);function m(e){return(0,g.Z)("PrivateSwitchBase",e)}(0,p.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var y=n(7437);let b=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],v=e=>{let{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${(0,u.Z)(i)}`],input:["input"]};return(0,a.Z)(o,m,t)},x=(0,c.ZP)(h.Z)(({ownerState:e})=>(0,i.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12})),w=(0,c.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),k=o.forwardRef(function(e,t){let{autoFocus:n,checked:o,checkedIcon:a,className:s,defaultChecked:u,disabled:c,disableFocusRipple:h=!1,edge:p=!1,icon:g,id:m,inputProps:k,inputRef:S,name:C,onBlur:R,onChange:E,onFocus:A,readOnly:M,required:P=!1,tabIndex:O,type:T,value:I}=e,_=(0,r.Z)(e,b),[L,F]=(0,f.Z)({controlled:o,default:!!u,name:"SwitchBase",state:"checked"}),z=(0,d.Z)(),B=c;z&&void 0===B&&(B=z.disabled);let D="checkbox"===T||"radio"===T,N=(0,i.Z)({},e,{checked:L,disabled:B,disableFocusRipple:h,edge:p}),j=v(N);return(0,y.jsxs)(x,(0,i.Z)({component:"span",className:(0,l.Z)(j.root,s),centerRipple:!0,focusRipple:!h,disabled:B,tabIndex:null,role:void 0,onFocus:e=>{A&&A(e),z&&z.onFocus&&z.onFocus(e)},onBlur:e=>{R&&R(e),z&&z.onBlur&&z.onBlur(e)},ownerState:N,ref:t},_,{children:[(0,y.jsx)(w,(0,i.Z)({autoFocus:n,checked:o,defaultChecked:u,className:j.input,disabled:B,id:D?m:void 0,name:C,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;let t=e.target.checked;F(t),E&&E(e,t)},readOnly:M,ref:S,required:P,ownerState:N,tabIndex:O,type:T},"checkbox"===T&&void 0===I?{}:{value:I},k)),L?a:g]}))});var S=n(9782),C=(0,S.Z)((0,y.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),R=(0,S.Z)((0,y.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),E=(0,S.Z)((0,y.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),A=n(7927);function M(e){return(0,g.Z)("MuiCheckbox",e)}let P=(0,p.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),O=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],T=e=>{let{classes:t,indeterminate:n,color:r,size:o}=e,l={root:["root",n&&"indeterminate",`color${(0,u.Z)(r)}`,`size${(0,u.Z)(o)}`]},s=(0,a.Z)(l,M,t);return(0,i.Z)({},t,s)},I=(0,c.ZP)(k,{shouldForwardProp:e=>(0,c.FO)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t[`color${(0,u.Z)(n.color)}`]]}})(({theme:e,ownerState:t})=>(0,i.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${P.checked}, &.${P.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${P.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),_=(0,y.jsx)(R,{}),L=(0,y.jsx)(C,{}),F=(0,y.jsx)(E,{}),z=o.forwardRef(function(e,t){var n,a;let s=(0,A.Z)({props:e,name:"MuiCheckbox"}),{checkedIcon:u=_,color:c="primary",icon:f=L,indeterminate:d=!1,indeterminateIcon:h=F,inputProps:p,size:g="medium",className:m}=s,b=(0,r.Z)(s,O),v=d?h:f,x=d?h:u,w=(0,i.Z)({},s,{color:c,indeterminate:d,size:g}),k=T(w);return(0,y.jsx)(I,(0,i.Z)({type:"checkbox",inputProps:(0,i.Z)({"data-indeterminate":d},p),icon:o.cloneElement(v,{fontSize:null!=(n=v.props.fontSize)?n:g}),checkedIcon:o.cloneElement(x,{fontSize:null!=(a=x.props.fontSize)?a:g}),ownerState:w,ref:t,className:(0,l.Z)(k.root,m)},b,{classes:k}))});var B=z},182:function(e,t,n){"use strict";n.d(t,{Z:function(){return R}});var r=n(791),i=n(3428),o=n(2265),l=n(7042),a=n(5600),s=n(9592),u=n(3457),c=n(3226),f=n(8702),d=n(5843),h=n(7927),p=n(6520),g=n(5702);function m(e){return(0,g.Z)("MuiFormControlLabel",e)}let y=(0,p.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);var b=n(4379),v=n(7437);let x=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],w=e=>{let{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,l={root:["root",n&&"disabled",`labelPlacement${(0,f.Z)(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return(0,a.Z)(l,m,t)},k=(0,d.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${y.label}`]:t.label},t.root,t[`labelPlacement${(0,f.Z)(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>(0,i.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${y.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${y.label}`]:{[`&.${y.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),S=(0,d.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${y.error}`]:{color:(e.vars||e).palette.error.main}})),C=o.forwardRef(function(e,t){var n,a;let f=(0,h.Z)({props:e,name:"MuiFormControlLabel"}),{className:d,componentsProps:p={},control:g,disabled:m,disableTypography:y,label:C,labelPlacement:R="end",required:E,slotProps:A={}}=f,M=(0,r.Z)(f,x),P=(0,s.Z)(),O=null!=(n=null!=m?m:g.props.disabled)?n:null==P?void 0:P.disabled,T=null!=E?E:g.props.required,I={disabled:O,required:T};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===g.props[e]&&void 0!==f[e]&&(I[e]=f[e])});let _=(0,b.Z)({props:f,muiFormControl:P,states:["error"]}),L=(0,i.Z)({},f,{disabled:O,labelPlacement:R,required:T,error:_.error}),F=w(L),z=null!=(a=A.typography)?a:p.typography,B=C;return null==B||B.type===c.Z||y||(B=(0,v.jsx)(c.Z,(0,i.Z)({component:"span"},z,{className:(0,l.Z)(F.label,null==z?void 0:z.className),children:B}))),(0,v.jsxs)(k,(0,i.Z)({className:(0,l.Z)(F.root,d),ownerState:L,ref:t},M,{children:[o.cloneElement(g,I),T?(0,v.jsxs)(u.Z,{direction:"row",alignItems:"center",children:[B,(0,v.jsxs)(S,{ownerState:L,"aria-hidden":!0,className:F.asterisk,children:[" ","*"]})]}):B]}))});var R=C},8212:function(e,t,n){"use strict";var r=n(791),i=n(3428),o=n(2265),l=n(7042),a=n(5600),s=n(3226),u=n(7820),c=n(7927),f=n(5843),d=n(9660),h=n(7437);let p=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],g=e=>{let{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return(0,a.Z)({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},d.L,t)},m=(0,f.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${d.Z.primary}`]:t.primary},{[`& .${d.Z.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>(0,i.Z)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),y=o.forwardRef(function(e,t){let n=(0,c.Z)({props:e,name:"MuiListItemText"}),{children:a,className:f,disableTypography:d=!1,inset:y=!1,primary:b,primaryTypographyProps:v,secondary:x,secondaryTypographyProps:w}=n,k=(0,r.Z)(n,p),{dense:S}=o.useContext(u.Z),C=null!=b?b:a,R=x,E=(0,i.Z)({},n,{disableTypography:d,inset:y,primary:!!C,secondary:!!R,dense:S}),A=g(E);return null==C||C.type===s.Z||d||(C=(0,h.jsx)(s.Z,(0,i.Z)({variant:S?"body2":"body1",className:A.primary,component:null!=v&&v.variant?void 0:"span",display:"block"},v,{children:C}))),null==R||R.type===s.Z||d||(R=(0,h.jsx)(s.Z,(0,i.Z)({variant:"body2",className:A.secondary,color:"text.secondary",display:"block"},w,{children:R}))),(0,h.jsxs)(m,(0,i.Z)({className:(0,l.Z)(A.root,f),ownerState:E,ref:t},k,{children:[C,R]}))});t.Z=y},9660:function(e,t,n){"use strict";n.d(t,{L:function(){return o}});var r=n(6520),i=n(5702);function o(e){return(0,i.Z)("MuiListItemText",e)}let l=(0,r.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);t.Z=l},5507:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(791),i=n(3428),o=n(2265),l=n(7042),a=n(5600),s=n(9975),u=n(5843),c=n(7927),f=n(7820),d=n(6659),h=n(8519),p=n(7663),g=n(6520);let m=(0,g.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),y=(0,g.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);var b=n(9660),v=n(5702);function x(e){return(0,v.Z)("MuiMenuItem",e)}let w=(0,g.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var k=n(7437);let S=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],C=e=>{let{disabled:t,dense:n,divider:r,disableGutters:o,selected:l,classes:s}=e,u=(0,a.Z)({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",l&&"selected"]},x,s);return(0,i.Z)({},s,u)},R=(0,u.ZP)(d.Z,{shouldForwardProp:e=>(0,u.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>(0,i.Z)({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${w.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${w.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,s.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${w.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,s.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${w.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${w.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${m.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${m.inset}`]:{marginLeft:52},[`& .${b.Z.root}`]:{marginTop:0,marginBottom:0},[`& .${b.Z.inset}`]:{paddingLeft:36},[`& .${y.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,i.Z)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${y.root} svg`]:{fontSize:"1.25rem"}}))),E=o.forwardRef(function(e,t){let n;let a=(0,c.Z)({props:e,name:"MuiMenuItem"}),{autoFocus:s=!1,component:u="li",dense:d=!1,divider:g=!1,disableGutters:m=!1,focusVisibleClassName:y,role:b="menuitem",tabIndex:v,className:x}=a,w=(0,r.Z)(a,S),E=o.useContext(f.Z),A=o.useMemo(()=>({dense:d||E.dense||!1,disableGutters:m}),[E.dense,d,m]),M=o.useRef(null);(0,h.Z)(()=>{s&&M.current&&M.current.focus()},[s]);let P=(0,i.Z)({},a,{dense:A.dense,divider:g,disableGutters:m}),O=C(a),T=(0,p.Z)(M,t);return a.disabled||(n=void 0!==v?v:-1),(0,k.jsx)(f.Z.Provider,{value:A,children:(0,k.jsx)(R,(0,i.Z)({ref:T,role:b,tabIndex:n,component:u,focusVisibleClassName:(0,l.Z)(O.focusVisible,y),className:(0,l.Z)(O.root,x)},w,{ownerState:P,classes:O}))})});var A=E},33:function(e,t,n){"use strict";let r;n.d(t,{ZP:function(){return Q}});var i=n(791),o=n(3428),l=n(2265),a=n(7042),s=n(5600),u=n(7282),c=n(3655),f=n(6278),d=n(4625),h=n(8495),p=n(5137),g=n(1091),m=n(8136),y={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function b(e,t){return e-t}function v(e,t,n){return null==e?t:Math.min(Math.max(t,e),n)}function x(e,t){var n;let{index:r}=null!=(n=e.reduce((e,n,r)=>{let i=Math.abs(t-n);return null===e||i<e.distance||i===e.distance?{distance:i,index:r}:e},null))?n:{};return r}function w(e,t){if(void 0!==t.current&&e.changedTouches){for(let n=0;n<e.changedTouches.length;n+=1){let r=e.changedTouches[n];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function k({values:e,newValue:t,index:n}){let r=e.slice();return r[n]=t,r.sort(b)}function S({sliderRef:e,activeIndex:t,setActive:n}){var r,i,o;let l=(0,f.Z)(e.current);null!=(r=e.current)&&r.contains(l.activeElement)&&Number(null==l||null==(i=l.activeElement)?void 0:i.getAttribute("data-index"))===t||null==(o=e.current)||o.querySelector(`[type="range"][data-index="${t}"]`).focus(),n&&n(t)}function C(e,t){return"number"==typeof e&&"number"==typeof t?e===t:"object"==typeof e&&"object"==typeof t&&function(e,t,n=(e,t)=>e===t){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}(e,t)}let R={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},E=e=>e;function A(){return void 0===r&&(r="undefined"==typeof CSS||"function"!=typeof CSS.supports||CSS.supports("touch-action","none")),r}var M=n(9975),P=n(7927),O=n(5843),T=n(1101),I=e=>!e||!(0,c.X)(e),_=n(8702),L=n(6520),F=n(5702);function z(e){return(0,F.Z)("MuiSlider",e)}let B=(0,L.Z)("MuiSlider",["root","active","colorPrimary","colorSecondary","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);var D=n(7437);let N=e=>{let{open:t}=e,n={offset:(0,a.Z)(t&&B.valueLabelOpen),circle:B.valueLabelCircle,label:B.valueLabelLabel};return n},j=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function V(e){return e}let H=(0,O.ZP)("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`color${(0,_.Z)(n.color)}`],"medium"!==n.size&&t[`size${(0,_.Z)(n.size)}`],n.marked&&t.marked,"vertical"===n.orientation&&t.vertical,"inverted"===n.track&&t.trackInverted,!1===n.track&&t.trackFalse]}})(({theme:e,ownerState:t})=>(0,o.Z)({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},"horizontal"===t.orientation&&(0,o.Z)({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},"small"===t.size&&{height:2},t.marked&&{marginBottom:20}),"vertical"===t.orientation&&(0,o.Z)({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},"small"===t.size&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${B.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${B.dragging}`]:{[`& .${B.thumb}, & .${B.track}`]:{transition:"none"}}})),Z=(0,O.ZP)("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>(0,o.Z)({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},"horizontal"===e.orientation&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===e.orientation&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},"inverted"===e.track&&{opacity:1})),U=(0,O.ZP)("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?(0,M.$n)(e.palette[t.color].main,.62):(0,M._j)(e.palette[t.color].main,.5);return(0,o.Z)({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},"small"===t.size&&{border:"none"},"horizontal"===t.orientation&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===t.orientation&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},!1===t.track&&{display:"none"},"inverted"===t.track&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),q=(0,O.ZP)("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.thumb,t[`thumbColor${(0,_.Z)(n.color)}`],"medium"!==n.size&&t[`thumbSize${(0,_.Z)(n.size)}`]]}})(({theme:e,ownerState:t})=>(0,o.Z)({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},"small"===t.size&&{width:12,height:12},"horizontal"===t.orientation&&{top:"50%",transform:"translate(-50%, -50%)"},"vertical"===t.orientation&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":(0,o.Z)({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"small"===t.size&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${B.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:(0,M.Fq)(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${B.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:(0,M.Fq)(e.palette[t.color].main,.16)}`},[`&.${B.disabled}`]:{"&:hover":{boxShadow:"none"}}})),$=(0,O.ZP)(function(e){let{children:t,className:n,value:r}=e,i=N(e);return t?l.cloneElement(t,{className:(0,a.Z)(t.props.className)},(0,D.jsxs)(l.Fragment,{children:[t.props.children,(0,D.jsx)("span",{className:(0,a.Z)(i.offset,n),"aria-hidden":!0,children:(0,D.jsx)("span",{className:i.circle,children:(0,D.jsx)("span",{className:i.label,children:r})})})]})):null},{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>(0,o.Z)({[`&.${B.valueLabelOpen}`]:{transform:`${"vertical"===t.orientation?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${"vertical"===t.orientation?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},"horizontal"===t.orientation&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},"vertical"===t.orientation&&{right:"small"===t.size?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},"small"===t.size&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),G=(0,O.ZP)("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>(0,O.Dz)(e)&&"markActive"!==e,overridesResolver:(e,t)=>{let{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>(0,o.Z)({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},"horizontal"===t.orientation&&{top:"50%",transform:"translate(-1px, -50%)"},"vertical"===t.orientation&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),W=(0,O.ZP)("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>(0,O.Dz)(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>(0,o.Z)({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},"horizontal"===t.orientation&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},"vertical"===t.orientation&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),Y=e=>{let{disabled:t,dragging:n,marked:r,orientation:i,track:o,classes:l,color:a,size:u}=e,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked","vertical"===i&&"vertical","inverted"===o&&"trackInverted",!1===o&&"trackFalse",a&&`color${(0,_.Z)(a)}`,u&&`size${(0,_.Z)(u)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",u&&`thumbSize${(0,_.Z)(u)}`,a&&`thumbColor${(0,_.Z)(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return(0,s.Z)(c,z,l)},X=({children:e})=>e,K=l.forwardRef(function(e,t){var n,r,s,M,O,_,L,F,z,B,N,K,Q,J,ee,et,en,er,ei,eo,el,ea,es,eu;let ec=(0,P.Z)({props:e,name:"MuiSlider"}),ef=(0,T.Z)(),ed="rtl"===ef.direction,{"aria-label":eh,"aria-valuetext":ep,"aria-labelledby":eg,component:em="span",components:ey={},componentsProps:eb={},color:ev="primary",classes:ex,className:ew,disableSwap:ek=!1,disabled:eS=!1,getAriaLabel:eC,getAriaValueText:eR,marks:eE=!1,max:eA=100,min:eM=0,orientation:eP="horizontal",size:eO="medium",step:eT=1,scale:eI=V,slotProps:e_,slots:eL,track:eF="normal",valueLabelDisplay:ez="off",valueLabelFormat:eB=V}=ec,eD=(0,i.Z)(ec,j),eN=(0,o.Z)({},ec,{isRtl:ed,max:eA,min:eM,classes:ex,disabled:eS,disableSwap:ek,orientation:eP,marks:eE,color:ev,size:eO,step:eT,scale:eI,track:eF,valueLabelDisplay:ez,valueLabelFormat:eB}),{axisProps:ej,getRootProps:eV,getHiddenInputProps:eH,getThumbProps:eZ,open:eU,active:eq,axis:e$,focusedThumbIndex:eG,range:eW,dragging:eY,marks:eX,values:eK,trackOffset:eQ,trackLeap:eJ,getThumbStyle:e0}=function(e){let{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:a=!1,marks:s=!1,max:u=100,min:c=0,name:M,onChange:P,onChangeCommitted:O,orientation:T="horizontal",rootRef:I,scale:_=E,step:L=1,tabIndex:F,value:z}=e,B=l.useRef(),[D,N]=l.useState(-1),[j,V]=l.useState(-1),[H,Z]=l.useState(!1),U=l.useRef(0),[q,$]=(0,d.Z)({controlled:z,default:null!=n?n:c,name:"Slider"}),G=P&&((e,t,n)=>{let r=e.nativeEvent||e,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:t,name:M}}),P(i,t,n)}),W=Array.isArray(q),Y=W?q.slice().sort(b):[q];Y=Y.map(e=>v(e,c,u));let X=!0===s&&null!==L?[...Array(Math.floor((u-c)/L)+1)].map((e,t)=>({value:c+L*t})):s||[],K=X.map(e=>e.value),{isFocusVisibleRef:Q,onBlur:J,onFocus:ee,ref:et}=(0,h.Z)(),[en,er]=l.useState(-1),ei=l.useRef(),eo=(0,p.Z)(et,ei),el=(0,p.Z)(I,eo),ea=e=>t=>{var n;let r=Number(t.currentTarget.getAttribute("data-index"));ee(t),!0===Q.current&&er(r),V(r),null==e||null==(n=e.onFocus)||n.call(e,t)},es=e=>t=>{var n;J(t),!1===Q.current&&er(-1),V(-1),null==e||null==(n=e.onBlur)||n.call(e,t)};(0,g.Z)(()=>{if(r&&ei.current.contains(document.activeElement)){var e;null==(e=document.activeElement)||e.blur()}},[r]),r&&-1!==D&&N(-1),r&&-1!==en&&er(-1);let eu=e=>t=>{var n;null==(n=e.onChange)||n.call(e,t);let r=Number(t.currentTarget.getAttribute("data-index")),o=Y[r],l=K.indexOf(o),a=t.target.valueAsNumber;if(X&&null==L){let e=K[K.length-1];a=a>e?e:a<K[0]?K[0]:a<o?K[l-1]:K[l+1]}if(a=v(a,c,u),W){i&&(a=v(a,Y[r-1]||-1/0,Y[r+1]||1/0));let e=a;a=k({values:Y,newValue:a,index:r});let t=r;i||(t=a.indexOf(e)),S({sliderRef:ei,activeIndex:t})}$(a),er(r),G&&!C(a,q)&&G(t,a,r),O&&O(t,a)},ec=l.useRef(),ef=T;a&&"horizontal"===T&&(ef+="-reverse");let ed=({finger:e,move:t=!1})=>{let n,r;let{current:o}=ei,{width:l,height:a,bottom:s,left:f}=o.getBoundingClientRect();if(n=0===ef.indexOf("vertical")?(s-e.y)/a:(e.x-f)/l,-1!==ef.indexOf("-reverse")&&(n=1-n),r=(u-c)*n+c,L)r=function(e,t,n){let r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(function(e){if(1>Math.abs(e)){let t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}let t=e.toString().split(".")[1];return t?t.length:0}(t)))}(r,L,c);else{let e=x(K,r);r=K[e]}r=v(r,c,u);let d=0;if(W){d=t?ec.current:x(Y,r),i&&(r=v(r,Y[d-1]||-1/0,Y[d+1]||1/0));let e=r;r=k({values:Y,newValue:r,index:d}),i&&t||(d=r.indexOf(e),ec.current=d)}return{newValue:r,activeIndex:d}},eh=(0,m.Z)(e=>{let t=w(e,B);if(!t)return;if(U.current+=1,"mousemove"===e.type&&0===e.buttons){ep(e);return}let{newValue:n,activeIndex:r}=ed({finger:t,move:!0});S({sliderRef:ei,activeIndex:r,setActive:N}),$(n),!H&&U.current>2&&Z(!0),G&&!C(n,q)&&G(e,n,r)}),ep=(0,m.Z)(e=>{let t=w(e,B);if(Z(!1),!t)return;let{newValue:n}=ed({finger:t,move:!0});N(-1),"touchend"===e.type&&V(-1),O&&O(e,n),B.current=void 0,em()}),eg=(0,m.Z)(e=>{if(r)return;A()||e.preventDefault();let t=e.changedTouches[0];null!=t&&(B.current=t.identifier);let n=w(e,B);if(!1!==n){let{newValue:t,activeIndex:r}=ed({finger:n});S({sliderRef:ei,activeIndex:r,setActive:N}),$(t),G&&!C(t,q)&&G(e,t,r)}U.current=0;let i=(0,f.Z)(ei.current);i.addEventListener("touchmove",eh),i.addEventListener("touchend",ep)}),em=l.useCallback(()=>{let e=(0,f.Z)(ei.current);e.removeEventListener("mousemove",eh),e.removeEventListener("mouseup",ep),e.removeEventListener("touchmove",eh),e.removeEventListener("touchend",ep)},[ep,eh]);l.useEffect(()=>{let{current:e}=ei;return e.addEventListener("touchstart",eg,{passive:A()}),()=>{e.removeEventListener("touchstart",eg,{passive:A()}),em()}},[em,eg]),l.useEffect(()=>{r&&em()},[r,em]);let ey=e=>t=>{var n;if(null==(n=e.onMouseDown)||n.call(e,t),r||t.defaultPrevented||0!==t.button)return;t.preventDefault();let i=w(t,B);if(!1!==i){let{newValue:e,activeIndex:n}=ed({finger:i});S({sliderRef:ei,activeIndex:n,setActive:N}),$(e),G&&!C(e,q)&&G(t,e,n)}U.current=0;let o=(0,f.Z)(ei.current);o.addEventListener("mousemove",eh),o.addEventListener("mouseup",ep)},eb=((W?Y[0]:c)-c)*100/(u-c),ev=(Y[Y.length-1]-c)*100/(u-c)-eb,ex=e=>t=>{var n;null==(n=e.onMouseOver)||n.call(e,t);let r=Number(t.currentTarget.getAttribute("data-index"));V(r)},ew=e=>t=>{var n;null==(n=e.onMouseLeave)||n.call(e,t),V(-1)};return{active:D,axis:ef,axisProps:R,dragging:H,focusedThumbIndex:en,getHiddenInputProps:(n={})=>{var i;let l={onChange:eu(n||{}),onFocus:ea(n||{}),onBlur:es(n||{})},s=(0,o.Z)({},n,l);return(0,o.Z)({tabIndex:F,"aria-labelledby":t,"aria-orientation":T,"aria-valuemax":_(u),"aria-valuemin":_(c),name:M,type:"range",min:e.min,max:e.max,step:null===e.step&&e.marks?"any":null!=(i=e.step)?i:void 0,disabled:r},s,{style:(0,o.Z)({},y,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:(e={})=>{let t={onMouseDown:ey(e||{})},n=(0,o.Z)({},e,t);return(0,o.Z)({ref:el},n)},getThumbProps:(e={})=>{let t={onMouseOver:ex(e||{}),onMouseLeave:ew(e||{})};return(0,o.Z)({},e,t)},marks:X,open:j,range:W,rootRef:el,trackLeap:ev,trackOffset:eb,values:Y,getThumbStyle:e=>({pointerEvents:-1!==D&&D!==e?"none":void 0})}}((0,o.Z)({},eN,{rootRef:t}));eN.marked=eX.length>0&&eX.some(e=>e.label),eN.dragging=eY,eN.focusedThumbIndex=eG;let e1=Y(eN),e2=null!=(n=null!=(r=null==eL?void 0:eL.root)?r:ey.Root)?n:H,e5=null!=(s=null!=(M=null==eL?void 0:eL.rail)?M:ey.Rail)?s:Z,e4=null!=(O=null!=(_=null==eL?void 0:eL.track)?_:ey.Track)?O:U,e6=null!=(L=null!=(F=null==eL?void 0:eL.thumb)?F:ey.Thumb)?L:q,e3=null!=(z=null!=(B=null==eL?void 0:eL.valueLabel)?B:ey.ValueLabel)?z:$,e8=null!=(N=null!=(K=null==eL?void 0:eL.mark)?K:ey.Mark)?N:G,e9=null!=(Q=null!=(J=null==eL?void 0:eL.markLabel)?J:ey.MarkLabel)?Q:W,e7=null!=(ee=null!=(et=null==eL?void 0:eL.input)?et:ey.Input)?ee:"input",te=null!=(en=null==e_?void 0:e_.root)?en:eb.root,tt=null!=(er=null==e_?void 0:e_.rail)?er:eb.rail,tn=null!=(ei=null==e_?void 0:e_.track)?ei:eb.track,tr=null!=(eo=null==e_?void 0:e_.thumb)?eo:eb.thumb,ti=null!=(el=null==e_?void 0:e_.valueLabel)?el:eb.valueLabel,to=null!=(ea=null==e_?void 0:e_.mark)?ea:eb.mark,tl=null!=(es=null==e_?void 0:e_.markLabel)?es:eb.markLabel,ta=null!=(eu=null==e_?void 0:e_.input)?eu:eb.input,ts=(0,u.y)({elementType:e2,getSlotProps:eV,externalSlotProps:te,externalForwardedProps:eD,additionalProps:(0,o.Z)({},I(e2)&&{as:em}),ownerState:(0,o.Z)({},eN,null==te?void 0:te.ownerState),className:[e1.root,ew]}),tu=(0,u.y)({elementType:e5,externalSlotProps:tt,ownerState:eN,className:e1.rail}),tc=(0,u.y)({elementType:e4,externalSlotProps:tn,additionalProps:{style:(0,o.Z)({},ej[e$].offset(eQ),ej[e$].leap(eJ))},ownerState:(0,o.Z)({},eN,null==tn?void 0:tn.ownerState),className:e1.track}),tf=(0,u.y)({elementType:e6,getSlotProps:eZ,externalSlotProps:tr,ownerState:(0,o.Z)({},eN,null==tr?void 0:tr.ownerState),className:e1.thumb}),td=(0,u.y)({elementType:e3,externalSlotProps:ti,ownerState:(0,o.Z)({},eN,null==ti?void 0:ti.ownerState),className:e1.valueLabel}),th=(0,u.y)({elementType:e8,externalSlotProps:to,ownerState:eN,className:e1.mark}),tp=(0,u.y)({elementType:e9,externalSlotProps:tl,ownerState:eN,className:e1.markLabel}),tg=(0,u.y)({elementType:e7,getSlotProps:eH,externalSlotProps:ta,ownerState:eN});return(0,D.jsxs)(e2,(0,o.Z)({},ts,{children:[(0,D.jsx)(e5,(0,o.Z)({},tu)),(0,D.jsx)(e4,(0,o.Z)({},tc)),eX.filter(e=>e.value>=eM&&e.value<=eA).map((e,t)=>{let n;let r=(e.value-eM)*100/(eA-eM),i=ej[e$].offset(r);return n=!1===eF?-1!==eK.indexOf(e.value):"normal"===eF&&(eW?e.value>=eK[0]&&e.value<=eK[eK.length-1]:e.value<=eK[0])||"inverted"===eF&&(eW?e.value<=eK[0]||e.value>=eK[eK.length-1]:e.value>=eK[0]),(0,D.jsxs)(l.Fragment,{children:[(0,D.jsx)(e8,(0,o.Z)({"data-index":t},th,!(0,c.X)(e8)&&{markActive:n},{style:(0,o.Z)({},i,th.style),className:(0,a.Z)(th.className,n&&e1.markActive)})),null!=e.label?(0,D.jsx)(e9,(0,o.Z)({"aria-hidden":!0,"data-index":t},tp,!(0,c.X)(e9)&&{markLabelActive:n},{style:(0,o.Z)({},i,tp.style),className:(0,a.Z)(e1.markLabel,tp.className,n&&e1.markLabelActive),children:e.label})):null]},t)}),eK.map((e,t)=>{let n=(e-eM)*100/(eA-eM),r=ej[e$].offset(n),i="off"===ez?X:e3;return(0,D.jsx)(i,(0,o.Z)({},!(0,c.X)(i)&&{valueLabelFormat:eB,valueLabelDisplay:ez,value:"function"==typeof eB?eB(eI(e),t):eB,index:t,open:eU===t||eq===t||"on"===ez,disabled:eS},td,{children:(0,D.jsx)(e6,(0,o.Z)({"data-index":t},tf,{className:(0,a.Z)(e1.thumb,tf.className,eq===t&&e1.active,eG===t&&e1.focusVisible),style:(0,o.Z)({},r,e0(t),tf.style),children:(0,D.jsx)(e7,(0,o.Z)({"data-index":t,"aria-label":eC?eC(t):eh,"aria-valuenow":eI(e),"aria-labelledby":eg,"aria-valuetext":eR?eR(eI(e),t):ep,value:eK[t]},tg))}))}),t)})]}))});var Q=K},5379:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},l=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,f=arguments[0],d=1,h=arguments.length,p=!1;for("boolean"==typeof f&&(p=f,f=arguments[1]||{},d=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});d<h;++d)if(t=arguments[d],null!=t)for(n in t)r=s(f,n),f!==(i=s(t,n))&&(p&&i&&(l(i)||(u=o(i)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&l(r)?r:{},a(f,{name:n,newValue:e(p,c,i)})):void 0!==i&&a(f,{name:n,newValue:i}));return f}},7412:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g;function u(e){return e?e.replace(s,""):""}e.exports=function(e,s){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];s=s||{};var c=1,f=1;function d(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function h(){var e={line:c,column:f};return function(t){return t.position=new p(e),y(r),t}}function p(e){this.start=e,this.end={line:c,column:f},this.source=s.source}p.prototype.content=e;var g=[];function m(t){var n=Error(s.source+":"+c+":"+f+": "+t);if(n.reason=t,n.filename=s.source,n.line=c,n.column=f,n.source=e,s.silent)g.push(n);else throw n}function y(t){var n=t.exec(e);if(n){var r=n[0];return d(r),e=e.slice(r.length),n}}function b(e){var t;for(e=e||[];t=v();)!1!==t&&e.push(t);return e}function v(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return f+=2,d(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}return y(r),function(){var e,n=[];for(b(n);e=function(){var e=h(),n=y(i);if(n){if(v(),!y(o))return m("property missing ':'");var r=y(l),s=e({type:"declaration",property:u(n[0].replace(t,"")),value:r?u(r[0].replace(t,"")):""});return y(a),s}}();)!1!==e&&(n.push(e),b(n));return n}()}},263:function(e){!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,o=s(e),l=o[0],a=o[1],u=new i((l+a)*3/4-a),c=0,f=a>0?l-4:l;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===a&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===a&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],l=0,a=r-i;l<a;l+=16383)o.push(function(e,t,r){for(var i,o=[],l=t;l<r;l+=3)o.push(n[(i=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(255&e[l+2]))>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,l,l+16383>a?a:l+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,a=o.length;l<a;++l)n[l]=o[l],r[o.charCodeAt(l)]=l;function s(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},72:function(e,t,n){"use strict";/*!
2
+ * The buffer module from node.js, for the browser.
3
+ *
4
+ * @author Feross Aboukhadijeh <https://feross.org>
5
+ * @license MIT
6
+ */var r=n(675),i=n(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function l(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return s(e,t,n)}function s(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!a.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|h(e,t),r=l(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return f(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(P(e,ArrayBuffer)||e&&P(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(P(e,SharedArrayBuffer)||e&&P(e.buffer,SharedArrayBuffer)))return function(e,t,n){var r;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),a.prototype),r}(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return a.from(r,t,n);var i=function(e){if(a.isBuffer(e)){var t,n=0|d(e.length),r=l(n);return 0===r.length||e.copy(r,0,0,n),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?l(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),l(e<0?0:0|d(e))}function f(e){for(var t=e.length<0?0:0|d(e.length),n=l(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function d(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function h(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||P(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return R(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return A(e).length;default:if(i)return r?-1:R(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,n){var i,o,l=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=O[e[o]];return i}(this,t,n);case"utf8":case"utf-8":return b(this,t,n);case"ascii":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}(this,t,n);case"base64":return i=t,o=n,0===i&&o===this.length?r.fromByteArray(this):r.fromByteArray(this.slice(i,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}(this,t,n);default:if(l)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),l=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,i){var o;if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(o=n=+n)!=o&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=a.from(t,r)),a.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,l=1,a=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;l=2,a/=2,s/=2,n/=2}function u(e,t){return 1===l?e[t]:e.readUInt16BE(t*l)}if(i){var c=-1;for(o=n;o<a;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===s)return c*l}else -1!==c&&(o-=o-c),c=-1}else for(n+s>a&&(n=a-s),o=n;o>=0;o--){for(var f=!0,d=0;d<s;d++)if(u(e,o+d)!==u(t,d)){f=!1;break}if(f)return o}return -1}function b(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,l,a,s,u=e[i],c=null,f=u>239?4:u>223?3:u>191?2:1;if(i+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(s=(31&u)<<6|63&o)>127&&(c=s);break;case 3:o=e[i+1],l=e[i+2],(192&o)==128&&(192&l)==128&&(s=(15&u)<<12|(63&o)<<6|63&l)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:o=e[i+1],l=e[i+2],a=e[i+3],(192&o)==128&&(192&l)==128&&(192&a)==128&&(s=(15&u)<<18|(63&o)<<12|(63&l)<<6|63&a)>65535&&s<1114112&&(c=s)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function v(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function x(e,t,n,r,i,o){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function w(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function k(e,t,n,r,o){return t=+t,n>>>=0,o||w(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function S(e,t,n,r,o){return t=+t,n>>>=0,o||w(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.Buffer=a,t.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,n){return s(e,t,n)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,n){return(u(e),e<=0)?l(e):void 0!==t?"string"==typeof n?l(e).fill(t,n):l(e).fill(t):l(e)},a.allocUnsafe=function(e){return c(e)},a.allocUnsafeSlow=function(e){return c(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(P(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),P(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;var n,r=a.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(P(o,Uint8Array)&&(o=a.from(o)),!a.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},a.byteLength=h,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},a.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):p.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(e,t,n,r,i){if(P(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,l=n-t,s=Math.min(o,l),u=this.slice(r,i),c=e.slice(t,n),f=0;f<s;++f)if(u[f]!==c[f]){o=u[f],l=c[f];break}return o<l?-1:l<o?1:0},a.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},a.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},a.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,l,a,s,u,c,f,d,h,p,g,m=this.length-t;if((void 0===n||n>m)&&(n=m),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var y=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var l=0;l<r;++l){var a=parseInt(t.substr(2*l,2),16);if(a!=a)break;e[n+l]=a}return l}(this,e,t,n);case"utf8":case"utf-8":return s=t,u=n,M(R(e,this.length-s),this,s,u);case"ascii":return c=t,f=n,M(E(e),this,c,f);case"latin1":case"binary":return i=this,o=e,l=t,a=n,M(E(o),i,l,a);case"base64":return d=t,h=n,M(A(e),this,d,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p=t,g=n,M(function(e,t){for(var n,r,i=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i.push(n%256),i.push(r);return i}(e,this.length-p),this,p,g);default:if(y)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),y=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,a.prototype),r},a.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||v(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},a.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||v(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},a.prototype.readUInt8=function(e,t){return e>>>=0,t||v(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||v(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||v(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||v(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},a.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||v(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return(e>>>=0,t||v(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||v(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){e>>>=0,t||v(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||v(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||v(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||v(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||v(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||v(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||v(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;x(this,e,t,n,i,0)}var o=1,l=0;for(this[t]=255&e;++l<n&&(o*=256);)this[t+l]=e/o&255;return t+n},a.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;x(this,e,t,n,i,0)}var o=n-1,l=1;for(this[t+o]=255&e;--o>=0&&(l*=256);)this[t+o]=e/l&255;return t+n},a.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);x(this,e,t,n,i-1,-i)}var o=0,l=1,a=0;for(this[t]=255&e;++o<n&&(l*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/l>>0)-a&255;return t+n},a.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);x(this,e,t,n,i-1,-i)}var o=n-1,l=1,a=0;for(this[t+o]=255&e;--o>=0&&(l*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/l>>0)-a&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,n){return k(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return k(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return S(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return S(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,r){if(!a.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var o=i-1;o>=0;--o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},a.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!a.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===r&&o<128||"latin1"===r)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var l=a.isBuffer(e)?e:a.from(e,r),s=l.length;if(0===s)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=l[i%s]}return this};var C=/[^+/0-9A-Za-z-_]/g;function R(e,t){t=t||1/0;for(var n,r=e.length,i=null,o=[],l=0;l<r;++l){if((n=e.charCodeAt(l))>55295&&n<57344){if(!i){if(n>56319||l+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function E(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function A(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(C,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function M(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function P(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var O=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},783:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */t.read=function(e,t,n,r,i){var o,l,a=8*i-r-1,s=(1<<a)-1,u=s>>1,c=-7,f=n?i-1:0,d=n?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-c)-1,h>>=-c,c+=a;c>0;o=256*o+e[t+f],f+=d,c-=8);for(l=o&(1<<-c)-1,o>>=-c,c+=r;c>0;l=256*l+e[t+f],f+=d,c-=8);if(0===o)o=1-u;else{if(o===s)return l?NaN:(h?-1:1)*(1/0);l+=Math.pow(2,r),o-=u}return(h?-1:1)*l*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var l,a,s,u=8*o-i-1,c=(1<<u)-1,f=c>>1,d=23===i?5960464477539062e-23:0,h=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(a=isNaN(t)?1:0,l=c):(l=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-l))<1&&(l--,s*=2),l+f>=1?t+=d/s:t+=d*Math.pow(2,1-f),t*s>=2&&(l++,s/=2),l+f>=c?(a=0,l=c):l+f>=1?(a=(t*s-1)*Math.pow(2,i),l+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),l=0));i>=8;e[n+h]=255&a,h+=p,a/=256,i-=8);for(l=l<<i|a,u+=i;u>0;e[n+h]=255&l,h+=p,l/=256,u-=8);e[n+h-p]|=128*g}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},l=!0;try{t[e](o,o.exports,r),l=!1}finally{l&&delete n[e]}return o.exports}r.ab="//";var i=r(72);e.exports=i}()},5406:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(7412));t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,i.default)(e),o="function"==typeof t;return r.forEach(function(e){if("declaration"===e.type){var r=e.property,i=e.value;o?t(r,i,e):i&&((n=n||{})[r]=i)}}),n}},2053:function(e,t,n){"use strict";n.d(t,{Nr:function(){return l}});var r=n(2265);function i(e,t){return e===t}function o(e,t){return t}function l(e,t,n){var l=n&&n.equalityFn||i,a=(0,r.useReducer)(o,e),s=a[0],u=a[1],c=function(e,t,n){var i=this,o=(0,r.useRef)(null),l=(0,r.useRef)(0),a=(0,r.useRef)(null),s=(0,r.useRef)([]),u=(0,r.useRef)(),c=(0,r.useRef)(),f=(0,r.useRef)(e),d=(0,r.useRef)(!0);f.current=e;var h="undefined"!=typeof window,p=!t&&0!==t&&h;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var g=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,y="maxWait"in n,b="debounceOnServer"in n&&!!n.debounceOnServer,v=y?Math.max(+n.maxWait||0,t):null;return(0,r.useEffect)(function(){return d.current=!0,function(){d.current=!1}},[]),(0,r.useMemo)(function(){var e=function(e){var t=s.current,n=u.current;return s.current=u.current=null,l.current=e,c.current=f.current.apply(n,t)},n=function(e,t){p&&cancelAnimationFrame(a.current),a.current=p?requestAnimationFrame(e):setTimeout(e,t)},r=function(e){if(!d.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||y&&e-l.current>=v},x=function(t){return a.current=null,m&&s.current?e(t):(s.current=u.current=null,c.current)},w=function e(){var i=Date.now();if(r(i))return x(i);if(d.current){var a=t-(i-o.current);n(e,y?Math.min(a,v-(i-l.current)):a)}},k=function(){if(h||b){var f=Date.now(),p=r(f);if(s.current=[].slice.call(arguments),u.current=i,o.current=f,p){if(!a.current&&d.current)return l.current=o.current,n(w,t),g?e(o.current):c.current;if(y)return n(w,t),e(o.current)}return a.current||n(w,t),c.current}};return k.cancel=function(){a.current&&(p?cancelAnimationFrame(a.current):clearTimeout(a.current)),l.current=0,s.current=o.current=u.current=a.current=null},k.isPending=function(){return!!a.current},k.flush=function(){return a.current?x(Date.now()):c.current},k},[g,y,t,v,m,p,h,b])}((0,r.useCallback)(function(e){return u(e)},[u]),t,n),f=(0,r.useRef)(e);return l(f.current,e)||(c(e),f.current=e),[s,c]}},3216:function(e,t,n){"use strict";n.d(t,{b7:function(){return l},ie:function(){return o}});var r=n(2265),i=n(7660);/**
7
+ * react-table
8
+ *
9
+ * Copyright (c) TanStack
10
+ *
11
+ * This source code is licensed under the MIT license found in the
12
+ * LICENSE.md file in the root directory of this source tree.
13
+ *
14
+ * @license MIT
15
+ */function o(e,t){return e?"function"==typeof e&&(()=>{let t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()||"function"==typeof e||"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)?r.createElement(e,t):e:null}function l(e){let t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=r.useState(()=>({current:(0,i.W_)(t)})),[o,l]=r.useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...o,...e.state},onStateChange:t=>{l(t),null==e.onStateChange||e.onStateChange(t)}})),n.current}},7660:function(e,t,n){"use strict";/**
16
+ * table-core
17
+ *
18
+ * Copyright (c) TanStack
19
+ *
20
+ * This source code is licensed under the MIT license found in the
21
+ * LICENSE.md file in the root directory of this source tree.
22
+ *
23
+ * @license MIT
24
+ */function r(e,t){return"function"==typeof e?e(t):e}function i(e,t){return n=>{t.setState(t=>({...t,[e]:r(n,t[e])}))}}function o(e){return e instanceof Function}function l(e,t,n){let r,i=[];return()=>{let o,l;n.key&&n.debug&&(o=Date.now());let a=e(),s=a.length!==i.length||a.some((e,t)=>i[t]!==e);if(!s)return r;if(i=a,n.key&&n.debug&&(l=Date.now()),r=t(...a),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){let e=Math.round((Date.now()-o)*100)/100,t=Math.round((Date.now()-l)*100)/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${i(t,5)} /${i(e,5)} ms`,`
25
+ font-size: .6rem;
26
+ font-weight: bold;
27
+ color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return r}}function a(e,t,n){var r;let i=null!=(r=n.id)?r:t.id,o={id:i,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{let e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(t=>{Object.assign(o,null==t.createHeader?void 0:t.createHeader(o,e))}),o}function s(e,t,n,r){var i,o;let l=0,s=function(e,t){void 0===t&&(t=1),l=Math.max(l,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;null!=(n=e.columns)&&n.length&&s(e.columns,t+1)},0)};s(e);let u=[],c=(e,t)=>{let i={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},o=[];e.forEach(e=>{let l;let s=[...o].reverse()[0],u=e.column.depth===i.depth,c=!1;if(u&&e.column.parent?l=e.column.parent:(l=e.column,c=!0),s&&(null==s?void 0:s.column)===l)s.subHeaders.push(e);else{let i=a(n,l,{id:[r,t,l.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:c,placeholderId:c?`${o.filter(e=>e.column===l).length}`:void 0,depth:t,index:o.length});i.subHeaders.push(e),o.push(i)}i.headers.push(e),e.headerGroup=i}),u.push(i),t>0&&c(o,t-1)},f=t.map((e,t)=>a(n,e,{depth:l,index:t}));c(f,l-1),u.reverse();let d=e=>{let t=e.filter(e=>e.column.getIsVisible());return t.map(e=>{let t=0,n=0,r=[0];e.subHeaders&&e.subHeaders.length?(r=[],d(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:i}=e;t+=n,r.push(i)})):t=1;let i=Math.min(...r);return n+=i,e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}})};return d(null!=(i=null==(o=u[0])?void 0:o.headers)?i:[]),u}n.d(t,{Cl:function(){return j},W_:function(){return D},sC:function(){return V}});let u={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},c=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),f=null;function d(e){return"touchstart"===e.type}let h=(e,t,n)=>{var r,i,o;let l=n.toLowerCase();return!!(null==(r=e.getValue(t))?void 0:null==(i=r.toString())?void 0:null==(o=i.toLowerCase())?void 0:o.includes(l))};h.autoRemove=e=>S(e);let p=(e,t,n)=>{var r,i;return!!(null==(r=e.getValue(t))?void 0:null==(i=r.toString())?void 0:i.includes(n))};p.autoRemove=e=>S(e);let g=(e,t,n)=>{var r,i;return(null==(r=e.getValue(t))?void 0:null==(i=r.toString())?void 0:i.toLowerCase())===(null==n?void 0:n.toLowerCase())};g.autoRemove=e=>S(e);let m=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};m.autoRemove=e=>S(e)||!(null!=e&&e.length);let y=(e,t,n)=>!n.some(n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))});y.autoRemove=e=>S(e)||!(null!=e&&e.length);let b=(e,t,n)=>n.some(n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)});b.autoRemove=e=>S(e)||!(null!=e&&e.length);let v=(e,t,n)=>e.getValue(t)===n;v.autoRemove=e=>S(e);let x=(e,t,n)=>e.getValue(t)==n;x.autoRemove=e=>S(e);let w=(e,t,n)=>{let[r,i]=n,o=e.getValue(t);return o>=r&&o<=i};w.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,i="number"!=typeof n?parseFloat(n):n,o=null===t||Number.isNaN(r)?-1/0:r,l=null===n||Number.isNaN(i)?1/0:i;if(o>l){let e=o;o=l,l=e}return[o,l]},w.autoRemove=e=>S(e)||S(e[0])&&S(e[1]);let k={includesString:h,includesStringSensitive:p,equalsString:g,arrIncludes:m,arrIncludesAll:y,arrIncludesSome:b,equals:v,weakEquals:x,inNumberRange:w};function S(e){return null==e||""===e}function C(e,t,n){return!!e&&!!e.autoRemove&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}let R={sum:(e,t,n)=>n.reduce((t,n)=>{let r=n.getValue(e);return t+("number"==typeof r?r:0)},0),min:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)}),r},max:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(r<n||void 0===r&&n>=n)&&(r=n)}),r},extent:(e,t,n)=>{let r,i;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=i=n):(r>n&&(r=n),i<n&&(i=n)))}),[r,i]},mean:(e,t)=>{let n=0,r=0;if(t.forEach(t=>{let i=t.getValue(e);null!=i&&(i=+i)>=i&&(++n,r+=i)}),n)return r/n},median:(e,t)=>{if(!t.length)return;let n=t.map(t=>t.getValue(e));if(!(Array.isArray(n)&&n.every(e=>"number"==typeof e)))return;if(1===n.length)return n[0];let r=Math.floor(n.length/2),i=n.sort((e,t)=>e-t);return n.length%2!=0?i[r]:(i[r-1]+i[r])/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},E=()=>({pageIndex:0,pageSize:10}),A=()=>({left:[],right:[]}),M=(e,t,n,r)=>{var i;let o=r.getRow(t);n?(o.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),o.getCanSelect()&&(e[t]=!0)):delete e[t],null!=(i=o.subRows)&&i.length&&o.getCanSelectSubRows()&&o.subRows.forEach(t=>M(e,t.id,n,r))};function P(e,t){let n=e.getState().rowSelection,r=[],i={},o=function(e,t){return e.map(e=>{var t;let l=O(e,n);if(l&&(r.push(e),i[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:o(e.subRows)}),l)return e}).filter(Boolean)};return{rows:o(t.rows),flatRows:r,rowsById:i}}function O(e,t){var n;return null!=(n=t[e.id])&&n}function T(e,t,n){if(e.subRows&&e.subRows.length){let n=!0,r=!1;return e.subRows.forEach(e=>{(!r||n)&&(O(e,t)?r=!0:n=!1)}),n?"all":!!r&&"some"}return!1}let I=/([0-9]+)/gm;function _(e,t){return e===t?0:e>t?1:-1}function L(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function F(e,t){let n=e.split(I).filter(Boolean),r=t.split(I).filter(Boolean);for(;n.length&&r.length;){let e=n.shift(),t=r.shift(),i=parseInt(e,10),o=parseInt(t,10),l=[i,o].sort();if(isNaN(l[0])){if(e>t)return 1;if(t>e)return -1;continue}if(isNaN(l[1]))return isNaN(i)?-1:1;if(i>o)return 1;if(o>i)return -1}return n.length-r.length}let z={alphanumeric:(e,t,n)=>F(L(e.getValue(n)).toLowerCase(),L(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>F(L(e.getValue(n)),L(t.getValue(n))),text:(e,t,n)=>_(L(e.getValue(n)).toLowerCase(),L(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>_(L(e.getValue(n)),L(t.getValue(n))),datetime:(e,t,n)=>{let r=e.getValue(n),i=t.getValue(n);return r>i?1:r<i?-1:0},basic:(e,t,n)=>_(e.getValue(n),t.getValue(n))},B=[{createTable:e=>({getHeaderGroups:l(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{var o,l;let a=null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[],u=null!=(l=null==i?void 0:i.map(e=>n.find(t=>t.id===e)).filter(Boolean))?l:[],c=n.filter(e=>!(null!=r&&r.includes(e.id))&&!(null!=i&&i.includes(e.id))),f=s(t,[...a,...c,...u],e);return f},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterHeaderGroups:l(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>s(t,n=n.filter(e=>!(null!=r&&r.includes(e.id))&&!(null!=i&&i.includes(e.id))),e,"center"),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftHeaderGroups:l(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var i;let o=null!=(i=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[];return s(t,o,e,"left")},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightHeaderGroups:l(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var i;let o=null!=(i=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[];return s(t,o,e,"right")},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFooterGroups:l(()=>[e.getHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFooterGroups:l(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFooterGroups:l(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFooterGroups:l(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFlatHeaders:l(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFlatHeaders:l(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFlatHeaders:l(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFlatHeaders:l(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterLeafHeaders:l(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftLeafHeaders:l(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightLeafHeaders:l(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeafHeaders:l(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>{var r,i,o,l,a,s;return[...null!=(r=null==(i=e[0])?void 0:i.headers)?r:[],...null!=(o=null==(l=t[0])?void 0:l.headers)?o:[],...null!=(a=null==(s=n[0])?void 0:s.headers)?a:[]].map(e=>e.getLeafHeaders()).flat()},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}})})},{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:i("columnVisibility",e)}),createColumn:(e,t)=>({toggleVisibility:n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()}))},getIsVisible:()=>{var n,r;return null==(n=null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},getCanHide:()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},getToggleVisibilityHandler:()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}}),createRow:(e,t)=>({_getAllVisibleCells:l(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),{key:"row._getAllVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getVisibleCells:l(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],{key:!1,debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})}),createTable:e=>{let t=(t,n)=>l(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),{key:t,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}});return{getVisibleFlatColumns:t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),getVisibleLeafColumns:t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),getLeftVisibleLeafColumns:t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),getRightVisibleLeafColumns:t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),getCenterVisibleLeafColumns:t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),setColumnVisibility:t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),resetColumnVisibility:t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},toggleAllColumnsVisible:t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())}),{}))},getIsAllColumnsVisible:()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),getIsSomeColumnsVisible:()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),getToggleAllColumnsVisibilityHandler:()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:i("columnOrder",e)}),createTable:e=>({setColumnOrder:t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),resetColumnOrder:t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},_getOrderColumnsFn:l(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>r=>{let i=[];if(null!=e&&e.length){let t=[...e],n=[...r];for(;n.length&&t.length;){let e=t.shift(),r=n.findIndex(t=>t.id===e);r>-1&&i.push(n.splice(r,1)[0])}i=[...i,...n]}else i=r;return function(e,t,n){if(!(null!=t&&t.length)||!n)return e;let r=e.filter(e=>!t.includes(e.id));if("remove"===n)return r;let i=t.map(t=>e.find(e=>e.id===t)).filter(Boolean);return[...i,...r]}(i,t,n)},{key:!1})})},{getInitialState:e=>({columnPinning:A(),...e}),getDefaultOptions:e=>({onColumnPinningChange:i("columnPinning",e)}),createColumn:(e,t)=>({pin:n=>{let r=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,i,o,l,a,s;return"right"===n?{left:(null!=(o=null==e?void 0:e.left)?o:[]).filter(e=>!(null!=r&&r.includes(e))),right:[...(null!=(l=null==e?void 0:e.right)?l:[]).filter(e=>!(null!=r&&r.includes(e))),...r]}:"left"===n?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter(e=>!(null!=r&&r.includes(e))),...r],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter(e=>!(null!=r&&r.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=r&&r.includes(e))),right:(null!=(i=null==e?void 0:e.right)?i:[]).filter(e=>!(null!=r&&r.includes(e)))}})},getCanPin:()=>{let n=e.getLeafColumns();return n.some(e=>{var n,r;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=t.options.enablePinning)||r)})},getIsPinned:()=>{let n=e.getLeafColumns().map(e=>e.id),{left:r,right:i}=t.getState().columnPinning,o=n.some(e=>null==r?void 0:r.includes(e)),l=n.some(e=>null==i?void 0:i.includes(e));return o?"left":!!l&&"right"},getPinnedIndex:()=>{var n,r,i;let o=e.getIsPinned();return o?null!=(n=null==(r=t.getState().columnPinning)?void 0:null==(i=r[o])?void 0:i.indexOf(e.id))?n:-1:0}}),createRow:(e,t)=>({getCenterVisibleCells:l(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{let r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.column.id))},{key:"row.getCenterVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getLeftVisibleCells:l(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,],(e,t)=>{let n=(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"}));return n},{key:"row.getLeftVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getRightVisibleCells:l(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>{let n=(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"}));return n},{key:"row.getRightVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})}),createTable:e=>({setColumnPinning:t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),resetColumnPinning:t=>{var n,r;return e.setColumnPinning(t?A():null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:A())},getIsSomeColumnsPinned:t=>{var n,r,i;let o=e.getState().columnPinning;return t?!!(null==(n=o[t])?void 0:n.length):!!((null==(r=o.left)?void 0:r.length)||(null==(i=o.right)?void 0:i.length))},getLeftLeafColumns:l(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getRightLeafColumns:l(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getCenterLeafColumns:l(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{let r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.id))},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})})},{getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:i("columnFilters",e),onGlobalFilterChange:i("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n,r;let i=null==(n=e.getCoreRowModel().flatRows[0])?void 0:null==(r=n._getAllCellsByColumnId()[t.id])?void 0:r.getValue();return"string"==typeof i||"number"==typeof i}}),createColumn:(e,t)=>({getAutoFilterFn:()=>{let n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?k.includesString:"number"==typeof r?k.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?k.equals:Array.isArray(r)?k.arrIncludes:k.weakEquals},getFilterFn:()=>{var n,r;return o(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:k[e.columnDef.filterFn]},getCanFilter:()=>{var n,r,i;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(i=t.options.enableFilters)||i)&&!!e.accessorFn},getCanGlobalFilter:()=>{var n,r,i,o;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(i=t.options.enableFilters)||i)&&(null==(o=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||o)&&!!e.accessorFn},getIsFiltered:()=>e.getFilterIndex()>-1,getFilterValue:()=>{var n,r;return null==(n=t.getState().columnFilters)?void 0:null==(r=n.find(t=>t.id===e.id))?void 0:r.value},getFilterIndex:()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},setFilterValue:n=>{t.setColumnFilters(t=>{var i,o;let l=e.getFilterFn(),a=null==t?void 0:t.find(t=>t.id===e.id),s=r(n,a?a.value:void 0);if(C(l,s,e))return null!=(i=null==t?void 0:t.filter(t=>t.id!==e.id))?i:[];let u={id:e.id,value:s};return a?null!=(o=null==t?void 0:t.map(t=>t.id===e.id?u:t))?o:[]:null!=t&&t.length?[...t,u]:[u]})},_getFacetedRowModel:t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),getFacetedRowModel:()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),_getFacetedUniqueValues:t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),getFacetedUniqueValues:()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,_getFacetedMinMaxValues:t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),getFacetedMinMaxValues:()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}),createRow:(e,t)=>({columnFilters:{},columnFiltersMeta:{}}),createTable:e=>({getGlobalAutoFilterFn:()=>k.includesString,getGlobalFilterFn:()=>{var t,n;let{globalFilterFn:r}=e.options;return o(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:k[r]},setColumnFilters:t=>{let n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var i;return null==(i=r(t,e))?void 0:i.filter(e=>{let t=n.find(t=>t.id===e.id);if(t){let n=t.getFilterFn();if(C(n,e.value,t))return!1}return!0})})},setGlobalFilter:t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},resetGlobalFilter:t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},resetColumnFilters:t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])},getPreFilteredRowModel:()=>e.getCoreRowModel(),getFilteredRowModel:()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel)?e.getPreFilteredRowModel():e._getFilteredRowModel(),_getGlobalFacetedRowModel:e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),getGlobalFacetedRowModel:()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),_getGlobalFacetedUniqueValues:e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),getGlobalFacetedUniqueValues:()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,_getGlobalFacetedMinMaxValues:e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),getGlobalFacetedMinMaxValues:()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}})},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:i("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>({getAutoSortingFn:()=>{let n=t.getFilteredRowModel().flatRows.slice(10),r=!1;for(let t of n){let n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return z.datetime;if("string"==typeof n&&(r=!0,n.split(I).length>1))return z.alphanumeric}return r?z.text:z.basic},getAutoSortDir:()=>{let n=t.getFilteredRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?"asc":"desc"},getSortingFn:()=>{var n,r;if(!e)throw Error();return o(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:z[e.columnDef.sortingFn]},toggleSorting:(n,r)=>{let i=e.getNextSortingOrder(),o=null!=n;t.setSorting(l=>{let a;let s=null==l?void 0:l.find(t=>t.id===e.id),u=null==l?void 0:l.findIndex(t=>t.id===e.id),c=[],f=o?n:"desc"===i;if("toggle"!=(a=null!=l&&l.length&&e.getCanMultiSort()&&r?s?"toggle":"add":null!=l&&l.length&&u!==l.length-1?"replace":s?"toggle":"replace")||o||i||(a="remove"),"add"===a){var d;(c=[...l,{id:e.id,desc:f}]).splice(0,c.length-(null!=(d=t.options.maxMultiSortColCount)?d:Number.MAX_SAFE_INTEGER))}else c="toggle"===a?l.map(t=>t.id===e.id?{...t,desc:f}:t):"remove"===a?l.filter(t=>t.id!==e.id):[{id:e.id,desc:f}];return c})},getFirstSortDir:()=>{var n,r;let i=null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir();return i?"desc":"asc"},getNextSortingOrder:n=>{var r,i;let o=e.getFirstSortDir(),l=e.getIsSorted();return l?(l===o||null!=(r=t.options.enableSortingRemoval)&&!r||!!n&&null!=(i=t.options.enableMultiRemove)&&!i)&&("desc"===l?"asc":"desc"):o},getCanSort:()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},getCanMultiSort:()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},getIsSorted:()=>{var n;let r=null==(n=t.getState().sorting)?void 0:n.find(t=>t.id===e.id);return!!r&&(r.desc?"desc":"asc")},getSortIndex:()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},clearSorting:()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},getToggleSortingHandler:()=>{let n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}}),createTable:e=>({setSorting:t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),resetSorting:t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?n:[])},getPreSortedRowModel:()=>e.getGroupedRowModel(),getSortedRowModel:()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel)?e.getPreSortedRowModel():e._getSortedRowModel()})},{getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())?void 0:null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:i("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>({toggleGrouping:()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},getCanGroup:()=>{var n,r,i,o;return null!=(n=null==(r=null!=(i=null==(o=e.columnDef.enableGrouping)||o)?i:t.options.enableGrouping)||r)?n:!!e.accessorFn},getIsGrouped:()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},getGroupedIndex:()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},getToggleGroupingHandler:()=>{let t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},getAutoAggregationFn:()=>{let n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"==typeof r?R.sum:"[object Date]"===Object.prototype.toString.call(r)?R.extent:void 0},getAggregationFn:()=>{var n,r;if(!e)throw Error();return o(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:R[e.columnDef.aggregationFn]}}),createTable:e=>({setGrouping:t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),resetGrouping:t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?n:[])},getPreGroupedRowModel:()=>e.getFilteredRowModel(),getGroupedRowModel:()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel)?e.getPreGroupedRowModel():e._getGroupedRowModel()}),createRow:(e,t)=>({getIsGrouped:()=>!!e.groupingColumnId,getGroupingValue:n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];let r=t.getColumn(n);return null!=r&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},_groupingValuesCache:{}}),createCell:(e,t,n,r)=>({getIsGrouped:()=>t.getIsGrouped()&&t.id===n.groupingColumnId,getIsPlaceholder:()=>!e.getIsGrouped()&&t.getIsGrouped(),getIsAggregated:()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!(null!=(t=n.subRows)&&t.length)}})},{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:i("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;return{_autoResetExpanded:()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if(null!=(r=null!=(i=e.options.autoResetAll)?i:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},setExpanded:t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),toggleAllRowsExpanded:t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},resetExpanded:t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},getCanSomeRowsExpand:()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),getToggleAllRowsExpandedHandler:()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},getIsSomeRowsExpanded:()=>{let t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},getIsAllRowsExpanded:()=>{let t=e.getState().expanded;return"boolean"==typeof t?!0===t:!(!Object.keys(t).length||e.getRowModel().flatRows.some(e=>!e.getIsExpanded()))},getExpandedDepth:()=>{let t=0,n=!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded);return n.forEach(e=>{let n=e.split(".");t=Math.max(t,n.length)}),t},getPreExpandedRowModel:()=>e.getSortedRowModel(),getExpandedRowModel:()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel)?e.getPreExpandedRowModel():e._getExpandedRowModel()}},createRow:(e,t)=>({toggleExpanded:n=>{t.setExpanded(r=>{var i;let o=!0===r||!!(null!=r&&r[e.id]),l={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach(e=>{l[e]=!0}):l=r,n=null!=(i=n)?i:!o,!o&&n)return{...l,[e.id]:!0};if(o&&!n){let{[e.id]:t,...n}=l;return n}return r})},getIsExpanded:()=>{var n;let r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||(null==r?void 0:r[e.id]))},getCanExpand:()=>{var n,r,i;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!!(null!=(i=e.subRows)&&i.length)},getToggleExpandedHandler:()=>{let t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}})},{getInitialState:e=>({...e,pagination:{...E(),...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:i("pagination",e)}),createTable:e=>{let t=!1,n=!1;return{_autoResetPageIndex:()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if(null!=(r=null!=(i=e.options.autoResetAll)?i:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},setPagination:t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>r(t,e)),resetPagination:t=>{var n;e.setPagination(t?E():null!=(n=e.initialState.pagination)?n:E())},setPageIndex:t=>{e.setPagination(n=>{let i=r(t,n.pageIndex),o=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return i=Math.max(0,Math.min(i,o)),{...n,pageIndex:i}})},resetPageIndex:t=>{var n,r,i;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)?void 0:null==(i=r.pagination)?void 0:i.pageIndex)?n:0)},resetPageSize:t=>{var n,r,i;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)?void 0:null==(i=r.pagination)?void 0:i.pageSize)?n:10)},setPageSize:t=>{e.setPagination(e=>{let n=Math.max(1,r(t,e.pageSize)),i=e.pageSize*e.pageIndex;return{...e,pageIndex:Math.floor(i/n),pageSize:n}})},setPageCount:t=>e.setPagination(n=>{var i;let o=r(t,null!=(i=e.options.pageCount)?i:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}}),getPageOptions:l(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...Array(e)].fill(null).map((e,t)=>t)),t},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getCanPreviousPage:()=>e.getState().pagination.pageIndex>0,getCanNextPage:()=>{let{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return -1===n||0!==n&&t<n-1},previousPage:()=>e.setPageIndex(e=>e-1),nextPage:()=>e.setPageIndex(e=>e+1),getPrePaginationRowModel:()=>e.getExpandedRowModel(),getPaginationRowModel:()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel)?e.getPrePaginationRowModel():e._getPaginationRowModel(),getPageCount:()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}},{getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:i("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>({setRowSelection:t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),resetRowSelection:t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},toggleAllRowsSelected:t=>{e.setRowSelection(n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();let r={...n},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(e=>{e.getCanSelect()&&(r[e.id]=!0)}):i.forEach(e=>{delete r[e.id]}),r})},toggleAllPageRowsSelected:t=>e.setRowSelection(n=>{let r=void 0!==t?t:!e.getIsAllPageRowsSelected(),i={...n};return e.getRowModel().rows.forEach(t=>{M(i,t.id,r,e)}),i}),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:l(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?P(e,n):{rows:[],flatRows:[],rowsById:{}},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getFilteredSelectedRowModel:l(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?P(e,n):{rows:[],flatRows:[],rowsById:{}},{key:"getFilteredSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getGroupedSelectedRowModel:l(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?P(e,n):{rows:[],flatRows:[],rowsById:{}},{key:"getGroupedSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getIsAllRowsSelected:()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState(),r=!!(t.length&&Object.keys(n).length);return r&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(r=!1),r},getIsAllPageRowsSelected:()=>{let t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:n}=e.getState(),r=!!t.length;return r&&t.some(e=>!n[e.id])&&(r=!1),r},getIsSomeRowsSelected:()=>{var t;let n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},getIsSomePageRowsSelected:()=>{let t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},getToggleAllRowsSelectedHandler:()=>t=>{e.toggleAllRowsSelected(t.target.checked)},getToggleAllPageRowsSelectedHandler:()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}}),createRow:(e,t)=>({toggleSelected:n=>{let r=e.getIsSelected();t.setRowSelection(i=>{if(n=void 0!==n?n:!r,r===n)return i;let o={...i};return M(o,e.id,n,t),o})},getIsSelected:()=>{let{rowSelection:n}=t.getState();return O(e,n)},getIsSomeSelected:()=>{let{rowSelection:n}=t.getState();return"some"===T(e,n)},getIsAllSubRowsSelected:()=>{let{rowSelection:n}=t.getState();return"all"===T(e,n)},getCanSelect:()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},getCanSelectSubRows:()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},getCanMultiSelect:()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},getToggleSelectedHandler:()=>{let t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}})},{getDefaultColumnDef:()=>u,getInitialState:e=>({columnSizing:{},columnSizingInfo:c(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:i("columnSizing",e),onColumnSizingInfoChange:i("columnSizingInfo",e)}),createColumn:(e,t)=>({getSize:()=>{var n,r,i;let o=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:u.minSize,null!=(r=null!=o?o:e.columnDef.size)?r:u.size),null!=(i=e.columnDef.maxSize)?i:u.maxSize)},getStart:n=>{let r=n?"left"===n?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),i=r.findIndex(t=>t.id===e.id);if(i>0){let e=r[i-1];return e.getStart(n)+e.getSize()}return 0},resetSize:()=>{t.setColumnSizing(t=>{let{[e.id]:n,...r}=t;return r})},getCanResize:()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},getIsResizing:()=>t.getState().columnSizingInfo.isResizingColumn===e.id}),createHeader:(e,t)=>({getSize:()=>{let t=0,n=e=>{if(e.subHeaders.length)e.subHeaders.forEach(n);else{var r;t+=null!=(r=e.column.getSize())?r:0}};return n(e),t},getStart:()=>{if(e.index>0){let t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},getResizeHandler:()=>{let n=t.getColumn(e.column.id),r=null==n?void 0:n.getCanResize();return i=>{if(!n||!r||(null==i.persist||i.persist(),d(i)&&i.touches&&i.touches.length>1))return;let o=e.getSize(),l=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[n.id,n.getSize()]],a=d(i)?Math.round(i.touches[0].clientX):i.clientX,s={},u=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo(e=>{var t,r;let i=n-(null!=(t=null==e?void 0:e.startOffset)?t:0),o=Math.max(i/(null!=(r=null==e?void 0:e.startSize)?r:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;s[t]=Math.round(100*Math.max(n+n*o,0))/100}),{...e,deltaOffset:i,deltaPercentage:o}}),("onChange"===t.options.columnResizeMode||"end"===e)&&t.setColumnSizing(e=>({...e,...s})))},c=e=>u("move",e),h=e=>{u("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},p={moveHandler:e=>c(e.clientX),upHandler:e=>{document.removeEventListener("mousemove",p.moveHandler),document.removeEventListener("mouseup",p.upHandler),h(e.clientX)}},g={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),c(e.touches[0].clientX),!1),upHandler:e=>{var t;document.removeEventListener("touchmove",g.moveHandler),document.removeEventListener("touchend",g.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),h(null==(t=e.touches[0])?void 0:t.clientX)}},m=!!function(){if("boolean"==typeof f)return f;let e=!1;try{let t=()=>{};window.addEventListener("test",t,{get passive(){return e=!0,!1}}),window.removeEventListener("test",t)}catch(t){e=!1}return f=e}()&&{passive:!1};d(i)?(document.addEventListener("touchmove",g.moveHandler,m),document.addEventListener("touchend",g.upHandler,m)):(document.addEventListener("mousemove",p.moveHandler,m),document.addEventListener("mouseup",p.upHandler,m)),t.setColumnSizingInfo(e=>({...e,startOffset:a,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:l,isResizingColumn:n.id}))}}}),createTable:e=>({setColumnSizing:t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),setColumnSizingInfo:t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),resetColumnSizing:t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},resetHeaderSizeInfo:t=>{var n;e.setColumnSizingInfo(t?c():null!=(n=e.initialState.columnSizingInfo)?n:c())},getTotalSize:()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},getLeftTotalSize:()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},getCenterTotalSize:()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},getRightTotalSize:()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}})}];function D(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let n={_features:B},i=n._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(n)),{}),o=e=>n.options.mergeOptions?n.options.mergeOptions(i,e):{...i,...e},a={...null!=(t=e.initialState)?t:{}};n._features.forEach(e=>{var t;a=null!=(t=null==e.getInitialState?void 0:e.getInitialState(a))?t:a});let s=[],u=!1,c={_features:B,options:{...i,...e},initialState:a,_queue:e=>{s.push(e),u||(u=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();u=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{n.setState(n.initialState)},setOptions:e=>{let t=r(e,n.options);n.options=o(t)},getState:()=>n.options.state,setState:e=>{null==n.options.onStateChange||n.options.onStateChange(e)},_getRowId:(e,t,r)=>{var i;return null!=(i=null==n.options.getRowId?void 0:n.options.getRowId(e,t,r))?i:`${r?[r.id,t].join("."):t}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:e=>{let t=n.getRowModel().rowsById[e];if(!t)throw Error();return t},_getDefaultColumnDef:l(()=>[n.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())?void 0:null==n.toString?void 0:n.toString())?t:null},...n._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},{debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns},key:!1}),_getColumnDefs:()=>n.options.columns,getAllColumns:l(()=>[n._getColumnDefs()],e=>{let t=function(e,r,i){return void 0===i&&(i=0),e.map(e=>{let o=function(e,t,n,r){var i,o;let a;let s=e._getDefaultColumnDef(),u={...s,...t},c=u.accessorKey,f=null!=(i=null!=(o=u.id)?o:c?c.replace(".","_"):void 0)?i:"string"==typeof u.header?u.header:void 0;if(u.accessorFn?a=u.accessorFn:c&&(a=c.includes(".")?e=>{let t=e;for(let e of c.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[u.accessorKey]),!f)throw Error();let d={id:`${String(f)}`,accessorFn:a,parent:r,depth:n,columnDef:u,columns:[],getFlatColumns:l(()=>[!0],()=>{var e;return[d,...null==(e=d.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},{key:"column.getFlatColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:l(()=>[e._getOrderColumnsFn()],e=>{var t;return null!=(t=d.columns)&&t.length?e(d.columns.flatMap(e=>e.getLeafColumns())):[d]},{key:"column.getLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})};return d=e._features.reduce((t,n)=>Object.assign(t,null==n.createColumn?void 0:n.createColumn(d,e)),d)}(n,e,i,r);return o.columns=e.columns?t(e.columns,o,i+1):[],o})};return t(e)},{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllFlatColumns:l(()=>[n.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),_getAllFlatColumnsById:l(()=>[n.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllLeafColumns:l(()=>[n.getAllColumns(),n._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getColumn:e=>{let t=n._getAllFlatColumnsById()[e];return t}};return Object.assign(n,c),n._features.forEach(e=>Object.assign(n,null==e.createTable?void 0:e.createTable(n))),n}let N=(e,t,n,r,i,o,a)=>{let s={id:t,index:r,original:n,depth:i,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];let n=e.getColumn(t);if(null!=n&&n.accessorFn)return s._valuesCache[t]=n.accessorFn(s.original,r),s._valuesCache[t]},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];let n=e.getColumn(t);return null!=n&&n.accessorFn?(n.columnDef.getUniqueValues?s._uniqueValuesCache[t]=n.columnDef.getUniqueValues(s.original,r):s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=s.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=o?o:[],getLeafRows:()=>(function(e,t){let n=[],r=e=>{e.forEach(e=>{n.push(e);let i=t(e);null!=i&&i.length&&r(i)})};return r(e),n})(s.subRows,e=>e.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId):void 0,getParentRows:()=>{let e=[],t=s;for(;;){let n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:l(()=>[e.getAllLeafColumns()],t=>t.map(t=>(function(e,t,n,r){let i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>{var t;return null!=(t=i.getValue())?t:e.options.renderFallbackValue},getContext:l(()=>[e,n,t,i],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),{key:!1,debug:()=>e.options.debugAll})};return e._features.forEach(r=>{Object.assign(i,null==r.createCell?void 0:r.createCell(i,n,t,e))},{}),i})(e,s,t,t.id)),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:l(()=>[s.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),{key:"row.getAllCellsByColumnId",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})};for(let t=0;t<e._features.length;t++){let n=e._features[t];Object.assign(s,null==n?void 0:null==n.createRow?void 0:n.createRow(s,e))}return s};function j(){return{accessor:(e,t)=>"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function V(){return e=>l(()=>[e.options.data],t=>{let n={rows:[],flatRows:[],rowsById:{}},r=function(t,i,o){void 0===i&&(i=0);let l=[];for(let s=0;s<t.length;s++){let u=N(e,e._getRowId(t[s],s,o),t[s],s,i,void 0,null==o?void 0:o.id);if(n.flatRows.push(u),n.rowsById[u.id]=u,l.push(u),e.options.getSubRows){var a;u.originalSubRows=e.options.getSubRows(t[s],s),null!=(a=u.originalSubRows)&&a.length&&(u.subRows=r(u.originalSubRows,i+1,u))}}return l};return n.rows=r(t),n},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}},9521:function(e,t,n){"use strict";let r,i;/*!
28
+ * @kurkle/color v0.3.2
29
+ * https://github.com/kurkle/color#readme
30
+ * (c) 2023 Jukka Kurkela
31
+ * Released under the MIT License
32
+ */function o(e){return e+.5|0}n.d(t,{$:function(){return tf},A:function(){return eF},B:function(){return eL},C:function(){return tu},D:function(){return eR},E:function(){return tk},F:function(){return q},G:function(){return tQ},H:function(){return ef},I:function(){return tU},J:function(){return t1},K:function(){return t0},L:function(){return eH},M:function(){return tZ},N:function(){return eb},O:function(){return j},P:function(){return el},Q:function(){return U},R:function(){return tR},S:function(){return eO},T:function(){return ea},U:function(){return eS},V:function(){return tr},W:function(){return eT},X:function(){return to},Y:function(){return tc},Z:function(){return tp},_:function(){return ej},a:function(){return tC},a0:function(){return tS},a1:function(){return eU},a2:function(){return eq},a3:function(){return e9},a4:function(){return X},a5:function(){return et},a6:function(){return e7},a7:function(){return er},a8:function(){return function e(t,n,r,i){let o={_cacheable:!1,_proxy:t,_context:n,_subProxy:r,_stack:new Set,_descriptors:tM(t,i),setContext:n=>e(t,n,r,i),override:o=>e(t.override(o),n,r,i)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,n,r)=>tT(t,n,()=>(function(t,n,r){let{_proxy:i,_context:o,_subProxy:l,_descriptors:a}=t,s=i[n];return er(s)&&a.isScriptable(n)&&(s=function(e,t,n,r){let{_proxy:i,_context:o,_subProxy:l,_stack:a}=n;if(a.has(e))throw Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let s=t(o,l||r);return a.delete(e),tO(e,s)&&(s=t_(i._scopes,i,e,s)),s}(n,s,t,r)),B(s)&&s.length&&(s=function(t,n,r,i){let{_proxy:o,_context:l,_subProxy:a,_descriptors:s}=r;if(void 0!==l.index&&i(t))return n[l.index%n.length];if(D(n[0])){let r=n,i=o._scopes.filter(e=>e!==r);for(let u of(n=[],r)){let r=t_(i,o,t,u);n.push(e(r,l,a&&a[t],s))}}return n}(n,s,t,a.isIndexable)),tO(n,s)&&(s=e(s,o,l&&l[n],a)),s})(t,n,r)),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,r)=>(t[n]=r,delete e[n],!0)})}},a9:function(){return tA},aA:function(){return t3},aB:function(){return e$},aC:function(){return t8},aD:function(){return ts},aE:function(){return eE},aF:function(){return L},aG:function(){return ew},aH:function(){return ey},aI:function(){return ex},aJ:function(){return em},aK:function(){return eC},aL:function(){return e8},aM:function(){return ep},aN:function(){return ti},aO:function(){return ez},aP:function(){return e_},aa:function(){return tM},ab:function(){return K},ac:function(){return F},ad:function(){return eZ},ae:function(){return tJ},af:function(){return tl},ag:function(){return ei},ah:function(){return $},ai:function(){return eo},aj:function(){return eI},ak:function(){return tv},al:function(){return tH},am:function(){return nn},an:function(){return nt},ao:function(){return t5},ap:function(){return t4},aq:function(){return t2},ar:function(){return td},as:function(){return th},at:function(){return ta},au:function(){return tg},av:function(){return tx},aw:function(){return tw},ax:function(){return ne},ay:function(){return eM},az:function(){return t6},b:function(){return B},c:function(){return e0},d:function(){return tn},e:function(){return eQ},f:function(){return ee},g:function(){return N},h:function(){return en},i:function(){return D},j:function(){return tE},k:function(){return z},l:function(){return eD},m:function(){return H},n:function(){return Z},o:function(){return e6},p:function(){return eP},q:function(){return eG},r:function(){return eV},s:function(){return eg},t:function(){return ek},u:function(){return eN},v:function(){return V},w:function(){return eW},x:function(){return ev},y:function(){return tB},z:function(){return tX}});let l=(e,t,n)=>Math.max(Math.min(e,n),t);function a(e){return l(o(2.55*e),0,255)}function s(e){return l(o(255*e),0,255)}function u(e){return l(o(e/2.55)/100,0,1)}function c(e){return l(o(100*e),0,100)}let f={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},d=[..."0123456789ABCDEF"],h=e=>d[15&e],p=e=>d[(240&e)>>4]+d[15&e],g=e=>(240&e)>>4==(15&e),m=e=>g(e.r)&&g(e.g)&&g(e.b)&&g(e.a),y=(e,t)=>e<255?t(e):"",b=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function v(e,t,n){let r=t*Math.min(n,1-n),i=(t,i=(t+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function x(e,t,n){let r=(r,i=(r+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function w(e,t,n){let r;let i=v(e,1,.5);for(t+n>1&&(r=1/(t+n),t*=r,n*=r),r=0;r<3;r++)i[r]*=1-t-n,i[r]+=t;return i}function k(e){let t,n,r;let i=e.r/255,o=e.g/255,l=e.b/255,a=Math.max(i,o,l),s=Math.min(i,o,l),u=(a+s)/2;return a!==s&&(r=a-s,n=u>.5?r/(2-a-s):r/(a+s),t=60*(t=i===a?(o-l)/r+(o<l?6:0):o===a?(l-i)/r+2:(i-o)/r+4)+.5),[0|t,n||0,u]}function S(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(s)}function C(e){return(e%360+360)%360}let R={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},E={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"},A=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,M=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,P=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function O(e,t,n){if(e){let r=k(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),r=S(v,r,void 0,void 0),e.r=r[0],e.g=r[1],e.b=r[2]}}function T(e,t){return e?Object.assign(t||{},e):e}function I(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=s(e[3]))):(t=T(e,{r:0,g:0,b:0,a:1})).a=s(t.a),t}class _{constructor(e){let t;if(e instanceof _)return e;let n=typeof e;if("object"===n)t=I(e);else if("string"===n){var i,o;o=e.length,"#"===e[0]&&(4===o||5===o?i={r:255&17*f[e[1]],g:255&17*f[e[2]],b:255&17*f[e[3]],a:5===o?17*f[e[4]]:255}:(7===o||9===o)&&(i={r:f[e[1]]<<4|f[e[2]],g:f[e[3]]<<4|f[e[4]],b:f[e[5]]<<4|f[e[6]],a:9===o?f[e[7]]<<4|f[e[8]]:255})),t=i||function(e){r||((r=function(){let e,t,n,r,i;let o={},l=Object.keys(E),a=Object.keys(R);for(e=0;e<l.length;e++){for(t=0,r=i=l[e];t<a.length;t++)n=a[t],i=i.replace(n,R[n]);n=parseInt(E[r],16),o[i]=[n>>16&255,n>>8&255,255&n]}return o}()).transparent=[0,0,0,0]);let t=r[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}(e)||("r"===e.charAt(0)?function(e){let t,n,r;let i=A.exec(e),o=255;if(i){if(i[7]!==t){let e=+i[7];o=i[8]?a(e):l(255*e,0,255)}return t=+i[1],n=+i[3],r=+i[5],{r:t=255&(i[2]?a(t):l(t,0,255)),g:n=255&(i[4]?a(n):l(n,0,255)),b:r=255&(i[6]?a(r):l(r,0,255)),a:o}}}(e):function(e){let t;let n=b.exec(e),r=255;if(!n)return;n[5]!==t&&(r=n[6]?a(+n[5]):s(+n[5]));let i=C(+n[2]),o=+n[3]/100,l=+n[4]/100;return{r:(t="hwb"===n[1]?S(w,i,o,l):"hsv"===n[1]?S(x,i,o,l):S(v,i,o,l))[0],g:t[1],b:t[2],a:r}}(e))}this._rgb=t,this._valid=!!t}get valid(){return this._valid}get rgb(){var e=T(this._rgb);return e&&(e.a=u(e.a)),e}set rgb(e){this._rgb=I(e)}rgbString(){var e;return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${u(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0}hexString(){var e,t;return this._valid?(t=m(e=this._rgb)?h:p,e?"#"+t(e.r)+t(e.g)+t(e.b)+y(e.a,t):void 0):void 0}hslString(){return this._valid?function(e){if(!e)return;let t=k(e),n=t[0],r=c(t[1]),i=c(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${u(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}(this._rgb):void 0}mix(e,t){if(e){let n;let r=this.rgb,i=e.rgb,o=t===n?.5:t,l=2*o-1,a=r.a-i.a,s=((l*a==-1?l:(l+a)/(1+l*a))+1)/2;n=1-s,r.r=255&s*r.r+n*i.r+.5,r.g=255&s*r.g+n*i.g+.5,r.b=255&s*r.b+n*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){let r=P(u(e.r)),i=P(u(e.g)),o=P(u(e.b));return{r:s(M(r+n*(P(u(t.r))-r))),g:s(M(i+n*(P(u(t.g))-i))),b:s(M(o+n*(P(u(t.b))-o))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new _(this.rgb)}alpha(e){return this._rgb.a=s(e),this}clearer(e){let t=this._rgb;return t.a*=1-e,this}greyscale(){let e=this._rgb,t=o(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){let t=this._rgb;return t.a*=1+e,this}negate(){let e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return O(this._rgb,2,e),this}darken(e){return O(this._rgb,2,-e),this}saturate(e){return O(this._rgb,1,e),this}desaturate(e){return O(this._rgb,1,-e),this}rotate(e){var t,n;return(n=k(t=this._rgb))[0]=C(n[0]+e),n=S(v,n,void 0,void 0),t.r=n[0],t.g=n[1],t.b=n[2],this}}/*!
33
+ * Chart.js v4.4.0
34
+ * https://www.chartjs.org
35
+ * (c) 2023 Chart.js Contributors
36
+ * Released under the MIT License
37
+ */function L(){}let F=(i=0,()=>i++);function z(e){return null==e}function B(e){if(Array.isArray&&Array.isArray(e))return!0;let t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function D(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function N(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function j(e,t){return N(e)?e:t}function V(e,t){return void 0===e?t:e}let H=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100:+e/t,Z=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function U(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function q(e,t,n,r){let i,o,l;if(B(e)){if(o=e.length,r)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<o;i++)t.call(n,e[i],i)}else if(D(e))for(i=0,o=(l=Object.keys(e)).length;i<o;i++)t.call(n,e[l[i]],l[i])}function $(e,t){let n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function G(e){if(B(e))return e.map(G);if(D(e)){let t=Object.create(null),n=Object.keys(e),r=n.length,i=0;for(;i<r;++i)t[n[i]]=G(e[n[i]]);return t}return e}function W(e){return -1===["__proto__","prototype","constructor"].indexOf(e)}function Y(e,t,n,r){if(!W(e))return;let i=t[e],o=n[e];D(i)&&D(o)?X(i,o,r):t[e]=G(o)}function X(e,t,n){let r;let i=B(t)?t:[t],o=i.length;if(!D(e))return e;n=n||{};let l=n.merger||Y;for(let t=0;t<o;++t){if(!D(r=i[t]))continue;let o=Object.keys(r);for(let t=0,i=o.length;t<i;++t)l(o[t],e,r,n)}return e}function K(e,t){return X(e,t,{merger:Q})}function Q(e,t,n){if(!W(e))return;let r=t[e],i=n[e];D(r)&&D(i)?K(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=G(i))}let J={"":e=>e,x:e=>e.x,y:e=>e.y};function ee(e,t){let n=J[t]||(J[t]=function(e){let t=function(e){let t=e.split("."),n=[],r="";for(let e of t)(r+=e).endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}(e);return e=>{for(let n of t){if(""===n)break;e=e&&e[n]}return e}}(t));return n(e)}function et(e){return e.charAt(0).toUpperCase()+e.slice(1)}let en=e=>void 0!==e,er=e=>"function"==typeof e,ei=(e,t)=>{if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0};function eo(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}let el=Math.PI,ea=2*el,es=ea+el,eu=Number.POSITIVE_INFINITY,ec=el/180,ef=el/2,ed=el/4,eh=2*el/3,ep=Math.log10,eg=Math.sign;function em(e,t,n){return Math.abs(e-t)<n}function ey(e){let t=Math.round(e);e=em(e,t,e/1e3)?t:e;let n=Math.pow(10,Math.floor(ep(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function eb(e){let t;let n=[],r=Math.sqrt(e);for(t=1;t<r;t++)e%t==0&&(n.push(t),n.push(e/t));return r===(0|r)&&n.push(r),n.sort((e,t)=>e-t).pop(),n}function ev(e){return!isNaN(parseFloat(e))&&isFinite(e)}function ex(e,t){let n=Math.round(e);return n-t<=e&&n+t>=e}function ew(e,t,n){let r,i,o;for(r=0,i=e.length;r<i;r++)isNaN(o=e[r][n])||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function ek(e){return e*(el/180)}function eS(e){return e*(180/el)}function eC(e){if(!N(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function eR(e,t){let n=t.x-e.x,r=t.y-e.y,i=Math.atan2(r,n);return i<-.5*el&&(i+=ea),{angle:i,distance:Math.sqrt(n*n+r*r)}}function eE(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function eA(e,t){return(e-t+es)%ea-el}function eM(e){return(e%ea+ea)%ea}function eP(e,t,n,r){let i=eM(e),o=eM(t),l=eM(n),a=eM(o-i),s=eM(l-i),u=eM(i-o),c=eM(i-l);return i===o||i===l||r&&o===l||a>s&&u<c}function eO(e,t,n){return Math.max(t,Math.min(n,e))}function eT(e){return eO(e,-32768,32767)}function eI(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function e_(e,t,n){let r;n=n||(n=>e[n]<t);let i=e.length-1,o=0;for(;i-o>1;)n(r=o+i>>1)?o=r:i=r;return{lo:o,hi:i}}let eL=(e,t,n,r)=>e_(e,n,r?r=>{let i=e[r][t];return i<n||i===n&&e[r+1][t]===n}:r=>e[r][t]<n),eF=(e,t,n)=>e_(e,n,r=>e[r][t]>=n);function ez(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}let eB=["push","pop","shift","splice","unshift"];function eD(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),eB.forEach(t=>{let n="_onData"+et(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){let i=r.apply(this,t);return e._chartjs.listeners.forEach(e=>{"function"==typeof e[n]&&e[n](...t)}),i}})})}function eN(e,t){let n=e._chartjs;if(!n)return;let r=n.listeners,i=r.indexOf(t);-1!==i&&r.splice(i,1),r.length>0||(eB.forEach(t=>{delete e[t]}),delete e._chartjs)}function ej(e){let t=new Set(e);return t.size===e.length?e:Array.from(t)}let eV="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function eH(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,eV.call(window,()=>{r=!1,e.apply(t,n)}))}}function eZ(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}let eU=e=>"start"===e?"left":"end"===e?"right":"center",eq=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2,e$=(e,t,n,r)=>e===(r?"left":"right")?n:"center"===e?(t+n)/2:t;function eG(e,t,n){let r=t.length,i=0,o=r;if(e._sorted){let{iScale:l,_parsed:a}=e,s=l.axis,{min:u,max:c,minDefined:f,maxDefined:d}=l.getUserBounds();f&&(i=eO(Math.min(eL(a,s,u).lo,n?r:eL(t,s,l.getPixelForValue(u)).lo),0,r-1)),o=d?eO(Math.max(eL(a,l.axis,c,!0).hi+1,n?0:eL(t,s,l.getPixelForValue(c),!0).hi+1),i,r)-i:r-i}return{start:i,count:o}}function eW(e){let{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;let o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}let eY=e=>0===e||1===e,eX=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*ea/n)),eK=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*ea/n)+1,eQ={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*ef)+1,easeOutSine:e=>Math.sin(e*ef),easeInOutSine:e=>-.5*(Math.cos(el*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>eY(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(-Math.pow(2,-10*(2*e-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>eY(e)?e:eX(e,.075,.3),easeOutElastic:e=>eY(e)?e:eK(e,.075,.3),easeInOutElastic:e=>eY(e)?e:e<.5?.5*eX(2*e,.1125,.45):.5+.5*eK(2*e-1,.1125,.45),easeInBack:e=>e*e*(2.70158*e-1.70158),easeOutBack:e=>(e-=1)*e*(2.70158*e+1.70158)+1,easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-eQ.easeOutBounce(1-e),easeOutBounce:e=>e<.36363636363636365?7.5625*e*e:e<.7272727272727273?7.5625*(e-=.5454545454545454)*e+.75:e<.9090909090909091?7.5625*(e-=.8181818181818182)*e+.9375:7.5625*(e-=.9545454545454546)*e+.984375,easeInOutBounce:e=>e<.5?.5*eQ.easeInBounce(2*e):.5*eQ.easeOutBounce(2*e-1)+.5};function eJ(e){if(e&&"object"==typeof e){let t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function e0(e){return eJ(e)?e:new _(e)}function e1(e){return eJ(e)?e:new _(e).saturate(.5).darken(.1).hexString()}let e2=["x","y","borderWidth","radius","tension"],e5=["color","borderColor","backgroundColor"],e4=new Map;function e6(e,t,n){return(function(e,t){t=t||{};let n=e+JSON.stringify(t),r=e4.get(n);return r||(r=new Intl.NumberFormat(e,t),e4.set(n,r)),r})(t,n).format(e)}let e3={values:e=>B(e)?e:""+e,numeric(e,t,n){let r;if(0===e)return"0";let i=this.chart.options.locale,o=e;if(n.length>1){let t;let i=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(i<1e-4||i>1e15)&&(r="scientific"),Math.abs(t=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value)>=1&&e!==Math.floor(e)&&(t=e-Math.floor(e)),o=t}let l=ep(Math.abs(o)),a=isNaN(l)?1:Math.max(Math.min(-1*Math.floor(l),20),0),s={notation:r,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(s,this.options.ticks.format),e6(e,i,s)},logarithmic(e,t,n){if(0===e)return"0";let r=n[t].significand||e/Math.pow(10,Math.floor(ep(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?e3.numeric.call(this,e,t,n):""}};var e8={formatters:e3};let e9=Object.create(null),e7=Object.create(null);function te(e,t){if(!t)return e;let n=t.split(".");for(let t=0,r=n.length;t<r;++t){let r=n[t];e=e[r]||(e[r]=Object.create(null))}return e}function tt(e,t,n){return"string"==typeof t?X(te(e,t),n):X(te(e,""),t)}var tn=new class{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>e1(t.backgroundColor),this.hoverBorderColor=(e,t)=>e1(t.borderColor),this.hoverColor=(e,t)=>e1(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return tt(this,e,t)}get(e){return te(this,e)}describe(e,t){return tt(e7,e,t)}override(e,t){return tt(e9,e,t)}route(e,t,n,r){let i=te(this,e),o=te(this,n),l="_"+t;Object.defineProperties(i,{[l]:{value:i[t],writable:!0},[t]:{enumerable:!0,get(){let e=this[l],t=o[r];return D(e)?Object.assign({},t,e):V(e,t)},set(e){this[l]=e}}})}apply(e){e.forEach(e=>e(this))}}({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:e5},numbers:{type:"number",properties:e2}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:e8.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function tr(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function ti(e,t,n,r){let i,o,l,a,s;let u=(r=r||{}).data=r.data||{},c=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(u=r.data={},c=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let f=0,d=n.length;for(i=0;i<d;i++)if(null==(a=n[i])||B(a)){if(B(a))for(o=0,l=a.length;o<l;o++)null==(s=a[o])||B(s)||(f=tr(e,u,c,f,s))}else f=tr(e,u,c,f,a);e.restore();let h=c.length/2;if(h>n.length){for(i=0;i<h;i++)delete u[c[i]];c.splice(0,h)}return f}function to(e,t,n){let r=e.currentDevicePixelRatio,i=0!==n?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function tl(e,t){(t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function ta(e,t,n,r){ts(e,t,n,r,null)}function ts(e,t,n,r,i){let o,l,a,s,u,c,f,d;let h=t.pointStyle,p=t.rotation,g=t.radius,m=(p||0)*ec;if(h&&"object"==typeof h&&("[object HTMLImageElement]"===(o=h.toString())||"[object HTMLCanvasElement]"===o)){e.save(),e.translate(n,r),e.rotate(m),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!isNaN(g)&&!(g<=0)){switch(e.beginPath(),h){default:i?e.ellipse(n,r,i/2,g,0,0,ea):e.arc(n,r,g,0,ea),e.closePath();break;case"triangle":c=i?i/2:g,e.moveTo(n+Math.sin(m)*c,r-Math.cos(m)*g),m+=eh,e.lineTo(n+Math.sin(m)*c,r-Math.cos(m)*g),m+=eh,e.lineTo(n+Math.sin(m)*c,r-Math.cos(m)*g),e.closePath();break;case"rectRounded":u=.516*g,l=Math.cos(m+ed)*(s=g-u),f=Math.cos(m+ed)*(i?i/2-u:s),a=Math.sin(m+ed)*s,d=Math.sin(m+ed)*(i?i/2-u:s),e.arc(n-f,r-a,u,m-el,m-ef),e.arc(n+d,r-l,u,m-ef,m),e.arc(n+f,r+a,u,m,m+ef),e.arc(n-d,r+l,u,m+ef,m+el),e.closePath();break;case"rect":if(!p){s=Math.SQRT1_2*g,c=i?i/2:s,e.rect(n-c,r-s,2*c,2*s);break}m+=ed;case"rectRot":f=Math.cos(m)*(i?i/2:g),l=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(i?i/2:g),e.moveTo(n-f,r-a),e.lineTo(n+d,r-l),e.lineTo(n+f,r+a),e.lineTo(n-d,r+l),e.closePath();break;case"crossRot":m+=ed;case"cross":f=Math.cos(m)*(i?i/2:g),l=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(i?i/2:g),e.moveTo(n-f,r-a),e.lineTo(n+f,r+a),e.moveTo(n+d,r-l),e.lineTo(n-d,r+l);break;case"star":f=Math.cos(m)*(i?i/2:g),l=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(i?i/2:g),e.moveTo(n-f,r-a),e.lineTo(n+f,r+a),e.moveTo(n+d,r-l),e.lineTo(n-d,r+l),m+=ed,f=Math.cos(m)*(i?i/2:g),l=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(i?i/2:g),e.moveTo(n-f,r-a),e.lineTo(n+f,r+a),e.moveTo(n+d,r-l),e.lineTo(n-d,r+l);break;case"line":l=i?i/2:Math.cos(m)*g,a=Math.sin(m)*g,e.moveTo(n-l,r-a),e.lineTo(n+l,r+a);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(m)*(i?i/2:g),r+Math.sin(m)*g);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}function tu(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function tc(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function tf(e){e.restore()}function td(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if("middle"===i){let r=(t.x+n.x)/2;e.lineTo(r,t.y),e.lineTo(r,n.y)}else"after"===i!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function th(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function tp(e,t,n,r,i,o={}){let l,a;let s=B(t)?t:[t],u=o.strokeWidth>0&&""!==o.strokeColor;for(e.save(),e.font=i.string,o.translation&&e.translate(o.translation[0],o.translation[1]),z(o.rotation)||e.rotate(o.rotation),o.color&&(e.fillStyle=o.color),o.textAlign&&(e.textAlign=o.textAlign),o.textBaseline&&(e.textBaseline=o.textBaseline),l=0;l<s.length;++l)a=s[l],o.backdrop&&function(e,t){let n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}(e,o.backdrop),u&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),z(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(a,n,r,o.maxWidth)),e.fillText(a,n,r,o.maxWidth),function(e,t,n,r,i){if(i.strikethrough||i.underline){let o=e.measureText(r),l=t-o.actualBoundingBoxLeft,a=t+o.actualBoundingBoxRight,s=n-o.actualBoundingBoxAscent,u=n+o.actualBoundingBoxDescent,c=i.strikethrough?(s+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(l,c),e.lineTo(a,c),e.stroke()}}(e,n,r,a,o),r+=Number(i.lineHeight);e.restore()}function tg(e,t){let{x:n,y:r,w:i,h:o,radius:l}=t;e.arc(n+l.topLeft,r+l.topLeft,l.topLeft,1.5*el,el,!0),e.lineTo(n,r+o-l.bottomLeft),e.arc(n+l.bottomLeft,r+o-l.bottomLeft,l.bottomLeft,el,ef,!0),e.lineTo(n+i-l.bottomRight,r+o),e.arc(n+i-l.bottomRight,r+o-l.bottomRight,l.bottomRight,ef,0,!0),e.lineTo(n+i,r+l.topRight),e.arc(n+i-l.topRight,r+l.topRight,l.topRight,0,-ef,!0),e.lineTo(n+l.topLeft,r)}let tm=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,ty=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/,tb=e=>+e||0;function tv(e,t){let n={},r=D(t),i=r?Object.keys(t):t,o=D(e)?r?n=>V(e[n],e[t[n]]):t=>e[t]:()=>e;for(let e of i)n[e]=tb(o(e));return n}function tx(e){return tv(e,{top:"y",right:"x",bottom:"y",left:"x"})}function tw(e){return tv(e,["topLeft","topRight","bottomLeft","bottomRight"])}function tk(e){let t=tx(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function tS(e,t){e=e||{},t=t||tn.font;let n=V(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let r=V(e.style,t.style);r&&!(""+r).match(ty)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);let i={family:V(e.family,t.family),lineHeight:function(e,t){let n=(""+e).match(tm);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}(V(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:V(e.weight,t.weight),string:""};return i.string=!i||z(i.size)||z(i.family)?null:(i.style?i.style+" ":"")+(i.weight?i.weight+" ":"")+i.size+"px "+i.family,i}function tC(e,t,n,r){let i,o,l,a=!0;for(i=0,o=e.length;i<o;++i)if(void 0!==(l=e[i])&&(void 0!==t&&"function"==typeof l&&(l=l(t),a=!1),void 0!==n&&B(l)&&(l=l[n%l.length],a=!1),void 0!==l))return r&&!a&&(r.cacheable=!1),l}function tR(e,t,n){let{min:r,max:i}=e,o=Z(t,(i-r)/2),l=(e,t)=>n&&0===e?0:e+t;return{min:l(r,-Math.abs(o)),max:l(i,o)}}function tE(e,t){return Object.assign(Object.create(e),t)}function tA(e,t=[""],n,r,i=()=>e[0]){let o=n||e;void 0===r&&(r=tF("_fallback",e));let l={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:r,_getTarget:i,override:n=>tA([n,...e],t,o,r)};return new Proxy(l,{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,r)=>tT(n,r,()=>(function(e,t,n,r){let i;for(let o of t)if(void 0!==(i=tF(tP(o,e),n)))return tO(e,i)?t_(n,r,e,i):i})(r,t,e,n)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>tz(e).includes(t),ownKeys:e=>tz(e),set(e,t,n){let r=e._storage||(e._storage=i());return e[t]=r[t]=n,delete e._keys,!0}})}function tM(e,t={scriptable:!0,indexable:!0}){let{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:er(n)?n:()=>n,isIndexable:er(r)?r:()=>r}}let tP=(e,t)=>e?e+et(t):t,tO=(e,t)=>D(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function tT(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];let r=n();return e[t]=r,r}let tI=(e,t)=>!0===e?t:"string"==typeof e?ee(t,e):void 0;function t_(e,t,n,r){var i;let o=t._rootScopes,l=er(i=t._fallback)?i(n,r):i,a=[...e,...o],s=new Set;s.add(r);let u=tL(s,a,n,l||n,r);return null!==u&&(void 0===l||l===n||null!==(u=tL(s,a,l,u,r)))&&tA(Array.from(s),[""],o,l,()=>(function(e,t,n){let r=e._getTarget();t in r||(r[t]={});let i=r[t];return B(i)&&D(n)?n:i||{}})(t,n,r))}function tL(e,t,n,r,i){for(;n;)n=function(e,t,n,r,i){for(let l of t){let t=tI(n,l);if(t){var o;e.add(t);let l=er(o=t._fallback)?o(n,i):o;if(void 0!==l&&l!==n&&l!==r)return l}else if(!1===t&&void 0!==r&&n!==r)return null}return!1}(e,t,n,r,i);return n}function tF(e,t){for(let n of t){if(!n)continue;let t=n[e];if(void 0!==t)return t}}function tz(e){let t=e._keys;return t||(t=e._keys=function(e){let t=new Set;for(let n of e)for(let e of Object.keys(n).filter(e=>!e.startsWith("_")))t.add(e);return Array.from(t)}(e._scopes)),t}function tB(e,t,n,r){let i,o,l;let{iScale:a}=e,{key:s="r"}=this._parsing,u=Array(r);for(i=0;i<r;++i)l=t[o=i+n],u[i]={r:a.parse(ee(l,s),o)};return u}let tD=Number.EPSILON||1e-14,tN=(e,t)=>t<e.length&&!e[t].skip&&e[t],tj=e=>"x"===e?"y":"x";function tV(e,t,n){return Math.max(Math.min(e,n),t)}function tH(e,t,n,r,i){let o,l,a,s;if(t.spanGaps&&(e=e.filter(e=>!e.skip)),"monotone"===t.cubicInterpolationMode)!function(e,t="x"){let n,r,i;let o=tj(t),l=e.length,a=Array(l).fill(0),s=Array(l),u=tN(e,0);for(n=0;n<l;++n)if(r=i,i=u,u=tN(e,n+1),i){if(u){let e=u[t]-i[t];a[n]=0!==e?(u[o]-i[o])/e:0}s[n]=r?u?eg(a[n-1])!==eg(a[n])?0:(a[n-1]+a[n])/2:a[n-1]:a[n]}!function(e,t,n){let r,i,o,l,a;let s=e.length,u=tN(e,0);for(let c=0;c<s-1;++c)if(a=u,u=tN(e,c+1),a&&u){if(em(t[c],0,tD)){n[c]=n[c+1]=0;continue}(l=Math.pow(r=n[c]/t[c],2)+Math.pow(i=n[c+1]/t[c],2))<=9||(o=3/Math.sqrt(l),n[c]=r*o*t[c],n[c+1]=i*o*t[c])}}(e,a,s),function(e,t,n="x"){let r,i,o;let l=tj(n),a=e.length,s=tN(e,0);for(let u=0;u<a;++u){if(i=o,o=s,s=tN(e,u+1),!o)continue;let a=o[n],c=o[l];i&&(r=(a-i[n])/3,o[`cp1${n}`]=a-r,o[`cp1${l}`]=c-r*t[u]),s&&(r=(s[n]-a)/3,o[`cp2${n}`]=a+r,o[`cp2${l}`]=c+r*t[u])}}(e,s,t)}(e,i);else{let n=r?e[e.length-1]:e[0];for(o=0,l=e.length;o<l;++o)s=function(e,t,n,r){let i=e.skip?t:e,o=n.skip?t:n,l=eE(t,i),a=eE(o,t),s=l/(l+a),u=a/(l+a);s=isNaN(s)?0:s,u=isNaN(u)?0:u;let c=r*s,f=r*u;return{previous:{x:t.x-c*(o.x-i.x),y:t.y-c*(o.y-i.y)},next:{x:t.x+f*(o.x-i.x),y:t.y+f*(o.y-i.y)}}}(n,a=e[o],e[Math.min(o+1,l-(r?0:1))%l],t.tension),a.cp1x=s.previous.x,a.cp1y=s.previous.y,a.cp2x=s.next.x,a.cp2y=s.next.y,n=a}t.capBezierPoints&&function(e,t){let n,r,i,o,l;let a=tu(e[0],t);for(n=0,r=e.length;n<r;++n)l=o,o=a,a=n<r-1&&tu(e[n+1],t),o&&(i=e[n],l&&(i.cp1x=tV(i.cp1x,t.left,t.right),i.cp1y=tV(i.cp1y,t.top,t.bottom)),a&&(i.cp2x=tV(i.cp2x,t.left,t.right),i.cp2y=tV(i.cp2y,t.top,t.bottom)))}(e,n)}function tZ(){return"undefined"!=typeof window&&"undefined"!=typeof document}function tU(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function tq(e,t,n){let r;return"string"==typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}let t$=e=>e.ownerDocument.defaultView.getComputedStyle(e,null),tG=["top","right","bottom","left"];function tW(e,t,n){let r={};n=n?"-"+n:"";for(let i=0;i<4;i++){let o=tG[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}let tY=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function tX(e,t){if("native"in e)return e;let{canvas:n,currentDevicePixelRatio:r}=t,i=t$(n),o="border-box"===i.boxSizing,l=tW(i,"padding"),a=tW(i,"border","width"),{x:s,y:u,box:c}=function(e,t){let n,r;let i=e.touches,o=i&&i.length?i[0]:e,{offsetX:l,offsetY:a}=o,s=!1;if(tY(l,a,e.target))n=l,r=a;else{let e=t.getBoundingClientRect();n=o.clientX-e.left,r=o.clientY-e.top,s=!0}return{x:n,y:r,box:s}}(e,n),f=l.left+(c&&a.left),d=l.top+(c&&a.top),{width:h,height:p}=t;return o&&(h-=l.width+a.width,p-=l.height+a.height),{x:Math.round((s-f)/h*n.width/r),y:Math.round((u-d)/p*n.height/r)}}let tK=e=>Math.round(10*e)/10;function tQ(e,t,n,r){let i=t$(e),o=tW(i,"margin"),l=tq(i.maxWidth,e,"clientWidth")||eu,a=tq(i.maxHeight,e,"clientHeight")||eu,s=function(e,t,n){let r,i;if(void 0===t||void 0===n){let o=tU(e);if(o){let e=o.getBoundingClientRect(),l=t$(o),a=tW(l,"border","width"),s=tW(l,"padding");t=e.width-s.width-a.width,n=e.height-s.height-a.height,r=tq(l.maxWidth,o,"clientWidth"),i=tq(l.maxHeight,o,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||eu,maxHeight:i||eu}}(e,t,n),{width:u,height:c}=s;if("content-box"===i.boxSizing){let e=tW(i,"border","width"),t=tW(i,"padding");u-=t.width+e.width,c-=t.height+e.height}u=Math.max(0,u-o.width),c=Math.max(0,r?u/r:c-o.height),u=tK(Math.min(u,l,s.maxWidth)),c=tK(Math.min(c,a,s.maxHeight)),u&&!c&&(c=tK(u/2));let f=void 0!==t||void 0!==n;return f&&r&&s.height&&c>s.height&&(u=tK(Math.floor((c=s.height)*r))),{width:u,height:c}}function tJ(e,t,n){let r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);let l=e.canvas;return l.style&&(n||!l.style.height&&!l.style.width)&&(l.style.height=`${e.height}px`,l.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==r||l.height!==i||l.width!==o)&&(e.currentDevicePixelRatio=r,l.height=i,l.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0)}let t0=function(){let e=!1;try{let t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}();function t1(e,t){let n=t$(e).getPropertyValue(t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function t2(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function t5(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}}function t4(e,t,n,r){let i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},l=t2(e,i,n),a=t2(i,o,n),s=t2(o,t,n),u=t2(l,a,n),c=t2(a,s,n);return t2(u,c,n)}function t6(e,t,n){var r;return e?(r=n,{x:e=>t+t+r-e,setWidth(e){r=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function t3(e,t){let n,r;("ltr"===t||"rtl"===t)&&(r=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function t8(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function t9(e){return"angle"===e?{between:eP,compare:eA,normalize:eM}:{between:eI,compare:(e,t)=>e-t,normalize:e=>e}}function t7({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n==0,style:i}}function ne(e,t,n){let r,i,o;if(!n)return[e];let{property:l,start:a,end:s}=n,u=t.length,{compare:c,between:f,normalize:d}=t9(l),{start:h,end:p,loop:g,style:m}=function(e,t,n){let r;let{property:i,start:o,end:l}=n,{between:a,normalize:s}=t9(i),u=t.length,{start:c,end:f,loop:d}=e;if(d){for(c+=u,f+=u,r=0;r<u&&a(s(t[c%u][i]),o,l);++r)c--,f--;c%=u,f%=u}return f<c&&(f+=u),{start:c,end:f,loop:d,style:e.style}}(e,t,n),y=[],b=!1,v=null,x=()=>f(a,o,r)&&0!==c(a,o),w=()=>0===c(s,r)||f(s,o,r),k=()=>b||x(),S=()=>!b||w();for(let e=h,n=h;e<=p;++e)(i=t[e%u]).skip||(r=d(i[l]))===o||(b=f(r,a,s),null===v&&k()&&(v=0===c(r,a)?e:n),null!==v&&S()&&(y.push(t7({start:v,end:e,loop:g,count:u,style:m})),v=null),n=e,o=r);return null!==v&&y.push(t7({start:v,end:p,loop:g,count:u,style:m})),y}function nt(e,t){let n=[],r=e.segments;for(let i=0;i<r.length;i++){let o=ne(r[i],e.points,t);o.length&&n.push(...o)}return n}function nn(e,t){let n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];let o=!!e._loop,{start:l,end:a}=function(e,t,n,r){let i=0,o=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(o+=i);o>i&&e[o%t].skip;)o--;return{start:i,end:o%=t}}(n,i,o,r);if(!0===r)return nr(e,[{start:l,end:a,loop:o}],n,t);let s=a<l?a+i:a,u=!!e._fullLoop&&0===l&&a===i-1;return nr(e,function(e,t,n,r){let i;let o=e.length,l=[],a=t,s=e[t];for(i=t+1;i<=n;++i){let n=e[i%o];n.skip||n.stop?s.skip||(r=!1,l.push({start:t%o,end:(i-1)%o,loop:r}),t=a=n.stop?i:null):(a=i,s.skip&&(t=i)),s=n}return null!==a&&l.push({start:t%o,end:a%o,loop:r}),l}(n,l,s,u),n,t)}function nr(e,t,n,r){return r&&r.setContext&&n?function(e,t,n,r){let i=e._chart.getContext(),o=ni(e.options),{_datasetIndex:l,options:{spanGaps:a}}=e,s=n.length,u=[],c=o,f=t[0].start,d=f;function h(e,t,r,i){let o=a?-1:1;if(e!==t){for(e+=s;n[e%s].skip;)e-=o;for(;n[t%s].skip;)t+=o;e%s!=t%s&&(u.push({start:e%s,end:t%s,loop:r,style:i}),c=i,f=t%s)}}for(let e of t){let t;let o=n[(f=a?f:e.start)%s];for(d=f+1;d<=e.end;d++){let a=n[d%s];(function(e,t){if(!t)return!1;let n=[],r=function(e,t){return eJ(t)?(n.includes(t)||n.push(t),n.indexOf(t)):t};return JSON.stringify(e,r)!==JSON.stringify(t,r)})(t=ni(r.setContext(tE(i,{type:"segment",p0:o,p1:a,p0DataIndex:(d-1)%s,p1DataIndex:d%s,datasetIndex:l}))),c)&&h(f,d-1,e.loop,c),o=a,c=t}f<d-1&&h(f,d-1,e.loop,c)}return u}(e,t,n,r):t}function ni(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}},9116:function(e,t,n){"use strict";function r(){}n.d(t,{CT:function(){return p},NV:function(){return a},SY:function(){return c}}),r.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"==typeof n&&(r=n,n={}),this.options=n;var i=this;function o(e){return r?(setTimeout(function(){r(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var l=(t=this.removeEmpty(this.tokenize(t))).length,a=e.length,s=1,u=l+a;n.maxEditLength&&(u=Math.min(u,n.maxEditLength));var c=[{newPos:-1,components:[]}],f=this.extractCommon(c[0],t,e,0);if(c[0].newPos+1>=l&&f+1>=a)return o([{value:this.join(t),count:t.length}]);function d(){for(var n=-1*s;n<=s;n+=2){var r=void 0,u=c[n-1],f=c[n+1],d=(f?f.newPos:0)-n;u&&(c[n-1]=void 0);var h=u&&u.newPos+1<l,p=f&&0<=d&&d<a;if(!h&&!p){c[n]=void 0;continue}if(!h||p&&u.newPos<f.newPos?(r={newPos:f.newPos,components:f.components.slice(0)},i.pushComponent(r.components,void 0,!0)):(r=u,r.newPos++,i.pushComponent(r.components,!0,void 0)),d=i.extractCommon(r,t,e,n),r.newPos+1>=l&&d+1>=a)return o(function(e,t,n,r,i){for(var o=0,l=t.length,a=0,s=0;o<l;o++){var u=t[o];if(u.removed){if(u.value=e.join(r.slice(s,s+u.count)),s+=u.count,o&&t[o-1].added){var c=t[o-1];t[o-1]=t[o],t[o]=c}}else{if(!u.added&&i){var f=n.slice(a,a+u.count);f=f.map(function(e,t){var n=r[s+t];return n.length>e.length?n:e}),u.value=e.join(f)}else u.value=e.join(n.slice(a,a+u.count));a+=u.count,u.added||(s+=u.count)}}var d=t[l-1];return l>1&&"string"==typeof d.value&&(d.added||d.removed)&&e.equals("",d.value)&&(t[l-2].value+=d.value,t.pop()),t}(i,r.components,t,e,i.useLongestToken));c[n]=r}s++}if(r)!function e(){setTimeout(function(){if(s>u)return r();d()||e()},0)}();else for(;s<=u;){var h=d();if(h)return h}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var i=t.length,o=n.length,l=e.newPos,a=l-r,s=0;l+1<i&&a+1<o&&this.equals(t[l+1],n[a+1]);)l++,a++,s++;return s&&e.components.push({count:s}),e.newPos=l,a},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}},new r;var i=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,o=/\S/,l=new r;function a(e,t,n){return n=function(e,t){if("function"==typeof e)t.callback=e;else if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(n,{ignoreWhitespace:!0}),l.diff(e,t,n)}l.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!o.test(e)&&!o.test(t)},l.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&i.test(t[n])&&i.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var s=new r;s.tokenize=function(e){var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t};var u=new r;function c(e,t,n){return u.diff(e,t,n)}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}u.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)},new r().tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var d=Object.prototype.toString,h=new r;function p(e,t,n){return h.diff(e,t,n)}h.useLongestToken=!0,h.tokenize=s.tokenize,h.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=void 0===r?function(e,t){return void 0===t?n:t}:r;return"string"==typeof e?e:JSON.stringify(function e(t,n,r,i,o){for(n=n||[],r=r||[],i&&(t=i(o,t)),l=0;l<n.length;l+=1)if(n[l]===t)return r[l];if("[object Array]"===d.call(t)){for(n.push(t),a=Array(t.length),r.push(a),l=0;l<t.length;l+=1)a[l]=e(t[l],n,r,i,o);return n.pop(),r.pop(),a}if(t&&t.toJSON&&(t=t.toJSON()),"object"===f(t)&&null!==t){n.push(t),a={},r.push(a);var l,a,s,u=[];for(s in t)t.hasOwnProperty(s)&&u.push(s);for(u.sort(),l=0;l<u.length;l+=1)a[s=u[l]]=e(t[s],n,r,i,s);n.pop(),r.pop()}else a=t;return a}(e,null,null,i),i," ")},h.equals=function(e,t){return r.prototype.equals.call(h,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};var g=new r;g.tokenize=function(e){return e.slice()},g.join=g.removeEmpty=function(e){return e}},3425:function(e,t,n){"use strict";n.d(t,{U:function(){return nI}});var r={};n.r(r),n.d(r,{boolean:function(){return m},booleanish:function(){return y},commaOrSpaceSeparated:function(){return k},commaSeparated:function(){return w},number:function(){return v},overloadedBoolean:function(){return b},spaceSeparated:function(){return x}});var i={};n.r(i),n.d(i,{attentionMarkers:function(){return tP},contentInitial:function(){return tS},disable:function(){return tO},document:function(){return tk},flow:function(){return tR},flowInitial:function(){return tC},insideSpan:function(){return tM},string:function(){return tE},text:function(){return tA}});let o=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,l=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,a={};function s(e,t){let n=(t||a).jsx?l:o;return n.test(e)}let u=/[ \t\n\f\r]/g;function c(e){return""===e.replace(u,"")}class f{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function d(e,t){let n={},r={},i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new f(n,r,t)}function h(e){return e.toLowerCase()}f.prototype.property={},f.prototype.normal={},f.prototype.space=null;class p{constructor(e,t){this.property=e,this.attribute=t}}p.prototype.space=null,p.prototype.boolean=!1,p.prototype.booleanish=!1,p.prototype.overloadedBoolean=!1,p.prototype.number=!1,p.prototype.commaSeparated=!1,p.prototype.spaceSeparated=!1,p.prototype.commaOrSpaceSeparated=!1,p.prototype.mustUseProperty=!1,p.prototype.defined=!1;let g=0,m=S(),y=S(),b=S(),v=S(),x=S(),w=S(),k=S();function S(){return 2**++g}let C=Object.keys(r);class R extends p{constructor(e,t,n,i){var o,l;let a=-1;if(super(e,t),i&&(this.space=i),"number"==typeof n)for(;++a<C.length;){let e=C[a];o=C[a],(l=(n&r[e])===r[e])&&(this[o]=l)}}}R.prototype.defined=!0;let E={}.hasOwnProperty;function A(e){let t;let n={},r={};for(t in e.properties)if(E.call(e.properties,t)){let i=e.properties[t],o=new R(t,e.transform(e.attributes||{},t),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(t)&&(o.mustUseProperty=!0),n[t]=o,r[h(t)]=t,r[h(o.attribute)]=t}return new f(n,r,e.space)}let M=A({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),P=A({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function O(e,t){return t in e?e[t]:t}function T(e,t){return O(e,t.toLowerCase())}let I=A({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:T,properties:{xmlns:null,xmlnsXLink:null}}),_=A({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:y,ariaAutoComplete:null,ariaBusy:y,ariaChecked:y,ariaColCount:v,ariaColIndex:v,ariaColSpan:v,ariaControls:x,ariaCurrent:null,ariaDescribedBy:x,ariaDetails:null,ariaDisabled:y,ariaDropEffect:x,ariaErrorMessage:null,ariaExpanded:y,ariaFlowTo:x,ariaGrabbed:y,ariaHasPopup:null,ariaHidden:y,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:x,ariaLevel:v,ariaLive:null,ariaModal:y,ariaMultiLine:y,ariaMultiSelectable:y,ariaOrientation:null,ariaOwns:x,ariaPlaceholder:null,ariaPosInSet:v,ariaPressed:y,ariaReadOnly:y,ariaRelevant:null,ariaRequired:y,ariaRoleDescription:x,ariaRowCount:v,ariaRowIndex:v,ariaRowSpan:v,ariaSelected:y,ariaSetSize:v,ariaSort:null,ariaValueMax:v,ariaValueMin:v,ariaValueNow:v,ariaValueText:null,role:null}}),L=A({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:T,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:w,acceptCharset:x,accessKey:x,action:null,allow:null,allowFullScreen:m,allowPaymentRequest:m,allowUserMedia:m,alt:null,as:null,async:m,autoCapitalize:null,autoComplete:x,autoFocus:m,autoPlay:m,blocking:x,capture:m,charSet:null,checked:m,cite:null,className:x,cols:v,colSpan:null,content:null,contentEditable:y,controls:m,controlsList:x,coords:v|w,crossOrigin:null,data:null,dateTime:null,decoding:null,default:m,defer:m,dir:null,dirName:null,disabled:m,download:b,draggable:y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:m,formTarget:null,headers:x,height:v,hidden:m,high:v,href:null,hrefLang:null,htmlFor:x,httpEquiv:x,id:null,imageSizes:null,imageSrcSet:null,inert:m,inputMode:null,integrity:null,is:null,isMap:m,itemId:null,itemProp:x,itemRef:x,itemScope:m,itemType:x,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:m,low:v,manifest:null,max:null,maxLength:v,media:null,method:null,min:null,minLength:v,multiple:m,muted:m,name:null,nonce:null,noModule:m,noValidate:m,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:m,optimum:v,pattern:null,ping:x,placeholder:null,playsInline:m,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:m,referrerPolicy:null,rel:x,required:m,reversed:m,rows:v,rowSpan:v,sandbox:x,scope:null,scoped:m,seamless:m,selected:m,shadowRootDelegatesFocus:m,shadowRootMode:null,shape:null,size:v,sizes:null,slot:null,span:v,spellCheck:y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:v,step:null,style:null,tabIndex:v,target:null,title:null,translate:null,type:null,typeMustMatch:m,useMap:null,value:y,width:v,wrap:null,align:null,aLink:null,archive:x,axis:null,background:null,bgColor:null,border:v,borderColor:null,bottomMargin:v,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:m,declare:m,event:null,face:null,frame:null,frameBorder:null,hSpace:v,leftMargin:v,link:null,longDesc:null,lowSrc:null,marginHeight:v,marginWidth:v,noResize:m,noHref:m,noShade:m,noWrap:m,object:null,profile:null,prompt:null,rev:null,rightMargin:v,rules:null,scheme:null,scrolling:y,standby:null,summary:null,text:null,topMargin:v,valueType:null,version:null,vAlign:null,vLink:null,vSpace:v,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:m,disableRemotePlayback:m,prefix:null,property:null,results:v,security:null,unselectable:null}}),F=A({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:O,properties:{about:k,accentHeight:v,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:v,amplitude:v,arabicForm:null,ascent:v,attributeName:null,attributeType:null,azimuth:v,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:v,by:null,calcMode:null,capHeight:v,className:x,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:v,diffuseConstant:v,direction:null,display:null,dur:null,divisor:v,dominantBaseline:null,download:m,dx:null,dy:null,edgeMode:null,editable:null,elevation:v,enableBackground:null,end:null,event:null,exponent:v,externalResourcesRequired:null,fill:null,fillOpacity:v,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:w,g2:w,glyphName:w,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:v,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:v,horizOriginX:v,horizOriginY:v,id:null,ideographic:v,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:v,k:v,k1:v,k2:v,k3:v,k4:v,kernelMatrix:k,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:v,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:v,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:v,overlineThickness:v,paintOrder:null,panose1:null,path:null,pathLength:v,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:x,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:v,pointsAtY:v,pointsAtZ:v,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:k,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:k,rev:k,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:k,requiredFeatures:k,requiredFonts:k,requiredFormats:k,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:v,specularExponent:v,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:v,strikethroughThickness:v,string:null,stroke:null,strokeDashArray:k,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:v,strokeOpacity:v,strokeWidth:null,style:null,surfaceScale:v,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:k,tabIndex:v,tableValues:null,target:null,targetX:v,targetY:v,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:k,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:v,underlineThickness:v,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:v,values:null,vAlphabetic:v,vMathematical:v,vectorEffect:null,vHanging:v,vIdeographic:v,version:null,vertAdvY:v,vertOriginX:v,vertOriginY:v,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:v,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),z=d([P,M,I,_,L],"html"),B=d([P,M,I,_,F],"svg"),D=/^data[-\w.:]+$/i,N=/-[a-z]/g,j=/[A-Z]/g;function V(e){return"-"+e.toLowerCase()}function H(e){return e.charAt(1).toUpperCase()}let Z={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var U=n(5406),q=U.default||U;let $=W("end"),G=W("start");function W(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function Y(e){return e&&"object"==typeof e?"position"in e||"type"in e?K(e.position):"start"in e||"end"in e?K(e):"line"in e||"column"in e?X(e):"":""}function X(e){return Q(e&&e.line)+":"+Q(e&&e.column)}function K(e){return X(e&&e.start)+"-"+X(e&&e.end)}function Q(e){return e&&"number"==typeof e?e:1}class J extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t?{place:t}:"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let l=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=l?l.line:void 0,this.name=Y(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}J.prototype.file="",J.prototype.name="",J.prototype.reason="",J.prototype.message="",J.prototype.stack="",J.prototype.column=void 0,J.prototype.line=void 0,J.prototype.ancestors=void 0,J.prototype.cause=void 0,J.prototype.fatal=void 0,J.prototype.place=void 0,J.prototype.ruleId=void 0,J.prototype.source=void 0;let ee={}.hasOwnProperty,et=new Map,en=/[A-Z]/g,er=/-([a-z])/g,ei=new Set(["table","tbody","thead","tfoot","tr"]),eo=new Set(["td","th"]),el="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ea(e,t,n){return"element"===t.type?function(e,t,n){let r=e.schema,i=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(i=B,e.schema=i),e.ancestors.push(t);let o=ef(e,t.tagName,!1),l=function(e,t){let n,r;let i={};for(r in t.properties)if("children"!==r&&ee.call(t.properties,r)){let o=function(e,t,n){let r=function(e,t){let n=h(t),r=t,i=p;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&D.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(N,H);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!N.test(e)){let n=e.replace(j,V);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=R}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){let n={},r=""===e[e.length-1]?[...e,""]:e;return r.join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){let n={};try{q(t,function(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(er,eh)),n[r]=t})}catch(t){if(!e.ignoreInvalidStyle){let n=new J("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=el+"#cannot-parse-style-attribute",n}}return n}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t;let n={};for(t in e)ee.call(e,t)&&(n[function(e){let t=e.replace(en,ep);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?Z[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(o){let[r,l]=o;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof l&&eo.has(t.tagName)?n=l:i[r]=l}}if(n){let t=i.style||(i.style={});t["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n}return i}(e,t),a=ec(e,t);return ei.has(t.tagName)&&(a=a.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&c(e.value):c(e))})),es(e,l,o,t),eu(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree,r=n.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}ed(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){let r=e.schema,i=r;"svg"===t.name&&"html"===r.space&&(i=B,e.schema=i),e.ancestors.push(t);let o=null===t.name?e.Fragment:ef(e,t.name,!0),l=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree,i=t.body[0];i.type;let o=i.expression;o.type;let l=o.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else ed(e,t.position)}else{let i;let o=r.name;if(r.value&&"object"==typeof r.value){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree,n=t.body[0];n.type,i=e.evaluater.evaluateExpression(n.expression)}else ed(e,t.position)}else i=null===r.value||r.value;n[o]=i}return n}(e,t),a=ec(e,t);return es(e,l,o,t),eu(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ed(e,t.position)}(e,t):"root"===t.type?function(e,t,n){let r={};return eu(r,ec(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?t.value:void 0}function es(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function eu(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function ec(e,t){let n=[],r=-1,i=e.passKeys?new Map:et;for(;++r<t.children.length;){let o;let l=t.children[r];if(e.passKeys){let e="element"===l.type?l.tagName:"mdxJsxFlowElement"===l.type||"mdxJsxTextElement"===l.type?l.name:void 0;if(e){let t=i.get(e)||0;o=e+"-"+t,i.set(e,t+1)}}let a=ea(e,l,o);void 0!==a&&n.push(a)}return n}function ef(e,t,n){let r;if(n){if(t.includes(".")){let e;let n=t.split("."),i=-1;for(;++i<n.length;){let t=s(n[i])?{type:"Identifier",name:n[i]}:{type:"Literal",value:n[i]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(i&&"Literal"===t.type),optional:!1}:t}r=e}else r=s(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t}}else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return ee.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);ed(e)}function ed(e,t){let n=new J("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=el+"#cannot-handle-mdx-estrees-without-createevaluater",n}function eh(e,t){return t.toUpperCase()}function ep(e){return"-"+e.toLowerCase()}let eg={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var em=n(7437);let ey={};function eb(e,t,n){if(e&&"object"==typeof e){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ev(e.children,t,n)}return Array.isArray(e)?ev(e,t,n):""}function ev(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=eb(e[i],t,n);return r.join("")}function ex(e,t,n,r){let i;let o=e.length,l=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);l<r.length;)(i=r.slice(l,l+1e4)).unshift(t,0),e.splice(...i),l+=1e4,t+=1e4}function ew(e,t){return e.length>0?(ex(e,e.length,0,t),e):t}function ek(e){let t,n,r,i,o,l,a;let s={},u=-1;for(;++u<e.length;){for(;(u in s);)u=s[u];if(t=e[u],u&&"chunkFlow"===t[1].type&&"listItemPrefix"===e[u-1][1].type&&((r=0)<(l=t[1]._tokenizer.events).length&&"lineEndingBlank"===l[r][1].type&&(r+=2),r<l.length&&"content"===l[r][1].type))for(;++r<l.length&&"content"!==l[r][1].type;)"chunkText"===l[r][1].type&&(l[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(s,function(e,t){let n,r;let i=e[t][1],o=e[t][2],l=t-1,a=[],s=i._tokenizer||o.parser[i.contentType](i.start),u=s.events,c=[],f={},d=-1,h=i,p=0,g=0,m=[g];for(;h;){for(;e[++l][1]!==h;);a.push(l),!h._tokenizer&&(n=o.sliceStream(h),h.next||n.push(null),r&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(n),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),r=h,h=h.next}for(h=i;++d<u.length;)"exit"===u[d][0]&&"enter"===u[d-1][0]&&u[d][1].type===u[d-1][1].type&&u[d][1].start.line!==u[d][1].end.line&&(g=d+1,m.push(g),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):m.pop(),d=m.length;d--;){let t=u.slice(m[d],m[d+1]),n=a.pop();c.unshift([n,n+t.length-1]),ex(e,n,2,t)}for(d=-1;++d<c.length;)f[p+c[d][0]]=p+c[d][1],p+=c[d][1]-c[d][0]-1;return f}(e,u)),u=s[u],a=!0);else if(t[1]._container){for(r=u,n=void 0;r--;)if("lineEnding"===(i=e[r])[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(e[n][1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else break;n&&(t[1].end=Object.assign({},e[n][1].start),(o=e.slice(n,u)).unshift(t),ex(e,n,u-n+1,o))}}return!a}let eS={}.hasOwnProperty,eC=ez(/\p{P}/u),eR=ez(/[A-Za-z]/),eE=ez(/[\dA-Za-z]/),eA=ez(/[#-'*+\--9=?A-Z^-~]/);function eM(e){return null!==e&&(e<32||127===e)}let eP=ez(/\d/),eO=ez(/[\dA-Fa-f]/),eT=ez(/[!-/:-@[-`{-~]/);function eI(e){return null!==e&&e<-2}function e_(e){return null!==e&&(e<0||32===e)}function eL(e){return -2===e||-1===e||32===e}let eF=ez(/\s/);function ez(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function eB(e,t,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,o=0;return function(r){return eL(r)?(e.enter(n),function r(l){return eL(l)&&o++<i?(e.consume(l),r):(e.exit(n),t(l))}(r)):t(r)}}let eD={tokenize:function(e){let t;let n=e.attempt(this.parser.constructs.contentInitial,function(t){if(null===t){e.consume(t);return}return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eB(e,n,"linePrefix")},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return eI(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},eN={tokenize:function(e){let t,n,r;let i=this,o=[],l=0;return a;function a(t){if(l<o.length){let n=o[l];return i.containerState=n[1],e.attempt(n[0].continuation,s,u)(t)}return u(t)}function s(e){if(l++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&y();let r=i.events.length,o=r;for(;o--;)if("exit"===i.events[o][0]&&"chunkFlow"===i.events[o][1].type){n=i.events[o][1].end;break}m(l);let a=r;for(;a<i.events.length;)i.events[a][1].end=Object.assign({},n),a++;return ex(i.events,o+1,0,i.events.slice(r)),i.events.length=a,u(e)}return a(e)}function u(n){if(l===o.length){if(!t)return d(n);if(t.currentConstruct&&t.currentConstruct.concrete)return p(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(ej,c,f)(n)}function c(e){return t&&y(),m(l),d(e)}function f(e){return i.parser.lazy[i.now().line]=l!==o.length,r=i.now().offset,p(e)}function d(t){return i.containerState={},e.attempt(ej,h,p)(t)}function h(e){return l++,o.push([i.currentConstruct,i.containerState]),d(e)}function p(r){if(null===r){t&&y(),m(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{contentType:"flow",previous:n,_tokenizer:t}),function t(n){if(null===n){g(e.exit("chunkFlow"),!0),m(0),e.consume(n);return}return eI(n)?(e.consume(n),g(e.exit("chunkFlow")),l=0,i.interrupt=void 0,a):(e.consume(n),t)}(r)}function g(e,o){let a=i.sliceStream(e);if(o&&a.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(a),i.parser.lazy[e.start.line]){let e,n,o=t.events.length;for(;o--;)if(t.events[o][1].start.offset<r&&(!t.events[o][1].end||t.events[o][1].end.offset>r))return;let a=i.events.length,s=a;for(;s--;)if("exit"===i.events[s][0]&&"chunkFlow"===i.events[s][1].type){if(e){n=i.events[s][1].end;break}e=!0}for(m(l),o=a;o<i.events.length;)i.events[o][1].end=Object.assign({},n),o++;ex(i.events,s+1,0,i.events.slice(a)),i.events.length=o}}function m(t){let n=o.length;for(;n-- >t;){let t=o[n];i.containerState=t[1],t[0].exit.call(i,e)}o.length=t}function y(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},ej={tokenize:function(e,t,n){return eB(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},eV={tokenize:function(e,t,n){return function(t){return eL(t)?eB(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||eI(e)?t(e):n(e)}},partial:!0},eH={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):eI(t)?e.check(eZ,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return ek(e),e}},eZ={tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eB(e,i,"linePrefix")};function i(i){if(null===i||eI(i))return n(i);let o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}},partial:!0},eU={tokenize:function(e){let t=this,n=e.attempt(eV,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,eB(e,e.attempt(this.parser.constructs.flow,r,e.attempt(eH,r)),"linePrefix")));return n;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}},eq={resolveAll:eY()},e$=eW("string"),eG=eW("text");function eW(e){return{tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,o,l);return o;function o(e){return s(e)?i(e):l(e)}function l(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),a}function a(e){return s(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function s(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:eY("text"===e?eX:void 0)}}function eY(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function eX(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r;let i=e[n-1][1],o=t.sliceStream(i),l=o.length,a=-1,s=0;for(;l--;){let e=o[l];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)s++,a--;if(a)break;a=-1}else if(-2===e)r=!0,s++;else if(-1===e);else{l++;break}}if(s){let o={type:n===e.length||r||s<2?"lineSuffix":"hardBreakTrailing",start:{line:i.end.line,column:i.end.column-s,offset:i.end.offset-s,_index:i.start._index+l,_bufferIndex:l?a:i.start._bufferIndex+a},end:Object.assign({},i.end)};i.end=Object.assign({},o.start),i.start.offset===i.end.offset?Object.assign(i,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}function eK(e,t,n){let r=[],i=-1;for(;++i<e.length;){let o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}let eQ={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(o){return e.enter("thematicBreak"),r=o,function o(l){return l===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),eL(n)?eB(e,o,"whitespace")(n):o(n))}(l)):i>=3&&(null===l||eI(l))?(e.exit("thematicBreak"),t(l)):n(l)}(o)}}},eJ={name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,l=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:eP(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(eQ,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return eP(i)&&++l<10?(e.consume(i),t):(!r.interrupt||l<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),a(i)):n(i)}(t)}return n(t)};function a(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(eV,r.interrupt?n:s,e.attempt(e0,c,u))}function s(e){return r.containerState.initialBlankLine=!0,o++,c(e)}function u(t){return eL(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(eV,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,eB(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!eL(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(e1,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,eB(e,e.attempt(eJ,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},e0={tokenize:function(e,t,n){let r=this;return eB(e,function(e){let i=r.events[r.events.length-1];return!eL(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},e1={tokenize:function(e,t,n){let r=this;return eB(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)},partial:!0},e2={name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return eL(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){let r=this;return function(t){return eL(t)?eB(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(e2,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function e5(e,t,n,r,i,o,l,a,s){let u=s||Number.POSITIVE_INFINITY,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),f):null===t||32===t||41===t||eM(t)?n(t):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),p(t))};function f(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(a),f(t)):null===t||60===t||eI(t)?n(t):(e.consume(t),92===t?h:d)}function h(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function p(i){return!c&&(null===i||41===i||e_(i))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),t(i)):c<u&&40===i?(e.consume(i),c++,p):41===i?(e.consume(i),c--,p):null===i||32===i||40===i||eM(i)?n(i):(e.consume(i),92===i?g:p)}function g(t){return 40===t||41===t||92===t?(e.consume(t),p):p(t)}}function e4(e,t,n,r,i,o){let l;let a=this,s=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),u};function u(f){return s>999||null===f||91===f||93===f&&!l||94===f&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(f):93===f?(e.exit(o),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):eI(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(t){return null===t||91===t||93===t||eI(t)||s++>999?(e.exit("chunkString"),u(t)):(e.consume(t),l||(l=!eL(t)),92===t?f:c)}function f(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function e6(e,t,n,r,i,o){let l;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),l=40===t?41:t,a):n(t)};function a(n){return n===l?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),s(n))}function s(t){return t===l?(e.exit(o),a(l)):null===t?n(t):eI(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eB(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===l||null===t||eI(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return t===l||92===t?(e.consume(t),u):u(t)}}function e3(e,t){let n;return function r(i){return eI(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):eL(i)?eB(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function e8(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let e9={tokenize:function(e,t,n){return function(t){return e_(t)?e3(e,r)(t):n(t)};function r(t){return e6(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return eL(t)?eB(e,o,"whitespace")(t):o(t)}function o(e){return null===e||eI(e)?t(e):n(e)}},partial:!0},e7={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),eB(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?o(n):eI(n)?e.attempt(te,t,o)(n):(e.enter("codeFlowValue"),function n(r){return null===r||eI(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function o(n){return e.exit("codeIndented"),t(n)}}},te={tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):eI(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):eB(e,o,"linePrefix",5)(t)}function o(e){let o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):eI(e)?i(e):n(e)}},partial:!0},tt={name:"setextUnderline",tokenize:function(e,t,n){let r;let i=this;return function(t){let l,a=i.events.length;for(;a--;)if("lineEnding"!==i.events[a][1].type&&"linePrefix"!==i.events[a][1].type&&"content"!==i.events[a][1].type){l="paragraph"===i.events[a][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||l)?(e.enter("setextHeadingLine"),r=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),eL(n)?eB(e,o,"lineSuffix")(n):o(n))}(t)):n(t)};function o(r){return null===r||eI(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);let l={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",l,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[i][1].end)):e[n][1]=l,e.push(["exit",l,t]),e}},tn=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],tr=["pre","script","style","textarea"],ti={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(eV,t,n)}},partial:!0},to={tokenize:function(e,t,n){let r=this;return function(t){return eI(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},tl={tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},ta={name:"codeFenced",tokenize:function(e,t,n){let r;let i=this,o={tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l};function l(t){return e.enter("codeFencedFence"),eL(t)?eB(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(o++,e.consume(i),t):o>=a?(e.exit("codeFencedFenceSequence"),eL(i)?eB(e,u,"whitespace")(i):u(i)):n(i)}(t)):n(t)}function u(r){return null===r||eI(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0},l=0,a=0;return function(t){return function(t){let o=i.events[i.events.length-1];return l=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a<3?n(i):(e.exit("codeFencedFenceSequence"),eL(i)?eB(e,s,"whitespace")(i):s(i))}(t)}(t)};function s(o){return null===o||eI(o)?(e.exit("codeFencedFence"),i.interrupt?t(o):e.check(tl,c,p)(o)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eI(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(i)):eL(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),eB(e,u,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(o))}function u(t){return null===t||eI(t)?s(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eI(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(o,p,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d}function d(t){return l>0&&eL(t)?eB(e,h,"linePrefix",l+1)(t):h(t)}function h(t){return null===t||eI(t)?e.check(tl,c,p)(t):(e.enter("codeFlowValue"),function t(n){return null===n||eI(n)?(e.exit("codeFlowValue"),h(n)):(e.consume(n),t)}(t))}function p(n){return e.exit("codeFenced"),t(n)}},concrete:!0},ts=document.createElement("i");function tu(e){let t="&"+e+";";ts.innerHTML=t;let n=ts.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let tc={name:"characterReference",tokenize:function(e,t,n){let r,i;let o=this,l=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),r=31,i=eE,u(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=eO,u):(e.enter("characterReferenceValue"),r=7,i=eP,u(t))}function u(a){if(59===a&&l){let r=e.exit("characterReferenceValue");return i!==eE||tu(o.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return i(a)&&l++<r?(e.consume(a),u):n(a)}}},tf={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return eT(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},td={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),eB(e,t,"linePrefix")}}},th={name:"labelEnd",tokenize:function(e,t,n){let r,i;let o=this,l=o.events.length;for(;l--;)if(("labelImage"===o.events[l][1].type||"labelLink"===o.events[l][1].type)&&!o.events[l][1]._balanced){r=o.events[l][1];break}return function(t){return r?r._inactive?c(t):(i=o.parser.defined.includes(e8(o.sliceSerialize({start:r.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a):n(t)};function a(t){return 40===t?e.attempt(tp,u,i?u:c)(t):91===t?e.attempt(tg,u,i?s:c)(t):i?u(t):c(t)}function s(t){return e.attempt(tm,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}},resolveTo:function(e,t){let n,r,i,o,l=e.length,a=0;for(;l--;)if(n=e[l][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[l][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[l][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=l,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(i=l);let s={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[i][1].end)},c={type:"labelText",start:Object.assign({},e[r+a+2][1].end),end:Object.assign({},e[i-2][1].start)};return o=ew(o=[["enter",s,t],["enter",u,t]],e.slice(r+1,r+a+3)),o=ew(o,[["enter",c,t]]),o=ew(o,eK(t.parser.constructs.insideSpan.null,e.slice(r+a+4,i-3),t)),o=ew(o,[["exit",c,t],e[i-2],e[i-1],["exit",u,t]]),o=ew(o,e.slice(i+1)),o=ew(o,[["exit",s,t]]),ex(e,r,e.length,o),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){let n=e[t][1];("labelImage"===n.type||"labelLink"===n.type||"labelEnd"===n.type)&&(e.splice(t+1,"labelImage"===n.type?4:2),n.type="data",t++)}return e}},tp={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return e_(t)?e3(e,i)(t):i(t)}function i(t){return 41===t?u(t):e5(e,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return e_(t)?e3(e,a)(t):u(t)}function l(e){return n(e)}function a(t){return 34===t||39===t||40===t?e6(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function s(t){return e_(t)?e3(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},tg={tokenize:function(e,t,n){let r=this;return function(t){return e4.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(e8(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},tm={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},ty={name:"labelStartImage",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:th.resolveAll};function tb(e){return null===e||e_(e)||eF(e)?1:eT(e)||eC(e)?2:void 0}let tv={name:"attention",tokenize:function(e,t){let n;let r=this.parser.constructs.attentionMarkers.null,i=this.previous,o=tb(i);return function(l){return n=l,e.enter("attentionSequence"),function l(a){if(a===n)return e.consume(a),l;let s=e.exit("attentionSequence"),u=tb(a),c=!u||2===u&&o||r.includes(a),f=!o||2===o&&u||r.includes(i);return s._open=!!(42===n?c:c&&(o||!f)),s._close=!!(42===n?f:f&&(u||!c)),t(a)}(l)}},resolveAll:function(e,t){let n,r,i,o,l,a,s,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close){for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let f=Object.assign({},e[n][1].end),d=Object.assign({},e[c][1].start);tx(f,-a),tx(d,a),o={type:a>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[n][1].end)},l={type:a>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:d},i={type:a>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[c][1].start)},r={type:a>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},l.end)},e[n][1].end=Object.assign({},o.start),e[c][1].start=Object.assign({},l.end),s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=ew(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=ew(s,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),s=ew(s,eK(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),s=ew(s,[["exit",i,t],["enter",l,t],["exit",l,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,s=ew(s,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,ex(e,n-1,c-n+3,s),c=n+s.length-u-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e}};function tx(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let tw={name:"labelStartLink",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:th.resolveAll},tk={42:eJ,43:eJ,45:eJ,48:eJ,49:eJ,50:eJ,51:eJ,52:eJ,53:eJ,54:eJ,55:eJ,56:eJ,57:eJ,62:e2},tS={91:{name:"definition",tokenize:function(e,t,n){let r;let i=this;return function(t){return e.enter("definition"),e4.call(i,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function o(t){return(r=e8(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),l):n(t)}function l(t){return e_(t)?e3(e,a)(t):a(t)}function a(t){return e5(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(e9,u,u)(t)}function u(t){return eL(t)?eB(e,c,"whitespace")(t):c(t)}function c(o){return null===o||eI(o)?(e.exit("definition"),i.parser.defined.push(r),t(o)):n(o)}}}},tC={[-2]:e7,[-1]:e7,32:e7},tR={35:{name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(i){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),function i(o){return 35===o&&r++<6?(e.consume(o),i):null===o||e_(o)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||eI(r)?(e.exit("atxHeading"),t(r)):eL(r)?eB(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||e_(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(o)):n(o)}(i)}},resolve:function(e,t){let n,r,i=e.length-2,o=3;return"whitespace"===e[3][1].type&&(o+=2),i-2>o&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},ex(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}},42:eQ,45:[tt,eQ],60:{name:"htmlFlow",tokenize:function(e,t,n){let r,i,o,l,a;let s=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u};function u(l){return 33===l?(e.consume(l),c):47===l?(e.consume(l),i=!0,h):63===l?(e.consume(l),r=3,s.interrupt?t:I):eR(l)?(e.consume(l),o=String.fromCharCode(l),p):n(l)}function c(i){return 45===i?(e.consume(i),r=2,f):91===i?(e.consume(i),r=5,l=0,d):eR(i)?(e.consume(i),r=4,s.interrupt?t:I):n(i)}function f(r){return 45===r?(e.consume(r),s.interrupt?t:I):n(r)}function d(r){let i="CDATA[";return r===i.charCodeAt(l++)?(e.consume(r),l===i.length)?s.interrupt?t:C:d:n(r)}function h(t){return eR(t)?(e.consume(t),o=String.fromCharCode(t),p):n(t)}function p(l){if(null===l||47===l||62===l||e_(l)){let a=47===l,u=o.toLowerCase();return!a&&!i&&tr.includes(u)?(r=1,s.interrupt?t(l):C(l)):tn.includes(o.toLowerCase())?(r=6,a)?(e.consume(l),g):s.interrupt?t(l):C(l):(r=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(l):i?function t(n){return eL(n)?(e.consume(n),t):k(n)}(l):m(l))}return 45===l||eE(l)?(e.consume(l),o+=String.fromCharCode(l),p):n(l)}function g(r){return 62===r?(e.consume(r),s.interrupt?t:C):n(r)}function m(t){return 47===t?(e.consume(t),k):58===t||95===t||eR(t)?(e.consume(t),y):eL(t)?(e.consume(t),m):k(t)}function y(t){return 45===t||46===t||58===t||95===t||eE(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),v):eL(t)?(e.consume(t),b):m(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,x):eL(t)?(e.consume(t),v):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||e_(n)?b(n):(e.consume(n),t)}(t)}function x(t){return t===a?(e.consume(t),a=null,w):null===t||eI(t)?n(t):(e.consume(t),x)}function w(e){return 47===e||62===e||eL(e)?m(e):n(e)}function k(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||eI(t)?C(t):eL(t)?(e.consume(t),S):n(t)}function C(t){return 45===t&&2===r?(e.consume(t),M):60===t&&1===r?(e.consume(t),P):62===t&&4===r?(e.consume(t),_):63===t&&3===r?(e.consume(t),I):93===t&&5===r?(e.consume(t),T):eI(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(ti,L,R)(t)):null===t||eI(t)?(e.exit("htmlFlowData"),R(t)):(e.consume(t),C)}function R(t){return e.check(to,E,L)(t)}function E(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),A}function A(t){return null===t||eI(t)?R(t):(e.enter("htmlFlowData"),C(t))}function M(t){return 45===t?(e.consume(t),I):C(t)}function P(t){return 47===t?(e.consume(t),o="",O):C(t)}function O(t){if(62===t){let n=o.toLowerCase();return tr.includes(n)?(e.consume(t),_):C(t)}return eR(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),O):C(t)}function T(t){return 93===t?(e.consume(t),I):C(t)}function I(t){return 62===t?(e.consume(t),_):45===t&&2===r?(e.consume(t),I):C(t)}function _(t){return null===t||eI(t)?(e.exit("htmlFlowData"),L(t)):(e.consume(t),_)}function L(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},concrete:!0},61:tt,95:eQ,96:ta,126:ta},tE={38:tc,92:tf},tA={[-5]:td,[-4]:td,[-3]:td,33:ty,38:tc,42:tv,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return eR(t)?(e.consume(t),o):a(t)}function o(t){return 43===t||45===t||46===t||eE(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,l):(43===n||45===n||46===n||eE(n))&&r++<32?(e.consume(n),t):(r=0,a(n))}(t)):a(t)}function l(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||eM(r)?n(r):(e.consume(r),l)}function a(t){return 64===t?(e.consume(t),s):eA(t)?(e.consume(t),a):n(t)}function s(i){return eE(i)?function i(o){return 46===o?(e.consume(o),r=0,s):62===o?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(o),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(o){if((45===o||eE(o))&&r++<63){let n=45===o?t:i;return e.consume(o),n}return n(o)}(o)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,o;let l=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),x):63===t?(e.consume(t),b):eR(t)?(e.consume(t),k):n(t)}function s(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,h):eR(t)?(e.consume(t),y):n(t)}function u(t){return 45===t?(e.consume(t),d):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),f):eI(t)?(o=c,O(t)):(e.consume(t),c)}function f(t){return 45===t?(e.consume(t),d):c(t)}function d(e){return 62===e?P(e):45===e?f(e):c(e)}function h(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?p:h):n(t)}function p(t){return null===t?n(t):93===t?(e.consume(t),g):eI(t)?(o=p,O(t)):(e.consume(t),p)}function g(t){return 93===t?(e.consume(t),m):p(t)}function m(t){return 62===t?P(t):93===t?(e.consume(t),m):p(t)}function y(t){return null===t||62===t?P(t):eI(t)?(o=y,O(t)):(e.consume(t),y)}function b(t){return null===t?n(t):63===t?(e.consume(t),v):eI(t)?(o=b,O(t)):(e.consume(t),b)}function v(e){return 62===e?P(e):b(e)}function x(t){return eR(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||eE(t)?(e.consume(t),w):function t(n){return eI(n)?(o=t,O(n)):eL(n)?(e.consume(n),t):P(n)}(t)}function k(t){return 45===t||eE(t)?(e.consume(t),k):47===t||62===t||e_(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),P):58===t||95===t||eR(t)?(e.consume(t),C):eI(t)?(o=S,O(t)):eL(t)?(e.consume(t),S):P(t)}function C(t){return 45===t||46===t||58===t||95===t||eE(t)?(e.consume(t),C):function t(n){return 61===n?(e.consume(n),R):eI(n)?(o=t,O(n)):eL(n)?(e.consume(n),t):S(n)}(t)}function R(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,E):eI(t)?(o=R,O(t)):eL(t)?(e.consume(t),R):(e.consume(t),A)}function E(t){return t===r?(e.consume(t),r=void 0,M):null===t?n(t):eI(t)?(o=E,O(t)):(e.consume(t),E)}function A(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||e_(t)?S(t):(e.consume(t),A)}function M(e){return 47===e||62===e||e_(e)?S(e):n(e)}function P(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function O(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),T}function T(t){return eL(t)?eB(e,I,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):I(t)}function I(t){return e.enter("htmlTextData"),o(t)}}}],91:tw,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return eI(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},tf],93:th,95:tv,96:{name:"codeText",tokenize:function(e,t,n){let r,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),o++,t):(e.exit("codeTextSequence"),l(n))}(t)};function l(s){return null===s?n(s):32===s?(e.enter("space"),e.consume(s),e.exit("space"),l):96===s?(i=e.enter("codeTextSequence"),r=0,function n(l){return 96===l?(e.consume(l),r++,n):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(l)):(i.type="codeTextData",a(l))}(s)):eI(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),l):(e.enter("codeTextData"),a(s))}function a(t){return null===t||32===t||96===t||eI(t)?(e.exit("codeTextData"),l(t)):(e.consume(t),a)}},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}}},tM={null:[tv,eq]},tP={null:[42,95]},tO={null:[]},tT=/[\0\t\n\r]/g;function tI(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let t_=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tL(e,t,n){if(t)return t;let r=n.charCodeAt(0);if(35===r){let e=n.charCodeAt(1),t=120===e||88===e;return tI(n.slice(t?2:1),t?16:10)}return tu(n)||e}let tF={}.hasOwnProperty;function tz(e){return{line:e.line,column:e.column,offset:e.offset}}function tB(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+Y({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Y({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+Y({start:t.start,end:t.end})+") is still open")}function tD(e){let t=this;t.parser=function(n){var r,o;let l,a,s,u;return"string"!=typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(o=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(y),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(p),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:r(h),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(h,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:u,data:u,codeFlowValue:u,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(g),hardBreakTrailing:r(g),htmlFlow:r(m,i),htmlFlowData:u,htmlText:r(m,i),htmlTextData:u,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(y),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}},listOrdered:r(b,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(b),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(p),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:l(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];if(!t.depth){let n=this.sliceSerialize(e).length;t.depth=n}},autolink:l(),autolinkEmail:function(e){c.call(this,e);let t=this.stack[this.stack.length-1];t.url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)},blockQuote:l(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:d,characterReferenceMarkerNumeric:d,characterReferenceValue:function(e){let t;let n=this.sliceSerialize(e),r=this.data.characterReferenceType;if(r)t=tI(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0;else{let e=tu(n);t=e}let i=this.stack.pop();i.value+=t,i.position.end=tz(e.end)},codeFenced:l(function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e},codeFencedFenceMeta:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e},codeFlowValue:c,codeIndented:l(function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:l(function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}),codeTextData:c,data:c,definition:l(),definitionDestinationString:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=e8(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e},emphasis:l(),hardBreakEscape:l(f),hardBreakTrailing:l(f),htmlFlow:l(function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}),htmlFlowData:c,htmlText:l(function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}),htmlTextData:c,image:l(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){let t=e.children;n.children=t}else n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(t_,tL),n.identifier=e8(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=tz(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),c.call(this,e))},link:l(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=e8(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e},resourceTitleString:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e},resource:function(){this.data.inReference=void 0},setextHeading:l(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){let t=this.stack[this.stack.length-1];t.depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:l(),thematicBreak:l()}};(function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(tF.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}})(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},l={stack:[r],tokenStack:[],config:t,enter:o,exit:a,buffer:i,resume:s,data:n},u=[],c=-1;for(;++c<e.length;)if("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type){if("enter"===e[c][0])u.push(c);else{let t=u.pop();c=function(e,t,n){let r,i,o,l,a=t-1,s=-1,u=!1;for(;++a<=n;){let t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,l=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||l||s||o||(o=a),l=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:l=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let l=a;for(i=void 0;l--;){let t=e[l];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=l}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(a,0,["enter",i,t[2]]),a++,n++,o=void 0,l=!0}}}return e[t][1]._spread=u,n}(e,t,c)}}for(c=-1;++c<e.length;){let n=t[e[c][0]];tF.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},l),e[c][1])}if(l.tokenStack.length>0){let e=l.tokenStack[l.tokenStack.length-1],t=e[1]||tB;t.call(l,void 0,e[0])}for(r.position={start:tz(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:tz(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){o.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function o(e,t,n){let r=this.stack[this.stack.length-1],i=r.children;i.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:tz(t.start),end:void 0}}function l(e){return function(t){e&&e.call(this,t),a.call(this,t)}}function a(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r){if(r[0].type!==e.type){if(t)t.call(this,e,r[0]);else{let t=r[1]||tB;t.call(this,e,r[0])}}}else throw Error("Cannot close `"+e.type+"` ("+Y({start:e.start,end:e.end})+"): it’s not open");n.position.end=tz(e.end)}function s(){return function(e,t){let n="boolean"!=typeof ey.includeImageAlt||ey.includeImageAlt,r="boolean"!=typeof ey.includeHtml||ey.includeHtml;return eb(e,n,r)}(this.stack.pop())}function u(e){let t=this.stack[this.stack.length-1],n=t.children,r=n[n.length-1];r&&"text"===r.type||((r={type:"text",value:""}).position={start:tz(e.start),end:void 0},n.push(r)),this.stack.push(r)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=tz(e.end)}function f(){this.data.atHardBreak=!0}function d(e){this.data.characterReferenceType=e.type}function h(){return{type:"code",lang:null,meta:null,value:""}}function p(){return{type:"heading",depth:0,children:[]}}function g(){return{type:"break"}}function m(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function b(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(o)(function(e){for(;!ek(e););return e}((function(e){let t=function(e){let t={},n=-1;for(;++n<e.length;)(function(e,t){let n;for(n in t){let r;let i=eS.call(e,n)?e[n]:void 0,o=i||(e[n]={}),l=t[n];if(l)for(r in l){eS.call(o,r)||(o[r]=[]);let e=l[r];(function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);ex(e,0,0,r)})(o[r],Array.isArray(e)?e:e?[e]:[])}}})(t,e[n]);return t}([i,...(e||{}).extensions||[]]),n={defined:[],lazy:{},constructs:t,content:r(eD),document:r(eN),flow:r(eU),string:r(e$),text:r(eG)};return n;function r(e){return function(t){return function(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),i={},o=[],l=[],a=[],s={consume:function(e){eI(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,m()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=d(),u.events.push(["enter",n,u]),a.push(n),n},exit:function(e){let t=a.pop();return t.end=d(),u.events.push(["exit",t,u]),t},attempt:p(function(e,t){g(e,t.from)}),check:p(h),interrupt:p(h,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:f,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let o;let l=e[r];if("string"==typeof l)o=l;else switch(l){case -5:o="\r";break;case -4:o="\n";break;case -3:o="\r\n";break;case -2:o=t?" ":" ";break;case -1:if(!t&&n)continue;o=" ";break;default:o=String.fromCharCode(l)}n=-2===l,i.push(o)}return i.join("")}(f(e),t)},now:d,defineSkip:function(e){i[e.line]=e.column,m()},write:function(e){return(l=ew(l,e),function(){let e;for(;r._index<l.length;){var t;let n=l[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;)c=c(n.charCodeAt(r._bufferIndex));else c=c(n)}}(),null!==l[l.length-1])?[]:(g(t,0),u.events=eK(o,u.events,u),u.events)}},c=t.tokenize.call(u,s);return t.resolveAll&&o.push(t),u;function f(e){return function(e,t){let n;let r=t.start._index,i=t.start._bufferIndex,o=t.end._index,l=t.end._bufferIndex;if(r===o)n=[e[r].slice(i,l)];else{if(n=e.slice(r,o),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}l>0&&n.push(e[o].slice(0,l))}return n}(l,e)}function d(){let{line:e,column:t,offset:n,_index:i,_bufferIndex:o}=r;return{line:e,column:t,offset:n,_index:i,_bufferIndex:o}}function h(e,t){t.restore()}function p(e,t){return function(n,i,o){let l,c,f,h;return Array.isArray(n)?p(n):"tokenize"in n?p([n]):function(e){let t=null!==e&&n[e],r=null!==e&&n.null,i=[...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]];return p(i)(e)};function p(e){return(l=e,c=0,0===e.length)?o:g(e[c])}function g(e){return function(n){return(h=function(){let e=d(),t=u.previous,n=u.currentConstruct,i=u.events.length,o=Array.from(a);return{restore:function(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=i,a=o,m()},from:i}}(),f=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?b(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,s,y,b)(n)}}function y(t){return e(f,h),i}function b(e){return(h.restore(),++c<l.length)?g(l[c]):o}}}function g(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&ex(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function m(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(n,e,t)}}})(o).document().write((a=1,s="",u=!0,function(e,t,n){let r,i,o,c,f;let d=[];for(e=s+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),o=0,s="",u&&(65279===e.charCodeAt(0)&&o++,u=void 0);o<e.length;){if(tT.lastIndex=o,c=(r=tT.exec(e))&&void 0!==r.index?r.index:e.length,f=e.charCodeAt(c),!r){s=e.slice(o);break}if(10===f&&o===c&&l)d.push(-3),l=void 0;else switch(l&&(d.push(-5),l=void 0),o<c&&(d.push(e.slice(o,c)),a+=c-o),f){case 0:d.push(65533),a++;break;case 9:for(i=4*Math.ceil(a/4),d.push(-2);a++<i;)d.push(-1);break;case 10:d.push(-4),a=1;break;default:l=!0,a=1}o=c+1}return n&&(l&&d.push(-5),s&&d.push(s),d.push(null)),d})(n,r,!0))))}}let tN="object"==typeof self?self:globalThis,tj=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[o,l]=t[i];switch(o){case 0:case -1:return n(l,i);case 1:{let e=n([],i);for(let t of l)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of l)e[r(t)]=r(n);return e}case 3:return n(new Date(l),i);case 4:{let{source:e,flags:t}=l;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of l)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of l)e.add(r(t));return e}case 7:{let{name:e,message:t}=l;return n(new tN[e](t),i)}case 8:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i)}return n(new tN[o](l),i)};return r},tV=e=>tj(new Map,e)(0),{toString:tH}={},{keys:tZ}=Object,tU=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=tH.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},tq=([e,t])=>0===e&&("function"===t||"symbol"===t),t$=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},o=r=>{if(n.has(r))return n.get(r);let[l,a]=tU(r);switch(l){case 0:{let t=r;switch(a){case"bigint":l=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+a);t=null;break;case"undefined":return i([-1],r)}return i([l,t],r)}case 1:{if(a)return i([a,[...r]],r);let e=[],t=i([l,e],r);for(let t of r)e.push(o(t));return t}case 2:{if(a)switch(a){case"BigInt":return i([a,r.toString()],r);case"Boolean":case"Number":case"String":return i([a,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());let n=[],s=i([l,n],r);for(let t of tZ(r))(e||!tq(tU(r[t])))&&n.push([o(t),o(r[t])]);return s}case 3:return i([l,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([l,{source:e,flags:t}],r)}case 5:{let t=[],n=i([l,t],r);for(let[n,i]of r)(e||!(tq(tU(n))||tq(tU(i))))&&t.push([o(n),o(i)]);return n}case 6:{let t=[],n=i([l,t],r);for(let n of r)(e||!tq(tU(n)))&&t.push(o(n));return n}}let{message:s}=r;return i([l,{name:a,message:s}],r)};return o},tG=(e,{json:t,lossy:n}={})=>{let r=[];return t$(!(t||n),!!t,new Map,r)(e),r};var tW="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?tV(tG(e,t)):structuredClone(e):(e,t)=>tV(tG(e,t));function tY(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let o=e.charCodeAt(n),l="";if(37===o&&eE(e.charCodeAt(n+1))&&eE(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){let t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(l=String.fromCharCode(o,t),i=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function tX(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function tK(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let tQ=function(e){if(null==e)return t0;if("function"==typeof e)return tJ(e);if("object"==typeof e)return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=tQ(e[n]);return tJ(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):tJ(function(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0});if("string"==typeof e)return tJ(function(t){return t&&t.type===e});throw Error("Expected function, string, or object as test")};function tJ(e){return function(t,n,r){var i;return!!(null!==(i=t)&&"object"==typeof i&&"type"in i&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function t0(){return!0}let t1=[];function t2(e,t,n,r){let i,o,l;"function"==typeof t&&"function"!=typeof n?(o=void 0,l=t,i=n):(o=t,l=n,i=r),function(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;let o=tQ(i),l=r?-1:1;(function e(i,a,s){let u=i&&"object"==typeof i?i:{};if("string"==typeof u.type){let e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(c,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return c;function c(){var u;let c,f,d,h=t1;if((!t||o(i,a,s[s.length-1]||void 0))&&!1===(h=Array.isArray(u=n(i,s))?u:"number"==typeof u?[!0,u]:null==u?t1:[u])[0])return h;if("children"in i&&i.children&&i.children&&"skip"!==h[0])for(f=(r?i.children.length:-1)+l,d=s.concat(i);f>-1&&f<i.children.length;){let t=i.children[f];if(!1===(c=e(t,f,d)())[0])return c;f="number"==typeof c[1]?c[1]:f+l}return h}})(e,void 0,[])()}(e,o,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return l(e,r,n)},i)}function t5(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});let l=i[i.length-1];return l&&"text"===l.type?l.value+=r:i.push({type:"text",value:r}),i}function t4(e){let t=e.spread;return null==t?e.children.length>1:t}function t6(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let t3={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i={type:"element",tagName:"pre",properties:{},children:[i=e.applyData(t,i)]},e.patch(t,i),i},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n;let r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),o=tY(i.toLowerCase()),l=e.footnoteOrder.indexOf(i),a=e.footnoteCounts.get(i);void 0===a?(a=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=l+1,a+=1,e.footnoteCounts.set(i,a);let s={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,s);let u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return t5(e,t);let i={src:tY(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){let n={src:tY(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return t5(e,t);let i={href:tY(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){let n={href:tY(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=t4(n[r])}return t}(n):t4(t),o={},l=[];if("boolean"==typeof t.checked){let e;let n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){let e=r[a];(i||0!==a||"element"!==e.type||"p"!==e.tagName)&&l.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?l.push(e):l.push(...e.children)}let s=r[r.length-1];s&&(i||"element"!==s.type||"p"!==s.tagName)&&l.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=G(t.children[1]),l=$(t.children[t.children.length-1]);o&&l&&(r.position={start:o,end:l}),i.push(r)}let o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=r?r.indexOf(t):1,o=0===i?"th":"td",l=n&&"table"===n.type?n.align:void 0,a=l?l.length:t.children.length,s=-1,u=[];for(;++s<a;){let n=t.children[s],r={},i=l?l[s]:void 0;i&&(r.align=i);let a={type:"element",tagName:o,properties:r,children:[]};n&&(a.children=e.all(n),e.patch(n,a),a=e.applyData(n,a)),u.push(a)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,o=[];for(;r;)o.push(t6(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(t6(t.slice(i),i>0,!1)),o.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:t8,yaml:t8,definition:t8,footnoteDefinition:t8};function t8(){}let t9={}.hasOwnProperty,t7={};function ne(e,t){e.position&&(t.position=function(e){let t=G(e),n=$(e);if(t&&n)return{start:t,end:n}}(e))}function nt(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;if("string"==typeof t){if("element"===n.type)n.tagName=t;else{let e="children"in n?n.children:[n];n={type:"element",tagName:t,properties:{},children:e}}}"element"===n.type&&i&&Object.assign(n.properties,tW(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function nn(e,t){let n=t.data||{},r="value"in t&&!(t9.call(n,"hProperties")||t9.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function nr(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function ni(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function no(e,t){let n=function(e,t){let n=t||t7,r=new Map,i=new Map,o=new Map,l={...t3,...n.handlers},a={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=ni(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=ni(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:nt,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:function(e,t){let n=e.type,r=a.handlers[n];if(t9.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=tW(n);return r.children=a.all(e),r}return tW(e)}let i=a.options.unknownHandler||nn;return i(a,e,t)},options:n,patch:ne,wrap:nr};return t2(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a}(e,t),r=n.one(e,void 0),i=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||tX,r=e.options.footnoteBackLabel||tK,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[],s=-1;for(;++s<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[s]);if(!i)continue;let o=e.all(i),l=String(i.identifier).toUpperCase(),u=tY(l.toLowerCase()),c=0,f=[],d=e.footnoteCounts.get(l);for(;void 0!==d&&++c<=d;){f.length>0&&f.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,c);"string"==typeof e&&(e={type:"text",value:e}),f.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let h=o[o.length-1];if(h&&"element"===h.type&&"p"===h.tagName){let e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...f)}else o.push(...f);let p={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(o,!0)};e.patch(i,p),a.push(p)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...tW(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:"\n"},i),o}function nl(e,t){return e&&"run"in e?async function(n,r){let i=no(n,{file:r,...t});await e.run(i,r)}:function(n,r){return no(n,{file:r,...t||e})}}function na(e){if(e)throw e}var ns=n(5379);function nu(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let nc={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');nf(e);let r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let l=-1,a=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else l<0&&(n=!0,l=o+1),a>-1&&(e.codePointAt(o)===t.codePointAt(a--)?a<0&&(i=o):(a=-1,i=l));return r===i?i=l:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){let t;if(nf(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){let t;nf(e);let n=e.length,r=-1,i=0,o=-1,l=0;for(;n--;){let a=e.codePointAt(n);if(47===a){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===a?o<0?o=n:1!==l&&(l=1):o>-1&&(l=-1)}return o<0||r<0||0===l||1===l&&o===r-1&&o===i+1?"":e.slice(o,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)nf(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){nf(e);let t=47===e.codePointAt(0),n=function(e,t){let n,r,i="",o=0,l=-1,a=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else if(47===n)break;else n=47;if(47===n){if(l===s-1||1===a);else if(l!==s-1&&2===a){if(i.length<2||2!==o||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",o=0):o=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),l=s,a=0;continue}}else if(i.length>0){i="",o=0,l=s,a=0;continue}}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(l+1,s):i=e.slice(l+1,s),o=s-l-1;l=s,a=0}else 46===n&&a>-1?a++:a=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function nf(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function nd(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let nh=["history","path","basename","stem","extname","dirname"];class np{constructor(e){let t,n;t=e?nd(e)?{path:e}:"string"==typeof e||e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e?{value:e}:e:{},this.cwd="/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<nh.length;){let e=nh[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)nh.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?nc.basename(this.path):void 0}set basename(e){nm(e,"basename"),ng(e,"basename"),this.path=nc.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?nc.dirname(this.path):void 0}set dirname(e){ny(this.basename,"dirname"),this.path=nc.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?nc.extname(this.path):void 0}set extname(e){if(ng(e,"extname"),ny(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=nc.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){nd(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!nd(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),nm(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?nc.basename(this.path,this.extname):void 0}set stem(e){nm(e,"stem"),ng(e,"stem"),this.path=nc.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new J(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;let t=new TextDecoder(e||void 0);return t.decode(this.value)}}function ng(e,t){if(e&&e.includes(nc.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+nc.sep+"`")}function nm(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function ny(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let nb=function(e){let t=this.constructor,n=t.prototype,r=n[e],i=function(){return r.apply(i,arguments)};Object.setPrototypeOf(i,n);let o=Object.getOwnPropertyNames(r);for(let e of o){let t=Object.getOwnPropertyDescriptor(r,e);t&&Object.defineProperty(i,e,t)}return i},nv={}.hasOwnProperty;class nx extends nb{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);(function i(o,...l){let a=e[++n],s=-1;if(o){r(o);return}for(;++s<t.length;)(null===l[s]||void 0===l[s])&&(l[s]=t[s]);t=l,a?(function(e,t){let n;return function(...t){let o;let l=e.length>t.length;l&&t.push(r);try{o=e.apply(this,t)}catch(e){if(l&&n)throw e;return r(e)}l||(o instanceof Promise?o.then(i,r):o instanceof Error?r(o):i(o))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(a,i)(...l):r(null,...l)})(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new nx,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data(ns(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(nC("data",this.frozen),this.namespace[e]=t,this):nv.call(this.namespace,e)&&this.namespace[e]||void 0:e?(nC("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();let t=nA(e),n=this.parser||this.Parser;return nk("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),nk("process",this.parser||this.Parser),nS("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let o=nA(e),l=n.parse(o);function a(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(l,o,function(e,t,r){if(e||!t||!r)return a(e);let i=n.stringify(t,r);"string"==typeof i||i&&"object"==typeof i&&"byteLength"in i&&"byteOffset"in i?r.value=i:r.result=i,a(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),nk("processSync",this.parser||this.Parser),nS("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,na(e),t=r}),nE("processSync","process",n),t}run(e,t,n){nR(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,o){let l=nA(t);r.run(e,l,function(t,r,l){let a=r||e;t?o(t):i?i(a):n(void 0,a,l)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){na(e),n=t,r=!0}),nE("runSync","run",r),n}stringify(e,t){this.freeze();let n=nA(t),r=this.compiler||this.Compiler;return nS("stringify",r),nR(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(nC("use",this.frozen),null==e);else if("function"==typeof e)l(e,t);else if("object"==typeof e)Array.isArray(e)?o(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=ns(!0,r.settings,e.settings))}function o(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;){let n=e[t];!function(e){if("function"==typeof e)l(e,[]);else if("object"==typeof e){if(Array.isArray(e)){let[t,...n]=e;l(t,n)}else i(e)}else throw TypeError("Expected usable value, not `"+e+"`")}(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function l(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...o]=t,l=n[i][1];nu(l)&&nu(r)&&(r=ns(!0,l,r)),n[i]=[e,r,...o]}}}}let nw=new nx().freeze();function nk(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function nS(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function nC(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function nR(e){if(!nu(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function nE(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function nA(e){return e&&"object"==typeof e&&"message"in e&&"messages"in e?e:new np(e)}let nM=[],nP={allowDangerousHtml:!0},nO=/^(https?|ircs?|mailto|xmpp)$/i,nT=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function nI(e){let t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,l=e.disallowedElements,a=e.rehypePlugins||nM,s=e.remarkPlugins||nM,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...nP}:nP,c=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||n_,h=nw().use(tD).use(s).use(nl,u).use(a),p=new np;for(let t of("string"==typeof r&&(p.value=r),nT))Object.hasOwn(e,t.from)&&(t.from,t.to&&t.to,t.id);let g=h.parse(p),m=h.runSync(g,p);return i&&(m={type:"element",tagName:"div",properties:{className:i},children:"root"===m.type?m.children:[m]}),t2(m,function(e,r,i){if("raw"===e.type&&i&&"number"==typeof r)return c?i.children.splice(r,1):i.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in eg)if(Object.hasOwn(eg,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=eg[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=d(String(n||""),t,e))}}if("element"===e.type){let o=t?!t.includes(e.tagName):!!l&&l.includes(e.tagName);if(!o&&n&&"number"==typeof r&&(o=!n(e,r,i)),o&&i&&"number"==typeof r)return f&&e.children?i.children.splice(r,1,...e.children):i.children.splice(r,1),r}}),function(e,t){var n,r,i;let o;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let l=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=t.jsxDEV,o=function(e,t,r,i){let o=Array.isArray(r.children),a=G(e);return n(t,r,i,o,{columnNumber:a?a.column-1:void 0,fileName:l,lineNumber:a?a.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");r=t.jsx,i=t.jsxs,o=function(e,t,n,o){let l=Array.isArray(n.children),a=l?i:r;return o?a(t,n,o):a(t,n)}}let a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:l,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?B:z,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},s=ea(a,e,void 0);return s&&"string"!=typeof s?s:a.create(e,a.Fragment,{children:s||void 0},void 0)}(m,{Fragment:em.Fragment,components:o,ignoreInvalidStyle:!0,jsx:em.jsx,jsxs:em.jsxs,passKeys:!0,passNode:!0})}function n_(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||nO.test(e.slice(0,t))?e:""}},3388:function(e,t,n){"use strict";let r,i;n.d(t,{io:function(){return ek}});var o,l,a={};n.r(a),n.d(a,{Decoder:function(){return ep},Encoder:function(){return ed},PacketType:function(){return l},protocol:function(){return ef}});let s=Object.create(null);s.open="0",s.close="1",s.ping="2",s.pong="3",s.message="4",s.upgrade="5",s.noop="6";let u=Object.create(null);Object.keys(s).forEach(e=>{u[s[e]]=e});let c={type:"error",data:"parser error"},f="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),d="function"==typeof ArrayBuffer,h=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,p=({type:e,data:t},n,r)=>f&&t instanceof Blob?n?r(t):g(t,r):d&&(t instanceof ArrayBuffer||h(t))?n?r(t):g(new Blob([t]),r):r(s[e]+(t||"")),g=(e,t)=>{let n=new FileReader;return n.onload=function(){let e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function m(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<y.length;e++)b[y.charCodeAt(e)]=e;let v=e=>{let t=.75*e.length,n=e.length,r,i=0,o,l,a,s;"="===e[e.length-1]&&(t--,"="===e[e.length-2]&&t--);let u=new ArrayBuffer(t),c=new Uint8Array(u);for(r=0;r<n;r+=4)o=b[e.charCodeAt(r)],l=b[e.charCodeAt(r+1)],a=b[e.charCodeAt(r+2)],s=b[e.charCodeAt(r+3)],c[i++]=o<<2|l>>4,c[i++]=(15&l)<<4|a>>2,c[i++]=(3&a)<<6|63&s;return u},x="function"==typeof ArrayBuffer,w=(e,t)=>{if("string"!=typeof e)return{type:"message",data:S(e,t)};let n=e.charAt(0);if("b"===n)return{type:"message",data:k(e.substring(1),t)};let r=u[n];return r?e.length>1?{type:u[n],data:e.substring(1)}:{type:u[n]}:c},k=(e,t)=>{if(!x)return{base64:!0,data:e};{let n=v(e);return S(n,t)}},S=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,C=(e,t)=>{let n=e.length,r=Array(n),i=0;e.forEach((e,o)=>{p(e,!1,e=>{r[o]=e,++i===n&&t(r.join("\x1e"))})})},R=(e,t)=>{let n=e.split("\x1e"),r=[];for(let e=0;e<n.length;e++){let i=w(n[e],t);if(r.push(i),"error"===i.type)break}return r};function E(e){return e.reduce((e,t)=>e+t.length,0)}function A(e,t){if(e[0].length===t)return e.shift();let n=new Uint8Array(t),r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function M(e){if(e)return function(e){for(var t in M.prototype)e[t]=M.prototype[t];return e}(e)}M.prototype.on=M.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},M.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},M.prototype.off=M.prototype.removeListener=M.prototype.removeAllListeners=M.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},M.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this},M.prototype.emitReserved=M.prototype.emit,M.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},M.prototype.hasListeners=function(e){return!!this.listeners(e).length};let P="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function O(e,...t){return t.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{})}let T=P.setTimeout,I=P.clearTimeout;function _(e,t){t.useNativeTimers?(e.setTimeoutFn=T.bind(P),e.clearTimeoutFn=I.bind(P)):(e.setTimeoutFn=P.setTimeout.bind(P),e.clearTimeoutFn=P.clearTimeout.bind(P))}class L extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class F extends M{constructor(e){super(),this.writable=!1,_(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,n){return super.emitReserved("error",new L(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=w(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return -1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){let t=function(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}(e);return t.length?"?"+t:""}}let z="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),B={},D=0,N=0,j;function V(e){let t="";do t=z[e%64]+t,e=Math.floor(e/64);while(e>0);return t}function H(){let e=V(+new Date);return e!==j?(D=0,j=e):e+"."+V(D++)}for(;N<64;N++)B[z[N]]=N;let Z=!1;try{Z="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}let U=Z;function q(e){let t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||U))return new XMLHttpRequest}catch(e){}if(!t)try{return new P[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(e){}}function $(){}let G=function(){let e=new q({xdomain:!1});return null!=e.responseType}();class W extends M{constructor(e,t){super(),_(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=void 0!==t.data?t.data:null,this.create()}create(){var e;let t=O(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;let n=this.xhr=new q(t);try{n.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders)for(let e in n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&n.setRequestHeader(e,this.opts.extraHeaders[e])}catch(e){}if("POST"===this.method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{n.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this.opts.cookieJar)||void 0===e||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{var e;3===n.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(n)),4===n.readyState&&(200===n.status||1223===n.status?this.onLoad():this.setTimeoutFn(()=>{this.onError("number"==typeof n.status?n.status:0)},0))},n.send(this.data)}catch(e){this.setTimeoutFn(()=>{this.onError(e)},0);return}"undefined"!=typeof document&&(this.index=W.requestsCount++,W.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=$,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete W.requests[this.index],this.xhr=null}}onLoad(){let e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(W.requestsCount=0,W.requests={},"undefined"!=typeof document){if("function"==typeof attachEvent)attachEvent("onunload",Y);else if("function"==typeof addEventListener){let e="onpagehide"in P?"pagehide":"unload";addEventListener(e,Y,!1)}}function Y(){for(let e in W.requests)W.requests.hasOwnProperty(e)&&W.requests[e].abort()}let X=(()=>{let e="function"==typeof Promise&&"function"==typeof Promise.resolve;return e?e=>Promise.resolve().then(e):(e,t)=>t(e,0)})(),K=P.WebSocket||P.MozWebSocket;n(263).Buffer;let Q="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),J={websocket:class extends F{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;let e=this.uri(),t=this.opts.protocols,n=Q?{}:O(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=Q?new K(e,t,n):t?new K(e,t):new K(e)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;p(n,this.supportsBinary,e=>{try{this.ws.send(e)}catch(e){}r&&X(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=H()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!K}},webtransport:class extends F{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{let t=function(e,t){i||(i=new TextDecoder);let n=[],r=0,o=-1,l=!1;return new TransformStream({transform(a,s){for(n.push(a);;){if(0===r){if(1>E(n))break;let e=A(n,1);l=(128&e[0])==128,r=(o=127&e[0])<126?3:126===o?1:2}else if(1===r){if(2>E(n))break;let e=A(n,2);o=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(2===r){if(8>E(n))break;let e=A(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>2097151){s.enqueue(c);break}o=4294967296*i+t.getUint32(4),r=3}else{if(E(n)<o)break;let e=A(n,o);s.enqueue(w(l?e:i.decode(e),t)),r=0}if(0===o||o>e){s.enqueue(c);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),o=new TransformStream({transform(e,t){var n;n=n=>{let r;let i=n.length;if(i<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,i);else if(i<65536){r=new Uint8Array(3);let e=new DataView(r.buffer);e.setUint8(0,126),e.setUint16(1,i)}else{r=new Uint8Array(9);let e=new DataView(r.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(i))}e.data&&"string"!=typeof e.data&&(r[0]|=128),t.enqueue(r),t.enqueue(n)},f&&e.data instanceof Blob?e.data.arrayBuffer().then(m).then(n):d&&(e.data instanceof ArrayBuffer||h(e.data))?n(m(e.data)):p(e,!1,e=>{r||(r=new TextEncoder),n(r.encode(e))})}});o.readable.pipeTo(e.writable),this.writer=o.writable.getWriter();let l=()=>{n.read().then(({done:e,value:t})=>{e||(this.onPacket(t),l())}).catch(e=>{})};l();let a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this.writer.write(a).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;this.writer.write(n).then(()=>{r&&X(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}},polling:class extends F{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){let t="https:"===location.protocol,n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port}let t=e&&e.forceBase64;this.supportsBinary=G&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){R(e,this.socket.binaryType).forEach(e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)}),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){let e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,C(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=H()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new W(this.uri(),e)}doWrite(e,t){let n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}},ee=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,et=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function en(e){let t=e,n=e.indexOf("["),r=e.indexOf("]");-1!=n&&-1!=r&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=ee.exec(e||""),o={},l=14;for(;l--;)o[et[l]]=i[l]||"";return -1!=n&&-1!=r&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=function(e,t){let n=t.replace(/\/{2,9}/g,"/").split("/");return("/"==t.slice(0,1)||0===t.length)&&n.splice(0,1),"/"==t.slice(-1)&&n.splice(n.length-1,1),n}(0,o.path),o.queryKey=function(e,t){let n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,r){t&&(n[t]=r)}),n}(0,o.query),o}class er extends M{constructor(e,t={}){super(),this.binaryType="arraybuffer",this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=en(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=en(t.host).host),_(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},n=e.split("&");for(let e=0,r=n.length;e<r;e++){let r=n[e].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);let n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new J[e](n)}open(){let e;if(this.opts.rememberUpgrade&&er.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else if(0===this.transports.length){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch(e){this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",e=>this.onClose("transport close",e))}probe(e){let t=this.createTransport(e),n=!1;er.priorWebsocketSuccess=!1;let r=()=>{n||(t.send([{type:"ping",data:"probe"}]),t.once("packet",e=>{if(!n){if("pong"===e.type&&"probe"===e.data)this.upgrading=!0,this.emitReserved("upgrading",t),t&&(er.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{n||"closed"===this.readyState||(u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}));else{let e=Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}}}))};function i(){n||(n=!0,u(),t.close(),t=null)}let o=e=>{let n=Error("probe error: "+e);n.transport=t.name,i(),this.emitReserved("upgradeError",n)};function l(){o("transport closed")}function a(){o("socket closed")}function s(e){t&&e.name!==t.name&&i()}let u=()=>{t.removeListener("open",r),t.removeListener("error",o),t.removeListener("close",l),this.off("close",a),this.off("upgrading",s)};t.once("open",r),t.once("error",o),t.once("close",l),this.once("close",a),this.once("upgrading",s),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{n||t.open()},200):t.open()}onOpen(){if(this.readyState="open",er.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0,t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":let t=Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){let e=this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1;if(!e)return this.writeBuffer;let t=1;for(let e=0;e<this.writeBuffer.length;e++){let n=this.writeBuffer[e].data;if(n&&(t+="string"==typeof n?function(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)(t=e.charCodeAt(r))<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}(n):Math.ceil(1.33*(n.byteLength||n.size))),e>0&&t>this.maxPayload)return this.writeBuffer.slice(0,e);t+=2}return this.writeBuffer}write(e,t,n){return this.sendPacket("message",e,t,n),this}send(e,t,n){return this.sendPacket("message",e,t,n),this}sendPacket(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;let i={type:e,data:t,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){let e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}onError(e){er.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){let t=[],n=0,r=e.length;for(;n<r;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}er.protocol=4,er.protocol;let ei="function"==typeof ArrayBuffer,eo=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,el=Object.prototype.toString,ea="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===el.call(Blob),es="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===el.call(File);function eu(e){return ei&&(e instanceof ArrayBuffer||eo(e))||ea&&e instanceof Blob||es&&e instanceof File}let ec=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],ef=5;(o=l||(l={}))[o.CONNECT=0]="CONNECT",o[o.DISCONNECT=1]="DISCONNECT",o[o.EVENT=2]="EVENT",o[o.ACK=3]="ACK",o[o.CONNECT_ERROR=4]="CONNECT_ERROR",o[o.BINARY_EVENT=5]="BINARY_EVENT",o[o.BINARY_ACK=6]="BINARY_ACK";class ed{constructor(e){this.replacer=e}encode(e){return(e.type===l.EVENT||e.type===l.ACK)&&function e(t,n){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n<r;n++)if(e(t[n]))return!0;return!1}if(eu(t))return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1==arguments.length)return e(t.toJSON(),!0);for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return!0;return!1}(e)?this.encodeAsBinary({type:e.type===l.EVENT?l.BINARY_EVENT:l.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===l.BINARY_EVENT||e.type===l.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=function(e){let t=[],n=e.data;return e.data=function e(t,n){if(!t)return t;if(eu(t)){let e={_placeholder:!0,num:n.length};return n.push(t),e}if(Array.isArray(t)){let r=Array(t.length);for(let i=0;i<t.length;i++)r[i]=e(t[i],n);return r}if("object"==typeof t&&!(t instanceof Date)){let r={};for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=e(t[i],n));return r}return t}(n,t),e.attachments=t.length,{packet:e,buffers:t}}(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}}function eh(e){return"[object Object]"===Object.prototype.toString.call(e)}class ep extends M{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);let n=t.type===l.BINARY_EVENT;n||t.type===l.BINARY_ACK?(t.type=n?l.EVENT:l.ACK,this.reconstructor=new eg(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(eu(e)||e.base64){if(this.reconstructor)(t=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw Error("got binary data when not reconstructing a packet")}else throw Error("Unknown type: "+e)}decodeString(e){let t=0,n={type:Number(e.charAt(0))};if(void 0===l[n.type])throw Error("unknown packet type "+n.type);if(n.type===l.BINARY_EVENT||n.type===l.BINARY_ACK){let r=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);let i=e.substring(r,t);if(i!=Number(i)||"-"!==e.charAt(t))throw Error("Illegal attachments");n.attachments=Number(i)}if("/"===e.charAt(t+1)){let r=t+1;for(;++t;){let n=e.charAt(t);if(","===n||t===e.length)break}n.nsp=e.substring(r,t)}else n.nsp="/";let r=e.charAt(t+1);if(""!==r&&Number(r)==r){let r=t+1;for(;++t;){let n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){let r=this.tryParse(e.substr(t));if(ep.isPayloadValid(n.type,r))n.data=r;else throw Error("invalid payload")}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case l.CONNECT:return eh(t);case l.DISCONNECT:return void 0===t;case l.CONNECT_ERROR:return"string"==typeof t||eh(t);case l.EVENT:case l.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===ec.indexOf(t[0]));case l.ACK:case l.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class eg{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t,n;let e=(t=this.reconPack,n=this.buffers,t.data=function e(t,n){if(!t)return t;if(t&&!0===t._placeholder){let e="number"==typeof t.num&&t.num>=0&&t.num<n.length;if(e)return n[t.num];throw Error("illegal attachments")}if(Array.isArray(t))for(let r=0;r<t.length;r++)t[r]=e(t[r],n);else if("object"==typeof t)for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=e(t[r],n));return t}(t.data,n),delete t.attachments,t);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function em(e,t,n){return e.on(t,n),function(){e.off(t,n)}}let ey=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class eb extends M{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[em(e,"open",this.onopen.bind(this)),em(e,"packet",this.onpacket.bind(this)),em(e,"error",this.onerror.bind(this)),em(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(ey.hasOwnProperty(e))throw Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let n={type:l.EVENT,data:t};if(n.options={},n.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){let e=this.ids++,r=t.pop();this._registerAckCallback(e,r),n.id=e}let r=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable,i=this.flags.volatile&&(!r||!this.connected);return i||(this.connected?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(e,t){var n;let r=null!==(n=this.flags.timeout)&&void 0!==n?n:this._opts.ackTimeout;if(void 0===r){this.acks[e]=t;return}let i=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error("operation has timed out"))},r);this.acks[e]=(...e)=>{this.io.clearTimeoutFn(i),t.apply(this,[null,...e])}}emitWithAck(e,...t){let n=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise((r,i)=>{t.push((e,t)=>n?e?i(e):r(t):r(e)),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...r)=>{if(n!==this._queue[0])return;let i=null!==e;return i?n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...r)),n.pending=!1,this._drainQueue()}),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;let t=this._queue[0];(!t.pending||e)&&(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:l.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t)}onpacket(e){let t=e.nsp===this.nsp;if(t)switch(e.type){case l.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case l.EVENT:case l.BINARY_EVENT:this.onevent(e);break;case l.ACK:case l.BINARY_ACK:this.onack(e);break;case l.DISCONNECT:this.ondisconnect();break;case l.CONNECT_ERROR:this.destroy();let n=Error(e.data.message);n.data=e.data.data,this.emitReserved("connect_error",n)}}onevent(e){let t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,n=!1;return function(...r){n||(n=!0,t.packet({type:l.ACK,id:e,data:r}))}}onack(e){let t=this.acks[e.id];"function"==typeof t&&(t.apply(this,e.data),delete this.acks[e.id])}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:l.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n]){t.splice(n,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n]){t.splice(n,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let n of t)n.apply(this,e.data)}}}function ev(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}ev.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(1&Math.floor(10*t))==0?e-n:e+n}return 0|Math.min(e,this.max)},ev.prototype.reset=function(){this.attempts=0},ev.prototype.setMin=function(e){this.ms=e},ev.prototype.setMax=function(e){this.max=e},ev.prototype.setJitter=function(e){this.jitter=e};class ex extends M{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,_(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=t.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new ev({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;let r=t.parser||a;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new er(this.uri,this.opts);let t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let r=em(t,"open",function(){n.onopen(),e&&e()}),i=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=em(t,"error",i);if(!1!==this._timeout){let e=this._timeout,n=this.setTimeoutFn(()=>{r(),i(Error("timeout")),t.close()},e);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}return this.subs.push(r),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(em(e,"ping",this.onping.bind(this)),em(e,"data",this.ondata.bind(this)),em(e,"error",this.onerror.bind(this)),em(e,"close",this.onclose.bind(this)),em(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){X(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new eb(this,e,t),this.nsps[e]=n),n}_destroy(e){let t=Object.keys(this.nsps);for(let e of t){let t=this.nsps[e];if(t.active)return}this._close()}_packet(e){let t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{!e.skipReconnect&&(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}let ew={};function ek(e,t){let n;"object"==typeof e&&(t=e,e=void 0),t=t||{};let r=function(e,t="",n){let r=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==n?n.protocol+"//"+e:"https://"+e),r=en(e)),!r.port&&(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";let i=-1!==r.host.indexOf(":"),o=i?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+t,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}(e,t.path||"/socket.io"),i=r.source,o=r.id,l=r.path,a=ew[o]&&l in ew[o].nsps,s=t.forceNew||t["force new connection"]||!1===t.multiplex||a;return s?n=new ex(i,t):(ew[o]||(ew[o]=new ex(i,t)),n=ew[o]),r.query&&!t.query&&(t.query=r.queryKey),n.socket(r.path,t)}Object.assign(ek,{Manager:ex,Socket:eb,io:ek,connect:ek})},2130:function(e,t,n){"use strict";function r(e,t){if(!e)throw Error("Invariant failed")}n.d(t,{Z:function(){return r}})}}]);