@veecode-platform/plugin-veecode-homepage-dynamic 0.2.2 → 0.2.3

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 (85) hide show
  1. package/dist/components/VeeCodeHomePage.esm.js +0 -2
  2. package/dist/components/VeeCodeHomePage.esm.js.map +1 -1
  3. package/dist-scalprum/plugin-manifest.json +3 -3
  4. package/dist-scalprum/static/{1213.412457e8.chunk.js → 1213.aff960fc.chunk.js} +3 -3
  5. package/dist-scalprum/static/1213.aff960fc.chunk.js.map +1 -0
  6. package/dist-scalprum/static/2211.f5266f49.chunk.js +29 -0
  7. package/dist-scalprum/static/2211.f5266f49.chunk.js.map +1 -0
  8. package/dist-scalprum/static/3837.e9b60659.chunk.js +2 -0
  9. package/dist-scalprum/static/3837.e9b60659.chunk.js.map +1 -0
  10. package/dist-scalprum/static/41.53c70bd6.chunk.js +2 -0
  11. package/dist-scalprum/static/41.53c70bd6.chunk.js.map +1 -0
  12. package/dist-scalprum/static/{4197.8a8b877f.chunk.js → 4197.0e023080.chunk.js} +2 -2
  13. package/dist-scalprum/static/{4197.8a8b877f.chunk.js.map → 4197.0e023080.chunk.js.map} +1 -1
  14. package/dist-scalprum/static/{4864.0a352dc6.chunk.js → 4864.3cede332.chunk.js} +2 -2
  15. package/dist-scalprum/static/{4864.0a352dc6.chunk.js.map → 4864.3cede332.chunk.js.map} +1 -1
  16. package/dist-scalprum/static/{5255.21365d93.chunk.js → 5255.31f4471a.chunk.js} +2 -2
  17. package/dist-scalprum/static/{5255.21365d93.chunk.js.map → 5255.31f4471a.chunk.js.map} +1 -1
  18. package/dist-scalprum/static/5749.9f83e5fe.chunk.js +179 -0
  19. package/dist-scalprum/static/5749.9f83e5fe.chunk.js.map +1 -0
  20. package/dist-scalprum/static/{5888.d5ff87d6.chunk.js → 5888.39088266.chunk.js} +1 -1
  21. package/dist-scalprum/static/{5888.d5ff87d6.chunk.js.map → 5888.39088266.chunk.js.map} +1 -1
  22. package/dist-scalprum/static/6123.b8f54e25.chunk.js +2 -0
  23. package/dist-scalprum/static/6123.b8f54e25.chunk.js.map +1 -0
  24. package/dist-scalprum/static/{6356.0690b575.chunk.js → 6356.a59d5e2e.chunk.js} +2 -2
  25. package/dist-scalprum/static/{6356.0690b575.chunk.js.map → 6356.a59d5e2e.chunk.js.map} +1 -1
  26. package/dist-scalprum/static/{6700.f2dbf122.chunk.js → 6700.8ab31ec1.chunk.js} +1 -1
  27. package/dist-scalprum/static/{6700.f2dbf122.chunk.js.map → 6700.8ab31ec1.chunk.js.map} +1 -1
  28. package/dist-scalprum/static/8692.8ab75fef.chunk.js +2 -0
  29. package/dist-scalprum/static/8692.8ab75fef.chunk.js.map +1 -0
  30. package/dist-scalprum/static/9541.dde4bd87.chunk.js +3 -0
  31. package/dist-scalprum/static/9541.dde4bd87.chunk.js.map +1 -0
  32. package/dist-scalprum/static/{9633.d7b4641e.chunk.js → 9633.47d13d21.chunk.js} +2 -2
  33. package/dist-scalprum/static/{9633.d7b4641e.chunk.js.map → 9633.47d13d21.chunk.js.map} +1 -1
  34. package/dist-scalprum/static/{exposed-PluginRoot.bf5e0b03.chunk.js → exposed-PluginRoot.221d8f69.chunk.js} +2 -2
  35. package/dist-scalprum/static/{exposed-PluginRoot.bf5e0b03.chunk.js.map → exposed-PluginRoot.221d8f69.chunk.js.map} +1 -1
  36. package/dist-scalprum/{veecode-platform.plugin-veecode-homepage.52a7b0ce89460aa40ee1.js → veecode-platform.plugin-veecode-homepage.ea406b87d3dc1c912550.js} +2 -2
  37. package/dist-scalprum/veecode-platform.plugin-veecode-homepage.ea406b87d3dc1c912550.js.map +1 -0
  38. package/package.json +1 -1
  39. package/dist/components/headerComponent/HeaderComponent.esm.js +0 -67
  40. package/dist/components/headerComponent/HeaderComponent.esm.js.map +0 -1
  41. package/dist/components/headerComponent/iconButtonComponent/IconButtonComponent.esm.js +0 -35
  42. package/dist/components/headerComponent/iconButtonComponent/IconButtonComponent.esm.js.map +0 -1
  43. package/dist/components/headerComponent/logout/Logout.esm.js +0 -30
  44. package/dist/components/headerComponent/logout/Logout.esm.js.map +0 -1
  45. package/dist/components/headerComponent/menuItems/MenuItems.esm.js +0 -134
  46. package/dist/components/headerComponent/menuItems/MenuItems.esm.js.map +0 -1
  47. package/dist/components/headerComponent/notifications/Notifications.esm.js +0 -72
  48. package/dist/components/headerComponent/notifications/Notifications.esm.js.map +0 -1
  49. package/dist/components/headerComponent/profile/Profle.esm.js +0 -19
  50. package/dist/components/headerComponent/profile/Profle.esm.js.map +0 -1
  51. package/dist/components/headerComponent/searchComponent/SearchBar.esm.js +0 -113
  52. package/dist/components/headerComponent/searchComponent/SearchBar.esm.js.map +0 -1
  53. package/dist/components/headerComponent/searchComponent/SearchComponent.esm.js +0 -13
  54. package/dist/components/headerComponent/searchComponent/SearchComponent.esm.js.map +0 -1
  55. package/dist/components/headerComponent/searchComponent/SearchInput.esm.js +0 -32
  56. package/dist/components/headerComponent/searchComponent/SearchInput.esm.js.map +0 -1
  57. package/dist/components/headerComponent/searchComponent/SearchOption.esm.js +0 -50
  58. package/dist/components/headerComponent/searchComponent/SearchOption.esm.js.map +0 -1
  59. package/dist/components/headerComponent/searchComponent/SearchResultItem.esm.js +0 -44
  60. package/dist/components/headerComponent/searchComponent/SearchResultItem.esm.js.map +0 -1
  61. package/dist/components/headerComponent/toggleTheme/ToggleTheme.esm.js +0 -37
  62. package/dist/components/headerComponent/toggleTheme/ToggleTheme.esm.js.map +0 -1
  63. package/dist/hooks/useDebouncedCallback.esm.js +0 -26
  64. package/dist/hooks/useDebouncedCallback.esm.js.map +0 -1
  65. package/dist/utils/stringUtils.esm.js +0 -35
  66. package/dist/utils/stringUtils.esm.js.map +0 -1
  67. package/dist-scalprum/static/1213.412457e8.chunk.js.map +0 -1
  68. package/dist-scalprum/static/1853.9c4997f9.chunk.js +0 -2
  69. package/dist-scalprum/static/1853.9c4997f9.chunk.js.map +0 -1
  70. package/dist-scalprum/static/41.a129355f.chunk.js +0 -2
  71. package/dist-scalprum/static/41.a129355f.chunk.js.map +0 -1
  72. package/dist-scalprum/static/5211.b1dc9542.chunk.js +0 -3
  73. package/dist-scalprum/static/5211.b1dc9542.chunk.js.map +0 -1
  74. package/dist-scalprum/static/5571.73942ff6.chunk.js +0 -206
  75. package/dist-scalprum/static/5571.73942ff6.chunk.js.map +0 -1
  76. package/dist-scalprum/static/6123.94c2f019.chunk.js +0 -2
  77. package/dist-scalprum/static/6123.94c2f019.chunk.js.map +0 -1
  78. package/dist-scalprum/static/6460.86145f5a.chunk.js +0 -2
  79. package/dist-scalprum/static/6460.86145f5a.chunk.js.map +0 -1
  80. package/dist-scalprum/static/6921.efadb98d.chunk.js +0 -2
  81. package/dist-scalprum/static/6921.efadb98d.chunk.js.map +0 -1
  82. package/dist-scalprum/veecode-platform.plugin-veecode-homepage.52a7b0ce89460aa40ee1.js.map +0 -1
  83. /package/dist-scalprum/static/{1213.412457e8.chunk.js.LICENSE.txt → 1213.aff960fc.chunk.js.LICENSE.txt} +0 -0
  84. /package/dist-scalprum/static/{5571.73942ff6.chunk.js.LICENSE.txt → 5749.9f83e5fe.chunk.js.LICENSE.txt} +0 -0
  85. /package/dist-scalprum/static/{5211.b1dc9542.chunk.js.LICENSE.txt → 9541.dde4bd87.chunk.js.LICENSE.txt} +0 -0
@@ -1,3 +0,0 @@
1
- /*! For license information please see 5211.b1dc9542.chunk.js.LICENSE.txt */
2
- (self.webpackChunkveecode_platform_plugin_veecode_homepage=self.webpackChunkveecode_platform_plugin_veecode_homepage||[]).push([[5211],{73638:(e,t,n)=>{"use strict";n.d(t,{z:()=>ie});var r=n(31085),i=n(10394),o=n(37976),a=n(17545);function s(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){s(o,r,i,a,l,"next",e)}function l(e){s(o,r,i,a,l,"throw",e)}a(void 0)})}}var c=n(89575),u=n(55152),d=n(30414),f=n(95309),h=n(72715),p=n(29296),g=n(24586),m=n(95478),v=n.n(m),y=n(39850),b=n(83705);function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){(0,g.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var w={};function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return function(e){if(0===e.length||1===e.length)return e;var t,n,r=e.join(".");return w[r]||(w[r]=0===(n=(t=e).length)||1===n?t:2===n?[t[0],t[1],"".concat(t[0],".").concat(t[1]),"".concat(t[1],".").concat(t[0])]:3===n?[t[0],t[1],t[2],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0])]:n>=4?[t[0],t[1],t[2],t[3],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[2],".").concat(t[3]),"".concat(t[3],".").concat(t[0]),"".concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[0]),"".concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[3],".").concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[2],".").concat(t[1],".").concat(t[0])]:void 0),w[r]}(e.filter(function(e){return"token"!==e})).reduce(function(e,t){return A(A({},e),n[t])},t)}function C(e){return e.join(" ")}function E(e){var t=e.node,n=e.stylesheet,r=e.style,i=void 0===r?{}:r,o=e.useInlineStyles,a=e.key,s=t.properties,l=t.type,u=t.tagName,d=t.value;if("text"===l)return d;if(u){var f,h=function(e,t){var n=0;return function(r){return n+=1,r.map(function(r,i){return E({node:r,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(i)})})}}(n,o);if(o){var p=Object.keys(n).reduce(function(e,t){return t.split(".").forEach(function(t){e.includes(t)||e.push(t)}),e},[]),g=s.className&&s.className.includes("token")?["token"]:[],m=s.className&&g.concat(s.className.filter(function(e){return!p.includes(e)}));f=A(A({},s),{},{className:C(m)||void 0,style:k(s.className,Object.assign({},s.style,i),n)})}else f=A(A({},s),{},{className:C(s.className)});var y=h(t.children);return v().createElement(u,(0,c.A)({key:a},f),y)}}const S=function(e,t){return-1!==e.listLanguages().indexOf(t)};var M=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach(function(t){(0,g.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var I=/\n/g;function P(e){var t=e.codeString,n=e.codeStyle,r=e.containerStyle,i=void 0===r?{float:"left",paddingRight:"10px"}:r,o=e.numberStyle,a=void 0===o?{}:o,s=e.startingLineNumber;return v().createElement("code",{style:Object.assign({},n,i)},function(e){var t=e.startingLineNumber,n=e.style;return e.lines.map(function(e,r){var i=r+t;return v().createElement("span",{key:"line-".concat(r),className:"react-syntax-highlighter-line-number",style:"function"==typeof n?n(i):n},"".concat(i,"\n"))})}({lines:t.replace(/\n$/,"").split("\n"),style:a,startingLineNumber:s}))}function R(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function L(e,t,n){var r,i={display:"inline-block",minWidth:(r=n,"".concat(r.toString().length,".25em")),paddingRight:"1em",textAlign:"right",userSelect:"none"},o="function"==typeof e?e(t):e;return T(T({},i),o)}function j(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,i=e.largestLineNumber,o=e.showInlineLineNumbers,a=e.lineProps,s=void 0===a?{}:a,l=e.className,c=void 0===l?[]:l,u=e.showLineNumbers,d=e.wrapLongLines,f=e.wrapLines,h=void 0!==f&&f?T({},"function"==typeof s?s(n):s):{};if(h.className=h.className?[].concat((0,b.A)(h.className.trim().split(/\s+/)),(0,b.A)(c)):c,n&&o){var p=L(r,n,i);t.unshift(R(n,p))}return d&u&&(h.style=T({display:"flex"},h.style)),{type:"element",tagName:"span",properties:h,children:t}}function D(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=0;r<e.length;r++){var i=e[r];if("text"===i.type)n.push(j({children:[i],className:(0,b.A)(new Set(t))}));else if(i.children){var o=t.concat(i.properties.className);D(i.children,o).forEach(function(e){return n.push(e)})}}return n}function O(e,t,n,r,i,o,a,s,l){var c,u=D(e.value),d=[],f=-1,h=0;function p(e,o){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t||c.length>0?function(e,o){return j({children:e,lineNumber:o,lineNumberStyle:s,largestLineNumber:a,showInlineLineNumbers:i,lineProps:n,className:arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],showLineNumbers:r,wrapLongLines:l,wrapLines:t})}(e,o,c):function(e,t){if(r&&t&&i){var n=L(s,t,a);e.unshift(R(t,n))}return e}(e,o)}for(var g=function(){var e=u[h],t=e.children[0].value;if(t.match(I)){var n=t.split("\n");n.forEach(function(t,i){var a=r&&d.length+o,s={type:"text",value:"".concat(t,"\n")};if(0===i){var l=p(u.slice(f+1,h).concat(j({children:[s],className:e.properties.className})),a);d.push(l)}else if(i===n.length-1){var c=u[h+1]&&u[h+1].children&&u[h+1].children[0],g={type:"text",value:"".concat(t)};if(c){var m=j({children:[g],className:e.properties.className});u.splice(h+1,0,m)}else{var v=p([g],a,e.properties.className);d.push(v)}}else{var y=p([s],a,e.properties.className);d.push(y)}}),f=h}h++};h<u.length;)g();if(f!==u.length-1){var m=u.slice(f+1,u.length);if(m&&m.length){var v=p(m,r&&d.length+o);d.push(v)}}return t?d:(c=[]).concat.apply(c,d)}function N(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(e,t){return E({node:e,stylesheet:n,useInlineStyles:r,key:"code-segment-".concat(t)})})}function F(e){return e&&void 0!==e.highlightAuto}function z(){z=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,a=Object.create(o.prototype),s=new P(r||[]);return i(a,"_invoke",{value:M(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var h="suspendedStart",p="suspendedYield",g="executing",m="completed",v={};function y(){}function b(){}function x(){}var A={};u(A,s,function(){return this});var w=Object.getPrototypeOf,k=w&&w(w(R([])));k&&k!==n&&r.call(k,s)&&(A=k);var C=x.prototype=y.prototype=Object.create(A);function E(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function S(e,t){function n(i,o,s,l){var c=f(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==(0,a.A)(d)&&r.call(d,"__await")?t.resolve(d.__await).then(function(e){n("next",e,s,l)},function(e){n("throw",e,s,l)}):t.resolve(d).then(function(e){u.value=e,s(u)},function(e){return n("throw",e,s,l)})}l(c.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t(function(t,i){n(e,r,t,i)})}return o=o?o.then(i,i):i()}})}function M(t,n,r){var i=h;return function(o,a){if(i===g)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=_(s,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=g;var c=f(t,n,r);if("normal"===c.type){if(i=r.done?m:p,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=m,r.method="throw",r.arg=c.arg)}}}function _(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,_(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var o=f(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function R(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError((0,a.A)(t)+" is not iterable")}return b.prototype=x,i(C,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:b,configurable:!0}),b.displayName=u(x,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,u(e,c,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},E(S.prototype),u(S.prototype,l,function(){return this}),t.AsyncIterator=S,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new S(d(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},E(C),u(C,c,"Generator"),u(C,s,function(){return this}),u(C,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=R,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;I(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:R(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function B(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(B=function(){return!!e})()}function $(){$=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,a=Object.create(o.prototype),s=new P(r||[]);return i(a,"_invoke",{value:M(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var h="suspendedStart",p="suspendedYield",g="executing",m="completed",v={};function y(){}function b(){}function x(){}var A={};u(A,s,function(){return this});var w=Object.getPrototypeOf,k=w&&w(w(R([])));k&&k!==n&&r.call(k,s)&&(A=k);var C=x.prototype=y.prototype=Object.create(A);function E(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function S(e,t){function n(i,o,s,l){var c=f(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==(0,a.A)(d)&&r.call(d,"__await")?t.resolve(d.__await).then(function(e){n("next",e,s,l)},function(e){n("throw",e,s,l)}):t.resolve(d).then(function(e){u.value=e,s(u)},function(e){return n("throw",e,s,l)})}l(c.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t(function(t,i){n(e,r,t,i)})}return o=o?o.then(i,i):i()}})}function M(t,n,r){var i=h;return function(o,a){if(i===g)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=_(s,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=g;var c=f(t,n,r);if("normal"===c.type){if(i=r.done?m:p,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=m,r.method="throw",r.arg=c.arg)}}}function _(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,_(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var o=f(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function R(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError((0,a.A)(t)+" is not iterable")}return b.prototype=x,i(C,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:b,configurable:!0}),b.displayName=u(x,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,u(e,c,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},E(S.prototype),u(S.prototype,l,function(){return this}),t.AsyncIterator=S,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new S(d(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},E(C),u(C,c,"Generator"),u(C,s,function(){return this}),u(C,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=R,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;I(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:R(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}const H=function(e,t){return function(){var n=l($().mark(function n(r){var i;return $().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t();case 2:i=n.sent,r(e,i.default||i);case 4:case"end":return n.stop()}},n)}));return function(e){return n.apply(this,arguments)}}()},U={oneC:H("oneC",function(){return n.e(557).then(n.t.bind(n,87431,23))}),abnf:H("abnf",function(){return n.e(3607).then(n.t.bind(n,25104,23))}),accesslog:H("accesslog",function(){return n.e(1694).then(n.t.bind(n,24407,23))}),actionscript:H("actionscript",function(){return n.e(1325).then(n.t.bind(n,50594,23))}),ada:H("ada",function(){return n.e(5034).then(n.t.bind(n,49643,23))}),angelscript:H("angelscript",function(){return n.e(4956).then(n.t.bind(n,60297,23))}),apache:H("apache",function(){return n.e(2516).then(n.t.bind(n,50733,23))}),applescript:H("applescript",function(){return n.e(3923).then(n.t.bind(n,39952,23))}),arcade:H("arcade",function(){return n.e(9882).then(n.t.bind(n,4663,23))}),arduino:H("arduino",function(){return n.e(7818).then(n.t.bind(n,11535,23))}),armasm:H("armasm",function(){return n.e(6501).then(n.t.bind(n,34338,23))}),asciidoc:H("asciidoc",function(){return n.e(2743).then(n.t.bind(n,6004,23))}),aspectj:H("aspectj",function(){return n.e(1084).then(n.t.bind(n,46585,23))}),autohotkey:H("autohotkey",function(){return n.e(1173).then(n.t.bind(n,80726,23))}),autoit:H("autoit",function(){return n.e(3500).then(n.t.bind(n,94885,23))}),avrasm:H("avrasm",function(){return n.e(460).then(n.t.bind(n,3493,23))}),awk:H("awk",function(){return n.e(7533).then(n.t.bind(n,22686,23))}),axapta:H("axapta",function(){return n.e(8903).then(n.t.bind(n,96804,23))}),bash:H("bash",function(){return n.e(9612).then(n.t.bind(n,78385,23))}),basic:H("basic",function(){return n.e(7572).then(n.t.bind(n,89681,23))}),bnf:H("bnf",function(){return n.e(8216).then(n.t.bind(n,23133,23))}),brainfuck:H("brainfuck",function(){return n.e(6835).then(n.t.bind(n,21356,23))}),cLike:H("cLike",function(){return n.e(2108).then(n.t.bind(n,88636,23))}),c:H("c",function(){return n.e(8549).then(n.t.bind(n,60802,23))}),cal:H("cal",function(){return n.e(9406).then(n.t.bind(n,32907,23))}),capnproto:H("capnproto",function(){return n.e(6986).then(n.t.bind(n,29015,23))}),ceylon:H("ceylon",function(){return n.e(9162).then(n.t.bind(n,43371,23))}),clean:H("clean",function(){return n.e(6161).then(n.t.bind(n,54186,23))}),clojureRepl:H("clojureRepl",function(){return n.e(5253).then(n.t.bind(n,41105,23))}),clojure:H("clojure",function(){return n.e(946).then(n.t.bind(n,14171,23))}),cmake:H("cmake",function(){return n.e(7247).then(n.t.bind(n,55144,23))}),coffeescript:H("coffeescript",function(){return n.e(5051).then(n.t.bind(n,29868,23))}),coq:H("coq",function(){return n.e(1441).then(n.t.bind(n,36058,23))}),cos:H("cos",function(){return n.e(4835).then(n.t.bind(n,99280,23))}),cpp:H("cpp",function(){return n.e(6573).then(n.t.bind(n,16554,23))}),crmsh:H("crmsh",function(){return n.e(2383).then(n.t.bind(n,84892,23))}),crystal:H("crystal",function(){return n.e(6848).then(n.t.bind(n,35253,23))}),csharp:H("csharp",function(){return n.e(7879).then(n.t.bind(n,29984,23))}),csp:H("csp",function(){return n.e(3580).then(n.t.bind(n,36797,23))}),css:H("css",function(){return n.e(2007).then(n.t.bind(n,24948,23))}),d:H("d",function(){return n.e(2346).then(n.t.bind(n,46763,23))}),dart:H("dart",function(){return n.e(9265).then(n.t.bind(n,62018,23))}),delphi:H("delphi",function(){return n.e(8078).then(n.t.bind(n,51307,23))}),diff:H("diff",function(){return n.e(7079).then(n.t.bind(n,68340,23))}),django:H("django",function(){return n.e(9139).then(n.t.bind(n,80008,23))}),dns:H("dns",function(){return n.e(2795).then(n.t.bind(n,1484,23))}),dockerfile:H("dockerfile",function(){return n.e(1828).then(n.t.bind(n,55485,23))}),dos:H("dos",function(){return n.e(5664).then(n.t.bind(n,85193,23))}),dsconfig:H("dsconfig",function(){return n.e(4383).then(n.t.bind(n,13740,23))}),dts:H("dts",function(){return n.e(5189).then(n.t.bind(n,42554,23))}),dust:H("dust",function(){return n.e(1522).then(n.t.bind(n,39467,23))}),ebnf:H("ebnf",function(){return n.e(1099).then(n.t.bind(n,48084,23))}),elixir:H("elixir",function(){return n.e(7351).then(n.t.bind(n,22496,23))}),elm:H("elm",function(){return n.e(8138).then(n.t.bind(n,8139,23))}),erb:H("erb",function(){return n.e(3811).then(n.t.bind(n,4340,23))}),erlangRepl:H("erlangRepl",function(){return n.e(2496).then(n.t.bind(n,56900,23))}),erlang:H("erlang",function(){return n.e(5123).then(n.t.bind(n,74700,23))}),excel:H("excel",function(){return n.e(371).then(n.t.bind(n,10424,23))}),fix:H("fix",function(){return n.e(3299).then(n.t.bind(n,44344,23))}),flix:H("flix",function(){return n.e(7439).then(n.t.bind(n,29488,23))}),fortran:H("fortran",function(){return n.e(1352).then(n.t.bind(n,1429,23))}),fsharp:H("fsharp",function(){return n.e(1972).then(n.t.bind(n,12165,23))}),gams:H("gams",function(){return n.e(3562).then(n.t.bind(n,67239,23))}),gauss:H("gauss",function(){return n.e(4493).then(n.t.bind(n,6906,23))}),gcode:H("gcode",function(){return n.e(9702).then(n.t.bind(n,1627,23))}),gherkin:H("gherkin",function(){return n.e(7048).then(n.t.bind(n,79889,23))}),glsl:H("glsl",function(){return n.e(7934).then(n.t.bind(n,57171,23))}),gml:H("gml",function(){return n.e(206).then(n.t.bind(n,57531,23))}),go:H("go",function(){return n.e(7764).then(n.t.bind(n,51233,23))}),golo:H("golo",function(){return n.e(2983).then(n.t.bind(n,36984,23))}),gradle:H("gradle",function(){return n.e(5819).then(n.t.bind(n,24296,23))}),groovy:H("groovy",function(){return n.e(8948).then(n.t.bind(n,43117,23))}),haml:H("haml",function(){return n.e(7776).then(n.t.bind(n,57909,23))}),handlebars:H("handlebars",function(){return n.e(8030).then(n.t.bind(n,43123,23))}),haskell:H("haskell",function(){return n.e(2762).then(n.t.bind(n,76971,23))}),haxe:H("haxe",function(){return n.e(2438).then(n.t.bind(n,23883,23))}),hsp:H("hsp",function(){return n.e(4075).then(n.t.bind(n,3992,23))}),htmlbars:H("htmlbars",function(){return n.e(7959).then(n.t.bind(n,92240,23))}),http:H("http",function(){return n.e(7794).then(n.t.bind(n,3127,23))}),hy:H("hy",function(){return n.e(8595).then(n.t.bind(n,46144,23))}),inform7:H("inform7",function(){return n.e(5868).then(n.t.bind(n,93561,23))}),ini:H("ini",function(){return n.e(3384).then(n.t.bind(n,71517,23))}),irpf90:H("irpf90",function(){return n.e(9078).then(n.t.bind(n,57363,23))}),isbl:H("isbl",function(){return n.e(6924).then(n.t.bind(n,75409,23))}),java:H("java",function(){return n.e(6354).then(n.t.bind(n,74639,23))}),javascript:H("javascript",function(){return n.e(927).then(n.t.bind(n,94704,23))}),jbossCli:H("jbossCli",function(){return n.e(4635).then(n.t.bind(n,74999,23))}),json:H("json",function(){return n.e(3736).then(n.t.bind(n,70365,23))}),juliaRepl:H("juliaRepl",function(){return n.e(9118).then(n.t.bind(n,88450,23))}),julia:H("julia",function(){return n.e(9229).then(n.t.bind(n,62010,23))}),kotlin:H("kotlin",function(){return n.e(5565).then(n.t.bind(n,55702,23))}),lasso:H("lasso",function(){return n.e(5900).then(n.t.bind(n,99225,23))}),latex:H("latex",function(){return n.e(3722).then(n.t.bind(n,26619,23))}),ldif:H("ldif",function(){return n.e(6195).then(n.t.bind(n,90564,23))}),leaf:H("leaf",function(){return n.e(4446).then(n.t.bind(n,96447,23))}),less:H("less",function(){return n.e(5813).then(n.t.bind(n,78074,23))}),lisp:H("lisp",function(){return n.e(2234).then(n.t.bind(n,74616,23))}),livecodeserver:H("livecodeserver",function(){return n.e(4282).then(n.t.bind(n,21835,23))}),livescript:H("livescript",function(){return n.e(1461).then(n.t.bind(n,12202,23))}),llvm:H("llvm",function(){return n.e(4733).then(n.t.bind(n,66142,23))}),lsl:H("lsl",function(){return n.e(4971).then(n.t.bind(n,18816,23))}),lua:H("lua",function(){return n.e(1496).then(n.t.bind(n,10209,23))}),makefile:H("makefile",function(){return n.e(1750).then(n.t.bind(n,93123,23))}),markdown:H("markdown",function(){return n.e(8833).then(n.t.bind(n,82410,23))}),mathematica:H("mathematica",function(){return n.e(1362).then(n.t.bind(n,12135,23))}),matlab:H("matlab",function(){return n.e(8001).then(n.t.bind(n,61586,23))}),maxima:H("maxima",function(){return n.e(2267).then(n.t.bind(n,1080,23))}),mel:H("mel",function(){return n.e(200).then(n.t.bind(n,89937,23))}),mercury:H("mercury",function(){return n.e(8753).then(n.t.bind(n,92174,23))}),mipsasm:H("mipsasm",function(){return n.e(3487).then(n.t.bind(n,54861,23))}),mizar:H("mizar",function(){return n.e(4135).then(n.t.bind(n,34080,23))}),mojolicious:H("mojolicious",function(){return n.e(5773).then(n.t.bind(n,95406,23))}),monkey:H("monkey",function(){return n.e(985).then(n.t.bind(n,10714,23))}),moonscript:H("moonscript",function(){return n.e(3540).then(n.t.bind(n,89177,23))}),n1ql:H("n1ql",function(){return n.e(8058).then(n.t.bind(n,69571,23))}),nginx:H("nginx",function(){return n.e(5286).then(n.t.bind(n,90395,23))}),nim:H("nim",function(){return n.e(1062).then(n.t.bind(n,48083,23))}),nix:H("nix",function(){return n.e(3419).then(n.t.bind(n,76656,23))}),nodeRepl:H("nodeRepl",function(){return n.e(8705).then(n.t.bind(n,69697,23))}),nsis:H("nsis",function(){return n.e(5099).then(n.t.bind(n,13532,23))}),objectivec:H("objectivec",function(){return n.e(8338).then(n.t.bind(n,7231,23))}),ocaml:H("ocaml",function(){return n.e(5446).then(n.t.bind(n,94927,23))}),openscad:H("openscad",function(){return n.e(6555).then(n.t.bind(n,12128,23))}),oxygene:H("oxygene",function(){return n.e(1727).then(n.t.bind(n,89620,23))}),parser3:H("parser3",function(){return n.e(2378).then(n.t.bind(n,25755,23))}),perl:H("perl",function(){return n.e(7209).then(n.t.bind(n,10690,23))}),pf:H("pf",function(){return n.e(8140).then(n.t.bind(n,90293,23))}),pgsql:H("pgsql",function(){return n.e(5251).then(n.t.bind(n,90012,23))}),phpTemplate:H("phpTemplate",function(){return n.e(1276).then(n.t.bind(n,53230,23))}),php:H("php",function(){return n.e(4342).then(n.t.bind(n,73095,23))}),plaintext:H("plaintext",function(){return n.e(2979).then(n.t.bind(n,68416,23))}),pony:H("pony",function(){return n.e(1418).then(n.t.bind(n,66647,23))}),powershell:H("powershell",function(){return n.e(2665).then(n.t.bind(n,30270,23))}),processing:H("processing",function(){return n.e(4575).then(n.t.bind(n,99136,23))}),profile:H("profile",function(){return n.e(1177).then(n.t.bind(n,61798,23))}),prolog:H("prolog",function(){return n.e(51).then(n.t.bind(n,72680,23))}),properties:H("properties",function(){return n.e(1214).then(n.t.bind(n,87582,23))}),protobuf:H("protobuf",function(){return n.e(7131).then(n.t.bind(n,42756,23))}),puppet:H("puppet",function(){return n.e(1956).then(n.t.bind(n,71409,23))}),purebasic:H("purebasic",function(){return n.e(3146).then(n.t.bind(n,17371,23))}),pythonRepl:H("pythonRepl",function(){return n.e(1895).then(n.t.bind(n,59611,23))}),python:H("python",function(){return n.e(8904).then(n.t.bind(n,33981,23))}),q:H("q",function(){return n.e(2727).then(n.t.bind(n,79464,23))}),qml:H("qml",function(){return n.e(6780).then(n.t.bind(n,36133,23))}),r:H("r",function(){return n.e(4300).then(n.t.bind(n,98209,23))}),reasonml:H("reasonml",function(){return n.e(1489).then(n.t.bind(n,61902,23))}),rib:H("rib",function(){return n.e(5613).then(n.t.bind(n,16222,23))}),roboconf:H("roboconf",function(){return n.e(456).then(n.t.bind(n,18381,23))}),routeros:H("routeros",function(){return n.e(8763).then(n.t.bind(n,47788,23))}),rsl:H("rsl",function(){return n.e(6977).then(n.t.bind(n,56634,23))}),ruby:H("ruby",function(){return n.e(3418).then(n.t.bind(n,34759,23))}),ruleslanguage:H("ruleslanguage",function(){return n.e(2981).then(n.t.bind(n,75578,23))}),rust:H("rust",function(){return n.e(6228).then(n.t.bind(n,55153,23))}),sas:H("sas",function(){return n.e(7401).then(n.t.bind(n,27738,23))}),scala:H("scala",function(){return n.e(6512).then(n.t.bind(n,56585,23))}),scheme:H("scheme",function(){return n.e(1679).then(n.t.bind(n,79108,23))}),scilab:H("scilab",function(){return n.e(634).then(n.t.bind(n,83259,23))}),scss:H("scss",function(){return n.e(4014).then(n.t.bind(n,51355,23))}),shell:H("shell",function(){return n.e(464).then(n.t.bind(n,61949,23))}),smali:H("smali",function(){return n.e(8874).then(n.t.bind(n,37255,23))}),smalltalk:H("smalltalk",function(){return n.e(8725).then(n.t.bind(n,39454,23))}),sml:H("sml",function(){return n.e(2882).then(n.t.bind(n,36943,23))}),sqf:H("sqf",function(){return n.e(2180).then(n.t.bind(n,62661,23))}),sql:H("sql",function(){return n.e(7406).then(n.t.bind(n,20299,23))}),sqlMore:H("sqlMore",function(){return n.e(6057).then(n.t.bind(n,75923,23))}),stan:H("stan",function(){return n.e(1961).then(n.t.bind(n,91283,23))}),stata:H("stata",function(){return n.e(3885).then(n.t.bind(n,95682,23))}),step21:H("step21",function(){return n.e(4931).then(n.t.bind(n,40992,23))}),stylus:H("stylus",function(){return n.e(2512).then(n.t.bind(n,58597,23))}),subunit:H("subunit",function(){return n.e(7254).then(n.t.bind(n,83067,23))}),swift:H("swift",function(){return n.e(6267).then(n.t.bind(n,14632,23))}),taggerscript:H("taggerscript",function(){return n.e(6177).then(n.t.bind(n,41654,23))}),tap:H("tap",function(){return n.e(2693).then(n.t.bind(n,25278,23))}),tcl:H("tcl",function(){return n.e(8755).then(n.t.bind(n,31256,23))}),thrift:H("thrift",function(){return n.e(8331).then(n.t.bind(n,72752,23))}),tp:H("tp",function(){return n.e(4110).then(n.t.bind(n,2443,23))}),twig:H("twig",function(){return n.e(8217).then(n.t.bind(n,69966,23))}),typescript:H("typescript",function(){return n.e(2871).then(n.t.bind(n,18576,23))}),vala:H("vala",function(){return n.e(3988).then(n.t.bind(n,89205,23))}),vbnet:H("vbnet",function(){return n.e(579).then(n.t.bind(n,92064,23))}),vbscriptHtml:H("vbscriptHtml",function(){return n.e(6152).then(n.t.bind(n,80052,23))}),vbscript:H("vbscript",function(){return n.e(9175).then(n.t.bind(n,63008,23))}),verilog:H("verilog",function(){return n.e(2488).then(n.t.bind(n,4841,23))}),vhdl:H("vhdl",function(){return n.e(2064).then(n.t.bind(n,42113,23))}),vim:H("vim",function(){return n.e(6542).then(n.t.bind(n,38891,23))}),x86asm:H("x86asm",function(){return n.e(3357).then(n.t.bind(n,90378,23))}),xl:H("xl",function(){return n.e(9726).then(n.t.bind(n,50131,23))}),xml:H("xml",function(){return n.e(3193).then(n.t.bind(n,26450,23))}),xquery:H("xquery",function(){return n.e(2362).then(n.t.bind(n,65915,23))}),yaml:H("yaml",function(){return n.e(3623).then(n.t.bind(n,75332,23))}),zephir:H("zephir",function(){return n.e(4436).then(n.t.bind(n,5257,23))})},W=(K=(G={loader:function(){return n.e(8727).then(n.t.bind(n,63341,19)).then(function(e){return e.default||e})},isLanguageRegistered:function(e,t){return!!S(e,t)},languageLoaders:U,registerLanguage:function(e,t,n){return e.registerLanguage(t,n)}}).loader,X=G.isLanguageRegistered,Z=G.registerLanguage,Q=G.languageLoaders,J=G.noAsyncLoadingLanguages,ee=function(e){function t(){return(0,u.A)(this,t),e=this,n=t,r=arguments,n=(0,h.A)(n),(0,f.A)(e,B()?Reflect.construct(n,r||[],(0,h.A)(e).constructor):n.apply(e,r));var e,n,r}return(0,p.A)(t,e),(0,d.A)(t,[{key:"componentDidUpdate",value:function(){!t.isRegistered(this.props.language)&&Q&&this.loadLanguage()}},{key:"componentDidMount",value:function(){var e=this;t.astGeneratorPromise||t.loadAstGenerator(),t.astGenerator||t.astGeneratorPromise.then(function(){e.forceUpdate()}),!t.isRegistered(this.props.language)&&Q&&this.loadLanguage()}},{key:"loadLanguage",value:function(){var e=this,n=this.props.language;"text"!==n&&t.loadLanguage(n).then(function(){return e.forceUpdate()}).catch(function(){})}},{key:"normalizeLanguage",value:function(e){return t.isSupportedLanguage(e)?e:"text"}},{key:"render",value:function(){return v().createElement(t.highlightInstance,(0,c.A)({},this.props,{language:this.normalizeLanguage(this.props.language),astGenerator:t.astGenerator}))}}],[{key:"preload",value:function(){return t.loadAstGenerator()}},{key:"loadLanguage",value:(n=l(z().mark(function e(n){var r;return z().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof(r=Q[n])){e.next=5;break}return e.abrupt("return",r(t.registerLanguage));case 5:throw new Error("Language ".concat(n," not supported"));case 6:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)})},{key:"isSupportedLanguage",value:function(e){return t.isRegistered(e)||"function"==typeof Q[e]}},{key:"loadAstGenerator",value:function(){return t.astGeneratorPromise=K().then(function(e){t.astGenerator=e,Z&&t.languages.forEach(function(t,n){return Z(e,n,t)})}),t.astGeneratorPromise}}]);var n}(v().PureComponent),Y=ee,(0,g.A)(ee,"astGenerator",null),(0,g.A)(ee,"highlightInstance",(V=null,q={},function(e){var t,n,r=e.language,i=e.children,o=e.style,a=void 0===o?q:o,s=e.customStyle,l=void 0===s?{}:s,c=e.codeTagProps,u=void 0===c?{className:r?"language-".concat(r):void 0,style:T(T({},a['code[class*="language-"]']),a['code[class*="language-'.concat(r,'"]')])}:c,d=e.useInlineStyles,f=void 0===d||d,h=e.showLineNumbers,p=void 0!==h&&h,g=e.showInlineLineNumbers,m=void 0===g||g,b=e.startingLineNumber,x=void 0===b?1:b,A=e.lineNumberContainerStyle,w=e.lineNumberStyle,k=void 0===w?{}:w,C=e.wrapLines,E=e.wrapLongLines,_=void 0!==E&&E,I=e.lineProps,R=void 0===I?{}:I,L=e.renderer,j=e.PreTag,D=void 0===j?"pre":j,z=e.CodeTag,B=void 0===z?"code":z,$=e.code,H=void 0===$?(Array.isArray(i)?i[0]:i)||"":$,U=e.astGenerator,W=(0,y.A)(e,M);U=U||V;var G=p?v().createElement(P,{containerStyle:A,codeStyle:u.style||{},numberStyle:k,startingLineNumber:x,codeString:H}):null,Y=a.hljs||a['pre[class*="language-"]']||{backgroundColor:"#fff"},K=F(U)?"hljs":"prismjs",X=f?Object.assign({},W,{style:Object.assign({},Y,l)}):Object.assign({},W,{className:W.className?"".concat(K," ").concat(W.className):K,style:Object.assign({},l)});if(u.style=T(_?{whiteSpace:"pre-wrap"}:{whiteSpace:"pre"},u.style),!U)return v().createElement(D,X,G,v().createElement(B,u,H));(void 0===C&&L||_)&&(C=!0),L=L||N;var Z=[{type:"text",value:H}],Q=function(e){var t=e.astGenerator,n=e.language,r=e.code,i=e.defaultCodeValue;if(F(t)){var o=S(t,n);return"text"===n?{value:i,language:"text"}:o?t.highlight(n,r):t.highlightAuto(r)}try{return n&&"text"!==n?{value:t.highlight(r,n)}:{value:i}}catch(e){return{value:i}}}({astGenerator:U,language:r,code:H,defaultCodeValue:Z});null===Q.language&&(Q.value=Z);var J=O(Q,C,R,p,m,x,x+(null!==(t=null===(n=H.match(/\n/g))||void 0===n?void 0:n.length)&&void 0!==t?t:0),k,_);return v().createElement(D,X,v().createElement(B,u,!m&&G,L({rows:J,stylesheet:a,useInlineStyles:f})))})),(0,g.A)(ee,"astGeneratorPromise",null),(0,g.A)(ee,"languages",new Map),(0,g.A)(ee,"supportedLanguages",G.supportedLanguages||Object.keys(Q||{})),(0,g.A)(ee,"isRegistered",function(e){if(J)return!0;if(!Z)throw new Error("Current syntax highlighter doesn't support registration of languages");return Y.astGenerator?X(Y.astGenerator,e):Y.languages.has(e)}),(0,g.A)(ee,"registerLanguage",function(e,t){if(!Z)throw new Error("Current syntax highlighter doesn't support registration of languages");if(Y.astGenerator)return Z(Y.astGenerator,e,t);Y.languages.set(e,t)}),ee);var V,q,G,Y,K,X,Z,Q,J,ee;const te={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#444",color:"#ddd"},"hljs-keyword":{color:"white",fontWeight:"bold"},"hljs-selector-tag":{color:"white",fontWeight:"bold"},"hljs-literal":{color:"white",fontWeight:"bold"},"hljs-section":{color:"white",fontWeight:"bold"},"hljs-link":{color:"white"},"hljs-subst":{color:"#ddd"},"hljs-string":{color:"#d88"},"hljs-title":{color:"#d88",fontWeight:"bold"},"hljs-name":{color:"#d88",fontWeight:"bold"},"hljs-type":{color:"#d88",fontWeight:"bold"},"hljs-attribute":{color:"#d88"},"hljs-symbol":{color:"#d88"},"hljs-bullet":{color:"#d88"},"hljs-built_in":{color:"#d88"},"hljs-addition":{color:"#d88"},"hljs-variable":{color:"#d88"},"hljs-template-tag":{color:"#d88"},"hljs-template-variable":{color:"#d88"},"hljs-comment":{color:"#777"},"hljs-quote":{color:"#777"},"hljs-deletion":{color:"#777"},"hljs-meta":{color:"#777"},"hljs-doctag":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"},"hljs-emphasis":{fontStyle:"italic"}},ne={hljs:{display:"block",overflowX:"auto",padding:"0.5em",color:"#000",background:"#f8f8ff"},"hljs-comment":{color:"#408080",fontStyle:"italic"},"hljs-quote":{color:"#408080",fontStyle:"italic"},"hljs-keyword":{color:"#954121"},"hljs-selector-tag":{color:"#954121"},"hljs-literal":{color:"#954121"},"hljs-subst":{color:"#954121"},"hljs-number":{color:"#40a070"},"hljs-string":{color:"#219161"},"hljs-doctag":{color:"#219161"},"hljs-selector-id":{color:"#19469d"},"hljs-selector-class":{color:"#19469d"},"hljs-section":{color:"#19469d"},"hljs-type":{color:"#19469d"},"hljs-params":{color:"#00f"},"hljs-title":{color:"#458",fontWeight:"bold"},"hljs-tag":{color:"#000080",fontWeight:"normal"},"hljs-name":{color:"#000080",fontWeight:"normal"},"hljs-attribute":{color:"#000080",fontWeight:"normal"},"hljs-variable":{color:"#008080"},"hljs-template-variable":{color:"#008080"},"hljs-regexp":{color:"#b68"},"hljs-link":{color:"#b68"},"hljs-symbol":{color:"#990073"},"hljs-bullet":{color:"#990073"},"hljs-built_in":{color:"#0086b3"},"hljs-builtin-name":{color:"#0086b3"},"hljs-meta":{color:"#999",fontWeight:"bold"},"hljs-deletion":{background:"#fdd"},"hljs-addition":{background:"#dfd"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}};var re=n(86180);function ie(e){const{text:t,language:n,showLineNumbers:a=!1,highlightedNumbers:s,customStyle:l,showCopyCodeButton:c=!1}=e,u=(0,o.useTheme)(),d="dark"===u.palette.type?te:ne,f="dark"===u.palette.type?"#256bf3":"#e6ffed";return(0,r.jsxs)(i.A,{position:"relative",children:[(0,r.jsx)(W,{customStyle:l,language:n,style:d,showLineNumbers:a,wrapLines:!0,lineNumberStyle:{color:u.palette.textVerySubtle},lineProps:e=>s?.includes(e)?{style:{backgroundColor:f}}:{},children:t}),c&&(0,r.jsx)(i.A,{position:"absolute",top:0,right:0,children:(0,r.jsx)(re.l,{text:t})})]})}},86180:(e,t,n)=>{"use strict";n.d(t,{l:()=>g});var r=n(31085),i=n(9490),o=n(29365),a=n(89040),s=n(99594),l=n(95478),c=n(40200),u=n.n(c),d=n(71581);const f=function(){var e=(0,d.A)(),t=function(e){void 0===e&&(e={});var t=(0,l.useState)(e),n=t[0],r=t[1];return[n,(0,l.useCallback)(function(e){r(function(t){return Object.assign({},t,e instanceof Function?e(t):e)})},[])]}({value:void 0,error:void 0,noUserInteraction:!0}),n=t[0],r=t[1];return[n,(0,l.useCallback)(function(t){var n,i;if(e())try{if("string"!=typeof t&&"number"!=typeof t){var o=new Error("Cannot copy typeof "+typeof t+" to clipboard, must be a string");return void r({value:t,error:o,noUserInteraction:!0})}if(""===t)return o=new Error("Cannot copy empty string to clipboard."),void r({value:t,error:o,noUserInteraction:!0});i=t.toString(),n=u()(i),r({value:i,error:void 0,noUserInteraction:n})}catch(o){r({value:i,error:o,noUserInteraction:n})}},[])]};var h=n(89475),p=n(10265);function g(e){const{t}=(0,p.i)(h.O),{text:n,tooltipDelay:c=1e3,tooltipText:u=t("copyTextButton.tooltipText"),"aria-label":d="Copy text"}=e,g=(0,i.useApi)(i.errorApiRef),[m,v]=(0,l.useState)(!1),[{error:y},b]=f();return(0,l.useEffect)(()=>{y&&g.post(y)},[y,g]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(a.Ay,{id:"copy-test-tooltip",title:u,placement:"top",leaveDelay:c,onClose:()=>v(!1),open:m,children:(0,r.jsx)(o.A,{onClick:e=>{e.stopPropagation(),v(!0),b(n)},"aria-label":d,children:(0,r.jsx)(s.A,{})})})})}},18047:(e,t,n)=>{"use strict";n.d(t,{b:()=>so});var r={};n.r(r),n.d(r,{attentionMarkers:()=>It,contentInitial:()=>Ct,disable:()=>Pt,document:()=>kt,flow:()=>St,flowInitial:()=>Et,insideSpan:()=>Tt,string:()=>Mt,text:()=>_t});var i={};n.r(i),n.d(i,{boolean:()=>Cn,booleanish:()=>En,commaOrSpaceSeparated:()=>In,commaSeparated:()=>Tn,number:()=>Mn,overloadedBoolean:()=>Sn,spaceSeparated:()=>_n});var o=n(31085),a=n(37976),s=n(58007),l=n(8109),c=n(5951),u=n(86180),d=n(8973),f=n(29655),h=n(91567),p=n(42899),g=n(72501),m=n(9181),v=n(6924),y=n(95478),b=n(85703);function x(e){return e&&"object"==typeof e?"position"in e||"type"in e?w(e.position):"start"in e||"end"in e?w(e):"line"in e||"column"in e?A(e):"":""}function A(e){return k(e&&e.line)+":"+k(e&&e.column)}function w(e){return A(e&&e.start)+"-"+A(e&&e.end)}function k(e){return e&&"number"==typeof e?e:1}class C extends Error{constructor(e,t,n){const r=[null,null];let i={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof t&&(n=t,t=void 0),"string"==typeof n){const e=n.indexOf(":");-1===e?r[1]=n:(r[0]=n.slice(0,e),r[1]=n.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(i=t.position):"start"in t||"end"in t?i=t:("line"in t||"column"in t)&&(i.start=t)),this.name=x(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="","object"==typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=i.start.line,this.column=i.start.column,this.position=i,this.source=r[0],this.ruleId=r[1],this.file,this.actual,this.expected,this.url,this.note}}C.prototype.file="",C.prototype.name="",C.prototype.reason="",C.prototype.message="",C.prototype.stack="",C.prototype.fatal=null,C.prototype.column=null,C.prototype.line=null,C.prototype.source=null,C.prototype.ruleId=null,C.prototype.position=null;const E=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');I(e);let n,r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.charCodeAt(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 a=-1,s=t.length-1;for(;o--;)if(47===e.charCodeAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1),s>-1&&(e.charCodeAt(o)===t.charCodeAt(s--)?s<0&&(i=o):(s=-1,i=a));return r===i?i=a:i<0&&(i=e.length),e.slice(r,i)},S=function(e){if(I(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},M=function(e){I(e);let t,n=e.length,r=-1,i=0,o=-1,a=0;for(;n--;){const s=e.charCodeAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?o<0?o=n:1!==a&&(a=1):o>-1&&(a=-1);else if(t){i=n+1;break}}return o<0||r<0||0===a||1===a&&o===r-1&&o===i+1?"":e.slice(o,r)},_=function(...e){let t,n=-1;for(;++n<e.length;)I(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){I(e);const t=47===e.charCodeAt(0);let n=function(e,t){let n,r,i="",o=0,a=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.charCodeAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===s);else if(a!==l-1&&2===s){if(i.length<2||2!==o||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",o=0):(i=i.slice(0,r),o=i.length-1-i.lastIndexOf("/")),a=l,s=0;continue}}else if(i.length>0){i="",o=0,a=l,s=0;continue}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(a+1,l):i=e.slice(a+1,l),o=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},T="/";function I(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const P=function(){return"/"};function R(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}const L=["history","path","basename","stem","extname","dirname"];class j{constructor(e){let t;t=e?"string"==typeof e||function(e){return b(e)}(e)?{value:e}:R(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=P(),this.value,this.stored,this.result,this.map;let n,r=-1;for(;++r<L.length;){const e=L[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)L.includes(n)||(this[n]=t[n])}get path(){return this.history[this.history.length-1]}set path(e){R(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!R(e)){const t=new 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){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.charCodeAt(n)&&50===t.charCodeAt(n+1)){const e=t.charCodeAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),O(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?S(this.path):void 0}set dirname(e){N(this.basename,"dirname"),this.path=_(e||"",this.basename)}get basename(){return"string"==typeof this.path?E(this.path):void 0}set basename(e){O(e,"basename"),D(e,"basename"),this.path=_(this.dirname||"",e)}get extname(){return"string"==typeof this.path?M(this.path):void 0}set extname(e){if(D(e,"extname"),N(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=_(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?E(this.path,this.extname):void 0}set stem(e){O(e,"stem"),D(e,"stem"),this.path=_(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e||void 0)}message(e,t,n){const r=new C(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=null,r}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}}function D(e,t){if(e&&e.includes(T))throw new Error("`"+t+"` cannot be a path: did not expect `"+T+"`")}function O(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function N(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function F(e){if(e)throw e}var z=n(89710);function B(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}const $=function e(){const t=function(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function i(o,...a){const s=e[++n];let l=-1;if(o)r(o);else{for(;++l<t.length;)null!==a[l]&&void 0!==a[l]||(a[l]=t[l]);t=a,s?function(e,t){let n;return function(...t){const o=e.length>t.length;let a;o&&t.push(r);try{a=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(a&&a.then&&"function"==typeof a.then?a.then(i,r):a instanceof Error?r(a):i(a))};function r(e,...r){n||(n=!0,t(e,...r))}function i(e){r(null,e)}}(s,i)(...a):r(null,...a)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}(),n=[];let r,i={},o=-1;return a.data=function(e,t){return"string"==typeof e?2===arguments.length?(q("data",r),i[e]=t,a):H.call(i,e)&&i[e]||null:e?(q("data",r),i=e,a):i},a.Parser=void 0,a.Compiler=void 0,a.freeze=function(){if(r)return a;for(;++o<n.length;){const[e,...r]=n[o];if(!1===r[0])continue;!0===r[0]&&(r[0]=void 0);const i=e.call(a,...r);"function"==typeof i&&t.use(i)}return r=!0,o=Number.POSITIVE_INFINITY,a},a.attachers=n,a.use=function(e,...t){let o;if(q("use",r),null==e);else if("function"==typeof e)u(e,...t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?c(e):l(e)}return o&&(i.settings=Object.assign(i.settings||{},o)),a;function s(e){if("function"==typeof e)u(e);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;u(t,...n)}else l(e)}}function l(e){c(e.plugins),e.settings&&(o=Object.assign(o||{},e.settings))}function c(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)s(e[t])}}function u(e,t){let r,i=-1;for(;++i<n.length;)if(n[i][0]===e){r=n[i];break}r?(B(r[1])&&B(t)&&(t=z(!0,r[1],t)),r[1]=t):n.push([...arguments])}},a.parse=function(e){a.freeze();const t=K(e),n=a.Parser;return W("parse",n),U(n,"parse")?new n(String(t),t).parse():n(String(t),t)},a.stringify=function(e,t){a.freeze();const n=K(t),r=a.Compiler;return V("stringify",r),G(e),U(r,"compile")?new r(e,n).compile():r(e,n)},a.run=function(e,n,r){if(G(e),a.freeze(),r||"function"!=typeof n||(r=n,n=void 0),!r)return new Promise(i);function i(i,o){t.run(e,K(n),function(t,n,a){n=n||e,t?o(t):i?i(n):r(null,n,a)})}i(null,r)},a.runSync=function(e,t){let n,r;return a.run(e,t,function(e,t){F(e),n=t,r=!0}),Y("runSync","run",r),n},a.process=function(e,t){if(a.freeze(),W("process",a.Parser),V("process",a.Compiler),!t)return new Promise(n);function n(n,r){const i=K(e);function o(e,i){e||!i?r(e):n?n(i):t(null,i)}a.run(a.parse(i),i,(e,t,n)=>{if(!e&&t&&n){const i=a.stringify(t,n);null==i||("string"==typeof(r=i)||b(r)?n.value=i:n.result=i),o(e,n)}else o(e);var r})}n(null,t)},a.processSync=function(e){let t;a.freeze(),W("processSync",a.Parser),V("processSync",a.Compiler);const n=K(e);return a.process(n,function(e){t=!0,F(e)}),Y("processSync","process",t),n},a;function a(){const t=e();let r=-1;for(;++r<n.length;)t.use(...n[r]);return t.data(z(!0,{},i)),t}}().freeze(),H={}.hasOwnProperty;function U(e,t){return"function"==typeof e&&e.prototype&&(function(e){let t;for(t in e)if(H.call(e,t))return!0;return!1}(e.prototype)||t in e.prototype)}function W(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Parser`")}function V(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function q(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function G(e){if(!B(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Y(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function K(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new j(e)}const X={};function Z(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(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 Q(e.children,t,n)}return Array.isArray(e)?Q(e,t,n):""}function Q(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Z(e[i],t,n);return r.join("")}function J(e,t,n,r){const i=e.length;let o,a=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function ee(e,t){return e.length>0?(J(e,e.length,0,t),e):t}const te={}.hasOwnProperty;function ne(e){const t={};let n=-1;for(;++n<e.length;)re(t,e[n]);return t}function re(e,t){let n;for(n in t){const r=(te.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){te.call(r,o)||(r[o]=[]);const e=i[o];ie(r[o],Array.isArray(e)?e:e?[e]:[])}}}function ie(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);J(e,0,0,r)}const oe=ve(/[A-Za-z]/),ae=ve(/[\dA-Za-z]/),se=ve(/[#-'*+\--9=?A-Z^-~]/);function le(e){return null!==e&&(e<32||127===e)}const ce=ve(/\d/),ue=ve(/[\dA-Fa-f]/),de=ve(/[!-/:-@[-`{-~]/);function fe(e){return null!==e&&e<-2}function he(e){return null!==e&&(e<0||32===e)}function pe(e){return-2===e||-1===e||32===e}const ge=ve(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),me=ve(/\s/);function ve(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}function ye(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){return pe(r)?(e.enter(n),a(r)):t(r)};function a(r){return pe(r)&&o++<i?(e.consume(r),a):(e.exit(n),t(r))}}const be={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ye(e,t,"linePrefix");e.consume(n)},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):fe(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),i)}}},xe={tokenize:function(e){const t=this,n=[];let r,i,o,a=0;return s;function s(r){if(a<n.length){const i=n[a];return t.containerState=i[1],e.attempt(i[0].continuation,l,c)(r)}return c(r)}function l(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();const n=t.events.length;let i,o=n;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){i=t.events[o][1].end;break}v(a);let s=n;for(;s<t.events.length;)t.events[s][1].end=Object.assign({},i),s++;return J(t.events,o+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(i){if(a===n.length){if(!r)return f(i);if(r.currentConstruct&&r.currentConstruct.concrete)return p(i);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Ae,u,d)(i)}function u(e){return r&&y(),v(a),f(e)}function d(e){return t.parser.lazy[t.now().line]=a!==n.length,o=t.now().offset,p(e)}function f(n){return t.containerState={},e.attempt(Ae,h,p)(n)}function h(e){return a++,n.push([t.currentConstruct,t.containerState]),f(e)}function p(n){return null===n?(r&&y(),v(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:r}),g(n))}function g(n){return null===n?(m(e.exit("chunkFlow"),!0),v(0),void e.consume(n)):fe(n)?(e.consume(n),m(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(n),g)}function m(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=i,i&&(i.next=e),i=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<o&&(!r.events[e][1].end||r.events[e][1].end.offset>o))return;const n=t.events.length;let i,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(i){s=t.events[l][1].end;break}i=!0}for(v(a),e=n;e<t.events.length;)t.events[e][1].end=Object.assign({},s),e++;J(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function v(r){let i=n.length;for(;i-- >r;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function y(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},Ae={tokenize:function(e,t,n){return ye(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},we={tokenize:function(e,t,n){return function(t){return pe(t)?ye(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||fe(e)?t(e):n(e)}},partial:!0};function ke(e){const t={};let n,r,i,o,a,s,l,c=-1;for(;++c<e.length;){for(;c in t;)c=t[c];if(n=e[c],c&&"chunkFlow"===n[1].type&&"listItemPrefix"===e[c-1][1].type&&(s=n[1]._tokenizer.events,i=0,i<s.length&&"lineEndingBlank"===s[i][1].type&&(i+=2),i<s.length&&"content"===s[i][1].type))for(;++i<s.length&&"content"!==s[i][1].type;)"chunkText"===s[i][1].type&&(s[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Ce(e,c)),c=t[c],l=!0);else if(n[1]._container){for(i=c,r=void 0;i--&&(o=e[i],"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type);)"enter"===o[0]&&(r&&(e[r][1].type="lineEndingBlank"),o[1].type="lineEnding",r=i);r&&(n[1].end=Object.assign({},e[r][1].start),a=e.slice(r,c),a.unshift(n),J(e,r,c-r+1,a))}}return!l}function Ce(e,t){const n=e[t][1],r=e[t][2];let i=t-1;const o=[],a=n._tokenizer||r.parser[n.contentType](n.start),s=a.events,l=[],c={};let u,d,f=-1,h=n,p=0,g=0;const m=[g];for(;h;){for(;e[++i][1]!==h;);o.push(i),h._tokenizer||(u=r.sliceStream(h),h.next||u.push(null),d&&a.defineSkip(h.start),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++f<s.length;)"exit"===s[f][0]&&"enter"===s[f-1][0]&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(g=f+1,m.push(g),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(a.events=[],h?(h._tokenizer=void 0,h.previous=void 0):m.pop(),f=m.length;f--;){const t=s.slice(m[f],m[f+1]),n=o.pop();l.unshift([n,n+t.length-1]),J(e,n,2,t)}for(f=-1;++f<l.length;)c[p+l[f][0]]=p+l[f][1],p+=l[f][1]-l[f][0]-1;return c}const Ee={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):fe(t)?e.check(Se,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 ke(e),e}},Se={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ye(e,i,"linePrefix")};function i(i){if(null===i||fe(i))return n(i);const 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},Me={tokenize:function(e){const t=this,n=e.attempt(we,function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)},e.attempt(this.parser.constructs.flowInitial,r,ye(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Ee,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}},_e={resolveAll:Re()},Te=Pe("string"),Ie=Pe("text");function Pe(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,a);return o;function o(e){return l(e)?i(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:Re("text"===e?Le:void 0)}}function Re(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 Le(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],i=t.sliceStream(r);let o,a=i.length,s=-1,l=0;for(;a--;){const e=i[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)o=!0,l++;else if(-1!==e){a++;break}}if(l){const i={type:n===e.length||o||l<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,_index:r.start._index+a,_bufferIndex:a?s:r.start._bufferIndex+s},end:Object.assign({},r.end)};r.end=Object.assign({},i.start),r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}function je(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}function De(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},o=[];let a=[],s=[],l=!0;const c={consume:function(e){fe(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,b()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e,l=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=p(),u.events.push(["enter",n,u]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=p(),u.events.push(["exit",t,u]),t},attempt:v(function(e,t){y(e,t.from)}),check:v(m),interrupt:v(m,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let a;if("string"==typeof o)a=o;else switch(o){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&i)continue;a=" ";break;default:a=String.fromCharCode(o)}i=-2===o,r.push(a)}return r.join("")}(h(e),t)},now:p,defineSkip:function(e){i[e.line]=e.column,b()},write:function(e){return a=ee(a,e),function(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)g(t.charCodeAt(r._bufferIndex));else g(t)}}(),null!==a[a.length-1]?[]:(y(t,0),u.events=je(o,u.events,u),u.events)}};let d,f=t.tokenize.call(u,c);return t.resolveAll&&o.push(t),u;function h(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){const e=a[0];"string"==typeof e?a[0]=e.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}(a,e)}function p(){const{line:e,column:t,offset:n,_index:i,_bufferIndex:o}=r;return{line:e,column:t,offset:n,_index:i,_bufferIndex:o}}function g(e){l=void 0,d=e,f=f(e)}function m(e,t){t.restore()}function v(e,t){return function(n,i,o){let a,d,f,h;return Array.isArray(n)?g(n):"tokenize"in n?g([n]):function(e){return function(t){const n=null!==t&&e[t],r=null!==t&&e.null;return g([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function g(e){return a=e,d=0,0===e.length?o:m(e[d])}function m(e){return function(n){return h=function(){const e=p(),t=u.previous,n=u.currentConstruct,i=u.events.length,o=Array.from(s);return{restore:function(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=i,s=o,b()},from:i}}(),f=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name)?y():e.tokenize.call(t?Object.assign(Object.create(u),t):u,c,v,y)(n)}}function v(t){return l=!0,e(f,h),i}function y(e){return l=!0,h.restore(),++d<a.length?m(a[d]):o}}}function y(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&J(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function b(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}const Oe={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,o(e)}(t)};function o(o){return o===r?(e.enter("thematicBreakSequence"),a(o)):i>=3&&(null===o||fe(o))?(e.exit("thematicBreak"),t(o)):n(o)}function a(t){return t===r?(e.consume(t),i++,a):(e.exit("thematicBreakSequence"),pe(t)?ye(e,o,"whitespace")(t):o(t))}}},Ne={name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:ce(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(Oe,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return ce(t)&&++a<10?(e.consume(t),s):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(we,r.interrupt?n:c,e.attempt(Fe,d,u))}function c(e){return r.containerState.initialBlankLine=!0,o++,d(e)}function u(t){return pe(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(we,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ye(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!pe(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(ze,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,ye(e,e.attempt(Ne,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},Fe={tokenize:function(e,t,n){const r=this;return ye(e,function(e){const i=r.events[r.events.length-1];return!pe(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},ze={tokenize:function(e,t,n){const r=this;return ye(e,function(e){const 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},Be={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const 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 pe(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){const r=this;return function(t){return pe(t)?ye(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(Be,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function $e(e,t,n,r,i,o,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),d):null===t||32===t||41===t||le(t)?n(t):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),p(t))};function d(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||fe(t)?n(t):(e.consume(t),92===t?h:f)}function h(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function p(i){return u||null!==i&&41!==i&&!he(i)?u<c&&40===i?(e.consume(i),u++,p):41===i?(e.consume(i),u--,p):null===i||32===i||40===i||le(i)?n(i):(e.consume(i),92===i?g:p):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(i))}function g(t){return 40===t||41===t||92===t?(e.consume(t),p):p(t)}}function He(e,t,n,r,i,o){const a=this;let s,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(o),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):fe(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||fe(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!pe(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function Ue(e,t,n,r,i,o){let a;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,s):n(t)};function s(n){return n===a?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===a?(e.exit(o),s(a)):null===t?n(t):fe(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ye(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||fe(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function We(e,t){let n;return function r(i){return fe(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):pe(i)?ye(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function Ve(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const qe={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return He.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return i=Ve(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return he(t)?We(e,s)(t):s(t)}function s(t){return $e(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(Ge,c,c)(t)}function c(t){return pe(t)?ye(e,u,"whitespace")(t):u(t)}function u(o){return null===o||fe(o)?(e.exit("definition"),r.parser.defined.push(i),t(o)):n(o)}}},Ge={tokenize:function(e,t,n){return function(t){return he(t)?We(e,r)(t):n(t)};function r(t){return Ue(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return pe(t)?ye(e,o,"whitespace")(t):o(t)}function o(e){return null===e||fe(e)?t(e):n(e)}},partial:!0},Ye={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),ye(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?s(t):fe(t)?e.attempt(Ke,o,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||fe(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},Ke={tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):fe(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):ye(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):fe(e)?i(e):n(e)}},partial:!0},Xe={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||he(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||fe(n)?(e.exit("atxHeading"),t(n)):pe(n)?ye(e,o,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),o(t))}function s(t){return null===t||35===t||he(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),s)}},resolve:function(e,t){let n,r,i=e.length-2,o=3;return"whitespace"===e[o][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"},J(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}},Ze={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let i;return function(t){let a,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){a="paragraph"===r.events[s][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!a?n(t):(e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t))};function o(t){return t===i?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),pe(t)?ye(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||fe(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);const a={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",a,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[i][1].end)):e[n][1]=a,e.push(["exit",a,t]),e}},Qe=["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"],Je=["pre","script","style","textarea"],et={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let i,o,a,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),o=!0,h):63===s?(e.consume(s),i=3,r.interrupt?t:j):oe(s)?(e.consume(s),a=String.fromCharCode(s),p):n(s)}function u(o){return 45===o?(e.consume(o),i=2,d):91===o?(e.consume(o),i=5,s=0,f):oe(o)?(e.consume(o),i=4,r.interrupt?t:j):n(o)}function d(i){return 45===i?(e.consume(i),r.interrupt?t:j):n(i)}function f(i){return i==="CDATA[".charCodeAt(s++)?(e.consume(i),6===s?r.interrupt?t:S:f):n(i)}function h(t){return oe(t)?(e.consume(t),a=String.fromCharCode(t),p):n(t)}function p(s){if(null===s||47===s||62===s||he(s)){const l=47===s,c=a.toLowerCase();return l||o||!Je.includes(c)?Qe.includes(a.toLowerCase())?(i=6,l?(e.consume(s),g):r.interrupt?t(s):S(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):o?m(s):v(s)):(i=1,r.interrupt?t(s):S(s))}return 45===s||ae(s)?(e.consume(s),a+=String.fromCharCode(s),p):n(s)}function g(i){return 62===i?(e.consume(i),r.interrupt?t:S):n(i)}function m(t){return pe(t)?(e.consume(t),m):C(t)}function v(t){return 47===t?(e.consume(t),C):58===t||95===t||oe(t)?(e.consume(t),y):pe(t)?(e.consume(t),v):C(t)}function y(t){return 45===t||46===t||58===t||95===t||ae(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),x):pe(t)?(e.consume(t),b):v(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,A):pe(t)?(e.consume(t),x):w(t)}function A(t){return t===l?(e.consume(t),l=null,k):null===t||fe(t)?n(t):(e.consume(t),A)}function w(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||he(t)?b(t):(e.consume(t),w)}function k(e){return 47===e||62===e||pe(e)?v(e):n(e)}function C(t){return 62===t?(e.consume(t),E):n(t)}function E(t){return null===t||fe(t)?S(t):pe(t)?(e.consume(t),E):n(t)}function S(t){return 45===t&&2===i?(e.consume(t),I):60===t&&1===i?(e.consume(t),P):62===t&&4===i?(e.consume(t),D):63===t&&3===i?(e.consume(t),j):93===t&&5===i?(e.consume(t),L):!fe(t)||6!==i&&7!==i?null===t||fe(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),S):(e.exit("htmlFlowData"),e.check(tt,O,M)(t))}function M(t){return e.check(nt,_,O)(t)}function _(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),T}function T(t){return null===t||fe(t)?M(t):(e.enter("htmlFlowData"),S(t))}function I(t){return 45===t?(e.consume(t),j):S(t)}function P(t){return 47===t?(e.consume(t),a="",R):S(t)}function R(t){if(62===t){const n=a.toLowerCase();return Je.includes(n)?(e.consume(t),D):S(t)}return oe(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),R):S(t)}function L(t){return 93===t?(e.consume(t),j):S(t)}function j(t){return 62===t?(e.consume(t),D):45===t&&2===i?(e.consume(t),j):S(t)}function D(t){return null===t||fe(t)?(e.exit("htmlFlowData"),O(t)):(e.consume(t),D)}function O(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},tt={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(we,t,n)}},partial:!0},nt={tokenize:function(e,t,n){const r=this;return function(t){return fe(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},rt={tokenize:function(e,t,n){const 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},it={name:"codeFenced",tokenize:function(e,t,n){const r=this,i={tokenize:function(e,t,n){let i=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(t){return e.enter("codeFencedFence"),pe(t)?ye(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===o?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===o?(i++,e.consume(t),c):i>=s?(e.exit("codeFencedFenceSequence"),pe(t)?ye(e,u,"whitespace")(t):u(t)):n(t)}function u(r){return null===r||fe(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let o,a=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===o?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),pe(t)?ye(e,c,"whitespace")(t):c(t))}function c(n){return null===n||fe(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(rt,h,y)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||fe(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):pe(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ye(e,d,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),u)}function d(t){return null===t||fe(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||fe(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===o?n(t):(e.consume(t),f)}function h(t){return e.attempt(i,y,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),g}function g(t){return a>0&&pe(t)?ye(e,m,"linePrefix",a+1)(t):m(t)}function m(t){return null===t||fe(t)?e.check(rt,h,y)(t):(e.enter("codeFlowValue"),v(t))}function v(t){return null===t||fe(t)?(e.exit("codeFlowValue"),m(t)):(e.consume(t),v)}function y(n){return e.exit("codeFenced"),t(n)}},concrete:!0},ot=document.createElement("i");function at(e){const t="&"+e+";";ot.innerHTML=t;const n=ot.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}const st={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,o,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,o=ae,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=ue,c):(e.enter("characterReferenceValue"),i=7,o=ce,c(t))}function c(s){if(59===s&&a){const i=e.exit("characterReferenceValue");return o!==ae||at(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return o(s)&&a++<i?(e.consume(s),c):n(s)}}},lt={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 de(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},ct={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ye(e,t,"linePrefix")}}},ut={name:"labelEnd",tokenize:function(e,t,n){const r=this;let i,o,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){i=r.events[a][1];break}return function(t){return i?i._inactive?u(t):(o=r.parser.defined.includes(Ve(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):n(t)};function s(t){return 40===t?e.attempt(dt,c,o?c:u)(t):91===t?e.attempt(ft,c,o?l:u)(t):o?c(t):u(t)}function l(t){return e.attempt(ht,c,u)(t)}function c(e){return t(e)}function u(e){return i._balanced=!0,n(e)}},resolveTo:function(e,t){let n,r,i,o,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=a);const l={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[i][1].end)},u={type:"labelText",start:Object.assign({},e[r+s+2][1].end),end:Object.assign({},e[i-2][1].start)};return o=[["enter",l,t],["enter",c,t]],o=ee(o,e.slice(r+1,r+s+3)),o=ee(o,[["enter",u,t]]),o=ee(o,je(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),o=ee(o,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),o=ee(o,e.slice(i+1)),o=ee(o,[["exit",l,t]]),J(e,r,e.length,o),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){const 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}},dt={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 he(t)?We(e,i)(t):i(t)}function i(t){return 41===t?c(t):$e(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return he(t)?We(e,s)(t):c(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?Ue(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return he(t)?We(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},ft={tokenize:function(e,t,n){const r=this;return function(t){return He.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(Ve(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},ht={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)}}},pt={name:"labelStartImage",tokenize:function(e,t,n){const 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:ut.resolveAll};function gt(e){return null===e||he(e)||me(e)?1:ge(e)?2:void 0}const mt={name:"attention",tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=gt(r);let o;return function(t){return o=t,e.enter("attentionSequence"),a(t)};function a(s){if(s===o)return e.consume(s),a;const l=e.exit("attentionSequence"),c=gt(s),u=!c||2===c&&i||n.includes(s),d=!i||2===i&&c||n.includes(r);return l._open=Boolean(42===o?u:u&&(i||!d)),l._close=Boolean(42===o?d:d&&(c||!u)),t(s)}},resolveAll:function(e,t){let n,r,i,o,a,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;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[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d=Object.assign({},e[n][1].end),f=Object.assign({},e[u][1].start);vt(d,-s),vt(f,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[n][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:f},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[u][1].start)},r={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},o.start),e[u][1].start=Object.assign({},a.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=ee(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=ee(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=ee(l,je(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=ee(l,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=ee(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,J(e,n-1,u-n+3,l),u=n+l.length-c-2;break}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e}};function vt(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const yt={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 oe(t)?(e.consume(t),o):l(t)}function o(e){return 43===e||45===e||46===e||ae(e)?(r=1,a(e)):l(e)}function a(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||ae(t))&&r++<32?(e.consume(t),a):(r=0,l(t))}function s(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||le(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):se(t)?(e.consume(t),l):n(t)}function c(e){return ae(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||ae(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}},bt={name:"htmlText",tokenize:function(e,t,n){const r=this;let i,o,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),x):63===t?(e.consume(t),y):oe(t)?(e.consume(t),k):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),o=0,h):oe(t)?(e.consume(t),v):n(t)}function c(t){return 45===t?(e.consume(t),f):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):fe(t)?(a=u,R(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),f):u(t)}function f(e){return 62===e?P(e):45===e?d(e):u(e)}function h(t){return t==="CDATA[".charCodeAt(o++)?(e.consume(t),6===o?p:h):n(t)}function p(t){return null===t?n(t):93===t?(e.consume(t),g):fe(t)?(a=p,R(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 v(t){return null===t||62===t?P(t):fe(t)?(a=v,R(t)):(e.consume(t),v)}function y(t){return null===t?n(t):63===t?(e.consume(t),b):fe(t)?(a=y,R(t)):(e.consume(t),y)}function b(e){return 62===e?P(e):y(e)}function x(t){return oe(t)?(e.consume(t),A):n(t)}function A(t){return 45===t||ae(t)?(e.consume(t),A):w(t)}function w(t){return fe(t)?(a=w,R(t)):pe(t)?(e.consume(t),w):P(t)}function k(t){return 45===t||ae(t)?(e.consume(t),k):47===t||62===t||he(t)?C(t):n(t)}function C(t){return 47===t?(e.consume(t),P):58===t||95===t||oe(t)?(e.consume(t),E):fe(t)?(a=C,R(t)):pe(t)?(e.consume(t),C):P(t)}function E(t){return 45===t||46===t||58===t||95===t||ae(t)?(e.consume(t),E):S(t)}function S(t){return 61===t?(e.consume(t),M):fe(t)?(a=S,R(t)):pe(t)?(e.consume(t),S):C(t)}function M(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),i=t,_):fe(t)?(a=M,R(t)):pe(t)?(e.consume(t),M):(e.consume(t),T)}function _(t){return t===i?(e.consume(t),i=void 0,I):null===t?n(t):fe(t)?(a=_,R(t)):(e.consume(t),_)}function T(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||he(t)?C(t):(e.consume(t),T)}function I(e){return 47===e||62===e||he(e)?C(e):n(e)}function P(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function R(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),L}function L(t){return pe(t)?ye(e,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):j(t)}function j(t){return e.enter("htmlTextData"),a(t)}}},xt={name:"labelStartLink",tokenize:function(e,t,n){const 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:ut.resolveAll},At={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return fe(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},wt={name:"codeText",tokenize:function(e,t,n){let r,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),o++,a):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(i=e.enter("codeTextSequence"),r=0,c(t)):fe(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||fe(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(i.type="codeTextData",l(n))}},resolve:function(e){let t,n,r=e.length-4,i=3;if(!("lineEnding"!==e[i][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}},kt={42:Ne,43:Ne,45:Ne,48:Ne,49:Ne,50:Ne,51:Ne,52:Ne,53:Ne,54:Ne,55:Ne,56:Ne,57:Ne,62:Be},Ct={91:qe},Et={[-2]:Ye,[-1]:Ye,32:Ye},St={35:Xe,42:Oe,45:[Ze,Oe],60:et,61:Ze,95:Oe,96:it,126:it},Mt={38:st,92:lt},_t={[-5]:ct,[-4]:ct,[-3]:ct,33:pt,38:st,42:mt,60:[yt,bt],91:xt,92:[At,lt],93:ut,95:mt,96:wt},Tt={null:[mt,_e]},It={null:[42,95]},Pt={null:[]},Rt=/[\0\t\n\r]/g;function Lt(e,t){const 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)||65534==(65535&n)||n>1114111?"�":String.fromCharCode(n)}const jt=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Dt(e){return e.replace(jt,Ot)}function Ot(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Lt(n.slice(t?2:1),t?16:10)}return at(n)||e}const Nt={}.hasOwnProperty,Ft=function(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(A),autolinkProtocol:f,autolinkEmail:f,atxHeading:a(v),blockQuote:a(function(){return{type:"blockquote",children:[]}}),characterEscape:f,characterReference:f,codeFenced:a(m),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(m,s),codeText:a(function(){return{type:"inlineCode",value:""}},s),codeTextData:f,data:f,codeFlowValue:f,definition:a(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:a(y),hardBreakTrailing:a(y),htmlFlow:a(b,s),htmlFlowData:f,htmlText:a(b,s),htmlTextData:f,image:a(function(){return{type:"image",title:null,url:"",alt:null}}),label:s,link:a(A),listItem:a(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){o("expectingFirstListItemValue")&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),i("expectingFirstListItemValue"))},listOrdered:a(w,function(){i("expectingFirstListItemValue",!0)}),listUnordered:a(w),paragraph:a(function(){return{type:"paragraph",children:[]}}),reference:function(){i("referenceType","collapsed")},referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(v),strong:a(function(){return{type:"strong",children:[]}}),thematicBreak:a(function(){return{type:"thematicBreak"}})},exit:{atxHeading:c(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}},autolink:c(),autolinkEmail:function(e){h.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){h.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:c(),characterEscapeValue:h,characterReferenceMarkerHexadecimal:g,characterReferenceMarkerNumeric:g,characterReferenceValue:function(e){const t=this.sliceSerialize(e),n=o("characterReferenceType");let r;n?(r=Lt(t,"characterReferenceMarkerNumeric"===n?10:16),i("characterReferenceType")):r=at(t);const a=this.stack.pop();a.value+=r,a.position.end=zt(e.end)},codeFenced:c(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),i("flowCodeInside")}),codeFencedFence:function(){o("flowCodeInside")||(this.buffer(),i("flowCodeInside",!0))},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:h,codeIndented:c(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:c(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:h,data:h,definition:c(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Ve(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:c(),hardBreakEscape:c(p),hardBreakTrailing:c(p),htmlFlow:c(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:h,htmlText:c(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:h,image:c(function(){const e=this.stack[this.stack.length-1];if(o("inReference")){const t=o("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;i("referenceType")}),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(i("inReference",!0),"link"===n.type){const t=e.children;n.children=t}else n.alt=t},labelText:function(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=Dt(t),n.identifier=Ve(t).toLowerCase()},lineEnding:function(e){const n=this.stack[this.stack.length-1];if(o("atHardBreak"))return n.children[n.children.length-1].position.end=zt(e.end),void i("atHardBreak");!o("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(n.type)&&(f.call(this,e),h.call(this,e))},link:c(function(){const e=this.stack[this.stack.length-1];if(o("inReference")){const t=o("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;i("referenceType")}),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Ve(this.sliceSerialize(e)).toLowerCase(),i("referenceType","full")},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){i("inReference")},setextHeading:c(function(){i("setextHeadingSlurpLineEnding")}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2},setextHeadingText:function(){i("setextHeadingSlurpLineEnding",!0)},strong:c(),thematicBreak:c()}};Bt(t,(e||{}).mdastExtensions||[]);const n={};return function(e){let n={type:"root",children:[]};const a={stack:[n],tokenStack:[],config:t,enter:l,exit:u,buffer:s,resume:d,setData:i,getData:o},c=[];let f=-1;for(;++f<e.length;)"listOrdered"!==e[f][1].type&&"listUnordered"!==e[f][1].type||("enter"===e[f][0]?c.push(f):f=r(e,c.pop(),f));for(f=-1;++f<e.length;){const n=t[e[f][0]];Nt.call(n,e[f][1].type)&&n[e[f][1].type].call(Object.assign({sliceSerialize:e[f][2].sliceSerialize},a),e[f][1])}if(a.tokenStack.length>0){const e=a.tokenStack[a.tokenStack.length-1];(e[1]||Ht).call(a,void 0,e[0])}for(n.position={start:zt(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:zt(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},f=-1;++f<t.transforms.length;)n=t.transforms[f](n)||n;return n};function r(e,t,n){let r,i,o,a,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];if("listUnordered"===t[1].type||"listOrdered"===t[1].type||"blockQuote"===t[1].type?("enter"===t[0]?l++:l--,a=void 0):"lineEndingBlank"===t[1].type?"enter"===t[0]&&(!r||a||l||o||(o=s),a=void 0):"linePrefix"===t[1].type||"listItemValue"===t[1].type||"listItemMarker"===t[1].type||"listItemPrefix"===t[1].type||"listItemPrefixWhitespace"===t[1].type||(a=void 0),!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=s;for(i=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",r,t[2]]),s++,n++}"listItemPrefix"===t[1].type&&(r={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0},e.splice(s,0,["enter",r,t[2]]),s++,n++,o=void 0,a=!0)}}return e[t][1]._spread=c,n}function i(e,t){n[e]=t}function o(e){return n[e]}function a(e,t){return function(n){l.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:"fragment",children:[]})}function l(e,t,n){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:zt(t.start)},e}function c(e){return function(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+x({start:e.start,end:e.end})+"): it’s not open");return r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Ht).call(this,e,r[0])),n.position.end=zt(e.end),n}function d(){return function(e){return Z(e,"boolean"!=typeof X.includeImageAlt||X.includeImageAlt,"boolean"!=typeof X.includeHtml||X.includeHtml)}(this.stack.pop())}function f(e){const t=this.stack[this.stack.length-1];let n=t.children[t.children.length-1];n&&"text"===n.type||(n={type:"text",value:""},n.position={start:zt(e.start)},t.children.push(n)),this.stack.push(n)}function h(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=zt(e.end)}function p(){i("atHardBreak",!0)}function g(e){i("characterReferenceType",e.type)}function m(){return{type:"code",lang:null,meta:null,value:""}}function v(){return{type:"heading",depth:void 0,children:[]}}function y(){return{type:"break"}}function b(){return{type:"html",value:""}}function A(){return{type:"link",title:null,url:"",children:[]}}function w(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(n)(function(e){for(;!ke(e););return e}(function(e){const t={defined:[],lazy:{},constructs:ne([r,...(e||{}).extensions||[]]),content:n(be),document:n(xe),flow:n(Me),string:n(Te),text:n(Ie)};return t;function n(e){return function(n){return De(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(i,o,a){const s=[];let l,c,u,d,f;for(i=n+i.toString(o),u=0,n="",r&&(65279===i.charCodeAt(0)&&u++,r=void 0);u<i.length;){if(Rt.lastIndex=u,l=Rt.exec(i),d=l&&void 0!==l.index?l.index:i.length,f=i.charCodeAt(d),!l){n=i.slice(u);break}if(10===f&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(i.slice(u,d)),t+=d-u),f){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return a&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))};function zt(e){return{line:e.line,column:e.column,offset:e.offset}}function Bt(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Bt(e,r):$t(e,r)}}function $t(e,t){let n;for(n in t)if(Nt.call(t,n))if("canContainEols"===n){const r=t[n];r&&e[n].push(...r)}else if("transforms"===n){const r=t[n];r&&e[n].push(...r)}else if("enter"===n||"exit"===n){const r=t[n];r&&Object.assign(e[n],r)}}function Ht(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+x({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+x({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+x({start:t.start,end:t.end})+") is still open")}function Ut(e){Object.assign(this,{Parser:t=>{const n=this.data("settings");return Ft(t,Object.assign({},n,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function Wt(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(37===o&&ae(e.charCodeAt(n+1))&&ae(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(a=String.fromCharCode(o,t),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}const Vt=function(e){if(null==e)return Gt;if("string"==typeof e)return t=e,qt(function(e){return e&&e.type===t});var t;if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Vt(e[n]);return qt(function(...e){let n=-1;for(;++n<t.length;)if(t[n].call(this,...e))return!0;return!1})}(e):function(e){return qt(function(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0})}(e);if("function"==typeof e)return qt(e);throw new Error("Expected function, string, or object as test")};function qt(e){return function(t,...n){return Boolean(t&&"object"==typeof t&&"type"in t&&Boolean(e.call(this,t,...n)))}}function Gt(){return!0}const Yt=!1,Kt=function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null);const i=Vt(t),o=r?-1:1;!function e(a,s,l){const c=a&&"object"==typeof a?a:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+a.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,f=[];if((!t||i(a,s,l[l.length-1]||null))&&(f=function(e){return Array.isArray(e)?e:"number"==typeof e?[true,e]:[e]}(n(a,l)),f[0]===Yt))return f;if(a.children&&"skip"!==f[0])for(u=(r?a.children.length:-1)+o,d=l.concat(a);u>-1&&u<a.children.length;){if(c=e(a.children[u],u,d)(),c[0]===Yt)return c;u="number"==typeof c[1]?c[1]:u+o}return f}}(e,void 0,[])()},Xt=function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null),Kt(e,t,function(e,t){const r=t[t.length-1];return n(e,r?r.children.indexOf(e):null,r)},r)},Zt=Jt("start"),Qt=Jt("end");function Jt(e){return function(t){const n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:n.offset>-1?n.offset:null}}}const en={}.hasOwnProperty;function tn(e){return String(e||"").toUpperCase()}function nn(e,t){const n=String(t.identifier).toUpperCase(),r=Wt(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let o;-1===i?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,o=e.footnoteOrder.length):(e.footnoteCounts[n]++,o=i+1);const a=e.footnoteCounts[n],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const l={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,l),e.applyData(t,l)}function rn(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return{type:"text",value:"!["+t.alt+r};const i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&"text"===a.type?a.value+=r:i.push({type:"text",value:r}),i}function on(e){const t=e.spread;return null==t?e.children.length>1:t}function an(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(sn(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(sn(t.slice(i),i>0,!1)),o.join("")}function sn(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):""}const ln={blockquote:function(e,t){const 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){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};r&&(i.className=["language-"+r]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:nn,footnote:function(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},nn(e,{type:"footnoteReference",identifier:i,position:t.position})},heading:function(e,t){const 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.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null},imageReference:function(e,t){const n=e.definition(t.identifier);if(!n)return rn(e,t);const r={src:Wt(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:Wt(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=e.definition(t.identifier);if(!n)return rn(e,t);const r={href:Wt(n.url||"")};null!==n.title&&void 0!==n.title&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:Wt(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const 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){const r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=on(n[r])}return t}(n):on(t),o={},a=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?a.push(e):a.push(...e.children)}const l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&a.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){const 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}}const 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){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Zt(t.children[1]),a=Qt(t.children[t.children.length-1]);o.line&&a.line&&(r.position={start:o,end:a}),i.push(r)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,a=o?o.length:t.children.length;let s=-1;const l=[];for(;++s<a;){const n=t.children[s],r={},a=o?o[s]:void 0;a&&(r.align=a);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(t,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:an(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:cn,yaml:cn,definition:cn,footnoteDefinition:cn};function cn(){return null}const un={}.hasOwnProperty;function dn(e,t){var n;e.position&&(t.position={start:Zt(n=e),end:Qt(n)})}function fn(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:[]}),"element"===n.type&&i&&(n.properties={...n.properties,...i}),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function hn(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return un.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:pn(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):function(e,t){const n=t.data||{},r=!("value"in t)||un.call(n,"hProperties")||un.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:pn(e,t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}(e,t)}function pn(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i<r.length;){const o=hn(e,r[i],t);if(o){if(i&&"break"===r[i-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=o.value.replace(/^\s+/,"")),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=e.value.replace(/^\s+/,""))}Array.isArray(o)?n.push(...o):n.push(o)}}}return n}function gn(e,t){const n=[];let 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 mn(e,t){const n=function(e,t){const n=t||{},r=n.allowDangerousHtml||!1,i={};return a.dangerous=r,a.clobberPrefix=void 0===n.clobberPrefix||null===n.clobberPrefix?"user-content-":n.clobberPrefix,a.footnoteLabel=n.footnoteLabel||"Footnotes",a.footnoteLabelTagName=n.footnoteLabelTagName||"h2",a.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},a.footnoteBackLabel=n.footnoteBackLabel||"Back to content",a.unknownHandler=n.unknownHandler,a.passThrough=n.passThrough,a.handlers={...ln,...n.handlers},a.definition=function(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return Xt(e,"definition",e=>{const n=tn(e.identifier);n&&!en.call(t,n)&&(t[n]=e)}),function(e){const n=tn(e);return n&&en.call(t,n)?t[n]:null}}(e),a.footnoteById=i,a.footnoteOrder=[],a.footnoteCounts={},a.patch=dn,a.applyData=fn,a.one=function(e,t){return hn(a,e,t)},a.all=function(e){return pn(a,e)},a.wrap=gn,a.augment=o,Xt(e,"footnoteDefinition",e=>{const t=String(e.identifier).toUpperCase();un.call(i,t)||(i[t]=e)}),a;function o(e,t){if(e&&"data"in e&&e.data){const n=e.data;n.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties={...t.properties,...n.hProperties}),"children"in t&&t.children&&n.hChildren&&(t.children=n.hChildren)}if(e){const r="type"in e?e:{position:e};!((n=r)&&n.position&&n.position.start&&n.position.start.line&&n.position.start.column&&n.position.end&&n.position.end.line&&n.position.end.column)||(t.position={start:Zt(r),end:Qt(r)})}var n;return t}function a(e,t,n,r){return Array.isArray(n)&&(r=n,n={}),o(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}}(e,t),r=n.one(e,null),i=function(e){const t=[];let n=-1;for(;++n<e.footnoteOrder.length;){const r=e.footnoteById[e.footnoteOrder[n]];if(!r)continue;const i=e.all(r),o=String(r.identifier).toUpperCase(),a=Wt(o.toLowerCase());let s=0;const l=[];for(;++s<=e.footnoteCounts[o];){const t={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),l.length>0&&l.push({type:"text",value:" "}),l.push(t)}const c=i[i.length-1];if(c&&"element"===c.type&&"p"===c.tagName){const e=c.children[c.children.length-1];e&&"text"===e.type?e.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...l)}else i.push(...l);const u={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:e.wrap(i,!0)};e.patch(r,u),t.push(u)}if(0!==t.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:"\n"}]}}(n);return i&&r.children.push({type:"text",value:"\n"},i),Array.isArray(r)?{type:"root",children:r}:r}const vn=function(e,t){return e&&"run"in e?function(e,t){return(n,r,i)=>{e.run(mn(n,t),r,e=>{i(e)})}}(e,t):function(e){return t=>mn(t,e)}(e||t)};var yn=n(39067);class bn{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function xn(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new bn(n,r,t)}function An(e){return e.toLowerCase()}bn.prototype.property={},bn.prototype.normal={},bn.prototype.space=null;class wn{constructor(e,t){this.property=e,this.attribute=t}}wn.prototype.space=null,wn.prototype.boolean=!1,wn.prototype.booleanish=!1,wn.prototype.overloadedBoolean=!1,wn.prototype.number=!1,wn.prototype.commaSeparated=!1,wn.prototype.spaceSeparated=!1,wn.prototype.commaOrSpaceSeparated=!1,wn.prototype.mustUseProperty=!1,wn.prototype.defined=!1;let kn=0;const Cn=Pn(),En=Pn(),Sn=Pn(),Mn=Pn(),_n=Pn(),Tn=Pn(),In=Pn();function Pn(){return 2**++kn}const Rn=Object.keys(i);class Ln extends wn{constructor(e,t,n,r){let o=-1;if(super(e,t),jn(this,"space",r),"number"==typeof n)for(;++o<Rn.length;){const e=Rn[o];jn(this,Rn[o],(n&i[e])===i[e])}}}function jn(e,t,n){n&&(e[t]=n)}Ln.prototype.defined=!0;const Dn={}.hasOwnProperty;function On(e){const t={},n={};let r;for(r in e.properties)if(Dn.call(e.properties,r)){const i=e.properties[r],o=new Ln(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[An(r)]=r,n[An(o.attribute)]=r}return new bn(t,n,e.space)}const Nn=On({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}}),Fn=On({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function zn(e,t){return t in e?e[t]:t}function Bn(e,t){return zn(e,t.toLowerCase())}const $n=On({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Bn,properties:{xmlns:null,xmlnsXLink:null}}),Hn=On({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:En,ariaAutoComplete:null,ariaBusy:En,ariaChecked:En,ariaColCount:Mn,ariaColIndex:Mn,ariaColSpan:Mn,ariaControls:_n,ariaCurrent:null,ariaDescribedBy:_n,ariaDetails:null,ariaDisabled:En,ariaDropEffect:_n,ariaErrorMessage:null,ariaExpanded:En,ariaFlowTo:_n,ariaGrabbed:En,ariaHasPopup:null,ariaHidden:En,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_n,ariaLevel:Mn,ariaLive:null,ariaModal:En,ariaMultiLine:En,ariaMultiSelectable:En,ariaOrientation:null,ariaOwns:_n,ariaPlaceholder:null,ariaPosInSet:Mn,ariaPressed:En,ariaReadOnly:En,ariaRelevant:null,ariaRequired:En,ariaRoleDescription:_n,ariaRowCount:Mn,ariaRowIndex:Mn,ariaRowSpan:Mn,ariaSelected:En,ariaSetSize:Mn,ariaSort:null,ariaValueMax:Mn,ariaValueMin:Mn,ariaValueNow:Mn,ariaValueText:null,role:null}}),Un=On({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Bn,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Tn,acceptCharset:_n,accessKey:_n,action:null,allow:null,allowFullScreen:Cn,allowPaymentRequest:Cn,allowUserMedia:Cn,alt:null,as:null,async:Cn,autoCapitalize:null,autoComplete:_n,autoFocus:Cn,autoPlay:Cn,blocking:_n,capture:null,charSet:null,checked:Cn,cite:null,className:_n,cols:Mn,colSpan:null,content:null,contentEditable:En,controls:Cn,controlsList:_n,coords:Mn|Tn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Cn,defer:Cn,dir:null,dirName:null,disabled:Cn,download:Sn,draggable:En,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Cn,formTarget:null,headers:_n,height:Mn,hidden:Cn,high:Mn,href:null,hrefLang:null,htmlFor:_n,httpEquiv:_n,id:null,imageSizes:null,imageSrcSet:null,inert:Cn,inputMode:null,integrity:null,is:null,isMap:Cn,itemId:null,itemProp:_n,itemRef:_n,itemScope:Cn,itemType:_n,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Cn,low:Mn,manifest:null,max:null,maxLength:Mn,media:null,method:null,min:null,minLength:Mn,multiple:Cn,muted:Cn,name:null,nonce:null,noModule:Cn,noValidate:Cn,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:Cn,optimum:Mn,pattern:null,ping:_n,placeholder:null,playsInline:Cn,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Cn,referrerPolicy:null,rel:_n,required:Cn,reversed:Cn,rows:Mn,rowSpan:Mn,sandbox:_n,scope:null,scoped:Cn,seamless:Cn,selected:Cn,shadowRootClonable:Cn,shadowRootDelegatesFocus:Cn,shadowRootMode:null,shape:null,size:Mn,sizes:null,slot:null,span:Mn,spellCheck:En,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Mn,step:null,style:null,tabIndex:Mn,target:null,title:null,translate:null,type:null,typeMustMatch:Cn,useMap:null,value:En,width:Mn,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:_n,axis:null,background:null,bgColor:null,border:Mn,borderColor:null,bottomMargin:Mn,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Cn,declare:Cn,event:null,face:null,frame:null,frameBorder:null,hSpace:Mn,leftMargin:Mn,link:null,longDesc:null,lowSrc:null,marginHeight:Mn,marginWidth:Mn,noResize:Cn,noHref:Cn,noShade:Cn,noWrap:Cn,object:null,profile:null,prompt:null,rev:null,rightMargin:Mn,rules:null,scheme:null,scrolling:En,standby:null,summary:null,text:null,topMargin:Mn,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Mn,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Cn,disableRemotePlayback:Cn,prefix:null,property:null,results:Mn,security:null,unselectable:null}}),Wn=On({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:zn,properties:{about:In,accentHeight:Mn,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Mn,amplitude:Mn,arabicForm:null,ascent:Mn,attributeName:null,attributeType:null,azimuth:Mn,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Mn,by:null,calcMode:null,capHeight:Mn,className:_n,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:Mn,diffuseConstant:Mn,direction:null,display:null,dur:null,divisor:Mn,dominantBaseline:null,download:Cn,dx:null,dy:null,edgeMode:null,editable:null,elevation:Mn,enableBackground:null,end:null,event:null,exponent:Mn,externalResourcesRequired:null,fill:null,fillOpacity:Mn,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:Tn,g2:Tn,glyphName:Tn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Mn,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Mn,horizOriginX:Mn,horizOriginY:Mn,id:null,ideographic:Mn,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Mn,k:Mn,k1:Mn,k2:Mn,k3:Mn,k4:Mn,kernelMatrix:In,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Mn,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:Mn,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:Mn,overlineThickness:Mn,paintOrder:null,panose1:null,path:null,pathLength:Mn,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:_n,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Mn,pointsAtY:Mn,pointsAtZ:Mn,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:In,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:In,rev:In,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:In,requiredFeatures:In,requiredFonts:In,requiredFormats:In,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:Mn,specularExponent:Mn,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Mn,strikethroughThickness:Mn,string:null,stroke:null,strokeDashArray:In,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Mn,strokeOpacity:Mn,strokeWidth:null,style:null,surfaceScale:Mn,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:In,tabIndex:Mn,tableValues:null,target:null,targetX:Mn,targetY:Mn,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:In,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Mn,underlineThickness:Mn,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Mn,values:null,vAlphabetic:Mn,vMathematical:Mn,vectorEffect:null,vHanging:Mn,vIdeographic:Mn,version:null,vertAdvY:Mn,vertOriginX:Mn,vertOriginY:Mn,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Mn,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Vn=xn([Fn,Nn,$n,Hn,Un],"html"),qn=xn([Fn,Nn,$n,Hn,Wn],"svg");function Gn(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{Xt(t,"element",(t,n,r)=>{const i=r;let o;if(e.allowedElements?o=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(o=e.disallowedElements.includes(t.tagName)),!o&&e.allowElement&&"number"==typeof n&&(o=!e.allowElement(t,n,i)),o&&"number"==typeof n)return e.unwrapDisallowed&&t.children?i.children.splice(n,1,...t.children):i.children.splice(n,1),n})}}var Yn=n(23819);function Kn(e){const t=e&&"object"==typeof e&&"text"===e.type?e.value||"":e;return"string"==typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}const Xn=/^data[-\w.:]+$/i,Zn=/-[a-z]/g,Qn=/[A-Z]/g;function Jn(e){return"-"+e.toLowerCase()}function er(e){return e.charAt(1).toUpperCase()}const tr={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"},nr=n(47093),rr=["http","https","mailto","tel"];function ir(e){const t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;const r=t.indexOf(":");if(-1===r)return t;let i=-1;for(;++i<rr.length;){const e=rr[i];if(r===e.length&&t.slice(0,e.length).toLowerCase()===e)return t}return i=t.indexOf("?"),-1!==i&&r>i?t:(i=t.indexOf("#"),-1!==i&&r>i?t:"javascript:void(0)")}const or={}.hasOwnProperty,ar=new Set(["table","thead","tbody","tfoot","tr"]);function sr(e,t){const n=[];let r,i=-1;for(;++i<t.children.length;)r=t.children[i],"element"===r.type?n.push(lr(e,r,i,t)):"text"===r.type?"element"===t.type&&ar.has(t.tagName)&&Kn(r)||n.push(r.value):"raw"!==r.type||e.options.skipHtml||n.push(r.value);return n}function lr(e,t,n,r){const i=e.options,o=void 0===i.transformLinkUri?ir:i.transformLinkUri,a=e.schema,s=t.tagName,l={};let c,u=a;if("html"===a.space&&"svg"===s&&(u=qn,e.schema=u),t.properties)for(c in t.properties)or.call(t.properties,c)&&ur(l,c,t.properties[c],e);"ol"!==s&&"ul"!==s||e.listDepth++;const d=sr(e,t);"ol"!==s&&"ul"!==s||e.listDepth--,e.schema=a;const f=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},h=i.components&&or.call(i.components,s)?i.components[s]:s,p="string"==typeof h||h===y.Fragment;if(!Yn.isValidElementType(h))throw new TypeError(`Component for name \`${s}\` not defined or is not renderable`);if(l.key=n,"a"===s&&i.linkTarget&&(l.target="function"==typeof i.linkTarget?i.linkTarget(String(l.href||""),t.children,"string"==typeof l.title?l.title:null):i.linkTarget),"a"===s&&o&&(l.href=o(String(l.href||""),t.children,"string"==typeof l.title?l.title:null)),p||"code"!==s||"element"!==r.type||"pre"===r.tagName||(l.inline=!0),p||"h1"!==s&&"h2"!==s&&"h3"!==s&&"h4"!==s&&"h5"!==s&&"h6"!==s||(l.level=Number.parseInt(s.charAt(1),10)),"img"===s&&i.transformImageUri&&(l.src=i.transformImageUri(String(l.src||""),String(l.alt||""),"string"==typeof l.title?l.title:null)),!p&&"li"===s&&"element"===r.type){const e=function(e){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if("element"===n.type&&"input"===n.tagName)return n}return null}(t);l.checked=e&&e.properties?Boolean(e.properties.checked):null,l.index=cr(r,t),l.ordered="ol"===r.tagName}var g;return p||"ol"!==s&&"ul"!==s||(l.ordered="ol"===s,l.depth=e.listDepth),"td"!==s&&"th"!==s||(l.align&&(l.style||(l.style={}),l.style.textAlign=l.align,delete l.align),p||(l.isHeader="th"===s)),p||"tr"!==s||"element"!==r.type||(l.isHeader=Boolean("thead"===r.tagName)),i.sourcePos&&(l["data-sourcepos"]=[(g=f).start.line,":",g.start.column,"-",g.end.line,":",g.end.column].map(String).join("")),!p&&i.rawSourcePos&&(l.sourcePosition=t.position),!p&&i.includeElementIndex&&(l.index=cr(r,t),l.siblingCount=cr(r)),p||(l.node=t),d.length>0?y.createElement(h,l,d):y.createElement(h,l)}function cr(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)"element"===e.children[n].type&&r++;return r}function ur(e,t,n,r){const i=function(e,t){const n=An(t);let r=t,i=wn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Xn.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Zn,er);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Zn.test(e)){let n=e.replace(Qn,Jn);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=Ln}return new i(r,t)}(r.schema,t);let o=n;null!=o&&o==o&&(Array.isArray(o)&&(o=i.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(o):o.join(" ").trim()),"style"===i.property&&"string"==typeof o&&(o=function(e){const t={};try{nr(e,function(e,n){const r="-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e;t[r.replace(/-([a-z])/g,dr)]=n})}catch{}return t}(o)),i.space&&i.property?e[or.call(tr,i.property)?tr[i.property]:i.property]=o:i.attribute&&(e[i.attribute]=o))}function dr(e,t){return t.toUpperCase()}const fr={}.hasOwnProperty,hr="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",pr={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function gr(e){for(const t in pr)if(fr.call(pr,t)&&fr.call(e,t)){const e=pr[t];console.warn(`[react-markdown] Warning: please ${e.to?`use \`${e.to}\` instead of`:"remove"} \`${t}\` (see <${hr}#${e.id}> for more info)`),delete pr[t]}const t=$().use(Ut).use(e.remarkPlugins||[]).use(vn,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(Gn,e),n=new j;"string"==typeof e.children?n.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=t.runSync(t.parse(n),n);if("root"!==r.type)throw new TypeError("Expected a `root` node");let i=y.createElement(y.Fragment,{},sr({options:e,schema:Vn,listDepth:0},r));return e.className&&(i=y.createElement("div",{className:e.className},i)),i}gr.propTypes={children:yn.string,className:yn.string,allowElement:yn.func,allowedElements:yn.arrayOf(yn.string),disallowedElements:yn.arrayOf(yn.string),unwrapDisallowed:yn.bool,remarkPlugins:yn.arrayOf(yn.oneOfType([yn.object,yn.func,yn.arrayOf(yn.oneOfType([yn.bool,yn.string,yn.object,yn.func,yn.arrayOf(yn.any)]))])),rehypePlugins:yn.arrayOf(yn.oneOfType([yn.object,yn.func,yn.arrayOf(yn.oneOfType([yn.bool,yn.string,yn.object,yn.func,yn.arrayOf(yn.any)]))])),sourcePos:yn.bool,rawSourcePos:yn.bool,skipHtml:yn.bool,includeElementIndex:yn.bool,transformLinkUri:yn.oneOfType([yn.func,yn.bool]),linkTarget:yn.oneOfType([yn.func,yn.string]),transformImageUri:yn.func,components:yn.object};const mr={tokenize:function(e,t,n){let r=0;return function t(o){return(87===o||119===o)&&r<3?(r++,e.consume(o),t):46===o&&3===r?(e.consume(o),i):n(o)};function i(e){return null===e?n(e):t(e)}},partial:!0},vr={tokenize:function(e,t,n){let r,i,o;return a;function a(t){return 46===t||95===t?e.check(br,l,s)(t):null===t||he(t)||me(t)||45!==t&&ge(t)?l(t):(o=!0,e.consume(t),a)}function s(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),a}function l(e){return i||r||!o?n(e):t(e)}},partial:!0},yr={tokenize:function(e,t){let n=0,r=0;return i;function i(a){return 40===a?(n++,e.consume(a),i):41===a&&r<n?o(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(br,t,o)(a):null===a||he(a)||me(a)?t(a):(e.consume(a),i)}function o(t){return 41===t&&r++,e.consume(t),i}},partial:!0},br={tokenize:function(e,t,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),r):38===a?(e.consume(a),o):93===a?(e.consume(a),i):60===a||null===a||he(a)||me(a)?t(a):n(a)}function i(e){return null===e||40===e||91===e||he(e)||me(e)?t(e):r(e)}function o(e){return oe(e)?a(e):n(e)}function a(t){return 59===t?(e.consume(t),r):oe(t)?(e.consume(t),a):n(t)}},partial:!0},xr={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return ae(e)?n(e):t(e)}},partial:!0},Ar={tokenize:function(e,t,n){const r=this;return function(t){return 87!==t&&119!==t||!Mr.call(r,r.previous)||Pr(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(mr,e.attempt(vr,e.attempt(yr,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:Mr},wr={tokenize:function(e,t,n){const r=this;let i="",o=!1;return function(t){return 72!==t&&104!==t||!_r.call(r,r.previous)||Pr(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),a)};function a(t){if(oe(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),a;if(58===t){const n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),o?l:(o=!0,s)):n(t)}function l(t){return null===t||le(t)||he(t)||me(t)||ge(t)?n(t):e.attempt(vr,e.attempt(yr,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:_r},kr={tokenize:function(e,t,n){const r=this;let i,o;return function(t){return Ir(t)&&Tr.call(r,r.previous)&&!Pr(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)):n(t)};function a(t){return Ir(t)?(e.consume(t),a):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(xr,c,l)(t):45===t||95===t||ae(t)?(o=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),i=!0,s}function c(a){return o&&i&&oe(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:Tr},Cr={},Er={text:Cr};let Sr=48;for(;Sr<123;)Cr[Sr]=kr,Sr++,58===Sr?Sr=65:91===Sr&&(Sr=97);function Mr(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||he(e)}function _r(e){return!oe(e)}function Tr(e){return!(47===e||Ir(e))}function Ir(e){return 43===e||45===e||46===e||95===e||ae(e)}function Pr(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}Cr[43]=kr,Cr[45]=kr,Cr[46]=kr,Cr[95]=kr,Cr[72]=[kr,wr],Cr[104]=[kr,wr],Cr[87]=[kr,Ar],Cr[119]=[kr,Ar];const Rr={tokenize:function(e,t,n){const r=this;return ye(e,function(e){const i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function Lr(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const e=r.events[i][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!a||!a._balanced)return n(i);const s=Ve(r.sliceSerialize({start:a.end,end:r.now()}));return 94===s.codePointAt(0)&&o.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)):n(i)}}function jr(e,t){let n,r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",o,t],["exit",o,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...l),e}function Dr(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(a>999||93===s&&!o||null===s||91===s||he(s))return n(s);if(93===s){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return i.includes(Ve(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return he(s)||(o=!0),a++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function Or(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!a||null===t||91===t||he(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return o=Ve(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return he(t)||(a=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(o)||i.push(o),ye(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function Nr(e,t,n){return e.check(we,t,e.attempt(Rr,t,n))}function Fr(e){e.exit("gfmFootnoteDefinition")}function zr(e){let t=(e||{}).singleTilde;const n={tokenize:function(e,n,r){const i=this.previous,o=this.events;let a=0;return function(t){return 126===i&&"characterEscape"!==o[o.length-1][1].type?r(t):(e.enter("strikethroughSequenceTemporary"),s(t))};function s(o){const l=gt(i);if(126===o)return a>1?r(o):(e.consume(o),a++,s);if(a<2&&!t)return r(o);const c=e.exit("strikethroughSequenceTemporary"),u=gt(o);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",o,t]],s=t.parser.constructs.insideSpan.null;s&&J(a,a.length,0,je(s,e.slice(r+1,n),t)),J(a,a.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),J(e,r-1,n-r+3,a),n=r+a.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class Br{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t)return e.map[i][1]+=n,void e.map[i][2].push(...r);i+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort((e,t)=>e[0]-t[0]),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1])),n.push(this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}function $r(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}const Hr={flow:{null:{tokenize:function(e,t,n){const r=this;let i,o=0,a=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const i=t>-1?r.events[t][1].type:null,o="tableHead"===i||"tableRow"===i?x:s;return o===x&&r.parser.lazy[r.now().line]?n(e):o(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){return 124===e||(i=!0,a+=1),l(e)}(t)}function l(t){return null===t?n(t):fe(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):pe(t)?ye(e,l,"whitespace")(t):(a+=1,i&&(i=!1,o+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),i=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||he(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),i=!1,pe(t)?ye(e,f,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t))}function f(t){return 45===t||58===t?p(t):124===t?(i=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):b(t)}function h(t){return pe(t)?ye(e,p,"whitespace")(t):p(t)}function p(t){return 58===t?(a+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),g):45===t?(a+=1,g(t)):null===t||fe(t)?y(t):b(t)}function g(t){return 45===t?(e.enter("tableDelimiterFiller"),m(t)):b(t)}function m(t){return 45===t?(e.consume(t),m):58===t?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(t))}function v(t){return pe(t)?ye(e,y,"whitespace")(t):y(t)}function y(n){return 124===n?f(n):(null===n||fe(n))&&i&&o===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):b(n)}function b(e){return n(e)}function x(t){return e.enter("tableRow"),A(t)}function A(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),A):null===n||fe(n)?(e.exit("tableRow"),t(n)):pe(n)?ye(e,A,"whitespace")(n):(e.enter("data"),w(n))}function w(t){return null===t||124===t||he(t)?(e.exit("data"),A(t)):(e.consume(t),92===t?k:w)}function k(t){return 92===t||124===t?(e.consume(t),w):w(t)}},resolveAll:function(e,t){let n,r,i,o=-1,a=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const f=new Br;for(;++o<e.length;){const h=e[o],p=h[1];"enter"===h[0]?"tableHead"===p.type?(u=!1,0!==d&&(Wr(f,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},f.add(o,0,[["enter",n,t]])):"tableRow"===p.type||"tableDelimiterRow"===p.type?(a=!0,i=void 0,l=[0,0,0,0],c=[0,o+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},f.add(o,0,[["enter",r,t]])),s="tableDelimiterRow"===p.type?2:r?3:1):!s||"data"!==p.type&&"tableDelimiterMarker"!==p.type&&"tableDelimiterFiller"!==p.type?"tableCellDivider"===p.type&&(a?a=!1:(0!==l[1]&&(c[0]=c[1],i=Ur(f,t,l,s,void 0,i)),l=c,c=[l[1],o,0,0])):(a=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],i=Ur(f,t,l,s,void 0,i),l=[0,0,0,0]),c[2]=o)):"tableHead"===p.type?(u=!0,d=o):"tableRow"===p.type||"tableDelimiterRow"===p.type?(d=o,0!==l[1]?(c[0]=c[1],i=Ur(f,t,l,s,o,i)):0!==c[1]&&(i=Ur(f,t,c,s,o,i)),s=0):!s||"data"!==p.type&&"tableDelimiterMarker"!==p.type&&"tableDelimiterFiller"!==p.type||(c[3]=o)}for(0!==d&&Wr(f,t,d,n,r),f.consume(t.events),o=-1;++o<t.events.length;){const e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=$r(t.events,o))}return e}}}};function Ur(e,t,n,r,i,o){const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(o.end=Object.assign({},Vr(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const s=Vr(t.events,n[1]);if(o={type:a,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){const i=Vr(t.events,n[2]),o=Vr(t.events,n[3]),a={type:"tableContent",start:Object.assign({},i),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",a,t]]),2!==r){const r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==i&&(o.end=Object.assign({},Vr(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function Wr(e,t,n,r,i){const o=[],a=Vr(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function Vr(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const qr={tokenize:function(e,t,n){const r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return he(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return fe(r)?t(r):pe(r)?e.check({tokenize:Yr},t,n)(r):n(r)}}},Gr={text:{91:qr}};function Yr(e,t,n){return ye(e,function(e){return null===e?n(e):t(e)},"whitespace")}function Kr(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}const Xr={}.hasOwnProperty;function Zr(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function Qr(e){return"function"==typeof e?e:()=>e}const Jr="phrasing",ei=["autolink","link","image","label"],ti={transforms:[function(e){!function(e,t,n,r){let i,o;"string"==typeof t||t instanceof RegExp?(o=[[t,n]],i=r):(o=t,i=n),i||(i={});const a=Vt(i.ignore||[]),s=function(e){const t=[];if("object"!=typeof e)throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let n=-1;for(;++n<e.length;)t.push([Zr(e[n][0]),Qr(e[n][1])])}else{let n;for(n in e)Xr.call(e,n)&&t.push([Zr(n),Qr(e[n])])}return t}(o);let l=-1;for(;++l<s.length;)Kt(e,"text",c);return e;function c(e,t){let n,r=-1;for(;++r<t.length;){const e=t[r];if(a(e,n?n.children.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=s[l][0],i=s[l][1];let o=0;const a=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,a={index:d.index,input:d.input,stack:[...t,e]};let s=i(...d,a);if("string"==typeof s&&(s=s.length>0?{type:"text",value:s}:void 0),!1!==s&&(o!==n&&u.push({type:"text",value:e.value.slice(o,n)}),Array.isArray(s)?u.push(...s):s&&u.push(s),o=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}return c?(o<e.value.length&&u.push({type:"text",value:e.value.slice(o)}),n.children.splice(a,1,...u)):u=[e],a+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ii],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,oi]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:ri,literalAutolinkHttp:ri,literalAutolinkWww:ri},exit:{literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e);this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}}},ni={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Jr,notInConstruct:ei},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Jr,notInConstruct:ei},{character:":",before:"[ps]",after:"\\/",inConstruct:Jr,notInConstruct:ei}]};function ri(e){this.config.enter.autolinkProtocol.call(this,e)}function ii(e,t,n,r,i){let o="";if(!ai(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Kr(e,"(");let o=Kr(e,")");for(;-1!==r&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function oi(e,t,n,r){return!(!ai(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function ai(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||me(n)||ge(n))&&(!t||47!==n)}function si(e){return e.label||!e.identifier?e.label||"":Dt(e.identifier)}function li(e,t,n,r){let i=r.join.length;for(;i--;){const o=r.join[i](e,t,n,r);if(!0===o||1===o)break;if("number"==typeof o)return"\n".repeat(1+o);if(!1===o)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}const ci=/\r?\n|\r/g;function ui(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function di(e,t){return fi(e,t.inConstruct,!0)&&!fi(e,t.notInConstruct,!1)}function fi(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function hi(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),i=[],o=[],a={};let s=-1;for(;++s<e.unsafe.length;){const t=e.unsafe[s];if(!di(e.stack,t))continue;const n=ui(t);let o;for(;o=n.exec(r);){const e="before"in t||Boolean(t.atBreak),n="after"in t,r=o.index+(e?o[1].length:0);i.includes(r)?(a[r].before&&!e&&(a[r].before=!1),a[r].after&&!n&&(a[r].after=!1)):(i.push(r),a[r]={before:e,after:n})}}i.sort(pi);let l=n.before?n.before.length:0;const c=r.length-(n.after?n.after.length:0);for(s=-1;++s<i.length;){const e=i[s];e<l||e>=c||e+1<c&&i[s+1]===e+1&&a[e].after&&!a[e+1].before&&!a[e+1].after||i[s-1]===e-1&&a[e].before&&!a[e-1].before&&!a[e-1].after||(l!==e&&o.push(gi(r.slice(l,e),"\\")),l=e,!/[!-/:-@[-`{-~]/.test(r.charAt(e))||n.encode&&n.encode.includes(r.charAt(e))?(o.push("&#x"+r.charCodeAt(e).toString(16).toUpperCase()+";"),l++):o.push("\\"))}return o.push(gi(r.slice(l,c),n.after)),o.join("")}function pi(e,t){return e-t}function gi(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],o=e+t;let a,s=-1,l=0;for(;a=n.exec(o);)r.push(a.index);for(;++s<r.length;)l!==r[s]&&i.push(e.slice(l,r[s])),i.push("\\"),l=r[s];return i.push(e.slice(l)),i.join("")}function mi(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,i=n.line||1,o=n.column||1;return{move:function(e){const t=e||"",n=t.split(/\r?\n|\r/g),a=n[n.length-1];return i+=n.length-1,o=1===n.length?o+a.length:1+a.length+r,t},current:function(){return{now:{line:i,column:o},lineShift:r}},shift:function(e){r+=e}}}function vi(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function yi(){this.buffer()}function bi(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Ve(this.sliceSerialize(e)).toLowerCase()}function xi(e){this.exit(e)}function Ai(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function wi(){this.buffer()}function ki(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Ve(this.sliceSerialize(e)).toLowerCase()}function Ci(e){this.exit(e)}function Ei(e,t,n,r){const i=mi(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(hi(n,si(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function Si(e,t,n,r){const i=mi(r);let o=i.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label");return o+=i.move(hi(n,si(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(function(e,t){const n=[];let r,i=0,o=0;for(;r=ci.exec(e);)a(e.slice(i,r.index)),n.push(r[0]),i=r.index+r[0].length,o++;return a(e.slice(i)),n.join("");function a(e){n.push(t(e,o,!e))}}(function(e,t,n){const r=t.indexStack,i=e.children||[],o=t.createTracker(n),a=[];let s=-1;for(r.push(-1);++s<i.length;){const n=i[s];r[r.length-1]=s,a.push(o.move(t.handle(n,e,t,{before:"\n",after:"\n",...o.current()}))),"list"!==n.type&&(t.bulletLastUsed=void 0),s<i.length-1&&a.push(o.move(li(n,i[s+1],e,t)))}return r.pop(),a.join("")}(e,n,i.current()),Mi)),a(),o}function Mi(e,t,n){return 0===t?e:(n?"":" ")+e}function _i(e,t,n){const r=t.indexStack,i=e.children||[],o=[];let a=-1,s=n.before;r.push(-1);let l=t.createTracker(n);for(;++a<i.length;){const c=i[a];let u;if(r[r.length-1]=a,a+1<i.length){let n=t.handle.handlers[i[a+1].type];n&&n.peek&&(n=n.peek),u=n?n(i[a+1],e,t,{before:"",after:"",...l.current()}).charAt(0):""}else u=n.after;o.length>0&&("\r"===s||"\n"===s)&&"html"===c.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),s=" ",l=t.createTracker(n),l.move(o.join(""))),o.push(l.move(t.handle(c,e,t,{...l.current(),before:s,after:u}))),s=o[o.length-1].slice(-1)}return r.pop(),o.join("")}Ei.peek=function(){return"["},Pi.peek=function(){return"~"};const Ti={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},Ii={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{delete:Pi}};function Pi(e,t,n,r){const i=mi(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=_i(e,n,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function Ri(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const e=n.unsafe[o],t=ui(e);let i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(i.index+1)}}return i+r+i}function Li(e){return e.length}function ji(e){return null==e?"":String(e)}function Di(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}Ri.peek=function(){return"`"};const Oi={enter:{table:function(e){const t=e._align;this.enter({type:"table",align:t.map(e=>"none"===e?null:e),children:[]},e),this.setData("inTable",!0)},tableData:Fi,tableHeader:Fi,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,zi));this.stack[this.stack.length-1].value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:Ni,tableHeader:Ni,tableRow:Ni}};function Ni(e){this.exit(e)}function Fi(e){this.enter({type:"tableCell",children:[]},e)}function zi(e,t){return"|"===t?t:e}function Bi(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let i=-1;const o=[],a=t.enter("table");for(;++i<r.length;)o[i]=l(r[i],t,n);return a(),o}(e,n,r),e.align)},tableRow:function(e,t,n,r){const i=s([l(e,n,r)]);return i.slice(0,i.indexOf("\n"))},tableCell:a,inlineCode:function(e,t,n){let r=Ri(e,0,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r}}};function a(e,t,n,r){const i=n.enter("tableCell"),a=n.enter("phrasing"),s=_i(e,n,{...r,before:o,after:o});return a(),i(),s}function s(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Li,o=[],a=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let o=-1;for(e[u].length>c&&(c=e[u].length);++o<e[u].length;){const a=ji(e[u][o]);if(!1!==n.alignDelimiters){const e=i(a);r[o]=e,(void 0===l[o]||e>l[o])&&(l[o]=e)}t.push(a)}a[u]=t,s[u]=r}let d=-1;if("object"==typeof r&&"length"in r)for(;++d<c;)o[d]=Di(r[d]);else{const e=Di(r);for(;++d<c;)o[d]=e}d=-1;const f=[],h=[];for(;++d<c;){const e=o[d];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,l[d]-t.length-r.length);const a=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&(i=t.length+i+r.length,i>l[d]&&(l[d]=i),h[d]=i),f[d]=a}a.splice(1,0,f),s.splice(1,0,h),u=-1;const p=[];for(;++u<a.length;){const e=a[u],t=s[u];d=-1;const r=[];for(;++d<c;){const i=e[d]||"";let a="",s="";if(!1!==n.alignDelimiters){const e=l[d]-(t[d]||0),n=o[d];114===n?a=" ".repeat(e):99===n?e%2?(a=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),s=a):s=" ".repeat(e)}!1===n.delimiterStart||d||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===i||!1===n.delimiterStart&&!d||r.push(" "),!1!==n.alignDelimiters&&r.push(a),r.push(i),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&d===c-1||r.push("|")}p.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return p.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function l(e,t,n){const r=e.children;let i=-1;const o=[],s=t.enter("tableRow");for(;++i<r.length;)o[i]=a(r[i],0,t,n);return s(),o}}const $i={exit:{taskListCheckValueChecked:Ui,taskListCheckValueUnchecked:Ui,paragraph:function(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1],n=e.children[0];if(n&&"text"===n.type){const r=t.children;let i,o=-1;for(;++o<r.length;){const e=r[o];if("paragraph"===e.type){i=e;break}}i===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}}},Hi={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:function(e,t,n,r){const i=e.children[0],o="boolean"==typeof e.checked&&i&&"paragraph"===i.type,a="["+(e.checked?"x":" ")+"] ",s=mi(r);o&&s.move(a);let l=function(e,t,n,r){const i=function(e){const t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let o=n.bulletCurrent||function(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let a=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){return t?(n?"":" ".repeat(a))+e:(n?o:o+" ".repeat(a-o.length))+e});return l(),c}(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+a})),l}}};function Ui(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function Wi(e={}){const t=this.data();function n(e,n){(t[e]?t[e]:t[e]=[]).push(n)}n("micromarkExtensions",function(e){return ne([Er,{document:{91:{tokenize:Or,continuation:{tokenize:Nr},exit:Fr}},text:{91:{tokenize:Dr},93:{add:"after",tokenize:Lr,resolveTo:jr}}},zr(e),Hr,Gr])}(e)),n("fromMarkdownExtensions",[ti,{enter:{gfmFootnoteDefinition:vi,gfmFootnoteDefinitionLabelString:yi,gfmFootnoteCall:Ai,gfmFootnoteCallString:wi},exit:{gfmFootnoteDefinition:xi,gfmFootnoteDefinitionLabelString:bi,gfmFootnoteCall:Ci,gfmFootnoteCallString:ki}},Ti,Oi,$i]),n("toMarkdownExtensions",function(e){return{extensions:[ni,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Si,footnoteReference:Ei}},Ii,Bi(e),Hi]}}(e))}var Vi=n(73638);const qi=(0,a.makeStyles)(e=>({markdown:{"& table":{borderCollapse:"collapse",border:`1px solid ${e.palette.border}`},"& th, & td":{border:`1px solid ${e.palette.border}`,padding:e.spacing(1)},"& td":{wordBreak:"break-word",overflow:"hidden",verticalAlign:"middle",lineHeight:"1",margin:0,padding:e.spacing(3,2,3,2.5),borderBottom:0},"& th":{backgroundColor:e.palette.background.paper},"& tr":{backgroundColor:e.palette.background.paper},"& tr:nth-child(odd)":{backgroundColor:e.palette.background.default},"& a":{color:e.palette.link},"& img":{maxWidth:"100%"}}}),{name:"BackstageMarkdownContent"}),Gi=(e,t)=>t?"string"==typeof t?e+t:y.Children.toArray(t.props.children).reduce(Gi,e):e,Yi=({level:e,children:t})=>{const n=y.Children.toArray(t).reduce(Gi,"").toLocaleLowerCase("en-US").replace(/\W/g,"-");return(0,y.createElement)(`h${e}`,{id:n},t)},Ki={code:({inline:e,className:t,children:n,...r})=>{const i=String(n).replace(/\n+$/,""),a=/language-(\w+)/.exec(t||"");return!e&&a?(0,o.jsx)(Vi.z,{language:a[1],text:i}):(0,o.jsx)("code",{className:t,...r,children:n})},h1:Yi,h2:Yi,h3:Yi,h4:Yi,h5:Yi,h6:Yi};function Xi(e){const{content:t,dialect:n="gfm",linkTarget:r,transformLinkUri:i,transformImageUri:a,className:s}=e,l=qi();return(0,o.jsx)(gr,{remarkPlugins:"gfm"===n?[Wi]:[],className:`${l.markdown} ${s??""}`.trim(),children:t,components:Ki,linkTarget:r,transformLinkUri:i,transformImageUri:a})}const Zi=(e,t)=>("light"===t.palette.type?a.darken:a.lighten)(t.palette[e].light,.6),Qi=(e,t)=>("light"===t.palette.type?a.lighten:a.darken)(t.palette[e].light,.9),Ji=(0,a.makeStyles)(e=>({root:{marginRight:e.spacing(1),fill:({severity:t})=>Zi(t,e)}})),eo=({severity:e})=>{const t=Ji({severity:e});return(0,o.jsx)(m.A,{classes:t})},to=({severity:e})=>{const t=Ji({severity:e});return(0,o.jsx)(v.A,{classes:t})},no=(0,a.makeStyles)(e=>({panel:{backgroundColor:({severity:t})=>Qi(t,e),color:({severity:t})=>Zi(t,e),verticalAlign:"middle"},summary:{display:"flex",flexDirection:"row"},summaryText:{color:({severity:t})=>Zi(t,e),fontWeight:e.typography.fontWeightBold},markdownContent:{"& p":{display:"inline"}},message:{width:"100%",display:"block",color:({severity:t})=>Zi(t,e),backgroundColor:({severity:t})=>Qi(t,e)},details:{width:"100%",display:"block",color:e.palette.textContrast,backgroundColor:e.palette.background.default,border:`1px solid ${e.palette.border}`,padding:e.spacing(2),fontFamily:"sans-serif"}}),{name:"BackstageWarningPanel"}),ro=e=>e.charAt(0).toLocaleUpperCase("en-US")+e.slice(1);function io(e){const{severity:t="warning",title:n,titleFormat:r,message:i,children:a,defaultExpanded:s}=e,l=no({severity:t}),c=ro(t)+(n?`: ${n}`:"");return(0,o.jsxs)(d.A,{defaultExpanded:s??!1,className:l.panel,role:"alert",children:[(0,o.jsxs)(f.A,{expandIcon:(0,o.jsx)(to,{severity:t}),className:l.summary,children:[(0,o.jsx)(eo,{severity:t}),(0,o.jsx)(g.A,{className:l.summaryText,variant:"subtitle1",children:"markdown"===r?(0,o.jsx)(Xi,{content:c,className:l.markdownContent}):c})]}),(i||a)&&(0,o.jsx)(h.A,{children:(0,o.jsxs)(p.A,{container:!0,children:[i&&(0,o.jsx)(p.A,{item:!0,xs:12,children:(0,o.jsx)(g.A,{className:l.message,variant:"body1",children:i})}),a&&(0,o.jsx)(p.A,{item:!0,xs:12,className:l.details,children:a})]})})]})}const oo=(0,a.makeStyles)(e=>({text:{fontFamily:"monospace",whiteSpace:"pre",overflowX:"auto",marginRight:e.spacing(2)},divider:{margin:e.spacing(2)}}),{name:"BackstageErrorPanel"}),ao=({error:e,message:t,stack:n,children:r})=>{const i=oo();return(0,o.jsxs)(s.A,{dense:!0,children:[(0,o.jsxs)(l.A,{alignItems:"flex-start",children:[(0,o.jsx)(c.A,{classes:{secondary:i.text},primary:"Error",secondary:e}),(0,o.jsx)(u.l,{text:e})]}),(0,o.jsxs)(l.A,{alignItems:"flex-start",children:[(0,o.jsx)(c.A,{classes:{secondary:i.text},primary:"Message",secondary:t}),(0,o.jsx)(u.l,{text:t})]}),n&&(0,o.jsxs)(l.A,{alignItems:"flex-start",children:[(0,o.jsx)(c.A,{classes:{secondary:i.text},primary:"Stack Trace",secondary:n}),(0,o.jsx)(u.l,{text:n})]}),r]})};function so(e){const{title:t,error:n,defaultExpanded:r,titleFormat:i,children:a}=e;return(0,o.jsx)(io,{severity:"error",title:t??n.message,defaultExpanded:r,titleFormat:i,children:(0,o.jsx)(ao,{error:n.name,message:n.message,stack:n.stack,children:a})})}},39970:(e,t,n)=>{"use strict";n.d(t,{N_:()=>_});var r=n(31085),i=n(9490),o=n(89575),a=n(39850),s=n(95478),l=n(36274),c=n(11192),u=n(7031),d=n(29409),f=n(19878),h=n(72501),p=s.forwardRef(function(e,t){var n=e.classes,r=e.className,i=e.color,u=void 0===i?"primary":i,p=e.component,g=void 0===p?"a":p,m=e.onBlur,v=e.onFocus,y=e.TypographyClasses,b=e.underline,x=void 0===b?"hover":b,A=e.variant,w=void 0===A?"inherit":A,k=(0,a.A)(e,["classes","className","color","component","onBlur","onFocus","TypographyClasses","underline","variant"]),C=(0,d.A)(),E=C.isFocusVisible,S=C.onBlurVisible,M=C.ref,_=s.useState(!1),T=_[0],I=_[1],P=(0,f.A)(t,M);return s.createElement(h.A,(0,o.A)({className:(0,l.A)(n.root,n["underline".concat((0,c.A)(x))],r,T&&n.focusVisible,"button"===g&&n.button),classes:y,color:u,component:g,onBlur:function(e){T&&(S(),I(!1)),m&&m(e)},onFocus:function(e){E(e)&&I(!0),v&&v(e)},ref:P,variant:w},k))});const g=(0,u.A)({root:{},underlineNone:{textDecoration:"none"},underlineHover:{textDecoration:"none","&:hover":{textDecoration:"underline"}},underlineAlways:{textDecoration:"underline"},button:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none","&::-moz-focus-inner":{borderStyle:"none"},"&$focusVisible":{outline:"auto"}},focusVisible:{}},{name:"MuiLink"})(p);var m=n(37976),v=n(53373),y=n.n(v),b=n(45250),x=n(42469),A=n(39330);const w=(0,m.makeStyles)(e=>({visuallyHidden:{clip:"rect(0 0 0 0)",clipPath:"inset(50%)",overflow:"hidden",position:"absolute",userSelect:"none",whiteSpace:"nowrap",height:1,width:1},externalLink:{position:"relative"},externalLinkIcon:{verticalAlign:"bottom",marginLeft:e.spacing(.5)}}),{name:"Link"}),k=()=>{const e=(0,i.useApp)().getSystemIcon("externalLink")||A.A,t=w();return(0,r.jsx)(e,{className:t.externalLinkIcon})},C=e=>/^([a-z+.-]+):/.test(e),E=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,S=window.open;if(S&&!S.__backstage){const e=function(...e){const t=String(e[0]);if(E.test(t))throw new Error("Rejected window.open() with a javascript: URL as a security precaution");return S.apply(this,e)};e.__backstage=!0,window.open=e}const M=e=>e instanceof Array?e.map(M).join(" ").trim():"object"==typeof e&&e?M(e?.props?.children):["string","number"].includes(typeof e)?String(e):"",_=(0,s.forwardRef)(({onClick:e,noTrack:t,externalLinkIcon:n,...o},a)=>{const s=w(),l=(0,i.useAnalytics)(),c=function(){const[e]=(0,x.createRoutesFromChildren)((0,r.jsx)(x.Route,{index:!0,element:(0,r.jsx)("div",{})}));return!e.index}()?(e=>{let t=String(e);const n=(()=>{const e=(()=>{try{return(0,i.useApi)(i.configApiRef).getOptionalString("app.baseUrl")}catch{return}})()??"/",{pathname:t}=new URL(e,"http://sample.dev");return(0,b.trimEnd)(t,"/")})(),r=C(t),o=t.startsWith(n);return r||o||(t=n.concat(t)),t})(o.to):o.to,u=M(o.children)||c,d=C(c),f=d&&!!/^https?:/.exec(c);if(E.test(c))throw new Error("Link component rejected javascript: URL as a security precaution");const p=n=>{e?.(n),t||l.captureEvent("click",u,{attributes:{to:c}})};return d?(0,r.jsxs)(g,{...f?{target:"_blank",rel:"noopener"}:{},...o,...o["aria-label"]?{"aria-label":`${o["aria-label"]}, Opens in a new window`}:{},ref:a,href:c,onClick:p,className:y()(s.externalLink,o.className),children:[o.children,n&&(0,r.jsx)(k,{}),(0,r.jsx)(h.A,{component:"span",className:s.visuallyHidden,children:", Opens in a new window"})]}):(0,r.jsx)(g,{...o,ref:a,component:x.Link,to:c,onClick:p})})},87318:(e,t,n)=>{"use strict";n.d(t,{z:()=>l});var r=n(31085),i=n(64947),o=n(95478),a=n(39970);const s=(0,o.forwardRef)((e,t)=>(0,r.jsx)(a.N_,{ref:t,...e,color:"initial"})),l=(0,o.forwardRef)((e,t)=>(0,r.jsx)(i.A,{ref:t,component:s,...e}))},16454:(e,t,n)=>{"use strict";n.d(t,{U:()=>l});var r=n(31085),i=n(37976),o=n(53373),a=n.n(o);const s=(0,i.makeStyles)(e=>({root:{gridArea:"pageContent",minWidth:0,paddingTop:e.spacing(3),paddingBottom:e.spacing(3),paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},stretch:{display:"flex",flexDirection:"column",flexGrow:1},noPadding:{padding:0}}),{name:"BackstageContent"});function l(e){const{className:t,stretch:n,noPadding:i,children:o,...l}=e,c=s();return(0,r.jsx)("article",{...l,className:a()(c.root,t,{[c.stretch]:n,[c.noPadding]:i}),children:o})}},66670:(e,t,n)=>{"use strict";n.d(t,{t:()=>d});var r=n(31085),i=n(72501),o=n(95478),a=n(87318),s=n(18047),l=n(89475),c=n(10265);const u=e=>{const{slackChannel:t}=e,{t:n}=(0,c.i)(l.O);return t?"string"==typeof t?(0,r.jsx)(i.A,{children:n("errorBoundary.title",{slackChannel:t})}):t.href?(0,r.jsx)(a.z,{to:t.href,variant:"contained",children:t.name}):(0,r.jsx)(i.A,{children:n("errorBoundary.title",{slackChannel:t.name})}):null},d=class extends o.Component{constructor(e){super(e),this.state={error:void 0,errorInfo:void 0}}componentDidCatch(e,t){console.error(`ErrorBoundary, error: ${e}`,{error:e,errorInfo:t}),this.setState({error:e,errorInfo:t})}render(){const{slackChannel:e,children:t}=this.props,{error:n}=this.state;return n?(0,r.jsx)(s.b,{title:"Something Went Wrong",error:n,children:(0,r.jsx)(u,{slackChannel:e})}):t}}},12034:(e,t,n)=>{"use strict";n.d(t,{n:()=>R});var r=n(31085),i=n(89575),o=n(39850),a=n(95478),s=n(36274),l=n(4321),c=n(7031),u=a.forwardRef(function(e,t){var n=e.classes,r=e.className,c=e.raised,u=void 0!==c&&c,d=(0,o.A)(e,["classes","className","raised"]);return a.createElement(l.A,(0,i.A)({className:(0,s.A)(n.root,r),elevation:u?8:1,ref:t},d))});const d=(0,c.A)({root:{overflow:"hidden"}},{name:"MuiCard"})(u);var f=a.forwardRef(function(e,t){var n=e.disableSpacing,r=void 0!==n&&n,l=e.classes,c=e.className,u=(0,o.A)(e,["disableSpacing","classes","className"]);return a.createElement("div",(0,i.A)({className:(0,s.A)(l.root,c,!r&&l.spacing),ref:t},u))});const h=(0,c.A)({root:{display:"flex",alignItems:"center",padding:8},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiCardActions"})(f);var p=a.forwardRef(function(e,t){var n=e.classes,r=e.className,l=e.component,c=void 0===l?"div":l,u=(0,o.A)(e,["classes","className","component"]);return a.createElement(c,(0,i.A)({className:(0,s.A)(n.root,r),ref:t},u))});const g=(0,c.A)({root:{padding:16,"&:last-child":{paddingBottom:24}}},{name:"MuiCardContent"})(p);var m=n(72501),v=a.forwardRef(function(e,t){var n=e.action,r=e.avatar,l=e.classes,c=e.className,u=e.component,d=void 0===u?"div":u,f=e.disableTypography,h=void 0!==f&&f,p=e.subheader,g=e.subheaderTypographyProps,v=e.title,y=e.titleTypographyProps,b=(0,o.A)(e,["action","avatar","classes","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"]),x=v;null==x||x.type===m.A||h||(x=a.createElement(m.A,(0,i.A)({variant:r?"body2":"h5",className:l.title,component:"span",display:"block"},y),x));var A=p;return null==A||A.type===m.A||h||(A=a.createElement(m.A,(0,i.A)({variant:r?"body2":"body1",className:l.subheader,color:"textSecondary",component:"span",display:"block"},g),A)),a.createElement(d,(0,i.A)({className:(0,s.A)(l.root,c),ref:t},b),r&&a.createElement("div",{className:l.avatar},r),a.createElement("div",{className:l.content},x,A),n&&a.createElement("div",{className:l.action},n))});const y=(0,c.A)({root:{display:"flex",alignItems:"center",padding:16},avatar:{flex:"0 0 auto",marginRight:16},action:{flex:"0 0 auto",alignSelf:"flex-start",marginTop:-8,marginRight:-8},content:{flex:"1 1 auto"},title:{},subheader:{}},{name:"MuiCardHeader"})(v);var b=n(37197),x=n(37976),A=n(53373),w=n.n(A),k=n(10394),C=n(52235),E=n(39970);const S=(0,x.makeStyles)(e=>({root:{maxWidth:"fit-content",padding:e.spacing(2,2,2,2.5)},boxTitle:{margin:0,color:e.palette.textSubtle},arrow:{color:e.palette.textSubtle}}),{name:"BackstageBottomLink"});function M(e){const{link:t,title:n,onClick:i}=e,o=S();return(0,r.jsxs)(k.A,{children:[(0,r.jsx)(b.A,{}),(0,r.jsx)(E.N_,{to:t,onClick:i,underline:"none",children:(0,r.jsxs)(k.A,{display:"flex",alignItems:"center",className:o.root,children:[(0,r.jsx)(k.A,{className:o.boxTitle,fontWeight:"fontWeightBold",m:1,children:(0,r.jsx)(m.A,{children:(0,r.jsx)("strong",{children:n})})}),(0,r.jsx)(C.A,{className:o.arrow})]})})]})}var _=n(66670);const T=(0,x.makeStyles)(e=>({noPadding:{padding:0,"&:last-child":{paddingBottom:0}},contentAlignBottom:{display:"flex",alignItems:"self-end"},header:{padding:e.spacing(2,2,2,2.5)},headerTitle:{fontWeight:e.typography.fontWeightBold},headerSubheader:{paddingTop:e.spacing(1)},headerAvatar:{},headerAction:{},headerContent:{},subheader:{display:"flex"}}),{name:"BackstageInfoCard"}),I=(0,x.withStyles)(e=>({root:{display:"inline-block",padding:e.spacing(8,8,0,0),float:"right"}}),{name:"BackstageInfoCardCardActionsTopRight"})(h),P={card:{flex:{display:"flex",flexDirection:"column"},fullHeight:{display:"flex",flexDirection:"column",height:"100%"},gridItem:{display:"flex",flexDirection:"column",height:"calc(100% - 10px)",marginBottom:"10px",breakInside:"avoid-page","@media print":{height:"auto"}}},cardContent:{fullHeight:{flex:1},gridItem:{flex:1}}};function R(e){const{title:t,subheader:n,divider:i=!0,deepLink:o,slackChannel:a,errorBoundaryProps:s,variant:l,alignContent:c="normal",children:u,headerStyle:f,headerProps:p,icon:m,action:v,actionsClassName:x,actions:A,cardClassName:k,actionsTopRight:C,className:E,noPadding:S,titleTypographyProps:R,subheaderTypographyProps:L}=e,j=T();let D={},O={};l&&l.split(/[\s]+/g).forEach(e=>{D={...D,...P.card[e]},O={...O,...P.cardContent[e]}});const N=s||(a?{slackChannel:a}:{});return(0,r.jsx)(d,{style:D,className:E,children:(0,r.jsxs)(_.t,{...N,children:[t&&(0,r.jsx)(y,{classes:{root:w()(j.header),title:j.headerTitle,subheader:j.headerSubheader,avatar:j.headerAvatar,action:j.headerAction,content:j.headerContent},title:t,subheader:n||m?(0,r.jsxs)("div",{"data-testid":"info-card-subheader",children:[n&&(0,r.jsx)("div",{className:j.subheader,children:n}),m]}):null,action:v,style:{...f},titleTypographyProps:R,subheaderTypographyProps:L,...p}),C&&(0,r.jsx)(I,{children:C}),i&&(0,r.jsx)(b.A,{}),(0,r.jsx)(g,{className:w()(k,{[j.noPadding]:S,[j.contentAlignBottom]:"bottom"===c}),style:O,children:u}),A&&(0,r.jsx)(h,{className:x,children:A}),o&&(0,r.jsx)(M,{...o})]})})}},82326:(e,t,n)=>{"use strict";n.d(t,{Y:()=>l});var r=n(31085),i=n(37976),o=n(53373),a=n.n(o);const s=(0,i.makeStyles)(e=>({root:{display:"grid",gridTemplateAreas:"'pageHeader pageHeader pageHeader' 'pageSubheader pageSubheader pageSubheader' 'pageNav pageContent pageSidebar'",gridTemplateRows:"max-content auto 1fr",gridTemplateColumns:"auto 1fr auto",overflowY:"auto",height:"100vh",[e.breakpoints.down("xs")]:{height:"100%"},"@media print":{display:"block",height:"auto",overflowY:"inherit"}}}),{name:"BackstagePage"});function l(e){const{themeId:t,className:n,children:o}=e,l=s();return(0,r.jsx)(i.ThemeProvider,{theme:e=>({...e,page:e.getPageTheme({themeId:t})}),children:(0,r.jsx)("main",{className:a()(l.root,n),children:o})})}},89475:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});const r=(0,n(19914).h)({id:"core-components",messages:{signIn:{title:"Sign In",loginFailed:"Login failed",customProvider:{title:"Custom User",subtitle:"Enter your own User ID and credentials.\n This selection will not be stored.",userId:"User ID",tokenInvalid:"Token is not a valid OpenID Connect JWT Token",continue:"Continue",idToken:"ID Token (optional)"},guestProvider:{title:"Guest",subtitle:"Enter as a Guest User.\n You will not have a verified identity, meaning some features might be unavailable.",enter:"Enter"}},skipToContent:"Skip to content",copyTextButton:{tooltipText:"Text copied to clipboard"},simpleStepper:{reset:"Reset",finish:"Finish",next:"Next",skip:"Skip",back:"Back"},errorPage:{subtitle:"ERROR {{status}}: {{statusMessage}}",title:"Looks like someone dropped the mic!",goBack:"Go back",showMoreDetails:"Show more details",showLessDetails:"Show less details"},emptyState:{missingAnnotation:{title:"Missing Annotation",actionTitle:"Add the annotation to your component YAML as shown in the highlighted example below:",readMore:"Read more"}},supportConfig:{default:{title:"Support Not Configured",linkTitle:"Add `app.support` config key"}},errorBoundary:{title:"Please contact {{slackChannel}} for help."},oauthRequestDialog:{title:"Login Required",authRedirectTitle:"This will trigger a http redirect to OAuth Login.",login:"Log in",rejectAll:"Reject All",message:"Sign-in to allow {{appTitle}} access to {{provider}} APIs and identities."},supportButton:{title:"Support",close:"Close"},table:{filter:{title:"Filters",clearAll:"Clear all",placeholder:"All results"},body:{emptyDataSourceMessage:"No records to display"},pagination:{firstTooltip:"First Page",labelDisplayedRows:"{from}-{to} of {count}",labelRowsSelect:"rows",lastTooltip:"Last Page",nextTooltip:"Next Page",previousTooltip:"Previous Page"},toolbar:{search:"Filter"},header:{actions:"Actions"}},alertDisplay:{message_one:"({{ count }} newer message)",message_other:"({{ count }} newer messages)"},autoLogout:{stillTherePrompt:{title:"Logging out due to inactivity",buttonText:"Yes! Don't log me out"}},dependencyGraph:{fullscreenTooltip:"Toggle fullscreen"},proxiedSignInPage:{title:"You do not appear to be signed in. Please try reloading the browser page."}}})},19914:(e,t,n)=>{"use strict";n.d(t,{h:()=>o});var r=n(68045);class i{#e;#t;#n;constructor(e){this.#e=e.id,this.#t=function(e){const t=new Array;return function e(n,r){for(const[i,o]of Object.entries(n))"string"==typeof o?t.push([r+i,o]):e(o,`${r}${i}.`)}(e,""),Object.fromEntries(t)}(e.messages)}$$type="@backstage/TranslationRef";version="v1";get id(){return this.#e}get T(){throw new Error("Not implemented")}getDefaultMessages(){return this.#t}setDefaultResource(e){this.#n=e}getDefaultResource(){return this.#n}toString(){return`TranslationRef{id=${this.id}}`}}function o(e){const t=new i(e);return e.translations&&t.setDefaultResource((0,r.o)({ref:t,translations:e.translations})),t}},68045:(e,t,n)=>{"use strict";function r(e){return{$$type:"@backstage/TranslationResource",version:"v1",id:e.ref.id,resources:Object.entries(e.translations).map(([e,t])=>({language:e,loader:()=>t().then(e=>{const t=e.default;return{messages:"@backstage/TranslationMessages"===t?.$$type?t.messages:t}})}))}}n.d(t,{o:()=>r})},10265:(e,t,n)=>{"use strict";n.d(t,{i:()=>l});var r=n(95478),i=n(18139),o=n(24453),a=n(87350);const s=new WeakSet,l=e=>{const t=(0,i.gf)(o.m),n=(0,i.gf)(a.J),[l,c]=(0,r.useState)(()=>n.getTranslation(e)),u=(0,r.useMemo)(()=>n.translation$(e),[n,e]),d=(0,r.useCallback)(n=>{if(!s.has(e)){const r=`Failed to load translation resource '${e.id}'; caused by ${n}`;console.error(r),t.post(new Error(r)),s.add(e)}},[t,e]);(0,r.useEffect)(()=>{const e=u.subscribe({next(e){e.ready&&c(e)},error(e){d(e)}});return()=>{e.unsubscribe()}},[u,d]);const f=(0,r.useRef)(!0);if((0,r.useEffect)(()=>{f.current?f.current=!1:c(n.getTranslation(e))},[n,e]),!l.ready)throw new Promise(e=>{const t=u.subscribe({next(n){n.ready&&(t.unsubscribe(),e())},error(n){t.unsubscribe(),d(n),e()}})});return{t:l.t}}},30043:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});const r=(0,n(9490).createApiRef)({id:"plugin.catalog.service"})},27576:(e,t,n)=>{"use strict";n.d(t,{b:()=>d});var r=n(31085),i=n(98254),o=n(64947),a=n(31647),s=n(93453),l=n(46805),c=n(61477),u=n(81628);const d=e=>{const{open:t,close:n,componentName:d,children:f}=e,{t:h}=(0,i.useTranslationRef)(u.L);return(0,r.jsxs)(a.A,{open:t,onClose:()=>n(),children:[(0,r.jsx)(c.A,{children:d?`${h("settingsModal.title")} - ${d}`:h("settingsModal.title")}),(0,r.jsx)(l.A,{children:f}),(0,r.jsx)(s.A,{children:(0,r.jsx)(o.A,{onClick:()=>n(),color:"primary",variant:"contained",children:h("settingsModal.closeButtonTitle")})})]})}},81628:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});const r=(0,n(98254).createTranslationRef)({id:"home-react",messages:{settingsModal:{title:"Settings",closeButtonTitle:"Close"},cardExtension:{settingsButtonTitle:"Settings"}}})},6505:(e,t,n)=>{"use strict";n.d(t,{bv:()=>x,vA:()=>b,zJ:()=>y});var r=n(9490),i=n(31085),o=n(95478),a=n(29365),s=n(9684),l=n(12034),c=n(27576),u=n(98254),d=n(81628);function f(e){const{title:t,components:n,name:o,description:a,layout:s,settings:l}=e,c=void 0!==l?.schema;return(0,r.createReactExtension)({name:o,data:{title:t,description:a,"home.widget.config":{layout:s,settings:l}},component:{lazy:()=>n().then(e=>n=>(0,i.jsx)(h,{...n,...e,title:n.title||t,isCustomizable:c}))}})}function h(e){const{Renderer:t,Content:n,Settings:f,Actions:h,ContextProvider:p,isCustomizable:g,title:m,...v}=e,y=(0,r.useApp)(),{Progress:b}=y.getComponents(),[x,A]=(0,o.useState)(!1),{t:w}=(0,u.useTranslationRef)(d.L);if(t)return(0,i.jsx)(o.Suspense,{fallback:(0,i.jsx)(b,{}),children:(0,i.jsx)(t,{...m&&{title:m},...{Content:n,...h?{Actions:h}:{},...f&&!g?{Settings:f}:{},...p?{ContextProvider:p}:{},...v}})});const k={divider:!!m,...m&&{title:m},...f&&!g?{action:(0,i.jsx)(a.A,{onClick:()=>A(!0),children:(0,i.jsx)(s.A,{children:w("cardExtension.settingsButtonTitle")})})}:{},...h?{actions:(0,i.jsx)(h,{})}:{}},C=(0,i.jsxs)(l.n,{...k,children:[f&&!g&&(0,i.jsx)(c.b,{open:x,componentName:m,close:()=>A(!1),children:(0,i.jsx)(f,{})}),(0,i.jsx)(n,{...v})]});return(0,i.jsx)(o.Suspense,{fallback:(0,i.jsx)(b,{}),children:p?(0,i.jsx)(p,{...v,children:C}):C})}const p=(0,r.createRouteRef)({id:"home"});var g=n(9353),m=(n(28890),n(98590));const v=(0,r.createPlugin)({id:"home",apis:[(0,r.createApiFactory)({api:m.y,deps:{storageApi:r.storageApiRef,identityApi:r.identityApiRef},factory:({storageApi:e,identityApi:t})=>g.s.create({storageApi:e,identityApi:t})})],routes:{root:p}}),y=(v.provide((0,r.createRoutableExtension)({name:"HomepageCompositionRoot",component:()=>Promise.all([n.e(6123),n.e(3215),n.e(7424),n.e(5199),n.e(1213),n.e(4243)]).then(n.bind(n,21213)).then(e=>e.HomepageCompositionRoot),mountPoint:p})),v.provide((0,r.createComponentExtension)({name:"ComponentAccordion",component:{lazy:()=>Promise.all([n.e(3957),n.e(8067)]).then(n.bind(n,98067)).then(e=>e.ComponentAccordion)}})),v.provide((0,r.createComponentExtension)({name:"ComponentTabs",component:{lazy:()=>Promise.all([n.e(3957),n.e(8067)]).then(n.bind(n,98067)).then(e=>e.ComponentTabs)}})),v.provide((0,r.createComponentExtension)({name:"ComponentTab",component:{lazy:()=>Promise.all([n.e(3957),n.e(8067)]).then(n.bind(n,98067)).then(e=>e.ComponentTab)}})),v.provide((0,r.createComponentExtension)({name:"WelcomeTitle",component:{lazy:()=>n.e(4197).then(n.bind(n,64197)).then(e=>e.WelcomeTitle)}})),v.provide((0,r.createComponentExtension)({name:"CompanyLogo",component:{lazy:()=>n.e(3822).then(n.bind(n,31441)).then(e=>e.CompanyLogo)}})),v.provide(f({name:"HomePageRandomJoke",title:"Random Joke",components:()=>Promise.all([n.e(5199),n.e(41)]).then(n.bind(n,20041)),description:"Shows a random joke about optional category",layout:{height:{minRows:4},width:{minColumns:3}},settings:{schema:{title:"Random Joke settings",type:"object",properties:{defaultCategory:{title:"Category",type:"string",enum:["any","programming","dad"],default:"any"}}}}})),v.provide(f({name:"HomePageToolkit",title:"Toolkit",components:()=>n.e(2203).then(n.bind(n,92203))}))),b=v.provide(f({name:"HomePageStarredEntities",title:"Your Starred Entities",components:()=>Promise.all([n.e(6123),n.e(3957),n.e(5888),n.e(9633)]).then(n.bind(n,39633))})),x=(v.provide((0,r.createComponentExtension)({name:"HeaderWorldClock",component:{lazy:()=>n.e(734).then(n.bind(n,60734)).then(e=>e.HeaderWorldClock)}})),v.provide(f({name:"HomePageTopVisited",title:"Top Visited",components:()=>Promise.all([n.e(6123),n.e(5888),n.e(6356),n.e(2195)]).then(n.bind(n,2195))})),v.provide(f({name:"HomePageRecentlyVisited",title:"Recently Visited",components:()=>Promise.all([n.e(6123),n.e(5888),n.e(6356),n.e(8354)]).then(n.bind(n,48354))})));v.provide(f({name:"FeaturedDocsCard",title:"Featured Docs",components:()=>Promise.all([n.e(6123),n.e(5888),n.e(5255)]).then(n.bind(n,17135))})),v.provide(f({name:"QuickStartCard",title:"Quick Start",components:()=>n.e(6700).then(n.bind(n,16700))}))},87094:(e,t,n)=>{"use strict";n.d(t,{s:()=>c});var r=n(9490);const i=(0,r.createApiRef)({id:"plugin.notifications.service"});var o=n(85608),a=n(95478),s=n(35015);const l=function(e,t){void 0===t&&(t=[]);var n=(0,a.useState)(0),r=n[0],i=n[1],l=(0,s.A)(e,(0,o.aN)(t,[r])),c=l.loading,u=(0,a.useCallback)(function(){c||i(function(e){return e+1})},(0,o.aN)(t,[c]));return(0,o.Cl)((0,o.Cl)({},l),{retry:u})};function c(e,t=[]){const n=(0,r.useApi)(i);return l(async()=>await e(n),t)}},20570:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});const r=(0,n(9490).createApiRef)({id:"plugin.search.queryservice"})},62958:(e,t,n)=>{"use strict";n.d(t,{z1:()=>u});var r=n(31085),i=n(35015),o=(n(45250),n(9490)),a=n(20570),s=n(69385);n(98254);const l=e=>{const{children:t}=e,n=(0,s.SQ)(),{result:r,...i}=n;return t(r,i)},c=e=>{const{query:t,children:n}=e,r=(0,o.useApi)(a.y);return n((0,i.A)(()=>{const{term:e="",types:n=[],filters:i={},...o}=t;return r.query({...o,term:e,types:n,filters:i})},[t]),t)},u=e=>{const{query:t,children:n}=e;return t?(0,r.jsx)(c,{query:t,children:n}):(0,r.jsx)(l,{children:n})}},69385:(e,t,n)=>{"use strict";n.d(t,{Lt:()=>g,SQ:()=>f});var r=n(31085),i=n(45250),o=n(95478),a=n(35015);function s(e){var t=(0,o.useRef)();return(0,o.useEffect)(function(){t.current=e}),t.current}var l=n(64218),c=n(9490),u=n(20570);const d=(0,l.createVersionedContext)("search-context"),f=()=>{const e=(0,o.useContext)(d);if(!e)throw new Error("useSearch must be used within a SearchContextProvider");const t=e.atVersion(1);if(!t)throw new Error("No SearchContext v1 found");return t},h={term:"",types:[],filters:{},pageLimit:void 0,pageCursor:void 0},p=e=>{const{initialState:t,children:n}=e,f=((e=h)=>{const t=(0,c.useApi)(u.y),n=(0,c.useAnalytics)(),[r,l]=(0,o.useState)(e.term),[d,f]=(0,o.useState)(e.types),[p,g]=(0,o.useState)(e.filters),[m,v]=(0,o.useState)(e.pageLimit),[y,b]=(0,o.useState)(e.pageCursor),x=s(r),A=s(p),w=(0,a.A)(async()=>{const e=await t.query({term:r,types:d,filters:p,pageLimit:m,pageCursor:y});return r&&n.captureEvent("search",r,{value:e.numberOfResults}),e},[r,d,p,m,y]),k=!w.loading&&!w.error&&w.value?.nextPageCursor,C=!w.loading&&!w.error&&w.value?.previousPageCursor,E=(0,o.useCallback)(()=>{b(w.value?.nextPageCursor)},[w.value?.nextPageCursor]),S=(0,o.useCallback)(()=>{b(w.value?.previousPageCursor)},[w.value?.previousPageCursor]);return(0,o.useEffect)(()=>{void 0!==x&&r!==x&&b(void 0)},[r,x,b]),(0,o.useEffect)(()=>{void 0===A||(0,i.isEqual)(p,A)||b(void 0)},[p,A,b]),{result:w,term:r,setTerm:l,types:d,setTypes:f,filters:p,setFilters:g,pageLimit:m,setPageLimit:v,pageCursor:y,setPageCursor:b,fetchNextPage:k?E:void 0,fetchPreviousPage:C?S:void 0}})(t);return(0,r.jsx)(c.AnalyticsContext,{attributes:{searchTypes:f.types.sort().join(",")},children:(0,r.jsx)(d.Provider,{value:(0,l.createVersionedValueMap)({1:f}),children:n})})},g=e=>{const{initialState:t,inheritParentContextIfAvailable:n,children:i}=e,a=void 0!==(0,o.useContext)(d),s=(0,c.useApi)(c.configApiRef),l=t??{},u=s.has("search.query.pageLimit")?{pageLimit:s.getNumber("search.query.pageLimit")}:{},f={...h,...l,...u};return a&&n?(0,r.jsx)(r.Fragment,{children:i}):(0,r.jsx)(p,{initialState:f,children:i})}},16294:(e,t,n)=>{"use strict";n.d(t,{U:()=>a});var r=n(9490);const i=(0,r.createApiRef)({id:"plugin.signal.service"});var o=n(95478);const a=e=>{const t=(0,r.useApiHolder)().get(i),[n,a]=(0,o.useState)(null);return(0,o.useEffect)(()=>{let n=null;if(t){const{unsubscribe:r}=t.subscribe(e,e=>{a(e)});n=r}return()=>{t&&n&&n()}},[t,e]),{lastSignal:n,isSignalsAvailable:(0,o.useMemo)(()=>!!t,[t])}}},36521:(e,t,n)=>{"use strict";n.d(t,{s:()=>s});var r=n(9490),i=n(95478),o=n(35015),a=n(30043);const s=()=>{const e=(0,r.useApi)(r.identityApiRef),t=(0,r.useApi)(r.alertApiRef),n=(0,r.useApi)(a.v),{value:s,loading:l,error:c}=(0,o.A)(async()=>{let t=await e.getProfileInfo();const r=await e.getBackstageIdentity(),i=await n.getEntityByRef(r.userEntityRef);return void 0===t.picture&&i?.spec?.profile?.picture&&(t={...t,picture:i.spec.profile.picture}),{profile:t,identity:r}},[]);return(0,i.useEffect)(()=>{c&&t.post({message:`Failed to load user identity: ${c}`,severity:"error"})},[c,t]),l||c?{profile:{},displayName:"",loading:l}:{profile:s.profile,backstageIdentity:s.identity,displayName:s.profile.displayName??s.identity.userEntityRef,loading:l}}},8973:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(89575),i=n(37756),o=n(90689),a=n(39850),s=n(95478),l=(n(524),n(36274)),c=n(69621),u=n(4321),d=n(7031),f=n(15494),h=n(45065),p=s.forwardRef(function(e,t){var n=e.children,d=e.classes,p=e.className,g=e.defaultExpanded,m=void 0!==g&&g,v=e.disabled,y=void 0!==v&&v,b=e.expanded,x=e.onChange,A=e.square,w=void 0!==A&&A,k=e.TransitionComponent,C=void 0===k?c.A:k,E=e.TransitionProps,S=(0,a.A)(e,["children","classes","className","defaultExpanded","disabled","expanded","onChange","square","TransitionComponent","TransitionProps"]),M=(0,h.A)({controlled:b,default:m,name:"Accordion",state:"expanded"}),_=(0,o.A)(M,2),T=_[0],I=_[1],P=s.useCallback(function(e){I(!T),x&&x(e,!T)},[T,x,I]),R=s.Children.toArray(n),L=(0,i.A)(R),j=L[0],D=L.slice(1),O=s.useMemo(function(){return{expanded:T,disabled:y,toggle:P}},[T,y,P]);return s.createElement(u.A,(0,r.A)({className:(0,l.A)(d.root,p,T&&d.expanded,y&&d.disabled,!w&&d.rounded),ref:t,square:w},S),s.createElement(f.A.Provider,{value:O},j),s.createElement(C,(0,r.A)({in:T,timeout:"auto"},E),s.createElement("div",{"aria-labelledby":j.props.id,id:j.props["aria-controls"],role:"region"},D)))});const g=(0,d.A)(function(e){var t={duration:e.transitions.duration.shortest};return{root:{position:"relative",transition:e.transitions.create(["margin"],t),"&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:e.palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-child":{"&:before":{display:"none"}},"&$expanded":{margin:"16px 0","&:first-child":{marginTop:0},"&:last-child":{marginBottom:0},"&:before":{opacity:0}},"&$expanded + &":{"&:before":{display:"none"}},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},rounded:{borderRadius:0,"&:first-child":{borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},"&:last-child":{borderBottomLeftRadius:e.shape.borderRadius,borderBottomRightRadius:e.shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},expanded:{},disabled:{}}},{name:"MuiAccordion"})(p)},15494:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(95478).createContext({})},91567:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(89575),i=n(39850),o=n(95478),a=n(36274),s=n(7031),l=o.forwardRef(function(e,t){var n=e.classes,s=e.className,l=(0,i.A)(e,["classes","className"]);return o.createElement("div",(0,r.A)({className:(0,a.A)(n.root,s),ref:t},l))});const c=(0,s.A)(function(e){return{root:{display:"flex",padding:e.spacing(1,2,2)}}},{name:"MuiAccordionDetails"})(l)},29655:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(89575),i=n(39850),o=n(95478),a=n(36274),s=n(97740),l=n(29365),c=n(7031),u=n(15494),d=o.forwardRef(function(e,t){var n=e.children,c=e.classes,d=e.className,f=e.expandIcon,h=e.focusVisibleClassName,p=e.IconButtonProps,g=void 0===p?{}:p,m=e.onClick,v=(0,i.A)(e,["children","classes","className","expandIcon","focusVisibleClassName","IconButtonProps","onClick"]),y=o.useContext(u.A),b=y.disabled,x=void 0!==b&&b,A=y.expanded,w=y.toggle;return o.createElement(s.A,(0,r.A)({focusRipple:!1,disableRipple:!0,disabled:x,component:"div","aria-expanded":A,className:(0,a.A)(c.root,d,x&&c.disabled,A&&c.expanded),focusVisibleClassName:(0,a.A)(c.focusVisible,c.focused,h),onClick:function(e){w&&w(e),m&&m(e)},ref:t},v),o.createElement("div",{className:(0,a.A)(c.content,A&&c.expanded)},n),f&&o.createElement(l.A,(0,r.A)({className:(0,a.A)(c.expandIcon,A&&c.expanded),edge:"end",component:"div",tabIndex:null,role:null,"aria-hidden":!0},g),f))});const f=(0,c.A)(function(e){var t={duration:e.transitions.duration.shortest};return{root:{display:"flex",minHeight:48,transition:e.transitions.create(["min-height","background-color"],t),padding:e.spacing(0,2),"&:hover:not($disabled)":{cursor:"pointer"},"&$expanded":{minHeight:64},"&$focused, &$focusVisible":{backgroundColor:e.palette.action.focus},"&$disabled":{opacity:e.palette.action.disabledOpacity}},expanded:{},focused:{},focusVisible:{},disabled:{},content:{display:"flex",flexGrow:1,transition:e.transitions.create(["margin"],t),margin:"12px 0","&$expanded":{margin:"20px 0"}},expandIcon:{transform:"rotate(0deg)",transition:e.transitions.create("transform",t),"&:hover":{backgroundColor:"transparent"},"&$expanded":{transform:"rotate(180deg)"}}}},{name:"MuiAccordionSummary"})(d)},10394:(e,t,n)=>{"use strict";n.d(t,{A:()=>L});var r=n(83705),i=n(89575),o=n(92076);function a(e,t){var n={};return Object.keys(e).forEach(function(r){-1===t.indexOf(r)&&(n[r]=e[r])}),n}const s=function(e){var t=function(t){var n=e(t);return t.css?(0,i.A)({},(0,o.A)(n,e((0,i.A)({theme:t.theme},t.css))),a(t.css,[e.filterProps])):t.sx?(0,i.A)({},(0,o.A)(n,e((0,i.A)({theme:t.theme},t.sx))),a(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat((0,r.A)(e.filterProps)),t},l=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce(function(t,n){var r=n(e);return r?(0,o.A)(t,r):t},{})};return r.propTypes={},r.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),r};var c=n(24586),u=n(59292);function d(e,t){return t&&"string"==typeof t?t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e):null}const f=function(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,i=e.themeKey,o=e.transform,a=function(e){if(null==e[t])return null;var n=e[t],a=d(e.theme,i)||{};return(0,u.N)(e,n,function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=d(a,e)||e,o&&(t=o(t))),!1===r?t:(0,c.A)({},r,t)})};return a.propTypes={},a.filterProps=[t],a};function h(e){return"number"!=typeof e?e:"".concat(e,"px solid")}const p=l(f({prop:"border",themeKey:"borders",transform:h}),f({prop:"borderTop",themeKey:"borders",transform:h}),f({prop:"borderRight",themeKey:"borders",transform:h}),f({prop:"borderBottom",themeKey:"borders",transform:h}),f({prop:"borderLeft",themeKey:"borders",transform:h}),f({prop:"borderColor",themeKey:"palette"}),f({prop:"borderRadius",themeKey:"shape"})),g=l(f({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),f({prop:"display"}),f({prop:"overflow"}),f({prop:"textOverflow"}),f({prop:"visibility"}),f({prop:"whiteSpace"})),m=l(f({prop:"flexBasis"}),f({prop:"flexDirection"}),f({prop:"flexWrap"}),f({prop:"justifyContent"}),f({prop:"alignItems"}),f({prop:"alignContent"}),f({prop:"order"}),f({prop:"flex"}),f({prop:"flexGrow"}),f({prop:"flexShrink"}),f({prop:"alignSelf"}),f({prop:"justifyItems"}),f({prop:"justifySelf"})),v=l(f({prop:"gridGap"}),f({prop:"gridColumnGap"}),f({prop:"gridRowGap"}),f({prop:"gridColumn"}),f({prop:"gridRow"}),f({prop:"gridAutoFlow"}),f({prop:"gridAutoColumns"}),f({prop:"gridAutoRows"}),f({prop:"gridTemplateColumns"}),f({prop:"gridTemplateRows"}),f({prop:"gridTemplateAreas"}),f({prop:"gridArea"})),y=l(f({prop:"position"}),f({prop:"zIndex",themeKey:"zIndex"}),f({prop:"top"}),f({prop:"right"}),f({prop:"bottom"}),f({prop:"left"})),b=l(f({prop:"color",themeKey:"palette"}),f({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"})),x=f({prop:"boxShadow",themeKey:"shadows"});function A(e){return e<=1?"".concat(100*e,"%"):e}var w=f({prop:"width",transform:A}),k=f({prop:"maxWidth",transform:A}),C=f({prop:"minWidth",transform:A}),E=f({prop:"height",transform:A}),S=f({prop:"maxHeight",transform:A}),M=f({prop:"minHeight",transform:A});f({prop:"size",cssProperty:"width",transform:A}),f({prop:"size",cssProperty:"height",transform:A});const _=l(w,k,C,E,S,M,f({prop:"boxSizing"}));var T=n(38184);const I=l(f({prop:"fontFamily",themeKey:"typography"}),f({prop:"fontSize",themeKey:"typography"}),f({prop:"fontStyle",themeKey:"typography"}),f({prop:"fontWeight",themeKey:"typography"}),f({prop:"letterSpacing"}),f({prop:"lineHeight"}),f({prop:"textAlign"}));var P=n(60882),R=s(l(p,g,m,v,y,b,x,_,T.A,I));const L=(0,P.A)("div")(R,{name:"MuiBox"})},64947:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(39850),i=n(89575),o=n(95478),a=n(36274),s=n(7031),l=n(268),c=n(97740),u=n(11192),d=o.forwardRef(function(e,t){var n=e.children,s=e.classes,l=e.className,d=e.color,f=void 0===d?"default":d,h=e.component,p=void 0===h?"button":h,g=e.disabled,m=void 0!==g&&g,v=e.disableElevation,y=void 0!==v&&v,b=e.disableFocusRipple,x=void 0!==b&&b,A=e.endIcon,w=e.focusVisibleClassName,k=e.fullWidth,C=void 0!==k&&k,E=e.size,S=void 0===E?"medium":E,M=e.startIcon,_=e.type,T=void 0===_?"button":_,I=e.variant,P=void 0===I?"text":I,R=(0,r.A)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),L=M&&o.createElement("span",{className:(0,a.A)(s.startIcon,s["iconSize".concat((0,u.A)(S))])},M),j=A&&o.createElement("span",{className:(0,a.A)(s.endIcon,s["iconSize".concat((0,u.A)(S))])},A);return o.createElement(c.A,(0,i.A)({className:(0,a.A)(s.root,s[P],l,"inherit"===f?s.colorInherit:"default"!==f&&s["".concat(P).concat((0,u.A)(f))],"medium"!==S&&[s["".concat(P,"Size").concat((0,u.A)(S))],s["size".concat((0,u.A)(S))]],y&&s.disableElevation,m&&s.disabled,C&&s.fullWidth),component:p,disabled:m,focusRipple:!x,focusVisibleClassName:(0,a.A)(s.focusVisible,w),ref:t,type:T},R),o.createElement("span",{className:s.label},L,n,j))});const f=(0,s.A)(function(e){return{root:(0,i.A)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:(0,l.X4)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,l.X4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,l.X4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat((0,l.X4)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:(0,l.X4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat((0,l.X4)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:(0,l.X4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}},{name:"MuiButton"})(d)},97740:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(89575),i=n(39850),o=n(95478),a=n(40484),s=n(36274),l=n(19878),c=n(70020),u=n(7031),d=n(29409),f=n(83705),h=n(1675),p="undefined"==typeof window?o.useEffect:o.useLayoutEffect;const g=function(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,i=e.rippleX,a=e.rippleY,l=e.rippleSize,u=e.in,d=e.onExited,f=void 0===d?function(){}:d,h=e.timeout,g=o.useState(!1),m=g[0],v=g[1],y=(0,s.A)(t.ripple,t.rippleVisible,r&&t.ripplePulsate),b={width:l,height:l,top:-l/2+a,left:-l/2+i},x=(0,s.A)(t.child,m&&t.childLeaving,r&&t.childPulsate),A=(0,c.A)(f);return p(function(){if(!u){v(!0);var e=setTimeout(A,h);return function(){clearTimeout(e)}}},[A,u,h]),o.createElement("span",{className:y,style:b},o.createElement("span",{className:x}))};var m=o.forwardRef(function(e,t){var n=e.center,a=void 0!==n&&n,l=e.classes,c=e.className,u=(0,i.A)(e,["center","classes","className"]),d=o.useState([]),p=d[0],m=d[1],v=o.useRef(0),y=o.useRef(null);o.useEffect(function(){y.current&&(y.current(),y.current=null)},[p]);var b=o.useRef(!1),x=o.useRef(null),A=o.useRef(null),w=o.useRef(null);o.useEffect(function(){return function(){clearTimeout(x.current)}},[]);var k=o.useCallback(function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,i=e.rippleSize,a=e.cb;m(function(e){return[].concat((0,f.A)(e),[o.createElement(g,{key:v.current,classes:l,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i})])}),v.current+=1,y.current=a},[l]),C=o.useCallback(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,i=void 0!==r&&r,o=t.center,s=void 0===o?a||t.pulsate:o,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&b.current)b.current=!1;else{"touchstart"===e.type&&(b.current=!0);var u,d,f,h=c?null:w.current,p=h?h.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(p.width/2),d=Math.round(p.height/2);else{var g=e.touches?e.touches[0]:e,m=g.clientX,v=g.clientY;u=Math.round(m-p.left),d=Math.round(v-p.top)}if(s)(f=Math.sqrt((2*Math.pow(p.width,2)+Math.pow(p.height,2))/3))%2==0&&(f+=1);else{var y=2*Math.max(Math.abs((h?h.clientWidth:0)-u),u)+2,C=2*Math.max(Math.abs((h?h.clientHeight:0)-d),d)+2;f=Math.sqrt(Math.pow(y,2)+Math.pow(C,2))}e.touches?null===A.current&&(A.current=function(){k({pulsate:i,rippleX:u,rippleY:d,rippleSize:f,cb:n})},x.current=setTimeout(function(){A.current&&(A.current(),A.current=null)},80)):k({pulsate:i,rippleX:u,rippleY:d,rippleSize:f,cb:n})}},[a,k]),E=o.useCallback(function(){C({},{pulsate:!0})},[C]),S=o.useCallback(function(e,t){if(clearTimeout(x.current),"touchend"===e.type&&A.current)return e.persist(),A.current(),A.current=null,void(x.current=setTimeout(function(){S(e,t)}));A.current=null,m(function(e){return e.length>0?e.slice(1):e}),y.current=t},[]);return o.useImperativeHandle(t,function(){return{pulsate:E,start:C,stop:S}},[E,C,S]),o.createElement("span",(0,r.A)({className:(0,s.A)(l.root,c),ref:w},u),o.createElement(h.A,{component:null,exit:!0},p))});const v=(0,u.A)(function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}},{flip:!1,name:"MuiTouchRipple"})(o.memo(m));var y=o.forwardRef(function(e,t){var n=e.action,u=e.buttonRef,f=e.centerRipple,h=void 0!==f&&f,p=e.children,g=e.classes,m=e.className,y=e.component,b=void 0===y?"button":y,x=e.disabled,A=void 0!==x&&x,w=e.disableRipple,k=void 0!==w&&w,C=e.disableTouchRipple,E=void 0!==C&&C,S=e.focusRipple,M=void 0!==S&&S,_=e.focusVisibleClassName,T=e.onBlur,I=e.onClick,P=e.onFocus,R=e.onFocusVisible,L=e.onKeyDown,j=e.onKeyUp,D=e.onMouseDown,O=e.onMouseLeave,N=e.onMouseUp,F=e.onTouchEnd,z=e.onTouchMove,B=e.onTouchStart,$=e.onDragLeave,H=e.tabIndex,U=void 0===H?0:H,W=e.TouchRippleProps,V=e.type,q=void 0===V?"button":V,G=(0,i.A)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),Y=o.useRef(null),K=o.useRef(null),X=o.useState(!1),Z=X[0],Q=X[1];A&&Z&&Q(!1);var J=(0,d.A)(),ee=J.isFocusVisible,te=J.onBlurVisible,ne=J.ref;function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E;return(0,c.A)(function(r){return t&&t(r),!n&&K.current&&K.current[e](r),!0})}o.useImperativeHandle(n,function(){return{focusVisible:function(){Q(!0),Y.current.focus()}}},[]),o.useEffect(function(){Z&&M&&!k&&K.current.pulsate()},[k,M,Z]);var ie=re("start",D),oe=re("stop",$),ae=re("stop",N),se=re("stop",function(e){Z&&e.preventDefault(),O&&O(e)}),le=re("start",B),ce=re("stop",F),ue=re("stop",z),de=re("stop",function(e){Z&&(te(e),Q(!1)),T&&T(e)},!1),fe=(0,c.A)(function(e){Y.current||(Y.current=e.currentTarget),ee(e)&&(Q(!0),R&&R(e)),P&&P(e)}),he=function(){var e=a.findDOMNode(Y.current);return b&&"button"!==b&&!("A"===e.tagName&&e.href)},pe=o.useRef(!1),ge=(0,c.A)(function(e){M&&!pe.current&&Z&&K.current&&" "===e.key&&(pe.current=!0,e.persist(),K.current.stop(e,function(){K.current.start(e)})),e.target===e.currentTarget&&he()&&" "===e.key&&e.preventDefault(),L&&L(e),e.target===e.currentTarget&&he()&&"Enter"===e.key&&!A&&(e.preventDefault(),I&&I(e))}),me=(0,c.A)(function(e){M&&" "===e.key&&K.current&&Z&&!e.defaultPrevented&&(pe.current=!1,e.persist(),K.current.stop(e,function(){K.current.pulsate(e)})),j&&j(e),I&&e.target===e.currentTarget&&he()&&" "===e.key&&!e.defaultPrevented&&I(e)}),ve=b;"button"===ve&&G.href&&(ve="a");var ye={};"button"===ve?(ye.type=q,ye.disabled=A):("a"===ve&&G.href||(ye.role="button"),ye["aria-disabled"]=A);var be=(0,l.A)(u,t),xe=(0,l.A)(ne,Y),Ae=(0,l.A)(be,xe),we=o.useState(!1),ke=we[0],Ce=we[1];o.useEffect(function(){Ce(!0)},[]);var Ee=ke&&!k&&!A;return o.createElement(ve,(0,r.A)({className:(0,s.A)(g.root,m,Z&&[g.focusVisible,_],A&&g.disabled),onBlur:de,onClick:I,onFocus:fe,onKeyDown:ge,onKeyUp:me,onMouseDown:ie,onMouseLeave:se,onMouseUp:ae,onDragLeave:oe,onTouchEnd:ce,onTouchMove:ue,onTouchStart:le,ref:Ae,tabIndex:A?-1:U},ye,G),p,Ee?o.createElement(v,(0,r.A)({ref:K,center:h},W)):null)});const b=(0,u.A)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(y)},69621:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(89575),i=n(90689),o=n(39850),a=n(95478),s=n(36274),l=n(32258),c=n(7031),u=n(43457),d=n(41188),f=n(54917),h=n(19878),p=a.forwardRef(function(e,t){var n=e.children,c=e.classes,p=e.className,g=e.collapsedHeight,m=e.collapsedSize,v=void 0===m?"0px":m,y=e.component,b=void 0===y?"div":y,x=e.disableStrictModeCompat,A=void 0!==x&&x,w=e.in,k=e.onEnter,C=e.onEntered,E=e.onEntering,S=e.onExit,M=e.onExited,_=e.onExiting,T=e.style,I=e.timeout,P=void 0===I?u.p0.standard:I,R=e.TransitionComponent,L=void 0===R?l.Ay:R,j=(0,o.A)(e,["children","classes","className","collapsedHeight","collapsedSize","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),D=(0,f.A)(),O=a.useRef(),N=a.useRef(null),F=a.useRef(),z="number"==typeof(g||v)?"".concat(g||v,"px"):g||v;a.useEffect(function(){return function(){clearTimeout(O.current)}},[]);var B=D.unstable_strictMode&&!A,$=a.useRef(null),H=(0,h.A)(t,B?$:void 0),U=function(e){return function(t,n){if(e){var r=B?[$.current,t]:[t,n],o=(0,i.A)(r,2),a=o[0],s=o[1];void 0===s?e(a):e(a,s)}}},W=U(function(e,t){e.style.height=z,k&&k(e,t)}),V=U(function(e,t){var n=N.current?N.current.clientHeight:0,r=(0,d.c)({style:T,timeout:P},{mode:"enter"}).duration;if("auto"===P){var i=D.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(i,"ms"),F.current=i}else e.style.transitionDuration="string"==typeof r?r:"".concat(r,"ms");e.style.height="".concat(n,"px"),E&&E(e,t)}),q=U(function(e,t){e.style.height="auto",C&&C(e,t)}),G=U(function(e){var t=N.current?N.current.clientHeight:0;e.style.height="".concat(t,"px"),S&&S(e)}),Y=U(M),K=U(function(e){var t=N.current?N.current.clientHeight:0,n=(0,d.c)({style:T,timeout:P},{mode:"exit"}).duration;if("auto"===P){var r=D.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(r,"ms"),F.current=r}else e.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");e.style.height=z,_&&_(e)});return a.createElement(L,(0,r.A)({in:w,onEnter:W,onEntered:q,onEntering:V,onExit:G,onExited:Y,onExiting:K,addEndListener:function(e,t){var n=B?e:t;"auto"===P&&(O.current=setTimeout(n,F.current||0))},nodeRef:B?$:void 0,timeout:"auto"===P?null:P},j),function(e,t){return a.createElement(b,(0,r.A)({className:(0,s.A)(c.root,c.container,p,{entered:c.entered,exited:!w&&"0px"===z&&c.hidden}[e]),style:(0,r.A)({minHeight:z},T),ref:H},t),a.createElement("div",{className:c.wrapper,ref:N},a.createElement("div",{className:c.wrapperInner},n)))})});p.muiSupportAuto=!0;const g=(0,c.A)(function(e){return{root:{height:0,overflow:"hidden",transition:e.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}},{name:"MuiCollapse"})(p)},31647:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var r=n(89575),i=n(39850),o=n(24586),a=n(95478),s=n(36274),l=n(7031),c=n(11192),u=n(9605),d=n(90689),f=n(32258),h=n(43457),p=n(54917),g=n(41188),m=n(19878),v={entering:{opacity:1},entered:{opacity:1}},y={enter:h.p0.enteringScreen,exit:h.p0.leavingScreen};const b=a.forwardRef(function(e,t){var n=e.children,o=e.disableStrictModeCompat,s=void 0!==o&&o,l=e.in,c=e.onEnter,u=e.onEntered,h=e.onEntering,b=e.onExit,x=e.onExited,A=e.onExiting,w=e.style,k=e.TransitionComponent,C=void 0===k?f.Ay:k,E=e.timeout,S=void 0===E?y:E,M=(0,i.A)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),_=(0,p.A)(),T=_.unstable_strictMode&&!s,I=a.useRef(null),P=(0,m.A)(n.ref,t),R=(0,m.A)(T?I:void 0,P),L=function(e){return function(t,n){if(e){var r=T?[I.current,t]:[t,n],i=(0,d.A)(r,2),o=i[0],a=i[1];void 0===a?e(o):e(o,a)}}},j=L(h),D=L(function(e,t){(0,g.q)(e);var n=(0,g.c)({style:w,timeout:S},{mode:"enter"});e.style.webkitTransition=_.transitions.create("opacity",n),e.style.transition=_.transitions.create("opacity",n),c&&c(e,t)}),O=L(u),N=L(A),F=L(function(e){var t=(0,g.c)({style:w,timeout:S},{mode:"exit"});e.style.webkitTransition=_.transitions.create("opacity",t),e.style.transition=_.transitions.create("opacity",t),b&&b(e)}),z=L(x);return a.createElement(C,(0,r.A)({appear:!0,in:l,nodeRef:T?I:void 0,onEnter:D,onEntered:O,onEntering:j,onExit:F,onExited:z,onExiting:N,timeout:S},M),function(e,t){return a.cloneElement(n,(0,r.A)({style:(0,r.A)({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},v[e],w,n.props.style),ref:R},t))})});var x=a.forwardRef(function(e,t){var n=e.children,o=e.classes,l=e.className,c=e.invisible,u=void 0!==c&&c,d=e.open,f=e.transitionDuration,h=e.TransitionComponent,p=void 0===h?b:h,g=(0,i.A)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return a.createElement(p,(0,r.A)({in:d,timeout:f},g),a.createElement("div",{className:(0,s.A)(o.root,l,u&&o.invisible),"aria-hidden":!0,ref:t},n))});const A=(0,l.A)({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(x);var w=n(4321),k={enter:h.p0.enteringScreen,exit:h.p0.leavingScreen},C=a.forwardRef(function(e,t){var n=e.BackdropProps,o=e.children,l=e.classes,d=e.className,f=e.disableBackdropClick,h=void 0!==f&&f,p=e.disableEscapeKeyDown,g=void 0!==p&&p,m=e.fullScreen,v=void 0!==m&&m,y=e.fullWidth,x=void 0!==y&&y,C=e.maxWidth,E=void 0===C?"sm":C,S=e.onBackdropClick,M=e.onClose,_=e.onEnter,T=e.onEntered,I=e.onEntering,P=e.onEscapeKeyDown,R=e.onExit,L=e.onExited,j=e.onExiting,D=e.open,O=e.PaperComponent,N=void 0===O?w.A:O,F=e.PaperProps,z=void 0===F?{}:F,B=e.scroll,$=void 0===B?"paper":B,H=e.TransitionComponent,U=void 0===H?b:H,W=e.transitionDuration,V=void 0===W?k:W,q=e.TransitionProps,G=e["aria-describedby"],Y=e["aria-labelledby"],K=(0,i.A)(e,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),X=a.useRef();return a.createElement(u.A,(0,r.A)({className:(0,s.A)(l.root,d),BackdropComponent:A,BackdropProps:(0,r.A)({transitionDuration:V},n),closeAfterTransition:!0},h?{disableBackdropClick:h}:{},{disableEscapeKeyDown:g,onEscapeKeyDown:P,onClose:M,open:D,ref:t},K),a.createElement(U,(0,r.A)({appear:!0,in:D,timeout:V,onEnter:_,onEntering:I,onEntered:T,onExit:R,onExiting:j,onExited:L,role:"none presentation"},q),a.createElement("div",{className:(0,s.A)(l.container,l["scroll".concat((0,c.A)($))]),onMouseUp:function(e){e.target===e.currentTarget&&e.target===X.current&&(X.current=null,S&&S(e),!h&&M&&M(e,"backdropClick"))},onMouseDown:function(e){X.current=e.target}},a.createElement(N,(0,r.A)({elevation:24,role:"dialog","aria-describedby":G,"aria-labelledby":Y},z,{className:(0,s.A)(l.paper,l["paperScroll".concat((0,c.A)($))],l["paperWidth".concat((0,c.A)(String(E)))],z.className,v&&l.paperFullScreen,x&&l.paperFullWidth)}),o))))});const E=(0,l.A)(function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":(0,o.A)({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":(0,o.A)({},e.breakpoints.down(e.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":(0,o.A)({},e.breakpoints.down(e.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":(0,o.A)({},e.breakpoints.down(e.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":(0,o.A)({},e.breakpoints.down(e.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}},{name:"MuiDialog"})(C)},93453:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(89575),i=n(39850),o=n(95478),a=n(36274),s=n(7031),l=o.forwardRef(function(e,t){var n=e.disableSpacing,s=void 0!==n&&n,l=e.classes,c=e.className,u=(0,i.A)(e,["disableSpacing","classes","className"]);return o.createElement("div",(0,r.A)({className:(0,a.A)(l.root,c,!s&&l.spacing),ref:t},u))});const c=(0,s.A)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiDialogActions"})(l)},46805:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(89575),i=n(39850),o=n(95478),a=n(36274),s=n(7031),l=o.forwardRef(function(e,t){var n=e.classes,s=e.className,l=e.dividers,c=void 0!==l&&l,u=(0,i.A)(e,["classes","className","dividers"]);return o.createElement("div",(0,r.A)({className:(0,a.A)(n.root,s,c&&n.dividers),ref:t},u))});const c=(0,s.A)(function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}},{name:"MuiDialogContent"})(l)},61477:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(89575),i=n(39850),o=n(95478),a=n(36274),s=n(7031),l=n(72501),c=o.forwardRef(function(e,t){var n=e.children,s=e.classes,c=e.className,u=e.disableTypography,d=void 0!==u&&u,f=(0,i.A)(e,["children","classes","className","disableTypography"]);return o.createElement("div",(0,r.A)({className:(0,a.A)(s.root,c),ref:t},f),d?n:o.createElement(l.A,{component:"h2",variant:"h6"},n))});const u=(0,s.A)({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(c)},37197:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(89575),i=n(39850),o=n(95478),a=n(36274),s=n(7031),l=n(268),c=o.forwardRef(function(e,t){var n=e.absolute,s=void 0!==n&&n,l=e.classes,c=e.className,u=e.component,d=void 0===u?"hr":u,f=e.flexItem,h=void 0!==f&&f,p=e.light,g=void 0!==p&&p,m=e.orientation,v=void 0===m?"horizontal":m,y=e.role,b=void 0===y?"hr"!==d?"separator":void 0:y,x=e.variant,A=void 0===x?"fullWidth":x,w=(0,i.A)(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return o.createElement(d,(0,r.A)({className:(0,a.A)(l.root,c,"fullWidth"!==A&&l[A],s&&l.absolute,h&&l.flexItem,g&&l.light,"vertical"===v&&l.vertical),role:b,ref:t},w))});const u=(0,s.A)(function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:(0,l.X4)(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}},{name:"MuiDivider"})(c)},42899:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(39850),i=n(89575),o=n(95478),a=n(36274),s=n(7031),l=[0,1,2,3,4,5,6,7,8,9,10],c=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var d=o.forwardRef(function(e,t){var n=e.alignContent,s=void 0===n?"stretch":n,l=e.alignItems,c=void 0===l?"stretch":l,u=e.classes,d=e.className,f=e.component,h=void 0===f?"div":f,p=e.container,g=void 0!==p&&p,m=e.direction,v=void 0===m?"row":m,y=e.item,b=void 0!==y&&y,x=e.justify,A=e.justifyContent,w=void 0===A?"flex-start":A,k=e.lg,C=void 0!==k&&k,E=e.md,S=void 0!==E&&E,M=e.sm,_=void 0!==M&&M,T=e.spacing,I=void 0===T?0:T,P=e.wrap,R=void 0===P?"wrap":P,L=e.xl,j=void 0!==L&&L,D=e.xs,O=void 0!==D&&D,N=e.zeroMinWidth,F=void 0!==N&&N,z=(0,r.A)(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","justifyContent","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),B=(0,a.A)(u.root,d,g&&[u.container,0!==I&&u["spacing-xs-".concat(String(I))]],b&&u.item,F&&u.zeroMinWidth,"row"!==v&&u["direction-xs-".concat(String(v))],"wrap"!==R&&u["wrap-xs-".concat(String(R))],"stretch"!==c&&u["align-items-xs-".concat(String(c))],"stretch"!==s&&u["align-content-xs-".concat(String(s))],"flex-start"!==(x||w)&&u["justify-content-xs-".concat(String(x||w))],!1!==O&&u["grid-xs-".concat(String(O))],!1!==_&&u["grid-sm-".concat(String(_))],!1!==S&&u["grid-md-".concat(String(S))],!1!==C&&u["grid-lg-".concat(String(C))],!1!==j&&u["grid-xl-".concat(String(j))]);return o.createElement(h,(0,i.A)({className:B,ref:t},z))});const f=(0,s.A)(function(e){return(0,i.A)({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-content-xs-center":{justifyContent:"center"},"justify-content-xs-flex-end":{justifyContent:"flex-end"},"justify-content-xs-space-between":{justifyContent:"space-between"},"justify-content-xs-space-around":{justifyContent:"space-around"},"justify-content-xs-space-evenly":{justifyContent:"space-evenly"}},function(e){var t={};return l.forEach(function(n){var r=e.spacing(n);0!==r&&(t["spacing-".concat("xs","-").concat(n)]={margin:"-".concat(u(r,2)),width:"calc(100% + ".concat(u(r),")"),"& > $item":{padding:u(r,2)}})}),t}(e),e.breakpoints.keys.reduce(function(t,n){return function(e,t,n){var r={};c.forEach(function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var i="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:i,flexGrow:0,maxWidth:i}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}}),"xs"===n?(0,i.A)(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t},{}))},{name:"MuiGrid"})(d)},33145:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(89575),i=n(90689),o=n(39850),a=n(95478),s=n(32258),l=n(54917),c=n(41188),u=n(19878);function d(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var f={entering:{opacity:1,transform:d(1)},entered:{opacity:1,transform:"none"}},h=a.forwardRef(function(e,t){var n=e.children,h=e.disableStrictModeCompat,p=void 0!==h&&h,g=e.in,m=e.onEnter,v=e.onEntered,y=e.onEntering,b=e.onExit,x=e.onExited,A=e.onExiting,w=e.style,k=e.timeout,C=void 0===k?"auto":k,E=e.TransitionComponent,S=void 0===E?s.Ay:E,M=(0,o.A)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),_=a.useRef(),T=a.useRef(),I=(0,l.A)(),P=I.unstable_strictMode&&!p,R=a.useRef(null),L=(0,u.A)(n.ref,t),j=(0,u.A)(P?R:void 0,L),D=function(e){return function(t,n){if(e){var r=P?[R.current,t]:[t,n],o=(0,i.A)(r,2),a=o[0],s=o[1];void 0===s?e(a):e(a,s)}}},O=D(y),N=D(function(e,t){(0,c.q)(e);var n,r=(0,c.c)({style:w,timeout:C},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===C?(n=I.transitions.getAutoHeightDuration(e.clientHeight),T.current=n):n=i,e.style.transition=[I.transitions.create("opacity",{duration:n,delay:o}),I.transitions.create("transform",{duration:.666*n,delay:o})].join(","),m&&m(e,t)}),F=D(v),z=D(A),B=D(function(e){var t,n=(0,c.c)({style:w,timeout:C},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===C?(t=I.transitions.getAutoHeightDuration(e.clientHeight),T.current=t):t=r,e.style.transition=[I.transitions.create("opacity",{duration:t,delay:i}),I.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=d(.75),b&&b(e)}),$=D(x);return a.useEffect(function(){return function(){clearTimeout(_.current)}},[]),a.createElement(S,(0,r.A)({appear:!0,in:g,nodeRef:P?R:void 0,onEnter:N,onEntered:F,onEntering:O,onExit:B,onExited:$,onExiting:z,addEndListener:function(e,t){var n=P?e:t;"auto"===C&&(_.current=setTimeout(n,T.current||0))},timeout:"auto"===C?null:C},M),function(e,t){return a.cloneElement(n,(0,r.A)({style:(0,r.A)({opacity:0,transform:d(.75),visibility:"exited"!==e||g?void 0:"hidden"},f[e],w,n.props.style),ref:j},t))})});h.muiSupportAuto=!0;const p=h},29365:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(89575),i=n(39850),o=n(95478),a=n(36274),s=n(7031),l=n(268),c=n(97740),u=n(11192),d=o.forwardRef(function(e,t){var n=e.edge,s=void 0!==n&&n,l=e.children,d=e.classes,f=e.className,h=e.color,p=void 0===h?"default":h,g=e.disabled,m=void 0!==g&&g,v=e.disableFocusRipple,y=void 0!==v&&v,b=e.size,x=void 0===b?"medium":b,A=(0,i.A)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return o.createElement(c.A,(0,r.A)({className:(0,a.A)(d.root,f,"default"!==p&&d["color".concat((0,u.A)(p))],m&&d.disabled,"small"===x&&d["size".concat((0,u.A)(x))],{start:d.edgeStart,end:d.edgeEnd}[s]),centerRipple:!0,focusRipple:!y,disabled:m,ref:t},A),o.createElement("span",{className:d.label},l))});const f=(0,s.A)(function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:(0,l.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,l.X4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,l.X4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}},{name:"MuiIconButton"})(d)},58007:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(89575),i=n(39850),o=n(95478),a=n(36274),s=n(7031),l=n(43504),c=o.forwardRef(function(e,t){var n=e.children,s=e.classes,c=e.className,u=e.component,d=void 0===u?"ul":u,f=e.dense,h=void 0!==f&&f,p=e.disablePadding,g=void 0!==p&&p,m=e.subheader,v=(0,i.A)(e,["children","classes","className","component","dense","disablePadding","subheader"]),y=o.useMemo(function(){return{dense:h}},[h]);return o.createElement(l.A.Provider,{value:y},o.createElement(d,(0,r.A)({className:(0,a.A)(s.root,c,h&&s.dense,!g&&s.padding,m&&s.subheader),ref:t},v),m,n))});const u=(0,s.A)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(c)},43504:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(95478).createContext({})},8109:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(89575),i=n(39850),o=n(95478),a=n(36274),s=n(7031),l=n(97740),c=n(73525),u=n(19878),d=n(43504),f=n(40484),h="undefined"==typeof window?o.useEffect:o.useLayoutEffect,p=o.forwardRef(function(e,t){var n=e.alignItems,s=void 0===n?"center":n,p=e.autoFocus,g=void 0!==p&&p,m=e.button,v=void 0!==m&&m,y=e.children,b=e.classes,x=e.className,A=e.component,w=e.ContainerComponent,k=void 0===w?"li":w,C=e.ContainerProps,E=(C=void 0===C?{}:C).className,S=(0,i.A)(C,["className"]),M=e.dense,_=void 0!==M&&M,T=e.disabled,I=void 0!==T&&T,P=e.disableGutters,R=void 0!==P&&P,L=e.divider,j=void 0!==L&&L,D=e.focusVisibleClassName,O=e.selected,N=void 0!==O&&O,F=(0,i.A)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),z=o.useContext(d.A),B={dense:_||z.dense||!1,alignItems:s},$=o.useRef(null);h(function(){g&&$.current&&$.current.focus()},[g]);var H=o.Children.toArray(y),U=H.length&&(0,c.A)(H[H.length-1],["ListItemSecondaryAction"]),W=o.useCallback(function(e){$.current=f.findDOMNode(e)},[]),V=(0,u.A)(W,t),q=(0,r.A)({className:(0,a.A)(b.root,x,B.dense&&b.dense,!R&&b.gutters,j&&b.divider,I&&b.disabled,v&&b.button,"center"!==s&&b.alignItemsFlexStart,U&&b.secondaryAction,N&&b.selected),disabled:I},F),G=A||"li";return v&&(q.component=A||"div",q.focusVisibleClassName=(0,a.A)(b.focusVisible,D),G=l.A),U?(G=q.component||A?G:"div","li"===k&&("li"===G?G="div":"li"===q.component&&(q.component="div")),o.createElement(d.A.Provider,{value:B},o.createElement(k,(0,r.A)({className:(0,a.A)(b.container,E),ref:V},S),o.createElement(G,q,H),H.pop()))):o.createElement(d.A.Provider,{value:B},o.createElement(G,(0,r.A)({ref:V},q),H))});const g=(0,s.A)(function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}},{name:"MuiListItem"})(p)},5951:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(89575),i=n(39850),o=n(95478),a=n(36274),s=n(7031),l=n(72501),c=n(43504),u=o.forwardRef(function(e,t){var n=e.children,s=e.classes,u=e.className,d=e.disableTypography,f=void 0!==d&&d,h=e.inset,p=void 0!==h&&h,g=e.primary,m=e.primaryTypographyProps,v=e.secondary,y=e.secondaryTypographyProps,b=(0,i.A)(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),x=o.useContext(c.A).dense,A=null!=g?g:n;null==A||A.type===l.A||f||(A=o.createElement(l.A,(0,r.A)({variant:x?"body2":"body1",className:s.primary,component:"span",display:"block"},m),A));var w=v;return null==w||w.type===l.A||f||(w=o.createElement(l.A,(0,r.A)({variant:"body2",className:s.secondary,color:"textSecondary",display:"block"},y),w)),o.createElement("div",(0,r.A)({className:(0,a.A)(s.root,u,x&&s.dense,p&&s.inset,A&&w&&s.multiline),ref:t},b),A,w)});const d=(0,s.A)({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(u)},9605:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var r=n(39850),i=n(89575),o=n(95478),a=n(40484),s=n(11942),l=n(76446),c=n(41883),u=n(37260),d=n(19878),f=n(70020),h=n(26931),p=n(55152),g=n(30414),m=n(83705),v=n(18977),y=n(82431);function b(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function x(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function A(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=[t,n].concat((0,m.A)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===a.indexOf(e.tagName)&&b(e,i)})}function w(e,t){var n=-1;return e.some(function(e,r){return!!t(e)&&(n=r,!0)}),n}var k=function(){function e(){(0,p.A)(this,e),this.modals=[],this.containers=[]}return(0,g.A)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&b(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);A(t,e.mountNode,e.modalRef,r,!0);var i=w(this.containers,function(e){return e.container===t});return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=w(this.containers,function(t){return-1!==t.modals.indexOf(e)}),r=this.containers[n];r.restore||(r.restore=function(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,l.A)(e);return t.body===e?(0,y.A)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=(0,v.A)();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(x(o)+a,"px"),n=(0,l.A)(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(x(e)+a,"px")})}var s=o.parentElement,c="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:c.style.overflow,key:"overflow",el:c}),c.style.overflow="hidden"}return function(){n&&[].forEach.call(n,function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")}),r.forEach(function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)})}}(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=w(this.containers,function(t){return-1!==t.modals.indexOf(e)}),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&b(e.modalRef,!0),A(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&b(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();const C=function(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,s=void 0!==i&&i,c=e.disableRestoreFocus,u=void 0!==c&&c,f=e.getDoc,h=e.isEnabled,p=e.open,g=o.useRef(),m=o.useRef(null),v=o.useRef(null),y=o.useRef(),b=o.useRef(null),x=o.useCallback(function(e){b.current=a.findDOMNode(e)},[]),A=(0,d.A)(t.ref,x),w=o.useRef();return o.useEffect(function(){w.current=p},[p]),!w.current&&p&&"undefined"!=typeof window&&(y.current=f().activeElement),o.useEffect(function(){if(p){var e=(0,l.A)(b.current);r||!b.current||b.current.contains(e.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex",-1),b.current.focus());var t=function(){null!==b.current&&(e.hasFocus()&&!s&&h()&&!g.current?b.current&&!b.current.contains(e.activeElement)&&b.current.focus():g.current=!1)},n=function(t){!s&&h()&&9===t.keyCode&&e.activeElement===b.current&&(g.current=!0,t.shiftKey?v.current.focus():m.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval(function(){t()},50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),u||(y.current&&y.current.focus&&y.current.focus(),y.current=null)}}},[r,s,u,h,p]),o.createElement(o.Fragment,null,o.createElement("div",{tabIndex:0,ref:m,"data-test":"sentinelStart"}),o.cloneElement(t,{ref:A}),o.createElement("div",{tabIndex:0,ref:v,"data-test":"sentinelEnd"}))};var E={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}};const S=o.forwardRef(function(e,t){var n=e.invisible,a=void 0!==n&&n,s=e.open,l=(0,r.A)(e,["invisible","open"]);return s?o.createElement("div",(0,i.A)({"aria-hidden":!0,ref:t},l,{style:(0,i.A)({},E.root,a?E.invisible:{},l.style)})):null});var M=new k;const _=o.forwardRef(function(e,t){var n=(0,s.useTheme)(),p=(0,s.getThemeProps)({name:"MuiModal",props:(0,i.A)({},e),theme:n}),g=p.BackdropComponent,m=void 0===g?S:g,v=p.BackdropProps,y=p.children,x=p.closeAfterTransition,A=void 0!==x&&x,w=p.container,k=p.disableAutoFocus,E=void 0!==k&&k,_=p.disableBackdropClick,T=void 0!==_&&_,I=p.disableEnforceFocus,P=void 0!==I&&I,R=p.disableEscapeKeyDown,L=void 0!==R&&R,j=p.disablePortal,D=void 0!==j&&j,O=p.disableRestoreFocus,N=void 0!==O&&O,F=p.disableScrollLock,z=void 0!==F&&F,B=p.hideBackdrop,$=void 0!==B&&B,H=p.keepMounted,U=void 0!==H&&H,W=p.manager,V=void 0===W?M:W,q=p.onBackdropClick,G=p.onClose,Y=p.onEscapeKeyDown,K=p.onRendered,X=p.open,Z=(0,r.A)(p,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),Q=o.useState(!0),J=Q[0],ee=Q[1],te=o.useRef({}),ne=o.useRef(null),re=o.useRef(null),ie=(0,d.A)(re,t),oe=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(p),ae=function(){return(0,l.A)(ne.current)},se=function(){return te.current.modalRef=re.current,te.current.mountNode=ne.current,te.current},le=function(){V.mount(se(),{disableScrollLock:z}),re.current.scrollTop=0},ce=(0,f.A)(function(){var e=function(e){return e="function"==typeof e?e():e,a.findDOMNode(e)}(w)||ae().body;V.add(se(),e),re.current&&le()}),ue=o.useCallback(function(){return V.isTopModal(se())},[V]),de=(0,f.A)(function(e){ne.current=e,e&&(K&&K(),X&&ue()?le():b(re.current,!0))}),fe=o.useCallback(function(){V.remove(se())},[V]);if(o.useEffect(function(){return function(){fe()}},[fe]),o.useEffect(function(){X?ce():oe&&A||fe()},[X,fe,oe,A,ce]),!U&&!X&&(!oe||J))return null;var he=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:h.A}),pe={};return void 0===y.props.tabIndex&&(pe.tabIndex=y.props.tabIndex||"-1"),oe&&(pe.onEnter=(0,u.A)(function(){ee(!1)},y.props.onEnter),pe.onExited=(0,u.A)(function(){ee(!0),A&&fe()},y.props.onExited)),o.createElement(c.A,{ref:de,container:w,disablePortal:D},o.createElement("div",(0,i.A)({ref:ie,onKeyDown:function(e){"Escape"===e.key&&ue()&&(Y&&Y(e),L||(e.stopPropagation(),G&&G(e,"escapeKeyDown")))},role:"presentation"},Z,{style:(0,i.A)({},he.root,!X&&J?he.hidden:{},Z.style)}),$?null:o.createElement(m,(0,i.A)({open:X,onClick:function(e){e.target===e.currentTarget&&(q&&q(e),!T&&G&&G(e,"backdropClick"))}},v)),o.createElement(C,{disableEnforceFocus:P,disableAutoFocus:E,disableRestoreFocus:N,getDoc:ae,isEnabled:ue,open:X},o.cloneElement(y,pe))))})},4321:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(39850),i=n(89575),o=n(95478),a=n(36274),s=n(7031),l=o.forwardRef(function(e,t){var n=e.classes,s=e.className,l=e.component,c=void 0===l?"div":l,u=e.square,d=void 0!==u&&u,f=e.elevation,h=void 0===f?1:f,p=e.variant,g=void 0===p?"elevation":p,m=(0,r.A)(e,["classes","className","component","square","elevation","variant"]);return o.createElement(c,(0,i.A)({className:(0,a.A)(n.root,s,"outlined"===g?n.outlined:n["elevation".concat(h)],!d&&n.rounded),ref:t},m))});const c=(0,s.A)(function(e){var t={};return e.shadows.forEach(function(e,n){t["elevation".concat(n)]={boxShadow:e}}),(0,i.A)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)},{name:"MuiPaper"})(l)},41883:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(95478),i=n(40484),o=n(93371),a=n(19878),s="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;const l=r.forwardRef(function(e,t){var n=e.children,l=e.container,c=e.disablePortal,u=void 0!==c&&c,d=e.onRendered,f=r.useState(null),h=f[0],p=f[1],g=(0,a.A)(r.isValidElement(n)?n.ref:null,t);return s(function(){u||p(function(e){return e="function"==typeof e?e():e,i.findDOMNode(e)}(l)||document.body)},[l,u]),s(function(){if(h&&!u)return(0,o.A)(t,h),function(){(0,o.A)(t,null)}},[t,h,u]),s(function(){d&&(h||u)&&d()},[d,h,u]),u?r.isValidElement(n)?r.cloneElement(n,{ref:g}):n:h?i.createPortal(n,h):h})},89040:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>Le});var r=n(89575),i=n(90689),o=n(39850),a=n(24586),s=n(95478),l=n(40484),c=n(36274),u=n(16328),d=n(268),f=n(7031),h=n(11192),p=n(33145),g="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,m=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(g&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}(),v=g&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},m))}};function y(e){return e&&"[object Function]"==={}.toString.call(e)}function b(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function x(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function A(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=b(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:A(x(e))}function w(e){return e&&e.referenceNode?e.referenceNode:e}var k=g&&!(!window.MSInputMethodContext||!document.documentMode),C=g&&/MSIE 10/.test(navigator.userAgent);function E(e){return 11===e?k:10===e?C:k||C}function S(e){if(!e)return document.documentElement;for(var t=E(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===b(n,"position")?S(n):n:e?e.ownerDocument.documentElement:document.documentElement}function M(e){return null!==e.parentNode?M(e.parentNode):e}function _(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a,s,l=o.commonAncestorContainer;if(e!==l&&t!==l||r.contains(i))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&S(a.firstElementChild)!==a?S(l):l;var c=M(e);return c.host?_(c.host,t):_(e,M(t).host)}function T(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function I(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function P(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],E(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function R(e){var t=e.body,n=e.documentElement,r=E(10)&&getComputedStyle(n);return{height:P("Height",t,n,r),width:P("Width",t,n,r)}}var L=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),j=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},D=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function O(e){return D({},e,{right:e.left+e.width,bottom:e.top+e.height})}function N(e){var t={};try{if(E(10)){t=e.getBoundingClientRect();var n=T(e,"top"),r=T(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?R(e.ownerDocument):{},a=o.width||e.clientWidth||i.width,s=o.height||e.clientHeight||i.height,l=e.offsetWidth-a,c=e.offsetHeight-s;if(l||c){var u=b(e);l-=I(u,"x"),c-=I(u,"y"),i.width-=l,i.height-=c}return O(i)}function F(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=E(10),i="HTML"===t.nodeName,o=N(e),a=N(t),s=A(e),l=b(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=O({top:o.top-a.top-c,left:o.left-a.left-u,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!r&&i){var f=parseFloat(l.marginTop),h=parseFloat(l.marginLeft);d.top-=c-f,d.bottom-=c-f,d.left-=u-h,d.right-=u-h,d.marginTop=f,d.marginLeft=h}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=T(t,"top"),i=T(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}(d,t)),d}function z(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===b(e,"position"))return!0;var n=x(e);return!!n&&z(n)}function B(e){if(!e||!e.parentElement||E())return document.documentElement;for(var t=e.parentElement;t&&"none"===b(t,"transform");)t=t.parentElement;return t||document.documentElement}function $(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?B(e):_(e,w(t));if("viewport"===r)o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=F(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:T(n),s=t?0:T(n,"left");return O({top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o})}(a,i);else{var s=void 0;"scrollParent"===r?"BODY"===(s=A(x(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=F(s,a,i);if("HTML"!==s.nodeName||z(a))o=l;else{var c=R(e.ownerDocument),u=c.height,d=c.width;o.top+=l.top-l.marginTop,o.bottom=u+l.top,o.left+=l.left-l.marginLeft,o.right=d+l.left}}var f="number"==typeof(n=n||0);return o.left+=f?n:n.left||0,o.top+=f?n:n.top||0,o.right-=f?n:n.right||0,o.bottom-=f?n:n.bottom||0,o}function H(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=$(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map(function(e){return D({key:e},s[e],{area:(t=s[e],t.width*t.height)});var t}).sort(function(e,t){return t.area-e.area}),c=l.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function U(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return F(n,r?B(t):_(t,w(n)),r)}function W(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function V(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function q(e,t,n){n=n.split("-")[0];var r=W(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return i[a]=t[a]+t[l]/2-r[l]/2,i[s]=n===s?t[s]-r[c]:t[V(s)],i}function G(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Y(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=G(e,function(e){return e[t]===n});return e.indexOf(r)}(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&y(n)&&(t.offsets.popper=O(t.offsets.popper),t.offsets.reference=O(t.offsets.reference),t=n(t,e))}),t}function K(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=U(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=H(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=q(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Y(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function X(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function Z(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if(void 0!==document.body.style[o])return o}return null}function Q(){return this.state.isDestroyed=!0,X(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Z("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function J(e){var t=e.ownerDocument;return t?t.defaultView:window}function ee(e,t,n,r){var i="BODY"===e.nodeName,o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||ee(A(o.parentNode),t,n,r),r.push(o)}function te(e,t,n,r){n.updateBound=r,J(e).addEventListener("resize",n.updateBound,{passive:!0});var i=A(e);return ee(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function ne(){this.state.eventsEnabled||(this.state=te(this.reference,this.options,this.state,this.scheduleUpdate))}function re(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,J(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function ie(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function oe(e,t){Object.keys(t).forEach(function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&ie(t[n])&&(r="px"),e.style[n]=t[n]+r})}var ae=g&&/Firefox/i.test(navigator.userAgent);function se(e,t,n){var r=G(e,function(e){return e.name===t}),i=!!r&&e.some(function(e){return e.name===n&&e.enabled&&e.order<r.order});if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}var le=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ce=le.slice(3);function ue(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ce.indexOf(e),r=ce.slice(n+1).concat(ce.slice(0,n));return t?r.reverse():r}var de={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:j({},l,o[l]),end:j({},l,o[l]+o[c]-a[c])};e.offsets.popper=D({},a,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n,r=t.offset,i=e.placement,o=e.offsets,a=o.popper,s=o.reference,l=i.split("-")[0];return n=ie(+r)?[+r,0]:function(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=a.indexOf(G(a,function(e){return-1!==e.search(/,|\s/)}));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(c=c.map(function(e,r){var i=(1===r?!o:o)?"height":"width",a=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];return o?0===a.indexOf("%")?O("%p"===a?n:r)[t]/100*o:"vh"===a||"vw"===a?("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o:o:e}(e,i,t,n)})})).forEach(function(e,t){e.forEach(function(n,r){ie(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))})}),i}(r,a,s,l),"left"===l?(a.top+=n[0],a.left-=n[1]):"right"===l?(a.top+=n[0],a.left+=n[1]):"top"===l?(a.left+=n[0],a.top-=n[1]):"bottom"===l&&(a.left+=n[0],a.top+=n[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||S(e.instance.popper);e.instance.reference===n&&(n=S(n));var r=Z("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=$(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),j({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),j({},n,r)}};return c.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=D({},u,d[t](e))}),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<o(r[l])&&(e.offsets.popper[l]=o(r[l])-n[c]),n[l]>o(r[s])&&(e.offsets.popper[l]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!se(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,s=o.reference,l=-1!==["left","right"].indexOf(i),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),f=l?"left":"top",h=l?"bottom":"right",p=W(r)[c];s[h]-p<a[d]&&(e.offsets.popper[d]-=a[d]-(s[h]-p)),s[d]+p>a[h]&&(e.offsets.popper[d]+=s[d]+p-a[h]),e.offsets.popper=O(e.offsets.popper);var g=s[d]+s[c]/2-p/2,m=b(e.instance.popper),v=parseFloat(m["margin"+u]),y=parseFloat(m["border"+u+"Width"]),x=g-e.offsets.popper[d]-v-y;return x=Math.max(Math.min(a[c]-p,x),0),e.arrowElement=r,e.offsets.arrow=(j(n={},d,Math.round(x)),j(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(X(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=$(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=V(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case"flip":a=[r,i];break;case"clockwise":a=ue(r);break;case"counterclockwise":a=ue(r,!0);break;default:a=t.behavior}return a.forEach(function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],i=V(r);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,f="left"===r&&d(c.right)>d(u.left)||"right"===r&&d(c.left)<d(u.right)||"top"===r&&d(c.bottom)>d(u.top)||"bottom"===r&&d(c.top)<d(u.bottom),h=d(c.left)<d(n.left),p=d(c.right)>d(n.right),g=d(c.top)<d(n.top),m=d(c.bottom)>d(n.bottom),v="left"===r&&h||"right"===r&&p||"top"===r&&g||"bottom"===r&&m,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===o&&h||y&&"end"===o&&p||!y&&"start"===o&&g||!y&&"end"===o&&m),x=!!t.flipVariationsByContent&&(y&&"start"===o&&p||y&&"end"===o&&h||!y&&"start"===o&&m||!y&&"end"===o&&g),A=b||x;(f||v||A)&&(e.flipped=!0,(f||v)&&(r=a[l+1]),A&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=D({},e.offsets.popper,q(e.instance.popper,e.offsets.reference,e.placement)),e=Y(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=V(t),e.offsets.popper=O(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!se(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=G(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=G(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a,s,l=void 0!==o?o:t.gpuAcceleration,c=S(e.instance.popper),u=N(c),d={position:i.position},f=function(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(e){return e},l=o(i.width),c=o(r.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),f=t?u||d||l%2==c%2?o:a:s,h=t?o:s;return{left:f(l%2==1&&c%2==1&&!d&&t?r.left-1:r.left),top:h(r.top),bottom:h(r.bottom),right:f(r.right)}}(e,window.devicePixelRatio<2||!ae),h="bottom"===n?"top":"bottom",p="right"===r?"left":"right",g=Z("transform");if(s="bottom"===h?"HTML"===c.nodeName?-c.clientHeight+f.bottom:-u.height+f.bottom:f.top,a="right"===p?"HTML"===c.nodeName?-c.clientWidth+f.right:-u.width+f.right:f.left,l&&g)d[g]="translate3d("+a+"px, "+s+"px, 0)",d[h]=0,d[p]=0,d.willChange="transform";else{var m="bottom"===h?-1:1,v="right"===p?-1:1;d[h]=s*m,d[p]=a*v,d.willChange=h+", "+p}var y={"x-placement":e.placement};return e.attributes=D({},y,e.attributes),e.styles=D({},d,e.styles),e.arrowStyles=D({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return oe(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach(function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)}),e.arrowElement&&Object.keys(e.arrowStyles).length&&oe(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,i){var o=U(i,t,e,n.positionFixed),a=H(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),oe(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},fe={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:de},he=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=v(this.update.bind(this)),this.options=D({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(D({},e.Defaults.modifiers,i.modifiers)).forEach(function(t){r.options.modifiers[t]=D({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return D({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&y(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return L(e,[{key:"update",value:function(){return K.call(this)}},{key:"destroy",value:function(){return Q.call(this)}},{key:"enableEventListeners",value:function(){return ne.call(this)}},{key:"disableEventListeners",value:function(){return re.call(this)}}]),e}();he.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,he.placements=le,he.Defaults=fe;const pe=he;var ge=n(11942),me=n(41883),ve=n(37260),ye=n(93371),be=n(19878);function xe(e){return"function"==typeof e?e():e}var Ae="undefined"!=typeof window?s.useLayoutEffect:s.useEffect,we={},ke=s.forwardRef(function(e,t){var n=e.anchorEl,i=e.children,a=e.container,l=e.disablePortal,c=void 0!==l&&l,u=e.keepMounted,d=void 0!==u&&u,f=e.modifiers,h=e.open,p=e.placement,g=void 0===p?"bottom":p,m=e.popperOptions,v=void 0===m?we:m,y=e.popperRef,b=e.style,x=e.transition,A=void 0!==x&&x,w=(0,o.A)(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),k=s.useRef(null),C=(0,be.A)(k,t),E=s.useRef(null),S=(0,be.A)(E,y),M=s.useRef(S);Ae(function(){M.current=S},[S]),s.useImperativeHandle(y,function(){return E.current},[]);var _=s.useState(!0),T=_[0],I=_[1],P=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(g,(0,ge.useTheme)()),R=s.useState(P),L=R[0],j=R[1];s.useEffect(function(){E.current&&E.current.update()});var D=s.useCallback(function(){if(k.current&&n&&h){E.current&&(E.current.destroy(),M.current(null));var e=function(e){j(e.placement)},t=(xe(n),new pe(xe(n),k.current,(0,r.A)({placement:P},v,{modifiers:(0,r.A)({},c?{}:{preventOverflow:{boundariesElement:"window"}},f,v.modifiers),onCreate:(0,ve.A)(e,v.onCreate),onUpdate:(0,ve.A)(e,v.onUpdate)})));M.current(t)}},[n,c,f,h,P,v]),O=s.useCallback(function(e){(0,ye.A)(C,e),D()},[C,D]),N=function(){E.current&&(E.current.destroy(),M.current(null))};if(s.useEffect(function(){return function(){N()}},[]),s.useEffect(function(){h||A||N()},[h,A]),!d&&!h&&(!A||T))return null;var F={placement:L};return A&&(F.TransitionProps={in:h,onEnter:function(){I(!1)},onExited:function(){I(!0),N()}}),s.createElement(me.A,{disablePortal:c,container:a},s.createElement("div",(0,r.A)({ref:O,role:"tooltip"},w,{style:(0,r.A)({position:"fixed",top:0,left:0,display:h||!d||A?null:"none"},b)}),"function"==typeof i?i(F):i))});const Ce=ke;var Ee=n(18955),Se=n(29409),Me=n(45065),_e=n(54917);function Te(e){return Math.round(1e5*e)/1e5}var Ie=!1,Pe=null,Re=s.forwardRef(function(e,t){var n=e.arrow,a=void 0!==n&&n,d=e.children,f=e.classes,g=e.disableFocusListener,m=void 0!==g&&g,v=e.disableHoverListener,y=void 0!==v&&v,b=e.disableTouchListener,x=void 0!==b&&b,A=e.enterDelay,w=void 0===A?100:A,k=e.enterNextDelay,C=void 0===k?0:k,E=e.enterTouchDelay,S=void 0===E?700:E,M=e.id,_=e.interactive,T=void 0!==_&&_,I=e.leaveDelay,P=void 0===I?0:I,R=e.leaveTouchDelay,L=void 0===R?1500:R,j=e.onClose,D=e.onOpen,O=e.open,N=e.placement,F=void 0===N?"bottom":N,z=e.PopperComponent,B=void 0===z?Ce:z,$=e.PopperProps,H=e.title,U=e.TransitionComponent,W=void 0===U?p.A:U,V=e.TransitionProps,q=(0,o.A)(e,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"]),G=(0,_e.A)(),Y=s.useState(),K=Y[0],X=Y[1],Z=s.useState(null),Q=Z[0],J=Z[1],ee=s.useRef(!1),te=s.useRef(),ne=s.useRef(),re=s.useRef(),ie=s.useRef(),oe=(0,Me.A)({controlled:O,default:!1,name:"Tooltip",state:"open"}),ae=(0,i.A)(oe,2),se=ae[0],le=ae[1],ce=se,ue=(0,Ee.A)(M);s.useEffect(function(){return function(){clearTimeout(te.current),clearTimeout(ne.current),clearTimeout(re.current),clearTimeout(ie.current)}},[]);var de=function(e){clearTimeout(Pe),Ie=!0,le(!0),D&&D(e)},fe=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=d.props;"mouseover"===t.type&&n.onMouseOver&&e&&n.onMouseOver(t),ee.current&&"touchstart"!==t.type||(K&&K.removeAttribute("title"),clearTimeout(ne.current),clearTimeout(re.current),w||Ie&&C?(t.persist(),ne.current=setTimeout(function(){de(t)},Ie?C:w)):de(t))}},he=(0,Se.A)(),pe=he.isFocusVisible,ge=he.onBlurVisible,me=he.ref,ve=s.useState(!1),xe=ve[0],Ae=ve[1],we=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){K||X(t.currentTarget),pe(t)&&(Ae(!0),fe()(t));var n=d.props;n.onFocus&&e&&n.onFocus(t)}},ke=function(e){clearTimeout(Pe),Pe=setTimeout(function(){Ie=!1},800+P),le(!1),j&&j(e),clearTimeout(te.current),te.current=setTimeout(function(){ee.current=!1},G.transitions.duration.shortest)},Te=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=d.props;"blur"===t.type&&(n.onBlur&&e&&n.onBlur(t),xe&&(Ae(!1),ge())),"mouseleave"===t.type&&n.onMouseLeave&&t.currentTarget===K&&n.onMouseLeave(t),clearTimeout(ne.current),clearTimeout(re.current),t.persist(),re.current=setTimeout(function(){ke(t)},P)}},Re=function(e){ee.current=!0;var t=d.props;t.onTouchStart&&t.onTouchStart(e)},Le=(0,be.A)(X,t),je=(0,be.A)(me,Le),De=s.useCallback(function(e){(0,ye.A)(je,l.findDOMNode(e))},[je]),Oe=(0,be.A)(d.ref,De);""===H&&(ce=!1);var Ne=!ce&&!y,Fe=(0,r.A)({"aria-describedby":ce?ue:null,title:Ne&&"string"==typeof H?H:null},q,d.props,{className:(0,c.A)(q.className,d.props.className),onTouchStart:Re,ref:Oe}),ze={};x||(Fe.onTouchStart=function(e){Re(e),clearTimeout(re.current),clearTimeout(te.current),clearTimeout(ie.current),e.persist(),ie.current=setTimeout(function(){fe()(e)},S)},Fe.onTouchEnd=function(e){d.props.onTouchEnd&&d.props.onTouchEnd(e),clearTimeout(ie.current),clearTimeout(re.current),e.persist(),re.current=setTimeout(function(){ke(e)},L)}),y||(Fe.onMouseOver=fe(),Fe.onMouseLeave=Te(),T&&(ze.onMouseOver=fe(!1),ze.onMouseLeave=Te(!1))),m||(Fe.onFocus=we(),Fe.onBlur=Te(),T&&(ze.onFocus=we(!1),ze.onBlur=Te(!1)));var Be=s.useMemo(function(){return(0,u.A)({popperOptions:{modifiers:{arrow:{enabled:Boolean(Q),element:Q}}}},$)},[Q,$]);return s.createElement(s.Fragment,null,s.cloneElement(d,Fe),s.createElement(B,(0,r.A)({className:(0,c.A)(f.popper,T&&f.popperInteractive,a&&f.popperArrow),placement:F,anchorEl:K,open:!!K&&ce,id:Fe["aria-describedby"],transition:!0},ze,Be),function(e){var t=e.placement,n=e.TransitionProps;return s.createElement(W,(0,r.A)({timeout:G.transitions.duration.shorter},n,V),s.createElement("div",{className:(0,c.A)(f.tooltip,f["tooltipPlacement".concat((0,h.A)(t.split("-")[0]))],ee.current&&f.touch,a&&f.tooltipArrow)},H,a?s.createElement("span",{className:f.arrow,ref:J}):null))}))});const Le=(0,f.A)(function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none"},popperInteractive:{pointerEvents:"auto"},popperArrow:{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}},tooltip:{backgroundColor:(0,d.X4)(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(Te(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},tooltipArrow:{position:"relative",margin:"0"},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:(0,d.X4)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(Te(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:(0,a.A)({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:(0,a.A)({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:(0,a.A)({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:(0,a.A)({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}},{name:"MuiTooltip",flip:!1})(Re)},72501:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(89575),i=n(39850),o=n(95478),a=n(36274),s=n(7031),l=n(11192),c={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},u=o.forwardRef(function(e,t){var n=e.align,s=void 0===n?"inherit":n,u=e.classes,d=e.className,f=e.color,h=void 0===f?"initial":f,p=e.component,g=e.display,m=void 0===g?"initial":g,v=e.gutterBottom,y=void 0!==v&&v,b=e.noWrap,x=void 0!==b&&b,A=e.paragraph,w=void 0!==A&&A,k=e.variant,C=void 0===k?"body1":k,E=e.variantMapping,S=void 0===E?c:E,M=(0,i.A)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),_=p||(w?"p":S[C]||c[C])||"span";return o.createElement(_,(0,r.A)({className:(0,a.A)(u.root,d,"inherit"!==C&&u[C],"initial"!==h&&u["color".concat((0,l.A)(h))],x&&u.noWrap,y&&u.gutterBottom,w&&u.paragraph,"inherit"!==s&&u["align".concat((0,l.A)(s))],"initial"!==m&&u["display".concat((0,l.A)(m))]),ref:t},M))});const d=(0,s.A)(function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}},{name:"MuiTypography"})(u)},41188:(e,t,n)=>{"use strict";n.d(t,{c:()=>i,q:()=>r});var r=function(e){return e.scrollTop};function i(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}},11192:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(87447);function i(e){if("string"!=typeof e)throw new Error((0,r.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},37260:(e,t,n)=>{"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}},function(){})}n.d(t,{A:()=>r})},58064:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(89575),i=n(95478),o=n.n(i),a=n(39850),s=n(36274),l=n(7031),c=n(11192),u=i.forwardRef(function(e,t){var n=e.children,o=e.classes,l=e.className,u=e.color,d=void 0===u?"inherit":u,f=e.component,h=void 0===f?"svg":f,p=e.fontSize,g=void 0===p?"medium":p,m=e.htmlColor,v=e.titleAccess,y=e.viewBox,b=void 0===y?"0 0 24 24":y,x=(0,a.A)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return i.createElement(h,(0,r.A)({className:(0,s.A)(o.root,l,"inherit"!==d&&o["color".concat((0,c.A)(d))],"default"!==g&&"medium"!==g&&o["fontSize".concat((0,c.A)(g))]),focusable:"false",viewBox:b,color:m,"aria-hidden":!v||void 0,role:v?"img":void 0,ref:t},x),n,v?i.createElement("title",null,v):null)});u.muiName="SvgIcon";const d=(0,l.A)(function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}},{name:"MuiSvgIcon"})(u);function f(e,t){var n=function(t,n){return o().createElement(d,(0,r.A)({ref:n},t),e)};return n.muiName=d.muiName,o().memo(o().forwardRef(n))}},2589:(e,t,n)=>{"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=this;clearTimeout(t),t=setTimeout(function(){e.apply(a,i)},n)}return r.clear=function(){clearTimeout(t)},r}n.d(t,{A:()=>r})},18977:(e,t,n)=>{"use strict";function r(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}n.d(t,{A:()=>r})},50118:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>r.A,createChainedFunction:()=>i.A,createSvgIcon:()=>o.A,debounce:()=>a.A,deprecatedPropType:()=>s,isMuiElement:()=>l.A,ownerDocument:()=>c.A,ownerWindow:()=>u.A,requirePropFactory:()=>d,setRef:()=>f.A,unstable_useId:()=>v.A,unsupportedProp:()=>h,useControlled:()=>p.A,useEventCallback:()=>g.A,useForkRef:()=>m.A,useIsFocusVisible:()=>y.A});var r=n(11192),i=n(37260),o=n(58064),a=n(2589);function s(e,t){return function(){return null}}var l=n(73525),c=n(76446),u=n(82431);function d(e){return function(){return null}}var f=n(93371);function h(e,t,n,r,i){return null}var p=n(45065),g=n(70020),m=n(19878),v=n(18955),y=n(29409)},73525:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(95478);function i(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},76446:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{A:()=>r})},82431:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(76446);function i(e){return(0,r.A)(e).defaultView||window}},93371:(e,t,n)=>{"use strict";function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,{A:()=>r})},18955:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(95478);function i(e){var t=r.useState(e),n=t[0],i=t[1],o=e||n;return r.useEffect(function(){null==n&&i("mui-".concat(Math.round(1e5*Math.random())))},[n]),o}},45065:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(95478);function i(e){var t=e.controlled,n=e.default,i=(e.name,e.state,r.useRef(void 0!==t).current),o=r.useState(n),a=o[0],s=o[1];return[i?t:a,r.useCallback(function(e){i||s(e)},[])]}},70020:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(95478),i="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function o(e){var t=r.useRef(e);return i(function(){t.current=e}),r.useCallback(function(){return t.current.apply(void 0,arguments)},[])}},19878:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(95478),i=n(93371);function o(e,t){return r.useMemo(function(){return null==e&&null==t?null:function(n){(0,i.A)(e,n),(0,i.A)(t,n)}},[e,t])}},29409:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(95478),i=n(40484),o=!0,a=!1,s=null,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function u(){o=!1}function d(){"hidden"===this.visibilityState&&a&&(o=!0)}function f(e){var t,n,r,i=e.target;try{return i.matches(":focus-visible")}catch(e){}return o||(n=(t=i).type,!("INPUT"!==(r=t.tagName)||!l[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function h(){a=!0,window.clearTimeout(s),s=window.setTimeout(function(){a=!1},100)}function p(){return{isFocusVisible:f,onBlurVisible:h,ref:r.useCallback(function(e){var t,n=i.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",d,!0))},[])}}},36274:(e,t,n)=>{"use strict";function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}n.d(t,{A:()=>i});const i=function(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}},52235:(e,t,n)=>{"use strict";var r=n(4293),i=n(78920);t.A=void 0;var o=i(n(95478)),a=(0,r(n(74044)).default)(o.createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");t.A=a},9181:(e,t,n)=>{"use strict";var r=n(4293),i=n(78920);t.A=void 0;var o=i(n(95478)),a=(0,r(n(74044)).default)(o.createElement("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline");t.A=a},6924:(e,t,n)=>{"use strict";var r=n(4293),i=n(78920);t.A=void 0;var o=i(n(95478)),a=(0,r(n(74044)).default)(o.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");t.A=a},99594:(e,t,n)=>{"use strict";var r=n(4293),i=n(78920);t.A=void 0;var o=i(n(95478)),a=(0,r(n(74044)).default)(o.createElement("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4l6 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.A=a},39330:(e,t,n)=>{"use strict";var r=n(4293),i=n(78920);t.A=void 0;var o=i(n(95478)),a=(0,r(n(74044)).default)(o.createElement("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.A=a},9684:(e,t,n)=>{"use strict";var r=n(4293),i=n(78920);t.A=void 0;var o=i(n(95478)),a=(0,r(n(74044)).default)(o.createElement("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}),"Settings");t.A=a},74044:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(50118)},64811:(e,t,n)=>{"use strict";var r=n(4293);t.A=void 0;var i=r(n(80369)),o=n(31085);t.A=(0,i.default)((0,o.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add")},50232:(e,t,n)=>{"use strict";var r=n(4293);t.A=void 0;var i=r(n(80369)),o=n(31085);t.A=(0,i.default)((0,o.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward")},27732:(e,t,n)=>{"use strict";var r=n(4293);t.A=void 0;var i=r(n(80369)),o=n(31085);t.A=(0,i.default)((0,o.jsx)("path",{d:"M14 2H4c-1.11 0-2 .9-2 2v10h2V4h10zm4 4H8c-1.11 0-2 .9-2 2v10h2V8h10zm2 4h-8c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2h8c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2"}),"AutoAwesomeMotion")},13295:(e,t,n)=>{"use strict";var r=n(4293);t.A=void 0;var i=r(n(80369)),o=n(31085);t.A=(0,i.default)((0,o.jsx)("path",{d:"M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkModeOutlined")},3629:(e,t,n)=>{"use strict";var r=n(4293);t.A=void 0;var i=r(n(80369)),o=n(31085);t.A=(0,i.default)((0,o.jsx)("path",{d:"M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11"}),"Extension")},97035:(e,t,n)=>{"use strict";var r=n(4293);t.A=void 0;var i=r(n(80369)),o=n(31085);t.A=(0,i.default)([(0,o.jsx)("path",{d:"M3 6H1v13c0 1.1.9 2 2 2h17v-2H3z"},"0"),(0,o.jsx)("path",{d:"M21 4h-7l-2-2H7c-1.1 0-1.99.9-1.99 2L5 15c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2"},"1")],"FolderCopy")},49915:(e,t,n)=>{"use strict";var r=n(4293);t.A=void 0;var i=r(n(80369)),o=n(31085);t.A=(0,i.default)((0,o.jsx)("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"}),"HelpOutline")},97522:(e,t,n)=>{"use strict";var r=n(4293);t.A=void 0;var i=r(n(80369)),o=n(31085);t.A=(0,i.default)([(0,o.jsx)("path",{d:"M21 8c-1.45 0-2.26 1.44-1.93 2.51l-3.55 3.56c-.3-.09-.74-.09-1.04 0l-2.55-2.55C12.27 10.45 11.46 9 10 9c-1.45 0-2.27 1.44-1.93 2.52l-4.56 4.55C2.44 15.74 1 16.55 1 18c0 1.1.9 2 2 2 1.45 0 2.26-1.44 1.93-2.51l4.55-4.56c.3.09.74.09 1.04 0l2.55 2.55C12.73 16.55 13.54 18 15 18c1.45 0 2.27-1.44 1.93-2.52l3.56-3.55c1.07.33 2.51-.48 2.51-1.93 0-1.1-.9-2-2-2"},"0"),(0,o.jsx)("path",{d:"m15 9 .94-2.07L18 6l-2.06-.93L15 3l-.92 2.07L12 6l2.08.93zM3.5 11 4 9l2-.5L4 8l-.5-2L3 8l-2 .5L3 9z"},"1")],"InsightsRounded")},46121:(e,t,n)=>{"use strict";var r=n(4293);t.A=void 0;var i=r(n(80369)),o=n(31085);t.A=(0,i.default)((0,o.jsx)("path",{d:"M12 9c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightModeOutlined")},57368:(e,t,n)=>{"use strict";var r=n(4293);t.A=void 0;var i=r(n(80369)),o=n(31085);t.A=(0,i.default)((0,o.jsx)("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout")},52452:(e,t,n)=>{"use strict";var r=n(4293);t.A=void 0;var i=r(n(80369)),o=n(31085);t.A=(0,i.default)((0,o.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications")},55330:(e,t,n)=>{"use strict";var r=n(4293);t.A=void 0;var i=r(n(80369)),o=n(31085);t.A=(0,i.default)((0,o.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search")},94087:(e,t,n)=>{"use strict";var r=n(4293);t.A=void 0;var i=r(n(80369)),o=n(31085);t.A=(0,i.default)((0,o.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings")},61690:(e,t,n)=>{"use strict";var r=n(4293);t.A=void 0;var i=r(n(80369)),o=n(31085);t.A=(0,i.default)((0,o.jsx)("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2m0 15-5-2.18L7 18V5h10z"}),"TurnedInNot")},80369:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(17091)},76272:e=>{var t=.1,n="function"==typeof Float32Array;function r(e,t){return 1-3*t+3*e}function i(e,t){return 3*t-6*e}function o(e){return 3*e}function a(e,t,n){return((r(t,n)*e+i(t,n))*e+o(t))*e}function s(e,t,n){return 3*r(t,n)*e*e+2*i(t,n)*e+o(t)}function l(e){return e}e.exports=function(e,r,i,o){if(!(0<=e&&e<=1&&0<=i&&i<=1))throw new Error("bezier x values must be in [0, 1] range");if(e===r&&i===o)return l;for(var c=n?new Float32Array(11):new Array(11),u=0;u<11;++u)c[u]=a(u*t,e,i);return function(n){return 0===n?0:1===n?1:a(function(n){for(var r=0,o=1;10!==o&&c[o]<=n;++o)r+=t;--o;var l=r+(n-c[o])/(c[o+1]-c[o])*t,u=s(l,e,i);return u>=.001?function(e,t,n,r){for(var i=0;i<4;++i){var o=s(t,n,r);if(0===o)return t;t-=(a(t,n,r)-e)/o}return t}(n,l,e,i):0===u?l:function(e,t,n,r,i){var o,s,l=0;do{(o=a(s=t+(n-t)/2,r,i)-e)>0?n=s:t=s}while(Math.abs(o)>1e-7&&++l<10);return s}(n,r,r+t,e,i)}(n),r,o)}}},40200:(e,t,n)=>{"use strict";var r=n(71761),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,s,l,c,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))}),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},89710: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)},a=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)},s=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},l=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,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,u,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},15937:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,f=1;function h(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function p(){var e={line:d,column:f};return function(t){return t.position=new g(e),b(),t}}function g(e){this.start=e,this.end={line:d,column:f},this.source=l.source}g.prototype.content=e;var m=[];function v(t){var n=new Error(l.source+":"+d+":"+f+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=f,n.source=e,!l.silent)throw n;m.push(n)}function y(t){var n=t.exec(e);if(n){var r=n[0];return h(r),e=e.slice(r.length),n}}function b(){y(r)}function x(e){var t;for(e=e||[];t=A();)!1!==t&&e.push(t);return e}function A(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return v("End of comment missing");var r=e.slice(2,n-2);return f+=2,h(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}function w(){var e=p(),n=y(i);if(n){if(A(),!y(o))return v("property missing ':'");var r=y(a),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return y(s),l}}return b(),function(){var e,t=[];for(x(t);e=w();)!1!==e&&(t.push(e),x(t));return t}()}},85703:e=>{e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},86403:(e,t,n)=>{var r=n(62945),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},62945:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},12784:(e,t,n)=>{var r=n(41580),i=n(94495),o=n(6131),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,f,h,p=0,g=!1,m=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=c;return l=c=void 0,p=t,d=e.apply(r,n)}function b(e){var n=e-h;return void 0===h||n>=t||n<0||m&&e-p>=u}function x(){var e=i();if(b(e))return A(e);f=setTimeout(x,function(e){var n=t-(e-h);return m?s(n,u-(e-p)):n}(e))}function A(e){return f=void 0,v&&l?y(e):(l=c=void 0,d)}function w(){var e=i(),n=b(e);if(l=arguments,c=this,h=e,n){if(void 0===f)return function(e){return p=e,f=setTimeout(x,t),g?y(e):d}(h);if(m)return clearTimeout(f),f=setTimeout(x,t),y(h)}return void 0===f&&(f=setTimeout(x,t)),d}return t=o(t)||0,r(n)&&(g=!!n.leading,u=(m="maxWait"in n)?a(o(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),w.cancel=function(){void 0!==f&&clearTimeout(f),p=0,l=h=c=f=void 0},w.flush=function(){return void 0===f?d:A(i())},w}},45250:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=32,c=128,u=1/0,d=9007199254740991,f=NaN,h=4294967295,p=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],g="[object Arguments]",m="[object Array]",v="[object Boolean]",y="[object Date]",b="[object Error]",x="[object Function]",A="[object GeneratorFunction]",w="[object Map]",k="[object Number]",C="[object Object]",E="[object Promise]",S="[object RegExp]",M="[object Set]",_="[object String]",T="[object Symbol]",I="[object WeakMap]",P="[object ArrayBuffer]",R="[object DataView]",L="[object Float32Array]",j="[object Float64Array]",D="[object Int8Array]",O="[object Int16Array]",N="[object Int32Array]",F="[object Uint8Array]",z="[object Uint8ClampedArray]",B="[object Uint16Array]",$="[object Uint32Array]",H=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,G=RegExp(V.source),Y=RegExp(q.source),K=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,ue=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,xe=/['\n\r\u2028\u2029\\]/g,Ae="\\ud800-\\udfff",we="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",Ce="a-z\\xdf-\\xf6\\xf8-\\xff",Ee="A-Z\\xc0-\\xd6\\xd8-\\xde",Se="\\ufe0e\\ufe0f",Me="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",_e="["+Ae+"]",Te="["+Me+"]",Ie="["+we+"]",Pe="\\d+",Re="["+ke+"]",Le="["+Ce+"]",je="[^"+Ae+Me+Pe+ke+Ce+Ee+"]",De="\\ud83c[\\udffb-\\udfff]",Oe="[^"+Ae+"]",Ne="(?:\\ud83c[\\udde6-\\uddff]){2}",Fe="[\\ud800-\\udbff][\\udc00-\\udfff]",ze="["+Ee+"]",Be="\\u200d",$e="(?:"+Le+"|"+je+")",He="(?:"+ze+"|"+je+")",Ue="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ve="(?:"+Ie+"|"+De+")?",qe="["+Se+"]?",Ge=qe+Ve+"(?:"+Be+"(?:"+[Oe,Ne,Fe].join("|")+")"+qe+Ve+")*",Ye="(?:"+[Re,Ne,Fe].join("|")+")"+Ge,Ke="(?:"+[Oe+Ie+"?",Ie,Ne,Fe,_e].join("|")+")",Xe=RegExp("['’]","g"),Ze=RegExp(Ie,"g"),Qe=RegExp(De+"(?="+De+")|"+Ke+Ge,"g"),Je=RegExp([ze+"?"+Le+"+"+Ue+"(?="+[Te,ze,"$"].join("|")+")",He+"+"+We+"(?="+[Te,ze+$e,"$"].join("|")+")",ze+"?"+$e+"+"+Ue,ze+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pe,Ye].join("|"),"g"),et=RegExp("["+Be+Ae+we+Se+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,it={};it[L]=it[j]=it[D]=it[O]=it[N]=it[F]=it[z]=it[B]=it[$]=!0,it[g]=it[m]=it[P]=it[v]=it[R]=it[y]=it[b]=it[x]=it[w]=it[k]=it[C]=it[S]=it[M]=it[_]=it[I]=!1;var ot={};ot[g]=ot[m]=ot[P]=ot[R]=ot[v]=ot[y]=ot[L]=ot[j]=ot[D]=ot[O]=ot[N]=ot[w]=ot[k]=ot[C]=ot[S]=ot[M]=ot[_]=ot[T]=ot[F]=ot[z]=ot[B]=ot[$]=!0,ot[b]=ot[x]=ot[I]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,lt=parseInt,ct="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ut="object"==typeof self&&self&&self.Object===Object&&self,dt=ct||ut||Function("return this")(),ft=t&&!t.nodeType&&t,ht=ft&&e&&!e.nodeType&&e,pt=ht&&ht.exports===ft,gt=pt&&ct.process,mt=function(){try{return ht&&ht.require&&ht.require("util").types||gt&&gt.binding&&gt.binding("util")}catch(e){}}(),vt=mt&&mt.isArrayBuffer,yt=mt&&mt.isDate,bt=mt&&mt.isMap,xt=mt&&mt.isRegExp,At=mt&&mt.isSet,wt=mt&&mt.isTypedArray;function kt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ct(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function Et(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function St(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Mt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function _t(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function Tt(e,t){return!(null==e||!e.length)&&zt(e,t,0)>-1}function It(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Pt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Rt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Lt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function jt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Dt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Ot=Ut("length");function Nt(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function Ft(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function zt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Ft(e,$t,n)}function Bt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function $t(e){return e!=e}function Ht(e,t){var n=null==e?0:e.length;return n?qt(e,t)/n:f}function Ut(e){return function(t){return null==t?i:t[e]}}function Wt(e){return function(t){return null==e?i:e[t]}}function Vt(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}function qt(e,t){for(var n,r=-1,o=e.length;++r<o;){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function Gt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Yt(e){return e?e.slice(0,fn(e)+1).replace(re,""):e}function Kt(e){return function(t){return e(t)}}function Xt(e,t){return Pt(t,function(t){return e[t]})}function Zt(e,t){return e.has(t)}function Qt(e,t){for(var n=-1,r=e.length;++n<r&&zt(t,e[n],0)>-1;);return n}function Jt(e,t){for(var n=e.length;n--&&zt(t,e[n],0)>-1;);return n}var en=Wt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tn=Wt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function nn(e){return"\\"+at[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function an(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,o[i++]=n)}return o}function ln(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function cn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function un(e){return rn(e)?function(e){for(var t=Qe.lastIndex=0;Qe.test(e);)++t;return t}(e):Ot(e)}function dn(e){return rn(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.split("")}(e)}function fn(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var hn=Wt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),pn=function e(t){var n,r=(t=null==t?dt:pn.defaults(dt.Object(),t,pn.pick(dt,nt))).Array,ie=t.Date,Ae=t.Error,we=t.Function,ke=t.Math,Ce=t.Object,Ee=t.RegExp,Se=t.String,Me=t.TypeError,_e=r.prototype,Te=we.prototype,Ie=Ce.prototype,Pe=t["__core-js_shared__"],Re=Te.toString,Le=Ie.hasOwnProperty,je=0,De=(n=/[^.]+$/.exec(Pe&&Pe.keys&&Pe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Oe=Ie.toString,Ne=Re.call(Ce),Fe=dt._,ze=Ee("^"+Re.call(Le).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=pt?t.Buffer:i,$e=t.Symbol,He=t.Uint8Array,Ue=Be?Be.allocUnsafe:i,We=an(Ce.getPrototypeOf,Ce),Ve=Ce.create,qe=Ie.propertyIsEnumerable,Ge=_e.splice,Ye=$e?$e.isConcatSpreadable:i,Ke=$e?$e.iterator:i,Qe=$e?$e.toStringTag:i,et=function(){try{var e=lo(Ce,"defineProperty");return e({},"",{}),e}catch(e){}}(),at=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,ct=ie&&ie.now!==dt.Date.now&&ie.now,ut=t.setTimeout!==dt.setTimeout&&t.setTimeout,ft=ke.ceil,ht=ke.floor,gt=Ce.getOwnPropertySymbols,mt=Be?Be.isBuffer:i,Ot=t.isFinite,Wt=_e.join,gn=an(Ce.keys,Ce),mn=ke.max,vn=ke.min,yn=ie.now,bn=t.parseInt,xn=ke.random,An=_e.reverse,wn=lo(t,"DataView"),kn=lo(t,"Map"),Cn=lo(t,"Promise"),En=lo(t,"Set"),Sn=lo(t,"WeakMap"),Mn=lo(Ce,"create"),_n=Sn&&new Sn,Tn={},In=No(wn),Pn=No(kn),Rn=No(Cn),Ln=No(En),jn=No(Sn),Dn=$e?$e.prototype:i,On=Dn?Dn.valueOf:i,Nn=Dn?Dn.toString:i;function Fn(e){if(es(e)&&!Ua(e)&&!(e instanceof Hn)){if(e instanceof $n)return e;if(Le.call(e,"__wrapped__"))return Fo(e)}return new $n(e)}var zn=function(){function e(){}return function(t){if(!Ja(t))return{};if(Ve)return Ve(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Bn(){}function $n(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Hn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Un(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Vn;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new Wn(e);this.size=t.size}function Yn(e,t){var n=Ua(e),r=!n&&Ha(e),i=!n&&!r&&Ga(e),o=!n&&!r&&!i&&ls(e),a=n||r||i||o,s=a?Gt(e.length,Se):[],l=s.length;for(var c in e)!t&&!Le.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||mo(c,l))||s.push(c);return s}function Kn(e){var t=e.length;return t?e[Vr(0,t-1)]:i}function Xn(e,t){return Ro(Si(e),or(t,0,e.length))}function Zn(e){return Ro(Si(e))}function Qn(e,t,n){(n!==i&&!za(e[t],n)||n===i&&!(t in e))&&rr(e,t,n)}function Jn(e,t,n){var r=e[t];Le.call(e,t)&&za(r,n)&&(n!==i||t in e)||rr(e,t,n)}function er(e,t){for(var n=e.length;n--;)if(za(e[n][0],t))return n;return-1}function tr(e,t,n,r){return ur(e,function(e,i,o){t(r,e,n(e),o)}),r}function nr(e,t){return e&&Mi(t,Is(t),e)}function rr(e,t,n){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var n=-1,o=t.length,a=r(o),s=null==e;++n<o;)a[n]=s?i:Es(e,t[n]);return a}function or(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function ar(e,t,n,r,o,a){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!Ja(e))return e;var d=Ua(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Le.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return Si(e,s)}else{var f=fo(e),h=f==x||f==A;if(Ga(e))return xi(e,l);if(f==C||f==g||h&&!o){if(s=c||h?{}:po(e),!l)return c?function(e,t){return Mi(e,uo(e),t)}(e,function(e,t){return e&&Mi(t,Ps(t),e)}(s,e)):function(e,t){return Mi(e,co(e),t)}(e,nr(s,e))}else{if(!ot[f])return o?e:{};s=function(e,t,n){var r,i=e.constructor;switch(t){case P:return Ai(e);case v:case y:return new i(+e);case R:return function(e,t){var n=t?Ai(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case L:case j:case D:case O:case N:case F:case z:case B:case $:return wi(e,n);case w:return new i;case k:case _:return new i(e);case S:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case M:return new i;case T:return r=e,On?Ce(On.call(r)):{}}}(e,f,l)}}a||(a=new Gn);var p=a.get(e);if(p)return p;a.set(e,s),os(e)?e.forEach(function(r){s.add(ar(r,t,n,r,e,a))}):ts(e)&&e.forEach(function(r,i){s.set(i,ar(r,t,n,i,e,a))});var m=d?i:(u?c?to:eo:c?Ps:Is)(e);return Et(m||e,function(r,i){m&&(r=e[i=r]),Jn(s,i,ar(r,t,n,i,e,a))}),s}function sr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ce(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function lr(e,t,n){if("function"!=typeof e)throw new Me(o);return _o(function(){e.apply(i,n)},t)}function cr(e,t,n,r){var i=-1,o=Tt,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Pt(t,Kt(n))),r?(o=It,a=!1):t.length>=200&&(o=Zt,a=!1,t=new qn(t));e:for(;++i<s;){var u=e[i],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var f=c;f--;)if(t[f]===d)continue e;l.push(u)}else o(t,d,r)||l.push(u)}return l}Fn.templateSettings={escape:K,evaluate:X,interpolate:Z,variable:"",imports:{_:Fn}},Fn.prototype=Bn.prototype,Fn.prototype.constructor=Fn,$n.prototype=zn(Bn.prototype),$n.prototype.constructor=$n,Hn.prototype=zn(Bn.prototype),Hn.prototype.constructor=Hn,Un.prototype.clear=function(){this.__data__=Mn?Mn(null):{},this.size=0},Un.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Un.prototype.get=function(e){var t=this.__data__;if(Mn){var n=t[e];return n===a?i:n}return Le.call(t,e)?t[e]:i},Un.prototype.has=function(e){var t=this.__data__;return Mn?t[e]!==i:Le.call(t,e)},Un.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Mn&&t===i?a:t,this},Wn.prototype.clear=function(){this.__data__=[],this.size=0},Wn.prototype.delete=function(e){var t=this.__data__,n=er(t,e);return!(n<0||(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,0))},Wn.prototype.get=function(e){var t=this.__data__,n=er(t,e);return n<0?i:t[n][1]},Wn.prototype.has=function(e){return er(this.__data__,e)>-1},Wn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Vn.prototype.clear=function(){this.size=0,this.__data__={hash:new Un,map:new(kn||Wn),string:new Un}},Vn.prototype.delete=function(e){var t=ao(this,e).delete(e);return this.size-=t?1:0,t},Vn.prototype.get=function(e){return ao(this,e).get(e)},Vn.prototype.has=function(e){return ao(this,e).has(e)},Vn.prototype.set=function(e,t){var n=ao(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},qn.prototype.add=qn.prototype.push=function(e){return this.__data__.set(e,a),this},qn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new Wn,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Wn){var r=n.__data__;if(!kn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Vn(r)}return n.set(e,t),this.size=n.size,this};var ur=Ii(yr),dr=Ii(br,!0);function fr(e,t){var n=!0;return ur(e,function(e,r,i){return n=!!t(e,r,i)}),n}function hr(e,t,n){for(var r=-1,o=e.length;++r<o;){var a=e[r],s=t(a);if(null!=s&&(l===i?s==s&&!ss(s):n(s,l)))var l=s,c=a}return c}function pr(e,t){var n=[];return ur(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function gr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=go),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?gr(s,t-1,n,r,i):Rt(i,s):r||(i[i.length]=s)}return i}var mr=Pi(),vr=Pi(!0);function yr(e,t){return e&&mr(e,t,Is)}function br(e,t){return e&&vr(e,t,Is)}function xr(e,t){return _t(t,function(t){return Xa(e[t])})}function Ar(e,t){for(var n=0,r=(t=mi(t,e)).length;null!=e&&n<r;)e=e[Oo(t[n++])];return n&&n==r?e:i}function wr(e,t,n){var r=t(e);return Ua(e)?r:Rt(r,n(e))}function kr(e){return null==e?e===i?"[object Undefined]":"[object Null]":Qe&&Qe in Ce(e)?function(e){var t=Le.call(e,Qe),n=e[Qe];try{e[Qe]=i;var r=!0}catch(e){}var o=Oe.call(e);return r&&(t?e[Qe]=n:delete e[Qe]),o}(e):function(e){return Oe.call(e)}(e)}function Cr(e,t){return e>t}function Er(e,t){return null!=e&&Le.call(e,t)}function Sr(e,t){return null!=e&&t in Ce(e)}function Mr(e,t,n){for(var o=n?It:Tt,a=e[0].length,s=e.length,l=s,c=r(s),u=1/0,d=[];l--;){var f=e[l];l&&t&&(f=Pt(f,Kt(t))),u=vn(f.length,u),c[l]=!n&&(t||a>=120&&f.length>=120)?new qn(l&&f):i}f=e[0];var h=-1,p=c[0];e:for(;++h<a&&d.length<u;){var g=f[h],m=t?t(g):g;if(g=n||0!==g?g:0,!(p?Zt(p,m):o(d,m,n))){for(l=s;--l;){var v=c[l];if(!(v?Zt(v,m):o(e[l],m,n)))continue e}p&&p.push(m),d.push(g)}}return d}function _r(e,t,n){var r=null==(e=Eo(e,t=mi(t,e)))?e:e[Oo(Ko(t))];return null==r?i:kt(r,e,n)}function Tr(e){return es(e)&&kr(e)==g}function Ir(e,t,n,r,o){return e===t||(null==e||null==t||!es(e)&&!es(t)?e!=e&&t!=t:function(e,t,n,r,o,a){var s=Ua(e),l=Ua(t),c=s?m:fo(e),u=l?m:fo(t),d=(c=c==g?C:c)==C,f=(u=u==g?C:u)==C,h=c==u;if(h&&Ga(e)){if(!Ga(t))return!1;s=!0,d=!1}if(h&&!d)return a||(a=new Gn),s||ls(e)?Qi(e,t,n,r,o,a):function(e,t,n,r,i,o,a){switch(n){case R:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case P:return!(e.byteLength!=t.byteLength||!o(new He(e),new He(t)));case v:case y:case k:return za(+e,+t);case b:return e.name==t.name&&e.message==t.message;case S:case _:return e==t+"";case w:var s=on;case M:var l=1&r;if(s||(s=ln),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=Qi(s(e),s(t),r,i,o,a);return a.delete(e),u;case T:if(On)return On.call(e)==On.call(t)}return!1}(e,t,c,n,r,o,a);if(!(1&n)){var p=d&&Le.call(e,"__wrapped__"),x=f&&Le.call(t,"__wrapped__");if(p||x){var A=p?e.value():e,E=x?t.value():t;return a||(a=new Gn),o(A,E,n,r,a)}}return!!h&&(a||(a=new Gn),function(e,t,n,r,o,a){var s=1&n,l=eo(e),c=l.length;if(c!=eo(t).length&&!s)return!1;for(var u=c;u--;){var d=l[u];if(!(s?d in t:Le.call(t,d)))return!1}var f=a.get(e),h=a.get(t);if(f&&h)return f==t&&h==e;var p=!0;a.set(e,t),a.set(t,e);for(var g=s;++u<c;){var m=e[d=l[u]],v=t[d];if(r)var y=s?r(v,m,d,t,e,a):r(m,v,d,e,t,a);if(!(y===i?m===v||o(m,v,n,r,a):y)){p=!1;break}g||(g="constructor"==d)}if(p&&!g){var b=e.constructor,x=t.constructor;b==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x||(p=!1)}return a.delete(e),a.delete(t),p}(e,t,n,r,o,a))}(e,t,n,r,Ir,o))}function Pr(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;for(e=Ce(e);o--;){var l=n[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var c=(l=n[o])[0],u=e[c],d=l[1];if(s&&l[2]){if(u===i&&!(c in e))return!1}else{var f=new Gn;if(r)var h=r(u,d,c,e,t,f);if(!(h===i?Ir(d,u,3,r,f):h))return!1}}return!0}function Rr(e){return!(!Ja(e)||(t=e,De&&De in t))&&(Xa(e)?ze:ge).test(No(e));var t}function Lr(e){return"function"==typeof e?e:null==e?nl:"object"==typeof e?Ua(e)?Fr(e[0],e[1]):Nr(e):dl(e)}function jr(e){if(!Ao(e))return gn(e);var t=[];for(var n in Ce(e))Le.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Dr(e,t){return e<t}function Or(e,t){var n=-1,i=Va(e)?r(e.length):[];return ur(e,function(e,r,o){i[++n]=t(e,r,o)}),i}function Nr(e){var t=so(e);return 1==t.length&&t[0][2]?ko(t[0][0],t[0][1]):function(n){return n===e||Pr(n,e,t)}}function Fr(e,t){return yo(e)&&wo(t)?ko(Oo(e),t):function(n){var r=Es(n,e);return r===i&&r===t?Ss(n,e):Ir(t,r,3)}}function zr(e,t,n,r,o){e!==t&&mr(t,function(a,s){if(o||(o=new Gn),Ja(a))!function(e,t,n,r,o,a,s){var l=So(e,n),c=So(t,n),u=s.get(c);if(u)Qn(e,n,u);else{var d=a?a(l,c,n+"",e,t,s):i,f=d===i;if(f){var h=Ua(c),p=!h&&Ga(c),g=!h&&!p&&ls(c);d=c,h||p||g?Ua(l)?d=l:qa(l)?d=Si(l):p?(f=!1,d=xi(c,!0)):g?(f=!1,d=wi(c,!0)):d=[]:rs(c)||Ha(c)?(d=l,Ha(l)?d=ms(l):Ja(l)&&!Xa(l)||(d=po(c))):f=!1}f&&(s.set(c,d),o(d,c,r,a,s),s.delete(c)),Qn(e,n,d)}}(e,t,s,n,zr,r,o);else{var l=r?r(So(e,s),a,s+"",e,t,o):i;l===i&&(l=a),Qn(e,s,l)}},Ps)}function Br(e,t){var n=e.length;if(n)return mo(t+=t<0?n:0,n)?e[t]:i}function $r(e,t,n){t=t.length?Pt(t,function(e){return Ua(e)?function(t){return Ar(t,1===e.length?e[0]:e)}:e}):[nl];var r=-1;t=Pt(t,Kt(oo()));var i=Or(e,function(e,n,i){var o=Pt(t,function(t){return t(e)});return{criteria:o,index:++r,value:e}});return function(e){var t=e.length;for(e.sort(function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=ki(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)});t--;)e[t]=e[t].value;return e}(i)}function Hr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=Ar(e,a);n(s,a)&&Xr(o,mi(a,e),s)}return o}function Ur(e,t,n,r){var i=r?Bt:zt,o=-1,a=t.length,s=e;for(e===t&&(t=Si(t)),n&&(s=Pt(e,Kt(n)));++o<a;)for(var l=0,c=t[o],u=n?n(c):c;(l=i(s,u,l,r))>-1;)s!==e&&Ge.call(s,l,1),Ge.call(e,l,1);return e}function Wr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;mo(i)?Ge.call(e,i,1):li(e,i)}}return e}function Vr(e,t){return e+ht(xn()*(t-e+1))}function qr(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=ht(t/2))&&(e+=e)}while(t);return n}function Gr(e,t){return To(Co(e,t,nl),e+"")}function Yr(e){return Kn(zs(e))}function Kr(e,t){var n=zs(e);return Ro(n,or(t,0,n.length))}function Xr(e,t,n,r){if(!Ja(e))return e;for(var o=-1,a=(t=mi(t,e)).length,s=a-1,l=e;null!=l&&++o<a;){var c=Oo(t[o]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=s){var d=l[c];(u=r?r(d,c,l):i)===i&&(u=Ja(d)?d:mo(t[o+1])?[]:{})}Jn(l,c,u),l=l[c]}return e}var Zr=_n?function(e,t){return _n.set(e,t),e}:nl,Qr=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Js(t),writable:!0})}:nl;function Jr(e){return Ro(zs(e))}function ei(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i<o;)a[i]=e[i+t];return a}function ti(e,t){var n;return ur(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}function ni(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!ss(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return ri(e,t,nl,n)}function ri(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,l=null===t,c=ss(t),u=t===i;o<a;){var d=ht((o+a)/2),f=n(e[d]),h=f!==i,p=null===f,g=f==f,m=ss(f);if(s)var v=r||g;else v=u?g&&(r||h):l?g&&h&&(r||!p):c?g&&h&&!p&&(r||!m):!p&&!m&&(r?f<=t:f<t);v?o=d+1:a=d}return vn(a,4294967294)}function ii(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!za(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function oi(e){return"number"==typeof e?e:ss(e)?f:+e}function ai(e){if("string"==typeof e)return e;if(Ua(e))return Pt(e,ai)+"";if(ss(e))return Nn?Nn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function si(e,t,n){var r=-1,i=Tt,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=It;else if(o>=200){var c=t?null:qi(e);if(c)return ln(c);a=!1,i=Zt,l=new qn}else l=t?[]:s;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function li(e,t){return null==(e=Eo(e,t=mi(t,e)))||delete e[Oo(Ko(t))]}function ci(e,t,n,r){return Xr(e,t,n(Ar(e,t)),r)}function ui(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ei(e,r?0:o,r?o+1:i):ei(e,r?o+1:0,r?i:o)}function di(e,t){var n=e;return n instanceof Hn&&(n=n.value()),Lt(t,function(e,t){return t.func.apply(t.thisArg,Rt([e],t.args))},n)}function fi(e,t,n){var i=e.length;if(i<2)return i?si(e[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=e[o],l=-1;++l<i;)l!=o&&(a[o]=cr(a[o]||s,e[l],t,n));return si(gr(a,1),t,n)}function hi(e,t,n){for(var r=-1,o=e.length,a=t.length,s={};++r<o;){var l=r<a?t[r]:i;n(s,e[r],l)}return s}function pi(e){return qa(e)?e:[]}function gi(e){return"function"==typeof e?e:nl}function mi(e,t){return Ua(e)?e:yo(e,t)?[e]:Do(vs(e))}var vi=Gr;function yi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ei(e,t,n)}var bi=at||function(e){return dt.clearTimeout(e)};function xi(e,t){if(t)return e.slice();var n=e.length,r=Ue?Ue(n):new e.constructor(n);return e.copy(r),r}function Ai(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function wi(e,t){var n=t?Ai(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ki(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=ss(e),s=t!==i,l=null===t,c=t==t,u=ss(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!o)return 1;if(!r&&!a&&!u&&e<t||u&&n&&o&&!r&&!a||l&&n&&o||!s&&o||!c)return-1}return 0}function Ci(e,t,n,i){for(var o=-1,a=e.length,s=n.length,l=-1,c=t.length,u=mn(a-s,0),d=r(c+u),f=!i;++l<c;)d[l]=t[l];for(;++o<s;)(f||o<a)&&(d[n[o]]=e[o]);for(;u--;)d[l++]=e[o++];return d}function Ei(e,t,n,i){for(var o=-1,a=e.length,s=-1,l=n.length,c=-1,u=t.length,d=mn(a-l,0),f=r(d+u),h=!i;++o<d;)f[o]=e[o];for(var p=o;++c<u;)f[p+c]=t[c];for(;++s<l;)(h||o<a)&&(f[p+n[s]]=e[o++]);return f}function Si(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function Mi(e,t,n,r){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=r?r(n[l],e[l],l,n,e):i;c===i&&(c=e[l]),o?rr(n,l,c):Jn(n,l,c)}return n}function _i(e,t){return function(n,r){var i=Ua(n)?Ct:tr,o=t?t():{};return i(n,e,oo(r,2),o)}}function Ti(e){return Gr(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&vo(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=Ce(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t})}function Ii(e,t){return function(n,r){if(null==n)return n;if(!Va(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Ce(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Pi(e){return function(t,n,r){for(var i=-1,o=Ce(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}function Ri(e){return function(t){var n=rn(t=vs(t))?dn(t):i,r=n?n[0]:t.charAt(0),o=n?yi(n,1).join(""):t.slice(1);return r[e]()+o}}function Li(e){return function(t){return Lt(Xs(Hs(t).replace(Xe,"")),e,"")}}function ji(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=zn(e.prototype),r=e.apply(n,t);return Ja(r)?r:n}}function Di(e){return function(t,n,r){var o=Ce(t);if(!Va(t)){var a=oo(n,3);t=Is(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,r);return s>-1?o[a?t[s]:s]:i}}function Oi(e){return Ji(function(t){var n=t.length,r=n,a=$n.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Me(o);if(a&&!l&&"wrapper"==ro(s))var l=new $n([],!0)}for(r=l?r:n;++r<n;){var c=ro(s=t[r]),u="wrapper"==c?no(s):i;l=u&&bo(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[ro(u[0])].apply(l,u[3]):1==s.length&&bo(s)?l[c]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Ua(r))return l.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}})}function Ni(e,t,n,o,a,s,l,u,d,f){var h=t&c,p=1&t,g=2&t,m=24&t,v=512&t,y=g?i:ji(e);return function c(){for(var b=arguments.length,x=r(b),A=b;A--;)x[A]=arguments[A];if(m)var w=io(c),k=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(x,w);if(o&&(x=Ci(x,o,a,m)),s&&(x=Ei(x,s,l,m)),b-=k,m&&b<f){var C=sn(x,w);return Wi(e,t,Ni,c.placeholder,n,x,C,u,d,f-b)}var E=p?n:this,S=g?E[e]:e;return b=x.length,u?x=function(e,t){for(var n=e.length,r=vn(t.length,n),o=Si(e);r--;){var a=t[r];e[r]=mo(a,n)?o[a]:i}return e}(x,u):v&&b>1&&x.reverse(),h&&d<b&&(x.length=d),this&&this!==dt&&this instanceof c&&(S=y||ji(S)),S.apply(E,x)}}function Fi(e,t){return function(n,r){return function(e,t,n,r){return yr(e,function(e,i,o){t(r,n(e),i,o)}),r}(n,e,t(r),{})}}function zi(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=ai(n),r=ai(r)):(n=oi(n),r=oi(r)),o=e(n,r)}return o}}function Bi(e){return Ji(function(t){return t=Pt(t,Kt(oo())),Gr(function(n){var r=this;return e(t,function(e){return kt(e,r,n)})})})}function $i(e,t){var n=(t=t===i?" ":ai(t)).length;if(n<2)return n?qr(t,e):t;var r=qr(t,ft(e/un(t)));return rn(t)?yi(dn(r),0,e).join(""):r.slice(0,e)}function Hi(e){return function(t,n,o){return o&&"number"!=typeof o&&vo(t,n,o)&&(n=o=i),t=fs(t),n===i?(n=t,t=0):n=fs(n),function(e,t,n,i){for(var o=-1,a=mn(ft((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}(t,n,o=o===i?t<n?1:-1:fs(o),e)}}function Ui(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=gs(t),n=gs(n)),e(t,n)}}function Wi(e,t,n,r,o,a,s,c,u,d){var f=8&t;t|=f?l:64,4&(t&=~(f?64:l))||(t&=-4);var h=[e,t,o,f?a:i,f?s:i,f?i:a,f?i:s,c,u,d],p=n.apply(i,h);return bo(e)&&Mo(p,h),p.placeholder=r,Io(p,e,t)}function Vi(e){var t=ke[e];return function(e,n){if(e=gs(e),(n=null==n?0:vn(hs(n),292))&&Ot(e)){var r=(vs(e)+"e").split("e");return+((r=(vs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var qi=En&&1/ln(new En([,-0]))[1]==u?function(e){return new En(e)}:sl;function Gi(e){return function(t){var n=fo(t);return n==w?on(t):n==M?cn(t):function(e,t){return Pt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Yi(e,t,n,a,u,d,f,h){var p=2&t;if(!p&&"function"!=typeof e)throw new Me(o);var g=a?a.length:0;if(g||(t&=-97,a=u=i),f=f===i?f:mn(hs(f),0),h=h===i?h:hs(h),g-=u?u.length:0,64&t){var m=a,v=u;a=u=i}var y=p?i:no(e),b=[e,t,n,a,u,m,v,d,f,h];if(y&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,a=r==c&&8==n||r==c&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!a)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?Ci(u,l,t[4]):l,e[4]=u?sn(e[3],s):t[4]}(l=t[5])&&(u=e[5],e[5]=u?Ei(u,l,t[6]):l,e[6]=u?sn(e[5],s):t[6]),(l=t[7])&&(e[7]=l),r&c&&(e[8]=null==e[8]?t[8]:vn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(b,y),e=b[0],t=b[1],n=b[2],a=b[3],u=b[4],!(h=b[9]=b[9]===i?p?0:e.length:mn(b[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)x=8==t||16==t?function(e,t,n){var o=ji(e);return function a(){for(var s=arguments.length,l=r(s),c=s,u=io(a);c--;)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:sn(l,u);return(s-=d.length)<n?Wi(e,t,Ni,a.placeholder,i,l,d,i,i,n-s):kt(this&&this!==dt&&this instanceof a?o:e,this,l)}}(e,t,h):t!=l&&33!=t||u.length?Ni.apply(i,b):function(e,t,n,i){var o=1&t,a=ji(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=i.length,d=r(u+l),f=this&&this!==dt&&this instanceof t?a:e;++c<u;)d[c]=i[c];for(;l--;)d[c++]=arguments[++s];return kt(f,o?n:this,d)}}(e,t,n,a);else var x=function(e,t,n){var r=1&t,i=ji(e);return function t(){return(this&&this!==dt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return Io((y?Zr:Mo)(x,b),e,t)}function Ki(e,t,n,r){return e===i||za(e,Ie[n])&&!Le.call(r,n)?t:e}function Xi(e,t,n,r,o,a){return Ja(e)&&Ja(t)&&(a.set(t,e),zr(e,t,i,Xi,a),a.delete(t)),e}function Zi(e){return rs(e)?i:e}function Qi(e,t,n,r,o,a){var s=1&n,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,h=!0,p=2&n?new qn:i;for(a.set(e,t),a.set(t,e);++f<l;){var g=e[f],m=t[f];if(r)var v=s?r(m,g,f,t,e,a):r(g,m,f,e,t,a);if(v!==i){if(v)continue;h=!1;break}if(p){if(!Dt(t,function(e,t){if(!Zt(p,t)&&(g===e||o(g,e,n,r,a)))return p.push(t)})){h=!1;break}}else if(g!==m&&!o(g,m,n,r,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function Ji(e){return To(Co(e,i,Wo),e+"")}function eo(e){return wr(e,Is,co)}function to(e){return wr(e,Ps,uo)}var no=_n?function(e){return _n.get(e)}:sl;function ro(e){for(var t=e.name+"",n=Tn[t],r=Le.call(Tn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function io(e){return(Le.call(Fn,"placeholder")?Fn:e).placeholder}function oo(){var e=Fn.iteratee||rl;return e=e===rl?Lr:e,arguments.length?e(arguments[0],arguments[1]):e}function ao(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function so(e){for(var t=Is(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,wo(i)]}return t}function lo(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Rr(n)?n:i}var co=gt?function(e){return null==e?[]:(e=Ce(e),_t(gt(e),function(t){return qe.call(e,t)}))}:pl,uo=gt?function(e){for(var t=[];e;)Rt(t,co(e)),e=We(e);return t}:pl,fo=kr;function ho(e,t,n){for(var r=-1,i=(t=mi(t,e)).length,o=!1;++r<i;){var a=Oo(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Qa(i)&&mo(a,i)&&(Ua(e)||Ha(e))}function po(e){return"function"!=typeof e.constructor||Ao(e)?{}:zn(We(e))}function go(e){return Ua(e)||Ha(e)||!!(Ye&&e&&e[Ye])}function mo(e,t){var n=typeof e;return!!(t=null==t?d:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function vo(e,t,n){if(!Ja(n))return!1;var r=typeof t;return!!("number"==r?Va(n)&&mo(t,n.length):"string"==r&&t in n)&&za(n[t],e)}function yo(e,t){if(Ua(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ss(e))||J.test(e)||!Q.test(e)||null!=t&&e in Ce(t)}function bo(e){var t=ro(e),n=Fn[t];if("function"!=typeof n||!(t in Hn.prototype))return!1;if(e===n)return!0;var r=no(n);return!!r&&e===r[0]}(wn&&fo(new wn(new ArrayBuffer(1)))!=R||kn&&fo(new kn)!=w||Cn&&fo(Cn.resolve())!=E||En&&fo(new En)!=M||Sn&&fo(new Sn)!=I)&&(fo=function(e){var t=kr(e),n=t==C?e.constructor:i,r=n?No(n):"";if(r)switch(r){case In:return R;case Pn:return w;case Rn:return E;case Ln:return M;case jn:return I}return t});var xo=Pe?Xa:gl;function Ao(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ie)}function wo(e){return e==e&&!Ja(e)}function ko(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in Ce(n))}}function Co(e,t,n){return t=mn(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=mn(i.length-t,0),s=r(a);++o<a;)s[o]=i[t+o];o=-1;for(var l=r(t+1);++o<t;)l[o]=i[o];return l[t]=n(s),kt(e,this,l)}}function Eo(e,t){return t.length<2?e:Ar(e,ei(t,0,-1))}function So(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Mo=Po(Zr),_o=ut||function(e,t){return dt.setTimeout(e,t)},To=Po(Qr);function Io(e,t,n){var r=t+"";return To(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Et(p,function(n){var r="_."+n[0];t&n[1]&&!Tt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Po(e){var t=0,n=0;return function(){var r=yn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Ro(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var a=Vr(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Lo,jo,Do=(Lo=La(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,function(e,n,r,i){t.push(r?i.replace(ue,"$1"):n||e)}),t},function(e){return 500===jo.size&&jo.clear(),e}),jo=Lo.cache,Lo);function Oo(e){if("string"==typeof e||ss(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function No(e){if(null!=e){try{return Re.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Fo(e){if(e instanceof Hn)return e.clone();var t=new $n(e.__wrapped__,e.__chain__);return t.__actions__=Si(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var zo=Gr(function(e,t){return qa(e)?cr(e,gr(t,1,qa,!0)):[]}),Bo=Gr(function(e,t){var n=Ko(t);return qa(n)&&(n=i),qa(e)?cr(e,gr(t,1,qa,!0),oo(n,2)):[]}),$o=Gr(function(e,t){var n=Ko(t);return qa(n)&&(n=i),qa(e)?cr(e,gr(t,1,qa,!0),i,n):[]});function Ho(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:hs(n);return i<0&&(i=mn(r+i,0)),Ft(e,oo(t,3),i)}function Uo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=hs(n),o=n<0?mn(r+o,0):vn(o,r-1)),Ft(e,oo(t,3),o,!0)}function Wo(e){return null!=e&&e.length?gr(e,1):[]}function Vo(e){return e&&e.length?e[0]:i}var qo=Gr(function(e){var t=Pt(e,pi);return t.length&&t[0]===e[0]?Mr(t):[]}),Go=Gr(function(e){var t=Ko(e),n=Pt(e,pi);return t===Ko(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Mr(n,oo(t,2)):[]}),Yo=Gr(function(e){var t=Ko(e),n=Pt(e,pi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Mr(n,i,t):[]});function Ko(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Xo=Gr(Zo);function Zo(e,t){return e&&e.length&&t&&t.length?Ur(e,t):e}var Qo=Ji(function(e,t){var n=null==e?0:e.length,r=ir(e,t);return Wr(e,Pt(t,function(e){return mo(e,n)?+e:e}).sort(ki)),r});function Jo(e){return null==e?e:An.call(e)}var ea=Gr(function(e){return si(gr(e,1,qa,!0))}),ta=Gr(function(e){var t=Ko(e);return qa(t)&&(t=i),si(gr(e,1,qa,!0),oo(t,2))}),na=Gr(function(e){var t=Ko(e);return t="function"==typeof t?t:i,si(gr(e,1,qa,!0),i,t)});function ra(e){if(!e||!e.length)return[];var t=0;return e=_t(e,function(e){if(qa(e))return t=mn(e.length,t),!0}),Gt(t,function(t){return Pt(e,Ut(t))})}function ia(e,t){if(!e||!e.length)return[];var n=ra(e);return null==t?n:Pt(n,function(e){return kt(t,i,e)})}var oa=Gr(function(e,t){return qa(e)?cr(e,t):[]}),aa=Gr(function(e){return fi(_t(e,qa))}),sa=Gr(function(e){var t=Ko(e);return qa(t)&&(t=i),fi(_t(e,qa),oo(t,2))}),la=Gr(function(e){var t=Ko(e);return t="function"==typeof t?t:i,fi(_t(e,qa),i,t)}),ca=Gr(ra),ua=Gr(function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,ia(e,n)});function da(e){var t=Fn(e);return t.__chain__=!0,t}function fa(e,t){return t(e)}var ha=Ji(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Hn&&mo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:fa,args:[o],thisArg:i}),new $n(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)}),pa=_i(function(e,t,n){Le.call(e,n)?++e[n]:rr(e,n,1)}),ga=Di(Ho),ma=Di(Uo);function va(e,t){return(Ua(e)?Et:ur)(e,oo(t,3))}function ya(e,t){return(Ua(e)?St:dr)(e,oo(t,3))}var ba=_i(function(e,t,n){Le.call(e,n)?e[n].push(t):rr(e,n,[t])}),xa=Gr(function(e,t,n){var i=-1,o="function"==typeof t,a=Va(e)?r(e.length):[];return ur(e,function(e){a[++i]=o?kt(t,e,n):_r(e,t,n)}),a}),Aa=_i(function(e,t,n){rr(e,n,t)});function wa(e,t){return(Ua(e)?Pt:Or)(e,oo(t,3))}var ka=_i(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Ca=Gr(function(e,t){if(null==e)return[];var n=t.length;return n>1&&vo(e,t[0],t[1])?t=[]:n>2&&vo(t[0],t[1],t[2])&&(t=[t[0]]),$r(e,gr(t,1),[])}),Ea=ct||function(){return dt.Date.now()};function Sa(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Yi(e,c,i,i,i,i,t)}function Ma(e,t){var n;if("function"!=typeof t)throw new Me(o);return e=hs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var _a=Gr(function(e,t,n){var r=1;if(n.length){var i=sn(n,io(_a));r|=l}return Yi(e,r,t,n,i)}),Ta=Gr(function(e,t,n){var r=3;if(n.length){var i=sn(n,io(Ta));r|=l}return Yi(t,r,e,n,i)});function Ia(e,t,n){var r,a,s,l,c,u,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new Me(o);function g(t){var n=r,o=a;return r=a=i,d=t,l=e.apply(o,n)}function m(e){var n=e-u;return u===i||n>=t||n<0||h&&e-d>=s}function v(){var e=Ea();if(m(e))return y(e);c=_o(v,function(e){var n=t-(e-u);return h?vn(n,s-(e-d)):n}(e))}function y(e){return c=i,p&&r?g(e):(r=a=i,l)}function b(){var e=Ea(),n=m(e);if(r=arguments,a=this,u=e,n){if(c===i)return function(e){return d=e,c=_o(v,t),f?g(e):l}(u);if(h)return bi(c),c=_o(v,t),g(u)}return c===i&&(c=_o(v,t)),l}return t=gs(t)||0,Ja(n)&&(f=!!n.leading,s=(h="maxWait"in n)?mn(gs(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),b.cancel=function(){c!==i&&bi(c),d=0,r=u=a=c=i},b.flush=function(){return c===i?l:y(Ea())},b}var Pa=Gr(function(e,t){return lr(e,1,t)}),Ra=Gr(function(e,t,n){return lr(e,gs(t)||0,n)});function La(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Me(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(La.Cache||Vn),n}function ja(e){if("function"!=typeof e)throw new Me(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}La.Cache=Vn;var Da=vi(function(e,t){var n=(t=1==t.length&&Ua(t[0])?Pt(t[0],Kt(oo())):Pt(gr(t,1),Kt(oo()))).length;return Gr(function(r){for(var i=-1,o=vn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return kt(e,this,r)})}),Oa=Gr(function(e,t){var n=sn(t,io(Oa));return Yi(e,l,i,t,n)}),Na=Gr(function(e,t){var n=sn(t,io(Na));return Yi(e,64,i,t,n)}),Fa=Ji(function(e,t){return Yi(e,256,i,i,i,t)});function za(e,t){return e===t||e!=e&&t!=t}var Ba=Ui(Cr),$a=Ui(function(e,t){return e>=t}),Ha=Tr(function(){return arguments}())?Tr:function(e){return es(e)&&Le.call(e,"callee")&&!qe.call(e,"callee")},Ua=r.isArray,Wa=vt?Kt(vt):function(e){return es(e)&&kr(e)==P};function Va(e){return null!=e&&Qa(e.length)&&!Xa(e)}function qa(e){return es(e)&&Va(e)}var Ga=mt||gl,Ya=yt?Kt(yt):function(e){return es(e)&&kr(e)==y};function Ka(e){if(!es(e))return!1;var t=kr(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!rs(e)}function Xa(e){if(!Ja(e))return!1;var t=kr(e);return t==x||t==A||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Za(e){return"number"==typeof e&&e==hs(e)}function Qa(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function Ja(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function es(e){return null!=e&&"object"==typeof e}var ts=bt?Kt(bt):function(e){return es(e)&&fo(e)==w};function ns(e){return"number"==typeof e||es(e)&&kr(e)==k}function rs(e){if(!es(e)||kr(e)!=C)return!1;var t=We(e);if(null===t)return!0;var n=Le.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Re.call(n)==Ne}var is=xt?Kt(xt):function(e){return es(e)&&kr(e)==S},os=At?Kt(At):function(e){return es(e)&&fo(e)==M};function as(e){return"string"==typeof e||!Ua(e)&&es(e)&&kr(e)==_}function ss(e){return"symbol"==typeof e||es(e)&&kr(e)==T}var ls=wt?Kt(wt):function(e){return es(e)&&Qa(e.length)&&!!it[kr(e)]},cs=Ui(Dr),us=Ui(function(e,t){return e<=t});function ds(e){if(!e)return[];if(Va(e))return as(e)?dn(e):Si(e);if(Ke&&e[Ke])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ke]());var t=fo(e);return(t==w?on:t==M?ln:zs)(e)}function fs(e){return e?(e=gs(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function hs(e){var t=fs(e),n=t%1;return t==t?n?t-n:t:0}function ps(e){return e?or(hs(e),0,h):0}function gs(e){if("number"==typeof e)return e;if(ss(e))return f;if(Ja(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ja(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Yt(e);var n=pe.test(e);return n||me.test(e)?lt(e.slice(2),n?2:8):he.test(e)?f:+e}function ms(e){return Mi(e,Ps(e))}function vs(e){return null==e?"":ai(e)}var ys=Ti(function(e,t){if(Ao(t)||Va(t))Mi(t,Is(t),e);else for(var n in t)Le.call(t,n)&&Jn(e,n,t[n])}),bs=Ti(function(e,t){Mi(t,Ps(t),e)}),xs=Ti(function(e,t,n,r){Mi(t,Ps(t),e,r)}),As=Ti(function(e,t,n,r){Mi(t,Is(t),e,r)}),ws=Ji(ir),ks=Gr(function(e,t){e=Ce(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&vo(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],s=Ps(a),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===i||za(d,Ie[u])&&!Le.call(e,u))&&(e[u]=a[u])}return e}),Cs=Gr(function(e){return e.push(i,Xi),kt(Ls,i,e)});function Es(e,t,n){var r=null==e?i:Ar(e,t);return r===i?n:r}function Ss(e,t){return null!=e&&ho(e,t,Sr)}var Ms=Fi(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Oe.call(t)),e[t]=n},Js(nl)),_s=Fi(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Oe.call(t)),Le.call(e,t)?e[t].push(n):e[t]=[n]},oo),Ts=Gr(_r);function Is(e){return Va(e)?Yn(e):jr(e)}function Ps(e){return Va(e)?Yn(e,!0):function(e){if(!Ja(e))return function(e){var t=[];if(null!=e)for(var n in Ce(e))t.push(n);return t}(e);var t=Ao(e),n=[];for(var r in e)("constructor"!=r||!t&&Le.call(e,r))&&n.push(r);return n}(e)}var Rs=Ti(function(e,t,n){zr(e,t,n)}),Ls=Ti(function(e,t,n,r){zr(e,t,n,r)}),js=Ji(function(e,t){var n={};if(null==e)return n;var r=!1;t=Pt(t,function(t){return t=mi(t,e),r||(r=t.length>1),t}),Mi(e,to(e),n),r&&(n=ar(n,7,Zi));for(var i=t.length;i--;)li(n,t[i]);return n}),Ds=Ji(function(e,t){return null==e?{}:function(e,t){return Hr(e,t,function(t,n){return Ss(e,n)})}(e,t)});function Os(e,t){if(null==e)return{};var n=Pt(to(e),function(e){return[e]});return t=oo(t),Hr(e,n,function(e,n){return t(e,n[0])})}var Ns=Gi(Is),Fs=Gi(Ps);function zs(e){return null==e?[]:Xt(e,Is(e))}var Bs=Li(function(e,t,n){return t=t.toLowerCase(),e+(n?$s(t):t)});function $s(e){return Ks(vs(e).toLowerCase())}function Hs(e){return(e=vs(e))&&e.replace(ye,en).replace(Ze,"")}var Us=Li(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Ws=Li(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Vs=Ri("toLowerCase"),qs=Li(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Gs=Li(function(e,t,n){return e+(n?" ":"")+Ks(t)}),Ys=Li(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ks=Ri("toUpperCase");function Xs(e,t,n){return e=vs(e),(t=n?i:t)===i?function(e){return tt.test(e)}(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Zs=Gr(function(e,t){try{return kt(e,i,t)}catch(e){return Ka(e)?e:new Ae(e)}}),Qs=Ji(function(e,t){return Et(t,function(t){t=Oo(t),rr(e,t,_a(e[t],e))}),e});function Js(e){return function(){return e}}var el=Oi(),tl=Oi(!0);function nl(e){return e}function rl(e){return Lr("function"==typeof e?e:ar(e,1))}var il=Gr(function(e,t){return function(n){return _r(n,e,t)}}),ol=Gr(function(e,t){return function(n){return _r(e,n,t)}});function al(e,t,n){var r=Is(t),i=xr(t,r);null!=n||Ja(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=xr(t,Is(t)));var o=!(Ja(n)&&"chain"in n&&!n.chain),a=Xa(e);return Et(i,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Si(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Rt([this.value()],arguments))})}),e}function sl(){}var ll=Bi(Pt),cl=Bi(Mt),ul=Bi(Dt);function dl(e){return yo(e)?Ut(Oo(e)):function(e){return function(t){return Ar(t,e)}}(e)}var fl=Hi(),hl=Hi(!0);function pl(){return[]}function gl(){return!1}var ml,vl=zi(function(e,t){return e+t},0),yl=Vi("ceil"),bl=zi(function(e,t){return e/t},1),xl=Vi("floor"),Al=zi(function(e,t){return e*t},1),wl=Vi("round"),kl=zi(function(e,t){return e-t},0);return Fn.after=function(e,t){if("function"!=typeof t)throw new Me(o);return e=hs(e),function(){if(--e<1)return t.apply(this,arguments)}},Fn.ary=Sa,Fn.assign=ys,Fn.assignIn=bs,Fn.assignInWith=xs,Fn.assignWith=As,Fn.at=ws,Fn.before=Ma,Fn.bind=_a,Fn.bindAll=Qs,Fn.bindKey=Ta,Fn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ua(e)?e:[e]},Fn.chain=da,Fn.chunk=function(e,t,n){t=(n?vo(e,t,n):t===i)?1:mn(hs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,l=r(ft(o/t));a<o;)l[s++]=ei(e,a,a+=t);return l},Fn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Fn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Rt(Ua(n)?Si(n):[n],gr(t,1))},Fn.cond=function(e){var t=null==e?0:e.length,n=oo();return e=t?Pt(e,function(e){if("function"!=typeof e[1])throw new Me(o);return[n(e[0]),e[1]]}):[],Gr(function(n){for(var r=-1;++r<t;){var i=e[r];if(kt(i[0],this,n))return kt(i[1],this,n)}})},Fn.conforms=function(e){return function(e){var t=Is(e);return function(n){return sr(n,e,t)}}(ar(e,1))},Fn.constant=Js,Fn.countBy=pa,Fn.create=function(e,t){var n=zn(e);return null==t?n:nr(n,t)},Fn.curry=function e(t,n,r){var o=Yi(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Fn.curryRight=function e(t,n,r){var o=Yi(t,16,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Fn.debounce=Ia,Fn.defaults=ks,Fn.defaultsDeep=Cs,Fn.defer=Pa,Fn.delay=Ra,Fn.difference=zo,Fn.differenceBy=Bo,Fn.differenceWith=$o,Fn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=n||t===i?1:hs(t))<0?0:t,r):[]},Fn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,0,(t=r-(t=n||t===i?1:hs(t)))<0?0:t):[]},Fn.dropRightWhile=function(e,t){return e&&e.length?ui(e,oo(t,3),!0,!0):[]},Fn.dropWhile=function(e,t){return e&&e.length?ui(e,oo(t,3),!0):[]},Fn.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&vo(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=hs(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:hs(r))<0&&(r+=o),r=n>r?0:ps(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Fn.filter=function(e,t){return(Ua(e)?_t:pr)(e,oo(t,3))},Fn.flatMap=function(e,t){return gr(wa(e,t),1)},Fn.flatMapDeep=function(e,t){return gr(wa(e,t),u)},Fn.flatMapDepth=function(e,t,n){return n=n===i?1:hs(n),gr(wa(e,t),n)},Fn.flatten=Wo,Fn.flattenDeep=function(e){return null!=e&&e.length?gr(e,u):[]},Fn.flattenDepth=function(e,t){return null!=e&&e.length?gr(e,t=t===i?1:hs(t)):[]},Fn.flip=function(e){return Yi(e,512)},Fn.flow=el,Fn.flowRight=tl,Fn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Fn.functions=function(e){return null==e?[]:xr(e,Is(e))},Fn.functionsIn=function(e){return null==e?[]:xr(e,Ps(e))},Fn.groupBy=ba,Fn.initial=function(e){return null!=e&&e.length?ei(e,0,-1):[]},Fn.intersection=qo,Fn.intersectionBy=Go,Fn.intersectionWith=Yo,Fn.invert=Ms,Fn.invertBy=_s,Fn.invokeMap=xa,Fn.iteratee=rl,Fn.keyBy=Aa,Fn.keys=Is,Fn.keysIn=Ps,Fn.map=wa,Fn.mapKeys=function(e,t){var n={};return t=oo(t,3),yr(e,function(e,r,i){rr(n,t(e,r,i),e)}),n},Fn.mapValues=function(e,t){var n={};return t=oo(t,3),yr(e,function(e,r,i){rr(n,r,t(e,r,i))}),n},Fn.matches=function(e){return Nr(ar(e,1))},Fn.matchesProperty=function(e,t){return Fr(e,ar(t,1))},Fn.memoize=La,Fn.merge=Rs,Fn.mergeWith=Ls,Fn.method=il,Fn.methodOf=ol,Fn.mixin=al,Fn.negate=ja,Fn.nthArg=function(e){return e=hs(e),Gr(function(t){return Br(t,e)})},Fn.omit=js,Fn.omitBy=function(e,t){return Os(e,ja(oo(t)))},Fn.once=function(e){return Ma(2,e)},Fn.orderBy=function(e,t,n,r){return null==e?[]:(Ua(t)||(t=null==t?[]:[t]),Ua(n=r?i:n)||(n=null==n?[]:[n]),$r(e,t,n))},Fn.over=ll,Fn.overArgs=Da,Fn.overEvery=cl,Fn.overSome=ul,Fn.partial=Oa,Fn.partialRight=Na,Fn.partition=ka,Fn.pick=Ds,Fn.pickBy=Os,Fn.property=dl,Fn.propertyOf=function(e){return function(t){return null==e?i:Ar(e,t)}},Fn.pull=Xo,Fn.pullAll=Zo,Fn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Ur(e,t,oo(n,2)):e},Fn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Ur(e,t,i,n):e},Fn.pullAt=Qo,Fn.range=fl,Fn.rangeRight=hl,Fn.rearg=Fa,Fn.reject=function(e,t){return(Ua(e)?_t:pr)(e,ja(oo(t,3)))},Fn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=oo(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Wr(e,i),n},Fn.rest=function(e,t){if("function"!=typeof e)throw new Me(o);return Gr(e,t=t===i?t:hs(t))},Fn.reverse=Jo,Fn.sampleSize=function(e,t,n){return t=(n?vo(e,t,n):t===i)?1:hs(t),(Ua(e)?Xn:Kr)(e,t)},Fn.set=function(e,t,n){return null==e?e:Xr(e,t,n)},Fn.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Xr(e,t,n,r)},Fn.shuffle=function(e){return(Ua(e)?Zn:Jr)(e)},Fn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&vo(e,t,n)?(t=0,n=r):(t=null==t?0:hs(t),n=n===i?r:hs(n)),ei(e,t,n)):[]},Fn.sortBy=Ca,Fn.sortedUniq=function(e){return e&&e.length?ii(e):[]},Fn.sortedUniqBy=function(e,t){return e&&e.length?ii(e,oo(t,2)):[]},Fn.split=function(e,t,n){return n&&"number"!=typeof n&&vo(e,t,n)&&(t=n=i),(n=n===i?h:n>>>0)?(e=vs(e))&&("string"==typeof t||null!=t&&!is(t))&&!(t=ai(t))&&rn(e)?yi(dn(e),0,n):e.split(t,n):[]},Fn.spread=function(e,t){if("function"!=typeof e)throw new Me(o);return t=null==t?0:mn(hs(t),0),Gr(function(n){var r=n[t],i=yi(n,0,t);return r&&Rt(i,r),kt(e,this,i)})},Fn.tail=function(e){var t=null==e?0:e.length;return t?ei(e,1,t):[]},Fn.take=function(e,t,n){return e&&e.length?ei(e,0,(t=n||t===i?1:hs(t))<0?0:t):[]},Fn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=r-(t=n||t===i?1:hs(t)))<0?0:t,r):[]},Fn.takeRightWhile=function(e,t){return e&&e.length?ui(e,oo(t,3),!1,!0):[]},Fn.takeWhile=function(e,t){return e&&e.length?ui(e,oo(t,3)):[]},Fn.tap=function(e,t){return t(e),e},Fn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Me(o);return Ja(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ia(e,t,{leading:r,maxWait:t,trailing:i})},Fn.thru=fa,Fn.toArray=ds,Fn.toPairs=Ns,Fn.toPairsIn=Fs,Fn.toPath=function(e){return Ua(e)?Pt(e,Oo):ss(e)?[e]:Si(Do(vs(e)))},Fn.toPlainObject=ms,Fn.transform=function(e,t,n){var r=Ua(e),i=r||Ga(e)||ls(e);if(t=oo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Ja(e)&&Xa(o)?zn(We(e)):{}}return(i?Et:yr)(e,function(e,r,i){return t(n,e,r,i)}),n},Fn.unary=function(e){return Sa(e,1)},Fn.union=ea,Fn.unionBy=ta,Fn.unionWith=na,Fn.uniq=function(e){return e&&e.length?si(e):[]},Fn.uniqBy=function(e,t){return e&&e.length?si(e,oo(t,2)):[]},Fn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?si(e,i,t):[]},Fn.unset=function(e,t){return null==e||li(e,t)},Fn.unzip=ra,Fn.unzipWith=ia,Fn.update=function(e,t,n){return null==e?e:ci(e,t,gi(n))},Fn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:ci(e,t,gi(n),r)},Fn.values=zs,Fn.valuesIn=function(e){return null==e?[]:Xt(e,Ps(e))},Fn.without=oa,Fn.words=Xs,Fn.wrap=function(e,t){return Oa(gi(t),e)},Fn.xor=aa,Fn.xorBy=sa,Fn.xorWith=la,Fn.zip=ca,Fn.zipObject=function(e,t){return hi(e||[],t||[],Jn)},Fn.zipObjectDeep=function(e,t){return hi(e||[],t||[],Xr)},Fn.zipWith=ua,Fn.entries=Ns,Fn.entriesIn=Fs,Fn.extend=bs,Fn.extendWith=xs,al(Fn,Fn),Fn.add=vl,Fn.attempt=Zs,Fn.camelCase=Bs,Fn.capitalize=$s,Fn.ceil=yl,Fn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=gs(n))==n?n:0),t!==i&&(t=(t=gs(t))==t?t:0),or(gs(e),t,n)},Fn.clone=function(e){return ar(e,4)},Fn.cloneDeep=function(e){return ar(e,5)},Fn.cloneDeepWith=function(e,t){return ar(e,5,t="function"==typeof t?t:i)},Fn.cloneWith=function(e,t){return ar(e,4,t="function"==typeof t?t:i)},Fn.conformsTo=function(e,t){return null==t||sr(e,t,Is(t))},Fn.deburr=Hs,Fn.defaultTo=function(e,t){return null==e||e!=e?t:e},Fn.divide=bl,Fn.endsWith=function(e,t,n){e=vs(e),t=ai(t);var r=e.length,o=n=n===i?r:or(hs(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Fn.eq=za,Fn.escape=function(e){return(e=vs(e))&&Y.test(e)?e.replace(q,tn):e},Fn.escapeRegExp=function(e){return(e=vs(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Fn.every=function(e,t,n){var r=Ua(e)?Mt:fr;return n&&vo(e,t,n)&&(t=i),r(e,oo(t,3))},Fn.find=ga,Fn.findIndex=Ho,Fn.findKey=function(e,t){return Nt(e,oo(t,3),yr)},Fn.findLast=ma,Fn.findLastIndex=Uo,Fn.findLastKey=function(e,t){return Nt(e,oo(t,3),br)},Fn.floor=xl,Fn.forEach=va,Fn.forEachRight=ya,Fn.forIn=function(e,t){return null==e?e:mr(e,oo(t,3),Ps)},Fn.forInRight=function(e,t){return null==e?e:vr(e,oo(t,3),Ps)},Fn.forOwn=function(e,t){return e&&yr(e,oo(t,3))},Fn.forOwnRight=function(e,t){return e&&br(e,oo(t,3))},Fn.get=Es,Fn.gt=Ba,Fn.gte=$a,Fn.has=function(e,t){return null!=e&&ho(e,t,Er)},Fn.hasIn=Ss,Fn.head=Vo,Fn.identity=nl,Fn.includes=function(e,t,n,r){e=Va(e)?e:zs(e),n=n&&!r?hs(n):0;var i=e.length;return n<0&&(n=mn(i+n,0)),as(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&zt(e,t,n)>-1},Fn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:hs(n);return i<0&&(i=mn(r+i,0)),zt(e,t,i)},Fn.inRange=function(e,t,n){return t=fs(t),n===i?(n=t,t=0):n=fs(n),function(e,t,n){return e>=vn(t,n)&&e<mn(t,n)}(e=gs(e),t,n)},Fn.invoke=Ts,Fn.isArguments=Ha,Fn.isArray=Ua,Fn.isArrayBuffer=Wa,Fn.isArrayLike=Va,Fn.isArrayLikeObject=qa,Fn.isBoolean=function(e){return!0===e||!1===e||es(e)&&kr(e)==v},Fn.isBuffer=Ga,Fn.isDate=Ya,Fn.isElement=function(e){return es(e)&&1===e.nodeType&&!rs(e)},Fn.isEmpty=function(e){if(null==e)return!0;if(Va(e)&&(Ua(e)||"string"==typeof e||"function"==typeof e.splice||Ga(e)||ls(e)||Ha(e)))return!e.length;var t=fo(e);if(t==w||t==M)return!e.size;if(Ao(e))return!jr(e).length;for(var n in e)if(Le.call(e,n))return!1;return!0},Fn.isEqual=function(e,t){return Ir(e,t)},Fn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Ir(e,t,i,n):!!r},Fn.isError=Ka,Fn.isFinite=function(e){return"number"==typeof e&&Ot(e)},Fn.isFunction=Xa,Fn.isInteger=Za,Fn.isLength=Qa,Fn.isMap=ts,Fn.isMatch=function(e,t){return e===t||Pr(e,t,so(t))},Fn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Pr(e,t,so(t),n)},Fn.isNaN=function(e){return ns(e)&&e!=+e},Fn.isNative=function(e){if(xo(e))throw new Ae("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Rr(e)},Fn.isNil=function(e){return null==e},Fn.isNull=function(e){return null===e},Fn.isNumber=ns,Fn.isObject=Ja,Fn.isObjectLike=es,Fn.isPlainObject=rs,Fn.isRegExp=is,Fn.isSafeInteger=function(e){return Za(e)&&e>=-9007199254740991&&e<=d},Fn.isSet=os,Fn.isString=as,Fn.isSymbol=ss,Fn.isTypedArray=ls,Fn.isUndefined=function(e){return e===i},Fn.isWeakMap=function(e){return es(e)&&fo(e)==I},Fn.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==kr(e)},Fn.join=function(e,t){return null==e?"":Wt.call(e,t)},Fn.kebabCase=Us,Fn.last=Ko,Fn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=hs(n))<0?mn(r+o,0):vn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Ft(e,$t,o,!0)},Fn.lowerCase=Ws,Fn.lowerFirst=Vs,Fn.lt=cs,Fn.lte=us,Fn.max=function(e){return e&&e.length?hr(e,nl,Cr):i},Fn.maxBy=function(e,t){return e&&e.length?hr(e,oo(t,2),Cr):i},Fn.mean=function(e){return Ht(e,nl)},Fn.meanBy=function(e,t){return Ht(e,oo(t,2))},Fn.min=function(e){return e&&e.length?hr(e,nl,Dr):i},Fn.minBy=function(e,t){return e&&e.length?hr(e,oo(t,2),Dr):i},Fn.stubArray=pl,Fn.stubFalse=gl,Fn.stubObject=function(){return{}},Fn.stubString=function(){return""},Fn.stubTrue=function(){return!0},Fn.multiply=Al,Fn.nth=function(e,t){return e&&e.length?Br(e,hs(t)):i},Fn.noConflict=function(){return dt._===this&&(dt._=Fe),this},Fn.noop=sl,Fn.now=Ea,Fn.pad=function(e,t,n){e=vs(e);var r=(t=hs(t))?un(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return $i(ht(i),n)+e+$i(ft(i),n)},Fn.padEnd=function(e,t,n){e=vs(e);var r=(t=hs(t))?un(e):0;return t&&r<t?e+$i(t-r,n):e},Fn.padStart=function(e,t,n){e=vs(e);var r=(t=hs(t))?un(e):0;return t&&r<t?$i(t-r,n)+e:e},Fn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(vs(e).replace(re,""),t||0)},Fn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&vo(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=fs(e),t===i?(t=e,e=0):t=fs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=xn();return vn(e+o*(t-e+st("1e-"+((o+"").length-1))),t)}return Vr(e,t)},Fn.reduce=function(e,t,n){var r=Ua(e)?Lt:Vt,i=arguments.length<3;return r(e,oo(t,4),n,i,ur)},Fn.reduceRight=function(e,t,n){var r=Ua(e)?jt:Vt,i=arguments.length<3;return r(e,oo(t,4),n,i,dr)},Fn.repeat=function(e,t,n){return t=(n?vo(e,t,n):t===i)?1:hs(t),qr(vs(e),t)},Fn.replace=function(){var e=arguments,t=vs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Fn.result=function(e,t,n){var r=-1,o=(t=mi(t,e)).length;for(o||(o=1,e=i);++r<o;){var a=null==e?i:e[Oo(t[r])];a===i&&(r=o,a=n),e=Xa(a)?a.call(e):a}return e},Fn.round=wl,Fn.runInContext=e,Fn.sample=function(e){return(Ua(e)?Kn:Yr)(e)},Fn.size=function(e){if(null==e)return 0;if(Va(e))return as(e)?un(e):e.length;var t=fo(e);return t==w||t==M?e.size:jr(e).length},Fn.snakeCase=qs,Fn.some=function(e,t,n){var r=Ua(e)?Dt:ti;return n&&vo(e,t,n)&&(t=i),r(e,oo(t,3))},Fn.sortedIndex=function(e,t){return ni(e,t)},Fn.sortedIndexBy=function(e,t,n){return ri(e,t,oo(n,2))},Fn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ni(e,t);if(r<n&&za(e[r],t))return r}return-1},Fn.sortedLastIndex=function(e,t){return ni(e,t,!0)},Fn.sortedLastIndexBy=function(e,t,n){return ri(e,t,oo(n,2),!0)},Fn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ni(e,t,!0)-1;if(za(e[n],t))return n}return-1},Fn.startCase=Gs,Fn.startsWith=function(e,t,n){return e=vs(e),n=null==n?0:or(hs(n),0,e.length),t=ai(t),e.slice(n,n+t.length)==t},Fn.subtract=kl,Fn.sum=function(e){return e&&e.length?qt(e,nl):0},Fn.sumBy=function(e,t){return e&&e.length?qt(e,oo(t,2)):0},Fn.template=function(e,t,n){var r=Fn.templateSettings;n&&vo(e,t,n)&&(t=i),e=vs(e),t=xs({},t,r,Ki);var o,a,s=xs({},t.imports,r.imports,Ki),l=Is(s),c=Xt(s,l),u=0,d=t.interpolate||be,f="__p += '",h=Ee((t.escape||be).source+"|"+d.source+"|"+(d===Z?de:be).source+"|"+(t.evaluate||be).source+"|$","g"),p="//# sourceURL="+(Le.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(h,function(t,n,r,i,s,l){return r||(r=i),f+=e.slice(u,l).replace(xe,nn),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t}),f+="';\n";var g=Le.call(t,"variable")&&t.variable;if(g){if(ce.test(g))throw new Ae("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(H,""):f).replace(U,"$1").replace(W,"$1;"),f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=Zs(function(){return we(l,p+"return "+f).apply(i,c)});if(m.source=f,Ka(m))throw m;return m},Fn.times=function(e,t){if((e=hs(e))<1||e>d)return[];var n=h,r=vn(e,h);t=oo(t),e-=h;for(var i=Gt(r,t);++n<e;)t(n);return i},Fn.toFinite=fs,Fn.toInteger=hs,Fn.toLength=ps,Fn.toLower=function(e){return vs(e).toLowerCase()},Fn.toNumber=gs,Fn.toSafeInteger=function(e){return e?or(hs(e),-9007199254740991,d):0===e?e:0},Fn.toString=vs,Fn.toUpper=function(e){return vs(e).toUpperCase()},Fn.trim=function(e,t,n){if((e=vs(e))&&(n||t===i))return Yt(e);if(!e||!(t=ai(t)))return e;var r=dn(e),o=dn(t);return yi(r,Qt(r,o),Jt(r,o)+1).join("")},Fn.trimEnd=function(e,t,n){if((e=vs(e))&&(n||t===i))return e.slice(0,fn(e)+1);if(!e||!(t=ai(t)))return e;var r=dn(e);return yi(r,0,Jt(r,dn(t))+1).join("")},Fn.trimStart=function(e,t,n){if((e=vs(e))&&(n||t===i))return e.replace(re,"");if(!e||!(t=ai(t)))return e;var r=dn(e);return yi(r,Qt(r,dn(t))).join("")},Fn.truncate=function(e,t){var n=30,r="...";if(Ja(t)){var o="separator"in t?t.separator:o;n="length"in t?hs(t.length):n,r="omission"in t?ai(t.omission):r}var a=(e=vs(e)).length;if(rn(e)){var s=dn(e);a=s.length}if(n>=a)return e;var l=n-un(r);if(l<1)return r;var c=s?yi(s,0,l).join(""):e.slice(0,l);if(o===i)return c+r;if(s&&(l+=c.length-l),is(o)){if(e.slice(l).search(o)){var u,d=c;for(o.global||(o=Ee(o.source,vs(fe.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var f=u.index;c=c.slice(0,f===i?l:f)}}else if(e.indexOf(ai(o),l)!=l){var h=c.lastIndexOf(o);h>-1&&(c=c.slice(0,h))}return c+r},Fn.unescape=function(e){return(e=vs(e))&&G.test(e)?e.replace(V,hn):e},Fn.uniqueId=function(e){var t=++je;return vs(e)+t},Fn.upperCase=Ys,Fn.upperFirst=Ks,Fn.each=va,Fn.eachRight=ya,Fn.first=Vo,al(Fn,(ml={},yr(Fn,function(e,t){Le.call(Fn.prototype,t)||(ml[t]=e)}),ml),{chain:!1}),Fn.VERSION="4.17.21",Et(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Fn[e].placeholder=Fn}),Et(["drop","take"],function(e,t){Hn.prototype[e]=function(n){n=n===i?1:mn(hs(n),0);var r=this.__filtered__&&!t?new Hn(this):this.clone();return r.__filtered__?r.__takeCount__=vn(n,r.__takeCount__):r.__views__.push({size:vn(n,h),type:e+(r.__dir__<0?"Right":"")}),r},Hn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Et(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;Hn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:oo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Et(["head","last"],function(e,t){var n="take"+(t?"Right":"");Hn.prototype[e]=function(){return this[n](1).value()[0]}}),Et(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Hn.prototype[e]=function(){return this.__filtered__?new Hn(this):this[n](1)}}),Hn.prototype.compact=function(){return this.filter(nl)},Hn.prototype.find=function(e){return this.filter(e).head()},Hn.prototype.findLast=function(e){return this.reverse().find(e)},Hn.prototype.invokeMap=Gr(function(e,t){return"function"==typeof e?new Hn(this):this.map(function(n){return _r(n,e,t)})}),Hn.prototype.reject=function(e){return this.filter(ja(oo(e)))},Hn.prototype.slice=function(e,t){e=hs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Hn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=hs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Hn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hn.prototype.toArray=function(){return this.take(h)},yr(Hn.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Fn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(Fn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Hn,c=s[0],u=l||Ua(t),d=function(e){var t=o.apply(Fn,Rt([e],s));return r&&f?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var f=this.__chain__,h=!!this.__actions__.length,p=a&&!f,g=l&&!h;if(!a&&u){t=g?t:new Hn(this);var m=e.apply(t,s);return m.__actions__.push({func:fa,args:[d],thisArg:i}),new $n(m,f)}return p&&g?e.apply(this,s):(m=this.thru(d),p?r?m.value()[0]:m.value():m)})}),Et(["pop","push","shift","sort","splice","unshift"],function(e){var t=_e[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Fn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ua(i)?i:[],e)}return this[n](function(n){return t.apply(Ua(n)?n:[],e)})}}),yr(Hn.prototype,function(e,t){var n=Fn[t];if(n){var r=n.name+"";Le.call(Tn,r)||(Tn[r]=[]),Tn[r].push({name:t,func:n})}}),Tn[Ni(i,2).name]=[{name:"wrapper",func:i}],Hn.prototype.clone=function(){var e=new Hn(this.__wrapped__);return e.__actions__=Si(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Si(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Si(this.__views__),e},Hn.prototype.reverse=function(){if(this.__filtered__){var e=new Hn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ua(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=vn(t,e+a);break;case"takeRight":e=mn(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,d=u.length,f=0,h=vn(l,this.__takeCount__);if(!n||!r&&i==l&&h==l)return di(e,this.__actions__);var p=[];e:for(;l--&&f<h;){for(var g=-1,m=e[c+=t];++g<d;){var v=u[g],y=v.iteratee,b=v.type,x=y(m);if(2==b)m=x;else if(!x){if(1==b)continue e;break e}}p[f++]=m}return p},Fn.prototype.at=ha,Fn.prototype.chain=function(){return da(this)},Fn.prototype.commit=function(){return new $n(this.value(),this.__chain__)},Fn.prototype.next=function(){this.__values__===i&&(this.__values__=ds(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Fn.prototype.plant=function(e){for(var t,n=this;n instanceof Bn;){var r=Fo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Fn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hn){var t=e;return this.__actions__.length&&(t=new Hn(this)),(t=t.reverse()).__actions__.push({func:fa,args:[Jo],thisArg:i}),new $n(t,this.__chain__)}return this.thru(Jo)},Fn.prototype.toJSON=Fn.prototype.valueOf=Fn.prototype.value=function(){return di(this.__wrapped__,this.__actions__)},Fn.prototype.first=Fn.prototype.head,Ke&&(Fn.prototype[Ke]=function(){return this}),Fn}();dt._=pn,(r=function(){return pn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},94495:(e,t,n)=>{var r=n(78942);e.exports=function(){return r.Date.now()}},97331:(e,t,n)=>{var r=n(12784),i=n(41580);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},6131:(e,t,n)=>{var r=n(86403),i=n(41580),o=n(51187),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},90320:(e,t)=>{"use strict";if("function"==typeof Symbol&&Symbol.for){var n=Symbol.for;n("react.element"),n("react.portal"),n("react.fragment"),n("react.strict_mode"),n("react.profiler"),n("react.provider"),n("react.context"),n("react.forward_ref"),n("react.suspense"),n("react.suspense_list"),n("react.memo"),n("react.lazy"),n("react.block"),n("react.server.block"),n("react.fundamental"),n("react.debug_trace_mode"),n("react.legacy_hidden")}},524:(e,t,n)=>{"use strict";n(90320)},1871:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case a:case f:case h:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case g:case p:case l:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference"),t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=o,t.Lazy=g,t.Memo=p,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.SuspenseList=h,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return v(e)===c},t.isContextProvider=function(e){return v(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return v(e)===d},t.isFragment=function(e){return v(e)===o},t.isLazy=function(e){return v(e)===g},t.isMemo=function(e){return v(e)===p},t.isPortal=function(e){return v(e)===i},t.isProfiler=function(e){return v(e)===s},t.isStrictMode=function(e){return v(e)===a},t.isSuspense=function(e){return v(e)===f},t.isSuspenseList=function(e){return v(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===a||e===f||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===p||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=v},23819:(e,t,n)=>{"use strict";e.exports=n(1871)},47093:(e,t,n)=>{var r=n(15937);function i(e,t){var n,i=null;if(!e||"string"!=typeof e)return i;for(var o,a,s=r(e),l="function"==typeof t,c=0,u=s.length;c<u;c++)o=(n=s[c]).property,a=n.value,l?t(o,a,n):a&&(i||(i={}),i[o]=a);return i}e.exports=i,e.exports.default=i},71761:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},93296:(e,t,n)=>{"use strict";var r=n(95478),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,u=r[1];return s(function(){i.value=n,i.getSnapshot=t,c(i)&&u({inst:i})},[e,n,t]),a(function(){return c(i)&&u({inst:i}),e(function(){c(i)&&u({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},91435:(e,t,n)=>{"use strict";var r=n(95478),i=n(58139),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useSyncExternalStore,s=r.useRef,l=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(a=e,t):(a=e,s=n)}var a,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,n,r,i]);var h=a(e,d[0],d[1]);return l(function(){f.hasValue=!0,f.value=h},[h]),u(h),h}},58139:(e,t,n)=>{"use strict";e.exports=n(93296)},37121:(e,t,n)=>{"use strict";e.exports=n(91435)},78920:(e,t,n)=>{var r=n(14319).default;function i(t,n){if("function"==typeof WeakMap)var o=new WeakMap,a=new WeakMap;return(e.exports=i=function(e,t){if(!t&&e&&e.__esModule)return e;var n,i,s={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return s;if(n=t?a:o){if(n.has(e))return n.get(e);n.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((i=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(i.get||i.set)?n(s,l,i):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(t,n)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},14319:e=>{function t(n){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},53373:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,o(n)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},83705:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(86284),i=n(74430),o=n(27985);function a(e){return function(e){if(Array.isArray(e))return(0,r.A)(e)}(e)||(0,i.A)(e)||(0,o.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},36589:(e,t,n)=>{"use strict";n.d(t,{r:()=>od});var r=n(89575),i=n(17502),o=n(95478),a=n.t(o,2),s=n(46214);const l={top:5,bottom:5,left:5,right:5};var c=n(54357),u=n(65990);const d=e=>e,f=(()=>{let e=d;return{configure(t){e=t},generate:t=>e(t),reset(){e=d}}})(),h={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function p(e,t,n="Mui"){const r=h[t];return r?`${n}-${r}`:`${f.generate(e)}-${t}`}function g(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=p(e,t,n)}),r}function m(e,t,n=void 0){const r={};for(const i in e){const o=e[i];let a="",s=!0;for(let e=0;e<o.length;e+=1){const r=o[e];r&&(a+=(!0===s?"":" ")+t(r),s=!1,n&&n[r]&&(a+=" "+n[r]))}r[i]=a}return r}function v(e){return p("MuiChartsTooltip",e)}const y=g("MuiChartsTooltip",["root","paper","table","row","cell","mark","markContainer","labelCell","valueCell","axisValueCell"]),b=e=>m({root:["root"],paper:["paper"],table:["table"],row:["row"],cell:["cell"],mark:["mark"],markContainer:["markContainer"],labelCell:["labelCell"],valueCell:["valueCell"],axisValueCell:["axisValueCell"]},v,e);var x=n(97043),A=n(2628),w=n(10184);const k=e=>e.series,C=(0,w.M)([k],e=>e.processedSeries),E=(0,w.M)([k],e=>e.seriesConfig);function S(){const e=(0,x.P)();return(0,A.d)(e,C)}const M=e=>e.interaction,_=(0,w.M)([M],e=>void 0!==e),T=(0,w.M)([M],e=>e?.item??null),I=(0,w.M)([M],e=>e?.pointer??null),P=(0,w.M)([I],e=>e&&e.x),R=(0,w.M)([I],e=>e&&e.y),L=(0,w.M)([T],e=>null!==e);var j=n(7967);function D(e,t){return function(n,r){if("tick"===r.location){const t=r.scale.domain();return t[0]===t[1]?r.scale.tickFormat(1)(n):r.scale.tickFormat(e)(n)}return"zoom-slider-tooltip"===r.location?t.tickFormat(2)(n):`${n}`}}function O(e){return"band"===e.scaleType}function N(e){return"point"===e.scaleType}function F(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function z(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function B(e){let t,n,r;function i(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<0?i=t+1:o=t}while(i<o)}return i}return 2!==e.length?(t=F,n=(t,n)=>F(e(t),n),r=(t,n)=>e(t)-n):(t=e===F||e===z?e:$,n=e,r=e),{left:i,center:function(e,t,n=0,o=e.length){const a=i(e,t,n,o-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<=0?i=t+1:o=t}while(i<o)}return i}}}function $(){return 0}const H=B(F),U=H.right,W=(H.left,B(function(e){return null===e?NaN:+e}).center,U);function V(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function q(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}function G(){var e,t=[.5],n=[0,1],r=1;function i(i){return null!=i&&i<=i?n[W(t,i,0,r)]:e}return i.domain=function(e){return arguments.length?(t=Array.from(e),r=Math.min(t.length,n.length-1),i):t.slice()},i.range=function(e){return arguments.length?(n=Array.from(e),r=Math.min(t.length,n.length-1),i):n.slice()},i.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return G().domain(t).range(n).unknown(e)},V.apply(i,arguments)}function Y(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function K(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function X(){}var Z=.7,Q=1/Z,J="\\s*([+-]?\\d+)\\s*",ee="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",te="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ne=/^#([0-9a-f]{3,8})$/,re=new RegExp(`^rgb\\(${J},${J},${J}\\)$`),ie=new RegExp(`^rgb\\(${te},${te},${te}\\)$`),oe=new RegExp(`^rgba\\(${J},${J},${J},${ee}\\)$`),ae=new RegExp(`^rgba\\(${te},${te},${te},${ee}\\)$`),se=new RegExp(`^hsl\\(${ee},${te},${te}\\)$`),le=new RegExp(`^hsla\\(${ee},${te},${te},${ee}\\)$`),ce={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ue(){return this.rgb().formatHex()}function de(){return this.rgb().formatRgb()}function fe(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ne.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?he(t):3===n?new me(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?pe(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?pe(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=re.exec(e))?new me(t[1],t[2],t[3],1):(t=ie.exec(e))?new me(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=oe.exec(e))?pe(t[1],t[2],t[3],t[4]):(t=ae.exec(e))?pe(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=se.exec(e))?we(t[1],t[2]/100,t[3]/100,1):(t=le.exec(e))?we(t[1],t[2]/100,t[3]/100,t[4]):ce.hasOwnProperty(e)?he(ce[e]):"transparent"===e?new me(NaN,NaN,NaN,0):null}function he(e){return new me(e>>16&255,e>>8&255,255&e,1)}function pe(e,t,n,r){return r<=0&&(e=t=n=NaN),new me(e,t,n,r)}function ge(e,t,n,r){return 1===arguments.length?((i=e)instanceof X||(i=fe(i)),i?new me((i=i.rgb()).r,i.g,i.b,i.opacity):new me):new me(e,t,n,null==r?1:r);var i}function me(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ve(){return`#${Ae(this.r)}${Ae(this.g)}${Ae(this.b)}`}function ye(){const e=be(this.opacity);return`${1===e?"rgb(":"rgba("}${xe(this.r)}, ${xe(this.g)}, ${xe(this.b)}${1===e?")":`, ${e})`}`}function be(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function xe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ae(e){return((e=xe(e))<16?"0":"")+e.toString(16)}function we(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ce(e,t,n,r)}function ke(e){if(e instanceof Ce)return new Ce(e.h,e.s,e.l,e.opacity);if(e instanceof X||(e=fe(e)),!e)return new Ce;if(e instanceof Ce)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Ce(a,s,l,e.opacity)}function Ce(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ee(e){return(e=(e||0)%360)<0?e+360:e}function Se(e){return Math.max(0,Math.min(1,e||0))}function Me(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function _e(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}Y(X,fe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ue,formatHex:ue,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ke(this).formatHsl()},formatRgb:de,toString:de}),Y(me,ge,K(X,{brighter(e){return e=null==e?Q:Math.pow(Q,e),new me(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Z:Math.pow(Z,e),new me(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new me(xe(this.r),xe(this.g),xe(this.b),be(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ve,formatHex:ve,formatHex8:function(){return`#${Ae(this.r)}${Ae(this.g)}${Ae(this.b)}${Ae(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ye,toString:ye})),Y(Ce,function(e,t,n,r){return 1===arguments.length?ke(e):new Ce(e,t,n,null==r?1:r)},K(X,{brighter(e){return e=null==e?Q:Math.pow(Q,e),new Ce(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Z:Math.pow(Z,e),new Ce(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new me(Me(e>=240?e-240:e+120,i,r),Me(e,i,r),Me(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Ce(Ee(this.h),Se(this.s),Se(this.l),be(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=be(this.opacity);return`${1===e?"hsl(":"hsla("}${Ee(this.h)}, ${100*Se(this.s)}%, ${100*Se(this.l)}%${1===e?")":`, ${e})`}`}}));const Te=e=>()=>e;function Ie(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Te(isNaN(e)?t:e)}const Pe=function e(t){var n=function(e){return 1===(e=+e)?Ie:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Te(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=ge(e)).r,(t=ge(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Ie(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Re(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=ge(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}function Le(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=$e(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}function je(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function De(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Oe(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=$e(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}Re(function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return _e((n-r/t)*t,a,i,o,s)}}),Re(function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return _e((n-r/t)*t,i,o,a,s)}});var Ne=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Fe=new RegExp(Ne.source,"g");function ze(e,t){var n,r,i,o=Ne.lastIndex=Fe.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=Ne.exec(e))&&(r=Fe.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:De(n,r)})),o=Fe.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function Be(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}}function $e(e,t){var n,r,i=typeof t;return null==t||"boolean"===i?Te(t):("number"===i?De:"string"===i?(n=fe(t))?(t=n,Pe):ze:t instanceof fe?Pe:t instanceof Date?je:(r=t,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(t)?Le:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Oe:De:Be))(e,t)}function He(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Ue(e){return+e}var We=[0,1];function Ve(e){return e}function qe(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function Ge(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=qe(i,r),o=n(a,o)):(r=qe(r,i),o=n(o,a)),function(e){return o(r(e))}}function Ye(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=qe(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=W(e,t,1,r)-1;return o[n](i[n](t))}}function Ke(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Xe(){var e,t,n,r,i,o,a=We,s=We,l=$e,c=Ve;function u(){var e,t,n,l=Math.min(a.length,s.length);return c!==Ve&&(e=a[0],t=a[l-1],e>t&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),r=l>2?Ye:Ge,i=o=null,d}function d(t){return null==t||isNaN(t=+t)?n:(i||(i=r(a.map(e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((o||(o=r(s,a.map(e),De)))(n)))},d.domain=function(e){return arguments.length?(a=Array.from(e,Ue),u()):a.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),u()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=He,u()},d.clamp=function(e){return arguments.length?(c=!!e||Ve,u()):c!==Ve},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}function Ze(){return Xe()(Ve,Ve)}const Qe=Math.sqrt(50),Je=Math.sqrt(10),et=Math.sqrt(2);function tt(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=Qe?10:o>=Je?5:o>=et?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/a,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*a,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?tt(e,t,2*n):[s,l,c]}function nt(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[i,o,a]=r?tt(t,e,n):tt(e,t,n);if(!(o>=i))return[];const s=o-i+1,l=new Array(s);if(r)if(a<0)for(let e=0;e<s;++e)l[e]=(o-e)/-a;else for(let e=0;e<s;++e)l[e]=(o-e)*a;else if(a<0)for(let e=0;e<s;++e)l[e]=(i+e)/-a;else for(let e=0;e<s;++e)l[e]=(i+e)*a;return l}function rt(e,t,n){return tt(e=+e,t=+t,n=+n)[2]}function it(e,t,n){n=+n;const r=(t=+t)<(e=+e),i=r?rt(t,e,n):rt(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}var ot,at=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function st(e){if(!(t=at.exec(e)))throw new Error("invalid format: "+e);var t;return new lt({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function lt(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function ct(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ut(e){return(e=ct(Math.abs(e)))?e[1]:NaN}function dt(e,t){var n=ct(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}st.prototype=lt.prototype,lt.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const ft={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>dt(100*e,t),r:dt,s:function(e,t){var n=ct(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(ot=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+ct(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function ht(e){return e}var pt,gt,mt,vt=Array.prototype.map,yt=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function bt(e){var t=e.domain;return e.ticks=function(e){var n=t();return nt(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return function(e,t,n,r){var i,o=it(e,t,n);switch((r=st(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ut(t)/3)))-ut(Math.abs(e)))}(o,a))||(r.precision=i),mt(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ut(t)-ut(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-ut(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return gt(r)}(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i,o=t(),a=0,s=o.length-1,l=o[a],c=o[s],u=10;for(c<l&&(i=l,l=c,c=i,i=a,a=s,s=i);u-- >0;){if((i=rt(l,c,n))===r)return o[a]=l,o[s]=c,t(o);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i}r=i}return e},e}function xt(){var e=Ze();return e.copy=function(){return Ke(e,xt())},V.apply(e,arguments),bt(e)}function At(){var e=bt(function(){var e,t,n,r,i,o=0,a=1,s=Ve,l=!1;function c(t){return null==t||isNaN(t=+t)?i:s(0===n?.5:(t=(r(t)-e)*n,l?Math.max(0,Math.min(1,t)):t))}function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),c):[s(0),s(1)]}}return c.domain=function(i){return arguments.length?([o,a]=i,e=r(o=+o),t=r(a=+a),n=e===t?0:1/(t-e),c):[o,a]},c.clamp=function(e){return arguments.length?(l=!!e,c):l},c.interpolator=function(e){return arguments.length?(s=e,c):s},c.range=u($e),c.rangeRound=u(He),c.unknown=function(e){return arguments.length?(i=e,c):i},function(i){return r=i,e=i(o),t=i(a),n=e===t?0:1/(t-e),c}}()(Ve));return e.copy=function(){return t=e,At().domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown());var t},q.apply(e,arguments)}pt=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?ht:(t=vt.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?ht:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(vt.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=st(e)).fill,n=e.align,d=e.sign,f=e.symbol,h=e.zero,p=e.width,g=e.comma,m=e.precision,v=e.trim,y=e.type;"n"===y?(g=!0,y="g"):ft[y]||(void 0===m&&(m=12),v=!0,y="g"),(h||"0"===t&&"="===n)&&(h=!0,t="0",n="=");var b="$"===f?i:"#"===f&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",x="$"===f?o:/[%p]/.test(y)?l:"",A=ft[y],w=/[defgprs%]/.test(y);function k(e){var i,o,l,f=b,k=x;if("c"===y)k=A(e)+k,e="";else{var C=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:A(Math.abs(e),m),v&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),C&&0===+e&&"+"!==d&&(C=!1),f=(C?"("===d?d:c:"-"===d||"("===d?"":d)+f,k=("s"===y?yt[8+ot/3]:"")+k+(C&&"("===d?")":""),w)for(i=-1,o=e.length;++i<o;)if(48>(l=e.charCodeAt(i))||l>57){k=(46===l?a+e.slice(i+1):e.slice(i))+k,e=e.slice(0,i);break}}g&&!h&&(e=r(e,1/0));var E=f.length+e.length+k.length,S=E<p?new Array(p-E+1).join(t):"";switch(g&&h&&(e=r(S+e,S.length?p-k.length:1/0),S=""),n){case"<":e=f+e+k+S;break;case"=":e=f+S+e+k;break;case"^":e=S.slice(0,E=S.length>>1)+f+e+k+S.slice(E);break;default:e=S+f+e+k}return s(e)}return m=void 0===m?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),k.toString=function(){return e+""},k}return{format:d,formatPrefix:function(e,t){var n=d(((e=st(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(ut(t)/3))),i=Math.pow(10,-r),o=yt[8+r/3];return function(e){return n(i*e)+o}}}}({thousands:",",grouping:[3],currency:["$",""]}),gt=pt.format,mt=pt.formatPrefix;class wt extends Map{constructor(e,t=Ct){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(kt(this,e))}has(e){return super.has(kt(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}(this,e))}}function kt({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Ct(e){return null!==e&&"object"==typeof e?e.valueOf():e}Set;const Et=Symbol("implicit");function St(){var e=new wt,t=[],n=[],r=Et;function i(i){let o=e.get(i);if(void 0===o){if(r!==Et)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new wt;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return St(t,n).unknown(r)},V.apply(i,arguments),i}function Mt(e){return"piecewise"===e.type?G(e.thresholds,e.colors):At([e.min??0,e.max??100],e.color)}function _t(e){return e.values?St(e.values,e.colors).unknown(e.unknownColor??null):St(e.colors.map((e,t)=>t),e.colors).unknown(e.unknownColor??null)}function Tt(e){return"ordinal"===e.type?_t(e):Mt(e)}function It(e){const{tickMaxStep:t,tickMinStep:n,tickNumber:r,range:i,domain:o}=e,a=void 0===n?999:Math.floor(Math.abs(o[1]-o[0])/n),s=void 0===t?2:Math.ceil(Math.abs(o[1]-o[0])/t),l=r??Math.floor(Math.abs(i[1]-i[0])/50);return Math.min(a,Math.max(s,l))}function Pt(e,t){return 0===t[1]-t[0]?1:e/((t[1]-t[0])/100)}function Rt(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}function Lt(e){return Math.log(e)}function jt(e){return Math.exp(e)}function Dt(e){return-Math.log(-e)}function Ot(e){return-Math.exp(-e)}function Nt(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Ft(e){return(t,n)=>-e(-t,n)}function zt(){const e=function(e){const t=e(Lt,jt),n=t.domain;let r,i,o=10;function a(){return r=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(o),i=function(e){return 10===e?Nt:e===Math.E?Math.exp:t=>Math.pow(e,t)}(o),n()[0]<0?(r=Ft(r),i=Ft(i),e(Dt,Ot)):e(Lt,jt),t}return t.base=function(e){return arguments.length?(o=+e,a()):o},t.domain=function(e){return arguments.length?(n(e),a()):n()},t.ticks=e=>{const t=n();let a=t[0],s=t[t.length-1];const l=s<a;l&&([a,s]=[s,a]);let c,u,d=r(a),f=r(s);const h=null==e?10:+e;let p=[];if(!(o%1)&&f-d<h){if(d=Math.floor(d),f=Math.ceil(f),a>0){for(;d<=f;++d)for(c=1;c<o;++c)if(u=d<0?c/i(-d):c*i(d),!(u<a)){if(u>s)break;p.push(u)}}else for(;d<=f;++d)for(c=o-1;c>=1;--c)if(u=d>0?c/i(-d):c*i(d),!(u<a)){if(u>s)break;p.push(u)}2*p.length<h&&(p=nt(a,s,h))}else p=nt(d,f,Math.min(f-d,h)).map(i);return l?p.reverse():p},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===o?"s":","),"function"!=typeof n&&(o%1||null!=(n=st(n)).precision||(n.trim=!0),n=gt(n)),e===1/0)return n;const a=Math.max(1,o*e/t.ticks().length);return e=>{let t=e/i(Math.round(r(e)));return t*o<o-.5&&(t*=o),t<=a?n(e):""}},t.nice=()=>n(Rt(n(),{floor:e=>i(Math.floor(r(e))),ceil:e=>i(Math.ceil(r(e)))})),t}(Xe()).domain([1,10]);return e.copy=()=>Ke(e,zt()).base(e.base()),V.apply(e,arguments),e}function Bt(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function $t(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Ht(e){return e<0?-e*e:e*e}function Ut(){var e=function(e){var t=e(Ve,Ve),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(Ve,Ve):.5===n?e($t,Ht):e(Bt(n),Bt(1/n)):n},bt(t)}(Xe());return e.copy=function(){return Ke(e,Ut()).exponent(e.exponent())},V.apply(e,arguments),e}const Wt=1e3,Vt=6e4,qt=36e5,Gt=864e5,Yt=6048e5,Kt=31536e6,Xt=new Date,Zt=new Date;function Qt(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{const t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),i.range=(n,r,o)=>{const a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;let s;do{a.push(s=new Date(+n)),t(n,o),e(n)}while(s<n&&n<r);return a},i.filter=n=>Qt(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(i.count=(t,r)=>(Xt.setTime(+t),Zt.setTime(+r),e(Xt),e(Zt),Math.floor(n(Xt,Zt))),i.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i:null)),i}const Jt=Qt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Jt.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?Qt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Jt:null),Jt.range;const en=Qt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Wt)},(e,t)=>(t-e)/Wt,e=>e.getUTCSeconds()),tn=(en.range,Qt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wt)},(e,t)=>{e.setTime(+e+t*Vt)},(e,t)=>(t-e)/Vt,e=>e.getMinutes())),nn=(tn.range,Qt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Vt)},(e,t)=>(t-e)/Vt,e=>e.getUTCMinutes())),rn=(nn.range,Qt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wt-e.getMinutes()*Vt)},(e,t)=>{e.setTime(+e+t*qt)},(e,t)=>(t-e)/qt,e=>e.getHours())),on=(rn.range,Qt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*qt)},(e,t)=>(t-e)/qt,e=>e.getUTCHours())),an=(on.range,Qt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Vt)/Gt,e=>e.getDate()-1)),sn=(an.range,Qt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Gt,e=>e.getUTCDate()-1)),ln=(sn.range,Qt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Gt,e=>Math.floor(e/Gt)));function cn(e){return Qt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Vt)/Yt)}ln.range;const un=cn(0),dn=cn(1),fn=cn(2),hn=cn(3),pn=cn(4),gn=cn(5),mn=cn(6);function vn(e){return Qt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/Yt)}un.range,dn.range,fn.range,hn.range,pn.range,gn.range,mn.range;const yn=vn(0),bn=vn(1),xn=vn(2),An=vn(3),wn=vn(4),kn=vn(5),Cn=vn(6),En=(yn.range,bn.range,xn.range,An.range,wn.range,kn.range,Cn.range,Qt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear()),e=>e.getMonth())),Sn=(En.range,Qt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear()),e=>e.getUTCMonth())),Mn=(Sn.range,Qt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear()));Mn.every=e=>isFinite(e=Math.floor(e))&&e>0?Qt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}):null,Mn.range;const _n=Qt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());function Tn(e,t,n,r,i,o){const a=[[en,1,Wt],[en,5,5e3],[en,15,15e3],[en,30,3e4],[o,1,Vt],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,qt],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,Gt],[r,2,1728e5],[n,1,Yt],[t,1,2592e6],[t,3,7776e6],[e,1,Kt]];function s(t,n,r){const i=Math.abs(n-t)/r,o=B(([,,e])=>e).right(a,i);if(o===a.length)return e.every(it(t/Kt,n/Kt,r));if(0===o)return Jt.every(Math.max(it(t,n,r),1));const[s,l]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return s.every(l)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const i=n&&"function"==typeof n.range?n:s(e,t,n),o=i?i.range(e,+t+1):[];return r?o.reverse():o},s]}_n.every=e=>isFinite(e=Math.floor(e))&&e>0?Qt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null,_n.range;const[In,Pn]=Tn(_n,Sn,yn,ln,on,nn),[Rn,Ln]=Tn(Mn,En,un,an,rn,tn);function jn(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Dn(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function On(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var Nn,Fn,zn,Bn={"-":"",_:" ",0:"0"},$n=/^\s*\d+/,Hn=/^%/,Un=/[\\^$*+?|[\]().{}]/g;function Wn(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function Vn(e){return e.replace(Un,"\\$&")}function qn(e){return new RegExp("^(?:"+e.map(Vn).join("|")+")","i")}function Gn(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function Yn(e,t,n){var r=$n.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Kn(e,t,n){var r=$n.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Xn(e,t,n){var r=$n.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Zn(e,t,n){var r=$n.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Qn(e,t,n){var r=$n.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Jn(e,t,n){var r=$n.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function er(e,t,n){var r=$n.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function tr(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function nr(e,t,n){var r=$n.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function rr(e,t,n){var r=$n.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ir(e,t,n){var r=$n.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function or(e,t,n){var r=$n.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ar(e,t,n){var r=$n.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function sr(e,t,n){var r=$n.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function lr(e,t,n){var r=$n.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function cr(e,t,n){var r=$n.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function ur(e,t,n){var r=$n.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function dr(e,t,n){var r=Hn.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function fr(e,t,n){var r=$n.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function hr(e,t,n){var r=$n.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function pr(e,t){return Wn(e.getDate(),t,2)}function gr(e,t){return Wn(e.getHours(),t,2)}function mr(e,t){return Wn(e.getHours()%12||12,t,2)}function vr(e,t){return Wn(1+an.count(Mn(e),e),t,3)}function yr(e,t){return Wn(e.getMilliseconds(),t,3)}function br(e,t){return yr(e,t)+"000"}function xr(e,t){return Wn(e.getMonth()+1,t,2)}function Ar(e,t){return Wn(e.getMinutes(),t,2)}function wr(e,t){return Wn(e.getSeconds(),t,2)}function kr(e){var t=e.getDay();return 0===t?7:t}function Cr(e,t){return Wn(un.count(Mn(e)-1,e),t,2)}function Er(e){var t=e.getDay();return t>=4||0===t?pn(e):pn.ceil(e)}function Sr(e,t){return e=Er(e),Wn(pn.count(Mn(e),e)+(4===Mn(e).getDay()),t,2)}function Mr(e){return e.getDay()}function _r(e,t){return Wn(dn.count(Mn(e)-1,e),t,2)}function Tr(e,t){return Wn(e.getFullYear()%100,t,2)}function Ir(e,t){return Wn((e=Er(e)).getFullYear()%100,t,2)}function Pr(e,t){return Wn(e.getFullYear()%1e4,t,4)}function Rr(e,t){var n=e.getDay();return Wn((e=n>=4||0===n?pn(e):pn.ceil(e)).getFullYear()%1e4,t,4)}function Lr(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Wn(t/60|0,"0",2)+Wn(t%60,"0",2)}function jr(e,t){return Wn(e.getUTCDate(),t,2)}function Dr(e,t){return Wn(e.getUTCHours(),t,2)}function Or(e,t){return Wn(e.getUTCHours()%12||12,t,2)}function Nr(e,t){return Wn(1+sn.count(_n(e),e),t,3)}function Fr(e,t){return Wn(e.getUTCMilliseconds(),t,3)}function zr(e,t){return Fr(e,t)+"000"}function Br(e,t){return Wn(e.getUTCMonth()+1,t,2)}function $r(e,t){return Wn(e.getUTCMinutes(),t,2)}function Hr(e,t){return Wn(e.getUTCSeconds(),t,2)}function Ur(e){var t=e.getUTCDay();return 0===t?7:t}function Wr(e,t){return Wn(yn.count(_n(e)-1,e),t,2)}function Vr(e){var t=e.getUTCDay();return t>=4||0===t?wn(e):wn.ceil(e)}function qr(e,t){return e=Vr(e),Wn(wn.count(_n(e),e)+(4===_n(e).getUTCDay()),t,2)}function Gr(e){return e.getUTCDay()}function Yr(e,t){return Wn(bn.count(_n(e)-1,e),t,2)}function Kr(e,t){return Wn(e.getUTCFullYear()%100,t,2)}function Xr(e,t){return Wn((e=Vr(e)).getUTCFullYear()%100,t,2)}function Zr(e,t){return Wn(e.getUTCFullYear()%1e4,t,4)}function Qr(e,t){var n=e.getUTCDay();return Wn((e=n>=4||0===n?wn(e):wn.ceil(e)).getUTCFullYear()%1e4,t,4)}function Jr(){return"+0000"}function ei(){return"%"}function ti(e){return+e}function ni(e){return Math.floor(+e/1e3)}function ri(e){return new Date(e)}function ii(e){return e instanceof Date?+e:+new Date(+e)}function oi(e,t,n,r,i,o,a,s,l,c){var u=Ze(),d=u.invert,f=u.domain,h=c(".%L"),p=c(":%S"),g=c("%I:%M"),m=c("%I %p"),v=c("%a %d"),y=c("%b %d"),b=c("%B"),x=c("%Y");function A(e){return(l(e)<e?h:s(e)<e?p:a(e)<e?g:o(e)<e?m:r(e)<e?i(e)<e?v:y:n(e)<e?b:x)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,ii)):f().map(ri)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?A:c(t)},u.nice=function(e){var n=f();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?f(Rt(n,e)):u},u.copy=function(){return Ke(u,oi(e,t,n,r,i,o,a,s,l,c))},u}function ai(){return V.apply(oi(Rn,Ln,Mn,En,un,an,rn,tn,en,Fn).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function si(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function li(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function ci(){var e=function(e){var t=1,n=e(si(t),li(t));return n.constant=function(n){return arguments.length?e(si(t=+n),li(t)):t},bt(n)}(Xe());return e.copy=function(){return Ke(e,ci()).constant(e.constant())},V.apply(e,arguments)}function ui(e,t){const n=ci(e,t),r=n.ticks,{negativeScale:i,linearScale:o,positiveScale:a}=function(e){const t=e.constant(),n=e.domain();return{negativeScale:zt([n[0],Math.min(n[1],-t)],e.range()),linearScale:xt([Math.max(n[0],-t),Math.min(n[1],t)],e.range()),positiveScale:zt([Math.max(n[0],t),n[1]],e.range())}}(n);return n.ticks=e=>{const t=r(e),s=n.constant();let l=0,c=0,u=0;t.forEach(e=>{e>-s&&e<s&&(c+=1),e<=-s&&(l+=1),e>=s&&(u+=1)});const d=[];if(l>0&&d.push(...i.ticks(l)),c>0){const e=o.ticks(c);d.at(-1)===e[0]?d.push(...e.slice(1)):d.push(...e)}if(u>0){const e=a.ticks(u);d.at(-1)===e[0]?d.push(...e.slice(1)):d.push(...e)}return d},n.tickFormat=(e=10,t)=>{const r=n.constant(),[s,l]=n.domain(),c=l-s,u=i.domain(),d=u[1]-u[0],f=(0===c?0:d/c)*e,h=o.domain(),p=h[1]-h[0],g=(0===c?0:p/c)*e,m=a.domain(),v=m[1]-m[0],y=(0===c?0:v/c)*e,b=i.tickFormat(f,t),x=o.tickFormat(g,t),A=a.tickFormat(y,t);return e=>(e.valueOf()<=-r?b:e.valueOf()>=r?A:x)(e)},n}function di(e,t,n){switch(e){case"log":return zt(t,n);case"pow":return Ut(t,n);case"sqrt":return function(){return Ut.apply(null,arguments).exponent(.5)}(t,n);case"time":return ai(t,n);case"utc":return function(){return V.apply(oi(In,Pn,_n,Sn,yn,sn,on,nn,en,zn).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}(t,n);case"symlog":return ui(t,n);default:return xt(t,n)}}Nn=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=qn(i),u=Gn(i),d=qn(o),f=Gn(o),h=qn(a),p=Gn(a),g=qn(s),m=Gn(s),v=qn(l),y=Gn(l),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:pr,e:pr,f:br,g:Ir,G:Rr,H:gr,I:mr,j:vr,L:yr,m:xr,M:Ar,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:ti,s:ni,S:wr,u:kr,U:Cr,V:Sr,w:Mr,W:_r,x:null,X:null,y:Tr,Y:Pr,Z:Lr,"%":ei},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:jr,e:jr,f:zr,g:Xr,G:Qr,H:Dr,I:Or,j:Nr,L:Fr,m:Br,M:$r,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:ti,s:ni,S:Hr,u:Ur,U:Wr,V:qr,w:Gr,W:Yr,x:null,X:null,y:Kr,Y:Zr,Z:Jr,"%":ei},A={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return C(e,t,n,r)},d:ir,e:ir,f:ur,g:er,G:Jn,H:ar,I:ar,j:or,L:cr,m:rr,M:sr,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:nr,Q:fr,s:hr,S:lr,u:Kn,U:Xn,V:Zn,w:Yn,W:Qn,x:function(e,t,r){return C(e,n,t,r)},X:function(e,t,n){return C(e,r,t,n)},y:er,Y:Jn,Z:tr,"%":dr};function w(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=Bn[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function k(e,t){return function(n){var r,i,o=On(1900,void 0,1);if(C(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Dn(On(o.y,0,1))).getUTCDay(),r=i>4||0===i?bn.ceil(r):bn(r),r=sn.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=jn(On(o.y,0,1))).getDay(),r=i>4||0===i?dn.ceil(r):dn(r),r=an.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Dn(On(o.y,0,1)).getUTCDay():jn(On(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Dn(o)):jn(o)}}function C(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=A[i in Bn?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=w(n,b),b.X=w(r,b),b.c=w(t,b),x.x=w(n,x),x.X=w(r,x),x.c=w(t,x),{format:function(e){var t=w(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=k(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=w(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=k(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Fn=Nn.format,Nn.parse,zn=Nn.utcFormat,Nn.utcParse;const fi=e=>e?.[0]instanceof Date;function hi(e,t,n){const r=ai(e,t);return(e,{location:t})=>"tick"===t?r.tickFormat(n)(e):`${e.toLocaleString()}`}let pi,gi;const mi=new class{types=(()=>new Set)();constructor(){if(pi)throw new Error("You can only create one instance!");pi=this.types}addType(e){this.types.add(e)}getTypes(){return this.types}};mi.addType("bar"),mi.addType("line"),mi.addType("scatter");const vi=new class{types=(()=>new Set)();constructor(){if(gi)throw new Error("You can only create one instance!");gi=this.types}addType(e){this.types.add(e)}getTypes(){return this.types}};function yi(e){return mi.getTypes().has(e)}vi.addType("radar");const bi=(e,t,n,r,i,o,a)=>{const s="x"===n?r[e].xExtremumGetter:r[e].yExtremumGetter,l=o[e]?.series??{};return s?.({series:l,axis:t,axisIndex:i,isDefaultAxis:0===i,getFilters:a})??[1/0,-1/0]};function xi(e,t,n,r,i,o){const a=Object.keys(n).filter(yi);let s=[1/0,-1/0];for(const l of a){const[a,c]=bi(l,e,t,n,r,i,o);s=[Math.min(s[0],a),Math.max(s[1],c)]}return Number.isNaN(s[0])||Number.isNaN(s[1])?[1/0,-1/0]:s}function Ai(){var e,t,n=St().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,s=!1,l=0,c=0,u=.5;function d(){var n=r().length,d=a<o,f=d?a:o,h=d?o:a;e=(h-f)/Math.max(1,n-l+2*c),s&&(e=Math.floor(e)),f+=(h-f-e*(n-l))*u,t=e*(1-l),s&&(f=Math.round(f),t=Math.round(t));var p=function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o}(n).map(function(t){return f+e*t});return i(d?p.reverse():p)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){return arguments.length?([o,a]=e,o=+o,a=+a,d()):[o,a]},n.rangeRound=function(e){return[o,a]=e,o=+o,a=+a,s=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,d()):s},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),d()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),d()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,d()):c},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},n.copy=function(){return Ai(r(),[o,a]).round(s).paddingInner(l).paddingOuter(c).align(u)},V.apply(d(),arguments)}function wi(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return wi(t())},e}function ki(){return wi(Ai.apply(null,arguments).paddingInner(1))}const Ci=(e,t)=>{const n=e[1]-e[0],r=t[1]-t[0];return[e[0]-t[0]*n/r,e[1]+(100-t[1])*n/r]};function Ei(e,t,n,i,o,a,s,l){const c=n?[n.start,n.end]:[0,100],u=function(e,t,n){const r="x"===t?[e.left,e.left+e.width]:[e.top+e.height,e.top];return n.reverse?[r[1],r[0]]:r}(i,t,e);if(O(e)){const n=e.categoryGapRatio??.2,r="y"===t?[u[1],u[0]]:u,i=Ci(r,c);return{scale:Ai(e.data,i).paddingInner(n).paddingOuter(n/2)}}if(N(e)){const n="y"===t?[...u].reverse():u,r=Ci(n,c);return{scale:ki(e.data,r)}}const d=e.scaleType??"linear",f=Si(e,t,a,s,l),[h,p]=xi(e,t,o,a,s),g=_i(e,h,p);if("function"==typeof f){const{min:e,max:t}=f(h,p);g[0]=e,g[1]=t}const m=It((0,r.A)({},e,{range:u,domain:g})),v=di(d,g,Ci(u,c));return"symlog"===e.scaleType&&null!=e.constant&&v.constant(e.constant),Mi(v,e,f,m),{scale:v,tickNumber:m}}function Si(e,t,n,r,i){return i?((e,t,n,r)=>{if(void 0!==e.domainLimit)return e.domainLimit;if("x"===t)for(const t of r.line?.seriesOrder??[]){const i=r.line.series[t];if(i.xAxisId===e.id||void 0===i.xAxisId&&0===n)return"strict"}return"nice"})(e,t,n,r):e.domainLimit??"nice"}function Mi(e,t,n,r){"nice"===n&&e.nice(r);const[i,o]=e.domain();e.domain([t.min??i,t.max??o])}function _i(e,t,n){let r=t,i=n;return null!=e.max&&e.max.valueOf()<t&&(r=e.max),null!=e.min&&e.min.valueOf()>t&&(i=e.min),[e.min??r,e.max??i]}function Ti(e){return void 0!==e.bandwidth}function Ii({scales:e,drawingArea:t,formattedSeries:n,axis:i,seriesConfig:o,axisDirection:a,zoomMap:s,zoomOptions:l,getFilters:c,preferStrictDomainInLineCharts:u}){if(void 0===i)return{axis:{},axisIds:[]};const d=((e,t,n,r)=>{const i=new Set;return Object.keys(t).filter(yi).forEach(o=>{const a=n[o]?.series??{},s=t[o].axisTooltipGetter?.(a);void 0!==s&&s.forEach(({axisId:t,direction:n})=>{n===e&&i.add(t??r)})}),i})(a,o,n,i[0].id),f={};return i.forEach((i,h)=>{const p=i,g=e[p.id];let m=g.scale;const v=l?.[p.id],y=s?.get(p.id),b=y?[y.start,y.end]:[0,100],x=function(e,t,n){const r="x"===t?[e.left,e.left+e.width]:[e.top+e.height,e.top];return n?[r[1],r[0]]:r}(t,a,p.reverse??!1),A=!p.ignoreTooltip&&d.has(p.id),w=p.data??[];if(Ti(m)){const e="y"===a?[x[1],x[0]]:x;if(function(e){return Ti(e)&&void 0!==e.paddingOuter}(m)&&O(p)){const e=p.categoryGapRatio??.2,t=p.barGapRatio??.1;f[p.id]=(0,r.A)({offset:0,height:0,categoryGapRatio:e,barGapRatio:t,triggerTooltip:A},p,{data:w,scale:m,tickNumber:p.data.length,colorScale:p.colorMap&&("ordinal"===p.colorMap.type?_t((0,r.A)({values:p.data},p.colorMap)):Tt(p.colorMap))})}if(N(p)&&(f[p.id]=(0,r.A)({offset:0,height:0,triggerTooltip:A},p,{data:w,scale:m,tickNumber:p.data.length,colorScale:p.colorMap&&("ordinal"===p.colorMap.type?_t((0,r.A)({values:p.data},p.colorMap)):Tt(p.colorMap))})),fi(p.data)){const t=hi(p.data,e,p.tickNumber);f[p.id].valueFormatter=p.valueFormatter??t}return}if("band"===p.scaleType||"point"===p.scaleType)return;const k=g.tickNumber,C=p,E=C.scaleType??"linear",S=Pt(k,b),M=void 0!==y||v?void 0:c;if(M){const[e,t]=xi(p,a,o,h,n,M);m=m.copy(),m.domain([e,t]);const r=Si(p,a,h,n,u),i=_i(p,e,t);if("function"==typeof r){const{min:n,max:o}=r(e,t);i[0]=n,i[1]=o}m.domain(i),Mi(m,p,r,k)}f[p.id]=(0,r.A)({offset:0,height:0,triggerTooltip:A},C,{data:w,scaleType:E,scale:m,tickNumber:S,colorScale:C.colorMap&&Mt(C.colorMap),valueFormatter:p.valueFormatter??D(S,di(E,x.map(e=>m.invert(e)),x))})}),{axis:f,axisIds:i.map(({id:e})=>e)}}function Pi(e){return null!=e}function Ri(e,t,n){return(r,i,o)=>{const a=t[r];if(!a||"discard"!==a.filterMode)return null;const s=e?.get(r);return void 0===s||s.start<=0&&s.end>=100?null:Ti(o)?function(e,t,n,r){const i=e?.length??0,o=Math.floor(t*i/100),a=Math.ceil(n*i/100);return function(t,n){return null==(t[r]??e?.[n])||n>=o&&n<a}}(i,s.start,s.end,n):function(e,t,n,r,i){let o,a;[o,a]=e.domain(),o=o instanceof Date?o.getTime():o,a=a instanceof Date?a.getTime():a;const s=o+t*(a-o)/100,l=o+n*(a-o)/100;return function(e,t){const n=e[r]??i?.[t];return null==n||n>=s&&n<=l}}(o,s.start,s.end,n,i)}}const Li={minStart:0,maxEnd:100,step:5,minSpan:10,maxSpan:100,panning:!0,filterMode:"keep",slider:{enabled:!1,preview:!1,size:28,showTooltip:"hover"}},ji=(e,t,n)=>{if(e)return!0===e?(0,r.A)({axisId:t,axisDirection:n},Li):(0,r.A)({axisId:t,axisDirection:n},Li,e,{slider:(0,r.A)({},Li.slider,{size:e.slider?.preview??Li.slider.preview?48:28},e.slider)})},Di=e=>(t=[])=>t.reduce((t,n)=>{const{zoom:r,id:i}=n,o=ji(r,i,e);return o&&(t[i]=o),t},{});var Oi=n(87483);const Ni=(0,w.M)([e=>e.experimentalFeatures],e=>Boolean(e?.preferStrictDomainInLineCharts)),Fi=e=>e.zoom,zi=(0,w.M)([Fi],e=>e?.isInteracting),Bi=(0,w.M)([Fi],e=>e?.zoomData&&(e=>{const t=new Map;return e.forEach(e=>{t.set(e.axisId,e)}),t})(e?.zoomData)),$i=(0,w.M)([Oi.RH,Oi.mQ],(e,t)=>(0,r.A)({},Di("x")(e),Di("y")(t))),Hi=((0,w.M)([$i,(e,t)=>t],(e,t)=>e[t]),(0,w.M)([Bi,$i],(e,t)=>e&&t&&Ri(e,t,"x"))),Ui=(0,w.M)([Bi,$i],(e,t)=>e&&t&&Ri(e,t,"y")),Wi=(0,w.M)([Oi.RH,j.VT,C,E,Bi,Ni],function(e,t,n,r,i,o){return function({drawingArea:e,formattedSeries:t,axis:n=[],seriesConfig:r,zoomMap:i,preferStrictDomainInLineCharts:o}){const a={};return n.forEach((n,s)=>{const l=n,c=i?.get(l.id);a[l.id]=Ei(l,"x",c,e,r,s,t,o)}),a}({drawingArea:t,formattedSeries:n,axis:e,seriesConfig:r,zoomMap:i,preferStrictDomainInLineCharts:o})}),Vi=(0,w.M)([Oi.mQ,j.VT,C,E,Bi,Ni],function(e,t,n,r,i,o){return function({drawingArea:e,formattedSeries:t,axis:n=[],seriesConfig:r,zoomMap:i,preferStrictDomainInLineCharts:o}){const a={};return n.forEach((n,s)=>{const l=n,c=i?.get(l.id);a[l.id]=Ei(l,"y",c,e,r,s,t,o)}),a}({drawingArea:t,formattedSeries:n,axis:e,seriesConfig:r,zoomMap:i,preferStrictDomainInLineCharts:o})}),qi=(0,w.M)([Hi,Ui,Oi.RH,Oi.mQ,Wi,Vi],(e,t,n,i,o,a)=>{if(void 0===e||void 0===t)return;const s=n?.reduce((t,n)=>{const r=e(n.id,n.data,o[n.id].scale);return null!==r&&(t[n.id]=r),t},{}),l=i?.reduce((e,n)=>{const r=t(n.id,n.data,a[n.id].scale);return null!==r&&(e[n.id]=r),e},{});var c;return 0!==Object.keys(s??{}).length||0!==Object.keys(l??{}).length?(c=(0,r.A)({},s,l),({currentAxisId:e,seriesXAxisId:t,seriesYAxisId:n,isDefaultAxis:r})=>(i,o)=>!(e===t?n:t)||r?Object.values(c??{})[0]?.(i,o)??!0:[n,t].filter(t=>t!==e).map(e=>c[e??""]).filter(Pi).every(e=>e(i,o))):void 0}),Gi=(0,w.M)([Oi.RH,j.VT,C,E,Bi,$i,qi,Ni,Wi],(e,t,n,r,i,o,a,s,l)=>Ii({scales:l,drawingArea:t,formattedSeries:n,axis:e,seriesConfig:r,axisDirection:"x",zoomMap:i,zoomOptions:o,getFilters:a,preferStrictDomainInLineCharts:s})),Yi=(0,w.M)([Oi.mQ,j.VT,C,E,Bi,$i,qi,Ni,Vi],(e,t,n,r,i,o,a,s,l)=>Ii({scales:l,drawingArea:t,formattedSeries:n,axis:e,seriesConfig:r,axisDirection:"y",zoomMap:i,zoomOptions:o,getFilters:a,preferStrictDomainInLineCharts:s}));function Ki(e){return vi.getTypes().has(e)}(0,w.M)([Gi,Yi,(e,t)=>t],(e,t,n)=>e?.axis[n]??t?.axis[n]),(0,w.M)([Oi.RH,Oi.mQ,(e,t)=>t],(e,t,n)=>{const r=e?.find(e=>e.id===n)??t?.find(e=>e.id===n)??null;if(r)return r});const Xi=(e,t)=>void 0===e?t:Math.PI*e/180;function Zi({drawingArea:e,formattedSeries:t,axis:n,seriesConfig:i,axisDirection:o}){if(void 0===n)return{axis:{},axisIds:[]};const a=((e,t,n,r)=>{const i=new Set;return Object.keys(t).filter(Ki).forEach(o=>{const a=n[o]?.series??{},s=t[o].axisTooltipGetter?.(a);void 0!==s&&s.forEach(({axisId:t,direction:n})=>{n===e&&i.add(t??r)})}),i})(o,i,t,n[0].id),s={};return n.forEach((n,l)=>{const c=n,u=function(e,t,n){if("rotation"===t){if("point"===n.scaleType){const e=[Xi(n.startAngle,0),Xi(n.endAngle,2*Math.PI)],t=e[1]-e[0];return t>2*Math.PI-.1&&(e[1]-=t/n.data.length),e}return[Xi(n.startAngle,0),Xi(n.endAngle,2*Math.PI)]}return[0,Math.min(e.height,e.width)/2]}(e,o,c),[d,f]=((e,t,n,r,i)=>{const o=Object.keys(n).filter(Ki).reduce((o,a)=>((e,t,n,r,i,o,a)=>{const s="rotation"===r?i[t].rotationExtremumGetter:i[t].radiusExtremumGetter,l=a[t]?.series??{},[c,u]=s?.({series:l,axis:n,axisIndex:o,isDefaultAxis:0===o})??[1/0,-1/0],[d,f]=e;return[Math.min(c,d),Math.max(u,f)]})(o,a,e,t,n,r,i),[1/0,-1/0]);return Number.isNaN(o[0])||Number.isNaN(o[1])?[1/0,-1/0]:o})(c,o,i,l,t),h=!c.ignoreTooltip&&a.has(c.id),p=c.data??[];if(O(c)){const e=c.categoryGapRatio??.2,t=c.barGapRatio??.1;if(s[c.id]=(0,r.A)({offset:0,categoryGapRatio:e,barGapRatio:t,triggerTooltip:h},c,{data:p,scale:Ai(c.data,u).paddingInner(e).paddingOuter(e/2),tickNumber:c.data.length,colorScale:c.colorMap&&("ordinal"===c.colorMap.type?_t((0,r.A)({values:c.data},c.colorMap)):Tt(c.colorMap))}),fi(c.data)){const e=hi(c.data,u,c.tickNumber);s[c.id].valueFormatter=c.valueFormatter??e}}if(N(c)&&(s[c.id]=(0,r.A)({offset:0,triggerTooltip:h},c,{data:p,scale:ki(c.data,u),tickNumber:c.data.length,colorScale:c.colorMap&&("ordinal"===c.colorMap.type?_t((0,r.A)({values:c.data},c.colorMap)):Tt(c.colorMap))}),fi(c.data))){const e=hi(c.data,u,c.tickNumber);s[c.id].valueFormatter=c.valueFormatter??e}if("band"===c.scaleType||"point"===c.scaleType)return;const g=c.scaleType??"linear",m=c.domainLimit??"nice",v=[c.min??d,c.max??f];if("function"==typeof m){const{min:e,max:t}=m(d,f);v[0]=e,v[1]=t}const y=It((0,r.A)({},c,{range:u,domain:v})),b=Pt(y,u),x=di(g,v,u),A="nice"===m?x.nice(y):x,[w,k]=A.domain(),C=[c.min??w,c.max??k];s[c.id]=(0,r.A)({offset:0,triggerTooltip:h},c,{data:p,scaleType:g,scale:A.domain(C),tickNumber:b,colorScale:c.colorMap&&Tt(c.colorMap)})}),{axis:s,axisIds:n.map(({id:e})=>e)}}const Qi=e=>e.polarAxis,Ji=(0,w.M)([Qi],e=>e?.rotation),eo=(0,w.M)([Qi],e=>e?.radius),to=(0,w.M)([Ji,j.VT,C,E],(e,t,n,r)=>Zi({drawingArea:t,formattedSeries:n,axis:e,seriesConfig:r,axisDirection:"rotation"})),no=(0,w.M)([eo,j.VT,C,E],(e,t,n,r)=>Zi({drawingArea:t,formattedSeries:n,axis:e,seriesConfig:r,axisDirection:"radius"})),ro=(0,w.M)([j.VT],e=>({cx:e.left+e.width/2,cy:e.top+e.height/2}));function io(){const e=(0,x.P)(),{axis:t,axisIds:n}=(0,A.d)(e,Gi);return{xAxis:t,xAxisIds:n}}function oo(){const e=(0,x.P)(),{axis:t,axisIds:n}=(0,A.d)(e,Yi);return{yAxis:t,yAxisIds:n}}function ao(){const e=(0,x.P)(),{axis:t,axisIds:n}=(0,A.d)(e,to);return{rotationAxis:t,rotationAxisIds:n}}const so=(0,w.M)([e=>e],e=>e.zAxis);function lo(){const e=(0,x.P)(),{axis:t,axisIds:n}=(0,A.d)(e,so)??{axis:{},axisIds:[]};return{zAxis:t,zAxisIds:n}}var co=n(59193);const uo=(0,co.Ay)("div",{name:"MuiChartsTooltip",slot:"Container",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,borderRadius:(e.vars||e).shape?.borderRadius,border:`solid ${(e.vars||e).palette.divider} 1px`})),fo=(0,co.Ay)("table",{name:"MuiChartsTooltip",slot:"Table"})(({theme:e})=>({borderSpacing:0,[`& .${y.markContainer}`]:{display:"inline-block",width:`calc(20px + ${e.spacing(1.5)})`,verticalAlign:"middle"},"& caption":{borderBottom:`solid ${(e.vars||e).palette.divider} 1px`,padding:e.spacing(.5,1.5),textAlign:"start",whiteSpace:"nowrap","& span":{marginRight:e.spacing(1.5)}}})),ho=(0,co.Ay)("tr",{name:"MuiChartsTooltip",slot:"Row"})(({theme:e})=>({"tr:first-of-type& td":{paddingTop:e.spacing(.5)},"tr:last-of-type& td":{paddingBottom:e.spacing(.5)}})),po=(0,co.Ay)(u.A,{name:"MuiChartsTooltip",slot:"Cell"})(({theme:e})=>({verticalAlign:"middle",color:(e.vars||e).palette.text.secondary,textAlign:"start",[`&.${y.cell}`]:{paddingLeft:e.spacing(1),paddingRight:e.spacing(1)},[`&.${y.labelCell}`]:{whiteSpace:"nowrap",fontWeight:e.typography.fontWeightRegular},[`&.${y.valueCell}, &.${y.axisValueCell}`]:{color:(e.vars||e).palette.text.primary,fontWeight:e.typography.fontWeightMedium},[`&.${y.valueCell}`]:{paddingLeft:e.spacing(1.5),paddingRight:e.spacing(1.5)},"td:first-of-type&, th:first-of-type&":{paddingLeft:e.spacing(1.5)},"td:last-of-type&, th:last-of-type&":{paddingRight:e.spacing(1.5)}}));function go(e){return p("MuiChartsLabelMark",e)}const mo=g("MuiChartsLabelMark",["root","line","square","circle","mask","fill"]);var vo=n(6530);function yo(e,t,n=!1){const r={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const o=i;if("components"===o||"slots"===o)r[o]={...e[o],...r[o]};else if("componentsProps"===o||"slotProps"===o){const i=e[o],a=t[o];if(a)if(i){r[o]={...a};for(const e in i)if(Object.prototype.hasOwnProperty.call(i,e)){const t=e;r[o][t]=yo(i[t],a[t],n)}}else r[o]=a;else r[o]=i||{}}else"className"===o&&n&&t.className?r.className=(0,c.A)(e?.className,t?.className):"style"===o&&n&&t.style?r.style={...e?.style,...t?.style}:void 0===r[o]&&(r[o]=e[o])}return r}var bo=n(31085);const xo=(e,t,n)=>o.forwardRef(function(i,a){const l=(0,s.A)({props:i,name:e}),c=yo("function"==typeof t.defaultProps?t.defaultProps(l):t.defaultProps??{},l),u=(0,vo.A)(),d=t.classesResolver?.(c,u),f=o.forwardRef(n);return(0,bo.jsx)(f,(0,r.A)({},c,{classes:d,ref:a}))}),Ao=["type","color","className","classes"],wo=(0,co.Ay)("div",{name:"MuiChartsLabelMark",slot:"Root"})(()=>({display:"flex",width:14,height:14,[`&.${mo.line}`]:{width:16,height:"unset",alignItems:"center",[`.${mo.mask}`]:{height:4,width:"100%",borderRadius:1,overflow:"hidden"}},[`&.${mo.square}`]:{height:13,width:13,borderRadius:2,overflow:"hidden"},[`&.${mo.circle}`]:{height:15,width:15},svg:{display:"block"},[`& .${mo.mask} > *`]:{height:"100%",width:"100%"},[`& .${mo.mask}`]:{height:"100%",width:"100%"}})),ko=xo("MuiChartsLabelMark",{defaultProps:{type:"square"},classesResolver:e=>{const{type:t}=e;return m({root:"function"==typeof t?["root"]:["root",t],mask:["mask"],fill:["fill"]},go,e.classes)}},function(e,t){const{type:n,color:o,className:a,classes:s}=e,l=(0,i.A)(e,Ao),u=n;return(0,bo.jsx)(wo,(0,r.A)({className:(0,c.A)(s?.root,a),ownerState:e,"aria-hidden":"true",ref:t},l,{children:(0,bo.jsx)("div",{className:s?.mask,children:"function"==typeof u?(0,bo.jsx)(u,{className:s?.fill,color:o}):(0,bo.jsx)("svg",{viewBox:"0 0 24 24",preserveAspectRatio:"line"===n?"none":void 0,children:"circle"===n?(0,bo.jsx)("circle",{className:s?.fill,r:"12",cx:"12",cy:"12",fill:o}):(0,bo.jsx)("rect",{className:s?.fill,width:"24",height:"24",fill:o})})})}))});function Co(e){const{classes:t,sx:n}=e,r=function(){const e=(0,x.P)(),t=(0,A.d)(e,T),n=(0,A.d)(e,E),r=S(),{xAxis:i,xAxisIds:o}=io(),{yAxis:a,yAxisIds:s}=oo(),{zAxis:l,zAxisIds:c}=lo(),{rotationAxis:u,rotationAxisIds:d}=ao(),{radiusAxis:f,radiusAxisIds:h}=function(){const e=(0,x.P)(),{axis:t,axisIds:n}=(0,A.d)(e,no);return{radiusAxis:t,radiusAxisIds:n}}(),p=r.xAxisId??o[0],g=r.yAxisId??s[0],m=r.zAxisId??c[0],v=r.rotationAxisId??d[0],y=r.radiusAxisId??h[0];if(!t)return null;const b=r[t.type]?.series[t.seriesId];if(!b)return null;const w=n[b.type].colorProcessor?.(b,p&&i[p],g&&a[g],m&&l[m])??(()=>""),k={};return void 0!==p&&(k.x=i[p]),void 0!==g&&(k.y=a[g]),void 0!==v&&(k.rotation=u[v]),void 0!==y&&(k.radius=f[y]),n[b.type].tooltipGetter({series:b,axesConfig:k,getColor:w,identifier:t})}(),i=b(t);if(!r)return null;if("values"in r){const{label:e,color:t,markType:o}=r;return(0,bo.jsx)(uo,{sx:n,className:i.paper,children:(0,bo.jsxs)(fo,{className:i.table,children:[(0,bo.jsxs)(u.A,{component:"caption",children:[(0,bo.jsx)("div",{className:i.markContainer,children:(0,bo.jsx)(ko,{type:o,color:t,className:i.mark})}),e]}),(0,bo.jsx)("tbody",{children:r.values.map(({formattedValue:e,label:t})=>(0,bo.jsxs)(ho,{className:i.row,children:[(0,bo.jsx)(po,{className:(0,c.A)(i.labelCell,i.cell),component:"th",children:t}),(0,bo.jsx)(po,{className:(0,c.A)(i.valueCell,i.cell),component:"td",children:e})]},t))})]})})}const{color:o,label:a,formattedValue:s,markType:l}=r;return(0,bo.jsx)(uo,{sx:n,className:i.paper,children:(0,bo.jsx)(fo,{className:i.table,children:(0,bo.jsx)("tbody",{children:(0,bo.jsxs)(ho,{className:i.row,children:[(0,bo.jsxs)(po,{className:(0,c.A)(i.labelCell,i.cell),component:"th",children:[(0,bo.jsx)("div",{className:i.markContainer,children:(0,bo.jsx)(ko,{type:l,color:o,className:i.mark})}),a]}),(0,bo.jsx)(po,{className:(0,c.A)(i.valueCell,i.cell),component:"td",children:s})]})})})})}function Eo(e,t){return"function"==typeof e?e(t):e}var So=n(90930),Mo=n(53871);function _o(){const e=(0,Mo.N)();if(!e)throw new Error(["MUI X Charts: Could not find the svg ref context.","It looks like you rendered your component outside of a ChartContainer parent component."].join("\n"));return e.svgRef}function To(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r+=1)if(!To(e[r],t[r]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const n=Array.from(e.entries());for(let e=0;e<n.length;e+=1)if(!t.has(n[e][0]))return!1;for(let e=0;e<n.length;e+=1){const r=n[e];if(!To(r[1],t.get(r[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const n=Array.from(e.entries());for(let e=0;e<n.length;e+=1)if(!t.has(n[e][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r+=1)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=n.length;if(r!==Object.keys(t).length)return!1;for(let e=0;e<r;e+=1)if(!Object.prototype.hasOwnProperty.call(t,n[e]))return!1;for(let i=0;i<r;i+=1){const r=n[i];if(!To(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function Io(e){return e instanceof Date?e.getTime():e}function Po(e,t){const{scale:n,data:r,reverse:i}=e;if(!Ti(n)){const e=n.invert(t);if(void 0===r)return-1;const i=Io(e),o=r?.findIndex((t,n)=>{const o=Io(t);return o>i&&(0===n||Math.abs(i-o)<=Math.abs(i-Io(r[n-1])))||o<=i&&(n===r.length-1||Math.abs(Io(e)-o)<Math.abs(Io(e)-Io(r[n+1])))});return o}const o=0===n.bandwidth()?Math.floor((t-Math.min(...n.range())+n.step()/2)/n.step()):Math.floor((t-Math.min(...n.range()))/n.step());return o<0||o>=r.length?-1:i?r.length-1-o:o}function Ro(e,t,n){const{scale:r,data:i}=e;return Ti(r)?null===n||n<0||n>=i.length?null:i[n]:null===n?r.invert(t):i[n]}const Lo=(e,t)=>t;function jo(e,t,n=t.axisIds[0]){return Array.isArray(n)?n.map(n=>Po(t.axis[n],e)):Po(t.axis[n],e)}const Do=(e,t,n)=>{if(null===e)return null;const r=jo(e,t,n);return-1===r?null:r},Oo=(0,w.M)([P,Gi,Lo],Do),No=(0,w.M)([R,Yi,Lo],Do),Fo=(0,w.M)([P,R,Gi,Yi],(e,t,n,r)=>[...null===e?[]:n.axisIds.map(t=>({axisId:t,dataIndex:jo(e,n,t)})),...null===t?[]:r.axisIds.map(e=>({axisId:e,dataIndex:jo(t,r,e)}))].filter(e=>null!==e.dataIndex&&e.dataIndex>=0));function zo(e,t,n,r=t.axisIds[0]){return Array.isArray(r)?r.map((r,i)=>Ro(t.axis[r],e,n[i])):Ro(t.axis[r],e,n)}(0,w.M)([P,Gi,Oo,Lo],(e,t,n,r)=>null===e||0===t.axisIds.length?null:zo(e,t,n,r)),(0,w.M)([R,Yi,No,Lo],(e,t,n,r)=>null===e||0===t.axisIds.length?null:zo(e,t,n,r));const Bo=(0,w.M)([P,Gi],(e,t)=>null===e?[]:t.axisIds.filter(e=>t.axis[e].triggerTooltip).map(n=>({axisId:n,dataIndex:Po(t.axis[n],e)})).filter(({dataIndex:e})=>e>=0),{memoizeOptions:{resultEqualityCheck:To}}),$o=(0,w.M)([R,Yi],(e,t)=>null===e?[]:t.axisIds.filter(e=>t.axis[e].triggerTooltip).map(n=>({axisId:n,dataIndex:Po(t.axis[n],e)})).filter(({dataIndex:e})=>e>=0),{memoizeOptions:{resultEqualityCheck:To}}),Ho=(0,w.M)([Bo,$o],(e,t)=>e.length>0||t.length>0),Uo=2*Math.PI;function Wo(e,t){const{scale:n,data:r,reverse:i}=e;if(!Ti(n))throw new Error("MUI X Charts: getAxisValue is not implemented for polare continuous axes.");if(!r)return-1;const o=((t-Math.min(...n.range()))%Uo+Uo)%Uo,a=0===n.bandwidth()?Math.floor((o+n.step()/2)/n.step())%r.length:Math.floor(o/n.step());return a<0||a>=r.length?-1:i?r.length-1-a:a}const Vo=(e,t)=>t,qo=(e,t)=>t;function Go(e,t,n){return Array.isArray(n)?n.map(n=>Wo(t.axis[n],e)):Wo(t.axis[n],e)}const Yo=(0,w.M)([P,R,ro],(e,t,n)=>null===e||null===t?null:(e=>(t,n)=>Math.atan2(t-e.cx,e.cy-n))(n)(e,t)),Ko=(0,w.M)([Yo,to,Vo],(e,t,n=t.axisIds[0])=>null===e?null:Go(e,t,n)),Xo=(0,w.M)([Yo,to,qo],(e,t,n=t.axisIds)=>null===e?null:Go(e,t,n)),Zo=((0,w.M)([to,Ko,Vo],(e,t,n=e.axisIds[0])=>{if(null===t||-1===t||0===e.axisIds.length)return null;const r=e.axis[n]?.data;return r?r[t]:null}),(0,w.M)([to,Xo,qo],(e,t,n=e.axisIds)=>null===t?null:n.map((n,r)=>{const i=t[r];return-1===i?null:e.axis[n].data?.[i]})),(0,w.M)([Xo,to],(e,t)=>null===e?[]:t.axisIds.map((t,n)=>({axisId:t,dataIndex:e[n]})).filter(({axisId:e,dataIndex:n})=>t.axis[e].triggerTooltip&&n>=0),{memoizeOptions:{resultEqualityCheck:To}})),Qo=((0,w.M)([],()=>[]),(0,w.M)([Zo],e=>e.length>0));function Jo(e,t,n){const r=e.data?.[t]??null,i=(e.valueFormatter??(t=>"utc"===e.scaleType?function(e){return e instanceof Date?e.toUTCString():e.toLocaleString()}(t):t.toLocaleString()))(r,{location:"tooltip",scale:e.scale});return{axisDirection:n,axisId:e.id,mainAxis:e,dataIndex:t,axisValue:r,axisFormattedValue:i,seriesItems:[]}}function ea(e){const t=b(e.classes),n=function(e={}){const{multipleAxes:t,directions:n}=e,r=function(){const e=(0,x.P)(),{axis:t,axisIds:n}=(0,A.d)(e,Gi);return t[n[0]]}(),i=function(){const e=(0,x.P)(),{axis:t,axisIds:n}=(0,A.d)(e,Yi);return t[n[0]]}(),a=function(){const e=(0,x.P)(),{axis:t,axisIds:n}=(0,A.d)(e,to);return t[n[0]]}(),s=(0,x.P)(),l=(0,A.d)(s,Bo),c=(0,A.d)(s,$o),u=(0,A.d)(s,Zo),d=S(),{xAxis:f}=io(),{yAxis:h}=oo(),{zAxis:p,zAxisIds:g}=lo(),{rotationAxis:m}=ao(),v=function(){const e=(0,x.P)(),t=(0,A.d)(e,E);return o.useMemo(()=>{const e={};return Object.keys(t).forEach(n=>{e[n]=t[n].colorProcessor}),e},[t])}();if(0===l.length&&0===c.length&&0===u.length)return null;const y=[];return(void 0===n||n.includes("x"))&&l.forEach(({axisId:e,dataIndex:n})=>{!t&&y.length>1||y.push(Jo(f[e],n,"x"))}),(void 0===n||n.includes("y"))&&c.forEach(({axisId:e,dataIndex:n})=>{!t&&y.length>1||y.push(Jo(h[e],n,"y"))}),(void 0===n||n.includes("rotation"))&&u.forEach(({axisId:e,dataIndex:n})=>{!t&&y.length>1||y.push(Jo(m[e],n,"rotation"))}),Object.keys(d).filter(yi).forEach(e=>{const t=d[e];return t?t.seriesOrder.forEach(n=>{const o=t.series[n],a=o.xAxisId??r.id,s=o.yAxisId??i.id,l=y.findIndex(({axisDirection:e,axisId:t})=>"x"===e&&t===a||"y"===e&&t===s);if(l>=0){const t="zAxisId"in o?o.zAxisId:g[0],{dataIndex:r}=y[l],i=v[e]?.(o,f[a],h[s],t?p[t]:void 0)(r)??"",c=o.data[r]??null,u=o.valueFormatter(c,{dataIndex:r}),d=Eo(o.label,"tooltip")??null;y[l].seriesItems.push({seriesId:n,color:i,value:c,formattedValue:u,formattedLabel:d,markType:o.labelMarkType})}}):[]}),Object.keys(d).filter(Ki).forEach(e=>{const t=d[e];return t?t.seriesOrder.forEach(n=>{const r=t.series[n],i=r.rotationAxisId??a?.id,o=y.findIndex(({axisDirection:e,axisId:t})=>"rotation"===e&&t===i);if(o>=0){const{dataIndex:t}=y[o],i=v[e]?.(r)(t)??"",a=r.data[t]??null,s=r.valueFormatter(a,{dataIndex:t}),l=Eo(r.label,"tooltip")??null;y[o].seriesItems.push({seriesId:n,color:i,value:a,formattedValue:s,formattedLabel:l,markType:r.labelMarkType})}}):[]}),t?y:0===y.length?y[0]:null}((0,r.A)({},undefined,{multipleAxes:!0}));return null===n?null:(0,bo.jsx)(uo,{sx:e.sx,className:t.paper,children:n.map(({axisId:e,mainAxis:n,axisValue:r,axisFormattedValue:i,seriesItems:o})=>(0,bo.jsxs)(fo,{className:t.table,children:[null!=r&&!n.hideTooltip&&(0,bo.jsx)(u.A,{component:"caption",children:i}),(0,bo.jsx)("tbody",{children:o.map(({seriesId:e,color:n,formattedValue:r,formattedLabel:i,markType:o})=>null==r?null:(0,bo.jsxs)(ho,{className:t.row,children:[(0,bo.jsxs)(po,{className:(0,c.A)(t.labelCell,t.cell),component:"th",children:[(0,bo.jsx)("div",{className:t.markContainer,children:(0,bo.jsx)(ko,{type:o,color:n,className:t.mark})}),i||null]}),(0,bo.jsx)(po,{className:(0,c.A)(t.valueCell,t.cell),component:"td",children:r})]},e))})]},e))})}const ta={};function na(e,t){const n=o.useRef(ta);return n.current===ta&&(n.current=e(t)),n}var ra=n(50202),ia=n(4330);const oa=["trigger","classes","children"],aa=()=>!1,sa=(0,co.Ay)(ra.A,{name:"MuiChartsTooltip",slot:"Root"})(({theme:e})=>({pointerEvents:"none",zIndex:e.zIndex.modal}));function la(e){const t=(0,s.A)({props:e,name:"MuiChartsTooltipContainer"}),{trigger:n="axis",classes:a,children:l}=t,c=(0,i.A)(t,oa),u=_o(),d=b(a),f=function(){const e=_o(),[t,n]=o.useState(null);return o.useEffect(()=>{const t=e.current;if(null===t)return()=>{};const r=e=>{"mouse"!==e.pointerType&&n(null)},i=e=>{n({pointerType:e.pointerType})};return t.addEventListener("pointerenter",i),t.addEventListener("pointerup",r),()=>{t.removeEventListener("pointerenter",i),t.removeEventListener("pointerup",r)}},[e]),t}(),h=(0,So.A)("@media (pointer: fine)",{defaultMatches:!0}),p=o.useRef(null),g=na(()=>({x:0,y:0})),m=function(){const e=(0,x.P)(),t=(0,A.d)(e,Ji),n=(0,A.d)(e,Oi.RH);return void 0!==t?"polar":void 0!==n?"cartesian":"none"}(),v=(0,x.P)(),y=(0,A.d)(v,"axis"===n?"polar"===m&&Qo||"cartesian"===m&&Ho||aa:L);o.useEffect(()=>{const e=u.current;if(null===e)return()=>{};const t=function(){let e,t;const n=()=>{t=null,(()=>{p.current?.update()})(...e)};function r(...r){e=r,t||(t=requestAnimationFrame(n))}return r.clear=()=>{t&&(cancelAnimationFrame(t),t=null)},r}(),n=e=>{g.current={x:e.clientX,y:e.clientY},t()};return e.addEventListener("pointerdown",n),e.addEventListener("pointermove",n),()=>{e.removeEventListener("pointerdown",n),e.removeEventListener("pointermove",n),t.clear()}},[u,g]);const w=o.useMemo(()=>({getBoundingClientRect:()=>({x:g.current.x,y:g.current.y,top:g.current.y,left:g.current.x,right:g.current.x,bottom:g.current.y,width:0,height:0,toJSON:()=>""})}),[g]),k="mouse"===f?.pointerType||h,C="touch"===f?.pointerType||!h,E=o.useMemo(()=>[{name:"offset",options:{offset:()=>C?[0,64]:[0,8]}},...k?[]:[{name:"flip",options:{fallbackPlacements:["top-end","top-start","bottom-end","bottom"]}}],{name:"preventOverflow",options:{altAxis:!0}}],[k,C]);return"none"===n?null:(0,bo.jsx)(ia.A,{children:y&&(0,bo.jsx)(sa,(0,r.A)({className:d?.root,open:y,placement:k?"right-start":"top",popperRef:p,anchorEl:w,modifiers:E},c,{children:l}))})}function ca(e){const{classes:t,trigger:n="axis"}=e,i=b(t);return(0,bo.jsx)(la,(0,r.A)({},e,{classes:t,children:"axis"===n?(0,bo.jsx)(ea,{classes:i}):(0,bo.jsx)(Co,{classes:i})}))}function ua(e,t){return Object.keys(e).flatMap(n=>{const r=t[n].legendGetter;return void 0===r?[]:r(e[n])})}function da(e){return p("MuiChartsLegend",e)}const fa=g("MuiChartsLegend",["root","item","series","mark","label","vertical","horizontal"]);function ha(...e){const t=o.useRef(void 0),n=o.useCallback(t=>{const n=e.map(e=>{if(null==e)return null;if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return o.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}const pa=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t},ga=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const e=(0,c.A)(n?.className,o,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},a={...n,...i,...r};return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}({...i,...r}),s=pa(r),l=pa(i),u=t(a),d=(0,c.A)(u?.className,n?.className,o,i?.className,r?.className),f={...u?.style,...n?.style,...i?.style,...r?.style},h={...u,...n,...l,...s};return d.length>0&&(h.className=d),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:u.ref}},ma=["slots","slotProps"],va=["ownerState"];function ya(e){return p("MuiChartsLabel",e)}g("MuiChartsLabel",["root"]);const ba=["children","className","classes"],xa=xo("MuiChartsLabel",{classesResolver:e=>m({root:["root"]},ya,e.classes)},function(e,t){const{children:n,className:o,classes:a}=e,s=(0,i.A)(e,ba);return(0,bo.jsx)("span",(0,r.A)({className:(0,c.A)(a?.root,o),ref:t},s,{children:n}))}),Aa=["direction","onItemClick","className","classes"],wa=(0,co.Ay)("ul",{name:"MuiChartsLegend",slot:"Root"})(({ownerState:e,theme:t})=>(0,r.A)({},t.typography.caption,{color:(t.vars||t).palette.text.primary,lineHeight:"100%",display:"flex",flexDirection:"vertical"===e.direction?"column":"row",alignItems:"vertical"===e.direction?void 0:"center",flexShrink:0,gap:t.spacing(2),listStyleType:"none",paddingInlineStart:0,marginBlock:t.spacing(1),marginInline:t.spacing(1),flexWrap:"wrap",li:{display:"horizontal"===e.direction?"inline-flex":void 0},[`button.${fa.series}`]:{background:"none",border:"none",padding:0,fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",letterSpacing:"inherit",color:"inherit"},[`& .${fa.series}`]:{display:"vertical"===e.direction?"flex":"inline-flex",alignItems:"center",gap:t.spacing(1)},gridArea:"legend"})),ka=((e,t,n,a)=>{function l(e,o){const l=(0,s.A)({props:e,name:"MuiChartsLegend"}),c=yo("function"==typeof n.defaultProps?n.defaultProps(l):n.defaultProps??{},l),u=c,{slots:d,slotProps:f}=u,h=(0,i.A)(u,ma),p=(0,vo.A)(),g=n.classesResolver?.(c,p),m=d?.[t]??a,v=n.propagateSlots&&!d?.[t],y=function(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...o}=e,a=i?{}:function(e,t){return"function"==typeof e?e(t,void 0):e}(n,r),{props:s,internalRef:l}=ga({...o,externalSlotProps:a});return function(e,t,n){return void 0===e||"string"==typeof e?t:{...t,ownerState:{...t.ownerState,...n}}}(t,{...s,ref:ha(l,a?.ref,e.additionalProps?.ref)},r)}({elementType:m,externalSlotProps:f?.[t],additionalProps:(0,r.A)({},h,{classes:g},v&&{slots:d,slotProps:f}),ownerState:{}}),b=(0,i.A)(y,va),x=(0,r.A)({},b);for(const e of n.omitProps??[])delete x[e];return(0,bo.jsx)(m,(0,r.A)({},x,{ref:o}))}return o.forwardRef(l)})(0,"legend",{defaultProps:{direction:"horizontal"},omitProps:["position"],classesResolver:e=>{const{classes:t,direction:n}=e;return m({root:["root",n],item:["item"],mark:["mark"],label:["label"],series:["series"]},da,t)}},o.forwardRef(function(e,t){const n=function(){const e=S(),t=(0,x.P)();return{items:ua(e,(0,A.d)(t,E))}}(),{onItemClick:o,className:a,classes:s}=e,l=(0,i.A)(e,Aa);if(0===n.items.length)return null;const u=o?"button":"div";return(0,bo.jsx)(wa,(0,r.A)({className:(0,c.A)(s?.root,a),ref:t},l,{ownerState:e,children:n.items.map((e,t)=>(0,bo.jsx)("li",{className:s?.item,"data-series":e.id,children:(0,bo.jsxs)(u,{className:s?.series,role:o?"button":void 0,type:o?"button":void 0,onClick:o?n=>{return o(n,{type:"series",color:(r=e).color,label:r.label,seriesId:r.seriesId,itemId:r.itemId},t);var r}:void 0,children:[(0,bo.jsx)(ko,{className:s?.mark,color:e.color,type:e.markType}),(0,bo.jsx)(xa,{className:s?.label,children:e.label})]})},e.id))}))}));function Ca(e){return function(){return e}}const Ea=Math.abs,Sa=Math.atan2,Ma=Math.cos,_a=Math.max,Ta=Math.min,Ia=Math.sin,Pa=Math.sqrt,Ra=1e-12,La=Math.PI,ja=La/2,Da=2*La;function Oa(e){return e>=1?ja:e<=-1?-ja:Math.asin(e)}const Na=Math.PI,Fa=2*Na,za=1e-6,Ba=Fa-za;function $a(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class Ha{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?$a:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return $a;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,o){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+o}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,(i=+i)<0)throw new Error(`negative radius: ${i}`);let o=this._x1,a=this._y1,s=n-e,l=r-t,c=o-e,u=a-t,d=c*c+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(d>za)if(Math.abs(u*s-l*c)>za&&i){let f=n-o,h=r-a,p=s*s+l*l,g=f*f+h*h,m=Math.sqrt(p),v=Math.sqrt(d),y=i*Math.tan((Na-Math.acos((p+d-g)/(2*m*v)))/2),b=y/v,x=y/m;Math.abs(b-1)>za&&this._append`L${e+b*c},${t+b*u}`,this._append`A${i},${i},0,0,${+(u*f>c*h)},${this._x1=e+x*s},${this._y1=t+x*l}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,n,r,i,o){if(e=+e,t=+t,o=!!o,(n=+n)<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(r),s=n*Math.sin(r),l=e+a,c=t+s,u=1^o,d=o?r-i:i-r;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>za||Math.abs(this._y1-c)>za)&&this._append`L${l},${c}`,n&&(d<0&&(d=d%Fa+Fa),d>Ba?this._append`A${n},${n},0,1,${u},${e-a},${t-s}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:d>za&&this._append`A${n},${n},0,${+(d>=Na)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function Ua(e){return e.innerRadius}function Wa(e){return e.outerRadius}function Va(e){return e.startAngle}function qa(e){return e.endAngle}function Ga(e){return e&&e.padAngle}function Ya(e,t,n,r,i,o,a){var s=e-n,l=t-r,c=(a?o:-o)/Pa(s*s+l*l),u=c*l,d=-c*s,f=e+u,h=t+d,p=n+u,g=r+d,m=(f+p)/2,v=(h+g)/2,y=p-f,b=g-h,x=y*y+b*b,A=i-o,w=f*g-p*h,k=(b<0?-1:1)*Pa(_a(0,A*A*x-w*w)),C=(w*b-y*k)/x,E=(-w*y-b*k)/x,S=(w*b+y*k)/x,M=(-w*y+b*k)/x,_=C-m,T=E-v,I=S-m,P=M-v;return _*_+T*T>I*I+P*P&&(C=S,E=M),{cx:C,cy:E,x01:-u,y01:-d,x11:C*(i/A-1),y11:E*(i/A-1)}}function Ka(){var e=Ua,t=Wa,n=Ca(0),r=null,i=Va,o=qa,a=Ga,s=null,l=function(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new Ha(t)}(c);function c(){var c,u,d,f=+e.apply(this,arguments),h=+t.apply(this,arguments),p=i.apply(this,arguments)-ja,g=o.apply(this,arguments)-ja,m=Ea(g-p),v=g>p;if(s||(s=c=l()),h<f&&(u=h,h=f,f=u),h>Ra)if(m>Da-Ra)s.moveTo(h*Ma(p),h*Ia(p)),s.arc(0,0,h,p,g,!v),f>Ra&&(s.moveTo(f*Ma(g),f*Ia(g)),s.arc(0,0,f,g,p,v));else{var y,b,x=p,A=g,w=p,k=g,C=m,E=m,S=a.apply(this,arguments)/2,M=S>Ra&&(r?+r.apply(this,arguments):Pa(f*f+h*h)),_=Ta(Ea(h-f)/2,+n.apply(this,arguments)),T=_,I=_;if(M>Ra){var P=Oa(M/f*Ia(S)),R=Oa(M/h*Ia(S));(C-=2*P)>Ra?(w+=P*=v?1:-1,k-=P):(C=0,w=k=(p+g)/2),(E-=2*R)>Ra?(x+=R*=v?1:-1,A-=R):(E=0,x=A=(p+g)/2)}var L=h*Ma(x),j=h*Ia(x),D=f*Ma(k),O=f*Ia(k);if(_>Ra){var N,F=h*Ma(A),z=h*Ia(A),B=f*Ma(w),$=f*Ia(w);if(m<La)if(N=function(e,t,n,r,i,o,a,s){var l=n-e,c=r-t,u=a-i,d=s-o,f=d*l-u*c;if(!(f*f<Ra))return[e+(f=(u*(t-o)-d*(e-i))/f)*l,t+f*c]}(L,j,B,$,F,z,D,O)){var H=L-N[0],U=j-N[1],W=F-N[0],V=z-N[1],q=1/Ia(((d=(H*W+U*V)/(Pa(H*H+U*U)*Pa(W*W+V*V)))>1?0:d<-1?La:Math.acos(d))/2),G=Pa(N[0]*N[0]+N[1]*N[1]);T=Ta(_,(f-G)/(q-1)),I=Ta(_,(h-G)/(q+1))}else T=I=0}E>Ra?I>Ra?(y=Ya(B,$,L,j,h,I,v),b=Ya(F,z,D,O,h,I,v),s.moveTo(y.cx+y.x01,y.cy+y.y01),I<_?s.arc(y.cx,y.cy,I,Sa(y.y01,y.x01),Sa(b.y01,b.x01),!v):(s.arc(y.cx,y.cy,I,Sa(y.y01,y.x01),Sa(y.y11,y.x11),!v),s.arc(0,0,h,Sa(y.cy+y.y11,y.cx+y.x11),Sa(b.cy+b.y11,b.cx+b.x11),!v),s.arc(b.cx,b.cy,I,Sa(b.y11,b.x11),Sa(b.y01,b.x01),!v))):(s.moveTo(L,j),s.arc(0,0,h,x,A,!v)):s.moveTo(L,j),f>Ra&&C>Ra?T>Ra?(y=Ya(D,O,F,z,f,-T,v),b=Ya(L,j,B,$,f,-T,v),s.lineTo(y.cx+y.x01,y.cy+y.y01),T<_?s.arc(y.cx,y.cy,T,Sa(y.y01,y.x01),Sa(b.y01,b.x01),!v):(s.arc(y.cx,y.cy,T,Sa(y.y01,y.x01),Sa(y.y11,y.x11),!v),s.arc(0,0,f,Sa(y.cy+y.y11,y.cx+y.x11),Sa(b.cy+b.y11,b.cx+b.x11),v),s.arc(b.cx,b.cy,T,Sa(b.y11,b.x11),Sa(b.y01,b.x01),!v))):s.arc(0,0,f,k,w,v):s.lineTo(D,O)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-La/2;return[Ma(r)*n,Ia(r)*n]},c.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Ca(+t),c):e},c.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:Ca(+e),c):t},c.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:Ca(+e),c):n},c.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Ca(+e),c):r},c.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:Ca(+e),c):i},c.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:Ca(+e),c):o},c.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:Ca(+e),c):a},c.context=function(e){return arguments.length?(s=null==e?null:e,c):s},c}const Xa="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;var Za=n(76272);const Qa="cubic-bezier(0.66, 0, 0.34, 1)",Ja=Za(.66,0,.34,1);var es,ts,ns=0,rs=0,is=0,os=0,as=0,ss=0,ls="object"==typeof performance&&performance.now?performance:Date,cs="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function us(){return as||(cs(ds),as=ls.now()+ss)}function ds(){as=0}function fs(){this._call=this._time=this._next=null}function hs(e,t,n){var r=new fs;return r.restart(e,t,n),r}function ps(){as=(os=ls.now())+ss,ns=rs=0;try{!function(){us(),++ns;for(var e,t=es;t;)(e=as-t._time)>=0&&t._call.call(void 0,e),t=t._next;--ns}()}finally{ns=0,function(){for(var e,t,n=es,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:es=t);ts=e,ms(r)}(),as=0}}function gs(){var e=ls.now(),t=e-os;t>1e3&&(ss-=t,os=e)}function ms(e){ns||(rs&&(rs=clearTimeout(rs)),e-as>24?(e<1/0&&(rs=setTimeout(ps,e-ls.now()-ss)),is&&(is=clearInterval(is))):(is||(os=ls.now(),is=setInterval(gs,1e3)),ns=1,cs(ps)))}fs.prototype=hs.prototype={constructor:fs,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?us():+n)+(null==t?0:+t),this._next||ts===this||(ts?ts._next=this:es=this,ts=this),this._call=e,this._time=n,ms()},stop:function(){this._call&&(this._call=null,this._time=1/0,ms())}};class vs{elapsed=0;timer=null;constructor(e,t,n){this.duration=e,this.easingFn=t,this.onTickCallback=n,this.resume()}get running(){return null!==this.timer}timerCallback(e){this.elapsed=Math.min(e,this.duration);const t=0===this.duration?1:this.elapsed/this.duration,n=this.easingFn(t);this.onTickCallback(n),this.elapsed>=this.duration&&this.stop()}resume(){if(this.running||this.elapsed>=this.duration)return this;const e=us()-this.elapsed;return this.timer=hs(e=>this.timerCallback(e),0,e),this}stop(){return this.running?(this.timer&&(this.timer.stop(),this.timer=null),this):this}finish(){return this.stop(),e=()=>this.timerCallback(this.duration),n=new fs,t=null==t?0:+t,n.restart(t=>{n.stop(),e()},t,void 0),this;var e,t,n}}function ys(e,{createInterpolator:t,transformProps:n,applyProps:i,skip:a,initialProps:s=e,ref:l}){const c=n??(e=>e),u=function(e,{createInterpolator:t,applyProps:n,skip:r,initialProps:i=e}){const a=o.useRef(i),s=o.useRef(null),l=o.useRef(null),c=o.useRef(e);Xa(()=>{c.current=e},[e]),Xa(()=>{r&&(s.current?.finish(),s.current=null,l.current=null,a.current=e)},[e,r]);const u=o.useCallback(r=>{const i=a.current,o=t(i,e);s.current=new vs(300,Ja,e=>{const t=o(e);a.current=t,n(r,t)})},[n,t,e]);return o.useCallback(t=>{if(null===t)return void s.current?.stop();const n=l.current;if(n===t){if(function(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r+=1){const i=n[r];if(!Object.prototype.hasOwnProperty.call(t,i)||!Object.is(e[i],t[i]))return!1}return!0}(c.current,e))return void s.current?.resume();s.current?.stop()}n&&s.current?.stop(),l.current=t,!s.current&&r||u(t)},[u,e,r])}(e,{initialProps:s,createInterpolator:t,applyProps:(e,t)=>i(e,c(t)),skip:a}),d=a?e:s;return(0,r.A)({},n(d),{ref:ha(u,l)})}function bs(e,t){const n=De(e.startAngle,t.startAngle),r=De(e.endAngle,t.endAngle),i=De(e.innerRadius,t.innerRadius),o=De(e.outerRadius,t.outerRadius),a=De(e.paddingAngle,t.paddingAngle),s=De(e.cornerRadius,t.cornerRadius);return e=>({startAngle:n(e),endAngle:r(e),innerRadius:i(e),outerRadius:o(e),paddingAngle:a(e),cornerRadius:s(e)})}const xs=function(e){const t=o.useRef(e);return Xa(()=>{t.current=e}),o.useRef((...e)=>(0,t.current)(...e)).current};function As(e){"hasPointerCapture"in e.currentTarget&&e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId)}const ws=["classes","color","dataIndex","id","isFaded","isHighlighted","isFocused","onClick","cornerRadius","startAngle","endAngle","innerRadius","outerRadius","paddingAngle","skipAnimation"];function ks(e){return p("MuiPieArc",e)}g("MuiPieArc",["root","highlighted","faded","series"]);const Cs=(0,co.Ay)("path",{name:"MuiPieArc",slot:"Root",overridesResolver:(e,t)=>t.arc})(({theme:e})=>({stroke:(e.vars||e).palette.background.paper,transitionProperty:"opacity, fill, filter",transitionDuration:"300ms",transitionTimingFunction:Qa})),Es=o.forwardRef(function(e,t){const{classes:n,color:a,dataIndex:s,id:l,isFaded:c,isHighlighted:u,isFocused:d,onClick:f,cornerRadius:h,startAngle:p,endAngle:g,innerRadius:v,outerRadius:y,paddingAngle:b,skipAnimation:x}=e,A=(0,i.A)(e,ws),w={id:l,dataIndex:s,classes:n,color:a,isFaded:c,isHighlighted:u,isFocused:d},k=(e=>{const{classes:t,id:n,isFaded:r,isHighlighted:i,dataIndex:o}=e;return m({root:["root",`series-${n}`,`data-index-${o}`,i&&"highlighted",r&&"faded"]},ks,t)})(w),C=(e=>{const{instance:t}=(0,Mo.N)(),n=o.useRef(!1),r=xs(()=>{n.current=!0,t.setItemInteraction(e),t.setHighlight(e)}),i=xs(()=>{n.current=!1,t.removeItemInteraction(e),t.clearHighlight()});return o.useEffect(()=>()=>{n.current&&i()},[i]),{onPointerEnter:r,onPointerLeave:i,onPointerDown:As}})({type:"pie",seriesId:l,dataIndex:s}),E=function(e){const t={startAngle:(e.startAngle+e.endAngle)/2,endAngle:(e.startAngle+e.endAngle)/2,innerRadius:e.innerRadius,outerRadius:e.outerRadius,paddingAngle:e.paddingAngle,cornerRadius:e.cornerRadius};return ys({startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:e.innerRadius,outerRadius:e.outerRadius,paddingAngle:e.paddingAngle,cornerRadius:e.cornerRadius},{createInterpolator:bs,transformProps:e=>({d:Ka().cornerRadius(e.cornerRadius)({padAngle:e.paddingAngle,innerRadius:e.innerRadius,outerRadius:e.outerRadius,startAngle:e.startAngle,endAngle:e.endAngle}),visibility:e.startAngle===e.endAngle?"hidden":"visible"}),applyProps(e,t){e.setAttribute("d",t.d),e.setAttribute("visibility",t.visibility)},initialProps:t,skip:e.skipAnimation,ref:e.ref})}({cornerRadius:h,startAngle:p,endAngle:g,innerRadius:v,outerRadius:y,paddingAngle:b,skipAnimation:x,ref:t});return(0,bo.jsx)(Cs,(0,r.A)({onClick:f,cursor:f?"pointer":"unset",ownerState:w,className:k.root,fill:w.color,opacity:w.isFaded?.3:1,filter:w.isHighlighted?"brightness(120%)":"none",strokeWidth:1,strokeLinejoin:"round","data-highlighted":w.isHighlighted||void 0,"data-faded":w.isFaded||void 0,"data-focused":d||void 0},A,C,E))});function Ss(){return!1}function Ms(e,t){return e&&t?function(n){return!!n&&("series"===e.highlight||"item"===e.highlight&&n.dataIndex===t.dataIndex)&&n.seriesId===t.seriesId}:Ss}function _s(){return!1}function Ts(e,t){return e&&t?function(n){return!!n&&("series"===e.fade?n.seriesId===t.seriesId&&n.dataIndex!==t.dataIndex:"global"===e.fade&&(n.seriesId!==t.seriesId||n.dataIndex!==t.dataIndex))}:_s}function Is(e,t,n){return"series"===e?.highlight&&t?.seriesId===n}function Ps(e,t,n){return"item"===e?.highlight&&t?.seriesId===n?t.dataIndex:null}const Rs=(0,w.M)([e=>e.series],e=>{const t=new Map;return Object.keys(e.processedSeries).forEach(n=>{const r=e.processedSeries[n];r?.seriesOrder?.forEach(e=>{const n=r?.series[e];t.set(e,n?.highlightScope)})}),t}),Ls=(0,w.M)([e=>e.highlight],function(e){return e.item}),js=(0,w.M)([Rs,Ls],function(e,t){if(!t)return null;const n=e.get(t.seriesId);return void 0===n?null:n}),Ds=(0,w.M)([js,Ls],Ms),Os=(0,w.M)([js,Ls],Ts);(0,w.M)([js,Ls,(e,t)=>t],function(e,t,n){return Ms(e,t)(n)}),(0,w.M)([js,Ls,(e,t)=>t],Is),(0,w.M)([js,Ls,(e,t)=>t],function(e,t,n){return!Is(e,t,n)&&("global"===e?.fade&&null!=t||"series"===e?.fade&&t?.seriesId===n)}),(0,w.M)([js,Ls,(e,t)=>t],function(e,t,n){return Is(e,t,n)||Ps(e,t,n)===t?.dataIndex||"series"!==e?.fade&&"global"!==e?.fade||t?.seriesId!==n?null:t.dataIndex}),(0,w.M)([js,Ls,(e,t)=>t],Ps),(0,w.M)([js,Ls,(e,t)=>t],function(e,t,n){return Ts(e,t)(n)});const Ns=e=>e.keyboardNavigation,Fs=(0,w.M)([Ns],e=>null!=e?.item),zs=(0,w.M)([Ns],e=>e?.item?.type),Bs=(0,w.M)([Ns],e=>e?.item?.seriesId),$s=(0,w.M)([Ns],e=>e?.item?.dataIndex),Hs=(0,w.M)([Ns],e=>!!e?.enableKeyboardNavigation);function Us(e){const{id:t,data:n,faded:i,highlighted:a,paddingAngle:s=0,innerRadius:l=0,arcLabelRadius:c,outerRadius:u,cornerRadius:d=0}=e,{isFaded:f,isHighlighted:h}=function(){const e=(0,x.P)();return{isHighlighted:(0,A.d)(e,Ds),isFaded:(0,A.d)(e,Os)}}(),p=function(){const e=function(){const e=(0,x.P)(),t=(0,A.d)(e,zs),n=(0,A.d)(e,Bs),r=(0,A.d)(e,$s);return o.useMemo(()=>void 0===t||void 0===n||void 0===r?null:{seriesType:t,seriesId:n,dataIndex:r},[t,n,r])}();return t=>null!==e&&e.seriesType===t.seriesType&&e.seriesId===t.seriesId&&e.dataIndex===t.dataIndex}();return o.useMemo(()=>n.map((e,n)=>{const o={seriesId:t,dataIndex:n},g=h(o),m=!g&&f(o),v=p({seriesType:"pie",seriesId:t,dataIndex:n}),y=(0,r.A)({additionalRadius:0},m&&i||g&&a||{}),b=Math.max(0,Xi(y.paddingAngle??s)),x=Math.max(0,y.innerRadius??l),A=Math.max(0,y.outerRadius??u+y.additionalRadius),w=y.cornerRadius??d,k=y.arcLabelRadius??c??(x+A)/2;return(0,r.A)({},e,y,{dataIndex:n,isFaded:m,isHighlighted:g,isFocused:v,paddingAngle:b,innerRadius:x,outerRadius:A,cornerRadius:w,arcLabelRadius:k})}),[d,l,u,s,c,n,i,a,f,h,p,t])}const Ws=["slots","slotProps","innerRadius","outerRadius","cornerRadius","paddingAngle","id","highlighted","faded","data","onItemClick","skipAnimation"];function Vs(e){const{slots:t,slotProps:n,innerRadius:o=0,outerRadius:a,cornerRadius:s=0,paddingAngle:l=0,id:c,highlighted:u,faded:d={additionalRadius:-5},data:f,onItemClick:h,skipAnimation:p}=e,g=(0,i.A)(e,Ws),m=Us({innerRadius:o,outerRadius:a,cornerRadius:s,paddingAngle:l,id:c,highlighted:u,faded:d,data:f});if(0===f.length)return null;const v=t?.pieArc??Es;return(0,bo.jsx)("g",(0,r.A)({},g,{children:m.map((e,t)=>(0,bo.jsx)(v,(0,r.A)({startAngle:e.startAngle,endAngle:e.endAngle,paddingAngle:e.paddingAngle,innerRadius:e.innerRadius,outerRadius:e.outerRadius,cornerRadius:e.cornerRadius,skipAnimation:p??!1,id:c,color:e.color,dataIndex:t,isFaded:e.isFaded,isHighlighted:e.isHighlighted,isFocused:e.isFocused,onClick:h&&(n=>{h(n,{type:"pie",seriesId:c,dataIndex:t},e)})},n?.pieArc),e.dataIndex))}))}function qs(e,t){const n=De(e.startAngle,t.startAngle),r=De(e.endAngle,t.endAngle),i=De(e.innerRadius,t.innerRadius),o=De(e.outerRadius,t.outerRadius),a=De(e.paddingAngle,t.paddingAngle),s=De(e.cornerRadius,t.cornerRadius);return e=>({startAngle:n(e),endAngle:r(e),innerRadius:i(e),outerRadius:o(e),paddingAngle:a(e),cornerRadius:s(e)})}const Gs=["id","classes","color","startAngle","endAngle","paddingAngle","arcLabelRadius","innerRadius","outerRadius","cornerRadius","formattedArcLabel","isHighlighted","isFaded","style","skipAnimation"];function Ys(e){return p("MuiPieArcLabel",e)}const Ks=g("MuiPieArcLabel",["root","highlighted","faded","animate","series"]),Xs=(0,co.Ay)("text",{name:"MuiPieArcLabel",slot:"Root"})(({theme:e})=>({fill:(e.vars||e).palette.text.primary,textAnchor:"middle",dominantBaseline:"middle",pointerEvents:"none",animationName:"animate-opacity",animationDuration:"0s",animationTimingFunction:Qa,[`&.${Ks.animate}`]:{animationDuration:"300ms"},"@keyframes animate-opacity":{from:{opacity:0}}})),Zs=o.forwardRef(function(e,t){const{id:n,classes:o,color:a,startAngle:s,endAngle:l,paddingAngle:c,arcLabelRadius:u,cornerRadius:d,formattedArcLabel:f,isHighlighted:h,isFaded:p,skipAnimation:g}=e,v=(0,i.A)(e,Gs),y=(e=>{const{classes:t,id:n,isFaded:r,isHighlighted:i,skipAnimation:o}=e;return m({root:["root",`series-${n}`,i&&"highlighted",r&&"faded",!o&&"animate"]},Ys,t)})({id:n,classes:o,color:a,isFaded:p,isHighlighted:h,skipAnimation:g}),b=function(e){const t={startAngle:(e.startAngle+e.endAngle)/2,endAngle:(e.startAngle+e.endAngle)/2,innerRadius:e.arcLabelRadius??e.innerRadius,outerRadius:e.arcLabelRadius??e.outerRadius,paddingAngle:e.paddingAngle,cornerRadius:e.cornerRadius};return ys({startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:e.arcLabelRadius??e.innerRadius,outerRadius:e.arcLabelRadius??e.outerRadius,paddingAngle:e.paddingAngle,cornerRadius:e.cornerRadius},{createInterpolator:qs,transformProps:e=>{const[t,n]=Ka().cornerRadius(e.cornerRadius).centroid({padAngle:e.paddingAngle,startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:e.innerRadius,outerRadius:e.outerRadius});return{x:t,y:n}},applyProps(e,{x:t,y:n}){e.setAttribute("x",t.toString()),e.setAttribute("y",n.toString())},initialProps:t,skip:e.skipAnimation,ref:e.ref})}({cornerRadius:d,startAngle:s,endAngle:l,innerRadius:u,outerRadius:u,paddingAngle:c,skipAnimation:g,ref:t});return(0,bo.jsx)(Xs,(0,r.A)({className:y.root},v,b,{children:f}))}),Qs=["arcLabel","arcLabelMinAngle","arcLabelRadius","cornerRadius","data","faded","highlighted","id","innerRadius","outerRadius","paddingAngle","skipAnimation","slotProps","slots"],Js=180/Math.PI;function el(e,t,n){if(!e)return null;if((n.endAngle-n.startAngle)*Js<t)return null;switch(e){case"label":return Eo(n.label,"arc");case"value":return n.value?.toString();case"formattedValue":return n.formattedValue;default:return e((0,r.A)({},n,{label:Eo(n.label,"arc")}))}}function tl(e){const{arcLabel:t,arcLabelMinAngle:n=0,arcLabelRadius:o,cornerRadius:a=0,data:s,faded:l={additionalRadius:-5},highlighted:c,id:u,innerRadius:d,outerRadius:f,paddingAngle:h=0,skipAnimation:p,slotProps:g,slots:m}=e,v=(0,i.A)(e,Qs),y=Us({innerRadius:d,outerRadius:f,arcLabelRadius:o,cornerRadius:a,paddingAngle:h,id:u,highlighted:c,faded:l,data:s});if(0===s.length)return null;const b=m?.pieArcLabel??Zs;return(0,bo.jsx)("g",(0,r.A)({},v,{children:y.map(e=>(0,bo.jsx)(b,(0,r.A)({startAngle:e.startAngle,endAngle:e.endAngle,paddingAngle:e.paddingAngle,innerRadius:e.innerRadius,outerRadius:e.outerRadius,arcLabelRadius:e.arcLabelRadius,cornerRadius:e.cornerRadius,id:u,color:e.color,isFaded:e.isFaded,isHighlighted:e.isHighlighted,formattedArcLabel:el(t,n,e),skipAnimation:p??!1},g?.pieArcLabel),e.id??e.dataIndex))}))}function nl(e,t){if("number"==typeof e)return e;if("100%"===e)return t;if(e.endsWith("%")){const n=Number.parseFloat(e.slice(0,e.length-1));if(!Number.isNaN(n))return n*t/100}if(e.endsWith("px")){const t=Number.parseFloat(e.slice(0,e.length-2));if(!Number.isNaN(t))return t}throw new Error(`MUI X Charts: Received an unknown value "${e}". It should be a number, or a string with a percentage value.`)}function rl(e,t){const{height:n,width:r}=t,{cx:i,cy:o}=e,a=Math.min(r,n)/2;return{cx:nl(i??"50%",r),cy:nl(o??"50%",n),availableRadius:a}}var il;il="pie",(0,w.M)([C,(e,t)=>t],(e,t)=>{if(!t||Array.isArray(t)&&0===t.length)return e[il]?.seriesOrder?.map(t=>e[il]?.series[t])??[];if(!Array.isArray(t))return e[il]?.series?.[t];const n=[],r=[];for(const i of t){const t=e[il]?.series?.[i];t?n.push(t):r.push(i)}return n});const ol=function(){const e=(0,w.M)([C],e=>e.pie);return()=>{const t=(0,x.P)();return(0,A.d)(t,e)}}(),al=(0,w.M)([e=>e.animation],e=>e.skip||e.skipAnimationRequests>0);var sl=n(92742);function ll(e){return p("MuiPieChart",e)}function cl(e){const{skipAnimation:t,slots:n,slotProps:r,onItemClick:i}=e,o=ol(),{left:a,top:s,width:l,height:c}=(0,sl.N)(),u=function(e){const t=(0,x.P)(),n=(0,A.d)(t,al);return e||n}(t),d=m({root:["root"],series:["series"],seriesLabels:["seriesLabels"]},ll,void 0);if(void 0===o)return null;const{series:f,seriesOrder:h}=o;return(0,bo.jsxs)("g",{children:[h.map(e=>{const{innerRadius:t,outerRadius:o,cornerRadius:h,paddingAngle:p,data:g,cx:m,cy:v,highlighted:y,faded:b}=f[e],{cx:x,cy:A,availableRadius:w}=rl({cx:m,cy:v},{width:l,height:c}),k=nl(o??w,w),C=nl(t??0,w);return(0,bo.jsx)("g",{className:d.series,transform:`translate(${a+x}, ${s+A})`,"data-series":e,children:(0,bo.jsx)(Vs,{innerRadius:C,outerRadius:k,cornerRadius:h,paddingAngle:p,id:e,data:g,skipAnimation:u,highlighted:y,faded:b,onItemClick:i,slots:n,slotProps:r})},e)}),h.map(e=>{const{innerRadius:t,outerRadius:i,arcLabelRadius:o,cornerRadius:h,paddingAngle:p,arcLabel:g,arcLabelMinAngle:m,data:v,cx:y,cy:b}=f[e],{cx:x,cy:A,availableRadius:w}=rl({cx:y,cy:b},{width:l,height:c}),k=nl(i??w,w),C=nl(t??0,w),E=void 0===o?(k+C)/2:nl(o,w);return(0,bo.jsx)("g",{className:d.seriesLabels,transform:`translate(${a+x}, ${s+A})`,"data-series":e,children:(0,bo.jsx)(tl,{innerRadius:C,outerRadius:k??w,arcLabelRadius:E,cornerRadius:h,paddingAngle:p,id:e,data:v,skipAnimation:u,arcLabel:g,arcLabelMinAngle:m,slots:n,slotProps:r})},e)})]})}g("MuiPieChart",["root","series","seriesLabels"]);const ul={"image/png":"PNG","image/jpeg":"JPEG","image/webp":"WebP"},dl={loading:"Loading data…",noData:"No data to display",zoomIn:"Zoom in",zoomOut:"Zoom out",toolbarExport:"Export",toolbarExportPrint:"Print",toolbarExportImage:e=>`Export as ${ul[e]??e}`,chartTypeBar:"Bar",chartTypeColumn:"Column",chartTypeLine:"Line",chartTypeArea:"Area",chartTypePie:"Pie",chartPaletteLabel:"Color palette",chartPaletteNameRainbowSurge:"Rainbow Surge",chartPaletteNameBlueberryTwilight:"Blueberry Twilight",chartPaletteNameMangoFusion:"Mango Fusion",chartPaletteNameCheerfulFiesta:"Cheerful Fiesta",chartPaletteNameStrawberrySky:"Strawberry Sky",chartPaletteNameBlue:"Blue",chartPaletteNameGreen:"Green",chartPaletteNamePurple:"Purple",chartPaletteNameRed:"Red",chartPaletteNameOrange:"Orange",chartPaletteNameYellow:"Yellow",chartPaletteNameCyan:"Cyan",chartPaletteNamePink:"Pink",chartConfigurationSectionChart:"Chart",chartConfigurationSectionColumns:"Columns",chartConfigurationSectionBars:"Bars",chartConfigurationSectionAxes:"Axes",chartConfigurationGrid:"Grid",chartConfigurationBorderRadius:"Border radius",chartConfigurationCategoryGapRatio:"Category gap ratio",chartConfigurationBarGapRatio:"Series gap ratio",chartConfigurationStacked:"Stacked",chartConfigurationShowToolbar:"Show toolbar",chartConfigurationSkipAnimation:"Skip animation",chartConfigurationInnerRadius:"Inner radius",chartConfigurationOuterRadius:"Outer radius",chartConfigurationColors:"Colors",chartConfigurationHideLegend:"Hide legend",chartConfigurationShowMark:"Show mark",chartConfigurationHeight:"Height",chartConfigurationWidth:"Width",chartConfigurationSeriesGap:"Series gap",chartConfigurationTickPlacement:"Tick placement",chartConfigurationTickLabelPlacement:"Tick label placement",chartConfigurationCategoriesAxisLabel:"Categories axis label",chartConfigurationSeriesAxisLabel:"Series axis label",chartConfigurationXAxisPosition:"X-axis position",chartConfigurationYAxisPosition:"Y-axis position",chartConfigurationSeriesAxisReverse:"Reverse series axis",chartConfigurationTooltipPlacement:"Placement",chartConfigurationTooltipTrigger:"Trigger",chartConfigurationLegendPosition:"Position",chartConfigurationLegendDirection:"Direction",chartConfigurationBarLabels:"Bar labels",chartConfigurationColumnLabels:"Column labels",chartConfigurationInterpolation:"Interpolation",chartConfigurationSectionTooltip:"Tooltip",chartConfigurationSectionLegend:"Legend",chartConfigurationSectionLines:"Lines",chartConfigurationSectionAreas:"Areas",chartConfigurationSectionArcs:"Arcs",chartConfigurationPaddingAngle:"Padding angle",chartConfigurationCornerRadius:"Corner radius",chartConfigurationArcLabels:"Arc labels",chartConfigurationStartAngle:"Start angle",chartConfigurationEndAngle:"End angle",chartConfigurationPieTooltipTrigger:"Trigger",chartConfigurationPieLegendPosition:"Position",chartConfigurationPieLegendDirection:"Direction",chartConfigurationOptionNone:"None",chartConfigurationOptionValue:"Value",chartConfigurationOptionAuto:"Auto",chartConfigurationOptionTop:"Top",chartConfigurationOptionTopLeft:"Top Left",chartConfigurationOptionTopRight:"Top Right",chartConfigurationOptionBottom:"Bottom",chartConfigurationOptionBottomLeft:"Bottom Left",chartConfigurationOptionBottomRight:"Bottom Right",chartConfigurationOptionLeft:"Left",chartConfigurationOptionRight:"Right",chartConfigurationOptionAxis:"Axis",chartConfigurationOptionItem:"Item",chartConfigurationOptionHorizontal:"Horizontal",chartConfigurationOptionVertical:"Vertical",chartConfigurationOptionBoth:"Both",chartConfigurationOptionStart:"Start",chartConfigurationOptionMiddle:"Middle",chartConfigurationOptionEnd:"End",chartConfigurationOptionExtremities:"Extremities",chartConfigurationOptionTick:"Tick",chartConfigurationOptionMonotoneX:"Monotone X",chartConfigurationOptionMonotoneY:"Monotone Y",chartConfigurationOptionCatmullRom:"Catmull-Rom",chartConfigurationOptionLinear:"Linear",chartConfigurationOptionNatural:"Natural",chartConfigurationOptionStep:"Step",chartConfigurationOptionStepBefore:"Step Before",chartConfigurationOptionStepAfter:"Step After",chartConfigurationOptionBumpX:"Bump X",chartConfigurationOptionBumpY:"Bump Y"},fl=dl;var hl;hl=dl,(0,r.A)({},hl);const pl=["localeText"],gl=o.createContext(null);function ml(e){const{localeText:t}=e,n=(0,i.A)(e,pl),{localeText:a}=o.useContext(gl)??{localeText:void 0},l=(0,s.A)({props:n,name:"MuiChartsLocalizationProvider"}),{children:c,localeText:u}=l,d=o.useMemo(()=>(0,r.A)({},fl,u,a,t),[u,a,t]),f=o.useMemo(()=>({localeText:d}),[d]);return(0,bo.jsx)(gl.Provider,{value:f,children:c})}const vl=()=>{const e=o.useContext(gl);if(null===e)throw new Error(["MUI X Charts: Can not find the charts localization context.","It looks like you forgot to wrap your component in ChartsLocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-charts` package"].join("\n"));return e},yl=["message"],bl=(0,co.Ay)("text")(({theme:e})=>(0,r.A)({},e.typography.body2,{stroke:"none",fill:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function xl(e){const{message:t}=e,n=(0,i.A)(e,yl),{top:o,left:a,height:s,width:l}=(0,sl.N)(),{localeText:c}=vl();return(0,bo.jsx)(bl,(0,r.A)({x:a+l/2,y:o+s/2},n,{children:t??c.loading}))}const Al=["message"],wl=(0,co.Ay)("text")(({theme:e})=>(0,r.A)({},e.typography.body2,{stroke:"none",fill:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function kl(e){const{message:t}=e,n=(0,i.A)(e,Al),{top:o,left:a,height:s,width:l}=(0,sl.N)(),{localeText:c}=vl();return(0,bo.jsx)(wl,(0,r.A)({x:a+l/2,y:o+s/2},n,{children:t??c.noData}))}function Cl(e){const t=function(){const e=S();return Object.values(e).every(e=>{if(!e)return!0;const{series:t,seriesOrder:n}=e;return n.every(e=>{const n=t[e];return"sankey"===n.type?0===n.data.links.length:0===n.data.length})})}();if(e.loading){const t=e.slots?.loadingOverlay??xl;return(0,bo.jsx)(t,(0,r.A)({},e.slotProps?.loadingOverlay))}if(t){const t=e.slots?.noDataOverlay??kl;return(0,bo.jsx)(t,(0,r.A)({},e.slotProps?.noDataOverlay))}return null}function El(e){const{isReversed:t,gradientId:n,size:r,direction:i,scale:a,colorMap:s}=e;return r<=0?null:(0,bo.jsx)("linearGradient",{id:n,x1:"0",x2:"0",y1:"0",y2:"0",[`${i}${t?1:2}`]:`${r}px`,gradientUnits:"userSpaceOnUse",children:s.thresholds.map((e,n)=>{const i=a(e);if(void 0===i)return null;const l=t?1-i/r:i/r;return Number.isNaN(l)?null:(0,bo.jsxs)(o.Fragment,{children:[(0,bo.jsx)("stop",{offset:l,stopColor:s.colors[n],stopOpacity:1}),(0,bo.jsx)("stop",{offset:l,stopColor:s.colors[n+1],stopOpacity:1})]},e.toString()+n)})})}function Sl(e){const{gradientUnits:t,isReversed:n,gradientId:r,size:i,direction:o,scale:a,colorScale:s,colorMap:l}=e,c=[l.min??0,l.max??100],u=c.map(a).filter(e=>void 0!==e);if(2!==u.length)return null;const d="number"==typeof c[0]?De(c[0],c[1]):je(c[0],c[1]),f=Math.round((Math.max(...u)-Math.min(...u))/10),h=`${c[0]}-${c[1]}-`;return(0,bo.jsx)("linearGradient",{id:r,x1:"0",x2:"0",y1:"0",y2:"0",[`${o}${n?1:2}`]:"objectBoundingBox"===t?1:`${i}px`,gradientUnits:t??"userSpaceOnUse",children:Array.from({length:f+1},(e,t)=>{const r=d(t/f);if(void 0===r)return null;const o=a(r);if(void 0===o)return null;const l=n?1-o/i:o/i,c=s(r);return null===c?null:(0,bo.jsx)("stop",{offset:l,stopColor:c,stopOpacity:1},h+t)})})}function Ml(e){const{isReversed:t,gradientId:n,colorScale:i,colorMap:o}=e,a=[o.min??0,o.max??100],s="number"==typeof a[0]?De(a[0],a[1]):je(a[0],a[1]),l=`${a[0]}-${a[1]}-`;return(0,bo.jsx)("linearGradient",(0,r.A)({id:n},(e=>e?{x1:"1",x2:"0",y1:"0",y2:"0"}:{x1:"0",x2:"1",y1:"0",y2:"0"})(t),{gradientUnits:"objectBoundingBox",children:Array.from({length:11},(e,t)=>{const n=t/10,r=s(n);if(void 0===r)return null;const o=i(r);return null===o?null:(0,bo.jsx)("stop",{offset:n,stopColor:o,stopOpacity:1},l+t)})}))}const _l=(0,w.M)([e=>e.id],e=>e.chartId);function Tl(){const e=(0,x.P)();return(0,A.d)(e,_l)}function Il(){const{top:e,height:t,bottom:n,left:r,width:i,right:a}=(0,sl.N)(),s=e+t+n,l=r+i+a,c=function(){const e=Tl();return o.useCallback(t=>`${e}-gradient-${t}`,[e])}(),u=function(){const e=Tl();return o.useCallback(t=>`${e}-gradient-${t}-object-bound`,[e])}(),{xAxis:d,xAxisIds:f}=io(),{yAxis:h,yAxisIds:p}=oo(),{zAxis:g,zAxisIds:m}=lo(),v=p.filter(e=>void 0!==h[e].colorMap),y=f.filter(e=>void 0!==d[e].colorMap),b=m.filter(e=>void 0!==g[e].colorMap);return 0===v.length&&0===y.length&&0===b.length?null:(0,bo.jsxs)("defs",{children:[v.map(e=>{const t=c(e),n=u(e),{colorMap:r,scale:i,colorScale:a,reverse:l}=h[e];return"piecewise"===r?.type?(0,bo.jsx)(El,{isReversed:!l,scale:i,colorMap:r,size:s,gradientId:t,direction:"y"},t):"continuous"===r?.type?(0,bo.jsxs)(o.Fragment,{children:[(0,bo.jsx)(Sl,{isReversed:!l,scale:i,colorScale:a,colorMap:r,size:s,gradientId:t,direction:"y"}),(0,bo.jsx)(Ml,{isReversed:l,colorScale:a,colorMap:r,gradientId:n})]},t):null}),y.map(e=>{const t=c(e),n=u(e),{colorMap:r,scale:i,reverse:a,colorScale:s}=d[e];return"piecewise"===r?.type?(0,bo.jsx)(El,{isReversed:a,scale:i,colorMap:r,size:l,gradientId:t,direction:"x"},t):"continuous"===r?.type?(0,bo.jsxs)(o.Fragment,{children:[(0,bo.jsx)(Sl,{isReversed:a,scale:i,colorScale:s,colorMap:r,size:l,gradientId:t,direction:"x"}),(0,bo.jsx)(Ml,{isReversed:a,colorScale:s,colorMap:r,gradientId:n})]},t):null}),b.map(e=>{const t=u(e),{colorMap:n,colorScale:r}=g[e];return"continuous"===n?.type?(0,bo.jsx)(Ml,{colorScale:r,colorMap:n,gradientId:t},t):null})]})}const Pl=["children","className","title","desc"],Rl=(0,co.Ay)("svg",{name:"MuiChartsSurface",slot:"Root"})(({ownerState:e})=>({width:e.width??"100%",height:e.height??"100%",display:"flex",position:"relative",flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden",touchAction:"pan-y",userSelect:"none",gridArea:"chart","&:focus":{outline:"none"},"&:focus-visible":{outline:"auto","&[data-has-focused-item=true]":{outline:"none"}},"& [data-focused=true]":{outline:"auto"}})),Ll=o.forwardRef(function(e,t){const n=(0,x.P)(),{width:o,height:a}=(0,A.d)(n,j._h),{width:l,height:c}=(0,A.d)(n,j.dr),u=(0,A.d)(n,Hs),d=(0,A.d)(n,Fs),f=ha(_o(),t),h=(0,s.A)({props:e,name:"MuiChartsSurface"}),{children:p,className:g,title:m,desc:v}=h,y=(0,i.A)(h,Pl),b=a>0&&o>0;return(0,bo.jsxs)(Rl,(0,r.A)({ownerState:{width:l,height:c},viewBox:`0 0 ${o} ${a}`,className:g,tabIndex:u?0:void 0,"data-has-focused-item":d||void 0},y,{ref:f,children:[m&&(0,bo.jsx)("title",{children:m}),v&&(0,bo.jsx)("desc",{children:v}),(0,bo.jsx)(Il,{}),b&&p]}))});var jl=n(78722);const Dl={baseButton:n(54184).A,baseIconButton:jl.A},Ol=(0,r.A)({},Dl,{}),Nl=o.createContext(null);function Fl(e){const{slots:t,slotProps:n={},defaultSlots:i,children:a}=e,s=o.useMemo(()=>({slots:(0,r.A)({},i,t),slotProps:n}),[i,t,n]);return(0,bo.jsx)(Nl.Provider,{value:s,children:a})}const zl=["#4254FB","#FFB422","#FA4F58","#0DBEFF","#22BF75","#FA83B4","#FF7511"],Bl=["#495AFB","#FFC758","#F35865","#30C8FF","#44CE8D","#F286B3","#FF8C39"],$l=e=>"dark"===e?Bl:zl,Hl={top:20,bottom:20,left:20,right:20};function Ul(e,t){const n={top:0,bottom:0,none:0};return(e&&e.length>0?e:[{id:"DEFAULT_X_AXIS_KEY",scaleType:"linear"}]).map((e,i)=>{const o=e.dataKey,a=0===i?"bottom":"none",s=e.position??a,l=25+(e.label?20:0),c=e.id??`defaultized-x-axis-${i}`,u=(0,r.A)({offset:n[s]},e,{id:c,position:s,height:e.height??l,zoom:ji(e.zoom,c,"x")});if("none"!==s&&(n[s]+=u.height,u.zoom?.slider.enabled&&(n[s]+=u.zoom.slider.size)),void 0===o||void 0!==e.data)return u;if(void 0===t)throw new Error("MUI X Charts: x-axis uses `dataKey` but no `dataset` is provided.");return(0,r.A)({},u,{data:t.map(e=>e[o])})})}function Wl(e,t){const n={right:0,left:0,none:0};return(e&&e.length>0?e:[{id:"DEFAULT_Y_AXIS_KEY",scaleType:"linear"}]).map((e,i)=>{const o=e.dataKey,a=0===i?"left":"none",s=e.position??a,l=45+(e.label?20:0),c=e.id??`defaultized-y-axis-${i}`,u=(0,r.A)({offset:n[s]},e,{id:c,position:s,width:e.width??l,zoom:ji(e.zoom,c,"y")});if("none"!==s&&(n[s]+=u.width,u.zoom?.slider.enabled&&(n[s]+=u.zoom.slider.size)),void 0===o||void 0!==e.data)return u;if(void 0===t)throw new Error("MUI X Charts: y-axis uses `dataKey` but no `dataset` is provided.");return(0,r.A)({},u,{data:t.map(e=>e[o])})})}function Vl(e,t){const n=e.createSVGPoint();return n.x=t.clientX,n.y=t.clientY,n.matrixTransform(e.getScreenCTM().inverse())}const ql=()=>{};function Gl(e){const{store:t,selector:n,skip:r}=e;let i,o=!1;const a=()=>{s.dispose??=t.subscribe(e=>{const t=n(e);s.effect(i,t),i=t})},s={effect:ql,dispose:null,onMount:e=>()=>{if(!e)return o||(o=!0,i=n(t.value)),a(),()=>{s.dispose?.(),s.dispose=null}}};return r||(o=!0,i=n(t.value),a()),s}const Yl=({params:e,store:t,seriesConfig:n,svgRef:i,instance:a})=>{const{xAxis:s,yAxis:l,dataset:c,onHighlightedAxisChange:u}=e,d=(0,A.d)(t,j.VT),f=(0,A.d)(t,C),h=(0,A.d)(t,_),{axis:p,axisIds:g}=(0,A.d)(t,Gi),{axis:m,axisIds:v}=(0,A.d)(t,Yi);e.highlightedAxis,Xa(()=>{void 0!==e.highlightedAxis&&t.update(t=>t.controlledCartesianAxisHighlight===e.highlightedAxis?t:(0,r.A)({},t,{controlledCartesianAxisHighlight:e.highlightedAxis}))},[t,e.highlightedAxis]);const y=o.useRef(!0);o.useEffect(()=>{y.current?y.current=!1:t.update(e=>(0,r.A)({},e,{cartesianAxis:(0,r.A)({},e.cartesianAxis,{x:Ul(s,c),y:Wl(l,c)})}))},[n,d,s,l,c,t]);const b=g[0],x=v[0];!function(e,t,n,r){const i=na(Gl,{store:e,selector:t,skip:r}).current;i.effect=(e,t)=>{Object.is(e,t)||(e.length===t.length?e?.some(({axisId:e,dataIndex:n},r)=>t[r].axisId!==e||t[r].dataIndex!==n)&&u(t):u(t))},o.useEffect(i.onMount(r),[r])}(t,Fo,0,!u);const w=function(e){return void 0!==e.setPointerCoordinate}(a);return o.useEffect(()=>{const t=i.current;if(!h||!w||!t||e.disableAxisListener)return()=>{};const n=a.addInteractionListener("moveEnd",e=>{e.detail.activeGestures.pan||a.cleanInteraction()}),r=a.addInteractionListener("panEnd",e=>{e.detail.activeGestures.move||a.cleanInteraction()}),o=a.addInteractionListener("quickPressEnd",e=>{e.detail.activeGestures.move||e.detail.activeGestures.pan||a.cleanInteraction()}),s=e=>{const n=e.detail.srcEvent,r=e.detail.target,i=Vl(t,n);e.detail.srcEvent.buttons>=1&&r?.hasPointerCapture(e.detail.srcEvent.pointerId)&&!r?.closest("[data-charts-zoom-slider]")&&r?.releasePointerCapture(e.detail.srcEvent.pointerId),a.isPointInside(i.x,i.y,r)?a.setPointerCoordinate(i):a.cleanInteraction?.()},l=a.addInteractionListener("move",s),c=a.addInteractionListener("pan",s),u=a.addInteractionListener("quickPress",s);return()=>{l.cleanup(),n.cleanup(),c.cleanup(),r.cleanup(),u.cleanup(),o.cleanup()}},[i,t,p,b,m,x,a,e.disableAxisListener,h,w]),o.useEffect(()=>{const t=i.current,n=e.onAxisClick;if(null===t||!n)return()=>{};const r=a.addInteractionListener("tap",e=>{let r=null,i=!1;const o=Vl(t,e.detail.srcEvent),a=Po(p[b],o.x);i=-1!==a,r=i?a:Po(m[x],o.y);const s=i?g[0]:v[0];if(null==r||-1===r)return;const l=(i?p:m)[s].data[r],c={};Object.keys(f).filter(e=>["bar","line"].includes(e)).forEach(e=>{f[e]?.seriesOrder.forEach(t=>{const n=f[e].series[t],o=n.xAxisId,a=n.yAxisId,l=i?o:a;void 0!==l&&l!==s||(c[t]=n.data[r])})}),n(e.detail.srcEvent,{dataIndex:r,axisValue:l,seriesValues:c})});return()=>{r.cleanup()}},[e.onAxisClick,f,i,p,g,m,v,b,x,a]),{}};Yl.params={xAxis:!0,yAxis:!0,dataset:!0,onAxisClick:!0,disableAxisListener:!0,onHighlightedAxisChange:!0,highlightedAxis:!0},Yl.getDefaultizedParams=({params:e})=>(0,r.A)({},e,{colors:e.colors??$l,theme:e.theme??"light",defaultizedXAxis:Ul(e.xAxis,e.dataset),defaultizedYAxis:Wl(e.yAxis,e.dataset)}),Yl.getInitialState=e=>(0,r.A)({cartesianAxis:{x:e.defaultizedXAxis,y:e.defaultizedYAxis}},void 0===e.highlightedAxis?{}:{controlledCartesianAxisHighlight:e.highlightedAxis});const Kl=Object.is;function Xl(e,t){if(e===t)return!0;if(!(e instanceof Object&&t instanceof Object))return!1;let n=0,r=0;for(const r in e){if(n+=1,!Kl(e[r],t[r]))return!1;if(!(r in t))return!1}for(const e in t)r+=1;return n===r}const Zl=({store:e,params:t})=>(t.highlightedItem,Xa(()=>{e.update(e=>e.highlight.item===t.highlightedItem?e:(0,r.A)({},e,{highlight:(0,r.A)({},e.highlight,{item:t.highlightedItem})}))},[e,t.highlightedItem]),{instance:{clearHighlight:xs(()=>{t.onHighlightChange?.(null),e.update(e=>(0,r.A)({},e,{highlight:{item:null}}))}),setHighlight:xs(n=>{Xl(e.getSnapshot().highlight.item,n)||(t.onHighlightChange?.(n),e.update(e=>(0,r.A)({},e,{highlight:{item:n}})))})}});Zl.getDefaultizedParams=({params:e})=>(0,r.A)({},e,{highlightedItem:e.highlightedItem??null}),Zl.getInitialState=e=>({highlight:{item:e.highlightedItem}}),Zl.params={highlightedItem:!0,onHighlightChange:!0};const Ql=({store:e})=>{const t=xs(function(){e.update(e=>(0,r.A)({},e,{interaction:{pointer:null,item:null}}))}),n=xs(function(t){e.update(e=>{const n=e.interaction.item;return t?null===n||Object.keys(t).some(e=>t[e]!==n[e])?e:(0,r.A)({},e,{interaction:(0,r.A)({},e.interaction,{item:null})}):null===n?e:(0,r.A)({},e,{interaction:(0,r.A)({},e.interaction,{item:null})})})});return{instance:{cleanInteraction:t,setItemInteraction:xs(function(t){e.update(e=>Xl(e.interaction.item,t)?e:(0,r.A)({},e,{interaction:(0,r.A)({},e.interaction,{item:t})}))}),removeItemInteraction:n,setPointerCoordinate:xs(function(t){e.update(e=>(0,r.A)({},e,{interaction:(0,r.A)({},e.interaction,{pointer:t})}))})}}};function Jl(e,t,n){const r=void 0!==t&&e[t]?Object.keys(e).indexOf(t):0,i=void 0!==t&&void 0!==n&&e[t]&&e[t].series[n]?e[t].seriesOrder.indexOf(n):-1,o=Object.keys(e).filter(e=>"sankey"!==e);for(let t=0;t<o.length;t+=1){const n=(r+t)%o.length,a=e[o[n]];for(let e=0===t?i+1:0;e<a.seriesOrder.length;e+=1)if(a.series[a.seriesOrder[e]].data.length>0)return{type:o[n],seriesId:a.seriesOrder[e]}}const a=r,s=e[o[a]],l=i;for(let e=0;e<l;e+=1)if(s.series[s.seriesOrder[e]].data.length>0)return{type:o[a],seriesId:s.seriesOrder[e]};return null}function ec(e,t,n){const r=void 0!==t&&e[t]?Object.keys(e).indexOf(t):0,i=void 0!==t&&void 0!==n&&e[t]&&e[t].series[n]?e[t].seriesOrder.indexOf(n):1,o=Object.keys(e).filter(e=>"sankey"!==e);for(let t=0;t<o.length;t+=1){const n=(o.length+r-t)%o.length,a=e[o[n]],s=0===t?i+1:a.seriesOrder.length;for(let e=1;e<s;e+=1){const t=(a.seriesOrder.length+i-e)%a.seriesOrder.length;if(a.series[a.seriesOrder[t]].data.length>0)return{type:o[n],seriesId:a.seriesOrder[t]}}}const a=r,s=e[o[a]];for(let e=s.seriesOrder.length-1;e>i;e-=1)if(s.series[s.seriesOrder[e]].data.length>0)return{type:o[a],seriesId:s.seriesOrder[e]};return null}function tc(e,t,n){if("sankey"===t)return!1;const r=e[t]?.series[n]?.data;return r&&r.length>0}Ql.getInitialState=()=>({interaction:{item:null,pointer:null}}),Ql.params={};const nc=({params:e,store:t,svgRef:n})=>{const i=xs(function(){t.update(e=>{let{type:t,seriesId:n}=e.keyboardNavigation.item??{};if(void 0===t||"sankey"===t||void 0===n||!tc(e.series.processedSeries,t,n)){const i=Jl(e.series.processedSeries,t,n);if(null===i)return(0,r.A)({},e,{keyboardNavigation:(0,r.A)({},e.keyboardNavigation,{item:null})});t=i.type,n=i.seriesId}const i=e.series.processedSeries[t].series[n].data.length;return(0,r.A)({},e,{keyboardNavigation:(0,r.A)({},e.keyboardNavigation,{item:{type:t,seriesId:n,dataIndex:((e.keyboardNavigation.item?.dataIndex??-1)+1)%i}})})})}),a=xs(function(){t.update(e=>{let{type:t,seriesId:n}=e.keyboardNavigation.item??{};if(void 0===t||"sankey"===t||void 0===n||!tc(e.series.processedSeries,t,n)){const i=ec(e.series.processedSeries,t,n);if(null===i)return(0,r.A)({},e,{keyboardNavigation:(0,r.A)({},e.keyboardNavigation,{item:null})});t=i.type,n=i.seriesId}const i=e.series.processedSeries[t].series[n].data.length;return(0,r.A)({},e,{keyboardNavigation:(0,r.A)({},e.keyboardNavigation,{item:{type:t,seriesId:n,dataIndex:(i+(e.keyboardNavigation.item?.dataIndex??1)-1)%i}})})})}),s=xs(function(){let e=!1;return t.update(t=>{let{type:n,seriesId:i}=t.keyboardNavigation.item??{};const o=ec(t.series.processedSeries,n,i);if(null===o)return(0,r.A)({},t,{keyboardNavigation:(0,r.A)({},t.keyboardNavigation,{item:null})});n=o.type,i=o.seriesId;const a=t.series.processedSeries[n].series[i].data.length;return e=!0,(0,r.A)({},t,{keyboardNavigation:(0,r.A)({},t.keyboardNavigation,{item:{type:n,seriesId:i,dataIndex:Math.min(a-1,t.keyboardNavigation.item?.dataIndex??0)}})})}),e}),l=xs(function(){let e=!1;return t.update(t=>{let{type:n,seriesId:i}=t.keyboardNavigation.item??{};const o=Jl(t.series.processedSeries,n,i);if(null===o)return(0,r.A)({},t,{keyboardNavigation:(0,r.A)({},t.keyboardNavigation,{item:null})});n=o.type,i=o.seriesId;const a=t.series.processedSeries[n].series[i].data.length;return e=!0,(0,r.A)({},t,{keyboardNavigation:(0,r.A)({},t.keyboardNavigation,{item:{type:n,seriesId:i,dataIndex:Math.min(a-1,t.keyboardNavigation.item?.dataIndex??0)}})})}),e}),c=xs(function(){t.update(e=>null===e.keyboardNavigation.item?e:(0,r.A)({},e,{keyboardNavigation:(0,r.A)({},e.keyboardNavigation,{item:null})}))});return o.useEffect(()=>{const t=n.current;if(t&&e.enableKeyboardNavigation)return t.addEventListener("keydown",r),t.addEventListener("blur",c),()=>{t.removeEventListener("keydown",r),t.removeEventListener("blur",c)};function r(e){switch(e.key){case"ArrowRight":i();break;case"ArrowLeft":a();break;case"ArrowDown":s()&&e.preventDefault();break;case"ArrowUp":l()&&e.preventDefault()}}},[n,i,a,c,s,l,e.enableKeyboardNavigation]),Xa(()=>t.update(t=>t.keyboardNavigation.enableKeyboardNavigation===e.enableKeyboardNavigation?t:(0,r.A)({},t,{keyboardNavigation:(0,r.A)({},t.keyboardNavigation,{enableKeyboardNavigation:!!e.enableKeyboardNavigation})})),[t,e.enableKeyboardNavigation]),{instance:{}}};nc.getInitialState=e=>({keyboardNavigation:{item:null,enableKeyboardNavigation:!!e.enableKeyboardNavigation}}),nc.params={enableKeyboardNavigation:!0};const rc=134217729;function ic(e,t,n,r,i){let o,a,s,l,c=t[0],u=r[0],d=0,f=0;u>c==u>-c?(o=c,c=t[++d]):(o=u,u=r[++f]);let h=0;if(d<e&&f<n)for(u>c==u>-c?(a=c+o,s=o-(a-c),c=t[++d]):(a=u+o,s=o-(a-u),u=r[++f]),o=a,0!==s&&(i[h++]=s);d<e&&f<n;)u>c==u>-c?(a=o+c,l=a-o,s=o-(a-l)+(c-l),c=t[++d]):(a=o+u,l=a-o,s=o-(a-l)+(u-l),u=r[++f]),o=a,0!==s&&(i[h++]=s);for(;d<e;)a=o+c,l=a-o,s=o-(a-l)+(c-l),c=t[++d],o=a,0!==s&&(i[h++]=s);for(;f<n;)a=o+u,l=a-o,s=o-(a-l)+(u-l),u=r[++f],o=a,0!==s&&(i[h++]=s);return 0===o&&0!==h||(i[h++]=o),h}function oc(e){return new Float64Array(e)}const ac=oc(4),sc=oc(8),lc=oc(12),cc=oc(16),uc=oc(4);function dc(e,t,n,r,i,o){const a=(t-o)*(n-i),s=(e-i)*(r-o),l=a-s,c=Math.abs(a+s);return Math.abs(l)>=33306690738754716e-32*c?l:-function(e,t,n,r,i,o,a){let s,l,c,u,d,f,h,p,g,m,v,y,b,x,A,w,k,C;const E=e-i,S=n-i,M=t-o,_=r-o;x=E*_,f=rc*E,h=f-(f-E),p=E-h,f=rc*_,g=f-(f-_),m=_-g,A=p*m-(x-h*g-p*g-h*m),w=M*S,f=rc*M,h=f-(f-M),p=M-h,f=rc*S,g=f-(f-S),m=S-g,k=p*m-(w-h*g-p*g-h*m),v=A-k,d=A-v,ac[0]=A-(v+d)+(d-k),y=x+v,d=y-x,b=x-(y-d)+(v-d),v=b-w,d=b-v,ac[1]=b-(v+d)+(d-w),C=y+v,d=C-y,ac[2]=y-(C-d)+(v-d),ac[3]=C;let T=function(e,t){let n=t[0];for(let e=1;e<4;e++)n+=t[e];return n}(0,ac),I=22204460492503146e-32*a;if(T>=I||-T>=I)return T;if(d=e-E,s=e-(E+d)+(d-i),d=n-S,c=n-(S+d)+(d-i),d=t-M,l=t-(M+d)+(d-o),d=r-_,u=r-(_+d)+(d-o),0===s&&0===l&&0===c&&0===u)return T;if(I=11093356479670487e-47*a+33306690738754706e-32*Math.abs(T),T+=E*u+_*s-(M*c+S*l),T>=I||-T>=I)return T;x=s*_,f=rc*s,h=f-(f-s),p=s-h,f=rc*_,g=f-(f-_),m=_-g,A=p*m-(x-h*g-p*g-h*m),w=l*S,f=rc*l,h=f-(f-l),p=l-h,f=rc*S,g=f-(f-S),m=S-g,k=p*m-(w-h*g-p*g-h*m),v=A-k,d=A-v,uc[0]=A-(v+d)+(d-k),y=x+v,d=y-x,b=x-(y-d)+(v-d),v=b-w,d=b-v,uc[1]=b-(v+d)+(d-w),C=y+v,d=C-y,uc[2]=y-(C-d)+(v-d),uc[3]=C;const P=ic(4,ac,4,uc,sc);x=E*u,f=rc*E,h=f-(f-E),p=E-h,f=rc*u,g=f-(f-u),m=u-g,A=p*m-(x-h*g-p*g-h*m),w=M*c,f=rc*M,h=f-(f-M),p=M-h,f=rc*c,g=f-(f-c),m=c-g,k=p*m-(w-h*g-p*g-h*m),v=A-k,d=A-v,uc[0]=A-(v+d)+(d-k),y=x+v,d=y-x,b=x-(y-d)+(v-d),v=b-w,d=b-v,uc[1]=b-(v+d)+(d-w),C=y+v,d=C-y,uc[2]=y-(C-d)+(v-d),uc[3]=C;const R=ic(P,sc,4,uc,lc);x=s*u,f=rc*s,h=f-(f-s),p=s-h,f=rc*u,g=f-(f-u),m=u-g,A=p*m-(x-h*g-p*g-h*m),w=l*c,f=rc*l,h=f-(f-l),p=l-h,f=rc*c,g=f-(f-c),m=c-g,k=p*m-(w-h*g-p*g-h*m),v=A-k,d=A-v,uc[0]=A-(v+d)+(d-k),y=x+v,d=y-x,b=x-(y-d)+(v-d),v=b-w,d=b-v,uc[1]=b-(v+d)+(d-w),C=y+v,d=C-y,uc[2]=y-(C-d)+(v-d),uc[3]=C;const L=ic(R,lc,4,uc,cc);return cc[L-1]}(e,t,n,r,i,o,c)}oc(4),oc(4),oc(4),oc(4),oc(4),oc(4),oc(4),oc(4),oc(4),oc(8),oc(8),oc(8),oc(4),oc(8),oc(8),oc(8),oc(12),oc(192),oc(192),oc(4),oc(4),oc(4),oc(4),oc(4),oc(4),oc(4),oc(4),oc(8),oc(8),oc(8),oc(8),oc(8),oc(8),oc(8),oc(8),oc(8),oc(4),oc(4),oc(4),oc(8),oc(16),oc(16),oc(16),oc(32),oc(32),oc(48),oc(64),oc(1152),oc(1152),oc(4),oc(4),oc(4),oc(4),oc(4),oc(4),oc(4),oc(4),oc(4),oc(4),oc(24),oc(24),oc(24),oc(24),oc(24),oc(24),oc(24),oc(24),oc(24),oc(24),oc(1152),oc(1152),oc(1152),oc(1152),oc(1152),oc(2304),oc(2304),oc(3456),oc(5760),oc(8),oc(8),oc(8),oc(16),oc(24),oc(48),oc(48),oc(96),oc(192),oc(384),oc(384),oc(384),oc(768),oc(96),oc(96),oc(96),oc(1152);const fc=Math.pow(2,-52),hc=new Uint32Array(512);class pc{static from(e,t=xc,n=Ac){const r=e.length,i=new Float64Array(2*r);for(let o=0;o<r;o++){const r=e[o];i[2*o]=t(r),i[2*o+1]=n(r)}return new pc(i)}constructor(e){const t=e.length>>1;if(t>0&&"number"!=typeof e[0])throw new Error("Expected coords to contain numbers.");this.coords=e;const n=Math.max(2*t-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(t)),this._hullPrev=new Uint32Array(t),this._hullNext=new Uint32Array(t),this._hullTri=new Uint32Array(t),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(t),this._dists=new Float64Array(t),this.update()}update(){const{coords:e,_hullPrev:t,_hullNext:n,_hullTri:r,_hullHash:i}=this,o=e.length>>1;let a=1/0,s=1/0,l=-1/0,c=-1/0;for(let t=0;t<o;t++){const n=e[2*t],r=e[2*t+1];n<a&&(a=n),r<s&&(s=r),n>l&&(l=n),r>c&&(c=r),this._ids[t]=t}const u=(a+l)/2,d=(s+c)/2;let f,h,p;for(let t=0,n=1/0;t<o;t++){const r=gc(u,d,e[2*t],e[2*t+1]);r<n&&(f=t,n=r)}const g=e[2*f],m=e[2*f+1];for(let t=0,n=1/0;t<o;t++){if(t===f)continue;const r=gc(g,m,e[2*t],e[2*t+1]);r<n&&r>0&&(h=t,n=r)}let v=e[2*h],y=e[2*h+1],b=1/0;for(let t=0;t<o;t++){if(t===f||t===h)continue;const n=vc(g,m,v,y,e[2*t],e[2*t+1]);n<b&&(p=t,b=n)}let x=e[2*p],A=e[2*p+1];if(b===1/0){for(let t=0;t<o;t++)this._dists[t]=e[2*t]-e[0]||e[2*t+1]-e[1];yc(this._ids,this._dists,0,o-1);const t=new Uint32Array(o);let n=0;for(let e=0,r=-1/0;e<o;e++){const i=this._ids[e],o=this._dists[i];o>r&&(t[n++]=i,r=o)}return this.hull=t.subarray(0,n),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(dc(g,m,v,y,x,A)<0){const e=h,t=v,n=y;h=p,v=x,y=A,p=e,x=t,A=n}const w=function(e,t,n,r,i,o){const a=n-e,s=r-t,l=i-e,c=o-t,u=a*a+s*s,d=l*l+c*c,f=.5/(a*c-s*l);return{x:e+(c*u-s*d)*f,y:t+(a*d-l*u)*f}}(g,m,v,y,x,A);this._cx=w.x,this._cy=w.y;for(let t=0;t<o;t++)this._dists[t]=gc(e[2*t],e[2*t+1],w.x,w.y);yc(this._ids,this._dists,0,o-1),this._hullStart=f;let k=3;n[f]=t[p]=h,n[h]=t[f]=p,n[p]=t[h]=f,r[f]=0,r[h]=1,r[p]=2,i.fill(-1),i[this._hashKey(g,m)]=f,i[this._hashKey(v,y)]=h,i[this._hashKey(x,A)]=p,this.trianglesLen=0,this._addTriangle(f,h,p,-1,-1,-1);for(let o,a,s=0;s<this._ids.length;s++){const l=this._ids[s],c=e[2*l],u=e[2*l+1];if(s>0&&Math.abs(c-o)<=fc&&Math.abs(u-a)<=fc)continue;if(o=c,a=u,l===f||l===h||l===p)continue;let d=0;for(let e=0,t=this._hashKey(c,u);e<this._hashSize&&(d=i[(t+e)%this._hashSize],-1===d||d===n[d]);e++);d=t[d];let g,m=d;for(;g=n[m],dc(c,u,e[2*m],e[2*m+1],e[2*g],e[2*g+1])>=0;)if(m=g,m===d){m=-1;break}if(-1===m)continue;let v=this._addTriangle(m,l,n[m],-1,-1,r[m]);r[l]=this._legalize(v+2),r[m]=v,k++;let y=n[m];for(;g=n[y],dc(c,u,e[2*y],e[2*y+1],e[2*g],e[2*g+1])<0;)v=this._addTriangle(y,l,g,r[l],-1,r[y]),r[l]=this._legalize(v+2),n[y]=y,k--,y=g;if(m===d)for(;g=t[m],dc(c,u,e[2*g],e[2*g+1],e[2*m],e[2*m+1])<0;)v=this._addTriangle(g,l,m,-1,r[m],r[g]),this._legalize(v+2),r[g]=v,n[m]=m,k--,m=g;this._hullStart=t[l]=m,n[m]=t[y]=l,n[l]=y,i[this._hashKey(c,u)]=l,i[this._hashKey(e[2*m],e[2*m+1])]=m}this.hull=new Uint32Array(k);for(let e=0,t=this._hullStart;e<k;e++)this.hull[e]=t,t=n[t];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(e,t){return Math.floor(function(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}(e-this._cx,t-this._cy)*this._hashSize)%this._hashSize}_legalize(e){const{_triangles:t,_halfedges:n,coords:r}=this;let i=0,o=0;for(;;){const a=n[e],s=e-e%3;if(o=s+(e+2)%3,-1===a){if(0===i)break;e=hc[--i];continue}const l=a-a%3,c=s+(e+1)%3,u=l+(a+2)%3,d=t[o],f=t[e],h=t[c],p=t[u];if(mc(r[2*d],r[2*d+1],r[2*f],r[2*f+1],r[2*h],r[2*h+1],r[2*p],r[2*p+1])){t[e]=p,t[a]=d;const r=n[u];if(-1===r){let t=this._hullStart;do{if(this._hullTri[t]===u){this._hullTri[t]=e;break}t=this._hullPrev[t]}while(t!==this._hullStart)}this._link(e,r),this._link(a,n[o]),this._link(o,u);const s=l+(a+1)%3;i<hc.length&&(hc[i++]=s)}else{if(0===i)break;e=hc[--i]}}return o}_link(e,t){this._halfedges[e]=t,-1!==t&&(this._halfedges[t]=e)}_addTriangle(e,t,n,r,i,o){const a=this.trianglesLen;return this._triangles[a]=e,this._triangles[a+1]=t,this._triangles[a+2]=n,this._link(a,r),this._link(a+1,i),this._link(a+2,o),this.trianglesLen+=3,a}}function gc(e,t,n,r){const i=e-n,o=t-r;return i*i+o*o}function mc(e,t,n,r,i,o,a,s){const l=e-a,c=t-s,u=n-a,d=r-s,f=i-a,h=o-s,p=u*u+d*d,g=f*f+h*h;return l*(d*g-p*h)-c*(u*g-p*f)+(l*l+c*c)*(u*h-d*f)<0}function vc(e,t,n,r,i,o){const a=n-e,s=r-t,l=i-e,c=o-t,u=a*a+s*s,d=l*l+c*c,f=.5/(a*c-s*l),h=(c*u-s*d)*f,p=(a*d-l*u)*f;return h*h+p*p}function yc(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const r=e[i],o=t[r];let a=i-1;for(;a>=n&&t[e[a]]>o;)e[a+1]=e[a--];e[a+1]=r}else{let i=n+1,o=r;bc(e,n+r>>1,i),t[e[n]]>t[e[r]]&&bc(e,n,r),t[e[i]]>t[e[r]]&&bc(e,i,r),t[e[n]]>t[e[i]]&&bc(e,n,i);const a=e[i],s=t[a];for(;;){do{i++}while(t[e[i]]<s);do{o--}while(t[e[o]]>s);if(o<i)break;bc(e,i,o)}e[n+1]=e[o],e[o]=a,r-i+1>=o-n?(yc(e,t,i,r),yc(e,t,n,o-1)):(yc(e,t,n,o-1),yc(e,t,i,r))}}function bc(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function xc(e){return e[0]}function Ac(e){return e[1]}const wc=1e-6;class kc{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(e,t){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(e,t){this._+=`L${this._x1=+e},${this._y1=+t}`}arc(e,t,n){const r=(e=+e)+(n=+n),i=t=+t;if(n<0)throw new Error("negative radius");null===this._x1?this._+=`M${r},${i}`:(Math.abs(this._x1-r)>wc||Math.abs(this._y1-i)>wc)&&(this._+="L"+r+","+i),n&&(this._+=`A${n},${n},0,1,1,${e-n},${t}A${n},${n},0,1,1,${this._x1=r},${this._y1=i}`)}rect(e,t,n,r){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${+n}v${+r}h${-n}Z`}value(){return this._||null}}class Cc{constructor(){this._=[]}moveTo(e,t){this._.push([e,t])}closePath(){this._.push(this._[0].slice())}lineTo(e,t){this._.push([e,t])}value(){return this._.length?this._:null}}class Ec{constructor(e,[t,n,r,i]=[0,0,960,500]){if(!((r=+r)>=(t=+t)&&(i=+i)>=(n=+n)))throw new Error("invalid bounds");this.delaunay=e,this._circumcenters=new Float64Array(2*e.points.length),this.vectors=new Float64Array(2*e.points.length),this.xmax=r,this.xmin=t,this.ymax=i,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:e,hull:t,triangles:n},vectors:r}=this;let i,o;const a=this.circumcenters=this._circumcenters.subarray(0,n.length/3*2);for(let r,s,l=0,c=0,u=n.length;l<u;l+=3,c+=2){const u=2*n[l],d=2*n[l+1],f=2*n[l+2],h=e[u],p=e[u+1],g=e[d],m=e[d+1],v=e[f],y=e[f+1],b=g-h,x=m-p,A=v-h,w=y-p,k=2*(b*w-x*A);if(Math.abs(k)<1e-9){if(void 0===i){i=o=0;for(const n of t)i+=e[2*n],o+=e[2*n+1];i/=t.length,o/=t.length}const n=1e9*Math.sign((i-h)*w-(o-p)*A);r=(h+v)/2-n*w,s=(p+y)/2+n*A}else{const e=1/k,t=b*b+x*x,n=A*A+w*w;r=h+(w*t-x*n)*e,s=p+(b*n-A*t)*e}a[c]=r,a[c+1]=s}let s,l,c,u=t[t.length-1],d=4*u,f=e[2*u],h=e[2*u+1];r.fill(0);for(let n=0;n<t.length;++n)u=t[n],s=d,l=f,c=h,d=4*u,f=e[2*u],h=e[2*u+1],r[s+2]=r[d]=c-h,r[s+3]=r[d+1]=f-l}render(e){const t=null==e?e=new kc:void 0,{delaunay:{halfedges:n,inedges:r,hull:i},circumcenters:o,vectors:a}=this;if(i.length<=1)return null;for(let t=0,r=n.length;t<r;++t){const r=n[t];if(r<t)continue;const i=2*Math.floor(t/3),a=2*Math.floor(r/3),s=o[i],l=o[i+1],c=o[a],u=o[a+1];this._renderSegment(s,l,c,u,e)}let s,l=i[i.length-1];for(let t=0;t<i.length;++t){s=l,l=i[t];const n=2*Math.floor(r[l]/3),c=o[n],u=o[n+1],d=4*s,f=this._project(c,u,a[d+2],a[d+3]);f&&this._renderSegment(c,u,f[0],f[1],e)}return t&&t.value()}renderBounds(e){const t=null==e?e=new kc:void 0;return e.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),t&&t.value()}renderCell(e,t){const n=null==t?t=new kc:void 0,r=this._clip(e);if(null===r||!r.length)return;t.moveTo(r[0],r[1]);let i=r.length;for(;r[0]===r[i-2]&&r[1]===r[i-1]&&i>1;)i-=2;for(let e=2;e<i;e+=2)r[e]===r[e-2]&&r[e+1]===r[e-1]||t.lineTo(r[e],r[e+1]);return t.closePath(),n&&n.value()}*cellPolygons(){const{delaunay:{points:e}}=this;for(let t=0,n=e.length/2;t<n;++t){const e=this.cellPolygon(t);e&&(e.index=t,yield e)}}cellPolygon(e){const t=new Cc;return this.renderCell(e,t),t.value()}_renderSegment(e,t,n,r,i){let o;const a=this._regioncode(e,t),s=this._regioncode(n,r);0===a&&0===s?(i.moveTo(e,t),i.lineTo(n,r)):(o=this._clipSegment(e,t,n,r,a,s))&&(i.moveTo(o[0],o[1]),i.lineTo(o[2],o[3]))}contains(e,t,n){return(t=+t)==t&&(n=+n)==n&&this.delaunay._step(e,t,n)===e}*neighbors(e){const t=this._clip(e);if(t)for(const n of this.delaunay.neighbors(e)){const e=this._clip(n);if(e)e:for(let r=0,i=t.length;r<i;r+=2)for(let o=0,a=e.length;o<a;o+=2)if(t[r]===e[o]&&t[r+1]===e[o+1]&&t[(r+2)%i]===e[(o+a-2)%a]&&t[(r+3)%i]===e[(o+a-1)%a]){yield n;break e}}}_cell(e){const{circumcenters:t,delaunay:{inedges:n,halfedges:r,triangles:i}}=this,o=n[e];if(-1===o)return null;const a=[];let s=o;do{const n=Math.floor(s/3);if(a.push(t[2*n],t[2*n+1]),s=s%3==2?s-2:s+1,i[s]!==e)break;s=r[s]}while(s!==o&&-1!==s);return a}_clip(e){if(0===e&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const t=this._cell(e);if(null===t)return null;const{vectors:n}=this,r=4*e;return this._simplify(n[r]||n[r+1]?this._clipInfinite(e,t,n[r],n[r+1],n[r+2],n[r+3]):this._clipFinite(e,t))}_clipFinite(e,t){const n=t.length;let r,i,o,a,s=null,l=t[n-2],c=t[n-1],u=this._regioncode(l,c),d=0;for(let f=0;f<n;f+=2)if(r=l,i=c,l=t[f],c=t[f+1],o=u,u=this._regioncode(l,c),0===o&&0===u)a=d,d=0,s?s.push(l,c):s=[l,c];else{let t,n,f,h,p;if(0===o){if(null===(t=this._clipSegment(r,i,l,c,o,u)))continue;[n,f,h,p]=t}else{if(null===(t=this._clipSegment(l,c,r,i,u,o)))continue;[h,p,n,f]=t,a=d,d=this._edgecode(n,f),a&&d&&this._edge(e,a,d,s,s.length),s?s.push(n,f):s=[n,f]}a=d,d=this._edgecode(h,p),a&&d&&this._edge(e,a,d,s,s.length),s?s.push(h,p):s=[h,p]}if(s)a=d,d=this._edgecode(s[0],s[1]),a&&d&&this._edge(e,a,d,s,s.length);else if(this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return s}_clipSegment(e,t,n,r,i,o){const a=i<o;for(a&&([e,t,n,r,i,o]=[n,r,e,t,o,i]);;){if(0===i&&0===o)return a?[n,r,e,t]:[e,t,n,r];if(i&o)return null;let s,l,c=i||o;8&c?(s=e+(n-e)*(this.ymax-t)/(r-t),l=this.ymax):4&c?(s=e+(n-e)*(this.ymin-t)/(r-t),l=this.ymin):2&c?(l=t+(r-t)*(this.xmax-e)/(n-e),s=this.xmax):(l=t+(r-t)*(this.xmin-e)/(n-e),s=this.xmin),i?(e=s,t=l,i=this._regioncode(e,t)):(n=s,r=l,o=this._regioncode(n,r))}}_clipInfinite(e,t,n,r,i,o){let a,s=Array.from(t);if((a=this._project(s[0],s[1],n,r))&&s.unshift(a[0],a[1]),(a=this._project(s[s.length-2],s[s.length-1],i,o))&&s.push(a[0],a[1]),s=this._clipFinite(e,s))for(let t,n=0,r=s.length,i=this._edgecode(s[r-2],s[r-1]);n<r;n+=2)t=i,i=this._edgecode(s[n],s[n+1]),t&&i&&(n=this._edge(e,t,i,s,n),r=s.length);else this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(s=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return s}_edge(e,t,n,r,i){for(;t!==n;){let n,o;switch(t){case 5:t=4;continue;case 4:t=6,n=this.xmax,o=this.ymin;break;case 6:t=2;continue;case 2:t=10,n=this.xmax,o=this.ymax;break;case 10:t=8;continue;case 8:t=9,n=this.xmin,o=this.ymax;break;case 9:t=1;continue;case 1:t=5,n=this.xmin,o=this.ymin}r[i]===n&&r[i+1]===o||!this.contains(e,n,o)||(r.splice(i,0,n,o),i+=2)}return i}_project(e,t,n,r){let i,o,a,s=1/0;if(r<0){if(t<=this.ymin)return null;(i=(this.ymin-t)/r)<s&&(a=this.ymin,o=e+(s=i)*n)}else if(r>0){if(t>=this.ymax)return null;(i=(this.ymax-t)/r)<s&&(a=this.ymax,o=e+(s=i)*n)}if(n>0){if(e>=this.xmax)return null;(i=(this.xmax-e)/n)<s&&(o=this.xmax,a=t+(s=i)*r)}else if(n<0){if(e<=this.xmin)return null;(i=(this.xmin-e)/n)<s&&(o=this.xmin,a=t+(s=i)*r)}return[o,a]}_edgecode(e,t){return(e===this.xmin?1:e===this.xmax?2:0)|(t===this.ymin?4:t===this.ymax?8:0)}_regioncode(e,t){return(e<this.xmin?1:e>this.xmax?2:0)|(t<this.ymin?4:t>this.ymax?8:0)}_simplify(e){if(e&&e.length>4){for(let t=0;t<e.length;t+=2){const n=(t+2)%e.length,r=(t+4)%e.length;(e[t]===e[n]&&e[n]===e[r]||e[t+1]===e[n+1]&&e[n+1]===e[r+1])&&(e.splice(n,2),t-=2)}e.length||(e=null)}return e}}const Sc=2*Math.PI,Mc=Math.pow;function _c(e){return e[0]}function Tc(e){return e[1]}function Ic(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class Pc{static from(e,t=_c,n=Tc,r){return new Pc("length"in e?function(e,t,n,r){const i=e.length,o=new Float64Array(2*i);for(let a=0;a<i;++a){const i=e[a];o[2*a]=t.call(r,i,a,e),o[2*a+1]=n.call(r,i,a,e)}return o}(e,t,n,r):Float64Array.from(function*(e,t,n,r){let i=0;for(const o of e)yield t.call(r,o,i,e),yield n.call(r,o,i,e),++i}(e,t,n,r)))}constructor(e){this._delaunator=new pc(e),this.inedges=new Int32Array(e.length/2),this._hullIndex=new Int32Array(e.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const e=this._delaunator,t=this.points;if(e.hull&&e.hull.length>2&&function(e){const{triangles:t,coords:n}=e;for(let e=0;e<t.length;e+=3){const r=2*t[e],i=2*t[e+1],o=2*t[e+2];if((n[o]-n[r])*(n[i+1]-n[r+1])-(n[i]-n[r])*(n[o+1]-n[r+1])>1e-10)return!1}return!0}(e)){this.collinear=Int32Array.from({length:t.length/2},(e,t)=>t).sort((e,n)=>t[2*e]-t[2*n]||t[2*e+1]-t[2*n+1]);const e=this.collinear[0],n=this.collinear[this.collinear.length-1],r=[t[2*e],t[2*e+1],t[2*n],t[2*n+1]],i=1e-8*Math.hypot(r[3]-r[1],r[2]-r[0]);for(let e=0,n=t.length/2;e<n;++e){const n=Ic(t[2*e],t[2*e+1],i);t[2*e]=n[0],t[2*e+1]=n[1]}this._delaunator=new pc(t)}else delete this.collinear;const n=this.halfedges=this._delaunator.halfedges,r=this.hull=this._delaunator.hull,i=this.triangles=this._delaunator.triangles,o=this.inedges.fill(-1),a=this._hullIndex.fill(-1);for(let e=0,t=n.length;e<t;++e){const t=i[e%3==2?e-2:e+1];-1!==n[e]&&-1!==o[t]||(o[t]=e)}for(let e=0,t=r.length;e<t;++e)a[r[e]]=e;r.length<=2&&r.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=r[0],o[r[0]]=1,2===r.length&&(o[r[1]]=0,this.triangles[1]=r[1],this.triangles[2]=r[1]))}voronoi(e){return new Ec(this,e)}*neighbors(e){const{inedges:t,hull:n,_hullIndex:r,halfedges:i,triangles:o,collinear:a}=this;if(a){const t=a.indexOf(e);return t>0&&(yield a[t-1]),void(t<a.length-1&&(yield a[t+1]))}const s=t[e];if(-1===s)return;let l=s,c=-1;do{if(yield c=o[l],l=l%3==2?l-2:l+1,o[l]!==e)return;if(l=i[l],-1===l){const t=n[(r[e]+1)%n.length];return void(t!==c&&(yield t))}}while(l!==s)}find(e,t,n=0){if((e=+e)!=e||(t=+t)!=t)return-1;const r=n;let i;for(;(i=this._step(n,e,t))>=0&&i!==n&&i!==r;)n=i;return i}_step(e,t,n){const{inedges:r,hull:i,_hullIndex:o,halfedges:a,triangles:s,points:l}=this;if(-1===r[e]||!l.length)return(e+1)%(l.length>>1);let c=e,u=Mc(t-l[2*e],2)+Mc(n-l[2*e+1],2);const d=r[e];let f=d;do{let r=s[f];const d=Mc(t-l[2*r],2)+Mc(n-l[2*r+1],2);if(d<u&&(u=d,c=r),f=f%3==2?f-2:f+1,s[f]!==e)break;if(f=a[f],-1===f){if(f=i[(o[e]+1)%i.length],f!==r&&Mc(t-l[2*f],2)+Mc(n-l[2*f+1],2)<u)return f;break}}while(f!==d);return c}render(e){const t=null==e?e=new kc:void 0,{points:n,halfedges:r,triangles:i}=this;for(let t=0,o=r.length;t<o;++t){const o=r[t];if(o<t)continue;const a=2*i[t],s=2*i[o];e.moveTo(n[a],n[a+1]),e.lineTo(n[s],n[s+1])}return this.renderHull(e),t&&t.value()}renderPoints(e,t){void 0!==t||e&&"function"==typeof e.moveTo||(t=e,e=null),t=null==t?2:+t;const n=null==e?e=new kc:void 0,{points:r}=this;for(let n=0,i=r.length;n<i;n+=2){const i=r[n],o=r[n+1];e.moveTo(i+t,o),e.arc(i,o,t,0,Sc)}return n&&n.value()}renderHull(e){const t=null==e?e=new kc:void 0,{hull:n,points:r}=this,i=2*n[0],o=n.length;e.moveTo(r[i],r[i+1]);for(let t=1;t<o;++t){const i=2*n[t];e.lineTo(r[i],r[i+1])}return e.closePath(),t&&t.value()}hullPolygon(){const e=new Cc;return this.renderHull(e),e.value()}renderTriangle(e,t){const n=null==t?t=new kc:void 0,{points:r,triangles:i}=this,o=2*i[e*=3],a=2*i[e+1],s=2*i[e+2];return t.moveTo(r[o],r[o+1]),t.lineTo(r[a],r[a+1]),t.lineTo(r[s],r[s+1]),t.closePath(),n&&n.value()}*trianglePolygons(){const{triangles:e}=this;for(let t=0,n=e.length/3;t<n;++t)yield this.trianglePolygon(t)}trianglePolygon(e){const t=new Cc;return this.renderTriangle(e,t),t.value()}}function Rc(e){if(Ti(e))return t=>(e(t)??0)+e.bandwidth()/2;const t=e.domain();return t[0]===t[1]?n=>n===t[0]?e(n):NaN:t=>e(t)}const Lc=({svgRef:e,params:t,store:n,instance:i})=>{const{disableVoronoi:a,voronoiMaxRadius:s,onItemClick:l}=t,c=(0,A.d)(n,j.VT),{axis:u,axisIds:d}=(0,A.d)(n,Gi),{axis:f,axisIds:h}=(0,A.d)(n,Yi),p=(0,A.d)(n,zi),{series:g,seriesOrder:m}=(0,A.d)(n,C)?.scatter??{},v=o.useRef({}),y=o.useRef(void 0),b=o.useRef(void 0),x=d[0],w=h[0];return Xa(()=>{n.update(e=>e.voronoi.isVoronoiEnabled===!a?e:(0,r.A)({},e,{voronoi:{isVoronoiEnabled:!a}}))},[n,a]),Xa(()=>{if(p||void 0===m||void 0===g||a)return;v.current={};let e=[];m.forEach(t=>{const{data:n,xAxisId:r,yAxisId:o}=g[t],a=u[r??x].scale,s=f[o??w].scale,l=Rc(a),c=Rc(s),d=[],h=[];for(let e=0;e<n.length;e+=1){const{x:t,y:r}=n[e],o=l(t),a=c(r);i.isPointInside(o,a)&&(d.push(o),d.push(a),h.push(e))}v.current[t]={seriesId:t,seriesIndexes:h,startIndex:e.length,endIndex:e.length+d.length,markerSize:g[t].markerSize},e=e.concat(d)}),y.current=new Pc(e),b.current=void 0},[p,x,w,g,m,u,f,c,i,a]),o.useEffect(()=>{if(null===e.current||a)return;const t=e.current;function n(e){const n=Vl(t,e);if(!i.isPointInside(n.x,n.y))return b.current=void 0,"outside-chart";if(!y.current)return"no-point-found";const r=y.current.find(n.x,n.y,b.current);if(void 0===r)return"no-point-found";b.current=r;const o=Object.values(v.current).find(e=>2*r>=e.startIndex&&2*r<e.endIndex);if(void 0===o)return"no-point-found";const a=(2*r-v.current[o.seriesId].startIndex)/2,l=v.current[o.seriesId].seriesIndexes[a],c="item"===s?o.markerSize:s;if(void 0!==c){const e=y.current.points[2*r],t=y.current.points[2*r+1];if((e-n.x)**2+(t-n.y)**2>c**2)return"outside-voronoi-max-radius"}return{seriesId:o.seriesId,dataIndex:l}}const r=i.addInteractionListener("moveEnd",e=>{e.detail.activeGestures.pan||(i.cleanInteraction?.(),i.clearHighlight?.())}),o=i.addInteractionListener("panEnd",e=>{e.detail.activeGestures.move||(i.cleanInteraction?.(),i.clearHighlight?.())}),c=i.addInteractionListener("quickPressEnd",e=>{e.detail.activeGestures.move||e.detail.activeGestures.pan||(i.cleanInteraction?.(),i.clearHighlight?.())}),u=e=>{const t=n(e.detail.srcEvent);if("outside-chart"===t)return i.cleanInteraction?.(),void i.clearHighlight?.();if("outside-voronoi-max-radius"===t||"no-point-found"===t)return i.removeItemInteraction?.(),void i.clearHighlight?.();const{seriesId:r,dataIndex:o}=t;i.setItemInteraction?.({type:"scatter",seriesId:r,dataIndex:o}),i.setHighlight?.({seriesId:r,dataIndex:o})},d=i.addInteractionListener("tap",e=>{const t=n(e.detail.srcEvent);if("string"!=typeof t&&l){const{seriesId:n,dataIndex:r}=t;l(e.detail.srcEvent,{type:"scatter",seriesId:n,dataIndex:r})}}),f=i.addInteractionListener("move",u),h=i.addInteractionListener("pan",u),p=i.addInteractionListener("quickPress",u);return()=>{d.cleanup(),f.cleanup(),r.cleanup(),h.cleanup(),o.cleanup(),p.cleanup(),c.cleanup()}},[e,f,u,s,l,a,c,i]),{instance:{enableVoronoi:xs(()=>{n.update(e=>(0,r.A)({},e,{voronoi:(0,r.A)({},e.voronoi,{isVoronoiEnabled:!0})}))}),disableVoronoi:xs(()=>{n.update(e=>(0,r.A)({},e,{voronoi:(0,r.A)({},e.voronoi,{isVoronoiEnabled:!1})}))})}}};function jc(e,t){return void 0!==e.id?e:(0,r.A)({id:t},e)}function Dc(e){return e.colorMap?(0,r.A)({},e,{colorScale:"ordinal"===e.colorMap.type&&e.data?_t((0,r.A)({values:e.data},e.colorMap)):Tt("continuous"===e.colorMap.type?(0,r.A)({min:e.min,max:e.max},e.colorMap):e.colorMap)}):e}function Oc(e,t){if(!e||0===e.length)return{axis:{},axisIds:[]};const n={},i=[];return e.forEach((e,o)=>{const a=e.dataKey,s=e.id??`defaultized-z-axis-${o}`;if(void 0===a||void 0!==e.data)return n[s]=Dc(jc(e,s)),void i.push(s);if(void 0===t)throw new Error("MUI X Charts: z-axis uses `dataKey` but no `dataset` is provided.");n[s]=Dc(jc((0,r.A)({},e,{data:t.map(e=>e[a])}),s)),i.push(s)}),{axis:n,axisIds:i}}Lc.getDefaultizedParams=({params:e})=>(0,r.A)({},e,{disableVoronoi:e.disableVoronoi??!e.series.some(e=>"scatter"===e.type)}),Lc.getInitialState=e=>({voronoi:{isVoronoiEnabled:!e.disableVoronoi}}),Lc.params={disableVoronoi:!0,voronoiMaxRadius:!0,onItemClick:!0};const Nc=({params:e,store:t})=>{const{zAxis:n,dataset:i}=e,a=o.useRef(!0);return o.useEffect(()=>{a.current?a.current=!1:t.update(e=>(0,r.A)({},e,{zAxis:Oc(n,i)}))},[n,i,t]),{}};Nc.params={zAxis:!0,dataset:!0},Nc.getInitialState=e=>({zAxis:Oc(e.zAxis,e.dataset)});const Fc=[Nc,Yl,Ql,Zl,Lc,nc],zc=["children","localeText","plugins","seriesConfig","slots","slotProps"];let Bc=0;const $c={...a}.useId;class Hc{constructor(e){this.value=e,this.listeners=new Set}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.value;update=e=>{const t=e(this.value);t!==this.value&&(this.value=t,this.listeners.forEach(e=>e(t)))}}const Uc=({params:e,store:t})=>{o.useEffect(()=>{t.update(t=>(0,r.A)({},t,{animation:(0,r.A)({},t.animation,{skip:e.skipAnimation})}))},[t,e.skipAnimation]);const n=o.useCallback(()=>{let e=!1;return t.update(e=>(0,r.A)({},e,{animation:(0,r.A)({},e.animation,{skipAnimationRequests:e.animation.skipAnimationRequests+1})})),()=>{e||(e=!0,t.update(e=>(0,r.A)({},e,{animation:(0,r.A)({},e.animation,{skipAnimationRequests:e.animation.skipAnimationRequests-1})})))}},[t]);return Xa(()=>{if("undefined"==typeof window||!window?.matchMedia)return;let e;const t=t=>{t.matches?e=n():e?.()},r=window.matchMedia("(prefers-reduced-motion)");return t(r),r.addEventListener("change",t),()=>{r.removeEventListener("change",t)}},[n,t]),{instance:{disableAnimation:n}}};function Wc(e,t){return"number"==typeof e?{top:e,bottom:e,left:e,right:e}:t?(0,r.A)({},t,e):e}Uc.params={skipAnimation:!0},Uc.getDefaultizedParams=({params:e})=>(0,r.A)({},e,{skipAnimation:e.skipAnimation??!1}),Uc.getInitialState=({skipAnimation:e})=>("undefined"==typeof window||window,{animation:{skip:e,skipAnimationRequests:0}});const Vc=({params:e,store:t,svgRef:n})=>{const i=void 0!==e.width&&void 0!==e.height,a=o.useRef({displayError:!1,initialCompute:!0,computeRun:0}),[s,l]=o.useState(0),[c,u]=o.useState(0),d=o.useCallback(()=>{const i=n?.current;if(!i)return{};const o=(l=i,function(e){return e&&e.ownerDocument||document}(l).defaultView||window).getComputedStyle(i),a=Math.floor(parseFloat(o.height))||0,s=Math.floor(parseFloat(o.width))||0;var l;return t.update(t=>t.dimensions.width===s&&t.dimensions.height===a?t:(0,r.A)({},t,{dimensions:{margin:{top:e.margin.top,right:e.margin.right,bottom:e.margin.bottom,left:e.margin.left},width:e.width??s,height:e.height??a,propsWidth:e.width,propsHeight:e.height}})),{height:a,width:s}},[t,n,e.height,e.width,e.margin.left,e.margin.right,e.margin.top,e.margin.bottom]);o.useEffect(()=>{t.update(t=>{const n=e.width??t.dimensions.width,i=e.height??t.dimensions.height;return(0,r.A)({},t,{dimensions:{margin:{top:e.margin.top,right:e.margin.right,bottom:e.margin.bottom,left:e.margin.left},width:n,height:i,propsHeight:e.height,propsWidth:e.width}})})},[t,e.height,e.width,e.margin.left,e.margin.right,e.margin.top,e.margin.bottom]),o.useEffect(()=>{a.current.displayError=!0},[]),Xa(()=>{if(i||!a.current.initialCompute||a.current.computeRun>10)return;const e=d();e.width!==s||e.height!==c?(a.current.computeRun+=1,void 0!==e.width&&l(e.width),void 0!==e.height&&u(e.height)):a.current.initialCompute&&(a.current.initialCompute=!1)},[c,s,d,i]),Xa(()=>{if(i)return()=>{};d();const e=n.current;if("undefined"==typeof ResizeObserver)return()=>{};let t;const r=new ResizeObserver(()=>{t=requestAnimationFrame(()=>{d()})});return e&&r.observe(e),()=>{t&&cancelAnimationFrame(t),e&&r.unobserve(e)}},[d,i,n]);const f=(0,A.d)(t,j.VT),h=o.useCallback(e=>e>=f.left-1&&e<=f.left+f.width,[f.left,f.width]),p=o.useCallback(e=>e>=f.top-1&&e<=f.top+f.height,[f.height,f.top]);return{instance:{isPointInside:o.useCallback((e,t,n)=>!!(n&&"closest"in n&&n.closest("[data-drawing-container]"))||h(e)&&p(t),[h,p]),isXInside:h,isYInside:p}}};Vc.params={width:!0,height:!0,margin:!0},Vc.getDefaultizedParams=({params:e})=>(0,r.A)({},e,{margin:Wc(e.margin,Hl)}),Vc.getInitialState=({width:e,height:t,margin:n})=>({dimensions:{margin:n,width:e??0,height:t??0,propsWidth:e,propsHeight:t}});const qc=({params:e,store:t})=>(Xa(()=>{t.update(t=>(0,r.A)({},t,{experimentalFeatures:e.experimentalFeatures}))},[t,e.experimentalFeatures]),{});qc.params={experimentalFeatures:!0},qc.getInitialState=({experimentalFeatures:e})=>({experimentalFeatures:e});let Gc=0;const Yc=({params:e,store:t})=>(o.useEffect(()=>{t.update(t=>void 0===e.id||e.id===t.id.providedChartId&&void 0!==t.id.chartId?t:(0,r.A)({},t,{id:(0,r.A)({},t.id,{chartId:e.id??(Gc+=1,`mui-chart-${Gc}`)})}))},[t,e.id]),{});Yc.params={id:!0},Yc.getInitialState=({id:e})=>({id:{chartId:e,providedChartId:e}});const Kc=({series:e,colors:t,seriesConfig:n,dataset:r})=>{const i={};e.forEach((e,r)=>{const o=n[e.type].getSeriesWithDefaultValues(e,r,t),a=o.id;if(void 0===i[e.type]&&(i[e.type]={series:{},seriesOrder:[]}),void 0!==i[e.type]?.series[a])throw new Error(`MUI X Charts: series' id "${a}" is not unique.`);i[e.type].series[a]=o,i[e.type].seriesOrder.push(a)});const o={};return Object.keys(n).forEach(e=>{const t=i[e];void 0!==t&&(o[e]=n[e]?.seriesProcessor?.(t,r)??i[e])}),o},Xc=({params:e,store:t,seriesConfig:n})=>{const{series:i,dataset:a,theme:s,colors:l}=e,c=o.useRef(!0);return o.useEffect(()=>{c.current?c.current=!1:t.update(e=>(0,r.A)({},e,{series:(0,r.A)({},e.series,{processedSeries:Kc({series:i,colors:"function"==typeof l?l(s):l,seriesConfig:n,dataset:a})})}))},[l,a,i,s,n,t]),{}};Xc.params={dataset:!0,series:!0,colors:!0,theme:!0};const Zc=[];Xc.getDefaultizedParams=({params:e})=>(0,r.A)({},e,{series:e.series?.length?e.series:Zc,colors:e.colors??$l,theme:e.theme??"light"}),Xc.getInitialState=({series:e=[],colors:t,theme:n,dataset:r},i,o)=>({series:{seriesConfig:o,processedSeries:Kc({series:e,colors:"function"==typeof t?t(n):t,seriesConfig:o,dataset:r})}});class Qc{activeGestures=(()=>new Map)();registerActiveGesture(e,t){this.activeGestures.has(e)||this.activeGestures.set(e,new Set);const n={gesture:t,element:e};this.activeGestures.get(e).add(n)}unregisterActiveGesture(e,t){const n=this.activeGestures.get(e);n&&(n.forEach(e=>{e.gesture===t&&n.delete(e)}),0===n.size&&this.activeGestures.delete(e))}getActiveGestures(e){const t=this.activeGestures.get(e);return t?Array.from(t).reduce((e,t)=>(e[t.gesture.name]=!0,e),{}):{}}isGestureActive(e,t){const n=this.activeGestures.get(e);return!!n&&Array.from(n).some(e=>e.gesture===t)}destroy(){this.activeGestures.clear()}unregisterElement(e){this.activeGestures.delete(e)}}class Jc{pressedKeys=(()=>new Set)();constructor(){this.initialize()}initialize(){"undefined"!=typeof window&&(window.addEventListener("keydown",this.handleKeyDown),window.addEventListener("keyup",this.handleKeyUp),window.addEventListener("blur",this.clearKeys))}handleKeyDown=e=>{this.pressedKeys.add(e.key)};handleKeyUp=e=>{this.pressedKeys.delete(e.key)};clearKeys=()=>{this.pressedKeys.clear()};areKeysPressed(e){return!e||0===e.length||e.every(e=>"ControlOrMeta"===e?this.pressedKeys.has("Control")||this.pressedKeys.has("Meta"):this.pressedKeys.has(e))}destroy(){"undefined"!=typeof window&&(window.removeEventListener("keydown",this.handleKeyDown),window.removeEventListener("keyup",this.handleKeyUp),window.removeEventListener("blur",this.clearKeys)),this.clearKeys()}}class eu{preventEventInterruption=!0;pointers=(()=>new Map)();gestureHandlers=(()=>new Set)();constructor(e){this.root=e.root??document.getRootNode({composed:!0})??document.body,this.touchAction=e.touchAction||"auto",this.passive=e.passive??!1,this.preventEventInterruption=e.preventEventInterruption??!1,this.setupEventListeners()}registerGestureHandler(e){return this.gestureHandlers.add(e),()=>{this.gestureHandlers.delete(e)}}getPointers(){return new Map(this.pointers)}setupEventListeners(){"auto"!==this.touchAction&&(this.root.style.touchAction=this.touchAction),this.root.addEventListener("pointerdown",this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener("pointermove",this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener("pointerup",this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener("pointercancel",this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener("forceCancel",this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener("blur",this.handleInterruptEvents),this.root.addEventListener("contextmenu",this.handleInterruptEvents)}handleInterruptEvents=e=>{if(this.preventEventInterruption&&"pointerType"in e&&"touch"===e.pointerType)return void e.preventDefault();const t=new PointerEvent("forceCancel",{bubbles:!1,cancelable:!1}),n=this.pointers.values().next().value;if(this.pointers.size>0&&n){Object.defineProperties(t,{clientX:{value:n.clientX},clientY:{value:n.clientY},pointerId:{value:n.pointerId},pointerType:{value:n.pointerType}});for(const[e,t]of this.pointers.entries()){const n=(0,r.A)({},t,{type:"forceCancel"});this.pointers.set(e,n)}}this.notifyHandlers(t),this.pointers.clear()};handlePointerEvent=e=>{const{type:t,pointerId:n}=e;if("pointerdown"===t||"pointermove"===t)this.pointers.set(n,this.createPointerData(e));else if("pointerup"===t||"pointercancel"===t||"forceCancel"===t)return this.pointers.set(n,this.createPointerData(e)),this.notifyHandlers(e),void this.pointers.delete(n);this.notifyHandlers(e)};notifyHandlers(e){this.gestureHandlers.forEach(t=>t(this.pointers,e))}createPointerData(e){return{pointerId:e.pointerId,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY,target:e.target,timeStamp:e.timeStamp,type:e.type,isPrimary:e.isPrimary,pressure:e.pressure,width:e.width,height:e.height,pointerType:e.pointerType,srcEvent:e}}destroy(){this.root.removeEventListener("pointerdown",this.handlePointerEvent),this.root.removeEventListener("pointermove",this.handlePointerEvent),this.root.removeEventListener("pointerup",this.handlePointerEvent),this.root.removeEventListener("pointercancel",this.handlePointerEvent),this.root.removeEventListener("forceCancel",this.handlePointerEvent),this.root.removeEventListener("blur",this.handleInterruptEvents),this.root.removeEventListener("contextmenu",this.handleInterruptEvents),this.pointers.clear(),this.gestureHandlers.clear()}}class tu{gestureTemplates=(()=>new Map)();elementGestureMap=(()=>new Map)();activeGesturesRegistry=(()=>new Qc)();keyboardManager=(()=>new Jc)();constructor(e){this.pointerManager=new eu({root:e.root,touchAction:e.touchAction,passive:e.passive}),e.gestures&&e.gestures.length>0&&e.gestures.forEach(e=>{this.addGestureTemplate(e)})}addGestureTemplate(e){this.gestureTemplates.has(e.name)&&console.warn(`Gesture template with name "${e.name}" already exists. It will be overwritten.`),this.gestureTemplates.set(e.name,e)}setGestureOptions(e,t,n){const r=this.elementGestureMap.get(t);if(!r||!r.has(e))return void console.error(`Gesture "${e}" not found on the provided element.`);const i=new CustomEvent(`${e}ChangeOptions`,{detail:n,bubbles:!1,cancelable:!1,composed:!1});t.dispatchEvent(i)}setGestureState(e,t,n){const r=this.elementGestureMap.get(t);if(!r||!r.has(e))return void console.error(`Gesture "${e}" not found on the provided element.`);const i=new CustomEvent(`${e}ChangeState`,{detail:n,bubbles:!1,cancelable:!1,composed:!1});t.dispatchEvent(i)}registerElement(e,t,n){return Array.isArray(e)||(e=[e]),e.forEach(e=>{const r=n?.[e];this.registerSingleGesture(e,t,r)}),t}registerSingleGesture(e,t,n){const r=this.gestureTemplates.get(e);if(!r)return console.error(`Gesture template "${e}" not found.`),!1;this.elementGestureMap.has(t)||this.elementGestureMap.set(t,new Map);const i=this.elementGestureMap.get(t);i.has(e)&&(console.warn(`Element already has gesture "${e}" registered. It will be replaced.`),this.unregisterElement(e,t));const o=r.clone(n);return o.init(t,this.pointerManager,this.activeGesturesRegistry,this.keyboardManager),i.set(e,o),!0}unregisterElement(e,t){const n=this.elementGestureMap.get(t);return!(!n||!n.has(e))&&(n.get(e).destroy(),n.delete(e),this.activeGesturesRegistry.unregisterElement(t),0===n.size&&this.elementGestureMap.delete(t),!0)}unregisterAllGestures(e){const t=this.elementGestureMap.get(e);if(t){for(const[,n]of t)n.destroy(),this.activeGesturesRegistry.unregisterElement(e);this.elementGestureMap.delete(e)}}destroy(){for(const[e]of this.elementGestureMap)this.unregisterAllGestures(e);this.gestureTemplates.clear(),this.elementGestureMap.clear(),this.activeGesturesRegistry.destroy(),this.keyboardManager.destroy(),this.pointerManager.destroy()}}const nu={abort:!0,animationcancel:!0,animationend:!0,animationiteration:!0,animationstart:!0,auxclick:!0,beforeinput:!0,beforetoggle:!0,blur:!0,cancel:!0,canplay:!0,canplaythrough:!0,change:!0,click:!0,close:!0,compositionend:!0,compositionstart:!0,compositionupdate:!0,contextlost:!0,contextmenu:!0,contextrestored:!0,copy:!0,cuechange:!0,cut:!0,dblclick:!0,drag:!0,dragend:!0,dragenter:!0,dragleave:!0,dragover:!0,dragstart:!0,drop:!0,durationchange:!0,emptied:!0,ended:!0,error:!0,focus:!0,focusin:!0,focusout:!0,formdata:!0,gotpointercapture:!0,input:!0,invalid:!0,keydown:!0,keypress:!0,keyup:!0,load:!0,loadeddata:!0,loadedmetadata:!0,loadstart:!0,lostpointercapture:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,paste:!0,pause:!0,play:!0,playing:!0,pointercancel:!0,pointerdown:!0,pointerenter:!0,pointerleave:!0,pointermove:!0,pointerout:!0,pointerover:!0,pointerup:!0,progress:!0,ratechange:!0,reset:!0,resize:!0,scroll:!0,scrollend:!0,securitypolicyviolation:!0,seeked:!0,seeking:!0,select:!0,selectionchange:!0,selectstart:!0,slotchange:!0,stalled:!0,submit:!0,suspend:!0,timeupdate:!0,toggle:!0,touchcancel:!0,touchend:!0,touchmove:!0,touchstart:!0,transitioncancel:!0,transitionend:!0,transitionrun:!0,transitionstart:!0,volumechange:!0,waiting:!0,webkitanimationend:!0,webkitanimationiteration:!0,webkitanimationstart:!0,webkittransitionend:!0,wheel:!0,beforematch:!0,pointerrawupdate:!0};class ru{customData={};constructor(e){if(!e||!e.name)throw new Error("Gesture must be initialized with a valid name.");if(e.name in nu)throw new Error(`Gesture can't be created with a native event name. Tried to use "${e.name}". Please use a custom name instead.`);this.name=e.name,this.preventDefault=e.preventDefault??!1,this.stopPropagation=e.stopPropagation??!1,this.preventIf=e.preventIf??[],this.requiredKeys=e.requiredKeys??[],this.pointerMode=e.pointerMode??[],this.pointerOptions=e.pointerOptions??{}}init(e,t,n,r){this.element=e,this.pointerManager=t,this.gesturesRegistry=n,this.keyboardManager=r;const i=`${this.name}ChangeOptions`;this.element.addEventListener(i,this.handleOptionsChange.bind(this));const o=`${this.name}ChangeState`;this.element.addEventListener(o,this.handleStateChange.bind(this))}handleOptionsChange(e){e&&e.detail&&this.updateOptions(e.detail)}updateOptions(e){this.preventDefault=e.preventDefault??this.preventDefault,this.stopPropagation=e.stopPropagation??this.stopPropagation,this.preventIf=e.preventIf??this.preventIf,this.requiredKeys=e.requiredKeys??this.requiredKeys,this.pointerMode=e.pointerMode??this.pointerMode,this.pointerOptions=e.pointerOptions??this.pointerOptions}getEffectiveConfig(e){const t={requiredKeys:this.requiredKeys},n=this.pointerOptions[e];return n?(0,r.A)({},t,n):t}handleStateChange(e){e&&e.detail&&this.updateState(e.detail)}updateState(e){Object.assign(this.state,e)}getTargetElement(e){return this.isActive||this.element===e.target||"contains"in this.element&&this.element.contains(e.target)||"getRootNode"in this.element&&this.element.getRootNode()instanceof ShadowRoot&&e.composedPath().includes(this.element)?this.element:null}set isActive(e){e?this.gesturesRegistry.registerActiveGesture(this.element,this):this.gesturesRegistry.unregisterActiveGesture(this.element,this)}get isActive(){return this.gesturesRegistry.isGestureActive(this.element,this)??!1}shouldPreventGesture(e,t){const n=this.getEffectiveConfig(t);if(!this.keyboardManager.areKeysPressed(n.requiredKeys))return!0;if(0===this.preventIf.length)return!1;const r=this.gesturesRegistry.getActiveGestures(e);return this.preventIf.some(e=>r[e])}isPointerTypeAllowed(e){return!this.pointerMode||0===this.pointerMode.length||this.pointerMode.includes(e)}destroy(){const e=`${this.name}ChangeOptions`;this.element.removeEventListener(e,this.handleOptionsChange.bind(this));const t=`${this.name}ChangeState`;this.element.removeEventListener(t,this.handleStateChange.bind(this))}}class iu extends ru{unregisterHandler=null;originalTarget=null;constructor(e){super(e),this.minPointers=e.minPointers??1,this.maxPointers=e.maxPointers??1/0}init(e,t,n,r){super.init(e,t,n,r),this.unregisterHandler=this.pointerManager.registerGestureHandler(this.handlePointerEvent.bind(this))}updateOptions(e){super.updateOptions(e),this.minPointers=e.minPointers??this.minPointers,this.maxPointers=e.maxPointers??this.maxPointers}getRelevantPointers(e,t){return e.filter(e=>this.isPointerTypeAllowed(e.pointerType)&&(t===e.target||e.target===this.originalTarget||t===this.originalTarget||"contains"in t&&t.contains(e.target))||"getRootNode"in t&&t.getRootNode()instanceof ShadowRoot&&e.srcEvent.composedPath().includes(t))}destroy(){this.unregisterHandler&&(this.unregisterHandler(),this.unregisterHandler=null),super.destroy()}}function ou(e){if(0===e.length)return{x:0,y:0};const t=e.reduce((e,t)=>(e.x+=t.clientX,e.y+=t.clientY,e),{x:0,y:0});return{x:t.x/e.length,y:t.y/e.length}}const au=1e-5;function su(e,t){return`${e}${"ongoing"===t?"":t.charAt(0).toUpperCase()+t.slice(1)}`}class lu extends iu{state=(()=>({startPointers:new Map,startCentroid:null,lastCentroid:null,movementThresholdReached:!1,totalDeltaX:0,totalDeltaY:0,activeDeltaX:0,activeDeltaY:0,lastDirection:{vertical:null,horizontal:null,mainAxis:null},lastDeltas:null}))();constructor(e){super(e),this.direction=e.direction||["up","down","left","right"],this.threshold=e.threshold||0}clone(e){return new lu((0,r.A)({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,threshold:this.threshold,minPointers:this.minPointers,maxPointers:this.maxPointers,direction:[...this.direction],requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},e))}destroy(){this.resetState(),super.destroy()}updateOptions(e){super.updateOptions(e),this.direction=e.direction||this.direction}resetState(){this.isActive=!1,this.state=(0,r.A)({},this.state,{startPointers:new Map,startCentroid:null,lastCentroid:null,lastDeltas:null,activeDeltaX:0,activeDeltaY:0,movementThresholdReached:!1,lastDirection:{vertical:null,horizontal:null,mainAxis:null}})}handlePointerEvent(e,t){const n=Array.from(e.values());if("forceCancel"===t.type)return void this.cancel(t.target,n,t);const i=this.getTargetElement(t);if(!i)return;if(this.shouldPreventGesture(i,t.pointerType))return void this.cancel(i,n,t);const o=this.getRelevantPointers(n,i);if(o.length<this.minPointers||o.length>this.maxPointers)this.cancel(i,o,t);else switch(t.type){case"pointerdown":this.isActive||this.state.startCentroid||(o.forEach(e=>{this.state.startPointers.set(e.pointerId,e)}),this.originalTarget=i,this.state.startCentroid=ou(o),this.state.lastCentroid=(0,r.A)({},this.state.startCentroid));break;case"pointermove":if(this.state.startCentroid&&o.length>=this.minPointers){const e=ou(o),n=e.x-this.state.startCentroid.x,r=e.y-this.state.startCentroid.y,a=Math.sqrt(n*n+r*r),s=function(e,t){const n=t.x-e.x,r=t.y-e.y,i={vertical:null,horizontal:null,mainAxis:null},o=function(e,t){const n=t.x-e.x,r=t.y-e.y,i=180*Math.atan2(r,n)/Math.PI;return i>=-44.99999&&i<=-22.49999||i>=22.50001&&i<=45.00001||i>=135.00001&&i<=157.50001||i>=-157.49999&&i<=-134.99999}(t,e),a=Math.abs(n)>Math.abs(r)?"horizontal":"vertical",s=o||"horizontal"===a?au:.15,l=o?au:"horizontal"===a?.15:au;return Math.abs(n)>s&&(i.horizontal=n>0?"right":"left"),Math.abs(r)>l&&(i.vertical=r>0?"down":"up"),i.mainAxis=o?"diagonal":a,i}(this.state.lastCentroid??this.state.startCentroid,e),l=this.state.lastCentroid?e.x-this.state.lastCentroid.x:0,c=this.state.lastCentroid?e.y-this.state.lastCentroid.y:0;!this.state.movementThresholdReached&&a>=this.threshold&&function(e,t){if(!e.vertical&&!e.horizontal)return!1;if(0===t.length)return!0;const n=null===e.vertical||t.includes(e.vertical),r=null===e.horizontal||t.includes(e.horizontal);return n&&r}(s,this.direction)?(this.state.movementThresholdReached=!0,this.isActive=!0,this.state.lastDeltas={x:l,y:c},this.state.totalDeltaX+=l,this.state.totalDeltaY+=c,this.state.activeDeltaX+=l,this.state.activeDeltaY+=c,this.emitPanEvent(i,"start",o,t,e),this.emitPanEvent(i,"ongoing",o,t,e)):this.state.movementThresholdReached&&this.isActive&&(this.state.lastDeltas={x:l,y:c},this.state.totalDeltaX+=l,this.state.totalDeltaY+=c,this.state.activeDeltaX+=l,this.state.activeDeltaY+=c,this.emitPanEvent(i,"ongoing",o,t,e)),this.state.lastCentroid=e,this.state.lastDirection=s}break;case"pointerup":case"pointercancel":case"forceCancel":if(this.isActive&&this.state.movementThresholdReached){if(o.filter(e=>"pointerup"!==e.type&&"pointercancel"!==e.type).length<this.minPointers){const e=this.state.lastCentroid||this.state.startCentroid;"pointercancel"===t.type&&this.emitPanEvent(i,"cancel",o,t,e),this.emitPanEvent(i,"end",o,t,e),this.resetState()}}else this.resetState()}}emitPanEvent(e,t,n,r,i){if(!this.state.startCentroid)return;const o=this.state.lastDeltas?.x??0,a=this.state.lastDeltas?.y??0,s=this.state.startPointers.values().next().value,l=s?(r.timeStamp-s.timeStamp)/1e3:0,c=l>0?o/l:0,u=l>0?a/l:0,d=Math.sqrt(c*c+u*u),f=this.gesturesRegistry.getActiveGestures(e),h={gestureName:this.name,initialCentroid:this.state.startCentroid,centroid:i,target:r.target,srcEvent:r,phase:t,pointers:n,timeStamp:r.timeStamp,deltaX:o,deltaY:a,direction:this.state.lastDirection,velocityX:c,velocityY:u,velocity:d,totalDeltaX:this.state.totalDeltaX,totalDeltaY:this.state.totalDeltaY,activeDeltaX:this.state.activeDeltaX,activeDeltaY:this.state.activeDeltaY,activeGestures:f,customData:this.customData},p=su(this.name,t),g=new CustomEvent(p,{bubbles:!0,cancelable:!0,composed:!0,detail:h});e.dispatchEvent(g),this.preventDefault&&r.preventDefault(),this.stopPropagation&&r.stopPropagation()}cancel(e,t,n){if(this.isActive){const r=e??this.element;this.emitPanEvent(r,"cancel",t,n,this.state.lastCentroid),this.emitPanEvent(r,"end",t,n,this.state.lastCentroid)}this.resetState()}}class cu extends iu{state={lastPosition:null};constructor(e){super(e),this.handleElementEnterBound=this.handleElementEnter.bind(this),this.handleElementLeaveBound=this.handleElementLeave.bind(this),this.threshold=e.threshold||0}clone(e){return new cu((0,r.A)({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,threshold:this.threshold,minPointers:this.minPointers,maxPointers:this.maxPointers,requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},e))}init(e,t,n,r){super.init(e,t,n,r),this.element.addEventListener("pointerenter",this.handleElementEnterBound),this.element.addEventListener("pointerleave",this.handleElementLeaveBound)}destroy(){this.element.removeEventListener("pointerenter",this.handleElementEnterBound),this.element.removeEventListener("pointerleave",this.handleElementLeaveBound),this.resetState(),super.destroy()}updateOptions(e){super.updateOptions(e)}resetState(){this.isActive=!1,this.state={lastPosition:null}}handleElementEnter(e){if("mouse"!==e.pointerType&&"pen"!==e.pointerType)return;const t=this.pointerManager.getPointers()||new Map,n=Array.from(t.values());if(n.length>=this.minPointers&&n.length<=this.maxPointers){this.isActive=!0;const t={x:e.clientX,y:e.clientY};this.state.lastPosition=t,this.emitMoveEvent(this.element,"start",n,e),this.emitMoveEvent(this.element,"ongoing",n,e)}}handleElementLeave(e){if("mouse"!==e.pointerType&&"pen"!==e.pointerType)return;if(!this.isActive)return;const t=this.pointerManager.getPointers()||new Map,n=Array.from(t.values());this.emitMoveEvent(this.element,"end",n,e),this.resetState()}handlePointerEvent(e,t){if("pointermove"!==t.type||"mouse"!==t.pointerType&&"pen"!==t.pointerType)return;this.preventDefault&&t.preventDefault(),this.stopPropagation&&t.stopPropagation();const n=Array.from(e.values()),r=this.getTargetElement(t);if(!r)return;if(n.length<this.minPointers||n.length>this.maxPointers)return;if(this.shouldPreventGesture(r,t.pointerType)){if(!this.isActive)return;return this.resetState(),void this.emitMoveEvent(r,"end",n,t)}const i={x:t.clientX,y:t.clientY};this.state.lastPosition=i,this.isActive||(this.isActive=!0,this.emitMoveEvent(r,"start",n,t)),this.emitMoveEvent(r,"ongoing",n,t)}emitMoveEvent(e,t,n,r){const i=this.state.lastPosition||ou(n),o=this.gesturesRegistry.getActiveGestures(e),a={gestureName:this.name,centroid:i,target:r.target,srcEvent:r,phase:t,pointers:n,timeStamp:r.timeStamp,activeGestures:o,customData:this.customData},s=su(this.name,t),l=new CustomEvent(s,{bubbles:!0,cancelable:!0,composed:!0,detail:a});e.dispatchEvent(l)}}function uu(e,t){const n=t.x-e.x,r=t.y-e.y;return Math.sqrt(n*n+r*r)}function du(e){if(e.length<2)return 0;let t=0,n=0;for(let r=0;r<e.length;r+=1)for(let i=r+1;i<e.length;i+=1)t+=uu({x:e[r].clientX,y:e[r].clientY},{x:e[i].clientX,y:e[i].clientY}),n+=1;return n>0?t/n:0}class fu extends iu{state={startDistance:0,lastDistance:0,lastScale:1,lastTime:0,velocity:0,totalScale:1,deltaScale:0};constructor(e){super((0,r.A)({},e,{minPointers:e.minPointers??2})),this.threshold=e.threshold??0}clone(e){return new fu((0,r.A)({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,threshold:this.threshold,minPointers:this.minPointers,maxPointers:this.maxPointers,requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},e))}destroy(){this.resetState(),super.destroy()}updateOptions(e){super.updateOptions(e)}resetState(){this.isActive=!1,this.state=(0,r.A)({},this.state,{startDistance:0,lastDistance:0,lastScale:1,lastTime:0,velocity:0,deltaScale:0})}handlePointerEvent(e,t){const n=Array.from(e.values()),r=this.getTargetElement(t);if(!r)return;if(this.shouldPreventGesture(r,t.pointerType))return void(this.isActive&&(this.emitPinchEvent(r,"cancel",n,t),this.resetState()));const i=this.getRelevantPointers(n,r);switch(t.type){case"pointerdown":if(i.length>=2&&!this.isActive){const e=du(i);this.state.startDistance=e,this.state.lastDistance=e,this.state.lastTime=t.timeStamp,this.originalTarget=r}break;case"pointermove":if(this.state.startDistance&&i.length>=this.minPointers){const e=du(i),n=Math.abs(e-this.state.lastDistance);if(0!==n&&n>=this.threshold){const n=this.state.startDistance?e/this.state.startDistance:1,o=n/this.state.lastScale;this.state.totalScale*=o;const a=(t.timeStamp-this.state.lastTime)/1e3;if(this.state.lastDistance){const t=(e-this.state.lastDistance)/a;this.state.velocity=Number.isNaN(t)?0:t}this.state.lastDistance=e,this.state.deltaScale=n-this.state.lastScale,this.state.lastScale=n,this.state.lastTime=t.timeStamp,this.isActive||(this.isActive=!0,this.emitPinchEvent(r,"start",i,t)),this.emitPinchEvent(r,"ongoing",i,t)}}break;case"pointerup":case"pointercancel":case"forceCancel":if(this.isActive){const e=i.filter(e=>"pointerup"!==e.type&&"pointercancel"!==e.type);if(e.length<this.minPointers)"pointercancel"===t.type&&this.emitPinchEvent(r,"cancel",i,t),this.emitPinchEvent(r,"end",i,t),this.resetState();else if(e.length>=2){const t=du(e);this.state.startDistance=t/this.state.lastScale}}}}emitPinchEvent(e,t,n,r){const i=ou(n),o=this.state.lastDistance,a=this.state.lastScale,s=this.gesturesRegistry.getActiveGestures(e),l={gestureName:this.name,centroid:i,target:r.target,srcEvent:r,phase:t,pointers:n,timeStamp:r.timeStamp,scale:a,deltaScale:this.state.deltaScale,totalScale:this.state.totalScale,distance:o,velocity:this.state.velocity,activeGestures:s,direction:(c=this.state.velocity,c>0?1:c<-0?-1:0),customData:this.customData};var c;this.preventDefault&&r.preventDefault(),this.stopPropagation&&r.stopPropagation();const u=su(this.name,t),d=new CustomEvent(u,{bubbles:!0,cancelable:!0,composed:!0,detail:l});e.dispatchEvent(d)}}class hu extends ru{state={totalDeltaX:0,totalDeltaY:0,totalDeltaZ:0};constructor(e){super(e),this.sensitivity=e.sensitivity??1,this.max=e.max??Number.MAX_SAFE_INTEGER,this.min=e.min??Number.MIN_SAFE_INTEGER,this.initialDelta=e.initialDelta??0,this.invert=e.invert??!1,this.state.totalDeltaX=this.initialDelta,this.state.totalDeltaY=this.initialDelta,this.state.totalDeltaZ=this.initialDelta,this.handleWheelEventBound=this.handleWheelEvent.bind(this)}clone(e){return new hu((0,r.A)({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,sensitivity:this.sensitivity,max:this.max,min:this.min,initialDelta:this.initialDelta,invert:this.invert,requiredKeys:[...this.requiredKeys],preventIf:[...this.preventIf]},e))}init(e,t,n,r){super.init(e,t,n,r),this.element.addEventListener("wheel",this.handleWheelEventBound)}destroy(){this.element.removeEventListener("wheel",this.handleWheelEventBound),this.resetState(),super.destroy()}resetState(){this.isActive=!1,this.state={totalDeltaX:0,totalDeltaY:0,totalDeltaZ:0}}updateOptions(e){super.updateOptions(e),this.sensitivity=e.sensitivity??this.sensitivity,this.max=e.max??this.max,this.min=e.min??this.min,this.initialDelta=e.initialDelta??this.initialDelta,this.invert=e.invert??this.invert}handleWheelEvent(e){if(this.shouldPreventGesture(this.element,"mouse"))return;const t=this.pointerManager.getPointers()||new Map,n=Array.from(t.values());this.state.totalDeltaX+=e.deltaX*this.sensitivity*(this.invert?-1:1),this.state.totalDeltaY+=e.deltaY*this.sensitivity*(this.invert?-1:1),this.state.totalDeltaZ+=e.deltaZ*this.sensitivity*(this.invert?-1:1),["totalDeltaX","totalDeltaY","totalDeltaZ"].forEach(e=>{this.state[e]<this.min&&(this.state[e]=this.min),this.state[e]>this.max&&(this.state[e]=this.max)}),this.emitWheelEvent(n,e)}emitWheelEvent(e,t){const n=e.length>0?ou(e):{x:t.clientX,y:t.clientY},r=this.gesturesRegistry.getActiveGestures(this.element),i={gestureName:this.name,centroid:n,target:t.target,srcEvent:t,phase:"ongoing",pointers:e,timeStamp:t.timeStamp,deltaX:t.deltaX*this.sensitivity*(this.invert?-1:1),deltaY:t.deltaY*this.sensitivity*(this.invert?-1:1),deltaZ:t.deltaZ*this.sensitivity*(this.invert?-1:1),deltaMode:t.deltaMode,totalDeltaX:this.state.totalDeltaX,totalDeltaY:this.state.totalDeltaY,totalDeltaZ:this.state.totalDeltaZ,activeGestures:r,customData:this.customData};this.preventDefault&&t.preventDefault(),this.stopPropagation&&t.stopPropagation();const o=su(this.name,"ongoing"),a=new CustomEvent(o,{bubbles:!0,cancelable:!0,composed:!0,detail:i});this.element.dispatchEvent(a)}}class pu extends iu{state={startCentroid:null,currentTapCount:0,lastTapTime:0,lastPosition:null};constructor(e){super(e),this.maxDistance=e.maxDistance??10,this.taps=e.taps??1}clone(e){return new pu((0,r.A)({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,minPointers:this.minPointers,maxPointers:this.maxPointers,maxDistance:this.maxDistance,taps:this.taps,requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},e))}destroy(){this.resetState(),super.destroy()}updateOptions(e){super.updateOptions(e),this.maxDistance=e.maxDistance??this.maxDistance,this.taps=e.taps??this.taps}resetState(){this.isActive=!1,this.state={startCentroid:null,currentTapCount:0,lastTapTime:0,lastPosition:null}}handlePointerEvent(e,t){const n=Array.from(e.values()),i=this.getTargetElement(t);if(!i)return;const o=this.getRelevantPointers(n,i);if(this.shouldPreventGesture(i,t.pointerType)||o.length<this.minPointers||o.length>this.maxPointers)this.isActive&&this.cancelTap(i,o,t);else switch(t.type){case"pointerdown":this.isActive||(this.state.startCentroid=ou(o),this.state.lastPosition=(0,r.A)({},this.state.startCentroid),this.isActive=!0,this.originalTarget=i);break;case"pointermove":if(this.isActive&&this.state.startCentroid){const e=ou(o);this.state.lastPosition=e;const n=e.x-this.state.startCentroid.x,r=e.y-this.state.startCentroid.y;Math.sqrt(n*n+r*r)>this.maxDistance&&this.cancelTap(i,o,t)}break;case"pointerup":if(this.isActive){this.state.currentTapCount+=1;const e=this.state.lastPosition||this.state.startCentroid;if(!e)return void this.cancelTap(i,o,t);this.state.currentTapCount>=this.taps?(this.fireTapEvent(i,o,t,e),this.resetState()):(this.state.lastTapTime=t.timeStamp,this.isActive=!1,this.state.startCentroid=null,setTimeout(()=>{this.state&&this.state.currentTapCount>0&&this.state.currentTapCount<this.taps&&(this.state.currentTapCount=0)},300))}break;case"pointercancel":case"forceCancel":this.cancelTap(i,o,t)}}fireTapEvent(e,t,n,r){const i=this.gesturesRegistry.getActiveGestures(e),o={gestureName:this.name,centroid:r,target:n.target,srcEvent:n,phase:"end",pointers:t,timeStamp:n.timeStamp,x:r.x,y:r.y,tapCount:this.state.currentTapCount,activeGestures:i,customData:this.customData},a=new CustomEvent(this.name,{bubbles:!0,cancelable:!0,composed:!0,detail:o});e.dispatchEvent(a),this.preventDefault&&n.preventDefault(),this.stopPropagation&&n.stopPropagation()}cancelTap(e,t,n){if(this.state.startCentroid||this.state.lastPosition){const r=this.state.lastPosition||this.state.startCentroid,i=this.gesturesRegistry.getActiveGestures(e),o={gestureName:this.name,centroid:r,target:n.target,srcEvent:n,phase:"cancel",pointers:t,timeStamp:n.timeStamp,x:r.x,y:r.y,tapCount:this.state.currentTapCount,activeGestures:i,customData:this.customData},a=su(this.name,"cancel"),s=new CustomEvent(a,{bubbles:!0,cancelable:!0,composed:!0,detail:o});e.dispatchEvent(s)}this.resetState()}}class gu extends iu{state={startCentroid:null,lastPosition:null,timerId:null,startTime:0,pressThresholdReached:!1};constructor(e){super(e),this.duration=e.duration??500,this.maxDistance=e.maxDistance??10}clone(e){return new gu((0,r.A)({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,minPointers:this.minPointers,maxPointers:this.maxPointers,duration:this.duration,maxDistance:this.maxDistance,requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},e))}destroy(){this.clearPressTimer(),this.resetState(),super.destroy()}updateOptions(e){super.updateOptions(e),this.duration=e.duration??this.duration,this.maxDistance=e.maxDistance??this.maxDistance}resetState(){this.clearPressTimer(),this.isActive=!1,this.state=(0,r.A)({},this.state,{startCentroid:null,lastPosition:null,timerId:null,startTime:0,pressThresholdReached:!1})}clearPressTimer(){null!==this.state.timerId&&(clearTimeout(this.state.timerId),this.state.timerId=null)}handlePointerEvent(e,t){const n=Array.from(e.values());if("forceCancel"===t.type)return void this.cancelPress(t.target,n,t);const i=this.getTargetElement(t);if(!i)return;if(this.shouldPreventGesture(i,t.pointerType))return void(this.isActive&&this.cancelPress(i,n,t));const o=this.getRelevantPointers(n,i);if(o.length<this.minPointers||o.length>this.maxPointers)this.isActive&&this.cancelPress(i,o,t);else switch(t.type){case"pointerdown":this.isActive||this.state.startCentroid||(this.state.startCentroid=ou(o),this.state.lastPosition=(0,r.A)({},this.state.startCentroid),this.state.startTime=t.timeStamp,this.isActive=!0,this.originalTarget=i,this.clearPressTimer(),this.state.timerId=setTimeout(()=>{if(this.isActive&&this.state.startCentroid){this.state.pressThresholdReached=!0;const e=this.state.lastPosition;this.emitPressEvent(i,"start",o,t,e),this.emitPressEvent(i,"ongoing",o,t,e)}},this.duration));break;case"pointermove":if(this.isActive&&this.state.startCentroid){const e=ou(o);this.state.lastPosition=e;const n=e.x-this.state.startCentroid.x,r=e.y-this.state.startCentroid.y;Math.sqrt(n*n+r*r)>this.maxDistance&&this.cancelPress(i,o,t)}break;case"pointerup":if(this.isActive){if(this.state.pressThresholdReached){const e=this.state.lastPosition||this.state.startCentroid;this.emitPressEvent(i,"end",o,t,e)}this.resetState()}break;case"pointercancel":case"forceCancel":this.cancelPress(i,o,t)}}emitPressEvent(e,t,n,r,i){const o=this.gesturesRegistry.getActiveGestures(e),a=r.timeStamp-this.state.startTime,s={gestureName:this.name,centroid:i,target:r.target,srcEvent:r,phase:t,pointers:n,timeStamp:r.timeStamp,x:i.x,y:i.y,duration:a,activeGestures:o,customData:this.customData},l=su(this.name,t),c=new CustomEvent(l,{bubbles:!0,cancelable:!0,composed:!0,detail:s});e.dispatchEvent(c),this.preventDefault&&r.preventDefault(),this.stopPropagation&&r.stopPropagation()}cancelPress(e,t,n){if(this.isActive&&this.state.pressThresholdReached){const r=this.state.lastPosition||this.state.startCentroid;this.emitPressEvent(e??this.element,"cancel",t,n,r),this.emitPressEvent(e??this.element,"end",t,n,r)}this.resetState()}}const mu=e=>e.preventDefault(),vu=({svgRef:e})=>{o.useEffect(()=>{const t=e.current;if(!t)return;const n=new tu({gestures:[new lu({name:"pan",threshold:0,maxPointers:1}),new cu({name:"move",preventIf:["pan","pinch"]}),new fu({name:"pinch",threshold:5,preventIf:["pan"]}),new hu({name:"turnWheel",sensitivity:.01,initialDelta:1}),new pu({name:"tap",maxDistance:10,preventIf:["pan","pinch"]}),new gu({name:"quickPress",duration:50,maxDistance:10})]});return n.registerElement(["pan","move","pinch","turnWheel","tap","quickPress"],t),()=>{n.destroy()}},[e]);const t=o.useCallback((t,n,r)=>{const i=e.current;return i?.addEventListener(t,n,r),{cleanup:()=>i?.removeEventListener(t,n)}},[e]);return o.useEffect(()=>{const t=e.current;return t?.addEventListener("gesturestart",mu),t?.addEventListener("gesturechange",mu),t?.addEventListener("gestureend",mu),()=>{t?.removeEventListener("gesturestart",mu),t?.removeEventListener("gesturechange",mu),t?.removeEventListener("gestureend",mu)}},[e]),{instance:{addInteractionListener:t}}};vu.params={},vu.getInitialState=()=>({});const yu=[Yc,qc,Vc,Xc,vu,Uc],bu=["apiRef"];let xu=0;function Au(e,t,n){const r=function(e){if(void 0!==$c){const t=$c();return e??t}return function(e){const[t,n]=o.useState(e),r=e||t;return o.useEffect(()=>{null==t&&(Bc+=1,n(`mui-${Bc}`))},[t]),r}(e)}(),a=o.useMemo(()=>[...yu,...e],[e]),s=(e=>{let{plugins:t}=e,n=(0,i.A)(e.props,bu);const r={};t.forEach(e=>{Object.assign(r,e.params)});const o={};return Object.keys(n).forEach(e=>{const t=n[e];r[e]&&(o[e]=t)}),t.reduce((e,t)=>t.getDefaultizedParams?t.getDefaultizedParams({params:e}):e,o)})({plugins:a,props:t});s.id=s.id??r;const l=o.useRef({}).current,c=function(e){const t=o.useRef({});return e?function(e){return null==e.current&&(e.current={}),e}(e):t}(t.apiRef),u=o.useRef(null),d=o.useRef(null),f=o.useRef(null);if(null==f.current){xu+=1;const e={cacheKey:{id:xu}};a.forEach(t=>{t.getInitialState&&Object.assign(e,t.getInitialState(s,e,n))}),f.current=new Hc(e)}return a.forEach(e=>{const t=e({instance:l,params:s,plugins:a,store:f.current,svgRef:d,chartRootRef:u,seriesConfig:n});t.publicAPI&&Object.assign(c.current,t.publicAPI),t.instance&&Object.assign(l,t.instance)}),{contextValue:o.useMemo(()=>({store:f.current,publicAPI:c.current,instance:l,svgRef:d,chartRootRef:u}),[l,c])}}var wu=n(85396);function ku(e){let t=1/0,n=-1/0;for(const r of e??[])r<t&&(t=r),r>n&&(n=r);return[t,n]}const Cu=(e,t)=>"x"===t?{x:e,y:null}:{x:null,y:e},Eu=e=>{const{axis:t,getFilters:n,isDefaultAxis:r}=e,i=n?.({currentAxisId:t.id,isDefaultAxis:r});return ku((i?t.data?.filter((e,t)=>i({x:null,y:null},t)):t.data)??[])},Su=e=>t=>{const{series:n,axis:r,getFilters:i,isDefaultAxis:o}=t;return Object.keys(n).filter(t=>{const i="x"===e?n[t].xAxisId:n[t].yAxisId;return i===r.id||o&&void 0===i}).reduce((t,a)=>{const{stackedData:s}=n[a],l=i?.({currentAxisId:r.id,isDefaultAxis:o,seriesXAxisId:n[a].xAxisId,seriesYAxisId:n[a].yAxisId}),[c,u]=s?.reduce((t,n,r)=>!l||l(Cu(n[0],e),r)&&l(Cu(n[1],e),r)?[Math.min(...n,t[0]),Math.max(...n,t[1])]:t,[1/0,-1/0])??[1/0,-1/0];return[Math.min(c,t[0]),Math.max(u,t[1])]},[1/0,-1/0])};function Mu(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function _u(e,t){if((i=e.length)>1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o<i;++o)for(r=a,a=e[t[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function Tu(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Iu(e,t){return e[t]}function Pu(e){const t=[];return t.key=e,t}function Ru(){var e=Ca([]),t=Tu,n=_u,r=Iu;function i(i){var o,a,s=Array.from(e.apply(this,arguments),Pu),l=s.length,c=-1;for(const e of i)for(o=0,++c;o<l;++o)(s[o][c]=[0,+r(e,s[o].key,c,i)]).data=e;for(o=0,a=Mu(t(s));o<l;++o)s[a[o]].index=o;return n(s,a),s}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:Ca(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:Ca(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?Tu:"function"==typeof e?e:Ca(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?_u:e,i):n},i}function Lu(e){var t=e.map(ju);return Tu(e).sort(function(e,n){return t[e]-t[n]})}function ju(e){for(var t,n=-1,r=0,i=e.length,o=-1/0;++n<i;)(t=+e[n][1])>o&&(o=t,r=n);return r}function Du(e){var t=e.map(Ou);return Tu(e).sort(function(e,n){return t[e]-t[n]})}function Ou(e){for(var t,n=0,r=-1,i=e.length;++r<i;)(t=+e[r][1])&&(n+=t);return n}Array.prototype.slice;const Nu={appearance:Lu,ascending:Du,descending:function(e){return Du(e).reverse()},insideOut:function(e){var t,n,r=e.length,i=e.map(Ou),o=Lu(e),a=0,s=0,l=[],c=[];for(t=0;t<r;++t)n=o[t],a<s?(a+=i[n],l.push(n)):(s+=i[n],c.push(n));return c.reverse().concat(l)},none:Tu,reverse:function(e){return Tu(e).reverse()}},Fu={expand:function(e,t){if((r=e.length)>0){for(var n,r,i,o=0,a=e[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=e[n][o][1]||0;if(i)for(n=0;n<r;++n)e[n][o][1]/=i}_u(e,t)}},diverging:function(e,t){if((s=e.length)>0)for(var n,r,i,o,a,s,l=0,c=e[t[0]].length;l<c;++l)for(o=a=0,n=0;n<s;++n)(i=(r=e[t[n]][l])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)},none:_u,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r<o;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;i[r][1]+=i[r][0]=-s/2}_u(e,t)}},wiggle:function(e,t){if((i=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var s=0,l=0,c=0;s<i;++s){for(var u=e[t[s]],d=u[a][1]||0,f=(d-(u[a-1][1]||0))/2,h=0;h<s;++h){var p=e[t[h]];f+=(p[a][1]||0)-(p[a-1][1]||0)}l+=d,c+=f*d}n[a-1][1]+=n[a-1][0]=o,l&&(o-=c/l)}n[a-1][1]+=n[a-1][0]=o,_u(e,t)}}},zu=e=>{const{series:t,seriesOrder:n,defaultStrategy:r}=e,i=[],o={};return n.forEach(e=>{const{stack:n,stackOrder:a,stackOffset:s}=t[e];void 0===n?i.push({ids:[e],stackingOrder:Nu.none,stackingOffset:Fu.none}):void 0===o[n]?(o[n]=i.length,i.push({ids:[e],stackingOrder:Nu[a??r?.stackOrder??"none"],stackingOffset:Fu[s??r?.stackOffset??"diverging"]})):(i[o[n]].ids.push(e),void 0!==a&&(i[o[n]].stackingOrder=Nu[a]),void 0!==s&&(i[o[n]].stackingOffset=Fu[s]))}),i},Bu=e=>null==e?"":e.toLocaleString(),$u={seriesProcessor:({series:e,seriesOrder:t},n)=>({series:Object.fromEntries(Object.entries(e).map(([e,t])=>{const i=t?.datasetKeys,o=["x","y","id"].filter(e=>"string"!=typeof i?.[e]);if(t?.datasetKeys&&o.length>0)throw new Error([`MUI X Charts: scatter series with id='${e}' has incomplete datasetKeys.`,`Properties ${o.map(e=>`"${e}"`).join(", ")} are missing.`].join("\n"));const a=i?n?.map(e=>({x:e[i.x]??null,y:e[i.y]??null,z:i.z&&e[i.z],id:i.id&&e[i.id]}))??[]:t.data??[];return[e,(0,r.A)({labelMarkType:"circle",markerSize:4},t,{preview:(0,r.A)({markerSize:1},t?.preview),data:a,valueFormatter:t.valueFormatter??(e=>e&&`(${e.x}, ${e.y})`)})]})),seriesOrder:t}),colorProcessor:(e,t,n,r)=>{const i=r?.colorScale,o=n?.colorScale,a=t?.colorScale;return i?t=>{if(void 0===t)return e.color;if(void 0!==r?.data?.[t]){const e=i(r?.data?.[t]);if(null!==e)return e}const n=e.data[t],o=null===n?e.color:i(n.z);return null===o?e.color:o}:o?t=>{if(void 0===t)return e.color;const n=e.data[t],r=null===n?e.color:o(n.y);return null===r?e.color:r}:a?t=>{if(void 0===t)return e.color;const n=e.data[t],r=null===n?e.color:a(n.x);return null===r?e.color:r}:()=>e.color},legendGetter:e=>{const{seriesOrder:t,series:n}=e;return t.reduce((e,t)=>{const r=Eo(n[t].label,"legend");return void 0===r||e.push({markType:n[t].labelMarkType,id:t,seriesId:t,color:n[t].color,label:r}),e},[])},tooltipGetter:e=>{const{series:t,getColor:n,identifier:r}=e;if(!r||void 0===r.dataIndex)return null;const i=Eo(t.label,"tooltip"),o=t.data[r.dataIndex],a=t.valueFormatter(o,{dataIndex:r.dataIndex});return{identifier:r,color:n(r.dataIndex),label:i,value:o,formattedValue:a,markType:t.labelMarkType}},xExtremumGetter:e=>{const{series:t,axis:n,isDefaultAxis:r,getFilters:i}=e;let o=1/0,a=-1/0;for(const e in t){if(!Object.hasOwn(t,e))continue;const s=t[e].xAxisId;if(!(s===n.id||void 0===s&&r))continue;const l=i?.({currentAxisId:n.id,isDefaultAxis:r,seriesXAxisId:t[e].xAxisId,seriesYAxisId:t[e].yAxisId}),c=t[e].data??[];for(let e=0;e<c.length;e+=1){const t=c[e];l&&!l(t,e)||null!==t.x&&(t.x<o&&(o=t.x),t.x>a&&(a=t.x))}}return[o,a]},yExtremumGetter:e=>{const{series:t,axis:n,isDefaultAxis:r,getFilters:i}=e;let o=1/0,a=-1/0;for(const e in t){if(!Object.hasOwn(t,e))continue;const s=t[e].yAxisId;if(!(s===n.id||void 0===s&&r))continue;const l=i?.({currentAxisId:n.id,isDefaultAxis:r,seriesXAxisId:t[e].xAxisId,seriesYAxisId:t[e].yAxisId}),c=t[e].data??[];for(let e=0;e<c.length;e+=1){const t=c[e];l&&!l(t,e)||null!==t.y&&(t.y<o&&(o=t.y),t.y>a&&(a=t.y))}}return[o,a]},getSeriesWithDefaultValues:(e,t,n)=>(0,r.A)({id:e.id??`auto-generated-id-${t}`,color:n[t%n.length]},e)};function Hu(e,t){const n={};return Object.keys(e).forEach(i=>{n[i]=(0,r.A)({},e[i],{valueFormatter:e[i].valueFormatter??t})}),n}const Uu={colorProcessor:(e,t,n)=>{const r=n?.colorScale,i=t?.colorScale;return r?t=>{if(void 0===t)return e.color;const n=e.data[t],i=null===n?e.color:r(n);return null===i?e.color:i}:i?n=>{if(void 0===n)return e.color;const r=t.data?.[n],o=null===r?e.color:i(r);return null===o?e.color:o}:()=>e.color},seriesProcessor:(e,t)=>{const{seriesOrder:n,series:i}=e,o=zu((0,r.A)({},e,{defaultStrategy:{stackOffset:"none"}})),a=t??[];n.forEach(e=>{const t=i[e].data;void 0!==t&&t.forEach((t,n)=>{a.length<=n?a.push({[e]:t}):a[n][e]=t})});const s={};return o.forEach(e=>{const{ids:n,stackingOrder:o,stackingOffset:l}=e,c=Ru().keys(n.map(e=>{const t=i[e].dataKey;return void 0===i[e].data&&void 0!==t?t:e})).value((e,t)=>e[t]??0).order(o).offset(l)(a);n.forEach((e,n)=>{const o=i[e].dataKey;s[e]=(0,r.A)({labelMarkType:"line"},i[e],{data:o?t.map(e=>{const t=e[o];return"number"!=typeof t?null:t}):i[e].data,stackedData:c[n].map(([e,t])=>[e,t])})})}),{seriesOrder:n,stackingGroups:o,series:Hu(s,e=>null==e?"":e.toLocaleString())}},legendGetter:e=>{const{seriesOrder:t,series:n}=e;return t.reduce((e,t)=>{const r=Eo(n[t].label,"legend");return void 0===r||e.push({markType:n[t].labelMarkType,id:t,seriesId:t,color:n[t].color,label:r}),e},[])},tooltipGetter:e=>{const{series:t,getColor:n,identifier:r}=e;if(!r||void 0===r.dataIndex)return null;const i=Eo(t.label,"tooltip"),o=t.data[r.dataIndex],a=t.valueFormatter(o,{dataIndex:r.dataIndex});return{identifier:r,color:n(r.dataIndex),label:i,value:o,formattedValue:a,markType:t.labelMarkType}},axisTooltipGetter:e=>Object.values(e).map(e=>({direction:"x",axisId:e.xAxisId})),xExtremumGetter:e=>{const{axis:t}=e;return ku(t.data??[])},yExtremumGetter:e=>{const{series:t,axis:n,isDefaultAxis:r,getFilters:i}=e;return Object.keys(t).filter(e=>{const i=t[e].yAxisId;return i===n.id||r&&void 0===i}).reduce((e,o)=>{const{area:a,stackedData:s,data:l}=t[o],c=void 0!==a,u=i?.({currentAxisId:n.id,isDefaultAxis:r,seriesXAxisId:t[o].xAxisId,seriesYAxisId:t[o].yAxisId}),d=function(e,t,n,r){return n.reduce((n,i,o)=>{if(null===t[o])return n;const[a,s]=e(i);return!r||r({y:a,x:null},o)&&r({y:s,x:null},o)?[Math.min(a,s,n[0]),Math.max(a,s,n[1])]:n},[1/0,-1/0])}(c&&"log"!==n.scaleType&&"string"!=typeof t[o].baseline?e=>e:e=>[e[1],e[1]],l,s,u),[f,h]=d;return[Math.min(f,e[0]),Math.max(h,e[1])]},[1/0,-1/0])},getSeriesWithDefaultValues:(e,t,n)=>(0,r.A)({id:e.id??`auto-generated-id-${t}`,color:n[t%n.length]},e)};function Wu(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function Vu(e){return e}const qu={bar:{seriesProcessor:(e,t)=>{const{seriesOrder:n,series:i}=e,o=zu(e),a=t??[];n.forEach(e=>{const n=i[e].data;if(void 0!==n)n.forEach((t,n)=>{a.length<=n?a.push({[e]:t}):a[n][e]=t});else if(void 0===t)throw new Error([`MUI X Charts: bar series with id='${e}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join("\n"))});const s={};return o.forEach(e=>{const{ids:n,stackingOffset:o,stackingOrder:l}=e,c=Ru().keys(n.map(e=>{const t=i[e].dataKey;return void 0===i[e].data&&void 0!==t?t:e})).value((e,t)=>e[t]??0).order(l).offset(o)(a);n.forEach((e,n)=>{const o=i[e].dataKey;s[e]=(0,r.A)({layout:"vertical",labelMarkType:"square",minBarSize:0,valueFormatter:i[e].valueFormatter??Bu},i[e],{data:o?t.map(e=>{const t=e[o];return"number"!=typeof t?null:t}):i[e].data,stackedData:c[n].map(([e,t])=>[e,t])})})}),{seriesOrder:n,stackingGroups:o,series:s}},colorProcessor:(e,t,n)=>{const r="vertical"===e.layout,i=r?t?.colorScale:n?.colorScale,o=r?n?.colorScale:t?.colorScale,a=r?t?.data:n?.data;return o?t=>{if(void 0===t)return e.color;const n=e.data[t],r=null===n?e.color:o(n);return null===r?e.color:r}:i&&a?t=>{if(void 0===t)return e.color;const n=a[t],r=null===n?e.color:i(n);return null===r?e.color:r}:()=>e.color},legendGetter:e=>{const{seriesOrder:t,series:n}=e;return t.reduce((e,t)=>{const r=Eo(n[t].label,"legend");return void 0===r||e.push({markType:n[t].labelMarkType,id:t,seriesId:t,color:n[t].color,label:r}),e},[])},tooltipGetter:e=>{const{series:t,getColor:n,identifier:r}=e;if(!r||void 0===r.dataIndex)return null;const i=Eo(t.label,"tooltip"),o=t.data[r.dataIndex];if(null==o)return null;const a=t.valueFormatter(o,{dataIndex:r.dataIndex});return{identifier:r,color:n(r.dataIndex),label:i,value:o,formattedValue:a,markType:t.labelMarkType}},axisTooltipGetter:e=>Object.values(e).map(e=>"horizontal"===e.layout?{direction:"y",axisId:e.yAxisId}:{direction:"x",axisId:e.xAxisId}),xExtremumGetter:e=>Object.keys(e.series).some(t=>"horizontal"===e.series[t].layout)?Su("x")(e):Eu(e),yExtremumGetter:e=>Object.keys(e.series).some(t=>"horizontal"===e.series[t].layout)?Eu(e):Su("y")(e),getSeriesWithDefaultValues:(e,t,n)=>(0,r.A)({id:e.id??`auto-generated-id-${t}`,color:n[t%n.length]},e)},scatter:$u,line:Uu,pie:{colorProcessor:e=>t=>e.data[t].color,seriesProcessor:e=>{const{seriesOrder:t,series:n}=e,i={};return t.forEach(e=>{const t=function(){var e=Vu,t=Wu,n=null,r=Ca(0),i=Ca(Da),o=Ca(0);function a(a){var s,l,c,u,d,f=(a=Mu(a)).length,h=0,p=new Array(f),g=new Array(f),m=+r.apply(this,arguments),v=Math.min(Da,Math.max(-Da,i.apply(this,arguments)-m)),y=Math.min(Math.abs(v)/f,o.apply(this,arguments)),b=y*(v<0?-1:1);for(s=0;s<f;++s)(d=g[p[s]=s]=+e(a[s],s,a))>0&&(h+=d);for(null!=t?p.sort(function(e,n){return t(g[e],g[n])}):null!=n&&p.sort(function(e,t){return n(a[e],a[t])}),s=0,c=h?(v-f*b)/h:0;s<f;++s,m=u)l=p[s],u=m+((d=g[l])>0?d*c:0)+b,g[l]={data:a[l],index:s,value:d,startAngle:m,endAngle:u,padAngle:y};return g}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:Ca(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:Ca(+e),a):r},a.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:Ca(+e),a):i},a.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:Ca(+e),a):o},a}().startAngle(2*Math.PI*(n[e].startAngle??0)/360).endAngle(2*Math.PI*(n[e].endAngle??360)/360).padAngle(2*Math.PI*(n[e].paddingAngle??0)/360).sortValues(((e="none")=>{if("function"==typeof e)return e;switch(e){case"none":default:return null;case"desc":return(e,t)=>t-e;case"asc":return(e,t)=>e-t}})(n[e].sortingValues??"none"))(n[e].data.map(e=>e.value));i[e]=(0,r.A)({labelMarkType:"circle",valueFormatter:e=>e.value.toLocaleString()},n[e],{data:n[e].data.map((n,i)=>(0,r.A)({},n,{id:n.id??`auto-generated-pie-id-${e}-${i}`},t[i])).map((t,i)=>(0,r.A)({labelMarkType:"circle"},t,{formattedValue:n[e].valueFormatter?.((0,r.A)({},t,{label:Eo(t.label,"arc")}),{dataIndex:i})??t.value.toLocaleString()}))})}),{seriesOrder:t,series:i}},legendGetter:e=>{const{seriesOrder:t,series:n}=e;return t.reduce((e,t)=>(n[t].data.forEach((r,i)=>{const o=Eo(r.label,"legend");void 0!==o&&e.push({markType:r.labelMarkType??n[t].labelMarkType,id:r.id??i,seriesId:t,color:r.color,label:o,itemId:r.id??i})}),e),[])},tooltipGetter:e=>{const{series:t,getColor:n,identifier:i}=e;if(!i||void 0===i.dataIndex)return null;const o=t.data[i.dataIndex];if(null==o)return null;const a=Eo(o.label,"tooltip"),s=(0,r.A)({},o,{label:a}),l=t.valueFormatter(s,{dataIndex:i.dataIndex});return{identifier:i,color:n(i.dataIndex),label:a,value:s,formattedValue:l,markType:o.labelMarkType??t.labelMarkType}},getSeriesWithDefaultValues:(e,t,n)=>(0,r.A)({id:e.id??`auto-generated-id-${t}`},e,{data:e.data.map((e,t)=>(0,r.A)({color:n[t%n.length]},e))})}},Gu=[Nc,Yl,Ql,Zl];function Yu(e){const{children:t,plugins:n=Gu,pluginParams:r={},seriesConfig:i=qu}=e,{contextValue:o}=Au(n,r,i);return(0,bo.jsx)(wu.u.Provider,{value:o,children:t})}function Ku(e){const{children:t,localeText:n,chartProviderProps:o,slots:a,slotProps:l}=(e=>{const t=(0,s.A)({props:e,name:"MuiChartDataProvider"}),{children:n,localeText:o,plugins:a=Fc,seriesConfig:l,slots:c,slotProps:u}=t,d=(0,i.A)(t,zc),f=(0,vo.A)();return{children:n,localeText:o,chartProviderProps:{plugins:a,seriesConfig:l,pluginParams:(0,r.A)({theme:f.palette.mode},d)},slots:c,slotProps:u}})(e);return(0,bo.jsx)(Yu,(0,r.A)({},o,{children:(0,bo.jsx)(ml,{localeText:n,children:(0,bo.jsx)(Fl,{slots:a,slotProps:l,defaultSlots:Ol,children:t})})}))}const Xu=["width","height","margin","children","series","colors","dataset","desc","onAxisClick","highlightedAxis","onHighlightedAxisChange","disableVoronoi","voronoiMaxRadius","onItemClick","disableAxisListener","highlightedItem","onHighlightChange","sx","title","xAxis","yAxis","zAxis","rotationAxis","radiusAxis","skipAnimation","seriesConfig","plugins","localeText","slots","slotProps","experimentalFeatures","enableKeyboardNavigation"];var Zu=n(54642);const Qu=g("MuiChartsToolbar",["root"]),Ju=e=>"start"===e?.horizontal?"start":"end"===e?.horizontal?"end":"center",ed=e=>"top"===e?.vertical?"flex-start":"bottom"===e?.vertical?"flex-end":"center",td=(0,co.Ay)("div",{name:"MuiChartsWrapper",slot:"Root",shouldForwardProp:e=>(0,Zu.MC)(e)&&"extendVertically"!==e&&"width"!==e})(({ownerState:e,width:t})=>{const n=((e=!1,t="horizontal",n="end",r)=>{const i=r?"auto":"1fr";return"horizontal"===t||e?i:"start"===n?`auto ${i}`:`${i} auto`})(e.hideLegend,e.legendDirection,e.legendPosition?.horizontal,t),r=((e=!1,t="horizontal",n="top")=>{const r="1fr";return"vertical"===t||e?r:"bottom"===n?`${r} auto`:`auto ${r}`})(e.hideLegend,e.legendDirection,e.legendPosition?.vertical),i=(o=e.hideLegend,a=e.legendDirection,s=e.legendPosition,o?'"chart"':"vertical"===a?"start"===s?.horizontal?'"legend chart"':'"chart legend"':"bottom"===s?.vertical?'"chart"\n "legend"':'"legend"\n "chart"');var o,a,s;return{variants:[{props:{extendVertically:!0},style:{height:"100%"}}],flex:1,display:"grid",gridTemplateColumns:n,gridTemplateRows:r,gridTemplateAreas:i,[`&:has(.${Qu.root})`]:{gridTemplateRows:`auto ${r}`,gridTemplateAreas:`"${n.split(" ").map(()=>"toolbar").join(" ")}"\n ${i}`},[`& .${Qu.root}`]:{gridArea:"toolbar",justifySelf:"center"},justifyContent:"center",justifyItems:Ju(e.legendPosition),alignItems:ed(e.legendPosition)}});function nd(e){const{children:t,sx:n,extendVertically:r}=e,i=(0,Mo.N)().chartRootRef,o=(0,x.P)(),{width:a,height:s}=(0,A.d)(o,j.dr);return(0,bo.jsx)(td,{ref:i,ownerState:e,sx:n,extendVertically:r??void 0===s,width:a,children:t})}const rd=[Ql,Zl,nc],id=["series","width","height","margin","colors","sx","skipAnimation","hideLegend","children","slots","slotProps","onItemClick","loading","highlightedItem","onHighlightChange","className","showToolbar"],od=o.forwardRef(function(e,t){const n=(0,s.A)({props:e,name:"MuiPieChart"}),{series:o,width:a,height:c,margin:u,colors:d,sx:f,skipAnimation:h,hideLegend:p,children:g,slots:m,slotProps:v,onItemClick:y,loading:b,highlightedItem:x,onHighlightChange:A,className:w,showToolbar:k}=n,C=(0,i.A)(n,id),E=Wc(u,l),{chartDataProviderProps:S,chartsSurfaceProps:M}=((e,t)=>{const n=e,{width:o,height:a,margin:s,children:l,series:c,colors:u,dataset:d,desc:f,onAxisClick:h,highlightedAxis:p,onHighlightedAxisChange:g,disableVoronoi:m,voronoiMaxRadius:v,onItemClick:y,disableAxisListener:b,highlightedItem:x,onHighlightChange:A,sx:w,title:k,xAxis:C,yAxis:E,zAxis:S,rotationAxis:M,radiusAxis:_,skipAnimation:T,seriesConfig:I,plugins:P,localeText:R,slots:L,slotProps:j,experimentalFeatures:D,enableKeyboardNavigation:O}=n,N=(0,i.A)(n,Xu),F=(0,r.A)({title:k,desc:f,sx:w,ref:t},N);return{chartDataProviderProps:{margin:s,series:c,colors:u,dataset:d,disableAxisListener:b,highlightedItem:x,onHighlightChange:A,onAxisClick:h,highlightedAxis:p,onHighlightedAxisChange:g,disableVoronoi:m,voronoiMaxRadius:v,onItemClick:y,xAxis:C,yAxis:E,zAxis:S,rotationAxis:M,radiusAxis:_,skipAnimation:T,width:o,height:a,localeText:R,seriesConfig:I,experimentalFeatures:D,enableKeyboardNavigation:O,plugins:P??Fc,slots:L,slotProps:j},chartsSurfaceProps:F,children:l}})((0,r.A)({},C,{series:o.map(e=>(0,r.A)({type:"pie"},e)),width:a,height:c,margin:E,colors:d,highlightedItem:x,onHighlightChange:A,className:w,skipAnimation:h,plugins:rd}),t),_=m?.tooltip??ca,T=n.slots?.toolbar;return(0,bo.jsx)(Ku,(0,r.A)({},S,{children:(0,bo.jsxs)(nd,{legendPosition:n.slotProps?.legend?.position,legendDirection:n.slotProps?.legend?.direction??"vertical",sx:f,hideLegend:p??!1,children:[k&&T?(0,bo.jsx)(T,(0,r.A)({},n.slotProps?.toolbar)):null,!p&&(0,bo.jsx)(ka,{direction:n.slotProps?.legend?.direction??"vertical",slots:m,slotProps:v}),(0,bo.jsxs)(Ll,(0,r.A)({},M,{children:[(0,bo.jsx)(cl,{slots:m,slotProps:v,onItemClick:y}),(0,bo.jsx)(Cl,{loading:b,slots:m,slotProps:v}),g]})),!b&&(0,bo.jsx)(_,(0,r.A)({trigger:"item"},v?.tooltip))]})}))})},85396:(e,t,n)=>{"use strict";n.d(t,{u:()=>r});const r=n(95478).createContext(null)},53871:(e,t,n)=>{"use strict";n.d(t,{N:()=>o});var r=n(95478),i=n(85396);const o=()=>{const e=r.useContext(i.u);if(null==e)throw new Error(["MUI X Charts: Could not find the Chart context.","It looks like you rendered your component outside of a ChartDataProvider.","This can also happen if you are bundling multiple versions of the library."].join("\n"));return e}},92742:(e,t,n)=>{"use strict";n.d(t,{N:()=>a});var r=n(97043),i=n(2628),o=n(7967);function a(){const e=(0,r.P)();return(0,i.d)(e,o.VT)}},7967:(e,t,n)=>{"use strict";n.d(t,{_h:()=>h,VT:()=>d,dr:()=>f});var r=n(10184),i=n(87483);const o=(0,r.M)([i.mQ],e=>(e??[]).reduce((e,t)=>"left"===t.position?e+(t.width||0)+(t.zoom?.slider.enabled?t.zoom.slider.size:0):e,0)),a=(0,r.M)([i.mQ],e=>(e??[]).reduce((e,t)=>"right"===t.position?e+(t.width||0)+(t.zoom?.slider.enabled?t.zoom.slider.size:0):e,0)),s=(0,r.M)([i.RH],e=>(e??[]).reduce((e,t)=>"top"===t.position?e+(t.height||0)+(t.zoom?.slider.enabled?t.zoom.slider.size:0):e,0)),l=(0,r.M)([i.RH],e=>(e??[]).reduce((e,t)=>"bottom"===t.position?e+(t.height||0)+(t.zoom?.slider.enabled?t.zoom.slider.size:0):e,0)),c=e=>e.dimensions.width,u=e=>e.dimensions.height,d=(0,r.M)([c,u,e=>e.dimensions.margin.top,e=>e.dimensions.margin.right,e=>e.dimensions.margin.bottom,e=>e.dimensions.margin.left,s,a,l,o],(e,t,n,r,i,o,a,s,l,c)=>({width:e-o-r-c-s,left:o+c,right:r+s,height:t-n-i-a-l,top:n+a,bottom:i+l})),f=(0,r.M)([e=>e.dimensions],e=>({width:e.propsWidth,height:e.propsHeight})),h=(0,r.M)([c,u],(e,t)=>({width:e,height:t}))},87483:(e,t,n)=>{"use strict";n.d(t,{RH:()=>r,mQ:()=>i});const r=e=>e.cartesianAxis?.x,i=e=>e.cartesianAxis?.y},10184:(e,t,n)=>{"use strict";n.d(t,{M:()=>p});var r=Symbol("NOT_FOUND");var i=e=>Array.isArray(e)?e:[e];Symbol(),Object.getPrototypeOf({});var o=(e,t)=>e===t;var a="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function s(){return{s:0,v:void 0,o:null,p:null}}function l(e,t={}){let n={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:r}=t;let i,o=0;function l(){let t=n;const{length:l}=arguments;for(let e=0,n=l;e<n;e++){const n=arguments[e];if("function"==typeof n||"object"==typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const r=e.get(n);void 0===r?(t=s(),e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);const r=e.get(n);void 0===r?(t=s(),e.set(n,t)):t=r}}const c=t;let u;if(1===t.s)u=t.v;else if(u=e.apply(null,arguments),o++,r){const e=i?.deref?.()??i;null!=e&&r(e,u)&&(u=e,0!==o&&o--),i="object"==typeof u&&null!==u||"function"==typeof u?new a(u):u}return c.s=1,c.v=u,u}return l.clearCache=()=>{n={s:0,v:void 0,o:null,p:null},l.resetResultsCount()},l.resultsCount=()=>o,l.resetResultsCount=()=>{o=0},l}function c(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,o=0,a={},s=e.pop();"object"==typeof s&&(a=s,s=e.pop()),function(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}(s,`createSelector expects an output function after the inputs, but received: [${typeof s}]`);const c={...n,...a},{memoize:u,memoizeOptions:d=[],argsMemoize:f=l,argsMemoizeOptions:h=[],devModeChecks:p={}}=c,g=i(d),m=i(h),v=function(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){const n=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}(e),y=u(function(){return r++,s.apply(null,arguments)},...g),b=f(function(){o++;const e=function(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}(v,arguments);return t=y.apply(null,e),t},...m);return Object.assign(b,{resultFunc:s,memoizedResultFunc:y,dependencies:v,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:u,argsMemoize:f})};return Object.assign(r,{withTypes:()=>r}),r}var u=c(l),d=Object.assign((e,t=u)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map(t=>e[t]),(...e)=>e.reduce((e,t,r)=>(e[n[r]]=t,e),{}))},{withTypes:()=>d});const f=c({memoize:function(e,t){const n="object"==typeof t?t:{equalityCheck:t},{equalityCheck:i=o,maxSize:a=1,resultEqualityCheck:s}=n,l=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;const{length:r}=t;for(let i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}}(i);let c=0;const u=a<=1?function(e){let t;return{get:n=>t&&e(t.key,n)?t.value:r,put(e,n){t={key:e,value:n}},getEntries:()=>t?[t]:[],clear(){t=void 0}}}(l):function(e,t){let n=[];function i(e){const i=n.findIndex(n=>t(e,n.key));if(i>-1){const e=n[i];return i>0&&(n.splice(i,1),n.unshift(e)),e.value}return r}return{get:i,put:function(t,o){i(t)===r&&(n.unshift({key:t,value:o}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(a,l);function d(){let t=u.get(arguments);if(t===r){if(t=e.apply(null,arguments),c++,s){const e=u.getEntries().find(e=>s(e.value,t));e&&(t=e.value,0!==c&&c--)}u.put(arguments,t)}return t}return d.clearCache=()=>{u.clear(),d.resetResultsCount()},d.resultsCount=()=>c,d.resetResultsCount=()=>{c=0},d},memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),h=new WeakMap,p=(...e)=>(t,...n)=>{const r=t.cacheKey;let i=h.get(r);i||(i=new Map,h.set(r,i));const o=i.get(e);if(o)return o(t,...n);const a=f(...e);return i.set(e,a),a(t,...n)}},2628:(e,t,n)=>{"use strict";n.d(t,{d:()=>o});var r=n(37121);const i=Object.is,o=(e,t,n=[],o=i)=>(0,r.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,...n),o)},97043:(e,t,n)=>{"use strict";n.d(t,{P:()=>i});var r=n(53871);function i(){const e=(0,r.N)();if(!e)throw new Error(["MUI X Charts: Could not find the charts context.","It looks like you rendered your component outside of a ChartContainer parent component."].join("\n"));return e.store}}}]);
3
- //# sourceMappingURL=5211.b1dc9542.chunk.js.map