elseware-ui 2.2.24 → 2.2.26
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.
- package/build/components/data-display/avatar/Avatar.d.ts +16 -0
- package/build/components/data-display/badge/Badge.d.ts +15 -0
- package/build/components/data-display/banners/TitleBanner.d.ts +17 -0
- package/build/components/data-display/charts/BarChart.d.ts +10 -0
- package/build/components/data-display/charts/LineChart.d.ts +9 -0
- package/build/components/data-display/charts/PieChart.d.ts +10 -0
- package/build/components/data-display/chip/Chip.d.ts +9 -0
- package/build/components/data-display/image/CloudinaryImage.d.ts +8 -0
- package/build/components/data-display/image/Image.d.ts +8 -0
- package/build/components/data-display/image/index.d.ts +3 -0
- package/build/components/data-display/info/Info.d.ts +8 -0
- package/build/components/data-display/lists/List.d.ts +8 -0
- package/build/components/data-display/lists/ListItem.d.ts +14 -0
- package/build/components/data-display/lists/index.d.ts +3 -0
- package/build/components/data-display/price-tag/PriceTag.d.ts +8 -0
- package/build/components/data-display/rating/StarRating.d.ts +9 -0
- package/build/components/data-display/rating/StarRatingDistribution.d.ts +23 -0
- package/build/components/data-display/rating/index.d.ts +3 -0
- package/build/components/data-display/slider/Slider.d.ts +8 -0
- package/build/components/data-display/slider/SliderItem.d.ts +8 -0
- package/build/components/data-display/table/Table.d.ts +15 -0
- package/build/components/data-display/table/TableContent.d.ts +11 -0
- package/build/components/data-display/table/TableRow.d.ts +8 -0
- package/build/components/data-display/tag/Tag.d.ts +6 -0
- package/build/components/data-display/typography/chapter/Chapter.d.ts +12 -0
- package/build/components/data-display/typography/index.d.ts +13 -0
- package/build/components/data-display/typography/link/Link.d.ts +13 -0
- package/build/components/data-display/typography/paragraph/Paragraph.d.ts +12 -0
- package/build/components/data-display/typography/quote/Quote.d.ts +5 -0
- package/build/components/data-display/typography/section/Section.d.ts +12 -0
- package/build/components/data-entry/button/Button.d.ts +19 -0
- package/build/components/data-entry/checkbox/Checkbox.d.ts +7 -0
- package/build/components/data-entry/date-selector/DateSelector.d.ts +7 -0
- package/build/components/data-entry/form/Form.d.ts +11 -0
- package/build/components/data-entry/form/FormResponse.d.ts +10 -0
- package/build/components/data-entry/form/index.d.ts +3 -0
- package/build/components/data-entry/image-input/ImageInput.d.ts +13 -0
- package/build/components/data-entry/image-input/ImageView.d.ts +7 -0
- package/build/components/data-entry/input/Input.d.ts +11 -0
- package/build/components/data-entry/input/InputResponse.d.ts +9 -0
- package/build/components/data-entry/input/index.d.ts +3 -0
- package/build/components/data-entry/multi-image-input/MultiImageInput.d.ts +8 -0
- package/build/components/data-entry/radio/Radio.d.ts +7 -0
- package/build/components/data-entry/rating/StarRatingInput.d.ts +7 -0
- package/build/components/data-entry/rating/index.d.ts +2 -0
- package/build/components/data-entry/select/Select.d.ts +8 -0
- package/build/components/data-entry/switch/Switch.d.ts +9 -0
- package/build/components/data-entry/text-area/TextArea.d.ts +8 -0
- package/build/components/feedback/backdrop/Backdrop.d.ts +8 -0
- package/build/components/feedback/skeleton/Skeleton.d.ts +7 -0
- package/build/components/feedback/toast/Toast.d.ts +7 -0
- package/build/components/feedback/transition/TransitionDropdown.d.ts +8 -0
- package/build/components/feedback/transition/TransitionFadeIn.d.ts +8 -0
- package/build/components/feedback/transition/index.d.ts +7 -0
- package/build/components/general/content-area/ContentArea.d.ts +9 -0
- package/build/components/general/footer-navbar/FooterNavbar.d.ts +2 -0
- package/build/components/general/header-navbar/HeaderNavbar.d.ts +9 -0
- package/build/components/general/sidebar/Sidebar.d.ts +6 -0
- package/build/components/general/sidebar/SidebarToggler.d.ts +5 -0
- package/build/components/general/sidebar/index.d.ts +3 -0
- package/build/components/layout/flex/FlexCol.d.ts +9 -0
- package/build/components/layout/flex/FlexRow.d.ts +9 -0
- package/build/components/layout/flex/index.d.ts +7 -0
- package/build/components/layout/grid/Grid.d.ts +8 -0
- package/build/components/layout/layout/Content.d.ts +9 -0
- package/build/components/layout/layout/Footer.d.ts +7 -0
- package/build/components/layout/layout/Header.d.ts +8 -0
- package/build/components/layout/layout/Layout.d.ts +8 -0
- package/build/components/layout/layout/Sider.d.ts +9 -0
- package/build/components/layout/layout/index.d.ts +6 -0
- package/build/components/navigation/breadcrumb/Breadcrumb.d.ts +11 -0
- package/build/components/navigation/breadcrumb/BreadcrumbItem.d.ts +7 -0
- package/build/components/navigation/breadcrumb/index.d.ts +3 -0
- package/build/components/navigation/header-nav/HeaderNav.d.ts +25 -0
- package/build/components/navigation/header-nav/HeaderNavGroup.d.ts +13 -0
- package/build/components/navigation/header-nav/HeaderNavItem.d.ts +12 -0
- package/build/components/navigation/header-nav/HeaderNavItemContext.d.ts +9 -0
- package/build/components/navigation/header-nav/HeaderNavItemTitle.d.ts +10 -0
- package/build/components/navigation/header-nav/index.d.ts +5 -0
- package/build/components/navigation/menu/MIContext.d.ts +8 -0
- package/build/components/navigation/menu/Menu.d.ts +25 -0
- package/build/components/navigation/menu/MenuGroup.d.ts +11 -0
- package/build/components/navigation/menu/MenuItem.d.ts +17 -0
- package/build/components/navigation/menu/MenuItemTitle.d.ts +9 -0
- package/build/components/navigation/menu/index.d.ts +5 -0
- package/build/components/other/modal/Modal.d.ts +16 -0
- package/build/components/surfaces/accordion/Accordion.d.ts +11 -0
- package/build/components/surfaces/card/Card.d.ts +8 -0
- package/build/components/surfaces/card/CardContent.d.ts +8 -0
- package/build/components/surfaces/card/CardFooter.d.ts +8 -0
- package/build/components/surfaces/card/CardHeader.d.ts +10 -0
- package/build/components/surfaces/card/index.d.ts +5 -0
- package/build/components/theme/ThemeContext.d.ts +14 -0
- package/build/components/theme/ThemeSwitch.d.ts +1 -0
- package/build/components/theme/index.d.ts +3 -0
- package/build/components/utils/AsyncComponentWrapper.d.ts +11 -0
- package/build/components/utils/ShowMore.d.ts +6 -0
- package/build/data/enums.d.ts +48 -0
- package/build/data/meta/currency.d.ts +5 -0
- package/build/data/styles.d.ts +67 -0
- package/build/data/test/test-data.d.ts +20 -0
- package/build/index.es.js +34488 -0
- package/build/index.js +34594 -0
- package/build/layouts/DefaultLayout.d.ts +6 -0
- package/build/utils/hooks/components/useModal.d.ts +6 -0
- package/build/utils/hooks/components/useSider.d.ts +7 -0
- package/build/utils/useClickOutside.d.ts +5 -0
- package/package.json +7 -7
- package/dist/index.esm.min.js +0 -28
- package/dist/index.min.js +0 -29
- /package/{dist → build}/index.d.ts +0 -0
package/dist/index.esm.min.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import*as t from"react";import e,{forwardRef as r,useRef as n,useEffect as o,createContext as i,createRef as a,PureComponent as s,Fragment as c,useState as l,useMemo as u,useContext as d,useImperativeHandle as f,createElement as h,Children as p,useCallback as g,useLayoutEffect as m,Component as b,isValidElement as y,cloneElement as v,useSyncExternalStore as w}from"react";function x(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))}}x('*,::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}}');x('*,::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 _=function(){return _=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},_.apply(this,arguments)};function k(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 j(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 S(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 O(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;var T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function E(t){var e={exports:{}};return t(e,e.exports),e.exports
|
|
2
|
-
/**
|
|
3
|
-
* @license React
|
|
4
|
-
* react-jsx-runtime.production.min.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/}var A=Symbol.for("react.element"),P=Symbol.for("react.fragment"),C=Object.prototype.hasOwnProperty,D=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,M={key:!0,ref:!0,__self:!0,__source:!0};function R(t,e,r){var n,o={},i=null,a=null;for(n in void 0!==r&&(i=""+r),void 0!==e.key&&(i=""+e.key),void 0!==e.ref&&(a=e.ref),e)C.call(e,n)&&!M.hasOwnProperty(n)&&(o[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps)void 0===o[n]&&(o[n]=e[n]);return{$$typeof:A,type:t,key:i,ref:a,props:o,_owner:D.current}}var I={Fragment:P,jsx:R,jsxs:R},N=E((function(t,r){"production"!==process.env.NODE_ENV&&function(){var t=e,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),m=Symbol.iterator;var b=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];!function(t,e,r){var n=b.ReactDebugCurrentFrame,o=n.getStackAddendum();""!==o&&(e+="%s",r=r.concat([o]));var i=r.map((function(t){return String(t)}));i.unshift("Warning: "+e),Function.prototype.apply.call(console[t],console,i)}("error",t,r)}var v;function w(t){return t.displayName||"Context"}function x(t){if(null==t)return null;if("number"==typeof t.tag&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case i:return"Fragment";case o:return"Portal";case s:return"Profiler";case a:return"StrictMode";case d:return"Suspense";case f:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case l:return w(t)+".Consumer";case c:return w(t._context)+".Provider";case u:return function(t,e,r){var n=t.displayName;if(n)return n;var o=e.displayName||e.name||"";return""!==o?r+"("+o+")":r}(t,t.render,"ForwardRef");case h:var e=t.displayName||null;return null!==e?e:x(t.type)||"Memo";case p:var r=t,n=r._payload,g=r._init;try{return x(g(n))}catch(t){return null}}return null}v=Symbol.for("react.module.reference");var _,k,j,S,O,T,E,A=Object.assign,P=0;function C(){}C.__reactDisabledLog=!0;var D,M=b.ReactCurrentDispatcher;function R(t,e,r){if(void 0===D)try{throw Error()}catch(t){var n=t.stack.trim().match(/\n( *(at )?)/);D=n&&n[1]||""}return"\n"+D+t}var I,N=!1,F="function"==typeof WeakMap?WeakMap:Map;function z(t,e){if(!t||N)return"";var r,n=I.get(t);if(void 0!==n)return n;N=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=M.current,M.current=null,function(){if(0===P){_=console.log,k=console.info,j=console.warn,S=console.error,O=console.group,T=console.groupCollapsed,E=console.groupEnd;var t={configurable:!0,enumerable:!0,value:C,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}P++}();try{if(e){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(t){r=t}Reflect.construct(t,[],a)}else{try{a.call()}catch(t){r=t}t.call(a.prototype)}}else{try{throw Error()}catch(t){r=t}t()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var s=e.stack.split("\n"),c=r.stack.split("\n"),l=s.length-1,u=c.length-1;l>=1&&u>=0&&s[l]!==c[u];)u--;for(;l>=1&&u>=0;l--,u--)if(s[l]!==c[u]){if(1!==l||1!==u)do{if(l--,--u<0||s[l]!==c[u]){var d="\n"+s[l].replace(" at new "," at ");return t.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",t.displayName)),"function"==typeof t&&I.set(t,d),d}}while(l>=1&&u>=0);break}}}finally{N=!1,M.current=o,function(){if(0==--P){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},t,{value:_}),info:A({},t,{value:k}),warn:A({},t,{value:j}),error:A({},t,{value:S}),group:A({},t,{value:O}),groupCollapsed:A({},t,{value:T}),groupEnd:A({},t,{value:E})})}P<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var f=t?t.displayName||t.name:"",h=f?R(f):"";return"function"==typeof t&&I.set(t,h),h}function L(t,e,r){if(null==t)return"";if("function"==typeof t)return z(t,function(t){var e=t.prototype;return!(!e||!e.isReactComponent)}(t));if("string"==typeof t)return R(t);switch(t){case d:return R("Suspense");case f:return R("SuspenseList")}if("object"==typeof t)switch(t.$$typeof){case u:return z(t.render,!1);case h:return L(t.type,e,r);case p:var n=t,o=n._payload,i=n._init;try{return L(i(o),e,r)}catch(t){}}return""}I=new F;var B=Object.prototype.hasOwnProperty,V={},$=b.ReactDebugCurrentFrame;function U(t){if(t){var e=t._owner,r=L(t.type,t._source,e?e.type:null);$.setExtraStackFrame(r)}else $.setExtraStackFrame(null)}var H=Array.isArray;function W(t){return H(t)}function Y(t){return""+t}function X(t){if(function(t){try{return Y(t),!1}catch(t){return!0}}(t))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(t){return"function"==typeof Symbol&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object"}(t)),Y(t)}var q,K,G,Z=b.ReactCurrentOwner,J={key:!0,ref:!0,__self:!0,__source:!0};G={};function Q(t,e,r,o,i){var a,s={},c=null,l=null;for(a in void 0!==r&&(X(r),c=""+r),function(t){if(B.call(t,"key")){var e=Object.getOwnPropertyDescriptor(t,"key").get;if(e&&e.isReactWarning)return!1}return void 0!==t.key}(e)&&(X(e.key),c=""+e.key),function(t){if(B.call(t,"ref")){var e=Object.getOwnPropertyDescriptor(t,"ref").get;if(e&&e.isReactWarning)return!1}return void 0!==t.ref}(e)&&(l=e.ref,function(t,e){if("string"==typeof t.ref&&Z.current&&e&&Z.current.stateNode!==e){var r=x(Z.current.type);G[r]||(y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',x(Z.current.type),t.ref),G[r]=!0)}}(e,i)),e)B.call(e,a)&&!J.hasOwnProperty(a)&&(s[a]=e[a]);if(t&&t.defaultProps){var u=t.defaultProps;for(a in u)void 0===s[a]&&(s[a]=u[a])}if(c||l){var d="function"==typeof t?t.displayName||t.name||"Unknown":t;c&&function(t,e){var r=function(){q||(q=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",e))};r.isReactWarning=!0,Object.defineProperty(t,"key",{get:r,configurable:!0})}(s,d),l&&function(t,e){var r=function(){K||(K=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",e))};r.isReactWarning=!0,Object.defineProperty(t,"ref",{get:r,configurable:!0})}(s,d)}return function(t,e,r,o,i,a,s){var c={$$typeof:n,type:t,key:e,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c}(t,c,l,i,o,Z.current,s)}var tt,et=b.ReactCurrentOwner,rt=b.ReactDebugCurrentFrame;function nt(t){if(t){var e=t._owner,r=L(t.type,t._source,e?e.type:null);rt.setExtraStackFrame(r)}else rt.setExtraStackFrame(null)}function ot(t){return"object"==typeof t&&null!==t&&t.$$typeof===n}function it(){if(et.current){var t=x(et.current.type);if(t)return"\n\nCheck the render method of `"+t+"`."}return""}tt=!1;var at={};function st(t,e){if(t._store&&!t._store.validated&&null==t.key){t._store.validated=!0;var r=function(t){var e=it();if(!e){var r="string"==typeof t?t:t.displayName||t.name;r&&(e="\n\nCheck the top-level render call using <"+r+">.")}return e}(e);if(!at[r]){at[r]=!0;var n="";t&&t._owner&&t._owner!==et.current&&(n=" It was passed a child from "+x(t._owner.type)+"."),nt(t),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),nt(null)}}}function ct(t,e){if("object"==typeof t)if(W(t))for(var r=0;r<t.length;r++){var n=t[r];ot(n)&&st(n,e)}else if(ot(t))t._store&&(t._store.validated=!0);else if(t){var o=function(t){if(null===t||"object"!=typeof t)return null;var e=m&&t[m]||t["@@iterator"];return"function"==typeof e?e:null}(t);if("function"==typeof o&&o!==t.entries)for(var i,a=o.call(t);!(i=a.next()).done;)ot(i.value)&&st(i.value,e)}}function lt(t){var e,r=t.type;if(null!=r&&"string"!=typeof r){if("function"==typeof r)e=r.propTypes;else{if("object"!=typeof r||r.$$typeof!==u&&r.$$typeof!==h)return;e=r.propTypes}if(e){var n=x(r);!function(t,e,r,n,o){var i=Function.call.bind(B);for(var a in t)if(i(t,a)){var s=void 0;try{if("function"!=typeof t[a]){var c=Error((n||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}s=t[a](e,a,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(t){s=t}!s||s instanceof Error||(U(o),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",r,a,typeof s),U(null)),s instanceof Error&&!(s.message in V)&&(V[s.message]=!0,U(o),y("Failed %s type: %s",r,s.message),U(null))}}(e,t.props,"prop",n,t)}else if(void 0!==r.PropTypes&&!tt){tt=!0,y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",x(r)||"Unknown")}"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var ut={};function dt(t,e,r,o,m,b){var w=function(t){return"string"==typeof t||"function"==typeof t||t===i||t===s||t===a||t===d||t===f||t===g||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===h||t.$$typeof===c||t.$$typeof===l||t.$$typeof===u||t.$$typeof===v||void 0!==t.getModuleId)}(t);if(!w){var _="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(_+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var k,j=function(t){return void 0!==t?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":""}(m);_+=j||it(),null===t?k="null":W(t)?k="array":void 0!==t&&t.$$typeof===n?(k="<"+(x(t.type)||"Unknown")+" />",_=" Did you accidentally export a JSX literal instead of a component?"):k=typeof t,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",k,_)}var S=Q(t,e,r,m,b);if(null==S)return S;if(w){var O=e.children;if(void 0!==O)if(o)if(W(O)){for(var T=0;T<O.length;T++)ct(O[T],t);Object.freeze&&Object.freeze(O)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ct(O,t)}if(B.call(e,"key")){var E=x(t),A=Object.keys(e).filter((function(t){return"key"!==t})),P=A.length>0?"{key: someKey, "+A.join(": ..., ")+": ...}":"{key: someKey}";if(!ut[E+P])y('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',P,E,A.length>0?"{"+A.join(": ..., ")+": ...}":"{}",E),ut[E+P]=!0}return t===i?function(t){for(var e=Object.keys(t.props),r=0;r<e.length;r++){var n=e[r];if("children"!==n&&"key"!==n){nt(t),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),nt(null);break}}null!==t.ref&&(nt(t),y("Invalid attribute `ref` supplied to `React.Fragment`."),nt(null))}(S):lt(S),S}var ft=function(t,e,r){return dt(t,e,r,!1)},ht=function(t,e,r){return dt(t,e,r,!0)};r.Fragment=i,r.jsx=ft,r.jsxs=ht}()})),F=E((function(t){"production"===process.env.NODE_ENV?t.exports=I:t.exports=N})),z=E((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"},B={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"},V={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"},$={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"},U={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"},H={underline:"underline",overline:"overline",lineThrough:"line-through",noUnderline:"no-underline"},W={blank:"_blank",self:"_self",parent:"_parent",top:"_top"},Y={circle:"rounded-full",square:"rounded-none",roundedSquare:"rounded-lg",softRoundedSquare:"rounded-xl",pill:"rounded-full w-auto px-4"},X={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"},q=function(t){var e=t.alt,r=t.icon,n=t.children,o=void 0===n?"B":n,i=t.variant,a=void 0===i?"success":i,s=t.shape,c=void 0===s?"circle":s,l=t.size,u=void 0===l?"md":l,d=t.src,f=t.styles,h=t.onClick,p=t.borderVariant,g=void 0!==p&&p;return F.jsxs("div",_({onClick:h,className:z("inline-flex items-center justify-center text-center overflow-hidden",Y[c],X[u],f,g?"border-2 ".concat(U[a]):"".concat(L[a]))},{children:[d&&F.jsx("img",{src:d,alt:e,className:"p-1 rounded-full"}),r&&F.jsx("div",{children:r}),!d&&!r&&o&&o]}))},K={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"},G={circle:"rounded-full",square:"rounded-none",roundedSquare:"rounded-lg",softRoundedSquare:"rounded-xl",pill:"rounded-full w-auto px-4"},Z=function(t){var e,r=t.children,n=t.offset,o=t.dot,i=t.count,a=t.variant,s=void 0===a?"success":a,c=t.shape,l=void 0===c?"circle":c,u=t.size,d=void 0===u?"md":u,f=t.showZero,h=void 0===f||f,p=t.styles,g=n?{top:"".concat(n[0],"px"),right:"".concat(n[1],"px")}:{top:"0",right:"0"};return F.jsxs("div",_({className:"relative w-fit h-fit"},{children:[F.jsx("div",_({className:z((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[s])]=s,e["".concat(G[l])]=l,e["".concat(K[d])]=d,e["".concat(p)]=p,e.hidden=!(h||void 0!==i&&0!==i),e)),style:g},{children:!o&&(h||void 0!==i&&0!==i)&&i})),r&&r]}))},J=function(t){var e=t.title,r=void 0===e?"Title":e,n=t.children;return F.jsxs("div",_({className:"inline-flex items-center justify-between w-full theme-bg-md px-5 py-3"},{children:[F.jsx("div",_({className:"text-2xl font-semibold theme-text-md rounded-md"},{children:r})),F.jsx("div",{children:n})]}))},Q=function(t){var e=t.title,r=void 0===e?"Title":e,n=t.children;return F.jsxs("div",_({className:"mb-4 w-full flex flex-row items-center justify-between"},{children:[r&&F.jsx("div",_({className:"font-bold text-xl theme-text-sm border-l-2 border-l-gray-600 pl-3 py-1"},{children:r})),F.jsx("div",{children:n})]}))};function tt(t){var e=t.title,r=void 0===e?"Title":e,n=t.level,o=void 0===n?1:n,i=t.children;switch(o){case 1:return F.jsx(J,_({title:r},{children:i}));case 2:return F.jsx(Q,_({title:r},{children:i}));default:return F.jsx(F.Fragment,{})}}
|
|
11
|
-
/*!
|
|
12
|
-
* @kurkle/color v0.3.4
|
|
13
|
-
* https://github.com/kurkle/color#readme
|
|
14
|
-
* (c) 2024 Jukka Kurkela
|
|
15
|
-
* Released under the MIT License
|
|
16
|
-
*/function et(t){return t+.5|0}const rt=(t,e,r)=>Math.max(Math.min(t,r),e);function nt(t){return rt(et(2.55*t),0,255)}function ot(t){return rt(et(255*t),0,255)}function it(t){return rt(et(t/2.55)/100,0,1)}function at(t){return rt(et(100*t),0,100)}const st={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},ct=[..."0123456789ABCDEF"],lt=t=>ct[15&t],ut=t=>ct[(240&t)>>4]+ct[15&t],dt=t=>(240&t)>>4==(15&t);function ft(t){var e=(t=>dt(t.r)&&dt(t.g)&&dt(t.b)&&dt(t.a))(t)?lt:ut;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const ht=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function pt(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 gt(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 mt(t,e,r){const n=pt(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 bt(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 yt(t,e,r,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,r,n)).map(ot)}function vt(t,e,r){return yt(pt,t,e,r)}function wt(t){return(t%360+360)%360}function xt(t){const e=ht.exec(t);let r,n=255;if(!e)return;e[5]!==r&&(n=e[6]?nt(+e[5]):ot(+e[5]));const o=wt(+e[2]),i=+e[3]/100,a=+e[4]/100;return r="hwb"===e[1]?function(t,e,r){return yt(mt,t,e,r)}(o,i,a):"hsv"===e[1]?function(t,e,r){return yt(gt,t,e,r)}(o,i,a):vt(o,i,a),{r:r[0],g:r[1],b:r[2],a:n}}const _t={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"},kt={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 jt;function St(t){jt||(jt=function(){const t={},e=Object.keys(kt),r=Object.keys(_t);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,_t[i]);i=parseInt(kt[a],16),t[s]=[i>>16&255,i>>8&255,255&i]}return t}(),jt.transparent=[0,0,0,0]);const e=jt[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const Ot=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Tt=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Et=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function At(t,e,r){if(t){let n=bt(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*r,0===e?360:1)),n=vt(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function Pt(t,e){return t?Object.assign(e||{},t):t}function Ct(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=ot(t[3]))):(e=Pt(t,{r:0,g:0,b:0,a:1})).a=ot(e.a),e}function Dt(t){return"r"===t.charAt(0)?function(t){const e=Ot.exec(t);let r,n,o,i=255;if(e){if(e[7]!==r){const t=+e[7];i=e[8]?nt(t):rt(255*t,0,255)}return r=+e[1],n=+e[3],o=+e[5],r=255&(e[2]?nt(r):rt(r,0,255)),n=255&(e[4]?nt(n):rt(n,0,255)),o=255&(e[6]?nt(o):rt(o,0,255)),{r:r,g:n,b:o,a:i}}}(t):xt(t)}class Mt{constructor(t){if(t instanceof Mt)return t;const e=typeof t;let r;var n,o,i;"object"===e?r=Ct(t):"string"===e&&(i=(n=t).length,"#"===n[0]&&(4===i||5===i?o={r:255&17*st[n[1]],g:255&17*st[n[2]],b:255&17*st[n[3]],a:5===i?17*st[n[4]]:255}:7!==i&&9!==i||(o={r:st[n[1]]<<4|st[n[2]],g:st[n[3]]<<4|st[n[4]],b:st[n[5]]<<4|st[n[6]],a:9===i?st[n[7]]<<4|st[n[8]]:255})),r=o||St(t)||Dt(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=Pt(this._rgb);return t&&(t.a=it(t.a)),t}set rgb(t){this._rgb=Ct(t)}rgbString(){return this._valid?function(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${it(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}(this._rgb):void 0}hexString(){return this._valid?ft(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=bt(t),r=e[0],n=at(e[1]),o=at(e[2]);return t.a<255?`hsla(${r}, ${n}%, ${o}%, ${it(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=Et(it(t.r)),o=Et(it(t.g)),i=Et(it(t.b));return{r:ot(Tt(n+r*(Et(it(e.r))-n))),g:ot(Tt(o+r*(Et(it(e.g))-o))),b:ot(Tt(i+r*(Et(it(e.b))-i))),a:t.a+r*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new Mt(this.rgb)}alpha(t){return this._rgb.a=ot(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=et(.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 At(this._rgb,2,t),this}darken(t){return At(this._rgb,2,-t),this}saturate(t){return At(this._rgb,1,t),this}desaturate(t){return At(this._rgb,1,-t),this}rotate(t){return function(t,e){var r=bt(t);r[0]=wt(r[0]+e),r=vt(r),t.r=r[0],t.g=r[1],t.b=r[2]}(this._rgb,t),this}}
|
|
17
|
-
/*!
|
|
18
|
-
* Chart.js v4.4.8
|
|
19
|
-
* https://www.chartjs.org
|
|
20
|
-
* (c) 2025 Chart.js Contributors
|
|
21
|
-
* Released under the MIT License
|
|
22
|
-
*/function Rt(){}const It=(()=>{let t=0;return()=>t++})();function Nt(t){return null==t}function Ft(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 zt(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function Lt(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function Bt(t,e){return Lt(t)?t:e}function Vt(t,e){return void 0===t?e:t}const $t=(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 Ht(t,e,r,n){let o,i,a;if(Ft(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(zt(t))for(a=Object.keys(t),i=a.length,o=0;o<i;o++)e.call(r,t[a[o]],a[o])}function Wt(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 Yt(t){if(Ft(t))return t.map(Yt);if(zt(t)){const e=Object.create(null),r=Object.keys(t),n=r.length;let o=0;for(;o<n;++o)e[r[o]]=Yt(t[r[o]]);return e}return t}function Xt(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function qt(t,e,r,n){if(!Xt(t))return;const o=e[t],i=r[t];zt(o)&&zt(i)?Kt(o,i,n):e[t]=Yt(i)}function Kt(t,e,r){const n=Ft(e)?e:[e],o=n.length;if(!zt(t))return t;const i=(r=r||{}).merger||qt;let a;for(let e=0;e<o;++e){if(a=n[e],!zt(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 Gt(t,e){return Kt(t,e,{merger:Zt})}function Zt(t,e,r){if(!Xt(t))return;const n=e[t],o=r[t];zt(n)&&zt(o)?Gt(n,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=Yt(o))}const Jt={"":t=>t,x:t=>t.x,y:t=>t.y};function Qt(t,e){const r=Jt[e]||(Jt[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 te(t){return t.charAt(0).toUpperCase()+t.slice(1)}const ee=t=>void 0!==t,re=t=>"function"==typeof t,ne=(t,e)=>{if(t.size!==e.size)return!1;for(const r of t)if(!e.has(r))return!1;return!0};const oe=Math.PI,ie=2*oe,ae=ie+oe,se=Number.POSITIVE_INFINITY,ce=oe/180,le=oe/2,ue=oe/4,de=2*oe/3,fe=Math.log10,he=Math.sign;function pe(t,e,r){return Math.abs(t-e)<r}function ge(t){const e=Math.round(t);t=pe(t,e,t/1e3)?e:t;const r=Math.pow(10,Math.floor(fe(t))),n=t/r;return(n<=1?1:n<=2?2:n<=5?5:10)*r}function me(t){return!function(t){return"symbol"==typeof t||"object"==typeof t&&null!==t&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function be(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 ye(t){return t*(oe/180)}function ve(t){return t*(180/oe)}function we(t){if(!Lt(t))return;let e=1,r=0;for(;Math.round(t*e)/e!==t;)e*=10,r++;return r}function xe(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*oe&&(i+=ie),{angle:i,distance:o}}function _e(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function ke(t,e){return(t-e+ae)%ie-oe}function je(t){return(t%ie+ie)%ie}function Se(t,e,r,n){const o=je(t),i=je(e),a=je(r),s=je(i-o),c=je(a-o),l=je(o-i),u=je(o-a);return o===i||o===a||n&&i===a||s>c&&l<u}function Oe(t,e,r){return Math.max(e,Math.min(r,t))}function Te(t,e,r,n=1e-6){return t>=Math.min(e,r)-n&&t<=Math.max(e,r)+n}function Ee(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 Ae=(t,e,r,n)=>Ee(t,r,n?n=>{const o=t[n][e];return o<r||o===r&&t[n+1][e]===r}:n=>t[n][e]<r),Pe=(t,e,r)=>Ee(t,r,(n=>t[n][e]>=r));const Ce=["push","pop","shift","splice","unshift"];function De(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||(Ce.forEach((e=>{delete t[e]})),delete t._chartjs)}function Me(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const Re="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function Ie(t,e){let r=[],n=!1;return function(...o){r=o,n||(n=!0,Re.call(window,(()=>{n=!1,t.apply(e,r)})))}}const Ne=t=>"start"===t?"left":"end"===t?"right":"center",Fe=(t,e,r)=>"start"===t?e:"end"===t?r:(e+r)/2;const ze=t=>0===t||1===t,Le=(t,e,r)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*ie/r),Be=(t,e,r)=>Math.pow(2,-10*t)*Math.sin((t-e)*ie/r)+1,Ve={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*le),easeOutSine:t=>Math.sin(t*le),easeInOutSine:t=>-.5*(Math.cos(oe*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=>ze(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=>ze(t)?t:Le(t,.075,.3),easeOutElastic:t=>ze(t)?t:Be(t,.075,.3),easeInOutElastic(t){const e=.1125;return ze(t)?t:t<.5?.5*Le(2*t,e,.45):.5+.5*Be(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-Ve.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*Ve.easeInBounce(2*t):.5*Ve.easeOutBounce(2*t-1)+.5};function $e(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Ue(t){return $e(t)?t:new Mt(t)}function He(t){return $e(t)?t:new Mt(t).saturate(.5).darken(.1).hexString()}const We=["x","y","borderWidth","radius","tension"],Ye=["color","borderColor","backgroundColor"];const Xe=new Map;function qe(t,e,r){return function(t,e){e=e||{};const r=t+JSON.stringify(e);let n=Xe.get(r);return n||(n=new Intl.NumberFormat(t,e),Xe.set(r,n)),n}(e,r).format(t)}const Ke={values:t=>Ft(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=fe(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),qe(t,n,c)},logarithmic(t,e,r){if(0===t)return"0";const n=r[e].significand||t/Math.pow(10,Math.floor(fe(t)));return[1,2,3,5,10,15].includes(n)||e>.8*r.length?Ke.numeric.call(this,t,e,r):""}};var Ge={formatters:Ke};const Ze=Object.create(null),Je=Object.create(null);function Qe(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 tr(t,e,r){return"string"==typeof e?Kt(Qe(t,e),r):Kt(Qe(t,""),e)}class er{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)=>He(e.backgroundColor),this.hoverBorderColor=(t,e)=>He(e.borderColor),this.hoverColor=(t,e)=>He(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 tr(this,t,e)}get(t){return Qe(this,t)}describe(t,e){return tr(Je,t,e)}override(t,e){return tr(Ze,t,e)}route(t,e,r,n){const o=Qe(this,t),i=Qe(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 zt(t)?Object.assign({},e,t):Vt(t,e)},set(t){this[a]=t}}})}apply(t){t.forEach((t=>t(this)))}}var rr=new er({_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:Ye},numbers:{type:"number",properties:We}}),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:Ge.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 nr(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 or(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 ir(t,e){(e||t)&&((e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function ar(t,e,r,n){sr(t,e,r,n,null)}function sr(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)*ce;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,ie):t.arc(r,n,g,0,ie),t.closePath();break;case"triangle":u=o?o/2:g,t.moveTo(r+Math.sin(m)*u,n-Math.cos(m)*g),m+=de,t.lineTo(r+Math.sin(m)*u,n-Math.cos(m)*g),m+=de,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+ue)*c,d=Math.cos(m+ue)*(o?o/2-l:c),s=Math.sin(m+ue)*c,f=Math.sin(m+ue)*(o?o/2-l:c),t.arc(r-d,n-s,l,m-oe,m-le),t.arc(r+f,n-a,l,m-le,m),t.arc(r+d,n+s,l,m,m+le),t.arc(r-f,n+a,l,m+le,m+oe),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+=ue;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+=ue;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+=ue,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 cr(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 lr(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function ur(t){t.restore()}function dr(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 fr(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 hr(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 pr(t,e){const r=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=r}function gr(t,e,r,n,o,i={}){const a=Ft(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&&pr(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),hr(t,r,n,l,i),n+=Number(o.lineHeight);t.restore()}function mr(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*oe,oe,!0),t.lineTo(r,n+i-a.bottomLeft),t.arc(r+a.bottomLeft,n+i-a.bottomLeft,a.bottomLeft,oe,le,!0),t.lineTo(r+o-a.bottomRight,n+i),t.arc(r+o-a.bottomRight,n+i-a.bottomRight,a.bottomRight,le,0,!0),t.lineTo(r+o,n+a.topRight),t.arc(r+o-a.topRight,n+a.topRight,a.topRight,0,-le,!0),t.lineTo(r+a.topLeft,n)}const br=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,yr=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function vr(t,e){const r=(""+t).match(br);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 wr=t=>+t||0;function xr(t,e){const r={},n=zt(e),o=n?Object.keys(e):e,i=zt(t)?n?r=>Vt(t[r],t[e[r]]):e=>t[e]:()=>t;for(const t of o)r[t]=wr(i(t));return r}function _r(t){return xr(t,{top:"y",right:"x",bottom:"y",left:"x"})}function kr(t){return xr(t,["topLeft","topRight","bottomLeft","bottomRight"])}function jr(t){const e=_r(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Sr(t,e){t=t||{},e=e||rr.font;let r=Vt(t.size,e.size);"string"==typeof r&&(r=parseInt(r,10));let n=Vt(t.style,e.style);n&&!(""+n).match(yr)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const o={family:Vt(t.family,e.family),lineHeight:vr(Vt(t.lineHeight,e.lineHeight),r),size:r,style:n,weight:Vt(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 Or(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&&Ft(a)&&(a=a[r%a.length],s=!1),void 0!==a))return n&&!s&&(n.cacheable=!1),a}function Tr(t,e){return Object.assign(Object.create(t),e)}function Er(t,e=[""],r,n,o=()=>t[0]){const i=r||t;void 0===n&&(n=Lr("_fallback",t));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:n,_getTarget:o,override:r=>Er([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)=>Mr(r,n,(()=>function(t,e,r,n){let o;for(const i of e)if(o=Lr(Cr(i,t),r),void 0!==o)return Dr(t,o)?Fr(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)=>Br(t).includes(e),ownKeys:t=>Br(t),set(t,e,r){const n=t._storage||(t._storage=o());return t[e]=n[e]=r,delete t._keys,!0}})}function Ar(t,e,r,n){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:r,_stack:new Set,_descriptors:Pr(t,n),setContext:e=>Ar(t,e,r,n),override:o=>Ar(t.override(o),e,r,n)};return new Proxy(o,{deleteProperty:(e,r)=>(delete e[r],delete t[r],!0),get:(t,e,r)=>Mr(t,e,(()=>function(t,e,r){const{_proxy:n,_context:o,_subProxy:i,_descriptors:a}=t;let s=n[e];re(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),Dr(t,c)&&(c=Fr(o._scopes,o,t,c));return c}(e,s,t,r));Ft(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(zt(e[0])){const r=e,n=o._scopes.filter((t=>t!==r));e=[];for(const c of r){const r=Fr(n,o,t,c);e.push(Ar(r,i,a&&a[t],s))}}return e}(e,s,t,a.isIndexable));Dr(e,s)&&(s=Ar(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 Pr(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:re(r)?r:()=>r,isIndexable:re(n)?n:()=>n}}const Cr=(t,e)=>t?t+te(e):e,Dr=(t,e)=>zt(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Mr(t,e,r){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];const n=r();return t[e]=n,n}function Rr(t,e,r){return re(t)?t(e,r):t}const Ir=(t,e)=>!0===t?e:"string"==typeof t?Qt(e,t):void 0;function Nr(t,e,r,n,o){for(const i of e){const e=Ir(r,i);if(e){t.add(e);const i=Rr(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 Fr(t,e,r,n){const o=e._rootScopes,i=Rr(e._fallback,r,n),a=[...t,...o],s=new Set;s.add(n);let c=zr(s,a,r,i||r,n);return null!==c&&((void 0===i||i===r||(c=zr(s,a,i,c,n),null!==c))&&Er(Array.from(s),[""],o,i,(()=>function(t,e,r){const n=t._getTarget();e in n||(n[e]={});const o=n[e];if(Ft(o)&&zt(r))return r;return o||{}}(e,r,n))))}function zr(t,e,r,n,o){for(;r;)r=Nr(t,e,r,n,o);return r}function Lr(t,e){for(const r of e){if(!r)continue;const e=r[t];if(void 0!==e)return e}}function Br(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 Vr=Number.EPSILON||1e-14,$r=(t,e)=>e<t.length&&!t[e].skip&&t[e],Ur=t=>"x"===t?"y":"x";function Hr(t,e,r,n){const o=t.skip?e:t,i=e,a=r.skip?e:r,s=_e(i,o),c=_e(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 Wr(t,e="x"){const r=Ur(e),n=t.length,o=Array(n).fill(0),i=Array(n);let a,s,c,l=$r(t,0);for(a=0;a<n;++a)if(s=c,c=l,l=$r(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?he(o[a-1])!==he(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=$r(t,0);for(let u=0;u<n-1;++u)c=l,l=$r(t,u+1),c&&l&&(pe(e[u],0,Vr)?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=$r(t,0);for(let l=0;l<o;++l){if(a=s,s=c,c=$r(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 Yr(t,e,r){return Math.max(Math.min(t,r),e)}function Xr(t,e,r,n,o){let i,a,s,c;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)Wr(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=Hr(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=cr(t[0],e);for(r=0,n=t.length;r<n;++r)a=i,i=s,s=r<n-1&&cr(t[r+1],e),i&&(o=t[r],a&&(o.cp1x=Yr(o.cp1x,e.left,e.right),o.cp1y=Yr(o.cp1y,e.top,e.bottom)),s&&(o.cp2x=Yr(o.cp2x,e.left,e.right),o.cp2y=Yr(o.cp2y,e.top,e.bottom)))}(t,r)}function qr(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Kr(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function Gr(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 Zr=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);const Jr=["top","right","bottom","left"];function Qr(t,e,r){const n={};r=r?"-"+r:"";for(let o=0;o<4;o++){const i=Jr[o];n[i]=parseFloat(t[e+"-"+i+r])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function tn(t,e){if("native"in t)return t;const{canvas:r,currentDevicePixelRatio:n}=e,o=Zr(r),i="border-box"===o.boxSizing,a=Qr(o,"padding"),s=Qr(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 en=t=>Math.round(10*t)/10;function rn(t,e,r,n){const o=Zr(t),i=Qr(o,"margin"),a=Gr(o.maxWidth,t,"clientWidth")||se,s=Gr(o.maxHeight,t,"clientHeight")||se,c=function(t,e,r){let n,o;if(void 0===e||void 0===r){const i=t&&Kr(t);if(i){const t=i.getBoundingClientRect(),a=Zr(i),s=Qr(a,"border","width"),c=Qr(a,"padding");e=t.width-c.width-s.width,r=t.height-c.height-s.height,n=Gr(a.maxWidth,i,"clientWidth"),o=Gr(a.maxHeight,i,"clientHeight")}else e=t.clientWidth,r=t.clientHeight}return{width:e,height:r,maxWidth:n||se,maxHeight:o||se}}(t,e,r);let{width:l,height:u}=c;if("content-box"===o.boxSizing){const t=Qr(o,"border","width"),e=Qr(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=en(Math.min(l,a,c.maxWidth)),u=en(Math.min(u,s,c.maxHeight)),l&&!u&&(u=en(l/2));return(void 0!==e||void 0!==r)&&n&&c.height&&u>c.height&&(u=c.height,l=en(Math.floor(u*n))),{width:l,height:u}}function nn(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 on=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};qr()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(t){}return t}();function an(t,e){const r=function(t,e){return Zr(t).getPropertyValue(e)}(t,e),n=r&&r.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function sn(t,e,r,n){return{x:t.x+r*(e.x-t.x),y:t.y+r*(e.y-t.y)}}function cn(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 ln(t,e,r,n){const o={x:t.cp2x,y:t.cp2y},i={x:e.cp1x,y:e.cp1y},a=sn(t,o,r),s=sn(o,i,r),c=sn(i,e,r),l=sn(a,s,r),u=sn(s,c,r);return sn(l,u,r)}function un(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 dn(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 fn(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function hn(t){return"angle"===t?{between:Se,compare:ke,normalize:je}:{between:Te,compare:(t,e)=>t-e,normalize:t=>t}}function pn({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 gn(t,e,r){if(!r)return[t];const{property:n,start:o,end:i}=r,a=e.length,{compare:s,between:c,normalize:l}=hn(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}=hn(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(pn({start:v,end:t,loop:f,count:a,style:h})),v=null),r=t,b=g));return null!==v&&p.push(pn({start:v,end:d,loop:f,count:a,style:h})),p}function mn(t,e,r,n){return n&&n.setContext&&r?function(t,e,r,n){const o=t._chart.getContext(),i=bn(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=bn(n.setContext(Tr(o,{type:"segment",p0:i,p1:s,p0DataIndex:(f-1)%c,p1DataIndex:f%c,datasetIndex:a}))),yn(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 bn(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function yn(t,e){if(!e)return!1;const r=[],n=function(t,e){return $e(e)?(r.includes(e)||r.push(e),r.indexOf(e)):e};return JSON.stringify(t,n)!==JSON.stringify(e,n)}
|
|
23
|
-
/*!
|
|
24
|
-
* Chart.js v4.4.8
|
|
25
|
-
* https://www.chartjs.org
|
|
26
|
-
* (c) 2025 Chart.js Contributors
|
|
27
|
-
* Released under the MIT License
|
|
28
|
-
*/class vn{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=Re.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 wn=new vn;const xn="transparent",_n={boolean:(t,e,r)=>r>.5?e:t,color(t,e,r){const n=Ue(t||xn),o=n.valid&&Ue(e||xn);return o&&o.valid?o.mix(n,r).hexString():e},number:(t,e,r)=>t+(e-t)*r};class kn{constructor(t,e,r,n){const o=e[r];n=Or([t.to,n,o,t.from]);const i=Or([t.from,o,n]);this._active=!0,this._fn=t.fn||_n[t.type||typeof i],this._easing=Ve[t.easing]||Ve.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=Or([t.to,e,n,t.from]),this._from=Or([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 jn{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!zt(t))return;const e=Object.keys(rr.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach((n=>{const o=t[n];if(!zt(o))return;const i={};for(const t of e)i[t]=o[t];(Ft(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 kn(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?(wn.add(this._chart,r),!0):void 0}}function Sn(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 On(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 Tn(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],Lt(l)&&(i||0===e||he(e)===he(l))&&(e+=l)}return u||n.all?e:0}function En(t,e){const r=t&&t.options.stacked;return r||void 0===r&&void 0!==e.stack}function An(t,e,r){const n=t[e]||(t[e]={});return n[r]||(n[r]={})}function Pn(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 Cn(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]=An(o,u,i),f[s]=d,f._top=Pn(f,a,!0,n.type),f._bottom=Pn(f,a,!1,n.type);(f._visualValues||(f._visualValues={}))[s]=d}}function Dn(t,e){const r=t.scales;return Object.keys(r).filter((t=>r[t].axis===e)).shift()}function Mn(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 Rn=t=>"reset"===t||"none"===t,In=(t,e)=>e?t:Object.assign({},t);class Nn{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=En(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&&Mn(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=Vt(r.xAxisID,Dn(t,"x")),i=e.yAxisID=Vt(r.yAxisID,Dn(t,"y")),a=e.rAxisID=Vt(r.rAxisID,Dn(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&&De(this._data,this),t._stacked&&Mn(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),r=this._data;if(zt(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){De(r,this);const t=this._cachedMeta;Mn(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]}}),Ce.forEach((t=>{const e="_onData"+te(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=En(e.vScale,e),e.stack!==r.stack&&(n=!0,Mn(e),e.stack=r.stack),this._resyncElements(t),(n||o!==e._stacked)&&(Cn(this,e._parsed),e._stacked=En(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=Ft(n[t])?this.parseArrayData(r,n,t,e):zt(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&&Cn(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(Qt(f,a),d),y:i.parse(Qt(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 Tn({keys:On(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=Tn(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:On(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!Lt(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],Lt(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 zt(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}}(Vt(this.options.clip,function(t,e,r){if(!1===r)return!1;const n=Sn(t,r),o=Sn(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 Tr(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 Tr(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&&ee(r);if(a)return In(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(rr.elements[t]),h=c.resolveNamedOptions(d,f,(()=>this.getContext(r,n,e)),u);return h.$shared&&(h.$shared=s,o[i]=Object.freeze(In(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 jn(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||Rn(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){Rn(n)?Object.assign(t,r):this._resolveAnimations(e,n).update(t,r)}updateSharedOptions(t,e,r){t&&!Rn(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&&Mn(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 Fn(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=Me(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&&(ee(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 zn(t,e,r,n){return Ft(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 Ln(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(zn(f,d,i,l));return c}function Bn(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Vn(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[$n(u,a,s,c)]=!0,o=l)),i[$n(o,a,s,c)]=!0,t.borderSkipped=i}function $n(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 Hn(t,{inflateAmount:e},r){t.inflateAmount="auto"===e?1===r?.33:0:e}class Wn extends Nn{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 Ln(t,e,r,n)}parseArrayData(t,e,r,n){return Ln(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(Qt(p,c),d),u.push(zn(Qt(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=Bn(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||Bn(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;Vn(g,m,p,i),Hn(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||Fn(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=Bn(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&&he(f)!==he(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?he(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=he(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=Vt(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 Yn extends Nn{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(zt(r[t])){const{key:t="value"}=this._parsing;a=e=>+Qt(r[e],t)}for(o=t,i=t+e;o<i;++o)n._parsed[o]=a(o)}}_getRotation(){return ye(this.options.rotation-90)}_getCircumference(){return ye(this.options.circumference)}_getRotationExtents(){let t=ie,e=-ie;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<ie){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)=>Se(t,s,c,!0)?1:Math.max(e,e*r,n,n*r),p=(t,e,n)=>Se(t,s,c,!0)?-1:Math.min(e,e*r,n,n*r),g=h(0,l,d),m=h(le,u,f),b=p(oe,l,d),y=p(oe+le,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=$t(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/ie)}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)?ie*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,r=this.chart,n=r.data.labels||[],o=qe(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(Vt(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class Xn extends Nn{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,vScale:s,_parsed:c}=t,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,u=a.axis,{min:d,max:f,minDefined:h,maxDefined:p}=a.getUserBounds();if(h){if(o=Math.min(Ae(c,u,d).lo,r?n:Ae(e,u,a.getPixelForValue(d)).lo),l){const t=c.slice(0,o+1).reverse().findIndex((t=>!Nt(t[s.axis])));o-=Math.max(0,t)}o=Oe(o,0,n-1)}if(p){let t=Math.max(Ae(c,a.axis,f,!0).hi+1,r?0:Ae(e,u,a.getPixelForValue(f),!0).hi+1);if(l){const e=c.slice(t-1).findIndex((t=>!Nt(t[s.axis])));t+=Math.max(0,e)}i=Oe(t,o,n)-o}else i=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=me(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 qn extends Yn{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}function Kn(t,e,r,n){const{controller:o,data:i,_sorted:a}=t,s=o._cachedMeta.iScale,c=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(s&&e===s.axis&&"r"!==e&&a&&i.length){const a=s._reversePixels?Pe:Ae;if(!n){const n=a(i,e,r);if(c){const{vScale:e}=o._cachedMeta,{_parsed:r}=t,i=r.slice(0,n.lo+1).reverse().findIndex((t=>!Nt(t[e.axis])));n.lo-=Math.max(0,i);const a=r.slice(n.hi).findIndex((t=>!Nt(t[e.axis])));n.hi+=Math.max(0,a)}return n}if(o._sharedOptions){const t=i[0],n="function"==typeof t.getRange&&t.getRange(e);if(n){const t=a(i,e,r-n),o=a(i,e,r+n);return{lo:t.lo,hi:o.hi}}}}return{lo:0,hi:i.length-1}}function Gn(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}=Kn(i[t],e,a,o);for(let t=c;t<=l;++t){const e=s[t];e.skip||n(e,r,t)}}}function Zn(t,e,r,n,o){const i=[];if(!o&&!t.isPointInArea(e))return i;return Gn(t,r,e,(function(r,a,s){(o||cr(r,t.chartArea,0))&&r.inRange(e.x,e.y,n)&&i.push({element:r,datasetIndex:a,index:s})}),!0),i}function Jn(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 Gn(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 Qn(t,e,r,n,o,i){return i||t.isPointInArea(e)?"r"!==r||n?Jn(t,e,r,n,o,i):function(t,e,r,n){let o=[];return Gn(t,r,e,(function(t,r,i){const{startAngle:a,endAngle:s}=t.getProps(["startAngle","endAngle"],n),{angle:c}=xe(t,{x:e.x,y:e.y});Se(c,a,s)&&o.push({element:t,datasetIndex:r,index:i})})),o}(t,e,r,o):[]}function to(t,e,r,n,o){const i=[],a="x"===r?"inXRange":"inYRange";let s=!1;return Gn(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 eo={evaluateInteractionItems:Gn,modes:{index(t,e,r,n){const o=tn(e,t),i=r.axis||"x",a=r.includeInvisible||!1,s=r.intersect?Zn(t,o,i,n,a):Qn(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=tn(e,t),i=r.axis||"xy",a=r.includeInvisible||!1;let s=r.intersect?Zn(t,o,i,n,a):Qn(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)=>Zn(t,tn(e,t),r.axis||"xy",n,r.includeInvisible||!1),nearest(t,e,r,n){const o=tn(e,t),i=r.axis||"xy",a=r.includeInvisible||!1;return Qn(t,o,i,r.intersect,n,a)},x:(t,e,r,n)=>to(t,tn(e,t),"x",r.intersect,n),y:(t,e,r,n)=>to(t,tn(e,t),"y",r.intersect,n)}};const ro=["left","top","right","bottom"];function no(t,e){return t.filter((t=>t.pos===e))}function oo(t,e){return t.filter((t=>-1===ro.indexOf(t.pos)&&t.box.axis===e))}function io(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 ao(t,e){const r=function(t){const e={};for(const r of t){const{stack:t,pos:n,stackWeight:o}=r;if(!t||!ro.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 so(t,e,r,n){return Math.max(t[r],e[r])+Math.max(t[n],e[n])}function co(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 lo(t,e,r,n){const{pos:o,box:i}=r,a=t.maxPadding;if(!zt(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&&co(a,i.getPadding());const s=Math.max(0,e.outerWidth-so(a,t,"left","right")),c=Math.max(0,e.outerHeight-so(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 uo(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 fo(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,uo(s.horizontal,e));const{same:a,other:d}=lo(e,r,s,n);l|=a&&o.length,u=u||d,c.fullSize||o.push(s)}return l&&fo(o,e,r,n)||u}function ho(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 po(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;ee(c.start)&&(a=c.start),t.fullSize?ho(t,o.left,a,r.outerWidth-o.right-o.left,i):ho(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;ee(c.start)&&(i=c.start),t.fullSize?ho(t,i,o.top,a,r.outerHeight-o.bottom-o.top):ho(t,i,e.top+c.placed,a,n),c.start=i,c.placed+=n,i=t.right}}e.x=i,e.y=a}var go={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=jr(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=io(e.filter((t=>t.box.fullSize)),!0),n=io(no(e,"left"),!0),o=io(no(e,"right")),i=io(no(e,"top"),!0),a=io(no(e,"bottom")),s=oo(e,"x"),c=oo(e,"y");return{fullSize:r,leftAndTop:n.concat(i),rightAndBottom:o.concat(c).concat(a).concat(s),chartArea:no(e,"chartArea"),vertical:n.concat(o).concat(c),horizontal:i.concat(a).concat(s)}}(t.boxes),c=s.vertical,l=s.horizontal;Ht(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);co(f,jr(n));const h=Object.assign({maxPadding:f,w:i,h:a,x:o.left,y:o.top},o),p=ao(c.concat(l),d);fo(s.fullSize,h,d,p),fo(c,h,d,p),fo(l,h,d,p)&&fo(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),po(s.leftAndTop,h,d,p),h.x+=h.w,h.y+=h.h,po(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},Ht(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 mo{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 bo extends mo{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const yo="$chartjs",vo={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},wo=t=>null===t||""===t;const xo=!!on&&{passive:!0};function _o(t,e,r){t&&t.canvas&&t.canvas.removeEventListener(e,r,xo)}function ko(t,e){for(const r of t)if(r===e||r.contains(e))return!0}function jo(t,e,r){const n=t.canvas,o=new MutationObserver((t=>{let e=!1;for(const r of t)e=e||ko(r.addedNodes,n),e=e&&!ko(r.removedNodes,n);e&&r()}));return o.observe(document,{childList:!0,subtree:!0}),o}function So(t,e,r){const n=t.canvas,o=new MutationObserver((t=>{let e=!1;for(const r of t)e=e||ko(r.removedNodes,n),e=e&&!ko(r.addedNodes,n);e&&r()}));return o.observe(document,{childList:!0,subtree:!0}),o}const Oo=new Map;let To=0;function Eo(){const t=window.devicePixelRatio;t!==To&&(To=t,Oo.forEach(((e,r)=>{r.currentDevicePixelRatio!==t&&e()})))}function Ao(t,e,r){const n=t.canvas,o=n&&Kr(n);if(!o)return;const i=Ie(((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){Oo.size||window.addEventListener("resize",Eo),Oo.set(t,e)}(t,i),a}function Po(t,e,r){r&&r.disconnect(),"resize"===e&&function(t){Oo.delete(t),Oo.size||window.removeEventListener("resize",Eo)}(t)}function Co(t,e,r){const n=t.canvas,o=Ie((e=>{null!==t.ctx&&r(function(t,e){const r=vo[t.type]||t.type,{x:n,y:o}=tn(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,xo)}(n,e,o),o}class Do extends mo{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[yo]={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",wo(o)){const e=an(t,"width");void 0!==e&&(t.width=e)}if(wo(n))if(""===t.style.height)t.height=t.width/(e||2);else{const e=an(t,"height");void 0!==e&&(t.height=e)}}(t,e),r):null}releaseContext(t){const e=t.canvas;if(!e[yo])return!1;const r=e[yo].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[yo],!0}addEventListener(t,e,r){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),o={attach:jo,detach:So,resize:Ao}[e]||Co;n[e]=o(t,e,r)}removeEventListener(t,e){const r=t.$proxies||(t.$proxies={}),n=r[e];if(!n)return;({attach:Po,detach:Po,resize:Po}[e]||_o)(t,e,n),r[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,r,n){return rn(t,e,r,n)}isAttached(t){const e=t&&Kr(t);return!(!e||!e.isConnected)}}class Mo{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 me(this.x)&&me(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 Ro(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(Io(e,l,u,Nt(n)?0:s-n,s),t=0,r=a-1;t<r;t++)Io(e,l,u,i[t],i[t+1]);return Io(e,l,u,c,Nt(n)?e.length:c+n),l}return Io(e,l,u),l}function Io(t,e,r,n,o){const i=Vt(n,0),a=Math.min(Vt(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 No=(t,e,r)=>"top"===e||"left"===e?t[e]+r:t[e]-r,Fo=(t,e)=>Math.min(e||t,t);function zo(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 Lo(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 Bo(t){return t.drawTicks?t.tickLength:0}function Vo(t,e){if(!t.display)return 0;const r=Sr(t.font,e),n=jr(t.padding);return(Ft(t.text)?t.text.length:1)*r.lineHeight+n.height}function $o(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 Uo extends Mo{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=Bt(t,Number.POSITIVE_INFINITY),e=Bt(e,Number.NEGATIVE_INFINITY),r=Bt(r,Number.POSITIVE_INFINITY),n=Bt(n,Number.NEGATIVE_INFINITY),{min:Bt(t,r),max:Bt(e,n),minDefined:Lt(t),maxDefined:Lt(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:Bt(r,Bt(n,r)),max:Bt(n,Bt(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=$t(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?zo(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),i.display&&(i.autoSkip||"auto"===i.source)&&(this.ticks=Ro(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=Fo(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=Oe(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-Bo(t.grid)-e.padding-Vo(t.title,this.chart.options.font),s=Math.sqrt(u*u+d*d),c=ve(Math.min(Math.asin(Oe((l.highest.height+6)/i,-1,1)),Math.asin(Oe(a/s,-1,1))-Math.asin(Oe(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=Vo(n,e.options.font);if(a?(t.width=this.maxWidth,t.height=Bo(o)+i):(t.height=this.maxHeight,t.width=Bo(o)+i),r.display&&this.ticks.length){const{first:e,last:n,widest:o,highest:i}=this._getLabelSizes(),s=2*r.padding,c=ye(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=zo(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/Fo(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)||Ft(d)){if(Ft(d))for(l=0,u=d.length;l<u;++l)y=d[l],Nt(y)||Ft(y)||(m=nr(n,p.data,p.gc,m,y),b+=g)}else m=nr(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){Ht(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 Oe(this._alignToPixels?or(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 Tr(t,{tick:r,index:e,type:"tick"})}(this.getContext(),t,r))}return this.$context||(this.$context=Tr(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=ye(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=Bo(o),d=[],f=a.setContext(this.getContext()),h=f.display?f.width:0,p=h/2,g=function(t){return or(r,t,h)};let m,b,y,v,w,x,_,k,j,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,j=g(t.left)+p,O=t.right;else if("right"===i)m=g(this.left),j=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(zt(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(zt(i)){const t=Object.keys(i)[0],e=i[t];m=g(this.chart.scales[t].getPixelForValue(e))}w=m-p,_=w-u,j=t.left,O=t.right}const E=Vt(n.ticks.maxTicksLimit,l),A=Math.max(1,Math.ceil(l/E));for(b=0;b<l;b+=A){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=Lo(this,b,s),void 0!==y&&(v=or(r,y,i),c?w=_=j=O=v:x=k=S=T=v,d.push({tx1:w,ty1:x,tx2:_,ty2:k,x1:j,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=Bo(r.grid),f=d+l,h=u?-l:f,p=-ye(this.labelRotation),g=[];let m,b,y,v,w,x,_,k,j,S,O,T,E="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(zt(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(zt(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?E="top":"end"===s&&(E="bottom"));const A=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,j=this._resolveTickFontOptions(m),S=j.lineHeight,O=Ft(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?-A.highest.height/2-e*S+S:-A.highest.height+S/2:"near"===c||0!==p?S/2:"center"===c?A.highest.height/2-e*S:A.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=jr(t.backdropPadding),r=A.heights[m],n=A.widths[m];let o=T-e.top,i=0-e.left;switch(E){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:j,textOffset:T,options:{rotation:p,color:r,strokeColor:s,strokeWidth:l,textAlign:f,textBaseline:E,translation:[w,x],backdrop:d}})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-ye(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=or(t,this.left,i)-i/2,l=or(t,this.right,a)+a/2,u=d=s):(u=or(t,this.top,i)-i/2,d=or(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&&lr(e,r);const n=this.getLabelItems(t);for(const t of n){const r=t.options,n=t.font;gr(e,t.label,0,t.textOffset,n,r)}r&&ur(e)}drawTitle(){const{ctx:t,options:{position:e,title:r,reverse:n}}=this;if(!r.display)return;const o=Sr(r.font),i=jr(r.padding),a=r.align;let s=o.lineHeight/2;"bottom"===e||"center"===e||zt(e)?(s+=i.bottom,Ft(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=Fe(n,i,s),zt(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:No(t,r,e);d=s-i}else{if(zt(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:No(t,r,e);h=Fe(n,a,o),p="left"===r?-le:le}return{titleX:f,titleY:h,maxWidth:d,rotation:p}}(this,s,e,a);gr(t,r.text,0,0,o,{color:r.color,maxWidth:u,rotation:d,textAlign:$o(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=Vt(t.grid&&t.grid.z,-1),n=Vt(t.border&&t.border.z,0);return this._isVisible()&&this.draw===Uo.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 Sr(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Ho{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=Kt(Object.create(null),[r?rr.get(r):{},rr.get(e),t.defaults]);rr.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(".");rr.route(i,o,c,s)}))}(e,t.defaultRoutes);t.descriptors&&rr.describe(e,t.descriptors)}(t,i,r),this.override&&rr.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 rr[n]&&(delete rr[n][r],this.override&&delete Ze[r])}}class Wo{constructor(){this.controllers=new Ho(Nn,"datasets",!0),this.elements=new Ho(Mo,"elements"),this.plugins=new Ho(Object,"plugins"),this.scales=new Ho(Uo,"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):Ht(e,(e=>{const n=r||this._getRegistryForType(e);this._exec(t,n,e)}))}))}_exec(t,e,r){const n=te(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 Yo=new Wo;class Xo{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=Vt(r.options&&r.options.plugins,{}),o=function(t){const e={},r=[],n=Object.keys(Yo.plugins.items);for(let t=0;t<n.length;t++)r.push(Yo.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=qo(n[e],o);null!==c&&i.push({plugin:s,options:Ko(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 qo(t,e){return e||!1!==t?!0===t?{}:t:null}function Ko(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 Go(t,e){const r=rr.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||r.indexAxis||"x"}function Zo(t){if("x"===t||"y"===t||"r"===t)return t}function Jo(t,...e){if(Zo(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&&Zo(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 Qo(t,e,r){if(r[e+"AxisID"]===t)return{axis:e}}function ti(t,e){const r=Ze[t.type]||{scales:{}},n=e.scales||{},o=Go(t.type,e),i=Object.create(null);return Object.keys(n).forEach((e=>{const a=n[e];if(!zt(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=Jo(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 Qo(t,"x",r[0])||Qo(t,"y",r[0])}return{}}(e,t),rr.scales[a.type]),c=function(t,e){return t===e?"_index_":"_value_"}(s,o),l=r.scales||{};i[e]=Gt(Object.create(null),[{axis:s},a,l[s],l[c]])})),t.data.datasets.forEach((r=>{const o=r.type||t.type,a=r.indexAxis||Go(o,e),s=(Ze[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),Gt(i[o],[{axis:e},n[o],s[t]])}))})),Object.keys(i).forEach((t=>{const e=i[t];Gt(e,[rr.scales[e.type],rr.scale])})),i}function ei(t){const e=t.options||(t.options={});e.plugins=Vt(e.plugins,{}),e.scales=ti(t,e)}function ri(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const ni=new Map,oi=new Set;function ii(t,e){let r=ni.get(t);return r||(r=e(),ni.set(t,r),oi.add(r)),r}const ai=(t,e,r)=>{const n=Qt(e,r);void 0!==n&&t.add(n)};class si{constructor(t){this._config=function(t){return(t=t||{}).data=ri(t.data),ei(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=ri(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(),ei(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return ii(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return ii(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return ii(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return ii(`${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=>ai(s,t,e)))),e.forEach((t=>ai(s,n,t))),e.forEach((t=>ai(s,Ze[o]||{},t))),e.forEach((t=>ai(s,rr,t))),e.forEach((t=>ai(s,Je,t)))}));const c=Array.from(s);return 0===c.length&&c.push(Object.create(null)),oi.has(e)&&i.set(e,c),c}chartOptionScopes(){const{options:t,type:e}=this;return[t,Ze[e]||{},rr.datasets[e]||{},{type:e},rr,Je]}resolveNamedOptions(t,e,r,n=[""]){const o={$shared:!0},{resolver:i,subPrefixes:a}=ci(this._resolverCache,t,n);let s=i;if(function(t,e){const{isScriptable:r,isIndexable:n}=Pr(t);for(const o of e){const e=r(o),i=n(o),a=(i||e)&&t[o];if(e&&(re(a)||li(a))||i&&Ft(a))return!0}return!1}(i,e)){o.$shared=!1;s=Ar(i,r=re(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}=ci(this._resolverCache,t,r);return zt(e)?Ar(o,e,void 0,n):o}}function ci(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:Er(e,r),subPrefixes:r.filter((t=>!t.toLowerCase().includes("hover")))},n.set(o,i)}return i}const li=t=>zt(t)&&Object.getOwnPropertyNames(t).some((e=>re(t[e])));const ui=["top","bottom","left","right","chartArea"];function di(t,e){return"top"===t||"bottom"===t||-1===ui.indexOf(t)&&"x"===e}function fi(t,e){return function(r,n){return r[t]===n[t]?r[e]-n[e]:r[t]-n[t]}}function hi(t){const e=t.chart,r=e.options.animation;e.notifyPlugins("afterRender"),Ut(r&&r.onComplete,[t],e)}function pi(t){const e=t.chart,r=e.options.animation;Ut(r&&r.onProgress,[t],e)}function gi(t){return qr()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const mi={},bi=t=>{const e=gi(t);return Object.values(mi).filter((t=>t.canvas===e)).pop()};function yi(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 vi(t,e,r){return t.options.clip?t[r]:e[r]}class wi{static defaults=rr;static instances=mi;static overrides=Ze;static registry=Yo;static version="4.4.8";static getChart=bi;static register(...t){Yo.add(...t),xi()}static unregister(...t){Yo.remove(...t),xi()}constructor(t,e){const r=this.config=new si(e),n=gi(t),o=bi(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!qr()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?bo:Do}(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=It(),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 Xo,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=[],mi[this.id]=this,a&&s?(wn.listen(this,"complete",hi),wn.listen(this,"progress",pi),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 Yo}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():nn(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ir(this.canvas,this.ctx),this}stop(){return wn.stop(this),this}resize(t,e){wn.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,nn(this,a,!0)&&(this.notifyPlugins("resize",{size:i}),Ut(r.onResize,[this,i],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){Ht(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=Jo(t,r),o="r"===n,i="x"===n;return{options:r,dposition:o?"chartArea":i?"bottom":"left",dtype:o?"radialLinear":i?"category":"linear"}})))),Ht(o,(e=>{const o=e.options,i=o.id,a=Jo(i,o),s=Vt(o.type,e.dtype);void 0!==o.position&&di(o.position,a)===di(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(Yo.getScale(s))({id:i,type:s,ctx:this.ctx,chart:this}),r[c.id]=c}c.init(o,t)})),Ht(n,((t,e)=>{t||delete r[e]})),Ht(r,(t=>{go.configure(this,t,t.options),go.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(fi("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||Go(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=Yo.getController(i),{datasetElementType:n,dataElementType:a}=rr.datasets[i];Object.assign(e,{dataElementType:Yo.getElement(a),datasetElementType:n&&Yo.getElement(n)}),o.controller=new e(this,r),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){Ht(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||Ht(o,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(fi("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Ht(this.scales,(t=>{go.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),r=new Set(t.events);ne(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){yi(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(!ne(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;go.update(this,this.width,this.height,t);const e=this.chartArea,r=e.width<=0||e.height<=0;this._layers=[],Ht(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,re(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})&&(wn.has(this)?this.attached&&!wn.running(this)&&wn.start(this):(this.draw(),hi({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:vi(r,e,"left"),right:vi(r,e,"right"),top:vi(n,e,"top"),bottom:vi(n,e,"bottom")}:e}(t,this.chartArea),i={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(n&&lr(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&&ur(e),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(t){return cr(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,r,n){const o=eo.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=Tr(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);ee(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(),wn.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(),ir(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete mi[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)};Ht(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(){Ht(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},Ht(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}}));!Wt(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=!Wt(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 xi(){return Ht(wi.instances,(t=>t._plugins.invalidate()))}function _i(t,e,r,n){const o=xr(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 Oe(t,0,Math.min(i,e))};return{outerStart:s(o.outerStart),outerEnd:s(o.outerEnd),innerStart:Oe(o.innerStart,0,a),innerEnd:Oe(o.innerEnd,0,a)}}function ki(t,e,r,n){return{x:r+t*Math.cos(e),y:n+t*Math.sin(e)}}function ji(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/oe)/d)/2,m=c+g+h,b=o-g-h,{outerStart:y,outerEnd:v,innerStart:w,innerEnd:x}=_i(e,f,d,b-m),_=d-y,k=d-v,j=m+y/_,S=b-v/k,O=f+w,T=f+x,E=m+w/O,A=b-x/T;if(t.beginPath(),i){const e=(j+S)/2;if(t.arc(a,s,d,j,e),t.arc(a,s,d,e,S),v>0){const e=ki(k,S,a,s);t.arc(e.x,e.y,v,S,b+le)}const r=ki(T,b,a,s);if(t.lineTo(r.x,r.y),x>0){const e=ki(T,A,a,s);t.arc(e.x,e.y,x,b+le,A+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=ki(O,E,a,s);t.arc(e.x,e.y,w,E+Math.PI,m-le)}const o=ki(_,m,a,s);if(t.lineTo(o.x,o.y),y>0){const e=ki(_,j,a,s);t.arc(e.x,e.y,y,m-le,j)}}else{t.moveTo(a,s);const e=Math.cos(j)*d+a,r=Math.sin(j)*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 Si(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){ji(t,e,r,n,p,o);for(let e=0;e<i;++e)t.stroke();isNaN(s)||(p=a+(s%ie||ie))}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+le,n-le),t.closePath(),t.clip()}(t,e,p),i||(ji(t,e,r,n,p,o),t.stroke())}function Oi(t,e,r=e){t.lineCap=Vt(r.borderCapStyle,e.borderCapStyle),t.setLineDash(Vt(r.borderDash,e.borderDash)),t.lineDashOffset=Vt(r.borderDashOffset,e.borderDashOffset),t.lineJoin=Vt(r.borderJoinStyle,e.borderJoinStyle),t.lineWidth=Vt(r.borderWidth,e.borderWidth),t.strokeStyle=Vt(r.borderColor,e.borderColor)}function Ti(t,e,r){t.lineTo(r.x,r.y)}function Ei(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 Ai(t,e,r,n){const{points:o,options:i}=e,{count:a,start:s,loop:c,ilen:l}=Ei(o,r,n),u=function(t){return t.stepped?dr:t.tension||"monotone"===t.cubicInterpolationMode?fr:Ti}(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 Pi(t,e,r,n){const o=e.points,{count:i,start:a,ilen:s}=Ei(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 Ci(t){const e=t.options,r=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||r)?Pi:Ai}const Di="function"==typeof Path2D;function Mi(t,e,r,n){Di&&!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()),Oi(t,e.options),t.stroke(o)}(t,e,r,n):function(t,e,r,n){const{segments:o,options:i}=e,a=Ci(e);for(const s of o)Oi(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 Ri(t,e,r,n){const o=t.options,{[r]:i}=t.getProps([r],n);return Math.abs(e-i)<o.radius+o.hitRadius}function Ii(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:Oe(e,r,n)}function Fi(t){const e=Ii(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=_r(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=kr(o),a=Math.min(e,r),s=t.borderSkipped,c=n||zt(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 zi(t,e,r,n){const o=null===e,i=null===r,a=t&&!(o&&i)&&Ii(t,n);return a&&(o||Te(e,a.left,a.right))&&(i||Te(r,a.top,a.bottom))}function Li(t,e){t.rect(e.x,e.y,e.w,e.h)}function Bi(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 Vi=(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 $i extends Mo{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=Sr(r.font),o=n.size,i=this._computeTitleHeight(),{boxWidth:a,itemHeight:s}=Vi(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=un(o,this.left,this.width);if(this.isHorizontal()){let o=0,a=Fe(r,this.left+n,this.right-this.lineWidths[o]);for(const s of e)o!==s.row&&(o=s.row,a=Fe(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=Fe(r,this.top+t+n,this.bottom-this.columnSizes[o].height);for(const s of e)s.col!==o&&(o=s.col,a=Fe(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;lr(t,this),this._draw(),ur(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:r,ctx:n}=this,{align:o,labels:i}=t,a=rr.color,s=un(t.rtl,this.left,this.width),c=Sr(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}=Vi(i,u),m=this.isHorizontal(),b=this._computeTitleHeight();f=m?{x:Fe(o,this.left+l,this.right-r[0]),y:this.top+l+b,line:0}:{x:this.left+l,y:Fe(o,this.top+b+l,this.bottom-e[0].height),line:0},dn(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 j=f.x,S=f.y;s.setWidth(this.width),m?w>0&&j+k+l>this.right&&(S=f.y+=y,f.line++,j=f.x=Fe(o,this.left+l,this.right-r[f.line])):w>0&&S+y>this.bottom&&(j=f.x=j+e[f.line].width+l,f.line++,S=f.y=Fe(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=Vt(r.lineWidth,1);if(n.fillStyle=Vt(r.fillStyle,a),n.lineCap=Vt(r.lineCap,"butt"),n.lineDashOffset=Vt(r.lineDashOffset,0),n.lineJoin=Vt(r.lineJoin,"miter"),n.lineWidth=o,n.strokeStyle=Vt(r.strokeStyle,a),n.setLineDash(Vt(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);sr(n,a,c,e+d,i.pointStyleWidth&&h)}else{const i=e+Math.max((u-p)/2,0),a=s.leftForLtr(t,h),c=kr(r.borderRadius);n.beginPath(),Object.values(c).some((t=>0!==t))?mr(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(j),S,v),j=((t,e,r,n)=>t===(n?"left":"right")?r:"center"===t?(e+r)/2:e)(_,j+h+d,m?j+k:this.right,t.rtl),function(t,e,r){gr(n,r.text,t,e+g/2,c,{strikethrough:r.hidden,textAlign:s.textAlign(r.textAlign)})}(s.x(j),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})),fn(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,r=Sr(e.font),n=jr(e.padding);if(!e.display)return;const o=un(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=Fe(t.align,u,this.right-d);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);l=c+Fe(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const f=Fe(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,gr(i,e.text,f,l,r)}_computeTitleHeight(){const t=this.options.title,e=Sr(t.font),r=jr(t.padding);return t.display?e.lineHeight+r.height:0}_getLegendItemAt(t,e){let r,n,o;if(Te(t,this.left,this.right)&&Te(e,this.top,this.bottom))for(o=this.legendHitBoxes,r=0;r<o.length;++r)if(n=o[r],Te(t,n.left,n.left+n.width)&&Te(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 Hi={id:"legend",_element:$i,start(t,e,r){const n=t.legend=new $i({ctx:t.ctx,options:r,chart:t});go.configure(t,n,r),go.addBox(t,n)},stop(t){go.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,r){const n=t.legend;go.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=jr(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 Wi extends Mo{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=Ft(r.text)?r.text.length:1;this._padding=jr(r.padding);const o=n*Sr(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=Fe(a,r,o),l=e+t,s=o-r):("left"===i.position?(c=r+t,l=Fe(a,n,e),u=-.5*oe):(c=o-t,l=Fe(a,e,n),u=.5*oe),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=Sr(e.font),n=r.lineHeight/2+this._padding.top,{titleX:o,titleY:i,maxWidth:a,rotation:s}=this._drawArgs(n);gr(t,e.text,0,0,r,{color:e.color,maxWidth:a,rotation:s,textAlign:Ne(e.align),textBaseline:"middle",translation:[o,i]})}}var Yi={id:"title",_element:Wi,start(t,e,r){!function(t,e){const r=new Wi({ctx:t.ctx,options:e,chart:t});go.configure(t,r,e),go.addBox(t,r),t.titleBlock=r}(t,r)},stop(t){const e=t.titleBlock;go.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,r){const n=t.titleBlock;go.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 Xi={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=_e(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 qi(t,e){return e&&(Ft(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Ki(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Gi(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 Zi(t,e){const r=t.chart.ctx,{body:n,footer:o,title:i}=t,{boxWidth:a,boxHeight:s}=e,c=Sr(e.bodyFont),l=Sr(e.titleFont),u=Sr(e.footerFont),d=i.length,f=o.length,h=n.length,p=jr(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,Ht(t.title,v),r.font=c.string,Ht(t.beforeBody.concat(t.afterBody),v),y=e.displayColors?a+2+e.boxPadding:0,Ht(n,(t=>{Ht(t.before,v),Ht(t.lines,v),Ht(t.after,v)})),y=0,r.font=u.string,Ht(t.footer,v),r.restore(),m+=p.width,{width:m,height:g}}function Ji(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 Qi(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||Ji(t,e,r,n),yAlign:n}}function ta(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}=kr(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:Oe(p,0,n.width-e.width),y:Oe(g,0,n.height-e.height)}}function ea(t,e,r){const n=jr(r.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-n.right:t.x+n.left}function ra(t){return qi([],Ki(t))}function na(t,e){const r=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return r?t.override(r):t}const oa={beforeTitle:Rt,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:Rt,beforeBody:Rt,beforeLabel:Rt,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:Rt,afterBody:Rt,beforeFooter:Rt,footer:Rt,afterFooter:Rt};function ia(t,e,r,n){const o=t[e].call(r,n);return void 0===o?oa[e].call(r,n):o}class aa extends Mo{static positioners=Xi;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 jn(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,Tr(t,{tooltip:e,tooltipItems:r,type:"tooltip"})));var t,e,r}getTitle(t,e){const{callbacks:r}=e,n=ia(r,"beforeTitle",this,t),o=ia(r,"title",this,t),i=ia(r,"afterTitle",this,t);let a=[];return a=qi(a,Ki(n)),a=qi(a,Ki(o)),a=qi(a,Ki(i)),a}getBeforeBody(t,e){return ra(ia(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:r}=e,n=[];return Ht(t,(t=>{const e={before:[],lines:[],after:[]},o=na(r,t);qi(e.before,Ki(ia(o,"beforeLabel",this,t))),qi(e.lines,ia(o,"label",this,t)),qi(e.after,Ki(ia(o,"afterLabel",this,t))),n.push(e)})),n}getAfterBody(t,e){return ra(ia(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:r}=e,n=ia(r,"beforeFooter",this,t),o=ia(r,"footer",this,t),i=ia(r,"afterFooter",this,t);let a=[];return a=qi(a,Ki(n)),a=qi(a,Ki(o)),a=qi(a,Ki(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(Gi(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)))),Ht(c,(e=>{const r=na(t.callbacks,e);n.push(ia(r,"labelColor",this,e)),o.push(ia(r,"labelPointStyle",this,e)),i.push(ia(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=Xi[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=Zi(this,r),a=Object.assign({},t,e),s=Qi(this.chart,r,a),c=ta(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}=kr(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=un(r.rtl,this.x,this.width);for(t.x=ea(this,r.titleAlign,r),e.textAlign=c.textAlign(r.titleAlign),e.textBaseline="middle",i=Sr(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=Sr(o.bodyFont),u=ea(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,ar(t,e,r,l),t.strokeStyle=i.borderColor,t.fillStyle=i.backgroundColor,ar(t,e,r,l)}else{t.lineWidth=zt(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=kr(i.borderRadius);Object.values(a).some((t=>0!==t))?(t.beginPath(),t.fillStyle=o.multiKeyBackground,mr(t,{x:e,y:h,w:c,h:s,radius:a}),t.fill(),t.stroke(),t.fillStyle=i.backgroundColor,t.beginPath(),mr(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=Sr(r.bodyFont);let d=u.lineHeight,f=0;const h=un(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=ea(this,g,r),e.fillStyle=r.bodyColor,Ht(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,Ht(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;Ht(m.after,p)}f=0,d=u.lineHeight,Ht(this.afterBody,p),t.y-=o}drawFooter(t,e,r){const n=this.footer,o=n.length;let i,a;if(o){const s=un(r.rtl,this.x,this.width);for(t.x=ea(this,r.footerAlign,r),t.y+=r.footerMarginTop,e.textAlign=s.textAlign(r.footerAlign),e.textBaseline="middle",i=Sr(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}=kr(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=Xi[t.position].call(this,this._active,this._eventPosition);if(!r)return;const i=this._size=Zi(this,t),a=Object.assign({},r,this._size),s=Qi(e,t,a),c=ta(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=jr(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),dn(t,e.textDirection),o.y+=i.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),fn(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=!Wt(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||!Wt(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=Xi[o.position].call(this,t,e);return!1!==i&&(r!==i.x||n!==i.y)}}var sa={id:"tooltip",_element:aa,positioners:Xi,afterInit(t,e,r){r&&(t.tooltip=new aa({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:oa},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 ca(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 la(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}function ua(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,j=ge((g-p)/h/f)*f;if(j<1e-14&&!m&&!b)return[{value:p},{value:g}];k=Math.ceil(g/j)-Math.floor(p/j),k>h&&(j=ge(k*j/h/f)*f),Nt(s)||(w=Math.pow(10,s),j=Math.ceil(j*w)/w),"ticks"===n?(x=Math.floor(p/j)*j,_=Math.ceil(g/j)*j):(x=p,_=g),m&&b&&o&&function(t,e){const r=Math.round(t);return r-e<=t&&r+e>=t}((a-i)/o,j/1e3)?(k=Math.round(Math.min((a-i)/j,l)),j=(a-i)/k,x=i,_=a):y?(x=m?i:x,_=b?a:_,k=c-1,j=(_-x)/k):(k=(_-x)/j,k=pe(k,Math.round(k),j/1e3)?Math.round(k):Math.ceil(k));const S=Math.max(we(j),we(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++,pe(Math.round((x+O*j)*w)/w,i,da(i,v,t))&&O++):x<i&&O++);O<k;++O){const t=Math.round((x+O*j)*w)/w;if(b&&t>a)break;r.push({value:t})}return b&&d&&_!==a?r.length&&pe(r[r.length-1].value,a,da(a,v,t))?r[r.length-1].value=a:r.push({value:a}):b&&_!==a||r.push({value:_}),r}function da(t,e,{horizontal:r,minRotation:n}){const o=ye(n),i=(r?Math.sin(o):Math.cos(o))||.001,a=.75*e*(""+t).length;return Math.min(e/i,a)}class fa extends Uo{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=he(n),e=he(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=ua({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&&be(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 qe(t,this.chart.options.locale,this.options.ticks.format)}}class ha extends fa{static id="linear";static defaults={ticks:{callback:Ge.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Lt(t)?t:0,this.max=Lt(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,r=ye(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}}Ge.formatters.logarithmic;Ge.formatters.numeric;const pa="label";function ga(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function ma(t,e){t.labels=e}function ba(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:pa;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 ya(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pa;const r={labels:[],datasets:[]};return ma(r,t.labels),ba(r,t.datasets,e),r}function va(t,r){const{height:i=150,width:a=300,redraw:s=!1,datasetIdKey:c,type:l,data:u,options:d,plugins:f=[],fallbackContent:h,updateMode:p,...g}=t,m=n(null),b=n(null),y=()=>{m.current&&(b.current=new wi(m.current,{type:l,data:ya(u,c),options:d&&{...d},plugins:f}),ga(r,b.current))},v=()=>{ga(r,null),b.current&&(b.current.destroy(),b.current=null)};return o((()=>{!s&&b.current&&d&&function(t,e){const r=t.options;r&&e&&Object.assign(r,e)}(b.current,d)}),[s,d]),o((()=>{!s&&b.current&&ma(b.current.config.data,u.labels)}),[s,u.labels]),o((()=>{!s&&b.current&&u.datasets&&ba(b.current.config.data,u.datasets,c)}),[s,u.datasets]),o((()=>{b.current&&(s?(v(),setTimeout(y)):b.current.update(p))}),[s,d,u.labels,u.datasets,p]),o((()=>{b.current&&(v(),setTimeout(y))}),[l]),o((()=>(y(),()=>v())),[]),e.createElement("canvas",{ref:m,role:"img",height:i,width:a,...g},h)}const wa=r(va);function xa(t,n){return wi.register(n),r(((r,n)=>e.createElement(wa,{...r,ref:n,type:t})))}const _a=xa("line",Xn),ka=xa("bar",Wn),ja=xa("pie",qn);wi.register(class extends Uo{static id="category";static defaults={ticks:{callback:la}};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:Oe(Math.round(t),0,e))(e=isFinite(e)&&r[e]===t?e:ca(r,t,Vt(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 la.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}},ha,class extends Mo{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}=Fi(this),a=(s=i.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?mr:Li;var s;t.save(),i.w===o.w&&i.h===o.h||(t.beginPath(),a(t,Bi(i,e,o)),t.clip(),a(t,Bi(o,-e,i)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),a(t,Bi(o,e)),t.fillStyle=n,t.fill(),t.restore()}inRange(t,e,r){return zi(this,t,e,r)}inXRange(t,e){return zi(this,t,null,e)}inYRange(t,e){return zi(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}},Yi,sa,Hi);var Sa=function(t){var e,r=t.data,n=t.options,o=t.styles;return F.jsx("div",_({className:z((e={},e["".concat(o)]=o,e))},{children:F.jsx(ka,{data:r,options:n})}))};wi.register(class extends Mo{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;Xr(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 mn(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=gn(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?cn:t.tension||"monotone"===t.cubicInterpolationMode?ln:sn}(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 Ci(this)(t,this,e,r)}path(t,e,r){const n=this.segments,o=Ci(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(),Mi(t,this,r,n),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}},class extends Mo{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 Ri(this,t,"x",e)}inYRange(t,e){return Ri(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||!cr(this,e,this.size(r)/2)||(t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.fillStyle=r.backgroundColor,ar(t,r,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}},sa,Hi,Yi);var Oa=function(t){var e=t.data,r=t.options;return F.jsx("div",_({style:{width:"80%",margin:"auto"}},{children:F.jsx(_a,{data:e,options:r})}))};wi.register(class extends Mo{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}=xe(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=Vt(u,s-a),h=Se(o,a,s)&&a!==s,p=f>=ie||h,g=Te(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>ie?Math.floor(r/ie):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(oe,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){ji(t,e,r,n,c,o);for(let e=0;e<i;++e)t.fill();isNaN(s)||(c=a+(s%ie||ie))}ji(t,e,r,n,c,o),t.fill()}(t,this,s,o,i),Si(t,this,s,o,i),t.restore()}},sa,Hi,Yi);var Ta=function(t){var e,r,n=t.data,o=t.options,i=t.styles,a=n.datasets[0].backgroundColor&&n.datasets[0].borderColor?n.datasets[0].backgroundColor:(null===(r=n.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}()})))||[],s=_(_({},n),{datasets:n.datasets.map((function(t){return _(_({},t),{backgroundColor:a,borderColor:a})}))});return F.jsx("div",_({className:z((e={},e["".concat(i)]=i,e))},{children:F.jsx(ja,{data:s,options:o})}))},Ea={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"},Aa={circle:"rounded-full",square:"rounded-none",roundedSquare:"rounded-lg",softRoundedSquare:"rounded-xl",pill:"rounded-full w-auto px-4"},Pa=function(t){var e,r=t.label,n=t.variant,o=void 0===n?"success":n,i=t.shape,a=void 0===i?"circle":i,s=t.size,c=void 0===s?"md":s,l=t.styles;return F.jsx("div",_({className:"w-fit h-fit"},{children:F.jsx("div",_({className:z((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[o])]=o,e["".concat(Aa[a])]=a,e["".concat(Ea[c])]=c,e["".concat(l)]=l,e))},{children:r}))}))},Ca=function(t){var e,r=t.alt,n=t.src,o=void 0===n?"https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png":n,i=t.height,a=void 0===i?100:i,s=t.width,c=void 0===s?200:s,l=t.styles;return F.jsx("img",{src:o,alt:r,height:a,width:c,className:z((e={"object-contain w-full":!0},e["".concat(l)]=l,e))})},Da="function"==typeof Symbol&&Symbol.for,Ma=Da?Symbol.for("react.element"):60103,Ra=Da?Symbol.for("react.portal"):60106,Ia=Da?Symbol.for("react.fragment"):60107,Na=Da?Symbol.for("react.strict_mode"):60108,Fa=Da?Symbol.for("react.profiler"):60114,za=Da?Symbol.for("react.provider"):60109,La=Da?Symbol.for("react.context"):60110,Ba=Da?Symbol.for("react.async_mode"):60111,Va=Da?Symbol.for("react.concurrent_mode"):60111,$a=Da?Symbol.for("react.forward_ref"):60112,Ua=Da?Symbol.for("react.suspense"):60113,Ha=Da?Symbol.for("react.suspense_list"):60120,Wa=Da?Symbol.for("react.memo"):60115,Ya=Da?Symbol.for("react.lazy"):60116,Xa=Da?Symbol.for("react.block"):60121,qa=Da?Symbol.for("react.fundamental"):60117,Ka=Da?Symbol.for("react.responder"):60118,Ga=Da?Symbol.for("react.scope"):60119;function Za(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case Ma:switch(t=t.type){case Ba:case Va:case Ia:case Fa:case Na:case Ua:return t;default:switch(t=t&&t.$$typeof){case La:case $a:case Ya:case Wa:case za:return t;default:return e}}case Ra:return e}}}function Ja(t){return Za(t)===Va}var Qa={AsyncMode:Ba,ConcurrentMode:Va,ContextConsumer:La,ContextProvider:za,Element:Ma,ForwardRef:$a,Fragment:Ia,Lazy:Ya,Memo:Wa,Portal:Ra,Profiler:Fa,StrictMode:Na,Suspense:Ua,isAsyncMode:function(t){return Ja(t)||Za(t)===Ba},isConcurrentMode:Ja,isContextConsumer:function(t){return Za(t)===La},isContextProvider:function(t){return Za(t)===za},isElement:function(t){return"object"==typeof t&&null!==t&&t.$$typeof===Ma},isForwardRef:function(t){return Za(t)===$a},isFragment:function(t){return Za(t)===Ia},isLazy:function(t){return Za(t)===Ya},isMemo:function(t){return Za(t)===Wa},isPortal:function(t){return Za(t)===Ra},isProfiler:function(t){return Za(t)===Fa},isStrictMode:function(t){return Za(t)===Na},isSuspense:function(t){return Za(t)===Ua},isValidElementType:function(t){return"string"==typeof t||"function"==typeof t||t===Ia||t===Va||t===Fa||t===Na||t===Ua||t===Ha||"object"==typeof t&&null!==t&&(t.$$typeof===Ya||t.$$typeof===Wa||t.$$typeof===za||t.$$typeof===La||t.$$typeof===$a||t.$$typeof===qa||t.$$typeof===Ka||t.$$typeof===Ga||t.$$typeof===Xa)},typeOf:Za},ts=E((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,j=s,S=r,O=d,T=o,E=g,A=p,P=n,C=a,D=i,M=f,R=!1;function I(t){return w(t)===u}e.AsyncMode=x,e.ConcurrentMode=_,e.ContextConsumer=k,e.ContextProvider=j,e.Element=S,e.ForwardRef=O,e.Fragment=T,e.Lazy=E,e.Memo=A,e.Portal=P,e.Profiler=C,e.StrictMode=D,e.Suspense=M,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}()})),es=E((function(t){"production"===process.env.NODE_ENV?t.exports=Qa:t.exports=ts})),rs=Object.getOwnPropertySymbols,ns=Object.prototype.hasOwnProperty,os=Object.prototype.propertyIsEnumerable;var is=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]))ns.call(r,a)&&(o[a]=r[a]);if(rs){n=rs(r);for(var s=0;s<n.length;s++)os.call(r,n[s])&&(o[n[s]]=r[n[s]])}}return o},as=Function.call.bind(Object.prototype.hasOwnProperty),ss="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",cs=as,ls=function(){};if("production"!==process.env.NODE_ENV){var us=ss,ds={},fs=cs;ls=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function hs(t,e,r,n,o){if("production"!==process.env.NODE_ENV)for(var i in t)if(fs(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,us)}catch(t){a=t}if(!a||a instanceof Error||ls((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 ds)){ds[a.message]=!0;var c=o?o():"";ls("Failed "+r+" type: "+a.message+(null!=c?c:""))}}}hs.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(ds={})};var ps=hs,gs=function(){};function ms(){return null}"production"!==process.env.NODE_ENV&&(gs=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}});function bs(){}function ys(){}ys.resetWarningCache=bs;var vs=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(ms),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+"]",ss);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 es.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(cs(s,l)){var u=t(s,l,n,o,i+"."+l,ss);if(u instanceof Error)return u}return null}))},oneOf:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&gs(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."),ms;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&&gs("Invalid argument supplied to oneOfType, expected an instance of array."),ms;for(var e=0;e<t.length;e++){var r=t[e];if("function"!=typeof r)return gs("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+h(r)+" at index "+e+"."),ms}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,ss);if(null==l)return null;l.data&&cs(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,ss);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=is({},e[r],t);for(var h in u){var p=t[h];if(cs(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,ss);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!==ss){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&&(gs("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=ps,o.resetWarningCache=ps.resetWarningCache,o.PropTypes=o,o},ws=function(){function t(t,e,r,n,o,i){if(i!==ss){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:ys,resetWarningCache:bs};return r.PropTypes=r,r},xs=E((function(t){if("production"!==process.env.NODE_ENV){var e=es;t.exports=vs(e.isElement,!0)}else t.exports=ws()})),_s="object"==typeof T&&T&&T.Object===Object&&T,ks="object"==typeof self&&self&&self.Object===Object&&self,js=_s||ks||Function("return this")(),Ss=js.Symbol,Os=Object.prototype,Ts=Os.hasOwnProperty,Es=Os.toString,As=Ss?Ss.toStringTag:void 0;var Ps=function(t){var e=Ts.call(t,As),r=t[As];try{t[As]=void 0;var n=!0}catch(t){}var o=Es.call(t);return n&&(e?t[As]=r:delete t[As]),o},Cs=Object.prototype.toString;var Ds=function(t){return Cs.call(t)},Ms=Ss?Ss.toStringTag:void 0;var Rs=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Ms&&Ms in Object(t)?Ps(t):Ds(t)};var Is=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var Ns=function(t){if(!Is(t))return!1;var e=Rs(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},Fs=js["__core-js_shared__"],zs=function(){var t=/[^.]+$/.exec(Fs&&Fs.keys&&Fs.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var Ls=function(t){return!!zs&&zs in t},Bs=Function.prototype.toString;var Vs=function(t){if(null!=t){try{return Bs.call(t)}catch(t){}try{return t+""}catch(t){}}return""},$s=/^\[object .+?Constructor\]$/,Us=Function.prototype,Hs=Object.prototype,Ws=Us.toString,Ys=Hs.hasOwnProperty,Xs=RegExp("^"+Ws.call(Ys).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var qs=function(t){return!(!Is(t)||Ls(t))&&(Ns(t)?Xs:$s).test(Vs(t))};var Ks=function(t,e){return null==t?void 0:t[e]};var Gs=function(t,e){var r=Ks(t,e);return qs(r)?r:void 0},Zs=function(){try{var t=Gs(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Js=Zs;var Qs=function(t,e,r){"__proto__"==e&&Js?Js(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r};var tc=function(t,e){return t===e||t!=t&&e!=e},ec=Object.prototype.hasOwnProperty;var rc=function(t,e,r){var n=t[e];ec.call(t,e)&&tc(n,r)&&(void 0!==r||e in t)||Qs(t,e,r)};var nc=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?Qs(r,s,c):rc(r,s,c)}return r};var oc=function(t){return t};var ic=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)},ac=Math.max;var sc=function(t,e,r){return e=ac(void 0===e?t.length-1:e,0),function(){for(var n=arguments,o=-1,i=ac(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),ic(t,this,s)}};var cc=function(t){return function(){return t}},lc=Js?function(t,e){return Js(t,"toString",{configurable:!0,enumerable:!1,value:cc(e),writable:!0})}:oc,uc=lc,dc=Date.now;var fc=function(t){var e=0,r=0;return function(){var n=dc(),o=16-(n-r);if(r=n,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}},hc=fc(uc);var pc=function(t,e){return hc(sc(t,e,oc),t+"")};var gc=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var mc=function(t){return null!=t&&gc(t.length)&&!Ns(t)},bc=/^(?:0|[1-9]\d*)$/;var yc=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&bc.test(t))&&t>-1&&t%1==0&&t<e};var vc=function(t,e,r){if(!Is(r))return!1;var n=typeof e;return!!("number"==n?mc(r)&&yc(e,r.length):"string"==n&&e in r)&&tc(r[e],t)};var wc=function(t){return pc((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&&vc(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}))},xc=Object.prototype;var _c=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||xc)};var kc=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n};var jc=function(t){return null!=t&&"object"==typeof t};var Sc=function(t){return jc(t)&&"[object Arguments]"==Rs(t)},Oc=Object.prototype,Tc=Oc.hasOwnProperty,Ec=Oc.propertyIsEnumerable,Ac=Sc(function(){return arguments}())?Sc:function(t){return jc(t)&&Tc.call(t,"callee")&&!Ec.call(t,"callee")},Pc=Array.isArray;var Cc=function(){return!1},Dc=E((function(t,e){var r=e&&!e.nodeType&&e,n=r&&t&&!t.nodeType&&t,o=n&&n.exports===r?js.Buffer:void 0,i=(o?o.isBuffer:void 0)||Cc;t.exports=i})),Mc={};Mc["[object Float32Array]"]=Mc["[object Float64Array]"]=Mc["[object Int8Array]"]=Mc["[object Int16Array]"]=Mc["[object Int32Array]"]=Mc["[object Uint8Array]"]=Mc["[object Uint8ClampedArray]"]=Mc["[object Uint16Array]"]=Mc["[object Uint32Array]"]=!0,Mc["[object Arguments]"]=Mc["[object Array]"]=Mc["[object ArrayBuffer]"]=Mc["[object Boolean]"]=Mc["[object DataView]"]=Mc["[object Date]"]=Mc["[object Error]"]=Mc["[object Function]"]=Mc["[object Map]"]=Mc["[object Number]"]=Mc["[object Object]"]=Mc["[object RegExp]"]=Mc["[object Set]"]=Mc["[object String]"]=Mc["[object WeakMap]"]=!1;var Rc=function(t){return jc(t)&&gc(t.length)&&!!Mc[Rs(t)]};var Ic=function(t){return function(e){return t(e)}},Nc=E((function(t,e){var r=e&&!e.nodeType&&e,n=r&&t&&!t.nodeType&&t,o=n&&n.exports===r&&_s.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})),Fc=Nc&&Nc.isTypedArray,zc=Fc?Ic(Fc):Rc,Lc=Object.prototype.hasOwnProperty;var Bc=function(t,e){var r=Pc(t),n=!r&&Ac(t),o=!r&&!n&&Dc(t),i=!r&&!n&&!o&&zc(t),a=r||n||o||i,s=a?kc(t.length,String):[],c=s.length;for(var l in t)!e&&!Lc.call(t,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||yc(l,c))||s.push(l);return s};var Vc=function(t,e){return function(r){return t(e(r))}},$c=Vc(Object.keys,Object),Uc=Object.prototype.hasOwnProperty;var Hc=function(t){if(!_c(t))return $c(t);var e=[];for(var r in Object(t))Uc.call(t,r)&&"constructor"!=r&&e.push(r);return e};var Wc=function(t){return mc(t)?Bc(t):Hc(t)},Yc=Object.prototype.hasOwnProperty,Xc=wc((function(t,e){if(_c(e)||mc(e))nc(e,Wc(e),t);else for(var r in e)Yc.call(e,r)&&rc(t,r,e[r])}));var qc=function(){this.__data__=[],this.size=0};var Kc=function(t,e){for(var r=t.length;r--;)if(tc(t[r][0],e))return r;return-1},Gc=Array.prototype.splice;var Zc=function(t){var e=this.__data__,r=Kc(e,t);return!(r<0)&&(r==e.length-1?e.pop():Gc.call(e,r,1),--this.size,!0)};var Jc=function(t){var e=this.__data__,r=Kc(e,t);return r<0?void 0:e[r][1]};var Qc=function(t){return Kc(this.__data__,t)>-1};var tl=function(t,e){var r=this.__data__,n=Kc(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function el(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])}}el.prototype.clear=qc,el.prototype.delete=Zc,el.prototype.get=Jc,el.prototype.has=Qc,el.prototype.set=tl;var rl=el;var nl=function(){this.__data__=new rl,this.size=0};var ol=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r};var il=function(t){return this.__data__.get(t)};var al=function(t){return this.__data__.has(t)},sl=Gs(js,"Map"),cl=Gs(Object,"create");var ll=function(){this.__data__=cl?cl(null):{},this.size=0};var ul=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},dl=Object.prototype.hasOwnProperty;var fl=function(t){var e=this.__data__;if(cl){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return dl.call(e,t)?e[t]:void 0},hl=Object.prototype.hasOwnProperty;var pl=function(t){var e=this.__data__;return cl?void 0!==e[t]:hl.call(e,t)};var gl=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=cl&&void 0===e?"__lodash_hash_undefined__":e,this};function ml(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])}}ml.prototype.clear=ll,ml.prototype.delete=ul,ml.prototype.get=fl,ml.prototype.has=pl,ml.prototype.set=gl;var bl=ml;var yl=function(){this.size=0,this.__data__={hash:new bl,map:new(sl||rl),string:new bl}};var vl=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var wl=function(t,e){var r=t.__data__;return vl(e)?r["string"==typeof e?"string":"hash"]:r.map};var xl=function(t){var e=wl(this,t).delete(t);return this.size-=e?1:0,e};var _l=function(t){return wl(this,t).get(t)};var kl=function(t){return wl(this,t).has(t)};var jl=function(t,e){var r=wl(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function Sl(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])}}Sl.prototype.clear=yl,Sl.prototype.delete=xl,Sl.prototype.get=_l,Sl.prototype.has=kl,Sl.prototype.set=jl;var Ol=Sl;var Tl=function(t,e){var r=this.__data__;if(r instanceof rl){var n=r.__data__;if(!sl||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Ol(n)}return r.set(t,e),this.size=r.size,this};function El(t){var e=this.__data__=new rl(t);this.size=e.size}El.prototype.clear=nl,El.prototype.delete=ol,El.prototype.get=il,El.prototype.has=al,El.prototype.set=Tl;var Al=El;var Pl=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t};var Cl=function(t,e){return t&&nc(e,Wc(e),t)};var Dl=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e},Ml=Object.prototype.hasOwnProperty;var Rl=function(t){if(!Is(t))return Dl(t);var e=_c(t),r=[];for(var n in t)("constructor"!=n||!e&&Ml.call(t,n))&&r.push(n);return r};var Il=function(t){return mc(t)?Bc(t,!0):Rl(t)};var Nl=function(t,e){return t&&nc(e,Il(e),t)},Fl=E((function(t,e){var r=e&&!e.nodeType&&e,n=r&&t&&!t.nodeType&&t,o=n&&n.exports===r?js.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 zl=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e};var Ll=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 Bl=function(){return[]},Vl=Object.prototype.propertyIsEnumerable,$l=Object.getOwnPropertySymbols,Ul=$l?function(t){return null==t?[]:(t=Object(t),Ll($l(t),(function(e){return Vl.call(t,e)})))}:Bl;var Hl=function(t,e){return nc(t,Ul(t),e)};var Wl=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t},Yl=Vc(Object.getPrototypeOf,Object),Xl=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Wl(e,Ul(t)),t=Yl(t);return e}:Bl,ql=Xl;var Kl=function(t,e){return nc(t,ql(t),e)};var Gl=function(t,e,r){var n=e(t);return Pc(t)?n:Wl(n,r(t))};var Zl=function(t){return Gl(t,Wc,Ul)};var Jl=function(t){return Gl(t,Il,ql)},Ql=Gs(js,"DataView"),tu=Gs(js,"Promise"),eu=Gs(js,"Set"),ru=Gs(js,"WeakMap"),nu="[object Map]",ou="[object Promise]",iu="[object Set]",au="[object WeakMap]",su="[object DataView]",cu=Vs(Ql),lu=Vs(sl),uu=Vs(tu),du=Vs(eu),fu=Vs(ru),hu=Rs;(Ql&&hu(new Ql(new ArrayBuffer(1)))!=su||sl&&hu(new sl)!=nu||tu&&hu(tu.resolve())!=ou||eu&&hu(new eu)!=iu||ru&&hu(new ru)!=au)&&(hu=function(t){var e=Rs(t),r="[object Object]"==e?t.constructor:void 0,n=r?Vs(r):"";if(n)switch(n){case cu:return su;case lu:return nu;case uu:return ou;case du:return iu;case fu:return au}return e});var pu=hu,gu=Object.prototype.hasOwnProperty;var mu=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&gu.call(t,"index")&&(r.index=t.index,r.input=t.input),r},bu=js.Uint8Array;var yu=function(t){var e=new t.constructor(t.byteLength);return new bu(e).set(new bu(t)),e};var vu=function(t,e){var r=e?yu(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)},wu=/\w*$/;var xu=function(t){var e=new t.constructor(t.source,wu.exec(t));return e.lastIndex=t.lastIndex,e},_u=Ss?Ss.prototype:void 0,ku=_u?_u.valueOf:void 0;var ju=function(t){return ku?Object(ku.call(t)):{}};var Su=function(t,e){var r=e?yu(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)};var Ou=function(t,e,r){var n=t.constructor;switch(e){case"[object ArrayBuffer]":return yu(t);case"[object Boolean]":case"[object Date]":return new n(+t);case"[object DataView]":return vu(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 Su(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 xu(t);case"[object Symbol]":return ju(t)}},Tu=Object.create,Eu=function(){function t(){}return function(e){if(!Is(e))return{};if(Tu)return Tu(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),Au=Eu;var Pu=function(t){return"function"!=typeof t.constructor||_c(t)?{}:Au(Yl(t))};var Cu=function(t){return jc(t)&&"[object Map]"==pu(t)},Du=Nc&&Nc.isMap,Mu=Du?Ic(Du):Cu;var Ru=function(t){return jc(t)&&"[object Set]"==pu(t)},Iu=Nc&&Nc.isSet,Nu=Iu?Ic(Iu):Ru,Fu="[object Arguments]",zu="[object Function]",Lu="[object Object]",Bu={};Bu[Fu]=Bu["[object Array]"]=Bu["[object ArrayBuffer]"]=Bu["[object DataView]"]=Bu["[object Boolean]"]=Bu["[object Date]"]=Bu["[object Float32Array]"]=Bu["[object Float64Array]"]=Bu["[object Int8Array]"]=Bu["[object Int16Array]"]=Bu["[object Int32Array]"]=Bu["[object Map]"]=Bu["[object Number]"]=Bu[Lu]=Bu["[object RegExp]"]=Bu["[object Set]"]=Bu["[object String]"]=Bu["[object Symbol]"]=Bu["[object Uint8Array]"]=Bu["[object Uint8ClampedArray]"]=Bu["[object Uint16Array]"]=Bu["[object Uint32Array]"]=!0,Bu["[object Error]"]=Bu[zu]=Bu["[object WeakMap]"]=!1;var Vu=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(!Is(e))return e;var d=Pc(e);if(d){if(s=mu(e),!c)return zl(e,s)}else{var f=pu(e),h=f==zu||"[object GeneratorFunction]"==f;if(Dc(e))return Fl(e,c);if(f==Lu||f==Fu||h&&!i){if(s=l||h?{}:Pu(e),!c)return l?Kl(e,Nl(s,e)):Hl(e,Cl(s,e))}else{if(!Bu[f])return i?e:{};s=Ou(e,f,c)}}a||(a=new Al);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))})):Mu(e)&&e.forEach((function(o,i){s.set(i,t(o,r,n,i,e,a))}));var g=d?void 0:(u?l?Jl:Zl:l?Il:Wc)(e);return Pl(g||e,(function(o,i){g&&(o=e[i=o]),rc(s,i,t(o,r,n,i,e,a))})),s};var $u=function(t){return Vu(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 Hu=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};var Wu=function(t){return this.__data__.has(t)};function Yu(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new Ol;++e<r;)this.add(t[e])}Yu.prototype.add=Yu.prototype.push=Hu,Yu.prototype.has=Wu;var Xu=Yu;var qu=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 Ku=function(t){return t!=t};var Gu=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1};var Zu=function(t,e,r){return e==e?Gu(t,e,r):qu(t,Ku,r)};var Ju=function(t,e){return!!(null==t?0:t.length)&&Zu(t,e,0)>-1};var Qu=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 td=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 ed=function(t,e){return t.has(e)};var rd=function(t,e,r,n){var o=-1,i=Ju,a=!0,s=t.length,c=[],l=e.length;if(!s)return c;r&&(e=td(e,Ic(r))),n?(i=Qu,a=!1):e.length>=200&&(i=ed,a=!1,e=new Xu(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},nd=Ss?Ss.isConcatSpreadable:void 0;var od=function(t){return Pc(t)||Ac(t)||!!(nd&&t&&t[nd])};var id=function t(e,r,n,o,i){var a=-1,s=e.length;for(n||(n=od),i||(i=[]);++a<s;){var c=e[a];r>0&&n(c)?r>1?t(c,r-1,n,o,i):Wl(i,c):o||(i[i.length]=c)}return i};var ad=function(t){return jc(t)&&mc(t)},sd=pc((function(t,e){return ad(t)?rd(t,id(e,1,ad,!0)):[]})),cd=sd;var ld=function(t,e){return Ll(e,(function(e){return Ns(t[e])}))};var ud=function(t){return null==t?[]:ld(t,Wc(t))};var dd=function(t){return"string"==typeof t||!Pc(t)&&jc(t)&&"[object String]"==Rs(t)},fd=/\s/;var hd=function(t){for(var e=t.length;e--&&fd.test(t.charAt(e)););return e},pd=/^\s+/;var gd=function(t){return t?t.slice(0,hd(t)+1).replace(pd,""):t};var md=function(t){return"symbol"==typeof t||jc(t)&&"[object Symbol]"==Rs(t)},bd=/^[-+]0x[0-9a-f]+$/i,yd=/^0b[01]+$/i,vd=/^0o[0-7]+$/i,wd=parseInt;var xd=function(t){if("number"==typeof t)return t;if(md(t))return NaN;if(Is(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Is(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=gd(t);var r=yd.test(t);return r||vd.test(t)?wd(t.slice(2),r?2:8):bd.test(t)?NaN:+t},_d=1/0;var kd=function(t){return t?(t=xd(t))===_d||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0};var jd=function(t){var e=kd(t),r=e%1;return e==e?r?e-r:e:0};var Sd=function(t,e){return td(e,(function(e){return t[e]}))};var Od=function(t){return null==t?[]:Sd(t,Wc(t))},Td=Math.max;var Ed=function(t,e,r,n){t=mc(t)?t:Od(t),r=r&&!n?jd(r):0;var o=t.length;return r<0&&(r=Td(o+r,0)),dd(t)?r<=o&&t.indexOf(e,r)>-1:!!o&&Zu(t,e,r)>-1},Ad=Function.prototype,Pd=Object.prototype,Cd=Ad.toString,Dd=Pd.hasOwnProperty,Md=Cd.call(Object);var Rd=function(t){if(!jc(t)||"[object Object]"!=Rs(t))return!1;var e=Yl(t);if(null===e)return!0;var r=Dd.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Cd.call(r)==Md};var Id=function(t){return jc(t)&&1===t.nodeType&&!Rd(t)};var Nd=function(t,e,r){(void 0!==r&&!tc(t[e],r)||void 0===r&&!(e in t))&&Qs(t,e,r)};var Fd=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 zd=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]};var Ld=function(t){return nc(t,Il(t))};var Bd=function(t,e,r,n,o,i,a){var s=zd(t,r),c=zd(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=Pc(c),h=!f&&Dc(c),p=!f&&!h&&zc(c);u=c,f||h||p?Pc(s)?u=s:ad(s)?u=zl(s):h?(d=!1,u=Fl(c,!0)):p?(d=!1,u=Su(c,!0)):u=[]:Rd(c)||Ac(c)?(u=s,Ac(s)?u=Ld(s):Is(s)&&!Ns(s)||(u=Pu(c))):d=!1}d&&(a.set(c,u),o(u,c,n,i,a),a.delete(c)),Nd(t,r,u)}};var Vd=function t(e,r,n,o,i){e!==r&&Fd(r,(function(a,s){if(i||(i=new Al),Is(a))Bd(e,r,s,n,t,o,i);else{var c=o?o(zd(e,s),a,s+"",e,r,i):void 0;void 0===c&&(c=a),Nd(e,s,c)}}),Il)},$d=wc((function(t,e,r){Vd(t,e,r)})),Ud=Ss?Ss.prototype:void 0,Hd=Ud?Ud.toString:void 0;var Wd=function t(e){if("string"==typeof e)return e;if(Pc(e))return td(e,t)+"";if(md(e))return Hd?Hd.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r};var Yd=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 Xd=function(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:Yd(t,e,r)};var qd=function(t,e){for(var r=t.length;r--&&Zu(e,t[r],0)>-1;);return r};var Kd=function(t,e){for(var r=-1,n=t.length;++r<n&&Zu(e,t[r],0)>-1;);return r};var Gd=function(t){return t.split("")},Zd=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var Jd=function(t){return Zd.test(t)},Qd="\\ud800-\\udfff",tf="["+Qd+"]",ef="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",rf="\\ud83c[\\udffb-\\udfff]",nf="[^"+Qd+"]",of="(?:\\ud83c[\\udde6-\\uddff]){2}",af="[\\ud800-\\udbff][\\udc00-\\udfff]",sf="(?:"+ef+"|"+rf+")"+"?",cf="[\\ufe0e\\ufe0f]?",lf=cf+sf+("(?:\\u200d(?:"+[nf,of,af].join("|")+")"+cf+sf+")*"),uf="(?:"+[nf+ef+"?",ef,of,af,tf].join("|")+")",df=RegExp(rf+"(?="+rf+")|"+uf+lf,"g");var ff=function(t){return t.match(df)||[]};var hf=function(t){return Jd(t)?ff(t):Gd(t)};var pf=function(t){return null==t?"":Wd(t)};var gf=function(t,e,r){if((t=pf(t))&&(r||void 0===e))return gd(t);if(!t||!(e=Wd(e)))return t;var n=hf(t),o=hf(e),i=Kd(n,o),a=qd(n,o)+1;return Xd(n,i,a).join("")},mf=E((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 Jn})),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 Qe})),r.d(e,"HtmlTag",(function(){return Br})),r.d(e,"ImageTag",(function(){return dn})),r.d(e,"Layer",(function(){return Ae})),r.d(e,"PictureTag",(function(){return Cn})),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 Hn}));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 J})),r.d(n,"DEFAULT_TIMEOUT_MS",(function(){return Q})),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 A.a})),r.d(o,"isArray",(function(){return C.a})),r.d(o,"isPlainObject",(function(){return M.a})),r.d(o,"isString",(function(){return I.a})),r.d(o,"merge",(function(){return F.a})),r.d(o,"contains",(function(){return A.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 Et})),r.d(o,"withCamelCaseKeys",(function(){return At})),r.d(o,"withSnakeCaseKeys",(function(){return Pt})),r.d(o,"base64Encode",(function(){return Ct})),r.d(o,"base64EncodeURL",(function(){return Dt})),r.d(o,"extractUrlParams",(function(){return Mt})),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 U.a})),r.d(o,"getData",(function(){return $t})),r.d(o,"setData",(function(){return Ut})),r.d(o,"getAttribute",(function(){return Ht})),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 Jt})),r.d(o,"curCSS",(function(){return Qt})),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(_),j=r("lodash/functions"),S=r.n(j),O=r("lodash/identity"),T=r.n(O),E=r("lodash/includes"),A=r.n(E),P=r("lodash/isArray"),C=r.n(P),D=r("lodash/isPlainObject"),M=r.n(D),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),$=r("lodash/trim"),U=r.n($);function H(t){return H="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},H(t)}function W(){return"object"===("undefined"==typeof window?"undefined":H(window))&&window.IntersectionObserver}function Y(){return"object"===("undefined"==typeof HTMLImageElement?"undefined":H(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",J=Z,Q=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!A()(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]",jt=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("_")},Et=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},At=function(t){return Et(t,Ot)},Pt=function(t){return Et(t,Tt)},Ct="undefined"!=typeof btoa&&jt(btoa)?btoa:"undefined"!=typeof Buffer&&jt(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")},Dt=function(t){try{t=decodeURI(t)}finally{t=encodeURI(t)}return Ct(t)};function Mt(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 $t=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)}},Ut=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)}},Ht=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=U()("".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 Jt=function(t,e){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style)return t.style[e]},Qt=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=Jt(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=Qt(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=Qt(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,je)},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!M()(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}(),je={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,Ee(n.key),n)}}function Ee(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 Ae=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 Pe(t){return Pe="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},Pe(t)}function Ce(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,De(n.key),n)}}function De(t){var e=function(t,e){if("object"!=Pe(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Pe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Pe(e)?e:e+""}function Me(t,e,r){return e=Ie(e),function(t,e){if(e&&("object"===Pe(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=Me(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("_")}}])&&Ce(r.prototype,n),o&&Ce(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(Ae);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=Ue(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,$e()?Reflect.construct(e,r||[],Ue(t).constructor):e.apply(t,r))}function $e(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return($e=function(){return!!t})()}function Ue(t){return Ue=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ue(t)}function He(t,e){return He=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},He(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&&He(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 Je(t,e){return Je=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Je(t,e)}var Qe=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&&Je(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(Dt(this.options.url))}}])&&Xe(r.prototype,n),o&&Xe(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(Ae);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=C()(t)||M()(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?[]:C()(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 C()(this.origValue)?this.origValue.map((function(e){return t.process(e)})):this.process(this.origValue)}},{key:"set",value:function(t){return null==t||C()(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():M()(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,C()(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 Ae)t=this.origValue;else if(M()(this.origValue)){var e=At(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 Qe(e):new Ae(e)}else t=I()(this.origValue)?/^fetch:.+/.test(this.origValue)?new Qe(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 jr(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 Er(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 Ar=function(){function t(e){var r,n;jr(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})),Er(e,this.otherOptions),t&&!Nt(this.chained)){var r=this.chained.map((function(t){return t.toOptions()}));r.push(e),Er(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=Cr(arguments),n[e]=new gr(e,r,i).set(t),this},this.rangeParam=function(t,e,r,o,i){return i=Cr(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=Cr(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=Cr(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(Pr)?t:Tt(t));return e}().sort()},this.toPlainObject=function(){var t,e,r;for(e in t={},n)t[e]=n[e].value(),M()(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)||C()(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(Pr)?"$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 A()(Mr.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(C()(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(Pr)?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!C()(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],(C()(p)&&!Nt(p)||!C()(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),A()(Mr.PARAM_NAMES,s)||A()(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")||A()(["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 Mr.methods}},{key:"isValidParamName",value:function(t){return Mr.methods.indexOf(Ot(t))>=0}}])}(),Pr=/^\$[a-zA-Z0-9]+$/;function Cr(t){var e;return e=null!=t?t[t.length-1]:void 0,V()(e)?e:void 0}function Dr(t){var e=t.function_type,r=t.source;return"remote"===e?[e,btoa(r)].join(":"):"wasm"===e?[e,r].join(":"):void 0}Ar.prototype.trans_separator="/",Ar.prototype.param_separator=",";var Mr=function(t){function e(t){return jr(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 M()(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 Dr(t)}))}},{key:"customPreFunction",value:function(t){if(!this.get("custom_function"))return this.rawParam(t,"custom_function","",(function(){return(t=Dr(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:C()(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(".."):C()(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)}}])}(Ar);Mr.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"],Mr.PARAM_NAMES=Mr.methods.map(Tt).concat(Se.CONFIG_PARAMS);var Rr=Mr;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('"',""").replace("'","'"):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&&(M()(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=$t(t,"src-cache")||$t(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){M()(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 $r(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 Ur(t){return!!t&&!!t.match(/^https?:\//)}function Hr(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!==J&&(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 Ur(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(Ur(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]+/)||Ur(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=$r(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=Hr(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(M()(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(Ur(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 Jr(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 Qr(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=Mt(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=Jr(t,r,n);if(a){var c=Qr(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,jn(n.key),n)}}function jn(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=En(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||[],En(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=En(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 En(t){return En=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},En(t)}function An(t,e){return An=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},An(t,e)}var Pn=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&&An(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=Mt(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(En(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),Cn=Pn;function Dn(t){return Dn="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},Dn(t)}function Mn(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"!=Dn(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Dn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Dn(e)?e:e+""}function In(t,e,r){return e=zn(e),function(t,e){if(e&&("object"===Dn(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"],$n={format:"jpg",resource_type:"video"},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),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 C()(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),C()(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={}),M()(r)){var n=null!=r.public_id?nt:$n;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)||C()(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="+(C()(r)?r.join(", "):r))),"<source "+this.htmlAttrs({src:t,type:n})+">"}}],n&&Mn(r.prototype,n),o&&Mn(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(Br),Hn=Un;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 Jn=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 Qn(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||Q,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=$t(e,"width")||0)&&(r=t,Ut(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||(Ut(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 Cn(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 Hn(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=$t(t,"breakpoints")||$t(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 Ut(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 C()(t)?t:"NodeList"===t.constructor.name?Qn(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=$t(u,"src-cache")||$t(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:Jn,Cloudinary:ko,Condition:be,Configuration:Se,crc32:a,Expression:le,FetchLayer:Qe,HtmlTag:Br,ImageTag:dn,Layer:Ae,PictureTag:Cn,SubtitlesLayer:We,TextLayer:Fe,Transformation:Rr,utf8_encode:i,Util:o,VideoTag:Hn}},"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(Xc,$u,Uu,cd,ud,oc,Ed,Pc,Id,Ns,Rd,dd,$d,gf)}));function bf(){return bf=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},bf.apply(this,arguments)}function yf(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,vf(t,e)}function vf(t,e){return vf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},vf(t,e)}function wf(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 xf=["public_id"],_f=["publicId"],kf=["children"],jf=["children","accessibility","placeholder"],Sf=mf.Util.camelCase,Of=mf.Util.withCamelCaseKeys,Tf=mf.Util.isEmpty,Ef=["accessibility","breakpoints","dataSrc","placeholder","publicId","signature","authToken"],Af={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg"},Pf=[].concat(mf.Transformation.PARAM_NAMES,Ef).map(mf.Util.camelCase).reduce((function(t,e){return t[e]=!0,t}),{}),Cf=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:bf({},t,((r={})[n]=o,r))}),{})),n=wf(r,xf),o=mf.Util.withSnakeCaseKeys(n);return mf.Cloudinary.new(o)},Df=function(t){return function(t,e){var r=t.publicId,n=wf(t,_f);return Cf(n)[e+"Tag"](r,mf.Util.withSnakeCaseKeys(n))}(t,"image")},Mf=function(t,e){var r=mf.Util.withSnakeCaseKeys(e),n=Cf(r);return n.cloudinary_update(t,r),n.responsive(r,!1)},Rf=function(t){var e=t.children,r=wf(t,kf),n={children:e,cloudinaryProps:{},nonCloudinaryProps:{},cloudinaryReactProps:{}};return Object.keys(r).forEach((function(t){var e=mf.Util.camelCase(t),o=r[t];Pf[e]?void 0!==r[t]&&null!==r[t]&&(n.cloudinaryProps[e]=o):"includeOwnBody"===e?n.cloudinaryReactProps[e]=o:n.nonCloudinaryProps[t]=o})),n},If=function(t,r){return!(!e.isValidElement(t)||!t.type||t.type.displayName!==r)},Nf=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}),{})},Ff=function t(r){var n=r?e.Children.toArray(r).filter((function(t){return If(t,"CloudinaryTransformation")})).map((function(e){var r=Nf(e.props,e.context),n=t(e.props.children);return n&&(r.transformation=n),r})):[];return n.length?n:null},zf=function(t){var e=t.children,r=t.accessibility,n=t.placeholder,o=wf(t,jf),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}(Of(o),mf.Transformation.methods)||{},a=Ff(e);Tf(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},Lf=i(),Bf=mf.Util.camelCase,Vf=function(t){function e(e,r){var n;return(n=t.call(this,e,r)||this).getContext=function(){return n.context||{}},n.onIntersect=function(){n.setState({isInView:!0})},n.getExtendedProps=function(t,e){return void 0===t&&(t=n.props),void 0===e&&(e=n.getContext()),Nf(e,t)},n.attachRef=function(t){var e=n.props.innerRef;n.element.current=t,e&&(e instanceof Function?e(t):e.current=t)},n.element=a(),n}return yf(e,t),e.prototype.render=function(){return null},e}(s);Vf.defaultProps={innerRef:null,publicId:null},Vf.propTypes=bf({},function(t){t=t||[];for(var e={},r=0;r<t.length;r++){var n=t[r];e[Sf(n)]=xs.any}return e}(mf.Transformation.PARAM_NAMES.map(Bf)),{innerRef:xs.any,publicId:xs.string}),Vf.contextType=Lf;var $f=function(t){function r(){return t.apply(this,arguments)||this}return yf(r,t),r.prototype.render=function(){var t=bf({},this.getContext(),this.props),r=Rf(t),n=r.children,o=r.cloudinaryProps,i=r.nonCloudinaryProps,a=r.cloudinaryReactProps;return e.createElement(Lf.Provider,{value:o},a.includeOwnBody?n:e.createElement("div",i,n))},r}(Vf);$f.propTypes=bf({},Vf.propTypes,{includeOwnBody:xs.bool}),$f.defaultProps={includeOwnBody:!1};var Uf=["children","innerRef"],Hf="\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(),Wf=function(t){function r(r,n){var o;return(o=t.call(this,r,n)||this).isResponsive=function(){var t=o.getExtendedProps(),e=t.responsive,r=t.width;return e&&"auto"!==r&&console.warn(Hf),e&&o.element&&o.element.current},o.getOptions=function(){var t=o.getExtendedProps(),e=wf(bf({},t,zf(t)),Uf);return o.shouldLazyLoad()||delete e.loading,e},o.getAttributes=function(t){void 0===t&&(t={});var e=t.placeholder,r=Rf(bf({},o.getOptions(),t)),n=r.cloudinaryProps,i=r.nonCloudinaryProps,a=r.cloudinaryReactProps,s=Df(bf({},n,a)),c=bf({},mf.Util.withCamelCaseKeys(s.attributes()),i);return c.dataSrc&&(c["data-src"]=c.dataSrc),e&&c.id&&(c.id+="-cld-placeholder"),o.shouldLazyLoad()&&(c["data-src"]=c.dataSrc||c.src,delete c.src),Ef.forEach((function(t){delete c[t]})),c},o.update=function(){if(o.shouldLazyLoad())mf.Util.detectIntersection(o.element.current,o.onIntersect);else if(o.isResponsive()){var t=o.getOptions(),e=o.getPlaceholderType();if(e){var r=Mf(o.placeholderElement.current,bf({},t,{placeholder:e}));o.listenerRemovers.push(r)}var n=Mf(o.element.current,t);o.listenerRemovers.push(n)}},o.shouldLazyLoad=function(){var t=o.getExtendedProps().loading;return!o.state.isInView&&("lazy"===t||"auto"===t)},o.handleImageLoaded=function(){var t=o.props.onLoad;o.setState({isLoaded:!0},(function(){t&&t()}))},o.renderPlaceholder=function(t,r){r.style=bf({},r.style||{},{opacity:0,position:"absolute"}),r.onLoad=o.handleImageLoaded;var n=o.getAttributes({placeholder:t});return e.createElement(c,null,o.renderImage(r),e.createElement("div",{style:{display:"inline"}},e.createElement("img",bf({ref:o.placeholderElement},n))))},o.renderImage=function(t){return e.createElement("img",bf({ref:o.attachRef},t))},o.getPlaceholderType=function(){var t=function(t){var r=null;return t&&(r=e.Children.toArray(t).find((function(t){return If(t,"CloudinaryPlaceholder")}))),r}(o.getExtendedProps().children);return t?t.props.type:null},o.placeholderElement=a(),o.state={isLoaded:!1},o.listenerRemovers=[],o}yf(r,t);var n=r.prototype;return n.componentDidMount=function(){this.update()},n.componentDidUpdate=function(){this.update()},n.componentWillUnmount=function(){this.listenerRemovers.forEach((function(t){return t()}))},n.render=function(){var t=this.state.isLoaded,e=this.getAttributes(),r=this.getPlaceholderType();return!t&&r?this.renderPlaceholder(r,e):this.renderImage(e)},r}(Vf);Wf.defaultProps={},Wf.propTypes=Vf.propTypes,Wf.propTypes.responsive=xs.bool,Wf.propTypes.loading=xs.string,Wf.propTypes.accessibility=xs.string,Vf.propTypes;var Yf=["innerRef","publicId","fallback","children","sourceTypes","sourceTransformation","sources"],Xf=function(t){function r(){for(var r,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(r=t.call.apply(t,[this].concat(o))||this).mimeType="video",r.mimeSubTypes=Af,r.getMergedProps=function(){return bf({},r.getContext(),r.props)},r.generateVideoUrl=function(t,e,r,n,o){var i=mf.Util.withSnakeCaseKeys(mf.Util.defaults({},n,r,{resource_type:"video",format:o}));return t.url(e,i)},r.generateUsingSourceTypes=function(t,e,n,o,i){return i.map((function(i){return r.toSourceTag(t,e,n,o[i]||{},i,r.buildMimeType(i))}))},r.generateUsingSources=function(t,e,n,o){return o.map((function(o){var i=o.transformations,a=void 0===i?{}:i,s=o.type,c=o.codecs;return r.toSourceTag(t,e,n,a,s,r.buildMimeType(s,c))}))},r.toSourceTag=function(t,n,o,i,a,s){var c=r.generateVideoUrl(t,n,o,i,a);return e.createElement("source",{key:c+s,src:c,type:s})},r.buildMimeType=function(t,e){var n=r.mimeType+"/"+(r.mimeSubTypes[t]||t);return mf.Util.isEmpty(e)||(n+="; codecs="+(mf.Util.isArray(e)?e.join(", "):e)),n},r.getVideoTagProps=function(){var t=r.getMergedProps(),e=t.publicId,n=t.children,o=t.sourceTypes,i=t.sourceTransformation,a=void 0===i?{}:i,s=t.sources,c=wf(t,Yf);c=Nf(c,{});var l=Rf(c),u=l.cloudinaryProps,d=l.cloudinaryReactProps,f=l.nonCloudinaryProps;c=bf({},u,d);var h=mf.Util.withSnakeCaseKeys(c),p=mf.Cloudinary.new(h),g=p.videoTag(e,c).attributes();g=bf({},mf.Util.withCamelCaseKeys(g),f);var m=zf(bf({},c,{children:n})),b=null;return mf.Util.isArray(s)&&!mf.Util.isEmpty(s)?b=r.generateUsingSources(p,e,m,s):mf.Util.isArray(o)?b=r.generateUsingSourceTypes(p,e,m,a,o):g.src=r.generateVideoUrl(p,e,m,a[o]||{},o),{sources:b,tagAttributes:g}},r.reloadVideo=function(){r.element&&r.element.current&&r.element.current.load()},r}yf(r,t);var n=r.prototype;return n.componentDidUpdate=function(){this.reloadVideo()},n.render=function(){var t=this.props,r=t.fallback,n=t.children,o=this.getVideoTagProps(),i=o.tagAttributes,a=o.sources;return e.createElement("video",bf({ref:this.attachRef},i),a,r,n)},r}(Vf);function qf(t){var e=t.publicId,r=t.secure,n=void 0===r||r,o=t.alt,i=t.styles;return F.jsx($f,_({cloudName:process.env.REACT_APP_CLOUDINARY_NAME?process.env.REACT_APP_CLOUDINARY_NAME:""},{children:F.jsx(Wf,{publicId:e||"public/placeholders/placeholder-dark_uwuxct",secure:n,alt:o,className:i})}))}function Kf(t){var e,r=t.children,n=t.styles;return F.jsx("div",_({className:z((e={"w-full p-5 border border-gray-800/70 bg-gray-800/30 rounded-md text-gray-500":!0},e["".concat(n)]=n,e))},{children:r}))}function Gf(t){var e=t.title,r=t.children;return F.jsxs("div",_({className:"py-3"},{children:[e&&F.jsx("div",_({className:"text-paragraph font-semibold"},{children:e})),F.jsx("div",_({className:"flex flex-col gap-1"},{children:r}))]}))}Xf.propTypes={publicId:xs.string,sources:xs.arrayOf(xs.shape({type:xs.string,codecs:xs.oneOfType([xs.string,xs.arrayOf(xs.string)]),transformations:xs.object}))},Xf.defaultProps={sourceTypes:mf.Cloudinary.DEFAULT_VIDEO_PARAMS.source_types},xs.string,xs.string;var Zf={1:"text-5xl leading-[90px]",2:"text-4xl leading-[80px]",3:"text-3xl leading-[70px]"},Jf=function(t){var e,r=t.level,n=void 0===r?1:r,o=t.children,i=t.variant,a=void 0===i?"default":i,s=t.decoration,c=void 0===s?"noUnderline":s,l=t.bold,u=t.italic,d=t.styles,f=t.onClick;return F.jsx("div",_({onClick:f,className:z((e={},e["".concat(V[a])]=a,e["".concat(Zf[n])]=n,e["".concat(d)]=d,e["".concat(H[c])]=c,e["font-bold"]=l,e.italic=u,e))},{children:o||"Title"}))},Qf={1:"text-2xl leading-[50px] pt-4",2:"text-xl leading-[50px]",3:"text-lg leading-[40px]"},th=function(t){var e,r=t.level,n=void 0===r?1:r,o=t.children,i=t.variant,a=void 0===i?"default":i,s=t.decoration,c=void 0===s?"noUnderline":s,l=t.bold,u=t.italic,d=t.styles,f=t.onClick;return F.jsx("div",_({onClick:f,className:z((e={},e["".concat(V[a]," opacity-80")]=a,e["".concat(Qf[n])]=n,e["".concat(d)]=d,e["".concat(H[c])]=c,e["font-bold"]=l,e.italic=u,e))},{children:o||"Title"}))},eh={1:"text-base leading-[28px]",2:"text-sm leading-[25px]",3:"text-xs leading-[20px]"},rh=function(t){var e,r=t.level,n=void 0===r?1:r,o=t.children,i=t.variant,a=void 0===i?"default":i,s=t.decoration,c=void 0===s?"noUnderline":s,l=t.bold,u=t.italic,d=t.styles,f=t.onClick;return F.jsx("div",_({onClick:f,className:z((e={},e["".concat(V[a]," opacity-60")]=a,e["".concat(eh[n])]=n,e["".concat(d)]=d,e["".concat(H[c])]=c,e["font-bold"]=l,e.italic=u,e))},{children:o||"Text"}))},nh=function(t){var e,r=t.children,n=t.href,o=t.target,i=void 0===o?"self":o,a=t.variant,s=void 0===a?"info":a,c=t.decoration,l=void 0===c?"underline":c,u=t.bold,d=t.italic,f=t.styles,h=t.onClick;return F.jsx("a",_({href:n||"#",target:W[i],onClick:function(t){h&&(t.preventDefault(),h())},className:z((e={},e["".concat(V[s])]=s,e["".concat(H[l])]=l,e["font-bold"]=u,e.italic=d,e["hover:cursor-pointer hover:brightness-125"]=!0,e["transition-all ease-in-out"]=!0,e["".concat(f)]=f,e))},{children:r||"Link"}))},oh=function(t){var e,r=t.children,n=t.styles;return F.jsx("div",_({className:z((e={"pl-4 py-1 border-l-2 border-l-gray-400 w-full":!0},e["".concat(n)]=n,e))},{children:r}))},ih={Chapter:Jf,Section:th,Paragraph:rh,Link:nh,Quote:oh},ah={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},sh=e.createContext&&e.createContext(ah),ch=function(){return ch=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},ch.apply(this,arguments)},lh=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 uh(t){return t&&t.map((function(t,r){return e.createElement(t.tag,ch({key:r},t.attr),uh(t.child))}))}function dh(t){return function(r){return e.createElement(fh,ch({attr:ch({},t.attr)},r),uh(t.child))}}function fh(t){var r=function(r){var n,o=t.attr,i=t.size,a=t.title,s=lh(t,["attr","size","title"]),c=i||r.size||"1em";return r.className&&(n=r.className),t.className&&(n=(n?n+" ":"")+t.className),e.createElement("svg",ch({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,o,s,{className:n,style:ch(ch({color:t.color||r.color},r.style),t.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),a&&e.createElement("title",null,a),t.children)};return void 0!==sh?e.createElement(sh.Consumer,null,(function(t){return r(t)})):r(ah)}function hh(t){return dh({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 ph(t){return dh({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 gh(t){return dh({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 mh(t){return dh({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 bh(t){return dh({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 yh=function(t){var r=t.TypographyComponent,n=void 0===r?F.jsx(rh,{level:1}):r,o=t.x;return F.jsx("div",{children:n?e.cloneElement(n,{},o):o})},vh=function(t){var e=t.TypographyComponent,r=void 0===e?F.jsx(rh,{level:1}):e,n=t.bulletVisible,o=void 0===n||n,i=t.children;return F.jsxs("div",_({className:"inline-flex gap-3"},{children:[o&&F.jsx("div",_({className:z({"text-[10px] relative top-[10px]":!0})},{children:F.jsx(hh,{})})),F.jsx(yh,{TypographyComponent:r,x:i})]}))},wh=[{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"}],xh=function(t){var e=wh.find((function(e){return e.code===t}));return e?e.symbol:null},_h=function(t,e){return(e-e/100*t).toFixed(2)};function kh(t){var e,r=t.discount,n=t.price,o=t.code,i=void 0===o?"USD":o,a=t.styles;return F.jsxs("div",_({className:z((e={"inline-flex gap-3 text-md w-fit":!0},e["".concat(a)]=a,e))},{children:[r&&0!==r&&F.jsxs("div",_({className:"bg-green-700 px-2 py-1 font-bold rounded-md text-gray-200"},{children:["-",r,"%"]})),F.jsxs("div",_({className:"inline-flex gap-1 items-center"},{children:[r?F.jsxs("div",_({className:"inline-flex gap-[3px] font-semibold"},{children:[F.jsxs("div",_({className:"theme-text-sm line-through"},{children:[xh(i),n]})),F.jsxs("div",_({className:"theme-text-md"},{children:[xh(i),_h(r,n)]}))]})):F.jsxs("div",_({className:"text-gray-50 font-semibold"},{children:[xh(i),n]})),F.jsx("div",_({className:"text-yellow-500 font-thin"},{children:i}))]}))]}))}function jh(t){var e=t.rating,r=t.reviewAmount,n=t.isNumericRatingEnabled,o=void 0!==n&&n,i=t.isReviewAmountEnabled,a=void 0!==i&&i,s=t.styles,c=Math.floor(e),l=Math.ceil(e-c),u=5-c-l,d=F.jsx(gh,{}),f=F.jsx(mh,{}),h=F.jsx(bh,{});return F.jsxs("div",_({className:"inline-flex gap-2 items-center"},{children:[o&&F.jsx("div",_({className:"text-yellow-700 font-semibold text-[14px]"},{children:e.toFixed(1)})),F.jsxs("div",_({className:"flex flex-row gap-[2px] text-[13px] text-yellow-600 ".concat(s)},{children:[O([],Array(c),!0).map((function(t,e){return F.jsx("span",{children:d},e)})),O([],Array(l),!0).map((function(t,e){return F.jsx("span",{children:f},e+c)})),O([],Array(u),!0).map((function(t,e){return F.jsx("span",{children:h},e+c+l)}))]})),a&&F.jsxs("div",_({className:"text-gray-400 font-semibold text-[14px]"},{children:["(",r,")"]}))]}))}var Sh=function(t){var e=t.averageRating,r=t.totalReviews;return F.jsxs("div",_({className:"flex flex-col items-center justify-center w-fit mb-4"},{children:[F.jsx("div",_({className:"text-[60px] font-bold text-gray-400"},{children:e.toFixed(1)})),F.jsx("div",{children:F.jsx(jh,{rating:Math.round(e)})}),F.jsxs("div",_({className:"text-gray-500 text-sm"},{children:[r," reviews"]}))]}))},Oh=function(t){var e=t.star,r=t.percentage;return F.jsxs("div",_({className:"flex items-center"},{children:[F.jsx("div",_({className:"text-sm text-gray-600 w-6"},{children:e})),F.jsx("div",_({className:"relative bg-gray-400 bg-opacity-50 h-[10px] w-full rounded-md overflow-hidden"},{children:F.jsx("div",{className:"absolute bg-yellow-400 h-full",style:{width:"".concat(r,"%")}})})),F.jsxs("div",_({className:"text-xs text-gray-500 w-[60px] text-right"},{children:[r.toFixed(1),"%"]}))]}))},Th=function(t){var e=t.ratingDistribution;return F.jsx("div",_({className:"flex flex-col gap-2 w-full max-w-md"},{children:e.map((function(t){return F.jsx(Oh,{star:t.star,percentage:t.percentage},t.star)}))}))};function Eh(t){var e=t.numericRating,r=void 0===e||e,n=t.progressBarsRating,o=void 0===n||n,i=t.ratingDistribution,a=void 0===i?[{star:5,count:0},{star:4,count:0},{star:3,count:0},{star:2,count:0},{star:1,count:0}]:i,s=a.reduce((function(t,e){return t+e.count}),0),c=s>0?a.reduce((function(t,e){return t+e.star*e.count}),0)/s:0,l=a.map((function(t){return{star:t.star,percentage:s>0?t.count/s*100:0}}));return F.jsxs("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"},{children:[r&&F.jsx(Sh,{averageRating:c,totalReviews:s}),o&&F.jsx(Th,{ratingDistribution:l})]}))}var Ah=function(t){var e,r=t.children,n=t.styles;return F.jsx("div",_({className:z((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(n)]=n,e))},{children:r}))};function Ph(t){var e,r=t.img,n=t.onClick,o=t.selected,i=t.styles;return F.jsx("div",_({onClick:n,className:z((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":!o,"border-opacity-100 border-[#0b6b05] brightness-100":o,"transition-all ease-in-out duration-500":!0},e["".concat(i)]=i,e))},{children:F.jsx(qf,{publicId:r,alt:"image",styles:"w-full h-full object-cover"})}))}function Ch(t){var e=t.isLoading,r=t.isSuccess,n=t.coverArt,i=t.screenshots,a=l([{img:n,selected:!0}]),s=a[0],c=a[1];o((function(){c([{img:n,selected:!0}])}),[r]),o((function(){if(i){var t=[];i.forEach((function(e){t.push({img:e,selected:!1})})),c((function(e){return O(O([],e,!0),t,!0)}))}}),[r]);var u=l(n),d=u[0],f=u[1];o((function(){f(n)}),[n]);return F.jsx("div",{children:e?F.jsx("div",{children:F.jsx(Ah,{styles:"w-full aspect-w-16 aspect-h-9"})}):F.jsxs("div",{children:[F.jsx("div",{children:F.jsx(qf,{publicId:d,alt:"displayImg",styles:"aspect-w-16 aspect-h-9"})}),F.jsx("div",_({className:"relative h-[130px]"},{children:F.jsx("div",_({className:"absolute pt-2 pb-4 w-full flex space-x-2 overflow-auto"},{children:s.map((function(t,e){return F.jsx(Ph,{img:t.img,onClick:function(){return function(t,e){f(e);var r=s.map((function(e,r){return _(_({},e),r===t?{selected:!0}:{selected:!1})}));c(r)}(e,t.img)},selected:t.selected},e)}))}))}))]})})}function Dh(t){return dh({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 Mh=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===Rh}(t)}(t)};var Rh="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ih(t,e){return!1!==e.clone&&e.isMergeableObject(t)?Fh((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function Nh(t,e,r){return t.concat(e).map((function(t){return Ih(t,r)}))}function Fh(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||Nh,r.isMergeableObject=r.isMergeableObject||Mh;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]=Ih(t[e],r)})),Object.keys(e).forEach((function(o){r.isMergeableObject(e[o])&&t[o]?n[o]=Fh(t[o],e[o],r):n[o]=Ih(e[o],r)})),n}(t,e,r):Ih(e,r)}Fh.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return Fh(t,r,e)}),{})};var zh=Fh,Lh="object"==typeof global&&global&&global.Object===Object&&global,Bh="object"==typeof self&&self&&self.Object===Object&&self,Vh=Lh||Bh||Function("return this")(),$h=Vh.Symbol,Uh=Object.prototype,Hh=Uh.hasOwnProperty,Wh=Uh.toString,Yh=$h?$h.toStringTag:void 0;var Xh=Object.prototype.toString;var qh=$h?$h.toStringTag:void 0;function Kh(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":qh&&qh in Object(t)?function(t){var e=Hh.call(t,Yh),r=t[Yh];try{t[Yh]=void 0;var n=!0}catch(t){}var o=Wh.call(t);return n&&(e?t[Yh]=r:delete t[Yh]),o}(t):function(t){return Xh.call(t)}(t)}function Gh(t,e){return function(r){return t(e(r))}}var Zh=Gh(Object.getPrototypeOf,Object);function Jh(t){return null!=t&&"object"==typeof t}var Qh=Function.prototype,tp=Object.prototype,ep=Qh.toString,rp=tp.hasOwnProperty,np=ep.call(Object);function op(t){if(!Jh(t)||"[object Object]"!=Kh(t))return!1;var e=Zh(t);if(null===e)return!0;var r=rp.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&ep.call(r)==np}function ip(t,e){return t===e||t!=t&&e!=e}function ap(t,e){for(var r=t.length;r--;)if(ip(t[r][0],e))return r;return-1}var sp=Array.prototype.splice;function cp(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 lp(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}cp.prototype.clear=function(){this.__data__=[],this.size=0},cp.prototype.delete=function(t){var e=this.__data__,r=ap(e,t);return!(r<0)&&(r==e.length-1?e.pop():sp.call(e,r,1),--this.size,!0)},cp.prototype.get=function(t){var e=this.__data__,r=ap(e,t);return r<0?void 0:e[r][1]},cp.prototype.has=function(t){return ap(this.__data__,t)>-1},cp.prototype.set=function(t,e){var r=this.__data__,n=ap(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function up(t){if(!lp(t))return!1;var e=Kh(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var dp=Vh["__core-js_shared__"],fp=function(){var t=/[^.]+$/.exec(dp&&dp.keys&&dp.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var hp=Function.prototype.toString;function pp(t){if(null!=t){try{return hp.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var gp=/^\[object .+?Constructor\]$/,mp=Function.prototype,bp=Object.prototype,yp=mp.toString,vp=bp.hasOwnProperty,wp=RegExp("^"+yp.call(vp).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function xp(t){return!(!lp(t)||(e=t,fp&&fp in e))&&(up(t)?wp:gp).test(pp(t));var e}function _p(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return xp(r)?r:void 0}var kp=_p(Vh,"Map"),jp=_p(Object,"create");var Sp=Object.prototype.hasOwnProperty;var Op=Object.prototype.hasOwnProperty;function Tp(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 Ep(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 Ap(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])}}Tp.prototype.clear=function(){this.__data__=jp?jp(null):{},this.size=0},Tp.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Tp.prototype.get=function(t){var e=this.__data__;if(jp){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return Sp.call(e,t)?e[t]:void 0},Tp.prototype.has=function(t){var e=this.__data__;return jp?void 0!==e[t]:Op.call(e,t)},Tp.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=jp&&void 0===e?"__lodash_hash_undefined__":e,this},Ap.prototype.clear=function(){this.size=0,this.__data__={hash:new Tp,map:new(kp||cp),string:new Tp}},Ap.prototype.delete=function(t){var e=Ep(this,t).delete(t);return this.size-=e?1:0,e},Ap.prototype.get=function(t){return Ep(this,t).get(t)},Ap.prototype.has=function(t){return Ep(this,t).has(t)},Ap.prototype.set=function(t,e){var r=Ep(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function Pp(t){var e=this.__data__=new cp(t);this.size=e.size}Pp.prototype.clear=function(){this.__data__=new cp,this.size=0},Pp.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Pp.prototype.get=function(t){return this.__data__.get(t)},Pp.prototype.has=function(t){return this.__data__.has(t)},Pp.prototype.set=function(t,e){var r=this.__data__;if(r instanceof cp){var n=r.__data__;if(!kp||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Ap(n)}return r.set(t,e),this.size=r.size,this};var Cp=function(){try{var t=_p(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Dp=Cp;function Mp(t,e,r){"__proto__"==e&&Dp?Dp(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var Rp=Object.prototype.hasOwnProperty;function Ip(t,e,r){var n=t[e];Rp.call(t,e)&&ip(n,r)&&(void 0!==r||e in t)||Mp(t,e,r)}function Np(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?Mp(r,s,c):Ip(r,s,c)}return r}function Fp(t){return Jh(t)&&"[object Arguments]"==Kh(t)}var zp=Object.prototype,Lp=zp.hasOwnProperty,Bp=zp.propertyIsEnumerable,Vp=Fp(function(){return arguments}())?Fp:function(t){return Jh(t)&&Lp.call(t,"callee")&&!Bp.call(t,"callee")},$p=Array.isArray;var Up="object"==typeof exports&&exports&&!exports.nodeType&&exports,Hp=Up&&"object"==typeof module&&module&&!module.nodeType&&module,Wp=Hp&&Hp.exports===Up?Vh.Buffer:void 0,Yp=(Wp?Wp.isBuffer:void 0)||function(){return!1},Xp=/^(?:0|[1-9]\d*)$/;function qp(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&Xp.test(t))&&t>-1&&t%1==0&&t<e}function Kp(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}var Gp={};function Zp(t){return function(e){return t(e)}}Gp["[object Float32Array]"]=Gp["[object Float64Array]"]=Gp["[object Int8Array]"]=Gp["[object Int16Array]"]=Gp["[object Int32Array]"]=Gp["[object Uint8Array]"]=Gp["[object Uint8ClampedArray]"]=Gp["[object Uint16Array]"]=Gp["[object Uint32Array]"]=!0,Gp["[object Arguments]"]=Gp["[object Array]"]=Gp["[object ArrayBuffer]"]=Gp["[object Boolean]"]=Gp["[object DataView]"]=Gp["[object Date]"]=Gp["[object Error]"]=Gp["[object Function]"]=Gp["[object Map]"]=Gp["[object Number]"]=Gp["[object Object]"]=Gp["[object RegExp]"]=Gp["[object Set]"]=Gp["[object String]"]=Gp["[object WeakMap]"]=!1;var Jp="object"==typeof exports&&exports&&!exports.nodeType&&exports,Qp=Jp&&"object"==typeof module&&module&&!module.nodeType&&module,tg=Qp&&Qp.exports===Jp&&Lh.process,eg=function(){try{var t=Qp&&Qp.require&&Qp.require("util").types;return t||tg&&tg.binding&&tg.binding("util")}catch(t){}}(),rg=eg&&eg.isTypedArray,ng=rg?Zp(rg):function(t){return Jh(t)&&Kp(t.length)&&!!Gp[Kh(t)]},og=Object.prototype.hasOwnProperty;function ig(t,e){var r=$p(t),n=!r&&Vp(t),o=!r&&!n&&Yp(t),i=!r&&!n&&!o&&ng(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&&!og.call(t,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||qp(l,c))||s.push(l);return s}var ag=Object.prototype;function sg(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||ag)}var cg=Gh(Object.keys,Object),lg=Object.prototype.hasOwnProperty;function ug(t){return null!=t&&Kp(t.length)&&!up(t)}function dg(t){return ug(t)?ig(t):function(t){if(!sg(t))return cg(t);var e=[];for(var r in Object(t))lg.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}var fg=Object.prototype.hasOwnProperty;function hg(t){if(!lp(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=sg(t),r=[];for(var n in t)("constructor"!=n||!e&&fg.call(t,n))&&r.push(n);return r}function pg(t){return ug(t)?ig(t,!0):hg(t)}var gg="object"==typeof exports&&exports&&!exports.nodeType&&exports,mg=gg&&"object"==typeof module&&module&&!module.nodeType&&module,bg=mg&&mg.exports===gg?Vh.Buffer:void 0,yg=bg?bg.allocUnsafe:void 0;function vg(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}function wg(){return[]}var xg=Object.prototype.propertyIsEnumerable,_g=Object.getOwnPropertySymbols,kg=_g?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}(_g(t),(function(e){return xg.call(t,e)})))}:wg,jg=kg;function Sg(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}var Og=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Sg(e,jg(t)),t=Zh(t);return e}:wg,Tg=Og;function Eg(t,e,r){var n=e(t);return $p(t)?n:Sg(n,r(t))}function Ag(t){return Eg(t,dg,jg)}function Pg(t){return Eg(t,pg,Tg)}var Cg=_p(Vh,"DataView"),Dg=_p(Vh,"Promise"),Mg=_p(Vh,"Set"),Rg=_p(Vh,"WeakMap"),Ig="[object Map]",Ng="[object Promise]",Fg="[object Set]",zg="[object WeakMap]",Lg="[object DataView]",Bg=pp(Cg),Vg=pp(kp),$g=pp(Dg),Ug=pp(Mg),Hg=pp(Rg),Wg=Kh;(Cg&&Wg(new Cg(new ArrayBuffer(1)))!=Lg||kp&&Wg(new kp)!=Ig||Dg&&Wg(Dg.resolve())!=Ng||Mg&&Wg(new Mg)!=Fg||Rg&&Wg(new Rg)!=zg)&&(Wg=function(t){var e=Kh(t),r="[object Object]"==e?t.constructor:void 0,n=r?pp(r):"";if(n)switch(n){case Bg:return Lg;case Vg:return Ig;case $g:return Ng;case Ug:return Fg;case Hg:return zg}return e});var Yg=Wg,Xg=Object.prototype.hasOwnProperty;var qg=Vh.Uint8Array;function Kg(t){var e=new t.constructor(t.byteLength);return new qg(e).set(new qg(t)),e}var Gg=/\w*$/;var Zg=$h?$h.prototype:void 0,Jg=Zg?Zg.valueOf:void 0;function Qg(t,e,r){var n,o,i,a=t.constructor;switch(e){case"[object ArrayBuffer]":return Kg(t);case"[object Boolean]":case"[object Date]":return new a(+t);case"[object DataView]":return function(t,e){var r=e?Kg(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?Kg(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,Gg.exec(o))).lastIndex=o.lastIndex,i;case"[object Symbol]":return n=t,Jg?Object(Jg.call(n)):{}}}var tm=Object.create,em=function(){function t(){}return function(e){if(!lp(e))return{};if(tm)return tm(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),rm=em;var nm=eg&&eg.isMap,om=nm?Zp(nm):function(t){return Jh(t)&&"[object Map]"==Yg(t)};var im=eg&&eg.isSet,am=im?Zp(im):function(t){return Jh(t)&&"[object Set]"==Yg(t)},sm="[object Arguments]",cm="[object Function]",lm="[object Object]",um={};function dm(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(!lp(t))return t;var u=$p(t);if(u){if(a=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&Xg.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!s)return vg(t,a)}else{var d=Yg(t),f=d==cm||"[object GeneratorFunction]"==d;if(Yp(t))return function(t,e){if(e)return t.slice();var r=t.length,n=yg?yg(r):new t.constructor(r);return t.copy(n),n}(t,s);if(d==lm||d==sm||f&&!o){if(a=c||f?{}:function(t){return"function"!=typeof t.constructor||sg(t)?{}:rm(Zh(t))}(t),!s)return c?function(t,e){return Np(t,Tg(t),e)}(t,function(t,e){return t&&Np(e,pg(e),t)}(a,t)):function(t,e){return Np(t,jg(t),e)}(t,function(t,e){return t&&Np(e,dg(e),t)}(a,t))}else{if(!um[d])return o?t:{};a=Qg(t,d,s)}}i||(i=new Pp);var h=i.get(t);if(h)return h;i.set(t,a),am(t)?t.forEach((function(n){a.add(dm(n,e,r,n,t,i))})):om(t)&&t.forEach((function(n,o){a.set(o,dm(n,e,r,o,t,i))}));var p=u?void 0:(l?c?Pg:Ag:c?pg:dg)(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]),Ip(a,o,dm(n,e,r,o,t,i))})),a}um[sm]=um["[object Array]"]=um["[object ArrayBuffer]"]=um["[object DataView]"]=um["[object Boolean]"]=um["[object Date]"]=um["[object Float32Array]"]=um["[object Float64Array]"]=um["[object Int8Array]"]=um["[object Int16Array]"]=um["[object Int32Array]"]=um["[object Map]"]=um["[object Number]"]=um[lm]=um["[object RegExp]"]=um["[object Set]"]=um["[object String]"]=um["[object Symbol]"]=um["[object Uint8Array]"]=um["[object Uint8ClampedArray]"]=um["[object Uint16Array]"]=um["[object Uint32Array]"]=!0,um["[object Error]"]=um[cm]=um["[object WeakMap]"]=!1;function fm(t){return dm(t,5)}var hm=Array.isArray,pm=Object.keys,gm=Object.prototype.hasOwnProperty,mm="undefined"!=typeof Element;function bm(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){var r,n,o,i=hm(t),a=hm(e);if(i&&a){if((n=t.length)!=e.length)return!1;for(r=n;0!=r--;)if(!bm(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=pm(t);if((n=d.length)!==pm(e).length)return!1;for(r=n;0!=r--;)if(!gm.call(e,d[r]))return!1;if(mm&&t instanceof Element&&e instanceof Element)return t===e;for(r=n;0!=r--;)if(!("_owner"===(o=d[r])&&t.$$typeof||bm(t[o],e[o])))return!1;return!0}return t!=t&&e!=e}var ym=function(t,e){try{return bm(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}},vm="production"===process.env.NODE_ENV;function wm(t,e){if(!vm){if(t)return;var r="Warning: "+e;"undefined"!=typeof console&&console.warn(r);try{throw Error(r)}catch(t){}}}function xm(t){return dm(t,4)}function _m(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 km(t){return"symbol"==typeof t||Jh(t)&&"[object Symbol]"==Kh(t)}function jm(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(jm.Cache||Ap),r}jm.Cache=Ap;var Sm,Om,Tm,Em=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Am=/\\(\\)?/g,Pm=(Sm=function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Em,(function(t,r,n,o){e.push(n?o.replace(Am,"$1"):r||t)})),e},Om=jm(Sm,(function(t){return 500===Tm.size&&Tm.clear(),t})),Tm=Om.cache,Om),Cm=Pm;function Dm(t){if("string"==typeof t||km(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}var Mm=$h?$h.prototype:void 0,Rm=Mm?Mm.toString:void 0;function Im(t){if("string"==typeof t)return t;if($p(t))return _m(t,Im)+"";if(km(t))return Rm?Rm.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Nm(t){return $p(t)?_m(t,Dm):km(t)?[t]:vg(Cm(function(t){return null==t?"":Im(t)}(t)))}var Fm={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},zm={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Lm={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Bm={};function Vm(t){return es.isMemo(t)?Lm:Bm[t.$$typeof]||Fm}Bm[es.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Bm[es.Memo]=Lm;var $m=Object.defineProperty,Um=Object.getOwnPropertyNames,Hm=Object.getOwnPropertySymbols,Wm=Object.getOwnPropertyDescriptor,Ym=Object.getPrototypeOf,Xm=Object.prototype;var qm=function t(e,r,n){if("string"!=typeof r){if(Xm){var o=Ym(r);o&&o!==Xm&&t(e,o,n)}var i=Um(r);Hm&&(i=i.concat(Hm(r)));for(var a=Vm(e),s=Vm(r),c=0;c<i.length;++c){var l=i[c];if(!(zm[l]||n&&n[l]||s&&s[l]||a&&a[l])){var u=Wm(r,l);try{$m(e,l,u)}catch(t){}}}}return e};function Km(){return Km=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},Km.apply(this,arguments)}function Gm(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function Zm(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 Jm(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Qm=i(void 0);Qm.displayName="FormikContext";var tb=Qm.Provider,eb=Qm.Consumer;function rb(){var t=d(Qm);return t||("production"!==process.env.NODE_ENV?wm(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):wm(!1)),t}var nb=function(t){return Array.isArray(t)&&0===t.length},ob=function(t){return"function"==typeof t},ib=function(t){return null!==t&&"object"==typeof t},ab=function(t){return String(Math.floor(Number(t)))===t},sb=function(t){return"[object String]"===Object.prototype.toString.call(t)},cb=function(t){return 0===p.count(t)},lb=function(t){return ib(t)&&ob(t.then)};function ub(t,e,r,n){void 0===n&&(n=0);for(var o=Nm(e);t&&n<o.length;)t=t[o[n++]];return n===o.length||t?void 0===t?r:t:r}function db(t,e,r){for(var n=xm(t),o=n,i=0,a=Nm(e);i<a.length-1;i++){var s=a[i],c=ub(t,a.slice(0,i+1));if(c&&(ib(c)||Array.isArray(c)))o=o[s]=xm(c);else{var l=a[i+1];o=o[s]=ab(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 fb(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];ib(s)?r.get(s)||(r.set(s,!0),n[a]=Array.isArray(s)?[]:{},fb(s,e,r,n[a])):n[a]=e}return n}var hb={},pb={};function gb(t){var e=t.validateOnChange,r=void 0===e||e,i=t.validateOnBlur,a=void 0===i||i,s=t.validateOnMount,c=void 0!==s&&s,d=t.isInitialValid,f=t.enableReinitialize,h=void 0!==f&&f,p=t.onSubmit,m=Zm(t,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),b=Km({validateOnChange:r,validateOnBlur:a,validateOnMount:c,onSubmit:p},m),y=n(b.initialValues),v=n(b.initialErrors||hb),w=n(b.initialTouched||pb),x=n(b.initialStatus),_=n(!1),k=n({});"production"!==process.env.NODE_ENV&&o((function(){void 0!==d&&("production"!==process.env.NODE_ENV?wm(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):wm(!1))}),[]),o((function(){return _.current=!0,function(){_.current=!1}}),[]);var j=l(0)[1],S=n({values:fm(b.initialValues),errors:fm(b.initialErrors)||hb,touched:fm(b.initialTouched)||pb,status:fm(b.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),O=S.current,T=g((function(t){var e=S.current;S.current=function(t,e){switch(e.type){case"SET_VALUES":return Km({},t,{values:e.payload});case"SET_TOUCHED":return Km({},t,{touched:e.payload});case"SET_ERRORS":return ym(t.errors,e.payload)?t:Km({},t,{errors:e.payload});case"SET_STATUS":return Km({},t,{status:e.payload});case"SET_ISSUBMITTING":return Km({},t,{isSubmitting:e.payload});case"SET_ISVALIDATING":return Km({},t,{isValidating:e.payload});case"SET_FIELD_VALUE":return Km({},t,{values:db(t.values,e.payload.field,e.payload.value)});case"SET_FIELD_TOUCHED":return Km({},t,{touched:db(t.touched,e.payload.field,e.payload.value)});case"SET_FIELD_ERROR":return Km({},t,{errors:db(t.errors,e.payload.field,e.payload.value)});case"RESET_FORM":return Km({},t,e.payload);case"SET_FORMIK_STATE":return e.payload(t);case"SUBMIT_ATTEMPT":return Km({},t,{touched:fb(t.values,!0),isSubmitting:!0,submitCount:t.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return Km({},t,{isSubmitting:!1});default:return t}}(e,t),e!==S.current&&j((function(t){return t+1}))}),[]),E=g((function(t,e){return new Promise((function(r,n){var o=b.validate(t,e);null==o?r(hb):lb(o)?o.then((function(t){r(t||hb)}),(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)}))}),[b.validate]),A=g((function(t,e){var r=b.validationSchema,n=ob(r)?r(e):r,o=e&&n.validateAt?n.validateAt(e,t):function(t,e,r,n){void 0===r&&(r=!1);var o=yb(t);return e[r?"validateSync":"validate"](o,{abortEarly:!1,context:n||o})}(t,n);return new Promise((function(t,e){o.then((function(){t(hb)}),(function(r){"ValidationError"===r.name?t(function(t){var e={};if(t.inner){if(0===t.inner.length)return db(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;ub(e,a.path)||(e=db(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))}))}))}),[b.validationSchema]),P=g((function(t,e){return new Promise((function(r){return r(k.current[t].validate(e))}))}),[]),C=g((function(t){var e=Object.keys(k.current).filter((function(t){return ob(k.current[t].validate)})),r=e.length>0?e.map((function(e){return P(e,ub(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=db(t,e[n],r)),t}),{})}))}),[P]),D=g((function(t){return Promise.all([C(t),b.validationSchema?A(t):{},b.validate?E(t):{}]).then((function(t){var e=t[0],r=t[1],n=t[2];return zh.all([e,r,n],{arrayMerge:vb})}))}),[b.validate,b.validationSchema,C,E,A]),M=xb((function(t){return void 0===t&&(t=O.values),T({type:"SET_ISVALIDATING",payload:!0}),D(t).then((function(t){return _.current&&(T({type:"SET_ISVALIDATING",payload:!1}),T({type:"SET_ERRORS",payload:t})),t}))}));o((function(){c&&!0===_.current&&ym(y.current,b.initialValues)&&M(y.current)}),[c,M]);var R=g((function(t){var e=t&&t.values?t.values:y.current,r=t&&t.errors?t.errors:v.current?v.current:b.initialErrors||{},n=t&&t.touched?t.touched:w.current?w.current:b.initialTouched||{},o=t&&t.status?t.status:x.current?x.current:b.initialStatus;y.current=e,v.current=r,w.current=n,x.current=o;var i=function(){T({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(b.onReset){var a=b.onReset(O.values,Q);lb(a)?a.then(i):i()}else i()}),[b.initialErrors,b.initialStatus,b.initialTouched,b.onReset]);o((function(){!0!==_.current||ym(y.current,b.initialValues)||h&&(y.current=b.initialValues,R(),c&&M(y.current))}),[h,b.initialValues,R,c,M]),o((function(){h&&!0===_.current&&!ym(v.current,b.initialErrors)&&(v.current=b.initialErrors||hb,T({type:"SET_ERRORS",payload:b.initialErrors||hb}))}),[h,b.initialErrors]),o((function(){h&&!0===_.current&&!ym(w.current,b.initialTouched)&&(w.current=b.initialTouched||pb,T({type:"SET_TOUCHED",payload:b.initialTouched||pb}))}),[h,b.initialTouched]),o((function(){h&&!0===_.current&&!ym(x.current,b.initialStatus)&&(x.current=b.initialStatus,T({type:"SET_STATUS",payload:b.initialStatus}))}),[h,b.initialStatus,b.initialTouched]);var I=xb((function(t){if(k.current[t]&&ob(k.current[t].validate)){var e=ub(O.values,t),r=k.current[t].validate(e);return lb(r)?(T({type:"SET_ISVALIDATING",payload:!0}),r.then((function(t){return t})).then((function(e){T({type:"SET_FIELD_ERROR",payload:{field:t,value:e}}),T({type:"SET_ISVALIDATING",payload:!1})}))):(T({type:"SET_FIELD_ERROR",payload:{field:t,value:r}}),Promise.resolve(r))}return b.validationSchema?(T({type:"SET_ISVALIDATING",payload:!0}),A(O.values,t).then((function(t){return t})).then((function(e){T({type:"SET_FIELD_ERROR",payload:{field:t,value:ub(e,t)}}),T({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),N=g((function(t,e){var r=e.validate;k.current[t]={validate:r}}),[]),F=g((function(t){delete k.current[t]}),[]),z=xb((function(t,e){return T({type:"SET_TOUCHED",payload:t}),(void 0===e?a:e)?M(O.values):Promise.resolve()})),L=g((function(t){T({type:"SET_ERRORS",payload:t})}),[]),B=xb((function(t,e){var n=ob(t)?t(O.values):t;return T({type:"SET_VALUES",payload:n}),(void 0===e?r:e)?M(n):Promise.resolve()})),V=g((function(t,e){T({type:"SET_FIELD_ERROR",payload:{field:t,value:e}})}),[]),$=xb((function(t,e,n){return T({type:"SET_FIELD_VALUE",payload:{field:t,value:e}}),(void 0===n?r:n)?M(db(O.values,t,e)):Promise.resolve()})),U=g((function(t,e){var r,n=e,o=t;if(!sb(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||bb({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))}(ub(O.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&&$(n,o)}),[$,O.values]),H=xb((function(t){if(sb(t))return function(e){return U(e,t)};U(t)})),W=xb((function(t,e,r){return void 0===e&&(e=!0),T({type:"SET_FIELD_TOUCHED",payload:{field:t,value:e}}),(void 0===r?a:r)?M(O.values):Promise.resolve()})),Y=g((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||bb({htmlContent:i,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),W(a,!0)}),[W]),X=xb((function(t){if(sb(t))return function(e){return Y(e,t)};Y(t)})),q=g((function(t){ob(t)?T({type:"SET_FORMIK_STATE",payload:t}):T({type:"SET_FORMIK_STATE",payload:function(){return t}})}),[]),K=g((function(t){T({type:"SET_STATUS",payload:t})}),[]),G=g((function(t){T({type:"SET_ISSUBMITTING",payload:t})}),[]),Z=xb((function(){return T({type:"SUBMIT_ATTEMPT"}),M().then((function(t){var e=t instanceof Error;if(!e&&0===Object.keys(t).length){var r;try{if(void 0===(r=tt()))return}catch(t){throw t}return Promise.resolve(r).then((function(t){return _.current&&T({type:"SUBMIT_SUCCESS"}),t})).catch((function(t){if(_.current)throw T({type:"SUBMIT_FAILURE"}),t}))}if(_.current&&(T({type:"SUBMIT_FAILURE"}),e))throw t}))})),J=xb((function(t){if(t&&t.preventDefault&&ob(t.preventDefault)&&t.preventDefault(),t&&t.stopPropagation&&ob(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?wm(!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"`.'):wm(!1)))}Z().catch((function(t){console.warn("Warning: An unhandled error was caught from submitForm()",t)}))})),Q={resetForm:R,validateForm:M,validateField:I,setErrors:L,setFieldError:V,setFieldTouched:W,setFieldValue:$,setStatus:K,setSubmitting:G,setTouched:z,setValues:B,setFormikState:q,submitForm:Z},tt=xb((function(){return p(O.values,Q)})),et=xb((function(t){t&&t.preventDefault&&ob(t.preventDefault)&&t.preventDefault(),t&&t.stopPropagation&&ob(t.stopPropagation)&&t.stopPropagation(),R()})),rt=g((function(t){return{value:ub(O.values,t),error:ub(O.errors,t),touched:!!ub(O.touched,t),initialValue:ub(y.current,t),initialTouched:!!ub(w.current,t),initialError:ub(v.current,t)}}),[O.errors,O.touched,O.values]),nt=g((function(t){return{setValue:function(e,r){return $(t,e,r)},setTouched:function(e,r){return W(t,e,r)},setError:function(e){return V(t,e)}}}),[$,W,V]),ot=g((function(t){var e=ib(t),r=e?t.name:t,n=ub(O.values,r),o={name:r,value:n,onChange:H,onBlur:X};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}),[X,H,O.values]),it=u((function(){return!ym(y.current,O.values)}),[y.current,O.values]),at=u((function(){return void 0!==d?it?O.errors&&0===Object.keys(O.errors).length:!1!==d&&ob(d)?d(b):d:O.errors&&0===Object.keys(O.errors).length}),[d,it,O.errors,b]);return Km({},O,{initialValues:y.current,initialErrors:v.current,initialTouched:w.current,initialStatus:x.current,handleBlur:X,handleChange:H,handleReset:et,handleSubmit:J,resetForm:R,setErrors:L,setFormikState:q,setFieldTouched:W,setFieldValue:$,setFieldError:V,setStatus:K,setSubmitting:G,setTouched:z,setValues:B,submitForm:Z,validateForm:M,validateField:I,isValid:at,dirty:it,unregisterField:F,registerField:N,getFieldProps:ot,getFieldMeta:rt,getFieldHelpers:nt,validateOnBlur:a,validateOnChange:r,validateOnMount:c})}function mb(t){var e=gb(t),r=t.component,n=t.children,i=t.render,a=t.innerRef;return f(a,(function(){return e})),"production"!==process.env.NODE_ENV&&o((function(){t.render&&("production"!==process.env.NODE_ENV?wm(!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>"):wm(!1))}),[]),h(tb,{value:e},r?h(r,e):i?i(e):n?ob(n)?n(e):cb(n)?null:p.only(n):null)}function bb(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 yb(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)||op(t)?yb(t):""!==t?t:void 0})):op(t[n])?e[n]=yb(t[n]):e[n]=""!==t[n]?t[n]:void 0}return e}function vb(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?zh(Array.isArray(e)?[]:{},e,r):e}else r.isMergeableObject(e)?n[o]=zh(t[o],e,r):-1===t.indexOf(e)&&n.push(e)})),n}var wb="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?m:o;function xb(t){var e=n(t);return wb((function(){e.current=t})),g((function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.current.apply(void 0,r)}),[])}function _b(t){var e=rb(),r=e.getFieldProps,n=e.getFieldMeta,i=e.getFieldHelpers,a=e.registerField,s=e.unregisterField,c=ib(t)?t:{name:t},l=c.name,d=c.validate;o((function(){return l&&a(l,{validate:d}),function(){l&&s(l)}}),[a,s,l,d]),"production"!==process.env.NODE_ENV&&(e||("production"!==process.env.NODE_ENV?wm(!1,"useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component"):wm(!1))),l||("production"!==process.env.NODE_ENV?wm(!1,"Invalid field name. Either pass `useField` a string or an object containing a `name` key."):wm(!1));var f=u((function(){return i(l)}),[i,l]);return[r(c),n(l),f]}function kb(t){var e=t.validate,r=t.name,n=t.render,i=t.children,a=t.as,s=t.component,c=t.className,l=Zm(t,["validate","name","render","children","as","component","className"]),u=Zm(rb(),["validate","validationSchema"]);"production"!==process.env.NODE_ENV&&o((function(){n&&("production"!==process.env.NODE_ENV?wm(!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="'+r+'" render={({field, form}) => ...} /> with <Field name="'+r+'">{({field, form, meta}) => ...}</Field>'):wm(!1)),a&&i&&ob(i)&&("production"!==process.env.NODE_ENV?wm(!1,"You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored."):wm(!1)),s&&i&&ob(i)&&("production"!==process.env.NODE_ENV?wm(!1,"You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored."):wm(!1)),n&&i&&!cb(i)&&("production"!==process.env.NODE_ENV?wm(!1,"You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored"):wm(!1))}),[]);var d=u.registerField,f=u.unregisterField;o((function(){return d(r,{validate:e}),function(){f(r)}}),[d,f,r,e]);var p=u.getFieldProps(Km({name:r},l)),g=u.getFieldMeta(r),m={field:p,form:u};if(n)return n(Km({},m,{meta:g}));if(ob(i))return i(Km({},m,{meta:g}));if(s){if("string"==typeof s){var b=l.innerRef,y=Zm(l,["innerRef"]);return h(s,Km({ref:b},p,y,{className:c}),i)}return h(s,Km({field:p,form:u},l,{className:c}),i)}var v=a||"input";if("string"==typeof v){var w=l.innerRef,x=Zm(l,["innerRef"]);return h(v,Km({ref:w},p,x,{className:c}),i)}return h(v,Km({},p,l,{className:c}),i)}var jb=r((function(t,e){var r=t.action,n=Zm(t,["action"]),o=null!=r?r:"#",i=rb(),a=i.handleReset,s=i.handleSubmit;return h("form",Km({onSubmit:s,ref:e,onReset:a,action:o},n))}));function Sb(t){var e=function(e){return h(eb,null,(function(r){return r||("production"!==process.env.NODE_ENV?wm(!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: "+t.name):wm(!1)),h(t,Km({},e,{formik:r}))}))},r=t.displayName||t.name||t.constructor&&t.constructor.name||"Component";return e.WrappedComponent=t,e.displayName="FormikConnect("+r+")",qm(e,t)}jb.displayName="Form";var Ob=function(t,e,r){var n=Tb(t);return n.splice(e,0,r),n},Tb=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(Km({},t,{length:e+1}))}return[]},Eb=function(t,e){var r="function"==typeof t?t:e;return function(t){if(Array.isArray(t)||ib(t)){var e=Tb(t);return r(e)}return t}},Ab=function(t){function e(e){var r;return(r=t.call(this,e)||this).updateArrayField=function(t,e,n){var o=r.props,i=o.name;(0,o.formik.setFormikState)((function(r){var o=Eb(n,t),a=Eb(e,t),s=db(r.values,i,t(ub(r.values,i))),c=n?o(ub(r.errors,i)):void 0,l=e?a(ub(r.touched,i)):void 0;return nb(c)&&(c=void 0),nb(l)&&(l=void 0),Km({},r,{values:s,errors:n?db(r.errors,i,c):r.errors,touched:e?db(r.touched,i,l):r.touched})}))},r.push=function(t){return r.updateArrayField((function(e){return[].concat(Tb(e),[fm(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=Tb(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=Tb(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 Ob(r,t,e)}),(function(e){return Ob(e,t,null)}),(function(e){return Ob(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=Tb(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(Jm(r)),r.pop=r.pop.bind(Jm(r)),r}Gm(e,t);var r=e.prototype;return r.componentDidUpdate=function(t){this.props.validateOnChange&&this.props.formik.validateOnChange&&!ym(ub(t.formik.values,t.name),ub(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(t){var e;return this.updateArrayField((function(r){var n=r?Tb(r):[];return e||(e=n[t]),ob(n.splice)&&n.splice(t,1),ob(n.every)&&n.every((function(t){return void 0===t}))?[]:n}),!0,!0),e},r.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},r.render=function(){var t={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},e=this.props,r=e.component,n=e.render,o=e.children,i=e.name,a=Km({},t,{form:Zm(e.formik,["validate","validationSchema"]),name:i});return r?h(r,a):n?n(a):o?"function"==typeof o?o(a):cb(o)?null:p.only(o):null},e}(b);Ab.defaultProps={validateOnChange:!0};var Pb=Sb(function(t){function e(){return t.apply(this,arguments)||this}Gm(e,t);var r=e.prototype;return r.shouldComponentUpdate=function(t){return ub(this.props.formik.errors,this.props.name)!==ub(t.formik.errors,this.props.name)||ub(this.props.formik.touched,this.props.name)!==ub(t.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(t).length},r.render=function(){var t=this.props,e=t.component,r=t.formik,n=t.render,o=t.children,i=t.name,a=Zm(t,["component","formik","render","children","name"]),s=ub(r.touched,i),c=ub(r.errors,i);return s&&c?n?ob(n)?n(c):null:o?ob(o)?o(c):null:e?h(e,a,c):c:null},e}(b)),Cb=function(t){var e=t.initialValues,r=void 0===e?{}:e,n=t.validationSchema,o=t.enableReinitialize,i=t.children,a=t.styles,s=t.onSubmit;return F.jsx(mb,_({initialValues:r,validationSchema:n,enableReinitialize:o,onSubmit:s},{children:function(t){var e;return F.jsx(jb,{children:F.jsx("div",_({className:z((e={},e["".concat(a)]=a,e))},{children:i}))})}}))};function Db(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=Db(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Mb(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=Db(t))&&(n&&(n+=" "),n+=e);return n}var Rb=Object.defineProperty,Ib=(t,e,r)=>(((t,e,r)=>{e in t?Rb(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r})(t,"symbol"!=typeof e?e+"":e,r),r);let Nb=new class{constructor(){Ib(this,"current",this.detect()),Ib(this,"handoffState","pending"),Ib(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 Fb(){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=Fb();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 zb(){let[t]=l(Fb);return o((()=>()=>t.dispose()),[t]),t}let Lb=(t,e)=>{Nb.isServer?o(t,e):m(t,e)};function Bb(t){let e=n(t);return Lb((()=>{e.current=t}),[t]),e}let Vb=function(t){let r=Bb(t);return e.useCallback(((...t)=>r.current(...t)),[r])};function $b(...t){return Array.from(new Set(t.flatMap((t=>"string"==typeof t?t.split(" "):[])))).filter(Boolean).join(" ")}function Ub(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,Ub),n}var Hb,Wb=((Hb=Wb||{})[Hb.None=0]="None",Hb[Hb.RenderStrategy=1]="RenderStrategy",Hb[Hb.Static=2]="Static",Hb),Yb=(t=>(t[t.Unmount=0]="Unmount",t[t.Hidden=1]="Hidden",t))(Yb||{});function Xb(){let t=function(){let t=n([]),e=g((e=>{for(let r of t.current)null!=r&&("function"==typeof r?r(e):r.current=e)}),[]);return(...r)=>{if(!r.every((t=>null==t)))return t.current=r,e}}();return g((e=>function({ourProps:t,theirProps:e,slot:r,defaultTag:n,features:o,visible:i=!0,name:a,mergeRefs:s}){s=null!=s?s:Kb;let c=Gb(e,t);if(i)return qb(c,r,n,a,s);let l=null!=o?o:0;if(2&l){let{static:t=!1,...e}=c;if(t)return qb(e,r,n,a,s)}if(1&l){let{unmount:t=!0,...e}=c;return Ub(t?0:1,{0:()=>null,1:()=>qb({...e,hidden:!0,style:{display:"none"}},r,n,a,s)})}return qb(c,r,n,a,s)}({mergeRefs:t,...e})),[t])}function qb(t,e={},r,n,o){let{as:i=r,children:a,refName:s="ref",...l}=Qb(t,["unmount","static"]),u=void 0!==t.ref?{[s]:t.ref}:{},d="function"==typeof a?a(e):a;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(e)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let f={};if(e){let t=!1,r=[];for(let[n,o]of Object.entries(e))"boolean"==typeof o&&(t=!0),!0===o&&r.push(n.replace(/([A-Z])/g,(t=>`-${t.toLowerCase()}`)));if(t){f["data-headlessui-state"]=r.join(" ");for(let t of r)f[`data-${t}`]=""}}if(i===c&&(Object.keys(Jb(l)).length>0||Object.keys(Jb(f)).length>0)){if(y(d)&&!(Array.isArray(d)&&d.length>1)){let t=d.props,e=null==t?void 0:t.className,r="function"==typeof e?(...t)=>$b(e(...t),l.className):$b(e,l.className),n=r?{className:r}:{},i=Gb(d.props,Jb(Qb(l,["ref"])));for(let t in f)t in i&&delete f[t];return v(d,Object.assign({},i,f,u,{ref:o(ty(d),u.ref)},n))}if(Object.keys(Jb(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Jb(l)).concat(Object.keys(Jb(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 h(i,Object.assign({},Qb(l,["ref"]),i!==c&&u,i!==c&&f),d)}function Kb(...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 Gb(...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 Zb(t){var e;return Object.assign(r(t),{displayName:null!=(e=t.displayName)?e:t.name})}function Jb(t){let e=Object.assign({},t);for(let t in e)void 0===e[t]&&delete e[t];return e}function Qb(t,e=[]){let r=Object.assign({},t);for(let t of e)t in r&&delete r[t];return r}function ty(t){return e.version.split(".")[0]>="19"?t.props.ref:t.ref}let ey=Symbol();function ry(...t){let e=n(t);o((()=>{e.current=t}),[t]);let r=Vb((t=>{for(let r of e.current)null!=r&&("function"==typeof r?r(t):r.current=t)}));return t.every((t=>null==t||(null==t?void 0:t[ey])))?void 0:r}var ny,oy;"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(ny=null==process?void 0:process.env)?void 0:ny.NODE_ENV)&&void 0===(null==(oy=null==Element?void 0:Element.prototype)?void 0:oy.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 iy=(t=>(t[t.None=0]="None",t[t.Closed=1]="Closed",t[t.Enter=2]="Enter",t[t.Leave=4]="Leave",t))(iy||{});function ay(t){let e={};for(let r in t)!0===t[r]&&(e[`data-${r}`]="");return e}function sy(t,e,r,o){let[i,a]=l(r),{hasFlag:s,addFlag:c,removeFlag:u}=function(t=0){let[e,r]=l(t),n=g((t=>r(t)),[e]),o=g((t=>r((e=>e|t))),[e]),i=g((t=>(e&t)===t),[e]),a=g((t=>r((e=>e&~t))),[r]),s=g((t=>r((e=>e^t))),[r]);return{flags:e,setFlag:n,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:s}}(t&&i?3:0),d=n(!1),f=n(!1),h=zb();return Lb((()=>{var n;if(t)return r&&a(!0),e?(null==(n=null==o?void 0:o.start)||n.call(o,r),function(t,{prepare:e,run:r,done:n,inFlight:o}){let i=Fb();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=Fb();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}(e,{inFlight:d,prepare(){f.current?f.current=!1:f.current=d.current,d.current=!0,!f.current&&(r?(c(3),u(4)):(c(4),u(2)))},run(){f.current?r?(u(3),c(4)):(u(4),c(3)):r?u(1):c(1)},done(){var t;f.current&&"function"==typeof e.getAnimations&&e.getAnimations().length>0||(d.current=!1,u(7),r||a(!1),null==(t=null==o?void 0:o.end)||t.call(o,r))}})):void(r&&c(3))}),[t,r,e,h]),t?[i,{closed:s(1),enter:s(2),leave:s(4),transition:s(2)||s(4)}]:[r,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}let cy=i(null);cy.displayName="OpenClosedContext";var ly=(t=>(t[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t))(ly||{});function uy(){return d(cy)}function dy({value:t,children:r}){return e.createElement(cy.Provider,{value:t},r)}function fy(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in t&&t.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[r,n]=t.useState(Nb.isHandoffComplete);return r&&!1===Nb.isHandoffComplete&&n(!1),t.useEffect((()=>{!0!==r&&n(!0)}),[r]),t.useEffect((()=>Nb.handoff()),[]),!e&&r}function hy(t){var r;return!!(t.enter||t.enterFrom||t.enterTo||t.leave||t.leaveFrom||t.leaveTo)||(null!=(r=t.as)?r:vy)!==c||1===e.Children.count(t.children)}let py=i(null);py.displayName="TransitionContext";var gy=(t=>(t.Visible="visible",t.Hidden="hidden",t))(gy||{});let my=i(null);function by(t){return"children"in t?by(t.children):t.current.filter((({el:t})=>null!==t.current)).filter((({state:t})=>"visible"===t)).length>0}function yy(t,e){let r=Bb(t),o=n([]),i=function(){let t=n(!1);return Lb((()=>(t.current=!0,()=>{t.current=!1})),[]),t}(),a=zb(),s=Vb(((t,e=Yb.Hidden)=>{let n=o.current.findIndex((({el:e})=>e===t));-1!==n&&(Ub(e,{[Yb.Unmount](){o.current.splice(n,1)},[Yb.Hidden](){o.current[n].state="hidden"}}),a.microTask((()=>{var t;!by(o)&&i.current&&(null==(t=r.current)||t.call(r))})))})),c=Vb((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,Yb.Unmount)})),l=n([]),d=n(Promise.resolve()),f=n({enter:[],leave:[]}),h=Vb(((t,r,n)=>{l.current.splice(0),e&&(e.chains.current[r]=e.chains.current[r].filter((([e])=>e!==t))),null==e||e.chains.current[r].push([t,new Promise((t=>{l.current.push(t)}))]),null==e||e.chains.current[r].push([t,new Promise((t=>{Promise.all(f.current[r].map((([t,e])=>e))).then((()=>t()))}))]),"enter"===r?d.current=d.current.then((()=>null==e?void 0:e.wait.current)).then((()=>n(r))):n(r)})),p=Vb(((t,e,r)=>{Promise.all(f.current[e].splice(0).map((([t,e])=>e))).then((()=>{var t;null==(t=l.current.shift())||t()})).then((()=>r(e)))}));return u((()=>({children:o,register:c,unregister:s,onStart:h,onStop:p,wait:d,chains:f})),[c,s,o,h,p,f,d])}my.displayName="NestingContext";let vy=c,wy=Wb.RenderStrategy;let xy=Zb((function(t,r){let{show:o,appear:i=!1,unmount:a=!0,...s}=t,d=n(null),f=ry(...hy(t)?[d,r]:null===r?[]:[r]);fy();let h=uy();if(void 0===o&&null!==h&&(o=(h&ly.Open)===ly.Open),void 0===o)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[p,g]=l(o?"visible":"hidden"),m=yy((()=>{o||g("hidden")})),[b,y]=l(!0),v=n([o]);Lb((()=>{!1!==b&&v.current[v.current.length-1]!==o&&(v.current.push(o),y(!1))}),[v,o]);let w=u((()=>({show:o,appear:i,initial:b})),[o,i,b]);Lb((()=>{o?g("visible"):!by(m)&&null!==d.current&&g("hidden")}),[o,m]);let x={unmount:a},_=Vb((()=>{var e;b&&y(!1),null==(e=t.beforeEnter)||e.call(t)})),k=Vb((()=>{var e;b&&y(!1),null==(e=t.beforeLeave)||e.call(t)})),j=Xb();return e.createElement(my.Provider,{value:m},e.createElement(py.Provider,{value:w},j({ourProps:{...x,as:c,children:e.createElement(_y,{ref:f,...x,...s,beforeEnter:_,beforeLeave:k})},theirProps:{},defaultTag:c,features:wy,visible:"visible"===p,name:"Transition"})))})),_y=Zb((function(t,r){var i,a;let{transition:s=!0,beforeEnter:c,afterEnter:u,beforeLeave:f,afterLeave:h,enter:p,enterFrom:g,enterTo:m,entered:b,leave:y,leaveFrom:v,leaveTo:w,...x}=t,[_,k]=l(null),j=n(null),S=hy(t),O=ry(...S?[j,r,k]:null===r?[]:[r]),T=null==(i=x.unmount)||i?Yb.Unmount:Yb.Hidden,{show:E,appear:A,initial:P}=function(){let t=d(py);if(null===t)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}(),[C,D]=l(E?"visible":"hidden"),M=function(){let t=d(my);if(null===t)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}(),{register:R,unregister:I}=M;Lb((()=>R(j)),[R,j]),Lb((()=>{if(T===Yb.Hidden&&j.current)return E&&"visible"!==C?void D("visible"):Ub(C,{hidden:()=>I(j),visible:()=>R(j)})}),[C,j,R,I,E,T]);let N=fy();Lb((()=>{if(S&&N&&"visible"===C&&null===j.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[j,C,N,S]);let F=P&&!A,z=A&&E&&P,L=n(!1),B=yy((()=>{L.current||(D("hidden"),I(j))}),M),V=Vb((t=>{L.current=!0;let e=t?"enter":"leave";B.onStart(j,e,(t=>{"enter"===t?null==c||c():"leave"===t&&(null==f||f())}))})),$=Vb((t=>{let e=t?"enter":"leave";L.current=!1,B.onStop(j,e,(t=>{"enter"===t?null==u||u():"leave"===t&&(null==h||h())})),"leave"===e&&!by(B)&&(D("hidden"),I(j))}));o((()=>{S&&s||(V(E),$(E))}),[E,S,s]);let U=!(!s||!S||!N||F),[,H]=sy(U,_,E,{start:V,end:$}),W=Jb({ref:O,className:(null==(a=$b(x.className,z&&p,z&&g,H.enter&&p,H.enter&&H.closed&&g,H.enter&&!H.closed&&m,H.leave&&y,H.leave&&!H.closed&&v,H.leave&&H.closed&&w,!H.transition&&E&&b))?void 0:a.trim())||void 0,...ay(H)}),Y=0;"visible"===C&&(Y|=ly.Open),"hidden"===C&&(Y|=ly.Closed),H.enter&&(Y|=ly.Opening),H.leave&&(Y|=ly.Closing);let X=Xb();return e.createElement(my.Provider,{value:B},e.createElement(dy,{value:Y},X({ourProps:W,theirProps:x,defaultTag:vy,features:wy,visible:"visible"===C,name:"Transition.Child"})))})),ky=Zb((function(t,r){let n=null!==d(py),o=null!==uy();return e.createElement(e.Fragment,null,!n&&o?e.createElement(xy,{ref:r,...t}):e.createElement(_y,{ref:r,...t}))})),jy=Object.assign(xy,{Child:ky,Root:xy});var Sy={TransitionDropdown:function(t){var e=t.visibility,r=t.children;return F.jsx(jy,_({as:c,show:e,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"},{children:r}))},TransitionFadeIn:function(t){var e=t.visibility,r=t.children;return F.jsx(jy,_({as:c,show:e,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"},{children:r}))}},Oy={circle:"rounded-full",square:"rounded-none",roundedSquare:"rounded-md",softRoundedSquare:"rounded-lg",pill:"rounded-2xl"},Ty={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 Ey(t){var e,r=t.text,n=t.variant,o=void 0===n?"default":n,i=t.shape,a=void 0===i?"roundedSquare":i,s=t.size,c=void 0===s?"md":s,l=t.styles;return console.log(r),F.jsx(Sy.TransitionDropdown,_({visibility:!!r},{children:F.jsx("div",_({className:z((e={"font-poppins font-light text-sm":!0},e["".concat(B[o])]=o,e["".concat(Oy[a])]=a,e["".concat(Ty[c])]=c,e["".concat(l)]=l,e))},{children:r}))}))}function Ay(t){var e=t.children,r=t.isLoading,n=t.isSuccess,o=void 0===n||n,i=t.isError,a=t.error;return F.jsxs("div",{children:[r&&F.jsx("div",_({className:"flex w-full py-10 items-center justify-center"},{children:F.jsx(Dh,{className:"animate-spin"})})),i&&F.jsx("div",_({className:"p-5"},{children:F.jsx(Ey,{text:a,variant:"danger"})})),o&&F.jsx("div",{children:e})]})}var Py={square:"rounded-none",circle:"rounded-full",roundedSquare:"rounded-md",softRoundedSquare:"rounded-lg",pill:"rounded-full px-4"},Cy={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"},Dy=function(t){var e,r=t.type,n=void 0===r?"button":r,o=t.icon,i=t.text,a=t.children,s=t.loading,c=t.disabled,l=t.ghost,u=t.block,d=t.variant,f=void 0===d?"default":d,h=t.shape,p=void 0===h?"square":h,g=t.size,m=void 0===g?"md":g,b=t.styles,y=t.onClick;return F.jsxs("button",_({type:n,onClick:y,disabled:c||s,className:z((e={"flex flex-row items-center justify-center gap-2":!0},e["".concat(L[f])]=!l&&f,e["".concat($[f])]=l&&f,e["".concat(Py[p])]=p,e["".concat(Cy[m])]=m,e["w-full"]=u,e["brightness-75 grayscale text-gray-900 cursor-not-allowed"]=s||c,e["hover:cursor-pointer hover:brightness-110"]=!s&&!c,e["transition-all ease-in-out"]=!0,e["".concat(b)]=b,e))},{children:[s&&F.jsx(Dh,{className:"animate-spin"}),o&&F.jsx("div",{children:o}),i&&F.jsx("div",{children:i}),a&&a]}))};function My(t){var e=t.rowData,r=t.headers;return F.jsx("tr",_({className:"odd:theme-bg-sm even:theme-bg-md"},{children:Object.keys(r).map((function(t){return F.jsx("td",_({className:"px-4 py-3 border-b theme-border-md theme-text-sm text-left"},{children:e[t]}),t)}))}))}function Ry(t){var e=t.title,r=t.headers,n=t.data,o=t.enableSelect,i=void 0===o||o,a=t.maxRowCount,s=void 0===a?10:a,c=l(0),d=c[0],f=c[1],h=l(null),p=h[0],g=h[1],m=l(""),b=m[0],y=m[1],v=function(t){t>=0&&t<k&&f(t)},w=n.filter((function(t){return Object.values(t).some((function(t){return String(t).toLowerCase().includes(b.toLowerCase())}))})),x=u((function(){return null!==p?O([],w,!0).sort((function(t,e){return t[p.key]<e[p.key]?"ascending"===p.direction?-1:1:t[p.key]>e[p.key]?"ascending"===p.direction?1:-1:0})):w}),[w,p]),k=Math.ceil(x.length/s),j=x.slice(d*s,(d+1)*s);return F.jsxs("div",_({className:z({"py-3 overflow-x-auto":!0,"select-none":!i})},{children:[F.jsxs("div",_({className:"mb-4 w-full flex flex-row-reverse items-center justify-between"},{children:[F.jsx("input",{type:"text",placeholder:"Search...",value:b,onChange:function(t){y(t.target.value),f(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"}),e&&F.jsx("div",_({className:"font-bold text-xl theme-text-md border-l-2 border-l-dark-300 pl-3 py-1"},{children:e}))]})),F.jsxs("table",_({className:"min-w-full border theme-border-md"},{children:[F.jsx("thead",_({className:"theme-gradient-to-r-xs theme-bg-md theme-text-md"},{children:F.jsx("tr",{children:Object.entries(r).map((function(t){var e=t[0],r=t[1];return F.jsxs("th",_({onClick:function(){return function(t){var e="ascending";p&&p.key===t&&"ascending"===p.direction&&(e="descending"),g({key:t,direction:e})}(e)},className:z({"px-4 py-3 border-b theme-border-md text-left font-bold hover:cursor-pointer":!0,"theme-bg-sm":(null==p?void 0:p.key)===e})},{children:[r,(null==p?void 0:p.key)===e?"ascending"===p.direction?" ▲":" ▼":""]}),r)}))})})),F.jsx("tbody",{children:j.map((function(t,e){return F.jsx(My,{headers:r,rowData:t},e)}))})]})),F.jsxs("div",_({className:"flex justify-between items-center mt-4"},{children:[F.jsx(Dy,{type:"button",text:"<",shape:"circle",size:"sm",styles:"theme-bg-md",disabled:0===d,onClick:function(){return v(d-1)}}),F.jsxs("span",_({className:"text-sm theme-text-sm"},{children:["Page ",d+1," of ",k]})),F.jsx(Dy,{type:"button",text:">",shape:"circle",size:"sm",styles:"theme-bg-md",disabled:d===k-1,onClick:function(){return v(d+1)}})]}))]}))}function Iy(t){var e=t.title,r=t.headers,n=t.data,o=t.isLoading,i=t.isSuccess,a=void 0===i||i,s=t.isError,c=t.error,l=t.enableSelect,u=void 0===l||l,d=t.maxRowCount,f=void 0===d?10:d;return F.jsx("div",{children:F.jsx(Ay,_({isLoading:o,isSuccess:a,isError:s,error:c},{children:F.jsx(Ry,{title:e,headers:r,data:n,enableSelect:u,maxRowCount:f})}))})}function Ny(t){var e,r=t.text,n=t.styles;return F.jsx("span",_({className:z((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(n)]=n,e))},{children:r}))}function Fy(t){var e,r=t.name,n=t.visibility,o=t.variant,i=void 0===o?"default":o,a=t.styles;return F.jsx(Sy.TransitionDropdown,_({visibility:n},{children:F.jsx("div",_({className:z((e={"font-medium text-sm py-1":!0},e["".concat(V[i])]=i,e["transition-all ease-in-out"]=!0,e["".concat(a)]=a,e))},{children:F.jsx(Pb,{name:r})}))}))}function zy(t){return dh({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 Ly(t){return dh({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 By(t){return dh({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 Vy(t){return dh({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 $y(t){return dh({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 Uy=function(t){var e=t.onClick,r=l(!1),n=r[0],o=r[1];return F.jsx("div",_({className:"text-dark-200 absolute text-2xl right-3 top-[16px] cursor-pointer",onClick:function(){return e(t=!n),void o(t);var t}},{children:n?F.jsx(Ly,{}):F.jsx(By,{})}))},Hy=function(t){var e,r=t.type,n=void 0===r?"text":r,o=t.placeholder,i=t.styles,a=t.step,s=k(t,["type","placeholder","styles","step"]),c=_b(s),u=c[0],d=c[1],f=l(!1),h=f[0],p=f[1],g="password"===n?h?"text":"password":n;return F.jsxs("div",_({className:"relative w-full"},{children:[F.jsx(kb,_({type:g,step:"number"===g&&a?a:void 0},u,s,{placeholder:o,className:z((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:outline-none h-[50px]":!0,"border-primary-400 focus:border-secondary-500":!(d.touched&&d.error),"border-danger-500":d.touched&&d.error},e["".concat(i)]=i,e))})),F.jsx("label",_({className:z({"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})},{children:o})),"password"===n&&F.jsx(Uy,{onClick:function(t){return p(t)}}),F.jsx(Fy,{name:u.name,visibility:!(!d.touched||!d.error),variant:"danger"})]}))};function Wy(t){var e=t.placeholder,r=t.options,n=k(t,["placeholder","options"]),o=n.name,i=_b(n),a=i[0],s=i[1];return F.jsxs("div",{children:[F.jsx("label",_({className:z({"theme-text-sm text-sm":!0})},{children:e})),F.jsx(kb,_({name:o},{children:function(t){var e=t.field;return r.map((function(t){return F.jsxs("div",_({className:z({"flex flex-row gap-2 items-center mx-1 my-2":!0})},{children:[F.jsx("input",_({type:"checkbox",id:t.value},e,n,{value:t.value,checked:e.value.includes(t.value),className:z("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")})),F.jsx("label",_({htmlFor:t.value,className:z({"theme-text-md text-sm":!0})},{children:t.label}))]}),t.label)}))}})),F.jsx(Fy,{name:a.name,visibility:!(!s.touched||!s.error),variant:"danger"})]})}var Yy=function(t){var e,r=t.placeholder,n=t.styles,o=k(t,["placeholder","styles"]),i=_b(o),a=i[0],s=i[1];return F.jsxs("div",_({className:"relative w-full"},{children:[F.jsx(kb,_({type:"date"},a,o,{placeholder:r,className:z((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":s.touched&&s.error,"transition-all ease-in-out":!0},e["".concat(n)]=n,e))})),F.jsx("label",_({className:z({"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})},{children:r})),s.touched&&s.error&&F.jsx(Fy,{name:a.name,visibility:!0,variant:"danger"})]}))};function Xy(t){var e=t.imageUrl,r=t.secure,n=void 0===r||r,o=t.alt,i=void 0===o?"image":o;return F.jsx("div",_({className:"h-[200px] w-[300px]"},{children:F.jsx("div",_({className:"w-full h-full overflow-hidden bg-gray-900 flex items-center justify-center"},{children:F.jsx(Wf,{cloudName:process.env.REACT_APP_CLOUDINARY_CLOUD_NAME||"",publicId:e||"public/placeholders/placeholder-dark_uwuxct",secure:n,alt:i,className:"w-full h-full object-cover"})}))}))}function qy(t){return dh({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 Ky(t){return dh({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 Gy(t){return dh({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 Zy=r((function(t,e){var r=t.title,n=void 0===r?"Upload Image":r,i=t.uploadDir,a=void 0===i?"eg-frontend-admin-temp":i,s=t.onValueChanged,c=void 0===s?function(){}:s,u=t.disableSetValue,d=void 0!==u&&u,h=_b(k(t,["title","uploadDir","onValueChanged","disableSetValue"])),p=h[0],g=h[1],m=h[2],b=p.value,y=m.setValue,v=l(null),w=v[0],x=v[1],O=l(b),T=O[0],E=O[1],A=l(!1),P=A[0],C=A[1],D=l(null),M=D[0],R=D[1],I=function(){R(null),x(null),E(""),d||y(""),C(!1)};return f(e,(function(){return{handleResetClick:I}})),o((function(){d||y(T)}),[T,y,d]),F.jsxs("div",_({className:"w-full"},{children:[F.jsx("div",_({className:"inline-flex w-full"},{children:F.jsxs("div",_({className:"relative inline-flex gap-3 items-center"},{children:[!M&&!T&&F.jsxs("div",{children:[F.jsx("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&&R(r.result)}},accept:"image/*"}),F.jsxs("label",_({className:z({"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)},{children:[F.jsx("div",_({className:"text-4xl text-gray-300 group-hover:text-gray-400"},{children:F.jsx(qy,{})})),F.jsx("div",_({className:"text-xl font-bold text-gray-500 group-hover:text-gray-500"},{children:n}))]}))]}),M&&!T&&F.jsx("div",_({className:"h-[200px] w-[300px] overflow-hidden"},{children:F.jsx("img",{src:M,alt:"preview",className:"w-full h-full object-cover"})})),P&&F.jsxs("div",_({className:"absolute"},{children:[F.jsx("div",{className:"h-[200px] w-[300px] bg-black opacity-50"}),F.jsx("div",_({className:"absolute top-0 left-0 w-full h-full flex items-center justify-center"},{children:F.jsx(Dh,{className:"animate-spin"})}))]})),!P&&T&&F.jsx(Xy,{imageUrl:T,alt:T||"image"}),(M||T)&&F.jsxs("div",_({className:"flex flex-col gap-1 text-3xl"},{children:[F.jsx("div",_({className:" text-green-600 hover:cursor-pointer",onClick:function(){return j(void 0,void 0,void 0,(function(){var t,e,r,n;return S(this,(function(o){switch(o.label){case 0:if(!w)return[2];C(!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",a),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),d||y(n.public_id),c(n.public_id),C(!1),[3,5];case 4:return o.sent(),C(!1),[3,5];case 5:return[2]}}))}))},hidden:!!T},{children:F.jsx(Ky,{})})),F.jsx("div",_({className:"text-red-500 hover:cursor-pointer",onClick:I},{children:F.jsx(Gy,{})}))]}))]}))})),F.jsx(Fy,{name:p.name,visibility:!(!g.touched||!g.error),variant:"danger"})]}))}));function Jy(t){var e=t.title,r=void 0===e?"Upload Images":e,i=t.uploadDir,a=void 0===i?"eg-frontend-admin-temp":i,s=_b(k(t,["title","uploadDir"])),c=s[0],l=s[1],u=s[2],d=c.value,f=u.setValue,h=n(null);return o((function(){}),[d]),F.jsxs("div",{children:[F.jsxs("div",_({className:"flex flex-row flex-wrap gap-5 w-ful"},{children:[d.map((function(t,e){return F.jsx(Xy,{imageUrl:t},e)})),F.jsx("div",{children:F.jsx(Zy,{ref:h,name:"new_img",title:r,onValueChanged:function(t){f(O(O([],d,!0),[t],!1)),h.current&&h.current.handleResetClick()},disableSetValue:!0,uploadDir:a},"new_img")})]})),F.jsx(Fy,{name:c.name,visibility:!(!l.touched||!l.error),variant:"danger"})]})}function Qy(t){var e=t.placeholder,r=t.options,n=k(t,["placeholder","options"]),o=n.name,i=_b(n),a=i[0],s=i[1];return F.jsxs("div",{children:[F.jsx("label",_({className:z({" theme-text-sm text-[13.5px]":!0})},{children:e})),F.jsx(kb,_({name:o},{children:function(t){var e=t.field;return r.map((function(t){return F.jsxs("div",_({className:z({"flex flex-row gap-2 items-center mx-1 my-2":!0})},{children:[F.jsx("input",_({type:"radio",id:t.value},e,n,{value:t.value,checked:e.value===t.value,className:z({"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})})),F.jsx("label",_({htmlFor:t.value,className:z({"theme-text-md text-sm":!0})},{children:t.label}))]}),t.label)}))}})),F.jsx(Fy,{name:a.name,visibility:!(!s.touched||!s.error),variant:"danger"})]})}function tv(t){var e,r=t.starAmount,n=void 0===r?5:r,i=t.styles,a=k(t,["starAmount","styles"]),s=a.name,c=_b(a),u=c[0],d=c[1],f=rb(),h=l(Number(u.value)||0),p=h[0],g=h[1],m=l(null),b=m[0],y=m[1];o((function(){g(Number(u.value))}),[u.value]);return F.jsxs("div",_({className:z((e={"inline-flex gap-[4px] text-[20px]":!0},e["".concat(i)]=i,e))},{children:[F.jsx(kb,_({name:s},{children:function(){return Array.from({length:n},(function(t,e){return F.jsx("button",_({type:"button",id:e.toString(),onClick:function(){return function(t){g(t+1),f.setFieldValue(s,t+1)}(e)},onMouseEnter:function(){return y(e)},onMouseLeave:function(){return y(null)},className:z({"text-yellow-600":e<=(null!=b?b:p-1),"text-gray-400":e>(null!=b?b:p-1)})},{children:e<=(null!=b?b:p-1)?F.jsx(gh,{}):F.jsx(bh,{})}),e)}))}})),F.jsx(Fy,{name:u.name,visibility:!(!d.touched||!d.error),variant:"danger"})]}))}function ev(t){var e,r=t.placeholder,n=t.options,o=t.styles,i=k(t,["placeholder","options","styles"]),a=_b(i),s=a[0],c=a[1];return F.jsxs("div",_({className:"relative"},{children:[F.jsx(kb,_({as:"select"},i,{className:z((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":!(c.touched&&c.error),"border-red-500":c.touched&&c.error,"transition-all ease-in-out":!0},e["".concat(o)]=o,e))},{children:n.map((function(t){return F.jsx("option",_({value:t.value},{children:t.label}),t.value)}))})),F.jsx("label",_({className:z({"absolute left-2 top-[0.7px] theme-text-sm text-[13.5px]":!0})},{children:r})),F.jsx(Fy,{name:s.name,visibility:!(!c.touched||!c.error),variant:"danger"})]}))}function rv(t){var e=t.label,r=t.description,n=t.showStatus,o=void 0!==n&&n,i=k(t,["label","description","showStatus"]),a=i.name,s=_b(i),c=s[0],l=s[1],u=s[2];return F.jsxs("div",{children:[F.jsxs("div",_({className:"flex flex-row justify-between w-full gap-3"},{children:[F.jsxs("div",_({className:"flex flex-col gap-1"},{children:[e&&F.jsx("label",_({className:"theme-text-sm text-[13.5px]"},{children:e})),r&&F.jsx("label",_({className:"theme-text-md text-[12px] max-w-[500px]"},{children:r}))]})),F.jsx(kb,_({name:a},{children:function(){return F.jsxs("label",_({className:"relative inline-flex cursor-pointer"},{children:[F.jsx("input",{type:"checkbox",className:"sr-only peer",checked:c.value,readOnly:!0}),F.jsx("div",{onClick:function(){return u.setValue(!c.value)},className:z("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")}),o&&F.jsx("span",_({className:"ml-3 text-sm font-medium text-dark-900 dark:text-dark-100"},{children:c.value?"ON":"OFF"}))]}))}}))]})),F.jsx(Fy,{name:a,visibility:!(!l.touched||!l.error),variant:"danger"})]})}function nv(t){var e,r,n=t.placeholder,o=t.limit,i=t.styles,a=k(t,["placeholder","limit","styles"]),s=_b(a),c=s[0],l=s[1];return F.jsxs("div",{children:[F.jsxs("div",_({className:"relative"},{children:[F.jsx(kb,_({as:"textarea",placeholder:n},a,{className:z((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":!(l.touched&&l.error),"border-danger-500":l.touched&&l.error},e["".concat(i)]=i,e))})),F.jsxs("div",_({className:"absolute bottom-0 right-0 p-3 text-xs text-dark-50 font-semibold"},{children:[null===(r=c.value)||void 0===r?void 0:r.length,"/",o]}))]})),F.jsx(Fy,{name:c.name,visibility:!(!l.touched||!l.error),variant:"danger"})]})}var ov=function(t){var e,r=t.children,n=t.styles;return F.jsx("div",_({className:z((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(n)]=n,e))},{children:r}))};const iv=t=>"number"==typeof t&&!isNaN(t),av=t=>"string"==typeof t,sv=t=>"function"==typeof t,cv=t=>av(t)||sv(t)?t:null,lv=t=>y(t)||av(t)||sv(t)||iv(t);function uv(t){let{enter:r,exit:i,appendPosition:a=!1,collapse:s=!0,collapseDuration:c=300}=t;return function(t){let{children:l,position:u,preventExitTransition:d,done:f,nodeRef:h,isIn:p,playToast:g}=t;const b=a?`${r}--${u}`:r,y=a?`${i}--${u}`:i,v=n(0);return m((()=>{const t=h.current,e=b.split(" "),r=n=>{n.target===h.current&&(g(),t.removeEventListener("animationend",r),t.removeEventListener("animationcancel",r),0===v.current&&"animationcancel"!==n.type&&t.classList.remove(...e))};t.classList.add(...e),t.addEventListener("animationend",r),t.addEventListener("animationcancel",r)}),[]),o((()=>{const t=h.current,e=()=>{t.removeEventListener("animationend",e),s?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,f,c):f()};p||(d?e():(v.current=1,t.className+=` ${y}`,t.addEventListener("animationend",e)))}),[p]),e.createElement(e.Fragment,null,l)}}function dv(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 fv=new Map;let hv=[];const pv=new Set,gv=t=>pv.forEach((e=>e(t))),mv=()=>fv.size>0;function bv(t,e){var r;if(e)return!(null==(r=fv.get(e))||!r.isToastActive(t));let n=!1;return fv.forEach((e=>{e.isToastActive(t)&&(n=!0)})),n}function yv(t,e){lv(t)&&(mv()||hv.push({content:t,options:e}),fv.forEach((r=>{r.buildToast(t,e)})))}function vv(t,e){fv.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 wv(t){const{subscribe:e,getSnapshot:r,setProps:o}=n(function(t){const e=t.containerId||1;return{subscribe(r){const n=function(t,e,r){let n=1,o=0,i=[],a=[],s=[],c=e;const l=new Map,u=new Set,d=()=>{s=Array.from(l.values()),u.forEach((t=>t()))},f=t=>{a=null==t?[]:a.filter((e=>e!==t)),d()},h=t=>{const{toastId:e,onOpen:n,updateId:o,children:i}=t.props,s=null==o;t.staleId&&l.delete(t.staleId),l.set(e,t),a=[...a,t.props.toastId].filter((e=>e!==t.staleId)),d(),r(dv(t,s?"added":"updated")),s&&sv(n)&&n(y(i)&&i.props)};return{id:t,props:c,observe:t=>(u.add(t),()=>u.delete(t)),toggle:(t,e)=>{l.forEach((r=>{null!=e&&e!==r.props.toastId||sv(r.toggle)&&r.toggle(t)}))},removeToast:f,toasts:l,clearQueue:()=>{o-=i.length,i=[]},buildToast:(e,a)=>{if((e=>{let{containerId:r,toastId:n,updateId:o}=e;const i=r?r!==t:1!==t,a=l.has(n)&&null==o;return i||a})(a))return;const{toastId:s,updateId:u,data:p,staleId:g,delay:m}=a,b=()=>{f(s)},w=null==u;w&&o++;const x={...c,style:c.toastStyle,key:n++,...Object.fromEntries(Object.entries(a).filter((t=>{let[e,r]=t;return null!=r}))),toastId:s,updateId:u,data:p,closeToast:b,isIn:!1,className:cv(a.className||c.toastClassName),bodyClassName:cv(a.bodyClassName||c.bodyClassName),progressClassName:cv(a.progressClassName||c.progressClassName),autoClose:!a.isLoading&&(_=a.autoClose,k=c.autoClose,!1===_||iv(_)&&_>0?_:k),deleteToast(){const t=l.get(s),{onClose:e,children:n}=t.props;sv(e)&&e(y(n)&&n.props),r(dv(t,"removed")),l.delete(s),o--,o<0&&(o=0),i.length>0?h(i.shift()):d()}};var _,k;x.closeButton=c.closeButton,!1===a.closeButton||lv(a.closeButton)?x.closeButton=a.closeButton:!0===a.closeButton&&(x.closeButton=!lv(c.closeButton)||c.closeButton);let j=e;y(e)&&!av(e.type)?j=v(e,{closeToast:b,toastProps:x,data:p}):sv(e)&&(j=e({closeToast:b,toastProps:x,data:p}));const S={content:j,props:x,staleId:g};c.limit&&c.limit>0&&o>c.limit&&w?i.push(S):iv(m)?setTimeout((()=>{h(S)}),m):h(S)},setProps(t){c=t},setToggle:(t,e)=>{l.get(t).toggle=e},isToastActive:t=>a.some((e=>e===t)),getSnapshot:()=>s}}(e,t,gv);fv.set(e,n);const o=n.observe(r);return hv.forEach((t=>yv(t.content,t.options))),hv=[],()=>{o(),fv.delete(e)}},setProps(t){var r;null==(r=fv.get(e))||r.setProps(t)},getSnapshot(){var t;return null==(t=fv.get(e))?void 0:t.getSnapshot()}}}(t)).current;o(t);const i=w(e,r,r);return{getToastToRender:function(e){if(!i)return[];const r=new Map;return t.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,(t=>e(t[0],t[1])))},isToastActive:bv,count:null==i?void 0:i.length}}function xv(t){const[e,r]=l(!1),[i,a]=l(!1),s=n(null),c=n({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:u,pauseOnHover:d,closeToast:f,onClick:h,closeOnClick:p}=t;var g,m;function b(){r(!0)}function y(){r(!1)}function v(r){const n=s.current;c.canDrag&&n&&(c.didMove=!0,e&&y(),c.delta="x"===t.draggableDirection?r.clientX-c.start:r.clientY-c.start,c.start!==r.clientX&&(c.canCloseOnClick=!1),n.style.transform=`translate3d(${"x"===t.draggableDirection?`${c.delta}px, var(--y)`:`0, calc(${c.delta}px + var(--y))`},0)`,n.style.opacity=""+(1-Math.abs(c.delta/c.removalDistance)))}function w(){document.removeEventListener("pointermove",v),document.removeEventListener("pointerup",w);const e=s.current;if(c.canDrag&&c.didMove&&e){if(c.canDrag=!1,Math.abs(c.delta)>c.removalDistance)return a(!0),t.closeToast(),void t.collapseAll();e.style.transition="transform 0.2s, opacity 0.2s",e.style.removeProperty("transform"),e.style.removeProperty("opacity")}}null==(m=fv.get((g={id:t.toastId,containerId:t.containerId,fn:r}).containerId||1))||m.setToggle(g.id,g.fn),o((()=>{if(t.pauseOnFocusLoss)return document.hasFocus()||y(),window.addEventListener("focus",b),window.addEventListener("blur",y),()=>{window.removeEventListener("focus",b),window.removeEventListener("blur",y)}}),[t.pauseOnFocusLoss]);const x={onPointerDown:function(e){if(!0===t.draggable||t.draggable===e.pointerType){c.didMove=!1,document.addEventListener("pointermove",v),document.addEventListener("pointerup",w);const r=s.current;c.canCloseOnClick=!0,c.canDrag=!0,r.style.transition="none","x"===t.draggableDirection?(c.start=e.clientX,c.removalDistance=r.offsetWidth*(t.draggablePercent/100)):(c.start=e.clientY,c.removalDistance=r.offsetHeight*(80===t.draggablePercent?1.5*t.draggablePercent:t.draggablePercent)/100)}},onPointerUp:function(e){const{top:r,bottom:n,left:o,right:i}=s.current.getBoundingClientRect();"touchend"!==e.nativeEvent.type&&t.pauseOnHover&&e.clientX>=o&&e.clientX<=i&&e.clientY>=r&&e.clientY<=n?y():b()}};return u&&d&&(x.onMouseEnter=y,t.stacked||(x.onMouseLeave=b)),p&&(x.onClick=t=>{h&&h(t),c.canCloseOnClick&&f()}),{playToast:b,pauseToast:y,isRunning:e,preventExitTransition:i,toastRef:s,eventHandlers:x}}function _v(t){let{delay:r,isRunning:n,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:`${r}ms`,animationPlayState:n?"running":"paused"};l&&(g.transform=`scaleX(${u})`);const m=Mb("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=sv(s)?s({rtl:d,type:i,defaultClassName:m}):Mb(m,s),y={[l&&u>=1?"onTransitionEnd":"onAnimationEnd"]:l&&u<1?null:()=>{f&&o()}};return e.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":p},e.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${h} Toastify__progress-bar--${i}`}),e.createElement("div",{role:"progressbar","aria-hidden":p?"true":"false","aria-label":"notification timer",className:b,style:g,...y}))}let kv=1;const jv=()=>""+kv++;function Sv(t){return t&&(av(t.toastId)||iv(t.toastId))?t.toastId:jv()}function Ov(t,e){return yv(t,e),e.toastId}function Tv(t,e){return{...e,type:e&&e.type||t,toastId:Sv(e)}}function Ev(t){return(e,r)=>Ov(e,Tv(t,r))}function Av(t,e){return Ov(t,Tv("default",e))}Av.loading=(t,e)=>Ov(t,Tv("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),Av.promise=function(t,e,r){let n,{pending:o,error:i,success:a}=e;o&&(n=av(o)?Av.loading(o,r):Av.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 Av.dismiss(n);const i={type:t,...s,...r,data:o},a=av(e)?{render:e}:e;return n?Av.update(n,{...i,...a}):Av(a.render,{...i,...a}),o},l=sv(t)?t():t;return l.then((t=>c("success",a,t))).catch((t=>c("error",i,t))),l},Av.success=Ev("success"),Av.info=Ev("info"),Av.error=Ev("error"),Av.warning=Ev("warning"),Av.warn=Av.warning,Av.dark=(t,e)=>Ov(t,Tv("default",{theme:"dark",...e})),Av.dismiss=function(t){!function(t){var e;if(mv()){if(null==t||av(e=t)||iv(e))fv.forEach((e=>{e.removeToast(t)}));else if(t&&("containerId"in t||"id"in t)){const e=fv.get(t.containerId);e?e.removeToast(t.id):fv.forEach((e=>{e.removeToast(t.id)}))}}else hv=hv.filter((e=>null!=t&&e.options.toastId!==t))}(t)},Av.clearWaitingQueue=function(t){void 0===t&&(t={}),fv.forEach((e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()}))},Av.isActive=bv,Av.update=function(t,e){void 0===e&&(e={});const r=((t,e)=>{var r;let{containerId:n}=e;return null==(r=fv.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:jv()};i.toastId!==t&&(i.staleId=t);const a=i.render||o;delete i.render,Ov(a,i)}},Av.done=t=>{Av.update(t,{progress:1})},Av.onChange=function(t){return pv.add(t),()=>{pv.delete(t)}},Av.play=t=>vv(!0,t),Av.pause=t=>vv(!1,t);const Pv="undefined"!=typeof window?m:o,Cv=t=>{let{theme:r,type:n,isLoading:o,...i}=t;return e.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===r?"currentColor":`var(--toastify-icon-color-${n})`,...i})},Dv={info:function(t){return e.createElement(Cv,{...t},e.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 e.createElement(Cv,{...t},e.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 e.createElement(Cv,{...t},e.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 e.createElement(Cv,{...t},e.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 e.createElement("div",{className:"Toastify__spinner"})}},Mv=t=>{const{isRunning:r,preventExitTransition:n,toastRef:o,eventHandlers:i,playToast:a}=xv(t),{closeButton:s,children:c,autoClose:l,onClick:u,type:d,hideProgressBar:f,closeToast:h,transition:p,position:g,className:m,style:b,bodyClassName:w,bodyStyle:x,progressClassName:_,progressStyle:k,updateId:j,role:S,progress:O,rtl:T,toastId:E,deleteToast:A,isIn:P,isLoading:C,closeOnClick:D,theme:M}=t,R=Mb("Toastify__toast",`Toastify__toast-theme--${M}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":T},{"Toastify__toast--close-on-click":D}),I=sv(m)?m({rtl:T,position:g,type:d,defaultClassName:R}):Mb(R,m),N=function(t){let{theme:e,type:r,isLoading:n,icon:o}=t,i=null;const a={theme:e,type:r};return!1===o||(sv(o)?i=o({...a,isLoading:n}):y(o)?i=v(o,a):n?i=Dv.spinner():(t=>t in Dv)(r)&&(i=Dv[r](a))),i}(t),F=!!O||!l,z={closeToast:h,type:d,theme:M};let L=null;return!1===s||(L=sv(s)?s(z):y(s)?v(s,z):function(t){let{closeToast:r,theme:n,ariaLabel:o="close"}=t;return e.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:t=>{t.stopPropagation(),r(t)},"aria-label":o},e.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},e.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"})))}(z)),e.createElement(p,{isIn:P,done:A,position:g,preventExitTransition:n,nodeRef:o,playToast:a},e.createElement("div",{id:E,onClick:u,"data-in":P,className:I,...i,style:b,ref:o},e.createElement("div",{...P&&{role:S},className:sv(w)?w({type:d}):Mb("Toastify__toast-body",w),style:x},null!=N&&e.createElement("div",{className:Mb("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!C})},N),e.createElement("div",null,c)),L,e.createElement(_v,{...j&&!F?{key:`pb-${j}`}:{},rtl:T,theme:M,delay:l,isRunning:r,isIn:P,closeToast:h,hide:f,type:d,style:k,className:_,controlledProgress:F,progress:O||0})))},Rv=function(t,e){return void 0===e&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},Iv=uv(Rv("bounce",!0));uv(Rv("slide",!0)),uv(Rv("zoom")),uv(Rv("flip"));const Nv={position:"top-right",transition:Iv,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Fv(t){let r={...Nv,...t};const o=t.stacked,[i,a]=l(!0),s=n(null),{getToastToRender:c,isToastActive:u,count:d}=wv(r),{className:f,style:h,rtl:p,containerId:g}=r;function m(t){const e=Mb("Toastify__toast-container",`Toastify__toast-container--${t}`,{"Toastify__toast-container--rtl":p});return sv(f)?f({position:t,rtl:p,defaultClassName:e}):Mb(e,cv(f))}function b(){o&&(a(!0),Av.play())}return Pv((()=>{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,d,o]),e.createElement("div",{ref:s,className:"Toastify",id:g,onMouseEnter:()=>{o&&(a(!1),Av.pause())},onMouseLeave:b},c(((t,r)=>{const n=r.length?{...h}:{...h,pointerEvents:"none"};return e.createElement("div",{className:m(t),style:n,key:`container-${t}`},r.map((t=>{let{content:r,props:n}=t;return e.createElement(Mv,{...n,stacked:o,collapseAll:b,isIn:u(n.toastId,n.containerId),style:n.style,key:`toast-${n.key}`},r)})))})))}function zv(t){switch(void 0===t&&(t={status:"",message:""}),null==t?void 0:t.status){case"success":default:Av.success(null==t?void 0:t.message);break;case"warning":Av.warning(null==t?void 0:t.message);break;case"error":Av.error(null==t?void 0:t.message)}}function Lv(){return F.jsx(Fv,{position:"bottom-center",autoClose:2e3,hideProgressBar:!0,newestOnTop:!0,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0})}function Bv(t){var e,r=t.children,n=t.styles,o=t.enablePadding,i=void 0!==o&&o;return F.jsx("div",_({className:z((e={"min-h-screen h-full w-full py-3 px-5":!0,"py-3 px-5":!i,"py-3 px-5 lg:px-[150px]":i,"transition-all duration-[200ms]":!0},e["".concat(n)]=n,e))},{children:r}))}function Vv(){return F.jsx("div",{children:"FooterNavbar"})}function $v(t){var e=t.left,r=t.middle,n=t.right;return F.jsxs("div",_({className:z({"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})},{children:[F.jsx("div",{children:e}),F.jsx("div",{children:r}),F.jsx("div",{children:n})]}))}function Uv(t){var e,r,n=t.data,o=void 0===n?[]:n,i=t.styles,a=function(t,e){var r=t.icon,n=t.name,o=t.badge,i=t.to,a=t.onClick,s=t.component,c=k(t,["icon","name","badge","to","onClick","component"]),l=s;return F.jsx(l,_({icon:r,name:n,badge:o,to:i,onClick:a},c),e)},s=function(t,e){var r=t.icon,n=t.name,o=t.badge;t.to;var i=t.items,c=t.component,l=k(t,["icon","name","badge","to","items","component"]),u=c,d=i&&Array.isArray(i)?i.map((function(t,e){return"items"in t?s(t,e):a(t,e)})):null;return F.jsx(u,_({icon:r,name:n,badge:o},l,{children:d}),e)},c=O([],o,!0);if(c.length>0){var l=c.map((function(t,e){return"items"in t?s(t,e):a(t,e)}));r=F.jsx("div",{children:l})}return F.jsx("div",_({className:z((e={"theme-bg-md overflow-y-auto w-full select-none":!0},e["".concat(i)]=i,e))},{children:r}))}x(':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 Hv=function(t){var e=t.icon,r=t.name,n=t.badge;return F.jsxs(F.Fragment,{children:[e&&F.jsx("div",_({className:"text-2xl"},{children:e})),r&&F.jsx("div",{children:r}),n&&F.jsx("div",{children:n})]})},Wv=function(t){var e,r=t.icon,n=t.name,o=t.badge;t.to;var i=t.styles,a=t.children,s=l(!0),c=s[0],u=s[1];return F.jsxs("div",{children:[F.jsxs("div",_({className:z((e={"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},e["".concat(i)]=i,e)),onClick:function(){return u(!c)}},{children:[F.jsx("div",_({className:"flex flex-row gap-3"},{children:F.jsx(Hv,{icon:r,name:n,badge:o})})),F.jsx(ph,{className:z({"text-md":!0,"transition-all ease-in-out duration-300":!0,"rotate-180":!c})})]})),!c&&F.jsx("div",{children:a})]})},Yv=function(t){var e,r=t.icon,n=t.name,o=t.badge,i=t.styles;return F.jsx("div",_({className:z((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(i)]=i,e))},{children:F.jsx(Hv,{icon:r,name:n,badge:o})}))},Xv=function(t){var e=t.icon,r=t.name,n=t.badge,o=t.to,i=t.onClick,a=t.styles;return o?F.jsx("div",_({onClick:function(){o?window.location.href=o:i&&i()}},{children:F.jsx(Yv,{icon:e,name:r,badge:n,styles:a})})):F.jsx("div",_({onClick:i},{children:F.jsx(Yv,{icon:e,name:r,badge:n,styles:a})}))},qv=function(t){var e,r=t.icon,n=t.name,o=t.badge,i=t.styles;return F.jsx("div",_({className:z((e={"flex flex-row gap-3 p-4 font-semibold uppercase theme-text-md":!0},e["".concat(i)]=i,e))},{children:F.jsx(Hv,{icon:r,name:n,badge:o})}))};function Kv(t){var e=t.data;return F.jsx("div",{children:F.jsx(Uv,{data:e,styles:z({"h-full z-10":!0,"sidebar_nav_scrollbar max-h-screen":!0})})})}function Gv(t){var e=t.handleToggleSider;return F.jsx("div",_({className:z({"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},{children:F.jsx(zy,{})}))}function Zv(t){var e,r=t.children,n=t.gap,o=void 0===n?3:n,i=t.styles;return F.jsx("div",_({className:z((e={},e["flex flex-col gap-".concat(o)]=!0,e["".concat(i)]=i,e))},{children:r}))}function Jv(t){var e,r=t.children,n=t.gap,o=void 0===n?3:n,i=t.styles;return F.jsx("div",_({className:z((e={},e["flex flex-row gap-".concat(o)]=!0,e["".concat(i)]=i,e))},{children:r}))}x(".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 Qv={FlexCol:Zv,FlexRow:Jv};function tw(t){var e,r=t.children,n=t.styles;return F.jsx("div",_({className:z((e={},e.grid=!0,e["".concat(n)]=n,e))},{children:r}))}var ew=function(t){var e,r=t.flexDirection,n=void 0===r?"vertical":r,o=t.children,i=t.styles;return F.jsx("div",_({className:z((e={"flex bg-light-600":!0,"flex-col":"vertical"===n,"flex-row":"horizontal"===n},e["".concat(i)]=i,e))},{children:o}))},rw=function(t){var e,r=t.position,n=void 0===r?"static":r,o=t.children,i=t.styles;return F.jsx("div",_({className:z((e={static:"static"===n,fixed:"fixed"===n,sticky:"sticky"===n,"top-0 w-full h-fit z-50 theme-bg-md":!0},e["".concat(i)]=i,e))},{children:o||"Header"}))},nw=function(t){var e=t.children,r=t.visibility,n=t.isMobile,o=t.handleClose;return F.jsxs(F.Fragment,{children:[n&&r&&F.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-40",onClick:o}),F.jsx(jy,_({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"},{children:F.jsx("div",_({className:z("fixed h-full w-[300px] theme-bg-md shadow-lg z-50","left-0")},{children:e}))}))]})},ow=function(t){var e,r=t.sidebarVisible,n=t.isMobile,o=t.children,i=t.styles;return F.jsx("div",_({className:z((e={"w-full min-h-screen transition-all duration-200 theme-bg-sm":!0,"md:pl-[300px]":r&&!n,"pl-0":!r||n},e["".concat(i)]=i,e))},{children:o}))},iw=function(t){var e,r=t.children,n=t.styles;return F.jsx("div",_({className:z((e={"bottom-0 w-full h-fit theme-bg-md":!0},e["".concat(n)]=n,e))},{children:r||"Footer"}))};function aw(t){var e=t.title,r=t.href,n=void 0===r?"#":r,o=t.active,i=void 0===o||o;return F.jsx("a",_({href:n,className:z({"text-lg font-semibold ":!0,"text-gray-400 hover:text-gray-600":!i,"text-light-800":i,"hover:underline":!0,"transition-all ease-in-out":!0})},{children:e}))}var sw=function(t){var r,n,o=t.gap,i=void 0===o?1:o,a=t.seperator,s=void 0===a?"/":a,c=t.data,l=void 0===c?[]:c,u=t.styles,d=O([],l,!0);if(d.length>0){var f=d.map((function(t,r){var n;return F.jsxs(e.Fragment,{children:[F.jsx(aw,{title:t.title,href:t.href,active:r==d.length-1}),r<d.length-1&&F.jsx("span",_({className:z((n={"text-lg font-semibold text-gray-500":!0},n["px-".concat(i)]=i,n))},{children:s}))]},r)}));n=F.jsx("div",{children:f})}return F.jsx("div",_({className:z((r={"inline-flex gap-3":!0},r["".concat(u)]=u,r))},{children:n}))};function cw(t){var e,r,n=t.data,o=void 0===n?[]:n,i=t.styles,a=function(t,e){var r=t.icon,n=t.name,o=t.badge,i=t.to,a=t.onClick,s=t.component,c=k(t,["icon","name","badge","to","onClick","component"]),l=s;return F.jsx(l,_({icon:r,name:n,badge:o,to:i,onClick:a},c),e)},s=function(t,e){var r=t.icon,n=t.name,o=t.badge;t.to;var i=t.items,c=t.component,l=k(t,["icon","name","badge","to","items","component"]),u=c,d=i&&Array.isArray(i)?i.map((function(t,e){return"items"in t?s(t,e):a(t,e)})):null;return F.jsx(u,_({icon:r,name:n,badge:o},l,{children:d}),e)},c=O([],o,!0);if(c.length>0){var l=c.map((function(t,e){return"items"in t?s(t,e):a(t,e)}));r=F.jsx("div",_({className:"flex flex-row"},{children:l}))}return F.jsx("div",_({className:z((e={},e["".concat(i)]=i,e))},{children:r}))}function lw(t,e){o((function(){var r=function(r){t.current&&!t.current.contains(r.target)&&e&&e()};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),function(){document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}}),[t,e])}var uw=function(t){var e=t.icon,r=t.name,n=t.description,o=t.badge;return F.jsxs("div",_({className:"flex flex-row items-center gap-3 select-none"},{children:[e&&F.jsx("div",_({className:"text-xl theme-text-md"},{children:e})),F.jsxs("div",{children:[r&&F.jsx("div",_({className:"text-md"},{children:r})),n&&F.jsx("div",_({className:"text-xs theme-text-sm"},{children:n}))]}),o&&F.jsx("div",{children:o})]}))},dw=function(t){var e,r=t.icon,o=t.name,i=t.description,a=t.badge,s=t.to,c=t.styles,u=t.children,d=l(!0),f=d[0],h=d[1],p=n(null);lw(p,(function(){return h(!0)}));return F.jsxs("div",_({className:"relative w-full",ref:p},{children:[F.jsxs("div",_({className:z((e={"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":!f},e["".concat(c)]=c,e)),onClick:function(){u?h(!f):s&&(window.location.href=s)}},{children:[F.jsx("div",{children:F.jsx(uw,{icon:r,name:o,description:i,badge:a})}),u&&F.jsx(ph,{className:z({"text-md":!0,"transition-all ease-in-out duration-300":!0,"rotate-180":!f})})]})),!f&&u&&F.jsx("div",_({className:z({"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})},{children:u}))]}))},fw=function(t){var e,r=t.icon,n=t.name,o=t.description,i=t.badge,a=t.to,s=t.onClick,c=t.styles;return F.jsx("div",_({onClick:function(){a?window.location.href=a:s&&s()},className:z((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(c)]=c,e))},{children:F.jsx(uw,{icon:r,name:n,description:o,badge:i})}))},hw=function(t){var e,r=t.icon,n=t.name,o=t.description,i=t.badge,a=t.styles;return F.jsx("div",_({className:z((e={"p-3 theme-text-md font-thin":!0},e["".concat(a)]=a,e))},{children:F.jsx(uw,{icon:r,name:n,description:o,badge:i})}))};function pw(t){var e,r=t.title,o=t.show,i=void 0!==o&&o,a=t.handleOnClose,s=t.children,l=t.isLoading,u=t.isSuccess,d=void 0===u||u,f=t.isError,h=t.error,p=t.styles,g=t.enableCloseOnClickOutside,m=void 0!==g&&g,b=n(null);return lw(b,m?a:void 0),F.jsx(jy,_({show:i,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:c},{children:F.jsx("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"},{children:F.jsxs("div",_({ref:b,className:z((e={"theme-bg-md theme-shadow-lg border border-gray-700/50 w-fit h-fit rounded-lg":!0},e["".concat(p)]=p,e))},{children:[F.jsxs("div",_({className:"theme-gradient-to-r-sm inline-flex items-center border-b w-full border-dark-500/40"},{children:[F.jsx("div",_({className:"w-full text-center text-md font-semibold"},{children:r})),F.jsx("div",_({className:z({"w-[60px] h-[60px] flex items-center justify-center transition-standard-fast":!0,"hover:cursor-pointer hover:bg-dark-500/40":!0}),onClick:a},{children:"X"}))]})),F.jsx(Ay,_({isLoading:l,isSuccess:d,isError:f,error:h},{children:F.jsx("div",_({className:"p-5 w-full"},{children:s}))}))]}))}))}))}function gw(t){return dh({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 mw(t){return dh({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)}function bw(t){var e=t.summary,r=void 0===e?"Accordion":e,n=t.expandIcon,o=void 0===n?F.jsx(gw,{}):n,i=t.collapseIcon,a=void 0===i?F.jsx(mw,{}):i,s=t.children,u=t.defaultCollapse,d=l(void 0!==u&&u),f=d[0],h=d[1];return F.jsxs("div",_({className:"border border-dark-400"},{children:[F.jsx("div",{children:F.jsxs("div",_({className:"inline-flex gap-3 items-center justify-center p-3 w-full bg-light-600 dark:bg-dark-500"},{children:[F.jsx("div",_({className:"theme-text-md w-full"},{children:r})),F.jsx("div",{children:f?F.jsx("div",_({onClick:function(){h(!1)},className:"text-xl"},{children:a})):F.jsx("div",_({onClick:function(){h(!0)},className:"text-xl"},{children:o}))})]}))}),F.jsx(jy,_({show:f,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:c},{children:F.jsx("div",_({className:"p-5 border-t border-t-dark-400/80 theme-text-sm"},{children:s}))}))]}))}function yw(t){var e,r=t.children,n=t.styles;return F.jsx("div",_({className:z((e={"bg-gradient-light-2 border border-gray-700 shadow rounded-sm":!0},e["".concat(n)]=n,e))},{children:r}))}function vw(t){var e,r=t.avatar,n=t.title,o=t.description,i=t.styles;return F.jsxs("div",_({className:z((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(i)]=i,e))},{children:[F.jsx("div",_({className:"w-[40px] h-[40px]"},{children:r})),F.jsxs("div",_({className:"flex flex-col"},{children:[F.jsx("div",_({className:"font-semibold text-gray-100"},{children:n})),F.jsx("div",_({className:"text-sm text-gray-400"},{children:o}))]}))]}))}function ww(t){var e,r=t.children,n=t.styles;return F.jsx("div",_({className:z((e={"text-gray-200":!0},e["".concat(n)]=n,e))},{children:r}))}function xw(t){var e,r=t.children,n=t.styles;return F.jsx("div",_({className:z((e={"bg-slate-900 text-gray-200 p-3 inline-flex gap-3 w-full":!0},e["".concat(n)]=n,e))},{children:r}))}var _w=i(void 0),kw=function(t){var e=t.defaultTheme,r=void 0===e?"dark":e,n=t.children,i=l((function(){return localStorage.getItem("theme")||r})),a=i[0],s=i[1];o((function(){"dark"===a?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),localStorage.setItem("theme",a)}),[a]);return F.jsx(_w.Provider,_({value:{theme:a,setTheme:s,toggleTheme:function(){s((function(t){return"dark"===t?"light":"dark"}))}}},{children:n}))},jw=function(){var t=d(_w);if(!t)return null;var e=t.theme,r=t.toggleTheme;return F.jsxs("button",_({onClick:r,className:"relative w-16 h-8 flex items-center bg-gray-300 dark:bg-gray-800 rounded-full p-1 transition-all"},{children:[F.jsx($y,{className:"absolute left-2 text-yellow-500 transition-opacity duration-300 z-10",style:{opacity:"dark"===e?0:1}}),F.jsx(Vy,{className:"absolute right-2 text-blue-400 transition-opacity duration-300 z-10",style:{opacity:"dark"===e?1:0}}),F.jsx("div",{className:z("w-6 h-6 bg-white dark:bg-gray-600 rounded-full shadow-md transition-transform duration-300","dark"===e?"translate-x-8":"translate-x-0")})]}))};function Sw(t){var e=t.text,r=t.limit,n=l(!1),o=n[0],i=n[1];return F.jsxs("div",{children:[o?e:"".concat(e.substring(0,r)),e.length>r&&F.jsxs("div",_({className:"relative"},{children:[!o&&F.jsx("div",{className:"absolute top-[-20px] h-[20px] w-full bg-gradient-to-t from-slate-900/70 to-transparent"}),F.jsx("div",_({className:z({"text-blue-300 px-1 pb-1 mt-1":!0,"bg-slate-900/70":!o,"bg-gradient-to-t from-slate-900/50 to-transparent":o})},{children:F.jsx("div",_({className:"text-xs w-fit hover:cursor-pointer",onClick:function(){return i(!o)}},{children:o?"Show less":"Show more"}))}))]}))]})}var Ow=function(){var t=l(!1),e=t[0],r=t[1];return{show:e,handleOpenModal:function(){r(!0)},handleCloseModal:function(){r(!1)}}},Tw=function(t){void 0===t&&(t=!0);var e=l(t),r=e[0],n=e[1],i=l(window.innerWidth<768),a=i[0],s=i[1];o((function(){var t=function(){s(window.innerWidth<768)};return window.addEventListener("resize",t),function(){return window.removeEventListener("resize",t)}}),[]);return{show:r,handleToggleSider:function(){n((function(t){return!t}))},handleCloseSider:function(){n(!1)},isMobile:a}};export{bw as Accordion,Ay as AsyncComponentWrapper,q as Avatar,ov as Backdrop,Z as Badge,Sa as BarChart,sw as Breadcrumb,aw as BreadcrumbItem,Dy as Button,yw as Card,ww as CardContent,xw as CardFooter,vw as CardHeader,Jf as Chapter,Wy as Checkbox,Pa as Chip,qf as CloudinaryImage,ow as Content,Bv as ContentArea,Yy as DateSelector,Qv as Flex,Zv as FlexCol,Jv as FlexRow,iw as Footer,Vv as FooterNavbar,Cb as Form,Ey as FormResponse,tw as Grid,rw as Header,cw as HeaderNav,dw as HeaderNavGroup,fw as HeaderNavItem,hw as HeaderNavItemTitle,$v as HeaderNavbar,Ca as Image,Zy as ImageInput,Kf as Info,Hy as Input,Fy as InputResponse,ew as Layout,Oa as LineChart,nh as Link,Gf as List,vh as ListItem,Uv as Menu,Wv as MenuGroup,Xv as MenuItem,qv as MenuItemTitle,pw as Modal,Jy as MultiImageInput,rh as Paragraph,Ta as PieChart,kh as PriceTag,oh as Quote,Qy as Radio,th as Section,ev as Select,Sw as ShowMore,Kv as Sidebar,Gv as SidebarToggler,nw as Sider,Ah as Skeleton,Ch as Slider,jh as StarRating,Eh as StarRatingDistribution,tv as StarRatingInput,rv as Switch,Iy as Table,Ny as Tag,nv as TextArea,_w as ThemeContext,kw as ThemeProvider,jw as ThemeSwitch,tt as TitleBanner,Lv as Toast,Sy as Transition,ih as Typography,zv as sendToast,lw as useClickOutside,Ow as useModal,Tw as useSider};
|