elseware-ui 2.2.20 → 2.2.22

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 (109) hide show
  1. package/dist/index.esm.min.js +24 -0
  2. package/dist/index.min.js +25 -0
  3. package/package.json +11 -12
  4. package/build/components/data-display/avatar/Avatar.d.ts +0 -17
  5. package/build/components/data-display/badge/Badge.d.ts +0 -15
  6. package/build/components/data-display/banners/TitleBanner.d.ts +0 -18
  7. package/build/components/data-display/charts/BarChart.d.ts +0 -10
  8. package/build/components/data-display/charts/LineChart.d.ts +0 -9
  9. package/build/components/data-display/charts/PieChart.d.ts +0 -10
  10. package/build/components/data-display/chip/Chip.d.ts +0 -10
  11. package/build/components/data-display/image/CloudinaryImage.d.ts +0 -10
  12. package/build/components/data-display/image/Image.d.ts +0 -10
  13. package/build/components/data-display/image/index.d.ts +0 -3
  14. package/build/components/data-display/info/Info.d.ts +0 -9
  15. package/build/components/data-display/lists/List.d.ts +0 -9
  16. package/build/components/data-display/lists/ListItem.d.ts +0 -15
  17. package/build/components/data-display/lists/index.d.ts +0 -3
  18. package/build/components/data-display/price-tag/PriceTag.d.ts +0 -10
  19. package/build/components/data-display/rating/StarRating.d.ts +0 -11
  20. package/build/components/data-display/rating/StarRatingDistribution.d.ts +0 -25
  21. package/build/components/data-display/rating/index.d.ts +0 -3
  22. package/build/components/data-display/slider/Slider.d.ts +0 -10
  23. package/build/components/data-display/slider/SliderItem.d.ts +0 -10
  24. package/build/components/data-display/table/Table.d.ts +0 -17
  25. package/build/components/data-display/table/TableContent.d.ts +0 -13
  26. package/build/components/data-display/table/TableRow.d.ts +0 -10
  27. package/build/components/data-display/tag/Tag.d.ts +0 -8
  28. package/build/components/data-display/typography/chapter/Chapter.d.ts +0 -13
  29. package/build/components/data-display/typography/index.d.ts +0 -14
  30. package/build/components/data-display/typography/link/Link.d.ts +0 -14
  31. package/build/components/data-display/typography/paragraph/Paragraph.d.ts +0 -13
  32. package/build/components/data-display/typography/quote/Quote.d.ts +0 -7
  33. package/build/components/data-display/typography/section/Section.d.ts +0 -13
  34. package/build/components/data-entry/button/Button.d.ts +0 -19
  35. package/build/components/data-entry/checkbox/Checkbox.d.ts +0 -9
  36. package/build/components/data-entry/date-selector/DateSelector.d.ts +0 -9
  37. package/build/components/data-entry/form/Form.d.ts +0 -11
  38. package/build/components/data-entry/form/FormResponse.d.ts +0 -11
  39. package/build/components/data-entry/form/index.d.ts +0 -3
  40. package/build/components/data-entry/image-input/ImageInput.d.ts +0 -13
  41. package/build/components/data-entry/image-input/ImageView.d.ts +0 -9
  42. package/build/components/data-entry/input/Input.d.ts +0 -13
  43. package/build/components/data-entry/input/InputResponse.d.ts +0 -10
  44. package/build/components/data-entry/input/index.d.ts +0 -3
  45. package/build/components/data-entry/multi-image-input/MultiImageInput.d.ts +0 -10
  46. package/build/components/data-entry/radio/Radio.d.ts +0 -9
  47. package/build/components/data-entry/rating/StarRatingInput.d.ts +0 -9
  48. package/build/components/data-entry/rating/index.d.ts +0 -2
  49. package/build/components/data-entry/select/Select.d.ts +0 -9
  50. package/build/components/data-entry/switch/Switch.d.ts +0 -4
  51. package/build/components/data-entry/text-area/TextArea.d.ts +0 -10
  52. package/build/components/feedback/backdrop/Backdrop.d.ts +0 -8
  53. package/build/components/feedback/skeleton/Skeleton.d.ts +0 -7
  54. package/build/components/feedback/toast/Toast.d.ts +0 -9
  55. package/build/components/feedback/transition/TransitionDropdown.d.ts +0 -9
  56. package/build/components/feedback/transition/TransitionFadeIn.d.ts +0 -9
  57. package/build/components/feedback/transition/index.d.ts +0 -7
  58. package/build/components/general/content-area/ContentArea.d.ts +0 -9
  59. package/build/components/general/footer-navbar/FooterNavbar.d.ts +0 -4
  60. package/build/components/general/header-navbar/HeaderNavbar.d.ts +0 -10
  61. package/build/components/general/sidebar/Sidebar.d.ts +0 -8
  62. package/build/components/general/sidebar/SidebarToggler.d.ts +0 -7
  63. package/build/components/general/sidebar/index.d.ts +0 -3
  64. package/build/components/layout/flex/FlexCol.d.ts +0 -9
  65. package/build/components/layout/flex/FlexRow.d.ts +0 -9
  66. package/build/components/layout/flex/index.d.ts +0 -7
  67. package/build/components/layout/grid/Grid.d.ts +0 -8
  68. package/build/components/layout/layout/Content.d.ts +0 -8
  69. package/build/components/layout/layout/Footer.d.ts +0 -7
  70. package/build/components/layout/layout/Header.d.ts +0 -8
  71. package/build/components/layout/layout/Layout.d.ts +0 -8
  72. package/build/components/layout/layout/Sider.d.ts +0 -9
  73. package/build/components/layout/layout/index.d.ts +0 -6
  74. package/build/components/navigation/breadcrumb/Breadcrumb.d.ts +0 -13
  75. package/build/components/navigation/breadcrumb/BreadcrumbItem.d.ts +0 -9
  76. package/build/components/navigation/breadcrumb/index.d.ts +0 -3
  77. package/build/components/navigation/header-nav/HeaderNav.d.ts +0 -25
  78. package/build/components/navigation/header-nav/HeaderNavGroup.d.ts +0 -13
  79. package/build/components/navigation/header-nav/HeaderNavItem.d.ts +0 -12
  80. package/build/components/navigation/header-nav/HeaderNavItemContext.d.ts +0 -9
  81. package/build/components/navigation/header-nav/HeaderNavItemTitle.d.ts +0 -10
  82. package/build/components/navigation/header-nav/index.d.ts +0 -5
  83. package/build/components/navigation/menu/MIContext.d.ts +0 -8
  84. package/build/components/navigation/menu/Menu.d.ts +0 -25
  85. package/build/components/navigation/menu/MenuGroup.d.ts +0 -11
  86. package/build/components/navigation/menu/MenuItem.d.ts +0 -17
  87. package/build/components/navigation/menu/MenuItemTitle.d.ts +0 -9
  88. package/build/components/navigation/menu/index.d.ts +0 -5
  89. package/build/components/other/modal/Modal.d.ts +0 -16
  90. package/build/components/surfaces/accordion/Accordion.d.ts +0 -12
  91. package/build/components/surfaces/card/Card.d.ts +0 -9
  92. package/build/components/surfaces/card/CardContent.d.ts +0 -9
  93. package/build/components/surfaces/card/CardFooter.d.ts +0 -9
  94. package/build/components/surfaces/card/CardHeader.d.ts +0 -11
  95. package/build/components/surfaces/card/index.d.ts +0 -5
  96. package/build/components/utils/AsyncComponentWrapper.d.ts +0 -11
  97. package/build/components/utils/ShowMore.d.ts +0 -8
  98. package/build/data/enums.d.ts +0 -48
  99. package/build/data/meta/currency.d.ts +0 -5
  100. package/build/data/styles.d.ts +0 -67
  101. package/build/data/test/test-data.d.ts +0 -20
  102. package/build/index.d.ts +0 -53
  103. package/build/index.es.js +0 -33190
  104. package/build/index.es.js.map +0 -1
  105. package/build/index.js +0 -33293
  106. package/build/index.js.map +0 -1
  107. package/build/utils/hooks/components/useModal.d.ts +0 -6
  108. package/build/utils/hooks/components/useSider.d.ts +0 -7
  109. package/build/utils/useClickOutside.d.ts +0 -5
@@ -0,0 +1,25 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react");function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}function r(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}})),e.default=t,Object.freeze(e)}var n=e(t),o=r(t);function i(t,e){void 0===e&&(e={});var r=e.insertAt;if(t&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}i('*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.bg-gradient-light-2{--tw-gradient-from:#f3f4f61a var(--tw-gradient-from-position);--tw-gradient-to:#f3f4f600 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to);--tw-gradient-to:#e5e7eb0d var(--tw-gradient-to-position);background-image:linear-gradient(to right,var(--tw-gradient-stops))}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.bottom-0{bottom:0}.left-0{left:0}.left-2{left:.5rem}.right-0{right:0}.right-2{right:.5rem}.right-3{right:.75rem}.top-0{top:0}.top-\\[-20px\\]{top:-20px}.top-\\[0\\.7px\\]{top:.7px}.top-\\[10px\\]{top:10px}.top-\\[16px\\]{top:16px}.top-full{top:100%}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.mx-1{margin-left:.25rem;margin-right:.25rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.mb-4{margin-bottom:1rem}.ml-3{margin-left:.75rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-4{margin-top:1rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-12{height:3rem}.h-16{height:4rem}.h-20{height:5rem}.h-4{height:1rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-\\[10px\\]{height:10px}.h-\\[130px\\]{height:130px}.h-\\[200px\\]{height:200px}.h-\\[20px\\]{height:20px}.h-\\[40px\\]{height:40px}.h-\\[50px\\]{height:50px}.h-\\[60px\\]{height:60px}.h-\\[90px\\]{height:90px}.h-fit{height:fit-content}.h-full{height:100%}.max-h-screen{max-height:100vh}.min-h-10{min-height:2.5rem}.min-h-3{min-height:.75rem}.min-h-4{min-height:1rem}.min-h-6{min-height:1.5rem}.min-h-8{min-height:2rem}.min-h-\\[50px\\]{min-height:50px}.min-h-screen{min-height:100vh}.w-11{width:2.75rem}.w-12{width:3rem}.w-16{width:4rem}.w-20{width:5rem}.w-4{width:1rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-\\[160px\\]{width:160px}.w-\\[300px\\]{width:300px}.w-\\[40px\\]{width:40px}.w-\\[60px\\]{width:60px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-screen{width:100vw}.min-w-10{min-width:2.5rem}.min-w-3{min-width:.75rem}.min-w-4{min-width:1rem}.min-w-5{min-width:1.25rem}.min-w-6{min-width:1.5rem}.min-w-8{min-width:2rem}.min-w-80{min-width:20rem}.min-w-full{min-width:100%}.max-w-\\[500px\\]{max-width:500px}.max-w-md{max-width:28rem}.flex-shrink-0{flex-shrink:0}.-translate-x-full{--tw-translate-x:-100%}.-translate-x-full,.translate-x-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x:0px}.translate-x-8{--tw-translate-x:2rem}.translate-x-8,.translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y:0px}.translate-y-6{--tw-translate-y:1.5rem}.rotate-180,.translate-y-6{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate:180deg}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.scale-100,.scale-95{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.appearance-none{appearance:none}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-10{gap:2.5rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-5{gap:1.25rem}.gap-\\[2px\\]{gap:2px}.gap-\\[3px\\]{gap:3px}.gap-\\[4px\\]{gap:4px}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-\\[3px\\]{border-width:3px}.border-b{border-bottom-width:1px}.border-l-2{border-left-width:2px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-\\[\\#0b6b05\\]{--tw-border-opacity:1;border-color:rgb(11 107 5/var(--tw-border-opacity,1))}.border-danger-500{--tw-border-opacity:1;border-color:rgb(220 53 69/var(--tw-border-opacity,1))}.border-dark-300\\/10{border-color:#575c5f1a}.border-dark-300\\/30{border-color:#575c5f4d}.border-dark-400{--tw-border-opacity:1;border-color:rgb(64 69 71/var(--tw-border-opacity,1))}.border-dark-500{--tw-border-opacity:1;border-color:rgb(33 37 41/var(--tw-border-opacity,1))}.border-dark-500\\/20{border-color:#21252933}.border-dark-500\\/40{border-color:#21252966}.border-dark-800{--tw-border-opacity:1;border-color:rgb(13 14 16/var(--tw-border-opacity,1))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.border-gray-50{--tw-border-opacity:1;border-color:rgb(249 250 251/var(--tw-border-opacity,1))}.border-gray-600{--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity,1))}.border-gray-700{--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity,1))}.border-gray-700\\/50{border-color:#37415180}.border-gray-800{--tw-border-opacity:1;border-color:rgb(31 41 55/var(--tw-border-opacity,1))}.border-gray-800\\/70{border-color:#1f2937b3}.border-info-500{--tw-border-opacity:1;border-color:rgb(13 202 240/var(--tw-border-opacity,1))}.border-info-800{--tw-border-opacity:1;border-color:rgb(5 76 96/var(--tw-border-opacity,1))}.border-light-500{--tw-border-opacity:1;border-color:rgb(248 249 250/var(--tw-border-opacity,1))}.border-light-800{--tw-border-opacity:1;border-color:rgb(98 98 99/var(--tw-border-opacity,1))}.border-primary-400{--tw-border-opacity:1;border-color:rgb(76 86 115/var(--tw-border-opacity,1))}.border-primary-500{--tw-border-opacity:1;border-color:rgb(0 4 15/var(--tw-border-opacity,1))}.border-primary-800{--tw-border-opacity:1;border-color:rgb(0 1 6/var(--tw-border-opacity,1))}.border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.border-red-800{--tw-border-opacity:1;border-color:rgb(153 27 27/var(--tw-border-opacity,1))}.border-secondary-500{--tw-border-opacity:1;border-color:rgb(76 217 0/var(--tw-border-opacity,1))}.border-secondary-800{--tw-border-opacity:1;border-color:rgb(16 122 0/var(--tw-border-opacity,1))}.border-secondary-800\\/40{border-color:#107a0066}.border-slate-700{--tw-border-opacity:1;border-color:rgb(51 65 85/var(--tw-border-opacity,1))}.border-success-500{--tw-border-opacity:1;border-color:rgb(25 135 84/var(--tw-border-opacity,1))}.border-success-800{--tw-border-opacity:1;border-color:rgb(10 50 31/var(--tw-border-opacity,1))}.border-transparent{border-color:#0000}.border-warning-500{--tw-border-opacity:1;border-color:rgb(255 193 7/var(--tw-border-opacity,1))}.border-yellow-800{--tw-border-opacity:1;border-color:rgb(133 77 14/var(--tw-border-opacity,1))}.border-l-dark-300{--tw-border-opacity:1;border-left-color:rgb(87 92 95/var(--tw-border-opacity,1))}.border-l-gray-400{--tw-border-opacity:1;border-left-color:rgb(156 163 175/var(--tw-border-opacity,1))}.border-l-gray-600{--tw-border-opacity:1;border-left-color:rgb(75 85 99/var(--tw-border-opacity,1))}.border-t-dark-400\\/80{border-top-color:#404547cc}.border-opacity-100{--tw-border-opacity:1}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.bg-black\\/75{background-color:#000000bf}.bg-dark-500\\/10{background-color:#2125291a}.bg-dark-500\\/40{background-color:#21252966}.bg-dark-600\\/20{background-color:#1a1d2033}.bg-dark-900\\/90{background-color:#070708e6}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.bg-gray-400{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity,1))}.bg-gray-600\\/20{background-color:#4b556333}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.bg-gray-800\\/30{background-color:#1f29374d}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity,1))}.bg-gray-900\\/80{background-color:#111827cc}.bg-green-700{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity,1))}.bg-green-700\\/20{background-color:#15803d33}.bg-info-600\\/20{background-color:#0aa0c033}.bg-light-600{--tw-bg-opacity:1;background-color:rgb(198 199 200/var(--tw-bg-opacity,1))}.bg-light-600\\/20{background-color:#c6c7c833}.bg-primary-300\\/10{background-color:#707a931a}.bg-primary-600\\/20{background-color:#00030d33}.bg-red-600\\/20{background-color:#dc262633}.bg-secondary-600\\/20{background-color:#17b80033}.bg-slate-900{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity,1))}.bg-slate-900\\/70{background-color:#0f172ab3}.bg-success-600\\/20{background-color:#146b4233}.bg-transparent{background-color:initial}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-yellow-400{--tw-bg-opacity:1;background-color:rgb(250 204 21/var(--tw-bg-opacity,1))}.bg-yellow-600\\/20{background-color:#ca8a0433}.bg-opacity-50{--tw-bg-opacity:0.5}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-danger-600{--tw-gradient-from:#af2a37 var(--tw-gradient-from-position);--tw-gradient-to:#af2a3700 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-dark-300\\/20{--tw-gradient-from:#575c5f33 var(--tw-gradient-from-position);--tw-gradient-to:#575c5f00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-dark-500\\/10{--tw-gradient-from:#2125291a var(--tw-gradient-from-position);--tw-gradient-to:#21252900 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-dark-600{--tw-gradient-from:#1a1d20 var(--tw-gradient-from-position);--tw-gradient-to:#1a1d2000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-green-700\\/10{--tw-gradient-from:#15803d1a var(--tw-gradient-from-position);--tw-gradient-to:#15803d00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-info-600{--tw-gradient-from:#0aa0c0 var(--tw-gradient-from-position);--tw-gradient-to:#0aa0c000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-light-600{--tw-gradient-from:#c6c7c8 var(--tw-gradient-from-position);--tw-gradient-to:#c6c7c800 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-primary-600{--tw-gradient-from:#00030d var(--tw-gradient-from-position);--tw-gradient-to:#00030d00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-secondary-600{--tw-gradient-from:#17b800 var(--tw-gradient-from-position);--tw-gradient-to:#17b80000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-secondary-900\\/10{--tw-gradient-from:#0a5a001a var(--tw-gradient-from-position);--tw-gradient-to:#0a5a0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-secondary-900\\/20{--tw-gradient-from:#0a5a0033 var(--tw-gradient-from-position);--tw-gradient-to:#0a5a0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-slate-800\\/70{--tw-gradient-from:#1e293bb3 var(--tw-gradient-from-position);--tw-gradient-to:#1e293b00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-slate-900\\/50{--tw-gradient-from:#0f172a80 var(--tw-gradient-from-position);--tw-gradient-to:#0f172a00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-slate-900\\/70{--tw-gradient-from:#0f172ab3 var(--tw-gradient-from-position);--tw-gradient-to:#0f172a00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-success-600{--tw-gradient-from:#146b42 var(--tw-gradient-from-position);--tw-gradient-to:#146b4200 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-warning-600{--tw-gradient-from:#cc9905 var(--tw-gradient-from-position);--tw-gradient-to:#cc990500 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-danger-500{--tw-gradient-to:#dc3545 var(--tw-gradient-to-position)}.to-dark-100\\/10{--tw-gradient-to:#868a8d1a var(--tw-gradient-to-position)}.to-dark-500{--tw-gradient-to:#212529 var(--tw-gradient-to-position)}.to-info-500{--tw-gradient-to:#0dcaf0 var(--tw-gradient-to-position)}.to-light-500{--tw-gradient-to:#f8f9fa var(--tw-gradient-to-position)}.to-primary-500{--tw-gradient-to:#00040f var(--tw-gradient-to-position)}.to-secondary-500{--tw-gradient-to:#4cd900 var(--tw-gradient-to-position)}.to-success-500{--tw-gradient-to:#198754 var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to:#0000 var(--tw-gradient-to-position)}.to-warning-500{--tw-gradient-to:#ffc107 var(--tw-gradient-to-position)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-1{padding:.25rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\\.5{padding-bottom:.375rem;padding-top:.375rem}.py-10{padding-bottom:2.5rem;padding-top:2.5rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pl-0{padding-left:0}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-poppins{font-family:Poppins,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-\\[10px\\]{font-size:10px}.text-\\[12px\\]{font-size:12px}.text-\\[13\\.5px\\]{font-size:13.5px}.text-\\[13px\\]{font-size:13px}.text-\\[14px\\]{font-size:14px}.text-\\[20px\\]{font-size:20px}.text-\\[60px\\]{font-size:60px}.text-\\[8px\\]{font-size:8px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-\\[20px\\]{line-height:20px}.leading-\\[25px\\]{line-height:25px}.leading-\\[28px\\]{line-height:28px}.leading-\\[40px\\]{line-height:40px}.leading-\\[50px\\]{line-height:50px}.leading-\\[70px\\]{line-height:70px}.leading-\\[80px\\]{line-height:80px}.leading-\\[90px\\]{line-height:90px}.text-blue-300{--tw-text-opacity:1;color:rgb(147 197 253/var(--tw-text-opacity,1))}.text-blue-400{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}.text-danger-500{--tw-text-opacity:1;color:rgb(220 53 69/var(--tw-text-opacity,1))}.text-dark-200{--tw-text-opacity:1;color:rgb(111 115 118/var(--tw-text-opacity,1))}.text-dark-50{--tw-text-opacity:1;color:rgb(158 161 164/var(--tw-text-opacity,1))}.text-dark-500{--tw-text-opacity:1;color:rgb(33 37 41/var(--tw-text-opacity,1))}.text-dark-900{--tw-text-opacity:1;color:rgb(7 7 8/var(--tw-text-opacity,1))}.text-gray-100{--tw-text-opacity:1;color:rgb(243 244 246/var(--tw-text-opacity,1))}.text-gray-200{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity,1))}.text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.text-gray-50{--tw-text-opacity:1;color:rgb(249 250 251/var(--tw-text-opacity,1))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity,1))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.text-info-500{--tw-text-opacity:1;color:rgb(13 202 240/var(--tw-text-opacity,1))}.text-info-800{--tw-text-opacity:1;color:rgb(5 76 96/var(--tw-text-opacity,1))}.text-light-500{--tw-text-opacity:1;color:rgb(248 249 250/var(--tw-text-opacity,1))}.text-light-800{--tw-text-opacity:1;color:rgb(98 98 99/var(--tw-text-opacity,1))}.text-primary-500{--tw-text-opacity:1;color:rgb(0 4 15/var(--tw-text-opacity,1))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.text-secondary-500{--tw-text-opacity:1;color:rgb(76 217 0/var(--tw-text-opacity,1))}.text-secondary-900{--tw-text-opacity:1;color:rgb(10 90 0/var(--tw-text-opacity,1))}.text-success-500{--tw-text-opacity:1;color:rgb(25 135 84/var(--tw-text-opacity,1))}.text-success-800{--tw-text-opacity:1;color:rgb(10 50 31/var(--tw-text-opacity,1))}.text-warning-500{--tw-text-opacity:1;color:rgb(255 193 7/var(--tw-text-opacity,1))}.text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity,1))}.text-yellow-600{--tw-text-opacity:1;color:rgb(202 138 4/var(--tw-text-opacity,1))}.text-yellow-700{--tw-text-opacity:1;color:rgb(161 98 7/var(--tw-text-opacity,1))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.placeholder-transparent::placeholder{color:#0000}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-80{opacity:.8}.shadow{--tw-shadow:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 #0000000d;--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.outline-none{outline:2px solid #0000;outline-offset:2px}.brightness-100{--tw-brightness:brightness(1)}.brightness-100,.brightness-110{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.brightness-110{--tw-brightness:brightness(1.1)}.brightness-125{--tw-brightness:brightness(1.25)}.brightness-125,.brightness-50{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.brightness-50{--tw-brightness:brightness(.5)}.brightness-75{--tw-brightness:brightness(.75)}.brightness-75,.grayscale{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale:grayscale(100%)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.duration-700{transition-duration:.7s}.duration-75{transition-duration:75ms}.duration-\\[200ms\\]{transition-duration:.2s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:left-\\[2px\\]:after{content:var(--tw-content);left:2px}.after\\:top-\\[2px\\]:after{content:var(--tw-content);top:2px}.after\\:h-5:after{content:var(--tw-content);height:1.25rem}.after\\:w-5:after{content:var(--tw-content);width:1.25rem}.after\\:rounded-full:after{border-radius:9999px;content:var(--tw-content)}.after\\:border:after{border-width:1px;content:var(--tw-content)}.after\\:border-gray-300:after{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1));content:var(--tw-content)}.after\\:bg-white:after{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));content:var(--tw-content)}.after\\:transition-all:after{content:var(--tw-content);transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.after\\:content-\\[\\\'\\\'\\]:after{--tw-content:"";content:var(--tw-content)}.checked\\:border-primary-400:checked{--tw-border-opacity:1;border-color:rgb(76 86 115/var(--tw-border-opacity,1))}.checked\\:bg-secondary-700:checked{--tw-bg-opacity:1;background-color:rgb(20 153 0/var(--tw-bg-opacity,1))}.checked\\:text-white:checked{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.checked\\:before\\:absolute:checked:before{content:var(--tw-content);position:absolute}.checked\\:before\\:left-0:checked:before{content:var(--tw-content);left:0}.checked\\:before\\:top-0:checked:before{content:var(--tw-content);top:0}.checked\\:before\\:flex:checked:before{content:var(--tw-content);display:flex}.checked\\:before\\:h-full:checked:before{content:var(--tw-content);height:100%}.checked\\:before\\:w-full:checked:before{content:var(--tw-content);width:100%}.checked\\:before\\:items-center:checked:before{align-items:center;content:var(--tw-content)}.checked\\:before\\:justify-center:checked:before{content:var(--tw-content);justify-content:center}.checked\\:before\\:text-xs:checked:before{content:var(--tw-content);font-size:.75rem;line-height:1rem}.checked\\:before\\:font-bold:checked:before{content:var(--tw-content);font-weight:700}.checked\\:before\\:text-white:checked:before{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1));content:var(--tw-content)}.checked\\:before\\:content-\\[\\\'\\2713\\\'\\]:checked:before{--tw-content:"✓";content:var(--tw-content)}.placeholder-shown\\:p-3:placeholder-shown{padding:.75rem}.hover\\:cursor-pointer:hover{cursor:pointer}.hover\\:border-solid:hover{border-style:solid}.hover\\:border-gray-600:hover{--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity,1))}.hover\\:border-secondary-600:hover{--tw-border-opacity:1;border-color:rgb(23 184 0/var(--tw-border-opacity,1))}.hover\\:bg-dark-400\\/30:hover{background-color:#4045474d}.hover\\:bg-dark-500\\/10:hover{background-color:#2125291a}.hover\\:bg-dark-500\\/40:hover{background-color:#21252966}.hover\\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.hover\\:bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.hover\\:bg-gray-900\\/80:hover{background-color:#111827cc}.hover\\:from-dark-500\\/20:hover{--tw-gradient-from:#21252933 var(--tw-gradient-from-position);--tw-gradient-to:#21252900 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.hover\\:text-gray-600:hover{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\\:shadow-\\[\\#167d0f\\]\\/50:hover{--tw-shadow-color:#167d0f80;--tw-shadow:var(--tw-shadow-colored)}.hover\\:brightness-100:hover{--tw-brightness:brightness(1)}.hover\\:brightness-100:hover,.hover\\:brightness-110:hover{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\\:brightness-110:hover{--tw-brightness:brightness(1.1)}.hover\\:brightness-125:hover{--tw-brightness:brightness(1.25);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\\:resize-none:focus{resize:none}.focus\\:border-secondary-500:focus{--tw-border-opacity:1;border-color:rgb(76 217 0/var(--tw-border-opacity,1))}.focus\\:outline-none:focus{outline:2px solid #0000;outline-offset:2px}.group:hover .group-hover\\:text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.group:hover .group-hover\\:text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.peer:checked~.peer-checked\\:bg-secondary-600{--tw-bg-opacity:1;background-color:rgb(23 184 0/var(--tw-bg-opacity,1))}.peer:checked~.peer-checked\\:after\\:translate-x-full:after{--tw-translate-x:100%;content:var(--tw-content);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:checked~.peer-checked\\:after\\:border-white:after{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity,1));content:var(--tw-content)}.peer:placeholder-shown~.peer-placeholder-shown\\:top-3{top:.75rem}.peer:placeholder-shown~.peer-placeholder-shown\\:text-base{font-size:1rem;line-height:1.5rem}.peer:focus~.peer-focus\\:outline-none{outline:2px solid #0000;outline-offset:2px}.dark\\:border-dark-200:is(.dark *){--tw-border-opacity:1;border-color:rgb(111 115 118/var(--tw-border-opacity,1))}.dark\\:border-dark-300\\/50:is(.dark *){border-color:#575c5f80}.dark\\:border-primary-400:is(.dark *){--tw-border-opacity:1;border-color:rgb(76 86 115/var(--tw-border-opacity,1))}.dark\\:border-secondary-500:is(.dark *){--tw-border-opacity:1;border-color:rgb(76 217 0/var(--tw-border-opacity,1))}.dark\\:border-secondary-600\\/10:is(.dark *){border-color:#17b8001a}.dark\\:border-secondary-800\\/40:is(.dark *){border-color:#107a0066}.dark\\:border-secondary-900\\/20:is(.dark *){border-color:#0a5a0033}.dark\\:bg-dark-100:is(.dark *){--tw-bg-opacity:1;background-color:rgb(134 138 141/var(--tw-bg-opacity,1))}.dark\\:bg-dark-500:is(.dark *){--tw-bg-opacity:1;background-color:rgb(33 37 41/var(--tw-bg-opacity,1))}.dark\\:bg-gray-600:is(.dark *){--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity,1))}.dark\\:bg-gray-700:is(.dark *){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.dark\\:bg-gray-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.dark\\:bg-green-700\\/20:is(.dark *){background-color:#15803d33}.dark\\:bg-primary-300\\/10:is(.dark *){background-color:#707a931a}.dark\\:from-green-700\\/10:is(.dark *){--tw-gradient-from:#15803d1a var(--tw-gradient-from-position);--tw-gradient-to:#15803d00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.dark\\:from-light-400\\/10:is(.dark *){--tw-gradient-from:#fbfbfb1a var(--tw-gradient-from-position);--tw-gradient-to:#fbfbfb00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.dark\\:from-secondary-900\\/10:is(.dark *){--tw-gradient-from:#0a5a001a var(--tw-gradient-from-position);--tw-gradient-to:#0a5a0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.dark\\:to-light-400\\/5:is(.dark *){--tw-gradient-to:#fbfbfb0d var(--tw-gradient-to-position)}.dark\\:text-dark-100:is(.dark *){--tw-text-opacity:1;color:rgb(134 138 141/var(--tw-text-opacity,1))}.dark\\:text-gray-200:is(.dark *){--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity,1))}.dark\\:text-secondary-600:is(.dark *){--tw-text-opacity:1;color:rgb(23 184 0/var(--tw-text-opacity,1))}.hover\\:dark\\:bg-dark-300\\/50:is(.dark *):hover{background-color:#575c5f80}.hover\\:dark\\:bg-green-700\\/20:is(.dark *):hover{background-color:#15803d33}.hover\\:dark\\:from-secondary-900\\/20:is(.dark *):hover{--tw-gradient-from:#0a5a0033 var(--tw-gradient-from-position);--tw-gradient-to:#0a5a0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}@media (min-width:768px){.md\\:pl-\\[300px\\]{padding-left:300px}}@media (min-width:1024px){.lg\\:px-\\[150px\\]{padding-left:150px;padding-right:150px}}');i('*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.theme-bg-md{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(198 199 200/var(--tw-bg-opacity,1));color:rgb(64 69 71/var(--tw-text-opacity,1))}.theme-bg-md:is(.dark *){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(13 14 16/var(--tw-bg-opacity,1));color:rgb(198 199 200/var(--tw-text-opacity,1))}.theme-bg-sm{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(248 249 250/var(--tw-bg-opacity,1));color:rgb(64 69 71/var(--tw-text-opacity,1))}.theme-bg-sm:is(.dark *){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(20 22 24/var(--tw-bg-opacity,1));color:rgb(198 199 200/var(--tw-text-opacity,1))}.theme-text-md{--tw-text-opacity:1;color:rgb(26 29 32/var(--tw-text-opacity,1))}.theme-text-md:is(.dark *){--tw-text-opacity:1;color:rgb(248 249 250/var(--tw-text-opacity,1))}.theme-text-sm{--tw-text-opacity:1;color:rgb(87 92 95/var(--tw-text-opacity,1))}.theme-text-sm:is(.dark *){--tw-text-opacity:1;color:rgb(148 149 150/var(--tw-text-opacity,1))}.theme-shadow-lg{--tw-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);--tw-shadow-color:#21252933;--tw-shadow:var(--tw-shadow-colored);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.theme-shadow-lg:is(.dark *){--tw-shadow-color:#107a001a;--tw-shadow:var(--tw-shadow-colored)}.theme-gradient-to-r-sm{--tw-gradient-from:#21252933 var(--tw-gradient-from-position);--tw-gradient-to:#21252900 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to);background-image:linear-gradient(to right,var(--tw-gradient-stops))}.theme-gradient-to-r-sm:is(.dark *){--tw-gradient-from:#0a5a0033 var(--tw-gradient-from-position);--tw-gradient-to:#0a5a0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.theme-gradient-to-r-xs{--tw-gradient-from:#2125291a var(--tw-gradient-from-position);--tw-gradient-to:#21252900 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to);background-image:linear-gradient(to right,var(--tw-gradient-stops))}.theme-gradient-to-r-xs:is(.dark *){--tw-gradient-from:#0a5a001a var(--tw-gradient-from-position);--tw-gradient-to:#0a5a0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.theme-border-md{border-color:#40454780}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.bottom-0{bottom:0}.left-0{left:0}.left-2{left:.5rem}.right-0{right:0}.right-2{right:.5rem}.right-3{right:.75rem}.top-0{top:0}.top-\\[-20px\\]{top:-20px}.top-\\[0\\.7px\\]{top:.7px}.top-\\[10px\\]{top:10px}.top-\\[16px\\]{top:16px}.top-full{top:100%}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.mx-1{margin-left:.25rem;margin-right:.25rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.mb-4{margin-bottom:1rem}.ml-3{margin-left:.75rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-4{margin-top:1rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-12{height:3rem}.h-16{height:4rem}.h-20{height:5rem}.h-4{height:1rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-\\[10px\\]{height:10px}.h-\\[130px\\]{height:130px}.h-\\[200px\\]{height:200px}.h-\\[20px\\]{height:20px}.h-\\[40px\\]{height:40px}.h-\\[50px\\]{height:50px}.h-\\[60px\\]{height:60px}.h-\\[90px\\]{height:90px}.h-fit{height:fit-content}.h-full{height:100%}.max-h-screen{max-height:100vh}.min-h-10{min-height:2.5rem}.min-h-3{min-height:.75rem}.min-h-4{min-height:1rem}.min-h-6{min-height:1.5rem}.min-h-8{min-height:2rem}.min-h-\\[50px\\]{min-height:50px}.min-h-screen{min-height:100vh}.w-11{width:2.75rem}.w-12{width:3rem}.w-16{width:4rem}.w-20{width:5rem}.w-4{width:1rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-\\[160px\\]{width:160px}.w-\\[300px\\]{width:300px}.w-\\[40px\\]{width:40px}.w-\\[60px\\]{width:60px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-screen{width:100vw}.min-w-10{min-width:2.5rem}.min-w-3{min-width:.75rem}.min-w-4{min-width:1rem}.min-w-5{min-width:1.25rem}.min-w-6{min-width:1.5rem}.min-w-8{min-width:2rem}.min-w-80{min-width:20rem}.min-w-full{min-width:100%}.max-w-\\[500px\\]{max-width:500px}.max-w-md{max-width:28rem}.flex-shrink-0{flex-shrink:0}.-translate-x-full{--tw-translate-x:-100%}.-translate-x-full,.translate-x-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x:0px}.translate-x-8{--tw-translate-x:2rem}.translate-x-8,.translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y:0px}.translate-y-6{--tw-translate-y:1.5rem}.rotate-180,.translate-y-6{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate:180deg}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.scale-100,.scale-95{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.appearance-none{appearance:none}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-10{gap:2.5rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-5{gap:1.25rem}.gap-\\[2px\\]{gap:2px}.gap-\\[3px\\]{gap:3px}.gap-\\[4px\\]{gap:4px}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-\\[3px\\]{border-width:3px}.border-b{border-bottom-width:1px}.border-l-2{border-left-width:2px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-\\[\\#0b6b05\\]{--tw-border-opacity:1;border-color:rgb(11 107 5/var(--tw-border-opacity,1))}.border-danger-500{--tw-border-opacity:1;border-color:rgb(220 53 69/var(--tw-border-opacity,1))}.border-dark-300\\/10{border-color:#575c5f1a}.border-dark-300\\/30{border-color:#575c5f4d}.border-dark-400{--tw-border-opacity:1;border-color:rgb(64 69 71/var(--tw-border-opacity,1))}.border-dark-500{--tw-border-opacity:1;border-color:rgb(33 37 41/var(--tw-border-opacity,1))}.border-dark-500\\/20{border-color:#21252933}.border-dark-500\\/40{border-color:#21252966}.border-dark-800{--tw-border-opacity:1;border-color:rgb(13 14 16/var(--tw-border-opacity,1))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.border-gray-50{--tw-border-opacity:1;border-color:rgb(249 250 251/var(--tw-border-opacity,1))}.border-gray-600{--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity,1))}.border-gray-700{--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity,1))}.border-gray-700\\/50{border-color:#37415180}.border-gray-800{--tw-border-opacity:1;border-color:rgb(31 41 55/var(--tw-border-opacity,1))}.border-gray-800\\/70{border-color:#1f2937b3}.border-info-500{--tw-border-opacity:1;border-color:rgb(13 202 240/var(--tw-border-opacity,1))}.border-info-800{--tw-border-opacity:1;border-color:rgb(5 76 96/var(--tw-border-opacity,1))}.border-light-500{--tw-border-opacity:1;border-color:rgb(248 249 250/var(--tw-border-opacity,1))}.border-light-800{--tw-border-opacity:1;border-color:rgb(98 98 99/var(--tw-border-opacity,1))}.border-primary-400{--tw-border-opacity:1;border-color:rgb(76 86 115/var(--tw-border-opacity,1))}.border-primary-500{--tw-border-opacity:1;border-color:rgb(0 4 15/var(--tw-border-opacity,1))}.border-primary-800{--tw-border-opacity:1;border-color:rgb(0 1 6/var(--tw-border-opacity,1))}.border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.border-red-800{--tw-border-opacity:1;border-color:rgb(153 27 27/var(--tw-border-opacity,1))}.border-secondary-500{--tw-border-opacity:1;border-color:rgb(76 217 0/var(--tw-border-opacity,1))}.border-secondary-800{--tw-border-opacity:1;border-color:rgb(16 122 0/var(--tw-border-opacity,1))}.border-secondary-800\\/40{border-color:#107a0066}.border-slate-700{--tw-border-opacity:1;border-color:rgb(51 65 85/var(--tw-border-opacity,1))}.border-success-500{--tw-border-opacity:1;border-color:rgb(25 135 84/var(--tw-border-opacity,1))}.border-success-800{--tw-border-opacity:1;border-color:rgb(10 50 31/var(--tw-border-opacity,1))}.border-transparent{border-color:#0000}.border-warning-500{--tw-border-opacity:1;border-color:rgb(255 193 7/var(--tw-border-opacity,1))}.border-yellow-800{--tw-border-opacity:1;border-color:rgb(133 77 14/var(--tw-border-opacity,1))}.border-l-dark-300{--tw-border-opacity:1;border-left-color:rgb(87 92 95/var(--tw-border-opacity,1))}.border-l-gray-400{--tw-border-opacity:1;border-left-color:rgb(156 163 175/var(--tw-border-opacity,1))}.border-l-gray-600{--tw-border-opacity:1;border-left-color:rgb(75 85 99/var(--tw-border-opacity,1))}.border-t-dark-400\\/80{border-top-color:#404547cc}.border-opacity-100{--tw-border-opacity:1}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.bg-black\\/75{background-color:#000000bf}.bg-dark-500\\/10{background-color:#2125291a}.bg-dark-500\\/40{background-color:#21252966}.bg-dark-600\\/20{background-color:#1a1d2033}.bg-dark-900\\/90{background-color:#070708e6}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.bg-gray-400{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity,1))}.bg-gray-600\\/20{background-color:#4b556333}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.bg-gray-800\\/30{background-color:#1f29374d}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity,1))}.bg-gray-900\\/80{background-color:#111827cc}.bg-green-700{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity,1))}.bg-green-700\\/20{background-color:#15803d33}.bg-info-600\\/20{background-color:#0aa0c033}.bg-light-600{--tw-bg-opacity:1;background-color:rgb(198 199 200/var(--tw-bg-opacity,1))}.bg-light-600\\/20{background-color:#c6c7c833}.bg-primary-300\\/10{background-color:#707a931a}.bg-primary-600\\/20{background-color:#00030d33}.bg-red-600\\/20{background-color:#dc262633}.bg-secondary-600\\/20{background-color:#17b80033}.bg-slate-900{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity,1))}.bg-slate-900\\/70{background-color:#0f172ab3}.bg-success-600\\/20{background-color:#146b4233}.bg-transparent{background-color:initial}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-yellow-400{--tw-bg-opacity:1;background-color:rgb(250 204 21/var(--tw-bg-opacity,1))}.bg-yellow-600\\/20{background-color:#ca8a0433}.bg-opacity-50{--tw-bg-opacity:0.5}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-danger-600{--tw-gradient-from:#af2a37 var(--tw-gradient-from-position);--tw-gradient-to:#af2a3700 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-dark-300\\/20{--tw-gradient-from:#575c5f33 var(--tw-gradient-from-position);--tw-gradient-to:#575c5f00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-dark-500\\/10{--tw-gradient-from:#2125291a var(--tw-gradient-from-position);--tw-gradient-to:#21252900 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-dark-600{--tw-gradient-from:#1a1d20 var(--tw-gradient-from-position);--tw-gradient-to:#1a1d2000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-green-700\\/10{--tw-gradient-from:#15803d1a var(--tw-gradient-from-position);--tw-gradient-to:#15803d00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-info-600{--tw-gradient-from:#0aa0c0 var(--tw-gradient-from-position);--tw-gradient-to:#0aa0c000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-light-600{--tw-gradient-from:#c6c7c8 var(--tw-gradient-from-position);--tw-gradient-to:#c6c7c800 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-primary-600{--tw-gradient-from:#00030d var(--tw-gradient-from-position);--tw-gradient-to:#00030d00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-secondary-600{--tw-gradient-from:#17b800 var(--tw-gradient-from-position);--tw-gradient-to:#17b80000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-secondary-900\\/10{--tw-gradient-from:#0a5a001a var(--tw-gradient-from-position);--tw-gradient-to:#0a5a0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-secondary-900\\/20{--tw-gradient-from:#0a5a0033 var(--tw-gradient-from-position);--tw-gradient-to:#0a5a0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-slate-800\\/70{--tw-gradient-from:#1e293bb3 var(--tw-gradient-from-position);--tw-gradient-to:#1e293b00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-slate-900\\/50{--tw-gradient-from:#0f172a80 var(--tw-gradient-from-position);--tw-gradient-to:#0f172a00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-slate-900\\/70{--tw-gradient-from:#0f172ab3 var(--tw-gradient-from-position);--tw-gradient-to:#0f172a00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-success-600{--tw-gradient-from:#146b42 var(--tw-gradient-from-position);--tw-gradient-to:#146b4200 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-warning-600{--tw-gradient-from:#cc9905 var(--tw-gradient-from-position);--tw-gradient-to:#cc990500 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-danger-500{--tw-gradient-to:#dc3545 var(--tw-gradient-to-position)}.to-dark-100\\/10{--tw-gradient-to:#868a8d1a var(--tw-gradient-to-position)}.to-dark-500{--tw-gradient-to:#212529 var(--tw-gradient-to-position)}.to-info-500{--tw-gradient-to:#0dcaf0 var(--tw-gradient-to-position)}.to-light-500{--tw-gradient-to:#f8f9fa var(--tw-gradient-to-position)}.to-primary-500{--tw-gradient-to:#00040f var(--tw-gradient-to-position)}.to-secondary-500{--tw-gradient-to:#4cd900 var(--tw-gradient-to-position)}.to-success-500{--tw-gradient-to:#198754 var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to:#0000 var(--tw-gradient-to-position)}.to-warning-500{--tw-gradient-to:#ffc107 var(--tw-gradient-to-position)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-1{padding:.25rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\\.5{padding-bottom:.375rem;padding-top:.375rem}.py-10{padding-bottom:2.5rem;padding-top:2.5rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pl-0{padding-left:0}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-poppins{font-family:Poppins,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-\\[10px\\]{font-size:10px}.text-\\[12px\\]{font-size:12px}.text-\\[13\\.5px\\]{font-size:13.5px}.text-\\[13px\\]{font-size:13px}.text-\\[14px\\]{font-size:14px}.text-\\[20px\\]{font-size:20px}.text-\\[60px\\]{font-size:60px}.text-\\[8px\\]{font-size:8px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-\\[20px\\]{line-height:20px}.leading-\\[25px\\]{line-height:25px}.leading-\\[28px\\]{line-height:28px}.leading-\\[40px\\]{line-height:40px}.leading-\\[50px\\]{line-height:50px}.leading-\\[70px\\]{line-height:70px}.leading-\\[80px\\]{line-height:80px}.leading-\\[90px\\]{line-height:90px}.text-blue-300{--tw-text-opacity:1;color:rgb(147 197 253/var(--tw-text-opacity,1))}.text-blue-400{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}.text-danger-500{--tw-text-opacity:1;color:rgb(220 53 69/var(--tw-text-opacity,1))}.text-dark-200{--tw-text-opacity:1;color:rgb(111 115 118/var(--tw-text-opacity,1))}.text-dark-50{--tw-text-opacity:1;color:rgb(158 161 164/var(--tw-text-opacity,1))}.text-dark-500{--tw-text-opacity:1;color:rgb(33 37 41/var(--tw-text-opacity,1))}.text-dark-900{--tw-text-opacity:1;color:rgb(7 7 8/var(--tw-text-opacity,1))}.text-gray-100{--tw-text-opacity:1;color:rgb(243 244 246/var(--tw-text-opacity,1))}.text-gray-200{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity,1))}.text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.text-gray-50{--tw-text-opacity:1;color:rgb(249 250 251/var(--tw-text-opacity,1))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity,1))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.text-info-500{--tw-text-opacity:1;color:rgb(13 202 240/var(--tw-text-opacity,1))}.text-info-800{--tw-text-opacity:1;color:rgb(5 76 96/var(--tw-text-opacity,1))}.text-light-500{--tw-text-opacity:1;color:rgb(248 249 250/var(--tw-text-opacity,1))}.text-light-800{--tw-text-opacity:1;color:rgb(98 98 99/var(--tw-text-opacity,1))}.text-primary-500{--tw-text-opacity:1;color:rgb(0 4 15/var(--tw-text-opacity,1))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.text-secondary-500{--tw-text-opacity:1;color:rgb(76 217 0/var(--tw-text-opacity,1))}.text-secondary-900{--tw-text-opacity:1;color:rgb(10 90 0/var(--tw-text-opacity,1))}.text-success-500{--tw-text-opacity:1;color:rgb(25 135 84/var(--tw-text-opacity,1))}.text-success-800{--tw-text-opacity:1;color:rgb(10 50 31/var(--tw-text-opacity,1))}.text-warning-500{--tw-text-opacity:1;color:rgb(255 193 7/var(--tw-text-opacity,1))}.text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity,1))}.text-yellow-600{--tw-text-opacity:1;color:rgb(202 138 4/var(--tw-text-opacity,1))}.text-yellow-700{--tw-text-opacity:1;color:rgb(161 98 7/var(--tw-text-opacity,1))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.placeholder-transparent::placeholder{color:#0000}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-80{opacity:.8}.shadow{--tw-shadow:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 #0000000d;--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.outline-none{outline:2px solid #0000;outline-offset:2px}.brightness-100{--tw-brightness:brightness(1)}.brightness-100,.brightness-110{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.brightness-110{--tw-brightness:brightness(1.1)}.brightness-125{--tw-brightness:brightness(1.25)}.brightness-125,.brightness-50{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.brightness-50{--tw-brightness:brightness(.5)}.brightness-75{--tw-brightness:brightness(.75)}.brightness-75,.grayscale{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale:grayscale(100%)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.duration-700{transition-duration:.7s}.duration-75{transition-duration:75ms}.duration-\\[200ms\\]{transition-duration:.2s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.placeholder\\:theme-text-sm::placeholder{--tw-text-opacity:1;color:rgb(87 92 95/var(--tw-text-opacity,1))}.placeholder\\:theme-text-sm:is(.dark *)::placeholder{--tw-text-opacity:1;color:rgb(148 149 150/var(--tw-text-opacity,1))}.odd\\:theme-bg-sm:nth-child(odd){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(248 249 250/var(--tw-bg-opacity,1));color:rgb(64 69 71/var(--tw-text-opacity,1))}.odd\\:theme-bg-sm:nth-child(odd):is(.dark *){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(20 22 24/var(--tw-bg-opacity,1));color:rgb(198 199 200/var(--tw-text-opacity,1))}.even\\:theme-bg-md:nth-child(2n){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(198 199 200/var(--tw-bg-opacity,1));color:rgb(64 69 71/var(--tw-text-opacity,1))}.even\\:theme-bg-md:nth-child(2n):is(.dark *){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(13 14 16/var(--tw-bg-opacity,1));color:rgb(198 199 200/var(--tw-text-opacity,1))}.hover\\:theme-gradient-to-r-sm:hover{--tw-gradient-from:#21252933 var(--tw-gradient-from-position);--tw-gradient-to:#21252900 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to);background-image:linear-gradient(to right,var(--tw-gradient-stops))}.hover\\:theme-gradient-to-r-sm:hover:is(.dark *){--tw-gradient-from:#0a5a0033 var(--tw-gradient-from-position);--tw-gradient-to:#0a5a0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:left-\\[2px\\]:after{content:var(--tw-content);left:2px}.after\\:top-\\[2px\\]:after{content:var(--tw-content);top:2px}.after\\:h-5:after{content:var(--tw-content);height:1.25rem}.after\\:w-5:after{content:var(--tw-content);width:1.25rem}.after\\:rounded-full:after{border-radius:9999px;content:var(--tw-content)}.after\\:border:after{border-width:1px;content:var(--tw-content)}.after\\:border-gray-300:after{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1));content:var(--tw-content)}.after\\:bg-white:after{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));content:var(--tw-content)}.after\\:transition-all:after{content:var(--tw-content);transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.after\\:content-\\[\\\'\\\'\\]:after{--tw-content:"";content:var(--tw-content)}.checked\\:border-primary-400:checked{--tw-border-opacity:1;border-color:rgb(76 86 115/var(--tw-border-opacity,1))}.checked\\:bg-secondary-700:checked{--tw-bg-opacity:1;background-color:rgb(20 153 0/var(--tw-bg-opacity,1))}.checked\\:text-white:checked{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.checked\\:before\\:absolute:checked:before{content:var(--tw-content);position:absolute}.checked\\:before\\:left-0:checked:before{content:var(--tw-content);left:0}.checked\\:before\\:top-0:checked:before{content:var(--tw-content);top:0}.checked\\:before\\:flex:checked:before{content:var(--tw-content);display:flex}.checked\\:before\\:h-full:checked:before{content:var(--tw-content);height:100%}.checked\\:before\\:w-full:checked:before{content:var(--tw-content);width:100%}.checked\\:before\\:items-center:checked:before{align-items:center;content:var(--tw-content)}.checked\\:before\\:justify-center:checked:before{content:var(--tw-content);justify-content:center}.checked\\:before\\:text-xs:checked:before{content:var(--tw-content);font-size:.75rem;line-height:1rem}.checked\\:before\\:font-bold:checked:before{content:var(--tw-content);font-weight:700}.checked\\:before\\:text-white:checked:before{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1));content:var(--tw-content)}.checked\\:before\\:content-\\[\\\'\\2713\\\'\\]:checked:before{--tw-content:"✓";content:var(--tw-content)}.placeholder-shown\\:p-3:placeholder-shown{padding:.75rem}.hover\\:cursor-pointer:hover{cursor:pointer}.hover\\:border-solid:hover{border-style:solid}.hover\\:border-gray-600:hover{--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity,1))}.hover\\:border-secondary-600:hover{--tw-border-opacity:1;border-color:rgb(23 184 0/var(--tw-border-opacity,1))}.hover\\:bg-dark-400\\/30:hover{background-color:#4045474d}.hover\\:bg-dark-500\\/10:hover{background-color:#2125291a}.hover\\:bg-dark-500\\/40:hover{background-color:#21252966}.hover\\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.hover\\:bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.hover\\:bg-gray-900\\/80:hover{background-color:#111827cc}.hover\\:from-dark-500\\/20:hover{--tw-gradient-from:#21252933 var(--tw-gradient-from-position);--tw-gradient-to:#21252900 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.hover\\:text-gray-600:hover{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\\:shadow-\\[\\#167d0f\\]\\/50:hover{--tw-shadow-color:#167d0f80;--tw-shadow:var(--tw-shadow-colored)}.hover\\:brightness-100:hover{--tw-brightness:brightness(1)}.hover\\:brightness-100:hover,.hover\\:brightness-110:hover{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\\:brightness-110:hover{--tw-brightness:brightness(1.1)}.hover\\:brightness-125:hover{--tw-brightness:brightness(1.25);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\\:resize-none:focus{resize:none}.focus\\:border-secondary-500:focus{--tw-border-opacity:1;border-color:rgb(76 217 0/var(--tw-border-opacity,1))}.focus\\:outline-none:focus{outline:2px solid #0000;outline-offset:2px}.group:hover .group-hover\\:text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.group:hover .group-hover\\:text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.peer:checked~.peer-checked\\:bg-secondary-600{--tw-bg-opacity:1;background-color:rgb(23 184 0/var(--tw-bg-opacity,1))}.peer:checked~.peer-checked\\:after\\:translate-x-full:after{--tw-translate-x:100%;content:var(--tw-content);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:checked~.peer-checked\\:after\\:border-white:after{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity,1));content:var(--tw-content)}.peer:placeholder-shown~.peer-placeholder-shown\\:top-3{top:.75rem}.peer:placeholder-shown~.peer-placeholder-shown\\:text-base{font-size:1rem;line-height:1.5rem}.peer:focus~.peer-focus\\:outline-none{outline:2px solid #0000;outline-offset:2px}.dark\\:border-dark-200:is(.dark *){--tw-border-opacity:1;border-color:rgb(111 115 118/var(--tw-border-opacity,1))}.dark\\:border-dark-300\\/50:is(.dark *){border-color:#575c5f80}.dark\\:border-primary-400:is(.dark *){--tw-border-opacity:1;border-color:rgb(76 86 115/var(--tw-border-opacity,1))}.dark\\:border-secondary-500:is(.dark *){--tw-border-opacity:1;border-color:rgb(76 217 0/var(--tw-border-opacity,1))}.dark\\:border-secondary-600\\/10:is(.dark *){border-color:#17b8001a}.dark\\:border-secondary-800\\/40:is(.dark *){border-color:#107a0066}.dark\\:border-secondary-900\\/20:is(.dark *){border-color:#0a5a0033}.dark\\:bg-dark-100:is(.dark *){--tw-bg-opacity:1;background-color:rgb(134 138 141/var(--tw-bg-opacity,1))}.dark\\:bg-dark-500:is(.dark *){--tw-bg-opacity:1;background-color:rgb(33 37 41/var(--tw-bg-opacity,1))}.dark\\:bg-gray-600:is(.dark *){--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity,1))}.dark\\:bg-gray-700:is(.dark *){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.dark\\:bg-gray-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.dark\\:bg-green-700\\/20:is(.dark *){background-color:#15803d33}.dark\\:bg-primary-300\\/10:is(.dark *){background-color:#707a931a}.dark\\:from-green-700\\/10:is(.dark *){--tw-gradient-from:#15803d1a var(--tw-gradient-from-position);--tw-gradient-to:#15803d00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.dark\\:from-light-400\\/10:is(.dark *){--tw-gradient-from:#fbfbfb1a var(--tw-gradient-from-position);--tw-gradient-to:#fbfbfb00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.dark\\:from-secondary-900\\/10:is(.dark *){--tw-gradient-from:#0a5a001a var(--tw-gradient-from-position);--tw-gradient-to:#0a5a0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.dark\\:to-light-400\\/5:is(.dark *){--tw-gradient-to:#fbfbfb0d var(--tw-gradient-to-position)}.dark\\:text-dark-100:is(.dark *){--tw-text-opacity:1;color:rgb(134 138 141/var(--tw-text-opacity,1))}.dark\\:text-gray-200:is(.dark *){--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity,1))}.dark\\:text-secondary-600:is(.dark *){--tw-text-opacity:1;color:rgb(23 184 0/var(--tw-text-opacity,1))}.hover\\:dark\\:bg-dark-300\\/50:is(.dark *):hover{background-color:#575c5f80}.hover\\:dark\\:bg-green-700\\/20:is(.dark *):hover{background-color:#15803d33}.hover\\:dark\\:from-secondary-900\\/20:is(.dark *):hover{--tw-gradient-from:#0a5a0033 var(--tw-gradient-from-position);--tw-gradient-to:#0a5a0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}@media (min-width:768px){.md\\:pl-\\[300px\\]{padding-left:300px}}@media (min-width:1024px){.lg\\:px-\\[150px\\]{padding-left:150px;padding-right:150px}}');var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(t){var e={exports:{}};return t(e,e.exports),e.exports
2
+ /*!
3
+ Copyright (c) 2018 Jed Watson.
4
+ Licensed under the MIT License (MIT), see
5
+ http://jedwatson.github.io/classnames
6
+ */}var c=s((function(t){!function(){var e={}.hasOwnProperty;function r(){for(var t="",e=0;e<arguments.length;e++){var r=arguments[e];r&&(t=o(t,n(r)))}return t}function n(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return r.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var n="";for(var i in t)e.call(t,i)&&t[i]&&(n=o(n,i));return n}function o(t,e){return e?t?t+" "+e:t+e:t}t.exports?(r.default=r,t.exports=r):window.classNames=r}()})),l={default:"bg-gray-200 text-gray-800 hover:bg-gray-300",primary:"bg-gradient-to-r from-primary-600 to-primary-500 text-gray-50",secondary:"bg-gradient-to-r from-secondary-600 to-secondary-500 text-gray-50",success:"bg-gradient-to-r from-success-600 to-success-500 text-gray-50",danger:"bg-gradient-to-r from-danger-600 to-danger-500 text-gray-50",warning:"bg-gradient-to-r from-warning-600 to-warning-500 text-gray-50",info:"bg-gradient-to-r from-info-600 to-info-500 text-gray-50",light:"bg-gradient-to-r from-light-600 to-light-500 text-gray-900",dark:"bg-gradient-to-r from-dark-600 to-dark-500 text-gray-50"},u={default:"bg-gray-600/20 border border-gray-800 text-gray-900",primary:"bg-primary-600/20 border border-primary-800 text-primary-500",secondary:"bg-secondary-600/20 border border-secondary-800 text-secondary-900",success:"bg-success-600/20 border border-success-800 text-success-800",danger:"bg-red-600/20 border border-red-800 text-red-500",warning:"bg-yellow-600/20 border border-yellow-800 text-yellow-700",info:"bg-info-600/20 border border-info-800 text-info-800",light:"bg-light-600/20 border border-light-800 text-light-800",dark:"bg-dark-600/20 border border-dark-800 text-dark-500"},d={default:"theme-text-md",primary:"text-blue-500",secondary:"text-gray-500",success:"text-green-500",danger:"text-red-500",warning:"text-yellow-500",info:"text-blue-400",light:"text-gray-300",dark:"text-gray-900"},f={default:"bg-transparent border border-gray-300 text-gray-800 hover:bg-gray-100",primary:"bg-transparent border border-primary-500 text-primary-500",secondary:"bg-transparent border border-secondary-500 text-secondary-500",success:"bg-transparent border border-success-500 text-success-500",danger:"bg-transparent border border-danger-500 text-danger-500",warning:"bg-transparent border border-warning-500 text-warning-500",info:"bg-transparent border border-info-500 text-info-500",light:"bg-transparent border border-light-500 text-light-500",dark:"bg-transparent border border-dark-500 text-dark-500"},h={default:"border-gray-300",primary:"border-primary-500",secondary:"border-secondary-500",success:"border-success-500",danger:"border-danger-500",warning:"border-warning-500",info:"border-info-500",light:"border-light-500",dark:"border-dark-500"},p={underline:"underline",overline:"overline",lineThrough:"line-through",noUnderline:"no-underline"},g={blank:"_blank",self:"_self",parent:"_parent",top:"_top"},m={circle:"rounded-full",square:"rounded-none",roundedSquare:"rounded-lg",softRoundedSquare:"rounded-xl",pill:"rounded-full w-auto px-4"},b={xs:"w-6 h-6 text-xs",sm:"w-8 h-8 text-sm",md:"w-12 h-12 text-base",lg:"w-16 h-16 text-lg",xl:"w-20 h-20 text-xl"},y={xs:"min-w-3 min-h-3 text-[8px] px-1",sm:"min-w-4 min-h-4 text-[10px] px-1",md:"min-w-6 min-h-6 text-sm px-2",lg:"min-w-8 min-h-8 text-base px-3",xl:"min-w-10 min-h-10 text-lg px-4"},v={circle:"rounded-full",square:"rounded-none",roundedSquare:"rounded-lg",softRoundedSquare:"rounded-xl",pill:"rounded-full w-auto px-4"},w=function(t){var e=t.title,r=void 0===e?"Title":e,o=t.children;return n.default.createElement("div",{className:"inline-flex items-center justify-between w-full theme-bg-md px-5 py-3"},n.default.createElement("div",{className:"text-2xl font-semibold theme-text-md rounded-md"},r),n.default.createElement("div",null,o))},x=function(t){var e=t.title,r=void 0===e?"Title":e,o=t.children;return n.default.createElement("div",{className:"mb-4 w-full flex flex-row items-center justify-between"},r&&n.default.createElement("div",{className:"font-bold text-xl theme-text-sm border-l-2 border-l-gray-600 pl-3 py-1"},r),n.default.createElement("div",null,o))};
7
+ /*!
8
+ * @kurkle/color v0.3.4
9
+ * https://github.com/kurkle/color#readme
10
+ * (c) 2024 Jukka Kurkela
11
+ * Released under the MIT License
12
+ */
13
+ function _(t){return t+.5|0}const k=(t,e,r)=>Math.max(Math.min(t,r),e);function E(t){return k(_(2.55*t),0,255)}function S(t){return k(_(255*t),0,255)}function O(t){return k(_(t/2.55)/100,0,1)}function T(t){return k(_(100*t),0,100)}const A={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},C=[..."0123456789ABCDEF"],j=t=>C[15&t],P=t=>C[(240&t)>>4]+C[15&t],M=t=>(240&t)>>4==(15&t);function D(t){var e=(t=>M(t.r)&&M(t.g)&&M(t.b)&&M(t.a))(t)?j:P;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const R=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function I(t,e,r){const n=e*Math.min(r,1-r),o=(e,o=(e+t/30)%12)=>r-n*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function N(t,e,r){const n=(n,o=(n+t/60)%6)=>r-r*e*Math.max(Math.min(o,4-o,1),0);return[n(5),n(3),n(1)]}function F(t,e,r){const n=I(t,1,.5);let o;for(e+r>1&&(o=1/(e+r),e*=o,r*=o),o=0;o<3;o++)n[o]*=1-e-r,n[o]+=e;return n}function z(t){const e=t.r/255,r=t.g/255,n=t.b/255,o=Math.max(e,r,n),i=Math.min(e,r,n),a=(o+i)/2;let s,c,l;return o!==i&&(l=o-i,c=a>.5?l/(2-o-i):l/(o+i),s=function(t,e,r,n,o){return t===o?(e-r)/n+(e<r?6:0):e===o?(r-t)/n+2:(t-e)/n+4}(e,r,n,l,o),s=60*s+.5),[0|s,c||0,a]}function L(t,e,r,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,r,n)).map(S)}function B(t,e,r){return L(I,t,e,r)}function V(t){return(t%360+360)%360}function H(t){const e=R.exec(t);let r,n=255;if(!e)return;e[5]!==r&&(n=e[6]?E(+e[5]):S(+e[5]));const o=V(+e[2]),i=+e[3]/100,a=+e[4]/100;return r="hwb"===e[1]?function(t,e,r){return L(F,t,e,r)}(o,i,a):"hsv"===e[1]?function(t,e,r){return L(N,t,e,r)}(o,i,a):B(o,i,a),{r:r[0],g:r[1],b:r[2],a:n}}const $={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},U={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let W;function Y(t){W||(W=function(){const t={},e=Object.keys(U),r=Object.keys($);let n,o,i,a,s;for(n=0;n<e.length;n++){for(a=s=e[n],o=0;o<r.length;o++)i=r[o],s=s.replace(i,$[i]);i=parseInt(U[a],16),t[s]=[i>>16&255,i>>8&255,255&i]}return t}(),W.transparent=[0,0,0,0]);const e=W[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const X=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const q=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,K=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function G(t,e,r){if(t){let n=z(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*r,0===e?360:1)),n=B(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function Z(t,e){return t?Object.assign(e||{},t):t}function Q(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=S(t[3]))):(e=Z(t,{r:0,g:0,b:0,a:1})).a=S(e.a),e}function J(t){return"r"===t.charAt(0)?function(t){const e=X.exec(t);let r,n,o,i=255;if(e){if(e[7]!==r){const t=+e[7];i=e[8]?E(t):k(255*t,0,255)}return r=+e[1],n=+e[3],o=+e[5],r=255&(e[2]?E(r):k(r,0,255)),n=255&(e[4]?E(n):k(n,0,255)),o=255&(e[6]?E(o):k(o,0,255)),{r:r,g:n,b:o,a:i}}}(t):H(t)}class tt{constructor(t){if(t instanceof tt)return t;const e=typeof t;let r;var n,o,i;"object"===e?r=Q(t):"string"===e&&(i=(n=t).length,"#"===n[0]&&(4===i||5===i?o={r:255&17*A[n[1]],g:255&17*A[n[2]],b:255&17*A[n[3]],a:5===i?17*A[n[4]]:255}:7!==i&&9!==i||(o={r:A[n[1]]<<4|A[n[2]],g:A[n[3]]<<4|A[n[4]],b:A[n[5]]<<4|A[n[6]],a:9===i?A[n[7]]<<4|A[n[8]]:255})),r=o||Y(t)||J(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=Z(this._rgb);return t&&(t.a=O(t.a)),t}set rgb(t){this._rgb=Q(t)}rgbString(){return this._valid?function(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${O(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}(this._rgb):void 0}hexString(){return this._valid?D(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=z(t),r=e[0],n=T(e[1]),o=T(e[2]);return t.a<255?`hsla(${r}, ${n}%, ${o}%, ${O(t.a)})`:`hsl(${r}, ${n}%, ${o}%)`}(this._rgb):void 0}mix(t,e){if(t){const r=this.rgb,n=t.rgb;let o;const i=e===o?.5:e,a=2*i-1,s=r.a-n.a,c=((a*s==-1?a:(a+s)/(1+a*s))+1)/2;o=1-c,r.r=255&c*r.r+o*n.r+.5,r.g=255&c*r.g+o*n.g+.5,r.b=255&c*r.b+o*n.b+.5,r.a=i*r.a+(1-i)*n.a,this.rgb=r}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,r){const n=K(O(t.r)),o=K(O(t.g)),i=K(O(t.b));return{r:S(q(n+r*(K(O(e.r))-n))),g:S(q(o+r*(K(O(e.g))-o))),b:S(q(i+r*(K(O(e.b))-i))),a:t.a+r*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new tt(this.rgb)}alpha(t){return this._rgb.a=S(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=_(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return G(this._rgb,2,t),this}darken(t){return G(this._rgb,2,-t),this}saturate(t){return G(this._rgb,1,t),this}desaturate(t){return G(this._rgb,1,-t),this}rotate(t){return function(t,e){var r=z(t);r[0]=V(r[0]+e),r=B(r),t.r=r[0],t.g=r[1],t.b=r[2]}(this._rgb,t),this}}
14
+ /*!
15
+ * Chart.js v4.4.7
16
+ * https://www.chartjs.org
17
+ * (c) 2024 Chart.js Contributors
18
+ * Released under the MIT License
19
+ */function et(){}const rt=(()=>{let t=0;return()=>t++})();function nt(t){return null==t}function ot(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function it(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function at(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function st(t,e){return at(t)?t:e}function ct(t,e){return void 0===t?e:t}const lt=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function ut(t,e,r){if(t&&"function"==typeof t.call)return t.apply(r,e)}function dt(t,e,r,n){let o,i,a;if(ot(t))if(i=t.length,n)for(o=i-1;o>=0;o--)e.call(r,t[o],o);else for(o=0;o<i;o++)e.call(r,t[o],o);else if(it(t))for(a=Object.keys(t),i=a.length,o=0;o<i;o++)e.call(r,t[a[o]],a[o])}function ft(t,e){let r,n,o,i;if(!t||!e||t.length!==e.length)return!1;for(r=0,n=t.length;r<n;++r)if(o=t[r],i=e[r],o.datasetIndex!==i.datasetIndex||o.index!==i.index)return!1;return!0}function ht(t){if(ot(t))return t.map(ht);if(it(t)){const e=Object.create(null),r=Object.keys(t),n=r.length;let o=0;for(;o<n;++o)e[r[o]]=ht(t[r[o]]);return e}return t}function pt(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function gt(t,e,r,n){if(!pt(t))return;const o=e[t],i=r[t];it(o)&&it(i)?mt(o,i,n):e[t]=ht(i)}function mt(t,e,r){const n=ot(e)?e:[e],o=n.length;if(!it(t))return t;const i=(r=r||{}).merger||gt;let a;for(let e=0;e<o;++e){if(a=n[e],!it(a))continue;const o=Object.keys(a);for(let e=0,n=o.length;e<n;++e)i(o[e],t,a,r)}return t}function bt(t,e){return mt(t,e,{merger:yt})}function yt(t,e,r){if(!pt(t))return;const n=e[t],o=r[t];it(n)&&it(o)?bt(n,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=ht(o))}const vt={"":t=>t,x:t=>t.x,y:t=>t.y};function wt(t,e){const r=vt[e]||(vt[e]=function(t){const e=function(t){const e=t.split("."),r=[];let n="";for(const t of e)n+=t,n.endsWith("\\")?n=n.slice(0,-1)+".":(r.push(n),n="");return r}(t);return t=>{for(const r of e){if(""===r)break;t=t&&t[r]}return t}}(e));return r(t)}function xt(t){return t.charAt(0).toUpperCase()+t.slice(1)}const _t=t=>void 0!==t,kt=t=>"function"==typeof t,Et=(t,e)=>{if(t.size!==e.size)return!1;for(const r of t)if(!e.has(r))return!1;return!0};const St=Math.PI,Ot=2*St,Tt=Ot+St,At=Number.POSITIVE_INFINITY,Ct=St/180,jt=St/2,Pt=St/4,Mt=2*St/3,Dt=Math.log10,Rt=Math.sign;function It(t,e,r){return Math.abs(t-e)<r}function Nt(t){const e=Math.round(t);t=It(t,e,t/1e3)?e:t;const r=Math.pow(10,Math.floor(Dt(t))),n=t/r;return(n<=1?1:n<=2?2:n<=5?5:10)*r}function Ft(t){return!isNaN(parseFloat(t))&&isFinite(t)}function zt(t,e,r){let n,o,i;for(n=0,o=t.length;n<o;n++)i=t[n][r],isNaN(i)||(e.min=Math.min(e.min,i),e.max=Math.max(e.max,i))}function Lt(t){return t*(St/180)}function Bt(t){return t*(180/St)}function Vt(t){if(!at(t))return;let e=1,r=0;for(;Math.round(t*e)/e!==t;)e*=10,r++;return r}function Ht(t,e){const r=e.x-t.x,n=e.y-t.y,o=Math.sqrt(r*r+n*n);let i=Math.atan2(n,r);return i<-.5*St&&(i+=Ot),{angle:i,distance:o}}function $t(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Ut(t,e){return(t-e+Tt)%Ot-St}function Wt(t){return(t%Ot+Ot)%Ot}function Yt(t,e,r,n){const o=Wt(t),i=Wt(e),a=Wt(r),s=Wt(i-o),c=Wt(a-o),l=Wt(o-i),u=Wt(o-a);return o===i||o===a||n&&i===a||s>c&&l<u}function Xt(t,e,r){return Math.max(e,Math.min(r,t))}function qt(t,e,r,n=1e-6){return t>=Math.min(e,r)-n&&t<=Math.max(e,r)+n}function Kt(t,e,r){r=r||(r=>t[r]<e);let n,o=t.length-1,i=0;for(;o-i>1;)n=i+o>>1,r(n)?i=n:o=n;return{lo:i,hi:o}}const Gt=(t,e,r,n)=>Kt(t,r,n?n=>{const o=t[n][e];return o<r||o===r&&t[n+1][e]===r}:n=>t[n][e]<r),Zt=(t,e,r)=>Kt(t,r,(n=>t[n][e]>=r));const Qt=["push","pop","shift","splice","unshift"];function Jt(t,e){const r=t._chartjs;if(!r)return;const n=r.listeners,o=n.indexOf(e);-1!==o&&n.splice(o,1),n.length>0||(Qt.forEach((e=>{delete t[e]})),delete t._chartjs)}function te(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const ee="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function re(t,e){let r=[],n=!1;return function(...o){r=o,n||(n=!0,ee.call(window,(()=>{n=!1,t.apply(e,r)})))}}const ne=t=>"start"===t?"left":"end"===t?"right":"center",oe=(t,e,r)=>"start"===t?e:"end"===t?r:(e+r)/2;const ie=t=>0===t||1===t,ae=(t,e,r)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*Ot/r),se=(t,e,r)=>Math.pow(2,-10*t)*Math.sin((t-e)*Ot/r)+1,ce={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*jt),easeOutSine:t=>Math.sin(t*jt),easeInOutSine:t=>-.5*(Math.cos(St*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>ie(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>ie(t)?t:ae(t,.075,.3),easeOutElastic:t=>ie(t)?t:se(t,.075,.3),easeInOutElastic(t){const e=.1125;return ie(t)?t:t<.5?.5*ae(2*t,e,.45):.5+.5*se(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-ce.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,r=2.75;return t<1/r?e*t*t:t<2/r?e*(t-=1.5/r)*t+.75:t<2.5/r?e*(t-=2.25/r)*t+.9375:e*(t-=2.625/r)*t+.984375},easeInOutBounce:t=>t<.5?.5*ce.easeInBounce(2*t):.5*ce.easeOutBounce(2*t-1)+.5};function le(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function ue(t){return le(t)?t:new tt(t)}function de(t){return le(t)?t:new tt(t).saturate(.5).darken(.1).hexString()}const fe=["x","y","borderWidth","radius","tension"],he=["color","borderColor","backgroundColor"];const pe=new Map;function ge(t,e,r){return function(t,e){e=e||{};const r=t+JSON.stringify(e);let n=pe.get(r);return n||(n=new Intl.NumberFormat(t,e),pe.set(r,n)),n}(e,r).format(t)}const me={values:t=>ot(t)?t:""+t,numeric(t,e,r){if(0===t)return"0";const n=this.chart.options.locale;let o,i=t;if(r.length>1){const e=Math.max(Math.abs(r[0].value),Math.abs(r[r.length-1].value));(e<1e-4||e>1e15)&&(o="scientific"),i=function(t,e){let r=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(r)>=1&&t!==Math.floor(t)&&(r=t-Math.floor(t));return r}(t,r)}const a=Dt(Math.abs(i)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),c={notation:o,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(c,this.options.ticks.format),ge(t,n,c)},logarithmic(t,e,r){if(0===t)return"0";const n=r[e].significand||t/Math.pow(10,Math.floor(Dt(t)));return[1,2,3,5,10,15].includes(n)||e>.8*r.length?me.numeric.call(this,t,e,r):""}};var be={formatters:me};const ye=Object.create(null),ve=Object.create(null);function we(t,e){if(!e)return t;const r=e.split(".");for(let e=0,n=r.length;e<n;++e){const n=r[e];t=t[n]||(t[n]=Object.create(null))}return t}function xe(t,e,r){return"string"==typeof e?mt(we(t,e),r):mt(we(t,""),e)}class _e{constructor(t,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>de(e.backgroundColor),this.hoverBorderColor=(t,e)=>de(e.borderColor),this.hoverColor=(t,e)=>de(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return xe(this,t,e)}get(t){return we(this,t)}describe(t,e){return xe(ve,t,e)}override(t,e){return xe(ye,t,e)}route(t,e,r,n){const o=we(this,t),i=we(this,r),a="_"+e;Object.defineProperties(o,{[a]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=i[n];return it(t)?Object.assign({},e,t):ct(t,e)},set(t){this[a]=t}}})}apply(t){t.forEach((t=>t(this)))}}var ke=new _e({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:he},numbers:{type:"number",properties:fe}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:be.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function Ee(t,e,r,n,o){let i=e[o];return i||(i=e[o]=t.measureText(o).width,r.push(o)),i>n&&(n=i),n}function Se(t,e,r){const n=t.currentDevicePixelRatio,o=0!==r?Math.max(r/2,.5):0;return Math.round((e-o)*n)/n+o}function Oe(t,e){(e||t)&&((e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function Te(t,e,r,n){Ae(t,e,r,n,null)}function Ae(t,e,r,n,o){let i,a,s,c,l,u,d,f;const h=e.pointStyle,p=e.rotation,g=e.radius;let m=(p||0)*Ct;if(h&&"object"==typeof h&&(i=h.toString(),"[object HTMLImageElement]"===i||"[object HTMLCanvasElement]"===i))return t.save(),t.translate(r,n),t.rotate(m),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),void t.restore();if(!(isNaN(g)||g<=0)){switch(t.beginPath(),h){default:o?t.ellipse(r,n,o/2,g,0,0,Ot):t.arc(r,n,g,0,Ot),t.closePath();break;case"triangle":u=o?o/2:g,t.moveTo(r+Math.sin(m)*u,n-Math.cos(m)*g),m+=Mt,t.lineTo(r+Math.sin(m)*u,n-Math.cos(m)*g),m+=Mt,t.lineTo(r+Math.sin(m)*u,n-Math.cos(m)*g),t.closePath();break;case"rectRounded":l=.516*g,c=g-l,a=Math.cos(m+Pt)*c,d=Math.cos(m+Pt)*(o?o/2-l:c),s=Math.sin(m+Pt)*c,f=Math.sin(m+Pt)*(o?o/2-l:c),t.arc(r-d,n-s,l,m-St,m-jt),t.arc(r+f,n-a,l,m-jt,m),t.arc(r+d,n+s,l,m,m+jt),t.arc(r-f,n+a,l,m+jt,m+St),t.closePath();break;case"rect":if(!p){c=Math.SQRT1_2*g,u=o?o/2:c,t.rect(r-u,n-c,2*u,2*c);break}m+=Pt;case"rectRot":d=Math.cos(m)*(o?o/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,f=Math.sin(m)*(o?o/2:g),t.moveTo(r-d,n-s),t.lineTo(r+f,n-a),t.lineTo(r+d,n+s),t.lineTo(r-f,n+a),t.closePath();break;case"crossRot":m+=Pt;case"cross":d=Math.cos(m)*(o?o/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,f=Math.sin(m)*(o?o/2:g),t.moveTo(r-d,n-s),t.lineTo(r+d,n+s),t.moveTo(r+f,n-a),t.lineTo(r-f,n+a);break;case"star":d=Math.cos(m)*(o?o/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,f=Math.sin(m)*(o?o/2:g),t.moveTo(r-d,n-s),t.lineTo(r+d,n+s),t.moveTo(r+f,n-a),t.lineTo(r-f,n+a),m+=Pt,d=Math.cos(m)*(o?o/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,f=Math.sin(m)*(o?o/2:g),t.moveTo(r-d,n-s),t.lineTo(r+d,n+s),t.moveTo(r+f,n-a),t.lineTo(r-f,n+a);break;case"line":a=o?o/2:Math.cos(m)*g,s=Math.sin(m)*g,t.moveTo(r-a,n-s),t.lineTo(r+a,n+s);break;case"dash":t.moveTo(r,n),t.lineTo(r+Math.cos(m)*(o?o/2:g),n+Math.sin(m)*g);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function Ce(t,e,r){return r=r||.5,!e||t&&t.x>e.left-r&&t.x<e.right+r&&t.y>e.top-r&&t.y<e.bottom+r}function je(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Pe(t){t.restore()}function Me(t,e,r,n,o){if(!e)return t.lineTo(r.x,r.y);if("middle"===o){const n=(e.x+r.x)/2;t.lineTo(n,e.y),t.lineTo(n,r.y)}else"after"===o!=!!n?t.lineTo(e.x,r.y):t.lineTo(r.x,e.y);t.lineTo(r.x,r.y)}function De(t,e,r,n){if(!e)return t.lineTo(r.x,r.y);t.bezierCurveTo(n?e.cp1x:e.cp2x,n?e.cp1y:e.cp2y,n?r.cp2x:r.cp1x,n?r.cp2y:r.cp1y,r.x,r.y)}function Re(t,e,r,n,o){if(o.strikethrough||o.underline){const i=t.measureText(n),a=e-i.actualBoundingBoxLeft,s=e+i.actualBoundingBoxRight,c=r-i.actualBoundingBoxAscent,l=r+i.actualBoundingBoxDescent,u=o.strikethrough?(c+l)/2:l;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(a,u),t.lineTo(s,u),t.stroke()}}function Ie(t,e){const r=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=r}function Ne(t,e,r,n,o,i={}){const a=ot(e)?e:[e],s=i.strokeWidth>0&&""!==i.strokeColor;let c,l;for(t.save(),t.font=o.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),nt(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,i),c=0;c<a.length;++c)l=a[c],i.backdrop&&Ie(t,i.backdrop),s&&(i.strokeColor&&(t.strokeStyle=i.strokeColor),nt(i.strokeWidth)||(t.lineWidth=i.strokeWidth),t.strokeText(l,r,n,i.maxWidth)),t.fillText(l,r,n,i.maxWidth),Re(t,r,n,l,i),n+=Number(o.lineHeight);t.restore()}function Fe(t,e){const{x:r,y:n,w:o,h:i,radius:a}=e;t.arc(r+a.topLeft,n+a.topLeft,a.topLeft,1.5*St,St,!0),t.lineTo(r,n+i-a.bottomLeft),t.arc(r+a.bottomLeft,n+i-a.bottomLeft,a.bottomLeft,St,jt,!0),t.lineTo(r+o-a.bottomRight,n+i),t.arc(r+o-a.bottomRight,n+i-a.bottomRight,a.bottomRight,jt,0,!0),t.lineTo(r+o,n+a.topRight),t.arc(r+o-a.topRight,n+a.topRight,a.topRight,0,-jt,!0),t.lineTo(r+a.topLeft,n)}const ze=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Le=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Be(t,e){const r=(""+t).match(ze);if(!r||"normal"===r[1])return 1.2*e;switch(t=+r[2],r[3]){case"px":return t;case"%":t/=100}return e*t}const Ve=t=>+t||0;function He(t,e){const r={},n=it(e),o=n?Object.keys(e):e,i=it(t)?n?r=>ct(t[r],t[e[r]]):e=>t[e]:()=>t;for(const t of o)r[t]=Ve(i(t));return r}function $e(t){return He(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Ue(t){return He(t,["topLeft","topRight","bottomLeft","bottomRight"])}function We(t){const e=$e(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Ye(t,e){t=t||{},e=e||ke.font;let r=ct(t.size,e.size);"string"==typeof r&&(r=parseInt(r,10));let n=ct(t.style,e.style);n&&!(""+n).match(Le)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const o={family:ct(t.family,e.family),lineHeight:Be(ct(t.lineHeight,e.lineHeight),r),size:r,style:n,weight:ct(t.weight,e.weight),string:""};return o.string=function(t){return!t||nt(t.size)||nt(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(o),o}function Xe(t,e,r,n){let o,i,a,s=!0;for(o=0,i=t.length;o<i;++o)if(a=t[o],void 0!==a&&(void 0!==e&&"function"==typeof a&&(a=a(e),s=!1),void 0!==r&&ot(a)&&(a=a[r%a.length],s=!1),void 0!==a))return n&&!s&&(n.cacheable=!1),a}function qe(t,e){return Object.assign(Object.create(t),e)}function Ke(t,e=[""],r,n,o=()=>t[0]){const i=r||t;void 0===n&&(n=ar("_fallback",t));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:n,_getTarget:o,override:r=>Ke([r,...t],e,i,n)};return new Proxy(a,{deleteProperty:(e,r)=>(delete e[r],delete e._keys,delete t[0][r],!0),get:(r,n)=>tr(r,n,(()=>function(t,e,r,n){let o;for(const i of e)if(o=ar(Qe(i,t),r),void 0!==o)return Je(t,o)?or(r,n,t,o):o}(n,e,t,r))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>sr(t).includes(e),ownKeys:t=>sr(t),set(t,e,r){const n=t._storage||(t._storage=o());return t[e]=n[e]=r,delete t._keys,!0}})}function Ge(t,e,r,n){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:r,_stack:new Set,_descriptors:Ze(t,n),setContext:e=>Ge(t,e,r,n),override:o=>Ge(t.override(o),e,r,n)};return new Proxy(o,{deleteProperty:(e,r)=>(delete e[r],delete t[r],!0),get:(t,e,r)=>tr(t,e,(()=>function(t,e,r){const{_proxy:n,_context:o,_subProxy:i,_descriptors:a}=t;let s=n[e];kt(s)&&a.isScriptable(e)&&(s=function(t,e,r,n){const{_proxy:o,_context:i,_subProxy:a,_stack:s}=r;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t);let c=e(i,a||n);s.delete(t),Je(t,c)&&(c=or(o._scopes,o,t,c));return c}(e,s,t,r));ot(s)&&s.length&&(s=function(t,e,r,n){const{_proxy:o,_context:i,_subProxy:a,_descriptors:s}=r;if(void 0!==i.index&&n(t))return e[i.index%e.length];if(it(e[0])){const r=e,n=o._scopes.filter((t=>t!==r));e=[];for(const c of r){const r=or(n,o,t,c);e.push(Ge(r,i,a&&a[t],s))}}return e}(e,s,t,a.isIndexable));Je(e,s)&&(s=Ge(s,o,i&&i[e],a));return s}(t,e,r))),getOwnPropertyDescriptor:(e,r)=>e._descriptors.allKeys?Reflect.has(t,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,r),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,r)=>Reflect.has(t,r),ownKeys:()=>Reflect.ownKeys(t),set:(e,r,n)=>(t[r]=n,delete e[r],!0)})}function Ze(t,e={scriptable:!0,indexable:!0}){const{_scriptable:r=e.scriptable,_indexable:n=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:r,indexable:n,isScriptable:kt(r)?r:()=>r,isIndexable:kt(n)?n:()=>n}}const Qe=(t,e)=>t?t+xt(e):e,Je=(t,e)=>it(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function tr(t,e,r){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];const n=r();return t[e]=n,n}function er(t,e,r){return kt(t)?t(e,r):t}const rr=(t,e)=>!0===t?e:"string"==typeof t?wt(e,t):void 0;function nr(t,e,r,n,o){for(const i of e){const e=rr(r,i);if(e){t.add(e);const i=er(e._fallback,r,o);if(void 0!==i&&i!==r&&i!==n)return i}else if(!1===e&&void 0!==n&&r!==n)return null}return!1}function or(t,e,r,n){const o=e._rootScopes,i=er(e._fallback,r,n),a=[...t,...o],s=new Set;s.add(n);let c=ir(s,a,r,i||r,n);return null!==c&&((void 0===i||i===r||(c=ir(s,a,i,c,n),null!==c))&&Ke(Array.from(s),[""],o,i,(()=>function(t,e,r){const n=t._getTarget();e in n||(n[e]={});const o=n[e];if(ot(o)&&it(r))return r;return o||{}}(e,r,n))))}function ir(t,e,r,n,o){for(;r;)r=nr(t,e,r,n,o);return r}function ar(t,e){for(const r of e){if(!r)continue;const e=r[t];if(void 0!==e)return e}}function sr(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const r of t)for(const t of Object.keys(r).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}const cr=Number.EPSILON||1e-14,lr=(t,e)=>e<t.length&&!t[e].skip&&t[e],ur=t=>"x"===t?"y":"x";function dr(t,e,r,n){const o=t.skip?e:t,i=e,a=r.skip?e:r,s=$t(i,o),c=$t(a,i);let l=s/(s+c),u=c/(s+c);l=isNaN(l)?0:l,u=isNaN(u)?0:u;const d=n*l,f=n*u;return{previous:{x:i.x-d*(a.x-o.x),y:i.y-d*(a.y-o.y)},next:{x:i.x+f*(a.x-o.x),y:i.y+f*(a.y-o.y)}}}function fr(t,e="x"){const r=ur(e),n=t.length,o=Array(n).fill(0),i=Array(n);let a,s,c,l=lr(t,0);for(a=0;a<n;++a)if(s=c,c=l,l=lr(t,a+1),c){if(l){const t=l[e]-c[e];o[a]=0!==t?(l[r]-c[r])/t:0}i[a]=s?l?Rt(o[a-1])!==Rt(o[a])?0:(o[a-1]+o[a])/2:o[a-1]:o[a]}!function(t,e,r){const n=t.length;let o,i,a,s,c,l=lr(t,0);for(let u=0;u<n-1;++u)c=l,l=lr(t,u+1),c&&l&&(It(e[u],0,cr)?r[u]=r[u+1]=0:(o=r[u]/e[u],i=r[u+1]/e[u],s=Math.pow(o,2)+Math.pow(i,2),s<=9||(a=3/Math.sqrt(s),r[u]=o*a*e[u],r[u+1]=i*a*e[u])))}(t,o,i),function(t,e,r="x"){const n=ur(r),o=t.length;let i,a,s,c=lr(t,0);for(let l=0;l<o;++l){if(a=s,s=c,c=lr(t,l+1),!s)continue;const o=s[r],u=s[n];a&&(i=(o-a[r])/3,s[`cp1${r}`]=o-i,s[`cp1${n}`]=u-i*e[l]),c&&(i=(c[r]-o)/3,s[`cp2${r}`]=o+i,s[`cp2${n}`]=u+i*e[l])}}(t,i,e)}function hr(t,e,r){return Math.max(Math.min(t,r),e)}function pr(t,e,r,n,o){let i,a,s,c;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)fr(t,o);else{let r=n?t[t.length-1]:t[0];for(i=0,a=t.length;i<a;++i)s=t[i],c=dr(r,s,t[Math.min(i+1,a-(n?0:1))%a],e.tension),s.cp1x=c.previous.x,s.cp1y=c.previous.y,s.cp2x=c.next.x,s.cp2y=c.next.y,r=s}e.capBezierPoints&&function(t,e){let r,n,o,i,a,s=Ce(t[0],e);for(r=0,n=t.length;r<n;++r)a=i,i=s,s=r<n-1&&Ce(t[r+1],e),i&&(o=t[r],a&&(o.cp1x=hr(o.cp1x,e.left,e.right),o.cp1y=hr(o.cp1y,e.top,e.bottom)),s&&(o.cp2x=hr(o.cp2x,e.left,e.right),o.cp2y=hr(o.cp2y,e.top,e.bottom)))}(t,r)}function gr(){return"undefined"!=typeof window&&"undefined"!=typeof document}function mr(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function br(t,e,r){let n;return"string"==typeof t?(n=parseInt(t,10),-1!==t.indexOf("%")&&(n=n/100*e.parentNode[r])):n=t,n}const yr=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);const vr=["top","right","bottom","left"];function wr(t,e,r){const n={};r=r?"-"+r:"";for(let o=0;o<4;o++){const i=vr[o];n[i]=parseFloat(t[e+"-"+i+r])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function xr(t,e){if("native"in t)return t;const{canvas:r,currentDevicePixelRatio:n}=e,o=yr(r),i="border-box"===o.boxSizing,a=wr(o,"padding"),s=wr(o,"border","width"),{x:c,y:l,box:u}=function(t,e){const r=t.touches,n=r&&r.length?r[0]:t,{offsetX:o,offsetY:i}=n;let a,s,c=!1;if(((t,e,r)=>(t>0||e>0)&&(!r||!r.shadowRoot))(o,i,t.target))a=o,s=i;else{const t=e.getBoundingClientRect();a=n.clientX-t.left,s=n.clientY-t.top,c=!0}return{x:a,y:s,box:c}}(t,r),d=a.left+(u&&s.left),f=a.top+(u&&s.top);let{width:h,height:p}=e;return i&&(h-=a.width+s.width,p-=a.height+s.height),{x:Math.round((c-d)/h*r.width/n),y:Math.round((l-f)/p*r.height/n)}}const _r=t=>Math.round(10*t)/10;function kr(t,e,r,n){const o=yr(t),i=wr(o,"margin"),a=br(o.maxWidth,t,"clientWidth")||At,s=br(o.maxHeight,t,"clientHeight")||At,c=function(t,e,r){let n,o;if(void 0===e||void 0===r){const i=t&&mr(t);if(i){const t=i.getBoundingClientRect(),a=yr(i),s=wr(a,"border","width"),c=wr(a,"padding");e=t.width-c.width-s.width,r=t.height-c.height-s.height,n=br(a.maxWidth,i,"clientWidth"),o=br(a.maxHeight,i,"clientHeight")}else e=t.clientWidth,r=t.clientHeight}return{width:e,height:r,maxWidth:n||At,maxHeight:o||At}}(t,e,r);let{width:l,height:u}=c;if("content-box"===o.boxSizing){const t=wr(o,"border","width"),e=wr(o,"padding");l-=e.width+t.width,u-=e.height+t.height}l=Math.max(0,l-i.width),u=Math.max(0,n?l/n:u-i.height),l=_r(Math.min(l,a,c.maxWidth)),u=_r(Math.min(u,s,c.maxHeight)),l&&!u&&(u=_r(l/2));return(void 0!==e||void 0!==r)&&n&&c.height&&u>c.height&&(u=c.height,l=_r(Math.floor(u*n))),{width:l,height:u}}function Er(t,e,r){const n=e||1,o=Math.floor(t.height*n),i=Math.floor(t.width*n);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const a=t.canvas;return a.style&&(r||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==n||a.height!==o||a.width!==i)&&(t.currentDevicePixelRatio=n,a.height=o,a.width=i,t.ctx.setTransform(n,0,0,n,0,0),!0)}const Sr=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};gr()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(t){}return t}();function Or(t,e){const r=function(t,e){return yr(t).getPropertyValue(e)}(t,e),n=r&&r.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function Tr(t,e,r,n){return{x:t.x+r*(e.x-t.x),y:t.y+r*(e.y-t.y)}}function Ar(t,e,r,n){return{x:t.x+r*(e.x-t.x),y:"middle"===n?r<.5?t.y:e.y:"after"===n?r<1?t.y:e.y:r>0?e.y:t.y}}function Cr(t,e,r,n){const o={x:t.cp2x,y:t.cp2y},i={x:e.cp1x,y:e.cp1y},a=Tr(t,o,r),s=Tr(o,i,r),c=Tr(i,e,r),l=Tr(a,s,r),u=Tr(s,c,r);return Tr(l,u,r)}function jr(t,e,r){return t?function(t,e){return{x:r=>t+t+e-r,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,r):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function Pr(t,e){let r,n;"ltr"!==e&&"rtl"!==e||(r=t.canvas.style,n=[r.getPropertyValue("direction"),r.getPropertyPriority("direction")],r.setProperty("direction",e,"important"),t.prevTextDirection=n)}function Mr(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Dr(t){return"angle"===t?{between:Yt,compare:Ut,normalize:Wt}:{between:qt,compare:(t,e)=>t-e,normalize:t=>t}}function Rr({start:t,end:e,count:r,loop:n,style:o}){return{start:t%r,end:e%r,loop:n&&(e-t+1)%r==0,style:o}}function Ir(t,e,r){if(!r)return[t];const{property:n,start:o,end:i}=r,a=e.length,{compare:s,between:c,normalize:l}=Dr(n),{start:u,end:d,loop:f,style:h}=function(t,e,r){const{property:n,start:o,end:i}=r,{between:a,normalize:s}=Dr(n),c=e.length;let l,u,{start:d,end:f,loop:h}=t;if(h){for(d+=c,f+=c,l=0,u=c;l<u&&a(s(e[d%c][n]),o,i);++l)d--,f--;d%=c,f%=c}return f<d&&(f+=c),{start:d,end:f,loop:h,style:t.style}}(t,e,r),p=[];let g,m,b,y=!1,v=null;const w=()=>y||c(o,b,g)&&0!==s(o,b),x=()=>!y||0===s(i,g)||c(i,b,g);for(let t=u,r=u;t<=d;++t)m=e[t%a],m.skip||(g=l(m[n]),g!==b&&(y=c(g,o,i),null===v&&w()&&(v=0===s(g,o)?t:r),null!==v&&x()&&(p.push(Rr({start:v,end:t,loop:f,count:a,style:h})),v=null),r=t,b=g));return null!==v&&p.push(Rr({start:v,end:d,loop:f,count:a,style:h})),p}function Nr(t,e,r,n){return n&&n.setContext&&r?function(t,e,r,n){const o=t._chart.getContext(),i=Fr(t.options),{_datasetIndex:a,options:{spanGaps:s}}=t,c=r.length,l=[];let u=i,d=e[0].start,f=d;function h(t,e,n,o){const i=s?-1:1;if(t!==e){for(t+=c;r[t%c].skip;)t-=i;for(;r[e%c].skip;)e+=i;t%c!=e%c&&(l.push({start:t%c,end:e%c,loop:n,style:o}),u=o,d=e%c)}}for(const t of e){d=s?d:t.start;let e,i=r[d%c];for(f=d+1;f<=t.end;f++){const s=r[f%c];e=Fr(n.setContext(qe(o,{type:"segment",p0:i,p1:s,p0DataIndex:(f-1)%c,p1DataIndex:f%c,datasetIndex:a}))),zr(e,u)&&h(d,f-1,t.loop,u),i=s,u=e}d<f-1&&h(d,f-1,t.loop,u)}return l}(t,e,r,n):e}function Fr(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function zr(t,e){if(!e)return!1;const r=[],n=function(t,e){return le(e)?(r.includes(e)||r.push(e),r.indexOf(e)):e};return JSON.stringify(t,n)!==JSON.stringify(e,n)}
20
+ /*!
21
+ * Chart.js v4.4.7
22
+ * https://www.chartjs.org
23
+ * (c) 2024 Chart.js Contributors
24
+ * Released under the MIT License
25
+ */class Lr{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,r,n){const o=e.listeners[n],i=e.duration;o.forEach((n=>n({chart:t,initial:e.initial,numSteps:i,currentStep:Math.min(r-e.start,i)})))}_refresh(){this._request||(this._running=!0,this._request=ee.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((r,n)=>{if(!r.running||!r.items.length)return;const o=r.items;let i,a=o.length-1,s=!1;for(;a>=0;--a)i=o[a],i._active?(i._total>r.duration&&(r.duration=i._total),i.tick(t),s=!0):(o[a]=o[o.length-1],o.pop());s&&(n.draw(),this._notify(n,r,t,"progress")),o.length||(r.running=!1,this._notify(n,r,t,"complete"),r.initial=!1),e+=o.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let r=e.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,r)),r}listen(t,e,r){this._getAnims(t).listeners[e].push(r)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const r=e.items;let n=r.length-1;for(;n>=0;--n)r[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Br=new Lr;const Vr="transparent",Hr={boolean:(t,e,r)=>r>.5?e:t,color(t,e,r){const n=ue(t||Vr),o=n.valid&&ue(e||Vr);return o&&o.valid?o.mix(n,r).hexString():e},number:(t,e,r)=>t+(e-t)*r};class $r{constructor(t,e,r,n){const o=e[r];n=Xe([t.to,n,o,t.from]);const i=Xe([t.from,o,n]);this._active=!0,this._fn=t.fn||Hr[t.type||typeof i],this._easing=ce[t.easing]||ce.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=r,this._from=i,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,r){if(this._active){this._notify(!1);const n=this._target[this._prop],o=r-this._start,i=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(i,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=Xe([t.to,e,n,t.from]),this._from=Xe([t.from,n,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,r=this._duration,n=this._prop,o=this._from,i=this._loop,a=this._to;let s;if(this._active=o!==a&&(i||e<r),!this._active)return this._target[n]=a,void this._notify(!0);e<0?this._target[n]=o:(s=e/r%2,s=i&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[n]=this._fn(o,a,s))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,r)=>{t.push({res:e,rej:r})}))}_notify(t){const e=t?"res":"rej",r=this._promises||[];for(let t=0;t<r.length;t++)r[t][e]()}}class Ur{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!it(t))return;const e=Object.keys(ke.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach((n=>{const o=t[n];if(!it(o))return;const i={};for(const t of e)i[t]=o[t];(ot(o.properties)&&o.properties||[n]).forEach((t=>{t!==n&&r.has(t)||r.set(t,i)}))}))}_animateOptions(t,e){const r=e.options,n=function(t,e){if(!e)return;let r=t.options;if(!r)return void(t.options=e);r.$shared&&(t.options=r=Object.assign({},r,{$shared:!1,$animations:{}}));return r}(t,r);if(!n)return[];const o=this._createAnimations(n,r);return r.$shared&&function(t,e){const r=[],n=Object.keys(e);for(let e=0;e<n.length;e++){const o=t[n[e]];o&&o.active()&&r.push(o.wait())}return Promise.all(r)}(t.options.$animations,r).then((()=>{t.options=r}),(()=>{})),o}_createAnimations(t,e){const r=this._properties,n=[],o=t.$animations||(t.$animations={}),i=Object.keys(e),a=Date.now();let s;for(s=i.length-1;s>=0;--s){const c=i[s];if("$"===c.charAt(0))continue;if("options"===c){n.push(...this._animateOptions(t,e));continue}const l=e[c];let u=o[c];const d=r.get(c);if(u){if(d&&u.active()){u.update(d,l,a);continue}u.cancel()}d&&d.duration?(o[c]=u=new $r(d,t,c,l),n.push(u)):t[c]=l}return n}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const r=this._createAnimations(t,e);return r.length?(Br.add(this._chart,r),!0):void 0}}function Wr(t,e){const r=t&&t.options||{},n=r.reverse,o=void 0===r.min?e:0,i=void 0===r.max?e:0;return{start:n?i:o,end:n?o:i}}function Yr(t,e){const r=[],n=t._getSortedDatasetMetas(e);let o,i;for(o=0,i=n.length;o<i;++o)r.push(n[o].index);return r}function Xr(t,e,r,n={}){const o=t.keys,i="single"===n.mode;let a,s,c,l;if(null===e)return;let u=!1;for(a=0,s=o.length;a<s;++a){if(c=+o[a],c===r){if(u=!0,n.all)continue;break}l=t.values[c],at(l)&&(i||0===e||Rt(e)===Rt(l))&&(e+=l)}return u||n.all?e:0}function qr(t,e){const r=t&&t.options.stacked;return r||void 0===r&&void 0!==e.stack}function Kr(t,e,r){const n=t[e]||(t[e]={});return n[r]||(n[r]={})}function Gr(t,e,r,n){for(const o of e.getMatchingVisibleMetas(n).reverse()){const e=t[o.index];if(r&&e>0||!r&&e<0)return o.index}return null}function Zr(t,e){const{chart:r,_cachedMeta:n}=t,o=r._stacks||(r._stacks={}),{iScale:i,vScale:a,index:s}=n,c=i.axis,l=a.axis,u=function(t,e,r){return`${t.id}.${e.id}.${r.stack||r.type}`}(i,a,n),d=e.length;let f;for(let t=0;t<d;++t){const r=e[t],{[c]:i,[l]:d}=r;f=(r._stacks||(r._stacks={}))[l]=Kr(o,u,i),f[s]=d,f._top=Gr(f,a,!0,n.type),f._bottom=Gr(f,a,!1,n.type);(f._visualValues||(f._visualValues={}))[s]=d}}function Qr(t,e){const r=t.scales;return Object.keys(r).filter((t=>r[t].axis===e)).shift()}function Jr(t,e){const r=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[n]||void 0===e[n][r])return;delete e[n][r],void 0!==e[n]._visualValues&&void 0!==e[n]._visualValues[r]&&delete e[n]._visualValues[r]}}}const tn=t=>"reset"===t||"none"===t,en=(t,e)=>e?t:Object.assign({},t);class rn{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=qr(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Jr(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,r=this.getDataset(),n=(t,e,r,n)=>"x"===t?e:"r"===t?n:r,o=e.xAxisID=ct(r.xAxisID,Qr(t,"x")),i=e.yAxisID=ct(r.yAxisID,Qr(t,"y")),a=e.rAxisID=ct(r.rAxisID,Qr(t,"r")),s=e.indexAxis,c=e.iAxisID=n(s,o,i,a),l=e.vAxisID=n(s,i,o,a);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(i),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(c),e.vScale=this.getScaleForId(l)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Jt(this._data,this),t._stacked&&Jr(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),r=this._data;if(it(e)){const t=this._cachedMeta;this._data=function(t,e){const{iScale:r,vScale:n}=e,o="x"===r.axis?"x":"y",i="x"===n.axis?"x":"y",a=Object.keys(t),s=new Array(a.length);let c,l,u;for(c=0,l=a.length;c<l;++c)u=a[c],s[c]={[o]:u,[i]:t[u]};return s}(e,t)}else if(r!==e){if(r){Jt(r,this);const t=this._cachedMeta;Jr(t),t._parsed=[]}e&&Object.isExtensible(e)&&(o=this,(n=e)._chartjs?n._chartjs.listeners.push(o):(Object.defineProperty(n,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[o]}}),Qt.forEach((t=>{const e="_onData"+xt(t),r=n[t];Object.defineProperty(n,t,{configurable:!0,enumerable:!1,value(...t){const o=r.apply(this,t);return n._chartjs.listeners.forEach((r=>{"function"==typeof r[e]&&r[e](...t)})),o}})})))),this._syncList=[],this._data=e}var n,o}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,r=this.getDataset();let n=!1;this._dataCheck();const o=e._stacked;e._stacked=qr(e.vScale,e),e.stack!==r.stack&&(n=!0,Jr(e),e.stack=r.stack),this._resyncElements(t),(n||o!==e._stacked)&&(Zr(this,e._parsed),e._stacked=qr(e.vScale,e))}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:r,_data:n}=this,{iScale:o,_stacked:i}=r,a=o.axis;let s,c,l,u=0===t&&e===n.length||r._sorted,d=t>0&&r._parsed[t-1];if(!1===this._parsing)r._parsed=n,r._sorted=!0,l=n;else{l=ot(n[t])?this.parseArrayData(r,n,t,e):it(n[t])?this.parseObjectData(r,n,t,e):this.parsePrimitiveData(r,n,t,e);const o=()=>null===c[a]||d&&c[a]<d[a];for(s=0;s<e;++s)r._parsed[s+t]=c=l[s],u&&(o()&&(u=!1),d=c);r._sorted=u}i&&Zr(this,l)}parsePrimitiveData(t,e,r,n){const{iScale:o,vScale:i}=t,a=o.axis,s=i.axis,c=o.getLabels(),l=o===i,u=new Array(n);let d,f,h;for(d=0,f=n;d<f;++d)h=d+r,u[d]={[a]:l||o.parse(c[h],h),[s]:i.parse(e[h],h)};return u}parseArrayData(t,e,r,n){const{xScale:o,yScale:i}=t,a=new Array(n);let s,c,l,u;for(s=0,c=n;s<c;++s)l=s+r,u=e[l],a[s]={x:o.parse(u[0],l),y:i.parse(u[1],l)};return a}parseObjectData(t,e,r,n){const{xScale:o,yScale:i}=t,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,c=new Array(n);let l,u,d,f;for(l=0,u=n;l<u;++l)d=l+r,f=e[d],c[l]={x:o.parse(wt(f,a),d),y:i.parse(wt(f,s),d)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,r){const n=this.chart,o=this._cachedMeta,i=e[t.axis];return Xr({keys:Yr(n,!0),values:e._stacks[t.axis]._visualValues},i,o.index,{mode:r})}updateRangeFromParsed(t,e,r,n){const o=r[e.axis];let i=null===o?NaN:o;const a=n&&r._stacks[e.axis];n&&a&&(n.values=a,i=Xr(n,o,this._cachedMeta.index)),t.min=Math.min(t.min,i),t.max=Math.max(t.max,i)}getMinMax(t,e){const r=this._cachedMeta,n=r._parsed,o=r._sorted&&t===r.iScale,i=n.length,a=this._getOtherScale(t),s=((t,e,r)=>t&&!e.hidden&&e._stacked&&{keys:Yr(r,!0),values:null})(e,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:l,max:u}=function(t){const{min:e,max:r,minDefined:n,maxDefined:o}=t.getUserBounds();return{min:n?e:Number.NEGATIVE_INFINITY,max:o?r:Number.POSITIVE_INFINITY}}(a);let d,f;function h(){f=n[d];const e=f[a.axis];return!at(f[t.axis])||l>e||u<e}for(d=0;d<i&&(h()||(this.updateRangeFromParsed(c,t,f,s),!o));++d);if(o)for(d=i-1;d>=0;--d)if(!h()){this.updateRangeFromParsed(c,t,f,s);break}return c}getAllParsedValues(t){const e=this._cachedMeta._parsed,r=[];let n,o,i;for(n=0,o=e.length;n<o;++n)i=e[n][t.axis],at(i)&&r.push(i);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,r=e.iScale,n=e.vScale,o=this.getParsed(t);return{label:r?""+r.getLabelForValue(o[r.axis]):"",value:n?""+n.getLabelForValue(o[n.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,r,n,o;return it(t)?(e=t.top,r=t.right,n=t.bottom,o=t.left):e=r=n=o=t,{top:e,right:r,bottom:n,left:o,disabled:!1===t}}(ct(this.options.clip,function(t,e,r){if(!1===r)return!1;const n=Wr(t,r),o=Wr(e,r);return{top:o.end,right:n.end,bottom:o.start,left:n.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,r=this._cachedMeta,n=r.data||[],o=e.chartArea,i=[],a=this._drawStart||0,s=this._drawCount||n.length-a,c=this.options.drawActiveElementsOnTop;let l;for(r.dataset&&r.dataset.draw(t,o,a,s),l=a;l<a+s;++l){const e=n[l];e.hidden||(e.active&&c?i.push(e):e.draw(t,o))}for(l=0;l<i.length;++l)i[l].draw(t,o)}getStyle(t,e){const r=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,e,r){const n=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];o=e.$context||(e.$context=function(t,e,r){return qe(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:r,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),o.parsed=this.getParsed(t),o.raw=n.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=function(t,e){return qe(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),o.dataset=n,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=r,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",r){const n="active"===e,o=this._cachedDataOpts,i=t+"-"+e,a=o[i],s=this.enableOptionSharing&&_t(r);if(a)return en(a,s);const c=this.chart.config,l=c.datasetElementScopeKeys(this._type,t),u=n?[`${t}Hover`,"hover",t,""]:[t,""],d=c.getOptionScopes(this.getDataset(),l),f=Object.keys(ke.elements[t]),h=c.resolveNamedOptions(d,f,(()=>this.getContext(r,n,e)),u);return h.$shared&&(h.$shared=s,o[i]=Object.freeze(en(h,s))),h}_resolveAnimations(t,e,r){const n=this.chart,o=this._cachedDataOpts,i=`animation-${e}`,a=o[i];if(a)return a;let s;if(!1!==n.options.animation){const n=this.chart.config,o=n.datasetAnimationScopeKeys(this._type,e),i=n.getOptionScopes(this.getDataset(),o);s=n.createResolver(i,this.getContext(t,r,e))}const c=new Ur(n,s&&s.animations);return s&&s._cacheable&&(o[i]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||tn(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const r=this.resolveDataElementOptions(t,e),n=this._sharedOptions,o=this.getSharedOptions(r),i=this.includeOptions(e,o)||o!==n;return this.updateSharedOptions(o,e,r),{sharedOptions:o,includeOptions:i}}updateElement(t,e,r,n){tn(n)?Object.assign(t,r):this._resolveAnimations(e,n).update(t,r)}updateSharedOptions(t,e,r){t&&!tn(e)&&this._resolveAnimations(void 0,e).update(t,r)}_setStyle(t,e,r,n){t.active=n;const o=this.getStyle(e,n);this._resolveAnimations(e,r,n).update(t,{options:!n&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,e,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,r=this._cachedMeta.data;for(const[t,e,r]of this._syncList)this[t](e,r);this._syncList=[];const n=r.length,o=e.length,i=Math.min(o,n);i&&this.parse(0,i),o>n?this._insertElements(n,o-n,t):o<n&&this._removeElements(o,n-o)}_insertElements(t,e,r=!0){const n=this._cachedMeta,o=n.data,i=t+e;let a;const s=t=>{for(t.length+=e,a=t.length-1;a>=i;a--)t[a]=t[a-e]};for(s(o),a=t;a<i;++a)o[a]=new this.dataElementType;this._parsing&&s(n._parsed),this.parse(t,e),r&&this.updateElements(o,t,e,"reset")}updateElements(t,e,r,n){}_removeElements(t,e){const r=this._cachedMeta;if(this._parsing){const n=r._parsed.splice(t,e);r._stacked&&Jr(r,n)}r.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,r,n]=t;this[e](r,n)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function nn(t){const e=t.iScale,r=function(t,e){if(!t._cache.$bar){const r=t.getMatchingVisibleMetas(e);let n=[];for(let e=0,o=r.length;e<o;e++)n=n.concat(r[e].controller.getAllParsedValues(t));t._cache.$bar=te(n.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let n,o,i,a,s=e._length;const c=()=>{32767!==i&&-32768!==i&&(_t(a)&&(s=Math.min(s,Math.abs(i-a)||s)),a=i)};for(n=0,o=r.length;n<o;++n)i=e.getPixelForValue(r[n]),c();for(a=void 0,n=0,o=e.ticks.length;n<o;++n)i=e.getPixelForTick(n),c();return s}function on(t,e,r,n){return ot(t)?function(t,e,r,n){const o=r.parse(t[0],n),i=r.parse(t[1],n),a=Math.min(o,i),s=Math.max(o,i);let c=a,l=s;Math.abs(a)>Math.abs(s)&&(c=s,l=a),e[r.axis]=l,e._custom={barStart:c,barEnd:l,start:o,end:i,min:a,max:s}}(t,e,r,n):e[r.axis]=r.parse(t,n),e}function an(t,e,r,n){const o=t.iScale,i=t.vScale,a=o.getLabels(),s=o===i,c=[];let l,u,d,f;for(l=r,u=r+n;l<u;++l)f=e[l],d={},d[o.axis]=s||o.parse(a[l],l),c.push(on(f,d,i,l));return c}function sn(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function cn(t,e,r,n){let o=e.borderSkipped;const i={};if(!o)return void(t.borderSkipped=i);if(!0===o)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:s,reverse:c,top:l,bottom:u}=function(t){let e,r,n,o,i;return t.horizontal?(e=t.base>t.x,r="left",n="right"):(e=t.base<t.y,r="bottom",n="top"),e?(o="end",i="start"):(o="start",i="end"),{start:r,end:n,reverse:e,top:o,bottom:i}}(t);"middle"===o&&r&&(t.enableBorderRadius=!0,(r._top||0)===n?o=l:(r._bottom||0)===n?o=u:(i[ln(u,a,s,c)]=!0,o=l)),i[ln(o,a,s,c)]=!0,t.borderSkipped=i}function ln(t,e,r,n){var o,i,a;return n?(a=r,t=un(t=(o=t)===(i=e)?a:o===a?i:o,r,e)):t=un(t,e,r),t}function un(t,e,r){return"start"===t?e:"end"===t?r:t}function dn(t,{inflateAmount:e},r){t.inflateAmount="auto"===e?1===r?.33:0:e}class fn extends rn{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,r,n){return an(t,e,r,n)}parseArrayData(t,e,r,n){return an(t,e,r,n)}parseObjectData(t,e,r,n){const{iScale:o,vScale:i}=t,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,c="x"===o.axis?a:s,l="x"===i.axis?a:s,u=[];let d,f,h,p;for(d=r,f=r+n;d<f;++d)p=e[d],h={},h[o.axis]=o.parse(wt(p,c),d),u.push(on(wt(p,l),h,i,d));return u}updateRangeFromParsed(t,e,r,n){super.updateRangeFromParsed(t,e,r,n);const o=r._custom;o&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:r,vScale:n}=e,o=this.getParsed(t),i=o._custom,a=sn(i)?"["+i.start+", "+i.end+"]":""+n.getLabelForValue(o[n.axis]);return{label:""+r.getLabelForValue(o[r.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,r,n){const o="reset"===n,{index:i,_cachedMeta:{vScale:a}}=this,s=a.getBasePixel(),c=a.isHorizontal(),l=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(e,n);for(let f=e;f<e+r;f++){const e=this.getParsed(f),r=o||nt(e[a.axis])?{base:s,head:s}:this._calculateBarValuePixels(f),h=this._calculateBarIndexPixels(f,l),p=(e._stacks||{})[a.axis],g={horizontal:c,base:r.base,enableBorderRadius:!p||sn(e._custom)||i===p._top||i===p._bottom,x:c?r.head:h.center,y:c?h.center:r.head,height:c?h.size:Math.abs(r.size),width:c?Math.abs(r.size):h.size};d&&(g.options=u||this.resolveDataElementOptions(f,t[f].active?"active":n));const m=g.options||t[f].options;cn(g,m,p,i),dn(g,m,l.ratio),this.updateElement(t[f],f,g,n)}}_getStacks(t,e){const{iScale:r}=this._cachedMeta,n=r.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),o=r.options.stacked,i=[],a=this._cachedMeta.controller.getParsed(e),s=a&&a[r.axis],c=t=>{const e=t._parsed.find((t=>t[r.axis]===s)),n=e&&e[t.vScale.axis];if(nt(n)||isNaN(n))return!0};for(const r of n)if((void 0===e||!c(r))&&((!1===o||-1===i.indexOf(r.stack)||void 0===o&&void 0===r.stack)&&i.push(r.stack),r.index===t))break;return i.length||i.push(void 0),i}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,r){const n=this._getStacks(t,r),o=void 0!==e?n.indexOf(e):-1;return-1===o?n.length-1:o}_getRuler(){const t=this.options,e=this._cachedMeta,r=e.iScale,n=[];let o,i;for(o=0,i=e.data.length;o<i;++o)n.push(r.getPixelForValue(this.getParsed(o)[r.axis],o));const a=t.barThickness;return{min:a||nn(e),pixels:n,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:r,index:n},options:{base:o,minBarLength:i}}=this,a=o||0,s=this.getParsed(t),c=s._custom,l=sn(c);let u,d,f=s[e.axis],h=0,p=r?this.applyStack(e,s,r):f;p!==f&&(h=p-f,p=f),l&&(f=c.barStart,p=c.barEnd-c.barStart,0!==f&&Rt(f)!==Rt(c.barEnd)&&(h=0),h+=f);const g=nt(o)||l?h:o;let m=e.getPixelForValue(g);if(u=this.chart.getDataVisibility(t)?e.getPixelForValue(h+p):m,d=u-m,Math.abs(d)<i){d=function(t,e,r){return 0!==t?Rt(t):(e.isHorizontal()?1:-1)*(e.min>=r?1:-1)}(d,e,a)*i,f===a&&(m-=d/2);const t=e.getPixelForDecimal(0),o=e.getPixelForDecimal(1),c=Math.min(t,o),h=Math.max(t,o);m=Math.max(Math.min(m,h),c),u=m+d,r&&!l&&(s._stacks[e.axis]._visualValues[n]=e.getValueForPixel(u)-e.getValueForPixel(m))}if(m===e.getPixelForValue(a)){const t=Rt(d)*e.getLineWidthForValue(a)/2;m+=t,d-=t}return{size:d,base:m,head:u,center:u+d/2}}_calculateBarIndexPixels(t,e){const r=e.scale,n=this.options,o=n.skipNull,i=ct(n.maxBarThickness,1/0);let a,s;if(e.grouped){const r=o?this._getStackCount(t):e.stackCount,c="flex"===n.barThickness?function(t,e,r,n){const o=e.pixels,i=o[t];let a=t>0?o[t-1]:null,s=t<o.length-1?o[t+1]:null;const c=r.categoryPercentage;null===a&&(a=i-(null===s?e.end-e.start:s-i)),null===s&&(s=i+i-a);const l=i-(i-Math.min(a,s))/2*c;return{chunk:Math.abs(s-a)/2*c/n,ratio:r.barPercentage,start:l}}(t,e,n,r):function(t,e,r,n){const o=r.barThickness;let i,a;return nt(o)?(i=e.min*r.categoryPercentage,a=r.barPercentage):(i=o*n,a=1),{chunk:i/n,ratio:a,start:e.pixels[t]-i/2}}(t,e,n,r),l=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);a=c.start+c.chunk*l+c.chunk/2,s=Math.min(i,c.chunk*c.ratio)}else a=r.getPixelForValue(this.getParsed(t)[r.axis],t),s=Math.min(i,e.min*e.ratio);return{base:a-s/2,head:a+s/2,center:a,size:s}}draw(){const t=this._cachedMeta,e=t.vScale,r=t.data,n=r.length;let o=0;for(;o<n;++o)null===this.getParsed(o)[e.axis]||r[o].hidden||r[o].draw(this._ctx)}}class hn extends rn{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:r,color:n}}=t.legend.options;return e.labels.map(((e,o)=>{const i=t.getDatasetMeta(0).controller.getStyle(o);return{text:e,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,fontColor:n,lineWidth:i.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(o),index:o}}))}return[]}},onClick(t,e,r){r.chart.toggleDataVisibility(e.index),r.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const r=this.getDataset().data,n=this._cachedMeta;if(!1===this._parsing)n._parsed=r;else{let o,i,a=t=>+r[t];if(it(r[t])){const{key:t="value"}=this._parsing;a=e=>+wt(r[e],t)}for(o=t,i=t+e;o<i;++o)n._parsed[o]=a(o)}}_getRotation(){return Lt(this.options.rotation-90)}_getCircumference(){return Lt(this.options.circumference)}_getRotationExtents(){let t=Ot,e=-Ot;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const n=this.chart.getDatasetMeta(r).controller,o=n._getRotation(),i=n._getCircumference();t=Math.min(t,o),e=Math.max(e,o+i)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:r}=e,n=this._cachedMeta,o=n.data,i=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(r.width,r.height)-i)/2,0),s=Math.min((c=this.options.cutout,l=a,"string"==typeof c&&c.endsWith("%")?parseFloat(c)/100:+c/l),1);var c,l;const u=this._getRingWeight(this.index),{circumference:d,rotation:f}=this._getRotationExtents(),{ratioX:h,ratioY:p,offsetX:g,offsetY:m}=function(t,e,r){let n=1,o=1,i=0,a=0;if(e<Ot){const s=t,c=s+e,l=Math.cos(s),u=Math.sin(s),d=Math.cos(c),f=Math.sin(c),h=(t,e,n)=>Yt(t,s,c,!0)?1:Math.max(e,e*r,n,n*r),p=(t,e,n)=>Yt(t,s,c,!0)?-1:Math.min(e,e*r,n,n*r),g=h(0,l,d),m=h(jt,u,f),b=p(St,l,d),y=p(St+jt,u,f);n=(g-b)/2,o=(m-y)/2,i=-(g+b)/2,a=-(m+y)/2}return{ratioX:n,ratioY:o,offsetX:i,offsetY:a}}(f,d,s),b=(r.width-i)/h,y=(r.height-i)/p,v=Math.max(Math.min(b,y)/2,0),w=lt(this.options.radius,v),x=(w-Math.max(w*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*w,this.offsetY=m*w,n.total=this.calculateTotal(),this.outerRadius=w-x*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-x*u,0),this.updateElements(o,0,o.length,t)}_circumference(t,e){const r=this.options,n=this._cachedMeta,o=this._getCircumference();return e&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||null===n._parsed[t]||n.data[t].hidden?0:this.calculateCircumference(n._parsed[t]*o/Ot)}updateElements(t,e,r,n){const o="reset"===n,i=this.chart,a=i.chartArea,s=i.options.animation,c=(a.left+a.right)/2,l=(a.top+a.bottom)/2,u=o&&s.animateScale,d=u?0:this.innerRadius,f=u?0:this.outerRadius,{sharedOptions:h,includeOptions:p}=this._getSharedOptions(e,n);let g,m=this._getRotation();for(g=0;g<e;++g)m+=this._circumference(g,o);for(g=e;g<e+r;++g){const e=this._circumference(g,o),r=t[g],i={x:c+this.offsetX,y:l+this.offsetY,startAngle:m,endAngle:m+e,circumference:e,outerRadius:f,innerRadius:d};p&&(i.options=h||this.resolveDataElementOptions(g,r.active?"active":n)),m+=e,this.updateElement(r,g,i,n)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let r,n=0;for(r=0;r<e.length;r++){const o=t._parsed[r];null===o||isNaN(o)||!this.chart.getDataVisibility(r)||e[r].hidden||(n+=Math.abs(o))}return n}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?Ot*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,r=this.chart,n=r.data.labels||[],o=ge(e._parsed[t],r.options.locale);return{label:n[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const r=this.chart;let n,o,i,a,s;if(!t)for(n=0,o=r.data.datasets.length;n<o;++n)if(r.isDatasetVisible(n)){i=r.getDatasetMeta(n),t=i.data,a=i.controller;break}if(!t)return 0;for(n=0,o=t.length;n<o;++n)s=a.resolveDataElementOptions(n),"inner"!==s.borderAlign&&(e=Math.max(e,s.borderWidth||0,s.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let r=0,n=t.length;r<n;++r){const t=this.resolveDataElementOptions(r);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(e+=this._getRingWeight(r));return e}_getRingWeight(t){return Math.max(ct(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class pn extends rn{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:r,data:n=[],_dataset:o}=e,i=this.chart._animationsDisabled;let{start:a,count:s}=function(t,e,r){const n=e.length;let o=0,i=n;if(t._sorted){const{iScale:a,_parsed:s}=t,c=a.axis,{min:l,max:u,minDefined:d,maxDefined:f}=a.getUserBounds();d&&(o=Xt(Math.min(Gt(s,c,l).lo,r?n:Gt(e,c,a.getPixelForValue(l)).lo),0,n-1)),i=f?Xt(Math.max(Gt(s,a.axis,u,!0).hi+1,r?0:Gt(e,c,a.getPixelForValue(u),!0).hi+1),o,n)-o:n-o}return{start:o,count:i}}(e,n,i);this._drawStart=a,this._drawCount=s,function(t){const{xScale:e,yScale:r,_scaleRanges:n}=t,o={xmin:e.min,xmax:e.max,ymin:r.min,ymax:r.max};if(!n)return t._scaleRanges=o,!0;const i=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==r.min||n.ymax!==r.max;return Object.assign(n,o),i}(e)&&(a=0,s=n.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!o._decimated,r.points=n;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(r,void 0,{animated:!i,options:c},t),this.updateElements(n,a,s,t)}updateElements(t,e,r,n){const o="reset"===n,{iScale:i,vScale:a,_stacked:s,_dataset:c}=this._cachedMeta,{sharedOptions:l,includeOptions:u}=this._getSharedOptions(e,n),d=i.axis,f=a.axis,{spanGaps:h,segment:p}=this.options,g=Ft(h)?h:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||o||"none"===n,b=e+r,y=t.length;let v=e>0&&this.getParsed(e-1);for(let r=0;r<y;++r){const h=t[r],y=m?h:{};if(r<e||r>=b){y.skip=!0;continue}const w=this.getParsed(r),x=nt(w[f]),_=y[d]=i.getPixelForValue(w[d],r),k=y[f]=o||x?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,w,s):w[f],r);y.skip=isNaN(_)||isNaN(k)||x,y.stop=r>0&&Math.abs(w[d]-v[d])>g,p&&(y.parsed=w,y.raw=c.data[r]),u&&(y.options=l||this.resolveDataElementOptions(r,h.active?"active":n)),m||this.updateElement(h,r,y,n),v=w}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,r=e.options&&e.options.borderWidth||0,n=t.data||[];if(!n.length)return r;const o=n[0].size(this.resolveDataElementOptions(0)),i=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(r,o,i)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}class gn extends hn{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}function mn(t,e,r,n){const{controller:o,data:i,_sorted:a}=t,s=o._cachedMeta.iScale;if(s&&e===s.axis&&"r"!==e&&a&&i.length){const t=s._reversePixels?Zt:Gt;if(!n)return t(i,e,r);if(o._sharedOptions){const n=i[0],o="function"==typeof n.getRange&&n.getRange(e);if(o){const n=t(i,e,r-o),a=t(i,e,r+o);return{lo:n.lo,hi:a.hi}}}}return{lo:0,hi:i.length-1}}function bn(t,e,r,n,o){const i=t.getSortedVisibleDatasetMetas(),a=r[e];for(let t=0,r=i.length;t<r;++t){const{index:r,data:s}=i[t],{lo:c,hi:l}=mn(i[t],e,a,o);for(let t=c;t<=l;++t){const e=s[t];e.skip||n(e,r,t)}}}function yn(t,e,r,n,o){const i=[];if(!o&&!t.isPointInArea(e))return i;return bn(t,r,e,(function(r,a,s){(o||Ce(r,t.chartArea,0))&&r.inRange(e.x,e.y,n)&&i.push({element:r,datasetIndex:a,index:s})}),!0),i}function vn(t,e,r,n,o,i){let a=[];const s=function(t){const e=-1!==t.indexOf("x"),r=-1!==t.indexOf("y");return function(t,n){const o=e?Math.abs(t.x-n.x):0,i=r?Math.abs(t.y-n.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(i,2))}}(r);let c=Number.POSITIVE_INFINITY;return bn(t,r,e,(function(r,l,u){const d=r.inRange(e.x,e.y,o);if(n&&!d)return;const f=r.getCenterPoint(o);if(!(!!i||t.isPointInArea(f))&&!d)return;const h=s(e,f);h<c?(a=[{element:r,datasetIndex:l,index:u}],c=h):h===c&&a.push({element:r,datasetIndex:l,index:u})})),a}function wn(t,e,r,n,o,i){return i||t.isPointInArea(e)?"r"!==r||n?vn(t,e,r,n,o,i):function(t,e,r,n){let o=[];return bn(t,r,e,(function(t,r,i){const{startAngle:a,endAngle:s}=t.getProps(["startAngle","endAngle"],n),{angle:c}=Ht(t,{x:e.x,y:e.y});Yt(c,a,s)&&o.push({element:t,datasetIndex:r,index:i})})),o}(t,e,r,o):[]}function xn(t,e,r,n,o){const i=[],a="x"===r?"inXRange":"inYRange";let s=!1;return bn(t,r,e,((t,n,c)=>{t[a]&&t[a](e[r],o)&&(i.push({element:t,datasetIndex:n,index:c}),s=s||t.inRange(e.x,e.y,o))})),n&&!s?[]:i}var _n={evaluateInteractionItems:bn,modes:{index(t,e,r,n){const o=xr(e,t),i=r.axis||"x",a=r.includeInvisible||!1,s=r.intersect?yn(t,o,i,n,a):wn(t,o,i,!1,n,a),c=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=s[0].index,r=t.data[e];r&&!r.skip&&c.push({element:r,datasetIndex:t.index,index:e})})),c):[]},dataset(t,e,r,n){const o=xr(e,t),i=r.axis||"xy",a=r.includeInvisible||!1;let s=r.intersect?yn(t,o,i,n,a):wn(t,o,i,!1,n,a);if(s.length>0){const e=s[0].datasetIndex,r=t.getDatasetMeta(e).data;s=[];for(let t=0;t<r.length;++t)s.push({element:r[t],datasetIndex:e,index:t})}return s},point:(t,e,r,n)=>yn(t,xr(e,t),r.axis||"xy",n,r.includeInvisible||!1),nearest(t,e,r,n){const o=xr(e,t),i=r.axis||"xy",a=r.includeInvisible||!1;return wn(t,o,i,r.intersect,n,a)},x:(t,e,r,n)=>xn(t,xr(e,t),"x",r.intersect,n),y:(t,e,r,n)=>xn(t,xr(e,t),"y",r.intersect,n)}};const kn=["left","top","right","bottom"];function En(t,e){return t.filter((t=>t.pos===e))}function Sn(t,e){return t.filter((t=>-1===kn.indexOf(t.pos)&&t.box.axis===e))}function On(t,e){return t.sort(((t,r)=>{const n=e?r:t,o=e?t:r;return n.weight===o.weight?n.index-o.index:n.weight-o.weight}))}function Tn(t,e){const r=function(t){const e={};for(const r of t){const{stack:t,pos:n,stackWeight:o}=r;if(!t||!kn.includes(n))continue;const i=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});i.count++,i.weight+=o}return e}(t),{vBoxMaxWidth:n,hBoxMaxHeight:o}=e;let i,a,s;for(i=0,a=t.length;i<a;++i){s=t[i];const{fullSize:a}=s.box,c=r[s.stack],l=c&&s.stackWeight/c.weight;s.horizontal?(s.width=l?l*n:a&&e.availableWidth,s.height=o):(s.width=n,s.height=l?l*o:a&&e.availableHeight)}return r}function An(t,e,r,n){return Math.max(t[r],e[r])+Math.max(t[n],e[n])}function Cn(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function jn(t,e,r,n){const{pos:o,box:i}=r,a=t.maxPadding;if(!it(o)){r.size&&(t[o]-=r.size);const e=n[r.stack]||{size:0,count:1};e.size=Math.max(e.size,r.horizontal?i.height:i.width),r.size=e.size/e.count,t[o]+=r.size}i.getPadding&&Cn(a,i.getPadding());const s=Math.max(0,e.outerWidth-An(a,t,"left","right")),c=Math.max(0,e.outerHeight-An(a,t,"top","bottom")),l=s!==t.w,u=c!==t.h;return t.w=s,t.h=c,r.horizontal?{same:l,other:u}:{same:u,other:l}}function Pn(t,e){const r=e.maxPadding;function n(t){const n={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{n[t]=Math.max(e[t],r[t])})),n}return n(t?["left","right"]:["top","bottom"])}function Mn(t,e,r,n){const o=[];let i,a,s,c,l,u;for(i=0,a=t.length,l=0;i<a;++i){s=t[i],c=s.box,c.update(s.width||e.w,s.height||e.h,Pn(s.horizontal,e));const{same:a,other:d}=jn(e,r,s,n);l|=a&&o.length,u=u||d,c.fullSize||o.push(s)}return l&&Mn(o,e,r,n)||u}function Dn(t,e,r,n,o){t.top=r,t.left=e,t.right=e+n,t.bottom=r+o,t.width=n,t.height=o}function Rn(t,e,r,n){const o=r.padding;let{x:i,y:a}=e;for(const s of t){const t=s.box,c=n[s.stack]||{count:1,placed:0,weight:1},l=s.stackWeight/c.weight||1;if(s.horizontal){const n=e.w*l,i=c.size||t.height;_t(c.start)&&(a=c.start),t.fullSize?Dn(t,o.left,a,r.outerWidth-o.right-o.left,i):Dn(t,e.left+c.placed,a,n,i),c.start=a,c.placed+=n,a=t.bottom}else{const n=e.h*l,a=c.size||t.width;_t(c.start)&&(i=c.start),t.fullSize?Dn(t,i,o.top,a,r.outerHeight-o.bottom-o.top):Dn(t,i,e.top+c.placed,a,n),c.start=i,c.placed+=n,i=t.right}}e.x=i,e.y=a}var In={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const r=t.boxes?t.boxes.indexOf(e):-1;-1!==r&&t.boxes.splice(r,1)},configure(t,e,r){e.fullSize=r.fullSize,e.position=r.position,e.weight=r.weight},update(t,e,r,n){if(!t)return;const o=We(t.options.layout.padding),i=Math.max(e-o.width,0),a=Math.max(r-o.height,0),s=function(t){const e=function(t){const e=[];let r,n,o,i,a,s;for(r=0,n=(t||[]).length;r<n;++r)o=t[r],({position:i,options:{stack:a,stackWeight:s=1}}=o),e.push({index:r,box:o,pos:i,horizontal:o.isHorizontal(),weight:o.weight,stack:a&&i+a,stackWeight:s});return e}(t),r=On(e.filter((t=>t.box.fullSize)),!0),n=On(En(e,"left"),!0),o=On(En(e,"right")),i=On(En(e,"top"),!0),a=On(En(e,"bottom")),s=Sn(e,"x"),c=Sn(e,"y");return{fullSize:r,leftAndTop:n.concat(i),rightAndBottom:o.concat(c).concat(a).concat(s),chartArea:En(e,"chartArea"),vertical:n.concat(o).concat(c),horizontal:i.concat(a).concat(s)}}(t.boxes),c=s.vertical,l=s.horizontal;dt(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const u=c.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,d=Object.freeze({outerWidth:e,outerHeight:r,padding:o,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/u,hBoxMaxHeight:a/2}),f=Object.assign({},o);Cn(f,We(n));const h=Object.assign({maxPadding:f,w:i,h:a,x:o.left,y:o.top},o),p=Tn(c.concat(l),d);Mn(s.fullSize,h,d,p),Mn(c,h,d,p),Mn(l,h,d,p)&&Mn(c,h,d,p),function(t){const e=t.maxPadding;function r(r){const n=Math.max(e[r]-t[r],0);return t[r]+=n,n}t.y+=r("top"),t.x+=r("left"),r("right"),r("bottom")}(h),Rn(s.leftAndTop,h,d,p),h.x+=h.w,h.y+=h.h,Rn(s.rightAndBottom,h,d,p),t.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},dt(s.chartArea,(e=>{const r=e.box;Object.assign(r,t.chartArea),r.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})}))}};class Nn{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,r){}removeEventListener(t,e,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,r,n){return e=Math.max(0,e||t.width),r=r||t.height,{width:e,height:Math.max(0,n?Math.floor(e/n):r)}}isAttached(t){return!0}updateConfig(t){}}class Fn extends Nn{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const zn="$chartjs",Ln={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Bn=t=>null===t||""===t;const Vn=!!Sr&&{passive:!0};function Hn(t,e,r){t&&t.canvas&&t.canvas.removeEventListener(e,r,Vn)}function $n(t,e){for(const r of t)if(r===e||r.contains(e))return!0}function Un(t,e,r){const n=t.canvas,o=new MutationObserver((t=>{let e=!1;for(const r of t)e=e||$n(r.addedNodes,n),e=e&&!$n(r.removedNodes,n);e&&r()}));return o.observe(document,{childList:!0,subtree:!0}),o}function Wn(t,e,r){const n=t.canvas,o=new MutationObserver((t=>{let e=!1;for(const r of t)e=e||$n(r.removedNodes,n),e=e&&!$n(r.addedNodes,n);e&&r()}));return o.observe(document,{childList:!0,subtree:!0}),o}const Yn=new Map;let Xn=0;function qn(){const t=window.devicePixelRatio;t!==Xn&&(Xn=t,Yn.forEach(((e,r)=>{r.currentDevicePixelRatio!==t&&e()})))}function Kn(t,e,r){const n=t.canvas,o=n&&mr(n);if(!o)return;const i=re(((t,e)=>{const n=o.clientWidth;r(t,e),n<o.clientWidth&&r()}),window),a=new ResizeObserver((t=>{const e=t[0],r=e.contentRect.width,n=e.contentRect.height;0===r&&0===n||i(r,n)}));return a.observe(o),function(t,e){Yn.size||window.addEventListener("resize",qn),Yn.set(t,e)}(t,i),a}function Gn(t,e,r){r&&r.disconnect(),"resize"===e&&function(t){Yn.delete(t),Yn.size||window.removeEventListener("resize",qn)}(t)}function Zn(t,e,r){const n=t.canvas,o=re((e=>{null!==t.ctx&&r(function(t,e){const r=Ln[t.type]||t.type,{x:n,y:o}=xr(t,e);return{type:r,chart:e,native:t,x:void 0!==n?n:null,y:void 0!==o?o:null}}(e,t))}),t);return function(t,e,r){t&&t.addEventListener(e,r,Vn)}(n,e,o),o}class Qn extends Nn{acquireContext(t,e){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(function(t,e){const r=t.style,n=t.getAttribute("height"),o=t.getAttribute("width");if(t[zn]={initial:{height:n,width:o,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",r.boxSizing=r.boxSizing||"border-box",Bn(o)){const e=Or(t,"width");void 0!==e&&(t.width=e)}if(Bn(n))if(""===t.style.height)t.height=t.width/(e||2);else{const e=Or(t,"height");void 0!==e&&(t.height=e)}}(t,e),r):null}releaseContext(t){const e=t.canvas;if(!e[zn])return!1;const r=e[zn].initial;["height","width"].forEach((t=>{const n=r[t];nt(n)?e.removeAttribute(t):e.setAttribute(t,n)}));const n=r.style||{};return Object.keys(n).forEach((t=>{e.style[t]=n[t]})),e.width=e.width,delete e[zn],!0}addEventListener(t,e,r){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),o={attach:Un,detach:Wn,resize:Kn}[e]||Zn;n[e]=o(t,e,r)}removeEventListener(t,e){const r=t.$proxies||(t.$proxies={}),n=r[e];if(!n)return;({attach:Gn,detach:Gn,resize:Gn}[e]||Hn)(t,e,n),r[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,r,n){return kr(t,e,r,n)}isAttached(t){const e=t&&mr(t);return!(!e||!e.isConnected)}}class Jn{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:r}=this.getProps(["x","y"],t);return{x:e,y:r}}hasValue(){return Ft(this.x)&&Ft(this.y)}getProps(t,e){const r=this.$animations;if(!e||!r)return this;const n={};return t.forEach((t=>{n[t]=r[t]&&r[t].active()?r[t]._to:this[t]})),n}}function to(t,e){const r=t.options.ticks,n=function(t){const e=t.options.offset,r=t._tickSize(),n=t._length/r+(e?0:1),o=t._maxLength/r;return Math.floor(Math.min(n,o))}(t),o=Math.min(r.maxTicksLimit||n,n),i=r.major.enabled?function(t){const e=[];let r,n;for(r=0,n=t.length;r<n;r++)t[r].major&&e.push(r);return e}(e):[],a=i.length,s=i[0],c=i[a-1],l=[];if(a>o)return function(t,e,r,n){let o,i=0,a=r[0];for(n=Math.ceil(n),o=0;o<t.length;o++)o===a&&(e.push(t[o]),i++,a=r[i*n])}(e,l,i,a/o),l;const u=function(t,e,r){const n=function(t){const e=t.length;let r,n;if(e<2)return!1;for(n=t[0],r=1;r<e;++r)if(t[r]-t[r-1]!==n)return!1;return n}(t),o=e.length/r;if(!n)return Math.max(o,1);const i=function(t){const e=[],r=Math.sqrt(t);let n;for(n=1;n<r;n++)t%n==0&&(e.push(n),e.push(t/n));return r===(0|r)&&e.push(r),e.sort(((t,e)=>t-e)).pop(),e}(n);for(let t=0,e=i.length-1;t<e;t++){const e=i[t];if(e>o)return e}return Math.max(o,1)}(i,e,o);if(a>0){let t,r;const n=a>1?Math.round((c-s)/(a-1)):null;for(eo(e,l,u,nt(n)?0:s-n,s),t=0,r=a-1;t<r;t++)eo(e,l,u,i[t],i[t+1]);return eo(e,l,u,c,nt(n)?e.length:c+n),l}return eo(e,l,u),l}function eo(t,e,r,n,o){const i=ct(n,0),a=Math.min(ct(o,t.length),t.length);let s,c,l,u=0;for(r=Math.ceil(r),o&&(s=o-n,r=s/Math.floor(s/r)),l=i;l<0;)u++,l=Math.round(i+u*r);for(c=Math.max(i,0);c<a;c++)c===l&&(e.push(t[c]),u++,l=Math.round(i+u*r))}const ro=(t,e,r)=>"top"===e||"left"===e?t[e]+r:t[e]-r,no=(t,e)=>Math.min(e||t,t);function oo(t,e){const r=[],n=t.length/e,o=t.length;let i=0;for(;i<o;i+=n)r.push(t[Math.floor(i)]);return r}function io(t,e,r){const n=t.ticks.length,o=Math.min(e,n-1),i=t._startPixel,a=t._endPixel,s=1e-6;let c,l=t.getPixelForTick(o);if(!(r&&(c=1===n?Math.max(l-i,a-l):0===e?(t.getPixelForTick(1)-l)/2:(l-t.getPixelForTick(o-1))/2,l+=o<e?c:-c,l<i-s||l>a+s)))return l}function ao(t){return t.drawTicks?t.tickLength:0}function so(t,e){if(!t.display)return 0;const r=Ye(t.font,e),n=We(t.padding);return(ot(t.text)?t.text.length:1)*r.lineHeight+n.height}function co(t,e,r){let n=ne(t);return(r&&"right"!==e||!r&&"right"===e)&&(n=(t=>"left"===t?"right":"right"===t?"left":t)(n)),n}class lo extends Jn{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:r,_suggestedMax:n}=this;return t=st(t,Number.POSITIVE_INFINITY),e=st(e,Number.NEGATIVE_INFINITY),r=st(r,Number.POSITIVE_INFINITY),n=st(n,Number.NEGATIVE_INFINITY),{min:st(t,r),max:st(e,n),minDefined:at(t),maxDefined:at(e)}}getMinMax(t){let e,{min:r,max:n,minDefined:o,maxDefined:i}=this.getUserBounds();if(o&&i)return{min:r,max:n};const a=this.getMatchingVisibleMetas();for(let s=0,c=a.length;s<c;++s)e=a[s].controller.getMinMax(this,t),o||(r=Math.min(r,e.min)),i||(n=Math.max(n,e.max));return r=i&&r>n?n:r,n=o&&r>n?r:n,{min:st(r,st(n,r)),max:st(n,st(r,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){ut(this.options.beforeUpdate,[this])}update(t,e,r){const{beginAtZero:n,grace:o,ticks:i}=this.options,a=i.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,r){const{min:n,max:o}=t,i=lt(e,(o-n)/2),a=(t,e)=>r&&0===t?0:t+e;return{min:a(n,-Math.abs(i)),max:a(o,i)}}(this,o,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=a<this.ticks.length;this._convertTicksToLabels(s?oo(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),i.display&&(i.autoSkip||"auto"===i.source)&&(this.ticks=to(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,r=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,r=!r),this._startPixel=t,this._endPixel=e,this._reversePixels=r,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){ut(this.options.afterUpdate,[this])}beforeSetDimensions(){ut(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){ut(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),ut(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){ut(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let r,n,o;for(r=0,n=t.length;r<n;r++)o=t[r],o.label=ut(e.callback,[o.value,r,t],this)}afterTickToLabelConversion(){ut(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){ut(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,r=no(this.ticks.length,t.ticks.maxTicksLimit),n=e.minRotation||0,o=e.maxRotation;let i,a,s,c=n;if(!this._isVisible()||!e.display||n>=o||r<=1||!this.isHorizontal())return void(this.labelRotation=n);const l=this._getLabelSizes(),u=l.widest.width,d=l.highest.height,f=Xt(this.chart.width-u,0,this.maxWidth);i=t.offset?this.maxWidth/r:f/(r-1),u+6>i&&(i=f/(r-(t.offset?.5:1)),a=this.maxHeight-ao(t.grid)-e.padding-so(t.title,this.chart.options.font),s=Math.sqrt(u*u+d*d),c=Bt(Math.min(Math.asin(Xt((l.highest.height+6)/i,-1,1)),Math.asin(Xt(a/s,-1,1))-Math.asin(Xt(d/s,-1,1)))),c=Math.max(n,Math.min(o,c))),this.labelRotation=c}afterCalculateLabelRotation(){ut(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){ut(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:r,title:n,grid:o}}=this,i=this._isVisible(),a=this.isHorizontal();if(i){const i=so(n,e.options.font);if(a?(t.width=this.maxWidth,t.height=ao(o)+i):(t.height=this.maxHeight,t.width=ao(o)+i),r.display&&this.ticks.length){const{first:e,last:n,widest:o,highest:i}=this._getLabelSizes(),s=2*r.padding,c=Lt(this.labelRotation),l=Math.cos(c),u=Math.sin(c);if(a){const e=r.mirror?0:u*o.width+l*i.height;t.height=Math.min(this.maxHeight,t.height+e+s)}else{const e=r.mirror?0:l*o.width+u*i.height;t.width=Math.min(this.maxWidth,t.width+e+s)}this._calculatePadding(e,n,u,l)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,r,n){const{ticks:{align:o,padding:i},position:a}=this.options,s=0!==this.labelRotation,c="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,l=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;s?c?(u=n*t.width,d=r*e.height):(u=r*t.height,d=n*e.width):"start"===o?d=e.width:"end"===o?u=t.width:"inner"!==o&&(u=t.width/2,d=e.width/2),this.paddingLeft=Math.max((u-a+i)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-l+i)*this.width/(this.width-l),0)}else{let r=e.height/2,n=t.height/2;"start"===o?(r=0,n=t.height):"end"===o&&(r=e.height,n=0),this.paddingTop=r+i,this.paddingBottom=n+i}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){ut(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,r;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,r=t.length;e<r;e++)nt(t[e].label)&&(t.splice(e,1),r--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let r=this.ticks;e<r.length&&(r=oo(r,e)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,r){const{ctx:n,_longestTextCache:o}=this,i=[],a=[],s=Math.floor(e/no(e,r));let c,l,u,d,f,h,p,g,m,b,y,v=0,w=0;for(c=0;c<e;c+=s){if(d=t[c].label,f=this._resolveTickFontOptions(c),n.font=h=f.string,p=o[h]=o[h]||{data:{},gc:[]},g=f.lineHeight,m=b=0,nt(d)||ot(d)){if(ot(d))for(l=0,u=d.length;l<u;++l)y=d[l],nt(y)||ot(y)||(m=Ee(n,p.data,p.gc,m,y),b+=g)}else m=Ee(n,p.data,p.gc,m,d),b=g;i.push(m),a.push(b),v=Math.max(m,v),w=Math.max(b,w)}!function(t,e){dt(t,(t=>{const r=t.gc,n=r.length/2;let o;if(n>e){for(o=0;o<n;++o)delete t.data[r[o]];r.splice(0,n)}}))}(o,e);const x=i.indexOf(v),_=a.indexOf(w),k=t=>({width:i[t]||0,height:a[t]||0});return{first:k(0),last:k(e-1),widest:k(x),highest:k(_),widths:i,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return Xt(this._alignToPixels?Se(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const r=e[t];return r.$context||(r.$context=function(t,e,r){return qe(t,{tick:r,index:e,type:"tick"})}(this.getContext(),t,r))}return this.$context||(this.$context=qe(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=Lt(this.labelRotation),r=Math.abs(Math.cos(e)),n=Math.abs(Math.sin(e)),o=this._getLabelSizes(),i=t.autoSkipPadding||0,a=o?o.widest.width+i:0,s=o?o.highest.height+i:0;return this.isHorizontal()?s*r>a*n?a/r:s/n:s*n<a*r?s/r:a/n}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,r=this.chart,n=this.options,{grid:o,position:i,border:a}=n,s=o.offset,c=this.isHorizontal(),l=this.ticks.length+(s?1:0),u=ao(o),d=[],f=a.setContext(this.getContext()),h=f.display?f.width:0,p=h/2,g=function(t){return Se(r,t,h)};let m,b,y,v,w,x,_,k,E,S,O,T;if("top"===i)m=g(this.bottom),x=this.bottom-u,k=m-p,S=g(t.top)+p,T=t.bottom;else if("bottom"===i)m=g(this.top),S=t.top,T=g(t.bottom)-p,x=m+p,k=this.top+u;else if("left"===i)m=g(this.right),w=this.right-u,_=m-p,E=g(t.left)+p,O=t.right;else if("right"===i)m=g(this.left),E=t.left,O=g(t.right)-p,w=m+p,_=this.left+u;else if("x"===e){if("center"===i)m=g((t.top+t.bottom)/2+.5);else if(it(i)){const t=Object.keys(i)[0],e=i[t];m=g(this.chart.scales[t].getPixelForValue(e))}S=t.top,T=t.bottom,x=m+p,k=x+u}else if("y"===e){if("center"===i)m=g((t.left+t.right)/2);else if(it(i)){const t=Object.keys(i)[0],e=i[t];m=g(this.chart.scales[t].getPixelForValue(e))}w=m-p,_=w-u,E=t.left,O=t.right}const A=ct(n.ticks.maxTicksLimit,l),C=Math.max(1,Math.ceil(l/A));for(b=0;b<l;b+=C){const t=this.getContext(b),e=o.setContext(t),n=a.setContext(t),i=e.lineWidth,l=e.color,u=n.dash||[],f=n.dashOffset,h=e.tickWidth,p=e.tickColor,g=e.tickBorderDash||[],m=e.tickBorderDashOffset;y=io(this,b,s),void 0!==y&&(v=Se(r,y,i),c?w=_=E=O=v:x=k=S=T=v,d.push({tx1:w,ty1:x,tx2:_,ty2:k,x1:E,y1:S,x2:O,y2:T,width:i,color:l,borderDash:u,borderDashOffset:f,tickWidth:h,tickColor:p,tickBorderDash:g,tickBorderDashOffset:m}))}return this._ticksLength=l,this._borderValue=m,d}_computeLabelItems(t){const e=this.axis,r=this.options,{position:n,ticks:o}=r,i=this.isHorizontal(),a=this.ticks,{align:s,crossAlign:c,padding:l,mirror:u}=o,d=ao(r.grid),f=d+l,h=u?-l:f,p=-Lt(this.labelRotation),g=[];let m,b,y,v,w,x,_,k,E,S,O,T,A="middle";if("top"===n)x=this.bottom-h,_=this._getXAxisLabelAlignment();else if("bottom"===n)x=this.top+h,_=this._getXAxisLabelAlignment();else if("left"===n){const t=this._getYAxisLabelAlignment(d);_=t.textAlign,w=t.x}else if("right"===n){const t=this._getYAxisLabelAlignment(d);_=t.textAlign,w=t.x}else if("x"===e){if("center"===n)x=(t.top+t.bottom)/2+f;else if(it(n)){const t=Object.keys(n)[0],e=n[t];x=this.chart.scales[t].getPixelForValue(e)+f}_=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===n)w=(t.left+t.right)/2-f;else if(it(n)){const t=Object.keys(n)[0],e=n[t];w=this.chart.scales[t].getPixelForValue(e)}_=this._getYAxisLabelAlignment(d).textAlign}"y"===e&&("start"===s?A="top":"end"===s&&(A="bottom"));const C=this._getLabelSizes();for(m=0,b=a.length;m<b;++m){y=a[m],v=y.label;const t=o.setContext(this.getContext(m));k=this.getPixelForTick(m)+o.labelOffset,E=this._resolveTickFontOptions(m),S=E.lineHeight,O=ot(v)?v.length:1;const e=O/2,r=t.color,s=t.textStrokeColor,l=t.textStrokeWidth;let d,f=_;if(i?(w=k,"inner"===_&&(f=m===b-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),T="top"===n?"near"===c||0!==p?-O*S+S/2:"center"===c?-C.highest.height/2-e*S+S:-C.highest.height+S/2:"near"===c||0!==p?S/2:"center"===c?C.highest.height/2-e*S:C.highest.height-O*S,u&&(T*=-1),0===p||t.showLabelBackdrop||(w+=S/2*Math.sin(p))):(x=k,T=(1-O)*S/2),t.showLabelBackdrop){const e=We(t.backdropPadding),r=C.heights[m],n=C.widths[m];let o=T-e.top,i=0-e.left;switch(A){case"middle":o-=r/2;break;case"bottom":o-=r}switch(_){case"center":i-=n/2;break;case"right":i-=n;break;case"inner":m===b-1?i-=n:m>0&&(i-=n/2)}d={left:i,top:o,width:n+e.width,height:r+e.height,color:t.backdropColor}}g.push({label:v,font:E,textOffset:T,options:{rotation:p,color:r,strokeColor:s,strokeWidth:l,textAlign:f,textBaseline:A,translation:[w,x],backdrop:d}})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-Lt(this.labelRotation))return"top"===t?"left":"right";let r="center";return"start"===e.align?r="left":"end"===e.align?r="right":"inner"===e.align&&(r="inner"),r}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:r,mirror:n,padding:o}}=this.options,i=t+o,a=this._getLabelSizes().widest.width;let s,c;return"left"===e?n?(c=this.right+o,"near"===r?s="left":"center"===r?(s="center",c+=a/2):(s="right",c+=a)):(c=this.right-i,"near"===r?s="right":"center"===r?(s="center",c-=a/2):(s="left",c=this.left)):"right"===e?n?(c=this.left+o,"near"===r?s="right":"center"===r?(s="center",c-=a/2):(s="left",c-=a)):(c=this.left+i,"near"===r?s="left":"center"===r?(s="center",c+=a/2):(s="right",c=this.right)):s="right",{textAlign:s,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:r,top:n,width:o,height:i}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(r,n,o,i),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const r=this.ticks.findIndex((e=>e.value===t));if(r>=0){return e.setContext(this.getContext(r)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,r=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,i;const a=(t,e,n)=>{n.width&&n.color&&(r.save(),r.lineWidth=n.width,r.strokeStyle=n.color,r.setLineDash(n.borderDash||[]),r.lineDashOffset=n.borderDashOffset,r.beginPath(),r.moveTo(t.x,t.y),r.lineTo(e.x,e.y),r.stroke(),r.restore())};if(e.display)for(o=0,i=n.length;o<i;++o){const t=n[o];e.drawOnChartArea&&a({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&a({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:r,grid:n}}=this,o=r.setContext(this.getContext()),i=r.display?o.width:0;if(!i)return;const a=n.setContext(this.getContext(0)).lineWidth,s=this._borderValue;let c,l,u,d;this.isHorizontal()?(c=Se(t,this.left,i)-i/2,l=Se(t,this.right,a)+a/2,u=d=s):(u=Se(t,this.top,i)-i/2,d=Se(t,this.bottom,a)+a/2,c=l=s),e.save(),e.lineWidth=o.width,e.strokeStyle=o.color,e.beginPath(),e.moveTo(c,u),e.lineTo(l,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,r=this._computeLabelArea();r&&je(e,r);const n=this.getLabelItems(t);for(const t of n){const r=t.options,n=t.font;Ne(e,t.label,0,t.textOffset,n,r)}r&&Pe(e)}drawTitle(){const{ctx:t,options:{position:e,title:r,reverse:n}}=this;if(!r.display)return;const o=Ye(r.font),i=We(r.padding),a=r.align;let s=o.lineHeight/2;"bottom"===e||"center"===e||it(e)?(s+=i.bottom,ot(r.text)&&(s+=o.lineHeight*(r.text.length-1))):s+=i.top;const{titleX:c,titleY:l,maxWidth:u,rotation:d}=function(t,e,r,n){const{top:o,left:i,bottom:a,right:s,chart:c}=t,{chartArea:l,scales:u}=c;let d,f,h,p=0;const g=a-o,m=s-i;if(t.isHorizontal()){if(f=oe(n,i,s),it(r)){const t=Object.keys(r)[0],n=r[t];h=u[t].getPixelForValue(n)+g-e}else h="center"===r?(l.bottom+l.top)/2+g-e:ro(t,r,e);d=s-i}else{if(it(r)){const t=Object.keys(r)[0],n=r[t];f=u[t].getPixelForValue(n)-m+e}else f="center"===r?(l.left+l.right)/2-m+e:ro(t,r,e);h=oe(n,a,o),p="left"===r?-jt:jt}return{titleX:f,titleY:h,maxWidth:d,rotation:p}}(this,s,e,a);Ne(t,r.text,0,0,o,{color:r.color,maxWidth:u,rotation:d,textAlign:co(a,e,n),textBaseline:"middle",translation:[c,l]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,r=ct(t.grid&&t.grid.z,-1),n=ct(t.border&&t.border.z,0);return this._isVisible()&&this.draw===lo.prototype.draw?[{z:r,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",n=[];let o,i;for(o=0,i=e.length;o<i;++o){const i=e[o];i[r]!==this.id||t&&i.type!==t||n.push(i)}return n}_resolveTickFontOptions(t){return Ye(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class uo{constructor(t,e,r){this.type=t,this.scope=e,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let r;(function(t){return"id"in t&&"defaults"in t})(e)&&(r=this.register(e));const n=this.items,o=t.id,i=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in n||(n[o]=t,function(t,e,r){const n=mt(Object.create(null),[r?ke.get(r):{},ke.get(e),t.defaults]);ke.set(e,n),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((r=>{const n=r.split("."),o=n.pop(),i=[t].concat(n).join("."),a=e[r].split("."),s=a.pop(),c=a.join(".");ke.route(i,o,c,s)}))}(e,t.defaultRoutes);t.descriptors&&ke.describe(e,t.descriptors)}(t,i,r),this.override&&ke.override(t.id,t.overrides)),i}get(t){return this.items[t]}unregister(t){const e=this.items,r=t.id,n=this.scope;r in e&&delete e[r],n&&r in ke[n]&&(delete ke[n][r],this.override&&delete ye[r])}}class fo{constructor(){this.controllers=new uo(rn,"datasets",!0),this.elements=new uo(Jn,"elements"),this.plugins=new uo(Object,"plugins"),this.scales=new uo(lo,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,r){[...e].forEach((e=>{const n=r||this._getRegistryForType(e);r||n.isForType(e)||n===this.plugins&&e.id?this._exec(t,n,e):dt(e,(e=>{const n=r||this._getRegistryForType(e);this._exec(t,n,e)}))}))}_exec(t,e,r){const n=xt(t);ut(r["before"+n],[],r),e[t](r),ut(r["after"+n],[],r)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const r=this._typedRegistries[e];if(r.isForType(t))return r}return this.plugins}_get(t,e,r){const n=e.get(t);if(void 0===n)throw new Error('"'+t+'" is not a registered '+r+".");return n}}var ho=new fo;class po{constructor(){this._init=[]}notify(t,e,r,n){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=n?this._descriptors(t).filter(n):this._descriptors(t),i=this._notify(o,t,e,r);return"afterDestroy"===e&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),i}_notify(t,e,r,n){n=n||{};for(const o of t){const t=o.plugin;if(!1===ut(t[r],[e,n,o.options],t)&&n.cancelable)return!1}return!0}invalidate(){nt(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const r=t&&t.config,n=ct(r.options&&r.options.plugins,{}),o=function(t){const e={},r=[],n=Object.keys(ho.plugins.items);for(let t=0;t<n.length;t++)r.push(ho.getPlugin(n[t]));const o=t.plugins||[];for(let t=0;t<o.length;t++){const n=o[t];-1===r.indexOf(n)&&(r.push(n),e[n.id]=!0)}return{plugins:r,localIds:e}}(r);return!1!==n||e?function(t,{plugins:e,localIds:r},n,o){const i=[],a=t.getContext();for(const s of e){const e=s.id,c=go(n[e],o);null!==c&&i.push({plugin:s,options:mo(t.config,{plugin:s,local:r[e]},c,a)})}return i}(t,o,n,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],r=this._cache,n=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(n(e,r),t,"stop"),this._notify(n(r,e),t,"start")}}function go(t,e){return e||!1!==t?!0===t?{}:t:null}function mo(t,{plugin:e,local:r},n,o){const i=t.pluginScopeKeys(e),a=t.getOptionScopes(n,i);return r&&e.defaults&&a.push(e.defaults),t.createResolver(a,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function bo(t,e){const r=ke.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||r.indexAxis||"x"}function yo(t){if("x"===t||"y"===t||"r"===t)return t}function vo(t,...e){if(yo(t))return t;for(const n of e){const e=n.axis||("top"===(r=n.position)||"bottom"===r?"x":"left"===r||"right"===r?"y":void 0)||t.length>1&&yo(t[0].toLowerCase());if(e)return e}var r;throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function wo(t,e,r){if(r[e+"AxisID"]===t)return{axis:e}}function xo(t,e){const r=ye[t.type]||{scales:{}},n=e.scales||{},o=bo(t.type,e),i=Object.create(null);return Object.keys(n).forEach((e=>{const a=n[e];if(!it(a))return console.error(`Invalid scale configuration for scale: ${e}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const s=vo(e,a,function(t,e){if(e.data&&e.data.datasets){const r=e.data.datasets.filter((e=>e.xAxisID===t||e.yAxisID===t));if(r.length)return wo(t,"x",r[0])||wo(t,"y",r[0])}return{}}(e,t),ke.scales[a.type]),c=function(t,e){return t===e?"_index_":"_value_"}(s,o),l=r.scales||{};i[e]=bt(Object.create(null),[{axis:s},a,l[s],l[c]])})),t.data.datasets.forEach((r=>{const o=r.type||t.type,a=r.indexAxis||bo(o,e),s=(ye[o]||{}).scales||{};Object.keys(s).forEach((t=>{const e=function(t,e){let r=t;return"_index_"===t?r=e:"_value_"===t&&(r="x"===e?"y":"x"),r}(t,a),o=r[e+"AxisID"]||e;i[o]=i[o]||Object.create(null),bt(i[o],[{axis:e},n[o],s[t]])}))})),Object.keys(i).forEach((t=>{const e=i[t];bt(e,[ke.scales[e.type],ke.scale])})),i}function _o(t){const e=t.options||(t.options={});e.plugins=ct(e.plugins,{}),e.scales=xo(t,e)}function ko(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Eo=new Map,So=new Set;function Oo(t,e){let r=Eo.get(t);return r||(r=e(),Eo.set(t,r),So.add(r)),r}const To=(t,e,r)=>{const n=wt(e,r);void 0!==n&&t.add(n)};class Ao{constructor(t){this._config=function(t){return(t=t||{}).data=ko(t.data),_o(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=ko(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),_o(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Oo(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Oo(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Oo(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Oo(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const r=this._scopeCache;let n=r.get(t);return n&&!e||(n=new Map,r.set(t,n)),n}getOptionScopes(t,e,r){const{options:n,type:o}=this,i=this._cachedScopes(t,r),a=i.get(e);if(a)return a;const s=new Set;e.forEach((e=>{t&&(s.add(t),e.forEach((e=>To(s,t,e)))),e.forEach((t=>To(s,n,t))),e.forEach((t=>To(s,ye[o]||{},t))),e.forEach((t=>To(s,ke,t))),e.forEach((t=>To(s,ve,t)))}));const c=Array.from(s);return 0===c.length&&c.push(Object.create(null)),So.has(e)&&i.set(e,c),c}chartOptionScopes(){const{options:t,type:e}=this;return[t,ye[e]||{},ke.datasets[e]||{},{type:e},ke,ve]}resolveNamedOptions(t,e,r,n=[""]){const o={$shared:!0},{resolver:i,subPrefixes:a}=Co(this._resolverCache,t,n);let s=i;if(function(t,e){const{isScriptable:r,isIndexable:n}=Ze(t);for(const o of e){const e=r(o),i=n(o),a=(i||e)&&t[o];if(e&&(kt(a)||jo(a))||i&&ot(a))return!0}return!1}(i,e)){o.$shared=!1;s=Ge(i,r=kt(r)?r():r,this.createResolver(t,r,a))}for(const t of e)o[t]=s[t];return o}createResolver(t,e,r=[""],n){const{resolver:o}=Co(this._resolverCache,t,r);return it(e)?Ge(o,e,void 0,n):o}}function Co(t,e,r){let n=t.get(e);n||(n=new Map,t.set(e,n));const o=r.join();let i=n.get(o);if(!i){i={resolver:Ke(e,r),subPrefixes:r.filter((t=>!t.toLowerCase().includes("hover")))},n.set(o,i)}return i}const jo=t=>it(t)&&Object.getOwnPropertyNames(t).some((e=>kt(t[e])));const Po=["top","bottom","left","right","chartArea"];function Mo(t,e){return"top"===t||"bottom"===t||-1===Po.indexOf(t)&&"x"===e}function Do(t,e){return function(r,n){return r[t]===n[t]?r[e]-n[e]:r[t]-n[t]}}function Ro(t){const e=t.chart,r=e.options.animation;e.notifyPlugins("afterRender"),ut(r&&r.onComplete,[t],e)}function Io(t){const e=t.chart,r=e.options.animation;ut(r&&r.onProgress,[t],e)}function No(t){return gr()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Fo={},zo=t=>{const e=No(t);return Object.values(Fo).filter((t=>t.canvas===e)).pop()};function Lo(t,e,r){const n=Object.keys(t);for(const o of n){const n=+o;if(n>=e){const i=t[o];delete t[o],(r>0||n>e)&&(t[n+r]=i)}}}function Bo(t,e,r){return t.options.clip?t[r]:e[r]}class Vo{static defaults=ke;static instances=Fo;static overrides=ye;static registry=ho;static version="4.4.7";static getChart=zo;static register(...t){ho.add(...t),Ho()}static unregister(...t){ho.remove(...t),Ho()}constructor(t,e){const r=this.config=new Ao(e),n=No(t),o=zo(n);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const i=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||function(t){return!gr()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Fn:Qn}(n)),this.platform.updateConfig(r);const a=this.platform.acquireContext(n,i.aspectRatio),s=a&&a.canvas,c=s&&s.height,l=s&&s.width;this.id=rt(),this.ctx=a,this.canvas=s,this.width=l,this.height=c,this._options=i,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new po,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let r;return function(...n){return e?(clearTimeout(r),r=setTimeout(t,e,n)):t.apply(this,n),e}}((t=>this.update(t)),i.resizeDelay||0),this._dataChanges=[],Fo[this.id]=this,a&&s?(Br.listen(this,"complete",Ro),Br.listen(this,"progress",Io),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:r,height:n,_aspectRatio:o}=this;return nt(t)?e&&o?o:n?r/n:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return ho}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Er(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Oe(this.canvas,this.ctx),this}stop(){return Br.stop(this),this}resize(t,e){Br.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const r=this.options,n=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,i=this.platform.getMaximumSize(n,t,e,o),a=r.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=i.width,this.height=i.height,this._aspectRatio=this.aspectRatio,Er(this,a,!0)&&(this.notifyPlugins("resize",{size:i}),ut(r.onResize,[this,i],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){dt(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,r=this.scales,n=Object.keys(r).reduce(((t,e)=>(t[e]=!1,t)),{});let o=[];e&&(o=o.concat(Object.keys(e).map((t=>{const r=e[t],n=vo(t,r),o="r"===n,i="x"===n;return{options:r,dposition:o?"chartArea":i?"bottom":"left",dtype:o?"radialLinear":i?"category":"linear"}})))),dt(o,(e=>{const o=e.options,i=o.id,a=vo(i,o),s=ct(o.type,e.dtype);void 0!==o.position&&Mo(o.position,a)===Mo(e.dposition)||(o.position=e.dposition),n[i]=!0;let c=null;if(i in r&&r[i].type===s)c=r[i];else{c=new(ho.getScale(s))({id:i,type:s,ctx:this.ctx,chart:this}),r[c.id]=c}c.init(o,t)})),dt(n,((t,e)=>{t||delete r[e]})),dt(r,(t=>{In.configure(this,t,t.options),In.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,r=t.length;if(t.sort(((t,e)=>t.index-e.index)),r>e){for(let t=e;t<r;++t)this._destroyDatasetMeta(t);t.splice(e,r-e)}this._sortedMetasets=t.slice(0).sort(Do("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,r)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(r)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let r,n;for(this._removeUnreferencedMetasets(),r=0,n=e.length;r<n;r++){const n=e[r];let o=this.getDatasetMeta(r);const i=n.type||this.config.type;if(o.type&&o.type!==i&&(this._destroyDatasetMeta(r),o=this.getDatasetMeta(r)),o.type=i,o.indexAxis=n.indexAxis||bo(i,this.options),o.order=n.order||0,o.index=r,o.label=""+n.label,o.visible=this.isDatasetVisible(r),o.controller)o.controller.updateIndex(r),o.controller.linkScales();else{const e=ho.getController(i),{datasetElementType:n,dataElementType:a}=ke.datasets[i];Object.assign(e,{dataElementType:ho.getElement(a),datasetElementType:n&&ho.getElement(n)}),o.controller=new e(this,r),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){dt(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const r=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let i=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),r=!n&&-1===o.indexOf(e);e.buildOrUpdateElements(r),i=Math.max(+e.getMaxOverflow(),i)}i=this._minPadding=r.layout.autoPadding?i:0,this._updateLayout(i),n||dt(o,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Do("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){dt(this.scales,(t=>{In.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),r=new Set(t.events);Et(e,r)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:r,start:n,count:o}of e){Lo(t,n,"_removeElements"===r?-o:o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,r=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),n=r(0);for(let t=1;t<e;t++)if(!Et(n,r(t)))return;return Array.from(n).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;In.update(this,this.width,this.height,t);const e=this.chartArea,r=e.width<=0||e.height<=0;this._layers=[],dt(this.boxes,(t=>{r&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,r=this.data.datasets.length;e<r;++e)this._updateDataset(e,kt(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const r=this.getDatasetMeta(t),n={meta:r,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",n)&&(r.controller._update(e),n.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",n))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Br.has(this)?this.attached&&!Br.running(this)&&Br.start(this):(this.draw(),Ro({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(t,e)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,r=[];let n,o;for(n=0,o=e.length;n<o;++n){const o=e[n];t&&!o.visible||r.push(o)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,r=t._clip,n=!r.disabled,o=function(t,e){const{xScale:r,yScale:n}=t;return r&&n?{left:Bo(r,e,"left"),right:Bo(r,e,"right"),top:Bo(n,e,"top"),bottom:Bo(n,e,"bottom")}:e}(t,this.chartArea),i={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(n&&je(e,{left:!1===r.left?0:o.left-r.left,right:!1===r.right?this.width:o.right+r.right,top:!1===r.top?0:o.top-r.top,bottom:!1===r.bottom?this.height:o.bottom+r.bottom}),t.controller.draw(),n&&Pe(e),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(t){return Ce(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,r,n){const o=_n.modes[e];return"function"==typeof o?o(this,t,r,n):[]}getDatasetMeta(t){const e=this.data.datasets[t],r=this._metasets;let n=r.filter((t=>t&&t._dataset===e)).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},r.push(n)),n}getContext(){return this.$context||(this.$context=qe(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const r=this.getDatasetMeta(t);return"boolean"==typeof r.hidden?!r.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,r){const n=r?"show":"hide",o=this.getDatasetMeta(t),i=o.controller._resolveAnimations(void 0,n);_t(e)?(o.data[e].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),i.update(o,{visible:r}),this.update((e=>e.datasetIndex===t?n:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),Br.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Oe(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete Fo[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,r=(r,n)=>{e.addEventListener(this,r,n),t[r]=n},n=(t,e,r)=>{t.offsetX=e,t.offsetY=r,this._eventHandler(t)};dt(this.options.events,(t=>r(t,n)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,r=(r,n)=>{e.addEventListener(this,r,n),t[r]=n},n=(r,n)=>{t[r]&&(e.removeEventListener(this,r,n),delete t[r])},o=(t,e)=>{this.canvas&&this.resize(t,e)};let i;const a=()=>{n("attach",a),this.attached=!0,this.resize(),r("resize",o),r("detach",i)};i=()=>{this.attached=!1,n("resize",o),this._stop(),this._resize(0,0),r("attach",a)},e.isAttached(this.canvas)?a():i()}unbindEvents(){dt(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},dt(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,r){const n=r?"set":"remove";let o,i,a,s;for("dataset"===e&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+n+"DatasetHoverStyle"]()),a=0,s=t.length;a<s;++a){i=t[a];const e=i&&this.getDatasetMeta(i.datasetIndex).controller;e&&e[n+"HoverStyle"](i.element,i.datasetIndex,i.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],r=t.map((({datasetIndex:t,index:e})=>{const r=this.getDatasetMeta(t);if(!r)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:r.data[e],index:e}}));!ft(r,e)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,e))}notifyPlugins(t,e,r){return this._plugins.notify(this,t,e,r)}isPluginEnabled(t){return 1===this._plugins._cache.filter((e=>e.plugin.id===t)).length}_updateHoverStyles(t,e,r){const n=this.options.hover,o=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),i=o(e,t),a=r?t:o(t,e);i.length&&this.updateHoverStyle(i,n.mode,!1),a.length&&n.mode&&this.updateHoverStyle(a,n.mode,!0)}_eventHandler(t,e){const r={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},n=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",r,n))return;const o=this._handleEvent(t,e,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,n),(o||r.changed)&&this.render(),this}_handleEvent(t,e,r){const{_active:n=[],options:o}=this,i=e,a=this._getActiveElements(t,n,r,i),s=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),c=function(t,e,r,n){return r&&"mouseout"!==t.type?n?e:t:null}(t,this._lastEvent,r,s);r&&(this._lastEvent=null,ut(o.onHover,[t,a,this],this),s&&ut(o.onClick,[t,a,this],this));const l=!ft(a,n);return(l||e)&&(this._active=a,this._updateHoverStyles(a,n,e)),this._lastEvent=c,l}_getActiveElements(t,e,r,n){if("mouseout"===t.type)return[];if(!r)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,n)}}function Ho(){return dt(Vo.instances,(t=>t._plugins.invalidate()))}function $o(t,e,r,n){const o=He(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const i=(r-e)/2,a=Math.min(i,n*e/2),s=t=>{const e=(r-Math.min(i,t))*n/2;return Xt(t,0,Math.min(i,e))};return{outerStart:s(o.outerStart),outerEnd:s(o.outerEnd),innerStart:Xt(o.innerStart,0,a),innerEnd:Xt(o.innerEnd,0,a)}}function Uo(t,e,r,n){return{x:r+t*Math.cos(e),y:n+t*Math.sin(e)}}function Wo(t,e,r,n,o,i){const{x:a,y:s,startAngle:c,pixelMargin:l,innerRadius:u}=e,d=Math.max(e.outerRadius+n+r-l,0),f=u>0?u+n+r+l:0;let h=0;const p=o-c;if(n){const t=((u>0?u-n:0)+(d>0?d-n:0))/2;h=(p-(0!==t?p*t/(t+n):p))/2}const g=(p-Math.max(.001,p*d-r/St)/d)/2,m=c+g+h,b=o-g-h,{outerStart:y,outerEnd:v,innerStart:w,innerEnd:x}=$o(e,f,d,b-m),_=d-y,k=d-v,E=m+y/_,S=b-v/k,O=f+w,T=f+x,A=m+w/O,C=b-x/T;if(t.beginPath(),i){const e=(E+S)/2;if(t.arc(a,s,d,E,e),t.arc(a,s,d,e,S),v>0){const e=Uo(k,S,a,s);t.arc(e.x,e.y,v,S,b+jt)}const r=Uo(T,b,a,s);if(t.lineTo(r.x,r.y),x>0){const e=Uo(T,C,a,s);t.arc(e.x,e.y,x,b+jt,C+Math.PI)}const n=(b-x/f+(m+w/f))/2;if(t.arc(a,s,f,b-x/f,n,!0),t.arc(a,s,f,n,m+w/f,!0),w>0){const e=Uo(O,A,a,s);t.arc(e.x,e.y,w,A+Math.PI,m-jt)}const o=Uo(_,m,a,s);if(t.lineTo(o.x,o.y),y>0){const e=Uo(_,E,a,s);t.arc(e.x,e.y,y,m-jt,E)}}else{t.moveTo(a,s);const e=Math.cos(E)*d+a,r=Math.sin(E)*d+s;t.lineTo(e,r);const n=Math.cos(S)*d+a,o=Math.sin(S)*d+s;t.lineTo(n,o)}t.closePath()}function Yo(t,e,r,n,o){const{fullCircles:i,startAngle:a,circumference:s,options:c}=e,{borderWidth:l,borderJoinStyle:u,borderDash:d,borderDashOffset:f}=c,h="inner"===c.borderAlign;if(!l)return;t.setLineDash(d||[]),t.lineDashOffset=f,h?(t.lineWidth=2*l,t.lineJoin=u||"round"):(t.lineWidth=l,t.lineJoin=u||"bevel");let p=e.endAngle;if(i){Wo(t,e,r,n,p,o);for(let e=0;e<i;++e)t.stroke();isNaN(s)||(p=a+(s%Ot||Ot))}h&&function(t,e,r){const{startAngle:n,pixelMargin:o,x:i,y:a,outerRadius:s,innerRadius:c}=e;let l=o/s;t.beginPath(),t.arc(i,a,s,n-l,r+l),c>o?(l=o/c,t.arc(i,a,c,r+l,n-l,!0)):t.arc(i,a,o,r+jt,n-jt),t.closePath(),t.clip()}(t,e,p),i||(Wo(t,e,r,n,p,o),t.stroke())}function Xo(t,e,r=e){t.lineCap=ct(r.borderCapStyle,e.borderCapStyle),t.setLineDash(ct(r.borderDash,e.borderDash)),t.lineDashOffset=ct(r.borderDashOffset,e.borderDashOffset),t.lineJoin=ct(r.borderJoinStyle,e.borderJoinStyle),t.lineWidth=ct(r.borderWidth,e.borderWidth),t.strokeStyle=ct(r.borderColor,e.borderColor)}function qo(t,e,r){t.lineTo(r.x,r.y)}function Ko(t,e,r={}){const n=t.length,{start:o=0,end:i=n-1}=r,{start:a,end:s}=e,c=Math.max(o,a),l=Math.min(i,s),u=o<a&&i<a||o>s&&i>s;return{count:n,start:c,loop:e.loop,ilen:l<c&&!u?n+l-c:l-c}}function Go(t,e,r,n){const{points:o,options:i}=e,{count:a,start:s,loop:c,ilen:l}=Ko(o,r,n),u=function(t){return t.stepped?Me:t.tension||"monotone"===t.cubicInterpolationMode?De:qo}(i);let d,f,h,{move:p=!0,reverse:g}=n||{};for(d=0;d<=l;++d)f=o[(s+(g?l-d:d))%a],f.skip||(p?(t.moveTo(f.x,f.y),p=!1):u(t,h,f,g,i.stepped),h=f);return c&&(f=o[(s+(g?l:0))%a],u(t,h,f,g,i.stepped)),!!c}function Zo(t,e,r,n){const o=e.points,{count:i,start:a,ilen:s}=Ko(o,r,n),{move:c=!0,reverse:l}=n||{};let u,d,f,h,p,g,m=0,b=0;const y=t=>(a+(l?s-t:t))%i,v=()=>{h!==p&&(t.lineTo(m,p),t.lineTo(m,h),t.lineTo(m,g))};for(c&&(d=o[y(0)],t.moveTo(d.x,d.y)),u=0;u<=s;++u){if(d=o[y(u)],d.skip)continue;const e=d.x,r=d.y,n=0|e;n===f?(r<h?h=r:r>p&&(p=r),m=(b*m+e)/++b):(v(),t.lineTo(e,r),f=n,b=0,h=p=r),g=r}v()}function Qo(t){const e=t.options,r=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||r)?Zo:Go}const Jo="function"==typeof Path2D;function ti(t,e,r,n){Jo&&!e.options.segment?function(t,e,r,n){let o=e._path;o||(o=e._path=new Path2D,e.path(o,r,n)&&o.closePath()),Xo(t,e.options),t.stroke(o)}(t,e,r,n):function(t,e,r,n){const{segments:o,options:i}=e,a=Qo(e);for(const s of o)Xo(t,i,s.style),t.beginPath(),a(t,e,s,{start:r,end:r+n-1})&&t.closePath(),t.stroke()}(t,e,r,n)}function ei(t,e,r,n){const o=t.options,{[r]:i}=t.getProps([r],n);return Math.abs(e-i)<o.radius+o.hitRadius}function ri(t,e){const{x:r,y:n,base:o,width:i,height:a}=t.getProps(["x","y","base","width","height"],e);let s,c,l,u,d;return t.horizontal?(d=a/2,s=Math.min(r,o),c=Math.max(r,o),l=n-d,u=n+d):(d=i/2,s=r-d,c=r+d,l=Math.min(n,o),u=Math.max(n,o)),{left:s,top:l,right:c,bottom:u}}function ni(t,e,r,n){return t?0:Xt(e,r,n)}function oi(t){const e=ri(t),r=e.right-e.left,n=e.bottom-e.top,o=function(t,e,r){const n=t.options.borderWidth,o=t.borderSkipped,i=$e(n);return{t:ni(o.top,i.top,0,r),r:ni(o.right,i.right,0,e),b:ni(o.bottom,i.bottom,0,r),l:ni(o.left,i.left,0,e)}}(t,r/2,n/2),i=function(t,e,r){const{enableBorderRadius:n}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,i=Ue(o),a=Math.min(e,r),s=t.borderSkipped,c=n||it(o);return{topLeft:ni(!c||s.top||s.left,i.topLeft,0,a),topRight:ni(!c||s.top||s.right,i.topRight,0,a),bottomLeft:ni(!c||s.bottom||s.left,i.bottomLeft,0,a),bottomRight:ni(!c||s.bottom||s.right,i.bottomRight,0,a)}}(t,r/2,n/2);return{outer:{x:e.left,y:e.top,w:r,h:n,radius:i},inner:{x:e.left+o.l,y:e.top+o.t,w:r-o.l-o.r,h:n-o.t-o.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,i.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(o.b,o.r))}}}}function ii(t,e,r,n){const o=null===e,i=null===r,a=t&&!(o&&i)&&ri(t,n);return a&&(o||qt(e,a.left,a.right))&&(i||qt(r,a.top,a.bottom))}function ai(t,e){t.rect(e.x,e.y,e.w,e.h)}function si(t,e,r={}){const n=t.x!==r.x?-e:0,o=t.y!==r.y?-e:0,i=(t.x+t.w!==r.x+r.w?e:0)-n,a=(t.y+t.h!==r.y+r.h?e:0)-o;return{x:t.x+n,y:t.y+o,w:t.w+i,h:t.h+a,radius:t.radius}}const ci=(t,e)=>{let{boxHeight:r=e,boxWidth:n=e}=t;return t.usePointStyle&&(r=Math.min(r,e),n=t.pointStyleWidth||Math.min(n,e)),{boxWidth:n,boxHeight:r,itemHeight:Math.max(e,r)}};class li extends Jn{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,r){this.maxWidth=t,this.maxHeight=e,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=ut(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,r)=>t.sort(e,r,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const r=t.labels,n=Ye(r.font),o=n.size,i=this._computeTitleHeight(),{boxWidth:a,itemHeight:s}=ci(r,o);let c,l;e.font=n.string,this.isHorizontal()?(c=this.maxWidth,l=this._fitRows(i,o,a,s)+10):(l=this.maxHeight,c=this._fitCols(i,n,a,s)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(l,t.maxHeight||this.maxHeight)}_fitRows(t,e,r,n){const{ctx:o,maxWidth:i,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],c=this.lineWidths=[0],l=n+a;let u=t;o.textAlign="left",o.textBaseline="middle";let d=-1,f=-l;return this.legendItems.forEach(((t,h)=>{const p=r+e/2+o.measureText(t.text).width;(0===h||c[c.length-1]+p+2*a>i)&&(u+=l,c[c.length-(h>0?0:1)]=0,f+=l,d++),s[h]={left:0,top:f,row:d,width:p,height:n},c[c.length-1]+=p+a})),u}_fitCols(t,e,r,n){const{ctx:o,maxHeight:i,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],c=this.columnSizes=[],l=i-t;let u=a,d=0,f=0,h=0,p=0;return this.legendItems.forEach(((t,i)=>{const{itemWidth:g,itemHeight:m}=function(t,e,r,n,o){const i=function(t,e,r,n){let o=t.text;o&&"string"!=typeof o&&(o=o.reduce(((t,e)=>t.length>e.length?t:e)));return e+r.size/2+n.measureText(o).width}(n,t,e,r),a=function(t,e,r){let n=t;"string"!=typeof e.text&&(n=ui(e,r));return n}(o,n,e.lineHeight);return{itemWidth:i,itemHeight:a}}(r,e,o,t,n);i>0&&f+m+2*a>l&&(u+=d+a,c.push({width:d,height:f}),h+=d+a,p++,d=f=0),s[i]={left:h,top:f,col:p,width:g,height:m},d=Math.max(d,g),f+=m+a})),u+=d,c.push({width:d,height:f}),u}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:r,labels:{padding:n},rtl:o}}=this,i=jr(o,this.left,this.width);if(this.isHorizontal()){let o=0,a=oe(r,this.left+n,this.right-this.lineWidths[o]);for(const s of e)o!==s.row&&(o=s.row,a=oe(r,this.left+n,this.right-this.lineWidths[o])),s.top+=this.top+t+n,s.left=i.leftForLtr(i.x(a),s.width),a+=s.width+n}else{let o=0,a=oe(r,this.top+t+n,this.bottom-this.columnSizes[o].height);for(const s of e)s.col!==o&&(o=s.col,a=oe(r,this.top+t+n,this.bottom-this.columnSizes[o].height)),s.top=a,s.left+=this.left+n,s.left=i.leftForLtr(i.x(s.left),s.width),a+=s.height+n}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;je(t,this),this._draw(),Pe(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:r,ctx:n}=this,{align:o,labels:i}=t,a=ke.color,s=jr(t.rtl,this.left,this.width),c=Ye(i.font),{padding:l}=i,u=c.size,d=u/2;let f;this.drawTitle(),n.textAlign=s.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=c.string;const{boxWidth:h,boxHeight:p,itemHeight:g}=ci(i,u),m=this.isHorizontal(),b=this._computeTitleHeight();f=m?{x:oe(o,this.left+l,this.right-r[0]),y:this.top+l+b,line:0}:{x:this.left+l,y:oe(o,this.top+b+l,this.bottom-e[0].height),line:0},Pr(this.ctx,t.textDirection);const y=g+l;this.legendItems.forEach(((v,w)=>{n.strokeStyle=v.fontColor,n.fillStyle=v.fontColor;const x=n.measureText(v.text).width,_=s.textAlign(v.textAlign||(v.textAlign=i.textAlign)),k=h+d+x;let E=f.x,S=f.y;s.setWidth(this.width),m?w>0&&E+k+l>this.right&&(S=f.y+=y,f.line++,E=f.x=oe(o,this.left+l,this.right-r[f.line])):w>0&&S+y>this.bottom&&(E=f.x=E+e[f.line].width+l,f.line++,S=f.y=oe(o,this.top+b+l,this.bottom-e[f.line].height));if(function(t,e,r){if(isNaN(h)||h<=0||isNaN(p)||p<0)return;n.save();const o=ct(r.lineWidth,1);if(n.fillStyle=ct(r.fillStyle,a),n.lineCap=ct(r.lineCap,"butt"),n.lineDashOffset=ct(r.lineDashOffset,0),n.lineJoin=ct(r.lineJoin,"miter"),n.lineWidth=o,n.strokeStyle=ct(r.strokeStyle,a),n.setLineDash(ct(r.lineDash,[])),i.usePointStyle){const a={radius:p*Math.SQRT2/2,pointStyle:r.pointStyle,rotation:r.rotation,borderWidth:o},c=s.xPlus(t,h/2);Ae(n,a,c,e+d,i.pointStyleWidth&&h)}else{const i=e+Math.max((u-p)/2,0),a=s.leftForLtr(t,h),c=Ue(r.borderRadius);n.beginPath(),Object.values(c).some((t=>0!==t))?Fe(n,{x:a,y:i,w:h,h:p,radius:c}):n.rect(a,i,h,p),n.fill(),0!==o&&n.stroke()}n.restore()}(s.x(E),S,v),E=((t,e,r,n)=>t===(n?"left":"right")?r:"center"===t?(e+r)/2:e)(_,E+h+d,m?E+k:this.right,t.rtl),function(t,e,r){Ne(n,r.text,t,e+g/2,c,{strikethrough:r.hidden,textAlign:s.textAlign(r.textAlign)})}(s.x(E),S,v),m)f.x+=k+l;else if("string"!=typeof v.text){const t=c.lineHeight;f.y+=ui(v,t)+l}else f.y+=y})),Mr(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,r=Ye(e.font),n=We(e.padding);if(!e.display)return;const o=jr(t.rtl,this.left,this.width),i=this.ctx,a=e.position,s=r.size/2,c=n.top+s;let l,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),l=this.top+c,u=oe(t.align,u,this.right-d);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);l=c+oe(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const f=oe(a,u,u+d);i.textAlign=o.textAlign(ne(a)),i.textBaseline="middle",i.strokeStyle=e.color,i.fillStyle=e.color,i.font=r.string,Ne(i,e.text,f,l,r)}_computeTitleHeight(){const t=this.options.title,e=Ye(t.font),r=We(t.padding);return t.display?e.lineHeight+r.height:0}_getLegendItemAt(t,e){let r,n,o;if(qt(t,this.left,this.right)&&qt(e,this.top,this.bottom))for(o=this.legendHitBoxes,r=0;r<o.length;++r)if(n=o[r],qt(t,n.left,n.left+n.width)&&qt(e,n.top,n.top+n.height))return this.legendItems[r];return null}handleEvent(t){const e=this.options;if(!function(t,e){if(("mousemove"===t||"mouseout"===t)&&(e.onHover||e.onLeave))return!0;if(e.onClick&&("click"===t||"mouseup"===t))return!0;return!1}(t.type,e))return;const r=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const n=this._hoveredItem,o=((t,e)=>null!==t&&null!==e&&t.datasetIndex===e.datasetIndex&&t.index===e.index)(n,r);n&&!o&&ut(e.onLeave,[t,n,this],this),this._hoveredItem=r,r&&!o&&ut(e.onHover,[t,r,this],this)}else r&&ut(e.onClick,[t,r,this],this)}}function ui(t,e){return e*(t.text?t.text.length:0)}var di={id:"legend",_element:li,start(t,e,r){const n=t.legend=new li({ctx:t.ctx,options:r,chart:t});In.configure(t,n,r),In.addBox(t,n)},stop(t){In.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,r){const n=t.legend;In.configure(t,n,r),n.options=r},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,r){const n=e.datasetIndex,o=r.chart;o.isDatasetVisible(n)?(o.hide(n),e.hidden=!0):(o.show(n),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:r,pointStyle:n,textAlign:o,color:i,useBorderRadius:a,borderRadius:s}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const c=t.controller.getStyle(r?0:void 0),l=We(c.borderWidth);return{text:e[t.index].label,fillStyle:c.backgroundColor,fontColor:i,hidden:!t.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:c.borderColor,pointStyle:n||c.pointStyle,rotation:c.rotation,textAlign:o||c.textAlign,borderRadius:a&&(s||c.borderRadius),datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class fi extends Jn{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const r=this.options;if(this.left=0,this.top=0,!r.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const n=ot(r.text)?r.text.length:1;this._padding=We(r.padding);const o=n*Ye(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:r,bottom:n,right:o,options:i}=this,a=i.align;let s,c,l,u=0;return this.isHorizontal()?(c=oe(a,r,o),l=e+t,s=o-r):("left"===i.position?(c=r+t,l=oe(a,n,e),u=-.5*St):(c=o-t,l=oe(a,e,n),u=.5*St),s=n-e),{titleX:c,titleY:l,maxWidth:s,rotation:u}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const r=Ye(e.font),n=r.lineHeight/2+this._padding.top,{titleX:o,titleY:i,maxWidth:a,rotation:s}=this._drawArgs(n);Ne(t,e.text,0,0,r,{color:e.color,maxWidth:a,rotation:s,textAlign:ne(e.align),textBaseline:"middle",translation:[o,i]})}}var hi={id:"title",_element:fi,start(t,e,r){!function(t,e){const r=new fi({ctx:t.ctx,options:e,chart:t});In.configure(t,r,e),In.addBox(t,r),t.titleBlock=r}(t,r)},stop(t){const e=t.titleBlock;In.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,r){const n=t.titleBlock;In.configure(t,n,r),n.options=r},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const pi={average(t){if(!t.length)return!1;let e,r,n=new Set,o=0,i=0;for(e=0,r=t.length;e<r;++e){const r=t[e].element;if(r&&r.hasValue()){const t=r.tooltipPosition();n.add(t.x),o+=t.y,++i}}if(0===i||0===n.size)return!1;const a=[...n].reduce(((t,e)=>t+e))/n.size;return{x:a,y:o/i}},nearest(t,e){if(!t.length)return!1;let r,n,o,i=e.x,a=e.y,s=Number.POSITIVE_INFINITY;for(r=0,n=t.length;r<n;++r){const n=t[r].element;if(n&&n.hasValue()){const t=$t(e,n.getCenterPoint());t<s&&(s=t,o=n)}}if(o){const t=o.tooltipPosition();i=t.x,a=t.y}return{x:i,y:a}}};function gi(t,e){return e&&(ot(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function mi(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function bi(t,e){const{element:r,datasetIndex:n,index:o}=e,i=t.getDatasetMeta(n).controller,{label:a,value:s}=i.getLabelAndValue(o);return{chart:t,label:a,parsed:i.getParsed(o),raw:t.data.datasets[n].data[o],formattedValue:s,dataset:i.getDataset(),dataIndex:o,datasetIndex:n,element:r}}function yi(t,e){const r=t.chart.ctx,{body:n,footer:o,title:i}=t,{boxWidth:a,boxHeight:s}=e,c=Ye(e.bodyFont),l=Ye(e.titleFont),u=Ye(e.footerFont),d=i.length,f=o.length,h=n.length,p=We(e.padding);let g=p.height,m=0,b=n.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);if(b+=t.beforeBody.length+t.afterBody.length,d&&(g+=d*l.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),b){g+=h*(e.displayColors?Math.max(s,c.lineHeight):c.lineHeight)+(b-h)*c.lineHeight+(b-1)*e.bodySpacing}f&&(g+=e.footerMarginTop+f*u.lineHeight+(f-1)*e.footerSpacing);let y=0;const v=function(t){m=Math.max(m,r.measureText(t).width+y)};return r.save(),r.font=l.string,dt(t.title,v),r.font=c.string,dt(t.beforeBody.concat(t.afterBody),v),y=e.displayColors?a+2+e.boxPadding:0,dt(n,(t=>{dt(t.before,v),dt(t.lines,v),dt(t.after,v)})),y=0,r.font=u.string,dt(t.footer,v),r.restore(),m+=p.width,{width:m,height:g}}function vi(t,e,r,n){const{x:o,width:i}=r,{width:a,chartArea:{left:s,right:c}}=t;let l="center";return"center"===n?l=o<=(s+c)/2?"left":"right":o<=i/2?l="left":o>=a-i/2&&(l="right"),function(t,e,r,n){const{x:o,width:i}=n,a=r.caretSize+r.caretPadding;return"left"===t&&o+i+a>e.width||"right"===t&&o-i-a<0||void 0}(l,t,e,r)&&(l="center"),l}function wi(t,e,r){const n=r.yAlign||e.yAlign||function(t,e){const{y:r,height:n}=e;return r<n/2?"top":r>t.height-n/2?"bottom":"center"}(t,r);return{xAlign:r.xAlign||e.xAlign||vi(t,e,r,n),yAlign:n}}function xi(t,e,r,n){const{caretSize:o,caretPadding:i,cornerRadius:a}=t,{xAlign:s,yAlign:c}=r,l=o+i,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:h}=Ue(a);let p=function(t,e){let{x:r,width:n}=t;return"right"===e?r-=n:"center"===e&&(r-=n/2),r}(e,s);const g=function(t,e,r){let{y:n,height:o}=t;return"top"===e?n+=r:n-="bottom"===e?o+r:o/2,n}(e,c,l);return"center"===c?"left"===s?p+=l:"right"===s&&(p-=l):"left"===s?p-=Math.max(u,f)+o:"right"===s&&(p+=Math.max(d,h)+o),{x:Xt(p,0,n.width-e.width),y:Xt(g,0,n.height-e.height)}}function _i(t,e,r){const n=We(r.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-n.right:t.x+n.left}function ki(t){return gi([],mi(t))}function Ei(t,e){const r=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return r?t.override(r):t}const Si={beforeTitle:et,title(t){if(t.length>0){const e=t[0],r=e.chart.data.labels,n=r?r.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(n>0&&e.dataIndex<n)return r[e.dataIndex]}return""},afterTitle:et,beforeBody:et,beforeLabel:et,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const r=t.formattedValue;return nt(r)||(e+=r),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:et,afterBody:et,beforeFooter:et,footer:et,afterFooter:et};function Oi(t,e,r,n){const o=t[e].call(r,n);return void 0===o?Si[e].call(r,n):o}class Ti extends Jn{static positioners=pi;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,r=this.options.setContext(this.getContext()),n=r.enabled&&e.options.animation&&r.animations,o=new Ur(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,r=this._tooltipItems,qe(t,{tooltip:e,tooltipItems:r,type:"tooltip"})));var t,e,r}getTitle(t,e){const{callbacks:r}=e,n=Oi(r,"beforeTitle",this,t),o=Oi(r,"title",this,t),i=Oi(r,"afterTitle",this,t);let a=[];return a=gi(a,mi(n)),a=gi(a,mi(o)),a=gi(a,mi(i)),a}getBeforeBody(t,e){return ki(Oi(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:r}=e,n=[];return dt(t,(t=>{const e={before:[],lines:[],after:[]},o=Ei(r,t);gi(e.before,mi(Oi(o,"beforeLabel",this,t))),gi(e.lines,Oi(o,"label",this,t)),gi(e.after,mi(Oi(o,"afterLabel",this,t))),n.push(e)})),n}getAfterBody(t,e){return ki(Oi(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:r}=e,n=Oi(r,"beforeFooter",this,t),o=Oi(r,"footer",this,t),i=Oi(r,"afterFooter",this,t);let a=[];return a=gi(a,mi(n)),a=gi(a,mi(o)),a=gi(a,mi(i)),a}_createItems(t){const e=this._active,r=this.chart.data,n=[],o=[],i=[];let a,s,c=[];for(a=0,s=e.length;a<s;++a)c.push(bi(this.chart,e[a]));return t.filter&&(c=c.filter(((e,n,o)=>t.filter(e,n,o,r)))),t.itemSort&&(c=c.sort(((e,n)=>t.itemSort(e,n,r)))),dt(c,(e=>{const r=Ei(t.callbacks,e);n.push(Oi(r,"labelColor",this,e)),o.push(Oi(r,"labelPointStyle",this,e)),i.push(Oi(r,"labelTextColor",this,e))})),this.labelColors=n,this.labelPointStyles=o,this.labelTextColors=i,this.dataPoints=c,c}update(t,e){const r=this.options.setContext(this.getContext()),n=this._active;let o,i=[];if(n.length){const t=pi[r.position].call(this,n,this._eventPosition);i=this._createItems(r),this.title=this.getTitle(i,r),this.beforeBody=this.getBeforeBody(i,r),this.body=this.getBody(i,r),this.afterBody=this.getAfterBody(i,r),this.footer=this.getFooter(i,r);const e=this._size=yi(this,r),a=Object.assign({},t,e),s=wi(this.chart,r,a),c=xi(r,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,o={opacity:1,x:c.x,y:c.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(o={opacity:0});this._tooltipItems=i,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,r,n){const o=this.getCaretPosition(t,r,n);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,r){const{xAlign:n,yAlign:o}=this,{caretSize:i,cornerRadius:a}=r,{topLeft:s,topRight:c,bottomLeft:l,bottomRight:u}=Ue(a),{x:d,y:f}=t,{width:h,height:p}=e;let g,m,b,y,v,w;return"center"===o?(v=f+p/2,"left"===n?(g=d,m=g-i,y=v+i,w=v-i):(g=d+h,m=g+i,y=v-i,w=v+i),b=g):(m="left"===n?d+Math.max(s,l)+i:"right"===n?d+h-Math.max(c,u)-i:this.caretX,"top"===o?(y=f,v=y-i,g=m-i,b=m+i):(y=f+p,v=y+i,g=m+i,b=m-i),w=y),{x1:g,x2:m,x3:b,y1:y,y2:v,y3:w}}drawTitle(t,e,r){const n=this.title,o=n.length;let i,a,s;if(o){const c=jr(r.rtl,this.x,this.width);for(t.x=_i(this,r.titleAlign,r),e.textAlign=c.textAlign(r.titleAlign),e.textBaseline="middle",i=Ye(r.titleFont),a=r.titleSpacing,e.fillStyle=r.titleColor,e.font=i.string,s=0;s<o;++s)e.fillText(n[s],c.x(t.x),t.y+i.lineHeight/2),t.y+=i.lineHeight+a,s+1===o&&(t.y+=r.titleMarginBottom-a)}}_drawColorBox(t,e,r,n,o){const i=this.labelColors[r],a=this.labelPointStyles[r],{boxHeight:s,boxWidth:c}=o,l=Ye(o.bodyFont),u=_i(this,"left",o),d=n.x(u),f=s<l.lineHeight?(l.lineHeight-s)/2:0,h=e.y+f;if(o.usePointStyle){const e={radius:Math.min(c,s)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},r=n.leftForLtr(d,c)+c/2,l=h+s/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,Te(t,e,r,l),t.strokeStyle=i.borderColor,t.fillStyle=i.backgroundColor,Te(t,e,r,l)}else{t.lineWidth=it(i.borderWidth)?Math.max(...Object.values(i.borderWidth)):i.borderWidth||1,t.strokeStyle=i.borderColor,t.setLineDash(i.borderDash||[]),t.lineDashOffset=i.borderDashOffset||0;const e=n.leftForLtr(d,c),r=n.leftForLtr(n.xPlus(d,1),c-2),a=Ue(i.borderRadius);Object.values(a).some((t=>0!==t))?(t.beginPath(),t.fillStyle=o.multiKeyBackground,Fe(t,{x:e,y:h,w:c,h:s,radius:a}),t.fill(),t.stroke(),t.fillStyle=i.backgroundColor,t.beginPath(),Fe(t,{x:r,y:h+1,w:c-2,h:s-2,radius:a}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,h,c,s),t.strokeRect(e,h,c,s),t.fillStyle=i.backgroundColor,t.fillRect(r,h+1,c-2,s-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,e,r){const{body:n}=this,{bodySpacing:o,bodyAlign:i,displayColors:a,boxHeight:s,boxWidth:c,boxPadding:l}=r,u=Ye(r.bodyFont);let d=u.lineHeight,f=0;const h=jr(r.rtl,this.x,this.width),p=function(r){e.fillText(r,h.x(t.x+f),t.y+d/2),t.y+=d+o},g=h.textAlign(i);let m,b,y,v,w,x,_;for(e.textAlign=i,e.textBaseline="middle",e.font=u.string,t.x=_i(this,g,r),e.fillStyle=r.bodyColor,dt(this.beforeBody,p),f=a&&"right"!==g?"center"===i?c/2+l:c+2+l:0,v=0,x=n.length;v<x;++v){for(m=n[v],b=this.labelTextColors[v],e.fillStyle=b,dt(m.before,p),y=m.lines,a&&y.length&&(this._drawColorBox(e,t,v,h,r),d=Math.max(u.lineHeight,s)),w=0,_=y.length;w<_;++w)p(y[w]),d=u.lineHeight;dt(m.after,p)}f=0,d=u.lineHeight,dt(this.afterBody,p),t.y-=o}drawFooter(t,e,r){const n=this.footer,o=n.length;let i,a;if(o){const s=jr(r.rtl,this.x,this.width);for(t.x=_i(this,r.footerAlign,r),t.y+=r.footerMarginTop,e.textAlign=s.textAlign(r.footerAlign),e.textBaseline="middle",i=Ye(r.footerFont),e.fillStyle=r.footerColor,e.font=i.string,a=0;a<o;++a)e.fillText(n[a],s.x(t.x),t.y+i.lineHeight/2),t.y+=i.lineHeight+r.footerSpacing}}drawBackground(t,e,r,n){const{xAlign:o,yAlign:i}=this,{x:a,y:s}=t,{width:c,height:l}=r,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:h}=Ue(n.cornerRadius);e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.beginPath(),e.moveTo(a+u,s),"top"===i&&this.drawCaret(t,e,r,n),e.lineTo(a+c-d,s),e.quadraticCurveTo(a+c,s,a+c,s+d),"center"===i&&"right"===o&&this.drawCaret(t,e,r,n),e.lineTo(a+c,s+l-h),e.quadraticCurveTo(a+c,s+l,a+c-h,s+l),"bottom"===i&&this.drawCaret(t,e,r,n),e.lineTo(a+f,s+l),e.quadraticCurveTo(a,s+l,a,s+l-f),"center"===i&&"left"===o&&this.drawCaret(t,e,r,n),e.lineTo(a,s+u),e.quadraticCurveTo(a,s,a+u,s),e.closePath(),e.fill(),n.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,r=this.$animations,n=r&&r.x,o=r&&r.y;if(n||o){const r=pi[t.position].call(this,this._active,this._eventPosition);if(!r)return;const i=this._size=yi(this,t),a=Object.assign({},r,this._size),s=wi(e,t,a),c=xi(t,a,s,e);n._to===c.x&&o._to===c.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=i.width,this.height=i.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(e);const n={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const i=We(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,n,e),Pr(t,e.textDirection),o.y+=i.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),Mr(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const r=this._active,n=t.map((({datasetIndex:t,index:e})=>{const r=this.chart.getDatasetMeta(t);if(!r)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:r.data[e],index:e}})),o=!ft(r,n),i=this._positionChanged(n,e);(o||i)&&(this._active=n,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,r=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,o=this._active||[],i=this._getActiveElements(t,o,e,r),a=this._positionChanged(i,t),s=e||!ft(i,o)||a;return s&&(this._active=i,(n.enabled||n.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),s}_getActiveElements(t,e,r,n){const o=this.options;if("mouseout"===t.type)return[];if(!n)return e.filter((t=>this.chart.data.datasets[t.datasetIndex]&&void 0!==this.chart.getDatasetMeta(t.datasetIndex).controller.getParsed(t.index)));const i=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&i.reverse(),i}_positionChanged(t,e){const{caretX:r,caretY:n,options:o}=this,i=pi[o.position].call(this,t,e);return!1!==i&&(r!==i.x||n!==i.y)}}var Ai={id:"tooltip",_element:Ti,positioners:pi,afterInit(t,e,r){r&&(t.tooltip=new Ti({chart:t,options:r}))},beforeUpdate(t,e,r){t.tooltip&&t.tooltip.initialize(r)},reset(t,e,r){t.tooltip&&t.tooltip.initialize(r)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const r={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...r,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",r)}},afterEvent(t,e){if(t.tooltip){const r=e.replay;t.tooltip.handleEvent(e.event,r,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Si},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function Ci(t,e,r,n){const o=t.indexOf(e);if(-1===o)return((t,e,r,n)=>("string"==typeof e?(r=t.push(e)-1,n.unshift({index:r,label:e})):isNaN(e)&&(r=null),r))(t,e,r,n);return o!==t.lastIndexOf(e)?r:o}function ji(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}function Pi(t,e){const r=[],{bounds:n,step:o,min:i,max:a,precision:s,count:c,maxTicks:l,maxDigits:u,includeBounds:d}=t,f=o||1,h=l-1,{min:p,max:g}=e,m=!nt(i),b=!nt(a),y=!nt(c),v=(g-p)/(u+1);let w,x,_,k,E=Nt((g-p)/h/f)*f;if(E<1e-14&&!m&&!b)return[{value:p},{value:g}];k=Math.ceil(g/E)-Math.floor(p/E),k>h&&(E=Nt(k*E/h/f)*f),nt(s)||(w=Math.pow(10,s),E=Math.ceil(E*w)/w),"ticks"===n?(x=Math.floor(p/E)*E,_=Math.ceil(g/E)*E):(x=p,_=g),m&&b&&o&&function(t,e){const r=Math.round(t);return r-e<=t&&r+e>=t}((a-i)/o,E/1e3)?(k=Math.round(Math.min((a-i)/E,l)),E=(a-i)/k,x=i,_=a):y?(x=m?i:x,_=b?a:_,k=c-1,E=(_-x)/k):(k=(_-x)/E,k=It(k,Math.round(k),E/1e3)?Math.round(k):Math.ceil(k));const S=Math.max(Vt(E),Vt(x));w=Math.pow(10,nt(s)?S:s),x=Math.round(x*w)/w,_=Math.round(_*w)/w;let O=0;for(m&&(d&&x!==i?(r.push({value:i}),x<i&&O++,It(Math.round((x+O*E)*w)/w,i,Mi(i,v,t))&&O++):x<i&&O++);O<k;++O){const t=Math.round((x+O*E)*w)/w;if(b&&t>a)break;r.push({value:t})}return b&&d&&_!==a?r.length&&It(r[r.length-1].value,a,Mi(a,v,t))?r[r.length-1].value=a:r.push({value:a}):b&&_!==a||r.push({value:_}),r}function Mi(t,e,{horizontal:r,minRotation:n}){const o=Lt(n),i=(r?Math.sin(o):Math.cos(o))||.001,a=.75*e*(""+t).length;return Math.min(e/i,a)}class Di extends lo{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return nt(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:r}=this.getUserBounds();let{min:n,max:o}=this;const i=t=>n=e?n:t,a=t=>o=r?o:t;if(t){const t=Rt(n),e=Rt(o);t<0&&e<0?a(0):t>0&&e>0&&i(0)}if(n===o){let e=0===o?1:Math.abs(.05*o);a(o+e),t||i(n-e)}this.min=n,this.max=o}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:r,stepSize:n}=t;return n?(e=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),r=r||11),r&&(e=Math.min(r,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const n=Pi({maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&zt(n,this,"value"),t.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}configure(){const t=this.ticks;let e=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const n=(r-e)/Math.max(t.length-1,1)/2;e-=n,r+=n}this._startValue=e,this._endValue=r,this._valueRange=r-e}getLabelForValue(t){return ge(t,this.chart.options.locale,this.options.ticks.format)}}class Ri extends Di{static id="linear";static defaults={ticks:{callback:be.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=at(t)?t:0,this.max=at(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,r=Lt(this.options.ticks.minRotation),n=(t?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/n))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}be.formatters.logarithmic;be.formatters.numeric;const Ii="label";function Ni(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function Fi(t,e){t.labels=e}function zi(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ii;const n=[];t.datasets=e.map((e=>{const o=t.datasets.find((t=>t[r]===e[r]));return o&&e.data&&!n.includes(o)?(n.push(o),Object.assign(o,e),o):{...e}}))}function Li(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ii;const r={labels:[],datasets:[]};return Fi(r,t.labels),zi(r,t.datasets,e),r}function Bi(e,r){const{height:o=150,width:i=300,redraw:a=!1,datasetIdKey:s,type:c,data:l,options:u,plugins:d=[],fallbackContent:f,updateMode:h,...p}=e,g=t.useRef(null),m=t.useRef(null),b=()=>{g.current&&(m.current=new Vo(g.current,{type:c,data:Li(l,s),options:u&&{...u},plugins:d}),Ni(r,m.current))},y=()=>{Ni(r,null),m.current&&(m.current.destroy(),m.current=null)};return t.useEffect((()=>{!a&&m.current&&u&&function(t,e){const r=t.options;r&&e&&Object.assign(r,e)}(m.current,u)}),[a,u]),t.useEffect((()=>{!a&&m.current&&Fi(m.current.config.data,l.labels)}),[a,l.labels]),t.useEffect((()=>{!a&&m.current&&l.datasets&&zi(m.current.config.data,l.datasets,s)}),[a,l.datasets]),t.useEffect((()=>{m.current&&(a?(y(),setTimeout(b)):m.current.update(h))}),[a,u,l.labels,l.datasets,h]),t.useEffect((()=>{m.current&&(y(),setTimeout(b))}),[c]),t.useEffect((()=>(b(),()=>y())),[]),n.default.createElement("canvas",{ref:g,role:"img",height:o,width:i,...p},f)}const Vi=t.forwardRef(Bi);function Hi(e,r){return Vo.register(r),t.forwardRef(((t,r)=>n.default.createElement(Vi,{...t,ref:r,type:e})))}const $i=Hi("line",pn),Ui=Hi("bar",fn),Wi=Hi("pie",gn);Vo.register(class extends lo{static id="category";static defaults={ticks:{callback:ji}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:r,label:n}of e)t[r]===n&&t.splice(r,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(nt(t))return null;const r=this.getLabels();return((t,e)=>null===t?null:Xt(Math.round(t),0,e))(e=isFinite(e)&&r[e]===t?e:Ci(r,t,ct(e,t),this._addedLabels),r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:r,max:n}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(r=0),e||(n=this.getLabels().length-1)),this.min=r,this.max=n}buildTicks(){const t=this.min,e=this.max,r=this.options.offset,n=[];let o=this.getLabels();o=0===t&&e===o.length-1?o:o.slice(t,e+1),this._valueRange=Math.max(o.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let r=t;r<=e;r++)n.push({value:r});return n}getLabelForValue(t){return ji.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}},Ri,class extends Jn{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:r,backgroundColor:n}}=this,{inner:o,outer:i}=oi(this),a=(s=i.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?Fe:ai;var s;t.save(),i.w===o.w&&i.h===o.h||(t.beginPath(),a(t,si(i,e,o)),t.clip(),a(t,si(o,-e,i)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),a(t,si(o,e)),t.fillStyle=n,t.fill(),t.restore()}inRange(t,e,r){return ii(this,t,e,r)}inXRange(t,e){return ii(this,t,null,e)}inYRange(t,e){return ii(this,null,t,e)}getCenterPoint(t){const{x:e,y:r,base:n,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(e+n)/2:e,y:o?r:(r+n)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}},hi,Ai,di);Vo.register(class extends Jn{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const r=this.options;if((r.tension||"monotone"===r.cubicInterpolationMode)&&!r.stepped&&!this._pointsUpdated){const n=r.spanGaps?this._loop:this._fullLoop;pr(this._points,r,t,n,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(t,e){const r=t.points,n=t.options.spanGaps,o=r.length;if(!o)return[];const i=!!t._loop,{start:a,end:s}=function(t,e,r,n){let o=0,i=e-1;if(r&&!n)for(;o<e&&!t[o].skip;)o++;for(;o<e&&t[o].skip;)o++;for(o%=e,r&&(i+=o);i>o&&t[i%e].skip;)i--;return i%=e,{start:o,end:i}}(r,o,i,n);return Nr(t,!0===n?[{start:a,end:s,loop:i}]:function(t,e,r,n){const o=t.length,i=[];let a,s=e,c=t[e];for(a=e+1;a<=r;++a){const r=t[a%o];r.skip||r.stop?c.skip||(n=!1,i.push({start:e%o,end:(a-1)%o,loop:n}),e=s=r.stop?a:null):(s=a,c.skip&&(e=a)),c=r}return null!==s&&i.push({start:e%o,end:s%o,loop:n}),i}(r,a,s<a?s+o:s,!!t._fullLoop&&0===a&&s===o-1),r,e)}(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,r=t.length;return r&&e[t[r-1].end]}interpolate(t,e){const r=this.options,n=t[e],o=this.points,i=function(t,e){const r=[],n=t.segments;for(let o=0;o<n.length;o++){const i=Ir(n[o],t.points,e);i.length&&r.push(...i)}return r}(this,{property:e,start:n,end:n});if(!i.length)return;const a=[],s=function(t){return t.stepped?Ar:t.tension||"monotone"===t.cubicInterpolationMode?Cr:Tr}(r);let c,l;for(c=0,l=i.length;c<l;++c){const{start:l,end:u}=i[c],d=o[l],f=o[u];if(d===f){a.push(d);continue}const h=s(d,f,Math.abs((n-d[e])/(f[e]-d[e])),r.stepped);h[e]=t[e],a.push(h)}return 1===a.length?a[0]:a}pathSegment(t,e,r){return Qo(this)(t,this,e,r)}path(t,e,r){const n=this.segments,o=Qo(this);let i=this._loop;e=e||0,r=r||this.points.length-e;for(const a of n)i&=o(t,this,a,{start:e,end:e+r-1});return!!i}draw(t,e,r,n){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),ti(t,this,r,n),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}},class extends Jn{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,r){const n=this.options,{x:o,y:i}=this.getProps(["x","y"],r);return Math.pow(t-o,2)+Math.pow(e-i,2)<Math.pow(n.hitRadius+n.radius,2)}inXRange(t,e){return ei(this,t,"x",e)}inYRange(t,e){return ei(this,t,"y",e)}getCenterPoint(t){const{x:e,y:r}=this.getProps(["x","y"],t);return{x:e,y:r}}size(t){let e=(t=t||this.options||{}).radius||0;e=Math.max(e,e&&t.hoverRadius||0);return 2*(e+(e&&t.borderWidth||0))}draw(t,e){const r=this.options;this.skip||r.radius<.1||!Ce(this,e,this.size(r)/2)||(t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.fillStyle=r.backgroundColor,Te(t,r,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}},Ai,di,hi);var Yi=function(){return Yi=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Yi.apply(this,arguments)};function Xi(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}function qi(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{c(n.next(t))}catch(t){i(t)}}function s(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}c((n=n.apply(t,e||[])).next())}))}function Ki(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}function Gi(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError,Vo.register(class extends Jn{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,r){const n=this.getProps(["x","y"],r),{angle:o,distance:i}=Ht(n,{x:t,y:e}),{startAngle:a,endAngle:s,innerRadius:c,outerRadius:l,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),d=(this.options.spacing+this.options.borderWidth)/2,f=ct(u,s-a),h=Yt(o,a,s)&&a!==s,p=f>=Ot||h,g=qt(i,c+d,l+d);return p&&g}getCenterPoint(t){const{x:e,y:r,startAngle:n,endAngle:o,innerRadius:i,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:s,spacing:c}=this.options,l=(n+o)/2,u=(i+a+c+s)/2;return{x:e+Math.cos(l)*u,y:r+Math.sin(l)*u}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:r}=this,n=(e.offset||0)/4,o=(e.spacing||0)/2,i=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=r>Ot?Math.floor(r/Ot):0,0===r||this.innerRadius<0||this.outerRadius<0)return;t.save();const a=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(a)*n,Math.sin(a)*n);const s=n*(1-Math.sin(Math.min(St,r||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,r,n,o){const{fullCircles:i,startAngle:a,circumference:s}=e;let c=e.endAngle;if(i){Wo(t,e,r,n,c,o);for(let e=0;e<i;++e)t.fill();isNaN(s)||(c=a+(s%Ot||Ot))}Wo(t,e,r,n,c,o),t.fill()}(t,this,s,o,i),Yo(t,this,s,o,i),t.restore()}},Ai,di,hi);var Zi={xs:"min-w-3 min-h-3 text-[8px] px-1",sm:"min-w-4 min-h-4 text-[10px] px-1",md:"min-w-6 min-h-6 text-sm px-2",lg:"min-w-8 min-h-8 text-base px-3",xl:"min-w-10 min-h-10 text-lg px-4"},Qi={circle:"rounded-full",square:"rounded-none",roundedSquare:"rounded-lg",softRoundedSquare:"rounded-xl",pill:"rounded-full w-auto px-4"},Ji="function"==typeof Symbol&&Symbol.for,ta=Ji?Symbol.for("react.element"):60103,ea=Ji?Symbol.for("react.portal"):60106,ra=Ji?Symbol.for("react.fragment"):60107,na=Ji?Symbol.for("react.strict_mode"):60108,oa=Ji?Symbol.for("react.profiler"):60114,ia=Ji?Symbol.for("react.provider"):60109,aa=Ji?Symbol.for("react.context"):60110,sa=Ji?Symbol.for("react.async_mode"):60111,ca=Ji?Symbol.for("react.concurrent_mode"):60111,la=Ji?Symbol.for("react.forward_ref"):60112,ua=Ji?Symbol.for("react.suspense"):60113,da=Ji?Symbol.for("react.suspense_list"):60120,fa=Ji?Symbol.for("react.memo"):60115,ha=Ji?Symbol.for("react.lazy"):60116,pa=Ji?Symbol.for("react.block"):60121,ga=Ji?Symbol.for("react.fundamental"):60117,ma=Ji?Symbol.for("react.responder"):60118,ba=Ji?Symbol.for("react.scope"):60119;function ya(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case ta:switch(t=t.type){case sa:case ca:case ra:case oa:case na:case ua:return t;default:switch(t=t&&t.$$typeof){case aa:case la:case ha:case fa:case ia:return t;default:return e}}case ea:return e}}}function va(t){return ya(t)===ca}var wa={AsyncMode:sa,ConcurrentMode:ca,ContextConsumer:aa,ContextProvider:ia,Element:ta,ForwardRef:la,Fragment:ra,Lazy:ha,Memo:fa,Portal:ea,Profiler:oa,StrictMode:na,Suspense:ua,isAsyncMode:function(t){return va(t)||ya(t)===sa},isConcurrentMode:va,isContextConsumer:function(t){return ya(t)===aa},isContextProvider:function(t){return ya(t)===ia},isElement:function(t){return"object"==typeof t&&null!==t&&t.$$typeof===ta},isForwardRef:function(t){return ya(t)===la},isFragment:function(t){return ya(t)===ra},isLazy:function(t){return ya(t)===ha},isMemo:function(t){return ya(t)===fa},isPortal:function(t){return ya(t)===ea},isProfiler:function(t){return ya(t)===oa},isStrictMode:function(t){return ya(t)===na},isSuspense:function(t){return ya(t)===ua},isValidElementType:function(t){return"string"==typeof t||"function"==typeof t||t===ra||t===ca||t===oa||t===na||t===ua||t===da||"object"==typeof t&&null!==t&&(t.$$typeof===ha||t.$$typeof===fa||t.$$typeof===ia||t.$$typeof===aa||t.$$typeof===la||t.$$typeof===ga||t.$$typeof===ma||t.$$typeof===ba||t.$$typeof===pa)},typeOf:ya},xa=s((function(t,e){"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,v=t?Symbol.for("react.scope"):60119;function w(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:var h=t.type;switch(h){case l:case u:case o:case a:case i:case f:return h;default:var m=h&&h.$$typeof;switch(m){case c:case d:case g:case p:case s:return m;default:return e}}case n:return e}}}var x=l,_=u,k=c,E=s,S=r,O=d,T=o,A=g,C=p,j=n,P=a,M=i,D=f,R=!1;function I(t){return w(t)===u}e.AsyncMode=x,e.ConcurrentMode=_,e.ContextConsumer=k,e.ContextProvider=E,e.Element=S,e.ForwardRef=O,e.Fragment=T,e.Lazy=A,e.Memo=C,e.Portal=j,e.Profiler=P,e.StrictMode=M,e.Suspense=D,e.isAsyncMode=function(t){return R||(R=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I(t)||w(t)===l},e.isConcurrentMode=I,e.isContextConsumer=function(t){return w(t)===c},e.isContextProvider=function(t){return w(t)===s},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},e.isForwardRef=function(t){return w(t)===d},e.isFragment=function(t){return w(t)===o},e.isLazy=function(t){return w(t)===g},e.isMemo=function(t){return w(t)===p},e.isPortal=function(t){return w(t)===n},e.isProfiler=function(t){return w(t)===a},e.isStrictMode=function(t){return w(t)===i},e.isSuspense=function(t){return w(t)===f},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===u||t===a||t===i||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===g||t.$$typeof===p||t.$$typeof===s||t.$$typeof===c||t.$$typeof===d||t.$$typeof===b||t.$$typeof===y||t.$$typeof===v||t.$$typeof===m)},e.typeOf=w}()})),_a=s((function(t){"production"===process.env.NODE_ENV?t.exports=wa:t.exports=xa})),ka=Object.getOwnPropertySymbols,Ea=Object.prototype.hasOwnProperty,Sa=Object.prototype.propertyIsEnumerable;var Oa=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(e).map((function(t){return e[t]}));if("0123456789"!==n.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(t){o[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,n,o=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),i=1;i<arguments.length;i++){for(var a in r=Object(arguments[i]))Ea.call(r,a)&&(o[a]=r[a]);if(ka){n=ka(r);for(var s=0;s<n.length;s++)Sa.call(r,n[s])&&(o[n[s]]=r[n[s]])}}return o},Ta=Function.call.bind(Object.prototype.hasOwnProperty),Aa="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Ca=Ta,ja=function(){};if("production"!==process.env.NODE_ENV){var Pa=Aa,Ma={},Da=Ca;ja=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function Ra(t,e,r,n,o){if("production"!==process.env.NODE_ENV)for(var i in t)if(Da(t,i)){var a;try{if("function"!=typeof t[i]){var s=Error((n||"React class")+": "+r+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}a=t[i](e,i,n,r,null,Pa)}catch(t){a=t}if(!a||a instanceof Error||ja((n||"React class")+": type specification of "+r+" `"+i+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in Ma)){Ma[a.message]=!0;var c=o?o():"";ja("Failed "+r+" type: "+a.message+(null!=c?c:""))}}}Ra.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(Ma={})};var Ia=Ra,Na=function(){};function Fa(){return null}"production"!==process.env.NODE_ENV&&(Na=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}});function za(){}function La(){}La.resetWarningCache=za;var Ba=function(t,e){var r="function"==typeof Symbol&&Symbol.iterator;var n="<<anonymous>>",o={array:c("array"),bigint:c("bigint"),bool:c("boolean"),func:c("function"),number:c("number"),object:c("object"),string:c("string"),symbol:c("symbol"),any:s(Fa),arrayOf:function(t){return s((function(e,r,n,o,i){if("function"!=typeof t)return new a("Property `"+i+"` of component `"+n+"` has invalid PropType notation inside arrayOf.");var s=e[r];if(!Array.isArray(s))return new a("Invalid "+o+" `"+i+"` of type `"+d(s)+"` supplied to `"+n+"`, expected an array.");for(var c=0;c<s.length;c++){var l=t(s,c,n,o,i+"["+c+"]",Aa);if(l instanceof Error)return l}return null}))},element:s((function(e,r,n,o,i){var s=e[r];return t(s)?null:new a("Invalid "+o+" `"+i+"` of type `"+d(s)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:s((function(t,e,r,n,o){var i=t[e];return _a.isValidElementType(i)?null:new a("Invalid "+n+" `"+o+"` of type `"+d(i)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(t){return s((function(e,r,o,i,s){if(!(e[r]instanceof t)){var c=t.name||n;return new a("Invalid "+i+" `"+s+"` of type `"+(((l=e[r]).constructor&&l.constructor.name?l.constructor.name:n)+"` supplied to `")+o+"`, expected instance of `"+c+"`.")}var l;return null}))},node:s((function(t,e,r,n,o){return u(t[e])?null:new a("Invalid "+n+" `"+o+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(t){return s((function(e,r,n,o,i){if("function"!=typeof t)return new a("Property `"+i+"` of component `"+n+"` has invalid PropType notation inside objectOf.");var s=e[r],c=d(s);if("object"!==c)return new a("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+n+"`, expected an object.");for(var l in s)if(Ca(s,l)){var u=t(s,l,n,o,i+"."+l,Aa);if(u instanceof Error)return u}return null}))},oneOf:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&Na(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),Fa;return s((function(e,r,n,o,s){for(var c=e[r],l=0;l<t.length;l++)if(i(c,t[l]))return null;var u=JSON.stringify(t,(function(t,e){return"symbol"===f(e)?String(e):e}));return new a("Invalid "+o+" `"+s+"` of value `"+String(c)+"` supplied to `"+n+"`, expected one of "+u+".")}))},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&Na("Invalid argument supplied to oneOfType, expected an instance of array."),Fa;for(var e=0;e<t.length;e++){var r=t[e];if("function"!=typeof r)return Na("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+h(r)+" at index "+e+"."),Fa}return s((function(e,r,n,o,i){for(var s=[],c=0;c<t.length;c++){var l=(0,t[c])(e,r,n,o,i,Aa);if(null==l)return null;l.data&&Ca(l.data,"expectedType")&&s.push(l.data.expectedType)}return new a("Invalid "+o+" `"+i+"` supplied to `"+n+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(t){return s((function(e,r,n,o,i){var s=e[r],c=d(s);if("object"!==c)return new a("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+n+"`, expected `object`.");for(var u in t){var h=t[u];if("function"!=typeof h)return l(n,o,i,u,f(h));var p=h(s,u,n,o,i+"."+u,Aa);if(p)return p}return null}))},exact:function(t){return s((function(e,r,n,o,i){var s=e[r],c=d(s);if("object"!==c)return new a("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+n+"`, expected `object`.");var u=Oa({},e[r],t);for(var h in u){var p=t[h];if(Ca(t,h)&&"function"!=typeof p)return l(n,o,i,h,f(p));if(!p)return new a("Invalid "+o+" `"+i+"` key `"+h+"` supplied to `"+n+"`.\nBad object: "+JSON.stringify(e[r],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var g=p(s,h,n,o,i+"."+h,Aa);if(g)return g}return null}))}};function i(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function a(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function s(t){if("production"!==process.env.NODE_ENV)var r={},o=0;function i(i,s,c,l,u,d,f){if(l=l||n,d=d||c,f!==Aa){if(e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var p=l+":"+c;!r[p]&&o<3&&(Na("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),r[p]=!0,o++)}}return null==s[c]?i?null===s[c]?new a("The "+u+" `"+d+"` is marked as required in `"+l+"`, but its value is `null`."):new a("The "+u+" `"+d+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:t(s,c,l,u,d)}var s=i.bind(null,!1);return s.isRequired=i.bind(null,!0),s}function c(t){return s((function(e,r,n,o,i,s){var c=e[r];return d(c)!==t?new a("Invalid "+o+" `"+i+"` of type `"+f(c)+"` supplied to `"+n+"`, expected `"+t+"`.",{expectedType:t}):null}))}function l(t,e,r,n,o){return new a((t||"React class")+": "+e+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function u(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(u);if(null===e||t(e))return!0;var n=function(t){var e=t&&(r&&t[r]||t["@@iterator"]);if("function"==typeof e)return e}(e);if(!n)return!1;var o,i=n.call(e);if(n!==e.entries){for(;!(o=i.next()).done;)if(!u(o.value))return!1}else for(;!(o=i.next()).done;){var a=o.value;if(a&&!u(a[1]))return!1}return!0;default:return!1}}function d(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function f(t){if(null==t)return""+t;var e=d(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function h(t){var e=f(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return a.prototype=Error.prototype,o.checkPropTypes=Ia,o.resetWarningCache=Ia.resetWarningCache,o.PropTypes=o,o},Va=function(){function t(t,e,r,n,o,i){if(i!==Aa){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:La,resetWarningCache:za};return r.PropTypes=r,r},Ha=s((function(t){if("production"!==process.env.NODE_ENV){var e=_a;t.exports=Ba(e.isElement,!0)}else t.exports=Va()})),$a="object"==typeof a&&a&&a.Object===Object&&a,Ua="object"==typeof self&&self&&self.Object===Object&&self,Wa=$a||Ua||Function("return this")(),Ya=Wa.Symbol,Xa=Object.prototype,qa=Xa.hasOwnProperty,Ka=Xa.toString,Ga=Ya?Ya.toStringTag:void 0;var Za=function(t){var e=qa.call(t,Ga),r=t[Ga];try{t[Ga]=void 0;var n=!0}catch(t){}var o=Ka.call(t);return n&&(e?t[Ga]=r:delete t[Ga]),o},Qa=Object.prototype.toString;var Ja=function(t){return Qa.call(t)},ts=Ya?Ya.toStringTag:void 0;var es=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ts&&ts in Object(t)?Za(t):Ja(t)};var rs=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var ns=function(t){if(!rs(t))return!1;var e=es(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},os=Wa["__core-js_shared__"],is=function(){var t=/[^.]+$/.exec(os&&os.keys&&os.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var as=function(t){return!!is&&is in t},ss=Function.prototype.toString;var cs=function(t){if(null!=t){try{return ss.call(t)}catch(t){}try{return t+""}catch(t){}}return""},ls=/^\[object .+?Constructor\]$/,us=Function.prototype,ds=Object.prototype,fs=us.toString,hs=ds.hasOwnProperty,ps=RegExp("^"+fs.call(hs).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var gs=function(t){return!(!rs(t)||as(t))&&(ns(t)?ps:ls).test(cs(t))};var ms=function(t,e){return null==t?void 0:t[e]};var bs=function(t,e){var r=ms(t,e);return gs(r)?r:void 0},ys=function(){try{var t=bs(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),vs=ys;var ws=function(t,e,r){"__proto__"==e&&vs?vs(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r};var xs=function(t,e){return t===e||t!=t&&e!=e},_s=Object.prototype.hasOwnProperty;var ks=function(t,e,r){var n=t[e];_s.call(t,e)&&xs(n,r)&&(void 0!==r||e in t)||ws(t,e,r)};var Es=function(t,e,r,n){var o=!r;r||(r={});for(var i=-1,a=e.length;++i<a;){var s=e[i],c=n?n(r[s],t[s],s,r,t):void 0;void 0===c&&(c=t[s]),o?ws(r,s,c):ks(r,s,c)}return r};var Ss=function(t){return t};var Os=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)},Ts=Math.max;var As=function(t,e,r){return e=Ts(void 0===e?t.length-1:e,0),function(){for(var n=arguments,o=-1,i=Ts(n.length-e,0),a=Array(i);++o<i;)a[o]=n[e+o];o=-1;for(var s=Array(e+1);++o<e;)s[o]=n[o];return s[e]=r(a),Os(t,this,s)}};var Cs=function(t){return function(){return t}},js=vs?function(t,e){return vs(t,"toString",{configurable:!0,enumerable:!1,value:Cs(e),writable:!0})}:Ss,Ps=js,Ms=Date.now;var Ds=function(t){var e=0,r=0;return function(){var n=Ms(),o=16-(n-r);if(r=n,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}},Rs=Ds(Ps);var Is=function(t,e){return Rs(As(t,e,Ss),t+"")};var Ns=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Fs=function(t){return null!=t&&Ns(t.length)&&!ns(t)},zs=/^(?:0|[1-9]\d*)$/;var Ls=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&zs.test(t))&&t>-1&&t%1==0&&t<e};var Bs=function(t,e,r){if(!rs(r))return!1;var n=typeof e;return!!("number"==n?Fs(r)&&Ls(e,r.length):"string"==n&&e in r)&&xs(r[e],t)};var Vs=function(t){return Is((function(e,r){var n=-1,o=r.length,i=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,a&&Bs(r[0],r[1],a)&&(i=o<3?void 0:i,o=1),e=Object(e);++n<o;){var s=r[n];s&&t(e,s,n,i)}return e}))},Hs=Object.prototype;var $s=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Hs)};var Us=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n};var Ws=function(t){return null!=t&&"object"==typeof t};var Ys=function(t){return Ws(t)&&"[object Arguments]"==es(t)},Xs=Object.prototype,qs=Xs.hasOwnProperty,Ks=Xs.propertyIsEnumerable,Gs=Ys(function(){return arguments}())?Ys:function(t){return Ws(t)&&qs.call(t,"callee")&&!Ks.call(t,"callee")},Zs=Array.isArray;var Qs=function(){return!1},Js=s((function(t,e){var r=e&&!e.nodeType&&e,n=r&&t&&!t.nodeType&&t,o=n&&n.exports===r?Wa.Buffer:void 0,i=(o?o.isBuffer:void 0)||Qs;t.exports=i})),tc={};tc["[object Float32Array]"]=tc["[object Float64Array]"]=tc["[object Int8Array]"]=tc["[object Int16Array]"]=tc["[object Int32Array]"]=tc["[object Uint8Array]"]=tc["[object Uint8ClampedArray]"]=tc["[object Uint16Array]"]=tc["[object Uint32Array]"]=!0,tc["[object Arguments]"]=tc["[object Array]"]=tc["[object ArrayBuffer]"]=tc["[object Boolean]"]=tc["[object DataView]"]=tc["[object Date]"]=tc["[object Error]"]=tc["[object Function]"]=tc["[object Map]"]=tc["[object Number]"]=tc["[object Object]"]=tc["[object RegExp]"]=tc["[object Set]"]=tc["[object String]"]=tc["[object WeakMap]"]=!1;var ec=function(t){return Ws(t)&&Ns(t.length)&&!!tc[es(t)]};var rc=function(t){return function(e){return t(e)}},nc=s((function(t,e){var r=e&&!e.nodeType&&e,n=r&&t&&!t.nodeType&&t,o=n&&n.exports===r&&$a.process,i=function(){try{var t=n&&n.require&&n.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=i})),oc=nc&&nc.isTypedArray,ic=oc?rc(oc):ec,ac=Object.prototype.hasOwnProperty;var sc=function(t,e){var r=Zs(t),n=!r&&Gs(t),o=!r&&!n&&Js(t),i=!r&&!n&&!o&&ic(t),a=r||n||o||i,s=a?Us(t.length,String):[],c=s.length;for(var l in t)!e&&!ac.call(t,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Ls(l,c))||s.push(l);return s};var cc=function(t,e){return function(r){return t(e(r))}},lc=cc(Object.keys,Object),uc=Object.prototype.hasOwnProperty;var dc=function(t){if(!$s(t))return lc(t);var e=[];for(var r in Object(t))uc.call(t,r)&&"constructor"!=r&&e.push(r);return e};var fc=function(t){return Fs(t)?sc(t):dc(t)},hc=Object.prototype.hasOwnProperty,pc=Vs((function(t,e){if($s(e)||Fs(e))Es(e,fc(e),t);else for(var r in e)hc.call(e,r)&&ks(t,r,e[r])}));var gc=function(){this.__data__=[],this.size=0};var mc=function(t,e){for(var r=t.length;r--;)if(xs(t[r][0],e))return r;return-1},bc=Array.prototype.splice;var yc=function(t){var e=this.__data__,r=mc(e,t);return!(r<0)&&(r==e.length-1?e.pop():bc.call(e,r,1),--this.size,!0)};var vc=function(t){var e=this.__data__,r=mc(e,t);return r<0?void 0:e[r][1]};var wc=function(t){return mc(this.__data__,t)>-1};var xc=function(t,e){var r=this.__data__,n=mc(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function _c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}_c.prototype.clear=gc,_c.prototype.delete=yc,_c.prototype.get=vc,_c.prototype.has=wc,_c.prototype.set=xc;var kc=_c;var Ec=function(){this.__data__=new kc,this.size=0};var Sc=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r};var Oc=function(t){return this.__data__.get(t)};var Tc=function(t){return this.__data__.has(t)},Ac=bs(Wa,"Map"),Cc=bs(Object,"create");var jc=function(){this.__data__=Cc?Cc(null):{},this.size=0};var Pc=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Mc=Object.prototype.hasOwnProperty;var Dc=function(t){var e=this.__data__;if(Cc){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return Mc.call(e,t)?e[t]:void 0},Rc=Object.prototype.hasOwnProperty;var Ic=function(t){var e=this.__data__;return Cc?void 0!==e[t]:Rc.call(e,t)};var Nc=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Cc&&void 0===e?"__lodash_hash_undefined__":e,this};function Fc(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Fc.prototype.clear=jc,Fc.prototype.delete=Pc,Fc.prototype.get=Dc,Fc.prototype.has=Ic,Fc.prototype.set=Nc;var zc=Fc;var Lc=function(){this.size=0,this.__data__={hash:new zc,map:new(Ac||kc),string:new zc}};var Bc=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Vc=function(t,e){var r=t.__data__;return Bc(e)?r["string"==typeof e?"string":"hash"]:r.map};var Hc=function(t){var e=Vc(this,t).delete(t);return this.size-=e?1:0,e};var $c=function(t){return Vc(this,t).get(t)};var Uc=function(t){return Vc(this,t).has(t)};var Wc=function(t,e){var r=Vc(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function Yc(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Yc.prototype.clear=Lc,Yc.prototype.delete=Hc,Yc.prototype.get=$c,Yc.prototype.has=Uc,Yc.prototype.set=Wc;var Xc=Yc;var qc=function(t,e){var r=this.__data__;if(r instanceof kc){var n=r.__data__;if(!Ac||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Xc(n)}return r.set(t,e),this.size=r.size,this};function Kc(t){var e=this.__data__=new kc(t);this.size=e.size}Kc.prototype.clear=Ec,Kc.prototype.delete=Sc,Kc.prototype.get=Oc,Kc.prototype.has=Tc,Kc.prototype.set=qc;var Gc=Kc;var Zc=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t};var Qc=function(t,e){return t&&Es(e,fc(e),t)};var Jc=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e},tl=Object.prototype.hasOwnProperty;var el=function(t){if(!rs(t))return Jc(t);var e=$s(t),r=[];for(var n in t)("constructor"!=n||!e&&tl.call(t,n))&&r.push(n);return r};var rl=function(t){return Fs(t)?sc(t,!0):el(t)};var nl=function(t,e){return t&&Es(e,rl(e),t)},ol=s((function(t,e){var r=e&&!e.nodeType&&e,n=r&&t&&!t.nodeType&&t,o=n&&n.exports===r?Wa.Buffer:void 0,i=o?o.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=i?i(r):new t.constructor(r);return t.copy(n),n}}));var il=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e};var al=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i};var sl=function(){return[]},cl=Object.prototype.propertyIsEnumerable,ll=Object.getOwnPropertySymbols,ul=ll?function(t){return null==t?[]:(t=Object(t),al(ll(t),(function(e){return cl.call(t,e)})))}:sl;var dl=function(t,e){return Es(t,ul(t),e)};var fl=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t},hl=cc(Object.getPrototypeOf,Object),pl=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)fl(e,ul(t)),t=hl(t);return e}:sl,gl=pl;var ml=function(t,e){return Es(t,gl(t),e)};var bl=function(t,e,r){var n=e(t);return Zs(t)?n:fl(n,r(t))};var yl=function(t){return bl(t,fc,ul)};var vl=function(t){return bl(t,rl,gl)},wl=bs(Wa,"DataView"),xl=bs(Wa,"Promise"),_l=bs(Wa,"Set"),kl=bs(Wa,"WeakMap"),El="[object Map]",Sl="[object Promise]",Ol="[object Set]",Tl="[object WeakMap]",Al="[object DataView]",Cl=cs(wl),jl=cs(Ac),Pl=cs(xl),Ml=cs(_l),Dl=cs(kl),Rl=es;(wl&&Rl(new wl(new ArrayBuffer(1)))!=Al||Ac&&Rl(new Ac)!=El||xl&&Rl(xl.resolve())!=Sl||_l&&Rl(new _l)!=Ol||kl&&Rl(new kl)!=Tl)&&(Rl=function(t){var e=es(t),r="[object Object]"==e?t.constructor:void 0,n=r?cs(r):"";if(n)switch(n){case Cl:return Al;case jl:return El;case Pl:return Sl;case Ml:return Ol;case Dl:return Tl}return e});var Il=Rl,Nl=Object.prototype.hasOwnProperty;var Fl=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&Nl.call(t,"index")&&(r.index=t.index,r.input=t.input),r},zl=Wa.Uint8Array;var Ll=function(t){var e=new t.constructor(t.byteLength);return new zl(e).set(new zl(t)),e};var Bl=function(t,e){var r=e?Ll(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)},Vl=/\w*$/;var Hl=function(t){var e=new t.constructor(t.source,Vl.exec(t));return e.lastIndex=t.lastIndex,e},$l=Ya?Ya.prototype:void 0,Ul=$l?$l.valueOf:void 0;var Wl=function(t){return Ul?Object(Ul.call(t)):{}};var Yl=function(t,e){var r=e?Ll(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)};var Xl=function(t,e,r){var n=t.constructor;switch(e){case"[object ArrayBuffer]":return Ll(t);case"[object Boolean]":case"[object Date]":return new n(+t);case"[object DataView]":return Bl(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Yl(t,r);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(t);case"[object RegExp]":return Hl(t);case"[object Symbol]":return Wl(t)}},ql=Object.create,Kl=function(){function t(){}return function(e){if(!rs(e))return{};if(ql)return ql(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),Gl=Kl;var Zl=function(t){return"function"!=typeof t.constructor||$s(t)?{}:Gl(hl(t))};var Ql=function(t){return Ws(t)&&"[object Map]"==Il(t)},Jl=nc&&nc.isMap,tu=Jl?rc(Jl):Ql;var eu=function(t){return Ws(t)&&"[object Set]"==Il(t)},ru=nc&&nc.isSet,nu=ru?rc(ru):eu,ou="[object Arguments]",iu="[object Function]",au="[object Object]",su={};su[ou]=su["[object Array]"]=su["[object ArrayBuffer]"]=su["[object DataView]"]=su["[object Boolean]"]=su["[object Date]"]=su["[object Float32Array]"]=su["[object Float64Array]"]=su["[object Int8Array]"]=su["[object Int16Array]"]=su["[object Int32Array]"]=su["[object Map]"]=su["[object Number]"]=su[au]=su["[object RegExp]"]=su["[object Set]"]=su["[object String]"]=su["[object Symbol]"]=su["[object Uint8Array]"]=su["[object Uint8ClampedArray]"]=su["[object Uint16Array]"]=su["[object Uint32Array]"]=!0,su["[object Error]"]=su[iu]=su["[object WeakMap]"]=!1;var cu=function t(e,r,n,o,i,a){var s,c=1&r,l=2&r,u=4&r;if(n&&(s=i?n(e,o,i,a):n(e)),void 0!==s)return s;if(!rs(e))return e;var d=Zs(e);if(d){if(s=Fl(e),!c)return il(e,s)}else{var f=Il(e),h=f==iu||"[object GeneratorFunction]"==f;if(Js(e))return ol(e,c);if(f==au||f==ou||h&&!i){if(s=l||h?{}:Zl(e),!c)return l?ml(e,nl(s,e)):dl(e,Qc(s,e))}else{if(!su[f])return i?e:{};s=Xl(e,f,c)}}a||(a=new Gc);var p=a.get(e);if(p)return p;a.set(e,s),nu(e)?e.forEach((function(o){s.add(t(o,r,n,o,e,a))})):tu(e)&&e.forEach((function(o,i){s.set(i,t(o,r,n,i,e,a))}));var g=d?void 0:(u?l?vl:yl:l?rl:fc)(e);return Zc(g||e,(function(o,i){g&&(o=e[i=o]),ks(s,i,t(o,r,n,i,e,a))})),s};var lu=function(t){return cu(t,5)};var uu=function(t){for(var e=-1,r=null==t?0:t.length,n=0,o=[];++e<r;){var i=t[e];i&&(o[n++]=i)}return o};var du=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};var fu=function(t){return this.__data__.has(t)};function hu(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new Xc;++e<r;)this.add(t[e])}hu.prototype.add=hu.prototype.push=du,hu.prototype.has=fu;var pu=hu;var gu=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1};var mu=function(t){return t!=t};var bu=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1};var yu=function(t,e,r){return e==e?bu(t,e,r):gu(t,mu,r)};var vu=function(t,e){return!!(null==t?0:t.length)&&yu(t,e,0)>-1};var wu=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1};var xu=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o};var _u=function(t,e){return t.has(e)};var ku=function(t,e,r,n){var o=-1,i=vu,a=!0,s=t.length,c=[],l=e.length;if(!s)return c;r&&(e=xu(e,rc(r))),n?(i=wu,a=!1):e.length>=200&&(i=_u,a=!1,e=new pu(e));t:for(;++o<s;){var u=t[o],d=null==r?u:r(u);if(u=n||0!==u?u:0,a&&d==d){for(var f=l;f--;)if(e[f]===d)continue t;c.push(u)}else i(e,d,n)||c.push(u)}return c},Eu=Ya?Ya.isConcatSpreadable:void 0;var Su=function(t){return Zs(t)||Gs(t)||!!(Eu&&t&&t[Eu])};var Ou=function t(e,r,n,o,i){var a=-1,s=e.length;for(n||(n=Su),i||(i=[]);++a<s;){var c=e[a];r>0&&n(c)?r>1?t(c,r-1,n,o,i):fl(i,c):o||(i[i.length]=c)}return i};var Tu=function(t){return Ws(t)&&Fs(t)},Au=Is((function(t,e){return Tu(t)?ku(t,Ou(e,1,Tu,!0)):[]})),Cu=Au;var ju=function(t,e){return al(e,(function(e){return ns(t[e])}))};var Pu=function(t){return null==t?[]:ju(t,fc(t))};var Mu=function(t){return"string"==typeof t||!Zs(t)&&Ws(t)&&"[object String]"==es(t)},Du=/\s/;var Ru=function(t){for(var e=t.length;e--&&Du.test(t.charAt(e)););return e},Iu=/^\s+/;var Nu=function(t){return t?t.slice(0,Ru(t)+1).replace(Iu,""):t};var Fu=function(t){return"symbol"==typeof t||Ws(t)&&"[object Symbol]"==es(t)},zu=/^[-+]0x[0-9a-f]+$/i,Lu=/^0b[01]+$/i,Bu=/^0o[0-7]+$/i,Vu=parseInt;var Hu=function(t){if("number"==typeof t)return t;if(Fu(t))return NaN;if(rs(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=rs(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Nu(t);var r=Lu.test(t);return r||Bu.test(t)?Vu(t.slice(2),r?2:8):zu.test(t)?NaN:+t},$u=1/0;var Uu=function(t){return t?(t=Hu(t))===$u||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0};var Wu=function(t){var e=Uu(t),r=e%1;return e==e?r?e-r:e:0};var Yu=function(t,e){return xu(e,(function(e){return t[e]}))};var Xu=function(t){return null==t?[]:Yu(t,fc(t))},qu=Math.max;var Ku=function(t,e,r,n){t=Fs(t)?t:Xu(t),r=r&&!n?Wu(r):0;var o=t.length;return r<0&&(r=qu(o+r,0)),Mu(t)?r<=o&&t.indexOf(e,r)>-1:!!o&&yu(t,e,r)>-1},Gu=Function.prototype,Zu=Object.prototype,Qu=Gu.toString,Ju=Zu.hasOwnProperty,td=Qu.call(Object);var ed=function(t){if(!Ws(t)||"[object Object]"!=es(t))return!1;var e=hl(t);if(null===e)return!0;var r=Ju.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Qu.call(r)==td};var rd=function(t){return Ws(t)&&1===t.nodeType&&!ed(t)};var nd=function(t,e,r){(void 0!==r&&!xs(t[e],r)||void 0===r&&!(e in t))&&ws(t,e,r)};var od=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),s=a.length;s--;){var c=a[t?s:++o];if(!1===r(i[c],c,i))break}return e}}();var id=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]};var ad=function(t){return Es(t,rl(t))};var sd=function(t,e,r,n,o,i,a){var s=id(t,r),c=id(e,r),l=a.get(c);if(l)nd(t,r,l);else{var u=i?i(s,c,r+"",t,e,a):void 0,d=void 0===u;if(d){var f=Zs(c),h=!f&&Js(c),p=!f&&!h&&ic(c);u=c,f||h||p?Zs(s)?u=s:Tu(s)?u=il(s):h?(d=!1,u=ol(c,!0)):p?(d=!1,u=Yl(c,!0)):u=[]:ed(c)||Gs(c)?(u=s,Gs(s)?u=ad(s):rs(s)&&!ns(s)||(u=Zl(c))):d=!1}d&&(a.set(c,u),o(u,c,n,i,a),a.delete(c)),nd(t,r,u)}};var cd=function t(e,r,n,o,i){e!==r&&od(r,(function(a,s){if(i||(i=new Gc),rs(a))sd(e,r,s,n,t,o,i);else{var c=o?o(id(e,s),a,s+"",e,r,i):void 0;void 0===c&&(c=a),nd(e,s,c)}}),rl)},ld=Vs((function(t,e,r){cd(t,e,r)})),ud=Ya?Ya.prototype:void 0,dd=ud?ud.toString:void 0;var fd=function t(e){if("string"==typeof e)return e;if(Zs(e))return xu(e,t)+"";if(Fu(e))return dd?dd.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r};var hd=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i};var pd=function(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:hd(t,e,r)};var gd=function(t,e){for(var r=t.length;r--&&yu(e,t[r],0)>-1;);return r};var md=function(t,e){for(var r=-1,n=t.length;++r<n&&yu(e,t[r],0)>-1;);return r};var bd=function(t){return t.split("")},yd=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var vd=function(t){return yd.test(t)},wd="\\ud800-\\udfff",xd="["+wd+"]",_d="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",kd="\\ud83c[\\udffb-\\udfff]",Ed="[^"+wd+"]",Sd="(?:\\ud83c[\\udde6-\\uddff]){2}",Od="[\\ud800-\\udbff][\\udc00-\\udfff]",Td="(?:"+_d+"|"+kd+")"+"?",Ad="[\\ufe0e\\ufe0f]?",Cd=Ad+Td+("(?:\\u200d(?:"+[Ed,Sd,Od].join("|")+")"+Ad+Td+")*"),jd="(?:"+[Ed+_d+"?",_d,Sd,Od,xd].join("|")+")",Pd=RegExp(kd+"(?="+kd+")|"+jd+Cd,"g");var Md=function(t){return t.match(Pd)||[]};var Dd=function(t){return vd(t)?Md(t):bd(t)};var Rd=function(t){return null==t?"":fd(t)};var Id=function(t,e,r){if((t=Rd(t))&&(r||void 0===e))return Nu(t);if(!t||!(e=fd(e)))return t;var n=Dd(t),o=Dd(e),i=md(n,o),a=gd(n,o)+1;return pd(n,i,a).join("")},Nd=s((function(t,e){var r;r=function(t,e,r,n,o,i,a,s,c,l,u,d,f,h){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="./src/namespace/cloudinary-core.js")}({"./src/namespace/cloudinary-core.js":function(t,e,r){r.r(e),r.d(e,"ClientHintsMetaTag",(function(){return Qn})),r.d(e,"Cloudinary",(function(){return ko})),r.d(e,"Condition",(function(){return be})),r.d(e,"Configuration",(function(){return Se})),r.d(e,"crc32",(function(){return a})),r.d(e,"Expression",(function(){return le})),r.d(e,"FetchLayer",(function(){return Je})),r.d(e,"HtmlTag",(function(){return Br})),r.d(e,"ImageTag",(function(){return dn})),r.d(e,"Layer",(function(){return Ce})),r.d(e,"PictureTag",(function(){return Pn})),r.d(e,"SubtitlesLayer",(function(){return We})),r.d(e,"TextLayer",(function(){return Fe})),r.d(e,"Transformation",(function(){return Rr})),r.d(e,"utf8_encode",(function(){return i})),r.d(e,"Util",(function(){return o})),r.d(e,"VideoTag",(function(){return Un}));var n={};r.r(n),r.d(n,"VERSION",(function(){return q})),r.d(n,"CF_SHARED_CDN",(function(){return K})),r.d(n,"OLD_AKAMAI_SHARED_CDN",(function(){return G})),r.d(n,"AKAMAI_SHARED_CDN",(function(){return Z})),r.d(n,"SHARED_CDN",(function(){return Q})),r.d(n,"DEFAULT_TIMEOUT_MS",(function(){return J})),r.d(n,"DEFAULT_POSTER_OPTIONS",(function(){return tt})),r.d(n,"DEFAULT_VIDEO_SOURCE_TYPES",(function(){return et})),r.d(n,"SEO_TYPES",(function(){return rt})),r.d(n,"DEFAULT_IMAGE_PARAMS",(function(){return nt})),r.d(n,"DEFAULT_VIDEO_PARAMS",(function(){return ot})),r.d(n,"DEFAULT_VIDEO_SOURCES",(function(){return it})),r.d(n,"DEFAULT_EXTERNAL_LIBRARIES",(function(){return at})),r.d(n,"PLACEHOLDER_IMAGE_MODES",(function(){return st})),r.d(n,"ACCESSIBILITY_MODES",(function(){return ct})),r.d(n,"URL_KEYS",(function(){return lt}));var o={};r.r(o),r.d(o,"getSDKAnalyticsSignature",(function(){return p})),r.d(o,"getAnalyticsOptions",(function(){return g})),r.d(o,"assign",(function(){return b.a})),r.d(o,"cloneDeep",(function(){return v.a})),r.d(o,"compact",(function(){return x.a})),r.d(o,"difference",(function(){return k.a})),r.d(o,"functions",(function(){return S.a})),r.d(o,"identity",(function(){return T.a})),r.d(o,"includes",(function(){return C.a})),r.d(o,"isArray",(function(){return P.a})),r.d(o,"isPlainObject",(function(){return D.a})),r.d(o,"isString",(function(){return I.a})),r.d(o,"merge",(function(){return F.a})),r.d(o,"contains",(function(){return C.a})),r.d(o,"isIntersectionObserverSupported",(function(){return W})),r.d(o,"isNativeLazyLoadSupported",(function(){return Y})),r.d(o,"detectIntersection",(function(){return X})),r.d(o,"omit",(function(){return dt})),r.d(o,"allStrings",(function(){return gt})),r.d(o,"without",(function(){return mt})),r.d(o,"isNumberLike",(function(){return bt})),r.d(o,"smartEscape",(function(){return yt})),r.d(o,"defaults",(function(){return vt})),r.d(o,"objectProto",(function(){return wt})),r.d(o,"objToString",(function(){return xt})),r.d(o,"isObject",(function(){return _t})),r.d(o,"funcTag",(function(){return kt})),r.d(o,"reWords",(function(){return St})),r.d(o,"camelCase",(function(){return Ot})),r.d(o,"snakeCase",(function(){return Tt})),r.d(o,"convertKeys",(function(){return At})),r.d(o,"withCamelCaseKeys",(function(){return Ct})),r.d(o,"withSnakeCaseKeys",(function(){return jt})),r.d(o,"base64Encode",(function(){return Pt})),r.d(o,"base64EncodeURL",(function(){return Mt})),r.d(o,"extractUrlParams",(function(){return Dt})),r.d(o,"patchFetchFormat",(function(){return Rt})),r.d(o,"optionConsume",(function(){return It})),r.d(o,"isEmpty",(function(){return Nt})),r.d(o,"isAndroid",(function(){return zt})),r.d(o,"isEdge",(function(){return Lt})),r.d(o,"isChrome",(function(){return Bt})),r.d(o,"isSafari",(function(){return Vt})),r.d(o,"isElement",(function(){return L.a})),r.d(o,"isFunction",(function(){return V.a})),r.d(o,"trim",(function(){return $.a})),r.d(o,"getData",(function(){return Ht})),r.d(o,"setData",(function(){return $t})),r.d(o,"getAttribute",(function(){return Ut})),r.d(o,"setAttribute",(function(){return Wt})),r.d(o,"removeAttribute",(function(){return Yt})),r.d(o,"setAttributes",(function(){return Xt})),r.d(o,"hasClass",(function(){return qt})),r.d(o,"addClass",(function(){return Kt})),r.d(o,"getStyles",(function(){return Gt})),r.d(o,"cssExpand",(function(){return Zt})),r.d(o,"domStyle",(function(){return Qt})),r.d(o,"curCSS",(function(){return Jt})),r.d(o,"cssValue",(function(){return te})),r.d(o,"augmentWidthOrHeight",(function(){return ee})),r.d(o,"getWidthOrHeight",(function(){return ne})),r.d(o,"width",(function(){return oe}));var i=function(t){var e,r,n,o,i,a,s,c;if(null==t)return"";for(c="",i=void 0,n=void 0,i=n=0,s=(a=t+"").length,o=0;o<s;)r=null,(e=a.charCodeAt(o))<128?n++:r=e>127&&e<2048?String.fromCharCode(e>>6|192,63&e|128):String.fromCharCode(e>>12|224,e>>6&63|128,63&e|128),null!==r&&(n>i&&(c+=a.slice(i,n)),c+=r,i=n=o+1),o++;return n>i&&(c+=a.slice(i,s)),c},a=function(t){var e,r,n,o;for(o=0,e=~(e=0),r=0,n=(t=i(t)).length;r<n;)o=255&(e^t.charCodeAt(r)),e=e>>>8^"0x"+"00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D".substr(9*o,8),r++;return(e=~e)<0&&(e+=4294967296),e};function s(t,e,r){return e|=0,r=String(void 0!==r?r:" "),t.length>e?String(t):((e-=t.length)>r.length&&(r+=function(t,e){for(var r="";e>0;)r+=t,e--;return r}(r,e/r.length)),r.slice(0,e)+String(t))}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var l,u=0,d={};(l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",function(t){if(Array.isArray(t))return c(t)}(l)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(l)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(t,e):void 0}}(l)||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.")}()).forEach((function(t){var e=u.toString(2);e=s(e,6,"0"),d[e]=t,u++}));var f=d;function h(t){var e="",r=6*t.split(".").length,n=function(t){if(t.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return t.split(".").reverse().map((function(t){return s(t,2,"0")})).join(".")}(t),o=parseInt(n.split(".").join("")).toString(2);if((o=s(o,r,"0")).length%6!=0)throw"Version must be smaller than 43.21.26)";return o.match(/.{1,6}/g).forEach((function(t){e+=f[t]})),e}function p(){var t,e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{var n=(t=r.techVersion,e=t.split("."),"".concat(e[0],".").concat(e[1])),o=h(r.sdkSemver),i=h(n),a=r.feature,s=r.sdkCode;return"".concat("A").concat(s).concat(o).concat(i).concat(a)}catch(t){return"E"}}function g(t){var e={sdkSemver:t.sdkSemver,techVersion:t.techVersion,sdkCode:t.sdkCode,feature:"0"};return t.urlAnalytics?(t.accessibility&&(e.feature="D"),"lazy"===t.loading&&(e.feature="C"),t.responsive&&(e.feature="A"),t.placeholder&&(e.feature="B"),e):{}}var m=r("lodash/assign"),b=r.n(m),y=r("lodash/cloneDeep"),v=r.n(y),w=r("lodash/compact"),x=r.n(w),_=r("lodash/difference"),k=r.n(_),E=r("lodash/functions"),S=r.n(E),O=r("lodash/identity"),T=r.n(O),A=r("lodash/includes"),C=r.n(A),j=r("lodash/isArray"),P=r.n(j),M=r("lodash/isPlainObject"),D=r.n(M),R=r("lodash/isString"),I=r.n(R),N=r("lodash/merge"),F=r.n(N),z=r("lodash/isElement"),L=r.n(z),B=r("lodash/isFunction"),V=r.n(B),H=r("lodash/trim"),$=r.n(H);function U(t){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},U(t)}function W(){return"object"===("undefined"==typeof window?"undefined":U(window))&&window.IntersectionObserver}function Y(){return"object"===("undefined"==typeof HTMLImageElement?"undefined":U(HTMLImageElement))&&HTMLImageElement.prototype.loading}function X(t,e){try{if(Y()||!W())return void e();var r=new IntersectionObserver((function(t){t.forEach((function(t){t.isIntersecting&&(e(),r.unobserve(t.target))}))}),{threshold:[0,.01]});r.observe(t)}catch(t){e()}}var q="2.5.0",K="d3jpl91pxevbkh.cloudfront.net",G="cloudinary-a.akamaihd.net",Z="res.cloudinary.com",Q=Z,J=1e4,tt={format:"jpg",resource_type:"video"},et=["webm","mp4","ogv"],rt={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"},nt={resource_type:"image",transformation:[],type:"upload"},ot={fallback_content:"",resource_type:"video",source_transformation:{},source_types:et,transformation:[],type:"upload"},it=[{type:"mp4",codecs:"hev1",transformations:{video_codec:"h265"}},{type:"webm",codecs:"vp9",transformations:{video_codec:"vp9"}},{type:"mp4",transformations:{video_codec:"auto"}},{type:"webm",transformations:{video_codec:"auto"}}],at={seeThru:"https://unpkg.com/seethru@4/dist/seeThru.min.js"},st={blur:[{effect:"blur:2000",quality:1,fetch_format:"auto"}],pixelate:[{effect:"pixelate",quality:1,fetch_format:"auto"}],"predominant-color-pixel":[{width:"iw_div_2",aspect_ratio:1,crop:"pad",background:"auto"},{crop:"crop",width:1,height:1,gravity:"north_east"},{fetch_format:"auto",quality:"auto"}],"predominant-color":[{variables:[["$currWidth","w"],["$currHeight","h"]]},{width:"iw_div_2",aspect_ratio:1,crop:"pad",background:"auto"},{crop:"crop",width:10,height:10,gravity:"north_east"},{width:"$currWidth",height:"$currHeight",crop:"fill"},{fetch_format:"auto",quality:"auto"}],vectorize:[{effect:"vectorize:3:0.1",fetch_format:"svg"}]},ct={darkmode:"tint:75:black",brightmode:"tint:50:white",monochrome:"grayscale",colorblind:"assist_colorblind"},lt=["accessibility","api_secret","auth_token","cdn_subdomain","cloud_name","cname","format","placeholder","private_cdn","resource_type","secure","secure_cdn_subdomain","secure_distribution","shorten","sign_url","signature","ssl_detected","type","url_suffix","use_root_path","version"];function ut(t){return ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ut(t)}function dt(t,e){t=t||{};var r=Object.keys(t).filter((function(t){return!C()(e,t)})),n={};return r.forEach((function(e){return n[e]=t[e]})),n}var ft,ht,pt,gt=function(t){return t.length&&t.every(I.a)},mt=function(t,e){return t.filter((function(t){return t!==e}))},bt=function(t){return null!=t&&!isNaN(parseFloat(t))},yt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/([^a-zA-Z0-9_.\-\/:]+)/g;return t.replace(e,(function(t){return t.split("").map((function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})).join("")}))},vt=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return r.reduce((function(t,e){var r,n;for(r in e)n=e[r],void 0===t[r]&&(t[r]=n);return t}),t)},wt=Object.prototype,xt=wt.toString,_t=function(t){var e;return e=ut(t),!!t&&("object"===e||"function"===e)},kt="[object Function]",Et=function(t){return _t(t)&&xt.call(t)===kt},St=(ht="[A-Z]",ft="[a-z]+",RegExp(ht+"+(?="+ht+ft+")|"+ht+"?"+ft+"|"+ht+"+|[0-9]+","g")),Ot=function(t){var e=t.match(St);return(e=e.map((function(t){return t.charAt(0).toLocaleUpperCase()+t.slice(1).toLocaleLowerCase()})))[0]=e[0].toLocaleLowerCase(),e.join("")},Tt=function(t){var e=t.match(St);return(e=e.map((function(t){return t.toLocaleLowerCase()}))).join("_")},At=function(t,e){var r,n;for(var o in r={},t)n=t[o],e&&(o=e(o)),Nt(o)||(r[o]=n);return r},Ct=function(t){return At(t,Ot)},jt=function(t){return At(t,Tt)},Pt="undefined"!=typeof btoa&&Et(btoa)?btoa:"undefined"!=typeof Buffer&&Et(Buffer)?function(t){return t instanceof Buffer||(t=new Buffer.from(String(t),"binary")),t.toString("base64")}:function(t){throw new Error("No base64 encoding function found")},Mt=function(t){try{t=decodeURI(t)}finally{t=encodeURI(t)}return Pt(t)};function Dt(t){return lt.reduce((function(e,r){return null!=t[r]&&(e[r]=t[r]),e}),{})}function Rt(t){null==t&&(t={}),"fetch"===t.type&&null==t.fetch_format&&(t.fetch_format=It(t,"format"))}function It(t,e,r){var n=t[e];return delete t[e],null!=n?n:r}function Nt(t){if(null==t)return!0;if("number"==typeof t.length)return 0===t.length;if("number"==typeof t.size)return 0===t.size;if("object"==ut(t)){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}return!0}function Ft(){return navigator&&navigator.userAgent||""}function zt(){var t=Ft();return/Android/i.test(t)}function Lt(){var t=Ft();return/Edg/i.test(t)}function Bt(){var t=Ft();return!Lt()&&(/Chrome/i.test(t)||/CriOS/i.test(t))}function Vt(){var t=Ft();return/Safari/i.test(t)&&!Bt()&&!zt()&&!Lt()}var Ht=function(t,e){switch(!1){case!(null==t):return;case!V()(t.getAttribute):return t.getAttribute("data-".concat(e));case!V()(t.getAttr):return t.getAttr("data-".concat(e));case!V()(t.data):return t.data(e);case!(V()("undefined"!=typeof jQuery&&jQuery.fn&&jQuery.fn.data)&&L()(t)):return jQuery(t).data(e)}},$t=function(t,e,r){switch(!1){case!(null==t):return;case!V()(t.setAttribute):return t.setAttribute("data-".concat(e),r);case!V()(t.setAttr):return t.setAttr("data-".concat(e),r);case!V()(t.data):return t.data(e,r);case!(V()("undefined"!=typeof jQuery&&jQuery.fn&&jQuery.fn.data)&&L()(t)):return jQuery(t).data(e,r)}},Ut=function(t,e){switch(!1){case!(null==t):return;case!V()(t.getAttribute):return t.getAttribute(e);case!V()(t.attr):return t.attr(e);case!V()(t.getAttr):return t.getAttr(e)}},Wt=function(t,e,r){switch(!1){case!(null==t):return;case!V()(t.setAttribute):return t.setAttribute(e,r);case!V()(t.attr):return t.attr(e,r);case!V()(t.setAttr):return t.setAttr(e,r)}},Yt=function(t,e){switch(!1){case!(null==t):return;case!V()(t.removeAttribute):return t.removeAttribute(e);default:return Wt(t,void 0)}},Xt=function(t,e){var r,n,o;for(r in n=[],e)null!=(o=e[r])?n.push(Wt(t,r,o)):n.push(Yt(t,r));return n},qt=function(t,e){if(L()(t))return t.className.match(new RegExp("\\b".concat(e,"\\b")))},Kt=function(t,e){if(!t.className.match(new RegExp("\\b".concat(e,"\\b"))))return t.className=$()("".concat(t.className," ").concat(e))},Gt=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):window.getComputedStyle(t,null)},Zt=["Top","Right","Bottom","Left"];pt=function(t,e){var r,n;return r=9===t.nodeType?t.documentElement:t,t===(n=e&&e.parentNode)||!(!n||1!==n.nodeType||!r.contains(n))};var Qt=function(t,e){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style)return t.style[e]},Jt=function(t,e,r){var n,o,i,a,s,c;return a=/^margin/,c=void 0,o=void 0,n=void 0,i=void 0,s=t.style,(r=r||Gt(t))&&(i=r.getPropertyValue(e)||r[e]),r&&(""!==i||pt(t.ownerDocument,t)||(i=Qt(t,e)),re.test(i)&&a.test(e)&&(c=s.width,o=s.minWidth,n=s.maxWidth,s.minWidth=s.maxWidth=s.width=i,i=r.width,s.width=c,s.minWidth=o,s.maxWidth=n)),void 0!==i?i+"":i},te=function(t,e,r,n){var o;return o=Jt(t,e,n),r?parseFloat(o):o},ee=function(t,e,r,n,o){var i,a,s,c,l;if(r===(n?"border":"content"))return 0;for(l=0,i=0,a=(c="width"===e?["Right","Left"]:["Top","Bottom"]).length;i<a;i++)s=c[i],"margin"===r&&(l+=te(t,r+s,!0,o)),n?("content"===r&&(l-=te(t,"padding".concat(s),!0,o)),"margin"!==r&&(l-=te(t,"border".concat(s,"Width"),!0,o))):(l+=te(t,"padding".concat(s),!0,o),"padding"!==r&&(l+=te(t,"border".concat(s,"Width"),!0,o)));return l},re=new RegExp("^("+/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source+")(?!px)[a-z%]+$","i"),ne=function(t,e,r){var n,o,i,a;if(a=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=Gt(t),n="border-box"===te(t,"boxSizing",!1,o),i<=0||null==i){if(((i=Jt(t,e,o))<0||null==i)&&(i=t.style[e]),re.test(i))return i;a=n&&i===t.style[e],i=parseFloat(i)||0}return i+ee(t,e,r||(n?"border":"content"),a,o)},oe=function(t){return ne(t,"width","content")};function ie(t){return ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ie(t)}function ae(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,se(n.key),n)}}function se(t){var e=function(t,e){if("object"!=ie(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ie(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ie(e)?e:e+""}var ce=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.expressions=[],null!=e&&this.expressions.push(t.normalize(e))}return e=t,n=[{key:"new",value:function(t){return new this(t)}},{key:"normalize",value:function(e){if(null==e)return e;e=String(e);var r=new RegExp("((\\|\\||>=|<=|&&|!=|>|=|<|/|-|\\+|\\*|\\^)(?=[ _]))","g");e=e.replace(r,(function(e){return t.OPERATORS[e]}));var n="("+Object.keys(t.PREDEFINED_VARS).map((function(t){return":".concat(t,"|").concat(t)})).join("|")+")",o=new RegExp("".concat("(\\$_*[^_ ]+)","|").concat(n),"g");return(e=e.replace(o,(function(e){return t.PREDEFINED_VARS[e]||e}))).replace(/[ _]+/g,"_")}},{key:"variable",value:function(t,e){return new this(t).value(e)}},{key:"width",value:function(){return new this("width")}},{key:"height",value:function(){return new this("height")}},{key:"initialWidth",value:function(){return new this("initialWidth")}},{key:"initialHeight",value:function(){return new this("initialHeight")}},{key:"aspectRatio",value:function(){return new this("aspectRatio")}},{key:"initialAspectRatio",value:function(){return new this("initialAspectRatio")}},{key:"pageCount",value:function(){return new this("pageCount")}},{key:"faceCount",value:function(){return new this("faceCount")}},{key:"currentPage",value:function(){return new this("currentPage")}},{key:"tags",value:function(){return new this("tags")}},{key:"pageX",value:function(){return new this("pageX")}},{key:"pageY",value:function(){return new this("pageY")}}],(r=[{key:"serialize",value:function(){return t.normalize(this.expressions.join("_"))}},{key:"toString",value:function(){return this.serialize()}},{key:"getParent",value:function(){return this.parent}},{key:"setParent",value:function(t){return this.parent=t,this}},{key:"predicate",value:function(e,r,n){return null!=t.OPERATORS[r]&&(r=t.OPERATORS[r]),this.expressions.push("".concat(e,"_").concat(r,"_").concat(n)),this}},{key:"and",value:function(){return this.expressions.push("and"),this}},{key:"or",value:function(){return this.expressions.push("or"),this}},{key:"then",value:function(){return this.getParent().if(this.toString())}},{key:"height",value:function(t,e){return this.predicate("h",t,e)}},{key:"width",value:function(t,e){return this.predicate("w",t,e)}},{key:"aspectRatio",value:function(t,e){return this.predicate("ar",t,e)}},{key:"pageCount",value:function(t,e){return this.predicate("pc",t,e)}},{key:"faceCount",value:function(t,e){return this.predicate("fc",t,e)}},{key:"value",value:function(t){return this.expressions.push(t),this}}])&&ae(e.prototype,r),n&&ae(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();ce.OPERATORS={"=":"eq","!=":"ne","<":"lt",">":"gt","<=":"lte",">=":"gte","&&":"and","||":"or","*":"mul","/":"div","+":"add","-":"sub","^":"pow"},ce.PREDEFINED_VARS={aspect_ratio:"ar",aspectRatio:"ar",current_page:"cp",currentPage:"cp",duration:"du",face_count:"fc",faceCount:"fc",height:"h",initial_aspect_ratio:"iar",initial_duration:"idu",initial_height:"ih",initial_width:"iw",initialAspectRatio:"iar",initialDuration:"idu",initialHeight:"ih",initialWidth:"iw",page_count:"pc",page_x:"px",page_y:"py",pageCount:"pc",pageX:"px",pageY:"py",tags:"tags",width:"w"},ce.BOUNDRY="[ _]+";var le=ce;function ue(t){return ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ue(t)}function de(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,fe(n.key),n)}}function fe(t){var e=function(t,e){if("object"!=ue(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ue(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ue(e)?e:e+""}function he(t,e,r){return e=ge(e),function(t,e){if(e&&("object"===ue(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,pe()?Reflect.construct(e,r||[],ge(t).constructor):e.apply(t,r))}function pe(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(pe=function(){return!!t})()}function ge(t){return ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ge(t)}function me(t,e){return me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},me(t,e)}var be=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),he(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&me(t,e)}(e,t),r=e,(n=[{key:"height",value:function(t,e){return this.predicate("h",t,e)}},{key:"width",value:function(t,e){return this.predicate("w",t,e)}},{key:"aspectRatio",value:function(t,e){return this.predicate("ar",t,e)}},{key:"pageCount",value:function(t,e){return this.predicate("pc",t,e)}},{key:"faceCount",value:function(t,e){return this.predicate("fc",t,e)}},{key:"duration",value:function(t,e){return this.predicate("du",t,e)}},{key:"initialDuration",value:function(t,e){return this.predicate("idu",t,e)}}])&&de(r.prototype,n),o&&de(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(le);function ye(t){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ye(t)}function ve(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return we(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?we(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function we(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function xe(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,_e(n.key),n)}}function _e(t){var e=function(t,e){if("object"!=ye(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ye(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ye(e)?e:e+""}var ke=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.configuration=null==e?{}:v()(e),vt(this.configuration,Ee)},e=[{key:"init",value:function(){return this.fromEnvironment(),this.fromDocument(),this}},{key:"set",value:function(t,e){return this.configuration[t]=e,this}},{key:"get",value:function(t){return this.configuration[t]}},{key:"merge",value:function(t){return b()(this.configuration,v()(t)),this}},{key:"fromDocument",value:function(){var t,e,r,n;if(n="undefined"!=typeof document&&null!==document?document.querySelectorAll('meta[name^="cloudinary_"]'):void 0)for(e=0,r=n.length;e<r;e++)t=n[e],this.configuration[t.getAttribute("name").replace("cloudinary_","")]=t.getAttribute("content");return this}},{key:"fromEnvironment",value:function(){var t,e,r,n=this;return"undefined"!=typeof process&&null!==process&&process.env&&process.env.CLOUDINARY_URL&&(t=process.env.CLOUDINARY_URL,(r=/cloudinary:\/\/(?:(\w+)(?:\:([\w-]+))?@)?([\w\.-]+)(?:\/([^?]*))?(?:\?(.+))?/.exec(t))&&(null!=r[3]&&(this.configuration.cloud_name=r[3]),null!=r[1]&&(this.configuration.api_key=r[1]),null!=r[2]&&(this.configuration.api_secret=r[2]),null!=r[4]&&(this.configuration.private_cdn=null!=r[4]),null!=r[4]&&(this.configuration.secure_distribution=r[4]),null!=(e=r[5])&&e.split("&").forEach((function(t){var e=ve(t.split("="),2),r=e[0],o=e[1];null==o&&(o=!0),n.configuration[r]=o})))),this}},{key:"config",value:function(t,e){switch(!1){case void 0===e:return this.set(t,e),this.configuration;case!I()(t):return this.get(t);case!D()(t):return this.merge(t),this.configuration;default:return this.configuration}}},{key:"toOptions",value:function(){return v()(this.configuration)}}],e&&xe(t.prototype,e),r&&xe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}(),Ee={responsive_class:"cld-responsive",responsive_use_breakpoints:!0,round_dpr:!0,secure:"https:"===("undefined"!=typeof window&&null!==window&&window.location?window.location.protocol:void 0)};ke.CONFIG_PARAMS=["api_key","api_secret","callback","cdn_subdomain","cloud_name","cname","private_cdn","protocol","resource_type","responsive","responsive_class","responsive_use_breakpoints","responsive_width","round_dpr","secure","secure_cdn_subdomain","secure_distribution","shorten","type","upload_preset","url_suffix","use_root_path","version","externalLibraries","max_timeout_ms"];var Se=ke;function Oe(t){return Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oe(t)}function Te(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ae(n.key),n)}}function Ae(t){var e=function(t,e){if("object"!=Oe(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Oe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Oe(e)?e:e+""}var Ce=function(){return t=function t(e){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options={},null!=e&&["resourceType","type","publicId","format"].forEach((function(t){var n;return r.options[t]=null!=(n=e[t])?n:e[Tt(t)]}))},(e=[{key:"resourceType",value:function(t){return this.options.resourceType=t,this}},{key:"type",value:function(t){return this.options.type=t,this}},{key:"publicId",value:function(t){return this.options.publicId=t,this}},{key:"getPublicId",value:function(){var t;return null!=(t=this.options.publicId)?t.replace(/\//g,":"):void 0}},{key:"getFullPublicId",value:function(){return null!=this.options.format?this.getPublicId()+"."+this.options.format:this.getPublicId()}},{key:"format",value:function(t){return this.options.format=t,this}},{key:"toString",value:function(){var t;if(t=[],null==this.options.publicId)throw"Must supply publicId";return"image"!==this.options.resourceType&&t.push(this.options.resourceType),"upload"!==this.options.type&&t.push(this.options.type),t.push(this.getFullPublicId()),x()(t).join(":")}},{key:"clone",value:function(){return new this.constructor(this.options)}}])&&Te(t.prototype,e),r&&Te(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();function je(t){return je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},je(t)}function Pe(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Me(n.key),n)}}function Me(t){var e=function(t,e){if("object"!=je(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=je(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==je(e)?e:e+""}function De(t,e,r){return e=Ie(e),function(t,e){if(e&&("object"===je(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Re()?Reflect.construct(e,r||[],Ie(t).constructor):e.apply(t,r))}function Re(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Re=function(){return!!t})()}function Ie(t){return Ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ie(t)}function Ne(t,e){return Ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ne(t,e)}var Fe=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r=De(this,e,[t]),null!=t&&["resourceType","resourceType","fontFamily","fontSize","fontWeight","fontStyle","textDecoration","textAlign","stroke","letterSpacing","lineSpacing","fontHinting","fontAntialiasing","text","textStyle"].forEach((function(e){var n;return r.options[e]=null!=(n=t[e])?n:t[Tt(e)]})),r.options.resourceType="text",r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ne(t,e)}(e,t),r=e,(n=[{key:"resourceType",value:function(t){throw"Cannot modify resourceType for text layers"}},{key:"type",value:function(t){throw"Cannot modify type for text layers"}},{key:"format",value:function(t){throw"Cannot modify format for text layers"}},{key:"fontFamily",value:function(t){return this.options.fontFamily=t,this}},{key:"fontSize",value:function(t){return this.options.fontSize=t,this}},{key:"fontWeight",value:function(t){return this.options.fontWeight=t,this}},{key:"fontStyle",value:function(t){return this.options.fontStyle=t,this}},{key:"textDecoration",value:function(t){return this.options.textDecoration=t,this}},{key:"textAlign",value:function(t){return this.options.textAlign=t,this}},{key:"stroke",value:function(t){return this.options.stroke=t,this}},{key:"letterSpacing",value:function(t){return this.options.letterSpacing=t,this}},{key:"lineSpacing",value:function(t){return this.options.lineSpacing=t,this}},{key:"fontHinting",value:function(t){return this.options.fontHinting=t,this}},{key:"fontAntialiasing",value:function(t){return this.options.fontAntialiasing=t,this}},{key:"text",value:function(t){return this.options.text=t,this}},{key:"textStyle",value:function(t){return this.options.textStyle=t,this}},{key:"toString",value:function(){var t,e,r,n,o,i,a,s,c,l;if(s=this.textStyleIdentifier(),null!=this.options.publicId&&(n=this.getFullPublicId()),null!=this.options.text){if(e=!Nt(n),r=!Nt(s),e&&r||!e&&!r)throw"Must supply either style parameters or a public_id when providing text parameter in a text overlay/underlay, but not both!";for(o=/\$\([a-zA-Z]\w*\)/g,a=0,l=yt(this.options.text,/[,\/]/g),c="";i=o.exec(l);)c+=yt(l.slice(a,i.index)),c+=i[0],a=i.index+i[0].length;c+=yt(l.slice(a))}return t=[this.options.resourceType,s,n,c],x()(t).join(":")}},{key:"textStyleIdentifier",value:function(){if(!Nt(this.options.textStyle))return this.options.textStyle;var t;if(t=[],"normal"!==this.options.fontWeight&&t.push(this.options.fontWeight),"normal"!==this.options.fontStyle&&t.push(this.options.fontStyle),"none"!==this.options.textDecoration&&t.push(this.options.textDecoration),t.push(this.options.textAlign),"none"!==this.options.stroke&&t.push(this.options.stroke),Nt(this.options.letterSpacing)&&!bt(this.options.letterSpacing)||t.push("letter_spacing_"+this.options.letterSpacing),Nt(this.options.lineSpacing)&&!bt(this.options.lineSpacing)||t.push("line_spacing_"+this.options.lineSpacing),Nt(this.options.fontAntialiasing)||t.push("antialias_"+this.options.fontAntialiasing),Nt(this.options.fontHinting)||t.push("hinting_"+this.options.fontHinting),!Nt(x()(t))){if(Nt(this.options.fontFamily))throw"Must supply fontFamily. ".concat(t);if(Nt(this.options.fontSize)&&!bt(this.options.fontSize))throw"Must supply fontSize."}return t.unshift(this.options.fontFamily,this.options.fontSize),t=x()(t).join("_")}}])&&Pe(r.prototype,n),o&&Pe(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(Ce);function ze(t){return ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ze(t)}function Le(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Be(n.key),n)}}function Be(t){var e=function(t,e){if("object"!=ze(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ze(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ze(e)?e:e+""}function Ve(t,e,r){return e=$e(e),function(t,e){if(e&&("object"===ze(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,He()?Reflect.construct(e,r||[],$e(t).constructor):e.apply(t,r))}function He(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(He=function(){return!!t})()}function $e(t){return $e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$e(t)}function Ue(t,e){return Ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ue(t,e)}var We=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=Ve(this,e,[t])).options.resourceType="subtitles",r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ue(t,e)}(e,t),r=e,n&&Le(r.prototype,n),o&&Le(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(Fe);function Ye(t){return Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ye(t)}function Xe(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,qe(n.key),n)}}function qe(t){var e=function(t,e){if("object"!=Ye(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ye(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ye(e)?e:e+""}function Ke(t,e,r){return e=Ze(e),function(t,e){if(e&&("object"===Ye(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Ge()?Reflect.construct(e,r||[],Ze(t).constructor):e.apply(t,r))}function Ge(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ge=function(){return!!t})()}function Ze(t){return Ze=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ze(t)}function Qe(t,e){return Qe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Qe(t,e)}var Je=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r=Ke(this,e,[t]),I()(t)?r.options.url=t:(null!=t?t.url:void 0)&&(r.options.url=t.url),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Qe(t,e)}(e,t),r=e,(n=[{key:"url",value:function(t){return this.options.url=t,this}},{key:"toString",value:function(){return"fetch:".concat(Mt(this.options.url))}}])&&Xe(r.prototype,n),o&&Xe(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(Ce);function tr(t,e,r){return e=nr(e),function(t,e){if(e&&("object"===ar(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,er()?Reflect.construct(e,r||[],nr(t).constructor):e.apply(t,r))}function er(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(er=function(){return!!t})()}function rr(){return rr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=nr(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},rr.apply(this,arguments)}function nr(t){return nr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},nr(t)}function or(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ir(t,e)}function ir(t,e){return ir=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ir(t,e)}function ar(t){return ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ar(t)}function sr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ur(n.key),n)}}function lr(t,e,r){return e&&cr(t.prototype,e),r&&cr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ur(t){var e=function(t,e){if("object"!=ar(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ar(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ar(e)?e:e+""}var dr=function(){return lr((function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T.a;sr(this,t),this.name=e,this.shortName=r,this.process=n}),[{key:"set",value:function(t){return this.origValue=t,this}},{key:"serialize",value:function(){var t,e;return t=this.value(),e=P()(t)||D()(t)||I()(t)?!Nt(t):null!=t,null!=this.shortName&&e?"".concat(this.shortName,"_").concat(t):""}},{key:"value",value:function(){return this.process(this.origValue)}}],[{key:"norm_color",value:function(t){return null!=t?t.replace(/^#/,"rgb:"):void 0}},{key:"build_array",value:function(t){return null==t?[]:P()(t)?t:[t]}},{key:"process_video_params",value:function(t){var e;switch(t.constructor){case Object:return e="","codec"in t&&(e=t.codec,"profile"in t&&(e+=":"+t.profile,"level"in t&&(e+=":"+t.level,"b_frames"in t&&!1===t.b_frames&&(e+=":bframes_no")))),e;case String:return t;default:return null}}}])}(),fr=function(t){function e(t,r){var n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return sr(this,e),(n=tr(this,e,[t,r,i])).sep=o,n}return or(e,t),lr(e,[{key:"serialize",value:function(){if(null!=this.shortName){var t=this.value();if(Nt(t))return"";if(I()(t))return"".concat(this.shortName,"_").concat(t);var e=t.map((function(t){return V()(t.serialize)?t.serialize():t})).join(this.sep);return"".concat(this.shortName,"_").concat(e)}return""}},{key:"value",value:function(){var t=this;return P()(this.origValue)?this.origValue.map((function(e){return t.process(e)})):this.process(this.origValue)}},{key:"set",value:function(t){return null==t||P()(t)?rr(nr(e.prototype),"set",this).call(this,t):rr(nr(e.prototype),"set",this).call(this,[t])}}])}(dr),hr=function(t){function e(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"t",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return sr(this,e),(r=tr(this,e,[t,n,i])).sep=o,r}return or(e,t),lr(e,[{key:"serialize",value:function(){var t=this,e="",r=this.value();if(Nt(r))return e;if(gt(r)){var n=r.join(this.sep);Nt(n)||(e="".concat(this.shortName,"_").concat(n))}else e=r.map((function(e){return I()(e)&&!Nt(e)?"".concat(t.shortName,"_").concat(e):V()(e.serialize)?e.serialize():D()(e)&&!Nt(e)?new Rr(e).serialize():void 0})).filter((function(t){return t}));return e}},{key:"set",value:function(t){return this.origValue=t,P()(this.origValue)?rr(nr(e.prototype),"set",this).call(this,this.origValue):rr(nr(e.prototype),"set",this).call(this,[this.origValue])}}])}(dr),pr=function(t){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.norm_range_value;return sr(this,e),tr(this,e,[t,r,n])}return or(e,t),lr(e,null,[{key:"norm_range_value",value:function(t){var e=String(t).match(new RegExp("^(([0-9]*)\\.([0-9]+)|([0-9]+))([%pP])?$"));if(e){var r=null!=e[5]?"p":"";t=(e[1]||e[4])+r}return le.normalize(t)}}])}(dr),gr=function(t){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T.a;return sr(this,e),tr(this,e,[t,r,n])}return or(e,t),lr(e,[{key:"serialize",value:function(){return this.value()}}])}(dr),mr=function(t){function e(){return sr(this,e),tr(this,e,arguments)}return or(e,t),lr(e,[{key:"value",value:function(){if(null==this.origValue)return"";var t;if(this.origValue instanceof Ce)t=this.origValue;else if(D()(this.origValue)){var e=Ct(this.origValue);t="text"===e.resourceType||null!=e.text?new Fe(e):"subtitles"===e.resourceType?new We(e):"fetch"===e.resourceType||null!=e.url?new Je(e):new Ce(e)}else t=I()(this.origValue)?/^fetch:.+/.test(this.origValue)?new Je(this.origValue.substr(6)):this.origValue:"";return t.toString()}}],[{key:"textStyle",value:function(t){return new Fe(t).textStyleIdentifier()}}])}(dr);function br(t,e,r){return e=vr(e),function(t,e){if(e&&("object"===kr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,yr()?Reflect.construct(e,r||[],vr(t).constructor):e.apply(t,r))}function yr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(yr=function(){return!!t})()}function vr(t){return vr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vr(t)}function wr(t,e){return wr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},wr(t,e)}function xr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return _r(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_r(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function kr(t){return kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kr(t)}function Er(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Sr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Tr(n.key),n)}}function Or(t,e,r){return e&&Sr(t.prototype,e),r&&Sr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Tr(t){var e=function(t,e){if("object"!=kr(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=kr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==kr(e)?e:e+""}function Ar(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return r.forEach((function(e){Object.keys(e).forEach((function(r){null!=e[r]&&(t[r]=e[r])}))})),t}var Cr=function(){function t(e){var r,n;Er(this,t),r=void 0,n={},this.toOptions=function(t){var e={};if(null==t&&(t=!0),Object.keys(n).forEach((function(t){return e[t]=n[t].origValue})),Ar(e,this.otherOptions),t&&!Nt(this.chained)){var r=this.chained.map((function(t){return t.toOptions()}));r.push(e),Ar(e={},this.otherOptions),e.transformation=r}return e},this.setParent=function(t){return r=t,null!=t&&this.fromOptions("function"==typeof t.toOptions?t.toOptions():void 0),this},this.getParent=function(){return r},this.param=function(t,e,r,o,i){return null==i&&(i=V()(o)?o:T.a),n[e]=new dr(e,r,i).set(t),this},this.rawParam=function(t,e,r,o,i){return i=Pr(arguments),n[e]=new gr(e,r,i).set(t),this},this.rangeParam=function(t,e,r,o,i){return i=Pr(arguments),n[e]=new pr(e,r,i).set(t),this},this.arrayParam=function(t,e,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:":";return o=Pr(arguments),n[e]=new fr(e,r,i,o).set(t),this},this.transformationParam=function(t,e,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".";return o=Pr(arguments),n[e]=new hr(e,r,i,o).set(t),this},this.layerParam=function(t,e,r){return n[e]=new mr(e,r).set(t),this},this.getValue=function(t){var e=n[t]&&n[t].value();return null!=e?e:this.otherOptions[t]},this.get=function(t){return n[t]},this.remove=function(t){var e;switch(!1){case null==n[t]:return e=n[t],delete n[t],e.origValue;case null==this.otherOptions[t]:return e=this.otherOptions[t],delete this.otherOptions[t],e;default:return null}},this.keys=function(){var t;return function(){var e;for(t in e=[],n)null!=t&&e.push(t.match(jr)?t:Tt(t));return e}().sort()},this.toPlainObject=function(){var t,e,r;for(e in t={},n)t[e]=n[e].value(),D()(t[e])&&(t[e]=v()(t[e]));return Nt(this.chained)||((r=this.chained.map((function(t){return t.toPlainObject()}))).push(t),t={transformation:r}),t},this.chain=function(){var t;return 0!==Object.getOwnPropertyNames(n).length&&(t=new this.constructor(this.toOptions(!1)),this.resetTransformations(),this.chained.push(t)),this},this.resetTransformations=function(){return n={},this},this.otherOptions={},this.chained=[],this.fromOptions(e)}return Or(t,[{key:"fromOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e instanceof t)this.fromTransformation(e);else for(var r in(I()(e)||P()(e))&&(e={transformation:e}),(e=v()(e,(function(e){if(e instanceof t||e instanceof Layer)return new e.clone}))).if&&(this.set("if",e.if),delete e.if),e){var n=e[r];null!=n&&(r.match(jr)?"$attr"!==r&&this.set("variable",r,n):this.set(r,n))}return this}},{key:"fromTransformation",value:function(e){var r=this;return e instanceof t&&e.keys().forEach((function(t){return r.set(t,e.get(t).origValue)})),this}},{key:"set",value:function(t){var e;e=Ot(t);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return C()(Dr.methods,e)?this[e].apply(this,n):this.otherOptions[t]=n[0],this}},{key:"hasLayer",value:function(){return this.getValue("overlay")||this.getValue("underlay")}},{key:"serialize",value:function(){var t,e,r,n,o,i,a,s,c,l,u,d,f,h,p,g,m;for(l=this.chained.map((function(t){return t.serialize()})),n=this.keys(),h=null!=(o=this.get("transformation"))?o.serialize():void 0,t=null!=(i=this.get("if"))?i.serialize():void 0,g=function(t){var e,r,n,o,i;if(P()(t)){for(o=[],e=0,r=t.length;e<r;e++){var a=xr(t[e],2);n=a[0],i=a[1],o.push("".concat(n,"_").concat(le.normalize(i)))}return o}return t}(null!=(a=this.get("variables"))?a.value():void 0),n=k()(n,["transformation","if","variables"]),m=[],d=[],e=0,r=n.length;e<r;e++)(u=n[e]).match(jr)?m.push(u+"_"+le.normalize(null!=(s=this.get(u))?s.value():void 0)):d.push(null!=(c=this.get(u))?c.serialize():void 0);switch(!1){case!I()(h):d.push(h);break;case!P()(h):l=l.concat(h)}return d=function(){var t,e,r;for(r=[],t=0,e=d.length;t<e;t++)p=d[t],(P()(p)&&!Nt(p)||!P()(p)&&p)&&r.push(p);return r}(),d=m.sort().concat(g).concat(d.sort()),"if_end"===t?d.push(t):Nt(t)||d.unshift(t),Nt(f=x()(d).join(this.param_separator))||l.push(f),x()(l).join(this.trans_separator)}},{key:"toHtmlAttributes",value:function(){var t,e,r,n,o,i,a,s,c=this;return r={},Object.keys(this.otherOptions).forEach((function(e){i=c.otherOptions[e],s=Tt(e),C()(Dr.PARAM_NAMES,s)||C()(lt,s)||(t=/^html_/.test(e)?e.slice(5):e,r[t]=i)})),this.keys().forEach((function(t){/^html_/.test(t)&&(r[Ot(t.slice(5))]=c.getValue(t))})),this.hasLayer()||this.getValue("angle")||C()(["fit","limit","lfill"],this.getValue("crop"))||(a=null!=(n=this.get("width"))?n.origValue:void 0,e=null!=(o=this.get("height"))?o.origValue:void 0,parseFloat(a)>=1&&null==r.width&&(r.width=a),parseFloat(e)>=1&&null==r.height&&(r.height=e)),r}},{key:"toHtml",value:function(){var t;return null!=(t=this.getParent())&&"function"==typeof t.toHtml?t.toHtml():void 0}},{key:"toString",value:function(){return this.serialize()}},{key:"clone",value:function(){return new this.constructor(this.toOptions(!0))}}],[{key:"listNames",value:function(){return Dr.methods}},{key:"isValidParamName",value:function(t){return Dr.methods.indexOf(Ot(t))>=0}}])}(),jr=/^\$[a-zA-Z0-9]+$/;function Pr(t){var e;return e=null!=t?t[t.length-1]:void 0,V()(e)?e:void 0}function Mr(t){var e=t.function_type,r=t.source;return"remote"===e?[e,btoa(r)].join(":"):"wasm"===e?[e,r].join(":"):void 0}Cr.prototype.trans_separator="/",Cr.prototype.param_separator=",";var Dr=function(t){function e(t){return Er(this,e),br(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wr(t,e)}(e,t),Or(e,[{key:"angle",value:function(t){return this.arrayParam(t,"angle","a",".",le.normalize)}},{key:"audioCodec",value:function(t){return this.param(t,"audio_codec","ac")}},{key:"audioFrequency",value:function(t){return this.param(t,"audio_frequency","af")}},{key:"aspectRatio",value:function(t){return this.param(t,"aspect_ratio","ar",le.normalize)}},{key:"background",value:function(t){return this.param(t,"background","b",dr.norm_color)}},{key:"bitRate",value:function(t){return this.param(t,"bit_rate","br")}},{key:"border",value:function(t){return this.param(t,"border","bo",(function(t){return D()(t)?(t=b()({},{color:"black",width:2},t),"".concat(t.width,"px_solid_").concat(dr.norm_color(t.color))):t}))}},{key:"color",value:function(t){return this.param(t,"color","co",dr.norm_color)}},{key:"colorSpace",value:function(t){return this.param(t,"color_space","cs")}},{key:"crop",value:function(t){return this.param(t,"crop","c")}},{key:"customFunction",value:function(t){return this.param(t,"custom_function","fn",(function(){return Mr(t)}))}},{key:"customPreFunction",value:function(t){if(!this.get("custom_function"))return this.rawParam(t,"custom_function","",(function(){return(t=Mr(t))?"fn_pre:".concat(t):t}))}},{key:"defaultImage",value:function(t){return this.param(t,"default_image","d")}},{key:"delay",value:function(t){return this.param(t,"delay","dl")}},{key:"density",value:function(t){return this.param(t,"density","dn")}},{key:"duration",value:function(t){return this.rangeParam(t,"duration","du")}},{key:"dpr",value:function(t){return this.param(t,"dpr","dpr",(function(t){return(null!=(t=t.toString())?t.match(/^\d+$/):void 0)?t+".0":le.normalize(t)}))}},{key:"effect",value:function(t){return this.arrayParam(t,"effect","e",":",le.normalize)}},{key:"else",value:function(){return this.if("else")}},{key:"endIf",value:function(){return this.if("end")}},{key:"endOffset",value:function(t){return this.rangeParam(t,"end_offset","eo")}},{key:"fallbackContent",value:function(t){return this.param(t,"fallback_content")}},{key:"fetchFormat",value:function(t){return this.param(t,"fetch_format","f")}},{key:"format",value:function(t){return this.param(t,"format")}},{key:"flags",value:function(t){return this.arrayParam(t,"flags","fl",".")}},{key:"gravity",value:function(t){return this.param(t,"gravity","g")}},{key:"fps",value:function(t){return this.param(t,"fps","fps",(function(t){return I()(t)?t:P()(t)?t.join("-"):t}))}},{key:"height",value:function(t){var e=this;return this.param(t,"height","h",(function(){return e.getValue("crop")||e.getValue("overlay")||e.getValue("underlay")?le.normalize(t):null}))}},{key:"htmlHeight",value:function(t){return this.param(t,"html_height")}},{key:"htmlWidth",value:function(t){return this.param(t,"html_width")}},{key:"if",value:function(){var t,r,n,o,i,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";switch(a){case"else":return this.chain(),this.param(a,"if","if");case"end":for(this.chain(),t=n=this.chained.length-1;n>=0&&"end"!==(r=this.chained[t].getValue("if"))&&(null==r||(o=e.new().if(r),this.chained[t].remove("if"),i=this.chained[t],this.chained[t]=e.new().transformation([o,i]),"else"===r));t=n+=-1);return this.param(a,"if","if");case"":return be.new().setParent(this);default:return this.param(a,"if","if",(function(t){return be.new(t).toString()}))}}},{key:"keyframeInterval",value:function(t){return this.param(t,"keyframe_interval","ki")}},{key:"ocr",value:function(t){return this.param(t,"ocr","ocr")}},{key:"offset",value:function(t){var e,r,n=xr(V()(null!=t?t.split:void 0)?t.split(".."):P()(t)?t:[null,null],2);if(r=n[0],e=n[1],null!=r&&this.startOffset(r),null!=e)return this.endOffset(e)}},{key:"opacity",value:function(t){return this.param(t,"opacity","o",le.normalize)}},{key:"overlay",value:function(t){return this.layerParam(t,"overlay","l")}},{key:"page",value:function(t){return this.param(t,"page","pg")}},{key:"poster",value:function(t){return this.param(t,"poster")}},{key:"prefix",value:function(t){return this.param(t,"prefix","p")}},{key:"quality",value:function(t){return this.param(t,"quality","q",le.normalize)}},{key:"radius",value:function(t){return this.arrayParam(t,"radius","r",":",le.normalize)}},{key:"rawTransformation",value:function(t){return this.rawParam(t,"raw_transformation")}},{key:"size",value:function(t){var e,r;if(V()(null!=t?t.split:void 0)){var n=xr(t.split("x"),2);return r=n[0],e=n[1],this.width(r),this.height(e)}}},{key:"sourceTypes",value:function(t){return this.param(t,"source_types")}},{key:"sourceTransformation",value:function(t){return this.param(t,"source_transformation")}},{key:"startOffset",value:function(t){return this.rangeParam(t,"start_offset","so")}},{key:"streamingProfile",value:function(t){return this.param(t,"streaming_profile","sp")}},{key:"transformation",value:function(t){return this.transformationParam(t,"transformation","t")}},{key:"underlay",value:function(t){return this.layerParam(t,"underlay","u")}},{key:"variable",value:function(t,e){return this.param(e,t,t)}},{key:"variables",value:function(t){return this.arrayParam(t,"variables")}},{key:"videoCodec",value:function(t){return this.param(t,"video_codec","vc",dr.process_video_params)}},{key:"videoSampling",value:function(t){return this.param(t,"video_sampling","vs")}},{key:"width",value:function(t){var e=this;return this.param(t,"width","w",(function(){return e.getValue("crop")||e.getValue("overlay")||e.getValue("underlay")?le.normalize(t):null}))}},{key:"x",value:function(t){return this.param(t,"x","x",le.normalize)}},{key:"y",value:function(t){return this.param(t,"y","y",le.normalize)}},{key:"zoom",value:function(t){return this.param(t,"zoom","z",le.normalize)}}],[{key:"new",value:function(t){return new e(t)}}])}(Cr);Dr.methods=["angle","audioCodec","audioFrequency","aspectRatio","background","bitRate","border","color","colorSpace","crop","customFunction","customPreFunction","defaultImage","delay","density","duration","dpr","effect","else","endIf","endOffset","fallbackContent","fetchFormat","format","flags","gravity","fps","height","htmlHeight","htmlWidth","if","keyframeInterval","ocr","offset","opacity","overlay","page","poster","prefix","quality","radius","rawTransformation","size","sourceTypes","sourceTransformation","startOffset","streamingProfile","transformation","underlay","variable","variables","videoCodec","videoSampling","width","x","y","zoom"],Dr.PARAM_NAMES=Dr.methods.map(Tt).concat(Se.CONFIG_PARAMS);var Rr=Dr;function Ir(t){return Ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ir(t)}function Nr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Fr(n.key),n)}}function Fr(t){var e=function(t,e){if("object"!=Ir(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ir(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ir(e)?e:e+""}function zr(t,e){return e?!0===e?t:"".concat(t,'="').concat(e,'"'):void 0}function Lr(t){return I()(t)?t.replace('"',"&#34;").replace("'","&#39;"):t}var Br=function(){return t=function t(e,r,n){var o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.name=e,this.publicId=r,null==n&&(D()(r)?(n=r,this.publicId=void 0):n={}),(o=new Rr(n)).setParent(this),this.transformation=function(){return o}},r=[{key:"new",value:function(t,e,r){return new this(t,e,r)}},{key:"isResponsive",value:function(t,e){var r;return r=Ht(t,"src-cache")||Ht(t,"src"),qt(t,e)&&/\bw_auto\b/.exec(r)}}],(e=[{key:"htmlAttrs",value:function(t){var e,r;return function(){var n;for(e in n=[],t)(r=Lr(t[e]))&&n.push(zr(e,r));return n}().sort().join(" ")}},{key:"getOptions",value:function(){return this.transformation().toOptions()}},{key:"getOption",value:function(t){return this.transformation().getValue(t)}},{key:"attributes",value:function(){var t=this.transformation().toHtmlAttributes();return Object.keys(t).forEach((function(e){D()(t[e])&&delete t[e]})),t.attributes&&(F()(t,t.attributes),delete t.attributes),t}},{key:"setAttr",value:function(t,e){return this.transformation().set("html_".concat(t),e),this}},{key:"getAttr",value:function(t){return this.attributes()["html_".concat(t)]||this.attributes()[t]}},{key:"removeAttr",value:function(t){var e;return null!=(e=this.transformation().remove("html_".concat(t)))?e:this.transformation().remove(t)}},{key:"content",value:function(){return""}},{key:"openTag",value:function(){var t="<"+this.name,e=this.htmlAttrs(this.attributes());return e&&e.length>0&&(t+=" "+e),t+">"}},{key:"closeTag",value:function(){return"</".concat(this.name,">")}},{key:"toHtml",value:function(){return this.openTag()+this.content()+this.closeTag()}},{key:"toDOM",value:function(){var t,e,r,n;if(!V()("undefined"!=typeof document&&null!==document?document.createElement:void 0))throw"Can't create DOM if document is not present!";for(e in t=document.createElement(this.name),r=this.attributes())n=r[e],t.setAttribute(e,n);return t}}])&&Nr(t.prototype,e),r&&Nr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}(),Vr=["placeholder","accessibility"];function Hr(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function $r(t){return!!t&&!!t.match(/^https?:\//)}function Ur(t,e){if(e.cloud_name&&"/"===e.cloud_name[0])return"/res"+e.cloud_name;var r="http://",n="",o="res",i=".cloudinary.com",s="/"+e.cloud_name;return e.protocol&&(r=e.protocol+"//"),e.private_cdn&&(n=e.cloud_name+"-",s=""),e.cdn_subdomain&&(o="res-"+function(t){return a(t)%5+1}(t)),e.secure?(r="https://",!1===e.secure_cdn_subdomain&&(o="res"),null!=e.secure_distribution&&e.secure_distribution!==G&&e.secure_distribution!==Q&&(n="",o="",i=e.secure_distribution)):e.cname&&(r="http://",n="",o=e.cdn_subdomain?"a"+(a(t)%5+1)+".":"",i=e.cname),[r,n,o,i,s].join("")}function Wr(t){return encodeURIComponent(t).replace(/%3A/g,":").replace(/%2F/g,"/")}function Yr(t,e){var r,n,o=e.type;return $r(t)||"fetch"!==o?t:(r=t,n=document.location.protocol+"//"+document.location.host,"?"===r[0]?n+=document.location.pathname:"/"!==r[0]&&(n+=document.location.pathname.replace(/\/[^\/]*$/,"/")),n+r)}function Xr(t,e){if($r(t)&&("upload"===e.type||"asset"===e.type))return t;var r=function(t,e){var r=e.force_version||void 0===e.force_version,n=t.indexOf("/")<0||t.match(/^v[0-9]+/)||$r(t)||e.version;return r&&!n&&(e.version=1),e.version?"v".concat(e.version):""}(t,e),n=function(t){var e=t||{},r=e.placeholder,n=e.accessibility,o=Hr(e,Vr),i=new Rr(o);return n&&ct[n]&&i.chain().effect(ct[n]),r&&("predominant-color"===r&&i.getValue("width")&&i.getValue("height")&&(r+="-pixel"),(st[r]||st.blur).forEach((function(t){return i.chain().transformation(t)}))),i.serialize()}(e),o=Ur(t,e),i=function(t){var e=t.signature,r=!e||0===e.indexOf("s--")&&"--"===e.substr(-2);return delete t.signature,r?e:"s--".concat(e,"--")}(e),a=function(t){var e,r=t.resource_type,n=void 0===r?"image":r,o=t.type,i=void 0===o?"upload":o,a=t.url_suffix,s=t.use_root_path,c=t.shorten,l=n;if(D()(l)&&(l=(e=l).resource_type,i=e.type,c=e.shorten),null==i&&(i="upload"),null!=a&&(l=rt["".concat(l,"/").concat(i)],i=null,null==l))throw new Error("URL Suffix only supported for ".concat(Object.keys(rt).join(", ")));if(s){if(("image"!==l||"upload"!==i)&&"images"!==l)throw new Error("Root path only supported for image/upload");l=null,i=null}return c&&"image"===l&&"upload"===i&&(l="iu",i=null),[l,i].join("/")}(e);return t=function(t,e){if($r(t))t=Wr(t);else{try{t=decodeURIComponent(t)}catch(t){}t=Wr(t),e.url_suffix&&(t=t+"/"+e.url_suffix),e.format&&(e.trust_public_id||(t=t.replace(/\.(jpg|png|gif|webp)$/,"")),t=t+"."+e.format)}return t}(t,e),x()([o,a,i,n,r,t]).join("/").replace(/([^:])\/+/g,"$1/").replace(" ","%20")}function qr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return t;e=function(t,e){return t instanceof Rr&&(t=t.toOptions()),"fetch"===(t=vt({},t,e,nt)).type&&(t.fetch_format=t.fetch_format||t.format),t}(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),t=Yr(t,e);var r=function(t){var e=t.cloud_name,r=t.url_suffix;return e?r&&r.match(/[\.\/]/)?"url_suffix should not include . or /":void 0:"Unknown cloud_name"}(e);if(r)throw r;var n=Xr(t,e);if(e.urlAnalytics){var o=p(g(e)),i="?";n.indexOf("?")>=0&&(i="&"),n="".concat(n).concat(i,"_a=").concat(o)}if(e.auth_token){var a=n.indexOf("?")>=0?"&":"?";n="".concat(n).concat(a,"__cld_token__=").concat(e.auth_token)}return n}function Kr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Gr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gr(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Zr=Nt;function Qr(t){return function(t){var e=t.breakpoints||[];if(e.length)return e;var r=Kr([t.min_width,t.max_width,t.max_images].map(Number),3),n=r[0],o=r[1],i=r[2];if([n,o,i].some(isNaN))throw"Either (min_width, max_width, max_images) or breakpoints must be provided to the image srcset attribute";if(n>o)throw"min_width must be less than max_width";if(i<=0)throw"max_images must be a positive integer";1===i&&(n=o);for(var a=Math.ceil((o-n)/Math.max(i-1,1)),s=n;s<o;s+=a)e.push(s);return e.push(o),e}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function Jr(t,e,r,n){return Rt(n=v.a(n)),e.map((function(e){return"".concat(function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=Dt(n);return r=r||n,o.raw_transformation=new Rr([F.a({},r),{crop:"scale",width:e}]).toString(),qr(t,o)}(t,e,r,n)," ").concat(e,"w")})).join(", ")}function tn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o={};if(Zr(r))return o;var i=!e.sizes&&!0===r.sizes,a=!e.srcset;if(a||i){var s=Qr(t,r,n);if(a){var c=Jr(t,s,r.transformation,n);Zr(c)||(o.srcset=c)}if(i){var l=function(t){return null==t?"":t.map((function(t){return"(max-width: ".concat(t,"px) ").concat(t,"px")})).join(", ")}(s);Zr(l)||(o.sizes=l)}}return o}function en(t){return en="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},en(t)}function rn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,nn(n.key),n)}}function nn(t){var e=function(t,e){if("object"!=en(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=en(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==en(e)?e:e+""}function on(t,e,r){return e=cn(e),function(t,e){if(e&&("object"===en(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,an()?Reflect.construct(e,r||[],cn(t).constructor):e.apply(t,r))}function an(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(an=function(){return!!t})()}function sn(){return sn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=cn(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},sn.apply(this,arguments)}function cn(t){return cn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},cn(t)}function ln(t,e){return ln=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ln(t,e)}var un=function(t){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),on(this,e,["img",t,r])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ln(t,e)}(e,t),r=e,(n=[{key:"closeTag",value:function(){return""}},{key:"attributes",value:function(){var t,r,n;t=sn(cn(e.prototype),"attributes",this).call(this)||{},r=this.getOptions();var o=this.getOption("attributes")||{},i=this.getOption("srcset")||o.srcset,a={};return I()(i)?a.srcset=i:a=tn(this.publicId,o,i,r),Nt(a)||(delete t.width,delete t.height),F()(t,a),null==t[n=r.responsive&&!r.client_hints?"data-src":"src"]&&(t[n]=qr(this.publicId,this.getOptions())),t}}])&&rn(r.prototype,n),o&&rn(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(Br),dn=un;function fn(t){return fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fn(t)}function hn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,pn(n.key),n)}}function pn(t){var e=function(t,e){if("object"!=fn(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=fn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==fn(e)?e:e+""}function gn(t,e,r){return e=yn(e),function(t,e){if(e&&("object"===fn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,mn()?Reflect.construct(e,r||[],yn(t).constructor):e.apply(t,r))}function mn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(mn=function(){return!!t})()}function bn(){return bn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=yn(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},bn.apply(this,arguments)}function yn(t){return yn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},yn(t)}function vn(t,e){return vn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},vn(t,e)}var wn=function(t){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),gn(this,e,["source",t,r])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vn(t,e)}(e,t),r=e,(n=[{key:"closeTag",value:function(){return""}},{key:"attributes",value:function(){var t=this.getOption("srcset"),r=bn(yn(e.prototype),"attributes",this).call(this)||{},n=this.getOptions();return F()(r,tn(this.publicId,r,t,n)),r.srcset||(r.srcset=qr(this.publicId,n)),!r.media&&n.media&&(r.media=function(t){var e=[];return null!=t&&(null!=t.min_width&&e.push("(min-width: ".concat(t.min_width,"px)")),null!=t.max_width&&e.push("(max-width: ".concat(t.max_width,"px)"))),e.join(" and ")}(n.media)),r}}])&&hn(r.prototype,n),o&&hn(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(Br),xn=wn;function _n(t){return _n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_n(t)}function kn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,En(n.key),n)}}function En(t){var e=function(t,e){if("object"!=_n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=_n(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==_n(e)?e:e+""}function Sn(t,e,r){return e=An(e),function(t,e){if(e&&("object"===_n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,On()?Reflect.construct(e,r||[],An(t).constructor):e.apply(t,r))}function On(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(On=function(){return!!t})()}function Tn(){return Tn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=An(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},Tn.apply(this,arguments)}function An(t){return An=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},An(t)}function Cn(t,e){return Cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Cn(t,e)}var jn=function(t){function e(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=Sn(this,e,["picture",t,n])).widthList=o,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Cn(t,e)}(e,t),r=e,(n=[{key:"content",value:function(){var t=this;return this.widthList.map((function(e){var r=e.min_width,n=e.max_width,o=e.transformation,i=t.getOptions(),a=new Rr(i);return a.chain().fromOptions("string"==typeof o?{raw_transformation:o}:o),(i=Dt(i)).media={min_width:r,max_width:n},i.transformation=a,new xn(t.publicId,i).toHtml()})).join("")+new dn(this.publicId,this.getOptions()).toHtml()}},{key:"attributes",value:function(){var t=Tn(An(e.prototype),"attributes",this).call(this);return delete t.width,delete t.height,t}},{key:"closeTag",value:function(){return"</"+this.name+">"}}])&&kn(r.prototype,n),o&&kn(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(Br),Pn=jn;function Mn(t){return Mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mn(t)}function Dn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Rn(n.key),n)}}function Rn(t){var e=function(t,e){if("object"!=Mn(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Mn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Mn(e)?e:e+""}function In(t,e,r){return e=zn(e),function(t,e){if(e&&("object"===Mn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Nn()?Reflect.construct(e,r||[],zn(t).constructor):e.apply(t,r))}function Nn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Nn=function(){return!!t})()}function Fn(){return Fn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=zn(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},Fn.apply(this,arguments)}function zn(t){return zn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},zn(t)}function Ln(t,e){return Ln=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ln(t,e)}var Bn=["source_types","source_transformation","fallback_content","poster","sources"],Vn=["webm","mp4","ogv"],Hn={format:"jpg",resource_type:"video"},$n=function(t){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r=vt({},r,ot),In(this,e,["video",t.replace(/\.(mp4|ogv|webm)$/,""),r])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ln(t,e)}(e,t),r=e,n=[{key:"setSourceTransformation",value:function(t){return this.transformation().sourceTransformation(t),this}},{key:"setSourceTypes",value:function(t){return this.transformation().sourceTypes(t),this}},{key:"setPoster",value:function(t){return this.transformation().poster(t),this}},{key:"setFallbackContent",value:function(t){return this.transformation().fallbackContent(t),this}},{key:"content",value:function(){var t=this,e=this.transformation().getValue("source_types"),r=this.transformation().getValue("source_transformation"),n=this.transformation().getValue("fallback_content"),o=this.getOption("sources"),i=[];return P()(o)&&!Nt(o)?i=o.map((function(e){var r=qr(t.publicId,vt({},e.transformations||{},{resource_type:"video",format:e.type}),t.getOptions());return t.createSourceTag(r,e.type,e.codecs)})):(Nt(e)&&(e=Vn),P()(e)&&(i=e.map((function(e){var n=qr(t.publicId,vt({},r[e]||{},{resource_type:"video",format:e}),t.getOptions());return t.createSourceTag(n,e)})))),i.join("")+n}},{key:"attributes",value:function(){var t=this.getOption("source_types"),r=this.getOption("poster");if(void 0===r&&(r={}),D()(r)){var n=null!=r.public_id?nt:Hn;r=qr(r.public_id||this.publicId,vt({},r,n,this.getOptions()))}var o=Fn(zn(e.prototype),"attributes",this).call(this)||{};return o=dt(o,Bn),!Nt(this.getOption("sources"))||Nt(t)||P()(t)||(o.src=qr(this.publicId,this.getOptions(),{resource_type:"video",format:t})),null!=r&&(o.poster=r),o}},{key:"createSourceTag",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=null;return Nt(e)||(n="video/"+("ogv"===e?"ogg":e),Nt(r)||(n+="; codecs="+(P()(r)?r.join(", "):r))),"<source "+this.htmlAttrs({src:t,type:n})+">"}}],n&&Dn(r.prototype,n),o&&Dn(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(Br),Un=$n;function Wn(t){return Wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wn(t)}function Yn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Xn(n.key),n)}}function Xn(t){var e=function(t,e){if("object"!=Wn(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Wn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Wn(e)?e:e+""}function qn(t,e,r){return e=Gn(e),function(t,e){if(e&&("object"===Wn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Kn()?Reflect.construct(e,r||[],Gn(t).constructor):e.apply(t,r))}function Kn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Kn=function(){return!!t})()}function Gn(t){return Gn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Gn(t)}function Zn(t,e){return Zn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Zn(t,e)}var Qn=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),qn(this,e,["meta",void 0,b()({"http-equiv":"Accept-CH",content:"DPR, Viewport-Width, Width"},t)])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Zn(t,e)}(e,t),r=e,(n=[{key:"closeTag",value:function(){return""}}])&&Yn(r.prototype,n),o&&Yn(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(Br);function Jn(t){return function(t){if(Array.isArray(t))return to(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return to(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?to(t,e):void 0}}(t)||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.")}()}function to(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var eo=function(t,e,r,n){return new Promise((function(o,i){t.innerHTML=e.videoTag(r,n).toHtml(),t.querySelector(".cld-transparent-video").style.width="100%",o(t)}))},ro=function(t,e){t.transformation?t.transformation.push({flags:[e]}):(t.flags||(t.flags=[]),"string"==typeof t.flags&&(t.flags=[t.flags]),t.flags.push(e))},no=function(t){t.autoplay=!0,t.muted=!0,t.controls=!1,t.max_timeout_ms=t.max_timeout_ms||J,t.class=t.class||"",t.class+=" cld-transparent-video",t.externalLibraries=t.externalLibraries||{},t.externalLibraries.seeThru||(t.externalLibraries.seeThru=at.seeThru),ro(t,"alpha")},oo=function(t,e,r){return new Promise((function(n,o){if(r)n();else{var i=document.createElement("script");i.src=t;var a=setTimeout((function(){o({status:"error",message:"Timeout loading script ".concat(t)})}),e);i.onerror=function(){clearTimeout(a),o({status:"error",message:"Error loading ".concat(t)})},i.onload=function(){clearTimeout(a),n()},document.head.appendChild(i)}}))};function io(t){return new Promise((function(e,r){fetch(t).then((function(t){t.blob().then((function(t){e(t)}))})).catch((function(){r("error")}))}))}function ao(t){return new Promise((function(e,r){var n=new XMLHttpRequest;n.responseType="blob",n.onload=function(t){e(n.response)},n.onerror=function(){r("error")},n.open("GET",t,!0),n.send()}))}var so,co,lo,uo,fo,ho,po=function(t,e){return new Promise((function(r,n){var o=function(t,e){return setTimeout((function(){e({status:"error",message:"Timeout loading Blob URL"})}),t)}(e,n);("undefined"!=typeof fetch&&fetch?io:ao)(t).then((function(t){r({status:"success",payload:{blobURL:URL.createObjectURL(t)}})})).catch((function(){n({status:"error",message:"Error loading Blob URL"})})).finally((function(){clearTimeout(o)}))}))},go=function(t){var e=t.autoplay,r=t.playsinline,n=t.loop,o=t.muted,i=t.poster,a=t.blobURL,s=t.videoURL,c=document.createElement("video");return c.style.visibility="hidden",c.position="absolute",c.x=0,c.y=0,c.src=a,c.setAttribute("data-video-url",s),e&&c.setAttribute("autoplay",e),r&&c.setAttribute("playsinline",r),n&&c.setAttribute("loop",n),o&&c.setAttribute("muted",o),o&&(c.muted=o),i&&c.setAttribute("poster",i),c.onload=function(){URL.revokeObjectURL(a)},c},mo=function(t,e,r,n){var o=window,i=o.seeThru,a=o.setTimeout,s=o.clearTimeout;return new Promise((function(o,c){var l=a((function(){c({status:"error",message:"Timeout instantiating seeThru instance"})}),e);if(i)var u=i.create(t).ready((function(){s(l);var t=u.getCanvas();t.style.width="100%",t.className+=" "+r,n&&u.play(),o(u)}));else c({status:"error",message:"Error instantiating seeThru instance"})}))},bo=function(t,e,r){var n=r.poster,o=r.autoplay,i=r.playsinline,a=r.loop,s=r.muted;return e+=".mp4",new Promise((function(c,l){oo(r.externalLibraries.seeThru,r.max_timeout_ms,window.seeThru).then((function(){po(e,r.max_timeout_ms).then((function(u){var d=u.payload,f=go({blobURL:d.blobURL,videoURL:e,poster:n,autoplay:o,playsinline:i,loop:a,muted:s});t.appendChild(f),mo(f,r.max_timeout_ms,r.class,r.autoplay).then((function(){c(t)})).catch((function(t){l(t)}))})).catch((function(t){var e=t.status,r=t.message;l({status:e,message:r})}))})).catch((function(t){var e=t.status,r=t.message;l({status:e,message:r})}))}))},yo=function(){return new Promise((function(t,e){Vt()&&t(!1);var r=document.createElement("video"),n=r.canPlayType&&r.canPlayType('video/webm; codecs="vp9"');t("maybe"===n||"probably"===n)}))};function vo(t){return vo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vo(t)}function wo(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,xo(n.key),n)}}function xo(t){var e=function(t,e){if("object"!=vo(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=vo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==vo(e)?e:e+""}lo=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return e*Math.ceil(t/e)},co=function(t,e){var r;for(r=t.length-2;r>=0&&t[r]>=e;)r--;return t[r+1]},so=function(t,e,r,n){var o,i,a,s;return!(s=null!=(o=null!=(i=null!=(a=n.responsive_use_breakpoints)?a:n.responsive_use_stoppoints)?i:this.config("responsive_use_breakpoints"))?o:this.config("responsive_use_stoppoints"))||"resize"===s&&!n.resizing?e:this.calc_breakpoint(t,e,r)},uo=function(t){var e,r;for(e=0;(t=null!=t?t.parentNode:void 0)instanceof Element&&!e;)r=window.getComputedStyle(t),/^inline/.test(r.display)||(e=oe(t));return e},ho=function(t,e){return t.replace(/\bdpr_(1\.0|auto)\b/g,"dpr_"+this.device_pixel_ratio(e))},fo=function(t,e){var r;return t>(r=Ht(e,"width")||0)&&(r=t,$t(e,"width",t)),r};var _o=function(){return t=function t(e){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.devicePixelRatioCache={},this.responsiveConfig={},this.responsiveResizeInitialized=!1,r=new Se(e),this.config=function(t,e){return r.config(t,e)},this.fromDocument=function(){return r.fromDocument(),this},this.fromEnvironment=function(){return r.fromEnvironment(),this},this.init=function(){return r.init(),this}},e=[{key:"url",value:function(t){return qr(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},this.config())}},{key:"video_url",value:function(t,e){return e=b()({resource_type:"video"},e),this.url(t,e)}},{key:"video_thumbnail_url",value:function(t,e){return e=b()({},tt,e),this.url(t,e)}},{key:"transformation_string",value:function(t){return new Rr(t).serialize()}},{key:"image",value:function(t){var e,r,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r=this.imageTag(t,o),e=null!=(n=null!=o.client_hints?o.client_hints:this.config("client_hints"))&&n,null!=o.src||e||r.setAttr("src",""),r=r.toDOM(),e||($t(r,"src-cache",this.url(t,o)),this.cloudinary_update(r,o)),r}},{key:"imageTag",value:function(t,e){var r;return(r=new dn(t,this.config())).transformation().fromOptions(e),r}},{key:"pictureTag",value:function(t,e,r){var n;return(n=new Pn(t,this.config(),r)).transformation().fromOptions(e),n}},{key:"sourceTag",value:function(t,e){var r;return(r=new xn(t,this.config())).transformation().fromOptions(e),r}},{key:"video_thumbnail",value:function(t,e){return this.image(t,F()({},tt,e))}},{key:"facebook_profile_image",value:function(t,e){return this.image(t,b()({type:"facebook"},e))}},{key:"twitter_profile_image",value:function(t,e){return this.image(t,b()({type:"twitter"},e))}},{key:"twitter_name_profile_image",value:function(t,e){return this.image(t,b()({type:"twitter_name"},e))}},{key:"gravatar_image",value:function(t,e){return this.image(t,b()({type:"gravatar"},e))}},{key:"fetch_image",value:function(t,e){return this.image(t,b()({type:"fetch"},e))}},{key:"video",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.videoTag(t,e).toHtml()}},{key:"videoTag",value:function(t,e){return e=vt({},e,this.config()),new Un(t,e)}},{key:"sprite_css",value:function(t,e){return e=b()({type:"sprite"},e),t.match(/.css$/)||(e.format="css"),this.url(t,e)}},{key:"responsive",value:function(t){var e,r,n,o,i,a=this,s=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.responsiveConfig=F()(this.responsiveConfig||{},t),o=null!=(e=this.responsiveConfig.responsive_class)?e:this.config("responsive_class"),s&&this.cloudinary_update("img.".concat(o,", img.cld-hidpi"),this.responsiveConfig),(null==(r=null!=(n=this.responsiveConfig.responsive_resize)?n:this.config("responsive_resize"))||r)&&!this.responsiveResizeInitialized){this.responsiveConfig.resizing=this.responsiveResizeInitialized=!0,i=null;var c=function(){var t,e,r,n,s,c;return t=null!=(e=null!=(r=a.responsiveConfig.responsive_debounce)?r:a.config("responsive_debounce"))?e:100,n=function(){i&&(clearTimeout(i),i=null)},s=function(){return a.cloudinary_update("img.".concat(o),a.responsiveConfig)},c=function(){return n(),s()},t?(n(),void(i=setTimeout(c,t))):s()};return window.addEventListener("resize",c),function(){return window.removeEventListener("resize",c)}}}},{key:"calc_breakpoint",value:function(t,e,r){var n=Ht(t,"breakpoints")||Ht(t,"stoppoints")||this.config("breakpoints")||this.config("stoppoints")||lo;return V()(n)?n(e,r):(I()(n)&&(n=n.split(",").map((function(t){return parseInt(t)})).sort((function(t,e){return t-e}))),co(n,e))}},{key:"calc_stoppoint",value:function(t,e,r){return this.calc_breakpoint(t,e,r)}},{key:"device_pixel_ratio",value:function(t){t=null==t||t;var e=("undefined"!=typeof window&&null!==window?window.devicePixelRatio:void 0)||1;t&&(e=Math.ceil(e)),(e<=0||NaN===e)&&(e=1);var r=e.toString();return r.match(/^\d+$/)&&(r+=".0"),r}},{key:"processImageTags",value:function(t,e){if(Nt(t))return this;e=vt({},e||{},this.config());var r=t.filter((function(t){return/^img$/i.test(t.tagName)})).map((function(t){var r=b()({width:t.getAttribute("width"),height:t.getAttribute("height"),src:t.getAttribute("src")},e),n=r.source||r.src;delete r.source,delete r.src;var o=new Rr(r).toHtmlAttributes();return $t(t,"src-cache",qr(n,r)),t.setAttribute("width",o.width),t.setAttribute("height",o.height),t}));return this.cloudinary_update(r,e),this}},{key:"cloudinary_update",value:function(t,e){var r,n,o,i,a=this;if(null===t)return this;null==e&&(e={});var s,c=null!=e.responsive?e.responsive:this.config("responsive");t=function(t){return P()(t)?t:"NodeList"===t.constructor.name?Jn(t):I()(t)?Array.prototype.slice.call(document.querySelectorAll(t),0):[t]}(t),s=this.responsiveConfig&&null!=this.responsiveConfig.responsive_class?this.responsiveConfig.responsive_class:null!=e.responsive_class?e.responsive_class:this.config("responsive_class");var l=null!=e.round_dpr?e.round_dpr:this.config("round_dpr");return t.forEach((function(u){if(/img/i.test(u.tagName)){var d=!0;if(c&&Kt(u,s),!Nt(n=Ht(u,"src-cache")||Ht(u,"src"))){n=ho.call(a,n,l),Br.isResponsive(u,s)&&(0!==(r=uo(u))?(/w_auto:breakpoints/.test(n)?(i=fo(r,u))?n=n.replace(/w_auto:breakpoints([_0-9]*)(:[0-9]+)?/,"w_auto:breakpoints$1:".concat(i)):d=!1:(o=/w_auto(:(\d+))?/.exec(n))&&(i=so.call(a,u,r,o[2],e),(i=fo(i,u))?n=n.replace(/w_auto[^,\/]*/g,"w_".concat(i)):d=!1),Yt(u,"width"),e.responsive_preserve_height||Yt(u,"height")):d=!1);var f="lazy"===e.loading&&!a.isNativeLazyLoadSupported()&&a.isLazyLoadSupported()&&!t[0].getAttribute("src");(d||f)&&a.setAttributeIfExists(t[0],"width","data-width"),d&&!f&&Wt(u,"src",n)}}})),this}},{key:"setAttributeIfExists",value:function(t,e,r){var n=t.getAttribute(r);null!=n&&Wt(t,e,n)}},{key:"isLazyLoadSupported",value:function(){return window&&"IntersectionObserver"in window}},{key:"isNativeLazyLoadSupported",value:function(){return"loading"in HTMLImageElement.prototype}},{key:"transformation",value:function(t){return Rr.new(this.config()).fromOptions(t).setParent(this)}},{key:"injectTransparentVideoElement",value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((function(o,i){t||i({status:"error",message:"Expecting htmlElContainer to be HTMLElement"}),no(n);var a=r.video_url(e,n);yo().then((function(s){var c;s?(c=eo(t,r,e,n),o(t)):c=bo(t,a,n),c.then((function(){o(t)})).catch((function(t){var e=t.status,r=t.message;i({status:e,message:r})}))})).catch((function(t){var e=t.status,r=t.message;i({status:e,message:r})}))}))}}],r=[{key:"new",value:function(t){return new this(t)}}],e&&wo(t.prototype,e),r&&wo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();b()(_o,n);var ko=_o;e.default={ClientHintsMetaTag:Qn,Cloudinary:ko,Condition:be,Configuration:Se,crc32:a,Expression:le,FetchLayer:Je,HtmlTag:Br,ImageTag:dn,Layer:Ce,PictureTag:Pn,SubtitlesLayer:We,TextLayer:Fe,Transformation:Rr,utf8_encode:i,Util:o,VideoTag:Un}},"lodash/assign":function(e,r){e.exports=t},"lodash/cloneDeep":function(t,r){t.exports=e},"lodash/compact":function(t,e){t.exports=r},"lodash/difference":function(t,e){t.exports=n},"lodash/functions":function(t,e){t.exports=o},"lodash/identity":function(t,e){t.exports=i},"lodash/includes":function(t,e){t.exports=a},"lodash/isArray":function(t,e){t.exports=s},"lodash/isElement":function(t,e){t.exports=c},"lodash/isFunction":function(t,e){t.exports=l},"lodash/isPlainObject":function(t,e){t.exports=u},"lodash/isString":function(t,e){t.exports=d},"lodash/merge":function(t,e){t.exports=f},"lodash/trim":function(t,e){t.exports=h}})},t.exports=r(pc,lu,uu,Cu,Pu,Ss,Ku,Zs,rd,ns,ed,Mu,ld,Id)}));function Fd(){return Fd=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Fd.apply(this,arguments)}function zd(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Ld(t,e)}function Ld(t,e){return Ld=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ld(t,e)}function Bd(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}var Vd=["public_id"],Hd=["publicId"],$d=["children"],Ud=["children","accessibility","placeholder"],Wd=Nd.Util.camelCase,Yd=Nd.Util.withCamelCaseKeys,Xd=Nd.Util.isEmpty,qd=["accessibility","breakpoints","dataSrc","placeholder","publicId","signature","authToken"],Kd={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg"},Gd=[].concat(Nd.Transformation.PARAM_NAMES,qd).map(Nd.Util.camelCase).reduce((function(t,e){return t[e]=!0,t}),{}),Zd=function(t){var e,r=(e=t,Object.entries(e).reduce((function(t,e){var r,n=e[0],o=e[1];return null==o?t:Fd({},t,((r={})[n]=o,r))}),{})),n=Bd(r,Vd),o=Nd.Util.withSnakeCaseKeys(n);return Nd.Cloudinary.new(o)},Qd=function(t){return function(t,e){var r=t.publicId,n=Bd(t,Hd);return Zd(n)[e+"Tag"](r,Nd.Util.withSnakeCaseKeys(n))}(t,"image")},Jd=function(t,e){var r=Nd.Util.withSnakeCaseKeys(e),n=Zd(r);return n.cloudinary_update(t,r),n.responsive(r,!1)},tf=function(t){var e=t.children,r=Bd(t,$d),n={children:e,cloudinaryProps:{},nonCloudinaryProps:{},cloudinaryReactProps:{}};return Object.keys(r).forEach((function(t){var e=Nd.Util.camelCase(t),o=r[t];Gd[e]?void 0!==r[t]&&null!==r[t]&&(n.cloudinaryProps[e]=o):"includeOwnBody"===e?n.cloudinaryReactProps[e]=o:n.nonCloudinaryProps[t]=o})),n},ef=function(t,e){return!(!n.default.isValidElement(t)||!t.type||t.type.displayName!==e)},rf=function(){return[].slice.call(arguments).reduce((function(t,e){return Object.keys(e||{}).forEach((function(r){var n=e[r];null!=n&&(t[r]=n)})),t}),{})},nf=function t(e){var r=e?n.default.Children.toArray(e).filter((function(t){return ef(t,"CloudinaryTransformation")})).map((function(e){var r=rf(e.props,e.context),n=t(e.props.children);return n&&(r.transformation=n),r})):[];return r.length?r:null},of=function(t){var e=t.children,r=t.accessibility,n=t.placeholder,o=Bd(t,Ud),i=function(t,e){return void 0===e&&(e=[]),t?e.reduce((function(e,r){return r in t&&(e[r]=t[r]),e}),{}):t}(Yd(o),Nd.Transformation.methods)||{},a=nf(e);Xd(a)||(i.transformation=a);var s={accessibility:r,placeholder:n};return Object.keys(s).filter((function(t){return s[t]})).forEach((function(t){i[t]=s[t]})),i},af=t.createContext(),sf=Nd.Util.camelCase,cf=function(e){function r(r,n){var o;return(o=e.call(this,r,n)||this).getContext=function(){return o.context||{}},o.onIntersect=function(){o.setState({isInView:!0})},o.getExtendedProps=function(t,e){return void 0===t&&(t=o.props),void 0===e&&(e=o.getContext()),rf(e,t)},o.attachRef=function(t){var e=o.props.innerRef;o.element.current=t,e&&(e instanceof Function?e(t):e.current=t)},o.element=t.createRef(),o}return zd(r,e),r.prototype.render=function(){return null},r}(t.PureComponent);cf.defaultProps={innerRef:null,publicId:null},cf.propTypes=Fd({},function(t){t=t||[];for(var e={},r=0;r<t.length;r++){var n=t[r];e[Wd(n)]=Ha.any}return e}(Nd.Transformation.PARAM_NAMES.map(sf)),{innerRef:Ha.any,publicId:Ha.string}),cf.contextType=af;var lf=function(t){function e(){return t.apply(this,arguments)||this}return zd(e,t),e.prototype.render=function(){var t=Fd({},this.getContext(),this.props),e=tf(t),r=e.children,o=e.cloudinaryProps,i=e.nonCloudinaryProps,a=e.cloudinaryReactProps;return n.default.createElement(af.Provider,{value:o},a.includeOwnBody?r:n.default.createElement("div",i,r))},e}(cf);lf.propTypes=Fd({},cf.propTypes,{includeOwnBody:Ha.bool}),lf.defaultProps={includeOwnBody:!1};var uf=["children","innerRef"],df="\nWarning: passing a number value for width cancels the 'responsive' prop's effect on the image transformation.\nThe 'responsive' prop affects the image transformation only when width === 'auto'.\nPassing 'width=\"auto\" responsive' will affect the actual image width that is fetched from Cloudinary.\nThe 'responsive' prop causes the Image component to request an image which width is equal to the width of it's container.\nWhen passing 'width=\"auto\" responsive', you can set the <img> element width by passing a 'style' prop".trim(),ff=function(e){function r(r,o){var i;return(i=e.call(this,r,o)||this).isResponsive=function(){var t=i.getExtendedProps(),e=t.responsive,r=t.width;return e&&"auto"!==r&&console.warn(df),e&&i.element&&i.element.current},i.getOptions=function(){var t=i.getExtendedProps(),e=Bd(Fd({},t,of(t)),uf);return i.shouldLazyLoad()||delete e.loading,e},i.getAttributes=function(t){void 0===t&&(t={});var e=t.placeholder,r=tf(Fd({},i.getOptions(),t)),n=r.cloudinaryProps,o=r.nonCloudinaryProps,a=r.cloudinaryReactProps,s=Qd(Fd({},n,a)),c=Fd({},Nd.Util.withCamelCaseKeys(s.attributes()),o);return c.dataSrc&&(c["data-src"]=c.dataSrc),e&&c.id&&(c.id+="-cld-placeholder"),i.shouldLazyLoad()&&(c["data-src"]=c.dataSrc||c.src,delete c.src),qd.forEach((function(t){delete c[t]})),c},i.update=function(){if(i.shouldLazyLoad())Nd.Util.detectIntersection(i.element.current,i.onIntersect);else if(i.isResponsive()){var t=i.getOptions(),e=i.getPlaceholderType();if(e){var r=Jd(i.placeholderElement.current,Fd({},t,{placeholder:e}));i.listenerRemovers.push(r)}var n=Jd(i.element.current,t);i.listenerRemovers.push(n)}},i.shouldLazyLoad=function(){var t=i.getExtendedProps().loading;return!i.state.isInView&&("lazy"===t||"auto"===t)},i.handleImageLoaded=function(){var t=i.props.onLoad;i.setState({isLoaded:!0},(function(){t&&t()}))},i.renderPlaceholder=function(e,r){r.style=Fd({},r.style||{},{opacity:0,position:"absolute"}),r.onLoad=i.handleImageLoaded;var o=i.getAttributes({placeholder:e});return n.default.createElement(t.Fragment,null,i.renderImage(r),n.default.createElement("div",{style:{display:"inline"}},n.default.createElement("img",Fd({ref:i.placeholderElement},o))))},i.renderImage=function(t){return n.default.createElement("img",Fd({ref:i.attachRef},t))},i.getPlaceholderType=function(){var t=function(t){var e=null;return t&&(e=n.default.Children.toArray(t).find((function(t){return ef(t,"CloudinaryPlaceholder")}))),e}(i.getExtendedProps().children);return t?t.props.type:null},i.placeholderElement=t.createRef(),i.state={isLoaded:!1},i.listenerRemovers=[],i}zd(r,e);var o=r.prototype;return o.componentDidMount=function(){this.update()},o.componentDidUpdate=function(){this.update()},o.componentWillUnmount=function(){this.listenerRemovers.forEach((function(t){return t()}))},o.render=function(){var t=this.state.isLoaded,e=this.getAttributes(),r=this.getPlaceholderType();return!t&&r?this.renderPlaceholder(r,e):this.renderImage(e)},r}(cf);ff.defaultProps={},ff.propTypes=cf.propTypes,ff.propTypes.responsive=Ha.bool,ff.propTypes.loading=Ha.string,ff.propTypes.accessibility=Ha.string,cf.propTypes;var hf=["innerRef","publicId","fallback","children","sourceTypes","sourceTransformation","sources"],pf=function(t){function e(){for(var e,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))||this).mimeType="video",e.mimeSubTypes=Kd,e.getMergedProps=function(){return Fd({},e.getContext(),e.props)},e.generateVideoUrl=function(t,e,r,n,o){var i=Nd.Util.withSnakeCaseKeys(Nd.Util.defaults({},n,r,{resource_type:"video",format:o}));return t.url(e,i)},e.generateUsingSourceTypes=function(t,r,n,o,i){return i.map((function(i){return e.toSourceTag(t,r,n,o[i]||{},i,e.buildMimeType(i))}))},e.generateUsingSources=function(t,r,n,o){return o.map((function(o){var i=o.transformations,a=void 0===i?{}:i,s=o.type,c=o.codecs;return e.toSourceTag(t,r,n,a,s,e.buildMimeType(s,c))}))},e.toSourceTag=function(t,r,o,i,a,s){var c=e.generateVideoUrl(t,r,o,i,a);return n.default.createElement("source",{key:c+s,src:c,type:s})},e.buildMimeType=function(t,r){var n=e.mimeType+"/"+(e.mimeSubTypes[t]||t);return Nd.Util.isEmpty(r)||(n+="; codecs="+(Nd.Util.isArray(r)?r.join(", "):r)),n},e.getVideoTagProps=function(){var t=e.getMergedProps(),r=t.publicId,n=t.children,o=t.sourceTypes,i=t.sourceTransformation,a=void 0===i?{}:i,s=t.sources,c=Bd(t,hf);c=rf(c,{});var l=tf(c),u=l.cloudinaryProps,d=l.cloudinaryReactProps,f=l.nonCloudinaryProps;c=Fd({},u,d);var h=Nd.Util.withSnakeCaseKeys(c),p=Nd.Cloudinary.new(h),g=p.videoTag(r,c).attributes();g=Fd({},Nd.Util.withCamelCaseKeys(g),f);var m=of(Fd({},c,{children:n})),b=null;return Nd.Util.isArray(s)&&!Nd.Util.isEmpty(s)?b=e.generateUsingSources(p,r,m,s):Nd.Util.isArray(o)?b=e.generateUsingSourceTypes(p,r,m,a,o):g.src=e.generateVideoUrl(p,r,m,a[o]||{},o),{sources:b,tagAttributes:g}},e.reloadVideo=function(){e.element&&e.element.current&&e.element.current.load()},e}zd(e,t);var r=e.prototype;return r.componentDidUpdate=function(){this.reloadVideo()},r.render=function(){var t=this.props,e=t.fallback,r=t.children,o=this.getVideoTagProps(),i=o.tagAttributes,a=o.sources;return n.default.createElement("video",Fd({ref:this.attachRef},i),a,e,r)},e}(cf);function gf(t){var e=t.publicId,r=t.secure,o=void 0===r||r,i=t.alt,a=t.styles;return n.default.createElement(lf,{cloudName:process.env.REACT_APP_CLOUDINARY_NAME?process.env.REACT_APP_CLOUDINARY_NAME:""},n.default.createElement(ff,{publicId:e||"public/placeholders/placeholder-dark_uwuxct",secure:o,alt:i,className:a}))}pf.propTypes={publicId:Ha.string,sources:Ha.arrayOf(Ha.shape({type:Ha.string,codecs:Ha.oneOfType([Ha.string,Ha.arrayOf(Ha.string)]),transformations:Ha.object}))},pf.defaultProps={sourceTypes:Nd.Cloudinary.DEFAULT_VIDEO_PARAMS.source_types},Ha.string,Ha.string;var mf={1:"text-5xl leading-[90px]",2:"text-4xl leading-[80px]",3:"text-3xl leading-[70px]"},bf=function(t){var e,r=t.level,o=void 0===r?1:r,i=t.children,a=t.variant,s=void 0===a?"default":a,l=t.decoration,u=void 0===l?"noUnderline":l,f=t.bold,h=t.italic,g=t.styles,m=t.onClick;return n.default.createElement("div",{onClick:m,className:c((e={},e["".concat(d[s])]=s,e["".concat(mf[o])]=o,e["".concat(g)]=g,e["".concat(p[u])]=u,e["font-bold"]=f,e.italic=h,e))},i||"Title")},yf={1:"text-2xl leading-[50px] pt-4",2:"text-xl leading-[50px]",3:"text-lg leading-[40px]"},vf=function(t){var e,r=t.level,o=void 0===r?1:r,i=t.children,a=t.variant,s=void 0===a?"default":a,l=t.decoration,u=void 0===l?"noUnderline":l,f=t.bold,h=t.italic,g=t.styles,m=t.onClick;return n.default.createElement("div",{onClick:m,className:c((e={},e["".concat(d[s]," opacity-80")]=s,e["".concat(yf[o])]=o,e["".concat(g)]=g,e["".concat(p[u])]=u,e["font-bold"]=f,e.italic=h,e))},i||"Title")},wf={1:"text-base leading-[28px]",2:"text-sm leading-[25px]",3:"text-xs leading-[20px]"},xf=function(t){var e,r=t.level,o=void 0===r?1:r,i=t.children,a=t.variant,s=void 0===a?"default":a,l=t.decoration,u=void 0===l?"noUnderline":l,f=t.bold,h=t.italic,g=t.styles,m=t.onClick;return n.default.createElement("div",{onClick:m,className:c((e={},e["".concat(d[s]," opacity-60")]=s,e["".concat(wf[o])]=o,e["".concat(g)]=g,e["".concat(p[u])]=u,e["font-bold"]=f,e.italic=h,e))},i||"Text")},_f=function(t){var e,r=t.children,o=t.href,i=t.target,a=void 0===i?"self":i,s=t.variant,l=void 0===s?"info":s,u=t.decoration,f=void 0===u?"underline":u,h=t.bold,m=t.italic,b=t.styles,y=t.onClick;return n.default.createElement("a",{href:o||"#",target:g[a],onClick:function(t){y&&(t.preventDefault(),y())},className:c((e={},e["".concat(d[l])]=l,e["".concat(p[f])]=f,e["font-bold"]=h,e.italic=m,e["hover:cursor-pointer hover:brightness-125"]=!0,e["transition-all ease-in-out"]=!0,e["".concat(b)]=b,e))},r||"Link")},kf=function(t){var e,r=t.children,o=t.styles;return n.default.createElement("div",{className:c((e={"pl-4 py-1 border-l-2 border-l-gray-400 w-full":!0},e["".concat(o)]=o,e))},r)},Ef={Chapter:bf,Section:vf,Paragraph:xf,Link:_f,Quote:kf},Sf={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Of=n.default.createContext&&n.default.createContext(Sf),Tf=function(){return Tf=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Tf.apply(this,arguments)},Af=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r};function Cf(t){return t&&t.map((function(t,e){return n.default.createElement(t.tag,Tf({key:e},t.attr),Cf(t.child))}))}function jf(t){return function(e){return n.default.createElement(Pf,Tf({attr:Tf({},t.attr)},e),Cf(t.child))}}function Pf(t){var e=function(e){var r,o=t.attr,i=t.size,a=t.title,s=Af(t,["attr","size","title"]),c=i||e.size||"1em";return e.className&&(r=e.className),t.className&&(r=(r?r+" ":"")+t.className),n.default.createElement("svg",Tf({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,o,s,{className:r,style:Tf(Tf({color:t.color||e.color},e.style),t.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),a&&n.default.createElement("title",null,a),t.children)};return void 0!==Of?n.default.createElement(Of.Consumer,null,(function(t){return e(t)})):e(Sf)}function Mf(t){return jf({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M6.95.435c.58-.58 1.52-.58 2.1 0l6.515 6.516c.58.58.58 1.519 0 2.098L9.05 15.565c-.58.58-1.519.58-2.098 0L.435 9.05a1.482 1.482 0 0 1 0-2.098L6.95.435z"}}]})(t)}function Df(t){return jf({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"}}]})(t)}function Rf(t){return jf({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"}}]})(t)}function If(t){return jf({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M5.354 5.119 7.538.792A.516.516 0 0 1 8 .5c.183 0 .366.097.465.292l2.184 4.327 4.898.696A.537.537 0 0 1 16 6.32a.548.548 0 0 1-.17.445l-3.523 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256a.52.52 0 0 1-.146.05c-.342.06-.668-.254-.6-.642l.83-4.73L.173 6.765a.55.55 0 0 1-.172-.403.58.58 0 0 1 .085-.302.513.513 0 0 1 .37-.245l4.898-.696zM8 12.027a.5.5 0 0 1 .232.056l3.686 1.894-.694-3.957a.565.565 0 0 1 .162-.505l2.907-2.77-4.052-.576a.525.525 0 0 1-.393-.288L8.001 2.223 8 2.226v9.8z"}}]})(t)}function Nf(t){return jf({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M2.866 14.85c-.078.444.36.791.746.593l4.39-2.256 4.389 2.256c.386.198.824-.149.746-.592l-.83-4.73 3.522-3.356c.33-.314.16-.888-.282-.95l-4.898-.696L8.465.792a.513.513 0 0 0-.927 0L5.354 5.12l-4.898.696c-.441.062-.612.636-.283.95l3.523 3.356-.83 4.73zm4.905-2.767-3.686 1.894.694-3.957a.565.565 0 0 0-.163-.505L1.71 6.745l4.052-.576a.525.525 0 0 0 .393-.288L8 2.223l1.847 3.658a.525.525 0 0 0 .393.288l4.052.575-2.906 2.77a.565.565 0 0 0-.163.506l.694 3.957-3.686-1.894a.503.503 0 0 0-.461 0z"}}]})(t)}var Ff=function(t){var e=t.TypographyComponent,r=void 0===e?n.default.createElement(xf,{level:1}):e,o=t.x;return n.default.createElement("div",null,r?n.default.cloneElement(r,{},o):o)},zf=[{name:"US Dollar",symbol:"$",code:"USD"},{name:"Euro",symbol:"€",code:"EUR"},{name:"British Pound",symbol:"£",code:"GBP"},{name:"Japanese Yen",symbol:"¥",code:"JPY"},{name:"Australian Dollar",symbol:"$",code:"AUD"},{name:"Canadian Dollar",symbol:"$",code:"CAD"},{name:"Swiss Franc",symbol:"CHF",code:"CHF"},{name:"Chinese Yuan",symbol:"¥",code:"CNY"},{name:"Indian Rupee",symbol:"₹",code:"INR"},{name:"Brazilian Real",symbol:"R$",code:"BRL"},{name:"South African Rand",symbol:"R",code:"ZAR"},{name:"Mexican Peso",symbol:"$",code:"MXN"},{name:"Singapore Dollar",symbol:"$",code:"SGD"},{name:"Hong Kong Dollar",symbol:"$",code:"HKD"},{name:"New Zealand Dollar",symbol:"$",code:"NZD"},{name:"Norwegian Krone",symbol:"kr",code:"NOK"},{name:"Swedish Krona",symbol:"kr",code:"SEK"},{name:"Danish Krone",symbol:"kr",code:"DKK"},{name:"Russian Ruble",symbol:"₽",code:"RUB"},{name:"Turkish Lira",symbol:"₺",code:"TRY"},{name:"Argentine Peso",symbol:"$",code:"ARS"},{name:"Colombian Peso",symbol:"$",code:"COP"},{name:"Egyptian Pound",symbol:"£",code:"EGP"},{name:"Chilean Peso",symbol:"$",code:"CLP"},{name:"Philippine Peso",symbol:"₱",code:"PHP"},{name:"Indonesian Rupiah",symbol:"Rp",code:"IDR"},{name:"Malaysian Ringgit",symbol:"RM",code:"MYR"},{name:"South Korean Won",symbol:"₩",code:"KRW"},{name:"Thai Baht",symbol:"฿",code:"THB"},{name:"Vietnamese Dong",symbol:"₫",code:"VND"},{name:"Pakistani Rupee",symbol:"₨",code:"PKR"},{name:"Bangladeshi Taka",symbol:"৳",code:"BDT"},{name:"Kenyan Shilling",symbol:"KSh",code:"KES"},{name:"Tanzanian Shilling",symbol:"TSh",code:"TZS"},{name:"Ugandan Shilling",symbol:"USh",code:"UGX"},{name:"Ghanaian Cedi",symbol:"₵",code:"GHS"},{name:"Iraqi Dinar",symbol:"ع.د",code:"IQD"},{name:"Jordanian Dinar",symbol:"د.أ",code:"JOD"},{name:"Lebanese Pound",symbol:"ل.ل",code:"LBP"},{name:"Syrian Pound",symbol:"£",code:"SYP"},{name:"Algerian Dinar",symbol:"د.ج",code:"DZD"},{name:"Moroccan Dirham",symbol:"د.م.",code:"MAD"},{name:"Libyan Dinar",symbol:"د.ل",code:"LYD"},{name:"Bahraini Dinar",symbol:"د.ب",code:"BHD"},{name:"Kuwaiti Dinar",symbol:"د.ك",code:"KWD"},{name:"Qatari Riyal",symbol:"ر.ق",code:"QAR"},{name:"Omani Rial",symbol:"ر.ع.",code:"OMR"},{name:"Saudi Riyal",symbol:"ر.س",code:"SAR"},{name:"Emirati Dirham",symbol:"د.إ",code:"AED"},{name:"Israeli New Shekel",symbol:"₪",code:"ILS"},{name:"Yemeni Rial",symbol:"ر.ي",code:"YER"},{name:"Mauritian Rupee",symbol:"₨",code:"MUR"},{name:"Sri Lankan Rupee",symbol:"රු",code:"LKR"},{name:"Nepalese Rupee",symbol:"₨",code:"NPR"},{name:"Kazakhstani Tenge",symbol:"₸",code:"KZT"},{name:"Uzbekistani Som",symbol:"so'm",code:"UZS"},{name:"Turkmenistan Manat",symbol:"m",code:"TMT"},{name:"Belarusian Ruble",symbol:"Br",code:"BYN"},{name:"Armenian Dram",symbol:"դր.",code:"AMD"},{name:"Moldovan Leu",symbol:"lei",code:"MDL"},{name:"Georgian Lari",symbol:"₾",code:"GEL"},{name:"Kyrgyzstani Som",symbol:"сом",code:"KGS"},{name:"Tajikistani Somoni",symbol:"SM",code:"TJS"},{name:"Afghan Afghani",symbol:"؋",code:"AFN"},{name:"Haitian Gourde",symbol:"G",code:"HTG"},{name:"Jamaican Dollar",symbol:"$",code:"JMD"},{name:"Barbadian Dollar",symbol:"$",code:"BBD"},{name:"Trinidad and Tobago Dollar",symbol:"$",code:"TTD"},{name:"Antillean Guilder",symbol:"ƒ",code:"AWG"},{name:"Bermudian Dollar",symbol:"$",code:"BMD"},{name:"East Caribbean Dollar",symbol:"$",code:"XCD"},{name:"Cayman Islands Dollar",symbol:"$",code:"KYD"},{name:"Falkland Islands Pound",symbol:"£",code:"FKP"},{name:"Saint Helena Pound",symbol:"£",code:"SHP"},{name:"Gibraltar Pound",symbol:"£",code:"GIP"},{name:"Fiji Dollar",symbol:"$",code:"FJD"},{name:"Seychelles Rupee",symbol:"₨",code:"SCR"},{name:"Solomon Islands Dollar",symbol:"$",code:"SBD"},{name:"Vanuatu Vatu",symbol:"Vt",code:"VUV"},{name:"Samoan Tala",symbol:"T",code:"WST"},{name:"Tongan Paʻanga",symbol:"T$",code:"TOP"},{name:"Papua New Guinean Kina",symbol:"K",code:"PGK"},{name:"Ni-Vanuatu Vatu",symbol:"Vt",code:"VUV"},{name:"New Zealand Dollar",symbol:"$",code:"NZD"},{name:"Cook Islands Dollar",symbol:"$",code:"CKD"},{name:"Tokelau Dollar",symbol:"$",code:"TKD"},{name:"Marshall Islands Dollar",symbol:"$",code:"MKD"},{name:"Palau Dollar",symbol:"$",code:"USD"}],Lf=function(t){var e=zf.find((function(e){return e.code===t}));return e?e.symbol:null};function Bf(t){var e=t.rating,r=t.reviewAmount,o=t.isNumericRatingEnabled,i=void 0!==o&&o,a=t.isReviewAmountEnabled,s=void 0!==a&&a,c=t.styles,l=Math.floor(e),u=Math.ceil(e-l),d=5-l-u,f=n.default.createElement(Rf,null),h=n.default.createElement(If,null),p=n.default.createElement(Nf,null);return n.default.createElement("div",{className:"inline-flex gap-2 items-center"},i&&n.default.createElement("div",{className:"text-yellow-700 font-semibold text-[14px]"},e.toFixed(1)),n.default.createElement("div",{className:"flex flex-row gap-[2px] text-[13px] text-yellow-600 ".concat(c)},Gi([],Array(l),!0).map((function(t,e){return n.default.createElement("span",{key:e},f)})),Gi([],Array(u),!0).map((function(t,e){return n.default.createElement("span",{key:e+l},h)})),Gi([],Array(d),!0).map((function(t,e){return n.default.createElement("span",{key:e+l+u},p)}))),s&&n.default.createElement("div",{className:"text-gray-400 font-semibold text-[14px]"},"(",r,")"))}var Vf=function(t){var e=t.averageRating,r=t.totalReviews;return n.default.createElement("div",{className:"flex flex-col items-center justify-center w-fit mb-4"},n.default.createElement("div",{className:"text-[60px] font-bold text-gray-400"},e.toFixed(1)),n.default.createElement("div",null,n.default.createElement(Bf,{rating:Math.round(e)})),n.default.createElement("div",{className:"text-gray-500 text-sm"},r," reviews"))},Hf=function(t){var e=t.star,r=t.percentage;return n.default.createElement("div",{className:"flex items-center"},n.default.createElement("div",{className:"text-sm text-gray-600 w-6"},e),n.default.createElement("div",{className:"relative bg-gray-400 bg-opacity-50 h-[10px] w-full rounded-md overflow-hidden"},n.default.createElement("div",{className:"absolute bg-yellow-400 h-full",style:{width:"".concat(r,"%")}})),n.default.createElement("div",{className:"text-xs text-gray-500 w-[60px] text-right"},r.toFixed(1),"%"))},$f=function(t){var e=t.ratingDistribution;return n.default.createElement("div",{className:"flex flex-col gap-2 w-full max-w-md"},e.map((function(t){return n.default.createElement(Hf,{key:t.star,star:t.star,percentage:t.percentage})})))};var Uf=function(t){var e,r=t.children,o=t.styles;return n.default.createElement("div",{className:c((e={"bg-gradient-to-r from-dark-300/20 to-dark-100/10 dark:from-light-400/10 dark:to-light-400/5 animate-pulse min-w-5 min-h-3":!0},e["".concat(o)]=o,e))},r)};function Wf(t){var e,r=t.img,o=t.onClick,i=t.selected,a=t.styles;return n.default.createElement("div",{onClick:o,className:c((e={"flex-shrink-0 w-[160px] h-[90px] border-[3px] overflow-hidden brightness-50":!0,"hover:cursor-pointer hover:border-secondary-600 hover:shadow-lg hover:shadow-[#167d0f]/50 hover:brightness-100":!0,"border-transparent":!i,"border-opacity-100 border-[#0b6b05] brightness-100":i,"transition-all ease-in-out duration-500":!0},e["".concat(a)]=a,e))},n.default.createElement(gf,{publicId:r,alt:"image",styles:"w-full h-full object-cover"}))}function Yf(t){return jf({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]})(t)}var Xf=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===qf}(t)}(t)};var qf="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Kf(t,e){return!1!==e.clone&&e.isMergeableObject(t)?Zf((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function Gf(t,e,r){return t.concat(e).map((function(t){return Kf(t,r)}))}function Zf(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||Gf,r.isMergeableObject=r.isMergeableObject||Xf;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):function(t,e,r){var n={};return r.isMergeableObject(t)&&Object.keys(t).forEach((function(e){n[e]=Kf(t[e],r)})),Object.keys(e).forEach((function(o){r.isMergeableObject(e[o])&&t[o]?n[o]=Zf(t[o],e[o],r):n[o]=Kf(e[o],r)})),n}(t,e,r):Kf(e,r)}Zf.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return Zf(t,r,e)}),{})};var Qf=Zf,Jf="object"==typeof global&&global&&global.Object===Object&&global,th="object"==typeof self&&self&&self.Object===Object&&self,eh=Jf||th||Function("return this")(),rh=eh.Symbol,nh=Object.prototype,oh=nh.hasOwnProperty,ih=nh.toString,ah=rh?rh.toStringTag:void 0;var sh=Object.prototype.toString;var ch=rh?rh.toStringTag:void 0;function lh(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ch&&ch in Object(t)?function(t){var e=oh.call(t,ah),r=t[ah];try{t[ah]=void 0;var n=!0}catch(t){}var o=ih.call(t);return n&&(e?t[ah]=r:delete t[ah]),o}(t):function(t){return sh.call(t)}(t)}function uh(t,e){return function(r){return t(e(r))}}var dh=uh(Object.getPrototypeOf,Object);function fh(t){return null!=t&&"object"==typeof t}var hh=Function.prototype,ph=Object.prototype,gh=hh.toString,mh=ph.hasOwnProperty,bh=gh.call(Object);function yh(t){if(!fh(t)||"[object Object]"!=lh(t))return!1;var e=dh(t);if(null===e)return!0;var r=mh.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&gh.call(r)==bh}function vh(t,e){return t===e||t!=t&&e!=e}function wh(t,e){for(var r=t.length;r--;)if(vh(t[r][0],e))return r;return-1}var xh=Array.prototype.splice;function _h(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function kh(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}_h.prototype.clear=function(){this.__data__=[],this.size=0},_h.prototype.delete=function(t){var e=this.__data__,r=wh(e,t);return!(r<0)&&(r==e.length-1?e.pop():xh.call(e,r,1),--this.size,!0)},_h.prototype.get=function(t){var e=this.__data__,r=wh(e,t);return r<0?void 0:e[r][1]},_h.prototype.has=function(t){return wh(this.__data__,t)>-1},_h.prototype.set=function(t,e){var r=this.__data__,n=wh(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function Eh(t){if(!kh(t))return!1;var e=lh(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var Sh=eh["__core-js_shared__"],Oh=function(){var t=/[^.]+$/.exec(Sh&&Sh.keys&&Sh.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var Th=Function.prototype.toString;function Ah(t){if(null!=t){try{return Th.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var Ch=/^\[object .+?Constructor\]$/,jh=Function.prototype,Ph=Object.prototype,Mh=jh.toString,Dh=Ph.hasOwnProperty,Rh=RegExp("^"+Mh.call(Dh).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ih(t){return!(!kh(t)||(e=t,Oh&&Oh in e))&&(Eh(t)?Rh:Ch).test(Ah(t));var e}function Nh(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return Ih(r)?r:void 0}var Fh=Nh(eh,"Map"),zh=Nh(Object,"create");var Lh=Object.prototype.hasOwnProperty;var Bh=Object.prototype.hasOwnProperty;function Vh(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Hh(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function $h(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Vh.prototype.clear=function(){this.__data__=zh?zh(null):{},this.size=0},Vh.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Vh.prototype.get=function(t){var e=this.__data__;if(zh){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return Lh.call(e,t)?e[t]:void 0},Vh.prototype.has=function(t){var e=this.__data__;return zh?void 0!==e[t]:Bh.call(e,t)},Vh.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=zh&&void 0===e?"__lodash_hash_undefined__":e,this},$h.prototype.clear=function(){this.size=0,this.__data__={hash:new Vh,map:new(Fh||_h),string:new Vh}},$h.prototype.delete=function(t){var e=Hh(this,t).delete(t);return this.size-=e?1:0,e},$h.prototype.get=function(t){return Hh(this,t).get(t)},$h.prototype.has=function(t){return Hh(this,t).has(t)},$h.prototype.set=function(t,e){var r=Hh(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function Uh(t){var e=this.__data__=new _h(t);this.size=e.size}Uh.prototype.clear=function(){this.__data__=new _h,this.size=0},Uh.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Uh.prototype.get=function(t){return this.__data__.get(t)},Uh.prototype.has=function(t){return this.__data__.has(t)},Uh.prototype.set=function(t,e){var r=this.__data__;if(r instanceof _h){var n=r.__data__;if(!Fh||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new $h(n)}return r.set(t,e),this.size=r.size,this};var Wh=function(){try{var t=Nh(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Yh=Wh;function Xh(t,e,r){"__proto__"==e&&Yh?Yh(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var qh=Object.prototype.hasOwnProperty;function Kh(t,e,r){var n=t[e];qh.call(t,e)&&vh(n,r)&&(void 0!==r||e in t)||Xh(t,e,r)}function Gh(t,e,r,n){var o=!r;r||(r={});for(var i=-1,a=e.length;++i<a;){var s=e[i],c=n?n(r[s],t[s],s,r,t):void 0;void 0===c&&(c=t[s]),o?Xh(r,s,c):Kh(r,s,c)}return r}function Zh(t){return fh(t)&&"[object Arguments]"==lh(t)}var Qh=Object.prototype,Jh=Qh.hasOwnProperty,tp=Qh.propertyIsEnumerable,ep=Zh(function(){return arguments}())?Zh:function(t){return fh(t)&&Jh.call(t,"callee")&&!tp.call(t,"callee")},rp=Array.isArray;var np="object"==typeof exports&&exports&&!exports.nodeType&&exports,op=np&&"object"==typeof module&&module&&!module.nodeType&&module,ip=op&&op.exports===np?eh.Buffer:void 0,ap=(ip?ip.isBuffer:void 0)||function(){return!1},sp=/^(?:0|[1-9]\d*)$/;function cp(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&sp.test(t))&&t>-1&&t%1==0&&t<e}function lp(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}var up={};function dp(t){return function(e){return t(e)}}up["[object Float32Array]"]=up["[object Float64Array]"]=up["[object Int8Array]"]=up["[object Int16Array]"]=up["[object Int32Array]"]=up["[object Uint8Array]"]=up["[object Uint8ClampedArray]"]=up["[object Uint16Array]"]=up["[object Uint32Array]"]=!0,up["[object Arguments]"]=up["[object Array]"]=up["[object ArrayBuffer]"]=up["[object Boolean]"]=up["[object DataView]"]=up["[object Date]"]=up["[object Error]"]=up["[object Function]"]=up["[object Map]"]=up["[object Number]"]=up["[object Object]"]=up["[object RegExp]"]=up["[object Set]"]=up["[object String]"]=up["[object WeakMap]"]=!1;var fp="object"==typeof exports&&exports&&!exports.nodeType&&exports,hp=fp&&"object"==typeof module&&module&&!module.nodeType&&module,pp=hp&&hp.exports===fp&&Jf.process,gp=function(){try{var t=hp&&hp.require&&hp.require("util").types;return t||pp&&pp.binding&&pp.binding("util")}catch(t){}}(),mp=gp&&gp.isTypedArray,bp=mp?dp(mp):function(t){return fh(t)&&lp(t.length)&&!!up[lh(t)]},yp=Object.prototype.hasOwnProperty;function vp(t,e){var r=rp(t),n=!r&&ep(t),o=!r&&!n&&ap(t),i=!r&&!n&&!o&&bp(t),a=r||n||o||i,s=a?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],c=s.length;for(var l in t)!e&&!yp.call(t,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||cp(l,c))||s.push(l);return s}var wp=Object.prototype;function xp(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||wp)}var _p=uh(Object.keys,Object),kp=Object.prototype.hasOwnProperty;function Ep(t){return null!=t&&lp(t.length)&&!Eh(t)}function Sp(t){return Ep(t)?vp(t):function(t){if(!xp(t))return _p(t);var e=[];for(var r in Object(t))kp.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}var Op=Object.prototype.hasOwnProperty;function Tp(t){if(!kh(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=xp(t),r=[];for(var n in t)("constructor"!=n||!e&&Op.call(t,n))&&r.push(n);return r}function Ap(t){return Ep(t)?vp(t,!0):Tp(t)}var Cp="object"==typeof exports&&exports&&!exports.nodeType&&exports,jp=Cp&&"object"==typeof module&&module&&!module.nodeType&&module,Pp=jp&&jp.exports===Cp?eh.Buffer:void 0,Mp=Pp?Pp.allocUnsafe:void 0;function Dp(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}function Rp(){return[]}var Ip=Object.prototype.propertyIsEnumerable,Np=Object.getOwnPropertySymbols,Fp=Np?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}(Np(t),(function(e){return Ip.call(t,e)})))}:Rp,zp=Fp;function Lp(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}var Bp=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Lp(e,zp(t)),t=dh(t);return e}:Rp,Vp=Bp;function Hp(t,e,r){var n=e(t);return rp(t)?n:Lp(n,r(t))}function $p(t){return Hp(t,Sp,zp)}function Up(t){return Hp(t,Ap,Vp)}var Wp=Nh(eh,"DataView"),Yp=Nh(eh,"Promise"),Xp=Nh(eh,"Set"),qp=Nh(eh,"WeakMap"),Kp="[object Map]",Gp="[object Promise]",Zp="[object Set]",Qp="[object WeakMap]",Jp="[object DataView]",tg=Ah(Wp),eg=Ah(Fh),rg=Ah(Yp),ng=Ah(Xp),og=Ah(qp),ig=lh;(Wp&&ig(new Wp(new ArrayBuffer(1)))!=Jp||Fh&&ig(new Fh)!=Kp||Yp&&ig(Yp.resolve())!=Gp||Xp&&ig(new Xp)!=Zp||qp&&ig(new qp)!=Qp)&&(ig=function(t){var e=lh(t),r="[object Object]"==e?t.constructor:void 0,n=r?Ah(r):"";if(n)switch(n){case tg:return Jp;case eg:return Kp;case rg:return Gp;case ng:return Zp;case og:return Qp}return e});var ag=ig,sg=Object.prototype.hasOwnProperty;var cg=eh.Uint8Array;function lg(t){var e=new t.constructor(t.byteLength);return new cg(e).set(new cg(t)),e}var ug=/\w*$/;var dg=rh?rh.prototype:void 0,fg=dg?dg.valueOf:void 0;function hg(t,e,r){var n,o,i,a=t.constructor;switch(e){case"[object ArrayBuffer]":return lg(t);case"[object Boolean]":case"[object Date]":return new a(+t);case"[object DataView]":return function(t,e){var r=e?lg(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(t,e){var r=e?lg(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t,r);case"[object Map]":case"[object Set]":return new a;case"[object Number]":case"[object String]":return new a(t);case"[object RegExp]":return(i=new(o=t).constructor(o.source,ug.exec(o))).lastIndex=o.lastIndex,i;case"[object Symbol]":return n=t,fg?Object(fg.call(n)):{}}}var pg=Object.create,gg=function(){function t(){}return function(e){if(!kh(e))return{};if(pg)return pg(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),mg=gg;var bg=gp&&gp.isMap,yg=bg?dp(bg):function(t){return fh(t)&&"[object Map]"==ag(t)};var vg=gp&&gp.isSet,wg=vg?dp(vg):function(t){return fh(t)&&"[object Set]"==ag(t)},xg="[object Arguments]",_g="[object Function]",kg="[object Object]",Eg={};function Sg(t,e,r,n,o,i){var a,s=1&e,c=2&e,l=4&e;if(r&&(a=o?r(t,n,o,i):r(t)),void 0!==a)return a;if(!kh(t))return t;var u=rp(t);if(u){if(a=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&sg.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!s)return Dp(t,a)}else{var d=ag(t),f=d==_g||"[object GeneratorFunction]"==d;if(ap(t))return function(t,e){if(e)return t.slice();var r=t.length,n=Mp?Mp(r):new t.constructor(r);return t.copy(n),n}(t,s);if(d==kg||d==xg||f&&!o){if(a=c||f?{}:function(t){return"function"!=typeof t.constructor||xp(t)?{}:mg(dh(t))}(t),!s)return c?function(t,e){return Gh(t,Vp(t),e)}(t,function(t,e){return t&&Gh(e,Ap(e),t)}(a,t)):function(t,e){return Gh(t,zp(t),e)}(t,function(t,e){return t&&Gh(e,Sp(e),t)}(a,t))}else{if(!Eg[d])return o?t:{};a=hg(t,d,s)}}i||(i=new Uh);var h=i.get(t);if(h)return h;i.set(t,a),wg(t)?t.forEach((function(n){a.add(Sg(n,e,r,n,t,i))})):yg(t)&&t.forEach((function(n,o){a.set(o,Sg(n,e,r,o,t,i))}));var p=u?void 0:(l?c?Up:$p:c?Ap:Sp)(t);return function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););}(p||t,(function(n,o){p&&(n=t[o=n]),Kh(a,o,Sg(n,e,r,o,t,i))})),a}Eg[xg]=Eg["[object Array]"]=Eg["[object ArrayBuffer]"]=Eg["[object DataView]"]=Eg["[object Boolean]"]=Eg["[object Date]"]=Eg["[object Float32Array]"]=Eg["[object Float64Array]"]=Eg["[object Int8Array]"]=Eg["[object Int16Array]"]=Eg["[object Int32Array]"]=Eg["[object Map]"]=Eg["[object Number]"]=Eg[kg]=Eg["[object RegExp]"]=Eg["[object Set]"]=Eg["[object String]"]=Eg["[object Symbol]"]=Eg["[object Uint8Array]"]=Eg["[object Uint8ClampedArray]"]=Eg["[object Uint16Array]"]=Eg["[object Uint32Array]"]=!0,Eg["[object Error]"]=Eg[_g]=Eg["[object WeakMap]"]=!1;function Og(t){return Sg(t,5)}var Tg=Array.isArray,Ag=Object.keys,Cg=Object.prototype.hasOwnProperty,jg="undefined"!=typeof Element;function Pg(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){var r,n,o,i=Tg(t),a=Tg(e);if(i&&a){if((n=t.length)!=e.length)return!1;for(r=n;0!=r--;)if(!Pg(t[r],e[r]))return!1;return!0}if(i!=a)return!1;var s=t instanceof Date,c=e instanceof Date;if(s!=c)return!1;if(s&&c)return t.getTime()==e.getTime();var l=t instanceof RegExp,u=e instanceof RegExp;if(l!=u)return!1;if(l&&u)return t.toString()==e.toString();var d=Ag(t);if((n=d.length)!==Ag(e).length)return!1;for(r=n;0!=r--;)if(!Cg.call(e,d[r]))return!1;if(jg&&t instanceof Element&&e instanceof Element)return t===e;for(r=n;0!=r--;)if(!("_owner"===(o=d[r])&&t.$$typeof||Pg(t[o],e[o])))return!1;return!0}return t!=t&&e!=e}var Mg=function(t,e){try{return Pg(t,e)}catch(t){if(t.message&&t.message.match(/stack|recursion/i)||-2146828260===t.number)return console.warn("Warning: react-fast-compare does not handle circular references.",t.name,t.message),!1;throw t}},Dg="production"===process.env.NODE_ENV;function Rg(t,e){if(!Dg){if(t)return;var r="Warning: "+e;"undefined"!=typeof console&&console.warn(r);try{throw Error(r)}catch(t){}}}function Ig(t){return Sg(t,4)}function Ng(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}function Fg(t){return"symbol"==typeof t||fh(t)&&"[object Symbol]"==lh(t)}function zg(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(zg.Cache||$h),r}zg.Cache=$h;var Lg,Bg,Vg,Hg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$g=/\\(\\)?/g,Ug=(Lg=function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Hg,(function(t,r,n,o){e.push(n?o.replace($g,"$1"):r||t)})),e},Bg=zg(Lg,(function(t){return 500===Vg.size&&Vg.clear(),t})),Vg=Bg.cache,Bg),Wg=Ug;function Yg(t){if("string"==typeof t||Fg(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}var Xg=rh?rh.prototype:void 0,qg=Xg?Xg.toString:void 0;function Kg(t){if("string"==typeof t)return t;if(rp(t))return Ng(t,Kg)+"";if(Fg(t))return qg?qg.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Gg(t){return rp(t)?Ng(t,Yg):Fg(t)?[t]:Dp(Wg(function(t){return null==t?"":Kg(t)}(t)))}var Zg={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Qg={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Jg={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},tm={};function em(t){return _a.isMemo(t)?Jg:tm[t.$$typeof]||Zg}tm[_a.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},tm[_a.Memo]=Jg;var rm=Object.defineProperty,nm=Object.getOwnPropertyNames,om=Object.getOwnPropertySymbols,im=Object.getOwnPropertyDescriptor,am=Object.getPrototypeOf,sm=Object.prototype;var cm=function t(e,r,n){if("string"!=typeof r){if(sm){var o=am(r);o&&o!==sm&&t(e,o,n)}var i=nm(r);om&&(i=i.concat(om(r)));for(var a=em(e),s=em(r),c=0;c<i.length;++c){var l=i[c];if(!(Qg[l]||n&&n[l]||s&&s[l]||a&&a[l])){var u=im(r,l);try{rm(e,l,u)}catch(t){}}}}return e};function lm(){return lm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},lm.apply(this,arguments)}function um(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function dm(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}function fm(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var hm=t.createContext(void 0);hm.displayName="FormikContext";var pm=hm.Provider,gm=hm.Consumer;function mm(){var e=t.useContext(hm);return e||("production"!==process.env.NODE_ENV?Rg(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):Rg(!1)),e}var bm=function(t){return Array.isArray(t)&&0===t.length},ym=function(t){return"function"==typeof t},vm=function(t){return null!==t&&"object"==typeof t},wm=function(t){return String(Math.floor(Number(t)))===t},xm=function(t){return"[object String]"===Object.prototype.toString.call(t)},_m=function(e){return 0===t.Children.count(e)},km=function(t){return vm(t)&&ym(t.then)};function Em(t,e,r,n){void 0===n&&(n=0);for(var o=Gg(e);t&&n<o.length;)t=t[o[n++]];return n===o.length||t?void 0===t?r:t:r}function Sm(t,e,r){for(var n=Ig(t),o=n,i=0,a=Gg(e);i<a.length-1;i++){var s=a[i],c=Em(t,a.slice(0,i+1));if(c&&(vm(c)||Array.isArray(c)))o=o[s]=Ig(c);else{var l=a[i+1];o=o[s]=wm(l)&&Number(l)>=0?[]:{}}}return(0===i?t:o)[a[i]]===r?t:(void 0===r?delete o[a[i]]:o[a[i]]=r,0===i&&void 0===r&&delete n[a[i]],n)}function Om(t,e,r,n){void 0===r&&(r=new WeakMap),void 0===n&&(n={});for(var o=0,i=Object.keys(t);o<i.length;o++){var a=i[o],s=t[a];vm(s)?r.get(s)||(r.set(s,!0),n[a]=Array.isArray(s)?[]:{},Om(s,e,r,n[a])):n[a]=e}return n}var Tm={},Am={};function Cm(e){var r=e.validateOnChange,n=void 0===r||r,o=e.validateOnBlur,i=void 0===o||o,a=e.validateOnMount,s=void 0!==a&&a,c=e.isInitialValid,l=e.enableReinitialize,u=void 0!==l&&l,d=e.onSubmit,f=dm(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=lm({validateOnChange:n,validateOnBlur:i,validateOnMount:s,onSubmit:d},f),p=t.useRef(h.initialValues),g=t.useRef(h.initialErrors||Tm),m=t.useRef(h.initialTouched||Am),b=t.useRef(h.initialStatus),y=t.useRef(!1),v=t.useRef({});"production"!==process.env.NODE_ENV&&t.useEffect((function(){void 0!==c&&("production"!==process.env.NODE_ENV?Rg(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):Rg(!1))}),[]),t.useEffect((function(){return y.current=!0,function(){y.current=!1}}),[]);var w=t.useState(0)[1],x=t.useRef({values:Og(h.initialValues),errors:Og(h.initialErrors)||Tm,touched:Og(h.initialTouched)||Am,status:Og(h.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),_=x.current,k=t.useCallback((function(t){var e=x.current;x.current=function(t,e){switch(e.type){case"SET_VALUES":return lm({},t,{values:e.payload});case"SET_TOUCHED":return lm({},t,{touched:e.payload});case"SET_ERRORS":return Mg(t.errors,e.payload)?t:lm({},t,{errors:e.payload});case"SET_STATUS":return lm({},t,{status:e.payload});case"SET_ISSUBMITTING":return lm({},t,{isSubmitting:e.payload});case"SET_ISVALIDATING":return lm({},t,{isValidating:e.payload});case"SET_FIELD_VALUE":return lm({},t,{values:Sm(t.values,e.payload.field,e.payload.value)});case"SET_FIELD_TOUCHED":return lm({},t,{touched:Sm(t.touched,e.payload.field,e.payload.value)});case"SET_FIELD_ERROR":return lm({},t,{errors:Sm(t.errors,e.payload.field,e.payload.value)});case"RESET_FORM":return lm({},t,e.payload);case"SET_FORMIK_STATE":return e.payload(t);case"SUBMIT_ATTEMPT":return lm({},t,{touched:Om(t.values,!0),isSubmitting:!0,submitCount:t.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return lm({},t,{isSubmitting:!1});default:return t}}(e,t),e!==x.current&&w((function(t){return t+1}))}),[]),E=t.useCallback((function(t,e){return new Promise((function(r,n){var o=h.validate(t,e);null==o?r(Tm):km(o)?o.then((function(t){r(t||Tm)}),(function(t){"production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",t),n(t)})):r(o)}))}),[h.validate]),S=t.useCallback((function(t,e){var r=h.validationSchema,n=ym(r)?r(e):r,o=e&&n.validateAt?n.validateAt(e,t):function(t,e,r,n){void 0===r&&(r=!1);var o=Mm(t);return e[r?"validateSync":"validate"](o,{abortEarly:!1,context:n||o})}(t,n);return new Promise((function(t,e){o.then((function(){t(Tm)}),(function(r){"ValidationError"===r.name?t(function(t){var e={};if(t.inner){if(0===t.inner.length)return Sm(e,t.path,t.message);var r=t.inner,n=Array.isArray(r),o=0;for(r=n?r:r[Symbol.iterator]();;){var i;if(n){if(o>=r.length)break;i=r[o++]}else{if((o=r.next()).done)break;i=o.value}var a=i;Em(e,a.path)||(e=Sm(e,a.path,a.message))}}return e}(r)):("production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",r),e(r))}))}))}),[h.validationSchema]),O=t.useCallback((function(t,e){return new Promise((function(r){return r(v.current[t].validate(e))}))}),[]),T=t.useCallback((function(t){var e=Object.keys(v.current).filter((function(t){return ym(v.current[t].validate)})),r=e.length>0?e.map((function(e){return O(e,Em(t,e))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(r).then((function(t){return t.reduce((function(t,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r||r&&(t=Sm(t,e[n],r)),t}),{})}))}),[O]),A=t.useCallback((function(t){return Promise.all([T(t),h.validationSchema?S(t):{},h.validate?E(t):{}]).then((function(t){var e=t[0],r=t[1],n=t[2];return Qf.all([e,r,n],{arrayMerge:Dm})}))}),[h.validate,h.validationSchema,T,E,S]),C=Im((function(t){return void 0===t&&(t=_.values),k({type:"SET_ISVALIDATING",payload:!0}),A(t).then((function(t){return y.current&&(k({type:"SET_ISVALIDATING",payload:!1}),k({type:"SET_ERRORS",payload:t})),t}))}));t.useEffect((function(){s&&!0===y.current&&Mg(p.current,h.initialValues)&&C(p.current)}),[s,C]);var j=t.useCallback((function(t){var e=t&&t.values?t.values:p.current,r=t&&t.errors?t.errors:g.current?g.current:h.initialErrors||{},n=t&&t.touched?t.touched:m.current?m.current:h.initialTouched||{},o=t&&t.status?t.status:b.current?b.current:h.initialStatus;p.current=e,g.current=r,m.current=n,b.current=o;var i=function(){k({type:"RESET_FORM",payload:{isSubmitting:!!t&&!!t.isSubmitting,errors:r,touched:n,status:o,values:e,isValidating:!!t&&!!t.isValidating,submitCount:t&&t.submitCount&&"number"==typeof t.submitCount?t.submitCount:0}})};if(h.onReset){var a=h.onReset(_.values,K);km(a)?a.then(i):i()}else i()}),[h.initialErrors,h.initialStatus,h.initialTouched,h.onReset]);t.useEffect((function(){!0!==y.current||Mg(p.current,h.initialValues)||u&&(p.current=h.initialValues,j(),s&&C(p.current))}),[u,h.initialValues,j,s,C]),t.useEffect((function(){u&&!0===y.current&&!Mg(g.current,h.initialErrors)&&(g.current=h.initialErrors||Tm,k({type:"SET_ERRORS",payload:h.initialErrors||Tm}))}),[u,h.initialErrors]),t.useEffect((function(){u&&!0===y.current&&!Mg(m.current,h.initialTouched)&&(m.current=h.initialTouched||Am,k({type:"SET_TOUCHED",payload:h.initialTouched||Am}))}),[u,h.initialTouched]),t.useEffect((function(){u&&!0===y.current&&!Mg(b.current,h.initialStatus)&&(b.current=h.initialStatus,k({type:"SET_STATUS",payload:h.initialStatus}))}),[u,h.initialStatus,h.initialTouched]);var P=Im((function(t){if(v.current[t]&&ym(v.current[t].validate)){var e=Em(_.values,t),r=v.current[t].validate(e);return km(r)?(k({type:"SET_ISVALIDATING",payload:!0}),r.then((function(t){return t})).then((function(e){k({type:"SET_FIELD_ERROR",payload:{field:t,value:e}}),k({type:"SET_ISVALIDATING",payload:!1})}))):(k({type:"SET_FIELD_ERROR",payload:{field:t,value:r}}),Promise.resolve(r))}return h.validationSchema?(k({type:"SET_ISVALIDATING",payload:!0}),S(_.values,t).then((function(t){return t})).then((function(e){k({type:"SET_FIELD_ERROR",payload:{field:t,value:Em(e,t)}}),k({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),M=t.useCallback((function(t,e){var r=e.validate;v.current[t]={validate:r}}),[]),D=t.useCallback((function(t){delete v.current[t]}),[]),R=Im((function(t,e){return k({type:"SET_TOUCHED",payload:t}),(void 0===e?i:e)?C(_.values):Promise.resolve()})),I=t.useCallback((function(t){k({type:"SET_ERRORS",payload:t})}),[]),N=Im((function(t,e){var r=ym(t)?t(_.values):t;return k({type:"SET_VALUES",payload:r}),(void 0===e?n:e)?C(r):Promise.resolve()})),F=t.useCallback((function(t,e){k({type:"SET_FIELD_ERROR",payload:{field:t,value:e}})}),[]),z=Im((function(t,e,r){return k({type:"SET_FIELD_VALUE",payload:{field:t,value:e}}),(void 0===r?n:r)?C(Sm(_.values,t,e)):Promise.resolve()})),L=t.useCallback((function(t,e){var r,n=e,o=t;if(!xm(t)){t.persist&&t.persist();var i=t.target?t.target:t.currentTarget,a=i.type,s=i.name,c=i.id,l=i.value,u=i.checked,d=i.outerHTML,f=i.options,h=i.multiple;(n=e||(s||c))||"production"===process.env.NODE_ENV||Pm({htmlContent:d,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),o=/number|range/.test(a)?(r=parseFloat(l),isNaN(r)?"":r):/checkbox/.test(a)?function(t,e,r){if("boolean"==typeof t)return Boolean(e);var n=[],o=!1,i=-1;if(Array.isArray(t))n=t,o=(i=t.indexOf(r))>=0;else if(!r||"true"==r||"false"==r)return Boolean(e);if(e&&r&&!o)return n.concat(r);if(!o)return n;return n.slice(0,i).concat(n.slice(i+1))}(Em(_.values,n),u,l):f&&h?function(t){return Array.from(t).filter((function(t){return t.selected})).map((function(t){return t.value}))}(f):l}n&&z(n,o)}),[z,_.values]),B=Im((function(t){if(xm(t))return function(e){return L(e,t)};L(t)})),V=Im((function(t,e,r){return void 0===e&&(e=!0),k({type:"SET_FIELD_TOUCHED",payload:{field:t,value:e}}),(void 0===r?i:r)?C(_.values):Promise.resolve()})),H=t.useCallback((function(t,e){t.persist&&t.persist();var r=t.target,n=r.name,o=r.id,i=r.outerHTML,a=e||(n||o);a||"production"===process.env.NODE_ENV||Pm({htmlContent:i,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),V(a,!0)}),[V]),$=Im((function(t){if(xm(t))return function(e){return H(e,t)};H(t)})),U=t.useCallback((function(t){ym(t)?k({type:"SET_FORMIK_STATE",payload:t}):k({type:"SET_FORMIK_STATE",payload:function(){return t}})}),[]),W=t.useCallback((function(t){k({type:"SET_STATUS",payload:t})}),[]),Y=t.useCallback((function(t){k({type:"SET_ISSUBMITTING",payload:t})}),[]),X=Im((function(){return k({type:"SUBMIT_ATTEMPT"}),C().then((function(t){var e=t instanceof Error;if(!e&&0===Object.keys(t).length){var r;try{if(void 0===(r=G()))return}catch(t){throw t}return Promise.resolve(r).then((function(t){return y.current&&k({type:"SUBMIT_SUCCESS"}),t})).catch((function(t){if(y.current)throw k({type:"SUBMIT_FAILURE"}),t}))}if(y.current&&(k({type:"SUBMIT_FAILURE"}),e))throw t}))})),q=Im((function(t){if(t&&t.preventDefault&&ym(t.preventDefault)&&t.preventDefault(),t&&t.stopPropagation&&ym(t.stopPropagation)&&t.stopPropagation(),"production"!==process.env.NODE_ENV&&"undefined"!=typeof document){var e=function(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}();null!==e&&e instanceof HTMLButtonElement&&(e.attributes&&e.attributes.getNamedItem("type")||("production"!==process.env.NODE_ENV?Rg(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):Rg(!1)))}X().catch((function(t){console.warn("Warning: An unhandled error was caught from submitForm()",t)}))})),K={resetForm:j,validateForm:C,validateField:P,setErrors:I,setFieldError:F,setFieldTouched:V,setFieldValue:z,setStatus:W,setSubmitting:Y,setTouched:R,setValues:N,setFormikState:U,submitForm:X},G=Im((function(){return d(_.values,K)})),Z=Im((function(t){t&&t.preventDefault&&ym(t.preventDefault)&&t.preventDefault(),t&&t.stopPropagation&&ym(t.stopPropagation)&&t.stopPropagation(),j()})),Q=t.useCallback((function(t){return{value:Em(_.values,t),error:Em(_.errors,t),touched:!!Em(_.touched,t),initialValue:Em(p.current,t),initialTouched:!!Em(m.current,t),initialError:Em(g.current,t)}}),[_.errors,_.touched,_.values]),J=t.useCallback((function(t){return{setValue:function(e,r){return z(t,e,r)},setTouched:function(e,r){return V(t,e,r)},setError:function(e){return F(t,e)}}}),[z,V,F]),tt=t.useCallback((function(t){var e=vm(t),r=e?t.name:t,n=Em(_.values,r),o={name:r,value:n,onChange:B,onBlur:$};if(e){var i=t.type,a=t.value,s=t.as,c=t.multiple;"checkbox"===i?void 0===a?o.checked=!!n:(o.checked=!(!Array.isArray(n)||!~n.indexOf(a)),o.value=a):"radio"===i?(o.checked=n===a,o.value=a):"select"===s&&c&&(o.value=o.value||[],o.multiple=!0)}return o}),[$,B,_.values]),et=t.useMemo((function(){return!Mg(p.current,_.values)}),[p.current,_.values]),rt=t.useMemo((function(){return void 0!==c?et?_.errors&&0===Object.keys(_.errors).length:!1!==c&&ym(c)?c(h):c:_.errors&&0===Object.keys(_.errors).length}),[c,et,_.errors,h]);return lm({},_,{initialValues:p.current,initialErrors:g.current,initialTouched:m.current,initialStatus:b.current,handleBlur:$,handleChange:B,handleReset:Z,handleSubmit:q,resetForm:j,setErrors:I,setFormikState:U,setFieldTouched:V,setFieldValue:z,setFieldError:F,setStatus:W,setSubmitting:Y,setTouched:R,setValues:N,submitForm:X,validateForm:C,validateField:P,isValid:rt,dirty:et,unregisterField:D,registerField:M,getFieldProps:tt,getFieldMeta:Q,getFieldHelpers:J,validateOnBlur:i,validateOnChange:n,validateOnMount:s})}function jm(e){var r=Cm(e),n=e.component,o=e.children,i=e.render,a=e.innerRef;return t.useImperativeHandle(a,(function(){return r})),"production"!==process.env.NODE_ENV&&t.useEffect((function(){e.render&&("production"!==process.env.NODE_ENV?Rg(!1,"<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>"):Rg(!1))}),[]),t.createElement(pm,{value:r},n?t.createElement(n,r):i?i(r):o?ym(o)?o(r):_m(o)?null:t.Children.only(o):null)}function Pm(t){var e=t.htmlContent,r=t.documentationAnchorLink,n=t.handlerName;console.warn("Warning: Formik called `"+n+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+e+"\n Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#"+r+"\n ")}function Mm(t){var e=Array.isArray(t)?[]:{};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=String(r);!0===Array.isArray(t[n])?e[n]=t[n].map((function(t){return!0===Array.isArray(t)||yh(t)?Mm(t):""!==t?t:void 0})):yh(t[n])?e[n]=Mm(t[n]):e[n]=""!==t[n]?t[n]:void 0}return e}function Dm(t,e,r){var n=t.slice();return e.forEach((function(e,o){if(void 0===n[o]){var i=!1!==r.clone&&r.isMergeableObject(e);n[o]=i?Qf(Array.isArray(e)?[]:{},e,r):e}else r.isMergeableObject(e)?n[o]=Qf(t[o],e,r):-1===t.indexOf(e)&&n.push(e)})),n}var Rm="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;function Im(e){var r=t.useRef(e);return Rm((function(){r.current=e})),t.useCallback((function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return r.current.apply(void 0,e)}),[])}function Nm(e){var r=mm(),n=r.getFieldProps,o=r.getFieldMeta,i=r.getFieldHelpers,a=r.registerField,s=r.unregisterField,c=vm(e)?e:{name:e},l=c.name,u=c.validate;t.useEffect((function(){return l&&a(l,{validate:u}),function(){l&&s(l)}}),[a,s,l,u]),"production"!==process.env.NODE_ENV&&(r||("production"!==process.env.NODE_ENV?Rg(!1,"useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component"):Rg(!1))),l||("production"!==process.env.NODE_ENV?Rg(!1,"Invalid field name. Either pass `useField` a string or an object containing a `name` key."):Rg(!1));var d=t.useMemo((function(){return i(l)}),[i,l]);return[n(c),o(l),d]}function Fm(e){var r=e.validate,n=e.name,o=e.render,i=e.children,a=e.as,s=e.component,c=e.className,l=dm(e,["validate","name","render","children","as","component","className"]),u=dm(mm(),["validate","validationSchema"]);"production"!==process.env.NODE_ENV&&t.useEffect((function(){o&&("production"!==process.env.NODE_ENV?Rg(!1,'<Field render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Field name="'+n+'" render={({field, form}) => ...} /> with <Field name="'+n+'">{({field, form, meta}) => ...}</Field>'):Rg(!1)),a&&i&&ym(i)&&("production"!==process.env.NODE_ENV?Rg(!1,"You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored."):Rg(!1)),s&&i&&ym(i)&&("production"!==process.env.NODE_ENV?Rg(!1,"You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored."):Rg(!1)),o&&i&&!_m(i)&&("production"!==process.env.NODE_ENV?Rg(!1,"You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored"):Rg(!1))}),[]);var d=u.registerField,f=u.unregisterField;t.useEffect((function(){return d(n,{validate:r}),function(){f(n)}}),[d,f,n,r]);var h=u.getFieldProps(lm({name:n},l)),p=u.getFieldMeta(n),g={field:h,form:u};if(o)return o(lm({},g,{meta:p}));if(ym(i))return i(lm({},g,{meta:p}));if(s){if("string"==typeof s){var m=l.innerRef,b=dm(l,["innerRef"]);return t.createElement(s,lm({ref:m},h,b,{className:c}),i)}return t.createElement(s,lm({field:h,form:u},l,{className:c}),i)}var y=a||"input";if("string"==typeof y){var v=l.innerRef,w=dm(l,["innerRef"]);return t.createElement(y,lm({ref:v},h,w,{className:c}),i)}return t.createElement(y,lm({},h,l,{className:c}),i)}var zm=t.forwardRef((function(e,r){var n=e.action,o=dm(e,["action"]),i=null!=n?n:"#",a=mm(),s=a.handleReset,c=a.handleSubmit;return t.createElement("form",lm({onSubmit:c,ref:r,onReset:s,action:i},o))}));function Lm(e){var r=function(r){return t.createElement(gm,null,(function(n){return n||("production"!==process.env.NODE_ENV?Rg(!1,"Formik context is undefined, please verify you are rendering <Form>, <Field>, <FastField>, <FieldArray>, or your custom context-using component as a child of a <Formik> component. Component name: "+e.name):Rg(!1)),t.createElement(e,lm({},r,{formik:n}))}))},n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return r.WrappedComponent=e,r.displayName="FormikConnect("+n+")",cm(r,e)}zm.displayName="Form";var Bm=function(t,e,r){var n=Vm(t);return n.splice(e,0,r),n},Vm=function(t){if(t){if(Array.isArray(t))return[].concat(t);var e=Object.keys(t).map((function(t){return parseInt(t)})).reduce((function(t,e){return e>t?e:t}),0);return Array.from(lm({},t,{length:e+1}))}return[]},Hm=function(t,e){var r="function"==typeof t?t:e;return function(t){if(Array.isArray(t)||vm(t)){var e=Vm(t);return r(e)}return t}},$m=function(e){function r(t){var r;return(r=e.call(this,t)||this).updateArrayField=function(t,e,n){var o=r.props,i=o.name;(0,o.formik.setFormikState)((function(r){var o=Hm(n,t),a=Hm(e,t),s=Sm(r.values,i,t(Em(r.values,i))),c=n?o(Em(r.errors,i)):void 0,l=e?a(Em(r.touched,i)):void 0;return bm(c)&&(c=void 0),bm(l)&&(l=void 0),lm({},r,{values:s,errors:n?Sm(r.errors,i,c):r.errors,touched:e?Sm(r.touched,i,l):r.touched})}))},r.push=function(t){return r.updateArrayField((function(e){return[].concat(Vm(e),[Og(t)])}),!1,!1)},r.handlePush=function(t){return function(){return r.push(t)}},r.swap=function(t,e){return r.updateArrayField((function(r){return function(t,e,r){var n=Vm(t),o=n[e];return n[e]=n[r],n[r]=o,n}(r,t,e)}),!0,!0)},r.handleSwap=function(t,e){return function(){return r.swap(t,e)}},r.move=function(t,e){return r.updateArrayField((function(r){return function(t,e,r){var n=Vm(t),o=n[e];return n.splice(e,1),n.splice(r,0,o),n}(r,t,e)}),!0,!0)},r.handleMove=function(t,e){return function(){return r.move(t,e)}},r.insert=function(t,e){return r.updateArrayField((function(r){return Bm(r,t,e)}),(function(e){return Bm(e,t,null)}),(function(e){return Bm(e,t,null)}))},r.handleInsert=function(t,e){return function(){return r.insert(t,e)}},r.replace=function(t,e){return r.updateArrayField((function(r){return function(t,e,r){var n=Vm(t);return n[e]=r,n}(r,t,e)}),!1,!1)},r.handleReplace=function(t,e){return function(){return r.replace(t,e)}},r.unshift=function(t){var e=-1;return r.updateArrayField((function(r){var n=r?[t].concat(r):[t];return e=n.length,n}),(function(t){return t?[null].concat(t):[null]}),(function(t){return t?[null].concat(t):[null]})),e},r.handleUnshift=function(t){return function(){return r.unshift(t)}},r.handleRemove=function(t){return function(){return r.remove(t)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(fm(r)),r.pop=r.pop.bind(fm(r)),r}um(r,e);var n=r.prototype;return n.componentDidUpdate=function(t){this.props.validateOnChange&&this.props.formik.validateOnChange&&!Mg(Em(t.formik.values,t.name),Em(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(t){var e;return this.updateArrayField((function(r){var n=r?Vm(r):[];return e||(e=n[t]),ym(n.splice)&&n.splice(t,1),ym(n.every)&&n.every((function(t){return void 0===t}))?[]:n}),!0,!0),e},n.pop=function(){var t;return this.updateArrayField((function(e){var r=e.slice();return t||(t=r&&r.pop&&r.pop()),r}),!0,!0),t},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},r=this.props,n=r.component,o=r.render,i=r.children,a=r.name,s=lm({},e,{form:dm(r.formik,["validate","validationSchema"]),name:a});return n?t.createElement(n,s):o?o(s):i?"function"==typeof i?i(s):_m(i)?null:t.Children.only(i):null},r}(t.Component);$m.defaultProps={validateOnChange:!0};var Um=Lm(function(e){function r(){return e.apply(this,arguments)||this}um(r,e);var n=r.prototype;return n.shouldComponentUpdate=function(t){return Em(this.props.formik.errors,this.props.name)!==Em(t.formik.errors,this.props.name)||Em(this.props.formik.touched,this.props.name)!==Em(t.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(t).length},n.render=function(){var e=this.props,r=e.component,n=e.formik,o=e.render,i=e.children,a=e.name,s=dm(e,["component","formik","render","children","name"]),c=Em(n.touched,a),l=Em(n.errors,a);return c&&l?o?ym(o)?o(l):null:i?ym(i)?i(l):null:r?t.createElement(r,s,l):l:null},r}(t.Component));function Wm(t){var e,r,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=Wm(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Ym(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=Wm(t))&&(n&&(n+=" "),n+=e);return n}var Xm=Object.defineProperty,qm=(t,e,r)=>(((t,e,r)=>{e in t?Xm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r})(t,"symbol"!=typeof e?e+"":e,r),r);let Km=new class{constructor(){qm(this,"current",this.detect()),qm(this,"handoffState","pending"),qm(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}};function Gm(){let t=[],e={addEventListener:(t,r,n,o)=>(t.addEventListener(r,n,o),e.add((()=>t.removeEventListener(r,n,o)))),requestAnimationFrame(...t){let r=requestAnimationFrame(...t);return e.add((()=>cancelAnimationFrame(r)))},nextFrame:(...t)=>e.requestAnimationFrame((()=>e.requestAnimationFrame(...t))),setTimeout(...t){let r=setTimeout(...t);return e.add((()=>clearTimeout(r)))},microTask(...t){let r={current:!0};return function(t){"function"==typeof queueMicrotask?queueMicrotask(t):Promise.resolve().then(t).catch((t=>setTimeout((()=>{throw t}))))}((()=>{r.current&&t[0]()})),e.add((()=>{r.current=!1}))},style(t,e,r){let n=t.style.getPropertyValue(e);return Object.assign(t.style,{[e]:r}),this.add((()=>{Object.assign(t.style,{[e]:n})}))},group(t){let e=Gm();return t(e),this.add((()=>e.dispose()))},add:e=>(t.includes(e)||t.push(e),()=>{let r=t.indexOf(e);if(r>=0)for(let e of t.splice(r,1))e()}),dispose(){for(let e of t.splice(0))e()}};return e}function Zm(){let[e]=t.useState(Gm);return t.useEffect((()=>()=>e.dispose()),[e]),e}let Qm=(e,r)=>{Km.isServer?t.useEffect(e,r):t.useLayoutEffect(e,r)};function Jm(e){let r=t.useRef(e);return Qm((()=>{r.current=e}),[e]),r}let tb=function(t){let e=Jm(t);return n.default.useCallback(((...t)=>e.current(...t)),[e])};function eb(...t){return Array.from(new Set(t.flatMap((t=>"string"==typeof t?t.split(" "):[])))).filter(Boolean).join(" ")}function rb(t,e,...r){if(t in e){let n=e[t];return"function"==typeof n?n(...r):n}let n=new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map((t=>`"${t}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,rb),n}var nb,ob=((nb=ob||{})[nb.None=0]="None",nb[nb.RenderStrategy=1]="RenderStrategy",nb[nb.Static=2]="Static",nb),ib=(t=>(t[t.Unmount=0]="Unmount",t[t.Hidden=1]="Hidden",t))(ib||{});function ab(){let e=function(){let e=t.useRef([]),r=t.useCallback((t=>{for(let r of e.current)null!=r&&("function"==typeof r?r(t):r.current=t)}),[]);return(...t)=>{if(!t.every((t=>null==t)))return e.current=t,r}}();return t.useCallback((t=>function({ourProps:t,theirProps:e,slot:r,defaultTag:n,features:o,visible:i=!0,name:a,mergeRefs:s}){s=null!=s?s:cb;let c=lb(e,t);if(i)return sb(c,r,n,a,s);let l=null!=o?o:0;if(2&l){let{static:t=!1,...e}=c;if(t)return sb(e,r,n,a,s)}if(1&l){let{unmount:t=!0,...e}=c;return rb(t?0:1,{0:()=>null,1:()=>sb({...e,hidden:!0,style:{display:"none"}},r,n,a,s)})}return sb(c,r,n,a,s)}({mergeRefs:e,...t})),[e])}function sb(e,r={},n,o,i){let{as:a=n,children:s,refName:c="ref",...l}=fb(e,["unmount","static"]),u=void 0!==e.ref?{[c]:e.ref}:{},d="function"==typeof s?s(r):s;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(r)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let f={};if(r){let t=!1,e=[];for(let[n,o]of Object.entries(r))"boolean"==typeof o&&(t=!0),!0===o&&e.push(n.replace(/([A-Z])/g,(t=>`-${t.toLowerCase()}`)));if(t){f["data-headlessui-state"]=e.join(" ");for(let t of e)f[`data-${t}`]=""}}if(a===t.Fragment&&(Object.keys(db(l)).length>0||Object.keys(db(f)).length>0)){if(t.isValidElement(d)&&!(Array.isArray(d)&&d.length>1)){let e=d.props,r=null==e?void 0:e.className,n="function"==typeof r?(...t)=>eb(r(...t),l.className):eb(r,l.className),o=n?{className:n}:{},a=lb(d.props,db(fb(l,["ref"])));for(let t in f)t in a&&delete f[t];return t.cloneElement(d,Object.assign({},a,f,u,{ref:i(hb(d),u.ref)},o))}if(Object.keys(db(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(db(l)).concat(Object.keys(db(f))).map((t=>` - ${t}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((t=>` - ${t}`)).join("\n")].join("\n"))}return t.createElement(a,Object.assign({},fb(l,["ref"]),a!==t.Fragment&&u,a!==t.Fragment&&f),d)}function cb(...t){return t.every((t=>null==t))?void 0:e=>{for(let r of t)null!=r&&("function"==typeof r?r(e):r.current=e)}}function lb(...t){if(0===t.length)return{};if(1===t.length)return t[0];let e={},r={};for(let n of t)for(let t in n)t.startsWith("on")&&"function"==typeof n[t]?(null!=r[t]||(r[t]=[]),r[t].push(n[t])):e[t]=n[t];if(e.disabled||e["aria-disabled"])for(let t in r)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(t)&&(r[t]=[t=>{var e;return null==(e=null==t?void 0:t.preventDefault)?void 0:e.call(t)}]);for(let t in r)Object.assign(e,{[t](e,...n){let o=r[t];for(let t of o){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;t(e,...n)}}});return e}function ub(e){var r;return Object.assign(t.forwardRef(e),{displayName:null!=(r=e.displayName)?r:e.name})}function db(t){let e=Object.assign({},t);for(let t in e)void 0===e[t]&&delete e[t];return e}function fb(t,e=[]){let r=Object.assign({},t);for(let t of e)t in r&&delete r[t];return r}function hb(t){return n.default.version.split(".")[0]>="19"?t.props.ref:t.ref}let pb=Symbol();function gb(...e){let r=t.useRef(e);t.useEffect((()=>{r.current=e}),[e]);let n=tb((t=>{for(let e of r.current)null!=e&&("function"==typeof e?e(t):e.current=t)}));return e.every((t=>null==t||(null==t?void 0:t[pb])))?void 0:n}var mb,bb;"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(mb=null==process?void 0:process.env)?void 0:mb.NODE_ENV)&&void 0===(null==(bb=null==Element?void 0:Element.prototype)?void 0:bb.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join("\n")),[]});var yb=(t=>(t[t.None=0]="None",t[t.Closed=1]="Closed",t[t.Enter=2]="Enter",t[t.Leave=4]="Leave",t))(yb||{});function vb(t){let e={};for(let r in t)!0===t[r]&&(e[`data-${r}`]="");return e}function wb(e,r,n,o){let[i,a]=t.useState(n),{hasFlag:s,addFlag:c,removeFlag:l}=function(e=0){let[r,n]=t.useState(e),o=t.useCallback((t=>n(t)),[r]),i=t.useCallback((t=>n((e=>e|t))),[r]),a=t.useCallback((t=>(r&t)===t),[r]),s=t.useCallback((t=>n((e=>e&~t))),[n]),c=t.useCallback((t=>n((e=>e^t))),[n]);return{flags:r,setFlag:o,addFlag:i,hasFlag:a,removeFlag:s,toggleFlag:c}}(e&&i?3:0),u=t.useRef(!1),d=t.useRef(!1),f=Zm();return Qm((()=>{var t;if(e)return n&&a(!0),r?(null==(t=null==o?void 0:o.start)||t.call(o,n),function(t,{prepare:e,run:r,done:n,inFlight:o}){let i=Gm();return function(t,{inFlight:e,prepare:r}){if(null!=e&&e.current)return void r();let n=t.style.transition;t.style.transition="none",r(),t.offsetHeight,t.style.transition=n}(t,{prepare:e,inFlight:o}),i.nextFrame((()=>{r(),i.requestAnimationFrame((()=>{i.add(function(t,e){var r,n;let o=Gm();if(!t)return o.dispose;let i=!1;o.add((()=>{i=!0}));let a=null!=(n=null==(r=t.getAnimations)?void 0:r.call(t).filter((t=>t instanceof CSSTransition)))?n:[];return 0===a.length?(e(),o.dispose):(Promise.allSettled(a.map((t=>t.finished))).then((()=>{i||e()})),o.dispose)}(t,n))}))})),i.dispose}(r,{inFlight:u,prepare(){d.current?d.current=!1:d.current=u.current,u.current=!0,!d.current&&(n?(c(3),l(4)):(c(4),l(2)))},run(){d.current?n?(l(3),c(4)):(l(4),c(3)):n?l(1):c(1)},done(){var t;d.current&&"function"==typeof r.getAnimations&&r.getAnimations().length>0||(u.current=!1,l(7),n||a(!1),null==(t=null==o?void 0:o.end)||t.call(o,n))}})):void(n&&c(3))}),[e,n,r,f]),e?[i,{closed:s(1),enter:s(2),leave:s(4),transition:s(2)||s(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}let xb=t.createContext(null);xb.displayName="OpenClosedContext";var _b=(t=>(t[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t))(_b||{});function kb(){return t.useContext(xb)}function Eb({value:t,children:e}){return n.default.createElement(xb.Provider,{value:t},e)}function Sb(){let t=function(){let t="undefined"==typeof document;return"useSyncExternalStore"in o&&o.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!t))}(),[e,r]=o.useState(Km.isHandoffComplete);return e&&!1===Km.isHandoffComplete&&r(!1),o.useEffect((()=>{!0!==e&&r(!0)}),[e]),o.useEffect((()=>Km.handoff()),[]),!t&&e}function Ob(e){var r;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||(null!=(r=e.as)?r:Mb)!==t.Fragment||1===n.default.Children.count(e.children)}let Tb=t.createContext(null);Tb.displayName="TransitionContext";var Ab=(t=>(t.Visible="visible",t.Hidden="hidden",t))(Ab||{});let Cb=t.createContext(null);function jb(t){return"children"in t?jb(t.children):t.current.filter((({el:t})=>null!==t.current)).filter((({state:t})=>"visible"===t)).length>0}function Pb(e,r){let n=Jm(e),o=t.useRef([]),i=function(){let e=t.useRef(!1);return Qm((()=>(e.current=!0,()=>{e.current=!1})),[]),e}(),a=Zm(),s=tb(((t,e=ib.Hidden)=>{let r=o.current.findIndex((({el:e})=>e===t));-1!==r&&(rb(e,{[ib.Unmount](){o.current.splice(r,1)},[ib.Hidden](){o.current[r].state="hidden"}}),a.microTask((()=>{var t;!jb(o)&&i.current&&(null==(t=n.current)||t.call(n))})))})),c=tb((t=>{let e=o.current.find((({el:e})=>e===t));return e?"visible"!==e.state&&(e.state="visible"):o.current.push({el:t,state:"visible"}),()=>s(t,ib.Unmount)})),l=t.useRef([]),u=t.useRef(Promise.resolve()),d=t.useRef({enter:[],leave:[]}),f=tb(((t,e,n)=>{l.current.splice(0),r&&(r.chains.current[e]=r.chains.current[e].filter((([e])=>e!==t))),null==r||r.chains.current[e].push([t,new Promise((t=>{l.current.push(t)}))]),null==r||r.chains.current[e].push([t,new Promise((t=>{Promise.all(d.current[e].map((([t,e])=>e))).then((()=>t()))}))]),"enter"===e?u.current=u.current.then((()=>null==r?void 0:r.wait.current)).then((()=>n(e))):n(e)})),h=tb(((t,e,r)=>{Promise.all(d.current[e].splice(0).map((([t,e])=>e))).then((()=>{var t;null==(t=l.current.shift())||t()})).then((()=>r(e)))}));return t.useMemo((()=>({children:o,register:c,unregister:s,onStart:f,onStop:h,wait:u,chains:d})),[c,s,o,f,h,d,u])}Cb.displayName="NestingContext";let Mb=t.Fragment,Db=ob.RenderStrategy;let Rb=ub((function(e,r){let{show:o,appear:i=!1,unmount:a=!0,...s}=e,c=t.useRef(null),l=gb(...Ob(e)?[c,r]:null===r?[]:[r]);Sb();let u=kb();if(void 0===o&&null!==u&&(o=(u&_b.Open)===_b.Open),void 0===o)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,f]=t.useState(o?"visible":"hidden"),h=Pb((()=>{o||f("hidden")})),[p,g]=t.useState(!0),m=t.useRef([o]);Qm((()=>{!1!==p&&m.current[m.current.length-1]!==o&&(m.current.push(o),g(!1))}),[m,o]);let b=t.useMemo((()=>({show:o,appear:i,initial:p})),[o,i,p]);Qm((()=>{o?f("visible"):!jb(h)&&null!==c.current&&f("hidden")}),[o,h]);let y={unmount:a},v=tb((()=>{var t;p&&g(!1),null==(t=e.beforeEnter)||t.call(e)})),w=tb((()=>{var t;p&&g(!1),null==(t=e.beforeLeave)||t.call(e)})),x=ab();return n.default.createElement(Cb.Provider,{value:h},n.default.createElement(Tb.Provider,{value:b},x({ourProps:{...y,as:t.Fragment,children:n.default.createElement(Ib,{ref:l,...y,...s,beforeEnter:v,beforeLeave:w})},theirProps:{},defaultTag:t.Fragment,features:Db,visible:"visible"===d,name:"Transition"})))})),Ib=ub((function(e,r){var o,i;let{transition:a=!0,beforeEnter:s,afterEnter:c,beforeLeave:l,afterLeave:u,enter:d,enterFrom:f,enterTo:h,entered:p,leave:g,leaveFrom:m,leaveTo:b,...y}=e,[v,w]=t.useState(null),x=t.useRef(null),_=Ob(e),k=gb(..._?[x,r,w]:null===r?[]:[r]),E=null==(o=y.unmount)||o?ib.Unmount:ib.Hidden,{show:S,appear:O,initial:T}=function(){let e=t.useContext(Tb);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[A,C]=t.useState(S?"visible":"hidden"),j=function(){let e=t.useContext(Cb);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:P,unregister:M}=j;Qm((()=>P(x)),[P,x]),Qm((()=>{if(E===ib.Hidden&&x.current)return S&&"visible"!==A?void C("visible"):rb(A,{hidden:()=>M(x),visible:()=>P(x)})}),[A,x,P,M,S,E]);let D=Sb();Qm((()=>{if(_&&D&&"visible"===A&&null===x.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[x,A,D,_]);let R=T&&!O,I=O&&S&&T,N=t.useRef(!1),F=Pb((()=>{N.current||(C("hidden"),M(x))}),j),z=tb((t=>{N.current=!0;let e=t?"enter":"leave";F.onStart(x,e,(t=>{"enter"===t?null==s||s():"leave"===t&&(null==l||l())}))})),L=tb((t=>{let e=t?"enter":"leave";N.current=!1,F.onStop(x,e,(t=>{"enter"===t?null==c||c():"leave"===t&&(null==u||u())})),"leave"===e&&!jb(F)&&(C("hidden"),M(x))}));t.useEffect((()=>{_&&a||(z(S),L(S))}),[S,_,a]);let B=!(!a||!_||!D||R),[,V]=wb(B,v,S,{start:z,end:L}),H=db({ref:k,className:(null==(i=eb(y.className,I&&d,I&&f,V.enter&&d,V.enter&&V.closed&&f,V.enter&&!V.closed&&h,V.leave&&g,V.leave&&!V.closed&&m,V.leave&&V.closed&&b,!V.transition&&S&&p))?void 0:i.trim())||void 0,...vb(V)}),$=0;"visible"===A&&($|=_b.Open),"hidden"===A&&($|=_b.Closed),V.enter&&($|=_b.Opening),V.leave&&($|=_b.Closing);let U=ab();return n.default.createElement(Cb.Provider,{value:F},n.default.createElement(Eb,{value:$},U({ourProps:H,theirProps:y,defaultTag:Mb,features:Db,visible:"visible"===A,name:"Transition.Child"})))})),Nb=ub((function(e,r){let o=null!==t.useContext(Tb),i=null!==kb();return n.default.createElement(n.default.Fragment,null,!o&&i?n.default.createElement(Rb,{ref:r,...e}):n.default.createElement(Ib,{ref:r,...e}))})),Fb=Object.assign(Rb,{Child:Nb,Root:Rb});var zb={TransitionDropdown:function(e){var r=e.visibility,o=e.children;return n.default.createElement(Fb,{as:t.Fragment,show:r,enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-50 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0"},o)},TransitionFadeIn:function(e){var r=e.visibility,o=e.children;return n.default.createElement(Fb,{as:t.Fragment,show:r,enter:"transition-all ease-in-out duration-700 dalay-[0ms]",enterFrom:"opacity-0 translate-y-6",enterTo:"opacity-100 translate-y-0",leave:"transition-all ease-in-out duration-300",leaveFrom:"opacity-100",leaveTo:"opacity-0"},o)}},Lb={circle:"rounded-full",square:"rounded-none",roundedSquare:"rounded-md",softRoundedSquare:"rounded-lg",pill:"rounded-2xl"},Bb={xs:"px-2 py-1 text-xs",sm:"px-3 py-2 text-sm",md:"px-4 py-2 text-base",lg:"px-5 py-3 text-lg",xl:"px-6 py-4 text-xl"};function Vb(t){var e,r=t.text,o=t.variant,i=void 0===o?"default":o,a=t.shape,s=void 0===a?"roundedSquare":a,l=t.size,d=void 0===l?"md":l,f=t.styles;return console.log(r),n.default.createElement(zb.TransitionDropdown,{visibility:!!r},n.default.createElement("div",{className:c((e={"font-poppins font-light text-sm":!0},e["".concat(u[i])]=i,e["".concat(Lb[s])]=s,e["".concat(Bb[d])]=d,e["".concat(f)]=f,e))},r))}function Hb(t){var e=t.children,r=t.isLoading,o=t.isSuccess,i=void 0===o||o,a=t.isError,s=t.error;return n.default.createElement("div",null,r&&n.default.createElement("div",{className:"flex w-full py-10 items-center justify-center"},n.default.createElement(Yf,{className:"animate-spin"})),a&&n.default.createElement("div",{className:"p-5"},n.default.createElement(Vb,{text:s,variant:"danger"})),i&&n.default.createElement("div",null,e))}var $b={square:"rounded-none",circle:"rounded-full",roundedSquare:"rounded-md",softRoundedSquare:"rounded-lg",pill:"rounded-full px-4"},Ub={xs:"px-2 py-1 text-xs",sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-base",lg:"px-5 py-3 text-lg",xl:"px-6 py-4 text-xl"},Wb=function(t){var e,r=t.type,o=void 0===r?"button":r,i=t.icon,a=t.text,s=t.children,u=t.loading,d=t.disabled,h=t.ghost,p=t.block,g=t.variant,m=void 0===g?"default":g,b=t.shape,y=void 0===b?"square":b,v=t.size,w=void 0===v?"md":v,x=t.styles,_=t.onClick;return n.default.createElement("button",{type:o,onClick:_,disabled:d||u,className:c((e={"flex flex-row items-center justify-center gap-2":!0},e["".concat(l[m])]=!h&&m,e["".concat(f[m])]=h&&m,e["".concat($b[y])]=y,e["".concat(Ub[w])]=w,e["w-full"]=p,e["brightness-75 grayscale text-gray-900 cursor-not-allowed"]=u||d,e["hover:cursor-pointer hover:brightness-110"]=!u&&!d,e["transition-all ease-in-out"]=!0,e["".concat(x)]=x,e))},u&&n.default.createElement(Yf,{className:"animate-spin"}),i&&n.default.createElement("div",null,i),a&&n.default.createElement("div",null,a),s&&s)};function Yb(t){var e=t.rowData,r=t.headers;return n.default.createElement("tr",{className:"odd:theme-bg-sm even:theme-bg-md"},Object.keys(r).map((function(t){return n.default.createElement("td",{key:t,className:"px-4 py-3 border-b theme-border-md theme-text-sm text-left"},e[t])})))}function Xb(e){var r=e.title,o=e.headers,i=e.data,a=e.enableSelect,s=void 0===a||a,l=e.maxRowCount,u=void 0===l?10:l,d=t.useState(0),f=d[0],h=d[1],p=t.useState(null),g=p[0],m=p[1],b=t.useState(""),y=b[0],v=b[1],w=function(t){t>=0&&t<k&&h(t)},x=i.filter((function(t){return Object.values(t).some((function(t){return String(t).toLowerCase().includes(y.toLowerCase())}))})),_=t.useMemo((function(){return null!==g?Gi([],x,!0).sort((function(t,e){return t[g.key]<e[g.key]?"ascending"===g.direction?-1:1:t[g.key]>e[g.key]?"ascending"===g.direction?1:-1:0})):x}),[x,g]),k=Math.ceil(_.length/u),E=_.slice(f*u,(f+1)*u);return n.default.createElement("div",{className:c({"py-3 overflow-x-auto":!0,"select-none":!s})},n.default.createElement("div",{className:"mb-4 w-full flex flex-row-reverse items-center justify-between"},n.default.createElement("input",{type:"text",placeholder:"Search...",value:y,onChange:function(t){v(t.target.value),h(0)},className:"px-4 py-2 border dark:bg-primary-300/10 border-dark-300/30 dark:border-primary-400 rounded-md w-[300px] focus:border-secondary-500 focus:outline-none theme-text-md"}),r&&n.default.createElement("div",{className:"font-bold text-xl theme-text-md border-l-2 border-l-dark-300 pl-3 py-1"},r)),n.default.createElement("table",{className:"min-w-full border theme-border-md"},n.default.createElement("thead",{className:"theme-gradient-to-r-xs theme-bg-md theme-text-md"},n.default.createElement("tr",null,Object.entries(o).map((function(t){var e=t[0],r=t[1];return n.default.createElement("th",{key:r,onClick:function(){return function(t){var e="ascending";g&&g.key===t&&"ascending"===g.direction&&(e="descending"),m({key:t,direction:e})}(e)},className:c({"px-4 py-3 border-b theme-border-md text-left font-bold hover:cursor-pointer":!0,"theme-bg-sm":(null==g?void 0:g.key)===e})},r,(null==g?void 0:g.key)===e?"ascending"===g.direction?" ▲":" ▼":"")})))),n.default.createElement("tbody",null,E.map((function(t,e){return n.default.createElement(Yb,{key:e,headers:o,rowData:t})})))),n.default.createElement("div",{className:"flex justify-between items-center mt-4"},n.default.createElement(Wb,{type:"button",text:"<",shape:"circle",size:"sm",styles:"theme-bg-md",disabled:0===f,onClick:function(){return w(f-1)}}),n.default.createElement("span",{className:"text-sm theme-text-sm"},"Page ",f+1," of ",k),n.default.createElement(Wb,{type:"button",text:">",shape:"circle",size:"sm",styles:"theme-bg-md",disabled:f===k-1,onClick:function(){return w(f+1)}})))}function qb(t){var e,r=t.name,o=t.visibility,i=t.variant,a=void 0===i?"default":i,s=t.styles;return n.default.createElement(zb.TransitionDropdown,{visibility:o},n.default.createElement("div",{className:c((e={"font-medium text-sm py-1":!0},e["".concat(d[a])]=a,e["transition-all ease-in-out"]=!0,e["".concat(s)]=s,e))},n.default.createElement(Um,{name:r})))}function Kb(t){return jf({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"}}]})(t)}function Gb(t){return jf({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"}}]})(t)}function Zb(t){return jf({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"}}]})(t)}function Qb(t){return jf({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M283.211 512c78.962 0 151.079-35.925 198.857-94.792 7.068-8.708-.639-21.43-11.562-19.35-124.203 23.654-238.262-71.576-238.262-196.954 0-72.222 38.662-138.635 101.498-174.394 9.686-5.512 7.25-20.197-3.756-22.23A258.156 258.156 0 0 0 283.211 0c-141.309 0-256 114.511-256 256 0 141.309 114.511 256 256 256z"}}]})(t)}function Jb(t){return jf({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 160c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96zm246.4 80.5l-94.7-47.3 33.5-100.4c4.5-13.6-8.4-26.5-21.9-21.9l-100.4 33.5-47.4-94.8c-6.4-12.8-24.6-12.8-31 0l-47.3 94.7L92.7 70.8c-13.6-4.5-26.5 8.4-21.9 21.9l33.5 100.4-94.7 47.4c-12.8 6.4-12.8 24.6 0 31l94.7 47.3-33.5 100.5c-4.5 13.6 8.4 26.5 21.9 21.9l100.4-33.5 47.3 94.7c6.4 12.8 24.6 12.8 31 0l47.3-94.7 100.4 33.5c13.6 4.5 26.5-8.4 21.9-21.9l-33.5-100.4 94.7-47.3c13-6.5 13-24.7.2-31.1zm-155.9 106c-49.9 49.9-131.1 49.9-181 0-49.9-49.9-49.9-131.1 0-181 49.9-49.9 131.1-49.9 181 0 49.9 49.9 49.9 131.1 0 181z"}}]})(t)}var ty=function(e){var r=e.onClick,o=t.useState(!1),i=o[0],a=o[1];return n.default.createElement("div",{className:"text-dark-200 absolute text-2xl right-3 top-[16px] cursor-pointer",onClick:function(){return r(t=!i),void a(t);var t}},i?n.default.createElement(Gb,null):n.default.createElement(Zb,null))};function ey(t){var e=t.imageUrl,r=t.secure,o=void 0===r||r,i=t.alt,a=void 0===i?"image":i;return n.default.createElement("div",{className:"h-[200px] w-[300px]"},n.default.createElement("div",{className:"w-full h-full overflow-hidden bg-gray-900 flex items-center justify-center"},n.default.createElement(ff,{cloudName:process.env.REACT_APP_CLOUDINARY_CLOUD_NAME||"",publicId:e||"public/placeholders/placeholder-dark_uwuxct",secure:o,alt:a,className:"w-full h-full object-cover"})))}function ry(t){return jf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M5 20h14v-2H5v2zm0-10h4v6h6v-6h4l-7-7-7 7z"}}]})(t)}function ny(t){return jf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"}}]})(t)}function oy(t){return jf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}}]})(t)}var iy=t.forwardRef((function(e,r){var o=e.title,i=void 0===o?"Upload Image":o,a=e.uploadDir,s=void 0===a?"eg-frontend-admin-temp":a,l=e.onValueChanged,u=void 0===l?function(){}:l,d=e.disableSetValue,f=void 0!==d&&d,h=Nm(Xi(e,["title","uploadDir","onValueChanged","disableSetValue"])),p=h[0],g=h[1],m=h[2],b=p.value,y=m.setValue,v=t.useState(null),w=v[0],x=v[1],_=t.useState(b),k=_[0],E=_[1],S=t.useState(!1),O=S[0],T=S[1],A=t.useState(null),C=A[0],j=A[1],P=function(){j(null),x(null),E(""),f||y(""),T(!1)};return t.useImperativeHandle(r,(function(){return{handleResetClick:P}})),t.useEffect((function(){f||y(k)}),[k,y,f]),n.default.createElement("div",{className:"w-full"},n.default.createElement("div",{className:"inline-flex w-full"},n.default.createElement("div",{className:"relative inline-flex gap-3 items-center"},!C&&!k&&n.default.createElement("div",null,n.default.createElement("input",{id:"".concat(p.name),type:"file",className:"hidden",onChange:function(t){var e=t.target.files[0];x(e);var r=new FileReader;r.readAsDataURL(e),r.onload=function(){r.result&&"string"==typeof r.result&&j(r.result)}},accept:"image/*"}),n.default.createElement("label",{className:c({"border-2 border-dashed border-gray-700 bg-gray-900 h-[200px] w-[300px] flex flex-col gap-2 items-center justify-center group":!0,"hover:cursor-pointer hover:border-solid hover:border-gray-600 hover:bg-gray-900/80":!0,"transition-all ease-in-out duration-150":!0}),htmlFor:"".concat(p.name)},n.default.createElement("div",{className:"text-4xl text-gray-300 group-hover:text-gray-400"},n.default.createElement(ry,null)),n.default.createElement("div",{className:"text-xl font-bold text-gray-500 group-hover:text-gray-500"},i))),C&&!k&&n.default.createElement("div",{className:"h-[200px] w-[300px] overflow-hidden"},n.default.createElement("img",{src:C,alt:"preview",className:"w-full h-full object-cover"})),O&&n.default.createElement("div",{className:"absolute"},n.default.createElement("div",{className:"h-[200px] w-[300px] bg-black opacity-50"}),n.default.createElement("div",{className:"absolute top-0 left-0 w-full h-full flex items-center justify-center"},n.default.createElement(Yf,{className:"animate-spin"}))),!O&&k&&n.default.createElement(ey,{imageUrl:k,alt:k||"image"}),(C||k)&&n.default.createElement("div",{className:"flex flex-col gap-1 text-3xl"},n.default.createElement("div",{className:" text-green-600 hover:cursor-pointer",onClick:function(){return qi(void 0,void 0,void 0,(function(){var t,e,r,n;return Ki(this,(function(o){switch(o.label){case 0:if(!w)return[2];T(!0),(t=new FormData).append("file",w),e=process.env.REACT_APP_CLOUDINARY_UPLOAD_PRESET||"",r=process.env.REACT_APP_CLOUDINARY_CLOUD_NAME||"",t.append("upload_preset",e),t.append("cloud_name",r),t.append("folder",s),o.label=1;case 1:return o.trys.push([1,4,,5]),[4,fetch("https://api.cloudinary.com/v1_1/".concat(r,"/image/upload"),{method:"POST",body:t})];case 2:return[4,o.sent().json()];case 3:return n=o.sent(),E(n.public_id),f||y(n.public_id),u(n.public_id),T(!1),[3,5];case 4:return o.sent(),T(!1),[3,5];case 5:return[2]}}))}))},hidden:!!k},n.default.createElement(ny,null)),n.default.createElement("div",{className:"text-red-500 hover:cursor-pointer",onClick:P},n.default.createElement(oy,null))))),n.default.createElement(qb,{name:p.name,visibility:!(!g.touched||!g.error),variant:"danger"}))}));const ay=t=>"number"==typeof t&&!isNaN(t),sy=t=>"string"==typeof t,cy=t=>"function"==typeof t,ly=t=>sy(t)||cy(t)?t:null,uy=e=>t.isValidElement(e)||sy(e)||cy(e)||ay(e);function dy(e){let{enter:r,exit:o,appendPosition:i=!1,collapse:a=!0,collapseDuration:s=300}=e;return function(e){let{children:c,position:l,preventExitTransition:u,done:d,nodeRef:f,isIn:h,playToast:p}=e;const g=i?`${r}--${l}`:r,m=i?`${o}--${l}`:o,b=t.useRef(0);return t.useLayoutEffect((()=>{const t=f.current,e=g.split(" "),r=n=>{n.target===f.current&&(p(),t.removeEventListener("animationend",r),t.removeEventListener("animationcancel",r),0===b.current&&"animationcancel"!==n.type&&t.classList.remove(...e))};t.classList.add(...e),t.addEventListener("animationend",r),t.addEventListener("animationcancel",r)}),[]),t.useEffect((()=>{const t=f.current,e=()=>{t.removeEventListener("animationend",e),a?function(t,e,r){void 0===r&&(r=300);const{scrollHeight:n,style:o}=t;requestAnimationFrame((()=>{o.minHeight="initial",o.height=n+"px",o.transition=`all ${r}ms`,requestAnimationFrame((()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(e,r)}))}))}(t,d,s):d()};h||(u?e():(b.current=1,t.className+=` ${m}`,t.addEventListener("animationend",e)))}),[h]),n.default.createElement(n.default.Fragment,null,c)}}function fy(t,e){return null!=t?{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}:{}}const hy=new Map;let py=[];const gy=new Set,my=t=>gy.forEach((e=>e(t))),by=()=>hy.size>0;function yy(t,e){var r;if(e)return!(null==(r=hy.get(e))||!r.isToastActive(t));let n=!1;return hy.forEach((e=>{e.isToastActive(t)&&(n=!0)})),n}function vy(t,e){uy(t)&&(by()||py.push({content:t,options:e}),hy.forEach((r=>{r.buildToast(t,e)})))}function wy(t,e){hy.forEach((r=>{null!=e&&null!=e&&e.containerId?(null==e?void 0:e.containerId)===r.id&&r.toggle(t,null==e?void 0:e.id):r.toggle(t,null==e?void 0:e.id)}))}function xy(e){const{subscribe:r,getSnapshot:n,setProps:o}=t.useRef(function(e){const r=e.containerId||1;return{subscribe(n){const o=function(e,r,n){let o=1,i=0,a=[],s=[],c=[],l=r;const u=new Map,d=new Set,f=()=>{c=Array.from(u.values()),d.forEach((t=>t()))},h=t=>{s=null==t?[]:s.filter((e=>e!==t)),f()},p=e=>{const{toastId:r,onOpen:o,updateId:i,children:a}=e.props,c=null==i;e.staleId&&u.delete(e.staleId),u.set(r,e),s=[...s,e.props.toastId].filter((t=>t!==e.staleId)),f(),n(fy(e,c?"added":"updated")),c&&cy(o)&&o(t.isValidElement(a)&&a.props)};return{id:e,props:l,observe:t=>(d.add(t),()=>d.delete(t)),toggle:(t,e)=>{u.forEach((r=>{null!=e&&e!==r.props.toastId||cy(r.toggle)&&r.toggle(t)}))},removeToast:h,toasts:u,clearQueue:()=>{i-=a.length,a=[]},buildToast:(r,s)=>{if((t=>{let{containerId:r,toastId:n,updateId:o}=t;const i=r?r!==e:1!==e,a=u.has(n)&&null==o;return i||a})(s))return;const{toastId:c,updateId:d,data:g,staleId:m,delay:b}=s,y=()=>{h(c)},v=null==d;v&&i++;const w={...l,style:l.toastStyle,key:o++,...Object.fromEntries(Object.entries(s).filter((t=>{let[e,r]=t;return null!=r}))),toastId:c,updateId:d,data:g,closeToast:y,isIn:!1,className:ly(s.className||l.toastClassName),bodyClassName:ly(s.bodyClassName||l.bodyClassName),progressClassName:ly(s.progressClassName||l.progressClassName),autoClose:!s.isLoading&&(x=s.autoClose,_=l.autoClose,!1===x||ay(x)&&x>0?x:_),deleteToast(){const e=u.get(c),{onClose:r,children:o}=e.props;cy(r)&&r(t.isValidElement(o)&&o.props),n(fy(e,"removed")),u.delete(c),i--,i<0&&(i=0),a.length>0?p(a.shift()):f()}};var x,_;w.closeButton=l.closeButton,!1===s.closeButton||uy(s.closeButton)?w.closeButton=s.closeButton:!0===s.closeButton&&(w.closeButton=!uy(l.closeButton)||l.closeButton);let k=r;t.isValidElement(r)&&!sy(r.type)?k=t.cloneElement(r,{closeToast:y,toastProps:w,data:g}):cy(r)&&(k=r({closeToast:y,toastProps:w,data:g}));const E={content:k,props:w,staleId:m};l.limit&&l.limit>0&&i>l.limit&&v?a.push(E):ay(b)?setTimeout((()=>{p(E)}),b):p(E)},setProps(t){l=t},setToggle:(t,e)=>{u.get(t).toggle=e},isToastActive:t=>s.some((e=>e===t)),getSnapshot:()=>c}}(r,e,my);hy.set(r,o);const i=o.observe(n);return py.forEach((t=>vy(t.content,t.options))),py=[],()=>{i(),hy.delete(r)}},setProps(t){var e;null==(e=hy.get(r))||e.setProps(t)},getSnapshot(){var t;return null==(t=hy.get(r))?void 0:t.getSnapshot()}}}(e)).current;o(e);const i=t.useSyncExternalStore(r,n,n);return{getToastToRender:function(t){if(!i)return[];const r=new Map;return e.newestOnTop&&i.reverse(),i.forEach((t=>{const{position:e}=t.props;r.has(e)||r.set(e,[]),r.get(e).push(t)})),Array.from(r,(e=>t(e[0],e[1])))},isToastActive:yy,count:null==i?void 0:i.length}}function _y(e){const[r,n]=t.useState(!1),[o,i]=t.useState(!1),a=t.useRef(null),s=t.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:c,pauseOnHover:l,closeToast:u,onClick:d,closeOnClick:f}=e;var h,p;function g(){n(!0)}function m(){n(!1)}function b(t){const n=a.current;s.canDrag&&n&&(s.didMove=!0,r&&m(),s.delta="x"===e.draggableDirection?t.clientX-s.start:t.clientY-s.start,s.start!==t.clientX&&(s.canCloseOnClick=!1),n.style.transform=`translate3d(${"x"===e.draggableDirection?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,n.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function y(){document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",y);const t=a.current;if(s.canDrag&&s.didMove&&t){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();t.style.transition="transform 0.2s, opacity 0.2s",t.style.removeProperty("transform"),t.style.removeProperty("opacity")}}null==(p=hy.get((h={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))||p.setToggle(h.id,h.fn),t.useEffect((()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||m(),window.addEventListener("focus",g),window.addEventListener("blur",m),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",m)}}),[e.pauseOnFocusLoss]);const v={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){s.didMove=!1,document.addEventListener("pointermove",b),document.addEventListener("pointerup",y);const r=a.current;s.canCloseOnClick=!0,s.canDrag=!0,r.style.transition="none","x"===e.draggableDirection?(s.start=t.clientX,s.removalDistance=r.offsetWidth*(e.draggablePercent/100)):(s.start=t.clientY,s.removalDistance=r.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){const{top:r,bottom:n,left:o,right:i}=a.current.getBoundingClientRect();"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&t.clientX>=o&&t.clientX<=i&&t.clientY>=r&&t.clientY<=n?m():g()}};return c&&l&&(v.onMouseEnter=m,e.stacked||(v.onMouseLeave=g)),f&&(v.onClick=t=>{d&&d(t),s.canCloseOnClick&&u()}),{playToast:g,pauseToast:m,isRunning:r,preventExitTransition:o,toastRef:a,eventHandlers:v}}function ky(t){let{delay:e,isRunning:r,closeToast:o,type:i="default",hide:a,className:s,style:c,controlledProgress:l,progress:u,rtl:d,isIn:f,theme:h}=t;const p=a||l&&0===u,g={...c,animationDuration:`${e}ms`,animationPlayState:r?"running":"paused"};l&&(g.transform=`scaleX(${u})`);const m=Ym("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${h}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":d}),b=cy(s)?s({rtl:d,type:i,defaultClassName:m}):Ym(m,s),y={[l&&u>=1?"onTransitionEnd":"onAnimationEnd"]:l&&u<1?null:()=>{f&&o()}};return n.default.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":p},n.default.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${h} Toastify__progress-bar--${i}`}),n.default.createElement("div",{role:"progressbar","aria-hidden":p?"true":"false","aria-label":"notification timer",className:b,style:g,...y}))}let Ey=1;const Sy=()=>""+Ey++;function Oy(t){return t&&(sy(t.toastId)||ay(t.toastId))?t.toastId:Sy()}function Ty(t,e){return vy(t,e),e.toastId}function Ay(t,e){return{...e,type:e&&e.type||t,toastId:Oy(e)}}function Cy(t){return(e,r)=>Ty(e,Ay(t,r))}function jy(t,e){return Ty(t,Ay("default",e))}jy.loading=(t,e)=>Ty(t,Ay("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),jy.promise=function(t,e,r){let n,{pending:o,error:i,success:a}=e;o&&(n=sy(o)?jy.loading(o,r):jy.loading(o.render,{...r,...o}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(t,e,o)=>{if(null==e)return void jy.dismiss(n);const i={type:t,...s,...r,data:o},a=sy(e)?{render:e}:e;return n?jy.update(n,{...i,...a}):jy(a.render,{...i,...a}),o},l=cy(t)?t():t;return l.then((t=>c("success",a,t))).catch((t=>c("error",i,t))),l},jy.success=Cy("success"),jy.info=Cy("info"),jy.error=Cy("error"),jy.warning=Cy("warning"),jy.warn=jy.warning,jy.dark=(t,e)=>Ty(t,Ay("default",{theme:"dark",...e})),jy.dismiss=function(t){!function(t){var e;if(by()){if(null==t||sy(e=t)||ay(e))hy.forEach((e=>{e.removeToast(t)}));else if(t&&("containerId"in t||"id"in t)){const e=hy.get(t.containerId);e?e.removeToast(t.id):hy.forEach((e=>{e.removeToast(t.id)}))}}else py=py.filter((e=>null!=t&&e.options.toastId!==t))}(t)},jy.clearWaitingQueue=function(t){void 0===t&&(t={}),hy.forEach((e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()}))},jy.isActive=yy,jy.update=function(t,e){void 0===e&&(e={});const r=((t,e)=>{var r;let{containerId:n}=e;return null==(r=hy.get(n||1))?void 0:r.toasts.get(t)})(t,e);if(r){const{props:n,content:o}=r,i={delay:100,...n,...e,toastId:e.toastId||t,updateId:Sy()};i.toastId!==t&&(i.staleId=t);const a=i.render||o;delete i.render,Ty(a,i)}},jy.done=t=>{jy.update(t,{progress:1})},jy.onChange=function(t){return gy.add(t),()=>{gy.delete(t)}},jy.play=t=>wy(!0,t),jy.pause=t=>wy(!1,t);const Py="undefined"!=typeof window?t.useLayoutEffect:t.useEffect,My=t=>{let{theme:e,type:r,isLoading:o,...i}=t;return n.default.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===e?"currentColor":`var(--toastify-icon-color-${r})`,...i})},Dy={info:function(t){return n.default.createElement(My,{...t},n.default.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(t){return n.default.createElement(My,{...t},n.default.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(t){return n.default.createElement(My,{...t},n.default.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(t){return n.default.createElement(My,{...t},n.default.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return n.default.createElement("div",{className:"Toastify__spinner"})}},Ry=e=>{const{isRunning:r,preventExitTransition:o,toastRef:i,eventHandlers:a,playToast:s}=_y(e),{closeButton:c,children:l,autoClose:u,onClick:d,type:f,hideProgressBar:h,closeToast:p,transition:g,position:m,className:b,style:y,bodyClassName:v,bodyStyle:w,progressClassName:x,progressStyle:_,updateId:k,role:E,progress:S,rtl:O,toastId:T,deleteToast:A,isIn:C,isLoading:j,closeOnClick:P,theme:M}=e,D=Ym("Toastify__toast",`Toastify__toast-theme--${M}`,`Toastify__toast--${f}`,{"Toastify__toast--rtl":O},{"Toastify__toast--close-on-click":P}),R=cy(b)?b({rtl:O,position:m,type:f,defaultClassName:D}):Ym(D,b),I=function(e){let{theme:r,type:n,isLoading:o,icon:i}=e,a=null;const s={theme:r,type:n};return!1===i||(cy(i)?a=i({...s,isLoading:o}):t.isValidElement(i)?a=t.cloneElement(i,s):o?a=Dy.spinner():(t=>t in Dy)(n)&&(a=Dy[n](s))),a}(e),N=!!S||!u,F={closeToast:p,type:f,theme:M};let z=null;return!1===c||(z=cy(c)?c(F):t.isValidElement(c)?t.cloneElement(c,F):function(t){let{closeToast:e,theme:r,ariaLabel:o="close"}=t;return n.default.createElement("button",{className:`Toastify__close-button Toastify__close-button--${r}`,type:"button",onClick:t=>{t.stopPropagation(),e(t)},"aria-label":o},n.default.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},n.default.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(F)),n.default.createElement(g,{isIn:C,done:A,position:m,preventExitTransition:o,nodeRef:i,playToast:s},n.default.createElement("div",{id:T,onClick:d,"data-in":C,className:R,...a,style:y,ref:i},n.default.createElement("div",{...C&&{role:E},className:cy(v)?v({type:f}):Ym("Toastify__toast-body",v),style:w},null!=I&&n.default.createElement("div",{className:Ym("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!j})},I),n.default.createElement("div",null,l)),z,n.default.createElement(ky,{...k&&!N?{key:`pb-${k}`}:{},rtl:O,theme:M,delay:u,isRunning:r,isIn:C,closeToast:p,hide:h,type:f,style:_,className:x,controlledProgress:N,progress:S||0})))},Iy=function(t,e){return void 0===e&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},Ny=dy(Iy("bounce",!0));dy(Iy("slide",!0)),dy(Iy("zoom")),dy(Iy("flip"));const Fy={position:"top-right",transition:Ny,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function zy(e){let r={...Fy,...e};const o=e.stacked,[i,a]=t.useState(!0),s=t.useRef(null),{getToastToRender:c,isToastActive:l,count:u}=xy(r),{className:d,style:f,rtl:h,containerId:p}=r;function g(t){const e=Ym("Toastify__toast-container",`Toastify__toast-container--${t}`,{"Toastify__toast-container--rtl":h});return cy(d)?d({position:t,rtl:h,defaultClassName:e}):Ym(e,ly(d))}function m(){o&&(a(!0),jy.play())}return Py((()=>{if(o){var t;const e=s.current.querySelectorAll('[data-in="true"]'),n=12,o=null==(t=r.position)?void 0:t.includes("top");let a=0,c=0;Array.from(e).reverse().forEach(((t,e)=>{const r=t;r.classList.add("Toastify__toast--stacked"),e>0&&(r.dataset.collapsed=`${i}`),r.dataset.pos||(r.dataset.pos=o?"top":"bot");const s=a*(i?.2:1)+(i?0:n*e);r.style.setProperty("--y",`${o?s:-1*s}px`),r.style.setProperty("--g",`${n}`),r.style.setProperty("--s",""+(1-(i?c:0))),a+=r.offsetHeight,c+=.025}))}}),[i,u,o]),n.default.createElement("div",{ref:s,className:"Toastify",id:p,onMouseEnter:()=>{o&&(a(!1),jy.pause())},onMouseLeave:m},c(((t,e)=>{const r=e.length?{...f}:{...f,pointerEvents:"none"};return n.default.createElement("div",{className:g(t),style:r,key:`container-${t}`},e.map((t=>{let{content:e,props:r}=t;return n.default.createElement(Ry,{...r,stacked:o,collapseAll:m,isIn:l(r.toastId,r.containerId),style:r.style,key:`toast-${r.key}`},e)})))})))}function Ly(t){var e,r,o=t.data,i=void 0===o?[]:o,a=t.styles,s=function(t,e){var r=t.icon,o=t.name,i=t.badge,a=t.to,s=t.onClick,c=t.component,l=Xi(t,["icon","name","badge","to","onClick","component"]),u=c;return n.default.createElement(u,Yi({key:e,icon:r,name:o,badge:i,to:a,onClick:s},l))},l=function(t,e){var r=t.icon,o=t.name,i=t.badge;t.to;var a=t.items,c=t.component,u=Xi(t,["icon","name","badge","to","items","component"]),d=c,f=a&&Array.isArray(a)?a.map((function(t,e){return"items"in t?l(t,e):s(t,e)})):null;return n.default.createElement(d,Yi({key:e,icon:r,name:o,badge:i},u),f)},u=Gi([],i,!0);if(u.length>0){var d=u.map((function(t,e){return"items"in t?l(t,e):s(t,e)}));r=n.default.createElement("div",null,d)}return n.default.createElement("div",{className:c((e={"theme-bg-md overflow-y-auto w-full select-none":!0},e["".concat(a)]=a,e))},r)}i(':root{--toastify-color-light:#fff;--toastify-color-dark:#121212;--toastify-color-info:#3498db;--toastify-color-success:#07bc0c;--toastify-color-warning:#f1c40f;--toastify-color-error:#e74c3c;--toastify-color-transparent:#ffffffb3;--toastify-icon-color-info:var(--toastify-color-info);--toastify-icon-color-success:var(--toastify-color-success);--toastify-icon-color-warning:var(--toastify-color-warning);--toastify-icon-color-error:var(--toastify-color-error);--toastify-toast-width:320px;--toastify-toast-offset:16px;--toastify-toast-top:max(var(--toastify-toast-offset),env(safe-area-inset-top));--toastify-toast-right:max(var(--toastify-toast-offset),env(safe-area-inset-right));--toastify-toast-left:max(var(--toastify-toast-offset),env(safe-area-inset-left));--toastify-toast-bottom:max(var(--toastify-toast-offset),env(safe-area-inset-bottom));--toastify-toast-background:#fff;--toastify-toast-min-height:64px;--toastify-toast-max-height:800px;--toastify-toast-bd-radius:6px;--toastify-font-family:sans-serif;--toastify-z-index:9999;--toastify-text-color-light:#757575;--toastify-text-color-dark:#fff;--toastify-text-color-info:#fff;--toastify-text-color-success:#fff;--toastify-text-color-warning:#fff;--toastify-text-color-error:#fff;--toastify-spinner-color:#616161;--toastify-spinner-color-empty-area:#e0e0e0;--toastify-color-progress-light:linear-gradient(90deg,#4cd964,#5ac8fa,#007aff,#34aadc,#5856d6,#ff2d55);--toastify-color-progress-dark:#bb86fc;--toastify-color-progress-info:var(--toastify-color-info);--toastify-color-progress-success:var(--toastify-color-success);--toastify-color-progress-warning:var(--toastify-color-warning);--toastify-color-progress-error:var(--toastify-color-error);--toastify-color-progress-bgo:0.2}.Toastify__toast-container{box-sizing:border-box;color:#fff;padding:4px;position:fixed;-webkit-transform:translateZ(var(--toastify-z-index));width:var(--toastify-toast-width);z-index:var(--toastify-z-index)}.Toastify__toast-container--top-left{left:var(--toastify-toast-left);top:var(--toastify-toast-top)}.Toastify__toast-container--top-center{left:50%;top:var(--toastify-toast-top);transform:translateX(-50%)}.Toastify__toast-container--top-right{right:var(--toastify-toast-right);top:var(--toastify-toast-top)}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translateX(-50%)}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right)}@media only screen and (max-width:480px){.Toastify__toast-container{left:env(safe-area-inset-left);margin:0;padding:0;width:100vw}.Toastify__toast-container--top-center,.Toastify__toast-container--top-left,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translateX(0)}.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translateX(0)}.Toastify__toast-container--rtl{left:auto;right:env(safe-area-inset-right)}}.Toastify__toast{--y:0;border-radius:var(--toastify-toast-bd-radius);box-shadow:0 4px 12px #0000001a;box-sizing:border-box;cursor:default;direction:ltr;display:flex;font-family:var(--toastify-font-family);justify-content:space-between;margin-bottom:1rem;max-height:var(--toastify-toast-max-height);min-height:var(--toastify-toast-min-height);overflow:hidden;padding:8px;position:relative;touch-action:none;z-index:0}.Toastify__toast--stacked{position:absolute;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s;width:100%}.Toastify__toast--stacked[data-collapsed] .Toastify__close-button,.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{bottom:100%;content:"";height:calc(var(--g)*1px);left:0;position:absolute;right:0}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{bottom:0;content:"";height:100%;left:0;position:absolute;right:0;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-body{align-items:center;display:flex;flex:1 1 auto;margin:auto 0;padding:6px}.Toastify__toast-body>div:last-child{flex:1;word-break:break-word}.Toastify__toast-icon{display:flex;flex-shrink:0;margin-inline-end:10px;width:20px}.Toastify--animate{animation-duration:.5s;animation-fill-mode:both}.Toastify--animate-icon{animation-duration:.3s;animation-fill-mode:both}@media only screen and (max-width:480px){.Toastify__toast{border-radius:0;margin-bottom:0}}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--colored.Toastify__toast--default,.Toastify__toast-theme--light{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{background:var(--toastify-color-info);color:var(--toastify-text-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{background:var(--toastify-color-success);color:var(--toastify-text-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{background:var(--toastify-color-warning);color:var(--toastify-text-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{background:var(--toastify-color-error);color:var(--toastify-text-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning{background:var(--toastify-color-transparent)}.Toastify__close-button{align-self:flex-start;background:#0000;border:none;color:#fff;cursor:pointer;opacity:.7;outline:none;padding:0;transition:.3s ease;z-index:1}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:focus,.Toastify__close-button:hover{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{border-bottom-left-radius:var(--toastify-toast-bd-radius);bottom:0;height:100%;left:0;opacity:.7;position:absolute;transform-origin:left;width:100%;z-index:var(--toastify-z-index)}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{border-bottom-left-radius:0;border-bottom-right-radius:var(--toastify-toast-bd-radius);left:auto;right:0;transform-origin:right}.Toastify__progress-bar--wrp{border-bottom-left-radius:var(--toastify-toast-bd-radius);bottom:0;height:5px;left:0;position:absolute;width:100%}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{height:100%;opacity:var(--toastify-color-progress-bgo);width:100%}.Toastify__spinner{animation:Toastify__spin .65s linear infinite;border:2px solid;border-color:var(--toastify-spinner-color-empty-area);border-radius:100%;border-right-color:var(--toastify-spinner-color);box-sizing:border-box;height:20px;width:20px}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--bottom-left,.Toastify__bounce-enter--top-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--bottom-right,.Toastify__bounce-enter--top-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--bottom-left,.Toastify__bounce-exit--top-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--bottom-right,.Toastify__bounce-exit--top-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{animation-timing-function:ease-in;opacity:0;transform:perspective(400px) rotateX(90deg)}40%{animation-timing-function:ease-in;transform:perspective(400px) rotateX(-20deg)}60%{opacity:1;transform:perspective(400px) rotateX(10deg)}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{opacity:1;transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg)}to{opacity:0;transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg)}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{transform:translate3d(110%,var(--y),0);visibility:hidden}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{transform:translate3d(-110%,var(--y),0);visibility:hidden}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{transform:translate3d(0,500px,0);visibility:hidden}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{transform:translate3d(0,-500px,0);visibility:hidden}}.Toastify__slide-enter--bottom-left,.Toastify__slide-enter--top-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--bottom-right,.Toastify__slide-enter--top-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--bottom-left,.Toastify__slide-exit--top-left{animation-duration:.3s;animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in}.Toastify__slide-exit--bottom-right,.Toastify__slide-exit--top-right{animation-duration:.3s;animation-name:Toastify__slideOutRight;animation-timing-function:ease-in}.Toastify__slide-exit--top-center{animation-duration:.3s;animation-name:Toastify__slideOutUp;animation-timing-function:ease-in}.Toastify__slide-exit--bottom-center{animation-duration:.3s;animation-name:Toastify__slideOutDown;animation-timing-function:ease-in}@keyframes Toastify__spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}');var By=function(t){var e=t.icon,r=t.name,o=t.badge;return n.default.createElement(n.default.Fragment,null,e&&n.default.createElement("div",{className:"text-2xl"},e),r&&n.default.createElement("div",null,r),o&&n.default.createElement("div",null,o))},Vy=function(t){var e,r=t.icon,o=t.name,i=t.badge,a=t.styles;return n.default.createElement("div",{className:c((e={"flex flex-row items-center gap-3 p-3 theme-text-md border-b border-dark-500/20 dark:border-secondary-600/10 w-full opacity-60":!0,"theme-gradient-to-r-xs":!0,"hover:cursor-pointer hover:theme-gradient-to-r-sm":!0,"transition-all ease-in-out duration-300":!0},e["".concat(a)]=a,e))},n.default.createElement(By,{icon:r,name:o,badge:i}))};function Hy(t){var e,r=t.children,o=t.gap,i=void 0===o?3:o,a=t.styles;return n.default.createElement("div",{className:c((e={},e["flex flex-col gap-".concat(i)]=!0,e["".concat(a)]=a,e))},r)}function $y(t){var e,r=t.children,o=t.gap,i=void 0===o?3:o,a=t.styles;return n.default.createElement("div",{className:c((e={},e["flex flex-row gap-".concat(i)]=!0,e["".concat(a)]=a,e))},r)}i(".sidebar_nav_scrollbar::-webkit-scrollbar{width:5px}.sidebar_nav_scrollbar::-webkit-scrollbar-track{background:#002129}.sidebar_nav_scrollbar::-webkit-scrollbar-thumb{background:#009703;border-radius:10px}");var Uy={FlexCol:Hy,FlexRow:$y};function Wy(t){var e=t.title,r=t.href,o=void 0===r?"#":r,i=t.active,a=void 0===i||i;return n.default.createElement("a",{href:o,className:c({"text-lg font-semibold ":!0,"text-gray-400 hover:text-gray-600":!a,"text-light-800":a,"hover:underline":!0,"transition-all ease-in-out":!0})},e)}function Yy(e,r){t.useEffect((function(){var t=function(t){e.current&&!e.current.contains(t.target)&&r&&r()};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),function(){document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}}),[e,r])}var Xy=function(t){var e=t.icon,r=t.name,o=t.description,i=t.badge;return n.default.createElement("div",{className:"flex flex-row items-center gap-3 select-none"},e&&n.default.createElement("div",{className:"text-xl theme-text-md"},e),n.default.createElement("div",null,r&&n.default.createElement("div",{className:"text-md"},r),o&&n.default.createElement("div",{className:"text-xs theme-text-sm"},o)),i&&n.default.createElement("div",null,i))};function qy(t){return jf({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 0a256 256 0 1 0 0 512A256 256 0 1 0 256 0zM135 241c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l87 87 87-87c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L273 345c-9.4 9.4-24.6 9.4-33.9 0L135 241z"}}]})(t)}function Ky(t){return jf({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM377 271c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-87-87-87 87c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L239 167c9.4-9.4 24.6-9.4 33.9 0L377 271z"}}]})(t)}var Gy=t.createContext(void 0);exports.Accordion=function(e){var r=e.summary,o=void 0===r?"Accordion":r,i=e.expandIcon,a=void 0===i?n.default.createElement(qy,null):i,s=e.collapseIcon,c=void 0===s?n.default.createElement(Ky,null):s,l=e.children,u=e.defaultCollapse,d=void 0!==u&&u,f=t.useState(d),h=f[0],p=f[1];return n.default.createElement("div",{className:"border border-dark-400"},n.default.createElement("div",null,n.default.createElement("div",{className:"inline-flex gap-3 items-center justify-center p-3 w-full bg-light-600 dark:bg-dark-500"},n.default.createElement("div",{className:"theme-text-md w-full"},o),n.default.createElement("div",null,h?n.default.createElement("div",{onClick:function(){p(!1)},className:"text-xl"},c):n.default.createElement("div",{onClick:function(){p(!0)},className:"text-xl"},a)))),n.default.createElement(Fb,{show:h,enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",as:t.Fragment},n.default.createElement("div",{className:"p-5 border-t border-t-dark-400/80 theme-text-sm"},l)))},exports.AsyncComponentWrapper=Hb,exports.Avatar=function(t){var e=t.alt,r=t.icon,o=t.children,i=void 0===o?"B":o,a=t.variant,s=void 0===a?"success":a,u=t.shape,d=void 0===u?"circle":u,f=t.size,p=void 0===f?"md":f,g=t.src,y=t.styles,v=t.onClick,w=t.borderVariant,x=void 0!==w&&w;return n.default.createElement("div",{onClick:v,className:c("inline-flex items-center justify-center text-center overflow-hidden",m[d],b[p],y,x?"border-2 ".concat(h[s]):"".concat(l[s]))},g&&n.default.createElement("img",{src:g,alt:e,className:"p-1 rounded-full"}),r&&n.default.createElement("div",null,r),!g&&!r&&i&&i)},exports.Backdrop=function(t){var e,r=t.children,o=t.styles;return n.default.createElement("div",{className:c((e={"bg-black/75 top-0 bottom-0 left-0 right-0 z-50 fixed inset-0 flex items-center justify-center overflow-hidden":!0},e["".concat(o)]=o,e))},r)},exports.Badge=function(t){var e,r=t.children,o=t.offset,i=t.dot,a=t.count,s=t.variant,u=void 0===s?"success":s,d=t.shape,f=void 0===d?"circle":d,h=t.size,p=void 0===h?"md":h,g=t.showZero,m=void 0===g||g,b=t.styles,w=o?{top:"".concat(o[0],"px"),right:"".concat(o[1],"px")}:{top:"0",right:"0"};return n.default.createElement("div",{className:"relative w-fit h-fit"},n.default.createElement("div",{className:c((e={},e["absolute top-0 right-0 badge-offset inline-flex items-center justify-center text-center rounded-full border border-gray-50 z-50"]=!0,e["".concat(l[u])]=u,e["".concat(v[f])]=f,e["".concat(y[p])]=p,e["".concat(b)]=b,e.hidden=!(m||void 0!==a&&0!==a),e)),style:w},!i&&(m||void 0!==a&&0!==a)&&a),r&&r)},exports.BarChart=function(t){var e,r=t.data,o=t.options,i=t.styles;return n.default.createElement("div",{className:c((e={},e["".concat(i)]=i,e))},n.default.createElement(Ui,{data:r,options:o}))},exports.Breadcrumb=function(t){var e,r,o=t.gap,i=void 0===o?1:o,a=t.seperator,s=void 0===a?"/":a,l=t.data,u=void 0===l?[]:l,d=t.styles,f=Gi([],u,!0);if(f.length>0){var h=f.map((function(t,e){var r;return n.default.createElement(n.default.Fragment,{key:e},n.default.createElement(Wy,{title:t.title,href:t.href,active:e==f.length-1}),e<f.length-1&&n.default.createElement("span",{className:c((r={"text-lg font-semibold text-gray-500":!0},r["px-".concat(i)]=i,r))},s))}));r=n.default.createElement("div",null,h)}return n.default.createElement("div",{className:c((e={"inline-flex gap-3":!0},e["".concat(d)]=d,e))},r)},exports.BreadcrumbItem=Wy,exports.Button=Wb,exports.Card=function(t){var e,r=t.children,o=t.styles;return n.default.createElement("div",{className:c((e={"bg-gradient-light-2 border border-gray-700 shadow rounded-sm":!0},e["".concat(o)]=o,e))},r)},exports.CardContent=function(t){var e,r=t.children,o=t.styles;return n.default.createElement("div",{className:c((e={"text-gray-200":!0},e["".concat(o)]=o,e))},r)},exports.CardFooter=function(t){var e,r=t.children,o=t.styles;return n.default.createElement("div",{className:c((e={"bg-slate-900 text-gray-200 p-3 inline-flex gap-3 w-full":!0},e["".concat(o)]=o,e))},r)},exports.CardHeader=function(t){var e,r=t.avatar,o=t.title,i=t.description,a=t.styles;return n.default.createElement("div",{className:c((e={"bg-gradient-to-r from-slate-800/70 to-transparent border-b border-slate-700 p-3 inline-flex items-center gap-3 w-full":!0},e["".concat(a)]=a,e))},n.default.createElement("div",{className:"w-[40px] h-[40px]"},r),n.default.createElement("div",{className:"flex flex-col"},n.default.createElement("div",{className:"font-semibold text-gray-100"},o),n.default.createElement("div",{className:"text-sm text-gray-400"},i)))},exports.Chapter=bf,exports.Checkbox=function(t){var e=t.placeholder,r=t.options,o=Xi(t,["placeholder","options"]),i=o.name,a=Nm(o),s=a[0],l=a[1];return n.default.createElement("div",null,n.default.createElement("label",{className:c({"theme-text-sm text-sm":!0})},e),n.default.createElement(Fm,{name:i},(function(t){var e=t.field;return r.map((function(t){return n.default.createElement("div",{key:t.label,className:c({"flex flex-row gap-2 items-center mx-1 my-2":!0})},n.default.createElement("input",Yi({type:"checkbox",id:t.value},e,o,{value:t.value,checked:e.value.includes(t.value),className:c("appearance-none w-4 h-4 border-2 border-primary-400 rounded-md cursor-pointer transition-all duration-300","checked:bg-secondary-700 checked:border-primary-400 checked:text-white","relative checked:before:content-['✓'] checked:before:absolute checked:before:top-0 checked:before:left-0 checked:before:w-full checked:before:h-full checked:before:flex checked:before:items-center checked:before:justify-center checked:before:text-white checked:before:font-bold checked:before:text-xs")})),n.default.createElement("label",{htmlFor:t.value,className:c({"theme-text-md text-sm":!0})},t.label))}))})),n.default.createElement(qb,{name:s.name,visibility:!(!l.touched||!l.error),variant:"danger"}))},exports.Chip=function(t){var e,r=t.label,o=t.variant,i=void 0===o?"success":o,a=t.shape,s=void 0===a?"circle":a,u=t.size,d=void 0===u?"md":u,f=t.styles;return n.default.createElement("div",{className:"w-fit h-fit"},n.default.createElement("div",{className:c((e={},e["inline-flex items-center justify-center text-center text-xs font-semibold rounded-full border border-gray-600 py-1 px-1"]=!0,e["".concat(l[i])]=i,e["".concat(Qi[s])]=s,e["".concat(Zi[d])]=d,e["".concat(f)]=f,e))},r))},exports.CloudinaryImage=gf,exports.Content=function(t){var e,r=t.sidebarVisible,o=t.isMobile,i=t.children,a=t.styles;return n.default.createElement("div",{className:c((e={"w-full min-h-screen transition-all duration-200 theme-bg-sm":!0,"md:pl-[300px]":r&&!o,"pl-0":!r||o},e["".concat(a)]=a,e))},i)},exports.ContentArea=function(t){var e,r=t.children,o=t.styles,i=t.enablePadding,a=void 0!==i&&i;return n.default.createElement("div",{className:c((e={"min-h-screen h-full w-full py-3 px-5":!0,"py-3 px-5":!a,"py-3 px-5 lg:px-[150px]":a,"transition-all duration-[200ms]":!0},e["".concat(o)]=o,e))},r)},exports.DateSelector=function(t){var e,r=t.placeholder,o=t.styles,i=Xi(t,["placeholder","styles"]),a=Nm(i),s=a[0],l=a[1];return n.default.createElement("div",{className:"relative w-full"},n.default.createElement(Fm,Yi({type:"date"},s,i,{placeholder:r,className:c((e={"border border-primary-400 peer w-full rounded-sm bg-primary-300/10 pt-5 px-3 pb-2 text-md theme-text-md placeholder-transparent placeholder-shown:p-3 focus:border-secondary-500 focus:outline-none h-[50px]":!0,"border-danger-500":l.touched&&l.error,"transition-all ease-in-out":!0},e["".concat(o)]=o,e))})),n.default.createElement("label",{className:c({"absolute left-2 top-[0.7px] theme-text-sm text-[13.5px] peer-placeholder-shown:text-base peer-placeholder-shown:top-3 pointer-events-none":!0,"transition-all ease-in-out":!0})},r),l.touched&&l.error&&n.default.createElement(qb,{name:s.name,visibility:!0,variant:"danger"}))},exports.Flex=Uy,exports.FlexCol=Hy,exports.FlexRow=$y,exports.Footer=function(t){var e,r=t.children,o=t.styles;return n.default.createElement("div",{className:c((e={"bottom-0 w-full h-fit theme-bg-md":!0},e["".concat(o)]=o,e))},r||"Footer")},exports.FooterNavbar=function(){return n.default.createElement("div",null,"FooterNavbar")},exports.Form=function(t){var e=t.initialValues,r=void 0===e?{}:e,o=t.validationSchema,i=t.enableReinitialize,a=t.children,s=t.styles,l=t.onSubmit;return n.default.createElement(jm,{initialValues:r,validationSchema:o,enableReinitialize:i,onSubmit:l},(function(t){var e;return n.default.createElement(zm,null,n.default.createElement("div",{className:c((e={},e["".concat(s)]=s,e))},a))}))},exports.FormResponse=Vb,exports.Grid=function(t){var e,r=t.children,o=t.styles;return n.default.createElement("div",{className:c((e={},e.grid=!0,e["".concat(o)]=o,e))},r)},exports.Header=function(t){var e,r=t.position,o=void 0===r?"static":r,i=t.children,a=t.styles;return n.default.createElement("div",{className:c((e={static:"static"===o,fixed:"fixed"===o,sticky:"sticky"===o,"top-0 w-full h-fit z-50 theme-bg-md":!0},e["".concat(a)]=a,e))},i||"Header")},exports.HeaderNav=function(t){var e,r,o=t.data,i=void 0===o?[]:o,a=t.styles,s=function(t,e){var r=t.icon,o=t.name,i=t.badge,a=t.to,s=t.onClick,c=t.component,l=Xi(t,["icon","name","badge","to","onClick","component"]),u=c;return n.default.createElement(u,Yi({key:e,icon:r,name:o,badge:i,to:a,onClick:s},l))},l=function(t,e){var r=t.icon,o=t.name,i=t.badge;t.to;var a=t.items,c=t.component,u=Xi(t,["icon","name","badge","to","items","component"]),d=c,f=a&&Array.isArray(a)?a.map((function(t,e){return"items"in t?l(t,e):s(t,e)})):null;return n.default.createElement(d,Yi({key:e,icon:r,name:o,badge:i},u),f)},u=Gi([],i,!0);if(u.length>0){var d=u.map((function(t,e){return"items"in t?l(t,e):s(t,e)}));r=n.default.createElement("div",{className:"flex flex-row"},d)}return n.default.createElement("div",{className:c((e={},e["".concat(a)]=a,e))},r)},exports.HeaderNavGroup=function(e){var r,o=e.icon,i=e.name,a=e.description,s=e.badge,l=e.to,u=e.styles,d=e.children,f=t.useState(!0),h=f[0],p=f[1],g=t.useRef(null);Yy(g,(function(){return p(!0)}));return n.default.createElement("div",{className:"relative w-full",ref:g},n.default.createElement("div",{className:c((r={"flex flex-row gap-2 items-center justify-between cursor-pointer p-3 w-full":!0,"transition-all duration-300 ease-in-out":!0,"theme-text-md bg-gradient-to-t from-dark-500/10 dark:from-green-700/10":!0,"hover:bg-dark-500/10 hover:dark:bg-green-700/20":!0,"bg-dark-500/10 dark:bg-green-700/20":!h},r["".concat(u)]=u,r)),onClick:function(){d?p(!h):l&&(window.location.href=l)}},n.default.createElement("div",null,n.default.createElement(Xy,{icon:o,name:i,description:a,badge:s})),d&&n.default.createElement(Df,{className:c({"text-md":!0,"transition-all ease-in-out duration-300":!0,"rotate-180":!h})})),!h&&d&&n.default.createElement("div",{className:c({"absolute min-w-80 left-0 top-full mt-1 border border-dark-300/10 dark:border-dark-300/50 shadow-lg theme-shadow-lg z-50 w-full theme-bg-md":!0,"transition-all duration-300 ease-in-out":!0})},d))},exports.HeaderNavItem=function(t){var e,r=t.icon,o=t.name,i=t.description,a=t.badge,s=t.to,l=t.onClick,u=t.styles;return n.default.createElement("div",{onClick:function(){s?window.location.href=s:l&&l()},className:c((e={"flex flex-row items-center gap-3 cursor-pointer p-3 w-full":!0,"transition-all duration-200 ease-in-out":!0,"theme-text-md border-b border-dark-500/20 dark:border-secondary-900/20 bg-gradient-to-r from-dark-500/10 dark:from-secondary-900/10":!0,"hover:from-dark-500/20 hover:dark:from-secondary-900/20":!0},e["".concat(u)]=u,e))},n.default.createElement(Xy,{icon:r,name:o,description:i,badge:a}))},exports.HeaderNavItemTitle=function(t){var e,r=t.icon,o=t.name,i=t.description,a=t.badge,s=t.styles;return n.default.createElement("div",{className:c((e={"p-3 theme-text-md font-thin":!0},e["".concat(s)]=s,e))},n.default.createElement(Xy,{icon:r,name:o,description:i,badge:a}))},exports.HeaderNavbar=function(t){var e=t.left,r=t.middle,o=t.right;return n.default.createElement("div",{className:c({"flex flex-row items-center justify-between min-h-[50px] sticky top-0 z-50 px-0":!0,"border-b border-dark-500/40 dark:border-secondary-500 theme-bg-md":!0})},n.default.createElement("div",null,e),n.default.createElement("div",null,r),n.default.createElement("div",null,o))},exports.Image=function(t){var e,r=t.alt,o=t.src,i=void 0===o?"https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png":o,a=t.height,s=void 0===a?100:a,l=t.width,u=void 0===l?200:l,d=t.styles;return n.default.createElement("img",{src:i,alt:r,height:s,width:u,className:c((e={"object-contain w-full":!0},e["".concat(d)]=d,e))})},exports.ImageInput=iy,exports.Info=function(t){var e,r=t.children,o=t.styles;return n.default.createElement("div",{className:c((e={"w-full p-5 border border-gray-800/70 bg-gray-800/30 rounded-md text-gray-500":!0},e["".concat(o)]=o,e))},r)},exports.Input=function(e){var r,o=e.type,i=void 0===o?"text":o,a=e.placeholder,s=e.styles,l=e.step,u=Xi(e,["type","placeholder","styles","step"]),d=Nm(u),f=d[0],h=d[1],p=t.useState(!1),g=p[0],m=p[1],b="password"===i?g?"text":"password":i;return n.default.createElement("div",{className:"relative w-full"},n.default.createElement(Fm,Yi({type:b,step:"number"===b&&l?l:void 0},f,u,{placeholder:a,className:c((r={"border peer w-full rounded-sm bg-primary-300/10 pt-5 px-3 pb-2 text-md theme-text-md placeholder-transparent placeholder-shown:p-3 focus:outline-none h-[50px]":!0,"border-primary-400 focus:border-secondary-500":!(h.touched&&h.error),"border-danger-500":h.touched&&h.error},r["".concat(s)]=s,r))})),n.default.createElement("label",{className:c({"absolute left-2 top-[0.7px] theme-text-sm text-[13.5px] peer-placeholder-shown:text-base peer-placeholder-shown:top-3 pointer-events-none":!0,"transition-all ease-in-out":!0})},a),"password"===i&&n.default.createElement(ty,{onClick:function(t){return m(t)}}),n.default.createElement(qb,{name:f.name,visibility:!(!h.touched||!h.error),variant:"danger"}))},exports.InputResponse=qb,exports.Layout=function(t){var e,r=t.flexDirection,o=void 0===r?"vertical":r,i=t.children,a=t.styles;return n.default.createElement("div",{className:c((e={"flex bg-light-600":!0,"flex-col":"vertical"===o,"flex-row":"horizontal"===o},e["".concat(a)]=a,e))},i)},exports.LineChart=function(t){var e=t.data,r=t.options;return n.default.createElement("div",{style:{width:"80%",margin:"auto"}},n.default.createElement($i,{data:e,options:r}))},exports.Link=_f,exports.List=function(t){var e=t.title,r=t.children;return n.default.createElement("div",{className:"py-3"},e&&n.default.createElement("div",{className:"text-paragraph font-semibold"},e),n.default.createElement("div",{className:"flex flex-col gap-1"},r))},exports.ListItem=function(t){var e=t.TypographyComponent,r=void 0===e?n.default.createElement(xf,{level:1}):e,o=t.bulletVisible,i=void 0===o||o,a=t.children;return n.default.createElement("div",{className:"inline-flex gap-3"},i&&n.default.createElement("div",{className:c({"text-[10px] relative top-[10px]":!0})},n.default.createElement(Mf,null)),n.default.createElement(Ff,{TypographyComponent:r,x:a}))},exports.Menu=Ly,exports.MenuGroup=function(e){var r,o=e.icon,i=e.name,a=e.badge;e.to;var s=e.styles,l=e.children,u=t.useState(!0),d=u[0],f=u[1];return n.default.createElement("div",null,n.default.createElement("div",{className:c((r={"flex flex-row justify-between items-center p-4 theme-text-md border-b border-dark-500/40 dark:border-secondary-800/40":!0,"theme-gradient-to-r-xs":!0,"hover:cursor-pointer hover:theme-gradient-to-r-sm":!0,"transition-all ease-in-out":!0},r["".concat(s)]=s,r)),onClick:function(){return f(!d)}},n.default.createElement("div",{className:"flex flex-row gap-3"},n.default.createElement(By,{icon:o,name:i,badge:a})),n.default.createElement(Df,{className:c({"text-md":!0,"transition-all ease-in-out duration-300":!0,"rotate-180":!d})})),!d&&n.default.createElement("div",null,l))},exports.MenuItem=function(t){var e=t.icon,r=t.name,o=t.badge,i=t.to,a=t.onClick,s=t.styles;return i?n.default.createElement("div",{onClick:function(){i?window.location.href=i:a&&a()}},n.default.createElement(Vy,{icon:e,name:r,badge:o,styles:s})):n.default.createElement("div",{onClick:a},n.default.createElement(Vy,{icon:e,name:r,badge:o,styles:s}))},exports.MenuItemTitle=function(t){var e,r=t.icon,o=t.name,i=t.badge,a=t.styles;return n.default.createElement("div",{className:c((e={"flex flex-row gap-3 p-4 font-semibold uppercase theme-text-md":!0},e["".concat(a)]=a,e))},n.default.createElement(By,{icon:r,name:o,badge:i}))},exports.Modal=function(e){var r,o=e.title,i=e.show,a=void 0!==i&&i,s=e.handleOnClose,l=e.children,u=e.isLoading,d=e.isSuccess,f=void 0===d||d,h=e.isError,p=e.error,g=e.styles,m=e.enableCloseOnClickOutside,b=void 0!==m&&m,y=t.useRef(null);return Yy(y,b?s:void 0),n.default.createElement(Fb,{show:a,enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-100 ease-out",leaveFrom:"transform scale-200 opacity-100",leaveTo:"transform scale-95 opacity-0",as:t.Fragment},n.default.createElement("div",{className:"bg-dark-900/90 top-0 bottom-0 left-0 right-0 z-50 fixed inset-0 flex items-center justify-center overflow-hidden"},n.default.createElement("div",{ref:y,className:c((r={"theme-bg-md theme-shadow-lg border border-gray-700/50 w-fit h-fit rounded-lg":!0},r["".concat(g)]=g,r))},n.default.createElement("div",{className:"theme-gradient-to-r-sm inline-flex items-center border-b w-full border-dark-500/40"},n.default.createElement("div",{className:"w-full text-center text-md font-semibold"},o),n.default.createElement("div",{className:c({"w-[60px] h-[60px] flex items-center justify-center transition-standard-fast":!0,"hover:cursor-pointer hover:bg-dark-500/40":!0}),onClick:s},"X")),n.default.createElement(Hb,{isLoading:u,isSuccess:f,isError:h,error:p},n.default.createElement("div",{className:"p-5 w-full"},l)))))},exports.MultiImageInput=function(e){var r=e.title,o=void 0===r?"Upload Images":r,i=e.uploadDir,a=void 0===i?"eg-frontend-admin-temp":i,s=Nm(Xi(e,["title","uploadDir"])),c=s[0],l=s[1],u=s[2],d=c.value,f=u.setValue,h=t.useRef(null);return t.useEffect((function(){}),[d]),n.default.createElement("div",null,n.default.createElement("div",{className:"flex flex-row flex-wrap gap-5 w-ful"},d.map((function(t,e){return n.default.createElement(ey,{key:e,imageUrl:t})})),n.default.createElement("div",null,n.default.createElement(iy,{ref:h,key:"new_img",name:"new_img",title:o,onValueChanged:function(t){f(Gi(Gi([],d,!0),[t],!1)),h.current&&h.current.handleResetClick()},disableSetValue:!0,uploadDir:a}))),n.default.createElement(qb,{name:c.name,visibility:!(!l.touched||!l.error),variant:"danger"}))},exports.Paragraph=xf,exports.PieChart=function(t){var e,r,o=t.data,i=t.options,a=t.styles,s=o.datasets[0].backgroundColor&&o.datasets[0].borderColor?o.datasets[0].backgroundColor:(null===(r=o.datasets[0].data)||void 0===r?void 0:r.map((function(){return function(){for(var t="#",e=0;e<6;e++)t+="0123456789ABCDEF"[Math.floor(16*Math.random())];return t}()})))||[],l=Yi(Yi({},o),{datasets:o.datasets.map((function(t){return Yi(Yi({},t),{backgroundColor:s,borderColor:s})}))});return n.default.createElement("div",{className:c((e={},e["".concat(a)]=a,e))},n.default.createElement(Wi,{data:l,options:i}))},exports.PriceTag=function(t){var e,r=t.discount,o=t.price,i=t.code,a=void 0===i?"USD":i,s=t.styles;return n.default.createElement("div",{className:c((e={"inline-flex gap-3 text-md w-fit":!0},e["".concat(s)]=s,e))},r&&0!==r&&n.default.createElement("div",{className:"bg-green-700 px-2 py-1 font-bold rounded-md text-gray-200"},"-",r,"%"),n.default.createElement("div",{className:"inline-flex gap-1 items-center"},r?n.default.createElement("div",{className:"inline-flex gap-[3px] font-semibold"},n.default.createElement("div",{className:"theme-text-sm line-through"},Lf(a),o),n.default.createElement("div",{className:"theme-text-md"},Lf(a),function(t,e){return(e-e/100*t).toFixed(2)}(r,o))):n.default.createElement("div",{className:"text-gray-50 font-semibold"},Lf(a),o),n.default.createElement("div",{className:"text-yellow-500 font-thin"},a)))},exports.Quote=kf,exports.Radio=function(t){var e=t.placeholder,r=t.options,o=Xi(t,["placeholder","options"]),i=o.name,a=Nm(o),s=a[0],l=a[1];return n.default.createElement("div",null,n.default.createElement("label",{className:c({" theme-text-sm text-[13.5px]":!0})},e),n.default.createElement(Fm,{name:i},(function(t){var e=t.field;return r.map((function(t){return n.default.createElement("div",{key:t.label,className:c({"flex flex-row gap-2 items-center mx-1 my-2":!0})},n.default.createElement("input",Yi({type:"radio",id:t.value},e,o,{value:t.value,checked:e.value===t.value,className:c({"appearance-none w-4 h-4 border-2 border-primary-400 rounded-full cursor-pointer transition-all duration-300":!0,"checked:bg-secondary-700 checked:border-primary-400":e.value===t.value})})),n.default.createElement("label",{htmlFor:t.value,className:c({"theme-text-md text-sm":!0})},t.label))}))})),n.default.createElement(qb,{name:s.name,visibility:!(!l.touched||!l.error),variant:"danger"}))},exports.Section=vf,exports.Select=function(t){var e,r=t.placeholder,o=t.options,i=t.styles,a=Xi(t,["placeholder","options","styles"]),s=Nm(a),l=s[0],u=s[1];return n.default.createElement("div",{className:"relative"},n.default.createElement(Fm,Yi({as:"select"},a,{className:c((e={"border peer w-full rounded-sm bg-primary-300/10 pt-5 px-3 pb-2 text-md theme-text-md placeholder-transparent placeholder-shown:p-3 focus:border-secondary-500 focus:outline-none h-[50px]":!0,"border-primary-400":!(u.touched&&u.error),"border-red-500":u.touched&&u.error,"transition-all ease-in-out":!0},e["".concat(i)]=i,e))}),o.map((function(t){return n.default.createElement("option",{key:t.value,value:t.value},t.label)}))),n.default.createElement("label",{className:c({"absolute left-2 top-[0.7px] theme-text-sm text-[13.5px]":!0})},r),n.default.createElement(qb,{name:l.name,visibility:!(!u.touched||!u.error),variant:"danger"}))},exports.ShowMore=function(e){var r=e.text,o=e.limit,i=t.useState(!1),a=i[0],s=i[1];return n.default.createElement("div",null,a?r:"".concat(r.substring(0,o)),r.length>o&&n.default.createElement("div",{className:"relative"},!a&&n.default.createElement("div",{className:"absolute top-[-20px] h-[20px] w-full bg-gradient-to-t from-slate-900/70 to-transparent"}),n.default.createElement("div",{className:c({"text-blue-300 px-1 pb-1 mt-1":!0,"bg-slate-900/70":!a,"bg-gradient-to-t from-slate-900/50 to-transparent":a})},n.default.createElement("div",{className:"text-xs w-fit hover:cursor-pointer",onClick:function(){return s(!a)}},a?"Show less":"Show more"))))},exports.Sidebar=function(t){var e=t.data;return n.default.createElement("div",null,n.default.createElement(Ly,{data:e,styles:c({"h-full z-10":!0,"sidebar_nav_scrollbar max-h-screen":!0})}))},exports.SidebarToggler=function(t){var e=t.handleToggleSider;return n.default.createElement("div",{className:c({"text-xl text-dark-500 dark:text-secondary-600 p-3":!0,"hover:bg-dark-400/30 hover:dark:bg-dark-300/50 hover:cursor-pointer":!0,"transition-all ease-in-out":!0}),onClick:e},n.default.createElement(Kb,null))},exports.Sider=function(t){var e=t.children,r=t.visibility,o=t.isMobile,i=t.handleClose;return n.default.createElement(n.default.Fragment,null,o&&r&&n.default.createElement("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-40",onClick:i}),n.default.createElement(Fb,{show:r,enter:"transform transition duration-200 ease-out",enterFrom:"-translate-x-full",enterTo:"translate-x-0",leave:"transform transition duration-200 ease-in",leaveFrom:"translate-x-0",leaveTo:"-translate-x-full"},n.default.createElement("div",{className:c("fixed h-full w-[300px] theme-bg-md shadow-lg z-50","left-0")},e)))},exports.Skeleton=Uf,exports.Slider=function(e){var r=e.isLoading,o=e.isSuccess,i=e.coverArt,a=e.screenshots,s=t.useState([{img:i,selected:!0}]),c=s[0],l=s[1];t.useEffect((function(){l([{img:i,selected:!0}])}),[o]),t.useEffect((function(){if(a){var t=[];a.forEach((function(e){t.push({img:e,selected:!1})})),l((function(e){return Gi(Gi([],e,!0),t,!0)}))}}),[o]);var u=t.useState(i),d=u[0],f=u[1];return t.useEffect((function(){f(i)}),[i]),n.default.createElement("div",null,r?n.default.createElement("div",null,n.default.createElement(Uf,{styles:"w-full aspect-w-16 aspect-h-9"})):n.default.createElement("div",null,n.default.createElement("div",null,n.default.createElement(gf,{publicId:d,alt:"displayImg",styles:"aspect-w-16 aspect-h-9"})),n.default.createElement("div",{className:"relative h-[130px]"},n.default.createElement("div",{className:"absolute pt-2 pb-4 w-full flex space-x-2 overflow-auto"},c.map((function(t,e){return n.default.createElement(Wf,{key:e,img:t.img,onClick:function(){return function(t,e){f(e);var r=c.map((function(e,r){return Yi(Yi({},e),r===t?{selected:!0}:{selected:!1})}));l(r)}(e,t.img)},selected:t.selected})}))))))},exports.StarRating=Bf,exports.StarRatingDistribution=function(t){var e=t.numericRating,r=void 0===e||e,o=t.progressBarsRating,i=void 0===o||o,a=t.ratingDistribution,s=void 0===a?[{star:5,count:0},{star:4,count:0},{star:3,count:0},{star:2,count:0},{star:1,count:0}]:a,c=s.reduce((function(t,e){return t+e.count}),0),l=c>0?s.reduce((function(t,e){return t+e.star*e.count}),0)/c:0,u=s.map((function(t){return{star:t.star,percentage:c>0?t.count/c*100:0}}));return n.default.createElement("div",{className:"flex flex-row items-center justify-center gap-10 p-5 bg-gray-800 bg-opacity-50 border border-gray-800 rounded-md shadow-sm"},r&&n.default.createElement(Vf,{averageRating:l,totalReviews:c}),i&&n.default.createElement($f,{ratingDistribution:u}))},exports.StarRatingInput=function(e){var r,o=e.starAmount,i=void 0===o?5:o,a=e.styles,s=Xi(e,["starAmount","styles"]),l=s.name,u=Nm(s),d=u[0],f=u[1],h=mm(),p=t.useState(Number(d.value)||0),g=p[0],m=p[1],b=t.useState(null),y=b[0],v=b[1];return t.useEffect((function(){m(Number(d.value))}),[d.value]),n.default.createElement("div",{className:c((r={"inline-flex gap-[4px] text-[20px]":!0},r["".concat(a)]=a,r))},n.default.createElement(Fm,{name:l},(function(){return Array.from({length:i},(function(t,e){return n.default.createElement("button",{type:"button",key:e,id:e.toString(),onClick:function(){return function(t){m(t+1),h.setFieldValue(l,t+1)}(e)},onMouseEnter:function(){return v(e)},onMouseLeave:function(){return v(null)},className:c({"text-yellow-600":e<=(null!=y?y:g-1),"text-gray-400":e>(null!=y?y:g-1)})},e<=(null!=y?y:g-1)?n.default.createElement(Rf,null):n.default.createElement(Nf,null))}))})),n.default.createElement(qb,{name:d.name,visibility:!(!f.touched||!f.error),variant:"danger"}))},exports.Switch=function(t){var e=t.label,r=t.description,o=t.showStatus,i=void 0!==o&&o,a=Xi(t,["label","description","showStatus"]),s=a.name,l=Nm(a),u=l[0],d=l[1],f=l[2];return n.default.createElement("div",null,n.default.createElement("div",{className:"flex flex-row justify-between w-full gap-3"},n.default.createElement("div",{className:"flex flex-col gap-1"},e&&n.default.createElement("label",{className:"theme-text-sm text-[13.5px]"},e),r&&n.default.createElement("label",{className:"theme-text-md text-[12px] max-w-[500px]"},r)),n.default.createElement(Fm,{name:s},(function(){return n.default.createElement("label",{className:"relative inline-flex cursor-pointer"},n.default.createElement("input",{type:"checkbox",className:"sr-only peer",checked:u.value,readOnly:!0}),n.default.createElement("div",{onClick:function(){return f.setValue(!u.value)},className:c("w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer dark:bg-dark-100","peer-checked:after:translate-x-full peer-checked:after:border-white","after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white","after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all","dark:border-dark-200 peer-checked:bg-secondary-600")}),i&&n.default.createElement("span",{className:"ml-3 text-sm font-medium text-dark-900 dark:text-dark-100"},u.value?"ON":"OFF"))}))),n.default.createElement(qb,{name:s,visibility:!(!d.touched||!d.error),variant:"danger"}))},exports.Table=function(t){var e=t.title,r=t.headers,o=t.data,i=t.isLoading,a=t.isSuccess,s=void 0===a||a,c=t.isError,l=t.error,u=t.enableSelect,d=void 0===u||u,f=t.maxRowCount,h=void 0===f?10:f;return n.default.createElement("div",null,n.default.createElement(Hb,{isLoading:i,isSuccess:s,isError:c,error:l},n.default.createElement(Xb,{title:e,headers:r,data:o,enableSelect:d,maxRowCount:h})))},exports.Tag=function(t){var e,r=t.text,o=t.styles;return n.default.createElement("span",{className:c((e={"text-xs bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-200 px-2 py-1 rounded mr-2 mt-1":!0},e["".concat(o)]=o,e))},r)},exports.TextArea=function(t){var e,r,o=t.placeholder,i=t.limit,a=t.styles,s=Xi(t,["placeholder","limit","styles"]),l=Nm(s),u=l[0],d=l[1];return n.default.createElement("div",null,n.default.createElement("div",{className:"relative"},n.default.createElement(Fm,Yi({as:"textarea",placeholder:o},s,{className:c((e={"border w-full bg-primary-300/10 theme-text-md outline-none px-3 py-1 rounded-sm resize-none focus:resize-none focus:outline-none placeholder:theme-text-sm":!0,"transition-all ease-in-out":!0,"border-primary-400 focus:border-secondary-500":!(d.touched&&d.error),"border-danger-500":d.touched&&d.error},e["".concat(a)]=a,e))})),n.default.createElement("div",{className:"absolute bottom-0 right-0 p-3 text-xs text-dark-50 font-semibold"},null===(r=u.value)||void 0===r?void 0:r.length,"/",i)),n.default.createElement(qb,{name:u.name,visibility:!(!d.touched||!d.error),variant:"danger"}))},exports.ThemeContext=Gy,exports.ThemeProvider=function(e){var r=e.defaultTheme,o=void 0===r?"dark":r,i=e.children,a=t.useState((function(){return localStorage.getItem("theme")||o})),s=a[0],c=a[1];t.useEffect((function(){"dark"===s?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),localStorage.setItem("theme",s)}),[s]);return n.default.createElement(Gy.Provider,{value:{theme:s,setTheme:c,toggleTheme:function(){c((function(t){return"dark"===t?"light":"dark"}))}}},i)},exports.ThemeSwitch=function(){var e=t.useContext(Gy);if(!e)return null;var r=e.theme,o=e.toggleTheme;return n.default.createElement("button",{onClick:o,className:"relative w-16 h-8 flex items-center bg-gray-300 dark:bg-gray-800 rounded-full p-1 transition-all"},n.default.createElement(Jb,{className:"absolute left-2 text-yellow-500 transition-opacity duration-300 z-10",style:{opacity:"dark"===r?0:1}}),n.default.createElement(Qb,{className:"absolute right-2 text-blue-400 transition-opacity duration-300 z-10",style:{opacity:"dark"===r?1:0}}),n.default.createElement("div",{className:c("w-6 h-6 bg-white dark:bg-gray-600 rounded-full shadow-md transition-transform duration-300","dark"===r?"translate-x-8":"translate-x-0")}))},exports.TitleBanner=function(t){var e=t.title,r=void 0===e?"Title":e,o=t.level,i=void 0===o?1:o,a=t.children;switch(i){case 1:return n.default.createElement(w,{title:r},a);case 2:return n.default.createElement(x,{title:r},a);default:return n.default.createElement(n.default.Fragment,null)}},exports.Toast=function(){return n.default.createElement(zy,{position:"bottom-center",autoClose:2e3,hideProgressBar:!0,newestOnTop:!0,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0})},exports.Transition=zb,exports.Typography=Ef,exports.sendToast=function(t){switch(void 0===t&&(t={status:"",message:""}),null==t?void 0:t.status){case"success":default:jy.success(null==t?void 0:t.message);break;case"warning":jy.warning(null==t?void 0:t.message);break;case"error":jy.error(null==t?void 0:t.message)}},exports.useClickOutside=Yy,exports.useModal=function(){var e=t.useState(!1),r=e[0],n=e[1];return{show:r,handleOpenModal:function(){n(!0)},handleCloseModal:function(){n(!1)}}},exports.useSider=function(e){void 0===e&&(e=!0);var r=t.useState(e),n=r[0],o=r[1],i=t.useState(window.innerWidth<768),a=i[0],s=i[1];t.useEffect((function(){var t=function(){s(window.innerWidth<768)};return window.addEventListener("resize",t),function(){return window.removeEventListener("resize",t)}}),[]);return{show:n,handleToggleSider:function(){o((function(t){return!t}))},handleCloseSider:function(){o(!1)},isMobile:a}};