degraded(String reason) {
+ Map out = new LinkedHashMap<>();
+ out.put("degraded", true);
+ out.put("degraded_reason", reason);
+ return out;
+ }
+
+ private static String trimTrailingSlash(String s) {
+ if (s == null || s.isBlank()) {
+ return "http://localhost:8020";
+ }
+ return s.endsWith("/") ? s.substring(0, s.length() - 1) : s;
+ }
+
+ /** 스택트레이스 미노출: 메시지 1줄만 요약. */
+ private static String summarize(Exception e) {
+ String m = e.getMessage();
+ if (m == null) {
+ return e.getClass().getSimpleName();
+ }
+ return m.length() > 160 ? m.substring(0, 160) : m;
+ }
+}
diff --git a/backend/src/main/java/com/zioinfo/fa/wise/WiseAskController.java b/backend/src/main/java/com/zioinfo/fa/wise/WiseAskController.java
new file mode 100644
index 0000000..fc938e6
--- /dev/null
+++ b/backend/src/main/java/com/zioinfo/fa/wise/WiseAskController.java
@@ -0,0 +1,34 @@
+package com.zioinfo.fa.wise;
+
+import com.zioinfo.fa.common.ApiResponse;
+import lombok.RequiredArgsConstructor;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.Map;
+
+/**
+ * WISE AI — 중앙 guardia-rag {@code /rag/answer} 프록시(FA). [GUARDiA-FA]
+ *
+ * {@code POST /api/wise/ask {query}} → {@link RagClient#answer(String)} → 근거·인용·환각차단이 담긴
+ * 중앙 응답을 그대로 전달한다. 브라우저는 rag 를 직접 호출하지 않고 이 백엔드를 경유한다.
+ *
+ *
인증: SecurityConfig {@code /api/wise/** authenticated} 게이트(로그인 사용자). 온프레미스 전용.
+ * 슬로건: Enterprise AI for Trusted Knowledge.
+ */
+@RestController
+@RequestMapping("/api/wise")
+@RequiredArgsConstructor
+public class WiseAskController {
+
+ private final RagClient ragClient;
+
+ @PostMapping("/ask")
+ public ApiResponse> ask(@RequestBody Map req) {
+ Object q = req == null ? null : req.get("query");
+ String query = q == null ? "" : String.valueOf(q);
+ return ApiResponse.ok(ragClient.answer(query));
+ }
+}
diff --git a/backend/src/main/resources/static/assets/index-B8zbZ_VS.css b/backend/src/main/resources/static/assets/index-B8zbZ_VS.css
new file mode 100644
index 0000000..4c13500
--- /dev/null
+++ b/backend/src/main/resources/static/assets/index-B8zbZ_VS.css
@@ -0,0 +1 @@
+*,:before,:after{--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: rgb(59 130 246 / .5);--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: }::backdrop{--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: rgb(59 130 246 / .5);--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: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}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,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color: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:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-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,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.fixed{position:fixed}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-2{margin-left:.5rem}.ml-60{margin-left:15rem}.mr-2{margin-right:.5rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.h-1\.5{height:.375rem}.h-2{height:.5rem}.h-4{height:1rem}.h-6{height:1.5rem}.h-screen{height:100vh}.max-h-48{max-height:12rem}.min-h-screen{min-height:100vh}.w-16{width:4rem}.w-32{width:8rem}.w-4{width:1rem}.w-48{width:12rem}.w-6{width:1.5rem}.w-60{width:15rem}.w-8{width:2rem}.w-96{width:24rem}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-\[720px\]{min-width:720px}.max-w-2xl{max-width:42rem}.max-w-4xl{max-width:56rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-amber-500\/40{border-color:#f59e0b66}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(37 99 235 / var(--tw-border-opacity, 1))}.border-blue-700{--tw-border-opacity: 1;border-color:rgb(29 78 216 / var(--tw-border-opacity, 1))}.border-emerald-500\/40{border-color:#10b98166}.border-green-500{--tw-border-opacity: 1;border-color:rgb(34 197 94 / var(--tw-border-opacity, 1))}.border-green-700{--tw-border-opacity: 1;border-color:rgb(21 128 61 / var(--tw-border-opacity, 1))}.border-orange-600{--tw-border-opacity: 1;border-color:rgb(234 88 12 / var(--tw-border-opacity, 1))}.border-purple-700{--tw-border-opacity: 1;border-color:rgb(126 34 206 / 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-600{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1))}.border-red-700{--tw-border-opacity: 1;border-color:rgb(185 28 28 / var(--tw-border-opacity, 1))}.border-rose-500\/40{border-color:#f43f5e66}.border-rose-500\/50{border-color:#f43f5e80}.border-slate-600{--tw-border-opacity: 1;border-color:rgb(71 85 105 / var(--tw-border-opacity, 1))}.border-slate-700{--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity, 1))}.border-slate-700\/50{border-color:#33415580}.border-white\/40{border-color:#fff6}.border-yellow-500{--tw-border-opacity: 1;border-color:rgb(234 179 8 / var(--tw-border-opacity, 1))}.border-yellow-600{--tw-border-opacity: 1;border-color:rgb(202 138 4 / var(--tw-border-opacity, 1))}.border-yellow-700{--tw-border-opacity: 1;border-color:rgb(161 98 7 / var(--tw-border-opacity, 1))}.border-t-white{--tw-border-opacity: 1;border-top-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.bg-amber-500\/10{background-color:#f59e0b1a}.bg-amber-500\/20{background-color:#f59e0b33}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-blue-600\/15{background-color:#2563eb26}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}.bg-blue-800{--tw-bg-opacity: 1;background-color:rgb(30 64 175 / var(--tw-bg-opacity, 1))}.bg-blue-900\/30{background-color:#1e3a8a4d}.bg-emerald-500\/10{background-color:#10b9811a}.bg-emerald-500\/15{background-color:#10b98126}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.bg-green-700{--tw-bg-opacity: 1;background-color:rgb(21 128 61 / var(--tw-bg-opacity, 1))}.bg-orange-700{--tw-bg-opacity: 1;background-color:rgb(194 65 12 / var(--tw-bg-opacity, 1))}.bg-orange-800{--tw-bg-opacity: 1;background-color:rgb(154 52 18 / var(--tw-bg-opacity, 1))}.bg-purple-700{--tw-bg-opacity: 1;background-color:rgb(126 34 206 / var(--tw-bg-opacity, 1))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-red-700{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))}.bg-red-800{--tw-bg-opacity: 1;background-color:rgb(153 27 27 / var(--tw-bg-opacity, 1))}.bg-red-900{--tw-bg-opacity: 1;background-color:rgb(127 29 29 / var(--tw-bg-opacity, 1))}.bg-red-900\/30{background-color:#7f1d1d4d}.bg-rose-500\/10{background-color:#f43f5e1a}.bg-rose-500\/15{background-color:#f43f5e26}.bg-slate-600{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity, 1))}.bg-slate-700{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity, 1))}.bg-slate-700\/50{background-color:#33415580}.bg-slate-800{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.bg-slate-900{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}.bg-slate-900\/60{background-color:#0f172a99}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\/20{background-color:#fff3}.bg-yellow-500{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity, 1))}.bg-yellow-600{--tw-bg-opacity: 1;background-color:rgb(202 138 4 / var(--tw-bg-opacity, 1))}.bg-yellow-700{--tw-bg-opacity: 1;background-color:rgb(161 98 7 / var(--tw-bg-opacity, 1))}.bg-yellow-800{--tw-bg-opacity: 1;background-color:rgb(133 77 14 / var(--tw-bg-opacity, 1))}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-2{padding-bottom:.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.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-\[11px\]{font-size:11px}.text-\[9px\]{font-size:9px}.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-medium{font-weight:500}.font-semibold{font-weight:600}.leading-7{line-height:1.75rem}.leading-relaxed{line-height:1.625}.tracking-\[0\.4em\]{letter-spacing:.4em}.text-amber-300{--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}.text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.text-blue-200{--tw-text-opacity: 1;color:rgb(191 219 254 / var(--tw-text-opacity, 1))}.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-emerald-300{--tw-text-opacity: 1;color:rgb(110 231 183 / var(--tw-text-opacity, 1))}.text-emerald-400{--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.text-green-200{--tw-text-opacity: 1;color:rgb(187 247 208 / var(--tw-text-opacity, 1))}.text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.text-orange-200{--tw-text-opacity: 1;color:rgb(254 215 170 / var(--tw-text-opacity, 1))}.text-purple-400{--tw-text-opacity: 1;color:rgb(192 132 252 / var(--tw-text-opacity, 1))}.text-red-200{--tw-text-opacity: 1;color:rgb(254 202 202 / var(--tw-text-opacity, 1))}.text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.text-rose-300{--tw-text-opacity: 1;color:rgb(253 164 175 / var(--tw-text-opacity, 1))}.text-rose-400{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}.text-slate-100{--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity, 1))}.text-slate-200{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity, 1))}.text-slate-300{--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity, 1))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-white\/60{color:#fff9}.text-white\/70{color:#ffffffb3}.text-white\/80{color:#fffc}.text-yellow-200{--tw-text-opacity: 1;color:rgb(254 240 138 / var(--tw-text-opacity, 1))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity, 1))}.outline-none{outline:2px solid transparent;outline-offset:2px}.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-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,sans-serif;background:#0f172a;color:#e2e8f0}.hover\:border-blue-500\/50:hover{border-color:#3b82f680}.hover\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}.hover\:bg-green-600:hover{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.hover\:bg-purple-600:hover{--tw-bg-opacity: 1;background-color:rgb(147 51 234 / var(--tw-bg-opacity, 1))}.hover\:bg-rose-500\/10:hover{background-color:#f43f5e1a}.hover\:bg-slate-500:hover{--tw-bg-opacity: 1;background-color:rgb(100 116 139 / var(--tw-bg-opacity, 1))}.hover\:bg-slate-600:hover{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity, 1))}.hover\:bg-slate-700:hover{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity, 1))}.hover\:bg-slate-700\/30:hover{background-color:#3341554d}.hover\:bg-slate-800:hover{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.hover\:bg-white\/30:hover{background-color:#ffffff4d}.hover\:text-blue-400:hover{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.hover\:text-emerald-400:hover{--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.hover\:text-red-400:hover{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.hover\:text-rose-400:hover{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.disabled\:opacity-30:disabled{opacity:.3}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.disabled\:opacity-60:disabled{opacity:.6}@media (min-width: 640px){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}
diff --git a/backend/src/main/resources/static/assets/index-DGCZGcqo.js b/backend/src/main/resources/static/assets/index-BLcAwA2O.js
similarity index 65%
rename from backend/src/main/resources/static/assets/index-DGCZGcqo.js
rename to backend/src/main/resources/static/assets/index-BLcAwA2O.js
index c6771c0..1a4906c 100644
--- a/backend/src/main/resources/static/assets/index-DGCZGcqo.js
+++ b/backend/src/main/resources/static/assets/index-BLcAwA2O.js
@@ -1,4 +1,4 @@
-function TN(e,t){for(var n=0;nr[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var os=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Me(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var uw={exports:{}},Lf={};/**
+function CN(e,t){for(var n=0;nr[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var os=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Me(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var uw={exports:{}},kf={};/**
* @license React
* react-jsx-runtime.production.js
*
@@ -6,7 +6,7 @@ function TN(e,t){for(var n=0;n>>1,q=N[U];if(0>>1;Ua(W,D))lea(_e,W)?(N[U]=_e,N[le]=D,U=le):(N[U]=W,N[G]=D,U=G);else if(lea(_e,D))N[U]=_e,N[le]=D,U=le;else break e}}return R}function a(N,R){var D=N.sortIndex-R.sortIndex;return D!==0?D:N.id-R.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,o=l.now();e.unstable_now=function(){return l.now()-o}}var u=[],s=[],f=1,c=null,d=3,h=!1,x=!1,g=!1,v=!1,y=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;function O(N){for(var R=n(s);R!==null;){if(R.callback===null)r(s);else if(R.startTime<=N)r(s),R.sortIndex=R.expirationTime,t(u,R);else break;R=n(s)}}function S(N){if(g=!1,O(N),!x)if(n(u)!==null)x=!0,w||(w=!0,M());else{var R=n(s);R!==null&&B(S,R.startTime-N)}}var w=!1,A=-1,E=5,j=-1;function $(){return v?!0:!(e.unstable_now()-jN&&$());){var U=c.callback;if(typeof U=="function"){c.callback=null,d=c.priorityLevel;var q=U(c.expirationTime<=N);if(N=e.unstable_now(),typeof q=="function"){c.callback=q,O(N),R=!0;break t}c===n(u)&&r(u),O(N)}else r(u);c=n(u)}if(c!==null)R=!0;else{var X=n(s);X!==null&&B(S,X.startTime-N),R=!1}}break e}finally{c=null,d=D,h=!1}R=void 0}}finally{R?M():w=!1}}}var M;if(typeof b=="function")M=function(){b(P)};else if(typeof MessageChannel<"u"){var k=new MessageChannel,z=k.port2;k.port1.onmessage=P,M=function(){z.postMessage(null)}}else M=function(){y(P,0)};function B(N,R){A=y(function(){N(e.unstable_now())},R)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_forceFrameRate=function(N){0>N||125U?(N.sortIndex=D,t(s,N),n(u)===null&&N===n(s)&&(g?(m(A),A=-1):g=!0,B(S,D-U))):(N.sortIndex=q,t(u,N),x||h||(x=!0,w||(w=!0,M()))),N},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(N){var R=d;return function(){var D=d;d=R;try{return N.apply(this,arguments)}finally{d=D}}}})(bw);gw.exports=bw;var KN=gw.exports,xw={exports:{}},Rt={};/**
+ */(function(e){function t(N,R){var D=N.length;N.push(R);e:for(;0>>1,q=N[U];if(0>>1;Ua(W,D))oea(_e,W)?(N[U]=_e,N[oe]=D,U=oe):(N[U]=W,N[G]=D,U=G);else if(oea(_e,D))N[U]=_e,N[oe]=D,U=oe;else break e}}return R}function a(N,R){var D=N.sortIndex-R.sortIndex;return D!==0?D:N.id-R.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,o=l.now();e.unstable_now=function(){return l.now()-o}}var u=[],s=[],f=1,c=null,d=3,h=!1,x=!1,g=!1,v=!1,y=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;function O(N){for(var R=n(s);R!==null;){if(R.callback===null)r(s);else if(R.startTime<=N)r(s),R.sortIndex=R.expirationTime,t(u,R);else break;R=n(s)}}function S(N){if(g=!1,O(N),!x)if(n(u)!==null)x=!0,w||(w=!0,M());else{var R=n(s);R!==null&&B(S,R.startTime-N)}}var w=!1,A=-1,E=5,j=-1;function $(){return v?!0:!(e.unstable_now()-jN&&$());){var U=c.callback;if(typeof U=="function"){c.callback=null,d=c.priorityLevel;var q=U(c.expirationTime<=N);if(N=e.unstable_now(),typeof q=="function"){c.callback=q,O(N),R=!0;break t}c===n(u)&&r(u),O(N)}else r(u);c=n(u)}if(c!==null)R=!0;else{var X=n(s);X!==null&&B(S,X.startTime-N),R=!1}}break e}finally{c=null,d=D,h=!1}R=void 0}}finally{R?M():w=!1}}}var M;if(typeof b=="function")M=function(){b(P)};else if(typeof MessageChannel<"u"){var k=new MessageChannel,z=k.port2;k.port1.onmessage=P,M=function(){z.postMessage(null)}}else M=function(){y(P,0)};function B(N,R){A=y(function(){N(e.unstable_now())},R)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_forceFrameRate=function(N){0>N||125U?(N.sortIndex=D,t(s,N),n(u)===null&&N===n(s)&&(g?(m(A),A=-1):g=!0,B(S,D-U))):(N.sortIndex=q,t(u,N),x||h||(x=!0,w||(w=!0,M()))),N},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(N){var R=d;return function(){var D=d;d=R;try{return N.apply(this,arguments)}finally{d=D}}}})(bw);gw.exports=bw;var WN=gw.exports,xw={exports:{}},Rt={};/**
* @license React
* react-dom.production.js
*
@@ -30,7 +30,7 @@ function TN(e,t){for(var n=0;n"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ow)}catch(e){console.error(e)}}Ow(),xw.exports=Rt;var ZN=xw.exports;/**
+ */var ZN=_;function Sw(e){var t="https://react.dev/errors/"+e;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ow)}catch(e){console.error(e)}}Ow(),xw.exports=Rt;var tM=xw.exports;/**
* @license React
* react-dom-client.production.js
*
@@ -38,15 +38,15 @@ function TN(e,t){for(var n=0;ngi||(e.current=Mp[gi],Mp[gi]=null,gi--)}function De(e,t){gi++,Mp[gi]=e.current,e.current=t}var In=Xn(null),Lo=Xn(null),Yr=Xn(null),ac=Xn(null);function ic(e,t){switch(De(Yr,t),De(Lo,e),De(In,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Cb(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Cb(t),e=F2(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}yt(In),De(In,e)}function qi(){yt(In),yt(Lo),yt(Yr)}function Cp(e){e.memoizedState!==null&&De(ac,e);var t=In.current,n=F2(t,e.type);t!==n&&(De(Lo,e),De(In,n))}function lc(e){Lo.current===e&&(yt(In),yt(Lo)),ac.current===e&&(yt(ac),Fo._currentValue=Ma)}var ah,Eg;function ga(e){if(ah===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ah=t&&t[1]||"",Eg=-1gi||(e.current=Cp[gi],Cp[gi]=null,gi--)}function De(e,t){gi++,Cp[gi]=e.current,e.current=t}var In=Xn(null),Lo=Xn(null),Yr=Xn(null),ac=Xn(null);function ic(e,t){switch(De(Yr,t),De(Lo,e),De(In,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Cb(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Cb(t),e=F2(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}mt(In),De(In,e)}function qi(){mt(In),mt(Lo),mt(Yr)}function $p(e){e.memoizedState!==null&&De(ac,e);var t=In.current,n=F2(t,e.type);t!==n&&(De(Lo,e),De(In,n))}function lc(e){Lo.current===e&&(mt(In),mt(Lo)),ac.current===e&&(mt(ac),Fo._currentValue=Ma)}var ih,Eg;function ga(e){if(ih===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ih=t&&t[1]||"",Eg=-1)":-1a||u[r]!==s[a]){var f=`
-`+u[r].replace(" at new "," at ");return e.displayName&&f.includes("")&&(f=f.replace("",e.displayName)),f}while(1<=r&&0<=a);break}}}finally{ih=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ga(n):""}function aM(e,t){switch(e.tag){case 26:case 27:case 5:return ga(e.type);case 16:return ga("Lazy");case 13:return e.child!==t&&t!==null?ga("Suspense Fallback"):ga("Suspense");case 19:return ga("SuspenseList");case 0:case 15:return lh(e.type,!1);case 11:return lh(e.type.render,!1);case 1:return lh(e.type,!0);case 31:return ga("Activity");default:return""}}function jg(e){try{var t="",n=null;do t+=aM(e,n),n=e,e=e.return;while(e);return t}catch(r){return`
+`+u[r].replace(" at new "," at ");return e.displayName&&f.includes("")&&(f=f.replace("",e.displayName)),f}while(1<=r&&0<=a);break}}}finally{lh=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ga(n):""}function oM(e,t){switch(e.tag){case 26:case 27:case 5:return ga(e.type);case 16:return ga("Lazy");case 13:return e.child!==t&&t!==null?ga("Suspense Fallback"):ga("Suspense");case 19:return ga("SuspenseList");case 0:case 15:return oh(e.type,!1);case 11:return oh(e.type.render,!1);case 1:return oh(e.type,!0);case 31:return ga("Activity");default:return""}}function jg(e){try{var t="",n=null;do t+=oM(e,n),n=e,e=e.return;while(e);return t}catch(r){return`
Error generating stack: `+r.message+`
-`+r.stack}}var $p=Object.prototype.hasOwnProperty,iv=st.unstable_scheduleCallback,oh=st.unstable_cancelCallback,iM=st.unstable_shouldYield,lM=st.unstable_requestPaint,tn=st.unstable_now,oM=st.unstable_getCurrentPriorityLevel,Mw=st.unstable_ImmediatePriority,Cw=st.unstable_UserBlockingPriority,oc=st.unstable_NormalPriority,uM=st.unstable_LowPriority,$w=st.unstable_IdlePriority,sM=st.log,cM=st.unstable_setDisableYieldValue,Lu=null,nn=null;function Lr(e){if(typeof sM=="function"&&cM(e),nn&&typeof nn.setStrictMode=="function")try{nn.setStrictMode(Lu,e)}catch{}}var rn=Math.clz32?Math.clz32:hM,fM=Math.log,dM=Math.LN2;function hM(e){return e>>>=0,e===0?32:31-(fM(e)/dM|0)|0}var cs=256,fs=262144,ds=4194304;function ba(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function If(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var a=0,i=e.suspendedLanes,l=e.pingedLanes;e=e.warmLanes;var o=r&134217727;return o!==0?(r=o&~i,r!==0?a=ba(r):(l&=o,l!==0?a=ba(l):n||(n=o&~e,n!==0&&(a=ba(n))))):(o=r&~i,o!==0?a=ba(o):l!==0?a=ba(l):n||(n=r&~e,n!==0&&(a=ba(n)))),a===0?0:t!==0&&t!==a&&!(t&i)&&(i=a&-a,n=t&-t,i>=n||i===32&&(n&4194048)!==0)?t:a}function ku(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function pM(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Pw(){var e=ds;return ds<<=1,!(ds&62914560)&&(ds=4194304),e}function uh(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Uu(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function yM(e,t,n,r,a,i){var l=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,u=e.expirationTimes,s=e.hiddenUpdates;for(n=l&~n;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var SM=/[\n"\\]/g;function yn(e){return e.replace(SM,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Rp(e,t,n,r,a,i,l,o){e.name="",l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.type=l:e.removeAttribute("type"),t!=null?l==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+dn(t)):e.value!==""+dn(t)&&(e.value=""+dn(t)):l!=="submit"&&l!=="reset"||e.removeAttribute("value"),t!=null?zp(e,l,dn(t)):n!=null?zp(e,l,dn(n)):r!=null&&e.removeAttribute("value"),a==null&&i!=null&&(e.defaultChecked=!!i),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+dn(o):e.removeAttribute("name")}function Hw(e,t,n,r,a,i,l,o){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||n!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Dp(e);return}n=n!=null?""+dn(n):"",t=t!=null?""+dn(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}r=r??a,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=o?e.checked:!!r,e.defaultChecked=!!r,l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.name=l),Dp(e)}function zp(e,t,n){t==="number"&&uc(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Pi(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Lp=!1;if(mr)try{var Ql={};Object.defineProperty(Ql,"passive",{get:function(){Lp=!0}}),window.addEventListener("test",Ql,Ql),window.removeEventListener("test",Ql,Ql)}catch{Lp=!1}var kr=null,fv=null,Hs=null;function Vw(){if(Hs)return Hs;var e,t=fv,n=t.length,r,a="value"in kr?kr.value:kr.textContent,i=a.length;for(e=0;e=So),Lg=" ",kg=!1;function Fw(e,t){switch(e){case"keyup":return FM.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Si=!1;function WM(e,t){switch(e){case"compositionend":return Qw(t);case"keypress":return t.which!==32?null:(kg=!0,Lg);case"textInput":return e=t.data,e===Lg&&kg?null:e;default:return null}}function ZM(e,t){if(Si)return e==="compositionend"||!hv&&Fw(e,t)?(e=Vw(),Hs=fv=kr=null,Si=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Gg(n)}}function eA(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?eA(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function tA(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=uc(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=uc(e.document)}return t}function pv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var lC=mr&&"documentMode"in document&&11>=document.documentMode,Oi=null,kp=null,wo=null,Up=!1;function Xg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Up||Oi==null||Oi!==uc(r)||(r=Oi,"selectionStart"in r&&pv(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),wo&&Io(wo,r)||(wo=r,r=Ec(kp,"onSelect"),0>=l,a-=l,Bn=1<<32-rn(t)+a|n<E?(j=A,A=null):j=A.sibling;var $=d(y,A,b[E],O);if($===null){A===null&&(A=j);break}e&&A&&$.alternate===null&&t(y,A),m=i($,m,E),w===null?S=$:w.sibling=$,w=$,A=j}if(E===b.length)return n(y,A),he&&nr(y,E),S;if(A===null){for(;EE?(j=A,A=null):j=A.sibling;var P=d(y,A,$.value,O);if(P===null){A===null&&(A=j);break}e&&A&&P.alternate===null&&t(y,A),m=i(P,m,E),w===null?S=P:w.sibling=P,w=P,A=j}if($.done)return n(y,A),he&&nr(y,E),S;if(A===null){for(;!$.done;E++,$=b.next())$=c(y,$.value,O),$!==null&&(m=i($,m,E),w===null?S=$:w.sibling=$,w=$);return he&&nr(y,E),S}for(A=r(A);!$.done;E++,$=b.next())$=h(A,y,E,$.value,O),$!==null&&(e&&$.alternate!==null&&A.delete($.key===null?E:$.key),m=i($,m,E),w===null?S=$:w.sibling=$,w=$);return e&&A.forEach(function(M){return t(y,M)}),he&&nr(y,E),S}function v(y,m,b,O){if(typeof b=="object"&&b!==null&&b.type===vi&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case ss:e:{for(var S=b.key;m!==null;){if(m.key===S){if(S=b.type,S===vi){if(m.tag===7){n(y,m.sibling),O=a(m,b.props.children),O.return=y,y=O;break e}}else if(m.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Mr&&xa(S)===m.type){n(y,m.sibling),O=a(m,b.props),Zl(O,b),O.return=y,y=O;break e}n(y,m);break}else t(y,m);m=m.sibling}b.type===vi?(O=Ca(b.props.children,y.mode,O,b.key),O.return=y,y=O):(O=Gs(b.type,b.key,b.props,null,y.mode,O),Zl(O,b),O.return=y,y=O)}return l(y);case po:e:{for(S=b.key;m!==null;){if(m.key===S)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){n(y,m.sibling),O=a(m,b.children||[]),O.return=y,y=O;break e}else{n(y,m);break}else t(y,m);m=m.sibling}O=vh(b,y.mode,O),O.return=y,y=O}return l(y);case Mr:return b=xa(b),v(y,m,b,O)}if(yo(b))return x(y,m,b,O);if(Fl(b)){if(S=Fl(b),typeof S!="function")throw Error(I(150));return b=S.call(b),g(y,m,b,O)}if(typeof b.then=="function")return v(y,m,ms(b),O);if(b.$$typeof===ar)return v(y,m,ys(y,b),O);vs(y,b)}return typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint"?(b=""+b,m!==null&&m.tag===6?(n(y,m.sibling),O=a(m,b),O.return=y,y=O):(n(y,m),O=mh(b,y.mode,O),O.return=y,y=O),l(y)):n(y,m)}return function(y,m,b,O){try{Go=0;var S=v(y,m,b,O);return zi=null,S}catch(A){if(A===Tl||A===Vf)throw A;var w=Zt(29,A,null,y.mode);return w.lanes=O,w.return=y,w}finally{}}}var Ia=mA(!0),vA=mA(!1),Cr=!1;function wv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Vp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Vr(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Kr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,me&2){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=cc(e),uA(e,null,n),t}return Xf(e,r,t,n),cc(e)}function _o(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rw(e,n)}}function bh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var a=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};i===null?a=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?a=i=t:i=i.next=t}else a=i=t;n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Kp=!1;function Eo(){if(Kp){var e=Ri;if(e!==null)throw e}}function jo(e,t,n,r){Kp=!1;var a=e.updateQueue;Cr=!1;var i=a.firstBaseUpdate,l=a.lastBaseUpdate,o=a.shared.pending;if(o!==null){a.shared.pending=null;var u=o,s=u.next;u.next=null,l===null?i=s:l.next=s,l=u;var f=e.alternate;f!==null&&(f=f.updateQueue,o=f.lastBaseUpdate,o!==l&&(o===null?f.firstBaseUpdate=s:o.next=s,f.lastBaseUpdate=u))}if(i!==null){var c=a.baseState;l=0,f=s=u=null,o=i;do{var d=o.lane&-536870913,h=d!==o.lane;if(h?(fe&d)===d:(r&d)===d){d!==0&&d===Xi&&(Kp=!0),f!==null&&(f=f.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var x=e,g=o;d=t;var v=n;switch(g.tag){case 1:if(x=g.payload,typeof x=="function"){c=x.call(v,c,d);break e}c=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=g.payload,d=typeof x=="function"?x.call(v,c,d):x,d==null)break e;c=Ie({},c,d);break e;case 2:Cr=!0}}d=o.callback,d!==null&&(e.flags|=64,h&&(e.flags|=8192),h=a.callbacks,h===null?a.callbacks=[d]:h.push(d))}else h={lane:d,tag:o.tag,payload:o.payload,callback:o.callback,next:null},f===null?(s=f=h,u=c):f=f.next=h,l|=d;if(o=o.next,o===null){if(o=a.shared.pending,o===null)break;h=o,o=h.next,h.next=null,a.lastBaseUpdate=h,a.shared.pending=null}}while(!0);f===null&&(u=c),a.baseState=u,a.firstBaseUpdate=s,a.lastBaseUpdate=f,i===null&&(a.shared.lanes=0),ia|=l,e.lanes=l,e.memoizedState=c}}function gA(e,t){if(typeof e!="function")throw Error(I(191,e));e.call(t)}function bA(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ei?i:8;var l=J.T,o={};J.T=o,zv(e,!1,t,n);try{var u=a(),s=J.S;if(s!==null&&s(o,u),u!==null&&typeof u=="object"&&typeof u.then=="function"){var f=yC(u,r);To(e,t,f,an(e))}else To(e,t,r,an(e))}catch(c){To(e,t,{then:function(){},status:"rejected",reason:c},an())}finally{be.p=i,l!==null&&o.types!==null&&(l.types=o.types),J.T=l}}function SC(){}function Jp(e,t,n,r){if(e.tag!==5)throw Error(I(476));var a=GA(e).queue;qA(e,a,t,Ma,n===null?SC:function(){return YA(e),n(r)})}function GA(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Ma,baseState:Ma,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:Ma},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function YA(e){var t=GA(e);t.next===null&&(t=e.alternate.memoizedState),To(e,t.next.queue,{},an())}function Rv(){return At(Fo)}function XA(){return Qe().memoizedState}function VA(){return Qe().memoizedState}function OC(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=an();e=Vr(n);var r=Kr(t,e,n);r!==null&&(Ht(r,t,n),_o(r,t,n)),t={cache:xv()},e.payload=t;return}t=t.return}}function wC(e,t,n){var r=an();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Wf(e)?FA(t,n):(n=mv(e,t,n,r),n!==null&&(Ht(n,e,r),QA(n,t,r)))}function KA(e,t,n){var r=an();To(e,t,n,r)}function To(e,t,n,r){var a={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Wf(e))FA(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,o=i(l,n);if(a.hasEagerState=!0,a.eagerState=o,ln(o,l))return Xf(e,t,a,0),$e===null&&Yf(),!1}catch{}finally{}if(n=mv(e,t,a,r),n!==null)return Ht(n,e,r),QA(n,t,r),!0}return!1}function zv(e,t,n,r){if(r={lane:2,revertLane:Yv(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Wf(e)){if(t)throw Error(I(479))}else t=mv(e,n,r,2),t!==null&&Ht(t,e,2)}function Wf(e){var t=e.alternate;return e===ie||t!==null&&t===ie}function FA(e,t){Bi=mc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function QA(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rw(e,n)}}var Xo={readContext:At,use:Ff,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useLayoutEffect:Xe,useInsertionEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useSyncExternalStore:Xe,useId:Xe,useHostTransitionStatus:Xe,useFormState:Xe,useActionState:Xe,useOptimistic:Xe,useMemoCache:Xe,useCacheRefresh:Xe};Xo.useEffectEvent=Xe;var WA={readContext:At,use:Ff,useCallback:function(e,t){return $t().memoizedState=[e,t===void 0?null:t],e},useContext:At,useEffect:ob,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Vs(4194308,4,LA.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vs(4194308,4,e,t)},useInsertionEffect:function(e,t){Vs(4,2,e,t)},useMemo:function(e,t){var n=$t();t=t===void 0?null:t;var r=e();if(Ha){Lr(!0);try{e()}finally{Lr(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=$t();if(n!==void 0){var a=n(t);if(Ha){Lr(!0);try{n(t)}finally{Lr(!1)}}}else a=t;return r.memoizedState=r.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=wC.bind(null,ie,e),[r.memoizedState,e]},useRef:function(e){var t=$t();return e={current:e},t.memoizedState=e},useState:function(e){e=Wp(e);var t=e.queue,n=KA.bind(null,ie,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Pv,useDeferredValue:function(e,t){var n=$t();return Dv(n,e,t)},useTransition:function(){var e=Wp(!1);return e=qA.bind(null,ie,e.queue,!0,!1),$t().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=ie,a=$t();if(he){if(n===void 0)throw Error(I(407));n=n()}else{if(n=t(),$e===null)throw Error(I(349));fe&127||AA(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,ob(EA.bind(null,r,i,e),[e]),r.flags|=2048,Ki(9,{destroy:void 0},_A.bind(null,r,i,n,t),null),n},useId:function(){var e=$t(),t=$e.identifierPrefix;if(he){var n=Ln,r=Bn;n=(r&~(1<<32-rn(r)-1)).toString(32)+n,t="_"+t+"R_"+n,n=vc++,0<\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof r.is=="string"?l.createElement("select",{is:r.is}):l.createElement("select"),r.multiple?i.multiple=!0:r.size&&(i.size=r.size);break;default:i=typeof r.is=="string"?l.createElement(a,{is:r.is}):l.createElement(a)}}i[St]=t,i[Gt]=r;e:for(l=t.child;l!==null;){if(l.tag===5||l.tag===6)i.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break e;for(;l.sibling===null;){if(l.return===null||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}t.stateNode=i;e:switch(Et(i,a,r),a){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&Wn(t)}}return ze(t),jh(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Wn(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(I(166));if(e=Yr.current,oi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ot,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[St]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||K2(e.nodeValue,n)),e||ra(t,!0)}else e=jc(e).createTextNode(r),e[St]=t,t.stateNode=e}return ze(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=oi(t),n!==null){if(e===null){if(!r)throw Error(I(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(557));e[St]=t}else ka(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ze(t),e=!1}else n=gh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Wt(t),t):(Wt(t),null);if(t.flags&128)throw Error(I(558))}return ze(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=oi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(I(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(I(317));a[St]=t}else ka(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ze(t),a=!1}else a=gh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Wt(t),t):(Wt(t),null)}return Wt(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),i=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool),i!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),gs(t,t.updateQueue),ze(t),null);case 4:return qi(),e===null&&Xv(t.stateNode.containerInfo),ze(t),null;case 10:return fr(t.type),ze(t),null;case 19:if(yt(Fe),r=t.memoizedState,r===null)return ze(t),null;if(a=(t.flags&128)!==0,i=r.rendering,i===null)if(a)Jl(r,!1);else{if(Ke!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=yc(e),i!==null){for(t.flags|=128,Jl(r,!1),e=i.updateQueue,t.updateQueue=e,gs(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)sA(n,e),n=n.sibling;return De(Fe,Fe.current&1|2),he&&nr(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&tn()>Sc&&(t.flags|=128,a=!0,Jl(r,!1),t.lanes=4194304)}else{if(!a)if(e=yc(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,gs(t,e),Jl(r,!0),r.tail===null&&r.tailMode==="hidden"&&!i.alternate&&!he)return ze(t),null}else 2*tn()-r.renderingStartTime>Sc&&n!==536870912&&(t.flags|=128,a=!0,Jl(r,!1),t.lanes=4194304);r.isBackwards?(i.sibling=t.child,t.child=i):(e=r.last,e!==null?e.sibling=i:t.child=i,r.last=i)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=tn(),e.sibling=null,n=Fe.current,De(Fe,a?n&1|2:n&1),he&&nr(t,r.treeForkCount),e):(ze(t),null);case 22:case 23:return Wt(t),Av(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),n=t.updateQueue,n!==null&&gs(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&yt($a),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),fr(tt),ze(t),null;case 25:return null;case 30:return null}throw Error(I(156,t.tag))}function TC(e,t){switch(bv(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fr(tt),qi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return lc(t),null;case 31:if(t.memoizedState!==null){if(Wt(t),t.alternate===null)throw Error(I(340));ka()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Wt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(I(340));ka()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return yt(Fe),null;case 4:return qi(),null;case 10:return fr(t.type),null;case 22:case 23:return Wt(t),Av(),e!==null&&yt($a),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fr(tt),null;case 25:return null;default:return null}}function s2(e,t){switch(bv(t),t.tag){case 3:fr(tt),qi();break;case 26:case 27:case 5:lc(t);break;case 4:qi();break;case 31:t.memoizedState!==null&&Wt(t);break;case 13:Wt(t);break;case 19:yt(Fe);break;case 10:fr(t.type);break;case 22:case 23:Wt(t),Av(),e!==null&&yt($a);break;case 24:fr(tt)}}function Yu(e,t){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var a=r.next;n=a;do{if((n.tag&e)===e){r=void 0;var i=n.create,l=n.inst;r=i(),l.destroy=r}n=n.next}while(n!==a)}}catch(o){we(t,t.return,o)}}function aa(e,t,n){try{var r=t.updateQueue,a=r!==null?r.lastEffect:null;if(a!==null){var i=a.next;r=i;do{if((r.tag&e)===e){var l=r.inst,o=l.destroy;if(o!==void 0){l.destroy=void 0,a=t;var u=n,s=o;try{s()}catch(f){we(a,u,f)}}}r=r.next}while(r!==i)}}catch(f){we(t,t.return,f)}}function c2(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{bA(t,n)}catch(r){we(e,e.return,r)}}}function f2(e,t,n){n.props=qa(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){we(e,t,r)}}function No(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n=="function"?e.refCleanup=n(r):n.current=r}}catch(a){we(e,t,a)}}function kn(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(a){we(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){we(e,t,a)}else n.current=null}function d2(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(a){we(e,e.return,a)}}function Th(e,t,n){try{var r=e.stateNode;QC(r,e.type,n,t),r[Gt]=t}catch(a){we(e,e.return,a)}}function h2(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ua(e.type)||e.tag===4}function Nh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||h2(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ua(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ay(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ir));else if(r!==4&&(r===27&&ua(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(ay(e,t,n),e=e.sibling;e!==null;)ay(e,t,n),e=e.sibling}function xc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&ua(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(xc(e,t,n),e=e.sibling;e!==null;)xc(e,t,n),e=e.sibling}function p2(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);Et(t,r,n),t[St]=e,t[Gt]=n}catch(i){we(e,e.return,i)}}var rr=!1,et=!1,Mh=!1,xb=typeof WeakSet=="function"?WeakSet:Set,dt=null;function NC(e,t){if(e=e.containerInfo,fy=Cc,e=tA(e),pv(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,o=-1,u=-1,s=0,f=0,c=e,d=null;t:for(;;){for(var h;c!==n||a!==0&&c.nodeType!==3||(o=l+a),c!==i||r!==0&&c.nodeType!==3||(u=l+r),c.nodeType===3&&(l+=c.nodeValue.length),(h=c.firstChild)!==null;)d=c,c=h;for(;;){if(c===e)break t;if(d===n&&++s===a&&(o=l),d===i&&++f===r&&(u=l),(h=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=h}n=o===-1||u===-1?null:{start:o,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(dy={focusedElem:e,selectionRange:n},Cc=!1,dt=t;dt!==null;)if(t=dt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,dt=e;else for(;dt!==null;){switch(t=dt,i=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n title"))),Et(i,r,n),i[St]=e,ht(i),r=i;break e;case"link":var l=Ub("link","href",a).get(r+(n.href||""));if(l){for(var o=0;ov&&(l=v,v=g,g=l);var y=Yg(o,g),m=Yg(o,v);if(y&&m&&(h.rangeCount!==1||h.anchorNode!==y.node||h.anchorOffset!==y.offset||h.focusNode!==m.node||h.focusOffset!==m.offset)){var b=c.createRange();b.setStart(y.node,y.offset),h.removeAllRanges(),g>v?(h.addRange(b),h.extend(m.node,m.offset)):(b.setEnd(m.node,m.offset),h.addRange(b))}}}}for(c=[],h=o;h=h.parentNode;)h.nodeType===1&&c.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;on?32:n,J.T=null,n=oy,oy=null;var i=Qr,l=dr;if(ot=0,Qi=Qr=null,dr=0,me&6)throw Error(I(331));var o=me;if(me|=4,_2(i.current),O2(i,i.current,l,n),me=o,Xu(0,!1),nn&&typeof nn.onPostCommitFiberRoot=="function")try{nn.onPostCommitFiberRoot(Lu,i)}catch{}return!0}finally{be.p=a,J.T=r,U2(e,t)}}function Ab(e,t,n){t=mn(n,t),t=ty(e.stateNode,t,2),e=Kr(e,t,2),e!==null&&(Uu(e,2),Vn(e))}function we(e,t,n){if(e.tag===3)Ab(e,e,n);else for(;t!==null;){if(t.tag===3){Ab(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Fr===null||!Fr.has(r))){e=mn(n,e),n=n2(2),r=Kr(t,n,2),r!==null&&(r2(n,r,t,e),Uu(r,2),Vn(r));break}}t=t.return}}function $h(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new $C;var a=new Set;r.set(t,a)}else a=r.get(t),a===void 0&&(a=new Set,r.set(t,a));a.has(n)||(Hv=!0,a.add(n),e=BC.bind(null,e,t,n),t.then(e,e))}function BC(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,$e===e&&(fe&n)===n&&(Ke===4||Ke===3&&(fe&62914560)===fe&&300>tn()-Zf?!(me&2)&&Wi(e,0):qv|=n,Fi===fe&&(Fi=0)),Vn(e)}function H2(e,t){t===0&&(t=Pw()),e=ei(e,t),e!==null&&(Uu(e,t),Vn(e))}function LC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),H2(e,n)}function kC(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(I(314))}r!==null&&r.delete(t),H2(e,n)}function UC(e,t){return iv(e,t)}var Ac=null,mi=null,sy=!1,_c=!1,Ph=!1,Hr=0;function Vn(e){e!==mi&&e.next===null&&(mi===null?Ac=mi=e:mi=mi.next=e),_c=!0,sy||(sy=!0,HC())}function Xu(e,t){if(!Ph&&_c){Ph=!0;do for(var n=!1,r=Ac;r!==null;){if(e!==0){var a=r.pendingLanes;if(a===0)var i=0;else{var l=r.suspendedLanes,o=r.pingedLanes;i=(1<<31-rn(42|e)+1)-1,i&=a&~(l&~o),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,_b(r,i))}else i=fe,i=If(r,r===$e?i:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(i&3)||ku(r,i)||(n=!0,_b(r,i));r=r.next}while(n);Ph=!1}}function IC(){q2()}function q2(){_c=sy=!1;var e=0;Hr!==0&&ZC()&&(e=Hr);for(var t=tn(),n=null,r=Ac;r!==null;){var a=r.next,i=G2(r,t);i===0?(r.next=null,n===null?Ac=a:n.next=a,a===null&&(mi=n)):(n=r,(e!==0||i&3)&&(_c=!0)),r=a}ot!==0&&ot!==5||Xu(e),Hr!==0&&(Hr=0)}function G2(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0o)break;var f=u.transferSize,c=u.initiatorType;f&&Mb(c)&&(u=u.responseEnd,l+=f*(u"u"?null:document;function J2(e,t,n){var r=Ml;if(r&&typeof t=="string"&&t){var a=yn(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),Bb.has(a)||(Bb.add(a),e={rel:e,crossOrigin:n,href:t},r.querySelector(a)===null&&(t=r.createElement("link"),Et(t,"link",e),ht(t),r.head.appendChild(t)))}}function o$(e){Ar.D(e),J2("dns-prefetch",e,null)}function u$(e,t){Ar.C(e,t),J2("preconnect",e,t)}function s$(e,t,n){Ar.L(e,t,n);var r=Ml;if(r&&e&&t){var a='link[rel="preload"][as="'+yn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+yn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+yn(n.imageSizes)+'"]')):a+='[href="'+yn(e)+'"]';var i=a;switch(t){case"style":i=Zi(e);break;case"script":i=Cl(e)}On.has(i)||(e=Ie({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),On.set(i,e),r.querySelector(a)!==null||t==="style"&&r.querySelector(Vu(i))||t==="script"&&r.querySelector(Ku(i))||(t=r.createElement("link"),Et(t,"link",e),ht(t),r.head.appendChild(t)))}}function c$(e,t){Ar.m(e,t);var n=Ml;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+yn(r)+'"][href="'+yn(e)+'"]',i=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Cl(e)}if(!On.has(i)&&(e=Ie({rel:"modulepreload",href:e},t),On.set(i,e),n.querySelector(a)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ku(i)))return}r=n.createElement("link"),Et(r,"link",e),ht(r),n.head.appendChild(r)}}}function f$(e,t,n){Ar.S(e,t,n);var r=Ml;if(r&&e){var a=$i(r).hoistableStyles,i=Zi(e);t=t||"default";var l=a.get(i);if(!l){var o={loading:0,preload:null};if(l=r.querySelector(Vu(i)))o.loading=5;else{e=Ie({rel:"stylesheet",href:e,"data-precedence":t},n),(n=On.get(i))&&Vv(e,n);var u=l=r.createElement("link");ht(u),Et(u,"link",e),u._p=new Promise(function(s,f){u.onload=s,u.onerror=f}),u.addEventListener("load",function(){o.loading|=1}),u.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Ws(l,t,r)}l={type:"stylesheet",instance:l,count:1,state:o},a.set(i,l)}}}function d$(e,t){Ar.X(e,t);var n=Ml;if(n&&e){var r=$i(n).hoistableScripts,a=Cl(e),i=r.get(a);i||(i=n.querySelector(Ku(a)),i||(e=Ie({src:e,async:!0},t),(t=On.get(a))&&Kv(e,t),i=n.createElement("script"),ht(i),Et(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function h$(e,t){Ar.M(e,t);var n=Ml;if(n&&e){var r=$i(n).hoistableScripts,a=Cl(e),i=r.get(a);i||(i=n.querySelector(Ku(a)),i||(e=Ie({src:e,async:!0,type:"module"},t),(t=On.get(a))&&Kv(e,t),i=n.createElement("script"),ht(i),Et(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function Lb(e,t,n,r){var a=(a=Yr.current)?Tc(a):null;if(!a)throw Error(I(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Zi(n.href),n=$i(a).hoistableStyles,r=n.get(t),r||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Zi(n.href);var i=$i(a).hoistableStyles,l=i.get(e);if(l||(a=a.ownerDocument||a,l={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,l),(i=a.querySelector(Vu(e)))&&!i._p&&(l.instance=i,l.state.loading=5),On.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},On.set(e,n),i||p$(a,e,n,l.state))),t&&r===null)throw Error(I(528,""));return l}if(t&&r!==null)throw Error(I(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Cl(n),n=$i(a).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(I(444,e))}}function Zi(e){return'href="'+yn(e)+'"'}function Vu(e){return'link[rel="stylesheet"]['+e+"]"}function e_(e){return Ie({},e,{"data-precedence":e.precedence,precedence:null})}function p$(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),Et(t,"link",n),ht(t),e.head.appendChild(t))}function Cl(e){return'[src="'+yn(e)+'"]'}function Ku(e){return"script[async]"+e}function kb(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+yn(n.href)+'"]');if(r)return t.instance=r,ht(r),r;var a=Ie({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),ht(r),Et(r,"style",a),Ws(r,n.precedence,e),t.instance=r;case"stylesheet":a=Zi(n.href);var i=e.querySelector(Vu(a));if(i)return t.state.loading|=4,t.instance=i,ht(i),i;r=e_(n),(a=On.get(a))&&Vv(r,a),i=(e.ownerDocument||e).createElement("link"),ht(i);var l=i;return l._p=new Promise(function(o,u){l.onload=o,l.onerror=u}),Et(i,"link",r),t.state.loading|=4,Ws(i,n.precedence,e),t.instance=i;case"script":return i=Cl(n.src),(a=e.querySelector(Ku(i)))?(t.instance=a,ht(a),a):(r=n,(a=On.get(i))&&(r=Ie({},n),Kv(r,a)),e=e.ownerDocument||e,a=e.createElement("script"),ht(a),Et(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(I(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Ws(r,n.precedence,e));return t.instance}function Ws(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,i=a,l=0;l title"):null)}function y$(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function t_(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function m$(e,t,n,r){if(n.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&!(n.state.loading&4)){if(n.instance===null){var a=Zi(r.href),i=t.querySelector(Vu(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Nc.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,ht(i);return}i=t.ownerDocument||t,r=e_(r),(a=On.get(a))&&Vv(r,a),i=i.createElement("link"),ht(i);var l=i;l._p=new Promise(function(o,u){l.onload=o,l.onerror=u}),Et(i,"link",r),n.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Nc.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var kh=0;function v$(e,t){return e.stylesheets&&e.count===0&&Js(e,e.stylesheets),0kh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(a)}}:null}function Nc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Js(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Mc=null;function Js(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Mc=new Map,t.forEach(g$,e),Mc=null,Nc.call(e))}function g$(e,t){if(!(t.state.loading&4)){var n=Mc.get(e);if(n)var r=n.get(null);else{n=new Map,Mc.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s_)}catch(e){console.error(e)}}s_(),vw.exports=kf;var E$=vw.exports;const j$=Me(E$);/**
+`+r.stack}}var Pp=Object.prototype.hasOwnProperty,iv=st.unstable_scheduleCallback,uh=st.unstable_cancelCallback,uM=st.unstable_shouldYield,sM=st.unstable_requestPaint,tn=st.unstable_now,cM=st.unstable_getCurrentPriorityLevel,Mw=st.unstable_ImmediatePriority,Cw=st.unstable_UserBlockingPriority,oc=st.unstable_NormalPriority,fM=st.unstable_LowPriority,$w=st.unstable_IdlePriority,dM=st.log,hM=st.unstable_setDisableYieldValue,Lu=null,nn=null;function Lr(e){if(typeof dM=="function"&&hM(e),nn&&typeof nn.setStrictMode=="function")try{nn.setStrictMode(Lu,e)}catch{}}var rn=Math.clz32?Math.clz32:mM,pM=Math.log,yM=Math.LN2;function mM(e){return e>>>=0,e===0?32:31-(pM(e)/yM|0)|0}var cs=256,fs=262144,ds=4194304;function ba(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Hf(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var a=0,i=e.suspendedLanes,l=e.pingedLanes;e=e.warmLanes;var o=r&134217727;return o!==0?(r=o&~i,r!==0?a=ba(r):(l&=o,l!==0?a=ba(l):n||(n=o&~e,n!==0&&(a=ba(n))))):(o=r&~i,o!==0?a=ba(o):l!==0?a=ba(l):n||(n=r&~e,n!==0&&(a=ba(n)))),a===0?0:t!==0&&t!==a&&!(t&i)&&(i=a&-a,n=t&-t,i>=n||i===32&&(n&4194048)!==0)?t:a}function ku(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function vM(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Pw(){var e=ds;return ds<<=1,!(ds&62914560)&&(ds=4194304),e}function sh(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Uu(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function gM(e,t,n,r,a,i){var l=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,u=e.expirationTimes,s=e.hiddenUpdates;for(n=l&~n;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var AM=/[\n"\\]/g;function yn(e){return e.replace(AM,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function zp(e,t,n,r,a,i,l,o){e.name="",l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.type=l:e.removeAttribute("type"),t!=null?l==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+dn(t)):e.value!==""+dn(t)&&(e.value=""+dn(t)):l!=="submit"&&l!=="reset"||e.removeAttribute("value"),t!=null?Bp(e,l,dn(t)):n!=null?Bp(e,l,dn(n)):r!=null&&e.removeAttribute("value"),a==null&&i!=null&&(e.defaultChecked=!!i),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+dn(o):e.removeAttribute("name")}function Hw(e,t,n,r,a,i,l,o){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||n!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Rp(e);return}n=n!=null?""+dn(n):"",t=t!=null?""+dn(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}r=r??a,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=o?e.checked:!!r,e.defaultChecked=!!r,l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.name=l),Rp(e)}function Bp(e,t,n){t==="number"&&uc(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Pi(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),kp=!1;if(mr)try{var Ql={};Object.defineProperty(Ql,"passive",{get:function(){kp=!0}}),window.addEventListener("test",Ql,Ql),window.removeEventListener("test",Ql,Ql)}catch{kp=!1}var kr=null,fv=null,Hs=null;function Vw(){if(Hs)return Hs;var e,t=fv,n=t.length,r,a="value"in kr?kr.value:kr.textContent,i=a.length;for(e=0;e=So),Lg=" ",kg=!1;function Fw(e,t){switch(e){case"keyup":return ZM.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Si=!1;function eC(e,t){switch(e){case"compositionend":return Qw(t);case"keypress":return t.which!==32?null:(kg=!0,Lg);case"textInput":return e=t.data,e===Lg&&kg?null:e;default:return null}}function tC(e,t){if(Si)return e==="compositionend"||!hv&&Fw(e,t)?(e=Vw(),Hs=fv=kr=null,Si=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Gg(n)}}function eA(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?eA(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function tA(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=uc(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=uc(e.document)}return t}function pv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var sC=mr&&"documentMode"in document&&11>=document.documentMode,Oi=null,Up=null,wo=null,Ip=!1;function Xg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ip||Oi==null||Oi!==uc(r)||(r=Oi,"selectionStart"in r&&pv(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),wo&&Io(wo,r)||(wo=r,r=Ec(Up,"onSelect"),0>=l,a-=l,Bn=1<<32-rn(t)+a|n<E?(j=A,A=null):j=A.sibling;var $=d(y,A,b[E],O);if($===null){A===null&&(A=j);break}e&&A&&$.alternate===null&&t(y,A),m=i($,m,E),w===null?S=$:w.sibling=$,w=$,A=j}if(E===b.length)return n(y,A),he&&nr(y,E),S;if(A===null){for(;EE?(j=A,A=null):j=A.sibling;var P=d(y,A,$.value,O);if(P===null){A===null&&(A=j);break}e&&A&&P.alternate===null&&t(y,A),m=i(P,m,E),w===null?S=P:w.sibling=P,w=P,A=j}if($.done)return n(y,A),he&&nr(y,E),S;if(A===null){for(;!$.done;E++,$=b.next())$=c(y,$.value,O),$!==null&&(m=i($,m,E),w===null?S=$:w.sibling=$,w=$);return he&&nr(y,E),S}for(A=r(A);!$.done;E++,$=b.next())$=h(A,y,E,$.value,O),$!==null&&(e&&$.alternate!==null&&A.delete($.key===null?E:$.key),m=i($,m,E),w===null?S=$:w.sibling=$,w=$);return e&&A.forEach(function(M){return t(y,M)}),he&&nr(y,E),S}function v(y,m,b,O){if(typeof b=="object"&&b!==null&&b.type===vi&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case ss:e:{for(var S=b.key;m!==null;){if(m.key===S){if(S=b.type,S===vi){if(m.tag===7){n(y,m.sibling),O=a(m,b.props.children),O.return=y,y=O;break e}}else if(m.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Mr&&xa(S)===m.type){n(y,m.sibling),O=a(m,b.props),Zl(O,b),O.return=y,y=O;break e}n(y,m);break}else t(y,m);m=m.sibling}b.type===vi?(O=Ca(b.props.children,y.mode,O,b.key),O.return=y,y=O):(O=Gs(b.type,b.key,b.props,null,y.mode,O),Zl(O,b),O.return=y,y=O)}return l(y);case po:e:{for(S=b.key;m!==null;){if(m.key===S)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){n(y,m.sibling),O=a(m,b.children||[]),O.return=y,y=O;break e}else{n(y,m);break}else t(y,m);m=m.sibling}O=gh(b,y.mode,O),O.return=y,y=O}return l(y);case Mr:return b=xa(b),v(y,m,b,O)}if(yo(b))return x(y,m,b,O);if(Fl(b)){if(S=Fl(b),typeof S!="function")throw Error(I(150));return b=S.call(b),g(y,m,b,O)}if(typeof b.then=="function")return v(y,m,ms(b),O);if(b.$$typeof===ar)return v(y,m,ys(y,b),O);vs(y,b)}return typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint"?(b=""+b,m!==null&&m.tag===6?(n(y,m.sibling),O=a(m,b),O.return=y,y=O):(n(y,m),O=vh(b,y.mode,O),O.return=y,y=O),l(y)):n(y,m)}return function(y,m,b,O){try{Go=0;var S=v(y,m,b,O);return zi=null,S}catch(A){if(A===Tl||A===Kf)throw A;var w=Zt(29,A,null,y.mode);return w.lanes=O,w.return=y,w}finally{}}}var Ia=mA(!0),vA=mA(!1),Cr=!1;function wv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Kp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Vr(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Kr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,me&2){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=cc(e),uA(e,null,n),t}return Vf(e,r,t,n),cc(e)}function _o(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rw(e,n)}}function xh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var a=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};i===null?a=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?a=i=t:i=i.next=t}else a=i=t;n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Fp=!1;function Eo(){if(Fp){var e=Ri;if(e!==null)throw e}}function jo(e,t,n,r){Fp=!1;var a=e.updateQueue;Cr=!1;var i=a.firstBaseUpdate,l=a.lastBaseUpdate,o=a.shared.pending;if(o!==null){a.shared.pending=null;var u=o,s=u.next;u.next=null,l===null?i=s:l.next=s,l=u;var f=e.alternate;f!==null&&(f=f.updateQueue,o=f.lastBaseUpdate,o!==l&&(o===null?f.firstBaseUpdate=s:o.next=s,f.lastBaseUpdate=u))}if(i!==null){var c=a.baseState;l=0,f=s=u=null,o=i;do{var d=o.lane&-536870913,h=d!==o.lane;if(h?(de&d)===d:(r&d)===d){d!==0&&d===Xi&&(Fp=!0),f!==null&&(f=f.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var x=e,g=o;d=t;var v=n;switch(g.tag){case 1:if(x=g.payload,typeof x=="function"){c=x.call(v,c,d);break e}c=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=g.payload,d=typeof x=="function"?x.call(v,c,d):x,d==null)break e;c=Ie({},c,d);break e;case 2:Cr=!0}}d=o.callback,d!==null&&(e.flags|=64,h&&(e.flags|=8192),h=a.callbacks,h===null?a.callbacks=[d]:h.push(d))}else h={lane:d,tag:o.tag,payload:o.payload,callback:o.callback,next:null},f===null?(s=f=h,u=c):f=f.next=h,l|=d;if(o=o.next,o===null){if(o=a.shared.pending,o===null)break;h=o,o=h.next,h.next=null,a.lastBaseUpdate=h,a.shared.pending=null}}while(!0);f===null&&(u=c),a.baseState=u,a.firstBaseUpdate=s,a.lastBaseUpdate=f,i===null&&(a.shared.lanes=0),ia|=l,e.lanes=l,e.memoizedState=c}}function gA(e,t){if(typeof e!="function")throw Error(I(191,e));e.call(t)}function bA(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ei?i:8;var l=J.T,o={};J.T=o,zv(e,!1,t,n);try{var u=a(),s=J.S;if(s!==null&&s(o,u),u!==null&&typeof u=="object"&&typeof u.then=="function"){var f=gC(u,r);To(e,t,f,an(e))}else To(e,t,r,an(e))}catch(c){To(e,t,{then:function(){},status:"rejected",reason:c},an())}finally{be.p=i,l!==null&&o.types!==null&&(l.types=o.types),J.T=l}}function AC(){}function ey(e,t,n,r){if(e.tag!==5)throw Error(I(476));var a=GA(e).queue;qA(e,a,t,Ma,n===null?AC:function(){return YA(e),n(r)})}function GA(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Ma,baseState:Ma,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:Ma},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function YA(e){var t=GA(e);t.next===null&&(t=e.alternate.memoizedState),To(e,t.next.queue,{},an())}function Rv(){return At(Fo)}function XA(){return Qe().memoizedState}function VA(){return Qe().memoizedState}function _C(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=an();e=Vr(n);var r=Kr(t,e,n);r!==null&&(Ht(r,t,n),_o(r,t,n)),t={cache:xv()},e.payload=t;return}t=t.return}}function EC(e,t,n){var r=an();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Zf(e)?FA(t,n):(n=mv(e,t,n,r),n!==null&&(Ht(n,e,r),QA(n,t,r)))}function KA(e,t,n){var r=an();To(e,t,n,r)}function To(e,t,n,r){var a={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zf(e))FA(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,o=i(l,n);if(a.hasEagerState=!0,a.eagerState=o,ln(o,l))return Vf(e,t,a,0),$e===null&&Xf(),!1}catch{}finally{}if(n=mv(e,t,a,r),n!==null)return Ht(n,e,r),QA(n,t,r),!0}return!1}function zv(e,t,n,r){if(r={lane:2,revertLane:Yv(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Zf(e)){if(t)throw Error(I(479))}else t=mv(e,n,r,2),t!==null&&Ht(t,e,2)}function Zf(e){var t=e.alternate;return e===ie||t!==null&&t===ie}function FA(e,t){Bi=mc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function QA(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rw(e,n)}}var Xo={readContext:At,use:Qf,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useLayoutEffect:Xe,useInsertionEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useSyncExternalStore:Xe,useId:Xe,useHostTransitionStatus:Xe,useFormState:Xe,useActionState:Xe,useOptimistic:Xe,useMemoCache:Xe,useCacheRefresh:Xe};Xo.useEffectEvent=Xe;var WA={readContext:At,use:Qf,useCallback:function(e,t){return $t().memoizedState=[e,t===void 0?null:t],e},useContext:At,useEffect:ob,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Vs(4194308,4,LA.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vs(4194308,4,e,t)},useInsertionEffect:function(e,t){Vs(4,2,e,t)},useMemo:function(e,t){var n=$t();t=t===void 0?null:t;var r=e();if(Ha){Lr(!0);try{e()}finally{Lr(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=$t();if(n!==void 0){var a=n(t);if(Ha){Lr(!0);try{n(t)}finally{Lr(!1)}}}else a=t;return r.memoizedState=r.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=EC.bind(null,ie,e),[r.memoizedState,e]},useRef:function(e){var t=$t();return e={current:e},t.memoizedState=e},useState:function(e){e=Zp(e);var t=e.queue,n=KA.bind(null,ie,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Pv,useDeferredValue:function(e,t){var n=$t();return Dv(n,e,t)},useTransition:function(){var e=Zp(!1);return e=qA.bind(null,ie,e.queue,!0,!1),$t().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=ie,a=$t();if(he){if(n===void 0)throw Error(I(407));n=n()}else{if(n=t(),$e===null)throw Error(I(349));de&127||AA(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,ob(EA.bind(null,r,i,e),[e]),r.flags|=2048,Ki(9,{destroy:void 0},_A.bind(null,r,i,n,t),null),n},useId:function(){var e=$t(),t=$e.identifierPrefix;if(he){var n=Ln,r=Bn;n=(r&~(1<<32-rn(r)-1)).toString(32)+n,t="_"+t+"R_"+n,n=vc++,0<\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof r.is=="string"?l.createElement("select",{is:r.is}):l.createElement("select"),r.multiple?i.multiple=!0:r.size&&(i.size=r.size);break;default:i=typeof r.is=="string"?l.createElement(a,{is:r.is}):l.createElement(a)}}i[St]=t,i[Gt]=r;e:for(l=t.child;l!==null;){if(l.tag===5||l.tag===6)i.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break e;for(;l.sibling===null;){if(l.return===null||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}t.stateNode=i;e:switch(Et(i,a,r),a){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&Wn(t)}}return ze(t),Th(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Wn(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(I(166));if(e=Yr.current,oi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ot,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[St]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||K2(e.nodeValue,n)),e||ra(t,!0)}else e=jc(e).createTextNode(r),e[St]=t,t.stateNode=e}return ze(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=oi(t),n!==null){if(e===null){if(!r)throw Error(I(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(557));e[St]=t}else ka(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ze(t),e=!1}else n=bh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Wt(t),t):(Wt(t),null);if(t.flags&128)throw Error(I(558))}return ze(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=oi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(I(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(I(317));a[St]=t}else ka(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ze(t),a=!1}else a=bh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Wt(t),t):(Wt(t),null)}return Wt(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),i=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool),i!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),gs(t,t.updateQueue),ze(t),null);case 4:return qi(),e===null&&Xv(t.stateNode.containerInfo),ze(t),null;case 10:return fr(t.type),ze(t),null;case 19:if(mt(Fe),r=t.memoizedState,r===null)return ze(t),null;if(a=(t.flags&128)!==0,i=r.rendering,i===null)if(a)Jl(r,!1);else{if(Ke!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=yc(e),i!==null){for(t.flags|=128,Jl(r,!1),e=i.updateQueue,t.updateQueue=e,gs(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)sA(n,e),n=n.sibling;return De(Fe,Fe.current&1|2),he&&nr(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&tn()>Sc&&(t.flags|=128,a=!0,Jl(r,!1),t.lanes=4194304)}else{if(!a)if(e=yc(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,gs(t,e),Jl(r,!0),r.tail===null&&r.tailMode==="hidden"&&!i.alternate&&!he)return ze(t),null}else 2*tn()-r.renderingStartTime>Sc&&n!==536870912&&(t.flags|=128,a=!0,Jl(r,!1),t.lanes=4194304);r.isBackwards?(i.sibling=t.child,t.child=i):(e=r.last,e!==null?e.sibling=i:t.child=i,r.last=i)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=tn(),e.sibling=null,n=Fe.current,De(Fe,a?n&1|2:n&1),he&&nr(t,r.treeForkCount),e):(ze(t),null);case 22:case 23:return Wt(t),Av(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),n=t.updateQueue,n!==null&&gs(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&mt($a),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),fr(tt),ze(t),null;case 25:return null;case 30:return null}throw Error(I(156,t.tag))}function CC(e,t){switch(bv(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fr(tt),qi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return lc(t),null;case 31:if(t.memoizedState!==null){if(Wt(t),t.alternate===null)throw Error(I(340));ka()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Wt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(I(340));ka()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return mt(Fe),null;case 4:return qi(),null;case 10:return fr(t.type),null;case 22:case 23:return Wt(t),Av(),e!==null&&mt($a),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fr(tt),null;case 25:return null;default:return null}}function s2(e,t){switch(bv(t),t.tag){case 3:fr(tt),qi();break;case 26:case 27:case 5:lc(t);break;case 4:qi();break;case 31:t.memoizedState!==null&&Wt(t);break;case 13:Wt(t);break;case 19:mt(Fe);break;case 10:fr(t.type);break;case 22:case 23:Wt(t),Av(),e!==null&&mt($a);break;case 24:fr(tt)}}function Yu(e,t){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var a=r.next;n=a;do{if((n.tag&e)===e){r=void 0;var i=n.create,l=n.inst;r=i(),l.destroy=r}n=n.next}while(n!==a)}}catch(o){we(t,t.return,o)}}function aa(e,t,n){try{var r=t.updateQueue,a=r!==null?r.lastEffect:null;if(a!==null){var i=a.next;r=i;do{if((r.tag&e)===e){var l=r.inst,o=l.destroy;if(o!==void 0){l.destroy=void 0,a=t;var u=n,s=o;try{s()}catch(f){we(a,u,f)}}}r=r.next}while(r!==i)}}catch(f){we(t,t.return,f)}}function c2(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{bA(t,n)}catch(r){we(e,e.return,r)}}}function f2(e,t,n){n.props=qa(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){we(e,t,r)}}function No(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n=="function"?e.refCleanup=n(r):n.current=r}}catch(a){we(e,t,a)}}function kn(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(a){we(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){we(e,t,a)}else n.current=null}function d2(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(a){we(e,e.return,a)}}function Nh(e,t,n){try{var r=e.stateNode;JC(r,e.type,n,t),r[Gt]=t}catch(a){we(e,e.return,a)}}function h2(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ua(e.type)||e.tag===4}function Mh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||h2(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ua(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function iy(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ir));else if(r!==4&&(r===27&&ua(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(iy(e,t,n),e=e.sibling;e!==null;)iy(e,t,n),e=e.sibling}function xc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&ua(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(xc(e,t,n),e=e.sibling;e!==null;)xc(e,t,n),e=e.sibling}function p2(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);Et(t,r,n),t[St]=e,t[Gt]=n}catch(i){we(e,e.return,i)}}var rr=!1,et=!1,Ch=!1,xb=typeof WeakSet=="function"?WeakSet:Set,ht=null;function $C(e,t){if(e=e.containerInfo,dy=Cc,e=tA(e),pv(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,o=-1,u=-1,s=0,f=0,c=e,d=null;t:for(;;){for(var h;c!==n||a!==0&&c.nodeType!==3||(o=l+a),c!==i||r!==0&&c.nodeType!==3||(u=l+r),c.nodeType===3&&(l+=c.nodeValue.length),(h=c.firstChild)!==null;)d=c,c=h;for(;;){if(c===e)break t;if(d===n&&++s===a&&(o=l),d===i&&++f===r&&(u=l),(h=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=h}n=o===-1||u===-1?null:{start:o,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(hy={focusedElem:e,selectionRange:n},Cc=!1,ht=t;ht!==null;)if(t=ht,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ht=e;else for(;ht!==null;){switch(t=ht,i=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n title"))),Et(i,r,n),i[St]=e,pt(i),r=i;break e;case"link":var l=Ub("link","href",a).get(r+(n.href||""));if(l){for(var o=0;ov&&(l=v,v=g,g=l);var y=Yg(o,g),m=Yg(o,v);if(y&&m&&(h.rangeCount!==1||h.anchorNode!==y.node||h.anchorOffset!==y.offset||h.focusNode!==m.node||h.focusOffset!==m.offset)){var b=c.createRange();b.setStart(y.node,y.offset),h.removeAllRanges(),g>v?(h.addRange(b),h.extend(m.node,m.offset)):(b.setEnd(m.node,m.offset),h.addRange(b))}}}}for(c=[],h=o;h=h.parentNode;)h.nodeType===1&&c.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;on?32:n,J.T=null,n=uy,uy=null;var i=Qr,l=dr;if(ot=0,Qi=Qr=null,dr=0,me&6)throw Error(I(331));var o=me;if(me|=4,_2(i.current),O2(i,i.current,l,n),me=o,Xu(0,!1),nn&&typeof nn.onPostCommitFiberRoot=="function")try{nn.onPostCommitFiberRoot(Lu,i)}catch{}return!0}finally{be.p=a,J.T=r,U2(e,t)}}function Ab(e,t,n){t=mn(n,t),t=ny(e.stateNode,t,2),e=Kr(e,t,2),e!==null&&(Uu(e,2),Vn(e))}function we(e,t,n){if(e.tag===3)Ab(e,e,n);else for(;t!==null;){if(t.tag===3){Ab(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Fr===null||!Fr.has(r))){e=mn(n,e),n=n2(2),r=Kr(t,n,2),r!==null&&(r2(n,r,t,e),Uu(r,2),Vn(r));break}}t=t.return}}function Ph(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new RC;var a=new Set;r.set(t,a)}else a=r.get(t),a===void 0&&(a=new Set,r.set(t,a));a.has(n)||(Hv=!0,a.add(n),e=UC.bind(null,e,t,n),t.then(e,e))}function UC(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,$e===e&&(de&n)===n&&(Ke===4||Ke===3&&(de&62914560)===de&&300>tn()-Jf?!(me&2)&&Wi(e,0):qv|=n,Fi===de&&(Fi=0)),Vn(e)}function H2(e,t){t===0&&(t=Pw()),e=ei(e,t),e!==null&&(Uu(e,t),Vn(e))}function IC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),H2(e,n)}function HC(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(I(314))}r!==null&&r.delete(t),H2(e,n)}function qC(e,t){return iv(e,t)}var Ac=null,mi=null,cy=!1,_c=!1,Dh=!1,Hr=0;function Vn(e){e!==mi&&e.next===null&&(mi===null?Ac=mi=e:mi=mi.next=e),_c=!0,cy||(cy=!0,YC())}function Xu(e,t){if(!Dh&&_c){Dh=!0;do for(var n=!1,r=Ac;r!==null;){if(e!==0){var a=r.pendingLanes;if(a===0)var i=0;else{var l=r.suspendedLanes,o=r.pingedLanes;i=(1<<31-rn(42|e)+1)-1,i&=a&~(l&~o),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,_b(r,i))}else i=de,i=Hf(r,r===$e?i:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(i&3)||ku(r,i)||(n=!0,_b(r,i));r=r.next}while(n);Dh=!1}}function GC(){q2()}function q2(){_c=cy=!1;var e=0;Hr!==0&&t3()&&(e=Hr);for(var t=tn(),n=null,r=Ac;r!==null;){var a=r.next,i=G2(r,t);i===0?(r.next=null,n===null?Ac=a:n.next=a,a===null&&(mi=n)):(n=r,(e!==0||i&3)&&(_c=!0)),r=a}ot!==0&&ot!==5||Xu(e),Hr!==0&&(Hr=0)}function G2(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0o)break;var f=u.transferSize,c=u.initiatorType;f&&Mb(c)&&(u=u.responseEnd,l+=f*(u"u"?null:document;function J2(e,t,n){var r=Ml;if(r&&typeof t=="string"&&t){var a=yn(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),Bb.has(a)||(Bb.add(a),e={rel:e,crossOrigin:n,href:t},r.querySelector(a)===null&&(t=r.createElement("link"),Et(t,"link",e),pt(t),r.head.appendChild(t)))}}function c3(e){Ar.D(e),J2("dns-prefetch",e,null)}function f3(e,t){Ar.C(e,t),J2("preconnect",e,t)}function d3(e,t,n){Ar.L(e,t,n);var r=Ml;if(r&&e&&t){var a='link[rel="preload"][as="'+yn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+yn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+yn(n.imageSizes)+'"]')):a+='[href="'+yn(e)+'"]';var i=a;switch(t){case"style":i=Zi(e);break;case"script":i=Cl(e)}On.has(i)||(e=Ie({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),On.set(i,e),r.querySelector(a)!==null||t==="style"&&r.querySelector(Vu(i))||t==="script"&&r.querySelector(Ku(i))||(t=r.createElement("link"),Et(t,"link",e),pt(t),r.head.appendChild(t)))}}function h3(e,t){Ar.m(e,t);var n=Ml;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+yn(r)+'"][href="'+yn(e)+'"]',i=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Cl(e)}if(!On.has(i)&&(e=Ie({rel:"modulepreload",href:e},t),On.set(i,e),n.querySelector(a)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ku(i)))return}r=n.createElement("link"),Et(r,"link",e),pt(r),n.head.appendChild(r)}}}function p3(e,t,n){Ar.S(e,t,n);var r=Ml;if(r&&e){var a=$i(r).hoistableStyles,i=Zi(e);t=t||"default";var l=a.get(i);if(!l){var o={loading:0,preload:null};if(l=r.querySelector(Vu(i)))o.loading=5;else{e=Ie({rel:"stylesheet",href:e,"data-precedence":t},n),(n=On.get(i))&&Vv(e,n);var u=l=r.createElement("link");pt(u),Et(u,"link",e),u._p=new Promise(function(s,f){u.onload=s,u.onerror=f}),u.addEventListener("load",function(){o.loading|=1}),u.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Ws(l,t,r)}l={type:"stylesheet",instance:l,count:1,state:o},a.set(i,l)}}}function y3(e,t){Ar.X(e,t);var n=Ml;if(n&&e){var r=$i(n).hoistableScripts,a=Cl(e),i=r.get(a);i||(i=n.querySelector(Ku(a)),i||(e=Ie({src:e,async:!0},t),(t=On.get(a))&&Kv(e,t),i=n.createElement("script"),pt(i),Et(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function m3(e,t){Ar.M(e,t);var n=Ml;if(n&&e){var r=$i(n).hoistableScripts,a=Cl(e),i=r.get(a);i||(i=n.querySelector(Ku(a)),i||(e=Ie({src:e,async:!0,type:"module"},t),(t=On.get(a))&&Kv(e,t),i=n.createElement("script"),pt(i),Et(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function Lb(e,t,n,r){var a=(a=Yr.current)?Tc(a):null;if(!a)throw Error(I(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Zi(n.href),n=$i(a).hoistableStyles,r=n.get(t),r||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Zi(n.href);var i=$i(a).hoistableStyles,l=i.get(e);if(l||(a=a.ownerDocument||a,l={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,l),(i=a.querySelector(Vu(e)))&&!i._p&&(l.instance=i,l.state.loading=5),On.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},On.set(e,n),i||v3(a,e,n,l.state))),t&&r===null)throw Error(I(528,""));return l}if(t&&r!==null)throw Error(I(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Cl(n),n=$i(a).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(I(444,e))}}function Zi(e){return'href="'+yn(e)+'"'}function Vu(e){return'link[rel="stylesheet"]['+e+"]"}function e_(e){return Ie({},e,{"data-precedence":e.precedence,precedence:null})}function v3(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),Et(t,"link",n),pt(t),e.head.appendChild(t))}function Cl(e){return'[src="'+yn(e)+'"]'}function Ku(e){return"script[async]"+e}function kb(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+yn(n.href)+'"]');if(r)return t.instance=r,pt(r),r;var a=Ie({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),pt(r),Et(r,"style",a),Ws(r,n.precedence,e),t.instance=r;case"stylesheet":a=Zi(n.href);var i=e.querySelector(Vu(a));if(i)return t.state.loading|=4,t.instance=i,pt(i),i;r=e_(n),(a=On.get(a))&&Vv(r,a),i=(e.ownerDocument||e).createElement("link"),pt(i);var l=i;return l._p=new Promise(function(o,u){l.onload=o,l.onerror=u}),Et(i,"link",r),t.state.loading|=4,Ws(i,n.precedence,e),t.instance=i;case"script":return i=Cl(n.src),(a=e.querySelector(Ku(i)))?(t.instance=a,pt(a),a):(r=n,(a=On.get(i))&&(r=Ie({},n),Kv(r,a)),e=e.ownerDocument||e,a=e.createElement("script"),pt(a),Et(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(I(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Ws(r,n.precedence,e));return t.instance}function Ws(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,i=a,l=0;l title"):null)}function g3(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function t_(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function b3(e,t,n,r){if(n.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&!(n.state.loading&4)){if(n.instance===null){var a=Zi(r.href),i=t.querySelector(Vu(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Nc.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,pt(i);return}i=t.ownerDocument||t,r=e_(r),(a=On.get(a))&&Vv(r,a),i=i.createElement("link"),pt(i);var l=i;l._p=new Promise(function(o,u){l.onload=o,l.onerror=u}),Et(i,"link",r),n.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Nc.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Uh=0;function x3(e,t){return e.stylesheets&&e.count===0&&Js(e,e.stylesheets),0Uh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(a)}}:null}function Nc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Js(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Mc=null;function Js(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Mc=new Map,t.forEach(S3,e),Mc=null,Nc.call(e))}function S3(e,t){if(!(t.state.loading&4)){var n=Mc.get(e);if(n)var r=n.get(null);else{n=new Map,Mc.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s_)}catch(e){console.error(e)}}s_(),vw.exports=Uf;var N3=vw.exports;const M3=Me(N3);/**
* @remix-run/router v1.23.3
*
* Copyright (c) Remix Software Inc.
@@ -55,7 +55,7 @@ Error generating stack: `+r.message+`
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
- */function Zo(){return Zo=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Jv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function N$(){return Math.random().toString(36).substr(2,8)}function Fb(e,t){return{usr:e.state,key:e.key,idx:t}}function xy(e,t,n,r){return n===void 0&&(n=null),Zo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?$l(t):t,{state:n,key:t&&t.key||r||N$()})}function Pc(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function $l(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function M$(e,t,n,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:i=!1}=r,l=a.history,o=qr.Pop,u=null,s=f();s==null&&(s=0,l.replaceState(Zo({},l.state,{idx:s}),""));function f(){return(l.state||{idx:null}).idx}function c(){o=qr.Pop;let v=f(),y=v==null?null:v-s;s=v,u&&u({action:o,location:g.location,delta:y})}function d(v,y){o=qr.Push;let m=xy(g.location,v,y);s=f()+1;let b=Fb(m,s),O=g.createHref(m);try{l.pushState(b,"",O)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;a.location.assign(O)}i&&u&&u({action:o,location:g.location,delta:1})}function h(v,y){o=qr.Replace;let m=xy(g.location,v,y);s=f();let b=Fb(m,s),O=g.createHref(m);l.replaceState(b,"",O),i&&u&&u({action:o,location:g.location,delta:0})}function x(v){let y=a.location.origin!=="null"?a.location.origin:a.location.href,m=typeof v=="string"?v:Pc(v);return m=m.replace(/ $/,"%20"),Ye(y,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,y)}let g={get action(){return o},get location(){return e(a,l)},listen(v){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(Kb,c),u=v,()=>{a.removeEventListener(Kb,c),u=null}},createHref(v){return t(a,v)},createURL:x,encodeLocation(v){let y=x(v);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:d,replace:h,go(v){return l.go(v)}};return g}var Qb;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Qb||(Qb={}));function C$(e,t,n){return n===void 0&&(n="/"),$$(e,t,n)}function $$(e,t,n,r){let a=typeof t=="string"?$l(t):t,i=el(a.pathname||"/",n);if(i==null)return null;let l=c_(e);P$(l);let o=null,u=G$(i);for(let s=0;o==null&&s{let u={relativePath:o===void 0?i.path||"":o,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};u.relativePath.startsWith("/")&&(Ye(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let s=ea([r,u.relativePath]),f=n.concat(u);i.children&&i.children.length>0&&(Ye(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),c_(i.children,t,f,s)),!(i.path==null&&!i.index)&&t.push({path:s,score:U$(s,i.index),routesMeta:f})};return e.forEach((i,l)=>{var o;if(i.path===""||!((o=i.path)!=null&&o.includes("?")))a(i,l);else for(let u of f_(i.path))a(i,l,u)}),t}function f_(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let l=f_(r.join("/")),o=[];return o.push(...l.map(u=>u===""?i:[i,u].join("/"))),a&&o.push(...l),o.map(u=>e.startsWith("/")&&u===""?"/":u)}function P$(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:I$(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const D$=/^:[\w-]+$/,R$=3,z$=2,B$=1,L$=10,k$=-2,Wb=e=>e==="*";function U$(e,t){let n=e.split("/"),r=n.length;return n.some(Wb)&&(r+=k$),t&&(r+=z$),n.filter(a=>!Wb(a)).reduce((a,i)=>a+(D$.test(i)?R$:i===""?B$:L$),r)}function I$(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function H$(e,t,n){let{routesMeta:r}=e,a={},i="/",l=[];for(let o=0;o{let{paramName:d,isOptional:h}=f;if(d==="*"){let g=o[c]||"";l=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const x=o[c];return h&&!x?s[d]=void 0:s[d]=(x||"").replace(/%2F/g,"/"),s},{}),pathname:i,pathnameBase:l,pattern:e}}function q$(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Jv(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,o,u)=>(r.push({paramName:o,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function G$(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Jv(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function el(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Y$=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,X$=e=>Y$.test(e);function V$(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?$l(e):e,i;if(n)if(X$(n))i=n;else{if(n.includes("//")){let l=n;n=d_(n),Jv(!1,"Pathnames cannot have embedded double slashes - normalizing "+(l+" -> "+n))}n.startsWith("/")?i=Zb(n.substring(1),"/"):i=Zb(n,t)}else i=t;return{pathname:i,search:Q$(r),hash:W$(a)}}function Zb(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Uh(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function K$(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function e0(e,t){let n=K$(e);return t?n.map((r,a)=>a===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function t0(e,t,n,r){r===void 0&&(r=!1);let a;typeof e=="string"?a=$l(e):(a=Zo({},e),Ye(!a.pathname||!a.pathname.includes("?"),Uh("?","pathname","search",a)),Ye(!a.pathname||!a.pathname.includes("#"),Uh("#","pathname","hash",a)),Ye(!a.search||!a.search.includes("#"),Uh("#","search","hash",a)));let i=e===""||a.pathname==="",l=i?"/":a.pathname,o;if(l==null)o=n;else{let c=t.length-1;if(!r&&l.startsWith("..")){let d=l.split("/");for(;d[0]==="..";)d.shift(),c-=1;a.pathname=d.join("/")}o=c>=0?t[c]:"/"}let u=V$(a,o),s=l&&l!=="/"&&l.endsWith("/"),f=(i||l===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(s||f)&&(u.pathname+="/"),u}const d_=e=>e.replace(/\/\/+/g,"/"),ea=e=>d_(e.join("/")),F$=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Q$=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,W$=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Z$(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const h_=["post","put","patch","delete"];new Set(h_);const J$=["get",...h_];new Set(J$);/**
+ */function Zo(){return Zo=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Jv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function $3(){return Math.random().toString(36).substr(2,8)}function Fb(e,t){return{usr:e.state,key:e.key,idx:t}}function Sy(e,t,n,r){return n===void 0&&(n=null),Zo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?$l(t):t,{state:n,key:t&&t.key||r||$3()})}function Pc(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function $l(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function P3(e,t,n,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:i=!1}=r,l=a.history,o=qr.Pop,u=null,s=f();s==null&&(s=0,l.replaceState(Zo({},l.state,{idx:s}),""));function f(){return(l.state||{idx:null}).idx}function c(){o=qr.Pop;let v=f(),y=v==null?null:v-s;s=v,u&&u({action:o,location:g.location,delta:y})}function d(v,y){o=qr.Push;let m=Sy(g.location,v,y);s=f()+1;let b=Fb(m,s),O=g.createHref(m);try{l.pushState(b,"",O)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;a.location.assign(O)}i&&u&&u({action:o,location:g.location,delta:1})}function h(v,y){o=qr.Replace;let m=Sy(g.location,v,y);s=f();let b=Fb(m,s),O=g.createHref(m);l.replaceState(b,"",O),i&&u&&u({action:o,location:g.location,delta:0})}function x(v){let y=a.location.origin!=="null"?a.location.origin:a.location.href,m=typeof v=="string"?v:Pc(v);return m=m.replace(/ $/,"%20"),Ye(y,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,y)}let g={get action(){return o},get location(){return e(a,l)},listen(v){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(Kb,c),u=v,()=>{a.removeEventListener(Kb,c),u=null}},createHref(v){return t(a,v)},createURL:x,encodeLocation(v){let y=x(v);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:d,replace:h,go(v){return l.go(v)}};return g}var Qb;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Qb||(Qb={}));function D3(e,t,n){return n===void 0&&(n="/"),R3(e,t,n)}function R3(e,t,n,r){let a=typeof t=="string"?$l(t):t,i=el(a.pathname||"/",n);if(i==null)return null;let l=c_(e);z3(l);let o=null,u=V3(i);for(let s=0;o==null&&s{let u={relativePath:o===void 0?i.path||"":o,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};u.relativePath.startsWith("/")&&(Ye(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let s=ea([r,u.relativePath]),f=n.concat(u);i.children&&i.children.length>0&&(Ye(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),c_(i.children,t,f,s)),!(i.path==null&&!i.index)&&t.push({path:s,score:q3(s,i.index),routesMeta:f})};return e.forEach((i,l)=>{var o;if(i.path===""||!((o=i.path)!=null&&o.includes("?")))a(i,l);else for(let u of f_(i.path))a(i,l,u)}),t}function f_(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let l=f_(r.join("/")),o=[];return o.push(...l.map(u=>u===""?i:[i,u].join("/"))),a&&o.push(...l),o.map(u=>e.startsWith("/")&&u===""?"/":u)}function z3(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:G3(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const B3=/^:[\w-]+$/,L3=3,k3=2,U3=1,I3=10,H3=-2,Wb=e=>e==="*";function q3(e,t){let n=e.split("/"),r=n.length;return n.some(Wb)&&(r+=H3),t&&(r+=k3),n.filter(a=>!Wb(a)).reduce((a,i)=>a+(B3.test(i)?L3:i===""?U3:I3),r)}function G3(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function Y3(e,t,n){let{routesMeta:r}=e,a={},i="/",l=[];for(let o=0;o{let{paramName:d,isOptional:h}=f;if(d==="*"){let g=o[c]||"";l=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const x=o[c];return h&&!x?s[d]=void 0:s[d]=(x||"").replace(/%2F/g,"/"),s},{}),pathname:i,pathnameBase:l,pattern:e}}function X3(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Jv(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,o,u)=>(r.push({paramName:o,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function V3(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Jv(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function el(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const K3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,F3=e=>K3.test(e);function Q3(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?$l(e):e,i;if(n)if(F3(n))i=n;else{if(n.includes("//")){let l=n;n=d_(n),Jv(!1,"Pathnames cannot have embedded double slashes - normalizing "+(l+" -> "+n))}n.startsWith("/")?i=Zb(n.substring(1),"/"):i=Zb(n,t)}else i=t;return{pathname:i,search:J3(r),hash:e4(a)}}function Zb(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Ih(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function W3(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function e0(e,t){let n=W3(e);return t?n.map((r,a)=>a===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function t0(e,t,n,r){r===void 0&&(r=!1);let a;typeof e=="string"?a=$l(e):(a=Zo({},e),Ye(!a.pathname||!a.pathname.includes("?"),Ih("?","pathname","search",a)),Ye(!a.pathname||!a.pathname.includes("#"),Ih("#","pathname","hash",a)),Ye(!a.search||!a.search.includes("#"),Ih("#","search","hash",a)));let i=e===""||a.pathname==="",l=i?"/":a.pathname,o;if(l==null)o=n;else{let c=t.length-1;if(!r&&l.startsWith("..")){let d=l.split("/");for(;d[0]==="..";)d.shift(),c-=1;a.pathname=d.join("/")}o=c>=0?t[c]:"/"}let u=Q3(a,o),s=l&&l!=="/"&&l.endsWith("/"),f=(i||l===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(s||f)&&(u.pathname+="/"),u}const d_=e=>e.replace(/\/\/+/g,"/"),ea=e=>d_(e.join("/")),Z3=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),J3=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,e4=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function t4(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const h_=["post","put","patch","delete"];new Set(h_);const n4=["get",...h_];new Set(n4);/**
* React Router v6.30.4
*
* Copyright (c) Remix Software Inc.
@@ -64,7 +64,7 @@ Error generating stack: `+r.message+`
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
- */function Jo(){return Jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t{o.current=!0}),_.useCallback(function(s,f){if(f===void 0&&(f={}),!o.current)return;if(typeof s=="number"){r.go(s);return}let c=t0(s,JSON.parse(l),i,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:ea([t,c.pathname])),(f.replace?r.replace:r.push)(c,f.state,f)},[t,r,l,i,e])}function id(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=_.useContext(_r),{matches:a}=_.useContext(sa),{pathname:i}=Dl(),l=JSON.stringify(e0(a,r.v7_relativeSplatPath));return _.useMemo(()=>t0(e,JSON.parse(l),i,n==="path"),[e,l,i,n])}function n3(e,t){return r3(e,t)}function r3(e,t,n,r){Pl()||Ye(!1);let{navigator:a}=_.useContext(_r),{matches:i}=_.useContext(sa),l=i[i.length-1],o=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let s=Dl(),f;if(t){var c;let v=typeof t=="string"?$l(t):t;u==="/"||(c=v.pathname)!=null&&c.startsWith(u)||Ye(!1),f=v}else f=s;let d=f.pathname||"/",h=d;if(u!=="/"){let v=u.replace(/^\//,"").split("/");h="/"+d.replace(/^\//,"").split("/").slice(v.length).join("/")}let x=C$(e,{pathname:h}),g=u3(x&&x.map(v=>Object.assign({},v,{params:Object.assign({},o,v.params),pathname:ea([u,a.encodeLocation?a.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?u:ea([u,a.encodeLocation?a.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,n,r);return t&&g?_.createElement(ad.Provider,{value:{location:Jo({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:qr.Pop}},g):g}function a3(){let e=d3(),t=Z$(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return _.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),n?_.createElement("pre",{style:a},n):null,null)}const i3=_.createElement(a3,null);class l3 extends _.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?_.createElement(sa.Provider,{value:this.props.routeContext},_.createElement(y_.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function o3(e){let{routeContext:t,match:n,children:r}=e,a=_.useContext(rd);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),_.createElement(sa.Provider,{value:t},r)}function u3(e,t,n,r){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,o=(a=n)==null?void 0:a.errors;if(o!=null){let f=l.findIndex(c=>c.route.id&&(o==null?void 0:o[c.route.id])!==void 0);f>=0||Ye(!1),l=l.slice(0,Math.min(l.length,f+1))}let u=!1,s=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?l=l.slice(0,s+1):l=[l[0]];break}}}return l.reduceRight((f,c,d)=>{let h,x=!1,g=null,v=null;n&&(h=o&&c.route.id?o[c.route.id]:void 0,g=c.route.errorElement||i3,u&&(s<0&&d===0?(p3("route-fallback"),x=!0,v=null):s===d&&(x=!0,v=c.route.hydrateFallbackElement||null)));let y=t.concat(l.slice(0,d+1)),m=()=>{let b;return h?b=g:x?b=v:c.route.Component?b=_.createElement(c.route.Component,null):c.route.element?b=c.route.element:b=f,_.createElement(o3,{match:c,routeContext:{outlet:f,matches:y,isDataRoute:n!=null},children:b})};return n&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?_.createElement(l3,{location:n.location,revalidation:n.revalidation,component:g,error:h,children:m(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):m()},null)}var v_=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(v_||{}),g_=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(g_||{});function s3(e){let t=_.useContext(rd);return t||Ye(!1),t}function c3(e){let t=_.useContext(p_);return t||Ye(!1),t}function f3(e){let t=_.useContext(sa);return t||Ye(!1),t}function b_(e){let t=f3(),n=t.matches[t.matches.length-1];return n.route.id||Ye(!1),n.route.id}function d3(){var e;let t=_.useContext(y_),n=c3(),r=b_();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function h3(){let{router:e}=s3(v_.UseNavigateStable),t=b_(g_.UseNavigateStable),n=_.useRef(!1);return m_(()=>{n.current=!0}),_.useCallback(function(a,i){i===void 0&&(i={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Jo({fromRouteId:t},i)))},[e,t])}const Jb={};function p3(e,t,n){Jb[e]||(Jb[e]=!0)}function y3(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function x_(e){let{to:t,replace:n,state:r,relative:a}=e;Pl()||Ye(!1);let{future:i,static:l}=_.useContext(_r),{matches:o}=_.useContext(sa),{pathname:u}=Dl(),s=n0(),f=t0(t,e0(o,i.v7_relativeSplatPath),u,a==="path"),c=JSON.stringify(f);return _.useEffect(()=>s(JSON.parse(c),{replace:n,state:r,relative:a}),[s,c,a,n,r]),null}function gt(e){Ye(!1)}function m3(e){let{basename:t="/",children:n=null,location:r,navigationType:a=qr.Pop,navigator:i,static:l=!1,future:o}=e;Pl()&&Ye(!1);let u=t.replace(/^\/*/,"/"),s=_.useMemo(()=>({basename:u,navigator:i,static:l,future:Jo({v7_relativeSplatPath:!1},o)}),[u,o,i,l]);typeof r=="string"&&(r=$l(r));let{pathname:f="/",search:c="",hash:d="",state:h=null,key:x="default"}=r,g=_.useMemo(()=>{let v=el(f,u);return v==null?null:{location:{pathname:v,search:c,hash:d,state:h,key:x},navigationType:a}},[u,f,c,d,h,x,a]);return g==null?null:_.createElement(_r.Provider,{value:s},_.createElement(ad.Provider,{children:n,value:g}))}function ex(e){let{children:t,location:n}=e;return n3(Oy(t),n)}new Promise(()=>{});function Oy(e,t){t===void 0&&(t=[]);let n=[];return _.Children.forEach(e,(r,a)=>{if(!_.isValidElement(r))return;let i=[...t,a];if(r.type===_.Fragment){n.push.apply(n,Oy(r.props.children,i));return}r.type!==gt&&Ye(!1),!r.props.index||!r.props.children||Ye(!1);let l={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=Oy(r.props.children,i)),n.push(l)}),n}/**
+ */function Jo(){return Jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t{o.current=!0}),_.useCallback(function(s,f){if(f===void 0&&(f={}),!o.current)return;if(typeof s=="number"){r.go(s);return}let c=t0(s,JSON.parse(l),i,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:ea([t,c.pathname])),(f.replace?r.replace:r.push)(c,f.state,f)},[t,r,l,i,e])}function ld(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=_.useContext(_r),{matches:a}=_.useContext(sa),{pathname:i}=Dl(),l=JSON.stringify(e0(a,r.v7_relativeSplatPath));return _.useMemo(()=>t0(e,JSON.parse(l),i,n==="path"),[e,l,i,n])}function i4(e,t){return l4(e,t)}function l4(e,t,n,r){Pl()||Ye(!1);let{navigator:a}=_.useContext(_r),{matches:i}=_.useContext(sa),l=i[i.length-1],o=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let s=Dl(),f;if(t){var c;let v=typeof t=="string"?$l(t):t;u==="/"||(c=v.pathname)!=null&&c.startsWith(u)||Ye(!1),f=v}else f=s;let d=f.pathname||"/",h=d;if(u!=="/"){let v=u.replace(/^\//,"").split("/");h="/"+d.replace(/^\//,"").split("/").slice(v.length).join("/")}let x=D3(e,{pathname:h}),g=f4(x&&x.map(v=>Object.assign({},v,{params:Object.assign({},o,v.params),pathname:ea([u,a.encodeLocation?a.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?u:ea([u,a.encodeLocation?a.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,n,r);return t&&g?_.createElement(id.Provider,{value:{location:Jo({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:qr.Pop}},g):g}function o4(){let e=y4(),t=t4(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return _.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),n?_.createElement("pre",{style:a},n):null,null)}const u4=_.createElement(o4,null);class s4 extends _.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?_.createElement(sa.Provider,{value:this.props.routeContext},_.createElement(y_.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function c4(e){let{routeContext:t,match:n,children:r}=e,a=_.useContext(ad);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),_.createElement(sa.Provider,{value:t},r)}function f4(e,t,n,r){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,o=(a=n)==null?void 0:a.errors;if(o!=null){let f=l.findIndex(c=>c.route.id&&(o==null?void 0:o[c.route.id])!==void 0);f>=0||Ye(!1),l=l.slice(0,Math.min(l.length,f+1))}let u=!1,s=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?l=l.slice(0,s+1):l=[l[0]];break}}}return l.reduceRight((f,c,d)=>{let h,x=!1,g=null,v=null;n&&(h=o&&c.route.id?o[c.route.id]:void 0,g=c.route.errorElement||u4,u&&(s<0&&d===0?(v4("route-fallback"),x=!0,v=null):s===d&&(x=!0,v=c.route.hydrateFallbackElement||null)));let y=t.concat(l.slice(0,d+1)),m=()=>{let b;return h?b=g:x?b=v:c.route.Component?b=_.createElement(c.route.Component,null):c.route.element?b=c.route.element:b=f,_.createElement(c4,{match:c,routeContext:{outlet:f,matches:y,isDataRoute:n!=null},children:b})};return n&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?_.createElement(s4,{location:n.location,revalidation:n.revalidation,component:g,error:h,children:m(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):m()},null)}var v_=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(v_||{}),g_=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(g_||{});function d4(e){let t=_.useContext(ad);return t||Ye(!1),t}function h4(e){let t=_.useContext(p_);return t||Ye(!1),t}function p4(e){let t=_.useContext(sa);return t||Ye(!1),t}function b_(e){let t=p4(),n=t.matches[t.matches.length-1];return n.route.id||Ye(!1),n.route.id}function y4(){var e;let t=_.useContext(y_),n=h4(),r=b_();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function m4(){let{router:e}=d4(v_.UseNavigateStable),t=b_(g_.UseNavigateStable),n=_.useRef(!1);return m_(()=>{n.current=!0}),_.useCallback(function(a,i){i===void 0&&(i={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Jo({fromRouteId:t},i)))},[e,t])}const Jb={};function v4(e,t,n){Jb[e]||(Jb[e]=!0)}function g4(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function x_(e){let{to:t,replace:n,state:r,relative:a}=e;Pl()||Ye(!1);let{future:i,static:l}=_.useContext(_r),{matches:o}=_.useContext(sa),{pathname:u}=Dl(),s=n0(),f=t0(t,e0(o,i.v7_relativeSplatPath),u,a==="path"),c=JSON.stringify(f);return _.useEffect(()=>s(JSON.parse(c),{replace:n,state:r,relative:a}),[s,c,a,n,r]),null}function ft(e){Ye(!1)}function b4(e){let{basename:t="/",children:n=null,location:r,navigationType:a=qr.Pop,navigator:i,static:l=!1,future:o}=e;Pl()&&Ye(!1);let u=t.replace(/^\/*/,"/"),s=_.useMemo(()=>({basename:u,navigator:i,static:l,future:Jo({v7_relativeSplatPath:!1},o)}),[u,o,i,l]);typeof r=="string"&&(r=$l(r));let{pathname:f="/",search:c="",hash:d="",state:h=null,key:x="default"}=r,g=_.useMemo(()=>{let v=el(f,u);return v==null?null:{location:{pathname:v,search:c,hash:d,state:h,key:x},navigationType:a}},[u,f,c,d,h,x,a]);return g==null?null:_.createElement(_r.Provider,{value:s},_.createElement(id.Provider,{children:n,value:g}))}function ex(e){let{children:t,location:n}=e;return i4(wy(t),n)}new Promise(()=>{});function wy(e,t){t===void 0&&(t=[]);let n=[];return _.Children.forEach(e,(r,a)=>{if(!_.isValidElement(r))return;let i=[...t,a];if(r.type===_.Fragment){n.push.apply(n,wy(r.props.children,i));return}r.type!==ft&&Ye(!1),!r.props.index||!r.props.children||Ye(!1);let l={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=wy(r.props.children,i)),n.push(l)}),n}/**
* React Router DOM v6.30.4
*
* Copyright (c) Remix Software Inc.
@@ -73,215 +73,235 @@ Error generating stack: `+r.message+`
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
- */function Dc(){return Dc=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s&&tx?tx(()=>u(c)):u(c)},[u,s]);return _.useLayoutEffect(()=>l.listen(f),[l,f]),_.useEffect(()=>y3(r),[r]),_.createElement(m3,{basename:t,children:n,location:o.location,navigationType:o.action,navigator:l,future:r})}const _3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",E3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,j3=_.forwardRef(function(t,n){let{onClick:r,relative:a,reloadDocument:i,replace:l,state:o,target:u,to:s,preventScrollReset:f,viewTransition:c}=t,d=S_(t,b3),{basename:h}=_.useContext(_r),x,g=!1;if(typeof s=="string"&&E3.test(s)&&(x=s,_3))try{let b=new URL(window.location.href),O=s.startsWith("//")?new URL(b.protocol+s):new URL(s),S=el(O.pathname,h);O.origin===b.origin&&S!=null?s=S+O.search+O.hash:g=!0}catch{}let v=e3(s,{relative:a}),y=N3(s,{replace:l,state:o,target:u,preventScrollReset:f,relative:a,viewTransition:c});function m(b){r&&r(b),b.defaultPrevented||y(b)}return _.createElement("a",Dc({},d,{href:x||v,onClick:g||i?r:m,ref:n,target:u}))}),Ih=_.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:a=!1,className:i="",end:l=!1,style:o,to:u,viewTransition:s,children:f}=t,c=S_(t,x3),d=id(u,{relative:c.relative}),h=Dl(),x=_.useContext(p_),{navigator:g,basename:v}=_.useContext(_r),y=x!=null&&M3(d)&&s===!0,m=g.encodeLocation?g.encodeLocation(d).pathname:d.pathname,b=h.pathname,O=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;a||(b=b.toLowerCase(),O=O?O.toLowerCase():null,m=m.toLowerCase()),O&&v&&(O=el(O,v)||O);const S=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let w=b===m||!l&&b.startsWith(m)&&b.charAt(S)==="/",A=O!=null&&(O===m||!l&&O.startsWith(m)&&O.charAt(m.length)==="/"),E={isActive:w,isPending:A,isTransitioning:y},j=w?r:void 0,$;typeof i=="function"?$=i(E):$=[i,w?"active":null,A?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let P=typeof o=="function"?o(E):o;return _.createElement(j3,Dc({},c,{"aria-current":j,className:$,ref:n,style:P,to:u,viewTransition:s}),typeof f=="function"?f(E):f)});var wy;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(wy||(wy={}));var nx;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(nx||(nx={}));function T3(e){let t=_.useContext(rd);return t||Ye(!1),t}function N3(e,t){let{target:n,replace:r,state:a,preventScrollReset:i,relative:l,viewTransition:o}=t===void 0?{}:t,u=n0(),s=Dl(),f=id(e,{relative:l});return _.useCallback(c=>{if(g3(c,n)){c.preventDefault();let d=r!==void 0?r:Pc(s)===Pc(f);u(e,{replace:d,state:a,preventScrollReset:i,relative:l,viewTransition:o})}},[s,u,f,r,a,n,e,i,l,o])}function M3(e,t){t===void 0&&(t={});let n=_.useContext(O3);n==null&&Ye(!1);let{basename:r}=T3(wy.useViewTransitionState),a=id(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=el(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=el(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Sy(a.pathname,l)!=null||Sy(a.pathname,i)!=null}/**
+ */function Dc(){return Dc=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s&&tx?tx(()=>u(c)):u(c)},[u,s]);return _.useLayoutEffect(()=>l.listen(f),[l,f]),_.useEffect(()=>g4(r),[r]),_.createElement(b4,{basename:t,children:n,location:o.location,navigationType:o.action,navigator:l,future:r})}const T4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",N4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,M4=_.forwardRef(function(t,n){let{onClick:r,relative:a,reloadDocument:i,replace:l,state:o,target:u,to:s,preventScrollReset:f,viewTransition:c}=t,d=S_(t,O4),{basename:h}=_.useContext(_r),x,g=!1;if(typeof s=="string"&&N4.test(s)&&(x=s,T4))try{let b=new URL(window.location.href),O=s.startsWith("//")?new URL(b.protocol+s):new URL(s),S=el(O.pathname,h);O.origin===b.origin&&S!=null?s=S+O.search+O.hash:g=!0}catch{}let v=r4(s,{relative:a}),y=$4(s,{replace:l,state:o,target:u,preventScrollReset:f,relative:a,viewTransition:c});function m(b){r&&r(b),b.defaultPrevented||y(b)}return _.createElement("a",Dc({},d,{href:x||v,onClick:g||i?r:m,ref:n,target:u}))}),Hh=_.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:a=!1,className:i="",end:l=!1,style:o,to:u,viewTransition:s,children:f}=t,c=S_(t,w4),d=ld(u,{relative:c.relative}),h=Dl(),x=_.useContext(p_),{navigator:g,basename:v}=_.useContext(_r),y=x!=null&&P4(d)&&s===!0,m=g.encodeLocation?g.encodeLocation(d).pathname:d.pathname,b=h.pathname,O=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;a||(b=b.toLowerCase(),O=O?O.toLowerCase():null,m=m.toLowerCase()),O&&v&&(O=el(O,v)||O);const S=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let w=b===m||!l&&b.startsWith(m)&&b.charAt(S)==="/",A=O!=null&&(O===m||!l&&O.startsWith(m)&&O.charAt(m.length)==="/"),E={isActive:w,isPending:A,isTransitioning:y},j=w?r:void 0,$;typeof i=="function"?$=i(E):$=[i,w?"active":null,A?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let P=typeof o=="function"?o(E):o;return _.createElement(M4,Dc({},c,{"aria-current":j,className:$,ref:n,style:P,to:u,viewTransition:s}),typeof f=="function"?f(E):f)});var Ay;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ay||(Ay={}));var nx;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(nx||(nx={}));function C4(e){let t=_.useContext(ad);return t||Ye(!1),t}function $4(e,t){let{target:n,replace:r,state:a,preventScrollReset:i,relative:l,viewTransition:o}=t===void 0?{}:t,u=n0(),s=Dl(),f=ld(e,{relative:l});return _.useCallback(c=>{if(S4(c,n)){c.preventDefault();let d=r!==void 0?r:Pc(s)===Pc(f);u(e,{replace:d,state:a,preventScrollReset:i,relative:l,viewTransition:o})}},[s,u,f,r,a,n,e,i,l,o])}function P4(e,t){t===void 0&&(t={});let n=_.useContext(_4);n==null&&Ye(!1);let{basename:r}=C4(Ay.useViewTransitionState),a=ld(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=el(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=el(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Oy(a.pathname,l)!=null||Oy(a.pathname,i)!=null}/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const C3=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),O_=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
+ */const D4=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),O_=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */var $3={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
+ */var R4={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const P3=_.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:i,iconNode:l,...o},u)=>_.createElement("svg",{ref:u,...$3,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:O_("lucide",a),...o},[...l.map(([s,f])=>_.createElement(s,f)),...Array.isArray(i)?i:[i]]));/**
+ */const z4=_.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:i,iconNode:l,...o},u)=>_.createElement("svg",{ref:u,...R4,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:O_("lucide",a),...o},[...l.map(([s,f])=>_.createElement(s,f)),...Array.isArray(i)?i:[i]]));/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const de=(e,t)=>{const n=_.forwardRef(({className:r,...a},i)=>_.createElement(P3,{ref:i,iconNode:t,className:O_(`lucide-${C3(e)}`,r),...a}));return n.displayName=`${e}`,n};/**
+ */const le=(e,t)=>{const n=_.forwardRef(({className:r,...a},i)=>_.createElement(z4,{ref:i,iconNode:t,className:O_(`lucide-${D4(e)}`,r),...a}));return n.displayName=`${e}`,n};/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const D3=de("Battery",[["rect",{width:"16",height:"10",x:"2",y:"7",rx:"2",ry:"2",key:"1w10f2"}],["line",{x1:"22",x2:"22",y1:"11",y2:"13",key:"4dh1rd"}]]);/**
+ */const B4=le("Battery",[["rect",{width:"16",height:"10",x:"2",y:"7",rx:"2",ry:"2",key:"1w10f2"}],["line",{x1:"22",x2:"22",y1:"11",y2:"13",key:"4dh1rd"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const R3=de("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/**
+ */const L4=le("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const eu=de("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
+ */const eu=le("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const w_=de("CircleCheckBig",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
+ */const w_=le("CircleCheckBig",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const z3=de("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
+ */const k4=le("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const B3=de("CircleUser",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]]);/**
+ */const U4=le("CircleUser",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const Ay=de("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
+ */const Rc=le("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const L3=de("EyeOff",[["path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24",key:"1jxqfv"}],["path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68",key:"9wicm4"}],["path",{d:"M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61",key:"1jreej"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/**
+ */const I4=le("EyeOff",[["path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24",key:"1jxqfv"}],["path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68",key:"9wicm4"}],["path",{d:"M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61",key:"1jreej"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const k3=de("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
+ */const H4=le("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const U3=de("KeyRound",[["path",{d:"M2 18v3c0 .6.4 1 1 1h4v-3h3v-3h2l1.4-1.4a6.5 6.5 0 1 0-4-4Z",key:"167ctg"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
+ */const q4=le("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const I3=de("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
+ */const G4=le("KeyRound",[["path",{d:"M2 18v3c0 .6.4 1 1 1h4v-3h3v-3h2l1.4-1.4a6.5 6.5 0 1 0-4-4Z",key:"167ctg"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const H3=de("LockOpen",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]);/**
+ */const Y4=le("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const q3=de("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
+ */const X4=le("LockOpen",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const G3=de("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
+ */const V4=le("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const Y3=de("Map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);/**
+ */const K4=le("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const X3=de("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
+ */const F4=le("Map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const A_=de("Package",[["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);/**
+ */const Q4=le("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const V3=de("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
+ */const A_=le("Package",[["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const K3=de("PlugZap",[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]]);/**
+ */const W4=le("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const F3=de("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
+ */const Z4=le("PlugZap",[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const __=de("QrCode",[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]]);/**
+ */const J4=le("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const E_=de("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
+ */const __=le("QrCode",[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const Q3=de("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
+ */const e$=le("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const W3=de("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
+ */const E_=le("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const Z3=de("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
+ */const t$=le("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const J3=de("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]);/**
+ */const n$=le("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const r0=de("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
+ */const r$=le("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const e4=de("ShieldOff",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71",key:"1jlk70"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",key:"18rp1v"}]]);/**
+ */const j_=le("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const t4=de("ThumbsDown",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);/**
+ */const a$=le("ShieldAlert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const n4=de("ThumbsUp",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);/**
+ */const r0=le("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const r4=de("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
+ */const i$=le("ShieldOff",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71",key:"1jlk70"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",key:"18rp1v"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const ld=de("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
+ */const T_=le("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const a4=de("UserCheck",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);/**
+ */const l$=le("ThumbsDown",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const j_=de("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
+ */const o$=le("ThumbsUp",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const i4=de("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
+ */const u$=le("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
* @license lucide-react v0.400.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const T_=de("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);function N_(e,t){return function(){return e.apply(t,arguments)}}const{toString:l4}=Object.prototype,{getPrototypeOf:tl}=Object,{iterator:Fu,toStringTag:M_}=Symbol,Rc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),tu=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),Rc(n,t))return!0;n=tl(n)}return!1},o4=(e,t)=>e!=null&&tu(e,t)?e[t]:void 0,a0=(e=>t=>{const n=l4.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Dn=e=>(e=e.toLowerCase(),t=>a0(t)===e),od=e=>t=>typeof t===e,{isArray:Ga}=Array,nl=od("undefined");function Rl(e){return e!==null&&!nl(e)&&e.constructor!==null&&!nl(e.constructor)&&qt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const C_=Dn("ArrayBuffer");function u4(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&C_(e.buffer),t}const s4=od("string"),qt=od("function"),$_=od("number"),zl=e=>e!==null&&typeof e=="object",c4=e=>e===!0||e===!1,tc=e=>{if(!zl(e))return!1;const t=tl(e);return(t===null||t===Object.prototype||tl(t)===null)&&!tu(e,M_)&&!tu(e,Fu)},f4=e=>{if(!zl(e)||Rl(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},d4=Dn("Date"),h4=Dn("File"),p4=e=>!!(e&&typeof e.uri<"u"),y4=e=>e&&typeof e.getParts<"u",m4=Dn("Blob"),v4=Dn("FileList"),g4=e=>zl(e)&&qt(e.pipe);function b4(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const rx=b4(),ax=typeof rx.FormData<"u"?rx.FormData:void 0,x4=e=>{if(!e)return!1;if(ax&&e instanceof ax)return!0;const t=tl(e);if(!t||t===Object.prototype||!qt(e.append))return!1;const n=a0(e);return n==="formdata"||n==="object"&&qt(e.toString)&&e.toString()==="[object FormData]"},S4=Dn("URLSearchParams"),[O4,w4,A4,_4]=["ReadableStream","Request","Response","Headers"].map(Dn),E4=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qu(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),Ga(e))for(r=0,a=e.length;r0;)if(a=n[r],t===a.toLowerCase())return a;return null}const _a=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,D_=e=>!nl(e)&&e!==_a;function _y(...e){const{caseless:t,skipUndefined:n}=D_(this)&&this||{},r={},a=(i,l)=>{if(l==="__proto__"||l==="constructor"||l==="prototype")return;const o=t&&typeof l=="string"&&P_(r,l)||l,u=Rc(r,o)?r[o]:void 0;tc(u)&&tc(i)?r[o]=_y(u,i):tc(i)?r[o]=_y({},i):Ga(i)?r[o]=i.slice():(!n||!nl(i))&&(r[o]=i)};for(let i=0,l=e.length;i(Qu(t,(a,i)=>{n&&qt(a)?Object.defineProperty(e,i,{__proto__:null,value:N_(a,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),T4=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),N4=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},M4=(e,t,n,r)=>{let a,i,l;const o={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)l=a[i],(!r||r(l,e,t))&&!o[l]&&(t[l]=e[l],o[l]=!0);e=n!==!1&&tl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},C4=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},$4=e=>{if(!e)return null;if(Ga(e))return e;let t=e.length;if(!$_(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},P4=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&tl(Uint8Array)),D4=(e,t)=>{const r=(e&&e[Fu]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},R4=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},z4=Dn("HTMLFormElement"),B4=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),{propertyIsEnumerable:L4}=Object.prototype,k4=Dn("RegExp"),R_=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Qu(n,(a,i)=>{let l;(l=t(a,i,e))!==!1&&(r[i]=l||a)}),Object.defineProperties(e,r)},U4=e=>{R_(e,(t,n)=>{if(qt(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(qt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},I4=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return Ga(e)?r(e):r(String(e).split(t)),n},H4=()=>{},q4=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function G4(e){return!!(e&&qt(e.append)&&e[M_]==="FormData"&&e[Fu])}const Y4=e=>{const t=new WeakSet,n=r=>{if(zl(r)){if(t.has(r))return;if(Rl(r))return r;if(!("toJSON"in r)){t.add(r);const a=Ga(r)?[]:{};return Qu(r,(i,l)=>{const o=n(i);!nl(o)&&(a[l]=o)}),t.delete(r),a}}return r};return n(e)},X4=Dn("AsyncFunction"),V4=e=>e&&(zl(e)||qt(e))&&qt(e.then)&&qt(e.catch),z_=((e,t)=>e?setImmediate:t?((n,r)=>(_a.addEventListener("message",({source:a,data:i})=>{a===_a&&i===n&&r.length&&r.shift()()},!1),a=>{r.push(a),_a.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",qt(_a.postMessage)),K4=typeof queueMicrotask<"u"?queueMicrotask.bind(_a):typeof process<"u"&&process.nextTick||z_,B_=e=>e!=null&&qt(e[Fu]),F4=e=>e!=null&&tu(e,Fu)&&B_(e),T={isArray:Ga,isArrayBuffer:C_,isBuffer:Rl,isFormData:x4,isArrayBufferView:u4,isString:s4,isNumber:$_,isBoolean:c4,isObject:zl,isPlainObject:tc,isEmptyObject:f4,isReadableStream:O4,isRequest:w4,isResponse:A4,isHeaders:_4,isUndefined:nl,isDate:d4,isFile:h4,isReactNativeBlob:p4,isReactNative:y4,isBlob:m4,isRegExp:k4,isFunction:qt,isStream:g4,isURLSearchParams:S4,isTypedArray:P4,isFileList:v4,forEach:Qu,merge:_y,extend:j4,trim:E4,stripBOM:T4,inherits:N4,toFlatObject:M4,kindOf:a0,kindOfTest:Dn,endsWith:C4,toArray:$4,forEachEntry:D4,matchAll:R4,isHTMLForm:z4,hasOwnProperty:Rc,hasOwnProp:Rc,hasOwnInPrototypeChain:tu,getSafeProp:o4,reduceDescriptors:R_,freezeMethods:U4,toObjectSet:I4,toCamelCase:B4,noop:H4,toFiniteNumber:q4,findKey:P_,global:_a,isContextDefined:D_,isSpecCompliantForm:G4,toJSONObject:Y4,isAsyncFn:X4,isThenable:V4,setImmediate:z_,asap:K4,isIterable:B_,isSafeIterable:F4},Q4=T.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),W4=e=>{const t={};let n,r,a;return e&&e.split(`
-`).forEach(function(l){a=l.indexOf(":"),n=l.substring(0,a).trim().toLowerCase(),r=l.substring(a+1).trim(),!(!n||t[n]&&Q4[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function Z4(e){let t=0,n=e.length;for(;tt;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const J4=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),eP=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function i0(e,t){return T.isArray(e)?e.map(n=>i0(n,t)):Z4(String(e).replace(t,""))}const tP=e=>i0(e,J4),nP=e=>i0(e,eP);function L_(e){const t=Object.create(null);return T.forEach(e.toJSON(),(n,r)=>{t[r]=nP(n)}),t}const ix=Symbol("internals");function no(e){return e&&String(e).trim().toLowerCase()}function nc(e){return e===!1||e==null?e:T.isArray(e)?e.map(nc):tP(String(e))}function rP(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const aP=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Hh(e,t,n,r,a){if(T.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!T.isString(t)){if(T.isString(r))return t.indexOf(r)!==-1;if(T.isRegExp(r))return r.test(t)}}function iP(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function lP(e,t){const n=T.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(a,i,l){return this[r].call(this,t,a,i,l)},configurable:!0})})}let Ct=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(o,u,s){const f=no(u);if(!f)return;const c=T.findKey(a,f);(!c||a[c]===void 0||s===!0||s===void 0&&a[c]!==!1)&&(a[c||u]=nc(o))}const l=(o,u)=>T.forEach(o,(s,f)=>i(s,f,u));if(T.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(T.isString(t)&&(t=t.trim())&&!aP(t))l(W4(t),n);else if(T.isObject(t)&&T.isSafeIterable(t)){let o=Object.create(null),u,s;for(const f of t){if(!T.isArray(f))throw new TypeError("Object iterator must return a key-value pair");s=f[0],T.hasOwnProp(o,s)?(u=o[s],o[s]=T.isArray(u)?[...u,f[1]]:[u,f[1]]):o[s]=f[1]}l(o,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=no(t),t){const r=T.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return rP(a);if(T.isFunction(n))return n.call(this,a,r);if(T.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=no(t),t){const r=T.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Hh(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(l){if(l=no(l),l){const o=T.findKey(r,l);o&&(!n||Hh(r,r[o],o,n))&&(delete r[o],a=!0)}}return T.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||Hh(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return T.forEach(this,(a,i)=>{const l=T.findKey(r,i);if(l){n[l]=nc(a),delete n[i];return}const o=t?iP(i):String(i).trim();o!==i&&delete n[i],n[o]=nc(a),r[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return T.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&T.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
-`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[ix]=this[ix]={accessors:{}}).accessors,a=this.prototype;function i(l){const o=no(l);r[o]||(lP(a,l),r[o]=!0)}return T.isArray(t)?t.forEach(i):i(t),this}};Ct.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);T.reduceDescriptors(Ct.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});T.freezeMethods(Ct);const oP="[REDACTED ****]";function uP(e){if(T.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(T.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function sP(e,t){const n=new Set(t.map(i=>String(i).toLowerCase())),r=[],a=i=>{if(i===null||typeof i!="object"||T.isBuffer(i))return i;if(r.indexOf(i)!==-1)return;i instanceof Ct&&(i=i.toJSON()),r.push(i);let l;if(T.isArray(i))l=[],i.forEach((o,u)=>{const s=a(o);T.isUndefined(s)||(l[u]=s)});else{if(!T.isPlainObject(i)&&uP(i))return r.pop(),i;l=Object.create(null);for(const[o,u]of Object.entries(i)){const s=n.has(o.toLowerCase())?oP:a(u);T.isUndefined(s)||(l[o]=s)}}return r.pop(),l};return a(e)}let V=class k_ extends Error{static from(t,n,r,a,i,l){const o=new k_(t.message,n||t.code,r,a,i);return Object.defineProperty(o,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),o.name=t.name,t.status!=null&&o.status==null&&(o.status=t.status),l&&Object.assign(o,l),o}constructor(t,n,r,a,i){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),a&&(this.request=a),i&&(this.response=i,this.status=i.status)}toJSON(){const t=this.config,n=t&&T.hasOwnProp(t,"redact")?t.redact:void 0,r=T.isArray(n)&&n.length>0?sP(t,n):T.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};V.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";V.ERR_BAD_OPTION="ERR_BAD_OPTION";V.ECONNABORTED="ECONNABORTED";V.ETIMEDOUT="ETIMEDOUT";V.ECONNREFUSED="ECONNREFUSED";V.ERR_NETWORK="ERR_NETWORK";V.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";V.ERR_DEPRECATED="ERR_DEPRECATED";V.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";V.ERR_BAD_REQUEST="ERR_BAD_REQUEST";V.ERR_CANCELED="ERR_CANCELED";V.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";V.ERR_INVALID_URL="ERR_INVALID_URL";V.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const cP=null,U_=100;function Ey(e){return T.isPlainObject(e)||T.isArray(e)}function I_(e){return T.endsWith(e,"[]")?e.slice(0,-2):e}function qh(e,t,n){return e?e.concat(t).map(function(a,i){return a=I_(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function fP(e){return T.isArray(e)&&!e.some(Ey)}const dP=T.toFlatObject(T,{},null,function(t){return/^is[A-Z]/.test(t)});function ud(e,t,n){if(!T.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=T.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,b){return!T.isUndefined(b[m])});const r=n.metaTokens,a=n.visitor||x,i=n.dots,l=n.indexes,o=n.Blob||typeof Blob<"u"&&Blob,u=n.maxDepth===void 0?U_:n.maxDepth,s=o&&T.isSpecCompliantForm(t),f=[];if(!T.isFunction(a))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(T.isDate(y))return y.toISOString();if(T.isBoolean(y))return y.toString();if(!s&&T.isBlob(y))throw new V("Blob is not supported. Use a Buffer instead.");if(T.isArrayBuffer(y)||T.isTypedArray(y)){if(s&&typeof o=="function")return new o([y]);if(typeof Buffer<"u")return Buffer.from(y);throw new V("Blob is not supported. Use a Buffer instead.",V.ERR_NOT_SUPPORT)}return y}function d(y){if(y>u)throw new V("Object is too deeply nested ("+y+" levels). Max depth: "+u,V.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(y,m){if(u===1/0)return JSON.stringify(y);const b=[];return JSON.stringify(y,function(S,w){if(!T.isObject(w))return w;for(;b.length&&b[b.length-1]!==this;)b.pop();return b.push(w),d(m+b.length-1),w})}function x(y,m,b){let O=y;if(T.isReactNative(t)&&T.isReactNativeBlob(y))return t.append(qh(b,m,i),c(y)),!1;if(y&&!b&&typeof y=="object"){if(T.endsWith(m,"{}"))m=r?m:m.slice(0,-2),y=h(y,1);else if(T.isArray(y)&&fP(y)||(T.isFileList(y)||T.endsWith(m,"[]"))&&(O=T.toArray(y)))return m=I_(m),O.forEach(function(w,A){!(T.isUndefined(w)||w===null)&&t.append(l===!0?qh([m],A,i):l===null?m:m+"[]",c(w))}),!1}return Ey(y)?!0:(t.append(qh(b,m,i),c(y)),!1)}const g=Object.assign(dP,{defaultVisitor:x,convertValue:c,isVisitable:Ey});function v(y,m,b=0){if(!T.isUndefined(y)){if(d(b),f.indexOf(y)!==-1)throw new Error("Circular reference detected in "+m.join("."));f.push(y),T.forEach(y,function(S,w){(!(T.isUndefined(S)||S===null)&&a.call(t,S,T.isString(w)?w.trim():w,m,g))===!0&&v(S,m?m.concat(w):[w],b+1)}),f.pop()}}if(!T.isObject(e))throw new TypeError("data must be an object");return v(e),t}function lx(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function l0(e,t){this._pairs=[],e&&ud(e,this,t)}const H_=l0.prototype;H_.append=function(t,n){this._pairs.push([t,n])};H_.toString=function(t){const n=t?r=>t.call(this,r,lx):lx;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function hP(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function q_(e,t,n){if(!t)return e;e=e||"";const r=T.isFunction(n)?{serialize:n}:n,a=T.getSafeProp(r,"encode")||hP,i=T.getSafeProp(r,"serialize");let l;if(i?l=i(t,r):l=T.isURLSearchParams(t)?t.toString():new l0(t,r).toString(a),l){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class ox{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){T.forEach(this.handlers,function(r){r!==null&&t(r)})}}const o0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},pP=typeof URLSearchParams<"u"?URLSearchParams:l0,yP=typeof FormData<"u"?FormData:null,mP=typeof Blob<"u"?Blob:null,vP={isBrowser:!0,classes:{URLSearchParams:pP,FormData:yP,Blob:mP},protocols:["http","https","file","blob","url","data"]},u0=typeof window<"u"&&typeof document<"u",jy=typeof navigator=="object"&&navigator||void 0,gP=u0&&(!jy||["ReactNative","NativeScript","NS"].indexOf(jy.product)<0),bP=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",xP=u0&&window.location.href||"http://localhost",SP=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:u0,hasStandardBrowserEnv:gP,hasStandardBrowserWebWorkerEnv:bP,navigator:jy,origin:xP},Symbol.toStringTag,{value:"Module"})),wt={...SP,...vP};function OP(e,t){return ud(e,new wt.classes.URLSearchParams,{visitor:function(n,r,a,i){return wt.isNode&&T.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}const ux=U_;function G_(e){if(e>ux)throw new V("FormData field is too deeply nested ("+e+" levels). Max depth: "+ux,V.ERR_FORM_DATA_DEPTH_EXCEEDED)}function wP(e){const t=[],n=/\w+|\[(\w*)]/g;let r;for(;(r=n.exec(e))!==null;)G_(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function AP(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r=n.length;return l=!l&&T.isArray(a)?a.length:l,u?(T.hasOwnProp(a,l)?a[l]=T.isArray(a[l])?a[l].concat(r):[a[l],r]:a[l]=r,!o):((!T.hasOwnProp(a,l)||!T.isObject(a[l]))&&(a[l]=[]),t(n,r,a[l],i)&&T.isArray(a[l])&&(a[l]=AP(a[l])),!o)}if(T.isFormData(e)&&T.isFunction(e.entries)){const n={};return T.forEachEntry(e,(r,a)=>{t(wP(r),a,n,0)}),n}return null}const si=(e,t)=>e!=null&&T.hasOwnProp(e,t)?e[t]:void 0;function _P(e,t,n){if(T.isString(e))try{return(t||JSON.parse)(e),T.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Wu={transitional:o0,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=T.isObject(t);if(i&&T.isHTMLForm(t)&&(t=new FormData(t)),T.isFormData(t))return a?JSON.stringify(Y_(t)):t;if(T.isArrayBuffer(t)||T.isBuffer(t)||T.isStream(t)||T.isFile(t)||T.isBlob(t)||T.isReadableStream(t))return t;if(T.isArrayBufferView(t))return t.buffer;if(T.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(i){const u=si(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return OP(t,u).toString();if((o=T.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=si(this,"env"),f=s&&s.FormData;return ud(o?{"files[]":t}:t,f&&new f,u)}}return i||a?(n.setContentType("application/json",!1),_P(t)):t}],transformResponse:[function(t){const n=si(this,"transitional")||Wu.transitional,r=n&&n.forcedJSONParsing,a=si(this,"responseType"),i=a==="json";if(T.isResponse(t)||T.isReadableStream(t))return t;if(t&&T.isString(t)&&(r&&!a||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,si(this,"parseReviver"))}catch(u){if(o)throw u.name==="SyntaxError"?V.from(u,V.ERR_BAD_RESPONSE,this,null,si(this,"response")):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:wt.classes.FormData,Blob:wt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};T.forEach(["delete","get","head","post","put","patch","query"],e=>{Wu.headers[e]={}});function Gh(e,t){const n=this||Wu,r=t||n,a=Ct.from(r.headers);let i=r.data;return T.forEach(e,function(o){i=o.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function X_(e){return!!(e&&e.__CANCEL__)}let Zu=class extends V{constructor(t,n,r){super(t??"canceled",V.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function V_(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new V("Request failed with status code "+n.status,n.status>=400&&n.status<500?V.ERR_BAD_REQUEST:V.ERR_BAD_RESPONSE,n.config,n.request,n))}function EP(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function jP(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,l;return t=t!==void 0?t:1e3,function(u){const s=Date.now(),f=r[i];l||(l=s),n[a]=u,r[a]=s;let c=i,d=0;for(;c!==a;)d+=n[c++],c=c%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),s-l{n=f,a=null,i&&(clearTimeout(i),i=null),e(...s)};return[(...s)=>{const f=Date.now(),c=f-n;c>=r?l(s,f):(a=s,i||(i=setTimeout(()=>{i=null,l(a)},r-c)))},()=>a&&l(a)]}const zc=(e,t,n=3)=>{let r=0;const a=jP(50,250);return TP(i=>{if(!i||typeof i.loaded!="number")return;const l=i.loaded,o=i.lengthComputable?i.total:void 0,u=o!=null?Math.min(l,o):l,s=Math.max(0,u-r),f=a(s);r=Math.max(r,u);const c={loaded:u,total:o,progress:o?u/o:void 0,bytes:s,rate:f||void 0,estimated:f&&o?(o-u)/f:void 0,event:i,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(c)},n)},sx=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},cx=e=>(...t)=>T.asap(()=>e(...t)),NP=wt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,wt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(wt.origin),wt.navigator&&/(msie|trident)/i.test(wt.navigator.userAgent)):()=>!0,MP=wt.hasStandardBrowserEnv?{write(e,t,n,r,a,i,l){if(typeof document>"u")return;const o=[`${e}=${encodeURIComponent(t)}`];T.isNumber(n)&&o.push(`expires=${new Date(n).toUTCString()}`),T.isString(r)&&o.push(`path=${r}`),T.isString(a)&&o.push(`domain=${a}`),i===!0&&o.push("secure"),T.isString(l)&&o.push(`SameSite=${l}`),document.cookie=o.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;ne instanceof Ct?{...e}:e;function Ya(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(f,c,d,h){return T.isPlainObject(f)&&T.isPlainObject(c)?T.merge.call({caseless:h},f,c):T.isPlainObject(c)?T.merge({},c):T.isArray(c)?c.slice():c}function a(f,c,d,h){if(T.isUndefined(c)){if(!T.isUndefined(f))return r(void 0,f,d,h)}else return r(f,c,d,h)}function i(f,c){if(!T.isUndefined(c))return r(void 0,c)}function l(f,c){if(T.isUndefined(c)){if(!T.isUndefined(f))return r(void 0,f)}else return r(void 0,c)}function o(f){const c=T.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!T.isUndefined(c))if(T.isPlainObject(c)){if(T.hasOwnProp(c,f))return c[f]}else return;const d=T.hasOwnProp(e,"transitional")?e.transitional:void 0;if(T.isPlainObject(d)&&T.hasOwnProp(d,f))return d[f]}function u(f,c,d){if(T.hasOwnProp(t,d))return r(f,c);if(T.hasOwnProp(e,d))return r(void 0,f)}const s={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,allowedSocketPaths:l,responseEncoding:l,validateStatus:u,headers:(f,c,d)=>a(dx(f),dx(c),d,!0)};return T.forEach(Object.keys({...e,...t}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const d=T.hasOwnProp(s,c)?s[c]:a,h=T.hasOwnProp(e,c)?e[c]:void 0,x=T.hasOwnProp(t,c)?t[c]:void 0,g=d(h,x,c);T.isUndefined(g)&&d!==u||(n[c]=g)}),T.hasOwnProp(t,"validateStatus")&&T.isUndefined(t.validateStatus)&&o("validateStatusUndefinedResolves")===!1&&(T.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const BP=["content-type","content-length"];function LP(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,a])=>{BP.includes(r.toLowerCase())&&e.set(r,a)})}const kP=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function F_(e){const t=Ya({},e),n=d=>T.hasOwnProp(t,d)?t[d]:void 0,r=n("data");let a=n("withXSRFToken");const i=n("xsrfHeaderName"),l=n("xsrfCookieName");let o=n("headers");const u=n("auth"),s=n("baseURL"),f=n("allowAbsoluteUrls"),c=n("url");if(t.headers=o=Ct.from(o),t.url=q_(K_(s,c,f,t),n("params"),n("paramsSerializer")),u){const d=T.getSafeProp(u,"username")||"",h=T.getSafeProp(u,"password")||"";try{o.set("Authorization","Basic "+btoa(d+":"+(h?kP(h):"")))}catch(x){throw V.from(x,V.ERR_BAD_OPTION_VALUE,e)}}if(T.isFormData(r)&&(wt.hasStandardBrowserEnv||wt.hasStandardBrowserWebWorkerEnv||T.isReactNative(r)?o.setContentType(void 0):T.isFunction(r.getHeaders)&&LP(o,r.getHeaders(),n("formDataHeaderPolicy"))),wt.hasStandardBrowserEnv&&(T.isFunction(a)&&(a=a(t)),a===!0||a==null&&NP(t.url))){const h=i&&l&&MP.read(l);h&&o.set(i,h)}return t}const UP=typeof XMLHttpRequest<"u",IP=UP&&function(e){return new Promise(function(n,r){const a=F_(e);let i=a.data;const l=Ct.from(a.headers).normalize();let{responseType:o,onUploadProgress:u,onDownloadProgress:s}=a,f,c,d,h,x;function g(){h&&h(),x&&x(),a.cancelToken&&a.cancelToken.unsubscribe(f),a.signal&&a.signal.removeEventListener("abort",f)}let v=new XMLHttpRequest;v.open(a.method.toUpperCase(),a.url,!0),v.timeout=a.timeout;function y(){if(!v)return;const b=Ct.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),S={data:!o||o==="text"||o==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:b,config:e,request:v};V_(function(A){n(A),g()},function(A){r(A),g()},S),v=null}"onloadend"in v?v.onloadend=y:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.startsWith("file:"))||setTimeout(y)},v.onabort=function(){v&&(r(new V("Request aborted",V.ECONNABORTED,e,v)),g(),v=null)},v.onerror=function(O){const S=O&&O.message?O.message:"Network Error",w=new V(S,V.ERR_NETWORK,e,v);w.event=O||null,r(w),g(),v=null},v.ontimeout=function(){let O=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const S=a.transitional||o0;a.timeoutErrorMessage&&(O=a.timeoutErrorMessage),r(new V(O,S.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,e,v)),g(),v=null},i===void 0&&l.setContentType(null),"setRequestHeader"in v&&T.forEach(L_(l),function(O,S){v.setRequestHeader(S,O)}),T.isUndefined(a.withCredentials)||(v.withCredentials=!!a.withCredentials),o&&o!=="json"&&(v.responseType=a.responseType),s&&([d,x]=zc(s,!0),v.addEventListener("progress",d)),u&&v.upload&&([c,h]=zc(u),v.upload.addEventListener("progress",c),v.upload.addEventListener("loadend",h)),(a.cancelToken||a.signal)&&(f=b=>{v&&(r(!b||b.type?new Zu(null,e,v):b),v.abort(),g(),v=null)},a.cancelToken&&a.cancelToken.subscribe(f),a.signal&&(a.signal.aborted?f():a.signal.addEventListener("abort",f)));const m=EP(a.url);if(m&&!wt.protocols.includes(m)){r(new V("Unsupported protocol "+m+":",V.ERR_BAD_REQUEST,e)),g();return}v.send(i||null)})},HP=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const a=function(u){if(!r){r=!0,l();const s=u instanceof Error?u:this.reason;n.abort(s instanceof V?s:new Zu(s instanceof Error?s.message:s))}};let i=t&&setTimeout(()=>{i=null,a(new V(`timeout of ${t}ms exceeded`,V.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a,{once:!0}));const{signal:o}=n;return o.unsubscribe=()=>T.asap(l),o},qP=function*(e,t){let n=e.byteLength;if(n{const a=GP(e,t);let i=0,l,o=u=>{l||(l=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:s,value:f}=await a.next();if(s){o(),u.close();return}let c=f.byteLength;if(n){let d=i+=c;n(d)}u.enqueue(new Uint8Array(f))}catch(s){throw o(s),s}},cancel(u){return o(u),a.return()}},{highWaterMark:2})},Bc=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,XP=(e,t,n)=>t+2h>=2&&r.charCodeAt(h-2)===37&&r.charCodeAt(h-1)===51&&(r.charCodeAt(h)===68||r.charCodeAt(h)===100);s>=0&&(r.charCodeAt(s)===61?(u++,s--):f(s)&&(u++,s-=3)),u===1&&s>=0&&(r.charCodeAt(s)===61||f(s))&&u++;const d=Math.floor(l/4)*3-(u||0);return d>0?d:0}let i=0;for(let l=0,o=r.length;l=55296&&u<=56319&&l+1=56320&&s<=57343?(i+=4,l++):i+=3}else i+=3}return i}const s0="1.18.1",px=64*1024,{isFunction:As}=T,KP=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),yx=e=>{if(!T.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},mx=(e,...t)=>{try{return!!e(...t)}catch{return!1}},FP=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},QP=e=>{const t=T.global!==void 0&&T.global!==null?T.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=T.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:a,Request:i,Response:l}=e,o=a?As(a):typeof fetch=="function",u=As(i),s=As(l);if(!o)return!1;const f=o&&As(n),c=o&&(typeof r=="function"?(y=>m=>y.encode(m))(new r):async y=>new Uint8Array(await new i(y).arrayBuffer())),d=u&&f&&mx(()=>{let y=!1;const m=new i(wt.origin,{body:new n,method:"POST",get duplex(){return y=!0,"half"}}),b=m.headers.has("Content-Type");return m.body!=null&&m.body.cancel(),y&&!b}),h=s&&f&&mx(()=>T.isReadableStream(new l("").body)),x={stream:h&&(y=>y.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!x[y]&&(x[y]=(m,b)=>{let O=m&&m[y];if(O)return O.call(m);throw new V(`Response type '${y}' is not supported`,V.ERR_NOT_SUPPORT,b)})});const g=async y=>{if(y==null)return 0;if(T.isBlob(y))return y.size;if(T.isSpecCompliantForm(y))return(await new i(wt.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(T.isArrayBufferView(y)||T.isArrayBuffer(y))return y.byteLength;if(T.isURLSearchParams(y)&&(y=y+""),T.isString(y))return(await c(y)).byteLength},v=async(y,m)=>{const b=T.toFiniteNumber(y.getContentLength());return b??g(m)};return async y=>{let{url:m,method:b,data:O,signal:S,cancelToken:w,timeout:A,onDownloadProgress:E,onUploadProgress:j,responseType:$,headers:P,withCredentials:M="same-origin",fetchOptions:k,maxContentLength:z,maxBodyLength:B}=F_(y);const N=T.isNumber(z)&&z>-1,R=T.isNumber(B)&&B>-1,D=re=>T.hasOwnProp(y,re)?y[re]:void 0;let U=a||fetch;$=$?($+"").toLowerCase():"text";let q=HP([S,w&&w.toAbortSignal()],A),X=null;const G=q&&q.unsubscribe&&(()=>{q.unsubscribe()});let W,le=null;const _e=()=>new V("Request body larger than maxBodyLength limit",V.ERR_BAD_REQUEST,y,X);try{let re;const We=D("auth");if(We){const Q=T.getSafeProp(We,"username")||"",Ee=T.getSafeProp(We,"password")||"";re={username:Q,password:Ee}}if(FP(m)){const Q=new URL(m,wt.origin);if(!re&&(Q.username||Q.password)){const Ee=yx(Q.username),vt=yx(Q.password);re={username:Ee,password:vt}}(Q.username||Q.password)&&(Q.username="",Q.password="",m=Q.href)}if(re&&(P.delete("authorization"),P.set("Authorization","Basic "+btoa(KP((re.username||"")+":"+(re.password||""))))),N&&typeof m=="string"&&m.startsWith("data:")&&VP(m)>z)throw new V("maxContentLength size of "+z+" exceeded",V.ERR_BAD_RESPONSE,y,X);if(R&&b!=="get"&&b!=="head"){const Q=await g(O);if(typeof Q=="number"&&isFinite(Q)&&(W=Q,Q>B))throw _e()}const at=R&&(T.isReadableStream(O)||T.isStream(O)),K=(Q,Ee,vt)=>hx(Q,px,zt=>{if(R&&zt>B)throw le=_e();Ee&&Ee(zt)},vt);if(d&&b!=="get"&&b!=="head"&&(j||at)){if(W=W??await v(P,O),W!==0||at){let Q=new i(m,{method:"POST",body:O,duplex:"half"}),Ee;if(T.isFormData(O)&&(Ee=Q.headers.get("content-type"))&&P.setContentType(Ee),Q.body){const[vt,zt]=j&&sx(W,zc(cx(j)))||[];O=K(Q.body,vt,zt)}}}else if(at&&!u&&f&&b!=="get"&&b!=="head")O=K(O);else if(at&&u&&!d&&b!=="get"&&b!=="head")throw new V("Stream request bodies are not supported by the current fetch implementation",V.ERR_NOT_SUPPORT,y,X);T.isString(M)||(M=M?"include":"omit");const ee=u&&"credentials"in i.prototype;if(T.isFormData(O)){const Q=P.getContentType();Q&&/^multipart\/form-data/i.test(Q)&&!/boundary=/i.test(Q)&&P.delete("content-type")}P.set("User-Agent","axios/"+s0,!1);const ae={...k,signal:q,method:b.toUpperCase(),headers:L_(P.normalize()),body:O,duplex:"half",credentials:ee?M:void 0};X=u&&new i(m,ae);let H=await(u?U(X,k):U(m,ae));const Re=Ct.from(H.headers);if(N){const Q=T.toFiniteNumber(Re.getContentLength());if(Q!=null&&Q>z)throw new V("maxContentLength size of "+z+" exceeded",V.ERR_BAD_RESPONSE,y,X)}const ue=h&&($==="stream"||$==="response");if(h&&H.body&&(E||N||ue&&G)){const Q={};["status","statusText","headers"].forEach(Vt=>{Q[Vt]=H[Vt]});const Ee=T.toFiniteNumber(Re.getContentLength()),[vt,zt]=E&&sx(Ee,zc(cx(E),!0))||[];let ya=0;const Fn=Vt=>{if(N&&(ya=Vt,ya>z))throw new V("maxContentLength size of "+z+" exceeded",V.ERR_BAD_RESPONSE,y,X);vt&&vt(Vt)};H=new l(hx(H.body,px,Fn,()=>{zt&&zt(),G&&G()}),Q)}$=$||"text";let Se=await x[T.findKey(x,$)||"text"](H,y);if(N&&!h&&!ue){let Q;if(Se!=null&&(typeof Se.byteLength=="number"?Q=Se.byteLength:typeof Se.size=="number"?Q=Se.size:typeof Se=="string"&&(Q=typeof r=="function"?new r().encode(Se).byteLength:Se.length)),typeof Q=="number"&&Q>z)throw new V("maxContentLength size of "+z+" exceeded",V.ERR_BAD_RESPONSE,y,X)}return!ue&&G&&G(),await new Promise((Q,Ee)=>{V_(Q,Ee,{data:Se,headers:Ct.from(H.headers),status:H.status,statusText:H.statusText,config:y,request:X})})}catch(re){if(G&&G(),q&&q.aborted&&q.reason instanceof V){const We=q.reason;throw We.config=y,X&&(We.request=X),re!==We&&Object.defineProperty(We,"cause",{__proto__:null,value:re,writable:!0,enumerable:!1,configurable:!0}),We}if(le)throw X&&!le.request&&(le.request=X),le;if(re instanceof V)throw X&&!re.request&&(re.request=X),re;if(re&&re.name==="TypeError"&&/Load failed|fetch/i.test(re.message)){const We=new V("Network Error",V.ERR_NETWORK,y,X,re&&re.response);throw Object.defineProperty(We,"cause",{__proto__:null,value:re.cause||re,writable:!0,enumerable:!1,configurable:!0}),We}throw V.from(re,re&&re.code,y,X,re&&re.response)}}},WP=new Map,Q_=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:a}=t,i=[r,a,n];let l=i.length,o=l,u,s,f=WP;for(;o--;)u=i[o],s=f.get(u),s===void 0&&f.set(u,s=o?new Map:QP(t)),f=s;return s};Q_();const c0={http:cP,xhr:IP,fetch:{get:Q_}};T.forEach(c0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const vx=e=>`- ${e}`,ZP=e=>T.isFunction(e)||e===null||e===!1;function JP(e,t){e=T.isArray(e)?e:[e];const{length:n}=e;let r,a;const i={};for(let l=0;l`adapter ${u} `+(s===!1?"is not supported by the environment":"is not available in the build"));let o=n?l.length>1?`since :
+ */const od=le("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const s$=le("UserCheck",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const N_=le("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const c$=le("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const M_=le("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);function C_(e,t){return function(){return e.apply(t,arguments)}}const{toString:f$}=Object.prototype,{getPrototypeOf:tl}=Object,{iterator:Fu,toStringTag:$_}=Symbol,zc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),tu=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),zc(n,t))return!0;n=tl(n)}return!1},d$=(e,t)=>e!=null&&tu(e,t)?e[t]:void 0,a0=(e=>t=>{const n=f$.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Dn=e=>(e=e.toLowerCase(),t=>a0(t)===e),ud=e=>t=>typeof t===e,{isArray:Ga}=Array,nl=ud("undefined");function Rl(e){return e!==null&&!nl(e)&&e.constructor!==null&&!nl(e.constructor)&&qt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const P_=Dn("ArrayBuffer");function h$(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&P_(e.buffer),t}const p$=ud("string"),qt=ud("function"),D_=ud("number"),zl=e=>e!==null&&typeof e=="object",y$=e=>e===!0||e===!1,tc=e=>{if(!zl(e))return!1;const t=tl(e);return(t===null||t===Object.prototype||tl(t)===null)&&!tu(e,$_)&&!tu(e,Fu)},m$=e=>{if(!zl(e)||Rl(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},v$=Dn("Date"),g$=Dn("File"),b$=e=>!!(e&&typeof e.uri<"u"),x$=e=>e&&typeof e.getParts<"u",S$=Dn("Blob"),O$=Dn("FileList"),w$=e=>zl(e)&&qt(e.pipe);function A$(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const rx=A$(),ax=typeof rx.FormData<"u"?rx.FormData:void 0,_$=e=>{if(!e)return!1;if(ax&&e instanceof ax)return!0;const t=tl(e);if(!t||t===Object.prototype||!qt(e.append))return!1;const n=a0(e);return n==="formdata"||n==="object"&&qt(e.toString)&&e.toString()==="[object FormData]"},E$=Dn("URLSearchParams"),[j$,T$,N$,M$]=["ReadableStream","Request","Response","Headers"].map(Dn),C$=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qu(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),Ga(e))for(r=0,a=e.length;r0;)if(a=n[r],t===a.toLowerCase())return a;return null}const _a=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,z_=e=>!nl(e)&&e!==_a;function _y(...e){const{caseless:t,skipUndefined:n}=z_(this)&&this||{},r={},a=(i,l)=>{if(l==="__proto__"||l==="constructor"||l==="prototype")return;const o=t&&typeof l=="string"&&R_(r,l)||l,u=zc(r,o)?r[o]:void 0;tc(u)&&tc(i)?r[o]=_y(u,i):tc(i)?r[o]=_y({},i):Ga(i)?r[o]=i.slice():(!n||!nl(i))&&(r[o]=i)};for(let i=0,l=e.length;i(Qu(t,(a,i)=>{n&&qt(a)?Object.defineProperty(e,i,{__proto__:null,value:C_(a,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),P$=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),D$=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},R$=(e,t,n,r)=>{let a,i,l;const o={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)l=a[i],(!r||r(l,e,t))&&!o[l]&&(t[l]=e[l],o[l]=!0);e=n!==!1&&tl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},z$=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},B$=e=>{if(!e)return null;if(Ga(e))return e;let t=e.length;if(!D_(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},L$=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&tl(Uint8Array)),k$=(e,t)=>{const r=(e&&e[Fu]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},U$=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},I$=Dn("HTMLFormElement"),H$=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),{propertyIsEnumerable:q$}=Object.prototype,G$=Dn("RegExp"),B_=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Qu(n,(a,i)=>{let l;(l=t(a,i,e))!==!1&&(r[i]=l||a)}),Object.defineProperties(e,r)},Y$=e=>{B_(e,(t,n)=>{if(qt(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(qt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},X$=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return Ga(e)?r(e):r(String(e).split(t)),n},V$=()=>{},K$=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function F$(e){return!!(e&&qt(e.append)&&e[$_]==="FormData"&&e[Fu])}const Q$=e=>{const t=new WeakSet,n=r=>{if(zl(r)){if(t.has(r))return;if(Rl(r))return r;if(!("toJSON"in r)){t.add(r);const a=Ga(r)?[]:{};return Qu(r,(i,l)=>{const o=n(i);!nl(o)&&(a[l]=o)}),t.delete(r),a}}return r};return n(e)},W$=Dn("AsyncFunction"),Z$=e=>e&&(zl(e)||qt(e))&&qt(e.then)&&qt(e.catch),L_=((e,t)=>e?setImmediate:t?((n,r)=>(_a.addEventListener("message",({source:a,data:i})=>{a===_a&&i===n&&r.length&&r.shift()()},!1),a=>{r.push(a),_a.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",qt(_a.postMessage)),J$=typeof queueMicrotask<"u"?queueMicrotask.bind(_a):typeof process<"u"&&process.nextTick||L_,k_=e=>e!=null&&qt(e[Fu]),eP=e=>e!=null&&tu(e,Fu)&&k_(e),T={isArray:Ga,isArrayBuffer:P_,isBuffer:Rl,isFormData:_$,isArrayBufferView:h$,isString:p$,isNumber:D_,isBoolean:y$,isObject:zl,isPlainObject:tc,isEmptyObject:m$,isReadableStream:j$,isRequest:T$,isResponse:N$,isHeaders:M$,isUndefined:nl,isDate:v$,isFile:g$,isReactNativeBlob:b$,isReactNative:x$,isBlob:S$,isRegExp:G$,isFunction:qt,isStream:w$,isURLSearchParams:E$,isTypedArray:L$,isFileList:O$,forEach:Qu,merge:_y,extend:$$,trim:C$,stripBOM:P$,inherits:D$,toFlatObject:R$,kindOf:a0,kindOfTest:Dn,endsWith:z$,toArray:B$,forEachEntry:k$,matchAll:U$,isHTMLForm:I$,hasOwnProperty:zc,hasOwnProp:zc,hasOwnInPrototypeChain:tu,getSafeProp:d$,reduceDescriptors:B_,freezeMethods:Y$,toObjectSet:X$,toCamelCase:H$,noop:V$,toFiniteNumber:K$,findKey:R_,global:_a,isContextDefined:z_,isSpecCompliantForm:F$,toJSONObject:Q$,isAsyncFn:W$,isThenable:Z$,setImmediate:L_,asap:J$,isIterable:k_,isSafeIterable:eP},tP=T.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),nP=e=>{const t={};let n,r,a;return e&&e.split(`
+`).forEach(function(l){a=l.indexOf(":"),n=l.substring(0,a).trim().toLowerCase(),r=l.substring(a+1).trim(),!(!n||t[n]&&tP[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function rP(e){let t=0,n=e.length;for(;tt;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const aP=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),iP=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function i0(e,t){return T.isArray(e)?e.map(n=>i0(n,t)):rP(String(e).replace(t,""))}const lP=e=>i0(e,aP),oP=e=>i0(e,iP);function U_(e){const t=Object.create(null);return T.forEach(e.toJSON(),(n,r)=>{t[r]=oP(n)}),t}const ix=Symbol("internals");function no(e){return e&&String(e).trim().toLowerCase()}function nc(e){return e===!1||e==null?e:T.isArray(e)?e.map(nc):lP(String(e))}function uP(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const sP=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function qh(e,t,n,r,a){if(T.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!T.isString(t)){if(T.isString(r))return t.indexOf(r)!==-1;if(T.isRegExp(r))return r.test(t)}}function cP(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function fP(e,t){const n=T.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(a,i,l){return this[r].call(this,t,a,i,l)},configurable:!0})})}let Ct=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(o,u,s){const f=no(u);if(!f)return;const c=T.findKey(a,f);(!c||a[c]===void 0||s===!0||s===void 0&&a[c]!==!1)&&(a[c||u]=nc(o))}const l=(o,u)=>T.forEach(o,(s,f)=>i(s,f,u));if(T.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(T.isString(t)&&(t=t.trim())&&!sP(t))l(nP(t),n);else if(T.isObject(t)&&T.isSafeIterable(t)){let o=Object.create(null),u,s;for(const f of t){if(!T.isArray(f))throw new TypeError("Object iterator must return a key-value pair");s=f[0],T.hasOwnProp(o,s)?(u=o[s],o[s]=T.isArray(u)?[...u,f[1]]:[u,f[1]]):o[s]=f[1]}l(o,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=no(t),t){const r=T.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return uP(a);if(T.isFunction(n))return n.call(this,a,r);if(T.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=no(t),t){const r=T.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||qh(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(l){if(l=no(l),l){const o=T.findKey(r,l);o&&(!n||qh(r,r[o],o,n))&&(delete r[o],a=!0)}}return T.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||qh(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return T.forEach(this,(a,i)=>{const l=T.findKey(r,i);if(l){n[l]=nc(a),delete n[i];return}const o=t?cP(i):String(i).trim();o!==i&&delete n[i],n[o]=nc(a),r[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return T.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&T.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
+`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[ix]=this[ix]={accessors:{}}).accessors,a=this.prototype;function i(l){const o=no(l);r[o]||(fP(a,l),r[o]=!0)}return T.isArray(t)?t.forEach(i):i(t),this}};Ct.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);T.reduceDescriptors(Ct.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});T.freezeMethods(Ct);const dP="[REDACTED ****]";function hP(e){if(T.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(T.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function pP(e,t){const n=new Set(t.map(i=>String(i).toLowerCase())),r=[],a=i=>{if(i===null||typeof i!="object"||T.isBuffer(i))return i;if(r.indexOf(i)!==-1)return;i instanceof Ct&&(i=i.toJSON()),r.push(i);let l;if(T.isArray(i))l=[],i.forEach((o,u)=>{const s=a(o);T.isUndefined(s)||(l[u]=s)});else{if(!T.isPlainObject(i)&&hP(i))return r.pop(),i;l=Object.create(null);for(const[o,u]of Object.entries(i)){const s=n.has(o.toLowerCase())?dP:a(u);T.isUndefined(s)||(l[o]=s)}}return r.pop(),l};return a(e)}let V=class I_ extends Error{static from(t,n,r,a,i,l){const o=new I_(t.message,n||t.code,r,a,i);return Object.defineProperty(o,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),o.name=t.name,t.status!=null&&o.status==null&&(o.status=t.status),l&&Object.assign(o,l),o}constructor(t,n,r,a,i){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),a&&(this.request=a),i&&(this.response=i,this.status=i.status)}toJSON(){const t=this.config,n=t&&T.hasOwnProp(t,"redact")?t.redact:void 0,r=T.isArray(n)&&n.length>0?pP(t,n):T.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};V.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";V.ERR_BAD_OPTION="ERR_BAD_OPTION";V.ECONNABORTED="ECONNABORTED";V.ETIMEDOUT="ETIMEDOUT";V.ECONNREFUSED="ECONNREFUSED";V.ERR_NETWORK="ERR_NETWORK";V.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";V.ERR_DEPRECATED="ERR_DEPRECATED";V.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";V.ERR_BAD_REQUEST="ERR_BAD_REQUEST";V.ERR_CANCELED="ERR_CANCELED";V.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";V.ERR_INVALID_URL="ERR_INVALID_URL";V.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const yP=null,H_=100;function Ey(e){return T.isPlainObject(e)||T.isArray(e)}function q_(e){return T.endsWith(e,"[]")?e.slice(0,-2):e}function Gh(e,t,n){return e?e.concat(t).map(function(a,i){return a=q_(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function mP(e){return T.isArray(e)&&!e.some(Ey)}const vP=T.toFlatObject(T,{},null,function(t){return/^is[A-Z]/.test(t)});function sd(e,t,n){if(!T.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=T.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,b){return!T.isUndefined(b[m])});const r=n.metaTokens,a=n.visitor||x,i=n.dots,l=n.indexes,o=n.Blob||typeof Blob<"u"&&Blob,u=n.maxDepth===void 0?H_:n.maxDepth,s=o&&T.isSpecCompliantForm(t),f=[];if(!T.isFunction(a))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(T.isDate(y))return y.toISOString();if(T.isBoolean(y))return y.toString();if(!s&&T.isBlob(y))throw new V("Blob is not supported. Use a Buffer instead.");if(T.isArrayBuffer(y)||T.isTypedArray(y)){if(s&&typeof o=="function")return new o([y]);if(typeof Buffer<"u")return Buffer.from(y);throw new V("Blob is not supported. Use a Buffer instead.",V.ERR_NOT_SUPPORT)}return y}function d(y){if(y>u)throw new V("Object is too deeply nested ("+y+" levels). Max depth: "+u,V.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(y,m){if(u===1/0)return JSON.stringify(y);const b=[];return JSON.stringify(y,function(S,w){if(!T.isObject(w))return w;for(;b.length&&b[b.length-1]!==this;)b.pop();return b.push(w),d(m+b.length-1),w})}function x(y,m,b){let O=y;if(T.isReactNative(t)&&T.isReactNativeBlob(y))return t.append(Gh(b,m,i),c(y)),!1;if(y&&!b&&typeof y=="object"){if(T.endsWith(m,"{}"))m=r?m:m.slice(0,-2),y=h(y,1);else if(T.isArray(y)&&mP(y)||(T.isFileList(y)||T.endsWith(m,"[]"))&&(O=T.toArray(y)))return m=q_(m),O.forEach(function(w,A){!(T.isUndefined(w)||w===null)&&t.append(l===!0?Gh([m],A,i):l===null?m:m+"[]",c(w))}),!1}return Ey(y)?!0:(t.append(Gh(b,m,i),c(y)),!1)}const g=Object.assign(vP,{defaultVisitor:x,convertValue:c,isVisitable:Ey});function v(y,m,b=0){if(!T.isUndefined(y)){if(d(b),f.indexOf(y)!==-1)throw new Error("Circular reference detected in "+m.join("."));f.push(y),T.forEach(y,function(S,w){(!(T.isUndefined(S)||S===null)&&a.call(t,S,T.isString(w)?w.trim():w,m,g))===!0&&v(S,m?m.concat(w):[w],b+1)}),f.pop()}}if(!T.isObject(e))throw new TypeError("data must be an object");return v(e),t}function lx(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function l0(e,t){this._pairs=[],e&&sd(e,this,t)}const G_=l0.prototype;G_.append=function(t,n){this._pairs.push([t,n])};G_.toString=function(t){const n=t?r=>t.call(this,r,lx):lx;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function gP(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Y_(e,t,n){if(!t)return e;e=e||"";const r=T.isFunction(n)?{serialize:n}:n,a=T.getSafeProp(r,"encode")||gP,i=T.getSafeProp(r,"serialize");let l;if(i?l=i(t,r):l=T.isURLSearchParams(t)?t.toString():new l0(t,r).toString(a),l){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class ox{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){T.forEach(this.handlers,function(r){r!==null&&t(r)})}}const o0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},bP=typeof URLSearchParams<"u"?URLSearchParams:l0,xP=typeof FormData<"u"?FormData:null,SP=typeof Blob<"u"?Blob:null,OP={isBrowser:!0,classes:{URLSearchParams:bP,FormData:xP,Blob:SP},protocols:["http","https","file","blob","url","data"]},u0=typeof window<"u"&&typeof document<"u",jy=typeof navigator=="object"&&navigator||void 0,wP=u0&&(!jy||["ReactNative","NativeScript","NS"].indexOf(jy.product)<0),AP=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",_P=u0&&window.location.href||"http://localhost",EP=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:u0,hasStandardBrowserEnv:wP,hasStandardBrowserWebWorkerEnv:AP,navigator:jy,origin:_P},Symbol.toStringTag,{value:"Module"})),wt={...EP,...OP};function jP(e,t){return sd(e,new wt.classes.URLSearchParams,{visitor:function(n,r,a,i){return wt.isNode&&T.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}const ux=H_;function X_(e){if(e>ux)throw new V("FormData field is too deeply nested ("+e+" levels). Max depth: "+ux,V.ERR_FORM_DATA_DEPTH_EXCEEDED)}function TP(e){const t=[],n=/\w+|\[(\w*)]/g;let r;for(;(r=n.exec(e))!==null;)X_(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function NP(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r=n.length;return l=!l&&T.isArray(a)?a.length:l,u?(T.hasOwnProp(a,l)?a[l]=T.isArray(a[l])?a[l].concat(r):[a[l],r]:a[l]=r,!o):((!T.hasOwnProp(a,l)||!T.isObject(a[l]))&&(a[l]=[]),t(n,r,a[l],i)&&T.isArray(a[l])&&(a[l]=NP(a[l])),!o)}if(T.isFormData(e)&&T.isFunction(e.entries)){const n={};return T.forEachEntry(e,(r,a)=>{t(TP(r),a,n,0)}),n}return null}const si=(e,t)=>e!=null&&T.hasOwnProp(e,t)?e[t]:void 0;function MP(e,t,n){if(T.isString(e))try{return(t||JSON.parse)(e),T.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Wu={transitional:o0,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=T.isObject(t);if(i&&T.isHTMLForm(t)&&(t=new FormData(t)),T.isFormData(t))return a?JSON.stringify(V_(t)):t;if(T.isArrayBuffer(t)||T.isBuffer(t)||T.isStream(t)||T.isFile(t)||T.isBlob(t)||T.isReadableStream(t))return t;if(T.isArrayBufferView(t))return t.buffer;if(T.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(i){const u=si(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return jP(t,u).toString();if((o=T.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=si(this,"env"),f=s&&s.FormData;return sd(o?{"files[]":t}:t,f&&new f,u)}}return i||a?(n.setContentType("application/json",!1),MP(t)):t}],transformResponse:[function(t){const n=si(this,"transitional")||Wu.transitional,r=n&&n.forcedJSONParsing,a=si(this,"responseType"),i=a==="json";if(T.isResponse(t)||T.isReadableStream(t))return t;if(t&&T.isString(t)&&(r&&!a||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,si(this,"parseReviver"))}catch(u){if(o)throw u.name==="SyntaxError"?V.from(u,V.ERR_BAD_RESPONSE,this,null,si(this,"response")):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:wt.classes.FormData,Blob:wt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};T.forEach(["delete","get","head","post","put","patch","query"],e=>{Wu.headers[e]={}});function Yh(e,t){const n=this||Wu,r=t||n,a=Ct.from(r.headers);let i=r.data;return T.forEach(e,function(o){i=o.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function K_(e){return!!(e&&e.__CANCEL__)}let Zu=class extends V{constructor(t,n,r){super(t??"canceled",V.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function F_(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new V("Request failed with status code "+n.status,n.status>=400&&n.status<500?V.ERR_BAD_REQUEST:V.ERR_BAD_RESPONSE,n.config,n.request,n))}function CP(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function $P(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,l;return t=t!==void 0?t:1e3,function(u){const s=Date.now(),f=r[i];l||(l=s),n[a]=u,r[a]=s;let c=i,d=0;for(;c!==a;)d+=n[c++],c=c%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),s-l{n=f,a=null,i&&(clearTimeout(i),i=null),e(...s)};return[(...s)=>{const f=Date.now(),c=f-n;c>=r?l(s,f):(a=s,i||(i=setTimeout(()=>{i=null,l(a)},r-c)))},()=>a&&l(a)]}const Bc=(e,t,n=3)=>{let r=0;const a=$P(50,250);return PP(i=>{if(!i||typeof i.loaded!="number")return;const l=i.loaded,o=i.lengthComputable?i.total:void 0,u=o!=null?Math.min(l,o):l,s=Math.max(0,u-r),f=a(s);r=Math.max(r,u);const c={loaded:u,total:o,progress:o?u/o:void 0,bytes:s,rate:f||void 0,estimated:f&&o?(o-u)/f:void 0,event:i,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(c)},n)},sx=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},cx=e=>(...t)=>T.asap(()=>e(...t)),DP=wt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,wt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(wt.origin),wt.navigator&&/(msie|trident)/i.test(wt.navigator.userAgent)):()=>!0,RP=wt.hasStandardBrowserEnv?{write(e,t,n,r,a,i,l){if(typeof document>"u")return;const o=[`${e}=${encodeURIComponent(t)}`];T.isNumber(n)&&o.push(`expires=${new Date(n).toUTCString()}`),T.isString(r)&&o.push(`path=${r}`),T.isString(a)&&o.push(`domain=${a}`),i===!0&&o.push("secure"),T.isString(l)&&o.push(`SameSite=${l}`),document.cookie=o.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;ne instanceof Ct?{...e}:e;function Ya(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(f,c,d,h){return T.isPlainObject(f)&&T.isPlainObject(c)?T.merge.call({caseless:h},f,c):T.isPlainObject(c)?T.merge({},c):T.isArray(c)?c.slice():c}function a(f,c,d,h){if(T.isUndefined(c)){if(!T.isUndefined(f))return r(void 0,f,d,h)}else return r(f,c,d,h)}function i(f,c){if(!T.isUndefined(c))return r(void 0,c)}function l(f,c){if(T.isUndefined(c)){if(!T.isUndefined(f))return r(void 0,f)}else return r(void 0,c)}function o(f){const c=T.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!T.isUndefined(c))if(T.isPlainObject(c)){if(T.hasOwnProp(c,f))return c[f]}else return;const d=T.hasOwnProp(e,"transitional")?e.transitional:void 0;if(T.isPlainObject(d)&&T.hasOwnProp(d,f))return d[f]}function u(f,c,d){if(T.hasOwnProp(t,d))return r(f,c);if(T.hasOwnProp(e,d))return r(void 0,f)}const s={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,allowedSocketPaths:l,responseEncoding:l,validateStatus:u,headers:(f,c,d)=>a(dx(f),dx(c),d,!0)};return T.forEach(Object.keys({...e,...t}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const d=T.hasOwnProp(s,c)?s[c]:a,h=T.hasOwnProp(e,c)?e[c]:void 0,x=T.hasOwnProp(t,c)?t[c]:void 0,g=d(h,x,c);T.isUndefined(g)&&d!==u||(n[c]=g)}),T.hasOwnProp(t,"validateStatus")&&T.isUndefined(t.validateStatus)&&o("validateStatusUndefinedResolves")===!1&&(T.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const HP=["content-type","content-length"];function qP(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,a])=>{HP.includes(r.toLowerCase())&&e.set(r,a)})}const GP=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function W_(e){const t=Ya({},e),n=d=>T.hasOwnProp(t,d)?t[d]:void 0,r=n("data");let a=n("withXSRFToken");const i=n("xsrfHeaderName"),l=n("xsrfCookieName");let o=n("headers");const u=n("auth"),s=n("baseURL"),f=n("allowAbsoluteUrls"),c=n("url");if(t.headers=o=Ct.from(o),t.url=Y_(Q_(s,c,f,t),n("params"),n("paramsSerializer")),u){const d=T.getSafeProp(u,"username")||"",h=T.getSafeProp(u,"password")||"";try{o.set("Authorization","Basic "+btoa(d+":"+(h?GP(h):"")))}catch(x){throw V.from(x,V.ERR_BAD_OPTION_VALUE,e)}}if(T.isFormData(r)&&(wt.hasStandardBrowserEnv||wt.hasStandardBrowserWebWorkerEnv||T.isReactNative(r)?o.setContentType(void 0):T.isFunction(r.getHeaders)&&qP(o,r.getHeaders(),n("formDataHeaderPolicy"))),wt.hasStandardBrowserEnv&&(T.isFunction(a)&&(a=a(t)),a===!0||a==null&&DP(t.url))){const h=i&&l&&RP.read(l);h&&o.set(i,h)}return t}const YP=typeof XMLHttpRequest<"u",XP=YP&&function(e){return new Promise(function(n,r){const a=W_(e);let i=a.data;const l=Ct.from(a.headers).normalize();let{responseType:o,onUploadProgress:u,onDownloadProgress:s}=a,f,c,d,h,x;function g(){h&&h(),x&&x(),a.cancelToken&&a.cancelToken.unsubscribe(f),a.signal&&a.signal.removeEventListener("abort",f)}let v=new XMLHttpRequest;v.open(a.method.toUpperCase(),a.url,!0),v.timeout=a.timeout;function y(){if(!v)return;const b=Ct.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),S={data:!o||o==="text"||o==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:b,config:e,request:v};F_(function(A){n(A),g()},function(A){r(A),g()},S),v=null}"onloadend"in v?v.onloadend=y:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.startsWith("file:"))||setTimeout(y)},v.onabort=function(){v&&(r(new V("Request aborted",V.ECONNABORTED,e,v)),g(),v=null)},v.onerror=function(O){const S=O&&O.message?O.message:"Network Error",w=new V(S,V.ERR_NETWORK,e,v);w.event=O||null,r(w),g(),v=null},v.ontimeout=function(){let O=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const S=a.transitional||o0;a.timeoutErrorMessage&&(O=a.timeoutErrorMessage),r(new V(O,S.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,e,v)),g(),v=null},i===void 0&&l.setContentType(null),"setRequestHeader"in v&&T.forEach(U_(l),function(O,S){v.setRequestHeader(S,O)}),T.isUndefined(a.withCredentials)||(v.withCredentials=!!a.withCredentials),o&&o!=="json"&&(v.responseType=a.responseType),s&&([d,x]=Bc(s,!0),v.addEventListener("progress",d)),u&&v.upload&&([c,h]=Bc(u),v.upload.addEventListener("progress",c),v.upload.addEventListener("loadend",h)),(a.cancelToken||a.signal)&&(f=b=>{v&&(r(!b||b.type?new Zu(null,e,v):b),v.abort(),g(),v=null)},a.cancelToken&&a.cancelToken.subscribe(f),a.signal&&(a.signal.aborted?f():a.signal.addEventListener("abort",f)));const m=CP(a.url);if(m&&!wt.protocols.includes(m)){r(new V("Unsupported protocol "+m+":",V.ERR_BAD_REQUEST,e)),g();return}v.send(i||null)})},VP=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const a=function(u){if(!r){r=!0,l();const s=u instanceof Error?u:this.reason;n.abort(s instanceof V?s:new Zu(s instanceof Error?s.message:s))}};let i=t&&setTimeout(()=>{i=null,a(new V(`timeout of ${t}ms exceeded`,V.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a,{once:!0}));const{signal:o}=n;return o.unsubscribe=()=>T.asap(l),o},KP=function*(e,t){let n=e.byteLength;if(n{const a=FP(e,t);let i=0,l,o=u=>{l||(l=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:s,value:f}=await a.next();if(s){o(),u.close();return}let c=f.byteLength;if(n){let d=i+=c;n(d)}u.enqueue(new Uint8Array(f))}catch(s){throw o(s),s}},cancel(u){return o(u),a.return()}},{highWaterMark:2})},Lc=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,WP=(e,t,n)=>t+2h>=2&&r.charCodeAt(h-2)===37&&r.charCodeAt(h-1)===51&&(r.charCodeAt(h)===68||r.charCodeAt(h)===100);s>=0&&(r.charCodeAt(s)===61?(u++,s--):f(s)&&(u++,s-=3)),u===1&&s>=0&&(r.charCodeAt(s)===61||f(s))&&u++;const d=Math.floor(l/4)*3-(u||0);return d>0?d:0}let i=0;for(let l=0,o=r.length;l=55296&&u<=56319&&l+1=56320&&s<=57343?(i+=4,l++):i+=3}else i+=3}return i}const s0="1.18.1",px=64*1024,{isFunction:As}=T,JP=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),yx=e=>{if(!T.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},mx=(e,...t)=>{try{return!!e(...t)}catch{return!1}},eD=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},tD=e=>{const t=T.global!==void 0&&T.global!==null?T.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=T.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:a,Request:i,Response:l}=e,o=a?As(a):typeof fetch=="function",u=As(i),s=As(l);if(!o)return!1;const f=o&&As(n),c=o&&(typeof r=="function"?(y=>m=>y.encode(m))(new r):async y=>new Uint8Array(await new i(y).arrayBuffer())),d=u&&f&&mx(()=>{let y=!1;const m=new i(wt.origin,{body:new n,method:"POST",get duplex(){return y=!0,"half"}}),b=m.headers.has("Content-Type");return m.body!=null&&m.body.cancel(),y&&!b}),h=s&&f&&mx(()=>T.isReadableStream(new l("").body)),x={stream:h&&(y=>y.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!x[y]&&(x[y]=(m,b)=>{let O=m&&m[y];if(O)return O.call(m);throw new V(`Response type '${y}' is not supported`,V.ERR_NOT_SUPPORT,b)})});const g=async y=>{if(y==null)return 0;if(T.isBlob(y))return y.size;if(T.isSpecCompliantForm(y))return(await new i(wt.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(T.isArrayBufferView(y)||T.isArrayBuffer(y))return y.byteLength;if(T.isURLSearchParams(y)&&(y=y+""),T.isString(y))return(await c(y)).byteLength},v=async(y,m)=>{const b=T.toFiniteNumber(y.getContentLength());return b??g(m)};return async y=>{let{url:m,method:b,data:O,signal:S,cancelToken:w,timeout:A,onDownloadProgress:E,onUploadProgress:j,responseType:$,headers:P,withCredentials:M="same-origin",fetchOptions:k,maxContentLength:z,maxBodyLength:B}=W_(y);const N=T.isNumber(z)&&z>-1,R=T.isNumber(B)&&B>-1,D=re=>T.hasOwnProp(y,re)?y[re]:void 0;let U=a||fetch;$=$?($+"").toLowerCase():"text";let q=VP([S,w&&w.toAbortSignal()],A),X=null;const G=q&&q.unsubscribe&&(()=>{q.unsubscribe()});let W,oe=null;const _e=()=>new V("Request body larger than maxBodyLength limit",V.ERR_BAD_REQUEST,y,X);try{let re;const We=D("auth");if(We){const Q=T.getSafeProp(We,"username")||"",Ee=T.getSafeProp(We,"password")||"";re={username:Q,password:Ee}}if(eD(m)){const Q=new URL(m,wt.origin);if(!re&&(Q.username||Q.password)){const Ee=yx(Q.username),gt=yx(Q.password);re={username:Ee,password:gt}}(Q.username||Q.password)&&(Q.username="",Q.password="",m=Q.href)}if(re&&(P.delete("authorization"),P.set("Authorization","Basic "+btoa(JP((re.username||"")+":"+(re.password||""))))),N&&typeof m=="string"&&m.startsWith("data:")&&ZP(m)>z)throw new V("maxContentLength size of "+z+" exceeded",V.ERR_BAD_RESPONSE,y,X);if(R&&b!=="get"&&b!=="head"){const Q=await g(O);if(typeof Q=="number"&&isFinite(Q)&&(W=Q,Q>B))throw _e()}const at=R&&(T.isReadableStream(O)||T.isStream(O)),K=(Q,Ee,gt)=>hx(Q,px,zt=>{if(R&&zt>B)throw oe=_e();Ee&&Ee(zt)},gt);if(d&&b!=="get"&&b!=="head"&&(j||at)){if(W=W??await v(P,O),W!==0||at){let Q=new i(m,{method:"POST",body:O,duplex:"half"}),Ee;if(T.isFormData(O)&&(Ee=Q.headers.get("content-type"))&&P.setContentType(Ee),Q.body){const[gt,zt]=j&&sx(W,Bc(cx(j)))||[];O=K(Q.body,gt,zt)}}}else if(at&&!u&&f&&b!=="get"&&b!=="head")O=K(O);else if(at&&u&&!d&&b!=="get"&&b!=="head")throw new V("Stream request bodies are not supported by the current fetch implementation",V.ERR_NOT_SUPPORT,y,X);T.isString(M)||(M=M?"include":"omit");const ee=u&&"credentials"in i.prototype;if(T.isFormData(O)){const Q=P.getContentType();Q&&/^multipart\/form-data/i.test(Q)&&!/boundary=/i.test(Q)&&P.delete("content-type")}P.set("User-Agent","axios/"+s0,!1);const ae={...k,signal:q,method:b.toUpperCase(),headers:U_(P.normalize()),body:O,duplex:"half",credentials:ee?M:void 0};X=u&&new i(m,ae);let H=await(u?U(X,k):U(m,ae));const Re=Ct.from(H.headers);if(N){const Q=T.toFiniteNumber(Re.getContentLength());if(Q!=null&&Q>z)throw new V("maxContentLength size of "+z+" exceeded",V.ERR_BAD_RESPONSE,y,X)}const se=h&&($==="stream"||$==="response");if(h&&H.body&&(E||N||se&&G)){const Q={};["status","statusText","headers"].forEach(Vt=>{Q[Vt]=H[Vt]});const Ee=T.toFiniteNumber(Re.getContentLength()),[gt,zt]=E&&sx(Ee,Bc(cx(E),!0))||[];let ya=0;const Fn=Vt=>{if(N&&(ya=Vt,ya>z))throw new V("maxContentLength size of "+z+" exceeded",V.ERR_BAD_RESPONSE,y,X);gt&>(Vt)};H=new l(hx(H.body,px,Fn,()=>{zt&&zt(),G&&G()}),Q)}$=$||"text";let Se=await x[T.findKey(x,$)||"text"](H,y);if(N&&!h&&!se){let Q;if(Se!=null&&(typeof Se.byteLength=="number"?Q=Se.byteLength:typeof Se.size=="number"?Q=Se.size:typeof Se=="string"&&(Q=typeof r=="function"?new r().encode(Se).byteLength:Se.length)),typeof Q=="number"&&Q>z)throw new V("maxContentLength size of "+z+" exceeded",V.ERR_BAD_RESPONSE,y,X)}return!se&&G&&G(),await new Promise((Q,Ee)=>{F_(Q,Ee,{data:Se,headers:Ct.from(H.headers),status:H.status,statusText:H.statusText,config:y,request:X})})}catch(re){if(G&&G(),q&&q.aborted&&q.reason instanceof V){const We=q.reason;throw We.config=y,X&&(We.request=X),re!==We&&Object.defineProperty(We,"cause",{__proto__:null,value:re,writable:!0,enumerable:!1,configurable:!0}),We}if(oe)throw X&&!oe.request&&(oe.request=X),oe;if(re instanceof V)throw X&&!re.request&&(re.request=X),re;if(re&&re.name==="TypeError"&&/Load failed|fetch/i.test(re.message)){const We=new V("Network Error",V.ERR_NETWORK,y,X,re&&re.response);throw Object.defineProperty(We,"cause",{__proto__:null,value:re.cause||re,writable:!0,enumerable:!1,configurable:!0}),We}throw V.from(re,re&&re.code,y,X,re&&re.response)}}},nD=new Map,Z_=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:a}=t,i=[r,a,n];let l=i.length,o=l,u,s,f=nD;for(;o--;)u=i[o],s=f.get(u),s===void 0&&f.set(u,s=o?new Map:tD(t)),f=s;return s};Z_();const c0={http:yP,xhr:XP,fetch:{get:Z_}};T.forEach(c0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const vx=e=>`- ${e}`,rD=e=>T.isFunction(e)||e===null||e===!1;function aD(e,t){e=T.isArray(e)?e:[e];const{length:n}=e;let r,a;const i={};for(let l=0;l`adapter ${u} `+(s===!1?"is not supported by the environment":"is not available in the build"));let o=n?l.length>1?`since :
`+l.map(vx).join(`
-`):" "+vx(l[0]):"as no adapter specified";throw new V("There is no suitable adapter to dispatch the request "+o,V.ERR_NOT_SUPPORT)}return a}const W_={getAdapter:JP,adapters:c0};function Yh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Zu(null,e)}function gx(e){return Yh(e),e.headers=Ct.from(e.headers),e.data=Gh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),W_.getAdapter(e.adapter||Wu.adapter,e)(e).then(function(r){Yh(e),e.response=r;try{r.data=Gh.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=Ct.from(r.headers),r},function(r){if(!X_(r)&&(Yh(e),r&&r.response)){e.response=r.response;try{r.response.data=Gh.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=Ct.from(r.response.headers)}return Promise.reject(r)})}const sd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{sd[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const bx={};sd.transitional=function(t,n,r){function a(i,l){return"[Axios v"+s0+"] Transitional option '"+i+"'"+l+(r?". "+r:"")}return(i,l,o)=>{if(t===!1)throw new V(a(l," has been removed"+(n?" in "+n:"")),V.ERR_DEPRECATED);return n&&!bx[l]&&(bx[l]=!0,console.warn(a(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,o):!0}};sd.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function eD(e,t,n){if(typeof e!="object"||e===null)throw new V("options must be an object",V.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],l=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(l){const o=e[i],u=o===void 0||l(o,i,e);if(u!==!0)throw new V("option "+i+" must be "+u,V.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new V("Unknown option "+i,V.ERR_BAD_OPTION)}}const rc={assertOptions:eD,validators:sd},jt=rc.validators;let Ra=class{constructor(t){this.defaults=t||{},this.interceptors={request:new ox,response:new ox}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const i=(()=>{if(!a.stack)return"";const l=a.stack.indexOf(`
+`):" "+vx(l[0]):"as no adapter specified";throw new V("There is no suitable adapter to dispatch the request "+o,V.ERR_NOT_SUPPORT)}return a}const J_={getAdapter:aD,adapters:c0};function Xh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Zu(null,e)}function gx(e){return Xh(e),e.headers=Ct.from(e.headers),e.data=Yh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),J_.getAdapter(e.adapter||Wu.adapter,e)(e).then(function(r){Xh(e),e.response=r;try{r.data=Yh.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=Ct.from(r.headers),r},function(r){if(!K_(r)&&(Xh(e),r&&r.response)){e.response=r.response;try{r.response.data=Yh.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=Ct.from(r.response.headers)}return Promise.reject(r)})}const cd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{cd[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const bx={};cd.transitional=function(t,n,r){function a(i,l){return"[Axios v"+s0+"] Transitional option '"+i+"'"+l+(r?". "+r:"")}return(i,l,o)=>{if(t===!1)throw new V(a(l," has been removed"+(n?" in "+n:"")),V.ERR_DEPRECATED);return n&&!bx[l]&&(bx[l]=!0,console.warn(a(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,o):!0}};cd.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function iD(e,t,n){if(typeof e!="object"||e===null)throw new V("options must be an object",V.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],l=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(l){const o=e[i],u=o===void 0||l(o,i,e);if(u!==!0)throw new V("option "+i+" must be "+u,V.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new V("Unknown option "+i,V.ERR_BAD_OPTION)}}const rc={assertOptions:iD,validators:cd},jt=rc.validators;let Ra=class{constructor(t){this.defaults=t||{},this.interceptors={request:new ox,response:new ox}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const i=(()=>{if(!a.stack)return"";const l=a.stack.indexOf(`
`);return l===-1?"":a.stack.slice(l+1)})();try{if(!r.stack)r.stack=i;else if(i){const l=i.indexOf(`
`),o=l===-1?-1:i.indexOf(`
`,l+1),u=o===-1?"":i.slice(o+1);String(r.stack).endsWith(u)||(r.stack+=`
-`+i)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ya(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&rc.assertOptions(r,{silentJSONParsing:jt.transitional(jt.boolean),forcedJSONParsing:jt.transitional(jt.boolean),clarifyTimeoutError:jt.transitional(jt.boolean),legacyInterceptorReqResOrdering:jt.transitional(jt.boolean),advertiseZstdAcceptEncoding:jt.transitional(jt.boolean),validateStatusUndefinedResolves:jt.transitional(jt.boolean)},!1),a!=null&&(T.isFunction(a)?n.paramsSerializer={serialize:a}:rc.assertOptions(a,{encode:jt.function,serialize:jt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),rc.assertOptions(n,{baseUrl:jt.spelling("baseURL"),withXsrfToken:jt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=i&&T.merge(i.common,i[n.method]);i&&T.forEach(["delete","get","head","post","put","patch","query","common"],x=>{delete i[x]}),n.headers=Ct.concat(l,i);const o=[];let u=!0;this.interceptors.request.forEach(function(g){if(typeof g.runWhen=="function"&&g.runWhen(n)===!1)return;u=u&&g.synchronous;const v=n.transitional||o0;v&&v.legacyInterceptorReqResOrdering?o.unshift(g.fulfilled,g.rejected):o.push(g.fulfilled,g.rejected)});const s=[];this.interceptors.response.forEach(function(g){s.push(g.fulfilled,g.rejected)});let f,c=0,d;if(!u){const x=[gx.bind(this),void 0];for(x.unshift(...o),x.push(...s),d=x.length,f=Promise.resolve(n);c{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const l=new Promise(o=>{r.subscribe(o),i=o}).then(a);return l.cancel=function(){r.unsubscribe(i)},l},t(function(i,l,o){r.reason||(r.reason=new Zu(i,l,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Z_(function(a){t=a}),cancel:t}}};function nD(e){return function(n){return e.apply(null,n)}}function rD(e){return T.isObject(e)&&e.isAxiosError===!0}const Ty={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ty).forEach(([e,t])=>{Ty[t]=e});function J_(e){const t=new Ra(e),n=N_(Ra.prototype.request,t);return T.extend(n,Ra.prototype,t,{allOwnKeys:!0}),T.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return J_(Ya(e,a))},n}const Ge=J_(Wu);Ge.Axios=Ra;Ge.CanceledError=Zu;Ge.CancelToken=tD;Ge.isCancel=X_;Ge.VERSION=s0;Ge.toFormData=ud;Ge.AxiosError=V;Ge.Cancel=Ge.CanceledError;Ge.all=function(t){return Promise.all(t)};Ge.spread=nD;Ge.isAxiosError=rD;Ge.mergeConfig=Ya;Ge.AxiosHeaders=Ct;Ge.formToJSON=e=>Y_(T.isHTMLForm(e)?new FormData(e):e);Ge.getAdapter=W_.getAdapter;Ge.HttpStatusCode=Ty;Ge.default=Ge;const{Axios:Ore,AxiosError:wre,CanceledError:Are,isCancel:_re,CancelToken:Ere,VERSION:jre,all:Tre,Cancel:Nre,isAxiosError:Mre,spread:Cre,toFormData:$re,AxiosHeaders:Pre,HttpStatusCode:Dre,formToJSON:Rre,getAdapter:zre,mergeConfig:Bre,create:Lre}=Ge,te=Ge.create({baseURL:"/api/fa",timeout:15e3});te.interceptors.request.use(e=>{const t=localStorage.getItem("fa_token");return t&&(e.headers.Authorization=`Bearer ${t}`),e});te.interceptors.response.use(e=>e,e=>{var t;return((t=e.response)==null?void 0:t.status)===401&&(localStorage.removeItem("fa_token"),localStorage.removeItem("fa_user"),window.location.href="/login"),Promise.reject(e)});const aD=(e,t)=>te.post("/auth/login",{username:e,password:t}),iD=(e,t)=>te.post("/auth/verify-otp",{verifyToken:e,code:t}),lD=()=>te.get("/auth/me"),oD=()=>te.post("/auth/otp/setup"),uD=e=>te.post("/auth/otp/confirm",{code:e}),sD=()=>te.post("/auth/otp/disable"),cD=(e,t)=>te.post("/auth/change-password",{currentPassword:e,newPassword:t});function fD(){const[e,t]=_.useState("login"),[n,r]=_.useState(""),[a,i]=_.useState(""),[l,o]=_.useState(""),[u,s]=_.useState(""),[f,c]=_.useState("OTP"),[d,h]=_.useState(""),[x,g]=_.useState(""),[v,y]=_.useState(""),[m,b]=_.useState(!1),O=n0(),S=f==="OTP_SETUP",w=P=>{localStorage.setItem("fa_token",P.token),localStorage.setItem("fa_user",JSON.stringify({username:P.username,role:P.role,workstationCode:P.workstationCode})),O("/dashboard")},A=async P=>{var M,k,z,B;P.preventDefault(),b(!0),y("");try{const R=(await aD(n,a)).data||{};if(R.twofa==="true"){s(R.verifyToken||""),c(R.verifyMethod||"OTP"),h(R.qrImage||""),g(R.secret||""),o(""),t("verify");return}if(!R.token)throw new Error("no token");w(R)}catch(N){y(((k=(M=N.response)==null?void 0:M.data)==null?void 0:k.error)||((B=(z=N.response)==null?void 0:z.data)==null?void 0:B.message)||"로그인 실패")}finally{b(!1)}},E=async P=>{var M,k,z,B;P.preventDefault(),b(!0),y("");try{const R=(await iD(u,l)).data||{};if(!R.token)throw new Error("no token");w(R)}catch(N){y(((k=(M=N.response)==null?void 0:M.data)==null?void 0:k.error)||((B=(z=N.response)==null?void 0:z.data)==null?void 0:B.message)||"인증 실패 — 코드를 확인하세요.")}finally{b(!1)}},j=()=>{t("login"),o(""),y(""),h(""),g("")},$="w-full bg-slate-700 border border-slate-600 rounded-lg px-3 py-2 text-white text-sm focus:outline-none focus:border-blue-500";return p.jsx("div",{className:"min-h-screen bg-slate-900 flex items-center justify-center",children:p.jsxs("div",{className:"bg-slate-800 rounded-xl p-8 w-96 border border-slate-700",children:[p.jsxs("div",{className:"text-center mb-8",children:[p.jsx("div",{className:"text-blue-400 text-3xl font-bold mb-2",children:"GUARDiA FA"}),p.jsx("div",{className:"text-slate-400 text-sm",children:"Factory Automation Platform"}),p.jsx("div",{className:"text-slate-500 text-xs mt-1",children:"e-Paper · QR WIP · MES 통합 플랫폼"})]}),e==="login"?p.jsxs("form",{onSubmit:A,className:"space-y-4",children:[p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm text-slate-300 mb-1",children:"사용자명"}),p.jsx("input",{type:"text",value:n,onChange:P=>r(P.target.value),className:$,placeholder:"username",autoComplete:"username",required:!0})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm text-slate-300 mb-1",children:"비밀번호"}),p.jsx("input",{type:"password",value:a,onChange:P=>i(P.target.value),className:$,placeholder:"password",autoComplete:"current-password",required:!0})]}),v&&p.jsx("div",{className:"text-red-400 text-sm",children:v}),p.jsx("button",{type:"submit",disabled:m,className:"w-full bg-blue-600 hover:bg-blue-700 disabled:opacity-50 text-white rounded-lg py-2.5 text-sm font-medium transition-colors",children:m?"로그인 중...":"로그인"})]}):p.jsxs("form",{onSubmit:E,className:"space-y-4",children:[p.jsxs("div",{className:"text-center",children:[p.jsx("div",{className:"text-white text-lg font-semibold mb-1",children:"2차 인증"}),S?p.jsx("p",{className:"text-slate-400 text-xs",children:"최초 로그인입니다. 아래 QR을 Authenticator 앱(Google·Microsoft)으로 스캔해 등록한 뒤 6자리 코드를 입력하세요."}):p.jsx("p",{className:"text-slate-400 text-xs",children:"Authenticator 앱에 표시된 6자리 코드를 입력하세요."})]}),S&&d&&p.jsx("div",{className:"flex justify-center",children:p.jsx("img",{src:d,alt:"OTP QR",width:176,height:176,style:{background:"#fff",padding:8,borderRadius:8}})}),S&&x&&p.jsxs("div",{children:[p.jsx("div",{className:"text-[11px] text-slate-500 mb-1",children:"QR 스캔이 안 되면 수동 입력 키"}),p.jsx("code",{className:"block text-xs text-blue-300 bg-slate-900 border border-slate-700 rounded-md px-2 py-1.5 break-all select-all",children:x})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm text-slate-300 mb-1",children:"인증 코드"}),p.jsx("input",{value:l,onChange:P=>o(P.target.value.replace(/\D/g,"").slice(0,6)),inputMode:"numeric",autoComplete:"one-time-code",maxLength:6,autoFocus:!0,placeholder:"000000",className:$+" tracking-[0.4em] text-center"})]}),v&&p.jsx("div",{className:"text-red-400 text-sm",children:v}),p.jsx("button",{type:"submit",disabled:m||l.length!==6,className:"w-full bg-blue-600 hover:bg-blue-700 disabled:opacity-50 text-white rounded-lg py-2.5 text-sm font-medium transition-colors",children:m?"인증 중...":S?"등록하고 로그인":"로그인"}),p.jsx("button",{type:"button",onClick:j,className:"w-full border border-slate-600 text-slate-300 hover:bg-slate-700 rounded-lg py-2 text-sm transition-colors",children:"이전 단계로"})]}),e==="login"&&p.jsx("div",{className:"mt-4 text-xs text-slate-500 text-center",children:"기본 계정: admin / admin123"})]})})}function dD(){const[e,t]=_.useState({}),[n,r]=_.useState({}),[a,i]=_.useState({}),[l,o]=_.useState({});_.useEffect(()=>{Promise.all([te.get("/dashboard/overview"),te.get("/dashboard/oee-summary"),te.get("/dashboard/andon-summary"),te.get("/dashboard/epaper-status")]).then(([f,c,d,h])=>{t(f.data),r(c.data),i(d.data),o(h.data)}).catch(console.error)},[]);const u=[{name:"가동률",value:Math.round((n.availability||.92)*100),fill:"#3b82f6"},{name:"성능률",value:Math.round((n.performance||.88)*100),fill:"#10b981"},{name:"품질률",value:Math.round((n.quality||.97)*100),fill:"#f59e0b"}],s=({title:f,value:c,sub:d,color:h})=>p.jsxs("div",{className:"bg-slate-800 rounded-xl p-5 border border-slate-700",children:[p.jsx("div",{className:"text-slate-400 text-sm mb-1",children:f}),p.jsx("div",{className:`text-3xl font-bold ${h||"text-white"}`,children:c??"-"}),d&&p.jsx("div",{className:"text-slate-500 text-xs mt-1",children:d})]});return p.jsxs("div",{className:"space-y-6",children:[p.jsx("h1",{className:"text-xl font-bold text-white",children:"공장 전체 현황 대시보드"}),p.jsxs("div",{className:"grid grid-cols-4 gap-4",children:[p.jsx(s,{title:"총 작업장",value:e.workstations,color:"text-blue-400",sub:"운영 중"}),p.jsx(s,{title:"오늘 생산 오더",value:e.todayOrders,color:"text-green-400",sub:"건"}),p.jsx(s,{title:"활성 안돈",value:e.activeAndon,color:"text-red-400",sub:"건 대응 필요"}),p.jsx(s,{title:"e-Paper 온라인",value:l.online,color:"text-emerald-400",sub:`전체 ${l.total}대`})]}),p.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[p.jsxs("div",{className:"bg-slate-800 rounded-xl p-5 border border-slate-700",children:[p.jsx("h2",{className:"text-sm font-medium text-slate-300 mb-4",children:"OEE 지표 (종합 설비 효율)"}),p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsxs("div",{className:"text-center",children:[p.jsxs("div",{className:"text-4xl font-bold text-blue-400",children:[Math.round((n.availability||.92)*(n.performance||.88)*(n.quality||.97)*100),"%"]}),p.jsx("div",{className:"text-slate-500 text-xs mt-1",children:"종합 OEE"})]}),p.jsx("div",{className:"flex-1",children:u.map(f=>p.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[p.jsx("div",{className:"text-xs text-slate-400 w-16",children:f.name}),p.jsx("div",{className:"flex-1 bg-slate-700 rounded-full h-2",children:p.jsx("div",{className:"h-2 rounded-full",style:{width:`${f.value}%`,backgroundColor:f.fill}})}),p.jsxs("div",{className:"text-xs text-slate-300 w-8 text-right",children:[f.value,"%"]})]},f.name))})]})]}),p.jsxs("div",{className:"bg-slate-800 rounded-xl p-5 border border-slate-700",children:[p.jsx("h2",{className:"text-sm font-medium text-slate-300 mb-4",children:"e-Paper 디스플레이 현황"}),p.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[p.jsxs("div",{className:"bg-slate-700 rounded-lg p-3 text-center",children:[p.jsx("div",{className:"text-2xl font-bold text-emerald-400",children:l.online||0}),p.jsx("div",{className:"text-xs text-slate-400",children:"온라인"})]}),p.jsxs("div",{className:"bg-slate-700 rounded-lg p-3 text-center",children:[p.jsx("div",{className:"text-2xl font-bold text-slate-400",children:l.offline||0}),p.jsx("div",{className:"text-xs text-slate-400",children:"오프라인"})]}),p.jsxs("div",{className:"bg-slate-700 rounded-lg p-3 text-center",children:[p.jsx("div",{className:"text-2xl font-bold text-yellow-400",children:l.batteryLow||0}),p.jsx("div",{className:"text-xs text-slate-400",children:"배터리 부족"})]}),p.jsxs("div",{className:"bg-slate-700 rounded-lg p-3 text-center",children:[p.jsx("div",{className:"text-2xl font-bold text-blue-400",children:l.total||0}),p.jsx("div",{className:"text-xs text-slate-400",children:"전체"})]})]})]})]}),p.jsxs("div",{className:"bg-slate-800 rounded-xl p-5 border border-slate-700",children:[p.jsx("h2",{className:"text-sm font-medium text-slate-300 mb-4",children:"안돈 통계 (오늘)"}),p.jsxs("div",{className:"grid grid-cols-4 gap-4",children:[p.jsxs("div",{className:"text-center",children:[p.jsx("div",{className:"text-2xl font-bold text-white",children:(a==null?void 0:a.total_today)||0}),p.jsx("div",{className:"text-xs text-slate-400",children:"총 발생"})]}),p.jsxs("div",{className:"text-center",children:[p.jsx("div",{className:"text-2xl font-bold text-green-400",children:(a==null?void 0:a.resolved)||0}),p.jsx("div",{className:"text-xs text-slate-400",children:"해결"})]}),p.jsxs("div",{className:"text-center",children:[p.jsx("div",{className:"text-2xl font-bold text-red-400",children:(a==null?void 0:a.active)||0}),p.jsx("div",{className:"text-xs text-slate-400",children:"활성"})]}),p.jsxs("div",{className:"text-center",children:[p.jsxs("div",{className:"text-2xl font-bold text-yellow-400",children:[Math.round((a==null?void 0:a.avg_response_time)||0),"초"]}),p.jsx("div",{className:"text-xs text-slate-400",children:"평균 응답시간"})]})]})]})]})}const hD={GREEN:"bg-green-600 border-green-500",YELLOW:"bg-yellow-600 border-yellow-500",RED:"bg-red-600 border-red-500",BLUE:"bg-blue-600 border-blue-500"};function pD(){const[e,t]=_.useState([]);_.useEffect(()=>{te.get("/workstations/floor-map").then(r=>t(r.data)).catch(console.error)},[]);const n=Array.from(new Set(e.map(r=>r.lineCode||"DEFAULT")));return p.jsxs("div",{className:"space-y-6",children:[p.jsx("h1",{className:"text-xl font-bold text-white",children:"공장 배치도 (Floor Map)"}),p.jsxs("div",{className:"bg-slate-800 rounded-xl p-6 border border-slate-700",children:[p.jsxs("div",{className:"text-sm text-slate-400 mb-4",children:["안돈 상태:",p.jsx("span",{className:"ml-2 px-2 py-0.5 bg-green-600 rounded text-xs",children:"GREEN 정상"}),p.jsx("span",{className:"ml-2 px-2 py-0.5 bg-yellow-600 rounded text-xs",children:"YELLOW 주의"}),p.jsx("span",{className:"ml-2 px-2 py-0.5 bg-red-600 rounded text-xs",children:"RED 긴급"}),p.jsx("span",{className:"ml-2 px-2 py-0.5 bg-blue-600 rounded text-xs",children:"BLUE 도움요청"})]}),n.map(r=>p.jsxs("div",{className:"mb-6",children:[p.jsx("h3",{className:"text-slate-300 text-sm font-medium mb-3 border-b border-slate-700 pb-2",children:r}),p.jsx("div",{className:"flex flex-wrap gap-4",children:e.filter(a=>(a.lineCode||"DEFAULT")===r).map(a=>p.jsxs("div",{className:`border-2 rounded-xl p-4 w-48 ${hD[a.andonStatus]||"bg-slate-700 border-slate-600"}`,children:[p.jsx("div",{className:"font-bold text-white text-sm",children:a.workstationCode}),p.jsx("div",{className:"text-xs text-white/80 mt-1",children:a.workstationName}),p.jsxs("div",{className:"mt-3 space-y-1",children:[p.jsxs("div",{className:"text-xs text-white/70",children:["공정: ",a.processCode]}),p.jsxs("div",{className:"text-xs text-white/70",children:["상태: ",a.status]}),p.jsxs("div",{className:"flex justify-between mt-2",children:[p.jsx("span",{className:"text-xs text-white/70",children:"목표"}),p.jsx("span",{className:"text-xs font-bold text-white",children:a.targetCount||0})]}),p.jsxs("div",{className:"flex justify-between",children:[p.jsx("span",{className:"text-xs text-white/70",children:"실적"}),p.jsx("span",{className:"text-xs font-bold text-white",children:a.actualCount||0})]}),a.oee&&p.jsxs("div",{className:"mt-2",children:[p.jsxs("div",{className:"flex justify-between text-xs text-white/70 mb-1",children:[p.jsx("span",{children:"OEE"}),p.jsxs("span",{children:[Math.round(a.oee*100),"%"]})]}),p.jsx("div",{className:"bg-white/20 rounded-full h-1.5",children:p.jsx("div",{className:"bg-white h-1.5 rounded-full",style:{width:`${a.oee*100}%`}})})]})]})]},a.id))})]},r)),e.length===0&&p.jsx("div",{className:"text-center text-slate-500 py-8",children:"작업장 데이터가 없습니다."})]})]})}const yD={ONLINE:"text-green-400",OFFLINE:"text-slate-500",UPDATING:"text-yellow-400",ERROR:"text-red-400"};function mD(){const[e,t]=_.useState([]),[n,r]=_.useState({}),[a,i]=_.useState(""),l=()=>{te.get("/epaper",{params:a?{status:a}:{}}).then(s=>t(s.data)),te.get("/epaper/dashboard").then(s=>r(s.data))};_.useEffect(()=>{l()},[a]);const o=async s=>{const f=prompt("푸시할 내용 (JSON 형식):");f&&(await te.post(`/epaper/${s}/push`,{content:f,templateId:"default"}),l())},u=async s=>{await te.post(`/epaper/${s}/refresh`),alert("갱신 요청 완료")};return p.jsxs("div",{className:"space-y-6",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("h1",{className:"text-xl font-bold text-white",children:"e-Paper 표시기 관리"}),p.jsx("div",{className:"flex gap-2",children:["","ONLINE","OFFLINE","ERROR"].map(s=>p.jsx("button",{onClick:()=>i(s),className:`px-3 py-1.5 rounded text-xs transition-colors ${a===s?"bg-blue-600 text-white":"bg-slate-700 text-slate-300 hover:bg-slate-600"}`,children:s||"전체"},s))})]}),p.jsx("div",{className:"grid grid-cols-4 gap-4",children:[{label:"전체",value:n.total,color:"text-white"},{label:"온라인",value:n.online,color:"text-green-400"},{label:"오프라인",value:n.offline,color:"text-slate-400"},{label:"배터리 부족",value:n.batteryLow,color:"text-yellow-400"}].map(({label:s,value:f,color:c})=>p.jsxs("div",{className:"bg-slate-800 rounded-xl p-4 border border-slate-700 text-center",children:[p.jsx("div",{className:`text-2xl font-bold ${c}`,children:f??"-"}),p.jsx("div",{className:"text-xs text-slate-400 mt-1",children:s})]},s))}),p.jsxs("div",{className:"bg-slate-800 rounded-xl border border-slate-700 overflow-hidden",children:[p.jsxs("table",{className:"w-full text-sm",children:[p.jsx("thead",{children:p.jsxs("tr",{className:"border-b border-slate-700",children:[p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"디스플레이 ID"}),p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"작업장"}),p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"크기/타입"}),p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"배터리"}),p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"신호"}),p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"상태"}),p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"프로토콜"}),p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"작업"})]})}),p.jsx("tbody",{children:e.map(s=>{var f;return p.jsxs("tr",{className:"border-b border-slate-700/50 hover:bg-slate-700/30",children:[p.jsx("td",{className:"px-4 py-3 font-mono text-blue-400",children:s.displayId}),p.jsx("td",{className:"px-4 py-3 text-slate-300",children:s.workstationId||"-"}),p.jsxs("td",{className:"px-4 py-3 text-slate-300",children:[s.displaySize," / ",s.displayType]}),p.jsx("td",{className:"px-4 py-3",children:p.jsxs("span",{className:`flex items-center gap-1 ${(s.batteryLevel||0)<20?"text-red-400":"text-green-400"}`,children:[p.jsx(D3,{size:12}),((f=s.batteryLevel)==null?void 0:f.toFixed(0))||0,"%"]})}),p.jsx("td",{className:"px-4 py-3",children:p.jsxs("span",{className:"flex items-center gap-1 text-slate-300",children:[p.jsx(i4,{size:12}),s.signalStrength||"-"," dBm"]})}),p.jsx("td",{className:"px-4 py-3",children:p.jsx("span",{className:`font-medium ${yD[s.status]||"text-slate-400"}`,children:s.status})}),p.jsx("td",{className:"px-4 py-3 text-slate-400 text-xs",children:s.protocol}),p.jsx("td",{className:"px-4 py-3",children:p.jsxs("div",{className:"flex gap-2",children:[p.jsxs("button",{onClick:()=>o(s.id),className:"flex items-center gap-1 px-2 py-1 bg-blue-700 hover:bg-blue-600 rounded text-xs text-white transition-colors",children:[p.jsx(J3,{size:10})," 푸시"]}),p.jsxs("button",{onClick:()=>u(s.id),className:"flex items-center gap-1 px-2 py-1 bg-slate-600 hover:bg-slate-500 rounded text-xs text-white transition-colors",children:[p.jsx(E_,{size:10})," 갱신"]})]})})]},s.id)})})]}),e.length===0&&p.jsx("div",{className:"text-center text-slate-500 py-8",children:"등록된 e-Paper 표시기가 없습니다."})]})]})}function vD(){const[e,t]=_.useState(""),[n,r]=_.useState(null),[a,i]=_.useState([]),[l,o]=_.useState([]),[u,s]=_.useState(""),[f,c]=_.useState([]),d=async()=>{if(e.trim())try{const[g,v,y]=await Promise.all([te.get(`/qr/${e}`),te.get(`/qr/${e}/history`),te.get(`/qr/${e}/route`)]);r(g.data),i(v.data),o(y.data)}catch{r(null)}},h=async()=>{const g=prompt("제품 코드:");if(!g)return;const v=prompt("LOT 번호:"),y=prompt("수량:"),m=await te.post("/qr/generate",{codeType:"WIP",productCode:g,lotNumber:v,quantity:parseInt(y||"1"),currentProcess:"START"});alert(`QR 코드 생성: ${m.data.qrCode}`)},x={IN_PROCESS:"bg-blue-700 text-blue-200",WAITING:"bg-yellow-700 text-yellow-200",COMPLETED:"bg-green-700 text-green-200",HOLD:"bg-orange-700 text-orange-200",REJECTED:"bg-red-700 text-red-200"};return p.jsxs("div",{className:"space-y-6",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("h1",{className:"text-xl font-bold text-white",children:"QR WIP 추적"}),p.jsxs("button",{onClick:h,className:"flex items-center gap-2 px-4 py-2 bg-blue-600 hover:bg-blue-700 text-white rounded-lg text-sm transition-colors",children:[p.jsx(F3,{size:14})," QR 생성"]})]}),p.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[p.jsxs("div",{className:"bg-slate-800 rounded-xl p-5 border border-slate-700",children:[p.jsx("h2",{className:"text-sm font-medium text-slate-300 mb-3",children:"QR 코드 조회"}),p.jsxs("div",{className:"flex gap-2 mb-4",children:[p.jsx("input",{value:e,onChange:g=>t(g.target.value),placeholder:"QR 코드 입력...",className:"flex-1 bg-slate-700 border border-slate-600 rounded-lg px-3 py-2 text-sm text-white focus:outline-none focus:border-blue-500"}),p.jsx("button",{onClick:d,className:"px-3 py-2 bg-blue-600 hover:bg-blue-700 text-white rounded-lg transition-colors",children:p.jsx(Z3,{size:16})})]}),n&&p.jsxs("div",{className:"space-y-2 text-sm",children:[p.jsxs("div",{className:"flex justify-between",children:[p.jsx("span",{className:"text-slate-400",children:"제품코드"}),p.jsx("span",{className:"text-white font-mono",children:n.productCode})]}),p.jsxs("div",{className:"flex justify-between",children:[p.jsx("span",{className:"text-slate-400",children:"LOT 번호"}),p.jsx("span",{className:"text-white font-mono",children:n.lotNumber})]}),p.jsxs("div",{className:"flex justify-between",children:[p.jsx("span",{className:"text-slate-400",children:"현재 공정"}),p.jsx("span",{className:"text-white",children:n.currentProcess})]}),p.jsxs("div",{className:"flex justify-between",children:[p.jsx("span",{className:"text-slate-400",children:"현재 작업장"}),p.jsx("span",{className:"text-white",children:n.currentWorkstation})]}),p.jsxs("div",{className:"flex justify-between",children:[p.jsx("span",{className:"text-slate-400",children:"상태"}),p.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${x[n.status]||"bg-slate-600 text-slate-200"}`,children:n.status})]})]})]}),p.jsxs("div",{className:"bg-slate-800 rounded-xl p-5 border border-slate-700",children:[p.jsx("h2",{className:"text-sm font-medium text-slate-300 mb-3",children:"공정 경로"}),l.length>0?p.jsx("div",{className:"space-y-2",children:l.map((g,v)=>p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-6 h-6 rounded-full bg-blue-600 text-white text-xs flex items-center justify-center font-bold",children:g.sequence||v+1}),p.jsxs("div",{children:[p.jsx("div",{className:"text-sm text-white",children:g.processName}),p.jsxs("div",{className:"text-xs text-slate-400",children:[g.workstationCode," · ",g.standardTime,"분"]})]})]},g.id))}):p.jsx("div",{className:"text-slate-500 text-sm",children:"QR 코드를 조회하면 공정 경로가 표시됩니다."})]})]}),p.jsxs("div",{className:"bg-slate-800 rounded-xl p-5 border border-slate-700",children:[p.jsx("h2",{className:"text-sm font-medium text-slate-300 mb-3",children:"스캔 이력"}),p.jsxs("div",{className:"overflow-x-auto",children:[p.jsxs("table",{className:"w-full text-sm",children:[p.jsx("thead",{children:p.jsxs("tr",{className:"border-b border-slate-700",children:[p.jsx("th",{className:"px-3 py-2 text-left text-slate-400",children:"시간"}),p.jsx("th",{className:"px-3 py-2 text-left text-slate-400",children:"작업장"}),p.jsx("th",{className:"px-3 py-2 text-left text-slate-400",children:"스캔 타입"}),p.jsx("th",{className:"px-3 py-2 text-left text-slate-400",children:"결과"}),p.jsx("th",{className:"px-3 py-2 text-left text-slate-400",children:"작업자"})]})}),p.jsx("tbody",{children:a.map(g=>{var v;return p.jsxs("tr",{className:"border-b border-slate-700/50",children:[p.jsx("td",{className:"px-3 py-2 text-slate-300 text-xs",children:(v=g.scannedAt)==null?void 0:v.replace("T"," ").slice(0,16)}),p.jsx("td",{className:"px-3 py-2 text-slate-300",children:g.workstationId}),p.jsx("td",{className:"px-3 py-2 text-slate-300",children:g.scanType}),p.jsx("td",{className:"px-3 py-2",children:p.jsx("span",{className:g.result==="OK"?"text-green-400":"text-red-400",children:g.result})}),p.jsx("td",{className:"px-3 py-2 text-slate-400",children:g.operatorId})]},g.id)})})]}),a.length===0&&p.jsx("div",{className:"text-center text-slate-500 py-4",children:"스캔 이력이 없습니다."})]})]})]})}const gD={PLANNED:"bg-slate-600 text-slate-200",RELEASED:"bg-blue-700 text-blue-200",IN_PROGRESS:"bg-yellow-700 text-yellow-200",COMPLETED:"bg-green-700 text-green-200"};function bD(){const[e,t]=_.useState([]),[n,r]=_.useState({}),[a,i]=_.useState(""),l=()=>{te.get("/orders",{params:a?{status:a}:{}}).then(s=>t(s.data)),te.get("/orders/dashboard").then(s=>r(s.data))};_.useEffect(()=>{l()},[a]);const o=async s=>{await te.post(`/orders/${s}/release`),l()},u=async s=>{await te.post(`/orders/${s}/complete`),l()};return p.jsxs("div",{className:"space-y-6",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("h1",{className:"text-xl font-bold text-white",children:"생산 오더"}),p.jsx("div",{className:"flex gap-2",children:["","PLANNED","RELEASED","IN_PROGRESS","COMPLETED"].map(s=>p.jsx("button",{onClick:()=>i(s),className:`px-3 py-1.5 rounded text-xs transition-colors ${a===s?"bg-blue-600 text-white":"bg-slate-700 text-slate-300 hover:bg-slate-600"}`,children:s||"전체"},s))})]}),p.jsxs("div",{className:"grid grid-cols-4 gap-4",children:[p.jsxs("div",{className:"bg-slate-800 rounded-xl p-4 border border-slate-700 text-center",children:[p.jsx("div",{className:"text-2xl font-bold text-white",children:n.todayTotal||0}),p.jsx("div",{className:"text-xs text-slate-400",children:"오늘 오더"})]}),p.jsxs("div",{className:"bg-slate-800 rounded-xl p-4 border border-slate-700 text-center",children:[p.jsx("div",{className:"text-2xl font-bold text-yellow-400",children:n.inProgress||0}),p.jsx("div",{className:"text-xs text-slate-400",children:"진행 중"})]}),p.jsxs("div",{className:"bg-slate-800 rounded-xl p-4 border border-slate-700 text-center",children:[p.jsx("div",{className:"text-2xl font-bold text-green-400",children:n.completed||0}),p.jsx("div",{className:"text-xs text-slate-400",children:"완료"})]}),p.jsxs("div",{className:"bg-slate-800 rounded-xl p-4 border border-slate-700 text-center",children:[p.jsxs("div",{className:"text-2xl font-bold text-blue-400",children:[Math.round(n.completionRate||0),"%"]}),p.jsx("div",{className:"text-xs text-slate-400",children:"완료율"})]})]}),p.jsxs("div",{className:"bg-slate-800 rounded-xl border border-slate-700 overflow-hidden",children:[p.jsxs("table",{className:"w-full text-sm",children:[p.jsx("thead",{children:p.jsxs("tr",{className:"border-b border-slate-700",children:[p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"오더 번호"}),p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"제품"}),p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"라인"}),p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"계획 수량"}),p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"진행 수량"}),p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"진척률"}),p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"상태"}),p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"작업"})]})}),p.jsx("tbody",{children:e.map(s=>{var c,d;const f=s.plannedQty?Math.round((s.completedQty||0)*100/s.plannedQty):0;return p.jsxs("tr",{className:"border-b border-slate-700/50 hover:bg-slate-700/30",children:[p.jsx("td",{className:"px-4 py-3 font-mono text-blue-400",children:s.orderNumber}),p.jsx("td",{className:"px-4 py-3 text-white",children:s.productName}),p.jsx("td",{className:"px-4 py-3 text-slate-300",children:s.lineCode}),p.jsx("td",{className:"px-4 py-3 text-slate-300",children:(c=s.plannedQty)==null?void 0:c.toLocaleString()}),p.jsx("td",{className:"px-4 py-3 text-slate-300",children:((d=s.completedQty)==null?void 0:d.toLocaleString())||0}),p.jsx("td",{className:"px-4 py-3 w-32",children:p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("div",{className:"flex-1 bg-slate-700 rounded-full h-1.5",children:p.jsx("div",{className:"bg-blue-500 h-1.5 rounded-full",style:{width:`${f}%`}})}),p.jsxs("span",{className:"text-xs text-slate-400",children:[f,"%"]})]})}),p.jsx("td",{className:"px-4 py-3",children:p.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${gD[s.status]||""}`,children:s.status})}),p.jsx("td",{className:"px-4 py-3",children:p.jsxs("div",{className:"flex gap-1",children:[s.status==="PLANNED"&&p.jsxs("button",{onClick:()=>o(s.id),className:"flex items-center gap-1 px-2 py-1 bg-blue-700 hover:bg-blue-600 text-white rounded text-xs",children:[p.jsx(V3,{size:10})," 릴리즈"]}),s.status==="IN_PROGRESS"&&p.jsxs("button",{onClick:()=>u(s.id),className:"flex items-center gap-1 px-2 py-1 bg-green-700 hover:bg-green-600 text-white rounded text-xs",children:[p.jsx(w_,{size:10})," 완료"]})]})})]},s.id)})})]}),e.length===0&&p.jsx("div",{className:"text-center text-slate-500 py-8",children:"생산 오더가 없습니다."})]})]})}const xD={QUALITY:"bg-yellow-800 border-yellow-600",MATERIAL:"bg-orange-800 border-orange-600",MACHINE:"bg-red-800 border-red-600",SAFETY:"bg-red-900 border-red-500",HELP:"bg-blue-800 border-blue-600"},xx={INFO:"text-blue-400",WARNING:"text-yellow-400",CRITICAL:"text-red-400"};function SD(){const[e,t]=_.useState([]),[n,r]=_.useState([]),[a,i]=_.useState({}),l=()=>{te.get("/andon/board").then(s=>t(s.data)),te.get("/andon/events").then(s=>r(s.data)),te.get("/andon/stats").then(s=>i(s.data))};_.useEffect(()=>{l();const s=setInterval(l,1e4);return()=>clearInterval(s)},[]);const o=async s=>{const f=JSON.parse(localStorage.getItem("fa_user")||"{}");await te.put(`/andon/${s}/respond`,{responseBy:f.username}),l()},u=async s=>{await te.put(`/andon/${s}/resolve`),l()};return p.jsxs("div",{className:"space-y-6",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("h1",{className:"text-xl font-bold text-white",children:"안돈 현황판"}),p.jsx("div",{className:"text-xs text-slate-500",children:"10초마다 자동 갱신"})]}),p.jsx("div",{className:"grid grid-cols-4 gap-4",children:[{label:"오늘 발생",value:a.total_today,color:"text-white"},{label:"해결 완료",value:a.resolved,color:"text-green-400"},{label:"현재 활성",value:a.active,color:"text-red-400"},{label:"평균 응답",value:`${Math.round(a.avg_response_time||0)}초`,color:"text-yellow-400"}].map(({label:s,value:f,color:c})=>p.jsxs("div",{className:"bg-slate-800 rounded-xl p-4 border border-slate-700 text-center",children:[p.jsx("div",{className:`text-2xl font-bold ${c}`,children:f??"-"}),p.jsx("div",{className:"text-xs text-slate-400 mt-1",children:s})]},s))}),e.length>0&&p.jsxs("div",{children:[p.jsxs("h2",{className:"text-sm font-medium text-red-400 mb-3",children:["활성 안돈 (",e.length,"건)"]}),p.jsx("div",{className:"grid grid-cols-3 gap-4",children:e.map(s=>{var f;return p.jsxs("div",{className:`border-2 rounded-xl p-4 ${xD[s.andonType]||"bg-slate-800 border-slate-600"}`,children:[p.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[p.jsx(ld,{size:16,className:xx[s.severity]||"text-yellow-400"}),p.jsx("span",{className:"font-bold text-white",children:s.workstationCode}),p.jsx("span",{className:"text-xs text-white/60",children:s.andonType})]}),p.jsx("div",{className:"text-sm text-white/80 mb-3",children:s.description}),p.jsxs("div",{className:"text-xs text-white/60 mb-3",children:["호출: ",s.calledBy," · ",(f=s.calledAt)==null?void 0:f.replace("T"," ").slice(0,16)]}),p.jsxs("div",{className:"flex gap-2",children:[!s.respondedAt&&p.jsxs("button",{onClick:()=>o(s.id),className:"flex items-center gap-1 px-2 py-1 bg-white/20 hover:bg-white/30 text-white rounded text-xs",children:[p.jsx(a4,{size:10})," 응답"]}),p.jsxs("button",{onClick:()=>u(s.id),className:"flex items-center gap-1 px-2 py-1 bg-green-700 hover:bg-green-600 text-white rounded text-xs",children:[p.jsx(w_,{size:10})," 해결"]})]})]},s.id)})})]}),p.jsxs("div",{className:"bg-slate-800 rounded-xl border border-slate-700 overflow-hidden",children:[p.jsx("div",{className:"px-4 py-3 border-b border-slate-700",children:p.jsx("h2",{className:"text-sm font-medium text-slate-300",children:"안돈 이벤트 이력"})}),p.jsxs("table",{className:"w-full text-sm",children:[p.jsx("thead",{children:p.jsxs("tr",{className:"border-b border-slate-700",children:[p.jsx("th",{className:"px-4 py-2 text-left text-slate-400",children:"작업장"}),p.jsx("th",{className:"px-4 py-2 text-left text-slate-400",children:"타입"}),p.jsx("th",{className:"px-4 py-2 text-left text-slate-400",children:"심각도"}),p.jsx("th",{className:"px-4 py-2 text-left text-slate-400",children:"설명"}),p.jsx("th",{className:"px-4 py-2 text-left text-slate-400",children:"호출 시각"}),p.jsx("th",{className:"px-4 py-2 text-left text-slate-400",children:"상태"}),p.jsx("th",{className:"px-4 py-2 text-left text-slate-400",children:"응답시간"})]})}),p.jsx("tbody",{children:n.slice(0,20).map(s=>{var f;return p.jsxs("tr",{className:"border-b border-slate-700/50 hover:bg-slate-700/30",children:[p.jsx("td",{className:"px-4 py-2 font-bold text-white",children:s.workstationCode}),p.jsx("td",{className:"px-4 py-2 text-slate-300",children:s.andonType}),p.jsx("td",{className:"px-4 py-2",children:p.jsx("span",{className:xx[s.severity]||"text-slate-400",children:s.severity})}),p.jsx("td",{className:"px-4 py-2 text-slate-300 max-w-xs truncate",children:s.description}),p.jsx("td",{className:"px-4 py-2 text-slate-400 text-xs",children:(f=s.calledAt)==null?void 0:f.replace("T"," ").slice(0,16)}),p.jsx("td",{className:"px-4 py-2",children:p.jsx("span",{className:s.resolvedAt?"text-green-400":s.respondedAt?"text-yellow-400":"text-red-400",children:s.resolvedAt?"RESOLVED":s.respondedAt?"IN_PROGRESS":"OPEN"})}),p.jsx("td",{className:"px-4 py-2 text-slate-400",children:s.responseTimeSeconds?`${s.responseTimeSeconds}초`:"-"})]},s.id)})})]})]})]})}function eE(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t-1}var x5=b5,S5=fd;function O5(e,t){var n=this.__data__,r=S5(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var w5=O5,A5=l5,_5=p5,E5=v5,j5=x5,T5=w5;function Ul(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{delete i[x]}),n.headers=Ct.concat(l,i);const o=[];let u=!0;this.interceptors.request.forEach(function(g){if(typeof g.runWhen=="function"&&g.runWhen(n)===!1)return;u=u&&g.synchronous;const v=n.transitional||o0;v&&v.legacyInterceptorReqResOrdering?o.unshift(g.fulfilled,g.rejected):o.push(g.fulfilled,g.rejected)});const s=[];this.interceptors.response.forEach(function(g){s.push(g.fulfilled,g.rejected)});let f,c=0,d;if(!u){const x=[gx.bind(this),void 0];for(x.unshift(...o),x.push(...s),d=x.length,f=Promise.resolve(n);c{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const l=new Promise(o=>{r.subscribe(o),i=o}).then(a);return l.cancel=function(){r.unsubscribe(i)},l},t(function(i,l,o){r.reason||(r.reason=new Zu(i,l,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new eE(function(a){t=a}),cancel:t}}};function oD(e){return function(n){return e.apply(null,n)}}function uD(e){return T.isObject(e)&&e.isAxiosError===!0}const Ty={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ty).forEach(([e,t])=>{Ty[t]=e});function tE(e){const t=new Ra(e),n=C_(Ra.prototype.request,t);return T.extend(n,Ra.prototype,t,{allOwnKeys:!0}),T.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return tE(Ya(e,a))},n}const He=tE(Wu);He.Axios=Ra;He.CanceledError=Zu;He.CancelToken=lD;He.isCancel=K_;He.VERSION=s0;He.toFormData=sd;He.AxiosError=V;He.Cancel=He.CanceledError;He.all=function(t){return Promise.all(t)};He.spread=oD;He.isAxiosError=uD;He.mergeConfig=Ya;He.AxiosHeaders=Ct;He.formToJSON=e=>V_(T.isHTMLForm(e)?new FormData(e):e);He.getAdapter=J_.getAdapter;He.HttpStatusCode=Ty;He.default=He;const{Axios:Nre,AxiosError:Mre,CanceledError:Cre,isCancel:$re,CancelToken:Pre,VERSION:Dre,all:Rre,Cancel:zre,isAxiosError:Bre,spread:Lre,toFormData:kre,AxiosHeaders:Ure,HttpStatusCode:Ire,formToJSON:Hre,getAdapter:qre,mergeConfig:Gre,create:Yre}=He,te=He.create({baseURL:"/api/fa",timeout:15e3});te.interceptors.request.use(e=>{const t=localStorage.getItem("fa_token");return t&&(e.headers.Authorization=`Bearer ${t}`),e});te.interceptors.response.use(e=>e,e=>{var t;return((t=e.response)==null?void 0:t.status)===401&&(localStorage.removeItem("fa_token"),localStorage.removeItem("fa_user"),window.location.href="/login"),Promise.reject(e)});const sD=(e,t)=>te.post("/auth/login",{username:e,password:t}),cD=(e,t)=>te.post("/auth/verify-otp",{verifyToken:e,code:t}),fD=()=>te.get("/auth/me"),dD=()=>te.post("/auth/otp/setup"),hD=e=>te.post("/auth/otp/confirm",{code:e}),pD=()=>te.post("/auth/otp/disable"),yD=(e,t)=>te.post("/auth/change-password",{currentPassword:e,newPassword:t});function mD(){const[e,t]=_.useState("login"),[n,r]=_.useState(""),[a,i]=_.useState(""),[l,o]=_.useState(""),[u,s]=_.useState(""),[f,c]=_.useState("OTP"),[d,h]=_.useState(""),[x,g]=_.useState(""),[v,y]=_.useState(""),[m,b]=_.useState(!1),O=n0(),S=f==="OTP_SETUP",w=P=>{localStorage.setItem("fa_token",P.token),localStorage.setItem("fa_user",JSON.stringify({username:P.username,role:P.role,workstationCode:P.workstationCode})),O("/dashboard")},A=async P=>{var M,k,z,B;P.preventDefault(),b(!0),y("");try{const R=(await sD(n,a)).data||{};if(R.twofa==="true"){s(R.verifyToken||""),c(R.verifyMethod||"OTP"),h(R.qrImage||""),g(R.secret||""),o(""),t("verify");return}if(!R.token)throw new Error("no token");w(R)}catch(N){y(((k=(M=N.response)==null?void 0:M.data)==null?void 0:k.error)||((B=(z=N.response)==null?void 0:z.data)==null?void 0:B.message)||"로그인 실패")}finally{b(!1)}},E=async P=>{var M,k,z,B;P.preventDefault(),b(!0),y("");try{const R=(await cD(u,l)).data||{};if(!R.token)throw new Error("no token");w(R)}catch(N){y(((k=(M=N.response)==null?void 0:M.data)==null?void 0:k.error)||((B=(z=N.response)==null?void 0:z.data)==null?void 0:B.message)||"인증 실패 — 코드를 확인하세요.")}finally{b(!1)}},j=()=>{t("login"),o(""),y(""),h(""),g("")},$="w-full bg-slate-700 border border-slate-600 rounded-lg px-3 py-2 text-white text-sm focus:outline-none focus:border-blue-500";return p.jsx("div",{className:"min-h-screen bg-slate-900 flex items-center justify-center",children:p.jsxs("div",{className:"bg-slate-800 rounded-xl p-8 w-96 border border-slate-700",children:[p.jsxs("div",{className:"text-center mb-8",children:[p.jsx("div",{className:"text-blue-400 text-3xl font-bold mb-2",children:"GUARDiA FA"}),p.jsx("div",{className:"text-slate-400 text-sm",children:"Factory Automation Platform"}),p.jsx("div",{className:"text-slate-500 text-xs mt-1",children:"e-Paper · QR WIP · MES 통합 플랫폼"})]}),e==="login"?p.jsxs("form",{onSubmit:A,className:"space-y-4",children:[p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm text-slate-300 mb-1",children:"사용자명"}),p.jsx("input",{type:"text",value:n,onChange:P=>r(P.target.value),className:$,placeholder:"username",autoComplete:"username",required:!0})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm text-slate-300 mb-1",children:"비밀번호"}),p.jsx("input",{type:"password",value:a,onChange:P=>i(P.target.value),className:$,placeholder:"password",autoComplete:"current-password",required:!0})]}),v&&p.jsx("div",{className:"text-red-400 text-sm",children:v}),p.jsx("button",{type:"submit",disabled:m,className:"w-full bg-blue-600 hover:bg-blue-700 disabled:opacity-50 text-white rounded-lg py-2.5 text-sm font-medium transition-colors",children:m?"로그인 중...":"로그인"})]}):p.jsxs("form",{onSubmit:E,className:"space-y-4",children:[p.jsxs("div",{className:"text-center",children:[p.jsx("div",{className:"text-white text-lg font-semibold mb-1",children:"2차 인증"}),S?p.jsx("p",{className:"text-slate-400 text-xs",children:"최초 로그인입니다. 아래 QR을 Authenticator 앱(Google·Microsoft)으로 스캔해 등록한 뒤 6자리 코드를 입력하세요."}):p.jsx("p",{className:"text-slate-400 text-xs",children:"Authenticator 앱에 표시된 6자리 코드를 입력하세요."})]}),S&&d&&p.jsx("div",{className:"flex justify-center",children:p.jsx("img",{src:d,alt:"OTP QR",width:176,height:176,style:{background:"#fff",padding:8,borderRadius:8}})}),S&&x&&p.jsxs("div",{children:[p.jsx("div",{className:"text-[11px] text-slate-500 mb-1",children:"QR 스캔이 안 되면 수동 입력 키"}),p.jsx("code",{className:"block text-xs text-blue-300 bg-slate-900 border border-slate-700 rounded-md px-2 py-1.5 break-all select-all",children:x})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm text-slate-300 mb-1",children:"인증 코드"}),p.jsx("input",{value:l,onChange:P=>o(P.target.value.replace(/\D/g,"").slice(0,6)),inputMode:"numeric",autoComplete:"one-time-code",maxLength:6,autoFocus:!0,placeholder:"000000",className:$+" tracking-[0.4em] text-center"})]}),v&&p.jsx("div",{className:"text-red-400 text-sm",children:v}),p.jsx("button",{type:"submit",disabled:m||l.length!==6,className:"w-full bg-blue-600 hover:bg-blue-700 disabled:opacity-50 text-white rounded-lg py-2.5 text-sm font-medium transition-colors",children:m?"인증 중...":S?"등록하고 로그인":"로그인"}),p.jsx("button",{type:"button",onClick:j,className:"w-full border border-slate-600 text-slate-300 hover:bg-slate-700 rounded-lg py-2 text-sm transition-colors",children:"이전 단계로"})]}),e==="login"&&p.jsx("div",{className:"mt-4 text-xs text-slate-500 text-center",children:"기본 계정: admin / admin123"})]})})}function vD(){const[e,t]=_.useState({}),[n,r]=_.useState({}),[a,i]=_.useState({}),[l,o]=_.useState({});_.useEffect(()=>{Promise.all([te.get("/dashboard/overview"),te.get("/dashboard/oee-summary"),te.get("/dashboard/andon-summary"),te.get("/dashboard/epaper-status")]).then(([f,c,d,h])=>{t(f.data),r(c.data),i(d.data),o(h.data)}).catch(console.error)},[]);const u=[{name:"가동률",value:Math.round((n.availability||.92)*100),fill:"#3b82f6"},{name:"성능률",value:Math.round((n.performance||.88)*100),fill:"#10b981"},{name:"품질률",value:Math.round((n.quality||.97)*100),fill:"#f59e0b"}],s=({title:f,value:c,sub:d,color:h})=>p.jsxs("div",{className:"bg-slate-800 rounded-xl p-5 border border-slate-700",children:[p.jsx("div",{className:"text-slate-400 text-sm mb-1",children:f}),p.jsx("div",{className:`text-3xl font-bold ${h||"text-white"}`,children:c??"-"}),d&&p.jsx("div",{className:"text-slate-500 text-xs mt-1",children:d})]});return p.jsxs("div",{className:"space-y-6",children:[p.jsx("h1",{className:"text-xl font-bold text-white",children:"공장 전체 현황 대시보드"}),p.jsxs("div",{className:"grid grid-cols-4 gap-4",children:[p.jsx(s,{title:"총 작업장",value:e.workstations,color:"text-blue-400",sub:"운영 중"}),p.jsx(s,{title:"오늘 생산 오더",value:e.todayOrders,color:"text-green-400",sub:"건"}),p.jsx(s,{title:"활성 안돈",value:e.activeAndon,color:"text-red-400",sub:"건 대응 필요"}),p.jsx(s,{title:"e-Paper 온라인",value:l.online,color:"text-emerald-400",sub:`전체 ${l.total}대`})]}),p.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[p.jsxs("div",{className:"bg-slate-800 rounded-xl p-5 border border-slate-700",children:[p.jsx("h2",{className:"text-sm font-medium text-slate-300 mb-4",children:"OEE 지표 (종합 설비 효율)"}),p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsxs("div",{className:"text-center",children:[p.jsxs("div",{className:"text-4xl font-bold text-blue-400",children:[Math.round((n.availability||.92)*(n.performance||.88)*(n.quality||.97)*100),"%"]}),p.jsx("div",{className:"text-slate-500 text-xs mt-1",children:"종합 OEE"})]}),p.jsx("div",{className:"flex-1",children:u.map(f=>p.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[p.jsx("div",{className:"text-xs text-slate-400 w-16",children:f.name}),p.jsx("div",{className:"flex-1 bg-slate-700 rounded-full h-2",children:p.jsx("div",{className:"h-2 rounded-full",style:{width:`${f.value}%`,backgroundColor:f.fill}})}),p.jsxs("div",{className:"text-xs text-slate-300 w-8 text-right",children:[f.value,"%"]})]},f.name))})]})]}),p.jsxs("div",{className:"bg-slate-800 rounded-xl p-5 border border-slate-700",children:[p.jsx("h2",{className:"text-sm font-medium text-slate-300 mb-4",children:"e-Paper 디스플레이 현황"}),p.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[p.jsxs("div",{className:"bg-slate-700 rounded-lg p-3 text-center",children:[p.jsx("div",{className:"text-2xl font-bold text-emerald-400",children:l.online||0}),p.jsx("div",{className:"text-xs text-slate-400",children:"온라인"})]}),p.jsxs("div",{className:"bg-slate-700 rounded-lg p-3 text-center",children:[p.jsx("div",{className:"text-2xl font-bold text-slate-400",children:l.offline||0}),p.jsx("div",{className:"text-xs text-slate-400",children:"오프라인"})]}),p.jsxs("div",{className:"bg-slate-700 rounded-lg p-3 text-center",children:[p.jsx("div",{className:"text-2xl font-bold text-yellow-400",children:l.batteryLow||0}),p.jsx("div",{className:"text-xs text-slate-400",children:"배터리 부족"})]}),p.jsxs("div",{className:"bg-slate-700 rounded-lg p-3 text-center",children:[p.jsx("div",{className:"text-2xl font-bold text-blue-400",children:l.total||0}),p.jsx("div",{className:"text-xs text-slate-400",children:"전체"})]})]})]})]}),p.jsxs("div",{className:"bg-slate-800 rounded-xl p-5 border border-slate-700",children:[p.jsx("h2",{className:"text-sm font-medium text-slate-300 mb-4",children:"안돈 통계 (오늘)"}),p.jsxs("div",{className:"grid grid-cols-4 gap-4",children:[p.jsxs("div",{className:"text-center",children:[p.jsx("div",{className:"text-2xl font-bold text-white",children:(a==null?void 0:a.total_today)||0}),p.jsx("div",{className:"text-xs text-slate-400",children:"총 발생"})]}),p.jsxs("div",{className:"text-center",children:[p.jsx("div",{className:"text-2xl font-bold text-green-400",children:(a==null?void 0:a.resolved)||0}),p.jsx("div",{className:"text-xs text-slate-400",children:"해결"})]}),p.jsxs("div",{className:"text-center",children:[p.jsx("div",{className:"text-2xl font-bold text-red-400",children:(a==null?void 0:a.active)||0}),p.jsx("div",{className:"text-xs text-slate-400",children:"활성"})]}),p.jsxs("div",{className:"text-center",children:[p.jsxs("div",{className:"text-2xl font-bold text-yellow-400",children:[Math.round((a==null?void 0:a.avg_response_time)||0),"초"]}),p.jsx("div",{className:"text-xs text-slate-400",children:"평균 응답시간"})]})]})]})]})}const gD={GREEN:"bg-green-600 border-green-500",YELLOW:"bg-yellow-600 border-yellow-500",RED:"bg-red-600 border-red-500",BLUE:"bg-blue-600 border-blue-500"};function bD(){const[e,t]=_.useState([]);_.useEffect(()=>{te.get("/workstations/floor-map").then(r=>t(r.data)).catch(console.error)},[]);const n=Array.from(new Set(e.map(r=>r.lineCode||"DEFAULT")));return p.jsxs("div",{className:"space-y-6",children:[p.jsx("h1",{className:"text-xl font-bold text-white",children:"공장 배치도 (Floor Map)"}),p.jsxs("div",{className:"bg-slate-800 rounded-xl p-6 border border-slate-700",children:[p.jsxs("div",{className:"text-sm text-slate-400 mb-4",children:["안돈 상태:",p.jsx("span",{className:"ml-2 px-2 py-0.5 bg-green-600 rounded text-xs",children:"GREEN 정상"}),p.jsx("span",{className:"ml-2 px-2 py-0.5 bg-yellow-600 rounded text-xs",children:"YELLOW 주의"}),p.jsx("span",{className:"ml-2 px-2 py-0.5 bg-red-600 rounded text-xs",children:"RED 긴급"}),p.jsx("span",{className:"ml-2 px-2 py-0.5 bg-blue-600 rounded text-xs",children:"BLUE 도움요청"})]}),n.map(r=>p.jsxs("div",{className:"mb-6",children:[p.jsx("h3",{className:"text-slate-300 text-sm font-medium mb-3 border-b border-slate-700 pb-2",children:r}),p.jsx("div",{className:"flex flex-wrap gap-4",children:e.filter(a=>(a.lineCode||"DEFAULT")===r).map(a=>p.jsxs("div",{className:`border-2 rounded-xl p-4 w-48 ${gD[a.andonStatus]||"bg-slate-700 border-slate-600"}`,children:[p.jsx("div",{className:"font-bold text-white text-sm",children:a.workstationCode}),p.jsx("div",{className:"text-xs text-white/80 mt-1",children:a.workstationName}),p.jsxs("div",{className:"mt-3 space-y-1",children:[p.jsxs("div",{className:"text-xs text-white/70",children:["공정: ",a.processCode]}),p.jsxs("div",{className:"text-xs text-white/70",children:["상태: ",a.status]}),p.jsxs("div",{className:"flex justify-between mt-2",children:[p.jsx("span",{className:"text-xs text-white/70",children:"목표"}),p.jsx("span",{className:"text-xs font-bold text-white",children:a.targetCount||0})]}),p.jsxs("div",{className:"flex justify-between",children:[p.jsx("span",{className:"text-xs text-white/70",children:"실적"}),p.jsx("span",{className:"text-xs font-bold text-white",children:a.actualCount||0})]}),a.oee&&p.jsxs("div",{className:"mt-2",children:[p.jsxs("div",{className:"flex justify-between text-xs text-white/70 mb-1",children:[p.jsx("span",{children:"OEE"}),p.jsxs("span",{children:[Math.round(a.oee*100),"%"]})]}),p.jsx("div",{className:"bg-white/20 rounded-full h-1.5",children:p.jsx("div",{className:"bg-white h-1.5 rounded-full",style:{width:`${a.oee*100}%`}})})]})]})]},a.id))})]},r)),e.length===0&&p.jsx("div",{className:"text-center text-slate-500 py-8",children:"작업장 데이터가 없습니다."})]})]})}const xD={ONLINE:"text-green-400",OFFLINE:"text-slate-500",UPDATING:"text-yellow-400",ERROR:"text-red-400"};function SD(){const[e,t]=_.useState([]),[n,r]=_.useState({}),[a,i]=_.useState(""),l=()=>{te.get("/epaper",{params:a?{status:a}:{}}).then(s=>t(s.data)),te.get("/epaper/dashboard").then(s=>r(s.data))};_.useEffect(()=>{l()},[a]);const o=async s=>{const f=prompt("푸시할 내용 (JSON 형식):");f&&(await te.post(`/epaper/${s}/push`,{content:f,templateId:"default"}),l())},u=async s=>{await te.post(`/epaper/${s}/refresh`),alert("갱신 요청 완료")};return p.jsxs("div",{className:"space-y-6",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("h1",{className:"text-xl font-bold text-white",children:"e-Paper 표시기 관리"}),p.jsx("div",{className:"flex gap-2",children:["","ONLINE","OFFLINE","ERROR"].map(s=>p.jsx("button",{onClick:()=>i(s),className:`px-3 py-1.5 rounded text-xs transition-colors ${a===s?"bg-blue-600 text-white":"bg-slate-700 text-slate-300 hover:bg-slate-600"}`,children:s||"전체"},s))})]}),p.jsx("div",{className:"grid grid-cols-4 gap-4",children:[{label:"전체",value:n.total,color:"text-white"},{label:"온라인",value:n.online,color:"text-green-400"},{label:"오프라인",value:n.offline,color:"text-slate-400"},{label:"배터리 부족",value:n.batteryLow,color:"text-yellow-400"}].map(({label:s,value:f,color:c})=>p.jsxs("div",{className:"bg-slate-800 rounded-xl p-4 border border-slate-700 text-center",children:[p.jsx("div",{className:`text-2xl font-bold ${c}`,children:f??"-"}),p.jsx("div",{className:"text-xs text-slate-400 mt-1",children:s})]},s))}),p.jsxs("div",{className:"bg-slate-800 rounded-xl border border-slate-700 overflow-hidden",children:[p.jsxs("table",{className:"w-full text-sm",children:[p.jsx("thead",{children:p.jsxs("tr",{className:"border-b border-slate-700",children:[p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"디스플레이 ID"}),p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"작업장"}),p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"크기/타입"}),p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"배터리"}),p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"신호"}),p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"상태"}),p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"프로토콜"}),p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"작업"})]})}),p.jsx("tbody",{children:e.map(s=>{var f;return p.jsxs("tr",{className:"border-b border-slate-700/50 hover:bg-slate-700/30",children:[p.jsx("td",{className:"px-4 py-3 font-mono text-blue-400",children:s.displayId}),p.jsx("td",{className:"px-4 py-3 text-slate-300",children:s.workstationId||"-"}),p.jsxs("td",{className:"px-4 py-3 text-slate-300",children:[s.displaySize," / ",s.displayType]}),p.jsx("td",{className:"px-4 py-3",children:p.jsxs("span",{className:`flex items-center gap-1 ${(s.batteryLevel||0)<20?"text-red-400":"text-green-400"}`,children:[p.jsx(B4,{size:12}),((f=s.batteryLevel)==null?void 0:f.toFixed(0))||0,"%"]})}),p.jsx("td",{className:"px-4 py-3",children:p.jsxs("span",{className:"flex items-center gap-1 text-slate-300",children:[p.jsx(c$,{size:12}),s.signalStrength||"-"," dBm"]})}),p.jsx("td",{className:"px-4 py-3",children:p.jsx("span",{className:`font-medium ${xD[s.status]||"text-slate-400"}`,children:s.status})}),p.jsx("td",{className:"px-4 py-3 text-slate-400 text-xs",children:s.protocol}),p.jsx("td",{className:"px-4 py-3",children:p.jsxs("div",{className:"flex gap-2",children:[p.jsxs("button",{onClick:()=>o(s.id),className:"flex items-center gap-1 px-2 py-1 bg-blue-700 hover:bg-blue-600 rounded text-xs text-white transition-colors",children:[p.jsx(j_,{size:10})," 푸시"]}),p.jsxs("button",{onClick:()=>u(s.id),className:"flex items-center gap-1 px-2 py-1 bg-slate-600 hover:bg-slate-500 rounded text-xs text-white transition-colors",children:[p.jsx(E_,{size:10})," 갱신"]})]})})]},s.id)})})]}),e.length===0&&p.jsx("div",{className:"text-center text-slate-500 py-8",children:"등록된 e-Paper 표시기가 없습니다."})]})]})}function OD(){const[e,t]=_.useState(""),[n,r]=_.useState(null),[a,i]=_.useState([]),[l,o]=_.useState([]),[u,s]=_.useState(""),[f,c]=_.useState([]),d=async()=>{if(e.trim())try{const[g,v,y]=await Promise.all([te.get(`/qr/${e}`),te.get(`/qr/${e}/history`),te.get(`/qr/${e}/route`)]);r(g.data),i(v.data),o(y.data)}catch{r(null)}},h=async()=>{const g=prompt("제품 코드:");if(!g)return;const v=prompt("LOT 번호:"),y=prompt("수량:"),m=await te.post("/qr/generate",{codeType:"WIP",productCode:g,lotNumber:v,quantity:parseInt(y||"1"),currentProcess:"START"});alert(`QR 코드 생성: ${m.data.qrCode}`)},x={IN_PROCESS:"bg-blue-700 text-blue-200",WAITING:"bg-yellow-700 text-yellow-200",COMPLETED:"bg-green-700 text-green-200",HOLD:"bg-orange-700 text-orange-200",REJECTED:"bg-red-700 text-red-200"};return p.jsxs("div",{className:"space-y-6",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("h1",{className:"text-xl font-bold text-white",children:"QR WIP 추적"}),p.jsxs("button",{onClick:h,className:"flex items-center gap-2 px-4 py-2 bg-blue-600 hover:bg-blue-700 text-white rounded-lg text-sm transition-colors",children:[p.jsx(J4,{size:14})," QR 생성"]})]}),p.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[p.jsxs("div",{className:"bg-slate-800 rounded-xl p-5 border border-slate-700",children:[p.jsx("h2",{className:"text-sm font-medium text-slate-300 mb-3",children:"QR 코드 조회"}),p.jsxs("div",{className:"flex gap-2 mb-4",children:[p.jsx("input",{value:e,onChange:g=>t(g.target.value),placeholder:"QR 코드 입력...",className:"flex-1 bg-slate-700 border border-slate-600 rounded-lg px-3 py-2 text-sm text-white focus:outline-none focus:border-blue-500"}),p.jsx("button",{onClick:d,className:"px-3 py-2 bg-blue-600 hover:bg-blue-700 text-white rounded-lg transition-colors",children:p.jsx(r$,{size:16})})]}),n&&p.jsxs("div",{className:"space-y-2 text-sm",children:[p.jsxs("div",{className:"flex justify-between",children:[p.jsx("span",{className:"text-slate-400",children:"제품코드"}),p.jsx("span",{className:"text-white font-mono",children:n.productCode})]}),p.jsxs("div",{className:"flex justify-between",children:[p.jsx("span",{className:"text-slate-400",children:"LOT 번호"}),p.jsx("span",{className:"text-white font-mono",children:n.lotNumber})]}),p.jsxs("div",{className:"flex justify-between",children:[p.jsx("span",{className:"text-slate-400",children:"현재 공정"}),p.jsx("span",{className:"text-white",children:n.currentProcess})]}),p.jsxs("div",{className:"flex justify-between",children:[p.jsx("span",{className:"text-slate-400",children:"현재 작업장"}),p.jsx("span",{className:"text-white",children:n.currentWorkstation})]}),p.jsxs("div",{className:"flex justify-between",children:[p.jsx("span",{className:"text-slate-400",children:"상태"}),p.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${x[n.status]||"bg-slate-600 text-slate-200"}`,children:n.status})]})]})]}),p.jsxs("div",{className:"bg-slate-800 rounded-xl p-5 border border-slate-700",children:[p.jsx("h2",{className:"text-sm font-medium text-slate-300 mb-3",children:"공정 경로"}),l.length>0?p.jsx("div",{className:"space-y-2",children:l.map((g,v)=>p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-6 h-6 rounded-full bg-blue-600 text-white text-xs flex items-center justify-center font-bold",children:g.sequence||v+1}),p.jsxs("div",{children:[p.jsx("div",{className:"text-sm text-white",children:g.processName}),p.jsxs("div",{className:"text-xs text-slate-400",children:[g.workstationCode," · ",g.standardTime,"분"]})]})]},g.id))}):p.jsx("div",{className:"text-slate-500 text-sm",children:"QR 코드를 조회하면 공정 경로가 표시됩니다."})]})]}),p.jsxs("div",{className:"bg-slate-800 rounded-xl p-5 border border-slate-700",children:[p.jsx("h2",{className:"text-sm font-medium text-slate-300 mb-3",children:"스캔 이력"}),p.jsxs("div",{className:"overflow-x-auto",children:[p.jsxs("table",{className:"w-full text-sm",children:[p.jsx("thead",{children:p.jsxs("tr",{className:"border-b border-slate-700",children:[p.jsx("th",{className:"px-3 py-2 text-left text-slate-400",children:"시간"}),p.jsx("th",{className:"px-3 py-2 text-left text-slate-400",children:"작업장"}),p.jsx("th",{className:"px-3 py-2 text-left text-slate-400",children:"스캔 타입"}),p.jsx("th",{className:"px-3 py-2 text-left text-slate-400",children:"결과"}),p.jsx("th",{className:"px-3 py-2 text-left text-slate-400",children:"작업자"})]})}),p.jsx("tbody",{children:a.map(g=>{var v;return p.jsxs("tr",{className:"border-b border-slate-700/50",children:[p.jsx("td",{className:"px-3 py-2 text-slate-300 text-xs",children:(v=g.scannedAt)==null?void 0:v.replace("T"," ").slice(0,16)}),p.jsx("td",{className:"px-3 py-2 text-slate-300",children:g.workstationId}),p.jsx("td",{className:"px-3 py-2 text-slate-300",children:g.scanType}),p.jsx("td",{className:"px-3 py-2",children:p.jsx("span",{className:g.result==="OK"?"text-green-400":"text-red-400",children:g.result})}),p.jsx("td",{className:"px-3 py-2 text-slate-400",children:g.operatorId})]},g.id)})})]}),a.length===0&&p.jsx("div",{className:"text-center text-slate-500 py-4",children:"스캔 이력이 없습니다."})]})]})]})}const wD={PLANNED:"bg-slate-600 text-slate-200",RELEASED:"bg-blue-700 text-blue-200",IN_PROGRESS:"bg-yellow-700 text-yellow-200",COMPLETED:"bg-green-700 text-green-200"};function AD(){const[e,t]=_.useState([]),[n,r]=_.useState({}),[a,i]=_.useState(""),l=()=>{te.get("/orders",{params:a?{status:a}:{}}).then(s=>t(s.data)),te.get("/orders/dashboard").then(s=>r(s.data))};_.useEffect(()=>{l()},[a]);const o=async s=>{await te.post(`/orders/${s}/release`),l()},u=async s=>{await te.post(`/orders/${s}/complete`),l()};return p.jsxs("div",{className:"space-y-6",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("h1",{className:"text-xl font-bold text-white",children:"생산 오더"}),p.jsx("div",{className:"flex gap-2",children:["","PLANNED","RELEASED","IN_PROGRESS","COMPLETED"].map(s=>p.jsx("button",{onClick:()=>i(s),className:`px-3 py-1.5 rounded text-xs transition-colors ${a===s?"bg-blue-600 text-white":"bg-slate-700 text-slate-300 hover:bg-slate-600"}`,children:s||"전체"},s))})]}),p.jsxs("div",{className:"grid grid-cols-4 gap-4",children:[p.jsxs("div",{className:"bg-slate-800 rounded-xl p-4 border border-slate-700 text-center",children:[p.jsx("div",{className:"text-2xl font-bold text-white",children:n.todayTotal||0}),p.jsx("div",{className:"text-xs text-slate-400",children:"오늘 오더"})]}),p.jsxs("div",{className:"bg-slate-800 rounded-xl p-4 border border-slate-700 text-center",children:[p.jsx("div",{className:"text-2xl font-bold text-yellow-400",children:n.inProgress||0}),p.jsx("div",{className:"text-xs text-slate-400",children:"진행 중"})]}),p.jsxs("div",{className:"bg-slate-800 rounded-xl p-4 border border-slate-700 text-center",children:[p.jsx("div",{className:"text-2xl font-bold text-green-400",children:n.completed||0}),p.jsx("div",{className:"text-xs text-slate-400",children:"완료"})]}),p.jsxs("div",{className:"bg-slate-800 rounded-xl p-4 border border-slate-700 text-center",children:[p.jsxs("div",{className:"text-2xl font-bold text-blue-400",children:[Math.round(n.completionRate||0),"%"]}),p.jsx("div",{className:"text-xs text-slate-400",children:"완료율"})]})]}),p.jsxs("div",{className:"bg-slate-800 rounded-xl border border-slate-700 overflow-hidden",children:[p.jsxs("table",{className:"w-full text-sm",children:[p.jsx("thead",{children:p.jsxs("tr",{className:"border-b border-slate-700",children:[p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"오더 번호"}),p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"제품"}),p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"라인"}),p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"계획 수량"}),p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"진행 수량"}),p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"진척률"}),p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"상태"}),p.jsx("th",{className:"px-4 py-3 text-left text-slate-400",children:"작업"})]})}),p.jsx("tbody",{children:e.map(s=>{var c,d;const f=s.plannedQty?Math.round((s.completedQty||0)*100/s.plannedQty):0;return p.jsxs("tr",{className:"border-b border-slate-700/50 hover:bg-slate-700/30",children:[p.jsx("td",{className:"px-4 py-3 font-mono text-blue-400",children:s.orderNumber}),p.jsx("td",{className:"px-4 py-3 text-white",children:s.productName}),p.jsx("td",{className:"px-4 py-3 text-slate-300",children:s.lineCode}),p.jsx("td",{className:"px-4 py-3 text-slate-300",children:(c=s.plannedQty)==null?void 0:c.toLocaleString()}),p.jsx("td",{className:"px-4 py-3 text-slate-300",children:((d=s.completedQty)==null?void 0:d.toLocaleString())||0}),p.jsx("td",{className:"px-4 py-3 w-32",children:p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("div",{className:"flex-1 bg-slate-700 rounded-full h-1.5",children:p.jsx("div",{className:"bg-blue-500 h-1.5 rounded-full",style:{width:`${f}%`}})}),p.jsxs("span",{className:"text-xs text-slate-400",children:[f,"%"]})]})}),p.jsx("td",{className:"px-4 py-3",children:p.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${wD[s.status]||""}`,children:s.status})}),p.jsx("td",{className:"px-4 py-3",children:p.jsxs("div",{className:"flex gap-1",children:[s.status==="PLANNED"&&p.jsxs("button",{onClick:()=>o(s.id),className:"flex items-center gap-1 px-2 py-1 bg-blue-700 hover:bg-blue-600 text-white rounded text-xs",children:[p.jsx(W4,{size:10})," 릴리즈"]}),s.status==="IN_PROGRESS"&&p.jsxs("button",{onClick:()=>u(s.id),className:"flex items-center gap-1 px-2 py-1 bg-green-700 hover:bg-green-600 text-white rounded text-xs",children:[p.jsx(w_,{size:10})," 완료"]})]})})]},s.id)})})]}),e.length===0&&p.jsx("div",{className:"text-center text-slate-500 py-8",children:"생산 오더가 없습니다."})]})]})}const _D={QUALITY:"bg-yellow-800 border-yellow-600",MATERIAL:"bg-orange-800 border-orange-600",MACHINE:"bg-red-800 border-red-600",SAFETY:"bg-red-900 border-red-500",HELP:"bg-blue-800 border-blue-600"},xx={INFO:"text-blue-400",WARNING:"text-yellow-400",CRITICAL:"text-red-400"};function ED(){const[e,t]=_.useState([]),[n,r]=_.useState([]),[a,i]=_.useState({}),l=()=>{te.get("/andon/board").then(s=>t(s.data)),te.get("/andon/events").then(s=>r(s.data)),te.get("/andon/stats").then(s=>i(s.data))};_.useEffect(()=>{l();const s=setInterval(l,1e4);return()=>clearInterval(s)},[]);const o=async s=>{const f=JSON.parse(localStorage.getItem("fa_user")||"{}");await te.put(`/andon/${s}/respond`,{responseBy:f.username}),l()},u=async s=>{await te.put(`/andon/${s}/resolve`),l()};return p.jsxs("div",{className:"space-y-6",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("h1",{className:"text-xl font-bold text-white",children:"안돈 현황판"}),p.jsx("div",{className:"text-xs text-slate-500",children:"10초마다 자동 갱신"})]}),p.jsx("div",{className:"grid grid-cols-4 gap-4",children:[{label:"오늘 발생",value:a.total_today,color:"text-white"},{label:"해결 완료",value:a.resolved,color:"text-green-400"},{label:"현재 활성",value:a.active,color:"text-red-400"},{label:"평균 응답",value:`${Math.round(a.avg_response_time||0)}초`,color:"text-yellow-400"}].map(({label:s,value:f,color:c})=>p.jsxs("div",{className:"bg-slate-800 rounded-xl p-4 border border-slate-700 text-center",children:[p.jsx("div",{className:`text-2xl font-bold ${c}`,children:f??"-"}),p.jsx("div",{className:"text-xs text-slate-400 mt-1",children:s})]},s))}),e.length>0&&p.jsxs("div",{children:[p.jsxs("h2",{className:"text-sm font-medium text-red-400 mb-3",children:["활성 안돈 (",e.length,"건)"]}),p.jsx("div",{className:"grid grid-cols-3 gap-4",children:e.map(s=>{var f;return p.jsxs("div",{className:`border-2 rounded-xl p-4 ${_D[s.andonType]||"bg-slate-800 border-slate-600"}`,children:[p.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[p.jsx(od,{size:16,className:xx[s.severity]||"text-yellow-400"}),p.jsx("span",{className:"font-bold text-white",children:s.workstationCode}),p.jsx("span",{className:"text-xs text-white/60",children:s.andonType})]}),p.jsx("div",{className:"text-sm text-white/80 mb-3",children:s.description}),p.jsxs("div",{className:"text-xs text-white/60 mb-3",children:["호출: ",s.calledBy," · ",(f=s.calledAt)==null?void 0:f.replace("T"," ").slice(0,16)]}),p.jsxs("div",{className:"flex gap-2",children:[!s.respondedAt&&p.jsxs("button",{onClick:()=>o(s.id),className:"flex items-center gap-1 px-2 py-1 bg-white/20 hover:bg-white/30 text-white rounded text-xs",children:[p.jsx(s$,{size:10})," 응답"]}),p.jsxs("button",{onClick:()=>u(s.id),className:"flex items-center gap-1 px-2 py-1 bg-green-700 hover:bg-green-600 text-white rounded text-xs",children:[p.jsx(w_,{size:10})," 해결"]})]})]},s.id)})})]}),p.jsxs("div",{className:"bg-slate-800 rounded-xl border border-slate-700 overflow-hidden",children:[p.jsx("div",{className:"px-4 py-3 border-b border-slate-700",children:p.jsx("h2",{className:"text-sm font-medium text-slate-300",children:"안돈 이벤트 이력"})}),p.jsxs("table",{className:"w-full text-sm",children:[p.jsx("thead",{children:p.jsxs("tr",{className:"border-b border-slate-700",children:[p.jsx("th",{className:"px-4 py-2 text-left text-slate-400",children:"작업장"}),p.jsx("th",{className:"px-4 py-2 text-left text-slate-400",children:"타입"}),p.jsx("th",{className:"px-4 py-2 text-left text-slate-400",children:"심각도"}),p.jsx("th",{className:"px-4 py-2 text-left text-slate-400",children:"설명"}),p.jsx("th",{className:"px-4 py-2 text-left text-slate-400",children:"호출 시각"}),p.jsx("th",{className:"px-4 py-2 text-left text-slate-400",children:"상태"}),p.jsx("th",{className:"px-4 py-2 text-left text-slate-400",children:"응답시간"})]})}),p.jsx("tbody",{children:n.slice(0,20).map(s=>{var f;return p.jsxs("tr",{className:"border-b border-slate-700/50 hover:bg-slate-700/30",children:[p.jsx("td",{className:"px-4 py-2 font-bold text-white",children:s.workstationCode}),p.jsx("td",{className:"px-4 py-2 text-slate-300",children:s.andonType}),p.jsx("td",{className:"px-4 py-2",children:p.jsx("span",{className:xx[s.severity]||"text-slate-400",children:s.severity})}),p.jsx("td",{className:"px-4 py-2 text-slate-300 max-w-xs truncate",children:s.description}),p.jsx("td",{className:"px-4 py-2 text-slate-400 text-xs",children:(f=s.calledAt)==null?void 0:f.replace("T"," ").slice(0,16)}),p.jsx("td",{className:"px-4 py-2",children:p.jsx("span",{className:s.resolvedAt?"text-green-400":s.respondedAt?"text-yellow-400":"text-red-400",children:s.resolvedAt?"RESOLVED":s.respondedAt?"IN_PROGRESS":"OPEN"})}),p.jsx("td",{className:"px-4 py-2 text-slate-400",children:s.responseTimeSeconds?`${s.responseTimeSeconds}초`:"-"})]},s.id)})})]})]})]})}function nE(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t-1}var _5=A5,E5=dd;function j5(e,t){var n=this.__data__,r=E5(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var T5=j5,N5=f5,M5=b5,C5=O5,$5=_5,P5=T5;function Ul(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0?1:-1},Ea=function(t){return Xa(t)&&t.indexOf("%")===t.length-1},Y=function(t){return K6(t)&&!es(t)},Z6=function(t){return ge(t)},ut=function(t){return Y(t)||Xa(t)},J6=0,_d=function(t){var n=++J6;return"".concat(t||"").concat(n)},Va=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Y(t)&&!Xa(t))return r;var i;if(Ea(t)){var l=t.indexOf("%");i=n*parseFloat(t.slice(0,l))/100}else i=+t;return es(i)&&(i=r),a&&i>n&&(i=n),i},Br=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},ez=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function oz(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var $x={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},hr=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Px=null,Kh=null,O0=function e(t){if(t===Px&&Array.isArray(Kh))return Kh;var n=[];return _.Children.forEach(t,function(r){ge(r)||(q6.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),Kh=n,Px=t,n};function $n(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return hr(a)}):r=[hr(t)],O0(e).forEach(function(a){var i=Sn(a,"type.displayName")||Sn(a,"type.name");r.indexOf(i)!==-1&&n.push(a)}),n}function Qt(e,t){var n=$n(e,t);return n&&n[0]}var Dx=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,a=n.height;return!(!Y(r)||r<=0||!Y(a)||a<=0)},uz=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],sz=function(t){return t&&t.type&&Xa(t.type)&&uz.indexOf(t.type)>=0},cz=function(t,n,r,a){var i,l=(i=Vh==null?void 0:Vh[a])!==null&&i!==void 0?i:[];return n.startsWith("data-")||!oe(t)&&(a&&l.includes(n)||rz.includes(n))||r&&S0.includes(n)},ye=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(_.isValidElement(t)&&(a=t.props),!Ll(a))return null;var i={};return Object.keys(a).forEach(function(l){var o;cz((o=a)===null||o===void 0?void 0:o[l],l,n,r)&&(i[l]=a[l])}),i},Cy=function e(t,n){if(t===n)return!0;var r=_.Children.count(t);if(r!==_.Children.count(n))return!1;if(r===0)return!0;if(r===1)return Rx(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yz(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Py(e){var t=e.children,n=e.width,r=e.height,a=e.viewBox,i=e.className,l=e.style,o=e.title,u=e.desc,s=pz(e,hz),f=a||{width:n,height:r,x:0,y:0},c=ve("recharts-surface",i);return C.createElement("svg",$y({},ye(s,!0,"svg"),{className:c,width:n,height:r,style:l,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),C.createElement("title",null,o),C.createElement("desc",null,u),t)}var mz=["children","className"];function Dy(){return Dy=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gz(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var pt=C.forwardRef(function(e,t){var n=e.children,r=e.className,a=vz(e,mz),i=ve("recharts-layer",r);return C.createElement("g",Dy({className:i},ye(a,!0),{ref:t}),n)}),pr=function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),i=2;ia?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r=r?e:Sz(e,t,n)}var wz=Oz,Az="\\ud800-\\udfff",_z="\\u0300-\\u036f",Ez="\\ufe20-\\ufe2f",jz="\\u20d0-\\u20ff",Tz=_z+Ez+jz,Nz="\\ufe0e\\ufe0f",Mz="\\u200d",Cz=RegExp("["+Mz+Az+Tz+Nz+"]");function $z(e){return Cz.test(e)}var hE=$z;function Pz(e){return e.split("")}var Dz=Pz,pE="\\ud800-\\udfff",Rz="\\u0300-\\u036f",zz="\\ufe20-\\ufe2f",Bz="\\u20d0-\\u20ff",Lz=Rz+zz+Bz,kz="\\ufe0e\\ufe0f",Uz="["+pE+"]",Ry="["+Lz+"]",zy="\\ud83c[\\udffb-\\udfff]",Iz="(?:"+Ry+"|"+zy+")",yE="[^"+pE+"]",mE="(?:\\ud83c[\\udde6-\\uddff]){2}",vE="[\\ud800-\\udbff][\\udc00-\\udfff]",Hz="\\u200d",gE=Iz+"?",bE="["+kz+"]?",qz="(?:"+Hz+"(?:"+[yE,mE,vE].join("|")+")"+bE+gE+")*",Gz=bE+gE+qz,Yz="(?:"+[yE+Ry+"?",Ry,mE,vE,Uz].join("|")+")",Xz=RegExp(zy+"(?="+zy+")|"+Yz+Gz,"g");function Vz(e){return e.match(Xz)||[]}var Kz=Vz,Fz=Dz,Qz=hE,Wz=Kz;function Zz(e){return Qz(e)?Wz(e):Fz(e)}var Jz=Zz,e8=wz,t8=hE,n8=Jz,r8=oE;function a8(e){return function(t){t=r8(t);var n=t8(t)?n8(t):void 0,r=n?n[0]:t.charAt(0),a=n?e8(n,1).join(""):t.slice(1);return r[e]()+a}}var i8=a8,l8=i8,o8=l8("toUpperCase"),u8=o8;const Ed=Me(u8);function Pe(e){return function(){return e}}const xE=Math.cos,Uc=Math.sin,Rn=Math.sqrt,Ic=Math.PI,jd=2*Ic,By=Math.PI,Ly=2*By,Oa=1e-6,s8=Ly-Oa;function SE(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return SE;const n=10**t;return function(r){this._+=r[0];for(let a=1,i=r.length;aOa)if(!(Math.abs(c*u-s*f)>Oa)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-l,x=a-o,g=u*u+s*s,v=h*h+x*x,y=Math.sqrt(g),m=Math.sqrt(d),b=i*Math.tan((By-Math.acos((g+d-v)/(2*y*m)))/2),O=b/m,S=b/y;Math.abs(O-1)>Oa&&this._append`L${t+O*f},${n+O*c}`,this._append`A${i},${i},0,0,${+(c*h>f*x)},${this._x1=t+S*u},${this._y1=n+S*s}`}}arc(t,n,r,a,i,l){if(t=+t,n=+n,r=+r,l=!!l,r<0)throw new Error(`negative radius: ${r}`);let o=r*Math.cos(a),u=r*Math.sin(a),s=t+o,f=n+u,c=1^l,d=l?a-i:i-a;this._x1===null?this._append`M${s},${f}`:(Math.abs(this._x1-s)>Oa||Math.abs(this._y1-f)>Oa)&&this._append`L${s},${f}`,r&&(d<0&&(d=d%Ly+Ly),d>s8?this._append`A${r},${r},0,1,${c},${t-o},${n-u}A${r},${r},0,1,${c},${this._x1=s},${this._y1=f}`:d>Oa&&this._append`A${r},${r},0,${+(d>=By)},${c},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function w0(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new f8(t)}function A0(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function OE(e){this._context=e}OE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Td(e){return new OE(e)}function wE(e){return e[0]}function AE(e){return e[1]}function _E(e,t){var n=Pe(!0),r=null,a=Td,i=null,l=w0(o);e=typeof e=="function"?e:e===void 0?wE:Pe(e),t=typeof t=="function"?t:t===void 0?AE:Pe(t);function o(u){var s,f=(u=A0(u)).length,c,d=!1,h;for(r==null&&(i=a(h=l())),s=0;s<=f;++s)!(s=h;--x)o.point(b[x],O[x]);o.lineEnd(),o.areaEnd()}y&&(b[d]=+e(v,d,c),O[d]=+t(v,d,c),o.point(r?+r(v,d,c):b[d],n?+n(v,d,c):O[d]))}if(m)return o=null,m+""||null}function f(){return _E().defined(a).curve(l).context(i)}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:Pe(+c),r=null,s):e},s.x0=function(c){return arguments.length?(e=typeof c=="function"?c:Pe(+c),s):e},s.x1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:Pe(+c),s):r},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:Pe(+c),n=null,s):t},s.y0=function(c){return arguments.length?(t=typeof c=="function"?c:Pe(+c),s):t},s.y1=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:Pe(+c),s):n},s.lineX0=s.lineY0=function(){return f().x(e).y(t)},s.lineY1=function(){return f().x(e).y(n)},s.lineX1=function(){return f().x(r).y(t)},s.defined=function(c){return arguments.length?(a=typeof c=="function"?c:Pe(!!c),s):a},s.curve=function(c){return arguments.length?(l=c,i!=null&&(o=l(i)),s):l},s.context=function(c){return arguments.length?(c==null?i=o=null:o=l(i=c),s):i},s}class EE{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function d8(e){return new EE(e,!0)}function h8(e){return new EE(e,!1)}const _0={draw(e,t){const n=Rn(t/Ic);e.moveTo(n,0),e.arc(0,0,n,0,jd)}},p8={draw(e,t){const n=Rn(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},jE=Rn(1/3),y8=jE*2,m8={draw(e,t){const n=Rn(t/y8),r=n*jE;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},v8={draw(e,t){const n=Rn(t),r=-n/2;e.rect(r,r,n,n)}},g8=.8908130915292852,TE=Uc(Ic/10)/Uc(7*Ic/10),b8=Uc(jd/10)*TE,x8=-xE(jd/10)*TE,S8={draw(e,t){const n=Rn(t*g8),r=b8*n,a=x8*n;e.moveTo(0,-n),e.lineTo(r,a);for(let i=1;i<5;++i){const l=jd*i/5,o=xE(l),u=Uc(l);e.lineTo(u*n,-o*n),e.lineTo(o*r-u*a,u*r+o*a)}e.closePath()}},Fh=Rn(3),O8={draw(e,t){const n=-Rn(t/(Fh*3));e.moveTo(0,n*2),e.lineTo(-Fh*n,-n),e.lineTo(Fh*n,-n),e.closePath()}},un=-.5,sn=Rn(3)/2,ky=1/Rn(12),w8=(ky/2+1)*3,A8={draw(e,t){const n=Rn(t/w8),r=n/2,a=n*ky,i=r,l=n*ky+n,o=-i,u=l;e.moveTo(r,a),e.lineTo(i,l),e.lineTo(o,u),e.lineTo(un*r-sn*a,sn*r+un*a),e.lineTo(un*i-sn*l,sn*i+un*l),e.lineTo(un*o-sn*u,sn*o+un*u),e.lineTo(un*r+sn*a,un*a-sn*r),e.lineTo(un*i+sn*l,un*l-sn*i),e.lineTo(un*o+sn*u,un*u-sn*o),e.closePath()}};function _8(e,t){let n=null,r=w0(a);e=typeof e=="function"?e:Pe(e||_0),t=typeof t=="function"?t:Pe(t===void 0?64:+t);function a(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:Pe(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:Pe(+i),a):t},a.context=function(i){return arguments.length?(n=i??null,a):n},a}function Hc(){}function qc(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function NE(e){this._context=e}NE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:qc(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:qc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function E8(e){return new NE(e)}function ME(e){this._context=e}ME.prototype={areaStart:Hc,areaEnd:Hc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:qc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function j8(e){return new ME(e)}function CE(e){this._context=e}CE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:qc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function T8(e){return new CE(e)}function $E(e){this._context=e}$E.prototype={areaStart:Hc,areaEnd:Hc,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function N8(e){return new $E(e)}function Bx(e){return e<0?-1:1}function Lx(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),l=(n-e._y1)/(a||r<0&&-0),o=(i*a+l*r)/(r+a);return(Bx(i)+Bx(l))*Math.min(Math.abs(i),Math.abs(l),.5*Math.abs(o))||0}function kx(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Qh(e,t,n){var r=e._x0,a=e._y0,i=e._x1,l=e._y1,o=(i-r)/3;e._context.bezierCurveTo(r+o,a+o*t,i-o,l-o*n,i,l)}function Gc(e){this._context=e}Gc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Qh(this,this._t0,kx(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Qh(this,kx(this,n=Lx(this,e,t)),n);break;default:Qh(this,this._t0,n=Lx(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function PE(e){this._context=new DE(e)}(PE.prototype=Object.create(Gc.prototype)).point=function(e,t){Gc.prototype.point.call(this,t,e)};function DE(e){this._context=e}DE.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}};function M8(e){return new Gc(e)}function C8(e){return new PE(e)}function RE(e){this._context=e}RE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Ux(e),a=Ux(t),i=0,l=1;l=0;--t)a[t]=(l[t]-a[t+1])/i[t];for(i[n-1]=(e[n]+a[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function P8(e){return new Nd(e,.5)}function D8(e){return new Nd(e,0)}function R8(e){return new Nd(e,1)}function rl(e,t){if((l=e.length)>1)for(var n=1,r,a,i=e[t[0]],l,o=i.length;n=0;)n[t]=t;return n}function z8(e,t){return e[t]}function B8(e){const t=[];return t.key=e,t}function L8(){var e=Pe([]),t=Uy,n=rl,r=z8;function a(i){var l=Array.from(e.apply(this,arguments),B8),o,u=l.length,s=-1,f;for(const c of i)for(o=0,++s;o0){for(var n,r,a=0,i=e[0].length,l;a0){for(var n=0,r=e[t[0]],a,i=r.length;n0)||!((i=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,i,l;r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function V8(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var zE={symbolCircle:_0,symbolCross:p8,symbolDiamond:m8,symbolSquare:v8,symbolStar:S8,symbolTriangle:O8,symbolWye:A8},K8=Math.PI/180,F8=function(t){var n="symbol".concat(Ed(t));return zE[n]||_0},Q8=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var a=18*K8;return 1.25*t*t*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},W8=function(t,n){zE["symbol".concat(Ed(t))]=n},E0=function(t){var n=t.type,r=n===void 0?"circle":n,a=t.size,i=a===void 0?64:a,l=t.sizeType,o=l===void 0?"area":l,u=X8(t,H8),s=Hx(Hx({},u),{},{type:r,size:i,sizeType:o}),f=function(){var v=F8(r),y=_8().type(v).size(Q8(i,o,r));return y()},c=s.className,d=s.cx,h=s.cy,x=ye(s,!0);return d===+d&&h===+h&&i===+i?C.createElement("path",Iy({},x,{className:ve("recharts-symbols",c),transform:"translate(".concat(d,", ").concat(h,")"),d:f()})):null};E0.registerSymbol=W8;function al(e){"@babel/helpers - typeof";return al=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},al(e)}function Hy(){return Hy=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?1:-1},Ea=function(t){return Xa(t)&&t.indexOf("%")===t.length-1},Y=function(t){return J6(t)&&!es(t)},rz=function(t){return ge(t)},ut=function(t){return Y(t)||Xa(t)},az=0,Ed=function(t){var n=++az;return"".concat(t||"").concat(n)},Va=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Y(t)&&!Xa(t))return r;var i;if(Ea(t)){var l=t.indexOf("%");i=n*parseFloat(t.slice(0,l))/100}else i=+t;return es(i)&&(i=r),a&&i>n&&(i=n),i},Br=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},iz=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dz(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var $x={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},hr=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Px=null,Fh=null,O0=function e(t){if(t===Px&&Array.isArray(Fh))return Fh;var n=[];return _.Children.forEach(t,function(r){ge(r)||(K6.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),Fh=n,Px=t,n};function $n(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return hr(a)}):r=[hr(t)],O0(e).forEach(function(a){var i=Sn(a,"type.displayName")||Sn(a,"type.name");r.indexOf(i)!==-1&&n.push(a)}),n}function Qt(e,t){var n=$n(e,t);return n&&n[0]}var Dx=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,a=n.height;return!(!Y(r)||r<=0||!Y(a)||a<=0)},hz=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],pz=function(t){return t&&t.type&&Xa(t.type)&&hz.indexOf(t.type)>=0},yz=function(t,n,r,a){var i,l=(i=Kh==null?void 0:Kh[a])!==null&&i!==void 0?i:[];return n.startsWith("data-")||!ue(t)&&(a&&l.includes(n)||uz.includes(n))||r&&S0.includes(n)},ye=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(_.isValidElement(t)&&(a=t.props),!Ll(a))return null;var i={};return Object.keys(a).forEach(function(l){var o;yz((o=a)===null||o===void 0?void 0:o[l],l,n,r)&&(i[l]=a[l])}),i},Cy=function e(t,n){if(t===n)return!0;var r=_.Children.count(t);if(r!==_.Children.count(n))return!1;if(r===0)return!0;if(r===1)return Rx(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xz(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Py(e){var t=e.children,n=e.width,r=e.height,a=e.viewBox,i=e.className,l=e.style,o=e.title,u=e.desc,s=bz(e,gz),f=a||{width:n,height:r,x:0,y:0},c=ve("recharts-surface",i);return C.createElement("svg",$y({},ye(s,!0,"svg"),{className:c,width:n,height:r,style:l,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),C.createElement("title",null,o),C.createElement("desc",null,u),t)}var Sz=["children","className"];function Dy(){return Dy=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wz(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var yt=C.forwardRef(function(e,t){var n=e.children,r=e.className,a=Oz(e,Sz),i=ve("recharts-layer",r);return C.createElement("g",Dy({className:i},ye(a,!0),{ref:t}),n)}),pr=function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),i=2;ia?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r=r?e:Ez(e,t,n)}var Tz=jz,Nz="\\ud800-\\udfff",Mz="\\u0300-\\u036f",Cz="\\ufe20-\\ufe2f",$z="\\u20d0-\\u20ff",Pz=Mz+Cz+$z,Dz="\\ufe0e\\ufe0f",Rz="\\u200d",zz=RegExp("["+Rz+Nz+Pz+Dz+"]");function Bz(e){return zz.test(e)}var yE=Bz;function Lz(e){return e.split("")}var kz=Lz,mE="\\ud800-\\udfff",Uz="\\u0300-\\u036f",Iz="\\ufe20-\\ufe2f",Hz="\\u20d0-\\u20ff",qz=Uz+Iz+Hz,Gz="\\ufe0e\\ufe0f",Yz="["+mE+"]",Ry="["+qz+"]",zy="\\ud83c[\\udffb-\\udfff]",Xz="(?:"+Ry+"|"+zy+")",vE="[^"+mE+"]",gE="(?:\\ud83c[\\udde6-\\uddff]){2}",bE="[\\ud800-\\udbff][\\udc00-\\udfff]",Vz="\\u200d",xE=Xz+"?",SE="["+Gz+"]?",Kz="(?:"+Vz+"(?:"+[vE,gE,bE].join("|")+")"+SE+xE+")*",Fz=SE+xE+Kz,Qz="(?:"+[vE+Ry+"?",Ry,gE,bE,Yz].join("|")+")",Wz=RegExp(zy+"(?="+zy+")|"+Qz+Fz,"g");function Zz(e){return e.match(Wz)||[]}var Jz=Zz,e8=kz,t8=yE,n8=Jz;function r8(e){return t8(e)?n8(e):e8(e)}var a8=r8,i8=Tz,l8=yE,o8=a8,u8=sE;function s8(e){return function(t){t=u8(t);var n=l8(t)?o8(t):void 0,r=n?n[0]:t.charAt(0),a=n?i8(n,1).join(""):t.slice(1);return r[e]()+a}}var c8=s8,f8=c8,d8=f8("toUpperCase"),h8=d8;const jd=Me(h8);function Pe(e){return function(){return e}}const OE=Math.cos,Ic=Math.sin,Rn=Math.sqrt,Hc=Math.PI,Td=2*Hc,By=Math.PI,Ly=2*By,Oa=1e-6,p8=Ly-Oa;function wE(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return wE;const n=10**t;return function(r){this._+=r[0];for(let a=1,i=r.length;aOa)if(!(Math.abs(c*u-s*f)>Oa)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-l,x=a-o,g=u*u+s*s,v=h*h+x*x,y=Math.sqrt(g),m=Math.sqrt(d),b=i*Math.tan((By-Math.acos((g+d-v)/(2*y*m)))/2),O=b/m,S=b/y;Math.abs(O-1)>Oa&&this._append`L${t+O*f},${n+O*c}`,this._append`A${i},${i},0,0,${+(c*h>f*x)},${this._x1=t+S*u},${this._y1=n+S*s}`}}arc(t,n,r,a,i,l){if(t=+t,n=+n,r=+r,l=!!l,r<0)throw new Error(`negative radius: ${r}`);let o=r*Math.cos(a),u=r*Math.sin(a),s=t+o,f=n+u,c=1^l,d=l?a-i:i-a;this._x1===null?this._append`M${s},${f}`:(Math.abs(this._x1-s)>Oa||Math.abs(this._y1-f)>Oa)&&this._append`L${s},${f}`,r&&(d<0&&(d=d%Ly+Ly),d>p8?this._append`A${r},${r},0,1,${c},${t-o},${n-u}A${r},${r},0,1,${c},${this._x1=s},${this._y1=f}`:d>Oa&&this._append`A${r},${r},0,${+(d>=By)},${c},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function w0(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new m8(t)}function A0(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function AE(e){this._context=e}AE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Nd(e){return new AE(e)}function _E(e){return e[0]}function EE(e){return e[1]}function jE(e,t){var n=Pe(!0),r=null,a=Nd,i=null,l=w0(o);e=typeof e=="function"?e:e===void 0?_E:Pe(e),t=typeof t=="function"?t:t===void 0?EE:Pe(t);function o(u){var s,f=(u=A0(u)).length,c,d=!1,h;for(r==null&&(i=a(h=l())),s=0;s<=f;++s)!(s=h;--x)o.point(b[x],O[x]);o.lineEnd(),o.areaEnd()}y&&(b[d]=+e(v,d,c),O[d]=+t(v,d,c),o.point(r?+r(v,d,c):b[d],n?+n(v,d,c):O[d]))}if(m)return o=null,m+""||null}function f(){return jE().defined(a).curve(l).context(i)}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:Pe(+c),r=null,s):e},s.x0=function(c){return arguments.length?(e=typeof c=="function"?c:Pe(+c),s):e},s.x1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:Pe(+c),s):r},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:Pe(+c),n=null,s):t},s.y0=function(c){return arguments.length?(t=typeof c=="function"?c:Pe(+c),s):t},s.y1=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:Pe(+c),s):n},s.lineX0=s.lineY0=function(){return f().x(e).y(t)},s.lineY1=function(){return f().x(e).y(n)},s.lineX1=function(){return f().x(r).y(t)},s.defined=function(c){return arguments.length?(a=typeof c=="function"?c:Pe(!!c),s):a},s.curve=function(c){return arguments.length?(l=c,i!=null&&(o=l(i)),s):l},s.context=function(c){return arguments.length?(c==null?i=o=null:o=l(i=c),s):i},s}class TE{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function v8(e){return new TE(e,!0)}function g8(e){return new TE(e,!1)}const _0={draw(e,t){const n=Rn(t/Hc);e.moveTo(n,0),e.arc(0,0,n,0,Td)}},b8={draw(e,t){const n=Rn(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},NE=Rn(1/3),x8=NE*2,S8={draw(e,t){const n=Rn(t/x8),r=n*NE;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},O8={draw(e,t){const n=Rn(t),r=-n/2;e.rect(r,r,n,n)}},w8=.8908130915292852,ME=Ic(Hc/10)/Ic(7*Hc/10),A8=Ic(Td/10)*ME,_8=-OE(Td/10)*ME,E8={draw(e,t){const n=Rn(t*w8),r=A8*n,a=_8*n;e.moveTo(0,-n),e.lineTo(r,a);for(let i=1;i<5;++i){const l=Td*i/5,o=OE(l),u=Ic(l);e.lineTo(u*n,-o*n),e.lineTo(o*r-u*a,u*r+o*a)}e.closePath()}},Qh=Rn(3),j8={draw(e,t){const n=-Rn(t/(Qh*3));e.moveTo(0,n*2),e.lineTo(-Qh*n,-n),e.lineTo(Qh*n,-n),e.closePath()}},un=-.5,sn=Rn(3)/2,ky=1/Rn(12),T8=(ky/2+1)*3,N8={draw(e,t){const n=Rn(t/T8),r=n/2,a=n*ky,i=r,l=n*ky+n,o=-i,u=l;e.moveTo(r,a),e.lineTo(i,l),e.lineTo(o,u),e.lineTo(un*r-sn*a,sn*r+un*a),e.lineTo(un*i-sn*l,sn*i+un*l),e.lineTo(un*o-sn*u,sn*o+un*u),e.lineTo(un*r+sn*a,un*a-sn*r),e.lineTo(un*i+sn*l,un*l-sn*i),e.lineTo(un*o+sn*u,un*u-sn*o),e.closePath()}};function M8(e,t){let n=null,r=w0(a);e=typeof e=="function"?e:Pe(e||_0),t=typeof t=="function"?t:Pe(t===void 0?64:+t);function a(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:Pe(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:Pe(+i),a):t},a.context=function(i){return arguments.length?(n=i??null,a):n},a}function qc(){}function Gc(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function CE(e){this._context=e}CE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Gc(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Gc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function C8(e){return new CE(e)}function $E(e){this._context=e}$E.prototype={areaStart:qc,areaEnd:qc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Gc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $8(e){return new $E(e)}function PE(e){this._context=e}PE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Gc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function P8(e){return new PE(e)}function DE(e){this._context=e}DE.prototype={areaStart:qc,areaEnd:qc,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function D8(e){return new DE(e)}function Bx(e){return e<0?-1:1}function Lx(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),l=(n-e._y1)/(a||r<0&&-0),o=(i*a+l*r)/(r+a);return(Bx(i)+Bx(l))*Math.min(Math.abs(i),Math.abs(l),.5*Math.abs(o))||0}function kx(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Wh(e,t,n){var r=e._x0,a=e._y0,i=e._x1,l=e._y1,o=(i-r)/3;e._context.bezierCurveTo(r+o,a+o*t,i-o,l-o*n,i,l)}function Yc(e){this._context=e}Yc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Wh(this,this._t0,kx(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Wh(this,kx(this,n=Lx(this,e,t)),n);break;default:Wh(this,this._t0,n=Lx(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function RE(e){this._context=new zE(e)}(RE.prototype=Object.create(Yc.prototype)).point=function(e,t){Yc.prototype.point.call(this,t,e)};function zE(e){this._context=e}zE.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}};function R8(e){return new Yc(e)}function z8(e){return new RE(e)}function BE(e){this._context=e}BE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Ux(e),a=Ux(t),i=0,l=1;l=0;--t)a[t]=(l[t]-a[t+1])/i[t];for(i[n-1]=(e[n]+a[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function L8(e){return new Md(e,.5)}function k8(e){return new Md(e,0)}function U8(e){return new Md(e,1)}function rl(e,t){if((l=e.length)>1)for(var n=1,r,a,i=e[t[0]],l,o=i.length;n=0;)n[t]=t;return n}function I8(e,t){return e[t]}function H8(e){const t=[];return t.key=e,t}function q8(){var e=Pe([]),t=Uy,n=rl,r=I8;function a(i){var l=Array.from(e.apply(this,arguments),H8),o,u=l.length,s=-1,f;for(const c of i)for(o=0,++s;o0){for(var n,r,a=0,i=e[0].length,l;a0){for(var n=0,r=e[t[0]],a,i=r.length;n0)||!((i=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,i,l;r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Z8(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var LE={symbolCircle:_0,symbolCross:b8,symbolDiamond:S8,symbolSquare:O8,symbolStar:E8,symbolTriangle:j8,symbolWye:N8},J8=Math.PI/180,eB=function(t){var n="symbol".concat(jd(t));return LE[n]||_0},tB=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var a=18*J8;return 1.25*t*t*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},nB=function(t,n){LE["symbol".concat(jd(t))]=n},E0=function(t){var n=t.type,r=n===void 0?"circle":n,a=t.size,i=a===void 0?64:a,l=t.sizeType,o=l===void 0?"area":l,u=W8(t,V8),s=Hx(Hx({},u),{},{type:r,size:i,sizeType:o}),f=function(){var v=eB(r),y=M8().type(v).size(tB(i,o,r));return y()},c=s.className,d=s.cx,h=s.cy,x=ye(s,!0);return d===+d&&h===+h&&i===+i?C.createElement("path",Iy({},x,{className:ve("recharts-symbols",c),transform:"translate(".concat(d,", ").concat(h,")"),d:f()})):null};E0.registerSymbol=nB;function al(e){"@babel/helpers - typeof";return al=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},al(e)}function Hy(){return Hy=Object.assign?Object.assign.bind():function(e){for(var t=1;t `);var m=h.inactive?s:h.color;return C.createElement("li",Hy({className:v,style:c,key:"legend-item-".concat(x)},kc(r.props,h,x)),C.createElement(Py,{width:l,height:l,viewBox:f,style:d},r.renderIcon(h)),C.createElement("span",{className:"recharts-legend-item-text",style:{color:m}},g?g(y,h,x):y))})}},{key:"render",value:function(){var r=this.props,a=r.payload,i=r.layout,l=r.align;if(!a||!a.length)return null;var o={padding:0,margin:0,textAlign:i==="horizontal"?l:"left"};return C.createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}])}(_.PureComponent);ru(j0,"displayName","Legend");ru(j0,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var oB=dd;function uB(){this.__data__=new oB,this.size=0}var sB=uB;function cB(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var fB=cB;function dB(e){return this.__data__.get(e)}var hB=dB;function pB(e){return this.__data__.has(e)}var yB=pB,mB=dd,vB=p0,gB=y0,bB=200;function xB(e,t){var n=this.__data__;if(n instanceof mB){var r=n.__data__;if(!vB||r.lengtho))return!1;var s=i.get(e),f=i.get(t);if(s&&f)return s==t&&f==e;var c=-1,d=!0,h=n&HB?new LB:void 0;for(i.set(e,t),i.set(t,e);++c-1&&e%1==0&&e-1&&e%1==0&&e<=XL}var C0=VL,KL=Er,FL=C0,QL=jr,WL="[object Arguments]",ZL="[object Array]",JL="[object Boolean]",ek="[object Date]",tk="[object Error]",nk="[object Function]",rk="[object Map]",ak="[object Number]",ik="[object Object]",lk="[object RegExp]",ok="[object Set]",uk="[object String]",sk="[object WeakMap]",ck="[object ArrayBuffer]",fk="[object DataView]",dk="[object Float32Array]",hk="[object Float64Array]",pk="[object Int8Array]",yk="[object Int16Array]",mk="[object Int32Array]",vk="[object Uint8Array]",gk="[object Uint8ClampedArray]",bk="[object Uint16Array]",xk="[object Uint32Array]",Be={};Be[dk]=Be[hk]=Be[pk]=Be[yk]=Be[mk]=Be[vk]=Be[gk]=Be[bk]=Be[xk]=!0;Be[WL]=Be[ZL]=Be[ck]=Be[JL]=Be[fk]=Be[ek]=Be[tk]=Be[nk]=Be[rk]=Be[ak]=Be[ik]=Be[lk]=Be[ok]=Be[uk]=Be[sk]=!1;function Sk(e){return QL(e)&&FL(e.length)&&!!Be[KL(e)]}var Ok=Sk;function wk(e){return function(t){return e(t)}}var VE=wk,Kc={exports:{}};Kc.exports;(function(e,t){var n=tE,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,l=i&&n.process,o=function(){try{var u=a&&a.require&&a.require("util").types;return u||l&&l.binding&&l.binding("util")}catch{}}();e.exports=o})(Kc,Kc.exports);var Ak=Kc.exports,_k=Ok,Ek=VE,Fx=Ak,Qx=Fx&&Fx.isTypedArray,jk=Qx?Ek(Qx):_k,KE=jk,Tk=CL,Nk=N0,Mk=Xt,Ck=XE,$k=M0,Pk=KE,Dk=Object.prototype,Rk=Dk.hasOwnProperty;function zk(e,t){var n=Mk(e),r=!n&&Nk(e),a=!n&&!r&&Ck(e),i=!n&&!r&&!a&&Pk(e),l=n||r||a||i,o=l?Tk(e.length,String):[],u=o.length;for(var s in e)(t||Rk.call(e,s))&&!(l&&(s=="length"||a&&(s=="offset"||s=="parent")||i&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||$k(s,u)))&&o.push(s);return o}var Bk=zk,Lk=Object.prototype;function kk(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Lk;return e===n}var Uk=kk;function Ik(e,t){return function(n){return e(t(n))}}var FE=Ik,Hk=FE,qk=Hk(Object.keys,Object),Gk=qk,Yk=Uk,Xk=Gk,Vk=Object.prototype,Kk=Vk.hasOwnProperty;function Fk(e){if(!Yk(e))return Xk(e);var t=[];for(var n in Object(e))Kk.call(e,n)&&n!="constructor"&&t.push(n);return t}var Qk=Fk,Wk=d0,Zk=C0;function Jk(e){return e!=null&&Zk(e.length)&&!Wk(e)}var ts=Jk,e7=Bk,t7=Qk,n7=ts;function r7(e){return n7(e)?e7(e):t7(e)}var Md=r7,a7=bL,i7=NL,l7=Md;function o7(e){return a7(e,l7,i7)}var u7=o7,Wx=u7,s7=1,c7=Object.prototype,f7=c7.hasOwnProperty;function d7(e,t,n,r,a,i){var l=n&s7,o=Wx(e),u=o.length,s=Wx(t),f=s.length;if(u!=f&&!l)return!1;for(var c=u;c--;){var d=o[c];if(!(l?d in t:f7.call(t,d)))return!1}var h=i.get(e),x=i.get(t);if(h&&x)return h==t&&x==e;var g=!0;i.set(e,t),i.set(t,e);for(var v=l;++c-1}var c9=s9;function f9(e,t,n){for(var r=-1,a=e==null?0:e.length;++r=E9){var s=t?null:A9(e);if(s)return _9(s);l=!1,a=w9,u=new x9}else u=t?[]:o;e:for(;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function H9(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function q9(e){return e.value}function G9(e,t){if(C.isValidElement(e))return C.cloneElement(e,t);if(typeof e=="function")return C.createElement(e,t);t.ref;var n=I9(t,P9);return C.createElement(j0,n)}var h1=1,Ui=function(e){function t(){var n;D9(this,t);for(var r=arguments.length,a=new Array(r),i=0;ih1||Math.abs(a.height-this.lastBoundingBox.height)>h1)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,r&&r(a)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?er({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var a=this.props,i=a.layout,l=a.align,o=a.verticalAlign,u=a.margin,s=a.chartWidth,f=a.chartHeight,c,d;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(l==="center"&&i==="vertical"){var h=this.getBBoxSnapshot();c={left:((s||0)-h.width)/2}}else c=l==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(o==="middle"){var x=this.getBBoxSnapshot();d={top:((f||0)-x.height)/2}}else d=o==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return er(er({},c),d)}},{key:"render",value:function(){var r=this,a=this.props,i=a.content,l=a.width,o=a.height,u=a.wrapperStyle,s=a.payloadUniqBy,f=a.payload,c=er(er({position:"absolute",width:l||"auto",height:o||"auto"},this.getDefaultPosition(u)),u);return C.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(h){r.wrapperNode=h}},G9(i,er(er({},this.props),{},{payload:nj(f,s,q9)})))}}],[{key:"getWithHeight",value:function(r,a){var i=er(er({},this.defaultProps),r.props),l=i.layout;return l==="vertical"&&Y(r.props.height)?{height:r.props.height}:l==="horizontal"?{width:r.props.width||a}:null}}])}(_.PureComponent);Cd(Ui,"displayName","Legend");Cd(Ui,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var p1=Ju,Y9=N0,X9=Xt,y1=p1?p1.isConcatSpreadable:void 0;function V9(e){return X9(e)||Y9(e)||!!(y1&&e&&e[y1])}var K9=V9,F9=GE,Q9=K9;function ij(e,t,n,r,a){var i=-1,l=e.length;for(n||(n=Q9),a||(a=[]);++i0&&n(o)?t>1?ij(o,t-1,n,r,a):F9(a,o):r||(a[a.length]=o)}return a}var lj=ij;function W9(e){return function(t,n,r){for(var a=-1,i=Object(t),l=r(t),o=l.length;o--;){var u=l[e?o:++a];if(n(i[u],u,i)===!1)break}return t}}var Z9=W9,J9=Z9,eI=J9(),tI=eI,nI=tI,rI=Md;function aI(e,t){return e&&nI(e,t,rI)}var oj=aI,iI=ts;function lI(e,t){return function(n,r){if(n==null)return n;if(!iI(n))return e(n,r);for(var a=n.length,i=t?a:-1,l=Object(n);(t?i--:++it||i&&l&&u&&!o&&!s||r&&l&&u||!n&&u||!a)return 1;if(!r&&!i&&!s&&e=o)return u;var s=n[r];return u*(s=="desc"?-1:1)}}return e.index-t.index}var xI=bI,ep=v0,SI=g0,OI=fa,wI=uj,AI=yI,_I=VE,EI=xI,jI=Gl,TI=Xt;function NI(e,t,n){t.length?t=ep(t,function(i){return TI(i)?function(l){return SI(l,i.length===1?i[0]:i)}:i}):t=[jI];var r=-1;t=ep(t,_I(OI));var a=wI(e,function(i,l,o){var u=ep(t,function(s){return s(i)});return{criteria:u,index:++r,value:i}});return AI(a,function(i,l){return EI(i,l,n)})}var MI=NI;function CI(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var $I=CI,PI=$I,v1=Math.max;function DI(e,t,n){return t=v1(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=v1(r.length-t,0),l=Array(i);++a0){if(++t>=GI)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var KI=VI,FI=qI,QI=KI,WI=QI(FI),ZI=WI,JI=Gl,eH=RI,tH=ZI;function nH(e,t){return tH(eH(e,t,JI),e+"")}var rH=nH,aH=h0,iH=ts,lH=M0,oH=ca;function uH(e,t,n){if(!oH(n))return!1;var r=typeof t;return(r=="number"?iH(n)&&lH(t,n.length):r=="string"&&t in n)?aH(n[t],e):!1}var $d=uH,sH=lj,cH=MI,fH=rH,b1=$d,dH=fH(function(e,t){if(e==null)return[];var n=t.length;return n>1&&b1(e,t[0],t[1])?t=[]:n>2&&b1(t[0],t[1],t[2])&&(t=[t[0]]),cH(e,sH(t,1),[])}),hH=dH;const D0=Me(hH);function au(e){"@babel/helpers - typeof";return au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},au(e)}function Qy(){return Qy=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t.x),"".concat(ao,"-left"),Y(n)&&t&&Y(t.x)&&n=t.y),"".concat(ao,"-top"),Y(r)&&t&&Y(t.y)&&rg?Math.max(f,u[r]):Math.max(c,u[r])}function TH(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function NH(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,a=e.position,i=e.reverseDirection,l=e.tooltipBox,o=e.useTranslate3d,u=e.viewBox,s,f,c;return l.height>0&&l.width>0&&n?(f=O1({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:l.width,viewBox:u,viewBoxDimension:u.width}),c=O1({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:l.height,viewBox:u,viewBoxDimension:u.height}),s=TH({translateX:f,translateY:c,useTranslate3d:o})):s=EH,{cssProperties:s,cssClasses:jH({translateX:f,translateY:c,coordinate:n})}}function ll(e){"@babel/helpers - typeof";return ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ll(e)}function w1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function A1(e){for(var t=1;t_1||Math.abs(r.height-this.state.lastBoundingBox.height)>_1)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,a=this.props,i=a.active,l=a.allowEscapeViewBox,o=a.animationDuration,u=a.animationEasing,s=a.children,f=a.coordinate,c=a.hasPayload,d=a.isAnimationActive,h=a.offset,x=a.position,g=a.reverseDirection,v=a.useTranslate3d,y=a.viewBox,m=a.wrapperStyle,b=NH({allowEscapeViewBox:l,coordinate:f,offsetTopLeft:h,position:x,reverseDirection:g,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:y}),O=b.cssClasses,S=b.cssProperties,w=A1(A1({transition:d&&i?"transform ".concat(o,"ms ").concat(u):void 0},S),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&c?"visible":"hidden",position:"absolute",top:0,left:0},m);return C.createElement("div",{tabIndex:-1,className:O,style:w,ref:function(E){r.wrapperNode=E}},s)}}])}(_.PureComponent),kH=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ns={isSsr:kH()};function ol(e){"@babel/helpers - typeof";return ol=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ol(e)}function E1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function j1(e){for(var t=1;t0;return C.createElement(LH,{allowEscapeViewBox:l,animationDuration:o,animationEasing:u,isAnimationActive:d,active:i,coordinate:f,hasPayload:w,offset:h,position:v,reverseDirection:y,useTranslate3d:m,viewBox:b,wrapperStyle:O},FH(s,j1(j1({},this.props),{},{payload:S})))}}])}(_.PureComponent);R0(zn,"displayName","Tooltip");R0(zn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ns.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var QH=Kn,WH=function(){return QH.Date.now()},ZH=WH,JH=/\s/;function eq(e){for(var t=e.length;t--&&JH.test(e.charAt(t)););return t}var tq=eq,nq=tq,rq=/^\s+/;function aq(e){return e&&e.slice(0,nq(e)+1).replace(rq,"")}var iq=aq,lq=iq,T1=ca,oq=Bl,N1=NaN,uq=/^[-+]0x[0-9a-f]+$/i,sq=/^0b[01]+$/i,cq=/^0o[0-7]+$/i,fq=parseInt;function dq(e){if(typeof e=="number")return e;if(oq(e))return N1;if(T1(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=T1(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=lq(e);var n=sq.test(e);return n||cq.test(e)?fq(e.slice(2),n?2:8):uq.test(e)?N1:+e}var pj=dq,hq=ca,np=ZH,M1=pj,pq="Expected a function",yq=Math.max,mq=Math.min;function vq(e,t,n){var r,a,i,l,o,u,s=0,f=!1,c=!1,d=!0;if(typeof e!="function")throw new TypeError(pq);t=M1(t)||0,hq(n)&&(f=!!n.leading,c="maxWait"in n,i=c?yq(M1(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d);function h(w){var A=r,E=a;return r=a=void 0,s=w,l=e.apply(E,A),l}function x(w){return s=w,o=setTimeout(y,t),f?h(w):l}function g(w){var A=w-u,E=w-s,j=t-A;return c?mq(j,i-E):j}function v(w){var A=w-u,E=w-s;return u===void 0||A>=t||A<0||c&&E>=i}function y(){var w=np();if(v(w))return m(w);o=setTimeout(y,g(w))}function m(w){return o=void 0,d&&r?h(w):(r=a=void 0,l)}function b(){o!==void 0&&clearTimeout(o),s=0,r=u=a=o=void 0}function O(){return o===void 0?l:m(np())}function S(){var w=np(),A=v(w);if(r=arguments,a=this,u=w,A){if(o===void 0)return x(u);if(c)return clearTimeout(o),o=setTimeout(y,t),h(u)}return o===void 0&&(o=setTimeout(y,t)),l}return S.cancel=b,S.flush=O,S}var gq=vq,bq=gq,xq=ca,Sq="Expected a function";function Oq(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(Sq);return xq(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),bq(e,t,{leading:r,maxWait:t,trailing:a})}var wq=Oq;const yj=Me(wq);function lu(e){"@babel/helpers - typeof";return lu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lu(e)}function C1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ts(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(k=yj(k,g,{trailing:!0,leading:!1}));var z=new ResizeObserver(k),B=S.current.getBoundingClientRect(),N=B.width,R=B.height;return P(N,R),z.observe(S.current),function(){z.disconnect()}},[P,g]);var M=_.useMemo(function(){var k=j.containerWidth,z=j.containerHeight;if(k<0||z<0)return null;pr(Ea(l)||Ea(u),`The width(%s) and height(%s) are both fixed numbers,
+ A`).concat(l,",").concat(l,",0,1,1,").concat(o,",").concat(i),className:"recharts-legend-icon"});if(r.type==="rect")return C.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(cn/8,"h").concat(cn,"v").concat(cn*3/4,"h").concat(-cn,"z"),className:"recharts-legend-icon"});if(C.isValidElement(r.legendIcon)){var s=rB({},r);return delete s.legendIcon,C.cloneElement(r.legendIcon,s)}return C.createElement(E0,{fill:u,cx:i,cy:i,size:cn,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,a=this.props,i=a.payload,l=a.iconSize,o=a.layout,u=a.formatter,s=a.inactiveColor,f={x:0,y:0,width:cn,height:cn},c={display:o==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(h,x){var g=h.formatter||u,v=ve(ru(ru({"recharts-legend-item":!0},"legend-item-".concat(x),!0),"inactive",h.inactive));if(h.type==="none")return null;var y=ue(h.value)?null:h.value;pr(!ue(h.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: `);var m=h.inactive?s:h.color;return C.createElement("li",Hy({className:v,style:c,key:"legend-item-".concat(x)},Uc(r.props,h,x)),C.createElement(Py,{width:l,height:l,viewBox:f,style:d},r.renderIcon(h)),C.createElement("span",{className:"recharts-legend-item-text",style:{color:m}},g?g(y,h,x):y))})}},{key:"render",value:function(){var r=this.props,a=r.payload,i=r.layout,l=r.align;if(!a||!a.length)return null;var o={padding:0,margin:0,textAlign:i==="horizontal"?l:"left"};return C.createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}])}(_.PureComponent);ru(j0,"displayName","Legend");ru(j0,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var dB=hd;function hB(){this.__data__=new dB,this.size=0}var pB=hB;function yB(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var mB=yB;function vB(e){return this.__data__.get(e)}var gB=vB;function bB(e){return this.__data__.has(e)}var xB=bB,SB=hd,OB=p0,wB=y0,AB=200;function _B(e,t){var n=this.__data__;if(n instanceof SB){var r=n.__data__;if(!OB||r.lengtho))return!1;var s=i.get(e),f=i.get(t);if(s&&f)return s==t&&f==e;var c=-1,d=!0,h=n&VB?new qB:void 0;for(i.set(e,t),i.set(t,e);++c-1&&e%1==0&&e-1&&e%1==0&&e<=WL}var C0=ZL,JL=Er,ek=C0,tk=jr,nk="[object Arguments]",rk="[object Array]",ak="[object Boolean]",ik="[object Date]",lk="[object Error]",ok="[object Function]",uk="[object Map]",sk="[object Number]",ck="[object Object]",fk="[object RegExp]",dk="[object Set]",hk="[object String]",pk="[object WeakMap]",yk="[object ArrayBuffer]",mk="[object DataView]",vk="[object Float32Array]",gk="[object Float64Array]",bk="[object Int8Array]",xk="[object Int16Array]",Sk="[object Int32Array]",Ok="[object Uint8Array]",wk="[object Uint8ClampedArray]",Ak="[object Uint16Array]",_k="[object Uint32Array]",Be={};Be[vk]=Be[gk]=Be[bk]=Be[xk]=Be[Sk]=Be[Ok]=Be[wk]=Be[Ak]=Be[_k]=!0;Be[nk]=Be[rk]=Be[yk]=Be[ak]=Be[mk]=Be[ik]=Be[lk]=Be[ok]=Be[uk]=Be[sk]=Be[ck]=Be[fk]=Be[dk]=Be[hk]=Be[pk]=!1;function Ek(e){return tk(e)&&ek(e.length)&&!!Be[JL(e)]}var jk=Ek;function Tk(e){return function(t){return e(t)}}var FE=Tk,Fc={exports:{}};Fc.exports;(function(e,t){var n=rE,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,l=i&&n.process,o=function(){try{var u=a&&a.require&&a.require("util").types;return u||l&&l.binding&&l.binding("util")}catch{}}();e.exports=o})(Fc,Fc.exports);var Nk=Fc.exports,Mk=jk,Ck=FE,Fx=Nk,Qx=Fx&&Fx.isTypedArray,$k=Qx?Ck(Qx):Mk,QE=$k,Pk=zL,Dk=N0,Rk=Xt,zk=KE,Bk=M0,Lk=QE,kk=Object.prototype,Uk=kk.hasOwnProperty;function Ik(e,t){var n=Rk(e),r=!n&&Dk(e),a=!n&&!r&&zk(e),i=!n&&!r&&!a&&Lk(e),l=n||r||a||i,o=l?Pk(e.length,String):[],u=o.length;for(var s in e)(t||Uk.call(e,s))&&!(l&&(s=="length"||a&&(s=="offset"||s=="parent")||i&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||Bk(s,u)))&&o.push(s);return o}var Hk=Ik,qk=Object.prototype;function Gk(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||qk;return e===n}var Yk=Gk;function Xk(e,t){return function(n){return e(t(n))}}var WE=Xk,Vk=WE,Kk=Vk(Object.keys,Object),Fk=Kk,Qk=Yk,Wk=Fk,Zk=Object.prototype,Jk=Zk.hasOwnProperty;function e7(e){if(!Qk(e))return Wk(e);var t=[];for(var n in Object(e))Jk.call(e,n)&&n!="constructor"&&t.push(n);return t}var t7=e7,n7=d0,r7=C0;function a7(e){return e!=null&&r7(e.length)&&!n7(e)}var ts=a7,i7=Hk,l7=t7,o7=ts;function u7(e){return o7(e)?i7(e):l7(e)}var Cd=u7,s7=AL,c7=DL,f7=Cd;function d7(e){return s7(e,f7,c7)}var h7=d7,Wx=h7,p7=1,y7=Object.prototype,m7=y7.hasOwnProperty;function v7(e,t,n,r,a,i){var l=n&p7,o=Wx(e),u=o.length,s=Wx(t),f=s.length;if(u!=f&&!l)return!1;for(var c=u;c--;){var d=o[c];if(!(l?d in t:m7.call(t,d)))return!1}var h=i.get(e),x=i.get(t);if(h&&x)return h==t&&x==e;var g=!0;i.set(e,t),i.set(t,e);for(var v=l;++c-1}var y9=p9;function m9(e,t,n){for(var r=-1,a=e==null?0:e.length;++r=C9){var s=t?null:N9(e);if(s)return M9(s);l=!1,a=T9,u=new _9}else u=t?[]:o;e:for(;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function V9(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function K9(e){return e.value}function F9(e,t){if(C.isValidElement(e))return C.cloneElement(e,t);if(typeof e=="function")return C.createElement(e,t);t.ref;var n=X9(t,L9);return C.createElement(j0,n)}var h1=1,Ui=function(e){function t(){var n;k9(this,t);for(var r=arguments.length,a=new Array(r),i=0;ih1||Math.abs(a.height-this.lastBoundingBox.height)>h1)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,r&&r(a)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?er({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var a=this.props,i=a.layout,l=a.align,o=a.verticalAlign,u=a.margin,s=a.chartWidth,f=a.chartHeight,c,d;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(l==="center"&&i==="vertical"){var h=this.getBBoxSnapshot();c={left:((s||0)-h.width)/2}}else c=l==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(o==="middle"){var x=this.getBBoxSnapshot();d={top:((f||0)-x.height)/2}}else d=o==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return er(er({},c),d)}},{key:"render",value:function(){var r=this,a=this.props,i=a.content,l=a.width,o=a.height,u=a.wrapperStyle,s=a.payloadUniqBy,f=a.payload,c=er(er({position:"absolute",width:l||"auto",height:o||"auto"},this.getDefaultPosition(u)),u);return C.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(h){r.wrapperNode=h}},F9(i,er(er({},this.props),{},{payload:aj(f,s,K9)})))}}],[{key:"getWithHeight",value:function(r,a){var i=er(er({},this.defaultProps),r.props),l=i.layout;return l==="vertical"&&Y(r.props.height)?{height:r.props.height}:l==="horizontal"?{width:r.props.width||a}:null}}])}(_.PureComponent);$d(Ui,"displayName","Legend");$d(Ui,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var p1=Ju,Q9=N0,W9=Xt,y1=p1?p1.isConcatSpreadable:void 0;function Z9(e){return W9(e)||Q9(e)||!!(y1&&e&&e[y1])}var J9=Z9,eI=XE,tI=J9;function oj(e,t,n,r,a){var i=-1,l=e.length;for(n||(n=tI),a||(a=[]);++i0&&n(o)?t>1?oj(o,t-1,n,r,a):eI(a,o):r||(a[a.length]=o)}return a}var uj=oj;function nI(e){return function(t,n,r){for(var a=-1,i=Object(t),l=r(t),o=l.length;o--;){var u=l[e?o:++a];if(n(i[u],u,i)===!1)break}return t}}var rI=nI,aI=rI,iI=aI(),lI=iI,oI=lI,uI=Cd;function sI(e,t){return e&&oI(e,t,uI)}var sj=sI,cI=ts;function fI(e,t){return function(n,r){if(n==null)return n;if(!cI(n))return e(n,r);for(var a=n.length,i=t?a:-1,l=Object(n);(t?i--:++it||i&&l&&u&&!o&&!s||r&&l&&u||!n&&u||!a)return 1;if(!r&&!i&&!s&&e=o)return u;var s=n[r];return u*(s=="desc"?-1:1)}}return e.index-t.index}var _I=AI,tp=v0,EI=g0,jI=fa,TI=cj,NI=xI,MI=FE,CI=_I,$I=Gl,PI=Xt;function DI(e,t,n){t.length?t=tp(t,function(i){return PI(i)?function(l){return EI(l,i.length===1?i[0]:i)}:i}):t=[$I];var r=-1;t=tp(t,MI(jI));var a=TI(e,function(i,l,o){var u=tp(t,function(s){return s(i)});return{criteria:u,index:++r,value:i}});return NI(a,function(i,l){return CI(i,l,n)})}var RI=DI;function zI(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var BI=zI,LI=BI,v1=Math.max;function kI(e,t,n){return t=v1(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=v1(r.length-t,0),l=Array(i);++a0){if(++t>=FI)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var JI=ZI,eH=KI,tH=JI,nH=tH(eH),rH=nH,aH=Gl,iH=UI,lH=rH;function oH(e,t){return lH(iH(e,t,aH),e+"")}var uH=oH,sH=h0,cH=ts,fH=M0,dH=ca;function hH(e,t,n){if(!dH(n))return!1;var r=typeof t;return(r=="number"?cH(n)&&fH(t,n.length):r=="string"&&t in n)?sH(n[t],e):!1}var Pd=hH,pH=uj,yH=RI,mH=uH,b1=Pd,vH=mH(function(e,t){if(e==null)return[];var n=t.length;return n>1&&b1(e,t[0],t[1])?t=[]:n>2&&b1(t[0],t[1],t[2])&&(t=[t[0]]),yH(e,pH(t,1),[])}),gH=vH;const D0=Me(gH);function au(e){"@babel/helpers - typeof";return au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},au(e)}function Qy(){return Qy=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t.x),"".concat(ao,"-left"),Y(n)&&t&&Y(t.x)&&n=t.y),"".concat(ao,"-top"),Y(r)&&t&&Y(t.y)&&rg?Math.max(f,u[r]):Math.max(c,u[r])}function PH(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function DH(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,a=e.position,i=e.reverseDirection,l=e.tooltipBox,o=e.useTranslate3d,u=e.viewBox,s,f,c;return l.height>0&&l.width>0&&n?(f=O1({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:l.width,viewBox:u,viewBoxDimension:u.width}),c=O1({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:l.height,viewBox:u,viewBoxDimension:u.height}),s=PH({translateX:f,translateY:c,useTranslate3d:o})):s=CH,{cssProperties:s,cssClasses:$H({translateX:f,translateY:c,coordinate:n})}}function ll(e){"@babel/helpers - typeof";return ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ll(e)}function w1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function A1(e){for(var t=1;t_1||Math.abs(r.height-this.state.lastBoundingBox.height)>_1)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,a=this.props,i=a.active,l=a.allowEscapeViewBox,o=a.animationDuration,u=a.animationEasing,s=a.children,f=a.coordinate,c=a.hasPayload,d=a.isAnimationActive,h=a.offset,x=a.position,g=a.reverseDirection,v=a.useTranslate3d,y=a.viewBox,m=a.wrapperStyle,b=DH({allowEscapeViewBox:l,coordinate:f,offsetTopLeft:h,position:x,reverseDirection:g,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:y}),O=b.cssClasses,S=b.cssProperties,w=A1(A1({transition:d&&i?"transform ".concat(o,"ms ").concat(u):void 0},S),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&c?"visible":"hidden",position:"absolute",top:0,left:0},m);return C.createElement("div",{tabIndex:-1,className:O,style:w,ref:function(E){r.wrapperNode=E}},s)}}])}(_.PureComponent),GH=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ns={isSsr:GH()};function ol(e){"@babel/helpers - typeof";return ol=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ol(e)}function E1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function j1(e){for(var t=1;t0;return C.createElement(qH,{allowEscapeViewBox:l,animationDuration:o,animationEasing:u,isAnimationActive:d,active:i,coordinate:f,hasPayload:w,offset:h,position:v,reverseDirection:y,useTranslate3d:m,viewBox:b,wrapperStyle:O},eq(s,j1(j1({},this.props),{},{payload:S})))}}])}(_.PureComponent);R0(zn,"displayName","Tooltip");R0(zn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ns.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var tq=Kn,nq=function(){return tq.Date.now()},rq=nq,aq=/\s/;function iq(e){for(var t=e.length;t--&&aq.test(e.charAt(t)););return t}var lq=iq,oq=lq,uq=/^\s+/;function sq(e){return e&&e.slice(0,oq(e)+1).replace(uq,"")}var cq=sq,fq=cq,T1=ca,dq=Bl,N1=NaN,hq=/^[-+]0x[0-9a-f]+$/i,pq=/^0b[01]+$/i,yq=/^0o[0-7]+$/i,mq=parseInt;function vq(e){if(typeof e=="number")return e;if(dq(e))return N1;if(T1(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=T1(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=fq(e);var n=pq.test(e);return n||yq.test(e)?mq(e.slice(2),n?2:8):hq.test(e)?N1:+e}var mj=vq,gq=ca,rp=rq,M1=mj,bq="Expected a function",xq=Math.max,Sq=Math.min;function Oq(e,t,n){var r,a,i,l,o,u,s=0,f=!1,c=!1,d=!0;if(typeof e!="function")throw new TypeError(bq);t=M1(t)||0,gq(n)&&(f=!!n.leading,c="maxWait"in n,i=c?xq(M1(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d);function h(w){var A=r,E=a;return r=a=void 0,s=w,l=e.apply(E,A),l}function x(w){return s=w,o=setTimeout(y,t),f?h(w):l}function g(w){var A=w-u,E=w-s,j=t-A;return c?Sq(j,i-E):j}function v(w){var A=w-u,E=w-s;return u===void 0||A>=t||A<0||c&&E>=i}function y(){var w=rp();if(v(w))return m(w);o=setTimeout(y,g(w))}function m(w){return o=void 0,d&&r?h(w):(r=a=void 0,l)}function b(){o!==void 0&&clearTimeout(o),s=0,r=u=a=o=void 0}function O(){return o===void 0?l:m(rp())}function S(){var w=rp(),A=v(w);if(r=arguments,a=this,u=w,A){if(o===void 0)return x(u);if(c)return clearTimeout(o),o=setTimeout(y,t),h(u)}return o===void 0&&(o=setTimeout(y,t)),l}return S.cancel=b,S.flush=O,S}var wq=Oq,Aq=wq,_q=ca,Eq="Expected a function";function jq(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(Eq);return _q(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),Aq(e,t,{leading:r,maxWait:t,trailing:a})}var Tq=jq;const vj=Me(Tq);function lu(e){"@babel/helpers - typeof";return lu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lu(e)}function C1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ts(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(k=vj(k,g,{trailing:!0,leading:!1}));var z=new ResizeObserver(k),B=S.current.getBoundingClientRect(),N=B.width,R=B.height;return P(N,R),z.observe(S.current),function(){z.disconnect()}},[P,g]);var M=_.useMemo(function(){var k=j.containerWidth,z=j.containerHeight;if(k<0||z<0)return null;pr(Ea(l)||Ea(u),`The width(%s) and height(%s) are both fixed numbers,
maybe you don't need to use a ResponsiveContainer.`,l,u),pr(!n||n>0,"The aspect(%s) must be greater than zero.",n);var B=Ea(l)?k:l,N=Ea(u)?z:u;n&&n>0&&(B?N=B/n:N&&(B=N*n),d&&N>d&&(N=d)),pr(B>0||N>0,`The width(%s) and height(%s) of chart should be greater than 0,
please check the style of container, or the props width(%s) and height(%s),
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
- height and width.`,B,N,l,u,f,c,n);var R=!Array.isArray(h)&&hr(h.type).endsWith("Chart");return C.Children.map(h,function(D){return C.isValidElement(D)?_.cloneElement(D,Ts({width:B,height:N},R?{style:Ts({height:"100%",width:"100%",maxHeight:N,maxWidth:B},D.props.style)}:{})):D})},[n,h,u,d,c,f,j,l]);return C.createElement("div",{id:v?"".concat(v):void 0,className:ve("recharts-responsive-container",y),style:Ts(Ts({},O),{},{width:l,height:u,minWidth:f,minHeight:c,maxHeight:d}),ref:S},M)}),mj=function(t){return null};mj.displayName="Cell";function ou(e){"@babel/helpers - typeof";return ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ou(e)}function P1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function em(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ns.isSsr)return{width:0,height:0};var r=Lq(n),a=JSON.stringify({text:t,copyStyle:r});if(fi.widthCache[a])return fi.widthCache[a];try{var i=document.getElementById(D1);i||(i=document.createElement("span"),i.setAttribute("id",D1),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var l=em(em({},Bq),r);Object.assign(i.style,l),i.textContent="".concat(t);var o=i.getBoundingClientRect(),u={width:o.width,height:o.height};return fi.widthCache[a]=u,++fi.cacheCount>zq&&(fi.cacheCount=0,fi.widthCache={}),u}catch{return{width:0,height:0}}},kq=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function uu(e){"@babel/helpers - typeof";return uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uu(e)}function Zc(e,t){return qq(e)||Hq(e,t)||Iq(e,t)||Uq()}function Uq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Iq(e,t){if(e){if(typeof e=="string")return R1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return R1(e,t)}}function R1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rG(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function I1(e,t){return oG(e)||lG(e,t)||iG(e,t)||aG()}function aG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iG(e,t){if(e){if(typeof e=="string")return H1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H1(e,t)}}function H1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[];return B.reduce(function(N,R){var D=R.word,U=R.width,q=N[N.length-1];if(q&&(a==null||i||q.width+U+rR.width?N:R})};if(!f)return h;for(var g="…",v=function(B){var N=c.slice(0,B),R=xj({breakAll:s,style:u,children:N+g}).wordsWithComputedWidth,D=d(R),U=D.length>l||x(D).width>Number(a);return[U,D]},y=0,m=c.length-1,b=0,O;y<=m&&b<=c.length-1;){var S=Math.floor((y+m)/2),w=S-1,A=v(w),E=I1(A,2),j=E[0],$=E[1],P=v(S),M=I1(P,1),k=M[0];if(!j&&!k&&(y=S+1),j&&k&&(m=S-1),!j&&k){O=$;break}b++}return O||h},q1=function(t){var n=ge(t)?[]:t.toString().split(bj);return[{words:n}]},sG=function(t){var n=t.width,r=t.scaleToFit,a=t.children,i=t.style,l=t.breakAll,o=t.maxLines;if((n||r)&&!ns.isSsr){var u,s,f=xj({breakAll:l,children:a,style:i});if(f){var c=f.wordsWithComputedWidth,d=f.spaceWidth;u=c,s=d}else return q1(a);return uG({breakAll:l,children:a,maxLines:o,style:i},u,s,n,r)}return q1(a)},G1="#808080",Jc=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,l=t.lineHeight,o=l===void 0?"1em":l,u=t.capHeight,s=u===void 0?"0.71em":u,f=t.scaleToFit,c=f===void 0?!1:f,d=t.textAnchor,h=d===void 0?"start":d,x=t.verticalAnchor,g=x===void 0?"end":x,v=t.fill,y=v===void 0?G1:v,m=U1(t,tG),b=_.useMemo(function(){return sG({breakAll:m.breakAll,children:m.children,maxLines:m.maxLines,scaleToFit:c,style:m.style,width:m.width})},[m.breakAll,m.children,m.maxLines,c,m.style,m.width]),O=m.dx,S=m.dy,w=m.angle,A=m.className,E=m.breakAll,j=U1(m,nG);if(!ut(r)||!ut(i))return null;var $=r+(Y(O)?O:0),P=i+(Y(S)?S:0),M;switch(g){case"start":M=rp("calc(".concat(s,")"));break;case"middle":M=rp("calc(".concat((b.length-1)/2," * -").concat(o," + (").concat(s," / 2))"));break;default:M=rp("calc(".concat(b.length-1," * -").concat(o,")"));break}var k=[];if(c){var z=b[0].width,B=m.width;k.push("scale(".concat((Y(B)?B/z:1)/z,")"))}return w&&k.push("rotate(".concat(w,", ").concat($,", ").concat(P,")")),k.length&&(j.transform=k.join(" ")),C.createElement("text",tm({},ye(j,!0),{x:$,y:P,className:ve("recharts-text",A),textAnchor:h,fill:y.includes("url")?G1:y}),b.map(function(N,R){var D=N.words.join(E?"":" ");return C.createElement("tspan",{x:$,dy:R===0?M:o,key:"".concat(D,"-").concat(R)},D)}))};function ta(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function cG(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function z0(e){let t,n,r;e.length!==2?(t=ta,n=(o,u)=>ta(e(o),u),r=(o,u)=>e(o)-u):(t=e===ta||e===cG?e:fG,n=e,r=e);function a(o,u,s=0,f=o.length){if(s>>1;n(o[c],u)<0?s=c+1:f=c}while(s>>1;n(o[c],u)<=0?s=c+1:f=c}while(ss&&r(o[c-1],u)>-r(o[c],u)?c-1:c}return{left:a,center:l,right:i}}function fG(){return 0}function Sj(e){return e===null?NaN:+e}function*dG(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const hG=z0(ta),rs=hG.right;z0(Sj).center;class Y1 extends Map{constructor(t,n=mG){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(X1(this,t))}has(t){return super.has(X1(this,t))}set(t,n){return super.set(pG(this,t),n)}delete(t){return super.delete(yG(this,t))}}function X1({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function pG({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function yG({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function mG(e){return e!==null&&typeof e=="object"?e.valueOf():e}function vG(e=ta){if(e===ta)return Oj;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function Oj(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const gG=Math.sqrt(50),bG=Math.sqrt(10),xG=Math.sqrt(2);function ef(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),l=i>=gG?10:i>=bG?5:i>=xG?2:1;let o,u,s;return a<0?(s=Math.pow(10,-a)/l,o=Math.round(e*s),u=Math.round(t*s),o/st&&--u,s=-s):(s=Math.pow(10,a)*l,o=Math.round(e/s),u=Math.round(t/s),o*st&&--u),u0))return[];if(e===t)return[e];const r=t=a))return[];const o=i-a+1,u=new Array(o);if(r)if(l<0)for(let s=0;s=r)&&(n=r);return n}function K1(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function wj(e,t,n=0,r=1/0,a){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(a=a===void 0?Oj:vG(a);r>n;){if(r-n>600){const u=r-n+1,s=t-n+1,f=Math.log(u),c=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*c*(u-c)/u)*(s-u/2<0?-1:1),h=Math.max(n,Math.floor(t-s*c/u+d)),x=Math.min(r,Math.floor(t+(u-s)*c/u+d));wj(e,t,h,x,a)}const i=e[t];let l=n,o=r;for(io(e,n,t),a(e[r],i)>0&&io(e,n,r);l0;)--o}a(e[n],i)===0?io(e,n,o):(++o,io(e,o,r)),o<=t&&(n=o+1),t<=o&&(r=o-1)}return e}function io(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function SG(e,t,n){if(e=Float64Array.from(dG(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return K1(e);if(t>=1)return V1(e);var r,a=(r-1)*t,i=Math.floor(a),l=V1(wj(e,i).subarray(0,i+1)),o=K1(e.subarray(i+1));return l+(o-l)*(a-i)}}function OG(e,t,n=Sj){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,i=Math.floor(a),l=+n(e[i],i,e),o=+n(e[i+1],i+1,e);return l+(o-l)*(a-i)}}function wG(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(a);++r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ms(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ms(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=_G.exec(e))?new It(t[1],t[2],t[3],1):(t=EG.exec(e))?new It(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=jG.exec(e))?Ms(t[1],t[2],t[3],t[4]):(t=TG.exec(e))?Ms(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=NG.exec(e))?tS(t[1],t[2]/100,t[3]/100,1):(t=MG.exec(e))?tS(t[1],t[2]/100,t[3]/100,t[4]):F1.hasOwnProperty(e)?Z1(F1[e]):e==="transparent"?new It(NaN,NaN,NaN,0):null}function Z1(e){return new It(e>>16&255,e>>8&255,e&255,1)}function Ms(e,t,n,r){return r<=0&&(e=t=n=NaN),new It(e,t,n,r)}function PG(e){return e instanceof as||(e=du(e)),e?(e=e.rgb(),new It(e.r,e.g,e.b,e.opacity)):new It}function lm(e,t,n,r){return arguments.length===1?PG(e):new It(e,t,n,r??1)}function It(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}L0(It,lm,_j(as,{brighter(e){return e=e==null?tf:Math.pow(tf,e),new It(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?cu:Math.pow(cu,e),new It(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new It(za(this.r),za(this.g),za(this.b),nf(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:J1,formatHex:J1,formatHex8:DG,formatRgb:eS,toString:eS}));function J1(){return`#${ja(this.r)}${ja(this.g)}${ja(this.b)}`}function DG(){return`#${ja(this.r)}${ja(this.g)}${ja(this.b)}${ja((isNaN(this.opacity)?1:this.opacity)*255)}`}function eS(){const e=nf(this.opacity);return`${e===1?"rgb(":"rgba("}${za(this.r)}, ${za(this.g)}, ${za(this.b)}${e===1?")":`, ${e})`}`}function nf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function za(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ja(e){return e=za(e),(e<16?"0":"")+e.toString(16)}function tS(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Mn(e,t,n,r)}function Ej(e){if(e instanceof Mn)return new Mn(e.h,e.s,e.l,e.opacity);if(e instanceof as||(e=du(e)),!e)return new Mn;if(e instanceof Mn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),l=NaN,o=i-a,u=(i+a)/2;return o?(t===i?l=(n-r)/o+(n0&&u<1?0:l,new Mn(l,o,u,e.opacity)}function RG(e,t,n,r){return arguments.length===1?Ej(e):new Mn(e,t,n,r??1)}function Mn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}L0(Mn,RG,_j(as,{brighter(e){return e=e==null?tf:Math.pow(tf,e),new Mn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?cu:Math.pow(cu,e),new Mn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new It(ap(e>=240?e-240:e+120,a,r),ap(e,a,r),ap(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Mn(nS(this.h),Cs(this.s),Cs(this.l),nf(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=nf(this.opacity);return`${e===1?"hsl(":"hsla("}${nS(this.h)}, ${Cs(this.s)*100}%, ${Cs(this.l)*100}%${e===1?")":`, ${e})`}`}}));function nS(e){return e=(e||0)%360,e<0?e+360:e}function Cs(e){return Math.max(0,Math.min(1,e||0))}function ap(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const k0=e=>()=>e;function zG(e,t){return function(n){return e+n*t}}function BG(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function LG(e){return(e=+e)==1?jj:function(t,n){return n-t?BG(t,n,e):k0(isNaN(t)?n:t)}}function jj(e,t){var n=t-e;return n?zG(e,n):k0(isNaN(e)?t:e)}const rS=function e(t){var n=LG(t);function r(a,i){var l=n((a=lm(a)).r,(i=lm(i)).r),o=n(a.g,i.g),u=n(a.b,i.b),s=jj(a.opacity,i.opacity);return function(f){return a.r=l(f),a.g=o(f),a.b=u(f),a.opacity=s(f),a+""}}return r.gamma=e,r}(1);function kG(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;an&&(i=t.slice(n,i),o[l]?o[l]+=i:o[++l]=i),(r=r[0])===(a=a[0])?o[l]?o[l]+=a:o[++l]=a:(o[++l]=null,u.push({i:l,x:rf(r,a)})),n=ip.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function QG(e,t,n){var r=e[0],a=e[1],i=t[0],l=t[1];return a2?WG:QG,u=s=null,c}function c(d){return d==null||isNaN(d=+d)?i:(u||(u=o(e.map(r),t,n)))(r(l(d)))}return c.invert=function(d){return l(a((s||(s=o(t,e.map(r),rf)))(d)))},c.domain=function(d){return arguments.length?(e=Array.from(d,af),f()):e.slice()},c.range=function(d){return arguments.length?(t=Array.from(d),f()):t.slice()},c.rangeRound=function(d){return t=Array.from(d),n=U0,f()},c.clamp=function(d){return arguments.length?(l=d?!0:Dt,f()):l!==Dt},c.interpolate=function(d){return arguments.length?(n=d,f()):n},c.unknown=function(d){return arguments.length?(i=d,c):i},function(d,h){return r=d,a=h,f()}}function I0(){return Pd()(Dt,Dt)}function ZG(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function lf(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ul(e){return e=lf(Math.abs(e)),e?e[1]:NaN}function JG(e,t){return function(n,r){for(var a=n.length,i=[],l=0,o=e[0],u=0;a>0&&o>0&&(u+o+1>r&&(o=Math.max(1,r-u)),i.push(n.substring(a-=o,a+o)),!((u+=o+1)>r));)o=e[l=(l+1)%e.length];return i.reverse().join(t)}}function eY(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var tY=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function hu(e){if(!(t=tY.exec(e)))throw new Error("invalid format: "+e);var t;return new H0({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}hu.prototype=H0.prototype;function H0(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}H0.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function nY(e){e:for(var t=e.length,n=1,r=-1,a;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var of;function rY(e,t){var n=lf(e,t);if(!n)return of=void 0,e.toPrecision(t);var r=n[0],a=n[1],i=a-(of=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,l=r.length;return i===l?r:i>l?r+new Array(i-l+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+lf(e,Math.max(0,t+i-1))[0]}function iS(e,t){var n=lf(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const lS={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:ZG,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>iS(e*100,t),r:iS,s:rY,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function oS(e){return e}var uS=Array.prototype.map,sS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function aY(e){var t=e.grouping===void 0||e.thousands===void 0?oS:JG(uS.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?oS:eY(uS.call(e.numerals,String)),l=e.percent===void 0?"%":e.percent+"",o=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function s(c,d){c=hu(c);var h=c.fill,x=c.align,g=c.sign,v=c.symbol,y=c.zero,m=c.width,b=c.comma,O=c.precision,S=c.trim,w=c.type;w==="n"?(b=!0,w="g"):lS[w]||(O===void 0&&(O=12),S=!0,w="g"),(y||h==="0"&&x==="=")&&(y=!0,h="0",x="=");var A=(d&&d.prefix!==void 0?d.prefix:"")+(v==="$"?n:v==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():""),E=(v==="$"?r:/[%p]/.test(w)?l:"")+(d&&d.suffix!==void 0?d.suffix:""),j=lS[w],$=/[defgprs%]/.test(w);O=O===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function P(M){var k=A,z=E,B,N,R;if(w==="c")z=j(M)+z,M="";else{M=+M;var D=M<0||1/M<0;if(M=isNaN(M)?u:j(Math.abs(M),O),S&&(M=nY(M)),D&&+M==0&&g!=="+"&&(D=!1),k=(D?g==="("?g:o:g==="-"||g==="("?"":g)+k,z=(w==="s"&&!isNaN(M)&&of!==void 0?sS[8+of/3]:"")+z+(D&&g==="("?")":""),$){for(B=-1,N=M.length;++BR||R>57){z=(R===46?a+M.slice(B+1):M.slice(B))+z,M=M.slice(0,B);break}}}b&&!y&&(M=t(M,1/0));var U=k.length+M.length+z.length,q=U>1)+k+M+z+q.slice(U);break;default:M=q+k+M+z;break}return i(M)}return P.toString=function(){return c+""},P}function f(c,d){var h=Math.max(-8,Math.min(8,Math.floor(ul(d)/3)))*3,x=Math.pow(10,-h),g=s((c=hu(c),c.type="f",c),{suffix:sS[8+h/3]});return function(v){return g(x*v)}}return{format:s,formatPrefix:f}}var $s,q0,Tj;iY({thousands:",",grouping:[3],currency:["$",""]});function iY(e){return $s=aY(e),q0=$s.format,Tj=$s.formatPrefix,$s}function lY(e){return Math.max(0,-ul(Math.abs(e)))}function oY(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ul(t)/3)))*3-ul(Math.abs(e)))}function uY(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ul(t)-ul(e))+1}function Nj(e,t,n,r){var a=am(e,t,n),i;switch(r=hu(r??",f"),r.type){case"s":{var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=oY(a,l))&&(r.precision=i),Tj(r,l)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=uY(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=lY(a))&&(r.precision=i-(r.type==="%")*2);break}}return q0(r)}function da(e){var t=e.domain;return e.ticks=function(n){var r=t();return nm(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return Nj(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,l=r[a],o=r[i],u,s,f=10;for(o0;){if(s=rm(l,o,n),s===u)return r[a]=l,r[i]=o,t(r);if(s>0)l=Math.floor(l/s)*s,o=Math.ceil(o/s)*s;else if(s<0)l=Math.ceil(l*s)/s,o=Math.floor(o*s)/s;else break;u=s}return e},e}function uf(){var e=I0();return e.copy=function(){return is(e,uf())},_n.apply(e,arguments),da(e)}function Mj(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,af),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return Mj(e).unknown(t)},e=arguments.length?Array.from(e,af):[0,1],da(n)}function Cj(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],l;return iMath.pow(e,t)}function hY(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function dS(e){return(t,n)=>-e(-t,n)}function G0(e){const t=e(cS,fS),n=t.domain;let r=10,a,i;function l(){return a=hY(r),i=dY(r),n()[0]<0?(a=dS(a),i=dS(i),e(sY,cY)):e(cS,fS),t}return t.base=function(o){return arguments.length?(r=+o,l()):r},t.domain=function(o){return arguments.length?(n(o),l()):n()},t.ticks=o=>{const u=n();let s=u[0],f=u[u.length-1];const c=f0){for(;d<=h;++d)for(x=1;xf)break;y.push(g)}}else for(;d<=h;++d)for(x=r-1;x>=1;--x)if(g=d>0?x/i(-d):x*i(d),!(gf)break;y.push(g)}y.length*2{if(o==null&&(o=10),u==null&&(u=r===10?"s":","),typeof u!="function"&&(!(r%1)&&(u=hu(u)).precision==null&&(u.trim=!0),u=q0(u)),o===1/0)return u;const s=Math.max(1,r*o/t.ticks().length);return f=>{let c=f/i(Math.round(a(f)));return c*rn(Cj(n(),{floor:o=>i(Math.floor(a(o))),ceil:o=>i(Math.ceil(a(o)))})),t}function $j(){const e=G0(Pd()).domain([1,10]);return e.copy=()=>is(e,$j()).base(e.base()),_n.apply(e,arguments),e}function hS(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function pS(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Y0(e){var t=1,n=e(hS(t),pS(t));return n.constant=function(r){return arguments.length?e(hS(t=+r),pS(t)):t},da(n)}function Pj(){var e=Y0(Pd());return e.copy=function(){return is(e,Pj()).constant(e.constant())},_n.apply(e,arguments)}function yS(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function pY(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function yY(e){return e<0?-e*e:e*e}function X0(e){var t=e(Dt,Dt),n=1;function r(){return n===1?e(Dt,Dt):n===.5?e(pY,yY):e(yS(n),yS(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},da(t)}function V0(){var e=X0(Pd());return e.copy=function(){return is(e,V0()).exponent(e.exponent())},_n.apply(e,arguments),e}function mY(){return V0.apply(null,arguments).exponent(.5)}function mS(e){return Math.sign(e)*e*e}function vY(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Dj(){var e=I0(),t=[0,1],n=!1,r;function a(i){var l=vY(e(i));return isNaN(l)?r:n?Math.round(l):l}return a.invert=function(i){return e.invert(mS(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,af)).map(mS)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(n=!!i,a):n},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return Dj(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},_n.apply(a,arguments),da(a)}function Rj(){var e=[],t=[],n=[],r;function a(){var l=0,o=Math.max(1,t.length);for(n=new Array(o-1);++l0?n[o-1]:e[0],o=n?[r[n-1],t]:[r[s-1],r[s]]},l.unknown=function(u){return arguments.length&&(i=u),l},l.thresholds=function(){return r.slice()},l.copy=function(){return zj().domain([e,t]).range(a).unknown(i)},_n.apply(da(l),arguments)}function Bj(){var e=[.5],t=[0,1],n,r=1;function a(i){return i!=null&&i<=i?t[rs(e,i,0,r)]:n}return a.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),r=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var l=t.indexOf(i);return[e[l-1],e[l]]},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return Bj().domain(e).range(t).unknown(n)},_n.apply(a,arguments)}const lp=new Date,op=new Date;function ct(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const l=a(i),o=a.ceil(i);return i-l(t(i=new Date(+i),l==null?1:Math.floor(l)),i),a.range=(i,l,o)=>{const u=[];if(i=a.ceil(i),o=o==null?1:Math.floor(o),!(i0))return u;let s;do u.push(s=new Date(+i)),t(i,o),e(i);while(sct(l=>{if(l>=l)for(;e(l),!i(l);)l.setTime(l-1)},(l,o)=>{if(l>=l)if(o<0)for(;++o<=0;)for(;t(l,-1),!i(l););else for(;--o>=0;)for(;t(l,1),!i(l););}),n&&(a.count=(i,l)=>(lp.setTime(+i),op.setTime(+l),e(lp),e(op),Math.floor(n(lp,op))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?l=>r(l)%i===0:l=>a.count(0,l)%i===0):a)),a}const sf=ct(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);sf.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ct(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):sf);sf.range;const or=1e3,gn=or*60,ur=gn*60,Sr=ur*24,K0=Sr*7,vS=Sr*30,up=Sr*365,Ta=ct(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*or)},(e,t)=>(t-e)/or,e=>e.getUTCSeconds());Ta.range;const F0=ct(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*or)},(e,t)=>{e.setTime(+e+t*gn)},(e,t)=>(t-e)/gn,e=>e.getMinutes());F0.range;const Q0=ct(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*gn)},(e,t)=>(t-e)/gn,e=>e.getUTCMinutes());Q0.range;const W0=ct(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*or-e.getMinutes()*gn)},(e,t)=>{e.setTime(+e+t*ur)},(e,t)=>(t-e)/ur,e=>e.getHours());W0.range;const Z0=ct(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ur)},(e,t)=>(t-e)/ur,e=>e.getUTCHours());Z0.range;const ls=ct(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*gn)/Sr,e=>e.getDate()-1);ls.range;const Dd=ct(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Sr,e=>e.getUTCDate()-1);Dd.range;const Lj=ct(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Sr,e=>Math.floor(e/Sr));Lj.range;function ri(e){return ct(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*gn)/K0)}const Rd=ri(0),cf=ri(1),gY=ri(2),bY=ri(3),sl=ri(4),xY=ri(5),SY=ri(6);Rd.range;cf.range;gY.range;bY.range;sl.range;xY.range;SY.range;function ai(e){return ct(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/K0)}const zd=ai(0),ff=ai(1),OY=ai(2),wY=ai(3),cl=ai(4),AY=ai(5),_Y=ai(6);zd.range;ff.range;OY.range;wY.range;cl.range;AY.range;_Y.range;const J0=ct(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());J0.range;const eg=ct(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());eg.range;const Or=ct(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Or.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ct(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Or.range;const wr=ct(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());wr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ct(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});wr.range;function kj(e,t,n,r,a,i){const l=[[Ta,1,or],[Ta,5,5*or],[Ta,15,15*or],[Ta,30,30*or],[i,1,gn],[i,5,5*gn],[i,15,15*gn],[i,30,30*gn],[a,1,ur],[a,3,3*ur],[a,6,6*ur],[a,12,12*ur],[r,1,Sr],[r,2,2*Sr],[n,1,K0],[t,1,vS],[t,3,3*vS],[e,1,up]];function o(s,f,c){const d=fv).right(l,d);if(h===l.length)return e.every(am(s/up,f/up,c));if(h===0)return sf.every(Math.max(am(s,f,c),1));const[x,g]=l[d/l[h-1][2]53)return null;"w"in H||(H.w=1),"Z"in H?(ue=cp(lo(H.y,0,1)),Se=ue.getUTCDay(),ue=Se>4||Se===0?ff.ceil(ue):ff(ue),ue=Dd.offset(ue,(H.V-1)*7),H.y=ue.getUTCFullYear(),H.m=ue.getUTCMonth(),H.d=ue.getUTCDate()+(H.w+6)%7):(ue=sp(lo(H.y,0,1)),Se=ue.getDay(),ue=Se>4||Se===0?cf.ceil(ue):cf(ue),ue=ls.offset(ue,(H.V-1)*7),H.y=ue.getFullYear(),H.m=ue.getMonth(),H.d=ue.getDate()+(H.w+6)%7)}else("W"in H||"U"in H)&&("w"in H||(H.w="u"in H?H.u%7:"W"in H?1:0),Se="Z"in H?cp(lo(H.y,0,1)).getUTCDay():sp(lo(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(Se+5)%7:H.w+H.U*7-(Se+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,cp(H)):sp(H)}}function E(K,ee,ae,H){for(var Re=0,ue=ee.length,Se=ae.length,Q,Ee;Re=Se)return-1;if(Q=ee.charCodeAt(Re++),Q===37){if(Q=ee.charAt(Re++),Ee=S[Q in gS?ee.charAt(Re++):Q],!Ee||(H=Ee(K,ae,H))<0)return-1}else if(Q!=ae.charCodeAt(H++))return-1}return H}function j(K,ee,ae){var H=s.exec(ee.slice(ae));return H?(K.p=f.get(H[0].toLowerCase()),ae+H[0].length):-1}function $(K,ee,ae){var H=h.exec(ee.slice(ae));return H?(K.w=x.get(H[0].toLowerCase()),ae+H[0].length):-1}function P(K,ee,ae){var H=c.exec(ee.slice(ae));return H?(K.w=d.get(H[0].toLowerCase()),ae+H[0].length):-1}function M(K,ee,ae){var H=y.exec(ee.slice(ae));return H?(K.m=m.get(H[0].toLowerCase()),ae+H[0].length):-1}function k(K,ee,ae){var H=g.exec(ee.slice(ae));return H?(K.m=v.get(H[0].toLowerCase()),ae+H[0].length):-1}function z(K,ee,ae){return E(K,t,ee,ae)}function B(K,ee,ae){return E(K,n,ee,ae)}function N(K,ee,ae){return E(K,r,ee,ae)}function R(K){return l[K.getDay()]}function D(K){return i[K.getDay()]}function U(K){return u[K.getMonth()]}function q(K){return o[K.getMonth()]}function X(K){return a[+(K.getHours()>=12)]}function G(K){return 1+~~(K.getMonth()/3)}function W(K){return l[K.getUTCDay()]}function le(K){return i[K.getUTCDay()]}function _e(K){return u[K.getUTCMonth()]}function re(K){return o[K.getUTCMonth()]}function We(K){return a[+(K.getUTCHours()>=12)]}function at(K){return 1+~~(K.getUTCMonth()/3)}return{format:function(K){var ee=w(K+="",b);return ee.toString=function(){return K},ee},parse:function(K){var ee=A(K+="",!1);return ee.toString=function(){return K},ee},utcFormat:function(K){var ee=w(K+="",O);return ee.toString=function(){return K},ee},utcParse:function(K){var ee=A(K+="",!0);return ee.toString=function(){return K},ee}}}var gS={"-":"",_:" ",0:"0"},mt=/^\s*\d+/,CY=/^%/,$Y=/[\\^$*+?|[\]().{}]/g;function pe(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i[t.toLowerCase(),n]))}function DY(e,t,n){var r=mt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function RY(e,t,n){var r=mt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function zY(e,t,n){var r=mt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function BY(e,t,n){var r=mt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function LY(e,t,n){var r=mt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function bS(e,t,n){var r=mt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function xS(e,t,n){var r=mt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function kY(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function UY(e,t,n){var r=mt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function IY(e,t,n){var r=mt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function SS(e,t,n){var r=mt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function HY(e,t,n){var r=mt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function OS(e,t,n){var r=mt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function qY(e,t,n){var r=mt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function GY(e,t,n){var r=mt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function YY(e,t,n){var r=mt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function XY(e,t,n){var r=mt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function VY(e,t,n){var r=CY.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function KY(e,t,n){var r=mt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function FY(e,t,n){var r=mt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function wS(e,t){return pe(e.getDate(),t,2)}function QY(e,t){return pe(e.getHours(),t,2)}function WY(e,t){return pe(e.getHours()%12||12,t,2)}function ZY(e,t){return pe(1+ls.count(Or(e),e),t,3)}function Uj(e,t){return pe(e.getMilliseconds(),t,3)}function JY(e,t){return Uj(e,t)+"000"}function eX(e,t){return pe(e.getMonth()+1,t,2)}function tX(e,t){return pe(e.getMinutes(),t,2)}function nX(e,t){return pe(e.getSeconds(),t,2)}function rX(e){var t=e.getDay();return t===0?7:t}function aX(e,t){return pe(Rd.count(Or(e)-1,e),t,2)}function Ij(e){var t=e.getDay();return t>=4||t===0?sl(e):sl.ceil(e)}function iX(e,t){return e=Ij(e),pe(sl.count(Or(e),e)+(Or(e).getDay()===4),t,2)}function lX(e){return e.getDay()}function oX(e,t){return pe(cf.count(Or(e)-1,e),t,2)}function uX(e,t){return pe(e.getFullYear()%100,t,2)}function sX(e,t){return e=Ij(e),pe(e.getFullYear()%100,t,2)}function cX(e,t){return pe(e.getFullYear()%1e4,t,4)}function fX(e,t){var n=e.getDay();return e=n>=4||n===0?sl(e):sl.ceil(e),pe(e.getFullYear()%1e4,t,4)}function dX(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+pe(t/60|0,"0",2)+pe(t%60,"0",2)}function AS(e,t){return pe(e.getUTCDate(),t,2)}function hX(e,t){return pe(e.getUTCHours(),t,2)}function pX(e,t){return pe(e.getUTCHours()%12||12,t,2)}function yX(e,t){return pe(1+Dd.count(wr(e),e),t,3)}function Hj(e,t){return pe(e.getUTCMilliseconds(),t,3)}function mX(e,t){return Hj(e,t)+"000"}function vX(e,t){return pe(e.getUTCMonth()+1,t,2)}function gX(e,t){return pe(e.getUTCMinutes(),t,2)}function bX(e,t){return pe(e.getUTCSeconds(),t,2)}function xX(e){var t=e.getUTCDay();return t===0?7:t}function SX(e,t){return pe(zd.count(wr(e)-1,e),t,2)}function qj(e){var t=e.getUTCDay();return t>=4||t===0?cl(e):cl.ceil(e)}function OX(e,t){return e=qj(e),pe(cl.count(wr(e),e)+(wr(e).getUTCDay()===4),t,2)}function wX(e){return e.getUTCDay()}function AX(e,t){return pe(ff.count(wr(e)-1,e),t,2)}function _X(e,t){return pe(e.getUTCFullYear()%100,t,2)}function EX(e,t){return e=qj(e),pe(e.getUTCFullYear()%100,t,2)}function jX(e,t){return pe(e.getUTCFullYear()%1e4,t,4)}function TX(e,t){var n=e.getUTCDay();return e=n>=4||n===0?cl(e):cl.ceil(e),pe(e.getUTCFullYear()%1e4,t,4)}function NX(){return"+0000"}function _S(){return"%"}function ES(e){return+e}function jS(e){return Math.floor(+e/1e3)}var di,Gj,Yj;MX({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function MX(e){return di=MY(e),Gj=di.format,di.parse,Yj=di.utcFormat,di.utcParse,di}function CX(e){return new Date(e)}function $X(e){return e instanceof Date?+e:+new Date(+e)}function tg(e,t,n,r,a,i,l,o,u,s){var f=I0(),c=f.invert,d=f.domain,h=s(".%L"),x=s(":%S"),g=s("%I:%M"),v=s("%I %p"),y=s("%a %d"),m=s("%b %d"),b=s("%B"),O=s("%Y");function S(w){return(u(w)t(a/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(a,i)=>SG(e,i/r))},n.copy=function(){return Fj(t).domain(e)},Tr.apply(n,arguments)}function Ld(){var e=0,t=.5,n=1,r=1,a,i,l,o,u,s=Dt,f,c=!1,d;function h(g){return isNaN(g=+g)?d:(g=.5+((g=+f(g))-i)*(r*gt}var UX=kX,IX=Jj,HX=UX,qX=Gl;function GX(e){return e&&e.length?IX(e,qX,HX):void 0}var YX=GX;const kd=Me(YX);function XX(e,t){return ee.e^i.s<0?1:-1;for(r=i.d.length,a=e.d.length,t=0,n=re.d[t]^i.s<0?1:-1;return r===a?0:r>a^i.s<0?1:-1};F.decimalPlaces=F.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Le;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};F.dividedBy=F.div=function(e){return yr(this,new this.constructor(e))};F.dividedToIntegerBy=F.idiv=function(e){var t=this,n=t.constructor;return Ce(yr(t,new n(e),0,1),n.precision)};F.equals=F.eq=function(e){return!this.cmp(e)};F.exponent=function(){return rt(this)};F.greaterThan=F.gt=function(e){return this.cmp(e)>0};F.greaterThanOrEqualTo=F.gte=function(e){return this.cmp(e)>=0};F.isInteger=F.isint=function(){return this.e>this.d.length-2};F.isNegative=F.isneg=function(){return this.s<0};F.isPositive=F.ispos=function(){return this.s>0};F.isZero=function(){return this.s===0};F.lessThan=F.lt=function(e){return this.cmp(e)<0};F.lessThanOrEqualTo=F.lte=function(e){return this.cmp(e)<1};F.logarithm=F.log=function(e){var t,n=this,r=n.constructor,a=r.precision,i=a+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Jt))throw Error(wn+"NaN");if(n.s<1)throw Error(wn+(n.s?"NaN":"-Infinity"));return n.eq(Jt)?new r(0):(qe=!1,t=yr(pu(n,i),pu(e,i),i),qe=!0,Ce(t,a))};F.minus=F.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?rT(t,e):tT(t,(e.s=-e.s,e))};F.modulo=F.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(wn+"NaN");return n.s?(qe=!1,t=yr(n,e,0,1).times(e),qe=!0,n.minus(t)):Ce(new r(n),a)};F.naturalExponential=F.exp=function(){return nT(this)};F.naturalLogarithm=F.ln=function(){return pu(this)};F.negated=F.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};F.plus=F.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?tT(t,e):rT(t,(e.s=-e.s,e))};F.precision=F.sd=function(e){var t,n,r,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Ba+e);if(t=rt(a)+1,r=a.d.length-1,n=r*Le+1,r=a.d[r],r){for(;r%10==0;r/=10)n--;for(r=a.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};F.squareRoot=F.sqrt=function(){var e,t,n,r,a,i,l,o=this,u=o.constructor;if(o.s<1){if(!o.s)return new u(0);throw Error(wn+"NaN")}for(e=rt(o),qe=!1,a=Math.sqrt(+o),a==0||a==1/0?(t=Un(o.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=Vl((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new u(t)):r=new u(a.toString()),n=u.precision,a=l=n+3;;)if(i=r,r=i.plus(yr(o,i,l+2)).times(.5),Un(i.d).slice(0,l)===(t=Un(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),a==l&&t=="4999"){if(Ce(i,n+1,0),i.times(i).eq(o)){r=i;break}}else if(t!="9999")break;l+=4}return qe=!0,Ce(r,n)};F.times=F.mul=function(e){var t,n,r,a,i,l,o,u,s,f=this,c=f.constructor,d=f.d,h=(e=new c(e)).d;if(!f.s||!e.s)return new c(0);for(e.s*=f.s,n=f.e+e.e,u=d.length,s=h.length,u=0;){for(t=0,a=u+r;a>r;)o=i[a]+h[r]*d[a-r-1]+t,i[a--]=o%ft|0,t=o/ft|0;i[a]=(i[a]+t)%ft|0}for(;!i[--l];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,qe?Ce(e,c.precision):e};F.toDecimalPlaces=F.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Gn(e,0,Xl),t===void 0?t=r.rounding:Gn(t,0,8),Ce(n,e+rt(n)+1,t))};F.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=Ka(r,!0):(Gn(e,0,Xl),t===void 0?t=a.rounding:Gn(t,0,8),r=Ce(new a(r),e+1,t),n=Ka(r,!0,e+1)),n};F.toFixed=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?Ka(a):(Gn(e,0,Xl),t===void 0?t=i.rounding:Gn(t,0,8),r=Ce(new i(a),e+rt(a)+1,t),n=Ka(r.abs(),!1,e+rt(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};F.toInteger=F.toint=function(){var e=this,t=e.constructor;return Ce(new t(e),rt(e)+1,t.rounding)};F.toNumber=function(){return+this};F.toPower=F.pow=function(e){var t,n,r,a,i,l,o=this,u=o.constructor,s=12,f=+(e=new u(e));if(!e.s)return new u(Jt);if(o=new u(o),!o.s){if(e.s<1)throw Error(wn+"Infinity");return o}if(o.eq(Jt))return o;if(r=u.precision,e.eq(Jt))return Ce(o,r);if(t=e.e,n=e.d.length-1,l=t>=n,i=o.s,l){if((n=f<0?-f:f)<=eT){for(a=new u(Jt),t=Math.ceil(r/Le+4),qe=!1;n%2&&(a=a.times(o),MS(a.d,t)),n=Vl(n/2),n!==0;)o=o.times(o),MS(o.d,t);return qe=!0,e.s<0?new u(Jt).div(a):Ce(a,r)}}else if(i<0)throw Error(wn+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,o.s=1,qe=!1,a=e.times(pu(o,r+s)),qe=!0,a=nT(a),a.s=i,a};F.toPrecision=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?(n=rt(a),r=Ka(a,n<=i.toExpNeg||n>=i.toExpPos)):(Gn(e,1,Xl),t===void 0?t=i.rounding:Gn(t,0,8),a=Ce(new i(a),e,t),n=rt(a),r=Ka(a,e<=n||n<=i.toExpNeg,e)),r};F.toSignificantDigits=F.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Gn(e,1,Xl),t===void 0?t=r.rounding:Gn(t,0,8)),Ce(new r(n),e,t)};F.toString=F.valueOf=F.val=F.toJSON=F[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=rt(e),n=e.constructor;return Ka(e,t<=n.toExpNeg||t>=n.toExpPos)};function tT(e,t){var n,r,a,i,l,o,u,s,f=e.constructor,c=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),qe?Ce(t,c):t;if(u=e.d,s=t.d,l=e.e,a=t.e,u=u.slice(),i=l-a,i){for(i<0?(r=u,i=-i,o=s.length):(r=s,a=l,o=u.length),l=Math.ceil(c/Le),o=l>o?l+1:o+1,i>o&&(i=o,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(o=u.length,i=s.length,o-i<0&&(i=o,r=s,s=u,u=r),n=0;i;)n=(u[--i]=u[i]+s[i]+n)/ft|0,u[i]%=ft;for(n&&(u.unshift(n),++a),o=u.length;u[--o]==0;)u.pop();return t.d=u,t.e=a,qe?Ce(t,c):t}function Gn(e,t,n){if(e!==~~e||en)throw Error(Ba+e)}function Un(e){var t,n,r,a=e.length-1,i="",l=e[0];if(a>0){for(i+=l,t=1;tl?1:-1;else for(o=u=0;oa[o]?1:-1;break}return u}function n(r,a,i){for(var l=0;i--;)r[i]-=l,l=r[i]1;)r.shift()}return function(r,a,i,l){var o,u,s,f,c,d,h,x,g,v,y,m,b,O,S,w,A,E,j=r.constructor,$=r.s==a.s?1:-1,P=r.d,M=a.d;if(!r.s)return new j(r);if(!a.s)throw Error(wn+"Division by zero");for(u=r.e-a.e,A=M.length,S=P.length,h=new j($),x=h.d=[],s=0;M[s]==(P[s]||0);)++s;if(M[s]>(P[s]||0)&&--u,i==null?m=i=j.precision:l?m=i+(rt(r)-rt(a))+1:m=i,m<0)return new j(0);if(m=m/Le+2|0,s=0,A==1)for(f=0,M=M[0],m++;(s1&&(M=e(M,f),P=e(P,f),A=M.length,S=P.length),O=A,g=P.slice(0,A),v=g.length;v=ft/2&&++w;do f=0,o=t(M,g,A,v),o<0?(y=g[0],A!=v&&(y=y*ft+(g[1]||0)),f=y/w|0,f>1?(f>=ft&&(f=ft-1),c=e(M,f),d=c.length,v=g.length,o=t(c,g,d,v),o==1&&(f--,n(c,A16)throw Error(ig+rt(e));if(!e.s)return new f(Jt);for(qe=!1,o=c,l=new f(.03125);e.abs().gte(.1);)e=e.times(l),s+=5;for(r=Math.log(Aa(2,s))/Math.LN10*2+5|0,o+=r,n=a=i=new f(Jt),f.precision=o;;){if(a=Ce(a.times(e),o),n=n.times(++u),l=i.plus(yr(a,n,o)),Un(l.d).slice(0,o)===Un(i.d).slice(0,o)){for(;s--;)i=Ce(i.times(i),o);return f.precision=c,t==null?(qe=!0,Ce(i,c)):i}i=l}}function rt(e){for(var t=e.e*Le,n=e.d[0];n>=10;n/=10)t++;return t}function fp(e,t,n){if(t>e.LN10.sd())throw qe=!0,n&&(e.precision=n),Error(wn+"LN10 precision limit exceeded");return Ce(new e(e.LN10),t)}function $r(e){for(var t="";e--;)t+="0";return t}function pu(e,t){var n,r,a,i,l,o,u,s,f,c=1,d=10,h=e,x=h.d,g=h.constructor,v=g.precision;if(h.s<1)throw Error(wn+(h.s?"NaN":"-Infinity"));if(h.eq(Jt))return new g(0);if(t==null?(qe=!1,s=v):s=t,h.eq(10))return t==null&&(qe=!0),fp(g,s);if(s+=d,g.precision=s,n=Un(x),r=n.charAt(0),i=rt(h),Math.abs(i)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)h=h.times(e),n=Un(h.d),r=n.charAt(0),c++;i=rt(h),r>1?(h=new g("0."+n),i++):h=new g(r+"."+n.slice(1))}else return u=fp(g,s+2,v).times(i+""),h=pu(new g(r+"."+n.slice(1)),s-d).plus(u),g.precision=v,t==null?(qe=!0,Ce(h,v)):h;for(o=l=h=yr(h.minus(Jt),h.plus(Jt),s),f=Ce(h.times(h),s),a=3;;){if(l=Ce(l.times(f),s),u=o.plus(yr(l,new g(a),s)),Un(u.d).slice(0,s)===Un(o.d).slice(0,s))return o=o.times(2),i!==0&&(o=o.plus(fp(g,s+2,v).times(i+""))),o=yr(o,new g(c),s),g.precision=v,t==null?(qe=!0,Ce(o,v)):o;o=u,a+=2}}function NS(e,t){var n,r,a;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=Vl(n/Le),e.d=[],r=(n+1)%Le,n<0&&(r+=Le),rdf||e.e<-df))throw Error(ig+n)}else e.s=0,e.e=0,e.d=[0];return e}function Ce(e,t,n){var r,a,i,l,o,u,s,f,c=e.d;for(l=1,i=c[0];i>=10;i/=10)l++;if(r=t-l,r<0)r+=Le,a=t,s=c[f=0];else{if(f=Math.ceil((r+1)/Le),i=c.length,f>=i)return e;for(s=i=c[f],l=1;i>=10;i/=10)l++;r%=Le,a=r-Le+l}if(n!==void 0&&(i=Aa(10,l-a-1),o=s/i%10|0,u=t<0||c[f+1]!==void 0||s%i,u=n<4?(o||u)&&(n==0||n==(e.s<0?3:2)):o>5||o==5&&(n==4||u||n==6&&(r>0?a>0?s/Aa(10,l-a):0:c[f-1])%10&1||n==(e.s<0?8:7))),t<1||!c[0])return u?(i=rt(e),c.length=1,t=t-i-1,c[0]=Aa(10,(Le-t%Le)%Le),e.e=Vl(-t/Le)||0):(c.length=1,c[0]=e.e=e.s=0),e;if(r==0?(c.length=f,i=1,f--):(c.length=f+1,i=Aa(10,Le-r),c[f]=a>0?(s/Aa(10,l-a)%Aa(10,a)|0)*i:0),u)for(;;)if(f==0){(c[0]+=i)==ft&&(c[0]=1,++e.e);break}else{if(c[f]+=i,c[f]!=ft)break;c[f--]=0,i=1}for(r=c.length;c[--r]===0;)c.pop();if(qe&&(e.e>df||e.e<-df))throw Error(ig+rt(e));return e}function rT(e,t){var n,r,a,i,l,o,u,s,f,c,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),qe?Ce(t,h):t;if(u=e.d,c=t.d,r=t.e,s=e.e,u=u.slice(),l=s-r,l){for(f=l<0,f?(n=u,l=-l,o=c.length):(n=c,r=s,o=u.length),a=Math.max(Math.ceil(h/Le),o)+2,l>a&&(l=a,n.length=1),n.reverse(),a=l;a--;)n.push(0);n.reverse()}else{for(a=u.length,o=c.length,f=a0;--a)u[o++]=0;for(a=c.length;a>l;){if(u[--a]0?i=i.charAt(0)+"."+i.slice(1)+$r(r):l>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+$r(-a-1)+i,n&&(r=n-l)>0&&(i+=$r(r))):a>=l?(i+=$r(a+1-l),n&&(r=n-a-1)>0&&(i=i+"."+$r(r))):((r=a+1)0&&(a+1===l&&(i+="."),i+=$r(r))),e.s<0?"-"+i:i}function MS(e,t){if(e.length>t)return e.length=t,!0}function aT(e){var t,n,r;function a(i){var l=this;if(!(l instanceof a))return new a(i);if(l.constructor=a,i instanceof a){l.s=i.s,l.e=i.e,l.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(Ba+i);if(i>0)l.s=1;else if(i<0)i=-i,l.s=-1;else{l.s=0,l.e=0,l.d=[0];return}if(i===~~i&&i<1e7){l.e=0,l.d=[i];return}return NS(l,i.toString())}else if(typeof i!="string")throw Error(Ba+i);if(i.charCodeAt(0)===45?(i=i.slice(1),l.s=-1):l.s=1,pV.test(i))NS(l,i);else throw Error(Ba+i)}if(a.prototype=F,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=aT,a.config=a.set=yV,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(Ba+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Ba+n+": "+r);return this}var lg=aT(hV);Jt=new lg(1);const Te=lg;function mV(e){return xV(e)||bV(e)||gV(e)||vV()}function vV(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gV(e,t){if(e){if(typeof e=="string")return sm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sm(e,t)}}function bV(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function xV(e){if(Array.isArray(e))return sm(e)}function sm(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t?n.apply(void 0,a):e(t-l,CS(function(){for(var o=arguments.length,u=new Array(o),s=0;se.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!1,i=void 0;try{for(var l=e[Symbol.iterator](),o;!(r=(o=l.next()).done)&&(n.push(o.value),!(t&&n.length===t));r=!0);}catch(u){a=!0,i=u}finally{try{!r&&l.return!=null&&l.return()}finally{if(a)throw i}}return n}}function RV(e){if(Array.isArray(e))return e}function sT(e){var t=yu(e,2),n=t[0],r=t[1],a=n,i=r;return n>r&&(a=r,i=n),[a,i]}function cT(e,t,n){if(e.lte(0))return new Te(0);var r=Hd.getDigitCount(e.toNumber()),a=new Te(10).pow(r),i=e.div(a),l=r!==1?.05:.1,o=new Te(Math.ceil(i.div(l).toNumber())).add(n).mul(l),u=o.mul(a);return t?u:new Te(Math.ceil(u))}function zV(e,t,n){var r=1,a=new Te(e);if(!a.isint()&&n){var i=Math.abs(e);i<1?(r=new Te(10).pow(Hd.getDigitCount(e)-1),a=new Te(Math.floor(a.div(r).toNumber())).mul(r)):i>1&&(a=new Te(Math.floor(e)))}else e===0?a=new Te(Math.floor((t-1)/2)):n||(a=new Te(Math.floor(e)));var l=Math.floor((t-1)/2),o=AV(wV(function(u){return a.add(new Te(u-l).mul(r)).toNumber()}),cm);return o(0,t)}function fT(e,t,n,r){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Te(0),tickMin:new Te(0),tickMax:new Te(0)};var i=cT(new Te(t).sub(e).div(n-1),r,a),l;e<=0&&t>=0?l=new Te(0):(l=new Te(e).add(t).div(2),l=l.sub(new Te(l).mod(i)));var o=Math.ceil(l.sub(e).div(i).toNumber()),u=Math.ceil(new Te(t).sub(l).div(i).toNumber()),s=o+u+1;return s>n?fT(e,t,n,r,a+1):(s0?u+(n-s):u,o=t>0?o:o+(n-s)),{step:i,tickMin:l.sub(new Te(o).mul(i)),tickMax:l.add(new Te(u).mul(i))})}function BV(e){var t=yu(e,2),n=t[0],r=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=Math.max(a,2),o=sT([n,r]),u=yu(o,2),s=u[0],f=u[1];if(s===-1/0||f===1/0){var c=f===1/0?[s].concat(dm(cm(0,a-1).map(function(){return 1/0}))):[].concat(dm(cm(0,a-1).map(function(){return-1/0})),[f]);return n>r?fm(c):c}if(s===f)return zV(s,a,i);var d=fT(s,f,l,i),h=d.step,x=d.tickMin,g=d.tickMax,v=Hd.rangeStep(x,g.add(new Te(.1).mul(h)),h);return n>r?fm(v):v}function LV(e,t){var n=yu(e,2),r=n[0],a=n[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=sT([r,a]),o=yu(l,2),u=o[0],s=o[1];if(u===-1/0||s===1/0)return[r,a];if(u===s)return[u];var f=Math.max(t,2),c=cT(new Te(s).sub(u).div(f-1),i,0),d=[].concat(dm(Hd.rangeStep(new Te(u),new Te(s).sub(new Te(.99).mul(c)),c)),[s]);return r>a?fm(d):d}var kV=oT(BV),UV=oT(LV),IV="Invariant failed";function Fa(e,t){throw new Error(IV)}var HV=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function fl(e){"@babel/helpers - typeof";return fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fl(e)}function hf(){return hf=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function FV(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function QV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WV(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,l=-1,o=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(o<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var u=i.range,s=0;s0?a[s-1].coordinate:a[o-1].coordinate,c=a[s].coordinate,d=s>=o-1?a[0].coordinate:a[s+1].coordinate,h=void 0;if(Cn(c-f)!==Cn(d-c)){var x=[];if(Cn(d-c)===Cn(u[1]-u[0])){h=d;var g=c+u[1]-u[0];x[0]=Math.min(g,(g+f)/2),x[1]=Math.max(g,(g+f)/2)}else{h=f;var v=d+u[1]-u[0];x[0]=Math.min(c,(v+c)/2),x[1]=Math.max(c,(v+c)/2)}var y=[Math.min(c,(h+c)/2),Math.max(c,(h+c)/2)];if(t>y[0]&&t<=y[1]||t>=x[0]&&t<=x[1]){l=a[s].index;break}}else{var m=Math.min(f,d),b=Math.max(f,d);if(t>(m+c)/2&&t<=(b+c)/2){l=a[s].index;break}}}else for(var O=0;O0&&O(r[O].coordinate+r[O-1].coordinate)/2&&t<=(r[O].coordinate+r[O+1].coordinate)/2||O===o-1&&t>(r[O].coordinate+r[O-1].coordinate)/2){l=r[O].index;break}return l},og=function(t){var n,r=t,a=r.type.displayName,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Ve(Ve({},t.type.defaultProps),t.props):t.props,l=i.stroke,o=i.fill,u;switch(a){case"Line":u=l;break;case"Area":case"Radar":u=l&&l!=="none"?l:o;break;default:u=o;break}return u},pK=function(t){var n=t.barSize,r=t.totalSize,a=t.stackGroups,i=a===void 0?{}:a;if(!i)return{};for(var l={},o=Object.keys(i),u=0,s=o.length;u=0});if(y&&y.length){var m=y[0].type.defaultProps,b=m!==void 0?Ve(Ve({},m),y[0].props):y[0].props,O=b.barSize,S=b[v];l[S]||(l[S]=[]);var w=ge(O)?n:O;l[S].push({item:y[0],stackList:y.slice(1),barSize:ge(w)?void 0:Va(w,r,0)})}}return l},yK=function(t){var n=t.barGap,r=t.barCategoryGap,a=t.bandSize,i=t.sizeList,l=i===void 0?[]:i,o=t.maxBarSize,u=l.length;if(u<1)return null;var s=Va(n,a,0,!0),f,c=[];if(l[0].barSize===+l[0].barSize){var d=!1,h=a/u,x=l.reduce(function(O,S){return O+S.barSize||0},0);x+=(u-1)*s,x>=a&&(x-=(u-1)*s,s=0),x>=a&&h>0&&(d=!0,h*=.9,x=u*h);var g=(a-x)/2>>0,v={offset:g-s,size:0};f=l.reduce(function(O,S){var w={item:S.item,position:{offset:v.offset+v.size+s,size:d?h:S.barSize}},A=[].concat(DS(O),[w]);return v=A[A.length-1].position,S.stackList&&S.stackList.length&&S.stackList.forEach(function(E){A.push({item:E,position:v})}),A},c)}else{var y=Va(r,a,0,!0);a-2*y-(u-1)*s<=0&&(s=0);var m=(a-2*y-(u-1)*s)/u;m>1&&(m>>=0);var b=o===+o?Math.min(m,o):m;f=l.reduce(function(O,S,w){var A=[].concat(DS(O),[{item:S.item,position:{offset:y+(m+s)*w+(m-b)/2,size:b}}]);return S.stackList&&S.stackList.length&&S.stackList.forEach(function(E){A.push({item:E,position:A[A.length-1].position})}),A},c)}return f},mK=function(t,n,r,a){var i=r.children,l=r.width,o=r.margin,u=l-(o.left||0)-(o.right||0),s=yT({children:i,legendWidth:u});if(s){var f=a||{},c=f.width,d=f.height,h=s.align,x=s.verticalAlign,g=s.layout;if((g==="vertical"||g==="horizontal"&&x==="middle")&&h!=="center"&&Y(t[h]))return Ve(Ve({},t),{},Hi({},h,t[h]+(c||0)));if((g==="horizontal"||g==="vertical"&&h==="center")&&x!=="middle"&&Y(t[x]))return Ve(Ve({},t),{},Hi({},x,t[x]+(d||0)))}return t},vK=function(t,n,r){return ge(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},mT=function(t,n,r,a,i){var l=n.props.children,o=$n(l,qd).filter(function(s){return vK(a,i,s.props.direction)});if(o&&o.length){var u=o.map(function(s){return s.props.dataKey});return t.reduce(function(s,f){var c=Yn(f,r);if(ge(c))return s;var d=Array.isArray(c)?[Ud(c),kd(c)]:[c,c],h=u.reduce(function(x,g){var v=Yn(f,g,0),y=d[0]-Math.abs(Array.isArray(v)?v[0]:v),m=d[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(y,x[0]),Math.max(m,x[1])]},[1/0,-1/0]);return[Math.min(h[0],s[0]),Math.max(h[1],s[1])]},[1/0,-1/0])}return null},gK=function(t,n,r,a,i){var l=n.map(function(o){return mT(t,o,r,i,a)}).filter(function(o){return!ge(o)});return l&&l.length?l.reduce(function(o,u){return[Math.min(o[0],u[0]),Math.max(o[1],u[1])]},[1/0,-1/0]):null},vT=function(t,n,r,a,i){var l=n.map(function(u){var s=u.props.dataKey;return r==="number"&&s&&mT(t,u,s,a)||zo(t,s,r,i)});if(r==="number")return l.reduce(function(u,s){return[Math.min(u[0],s[0]),Math.max(u[1],s[1])]},[1/0,-1/0]);var o={};return l.reduce(function(u,s){for(var f=0,c=s.length;f=2?Cn(o[0]-o[1])*2*s:s,n&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(c){var d=i?i.indexOf(c):c;return{coordinate:a(d)+s,value:c,offset:s}});return f.filter(function(c){return!es(c.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(c,d){return{coordinate:a(c)+s,value:c,index:d,offset:s}}):a.ticks&&!r?a.ticks(t.tickCount).map(function(c){return{coordinate:a(c)+s,value:c,offset:s}}):a.domain().map(function(c,d){return{coordinate:a(c)+s,value:i?i[c]:c,index:d,offset:s}})},dp=new WeakMap,Ps=function(t,n){if(typeof n!="function")return t;dp.has(t)||dp.set(t,new WeakMap);var r=dp.get(t);if(r.has(n))return r.get(n);var a=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,a),a},bK=function(t,n,r){var a=t.scale,i=t.type,l=t.layout,o=t.axisType;if(a==="auto")return l==="radial"&&o==="radiusAxis"?{scale:su(),realScaleType:"band"}:l==="radial"&&o==="angleAxis"?{scale:uf(),realScaleType:"linear"}:i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Ro(),realScaleType:"point"}:i==="category"?{scale:su(),realScaleType:"band"}:{scale:uf(),realScaleType:"linear"};if(Xa(a)){var u="scale".concat(Ed(a));return{scale:(TS[u]||Ro)(),realScaleType:TS[u]?u:"point"}}return oe(a)?{scale:a}:{scale:Ro(),realScaleType:"point"}},zS=1e-4,xK=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,a=t.range(),i=Math.min(a[0],a[1])-zS,l=Math.max(a[0],a[1])+zS,o=t(n[0]),u=t(n[r-1]);(ol||ul)&&t.domain([n[0],n[r-1]])}},SK=function(t,n){if(!t)return null;for(var r=0,a=t.length;ra)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1]=0?(t[o][r][0]=i,t[o][r][1]=i+u,i=t[o][r][1]):(t[o][r][0]=l,t[o][r][1]=l+u,l=t[o][r][1])}},AK=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r=0?(t[l][r][0]=i,t[l][r][1]=i+o,i=t[l][r][1]):(t[l][r][0]=0,t[l][r][1]=0)}},_K={sign:wK,expand:k8,none:rl,silhouette:U8,wiggle:I8,positive:AK},EK=function(t,n,r){var a=n.map(function(o){return o.props.dataKey}),i=_K[r],l=L8().keys(a).value(function(o,u){return+Yn(o,u,0)}).order(Uy).offset(i);return l(t)},jK=function(t,n,r,a,i,l){if(!t)return null;var o=l?n.reverse():n,u={},s=o.reduce(function(c,d){var h,x=(h=d.type)!==null&&h!==void 0&&h.defaultProps?Ve(Ve({},d.type.defaultProps),d.props):d.props,g=x.stackId,v=x.hide;if(v)return c;var y=x[r],m=c[y]||{hasStack:!1,stackGroups:{}};if(ut(g)){var b=m.stackGroups[g]||{numericAxisId:r,cateAxisId:a,items:[]};b.items.push(d),m.hasStack=!0,m.stackGroups[g]=b}else m.stackGroups[_d("_stackId_")]={numericAxisId:r,cateAxisId:a,items:[d]};return Ve(Ve({},c),{},Hi({},y,m))},u),f={};return Object.keys(s).reduce(function(c,d){var h=s[d];if(h.hasStack){var x={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(g,v){var y=h.stackGroups[v];return Ve(Ve({},g),{},Hi({},v,{numericAxisId:r,cateAxisId:a,items:y.items,stackedData:EK(t,y.items,i)}))},x)}return Ve(Ve({},c),{},Hi({},d,h))},f)},TK=function(t,n){var r=n.realScaleType,a=n.type,i=n.tickCount,l=n.originalDomain,o=n.allowDecimals,u=r||n.scale;if(u!=="auto"&&u!=="linear")return null;if(i&&a==="number"&&l&&(l[0]==="auto"||l[1]==="auto")){var s=t.domain();if(!s.length)return null;var f=kV(s,i,o);return t.domain([Ud(f),kd(f)]),{niceTicks:f}}if(i&&a==="number"){var c=t.domain(),d=UV(c,i,o);return{niceTicks:d}}return null},BS=function(t){var n=t.axis,r=t.ticks,a=t.offset,i=t.bandSize,l=t.entry,o=t.index;if(n.type==="category")return r[o]?r[o].coordinate+a:null;var u=Yn(l,n.dataKey,n.domain[o]);return ge(u)?null:n.scale(u)-i/2+a},NK=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var a=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return a<=0&&i>=0?0:i<0?i:a}return r[0]},MK=function(t,n){var r,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Ve(Ve({},t.type.defaultProps),t.props):t.props,i=a.stackId;if(ut(i)){var l=n[i];if(l){var o=l.items.indexOf(t);return o>=0?l.stackedData[o]:null}}return null},CK=function(t){return t.reduce(function(n,r){return[Ud(r.concat([n[0]]).filter(Y)),kd(r.concat([n[1]]).filter(Y))]},[1/0,-1/0])},xT=function(t,n,r){return Object.keys(t).reduce(function(a,i){var l=t[i],o=l.stackedData,u=o.reduce(function(s,f){var c=CK(f.slice(n,r+1));return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]);return[Math.min(u[0],a[0]),Math.max(u[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},LS=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,kS=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,mm=function(t,n,r){if(oe(t))return t(n,r);if(!Array.isArray(t))return n;var a=[];if(Y(t[0]))a[0]=r?t[0]:Math.min(t[0],n[0]);else if(LS.test(t[0])){var i=+LS.exec(t[0])[1];a[0]=n[0]-i}else oe(t[0])?a[0]=t[0](n[0]):a[0]=n[0];if(Y(t[1]))a[1]=r?t[1]:Math.max(t[1],n[1]);else if(kS.test(t[1])){var l=+kS.exec(t[1])[1];a[1]=n[1]+l}else oe(t[1])?a[1]=t[1](n[1]):a[1]=n[1];return a},yf=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var a=t.scale.bandwidth();if(!r||a>0)return a}if(t&&n&&n.length>=2){for(var i=D0(n,function(c){return c.coordinate}),l=1/0,o=1,u=i.length;o