ed-widget 1.18.0 → 1.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/npm/ed-widget.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('@import"https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Inter:ital,wght@0,100..900;1,100..900&display=swap";*,: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}h1{font-size:32px;font-weight:600}h2{font-size:1.5rem;line-height:2rem;font-weight:600}h3{font-size:1.25rem;line-height:1.75rem;font-weight:500}h4{font-size:1.125rem;line-height:1.75rem;font-weight:500}h5{font-size:1rem;line-height:1.5rem;font-weight:500}h6{font-size:.875rem;line-height:1.25rem;font-weight:500}p{font-size:.875rem;line-height:1.25rem;font-weight:400}span{font-size:.75rem;line-height:1rem;font-weight:400}@keyframes stripes{0%{background-position:0 0}to{background-position:160px 0}}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.ed-pointer-events-none{pointer-events:none}.ed-absolute{position:absolute}.ed-relative{position:relative}.ed-sticky{position:sticky}.ed-inset-2{top:.5rem;right:.5rem;bottom:.5rem;left:.5rem}.ed-bottom-0{bottom:0}.ed-bottom-12{bottom:3rem}.ed-left-0{left:0}.ed-left-1\\/2{left:50%}.ed-right-0{right:0}.ed-right-12{right:3rem}.ed-top-0{top:0}.ed-top-1\\/2{top:50%}.ed-z-10{z-index:10}.ed-z-\\[9999999\\]{z-index:9999999}.ed--mx-5{margin-left:-1.25rem;margin-right:-1.25rem}.ed-mx-3{margin-left:.75rem;margin-right:.75rem}.ed-my-10{margin-top:2.5rem;margin-bottom:2.5rem}.ed-my-2{margin-top:.5rem;margin-bottom:.5rem}.ed-my-4{margin-top:1rem;margin-bottom:1rem}.ed-mb-1{margin-bottom:.25rem}.ed-mb-2{margin-bottom:.5rem}.ed-mb-4{margin-bottom:1rem}.ed-mb-5{margin-bottom:1.25rem}.ed-mb-6{margin-bottom:1.5rem}.ed-ml-1{margin-left:.25rem}.ed-ml-2{margin-left:.5rem}.ed-ml-auto{margin-left:auto}.ed-mr-1{margin-right:.25rem}.ed-mt-1\\.5{margin-top:.375rem}.ed-mt-2{margin-top:.5rem}.ed-mt-2\\.5{margin-top:.625rem}.ed-mt-3{margin-top:.75rem}.ed-mt-4{margin-top:1rem}.ed-mt-5{margin-top:1.25rem}.ed-block{display:block}.ed-inline-block{display:inline-block}.ed-inline{display:inline}.ed-flex{display:flex}.ed-inline-flex{display:inline-flex}.ed-grid{display:grid}.ed-hidden{display:none}.ed-size-10{width:2.5rem;height:2.5rem}.ed-size-12{width:3rem;height:3rem}.ed-size-4{width:1rem;height:1rem}.ed-size-5{width:1.25rem;height:1.25rem}.ed-size-7{width:1.75rem;height:1.75rem}.ed-size-9{width:2.25rem;height:2.25rem}.ed-h-0{height:0px}.ed-h-10{height:2.5rem}.ed-h-2{height:.5rem}.ed-h-2\\/3{height:66.666667%}.ed-h-20{height:5rem}.ed-h-4{height:1rem}.ed-h-5{height:1.25rem}.ed-h-7{height:1.75rem}.ed-h-8{height:2rem}.ed-h-\\[41px\\]{height:41px}.ed-h-\\[50px\\]{height:50px}.ed-h-\\[calc\\(100vh-200px\\)\\]{height:calc(100vh - 200px)}.ed-h-\\[calc\\(100vh-25rem\\)\\]{height:calc(100vh - 25rem)}.ed-h-dvh{height:100dvh}.ed-h-full{height:100%}.ed-h-max{height:-moz-max-content;height:max-content}.ed-max-h-0{max-height:0px}.ed-max-h-96{max-height:24rem}.ed-max-h-full{max-height:100%}.ed-min-h-\\[24px\\]{min-height:24px}.ed-min-h-min{min-height:-moz-min-content;min-height:min-content}.ed-w-0{width:0px}.ed-w-10{width:2.5rem}.ed-w-11\\/12{width:91.666667%}.ed-w-2{width:.5rem}.ed-w-4{width:1rem}.ed-w-5{width:1.25rem}.ed-w-7{width:1.75rem}.ed-w-8{width:2rem}.ed-w-\\[50px\\]{width:50px}.ed-w-full{width:100%}.ed-w-max{width:-moz-max-content;width:max-content}.ed-w-screen{width:100vw}.ed-min-w-0{min-width:0px}.ed-min-w-\\[16rem\\]{min-width:16rem}.ed-max-w-\\[100px\\]{max-width:100px}.ed-max-w-\\[150px\\]{max-width:150px}.ed-max-w-\\[200px\\]{max-width:200px}.ed-max-w-\\[85\\%\\]{max-width:85%}.ed-max-w-\\[87\\%\\]{max-width:87%}.ed-max-w-full{max-width:100%}.ed-flex-1{flex:1 1 0%}.ed-flex-shrink-0{flex-shrink:0}.ed-origin-center{transform-origin:center}.ed--translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.ed--translate-x-2{--tw-translate-x: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.ed--translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.ed-rotate-0{--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.ed-rotate-\\[360deg\\]{--tw-rotate: 360deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.ed-scale-0{--tw-scale-x: 0;--tw-scale-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.ed-scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.ed-transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes ed-bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.ed-animate-bounce{animation:ed-bounce 1s infinite}@keyframes ed-spin{to{transform:rotate(360deg)}}.ed-animate-spin{animation:ed-spin 1s linear infinite}.ed-cursor-not-allowed{cursor:not-allowed}.ed-cursor-pointer{cursor:pointer}.ed-resize-none{resize:none}.ed-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.ed-flex-col{flex-direction:column}.ed-flex-wrap{flex-wrap:wrap}.ed-items-start{align-items:flex-start}.ed-items-center{align-items:center}.ed-justify-start{justify-content:flex-start}.ed-justify-end{justify-content:flex-end}.ed-justify-center{justify-content:center}.ed-justify-between{justify-content:space-between}.ed-gap-2{gap:.5rem}.ed-gap-2\\.5{gap:.625rem}.ed-gap-3{gap:.75rem}.ed-gap-4{gap:1rem}.ed-space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.ed-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))}.ed-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))}.ed-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))}.ed-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))}.ed-overflow-hidden{overflow:hidden}.ed-overflow-x-auto{overflow-x:auto}.ed-overflow-y-auto{overflow-y:auto}.ed-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ed-whitespace-nowrap{white-space:nowrap}.\\!ed-rounded{border-radius:.25rem!important}.ed-rounded{border-radius:.25rem}.ed-rounded-3xl{border-radius:1.5rem}.ed-rounded-\\[10px\\]{border-radius:10px}.ed-rounded-\\[20px\\]{border-radius:20px}.ed-rounded-\\[8px\\]{border-radius:8px}.ed-rounded-full{border-radius:9999px}.ed-rounded-lg{border-radius:.5rem}.ed-rounded-md{border-radius:.375rem}.ed-rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.ed-rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.ed-border{border-width:1px}.ed-border-0{border-width:0px}.ed-border-2{border-width:2px}.ed-border-y{border-top-width:1px;border-bottom-width:1px}.ed-border-b{border-bottom-width:1px}.ed-border-l{border-left-width:1px}.ed-border-solid{border-style:solid}.ed-border-dashed{border-style:dashed}.ed-border-border-light{--tw-border-opacity: 1;border-color:rgb(216 224 237 / var(--tw-border-opacity, 1))}.ed-border-brand{border-color:var(--ed-brand-color)}.ed-border-disabled{--tw-border-opacity: 1;border-color:rgb(248 249 251 / var(--tw-border-opacity, 1))}.ed-border-gray{--tw-border-opacity: 1;border-color:rgb(216 224 237 / var(--tw-border-opacity, 1))}.ed-border-red{--tw-border-opacity: 1;border-color:rgb(254 71 91 / var(--tw-border-opacity, 1))}.ed-bg-black\\/15{background-color:#00000026}.ed-bg-blue-light{--tw-bg-opacity: 1;background-color:rgb(227 242 253 / var(--tw-bg-opacity, 1))}.ed-bg-brand{background-color:var(--ed-brand-color)}.ed-bg-brand-light{--tw-bg-opacity: 1;background-color:rgb(230 246 252 / var(--tw-bg-opacity, 1))}.ed-bg-gray{--tw-bg-opacity: 1;background-color:rgb(243 244 248 / var(--tw-bg-opacity, 1))}.ed-bg-gray-deep{--tw-bg-opacity: 1;background-color:rgb(143 153 173 / var(--tw-bg-opacity, 1))}.ed-bg-green{--tw-bg-opacity: 1;background-color:rgb(12 170 27 / var(--tw-bg-opacity, 1))}.ed-bg-red{--tw-bg-opacity: 1;background-color:rgb(254 71 91 / var(--tw-bg-opacity, 1))}.ed-bg-transparent{background-color:transparent}.ed-bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.ed-bg-white-light{--tw-bg-opacity: 1;background-color:rgb(250 251 252 / var(--tw-bg-opacity, 1))}.ed-bg-yellow{--tw-bg-opacity: 1;background-color:rgb(255 171 0 / var(--tw-bg-opacity, 1))}.ed-bg-none{background-image:none}.ed-fill-border-regular{fill:#797979}.ed-fill-brand{fill:var(--ed-brand-color)}.ed-fill-white{fill:#fff}.ed-stroke-border-regular{stroke:#797979}.ed-stroke-brand{stroke:var(--ed-brand-color)}.ed-object-contain{-o-object-fit:contain;object-fit:contain}.ed-object-cover{-o-object-fit:cover;object-fit:cover}.ed-p-0{padding:0}.ed-p-0\\.5{padding:.125rem}.ed-p-1{padding:.25rem}.ed-p-1\\.5{padding:.375rem}.ed-p-2{padding:.5rem}.ed-p-2\\.5{padding:.625rem}.ed-p-4{padding:1rem}.ed-p-5{padding:1.25rem}.ed-px-2{padding-left:.5rem;padding-right:.5rem}.ed-px-4{padding-left:1rem;padding-right:1rem}.ed-px-5{padding-left:1.25rem;padding-right:1.25rem}.ed-px-6{padding-left:1.5rem;padding-right:1.5rem}.ed-px-7{padding-left:1.75rem;padding-right:1.75rem}.ed-px-\\[25px\\]{padding-left:25px;padding-right:25px}.ed-py-1{padding-top:.25rem;padding-bottom:.25rem}.ed-py-2{padding-top:.5rem;padding-bottom:.5rem}.ed-py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.ed-py-3{padding-top:.75rem;padding-bottom:.75rem}.ed-py-4{padding-top:1rem;padding-bottom:1rem}.ed-py-5{padding-top:1.25rem;padding-bottom:1.25rem}.ed-py-6{padding-top:1.5rem;padding-bottom:1.5rem}.ed-py-8{padding-top:2rem;padding-bottom:2rem}.ed-py-\\[9px\\]{padding-top:9px;padding-bottom:9px}.ed-pb-1{padding-bottom:.25rem}.ed-pb-2{padding-bottom:.5rem}.ed-pb-5{padding-bottom:1.25rem}.ed-pt-1{padding-top:.25rem}.ed-pt-2\\.5{padding-top:.625rem}.ed-pt-3{padding-top:.75rem}.ed-pt-5{padding-top:1.25rem}.ed-text-left{text-align:left}.ed-text-center{text-align:center}.ed-text-12{font-size:12px}.ed-text-14{font-size:14px}.ed-text-16{font-size:16px}.ed-text-18{font-size:18px}.ed-text-24{font-size:24px}.ed-text-sm{font-size:.875rem;line-height:1.25rem}.ed-font-bold{font-weight:700}.ed-font-medium{font-weight:500}.ed-font-normal{font-weight:400}.ed-font-semibold{font-weight:600}.ed-lowercase{text-transform:lowercase}.ed-leading-none{line-height:1}.ed-text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.ed-text-blue-950{--tw-text-opacity: 1;color:rgb(23 37 84 / var(--tw-text-opacity, 1))}.ed-text-border{--tw-text-opacity: 1;color:rgb(183 183 183 / var(--tw-text-opacity, 1))}.ed-text-border-dark{--tw-text-opacity: 1;color:rgb(59 59 59 / var(--tw-text-opacity, 1))}.ed-text-border-regular{--tw-text-opacity: 1;color:rgb(121 121 121 / var(--tw-text-opacity, 1))}.ed-text-brand{color:var(--ed-brand-color)}.ed-text-brand-link{--tw-text-opacity: 1;color:rgb(0 78 146 / var(--tw-text-opacity, 1))}.ed-text-dark{--tw-text-opacity: 1;color:rgb(33 33 78 / var(--tw-text-opacity, 1))}.ed-text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.ed-text-red{--tw-text-opacity: 1;color:rgb(254 71 91 / var(--tw-text-opacity, 1))}.ed-text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.ed-underline{text-decoration-line:underline}.ed-opacity-0{opacity:0}.ed-opacity-100{opacity:1}.ed-opacity-25{opacity:.25}.ed-opacity-50{opacity:.5}.ed-opacity-75{opacity:.75}.ed-shadow-\\[0_-8px_10px_rgba\\(0\\,0\\,0\\,0\\.02\\)\\]{--tw-shadow: 0 -8px 10px rgba(0,0,0,.02);--tw-shadow-colored: 0 -8px 10px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ed-shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ed-outline-none{outline:2px solid transparent;outline-offset:2px}.ed-transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ed-transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ed-transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ed-delay-150{transition-delay:.15s}.ed-delay-75{transition-delay:75ms}.ed-duration-200{transition-duration:.2s}.ed-duration-300{transition-duration:.3s}.ed-duration-500{transition-duration:.5s}.ed-ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}:root{--ed-brand-color: #00a1e0;--brand-link-color: #004e92;--ed-border-light: #d8e0ed;--ed-border: #b7b7b7;--ed-font-montserrat: "Montserrat";--main-font: "Poppins"}body{font-family:var(--main-font)}input[type=text]:focus{outline:none!important;border-color:#3b3b3b!important}input[type=email]:focus{outline:none!important;border-color:#3b3b3b!important}input[type=password]:focus{outline:none!important;border-color:#3b3b3b!important}textarea:focus{outline:none!important;border-color:#3b3b3b!important}.contactSelectInput .ant-select-selector:hover{border-color:#3b3b3b!important}.workflow_content_wrapping{display:-webkit-box;max-width:100%;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.rc-virtual-list-scrollbar-thumb{display:none!important}.email-select-input .ant-select-selection-item{color:#797979!important}.email-select-input .ant-select-selector{border:none!important}.ant-multi-select-component .ant-select-selection-search{width:200px!important;margin-left:10px!important;margin-inline-start:5px!important}@media screen and (max-width: 768px){.ant-select-selection-search{margin-top:5px!important}}@media screen and (min-width: 768px){.email-select-popup{width:380px!important}}.hide-chart-line ul{display:none!important}.margin-bottom-0{margin-bottom:0!important}.ant-picker-presets>ul>li{padding-top:5px!important;padding-bottom:5px!important}.filter-range-popup-panel>.ant-picker-panel{visibility:hidden!important}.first-letter-capitalize:first-letter{text-transform:capitalize!important}.hide-ant-header .ant-picker-header{display:none!important}.ant-picker-panels .ant-picker-header{border-bottom:none!important}.ant-picker-dropdown .ant-picker-footer{border-top:none!important}.ant-picker-range-arrow{display:none!important}.inline-datepicker-popup>.ant-picker-panel-container{box-shadow:none!important}.ant-picker-panels>*:nth-child(2){display:none}.ant-picker-panels>*:first-child button.ant-picker-header-next-btn{visibility:visible!important}.ant-picker-panels>*:first-child button.ant-picker-header-super-next-btn{visibility:visible!important}.custom-inline-date-range-picke-popup{padding:0}.custom-inline-date-range-picke-popup .ant-picker-panel-container{box-shadow:none!important;background-color:#fff!important}.custom-ok-button .ant-btn-primary{background-color:var(--brand-color)!important;border-color:var(--brand-color)!important}.active-button-style{color:var(--brand-color)}.ant-select{width:100%}.ant-select-selector{border:1px solid #d1d5db;border-radius:.375rem;height:2.5rem}.ant-select-selection-placeholder,.ant-select-selection-item{font-size:.875rem;font-weight:500;color:#4b5563}.ant-select-selector .ant-select-selection-item svg{display:none!important}.ant-select-dropdown{border-radius:.375rem}.tickets_filter_popup .ant-select-item-option-grouped{padding-inline-start:12px!important}.ant_multi_select_tag{background:#f8f9fb!important;border-radius:15px!important;padding:5px 10px!important;display:flex!important;align-items:center!important}.ant-multi-select-component .ant-select-selection-overflow{padding:0 0 5px!important}.ant_multi_select_tag .ant-tag-close-icon{color:red!important;margin-left:5px!important}.ant-popover-content{margin-inline:-10px!important}.ant-popover-content .ant-popover-inner{padding:0!important}.ant-popover-arrow{display:none!important}.ant-tabs-ink-bar{width:0!important;color:#fff!important;background-color:#fff!important}.ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn{color:var(--brand-color)!important}.ant-tabs-card .ant-tabs-nav .ant-tabs-tab{background:none!important}.ant-tabs-card .ant-tabs-nav .ant-tabs-tab-active{background:var(--brand-color)!important;border-radius:10px!important}.ant-tabs-card .ant-tabs-nav .ant-tabs-tab-active .ant-tabs-tab-btn{color:#fff!important}.ant-tabs-card .ant-tabs-nav .ant-tabs-tab-btn{color:#8d91a5}.ant-tabs-tab-btn:hover{color:var(--brand-color)}.ant-tabs-content-holder{border-left:none!important}.ant-select .ant-select-selector{padding:6px}.react-tel-input .form-control{height:38px!important;width:100%!important}.ant-radio-wrapper .ant-radio-input{opacity:1!important}.revert-list-style ol,.revert-list-style ul{list-style:revert;margin-left:40px}.hovered-svg:hover .fill-hover-color{fill:var(--brand-color);stroke:var(--brand-color)}.hovered-svg .fill-hover-color{stroke:#797979}.hovered-svg:hover .fill-with-stroke-color{stroke:var(--brand-color)}.hovered-svg .fill-with-stroke-color{stroke:#797979}.sidebar-active-item .fill-with-stroke-color{stroke:var(--brand-color)}.sidebar-active-item .white-stroke{stroke:#fff}.sidebar-active-item .fill-hover-color{fill:var(--brand-color);stroke:var(--brand-color)}.hovered-svg:hover .white-stroke{stroke:#fff}.custom-radio{display:flex;align-items:center}.custom-radio input{appearance:none;-webkit-appearance:none;-moz-appearance:none;width:18px;height:18px;border-radius:50%;outline:1px solid #797979;border:4px solid #fbfaff;margin-right:8px}.custom-radio input:checked{background-color:var(--brand-color);outline:1px solid var(--brand-color);border:4px solid #fbfaff}.custom-radio input[type=radio]:checked{padding:4px}.ant-drawer .ant-drawer-header{padding:0!important;border-bottom:none!important}.ant-drawer-body{padding:0!important}.ant-drawer-mask{background:#0000000d!important}.ant-drawer-content-wrapper{box-shadow:none!important}.ant-drawer-content,.ant-drawer-wrapper-body{background:#fff}@media screen and (max-width: "768px"){.ant-drawer-content-wrapper .ant-drawer-content{background:transparent}}.ant-picker-input input::-moz-placeholder,.app-select-payrun input::-moz-placeholder{color:#8d91a5!important;font-size:14px!important}.ant-picker-input input::placeholder,.app-select-payrun input::placeholder,.ant-picker-input .ant-picker-suffix svg,.ant-picker-suffix .anticon-calendar svg{color:#8d91a5!important;font-size:14px!important}.ant-picker-input>input[disabled]{color:#21214e!important}.single-date-picker .ant-picker-input input{padding-top:3px;padding-bottom:3px}.single-date-picker .ant-picker-input .ant-picker-suffix{font-size:16px}.ant-picker-presets>ul>li{padding:0!important}.ant-picker{min-width:320px!important}.ant-picker-presets{width:auto!important;max-height:none!important}.ant-picker-presets li{height:auto!important;white-space:nowrap}.ant-picker-dropdown{width:auto!important}.ant-picker-cell-inner{height:40px!important;line-height:40px!important;font-size:16px!important}.ant-picker-input>input{height:30px!important}.custom-date-picker .ant-space{gap:0!important}.ant-select-open div{opacity:.7}.ant-select-selector,.ant-select-selector:focus,.ant-select-selector:active{box-shadow:none!important}.borderless-select .ant-select-selector,.ant-select-selector:focus,.ant-select-selector:active{border:none!important;box-shadow:none!important}.dashboard-top-filter .ant-select-selector,.ant-select-selector:focus,.ant-select-selector:active{border:none!important;box-shadow:none!important;color:var(--brand-link-color)!important}.ant-select-selector:hover,.ant-select-focused .ant-select-selector{border-color:#3b3b3b!important}.dashboard-top-filter .ant-select-selector .ant-select-selection-item,.dashboard-top-filter .ant-select-dropdown .ant-select-item-option-content{color:var(--brand-link-color)!important}.dashboard-top-filter .ant-select-item .ant-select-item-option .ant-select-item-option-active .ant-select-item-option-selected .ant-select-item-option-content{color:var(--brand-link-color)!important;background-color:green!important}.ant-picker-dropdown .css-dev-only-do-not-override-1k979oh .ant-picker-dropdown-range .ant-picker-dropdown-placement-bottomRight{min-width:-moz-max-content!important;min-width:max-content!important;width:40%!important}.ant-picker-presets>ul>li>p{padding:5px 50px 5px 20px!important;font-size:14px!important;font-weight:500!important}.jodit-status-bar__item a{display:none!important}.react-tel-input{position:relative!important}.react-tel-input .country-list .country.highlight,.react-tel-input .country-list .country.highlight:hover{background:#fafbfc!important}.react-tel-input .country-list .country,.react-tel-input .country-list .country:hover{background:#fff!important}.input-phone-number.react-tel-input .form-control{width:100%!important;height:43px!important}.react-tel-input .form-control{padding-left:68px!important;background:transparent!important;width:100%!important;border:1px solid #d8e0ed!important}.react-tel-input .flag-dropdown{background-color:transparent!important;border-right:none!important;border-left:1px solid #d8e0ed!important;border-top:1px solid #d8e0ed!important;border-bottom:1px solid #d8e0ed!important}.react-tel-input .flag-dropdown .selected-flag{padding:0 0 0 15px!important}.react-tel-input .flag-dropdown .selected-flag .arrow{display:none}.react-tel-input .flag-dropdown .selected-flag:after{content:"";position:absolute;top:47%;left:51px;transform:translate(-50%,-50%) rotate(315deg);width:9px;height:9px;border-left:2px solid #3b3b3b!important;border-bottom:2px solid #3b3b3b!important}.word-wrap{word-wrap:break-word}.apexcharts-menu-icon,.apexcharts-reset-icon,.apexcharts-zoom-icon{display:none!important}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}@keyframes openModalFromTop{0%{transform:translateY(-100%)}to{transform:translateY(0)}}.desktop-style-class{animation-name:openModalFromTop;animation-duration:.3s;animation-timing-function:ease-in-out;animation-iteration-count:1}.jodit-workplace{padding:5px!important}.jodit-placeholder{top:5px!important;left:10px!important;font-size:14px!important}.btn_hover_color{position:relative}.btn_hover_color:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;border-radius:inherit;transition:.3s ease}.btn_hover_color:hover:before{background:#0003}@keyframes stripes{0%{background-position:1rem 0}to{background-position:0 0}}.animate-striped{animation:stripes .5s linear infinite;background:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:1rem 1rem}.ant-checkbox-checked .ant-checkbox-inner{background-color:var(--brand-color)!important;border-color:var(--brand-color)!important}.disabled-checkbox-wrapper .ant-checkbox-checked .ant-checkbox-inner{background-color:#b7b7b7!important;border-color:#b7b7b7!important;color:#fff}.disabled-checkbox-wrapper .ant-checkbox-inner:after{border-color:#fff!important}.checkbox-custom .ant-checkbox-checked .ant-checkbox-inner:after{border-color:#fff}.jodit-react-editor.editor-toolbar-bottom .jodit-toolbar__box{position:absolute;bottom:0;left:0;right:0;z-index:10;border-top:1px solid #ccc}.jodit-react-editor{position:relative}.ant-tooltip{z-index:9999999!important}.ant-tooltip-inner{size:12px!important;font-weight:500!important;color:#b7b7b7!important;font-family:var(--font-montserrat);background-color:#fff!important;box-shadow:0 0 15px #0000000f}.ant-tooltip-arrow{display:none!important}.boards-dropdown .ant-select-single{height:auto!important}.boards-dropdown .ant-select-selector{padding:4px 12px!important;border:1px solid #d8e0ed!important;border-radius:8px!important}.boards-dropdown .ant-select-selection-item{font-size:14px!important;font-weight:600!important;color:#797979!important}.boards-dropdown-popup .ant-select-item-option-content{font-size:14px!important;font-weight:600!important;padding:4px 18px!important;border-radius:5px!important}.boards-dropdown-popup .ant-select-item-option-active{font-size:14px!important;font-weight:600!important;color:var(--brand-color)!important;background-color:#e3f2fd!important;padding:4px 12px!important;border-radius:5px!important}.ant-switch-checked{background:var(--brand-color)!important}.hover\\:ed-size-14:hover{width:3.5rem;height:3.5rem}.hover\\:ed-text-border-dark:hover{--tw-text-opacity: 1;color:rgb(59 59 59 / var(--tw-text-opacity, 1))}.disabled\\:ed-bg-brand:disabled{background-color:var(--ed-brand-color)}.disabled\\:ed-opacity-50:disabled{opacity:.5}@media (min-width: 768px){.md\\:ed-bottom-24{bottom:6rem}.md\\:ed-right-6{right:1.5rem}.md\\:ed-h-\\[80vh\\]{height:80vh}.md\\:ed-max-h-\\[704px\\]{max-height:704px}.md\\:ed-w-\\[400px\\]{width:400px}.md\\:ed-max-w-\\[85\\%\\]{max-width:85%}.md\\:ed-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:ed-rounded-\\[10px\\]{border-radius:10px}.md\\:ed-rounded-b-\\[10px\\]{border-bottom-right-radius:10px;border-bottom-left-radius:10px}.md\\:ed-rounded-t-\\[10px\\]{border-top-left-radius:10px;border-top-right-radius:10px}}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- (function(Cn,M){typeof exports=="object"&&typeof module<"u"?M(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],M):(Cn=typeof globalThis<"u"?globalThis:Cn||self,M(Cn.EasyDeskChatWidget={},Cn.React,Cn.ReactDOM))})(this,function(Cn,M,_i){"use strict";var ez=Object.defineProperty;var tz=(Cn,M,_i)=>M in Cn?ez(Cn,M,{enumerable:!0,configurable:!0,writable:!0,value:_i}):Cn[M]=_i;var S6=(Cn,M,_i)=>tz(Cn,typeof M!="symbol"?M+"":M,_i);function C6(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}function T6(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Q=C6(M);var sl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ji(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cd={exports:{}},Ls={},U1;function O6(){if(U1)return Ls;U1=1;/**
2
+ (function(Cn,M){typeof exports=="object"&&typeof module<"u"?M(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],M):(Cn=typeof globalThis<"u"?globalThis:Cn||self,M(Cn.EasyDeskChatWidget={},Cn.React,Cn.ReactDOM))})(this,function(Cn,M,_i){"use strict";var ez=Object.defineProperty;var tz=(Cn,M,_i)=>M in Cn?ez(Cn,M,{enumerable:!0,configurable:!0,writable:!0,value:_i}):Cn[M]=_i;var S6=(Cn,M,_i)=>tz(Cn,typeof M!="symbol"?M+"":M,_i);function C6(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}function T6(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const G=C6(M);var sl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ji(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cd={exports:{}},Ls={},U1;function O6(){if(U1)return Ls;U1=1;/**
3
3
  * @license React
4
4
  * react-jsx-runtime.development.js
5
5
  *
@@ -7,81 +7,81 @@
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */return function(){var e=M,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),y=Symbol.iterator,g="@@iterator";function b(B){if(B===null||typeof B!="object")return null;var ge=y&&B[y]||B[g];return typeof ge=="function"?ge:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(B){{for(var ge=arguments.length,Se=new Array(ge>1?ge-1:0),Le=1;Le<ge;Le++)Se[Le-1]=arguments[Le];C("error",B,Se)}}function C(B,ge,Se){{var Le=w.ReactDebugCurrentFrame,it=Le.getStackAddendum();it!==""&&(ge+="%s",Se=Se.concat([it]));var at=Se.map(function(We){return String(We)});at.unshift("Warning: "+ge),Function.prototype.apply.call(console[B],console,at)}}var T=!1,_=!1,x=!1,k=!1,A=!1,L;L=Symbol.for("react.module.reference");function N(B){return!!(typeof B=="string"||typeof B=="function"||B===r||B===a||A||B===i||B===f||B===d||k||B===m||T||_||x||typeof B=="object"&&B!==null&&(B.$$typeof===p||B.$$typeof===h||B.$$typeof===o||B.$$typeof===u||B.$$typeof===l||B.$$typeof===L||B.getModuleId!==void 0))}function F(B,ge,Se){var Le=B.displayName;if(Le)return Le;var it=ge.displayName||ge.name||"";return it!==""?Se+"("+it+")":Se}function H(B){return B.displayName||"Context"}function V(B){if(B==null)return null;if(typeof B.tag=="number"&&S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof B=="function")return B.displayName||B.name||null;if(typeof B=="string")return B;switch(B){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case f:return"Suspense";case d:return"SuspenseList"}if(typeof B=="object")switch(B.$$typeof){case u:var ge=B;return H(ge)+".Consumer";case o:var Se=B;return H(Se._context)+".Provider";case l:return F(B,B.render,"ForwardRef");case h:var Le=B.displayName||null;return Le!==null?Le:V(B.type)||"Memo";case p:{var it=B,at=it._payload,We=it._init;try{return V(We(at))}catch{return null}}}return null}var D=Object.assign,j=0,z,Y,q,J,$,K,ae;function ie(){}ie.__reactDisabledLog=!0;function te(){{if(j===0){z=console.log,Y=console.info,q=console.warn,J=console.error,$=console.group,K=console.groupCollapsed,ae=console.groupEnd;var B={configurable:!0,enumerable:!0,value:ie,writable:!0};Object.defineProperties(console,{info:B,log:B,warn:B,error:B,group:B,groupCollapsed:B,groupEnd:B})}j++}}function fe(){{if(j--,j===0){var B={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},B,{value:z}),info:D({},B,{value:Y}),warn:D({},B,{value:q}),error:D({},B,{value:J}),group:D({},B,{value:$}),groupCollapsed:D({},B,{value:K}),groupEnd:D({},B,{value:ae})})}j<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var le=w.ReactCurrentDispatcher,ve;function _e(B,ge,Se){{if(ve===void 0)try{throw Error()}catch(it){var Le=it.stack.trim().match(/\n( *(at )?)/);ve=Le&&Le[1]||""}return`
11
- `+ve+B}}var be=!1,we;{var ne=typeof WeakMap=="function"?WeakMap:Map;we=new ne}function W(B,ge){if(!B||be)return"";{var Se=we.get(B);if(Se!==void 0)return Se}var Le;be=!0;var it=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var at;at=le.current,le.current=null,te();try{if(ge){var We=function(){throw Error()};if(Object.defineProperty(We.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(We,[])}catch(Mt){Le=Mt}Reflect.construct(B,[],We)}else{try{We.call()}catch(Mt){Le=Mt}B.call(We.prototype)}}else{try{throw Error()}catch(Mt){Le=Mt}B()}}catch(Mt){if(Mt&&Le&&typeof Mt.stack=="string"){for(var qe=Mt.stack.split(`
10
+ */return function(){var e=M,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),y=Symbol.iterator,g="@@iterator";function b(B){if(B===null||typeof B!="object")return null;var ye=y&&B[y]||B[g];return typeof ye=="function"?ye:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(B){{for(var ye=arguments.length,Se=new Array(ye>1?ye-1:0),Le=1;Le<ye;Le++)Se[Le-1]=arguments[Le];C("error",B,Se)}}function C(B,ye,Se){{var Le=w.ReactDebugCurrentFrame,it=Le.getStackAddendum();it!==""&&(ye+="%s",Se=Se.concat([it]));var at=Se.map(function(Be){return String(Be)});at.unshift("Warning: "+ye),Function.prototype.apply.call(console[B],console,at)}}var T=!1,_=!1,x=!1,k=!1,A=!1,L;L=Symbol.for("react.module.reference");function N(B){return!!(typeof B=="string"||typeof B=="function"||B===r||B===a||A||B===i||B===f||B===d||k||B===m||T||_||x||typeof B=="object"&&B!==null&&(B.$$typeof===p||B.$$typeof===h||B.$$typeof===o||B.$$typeof===u||B.$$typeof===l||B.$$typeof===L||B.getModuleId!==void 0))}function F(B,ye,Se){var Le=B.displayName;if(Le)return Le;var it=ye.displayName||ye.name||"";return it!==""?Se+"("+it+")":Se}function H(B){return B.displayName||"Context"}function V(B){if(B==null)return null;if(typeof B.tag=="number"&&S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof B=="function")return B.displayName||B.name||null;if(typeof B=="string")return B;switch(B){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case f:return"Suspense";case d:return"SuspenseList"}if(typeof B=="object")switch(B.$$typeof){case u:var ye=B;return H(ye)+".Consumer";case o:var Se=B;return H(Se._context)+".Provider";case l:return F(B,B.render,"ForwardRef");case h:var Le=B.displayName||null;return Le!==null?Le:V(B.type)||"Memo";case p:{var it=B,at=it._payload,Be=it._init;try{return V(Be(at))}catch{return null}}}return null}var D=Object.assign,j=0,z,Q,q,J,$,Y,ae;function ie(){}ie.__reactDisabledLog=!0;function te(){{if(j===0){z=console.log,Q=console.info,q=console.warn,J=console.error,$=console.group,Y=console.groupCollapsed,ae=console.groupEnd;var B={configurable:!0,enumerable:!0,value:ie,writable:!0};Object.defineProperties(console,{info:B,log:B,warn:B,error:B,group:B,groupCollapsed:B,groupEnd:B})}j++}}function fe(){{if(j--,j===0){var B={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},B,{value:z}),info:D({},B,{value:Q}),warn:D({},B,{value:q}),error:D({},B,{value:J}),group:D({},B,{value:$}),groupCollapsed:D({},B,{value:Y}),groupEnd:D({},B,{value:ae})})}j<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var le=w.ReactCurrentDispatcher,me;function _e(B,ye,Se){{if(me===void 0)try{throw Error()}catch(it){var Le=it.stack.trim().match(/\n( *(at )?)/);me=Le&&Le[1]||""}return`
11
+ `+me+B}}var be=!1,ne;{var ve=typeof WeakMap=="function"?WeakMap:Map;ne=new ve}function K(B,ye){if(!B||be)return"";{var Se=ne.get(B);if(Se!==void 0)return Se}var Le;be=!0;var it=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var at;at=le.current,le.current=null,te();try{if(ye){var Be=function(){throw Error()};if(Object.defineProperty(Be.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Be,[])}catch(Ft){Le=Ft}Reflect.construct(B,[],Be)}else{try{Be.call()}catch(Ft){Le=Ft}B.call(Be.prototype)}}else{try{throw Error()}catch(Ft){Le=Ft}B()}}catch(Ft){if(Ft&&Le&&typeof Ft.stack=="string"){for(var qe=Ft.stack.split(`
12
12
  `),zt=Le.stack.split(`
13
- `),yt=qe.length-1,Dt=zt.length-1;yt>=1&&Dt>=0&&qe[yt]!==zt[Dt];)Dt--;for(;yt>=1&&Dt>=0;yt--,Dt--)if(qe[yt]!==zt[Dt]){if(yt!==1||Dt!==1)do if(yt--,Dt--,Dt<0||qe[yt]!==zt[Dt]){var vt=`
14
- `+qe[yt].replace(" at new "," at ");return B.displayName&&vt.includes("<anonymous>")&&(vt=vt.replace("<anonymous>",B.displayName)),typeof B=="function"&&we.set(B,vt),vt}while(yt>=1&&Dt>=0);break}}}finally{be=!1,le.current=at,fe(),Error.prepareStackTrace=it}var Nn=B?B.displayName||B.name:"",cr=Nn?_e(Nn):"";return typeof B=="function"&&we.set(B,cr),cr}function ye(B,ge,Se){return W(B,!1)}function ue(B){var ge=B.prototype;return!!(ge&&ge.isReactComponent)}function Te(B,ge,Se){if(B==null)return"";if(typeof B=="function")return W(B,ue(B));if(typeof B=="string")return _e(B);switch(B){case f:return _e("Suspense");case d:return _e("SuspenseList")}if(typeof B=="object")switch(B.$$typeof){case l:return ye(B.render);case h:return Te(B.type,ge,Se);case p:{var Le=B,it=Le._payload,at=Le._init;try{return Te(at(it),ge,Se)}catch{}}}return""}var Re=Object.prototype.hasOwnProperty,Ze={},ft=w.ReactDebugCurrentFrame;function dt(B){if(B){var ge=B._owner,Se=Te(B.type,B._source,ge?ge.type:null);ft.setExtraStackFrame(Se)}else ft.setExtraStackFrame(null)}function kt(B,ge,Se,Le,it){{var at=Function.call.bind(Re);for(var We in B)if(at(B,We)){var qe=void 0;try{if(typeof B[We]!="function"){var zt=Error((Le||"React class")+": "+Se+" type `"+We+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof B[We]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw zt.name="Invariant Violation",zt}qe=B[We](ge,We,Le,Se,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(yt){qe=yt}qe&&!(qe instanceof Error)&&(dt(it),S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Le||"React class",Se,We,typeof qe),dt(null)),qe instanceof Error&&!(qe.message in Ze)&&(Ze[qe.message]=!0,dt(it),S("Failed %s type: %s",Se,qe.message),dt(null))}}}var Ve=Array.isArray;function et(B){return Ve(B)}function Ee(B){{var ge=typeof Symbol=="function"&&Symbol.toStringTag,Se=ge&&B[Symbol.toStringTag]||B.constructor.name||"Object";return Se}}function Rt(B){try{return Tt(B),!1}catch{return!0}}function Tt(B){return""+B}function Yt(B){if(Rt(B))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ee(B)),Tt(B)}var un=w.ReactCurrentOwner,Kt={key:!0,ref:!0,__self:!0,__source:!0},Be,Jt;function At(B){if(Re.call(B,"ref")){var ge=Object.getOwnPropertyDescriptor(B,"ref").get;if(ge&&ge.isReactWarning)return!1}return B.ref!==void 0}function mt(B){if(Re.call(B,"key")){var ge=Object.getOwnPropertyDescriptor(B,"key").get;if(ge&&ge.isReactWarning)return!1}return B.key!==void 0}function Ut(B,ge){typeof B.ref=="string"&&un.current}function mn(B,ge){{var Se=function(){Be||(Be=!0,S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ge))};Se.isReactWarning=!0,Object.defineProperty(B,"key",{get:Se,configurable:!0})}}function xi(B,ge){{var Se=function(){Jt||(Jt=!0,S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ge))};Se.isReactWarning=!0,Object.defineProperty(B,"ref",{get:Se,configurable:!0})}}var ur=function(B,ge,Se,Le,it,at,We){var qe={$$typeof:t,type:B,key:ge,ref:Se,props:We,_owner:at};return qe._store={},Object.defineProperty(qe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(qe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Le}),Object.defineProperty(qe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:it}),Object.freeze&&(Object.freeze(qe.props),Object.freeze(qe)),qe};function gn(B,ge,Se,Le,it){{var at,We={},qe=null,zt=null;Se!==void 0&&(Yt(Se),qe=""+Se),mt(ge)&&(Yt(ge.key),qe=""+ge.key),At(ge)&&(zt=ge.ref,Ut(ge,it));for(at in ge)Re.call(ge,at)&&!Kt.hasOwnProperty(at)&&(We[at]=ge[at]);if(B&&B.defaultProps){var yt=B.defaultProps;for(at in yt)We[at]===void 0&&(We[at]=yt[at])}if(qe||zt){var Dt=typeof B=="function"?B.displayName||B.name||"Unknown":B;qe&&mn(We,Dt),zt&&xi(We,Dt)}return ur(B,qe,zt,it,Le,un.current,We)}}var Qn=w.ReactCurrentOwner,sa=w.ReactDebugCurrentFrame;function lr(B){if(B){var ge=B._owner,Se=Te(B.type,B._source,ge?ge.type:null);sa.setExtraStackFrame(Se)}else sa.setExtraStackFrame(null)}var si;si=!1;function ui(B){return typeof B=="object"&&B!==null&&B.$$typeof===t}function $n(){{if(Qn.current){var B=V(Qn.current.type);if(B)return`
13
+ `),mt=qe.length-1,Lt=zt.length-1;mt>=1&&Lt>=0&&qe[mt]!==zt[Lt];)Lt--;for(;mt>=1&&Lt>=0;mt--,Lt--)if(qe[mt]!==zt[Lt]){if(mt!==1||Lt!==1)do if(mt--,Lt--,Lt<0||qe[mt]!==zt[Lt]){var ht=`
14
+ `+qe[mt].replace(" at new "," at ");return B.displayName&&ht.includes("<anonymous>")&&(ht=ht.replace("<anonymous>",B.displayName)),typeof B=="function"&&ne.set(B,ht),ht}while(mt>=1&&Lt>=0);break}}}finally{be=!1,le.current=at,fe(),Error.prepareStackTrace=it}var Nn=B?B.displayName||B.name:"",cr=Nn?_e(Nn):"";return typeof B=="function"&&ne.set(B,cr),cr}function we(B,ye,Se){return K(B,!1)}function ue(B){var ye=B.prototype;return!!(ye&&ye.isReactComponent)}function Te(B,ye,Se){if(B==null)return"";if(typeof B=="function")return K(B,ue(B));if(typeof B=="string")return _e(B);switch(B){case f:return _e("Suspense");case d:return _e("SuspenseList")}if(typeof B=="object")switch(B.$$typeof){case l:return we(B.render);case h:return Te(B.type,ye,Se);case p:{var Le=B,it=Le._payload,at=Le._init;try{return Te(at(it),ye,Se)}catch{}}}return""}var Ie=Object.prototype.hasOwnProperty,Je={},xt=w.ReactDebugCurrentFrame;function Ot(B){if(B){var ye=B._owner,Se=Te(B.type,B._source,ye?ye.type:null);xt.setExtraStackFrame(Se)}else xt.setExtraStackFrame(null)}function Vt(B,ye,Se,Le,it){{var at=Function.call.bind(Ie);for(var Be in B)if(at(B,Be)){var qe=void 0;try{if(typeof B[Be]!="function"){var zt=Error((Le||"React class")+": "+Se+" type `"+Be+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof B[Be]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw zt.name="Invariant Violation",zt}qe=B[Be](ye,Be,Le,Se,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(mt){qe=mt}qe&&!(qe instanceof Error)&&(Ot(it),S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Le||"React class",Se,Be,typeof qe),Ot(null)),qe instanceof Error&&!(qe.message in Je)&&(Je[qe.message]=!0,Ot(it),S("Failed %s type: %s",Se,qe.message),Ot(null))}}}var Me=Array.isArray;function et(B){return Me(B)}function Ee(B){{var ye=typeof Symbol=="function"&&Symbol.toStringTag,Se=ye&&B[Symbol.toStringTag]||B.constructor.name||"Object";return Se}}function jt(B){try{return Ct(B),!1}catch{return!0}}function Ct(B){return""+B}function Yt(B){if(jt(B))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ee(B)),Ct(B)}var un=w.ReactCurrentOwner,Kt={key:!0,ref:!0,__self:!0,__source:!0},He,Jt;function kt(B){if(Ie.call(B,"ref")){var ye=Object.getOwnPropertyDescriptor(B,"ref").get;if(ye&&ye.isReactWarning)return!1}return B.ref!==void 0}function pt(B){if(Ie.call(B,"key")){var ye=Object.getOwnPropertyDescriptor(B,"key").get;if(ye&&ye.isReactWarning)return!1}return B.key!==void 0}function Ut(B,ye){typeof B.ref=="string"&&un.current}function mn(B,ye){{var Se=function(){He||(He=!0,S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ye))};Se.isReactWarning=!0,Object.defineProperty(B,"key",{get:Se,configurable:!0})}}function xi(B,ye){{var Se=function(){Jt||(Jt=!0,S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ye))};Se.isReactWarning=!0,Object.defineProperty(B,"ref",{get:Se,configurable:!0})}}var ur=function(B,ye,Se,Le,it,at,Be){var qe={$$typeof:t,type:B,key:ye,ref:Se,props:Be,_owner:at};return qe._store={},Object.defineProperty(qe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(qe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Le}),Object.defineProperty(qe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:it}),Object.freeze&&(Object.freeze(qe.props),Object.freeze(qe)),qe};function gn(B,ye,Se,Le,it){{var at,Be={},qe=null,zt=null;Se!==void 0&&(Yt(Se),qe=""+Se),pt(ye)&&(Yt(ye.key),qe=""+ye.key),kt(ye)&&(zt=ye.ref,Ut(ye,it));for(at in ye)Ie.call(ye,at)&&!Kt.hasOwnProperty(at)&&(Be[at]=ye[at]);if(B&&B.defaultProps){var mt=B.defaultProps;for(at in mt)Be[at]===void 0&&(Be[at]=mt[at])}if(qe||zt){var Lt=typeof B=="function"?B.displayName||B.name||"Unknown":B;qe&&mn(Be,Lt),zt&&xi(Be,Lt)}return ur(B,qe,zt,it,Le,un.current,Be)}}var Qn=w.ReactCurrentOwner,sa=w.ReactDebugCurrentFrame;function lr(B){if(B){var ye=B._owner,Se=Te(B.type,B._source,ye?ye.type:null);sa.setExtraStackFrame(Se)}else sa.setExtraStackFrame(null)}var si;si=!1;function ui(B){return typeof B=="object"&&B!==null&&B.$$typeof===t}function $n(){{if(Qn.current){var B=V(Qn.current.type);if(B)return`
15
15
 
16
- Check the render method of \``+B+"`."}return""}}function En(B){return""}var li={};function cn(B){{var ge=$n();if(!ge){var Se=typeof B=="string"?B:B.displayName||B.name;Se&&(ge=`
16
+ Check the render method of \``+B+"`."}return""}}function En(B){return""}var li={};function cn(B){{var ye=$n();if(!ye){var Se=typeof B=="string"?B:B.displayName||B.name;Se&&(ye=`
17
17
 
18
- Check the top-level render call using <`+Se+">.")}return ge}}function Yn(B,ge){{if(!B._store||B._store.validated||B.key!=null)return;B._store.validated=!0;var Se=cn(ge);if(li[Se])return;li[Se]=!0;var Le="";B&&B._owner&&B._owner!==Qn.current&&(Le=" It was passed a child from "+V(B._owner.type)+"."),lr(B),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Se,Le),lr(null)}}function gt(B,ge){{if(typeof B!="object")return;if(et(B))for(var Se=0;Se<B.length;Se++){var Le=B[Se];ui(Le)&&Yn(Le,ge)}else if(ui(B))B._store&&(B._store.validated=!0);else if(B){var it=b(B);if(typeof it=="function"&&it!==B.entries)for(var at=it.call(B),We;!(We=at.next()).done;)ui(We.value)&&Yn(We.value,ge)}}}function Pt(B){{var ge=B.type;if(ge==null||typeof ge=="string")return;var Se;if(typeof ge=="function")Se=ge.propTypes;else if(typeof ge=="object"&&(ge.$$typeof===l||ge.$$typeof===h))Se=ge.propTypes;else return;if(Se){var Le=V(ge);kt(Se,B.props,"prop",Le,B)}else if(ge.PropTypes!==void 0&&!si){si=!0;var it=V(ge);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",it||"Unknown")}typeof ge.getDefaultProps=="function"&&!ge.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Vn(B){{for(var ge=Object.keys(B.props),Se=0;Se<ge.length;Se++){var Le=ge[Se];if(Le!=="children"&&Le!=="key"){lr(B),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Le),lr(null);break}}B.ref!==null&&(lr(B),S("Invalid attribute `ref` supplied to `React.Fragment`."),lr(null))}}var Kn={};function ci(B,ge,Se,Le,it,at){{var We=N(B);if(!We){var qe="";(B===void 0||typeof B=="object"&&B!==null&&Object.keys(B).length===0)&&(qe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var zt=En();zt?qe+=zt:qe+=$n();var yt;B===null?yt="null":et(B)?yt="array":B!==void 0&&B.$$typeof===t?(yt="<"+(V(B.type)||"Unknown")+" />",qe=" Did you accidentally export a JSX literal instead of a component?"):yt=typeof B,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",yt,qe)}var Dt=gn(B,ge,Se,it,at);if(Dt==null)return Dt;if(We){var vt=ge.children;if(vt!==void 0)if(Le)if(et(vt)){for(var Nn=0;Nn<vt.length;Nn++)gt(vt[Nn],B);Object.freeze&&Object.freeze(vt)}else S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else gt(vt,B)}if(Re.call(ge,"key")){var cr=V(B),Mt=Object.keys(ge).filter(function(la){return la!=="key"}),fi=Mt.length>0?"{key: someKey, "+Mt.join(": ..., ")+": ...}":"{key: someKey}";if(!Kn[cr+fi]){var Ga=Mt.length>0?"{"+Mt.join(": ..., ")+": ...}":"{}";S(`A props object containing a "key" prop is being spread into JSX:
18
+ Check the top-level render call using <`+Se+">.")}return ye}}function Yn(B,ye){{if(!B._store||B._store.validated||B.key!=null)return;B._store.validated=!0;var Se=cn(ye);if(li[Se])return;li[Se]=!0;var Le="";B&&B._owner&&B._owner!==Qn.current&&(Le=" It was passed a child from "+V(B._owner.type)+"."),lr(B),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Se,Le),lr(null)}}function vt(B,ye){{if(typeof B!="object")return;if(et(B))for(var Se=0;Se<B.length;Se++){var Le=B[Se];ui(Le)&&Yn(Le,ye)}else if(ui(B))B._store&&(B._store.validated=!0);else if(B){var it=b(B);if(typeof it=="function"&&it!==B.entries)for(var at=it.call(B),Be;!(Be=at.next()).done;)ui(Be.value)&&Yn(Be.value,ye)}}}function Rt(B){{var ye=B.type;if(ye==null||typeof ye=="string")return;var Se;if(typeof ye=="function")Se=ye.propTypes;else if(typeof ye=="object"&&(ye.$$typeof===l||ye.$$typeof===h))Se=ye.propTypes;else return;if(Se){var Le=V(ye);Vt(Se,B.props,"prop",Le,B)}else if(ye.PropTypes!==void 0&&!si){si=!0;var it=V(ye);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",it||"Unknown")}typeof ye.getDefaultProps=="function"&&!ye.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Vn(B){{for(var ye=Object.keys(B.props),Se=0;Se<ye.length;Se++){var Le=ye[Se];if(Le!=="children"&&Le!=="key"){lr(B),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Le),lr(null);break}}B.ref!==null&&(lr(B),S("Invalid attribute `ref` supplied to `React.Fragment`."),lr(null))}}var Kn={};function ci(B,ye,Se,Le,it,at){{var Be=N(B);if(!Be){var qe="";(B===void 0||typeof B=="object"&&B!==null&&Object.keys(B).length===0)&&(qe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var zt=En();zt?qe+=zt:qe+=$n();var mt;B===null?mt="null":et(B)?mt="array":B!==void 0&&B.$$typeof===t?(mt="<"+(V(B.type)||"Unknown")+" />",qe=" Did you accidentally export a JSX literal instead of a component?"):mt=typeof B,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",mt,qe)}var Lt=gn(B,ye,Se,it,at);if(Lt==null)return Lt;if(Be){var ht=ye.children;if(ht!==void 0)if(Le)if(et(ht)){for(var Nn=0;Nn<ht.length;Nn++)vt(ht[Nn],B);Object.freeze&&Object.freeze(ht)}else S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else vt(ht,B)}if(Ie.call(ye,"key")){var cr=V(B),Ft=Object.keys(ye).filter(function(la){return la!=="key"}),fi=Ft.length>0?"{key: someKey, "+Ft.join(": ..., ")+": ...}":"{key: someKey}";if(!Kn[cr+fi]){var Ga=Ft.length>0?"{"+Ft.join(": ..., ")+": ...}":"{}";S(`A props object containing a "key" prop is being spread into JSX:
19
19
  let props = %s;
20
20
  <%s {...props} />
21
21
  React keys must be passed directly to JSX without using spread:
22
22
  let props = %s;
23
- <%s key={someKey} {...props} />`,fi,cr,Ga,cr),Kn[cr+fi]=!0}}return B===r?Vn(Dt):Pt(Dt),Dt}}function yn(B,ge,Se){return ci(B,ge,Se,!0)}function ua(B,ge,Se){return ci(B,ge,Se,!1)}var Ci=ua,kr=yn;Ls.Fragment=r,Ls.jsx=Ci,Ls.jsxs=kr}(),Ls}var z1;function H1(){return z1||(z1=1,cd.exports=O6()),cd.exports}var O=H1(),ul={},B1;function k6(){if(B1)return ul;B1=1;var e=_i;{var t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;ul.createRoot=function(n,r){t.usingClientEntryPoint=!0;try{return e.createRoot(n,r)}finally{t.usingClientEntryPoint=!1}},ul.hydrateRoot=function(n,r,i){t.usingClientEntryPoint=!0;try{return e.hydrateRoot(n,r,i)}finally{t.usingClientEntryPoint=!1}}}return ul}var R6=k6(),fd=function(e,t){return fd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},fd(e,t)};function yr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");fd(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var X=function(){return X=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},X.apply(this,arguments)};function br(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function $i(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function u(d){try{f(r.next(d))}catch(h){o(h)}}function l(d){try{f(r.throw(d))}catch(h){o(h)}}function f(d){d.done?a(d.value):i(d.value).then(u,l)}f((r=r.apply(e,t||[])).next())})}function Vi(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=u(0),o.throw=u(1),o.return=u(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(f){return function(d){return l([f,d])}}function l(f){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,f[0]&&(n=0)),n;)try{if(r=1,i&&(a=f[0]&2?i.return:f[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;switch(i=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,i=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){n.label=f[1];break}if(f[0]===6&&n.label<a[1]){n.label=a[1],a=f;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(f);break}a[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(d){f=[6,d],i=0}finally{r=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function Tn(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var dd="Invariant Violation",W1=Object.setPrototypeOf,A6=W1===void 0?function(e,t){return e.__proto__=t,e}:W1,G1=function(e){yr(t,e);function t(n){n===void 0&&(n=dd);var r=e.call(this,typeof n=="number"?dd+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=dd,A6(r,t.prototype),r}return t}(Error);function Ea(e,t){if(!e)throw new G1(t)}var Q1=["debug","log","warn","error","silent"],P6=Q1.indexOf("log");function ll(e){return function(){if(Q1.indexOf(e)>=P6){var t=console[e]||console.log;return t.apply(console,arguments)}}}(function(e){e.debug=ll("debug"),e.log=ll("log"),e.warn=ll("warn"),e.error=ll("error")})(Ea||(Ea={}));var hd="3.13.8";function $r(e){try{return e()}catch{}}const pd=$r(function(){return globalThis})||$r(function(){return window})||$r(function(){return self})||$r(function(){return global})||$r(function(){return $r.constructor("return this")()});var Y1=new Map;function vd(e){var t=Y1.get(e)||1;return Y1.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function K1(e,t){t===void 0&&(t=0);var n=vd("stringifyForDisplay");return JSON.stringify(e,function(r,i){return i===void 0?n:i},t).split(JSON.stringify(n)).join("<undefined>")}function cl(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(typeof t=="number"){var i=t;t=md(i),t||(t=gd(i,n),n=[])}e.apply(void 0,[t].concat(n))}}var Ce=Object.assign(function(t,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];t||Ea(t,md(n,r)||gd(n,r))},{debug:cl(Ea.debug),log:cl(Ea.log),warn:cl(Ea.warn),error:cl(Ea.error)});function Fn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new G1(md(e,t)||gd(e,t))}var X1=Symbol.for("ApolloErrorMessageHandler_"+hd);function Z1(e){if(typeof e=="string")return e;try{return K1(e,2).slice(0,1e3)}catch{return"<non-serializable>"}}function md(e,t){if(t===void 0&&(t=[]),!!e)return pd[X1]&&pd[X1](e,t.map(Z1))}function gd(e,t){if(t===void 0&&(t=[]),!!e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:hd,message:e,args:t.map(Z1)})))}function N6(e,t){if(!!!e)throw new Error(t)}const J1={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},I6=new Set(Object.keys(J1));function e0(e){const t=e==null?void 0:e.kind;return typeof t=="string"&&I6.has(t)}var t0;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(t0||(t0={}));var $t;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})($t||($t={}));function n0(e){return e===9||e===32}function L6(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=r.length===1,a=r.length>1&&r.slice(1).every(m=>m.length===0||n0(m.charCodeAt(0))),o=n.endsWith('\\"""'),u=e.endsWith('"')&&!o,l=e.endsWith("\\"),f=u||l,d=!i||e.length>70||f||a||o;let h="";const p=i&&n0(e.charCodeAt(0));return(d&&!p||a)&&(h+=`
23
+ <%s key={someKey} {...props} />`,fi,cr,Ga,cr),Kn[cr+fi]=!0}}return B===r?Vn(Lt):Rt(Lt),Lt}}function yn(B,ye,Se){return ci(B,ye,Se,!0)}function ua(B,ye,Se){return ci(B,ye,Se,!1)}var Ci=ua,kr=yn;Ls.Fragment=r,Ls.jsx=Ci,Ls.jsxs=kr}(),Ls}var z1;function H1(){return z1||(z1=1,cd.exports=O6()),cd.exports}var O=H1(),ul={},B1;function k6(){if(B1)return ul;B1=1;var e=_i;{var t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;ul.createRoot=function(n,r){t.usingClientEntryPoint=!0;try{return e.createRoot(n,r)}finally{t.usingClientEntryPoint=!1}},ul.hydrateRoot=function(n,r,i){t.usingClientEntryPoint=!0;try{return e.hydrateRoot(n,r,i)}finally{t.usingClientEntryPoint=!1}}}return ul}var R6=k6(),fd=function(e,t){return fd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},fd(e,t)};function yr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");fd(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var X=function(){return X=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},X.apply(this,arguments)};function br(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function $i(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function u(d){try{f(r.next(d))}catch(h){o(h)}}function l(d){try{f(r.throw(d))}catch(h){o(h)}}function f(d){d.done?a(d.value):i(d.value).then(u,l)}f((r=r.apply(e,t||[])).next())})}function Vi(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=u(0),o.throw=u(1),o.return=u(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(f){return function(d){return l([f,d])}}function l(f){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,f[0]&&(n=0)),n;)try{if(r=1,i&&(a=f[0]&2?i.return:f[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;switch(i=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,i=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){n.label=f[1];break}if(f[0]===6&&n.label<a[1]){n.label=a[1],a=f;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(f);break}a[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(d){f=[6,d],i=0}finally{r=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function Tn(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var dd="Invariant Violation",W1=Object.setPrototypeOf,A6=W1===void 0?function(e,t){return e.__proto__=t,e}:W1,G1=function(e){yr(t,e);function t(n){n===void 0&&(n=dd);var r=e.call(this,typeof n=="number"?dd+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=dd,A6(r,t.prototype),r}return t}(Error);function Ea(e,t){if(!e)throw new G1(t)}var Q1=["debug","log","warn","error","silent"],P6=Q1.indexOf("log");function ll(e){return function(){if(Q1.indexOf(e)>=P6){var t=console[e]||console.log;return t.apply(console,arguments)}}}(function(e){e.debug=ll("debug"),e.log=ll("log"),e.warn=ll("warn"),e.error=ll("error")})(Ea||(Ea={}));var hd="3.13.8";function $r(e){try{return e()}catch{}}const pd=$r(function(){return globalThis})||$r(function(){return window})||$r(function(){return self})||$r(function(){return global})||$r(function(){return $r.constructor("return this")()});var Y1=new Map;function vd(e){var t=Y1.get(e)||1;return Y1.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function K1(e,t){t===void 0&&(t=0);var n=vd("stringifyForDisplay");return JSON.stringify(e,function(r,i){return i===void 0?n:i},t).split(JSON.stringify(n)).join("<undefined>")}function cl(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(typeof t=="number"){var i=t;t=md(i),t||(t=gd(i,n),n=[])}e.apply(void 0,[t].concat(n))}}var Ce=Object.assign(function(t,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];t||Ea(t,md(n,r)||gd(n,r))},{debug:cl(Ea.debug),log:cl(Ea.log),warn:cl(Ea.warn),error:cl(Ea.error)});function Fn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new G1(md(e,t)||gd(e,t))}var X1=Symbol.for("ApolloErrorMessageHandler_"+hd);function Z1(e){if(typeof e=="string")return e;try{return K1(e,2).slice(0,1e3)}catch{return"<non-serializable>"}}function md(e,t){if(t===void 0&&(t=[]),!!e)return pd[X1]&&pd[X1](e,t.map(Z1))}function gd(e,t){if(t===void 0&&(t=[]),!!e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:hd,message:e,args:t.map(Z1)})))}function N6(e,t){if(!!!e)throw new Error(t)}const J1={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},I6=new Set(Object.keys(J1));function e0(e){const t=e==null?void 0:e.kind;return typeof t=="string"&&I6.has(t)}var t0;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(t0||(t0={}));var Mt;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(Mt||(Mt={}));function n0(e){return e===9||e===32}function L6(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=r.length===1,a=r.length>1&&r.slice(1).every(m=>m.length===0||n0(m.charCodeAt(0))),o=n.endsWith('\\"""'),u=e.endsWith('"')&&!o,l=e.endsWith("\\"),f=u||l,d=!i||e.length>70||f||a||o;let h="";const p=i&&n0(e.charCodeAt(0));return(d&&!p||a)&&(h+=`
24
24
  `),h+=n,(d||f)&&(h+=`
25
- `),'"""'+h+'"""'}const F6=10,r0=2;function D6(e){return fl(e,[])}function fl(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return M6(e,t);default:return String(e)}}function M6(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(j6(e)){const r=e.toJSON();if(r!==e)return typeof r=="string"?r:fl(r,n)}else if(Array.isArray(e))return V6(e,n);return $6(e,n)}function j6(e){return typeof e.toJSON=="function"}function $6(e,t){const n=Object.entries(e);return n.length===0?"{}":t.length>r0?"["+q6(e)+"]":"{ "+n.map(([i,a])=>i+": "+fl(a,t)).join(", ")+" }"}function V6(e,t){if(e.length===0)return"[]";if(t.length>r0)return"[Array]";const n=Math.min(F6,e.length),r=e.length-n,i=[];for(let a=0;a<n;++a)i.push(fl(e[a],t));return r===1?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function q6(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}function U6(e){return`"${e.replace(z6,H6)}"`}const z6=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function H6(e){return B6[e.charCodeAt(0)]}const B6=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],dl=Object.freeze({});function Vr(e,t,n=J1){const r=new Map;for(const w of Object.values($t))r.set(w,W6(t,w));let i,a=Array.isArray(e),o=[e],u=-1,l=[],f=e,d,h;const p=[],m=[];do{u++;const w=u===o.length,S=w&&l.length!==0;if(w){if(d=m.length===0?void 0:p[p.length-1],f=h,h=m.pop(),S)if(a){f=f.slice();let T=0;for(const[_,x]of l){const k=_-T;x===null?(f.splice(k,1),T++):f[k]=x}}else{f={...f};for(const[T,_]of l)f[T]=_}u=i.index,o=i.keys,l=i.edits,a=i.inArray,i=i.prev}else if(h){if(d=a?u:o[u],f=h[d],f==null)continue;p.push(d)}let C;if(!Array.isArray(f)){var y,g;e0(f)||N6(!1,`Invalid AST Node: ${D6(f)}.`);const T=w?(y=r.get(f.kind))===null||y===void 0?void 0:y.leave:(g=r.get(f.kind))===null||g===void 0?void 0:g.enter;if(C=T==null?void 0:T.call(t,f,d,h,p,m),C===dl)break;if(C===!1){if(!w){p.pop();continue}}else if(C!==void 0&&(l.push([d,C]),!w))if(e0(C))f=C;else{p.pop();continue}}if(C===void 0&&S&&l.push([d,f]),w)p.pop();else{var b;i={inArray:a,index:u,keys:o,edits:l,prev:i},a=Array.isArray(f),o=a?f:(b=n[f.kind])!==null&&b!==void 0?b:[],u=-1,l=[],h&&m.push(h),h=f}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:e}function W6(e,t){const n=e[t];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function G6(e){return Vr(e,Y6)}const Q6=80,Y6={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Ne(e.definitions,`
25
+ `),'"""'+h+'"""'}const F6=10,r0=2;function D6(e){return fl(e,[])}function fl(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return M6(e,t);default:return String(e)}}function M6(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(j6(e)){const r=e.toJSON();if(r!==e)return typeof r=="string"?r:fl(r,n)}else if(Array.isArray(e))return V6(e,n);return $6(e,n)}function j6(e){return typeof e.toJSON=="function"}function $6(e,t){const n=Object.entries(e);return n.length===0?"{}":t.length>r0?"["+q6(e)+"]":"{ "+n.map(([i,a])=>i+": "+fl(a,t)).join(", ")+" }"}function V6(e,t){if(e.length===0)return"[]";if(t.length>r0)return"[Array]";const n=Math.min(F6,e.length),r=e.length-n,i=[];for(let a=0;a<n;++a)i.push(fl(e[a],t));return r===1?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function q6(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}function U6(e){return`"${e.replace(z6,H6)}"`}const z6=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function H6(e){return B6[e.charCodeAt(0)]}const B6=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],dl=Object.freeze({});function Vr(e,t,n=J1){const r=new Map;for(const w of Object.values(Mt))r.set(w,W6(t,w));let i,a=Array.isArray(e),o=[e],u=-1,l=[],f=e,d,h;const p=[],m=[];do{u++;const w=u===o.length,S=w&&l.length!==0;if(w){if(d=m.length===0?void 0:p[p.length-1],f=h,h=m.pop(),S)if(a){f=f.slice();let T=0;for(const[_,x]of l){const k=_-T;x===null?(f.splice(k,1),T++):f[k]=x}}else{f={...f};for(const[T,_]of l)f[T]=_}u=i.index,o=i.keys,l=i.edits,a=i.inArray,i=i.prev}else if(h){if(d=a?u:o[u],f=h[d],f==null)continue;p.push(d)}let C;if(!Array.isArray(f)){var y,g;e0(f)||N6(!1,`Invalid AST Node: ${D6(f)}.`);const T=w?(y=r.get(f.kind))===null||y===void 0?void 0:y.leave:(g=r.get(f.kind))===null||g===void 0?void 0:g.enter;if(C=T==null?void 0:T.call(t,f,d,h,p,m),C===dl)break;if(C===!1){if(!w){p.pop();continue}}else if(C!==void 0&&(l.push([d,C]),!w))if(e0(C))f=C;else{p.pop();continue}}if(C===void 0&&S&&l.push([d,f]),w)p.pop();else{var b;i={inArray:a,index:u,keys:o,edits:l,prev:i},a=Array.isArray(f),o=a?f:(b=n[f.kind])!==null&&b!==void 0?b:[],u=-1,l=[],h&&m.push(h),h=f}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:e}function W6(e,t){const n=e[t];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function G6(e){return Vr(e,Y6)}const Q6=80,Y6={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Pe(e.definitions,`
26
26
 
27
- `)},OperationDefinition:{leave(e){const t=st("(",Ne(e.variableDefinitions,", "),")"),n=Ne([e.operation,Ne([e.name,t]),Ne(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+st(" = ",n)+st(" ",Ne(r," "))},SelectionSet:{leave:({selections:e})=>qr(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const a=st("",e,": ")+t;let o=a+st("(",Ne(n,", "),")");return o.length>Q6&&(o=a+st(`(
28
- `,hl(Ne(n,`
27
+ `)},OperationDefinition:{leave(e){const t=st("(",Pe(e.variableDefinitions,", "),")"),n=Pe([e.operation,Pe([e.name,t]),Pe(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+st(" = ",n)+st(" ",Pe(r," "))},SelectionSet:{leave:({selections:e})=>qr(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const a=st("",e,": ")+t;let o=a+st("(",Pe(n,", "),")");return o.length>Q6&&(o=a+st(`(
28
+ `,hl(Pe(n,`
29
29
  `)),`
30
- )`)),Ne([o,Ne(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+st(" ",Ne(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Ne(["...",st("on ",e),Ne(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${st("(",Ne(n,", "),")")} on ${t} ${st("",Ne(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?L6(e):U6(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Ne(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Ne(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+st("(",Ne(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>st("",e,`
31
- `)+Ne(["schema",Ne(t," "),qr(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>st("",e,`
32
- `)+Ne(["scalar",t,Ne(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>st("",e,`
33
- `)+Ne(["type",t,st("implements ",Ne(n," & ")),Ne(r," "),qr(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>st("",e,`
30
+ )`)),Pe([o,Pe(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+st(" ",Pe(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Pe(["...",st("on ",e),Pe(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${st("(",Pe(n,", "),")")} on ${t} ${st("",Pe(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?L6(e):U6(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Pe(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Pe(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+st("(",Pe(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>st("",e,`
31
+ `)+Pe(["schema",Pe(t," "),qr(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>st("",e,`
32
+ `)+Pe(["scalar",t,Pe(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>st("",e,`
33
+ `)+Pe(["type",t,st("implements ",Pe(n," & ")),Pe(r," "),qr(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>st("",e,`
34
34
  `)+t+(i0(n)?st(`(
35
- `,hl(Ne(n,`
35
+ `,hl(Pe(n,`
36
36
  `)),`
37
- )`):st("(",Ne(n,", "),")"))+": "+r+st(" ",Ne(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>st("",e,`
38
- `)+Ne([t+": "+n,st("= ",r),Ne(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>st("",e,`
39
- `)+Ne(["interface",t,st("implements ",Ne(n," & ")),Ne(r," "),qr(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>st("",e,`
40
- `)+Ne(["union",t,Ne(n," "),st("= ",Ne(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>st("",e,`
41
- `)+Ne(["enum",t,Ne(n," "),qr(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>st("",e,`
42
- `)+Ne([t,Ne(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>st("",e,`
43
- `)+Ne(["input",t,Ne(n," "),qr(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>st("",e,`
37
+ )`):st("(",Pe(n,", "),")"))+": "+r+st(" ",Pe(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>st("",e,`
38
+ `)+Pe([t+": "+n,st("= ",r),Pe(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>st("",e,`
39
+ `)+Pe(["interface",t,st("implements ",Pe(n," & ")),Pe(r," "),qr(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>st("",e,`
40
+ `)+Pe(["union",t,Pe(n," "),st("= ",Pe(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>st("",e,`
41
+ `)+Pe(["enum",t,Pe(n," "),qr(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>st("",e,`
42
+ `)+Pe([t,Pe(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>st("",e,`
43
+ `)+Pe(["input",t,Pe(n," "),qr(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>st("",e,`
44
44
  `)+"directive @"+t+(i0(n)?st(`(
45
- `,hl(Ne(n,`
45
+ `,hl(Pe(n,`
46
46
  `)),`
47
- )`):st("(",Ne(n,", "),")"))+(r?" repeatable":"")+" on "+Ne(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Ne(["extend schema",Ne(e," "),qr(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Ne(["extend scalar",e,Ne(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ne(["extend type",e,st("implements ",Ne(t," & ")),Ne(n," "),qr(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ne(["extend interface",e,st("implements ",Ne(t," & ")),Ne(n," "),qr(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Ne(["extend union",e,Ne(t," "),st("= ",Ne(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Ne(["extend enum",e,Ne(t," "),qr(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Ne(["extend input",e,Ne(t," "),qr(n)]," ")}};function Ne(e,t=""){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function qr(e){return st(`{
48
- `,hl(Ne(e,`
47
+ )`):st("(",Pe(n,", "),")"))+(r?" repeatable":"")+" on "+Pe(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Pe(["extend schema",Pe(e," "),qr(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Pe(["extend scalar",e,Pe(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Pe(["extend type",e,st("implements ",Pe(t," & ")),Pe(n," "),qr(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Pe(["extend interface",e,st("implements ",Pe(t," & ")),Pe(n," "),qr(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Pe(["extend union",e,Pe(t," "),st("= ",Pe(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Pe(["extend enum",e,Pe(t," "),qr(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Pe(["extend input",e,Pe(t," "),qr(n)]," ")}};function Pe(e,t=""){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function qr(e){return st(`{
48
+ `,hl(Pe(e,`
49
49
  `)),`
50
50
  }`)}function st(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function hl(e){return st(" ",e.replace(/\n/g,`
51
51
  `))}function i0(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(`
52
- `)))!==null&&t!==void 0?t:!1}function a0(e){return e.kind===$t.FIELD||e.kind===$t.FRAGMENT_SPREAD||e.kind===$t.INLINE_FRAGMENT}function Fs(e,t){var n=e.directives;return!n||!n.length?!0:Z6(n).every(function(r){var i=r.directive,a=r.ifArgument,o=!1;return a.value.kind==="Variable"?(o=t&&t[a.value.name.value],Ce(o!==void 0,78,i.name.value)):o=a.value.value,i.name.value==="skip"?!o:o})}function Ds(e,t,n){var r=new Set(e),i=r.size;return Vr(t,{Directive:function(a){if(r.delete(a.name.value)&&(!n||!r.size))return dl}}),n?!r.size:r.size<i}function K6(e){return e&&Ds(["client","export"],e,!0)}function X6(e){var t=e.name.value;return t==="skip"||t==="include"}function Z6(e){var t=[];return e&&e.length&&e.forEach(function(n){if(X6(n)){var r=n.arguments,i=n.name.value;Ce(r&&r.length===1,79,i);var a=r[0];Ce(a.name&&a.name.value==="if",80,i);var o=a.value;Ce(o&&(o.kind==="Variable"||o.kind==="BooleanValue"),81,i),t.push({directive:n,ifArgument:a})}}),t}function J6(e){var t,n,r=(t=e.directives)===null||t===void 0?void 0:t.find(function(a){var o=a.name;return o.value==="unmask"});if(!r)return"mask";var i=(n=r.arguments)===null||n===void 0?void 0:n.find(function(a){var o=a.name;return o.value==="mode"});return globalThis.__DEV__!==!1&&i&&(i.value.kind===$t.VARIABLE?globalThis.__DEV__!==!1&&Ce.warn(82):i.value.kind!==$t.STRING?globalThis.__DEV__!==!1&&Ce.warn(83):i.value.value!=="migrate"&&globalThis.__DEV__!==!1&&Ce.warn(84,i.value.value)),i&&"value"in i.value&&i.value.value==="migrate"?"migrate":"unmask"}const eT=()=>Object.create(null),{forEach:tT,slice:o0}=Array.prototype,{hasOwnProperty:nT}=Object.prototype;class wi{constructor(t=!0,n=eT){this.weakness=t,this.makeData=n}lookup(){return this.lookupArray(arguments)}lookupArray(t){let n=this;return tT.call(t,r=>n=n.getChildTrie(r)),nT.call(n,"data")?n.data:n.data=this.makeData(o0.call(t))}peek(){return this.peekArray(arguments)}peekArray(t){let n=this;for(let r=0,i=t.length;n&&r<i;++r){const a=n.mapFor(t[r],!1);n=a&&a.get(t[r])}return n&&n.data}remove(){return this.removeArray(arguments)}removeArray(t){let n;if(t.length){const r=t[0],i=this.mapFor(r,!1),a=i&&i.get(r);a&&(n=a.removeArray(o0.call(t,1)),!a.data&&!a.weak&&!(a.strong&&a.strong.size)&&i.delete(r))}else n=this.data,delete this.data;return n}getChildTrie(t){const n=this.mapFor(t,!0);let r=n.get(t);return r||n.set(t,r=new wi(this.weakness,this.makeData)),r}mapFor(t,n){return this.weakness&&rT(t)?this.weak||(n?this.weak=new WeakMap:void 0):this.strong||(n?this.strong=new Map:void 0)}}function rT(e){switch(typeof e){case"object":if(e===null)break;case"function":return!0}return!1}var s0=$r(function(){return navigator.product})=="ReactNative",Sa=typeof WeakMap=="function"&&!(s0&&!global.HermesInternal),yd=typeof WeakSet=="function",bd=typeof Symbol=="function"&&typeof Symbol.for=="function",pl=bd&&Symbol.asyncIterator,u0=typeof $r(function(){return window.document.createElement})=="function",iT=$r(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,aT=(u0||s0)&&!iT;function qt(e){return e!==null&&typeof e=="object"}function oT(e,t){var n=t,r=[];e.definitions.forEach(function(a){if(a.kind==="OperationDefinition")throw Fn(85,a.operation,a.name?" named '".concat(a.name.value,"'"):"");a.kind==="FragmentDefinition"&&r.push(a)}),typeof n>"u"&&(Ce(r.length===1,86,r.length),n=r[0].name.value);var i=X(X({},e),{definitions:Tn([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)});return i}function fo(e){e===void 0&&(e=[]);var t={};return e.forEach(function(n){t[n.name.value]=n}),t}function vl(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{var n=e.name.value;if(typeof t=="function")return t(n);var r=t&&t[n];return Ce(r,87,n),r||null}default:return null}}function sT(e){var t=!0;return Vr(e,{FragmentSpread:function(n){if(t=!!n.directives&&n.directives.some(function(r){return r.name.value==="unmask"}),!t)return dl}}),t}function uT(){}class _d{constructor(t=1/0,n=uT){this.max=t,this.dispose=n,this.map=new Map,this.newest=null,this.oldest=null}has(t){return this.map.has(t)}get(t){const n=this.getNode(t);return n&&n.value}get size(){return this.map.size}getNode(t){const n=this.map.get(t);if(n&&n!==this.newest){const{older:r,newer:i}=n;i&&(i.older=r),r&&(r.newer=i),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=i)}return n}set(t,n){let r=this.getNode(t);return r?r.value=n:(r={key:t,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(t,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(t){const n=this.map.get(t);return n?(n===this.newest&&(this.newest=n.older),n===this.oldest&&(this.oldest=n.newer),n.newer&&(n.newer.older=n.older),n.older&&(n.older.newer=n.newer),this.map.delete(t),this.dispose(n.value,t),!0):!1}}function wd(){}const lT=wd,cT=typeof WeakRef<"u"?WeakRef:function(e){return{deref:()=>e}},fT=typeof WeakMap<"u"?WeakMap:Map,dT=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:wd,unregister:wd}},hT=10024;class ml{constructor(t=1/0,n=lT){this.max=t,this.dispose=n,this.map=new fT,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const r=this.unfinalizedNodes.values();for(let i=0;i<hT;i++){const a=r.next().value;if(!a)break;this.unfinalizedNodes.delete(a);const o=a.key;delete a.key,a.keyRef=new cT(o),this.registry.register(o,a,a)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new dT(this.deleteNode.bind(this))}has(t){return this.map.has(t)}get(t){const n=this.getNode(t);return n&&n.value}getNode(t){const n=this.map.get(t);if(n&&n!==this.newest){const{older:r,newer:i}=n;i&&(i.older=r),r&&(r.newer=i),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=i)}return n}set(t,n){let r=this.getNode(t);return r?r.value=n:(r={key:t,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(t,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(t){t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.size--;const n=t.key||t.keyRef&&t.keyRef.deref();this.dispose(t.value,n),t.keyRef?this.registry.unregister(t):this.unfinalizedNodes.delete(t),n&&this.map.delete(n)}delete(t){const n=this.map.get(t);return n?(this.deleteNode(n),!0):!1}scheduleFinalization(t){this.unfinalizedNodes.add(t),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var Ed=new WeakSet;function l0(e){e.size<=(e.max||-1)||Ed.has(e)||(Ed.add(e),setTimeout(function(){e.clean(),Ed.delete(e)},100))}var Sd=function(e,t){var n=new ml(e,t);return n.set=function(r,i){var a=ml.prototype.set.call(this,r,i);return l0(this),a},n},pT=function(e,t){var n=new _d(e,t);return n.set=function(r,i){var a=_d.prototype.set.call(this,r,i);return l0(this),a},n},vT=Symbol.for("apollo.cacheSize"),ti=X({},pd[vT]),xa={};function xd(e,t){xa[e]=t}var mT=globalThis.__DEV__!==!1?_T:void 0,gT=globalThis.__DEV__!==!1?wT:void 0,yT=globalThis.__DEV__!==!1?c0:void 0;function bT(){var e={parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4};return Object.fromEntries(Object.entries(e).map(function(t){var n=t[0],r=t[1];return[n,ti[n]||r]}))}function _T(){var e,t,n,r,i;if(globalThis.__DEV__===!1)throw new Error("only supported in development mode");return{limits:bT(),sizes:X({print:(e=xa.print)===null||e===void 0?void 0:e.call(xa),parser:(t=xa.parser)===null||t===void 0?void 0:t.call(xa),canonicalStringify:(n=xa.canonicalStringify)===null||n===void 0?void 0:n.call(xa),links:Td(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:d0(this.queryManager.documentTransform)}},(i=(r=this.cache).getMemoryInternals)===null||i===void 0?void 0:i.call(r))}}function c0(){return{cache:{fragmentQueryDocuments:qi(this.getFragmentDoc)}}}function wT(){var e=this.config.fragments;return X(X({},c0.apply(this)),{addTypenameDocumentTransform:d0(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:qi(this.storeReader.executeSelectionSet),executeSubSelectedArray:qi(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:qi(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:qi(e==null?void 0:e.findFragmentSpreads),lookup:qi(e==null?void 0:e.lookup),transform:qi(e==null?void 0:e.transform)}})}function ET(e){return!!e&&"dirtyKey"in e}function qi(e){return ET(e)?e.size:void 0}function f0(e){return e!=null}function d0(e){return Cd(e).map(function(t){return{cache:t}})}function Cd(e){return e?Tn(Tn([qi(e==null?void 0:e.performWork)],Cd(e==null?void 0:e.left),!0),Cd(e==null?void 0:e.right),!0).filter(f0):[]}function Td(e){var t;return e?Tn(Tn([(t=e==null?void 0:e.getMemoryInternals)===null||t===void 0?void 0:t.call(e)],Td(e==null?void 0:e.left),!0),Td(e==null?void 0:e.right),!0).filter(f0):[]}var Ui=Object.assign(function(t){return JSON.stringify(t,ST)},{reset:function(){ho=new pT(ti.canonicalStringify||1e3)}});globalThis.__DEV__!==!1&&xd("canonicalStringify",function(){return ho.size});var ho;Ui.reset();function ST(e,t){if(t&&typeof t=="object"){var n=Object.getPrototypeOf(t);if(n===Object.prototype||n===null){var r=Object.keys(t);if(r.every(xT))return t;var i=JSON.stringify(r),a=ho.get(i);if(!a){r.sort();var o=JSON.stringify(r);a=ho.get(o)||r,ho.set(i,a),ho.set(o,a)}var u=Object.create(n);return a.forEach(function(l){u[l]=t[l]}),u}}return t}function xT(e,t,n){return t===0||n[t-1]<=e}function po(e){return{__ref:String(e)}}function wt(e){return!!(e&&typeof e=="object"&&typeof e.__ref=="string")}function CT(e){return qt(e)&&e.kind==="Document"&&Array.isArray(e.definitions)}function TT(e){return e.kind==="StringValue"}function OT(e){return e.kind==="BooleanValue"}function kT(e){return e.kind==="IntValue"}function RT(e){return e.kind==="FloatValue"}function AT(e){return e.kind==="Variable"}function PT(e){return e.kind==="ObjectValue"}function NT(e){return e.kind==="ListValue"}function IT(e){return e.kind==="EnumValue"}function LT(e){return e.kind==="NullValue"}function vo(e,t,n,r){if(kT(n)||RT(n))e[t.value]=Number(n.value);else if(OT(n)||TT(n))e[t.value]=n.value;else if(PT(n)){var i={};n.fields.map(function(o){return vo(i,o.name,o.value,r)}),e[t.value]=i}else if(AT(n)){var a=(r||{})[n.name.value];e[t.value]=a}else if(NT(n))e[t.value]=n.values.map(function(o){var u={};return vo(u,t,o,r),u[t.value]});else if(IT(n))e[t.value]=n.value;else if(LT(n))e[t.value]=null;else throw Fn(96,t.value,n.kind)}function FT(e,t){var n=null;e.directives&&(n={},e.directives.forEach(function(i){n[i.name.value]={},i.arguments&&i.arguments.forEach(function(a){var o=a.name,u=a.value;return vo(n[i.name.value],o,u,t)})}));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(i){var a=i.name,o=i.value;return vo(r,a,o,t)})),h0(e.name.value,r,n)}var DT=["connection","include","skip","client","rest","export","nonreactive"],Ms=Ui,h0=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key)if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach(function(u){i[u]=t[u]}),"".concat(n.connection.key,"(").concat(Ms(i),")")}else return n.connection.key;var a=e;if(t){var o=Ms(t);a+="(".concat(o,")")}return n&&Object.keys(n).forEach(function(u){DT.indexOf(u)===-1&&(n[u]&&Object.keys(n[u]).length?a+="@".concat(u,"(").concat(Ms(n[u]),")"):a+="@".concat(u))}),a},{setStringify:function(e){var t=Ms;return Ms=e,t}});function gl(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(r){var i=r.name,a=r.value;return vo(n,i,a,t)}),n}return null}function Ei(e){return e.alias?e.alias.value:e.name.value}function Od(e,t,n){for(var r,i=0,a=t.selections;i<a.length;i++){var o=a[i];if(zi(o)){if(o.name.value==="__typename")return e[Ei(o)]}else r?r.push(o):r=[o]}if(typeof e.__typename=="string")return e.__typename;if(r)for(var u=0,l=r;u<l.length;u++){var o=l[u],f=Od(e,vl(o,n).selectionSet,n);if(typeof f=="string")return f}}function zi(e){return e.kind==="Field"}function MT(e){return e.kind==="InlineFragment"}function mo(e){Ce(e&&e.kind==="Document",88);var t=e.definitions.filter(function(n){return n.kind!=="FragmentDefinition"}).map(function(n){if(n.kind!=="OperationDefinition")throw Fn(89,n.kind);return n});return Ce(t.length<=1,90,t.length),e}function Ca(e){return mo(e),e.definitions.filter(function(t){return t.kind==="OperationDefinition"})[0]}function js(e){return e.definitions.filter(function(t){return t.kind==="OperationDefinition"&&!!t.name}).map(function(t){return t.name.value})[0]||null}function go(e){return e.definitions.filter(function(t){return t.kind==="FragmentDefinition"})}function p0(e){var t=Ca(e);return Ce(t&&t.operation==="query",91),t}function v0(e){Ce(e.kind==="Document",92),Ce(e.definitions.length<=1,93);var t=e.definitions[0];return Ce(t.kind==="FragmentDefinition",94),t}function yo(e){mo(e);for(var t,n=0,r=e.definitions;n<r.length;n++){var i=r[n];if(i.kind==="OperationDefinition"){var a=i.operation;if(a==="query"||a==="mutation"||a==="subscription")return i}i.kind==="FragmentDefinition"&&!t&&(t=i)}if(t)return t;throw Fn(95)}function kd(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach(function(r){r.defaultValue&&vo(t,r.variable.name,r.defaultValue)}),t}let _n=null;const m0={};let jT=1;const $T=()=>class{constructor(){this.id=["slot",jT++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let t=_n;t;t=t.parent)if(this.id in t.slots){const n=t.slots[this.id];if(n===m0)break;return t!==_n&&(_n.slots[this.id]=n),!0}return _n&&(_n.slots[this.id]=m0),!1}getValue(){if(this.hasValue())return _n.slots[this.id]}withValue(t,n,r,i){const a={__proto__:null,[this.id]:t},o=_n;_n={parent:o,slots:a};try{return n.apply(i,r)}finally{_n=o}}static bind(t){const n=_n;return function(){const r=_n;try{return _n=n,t.apply(this,arguments)}finally{_n=r}}}static noContext(t,n,r){if(_n){const i=_n;try{return _n=null,t.apply(r,n)}finally{_n=i}}else return t.apply(r,n)}};function g0(e){try{return e()}catch{}}const Rd="@wry/context:Slot",y0=g0(()=>globalThis)||g0(()=>global)||Object.create(null),$s=y0[Rd]||Array[Rd]||function(e){try{Object.defineProperty(y0,Rd,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}($T()),{bind:rz,noContext:iz}=$s,yl=new $s,{hasOwnProperty:VT}=Object.prototype,Ad=Array.from||function(e){const t=[];return e.forEach(n=>t.push(n)),t};function Pd(e){const{unsubscribe:t}=e;typeof t=="function"&&(e.unsubscribe=void 0,t())}const Vs=[],qT=100;function bo(e,t){if(!e)throw new Error(t||"assertion failure")}function b0(e,t){const n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function _0(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function w0(e){return e.slice(0)}class bl{constructor(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++bl.count}peek(){if(this.value.length===1&&!Hi(this))return E0(this),this.value[0]}recompute(t){return bo(!this.recomputing,"already recomputing"),E0(this),Hi(this)?UT(this,t):_0(this.value)}setDirty(){this.dirty||(this.dirty=!0,S0(this),Pd(this))}dispose(){this.setDirty(),k0(this),Nd(this,(t,n)=>{t.setDirty(),R0(t,this)})}forget(){this.dispose()}dependOn(t){t.add(this),this.deps||(this.deps=Vs.pop()||new Set),this.deps.add(t)}forgetDeps(){this.deps&&(Ad(this.deps).forEach(t=>t.delete(this)),this.deps.clear(),Vs.push(this.deps),this.deps=null)}}bl.count=0;function E0(e){const t=yl.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Hi(e)?C0(t,e):T0(t,e),t}function UT(e,t){return k0(e),yl.withValue(e,zT,[e,t]),BT(e,t)&&HT(e),_0(e.value)}function zT(e,t){e.recomputing=!0;const{normalizeResult:n}=e;let r;n&&e.value.length===1&&(r=w0(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!b0(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch{}}catch(i){e.value[1]=i}e.recomputing=!1}function Hi(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function HT(e){e.dirty=!1,!Hi(e)&&x0(e)}function S0(e){Nd(e,C0)}function x0(e){Nd(e,T0)}function Nd(e,t){const n=e.parents.size;if(n){const r=Ad(e.parents);for(let i=0;i<n;++i)t(r[i],e)}}function C0(e,t){bo(e.childValues.has(t)),bo(Hi(t));const n=!Hi(e);if(!e.dirtyChildren)e.dirtyChildren=Vs.pop()||new Set;else if(e.dirtyChildren.has(t))return;e.dirtyChildren.add(t),n&&S0(e)}function T0(e,t){bo(e.childValues.has(t)),bo(!Hi(t));const n=e.childValues.get(t);n.length===0?e.childValues.set(t,w0(t.value)):b0(n,t.value)||e.setDirty(),O0(e,t),!Hi(e)&&x0(e)}function O0(e,t){const n=e.dirtyChildren;n&&(n.delete(t),n.size===0&&(Vs.length<qT&&Vs.push(n),e.dirtyChildren=null))}function k0(e){e.childValues.size>0&&e.childValues.forEach((t,n)=>{R0(e,n)}),e.forgetDeps(),bo(e.dirtyChildren===null)}function R0(e,t){t.parents.delete(e),e.childValues.delete(t),O0(e,t)}function BT(e,t){if(typeof e.subscribe=="function")try{Pd(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}const WT={setDirty:!0,dispose:!0,forget:!0};function A0(e){const t=new Map;function n(r){const i=yl.getValue();if(i){let a=t.get(r);a||t.set(r,a=new Set),i.dependOn(a)}}return n.dirty=function(i,a){const o=t.get(i);if(o){const u=a&&VT.call(WT,a)?a:"setDirty";Ad(o).forEach(l=>l[u]()),t.delete(i),Pd(o)}},n}let P0;function GT(...e){return(P0||(P0=new wi(typeof WeakMap=="function"))).lookupArray(e)}const Id=new Set;function qs(e,{max:t=Math.pow(2,16),keyArgs:n,makeCacheKey:r=GT,normalizeResult:i,subscribe:a,cache:o=_d}=Object.create(null)){const u=typeof o=="function"?new o(t,p=>p.dispose()):o,l=function(){const p=r.apply(null,n?n.apply(null,arguments):arguments);if(p===void 0)return e.apply(null,arguments);let m=u.get(p);m||(u.set(p,m=new bl(e)),m.normalizeResult=i,m.subscribe=a,m.forget=()=>u.delete(p));const y=m.recompute(Array.prototype.slice.call(arguments));return u.set(p,m),Id.add(u),yl.hasValue()||(Id.forEach(g=>g.clean()),Id.clear()),y};Object.defineProperty(l,"size",{get:()=>u.size,configurable:!1,enumerable:!1}),Object.freeze(l.options={max:t,keyArgs:n,makeCacheKey:r,normalizeResult:i,subscribe:a,cache:u});function f(p){const m=p&&u.get(p);m&&m.setDirty()}l.dirtyKey=f,l.dirty=function(){f(r.apply(null,arguments))};function d(p){const m=p&&u.get(p);if(m)return m.peek()}l.peekKey=d,l.peek=function(){return d(r.apply(null,arguments))};function h(p){return p?u.delete(p):!1}return l.forgetKey=h,l.forget=function(){return h(r.apply(null,arguments))},l.makeCacheKey=r,l.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(l)}function QT(e){return e}var N0=function(){function e(t,n){n===void 0&&(n=Object.create(null)),this.resultCache=yd?new WeakSet:new Set,this.transform=t,n.getCacheKey&&(this.getCacheKey=n.getCacheKey),this.cached=n.cache!==!1,this.resetCache()}return e.prototype.getCacheKey=function(t){return[t]},e.identity=function(){return new e(QT,{cache:!1})},e.split=function(t,n,r){return r===void 0&&(r=e.identity()),Object.assign(new e(function(i){var a=t(i)?n:r;return a.transformDocument(i)},{cache:!1}),{left:n,right:r})},e.prototype.resetCache=function(){var t=this;if(this.cached){var n=new wi(Sa);this.performWork=qs(e.prototype.performWork.bind(this),{makeCacheKey:function(r){var i=t.getCacheKey(r);if(i)return Ce(Array.isArray(i),77),n.lookupArray(i)},max:ti["documentTransform.cache"],cache:ml})}},e.prototype.performWork=function(t){return mo(t),this.transform(t)},e.prototype.transformDocument=function(t){if(this.resultCache.has(t))return t;var n=this.performWork(t);return this.resultCache.add(n),n},e.prototype.concat=function(t){var n=this;return Object.assign(new e(function(r){return t.transformDocument(n.transformDocument(r))},{cache:!1}),{left:this,right:t})},e}(),Us,Bi=Object.assign(function(e){var t=Us.get(e);return t||(t=G6(e),Us.set(e,t)),t},{reset:function(){Us=new Sd(ti.print||2e3)}});Bi.reset(),globalThis.__DEV__!==!1&&xd("print",function(){return Us?Us.size:0});var Zt=Array.isArray;function _r(e){return Array.isArray(e)&&e.length>0}var I0={kind:$t.FIELD,name:{kind:$t.NAME,value:"__typename"}};function L0(e,t){return!e||e.selectionSet.selections.every(function(n){return n.kind===$t.FRAGMENT_SPREAD&&L0(t[n.name.value],t)})}function YT(e){return L0(Ca(e)||v0(e),fo(go(e)))?null:e}function KT(e){var t=new Map,n=new Map;return e.forEach(function(r){r&&(r.name?t.set(r.name,r):r.test&&n.set(r.test,r))}),function(r){var i=t.get(r.name.value);return!i&&n.size&&n.forEach(function(a,o){o(r)&&(i=a)}),i}}function F0(e){var t=new Map;return function(r){r===void 0&&(r=e);var i=t.get(r);return i||t.set(r,i={variables:new Set,fragmentSpreads:new Set}),i}}function D0(e,t){mo(t);for(var n=F0(""),r=F0(""),i=function(w){for(var S=0,C=void 0;S<w.length&&(C=w[S]);++S)if(!Zt(C)){if(C.kind===$t.OPERATION_DEFINITION)return n(C.name&&C.name.value);if(C.kind===$t.FRAGMENT_DEFINITION)return r(C.name.value)}return globalThis.__DEV__!==!1&&Ce.error(97),null},a=0,o=t.definitions.length-1;o>=0;--o)t.definitions[o].kind===$t.OPERATION_DEFINITION&&++a;var u=KT(e),l=function(w){return _r(w)&&w.map(u).some(function(S){return S&&S.remove})},f=new Map,d=!1,h={enter:function(w){if(l(w.directives))return d=!0,null}},p=Vr(t,{Field:h,InlineFragment:h,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(w,S,C,T,_){var x=i(_);x&&x.variables.add(w.name.value)}},FragmentSpread:{enter:function(w,S,C,T,_){if(l(w.directives))return d=!0,null;var x=i(_);x&&x.fragmentSpreads.add(w.name.value)}},FragmentDefinition:{enter:function(w,S,C,T){f.set(JSON.stringify(T),w)},leave:function(w,S,C,T){var _=f.get(JSON.stringify(T));if(w===_)return w;if(a>0&&w.selectionSet.selections.every(function(x){return x.kind===$t.FIELD&&x.name.value==="__typename"}))return r(w.name.value).removed=!0,d=!0,null}},Directive:{leave:function(w){if(u(w))return d=!0,null}}});if(!d)return t;var m=function(w){return w.transitiveVars||(w.transitiveVars=new Set(w.variables),w.removed||w.fragmentSpreads.forEach(function(S){m(r(S)).transitiveVars.forEach(function(C){w.transitiveVars.add(C)})})),w},y=new Set;p.definitions.forEach(function(w){w.kind===$t.OPERATION_DEFINITION?m(n(w.name&&w.name.value)).fragmentSpreads.forEach(function(S){y.add(S)}):w.kind===$t.FRAGMENT_DEFINITION&&a===0&&!r(w.name.value).removed&&y.add(w.name.value)}),y.forEach(function(w){m(r(w)).fragmentSpreads.forEach(function(S){y.add(S)})});var g=function(w){return!!(!y.has(w)||r(w).removed)},b={enter:function(w){if(g(w.name.value))return null}};return YT(Vr(p,{FragmentSpread:b,FragmentDefinition:b,OperationDefinition:{leave:function(w){if(w.variableDefinitions){var S=m(n(w.name&&w.name.value)).transitiveVars;if(S.size<w.variableDefinitions.length)return X(X({},w),{variableDefinitions:w.variableDefinitions.filter(function(C){return S.has(C.variable.name.value)})})}}}}))}var Ld=Object.assign(function(e){return Vr(e,{SelectionSet:{enter:function(t,n,r){if(!(r&&r.kind===$t.OPERATION_DEFINITION)){var i=t.selections;if(i){var a=i.some(function(u){return zi(u)&&(u.name.value==="__typename"||u.name.value.lastIndexOf("__",0)===0)});if(!a){var o=r;if(!(zi(o)&&o.directives&&o.directives.some(function(u){return u.name.value==="export"})))return X(X({},t),{selections:Tn(Tn([],i,!0),[I0],!1)})}}}}}})},{added:function(e){return e===I0}});function XT(e){var t=yo(e),n=t.operation;if(n==="query")return e;var r=Vr(e,{OperationDefinition:{enter:function(i){return X(X({},i),{operation:"query"})}}});return r}function M0(e){mo(e);var t=D0([{test:function(n){return n.name.value==="client"},remove:!0}],e);return t}function ZT(e){return mo(e),Vr(e,{FragmentSpread:function(t){var n;if(!(!((n=t.directives)===null||n===void 0)&&n.some(function(r){return r.name.value==="unmask"})))return X(X({},t),{directives:Tn(Tn([],t.directives||[],!0),[{kind:$t.DIRECTIVE,name:{kind:$t.NAME,value:"nonreactive"}}],!1)})}})}var JT=Object.prototype.hasOwnProperty;function j0(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return _l(e)}function _l(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new Wi,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var e4=function(e,t,n){return this.merge(e[n],t[n])},Wi=function(){function e(t){t===void 0&&(t=e4),this.reconciler=t,this.isObject=qt,this.pastCopies=new Set}return e.prototype.merge=function(t,n){for(var r=this,i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];return qt(n)&&qt(t)?(Object.keys(n).forEach(function(o){if(JT.call(t,o)){var u=t[o];if(n[o]!==u){var l=r.reconciler.apply(r,Tn([t,n,o],i,!1));l!==u&&(t=r.shallowCopyForMerge(t),t[o]=l)}}else t=r.shallowCopyForMerge(t),t[o]=n[o]}),t):n},e.prototype.shallowCopyForMerge=function(t){return qt(t)&&(this.pastCopies.has(t)||(Array.isArray(t)?t=t.slice(0):t=X({__proto__:Object.getPrototypeOf(t)},t),this.pastCopies.add(t))),t},e}();function t4(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=n4(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
53
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n4(e,t){if(e){if(typeof e=="string")return $0(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 $0(e,t)}}function $0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function V0(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fd(e,t,n){return t&&V0(e.prototype,t),n&&V0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Dd=function(){return typeof Symbol=="function"},Md=function(e){return Dd()&&!!Symbol[e]},jd=function(e){return Md(e)?Symbol[e]:"@@"+e};Dd()&&!Md("observable")&&(Symbol.observable=Symbol("observable"));var r4=jd("iterator"),$d=jd("observable"),q0=jd("species");function wl(e,t){var n=e[t];if(n!=null){if(typeof n!="function")throw new TypeError(n+" is not a function");return n}}function zs(e){var t=e.constructor;return t!==void 0&&(t=t[q0],t===null&&(t=void 0)),t!==void 0?t:Et}function i4(e){return e instanceof Et}function _o(e){_o.log?_o.log(e):setTimeout(function(){throw e})}function El(e){Promise.resolve().then(function(){try{e()}catch(t){_o(t)}})}function U0(e){var t=e._cleanup;if(t!==void 0&&(e._cleanup=void 0,!!t))try{if(typeof t=="function")t();else{var n=wl(t,"unsubscribe");n&&n.call(t)}}catch(r){_o(r)}}function Vd(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function a4(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(z0(e,t[n].type,t[n].value),e._state!=="closed");++n);}}function z0(e,t,n){e._state="running";var r=e._observer;try{var i=wl(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(Vd(e),i)i.call(r,n);else throw n;break;case"complete":Vd(e),i&&i.call(r);break}}catch(a){_o(a)}e._state==="closed"?U0(e):e._state==="running"&&(e._state="ready")}function qd(e,t,n){if(e._state!=="closed"){if(e._state==="buffering"){e._queue.push({type:t,value:n});return}if(e._state!=="ready"){e._state="buffering",e._queue=[{type:t,value:n}],El(function(){return a4(e)});return}z0(e,t,n)}}var o4=function(){function e(n,r){this._cleanup=void 0,this._observer=n,this._queue=void 0,this._state="initializing";var i=new s4(this);try{this._cleanup=r.call(void 0,i)}catch(a){i.error(a)}this._state==="initializing"&&(this._state="ready")}var t=e.prototype;return t.unsubscribe=function(){this._state!=="closed"&&(Vd(this),U0(this))},Fd(e,[{key:"closed",get:function(){return this._state==="closed"}}]),e}(),s4=function(){function e(n){this._subscription=n}var t=e.prototype;return t.next=function(r){qd(this._subscription,"next",r)},t.error=function(r){qd(this._subscription,"error",r)},t.complete=function(){qd(this._subscription,"complete")},Fd(e,[{key:"closed",get:function(){return this._subscription._state==="closed"}}]),e}(),Et=function(){function e(n){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if(typeof n!="function")throw new TypeError("Observable initializer must be a function");this._subscriber=n}var t=e.prototype;return t.subscribe=function(r){return(typeof r!="object"||r===null)&&(r={next:r,error:arguments[1],complete:arguments[2]}),new o4(r,this._subscriber)},t.forEach=function(r){var i=this;return new Promise(function(a,o){if(typeof r!="function"){o(new TypeError(r+" is not a function"));return}function u(){l.unsubscribe(),a()}var l=i.subscribe({next:function(f){try{r(f,u)}catch(d){o(d),l.unsubscribe()}},error:o,complete:a})})},t.map=function(r){var i=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var a=zs(this);return new a(function(o){return i.subscribe({next:function(u){try{u=r(u)}catch(l){return o.error(l)}o.next(u)},error:function(u){o.error(u)},complete:function(){o.complete()}})})},t.filter=function(r){var i=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var a=zs(this);return new a(function(o){return i.subscribe({next:function(u){try{if(!r(u))return}catch(l){return o.error(l)}o.next(u)},error:function(u){o.error(u)},complete:function(){o.complete()}})})},t.reduce=function(r){var i=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var a=zs(this),o=arguments.length>1,u=!1,l=arguments[1],f=l;return new a(function(d){return i.subscribe({next:function(h){var p=!u;if(u=!0,!p||o)try{f=r(f,h)}catch(m){return d.error(m)}else f=h},error:function(h){d.error(h)},complete:function(){if(!u&&!o)return d.error(new TypeError("Cannot reduce an empty sequence"));d.next(f),d.complete()}})})},t.concat=function(){for(var r=this,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var u=zs(this);return new u(function(l){var f,d=0;function h(p){f=p.subscribe({next:function(m){l.next(m)},error:function(m){l.error(m)},complete:function(){d===a.length?(f=void 0,l.complete()):h(u.from(a[d++]))}})}return h(r),function(){f&&(f.unsubscribe(),f=void 0)}})},t.flatMap=function(r){var i=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var a=zs(this);return new a(function(o){var u=[],l=i.subscribe({next:function(d){if(r)try{d=r(d)}catch(p){return o.error(p)}var h=a.from(d).subscribe({next:function(p){o.next(p)},error:function(p){o.error(p)},complete:function(){var p=u.indexOf(h);p>=0&&u.splice(p,1),f()}});u.push(h)},error:function(d){o.error(d)},complete:function(){f()}});function f(){l.closed&&u.length===0&&o.complete()}return function(){u.forEach(function(d){return d.unsubscribe()}),l.unsubscribe()}})},t[$d]=function(){return this},e.from=function(r){var i=typeof this=="function"?this:e;if(r==null)throw new TypeError(r+" is not an object");var a=wl(r,$d);if(a){var o=a.call(r);if(Object(o)!==o)throw new TypeError(o+" is not an object");return i4(o)&&o.constructor===i?o:new i(function(u){return o.subscribe(u)})}if(Md("iterator")&&(a=wl(r,r4),a))return new i(function(u){El(function(){if(!u.closed){for(var l=t4(a.call(r)),f;!(f=l()).done;){var d=f.value;if(u.next(d),u.closed)return}u.complete()}})});if(Array.isArray(r))return new i(function(u){El(function(){if(!u.closed){for(var l=0;l<r.length;++l)if(u.next(r[l]),u.closed)return;u.complete()}})});throw new TypeError(r+" is not observable")},e.of=function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=typeof this=="function"?this:e;return new o(function(u){El(function(){if(!u.closed){for(var l=0;l<i.length;++l)if(u.next(i[l]),u.closed)return;u.complete()}})})},Fd(e,null,[{key:q0,get:function(){return this}}]),e}();Dd()&&Object.defineProperty(Et,Symbol("extensions"),{value:{symbol:$d,hostReportError:_o},configurable:!0});function u4(e){var t,n=e.Symbol;if(typeof n=="function")if(n.observable)t=n.observable;else{typeof n.for=="function"?t=n.for("https://github.com/benlesh/symbol-observable"):t=n("https://github.com/benlesh/symbol-observable");try{n.observable=t}catch{}}else t="@@observable";return t}var wo;typeof self<"u"?wo=self:typeof window<"u"?wo=window:typeof global<"u"?wo=global:typeof module<"u"?wo=module:wo=Function("return this")(),u4(wo);var H0=Et.prototype,B0="@@observable";H0[B0]||(H0[B0]=function(){return this});function l4(e){return e.catch(function(){}),e}var c4=Object.prototype.toString;function W0(e){return Ud(e)}function Ud(e,t){switch(c4.call(e)){case"[object Array]":{if(t=t||new Map,t.has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach(function(i,a){n[a]=Ud(i,t)}),n}case"[object Object]":{if(t=t||new Map,t.has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach(function(i){r[i]=Ud(e[i],t)}),r}default:return e}}function f4(e){var t=new Set([e]);return t.forEach(function(n){qt(n)&&d4(n)===n&&Object.getOwnPropertyNames(n).forEach(function(r){qt(n[r])&&t.add(n[r])})}),e}function d4(e){if(globalThis.__DEV__!==!1&&!Object.isFrozen(e))try{Object.freeze(e)}catch(t){if(t instanceof TypeError)return null;throw t}return e}function Eo(e){return globalThis.__DEV__!==!1&&f4(e),e}function Hs(e,t,n){var r=[];e.forEach(function(i){return i[t]&&r.push(i)}),r.forEach(function(i){return i[t](n)})}function zd(e,t,n){return new Et(function(r){var i={then:function(l){return new Promise(function(f){return f(l())})}};function a(l,f){return function(d){if(l){var h=function(){return r.closed?0:l(d)};i=i.then(h,h).then(function(p){return r.next(p)},function(p){return r.error(p)})}else r[f](d)}}var o={next:a(t,"next"),error:a(n,"error"),complete:function(){i.then(function(){return r.complete()})}},u=e.subscribe(o);return function(){return u.unsubscribe()}})}function G0(e){function t(n){Object.defineProperty(e,n,{value:Et})}return bd&&Symbol.species&&t(Symbol.species),t("@@species"),e}function Q0(e){return e&&typeof e.then=="function"}var So=function(e){yr(t,e);function t(n){var r=e.call(this,function(i){return r.addObserver(i),function(){return r.removeObserver(i)}})||this;return r.observers=new Set,r.promise=new Promise(function(i,a){r.resolve=i,r.reject=a}),r.handlers={next:function(i){r.sub!==null&&(r.latest=["next",i],r.notify("next",i),Hs(r.observers,"next",i))},error:function(i){var a=r.sub;a!==null&&(a&&setTimeout(function(){return a.unsubscribe()}),r.sub=null,r.latest=["error",i],r.reject(i),r.notify("error",i),Hs(r.observers,"error",i))},complete:function(){var i=r,a=i.sub,o=i.sources,u=o===void 0?[]:o;if(a!==null){var l=u.shift();l?Q0(l)?l.then(function(f){return r.sub=f.subscribe(r.handlers)},r.handlers.error):r.sub=l.subscribe(r.handlers):(a&&setTimeout(function(){return a.unsubscribe()}),r.sub=null,r.latest&&r.latest[0]==="next"?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),Hs(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(i){r.reject(i),r.sources=[],r.handlers.error(i)},r.promise.catch(function(i){}),typeof n=="function"&&(n=[new Et(n)]),Q0(n)?n.then(function(i){return r.start(i)},r.handlers.error):r.start(n),r}return t.prototype.start=function(n){this.sub===void 0&&(this.sources=Array.from(n),this.handlers.complete())},t.prototype.deliverLastMessage=function(n){if(this.latest){var r=this.latest[0],i=n[r];i&&i.call(n,this.latest[1]),this.sub===null&&r==="next"&&n.complete&&n.complete()}},t.prototype.addObserver=function(n){this.observers.has(n)||(this.deliverLastMessage(n),this.observers.add(n))},t.prototype.removeObserver=function(n){this.observers.delete(n)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(n,r){var i=this.nextResultListeners;i.size&&(this.nextResultListeners=new Set,i.forEach(function(a){return a(n,r)}))},t.prototype.beforeNext=function(n){var r=!1;this.nextResultListeners.add(function(i,a){r||(r=!0,n(i,a))})},t}(Et);G0(So);function xo(e){return"incremental"in e}function h4(e){return"hasNext"in e&&"data"in e}function p4(e){return xo(e)||h4(e)}function v4(e){return qt(e)&&"payload"in e}function Y0(e,t){var n=e,r=new Wi;return xo(t)&&_r(t.incremental)&&t.incremental.forEach(function(i){for(var a=i.data,o=i.path,u=o.length-1;u>=0;--u){var l=o[u],f=!isNaN(+l),d=f?[]:{};d[l]=a,a=d}n=r.merge(n,a)}),n}function Sl(e){var t=Hd(e);return _r(t)}function Hd(e){var t=_r(e.errors)?e.errors.slice(0):[];return xo(e)&&_r(e.incremental)&&e.incremental.forEach(function(n){n.errors&&t.push.apply(t,n.errors)}),t}function Ta(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach(function(r){r&&Object.keys(r).forEach(function(i){var a=r[i];a!==void 0&&(n[i]=a)})}),n}function Oa(e,t){return Ta(e,t,t.variables&&{variables:Ta(X(X({},e&&e.variables),t.variables))})}function Bd(e){return new Et(function(t){t.error(e)})}var K0=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r};function m4(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t.indexOf(i)<0)throw Fn(46,i)}return e}function g4(e,t){var n=X({},e),r=function(a){typeof a=="function"?n=X(X({},n),a(n)):n=X(X({},n),a)},i=function(){return X({},n)};return Object.defineProperty(t,"setContext",{enumerable:!1,value:r}),Object.defineProperty(t,"getContext",{enumerable:!1,value:i}),t}function y4(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName=typeof t.query!="string"?js(t.query)||void 0:""),t}function b4(e,t){var n=X({},e),r=new Set(Object.keys(e));return Vr(t,{Variable:function(i,a,o){o&&o.kind!=="VariableDefinition"&&r.delete(i.name.value)}}),r.forEach(function(i){delete n[i]}),n}function X0(e,t){return t?t(e):Et.of()}function Bs(e){return typeof e=="function"?new Ur(e):e}function xl(e){return e.request.length<=1}var Ur=function(){function e(t){t&&(this.request=t)}return e.empty=function(){return new e(function(){return Et.of()})},e.from=function(t){return t.length===0?e.empty():t.map(Bs).reduce(function(n,r){return n.concat(r)})},e.split=function(t,n,r){var i=Bs(n),a=Bs(r||new e(X0)),o;return xl(i)&&xl(a)?o=new e(function(u){return t(u)?i.request(u)||Et.of():a.request(u)||Et.of()}):o=new e(function(u,l){return t(u)?i.request(u,l)||Et.of():a.request(u,l)||Et.of()}),Object.assign(o,{left:i,right:a})},e.execute=function(t,n){return t.request(g4(n.context,y4(m4(n))))||Et.of()},e.concat=function(t,n){var r=Bs(t);if(xl(r))return globalThis.__DEV__!==!1&&Ce.warn(38,r),r;var i=Bs(n),a;return xl(i)?a=new e(function(o){return r.request(o,function(u){return i.request(u)||Et.of()})||Et.of()}):a=new e(function(o,u){return r.request(o,function(l){return i.request(l,u)||Et.of()})||Et.of()}),Object.assign(a,{left:r,right:i})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(X0)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(t,n){throw Fn(39)},e.prototype.onError=function(t,n){if(n&&n.error)return n.error(t),!1;throw t},e.prototype.setOnError=function(t){return this.onError=t,this},e}(),_4=Ur.from,w4=Ur.split,Wd=Ur.execute;function E4(e){var t,n=e[Symbol.asyncIterator]();return t={next:function(){return n.next()}},t[Symbol.asyncIterator]=function(){return this},t}function S4(e){var t=null,n=null,r=!1,i=[],a=[];function o(h){if(!n){if(a.length){var p=a.shift();if(Array.isArray(p)&&p[0])return p[0]({value:h,done:!1})}i.push(h)}}function u(h){n=h;var p=a.slice();p.forEach(function(m){m[1](h)}),!t||t()}function l(){r=!0;var h=a.slice();h.forEach(function(p){p[0]({value:void 0,done:!0})}),!t||t()}t=function(){t=null,e.removeListener("data",o),e.removeListener("error",u),e.removeListener("end",l),e.removeListener("finish",l),e.removeListener("close",l)},e.on("data",o),e.on("error",u),e.on("end",l),e.on("finish",l),e.on("close",l);function f(){return new Promise(function(h,p){if(n)return p(n);if(i.length)return h({value:i.shift(),done:!1});if(r)return h({value:void 0,done:!0});a.push([h,p])})}var d={next:function(){return f()}};return pl&&(d[Symbol.asyncIterator]=function(){return this}),d}function x4(e){var t=!1,n={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise(function(r,i){e.then(function(a){r({value:a,done:!1})}).catch(i)}))}};return pl&&(n[Symbol.asyncIterator]=function(){return this}),n}function Z0(e){var t={next:function(){return e.read()}};return pl&&(t[Symbol.asyncIterator]=function(){return this}),t}function C4(e){return!!e.body}function T4(e){return!!e.getReader}function O4(e){return!!(pl&&e[Symbol.asyncIterator])}function k4(e){return!!e.stream}function R4(e){return!!e.arrayBuffer}function A4(e){return!!e.pipe}function P4(e){var t=e;if(C4(e)&&(t=e.body),O4(t))return E4(t);if(T4(t))return Z0(t.getReader());if(k4(t))return Z0(t.stream().getReader());if(R4(t))return x4(t.arrayBuffer());if(A4(t))return S4(t);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var Cl=Symbol();function J0(e){return e.extensions?Array.isArray(e.extensions[Cl]):!1}function ey(e){return e.hasOwnProperty("graphQLErrors")}var N4=function(e){var t=Tn(Tn(Tn([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(n){return qt(n)&&n.message||"Error message not found."}).join(`
52
+ `)))!==null&&t!==void 0?t:!1}function a0(e){return e.kind===Mt.FIELD||e.kind===Mt.FRAGMENT_SPREAD||e.kind===Mt.INLINE_FRAGMENT}function Fs(e,t){var n=e.directives;return!n||!n.length?!0:Z6(n).every(function(r){var i=r.directive,a=r.ifArgument,o=!1;return a.value.kind==="Variable"?(o=t&&t[a.value.name.value],Ce(o!==void 0,78,i.name.value)):o=a.value.value,i.name.value==="skip"?!o:o})}function Ds(e,t,n){var r=new Set(e),i=r.size;return Vr(t,{Directive:function(a){if(r.delete(a.name.value)&&(!n||!r.size))return dl}}),n?!r.size:r.size<i}function K6(e){return e&&Ds(["client","export"],e,!0)}function X6(e){var t=e.name.value;return t==="skip"||t==="include"}function Z6(e){var t=[];return e&&e.length&&e.forEach(function(n){if(X6(n)){var r=n.arguments,i=n.name.value;Ce(r&&r.length===1,79,i);var a=r[0];Ce(a.name&&a.name.value==="if",80,i);var o=a.value;Ce(o&&(o.kind==="Variable"||o.kind==="BooleanValue"),81,i),t.push({directive:n,ifArgument:a})}}),t}function J6(e){var t,n,r=(t=e.directives)===null||t===void 0?void 0:t.find(function(a){var o=a.name;return o.value==="unmask"});if(!r)return"mask";var i=(n=r.arguments)===null||n===void 0?void 0:n.find(function(a){var o=a.name;return o.value==="mode"});return globalThis.__DEV__!==!1&&i&&(i.value.kind===Mt.VARIABLE?globalThis.__DEV__!==!1&&Ce.warn(82):i.value.kind!==Mt.STRING?globalThis.__DEV__!==!1&&Ce.warn(83):i.value.value!=="migrate"&&globalThis.__DEV__!==!1&&Ce.warn(84,i.value.value)),i&&"value"in i.value&&i.value.value==="migrate"?"migrate":"unmask"}const eT=()=>Object.create(null),{forEach:tT,slice:o0}=Array.prototype,{hasOwnProperty:nT}=Object.prototype;class wi{constructor(t=!0,n=eT){this.weakness=t,this.makeData=n}lookup(){return this.lookupArray(arguments)}lookupArray(t){let n=this;return tT.call(t,r=>n=n.getChildTrie(r)),nT.call(n,"data")?n.data:n.data=this.makeData(o0.call(t))}peek(){return this.peekArray(arguments)}peekArray(t){let n=this;for(let r=0,i=t.length;n&&r<i;++r){const a=n.mapFor(t[r],!1);n=a&&a.get(t[r])}return n&&n.data}remove(){return this.removeArray(arguments)}removeArray(t){let n;if(t.length){const r=t[0],i=this.mapFor(r,!1),a=i&&i.get(r);a&&(n=a.removeArray(o0.call(t,1)),!a.data&&!a.weak&&!(a.strong&&a.strong.size)&&i.delete(r))}else n=this.data,delete this.data;return n}getChildTrie(t){const n=this.mapFor(t,!0);let r=n.get(t);return r||n.set(t,r=new wi(this.weakness,this.makeData)),r}mapFor(t,n){return this.weakness&&rT(t)?this.weak||(n?this.weak=new WeakMap:void 0):this.strong||(n?this.strong=new Map:void 0)}}function rT(e){switch(typeof e){case"object":if(e===null)break;case"function":return!0}return!1}var s0=$r(function(){return navigator.product})=="ReactNative",Sa=typeof WeakMap=="function"&&!(s0&&!global.HermesInternal),yd=typeof WeakSet=="function",bd=typeof Symbol=="function"&&typeof Symbol.for=="function",pl=bd&&Symbol.asyncIterator,u0=typeof $r(function(){return window.document.createElement})=="function",iT=$r(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,aT=(u0||s0)&&!iT;function qt(e){return e!==null&&typeof e=="object"}function oT(e,t){var n=t,r=[];e.definitions.forEach(function(a){if(a.kind==="OperationDefinition")throw Fn(85,a.operation,a.name?" named '".concat(a.name.value,"'"):"");a.kind==="FragmentDefinition"&&r.push(a)}),typeof n>"u"&&(Ce(r.length===1,86,r.length),n=r[0].name.value);var i=X(X({},e),{definitions:Tn([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)});return i}function fo(e){e===void 0&&(e=[]);var t={};return e.forEach(function(n){t[n.name.value]=n}),t}function vl(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{var n=e.name.value;if(typeof t=="function")return t(n);var r=t&&t[n];return Ce(r,87,n),r||null}default:return null}}function sT(e){var t=!0;return Vr(e,{FragmentSpread:function(n){if(t=!!n.directives&&n.directives.some(function(r){return r.name.value==="unmask"}),!t)return dl}}),t}function uT(){}class _d{constructor(t=1/0,n=uT){this.max=t,this.dispose=n,this.map=new Map,this.newest=null,this.oldest=null}has(t){return this.map.has(t)}get(t){const n=this.getNode(t);return n&&n.value}get size(){return this.map.size}getNode(t){const n=this.map.get(t);if(n&&n!==this.newest){const{older:r,newer:i}=n;i&&(i.older=r),r&&(r.newer=i),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=i)}return n}set(t,n){let r=this.getNode(t);return r?r.value=n:(r={key:t,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(t,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(t){const n=this.map.get(t);return n?(n===this.newest&&(this.newest=n.older),n===this.oldest&&(this.oldest=n.newer),n.newer&&(n.newer.older=n.older),n.older&&(n.older.newer=n.newer),this.map.delete(t),this.dispose(n.value,t),!0):!1}}function wd(){}const lT=wd,cT=typeof WeakRef<"u"?WeakRef:function(e){return{deref:()=>e}},fT=typeof WeakMap<"u"?WeakMap:Map,dT=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:wd,unregister:wd}},hT=10024;class ml{constructor(t=1/0,n=lT){this.max=t,this.dispose=n,this.map=new fT,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const r=this.unfinalizedNodes.values();for(let i=0;i<hT;i++){const a=r.next().value;if(!a)break;this.unfinalizedNodes.delete(a);const o=a.key;delete a.key,a.keyRef=new cT(o),this.registry.register(o,a,a)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new dT(this.deleteNode.bind(this))}has(t){return this.map.has(t)}get(t){const n=this.getNode(t);return n&&n.value}getNode(t){const n=this.map.get(t);if(n&&n!==this.newest){const{older:r,newer:i}=n;i&&(i.older=r),r&&(r.newer=i),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=i)}return n}set(t,n){let r=this.getNode(t);return r?r.value=n:(r={key:t,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(t,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(t){t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.size--;const n=t.key||t.keyRef&&t.keyRef.deref();this.dispose(t.value,n),t.keyRef?this.registry.unregister(t):this.unfinalizedNodes.delete(t),n&&this.map.delete(n)}delete(t){const n=this.map.get(t);return n?(this.deleteNode(n),!0):!1}scheduleFinalization(t){this.unfinalizedNodes.add(t),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var Ed=new WeakSet;function l0(e){e.size<=(e.max||-1)||Ed.has(e)||(Ed.add(e),setTimeout(function(){e.clean(),Ed.delete(e)},100))}var Sd=function(e,t){var n=new ml(e,t);return n.set=function(r,i){var a=ml.prototype.set.call(this,r,i);return l0(this),a},n},pT=function(e,t){var n=new _d(e,t);return n.set=function(r,i){var a=_d.prototype.set.call(this,r,i);return l0(this),a},n},vT=Symbol.for("apollo.cacheSize"),ti=X({},pd[vT]),xa={};function xd(e,t){xa[e]=t}var mT=globalThis.__DEV__!==!1?_T:void 0,gT=globalThis.__DEV__!==!1?wT:void 0,yT=globalThis.__DEV__!==!1?c0:void 0;function bT(){var e={parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4};return Object.fromEntries(Object.entries(e).map(function(t){var n=t[0],r=t[1];return[n,ti[n]||r]}))}function _T(){var e,t,n,r,i;if(globalThis.__DEV__===!1)throw new Error("only supported in development mode");return{limits:bT(),sizes:X({print:(e=xa.print)===null||e===void 0?void 0:e.call(xa),parser:(t=xa.parser)===null||t===void 0?void 0:t.call(xa),canonicalStringify:(n=xa.canonicalStringify)===null||n===void 0?void 0:n.call(xa),links:Td(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:d0(this.queryManager.documentTransform)}},(i=(r=this.cache).getMemoryInternals)===null||i===void 0?void 0:i.call(r))}}function c0(){return{cache:{fragmentQueryDocuments:qi(this.getFragmentDoc)}}}function wT(){var e=this.config.fragments;return X(X({},c0.apply(this)),{addTypenameDocumentTransform:d0(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:qi(this.storeReader.executeSelectionSet),executeSubSelectedArray:qi(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:qi(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:qi(e==null?void 0:e.findFragmentSpreads),lookup:qi(e==null?void 0:e.lookup),transform:qi(e==null?void 0:e.transform)}})}function ET(e){return!!e&&"dirtyKey"in e}function qi(e){return ET(e)?e.size:void 0}function f0(e){return e!=null}function d0(e){return Cd(e).map(function(t){return{cache:t}})}function Cd(e){return e?Tn(Tn([qi(e==null?void 0:e.performWork)],Cd(e==null?void 0:e.left),!0),Cd(e==null?void 0:e.right),!0).filter(f0):[]}function Td(e){var t;return e?Tn(Tn([(t=e==null?void 0:e.getMemoryInternals)===null||t===void 0?void 0:t.call(e)],Td(e==null?void 0:e.left),!0),Td(e==null?void 0:e.right),!0).filter(f0):[]}var Ui=Object.assign(function(t){return JSON.stringify(t,ST)},{reset:function(){ho=new pT(ti.canonicalStringify||1e3)}});globalThis.__DEV__!==!1&&xd("canonicalStringify",function(){return ho.size});var ho;Ui.reset();function ST(e,t){if(t&&typeof t=="object"){var n=Object.getPrototypeOf(t);if(n===Object.prototype||n===null){var r=Object.keys(t);if(r.every(xT))return t;var i=JSON.stringify(r),a=ho.get(i);if(!a){r.sort();var o=JSON.stringify(r);a=ho.get(o)||r,ho.set(i,a),ho.set(o,a)}var u=Object.create(n);return a.forEach(function(l){u[l]=t[l]}),u}}return t}function xT(e,t,n){return t===0||n[t-1]<=e}function po(e){return{__ref:String(e)}}function bt(e){return!!(e&&typeof e=="object"&&typeof e.__ref=="string")}function CT(e){return qt(e)&&e.kind==="Document"&&Array.isArray(e.definitions)}function TT(e){return e.kind==="StringValue"}function OT(e){return e.kind==="BooleanValue"}function kT(e){return e.kind==="IntValue"}function RT(e){return e.kind==="FloatValue"}function AT(e){return e.kind==="Variable"}function PT(e){return e.kind==="ObjectValue"}function NT(e){return e.kind==="ListValue"}function IT(e){return e.kind==="EnumValue"}function LT(e){return e.kind==="NullValue"}function vo(e,t,n,r){if(kT(n)||RT(n))e[t.value]=Number(n.value);else if(OT(n)||TT(n))e[t.value]=n.value;else if(PT(n)){var i={};n.fields.map(function(o){return vo(i,o.name,o.value,r)}),e[t.value]=i}else if(AT(n)){var a=(r||{})[n.name.value];e[t.value]=a}else if(NT(n))e[t.value]=n.values.map(function(o){var u={};return vo(u,t,o,r),u[t.value]});else if(IT(n))e[t.value]=n.value;else if(LT(n))e[t.value]=null;else throw Fn(96,t.value,n.kind)}function FT(e,t){var n=null;e.directives&&(n={},e.directives.forEach(function(i){n[i.name.value]={},i.arguments&&i.arguments.forEach(function(a){var o=a.name,u=a.value;return vo(n[i.name.value],o,u,t)})}));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(i){var a=i.name,o=i.value;return vo(r,a,o,t)})),h0(e.name.value,r,n)}var DT=["connection","include","skip","client","rest","export","nonreactive"],Ms=Ui,h0=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key)if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach(function(u){i[u]=t[u]}),"".concat(n.connection.key,"(").concat(Ms(i),")")}else return n.connection.key;var a=e;if(t){var o=Ms(t);a+="(".concat(o,")")}return n&&Object.keys(n).forEach(function(u){DT.indexOf(u)===-1&&(n[u]&&Object.keys(n[u]).length?a+="@".concat(u,"(").concat(Ms(n[u]),")"):a+="@".concat(u))}),a},{setStringify:function(e){var t=Ms;return Ms=e,t}});function gl(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(r){var i=r.name,a=r.value;return vo(n,i,a,t)}),n}return null}function Ei(e){return e.alias?e.alias.value:e.name.value}function Od(e,t,n){for(var r,i=0,a=t.selections;i<a.length;i++){var o=a[i];if(zi(o)){if(o.name.value==="__typename")return e[Ei(o)]}else r?r.push(o):r=[o]}if(typeof e.__typename=="string")return e.__typename;if(r)for(var u=0,l=r;u<l.length;u++){var o=l[u],f=Od(e,vl(o,n).selectionSet,n);if(typeof f=="string")return f}}function zi(e){return e.kind==="Field"}function MT(e){return e.kind==="InlineFragment"}function mo(e){Ce(e&&e.kind==="Document",88);var t=e.definitions.filter(function(n){return n.kind!=="FragmentDefinition"}).map(function(n){if(n.kind!=="OperationDefinition")throw Fn(89,n.kind);return n});return Ce(t.length<=1,90,t.length),e}function Ca(e){return mo(e),e.definitions.filter(function(t){return t.kind==="OperationDefinition"})[0]}function js(e){return e.definitions.filter(function(t){return t.kind==="OperationDefinition"&&!!t.name}).map(function(t){return t.name.value})[0]||null}function go(e){return e.definitions.filter(function(t){return t.kind==="FragmentDefinition"})}function p0(e){var t=Ca(e);return Ce(t&&t.operation==="query",91),t}function v0(e){Ce(e.kind==="Document",92),Ce(e.definitions.length<=1,93);var t=e.definitions[0];return Ce(t.kind==="FragmentDefinition",94),t}function yo(e){mo(e);for(var t,n=0,r=e.definitions;n<r.length;n++){var i=r[n];if(i.kind==="OperationDefinition"){var a=i.operation;if(a==="query"||a==="mutation"||a==="subscription")return i}i.kind==="FragmentDefinition"&&!t&&(t=i)}if(t)return t;throw Fn(95)}function kd(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach(function(r){r.defaultValue&&vo(t,r.variable.name,r.defaultValue)}),t}let _n=null;const m0={};let jT=1;const $T=()=>class{constructor(){this.id=["slot",jT++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let t=_n;t;t=t.parent)if(this.id in t.slots){const n=t.slots[this.id];if(n===m0)break;return t!==_n&&(_n.slots[this.id]=n),!0}return _n&&(_n.slots[this.id]=m0),!1}getValue(){if(this.hasValue())return _n.slots[this.id]}withValue(t,n,r,i){const a={__proto__:null,[this.id]:t},o=_n;_n={parent:o,slots:a};try{return n.apply(i,r)}finally{_n=o}}static bind(t){const n=_n;return function(){const r=_n;try{return _n=n,t.apply(this,arguments)}finally{_n=r}}}static noContext(t,n,r){if(_n){const i=_n;try{return _n=null,t.apply(r,n)}finally{_n=i}}else return t.apply(r,n)}};function g0(e){try{return e()}catch{}}const Rd="@wry/context:Slot",y0=g0(()=>globalThis)||g0(()=>global)||Object.create(null),$s=y0[Rd]||Array[Rd]||function(e){try{Object.defineProperty(y0,Rd,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}($T()),{bind:rz,noContext:iz}=$s,yl=new $s,{hasOwnProperty:VT}=Object.prototype,Ad=Array.from||function(e){const t=[];return e.forEach(n=>t.push(n)),t};function Pd(e){const{unsubscribe:t}=e;typeof t=="function"&&(e.unsubscribe=void 0,t())}const Vs=[],qT=100;function bo(e,t){if(!e)throw new Error(t||"assertion failure")}function b0(e,t){const n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function _0(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function w0(e){return e.slice(0)}class bl{constructor(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++bl.count}peek(){if(this.value.length===1&&!Hi(this))return E0(this),this.value[0]}recompute(t){return bo(!this.recomputing,"already recomputing"),E0(this),Hi(this)?UT(this,t):_0(this.value)}setDirty(){this.dirty||(this.dirty=!0,S0(this),Pd(this))}dispose(){this.setDirty(),k0(this),Nd(this,(t,n)=>{t.setDirty(),R0(t,this)})}forget(){this.dispose()}dependOn(t){t.add(this),this.deps||(this.deps=Vs.pop()||new Set),this.deps.add(t)}forgetDeps(){this.deps&&(Ad(this.deps).forEach(t=>t.delete(this)),this.deps.clear(),Vs.push(this.deps),this.deps=null)}}bl.count=0;function E0(e){const t=yl.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Hi(e)?C0(t,e):T0(t,e),t}function UT(e,t){return k0(e),yl.withValue(e,zT,[e,t]),BT(e,t)&&HT(e),_0(e.value)}function zT(e,t){e.recomputing=!0;const{normalizeResult:n}=e;let r;n&&e.value.length===1&&(r=w0(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!b0(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch{}}catch(i){e.value[1]=i}e.recomputing=!1}function Hi(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function HT(e){e.dirty=!1,!Hi(e)&&x0(e)}function S0(e){Nd(e,C0)}function x0(e){Nd(e,T0)}function Nd(e,t){const n=e.parents.size;if(n){const r=Ad(e.parents);for(let i=0;i<n;++i)t(r[i],e)}}function C0(e,t){bo(e.childValues.has(t)),bo(Hi(t));const n=!Hi(e);if(!e.dirtyChildren)e.dirtyChildren=Vs.pop()||new Set;else if(e.dirtyChildren.has(t))return;e.dirtyChildren.add(t),n&&S0(e)}function T0(e,t){bo(e.childValues.has(t)),bo(!Hi(t));const n=e.childValues.get(t);n.length===0?e.childValues.set(t,w0(t.value)):b0(n,t.value)||e.setDirty(),O0(e,t),!Hi(e)&&x0(e)}function O0(e,t){const n=e.dirtyChildren;n&&(n.delete(t),n.size===0&&(Vs.length<qT&&Vs.push(n),e.dirtyChildren=null))}function k0(e){e.childValues.size>0&&e.childValues.forEach((t,n)=>{R0(e,n)}),e.forgetDeps(),bo(e.dirtyChildren===null)}function R0(e,t){t.parents.delete(e),e.childValues.delete(t),O0(e,t)}function BT(e,t){if(typeof e.subscribe=="function")try{Pd(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}const WT={setDirty:!0,dispose:!0,forget:!0};function A0(e){const t=new Map;function n(r){const i=yl.getValue();if(i){let a=t.get(r);a||t.set(r,a=new Set),i.dependOn(a)}}return n.dirty=function(i,a){const o=t.get(i);if(o){const u=a&&VT.call(WT,a)?a:"setDirty";Ad(o).forEach(l=>l[u]()),t.delete(i),Pd(o)}},n}let P0;function GT(...e){return(P0||(P0=new wi(typeof WeakMap=="function"))).lookupArray(e)}const Id=new Set;function qs(e,{max:t=Math.pow(2,16),keyArgs:n,makeCacheKey:r=GT,normalizeResult:i,subscribe:a,cache:o=_d}=Object.create(null)){const u=typeof o=="function"?new o(t,p=>p.dispose()):o,l=function(){const p=r.apply(null,n?n.apply(null,arguments):arguments);if(p===void 0)return e.apply(null,arguments);let m=u.get(p);m||(u.set(p,m=new bl(e)),m.normalizeResult=i,m.subscribe=a,m.forget=()=>u.delete(p));const y=m.recompute(Array.prototype.slice.call(arguments));return u.set(p,m),Id.add(u),yl.hasValue()||(Id.forEach(g=>g.clean()),Id.clear()),y};Object.defineProperty(l,"size",{get:()=>u.size,configurable:!1,enumerable:!1}),Object.freeze(l.options={max:t,keyArgs:n,makeCacheKey:r,normalizeResult:i,subscribe:a,cache:u});function f(p){const m=p&&u.get(p);m&&m.setDirty()}l.dirtyKey=f,l.dirty=function(){f(r.apply(null,arguments))};function d(p){const m=p&&u.get(p);if(m)return m.peek()}l.peekKey=d,l.peek=function(){return d(r.apply(null,arguments))};function h(p){return p?u.delete(p):!1}return l.forgetKey=h,l.forget=function(){return h(r.apply(null,arguments))},l.makeCacheKey=r,l.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(l)}function QT(e){return e}var N0=function(){function e(t,n){n===void 0&&(n=Object.create(null)),this.resultCache=yd?new WeakSet:new Set,this.transform=t,n.getCacheKey&&(this.getCacheKey=n.getCacheKey),this.cached=n.cache!==!1,this.resetCache()}return e.prototype.getCacheKey=function(t){return[t]},e.identity=function(){return new e(QT,{cache:!1})},e.split=function(t,n,r){return r===void 0&&(r=e.identity()),Object.assign(new e(function(i){var a=t(i)?n:r;return a.transformDocument(i)},{cache:!1}),{left:n,right:r})},e.prototype.resetCache=function(){var t=this;if(this.cached){var n=new wi(Sa);this.performWork=qs(e.prototype.performWork.bind(this),{makeCacheKey:function(r){var i=t.getCacheKey(r);if(i)return Ce(Array.isArray(i),77),n.lookupArray(i)},max:ti["documentTransform.cache"],cache:ml})}},e.prototype.performWork=function(t){return mo(t),this.transform(t)},e.prototype.transformDocument=function(t){if(this.resultCache.has(t))return t;var n=this.performWork(t);return this.resultCache.add(n),n},e.prototype.concat=function(t){var n=this;return Object.assign(new e(function(r){return t.transformDocument(n.transformDocument(r))},{cache:!1}),{left:this,right:t})},e}(),Us,Bi=Object.assign(function(e){var t=Us.get(e);return t||(t=G6(e),Us.set(e,t)),t},{reset:function(){Us=new Sd(ti.print||2e3)}});Bi.reset(),globalThis.__DEV__!==!1&&xd("print",function(){return Us?Us.size:0});var Zt=Array.isArray;function _r(e){return Array.isArray(e)&&e.length>0}var I0={kind:Mt.FIELD,name:{kind:Mt.NAME,value:"__typename"}};function L0(e,t){return!e||e.selectionSet.selections.every(function(n){return n.kind===Mt.FRAGMENT_SPREAD&&L0(t[n.name.value],t)})}function YT(e){return L0(Ca(e)||v0(e),fo(go(e)))?null:e}function KT(e){var t=new Map,n=new Map;return e.forEach(function(r){r&&(r.name?t.set(r.name,r):r.test&&n.set(r.test,r))}),function(r){var i=t.get(r.name.value);return!i&&n.size&&n.forEach(function(a,o){o(r)&&(i=a)}),i}}function F0(e){var t=new Map;return function(r){r===void 0&&(r=e);var i=t.get(r);return i||t.set(r,i={variables:new Set,fragmentSpreads:new Set}),i}}function D0(e,t){mo(t);for(var n=F0(""),r=F0(""),i=function(w){for(var S=0,C=void 0;S<w.length&&(C=w[S]);++S)if(!Zt(C)){if(C.kind===Mt.OPERATION_DEFINITION)return n(C.name&&C.name.value);if(C.kind===Mt.FRAGMENT_DEFINITION)return r(C.name.value)}return globalThis.__DEV__!==!1&&Ce.error(97),null},a=0,o=t.definitions.length-1;o>=0;--o)t.definitions[o].kind===Mt.OPERATION_DEFINITION&&++a;var u=KT(e),l=function(w){return _r(w)&&w.map(u).some(function(S){return S&&S.remove})},f=new Map,d=!1,h={enter:function(w){if(l(w.directives))return d=!0,null}},p=Vr(t,{Field:h,InlineFragment:h,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(w,S,C,T,_){var x=i(_);x&&x.variables.add(w.name.value)}},FragmentSpread:{enter:function(w,S,C,T,_){if(l(w.directives))return d=!0,null;var x=i(_);x&&x.fragmentSpreads.add(w.name.value)}},FragmentDefinition:{enter:function(w,S,C,T){f.set(JSON.stringify(T),w)},leave:function(w,S,C,T){var _=f.get(JSON.stringify(T));if(w===_)return w;if(a>0&&w.selectionSet.selections.every(function(x){return x.kind===Mt.FIELD&&x.name.value==="__typename"}))return r(w.name.value).removed=!0,d=!0,null}},Directive:{leave:function(w){if(u(w))return d=!0,null}}});if(!d)return t;var m=function(w){return w.transitiveVars||(w.transitiveVars=new Set(w.variables),w.removed||w.fragmentSpreads.forEach(function(S){m(r(S)).transitiveVars.forEach(function(C){w.transitiveVars.add(C)})})),w},y=new Set;p.definitions.forEach(function(w){w.kind===Mt.OPERATION_DEFINITION?m(n(w.name&&w.name.value)).fragmentSpreads.forEach(function(S){y.add(S)}):w.kind===Mt.FRAGMENT_DEFINITION&&a===0&&!r(w.name.value).removed&&y.add(w.name.value)}),y.forEach(function(w){m(r(w)).fragmentSpreads.forEach(function(S){y.add(S)})});var g=function(w){return!!(!y.has(w)||r(w).removed)},b={enter:function(w){if(g(w.name.value))return null}};return YT(Vr(p,{FragmentSpread:b,FragmentDefinition:b,OperationDefinition:{leave:function(w){if(w.variableDefinitions){var S=m(n(w.name&&w.name.value)).transitiveVars;if(S.size<w.variableDefinitions.length)return X(X({},w),{variableDefinitions:w.variableDefinitions.filter(function(C){return S.has(C.variable.name.value)})})}}}}))}var Ld=Object.assign(function(e){return Vr(e,{SelectionSet:{enter:function(t,n,r){if(!(r&&r.kind===Mt.OPERATION_DEFINITION)){var i=t.selections;if(i){var a=i.some(function(u){return zi(u)&&(u.name.value==="__typename"||u.name.value.lastIndexOf("__",0)===0)});if(!a){var o=r;if(!(zi(o)&&o.directives&&o.directives.some(function(u){return u.name.value==="export"})))return X(X({},t),{selections:Tn(Tn([],i,!0),[I0],!1)})}}}}}})},{added:function(e){return e===I0}});function XT(e){var t=yo(e),n=t.operation;if(n==="query")return e;var r=Vr(e,{OperationDefinition:{enter:function(i){return X(X({},i),{operation:"query"})}}});return r}function M0(e){mo(e);var t=D0([{test:function(n){return n.name.value==="client"},remove:!0}],e);return t}function ZT(e){return mo(e),Vr(e,{FragmentSpread:function(t){var n;if(!(!((n=t.directives)===null||n===void 0)&&n.some(function(r){return r.name.value==="unmask"})))return X(X({},t),{directives:Tn(Tn([],t.directives||[],!0),[{kind:Mt.DIRECTIVE,name:{kind:Mt.NAME,value:"nonreactive"}}],!1)})}})}var JT=Object.prototype.hasOwnProperty;function j0(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return _l(e)}function _l(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new Wi,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var e4=function(e,t,n){return this.merge(e[n],t[n])},Wi=function(){function e(t){t===void 0&&(t=e4),this.reconciler=t,this.isObject=qt,this.pastCopies=new Set}return e.prototype.merge=function(t,n){for(var r=this,i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];return qt(n)&&qt(t)?(Object.keys(n).forEach(function(o){if(JT.call(t,o)){var u=t[o];if(n[o]!==u){var l=r.reconciler.apply(r,Tn([t,n,o],i,!1));l!==u&&(t=r.shallowCopyForMerge(t),t[o]=l)}}else t=r.shallowCopyForMerge(t),t[o]=n[o]}),t):n},e.prototype.shallowCopyForMerge=function(t){return qt(t)&&(this.pastCopies.has(t)||(Array.isArray(t)?t=t.slice(0):t=X({__proto__:Object.getPrototypeOf(t)},t),this.pastCopies.add(t))),t},e}();function t4(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=n4(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
53
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n4(e,t){if(e){if(typeof e=="string")return $0(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 $0(e,t)}}function $0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function V0(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fd(e,t,n){return t&&V0(e.prototype,t),n&&V0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Dd=function(){return typeof Symbol=="function"},Md=function(e){return Dd()&&!!Symbol[e]},jd=function(e){return Md(e)?Symbol[e]:"@@"+e};Dd()&&!Md("observable")&&(Symbol.observable=Symbol("observable"));var r4=jd("iterator"),$d=jd("observable"),q0=jd("species");function wl(e,t){var n=e[t];if(n!=null){if(typeof n!="function")throw new TypeError(n+" is not a function");return n}}function zs(e){var t=e.constructor;return t!==void 0&&(t=t[q0],t===null&&(t=void 0)),t!==void 0?t:_t}function i4(e){return e instanceof _t}function _o(e){_o.log?_o.log(e):setTimeout(function(){throw e})}function El(e){Promise.resolve().then(function(){try{e()}catch(t){_o(t)}})}function U0(e){var t=e._cleanup;if(t!==void 0&&(e._cleanup=void 0,!!t))try{if(typeof t=="function")t();else{var n=wl(t,"unsubscribe");n&&n.call(t)}}catch(r){_o(r)}}function Vd(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function a4(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(z0(e,t[n].type,t[n].value),e._state!=="closed");++n);}}function z0(e,t,n){e._state="running";var r=e._observer;try{var i=wl(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(Vd(e),i)i.call(r,n);else throw n;break;case"complete":Vd(e),i&&i.call(r);break}}catch(a){_o(a)}e._state==="closed"?U0(e):e._state==="running"&&(e._state="ready")}function qd(e,t,n){if(e._state!=="closed"){if(e._state==="buffering"){e._queue.push({type:t,value:n});return}if(e._state!=="ready"){e._state="buffering",e._queue=[{type:t,value:n}],El(function(){return a4(e)});return}z0(e,t,n)}}var o4=function(){function e(n,r){this._cleanup=void 0,this._observer=n,this._queue=void 0,this._state="initializing";var i=new s4(this);try{this._cleanup=r.call(void 0,i)}catch(a){i.error(a)}this._state==="initializing"&&(this._state="ready")}var t=e.prototype;return t.unsubscribe=function(){this._state!=="closed"&&(Vd(this),U0(this))},Fd(e,[{key:"closed",get:function(){return this._state==="closed"}}]),e}(),s4=function(){function e(n){this._subscription=n}var t=e.prototype;return t.next=function(r){qd(this._subscription,"next",r)},t.error=function(r){qd(this._subscription,"error",r)},t.complete=function(){qd(this._subscription,"complete")},Fd(e,[{key:"closed",get:function(){return this._subscription._state==="closed"}}]),e}(),_t=function(){function e(n){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if(typeof n!="function")throw new TypeError("Observable initializer must be a function");this._subscriber=n}var t=e.prototype;return t.subscribe=function(r){return(typeof r!="object"||r===null)&&(r={next:r,error:arguments[1],complete:arguments[2]}),new o4(r,this._subscriber)},t.forEach=function(r){var i=this;return new Promise(function(a,o){if(typeof r!="function"){o(new TypeError(r+" is not a function"));return}function u(){l.unsubscribe(),a()}var l=i.subscribe({next:function(f){try{r(f,u)}catch(d){o(d),l.unsubscribe()}},error:o,complete:a})})},t.map=function(r){var i=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var a=zs(this);return new a(function(o){return i.subscribe({next:function(u){try{u=r(u)}catch(l){return o.error(l)}o.next(u)},error:function(u){o.error(u)},complete:function(){o.complete()}})})},t.filter=function(r){var i=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var a=zs(this);return new a(function(o){return i.subscribe({next:function(u){try{if(!r(u))return}catch(l){return o.error(l)}o.next(u)},error:function(u){o.error(u)},complete:function(){o.complete()}})})},t.reduce=function(r){var i=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var a=zs(this),o=arguments.length>1,u=!1,l=arguments[1],f=l;return new a(function(d){return i.subscribe({next:function(h){var p=!u;if(u=!0,!p||o)try{f=r(f,h)}catch(m){return d.error(m)}else f=h},error:function(h){d.error(h)},complete:function(){if(!u&&!o)return d.error(new TypeError("Cannot reduce an empty sequence"));d.next(f),d.complete()}})})},t.concat=function(){for(var r=this,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var u=zs(this);return new u(function(l){var f,d=0;function h(p){f=p.subscribe({next:function(m){l.next(m)},error:function(m){l.error(m)},complete:function(){d===a.length?(f=void 0,l.complete()):h(u.from(a[d++]))}})}return h(r),function(){f&&(f.unsubscribe(),f=void 0)}})},t.flatMap=function(r){var i=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var a=zs(this);return new a(function(o){var u=[],l=i.subscribe({next:function(d){if(r)try{d=r(d)}catch(p){return o.error(p)}var h=a.from(d).subscribe({next:function(p){o.next(p)},error:function(p){o.error(p)},complete:function(){var p=u.indexOf(h);p>=0&&u.splice(p,1),f()}});u.push(h)},error:function(d){o.error(d)},complete:function(){f()}});function f(){l.closed&&u.length===0&&o.complete()}return function(){u.forEach(function(d){return d.unsubscribe()}),l.unsubscribe()}})},t[$d]=function(){return this},e.from=function(r){var i=typeof this=="function"?this:e;if(r==null)throw new TypeError(r+" is not an object");var a=wl(r,$d);if(a){var o=a.call(r);if(Object(o)!==o)throw new TypeError(o+" is not an object");return i4(o)&&o.constructor===i?o:new i(function(u){return o.subscribe(u)})}if(Md("iterator")&&(a=wl(r,r4),a))return new i(function(u){El(function(){if(!u.closed){for(var l=t4(a.call(r)),f;!(f=l()).done;){var d=f.value;if(u.next(d),u.closed)return}u.complete()}})});if(Array.isArray(r))return new i(function(u){El(function(){if(!u.closed){for(var l=0;l<r.length;++l)if(u.next(r[l]),u.closed)return;u.complete()}})});throw new TypeError(r+" is not observable")},e.of=function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=typeof this=="function"?this:e;return new o(function(u){El(function(){if(!u.closed){for(var l=0;l<i.length;++l)if(u.next(i[l]),u.closed)return;u.complete()}})})},Fd(e,null,[{key:q0,get:function(){return this}}]),e}();Dd()&&Object.defineProperty(_t,Symbol("extensions"),{value:{symbol:$d,hostReportError:_o},configurable:!0});function u4(e){var t,n=e.Symbol;if(typeof n=="function")if(n.observable)t=n.observable;else{typeof n.for=="function"?t=n.for("https://github.com/benlesh/symbol-observable"):t=n("https://github.com/benlesh/symbol-observable");try{n.observable=t}catch{}}else t="@@observable";return t}var wo;typeof self<"u"?wo=self:typeof window<"u"?wo=window:typeof global<"u"?wo=global:typeof module<"u"?wo=module:wo=Function("return this")(),u4(wo);var H0=_t.prototype,B0="@@observable";H0[B0]||(H0[B0]=function(){return this});function l4(e){return e.catch(function(){}),e}var c4=Object.prototype.toString;function W0(e){return Ud(e)}function Ud(e,t){switch(c4.call(e)){case"[object Array]":{if(t=t||new Map,t.has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach(function(i,a){n[a]=Ud(i,t)}),n}case"[object Object]":{if(t=t||new Map,t.has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach(function(i){r[i]=Ud(e[i],t)}),r}default:return e}}function f4(e){var t=new Set([e]);return t.forEach(function(n){qt(n)&&d4(n)===n&&Object.getOwnPropertyNames(n).forEach(function(r){qt(n[r])&&t.add(n[r])})}),e}function d4(e){if(globalThis.__DEV__!==!1&&!Object.isFrozen(e))try{Object.freeze(e)}catch(t){if(t instanceof TypeError)return null;throw t}return e}function Eo(e){return globalThis.__DEV__!==!1&&f4(e),e}function Hs(e,t,n){var r=[];e.forEach(function(i){return i[t]&&r.push(i)}),r.forEach(function(i){return i[t](n)})}function zd(e,t,n){return new _t(function(r){var i={then:function(l){return new Promise(function(f){return f(l())})}};function a(l,f){return function(d){if(l){var h=function(){return r.closed?0:l(d)};i=i.then(h,h).then(function(p){return r.next(p)},function(p){return r.error(p)})}else r[f](d)}}var o={next:a(t,"next"),error:a(n,"error"),complete:function(){i.then(function(){return r.complete()})}},u=e.subscribe(o);return function(){return u.unsubscribe()}})}function G0(e){function t(n){Object.defineProperty(e,n,{value:_t})}return bd&&Symbol.species&&t(Symbol.species),t("@@species"),e}function Q0(e){return e&&typeof e.then=="function"}var So=function(e){yr(t,e);function t(n){var r=e.call(this,function(i){return r.addObserver(i),function(){return r.removeObserver(i)}})||this;return r.observers=new Set,r.promise=new Promise(function(i,a){r.resolve=i,r.reject=a}),r.handlers={next:function(i){r.sub!==null&&(r.latest=["next",i],r.notify("next",i),Hs(r.observers,"next",i))},error:function(i){var a=r.sub;a!==null&&(a&&setTimeout(function(){return a.unsubscribe()}),r.sub=null,r.latest=["error",i],r.reject(i),r.notify("error",i),Hs(r.observers,"error",i))},complete:function(){var i=r,a=i.sub,o=i.sources,u=o===void 0?[]:o;if(a!==null){var l=u.shift();l?Q0(l)?l.then(function(f){return r.sub=f.subscribe(r.handlers)},r.handlers.error):r.sub=l.subscribe(r.handlers):(a&&setTimeout(function(){return a.unsubscribe()}),r.sub=null,r.latest&&r.latest[0]==="next"?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),Hs(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(i){r.reject(i),r.sources=[],r.handlers.error(i)},r.promise.catch(function(i){}),typeof n=="function"&&(n=[new _t(n)]),Q0(n)?n.then(function(i){return r.start(i)},r.handlers.error):r.start(n),r}return t.prototype.start=function(n){this.sub===void 0&&(this.sources=Array.from(n),this.handlers.complete())},t.prototype.deliverLastMessage=function(n){if(this.latest){var r=this.latest[0],i=n[r];i&&i.call(n,this.latest[1]),this.sub===null&&r==="next"&&n.complete&&n.complete()}},t.prototype.addObserver=function(n){this.observers.has(n)||(this.deliverLastMessage(n),this.observers.add(n))},t.prototype.removeObserver=function(n){this.observers.delete(n)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(n,r){var i=this.nextResultListeners;i.size&&(this.nextResultListeners=new Set,i.forEach(function(a){return a(n,r)}))},t.prototype.beforeNext=function(n){var r=!1;this.nextResultListeners.add(function(i,a){r||(r=!0,n(i,a))})},t}(_t);G0(So);function xo(e){return"incremental"in e}function h4(e){return"hasNext"in e&&"data"in e}function p4(e){return xo(e)||h4(e)}function v4(e){return qt(e)&&"payload"in e}function Y0(e,t){var n=e,r=new Wi;return xo(t)&&_r(t.incremental)&&t.incremental.forEach(function(i){for(var a=i.data,o=i.path,u=o.length-1;u>=0;--u){var l=o[u],f=!isNaN(+l),d=f?[]:{};d[l]=a,a=d}n=r.merge(n,a)}),n}function Sl(e){var t=Hd(e);return _r(t)}function Hd(e){var t=_r(e.errors)?e.errors.slice(0):[];return xo(e)&&_r(e.incremental)&&e.incremental.forEach(function(n){n.errors&&t.push.apply(t,n.errors)}),t}function Ta(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach(function(r){r&&Object.keys(r).forEach(function(i){var a=r[i];a!==void 0&&(n[i]=a)})}),n}function Oa(e,t){return Ta(e,t,t.variables&&{variables:Ta(X(X({},e&&e.variables),t.variables))})}function Bd(e){return new _t(function(t){t.error(e)})}var K0=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r};function m4(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t.indexOf(i)<0)throw Fn(46,i)}return e}function g4(e,t){var n=X({},e),r=function(a){typeof a=="function"?n=X(X({},n),a(n)):n=X(X({},n),a)},i=function(){return X({},n)};return Object.defineProperty(t,"setContext",{enumerable:!1,value:r}),Object.defineProperty(t,"getContext",{enumerable:!1,value:i}),t}function y4(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName=typeof t.query!="string"?js(t.query)||void 0:""),t}function b4(e,t){var n=X({},e),r=new Set(Object.keys(e));return Vr(t,{Variable:function(i,a,o){o&&o.kind!=="VariableDefinition"&&r.delete(i.name.value)}}),r.forEach(function(i){delete n[i]}),n}function X0(e,t){return t?t(e):_t.of()}function Bs(e){return typeof e=="function"?new Ur(e):e}function xl(e){return e.request.length<=1}var Ur=function(){function e(t){t&&(this.request=t)}return e.empty=function(){return new e(function(){return _t.of()})},e.from=function(t){return t.length===0?e.empty():t.map(Bs).reduce(function(n,r){return n.concat(r)})},e.split=function(t,n,r){var i=Bs(n),a=Bs(r||new e(X0)),o;return xl(i)&&xl(a)?o=new e(function(u){return t(u)?i.request(u)||_t.of():a.request(u)||_t.of()}):o=new e(function(u,l){return t(u)?i.request(u,l)||_t.of():a.request(u,l)||_t.of()}),Object.assign(o,{left:i,right:a})},e.execute=function(t,n){return t.request(g4(n.context,y4(m4(n))))||_t.of()},e.concat=function(t,n){var r=Bs(t);if(xl(r))return globalThis.__DEV__!==!1&&Ce.warn(38,r),r;var i=Bs(n),a;return xl(i)?a=new e(function(o){return r.request(o,function(u){return i.request(u)||_t.of()})||_t.of()}):a=new e(function(o,u){return r.request(o,function(l){return i.request(l,u)||_t.of()})||_t.of()}),Object.assign(a,{left:r,right:i})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(X0)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(t,n){throw Fn(39)},e.prototype.onError=function(t,n){if(n&&n.error)return n.error(t),!1;throw t},e.prototype.setOnError=function(t){return this.onError=t,this},e}(),_4=Ur.from,w4=Ur.split,Wd=Ur.execute;function E4(e){var t,n=e[Symbol.asyncIterator]();return t={next:function(){return n.next()}},t[Symbol.asyncIterator]=function(){return this},t}function S4(e){var t=null,n=null,r=!1,i=[],a=[];function o(h){if(!n){if(a.length){var p=a.shift();if(Array.isArray(p)&&p[0])return p[0]({value:h,done:!1})}i.push(h)}}function u(h){n=h;var p=a.slice();p.forEach(function(m){m[1](h)}),!t||t()}function l(){r=!0;var h=a.slice();h.forEach(function(p){p[0]({value:void 0,done:!0})}),!t||t()}t=function(){t=null,e.removeListener("data",o),e.removeListener("error",u),e.removeListener("end",l),e.removeListener("finish",l),e.removeListener("close",l)},e.on("data",o),e.on("error",u),e.on("end",l),e.on("finish",l),e.on("close",l);function f(){return new Promise(function(h,p){if(n)return p(n);if(i.length)return h({value:i.shift(),done:!1});if(r)return h({value:void 0,done:!0});a.push([h,p])})}var d={next:function(){return f()}};return pl&&(d[Symbol.asyncIterator]=function(){return this}),d}function x4(e){var t=!1,n={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise(function(r,i){e.then(function(a){r({value:a,done:!1})}).catch(i)}))}};return pl&&(n[Symbol.asyncIterator]=function(){return this}),n}function Z0(e){var t={next:function(){return e.read()}};return pl&&(t[Symbol.asyncIterator]=function(){return this}),t}function C4(e){return!!e.body}function T4(e){return!!e.getReader}function O4(e){return!!(pl&&e[Symbol.asyncIterator])}function k4(e){return!!e.stream}function R4(e){return!!e.arrayBuffer}function A4(e){return!!e.pipe}function P4(e){var t=e;if(C4(e)&&(t=e.body),O4(t))return E4(t);if(T4(t))return Z0(t.getReader());if(k4(t))return Z0(t.stream().getReader());if(R4(t))return x4(t.arrayBuffer());if(A4(t))return S4(t);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var Cl=Symbol();function J0(e){return e.extensions?Array.isArray(e.extensions[Cl]):!1}function ey(e){return e.hasOwnProperty("graphQLErrors")}var N4=function(e){var t=Tn(Tn(Tn([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(n){return qt(n)&&n.message||"Error message not found."}).join(`
54
54
  `)},nr=function(e){yr(t,e);function t(n){var r=n.graphQLErrors,i=n.protocolErrors,a=n.clientErrors,o=n.networkError,u=n.errorMessage,l=n.extraInfo,f=e.call(this,u)||this;return f.name="ApolloError",f.graphQLErrors=r||[],f.protocolErrors=i||[],f.clientErrors=a||[],f.networkError=o||null,f.message=u||N4(f),f.extraInfo=l,f.cause=Tn(Tn(Tn([o],r||[],!0),i||[],!0),a||[],!0).find(function(d){return!!d})||null,f.__proto__=t.prototype,f}return t}(Error),ty=Object.prototype.hasOwnProperty;function I4(e,t){return $i(this,void 0,void 0,function(){var n,r,i,a,o,u,l,f,d,h,p,m,y,g,b,w,S,C,T,_,x,k,A,L;return Vi(this,function(N){switch(N.label){case 0:if(TextDecoder===void 0)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");n=new TextDecoder("utf-8"),r=(L=e.headers)===null||L===void 0?void 0:L.get("content-type"),i="boundary=",a=r!=null&&r.includes(i)?r==null?void 0:r.substring((r==null?void 0:r.indexOf(i))+i.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",o=`\r
55
55
  --`.concat(a),u="",l=P4(e),f=!0,N.label=1;case 1:return f?[4,l.next()]:[3,3];case 2:for(d=N.sent(),h=d.value,p=d.done,m=typeof h=="string"?h:n.decode(h),y=u.length-o.length+1,f=!p,u+=m,g=u.indexOf(o,y);g>-1;){if(b=void 0,k=[u.slice(0,g),u.slice(g+o.length)],b=k[0],u=k[1],w=b.indexOf(`\r
56
56
  \r
57
57
  `),S=L4(b.slice(0,w)),C=S["content-type"],C&&C.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");if(T=b.slice(w),T){if(_=ny(e,T),Object.keys(_).length>1||"data"in _||"incremental"in _||"errors"in _||"payload"in _)if(v4(_)){if(x={},"payload"in _){if(Object.keys(_).length===1&&_.payload===null)return[2];x=X({},_.payload)}"errors"in _&&(x=X(X({},x),{extensions:X(X({},"extensions"in x?x.extensions:null),(A={},A[Cl]=_.errors,A))})),t(x)}else t(_);else if(Object.keys(_).length===1&&"hasNext"in _&&!_.hasNext)return[2]}g=u.indexOf(o)}return[3,1];case 3:return[2]}})})}function L4(e){var t={};return e.split(`
58
- `).forEach(function(n){var r=n.indexOf(":");if(r>-1){var i=n.slice(0,r).trim().toLowerCase(),a=n.slice(r+1).trim();t[i]=a}}),t}function ny(e,t){if(e.status>=300){var n=function(){try{return JSON.parse(t)}catch{return t}};K0(e,n(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(i){var r=i;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function F4(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function D4(e){return function(t){return t.text().then(function(n){return ny(t,n)}).then(function(n){return!Array.isArray(n)&&!ty.call(n,"data")&&!ty.call(n,"errors")&&K0(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(r){return r.operationName}):e.operationName,"'.")),n})}}var Gd=function(e,t){var n;try{n=JSON.stringify(e)}catch(i){var r=Fn(42,t,i.message);throw r.parseError=i,r}return n},M4={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},j4={accept:"*/*","content-type":"application/json"},$4={method:"POST"},V4={http:M4,headers:j4,options:$4},q4=function(e,t){return t(e)};function U4(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={},a={};n.forEach(function(h){i=X(X(X({},i),h.options),{headers:X(X({},i.headers),h.headers)}),h.credentials&&(i.credentials=h.credentials),a=X(X({},a),h.http)}),i.headers&&(i.headers=z4(i.headers,a.preserveHeaderCase));var o=e.operationName,u=e.extensions,l=e.variables,f=e.query,d={operationName:o,variables:l};return a.includeExtensions&&(d.extensions=u),a.includeQuery&&(d.query=t(f,Bi)),{options:i,body:d}}function z4(e,t){if(!t){var n={};return Object.keys(Object(e)).forEach(function(a){n[a.toLowerCase()]=e[a]}),n}var r={};Object.keys(Object(e)).forEach(function(a){r[a.toLowerCase()]={originalName:a,value:e[a]}});var i={};return Object.keys(r).forEach(function(a){i[r[a].originalName]=r[a].value}),i}var H4=function(e){if(!e&&typeof fetch>"u")throw Fn(40)},B4=function(e,t){var n=e.getContext(),r=n.uri;return r||(typeof t=="function"?t(e):t||"/graphql")};function W4(e,t){var n=[],r=function(h,p){n.push("".concat(h,"=").concat(encodeURIComponent(p)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=Gd(t.variables,"Variables map")}catch(h){return{parseError:h}}r("variables",i)}if(t.extensions){var a=void 0;try{a=Gd(t.extensions,"Extensions map")}catch(h){return{parseError:h}}r("extensions",a)}var o="",u=e,l=e.indexOf("#");l!==-1&&(o=e.substr(l),u=e.substr(0,l));var f=u.indexOf("?")===-1?"?":"&",d=u+f+n.join("&")+o;return{newURI:d}}var ry=$r(function(){return fetch}),iy=function(e){e===void 0&&(e={});var t=e.uri,n=t===void 0?"/graphql":t,r=e.fetch,i=e.print,a=i===void 0?q4:i,o=e.includeExtensions,u=e.preserveHeaderCase,l=e.useGETForQueries,f=e.includeUnusedVariables,d=f===void 0?!1:f,h=br(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);globalThis.__DEV__!==!1&&H4(r||ry);var p={http:{includeExtensions:o,preserveHeaderCase:u},options:h.fetchOptions,credentials:h.credentials,headers:h.headers};return new Ur(function(m){var y=B4(m,n),g=m.getContext(),b={};if(g.clientAwareness){var w=g.clientAwareness,S=w.name,C=w.version;S&&(b["apollographql-client-name"]=S),C&&(b["apollographql-client-version"]=C)}var T=X(X({},b),g.headers),_={http:g.http,options:g.fetchOptions,credentials:g.credentials,headers:T};if(Ds(["client"],m.query)){var x=M0(m.query);if(!x)return Bd(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));m.query=x}var k=U4(m,a,V4,p,_),A=k.options,L=k.body;L.variables&&!d&&(L.variables=b4(L.variables,m.query));var N;!A.signal&&typeof AbortController<"u"&&(N=new AbortController,A.signal=N.signal);var F=function(J){return J.kind==="OperationDefinition"&&J.operation==="mutation"},H=function(J){return J.kind==="OperationDefinition"&&J.operation==="subscription"},V=H(yo(m.query)),D=Ds(["defer"],m.query);if(l&&!m.query.definitions.some(F)&&(A.method="GET"),D||V){A.headers=A.headers||{};var j="multipart/mixed;";V&&D&&globalThis.__DEV__!==!1&&Ce.warn(41),V?j+="boundary=graphql;subscriptionSpec=1.0,application/json":D&&(j+="deferSpec=20220824,application/json"),A.headers.accept=j}if(A.method==="GET"){var z=W4(y,L),Y=z.newURI,q=z.parseError;if(q)return Bd(q);y=Y}else try{A.body=Gd(L,"Payload")}catch(J){return Bd(J)}return new Et(function(J){var $=r||$r(function(){return fetch})||ry,K=J.next.bind(J);return $(y,A).then(function(ae){var ie;m.setContext({response:ae});var te=(ie=ae.headers)===null||ie===void 0?void 0:ie.get("content-type");return te!==null&&/^multipart\/mixed/i.test(te)?I4(ae,K):D4(m)(ae).then(K)}).then(function(){N=void 0,J.complete()}).catch(function(ae){N=void 0,F4(ae,J)}),function(){N&&N.abort()}})})},G4=function(e){yr(t,e);function t(n){n===void 0&&(n={});var r=e.call(this,iy(n).request)||this;return r.options=n,r}return t}(Ur);const{toString:ay,hasOwnProperty:Q4}=Object.prototype,oy=Function.prototype.toString,Qd=new Map;function pt(e,t){try{return Yd(e,t)}finally{Qd.clear()}}function Yd(e,t){if(e===t)return!0;const n=ay.call(e),r=ay.call(t);if(n!==r)return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(uy(e,t))return!0;const i=sy(e),a=sy(t),o=i.length;if(o!==a.length)return!1;for(let u=0;u<o;++u)if(!Q4.call(t,i[u]))return!1;for(let u=0;u<o;++u){const l=i[u];if(!Yd(e[l],t[l]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!==e)return t!==t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(uy(e,t))return!0;const i=e.entries(),a=n==="[object Map]";for(;;){const o=i.next();if(o.done)break;const[u,l]=o.value;if(!t.has(u)||a&&!Yd(l,t.get(u)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let i=e.byteLength;if(i===t.byteLength)for(;i--&&e[i]===t[i];);return i===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const i=oy.call(e);return i!==oy.call(t)?!1:!X4(i,K4)}}return!1}function sy(e){return Object.keys(e).filter(Y4,e)}function Y4(e){return this[e]!==void 0}const K4="{ [native code] }";function X4(e,t){const n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}function uy(e,t){let n=Qd.get(e);if(n){if(n.has(t))return!0}else Qd.set(e,n=new Set);return n.add(t),!1}function ly(e,t,n,r){var i=t.data,a=br(t,["data"]),o=n.data,u=br(n,["data"]);return pt(a,u)&&Tl(yo(e).selectionSet,i,o,{fragmentMap:fo(go(e)),variables:r})}function Tl(e,t,n,r){if(t===n)return!0;var i=new Set;return e.selections.every(function(a){if(i.has(a)||(i.add(a),!Fs(a,r.variables))||cy(a))return!0;if(zi(a)){var o=Ei(a),u=t&&t[o],l=n&&n[o],f=a.selectionSet;if(!f)return pt(u,l);var d=Array.isArray(u),h=Array.isArray(l);if(d!==h)return!1;if(d&&h){var p=u.length;if(l.length!==p)return!1;for(var m=0;m<p;++m)if(!Tl(f,u[m],l[m],r))return!1;return!0}return Tl(f,u,l,r)}else{var y=vl(a,r.fragmentMap);if(y)return cy(y)?!0:Tl(y.selectionSet,t,n,r)}})}function cy(e){return!!e.directives&&e.directives.some(Z4)}function Z4(e){return e.name.value==="nonreactive"}var fy=Sa?WeakMap:Map,dy=yd?WeakSet:Set,Kd=new $s,hy=!1;function py(){hy||(hy=!0,globalThis.__DEV__!==!1&&Ce.warn(52))}function vy(e,t,n){return Kd.withValue(!0,function(){var r=Ws(e,t,n,!1);return Object.isFrozen(e)&&Eo(r),r})}function J4(e,t){if(t.has(e))return t.get(e);var n=Array.isArray(e)?[]:Object.create(null);return t.set(e,n),n}function Ws(e,t,n,r,i){var a,o=n.knownChanged,u=J4(e,n.mutableTargets);if(Array.isArray(e)){for(var l=0,f=Array.from(e.entries());l<f.length;l++){var d=f[l],h=d[0],p=d[1];if(p===null){u[h]=null;continue}var m=Ws(p,t,n,r,globalThis.__DEV__!==!1?"".concat(i||"","[").concat(h,"]"):void 0);o.has(m)&&o.add(u),u[h]=m}return o.has(u)?u:e}for(var y=0,g=t.selections;y<g.length;y++){var b=g[y],w=void 0;if(r&&o.add(u),b.kind===$t.FIELD){var S=Ei(b),C=b.selectionSet;if(w=u[S]||e[S],w===void 0)continue;if(C&&w!==null){var m=Ws(e[S],C,n,r,globalThis.__DEV__!==!1?"".concat(i||"",".").concat(S):void 0);o.has(m)&&(w=m)}globalThis.__DEV__===!1&&(u[S]=w),globalThis.__DEV__!==!1&&(r&&S!=="__typename"&&!(!((a=Object.getOwnPropertyDescriptor(u,S))===null||a===void 0)&&a.value)?Object.defineProperty(u,S,eO(S,w,i||"",n.operationName,n.operationType)):(delete u[S],u[S]=w))}if(b.kind===$t.INLINE_FRAGMENT&&(!b.typeCondition||n.cache.fragmentMatches(b,e.__typename))&&(w=Ws(e,b.selectionSet,n,r,i)),b.kind===$t.FRAGMENT_SPREAD){var T=b.name.value,_=n.fragmentMap[T]||(n.fragmentMap[T]=n.cache.lookupFragment(T));Ce(_,47,T);var x=J6(b);x!=="mask"&&(w=Ws(e,_.selectionSet,n,x==="migrate",i))}o.has(w)&&o.add(u)}return"__typename"in e&&!("__typename"in u)&&(u.__typename=e.__typename),Object.keys(u).length!==Object.keys(e).length&&o.add(u),o.has(u)?u:e}function eO(e,t,n,r,i){var a=function(){return Kd.getValue()||(globalThis.__DEV__!==!1&&Ce.warn(48,r?"".concat(i," '").concat(r,"'"):"anonymous ".concat(i),"".concat(n,".").concat(e).replace(/^\./,"")),a=function(){return t}),t};return{get:function(){return a()},set:function(o){a=function(){return o}},enumerable:!0,configurable:!0}}function my(e,t,n,r){if(!n.fragmentMatches)return globalThis.__DEV__!==!1&&py(),e;var i=t.definitions.filter(function(o){return o.kind===$t.FRAGMENT_DEFINITION});typeof r>"u"&&(Ce(i.length===1,49,i.length),r=i[0].name.value);var a=i.find(function(o){return o.name.value===r});return Ce(!!a,50,r),e==null||pt(e,{})?e:vy(e,a.selectionSet,{operationType:"fragment",operationName:a.name.value,fragmentMap:fo(go(t)),cache:n,mutableTargets:new fy,knownChanged:new dy})}function tO(e,t,n){var r;if(!n.fragmentMatches)return globalThis.__DEV__!==!1&&py(),e;var i=Ca(t);return Ce(i,51),e==null?e:vy(e,i.selectionSet,{operationType:i.operation,operationName:(r=i.name)===null||r===void 0?void 0:r.value,fragmentMap:fo(go(t)),cache:n,mutableTargets:new fy,knownChanged:new dy})}var gy=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=qs(oT,{max:ti["cache.fragmentQueryDocuments"]||1e3,cache:ml})}return e.prototype.lookupFragment=function(t){return null},e.prototype.batch=function(t){var n=this,r=typeof t.optimistic=="string"?t.optimistic:t.optimistic===!1?null:void 0,i;return this.performTransaction(function(){return i=t.update(n)},r),i},e.prototype.recordOptimisticTransaction=function(t,n){this.performTransaction(t,n)},e.prototype.transformDocument=function(t){return t},e.prototype.transformForLink=function(t){return t},e.prototype.identify=function(t){},e.prototype.gc=function(){return[]},e.prototype.modify=function(t){return!1},e.prototype.readQuery=function(t,n){return n===void 0&&(n=!!t.optimistic),this.read(X(X({},t),{rootId:t.id||"ROOT_QUERY",optimistic:n}))},e.prototype.watchFragment=function(t){var n=this,r=t.fragment,i=t.fragmentName,a=t.from,o=t.optimistic,u=o===void 0?!0:o,l=br(t,["fragment","fragmentName","from","optimistic"]),f=this.getFragmentDoc(r,i),d=typeof a>"u"||typeof a=="string"?a:this.identify(a),h=!!t[Symbol.for("apollo.dataMasking")];if(globalThis.__DEV__!==!1){var p=i||v0(r).name.value;d||globalThis.__DEV__!==!1&&Ce.warn(1,p)}var m=X(X({},l),{returnPartialData:!0,id:d,query:f,optimistic:u}),y;return new Et(function(g){return n.watch(X(X({},m),{immediate:!0,callback:function(b){var w=h?my(b.result,r,n,i):b.result;if(!(y&&ly(f,{data:y.result},{data:w},t.variables))){var S={data:w,complete:!!b.complete};b.missing&&(S.missing=_l(b.missing.map(function(C){return C.missing}))),y=X(X({},b),{result:w}),g.next(S)}}}))})},e.prototype.readFragment=function(t,n){return n===void 0&&(n=!!t.optimistic),this.read(X(X({},t),{query:this.getFragmentDoc(t.fragment,t.fragmentName),rootId:t.id,optimistic:n}))},e.prototype.writeQuery=function(t){var n=t.id,r=t.data,i=br(t,["id","data"]);return this.write(Object.assign(i,{dataId:n||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(t){var n=t.id,r=t.data,i=t.fragment,a=t.fragmentName,o=br(t,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(i,a),dataId:n,result:r}))},e.prototype.updateQuery=function(t,n){return this.batch({update:function(r){var i=r.readQuery(t),a=n(i);return a==null?i:(r.writeQuery(X(X({},t),{data:a})),a)}})},e.prototype.updateFragment=function(t,n){return this.batch({update:function(r){var i=r.readFragment(t),a=n(i);return a==null?i:(r.writeFragment(X(X({},t),{data:a})),a)}})},e}();globalThis.__DEV__!==!1&&(gy.prototype.getMemoryInternals=yT);var yy=function(e){yr(t,e);function t(n,r,i,a){var o,u=e.call(this,n)||this;if(u.message=n,u.path=r,u.query=i,u.variables=a,Array.isArray(u.path)){u.missing=u.message;for(var l=u.path.length-1;l>=0;--l)u.missing=(o={},o[u.path[l]]=u.missing,o)}else u.missing=u.path;return u.__proto__=t.prototype,u}return t}(Error),hn=Object.prototype.hasOwnProperty;function Gs(e){return e==null}function by(e,t){var n=e.__typename,r=e.id,i=e._id;if(typeof n=="string"&&(t&&(t.keyObject=Gs(r)?Gs(i)?void 0:{_id:i}:{id:r}),Gs(r)&&!Gs(i)&&(r=i),!Gs(r)))return"".concat(n,":").concat(typeof r=="number"||typeof r=="string"?r:JSON.stringify(r))}var _y={dataIdFromObject:by,addTypename:!0,resultCaching:!0,canonizeResults:!1};function nO(e){return Ta(_y,e)}function wy(e){var t=e.canonizeResults;return t===void 0?_y.canonizeResults:t}function rO(e,t){return wt(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var Ey=/^[_a-z][_0-9a-z]*/i;function Gi(e){var t=e.match(Ey);return t?t[0]:e}function Xd(e,t,n){return qt(t)?Zt(t)?t.every(function(r){return Xd(e,r,n)}):e.selections.every(function(r){if(zi(r)&&Fs(r,n)){var i=Ei(r);return hn.call(t,i)&&(!r.selectionSet||Xd(r.selectionSet,t[i],n))}return!0}):!1}function Co(e){return qt(e)&&!wt(e)&&!Zt(e)}function iO(){return new Wi}function Sy(e,t){var n=fo(go(e));return{fragmentMap:n,lookupFragment:function(r){var i=n[r];return!i&&t&&(i=t.lookup(r)),i||null}}}var Ol=Object.create(null),Zd=function(){return Ol},xy=Object.create(null),Qs=function(){function e(t,n){var r=this;this.policies=t,this.group=n,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(i,a){return Eo(wt(i)?r.get(i.__ref,a):i&&i[a])},this.canRead=function(i){return wt(i)?r.has(i.__ref):typeof i=="object"},this.toReference=function(i,a){if(typeof i=="string")return po(i);if(wt(i))return i;var o=r.policies.identify(i)[0];if(o){var u=po(o);return a&&r.merge(o,i),u}}}return e.prototype.toObject=function(){return X({},this.data)},e.prototype.has=function(t){return this.lookup(t,!0)!==void 0},e.prototype.get=function(t,n){if(this.group.depend(t,n),hn.call(this.data,t)){var r=this.data[t];if(r&&hn.call(r,n))return r[n]}if(n==="__typename"&&hn.call(this.policies.rootTypenamesById,t))return this.policies.rootTypenamesById[t];if(this instanceof Qi)return this.parent.get(t,n)},e.prototype.lookup=function(t,n){if(n&&this.group.depend(t,"__exists"),hn.call(this.data,t))return this.data[t];if(this instanceof Qi)return this.parent.lookup(t,n);if(this.policies.rootTypenamesById[t])return Object.create(null)},e.prototype.merge=function(t,n){var r=this,i;wt(t)&&(t=t.__ref),wt(n)&&(n=n.__ref);var a=typeof t=="string"?this.lookup(i=t):t,o=typeof n=="string"?this.lookup(i=n):n;if(o){Ce(typeof i=="string",2);var u=new Wi(oO).merge(a,o);if(this.data[i]=u,u!==a&&(delete this.refs[i],this.group.caching)){var l=Object.create(null);a||(l.__exists=1),Object.keys(o).forEach(function(f){if(!a||a[f]!==u[f]){l[f]=1;var d=Gi(f);d!==f&&!r.policies.hasKeyArgs(u.__typename,d)&&(l[d]=1),u[f]===void 0&&!(r instanceof Qi)&&delete u[f]}}),l.__typename&&!(a&&a.__typename)&&this.policies.rootTypenamesById[i]===u.__typename&&delete l.__typename,Object.keys(l).forEach(function(f){return r.group.dirty(i,f)})}}},e.prototype.modify=function(t,n){var r=this,i=this.lookup(t);if(i){var a=Object.create(null),o=!1,u=!0,l={DELETE:Ol,INVALIDATE:xy,isReference:wt,toReference:this.toReference,canRead:this.canRead,readField:function(f,d){return r.policies.readField(typeof f=="string"?{fieldName:f,from:d||po(t)}:f,{store:r})}};if(Object.keys(i).forEach(function(f){var d=Gi(f),h=i[f];if(h!==void 0){var p=typeof n=="function"?n:n[f]||n[d];if(p){var m=p===Zd?Ol:p(Eo(h),X(X({},l),{fieldName:d,storeFieldName:f,storage:r.getStorage(t,f)}));if(m===xy)r.group.dirty(t,f);else if(m===Ol&&(m=void 0),m!==h&&(a[f]=m,o=!0,h=m,globalThis.__DEV__!==!1)){var y=function(_){if(r.lookup(_.__ref)===void 0)return globalThis.__DEV__!==!1&&Ce.warn(3,_),!0};if(wt(m))y(m);else if(Array.isArray(m))for(var g=!1,b=void 0,w=0,S=m;w<S.length;w++){var C=S[w];if(wt(C)){if(g=!0,y(C))break}else if(typeof C=="object"&&C){var T=r.policies.identify(C)[0];T&&(b=C)}if(g&&b!==void 0){globalThis.__DEV__!==!1&&Ce.warn(4,b);break}}}}h!==void 0&&(u=!1)}}),o)return this.merge(t,a),u&&(this instanceof Qi?this.data[t]=void 0:delete this.data[t],this.group.dirty(t,"__exists")),!0}return!1},e.prototype.delete=function(t,n,r){var i,a=this.lookup(t);if(a){var o=this.getFieldValue(a,"__typename"),u=n&&r?this.policies.getStoreFieldName({typename:o,fieldName:n,args:r}):n;return this.modify(t,u?(i={},i[u]=Zd,i):Zd)}return!1},e.prototype.evict=function(t,n){var r=!1;return t.id&&(hn.call(this.data,t.id)&&(r=this.delete(t.id,t.fieldName,t.args)),this instanceof Qi&&this!==n&&(r=this.parent.evict(t,n)||r),(t.fieldName||r)&&this.group.dirty(t.id,t.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var t=this,n=this.toObject(),r=[];return this.getRootIdSet().forEach(function(i){hn.call(t.policies.rootTypenamesById,i)||r.push(i)}),r.length&&(n.__META={extraRootIds:r.sort()}),n},e.prototype.replace=function(t){var n=this;if(Object.keys(this.data).forEach(function(a){t&&hn.call(t,a)||n.delete(a)}),t){var r=t.__META,i=br(t,["__META"]);Object.keys(i).forEach(function(a){n.merge(a,i[a])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(t){return this.rootIds[t]=(this.rootIds[t]||0)+1},e.prototype.release=function(t){if(this.rootIds[t]>0){var n=--this.rootIds[t];return n||delete this.rootIds[t],n}return 0},e.prototype.getRootIdSet=function(t){return t===void 0&&(t=new Set),Object.keys(this.rootIds).forEach(t.add,t),this instanceof Qi?this.parent.getRootIdSet(t):Object.keys(this.policies.rootTypenamesById).forEach(t.add,t),t},e.prototype.gc=function(){var t=this,n=this.getRootIdSet(),r=this.toObject();n.forEach(function(o){hn.call(r,o)&&(Object.keys(t.findChildRefIds(o)).forEach(n.add,n),delete r[o])});var i=Object.keys(r);if(i.length){for(var a=this;a instanceof Qi;)a=a.parent;i.forEach(function(o){return a.delete(o)})}return i},e.prototype.findChildRefIds=function(t){if(!hn.call(this.refs,t)){var n=this.refs[t]=Object.create(null),r=this.data[t];if(!r)return n;var i=new Set([r]);i.forEach(function(a){wt(a)&&(n[a.__ref]=!0),qt(a)&&Object.keys(a).forEach(function(o){var u=a[o];qt(u)&&i.add(u)})})}return this.refs[t]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),Cy=function(){function e(t,n){n===void 0&&(n=null),this.caching=t,this.parent=n,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?A0():null,this.keyMaker=new wi(Sa)},e.prototype.depend=function(t,n){if(this.d){this.d(Jd(t,n));var r=Gi(n);r!==n&&this.d(Jd(t,r)),this.parent&&this.parent.depend(t,n)}},e.prototype.dirty=function(t,n){this.d&&this.d.dirty(Jd(t,n),n==="__exists"?"forget":"setDirty")},e}();function Jd(e,t){return t+"#"+e}function Ty(e,t){Ys(e)&&e.group.depend(t,"__exists")}(function(e){var t=function(n){yr(r,n);function r(i){var a=i.policies,o=i.resultCaching,u=o===void 0?!0:o,l=i.seed,f=n.call(this,a,new Cy(u))||this;return f.stump=new aO(f),f.storageTrie=new wi(Sa),l&&f.replace(l),f}return r.prototype.addLayer=function(i,a){return this.stump.addLayer(i,a)},r.prototype.removeLayer=function(){return this},r.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},r}(e);e.Root=t})(Qs||(Qs={}));var Qi=function(e){yr(t,e);function t(n,r,i,a){var o=e.call(this,r.policies,a)||this;return o.id=n,o.parent=r,o.replay=i,o.group=a,i(o),o}return t.prototype.addLayer=function(n,r){return new t(n,this,r,this.group)},t.prototype.removeLayer=function(n){var r=this,i=this.parent.removeLayer(n);return n===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(a){var o=r.data[a],u=i.lookup(a);u?o?o!==u&&Object.keys(o).forEach(function(l){pt(o[l],u[l])||r.group.dirty(a,l)}):(r.group.dirty(a,"__exists"),Object.keys(u).forEach(function(l){r.group.dirty(a,l)})):r.delete(a)}),i):i===this.parent?this:i.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return X(X({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(n){var r=this.parent.findChildRefIds(n);return hn.call(this.data,n)?X(X({},r),e.prototype.findChildRefIds.call(this,n)):r},t.prototype.getStorage=function(){for(var n=this.parent;n.parent;)n=n.parent;return n.getStorage.apply(n,arguments)},t}(Qs),aO=function(e){yr(t,e);function t(n){return e.call(this,"EntityStore.Stump",n,function(){},new Cy(n.group.caching,n.group))||this}return t.prototype.removeLayer=function(){return this},t.prototype.merge=function(n,r){return this.parent.merge(n,r)},t}(Qi);function oO(e,t,n){var r=e[n],i=t[n];return pt(r,i)?r:i}function Ys(e){return!!(e instanceof Qs&&e.group.caching)}function sO(e){return qt(e)?Zt(e)?e.slice(0):X({__proto__:Object.getPrototypeOf(e)},e):e}var Oy=function(){function e(){this.known=new(yd?WeakSet:Set),this.pool=new wi(Sa),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(t){return qt(t)&&this.known.has(t)},e.prototype.pass=function(t){if(qt(t)){var n=sO(t);return this.passes.set(n,t),n}return t},e.prototype.admit=function(t){var n=this;if(qt(t)){var r=this.passes.get(t);if(r)return r;var i=Object.getPrototypeOf(t);switch(i){case Array.prototype:{if(this.known.has(t))return t;var a=t.map(this.admit,this),o=this.pool.lookupArray(a);return o.array||(this.known.add(o.array=a),globalThis.__DEV__!==!1&&Object.freeze(a)),o.array}case null:case Object.prototype:{if(this.known.has(t))return t;var u=Object.getPrototypeOf(t),l=[u],f=this.sortedKeys(t);l.push(f.json);var d=l.length;f.sorted.forEach(function(m){l.push(n.admit(t[m]))});var o=this.pool.lookupArray(l);if(!o.object){var h=o.object=Object.create(u);this.known.add(h),f.sorted.forEach(function(m,y){h[m]=l[d+y]}),globalThis.__DEV__!==!1&&Object.freeze(h)}return o.object}}}return t},e.prototype.sortedKeys=function(t){var n=Object.keys(t),r=this.pool.lookupArray(n);if(!r.keys){n.sort();var i=JSON.stringify(n);(r.keys=this.keysByJSON.get(i))||this.keysByJSON.set(i,r.keys={sorted:n,json:i})}return r.keys},e}();function ky(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var uO=function(){function e(t){var n=this;this.knownResults=new(Sa?WeakMap:Map),this.config=Ta(t,{addTypename:t.addTypename!==!1,canonizeResults:wy(t)}),this.canon=t.canon||new Oy,this.executeSelectionSet=qs(function(r){var i,a=r.context.canonizeResults,o=ky(r);o[3]=!a;var u=(i=n.executeSelectionSet).peek.apply(i,o);return u?a?X(X({},u),{result:n.canon.admit(u.result)}):u:(Ty(r.context.store,r.enclosingRef.__ref),n.execSelectionSetImpl(r))},{max:this.config.resultCacheMaxSize||ti["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:ky,makeCacheKey:function(r,i,a,o){if(Ys(a.store))return a.store.makeCacheKey(r,wt(i)?i.__ref:i,a.varString,o)}}),this.executeSubSelectedArray=qs(function(r){return Ty(r.context.store,r.enclosingRef.__ref),n.execSubSelectedArrayImpl(r)},{max:this.config.resultCacheMaxSize||ti["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(r){var i=r.field,a=r.array,o=r.context;if(Ys(o.store))return o.store.makeCacheKey(i,a,o.varString)}})}return e.prototype.resetCanon=function(){this.canon=new Oy},e.prototype.diffQueryAgainstStore=function(t){var n=t.store,r=t.query,i=t.rootId,a=i===void 0?"ROOT_QUERY":i,o=t.variables,u=t.returnPartialData,l=u===void 0?!0:u,f=t.canonizeResults,d=f===void 0?this.config.canonizeResults:f,h=this.config.cache.policies;o=X(X({},kd(p0(r))),o);var p=po(a),m=this.executeSelectionSet({selectionSet:yo(r).selectionSet,objectOrReference:p,enclosingRef:p,context:X({store:n,query:r,policies:h,variables:o,varString:Ui(o),canonizeResults:d},Sy(r,this.config.fragments))}),y;if(m.missing&&(y=[new yy(lO(m.missing),m.missing,r,o)],!l))throw y[0];return{result:m.result,complete:!y,missing:y}},e.prototype.isFresh=function(t,n,r,i){if(Ys(i.store)&&this.knownResults.get(t)===r){var a=this.executeSelectionSet.peek(r,n,i,this.canon.isKnown(t));if(a&&t===a.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(t){var n=this,r=t.selectionSet,i=t.objectOrReference,a=t.enclosingRef,o=t.context;if(wt(i)&&!o.policies.rootTypenamesById[i.__ref]&&!o.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var u=o.variables,l=o.policies,f=o.store,d=f.getFieldValue(i,"__typename"),h=[],p,m=new Wi;this.config.addTypename&&typeof d=="string"&&!l.rootIdsByTypename[d]&&h.push({__typename:d});function y(C,T){var _;return C.missing&&(p=m.merge(p,(_={},_[T]=C.missing,_))),C.result}var g=new Set(r.selections);g.forEach(function(C){var T,_;if(Fs(C,u))if(zi(C)){var x=l.readField({fieldName:C.name.value,field:C,variables:o.variables,from:i},o),k=Ei(C);x===void 0?Ld.added(C)||(p=m.merge(p,(T={},T[k]="Can't find field '".concat(C.name.value,"' on ").concat(wt(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),T))):Zt(x)?x.length>0&&(x=y(n.executeSubSelectedArray({field:C,array:x,enclosingRef:a,context:o}),k)):C.selectionSet?x!=null&&(x=y(n.executeSelectionSet({selectionSet:C.selectionSet,objectOrReference:x,enclosingRef:wt(x)?x:a,context:o}),k)):o.canonizeResults&&(x=n.canon.pass(x)),x!==void 0&&h.push((_={},_[k]=x,_))}else{var A=vl(C,o.lookupFragment);if(!A&&C.kind===$t.FRAGMENT_SPREAD)throw Fn(10,C.name.value);A&&l.fragmentMatches(A,d)&&A.selectionSet.selections.forEach(g.add,g)}});var b=_l(h),w={result:b,missing:p},S=o.canonizeResults?this.canon.admit(w):Eo(w);return S.result&&this.knownResults.set(S.result,r),S},e.prototype.execSubSelectedArrayImpl=function(t){var n=this,r=t.field,i=t.array,a=t.enclosingRef,o=t.context,u,l=new Wi;function f(d,h){var p;return d.missing&&(u=l.merge(u,(p={},p[h]=d.missing,p))),d.result}return r.selectionSet&&(i=i.filter(o.store.canRead)),i=i.map(function(d,h){return d===null?null:Zt(d)?f(n.executeSubSelectedArray({field:r,array:d,enclosingRef:a,context:o}),h):r.selectionSet?f(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:d,enclosingRef:wt(d)?d:a,context:o}),h):(globalThis.__DEV__!==!1&&cO(o.store,r,d),d)}),{result:o.canonizeResults?this.canon.admit(i):i,missing:u}},e}();function lO(e){try{JSON.stringify(e,function(t,n){if(typeof n=="string")throw n;return n})}catch(t){return t}}function cO(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(i){qt(i)&&(Ce(!wt(i),11,rO(e,i),t.name.value),Object.values(i).forEach(r.add,r))})}}var eh=new $s,Ry=new WeakMap;function Ks(e){var t=Ry.get(e);return t||Ry.set(e,t={vars:new Set,dep:A0()}),t}function Ay(e){Ks(e).vars.forEach(function(t){return t.forgetCache(e)})}function fO(e){Ks(e).vars.forEach(function(t){return t.attachCache(e)})}function dO(e){var t=new Set,n=new Set,r=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach(function(l){Ks(l).dep.dirty(r),hO(l)});var o=Array.from(n);n.clear(),o.forEach(function(l){return l(e)})}}else{var u=eh.getValue();u&&(i(u),Ks(u).dep(r))}return e};r.onNextChange=function(a){return n.add(a),function(){n.delete(a)}};var i=r.attachCache=function(a){return t.add(a),Ks(a).vars.add(r),r};return r.forgetCache=function(a){return t.delete(a)},r}function hO(e){e.broadcastWatches&&e.broadcastWatches()}var Py=Object.create(null);function th(e){var t=JSON.stringify(e);return Py[t]||(Py[t]=Object.create(null))}function Ny(e){var t=th(e);return t.keyFieldsFn||(t.keyFieldsFn=function(n,r){var i=function(o,u){return r.readField(u,o)},a=r.keyObject=nh(e,function(o){var u=To(r.storeObject,o,i);return u===void 0&&n!==r.storeObject&&hn.call(n,o[0])&&(u=To(n,o,Fy)),Ce(u!==void 0,5,o.join("."),n),u});return"".concat(r.typename,":").concat(JSON.stringify(a))})}function Iy(e){var t=th(e);return t.keyArgsFn||(t.keyArgsFn=function(n,r){var i=r.field,a=r.variables,o=r.fieldName,u=nh(e,function(f){var d=f[0],h=d.charAt(0);if(h==="@"){if(i&&_r(i.directives)){var p=d.slice(1),m=i.directives.find(function(w){return w.name.value===p}),y=m&&gl(m,a);return y&&To(y,f.slice(1))}return}if(h==="$"){var g=d.slice(1);if(a&&hn.call(a,g)){var b=f.slice(0);return b[0]=g,To(a,b)}return}if(n)return To(n,f)}),l=JSON.stringify(u);return(n||l!=="{}")&&(o+=":"+l),o})}function nh(e,t){var n=new Wi;return Ly(e).reduce(function(r,i){var a,o=t(i);if(o!==void 0){for(var u=i.length-1;u>=0;--u)o=(a={},a[i[u]]=o,a);r=n.merge(r,o)}return r},Object.create(null))}function Ly(e){var t=th(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach(function(i,a){Zt(i)?(Ly(i).forEach(function(o){return n.push(r.concat(o))}),r.length=0):(r.push(i),Zt(e[a+1])||(n.push(r.slice(0)),r.length=0))})}return t.paths}function Fy(e,t){return e[t]}function To(e,t,n){return n=n||Fy,Dy(t.reduce(function r(i,a){return Zt(i)?i.map(function(o){return r(o,a)}):i&&n(i,a)},e))}function Dy(e){return qt(e)?Zt(e)?e.map(Dy):nh(Object.keys(e).sort(),function(t){return To(e,t)}):e}function rh(e){return e.args!==void 0?e.args:e.field?gl(e.field,e.variables):null}var pO=function(){},My=function(e,t){return t.fieldName},jy=function(e,t,n){var r=n.mergeObjects;return r(e,t)},$y=function(e,t){return t},vO=function(){function e(t){this.config=t,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=X({dataIdFromObject:by},t),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),t.possibleTypes&&this.addPossibleTypes(t.possibleTypes),t.typePolicies&&this.addTypePolicies(t.typePolicies)}return e.prototype.identify=function(t,n){var r,i=this,a=n&&(n.typename||((r=n.storeObject)===null||r===void 0?void 0:r.__typename))||t.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var o=n&&n.storeObject||t,u=X(X({},n),{typename:a,storeObject:o,readField:n&&n.readField||function(){var h=ih(arguments,o);return i.readField(h,{store:i.cache.data,variables:h.variables})}}),l,f=a&&this.getTypePolicy(a),d=f&&f.keyFn||this.config.dataIdFromObject;return Kd.withValue(!0,function(){for(;d;){var h=d(X(X({},t),o),u);if(Zt(h))d=Ny(h);else{l=h;break}}}),l=l?String(l):void 0,u.keyObject?[l,u.keyObject]:[l]},e.prototype.addTypePolicies=function(t){var n=this;Object.keys(t).forEach(function(r){var i=t[r],a=i.queryType,o=i.mutationType,u=i.subscriptionType,l=br(i,["queryType","mutationType","subscriptionType"]);a&&n.setRootTypename("Query",r),o&&n.setRootTypename("Mutation",r),u&&n.setRootTypename("Subscription",r),hn.call(n.toBeAdded,r)?n.toBeAdded[r].push(l):n.toBeAdded[r]=[l]})},e.prototype.updateTypePolicy=function(t,n){var r=this,i=this.getTypePolicy(t),a=n.keyFields,o=n.fields;function u(l,f){l.merge=typeof f=="function"?f:f===!0?jy:f===!1?$y:l.merge}u(i,n.merge),i.keyFn=a===!1?pO:Zt(a)?Ny(a):typeof a=="function"?a:i.keyFn,o&&Object.keys(o).forEach(function(l){var f=r.getFieldPolicy(t,l,!0),d=o[l];if(typeof d=="function")f.read=d;else{var h=d.keyArgs,p=d.read,m=d.merge;f.keyFn=h===!1?My:Zt(h)?Iy(h):typeof h=="function"?h:f.keyFn,typeof p=="function"&&(f.read=p),u(f,m)}f.read&&f.merge&&(f.keyFn=f.keyFn||My)})},e.prototype.setRootTypename=function(t,n){n===void 0&&(n=t);var r="ROOT_"+t.toUpperCase(),i=this.rootTypenamesById[r];n!==i&&(Ce(!i||i===t,6,t),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[n]=r,this.rootTypenamesById[r]=n)},e.prototype.addPossibleTypes=function(t){var n=this;this.usingPossibleTypes=!0,Object.keys(t).forEach(function(r){n.getSupertypeSet(r,!0),t[r].forEach(function(i){n.getSupertypeSet(i,!0).add(r);var a=i.match(Ey);(!a||a[0]!==i)&&n.fuzzySubtypes.set(i,new RegExp(i))})})},e.prototype.getTypePolicy=function(t){var n=this;if(!hn.call(this.typePolicies,t)){var r=this.typePolicies[t]=Object.create(null);r.fields=Object.create(null);var i=this.supertypeMap.get(t);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(t,!0),this.fuzzySubtypes.forEach(function(o,u){if(o.test(t)){var l=n.supertypeMap.get(u);l&&l.forEach(function(f){return i.add(f)})}})),i&&i.size&&i.forEach(function(o){var u=n.getTypePolicy(o),l=u.fields,f=br(u,["fields"]);Object.assign(r,f),Object.assign(r.fields,l)})}var a=this.toBeAdded[t];return a&&a.length&&a.splice(0).forEach(function(o){n.updateTypePolicy(t,o)}),this.typePolicies[t]},e.prototype.getFieldPolicy=function(t,n,r){if(t){var i=this.getTypePolicy(t).fields;return i[n]||r&&(i[n]=Object.create(null))}},e.prototype.getSupertypeSet=function(t,n){var r=this.supertypeMap.get(t);return!r&&n&&this.supertypeMap.set(t,r=new Set),r},e.prototype.fragmentMatches=function(t,n,r,i){var a=this;if(!t.typeCondition)return!0;if(!n)return!1;var o=t.typeCondition.name.value;if(n===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var u=this.getSupertypeSet(n,!0),l=[u],f=function(y){var g=a.getSupertypeSet(y,!1);g&&g.size&&l.indexOf(g)<0&&l.push(g)},d=!!(r&&this.fuzzySubtypes.size),h=!1,p=0;p<l.length;++p){var m=l[p];if(m.has(o))return u.has(o)||(h&&globalThis.__DEV__!==!1&&Ce.warn(7,n,o),u.add(o)),!0;m.forEach(f),d&&p===l.length-1&&Xd(t.selectionSet,r,i)&&(d=!1,h=!0,this.fuzzySubtypes.forEach(function(y,g){var b=n.match(y);b&&b[0]===n&&f(g)}))}return!1},e.prototype.hasKeyArgs=function(t,n){var r=this.getFieldPolicy(t,n,!1);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(t){var n=t.typename,r=t.fieldName,i=this.getFieldPolicy(n,r,!1),a,o=i&&i.keyFn;if(o&&n)for(var u={typename:n,fieldName:r,field:t.field||null,variables:t.variables},l=rh(t);o;){var f=o(l,u);if(Zt(f))o=Iy(f);else{a=f||r;break}}return a===void 0&&(a=t.field?FT(t.field,t.variables):h0(r,rh(t))),a===!1?r:r===Gi(a)?a:r+":"+a},e.prototype.readField=function(t,n){var r=t.from;if(r){var i=t.field||t.fieldName;if(i){if(t.typename===void 0){var a=n.store.getFieldValue(r,"__typename");a&&(t.typename=a)}var o=this.getStoreFieldName(t),u=Gi(o),l=n.store.getFieldValue(r,o),f=this.getFieldPolicy(t.typename,u,!1),d=f&&f.read;if(d){var h=Vy(this,r,t,n,n.store.getStorage(wt(r)?r.__ref:r,o));return eh.withValue(this.cache,d,[l,h])}return l}}},e.prototype.getReadFunction=function(t,n){var r=this.getFieldPolicy(t,n,!1);return r&&r.read},e.prototype.getMergeFunction=function(t,n,r){var i=this.getFieldPolicy(t,n,!1),a=i&&i.merge;return!a&&r&&(i=this.getTypePolicy(r),a=i&&i.merge),a},e.prototype.runMergeFunction=function(t,n,r,i,a){var o=r.field,u=r.typename,l=r.merge;return l===jy?qy(i.store)(t,n):l===$y?n:(i.overwrite&&(t=void 0),l(t,n,Vy(this,void 0,{typename:u,fieldName:o.name.value,field:o,variables:i.variables},i,a||Object.create(null))))},e}();function Vy(e,t,n,r,i){var a=e.getStoreFieldName(n),o=Gi(a),u=n.variables||r.variables,l=r.store,f=l.toReference,d=l.canRead;return{args:rh(n),field:n.field||null,fieldName:o,storeFieldName:a,variables:u,isReference:wt,toReference:f,storage:i,cache:e.cache,canRead:d,readField:function(){return e.readField(ih(arguments,t,u),r)},mergeObjects:qy(r.store)}}function ih(e,t,n){var r=e[0],i=e[1],a=e.length,o;return typeof r=="string"?o={fieldName:r,from:a>1?i:t}:(o=X({},r),hn.call(o,"from")||(o.from=t)),globalThis.__DEV__!==!1&&o.from===void 0&&globalThis.__DEV__!==!1&&Ce.warn(8,K1(Array.from(e))),o.variables===void 0&&(o.variables=n),o}function qy(e){return function(n,r){if(Zt(n)||Zt(r))throw Fn(9);if(qt(n)&&qt(r)){var i=e.getFieldValue(n,"__typename"),a=e.getFieldValue(r,"__typename"),o=i&&a&&i!==a;if(o)return r;if(wt(n)&&Co(r))return e.merge(n.__ref,r),n;if(Co(n)&&wt(r))return e.merge(n,r.__ref),r;if(Co(n)&&Co(r))return X(X({},n),r)}return r}}function ah(e,t,n){var r="".concat(t).concat(n),i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:X(X({},e),{clientOnly:t,deferred:n})),i}var mO=function(){function e(t,n,r){this.cache=t,this.reader=n,this.fragments=r}return e.prototype.writeToStore=function(t,n){var r=this,i=n.query,a=n.result,o=n.dataId,u=n.variables,l=n.overwrite,f=Ca(i),d=iO();u=X(X({},kd(f)),u);var h=X(X({store:t,written:Object.create(null),merge:function(m,y){return d.merge(m,y)},variables:u,varString:Ui(u)},Sy(i,this.fragments)),{overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),p=this.processSelectionSet({result:a||Object.create(null),dataId:o,selectionSet:f.selectionSet,mergeTree:{map:new Map},context:h});if(!wt(p))throw Fn(12,a);return h.incomingById.forEach(function(m,y){var g=m.storeObject,b=m.mergeTree,w=m.fieldNodeSet,S=po(y);if(b&&b.map.size){var C=r.applyMerges(b,S,g,h);if(wt(C))return;g=C}if(globalThis.__DEV__!==!1&&!h.overwrite){var T=Object.create(null);w.forEach(function(k){k.selectionSet&&(T[k.name.value]=!0)});var _=function(k){return T[Gi(k)]===!0},x=function(k){var A=b&&b.map.get(k);return!!(A&&A.info&&A.info.merge)};Object.keys(g).forEach(function(k){_(k)&&!x(k)&&gO(S,g,k,h.store)})}t.merge(y,g)}),t.retain(p.__ref),p},e.prototype.processSelectionSet=function(t){var n=this,r=t.dataId,i=t.result,a=t.selectionSet,o=t.context,u=t.mergeTree,l=this.cache.policies,f=Object.create(null),d=r&&l.rootTypenamesById[r]||Od(i,a,o.fragmentMap)||r&&o.store.get(r,"__typename");typeof d=="string"&&(f.__typename=d);var h=function(){var C=ih(arguments,f,o.variables);if(wt(C.from)){var T=o.incomingById.get(C.from.__ref);if(T){var _=l.readField(X(X({},C),{from:T.storeObject}),o);if(_!==void 0)return _}}return l.readField(C,o)},p=new Set;this.flattenFields(a,i,o,d).forEach(function(C,T){var _,x=Ei(T),k=i[x];if(p.add(T),k!==void 0){var A=l.getStoreFieldName({typename:d,fieldName:T.name.value,field:T,variables:C.variables}),L=zy(u,A),N=n.processFieldValue(k,T,T.selectionSet?ah(C,!1,!1):C,L),F=void 0;T.selectionSet&&(wt(N)||Co(N))&&(F=h("__typename",N));var H=l.getMergeFunction(d,T.name.value,F);H?L.info={field:T,typename:d,merge:H}:Hy(u,A),f=C.merge(f,(_={},_[A]=N,_))}else globalThis.__DEV__!==!1&&!C.clientOnly&&!C.deferred&&!Ld.added(T)&&!l.getReadFunction(d,T.name.value)&&globalThis.__DEV__!==!1&&Ce.error(13,Ei(T),i)});try{var m=l.identify(i,{typename:d,selectionSet:a,fragmentMap:o.fragmentMap,storeObject:f,readField:h}),y=m[0],g=m[1];r=r||y,g&&(f=o.merge(f,g))}catch(C){if(!r)throw C}if(typeof r=="string"){var b=po(r),w=o.written[r]||(o.written[r]=[]);if(w.indexOf(a)>=0||(w.push(a),this.reader&&this.reader.isFresh(i,b,a,o)))return b;var S=o.incomingById.get(r);return S?(S.storeObject=o.merge(S.storeObject,f),S.mergeTree=oh(S.mergeTree,u),p.forEach(function(C){return S.fieldNodeSet.add(C)})):o.incomingById.set(r,{storeObject:f,mergeTree:kl(u)?void 0:u,fieldNodeSet:p}),b}return f},e.prototype.processFieldValue=function(t,n,r,i){var a=this;return!n.selectionSet||t===null?globalThis.__DEV__!==!1?W0(t):t:Zt(t)?t.map(function(o,u){var l=a.processFieldValue(o,n,r,zy(i,u));return Hy(i,u),l}):this.processSelectionSet({result:t,selectionSet:n.selectionSet,context:r,mergeTree:i})},e.prototype.flattenFields=function(t,n,r,i){i===void 0&&(i=Od(n,t,r.fragmentMap));var a=new Map,o=this.cache.policies,u=new wi(!1);return function l(f,d){var h=u.lookup(f,d.clientOnly,d.deferred);h.visited||(h.visited=!0,f.selections.forEach(function(p){if(Fs(p,r.variables)){var m=d.clientOnly,y=d.deferred;if(!(m&&y)&&_r(p.directives)&&p.directives.forEach(function(w){var S=w.name.value;if(S==="client"&&(m=!0),S==="defer"){var C=gl(w,r.variables);(!C||C.if!==!1)&&(y=!0)}}),zi(p)){var g=a.get(p);g&&(m=m&&g.clientOnly,y=y&&g.deferred),a.set(p,ah(r,m,y))}else{var b=vl(p,r.lookupFragment);if(!b&&p.kind===$t.FRAGMENT_SPREAD)throw Fn(14,p.name.value);b&&o.fragmentMatches(b,i,n,r.variables)&&l(b.selectionSet,ah(r,m,y))}}}))}(t,r),a},e.prototype.applyMerges=function(t,n,r,i,a){var o,u=this;if(t.map.size&&!wt(r)){var l=!Zt(r)&&(wt(n)||Co(n))?n:void 0,f=r;l&&!a&&(a=[wt(l)?l.__ref:l]);var d,h=function(p,m){return Zt(p)?typeof m=="number"?p[m]:void 0:i.store.getFieldValue(p,String(m))};t.map.forEach(function(p,m){var y=h(l,m),g=h(f,m);if(g!==void 0){a&&a.push(m);var b=u.applyMerges(p,y,g,i,a);b!==g&&(d=d||new Map,d.set(m,b)),a&&Ce(a.pop()===m)}}),d&&(r=Zt(f)?f.slice(0):X({},f),d.forEach(function(p,m){r[m]=p}))}return t.info?this.cache.policies.runMergeFunction(n,r,t.info,i,a&&(o=i.store).getStorage.apply(o,a)):r},e}(),Uy=[];function zy(e,t){var n=e.map;return n.has(t)||n.set(t,Uy.pop()||{map:new Map}),n.get(t)}function oh(e,t){if(e===t||!t||kl(t))return e;if(!e||kl(e))return t;var n=e.info&&t.info?X(X({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,i=r?new Map:e.map.size?e.map:t.map,a={info:n,map:i};if(r){var o=new Set(t.map.keys());e.map.forEach(function(u,l){a.map.set(l,oh(u,t.map.get(l))),o.delete(l)}),o.forEach(function(u){a.map.set(u,oh(t.map.get(u),e.map.get(u)))})}return a}function kl(e){return!e||!(e.info||e.map.size)}function Hy(e,t){var n=e.map,r=n.get(t);r&&kl(r)&&(Uy.push(r),n.delete(t))}var By=new Set;function gO(e,t,n,r){var i=function(h){var p=r.getFieldValue(h,n);return typeof p=="object"&&p},a=i(e);if(a){var o=i(t);if(o&&!wt(a)&&!pt(a,o)&&!Object.keys(a).every(function(h){return r.getFieldValue(o,h)!==void 0})){var u=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),l=Gi(n),f="".concat(u,".").concat(l);if(!By.has(f)){By.add(f);var d=[];!Zt(a)&&!Zt(o)&&[a,o].forEach(function(h){var p=r.getFieldValue(h,"__typename");typeof p=="string"&&!d.includes(p)&&d.push(p)}),globalThis.__DEV__!==!1&&Ce.warn(15,l,u,d.length?"either ensure all objects of type "+d.join(" and ")+" have an ID or a custom merge function, or ":"",f,X({},a),X({},o))}}}}var Wy=function(e){yr(t,e);function t(n){n===void 0&&(n={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new N0(Ld),r.assumeImmutableResults=!0,r.makeVar=dO,r.txCount=0,r.config=nO(n),r.addTypename=!!r.config.addTypename,r.policies=new vO({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return t.prototype.init=function(){var n=this.data=new Qs.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=n.stump,this.resetResultCache()},t.prototype.resetResultCache=function(n){var r=this,i=this.storeReader,a=this.config.fragments;this.storeWriter=new mO(this,this.storeReader=new uO({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:wy(this.config),canon:n?void 0:i&&i.canon,fragments:a}),a),this.maybeBroadcastWatch=qs(function(o,u){return r.broadcastWatch(o,u)},{max:this.config.resultCacheMaxSize||ti["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(o){var u=o.optimistic?r.optimisticData:r.data;if(Ys(u)){var l=o.optimistic,f=o.id,d=o.variables;return u.makeCacheKey(o.query,o.callback,Ui({optimistic:l,id:f,variables:d}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(o){return o.resetCaching()})},t.prototype.restore=function(n){return this.init(),n&&this.data.replace(n),this},t.prototype.extract=function(n){return n===void 0&&(n=!1),(n?this.optimisticData:this.data).extract()},t.prototype.read=function(n){var r=n.returnPartialData,i=r===void 0?!1:r;try{return this.storeReader.diffQueryAgainstStore(X(X({},n),{store:n.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:i})).result||null}catch(a){if(a instanceof yy)return null;throw a}},t.prototype.write=function(n){try{return++this.txCount,this.storeWriter.writeToStore(this.data,n)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.modify=function(n){if(hn.call(n,"id")&&!n.id)return!1;var r=n.optimistic?this.optimisticData:this.data;try{return++this.txCount,r.modify(n.id||"ROOT_QUERY",n.fields)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.diff=function(n){return this.storeReader.diffQueryAgainstStore(X(X({},n),{store:n.optimistic?this.optimisticData:this.data,rootId:n.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(n){var r=this;return this.watches.size||fO(this),this.watches.add(n),n.immediate&&this.maybeBroadcastWatch(n),function(){r.watches.delete(n)&&!r.watches.size&&Ay(r),r.maybeBroadcastWatch.forget(n)}},t.prototype.gc=function(n){var r;Ui.reset(),Bi.reset(),this.addTypenameTransform.resetCache(),(r=this.config.fragments)===null||r===void 0||r.resetCaches();var i=this.optimisticData.gc();return n&&!this.txCount&&(n.resetResultCache?this.resetResultCache(n.resetResultIdentities):n.resetResultIdentities&&this.storeReader.resetCanon()),i},t.prototype.retain=function(n,r){return(r?this.optimisticData:this.data).retain(n)},t.prototype.release=function(n,r){return(r?this.optimisticData:this.data).release(n)},t.prototype.identify=function(n){if(wt(n))return n.__ref;try{return this.policies.identify(n)[0]}catch(r){globalThis.__DEV__!==!1&&Ce.warn(r)}},t.prototype.evict=function(n){if(!n.id){if(hn.call(n,"id"))return!1;n=X(X({},n),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(n,this.data)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.reset=function(n){var r=this;return this.init(),Ui.reset(),n&&n.discardWatches?(this.watches.forEach(function(i){return r.maybeBroadcastWatch.forget(i)}),this.watches.clear(),Ay(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(n){var r=this.optimisticData.removeLayer(n);r!==this.optimisticData&&(this.optimisticData=r,this.broadcastWatches())},t.prototype.batch=function(n){var r=this,i=n.update,a=n.optimistic,o=a===void 0?!0:a,u=n.removeOptimistic,l=n.onWatchUpdated,f,d=function(p){var m=r,y=m.data,g=m.optimisticData;++r.txCount,p&&(r.data=r.optimisticData=p);try{return f=i(r)}finally{--r.txCount,r.data=y,r.optimisticData=g}},h=new Set;return l&&!this.txCount&&this.broadcastWatches(X(X({},n),{onWatchUpdated:function(p){return h.add(p),!1}})),typeof o=="string"?this.optimisticData=this.optimisticData.addLayer(o,d):o===!1?d(this.data):d(),typeof u=="string"&&(this.optimisticData=this.optimisticData.removeLayer(u)),l&&h.size?(this.broadcastWatches(X(X({},n),{onWatchUpdated:function(p,m){var y=l.call(this,p,m);return y!==!1&&h.delete(p),y}})),h.size&&h.forEach(function(p){return r.maybeBroadcastWatch.dirty(p)})):this.broadcastWatches(n),f},t.prototype.performTransaction=function(n,r){return this.batch({update:n,optimistic:r||r!==null})},t.prototype.transformDocument=function(n){return this.addTypenameToDocument(this.addFragmentsToDocument(n))},t.prototype.fragmentMatches=function(n,r){return this.policies.fragmentMatches(n,r)},t.prototype.lookupFragment=function(n){var r;return((r=this.config.fragments)===null||r===void 0?void 0:r.lookup(n))||null},t.prototype.broadcastWatches=function(n){var r=this;this.txCount||this.watches.forEach(function(i){return r.maybeBroadcastWatch(i,n)})},t.prototype.addFragmentsToDocument=function(n){var r=this.config.fragments;return r?r.transform(n):n},t.prototype.addTypenameToDocument=function(n){return this.addTypename?this.addTypenameTransform.transformDocument(n):n},t.prototype.broadcastWatch=function(n,r){var i=n.lastDiff,a=this.diff(n);r&&(n.optimistic&&typeof r.optimistic=="string"&&(a.fromOptimisticTransaction=!0),r.onWatchUpdated&&r.onWatchUpdated.call(this,n,a,i)===!1)||(!i||!pt(i.result,a.result))&&n.callback(n.lastDiff=a,i)},t}(gy);globalThis.__DEV__!==!1&&(Wy.prototype.getMemoryInternals=gT);var ct;(function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"})(ct||(ct={}));function Oo(e){return e?e<7:!1}var Gy=Object.assign,yO=Object.hasOwnProperty,Xs=function(e){yr(t,e);function t(n){var r=n.queryManager,i=n.queryInfo,a=n.options,o=this,u=t.inactiveOnCreation.getValue();o=e.call(this,function(w){u&&(r.queries.set(o.queryId,i),u=!1);try{var S=w._subscription._observer;S&&!S.error&&(S.error=bO)}catch{}var C=!o.observers.size;o.observers.add(w);var T=o.last;return T&&T.error?w.error&&w.error(T.error):T&&T.result&&w.next&&w.next(o.maskResult(T.result)),C&&o.reobserve().catch(function(){}),function(){o.observers.delete(w)&&!o.observers.size&&o.tearDownQuery()}})||this,o.observers=new Set,o.subscriptions=new Set,o.dirty=!1,o.queryInfo=i,o.queryManager=r,o.waitForOwnResult=sh(a.fetchPolicy),o.isTornDown=!1,o.subscribeToMore=o.subscribeToMore.bind(o),o.maskResult=o.maskResult.bind(o);var l=r.defaultOptions.watchQuery,f=l===void 0?{}:l,d=f.fetchPolicy,h=d===void 0?"cache-first":d,p=a.fetchPolicy,m=p===void 0?h:p,y=a.initialFetchPolicy,g=y===void 0?m==="standby"?h:m:y;o.options=X(X({},a),{initialFetchPolicy:g,fetchPolicy:m}),o.queryId=i.queryId||r.generateQueryId();var b=Ca(o.query);return o.queryName=b&&b.name&&b.name.value,o}return Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var n=this;return new Promise(function(r,i){var a={next:function(u){r(u),n.observers.delete(a),n.observers.size||n.queryManager.removeQuery(n.queryId),setTimeout(function(){o.unsubscribe()},0)},error:i},o=n.subscribe(a)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentFullResult=function(n){n===void 0&&(n=!0);var r=this.getLastResult(!0),i=this.queryInfo.networkStatus||r&&r.networkStatus||ct.ready,a=X(X({},r),{loading:Oo(i),networkStatus:i}),o=this.options.fetchPolicy,u=o===void 0?"cache-first":o;if(!(sh(u)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var l=this.queryInfo.getDiff();(l.complete||this.options.returnPartialData)&&(a.data=l.result),pt(a.data,{})&&(a.data=void 0),l.complete?(delete a.partial,l.complete&&a.networkStatus===ct.loading&&(u==="cache-first"||u==="cache-only")&&(a.networkStatus=ct.ready,a.loading=!1)):a.partial=!0,a.networkStatus===ct.ready&&(a.error||a.errors)&&(a.networkStatus=ct.error),globalThis.__DEV__!==!1&&!l.complete&&!this.options.partialRefetch&&!a.loading&&!a.data&&!a.error&&Qy(l.missing)}return n&&this.updateLastResult(a),a},t.prototype.getCurrentResult=function(n){return n===void 0&&(n=!0),this.maskResult(this.getCurrentFullResult(n))},t.prototype.isDifferentFromLastResult=function(n,r){if(!this.last)return!0;var i=this.queryManager.getDocumentInfo(this.query),a=this.queryManager.dataMasking,o=a?i.nonReactiveQuery:this.query,u=a||i.hasNonreactiveDirective?!ly(o,this.last.result,n,this.variables):!pt(this.last.result,n);return u||r&&!pt(this.last.variables,r)},t.prototype.getLast=function(n,r){var i=this.last;if(i&&i[n]&&(!r||pt(i.variables,this.variables)))return i[n]},t.prototype.getLastResult=function(n){return this.getLast("result",n)},t.prototype.getLastError=function(n){return this.getLast("error",n)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(n){var r,i={pollInterval:0},a=this.options.fetchPolicy;if(a==="no-cache"?i.fetchPolicy="no-cache":i.fetchPolicy="network-only",globalThis.__DEV__!==!1&&n&&yO.call(n,"variables")){var o=p0(this.query),u=o.variableDefinitions;(!u||!u.some(function(l){return l.variable.name.value==="variables"}))&&globalThis.__DEV__!==!1&&Ce.warn(21,n,((r=o.name)===null||r===void 0?void 0:r.value)||o)}return n&&!pt(this.options.variables,n)&&(i.variables=this.options.variables=X(X({},this.options.variables),n)),this.queryInfo.resetLastWrite(),this.reobserve(i,ct.refetch)},t.prototype.fetchMore=function(n){var r=this,i=X(X({},n.query?n:X(X(X(X({},this.options),{query:this.options.query}),n),{variables:X(X({},this.options.variables),n.variables)})),{fetchPolicy:"no-cache"});i.query=this.transformDocument(i.query);var a=this.queryManager.generateQueryId();this.lastQuery=n.query?this.transformDocument(this.options.query):i.query;var o=this.queryInfo,u=o.networkStatus;o.networkStatus=ct.fetchMore,i.notifyOnNetworkStatusChange&&this.observe();var l=new Set,f=n==null?void 0:n.updateQuery,d=this.options.fetchPolicy!=="no-cache";return d||Ce(f,22),this.queryManager.fetchQuery(a,i,ct.fetchMore).then(function(h){if(r.queryManager.removeQuery(a),o.networkStatus===ct.fetchMore&&(o.networkStatus=u),d)r.queryManager.cache.batch({update:function(y){var g=n.updateQuery;g?y.updateQuery({query:r.query,variables:r.variables,returnPartialData:!0,optimistic:!1},function(b){return g(b,{fetchMoreResult:h.data,variables:i.variables})}):y.writeQuery({query:i.query,variables:i.variables,data:h.data})},onWatchUpdated:function(y){l.add(y.query)}});else{var p=r.getLast("result"),m=f(p.data,{fetchMoreResult:h.data,variables:i.variables});r.reportResult(X(X({},p),{networkStatus:u,loading:Oo(u),data:m}),r.variables)}return r.maskResult(h)}).finally(function(){d&&!l.has(r.query)&&r.reobserveCacheFirst()})},t.prototype.subscribeToMore=function(n){var r=this,i=this.queryManager.startGraphQLSubscription({query:n.document,variables:n.variables,context:n.context}).subscribe({next:function(a){var o=n.updateQuery;o&&r.updateQuery(function(u,l){return o(u,X({subscriptionData:a},l))})},error:function(a){if(n.onError){n.onError(a);return}globalThis.__DEV__!==!1&&Ce.error(23,a)}});return this.subscriptions.add(i),function(){r.subscriptions.delete(i)&&i.unsubscribe()}},t.prototype.setOptions=function(n){return this.reobserve(n)},t.prototype.silentSetOptions=function(n){var r=Ta(this.options,n||{});Gy(this.options,r)},t.prototype.setVariables=function(n){return pt(this.variables,n)?this.observers.size?this.result():Promise.resolve():(this.options.variables=n,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:n},ct.setVariables):Promise.resolve())},t.prototype.updateQuery=function(n){var r=this.queryManager,i=r.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),a=i.result,o=i.complete,u=n(a,{variables:this.variables,complete:!!o,previousData:a});u&&(r.cache.writeQuery({query:this.options.query,data:u,variables:this.variables}),r.broadcastQueries())},t.prototype.startPolling=function(n){this.options.pollInterval=n,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(n,r){if(r.nextFetchPolicy){var i=r.fetchPolicy,a=i===void 0?"cache-first":i,o=r.initialFetchPolicy,u=o===void 0?a:o;a==="standby"||(typeof r.nextFetchPolicy=="function"?r.fetchPolicy=r.nextFetchPolicy(a,{reason:n,options:r,observable:this,initialFetchPolicy:u}):n==="variables-changed"?r.fetchPolicy=u:r.fetchPolicy=r.nextFetchPolicy)}return r.fetchPolicy},t.prototype.fetch=function(n,r,i){var a=this.queryManager.getOrCreateQuery(this.queryId);return a.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(a,n,r,i)},t.prototype.updatePolling=function(){var n=this;if(!this.queryManager.ssrMode){var r=this,i=r.pollingInfo,a=r.options.pollInterval;if(!a||!this.hasObservers()){i&&(clearTimeout(i.timeout),delete this.pollingInfo);return}if(!(i&&i.interval===a)){Ce(a,24);var o=i||(this.pollingInfo={});o.interval=a;var u=function(){var f,d;n.pollingInfo&&(!Oo(n.queryInfo.networkStatus)&&!(!((d=(f=n.options).skipPollAttempt)===null||d===void 0)&&d.call(f))?n.reobserve({fetchPolicy:n.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},ct.poll).then(l,l):l())},l=function(){var f=n.pollingInfo;f&&(clearTimeout(f.timeout),f.timeout=setTimeout(u,f.interval))};l()}}},t.prototype.updateLastResult=function(n,r){r===void 0&&(r=this.variables);var i=this.getLastError();return i&&this.last&&!pt(r,this.last.variables)&&(i=void 0),this.last=X({result:this.queryManager.assumeImmutableResults?n:W0(n),variables:r},i?{error:i}:null)},t.prototype.reobserveAsConcast=function(n,r){var i=this;this.isTornDown=!1;var a=r===ct.refetch||r===ct.fetchMore||r===ct.poll,o=this.options.variables,u=this.options.fetchPolicy,l=Ta(this.options,n||{}),f=a?l:Gy(this.options,l),d=this.transformDocument(f.query);this.lastQuery=d,a||(this.updatePolling(),n&&n.variables&&!pt(n.variables,o)&&f.fetchPolicy!=="standby"&&(f.fetchPolicy===u||typeof f.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",f),r===void 0&&(r=ct.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=sh(f.fetchPolicy));var h=function(){i.concast===y&&(i.waitForOwnResult=!1)},p=f.variables&&X({},f.variables),m=this.fetch(f,r,d),y=m.concast,g=m.fromLink,b={next:function(w){pt(i.variables,p)&&(h(),i.reportResult(w,p))},error:function(w){pt(i.variables,p)&&(ey(w)||(w=new nr({networkError:w})),h(),i.reportError(w,p))}};return!a&&(g||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=y,this.observer=b),y.addObserver(b),y},t.prototype.reobserve=function(n,r){return l4(this.reobserveAsConcast(n,r).promise.then(this.maskResult))},t.prototype.resubscribeAfterError=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=this.last;this.resetLastResults();var a=this.subscribe.apply(this,n);return this.last=i,a},t.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},t.prototype.reportResult=function(n,r){var i=this.getLastError(),a=this.isDifferentFromLastResult(n,r);(i||!n.partial||this.options.returnPartialData)&&this.updateLastResult(n,r),(i||a)&&Hs(this.observers,"next",this.maskResult(n))},t.prototype.reportError=function(n,r){var i=X(X({},this.getLastResult()),{error:n,errors:n.graphQLErrors,networkStatus:ct.error,loading:!1});this.updateLastResult(i,r),Hs(this.observers,"error",this.last.error=n)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(n){return n.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(n){return this.queryManager.transform(n)},t.prototype.maskResult=function(n){return n&&"data"in n?X(X({},n),{data:this.queryManager.maskOperation({document:this.query,data:n.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):n},t.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},t.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},t.prototype.scheduleNotify=function(){var n=this;this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return n.notify()},0)))},t.prototype.notify=function(){if(this.cancelNotifyTimeout(),this.dirty&&(this.options.fetchPolicy=="cache-only"||this.options.fetchPolicy=="cache-and-network"||!Oo(this.queryInfo.networkStatus))){var n=this.queryInfo.getDiff();n.fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()}this.dirty=!1},t.prototype.reobserveCacheFirst=function(){var n=this.options,r=n.fetchPolicy,i=n.nextFetchPolicy;return r==="cache-and-network"||r==="network-only"?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(a,o){return this.nextFetchPolicy=i,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(a,o):r}}):this.reobserve()},t.inactiveOnCreation=new $s,t}(Et);G0(Xs);function bO(e){globalThis.__DEV__!==!1&&Ce.error(25,e.message,e.stack)}function Qy(e){globalThis.__DEV__!==!1&&e&&globalThis.__DEV__!==!1&&Ce.debug(26,e)}function sh(e){return e==="network-only"||e==="no-cache"||e==="standby"}var ko=new(Sa?WeakMap:Map);function uh(e,t){var n=e[t];typeof n=="function"&&(e[t]=function(){return ko.set(e,(ko.get(e)+1)%1e15),n.apply(this,arguments)})}var lh=function(){function e(t,n){n===void 0&&(n=t.generateQueryId()),this.queryId=n,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var r=this.cache=t.cache;ko.has(r)||(ko.set(r,0),uh(r,"evict"),uh(r,"modify"),uh(r,"reset"))}return e.prototype.init=function(t){var n=t.networkStatus||ct.loading;return this.variables&&this.networkStatus!==ct.loading&&!pt(this.variables,t.variables)&&(n=ct.setVariables),pt(t.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:t.document,variables:t.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:n}),t.observableQuery&&this.setObservableQuery(t.observableQuery),t.lastRequestId&&(this.lastRequestId=t.lastRequestId),this},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var t=this.getDiffOptions();if(this.lastDiff&&pt(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var n=this.observableQuery;if(n&&n.options.fetchPolicy==="no-cache")return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(t,n){this.lastDiff=t?{diff:t,options:n||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(t){var n;return t===void 0&&(t=this.variables),{query:this.document,variables:t,returnPartialData:!0,optimistic:!0,canonizeResults:(n=this.observableQuery)===null||n===void 0?void 0:n.options.canonizeResults}},e.prototype.setDiff=function(t){var n,r,i=this.lastDiff&&this.lastDiff.diff;t&&!t.complete&&(!((n=this.observableQuery)===null||n===void 0)&&n.getLastError())||(this.updateLastDiff(t),pt(i&&i.result,t&&t.result)||(r=this.observableQuery)===null||r===void 0||r.scheduleNotify())},e.prototype.setObservableQuery=function(t){t!==this.observableQuery&&(this.observableQuery=t,t&&(t.queryInfo=this))},e.prototype.stop=function(){var t;if(!this.stopped){this.stopped=!0,(t=this.observableQuery)===null||t===void 0||t.resetNotifications(),this.cancel();var n=this.observableQuery;n&&n.stopPolling()}},e.prototype.cancel=function(){var t;(t=this.cancelWatch)===null||t===void 0||t.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(t){var n=this;t===void 0&&(t=this.variables);var r=this.observableQuery;if(!(r&&r.options.fetchPolicy==="no-cache")){var i=X(X({},this.getDiffOptions(t)),{watcher:this,callback:function(a){return n.setDiff(a)}});(!this.lastWatch||!pt(i,this.lastWatch))&&(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(t,n){var r=this.lastWrite;return!(r&&r.dmCount===ko.get(this.cache)&&pt(n,r.variables)&&pt(t.data,r.result.data))},e.prototype.markResult=function(t,n,r,i){var a=this,o,u=new Wi,l=_r(t.errors)?t.errors.slice(0):[];if((o=this.observableQuery)===null||o===void 0||o.resetNotifications(),"incremental"in t&&_r(t.incremental)){var f=Y0(this.getDiff().result,t);t.data=f}else if("hasNext"in t&&t.hasNext){var d=this.getDiff();t.data=u.merge(d.result,t.data)}this.graphQLErrors=l,r.fetchPolicy==="no-cache"?this.updateLastDiff({result:t.data,complete:!0},this.getDiffOptions(r.variables)):i!==0&&(ch(t,r.errorPolicy)?this.cache.performTransaction(function(h){if(a.shouldWrite(t,r.variables))h.writeQuery({query:n,data:t.data,variables:r.variables,overwrite:i===1}),a.lastWrite={result:t,variables:r.variables,dmCount:ko.get(a.cache)};else if(a.lastDiff&&a.lastDiff.diff.complete){t.data=a.lastDiff.diff.result;return}var p=a.getDiffOptions(r.variables),m=h.diff(p);!a.stopped&&pt(a.variables,r.variables)&&a.updateWatch(r.variables),a.updateLastDiff(m,p),m.complete&&(t.data=m.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=ct.ready},e.prototype.markError=function(t){var n;return this.networkStatus=ct.error,this.lastWrite=void 0,(n=this.observableQuery)===null||n===void 0||n.resetNotifications(),t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},e}();function ch(e,t){t===void 0&&(t="none");var n=t==="ignore"||t==="all",r=!Sl(e);return!r&&n&&e.data&&(r=!0),r}var _O=Object.prototype.hasOwnProperty,Yy=Object.create(null),wO=function(){function e(t){var n=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new Sd(ti["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new wi(!1),this.noCacheWarningsByQueryId=new Set;var r=new N0(function(a){return n.cache.transformDocument(a)},{cache:!1});this.cache=t.cache,this.link=t.link,this.defaultOptions=t.defaultOptions,this.queryDeduplication=t.queryDeduplication,this.clientAwareness=t.clientAwareness,this.localState=t.localState,this.ssrMode=t.ssrMode,this.assumeImmutableResults=t.assumeImmutableResults,this.dataMasking=t.dataMasking;var i=t.documentTransform;this.documentTransform=i?r.concat(i).concat(r):r,this.defaultContext=t.defaultContext||Object.create(null),(this.onBroadcast=t.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var t=this;this.queries.forEach(function(n,r){t.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(Fn(27))},e.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(n){return n(t)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(t){return $i(this,arguments,void 0,function(n){var r,i,a,o,u,l,f,d=n.mutation,h=n.variables,p=n.optimisticResponse,m=n.updateQueries,y=n.refetchQueries,g=y===void 0?[]:y,b=n.awaitRefetchQueries,w=b===void 0?!1:b,S=n.update,C=n.onQueryUpdated,T=n.fetchPolicy,_=T===void 0?((l=this.defaultOptions.mutate)===null||l===void 0?void 0:l.fetchPolicy)||"network-only":T,x=n.errorPolicy,k=x===void 0?((f=this.defaultOptions.mutate)===null||f===void 0?void 0:f.errorPolicy)||"none":x,A=n.keepRootFields,L=n.context;return Vi(this,function(N){switch(N.label){case 0:return Ce(d,28),Ce(_==="network-only"||_==="no-cache",29),r=this.generateMutationId(),d=this.cache.transformForLink(this.transform(d)),i=this.getDocumentInfo(d).hasClientExports,h=this.getVariables(d,h),i?[4,this.localState.addExportedVariables(d,h,L)]:[3,2];case 1:h=N.sent(),N.label=2;case 2:return a=this.mutationStore&&(this.mutationStore[r]={mutation:d,variables:h,loading:!0,error:null}),o=p&&this.markMutationOptimistic(p,{mutationId:r,document:d,variables:h,fetchPolicy:_,errorPolicy:k,context:L,updateQueries:m,update:S,keepRootFields:A}),this.broadcastQueries(),u=this,[2,new Promise(function(F,H){return zd(u.getObservableFromLink(d,X(X({},L),{optimisticResponse:o?p:void 0}),h,{},!1),function(V){if(Sl(V)&&k==="none")throw new nr({graphQLErrors:Hd(V)});a&&(a.loading=!1,a.error=null);var D=X({},V);return typeof g=="function"&&(g=g(D)),k==="ignore"&&Sl(D)&&delete D.errors,u.markMutationResult({mutationId:r,result:D,document:d,variables:h,fetchPolicy:_,errorPolicy:k,context:L,update:S,updateQueries:m,awaitRefetchQueries:w,refetchQueries:g,removeOptimistic:o?r:void 0,onQueryUpdated:C,keepRootFields:A})}).subscribe({next:function(V){u.broadcastQueries(),(!("hasNext"in V)||V.hasNext===!1)&&F(X(X({},V),{data:u.maskOperation({document:d,data:V.data,fetchPolicy:_,id:r})}))},error:function(V){a&&(a.loading=!1,a.error=V),o&&u.cache.removeOptimistic(r),u.broadcastQueries(),H(V instanceof nr?V:new nr({networkError:V}))}})})]}})})},e.prototype.markMutationResult=function(t,n){var r=this;n===void 0&&(n=this.cache);var i=t.result,a=[],o=t.fetchPolicy==="no-cache";if(!o&&ch(i,t.errorPolicy)){if(xo(i)||a.push({result:i.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}),xo(i)&&_r(i.incremental)){var u=n.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}),l=void 0;u.result&&(l=Y0(u.result,i)),typeof l<"u"&&(i.data=l,a.push({result:l,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}))}var f=t.updateQueries;f&&this.queries.forEach(function(h,p){var m=h.observableQuery,y=m&&m.queryName;if(!(!y||!_O.call(f,y))){var g=f[y],b=r.queries.get(p),w=b.document,S=b.variables,C=n.diff({query:w,variables:S,returnPartialData:!0,optimistic:!1}),T=C.result,_=C.complete;if(_&&T){var x=g(T,{mutationResult:i,queryName:w&&js(w)||void 0,queryVariables:S});x&&a.push({result:x,dataId:"ROOT_QUERY",query:w,variables:S})}}})}if(a.length>0||(t.refetchQueries||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){var d=[];if(this.refetchQueries({updateCache:function(h){o||a.forEach(function(g){return h.write(g)});var p=t.update,m=!p4(i)||xo(i)&&!i.hasNext;if(p){if(!o){var y=h.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});y.complete&&(i=X(X({},i),{data:y.result}),"incremental"in i&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}m&&p(h,i,{context:t.context,variables:t.variables})}!o&&!t.keepRootFields&&m&&h.modify({id:"ROOT_MUTATION",fields:function(g,b){var w=b.fieldName,S=b.DELETE;return w==="__typename"?g:S}})},include:t.refetchQueries,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(function(h){return d.push(h)}),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(d).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(t,n){var r=this,i=typeof t=="function"?t(n.variables,{IGNORE:Yy}):t;return i===Yy?!1:(this.cache.recordOptimisticTransaction(function(a){try{r.markMutationResult(X(X({},n),{result:{data:i}}),a)}catch(o){globalThis.__DEV__!==!1&&Ce.error(o)}},n.mutationId),!0)},e.prototype.fetchQuery=function(t,n,r){return this.fetchConcastWithInfo(this.getOrCreateQuery(t),n,r).concast.promise},e.prototype.getQueryStore=function(){var t=Object.create(null);return this.queries.forEach(function(n,r){t[r]={variables:n.variables,networkStatus:n.networkStatus,networkError:n.networkError,graphQLErrors:n.graphQLErrors}}),t},e.prototype.resetErrors=function(t){var n=this.queries.get(t);n&&(n.networkError=void 0,n.graphQLErrors=[])},e.prototype.transform=function(t){return this.documentTransform.transformDocument(t)},e.prototype.getDocumentInfo=function(t){var n=this.transformCache;if(!n.has(t)){var r={hasClientExports:K6(t),hasForcedResolvers:this.localState.shouldForceResolvers(t),hasNonreactiveDirective:Ds(["nonreactive"],t),nonReactiveQuery:ZT(t),clientQuery:this.localState.clientQuery(t),serverQuery:D0([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],t),defaultVars:kd(Ca(t)),asQuery:X(X({},t),{definitions:t.definitions.map(function(i){return i.kind==="OperationDefinition"&&i.operation!=="query"?X(X({},i),{operation:"query"}):i})})};n.set(t,r)}return n.get(t)},e.prototype.getVariables=function(t,n){return X(X({},this.getDocumentInfo(t).defaultVars),n)},e.prototype.watchQuery=function(t){var n=this.transform(t.query);t=X(X({},t),{variables:this.getVariables(n,t.variables)}),typeof t.notifyOnNetworkStatusChange>"u"&&(t.notifyOnNetworkStatusChange=!1);var r=new lh(this),i=new Xs({queryManager:this,queryInfo:r,options:t});return i.lastQuery=n,Xs.inactiveOnCreation.getValue()||this.queries.set(i.queryId,r),r.init({document:n,observableQuery:i,variables:i.variables}),i},e.prototype.query=function(t,n){var r=this;n===void 0&&(n=this.generateQueryId()),Ce(t.query,30),Ce(t.query.kind==="Document",31),Ce(!t.returnPartialData,32),Ce(!t.pollInterval,33);var i=this.transform(t.query);return this.fetchQuery(n,X(X({},t),{query:i})).then(function(a){return a&&X(X({},a),{data:r.maskOperation({document:i,data:a.data,fetchPolicy:t.fetchPolicy,id:n})})}).finally(function(){return r.stopQuery(n)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(t){var n=this.queries.get(t);n&&n.stop()},e.prototype.clearStore=function(t){return t===void 0&&(t={discardWatches:!0}),this.cancelPendingFetches(Fn(34)),this.queries.forEach(function(n){n.observableQuery?n.networkStatus=ct.loading:n.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(t)},e.prototype.getObservableQueries=function(t){var n=this;t===void 0&&(t="active");var r=new Map,i=new Map,a=new Map,o=new Set;return Array.isArray(t)&&t.forEach(function(u){if(typeof u=="string")i.set(u,u),a.set(u,!1);else if(CT(u)){var l=Bi(n.transform(u));i.set(l,js(u)),a.set(l,!1)}else qt(u)&&u.query&&o.add(u)}),this.queries.forEach(function(u,l){var f=u.observableQuery,d=u.document;if(f){if(t==="all"){r.set(l,f);return}var h=f.queryName,p=f.options.fetchPolicy;if(p==="standby"||t==="active"&&!f.hasObservers())return;(t==="active"||h&&a.has(h)||d&&a.has(Bi(d)))&&(r.set(l,f),h&&a.set(h,!0),d&&a.set(Bi(d),!0))}}),o.size&&o.forEach(function(u){var l=vd("legacyOneTimeQuery"),f=n.getOrCreateQuery(l).init({document:u.query,variables:u.variables}),d=new Xs({queryManager:n,queryInfo:f,options:X(X({},u),{fetchPolicy:"network-only"})});Ce(d.queryId===l),f.setObservableQuery(d),r.set(l,d)}),globalThis.__DEV__!==!1&&a.size&&a.forEach(function(u,l){if(!u){var f=i.get(l);f?globalThis.__DEV__!==!1&&Ce.warn(35,f):globalThis.__DEV__!==!1&&Ce.warn(36)}}),r},e.prototype.reFetchObservableQueries=function(t){var n=this;t===void 0&&(t=!1);var r=[];return this.getObservableQueries(t?"all":"active").forEach(function(i,a){var o=i.options.fetchPolicy;i.resetLastResults(),(t||o!=="standby"&&o!=="cache-only")&&r.push(i.refetch()),(n.queries.get(a)||i.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.startGraphQLSubscription=function(t){var n=this,r=t.query,i=t.variables,a=t.fetchPolicy,o=t.errorPolicy,u=o===void 0?"none":o,l=t.context,f=l===void 0?{}:l,d=t.extensions,h=d===void 0?{}:d;r=this.transform(r),i=this.getVariables(r,i);var p=function(y){return n.getObservableFromLink(r,f,y,h).map(function(g){a!=="no-cache"&&(ch(g,u)&&n.cache.write({query:r,result:g.data,dataId:"ROOT_SUBSCRIPTION",variables:y}),n.broadcastQueries());var b=Sl(g),w=J0(g);if(b||w){var S={};if(b&&(S.graphQLErrors=g.errors),w&&(S.protocolErrors=g.extensions[Cl]),u==="none"||w)throw new nr(S)}return u==="ignore"&&delete g.errors,g})};if(this.getDocumentInfo(r).hasClientExports){var m=this.localState.addExportedVariables(r,i,f).then(p);return new Et(function(y){var g=null;return m.then(function(b){return g=b.subscribe(y)},y.error),function(){return g&&g.unsubscribe()}})}return p(i)},e.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},e.prototype.removeQuery=function(t){var n;this.fetchCancelFns.delete(t),this.queries.has(t)&&((n=this.queries.get(t))===null||n===void 0||n.stop(),this.queries.delete(t))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(t){var n;return(n=t.observableQuery)===null||n===void 0?void 0:n.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(t,n,r,i,a){var o=this,u;a===void 0&&(a=(u=n==null?void 0:n.queryDeduplication)!==null&&u!==void 0?u:this.queryDeduplication);var l,f=this.getDocumentInfo(t),d=f.serverQuery,h=f.clientQuery;if(d){var p=this,m=p.inFlightLinkObservables,y=p.link,g={query:d,variables:r,operationName:js(d)||void 0,context:this.prepareContext(X(X({},n),{forceFetch:!a})),extensions:i};if(n=g.context,a){var b=Bi(d),w=Ui(r),S=m.lookup(b,w);if(l=S.observable,!l){var C=new So([Wd(y,g)]);l=S.observable=C,C.beforeNext(function T(_,x){_==="next"&&"hasNext"in x&&x.hasNext?C.beforeNext(T):m.remove(b,w)})}}else l=new So([Wd(y,g)])}else l=new So([Et.of({data:{}})]),n=this.prepareContext(n);return h&&(l=zd(l,function(T){return o.localState.runResolvers({document:h,remoteResult:T,context:n,variables:r})})),l},e.prototype.getResultsFromLink=function(t,n,r){var i=t.lastRequestId=this.generateRequestId(),a=this.cache.transformForLink(r.query);return zd(this.getObservableFromLink(a,r.context,r.variables),function(o){var u=Hd(o),l=u.length>0,f=r.errorPolicy;if(i>=t.lastRequestId){if(l&&f==="none")throw t.markError(new nr({graphQLErrors:u}));t.markResult(o,a,r,n),t.markReady()}var d={data:o.data,loading:!1,networkStatus:ct.ready};return l&&f==="none"&&(d.data=void 0),l&&f!=="ignore"&&(d.errors=u,d.networkStatus=ct.error),d},function(o){var u=ey(o)?o:new nr({networkError:o});throw i>=t.lastRequestId&&t.markError(u),u})},e.prototype.fetchConcastWithInfo=function(t,n,r,i){var a=this;r===void 0&&(r=ct.loading),i===void 0&&(i=n.query);var o=this.getVariables(i,n.variables),u=this.defaultOptions.watchQuery,l=n.fetchPolicy,f=l===void 0?u&&u.fetchPolicy||"cache-first":l,d=n.errorPolicy,h=d===void 0?u&&u.errorPolicy||"none":d,p=n.returnPartialData,m=p===void 0?!1:p,y=n.notifyOnNetworkStatusChange,g=y===void 0?!1:y,b=n.context,w=b===void 0?{}:b,S=Object.assign({},n,{query:i,variables:o,fetchPolicy:f,errorPolicy:h,returnPartialData:m,notifyOnNetworkStatusChange:g,context:w}),C=function(A){S.variables=A;var L=a.fetchQueryByPolicy(t,S,r);return S.fetchPolicy!=="standby"&&L.sources.length>0&&t.observableQuery&&t.observableQuery.applyNextFetchPolicy("after-fetch",n),L},T=function(){return a.fetchCancelFns.delete(t.queryId)};this.fetchCancelFns.set(t.queryId,function(A){T(),setTimeout(function(){return _.cancel(A)})});var _,x;if(this.getDocumentInfo(S.query).hasClientExports)_=new So(this.localState.addExportedVariables(S.query,S.variables,S.context).then(C).then(function(A){return A.sources})),x=!0;else{var k=C(S.variables);x=k.fromLink,_=new So(k.sources)}return _.promise.then(T,T),{concast:_,fromLink:x}},e.prototype.refetchQueries=function(t){var n=this,r=t.updateCache,i=t.include,a=t.optimistic,o=a===void 0?!1:a,u=t.removeOptimistic,l=u===void 0?o?vd("refetchQueries"):void 0:u,f=t.onQueryUpdated,d=new Map;i&&this.getObservableQueries(i).forEach(function(p,m){d.set(m,{oq:p,lastDiff:(n.queries.get(m)||p.queryInfo).getDiff()})});var h=new Map;return r&&this.cache.batch({update:r,optimistic:o&&l||!1,removeOptimistic:l,onWatchUpdated:function(p,m,y){var g=p.watcher instanceof lh&&p.watcher.observableQuery;if(g){if(f){d.delete(g.queryId);var b=f(g,m,y);return b===!0&&(b=g.refetch()),b!==!1&&h.set(g,b),b}f!==null&&d.set(g.queryId,{oq:g,lastDiff:y,diff:m})}}}),d.size&&d.forEach(function(p,m){var y=p.oq,g=p.lastDiff,b=p.diff,w;f&&(b||(b=n.cache.diff(y.queryInfo.getDiffOptions())),w=f(y,b,g)),(!f||w===!0)&&(w=y.refetch()),w!==!1&&h.set(y,w),m.indexOf("legacyOneTimeQuery")>=0&&n.stopQueryNoBroadcast(m)}),l&&this.cache.removeOptimistic(l),h},e.prototype.maskOperation=function(t){var n,r,i,a=t.document,o=t.data;if(globalThis.__DEV__!==!1){var u=t.fetchPolicy,l=t.id,f=(n=Ca(a))===null||n===void 0?void 0:n.operation,d=((r=f==null?void 0:f[0])!==null&&r!==void 0?r:"o")+l;this.dataMasking&&u==="no-cache"&&!sT(a)&&!this.noCacheWarningsByQueryId.has(d)&&(this.noCacheWarningsByQueryId.add(d),globalThis.__DEV__!==!1&&Ce.warn(37,(i=js(a))!==null&&i!==void 0?i:"Unnamed ".concat(f??"operation")))}return this.dataMasking?tO(o,a,this.cache):o},e.prototype.maskFragment=function(t){var n=t.data,r=t.fragment,i=t.fragmentName;return this.dataMasking?my(n,r,this.cache,i):n},e.prototype.fetchQueryByPolicy=function(t,n,r){var i=this,a=n.query,o=n.variables,u=n.fetchPolicy,l=n.refetchWritePolicy,f=n.errorPolicy,d=n.returnPartialData,h=n.context,p=n.notifyOnNetworkStatusChange,m=t.networkStatus;t.init({document:a,variables:o,networkStatus:r});var y=function(){return t.getDiff()},g=function(T,_){_===void 0&&(_=t.networkStatus||ct.loading);var x=T.result;globalThis.__DEV__!==!1&&!d&&!pt(x,{})&&Qy(T.missing);var k=function(A){return Et.of(X({data:A,loading:Oo(_),networkStatus:_},T.complete?null:{partial:!0}))};return x&&i.getDocumentInfo(a).hasForcedResolvers?i.localState.runResolvers({document:a,remoteResult:{data:x},context:h,variables:o,onlyRunForcedResolvers:!0}).then(function(A){return k(A.data||void 0)}):f==="none"&&_===ct.refetch&&Array.isArray(T.missing)?k(void 0):k(x)},b=u==="no-cache"?0:r===ct.refetch&&l!=="merge"?1:2,w=function(){return i.getResultsFromLink(t,b,{query:a,variables:o,context:h,fetchPolicy:u,errorPolicy:f})},S=p&&typeof m=="number"&&m!==r&&Oo(r);switch(u){default:case"cache-first":{var C=y();return C.complete?{fromLink:!1,sources:[g(C,t.markReady())]}:d||S?{fromLink:!0,sources:[g(C),w()]}:{fromLink:!0,sources:[w()]}}case"cache-and-network":{var C=y();return C.complete||d||S?{fromLink:!0,sources:[g(C),w()]}:{fromLink:!0,sources:[w()]}}case"cache-only":return{fromLink:!1,sources:[g(y(),t.markReady())]};case"network-only":return S?{fromLink:!0,sources:[g(y()),w()]}:{fromLink:!0,sources:[w()]};case"no-cache":return S?{fromLink:!0,sources:[g(t.getDiff()),w()]}:{fromLink:!0,sources:[w()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(t){return t&&!this.queries.has(t)&&this.queries.set(t,new lh(this,t)),this.queries.get(t)},e.prototype.prepareContext=function(t){t===void 0&&(t={});var n=this.localState.prepareContext(t);return X(X(X({},this.defaultContext),n),{clientAwareness:this.clientAwareness})},e}(),EO=function(){function e(t){var n=t.cache,r=t.client,i=t.resolvers,a=t.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=n,r&&(this.client=r),i&&this.addResolvers(i),a&&this.setFragmentMatcher(a)}return e.prototype.addResolvers=function(t){var n=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach(function(r){n.resolvers=j0(n.resolvers,r)}):this.resolvers=j0(this.resolvers,t)},e.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(t){return $i(this,arguments,void 0,function(n){var r=n.document,i=n.remoteResult,a=n.context,o=n.variables,u=n.onlyRunForcedResolvers,l=u===void 0?!1:u;return Vi(this,function(f){return r?[2,this.resolveDocument(r,i.data,a,o,this.fragmentMatcher,l).then(function(d){return X(X({},i),{data:d.result})})]:[2,i]})})},e.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(t){return Ds(["client"],t)&&this.resolvers?t:null},e.prototype.serverQuery=function(t){return M0(t)},e.prototype.prepareContext=function(t){var n=this.cache;return X(X({},t),{cache:n,getCacheKey:function(r){return n.identify(r)}})},e.prototype.addExportedVariables=function(t){return $i(this,arguments,void 0,function(n,r,i){return r===void 0&&(r={}),i===void 0&&(i={}),Vi(this,function(a){return n?[2,this.resolveDocument(n,this.buildRootValueFromCache(n,r)||{},this.prepareContext(i),r).then(function(o){return X(X({},r),o.exportedVariables)})]:[2,X({},r)]})})},e.prototype.shouldForceResolvers=function(t){var n=!1;return Vr(t,{Directive:{enter:function(r){if(r.name.value==="client"&&r.arguments&&(n=r.arguments.some(function(i){return i.name.value==="always"&&i.value.kind==="BooleanValue"&&i.value.value===!0}),n))return dl}}}),n},e.prototype.buildRootValueFromCache=function(t,n){return this.cache.diff({query:XT(t),variables:n,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(t,n){return $i(this,arguments,void 0,function(r,i,a,o,u,l){var f,d,h,p,m,y,g,b,w,S,C;return a===void 0&&(a={}),o===void 0&&(o={}),u===void 0&&(u=function(){return!0}),l===void 0&&(l=!1),Vi(this,function(T){return f=yo(r),d=go(r),h=fo(d),p=this.collectSelectionsToResolve(f,h),m=f.operation,y=m?m.charAt(0).toUpperCase()+m.slice(1):"Query",g=this,b=g.cache,w=g.client,S={fragmentMap:h,context:X(X({},a),{cache:b,client:w}),variables:o,fragmentMatcher:u,defaultOperationType:y,exportedVariables:{},selectionsToResolve:p,onlyRunForcedResolvers:l},C=!1,[2,this.resolveSelectionSet(f.selectionSet,C,i,S).then(function(_){return{result:_,exportedVariables:S.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(t,n,r,i){return $i(this,void 0,void 0,function(){var a,o,u,l,f,d=this;return Vi(this,function(h){return a=i.fragmentMap,o=i.context,u=i.variables,l=[r],f=function(p){return $i(d,void 0,void 0,function(){var m,y;return Vi(this,function(g){return!n&&!i.selectionsToResolve.has(p)?[2]:Fs(p,u)?zi(p)?[2,this.resolveField(p,n,r,i).then(function(b){var w;typeof b<"u"&&l.push((w={},w[Ei(p)]=b,w))})]:(MT(p)?m=p:(m=a[p.name.value],Ce(m,19,p.name.value)),m&&m.typeCondition&&(y=m.typeCondition.name.value,i.fragmentMatcher(r,y,o))?[2,this.resolveSelectionSet(m.selectionSet,n,r,i).then(function(b){l.push(b)})]:[2]):[2]})})},[2,Promise.all(t.selections.map(f)).then(function(){return _l(l)})]})})},e.prototype.resolveField=function(t,n,r,i){return $i(this,void 0,void 0,function(){var a,o,u,l,f,d,h,p,m,y=this;return Vi(this,function(g){return r?(a=i.variables,o=t.name.value,u=Ei(t),l=o!==u,f=r[u]||r[o],d=Promise.resolve(f),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(t))&&(h=r.__typename||i.defaultOperationType,p=this.resolvers&&this.resolvers[h],p&&(m=p[l?o:u],m&&(d=Promise.resolve(eh.withValue(this.cache,m,[r,gl(t,a),i.context,{field:t,fragmentMap:i.fragmentMap}]))))),[2,d.then(function(b){var w,S;if(b===void 0&&(b=f),t.directives&&t.directives.forEach(function(T){T.name.value==="export"&&T.arguments&&T.arguments.forEach(function(_){_.name.value==="as"&&_.value.kind==="StringValue"&&(i.exportedVariables[_.value.value]=b)})}),!t.selectionSet||b==null)return b;var C=(S=(w=t.directives)===null||w===void 0?void 0:w.some(function(T){return T.name.value==="client"}))!==null&&S!==void 0?S:!1;if(Array.isArray(b))return y.resolveSubSelectedArray(t,n||C,b,i);if(t.selectionSet)return y.resolveSelectionSet(t.selectionSet,n||C,b,i)})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(t,n,r,i){var a=this;return Promise.all(r.map(function(o){if(o===null)return null;if(Array.isArray(o))return a.resolveSubSelectedArray(t,n,o,i);if(t.selectionSet)return a.resolveSelectionSet(t.selectionSet,n,o,i)}))},e.prototype.collectSelectionsToResolve=function(t,n){var r=function(o){return!Array.isArray(o)},i=this.selectionsToResolveCache;function a(o){if(!i.has(o)){var u=new Set;i.set(o,u),Vr(o,{Directive:function(l,f,d,h,p){l.name.value==="client"&&p.forEach(function(m){r(m)&&a0(m)&&u.add(m)})},FragmentSpread:function(l,f,d,h,p){var m=n[l.name.value];Ce(m,20,l.name.value);var y=a(m);y.size>0&&(p.forEach(function(g){r(g)&&a0(g)&&u.add(g)}),u.add(l),y.forEach(function(g){u.add(g)}))}})}return i.get(o)}return a(t)},e}(),Ky=!1,Xy=function(){function e(t){var n=this,r;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!t.cache)throw Fn(16);var i=t.uri,a=t.credentials,o=t.headers,u=t.cache,l=t.documentTransform,f=t.ssrMode,d=f===void 0?!1:f,h=t.ssrForceFetchDelay,p=h===void 0?0:h,m=t.connectToDevTools,y=t.queryDeduplication,g=y===void 0?!0:y,b=t.defaultOptions,w=t.defaultContext,S=t.assumeImmutableResults,C=S===void 0?u.assumeImmutableResults:S,T=t.resolvers,_=t.typeDefs,x=t.fragmentMatcher,k=t.name,A=t.version,L=t.devtools,N=t.dataMasking,F=t.link;F||(F=i?new G4({uri:i,credentials:a,headers:o}):Ur.empty()),this.link=F,this.cache=u,this.disableNetworkFetches=d||p>0,this.queryDeduplication=g,this.defaultOptions=b||Object.create(null),this.typeDefs=_,this.devtoolsConfig=X(X({},L),{enabled:(r=L==null?void 0:L.enabled)!==null&&r!==void 0?r:m}),this.devtoolsConfig.enabled===void 0&&(this.devtoolsConfig.enabled=globalThis.__DEV__!==!1),p&&setTimeout(function(){return n.disableNetworkFetches=!1},p),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=hd,this.localState=new EO({cache:u,client:this,resolvers:T,fragmentMatcher:x}),this.queryManager=new wO({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:w,documentTransform:l,queryDeduplication:g,ssrMode:d,dataMasking:!!N,clientAwareness:{name:k,version:A},localState:this.localState,assumeImmutableResults:C,onBroadcast:this.devtoolsConfig.enabled?function(){n.devToolsHookCb&&n.devToolsHookCb({action:{},state:{queries:n.queryManager.getQueryStore(),mutations:n.queryManager.mutationStore||{}},dataWithOptimisticResults:n.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if(!(typeof window>"u")){var t=window,n=Symbol.for("apollo.devtools");(t[n]=t[n]||[]).push(this),t.__APOLLO_CLIENT__=this,!Ky&&globalThis.__DEV__!==!1&&(Ky=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var r=window.navigator,i=r&&r.userAgent,a=void 0;typeof i=="string"&&(i.indexOf("Chrome/")>-1?a="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":i.indexOf("Firefox/")>-1&&(a="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),a&&globalThis.__DEV__!==!1&&Ce.log("Download the Apollo DevTools for a better development experience: %s",a)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=Oa(this.defaultOptions.watchQuery,t)),this.disableNetworkFetches&&(t.fetchPolicy==="network-only"||t.fetchPolicy==="cache-and-network")&&(t=X(X({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},e.prototype.query=function(t){return this.defaultOptions.query&&(t=Oa(this.defaultOptions.query,t)),Ce(t.fetchPolicy!=="cache-and-network",17),this.disableNetworkFetches&&t.fetchPolicy==="network-only"&&(t=X(X({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},e.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=Oa(this.defaultOptions.mutate,t)),this.queryManager.mutate(t)},e.prototype.subscribe=function(t){var n=this,r=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(t).map(function(i){return X(X({},i),{data:n.queryManager.maskOperation({document:t.query,data:i.data,fetchPolicy:t.fetchPolicy,id:r})})})},e.prototype.readQuery=function(t,n){return n===void 0&&(n=!1),this.cache.readQuery(t,n)},e.prototype.watchFragment=function(t){var n;return this.cache.watchFragment(X(X({},t),(n={},n[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,n)))},e.prototype.readFragment=function(t,n){return n===void 0&&(n=!1),this.cache.readFragment(t,n)},e.prototype.writeQuery=function(t){var n=this.cache.writeQuery(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),n},e.prototype.writeFragment=function(t){var n=this.cache.writeFragment(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),n},e.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},e.prototype.__requestRaw=function(t){return Wd(this.link,t)},e.prototype.resetStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(t.resetStoreCallbacks.map(function(n){return n()}))}).then(function(){return t.reFetchObservableQueries()})},e.prototype.clearStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(t.clearStoreCallbacks.map(function(n){return n()}))})},e.prototype.onResetStore=function(t){var n=this;return this.resetStoreCallbacks.push(t),function(){n.resetStoreCallbacks=n.resetStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.onClearStore=function(t){var n=this;return this.clearStoreCallbacks.push(t),function(){n.clearStoreCallbacks=n.clearStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},e.prototype.refetchQueries=function(t){var n=this.queryManager.refetchQueries(t),r=[],i=[];n.forEach(function(o,u){r.push(u),i.push(o)});var a=Promise.all(i);return a.queries=r,a.results=i,a.catch(function(o){globalThis.__DEV__!==!1&&Ce.debug(18,o)}),a},e.prototype.getObservableQueries=function(t){return t===void 0&&(t="active"),this.queryManager.getObservableQueries(t)},e.prototype.extract=function(t){return this.cache.extract(t)},e.prototype.restore=function(t){return this.cache.restore(t)},e.prototype.addResolvers=function(t){this.localState.addResolvers(t)},e.prototype.setResolvers=function(t){this.localState.setResolvers(t)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},e.prototype.setLink=function(t){this.link=this.queryManager.link=t},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();globalThis.__DEV__!==!1&&(Xy.prototype.getMemoryInternals=mT);var fh={exports:{}},Zy;function SO(){return Zy||(Zy=1,function(e){e.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,e.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,e.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(e.exports,M)}(fh)),fh.exports}var Ue=SO();const Jy=T6({__proto__:null,default:ji(Ue)},[Ue]);var eb=bd?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function dh(){Ce("createContext"in Jy,54);var e=Ue.createContext[eb];return e||(Object.defineProperty(Ue.createContext,eb,{value:e=Ue.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}var xO=function(e){var t=e.client,n=e.children,r=dh(),i=Ue.useContext(r),a=Ue.useMemo(function(){return X(X({},i),{client:t||i.client})},[i,t]);return Ce(a.client,55),Ue.createElement(r.Provider,{value:a},n)};function hh(e){var t=Ue.useContext(dh()),n=e||t.client;return Ce(!!n,58),n}var tb=!1,CO="useSyncExternalStore",TO=Jy[CO],nb=TO||function(e,t,n){var r=t();globalThis.__DEV__!==!1&&!tb&&r!==t()&&(tb=!0,globalThis.__DEV__!==!1&&Ce.error(68));var i=Ue.useState({inst:{value:r,getSnapshot:t}}),a=i[0].inst,o=i[1];return aT?Ue.useLayoutEffect(function(){Object.assign(a,{value:r,getSnapshot:t}),ph(a)&&o({inst:a})},[e,r,t]):Object.assign(a,{value:r,getSnapshot:t}),Ue.useEffect(function(){return ph(a)&&o({inst:a}),e(function(){ph(a)&&o({inst:a})})},[e]),r};function ph(e){var t=e.value,n=e.getSnapshot;try{return t!==n()}catch{return!0}}var zr;(function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"})(zr||(zr={}));var ka;function rb(e){var t;switch(e){case zr.Query:t="Query";break;case zr.Mutation:t="Mutation";break;case zr.Subscription:t="Subscription";break}return t}function ib(e){ka||(ka=new Sd(ti.parser||1e3));var t=ka.get(e);if(t)return t;var n,r,i;Ce(!!e&&!!e.kind,70,e);for(var a=[],o=[],u=[],l=[],f=0,d=e.definitions;f<d.length;f++){var h=d[f];if(h.kind==="FragmentDefinition"){a.push(h);continue}if(h.kind==="OperationDefinition")switch(h.operation){case"query":o.push(h);break;case"mutation":u.push(h);break;case"subscription":l.push(h);break}}Ce(!a.length||o.length||u.length||l.length,71),Ce(o.length+u.length+l.length<=1,72,e,o.length,l.length,u.length),r=o.length?zr.Query:zr.Mutation,!o.length&&!u.length&&(r=zr.Subscription);var p=o.length?o:u.length?u:l;Ce(p.length===1,73,e,p.length);var m=p[0];n=m.variableDefinitions||[],m.name&&m.name.kind==="Name"?i=m.name.value:i="data";var y={name:i,type:r,variables:n};return ka.set(e,y),y}ib.resetCache=function(){ka=void 0},globalThis.__DEV__!==!1&&xd("parser",function(){return ka?ka.size:0});function vh(e,t){var n=ib(e),r=rb(t),i=rb(n.type);Ce(n.type===t,74,r,r,i)}function OO(e,t){var n=Ue.useRef(void 0);return(!n.current||!pt(n.current.deps,t))&&(n.current={value:e(),deps:t}),n.current.value}var Rl=u0?Ue.useLayoutEffect:Ue.useEffect,kO=Object.prototype.hasOwnProperty;function ab(){}var Al=Symbol();function RO(e,t,n,r,i){function a(h){var p;vh(t,zr.Query);var m={client:e,query:t,observable:r&&r.getSSRObservable(i())||Xs.inactiveOnCreation.withValue(!r,function(){return e.watchQuery(mh(void 0,e,n,i()))}),resultData:{previousData:(p=h==null?void 0:h.resultData.current)===null||p===void 0?void 0:p.data}};return m}var o=Ue.useState(a),u=o[0],l=o[1];function f(h){var p,m;Object.assign(u.observable,(p={},p[Al]=h,p));var y=u.resultData;l(X(X({},u),{query:h.query,resultData:Object.assign(y,{previousData:((m=y.current)===null||m===void 0?void 0:m.data)||y.previousData,current:void 0})}))}if(e!==u.client||t!==u.query){var d=a(u);return l(d),[d,f]}return[u,f]}function AO(e,t){var n=hh(t.client),r=Ue.useContext(dh()).renderPromises,i=!!r,a=n.disableNetworkFetches,o=t.ssr!==!1&&!t.skip,u=t.partialRefetch,l=ob(n,e,t,i),f=RO(n,e,t,r,l),d=f[0],h=d.observable,p=d.resultData,m=f[1],y=l(h);IO(p,h,n,t,y);var g=Ue.useMemo(function(){return DO(h)},[h]);NO(h,r,o);var b=PO(p,h,n,t,y,a,u,i,{onCompleted:t.onCompleted||ab,onError:t.onError||ab});return{result:b,obsQueryFields:g,observable:h,resultData:p,client:n,onQueryExecuted:m}}function PO(e,t,n,r,i,a,o,u,l){var f=Ue.useRef(l);Ue.useEffect(function(){f.current=l});var d=(u||a)&&r.ssr===!1&&!r.skip?lb:r.skip||i.fetchPolicy==="standby"?cb:void 0,h=e.previousData,p=Ue.useMemo(function(){return d&&Pl(d,h,t,n)},[n,t,d,h]);return nb(Ue.useCallback(function(m){if(u)return function(){};var y=function(){var w=e.current,S=t.getCurrentResult();w&&w.loading===S.loading&&w.networkStatus===S.networkStatus&&pt(w.data,S.data)||gh(S,e,t,n,o,m,f.current)},g=function(w){if(b.current.unsubscribe(),b.current=t.resubscribeAfterError(y,g),!kO.call(w,"graphQLErrors"))throw w;var S=e.current;(!S||S&&S.loading||!pt(w,S.error))&&gh({data:S&&S.data,error:w,loading:!1,networkStatus:ct.error},e,t,n,o,m,f.current)},b={current:t.subscribe(y,g)};return function(){setTimeout(function(){return b.current.unsubscribe()})}},[a,u,t,e,o,n]),function(){return p||sb(e,t,f.current,o,n)},function(){return p||sb(e,t,f.current,o,n)})}function NO(e,t,n){t&&n&&(t.registerSSRObservable(e),e.getCurrentResult().loading&&t.addObservableQueryPromise(e))}function IO(e,t,n,r,i){var a;t[Al]&&!pt(t[Al],i)&&(t.reobserve(mh(t,n,r,i)),e.previousData=((a=e.current)===null||a===void 0?void 0:a.data)||e.previousData,e.current=void 0),t[Al]=i}function ob(e,t,n,r){n===void 0&&(n={});var i=n.skip;n.ssr,n.onCompleted,n.onError;var a=n.defaultOptions,o=br(n,["skip","ssr","onCompleted","onError","defaultOptions"]);return function(u){var l=Object.assign(o,{query:t});return r&&(l.fetchPolicy==="network-only"||l.fetchPolicy==="cache-and-network")&&(l.fetchPolicy="cache-first"),l.variables||(l.variables={}),i?(l.initialFetchPolicy=l.initialFetchPolicy||l.fetchPolicy||yh(a,e.defaultOptions),l.fetchPolicy="standby"):l.fetchPolicy||(l.fetchPolicy=(u==null?void 0:u.options.initialFetchPolicy)||yh(a,e.defaultOptions)),l}}function mh(e,t,n,r){var i=[],a=t.defaultOptions.watchQuery;return a&&i.push(a),n.defaultOptions&&i.push(n.defaultOptions),i.push(Ta(e&&e.options,r)),i.reduce(Oa)}function gh(e,t,n,r,i,a,o){var u=t.current;u&&u.data&&(t.previousData=u.data),!e.error&&_r(e.errors)&&(e.error=new nr({graphQLErrors:e.errors})),t.current=Pl(FO(e,n,i),t.previousData,n,r),a(),LO(e,u==null?void 0:u.networkStatus,o)}function LO(e,t,n){if(!e.loading){var r=ub(e);Promise.resolve().then(function(){r?n.onError(r):e.data&&t!==e.networkStatus&&e.networkStatus===ct.ready&&n.onCompleted(e.data)}).catch(function(i){globalThis.__DEV__!==!1&&Ce.warn(i)})}}function sb(e,t,n,r,i){return e.current||gh(t.getCurrentResult(),e,t,i,r,function(){},n),e.current}function yh(e,t){var n;return(e==null?void 0:e.fetchPolicy)||((n=t==null?void 0:t.watchQuery)===null||n===void 0?void 0:n.fetchPolicy)||"cache-first"}function ub(e){return _r(e.errors)?new nr({graphQLErrors:e.errors}):e.error}function Pl(e,t,n,r){var i=e.data;e.partial;var a=br(e,["data","partial"]),o=X(X({data:i},a),{client:r,observable:n,variables:n.variables,called:e!==lb&&e!==cb,previousData:t});return o}function FO(e,t,n){return e.partial&&n&&!e.loading&&(!e.data||Object.keys(e.data).length===0)&&t.options.fetchPolicy!=="cache-only"?(t.refetch(),X(X({},e),{loading:!0,networkStatus:ct.refetch})):e}var lb=Eo({loading:!0,data:void 0,error:void 0,networkStatus:ct.loading}),cb=Eo({loading:!1,data:void 0,error:void 0,networkStatus:ct.ready});function DO(e){return{refetch:e.refetch.bind(e),reobserve:e.reobserve.bind(e),fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}}var MO=["refetch","reobserve","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore"];function Yi(e,t){var n,r=Ue.useRef(void 0),i=Ue.useRef(void 0),a=Ue.useRef(void 0),o=Oa(t,r.current||{}),u=(n=o==null?void 0:o.query)!==null&&n!==void 0?n:e;i.current=t,a.current=u;var l=X(X({},o),{skip:!r.current}),f=AO(u,l),d=f.obsQueryFields,h=f.result,p=f.client,m=f.resultData,y=f.observable,g=f.onQueryExecuted,b=y.options.initialFetchPolicy||yh(l.defaultOptions,p.defaultOptions),w=Ue.useReducer(function(A){return A+1},0)[1],S=Ue.useMemo(function(){for(var A={},L=function(V){var D=d[V];A[V]=function(){return r.current||(r.current=Object.create(null),w()),D.apply(this,arguments)}},N=0,F=MO;N<F.length;N++){var H=F[N];L(H)}return A},[w,d]),C=!!r.current,T=Ue.useMemo(function(){return X(X(X({},h),S),{called:C})},[h,S,C]),_=Ue.useCallback(function(A){r.current=A?X(X({},A),{fetchPolicy:A.fetchPolicy||b}):{fetchPolicy:b};var L=Oa(i.current,X({query:a.current},r.current)),N=jO(m,y,p,u,X(X({},L),{skip:!1}),g).then(function(F){return Object.assign(F,S)});return N.catch(function(){}),N},[p,u,S,b,y,m,g]),x=Ue.useRef(_);Rl(function(){x.current=_});var k=Ue.useCallback(function(){for(var A=[],L=0;L<arguments.length;L++)A[L]=arguments[L];return x.current.apply(x,A)},[]);return[k,T]}function jO(e,t,n,r,i,a){var o=i.query||r,u=ob(n,o,i,!1)(t),l=t.reobserveAsConcast(mh(t,n,i,u));return a(u),new Promise(function(f){var d;l.subscribe({next:function(h){d=h},error:function(){f(Pl(t.getCurrentResult(),e.previousData,t,n))},complete:function(){f(Pl(t.maskResult(d),e.previousData,t,n))}})})}function Ra(e,t){var n=hh(void 0);vh(e,zr.Mutation);var r=Ue.useState({called:!1,loading:!1,client:n}),i=r[0],a=r[1],o=Ue.useRef({result:i,mutationId:0,isMounted:!0,client:n,mutation:e,options:t});Rl(function(){Object.assign(o.current,{client:n,options:t,mutation:e})});var u=Ue.useCallback(function(f){f===void 0&&(f={});var d=o.current,h=d.options,p=d.mutation,m=X(X({},h),{mutation:p}),y=f.client||o.current.client;!o.current.result.loading&&!m.ignoreResults&&o.current.isMounted&&a(o.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:y});var g=++o.current.mutationId,b=Oa(m,f);return y.mutate(b).then(function(w){var S,C,T=w.data,_=w.errors,x=_&&_.length>0?new nr({graphQLErrors:_}):void 0,k=f.onError||((S=o.current.options)===null||S===void 0?void 0:S.onError);if(x&&k&&k(x,b),g===o.current.mutationId&&!b.ignoreResults){var A={called:!0,loading:!1,data:T,error:x,client:y};o.current.isMounted&&!pt(o.current.result,A)&&a(o.current.result=A)}var L=f.onCompleted||((C=o.current.options)===null||C===void 0?void 0:C.onCompleted);return x||L==null||L(w.data,b),w},function(w){var S;if(g===o.current.mutationId&&o.current.isMounted){var C={loading:!1,error:w,data:void 0,called:!0,client:y};pt(o.current.result,C)||a(o.current.result=C)}var T=f.onError||((S=o.current.options)===null||S===void 0?void 0:S.onError);if(T)return T(w,b),{data:void 0,errors:w};throw w})},[]),l=Ue.useCallback(function(){if(o.current.isMounted){var f={called:!1,loading:!1,client:o.current.client};Object.assign(o.current,{mutationId:0,result:f}),a(f)}},[]);return Ue.useEffect(function(){var f=o.current;return f.isMounted=!0,function(){f.isMounted=!1}},[]),[u,X({reset:l},i)]}function $O(e,t){t===void 0&&(t=Object.create(null));var n=Ue.useRef(!1),r=hh(t.client);vh(e,zr.Subscription),n.current||(n.current=!0,t.onSubscriptionData&&globalThis.__DEV__!==!1&&Ce.warn(t.onData?61:62),t.onSubscriptionComplete&&globalThis.__DEV__!==!1&&Ce.warn(t.onComplete?63:64));var i=t.skip,a=t.fetchPolicy,o=t.errorPolicy,u=t.shouldResubscribe,l=t.context,f=t.extensions,d=t.ignoreResults,h=OO(function(){return t.variables},[t.variables]),p=function(){return VO(r,e,h,a,o,l,f)},m=Ue.useState(t.skip?null:p),y=m[0],g=m[1],b=Ue.useRef(p);Rl(function(){b.current=p}),i?y&&g(y=null):(!y||(r!==y.__.client||e!==y.__.query||a!==y.__.fetchPolicy||o!==y.__.errorPolicy||!pt(h,y.__.variables))&&(typeof u=="function"?!!u(t):u)!==!1)&&g(y=p());var w=Ue.useRef(t);Ue.useEffect(function(){w.current=t});var S=!i&&!d,C=Ue.useMemo(function(){return{loading:S,error:void 0,data:void 0,variables:h}},[S,h]),T=Ue.useRef(d);Rl(function(){T.current=d});var _=nb(Ue.useCallback(function(k){if(!y)return function(){};var A=!1,L=y.__.variables,N=y.__.client,F=y.subscribe({next:function(H){var V,D;if(!A){var j={loading:!1,data:H.data,error:ub(H),variables:L};y.__.setResult(j),T.current||k(),j.error?(D=(V=w.current).onError)===null||D===void 0||D.call(V,j.error):w.current.onData?w.current.onData({client:N,data:j}):w.current.onSubscriptionData&&w.current.onSubscriptionData({client:N,subscriptionData:j})}},error:function(H){var V,D;H=H instanceof nr?H:new nr({protocolErrors:[H]}),A||(y.__.setResult({loading:!1,data:void 0,error:H,variables:L}),T.current||k(),(D=(V=w.current).onError)===null||D===void 0||D.call(V,H))},complete:function(){A||(w.current.onComplete?w.current.onComplete():w.current.onSubscriptionComplete&&w.current.onSubscriptionComplete())}});return function(){A=!0,setTimeout(function(){F.unsubscribe()})}},[y]),function(){return y&&!i&&!d?y.__.result:C},function(){return C}),x=Ue.useCallback(function(){Ce(!w.current.skip,65),g(b.current())},[w,b]);return Ue.useMemo(function(){return X(X({},_),{restart:x})},[_,x])}function VO(e,t,n,r,i,a,o){var u={query:t,variables:n,fetchPolicy:r,errorPolicy:i,context:a,extensions:o},l=X(X({},u),{client:e,result:{loading:!0,data:void 0,error:void 0,variables:n},setResult:function(d){l.result=d}}),f=null;return Object.assign(new Et(function(d){f||(f=e.subscribe(u));var h=f.subscribe(d);return function(){return h.unsubscribe()}}),{__:l})}function fb(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=fb(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ki(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=fb(e))&&(r&&(r+=" "),r+=t);return r}const Zs=e=>typeof e=="number"&&!isNaN(e),Aa=e=>typeof e=="string",rr=e=>typeof e=="function",Nl=e=>Aa(e)||rr(e)?e:null,bh=e=>M.isValidElement(e)||Aa(e)||rr(e)||Zs(e);function qO(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Il(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:a=300}=e;return function(o){let{children:u,position:l,preventExitTransition:f,done:d,nodeRef:h,isIn:p,playToast:m}=o;const y=r?`${t}--${l}`:t,g=r?`${n}--${l}`:n,b=M.useRef(0);return M.useLayoutEffect(()=>{const w=h.current,S=y.split(" "),C=T=>{T.target===h.current&&(m(),w.removeEventListener("animationend",C),w.removeEventListener("animationcancel",C),b.current===0&&T.type!=="animationcancel"&&w.classList.remove(...S))};w.classList.add(...S),w.addEventListener("animationend",C),w.addEventListener("animationcancel",C)},[]),M.useEffect(()=>{const w=h.current,S=()=>{w.removeEventListener("animationend",S),i?qO(w,d,a):d()};p||(f?S():(b.current=1,w.className+=` ${g}`,w.addEventListener("animationend",S)))},[p]),M.createElement(M.Fragment,null,u)}}function db(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Dn=new Map;let Js=[];const _h=new Set,UO=e=>_h.forEach(t=>t(e)),hb=()=>Dn.size>0;function pb(e,t){var n;if(t)return!((n=Dn.get(t))==null||!n.isToastActive(e));let r=!1;return Dn.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function vb(e,t){bh(e)&&(hb()||Js.push({content:e,options:t}),Dn.forEach(n=>{n.buildToast(e,t)}))}function mb(e,t){Dn.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function zO(e){const{subscribe:t,getSnapshot:n,setProps:r}=M.useRef(function(a){const o=a.containerId||1;return{subscribe(u){const l=function(d,h,p){let m=1,y=0,g=[],b=[],w=[],S=h;const C=new Map,T=new Set,_=()=>{w=Array.from(C.values()),T.forEach(A=>A())},x=A=>{b=A==null?[]:b.filter(L=>L!==A),_()},k=A=>{const{toastId:L,onOpen:N,updateId:F,children:H}=A.props,V=F==null;A.staleId&&C.delete(A.staleId),C.set(L,A),b=[...b,A.props.toastId].filter(D=>D!==A.staleId),_(),p(db(A,V?"added":"updated")),V&&rr(N)&&N(M.isValidElement(H)&&H.props)};return{id:d,props:S,observe:A=>(T.add(A),()=>T.delete(A)),toggle:(A,L)=>{C.forEach(N=>{L!=null&&L!==N.props.toastId||rr(N.toggle)&&N.toggle(A)})},removeToast:x,toasts:C,clearQueue:()=>{y-=g.length,g=[]},buildToast:(A,L)=>{if((ae=>{let{containerId:ie,toastId:te,updateId:fe}=ae;const le=ie?ie!==d:d!==1,ve=C.has(te)&&fe==null;return le||ve})(L))return;const{toastId:N,updateId:F,data:H,staleId:V,delay:D}=L,j=()=>{x(N)},z=F==null;z&&y++;const Y={...S,style:S.toastStyle,key:m++,...Object.fromEntries(Object.entries(L).filter(ae=>{let[ie,te]=ae;return te!=null})),toastId:N,updateId:F,data:H,closeToast:j,isIn:!1,className:Nl(L.className||S.toastClassName),bodyClassName:Nl(L.bodyClassName||S.bodyClassName),progressClassName:Nl(L.progressClassName||S.progressClassName),autoClose:!L.isLoading&&(q=L.autoClose,J=S.autoClose,q===!1||Zs(q)&&q>0?q:J),deleteToast(){const ae=C.get(N),{onClose:ie,children:te}=ae.props;rr(ie)&&ie(M.isValidElement(te)&&te.props),p(db(ae,"removed")),C.delete(N),y--,y<0&&(y=0),g.length>0?k(g.shift()):_()}};var q,J;Y.closeButton=S.closeButton,L.closeButton===!1||bh(L.closeButton)?Y.closeButton=L.closeButton:L.closeButton===!0&&(Y.closeButton=!bh(S.closeButton)||S.closeButton);let $=A;M.isValidElement(A)&&!Aa(A.type)?$=M.cloneElement(A,{closeToast:j,toastProps:Y,data:H}):rr(A)&&($=A({closeToast:j,toastProps:Y,data:H}));const K={content:$,props:Y,staleId:V};S.limit&&S.limit>0&&y>S.limit&&z?g.push(K):Zs(D)?setTimeout(()=>{k(K)},D):k(K)},setProps(A){S=A},setToggle:(A,L)=>{C.get(A).toggle=L},isToastActive:A=>b.some(L=>L===A),getSnapshot:()=>w}}(o,a,UO);Dn.set(o,l);const f=l.observe(u);return Js.forEach(d=>vb(d.content,d.options)),Js=[],()=>{f(),Dn.delete(o)}},setProps(u){var l;(l=Dn.get(o))==null||l.setProps(u)},getSnapshot(){var u;return(u=Dn.get(o))==null?void 0:u.getSnapshot()}}}(e)).current;r(e);const i=M.useSyncExternalStore(t,n,n);return{getToastToRender:function(a){if(!i)return[];const o=new Map;return e.newestOnTop&&i.reverse(),i.forEach(u=>{const{position:l}=u.props;o.has(l)||o.set(l,[]),o.get(l).push(u)}),Array.from(o,u=>a(u[0],u[1]))},isToastActive:pb,count:i==null?void 0:i.length}}function HO(e){const[t,n]=M.useState(!1),[r,i]=M.useState(!1),a=M.useRef(null),o=M.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:u,pauseOnHover:l,closeToast:f,onClick:d,closeOnClick:h}=e;var p,m;function y(){n(!0)}function g(){n(!1)}function b(C){const T=a.current;o.canDrag&&T&&(o.didMove=!0,t&&g(),o.delta=e.draggableDirection==="x"?C.clientX-o.start:C.clientY-o.start,o.start!==C.clientX&&(o.canCloseOnClick=!1),T.style.transform=`translate3d(${e.draggableDirection==="x"?`${o.delta}px, var(--y)`:`0, calc(${o.delta}px + var(--y))`},0)`,T.style.opacity=""+(1-Math.abs(o.delta/o.removalDistance)))}function w(){document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",w);const C=a.current;if(o.canDrag&&o.didMove&&C){if(o.canDrag=!1,Math.abs(o.delta)>o.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();C.style.transition="transform 0.2s, opacity 0.2s",C.style.removeProperty("transform"),C.style.removeProperty("opacity")}}(m=Dn.get((p={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||m.setToggle(p.id,p.fn),M.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||g(),window.addEventListener("focus",y),window.addEventListener("blur",g),()=>{window.removeEventListener("focus",y),window.removeEventListener("blur",g)}},[e.pauseOnFocusLoss]);const S={onPointerDown:function(C){if(e.draggable===!0||e.draggable===C.pointerType){o.didMove=!1,document.addEventListener("pointermove",b),document.addEventListener("pointerup",w);const T=a.current;o.canCloseOnClick=!0,o.canDrag=!0,T.style.transition="none",e.draggableDirection==="x"?(o.start=C.clientX,o.removalDistance=T.offsetWidth*(e.draggablePercent/100)):(o.start=C.clientY,o.removalDistance=T.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(C){const{top:T,bottom:_,left:x,right:k}=a.current.getBoundingClientRect();C.nativeEvent.type!=="touchend"&&e.pauseOnHover&&C.clientX>=x&&C.clientX<=k&&C.clientY>=T&&C.clientY<=_?g():y()}};return u&&l&&(S.onMouseEnter=g,e.stacked||(S.onMouseLeave=y)),h&&(S.onClick=C=>{d&&d(C),o.canCloseOnClick&&f()}),{playToast:y,pauseToast:g,isRunning:t,preventExitTransition:r,toastRef:a,eventHandlers:S}}function BO(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:a,className:o,style:u,controlledProgress:l,progress:f,rtl:d,isIn:h,theme:p}=e;const m=a||l&&f===0,y={...u,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};l&&(y.transform=`scaleX(${f})`);const g=Ki("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${p}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":d}),b=rr(o)?o({rtl:d,type:i,defaultClassName:g}):Ki(g,o),w={[l&&f>=1?"onTransitionEnd":"onAnimationEnd"]:l&&f<1?null:()=>{h&&r()}};return M.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":m},M.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${p} Toastify__progress-bar--${i}`}),M.createElement("div",{role:"progressbar","aria-hidden":m?"true":"false","aria-label":"notification timer",className:b,style:y,...w}))}let WO=1;const gb=()=>""+WO++;function GO(e){return e&&(Aa(e.toastId)||Zs(e.toastId))?e.toastId:gb()}function eu(e,t){return vb(e,t),t.toastId}function Ll(e,t){return{...t,type:t&&t.type||e,toastId:GO(t)}}function Fl(e){return(t,n)=>eu(t,Ll(e,n))}function Ft(e,t){return eu(e,Ll("default",t))}Ft.loading=(e,t)=>eu(e,Ll("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Ft.promise=function(e,t,n){let r,{pending:i,error:a,success:o}=t;i&&(r=Aa(i)?Ft.loading(i,n):Ft.loading(i.render,{...n,...i}));const u={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(d,h,p)=>{if(h==null)return void Ft.dismiss(r);const m={type:d,...u,...n,data:p},y=Aa(h)?{render:h}:h;return r?Ft.update(r,{...m,...y}):Ft(y.render,{...m,...y}),p},f=rr(e)?e():e;return f.then(d=>l("success",o,d)).catch(d=>l("error",a,d)),f},Ft.success=Fl("success"),Ft.info=Fl("info"),Ft.error=Fl("error"),Ft.warning=Fl("warning"),Ft.warn=Ft.warning,Ft.dark=(e,t)=>eu(e,Ll("default",{theme:"dark",...t})),Ft.dismiss=function(e){(function(t){var n;if(hb()){if(t==null||Aa(n=t)||Zs(n))Dn.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=Dn.get(t.containerId);r?r.removeToast(t.id):Dn.forEach(i=>{i.removeToast(t.id)})}}else Js=Js.filter(r=>t!=null&&r.options.toastId!==t)})(e)},Ft.clearWaitingQueue=function(e){e===void 0&&(e={}),Dn.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},Ft.isActive=pb,Ft.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var a;let{containerId:o}=i;return(a=Dn.get(o||1))==null?void 0:a.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,a={delay:100,...r,...t,toastId:t.toastId||e,updateId:gb()};a.toastId!==e&&(a.staleId=e);const o=a.render||i;delete a.render,eu(o,a)}},Ft.done=e=>{Ft.update(e,{progress:1})},Ft.onChange=function(e){return _h.add(e),()=>{_h.delete(e)}},Ft.play=e=>mb(!0,e),Ft.pause=e=>mb(!1,e);const QO=typeof window<"u"?M.useLayoutEffect:M.useEffect,Dl=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return M.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},wh={info:function(e){return M.createElement(Dl,{...e},M.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return M.createElement(Dl,{...e},M.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return M.createElement(Dl,{...e},M.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return M.createElement(Dl,{...e},M.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return M.createElement("div",{className:"Toastify__spinner"})}},YO=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:a}=HO(e),{closeButton:o,children:u,autoClose:l,onClick:f,type:d,hideProgressBar:h,closeToast:p,transition:m,position:y,className:g,style:b,bodyClassName:w,bodyStyle:S,progressClassName:C,progressStyle:T,updateId:_,role:x,progress:k,rtl:A,toastId:L,deleteToast:N,isIn:F,isLoading:H,closeOnClick:V,theme:D}=e,j=Ki("Toastify__toast",`Toastify__toast-theme--${D}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":A},{"Toastify__toast--close-on-click":V}),z=rr(g)?g({rtl:A,position:y,type:d,defaultClassName:j}):Ki(j,g),Y=function(K){let{theme:ae,type:ie,isLoading:te,icon:fe}=K,le=null;const ve={theme:ae,type:ie};return fe===!1||(rr(fe)?le=fe({...ve,isLoading:te}):M.isValidElement(fe)?le=M.cloneElement(fe,ve):te?le=wh.spinner():(_e=>_e in wh)(ie)&&(le=wh[ie](ve))),le}(e),q=!!k||!l,J={closeToast:p,type:d,theme:D};let $=null;return o===!1||($=rr(o)?o(J):M.isValidElement(o)?M.cloneElement(o,J):function(K){let{closeToast:ae,theme:ie,ariaLabel:te="close"}=K;return M.createElement("button",{className:`Toastify__close-button Toastify__close-button--${ie}`,type:"button",onClick:fe=>{fe.stopPropagation(),ae(fe)},"aria-label":te},M.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},M.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(J)),M.createElement(m,{isIn:F,done:N,position:y,preventExitTransition:n,nodeRef:r,playToast:a},M.createElement("div",{id:L,onClick:f,"data-in":F,className:z,...i,style:b,ref:r},M.createElement("div",{...F&&{role:x},className:rr(w)?w({type:d}):Ki("Toastify__toast-body",w),style:S},Y!=null&&M.createElement("div",{className:Ki("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!H})},Y),M.createElement("div",null,u)),$,M.createElement(BO,{..._&&!q?{key:`pb-${_}`}:{},rtl:A,theme:D,delay:l,isRunning:t,isIn:F,closeToast:p,hide:h,type:d,style:T,className:C,controlledProgress:q,progress:k||0})))},Ml=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},KO=Il(Ml("bounce",!0));Il(Ml("slide",!0)),Il(Ml("zoom")),Il(Ml("flip"));const XO={position:"top-right",transition:KO,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function ZO(e){let t={...XO,...e};const n=e.stacked,[r,i]=M.useState(!0),a=M.useRef(null),{getToastToRender:o,isToastActive:u,count:l}=zO(t),{className:f,style:d,rtl:h,containerId:p}=t;function m(g){const b=Ki("Toastify__toast-container",`Toastify__toast-container--${g}`,{"Toastify__toast-container--rtl":h});return rr(f)?f({position:g,rtl:h,defaultClassName:b}):Ki(b,Nl(f))}function y(){n&&(i(!0),Ft.play())}return QO(()=>{if(n){var g;const b=a.current.querySelectorAll('[data-in="true"]'),w=12,S=(g=t.position)==null?void 0:g.includes("top");let C=0,T=0;Array.from(b).reverse().forEach((_,x)=>{const k=_;k.classList.add("Toastify__toast--stacked"),x>0&&(k.dataset.collapsed=`${r}`),k.dataset.pos||(k.dataset.pos=S?"top":"bot");const A=C*(r?.2:1)+(r?0:w*x);k.style.setProperty("--y",`${S?A:-1*A}px`),k.style.setProperty("--g",`${w}`),k.style.setProperty("--s",""+(1-(r?T:0))),C+=k.offsetHeight,T+=.025})}},[r,l,n]),M.createElement("div",{ref:a,className:"Toastify",id:p,onMouseEnter:()=>{n&&(i(!1),Ft.pause())},onMouseLeave:y},o((g,b)=>{const w=b.length?{...d}:{...d,pointerEvents:"none"};return M.createElement("div",{className:m(g),style:w,key:`container-${g}`},b.map(S=>{let{content:C,props:T}=S;return M.createElement(YO,{...T,stacked:n,collapseAll:y,isIn:u(T.toastId,T.containerId),style:T.style,key:`toast-${T.key}`},C)}))}))}function JO(e){return new Ur(function(t,n){var r=br(t,[]);return new Et(function(i){var a,o=!1;return Promise.resolve(r).then(function(u){return e(u,t.getContext())}).then(t.setContext).then(function(){o||(a=n(t).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)}))}).catch(i.error.bind(i)),function(){o=!0,a&&a.unsubscribe()}})})}/*! js-cookie v3.0.5 | MIT */function jl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var e8={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Eh(e,t){function n(i,a,o){if(!(typeof document>"u")){o=jl({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var l in o)o[l]&&(u+="; "+l,o[l]!==!0&&(u+="="+o[l].split(";")[0]));return document.cookie=i+"="+e.write(a,i)+u}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var a=document.cookie?document.cookie.split("; "):[],o={},u=0;u<a.length;u++){var l=a[u].split("="),f=l.slice(1).join("=");try{var d=decodeURIComponent(l[0]);if(o[d]=e.read(f,d),i===d)break}catch{}}return i?o[i]:o}}return Object.create({set:n,get:r,remove:function(i,a){n(i,"",jl({},a,{expires:-1}))},withAttributes:function(i){return Eh(this.converter,jl({},this.attributes,i))},withConverter:function(i){return Eh(jl({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Xi=Eh(e8,{path:"/"}),$l={exports:{}},t8=$l.exports,yb;function n8(){return yb||(yb=1,function(e,t){(function(n,r){e.exports=r()})(t8,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",o="second",u="minute",l="hour",f="day",d="week",h="month",p="quarter",m="year",y="date",g="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var j=["th","st","nd","rd"],z=D%100;return"["+D+(j[(z-20)%10]||j[z]||j[0])+"]"}},C=function(D,j,z){var Y=String(D);return!Y||Y.length>=j?D:""+Array(j+1-Y.length).join(z)+D},T={s:C,z:function(D){var j=-D.utcOffset(),z=Math.abs(j),Y=Math.floor(z/60),q=z%60;return(j<=0?"+":"-")+C(Y,2,"0")+":"+C(q,2,"0")},m:function D(j,z){if(j.date()<z.date())return-D(z,j);var Y=12*(z.year()-j.year())+(z.month()-j.month()),q=j.clone().add(Y,h),J=z-q<0,$=j.clone().add(Y+(J?-1:1),h);return+(-(Y+(z-q)/(J?q-$:$-q))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:h,y:m,w:d,d:f,D:y,h:l,m:u,s:o,ms:a,Q:p}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},_="en",x={};x[_]=S;var k="$isDayjsObject",A=function(D){return D instanceof H||!(!D||!D[k])},L=function D(j,z,Y){var q;if(!j)return _;if(typeof j=="string"){var J=j.toLowerCase();x[J]&&(q=J),z&&(x[J]=z,q=J);var $=j.split("-");if(!q&&$.length>1)return D($[0])}else{var K=j.name;x[K]=j,q=K}return!Y&&q&&(_=q),q||!Y&&_},N=function(D,j){if(A(D))return D.clone();var z=typeof j=="object"?j:{};return z.date=D,z.args=arguments,new H(z)},F=T;F.l=L,F.i=A,F.w=function(D,j){return N(D,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var H=function(){function D(z){this.$L=L(z.locale,null,!0),this.parse(z),this.$x=this.$x||z.x||{},this[k]=!0}var j=D.prototype;return j.parse=function(z){this.$d=function(Y){var q=Y.date,J=Y.utc;if(q===null)return new Date(NaN);if(F.u(q))return new Date;if(q instanceof Date)return new Date(q);if(typeof q=="string"&&!/Z$/i.test(q)){var $=q.match(b);if($){var K=$[2]-1||0,ae=($[7]||"0").substring(0,3);return J?new Date(Date.UTC($[1],K,$[3]||1,$[4]||0,$[5]||0,$[6]||0,ae)):new Date($[1],K,$[3]||1,$[4]||0,$[5]||0,$[6]||0,ae)}}return new Date(q)}(z),this.init()},j.init=function(){var z=this.$d;this.$y=z.getFullYear(),this.$M=z.getMonth(),this.$D=z.getDate(),this.$W=z.getDay(),this.$H=z.getHours(),this.$m=z.getMinutes(),this.$s=z.getSeconds(),this.$ms=z.getMilliseconds()},j.$utils=function(){return F},j.isValid=function(){return this.$d.toString()!==g},j.isSame=function(z,Y){var q=N(z);return this.startOf(Y)<=q&&q<=this.endOf(Y)},j.isAfter=function(z,Y){return N(z)<this.startOf(Y)},j.isBefore=function(z,Y){return this.endOf(Y)<N(z)},j.$g=function(z,Y,q){return F.u(z)?this[Y]:this.set(q,z)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(z,Y){var q=this,J=!!F.u(Y)||Y,$=F.p(z),K=function(be,we){var ne=F.w(q.$u?Date.UTC(q.$y,we,be):new Date(q.$y,we,be),q);return J?ne:ne.endOf(f)},ae=function(be,we){return F.w(q.toDate()[be].apply(q.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(we)),q)},ie=this.$W,te=this.$M,fe=this.$D,le="set"+(this.$u?"UTC":"");switch($){case m:return J?K(1,0):K(31,11);case h:return J?K(1,te):K(0,te+1);case d:var ve=this.$locale().weekStart||0,_e=(ie<ve?ie+7:ie)-ve;return K(J?fe-_e:fe+(6-_e),te);case f:case y:return ae(le+"Hours",0);case l:return ae(le+"Minutes",1);case u:return ae(le+"Seconds",2);case o:return ae(le+"Milliseconds",3);default:return this.clone()}},j.endOf=function(z){return this.startOf(z,!1)},j.$set=function(z,Y){var q,J=F.p(z),$="set"+(this.$u?"UTC":""),K=(q={},q[f]=$+"Date",q[y]=$+"Date",q[h]=$+"Month",q[m]=$+"FullYear",q[l]=$+"Hours",q[u]=$+"Minutes",q[o]=$+"Seconds",q[a]=$+"Milliseconds",q)[J],ae=J===f?this.$D+(Y-this.$W):Y;if(J===h||J===m){var ie=this.clone().set(y,1);ie.$d[K](ae),ie.init(),this.$d=ie.set(y,Math.min(this.$D,ie.daysInMonth())).$d}else K&&this.$d[K](ae);return this.init(),this},j.set=function(z,Y){return this.clone().$set(z,Y)},j.get=function(z){return this[F.p(z)]()},j.add=function(z,Y){var q,J=this;z=Number(z);var $=F.p(Y),K=function(te){var fe=N(J);return F.w(fe.date(fe.date()+Math.round(te*z)),J)};if($===h)return this.set(h,this.$M+z);if($===m)return this.set(m,this.$y+z);if($===f)return K(1);if($===d)return K(7);var ae=(q={},q[u]=r,q[l]=i,q[o]=n,q)[$]||1,ie=this.$d.getTime()+z*ae;return F.w(ie,this)},j.subtract=function(z,Y){return this.add(-1*z,Y)},j.format=function(z){var Y=this,q=this.$locale();if(!this.isValid())return q.invalidDate||g;var J=z||"YYYY-MM-DDTHH:mm:ssZ",$=F.z(this),K=this.$H,ae=this.$m,ie=this.$M,te=q.weekdays,fe=q.months,le=q.meridiem,ve=function(we,ne,W,ye){return we&&(we[ne]||we(Y,J))||W[ne].slice(0,ye)},_e=function(we){return F.s(K%12||12,we,"0")},be=le||function(we,ne,W){var ye=we<12?"AM":"PM";return W?ye.toLowerCase():ye};return J.replace(w,function(we,ne){return ne||function(W){switch(W){case"YY":return String(Y.$y).slice(-2);case"YYYY":return F.s(Y.$y,4,"0");case"M":return ie+1;case"MM":return F.s(ie+1,2,"0");case"MMM":return ve(q.monthsShort,ie,fe,3);case"MMMM":return ve(fe,ie);case"D":return Y.$D;case"DD":return F.s(Y.$D,2,"0");case"d":return String(Y.$W);case"dd":return ve(q.weekdaysMin,Y.$W,te,2);case"ddd":return ve(q.weekdaysShort,Y.$W,te,3);case"dddd":return te[Y.$W];case"H":return String(K);case"HH":return F.s(K,2,"0");case"h":return _e(1);case"hh":return _e(2);case"a":return be(K,ae,!0);case"A":return be(K,ae,!1);case"m":return String(ae);case"mm":return F.s(ae,2,"0");case"s":return String(Y.$s);case"ss":return F.s(Y.$s,2,"0");case"SSS":return F.s(Y.$ms,3,"0");case"Z":return $}return null}(we)||$.replace(":","")})},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(z,Y,q){var J,$=this,K=F.p(Y),ae=N(z),ie=(ae.utcOffset()-this.utcOffset())*r,te=this-ae,fe=function(){return F.m($,ae)};switch(K){case m:J=fe()/12;break;case h:J=fe();break;case p:J=fe()/3;break;case d:J=(te-ie)/6048e5;break;case f:J=(te-ie)/864e5;break;case l:J=te/i;break;case u:J=te/r;break;case o:J=te/n;break;default:J=te}return q?J:F.a(J)},j.daysInMonth=function(){return this.endOf(h).$D},j.$locale=function(){return x[this.$L]},j.locale=function(z,Y){if(!z)return this.$L;var q=this.clone(),J=L(z,Y,!0);return J&&(q.$L=J),q},j.clone=function(){return F.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},D}(),V=H.prototype;return N.prototype=V,[["$ms",a],["$s",o],["$m",u],["$H",l],["$W",f],["$M",h],["$y",m],["$D",y]].forEach(function(D){V[D[1]]=function(j){return this.$g(j,D[0],D[1])}}),N.extend=function(D,j){return D.$i||(D(j,H,N),D.$i=!0),N},N.locale=L,N.isDayjs=A,N.unix=function(D){return N(1e3*D)},N.en=x[_],N.Ls=x,N.p={},N})}($l)),$l.exports}var r8=n8();const tu=ji(r8);var Vl={exports:{}},i8=Vl.exports,bb;function a8(){return bb||(bb=1,function(e,t){(function(n,r){e.exports=r()})(i8,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(a,o,u){var l=o.prototype;u.utc=function(g){var b={date:g,utc:!0,args:arguments};return new o(b)},l.utc=function(g){var b=u(this.toDate(),{locale:this.$L,utc:!0});return g?b.add(this.utcOffset(),n):b},l.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var f=l.parse;l.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),f.call(this,g)};var d=l.init;l.init=function(){if(this.$u){var g=this.$d;this.$y=g.getUTCFullYear(),this.$M=g.getUTCMonth(),this.$D=g.getUTCDate(),this.$W=g.getUTCDay(),this.$H=g.getUTCHours(),this.$m=g.getUTCMinutes(),this.$s=g.getUTCSeconds(),this.$ms=g.getUTCMilliseconds()}else d.call(this)};var h=l.utcOffset;l.utcOffset=function(g,b){var w=this.$utils().u;if(w(g))return this.$u?0:w(this.$offset)?h.call(this):this.$offset;if(typeof g=="string"&&(g=function(_){_===void 0&&(_="");var x=_.match(r);if(!x)return null;var k=(""+x[0]).match(i)||["-",0,0],A=k[0],L=60*+k[1]+ +k[2];return L===0?0:A==="+"?L:-L}(g),g===null))return this;var S=Math.abs(g)<=16?60*g:g,C=this;if(b)return C.$offset=S,C.$u=g===0,C;if(g!==0){var T=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(C=this.local().add(S+T,n)).$offset=S,C.$x.$localOffset=T}else C=this.utc();return C};var p=l.format;l.format=function(g){var b=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,b)},l.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var m=l.toDate;l.toDate=function(g){return g==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():m.call(this)};var y=l.diff;l.diff=function(g,b,w){if(g&&this.$u===g.$u)return y.call(this,g,b,w);var S=this.local(),C=u(g).local();return y.call(S,C,b,w)}}})}(Vl)),Vl.exports}var o8=a8();const s8=ji(o8);class u8 extends Error{}u8.prototype.name="InvalidTokenError";var nu={exports:{}};/**
58
+ `).forEach(function(n){var r=n.indexOf(":");if(r>-1){var i=n.slice(0,r).trim().toLowerCase(),a=n.slice(r+1).trim();t[i]=a}}),t}function ny(e,t){if(e.status>=300){var n=function(){try{return JSON.parse(t)}catch{return t}};K0(e,n(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(i){var r=i;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function F4(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function D4(e){return function(t){return t.text().then(function(n){return ny(t,n)}).then(function(n){return!Array.isArray(n)&&!ty.call(n,"data")&&!ty.call(n,"errors")&&K0(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(r){return r.operationName}):e.operationName,"'.")),n})}}var Gd=function(e,t){var n;try{n=JSON.stringify(e)}catch(i){var r=Fn(42,t,i.message);throw r.parseError=i,r}return n},M4={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},j4={accept:"*/*","content-type":"application/json"},$4={method:"POST"},V4={http:M4,headers:j4,options:$4},q4=function(e,t){return t(e)};function U4(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={},a={};n.forEach(function(h){i=X(X(X({},i),h.options),{headers:X(X({},i.headers),h.headers)}),h.credentials&&(i.credentials=h.credentials),a=X(X({},a),h.http)}),i.headers&&(i.headers=z4(i.headers,a.preserveHeaderCase));var o=e.operationName,u=e.extensions,l=e.variables,f=e.query,d={operationName:o,variables:l};return a.includeExtensions&&(d.extensions=u),a.includeQuery&&(d.query=t(f,Bi)),{options:i,body:d}}function z4(e,t){if(!t){var n={};return Object.keys(Object(e)).forEach(function(a){n[a.toLowerCase()]=e[a]}),n}var r={};Object.keys(Object(e)).forEach(function(a){r[a.toLowerCase()]={originalName:a,value:e[a]}});var i={};return Object.keys(r).forEach(function(a){i[r[a].originalName]=r[a].value}),i}var H4=function(e){if(!e&&typeof fetch>"u")throw Fn(40)},B4=function(e,t){var n=e.getContext(),r=n.uri;return r||(typeof t=="function"?t(e):t||"/graphql")};function W4(e,t){var n=[],r=function(h,p){n.push("".concat(h,"=").concat(encodeURIComponent(p)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=Gd(t.variables,"Variables map")}catch(h){return{parseError:h}}r("variables",i)}if(t.extensions){var a=void 0;try{a=Gd(t.extensions,"Extensions map")}catch(h){return{parseError:h}}r("extensions",a)}var o="",u=e,l=e.indexOf("#");l!==-1&&(o=e.substr(l),u=e.substr(0,l));var f=u.indexOf("?")===-1?"?":"&",d=u+f+n.join("&")+o;return{newURI:d}}var ry=$r(function(){return fetch}),iy=function(e){e===void 0&&(e={});var t=e.uri,n=t===void 0?"/graphql":t,r=e.fetch,i=e.print,a=i===void 0?q4:i,o=e.includeExtensions,u=e.preserveHeaderCase,l=e.useGETForQueries,f=e.includeUnusedVariables,d=f===void 0?!1:f,h=br(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);globalThis.__DEV__!==!1&&H4(r||ry);var p={http:{includeExtensions:o,preserveHeaderCase:u},options:h.fetchOptions,credentials:h.credentials,headers:h.headers};return new Ur(function(m){var y=B4(m,n),g=m.getContext(),b={};if(g.clientAwareness){var w=g.clientAwareness,S=w.name,C=w.version;S&&(b["apollographql-client-name"]=S),C&&(b["apollographql-client-version"]=C)}var T=X(X({},b),g.headers),_={http:g.http,options:g.fetchOptions,credentials:g.credentials,headers:T};if(Ds(["client"],m.query)){var x=M0(m.query);if(!x)return Bd(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));m.query=x}var k=U4(m,a,V4,p,_),A=k.options,L=k.body;L.variables&&!d&&(L.variables=b4(L.variables,m.query));var N;!A.signal&&typeof AbortController<"u"&&(N=new AbortController,A.signal=N.signal);var F=function(J){return J.kind==="OperationDefinition"&&J.operation==="mutation"},H=function(J){return J.kind==="OperationDefinition"&&J.operation==="subscription"},V=H(yo(m.query)),D=Ds(["defer"],m.query);if(l&&!m.query.definitions.some(F)&&(A.method="GET"),D||V){A.headers=A.headers||{};var j="multipart/mixed;";V&&D&&globalThis.__DEV__!==!1&&Ce.warn(41),V?j+="boundary=graphql;subscriptionSpec=1.0,application/json":D&&(j+="deferSpec=20220824,application/json"),A.headers.accept=j}if(A.method==="GET"){var z=W4(y,L),Q=z.newURI,q=z.parseError;if(q)return Bd(q);y=Q}else try{A.body=Gd(L,"Payload")}catch(J){return Bd(J)}return new _t(function(J){var $=r||$r(function(){return fetch})||ry,Y=J.next.bind(J);return $(y,A).then(function(ae){var ie;m.setContext({response:ae});var te=(ie=ae.headers)===null||ie===void 0?void 0:ie.get("content-type");return te!==null&&/^multipart\/mixed/i.test(te)?I4(ae,Y):D4(m)(ae).then(Y)}).then(function(){N=void 0,J.complete()}).catch(function(ae){N=void 0,F4(ae,J)}),function(){N&&N.abort()}})})},G4=function(e){yr(t,e);function t(n){n===void 0&&(n={});var r=e.call(this,iy(n).request)||this;return r.options=n,r}return t}(Ur);const{toString:ay,hasOwnProperty:Q4}=Object.prototype,oy=Function.prototype.toString,Qd=new Map;function dt(e,t){try{return Yd(e,t)}finally{Qd.clear()}}function Yd(e,t){if(e===t)return!0;const n=ay.call(e),r=ay.call(t);if(n!==r)return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(uy(e,t))return!0;const i=sy(e),a=sy(t),o=i.length;if(o!==a.length)return!1;for(let u=0;u<o;++u)if(!Q4.call(t,i[u]))return!1;for(let u=0;u<o;++u){const l=i[u];if(!Yd(e[l],t[l]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!==e)return t!==t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(uy(e,t))return!0;const i=e.entries(),a=n==="[object Map]";for(;;){const o=i.next();if(o.done)break;const[u,l]=o.value;if(!t.has(u)||a&&!Yd(l,t.get(u)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let i=e.byteLength;if(i===t.byteLength)for(;i--&&e[i]===t[i];);return i===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const i=oy.call(e);return i!==oy.call(t)?!1:!X4(i,K4)}}return!1}function sy(e){return Object.keys(e).filter(Y4,e)}function Y4(e){return this[e]!==void 0}const K4="{ [native code] }";function X4(e,t){const n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}function uy(e,t){let n=Qd.get(e);if(n){if(n.has(t))return!0}else Qd.set(e,n=new Set);return n.add(t),!1}function ly(e,t,n,r){var i=t.data,a=br(t,["data"]),o=n.data,u=br(n,["data"]);return dt(a,u)&&Tl(yo(e).selectionSet,i,o,{fragmentMap:fo(go(e)),variables:r})}function Tl(e,t,n,r){if(t===n)return!0;var i=new Set;return e.selections.every(function(a){if(i.has(a)||(i.add(a),!Fs(a,r.variables))||cy(a))return!0;if(zi(a)){var o=Ei(a),u=t&&t[o],l=n&&n[o],f=a.selectionSet;if(!f)return dt(u,l);var d=Array.isArray(u),h=Array.isArray(l);if(d!==h)return!1;if(d&&h){var p=u.length;if(l.length!==p)return!1;for(var m=0;m<p;++m)if(!Tl(f,u[m],l[m],r))return!1;return!0}return Tl(f,u,l,r)}else{var y=vl(a,r.fragmentMap);if(y)return cy(y)?!0:Tl(y.selectionSet,t,n,r)}})}function cy(e){return!!e.directives&&e.directives.some(Z4)}function Z4(e){return e.name.value==="nonreactive"}var fy=Sa?WeakMap:Map,dy=yd?WeakSet:Set,Kd=new $s,hy=!1;function py(){hy||(hy=!0,globalThis.__DEV__!==!1&&Ce.warn(52))}function vy(e,t,n){return Kd.withValue(!0,function(){var r=Ws(e,t,n,!1);return Object.isFrozen(e)&&Eo(r),r})}function J4(e,t){if(t.has(e))return t.get(e);var n=Array.isArray(e)?[]:Object.create(null);return t.set(e,n),n}function Ws(e,t,n,r,i){var a,o=n.knownChanged,u=J4(e,n.mutableTargets);if(Array.isArray(e)){for(var l=0,f=Array.from(e.entries());l<f.length;l++){var d=f[l],h=d[0],p=d[1];if(p===null){u[h]=null;continue}var m=Ws(p,t,n,r,globalThis.__DEV__!==!1?"".concat(i||"","[").concat(h,"]"):void 0);o.has(m)&&o.add(u),u[h]=m}return o.has(u)?u:e}for(var y=0,g=t.selections;y<g.length;y++){var b=g[y],w=void 0;if(r&&o.add(u),b.kind===Mt.FIELD){var S=Ei(b),C=b.selectionSet;if(w=u[S]||e[S],w===void 0)continue;if(C&&w!==null){var m=Ws(e[S],C,n,r,globalThis.__DEV__!==!1?"".concat(i||"",".").concat(S):void 0);o.has(m)&&(w=m)}globalThis.__DEV__===!1&&(u[S]=w),globalThis.__DEV__!==!1&&(r&&S!=="__typename"&&!(!((a=Object.getOwnPropertyDescriptor(u,S))===null||a===void 0)&&a.value)?Object.defineProperty(u,S,eO(S,w,i||"",n.operationName,n.operationType)):(delete u[S],u[S]=w))}if(b.kind===Mt.INLINE_FRAGMENT&&(!b.typeCondition||n.cache.fragmentMatches(b,e.__typename))&&(w=Ws(e,b.selectionSet,n,r,i)),b.kind===Mt.FRAGMENT_SPREAD){var T=b.name.value,_=n.fragmentMap[T]||(n.fragmentMap[T]=n.cache.lookupFragment(T));Ce(_,47,T);var x=J6(b);x!=="mask"&&(w=Ws(e,_.selectionSet,n,x==="migrate",i))}o.has(w)&&o.add(u)}return"__typename"in e&&!("__typename"in u)&&(u.__typename=e.__typename),Object.keys(u).length!==Object.keys(e).length&&o.add(u),o.has(u)?u:e}function eO(e,t,n,r,i){var a=function(){return Kd.getValue()||(globalThis.__DEV__!==!1&&Ce.warn(48,r?"".concat(i," '").concat(r,"'"):"anonymous ".concat(i),"".concat(n,".").concat(e).replace(/^\./,"")),a=function(){return t}),t};return{get:function(){return a()},set:function(o){a=function(){return o}},enumerable:!0,configurable:!0}}function my(e,t,n,r){if(!n.fragmentMatches)return globalThis.__DEV__!==!1&&py(),e;var i=t.definitions.filter(function(o){return o.kind===Mt.FRAGMENT_DEFINITION});typeof r>"u"&&(Ce(i.length===1,49,i.length),r=i[0].name.value);var a=i.find(function(o){return o.name.value===r});return Ce(!!a,50,r),e==null||dt(e,{})?e:vy(e,a.selectionSet,{operationType:"fragment",operationName:a.name.value,fragmentMap:fo(go(t)),cache:n,mutableTargets:new fy,knownChanged:new dy})}function tO(e,t,n){var r;if(!n.fragmentMatches)return globalThis.__DEV__!==!1&&py(),e;var i=Ca(t);return Ce(i,51),e==null?e:vy(e,i.selectionSet,{operationType:i.operation,operationName:(r=i.name)===null||r===void 0?void 0:r.value,fragmentMap:fo(go(t)),cache:n,mutableTargets:new fy,knownChanged:new dy})}var gy=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=qs(oT,{max:ti["cache.fragmentQueryDocuments"]||1e3,cache:ml})}return e.prototype.lookupFragment=function(t){return null},e.prototype.batch=function(t){var n=this,r=typeof t.optimistic=="string"?t.optimistic:t.optimistic===!1?null:void 0,i;return this.performTransaction(function(){return i=t.update(n)},r),i},e.prototype.recordOptimisticTransaction=function(t,n){this.performTransaction(t,n)},e.prototype.transformDocument=function(t){return t},e.prototype.transformForLink=function(t){return t},e.prototype.identify=function(t){},e.prototype.gc=function(){return[]},e.prototype.modify=function(t){return!1},e.prototype.readQuery=function(t,n){return n===void 0&&(n=!!t.optimistic),this.read(X(X({},t),{rootId:t.id||"ROOT_QUERY",optimistic:n}))},e.prototype.watchFragment=function(t){var n=this,r=t.fragment,i=t.fragmentName,a=t.from,o=t.optimistic,u=o===void 0?!0:o,l=br(t,["fragment","fragmentName","from","optimistic"]),f=this.getFragmentDoc(r,i),d=typeof a>"u"||typeof a=="string"?a:this.identify(a),h=!!t[Symbol.for("apollo.dataMasking")];if(globalThis.__DEV__!==!1){var p=i||v0(r).name.value;d||globalThis.__DEV__!==!1&&Ce.warn(1,p)}var m=X(X({},l),{returnPartialData:!0,id:d,query:f,optimistic:u}),y;return new _t(function(g){return n.watch(X(X({},m),{immediate:!0,callback:function(b){var w=h?my(b.result,r,n,i):b.result;if(!(y&&ly(f,{data:y.result},{data:w},t.variables))){var S={data:w,complete:!!b.complete};b.missing&&(S.missing=_l(b.missing.map(function(C){return C.missing}))),y=X(X({},b),{result:w}),g.next(S)}}}))})},e.prototype.readFragment=function(t,n){return n===void 0&&(n=!!t.optimistic),this.read(X(X({},t),{query:this.getFragmentDoc(t.fragment,t.fragmentName),rootId:t.id,optimistic:n}))},e.prototype.writeQuery=function(t){var n=t.id,r=t.data,i=br(t,["id","data"]);return this.write(Object.assign(i,{dataId:n||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(t){var n=t.id,r=t.data,i=t.fragment,a=t.fragmentName,o=br(t,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(i,a),dataId:n,result:r}))},e.prototype.updateQuery=function(t,n){return this.batch({update:function(r){var i=r.readQuery(t),a=n(i);return a==null?i:(r.writeQuery(X(X({},t),{data:a})),a)}})},e.prototype.updateFragment=function(t,n){return this.batch({update:function(r){var i=r.readFragment(t),a=n(i);return a==null?i:(r.writeFragment(X(X({},t),{data:a})),a)}})},e}();globalThis.__DEV__!==!1&&(gy.prototype.getMemoryInternals=yT);var yy=function(e){yr(t,e);function t(n,r,i,a){var o,u=e.call(this,n)||this;if(u.message=n,u.path=r,u.query=i,u.variables=a,Array.isArray(u.path)){u.missing=u.message;for(var l=u.path.length-1;l>=0;--l)u.missing=(o={},o[u.path[l]]=u.missing,o)}else u.missing=u.path;return u.__proto__=t.prototype,u}return t}(Error),hn=Object.prototype.hasOwnProperty;function Gs(e){return e==null}function by(e,t){var n=e.__typename,r=e.id,i=e._id;if(typeof n=="string"&&(t&&(t.keyObject=Gs(r)?Gs(i)?void 0:{_id:i}:{id:r}),Gs(r)&&!Gs(i)&&(r=i),!Gs(r)))return"".concat(n,":").concat(typeof r=="number"||typeof r=="string"?r:JSON.stringify(r))}var _y={dataIdFromObject:by,addTypename:!0,resultCaching:!0,canonizeResults:!1};function nO(e){return Ta(_y,e)}function wy(e){var t=e.canonizeResults;return t===void 0?_y.canonizeResults:t}function rO(e,t){return bt(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var Ey=/^[_a-z][_0-9a-z]*/i;function Gi(e){var t=e.match(Ey);return t?t[0]:e}function Xd(e,t,n){return qt(t)?Zt(t)?t.every(function(r){return Xd(e,r,n)}):e.selections.every(function(r){if(zi(r)&&Fs(r,n)){var i=Ei(r);return hn.call(t,i)&&(!r.selectionSet||Xd(r.selectionSet,t[i],n))}return!0}):!1}function Co(e){return qt(e)&&!bt(e)&&!Zt(e)}function iO(){return new Wi}function Sy(e,t){var n=fo(go(e));return{fragmentMap:n,lookupFragment:function(r){var i=n[r];return!i&&t&&(i=t.lookup(r)),i||null}}}var Ol=Object.create(null),Zd=function(){return Ol},xy=Object.create(null),Qs=function(){function e(t,n){var r=this;this.policies=t,this.group=n,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(i,a){return Eo(bt(i)?r.get(i.__ref,a):i&&i[a])},this.canRead=function(i){return bt(i)?r.has(i.__ref):typeof i=="object"},this.toReference=function(i,a){if(typeof i=="string")return po(i);if(bt(i))return i;var o=r.policies.identify(i)[0];if(o){var u=po(o);return a&&r.merge(o,i),u}}}return e.prototype.toObject=function(){return X({},this.data)},e.prototype.has=function(t){return this.lookup(t,!0)!==void 0},e.prototype.get=function(t,n){if(this.group.depend(t,n),hn.call(this.data,t)){var r=this.data[t];if(r&&hn.call(r,n))return r[n]}if(n==="__typename"&&hn.call(this.policies.rootTypenamesById,t))return this.policies.rootTypenamesById[t];if(this instanceof Qi)return this.parent.get(t,n)},e.prototype.lookup=function(t,n){if(n&&this.group.depend(t,"__exists"),hn.call(this.data,t))return this.data[t];if(this instanceof Qi)return this.parent.lookup(t,n);if(this.policies.rootTypenamesById[t])return Object.create(null)},e.prototype.merge=function(t,n){var r=this,i;bt(t)&&(t=t.__ref),bt(n)&&(n=n.__ref);var a=typeof t=="string"?this.lookup(i=t):t,o=typeof n=="string"?this.lookup(i=n):n;if(o){Ce(typeof i=="string",2);var u=new Wi(oO).merge(a,o);if(this.data[i]=u,u!==a&&(delete this.refs[i],this.group.caching)){var l=Object.create(null);a||(l.__exists=1),Object.keys(o).forEach(function(f){if(!a||a[f]!==u[f]){l[f]=1;var d=Gi(f);d!==f&&!r.policies.hasKeyArgs(u.__typename,d)&&(l[d]=1),u[f]===void 0&&!(r instanceof Qi)&&delete u[f]}}),l.__typename&&!(a&&a.__typename)&&this.policies.rootTypenamesById[i]===u.__typename&&delete l.__typename,Object.keys(l).forEach(function(f){return r.group.dirty(i,f)})}}},e.prototype.modify=function(t,n){var r=this,i=this.lookup(t);if(i){var a=Object.create(null),o=!1,u=!0,l={DELETE:Ol,INVALIDATE:xy,isReference:bt,toReference:this.toReference,canRead:this.canRead,readField:function(f,d){return r.policies.readField(typeof f=="string"?{fieldName:f,from:d||po(t)}:f,{store:r})}};if(Object.keys(i).forEach(function(f){var d=Gi(f),h=i[f];if(h!==void 0){var p=typeof n=="function"?n:n[f]||n[d];if(p){var m=p===Zd?Ol:p(Eo(h),X(X({},l),{fieldName:d,storeFieldName:f,storage:r.getStorage(t,f)}));if(m===xy)r.group.dirty(t,f);else if(m===Ol&&(m=void 0),m!==h&&(a[f]=m,o=!0,h=m,globalThis.__DEV__!==!1)){var y=function(_){if(r.lookup(_.__ref)===void 0)return globalThis.__DEV__!==!1&&Ce.warn(3,_),!0};if(bt(m))y(m);else if(Array.isArray(m))for(var g=!1,b=void 0,w=0,S=m;w<S.length;w++){var C=S[w];if(bt(C)){if(g=!0,y(C))break}else if(typeof C=="object"&&C){var T=r.policies.identify(C)[0];T&&(b=C)}if(g&&b!==void 0){globalThis.__DEV__!==!1&&Ce.warn(4,b);break}}}}h!==void 0&&(u=!1)}}),o)return this.merge(t,a),u&&(this instanceof Qi?this.data[t]=void 0:delete this.data[t],this.group.dirty(t,"__exists")),!0}return!1},e.prototype.delete=function(t,n,r){var i,a=this.lookup(t);if(a){var o=this.getFieldValue(a,"__typename"),u=n&&r?this.policies.getStoreFieldName({typename:o,fieldName:n,args:r}):n;return this.modify(t,u?(i={},i[u]=Zd,i):Zd)}return!1},e.prototype.evict=function(t,n){var r=!1;return t.id&&(hn.call(this.data,t.id)&&(r=this.delete(t.id,t.fieldName,t.args)),this instanceof Qi&&this!==n&&(r=this.parent.evict(t,n)||r),(t.fieldName||r)&&this.group.dirty(t.id,t.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var t=this,n=this.toObject(),r=[];return this.getRootIdSet().forEach(function(i){hn.call(t.policies.rootTypenamesById,i)||r.push(i)}),r.length&&(n.__META={extraRootIds:r.sort()}),n},e.prototype.replace=function(t){var n=this;if(Object.keys(this.data).forEach(function(a){t&&hn.call(t,a)||n.delete(a)}),t){var r=t.__META,i=br(t,["__META"]);Object.keys(i).forEach(function(a){n.merge(a,i[a])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(t){return this.rootIds[t]=(this.rootIds[t]||0)+1},e.prototype.release=function(t){if(this.rootIds[t]>0){var n=--this.rootIds[t];return n||delete this.rootIds[t],n}return 0},e.prototype.getRootIdSet=function(t){return t===void 0&&(t=new Set),Object.keys(this.rootIds).forEach(t.add,t),this instanceof Qi?this.parent.getRootIdSet(t):Object.keys(this.policies.rootTypenamesById).forEach(t.add,t),t},e.prototype.gc=function(){var t=this,n=this.getRootIdSet(),r=this.toObject();n.forEach(function(o){hn.call(r,o)&&(Object.keys(t.findChildRefIds(o)).forEach(n.add,n),delete r[o])});var i=Object.keys(r);if(i.length){for(var a=this;a instanceof Qi;)a=a.parent;i.forEach(function(o){return a.delete(o)})}return i},e.prototype.findChildRefIds=function(t){if(!hn.call(this.refs,t)){var n=this.refs[t]=Object.create(null),r=this.data[t];if(!r)return n;var i=new Set([r]);i.forEach(function(a){bt(a)&&(n[a.__ref]=!0),qt(a)&&Object.keys(a).forEach(function(o){var u=a[o];qt(u)&&i.add(u)})})}return this.refs[t]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),Cy=function(){function e(t,n){n===void 0&&(n=null),this.caching=t,this.parent=n,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?A0():null,this.keyMaker=new wi(Sa)},e.prototype.depend=function(t,n){if(this.d){this.d(Jd(t,n));var r=Gi(n);r!==n&&this.d(Jd(t,r)),this.parent&&this.parent.depend(t,n)}},e.prototype.dirty=function(t,n){this.d&&this.d.dirty(Jd(t,n),n==="__exists"?"forget":"setDirty")},e}();function Jd(e,t){return t+"#"+e}function Ty(e,t){Ys(e)&&e.group.depend(t,"__exists")}(function(e){var t=function(n){yr(r,n);function r(i){var a=i.policies,o=i.resultCaching,u=o===void 0?!0:o,l=i.seed,f=n.call(this,a,new Cy(u))||this;return f.stump=new aO(f),f.storageTrie=new wi(Sa),l&&f.replace(l),f}return r.prototype.addLayer=function(i,a){return this.stump.addLayer(i,a)},r.prototype.removeLayer=function(){return this},r.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},r}(e);e.Root=t})(Qs||(Qs={}));var Qi=function(e){yr(t,e);function t(n,r,i,a){var o=e.call(this,r.policies,a)||this;return o.id=n,o.parent=r,o.replay=i,o.group=a,i(o),o}return t.prototype.addLayer=function(n,r){return new t(n,this,r,this.group)},t.prototype.removeLayer=function(n){var r=this,i=this.parent.removeLayer(n);return n===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(a){var o=r.data[a],u=i.lookup(a);u?o?o!==u&&Object.keys(o).forEach(function(l){dt(o[l],u[l])||r.group.dirty(a,l)}):(r.group.dirty(a,"__exists"),Object.keys(u).forEach(function(l){r.group.dirty(a,l)})):r.delete(a)}),i):i===this.parent?this:i.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return X(X({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(n){var r=this.parent.findChildRefIds(n);return hn.call(this.data,n)?X(X({},r),e.prototype.findChildRefIds.call(this,n)):r},t.prototype.getStorage=function(){for(var n=this.parent;n.parent;)n=n.parent;return n.getStorage.apply(n,arguments)},t}(Qs),aO=function(e){yr(t,e);function t(n){return e.call(this,"EntityStore.Stump",n,function(){},new Cy(n.group.caching,n.group))||this}return t.prototype.removeLayer=function(){return this},t.prototype.merge=function(n,r){return this.parent.merge(n,r)},t}(Qi);function oO(e,t,n){var r=e[n],i=t[n];return dt(r,i)?r:i}function Ys(e){return!!(e instanceof Qs&&e.group.caching)}function sO(e){return qt(e)?Zt(e)?e.slice(0):X({__proto__:Object.getPrototypeOf(e)},e):e}var Oy=function(){function e(){this.known=new(yd?WeakSet:Set),this.pool=new wi(Sa),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(t){return qt(t)&&this.known.has(t)},e.prototype.pass=function(t){if(qt(t)){var n=sO(t);return this.passes.set(n,t),n}return t},e.prototype.admit=function(t){var n=this;if(qt(t)){var r=this.passes.get(t);if(r)return r;var i=Object.getPrototypeOf(t);switch(i){case Array.prototype:{if(this.known.has(t))return t;var a=t.map(this.admit,this),o=this.pool.lookupArray(a);return o.array||(this.known.add(o.array=a),globalThis.__DEV__!==!1&&Object.freeze(a)),o.array}case null:case Object.prototype:{if(this.known.has(t))return t;var u=Object.getPrototypeOf(t),l=[u],f=this.sortedKeys(t);l.push(f.json);var d=l.length;f.sorted.forEach(function(m){l.push(n.admit(t[m]))});var o=this.pool.lookupArray(l);if(!o.object){var h=o.object=Object.create(u);this.known.add(h),f.sorted.forEach(function(m,y){h[m]=l[d+y]}),globalThis.__DEV__!==!1&&Object.freeze(h)}return o.object}}}return t},e.prototype.sortedKeys=function(t){var n=Object.keys(t),r=this.pool.lookupArray(n);if(!r.keys){n.sort();var i=JSON.stringify(n);(r.keys=this.keysByJSON.get(i))||this.keysByJSON.set(i,r.keys={sorted:n,json:i})}return r.keys},e}();function ky(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var uO=function(){function e(t){var n=this;this.knownResults=new(Sa?WeakMap:Map),this.config=Ta(t,{addTypename:t.addTypename!==!1,canonizeResults:wy(t)}),this.canon=t.canon||new Oy,this.executeSelectionSet=qs(function(r){var i,a=r.context.canonizeResults,o=ky(r);o[3]=!a;var u=(i=n.executeSelectionSet).peek.apply(i,o);return u?a?X(X({},u),{result:n.canon.admit(u.result)}):u:(Ty(r.context.store,r.enclosingRef.__ref),n.execSelectionSetImpl(r))},{max:this.config.resultCacheMaxSize||ti["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:ky,makeCacheKey:function(r,i,a,o){if(Ys(a.store))return a.store.makeCacheKey(r,bt(i)?i.__ref:i,a.varString,o)}}),this.executeSubSelectedArray=qs(function(r){return Ty(r.context.store,r.enclosingRef.__ref),n.execSubSelectedArrayImpl(r)},{max:this.config.resultCacheMaxSize||ti["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(r){var i=r.field,a=r.array,o=r.context;if(Ys(o.store))return o.store.makeCacheKey(i,a,o.varString)}})}return e.prototype.resetCanon=function(){this.canon=new Oy},e.prototype.diffQueryAgainstStore=function(t){var n=t.store,r=t.query,i=t.rootId,a=i===void 0?"ROOT_QUERY":i,o=t.variables,u=t.returnPartialData,l=u===void 0?!0:u,f=t.canonizeResults,d=f===void 0?this.config.canonizeResults:f,h=this.config.cache.policies;o=X(X({},kd(p0(r))),o);var p=po(a),m=this.executeSelectionSet({selectionSet:yo(r).selectionSet,objectOrReference:p,enclosingRef:p,context:X({store:n,query:r,policies:h,variables:o,varString:Ui(o),canonizeResults:d},Sy(r,this.config.fragments))}),y;if(m.missing&&(y=[new yy(lO(m.missing),m.missing,r,o)],!l))throw y[0];return{result:m.result,complete:!y,missing:y}},e.prototype.isFresh=function(t,n,r,i){if(Ys(i.store)&&this.knownResults.get(t)===r){var a=this.executeSelectionSet.peek(r,n,i,this.canon.isKnown(t));if(a&&t===a.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(t){var n=this,r=t.selectionSet,i=t.objectOrReference,a=t.enclosingRef,o=t.context;if(bt(i)&&!o.policies.rootTypenamesById[i.__ref]&&!o.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var u=o.variables,l=o.policies,f=o.store,d=f.getFieldValue(i,"__typename"),h=[],p,m=new Wi;this.config.addTypename&&typeof d=="string"&&!l.rootIdsByTypename[d]&&h.push({__typename:d});function y(C,T){var _;return C.missing&&(p=m.merge(p,(_={},_[T]=C.missing,_))),C.result}var g=new Set(r.selections);g.forEach(function(C){var T,_;if(Fs(C,u))if(zi(C)){var x=l.readField({fieldName:C.name.value,field:C,variables:o.variables,from:i},o),k=Ei(C);x===void 0?Ld.added(C)||(p=m.merge(p,(T={},T[k]="Can't find field '".concat(C.name.value,"' on ").concat(bt(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),T))):Zt(x)?x.length>0&&(x=y(n.executeSubSelectedArray({field:C,array:x,enclosingRef:a,context:o}),k)):C.selectionSet?x!=null&&(x=y(n.executeSelectionSet({selectionSet:C.selectionSet,objectOrReference:x,enclosingRef:bt(x)?x:a,context:o}),k)):o.canonizeResults&&(x=n.canon.pass(x)),x!==void 0&&h.push((_={},_[k]=x,_))}else{var A=vl(C,o.lookupFragment);if(!A&&C.kind===Mt.FRAGMENT_SPREAD)throw Fn(10,C.name.value);A&&l.fragmentMatches(A,d)&&A.selectionSet.selections.forEach(g.add,g)}});var b=_l(h),w={result:b,missing:p},S=o.canonizeResults?this.canon.admit(w):Eo(w);return S.result&&this.knownResults.set(S.result,r),S},e.prototype.execSubSelectedArrayImpl=function(t){var n=this,r=t.field,i=t.array,a=t.enclosingRef,o=t.context,u,l=new Wi;function f(d,h){var p;return d.missing&&(u=l.merge(u,(p={},p[h]=d.missing,p))),d.result}return r.selectionSet&&(i=i.filter(o.store.canRead)),i=i.map(function(d,h){return d===null?null:Zt(d)?f(n.executeSubSelectedArray({field:r,array:d,enclosingRef:a,context:o}),h):r.selectionSet?f(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:d,enclosingRef:bt(d)?d:a,context:o}),h):(globalThis.__DEV__!==!1&&cO(o.store,r,d),d)}),{result:o.canonizeResults?this.canon.admit(i):i,missing:u}},e}();function lO(e){try{JSON.stringify(e,function(t,n){if(typeof n=="string")throw n;return n})}catch(t){return t}}function cO(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(i){qt(i)&&(Ce(!bt(i),11,rO(e,i),t.name.value),Object.values(i).forEach(r.add,r))})}}var eh=new $s,Ry=new WeakMap;function Ks(e){var t=Ry.get(e);return t||Ry.set(e,t={vars:new Set,dep:A0()}),t}function Ay(e){Ks(e).vars.forEach(function(t){return t.forgetCache(e)})}function fO(e){Ks(e).vars.forEach(function(t){return t.attachCache(e)})}function dO(e){var t=new Set,n=new Set,r=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach(function(l){Ks(l).dep.dirty(r),hO(l)});var o=Array.from(n);n.clear(),o.forEach(function(l){return l(e)})}}else{var u=eh.getValue();u&&(i(u),Ks(u).dep(r))}return e};r.onNextChange=function(a){return n.add(a),function(){n.delete(a)}};var i=r.attachCache=function(a){return t.add(a),Ks(a).vars.add(r),r};return r.forgetCache=function(a){return t.delete(a)},r}function hO(e){e.broadcastWatches&&e.broadcastWatches()}var Py=Object.create(null);function th(e){var t=JSON.stringify(e);return Py[t]||(Py[t]=Object.create(null))}function Ny(e){var t=th(e);return t.keyFieldsFn||(t.keyFieldsFn=function(n,r){var i=function(o,u){return r.readField(u,o)},a=r.keyObject=nh(e,function(o){var u=To(r.storeObject,o,i);return u===void 0&&n!==r.storeObject&&hn.call(n,o[0])&&(u=To(n,o,Fy)),Ce(u!==void 0,5,o.join("."),n),u});return"".concat(r.typename,":").concat(JSON.stringify(a))})}function Iy(e){var t=th(e);return t.keyArgsFn||(t.keyArgsFn=function(n,r){var i=r.field,a=r.variables,o=r.fieldName,u=nh(e,function(f){var d=f[0],h=d.charAt(0);if(h==="@"){if(i&&_r(i.directives)){var p=d.slice(1),m=i.directives.find(function(w){return w.name.value===p}),y=m&&gl(m,a);return y&&To(y,f.slice(1))}return}if(h==="$"){var g=d.slice(1);if(a&&hn.call(a,g)){var b=f.slice(0);return b[0]=g,To(a,b)}return}if(n)return To(n,f)}),l=JSON.stringify(u);return(n||l!=="{}")&&(o+=":"+l),o})}function nh(e,t){var n=new Wi;return Ly(e).reduce(function(r,i){var a,o=t(i);if(o!==void 0){for(var u=i.length-1;u>=0;--u)o=(a={},a[i[u]]=o,a);r=n.merge(r,o)}return r},Object.create(null))}function Ly(e){var t=th(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach(function(i,a){Zt(i)?(Ly(i).forEach(function(o){return n.push(r.concat(o))}),r.length=0):(r.push(i),Zt(e[a+1])||(n.push(r.slice(0)),r.length=0))})}return t.paths}function Fy(e,t){return e[t]}function To(e,t,n){return n=n||Fy,Dy(t.reduce(function r(i,a){return Zt(i)?i.map(function(o){return r(o,a)}):i&&n(i,a)},e))}function Dy(e){return qt(e)?Zt(e)?e.map(Dy):nh(Object.keys(e).sort(),function(t){return To(e,t)}):e}function rh(e){return e.args!==void 0?e.args:e.field?gl(e.field,e.variables):null}var pO=function(){},My=function(e,t){return t.fieldName},jy=function(e,t,n){var r=n.mergeObjects;return r(e,t)},$y=function(e,t){return t},vO=function(){function e(t){this.config=t,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=X({dataIdFromObject:by},t),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),t.possibleTypes&&this.addPossibleTypes(t.possibleTypes),t.typePolicies&&this.addTypePolicies(t.typePolicies)}return e.prototype.identify=function(t,n){var r,i=this,a=n&&(n.typename||((r=n.storeObject)===null||r===void 0?void 0:r.__typename))||t.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var o=n&&n.storeObject||t,u=X(X({},n),{typename:a,storeObject:o,readField:n&&n.readField||function(){var h=ih(arguments,o);return i.readField(h,{store:i.cache.data,variables:h.variables})}}),l,f=a&&this.getTypePolicy(a),d=f&&f.keyFn||this.config.dataIdFromObject;return Kd.withValue(!0,function(){for(;d;){var h=d(X(X({},t),o),u);if(Zt(h))d=Ny(h);else{l=h;break}}}),l=l?String(l):void 0,u.keyObject?[l,u.keyObject]:[l]},e.prototype.addTypePolicies=function(t){var n=this;Object.keys(t).forEach(function(r){var i=t[r],a=i.queryType,o=i.mutationType,u=i.subscriptionType,l=br(i,["queryType","mutationType","subscriptionType"]);a&&n.setRootTypename("Query",r),o&&n.setRootTypename("Mutation",r),u&&n.setRootTypename("Subscription",r),hn.call(n.toBeAdded,r)?n.toBeAdded[r].push(l):n.toBeAdded[r]=[l]})},e.prototype.updateTypePolicy=function(t,n){var r=this,i=this.getTypePolicy(t),a=n.keyFields,o=n.fields;function u(l,f){l.merge=typeof f=="function"?f:f===!0?jy:f===!1?$y:l.merge}u(i,n.merge),i.keyFn=a===!1?pO:Zt(a)?Ny(a):typeof a=="function"?a:i.keyFn,o&&Object.keys(o).forEach(function(l){var f=r.getFieldPolicy(t,l,!0),d=o[l];if(typeof d=="function")f.read=d;else{var h=d.keyArgs,p=d.read,m=d.merge;f.keyFn=h===!1?My:Zt(h)?Iy(h):typeof h=="function"?h:f.keyFn,typeof p=="function"&&(f.read=p),u(f,m)}f.read&&f.merge&&(f.keyFn=f.keyFn||My)})},e.prototype.setRootTypename=function(t,n){n===void 0&&(n=t);var r="ROOT_"+t.toUpperCase(),i=this.rootTypenamesById[r];n!==i&&(Ce(!i||i===t,6,t),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[n]=r,this.rootTypenamesById[r]=n)},e.prototype.addPossibleTypes=function(t){var n=this;this.usingPossibleTypes=!0,Object.keys(t).forEach(function(r){n.getSupertypeSet(r,!0),t[r].forEach(function(i){n.getSupertypeSet(i,!0).add(r);var a=i.match(Ey);(!a||a[0]!==i)&&n.fuzzySubtypes.set(i,new RegExp(i))})})},e.prototype.getTypePolicy=function(t){var n=this;if(!hn.call(this.typePolicies,t)){var r=this.typePolicies[t]=Object.create(null);r.fields=Object.create(null);var i=this.supertypeMap.get(t);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(t,!0),this.fuzzySubtypes.forEach(function(o,u){if(o.test(t)){var l=n.supertypeMap.get(u);l&&l.forEach(function(f){return i.add(f)})}})),i&&i.size&&i.forEach(function(o){var u=n.getTypePolicy(o),l=u.fields,f=br(u,["fields"]);Object.assign(r,f),Object.assign(r.fields,l)})}var a=this.toBeAdded[t];return a&&a.length&&a.splice(0).forEach(function(o){n.updateTypePolicy(t,o)}),this.typePolicies[t]},e.prototype.getFieldPolicy=function(t,n,r){if(t){var i=this.getTypePolicy(t).fields;return i[n]||r&&(i[n]=Object.create(null))}},e.prototype.getSupertypeSet=function(t,n){var r=this.supertypeMap.get(t);return!r&&n&&this.supertypeMap.set(t,r=new Set),r},e.prototype.fragmentMatches=function(t,n,r,i){var a=this;if(!t.typeCondition)return!0;if(!n)return!1;var o=t.typeCondition.name.value;if(n===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var u=this.getSupertypeSet(n,!0),l=[u],f=function(y){var g=a.getSupertypeSet(y,!1);g&&g.size&&l.indexOf(g)<0&&l.push(g)},d=!!(r&&this.fuzzySubtypes.size),h=!1,p=0;p<l.length;++p){var m=l[p];if(m.has(o))return u.has(o)||(h&&globalThis.__DEV__!==!1&&Ce.warn(7,n,o),u.add(o)),!0;m.forEach(f),d&&p===l.length-1&&Xd(t.selectionSet,r,i)&&(d=!1,h=!0,this.fuzzySubtypes.forEach(function(y,g){var b=n.match(y);b&&b[0]===n&&f(g)}))}return!1},e.prototype.hasKeyArgs=function(t,n){var r=this.getFieldPolicy(t,n,!1);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(t){var n=t.typename,r=t.fieldName,i=this.getFieldPolicy(n,r,!1),a,o=i&&i.keyFn;if(o&&n)for(var u={typename:n,fieldName:r,field:t.field||null,variables:t.variables},l=rh(t);o;){var f=o(l,u);if(Zt(f))o=Iy(f);else{a=f||r;break}}return a===void 0&&(a=t.field?FT(t.field,t.variables):h0(r,rh(t))),a===!1?r:r===Gi(a)?a:r+":"+a},e.prototype.readField=function(t,n){var r=t.from;if(r){var i=t.field||t.fieldName;if(i){if(t.typename===void 0){var a=n.store.getFieldValue(r,"__typename");a&&(t.typename=a)}var o=this.getStoreFieldName(t),u=Gi(o),l=n.store.getFieldValue(r,o),f=this.getFieldPolicy(t.typename,u,!1),d=f&&f.read;if(d){var h=Vy(this,r,t,n,n.store.getStorage(bt(r)?r.__ref:r,o));return eh.withValue(this.cache,d,[l,h])}return l}}},e.prototype.getReadFunction=function(t,n){var r=this.getFieldPolicy(t,n,!1);return r&&r.read},e.prototype.getMergeFunction=function(t,n,r){var i=this.getFieldPolicy(t,n,!1),a=i&&i.merge;return!a&&r&&(i=this.getTypePolicy(r),a=i&&i.merge),a},e.prototype.runMergeFunction=function(t,n,r,i,a){var o=r.field,u=r.typename,l=r.merge;return l===jy?qy(i.store)(t,n):l===$y?n:(i.overwrite&&(t=void 0),l(t,n,Vy(this,void 0,{typename:u,fieldName:o.name.value,field:o,variables:i.variables},i,a||Object.create(null))))},e}();function Vy(e,t,n,r,i){var a=e.getStoreFieldName(n),o=Gi(a),u=n.variables||r.variables,l=r.store,f=l.toReference,d=l.canRead;return{args:rh(n),field:n.field||null,fieldName:o,storeFieldName:a,variables:u,isReference:bt,toReference:f,storage:i,cache:e.cache,canRead:d,readField:function(){return e.readField(ih(arguments,t,u),r)},mergeObjects:qy(r.store)}}function ih(e,t,n){var r=e[0],i=e[1],a=e.length,o;return typeof r=="string"?o={fieldName:r,from:a>1?i:t}:(o=X({},r),hn.call(o,"from")||(o.from=t)),globalThis.__DEV__!==!1&&o.from===void 0&&globalThis.__DEV__!==!1&&Ce.warn(8,K1(Array.from(e))),o.variables===void 0&&(o.variables=n),o}function qy(e){return function(n,r){if(Zt(n)||Zt(r))throw Fn(9);if(qt(n)&&qt(r)){var i=e.getFieldValue(n,"__typename"),a=e.getFieldValue(r,"__typename"),o=i&&a&&i!==a;if(o)return r;if(bt(n)&&Co(r))return e.merge(n.__ref,r),n;if(Co(n)&&bt(r))return e.merge(n,r.__ref),r;if(Co(n)&&Co(r))return X(X({},n),r)}return r}}function ah(e,t,n){var r="".concat(t).concat(n),i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:X(X({},e),{clientOnly:t,deferred:n})),i}var mO=function(){function e(t,n,r){this.cache=t,this.reader=n,this.fragments=r}return e.prototype.writeToStore=function(t,n){var r=this,i=n.query,a=n.result,o=n.dataId,u=n.variables,l=n.overwrite,f=Ca(i),d=iO();u=X(X({},kd(f)),u);var h=X(X({store:t,written:Object.create(null),merge:function(m,y){return d.merge(m,y)},variables:u,varString:Ui(u)},Sy(i,this.fragments)),{overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),p=this.processSelectionSet({result:a||Object.create(null),dataId:o,selectionSet:f.selectionSet,mergeTree:{map:new Map},context:h});if(!bt(p))throw Fn(12,a);return h.incomingById.forEach(function(m,y){var g=m.storeObject,b=m.mergeTree,w=m.fieldNodeSet,S=po(y);if(b&&b.map.size){var C=r.applyMerges(b,S,g,h);if(bt(C))return;g=C}if(globalThis.__DEV__!==!1&&!h.overwrite){var T=Object.create(null);w.forEach(function(k){k.selectionSet&&(T[k.name.value]=!0)});var _=function(k){return T[Gi(k)]===!0},x=function(k){var A=b&&b.map.get(k);return!!(A&&A.info&&A.info.merge)};Object.keys(g).forEach(function(k){_(k)&&!x(k)&&gO(S,g,k,h.store)})}t.merge(y,g)}),t.retain(p.__ref),p},e.prototype.processSelectionSet=function(t){var n=this,r=t.dataId,i=t.result,a=t.selectionSet,o=t.context,u=t.mergeTree,l=this.cache.policies,f=Object.create(null),d=r&&l.rootTypenamesById[r]||Od(i,a,o.fragmentMap)||r&&o.store.get(r,"__typename");typeof d=="string"&&(f.__typename=d);var h=function(){var C=ih(arguments,f,o.variables);if(bt(C.from)){var T=o.incomingById.get(C.from.__ref);if(T){var _=l.readField(X(X({},C),{from:T.storeObject}),o);if(_!==void 0)return _}}return l.readField(C,o)},p=new Set;this.flattenFields(a,i,o,d).forEach(function(C,T){var _,x=Ei(T),k=i[x];if(p.add(T),k!==void 0){var A=l.getStoreFieldName({typename:d,fieldName:T.name.value,field:T,variables:C.variables}),L=zy(u,A),N=n.processFieldValue(k,T,T.selectionSet?ah(C,!1,!1):C,L),F=void 0;T.selectionSet&&(bt(N)||Co(N))&&(F=h("__typename",N));var H=l.getMergeFunction(d,T.name.value,F);H?L.info={field:T,typename:d,merge:H}:Hy(u,A),f=C.merge(f,(_={},_[A]=N,_))}else globalThis.__DEV__!==!1&&!C.clientOnly&&!C.deferred&&!Ld.added(T)&&!l.getReadFunction(d,T.name.value)&&globalThis.__DEV__!==!1&&Ce.error(13,Ei(T),i)});try{var m=l.identify(i,{typename:d,selectionSet:a,fragmentMap:o.fragmentMap,storeObject:f,readField:h}),y=m[0],g=m[1];r=r||y,g&&(f=o.merge(f,g))}catch(C){if(!r)throw C}if(typeof r=="string"){var b=po(r),w=o.written[r]||(o.written[r]=[]);if(w.indexOf(a)>=0||(w.push(a),this.reader&&this.reader.isFresh(i,b,a,o)))return b;var S=o.incomingById.get(r);return S?(S.storeObject=o.merge(S.storeObject,f),S.mergeTree=oh(S.mergeTree,u),p.forEach(function(C){return S.fieldNodeSet.add(C)})):o.incomingById.set(r,{storeObject:f,mergeTree:kl(u)?void 0:u,fieldNodeSet:p}),b}return f},e.prototype.processFieldValue=function(t,n,r,i){var a=this;return!n.selectionSet||t===null?globalThis.__DEV__!==!1?W0(t):t:Zt(t)?t.map(function(o,u){var l=a.processFieldValue(o,n,r,zy(i,u));return Hy(i,u),l}):this.processSelectionSet({result:t,selectionSet:n.selectionSet,context:r,mergeTree:i})},e.prototype.flattenFields=function(t,n,r,i){i===void 0&&(i=Od(n,t,r.fragmentMap));var a=new Map,o=this.cache.policies,u=new wi(!1);return function l(f,d){var h=u.lookup(f,d.clientOnly,d.deferred);h.visited||(h.visited=!0,f.selections.forEach(function(p){if(Fs(p,r.variables)){var m=d.clientOnly,y=d.deferred;if(!(m&&y)&&_r(p.directives)&&p.directives.forEach(function(w){var S=w.name.value;if(S==="client"&&(m=!0),S==="defer"){var C=gl(w,r.variables);(!C||C.if!==!1)&&(y=!0)}}),zi(p)){var g=a.get(p);g&&(m=m&&g.clientOnly,y=y&&g.deferred),a.set(p,ah(r,m,y))}else{var b=vl(p,r.lookupFragment);if(!b&&p.kind===Mt.FRAGMENT_SPREAD)throw Fn(14,p.name.value);b&&o.fragmentMatches(b,i,n,r.variables)&&l(b.selectionSet,ah(r,m,y))}}}))}(t,r),a},e.prototype.applyMerges=function(t,n,r,i,a){var o,u=this;if(t.map.size&&!bt(r)){var l=!Zt(r)&&(bt(n)||Co(n))?n:void 0,f=r;l&&!a&&(a=[bt(l)?l.__ref:l]);var d,h=function(p,m){return Zt(p)?typeof m=="number"?p[m]:void 0:i.store.getFieldValue(p,String(m))};t.map.forEach(function(p,m){var y=h(l,m),g=h(f,m);if(g!==void 0){a&&a.push(m);var b=u.applyMerges(p,y,g,i,a);b!==g&&(d=d||new Map,d.set(m,b)),a&&Ce(a.pop()===m)}}),d&&(r=Zt(f)?f.slice(0):X({},f),d.forEach(function(p,m){r[m]=p}))}return t.info?this.cache.policies.runMergeFunction(n,r,t.info,i,a&&(o=i.store).getStorage.apply(o,a)):r},e}(),Uy=[];function zy(e,t){var n=e.map;return n.has(t)||n.set(t,Uy.pop()||{map:new Map}),n.get(t)}function oh(e,t){if(e===t||!t||kl(t))return e;if(!e||kl(e))return t;var n=e.info&&t.info?X(X({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,i=r?new Map:e.map.size?e.map:t.map,a={info:n,map:i};if(r){var o=new Set(t.map.keys());e.map.forEach(function(u,l){a.map.set(l,oh(u,t.map.get(l))),o.delete(l)}),o.forEach(function(u){a.map.set(u,oh(t.map.get(u),e.map.get(u)))})}return a}function kl(e){return!e||!(e.info||e.map.size)}function Hy(e,t){var n=e.map,r=n.get(t);r&&kl(r)&&(Uy.push(r),n.delete(t))}var By=new Set;function gO(e,t,n,r){var i=function(h){var p=r.getFieldValue(h,n);return typeof p=="object"&&p},a=i(e);if(a){var o=i(t);if(o&&!bt(a)&&!dt(a,o)&&!Object.keys(a).every(function(h){return r.getFieldValue(o,h)!==void 0})){var u=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),l=Gi(n),f="".concat(u,".").concat(l);if(!By.has(f)){By.add(f);var d=[];!Zt(a)&&!Zt(o)&&[a,o].forEach(function(h){var p=r.getFieldValue(h,"__typename");typeof p=="string"&&!d.includes(p)&&d.push(p)}),globalThis.__DEV__!==!1&&Ce.warn(15,l,u,d.length?"either ensure all objects of type "+d.join(" and ")+" have an ID or a custom merge function, or ":"",f,X({},a),X({},o))}}}}var Wy=function(e){yr(t,e);function t(n){n===void 0&&(n={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new N0(Ld),r.assumeImmutableResults=!0,r.makeVar=dO,r.txCount=0,r.config=nO(n),r.addTypename=!!r.config.addTypename,r.policies=new vO({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return t.prototype.init=function(){var n=this.data=new Qs.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=n.stump,this.resetResultCache()},t.prototype.resetResultCache=function(n){var r=this,i=this.storeReader,a=this.config.fragments;this.storeWriter=new mO(this,this.storeReader=new uO({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:wy(this.config),canon:n?void 0:i&&i.canon,fragments:a}),a),this.maybeBroadcastWatch=qs(function(o,u){return r.broadcastWatch(o,u)},{max:this.config.resultCacheMaxSize||ti["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(o){var u=o.optimistic?r.optimisticData:r.data;if(Ys(u)){var l=o.optimistic,f=o.id,d=o.variables;return u.makeCacheKey(o.query,o.callback,Ui({optimistic:l,id:f,variables:d}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(o){return o.resetCaching()})},t.prototype.restore=function(n){return this.init(),n&&this.data.replace(n),this},t.prototype.extract=function(n){return n===void 0&&(n=!1),(n?this.optimisticData:this.data).extract()},t.prototype.read=function(n){var r=n.returnPartialData,i=r===void 0?!1:r;try{return this.storeReader.diffQueryAgainstStore(X(X({},n),{store:n.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:i})).result||null}catch(a){if(a instanceof yy)return null;throw a}},t.prototype.write=function(n){try{return++this.txCount,this.storeWriter.writeToStore(this.data,n)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.modify=function(n){if(hn.call(n,"id")&&!n.id)return!1;var r=n.optimistic?this.optimisticData:this.data;try{return++this.txCount,r.modify(n.id||"ROOT_QUERY",n.fields)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.diff=function(n){return this.storeReader.diffQueryAgainstStore(X(X({},n),{store:n.optimistic?this.optimisticData:this.data,rootId:n.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(n){var r=this;return this.watches.size||fO(this),this.watches.add(n),n.immediate&&this.maybeBroadcastWatch(n),function(){r.watches.delete(n)&&!r.watches.size&&Ay(r),r.maybeBroadcastWatch.forget(n)}},t.prototype.gc=function(n){var r;Ui.reset(),Bi.reset(),this.addTypenameTransform.resetCache(),(r=this.config.fragments)===null||r===void 0||r.resetCaches();var i=this.optimisticData.gc();return n&&!this.txCount&&(n.resetResultCache?this.resetResultCache(n.resetResultIdentities):n.resetResultIdentities&&this.storeReader.resetCanon()),i},t.prototype.retain=function(n,r){return(r?this.optimisticData:this.data).retain(n)},t.prototype.release=function(n,r){return(r?this.optimisticData:this.data).release(n)},t.prototype.identify=function(n){if(bt(n))return n.__ref;try{return this.policies.identify(n)[0]}catch(r){globalThis.__DEV__!==!1&&Ce.warn(r)}},t.prototype.evict=function(n){if(!n.id){if(hn.call(n,"id"))return!1;n=X(X({},n),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(n,this.data)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.reset=function(n){var r=this;return this.init(),Ui.reset(),n&&n.discardWatches?(this.watches.forEach(function(i){return r.maybeBroadcastWatch.forget(i)}),this.watches.clear(),Ay(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(n){var r=this.optimisticData.removeLayer(n);r!==this.optimisticData&&(this.optimisticData=r,this.broadcastWatches())},t.prototype.batch=function(n){var r=this,i=n.update,a=n.optimistic,o=a===void 0?!0:a,u=n.removeOptimistic,l=n.onWatchUpdated,f,d=function(p){var m=r,y=m.data,g=m.optimisticData;++r.txCount,p&&(r.data=r.optimisticData=p);try{return f=i(r)}finally{--r.txCount,r.data=y,r.optimisticData=g}},h=new Set;return l&&!this.txCount&&this.broadcastWatches(X(X({},n),{onWatchUpdated:function(p){return h.add(p),!1}})),typeof o=="string"?this.optimisticData=this.optimisticData.addLayer(o,d):o===!1?d(this.data):d(),typeof u=="string"&&(this.optimisticData=this.optimisticData.removeLayer(u)),l&&h.size?(this.broadcastWatches(X(X({},n),{onWatchUpdated:function(p,m){var y=l.call(this,p,m);return y!==!1&&h.delete(p),y}})),h.size&&h.forEach(function(p){return r.maybeBroadcastWatch.dirty(p)})):this.broadcastWatches(n),f},t.prototype.performTransaction=function(n,r){return this.batch({update:n,optimistic:r||r!==null})},t.prototype.transformDocument=function(n){return this.addTypenameToDocument(this.addFragmentsToDocument(n))},t.prototype.fragmentMatches=function(n,r){return this.policies.fragmentMatches(n,r)},t.prototype.lookupFragment=function(n){var r;return((r=this.config.fragments)===null||r===void 0?void 0:r.lookup(n))||null},t.prototype.broadcastWatches=function(n){var r=this;this.txCount||this.watches.forEach(function(i){return r.maybeBroadcastWatch(i,n)})},t.prototype.addFragmentsToDocument=function(n){var r=this.config.fragments;return r?r.transform(n):n},t.prototype.addTypenameToDocument=function(n){return this.addTypename?this.addTypenameTransform.transformDocument(n):n},t.prototype.broadcastWatch=function(n,r){var i=n.lastDiff,a=this.diff(n);r&&(n.optimistic&&typeof r.optimistic=="string"&&(a.fromOptimisticTransaction=!0),r.onWatchUpdated&&r.onWatchUpdated.call(this,n,a,i)===!1)||(!i||!dt(i.result,a.result))&&n.callback(n.lastDiff=a,i)},t}(gy);globalThis.__DEV__!==!1&&(Wy.prototype.getMemoryInternals=gT);var ct;(function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"})(ct||(ct={}));function Oo(e){return e?e<7:!1}var Gy=Object.assign,yO=Object.hasOwnProperty,Xs=function(e){yr(t,e);function t(n){var r=n.queryManager,i=n.queryInfo,a=n.options,o=this,u=t.inactiveOnCreation.getValue();o=e.call(this,function(w){u&&(r.queries.set(o.queryId,i),u=!1);try{var S=w._subscription._observer;S&&!S.error&&(S.error=bO)}catch{}var C=!o.observers.size;o.observers.add(w);var T=o.last;return T&&T.error?w.error&&w.error(T.error):T&&T.result&&w.next&&w.next(o.maskResult(T.result)),C&&o.reobserve().catch(function(){}),function(){o.observers.delete(w)&&!o.observers.size&&o.tearDownQuery()}})||this,o.observers=new Set,o.subscriptions=new Set,o.dirty=!1,o.queryInfo=i,o.queryManager=r,o.waitForOwnResult=sh(a.fetchPolicy),o.isTornDown=!1,o.subscribeToMore=o.subscribeToMore.bind(o),o.maskResult=o.maskResult.bind(o);var l=r.defaultOptions.watchQuery,f=l===void 0?{}:l,d=f.fetchPolicy,h=d===void 0?"cache-first":d,p=a.fetchPolicy,m=p===void 0?h:p,y=a.initialFetchPolicy,g=y===void 0?m==="standby"?h:m:y;o.options=X(X({},a),{initialFetchPolicy:g,fetchPolicy:m}),o.queryId=i.queryId||r.generateQueryId();var b=Ca(o.query);return o.queryName=b&&b.name&&b.name.value,o}return Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var n=this;return new Promise(function(r,i){var a={next:function(u){r(u),n.observers.delete(a),n.observers.size||n.queryManager.removeQuery(n.queryId),setTimeout(function(){o.unsubscribe()},0)},error:i},o=n.subscribe(a)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentFullResult=function(n){n===void 0&&(n=!0);var r=this.getLastResult(!0),i=this.queryInfo.networkStatus||r&&r.networkStatus||ct.ready,a=X(X({},r),{loading:Oo(i),networkStatus:i}),o=this.options.fetchPolicy,u=o===void 0?"cache-first":o;if(!(sh(u)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var l=this.queryInfo.getDiff();(l.complete||this.options.returnPartialData)&&(a.data=l.result),dt(a.data,{})&&(a.data=void 0),l.complete?(delete a.partial,l.complete&&a.networkStatus===ct.loading&&(u==="cache-first"||u==="cache-only")&&(a.networkStatus=ct.ready,a.loading=!1)):a.partial=!0,a.networkStatus===ct.ready&&(a.error||a.errors)&&(a.networkStatus=ct.error),globalThis.__DEV__!==!1&&!l.complete&&!this.options.partialRefetch&&!a.loading&&!a.data&&!a.error&&Qy(l.missing)}return n&&this.updateLastResult(a),a},t.prototype.getCurrentResult=function(n){return n===void 0&&(n=!0),this.maskResult(this.getCurrentFullResult(n))},t.prototype.isDifferentFromLastResult=function(n,r){if(!this.last)return!0;var i=this.queryManager.getDocumentInfo(this.query),a=this.queryManager.dataMasking,o=a?i.nonReactiveQuery:this.query,u=a||i.hasNonreactiveDirective?!ly(o,this.last.result,n,this.variables):!dt(this.last.result,n);return u||r&&!dt(this.last.variables,r)},t.prototype.getLast=function(n,r){var i=this.last;if(i&&i[n]&&(!r||dt(i.variables,this.variables)))return i[n]},t.prototype.getLastResult=function(n){return this.getLast("result",n)},t.prototype.getLastError=function(n){return this.getLast("error",n)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(n){var r,i={pollInterval:0},a=this.options.fetchPolicy;if(a==="no-cache"?i.fetchPolicy="no-cache":i.fetchPolicy="network-only",globalThis.__DEV__!==!1&&n&&yO.call(n,"variables")){var o=p0(this.query),u=o.variableDefinitions;(!u||!u.some(function(l){return l.variable.name.value==="variables"}))&&globalThis.__DEV__!==!1&&Ce.warn(21,n,((r=o.name)===null||r===void 0?void 0:r.value)||o)}return n&&!dt(this.options.variables,n)&&(i.variables=this.options.variables=X(X({},this.options.variables),n)),this.queryInfo.resetLastWrite(),this.reobserve(i,ct.refetch)},t.prototype.fetchMore=function(n){var r=this,i=X(X({},n.query?n:X(X(X(X({},this.options),{query:this.options.query}),n),{variables:X(X({},this.options.variables),n.variables)})),{fetchPolicy:"no-cache"});i.query=this.transformDocument(i.query);var a=this.queryManager.generateQueryId();this.lastQuery=n.query?this.transformDocument(this.options.query):i.query;var o=this.queryInfo,u=o.networkStatus;o.networkStatus=ct.fetchMore,i.notifyOnNetworkStatusChange&&this.observe();var l=new Set,f=n==null?void 0:n.updateQuery,d=this.options.fetchPolicy!=="no-cache";return d||Ce(f,22),this.queryManager.fetchQuery(a,i,ct.fetchMore).then(function(h){if(r.queryManager.removeQuery(a),o.networkStatus===ct.fetchMore&&(o.networkStatus=u),d)r.queryManager.cache.batch({update:function(y){var g=n.updateQuery;g?y.updateQuery({query:r.query,variables:r.variables,returnPartialData:!0,optimistic:!1},function(b){return g(b,{fetchMoreResult:h.data,variables:i.variables})}):y.writeQuery({query:i.query,variables:i.variables,data:h.data})},onWatchUpdated:function(y){l.add(y.query)}});else{var p=r.getLast("result"),m=f(p.data,{fetchMoreResult:h.data,variables:i.variables});r.reportResult(X(X({},p),{networkStatus:u,loading:Oo(u),data:m}),r.variables)}return r.maskResult(h)}).finally(function(){d&&!l.has(r.query)&&r.reobserveCacheFirst()})},t.prototype.subscribeToMore=function(n){var r=this,i=this.queryManager.startGraphQLSubscription({query:n.document,variables:n.variables,context:n.context}).subscribe({next:function(a){var o=n.updateQuery;o&&r.updateQuery(function(u,l){return o(u,X({subscriptionData:a},l))})},error:function(a){if(n.onError){n.onError(a);return}globalThis.__DEV__!==!1&&Ce.error(23,a)}});return this.subscriptions.add(i),function(){r.subscriptions.delete(i)&&i.unsubscribe()}},t.prototype.setOptions=function(n){return this.reobserve(n)},t.prototype.silentSetOptions=function(n){var r=Ta(this.options,n||{});Gy(this.options,r)},t.prototype.setVariables=function(n){return dt(this.variables,n)?this.observers.size?this.result():Promise.resolve():(this.options.variables=n,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:n},ct.setVariables):Promise.resolve())},t.prototype.updateQuery=function(n){var r=this.queryManager,i=r.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),a=i.result,o=i.complete,u=n(a,{variables:this.variables,complete:!!o,previousData:a});u&&(r.cache.writeQuery({query:this.options.query,data:u,variables:this.variables}),r.broadcastQueries())},t.prototype.startPolling=function(n){this.options.pollInterval=n,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(n,r){if(r.nextFetchPolicy){var i=r.fetchPolicy,a=i===void 0?"cache-first":i,o=r.initialFetchPolicy,u=o===void 0?a:o;a==="standby"||(typeof r.nextFetchPolicy=="function"?r.fetchPolicy=r.nextFetchPolicy(a,{reason:n,options:r,observable:this,initialFetchPolicy:u}):n==="variables-changed"?r.fetchPolicy=u:r.fetchPolicy=r.nextFetchPolicy)}return r.fetchPolicy},t.prototype.fetch=function(n,r,i){var a=this.queryManager.getOrCreateQuery(this.queryId);return a.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(a,n,r,i)},t.prototype.updatePolling=function(){var n=this;if(!this.queryManager.ssrMode){var r=this,i=r.pollingInfo,a=r.options.pollInterval;if(!a||!this.hasObservers()){i&&(clearTimeout(i.timeout),delete this.pollingInfo);return}if(!(i&&i.interval===a)){Ce(a,24);var o=i||(this.pollingInfo={});o.interval=a;var u=function(){var f,d;n.pollingInfo&&(!Oo(n.queryInfo.networkStatus)&&!(!((d=(f=n.options).skipPollAttempt)===null||d===void 0)&&d.call(f))?n.reobserve({fetchPolicy:n.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},ct.poll).then(l,l):l())},l=function(){var f=n.pollingInfo;f&&(clearTimeout(f.timeout),f.timeout=setTimeout(u,f.interval))};l()}}},t.prototype.updateLastResult=function(n,r){r===void 0&&(r=this.variables);var i=this.getLastError();return i&&this.last&&!dt(r,this.last.variables)&&(i=void 0),this.last=X({result:this.queryManager.assumeImmutableResults?n:W0(n),variables:r},i?{error:i}:null)},t.prototype.reobserveAsConcast=function(n,r){var i=this;this.isTornDown=!1;var a=r===ct.refetch||r===ct.fetchMore||r===ct.poll,o=this.options.variables,u=this.options.fetchPolicy,l=Ta(this.options,n||{}),f=a?l:Gy(this.options,l),d=this.transformDocument(f.query);this.lastQuery=d,a||(this.updatePolling(),n&&n.variables&&!dt(n.variables,o)&&f.fetchPolicy!=="standby"&&(f.fetchPolicy===u||typeof f.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",f),r===void 0&&(r=ct.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=sh(f.fetchPolicy));var h=function(){i.concast===y&&(i.waitForOwnResult=!1)},p=f.variables&&X({},f.variables),m=this.fetch(f,r,d),y=m.concast,g=m.fromLink,b={next:function(w){dt(i.variables,p)&&(h(),i.reportResult(w,p))},error:function(w){dt(i.variables,p)&&(ey(w)||(w=new nr({networkError:w})),h(),i.reportError(w,p))}};return!a&&(g||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=y,this.observer=b),y.addObserver(b),y},t.prototype.reobserve=function(n,r){return l4(this.reobserveAsConcast(n,r).promise.then(this.maskResult))},t.prototype.resubscribeAfterError=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=this.last;this.resetLastResults();var a=this.subscribe.apply(this,n);return this.last=i,a},t.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},t.prototype.reportResult=function(n,r){var i=this.getLastError(),a=this.isDifferentFromLastResult(n,r);(i||!n.partial||this.options.returnPartialData)&&this.updateLastResult(n,r),(i||a)&&Hs(this.observers,"next",this.maskResult(n))},t.prototype.reportError=function(n,r){var i=X(X({},this.getLastResult()),{error:n,errors:n.graphQLErrors,networkStatus:ct.error,loading:!1});this.updateLastResult(i,r),Hs(this.observers,"error",this.last.error=n)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(n){return n.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(n){return this.queryManager.transform(n)},t.prototype.maskResult=function(n){return n&&"data"in n?X(X({},n),{data:this.queryManager.maskOperation({document:this.query,data:n.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):n},t.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},t.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},t.prototype.scheduleNotify=function(){var n=this;this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return n.notify()},0)))},t.prototype.notify=function(){if(this.cancelNotifyTimeout(),this.dirty&&(this.options.fetchPolicy=="cache-only"||this.options.fetchPolicy=="cache-and-network"||!Oo(this.queryInfo.networkStatus))){var n=this.queryInfo.getDiff();n.fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()}this.dirty=!1},t.prototype.reobserveCacheFirst=function(){var n=this.options,r=n.fetchPolicy,i=n.nextFetchPolicy;return r==="cache-and-network"||r==="network-only"?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(a,o){return this.nextFetchPolicy=i,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(a,o):r}}):this.reobserve()},t.inactiveOnCreation=new $s,t}(_t);G0(Xs);function bO(e){globalThis.__DEV__!==!1&&Ce.error(25,e.message,e.stack)}function Qy(e){globalThis.__DEV__!==!1&&e&&globalThis.__DEV__!==!1&&Ce.debug(26,e)}function sh(e){return e==="network-only"||e==="no-cache"||e==="standby"}var ko=new(Sa?WeakMap:Map);function uh(e,t){var n=e[t];typeof n=="function"&&(e[t]=function(){return ko.set(e,(ko.get(e)+1)%1e15),n.apply(this,arguments)})}var lh=function(){function e(t,n){n===void 0&&(n=t.generateQueryId()),this.queryId=n,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var r=this.cache=t.cache;ko.has(r)||(ko.set(r,0),uh(r,"evict"),uh(r,"modify"),uh(r,"reset"))}return e.prototype.init=function(t){var n=t.networkStatus||ct.loading;return this.variables&&this.networkStatus!==ct.loading&&!dt(this.variables,t.variables)&&(n=ct.setVariables),dt(t.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:t.document,variables:t.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:n}),t.observableQuery&&this.setObservableQuery(t.observableQuery),t.lastRequestId&&(this.lastRequestId=t.lastRequestId),this},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var t=this.getDiffOptions();if(this.lastDiff&&dt(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var n=this.observableQuery;if(n&&n.options.fetchPolicy==="no-cache")return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(t,n){this.lastDiff=t?{diff:t,options:n||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(t){var n;return t===void 0&&(t=this.variables),{query:this.document,variables:t,returnPartialData:!0,optimistic:!0,canonizeResults:(n=this.observableQuery)===null||n===void 0?void 0:n.options.canonizeResults}},e.prototype.setDiff=function(t){var n,r,i=this.lastDiff&&this.lastDiff.diff;t&&!t.complete&&(!((n=this.observableQuery)===null||n===void 0)&&n.getLastError())||(this.updateLastDiff(t),dt(i&&i.result,t&&t.result)||(r=this.observableQuery)===null||r===void 0||r.scheduleNotify())},e.prototype.setObservableQuery=function(t){t!==this.observableQuery&&(this.observableQuery=t,t&&(t.queryInfo=this))},e.prototype.stop=function(){var t;if(!this.stopped){this.stopped=!0,(t=this.observableQuery)===null||t===void 0||t.resetNotifications(),this.cancel();var n=this.observableQuery;n&&n.stopPolling()}},e.prototype.cancel=function(){var t;(t=this.cancelWatch)===null||t===void 0||t.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(t){var n=this;t===void 0&&(t=this.variables);var r=this.observableQuery;if(!(r&&r.options.fetchPolicy==="no-cache")){var i=X(X({},this.getDiffOptions(t)),{watcher:this,callback:function(a){return n.setDiff(a)}});(!this.lastWatch||!dt(i,this.lastWatch))&&(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(t,n){var r=this.lastWrite;return!(r&&r.dmCount===ko.get(this.cache)&&dt(n,r.variables)&&dt(t.data,r.result.data))},e.prototype.markResult=function(t,n,r,i){var a=this,o,u=new Wi,l=_r(t.errors)?t.errors.slice(0):[];if((o=this.observableQuery)===null||o===void 0||o.resetNotifications(),"incremental"in t&&_r(t.incremental)){var f=Y0(this.getDiff().result,t);t.data=f}else if("hasNext"in t&&t.hasNext){var d=this.getDiff();t.data=u.merge(d.result,t.data)}this.graphQLErrors=l,r.fetchPolicy==="no-cache"?this.updateLastDiff({result:t.data,complete:!0},this.getDiffOptions(r.variables)):i!==0&&(ch(t,r.errorPolicy)?this.cache.performTransaction(function(h){if(a.shouldWrite(t,r.variables))h.writeQuery({query:n,data:t.data,variables:r.variables,overwrite:i===1}),a.lastWrite={result:t,variables:r.variables,dmCount:ko.get(a.cache)};else if(a.lastDiff&&a.lastDiff.diff.complete){t.data=a.lastDiff.diff.result;return}var p=a.getDiffOptions(r.variables),m=h.diff(p);!a.stopped&&dt(a.variables,r.variables)&&a.updateWatch(r.variables),a.updateLastDiff(m,p),m.complete&&(t.data=m.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=ct.ready},e.prototype.markError=function(t){var n;return this.networkStatus=ct.error,this.lastWrite=void 0,(n=this.observableQuery)===null||n===void 0||n.resetNotifications(),t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},e}();function ch(e,t){t===void 0&&(t="none");var n=t==="ignore"||t==="all",r=!Sl(e);return!r&&n&&e.data&&(r=!0),r}var _O=Object.prototype.hasOwnProperty,Yy=Object.create(null),wO=function(){function e(t){var n=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new Sd(ti["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new wi(!1),this.noCacheWarningsByQueryId=new Set;var r=new N0(function(a){return n.cache.transformDocument(a)},{cache:!1});this.cache=t.cache,this.link=t.link,this.defaultOptions=t.defaultOptions,this.queryDeduplication=t.queryDeduplication,this.clientAwareness=t.clientAwareness,this.localState=t.localState,this.ssrMode=t.ssrMode,this.assumeImmutableResults=t.assumeImmutableResults,this.dataMasking=t.dataMasking;var i=t.documentTransform;this.documentTransform=i?r.concat(i).concat(r):r,this.defaultContext=t.defaultContext||Object.create(null),(this.onBroadcast=t.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var t=this;this.queries.forEach(function(n,r){t.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(Fn(27))},e.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(n){return n(t)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(t){return $i(this,arguments,void 0,function(n){var r,i,a,o,u,l,f,d=n.mutation,h=n.variables,p=n.optimisticResponse,m=n.updateQueries,y=n.refetchQueries,g=y===void 0?[]:y,b=n.awaitRefetchQueries,w=b===void 0?!1:b,S=n.update,C=n.onQueryUpdated,T=n.fetchPolicy,_=T===void 0?((l=this.defaultOptions.mutate)===null||l===void 0?void 0:l.fetchPolicy)||"network-only":T,x=n.errorPolicy,k=x===void 0?((f=this.defaultOptions.mutate)===null||f===void 0?void 0:f.errorPolicy)||"none":x,A=n.keepRootFields,L=n.context;return Vi(this,function(N){switch(N.label){case 0:return Ce(d,28),Ce(_==="network-only"||_==="no-cache",29),r=this.generateMutationId(),d=this.cache.transformForLink(this.transform(d)),i=this.getDocumentInfo(d).hasClientExports,h=this.getVariables(d,h),i?[4,this.localState.addExportedVariables(d,h,L)]:[3,2];case 1:h=N.sent(),N.label=2;case 2:return a=this.mutationStore&&(this.mutationStore[r]={mutation:d,variables:h,loading:!0,error:null}),o=p&&this.markMutationOptimistic(p,{mutationId:r,document:d,variables:h,fetchPolicy:_,errorPolicy:k,context:L,updateQueries:m,update:S,keepRootFields:A}),this.broadcastQueries(),u=this,[2,new Promise(function(F,H){return zd(u.getObservableFromLink(d,X(X({},L),{optimisticResponse:o?p:void 0}),h,{},!1),function(V){if(Sl(V)&&k==="none")throw new nr({graphQLErrors:Hd(V)});a&&(a.loading=!1,a.error=null);var D=X({},V);return typeof g=="function"&&(g=g(D)),k==="ignore"&&Sl(D)&&delete D.errors,u.markMutationResult({mutationId:r,result:D,document:d,variables:h,fetchPolicy:_,errorPolicy:k,context:L,update:S,updateQueries:m,awaitRefetchQueries:w,refetchQueries:g,removeOptimistic:o?r:void 0,onQueryUpdated:C,keepRootFields:A})}).subscribe({next:function(V){u.broadcastQueries(),(!("hasNext"in V)||V.hasNext===!1)&&F(X(X({},V),{data:u.maskOperation({document:d,data:V.data,fetchPolicy:_,id:r})}))},error:function(V){a&&(a.loading=!1,a.error=V),o&&u.cache.removeOptimistic(r),u.broadcastQueries(),H(V instanceof nr?V:new nr({networkError:V}))}})})]}})})},e.prototype.markMutationResult=function(t,n){var r=this;n===void 0&&(n=this.cache);var i=t.result,a=[],o=t.fetchPolicy==="no-cache";if(!o&&ch(i,t.errorPolicy)){if(xo(i)||a.push({result:i.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}),xo(i)&&_r(i.incremental)){var u=n.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}),l=void 0;u.result&&(l=Y0(u.result,i)),typeof l<"u"&&(i.data=l,a.push({result:l,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}))}var f=t.updateQueries;f&&this.queries.forEach(function(h,p){var m=h.observableQuery,y=m&&m.queryName;if(!(!y||!_O.call(f,y))){var g=f[y],b=r.queries.get(p),w=b.document,S=b.variables,C=n.diff({query:w,variables:S,returnPartialData:!0,optimistic:!1}),T=C.result,_=C.complete;if(_&&T){var x=g(T,{mutationResult:i,queryName:w&&js(w)||void 0,queryVariables:S});x&&a.push({result:x,dataId:"ROOT_QUERY",query:w,variables:S})}}})}if(a.length>0||(t.refetchQueries||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){var d=[];if(this.refetchQueries({updateCache:function(h){o||a.forEach(function(g){return h.write(g)});var p=t.update,m=!p4(i)||xo(i)&&!i.hasNext;if(p){if(!o){var y=h.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});y.complete&&(i=X(X({},i),{data:y.result}),"incremental"in i&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}m&&p(h,i,{context:t.context,variables:t.variables})}!o&&!t.keepRootFields&&m&&h.modify({id:"ROOT_MUTATION",fields:function(g,b){var w=b.fieldName,S=b.DELETE;return w==="__typename"?g:S}})},include:t.refetchQueries,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(function(h){return d.push(h)}),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(d).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(t,n){var r=this,i=typeof t=="function"?t(n.variables,{IGNORE:Yy}):t;return i===Yy?!1:(this.cache.recordOptimisticTransaction(function(a){try{r.markMutationResult(X(X({},n),{result:{data:i}}),a)}catch(o){globalThis.__DEV__!==!1&&Ce.error(o)}},n.mutationId),!0)},e.prototype.fetchQuery=function(t,n,r){return this.fetchConcastWithInfo(this.getOrCreateQuery(t),n,r).concast.promise},e.prototype.getQueryStore=function(){var t=Object.create(null);return this.queries.forEach(function(n,r){t[r]={variables:n.variables,networkStatus:n.networkStatus,networkError:n.networkError,graphQLErrors:n.graphQLErrors}}),t},e.prototype.resetErrors=function(t){var n=this.queries.get(t);n&&(n.networkError=void 0,n.graphQLErrors=[])},e.prototype.transform=function(t){return this.documentTransform.transformDocument(t)},e.prototype.getDocumentInfo=function(t){var n=this.transformCache;if(!n.has(t)){var r={hasClientExports:K6(t),hasForcedResolvers:this.localState.shouldForceResolvers(t),hasNonreactiveDirective:Ds(["nonreactive"],t),nonReactiveQuery:ZT(t),clientQuery:this.localState.clientQuery(t),serverQuery:D0([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],t),defaultVars:kd(Ca(t)),asQuery:X(X({},t),{definitions:t.definitions.map(function(i){return i.kind==="OperationDefinition"&&i.operation!=="query"?X(X({},i),{operation:"query"}):i})})};n.set(t,r)}return n.get(t)},e.prototype.getVariables=function(t,n){return X(X({},this.getDocumentInfo(t).defaultVars),n)},e.prototype.watchQuery=function(t){var n=this.transform(t.query);t=X(X({},t),{variables:this.getVariables(n,t.variables)}),typeof t.notifyOnNetworkStatusChange>"u"&&(t.notifyOnNetworkStatusChange=!1);var r=new lh(this),i=new Xs({queryManager:this,queryInfo:r,options:t});return i.lastQuery=n,Xs.inactiveOnCreation.getValue()||this.queries.set(i.queryId,r),r.init({document:n,observableQuery:i,variables:i.variables}),i},e.prototype.query=function(t,n){var r=this;n===void 0&&(n=this.generateQueryId()),Ce(t.query,30),Ce(t.query.kind==="Document",31),Ce(!t.returnPartialData,32),Ce(!t.pollInterval,33);var i=this.transform(t.query);return this.fetchQuery(n,X(X({},t),{query:i})).then(function(a){return a&&X(X({},a),{data:r.maskOperation({document:i,data:a.data,fetchPolicy:t.fetchPolicy,id:n})})}).finally(function(){return r.stopQuery(n)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(t){var n=this.queries.get(t);n&&n.stop()},e.prototype.clearStore=function(t){return t===void 0&&(t={discardWatches:!0}),this.cancelPendingFetches(Fn(34)),this.queries.forEach(function(n){n.observableQuery?n.networkStatus=ct.loading:n.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(t)},e.prototype.getObservableQueries=function(t){var n=this;t===void 0&&(t="active");var r=new Map,i=new Map,a=new Map,o=new Set;return Array.isArray(t)&&t.forEach(function(u){if(typeof u=="string")i.set(u,u),a.set(u,!1);else if(CT(u)){var l=Bi(n.transform(u));i.set(l,js(u)),a.set(l,!1)}else qt(u)&&u.query&&o.add(u)}),this.queries.forEach(function(u,l){var f=u.observableQuery,d=u.document;if(f){if(t==="all"){r.set(l,f);return}var h=f.queryName,p=f.options.fetchPolicy;if(p==="standby"||t==="active"&&!f.hasObservers())return;(t==="active"||h&&a.has(h)||d&&a.has(Bi(d)))&&(r.set(l,f),h&&a.set(h,!0),d&&a.set(Bi(d),!0))}}),o.size&&o.forEach(function(u){var l=vd("legacyOneTimeQuery"),f=n.getOrCreateQuery(l).init({document:u.query,variables:u.variables}),d=new Xs({queryManager:n,queryInfo:f,options:X(X({},u),{fetchPolicy:"network-only"})});Ce(d.queryId===l),f.setObservableQuery(d),r.set(l,d)}),globalThis.__DEV__!==!1&&a.size&&a.forEach(function(u,l){if(!u){var f=i.get(l);f?globalThis.__DEV__!==!1&&Ce.warn(35,f):globalThis.__DEV__!==!1&&Ce.warn(36)}}),r},e.prototype.reFetchObservableQueries=function(t){var n=this;t===void 0&&(t=!1);var r=[];return this.getObservableQueries(t?"all":"active").forEach(function(i,a){var o=i.options.fetchPolicy;i.resetLastResults(),(t||o!=="standby"&&o!=="cache-only")&&r.push(i.refetch()),(n.queries.get(a)||i.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.startGraphQLSubscription=function(t){var n=this,r=t.query,i=t.variables,a=t.fetchPolicy,o=t.errorPolicy,u=o===void 0?"none":o,l=t.context,f=l===void 0?{}:l,d=t.extensions,h=d===void 0?{}:d;r=this.transform(r),i=this.getVariables(r,i);var p=function(y){return n.getObservableFromLink(r,f,y,h).map(function(g){a!=="no-cache"&&(ch(g,u)&&n.cache.write({query:r,result:g.data,dataId:"ROOT_SUBSCRIPTION",variables:y}),n.broadcastQueries());var b=Sl(g),w=J0(g);if(b||w){var S={};if(b&&(S.graphQLErrors=g.errors),w&&(S.protocolErrors=g.extensions[Cl]),u==="none"||w)throw new nr(S)}return u==="ignore"&&delete g.errors,g})};if(this.getDocumentInfo(r).hasClientExports){var m=this.localState.addExportedVariables(r,i,f).then(p);return new _t(function(y){var g=null;return m.then(function(b){return g=b.subscribe(y)},y.error),function(){return g&&g.unsubscribe()}})}return p(i)},e.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},e.prototype.removeQuery=function(t){var n;this.fetchCancelFns.delete(t),this.queries.has(t)&&((n=this.queries.get(t))===null||n===void 0||n.stop(),this.queries.delete(t))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(t){var n;return(n=t.observableQuery)===null||n===void 0?void 0:n.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(t,n,r,i,a){var o=this,u;a===void 0&&(a=(u=n==null?void 0:n.queryDeduplication)!==null&&u!==void 0?u:this.queryDeduplication);var l,f=this.getDocumentInfo(t),d=f.serverQuery,h=f.clientQuery;if(d){var p=this,m=p.inFlightLinkObservables,y=p.link,g={query:d,variables:r,operationName:js(d)||void 0,context:this.prepareContext(X(X({},n),{forceFetch:!a})),extensions:i};if(n=g.context,a){var b=Bi(d),w=Ui(r),S=m.lookup(b,w);if(l=S.observable,!l){var C=new So([Wd(y,g)]);l=S.observable=C,C.beforeNext(function T(_,x){_==="next"&&"hasNext"in x&&x.hasNext?C.beforeNext(T):m.remove(b,w)})}}else l=new So([Wd(y,g)])}else l=new So([_t.of({data:{}})]),n=this.prepareContext(n);return h&&(l=zd(l,function(T){return o.localState.runResolvers({document:h,remoteResult:T,context:n,variables:r})})),l},e.prototype.getResultsFromLink=function(t,n,r){var i=t.lastRequestId=this.generateRequestId(),a=this.cache.transformForLink(r.query);return zd(this.getObservableFromLink(a,r.context,r.variables),function(o){var u=Hd(o),l=u.length>0,f=r.errorPolicy;if(i>=t.lastRequestId){if(l&&f==="none")throw t.markError(new nr({graphQLErrors:u}));t.markResult(o,a,r,n),t.markReady()}var d={data:o.data,loading:!1,networkStatus:ct.ready};return l&&f==="none"&&(d.data=void 0),l&&f!=="ignore"&&(d.errors=u,d.networkStatus=ct.error),d},function(o){var u=ey(o)?o:new nr({networkError:o});throw i>=t.lastRequestId&&t.markError(u),u})},e.prototype.fetchConcastWithInfo=function(t,n,r,i){var a=this;r===void 0&&(r=ct.loading),i===void 0&&(i=n.query);var o=this.getVariables(i,n.variables),u=this.defaultOptions.watchQuery,l=n.fetchPolicy,f=l===void 0?u&&u.fetchPolicy||"cache-first":l,d=n.errorPolicy,h=d===void 0?u&&u.errorPolicy||"none":d,p=n.returnPartialData,m=p===void 0?!1:p,y=n.notifyOnNetworkStatusChange,g=y===void 0?!1:y,b=n.context,w=b===void 0?{}:b,S=Object.assign({},n,{query:i,variables:o,fetchPolicy:f,errorPolicy:h,returnPartialData:m,notifyOnNetworkStatusChange:g,context:w}),C=function(A){S.variables=A;var L=a.fetchQueryByPolicy(t,S,r);return S.fetchPolicy!=="standby"&&L.sources.length>0&&t.observableQuery&&t.observableQuery.applyNextFetchPolicy("after-fetch",n),L},T=function(){return a.fetchCancelFns.delete(t.queryId)};this.fetchCancelFns.set(t.queryId,function(A){T(),setTimeout(function(){return _.cancel(A)})});var _,x;if(this.getDocumentInfo(S.query).hasClientExports)_=new So(this.localState.addExportedVariables(S.query,S.variables,S.context).then(C).then(function(A){return A.sources})),x=!0;else{var k=C(S.variables);x=k.fromLink,_=new So(k.sources)}return _.promise.then(T,T),{concast:_,fromLink:x}},e.prototype.refetchQueries=function(t){var n=this,r=t.updateCache,i=t.include,a=t.optimistic,o=a===void 0?!1:a,u=t.removeOptimistic,l=u===void 0?o?vd("refetchQueries"):void 0:u,f=t.onQueryUpdated,d=new Map;i&&this.getObservableQueries(i).forEach(function(p,m){d.set(m,{oq:p,lastDiff:(n.queries.get(m)||p.queryInfo).getDiff()})});var h=new Map;return r&&this.cache.batch({update:r,optimistic:o&&l||!1,removeOptimistic:l,onWatchUpdated:function(p,m,y){var g=p.watcher instanceof lh&&p.watcher.observableQuery;if(g){if(f){d.delete(g.queryId);var b=f(g,m,y);return b===!0&&(b=g.refetch()),b!==!1&&h.set(g,b),b}f!==null&&d.set(g.queryId,{oq:g,lastDiff:y,diff:m})}}}),d.size&&d.forEach(function(p,m){var y=p.oq,g=p.lastDiff,b=p.diff,w;f&&(b||(b=n.cache.diff(y.queryInfo.getDiffOptions())),w=f(y,b,g)),(!f||w===!0)&&(w=y.refetch()),w!==!1&&h.set(y,w),m.indexOf("legacyOneTimeQuery")>=0&&n.stopQueryNoBroadcast(m)}),l&&this.cache.removeOptimistic(l),h},e.prototype.maskOperation=function(t){var n,r,i,a=t.document,o=t.data;if(globalThis.__DEV__!==!1){var u=t.fetchPolicy,l=t.id,f=(n=Ca(a))===null||n===void 0?void 0:n.operation,d=((r=f==null?void 0:f[0])!==null&&r!==void 0?r:"o")+l;this.dataMasking&&u==="no-cache"&&!sT(a)&&!this.noCacheWarningsByQueryId.has(d)&&(this.noCacheWarningsByQueryId.add(d),globalThis.__DEV__!==!1&&Ce.warn(37,(i=js(a))!==null&&i!==void 0?i:"Unnamed ".concat(f??"operation")))}return this.dataMasking?tO(o,a,this.cache):o},e.prototype.maskFragment=function(t){var n=t.data,r=t.fragment,i=t.fragmentName;return this.dataMasking?my(n,r,this.cache,i):n},e.prototype.fetchQueryByPolicy=function(t,n,r){var i=this,a=n.query,o=n.variables,u=n.fetchPolicy,l=n.refetchWritePolicy,f=n.errorPolicy,d=n.returnPartialData,h=n.context,p=n.notifyOnNetworkStatusChange,m=t.networkStatus;t.init({document:a,variables:o,networkStatus:r});var y=function(){return t.getDiff()},g=function(T,_){_===void 0&&(_=t.networkStatus||ct.loading);var x=T.result;globalThis.__DEV__!==!1&&!d&&!dt(x,{})&&Qy(T.missing);var k=function(A){return _t.of(X({data:A,loading:Oo(_),networkStatus:_},T.complete?null:{partial:!0}))};return x&&i.getDocumentInfo(a).hasForcedResolvers?i.localState.runResolvers({document:a,remoteResult:{data:x},context:h,variables:o,onlyRunForcedResolvers:!0}).then(function(A){return k(A.data||void 0)}):f==="none"&&_===ct.refetch&&Array.isArray(T.missing)?k(void 0):k(x)},b=u==="no-cache"?0:r===ct.refetch&&l!=="merge"?1:2,w=function(){return i.getResultsFromLink(t,b,{query:a,variables:o,context:h,fetchPolicy:u,errorPolicy:f})},S=p&&typeof m=="number"&&m!==r&&Oo(r);switch(u){default:case"cache-first":{var C=y();return C.complete?{fromLink:!1,sources:[g(C,t.markReady())]}:d||S?{fromLink:!0,sources:[g(C),w()]}:{fromLink:!0,sources:[w()]}}case"cache-and-network":{var C=y();return C.complete||d||S?{fromLink:!0,sources:[g(C),w()]}:{fromLink:!0,sources:[w()]}}case"cache-only":return{fromLink:!1,sources:[g(y(),t.markReady())]};case"network-only":return S?{fromLink:!0,sources:[g(y()),w()]}:{fromLink:!0,sources:[w()]};case"no-cache":return S?{fromLink:!0,sources:[g(t.getDiff()),w()]}:{fromLink:!0,sources:[w()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(t){return t&&!this.queries.has(t)&&this.queries.set(t,new lh(this,t)),this.queries.get(t)},e.prototype.prepareContext=function(t){t===void 0&&(t={});var n=this.localState.prepareContext(t);return X(X(X({},this.defaultContext),n),{clientAwareness:this.clientAwareness})},e}(),EO=function(){function e(t){var n=t.cache,r=t.client,i=t.resolvers,a=t.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=n,r&&(this.client=r),i&&this.addResolvers(i),a&&this.setFragmentMatcher(a)}return e.prototype.addResolvers=function(t){var n=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach(function(r){n.resolvers=j0(n.resolvers,r)}):this.resolvers=j0(this.resolvers,t)},e.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(t){return $i(this,arguments,void 0,function(n){var r=n.document,i=n.remoteResult,a=n.context,o=n.variables,u=n.onlyRunForcedResolvers,l=u===void 0?!1:u;return Vi(this,function(f){return r?[2,this.resolveDocument(r,i.data,a,o,this.fragmentMatcher,l).then(function(d){return X(X({},i),{data:d.result})})]:[2,i]})})},e.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(t){return Ds(["client"],t)&&this.resolvers?t:null},e.prototype.serverQuery=function(t){return M0(t)},e.prototype.prepareContext=function(t){var n=this.cache;return X(X({},t),{cache:n,getCacheKey:function(r){return n.identify(r)}})},e.prototype.addExportedVariables=function(t){return $i(this,arguments,void 0,function(n,r,i){return r===void 0&&(r={}),i===void 0&&(i={}),Vi(this,function(a){return n?[2,this.resolveDocument(n,this.buildRootValueFromCache(n,r)||{},this.prepareContext(i),r).then(function(o){return X(X({},r),o.exportedVariables)})]:[2,X({},r)]})})},e.prototype.shouldForceResolvers=function(t){var n=!1;return Vr(t,{Directive:{enter:function(r){if(r.name.value==="client"&&r.arguments&&(n=r.arguments.some(function(i){return i.name.value==="always"&&i.value.kind==="BooleanValue"&&i.value.value===!0}),n))return dl}}}),n},e.prototype.buildRootValueFromCache=function(t,n){return this.cache.diff({query:XT(t),variables:n,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(t,n){return $i(this,arguments,void 0,function(r,i,a,o,u,l){var f,d,h,p,m,y,g,b,w,S,C;return a===void 0&&(a={}),o===void 0&&(o={}),u===void 0&&(u=function(){return!0}),l===void 0&&(l=!1),Vi(this,function(T){return f=yo(r),d=go(r),h=fo(d),p=this.collectSelectionsToResolve(f,h),m=f.operation,y=m?m.charAt(0).toUpperCase()+m.slice(1):"Query",g=this,b=g.cache,w=g.client,S={fragmentMap:h,context:X(X({},a),{cache:b,client:w}),variables:o,fragmentMatcher:u,defaultOperationType:y,exportedVariables:{},selectionsToResolve:p,onlyRunForcedResolvers:l},C=!1,[2,this.resolveSelectionSet(f.selectionSet,C,i,S).then(function(_){return{result:_,exportedVariables:S.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(t,n,r,i){return $i(this,void 0,void 0,function(){var a,o,u,l,f,d=this;return Vi(this,function(h){return a=i.fragmentMap,o=i.context,u=i.variables,l=[r],f=function(p){return $i(d,void 0,void 0,function(){var m,y;return Vi(this,function(g){return!n&&!i.selectionsToResolve.has(p)?[2]:Fs(p,u)?zi(p)?[2,this.resolveField(p,n,r,i).then(function(b){var w;typeof b<"u"&&l.push((w={},w[Ei(p)]=b,w))})]:(MT(p)?m=p:(m=a[p.name.value],Ce(m,19,p.name.value)),m&&m.typeCondition&&(y=m.typeCondition.name.value,i.fragmentMatcher(r,y,o))?[2,this.resolveSelectionSet(m.selectionSet,n,r,i).then(function(b){l.push(b)})]:[2]):[2]})})},[2,Promise.all(t.selections.map(f)).then(function(){return _l(l)})]})})},e.prototype.resolveField=function(t,n,r,i){return $i(this,void 0,void 0,function(){var a,o,u,l,f,d,h,p,m,y=this;return Vi(this,function(g){return r?(a=i.variables,o=t.name.value,u=Ei(t),l=o!==u,f=r[u]||r[o],d=Promise.resolve(f),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(t))&&(h=r.__typename||i.defaultOperationType,p=this.resolvers&&this.resolvers[h],p&&(m=p[l?o:u],m&&(d=Promise.resolve(eh.withValue(this.cache,m,[r,gl(t,a),i.context,{field:t,fragmentMap:i.fragmentMap}]))))),[2,d.then(function(b){var w,S;if(b===void 0&&(b=f),t.directives&&t.directives.forEach(function(T){T.name.value==="export"&&T.arguments&&T.arguments.forEach(function(_){_.name.value==="as"&&_.value.kind==="StringValue"&&(i.exportedVariables[_.value.value]=b)})}),!t.selectionSet||b==null)return b;var C=(S=(w=t.directives)===null||w===void 0?void 0:w.some(function(T){return T.name.value==="client"}))!==null&&S!==void 0?S:!1;if(Array.isArray(b))return y.resolveSubSelectedArray(t,n||C,b,i);if(t.selectionSet)return y.resolveSelectionSet(t.selectionSet,n||C,b,i)})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(t,n,r,i){var a=this;return Promise.all(r.map(function(o){if(o===null)return null;if(Array.isArray(o))return a.resolveSubSelectedArray(t,n,o,i);if(t.selectionSet)return a.resolveSelectionSet(t.selectionSet,n,o,i)}))},e.prototype.collectSelectionsToResolve=function(t,n){var r=function(o){return!Array.isArray(o)},i=this.selectionsToResolveCache;function a(o){if(!i.has(o)){var u=new Set;i.set(o,u),Vr(o,{Directive:function(l,f,d,h,p){l.name.value==="client"&&p.forEach(function(m){r(m)&&a0(m)&&u.add(m)})},FragmentSpread:function(l,f,d,h,p){var m=n[l.name.value];Ce(m,20,l.name.value);var y=a(m);y.size>0&&(p.forEach(function(g){r(g)&&a0(g)&&u.add(g)}),u.add(l),y.forEach(function(g){u.add(g)}))}})}return i.get(o)}return a(t)},e}(),Ky=!1,Xy=function(){function e(t){var n=this,r;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!t.cache)throw Fn(16);var i=t.uri,a=t.credentials,o=t.headers,u=t.cache,l=t.documentTransform,f=t.ssrMode,d=f===void 0?!1:f,h=t.ssrForceFetchDelay,p=h===void 0?0:h,m=t.connectToDevTools,y=t.queryDeduplication,g=y===void 0?!0:y,b=t.defaultOptions,w=t.defaultContext,S=t.assumeImmutableResults,C=S===void 0?u.assumeImmutableResults:S,T=t.resolvers,_=t.typeDefs,x=t.fragmentMatcher,k=t.name,A=t.version,L=t.devtools,N=t.dataMasking,F=t.link;F||(F=i?new G4({uri:i,credentials:a,headers:o}):Ur.empty()),this.link=F,this.cache=u,this.disableNetworkFetches=d||p>0,this.queryDeduplication=g,this.defaultOptions=b||Object.create(null),this.typeDefs=_,this.devtoolsConfig=X(X({},L),{enabled:(r=L==null?void 0:L.enabled)!==null&&r!==void 0?r:m}),this.devtoolsConfig.enabled===void 0&&(this.devtoolsConfig.enabled=globalThis.__DEV__!==!1),p&&setTimeout(function(){return n.disableNetworkFetches=!1},p),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=hd,this.localState=new EO({cache:u,client:this,resolvers:T,fragmentMatcher:x}),this.queryManager=new wO({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:w,documentTransform:l,queryDeduplication:g,ssrMode:d,dataMasking:!!N,clientAwareness:{name:k,version:A},localState:this.localState,assumeImmutableResults:C,onBroadcast:this.devtoolsConfig.enabled?function(){n.devToolsHookCb&&n.devToolsHookCb({action:{},state:{queries:n.queryManager.getQueryStore(),mutations:n.queryManager.mutationStore||{}},dataWithOptimisticResults:n.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if(!(typeof window>"u")){var t=window,n=Symbol.for("apollo.devtools");(t[n]=t[n]||[]).push(this),t.__APOLLO_CLIENT__=this,!Ky&&globalThis.__DEV__!==!1&&(Ky=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var r=window.navigator,i=r&&r.userAgent,a=void 0;typeof i=="string"&&(i.indexOf("Chrome/")>-1?a="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":i.indexOf("Firefox/")>-1&&(a="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),a&&globalThis.__DEV__!==!1&&Ce.log("Download the Apollo DevTools for a better development experience: %s",a)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=Oa(this.defaultOptions.watchQuery,t)),this.disableNetworkFetches&&(t.fetchPolicy==="network-only"||t.fetchPolicy==="cache-and-network")&&(t=X(X({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},e.prototype.query=function(t){return this.defaultOptions.query&&(t=Oa(this.defaultOptions.query,t)),Ce(t.fetchPolicy!=="cache-and-network",17),this.disableNetworkFetches&&t.fetchPolicy==="network-only"&&(t=X(X({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},e.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=Oa(this.defaultOptions.mutate,t)),this.queryManager.mutate(t)},e.prototype.subscribe=function(t){var n=this,r=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(t).map(function(i){return X(X({},i),{data:n.queryManager.maskOperation({document:t.query,data:i.data,fetchPolicy:t.fetchPolicy,id:r})})})},e.prototype.readQuery=function(t,n){return n===void 0&&(n=!1),this.cache.readQuery(t,n)},e.prototype.watchFragment=function(t){var n;return this.cache.watchFragment(X(X({},t),(n={},n[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,n)))},e.prototype.readFragment=function(t,n){return n===void 0&&(n=!1),this.cache.readFragment(t,n)},e.prototype.writeQuery=function(t){var n=this.cache.writeQuery(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),n},e.prototype.writeFragment=function(t){var n=this.cache.writeFragment(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),n},e.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},e.prototype.__requestRaw=function(t){return Wd(this.link,t)},e.prototype.resetStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(t.resetStoreCallbacks.map(function(n){return n()}))}).then(function(){return t.reFetchObservableQueries()})},e.prototype.clearStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(t.clearStoreCallbacks.map(function(n){return n()}))})},e.prototype.onResetStore=function(t){var n=this;return this.resetStoreCallbacks.push(t),function(){n.resetStoreCallbacks=n.resetStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.onClearStore=function(t){var n=this;return this.clearStoreCallbacks.push(t),function(){n.clearStoreCallbacks=n.clearStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},e.prototype.refetchQueries=function(t){var n=this.queryManager.refetchQueries(t),r=[],i=[];n.forEach(function(o,u){r.push(u),i.push(o)});var a=Promise.all(i);return a.queries=r,a.results=i,a.catch(function(o){globalThis.__DEV__!==!1&&Ce.debug(18,o)}),a},e.prototype.getObservableQueries=function(t){return t===void 0&&(t="active"),this.queryManager.getObservableQueries(t)},e.prototype.extract=function(t){return this.cache.extract(t)},e.prototype.restore=function(t){return this.cache.restore(t)},e.prototype.addResolvers=function(t){this.localState.addResolvers(t)},e.prototype.setResolvers=function(t){this.localState.setResolvers(t)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},e.prototype.setLink=function(t){this.link=this.queryManager.link=t},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();globalThis.__DEV__!==!1&&(Xy.prototype.getMemoryInternals=mT);var fh={exports:{}},Zy;function SO(){return Zy||(Zy=1,function(e){e.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,e.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,e.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(e.exports,M)}(fh)),fh.exports}var Ue=SO();const Jy=T6({__proto__:null,default:ji(Ue)},[Ue]);var eb=bd?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function dh(){Ce("createContext"in Jy,54);var e=Ue.createContext[eb];return e||(Object.defineProperty(Ue.createContext,eb,{value:e=Ue.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}var xO=function(e){var t=e.client,n=e.children,r=dh(),i=Ue.useContext(r),a=Ue.useMemo(function(){return X(X({},i),{client:t||i.client})},[i,t]);return Ce(a.client,55),Ue.createElement(r.Provider,{value:a},n)};function hh(e){var t=Ue.useContext(dh()),n=e||t.client;return Ce(!!n,58),n}var tb=!1,CO="useSyncExternalStore",TO=Jy[CO],nb=TO||function(e,t,n){var r=t();globalThis.__DEV__!==!1&&!tb&&r!==t()&&(tb=!0,globalThis.__DEV__!==!1&&Ce.error(68));var i=Ue.useState({inst:{value:r,getSnapshot:t}}),a=i[0].inst,o=i[1];return aT?Ue.useLayoutEffect(function(){Object.assign(a,{value:r,getSnapshot:t}),ph(a)&&o({inst:a})},[e,r,t]):Object.assign(a,{value:r,getSnapshot:t}),Ue.useEffect(function(){return ph(a)&&o({inst:a}),e(function(){ph(a)&&o({inst:a})})},[e]),r};function ph(e){var t=e.value,n=e.getSnapshot;try{return t!==n()}catch{return!0}}var zr;(function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"})(zr||(zr={}));var ka;function rb(e){var t;switch(e){case zr.Query:t="Query";break;case zr.Mutation:t="Mutation";break;case zr.Subscription:t="Subscription";break}return t}function ib(e){ka||(ka=new Sd(ti.parser||1e3));var t=ka.get(e);if(t)return t;var n,r,i;Ce(!!e&&!!e.kind,70,e);for(var a=[],o=[],u=[],l=[],f=0,d=e.definitions;f<d.length;f++){var h=d[f];if(h.kind==="FragmentDefinition"){a.push(h);continue}if(h.kind==="OperationDefinition")switch(h.operation){case"query":o.push(h);break;case"mutation":u.push(h);break;case"subscription":l.push(h);break}}Ce(!a.length||o.length||u.length||l.length,71),Ce(o.length+u.length+l.length<=1,72,e,o.length,l.length,u.length),r=o.length?zr.Query:zr.Mutation,!o.length&&!u.length&&(r=zr.Subscription);var p=o.length?o:u.length?u:l;Ce(p.length===1,73,e,p.length);var m=p[0];n=m.variableDefinitions||[],m.name&&m.name.kind==="Name"?i=m.name.value:i="data";var y={name:i,type:r,variables:n};return ka.set(e,y),y}ib.resetCache=function(){ka=void 0},globalThis.__DEV__!==!1&&xd("parser",function(){return ka?ka.size:0});function vh(e,t){var n=ib(e),r=rb(t),i=rb(n.type);Ce(n.type===t,74,r,r,i)}function OO(e,t){var n=Ue.useRef(void 0);return(!n.current||!dt(n.current.deps,t))&&(n.current={value:e(),deps:t}),n.current.value}var Rl=u0?Ue.useLayoutEffect:Ue.useEffect,kO=Object.prototype.hasOwnProperty;function ab(){}var Al=Symbol();function RO(e,t,n,r,i){function a(h){var p;vh(t,zr.Query);var m={client:e,query:t,observable:r&&r.getSSRObservable(i())||Xs.inactiveOnCreation.withValue(!r,function(){return e.watchQuery(mh(void 0,e,n,i()))}),resultData:{previousData:(p=h==null?void 0:h.resultData.current)===null||p===void 0?void 0:p.data}};return m}var o=Ue.useState(a),u=o[0],l=o[1];function f(h){var p,m;Object.assign(u.observable,(p={},p[Al]=h,p));var y=u.resultData;l(X(X({},u),{query:h.query,resultData:Object.assign(y,{previousData:((m=y.current)===null||m===void 0?void 0:m.data)||y.previousData,current:void 0})}))}if(e!==u.client||t!==u.query){var d=a(u);return l(d),[d,f]}return[u,f]}function AO(e,t){var n=hh(t.client),r=Ue.useContext(dh()).renderPromises,i=!!r,a=n.disableNetworkFetches,o=t.ssr!==!1&&!t.skip,u=t.partialRefetch,l=ob(n,e,t,i),f=RO(n,e,t,r,l),d=f[0],h=d.observable,p=d.resultData,m=f[1],y=l(h);IO(p,h,n,t,y);var g=Ue.useMemo(function(){return DO(h)},[h]);NO(h,r,o);var b=PO(p,h,n,t,y,a,u,i,{onCompleted:t.onCompleted||ab,onError:t.onError||ab});return{result:b,obsQueryFields:g,observable:h,resultData:p,client:n,onQueryExecuted:m}}function PO(e,t,n,r,i,a,o,u,l){var f=Ue.useRef(l);Ue.useEffect(function(){f.current=l});var d=(u||a)&&r.ssr===!1&&!r.skip?lb:r.skip||i.fetchPolicy==="standby"?cb:void 0,h=e.previousData,p=Ue.useMemo(function(){return d&&Pl(d,h,t,n)},[n,t,d,h]);return nb(Ue.useCallback(function(m){if(u)return function(){};var y=function(){var w=e.current,S=t.getCurrentResult();w&&w.loading===S.loading&&w.networkStatus===S.networkStatus&&dt(w.data,S.data)||gh(S,e,t,n,o,m,f.current)},g=function(w){if(b.current.unsubscribe(),b.current=t.resubscribeAfterError(y,g),!kO.call(w,"graphQLErrors"))throw w;var S=e.current;(!S||S&&S.loading||!dt(w,S.error))&&gh({data:S&&S.data,error:w,loading:!1,networkStatus:ct.error},e,t,n,o,m,f.current)},b={current:t.subscribe(y,g)};return function(){setTimeout(function(){return b.current.unsubscribe()})}},[a,u,t,e,o,n]),function(){return p||sb(e,t,f.current,o,n)},function(){return p||sb(e,t,f.current,o,n)})}function NO(e,t,n){t&&n&&(t.registerSSRObservable(e),e.getCurrentResult().loading&&t.addObservableQueryPromise(e))}function IO(e,t,n,r,i){var a;t[Al]&&!dt(t[Al],i)&&(t.reobserve(mh(t,n,r,i)),e.previousData=((a=e.current)===null||a===void 0?void 0:a.data)||e.previousData,e.current=void 0),t[Al]=i}function ob(e,t,n,r){n===void 0&&(n={});var i=n.skip;n.ssr,n.onCompleted,n.onError;var a=n.defaultOptions,o=br(n,["skip","ssr","onCompleted","onError","defaultOptions"]);return function(u){var l=Object.assign(o,{query:t});return r&&(l.fetchPolicy==="network-only"||l.fetchPolicy==="cache-and-network")&&(l.fetchPolicy="cache-first"),l.variables||(l.variables={}),i?(l.initialFetchPolicy=l.initialFetchPolicy||l.fetchPolicy||yh(a,e.defaultOptions),l.fetchPolicy="standby"):l.fetchPolicy||(l.fetchPolicy=(u==null?void 0:u.options.initialFetchPolicy)||yh(a,e.defaultOptions)),l}}function mh(e,t,n,r){var i=[],a=t.defaultOptions.watchQuery;return a&&i.push(a),n.defaultOptions&&i.push(n.defaultOptions),i.push(Ta(e&&e.options,r)),i.reduce(Oa)}function gh(e,t,n,r,i,a,o){var u=t.current;u&&u.data&&(t.previousData=u.data),!e.error&&_r(e.errors)&&(e.error=new nr({graphQLErrors:e.errors})),t.current=Pl(FO(e,n,i),t.previousData,n,r),a(),LO(e,u==null?void 0:u.networkStatus,o)}function LO(e,t,n){if(!e.loading){var r=ub(e);Promise.resolve().then(function(){r?n.onError(r):e.data&&t!==e.networkStatus&&e.networkStatus===ct.ready&&n.onCompleted(e.data)}).catch(function(i){globalThis.__DEV__!==!1&&Ce.warn(i)})}}function sb(e,t,n,r,i){return e.current||gh(t.getCurrentResult(),e,t,i,r,function(){},n),e.current}function yh(e,t){var n;return(e==null?void 0:e.fetchPolicy)||((n=t==null?void 0:t.watchQuery)===null||n===void 0?void 0:n.fetchPolicy)||"cache-first"}function ub(e){return _r(e.errors)?new nr({graphQLErrors:e.errors}):e.error}function Pl(e,t,n,r){var i=e.data;e.partial;var a=br(e,["data","partial"]),o=X(X({data:i},a),{client:r,observable:n,variables:n.variables,called:e!==lb&&e!==cb,previousData:t});return o}function FO(e,t,n){return e.partial&&n&&!e.loading&&(!e.data||Object.keys(e.data).length===0)&&t.options.fetchPolicy!=="cache-only"?(t.refetch(),X(X({},e),{loading:!0,networkStatus:ct.refetch})):e}var lb=Eo({loading:!0,data:void 0,error:void 0,networkStatus:ct.loading}),cb=Eo({loading:!1,data:void 0,error:void 0,networkStatus:ct.ready});function DO(e){return{refetch:e.refetch.bind(e),reobserve:e.reobserve.bind(e),fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}}var MO=["refetch","reobserve","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore"];function Yi(e,t){var n,r=Ue.useRef(void 0),i=Ue.useRef(void 0),a=Ue.useRef(void 0),o=Oa(t,r.current||{}),u=(n=o==null?void 0:o.query)!==null&&n!==void 0?n:e;i.current=t,a.current=u;var l=X(X({},o),{skip:!r.current}),f=AO(u,l),d=f.obsQueryFields,h=f.result,p=f.client,m=f.resultData,y=f.observable,g=f.onQueryExecuted,b=y.options.initialFetchPolicy||yh(l.defaultOptions,p.defaultOptions),w=Ue.useReducer(function(A){return A+1},0)[1],S=Ue.useMemo(function(){for(var A={},L=function(V){var D=d[V];A[V]=function(){return r.current||(r.current=Object.create(null),w()),D.apply(this,arguments)}},N=0,F=MO;N<F.length;N++){var H=F[N];L(H)}return A},[w,d]),C=!!r.current,T=Ue.useMemo(function(){return X(X(X({},h),S),{called:C})},[h,S,C]),_=Ue.useCallback(function(A){r.current=A?X(X({},A),{fetchPolicy:A.fetchPolicy||b}):{fetchPolicy:b};var L=Oa(i.current,X({query:a.current},r.current)),N=jO(m,y,p,u,X(X({},L),{skip:!1}),g).then(function(F){return Object.assign(F,S)});return N.catch(function(){}),N},[p,u,S,b,y,m,g]),x=Ue.useRef(_);Rl(function(){x.current=_});var k=Ue.useCallback(function(){for(var A=[],L=0;L<arguments.length;L++)A[L]=arguments[L];return x.current.apply(x,A)},[]);return[k,T]}function jO(e,t,n,r,i,a){var o=i.query||r,u=ob(n,o,i,!1)(t),l=t.reobserveAsConcast(mh(t,n,i,u));return a(u),new Promise(function(f){var d;l.subscribe({next:function(h){d=h},error:function(){f(Pl(t.getCurrentResult(),e.previousData,t,n))},complete:function(){f(Pl(t.maskResult(d),e.previousData,t,n))}})})}function Ra(e,t){var n=hh(void 0);vh(e,zr.Mutation);var r=Ue.useState({called:!1,loading:!1,client:n}),i=r[0],a=r[1],o=Ue.useRef({result:i,mutationId:0,isMounted:!0,client:n,mutation:e,options:t});Rl(function(){Object.assign(o.current,{client:n,options:t,mutation:e})});var u=Ue.useCallback(function(f){f===void 0&&(f={});var d=o.current,h=d.options,p=d.mutation,m=X(X({},h),{mutation:p}),y=f.client||o.current.client;!o.current.result.loading&&!m.ignoreResults&&o.current.isMounted&&a(o.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:y});var g=++o.current.mutationId,b=Oa(m,f);return y.mutate(b).then(function(w){var S,C,T=w.data,_=w.errors,x=_&&_.length>0?new nr({graphQLErrors:_}):void 0,k=f.onError||((S=o.current.options)===null||S===void 0?void 0:S.onError);if(x&&k&&k(x,b),g===o.current.mutationId&&!b.ignoreResults){var A={called:!0,loading:!1,data:T,error:x,client:y};o.current.isMounted&&!dt(o.current.result,A)&&a(o.current.result=A)}var L=f.onCompleted||((C=o.current.options)===null||C===void 0?void 0:C.onCompleted);return x||L==null||L(w.data,b),w},function(w){var S;if(g===o.current.mutationId&&o.current.isMounted){var C={loading:!1,error:w,data:void 0,called:!0,client:y};dt(o.current.result,C)||a(o.current.result=C)}var T=f.onError||((S=o.current.options)===null||S===void 0?void 0:S.onError);if(T)return T(w,b),{data:void 0,errors:w};throw w})},[]),l=Ue.useCallback(function(){if(o.current.isMounted){var f={called:!1,loading:!1,client:o.current.client};Object.assign(o.current,{mutationId:0,result:f}),a(f)}},[]);return Ue.useEffect(function(){var f=o.current;return f.isMounted=!0,function(){f.isMounted=!1}},[]),[u,X({reset:l},i)]}function $O(e,t){t===void 0&&(t=Object.create(null));var n=Ue.useRef(!1),r=hh(t.client);vh(e,zr.Subscription),n.current||(n.current=!0,t.onSubscriptionData&&globalThis.__DEV__!==!1&&Ce.warn(t.onData?61:62),t.onSubscriptionComplete&&globalThis.__DEV__!==!1&&Ce.warn(t.onComplete?63:64));var i=t.skip,a=t.fetchPolicy,o=t.errorPolicy,u=t.shouldResubscribe,l=t.context,f=t.extensions,d=t.ignoreResults,h=OO(function(){return t.variables},[t.variables]),p=function(){return VO(r,e,h,a,o,l,f)},m=Ue.useState(t.skip?null:p),y=m[0],g=m[1],b=Ue.useRef(p);Rl(function(){b.current=p}),i?y&&g(y=null):(!y||(r!==y.__.client||e!==y.__.query||a!==y.__.fetchPolicy||o!==y.__.errorPolicy||!dt(h,y.__.variables))&&(typeof u=="function"?!!u(t):u)!==!1)&&g(y=p());var w=Ue.useRef(t);Ue.useEffect(function(){w.current=t});var S=!i&&!d,C=Ue.useMemo(function(){return{loading:S,error:void 0,data:void 0,variables:h}},[S,h]),T=Ue.useRef(d);Rl(function(){T.current=d});var _=nb(Ue.useCallback(function(k){if(!y)return function(){};var A=!1,L=y.__.variables,N=y.__.client,F=y.subscribe({next:function(H){var V,D;if(!A){var j={loading:!1,data:H.data,error:ub(H),variables:L};y.__.setResult(j),T.current||k(),j.error?(D=(V=w.current).onError)===null||D===void 0||D.call(V,j.error):w.current.onData?w.current.onData({client:N,data:j}):w.current.onSubscriptionData&&w.current.onSubscriptionData({client:N,subscriptionData:j})}},error:function(H){var V,D;H=H instanceof nr?H:new nr({protocolErrors:[H]}),A||(y.__.setResult({loading:!1,data:void 0,error:H,variables:L}),T.current||k(),(D=(V=w.current).onError)===null||D===void 0||D.call(V,H))},complete:function(){A||(w.current.onComplete?w.current.onComplete():w.current.onSubscriptionComplete&&w.current.onSubscriptionComplete())}});return function(){A=!0,setTimeout(function(){F.unsubscribe()})}},[y]),function(){return y&&!i&&!d?y.__.result:C},function(){return C}),x=Ue.useCallback(function(){Ce(!w.current.skip,65),g(b.current())},[w,b]);return Ue.useMemo(function(){return X(X({},_),{restart:x})},[_,x])}function VO(e,t,n,r,i,a,o){var u={query:t,variables:n,fetchPolicy:r,errorPolicy:i,context:a,extensions:o},l=X(X({},u),{client:e,result:{loading:!0,data:void 0,error:void 0,variables:n},setResult:function(d){l.result=d}}),f=null;return Object.assign(new _t(function(d){f||(f=e.subscribe(u));var h=f.subscribe(d);return function(){return h.unsubscribe()}}),{__:l})}function fb(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=fb(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ki(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=fb(e))&&(r&&(r+=" "),r+=t);return r}const Zs=e=>typeof e=="number"&&!isNaN(e),Aa=e=>typeof e=="string",rr=e=>typeof e=="function",Nl=e=>Aa(e)||rr(e)?e:null,bh=e=>M.isValidElement(e)||Aa(e)||rr(e)||Zs(e);function qO(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Il(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:a=300}=e;return function(o){let{children:u,position:l,preventExitTransition:f,done:d,nodeRef:h,isIn:p,playToast:m}=o;const y=r?`${t}--${l}`:t,g=r?`${n}--${l}`:n,b=M.useRef(0);return M.useLayoutEffect(()=>{const w=h.current,S=y.split(" "),C=T=>{T.target===h.current&&(m(),w.removeEventListener("animationend",C),w.removeEventListener("animationcancel",C),b.current===0&&T.type!=="animationcancel"&&w.classList.remove(...S))};w.classList.add(...S),w.addEventListener("animationend",C),w.addEventListener("animationcancel",C)},[]),M.useEffect(()=>{const w=h.current,S=()=>{w.removeEventListener("animationend",S),i?qO(w,d,a):d()};p||(f?S():(b.current=1,w.className+=` ${g}`,w.addEventListener("animationend",S)))},[p]),M.createElement(M.Fragment,null,u)}}function db(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Dn=new Map;let Js=[];const _h=new Set,UO=e=>_h.forEach(t=>t(e)),hb=()=>Dn.size>0;function pb(e,t){var n;if(t)return!((n=Dn.get(t))==null||!n.isToastActive(e));let r=!1;return Dn.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function vb(e,t){bh(e)&&(hb()||Js.push({content:e,options:t}),Dn.forEach(n=>{n.buildToast(e,t)}))}function mb(e,t){Dn.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function zO(e){const{subscribe:t,getSnapshot:n,setProps:r}=M.useRef(function(a){const o=a.containerId||1;return{subscribe(u){const l=function(d,h,p){let m=1,y=0,g=[],b=[],w=[],S=h;const C=new Map,T=new Set,_=()=>{w=Array.from(C.values()),T.forEach(A=>A())},x=A=>{b=A==null?[]:b.filter(L=>L!==A),_()},k=A=>{const{toastId:L,onOpen:N,updateId:F,children:H}=A.props,V=F==null;A.staleId&&C.delete(A.staleId),C.set(L,A),b=[...b,A.props.toastId].filter(D=>D!==A.staleId),_(),p(db(A,V?"added":"updated")),V&&rr(N)&&N(M.isValidElement(H)&&H.props)};return{id:d,props:S,observe:A=>(T.add(A),()=>T.delete(A)),toggle:(A,L)=>{C.forEach(N=>{L!=null&&L!==N.props.toastId||rr(N.toggle)&&N.toggle(A)})},removeToast:x,toasts:C,clearQueue:()=>{y-=g.length,g=[]},buildToast:(A,L)=>{if((ae=>{let{containerId:ie,toastId:te,updateId:fe}=ae;const le=ie?ie!==d:d!==1,me=C.has(te)&&fe==null;return le||me})(L))return;const{toastId:N,updateId:F,data:H,staleId:V,delay:D}=L,j=()=>{x(N)},z=F==null;z&&y++;const Q={...S,style:S.toastStyle,key:m++,...Object.fromEntries(Object.entries(L).filter(ae=>{let[ie,te]=ae;return te!=null})),toastId:N,updateId:F,data:H,closeToast:j,isIn:!1,className:Nl(L.className||S.toastClassName),bodyClassName:Nl(L.bodyClassName||S.bodyClassName),progressClassName:Nl(L.progressClassName||S.progressClassName),autoClose:!L.isLoading&&(q=L.autoClose,J=S.autoClose,q===!1||Zs(q)&&q>0?q:J),deleteToast(){const ae=C.get(N),{onClose:ie,children:te}=ae.props;rr(ie)&&ie(M.isValidElement(te)&&te.props),p(db(ae,"removed")),C.delete(N),y--,y<0&&(y=0),g.length>0?k(g.shift()):_()}};var q,J;Q.closeButton=S.closeButton,L.closeButton===!1||bh(L.closeButton)?Q.closeButton=L.closeButton:L.closeButton===!0&&(Q.closeButton=!bh(S.closeButton)||S.closeButton);let $=A;M.isValidElement(A)&&!Aa(A.type)?$=M.cloneElement(A,{closeToast:j,toastProps:Q,data:H}):rr(A)&&($=A({closeToast:j,toastProps:Q,data:H}));const Y={content:$,props:Q,staleId:V};S.limit&&S.limit>0&&y>S.limit&&z?g.push(Y):Zs(D)?setTimeout(()=>{k(Y)},D):k(Y)},setProps(A){S=A},setToggle:(A,L)=>{C.get(A).toggle=L},isToastActive:A=>b.some(L=>L===A),getSnapshot:()=>w}}(o,a,UO);Dn.set(o,l);const f=l.observe(u);return Js.forEach(d=>vb(d.content,d.options)),Js=[],()=>{f(),Dn.delete(o)}},setProps(u){var l;(l=Dn.get(o))==null||l.setProps(u)},getSnapshot(){var u;return(u=Dn.get(o))==null?void 0:u.getSnapshot()}}}(e)).current;r(e);const i=M.useSyncExternalStore(t,n,n);return{getToastToRender:function(a){if(!i)return[];const o=new Map;return e.newestOnTop&&i.reverse(),i.forEach(u=>{const{position:l}=u.props;o.has(l)||o.set(l,[]),o.get(l).push(u)}),Array.from(o,u=>a(u[0],u[1]))},isToastActive:pb,count:i==null?void 0:i.length}}function HO(e){const[t,n]=M.useState(!1),[r,i]=M.useState(!1),a=M.useRef(null),o=M.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:u,pauseOnHover:l,closeToast:f,onClick:d,closeOnClick:h}=e;var p,m;function y(){n(!0)}function g(){n(!1)}function b(C){const T=a.current;o.canDrag&&T&&(o.didMove=!0,t&&g(),o.delta=e.draggableDirection==="x"?C.clientX-o.start:C.clientY-o.start,o.start!==C.clientX&&(o.canCloseOnClick=!1),T.style.transform=`translate3d(${e.draggableDirection==="x"?`${o.delta}px, var(--y)`:`0, calc(${o.delta}px + var(--y))`},0)`,T.style.opacity=""+(1-Math.abs(o.delta/o.removalDistance)))}function w(){document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",w);const C=a.current;if(o.canDrag&&o.didMove&&C){if(o.canDrag=!1,Math.abs(o.delta)>o.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();C.style.transition="transform 0.2s, opacity 0.2s",C.style.removeProperty("transform"),C.style.removeProperty("opacity")}}(m=Dn.get((p={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||m.setToggle(p.id,p.fn),M.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||g(),window.addEventListener("focus",y),window.addEventListener("blur",g),()=>{window.removeEventListener("focus",y),window.removeEventListener("blur",g)}},[e.pauseOnFocusLoss]);const S={onPointerDown:function(C){if(e.draggable===!0||e.draggable===C.pointerType){o.didMove=!1,document.addEventListener("pointermove",b),document.addEventListener("pointerup",w);const T=a.current;o.canCloseOnClick=!0,o.canDrag=!0,T.style.transition="none",e.draggableDirection==="x"?(o.start=C.clientX,o.removalDistance=T.offsetWidth*(e.draggablePercent/100)):(o.start=C.clientY,o.removalDistance=T.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(C){const{top:T,bottom:_,left:x,right:k}=a.current.getBoundingClientRect();C.nativeEvent.type!=="touchend"&&e.pauseOnHover&&C.clientX>=x&&C.clientX<=k&&C.clientY>=T&&C.clientY<=_?g():y()}};return u&&l&&(S.onMouseEnter=g,e.stacked||(S.onMouseLeave=y)),h&&(S.onClick=C=>{d&&d(C),o.canCloseOnClick&&f()}),{playToast:y,pauseToast:g,isRunning:t,preventExitTransition:r,toastRef:a,eventHandlers:S}}function BO(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:a,className:o,style:u,controlledProgress:l,progress:f,rtl:d,isIn:h,theme:p}=e;const m=a||l&&f===0,y={...u,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};l&&(y.transform=`scaleX(${f})`);const g=Ki("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${p}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":d}),b=rr(o)?o({rtl:d,type:i,defaultClassName:g}):Ki(g,o),w={[l&&f>=1?"onTransitionEnd":"onAnimationEnd"]:l&&f<1?null:()=>{h&&r()}};return M.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":m},M.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${p} Toastify__progress-bar--${i}`}),M.createElement("div",{role:"progressbar","aria-hidden":m?"true":"false","aria-label":"notification timer",className:b,style:y,...w}))}let WO=1;const gb=()=>""+WO++;function GO(e){return e&&(Aa(e.toastId)||Zs(e.toastId))?e.toastId:gb()}function eu(e,t){return vb(e,t),t.toastId}function Ll(e,t){return{...t,type:t&&t.type||e,toastId:GO(t)}}function Fl(e){return(t,n)=>eu(t,Ll(e,n))}function It(e,t){return eu(e,Ll("default",t))}It.loading=(e,t)=>eu(e,Ll("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),It.promise=function(e,t,n){let r,{pending:i,error:a,success:o}=t;i&&(r=Aa(i)?It.loading(i,n):It.loading(i.render,{...n,...i}));const u={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(d,h,p)=>{if(h==null)return void It.dismiss(r);const m={type:d,...u,...n,data:p},y=Aa(h)?{render:h}:h;return r?It.update(r,{...m,...y}):It(y.render,{...m,...y}),p},f=rr(e)?e():e;return f.then(d=>l("success",o,d)).catch(d=>l("error",a,d)),f},It.success=Fl("success"),It.info=Fl("info"),It.error=Fl("error"),It.warning=Fl("warning"),It.warn=It.warning,It.dark=(e,t)=>eu(e,Ll("default",{theme:"dark",...t})),It.dismiss=function(e){(function(t){var n;if(hb()){if(t==null||Aa(n=t)||Zs(n))Dn.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=Dn.get(t.containerId);r?r.removeToast(t.id):Dn.forEach(i=>{i.removeToast(t.id)})}}else Js=Js.filter(r=>t!=null&&r.options.toastId!==t)})(e)},It.clearWaitingQueue=function(e){e===void 0&&(e={}),Dn.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},It.isActive=pb,It.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var a;let{containerId:o}=i;return(a=Dn.get(o||1))==null?void 0:a.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,a={delay:100,...r,...t,toastId:t.toastId||e,updateId:gb()};a.toastId!==e&&(a.staleId=e);const o=a.render||i;delete a.render,eu(o,a)}},It.done=e=>{It.update(e,{progress:1})},It.onChange=function(e){return _h.add(e),()=>{_h.delete(e)}},It.play=e=>mb(!0,e),It.pause=e=>mb(!1,e);const QO=typeof window<"u"?M.useLayoutEffect:M.useEffect,Dl=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return M.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},wh={info:function(e){return M.createElement(Dl,{...e},M.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return M.createElement(Dl,{...e},M.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return M.createElement(Dl,{...e},M.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return M.createElement(Dl,{...e},M.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return M.createElement("div",{className:"Toastify__spinner"})}},YO=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:a}=HO(e),{closeButton:o,children:u,autoClose:l,onClick:f,type:d,hideProgressBar:h,closeToast:p,transition:m,position:y,className:g,style:b,bodyClassName:w,bodyStyle:S,progressClassName:C,progressStyle:T,updateId:_,role:x,progress:k,rtl:A,toastId:L,deleteToast:N,isIn:F,isLoading:H,closeOnClick:V,theme:D}=e,j=Ki("Toastify__toast",`Toastify__toast-theme--${D}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":A},{"Toastify__toast--close-on-click":V}),z=rr(g)?g({rtl:A,position:y,type:d,defaultClassName:j}):Ki(j,g),Q=function(Y){let{theme:ae,type:ie,isLoading:te,icon:fe}=Y,le=null;const me={theme:ae,type:ie};return fe===!1||(rr(fe)?le=fe({...me,isLoading:te}):M.isValidElement(fe)?le=M.cloneElement(fe,me):te?le=wh.spinner():(_e=>_e in wh)(ie)&&(le=wh[ie](me))),le}(e),q=!!k||!l,J={closeToast:p,type:d,theme:D};let $=null;return o===!1||($=rr(o)?o(J):M.isValidElement(o)?M.cloneElement(o,J):function(Y){let{closeToast:ae,theme:ie,ariaLabel:te="close"}=Y;return M.createElement("button",{className:`Toastify__close-button Toastify__close-button--${ie}`,type:"button",onClick:fe=>{fe.stopPropagation(),ae(fe)},"aria-label":te},M.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},M.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(J)),M.createElement(m,{isIn:F,done:N,position:y,preventExitTransition:n,nodeRef:r,playToast:a},M.createElement("div",{id:L,onClick:f,"data-in":F,className:z,...i,style:b,ref:r},M.createElement("div",{...F&&{role:x},className:rr(w)?w({type:d}):Ki("Toastify__toast-body",w),style:S},Q!=null&&M.createElement("div",{className:Ki("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!H})},Q),M.createElement("div",null,u)),$,M.createElement(BO,{..._&&!q?{key:`pb-${_}`}:{},rtl:A,theme:D,delay:l,isRunning:t,isIn:F,closeToast:p,hide:h,type:d,style:T,className:C,controlledProgress:q,progress:k||0})))},Ml=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},KO=Il(Ml("bounce",!0));Il(Ml("slide",!0)),Il(Ml("zoom")),Il(Ml("flip"));const XO={position:"top-right",transition:KO,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function ZO(e){let t={...XO,...e};const n=e.stacked,[r,i]=M.useState(!0),a=M.useRef(null),{getToastToRender:o,isToastActive:u,count:l}=zO(t),{className:f,style:d,rtl:h,containerId:p}=t;function m(g){const b=Ki("Toastify__toast-container",`Toastify__toast-container--${g}`,{"Toastify__toast-container--rtl":h});return rr(f)?f({position:g,rtl:h,defaultClassName:b}):Ki(b,Nl(f))}function y(){n&&(i(!0),It.play())}return QO(()=>{if(n){var g;const b=a.current.querySelectorAll('[data-in="true"]'),w=12,S=(g=t.position)==null?void 0:g.includes("top");let C=0,T=0;Array.from(b).reverse().forEach((_,x)=>{const k=_;k.classList.add("Toastify__toast--stacked"),x>0&&(k.dataset.collapsed=`${r}`),k.dataset.pos||(k.dataset.pos=S?"top":"bot");const A=C*(r?.2:1)+(r?0:w*x);k.style.setProperty("--y",`${S?A:-1*A}px`),k.style.setProperty("--g",`${w}`),k.style.setProperty("--s",""+(1-(r?T:0))),C+=k.offsetHeight,T+=.025})}},[r,l,n]),M.createElement("div",{ref:a,className:"Toastify",id:p,onMouseEnter:()=>{n&&(i(!1),It.pause())},onMouseLeave:y},o((g,b)=>{const w=b.length?{...d}:{...d,pointerEvents:"none"};return M.createElement("div",{className:m(g),style:w,key:`container-${g}`},b.map(S=>{let{content:C,props:T}=S;return M.createElement(YO,{...T,stacked:n,collapseAll:y,isIn:u(T.toastId,T.containerId),style:T.style,key:`toast-${T.key}`},C)}))}))}function JO(e){return new Ur(function(t,n){var r=br(t,[]);return new _t(function(i){var a,o=!1;return Promise.resolve(r).then(function(u){return e(u,t.getContext())}).then(t.setContext).then(function(){o||(a=n(t).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)}))}).catch(i.error.bind(i)),function(){o=!0,a&&a.unsubscribe()}})})}/*! js-cookie v3.0.5 | MIT */function jl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var e8={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Eh(e,t){function n(i,a,o){if(!(typeof document>"u")){o=jl({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var l in o)o[l]&&(u+="; "+l,o[l]!==!0&&(u+="="+o[l].split(";")[0]));return document.cookie=i+"="+e.write(a,i)+u}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var a=document.cookie?document.cookie.split("; "):[],o={},u=0;u<a.length;u++){var l=a[u].split("="),f=l.slice(1).join("=");try{var d=decodeURIComponent(l[0]);if(o[d]=e.read(f,d),i===d)break}catch{}}return i?o[i]:o}}return Object.create({set:n,get:r,remove:function(i,a){n(i,"",jl({},a,{expires:-1}))},withAttributes:function(i){return Eh(this.converter,jl({},this.attributes,i))},withConverter:function(i){return Eh(jl({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Xi=Eh(e8,{path:"/"}),$l={exports:{}},t8=$l.exports,yb;function n8(){return yb||(yb=1,function(e,t){(function(n,r){e.exports=r()})(t8,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",o="second",u="minute",l="hour",f="day",d="week",h="month",p="quarter",m="year",y="date",g="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var j=["th","st","nd","rd"],z=D%100;return"["+D+(j[(z-20)%10]||j[z]||j[0])+"]"}},C=function(D,j,z){var Q=String(D);return!Q||Q.length>=j?D:""+Array(j+1-Q.length).join(z)+D},T={s:C,z:function(D){var j=-D.utcOffset(),z=Math.abs(j),Q=Math.floor(z/60),q=z%60;return(j<=0?"+":"-")+C(Q,2,"0")+":"+C(q,2,"0")},m:function D(j,z){if(j.date()<z.date())return-D(z,j);var Q=12*(z.year()-j.year())+(z.month()-j.month()),q=j.clone().add(Q,h),J=z-q<0,$=j.clone().add(Q+(J?-1:1),h);return+(-(Q+(z-q)/(J?q-$:$-q))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:h,y:m,w:d,d:f,D:y,h:l,m:u,s:o,ms:a,Q:p}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},_="en",x={};x[_]=S;var k="$isDayjsObject",A=function(D){return D instanceof H||!(!D||!D[k])},L=function D(j,z,Q){var q;if(!j)return _;if(typeof j=="string"){var J=j.toLowerCase();x[J]&&(q=J),z&&(x[J]=z,q=J);var $=j.split("-");if(!q&&$.length>1)return D($[0])}else{var Y=j.name;x[Y]=j,q=Y}return!Q&&q&&(_=q),q||!Q&&_},N=function(D,j){if(A(D))return D.clone();var z=typeof j=="object"?j:{};return z.date=D,z.args=arguments,new H(z)},F=T;F.l=L,F.i=A,F.w=function(D,j){return N(D,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var H=function(){function D(z){this.$L=L(z.locale,null,!0),this.parse(z),this.$x=this.$x||z.x||{},this[k]=!0}var j=D.prototype;return j.parse=function(z){this.$d=function(Q){var q=Q.date,J=Q.utc;if(q===null)return new Date(NaN);if(F.u(q))return new Date;if(q instanceof Date)return new Date(q);if(typeof q=="string"&&!/Z$/i.test(q)){var $=q.match(b);if($){var Y=$[2]-1||0,ae=($[7]||"0").substring(0,3);return J?new Date(Date.UTC($[1],Y,$[3]||1,$[4]||0,$[5]||0,$[6]||0,ae)):new Date($[1],Y,$[3]||1,$[4]||0,$[5]||0,$[6]||0,ae)}}return new Date(q)}(z),this.init()},j.init=function(){var z=this.$d;this.$y=z.getFullYear(),this.$M=z.getMonth(),this.$D=z.getDate(),this.$W=z.getDay(),this.$H=z.getHours(),this.$m=z.getMinutes(),this.$s=z.getSeconds(),this.$ms=z.getMilliseconds()},j.$utils=function(){return F},j.isValid=function(){return this.$d.toString()!==g},j.isSame=function(z,Q){var q=N(z);return this.startOf(Q)<=q&&q<=this.endOf(Q)},j.isAfter=function(z,Q){return N(z)<this.startOf(Q)},j.isBefore=function(z,Q){return this.endOf(Q)<N(z)},j.$g=function(z,Q,q){return F.u(z)?this[Q]:this.set(q,z)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(z,Q){var q=this,J=!!F.u(Q)||Q,$=F.p(z),Y=function(be,ne){var ve=F.w(q.$u?Date.UTC(q.$y,ne,be):new Date(q.$y,ne,be),q);return J?ve:ve.endOf(f)},ae=function(be,ne){return F.w(q.toDate()[be].apply(q.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(ne)),q)},ie=this.$W,te=this.$M,fe=this.$D,le="set"+(this.$u?"UTC":"");switch($){case m:return J?Y(1,0):Y(31,11);case h:return J?Y(1,te):Y(0,te+1);case d:var me=this.$locale().weekStart||0,_e=(ie<me?ie+7:ie)-me;return Y(J?fe-_e:fe+(6-_e),te);case f:case y:return ae(le+"Hours",0);case l:return ae(le+"Minutes",1);case u:return ae(le+"Seconds",2);case o:return ae(le+"Milliseconds",3);default:return this.clone()}},j.endOf=function(z){return this.startOf(z,!1)},j.$set=function(z,Q){var q,J=F.p(z),$="set"+(this.$u?"UTC":""),Y=(q={},q[f]=$+"Date",q[y]=$+"Date",q[h]=$+"Month",q[m]=$+"FullYear",q[l]=$+"Hours",q[u]=$+"Minutes",q[o]=$+"Seconds",q[a]=$+"Milliseconds",q)[J],ae=J===f?this.$D+(Q-this.$W):Q;if(J===h||J===m){var ie=this.clone().set(y,1);ie.$d[Y](ae),ie.init(),this.$d=ie.set(y,Math.min(this.$D,ie.daysInMonth())).$d}else Y&&this.$d[Y](ae);return this.init(),this},j.set=function(z,Q){return this.clone().$set(z,Q)},j.get=function(z){return this[F.p(z)]()},j.add=function(z,Q){var q,J=this;z=Number(z);var $=F.p(Q),Y=function(te){var fe=N(J);return F.w(fe.date(fe.date()+Math.round(te*z)),J)};if($===h)return this.set(h,this.$M+z);if($===m)return this.set(m,this.$y+z);if($===f)return Y(1);if($===d)return Y(7);var ae=(q={},q[u]=r,q[l]=i,q[o]=n,q)[$]||1,ie=this.$d.getTime()+z*ae;return F.w(ie,this)},j.subtract=function(z,Q){return this.add(-1*z,Q)},j.format=function(z){var Q=this,q=this.$locale();if(!this.isValid())return q.invalidDate||g;var J=z||"YYYY-MM-DDTHH:mm:ssZ",$=F.z(this),Y=this.$H,ae=this.$m,ie=this.$M,te=q.weekdays,fe=q.months,le=q.meridiem,me=function(ne,ve,K,we){return ne&&(ne[ve]||ne(Q,J))||K[ve].slice(0,we)},_e=function(ne){return F.s(Y%12||12,ne,"0")},be=le||function(ne,ve,K){var we=ne<12?"AM":"PM";return K?we.toLowerCase():we};return J.replace(w,function(ne,ve){return ve||function(K){switch(K){case"YY":return String(Q.$y).slice(-2);case"YYYY":return F.s(Q.$y,4,"0");case"M":return ie+1;case"MM":return F.s(ie+1,2,"0");case"MMM":return me(q.monthsShort,ie,fe,3);case"MMMM":return me(fe,ie);case"D":return Q.$D;case"DD":return F.s(Q.$D,2,"0");case"d":return String(Q.$W);case"dd":return me(q.weekdaysMin,Q.$W,te,2);case"ddd":return me(q.weekdaysShort,Q.$W,te,3);case"dddd":return te[Q.$W];case"H":return String(Y);case"HH":return F.s(Y,2,"0");case"h":return _e(1);case"hh":return _e(2);case"a":return be(Y,ae,!0);case"A":return be(Y,ae,!1);case"m":return String(ae);case"mm":return F.s(ae,2,"0");case"s":return String(Q.$s);case"ss":return F.s(Q.$s,2,"0");case"SSS":return F.s(Q.$ms,3,"0");case"Z":return $}return null}(ne)||$.replace(":","")})},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(z,Q,q){var J,$=this,Y=F.p(Q),ae=N(z),ie=(ae.utcOffset()-this.utcOffset())*r,te=this-ae,fe=function(){return F.m($,ae)};switch(Y){case m:J=fe()/12;break;case h:J=fe();break;case p:J=fe()/3;break;case d:J=(te-ie)/6048e5;break;case f:J=(te-ie)/864e5;break;case l:J=te/i;break;case u:J=te/r;break;case o:J=te/n;break;default:J=te}return q?J:F.a(J)},j.daysInMonth=function(){return this.endOf(h).$D},j.$locale=function(){return x[this.$L]},j.locale=function(z,Q){if(!z)return this.$L;var q=this.clone(),J=L(z,Q,!0);return J&&(q.$L=J),q},j.clone=function(){return F.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},D}(),V=H.prototype;return N.prototype=V,[["$ms",a],["$s",o],["$m",u],["$H",l],["$W",f],["$M",h],["$y",m],["$D",y]].forEach(function(D){V[D[1]]=function(j){return this.$g(j,D[0],D[1])}}),N.extend=function(D,j){return D.$i||(D(j,H,N),D.$i=!0),N},N.locale=L,N.isDayjs=A,N.unix=function(D){return N(1e3*D)},N.en=x[_],N.Ls=x,N.p={},N})}($l)),$l.exports}var r8=n8();const tu=ji(r8);var Vl={exports:{}},i8=Vl.exports,bb;function a8(){return bb||(bb=1,function(e,t){(function(n,r){e.exports=r()})(i8,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(a,o,u){var l=o.prototype;u.utc=function(g){var b={date:g,utc:!0,args:arguments};return new o(b)},l.utc=function(g){var b=u(this.toDate(),{locale:this.$L,utc:!0});return g?b.add(this.utcOffset(),n):b},l.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var f=l.parse;l.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),f.call(this,g)};var d=l.init;l.init=function(){if(this.$u){var g=this.$d;this.$y=g.getUTCFullYear(),this.$M=g.getUTCMonth(),this.$D=g.getUTCDate(),this.$W=g.getUTCDay(),this.$H=g.getUTCHours(),this.$m=g.getUTCMinutes(),this.$s=g.getUTCSeconds(),this.$ms=g.getUTCMilliseconds()}else d.call(this)};var h=l.utcOffset;l.utcOffset=function(g,b){var w=this.$utils().u;if(w(g))return this.$u?0:w(this.$offset)?h.call(this):this.$offset;if(typeof g=="string"&&(g=function(_){_===void 0&&(_="");var x=_.match(r);if(!x)return null;var k=(""+x[0]).match(i)||["-",0,0],A=k[0],L=60*+k[1]+ +k[2];return L===0?0:A==="+"?L:-L}(g),g===null))return this;var S=Math.abs(g)<=16?60*g:g,C=this;if(b)return C.$offset=S,C.$u=g===0,C;if(g!==0){var T=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(C=this.local().add(S+T,n)).$offset=S,C.$x.$localOffset=T}else C=this.utc();return C};var p=l.format;l.format=function(g){var b=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,b)},l.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var m=l.toDate;l.toDate=function(g){return g==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():m.call(this)};var y=l.diff;l.diff=function(g,b,w){if(g&&this.$u===g.$u)return y.call(this,g,b,w);var S=this.local(),C=u(g).local();return y.call(S,C,b,w)}}})}(Vl)),Vl.exports}var o8=a8();const s8=ji(o8);class u8 extends Error{}u8.prototype.name="InvalidTokenError";var nu={exports:{}};/**
59
59
  * @license
60
60
  * Lodash <https://lodash.com/>
61
61
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
62
62
  * Released under MIT license <https://lodash.com/license>
63
63
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
64
64
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
65
- */var l8=nu.exports,_b;function c8(){return _b||(_b=1,function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",u="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",f=500,d="__lodash_placeholder__",h=1,p=2,m=4,y=1,g=2,b=1,w=2,S=4,C=8,T=16,_=32,x=64,k=128,A=256,L=512,N=30,F="...",H=800,V=16,D=1,j=2,z=3,Y=1/0,q=9007199254740991,J=17976931348623157e292,$=NaN,K=4294967295,ae=K-1,ie=K>>>1,te=[["ary",k],["bind",b],["bindKey",w],["curry",C],["curryRight",T],["flip",L],["partial",_],["partialRight",x],["rearg",A]],fe="[object Arguments]",le="[object Array]",ve="[object AsyncFunction]",_e="[object Boolean]",be="[object Date]",we="[object DOMException]",ne="[object Error]",W="[object Function]",ye="[object GeneratorFunction]",ue="[object Map]",Te="[object Number]",Re="[object Null]",Ze="[object Object]",ft="[object Promise]",dt="[object Proxy]",kt="[object RegExp]",Ve="[object Set]",et="[object String]",Ee="[object Symbol]",Rt="[object Undefined]",Tt="[object WeakMap]",Yt="[object WeakSet]",un="[object ArrayBuffer]",Kt="[object DataView]",Be="[object Float32Array]",Jt="[object Float64Array]",At="[object Int8Array]",mt="[object Int16Array]",Ut="[object Int32Array]",mn="[object Uint8Array]",xi="[object Uint8ClampedArray]",ur="[object Uint16Array]",gn="[object Uint32Array]",Qn=/\b__p \+= '';/g,sa=/\b(__p \+=) '' \+/g,lr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,si=/&(?:amp|lt|gt|quot|#39);/g,ui=/[&<>"']/g,$n=RegExp(si.source),En=RegExp(ui.source),li=/<%-([\s\S]+?)%>/g,cn=/<%([\s\S]+?)%>/g,Yn=/<%=([\s\S]+?)%>/g,gt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pt=/^\w*$/,Vn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Kn=/[\\^$.*+?()[\]{}|]/g,ci=RegExp(Kn.source),yn=/^\s+/,ua=/\s/,Ci=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kr=/\{\n\/\* \[wrapped with (.+)\] \*/,B=/,? & /,ge=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Se=/[()=,{}\[\]\/\s]/,Le=/\\(\\)?/g,it=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,at=/\w*$/,We=/^[-+]0x[0-9a-f]+$/i,qe=/^0b[01]+$/i,zt=/^\[object .+?Constructor\]$/,yt=/^0o[0-7]+$/i,Dt=/^(?:0|[1-9]\d*)$/,vt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Nn=/($^)/,cr=/['\n\r\u2028\u2029\\]/g,Mt="\\ud800-\\udfff",fi="\\u0300-\\u036f",Ga="\\ufe20-\\ufe2f",la="\\u20d0-\\u20ff",Qa=fi+Ga+la,di="\\u2700-\\u27bf",Ya="a-z\\xdf-\\xf6\\xf8-\\xff",ca="\\xac\\xb1\\xd7\\xf7",Kr="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",cs="\\u2000-\\u206f",fs=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",fr="A-Z\\xc0-\\xd6\\xd8-\\xde",Xn="\\ufe0e\\ufe0f",Ti=ca+Kr+cs+fs,hi="['’]",Rr="["+Mt+"]",ds="["+Ti+"]",Oi="["+Qa+"]",hs="\\d+",Ka="["+di+"]",ps="["+Ya+"]",vs="[^"+Mt+Ti+hs+di+Ya+fr+"]",Xa="\\ud83c[\\udffb-\\udfff]",ms="(?:"+Oi+"|"+Xa+")",gs="[^"+Mt+"]",Za="(?:\\ud83c[\\udde6-\\uddff]){2}",fa="[\\ud800-\\udbff][\\udc00-\\udfff]",pi="["+fr+"]",ys="\\u200d",da="(?:"+ps+"|"+vs+")",Ar="(?:"+pi+"|"+vs+")",bs="(?:"+hi+"(?:d|ll|m|re|s|t|ve))?",qn="(?:"+hi+"(?:D|LL|M|RE|S|T|VE))?",Ja=ms+"?",ki="["+Xn+"]?",vi="(?:"+ys+"(?:"+[gs,Za,fa].join("|")+")"+ki+Ja+")*",mi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",eo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",to=ki+Ja+vi,Uu="(?:"+[Ka,Za,fa].join("|")+")"+to,zu="(?:"+[gs+Oi+"?",Oi,Za,fa,Rr].join("|")+")",Hu=RegExp(hi,"g"),Pe=RegExp(Oi,"g"),Fe=RegExp(Xa+"(?="+Xa+")|"+zu+to,"g"),Vt=RegExp([pi+"?"+ps+"+"+bs+"(?="+[ds,pi,"$"].join("|")+")",Ar+"+"+qn+"(?="+[ds,pi+da,"$"].join("|")+")",pi+"?"+da+"+"+bs,pi+"+"+qn,eo,mi,hs,Uu].join("|"),"g"),rn=RegExp("["+ys+Mt+Qa+Xn+"]"),Ht=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_s=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Bu=-1,Lt={};Lt[Be]=Lt[Jt]=Lt[At]=Lt[mt]=Lt[Ut]=Lt[mn]=Lt[xi]=Lt[ur]=Lt[gn]=!0,Lt[fe]=Lt[le]=Lt[un]=Lt[_e]=Lt[Kt]=Lt[be]=Lt[ne]=Lt[W]=Lt[ue]=Lt[Te]=Lt[Ze]=Lt[kt]=Lt[Ve]=Lt[et]=Lt[Tt]=!1;var bt={};bt[fe]=bt[le]=bt[un]=bt[Kt]=bt[_e]=bt[be]=bt[Be]=bt[Jt]=bt[At]=bt[mt]=bt[Ut]=bt[ue]=bt[Te]=bt[Ze]=bt[kt]=bt[Ve]=bt[et]=bt[Ee]=bt[mn]=bt[xi]=bt[ur]=bt[gn]=!0,bt[ne]=bt[W]=bt[Tt]=!1;var mD={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},gD={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},yD={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},bD={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_D=parseFloat,wD=parseInt,mC=typeof sl=="object"&&sl&&sl.Object===Object&&sl,ED=typeof self=="object"&&self&&self.Object===Object&&self,Sn=mC||ED||Function("return this")(),Mg=t&&!t.nodeType&&t,no=Mg&&!0&&e&&!e.nodeType&&e,gC=no&&no.exports===Mg,jg=gC&&mC.process,Pr=function(){try{var Z=no&&no.require&&no.require("util").types;return Z||jg&&jg.binding&&jg.binding("util")}catch{}}(),yC=Pr&&Pr.isArrayBuffer,bC=Pr&&Pr.isDate,_C=Pr&&Pr.isMap,wC=Pr&&Pr.isRegExp,EC=Pr&&Pr.isSet,SC=Pr&&Pr.isTypedArray;function dr(Z,ce,oe){switch(oe.length){case 0:return Z.call(ce);case 1:return Z.call(ce,oe[0]);case 2:return Z.call(ce,oe[0],oe[1]);case 3:return Z.call(ce,oe[0],oe[1],oe[2])}return Z.apply(ce,oe)}function SD(Z,ce,oe,Ae){for(var Ge=-1,_t=Z==null?0:Z.length;++Ge<_t;){var fn=Z[Ge];ce(Ae,fn,oe(fn),Z)}return Ae}function Nr(Z,ce){for(var oe=-1,Ae=Z==null?0:Z.length;++oe<Ae&&ce(Z[oe],oe,Z)!==!1;);return Z}function xD(Z,ce){for(var oe=Z==null?0:Z.length;oe--&&ce(Z[oe],oe,Z)!==!1;);return Z}function xC(Z,ce){for(var oe=-1,Ae=Z==null?0:Z.length;++oe<Ae;)if(!ce(Z[oe],oe,Z))return!1;return!0}function ha(Z,ce){for(var oe=-1,Ae=Z==null?0:Z.length,Ge=0,_t=[];++oe<Ae;){var fn=Z[oe];ce(fn,oe,Z)&&(_t[Ge++]=fn)}return _t}function Cf(Z,ce){var oe=Z==null?0:Z.length;return!!oe&&ws(Z,ce,0)>-1}function $g(Z,ce,oe){for(var Ae=-1,Ge=Z==null?0:Z.length;++Ae<Ge;)if(oe(ce,Z[Ae]))return!0;return!1}function Bt(Z,ce){for(var oe=-1,Ae=Z==null?0:Z.length,Ge=Array(Ae);++oe<Ae;)Ge[oe]=ce(Z[oe],oe,Z);return Ge}function pa(Z,ce){for(var oe=-1,Ae=ce.length,Ge=Z.length;++oe<Ae;)Z[Ge+oe]=ce[oe];return Z}function Vg(Z,ce,oe,Ae){var Ge=-1,_t=Z==null?0:Z.length;for(Ae&&_t&&(oe=Z[++Ge]);++Ge<_t;)oe=ce(oe,Z[Ge],Ge,Z);return oe}function CD(Z,ce,oe,Ae){var Ge=Z==null?0:Z.length;for(Ae&&Ge&&(oe=Z[--Ge]);Ge--;)oe=ce(oe,Z[Ge],Ge,Z);return oe}function qg(Z,ce){for(var oe=-1,Ae=Z==null?0:Z.length;++oe<Ae;)if(ce(Z[oe],oe,Z))return!0;return!1}var TD=Ug("length");function OD(Z){return Z.split("")}function kD(Z){return Z.match(ge)||[]}function CC(Z,ce,oe){var Ae;return oe(Z,function(Ge,_t,fn){if(ce(Ge,_t,fn))return Ae=_t,!1}),Ae}function Tf(Z,ce,oe,Ae){for(var Ge=Z.length,_t=oe+(Ae?1:-1);Ae?_t--:++_t<Ge;)if(ce(Z[_t],_t,Z))return _t;return-1}function ws(Z,ce,oe){return ce===ce?VD(Z,ce,oe):Tf(Z,TC,oe)}function RD(Z,ce,oe,Ae){for(var Ge=oe-1,_t=Z.length;++Ge<_t;)if(Ae(Z[Ge],ce))return Ge;return-1}function TC(Z){return Z!==Z}function OC(Z,ce){var oe=Z==null?0:Z.length;return oe?Hg(Z,ce)/oe:$}function Ug(Z){return function(ce){return ce==null?n:ce[Z]}}function zg(Z){return function(ce){return Z==null?n:Z[ce]}}function kC(Z,ce,oe,Ae,Ge){return Ge(Z,function(_t,fn,jt){oe=Ae?(Ae=!1,_t):ce(oe,_t,fn,jt)}),oe}function AD(Z,ce){var oe=Z.length;for(Z.sort(ce);oe--;)Z[oe]=Z[oe].value;return Z}function Hg(Z,ce){for(var oe,Ae=-1,Ge=Z.length;++Ae<Ge;){var _t=ce(Z[Ae]);_t!==n&&(oe=oe===n?_t:oe+_t)}return oe}function Bg(Z,ce){for(var oe=-1,Ae=Array(Z);++oe<Z;)Ae[oe]=ce(oe);return Ae}function PD(Z,ce){return Bt(ce,function(oe){return[oe,Z[oe]]})}function RC(Z){return Z&&Z.slice(0,IC(Z)+1).replace(yn,"")}function hr(Z){return function(ce){return Z(ce)}}function Wg(Z,ce){return Bt(ce,function(oe){return Z[oe]})}function Wu(Z,ce){return Z.has(ce)}function AC(Z,ce){for(var oe=-1,Ae=Z.length;++oe<Ae&&ws(ce,Z[oe],0)>-1;);return oe}function PC(Z,ce){for(var oe=Z.length;oe--&&ws(ce,Z[oe],0)>-1;);return oe}function ND(Z,ce){for(var oe=Z.length,Ae=0;oe--;)Z[oe]===ce&&++Ae;return Ae}var ID=zg(mD),LD=zg(gD);function FD(Z){return"\\"+bD[Z]}function DD(Z,ce){return Z==null?n:Z[ce]}function Es(Z){return rn.test(Z)}function MD(Z){return Ht.test(Z)}function jD(Z){for(var ce,oe=[];!(ce=Z.next()).done;)oe.push(ce.value);return oe}function Gg(Z){var ce=-1,oe=Array(Z.size);return Z.forEach(function(Ae,Ge){oe[++ce]=[Ge,Ae]}),oe}function NC(Z,ce){return function(oe){return Z(ce(oe))}}function va(Z,ce){for(var oe=-1,Ae=Z.length,Ge=0,_t=[];++oe<Ae;){var fn=Z[oe];(fn===ce||fn===d)&&(Z[oe]=d,_t[Ge++]=oe)}return _t}function Of(Z){var ce=-1,oe=Array(Z.size);return Z.forEach(function(Ae){oe[++ce]=Ae}),oe}function $D(Z){var ce=-1,oe=Array(Z.size);return Z.forEach(function(Ae){oe[++ce]=[Ae,Ae]}),oe}function VD(Z,ce,oe){for(var Ae=oe-1,Ge=Z.length;++Ae<Ge;)if(Z[Ae]===ce)return Ae;return-1}function qD(Z,ce,oe){for(var Ae=oe+1;Ae--;)if(Z[Ae]===ce)return Ae;return Ae}function Ss(Z){return Es(Z)?zD(Z):TD(Z)}function Xr(Z){return Es(Z)?HD(Z):OD(Z)}function IC(Z){for(var ce=Z.length;ce--&&ua.test(Z.charAt(ce)););return ce}var UD=zg(yD);function zD(Z){for(var ce=Fe.lastIndex=0;Fe.test(Z);)++ce;return ce}function HD(Z){return Z.match(Fe)||[]}function BD(Z){return Z.match(Vt)||[]}var WD=function Z(ce){ce=ce==null?Sn:xs.defaults(Sn.Object(),ce,xs.pick(Sn,_s));var oe=ce.Array,Ae=ce.Date,Ge=ce.Error,_t=ce.Function,fn=ce.Math,jt=ce.Object,Qg=ce.RegExp,GD=ce.String,Ir=ce.TypeError,kf=oe.prototype,QD=_t.prototype,Cs=jt.prototype,Rf=ce["__core-js_shared__"],Af=QD.toString,Nt=Cs.hasOwnProperty,YD=0,LC=function(){var s=/[^.]+$/.exec(Rf&&Rf.keys&&Rf.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Pf=Cs.toString,KD=Af.call(jt),XD=Sn._,ZD=Qg("^"+Af.call(Nt).replace(Kn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Nf=gC?ce.Buffer:n,ma=ce.Symbol,If=ce.Uint8Array,FC=Nf?Nf.allocUnsafe:n,Lf=NC(jt.getPrototypeOf,jt),DC=jt.create,MC=Cs.propertyIsEnumerable,Ff=kf.splice,jC=ma?ma.isConcatSpreadable:n,Gu=ma?ma.iterator:n,ro=ma?ma.toStringTag:n,Df=function(){try{var s=uo(jt,"defineProperty");return s({},"",{}),s}catch{}}(),JD=ce.clearTimeout!==Sn.clearTimeout&&ce.clearTimeout,eM=Ae&&Ae.now!==Sn.Date.now&&Ae.now,tM=ce.setTimeout!==Sn.setTimeout&&ce.setTimeout,Mf=fn.ceil,jf=fn.floor,Yg=jt.getOwnPropertySymbols,nM=Nf?Nf.isBuffer:n,$C=ce.isFinite,rM=kf.join,iM=NC(jt.keys,jt),dn=fn.max,In=fn.min,aM=Ae.now,oM=ce.parseInt,VC=fn.random,sM=kf.reverse,Kg=uo(ce,"DataView"),Qu=uo(ce,"Map"),Xg=uo(ce,"Promise"),Ts=uo(ce,"Set"),Yu=uo(ce,"WeakMap"),Ku=uo(jt,"create"),$f=Yu&&new Yu,Os={},uM=lo(Kg),lM=lo(Qu),cM=lo(Xg),fM=lo(Ts),dM=lo(Yu),Vf=ma?ma.prototype:n,Xu=Vf?Vf.valueOf:n,qC=Vf?Vf.toString:n;function P(s){if(en(s)&&!Ye(s)&&!(s instanceof lt)){if(s instanceof Lr)return s;if(Nt.call(s,"__wrapped__"))return U5(s)}return new Lr(s)}var ks=function(){function s(){}return function(c){if(!Xt(c))return{};if(DC)return DC(c);s.prototype=c;var v=new s;return s.prototype=n,v}}();function qf(){}function Lr(s,c){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!c,this.__index__=0,this.__values__=n}P.templateSettings={escape:li,evaluate:cn,interpolate:Yn,variable:"",imports:{_:P}},P.prototype=qf.prototype,P.prototype.constructor=P,Lr.prototype=ks(qf.prototype),Lr.prototype.constructor=Lr;function lt(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=K,this.__views__=[]}function hM(){var s=new lt(this.__wrapped__);return s.__actions__=Zn(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Zn(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Zn(this.__views__),s}function pM(){if(this.__filtered__){var s=new lt(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function vM(){var s=this.__wrapped__.value(),c=this.__dir__,v=Ye(s),E=c<0,R=v?s.length:0,I=Oj(0,R,this.__views__),U=I.start,G=I.end,ee=G-U,he=E?G:U-1,pe=this.__iteratees__,me=pe.length,xe=0,Ie=In(ee,this.__takeCount__);if(!v||!E&&R==ee&&Ie==ee)return f5(s,this.__actions__);var je=[];e:for(;ee--&&xe<Ie;){he+=c;for(var tt=-1,$e=s[he];++tt<me;){var ot=pe[tt],ht=ot.iteratee,mr=ot.type,Hn=ht($e);if(mr==j)$e=Hn;else if(!Hn){if(mr==D)continue e;break e}}je[xe++]=$e}return je}lt.prototype=ks(qf.prototype),lt.prototype.constructor=lt;function io(s){var c=-1,v=s==null?0:s.length;for(this.clear();++c<v;){var E=s[c];this.set(E[0],E[1])}}function mM(){this.__data__=Ku?Ku(null):{},this.size=0}function gM(s){var c=this.has(s)&&delete this.__data__[s];return this.size-=c?1:0,c}function yM(s){var c=this.__data__;if(Ku){var v=c[s];return v===l?n:v}return Nt.call(c,s)?c[s]:n}function bM(s){var c=this.__data__;return Ku?c[s]!==n:Nt.call(c,s)}function _M(s,c){var v=this.__data__;return this.size+=this.has(s)?0:1,v[s]=Ku&&c===n?l:c,this}io.prototype.clear=mM,io.prototype.delete=gM,io.prototype.get=yM,io.prototype.has=bM,io.prototype.set=_M;function Ri(s){var c=-1,v=s==null?0:s.length;for(this.clear();++c<v;){var E=s[c];this.set(E[0],E[1])}}function wM(){this.__data__=[],this.size=0}function EM(s){var c=this.__data__,v=Uf(c,s);if(v<0)return!1;var E=c.length-1;return v==E?c.pop():Ff.call(c,v,1),--this.size,!0}function SM(s){var c=this.__data__,v=Uf(c,s);return v<0?n:c[v][1]}function xM(s){return Uf(this.__data__,s)>-1}function CM(s,c){var v=this.__data__,E=Uf(v,s);return E<0?(++this.size,v.push([s,c])):v[E][1]=c,this}Ri.prototype.clear=wM,Ri.prototype.delete=EM,Ri.prototype.get=SM,Ri.prototype.has=xM,Ri.prototype.set=CM;function Ai(s){var c=-1,v=s==null?0:s.length;for(this.clear();++c<v;){var E=s[c];this.set(E[0],E[1])}}function TM(){this.size=0,this.__data__={hash:new io,map:new(Qu||Ri),string:new io}}function OM(s){var c=ed(this,s).delete(s);return this.size-=c?1:0,c}function kM(s){return ed(this,s).get(s)}function RM(s){return ed(this,s).has(s)}function AM(s,c){var v=ed(this,s),E=v.size;return v.set(s,c),this.size+=v.size==E?0:1,this}Ai.prototype.clear=TM,Ai.prototype.delete=OM,Ai.prototype.get=kM,Ai.prototype.has=RM,Ai.prototype.set=AM;function ao(s){var c=-1,v=s==null?0:s.length;for(this.__data__=new Ai;++c<v;)this.add(s[c])}function PM(s){return this.__data__.set(s,l),this}function NM(s){return this.__data__.has(s)}ao.prototype.add=ao.prototype.push=PM,ao.prototype.has=NM;function Zr(s){var c=this.__data__=new Ri(s);this.size=c.size}function IM(){this.__data__=new Ri,this.size=0}function LM(s){var c=this.__data__,v=c.delete(s);return this.size=c.size,v}function FM(s){return this.__data__.get(s)}function DM(s){return this.__data__.has(s)}function MM(s,c){var v=this.__data__;if(v instanceof Ri){var E=v.__data__;if(!Qu||E.length<i-1)return E.push([s,c]),this.size=++v.size,this;v=this.__data__=new Ai(E)}return v.set(s,c),this.size=v.size,this}Zr.prototype.clear=IM,Zr.prototype.delete=LM,Zr.prototype.get=FM,Zr.prototype.has=DM,Zr.prototype.set=MM;function UC(s,c){var v=Ye(s),E=!v&&co(s),R=!v&&!E&&wa(s),I=!v&&!E&&!R&&Ns(s),U=v||E||R||I,G=U?Bg(s.length,GD):[],ee=G.length;for(var he in s)(c||Nt.call(s,he))&&!(U&&(he=="length"||R&&(he=="offset"||he=="parent")||I&&(he=="buffer"||he=="byteLength"||he=="byteOffset")||Li(he,ee)))&&G.push(he);return G}function zC(s){var c=s.length;return c?s[u1(0,c-1)]:n}function jM(s,c){return td(Zn(s),oo(c,0,s.length))}function $M(s){return td(Zn(s))}function Zg(s,c,v){(v!==n&&!Jr(s[c],v)||v===n&&!(c in s))&&Pi(s,c,v)}function Zu(s,c,v){var E=s[c];(!(Nt.call(s,c)&&Jr(E,v))||v===n&&!(c in s))&&Pi(s,c,v)}function Uf(s,c){for(var v=s.length;v--;)if(Jr(s[v][0],c))return v;return-1}function VM(s,c,v,E){return ga(s,function(R,I,U){c(E,R,v(R),U)}),E}function HC(s,c){return s&&yi(c,bn(c),s)}function qM(s,c){return s&&yi(c,er(c),s)}function Pi(s,c,v){c=="__proto__"&&Df?Df(s,c,{configurable:!0,enumerable:!0,value:v,writable:!0}):s[c]=v}function Jg(s,c){for(var v=-1,E=c.length,R=oe(E),I=s==null;++v<E;)R[v]=I?n:I1(s,c[v]);return R}function oo(s,c,v){return s===s&&(v!==n&&(s=s<=v?s:v),c!==n&&(s=s>=c?s:c)),s}function Fr(s,c,v,E,R,I){var U,G=c&h,ee=c&p,he=c&m;if(v&&(U=R?v(s,E,R,I):v(s)),U!==n)return U;if(!Xt(s))return s;var pe=Ye(s);if(pe){if(U=Rj(s),!G)return Zn(s,U)}else{var me=Ln(s),xe=me==W||me==ye;if(wa(s))return p5(s,G);if(me==Ze||me==fe||xe&&!R){if(U=ee||xe?{}:I5(s),!G)return ee?yj(s,qM(U,s)):gj(s,HC(U,s))}else{if(!bt[me])return R?s:{};U=Aj(s,me,G)}}I||(I=new Zr);var Ie=I.get(s);if(Ie)return Ie;I.set(s,U),u6(s)?s.forEach(function($e){U.add(Fr($e,c,v,$e,s,I))}):o6(s)&&s.forEach(function($e,ot){U.set(ot,Fr($e,c,v,ot,s,I))});var je=he?ee?b1:y1:ee?er:bn,tt=pe?n:je(s);return Nr(tt||s,function($e,ot){tt&&(ot=$e,$e=s[ot]),Zu(U,ot,Fr($e,c,v,ot,s,I))}),U}function UM(s){var c=bn(s);return function(v){return BC(v,s,c)}}function BC(s,c,v){var E=v.length;if(s==null)return!E;for(s=jt(s);E--;){var R=v[E],I=c[R],U=s[R];if(U===n&&!(R in s)||!I(U))return!1}return!0}function WC(s,c,v){if(typeof s!="function")throw new Ir(o);return al(function(){s.apply(n,v)},c)}function Ju(s,c,v,E){var R=-1,I=Cf,U=!0,G=s.length,ee=[],he=c.length;if(!G)return ee;v&&(c=Bt(c,hr(v))),E?(I=$g,U=!1):c.length>=i&&(I=Wu,U=!1,c=new ao(c));e:for(;++R<G;){var pe=s[R],me=v==null?pe:v(pe);if(pe=E||pe!==0?pe:0,U&&me===me){for(var xe=he;xe--;)if(c[xe]===me)continue e;ee.push(pe)}else I(c,me,E)||ee.push(pe)}return ee}var ga=b5(gi),GC=b5(t1,!0);function zM(s,c){var v=!0;return ga(s,function(E,R,I){return v=!!c(E,R,I),v}),v}function zf(s,c,v){for(var E=-1,R=s.length;++E<R;){var I=s[E],U=c(I);if(U!=null&&(G===n?U===U&&!vr(U):v(U,G)))var G=U,ee=I}return ee}function HM(s,c,v,E){var R=s.length;for(v=Je(v),v<0&&(v=-v>R?0:R+v),E=E===n||E>R?R:Je(E),E<0&&(E+=R),E=v>E?0:c6(E);v<E;)s[v++]=c;return s}function QC(s,c){var v=[];return ga(s,function(E,R,I){c(E,R,I)&&v.push(E)}),v}function xn(s,c,v,E,R){var I=-1,U=s.length;for(v||(v=Nj),R||(R=[]);++I<U;){var G=s[I];c>0&&v(G)?c>1?xn(G,c-1,v,E,R):pa(R,G):E||(R[R.length]=G)}return R}var e1=_5(),YC=_5(!0);function gi(s,c){return s&&e1(s,c,bn)}function t1(s,c){return s&&YC(s,c,bn)}function Hf(s,c){return ha(c,function(v){return Fi(s[v])})}function so(s,c){c=ba(c,s);for(var v=0,E=c.length;s!=null&&v<E;)s=s[bi(c[v++])];return v&&v==E?s:n}function KC(s,c,v){var E=c(s);return Ye(s)?E:pa(E,v(s))}function Un(s){return s==null?s===n?Rt:Re:ro&&ro in jt(s)?Tj(s):$j(s)}function n1(s,c){return s>c}function BM(s,c){return s!=null&&Nt.call(s,c)}function WM(s,c){return s!=null&&c in jt(s)}function GM(s,c,v){return s>=In(c,v)&&s<dn(c,v)}function r1(s,c,v){for(var E=v?$g:Cf,R=s[0].length,I=s.length,U=I,G=oe(I),ee=1/0,he=[];U--;){var pe=s[U];U&&c&&(pe=Bt(pe,hr(c))),ee=In(pe.length,ee),G[U]=!v&&(c||R>=120&&pe.length>=120)?new ao(U&&pe):n}pe=s[0];var me=-1,xe=G[0];e:for(;++me<R&&he.length<ee;){var Ie=pe[me],je=c?c(Ie):Ie;if(Ie=v||Ie!==0?Ie:0,!(xe?Wu(xe,je):E(he,je,v))){for(U=I;--U;){var tt=G[U];if(!(tt?Wu(tt,je):E(s[U],je,v)))continue e}xe&&xe.push(je),he.push(Ie)}}return he}function QM(s,c,v,E){return gi(s,function(R,I,U){c(E,v(R),I,U)}),E}function el(s,c,v){c=ba(c,s),s=M5(s,c);var E=s==null?s:s[bi(Mr(c))];return E==null?n:dr(E,s,v)}function XC(s){return en(s)&&Un(s)==fe}function YM(s){return en(s)&&Un(s)==un}function KM(s){return en(s)&&Un(s)==be}function tl(s,c,v,E,R){return s===c?!0:s==null||c==null||!en(s)&&!en(c)?s!==s&&c!==c:XM(s,c,v,E,tl,R)}function XM(s,c,v,E,R,I){var U=Ye(s),G=Ye(c),ee=U?le:Ln(s),he=G?le:Ln(c);ee=ee==fe?Ze:ee,he=he==fe?Ze:he;var pe=ee==Ze,me=he==Ze,xe=ee==he;if(xe&&wa(s)){if(!wa(c))return!1;U=!0,pe=!1}if(xe&&!pe)return I||(I=new Zr),U||Ns(s)?A5(s,c,v,E,R,I):xj(s,c,ee,v,E,R,I);if(!(v&y)){var Ie=pe&&Nt.call(s,"__wrapped__"),je=me&&Nt.call(c,"__wrapped__");if(Ie||je){var tt=Ie?s.value():s,$e=je?c.value():c;return I||(I=new Zr),R(tt,$e,v,E,I)}}return xe?(I||(I=new Zr),Cj(s,c,v,E,R,I)):!1}function ZM(s){return en(s)&&Ln(s)==ue}function i1(s,c,v,E){var R=v.length,I=R,U=!E;if(s==null)return!I;for(s=jt(s);R--;){var G=v[R];if(U&&G[2]?G[1]!==s[G[0]]:!(G[0]in s))return!1}for(;++R<I;){G=v[R];var ee=G[0],he=s[ee],pe=G[1];if(U&&G[2]){if(he===n&&!(ee in s))return!1}else{var me=new Zr;if(E)var xe=E(he,pe,ee,s,c,me);if(!(xe===n?tl(pe,he,y|g,E,me):xe))return!1}}return!0}function ZC(s){if(!Xt(s)||Lj(s))return!1;var c=Fi(s)?ZD:zt;return c.test(lo(s))}function JM(s){return en(s)&&Un(s)==kt}function ej(s){return en(s)&&Ln(s)==Ve}function tj(s){return en(s)&&sd(s.length)&&!!Lt[Un(s)]}function JC(s){return typeof s=="function"?s:s==null?tr:typeof s=="object"?Ye(s)?n5(s[0],s[1]):t5(s):w6(s)}function a1(s){if(!il(s))return iM(s);var c=[];for(var v in jt(s))Nt.call(s,v)&&v!="constructor"&&c.push(v);return c}function nj(s){if(!Xt(s))return jj(s);var c=il(s),v=[];for(var E in s)E=="constructor"&&(c||!Nt.call(s,E))||v.push(E);return v}function o1(s,c){return s<c}function e5(s,c){var v=-1,E=Jn(s)?oe(s.length):[];return ga(s,function(R,I,U){E[++v]=c(R,I,U)}),E}function t5(s){var c=w1(s);return c.length==1&&c[0][2]?F5(c[0][0],c[0][1]):function(v){return v===s||i1(v,s,c)}}function n5(s,c){return S1(s)&&L5(c)?F5(bi(s),c):function(v){var E=I1(v,s);return E===n&&E===c?L1(v,s):tl(c,E,y|g)}}function Bf(s,c,v,E,R){s!==c&&e1(c,function(I,U){if(R||(R=new Zr),Xt(I))rj(s,c,U,v,Bf,E,R);else{var G=E?E(C1(s,U),I,U+"",s,c,R):n;G===n&&(G=I),Zg(s,U,G)}},er)}function rj(s,c,v,E,R,I,U){var G=C1(s,v),ee=C1(c,v),he=U.get(ee);if(he){Zg(s,v,he);return}var pe=I?I(G,ee,v+"",s,c,U):n,me=pe===n;if(me){var xe=Ye(ee),Ie=!xe&&wa(ee),je=!xe&&!Ie&&Ns(ee);pe=ee,xe||Ie||je?Ye(G)?pe=G:an(G)?pe=Zn(G):Ie?(me=!1,pe=p5(ee,!0)):je?(me=!1,pe=v5(ee,!0)):pe=[]:ol(ee)||co(ee)?(pe=G,co(G)?pe=f6(G):(!Xt(G)||Fi(G))&&(pe=I5(ee))):me=!1}me&&(U.set(ee,pe),R(pe,ee,E,I,U),U.delete(ee)),Zg(s,v,pe)}function r5(s,c){var v=s.length;if(v)return c+=c<0?v:0,Li(c,v)?s[c]:n}function i5(s,c,v){c.length?c=Bt(c,function(I){return Ye(I)?function(U){return so(U,I.length===1?I[0]:I)}:I}):c=[tr];var E=-1;c=Bt(c,hr(Me()));var R=e5(s,function(I,U,G){var ee=Bt(c,function(he){return he(I)});return{criteria:ee,index:++E,value:I}});return AD(R,function(I,U){return mj(I,U,v)})}function ij(s,c){return a5(s,c,function(v,E){return L1(s,E)})}function a5(s,c,v){for(var E=-1,R=c.length,I={};++E<R;){var U=c[E],G=so(s,U);v(G,U)&&nl(I,ba(U,s),G)}return I}function aj(s){return function(c){return so(c,s)}}function s1(s,c,v,E){var R=E?RD:ws,I=-1,U=c.length,G=s;for(s===c&&(c=Zn(c)),v&&(G=Bt(s,hr(v)));++I<U;)for(var ee=0,he=c[I],pe=v?v(he):he;(ee=R(G,pe,ee,E))>-1;)G!==s&&Ff.call(G,ee,1),Ff.call(s,ee,1);return s}function o5(s,c){for(var v=s?c.length:0,E=v-1;v--;){var R=c[v];if(v==E||R!==I){var I=R;Li(R)?Ff.call(s,R,1):f1(s,R)}}return s}function u1(s,c){return s+jf(VC()*(c-s+1))}function oj(s,c,v,E){for(var R=-1,I=dn(Mf((c-s)/(v||1)),0),U=oe(I);I--;)U[E?I:++R]=s,s+=v;return U}function l1(s,c){var v="";if(!s||c<1||c>q)return v;do c%2&&(v+=s),c=jf(c/2),c&&(s+=s);while(c);return v}function rt(s,c){return T1(D5(s,c,tr),s+"")}function sj(s){return zC(Is(s))}function uj(s,c){var v=Is(s);return td(v,oo(c,0,v.length))}function nl(s,c,v,E){if(!Xt(s))return s;c=ba(c,s);for(var R=-1,I=c.length,U=I-1,G=s;G!=null&&++R<I;){var ee=bi(c[R]),he=v;if(ee==="__proto__"||ee==="constructor"||ee==="prototype")return s;if(R!=U){var pe=G[ee];he=E?E(pe,ee,G):n,he===n&&(he=Xt(pe)?pe:Li(c[R+1])?[]:{})}Zu(G,ee,he),G=G[ee]}return s}var s5=$f?function(s,c){return $f.set(s,c),s}:tr,lj=Df?function(s,c){return Df(s,"toString",{configurable:!0,enumerable:!1,value:D1(c),writable:!0})}:tr;function cj(s){return td(Is(s))}function Dr(s,c,v){var E=-1,R=s.length;c<0&&(c=-c>R?0:R+c),v=v>R?R:v,v<0&&(v+=R),R=c>v?0:v-c>>>0,c>>>=0;for(var I=oe(R);++E<R;)I[E]=s[E+c];return I}function fj(s,c){var v;return ga(s,function(E,R,I){return v=c(E,R,I),!v}),!!v}function Wf(s,c,v){var E=0,R=s==null?E:s.length;if(typeof c=="number"&&c===c&&R<=ie){for(;E<R;){var I=E+R>>>1,U=s[I];U!==null&&!vr(U)&&(v?U<=c:U<c)?E=I+1:R=I}return R}return c1(s,c,tr,v)}function c1(s,c,v,E){var R=0,I=s==null?0:s.length;if(I===0)return 0;c=v(c);for(var U=c!==c,G=c===null,ee=vr(c),he=c===n;R<I;){var pe=jf((R+I)/2),me=v(s[pe]),xe=me!==n,Ie=me===null,je=me===me,tt=vr(me);if(U)var $e=E||je;else he?$e=je&&(E||xe):G?$e=je&&xe&&(E||!Ie):ee?$e=je&&xe&&!Ie&&(E||!tt):Ie||tt?$e=!1:$e=E?me<=c:me<c;$e?R=pe+1:I=pe}return In(I,ae)}function u5(s,c){for(var v=-1,E=s.length,R=0,I=[];++v<E;){var U=s[v],G=c?c(U):U;if(!v||!Jr(G,ee)){var ee=G;I[R++]=U===0?0:U}}return I}function l5(s){return typeof s=="number"?s:vr(s)?$:+s}function pr(s){if(typeof s=="string")return s;if(Ye(s))return Bt(s,pr)+"";if(vr(s))return qC?qC.call(s):"";var c=s+"";return c=="0"&&1/s==-1/0?"-0":c}function ya(s,c,v){var E=-1,R=Cf,I=s.length,U=!0,G=[],ee=G;if(v)U=!1,R=$g;else if(I>=i){var he=c?null:Ej(s);if(he)return Of(he);U=!1,R=Wu,ee=new ao}else ee=c?[]:G;e:for(;++E<I;){var pe=s[E],me=c?c(pe):pe;if(pe=v||pe!==0?pe:0,U&&me===me){for(var xe=ee.length;xe--;)if(ee[xe]===me)continue e;c&&ee.push(me),G.push(pe)}else R(ee,me,v)||(ee!==G&&ee.push(me),G.push(pe))}return G}function f1(s,c){return c=ba(c,s),s=M5(s,c),s==null||delete s[bi(Mr(c))]}function c5(s,c,v,E){return nl(s,c,v(so(s,c)),E)}function Gf(s,c,v,E){for(var R=s.length,I=E?R:-1;(E?I--:++I<R)&&c(s[I],I,s););return v?Dr(s,E?0:I,E?I+1:R):Dr(s,E?I+1:0,E?R:I)}function f5(s,c){var v=s;return v instanceof lt&&(v=v.value()),Vg(c,function(E,R){return R.func.apply(R.thisArg,pa([E],R.args))},v)}function d1(s,c,v){var E=s.length;if(E<2)return E?ya(s[0]):[];for(var R=-1,I=oe(E);++R<E;)for(var U=s[R],G=-1;++G<E;)G!=R&&(I[R]=Ju(I[R]||U,s[G],c,v));return ya(xn(I,1),c,v)}function d5(s,c,v){for(var E=-1,R=s.length,I=c.length,U={};++E<R;){var G=E<I?c[E]:n;v(U,s[E],G)}return U}function h1(s){return an(s)?s:[]}function p1(s){return typeof s=="function"?s:tr}function ba(s,c){return Ye(s)?s:S1(s,c)?[s]:q5(Ot(s))}var dj=rt;function _a(s,c,v){var E=s.length;return v=v===n?E:v,!c&&v>=E?s:Dr(s,c,v)}var h5=JD||function(s){return Sn.clearTimeout(s)};function p5(s,c){if(c)return s.slice();var v=s.length,E=FC?FC(v):new s.constructor(v);return s.copy(E),E}function v1(s){var c=new s.constructor(s.byteLength);return new If(c).set(new If(s)),c}function hj(s,c){var v=c?v1(s.buffer):s.buffer;return new s.constructor(v,s.byteOffset,s.byteLength)}function pj(s){var c=new s.constructor(s.source,at.exec(s));return c.lastIndex=s.lastIndex,c}function vj(s){return Xu?jt(Xu.call(s)):{}}function v5(s,c){var v=c?v1(s.buffer):s.buffer;return new s.constructor(v,s.byteOffset,s.length)}function m5(s,c){if(s!==c){var v=s!==n,E=s===null,R=s===s,I=vr(s),U=c!==n,G=c===null,ee=c===c,he=vr(c);if(!G&&!he&&!I&&s>c||I&&U&&ee&&!G&&!he||E&&U&&ee||!v&&ee||!R)return 1;if(!E&&!I&&!he&&s<c||he&&v&&R&&!E&&!I||G&&v&&R||!U&&R||!ee)return-1}return 0}function mj(s,c,v){for(var E=-1,R=s.criteria,I=c.criteria,U=R.length,G=v.length;++E<U;){var ee=m5(R[E],I[E]);if(ee){if(E>=G)return ee;var he=v[E];return ee*(he=="desc"?-1:1)}}return s.index-c.index}function g5(s,c,v,E){for(var R=-1,I=s.length,U=v.length,G=-1,ee=c.length,he=dn(I-U,0),pe=oe(ee+he),me=!E;++G<ee;)pe[G]=c[G];for(;++R<U;)(me||R<I)&&(pe[v[R]]=s[R]);for(;he--;)pe[G++]=s[R++];return pe}function y5(s,c,v,E){for(var R=-1,I=s.length,U=-1,G=v.length,ee=-1,he=c.length,pe=dn(I-G,0),me=oe(pe+he),xe=!E;++R<pe;)me[R]=s[R];for(var Ie=R;++ee<he;)me[Ie+ee]=c[ee];for(;++U<G;)(xe||R<I)&&(me[Ie+v[U]]=s[R++]);return me}function Zn(s,c){var v=-1,E=s.length;for(c||(c=oe(E));++v<E;)c[v]=s[v];return c}function yi(s,c,v,E){var R=!v;v||(v={});for(var I=-1,U=c.length;++I<U;){var G=c[I],ee=E?E(v[G],s[G],G,v,s):n;ee===n&&(ee=s[G]),R?Pi(v,G,ee):Zu(v,G,ee)}return v}function gj(s,c){return yi(s,E1(s),c)}function yj(s,c){return yi(s,P5(s),c)}function Qf(s,c){return function(v,E){var R=Ye(v)?SD:VM,I=c?c():{};return R(v,s,Me(E,2),I)}}function Rs(s){return rt(function(c,v){var E=-1,R=v.length,I=R>1?v[R-1]:n,U=R>2?v[2]:n;for(I=s.length>3&&typeof I=="function"?(R--,I):n,U&&zn(v[0],v[1],U)&&(I=R<3?n:I,R=1),c=jt(c);++E<R;){var G=v[E];G&&s(c,G,E,I)}return c})}function b5(s,c){return function(v,E){if(v==null)return v;if(!Jn(v))return s(v,E);for(var R=v.length,I=c?R:-1,U=jt(v);(c?I--:++I<R)&&E(U[I],I,U)!==!1;);return v}}function _5(s){return function(c,v,E){for(var R=-1,I=jt(c),U=E(c),G=U.length;G--;){var ee=U[s?G:++R];if(v(I[ee],ee,I)===!1)break}return c}}function bj(s,c,v){var E=c&b,R=rl(s);function I(){var U=this&&this!==Sn&&this instanceof I?R:s;return U.apply(E?v:this,arguments)}return I}function w5(s){return function(c){c=Ot(c);var v=Es(c)?Xr(c):n,E=v?v[0]:c.charAt(0),R=v?_a(v,1).join(""):c.slice(1);return E[s]()+R}}function As(s){return function(c){return Vg(b6(y6(c).replace(Hu,"")),s,"")}}function rl(s){return function(){var c=arguments;switch(c.length){case 0:return new s;case 1:return new s(c[0]);case 2:return new s(c[0],c[1]);case 3:return new s(c[0],c[1],c[2]);case 4:return new s(c[0],c[1],c[2],c[3]);case 5:return new s(c[0],c[1],c[2],c[3],c[4]);case 6:return new s(c[0],c[1],c[2],c[3],c[4],c[5]);case 7:return new s(c[0],c[1],c[2],c[3],c[4],c[5],c[6])}var v=ks(s.prototype),E=s.apply(v,c);return Xt(E)?E:v}}function _j(s,c,v){var E=rl(s);function R(){for(var I=arguments.length,U=oe(I),G=I,ee=Ps(R);G--;)U[G]=arguments[G];var he=I<3&&U[0]!==ee&&U[I-1]!==ee?[]:va(U,ee);if(I-=he.length,I<v)return T5(s,c,Yf,R.placeholder,n,U,he,n,n,v-I);var pe=this&&this!==Sn&&this instanceof R?E:s;return dr(pe,this,U)}return R}function E5(s){return function(c,v,E){var R=jt(c);if(!Jn(c)){var I=Me(v,3);c=bn(c),v=function(G){return I(R[G],G,R)}}var U=s(c,v,E);return U>-1?R[I?c[U]:U]:n}}function S5(s){return Ii(function(c){var v=c.length,E=v,R=Lr.prototype.thru;for(s&&c.reverse();E--;){var I=c[E];if(typeof I!="function")throw new Ir(o);if(R&&!U&&Jf(I)=="wrapper")var U=new Lr([],!0)}for(E=U?E:v;++E<v;){I=c[E];var G=Jf(I),ee=G=="wrapper"?_1(I):n;ee&&x1(ee[0])&&ee[1]==(k|C|_|A)&&!ee[4].length&&ee[9]==1?U=U[Jf(ee[0])].apply(U,ee[3]):U=I.length==1&&x1(I)?U[G]():U.thru(I)}return function(){var he=arguments,pe=he[0];if(U&&he.length==1&&Ye(pe))return U.plant(pe).value();for(var me=0,xe=v?c[me].apply(this,he):pe;++me<v;)xe=c[me].call(this,xe);return xe}})}function Yf(s,c,v,E,R,I,U,G,ee,he){var pe=c&k,me=c&b,xe=c&w,Ie=c&(C|T),je=c&L,tt=xe?n:rl(s);function $e(){for(var ot=arguments.length,ht=oe(ot),mr=ot;mr--;)ht[mr]=arguments[mr];if(Ie)var Hn=Ps($e),gr=ND(ht,Hn);if(E&&(ht=g5(ht,E,R,Ie)),I&&(ht=y5(ht,I,U,Ie)),ot-=gr,Ie&&ot<he){var on=va(ht,Hn);return T5(s,c,Yf,$e.placeholder,v,ht,on,G,ee,he-ot)}var ei=me?v:this,Mi=xe?ei[s]:s;return ot=ht.length,G?ht=Vj(ht,G):je&&ot>1&&ht.reverse(),pe&&ee<ot&&(ht.length=ee),this&&this!==Sn&&this instanceof $e&&(Mi=tt||rl(Mi)),Mi.apply(ei,ht)}return $e}function x5(s,c){return function(v,E){return QM(v,s,c(E),{})}}function Kf(s,c){return function(v,E){var R;if(v===n&&E===n)return c;if(v!==n&&(R=v),E!==n){if(R===n)return E;typeof v=="string"||typeof E=="string"?(v=pr(v),E=pr(E)):(v=l5(v),E=l5(E)),R=s(v,E)}return R}}function m1(s){return Ii(function(c){return c=Bt(c,hr(Me())),rt(function(v){var E=this;return s(c,function(R){return dr(R,E,v)})})})}function Xf(s,c){c=c===n?" ":pr(c);var v=c.length;if(v<2)return v?l1(c,s):c;var E=l1(c,Mf(s/Ss(c)));return Es(c)?_a(Xr(E),0,s).join(""):E.slice(0,s)}function wj(s,c,v,E){var R=c&b,I=rl(s);function U(){for(var G=-1,ee=arguments.length,he=-1,pe=E.length,me=oe(pe+ee),xe=this&&this!==Sn&&this instanceof U?I:s;++he<pe;)me[he]=E[he];for(;ee--;)me[he++]=arguments[++G];return dr(xe,R?v:this,me)}return U}function C5(s){return function(c,v,E){return E&&typeof E!="number"&&zn(c,v,E)&&(v=E=n),c=Di(c),v===n?(v=c,c=0):v=Di(v),E=E===n?c<v?1:-1:Di(E),oj(c,v,E,s)}}function Zf(s){return function(c,v){return typeof c=="string"&&typeof v=="string"||(c=jr(c),v=jr(v)),s(c,v)}}function T5(s,c,v,E,R,I,U,G,ee,he){var pe=c&C,me=pe?U:n,xe=pe?n:U,Ie=pe?I:n,je=pe?n:I;c|=pe?_:x,c&=~(pe?x:_),c&S||(c&=-4);var tt=[s,c,R,Ie,me,je,xe,G,ee,he],$e=v.apply(n,tt);return x1(s)&&j5($e,tt),$e.placeholder=E,$5($e,s,c)}function g1(s){var c=fn[s];return function(v,E){if(v=jr(v),E=E==null?0:In(Je(E),292),E&&$C(v)){var R=(Ot(v)+"e").split("e"),I=c(R[0]+"e"+(+R[1]+E));return R=(Ot(I)+"e").split("e"),+(R[0]+"e"+(+R[1]-E))}return c(v)}}var Ej=Ts&&1/Of(new Ts([,-0]))[1]==Y?function(s){return new Ts(s)}:$1;function O5(s){return function(c){var v=Ln(c);return v==ue?Gg(c):v==Ve?$D(c):PD(c,s(c))}}function Ni(s,c,v,E,R,I,U,G){var ee=c&w;if(!ee&&typeof s!="function")throw new Ir(o);var he=E?E.length:0;if(he||(c&=-97,E=R=n),U=U===n?U:dn(Je(U),0),G=G===n?G:Je(G),he-=R?R.length:0,c&x){var pe=E,me=R;E=R=n}var xe=ee?n:_1(s),Ie=[s,c,v,E,R,pe,me,I,U,G];if(xe&&Mj(Ie,xe),s=Ie[0],c=Ie[1],v=Ie[2],E=Ie[3],R=Ie[4],G=Ie[9]=Ie[9]===n?ee?0:s.length:dn(Ie[9]-he,0),!G&&c&(C|T)&&(c&=-25),!c||c==b)var je=bj(s,c,v);else c==C||c==T?je=_j(s,c,G):(c==_||c==(b|_))&&!R.length?je=wj(s,c,v,E):je=Yf.apply(n,Ie);var tt=xe?s5:j5;return $5(tt(je,Ie),s,c)}function k5(s,c,v,E){return s===n||Jr(s,Cs[v])&&!Nt.call(E,v)?c:s}function R5(s,c,v,E,R,I){return Xt(s)&&Xt(c)&&(I.set(c,s),Bf(s,c,n,R5,I),I.delete(c)),s}function Sj(s){return ol(s)?n:s}function A5(s,c,v,E,R,I){var U=v&y,G=s.length,ee=c.length;if(G!=ee&&!(U&&ee>G))return!1;var he=I.get(s),pe=I.get(c);if(he&&pe)return he==c&&pe==s;var me=-1,xe=!0,Ie=v&g?new ao:n;for(I.set(s,c),I.set(c,s);++me<G;){var je=s[me],tt=c[me];if(E)var $e=U?E(tt,je,me,c,s,I):E(je,tt,me,s,c,I);if($e!==n){if($e)continue;xe=!1;break}if(Ie){if(!qg(c,function(ot,ht){if(!Wu(Ie,ht)&&(je===ot||R(je,ot,v,E,I)))return Ie.push(ht)})){xe=!1;break}}else if(!(je===tt||R(je,tt,v,E,I))){xe=!1;break}}return I.delete(s),I.delete(c),xe}function xj(s,c,v,E,R,I,U){switch(v){case Kt:if(s.byteLength!=c.byteLength||s.byteOffset!=c.byteOffset)return!1;s=s.buffer,c=c.buffer;case un:return!(s.byteLength!=c.byteLength||!I(new If(s),new If(c)));case _e:case be:case Te:return Jr(+s,+c);case ne:return s.name==c.name&&s.message==c.message;case kt:case et:return s==c+"";case ue:var G=Gg;case Ve:var ee=E&y;if(G||(G=Of),s.size!=c.size&&!ee)return!1;var he=U.get(s);if(he)return he==c;E|=g,U.set(s,c);var pe=A5(G(s),G(c),E,R,I,U);return U.delete(s),pe;case Ee:if(Xu)return Xu.call(s)==Xu.call(c)}return!1}function Cj(s,c,v,E,R,I){var U=v&y,G=y1(s),ee=G.length,he=y1(c),pe=he.length;if(ee!=pe&&!U)return!1;for(var me=ee;me--;){var xe=G[me];if(!(U?xe in c:Nt.call(c,xe)))return!1}var Ie=I.get(s),je=I.get(c);if(Ie&&je)return Ie==c&&je==s;var tt=!0;I.set(s,c),I.set(c,s);for(var $e=U;++me<ee;){xe=G[me];var ot=s[xe],ht=c[xe];if(E)var mr=U?E(ht,ot,xe,c,s,I):E(ot,ht,xe,s,c,I);if(!(mr===n?ot===ht||R(ot,ht,v,E,I):mr)){tt=!1;break}$e||($e=xe=="constructor")}if(tt&&!$e){var Hn=s.constructor,gr=c.constructor;Hn!=gr&&"constructor"in s&&"constructor"in c&&!(typeof Hn=="function"&&Hn instanceof Hn&&typeof gr=="function"&&gr instanceof gr)&&(tt=!1)}return I.delete(s),I.delete(c),tt}function Ii(s){return T1(D5(s,n,B5),s+"")}function y1(s){return KC(s,bn,E1)}function b1(s){return KC(s,er,P5)}var _1=$f?function(s){return $f.get(s)}:$1;function Jf(s){for(var c=s.name+"",v=Os[c],E=Nt.call(Os,c)?v.length:0;E--;){var R=v[E],I=R.func;if(I==null||I==s)return R.name}return c}function Ps(s){var c=Nt.call(P,"placeholder")?P:s;return c.placeholder}function Me(){var s=P.iteratee||M1;return s=s===M1?JC:s,arguments.length?s(arguments[0],arguments[1]):s}function ed(s,c){var v=s.__data__;return Ij(c)?v[typeof c=="string"?"string":"hash"]:v.map}function w1(s){for(var c=bn(s),v=c.length;v--;){var E=c[v],R=s[E];c[v]=[E,R,L5(R)]}return c}function uo(s,c){var v=DD(s,c);return ZC(v)?v:n}function Tj(s){var c=Nt.call(s,ro),v=s[ro];try{s[ro]=n;var E=!0}catch{}var R=Pf.call(s);return E&&(c?s[ro]=v:delete s[ro]),R}var E1=Yg?function(s){return s==null?[]:(s=jt(s),ha(Yg(s),function(c){return MC.call(s,c)}))}:V1,P5=Yg?function(s){for(var c=[];s;)pa(c,E1(s)),s=Lf(s);return c}:V1,Ln=Un;(Kg&&Ln(new Kg(new ArrayBuffer(1)))!=Kt||Qu&&Ln(new Qu)!=ue||Xg&&Ln(Xg.resolve())!=ft||Ts&&Ln(new Ts)!=Ve||Yu&&Ln(new Yu)!=Tt)&&(Ln=function(s){var c=Un(s),v=c==Ze?s.constructor:n,E=v?lo(v):"";if(E)switch(E){case uM:return Kt;case lM:return ue;case cM:return ft;case fM:return Ve;case dM:return Tt}return c});function Oj(s,c,v){for(var E=-1,R=v.length;++E<R;){var I=v[E],U=I.size;switch(I.type){case"drop":s+=U;break;case"dropRight":c-=U;break;case"take":c=In(c,s+U);break;case"takeRight":s=dn(s,c-U);break}}return{start:s,end:c}}function kj(s){var c=s.match(kr);return c?c[1].split(B):[]}function N5(s,c,v){c=ba(c,s);for(var E=-1,R=c.length,I=!1;++E<R;){var U=bi(c[E]);if(!(I=s!=null&&v(s,U)))break;s=s[U]}return I||++E!=R?I:(R=s==null?0:s.length,!!R&&sd(R)&&Li(U,R)&&(Ye(s)||co(s)))}function Rj(s){var c=s.length,v=new s.constructor(c);return c&&typeof s[0]=="string"&&Nt.call(s,"index")&&(v.index=s.index,v.input=s.input),v}function I5(s){return typeof s.constructor=="function"&&!il(s)?ks(Lf(s)):{}}function Aj(s,c,v){var E=s.constructor;switch(c){case un:return v1(s);case _e:case be:return new E(+s);case Kt:return hj(s,v);case Be:case Jt:case At:case mt:case Ut:case mn:case xi:case ur:case gn:return v5(s,v);case ue:return new E;case Te:case et:return new E(s);case kt:return pj(s);case Ve:return new E;case Ee:return vj(s)}}function Pj(s,c){var v=c.length;if(!v)return s;var E=v-1;return c[E]=(v>1?"& ":"")+c[E],c=c.join(v>2?", ":" "),s.replace(Ci,`{
65
+ */var l8=nu.exports,_b;function c8(){return _b||(_b=1,function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",u="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",f=500,d="__lodash_placeholder__",h=1,p=2,m=4,y=1,g=2,b=1,w=2,S=4,C=8,T=16,_=32,x=64,k=128,A=256,L=512,N=30,F="...",H=800,V=16,D=1,j=2,z=3,Q=1/0,q=9007199254740991,J=17976931348623157e292,$=NaN,Y=4294967295,ae=Y-1,ie=Y>>>1,te=[["ary",k],["bind",b],["bindKey",w],["curry",C],["curryRight",T],["flip",L],["partial",_],["partialRight",x],["rearg",A]],fe="[object Arguments]",le="[object Array]",me="[object AsyncFunction]",_e="[object Boolean]",be="[object Date]",ne="[object DOMException]",ve="[object Error]",K="[object Function]",we="[object GeneratorFunction]",ue="[object Map]",Te="[object Number]",Ie="[object Null]",Je="[object Object]",xt="[object Promise]",Ot="[object Proxy]",Vt="[object RegExp]",Me="[object Set]",et="[object String]",Ee="[object Symbol]",jt="[object Undefined]",Ct="[object WeakMap]",Yt="[object WeakSet]",un="[object ArrayBuffer]",Kt="[object DataView]",He="[object Float32Array]",Jt="[object Float64Array]",kt="[object Int8Array]",pt="[object Int16Array]",Ut="[object Int32Array]",mn="[object Uint8Array]",xi="[object Uint8ClampedArray]",ur="[object Uint16Array]",gn="[object Uint32Array]",Qn=/\b__p \+= '';/g,sa=/\b(__p \+=) '' \+/g,lr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,si=/&(?:amp|lt|gt|quot|#39);/g,ui=/[&<>"']/g,$n=RegExp(si.source),En=RegExp(ui.source),li=/<%-([\s\S]+?)%>/g,cn=/<%([\s\S]+?)%>/g,Yn=/<%=([\s\S]+?)%>/g,vt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Rt=/^\w*$/,Vn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Kn=/[\\^$.*+?()[\]{}|]/g,ci=RegExp(Kn.source),yn=/^\s+/,ua=/\s/,Ci=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kr=/\{\n\/\* \[wrapped with (.+)\] \*/,B=/,? & /,ye=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Se=/[()=,{}\[\]\/\s]/,Le=/\\(\\)?/g,it=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,at=/\w*$/,Be=/^[-+]0x[0-9a-f]+$/i,qe=/^0b[01]+$/i,zt=/^\[object .+?Constructor\]$/,mt=/^0o[0-7]+$/i,Lt=/^(?:0|[1-9]\d*)$/,ht=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Nn=/($^)/,cr=/['\n\r\u2028\u2029\\]/g,Ft="\\ud800-\\udfff",fi="\\u0300-\\u036f",Ga="\\ufe20-\\ufe2f",la="\\u20d0-\\u20ff",Qa=fi+Ga+la,di="\\u2700-\\u27bf",Ya="a-z\\xdf-\\xf6\\xf8-\\xff",ca="\\xac\\xb1\\xd7\\xf7",Kr="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",cs="\\u2000-\\u206f",fs=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",fr="A-Z\\xc0-\\xd6\\xd8-\\xde",Xn="\\ufe0e\\ufe0f",Ti=ca+Kr+cs+fs,hi="['’]",Rr="["+Ft+"]",ds="["+Ti+"]",Oi="["+Qa+"]",hs="\\d+",Ka="["+di+"]",ps="["+Ya+"]",vs="[^"+Ft+Ti+hs+di+Ya+fr+"]",Xa="\\ud83c[\\udffb-\\udfff]",ms="(?:"+Oi+"|"+Xa+")",gs="[^"+Ft+"]",Za="(?:\\ud83c[\\udde6-\\uddff]){2}",fa="[\\ud800-\\udbff][\\udc00-\\udfff]",pi="["+fr+"]",ys="\\u200d",da="(?:"+ps+"|"+vs+")",Ar="(?:"+pi+"|"+vs+")",bs="(?:"+hi+"(?:d|ll|m|re|s|t|ve))?",qn="(?:"+hi+"(?:D|LL|M|RE|S|T|VE))?",Ja=ms+"?",ki="["+Xn+"]?",vi="(?:"+ys+"(?:"+[gs,Za,fa].join("|")+")"+ki+Ja+")*",mi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",eo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",to=ki+Ja+vi,Uu="(?:"+[Ka,Za,fa].join("|")+")"+to,zu="(?:"+[gs+Oi+"?",Oi,Za,fa,Rr].join("|")+")",Hu=RegExp(hi,"g"),Ae=RegExp(Oi,"g"),Fe=RegExp(Xa+"(?="+Xa+")|"+zu+to,"g"),$t=RegExp([pi+"?"+ps+"+"+bs+"(?="+[ds,pi,"$"].join("|")+")",Ar+"+"+qn+"(?="+[ds,pi+da,"$"].join("|")+")",pi+"?"+da+"+"+bs,pi+"+"+qn,eo,mi,hs,Uu].join("|"),"g"),rn=RegExp("["+ys+Ft+Qa+Xn+"]"),Ht=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_s=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Bu=-1,Nt={};Nt[He]=Nt[Jt]=Nt[kt]=Nt[pt]=Nt[Ut]=Nt[mn]=Nt[xi]=Nt[ur]=Nt[gn]=!0,Nt[fe]=Nt[le]=Nt[un]=Nt[_e]=Nt[Kt]=Nt[be]=Nt[ve]=Nt[K]=Nt[ue]=Nt[Te]=Nt[Je]=Nt[Vt]=Nt[Me]=Nt[et]=Nt[Ct]=!1;var gt={};gt[fe]=gt[le]=gt[un]=gt[Kt]=gt[_e]=gt[be]=gt[He]=gt[Jt]=gt[kt]=gt[pt]=gt[Ut]=gt[ue]=gt[Te]=gt[Je]=gt[Vt]=gt[Me]=gt[et]=gt[Ee]=gt[mn]=gt[xi]=gt[ur]=gt[gn]=!0,gt[ve]=gt[K]=gt[Ct]=!1;var mD={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},gD={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},yD={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},bD={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_D=parseFloat,wD=parseInt,mC=typeof sl=="object"&&sl&&sl.Object===Object&&sl,ED=typeof self=="object"&&self&&self.Object===Object&&self,Sn=mC||ED||Function("return this")(),Mg=t&&!t.nodeType&&t,no=Mg&&!0&&e&&!e.nodeType&&e,gC=no&&no.exports===Mg,jg=gC&&mC.process,Pr=function(){try{var Z=no&&no.require&&no.require("util").types;return Z||jg&&jg.binding&&jg.binding("util")}catch{}}(),yC=Pr&&Pr.isArrayBuffer,bC=Pr&&Pr.isDate,_C=Pr&&Pr.isMap,wC=Pr&&Pr.isRegExp,EC=Pr&&Pr.isSet,SC=Pr&&Pr.isTypedArray;function dr(Z,ce,oe){switch(oe.length){case 0:return Z.call(ce);case 1:return Z.call(ce,oe[0]);case 2:return Z.call(ce,oe[0],oe[1]);case 3:return Z.call(ce,oe[0],oe[1],oe[2])}return Z.apply(ce,oe)}function SD(Z,ce,oe,Re){for(var We=-1,yt=Z==null?0:Z.length;++We<yt;){var fn=Z[We];ce(Re,fn,oe(fn),Z)}return Re}function Nr(Z,ce){for(var oe=-1,Re=Z==null?0:Z.length;++oe<Re&&ce(Z[oe],oe,Z)!==!1;);return Z}function xD(Z,ce){for(var oe=Z==null?0:Z.length;oe--&&ce(Z[oe],oe,Z)!==!1;);return Z}function xC(Z,ce){for(var oe=-1,Re=Z==null?0:Z.length;++oe<Re;)if(!ce(Z[oe],oe,Z))return!1;return!0}function ha(Z,ce){for(var oe=-1,Re=Z==null?0:Z.length,We=0,yt=[];++oe<Re;){var fn=Z[oe];ce(fn,oe,Z)&&(yt[We++]=fn)}return yt}function Cf(Z,ce){var oe=Z==null?0:Z.length;return!!oe&&ws(Z,ce,0)>-1}function $g(Z,ce,oe){for(var Re=-1,We=Z==null?0:Z.length;++Re<We;)if(oe(ce,Z[Re]))return!0;return!1}function Bt(Z,ce){for(var oe=-1,Re=Z==null?0:Z.length,We=Array(Re);++oe<Re;)We[oe]=ce(Z[oe],oe,Z);return We}function pa(Z,ce){for(var oe=-1,Re=ce.length,We=Z.length;++oe<Re;)Z[We+oe]=ce[oe];return Z}function Vg(Z,ce,oe,Re){var We=-1,yt=Z==null?0:Z.length;for(Re&&yt&&(oe=Z[++We]);++We<yt;)oe=ce(oe,Z[We],We,Z);return oe}function CD(Z,ce,oe,Re){var We=Z==null?0:Z.length;for(Re&&We&&(oe=Z[--We]);We--;)oe=ce(oe,Z[We],We,Z);return oe}function qg(Z,ce){for(var oe=-1,Re=Z==null?0:Z.length;++oe<Re;)if(ce(Z[oe],oe,Z))return!0;return!1}var TD=Ug("length");function OD(Z){return Z.split("")}function kD(Z){return Z.match(ye)||[]}function CC(Z,ce,oe){var Re;return oe(Z,function(We,yt,fn){if(ce(We,yt,fn))return Re=yt,!1}),Re}function Tf(Z,ce,oe,Re){for(var We=Z.length,yt=oe+(Re?1:-1);Re?yt--:++yt<We;)if(ce(Z[yt],yt,Z))return yt;return-1}function ws(Z,ce,oe){return ce===ce?VD(Z,ce,oe):Tf(Z,TC,oe)}function RD(Z,ce,oe,Re){for(var We=oe-1,yt=Z.length;++We<yt;)if(Re(Z[We],ce))return We;return-1}function TC(Z){return Z!==Z}function OC(Z,ce){var oe=Z==null?0:Z.length;return oe?Hg(Z,ce)/oe:$}function Ug(Z){return function(ce){return ce==null?n:ce[Z]}}function zg(Z){return function(ce){return Z==null?n:Z[ce]}}function kC(Z,ce,oe,Re,We){return We(Z,function(yt,fn,Dt){oe=Re?(Re=!1,yt):ce(oe,yt,fn,Dt)}),oe}function AD(Z,ce){var oe=Z.length;for(Z.sort(ce);oe--;)Z[oe]=Z[oe].value;return Z}function Hg(Z,ce){for(var oe,Re=-1,We=Z.length;++Re<We;){var yt=ce(Z[Re]);yt!==n&&(oe=oe===n?yt:oe+yt)}return oe}function Bg(Z,ce){for(var oe=-1,Re=Array(Z);++oe<Z;)Re[oe]=ce(oe);return Re}function PD(Z,ce){return Bt(ce,function(oe){return[oe,Z[oe]]})}function RC(Z){return Z&&Z.slice(0,IC(Z)+1).replace(yn,"")}function hr(Z){return function(ce){return Z(ce)}}function Wg(Z,ce){return Bt(ce,function(oe){return Z[oe]})}function Wu(Z,ce){return Z.has(ce)}function AC(Z,ce){for(var oe=-1,Re=Z.length;++oe<Re&&ws(ce,Z[oe],0)>-1;);return oe}function PC(Z,ce){for(var oe=Z.length;oe--&&ws(ce,Z[oe],0)>-1;);return oe}function ND(Z,ce){for(var oe=Z.length,Re=0;oe--;)Z[oe]===ce&&++Re;return Re}var ID=zg(mD),LD=zg(gD);function FD(Z){return"\\"+bD[Z]}function DD(Z,ce){return Z==null?n:Z[ce]}function Es(Z){return rn.test(Z)}function MD(Z){return Ht.test(Z)}function jD(Z){for(var ce,oe=[];!(ce=Z.next()).done;)oe.push(ce.value);return oe}function Gg(Z){var ce=-1,oe=Array(Z.size);return Z.forEach(function(Re,We){oe[++ce]=[We,Re]}),oe}function NC(Z,ce){return function(oe){return Z(ce(oe))}}function va(Z,ce){for(var oe=-1,Re=Z.length,We=0,yt=[];++oe<Re;){var fn=Z[oe];(fn===ce||fn===d)&&(Z[oe]=d,yt[We++]=oe)}return yt}function Of(Z){var ce=-1,oe=Array(Z.size);return Z.forEach(function(Re){oe[++ce]=Re}),oe}function $D(Z){var ce=-1,oe=Array(Z.size);return Z.forEach(function(Re){oe[++ce]=[Re,Re]}),oe}function VD(Z,ce,oe){for(var Re=oe-1,We=Z.length;++Re<We;)if(Z[Re]===ce)return Re;return-1}function qD(Z,ce,oe){for(var Re=oe+1;Re--;)if(Z[Re]===ce)return Re;return Re}function Ss(Z){return Es(Z)?zD(Z):TD(Z)}function Xr(Z){return Es(Z)?HD(Z):OD(Z)}function IC(Z){for(var ce=Z.length;ce--&&ua.test(Z.charAt(ce)););return ce}var UD=zg(yD);function zD(Z){for(var ce=Fe.lastIndex=0;Fe.test(Z);)++ce;return ce}function HD(Z){return Z.match(Fe)||[]}function BD(Z){return Z.match($t)||[]}var WD=function Z(ce){ce=ce==null?Sn:xs.defaults(Sn.Object(),ce,xs.pick(Sn,_s));var oe=ce.Array,Re=ce.Date,We=ce.Error,yt=ce.Function,fn=ce.Math,Dt=ce.Object,Qg=ce.RegExp,GD=ce.String,Ir=ce.TypeError,kf=oe.prototype,QD=yt.prototype,Cs=Dt.prototype,Rf=ce["__core-js_shared__"],Af=QD.toString,At=Cs.hasOwnProperty,YD=0,LC=function(){var s=/[^.]+$/.exec(Rf&&Rf.keys&&Rf.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Pf=Cs.toString,KD=Af.call(Dt),XD=Sn._,ZD=Qg("^"+Af.call(At).replace(Kn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Nf=gC?ce.Buffer:n,ma=ce.Symbol,If=ce.Uint8Array,FC=Nf?Nf.allocUnsafe:n,Lf=NC(Dt.getPrototypeOf,Dt),DC=Dt.create,MC=Cs.propertyIsEnumerable,Ff=kf.splice,jC=ma?ma.isConcatSpreadable:n,Gu=ma?ma.iterator:n,ro=ma?ma.toStringTag:n,Df=function(){try{var s=uo(Dt,"defineProperty");return s({},"",{}),s}catch{}}(),JD=ce.clearTimeout!==Sn.clearTimeout&&ce.clearTimeout,eM=Re&&Re.now!==Sn.Date.now&&Re.now,tM=ce.setTimeout!==Sn.setTimeout&&ce.setTimeout,Mf=fn.ceil,jf=fn.floor,Yg=Dt.getOwnPropertySymbols,nM=Nf?Nf.isBuffer:n,$C=ce.isFinite,rM=kf.join,iM=NC(Dt.keys,Dt),dn=fn.max,In=fn.min,aM=Re.now,oM=ce.parseInt,VC=fn.random,sM=kf.reverse,Kg=uo(ce,"DataView"),Qu=uo(ce,"Map"),Xg=uo(ce,"Promise"),Ts=uo(ce,"Set"),Yu=uo(ce,"WeakMap"),Ku=uo(Dt,"create"),$f=Yu&&new Yu,Os={},uM=lo(Kg),lM=lo(Qu),cM=lo(Xg),fM=lo(Ts),dM=lo(Yu),Vf=ma?ma.prototype:n,Xu=Vf?Vf.valueOf:n,qC=Vf?Vf.toString:n;function P(s){if(en(s)&&!Ye(s)&&!(s instanceof lt)){if(s instanceof Lr)return s;if(At.call(s,"__wrapped__"))return U5(s)}return new Lr(s)}var ks=function(){function s(){}return function(c){if(!Xt(c))return{};if(DC)return DC(c);s.prototype=c;var v=new s;return s.prototype=n,v}}();function qf(){}function Lr(s,c){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!c,this.__index__=0,this.__values__=n}P.templateSettings={escape:li,evaluate:cn,interpolate:Yn,variable:"",imports:{_:P}},P.prototype=qf.prototype,P.prototype.constructor=P,Lr.prototype=ks(qf.prototype),Lr.prototype.constructor=Lr;function lt(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Y,this.__views__=[]}function hM(){var s=new lt(this.__wrapped__);return s.__actions__=Zn(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Zn(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Zn(this.__views__),s}function pM(){if(this.__filtered__){var s=new lt(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function vM(){var s=this.__wrapped__.value(),c=this.__dir__,v=Ye(s),E=c<0,R=v?s.length:0,I=Oj(0,R,this.__views__),U=I.start,W=I.end,ee=W-U,he=E?W:U-1,pe=this.__iteratees__,ge=pe.length,xe=0,Ne=In(ee,this.__takeCount__);if(!v||!E&&R==ee&&Ne==ee)return f5(s,this.__actions__);var $e=[];e:for(;ee--&&xe<Ne;){he+=c;for(var tt=-1,Ve=s[he];++tt<ge;){var ot=pe[tt],ft=ot.iteratee,mr=ot.type,Hn=ft(Ve);if(mr==j)Ve=Hn;else if(!Hn){if(mr==D)continue e;break e}}$e[xe++]=Ve}return $e}lt.prototype=ks(qf.prototype),lt.prototype.constructor=lt;function io(s){var c=-1,v=s==null?0:s.length;for(this.clear();++c<v;){var E=s[c];this.set(E[0],E[1])}}function mM(){this.__data__=Ku?Ku(null):{},this.size=0}function gM(s){var c=this.has(s)&&delete this.__data__[s];return this.size-=c?1:0,c}function yM(s){var c=this.__data__;if(Ku){var v=c[s];return v===l?n:v}return At.call(c,s)?c[s]:n}function bM(s){var c=this.__data__;return Ku?c[s]!==n:At.call(c,s)}function _M(s,c){var v=this.__data__;return this.size+=this.has(s)?0:1,v[s]=Ku&&c===n?l:c,this}io.prototype.clear=mM,io.prototype.delete=gM,io.prototype.get=yM,io.prototype.has=bM,io.prototype.set=_M;function Ri(s){var c=-1,v=s==null?0:s.length;for(this.clear();++c<v;){var E=s[c];this.set(E[0],E[1])}}function wM(){this.__data__=[],this.size=0}function EM(s){var c=this.__data__,v=Uf(c,s);if(v<0)return!1;var E=c.length-1;return v==E?c.pop():Ff.call(c,v,1),--this.size,!0}function SM(s){var c=this.__data__,v=Uf(c,s);return v<0?n:c[v][1]}function xM(s){return Uf(this.__data__,s)>-1}function CM(s,c){var v=this.__data__,E=Uf(v,s);return E<0?(++this.size,v.push([s,c])):v[E][1]=c,this}Ri.prototype.clear=wM,Ri.prototype.delete=EM,Ri.prototype.get=SM,Ri.prototype.has=xM,Ri.prototype.set=CM;function Ai(s){var c=-1,v=s==null?0:s.length;for(this.clear();++c<v;){var E=s[c];this.set(E[0],E[1])}}function TM(){this.size=0,this.__data__={hash:new io,map:new(Qu||Ri),string:new io}}function OM(s){var c=ed(this,s).delete(s);return this.size-=c?1:0,c}function kM(s){return ed(this,s).get(s)}function RM(s){return ed(this,s).has(s)}function AM(s,c){var v=ed(this,s),E=v.size;return v.set(s,c),this.size+=v.size==E?0:1,this}Ai.prototype.clear=TM,Ai.prototype.delete=OM,Ai.prototype.get=kM,Ai.prototype.has=RM,Ai.prototype.set=AM;function ao(s){var c=-1,v=s==null?0:s.length;for(this.__data__=new Ai;++c<v;)this.add(s[c])}function PM(s){return this.__data__.set(s,l),this}function NM(s){return this.__data__.has(s)}ao.prototype.add=ao.prototype.push=PM,ao.prototype.has=NM;function Zr(s){var c=this.__data__=new Ri(s);this.size=c.size}function IM(){this.__data__=new Ri,this.size=0}function LM(s){var c=this.__data__,v=c.delete(s);return this.size=c.size,v}function FM(s){return this.__data__.get(s)}function DM(s){return this.__data__.has(s)}function MM(s,c){var v=this.__data__;if(v instanceof Ri){var E=v.__data__;if(!Qu||E.length<i-1)return E.push([s,c]),this.size=++v.size,this;v=this.__data__=new Ai(E)}return v.set(s,c),this.size=v.size,this}Zr.prototype.clear=IM,Zr.prototype.delete=LM,Zr.prototype.get=FM,Zr.prototype.has=DM,Zr.prototype.set=MM;function UC(s,c){var v=Ye(s),E=!v&&co(s),R=!v&&!E&&wa(s),I=!v&&!E&&!R&&Ns(s),U=v||E||R||I,W=U?Bg(s.length,GD):[],ee=W.length;for(var he in s)(c||At.call(s,he))&&!(U&&(he=="length"||R&&(he=="offset"||he=="parent")||I&&(he=="buffer"||he=="byteLength"||he=="byteOffset")||Li(he,ee)))&&W.push(he);return W}function zC(s){var c=s.length;return c?s[u1(0,c-1)]:n}function jM(s,c){return td(Zn(s),oo(c,0,s.length))}function $M(s){return td(Zn(s))}function Zg(s,c,v){(v!==n&&!Jr(s[c],v)||v===n&&!(c in s))&&Pi(s,c,v)}function Zu(s,c,v){var E=s[c];(!(At.call(s,c)&&Jr(E,v))||v===n&&!(c in s))&&Pi(s,c,v)}function Uf(s,c){for(var v=s.length;v--;)if(Jr(s[v][0],c))return v;return-1}function VM(s,c,v,E){return ga(s,function(R,I,U){c(E,R,v(R),U)}),E}function HC(s,c){return s&&yi(c,bn(c),s)}function qM(s,c){return s&&yi(c,er(c),s)}function Pi(s,c,v){c=="__proto__"&&Df?Df(s,c,{configurable:!0,enumerable:!0,value:v,writable:!0}):s[c]=v}function Jg(s,c){for(var v=-1,E=c.length,R=oe(E),I=s==null;++v<E;)R[v]=I?n:I1(s,c[v]);return R}function oo(s,c,v){return s===s&&(v!==n&&(s=s<=v?s:v),c!==n&&(s=s>=c?s:c)),s}function Fr(s,c,v,E,R,I){var U,W=c&h,ee=c&p,he=c&m;if(v&&(U=R?v(s,E,R,I):v(s)),U!==n)return U;if(!Xt(s))return s;var pe=Ye(s);if(pe){if(U=Rj(s),!W)return Zn(s,U)}else{var ge=Ln(s),xe=ge==K||ge==we;if(wa(s))return p5(s,W);if(ge==Je||ge==fe||xe&&!R){if(U=ee||xe?{}:I5(s),!W)return ee?yj(s,qM(U,s)):gj(s,HC(U,s))}else{if(!gt[ge])return R?s:{};U=Aj(s,ge,W)}}I||(I=new Zr);var Ne=I.get(s);if(Ne)return Ne;I.set(s,U),u6(s)?s.forEach(function(Ve){U.add(Fr(Ve,c,v,Ve,s,I))}):o6(s)&&s.forEach(function(Ve,ot){U.set(ot,Fr(Ve,c,v,ot,s,I))});var $e=he?ee?b1:y1:ee?er:bn,tt=pe?n:$e(s);return Nr(tt||s,function(Ve,ot){tt&&(ot=Ve,Ve=s[ot]),Zu(U,ot,Fr(Ve,c,v,ot,s,I))}),U}function UM(s){var c=bn(s);return function(v){return BC(v,s,c)}}function BC(s,c,v){var E=v.length;if(s==null)return!E;for(s=Dt(s);E--;){var R=v[E],I=c[R],U=s[R];if(U===n&&!(R in s)||!I(U))return!1}return!0}function WC(s,c,v){if(typeof s!="function")throw new Ir(o);return al(function(){s.apply(n,v)},c)}function Ju(s,c,v,E){var R=-1,I=Cf,U=!0,W=s.length,ee=[],he=c.length;if(!W)return ee;v&&(c=Bt(c,hr(v))),E?(I=$g,U=!1):c.length>=i&&(I=Wu,U=!1,c=new ao(c));e:for(;++R<W;){var pe=s[R],ge=v==null?pe:v(pe);if(pe=E||pe!==0?pe:0,U&&ge===ge){for(var xe=he;xe--;)if(c[xe]===ge)continue e;ee.push(pe)}else I(c,ge,E)||ee.push(pe)}return ee}var ga=b5(gi),GC=b5(t1,!0);function zM(s,c){var v=!0;return ga(s,function(E,R,I){return v=!!c(E,R,I),v}),v}function zf(s,c,v){for(var E=-1,R=s.length;++E<R;){var I=s[E],U=c(I);if(U!=null&&(W===n?U===U&&!vr(U):v(U,W)))var W=U,ee=I}return ee}function HM(s,c,v,E){var R=s.length;for(v=Ze(v),v<0&&(v=-v>R?0:R+v),E=E===n||E>R?R:Ze(E),E<0&&(E+=R),E=v>E?0:c6(E);v<E;)s[v++]=c;return s}function QC(s,c){var v=[];return ga(s,function(E,R,I){c(E,R,I)&&v.push(E)}),v}function xn(s,c,v,E,R){var I=-1,U=s.length;for(v||(v=Nj),R||(R=[]);++I<U;){var W=s[I];c>0&&v(W)?c>1?xn(W,c-1,v,E,R):pa(R,W):E||(R[R.length]=W)}return R}var e1=_5(),YC=_5(!0);function gi(s,c){return s&&e1(s,c,bn)}function t1(s,c){return s&&YC(s,c,bn)}function Hf(s,c){return ha(c,function(v){return Fi(s[v])})}function so(s,c){c=ba(c,s);for(var v=0,E=c.length;s!=null&&v<E;)s=s[bi(c[v++])];return v&&v==E?s:n}function KC(s,c,v){var E=c(s);return Ye(s)?E:pa(E,v(s))}function Un(s){return s==null?s===n?jt:Ie:ro&&ro in Dt(s)?Tj(s):$j(s)}function n1(s,c){return s>c}function BM(s,c){return s!=null&&At.call(s,c)}function WM(s,c){return s!=null&&c in Dt(s)}function GM(s,c,v){return s>=In(c,v)&&s<dn(c,v)}function r1(s,c,v){for(var E=v?$g:Cf,R=s[0].length,I=s.length,U=I,W=oe(I),ee=1/0,he=[];U--;){var pe=s[U];U&&c&&(pe=Bt(pe,hr(c))),ee=In(pe.length,ee),W[U]=!v&&(c||R>=120&&pe.length>=120)?new ao(U&&pe):n}pe=s[0];var ge=-1,xe=W[0];e:for(;++ge<R&&he.length<ee;){var Ne=pe[ge],$e=c?c(Ne):Ne;if(Ne=v||Ne!==0?Ne:0,!(xe?Wu(xe,$e):E(he,$e,v))){for(U=I;--U;){var tt=W[U];if(!(tt?Wu(tt,$e):E(s[U],$e,v)))continue e}xe&&xe.push($e),he.push(Ne)}}return he}function QM(s,c,v,E){return gi(s,function(R,I,U){c(E,v(R),I,U)}),E}function el(s,c,v){c=ba(c,s),s=M5(s,c);var E=s==null?s:s[bi(Mr(c))];return E==null?n:dr(E,s,v)}function XC(s){return en(s)&&Un(s)==fe}function YM(s){return en(s)&&Un(s)==un}function KM(s){return en(s)&&Un(s)==be}function tl(s,c,v,E,R){return s===c?!0:s==null||c==null||!en(s)&&!en(c)?s!==s&&c!==c:XM(s,c,v,E,tl,R)}function XM(s,c,v,E,R,I){var U=Ye(s),W=Ye(c),ee=U?le:Ln(s),he=W?le:Ln(c);ee=ee==fe?Je:ee,he=he==fe?Je:he;var pe=ee==Je,ge=he==Je,xe=ee==he;if(xe&&wa(s)){if(!wa(c))return!1;U=!0,pe=!1}if(xe&&!pe)return I||(I=new Zr),U||Ns(s)?A5(s,c,v,E,R,I):xj(s,c,ee,v,E,R,I);if(!(v&y)){var Ne=pe&&At.call(s,"__wrapped__"),$e=ge&&At.call(c,"__wrapped__");if(Ne||$e){var tt=Ne?s.value():s,Ve=$e?c.value():c;return I||(I=new Zr),R(tt,Ve,v,E,I)}}return xe?(I||(I=new Zr),Cj(s,c,v,E,R,I)):!1}function ZM(s){return en(s)&&Ln(s)==ue}function i1(s,c,v,E){var R=v.length,I=R,U=!E;if(s==null)return!I;for(s=Dt(s);R--;){var W=v[R];if(U&&W[2]?W[1]!==s[W[0]]:!(W[0]in s))return!1}for(;++R<I;){W=v[R];var ee=W[0],he=s[ee],pe=W[1];if(U&&W[2]){if(he===n&&!(ee in s))return!1}else{var ge=new Zr;if(E)var xe=E(he,pe,ee,s,c,ge);if(!(xe===n?tl(pe,he,y|g,E,ge):xe))return!1}}return!0}function ZC(s){if(!Xt(s)||Lj(s))return!1;var c=Fi(s)?ZD:zt;return c.test(lo(s))}function JM(s){return en(s)&&Un(s)==Vt}function ej(s){return en(s)&&Ln(s)==Me}function tj(s){return en(s)&&sd(s.length)&&!!Nt[Un(s)]}function JC(s){return typeof s=="function"?s:s==null?tr:typeof s=="object"?Ye(s)?n5(s[0],s[1]):t5(s):w6(s)}function a1(s){if(!il(s))return iM(s);var c=[];for(var v in Dt(s))At.call(s,v)&&v!="constructor"&&c.push(v);return c}function nj(s){if(!Xt(s))return jj(s);var c=il(s),v=[];for(var E in s)E=="constructor"&&(c||!At.call(s,E))||v.push(E);return v}function o1(s,c){return s<c}function e5(s,c){var v=-1,E=Jn(s)?oe(s.length):[];return ga(s,function(R,I,U){E[++v]=c(R,I,U)}),E}function t5(s){var c=w1(s);return c.length==1&&c[0][2]?F5(c[0][0],c[0][1]):function(v){return v===s||i1(v,s,c)}}function n5(s,c){return S1(s)&&L5(c)?F5(bi(s),c):function(v){var E=I1(v,s);return E===n&&E===c?L1(v,s):tl(c,E,y|g)}}function Bf(s,c,v,E,R){s!==c&&e1(c,function(I,U){if(R||(R=new Zr),Xt(I))rj(s,c,U,v,Bf,E,R);else{var W=E?E(C1(s,U),I,U+"",s,c,R):n;W===n&&(W=I),Zg(s,U,W)}},er)}function rj(s,c,v,E,R,I,U){var W=C1(s,v),ee=C1(c,v),he=U.get(ee);if(he){Zg(s,v,he);return}var pe=I?I(W,ee,v+"",s,c,U):n,ge=pe===n;if(ge){var xe=Ye(ee),Ne=!xe&&wa(ee),$e=!xe&&!Ne&&Ns(ee);pe=ee,xe||Ne||$e?Ye(W)?pe=W:an(W)?pe=Zn(W):Ne?(ge=!1,pe=p5(ee,!0)):$e?(ge=!1,pe=v5(ee,!0)):pe=[]:ol(ee)||co(ee)?(pe=W,co(W)?pe=f6(W):(!Xt(W)||Fi(W))&&(pe=I5(ee))):ge=!1}ge&&(U.set(ee,pe),R(pe,ee,E,I,U),U.delete(ee)),Zg(s,v,pe)}function r5(s,c){var v=s.length;if(v)return c+=c<0?v:0,Li(c,v)?s[c]:n}function i5(s,c,v){c.length?c=Bt(c,function(I){return Ye(I)?function(U){return so(U,I.length===1?I[0]:I)}:I}):c=[tr];var E=-1;c=Bt(c,hr(je()));var R=e5(s,function(I,U,W){var ee=Bt(c,function(he){return he(I)});return{criteria:ee,index:++E,value:I}});return AD(R,function(I,U){return mj(I,U,v)})}function ij(s,c){return a5(s,c,function(v,E){return L1(s,E)})}function a5(s,c,v){for(var E=-1,R=c.length,I={};++E<R;){var U=c[E],W=so(s,U);v(W,U)&&nl(I,ba(U,s),W)}return I}function aj(s){return function(c){return so(c,s)}}function s1(s,c,v,E){var R=E?RD:ws,I=-1,U=c.length,W=s;for(s===c&&(c=Zn(c)),v&&(W=Bt(s,hr(v)));++I<U;)for(var ee=0,he=c[I],pe=v?v(he):he;(ee=R(W,pe,ee,E))>-1;)W!==s&&Ff.call(W,ee,1),Ff.call(s,ee,1);return s}function o5(s,c){for(var v=s?c.length:0,E=v-1;v--;){var R=c[v];if(v==E||R!==I){var I=R;Li(R)?Ff.call(s,R,1):f1(s,R)}}return s}function u1(s,c){return s+jf(VC()*(c-s+1))}function oj(s,c,v,E){for(var R=-1,I=dn(Mf((c-s)/(v||1)),0),U=oe(I);I--;)U[E?I:++R]=s,s+=v;return U}function l1(s,c){var v="";if(!s||c<1||c>q)return v;do c%2&&(v+=s),c=jf(c/2),c&&(s+=s);while(c);return v}function rt(s,c){return T1(D5(s,c,tr),s+"")}function sj(s){return zC(Is(s))}function uj(s,c){var v=Is(s);return td(v,oo(c,0,v.length))}function nl(s,c,v,E){if(!Xt(s))return s;c=ba(c,s);for(var R=-1,I=c.length,U=I-1,W=s;W!=null&&++R<I;){var ee=bi(c[R]),he=v;if(ee==="__proto__"||ee==="constructor"||ee==="prototype")return s;if(R!=U){var pe=W[ee];he=E?E(pe,ee,W):n,he===n&&(he=Xt(pe)?pe:Li(c[R+1])?[]:{})}Zu(W,ee,he),W=W[ee]}return s}var s5=$f?function(s,c){return $f.set(s,c),s}:tr,lj=Df?function(s,c){return Df(s,"toString",{configurable:!0,enumerable:!1,value:D1(c),writable:!0})}:tr;function cj(s){return td(Is(s))}function Dr(s,c,v){var E=-1,R=s.length;c<0&&(c=-c>R?0:R+c),v=v>R?R:v,v<0&&(v+=R),R=c>v?0:v-c>>>0,c>>>=0;for(var I=oe(R);++E<R;)I[E]=s[E+c];return I}function fj(s,c){var v;return ga(s,function(E,R,I){return v=c(E,R,I),!v}),!!v}function Wf(s,c,v){var E=0,R=s==null?E:s.length;if(typeof c=="number"&&c===c&&R<=ie){for(;E<R;){var I=E+R>>>1,U=s[I];U!==null&&!vr(U)&&(v?U<=c:U<c)?E=I+1:R=I}return R}return c1(s,c,tr,v)}function c1(s,c,v,E){var R=0,I=s==null?0:s.length;if(I===0)return 0;c=v(c);for(var U=c!==c,W=c===null,ee=vr(c),he=c===n;R<I;){var pe=jf((R+I)/2),ge=v(s[pe]),xe=ge!==n,Ne=ge===null,$e=ge===ge,tt=vr(ge);if(U)var Ve=E||$e;else he?Ve=$e&&(E||xe):W?Ve=$e&&xe&&(E||!Ne):ee?Ve=$e&&xe&&!Ne&&(E||!tt):Ne||tt?Ve=!1:Ve=E?ge<=c:ge<c;Ve?R=pe+1:I=pe}return In(I,ae)}function u5(s,c){for(var v=-1,E=s.length,R=0,I=[];++v<E;){var U=s[v],W=c?c(U):U;if(!v||!Jr(W,ee)){var ee=W;I[R++]=U===0?0:U}}return I}function l5(s){return typeof s=="number"?s:vr(s)?$:+s}function pr(s){if(typeof s=="string")return s;if(Ye(s))return Bt(s,pr)+"";if(vr(s))return qC?qC.call(s):"";var c=s+"";return c=="0"&&1/s==-1/0?"-0":c}function ya(s,c,v){var E=-1,R=Cf,I=s.length,U=!0,W=[],ee=W;if(v)U=!1,R=$g;else if(I>=i){var he=c?null:Ej(s);if(he)return Of(he);U=!1,R=Wu,ee=new ao}else ee=c?[]:W;e:for(;++E<I;){var pe=s[E],ge=c?c(pe):pe;if(pe=v||pe!==0?pe:0,U&&ge===ge){for(var xe=ee.length;xe--;)if(ee[xe]===ge)continue e;c&&ee.push(ge),W.push(pe)}else R(ee,ge,v)||(ee!==W&&ee.push(ge),W.push(pe))}return W}function f1(s,c){return c=ba(c,s),s=M5(s,c),s==null||delete s[bi(Mr(c))]}function c5(s,c,v,E){return nl(s,c,v(so(s,c)),E)}function Gf(s,c,v,E){for(var R=s.length,I=E?R:-1;(E?I--:++I<R)&&c(s[I],I,s););return v?Dr(s,E?0:I,E?I+1:R):Dr(s,E?I+1:0,E?R:I)}function f5(s,c){var v=s;return v instanceof lt&&(v=v.value()),Vg(c,function(E,R){return R.func.apply(R.thisArg,pa([E],R.args))},v)}function d1(s,c,v){var E=s.length;if(E<2)return E?ya(s[0]):[];for(var R=-1,I=oe(E);++R<E;)for(var U=s[R],W=-1;++W<E;)W!=R&&(I[R]=Ju(I[R]||U,s[W],c,v));return ya(xn(I,1),c,v)}function d5(s,c,v){for(var E=-1,R=s.length,I=c.length,U={};++E<R;){var W=E<I?c[E]:n;v(U,s[E],W)}return U}function h1(s){return an(s)?s:[]}function p1(s){return typeof s=="function"?s:tr}function ba(s,c){return Ye(s)?s:S1(s,c)?[s]:q5(Tt(s))}var dj=rt;function _a(s,c,v){var E=s.length;return v=v===n?E:v,!c&&v>=E?s:Dr(s,c,v)}var h5=JD||function(s){return Sn.clearTimeout(s)};function p5(s,c){if(c)return s.slice();var v=s.length,E=FC?FC(v):new s.constructor(v);return s.copy(E),E}function v1(s){var c=new s.constructor(s.byteLength);return new If(c).set(new If(s)),c}function hj(s,c){var v=c?v1(s.buffer):s.buffer;return new s.constructor(v,s.byteOffset,s.byteLength)}function pj(s){var c=new s.constructor(s.source,at.exec(s));return c.lastIndex=s.lastIndex,c}function vj(s){return Xu?Dt(Xu.call(s)):{}}function v5(s,c){var v=c?v1(s.buffer):s.buffer;return new s.constructor(v,s.byteOffset,s.length)}function m5(s,c){if(s!==c){var v=s!==n,E=s===null,R=s===s,I=vr(s),U=c!==n,W=c===null,ee=c===c,he=vr(c);if(!W&&!he&&!I&&s>c||I&&U&&ee&&!W&&!he||E&&U&&ee||!v&&ee||!R)return 1;if(!E&&!I&&!he&&s<c||he&&v&&R&&!E&&!I||W&&v&&R||!U&&R||!ee)return-1}return 0}function mj(s,c,v){for(var E=-1,R=s.criteria,I=c.criteria,U=R.length,W=v.length;++E<U;){var ee=m5(R[E],I[E]);if(ee){if(E>=W)return ee;var he=v[E];return ee*(he=="desc"?-1:1)}}return s.index-c.index}function g5(s,c,v,E){for(var R=-1,I=s.length,U=v.length,W=-1,ee=c.length,he=dn(I-U,0),pe=oe(ee+he),ge=!E;++W<ee;)pe[W]=c[W];for(;++R<U;)(ge||R<I)&&(pe[v[R]]=s[R]);for(;he--;)pe[W++]=s[R++];return pe}function y5(s,c,v,E){for(var R=-1,I=s.length,U=-1,W=v.length,ee=-1,he=c.length,pe=dn(I-W,0),ge=oe(pe+he),xe=!E;++R<pe;)ge[R]=s[R];for(var Ne=R;++ee<he;)ge[Ne+ee]=c[ee];for(;++U<W;)(xe||R<I)&&(ge[Ne+v[U]]=s[R++]);return ge}function Zn(s,c){var v=-1,E=s.length;for(c||(c=oe(E));++v<E;)c[v]=s[v];return c}function yi(s,c,v,E){var R=!v;v||(v={});for(var I=-1,U=c.length;++I<U;){var W=c[I],ee=E?E(v[W],s[W],W,v,s):n;ee===n&&(ee=s[W]),R?Pi(v,W,ee):Zu(v,W,ee)}return v}function gj(s,c){return yi(s,E1(s),c)}function yj(s,c){return yi(s,P5(s),c)}function Qf(s,c){return function(v,E){var R=Ye(v)?SD:VM,I=c?c():{};return R(v,s,je(E,2),I)}}function Rs(s){return rt(function(c,v){var E=-1,R=v.length,I=R>1?v[R-1]:n,U=R>2?v[2]:n;for(I=s.length>3&&typeof I=="function"?(R--,I):n,U&&zn(v[0],v[1],U)&&(I=R<3?n:I,R=1),c=Dt(c);++E<R;){var W=v[E];W&&s(c,W,E,I)}return c})}function b5(s,c){return function(v,E){if(v==null)return v;if(!Jn(v))return s(v,E);for(var R=v.length,I=c?R:-1,U=Dt(v);(c?I--:++I<R)&&E(U[I],I,U)!==!1;);return v}}function _5(s){return function(c,v,E){for(var R=-1,I=Dt(c),U=E(c),W=U.length;W--;){var ee=U[s?W:++R];if(v(I[ee],ee,I)===!1)break}return c}}function bj(s,c,v){var E=c&b,R=rl(s);function I(){var U=this&&this!==Sn&&this instanceof I?R:s;return U.apply(E?v:this,arguments)}return I}function w5(s){return function(c){c=Tt(c);var v=Es(c)?Xr(c):n,E=v?v[0]:c.charAt(0),R=v?_a(v,1).join(""):c.slice(1);return E[s]()+R}}function As(s){return function(c){return Vg(b6(y6(c).replace(Hu,"")),s,"")}}function rl(s){return function(){var c=arguments;switch(c.length){case 0:return new s;case 1:return new s(c[0]);case 2:return new s(c[0],c[1]);case 3:return new s(c[0],c[1],c[2]);case 4:return new s(c[0],c[1],c[2],c[3]);case 5:return new s(c[0],c[1],c[2],c[3],c[4]);case 6:return new s(c[0],c[1],c[2],c[3],c[4],c[5]);case 7:return new s(c[0],c[1],c[2],c[3],c[4],c[5],c[6])}var v=ks(s.prototype),E=s.apply(v,c);return Xt(E)?E:v}}function _j(s,c,v){var E=rl(s);function R(){for(var I=arguments.length,U=oe(I),W=I,ee=Ps(R);W--;)U[W]=arguments[W];var he=I<3&&U[0]!==ee&&U[I-1]!==ee?[]:va(U,ee);if(I-=he.length,I<v)return T5(s,c,Yf,R.placeholder,n,U,he,n,n,v-I);var pe=this&&this!==Sn&&this instanceof R?E:s;return dr(pe,this,U)}return R}function E5(s){return function(c,v,E){var R=Dt(c);if(!Jn(c)){var I=je(v,3);c=bn(c),v=function(W){return I(R[W],W,R)}}var U=s(c,v,E);return U>-1?R[I?c[U]:U]:n}}function S5(s){return Ii(function(c){var v=c.length,E=v,R=Lr.prototype.thru;for(s&&c.reverse();E--;){var I=c[E];if(typeof I!="function")throw new Ir(o);if(R&&!U&&Jf(I)=="wrapper")var U=new Lr([],!0)}for(E=U?E:v;++E<v;){I=c[E];var W=Jf(I),ee=W=="wrapper"?_1(I):n;ee&&x1(ee[0])&&ee[1]==(k|C|_|A)&&!ee[4].length&&ee[9]==1?U=U[Jf(ee[0])].apply(U,ee[3]):U=I.length==1&&x1(I)?U[W]():U.thru(I)}return function(){var he=arguments,pe=he[0];if(U&&he.length==1&&Ye(pe))return U.plant(pe).value();for(var ge=0,xe=v?c[ge].apply(this,he):pe;++ge<v;)xe=c[ge].call(this,xe);return xe}})}function Yf(s,c,v,E,R,I,U,W,ee,he){var pe=c&k,ge=c&b,xe=c&w,Ne=c&(C|T),$e=c&L,tt=xe?n:rl(s);function Ve(){for(var ot=arguments.length,ft=oe(ot),mr=ot;mr--;)ft[mr]=arguments[mr];if(Ne)var Hn=Ps(Ve),gr=ND(ft,Hn);if(E&&(ft=g5(ft,E,R,Ne)),I&&(ft=y5(ft,I,U,Ne)),ot-=gr,Ne&&ot<he){var on=va(ft,Hn);return T5(s,c,Yf,Ve.placeholder,v,ft,on,W,ee,he-ot)}var ei=ge?v:this,Mi=xe?ei[s]:s;return ot=ft.length,W?ft=Vj(ft,W):$e&&ot>1&&ft.reverse(),pe&&ee<ot&&(ft.length=ee),this&&this!==Sn&&this instanceof Ve&&(Mi=tt||rl(Mi)),Mi.apply(ei,ft)}return Ve}function x5(s,c){return function(v,E){return QM(v,s,c(E),{})}}function Kf(s,c){return function(v,E){var R;if(v===n&&E===n)return c;if(v!==n&&(R=v),E!==n){if(R===n)return E;typeof v=="string"||typeof E=="string"?(v=pr(v),E=pr(E)):(v=l5(v),E=l5(E)),R=s(v,E)}return R}}function m1(s){return Ii(function(c){return c=Bt(c,hr(je())),rt(function(v){var E=this;return s(c,function(R){return dr(R,E,v)})})})}function Xf(s,c){c=c===n?" ":pr(c);var v=c.length;if(v<2)return v?l1(c,s):c;var E=l1(c,Mf(s/Ss(c)));return Es(c)?_a(Xr(E),0,s).join(""):E.slice(0,s)}function wj(s,c,v,E){var R=c&b,I=rl(s);function U(){for(var W=-1,ee=arguments.length,he=-1,pe=E.length,ge=oe(pe+ee),xe=this&&this!==Sn&&this instanceof U?I:s;++he<pe;)ge[he]=E[he];for(;ee--;)ge[he++]=arguments[++W];return dr(xe,R?v:this,ge)}return U}function C5(s){return function(c,v,E){return E&&typeof E!="number"&&zn(c,v,E)&&(v=E=n),c=Di(c),v===n?(v=c,c=0):v=Di(v),E=E===n?c<v?1:-1:Di(E),oj(c,v,E,s)}}function Zf(s){return function(c,v){return typeof c=="string"&&typeof v=="string"||(c=jr(c),v=jr(v)),s(c,v)}}function T5(s,c,v,E,R,I,U,W,ee,he){var pe=c&C,ge=pe?U:n,xe=pe?n:U,Ne=pe?I:n,$e=pe?n:I;c|=pe?_:x,c&=~(pe?x:_),c&S||(c&=-4);var tt=[s,c,R,Ne,ge,$e,xe,W,ee,he],Ve=v.apply(n,tt);return x1(s)&&j5(Ve,tt),Ve.placeholder=E,$5(Ve,s,c)}function g1(s){var c=fn[s];return function(v,E){if(v=jr(v),E=E==null?0:In(Ze(E),292),E&&$C(v)){var R=(Tt(v)+"e").split("e"),I=c(R[0]+"e"+(+R[1]+E));return R=(Tt(I)+"e").split("e"),+(R[0]+"e"+(+R[1]-E))}return c(v)}}var Ej=Ts&&1/Of(new Ts([,-0]))[1]==Q?function(s){return new Ts(s)}:$1;function O5(s){return function(c){var v=Ln(c);return v==ue?Gg(c):v==Me?$D(c):PD(c,s(c))}}function Ni(s,c,v,E,R,I,U,W){var ee=c&w;if(!ee&&typeof s!="function")throw new Ir(o);var he=E?E.length:0;if(he||(c&=-97,E=R=n),U=U===n?U:dn(Ze(U),0),W=W===n?W:Ze(W),he-=R?R.length:0,c&x){var pe=E,ge=R;E=R=n}var xe=ee?n:_1(s),Ne=[s,c,v,E,R,pe,ge,I,U,W];if(xe&&Mj(Ne,xe),s=Ne[0],c=Ne[1],v=Ne[2],E=Ne[3],R=Ne[4],W=Ne[9]=Ne[9]===n?ee?0:s.length:dn(Ne[9]-he,0),!W&&c&(C|T)&&(c&=-25),!c||c==b)var $e=bj(s,c,v);else c==C||c==T?$e=_j(s,c,W):(c==_||c==(b|_))&&!R.length?$e=wj(s,c,v,E):$e=Yf.apply(n,Ne);var tt=xe?s5:j5;return $5(tt($e,Ne),s,c)}function k5(s,c,v,E){return s===n||Jr(s,Cs[v])&&!At.call(E,v)?c:s}function R5(s,c,v,E,R,I){return Xt(s)&&Xt(c)&&(I.set(c,s),Bf(s,c,n,R5,I),I.delete(c)),s}function Sj(s){return ol(s)?n:s}function A5(s,c,v,E,R,I){var U=v&y,W=s.length,ee=c.length;if(W!=ee&&!(U&&ee>W))return!1;var he=I.get(s),pe=I.get(c);if(he&&pe)return he==c&&pe==s;var ge=-1,xe=!0,Ne=v&g?new ao:n;for(I.set(s,c),I.set(c,s);++ge<W;){var $e=s[ge],tt=c[ge];if(E)var Ve=U?E(tt,$e,ge,c,s,I):E($e,tt,ge,s,c,I);if(Ve!==n){if(Ve)continue;xe=!1;break}if(Ne){if(!qg(c,function(ot,ft){if(!Wu(Ne,ft)&&($e===ot||R($e,ot,v,E,I)))return Ne.push(ft)})){xe=!1;break}}else if(!($e===tt||R($e,tt,v,E,I))){xe=!1;break}}return I.delete(s),I.delete(c),xe}function xj(s,c,v,E,R,I,U){switch(v){case Kt:if(s.byteLength!=c.byteLength||s.byteOffset!=c.byteOffset)return!1;s=s.buffer,c=c.buffer;case un:return!(s.byteLength!=c.byteLength||!I(new If(s),new If(c)));case _e:case be:case Te:return Jr(+s,+c);case ve:return s.name==c.name&&s.message==c.message;case Vt:case et:return s==c+"";case ue:var W=Gg;case Me:var ee=E&y;if(W||(W=Of),s.size!=c.size&&!ee)return!1;var he=U.get(s);if(he)return he==c;E|=g,U.set(s,c);var pe=A5(W(s),W(c),E,R,I,U);return U.delete(s),pe;case Ee:if(Xu)return Xu.call(s)==Xu.call(c)}return!1}function Cj(s,c,v,E,R,I){var U=v&y,W=y1(s),ee=W.length,he=y1(c),pe=he.length;if(ee!=pe&&!U)return!1;for(var ge=ee;ge--;){var xe=W[ge];if(!(U?xe in c:At.call(c,xe)))return!1}var Ne=I.get(s),$e=I.get(c);if(Ne&&$e)return Ne==c&&$e==s;var tt=!0;I.set(s,c),I.set(c,s);for(var Ve=U;++ge<ee;){xe=W[ge];var ot=s[xe],ft=c[xe];if(E)var mr=U?E(ft,ot,xe,c,s,I):E(ot,ft,xe,s,c,I);if(!(mr===n?ot===ft||R(ot,ft,v,E,I):mr)){tt=!1;break}Ve||(Ve=xe=="constructor")}if(tt&&!Ve){var Hn=s.constructor,gr=c.constructor;Hn!=gr&&"constructor"in s&&"constructor"in c&&!(typeof Hn=="function"&&Hn instanceof Hn&&typeof gr=="function"&&gr instanceof gr)&&(tt=!1)}return I.delete(s),I.delete(c),tt}function Ii(s){return T1(D5(s,n,B5),s+"")}function y1(s){return KC(s,bn,E1)}function b1(s){return KC(s,er,P5)}var _1=$f?function(s){return $f.get(s)}:$1;function Jf(s){for(var c=s.name+"",v=Os[c],E=At.call(Os,c)?v.length:0;E--;){var R=v[E],I=R.func;if(I==null||I==s)return R.name}return c}function Ps(s){var c=At.call(P,"placeholder")?P:s;return c.placeholder}function je(){var s=P.iteratee||M1;return s=s===M1?JC:s,arguments.length?s(arguments[0],arguments[1]):s}function ed(s,c){var v=s.__data__;return Ij(c)?v[typeof c=="string"?"string":"hash"]:v.map}function w1(s){for(var c=bn(s),v=c.length;v--;){var E=c[v],R=s[E];c[v]=[E,R,L5(R)]}return c}function uo(s,c){var v=DD(s,c);return ZC(v)?v:n}function Tj(s){var c=At.call(s,ro),v=s[ro];try{s[ro]=n;var E=!0}catch{}var R=Pf.call(s);return E&&(c?s[ro]=v:delete s[ro]),R}var E1=Yg?function(s){return s==null?[]:(s=Dt(s),ha(Yg(s),function(c){return MC.call(s,c)}))}:V1,P5=Yg?function(s){for(var c=[];s;)pa(c,E1(s)),s=Lf(s);return c}:V1,Ln=Un;(Kg&&Ln(new Kg(new ArrayBuffer(1)))!=Kt||Qu&&Ln(new Qu)!=ue||Xg&&Ln(Xg.resolve())!=xt||Ts&&Ln(new Ts)!=Me||Yu&&Ln(new Yu)!=Ct)&&(Ln=function(s){var c=Un(s),v=c==Je?s.constructor:n,E=v?lo(v):"";if(E)switch(E){case uM:return Kt;case lM:return ue;case cM:return xt;case fM:return Me;case dM:return Ct}return c});function Oj(s,c,v){for(var E=-1,R=v.length;++E<R;){var I=v[E],U=I.size;switch(I.type){case"drop":s+=U;break;case"dropRight":c-=U;break;case"take":c=In(c,s+U);break;case"takeRight":s=dn(s,c-U);break}}return{start:s,end:c}}function kj(s){var c=s.match(kr);return c?c[1].split(B):[]}function N5(s,c,v){c=ba(c,s);for(var E=-1,R=c.length,I=!1;++E<R;){var U=bi(c[E]);if(!(I=s!=null&&v(s,U)))break;s=s[U]}return I||++E!=R?I:(R=s==null?0:s.length,!!R&&sd(R)&&Li(U,R)&&(Ye(s)||co(s)))}function Rj(s){var c=s.length,v=new s.constructor(c);return c&&typeof s[0]=="string"&&At.call(s,"index")&&(v.index=s.index,v.input=s.input),v}function I5(s){return typeof s.constructor=="function"&&!il(s)?ks(Lf(s)):{}}function Aj(s,c,v){var E=s.constructor;switch(c){case un:return v1(s);case _e:case be:return new E(+s);case Kt:return hj(s,v);case He:case Jt:case kt:case pt:case Ut:case mn:case xi:case ur:case gn:return v5(s,v);case ue:return new E;case Te:case et:return new E(s);case Vt:return pj(s);case Me:return new E;case Ee:return vj(s)}}function Pj(s,c){var v=c.length;if(!v)return s;var E=v-1;return c[E]=(v>1?"& ":"")+c[E],c=c.join(v>2?", ":" "),s.replace(Ci,`{
66
66
  /* [wrapped with `+c+`] */
67
- `)}function Nj(s){return Ye(s)||co(s)||!!(jC&&s&&s[jC])}function Li(s,c){var v=typeof s;return c=c??q,!!c&&(v=="number"||v!="symbol"&&Dt.test(s))&&s>-1&&s%1==0&&s<c}function zn(s,c,v){if(!Xt(v))return!1;var E=typeof c;return(E=="number"?Jn(v)&&Li(c,v.length):E=="string"&&c in v)?Jr(v[c],s):!1}function S1(s,c){if(Ye(s))return!1;var v=typeof s;return v=="number"||v=="symbol"||v=="boolean"||s==null||vr(s)?!0:Pt.test(s)||!gt.test(s)||c!=null&&s in jt(c)}function Ij(s){var c=typeof s;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?s!=="__proto__":s===null}function x1(s){var c=Jf(s),v=P[c];if(typeof v!="function"||!(c in lt.prototype))return!1;if(s===v)return!0;var E=_1(v);return!!E&&s===E[0]}function Lj(s){return!!LC&&LC in s}var Fj=Rf?Fi:q1;function il(s){var c=s&&s.constructor,v=typeof c=="function"&&c.prototype||Cs;return s===v}function L5(s){return s===s&&!Xt(s)}function F5(s,c){return function(v){return v==null?!1:v[s]===c&&(c!==n||s in jt(v))}}function Dj(s){var c=ad(s,function(E){return v.size===f&&v.clear(),E}),v=c.cache;return c}function Mj(s,c){var v=s[1],E=c[1],R=v|E,I=R<(b|w|k),U=E==k&&v==C||E==k&&v==A&&s[7].length<=c[8]||E==(k|A)&&c[7].length<=c[8]&&v==C;if(!(I||U))return s;E&b&&(s[2]=c[2],R|=v&b?0:S);var G=c[3];if(G){var ee=s[3];s[3]=ee?g5(ee,G,c[4]):G,s[4]=ee?va(s[3],d):c[4]}return G=c[5],G&&(ee=s[5],s[5]=ee?y5(ee,G,c[6]):G,s[6]=ee?va(s[5],d):c[6]),G=c[7],G&&(s[7]=G),E&k&&(s[8]=s[8]==null?c[8]:In(s[8],c[8])),s[9]==null&&(s[9]=c[9]),s[0]=c[0],s[1]=R,s}function jj(s){var c=[];if(s!=null)for(var v in jt(s))c.push(v);return c}function $j(s){return Pf.call(s)}function D5(s,c,v){return c=dn(c===n?s.length-1:c,0),function(){for(var E=arguments,R=-1,I=dn(E.length-c,0),U=oe(I);++R<I;)U[R]=E[c+R];R=-1;for(var G=oe(c+1);++R<c;)G[R]=E[R];return G[c]=v(U),dr(s,this,G)}}function M5(s,c){return c.length<2?s:so(s,Dr(c,0,-1))}function Vj(s,c){for(var v=s.length,E=In(c.length,v),R=Zn(s);E--;){var I=c[E];s[E]=Li(I,v)?R[I]:n}return s}function C1(s,c){if(!(c==="constructor"&&typeof s[c]=="function")&&c!="__proto__")return s[c]}var j5=V5(s5),al=tM||function(s,c){return Sn.setTimeout(s,c)},T1=V5(lj);function $5(s,c,v){var E=c+"";return T1(s,Pj(E,qj(kj(E),v)))}function V5(s){var c=0,v=0;return function(){var E=aM(),R=V-(E-v);if(v=E,R>0){if(++c>=H)return arguments[0]}else c=0;return s.apply(n,arguments)}}function td(s,c){var v=-1,E=s.length,R=E-1;for(c=c===n?E:c;++v<c;){var I=u1(v,R),U=s[I];s[I]=s[v],s[v]=U}return s.length=c,s}var q5=Dj(function(s){var c=[];return s.charCodeAt(0)===46&&c.push(""),s.replace(Vn,function(v,E,R,I){c.push(R?I.replace(Le,"$1"):E||v)}),c});function bi(s){if(typeof s=="string"||vr(s))return s;var c=s+"";return c=="0"&&1/s==-1/0?"-0":c}function lo(s){if(s!=null){try{return Af.call(s)}catch{}try{return s+""}catch{}}return""}function qj(s,c){return Nr(te,function(v){var E="_."+v[0];c&v[1]&&!Cf(s,E)&&s.push(E)}),s.sort()}function U5(s){if(s instanceof lt)return s.clone();var c=new Lr(s.__wrapped__,s.__chain__);return c.__actions__=Zn(s.__actions__),c.__index__=s.__index__,c.__values__=s.__values__,c}function Uj(s,c,v){(v?zn(s,c,v):c===n)?c=1:c=dn(Je(c),0);var E=s==null?0:s.length;if(!E||c<1)return[];for(var R=0,I=0,U=oe(Mf(E/c));R<E;)U[I++]=Dr(s,R,R+=c);return U}function zj(s){for(var c=-1,v=s==null?0:s.length,E=0,R=[];++c<v;){var I=s[c];I&&(R[E++]=I)}return R}function Hj(){var s=arguments.length;if(!s)return[];for(var c=oe(s-1),v=arguments[0],E=s;E--;)c[E-1]=arguments[E];return pa(Ye(v)?Zn(v):[v],xn(c,1))}var Bj=rt(function(s,c){return an(s)?Ju(s,xn(c,1,an,!0)):[]}),Wj=rt(function(s,c){var v=Mr(c);return an(v)&&(v=n),an(s)?Ju(s,xn(c,1,an,!0),Me(v,2)):[]}),Gj=rt(function(s,c){var v=Mr(c);return an(v)&&(v=n),an(s)?Ju(s,xn(c,1,an,!0),n,v):[]});function Qj(s,c,v){var E=s==null?0:s.length;return E?(c=v||c===n?1:Je(c),Dr(s,c<0?0:c,E)):[]}function Yj(s,c,v){var E=s==null?0:s.length;return E?(c=v||c===n?1:Je(c),c=E-c,Dr(s,0,c<0?0:c)):[]}function Kj(s,c){return s&&s.length?Gf(s,Me(c,3),!0,!0):[]}function Xj(s,c){return s&&s.length?Gf(s,Me(c,3),!0):[]}function Zj(s,c,v,E){var R=s==null?0:s.length;return R?(v&&typeof v!="number"&&zn(s,c,v)&&(v=0,E=R),HM(s,c,v,E)):[]}function z5(s,c,v){var E=s==null?0:s.length;if(!E)return-1;var R=v==null?0:Je(v);return R<0&&(R=dn(E+R,0)),Tf(s,Me(c,3),R)}function H5(s,c,v){var E=s==null?0:s.length;if(!E)return-1;var R=E-1;return v!==n&&(R=Je(v),R=v<0?dn(E+R,0):In(R,E-1)),Tf(s,Me(c,3),R,!0)}function B5(s){var c=s==null?0:s.length;return c?xn(s,1):[]}function Jj(s){var c=s==null?0:s.length;return c?xn(s,Y):[]}function e$(s,c){var v=s==null?0:s.length;return v?(c=c===n?1:Je(c),xn(s,c)):[]}function t$(s){for(var c=-1,v=s==null?0:s.length,E={};++c<v;){var R=s[c];E[R[0]]=R[1]}return E}function W5(s){return s&&s.length?s[0]:n}function n$(s,c,v){var E=s==null?0:s.length;if(!E)return-1;var R=v==null?0:Je(v);return R<0&&(R=dn(E+R,0)),ws(s,c,R)}function r$(s){var c=s==null?0:s.length;return c?Dr(s,0,-1):[]}var i$=rt(function(s){var c=Bt(s,h1);return c.length&&c[0]===s[0]?r1(c):[]}),a$=rt(function(s){var c=Mr(s),v=Bt(s,h1);return c===Mr(v)?c=n:v.pop(),v.length&&v[0]===s[0]?r1(v,Me(c,2)):[]}),o$=rt(function(s){var c=Mr(s),v=Bt(s,h1);return c=typeof c=="function"?c:n,c&&v.pop(),v.length&&v[0]===s[0]?r1(v,n,c):[]});function s$(s,c){return s==null?"":rM.call(s,c)}function Mr(s){var c=s==null?0:s.length;return c?s[c-1]:n}function u$(s,c,v){var E=s==null?0:s.length;if(!E)return-1;var R=E;return v!==n&&(R=Je(v),R=R<0?dn(E+R,0):In(R,E-1)),c===c?qD(s,c,R):Tf(s,TC,R,!0)}function l$(s,c){return s&&s.length?r5(s,Je(c)):n}var c$=rt(G5);function G5(s,c){return s&&s.length&&c&&c.length?s1(s,c):s}function f$(s,c,v){return s&&s.length&&c&&c.length?s1(s,c,Me(v,2)):s}function d$(s,c,v){return s&&s.length&&c&&c.length?s1(s,c,n,v):s}var h$=Ii(function(s,c){var v=s==null?0:s.length,E=Jg(s,c);return o5(s,Bt(c,function(R){return Li(R,v)?+R:R}).sort(m5)),E});function p$(s,c){var v=[];if(!(s&&s.length))return v;var E=-1,R=[],I=s.length;for(c=Me(c,3);++E<I;){var U=s[E];c(U,E,s)&&(v.push(U),R.push(E))}return o5(s,R),v}function O1(s){return s==null?s:sM.call(s)}function v$(s,c,v){var E=s==null?0:s.length;return E?(v&&typeof v!="number"&&zn(s,c,v)?(c=0,v=E):(c=c==null?0:Je(c),v=v===n?E:Je(v)),Dr(s,c,v)):[]}function m$(s,c){return Wf(s,c)}function g$(s,c,v){return c1(s,c,Me(v,2))}function y$(s,c){var v=s==null?0:s.length;if(v){var E=Wf(s,c);if(E<v&&Jr(s[E],c))return E}return-1}function b$(s,c){return Wf(s,c,!0)}function _$(s,c,v){return c1(s,c,Me(v,2),!0)}function w$(s,c){var v=s==null?0:s.length;if(v){var E=Wf(s,c,!0)-1;if(Jr(s[E],c))return E}return-1}function E$(s){return s&&s.length?u5(s):[]}function S$(s,c){return s&&s.length?u5(s,Me(c,2)):[]}function x$(s){var c=s==null?0:s.length;return c?Dr(s,1,c):[]}function C$(s,c,v){return s&&s.length?(c=v||c===n?1:Je(c),Dr(s,0,c<0?0:c)):[]}function T$(s,c,v){var E=s==null?0:s.length;return E?(c=v||c===n?1:Je(c),c=E-c,Dr(s,c<0?0:c,E)):[]}function O$(s,c){return s&&s.length?Gf(s,Me(c,3),!1,!0):[]}function k$(s,c){return s&&s.length?Gf(s,Me(c,3)):[]}var R$=rt(function(s){return ya(xn(s,1,an,!0))}),A$=rt(function(s){var c=Mr(s);return an(c)&&(c=n),ya(xn(s,1,an,!0),Me(c,2))}),P$=rt(function(s){var c=Mr(s);return c=typeof c=="function"?c:n,ya(xn(s,1,an,!0),n,c)});function N$(s){return s&&s.length?ya(s):[]}function I$(s,c){return s&&s.length?ya(s,Me(c,2)):[]}function L$(s,c){return c=typeof c=="function"?c:n,s&&s.length?ya(s,n,c):[]}function k1(s){if(!(s&&s.length))return[];var c=0;return s=ha(s,function(v){if(an(v))return c=dn(v.length,c),!0}),Bg(c,function(v){return Bt(s,Ug(v))})}function Q5(s,c){if(!(s&&s.length))return[];var v=k1(s);return c==null?v:Bt(v,function(E){return dr(c,n,E)})}var F$=rt(function(s,c){return an(s)?Ju(s,c):[]}),D$=rt(function(s){return d1(ha(s,an))}),M$=rt(function(s){var c=Mr(s);return an(c)&&(c=n),d1(ha(s,an),Me(c,2))}),j$=rt(function(s){var c=Mr(s);return c=typeof c=="function"?c:n,d1(ha(s,an),n,c)}),$$=rt(k1);function V$(s,c){return d5(s||[],c||[],Zu)}function q$(s,c){return d5(s||[],c||[],nl)}var U$=rt(function(s){var c=s.length,v=c>1?s[c-1]:n;return v=typeof v=="function"?(s.pop(),v):n,Q5(s,v)});function Y5(s){var c=P(s);return c.__chain__=!0,c}function z$(s,c){return c(s),s}function nd(s,c){return c(s)}var H$=Ii(function(s){var c=s.length,v=c?s[0]:0,E=this.__wrapped__,R=function(I){return Jg(I,s)};return c>1||this.__actions__.length||!(E instanceof lt)||!Li(v)?this.thru(R):(E=E.slice(v,+v+(c?1:0)),E.__actions__.push({func:nd,args:[R],thisArg:n}),new Lr(E,this.__chain__).thru(function(I){return c&&!I.length&&I.push(n),I}))});function B$(){return Y5(this)}function W$(){return new Lr(this.value(),this.__chain__)}function G$(){this.__values__===n&&(this.__values__=l6(this.value()));var s=this.__index__>=this.__values__.length,c=s?n:this.__values__[this.__index__++];return{done:s,value:c}}function Q$(){return this}function Y$(s){for(var c,v=this;v instanceof qf;){var E=U5(v);E.__index__=0,E.__values__=n,c?R.__wrapped__=E:c=E;var R=E;v=v.__wrapped__}return R.__wrapped__=s,c}function K$(){var s=this.__wrapped__;if(s instanceof lt){var c=s;return this.__actions__.length&&(c=new lt(this)),c=c.reverse(),c.__actions__.push({func:nd,args:[O1],thisArg:n}),new Lr(c,this.__chain__)}return this.thru(O1)}function X$(){return f5(this.__wrapped__,this.__actions__)}var Z$=Qf(function(s,c,v){Nt.call(s,v)?++s[v]:Pi(s,v,1)});function J$(s,c,v){var E=Ye(s)?xC:zM;return v&&zn(s,c,v)&&(c=n),E(s,Me(c,3))}function eV(s,c){var v=Ye(s)?ha:QC;return v(s,Me(c,3))}var tV=E5(z5),nV=E5(H5);function rV(s,c){return xn(rd(s,c),1)}function iV(s,c){return xn(rd(s,c),Y)}function aV(s,c,v){return v=v===n?1:Je(v),xn(rd(s,c),v)}function K5(s,c){var v=Ye(s)?Nr:ga;return v(s,Me(c,3))}function X5(s,c){var v=Ye(s)?xD:GC;return v(s,Me(c,3))}var oV=Qf(function(s,c,v){Nt.call(s,v)?s[v].push(c):Pi(s,v,[c])});function sV(s,c,v,E){s=Jn(s)?s:Is(s),v=v&&!E?Je(v):0;var R=s.length;return v<0&&(v=dn(R+v,0)),ud(s)?v<=R&&s.indexOf(c,v)>-1:!!R&&ws(s,c,v)>-1}var uV=rt(function(s,c,v){var E=-1,R=typeof c=="function",I=Jn(s)?oe(s.length):[];return ga(s,function(U){I[++E]=R?dr(c,U,v):el(U,c,v)}),I}),lV=Qf(function(s,c,v){Pi(s,v,c)});function rd(s,c){var v=Ye(s)?Bt:e5;return v(s,Me(c,3))}function cV(s,c,v,E){return s==null?[]:(Ye(c)||(c=c==null?[]:[c]),v=E?n:v,Ye(v)||(v=v==null?[]:[v]),i5(s,c,v))}var fV=Qf(function(s,c,v){s[v?0:1].push(c)},function(){return[[],[]]});function dV(s,c,v){var E=Ye(s)?Vg:kC,R=arguments.length<3;return E(s,Me(c,4),v,R,ga)}function hV(s,c,v){var E=Ye(s)?CD:kC,R=arguments.length<3;return E(s,Me(c,4),v,R,GC)}function pV(s,c){var v=Ye(s)?ha:QC;return v(s,od(Me(c,3)))}function vV(s){var c=Ye(s)?zC:sj;return c(s)}function mV(s,c,v){(v?zn(s,c,v):c===n)?c=1:c=Je(c);var E=Ye(s)?jM:uj;return E(s,c)}function gV(s){var c=Ye(s)?$M:cj;return c(s)}function yV(s){if(s==null)return 0;if(Jn(s))return ud(s)?Ss(s):s.length;var c=Ln(s);return c==ue||c==Ve?s.size:a1(s).length}function bV(s,c,v){var E=Ye(s)?qg:fj;return v&&zn(s,c,v)&&(c=n),E(s,Me(c,3))}var _V=rt(function(s,c){if(s==null)return[];var v=c.length;return v>1&&zn(s,c[0],c[1])?c=[]:v>2&&zn(c[0],c[1],c[2])&&(c=[c[0]]),i5(s,xn(c,1),[])}),id=eM||function(){return Sn.Date.now()};function wV(s,c){if(typeof c!="function")throw new Ir(o);return s=Je(s),function(){if(--s<1)return c.apply(this,arguments)}}function Z5(s,c,v){return c=v?n:c,c=s&&c==null?s.length:c,Ni(s,k,n,n,n,n,c)}function J5(s,c){var v;if(typeof c!="function")throw new Ir(o);return s=Je(s),function(){return--s>0&&(v=c.apply(this,arguments)),s<=1&&(c=n),v}}var R1=rt(function(s,c,v){var E=b;if(v.length){var R=va(v,Ps(R1));E|=_}return Ni(s,E,c,v,R)}),e6=rt(function(s,c,v){var E=b|w;if(v.length){var R=va(v,Ps(e6));E|=_}return Ni(c,E,s,v,R)});function t6(s,c,v){c=v?n:c;var E=Ni(s,C,n,n,n,n,n,c);return E.placeholder=t6.placeholder,E}function n6(s,c,v){c=v?n:c;var E=Ni(s,T,n,n,n,n,n,c);return E.placeholder=n6.placeholder,E}function r6(s,c,v){var E,R,I,U,G,ee,he=0,pe=!1,me=!1,xe=!0;if(typeof s!="function")throw new Ir(o);c=jr(c)||0,Xt(v)&&(pe=!!v.leading,me="maxWait"in v,I=me?dn(jr(v.maxWait)||0,c):I,xe="trailing"in v?!!v.trailing:xe);function Ie(on){var ei=E,Mi=R;return E=R=n,he=on,U=s.apply(Mi,ei),U}function je(on){return he=on,G=al(ot,c),pe?Ie(on):U}function tt(on){var ei=on-ee,Mi=on-he,E6=c-ei;return me?In(E6,I-Mi):E6}function $e(on){var ei=on-ee,Mi=on-he;return ee===n||ei>=c||ei<0||me&&Mi>=I}function ot(){var on=id();if($e(on))return ht(on);G=al(ot,tt(on))}function ht(on){return G=n,xe&&E?Ie(on):(E=R=n,U)}function mr(){G!==n&&h5(G),he=0,E=ee=R=G=n}function Hn(){return G===n?U:ht(id())}function gr(){var on=id(),ei=$e(on);if(E=arguments,R=this,ee=on,ei){if(G===n)return je(ee);if(me)return h5(G),G=al(ot,c),Ie(ee)}return G===n&&(G=al(ot,c)),U}return gr.cancel=mr,gr.flush=Hn,gr}var EV=rt(function(s,c){return WC(s,1,c)}),SV=rt(function(s,c,v){return WC(s,jr(c)||0,v)});function xV(s){return Ni(s,L)}function ad(s,c){if(typeof s!="function"||c!=null&&typeof c!="function")throw new Ir(o);var v=function(){var E=arguments,R=c?c.apply(this,E):E[0],I=v.cache;if(I.has(R))return I.get(R);var U=s.apply(this,E);return v.cache=I.set(R,U)||I,U};return v.cache=new(ad.Cache||Ai),v}ad.Cache=Ai;function od(s){if(typeof s!="function")throw new Ir(o);return function(){var c=arguments;switch(c.length){case 0:return!s.call(this);case 1:return!s.call(this,c[0]);case 2:return!s.call(this,c[0],c[1]);case 3:return!s.call(this,c[0],c[1],c[2])}return!s.apply(this,c)}}function CV(s){return J5(2,s)}var TV=dj(function(s,c){c=c.length==1&&Ye(c[0])?Bt(c[0],hr(Me())):Bt(xn(c,1),hr(Me()));var v=c.length;return rt(function(E){for(var R=-1,I=In(E.length,v);++R<I;)E[R]=c[R].call(this,E[R]);return dr(s,this,E)})}),A1=rt(function(s,c){var v=va(c,Ps(A1));return Ni(s,_,n,c,v)}),i6=rt(function(s,c){var v=va(c,Ps(i6));return Ni(s,x,n,c,v)}),OV=Ii(function(s,c){return Ni(s,A,n,n,n,c)});function kV(s,c){if(typeof s!="function")throw new Ir(o);return c=c===n?c:Je(c),rt(s,c)}function RV(s,c){if(typeof s!="function")throw new Ir(o);return c=c==null?0:dn(Je(c),0),rt(function(v){var E=v[c],R=_a(v,0,c);return E&&pa(R,E),dr(s,this,R)})}function AV(s,c,v){var E=!0,R=!0;if(typeof s!="function")throw new Ir(o);return Xt(v)&&(E="leading"in v?!!v.leading:E,R="trailing"in v?!!v.trailing:R),r6(s,c,{leading:E,maxWait:c,trailing:R})}function PV(s){return Z5(s,1)}function NV(s,c){return A1(p1(c),s)}function IV(){if(!arguments.length)return[];var s=arguments[0];return Ye(s)?s:[s]}function LV(s){return Fr(s,m)}function FV(s,c){return c=typeof c=="function"?c:n,Fr(s,m,c)}function DV(s){return Fr(s,h|m)}function MV(s,c){return c=typeof c=="function"?c:n,Fr(s,h|m,c)}function jV(s,c){return c==null||BC(s,c,bn(c))}function Jr(s,c){return s===c||s!==s&&c!==c}var $V=Zf(n1),VV=Zf(function(s,c){return s>=c}),co=XC(function(){return arguments}())?XC:function(s){return en(s)&&Nt.call(s,"callee")&&!MC.call(s,"callee")},Ye=oe.isArray,qV=yC?hr(yC):YM;function Jn(s){return s!=null&&sd(s.length)&&!Fi(s)}function an(s){return en(s)&&Jn(s)}function UV(s){return s===!0||s===!1||en(s)&&Un(s)==_e}var wa=nM||q1,zV=bC?hr(bC):KM;function HV(s){return en(s)&&s.nodeType===1&&!ol(s)}function BV(s){if(s==null)return!0;if(Jn(s)&&(Ye(s)||typeof s=="string"||typeof s.splice=="function"||wa(s)||Ns(s)||co(s)))return!s.length;var c=Ln(s);if(c==ue||c==Ve)return!s.size;if(il(s))return!a1(s).length;for(var v in s)if(Nt.call(s,v))return!1;return!0}function WV(s,c){return tl(s,c)}function GV(s,c,v){v=typeof v=="function"?v:n;var E=v?v(s,c):n;return E===n?tl(s,c,n,v):!!E}function P1(s){if(!en(s))return!1;var c=Un(s);return c==ne||c==we||typeof s.message=="string"&&typeof s.name=="string"&&!ol(s)}function QV(s){return typeof s=="number"&&$C(s)}function Fi(s){if(!Xt(s))return!1;var c=Un(s);return c==W||c==ye||c==ve||c==dt}function a6(s){return typeof s=="number"&&s==Je(s)}function sd(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=q}function Xt(s){var c=typeof s;return s!=null&&(c=="object"||c=="function")}function en(s){return s!=null&&typeof s=="object"}var o6=_C?hr(_C):ZM;function YV(s,c){return s===c||i1(s,c,w1(c))}function KV(s,c,v){return v=typeof v=="function"?v:n,i1(s,c,w1(c),v)}function XV(s){return s6(s)&&s!=+s}function ZV(s){if(Fj(s))throw new Ge(a);return ZC(s)}function JV(s){return s===null}function eq(s){return s==null}function s6(s){return typeof s=="number"||en(s)&&Un(s)==Te}function ol(s){if(!en(s)||Un(s)!=Ze)return!1;var c=Lf(s);if(c===null)return!0;var v=Nt.call(c,"constructor")&&c.constructor;return typeof v=="function"&&v instanceof v&&Af.call(v)==KD}var N1=wC?hr(wC):JM;function tq(s){return a6(s)&&s>=-9007199254740991&&s<=q}var u6=EC?hr(EC):ej;function ud(s){return typeof s=="string"||!Ye(s)&&en(s)&&Un(s)==et}function vr(s){return typeof s=="symbol"||en(s)&&Un(s)==Ee}var Ns=SC?hr(SC):tj;function nq(s){return s===n}function rq(s){return en(s)&&Ln(s)==Tt}function iq(s){return en(s)&&Un(s)==Yt}var aq=Zf(o1),oq=Zf(function(s,c){return s<=c});function l6(s){if(!s)return[];if(Jn(s))return ud(s)?Xr(s):Zn(s);if(Gu&&s[Gu])return jD(s[Gu]());var c=Ln(s),v=c==ue?Gg:c==Ve?Of:Is;return v(s)}function Di(s){if(!s)return s===0?s:0;if(s=jr(s),s===Y||s===-1/0){var c=s<0?-1:1;return c*J}return s===s?s:0}function Je(s){var c=Di(s),v=c%1;return c===c?v?c-v:c:0}function c6(s){return s?oo(Je(s),0,K):0}function jr(s){if(typeof s=="number")return s;if(vr(s))return $;if(Xt(s)){var c=typeof s.valueOf=="function"?s.valueOf():s;s=Xt(c)?c+"":c}if(typeof s!="string")return s===0?s:+s;s=RC(s);var v=qe.test(s);return v||yt.test(s)?wD(s.slice(2),v?2:8):We.test(s)?$:+s}function f6(s){return yi(s,er(s))}function sq(s){return s?oo(Je(s),-9007199254740991,q):s===0?s:0}function Ot(s){return s==null?"":pr(s)}var uq=Rs(function(s,c){if(il(c)||Jn(c)){yi(c,bn(c),s);return}for(var v in c)Nt.call(c,v)&&Zu(s,v,c[v])}),d6=Rs(function(s,c){yi(c,er(c),s)}),ld=Rs(function(s,c,v,E){yi(c,er(c),s,E)}),lq=Rs(function(s,c,v,E){yi(c,bn(c),s,E)}),cq=Ii(Jg);function fq(s,c){var v=ks(s);return c==null?v:HC(v,c)}var dq=rt(function(s,c){s=jt(s);var v=-1,E=c.length,R=E>2?c[2]:n;for(R&&zn(c[0],c[1],R)&&(E=1);++v<E;)for(var I=c[v],U=er(I),G=-1,ee=U.length;++G<ee;){var he=U[G],pe=s[he];(pe===n||Jr(pe,Cs[he])&&!Nt.call(s,he))&&(s[he]=I[he])}return s}),hq=rt(function(s){return s.push(n,R5),dr(h6,n,s)});function pq(s,c){return CC(s,Me(c,3),gi)}function vq(s,c){return CC(s,Me(c,3),t1)}function mq(s,c){return s==null?s:e1(s,Me(c,3),er)}function gq(s,c){return s==null?s:YC(s,Me(c,3),er)}function yq(s,c){return s&&gi(s,Me(c,3))}function bq(s,c){return s&&t1(s,Me(c,3))}function _q(s){return s==null?[]:Hf(s,bn(s))}function wq(s){return s==null?[]:Hf(s,er(s))}function I1(s,c,v){var E=s==null?n:so(s,c);return E===n?v:E}function Eq(s,c){return s!=null&&N5(s,c,BM)}function L1(s,c){return s!=null&&N5(s,c,WM)}var Sq=x5(function(s,c,v){c!=null&&typeof c.toString!="function"&&(c=Pf.call(c)),s[c]=v},D1(tr)),xq=x5(function(s,c,v){c!=null&&typeof c.toString!="function"&&(c=Pf.call(c)),Nt.call(s,c)?s[c].push(v):s[c]=[v]},Me),Cq=rt(el);function bn(s){return Jn(s)?UC(s):a1(s)}function er(s){return Jn(s)?UC(s,!0):nj(s)}function Tq(s,c){var v={};return c=Me(c,3),gi(s,function(E,R,I){Pi(v,c(E,R,I),E)}),v}function Oq(s,c){var v={};return c=Me(c,3),gi(s,function(E,R,I){Pi(v,R,c(E,R,I))}),v}var kq=Rs(function(s,c,v){Bf(s,c,v)}),h6=Rs(function(s,c,v,E){Bf(s,c,v,E)}),Rq=Ii(function(s,c){var v={};if(s==null)return v;var E=!1;c=Bt(c,function(I){return I=ba(I,s),E||(E=I.length>1),I}),yi(s,b1(s),v),E&&(v=Fr(v,h|p|m,Sj));for(var R=c.length;R--;)f1(v,c[R]);return v});function Aq(s,c){return p6(s,od(Me(c)))}var Pq=Ii(function(s,c){return s==null?{}:ij(s,c)});function p6(s,c){if(s==null)return{};var v=Bt(b1(s),function(E){return[E]});return c=Me(c),a5(s,v,function(E,R){return c(E,R[0])})}function Nq(s,c,v){c=ba(c,s);var E=-1,R=c.length;for(R||(R=1,s=n);++E<R;){var I=s==null?n:s[bi(c[E])];I===n&&(E=R,I=v),s=Fi(I)?I.call(s):I}return s}function Iq(s,c,v){return s==null?s:nl(s,c,v)}function Lq(s,c,v,E){return E=typeof E=="function"?E:n,s==null?s:nl(s,c,v,E)}var v6=O5(bn),m6=O5(er);function Fq(s,c,v){var E=Ye(s),R=E||wa(s)||Ns(s);if(c=Me(c,4),v==null){var I=s&&s.constructor;R?v=E?new I:[]:Xt(s)?v=Fi(I)?ks(Lf(s)):{}:v={}}return(R?Nr:gi)(s,function(U,G,ee){return c(v,U,G,ee)}),v}function Dq(s,c){return s==null?!0:f1(s,c)}function Mq(s,c,v){return s==null?s:c5(s,c,p1(v))}function jq(s,c,v,E){return E=typeof E=="function"?E:n,s==null?s:c5(s,c,p1(v),E)}function Is(s){return s==null?[]:Wg(s,bn(s))}function $q(s){return s==null?[]:Wg(s,er(s))}function Vq(s,c,v){return v===n&&(v=c,c=n),v!==n&&(v=jr(v),v=v===v?v:0),c!==n&&(c=jr(c),c=c===c?c:0),oo(jr(s),c,v)}function qq(s,c,v){return c=Di(c),v===n?(v=c,c=0):v=Di(v),s=jr(s),GM(s,c,v)}function Uq(s,c,v){if(v&&typeof v!="boolean"&&zn(s,c,v)&&(c=v=n),v===n&&(typeof c=="boolean"?(v=c,c=n):typeof s=="boolean"&&(v=s,s=n)),s===n&&c===n?(s=0,c=1):(s=Di(s),c===n?(c=s,s=0):c=Di(c)),s>c){var E=s;s=c,c=E}if(v||s%1||c%1){var R=VC();return In(s+R*(c-s+_D("1e-"+((R+"").length-1))),c)}return u1(s,c)}var zq=As(function(s,c,v){return c=c.toLowerCase(),s+(v?g6(c):c)});function g6(s){return F1(Ot(s).toLowerCase())}function y6(s){return s=Ot(s),s&&s.replace(vt,ID).replace(Pe,"")}function Hq(s,c,v){s=Ot(s),c=pr(c);var E=s.length;v=v===n?E:oo(Je(v),0,E);var R=v;return v-=c.length,v>=0&&s.slice(v,R)==c}function Bq(s){return s=Ot(s),s&&En.test(s)?s.replace(ui,LD):s}function Wq(s){return s=Ot(s),s&&ci.test(s)?s.replace(Kn,"\\$&"):s}var Gq=As(function(s,c,v){return s+(v?"-":"")+c.toLowerCase()}),Qq=As(function(s,c,v){return s+(v?" ":"")+c.toLowerCase()}),Yq=w5("toLowerCase");function Kq(s,c,v){s=Ot(s),c=Je(c);var E=c?Ss(s):0;if(!c||E>=c)return s;var R=(c-E)/2;return Xf(jf(R),v)+s+Xf(Mf(R),v)}function Xq(s,c,v){s=Ot(s),c=Je(c);var E=c?Ss(s):0;return c&&E<c?s+Xf(c-E,v):s}function Zq(s,c,v){s=Ot(s),c=Je(c);var E=c?Ss(s):0;return c&&E<c?Xf(c-E,v)+s:s}function Jq(s,c,v){return v||c==null?c=0:c&&(c=+c),oM(Ot(s).replace(yn,""),c||0)}function eU(s,c,v){return(v?zn(s,c,v):c===n)?c=1:c=Je(c),l1(Ot(s),c)}function tU(){var s=arguments,c=Ot(s[0]);return s.length<3?c:c.replace(s[1],s[2])}var nU=As(function(s,c,v){return s+(v?"_":"")+c.toLowerCase()});function rU(s,c,v){return v&&typeof v!="number"&&zn(s,c,v)&&(c=v=n),v=v===n?K:v>>>0,v?(s=Ot(s),s&&(typeof c=="string"||c!=null&&!N1(c))&&(c=pr(c),!c&&Es(s))?_a(Xr(s),0,v):s.split(c,v)):[]}var iU=As(function(s,c,v){return s+(v?" ":"")+F1(c)});function aU(s,c,v){return s=Ot(s),v=v==null?0:oo(Je(v),0,s.length),c=pr(c),s.slice(v,v+c.length)==c}function oU(s,c,v){var E=P.templateSettings;v&&zn(s,c,v)&&(c=n),s=Ot(s),c=ld({},c,E,k5);var R=ld({},c.imports,E.imports,k5),I=bn(R),U=Wg(R,I),G,ee,he=0,pe=c.interpolate||Nn,me="__p += '",xe=Qg((c.escape||Nn).source+"|"+pe.source+"|"+(pe===Yn?it:Nn).source+"|"+(c.evaluate||Nn).source+"|$","g"),Ie="//# sourceURL="+(Nt.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Bu+"]")+`
68
- `;s.replace(xe,function($e,ot,ht,mr,Hn,gr){return ht||(ht=mr),me+=s.slice(he,gr).replace(cr,FD),ot&&(G=!0,me+=`' +
67
+ `)}function Nj(s){return Ye(s)||co(s)||!!(jC&&s&&s[jC])}function Li(s,c){var v=typeof s;return c=c??q,!!c&&(v=="number"||v!="symbol"&&Lt.test(s))&&s>-1&&s%1==0&&s<c}function zn(s,c,v){if(!Xt(v))return!1;var E=typeof c;return(E=="number"?Jn(v)&&Li(c,v.length):E=="string"&&c in v)?Jr(v[c],s):!1}function S1(s,c){if(Ye(s))return!1;var v=typeof s;return v=="number"||v=="symbol"||v=="boolean"||s==null||vr(s)?!0:Rt.test(s)||!vt.test(s)||c!=null&&s in Dt(c)}function Ij(s){var c=typeof s;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?s!=="__proto__":s===null}function x1(s){var c=Jf(s),v=P[c];if(typeof v!="function"||!(c in lt.prototype))return!1;if(s===v)return!0;var E=_1(v);return!!E&&s===E[0]}function Lj(s){return!!LC&&LC in s}var Fj=Rf?Fi:q1;function il(s){var c=s&&s.constructor,v=typeof c=="function"&&c.prototype||Cs;return s===v}function L5(s){return s===s&&!Xt(s)}function F5(s,c){return function(v){return v==null?!1:v[s]===c&&(c!==n||s in Dt(v))}}function Dj(s){var c=ad(s,function(E){return v.size===f&&v.clear(),E}),v=c.cache;return c}function Mj(s,c){var v=s[1],E=c[1],R=v|E,I=R<(b|w|k),U=E==k&&v==C||E==k&&v==A&&s[7].length<=c[8]||E==(k|A)&&c[7].length<=c[8]&&v==C;if(!(I||U))return s;E&b&&(s[2]=c[2],R|=v&b?0:S);var W=c[3];if(W){var ee=s[3];s[3]=ee?g5(ee,W,c[4]):W,s[4]=ee?va(s[3],d):c[4]}return W=c[5],W&&(ee=s[5],s[5]=ee?y5(ee,W,c[6]):W,s[6]=ee?va(s[5],d):c[6]),W=c[7],W&&(s[7]=W),E&k&&(s[8]=s[8]==null?c[8]:In(s[8],c[8])),s[9]==null&&(s[9]=c[9]),s[0]=c[0],s[1]=R,s}function jj(s){var c=[];if(s!=null)for(var v in Dt(s))c.push(v);return c}function $j(s){return Pf.call(s)}function D5(s,c,v){return c=dn(c===n?s.length-1:c,0),function(){for(var E=arguments,R=-1,I=dn(E.length-c,0),U=oe(I);++R<I;)U[R]=E[c+R];R=-1;for(var W=oe(c+1);++R<c;)W[R]=E[R];return W[c]=v(U),dr(s,this,W)}}function M5(s,c){return c.length<2?s:so(s,Dr(c,0,-1))}function Vj(s,c){for(var v=s.length,E=In(c.length,v),R=Zn(s);E--;){var I=c[E];s[E]=Li(I,v)?R[I]:n}return s}function C1(s,c){if(!(c==="constructor"&&typeof s[c]=="function")&&c!="__proto__")return s[c]}var j5=V5(s5),al=tM||function(s,c){return Sn.setTimeout(s,c)},T1=V5(lj);function $5(s,c,v){var E=c+"";return T1(s,Pj(E,qj(kj(E),v)))}function V5(s){var c=0,v=0;return function(){var E=aM(),R=V-(E-v);if(v=E,R>0){if(++c>=H)return arguments[0]}else c=0;return s.apply(n,arguments)}}function td(s,c){var v=-1,E=s.length,R=E-1;for(c=c===n?E:c;++v<c;){var I=u1(v,R),U=s[I];s[I]=s[v],s[v]=U}return s.length=c,s}var q5=Dj(function(s){var c=[];return s.charCodeAt(0)===46&&c.push(""),s.replace(Vn,function(v,E,R,I){c.push(R?I.replace(Le,"$1"):E||v)}),c});function bi(s){if(typeof s=="string"||vr(s))return s;var c=s+"";return c=="0"&&1/s==-1/0?"-0":c}function lo(s){if(s!=null){try{return Af.call(s)}catch{}try{return s+""}catch{}}return""}function qj(s,c){return Nr(te,function(v){var E="_."+v[0];c&v[1]&&!Cf(s,E)&&s.push(E)}),s.sort()}function U5(s){if(s instanceof lt)return s.clone();var c=new Lr(s.__wrapped__,s.__chain__);return c.__actions__=Zn(s.__actions__),c.__index__=s.__index__,c.__values__=s.__values__,c}function Uj(s,c,v){(v?zn(s,c,v):c===n)?c=1:c=dn(Ze(c),0);var E=s==null?0:s.length;if(!E||c<1)return[];for(var R=0,I=0,U=oe(Mf(E/c));R<E;)U[I++]=Dr(s,R,R+=c);return U}function zj(s){for(var c=-1,v=s==null?0:s.length,E=0,R=[];++c<v;){var I=s[c];I&&(R[E++]=I)}return R}function Hj(){var s=arguments.length;if(!s)return[];for(var c=oe(s-1),v=arguments[0],E=s;E--;)c[E-1]=arguments[E];return pa(Ye(v)?Zn(v):[v],xn(c,1))}var Bj=rt(function(s,c){return an(s)?Ju(s,xn(c,1,an,!0)):[]}),Wj=rt(function(s,c){var v=Mr(c);return an(v)&&(v=n),an(s)?Ju(s,xn(c,1,an,!0),je(v,2)):[]}),Gj=rt(function(s,c){var v=Mr(c);return an(v)&&(v=n),an(s)?Ju(s,xn(c,1,an,!0),n,v):[]});function Qj(s,c,v){var E=s==null?0:s.length;return E?(c=v||c===n?1:Ze(c),Dr(s,c<0?0:c,E)):[]}function Yj(s,c,v){var E=s==null?0:s.length;return E?(c=v||c===n?1:Ze(c),c=E-c,Dr(s,0,c<0?0:c)):[]}function Kj(s,c){return s&&s.length?Gf(s,je(c,3),!0,!0):[]}function Xj(s,c){return s&&s.length?Gf(s,je(c,3),!0):[]}function Zj(s,c,v,E){var R=s==null?0:s.length;return R?(v&&typeof v!="number"&&zn(s,c,v)&&(v=0,E=R),HM(s,c,v,E)):[]}function z5(s,c,v){var E=s==null?0:s.length;if(!E)return-1;var R=v==null?0:Ze(v);return R<0&&(R=dn(E+R,0)),Tf(s,je(c,3),R)}function H5(s,c,v){var E=s==null?0:s.length;if(!E)return-1;var R=E-1;return v!==n&&(R=Ze(v),R=v<0?dn(E+R,0):In(R,E-1)),Tf(s,je(c,3),R,!0)}function B5(s){var c=s==null?0:s.length;return c?xn(s,1):[]}function Jj(s){var c=s==null?0:s.length;return c?xn(s,Q):[]}function e$(s,c){var v=s==null?0:s.length;return v?(c=c===n?1:Ze(c),xn(s,c)):[]}function t$(s){for(var c=-1,v=s==null?0:s.length,E={};++c<v;){var R=s[c];E[R[0]]=R[1]}return E}function W5(s){return s&&s.length?s[0]:n}function n$(s,c,v){var E=s==null?0:s.length;if(!E)return-1;var R=v==null?0:Ze(v);return R<0&&(R=dn(E+R,0)),ws(s,c,R)}function r$(s){var c=s==null?0:s.length;return c?Dr(s,0,-1):[]}var i$=rt(function(s){var c=Bt(s,h1);return c.length&&c[0]===s[0]?r1(c):[]}),a$=rt(function(s){var c=Mr(s),v=Bt(s,h1);return c===Mr(v)?c=n:v.pop(),v.length&&v[0]===s[0]?r1(v,je(c,2)):[]}),o$=rt(function(s){var c=Mr(s),v=Bt(s,h1);return c=typeof c=="function"?c:n,c&&v.pop(),v.length&&v[0]===s[0]?r1(v,n,c):[]});function s$(s,c){return s==null?"":rM.call(s,c)}function Mr(s){var c=s==null?0:s.length;return c?s[c-1]:n}function u$(s,c,v){var E=s==null?0:s.length;if(!E)return-1;var R=E;return v!==n&&(R=Ze(v),R=R<0?dn(E+R,0):In(R,E-1)),c===c?qD(s,c,R):Tf(s,TC,R,!0)}function l$(s,c){return s&&s.length?r5(s,Ze(c)):n}var c$=rt(G5);function G5(s,c){return s&&s.length&&c&&c.length?s1(s,c):s}function f$(s,c,v){return s&&s.length&&c&&c.length?s1(s,c,je(v,2)):s}function d$(s,c,v){return s&&s.length&&c&&c.length?s1(s,c,n,v):s}var h$=Ii(function(s,c){var v=s==null?0:s.length,E=Jg(s,c);return o5(s,Bt(c,function(R){return Li(R,v)?+R:R}).sort(m5)),E});function p$(s,c){var v=[];if(!(s&&s.length))return v;var E=-1,R=[],I=s.length;for(c=je(c,3);++E<I;){var U=s[E];c(U,E,s)&&(v.push(U),R.push(E))}return o5(s,R),v}function O1(s){return s==null?s:sM.call(s)}function v$(s,c,v){var E=s==null?0:s.length;return E?(v&&typeof v!="number"&&zn(s,c,v)?(c=0,v=E):(c=c==null?0:Ze(c),v=v===n?E:Ze(v)),Dr(s,c,v)):[]}function m$(s,c){return Wf(s,c)}function g$(s,c,v){return c1(s,c,je(v,2))}function y$(s,c){var v=s==null?0:s.length;if(v){var E=Wf(s,c);if(E<v&&Jr(s[E],c))return E}return-1}function b$(s,c){return Wf(s,c,!0)}function _$(s,c,v){return c1(s,c,je(v,2),!0)}function w$(s,c){var v=s==null?0:s.length;if(v){var E=Wf(s,c,!0)-1;if(Jr(s[E],c))return E}return-1}function E$(s){return s&&s.length?u5(s):[]}function S$(s,c){return s&&s.length?u5(s,je(c,2)):[]}function x$(s){var c=s==null?0:s.length;return c?Dr(s,1,c):[]}function C$(s,c,v){return s&&s.length?(c=v||c===n?1:Ze(c),Dr(s,0,c<0?0:c)):[]}function T$(s,c,v){var E=s==null?0:s.length;return E?(c=v||c===n?1:Ze(c),c=E-c,Dr(s,c<0?0:c,E)):[]}function O$(s,c){return s&&s.length?Gf(s,je(c,3),!1,!0):[]}function k$(s,c){return s&&s.length?Gf(s,je(c,3)):[]}var R$=rt(function(s){return ya(xn(s,1,an,!0))}),A$=rt(function(s){var c=Mr(s);return an(c)&&(c=n),ya(xn(s,1,an,!0),je(c,2))}),P$=rt(function(s){var c=Mr(s);return c=typeof c=="function"?c:n,ya(xn(s,1,an,!0),n,c)});function N$(s){return s&&s.length?ya(s):[]}function I$(s,c){return s&&s.length?ya(s,je(c,2)):[]}function L$(s,c){return c=typeof c=="function"?c:n,s&&s.length?ya(s,n,c):[]}function k1(s){if(!(s&&s.length))return[];var c=0;return s=ha(s,function(v){if(an(v))return c=dn(v.length,c),!0}),Bg(c,function(v){return Bt(s,Ug(v))})}function Q5(s,c){if(!(s&&s.length))return[];var v=k1(s);return c==null?v:Bt(v,function(E){return dr(c,n,E)})}var F$=rt(function(s,c){return an(s)?Ju(s,c):[]}),D$=rt(function(s){return d1(ha(s,an))}),M$=rt(function(s){var c=Mr(s);return an(c)&&(c=n),d1(ha(s,an),je(c,2))}),j$=rt(function(s){var c=Mr(s);return c=typeof c=="function"?c:n,d1(ha(s,an),n,c)}),$$=rt(k1);function V$(s,c){return d5(s||[],c||[],Zu)}function q$(s,c){return d5(s||[],c||[],nl)}var U$=rt(function(s){var c=s.length,v=c>1?s[c-1]:n;return v=typeof v=="function"?(s.pop(),v):n,Q5(s,v)});function Y5(s){var c=P(s);return c.__chain__=!0,c}function z$(s,c){return c(s),s}function nd(s,c){return c(s)}var H$=Ii(function(s){var c=s.length,v=c?s[0]:0,E=this.__wrapped__,R=function(I){return Jg(I,s)};return c>1||this.__actions__.length||!(E instanceof lt)||!Li(v)?this.thru(R):(E=E.slice(v,+v+(c?1:0)),E.__actions__.push({func:nd,args:[R],thisArg:n}),new Lr(E,this.__chain__).thru(function(I){return c&&!I.length&&I.push(n),I}))});function B$(){return Y5(this)}function W$(){return new Lr(this.value(),this.__chain__)}function G$(){this.__values__===n&&(this.__values__=l6(this.value()));var s=this.__index__>=this.__values__.length,c=s?n:this.__values__[this.__index__++];return{done:s,value:c}}function Q$(){return this}function Y$(s){for(var c,v=this;v instanceof qf;){var E=U5(v);E.__index__=0,E.__values__=n,c?R.__wrapped__=E:c=E;var R=E;v=v.__wrapped__}return R.__wrapped__=s,c}function K$(){var s=this.__wrapped__;if(s instanceof lt){var c=s;return this.__actions__.length&&(c=new lt(this)),c=c.reverse(),c.__actions__.push({func:nd,args:[O1],thisArg:n}),new Lr(c,this.__chain__)}return this.thru(O1)}function X$(){return f5(this.__wrapped__,this.__actions__)}var Z$=Qf(function(s,c,v){At.call(s,v)?++s[v]:Pi(s,v,1)});function J$(s,c,v){var E=Ye(s)?xC:zM;return v&&zn(s,c,v)&&(c=n),E(s,je(c,3))}function eV(s,c){var v=Ye(s)?ha:QC;return v(s,je(c,3))}var tV=E5(z5),nV=E5(H5);function rV(s,c){return xn(rd(s,c),1)}function iV(s,c){return xn(rd(s,c),Q)}function aV(s,c,v){return v=v===n?1:Ze(v),xn(rd(s,c),v)}function K5(s,c){var v=Ye(s)?Nr:ga;return v(s,je(c,3))}function X5(s,c){var v=Ye(s)?xD:GC;return v(s,je(c,3))}var oV=Qf(function(s,c,v){At.call(s,v)?s[v].push(c):Pi(s,v,[c])});function sV(s,c,v,E){s=Jn(s)?s:Is(s),v=v&&!E?Ze(v):0;var R=s.length;return v<0&&(v=dn(R+v,0)),ud(s)?v<=R&&s.indexOf(c,v)>-1:!!R&&ws(s,c,v)>-1}var uV=rt(function(s,c,v){var E=-1,R=typeof c=="function",I=Jn(s)?oe(s.length):[];return ga(s,function(U){I[++E]=R?dr(c,U,v):el(U,c,v)}),I}),lV=Qf(function(s,c,v){Pi(s,v,c)});function rd(s,c){var v=Ye(s)?Bt:e5;return v(s,je(c,3))}function cV(s,c,v,E){return s==null?[]:(Ye(c)||(c=c==null?[]:[c]),v=E?n:v,Ye(v)||(v=v==null?[]:[v]),i5(s,c,v))}var fV=Qf(function(s,c,v){s[v?0:1].push(c)},function(){return[[],[]]});function dV(s,c,v){var E=Ye(s)?Vg:kC,R=arguments.length<3;return E(s,je(c,4),v,R,ga)}function hV(s,c,v){var E=Ye(s)?CD:kC,R=arguments.length<3;return E(s,je(c,4),v,R,GC)}function pV(s,c){var v=Ye(s)?ha:QC;return v(s,od(je(c,3)))}function vV(s){var c=Ye(s)?zC:sj;return c(s)}function mV(s,c,v){(v?zn(s,c,v):c===n)?c=1:c=Ze(c);var E=Ye(s)?jM:uj;return E(s,c)}function gV(s){var c=Ye(s)?$M:cj;return c(s)}function yV(s){if(s==null)return 0;if(Jn(s))return ud(s)?Ss(s):s.length;var c=Ln(s);return c==ue||c==Me?s.size:a1(s).length}function bV(s,c,v){var E=Ye(s)?qg:fj;return v&&zn(s,c,v)&&(c=n),E(s,je(c,3))}var _V=rt(function(s,c){if(s==null)return[];var v=c.length;return v>1&&zn(s,c[0],c[1])?c=[]:v>2&&zn(c[0],c[1],c[2])&&(c=[c[0]]),i5(s,xn(c,1),[])}),id=eM||function(){return Sn.Date.now()};function wV(s,c){if(typeof c!="function")throw new Ir(o);return s=Ze(s),function(){if(--s<1)return c.apply(this,arguments)}}function Z5(s,c,v){return c=v?n:c,c=s&&c==null?s.length:c,Ni(s,k,n,n,n,n,c)}function J5(s,c){var v;if(typeof c!="function")throw new Ir(o);return s=Ze(s),function(){return--s>0&&(v=c.apply(this,arguments)),s<=1&&(c=n),v}}var R1=rt(function(s,c,v){var E=b;if(v.length){var R=va(v,Ps(R1));E|=_}return Ni(s,E,c,v,R)}),e6=rt(function(s,c,v){var E=b|w;if(v.length){var R=va(v,Ps(e6));E|=_}return Ni(c,E,s,v,R)});function t6(s,c,v){c=v?n:c;var E=Ni(s,C,n,n,n,n,n,c);return E.placeholder=t6.placeholder,E}function n6(s,c,v){c=v?n:c;var E=Ni(s,T,n,n,n,n,n,c);return E.placeholder=n6.placeholder,E}function r6(s,c,v){var E,R,I,U,W,ee,he=0,pe=!1,ge=!1,xe=!0;if(typeof s!="function")throw new Ir(o);c=jr(c)||0,Xt(v)&&(pe=!!v.leading,ge="maxWait"in v,I=ge?dn(jr(v.maxWait)||0,c):I,xe="trailing"in v?!!v.trailing:xe);function Ne(on){var ei=E,Mi=R;return E=R=n,he=on,U=s.apply(Mi,ei),U}function $e(on){return he=on,W=al(ot,c),pe?Ne(on):U}function tt(on){var ei=on-ee,Mi=on-he,E6=c-ei;return ge?In(E6,I-Mi):E6}function Ve(on){var ei=on-ee,Mi=on-he;return ee===n||ei>=c||ei<0||ge&&Mi>=I}function ot(){var on=id();if(Ve(on))return ft(on);W=al(ot,tt(on))}function ft(on){return W=n,xe&&E?Ne(on):(E=R=n,U)}function mr(){W!==n&&h5(W),he=0,E=ee=R=W=n}function Hn(){return W===n?U:ft(id())}function gr(){var on=id(),ei=Ve(on);if(E=arguments,R=this,ee=on,ei){if(W===n)return $e(ee);if(ge)return h5(W),W=al(ot,c),Ne(ee)}return W===n&&(W=al(ot,c)),U}return gr.cancel=mr,gr.flush=Hn,gr}var EV=rt(function(s,c){return WC(s,1,c)}),SV=rt(function(s,c,v){return WC(s,jr(c)||0,v)});function xV(s){return Ni(s,L)}function ad(s,c){if(typeof s!="function"||c!=null&&typeof c!="function")throw new Ir(o);var v=function(){var E=arguments,R=c?c.apply(this,E):E[0],I=v.cache;if(I.has(R))return I.get(R);var U=s.apply(this,E);return v.cache=I.set(R,U)||I,U};return v.cache=new(ad.Cache||Ai),v}ad.Cache=Ai;function od(s){if(typeof s!="function")throw new Ir(o);return function(){var c=arguments;switch(c.length){case 0:return!s.call(this);case 1:return!s.call(this,c[0]);case 2:return!s.call(this,c[0],c[1]);case 3:return!s.call(this,c[0],c[1],c[2])}return!s.apply(this,c)}}function CV(s){return J5(2,s)}var TV=dj(function(s,c){c=c.length==1&&Ye(c[0])?Bt(c[0],hr(je())):Bt(xn(c,1),hr(je()));var v=c.length;return rt(function(E){for(var R=-1,I=In(E.length,v);++R<I;)E[R]=c[R].call(this,E[R]);return dr(s,this,E)})}),A1=rt(function(s,c){var v=va(c,Ps(A1));return Ni(s,_,n,c,v)}),i6=rt(function(s,c){var v=va(c,Ps(i6));return Ni(s,x,n,c,v)}),OV=Ii(function(s,c){return Ni(s,A,n,n,n,c)});function kV(s,c){if(typeof s!="function")throw new Ir(o);return c=c===n?c:Ze(c),rt(s,c)}function RV(s,c){if(typeof s!="function")throw new Ir(o);return c=c==null?0:dn(Ze(c),0),rt(function(v){var E=v[c],R=_a(v,0,c);return E&&pa(R,E),dr(s,this,R)})}function AV(s,c,v){var E=!0,R=!0;if(typeof s!="function")throw new Ir(o);return Xt(v)&&(E="leading"in v?!!v.leading:E,R="trailing"in v?!!v.trailing:R),r6(s,c,{leading:E,maxWait:c,trailing:R})}function PV(s){return Z5(s,1)}function NV(s,c){return A1(p1(c),s)}function IV(){if(!arguments.length)return[];var s=arguments[0];return Ye(s)?s:[s]}function LV(s){return Fr(s,m)}function FV(s,c){return c=typeof c=="function"?c:n,Fr(s,m,c)}function DV(s){return Fr(s,h|m)}function MV(s,c){return c=typeof c=="function"?c:n,Fr(s,h|m,c)}function jV(s,c){return c==null||BC(s,c,bn(c))}function Jr(s,c){return s===c||s!==s&&c!==c}var $V=Zf(n1),VV=Zf(function(s,c){return s>=c}),co=XC(function(){return arguments}())?XC:function(s){return en(s)&&At.call(s,"callee")&&!MC.call(s,"callee")},Ye=oe.isArray,qV=yC?hr(yC):YM;function Jn(s){return s!=null&&sd(s.length)&&!Fi(s)}function an(s){return en(s)&&Jn(s)}function UV(s){return s===!0||s===!1||en(s)&&Un(s)==_e}var wa=nM||q1,zV=bC?hr(bC):KM;function HV(s){return en(s)&&s.nodeType===1&&!ol(s)}function BV(s){if(s==null)return!0;if(Jn(s)&&(Ye(s)||typeof s=="string"||typeof s.splice=="function"||wa(s)||Ns(s)||co(s)))return!s.length;var c=Ln(s);if(c==ue||c==Me)return!s.size;if(il(s))return!a1(s).length;for(var v in s)if(At.call(s,v))return!1;return!0}function WV(s,c){return tl(s,c)}function GV(s,c,v){v=typeof v=="function"?v:n;var E=v?v(s,c):n;return E===n?tl(s,c,n,v):!!E}function P1(s){if(!en(s))return!1;var c=Un(s);return c==ve||c==ne||typeof s.message=="string"&&typeof s.name=="string"&&!ol(s)}function QV(s){return typeof s=="number"&&$C(s)}function Fi(s){if(!Xt(s))return!1;var c=Un(s);return c==K||c==we||c==me||c==Ot}function a6(s){return typeof s=="number"&&s==Ze(s)}function sd(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=q}function Xt(s){var c=typeof s;return s!=null&&(c=="object"||c=="function")}function en(s){return s!=null&&typeof s=="object"}var o6=_C?hr(_C):ZM;function YV(s,c){return s===c||i1(s,c,w1(c))}function KV(s,c,v){return v=typeof v=="function"?v:n,i1(s,c,w1(c),v)}function XV(s){return s6(s)&&s!=+s}function ZV(s){if(Fj(s))throw new We(a);return ZC(s)}function JV(s){return s===null}function eq(s){return s==null}function s6(s){return typeof s=="number"||en(s)&&Un(s)==Te}function ol(s){if(!en(s)||Un(s)!=Je)return!1;var c=Lf(s);if(c===null)return!0;var v=At.call(c,"constructor")&&c.constructor;return typeof v=="function"&&v instanceof v&&Af.call(v)==KD}var N1=wC?hr(wC):JM;function tq(s){return a6(s)&&s>=-9007199254740991&&s<=q}var u6=EC?hr(EC):ej;function ud(s){return typeof s=="string"||!Ye(s)&&en(s)&&Un(s)==et}function vr(s){return typeof s=="symbol"||en(s)&&Un(s)==Ee}var Ns=SC?hr(SC):tj;function nq(s){return s===n}function rq(s){return en(s)&&Ln(s)==Ct}function iq(s){return en(s)&&Un(s)==Yt}var aq=Zf(o1),oq=Zf(function(s,c){return s<=c});function l6(s){if(!s)return[];if(Jn(s))return ud(s)?Xr(s):Zn(s);if(Gu&&s[Gu])return jD(s[Gu]());var c=Ln(s),v=c==ue?Gg:c==Me?Of:Is;return v(s)}function Di(s){if(!s)return s===0?s:0;if(s=jr(s),s===Q||s===-1/0){var c=s<0?-1:1;return c*J}return s===s?s:0}function Ze(s){var c=Di(s),v=c%1;return c===c?v?c-v:c:0}function c6(s){return s?oo(Ze(s),0,Y):0}function jr(s){if(typeof s=="number")return s;if(vr(s))return $;if(Xt(s)){var c=typeof s.valueOf=="function"?s.valueOf():s;s=Xt(c)?c+"":c}if(typeof s!="string")return s===0?s:+s;s=RC(s);var v=qe.test(s);return v||mt.test(s)?wD(s.slice(2),v?2:8):Be.test(s)?$:+s}function f6(s){return yi(s,er(s))}function sq(s){return s?oo(Ze(s),-9007199254740991,q):s===0?s:0}function Tt(s){return s==null?"":pr(s)}var uq=Rs(function(s,c){if(il(c)||Jn(c)){yi(c,bn(c),s);return}for(var v in c)At.call(c,v)&&Zu(s,v,c[v])}),d6=Rs(function(s,c){yi(c,er(c),s)}),ld=Rs(function(s,c,v,E){yi(c,er(c),s,E)}),lq=Rs(function(s,c,v,E){yi(c,bn(c),s,E)}),cq=Ii(Jg);function fq(s,c){var v=ks(s);return c==null?v:HC(v,c)}var dq=rt(function(s,c){s=Dt(s);var v=-1,E=c.length,R=E>2?c[2]:n;for(R&&zn(c[0],c[1],R)&&(E=1);++v<E;)for(var I=c[v],U=er(I),W=-1,ee=U.length;++W<ee;){var he=U[W],pe=s[he];(pe===n||Jr(pe,Cs[he])&&!At.call(s,he))&&(s[he]=I[he])}return s}),hq=rt(function(s){return s.push(n,R5),dr(h6,n,s)});function pq(s,c){return CC(s,je(c,3),gi)}function vq(s,c){return CC(s,je(c,3),t1)}function mq(s,c){return s==null?s:e1(s,je(c,3),er)}function gq(s,c){return s==null?s:YC(s,je(c,3),er)}function yq(s,c){return s&&gi(s,je(c,3))}function bq(s,c){return s&&t1(s,je(c,3))}function _q(s){return s==null?[]:Hf(s,bn(s))}function wq(s){return s==null?[]:Hf(s,er(s))}function I1(s,c,v){var E=s==null?n:so(s,c);return E===n?v:E}function Eq(s,c){return s!=null&&N5(s,c,BM)}function L1(s,c){return s!=null&&N5(s,c,WM)}var Sq=x5(function(s,c,v){c!=null&&typeof c.toString!="function"&&(c=Pf.call(c)),s[c]=v},D1(tr)),xq=x5(function(s,c,v){c!=null&&typeof c.toString!="function"&&(c=Pf.call(c)),At.call(s,c)?s[c].push(v):s[c]=[v]},je),Cq=rt(el);function bn(s){return Jn(s)?UC(s):a1(s)}function er(s){return Jn(s)?UC(s,!0):nj(s)}function Tq(s,c){var v={};return c=je(c,3),gi(s,function(E,R,I){Pi(v,c(E,R,I),E)}),v}function Oq(s,c){var v={};return c=je(c,3),gi(s,function(E,R,I){Pi(v,R,c(E,R,I))}),v}var kq=Rs(function(s,c,v){Bf(s,c,v)}),h6=Rs(function(s,c,v,E){Bf(s,c,v,E)}),Rq=Ii(function(s,c){var v={};if(s==null)return v;var E=!1;c=Bt(c,function(I){return I=ba(I,s),E||(E=I.length>1),I}),yi(s,b1(s),v),E&&(v=Fr(v,h|p|m,Sj));for(var R=c.length;R--;)f1(v,c[R]);return v});function Aq(s,c){return p6(s,od(je(c)))}var Pq=Ii(function(s,c){return s==null?{}:ij(s,c)});function p6(s,c){if(s==null)return{};var v=Bt(b1(s),function(E){return[E]});return c=je(c),a5(s,v,function(E,R){return c(E,R[0])})}function Nq(s,c,v){c=ba(c,s);var E=-1,R=c.length;for(R||(R=1,s=n);++E<R;){var I=s==null?n:s[bi(c[E])];I===n&&(E=R,I=v),s=Fi(I)?I.call(s):I}return s}function Iq(s,c,v){return s==null?s:nl(s,c,v)}function Lq(s,c,v,E){return E=typeof E=="function"?E:n,s==null?s:nl(s,c,v,E)}var v6=O5(bn),m6=O5(er);function Fq(s,c,v){var E=Ye(s),R=E||wa(s)||Ns(s);if(c=je(c,4),v==null){var I=s&&s.constructor;R?v=E?new I:[]:Xt(s)?v=Fi(I)?ks(Lf(s)):{}:v={}}return(R?Nr:gi)(s,function(U,W,ee){return c(v,U,W,ee)}),v}function Dq(s,c){return s==null?!0:f1(s,c)}function Mq(s,c,v){return s==null?s:c5(s,c,p1(v))}function jq(s,c,v,E){return E=typeof E=="function"?E:n,s==null?s:c5(s,c,p1(v),E)}function Is(s){return s==null?[]:Wg(s,bn(s))}function $q(s){return s==null?[]:Wg(s,er(s))}function Vq(s,c,v){return v===n&&(v=c,c=n),v!==n&&(v=jr(v),v=v===v?v:0),c!==n&&(c=jr(c),c=c===c?c:0),oo(jr(s),c,v)}function qq(s,c,v){return c=Di(c),v===n?(v=c,c=0):v=Di(v),s=jr(s),GM(s,c,v)}function Uq(s,c,v){if(v&&typeof v!="boolean"&&zn(s,c,v)&&(c=v=n),v===n&&(typeof c=="boolean"?(v=c,c=n):typeof s=="boolean"&&(v=s,s=n)),s===n&&c===n?(s=0,c=1):(s=Di(s),c===n?(c=s,s=0):c=Di(c)),s>c){var E=s;s=c,c=E}if(v||s%1||c%1){var R=VC();return In(s+R*(c-s+_D("1e-"+((R+"").length-1))),c)}return u1(s,c)}var zq=As(function(s,c,v){return c=c.toLowerCase(),s+(v?g6(c):c)});function g6(s){return F1(Tt(s).toLowerCase())}function y6(s){return s=Tt(s),s&&s.replace(ht,ID).replace(Ae,"")}function Hq(s,c,v){s=Tt(s),c=pr(c);var E=s.length;v=v===n?E:oo(Ze(v),0,E);var R=v;return v-=c.length,v>=0&&s.slice(v,R)==c}function Bq(s){return s=Tt(s),s&&En.test(s)?s.replace(ui,LD):s}function Wq(s){return s=Tt(s),s&&ci.test(s)?s.replace(Kn,"\\$&"):s}var Gq=As(function(s,c,v){return s+(v?"-":"")+c.toLowerCase()}),Qq=As(function(s,c,v){return s+(v?" ":"")+c.toLowerCase()}),Yq=w5("toLowerCase");function Kq(s,c,v){s=Tt(s),c=Ze(c);var E=c?Ss(s):0;if(!c||E>=c)return s;var R=(c-E)/2;return Xf(jf(R),v)+s+Xf(Mf(R),v)}function Xq(s,c,v){s=Tt(s),c=Ze(c);var E=c?Ss(s):0;return c&&E<c?s+Xf(c-E,v):s}function Zq(s,c,v){s=Tt(s),c=Ze(c);var E=c?Ss(s):0;return c&&E<c?Xf(c-E,v)+s:s}function Jq(s,c,v){return v||c==null?c=0:c&&(c=+c),oM(Tt(s).replace(yn,""),c||0)}function eU(s,c,v){return(v?zn(s,c,v):c===n)?c=1:c=Ze(c),l1(Tt(s),c)}function tU(){var s=arguments,c=Tt(s[0]);return s.length<3?c:c.replace(s[1],s[2])}var nU=As(function(s,c,v){return s+(v?"_":"")+c.toLowerCase()});function rU(s,c,v){return v&&typeof v!="number"&&zn(s,c,v)&&(c=v=n),v=v===n?Y:v>>>0,v?(s=Tt(s),s&&(typeof c=="string"||c!=null&&!N1(c))&&(c=pr(c),!c&&Es(s))?_a(Xr(s),0,v):s.split(c,v)):[]}var iU=As(function(s,c,v){return s+(v?" ":"")+F1(c)});function aU(s,c,v){return s=Tt(s),v=v==null?0:oo(Ze(v),0,s.length),c=pr(c),s.slice(v,v+c.length)==c}function oU(s,c,v){var E=P.templateSettings;v&&zn(s,c,v)&&(c=n),s=Tt(s),c=ld({},c,E,k5);var R=ld({},c.imports,E.imports,k5),I=bn(R),U=Wg(R,I),W,ee,he=0,pe=c.interpolate||Nn,ge="__p += '",xe=Qg((c.escape||Nn).source+"|"+pe.source+"|"+(pe===Yn?it:Nn).source+"|"+(c.evaluate||Nn).source+"|$","g"),Ne="//# sourceURL="+(At.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Bu+"]")+`
68
+ `;s.replace(xe,function(Ve,ot,ft,mr,Hn,gr){return ft||(ft=mr),ge+=s.slice(he,gr).replace(cr,FD),ot&&(W=!0,ge+=`' +
69
69
  __e(`+ot+`) +
70
- '`),Hn&&(ee=!0,me+=`';
70
+ '`),Hn&&(ee=!0,ge+=`';
71
71
  `+Hn+`;
72
- __p += '`),ht&&(me+=`' +
73
- ((__t = (`+ht+`)) == null ? '' : __t) +
74
- '`),he=gr+$e.length,$e}),me+=`';
75
- `;var je=Nt.call(c,"variable")&&c.variable;if(!je)me=`with (obj) {
76
- `+me+`
72
+ __p += '`),ft&&(ge+=`' +
73
+ ((__t = (`+ft+`)) == null ? '' : __t) +
74
+ '`),he=gr+Ve.length,Ve}),ge+=`';
75
+ `;var $e=At.call(c,"variable")&&c.variable;if(!$e)ge=`with (obj) {
76
+ `+ge+`
77
77
  }
78
- `;else if(Se.test(je))throw new Ge(u);me=(ee?me.replace(Qn,""):me).replace(sa,"$1").replace(lr,"$1;"),me="function("+(je||"obj")+`) {
79
- `+(je?"":`obj || (obj = {});
80
- `)+"var __t, __p = ''"+(G?", __e = _.escape":"")+(ee?`, __j = Array.prototype.join;
78
+ `;else if(Se.test($e))throw new We(u);ge=(ee?ge.replace(Qn,""):ge).replace(sa,"$1").replace(lr,"$1;"),ge="function("+($e||"obj")+`) {
79
+ `+($e?"":`obj || (obj = {});
80
+ `)+"var __t, __p = ''"+(W?", __e = _.escape":"")+(ee?`, __j = Array.prototype.join;
81
81
  function print() { __p += __j.call(arguments, '') }
82
82
  `:`;
83
- `)+me+`return __p
84
- }`;var tt=_6(function(){return _t(I,Ie+"return "+me).apply(n,U)});if(tt.source=me,P1(tt))throw tt;return tt}function sU(s){return Ot(s).toLowerCase()}function uU(s){return Ot(s).toUpperCase()}function lU(s,c,v){if(s=Ot(s),s&&(v||c===n))return RC(s);if(!s||!(c=pr(c)))return s;var E=Xr(s),R=Xr(c),I=AC(E,R),U=PC(E,R)+1;return _a(E,I,U).join("")}function cU(s,c,v){if(s=Ot(s),s&&(v||c===n))return s.slice(0,IC(s)+1);if(!s||!(c=pr(c)))return s;var E=Xr(s),R=PC(E,Xr(c))+1;return _a(E,0,R).join("")}function fU(s,c,v){if(s=Ot(s),s&&(v||c===n))return s.replace(yn,"");if(!s||!(c=pr(c)))return s;var E=Xr(s),R=AC(E,Xr(c));return _a(E,R).join("")}function dU(s,c){var v=N,E=F;if(Xt(c)){var R="separator"in c?c.separator:R;v="length"in c?Je(c.length):v,E="omission"in c?pr(c.omission):E}s=Ot(s);var I=s.length;if(Es(s)){var U=Xr(s);I=U.length}if(v>=I)return s;var G=v-Ss(E);if(G<1)return E;var ee=U?_a(U,0,G).join(""):s.slice(0,G);if(R===n)return ee+E;if(U&&(G+=ee.length-G),N1(R)){if(s.slice(G).search(R)){var he,pe=ee;for(R.global||(R=Qg(R.source,Ot(at.exec(R))+"g")),R.lastIndex=0;he=R.exec(pe);)var me=he.index;ee=ee.slice(0,me===n?G:me)}}else if(s.indexOf(pr(R),G)!=G){var xe=ee.lastIndexOf(R);xe>-1&&(ee=ee.slice(0,xe))}return ee+E}function hU(s){return s=Ot(s),s&&$n.test(s)?s.replace(si,UD):s}var pU=As(function(s,c,v){return s+(v?" ":"")+c.toUpperCase()}),F1=w5("toUpperCase");function b6(s,c,v){return s=Ot(s),c=v?n:c,c===n?MD(s)?BD(s):kD(s):s.match(c)||[]}var _6=rt(function(s,c){try{return dr(s,n,c)}catch(v){return P1(v)?v:new Ge(v)}}),vU=Ii(function(s,c){return Nr(c,function(v){v=bi(v),Pi(s,v,R1(s[v],s))}),s});function mU(s){var c=s==null?0:s.length,v=Me();return s=c?Bt(s,function(E){if(typeof E[1]!="function")throw new Ir(o);return[v(E[0]),E[1]]}):[],rt(function(E){for(var R=-1;++R<c;){var I=s[R];if(dr(I[0],this,E))return dr(I[1],this,E)}})}function gU(s){return UM(Fr(s,h))}function D1(s){return function(){return s}}function yU(s,c){return s==null||s!==s?c:s}var bU=S5(),_U=S5(!0);function tr(s){return s}function M1(s){return JC(typeof s=="function"?s:Fr(s,h))}function wU(s){return t5(Fr(s,h))}function EU(s,c){return n5(s,Fr(c,h))}var SU=rt(function(s,c){return function(v){return el(v,s,c)}}),xU=rt(function(s,c){return function(v){return el(s,v,c)}});function j1(s,c,v){var E=bn(c),R=Hf(c,E);v==null&&!(Xt(c)&&(R.length||!E.length))&&(v=c,c=s,s=this,R=Hf(c,bn(c)));var I=!(Xt(v)&&"chain"in v)||!!v.chain,U=Fi(s);return Nr(R,function(G){var ee=c[G];s[G]=ee,U&&(s.prototype[G]=function(){var he=this.__chain__;if(I||he){var pe=s(this.__wrapped__),me=pe.__actions__=Zn(this.__actions__);return me.push({func:ee,args:arguments,thisArg:s}),pe.__chain__=he,pe}return ee.apply(s,pa([this.value()],arguments))})}),s}function CU(){return Sn._===this&&(Sn._=XD),this}function $1(){}function TU(s){return s=Je(s),rt(function(c){return r5(c,s)})}var OU=m1(Bt),kU=m1(xC),RU=m1(qg);function w6(s){return S1(s)?Ug(bi(s)):aj(s)}function AU(s){return function(c){return s==null?n:so(s,c)}}var PU=C5(),NU=C5(!0);function V1(){return[]}function q1(){return!1}function IU(){return{}}function LU(){return""}function FU(){return!0}function DU(s,c){if(s=Je(s),s<1||s>q)return[];var v=K,E=In(s,K);c=Me(c),s-=K;for(var R=Bg(E,c);++v<s;)c(v);return R}function MU(s){return Ye(s)?Bt(s,bi):vr(s)?[s]:Zn(q5(Ot(s)))}function jU(s){var c=++YD;return Ot(s)+c}var $U=Kf(function(s,c){return s+c},0),VU=g1("ceil"),qU=Kf(function(s,c){return s/c},1),UU=g1("floor");function zU(s){return s&&s.length?zf(s,tr,n1):n}function HU(s,c){return s&&s.length?zf(s,Me(c,2),n1):n}function BU(s){return OC(s,tr)}function WU(s,c){return OC(s,Me(c,2))}function GU(s){return s&&s.length?zf(s,tr,o1):n}function QU(s,c){return s&&s.length?zf(s,Me(c,2),o1):n}var YU=Kf(function(s,c){return s*c},1),KU=g1("round"),XU=Kf(function(s,c){return s-c},0);function ZU(s){return s&&s.length?Hg(s,tr):0}function JU(s,c){return s&&s.length?Hg(s,Me(c,2)):0}return P.after=wV,P.ary=Z5,P.assign=uq,P.assignIn=d6,P.assignInWith=ld,P.assignWith=lq,P.at=cq,P.before=J5,P.bind=R1,P.bindAll=vU,P.bindKey=e6,P.castArray=IV,P.chain=Y5,P.chunk=Uj,P.compact=zj,P.concat=Hj,P.cond=mU,P.conforms=gU,P.constant=D1,P.countBy=Z$,P.create=fq,P.curry=t6,P.curryRight=n6,P.debounce=r6,P.defaults=dq,P.defaultsDeep=hq,P.defer=EV,P.delay=SV,P.difference=Bj,P.differenceBy=Wj,P.differenceWith=Gj,P.drop=Qj,P.dropRight=Yj,P.dropRightWhile=Kj,P.dropWhile=Xj,P.fill=Zj,P.filter=eV,P.flatMap=rV,P.flatMapDeep=iV,P.flatMapDepth=aV,P.flatten=B5,P.flattenDeep=Jj,P.flattenDepth=e$,P.flip=xV,P.flow=bU,P.flowRight=_U,P.fromPairs=t$,P.functions=_q,P.functionsIn=wq,P.groupBy=oV,P.initial=r$,P.intersection=i$,P.intersectionBy=a$,P.intersectionWith=o$,P.invert=Sq,P.invertBy=xq,P.invokeMap=uV,P.iteratee=M1,P.keyBy=lV,P.keys=bn,P.keysIn=er,P.map=rd,P.mapKeys=Tq,P.mapValues=Oq,P.matches=wU,P.matchesProperty=EU,P.memoize=ad,P.merge=kq,P.mergeWith=h6,P.method=SU,P.methodOf=xU,P.mixin=j1,P.negate=od,P.nthArg=TU,P.omit=Rq,P.omitBy=Aq,P.once=CV,P.orderBy=cV,P.over=OU,P.overArgs=TV,P.overEvery=kU,P.overSome=RU,P.partial=A1,P.partialRight=i6,P.partition=fV,P.pick=Pq,P.pickBy=p6,P.property=w6,P.propertyOf=AU,P.pull=c$,P.pullAll=G5,P.pullAllBy=f$,P.pullAllWith=d$,P.pullAt=h$,P.range=PU,P.rangeRight=NU,P.rearg=OV,P.reject=pV,P.remove=p$,P.rest=kV,P.reverse=O1,P.sampleSize=mV,P.set=Iq,P.setWith=Lq,P.shuffle=gV,P.slice=v$,P.sortBy=_V,P.sortedUniq=E$,P.sortedUniqBy=S$,P.split=rU,P.spread=RV,P.tail=x$,P.take=C$,P.takeRight=T$,P.takeRightWhile=O$,P.takeWhile=k$,P.tap=z$,P.throttle=AV,P.thru=nd,P.toArray=l6,P.toPairs=v6,P.toPairsIn=m6,P.toPath=MU,P.toPlainObject=f6,P.transform=Fq,P.unary=PV,P.union=R$,P.unionBy=A$,P.unionWith=P$,P.uniq=N$,P.uniqBy=I$,P.uniqWith=L$,P.unset=Dq,P.unzip=k1,P.unzipWith=Q5,P.update=Mq,P.updateWith=jq,P.values=Is,P.valuesIn=$q,P.without=F$,P.words=b6,P.wrap=NV,P.xor=D$,P.xorBy=M$,P.xorWith=j$,P.zip=$$,P.zipObject=V$,P.zipObjectDeep=q$,P.zipWith=U$,P.entries=v6,P.entriesIn=m6,P.extend=d6,P.extendWith=ld,j1(P,P),P.add=$U,P.attempt=_6,P.camelCase=zq,P.capitalize=g6,P.ceil=VU,P.clamp=Vq,P.clone=LV,P.cloneDeep=DV,P.cloneDeepWith=MV,P.cloneWith=FV,P.conformsTo=jV,P.deburr=y6,P.defaultTo=yU,P.divide=qU,P.endsWith=Hq,P.eq=Jr,P.escape=Bq,P.escapeRegExp=Wq,P.every=J$,P.find=tV,P.findIndex=z5,P.findKey=pq,P.findLast=nV,P.findLastIndex=H5,P.findLastKey=vq,P.floor=UU,P.forEach=K5,P.forEachRight=X5,P.forIn=mq,P.forInRight=gq,P.forOwn=yq,P.forOwnRight=bq,P.get=I1,P.gt=$V,P.gte=VV,P.has=Eq,P.hasIn=L1,P.head=W5,P.identity=tr,P.includes=sV,P.indexOf=n$,P.inRange=qq,P.invoke=Cq,P.isArguments=co,P.isArray=Ye,P.isArrayBuffer=qV,P.isArrayLike=Jn,P.isArrayLikeObject=an,P.isBoolean=UV,P.isBuffer=wa,P.isDate=zV,P.isElement=HV,P.isEmpty=BV,P.isEqual=WV,P.isEqualWith=GV,P.isError=P1,P.isFinite=QV,P.isFunction=Fi,P.isInteger=a6,P.isLength=sd,P.isMap=o6,P.isMatch=YV,P.isMatchWith=KV,P.isNaN=XV,P.isNative=ZV,P.isNil=eq,P.isNull=JV,P.isNumber=s6,P.isObject=Xt,P.isObjectLike=en,P.isPlainObject=ol,P.isRegExp=N1,P.isSafeInteger=tq,P.isSet=u6,P.isString=ud,P.isSymbol=vr,P.isTypedArray=Ns,P.isUndefined=nq,P.isWeakMap=rq,P.isWeakSet=iq,P.join=s$,P.kebabCase=Gq,P.last=Mr,P.lastIndexOf=u$,P.lowerCase=Qq,P.lowerFirst=Yq,P.lt=aq,P.lte=oq,P.max=zU,P.maxBy=HU,P.mean=BU,P.meanBy=WU,P.min=GU,P.minBy=QU,P.stubArray=V1,P.stubFalse=q1,P.stubObject=IU,P.stubString=LU,P.stubTrue=FU,P.multiply=YU,P.nth=l$,P.noConflict=CU,P.noop=$1,P.now=id,P.pad=Kq,P.padEnd=Xq,P.padStart=Zq,P.parseInt=Jq,P.random=Uq,P.reduce=dV,P.reduceRight=hV,P.repeat=eU,P.replace=tU,P.result=Nq,P.round=KU,P.runInContext=Z,P.sample=vV,P.size=yV,P.snakeCase=nU,P.some=bV,P.sortedIndex=m$,P.sortedIndexBy=g$,P.sortedIndexOf=y$,P.sortedLastIndex=b$,P.sortedLastIndexBy=_$,P.sortedLastIndexOf=w$,P.startCase=iU,P.startsWith=aU,P.subtract=XU,P.sum=ZU,P.sumBy=JU,P.template=oU,P.times=DU,P.toFinite=Di,P.toInteger=Je,P.toLength=c6,P.toLower=sU,P.toNumber=jr,P.toSafeInteger=sq,P.toString=Ot,P.toUpper=uU,P.trim=lU,P.trimEnd=cU,P.trimStart=fU,P.truncate=dU,P.unescape=hU,P.uniqueId=jU,P.upperCase=pU,P.upperFirst=F1,P.each=K5,P.eachRight=X5,P.first=W5,j1(P,function(){var s={};return gi(P,function(c,v){Nt.call(P.prototype,v)||(s[v]=c)}),s}(),{chain:!1}),P.VERSION=r,Nr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){P[s].placeholder=P}),Nr(["drop","take"],function(s,c){lt.prototype[s]=function(v){v=v===n?1:dn(Je(v),0);var E=this.__filtered__&&!c?new lt(this):this.clone();return E.__filtered__?E.__takeCount__=In(v,E.__takeCount__):E.__views__.push({size:In(v,K),type:s+(E.__dir__<0?"Right":"")}),E},lt.prototype[s+"Right"]=function(v){return this.reverse()[s](v).reverse()}}),Nr(["filter","map","takeWhile"],function(s,c){var v=c+1,E=v==D||v==z;lt.prototype[s]=function(R){var I=this.clone();return I.__iteratees__.push({iteratee:Me(R,3),type:v}),I.__filtered__=I.__filtered__||E,I}}),Nr(["head","last"],function(s,c){var v="take"+(c?"Right":"");lt.prototype[s]=function(){return this[v](1).value()[0]}}),Nr(["initial","tail"],function(s,c){var v="drop"+(c?"":"Right");lt.prototype[s]=function(){return this.__filtered__?new lt(this):this[v](1)}}),lt.prototype.compact=function(){return this.filter(tr)},lt.prototype.find=function(s){return this.filter(s).head()},lt.prototype.findLast=function(s){return this.reverse().find(s)},lt.prototype.invokeMap=rt(function(s,c){return typeof s=="function"?new lt(this):this.map(function(v){return el(v,s,c)})}),lt.prototype.reject=function(s){return this.filter(od(Me(s)))},lt.prototype.slice=function(s,c){s=Je(s);var v=this;return v.__filtered__&&(s>0||c<0)?new lt(v):(s<0?v=v.takeRight(-s):s&&(v=v.drop(s)),c!==n&&(c=Je(c),v=c<0?v.dropRight(-c):v.take(c-s)),v)},lt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},lt.prototype.toArray=function(){return this.take(K)},gi(lt.prototype,function(s,c){var v=/^(?:filter|find|map|reject)|While$/.test(c),E=/^(?:head|last)$/.test(c),R=P[E?"take"+(c=="last"?"Right":""):c],I=E||/^find/.test(c);R&&(P.prototype[c]=function(){var U=this.__wrapped__,G=E?[1]:arguments,ee=U instanceof lt,he=G[0],pe=ee||Ye(U),me=function(ot){var ht=R.apply(P,pa([ot],G));return E&&xe?ht[0]:ht};pe&&v&&typeof he=="function"&&he.length!=1&&(ee=pe=!1);var xe=this.__chain__,Ie=!!this.__actions__.length,je=I&&!xe,tt=ee&&!Ie;if(!I&&pe){U=tt?U:new lt(this);var $e=s.apply(U,G);return $e.__actions__.push({func:nd,args:[me],thisArg:n}),new Lr($e,xe)}return je&&tt?s.apply(this,G):($e=this.thru(me),je?E?$e.value()[0]:$e.value():$e)})}),Nr(["pop","push","shift","sort","splice","unshift"],function(s){var c=kf[s],v=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",E=/^(?:pop|shift)$/.test(s);P.prototype[s]=function(){var R=arguments;if(E&&!this.__chain__){var I=this.value();return c.apply(Ye(I)?I:[],R)}return this[v](function(U){return c.apply(Ye(U)?U:[],R)})}}),gi(lt.prototype,function(s,c){var v=P[c];if(v){var E=v.name+"";Nt.call(Os,E)||(Os[E]=[]),Os[E].push({name:c,func:v})}}),Os[Yf(n,w).name]=[{name:"wrapper",func:n}],lt.prototype.clone=hM,lt.prototype.reverse=pM,lt.prototype.value=vM,P.prototype.at=H$,P.prototype.chain=B$,P.prototype.commit=W$,P.prototype.next=G$,P.prototype.plant=Y$,P.prototype.reverse=K$,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=X$,P.prototype.first=P.prototype.head,Gu&&(P.prototype[Gu]=Q$),P},xs=WD();no?((no.exports=xs)._=xs,Mg._=xs):Sn._=xs}).call(l8)}(nu,nu.exports)),nu.exports}var ze=c8();const wb="3.7.7",f8=wb,Ro=typeof Buffer=="function",Eb=typeof TextDecoder=="function"?new TextDecoder:void 0,Sb=typeof TextEncoder=="function"?new TextEncoder:void 0,ru=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),ql=(e=>{let t={};return e.forEach((n,r)=>t[n]=r),t})(ru),d8=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,wn=String.fromCharCode.bind(String),xb=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),Cb=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),Tb=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),Ob=e=>{let t,n,r,i,a="";const o=e.length%3;for(let u=0;u<e.length;){if((n=e.charCodeAt(u++))>255||(r=e.charCodeAt(u++))>255||(i=e.charCodeAt(u++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|i,a+=ru[t>>18&63]+ru[t>>12&63]+ru[t>>6&63]+ru[t&63]}return o?a.slice(0,o-3)+"===".substring(o):a},Sh=typeof btoa=="function"?e=>btoa(e):Ro?e=>Buffer.from(e,"binary").toString("base64"):Ob,xh=Ro?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let r=0,i=e.length;r<i;r+=4096)n.push(wn.apply(null,e.subarray(r,r+4096)));return Sh(n.join(""))},Ul=(e,t=!1)=>t?Cb(xh(e)):xh(e),h8=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?wn(192|t>>>6)+wn(128|t&63):wn(224|t>>>12&15)+wn(128|t>>>6&63)+wn(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return wn(240|t>>>18&7)+wn(128|t>>>12&63)+wn(128|t>>>6&63)+wn(128|t&63)}},p8=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,kb=e=>e.replace(p8,h8),Rb=Ro?e=>Buffer.from(e,"utf8").toString("base64"):Sb?e=>xh(Sb.encode(e)):e=>Sh(kb(e)),Ao=(e,t=!1)=>t?Cb(Rb(e)):Rb(e),Ab=e=>Ao(e,!0),v8=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,m8=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return wn((n>>>10)+55296)+wn((n&1023)+56320);case 3:return wn((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return wn((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Pb=e=>e.replace(v8,m8),Nb=e=>{if(e=e.replace(/\s+/g,""),!d8.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,n="",r,i;for(let a=0;a<e.length;)t=ql[e.charAt(a++)]<<18|ql[e.charAt(a++)]<<12|(r=ql[e.charAt(a++)])<<6|(i=ql[e.charAt(a++)]),n+=r===64?wn(t>>16&255):i===64?wn(t>>16&255,t>>8&255):wn(t>>16&255,t>>8&255,t&255);return n},Ch=typeof atob=="function"?e=>atob(Tb(e)):Ro?e=>Buffer.from(e,"base64").toString("binary"):Nb,Ib=Ro?e=>xb(Buffer.from(e,"base64")):e=>xb(Ch(e).split("").map(t=>t.charCodeAt(0))),Lb=e=>Ib(Fb(e)),g8=Ro?e=>Buffer.from(e,"base64").toString("utf8"):Eb?e=>Eb.decode(Ib(e)):e=>Pb(Ch(e)),Fb=e=>Tb(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),Th=e=>g8(Fb(e)),y8=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},Db=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),Mb=function(){const e=(t,n)=>Object.defineProperty(String.prototype,t,Db(n));e("fromBase64",function(){return Th(this)}),e("toBase64",function(t){return Ao(this,t)}),e("toBase64URI",function(){return Ao(this,!0)}),e("toBase64URL",function(){return Ao(this,!0)}),e("toUint8Array",function(){return Lb(this)})},jb=function(){const e=(t,n)=>Object.defineProperty(Uint8Array.prototype,t,Db(n));e("toBase64",function(t){return Ul(this,t)}),e("toBase64URI",function(){return Ul(this,!0)}),e("toBase64URL",function(){return Ul(this,!0)})},b8={version:wb,VERSION:f8,atob:Ch,atobPolyfill:Nb,btoa:Sh,btoaPolyfill:Ob,fromBase64:Th,toBase64:Ao,encode:Ao,encodeURI:Ab,encodeURL:Ab,utob:kb,btou:Pb,decode:Th,isValid:y8,fromUint8Array:Ul,toUint8Array:Lb,extendString:Mb,extendUint8Array:jb,extendBuiltins:()=>{Mb(),jb()}};var Oh={exports:{}},kh={exports:{}},$b;function _8(){return $b||($b=1,function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(n,r){return n<<r|n>>>32-r},rotr:function(n,r){return n<<32-r|n>>>r},endian:function(n){if(n.constructor==Number)return t.rotl(n,8)&16711935|t.rotl(n,24)&4278255360;for(var r=0;r<n.length;r++)n[r]=t.endian(n[r]);return n},randomBytes:function(n){for(var r=[];n>0;n--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(n){for(var r=[],i=0,a=0;i<n.length;i++,a+=8)r[a>>>5]|=n[i]<<24-a%32;return r},wordsToBytes:function(n){for(var r=[],i=0;i<n.length*32;i+=8)r.push(n[i>>>5]>>>24-i%32&255);return r},bytesToHex:function(n){for(var r=[],i=0;i<n.length;i++)r.push((n[i]>>>4).toString(16)),r.push((n[i]&15).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],i=0;i<n.length;i+=2)r.push(parseInt(n.substr(i,2),16));return r},bytesToBase64:function(n){for(var r=[],i=0;i<n.length;i+=3)for(var a=n[i]<<16|n[i+1]<<8|n[i+2],o=0;o<4;o++)i*8+o*6<=n.length*8?r.push(e.charAt(a>>>6*(3-o)&63)):r.push("=");return r.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],i=0,a=0;i<n.length;a=++i%4)a!=0&&r.push((e.indexOf(n.charAt(i-1))&Math.pow(2,-2*a+8)-1)<<a*2|e.indexOf(n.charAt(i))>>>6-a*2);return r}};kh.exports=t}()),kh.exports}var Rh,Vb;function qb(){if(Vb)return Rh;Vb=1;var e={utf8:{stringToBytes:function(t){return e.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(e.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var n=[],r=0;r<t.length;r++)n.push(t.charCodeAt(r)&255);return n},bytesToString:function(t){for(var n=[],r=0;r<t.length;r++)n.push(String.fromCharCode(t[r]));return n.join("")}}};return Rh=e,Rh}/*!
83
+ `)+ge+`return __p
84
+ }`;var tt=_6(function(){return yt(I,Ne+"return "+ge).apply(n,U)});if(tt.source=ge,P1(tt))throw tt;return tt}function sU(s){return Tt(s).toLowerCase()}function uU(s){return Tt(s).toUpperCase()}function lU(s,c,v){if(s=Tt(s),s&&(v||c===n))return RC(s);if(!s||!(c=pr(c)))return s;var E=Xr(s),R=Xr(c),I=AC(E,R),U=PC(E,R)+1;return _a(E,I,U).join("")}function cU(s,c,v){if(s=Tt(s),s&&(v||c===n))return s.slice(0,IC(s)+1);if(!s||!(c=pr(c)))return s;var E=Xr(s),R=PC(E,Xr(c))+1;return _a(E,0,R).join("")}function fU(s,c,v){if(s=Tt(s),s&&(v||c===n))return s.replace(yn,"");if(!s||!(c=pr(c)))return s;var E=Xr(s),R=AC(E,Xr(c));return _a(E,R).join("")}function dU(s,c){var v=N,E=F;if(Xt(c)){var R="separator"in c?c.separator:R;v="length"in c?Ze(c.length):v,E="omission"in c?pr(c.omission):E}s=Tt(s);var I=s.length;if(Es(s)){var U=Xr(s);I=U.length}if(v>=I)return s;var W=v-Ss(E);if(W<1)return E;var ee=U?_a(U,0,W).join(""):s.slice(0,W);if(R===n)return ee+E;if(U&&(W+=ee.length-W),N1(R)){if(s.slice(W).search(R)){var he,pe=ee;for(R.global||(R=Qg(R.source,Tt(at.exec(R))+"g")),R.lastIndex=0;he=R.exec(pe);)var ge=he.index;ee=ee.slice(0,ge===n?W:ge)}}else if(s.indexOf(pr(R),W)!=W){var xe=ee.lastIndexOf(R);xe>-1&&(ee=ee.slice(0,xe))}return ee+E}function hU(s){return s=Tt(s),s&&$n.test(s)?s.replace(si,UD):s}var pU=As(function(s,c,v){return s+(v?" ":"")+c.toUpperCase()}),F1=w5("toUpperCase");function b6(s,c,v){return s=Tt(s),c=v?n:c,c===n?MD(s)?BD(s):kD(s):s.match(c)||[]}var _6=rt(function(s,c){try{return dr(s,n,c)}catch(v){return P1(v)?v:new We(v)}}),vU=Ii(function(s,c){return Nr(c,function(v){v=bi(v),Pi(s,v,R1(s[v],s))}),s});function mU(s){var c=s==null?0:s.length,v=je();return s=c?Bt(s,function(E){if(typeof E[1]!="function")throw new Ir(o);return[v(E[0]),E[1]]}):[],rt(function(E){for(var R=-1;++R<c;){var I=s[R];if(dr(I[0],this,E))return dr(I[1],this,E)}})}function gU(s){return UM(Fr(s,h))}function D1(s){return function(){return s}}function yU(s,c){return s==null||s!==s?c:s}var bU=S5(),_U=S5(!0);function tr(s){return s}function M1(s){return JC(typeof s=="function"?s:Fr(s,h))}function wU(s){return t5(Fr(s,h))}function EU(s,c){return n5(s,Fr(c,h))}var SU=rt(function(s,c){return function(v){return el(v,s,c)}}),xU=rt(function(s,c){return function(v){return el(s,v,c)}});function j1(s,c,v){var E=bn(c),R=Hf(c,E);v==null&&!(Xt(c)&&(R.length||!E.length))&&(v=c,c=s,s=this,R=Hf(c,bn(c)));var I=!(Xt(v)&&"chain"in v)||!!v.chain,U=Fi(s);return Nr(R,function(W){var ee=c[W];s[W]=ee,U&&(s.prototype[W]=function(){var he=this.__chain__;if(I||he){var pe=s(this.__wrapped__),ge=pe.__actions__=Zn(this.__actions__);return ge.push({func:ee,args:arguments,thisArg:s}),pe.__chain__=he,pe}return ee.apply(s,pa([this.value()],arguments))})}),s}function CU(){return Sn._===this&&(Sn._=XD),this}function $1(){}function TU(s){return s=Ze(s),rt(function(c){return r5(c,s)})}var OU=m1(Bt),kU=m1(xC),RU=m1(qg);function w6(s){return S1(s)?Ug(bi(s)):aj(s)}function AU(s){return function(c){return s==null?n:so(s,c)}}var PU=C5(),NU=C5(!0);function V1(){return[]}function q1(){return!1}function IU(){return{}}function LU(){return""}function FU(){return!0}function DU(s,c){if(s=Ze(s),s<1||s>q)return[];var v=Y,E=In(s,Y);c=je(c),s-=Y;for(var R=Bg(E,c);++v<s;)c(v);return R}function MU(s){return Ye(s)?Bt(s,bi):vr(s)?[s]:Zn(q5(Tt(s)))}function jU(s){var c=++YD;return Tt(s)+c}var $U=Kf(function(s,c){return s+c},0),VU=g1("ceil"),qU=Kf(function(s,c){return s/c},1),UU=g1("floor");function zU(s){return s&&s.length?zf(s,tr,n1):n}function HU(s,c){return s&&s.length?zf(s,je(c,2),n1):n}function BU(s){return OC(s,tr)}function WU(s,c){return OC(s,je(c,2))}function GU(s){return s&&s.length?zf(s,tr,o1):n}function QU(s,c){return s&&s.length?zf(s,je(c,2),o1):n}var YU=Kf(function(s,c){return s*c},1),KU=g1("round"),XU=Kf(function(s,c){return s-c},0);function ZU(s){return s&&s.length?Hg(s,tr):0}function JU(s,c){return s&&s.length?Hg(s,je(c,2)):0}return P.after=wV,P.ary=Z5,P.assign=uq,P.assignIn=d6,P.assignInWith=ld,P.assignWith=lq,P.at=cq,P.before=J5,P.bind=R1,P.bindAll=vU,P.bindKey=e6,P.castArray=IV,P.chain=Y5,P.chunk=Uj,P.compact=zj,P.concat=Hj,P.cond=mU,P.conforms=gU,P.constant=D1,P.countBy=Z$,P.create=fq,P.curry=t6,P.curryRight=n6,P.debounce=r6,P.defaults=dq,P.defaultsDeep=hq,P.defer=EV,P.delay=SV,P.difference=Bj,P.differenceBy=Wj,P.differenceWith=Gj,P.drop=Qj,P.dropRight=Yj,P.dropRightWhile=Kj,P.dropWhile=Xj,P.fill=Zj,P.filter=eV,P.flatMap=rV,P.flatMapDeep=iV,P.flatMapDepth=aV,P.flatten=B5,P.flattenDeep=Jj,P.flattenDepth=e$,P.flip=xV,P.flow=bU,P.flowRight=_U,P.fromPairs=t$,P.functions=_q,P.functionsIn=wq,P.groupBy=oV,P.initial=r$,P.intersection=i$,P.intersectionBy=a$,P.intersectionWith=o$,P.invert=Sq,P.invertBy=xq,P.invokeMap=uV,P.iteratee=M1,P.keyBy=lV,P.keys=bn,P.keysIn=er,P.map=rd,P.mapKeys=Tq,P.mapValues=Oq,P.matches=wU,P.matchesProperty=EU,P.memoize=ad,P.merge=kq,P.mergeWith=h6,P.method=SU,P.methodOf=xU,P.mixin=j1,P.negate=od,P.nthArg=TU,P.omit=Rq,P.omitBy=Aq,P.once=CV,P.orderBy=cV,P.over=OU,P.overArgs=TV,P.overEvery=kU,P.overSome=RU,P.partial=A1,P.partialRight=i6,P.partition=fV,P.pick=Pq,P.pickBy=p6,P.property=w6,P.propertyOf=AU,P.pull=c$,P.pullAll=G5,P.pullAllBy=f$,P.pullAllWith=d$,P.pullAt=h$,P.range=PU,P.rangeRight=NU,P.rearg=OV,P.reject=pV,P.remove=p$,P.rest=kV,P.reverse=O1,P.sampleSize=mV,P.set=Iq,P.setWith=Lq,P.shuffle=gV,P.slice=v$,P.sortBy=_V,P.sortedUniq=E$,P.sortedUniqBy=S$,P.split=rU,P.spread=RV,P.tail=x$,P.take=C$,P.takeRight=T$,P.takeRightWhile=O$,P.takeWhile=k$,P.tap=z$,P.throttle=AV,P.thru=nd,P.toArray=l6,P.toPairs=v6,P.toPairsIn=m6,P.toPath=MU,P.toPlainObject=f6,P.transform=Fq,P.unary=PV,P.union=R$,P.unionBy=A$,P.unionWith=P$,P.uniq=N$,P.uniqBy=I$,P.uniqWith=L$,P.unset=Dq,P.unzip=k1,P.unzipWith=Q5,P.update=Mq,P.updateWith=jq,P.values=Is,P.valuesIn=$q,P.without=F$,P.words=b6,P.wrap=NV,P.xor=D$,P.xorBy=M$,P.xorWith=j$,P.zip=$$,P.zipObject=V$,P.zipObjectDeep=q$,P.zipWith=U$,P.entries=v6,P.entriesIn=m6,P.extend=d6,P.extendWith=ld,j1(P,P),P.add=$U,P.attempt=_6,P.camelCase=zq,P.capitalize=g6,P.ceil=VU,P.clamp=Vq,P.clone=LV,P.cloneDeep=DV,P.cloneDeepWith=MV,P.cloneWith=FV,P.conformsTo=jV,P.deburr=y6,P.defaultTo=yU,P.divide=qU,P.endsWith=Hq,P.eq=Jr,P.escape=Bq,P.escapeRegExp=Wq,P.every=J$,P.find=tV,P.findIndex=z5,P.findKey=pq,P.findLast=nV,P.findLastIndex=H5,P.findLastKey=vq,P.floor=UU,P.forEach=K5,P.forEachRight=X5,P.forIn=mq,P.forInRight=gq,P.forOwn=yq,P.forOwnRight=bq,P.get=I1,P.gt=$V,P.gte=VV,P.has=Eq,P.hasIn=L1,P.head=W5,P.identity=tr,P.includes=sV,P.indexOf=n$,P.inRange=qq,P.invoke=Cq,P.isArguments=co,P.isArray=Ye,P.isArrayBuffer=qV,P.isArrayLike=Jn,P.isArrayLikeObject=an,P.isBoolean=UV,P.isBuffer=wa,P.isDate=zV,P.isElement=HV,P.isEmpty=BV,P.isEqual=WV,P.isEqualWith=GV,P.isError=P1,P.isFinite=QV,P.isFunction=Fi,P.isInteger=a6,P.isLength=sd,P.isMap=o6,P.isMatch=YV,P.isMatchWith=KV,P.isNaN=XV,P.isNative=ZV,P.isNil=eq,P.isNull=JV,P.isNumber=s6,P.isObject=Xt,P.isObjectLike=en,P.isPlainObject=ol,P.isRegExp=N1,P.isSafeInteger=tq,P.isSet=u6,P.isString=ud,P.isSymbol=vr,P.isTypedArray=Ns,P.isUndefined=nq,P.isWeakMap=rq,P.isWeakSet=iq,P.join=s$,P.kebabCase=Gq,P.last=Mr,P.lastIndexOf=u$,P.lowerCase=Qq,P.lowerFirst=Yq,P.lt=aq,P.lte=oq,P.max=zU,P.maxBy=HU,P.mean=BU,P.meanBy=WU,P.min=GU,P.minBy=QU,P.stubArray=V1,P.stubFalse=q1,P.stubObject=IU,P.stubString=LU,P.stubTrue=FU,P.multiply=YU,P.nth=l$,P.noConflict=CU,P.noop=$1,P.now=id,P.pad=Kq,P.padEnd=Xq,P.padStart=Zq,P.parseInt=Jq,P.random=Uq,P.reduce=dV,P.reduceRight=hV,P.repeat=eU,P.replace=tU,P.result=Nq,P.round=KU,P.runInContext=Z,P.sample=vV,P.size=yV,P.snakeCase=nU,P.some=bV,P.sortedIndex=m$,P.sortedIndexBy=g$,P.sortedIndexOf=y$,P.sortedLastIndex=b$,P.sortedLastIndexBy=_$,P.sortedLastIndexOf=w$,P.startCase=iU,P.startsWith=aU,P.subtract=XU,P.sum=ZU,P.sumBy=JU,P.template=oU,P.times=DU,P.toFinite=Di,P.toInteger=Ze,P.toLength=c6,P.toLower=sU,P.toNumber=jr,P.toSafeInteger=sq,P.toString=Tt,P.toUpper=uU,P.trim=lU,P.trimEnd=cU,P.trimStart=fU,P.truncate=dU,P.unescape=hU,P.uniqueId=jU,P.upperCase=pU,P.upperFirst=F1,P.each=K5,P.eachRight=X5,P.first=W5,j1(P,function(){var s={};return gi(P,function(c,v){At.call(P.prototype,v)||(s[v]=c)}),s}(),{chain:!1}),P.VERSION=r,Nr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){P[s].placeholder=P}),Nr(["drop","take"],function(s,c){lt.prototype[s]=function(v){v=v===n?1:dn(Ze(v),0);var E=this.__filtered__&&!c?new lt(this):this.clone();return E.__filtered__?E.__takeCount__=In(v,E.__takeCount__):E.__views__.push({size:In(v,Y),type:s+(E.__dir__<0?"Right":"")}),E},lt.prototype[s+"Right"]=function(v){return this.reverse()[s](v).reverse()}}),Nr(["filter","map","takeWhile"],function(s,c){var v=c+1,E=v==D||v==z;lt.prototype[s]=function(R){var I=this.clone();return I.__iteratees__.push({iteratee:je(R,3),type:v}),I.__filtered__=I.__filtered__||E,I}}),Nr(["head","last"],function(s,c){var v="take"+(c?"Right":"");lt.prototype[s]=function(){return this[v](1).value()[0]}}),Nr(["initial","tail"],function(s,c){var v="drop"+(c?"":"Right");lt.prototype[s]=function(){return this.__filtered__?new lt(this):this[v](1)}}),lt.prototype.compact=function(){return this.filter(tr)},lt.prototype.find=function(s){return this.filter(s).head()},lt.prototype.findLast=function(s){return this.reverse().find(s)},lt.prototype.invokeMap=rt(function(s,c){return typeof s=="function"?new lt(this):this.map(function(v){return el(v,s,c)})}),lt.prototype.reject=function(s){return this.filter(od(je(s)))},lt.prototype.slice=function(s,c){s=Ze(s);var v=this;return v.__filtered__&&(s>0||c<0)?new lt(v):(s<0?v=v.takeRight(-s):s&&(v=v.drop(s)),c!==n&&(c=Ze(c),v=c<0?v.dropRight(-c):v.take(c-s)),v)},lt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},lt.prototype.toArray=function(){return this.take(Y)},gi(lt.prototype,function(s,c){var v=/^(?:filter|find|map|reject)|While$/.test(c),E=/^(?:head|last)$/.test(c),R=P[E?"take"+(c=="last"?"Right":""):c],I=E||/^find/.test(c);R&&(P.prototype[c]=function(){var U=this.__wrapped__,W=E?[1]:arguments,ee=U instanceof lt,he=W[0],pe=ee||Ye(U),ge=function(ot){var ft=R.apply(P,pa([ot],W));return E&&xe?ft[0]:ft};pe&&v&&typeof he=="function"&&he.length!=1&&(ee=pe=!1);var xe=this.__chain__,Ne=!!this.__actions__.length,$e=I&&!xe,tt=ee&&!Ne;if(!I&&pe){U=tt?U:new lt(this);var Ve=s.apply(U,W);return Ve.__actions__.push({func:nd,args:[ge],thisArg:n}),new Lr(Ve,xe)}return $e&&tt?s.apply(this,W):(Ve=this.thru(ge),$e?E?Ve.value()[0]:Ve.value():Ve)})}),Nr(["pop","push","shift","sort","splice","unshift"],function(s){var c=kf[s],v=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",E=/^(?:pop|shift)$/.test(s);P.prototype[s]=function(){var R=arguments;if(E&&!this.__chain__){var I=this.value();return c.apply(Ye(I)?I:[],R)}return this[v](function(U){return c.apply(Ye(U)?U:[],R)})}}),gi(lt.prototype,function(s,c){var v=P[c];if(v){var E=v.name+"";At.call(Os,E)||(Os[E]=[]),Os[E].push({name:c,func:v})}}),Os[Yf(n,w).name]=[{name:"wrapper",func:n}],lt.prototype.clone=hM,lt.prototype.reverse=pM,lt.prototype.value=vM,P.prototype.at=H$,P.prototype.chain=B$,P.prototype.commit=W$,P.prototype.next=G$,P.prototype.plant=Y$,P.prototype.reverse=K$,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=X$,P.prototype.first=P.prototype.head,Gu&&(P.prototype[Gu]=Q$),P},xs=WD();no?((no.exports=xs)._=xs,Mg._=xs):Sn._=xs}).call(l8)}(nu,nu.exports)),nu.exports}var Ge=c8();const wb="3.7.7",f8=wb,Ro=typeof Buffer=="function",Eb=typeof TextDecoder=="function"?new TextDecoder:void 0,Sb=typeof TextEncoder=="function"?new TextEncoder:void 0,ru=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),ql=(e=>{let t={};return e.forEach((n,r)=>t[n]=r),t})(ru),d8=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,wn=String.fromCharCode.bind(String),xb=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),Cb=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),Tb=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),Ob=e=>{let t,n,r,i,a="";const o=e.length%3;for(let u=0;u<e.length;){if((n=e.charCodeAt(u++))>255||(r=e.charCodeAt(u++))>255||(i=e.charCodeAt(u++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|i,a+=ru[t>>18&63]+ru[t>>12&63]+ru[t>>6&63]+ru[t&63]}return o?a.slice(0,o-3)+"===".substring(o):a},Sh=typeof btoa=="function"?e=>btoa(e):Ro?e=>Buffer.from(e,"binary").toString("base64"):Ob,xh=Ro?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let r=0,i=e.length;r<i;r+=4096)n.push(wn.apply(null,e.subarray(r,r+4096)));return Sh(n.join(""))},Ul=(e,t=!1)=>t?Cb(xh(e)):xh(e),h8=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?wn(192|t>>>6)+wn(128|t&63):wn(224|t>>>12&15)+wn(128|t>>>6&63)+wn(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return wn(240|t>>>18&7)+wn(128|t>>>12&63)+wn(128|t>>>6&63)+wn(128|t&63)}},p8=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,kb=e=>e.replace(p8,h8),Rb=Ro?e=>Buffer.from(e,"utf8").toString("base64"):Sb?e=>xh(Sb.encode(e)):e=>Sh(kb(e)),Ao=(e,t=!1)=>t?Cb(Rb(e)):Rb(e),Ab=e=>Ao(e,!0),v8=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,m8=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return wn((n>>>10)+55296)+wn((n&1023)+56320);case 3:return wn((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return wn((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Pb=e=>e.replace(v8,m8),Nb=e=>{if(e=e.replace(/\s+/g,""),!d8.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,n="",r,i;for(let a=0;a<e.length;)t=ql[e.charAt(a++)]<<18|ql[e.charAt(a++)]<<12|(r=ql[e.charAt(a++)])<<6|(i=ql[e.charAt(a++)]),n+=r===64?wn(t>>16&255):i===64?wn(t>>16&255,t>>8&255):wn(t>>16&255,t>>8&255,t&255);return n},Ch=typeof atob=="function"?e=>atob(Tb(e)):Ro?e=>Buffer.from(e,"base64").toString("binary"):Nb,Ib=Ro?e=>xb(Buffer.from(e,"base64")):e=>xb(Ch(e).split("").map(t=>t.charCodeAt(0))),Lb=e=>Ib(Fb(e)),g8=Ro?e=>Buffer.from(e,"base64").toString("utf8"):Eb?e=>Eb.decode(Ib(e)):e=>Pb(Ch(e)),Fb=e=>Tb(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),Th=e=>g8(Fb(e)),y8=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},Db=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),Mb=function(){const e=(t,n)=>Object.defineProperty(String.prototype,t,Db(n));e("fromBase64",function(){return Th(this)}),e("toBase64",function(t){return Ao(this,t)}),e("toBase64URI",function(){return Ao(this,!0)}),e("toBase64URL",function(){return Ao(this,!0)}),e("toUint8Array",function(){return Lb(this)})},jb=function(){const e=(t,n)=>Object.defineProperty(Uint8Array.prototype,t,Db(n));e("toBase64",function(t){return Ul(this,t)}),e("toBase64URI",function(){return Ul(this,!0)}),e("toBase64URL",function(){return Ul(this,!0)})},b8={version:wb,VERSION:f8,atob:Ch,atobPolyfill:Nb,btoa:Sh,btoaPolyfill:Ob,fromBase64:Th,toBase64:Ao,encode:Ao,encodeURI:Ab,encodeURL:Ab,utob:kb,btou:Pb,decode:Th,isValid:y8,fromUint8Array:Ul,toUint8Array:Lb,extendString:Mb,extendUint8Array:jb,extendBuiltins:()=>{Mb(),jb()}};var Oh={exports:{}},kh={exports:{}},$b;function _8(){return $b||($b=1,function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(n,r){return n<<r|n>>>32-r},rotr:function(n,r){return n<<32-r|n>>>r},endian:function(n){if(n.constructor==Number)return t.rotl(n,8)&16711935|t.rotl(n,24)&4278255360;for(var r=0;r<n.length;r++)n[r]=t.endian(n[r]);return n},randomBytes:function(n){for(var r=[];n>0;n--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(n){for(var r=[],i=0,a=0;i<n.length;i++,a+=8)r[a>>>5]|=n[i]<<24-a%32;return r},wordsToBytes:function(n){for(var r=[],i=0;i<n.length*32;i+=8)r.push(n[i>>>5]>>>24-i%32&255);return r},bytesToHex:function(n){for(var r=[],i=0;i<n.length;i++)r.push((n[i]>>>4).toString(16)),r.push((n[i]&15).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],i=0;i<n.length;i+=2)r.push(parseInt(n.substr(i,2),16));return r},bytesToBase64:function(n){for(var r=[],i=0;i<n.length;i+=3)for(var a=n[i]<<16|n[i+1]<<8|n[i+2],o=0;o<4;o++)i*8+o*6<=n.length*8?r.push(e.charAt(a>>>6*(3-o)&63)):r.push("=");return r.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],i=0,a=0;i<n.length;a=++i%4)a!=0&&r.push((e.indexOf(n.charAt(i-1))&Math.pow(2,-2*a+8)-1)<<a*2|e.indexOf(n.charAt(i))>>>6-a*2);return r}};kh.exports=t}()),kh.exports}var Rh,Vb;function qb(){if(Vb)return Rh;Vb=1;var e={utf8:{stringToBytes:function(t){return e.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(e.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var n=[],r=0;r<t.length;r++)n.push(t.charCodeAt(r)&255);return n},bytesToString:function(t){for(var n=[],r=0;r<t.length;r++)n.push(String.fromCharCode(t[r]));return n.join("")}}};return Rh=e,Rh}/*!
85
85
  * Determine if an object is a Buffer
86
86
  *
87
87
  * @author Feross Aboukhadijeh <https://feross.org>
@@ -90,47 +90,47 @@ function print() { __p += __j.call(arguments, '') }
90
90
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
91
91
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function q8(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Jb(e){var t=q8(e,"string");return typeof t=="symbol"?t:String(t)}var U8="3.8.0",z8=/^(?:[a-z\d\-_]{1,62}\.){0,125}(?:[a-z\d](?:\-(?=\-*[a-z\d])|[a-z]|\d){0,62}\.)[a-z\d]{1,63}$/i,e2=100,t2=8192,H8=.08,B8={1:75,2:50,3:35,4:23,5:20},W8=[1,2,3,4,5],G8={domain:null,useHTTPS:!0,includeLibraryParam:!0,urlPrefix:"https://",secureURLToken:null};function Fh(e){var t=e.url,n=t===void 0?"":t,r=e.useHttps,i=r===void 0?!1:r,a=i?"https://":"http://";return Wb(n,!0)?Ph(n):Fh({url:a+n})}function Q8(e){var t;e.widthTolerance!==void 0?(r2(e.widthTolerance),t=e.widthTolerance):t=H8;var n=e.minWidth===void 0?e2:e.minWidth,r=e.maxWidth===void 0?t2:e.maxWidth;return(n!=e2||r!=t2)&&n2(n,r),[t,n,r]}function n2(e,t){if(!(Number.isInteger(e)&&Number.isInteger(t))||e<=0||t<=0||e>t)throw new Error("The min and max srcset widths can only be passed positive Number values, and min must be less than max. Found min: ".concat(e," and max: ").concat(t,"."))}function r2(e){if(typeof e!="number"||e<.01)throw new Error("The srcset widthTolerance must be a number greater than or equal to 0.01")}function Y8(e){if(!Array.isArray(e)||!e.length)throw new Error("The widths argument can only be passed a valid non-empty array of integers");var t=e.every(function(n){return Number.isInteger(n)&&n>0});if(!t)throw new Error("A custom widths argument can only contain positive integer values")}function K8(e){if(typeof e!="boolean")throw new Error("The disableVariableQuality argument can only be passed a Boolean value")}function X8(e){if(!Array.isArray(e)||!e.length)throw new Error("The devicePixelRatios argument can only be passed a valid non-empty array of integers");var t=e.every(function(n){return typeof n=="number"&&n>=1&&n<=5});if(!t)throw new Error("The devicePixelRatios argument can only contain positive integer values between 1 and 5")}function Z8(e){if(Nh(e)!=="object")throw new Error("The variableQualities argument can only be an object")}var J8=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(I8(this,e),this.settings=On(On({},G8),t),this.targetWidthsCache={},typeof this.settings.domain!="string")throw new Error("ImgixClient must be passed a valid string domain");if(z8.exec(this.settings.domain)==null)throw new Error('Domain must be passed in as fully-qualified domain name and should not include a protocol or any path element, i.e. "example.imgix.net".');this.settings.includeLibraryParam&&(this.settings.libraryParam="js-"+e.version()),this.settings.urlPrefix=this.settings.useHTTPS?"https://":"http://"}return L8(e,[{key:"buildURL",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=this._sanitizePath(n,i),o=this._buildParams(r,i);return this.settings.secureURLToken&&(o=this._signParams(a,o)),this.settings.urlPrefix+this.settings.domain+a+o}},{key:"_buildParams",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=!!r.encoder,a=r.encoder,o=[].concat(Ih(this.settings.libraryParam?["ixlib=".concat(this.settings.libraryParam)]:[]),Ih(Object.entries(n).reduce(function(u,l){var f=Xb(l,2),d=f[0],h=f[1];if(h==null)return u;var p=i?a(d,h):encodeURIComponent(d),m=d.substr(-2)==="64"?i?a(h,d):b8.encodeURI(h):i?a(h,d):encodeURIComponent(h);return u.push("".concat(p,"=").concat(m)),u},[])));return"".concat(o.length>0?"?":"").concat(o.join("&"))}},{key:"_signParams",value:function(n,r){var i=this.settings.secureURLToken+n+r,a=x8(i);return r.length>0?r+"&s="+a:"?s="+a}},{key:"_sanitizePath",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.replace(/^\//,"");return r.disablePathEncoding||(r.encoder?i=r.encoder(i):/^https?:\/\//.test(i)?i=encodeURIComponent(i):i=encodeURI(i).replace(/[#?:+]/g,encodeURIComponent)),"/"+i}},{key:"buildSrcSet",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=r.w,o=r.h;return a||o?this._buildDPRSrcSet(n,r,i):this._buildSrcSetPairs(n,r,i)}},{key:"_buildSrcSetPairs",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=Q8(a),u=Xb(o,3),l=u[0],f=u[1],d=u[2],h;a.widths?(Y8(a.widths),h=Ih(a.widths)):h=e.targetWidths(f,d,l,this.targetWidthsCache);var p=h.map(function(m){return"".concat(r.buildURL(n,On(On({},i),{},{w:m}),a)," ").concat(m,"w")});return p.join(`,
92
92
  `)}},{key:"_buildDPRSrcSet",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};a.devicePixelRatios&&X8(a.devicePixelRatios);var o=a.devicePixelRatios||W8,u=a.disableVariableQuality||!1;u||K8(u),a.variableQualities&&Z8(a.variableQualities);var l=On(On({},B8),a.variableQualities),f=function(p,m,y){return"".concat(r.buildURL(p,On(On({},m),{},{dpr:y,q:m.q||l[y]||l[Math.floor(y)]}),a)," ").concat(y,"x")},d=u?o.map(function(h){return"".concat(r.buildURL(n,On(On({},i),{},{dpr:h}),a)," ").concat(h,"x")}):o.map(function(h){return f(n,i,h)});return d.join(`,
93
- `)}}],[{key:"version",value:function(){return U8}},{key:"_buildURL",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n==null)return"";var a=Fh({url:n,useHTTPS:i.useHTTPS}),o=a.host,u=a.pathname,l=a.search,f=On(On({},Gb(l)),r);if(!o.length||!u.length)throw new Error("_buildURL: URL must match {host}/{pathname}?{query}");var d=new e(On({domain:o},i));return d.buildURL(u,f)}},{key:"_buildSrcSet",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(n==null)return"";var o=Fh({url:n,useHTTPS:a.useHTTPS}),u=o.host,l=o.pathname,f=o.search,d=On(On({},Gb(f)),r);if(!u.length||!l.length)throw new Error("_buildOneStepURL: URL must match {host}/{pathname}?{query}");var h=new e(On({domain:u},a));return h.buildSrcSet(l,d,i)}},{key:"targetWidths",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:100,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:8192,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:.08,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=Math.floor(n),u=Math.floor(r);n2(n,r),r2(i);var l=i+"/"+o+"/"+u;if(l in a)return a[l];if(o===u)return[o];for(var f=[],d=o;d<u;)f.push(Math.round(d)),d*=1+i*2;return f[f.length-1]<u&&f.push(u),a[l]=f,f}}]),e}();const ek=async({fit:e,height:t,path:n,quality:r,rotate:i,width:a,needActualSize:o=!1})=>{try{return new J8({domain:`${Mh("cdnDomain")}-public.imgix.net`}).buildURL(n,{f:e,h:o?1:t,q:r,r:i,w:o?1:a})}catch(u){return console.log("+++ Error happened when building file URL, error:",u,"+++"),null}};tu.extend(s8);let Dh={};function Mh(e){return Dh[e]}function i2(e){Dh={...Dh,...e}}const jh=()=>Mh("apiBaseUrl"),a2=e=>{const{hostname:t}=window.location,n=e||t.split(".")[0];return t.replace(n,"")},tk=()=>typeof window<"u"?a2().replace(".",""):"",$h=()=>Xi.get("accessToken")||"",nk=()=>Xi.get("refreshToken")||"",Vh=()=>Xi.get("publicAccessToken")||Xi.get("easydesk_chat_widget_public_access_token")||"",qh=(e,t,n={})=>Xi.set(e,t,n),rk=(e,t={expires:1})=>{Object.keys(e).map(n=>{const r=e[n];r&&qh(n,r,t)})},ik=async()=>{try{const e=$h(),t=nk();if(!(e&&t))return!1;const n=await z2().post("/auth/refresh-token",{access_token:e,refresh_token:t}),{data:r}=(n==null?void 0:n.data)||{};if(!(r!=null&&r.access_token))return handleLogOut(),!1;const i=a2(sub_domain),a=tk();return rk({[`${a}_access_token`]:r==null?void 0:r.access_token,[`${a}_refresh_token`]:r==null?void 0:r.refresh_token},{domain:i,expires:30}),!0}catch{return!1}},Uh=e=>/^[\w%\+\-]+(\.[\w%\+\-]+)*@[\w%\+\-]+(\.[\w%\+\-]+)+$/.test(e),zh=(e,t,n="")=>{let r="";return e&&(r=e),t&&(r=`${r} ${t}`),!r&&n&&(r=n),r},Po=(e,t,n)=>e&&t?iu(e)+iu(t):e?e.length>1?iu(e)+e.charAt(1).toUpperCase():iu(e):n?iu(n):"",ak="IMAGE_KEY",ok=async e=>{const t=new DOMParser().parseFromString(e,"text/html"),n=t.querySelectorAll(`.${ak}`);for(const r of n){const i=await ek({path:r.innerHTML,fit:"scale",needActualSize:!0,quality:100});if(i){const a=document.createElement("img");a.src=i,a.classList.add("cursor-pointer"),a.setAttribute("data-key",r.innerHTML),r.replaceWith(a)}}return t.body.innerHTML},iu=e=>(e==null?void 0:e.charAt(0).toUpperCase())||"",Hh=["info","success","warning","error","default"],Wt=(e,t,n,r,i={autoClose:1e4})=>{Hh!=null&&Hh.includes(e)?Ft[e](t,{position:n,toastId:r,...i}):Ft(t||"Default Toast",{position:n,toastId:r,...i})};function o2(e,t){return function(){return e.apply(t,arguments)}}const{toString:sk}=Object.prototype,{getPrototypeOf:Bh}=Object,{iterator:zl,toStringTag:s2}=Symbol,Hl=(e=>t=>{const n=sk.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Hr=e=>(e=e.toLowerCase(),t=>Hl(t)===e),Bl=e=>t=>typeof t===e,{isArray:No}=Array,au=Bl("undefined");function uk(e){return e!==null&&!au(e)&&e.constructor!==null&&!au(e.constructor)&&Bn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const u2=Hr("ArrayBuffer");function lk(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&u2(e.buffer),t}const ck=Bl("string"),Bn=Bl("function"),l2=Bl("number"),Wl=e=>e!==null&&typeof e=="object",fk=e=>e===!0||e===!1,Gl=e=>{if(Hl(e)!=="object")return!1;const t=Bh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(s2 in e)&&!(zl in e)},dk=Hr("Date"),hk=Hr("File"),pk=Hr("Blob"),vk=Hr("FileList"),mk=e=>Wl(e)&&Bn(e.pipe),gk=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Bn(e.append)&&((t=Hl(e))==="formdata"||t==="object"&&Bn(e.toString)&&e.toString()==="[object FormData]"))},yk=Hr("URLSearchParams"),[bk,_k,wk,Ek]=["ReadableStream","Request","Response","Headers"].map(Hr),Sk=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ou(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),No(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let u;for(r=0;r<o;r++)u=a[r],t.call(null,e[u],u,e)}}function c2(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Pa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,f2=e=>!au(e)&&e!==Pa;function Wh(){const{caseless:e}=f2(this)&&this||{},t={},n=(r,i)=>{const a=e&&c2(t,i)||i;Gl(t[a])&&Gl(r)?t[a]=Wh(t[a],r):Gl(r)?t[a]=Wh({},r):No(r)?t[a]=r.slice():t[a]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&ou(arguments[r],n);return t}const xk=(e,t,n,{allOwnKeys:r}={})=>(ou(t,(i,a)=>{n&&Bn(i)?e[a]=o2(i,n):e[a]=i},{allOwnKeys:r}),e),Ck=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Tk=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Ok=(e,t,n,r)=>{let i,a,o;const u={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!u[o]&&(t[o]=e[o],u[o]=!0);e=n!==!1&&Bh(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kk=(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},Rk=e=>{if(!e)return null;if(No(e))return e;let t=e.length;if(!l2(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Ak=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Bh(Uint8Array)),Pk=(e,t)=>{const r=(e&&e[zl]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},Nk=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Ik=Hr("HTMLFormElement"),Lk=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),d2=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Fk=Hr("RegExp"),h2=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ou(n,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(r[a]=o||i)}),Object.defineProperties(e,r)},Dk=e=>{h2(e,(t,n)=>{if(Bn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Bn(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+"'")})}})},Mk=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return No(e)?r(e):r(String(e).split(t)),n},jk=()=>{},$k=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Vk(e){return!!(e&&Bn(e.append)&&e[s2]==="FormData"&&e[zl])}const qk=e=>{const t=new Array(10),n=(r,i)=>{if(Wl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const a=No(r)?[]:{};return ou(r,(o,u)=>{const l=n(o,i+1);!au(l)&&(a[u]=l)}),t[i]=void 0,a}}return r};return n(e,0)},Uk=Hr("AsyncFunction"),zk=e=>e&&(Wl(e)||Bn(e))&&Bn(e.then)&&Bn(e.catch),p2=((e,t)=>e?setImmediate:t?((n,r)=>(Pa.addEventListener("message",({source:i,data:a})=>{i===Pa&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Pa.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Bn(Pa.postMessage)),Hk=typeof queueMicrotask<"u"?queueMicrotask.bind(Pa):typeof process<"u"&&process.nextTick||p2,se={isArray:No,isArrayBuffer:u2,isBuffer:uk,isFormData:gk,isArrayBufferView:lk,isString:ck,isNumber:l2,isBoolean:fk,isObject:Wl,isPlainObject:Gl,isReadableStream:bk,isRequest:_k,isResponse:wk,isHeaders:Ek,isUndefined:au,isDate:dk,isFile:hk,isBlob:pk,isRegExp:Fk,isFunction:Bn,isStream:mk,isURLSearchParams:yk,isTypedArray:Ak,isFileList:vk,forEach:ou,merge:Wh,extend:xk,trim:Sk,stripBOM:Ck,inherits:Tk,toFlatObject:Ok,kindOf:Hl,kindOfTest:Hr,endsWith:kk,toArray:Rk,forEachEntry:Pk,matchAll:Nk,isHTMLForm:Ik,hasOwnProperty:d2,hasOwnProp:d2,reduceDescriptors:h2,freezeMethods:Dk,toObjectSet:Mk,toCamelCase:Lk,noop:jk,toFiniteNumber:$k,findKey:c2,global:Pa,isContextDefined:f2,isSpecCompliantForm:Vk,toJSONObject:qk,isAsyncFn:Uk,isThenable:zk,setImmediate:p2,asap:Hk,isIterable:e=>e!=null&&Bn(e[zl])};function Ke(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}se.inherits(Ke,Error,{toJSON:function(){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:se.toJSONObject(this.config),code:this.code,status:this.status}}});const v2=Ke.prototype,m2={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{m2[e]={value:e}}),Object.defineProperties(Ke,m2),Object.defineProperty(v2,"isAxiosError",{value:!0}),Ke.from=(e,t,n,r,i,a)=>{const o=Object.create(v2);return se.toFlatObject(e,o,function(l){return l!==Error.prototype},u=>u!=="isAxiosError"),Ke.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const Bk=null;function Gh(e){return se.isPlainObject(e)||se.isArray(e)}function g2(e){return se.endsWith(e,"[]")?e.slice(0,-2):e}function y2(e,t,n){return e?e.concat(t).map(function(i,a){return i=g2(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function Wk(e){return se.isArray(e)&&!e.some(Gh)}const Gk=se.toFlatObject(se,{},null,function(t){return/^is[A-Z]/.test(t)});function Ql(e,t,n){if(!se.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=se.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,b){return!se.isUndefined(b[g])});const r=n.metaTokens,i=n.visitor||d,a=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&se.isSpecCompliantForm(t);if(!se.isFunction(i))throw new TypeError("visitor must be a function");function f(y){if(y===null)return"";if(se.isDate(y))return y.toISOString();if(!l&&se.isBlob(y))throw new Ke("Blob is not supported. Use a Buffer instead.");return se.isArrayBuffer(y)||se.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,g,b){let w=y;if(y&&!b&&typeof y=="object"){if(se.endsWith(g,"{}"))g=r?g:g.slice(0,-2),y=JSON.stringify(y);else if(se.isArray(y)&&Wk(y)||(se.isFileList(y)||se.endsWith(g,"[]"))&&(w=se.toArray(y)))return g=g2(g),w.forEach(function(C,T){!(se.isUndefined(C)||C===null)&&t.append(o===!0?y2([g],T,a):o===null?g:g+"[]",f(C))}),!1}return Gh(y)?!0:(t.append(y2(b,g,a),f(y)),!1)}const h=[],p=Object.assign(Gk,{defaultVisitor:d,convertValue:f,isVisitable:Gh});function m(y,g){if(!se.isUndefined(y)){if(h.indexOf(y)!==-1)throw Error("Circular reference detected in "+g.join("."));h.push(y),se.forEach(y,function(w,S){(!(se.isUndefined(w)||w===null)&&i.call(t,w,se.isString(S)?S.trim():S,g,p))===!0&&m(w,g?g.concat(S):[S])}),h.pop()}}if(!se.isObject(e))throw new TypeError("data must be an object");return m(e),t}function b2(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Qh(e,t){this._pairs=[],e&&Ql(e,this,t)}const _2=Qh.prototype;_2.append=function(t,n){this._pairs.push([t,n])},_2.toString=function(t){const n=t?function(r){return t.call(this,r,b2)}:b2;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Qk(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function w2(e,t,n){if(!t)return e;const r=n&&n.encode||Qk;se.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let a;if(i?a=i(t,n):a=se.isURLSearchParams(t)?t.toString():new Qh(t,n).toString(r),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class E2{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){se.forEach(this.handlers,function(r){r!==null&&t(r)})}}const S2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Yk={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Qh,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Yh=typeof window<"u"&&typeof document<"u",Kh=typeof navigator=="object"&&navigator||void 0,Kk=Yh&&(!Kh||["ReactNative","NativeScript","NS"].indexOf(Kh.product)<0),Xk=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Zk=Yh&&window.location.href||"http://localhost",kn={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Yh,hasStandardBrowserEnv:Kk,hasStandardBrowserWebWorkerEnv:Xk,navigator:Kh,origin:Zk},Symbol.toStringTag,{value:"Module"})),...Yk};function Jk(e,t){return Ql(e,new kn.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return kn.isNode&&se.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function e3(e){return se.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function t3(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function x2(e){function t(n,r,i,a){let o=n[a++];if(o==="__proto__")return!0;const u=Number.isFinite(+o),l=a>=n.length;return o=!o&&se.isArray(i)?i.length:o,l?(se.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!u):((!i[o]||!se.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],a)&&se.isArray(i[o])&&(i[o]=t3(i[o])),!u)}if(se.isFormData(e)&&se.isFunction(e.entries)){const n={};return se.forEachEntry(e,(r,i)=>{t(e3(r),i,n,0)}),n}return null}function n3(e,t,n){if(se.isString(e))try{return(t||JSON.parse)(e),se.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const su={transitional:S2,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=se.isObject(t);if(a&&se.isHTMLForm(t)&&(t=new FormData(t)),se.isFormData(t))return i?JSON.stringify(x2(t)):t;if(se.isArrayBuffer(t)||se.isBuffer(t)||se.isStream(t)||se.isFile(t)||se.isBlob(t)||se.isReadableStream(t))return t;if(se.isArrayBufferView(t))return t.buffer;if(se.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Jk(t,this.formSerializer).toString();if((u=se.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ql(u?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),n3(t)):t}],transformResponse:[function(t){const n=this.transitional||su.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(se.isResponse(t)||se.isReadableStream(t))return t;if(t&&se.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(u){if(o)throw u.name==="SyntaxError"?Ke.from(u,Ke.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:kn.classes.FormData,Blob:kn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};se.forEach(["delete","get","head","post","put","patch"],e=>{su.headers[e]={}});const r3=se.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"]),i3=e=>{const t={};let n,r,i;return e&&e.split(`
93
+ `)}}],[{key:"version",value:function(){return U8}},{key:"_buildURL",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n==null)return"";var a=Fh({url:n,useHTTPS:i.useHTTPS}),o=a.host,u=a.pathname,l=a.search,f=On(On({},Gb(l)),r);if(!o.length||!u.length)throw new Error("_buildURL: URL must match {host}/{pathname}?{query}");var d=new e(On({domain:o},i));return d.buildURL(u,f)}},{key:"_buildSrcSet",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(n==null)return"";var o=Fh({url:n,useHTTPS:a.useHTTPS}),u=o.host,l=o.pathname,f=o.search,d=On(On({},Gb(f)),r);if(!u.length||!l.length)throw new Error("_buildOneStepURL: URL must match {host}/{pathname}?{query}");var h=new e(On({domain:u},a));return h.buildSrcSet(l,d,i)}},{key:"targetWidths",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:100,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:8192,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:.08,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=Math.floor(n),u=Math.floor(r);n2(n,r),r2(i);var l=i+"/"+o+"/"+u;if(l in a)return a[l];if(o===u)return[o];for(var f=[],d=o;d<u;)f.push(Math.round(d)),d*=1+i*2;return f[f.length-1]<u&&f.push(u),a[l]=f,f}}]),e}();const ek=async({fit:e,height:t,path:n,quality:r,rotate:i,width:a,needActualSize:o=!1})=>{try{return new J8({domain:`${Mh("cdnDomain")}-public.imgix.net`}).buildURL(n,{f:e,h:o?1:t,q:r,r:i,w:o?1:a})}catch(u){return console.log("+++ Error happened when building file URL, error:",u,"+++"),null}};tu.extend(s8);let Dh={};function Mh(e){return Dh[e]}function i2(e){Dh={...Dh,...e}}const jh=()=>Mh("apiBaseUrl"),a2=e=>{const{hostname:t}=window.location,n=e||t.split(".")[0];return t.replace(n,"")},tk=()=>typeof window<"u"?a2().replace(".",""):"",$h=()=>Xi.get("accessToken")||"",nk=()=>Xi.get("refreshToken")||"",Vh=()=>Xi.get("publicAccessToken")||Xi.get("easydesk_chat_widget_public_access_token")||"",qh=(e,t,n={})=>Xi.set(e,t,n),rk=(e,t={expires:1})=>{Object.keys(e).map(n=>{const r=e[n];r&&qh(n,r,t)})},ik=async()=>{try{const e=$h(),t=nk();if(!(e&&t))return!1;const n=await z2().post("/auth/refresh-token",{access_token:e,refresh_token:t}),{data:r}=(n==null?void 0:n.data)||{};if(!(r!=null&&r.access_token))return handleLogOut(),!1;const i=a2(sub_domain),a=tk();return rk({[`${a}_access_token`]:r==null?void 0:r.access_token,[`${a}_refresh_token`]:r==null?void 0:r.refresh_token},{domain:i,expires:30}),!0}catch{return!1}},Uh=e=>/^[\w%\+\-]+(\.[\w%\+\-]+)*@[\w%\+\-]+(\.[\w%\+\-]+)+$/.test(e),zh=(e,t,n="")=>{let r="";return e&&(r=e),t&&(r=`${r} ${t}`),!r&&n&&(r=n),r},Po=(e,t,n)=>e&&t?iu(e)+iu(t):e?e.length>1?iu(e)+e.charAt(1).toUpperCase():iu(e):n?iu(n):"",ak="IMAGE_KEY",ok=async e=>{const t=new DOMParser().parseFromString(e,"text/html"),n=t.querySelectorAll(`.${ak}`);for(const r of n){const i=await ek({path:r.innerHTML,fit:"scale",needActualSize:!0,quality:100});if(i){const a=document.createElement("img");a.src=i,a.classList.add("cursor-pointer"),a.setAttribute("data-key",r.innerHTML),r.replaceWith(a)}}return t.body.innerHTML},iu=e=>(e==null?void 0:e.charAt(0).toUpperCase())||"",Hh=["info","success","warning","error","default"],Wt=(e,t,n,r,i={autoClose:1e4})=>{Hh!=null&&Hh.includes(e)?It[e](t,{position:n,toastId:r,...i}):It(t||"Default Toast",{position:n,toastId:r,...i})};function o2(e,t){return function(){return e.apply(t,arguments)}}const{toString:sk}=Object.prototype,{getPrototypeOf:Bh}=Object,{iterator:zl,toStringTag:s2}=Symbol,Hl=(e=>t=>{const n=sk.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Hr=e=>(e=e.toLowerCase(),t=>Hl(t)===e),Bl=e=>t=>typeof t===e,{isArray:No}=Array,au=Bl("undefined");function uk(e){return e!==null&&!au(e)&&e.constructor!==null&&!au(e.constructor)&&Bn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const u2=Hr("ArrayBuffer");function lk(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&u2(e.buffer),t}const ck=Bl("string"),Bn=Bl("function"),l2=Bl("number"),Wl=e=>e!==null&&typeof e=="object",fk=e=>e===!0||e===!1,Gl=e=>{if(Hl(e)!=="object")return!1;const t=Bh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(s2 in e)&&!(zl in e)},dk=Hr("Date"),hk=Hr("File"),pk=Hr("Blob"),vk=Hr("FileList"),mk=e=>Wl(e)&&Bn(e.pipe),gk=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Bn(e.append)&&((t=Hl(e))==="formdata"||t==="object"&&Bn(e.toString)&&e.toString()==="[object FormData]"))},yk=Hr("URLSearchParams"),[bk,_k,wk,Ek]=["ReadableStream","Request","Response","Headers"].map(Hr),Sk=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ou(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),No(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let u;for(r=0;r<o;r++)u=a[r],t.call(null,e[u],u,e)}}function c2(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Pa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,f2=e=>!au(e)&&e!==Pa;function Wh(){const{caseless:e}=f2(this)&&this||{},t={},n=(r,i)=>{const a=e&&c2(t,i)||i;Gl(t[a])&&Gl(r)?t[a]=Wh(t[a],r):Gl(r)?t[a]=Wh({},r):No(r)?t[a]=r.slice():t[a]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&ou(arguments[r],n);return t}const xk=(e,t,n,{allOwnKeys:r}={})=>(ou(t,(i,a)=>{n&&Bn(i)?e[a]=o2(i,n):e[a]=i},{allOwnKeys:r}),e),Ck=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Tk=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Ok=(e,t,n,r)=>{let i,a,o;const u={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!u[o]&&(t[o]=e[o],u[o]=!0);e=n!==!1&&Bh(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kk=(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},Rk=e=>{if(!e)return null;if(No(e))return e;let t=e.length;if(!l2(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Ak=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Bh(Uint8Array)),Pk=(e,t)=>{const r=(e&&e[zl]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},Nk=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Ik=Hr("HTMLFormElement"),Lk=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),d2=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Fk=Hr("RegExp"),h2=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ou(n,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(r[a]=o||i)}),Object.defineProperties(e,r)},Dk=e=>{h2(e,(t,n)=>{if(Bn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Bn(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+"'")})}})},Mk=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return No(e)?r(e):r(String(e).split(t)),n},jk=()=>{},$k=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Vk(e){return!!(e&&Bn(e.append)&&e[s2]==="FormData"&&e[zl])}const qk=e=>{const t=new Array(10),n=(r,i)=>{if(Wl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const a=No(r)?[]:{};return ou(r,(o,u)=>{const l=n(o,i+1);!au(l)&&(a[u]=l)}),t[i]=void 0,a}}return r};return n(e,0)},Uk=Hr("AsyncFunction"),zk=e=>e&&(Wl(e)||Bn(e))&&Bn(e.then)&&Bn(e.catch),p2=((e,t)=>e?setImmediate:t?((n,r)=>(Pa.addEventListener("message",({source:i,data:a})=>{i===Pa&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Pa.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Bn(Pa.postMessage)),Hk=typeof queueMicrotask<"u"?queueMicrotask.bind(Pa):typeof process<"u"&&process.nextTick||p2,se={isArray:No,isArrayBuffer:u2,isBuffer:uk,isFormData:gk,isArrayBufferView:lk,isString:ck,isNumber:l2,isBoolean:fk,isObject:Wl,isPlainObject:Gl,isReadableStream:bk,isRequest:_k,isResponse:wk,isHeaders:Ek,isUndefined:au,isDate:dk,isFile:hk,isBlob:pk,isRegExp:Fk,isFunction:Bn,isStream:mk,isURLSearchParams:yk,isTypedArray:Ak,isFileList:vk,forEach:ou,merge:Wh,extend:xk,trim:Sk,stripBOM:Ck,inherits:Tk,toFlatObject:Ok,kindOf:Hl,kindOfTest:Hr,endsWith:kk,toArray:Rk,forEachEntry:Pk,matchAll:Nk,isHTMLForm:Ik,hasOwnProperty:d2,hasOwnProp:d2,reduceDescriptors:h2,freezeMethods:Dk,toObjectSet:Mk,toCamelCase:Lk,noop:jk,toFiniteNumber:$k,findKey:c2,global:Pa,isContextDefined:f2,isSpecCompliantForm:Vk,toJSONObject:qk,isAsyncFn:Uk,isThenable:zk,setImmediate:p2,asap:Hk,isIterable:e=>e!=null&&Bn(e[zl])};function Ke(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}se.inherits(Ke,Error,{toJSON:function(){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:se.toJSONObject(this.config),code:this.code,status:this.status}}});const v2=Ke.prototype,m2={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{m2[e]={value:e}}),Object.defineProperties(Ke,m2),Object.defineProperty(v2,"isAxiosError",{value:!0}),Ke.from=(e,t,n,r,i,a)=>{const o=Object.create(v2);return se.toFlatObject(e,o,function(l){return l!==Error.prototype},u=>u!=="isAxiosError"),Ke.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const Bk=null;function Gh(e){return se.isPlainObject(e)||se.isArray(e)}function g2(e){return se.endsWith(e,"[]")?e.slice(0,-2):e}function y2(e,t,n){return e?e.concat(t).map(function(i,a){return i=g2(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function Wk(e){return se.isArray(e)&&!e.some(Gh)}const Gk=se.toFlatObject(se,{},null,function(t){return/^is[A-Z]/.test(t)});function Ql(e,t,n){if(!se.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=se.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,b){return!se.isUndefined(b[g])});const r=n.metaTokens,i=n.visitor||d,a=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&se.isSpecCompliantForm(t);if(!se.isFunction(i))throw new TypeError("visitor must be a function");function f(y){if(y===null)return"";if(se.isDate(y))return y.toISOString();if(!l&&se.isBlob(y))throw new Ke("Blob is not supported. Use a Buffer instead.");return se.isArrayBuffer(y)||se.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,g,b){let w=y;if(y&&!b&&typeof y=="object"){if(se.endsWith(g,"{}"))g=r?g:g.slice(0,-2),y=JSON.stringify(y);else if(se.isArray(y)&&Wk(y)||(se.isFileList(y)||se.endsWith(g,"[]"))&&(w=se.toArray(y)))return g=g2(g),w.forEach(function(C,T){!(se.isUndefined(C)||C===null)&&t.append(o===!0?y2([g],T,a):o===null?g:g+"[]",f(C))}),!1}return Gh(y)?!0:(t.append(y2(b,g,a),f(y)),!1)}const h=[],p=Object.assign(Gk,{defaultVisitor:d,convertValue:f,isVisitable:Gh});function m(y,g){if(!se.isUndefined(y)){if(h.indexOf(y)!==-1)throw Error("Circular reference detected in "+g.join("."));h.push(y),se.forEach(y,function(w,S){(!(se.isUndefined(w)||w===null)&&i.call(t,w,se.isString(S)?S.trim():S,g,p))===!0&&m(w,g?g.concat(S):[S])}),h.pop()}}if(!se.isObject(e))throw new TypeError("data must be an object");return m(e),t}function b2(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Qh(e,t){this._pairs=[],e&&Ql(e,this,t)}const _2=Qh.prototype;_2.append=function(t,n){this._pairs.push([t,n])},_2.toString=function(t){const n=t?function(r){return t.call(this,r,b2)}:b2;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Qk(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function w2(e,t,n){if(!t)return e;const r=n&&n.encode||Qk;se.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let a;if(i?a=i(t,n):a=se.isURLSearchParams(t)?t.toString():new Qh(t,n).toString(r),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class E2{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){se.forEach(this.handlers,function(r){r!==null&&t(r)})}}const S2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Yk={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Qh,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Yh=typeof window<"u"&&typeof document<"u",Kh=typeof navigator=="object"&&navigator||void 0,Kk=Yh&&(!Kh||["ReactNative","NativeScript","NS"].indexOf(Kh.product)<0),Xk=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Zk=Yh&&window.location.href||"http://localhost",kn={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Yh,hasStandardBrowserEnv:Kk,hasStandardBrowserWebWorkerEnv:Xk,navigator:Kh,origin:Zk},Symbol.toStringTag,{value:"Module"})),...Yk};function Jk(e,t){return Ql(e,new kn.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return kn.isNode&&se.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function e3(e){return se.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function t3(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function x2(e){function t(n,r,i,a){let o=n[a++];if(o==="__proto__")return!0;const u=Number.isFinite(+o),l=a>=n.length;return o=!o&&se.isArray(i)?i.length:o,l?(se.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!u):((!i[o]||!se.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],a)&&se.isArray(i[o])&&(i[o]=t3(i[o])),!u)}if(se.isFormData(e)&&se.isFunction(e.entries)){const n={};return se.forEachEntry(e,(r,i)=>{t(e3(r),i,n,0)}),n}return null}function n3(e,t,n){if(se.isString(e))try{return(t||JSON.parse)(e),se.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const su={transitional:S2,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=se.isObject(t);if(a&&se.isHTMLForm(t)&&(t=new FormData(t)),se.isFormData(t))return i?JSON.stringify(x2(t)):t;if(se.isArrayBuffer(t)||se.isBuffer(t)||se.isStream(t)||se.isFile(t)||se.isBlob(t)||se.isReadableStream(t))return t;if(se.isArrayBufferView(t))return t.buffer;if(se.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Jk(t,this.formSerializer).toString();if((u=se.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ql(u?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),n3(t)):t}],transformResponse:[function(t){const n=this.transitional||su.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(se.isResponse(t)||se.isReadableStream(t))return t;if(t&&se.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(u){if(o)throw u.name==="SyntaxError"?Ke.from(u,Ke.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:kn.classes.FormData,Blob:kn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};se.forEach(["delete","get","head","post","put","patch"],e=>{su.headers[e]={}});const r3=se.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"]),i3=e=>{const t={};let n,r,i;return e&&e.split(`
94
94
  `).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&r3[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},C2=Symbol("internals");function uu(e){return e&&String(e).trim().toLowerCase()}function Yl(e){return e===!1||e==null?e:se.isArray(e)?e.map(Yl):String(e)}function a3(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 o3=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Xh(e,t,n,r,i){if(se.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!se.isString(t)){if(se.isString(r))return t.indexOf(r)!==-1;if(se.isRegExp(r))return r.test(t)}}function s3(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function u3(e,t){const n=se.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,o){return this[r].call(this,t,i,a,o)},configurable:!0})})}let Wn=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(u,l,f){const d=uu(l);if(!d)throw new Error("header name must be a non-empty string");const h=se.findKey(i,d);(!h||i[h]===void 0||f===!0||f===void 0&&i[h]!==!1)&&(i[h||l]=Yl(u))}const o=(u,l)=>se.forEach(u,(f,d)=>a(f,d,l));if(se.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(se.isString(t)&&(t=t.trim())&&!o3(t))o(i3(t),n);else if(se.isObject(t)&&se.isIterable(t)){let u={},l,f;for(const d of t){if(!se.isArray(d))throw TypeError("Object iterator must return a key-value pair");u[f=d[0]]=(l=u[f])?se.isArray(l)?[...l,d[1]]:[l,d[1]]:d[1]}o(u,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=uu(t),t){const r=se.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return a3(i);if(se.isFunction(n))return n.call(this,i,r);if(se.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=uu(t),t){const r=se.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Xh(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(o){if(o=uu(o),o){const u=se.findKey(r,o);u&&(!n||Xh(r,r[u],u,n))&&(delete r[u],i=!0)}}return se.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||Xh(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return se.forEach(this,(i,a)=>{const o=se.findKey(r,a);if(o){n[o]=Yl(i),delete n[a];return}const u=t?s3(a):String(a).trim();u!==a&&delete n[a],n[u]=Yl(i),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return se.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&se.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(`
95
95
  `)}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(i=>r.set(i)),r}static accessor(t){const r=(this[C2]=this[C2]={accessors:{}}).accessors,i=this.prototype;function a(o){const u=uu(o);r[u]||(u3(i,o),r[u]=!0)}return se.isArray(t)?t.forEach(a):a(t),this}};Wn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),se.reduceDescriptors(Wn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),se.freezeMethods(Wn);function Zh(e,t){const n=this||su,r=t||n,i=Wn.from(r.headers);let a=r.data;return se.forEach(e,function(u){a=u.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function T2(e){return!!(e&&e.__CANCEL__)}function Io(e,t,n){Ke.call(this,e??"canceled",Ke.ERR_CANCELED,t,n),this.name="CanceledError"}se.inherits(Io,Ke,{__CANCEL__:!0});function O2(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ke("Request failed with status code "+n.status,[Ke.ERR_BAD_REQUEST,Ke.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function l3(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function c3(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const f=Date.now(),d=r[a];o||(o=f),n[i]=l,r[i]=f;let h=a,p=0;for(;h!==i;)p+=n[h++],h=h%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),f-o<t)return;const m=d&&f-d;return m?Math.round(p*1e3/m):void 0}}function f3(e,t){let n=0,r=1e3/t,i,a;const o=(f,d=Date.now())=>{n=d,i=null,a&&(clearTimeout(a),a=null),e.apply(null,f)};return[(...f)=>{const d=Date.now(),h=d-n;h>=r?o(f,d):(i=f,a||(a=setTimeout(()=>{a=null,o(i)},r-h)))},()=>i&&o(i)]}const Kl=(e,t,n=3)=>{let r=0;const i=c3(50,250);return f3(a=>{const o=a.loaded,u=a.lengthComputable?a.total:void 0,l=o-r,f=i(l),d=o<=u;r=o;const h={loaded:o,total:u,progress:u?o/u:void 0,bytes:l,rate:f||void 0,estimated:f&&u&&d?(u-o)/f:void 0,event:a,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(h)},n)},k2=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},R2=e=>(...t)=>se.asap(()=>e(...t)),d3=kn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,kn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(kn.origin),kn.navigator&&/(msie|trident)/i.test(kn.navigator.userAgent)):()=>!0,h3=kn.hasStandardBrowserEnv?{write(e,t,n,r,i,a){const o=[e+"="+encodeURIComponent(t)];se.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),se.isString(r)&&o.push("path="+r),se.isString(i)&&o.push("domain="+i),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function p3(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function v3(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function A2(e,t,n){let r=!p3(t);return e&&(r||n==!1)?v3(e,t):t}const P2=e=>e instanceof Wn?{...e}:e;function Na(e,t){t=t||{};const n={};function r(f,d,h,p){return se.isPlainObject(f)&&se.isPlainObject(d)?se.merge.call({caseless:p},f,d):se.isPlainObject(d)?se.merge({},d):se.isArray(d)?d.slice():d}function i(f,d,h,p){if(se.isUndefined(d)){if(!se.isUndefined(f))return r(void 0,f,h,p)}else return r(f,d,h,p)}function a(f,d){if(!se.isUndefined(d))return r(void 0,d)}function o(f,d){if(se.isUndefined(d)){if(!se.isUndefined(f))return r(void 0,f)}else return r(void 0,d)}function u(f,d,h){if(h in t)return r(f,d);if(h in e)return r(void 0,f)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u,headers:(f,d,h)=>i(P2(f),P2(d),h,!0)};return se.forEach(Object.keys(Object.assign({},e,t)),function(d){const h=l[d]||i,p=h(e[d],t[d],d);se.isUndefined(p)&&h!==u||(n[d]=p)}),n}const N2=e=>{const t=Na({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:u}=t;t.headers=o=Wn.from(o),t.url=w2(A2(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&o.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let l;if(se.isFormData(n)){if(kn.hasStandardBrowserEnv||kn.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[f,...d]=l?l.split(";").map(h=>h.trim()).filter(Boolean):[];o.setContentType([f||"multipart/form-data",...d].join("; "))}}if(kn.hasStandardBrowserEnv&&(r&&se.isFunction(r)&&(r=r(t)),r||r!==!1&&d3(t.url))){const f=i&&a&&h3.read(a);f&&o.set(i,f)}return t},m3=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const i=N2(e);let a=i.data;const o=Wn.from(i.headers).normalize();let{responseType:u,onUploadProgress:l,onDownloadProgress:f}=i,d,h,p,m,y;function g(){m&&m(),y&&y(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let b=new XMLHttpRequest;b.open(i.method.toUpperCase(),i.url,!0),b.timeout=i.timeout;function w(){if(!b)return;const C=Wn.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),_={data:!u||u==="text"||u==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:C,config:e,request:b};O2(function(k){n(k),g()},function(k){r(k),g()},_),b=null}"onloadend"in b?b.onloadend=w:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(w)},b.onabort=function(){b&&(r(new Ke("Request aborted",Ke.ECONNABORTED,e,b)),b=null)},b.onerror=function(){r(new Ke("Network Error",Ke.ERR_NETWORK,e,b)),b=null},b.ontimeout=function(){let T=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const _=i.transitional||S2;i.timeoutErrorMessage&&(T=i.timeoutErrorMessage),r(new Ke(T,_.clarifyTimeoutError?Ke.ETIMEDOUT:Ke.ECONNABORTED,e,b)),b=null},a===void 0&&o.setContentType(null),"setRequestHeader"in b&&se.forEach(o.toJSON(),function(T,_){b.setRequestHeader(_,T)}),se.isUndefined(i.withCredentials)||(b.withCredentials=!!i.withCredentials),u&&u!=="json"&&(b.responseType=i.responseType),f&&([p,y]=Kl(f,!0),b.addEventListener("progress",p)),l&&b.upload&&([h,m]=Kl(l),b.upload.addEventListener("progress",h),b.upload.addEventListener("loadend",m)),(i.cancelToken||i.signal)&&(d=C=>{b&&(r(!C||C.type?new Io(null,e,b):C),b.abort(),b=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const S=l3(i.url);if(S&&kn.protocols.indexOf(S)===-1){r(new Ke("Unsupported protocol "+S+":",Ke.ERR_BAD_REQUEST,e));return}b.send(a||null)})},g3=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const a=function(f){if(!i){i=!0,u();const d=f instanceof Error?f:this.reason;r.abort(d instanceof Ke?d:new Io(d instanceof Error?d.message:d))}};let o=t&&setTimeout(()=>{o=null,a(new Ke(`timeout ${t} of ms exceeded`,Ke.ETIMEDOUT))},t);const u=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(a):f.removeEventListener("abort",a)}),e=null)};e.forEach(f=>f.addEventListener("abort",a));const{signal:l}=r;return l.unsubscribe=()=>se.asap(u),l}},y3=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},b3=async function*(e,t){for await(const n of _3(e))yield*y3(n,t)},_3=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},I2=(e,t,n,r)=>{const i=b3(e,t);let a=0,o,u=l=>{o||(o=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:f,value:d}=await i.next();if(f){u(),l.close();return}let h=d.byteLength;if(n){let p=a+=h;n(p)}l.enqueue(new Uint8Array(d))}catch(f){throw u(f),f}},cancel(l){return u(l),i.return()}},{highWaterMark:2})},Xl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",L2=Xl&&typeof ReadableStream=="function",w3=Xl&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),F2=(e,...t)=>{try{return!!e(...t)}catch{return!1}},E3=L2&&F2(()=>{let e=!1;const t=new Request(kn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),D2=64*1024,Jh=L2&&F2(()=>se.isReadableStream(new Response("").body)),Zl={stream:Jh&&(e=>e.body)};Xl&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Zl[t]&&(Zl[t]=se.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Ke(`Response type '${t}' is not supported`,Ke.ERR_NOT_SUPPORT,r)})})})(new Response);const S3=async e=>{if(e==null)return 0;if(se.isBlob(e))return e.size;if(se.isSpecCompliantForm(e))return(await new Request(kn.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(se.isArrayBufferView(e)||se.isArrayBuffer(e))return e.byteLength;if(se.isURLSearchParams(e)&&(e=e+""),se.isString(e))return(await w3(e)).byteLength},x3=async(e,t)=>{const n=se.toFiniteNumber(e.getContentLength());return n??S3(t)},ep={http:Bk,xhr:m3,fetch:Xl&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:a,timeout:o,onDownloadProgress:u,onUploadProgress:l,responseType:f,headers:d,withCredentials:h="same-origin",fetchOptions:p}=N2(e);f=f?(f+"").toLowerCase():"text";let m=g3([i,a&&a.toAbortSignal()],o),y;const g=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let b;try{if(l&&E3&&n!=="get"&&n!=="head"&&(b=await x3(d,r))!==0){let _=new Request(t,{method:"POST",body:r,duplex:"half"}),x;if(se.isFormData(r)&&(x=_.headers.get("content-type"))&&d.setContentType(x),_.body){const[k,A]=k2(b,Kl(R2(l)));r=I2(_.body,D2,k,A)}}se.isString(h)||(h=h?"include":"omit");const w="credentials"in Request.prototype;y=new Request(t,{...p,signal:m,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:w?h:void 0});let S=await fetch(y);const C=Jh&&(f==="stream"||f==="response");if(Jh&&(u||C&&g)){const _={};["status","statusText","headers"].forEach(L=>{_[L]=S[L]});const x=se.toFiniteNumber(S.headers.get("content-length")),[k,A]=u&&k2(x,Kl(R2(u),!0))||[];S=new Response(I2(S.body,D2,k,()=>{A&&A(),g&&g()}),_)}f=f||"text";let T=await Zl[se.findKey(Zl,f)||"text"](S,e);return!C&&g&&g(),await new Promise((_,x)=>{O2(_,x,{data:T,headers:Wn.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:y})})}catch(w){throw g&&g(),w&&w.name==="TypeError"&&/Load failed|fetch/i.test(w.message)?Object.assign(new Ke("Network Error",Ke.ERR_NETWORK,e,y),{cause:w.cause||w}):Ke.from(w,w&&w.code,e,y)}})};se.forEach(ep,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const M2=e=>`- ${e}`,C3=e=>se.isFunction(e)||e===null||e===!1,j2={getAdapter:e=>{e=se.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let a=0;a<t;a++){n=e[a];let o;if(r=n,!C3(n)&&(r=ep[(o=String(n)).toLowerCase()],r===void 0))throw new Ke(`Unknown adapter '${o}'`);if(r)break;i[o||"#"+a]=r}if(!r){const a=Object.entries(i).map(([u,l])=>`adapter ${u} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?a.length>1?`since :
96
96
  `+a.map(M2).join(`
97
97
  `):" "+M2(a[0]):"as no adapter specified";throw new Ke("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:ep};function tp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Io(null,e)}function $2(e){return tp(e),e.headers=Wn.from(e.headers),e.data=Zh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),j2.getAdapter(e.adapter||su.adapter)(e).then(function(r){return tp(e),r.data=Zh.call(e,e.transformResponse,r),r.headers=Wn.from(r.headers),r},function(r){return T2(r)||(tp(e),r&&r.response&&(r.response.data=Zh.call(e,e.transformResponse,r.response),r.response.headers=Wn.from(r.response.headers))),Promise.reject(r)})}const V2="1.9.0",Jl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Jl[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const q2={};Jl.transitional=function(t,n,r){function i(a,o){return"[Axios v"+V2+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,u)=>{if(t===!1)throw new Ke(i(o," has been removed"+(n?" in "+n:"")),Ke.ERR_DEPRECATED);return n&&!q2[o]&&(q2[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,u):!0}},Jl.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function T3(e,t,n){if(typeof e!="object")throw new Ke("options must be an object",Ke.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],o=t[a];if(o){const u=e[a],l=u===void 0||o(u,a,e);if(l!==!0)throw new Ke("option "+a+" must be "+l,Ke.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ke("Unknown option "+a,Ke.ERR_BAD_OPTION)}}const ec={assertOptions:T3,validators:Jl},ni=ec.validators;let Ia=class{constructor(t){this.defaults=t||{},this.interceptors={request:new E2,response:new E2}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
98
- `+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Na(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&ec.assertOptions(r,{silentJSONParsing:ni.transitional(ni.boolean),forcedJSONParsing:ni.transitional(ni.boolean),clarifyTimeoutError:ni.transitional(ni.boolean)},!1),i!=null&&(se.isFunction(i)?n.paramsSerializer={serialize:i}:ec.assertOptions(i,{encode:ni.function,serialize:ni.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ec.assertOptions(n,{baseUrl:ni.spelling("baseURL"),withXsrfToken:ni.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&se.merge(a.common,a[n.method]);a&&se.forEach(["delete","get","head","post","put","patch","common"],y=>{delete a[y]}),n.headers=Wn.concat(o,a);const u=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,u.unshift(g.fulfilled,g.rejected))});const f=[];this.interceptors.response.forEach(function(g){f.push(g.fulfilled,g.rejected)});let d,h=0,p;if(!l){const y=[$2.bind(this),void 0];for(y.unshift.apply(y,u),y.push.apply(y,f),p=y.length,d=Promise.resolve(n);h<p;)d=d.then(y[h++],y[h++]);return d}p=u.length;let m=n;for(h=0;h<p;){const y=u[h++],g=u[h++];try{m=y(m)}catch(b){g.call(this,b);break}}try{d=$2.call(this,m)}catch(y){return Promise.reject(y)}for(h=0,p=f.length;h<p;)d=d.then(f[h++],f[h++]);return d}getUri(t){t=Na(this.defaults,t);const n=A2(t.baseURL,t.url,t.allowAbsoluteUrls);return w2(n,t.params,t.paramsSerializer)}};se.forEach(["delete","get","head","options"],function(t){Ia.prototype[t]=function(n,r){return this.request(Na(r||{},{method:t,url:n,data:(r||{}).data}))}}),se.forEach(["post","put","patch"],function(t){function n(r){return function(a,o,u){return this.request(Na(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Ia.prototype[t]=n(),Ia.prototype[t+"Form"]=n(!0)});let O3=class x6{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(i=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(u=>{r.subscribe(u),a=u}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},t(function(a,o,u){r.reason||(r.reason=new Io(a,o,u),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 x6(function(i){t=i}),cancel:t}}};function k3(e){return function(n){return e.apply(null,n)}}function R3(e){return se.isObject(e)&&e.isAxiosError===!0}const np={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};Object.entries(np).forEach(([e,t])=>{np[t]=e});function U2(e){const t=new Ia(e),n=o2(Ia.prototype.request,t);return se.extend(n,Ia.prototype,t,{allOwnKeys:!0}),se.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return U2(Na(e,i))},n}const Gt=U2(su);Gt.Axios=Ia,Gt.CanceledError=Io,Gt.CancelToken=O3,Gt.isCancel=T2,Gt.VERSION=V2,Gt.toFormData=Ql,Gt.AxiosError=Ke,Gt.Cancel=Gt.CanceledError,Gt.all=function(t){return Promise.all(t)},Gt.spread=k3,Gt.isAxiosError=R3,Gt.mergeConfig=Na,Gt.AxiosHeaders=Wn,Gt.formToJSON=e=>x2(se.isHTMLForm(e)?new FormData(e):e),Gt.getAdapter=j2.getAdapter,Gt.HttpStatusCode=np,Gt.default=Gt;const{Axios:vz,AxiosError:mz,CanceledError:gz,isCancel:yz,CancelToken:bz,VERSION:_z,all:wz,Cancel:Ez,isAxiosError:Sz,spread:xz,toFormData:Cz,AxiosHeaders:Tz,HttpStatusCode:Oz,formToJSON:kz,getAdapter:Rz,mergeConfig:Az}=Gt,z2=()=>Gt.create({baseURL:jh(),headers:{Authorization:Vh()}});function A3(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];La(t[0])&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const H2={};function rp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];La(t[0])&&H2[t[0]]||(La(t[0])&&(H2[t[0]]=new Date),A3(...t))}const B2=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},W2=(e,t,n)=>{e.loadNamespaces(t,B2(e,n))},G2=(e,t,n,r)=>{La(n)&&(n=[n]),n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,B2(e,r))},P3=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],i=t.options?t.options.fallbackLng:!1,a=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(u,l)=>{const f=t.services.backendConnector.state[`${u}|${l}`];return f===-1||f===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!i||o(a,e)))},N3=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(rp("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(i,a)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!a(i.isLanguageChangingTo,e))return!1}}):P3(e,t,n)},La=e=>typeof e=="string",I3=e=>typeof e=="object"&&e!==null,L3=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,F3={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},D3=e=>F3[e];let ip={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(L3,D3)};const M3=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ip={...ip,...e}},j3=()=>ip;let Q2;const $3=e=>{Q2=e},V3=()=>Q2,q3={type:"3rdParty",init(e){M3(e.options.react),$3(e)}},U3=M.createContext();class z3{constructor(){S6(this,"getUsedNamespaces",()=>Object.keys(this.usedNamespaces));this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}}const H3=(e,t)=>{const n=M.useRef();return M.useEffect(()=>{n.current=e},[e,t]),n.current},Y2=(e,t,n,r)=>e.getFixedT(t,n,r),B3=(e,t,n,r)=>M.useCallback(Y2(e,t,n,r),[e,t,n,r]),W3=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:i}=M.useContext(U3)||{},a=n||r||V3();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new z3),!a){rp("You will need to pass in an i18next instance by using initReactI18next");const T=(x,k)=>La(k)?k:I3(k)&&La(k.defaultValue)?k.defaultValue:Array.isArray(x)?x[x.length-1]:x,_=[T,{},!1];return _.t=T,_.i18n={},_.ready=!1,_}a.options.react&&a.options.react.wait!==void 0&&rp("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...j3(),...a.options.react,...t},{useSuspense:u,keyPrefix:l}=o;let f=e||i||a.options&&a.options.defaultNS;f=La(f)?[f]:f||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(f);const d=(a.isInitialized||a.initializedStoreOnce)&&f.every(T=>N3(T,a,o)),h=B3(a,t.lng||null,o.nsMode==="fallback"?f:f[0],l),p=()=>h,m=()=>Y2(a,t.lng||null,o.nsMode==="fallback"?f:f[0],l),[y,g]=M.useState(p);let b=f.join();t.lng&&(b=`${t.lng}${b}`);const w=H3(b),S=M.useRef(!0);M.useEffect(()=>{const{bindI18n:T,bindI18nStore:_}=o;S.current=!0,!d&&!u&&(t.lng?G2(a,t.lng,f,()=>{S.current&&g(m)}):W2(a,f,()=>{S.current&&g(m)})),d&&w&&w!==b&&S.current&&g(m);const x=()=>{S.current&&g(m)};return T&&a&&a.on(T,x),_&&a&&a.store.on(_,x),()=>{S.current=!1,T&&a&&T.split(" ").forEach(k=>a.off(k,x)),_&&a&&_.split(" ").forEach(k=>a.store.off(k,x))}},[a,b]),M.useEffect(()=>{S.current&&d&&g(p)},[a,l,d]);const C=[y,a,d];if(C.t=y,C.i18n=a,C.ready=d,d||!d&&!u)return C;throw new Promise(T=>{t.lng?G2(a,t.lng,f,()=>T()):W2(a,f,()=>T())})},G3=JO((e,{headers:t})=>({headers:{...t,Authorization:$h()||Vh()}}));function K2(e){return new Ur(function(t,n){return new Et(function(r){var i,a,o;try{i=n(t).subscribe({next:function(u){if(u.errors?o=e({graphQLErrors:u.errors,response:u,operation:t,forward:n}):J0(u)&&(o=e({protocolErrors:u.extensions[Cl],response:u,operation:t,forward:n})),o){a=o.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.next(u)},error:function(u){if(o=e({operation:t,networkError:u,graphQLErrors:u&&u.result&&u.result.errors||void 0,forward:n}),o){a=o.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.error(u)},complete:function(){o||r.complete.bind(r)()}})}catch(u){e({networkError:u,operation:t,forward:n}),r.error(u)}return function(){i&&i.unsubscribe(),a&&i.unsubscribe()}})})}(function(e){yr(t,e);function t(n){var r=e.call(this)||this;return r.link=K2(n),r}return t.prototype.request=function(n,r){return this.link.request(n,r)},t})(Ur);const ap=async()=>{ik().then(e=>{e?window.location.replace(window.location.href):Wt("error","Something went wrong!","top-right")})},Q3=ze.debounce(e=>{e===401||e===503?ap():e===404?Wt("error","Not found!","top-right"):e===500?Wt("error","Internal server error!","top-right"):Wt("error","Something went wrong! Please try again.","top-right")},1e3),Y3=K2(({graphQLErrors:e,networkError:t})=>{if(ze.size(e)&&e.forEach(({message:n})=>{var r;(r=n==null?void 0:n.includes)!=null&&r.call(n,"Token expired at")&&ap()}),ze.size(t)){const{statusCode:n}=t;n===401?ap():Q3(n)}return""}),K3=e=>iy({uri:`${e}/graphql`});function X3(e){return qt(e)&&"code"in e&&"reason"in e}function Z3(e){var t;return qt(e)&&((t=e.target)===null||t===void 0?void 0:t.readyState)===WebSocket.CLOSED}var J3=function(e){yr(t,e);function t(n){var r=e.call(this)||this;return r.client=n,r}return t.prototype.request=function(n){var r=this;return new Et(function(i){return r.client.subscribe(X(X({},n),{query:Bi(n.query)}),{next:i.next.bind(i),complete:i.complete.bind(i),error:function(a){if(a instanceof Error)return i.error(a);var o=X3(a);return o||Z3(a)?i.error(new Error("Socket closed".concat(o?" with event ".concat(a.code):"").concat(o?" ".concat(a.reason):""))):i.error(new nr({graphQLErrors:Array.isArray(a)?a:[a]}))}})})},t}(Ur);function Gn(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function Fa(e){return Gn(e)==="object"}function e9(e){return Array.isArray(e)&&e.length>0&&e.every(t=>"message"in t)}function X2(e,t){return e.length<124?e:t}const t9="graphql-transport-ws";var ir;(function(e){e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"})(ir||(ir={}));var tn;(function(e){e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete"})(tn||(tn={}));function Z2(e){if(!Fa(e))throw new Error(`Message is expected to be an object, but got ${Gn(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if(typeof e.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${Gn(e.type)}`);switch(e.type){case tn.ConnectionInit:case tn.ConnectionAck:case tn.Ping:case tn.Pong:{if(e.payload!=null&&!Fa(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break}case tn.Subscribe:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Gn(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Fa(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${Gn(e.payload)}`);if(typeof e.payload.query!="string")throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${Gn(e.payload.query)}`);if(e.payload.variables!=null&&!Fa(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${Gn(e.payload.variables)}`);if(e.payload.operationName!=null&&Gn(e.payload.operationName)!=="string")throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${Gn(e.payload.operationName)}`);if(e.payload.extensions!=null&&!Fa(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${Gn(e.payload.extensions)}`);break}case tn.Next:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Gn(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Fa(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${Gn(e.payload)}`);break}case tn.Error:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Gn(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!e9(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break}case tn.Complete:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Gn(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}function n9(e,t){return Z2(typeof e=="string"?JSON.parse(e,t):e)}function lu(e,t){return Z2(e),JSON.stringify(e,t)}var Lo=function(e){return this instanceof Lo?(this.v=e,this):new Lo(e)},r9=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(m){return function(y){return Promise.resolve(y).then(m,h)}}function u(m,y){r[m]&&(i[m]=function(g){return new Promise(function(b,w){a.push([m,g,b,w])>1||l(m,g)})},y&&(i[m]=y(i[m])))}function l(m,y){try{f(r[m](y))}catch(g){p(a[0][3],g)}}function f(m){m.value instanceof Lo?Promise.resolve(m.value.v).then(d,h):p(a[0][2],m)}function d(m){l("next",m)}function h(m){l("throw",m)}function p(m,y){m(y),a.shift(),a.length&&l(a[0][0],a[0][1])}};function i9(e){const{url:t,connectionParams:n,lazy:r=!0,onNonLazyError:i=console.error,lazyCloseTimeout:a=0,keepAlive:o=0,disablePong:u,connectionAckWaitTimeout:l=0,retryAttempts:f=5,retryWait:d=async function(z){let Y=1e3;for(let q=0;q<z;q++)Y*=2;await new Promise(q=>setTimeout(q,Y+Math.floor(Math.random()*2700+300)))},shouldRetry:h=op,isFatalConnectionProblem:p,on:m,webSocketImpl:y,generateID:g=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,z=>{const Y=Math.random()*16|0;return(z=="x"?Y:Y&3|8).toString(16)})},jsonMessageReplacer:b,jsonMessageReviver:w}=e;let S;if(y){if(!o9(y))throw new Error("Invalid WebSocket implementation provided");S=y}else typeof WebSocket<"u"?S=WebSocket:typeof global<"u"?S=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(S=window.WebSocket||window.MozWebSocket);if(!S)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const C=S,T=(()=>{const j=(()=>{const Y={};return{on(q,J){return Y[q]=J,()=>{delete Y[q]}},emit(q){var J;"id"in q&&((J=Y[q.id])===null||J===void 0||J.call(Y,q))}}})(),z={connecting:m!=null&&m.connecting?[m.connecting]:[],opened:m!=null&&m.opened?[m.opened]:[],connected:m!=null&&m.connected?[m.connected]:[],ping:m!=null&&m.ping?[m.ping]:[],pong:m!=null&&m.pong?[m.pong]:[],message:m!=null&&m.message?[j.emit,m.message]:[j.emit],closed:m!=null&&m.closed?[m.closed]:[],error:m!=null&&m.error?[m.error]:[]};return{onMessage:j.on,on(Y,q){const J=z[Y];return J.push(q),()=>{J.splice(J.indexOf(q),1)}},emit(Y,...q){for(const J of[...z[Y]])J(...q)}}})();function _(j){const z=[T.on("error",Y=>{z.forEach(q=>q()),j(Y)}),T.on("closed",Y=>{z.forEach(q=>q()),j(Y)})]}let x,k=0,A,L=!1,N=0,F=!1;async function H(){clearTimeout(A);const[j,z]=await(x??(x=new Promise((J,$)=>(async()=>{if(L){if(await d(N),!k)return x=void 0,$({code:1e3,reason:"All Subscriptions Gone"});N++}T.emit("connecting",L);const K=new C(typeof t=="function"?await t():t,t9);let ae,ie;function te(){isFinite(o)&&o>0&&(clearTimeout(ie),ie=setTimeout(()=>{K.readyState===C.OPEN&&(K.send(lu({type:tn.Ping})),T.emit("ping",!1,void 0))},o))}_(le=>{x=void 0,clearTimeout(ae),clearTimeout(ie),$(le),le instanceof J2&&(K.close(4499,"Terminated"),K.onerror=null,K.onclose=null)}),K.onerror=le=>T.emit("error",le),K.onclose=le=>T.emit("closed",le),K.onopen=async()=>{try{T.emit("opened",K);const le=typeof n=="function"?await n():n;if(K.readyState!==C.OPEN)return;K.send(lu(le?{type:tn.ConnectionInit,payload:le}:{type:tn.ConnectionInit},b)),isFinite(l)&&l>0&&(ae=setTimeout(()=>{K.close(ir.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},l)),te()}catch(le){T.emit("error",le),K.close(ir.InternalClientError,X2(le instanceof Error?le.message:new Error(le).message,"Internal client error"))}};let fe=!1;K.onmessage=({data:le})=>{try{const ve=n9(le,w);if(T.emit("message",ve),ve.type==="ping"||ve.type==="pong"){T.emit(ve.type,!0,ve.payload),ve.type==="pong"?te():u||(K.send(lu(ve.payload?{type:tn.Pong,payload:ve.payload}:{type:tn.Pong})),T.emit("pong",!1,ve.payload));return}if(fe)return;if(ve.type!==tn.ConnectionAck)throw new Error(`First message cannot be of type ${ve.type}`);clearTimeout(ae),fe=!0,T.emit("connected",K,ve.payload,L),L=!1,N=0,J([K,new Promise((_e,be)=>_(be))])}catch(ve){K.onmessage=null,T.emit("error",ve),K.close(ir.BadResponse,X2(ve instanceof Error?ve.message:new Error(ve).message,"Bad response"))}}})())));j.readyState===C.CLOSING&&await z;let Y=()=>{};const q=new Promise(J=>Y=J);return[j,Y,Promise.race([q.then(()=>{if(!k){const J=()=>j.close(1e3,"Normal Closure");isFinite(a)&&a>0?A=setTimeout(()=>{j.readyState===C.OPEN&&J()},a):J()}}),z])]}function V(j){if(op(j)&&(a9(j.code)||[ir.InternalServerError,ir.InternalClientError,ir.BadRequest,ir.BadResponse,ir.Unauthorized,ir.SubprotocolNotAcceptable,ir.SubscriberAlreadyExists,ir.TooManyInitialisationRequests].includes(j.code)))throw j;if(F)return!1;if(op(j)&&j.code===1e3)return k>0;if(!f||N>=f||!h(j)||p!=null&&p(j))throw j;return L=!0}r||(async()=>{for(k++;;)try{const[,,j]=await H();await j}catch(j){try{if(!V(j))return}catch(z){return i==null?void 0:i(z)}}})();function D(j,z){const Y=g(j);let q=!1,J=!1,$=()=>{k--,q=!0};return(async()=>{for(k++;;)try{const[K,ae,ie]=await H();if(q)return ae();const te=T.onMessage(Y,fe=>{switch(fe.type){case tn.Next:{z.next(fe.payload);return}case tn.Error:{J=!0,q=!0,z.error(fe.payload),$();return}case tn.Complete:{q=!0,$();return}}});K.send(lu({id:Y,type:tn.Subscribe,payload:j},b)),$=()=>{!q&&K.readyState===C.OPEN&&K.send(lu({id:Y,type:tn.Complete},b)),k--,q=!0,ae()},await ie.finally(te);return}catch(K){if(!V(K))return}})().then(()=>{J||z.complete()}).catch(K=>{z.error(K)}),()=>{q||$()}}return{on:T.on,subscribe:D,iterate(j){const z=[],Y={done:!1,error:null,resolve:()=>{}},q=D(j,{next($){z.push($),Y.resolve()},error($){Y.done=!0,Y.error=$,Y.resolve()},complete(){Y.done=!0,Y.resolve()}}),J=function(){return r9(this,arguments,function*(){for(;;){for(z.length||(yield Lo(new Promise(ae=>Y.resolve=ae)));z.length;)yield yield Lo(z.shift());if(Y.error)throw Y.error;if(Y.done)return yield Lo(void 0)}})}();return J.throw=async $=>(Y.done||(Y.done=!0,Y.error=$,Y.resolve()),{done:!0,value:void 0}),J.return=async()=>(q(),{done:!0,value:void 0}),J},async dispose(){if(F=!0,x){const[j]=await x;j.close(1e3,"Normal Closure")}},terminate(){x&&T.emit("closed",new J2)}}}class J2 extends Error{constructor(){super(...arguments),this.name="TerminatedCloseEvent",this.message="4499: Terminated",this.code=4499,this.reason="Terminated",this.wasClean=!1}}function op(e){return Fa(e)&&"code"in e&&"reason"in e}function a9(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function o9(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}const s9=e=>new J3(i9({connectionParams:{Authorization:$h()||Vh()},url:`${e==null?void 0:e.replace("http","ws")}/graphql`})),sp=e=>new Xy({link:_4([G3,Y3,w4(({query:t})=>{const n=yo(t);return n.kind==="OperationDefinition"&&n.operation==="subscription"},s9(e),K3(e))]),cache:new Wy});sp();var up={exports:{}},lp={exports:{}},St={},e_;function u9(){if(e_)return St;e_=1;/** @license React v16.13.1
98
+ `+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Na(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&ec.assertOptions(r,{silentJSONParsing:ni.transitional(ni.boolean),forcedJSONParsing:ni.transitional(ni.boolean),clarifyTimeoutError:ni.transitional(ni.boolean)},!1),i!=null&&(se.isFunction(i)?n.paramsSerializer={serialize:i}:ec.assertOptions(i,{encode:ni.function,serialize:ni.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ec.assertOptions(n,{baseUrl:ni.spelling("baseURL"),withXsrfToken:ni.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&se.merge(a.common,a[n.method]);a&&se.forEach(["delete","get","head","post","put","patch","common"],y=>{delete a[y]}),n.headers=Wn.concat(o,a);const u=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,u.unshift(g.fulfilled,g.rejected))});const f=[];this.interceptors.response.forEach(function(g){f.push(g.fulfilled,g.rejected)});let d,h=0,p;if(!l){const y=[$2.bind(this),void 0];for(y.unshift.apply(y,u),y.push.apply(y,f),p=y.length,d=Promise.resolve(n);h<p;)d=d.then(y[h++],y[h++]);return d}p=u.length;let m=n;for(h=0;h<p;){const y=u[h++],g=u[h++];try{m=y(m)}catch(b){g.call(this,b);break}}try{d=$2.call(this,m)}catch(y){return Promise.reject(y)}for(h=0,p=f.length;h<p;)d=d.then(f[h++],f[h++]);return d}getUri(t){t=Na(this.defaults,t);const n=A2(t.baseURL,t.url,t.allowAbsoluteUrls);return w2(n,t.params,t.paramsSerializer)}};se.forEach(["delete","get","head","options"],function(t){Ia.prototype[t]=function(n,r){return this.request(Na(r||{},{method:t,url:n,data:(r||{}).data}))}}),se.forEach(["post","put","patch"],function(t){function n(r){return function(a,o,u){return this.request(Na(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Ia.prototype[t]=n(),Ia.prototype[t+"Form"]=n(!0)});let O3=class x6{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(i=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(u=>{r.subscribe(u),a=u}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},t(function(a,o,u){r.reason||(r.reason=new Io(a,o,u),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 x6(function(i){t=i}),cancel:t}}};function k3(e){return function(n){return e.apply(null,n)}}function R3(e){return se.isObject(e)&&e.isAxiosError===!0}const np={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};Object.entries(np).forEach(([e,t])=>{np[t]=e});function U2(e){const t=new Ia(e),n=o2(Ia.prototype.request,t);return se.extend(n,Ia.prototype,t,{allOwnKeys:!0}),se.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return U2(Na(e,i))},n}const Gt=U2(su);Gt.Axios=Ia,Gt.CanceledError=Io,Gt.CancelToken=O3,Gt.isCancel=T2,Gt.VERSION=V2,Gt.toFormData=Ql,Gt.AxiosError=Ke,Gt.Cancel=Gt.CanceledError,Gt.all=function(t){return Promise.all(t)},Gt.spread=k3,Gt.isAxiosError=R3,Gt.mergeConfig=Na,Gt.AxiosHeaders=Wn,Gt.formToJSON=e=>x2(se.isHTMLForm(e)?new FormData(e):e),Gt.getAdapter=j2.getAdapter,Gt.HttpStatusCode=np,Gt.default=Gt;const{Axios:vz,AxiosError:mz,CanceledError:gz,isCancel:yz,CancelToken:bz,VERSION:_z,all:wz,Cancel:Ez,isAxiosError:Sz,spread:xz,toFormData:Cz,AxiosHeaders:Tz,HttpStatusCode:Oz,formToJSON:kz,getAdapter:Rz,mergeConfig:Az}=Gt,z2=()=>Gt.create({baseURL:jh(),headers:{Authorization:Vh()}});function A3(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];La(t[0])&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const H2={};function rp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];La(t[0])&&H2[t[0]]||(La(t[0])&&(H2[t[0]]=new Date),A3(...t))}const B2=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},W2=(e,t,n)=>{e.loadNamespaces(t,B2(e,n))},G2=(e,t,n,r)=>{La(n)&&(n=[n]),n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,B2(e,r))},P3=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],i=t.options?t.options.fallbackLng:!1,a=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(u,l)=>{const f=t.services.backendConnector.state[`${u}|${l}`];return f===-1||f===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!i||o(a,e)))},N3=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(rp("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(i,a)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!a(i.isLanguageChangingTo,e))return!1}}):P3(e,t,n)},La=e=>typeof e=="string",I3=e=>typeof e=="object"&&e!==null,L3=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,F3={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},D3=e=>F3[e];let ip={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(L3,D3)};const M3=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ip={...ip,...e}},j3=()=>ip;let Q2;const $3=e=>{Q2=e},V3=()=>Q2,q3={type:"3rdParty",init(e){M3(e.options.react),$3(e)}},U3=M.createContext();class z3{constructor(){S6(this,"getUsedNamespaces",()=>Object.keys(this.usedNamespaces));this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}}const H3=(e,t)=>{const n=M.useRef();return M.useEffect(()=>{n.current=e},[e,t]),n.current},Y2=(e,t,n,r)=>e.getFixedT(t,n,r),B3=(e,t,n,r)=>M.useCallback(Y2(e,t,n,r),[e,t,n,r]),W3=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:i}=M.useContext(U3)||{},a=n||r||V3();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new z3),!a){rp("You will need to pass in an i18next instance by using initReactI18next");const T=(x,k)=>La(k)?k:I3(k)&&La(k.defaultValue)?k.defaultValue:Array.isArray(x)?x[x.length-1]:x,_=[T,{},!1];return _.t=T,_.i18n={},_.ready=!1,_}a.options.react&&a.options.react.wait!==void 0&&rp("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...j3(),...a.options.react,...t},{useSuspense:u,keyPrefix:l}=o;let f=e||i||a.options&&a.options.defaultNS;f=La(f)?[f]:f||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(f);const d=(a.isInitialized||a.initializedStoreOnce)&&f.every(T=>N3(T,a,o)),h=B3(a,t.lng||null,o.nsMode==="fallback"?f:f[0],l),p=()=>h,m=()=>Y2(a,t.lng||null,o.nsMode==="fallback"?f:f[0],l),[y,g]=M.useState(p);let b=f.join();t.lng&&(b=`${t.lng}${b}`);const w=H3(b),S=M.useRef(!0);M.useEffect(()=>{const{bindI18n:T,bindI18nStore:_}=o;S.current=!0,!d&&!u&&(t.lng?G2(a,t.lng,f,()=>{S.current&&g(m)}):W2(a,f,()=>{S.current&&g(m)})),d&&w&&w!==b&&S.current&&g(m);const x=()=>{S.current&&g(m)};return T&&a&&a.on(T,x),_&&a&&a.store.on(_,x),()=>{S.current=!1,T&&a&&T.split(" ").forEach(k=>a.off(k,x)),_&&a&&_.split(" ").forEach(k=>a.store.off(k,x))}},[a,b]),M.useEffect(()=>{S.current&&d&&g(p)},[a,l,d]);const C=[y,a,d];if(C.t=y,C.i18n=a,C.ready=d,d||!d&&!u)return C;throw new Promise(T=>{t.lng?G2(a,t.lng,f,()=>T()):W2(a,f,()=>T())})},G3=JO((e,{headers:t})=>({headers:{...t,Authorization:$h()||Vh()}}));function K2(e){return new Ur(function(t,n){return new _t(function(r){var i,a,o;try{i=n(t).subscribe({next:function(u){if(u.errors?o=e({graphQLErrors:u.errors,response:u,operation:t,forward:n}):J0(u)&&(o=e({protocolErrors:u.extensions[Cl],response:u,operation:t,forward:n})),o){a=o.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.next(u)},error:function(u){if(o=e({operation:t,networkError:u,graphQLErrors:u&&u.result&&u.result.errors||void 0,forward:n}),o){a=o.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.error(u)},complete:function(){o||r.complete.bind(r)()}})}catch(u){e({networkError:u,operation:t,forward:n}),r.error(u)}return function(){i&&i.unsubscribe(),a&&i.unsubscribe()}})})}(function(e){yr(t,e);function t(n){var r=e.call(this)||this;return r.link=K2(n),r}return t.prototype.request=function(n,r){return this.link.request(n,r)},t})(Ur);const ap=async()=>{ik().then(e=>{e?window.location.replace(window.location.href):Wt("error","Something went wrong!","top-right")})},Q3=Ge.debounce(e=>{e===401||e===503?ap():e===404?Wt("error","Not found!","top-right"):e===500?Wt("error","Internal server error!","top-right"):Wt("error","Something went wrong! Please try again.","top-right")},1e3),Y3=K2(({graphQLErrors:e,networkError:t})=>{if(Ge.size(e)&&e.forEach(({message:n})=>{var r;(r=n==null?void 0:n.includes)!=null&&r.call(n,"Token expired at")&&ap()}),Ge.size(t)){const{statusCode:n}=t;n===401?ap():Q3(n)}return""}),K3=e=>iy({uri:`${e}/graphql`});function X3(e){return qt(e)&&"code"in e&&"reason"in e}function Z3(e){var t;return qt(e)&&((t=e.target)===null||t===void 0?void 0:t.readyState)===WebSocket.CLOSED}var J3=function(e){yr(t,e);function t(n){var r=e.call(this)||this;return r.client=n,r}return t.prototype.request=function(n){var r=this;return new _t(function(i){return r.client.subscribe(X(X({},n),{query:Bi(n.query)}),{next:i.next.bind(i),complete:i.complete.bind(i),error:function(a){if(a instanceof Error)return i.error(a);var o=X3(a);return o||Z3(a)?i.error(new Error("Socket closed".concat(o?" with event ".concat(a.code):"").concat(o?" ".concat(a.reason):""))):i.error(new nr({graphQLErrors:Array.isArray(a)?a:[a]}))}})})},t}(Ur);function Gn(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function Fa(e){return Gn(e)==="object"}function e9(e){return Array.isArray(e)&&e.length>0&&e.every(t=>"message"in t)}function X2(e,t){return e.length<124?e:t}const t9="graphql-transport-ws";var ir;(function(e){e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"})(ir||(ir={}));var tn;(function(e){e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete"})(tn||(tn={}));function Z2(e){if(!Fa(e))throw new Error(`Message is expected to be an object, but got ${Gn(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if(typeof e.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${Gn(e.type)}`);switch(e.type){case tn.ConnectionInit:case tn.ConnectionAck:case tn.Ping:case tn.Pong:{if(e.payload!=null&&!Fa(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break}case tn.Subscribe:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Gn(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Fa(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${Gn(e.payload)}`);if(typeof e.payload.query!="string")throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${Gn(e.payload.query)}`);if(e.payload.variables!=null&&!Fa(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${Gn(e.payload.variables)}`);if(e.payload.operationName!=null&&Gn(e.payload.operationName)!=="string")throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${Gn(e.payload.operationName)}`);if(e.payload.extensions!=null&&!Fa(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${Gn(e.payload.extensions)}`);break}case tn.Next:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Gn(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Fa(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${Gn(e.payload)}`);break}case tn.Error:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Gn(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!e9(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break}case tn.Complete:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Gn(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}function n9(e,t){return Z2(typeof e=="string"?JSON.parse(e,t):e)}function lu(e,t){return Z2(e),JSON.stringify(e,t)}var Lo=function(e){return this instanceof Lo?(this.v=e,this):new Lo(e)},r9=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(m){return function(y){return Promise.resolve(y).then(m,h)}}function u(m,y){r[m]&&(i[m]=function(g){return new Promise(function(b,w){a.push([m,g,b,w])>1||l(m,g)})},y&&(i[m]=y(i[m])))}function l(m,y){try{f(r[m](y))}catch(g){p(a[0][3],g)}}function f(m){m.value instanceof Lo?Promise.resolve(m.value.v).then(d,h):p(a[0][2],m)}function d(m){l("next",m)}function h(m){l("throw",m)}function p(m,y){m(y),a.shift(),a.length&&l(a[0][0],a[0][1])}};function i9(e){const{url:t,connectionParams:n,lazy:r=!0,onNonLazyError:i=console.error,lazyCloseTimeout:a=0,keepAlive:o=0,disablePong:u,connectionAckWaitTimeout:l=0,retryAttempts:f=5,retryWait:d=async function(z){let Q=1e3;for(let q=0;q<z;q++)Q*=2;await new Promise(q=>setTimeout(q,Q+Math.floor(Math.random()*2700+300)))},shouldRetry:h=op,isFatalConnectionProblem:p,on:m,webSocketImpl:y,generateID:g=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,z=>{const Q=Math.random()*16|0;return(z=="x"?Q:Q&3|8).toString(16)})},jsonMessageReplacer:b,jsonMessageReviver:w}=e;let S;if(y){if(!o9(y))throw new Error("Invalid WebSocket implementation provided");S=y}else typeof WebSocket<"u"?S=WebSocket:typeof global<"u"?S=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(S=window.WebSocket||window.MozWebSocket);if(!S)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const C=S,T=(()=>{const j=(()=>{const Q={};return{on(q,J){return Q[q]=J,()=>{delete Q[q]}},emit(q){var J;"id"in q&&((J=Q[q.id])===null||J===void 0||J.call(Q,q))}}})(),z={connecting:m!=null&&m.connecting?[m.connecting]:[],opened:m!=null&&m.opened?[m.opened]:[],connected:m!=null&&m.connected?[m.connected]:[],ping:m!=null&&m.ping?[m.ping]:[],pong:m!=null&&m.pong?[m.pong]:[],message:m!=null&&m.message?[j.emit,m.message]:[j.emit],closed:m!=null&&m.closed?[m.closed]:[],error:m!=null&&m.error?[m.error]:[]};return{onMessage:j.on,on(Q,q){const J=z[Q];return J.push(q),()=>{J.splice(J.indexOf(q),1)}},emit(Q,...q){for(const J of[...z[Q]])J(...q)}}})();function _(j){const z=[T.on("error",Q=>{z.forEach(q=>q()),j(Q)}),T.on("closed",Q=>{z.forEach(q=>q()),j(Q)})]}let x,k=0,A,L=!1,N=0,F=!1;async function H(){clearTimeout(A);const[j,z]=await(x??(x=new Promise((J,$)=>(async()=>{if(L){if(await d(N),!k)return x=void 0,$({code:1e3,reason:"All Subscriptions Gone"});N++}T.emit("connecting",L);const Y=new C(typeof t=="function"?await t():t,t9);let ae,ie;function te(){isFinite(o)&&o>0&&(clearTimeout(ie),ie=setTimeout(()=>{Y.readyState===C.OPEN&&(Y.send(lu({type:tn.Ping})),T.emit("ping",!1,void 0))},o))}_(le=>{x=void 0,clearTimeout(ae),clearTimeout(ie),$(le),le instanceof J2&&(Y.close(4499,"Terminated"),Y.onerror=null,Y.onclose=null)}),Y.onerror=le=>T.emit("error",le),Y.onclose=le=>T.emit("closed",le),Y.onopen=async()=>{try{T.emit("opened",Y);const le=typeof n=="function"?await n():n;if(Y.readyState!==C.OPEN)return;Y.send(lu(le?{type:tn.ConnectionInit,payload:le}:{type:tn.ConnectionInit},b)),isFinite(l)&&l>0&&(ae=setTimeout(()=>{Y.close(ir.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},l)),te()}catch(le){T.emit("error",le),Y.close(ir.InternalClientError,X2(le instanceof Error?le.message:new Error(le).message,"Internal client error"))}};let fe=!1;Y.onmessage=({data:le})=>{try{const me=n9(le,w);if(T.emit("message",me),me.type==="ping"||me.type==="pong"){T.emit(me.type,!0,me.payload),me.type==="pong"?te():u||(Y.send(lu(me.payload?{type:tn.Pong,payload:me.payload}:{type:tn.Pong})),T.emit("pong",!1,me.payload));return}if(fe)return;if(me.type!==tn.ConnectionAck)throw new Error(`First message cannot be of type ${me.type}`);clearTimeout(ae),fe=!0,T.emit("connected",Y,me.payload,L),L=!1,N=0,J([Y,new Promise((_e,be)=>_(be))])}catch(me){Y.onmessage=null,T.emit("error",me),Y.close(ir.BadResponse,X2(me instanceof Error?me.message:new Error(me).message,"Bad response"))}}})())));j.readyState===C.CLOSING&&await z;let Q=()=>{};const q=new Promise(J=>Q=J);return[j,Q,Promise.race([q.then(()=>{if(!k){const J=()=>j.close(1e3,"Normal Closure");isFinite(a)&&a>0?A=setTimeout(()=>{j.readyState===C.OPEN&&J()},a):J()}}),z])]}function V(j){if(op(j)&&(a9(j.code)||[ir.InternalServerError,ir.InternalClientError,ir.BadRequest,ir.BadResponse,ir.Unauthorized,ir.SubprotocolNotAcceptable,ir.SubscriberAlreadyExists,ir.TooManyInitialisationRequests].includes(j.code)))throw j;if(F)return!1;if(op(j)&&j.code===1e3)return k>0;if(!f||N>=f||!h(j)||p!=null&&p(j))throw j;return L=!0}r||(async()=>{for(k++;;)try{const[,,j]=await H();await j}catch(j){try{if(!V(j))return}catch(z){return i==null?void 0:i(z)}}})();function D(j,z){const Q=g(j);let q=!1,J=!1,$=()=>{k--,q=!0};return(async()=>{for(k++;;)try{const[Y,ae,ie]=await H();if(q)return ae();const te=T.onMessage(Q,fe=>{switch(fe.type){case tn.Next:{z.next(fe.payload);return}case tn.Error:{J=!0,q=!0,z.error(fe.payload),$();return}case tn.Complete:{q=!0,$();return}}});Y.send(lu({id:Q,type:tn.Subscribe,payload:j},b)),$=()=>{!q&&Y.readyState===C.OPEN&&Y.send(lu({id:Q,type:tn.Complete},b)),k--,q=!0,ae()},await ie.finally(te);return}catch(Y){if(!V(Y))return}})().then(()=>{J||z.complete()}).catch(Y=>{z.error(Y)}),()=>{q||$()}}return{on:T.on,subscribe:D,iterate(j){const z=[],Q={done:!1,error:null,resolve:()=>{}},q=D(j,{next($){z.push($),Q.resolve()},error($){Q.done=!0,Q.error=$,Q.resolve()},complete(){Q.done=!0,Q.resolve()}}),J=function(){return r9(this,arguments,function*(){for(;;){for(z.length||(yield Lo(new Promise(ae=>Q.resolve=ae)));z.length;)yield yield Lo(z.shift());if(Q.error)throw Q.error;if(Q.done)return yield Lo(void 0)}})}();return J.throw=async $=>(Q.done||(Q.done=!0,Q.error=$,Q.resolve()),{done:!0,value:void 0}),J.return=async()=>(q(),{done:!0,value:void 0}),J},async dispose(){if(F=!0,x){const[j]=await x;j.close(1e3,"Normal Closure")}},terminate(){x&&T.emit("closed",new J2)}}}class J2 extends Error{constructor(){super(...arguments),this.name="TerminatedCloseEvent",this.message="4499: Terminated",this.code=4499,this.reason="Terminated",this.wasClean=!1}}function op(e){return Fa(e)&&"code"in e&&"reason"in e}function a9(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function o9(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}const s9=e=>new J3(i9({connectionParams:{Authorization:$h()||Vh()},url:`${e==null?void 0:e.replace("http","ws")}/graphql`})),sp=e=>new Xy({link:_4([G3,Y3,w4(({query:t})=>{const n=yo(t);return n.kind==="OperationDefinition"&&n.operation==="subscription"},s9(e),K3(e))]),cache:new Wy});sp();var up={exports:{}},lp={exports:{}},wt={},e_;function u9(){if(e_)return wt;e_=1;/** @license React v16.13.1
99
99
  * react-is.development.js
100
100
  *
101
101
  * Copyright (c) Facebook, Inc. and its affiliates.
102
102
  *
103
103
  * This source code is licensed under the MIT license found in the
104
104
  * LICENSE file in the root directory of this source tree.
105
- */return function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function C(W){return typeof W=="string"||typeof W=="function"||W===r||W===f||W===a||W===i||W===h||W===p||typeof W=="object"&&W!==null&&(W.$$typeof===y||W.$$typeof===m||W.$$typeof===o||W.$$typeof===u||W.$$typeof===d||W.$$typeof===b||W.$$typeof===w||W.$$typeof===S||W.$$typeof===g)}function T(W){if(typeof W=="object"&&W!==null){var ye=W.$$typeof;switch(ye){case t:var ue=W.type;switch(ue){case l:case f:case r:case a:case i:case h:return ue;default:var Te=ue&&ue.$$typeof;switch(Te){case u:case d:case y:case m:case o:return Te;default:return ye}}case n:return ye}}}var _=l,x=f,k=u,A=o,L=t,N=d,F=r,H=y,V=m,D=n,j=a,z=i,Y=h,q=!1;function J(W){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),$(W)||T(W)===l}function $(W){return T(W)===f}function K(W){return T(W)===u}function ae(W){return T(W)===o}function ie(W){return typeof W=="object"&&W!==null&&W.$$typeof===t}function te(W){return T(W)===d}function fe(W){return T(W)===r}function le(W){return T(W)===y}function ve(W){return T(W)===m}function _e(W){return T(W)===n}function be(W){return T(W)===a}function we(W){return T(W)===i}function ne(W){return T(W)===h}St.AsyncMode=_,St.ConcurrentMode=x,St.ContextConsumer=k,St.ContextProvider=A,St.Element=L,St.ForwardRef=N,St.Fragment=F,St.Lazy=H,St.Memo=V,St.Portal=D,St.Profiler=j,St.StrictMode=z,St.Suspense=Y,St.isAsyncMode=J,St.isConcurrentMode=$,St.isContextConsumer=K,St.isContextProvider=ae,St.isElement=ie,St.isForwardRef=te,St.isFragment=fe,St.isLazy=le,St.isMemo=ve,St.isPortal=_e,St.isProfiler=be,St.isStrictMode=we,St.isSuspense=ne,St.isValidElementType=C,St.typeOf=T}(),St}var t_;function n_(){return t_||(t_=1,lp.exports=u9()),lp.exports}/*
105
+ */return function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function C(K){return typeof K=="string"||typeof K=="function"||K===r||K===f||K===a||K===i||K===h||K===p||typeof K=="object"&&K!==null&&(K.$$typeof===y||K.$$typeof===m||K.$$typeof===o||K.$$typeof===u||K.$$typeof===d||K.$$typeof===b||K.$$typeof===w||K.$$typeof===S||K.$$typeof===g)}function T(K){if(typeof K=="object"&&K!==null){var we=K.$$typeof;switch(we){case t:var ue=K.type;switch(ue){case l:case f:case r:case a:case i:case h:return ue;default:var Te=ue&&ue.$$typeof;switch(Te){case u:case d:case y:case m:case o:return Te;default:return we}}case n:return we}}}var _=l,x=f,k=u,A=o,L=t,N=d,F=r,H=y,V=m,D=n,j=a,z=i,Q=h,q=!1;function J(K){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),$(K)||T(K)===l}function $(K){return T(K)===f}function Y(K){return T(K)===u}function ae(K){return T(K)===o}function ie(K){return typeof K=="object"&&K!==null&&K.$$typeof===t}function te(K){return T(K)===d}function fe(K){return T(K)===r}function le(K){return T(K)===y}function me(K){return T(K)===m}function _e(K){return T(K)===n}function be(K){return T(K)===a}function ne(K){return T(K)===i}function ve(K){return T(K)===h}wt.AsyncMode=_,wt.ConcurrentMode=x,wt.ContextConsumer=k,wt.ContextProvider=A,wt.Element=L,wt.ForwardRef=N,wt.Fragment=F,wt.Lazy=H,wt.Memo=V,wt.Portal=D,wt.Profiler=j,wt.StrictMode=z,wt.Suspense=Q,wt.isAsyncMode=J,wt.isConcurrentMode=$,wt.isContextConsumer=Y,wt.isContextProvider=ae,wt.isElement=ie,wt.isForwardRef=te,wt.isFragment=fe,wt.isLazy=le,wt.isMemo=me,wt.isPortal=_e,wt.isProfiler=be,wt.isStrictMode=ne,wt.isSuspense=ve,wt.isValidElementType=C,wt.typeOf=T}(),wt}var t_;function n_(){return t_||(t_=1,lp.exports=u9()),lp.exports}/*
106
106
  object-assign
107
107
  (c) Sindre Sorhus
108
108
  @license MIT
109
- */var cp,r_;function l9(){if(r_)return cp;r_=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},u=0;u<10;u++)o["_"+String.fromCharCode(u)]=u;var l=Object.getOwnPropertyNames(o).map(function(d){return o[d]});if(l.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(d){f[d]=d}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return cp=i()?Object.assign:function(a,o){for(var u,l=r(a),f,d=1;d<arguments.length;d++){u=Object(arguments[d]);for(var h in u)t.call(u,h)&&(l[h]=u[h]);if(e){f=e(u);for(var p=0;p<f.length;p++)n.call(u,f[p])&&(l[f[p]]=u[f[p]])}}return l},cp}var fp,i_;function a_(){if(i_)return fp;i_=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return fp=e,fp}var dp,o_;function s_(){return o_||(o_=1,dp=Function.call.bind(Object.prototype.hasOwnProperty)),dp}var hp,u_;function c9(){if(u_)return hp;u_=1;var e=function(){};{var t=a_(),n={},r=s_();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,u,l,f){for(var d in a)if(r(a,d)){var h;try{if(typeof a[d]!="function"){var p=Error((l||"React class")+": "+u+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}h=a[d](o,d,l,u,null,t)}catch(y){h=y}if(h&&!(h instanceof Error)&&e((l||"React class")+": type specification of "+u+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in n)){n[h.message]=!0;var m=f?f():"";e("Failed "+u+" type: "+h.message+(m??""))}}}return i.resetWarningCache=function(){n={}},hp=i,hp}var pp,l_;function f9(){if(l_)return pp;l_=1;var e=n_(),t=l9(),n=a_(),r=s_(),i=c9(),a=function(){};a=function(u){var l="Warning: "+u;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}};function o(){return null}return pp=function(u,l){var f=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function h($){var K=$&&(f&&$[f]||$[d]);if(typeof K=="function")return K}var p="<<anonymous>>",m={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:S(),arrayOf:C,element:T(),elementType:_(),instanceOf:x,node:N(),objectOf:A,oneOf:k,oneOfType:L,shape:H,exact:V};function y($,K){return $===K?$!==0||1/$===1/K:$!==$&&K!==K}function g($,K){this.message=$,this.data=K&&typeof K=="object"?K:{},this.stack=""}g.prototype=Error.prototype;function b($){var K={},ae=0;function ie(fe,le,ve,_e,be,we,ne){if(_e=_e||p,we=we||ve,ne!==n){if(l){var W=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw W.name="Invariant Violation",W}else if(typeof console<"u"){var ye=_e+":"+ve;!K[ye]&&ae<3&&(a("You are manually calling a React.PropTypes validation function for the `"+we+"` prop on `"+_e+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),K[ye]=!0,ae++)}}return le[ve]==null?fe?le[ve]===null?new g("The "+be+" `"+we+"` is marked as required "+("in `"+_e+"`, but its value is `null`.")):new g("The "+be+" `"+we+"` is marked as required in "+("`"+_e+"`, but its value is `undefined`.")):null:$(le,ve,_e,be,we)}var te=ie.bind(null,!1);return te.isRequired=ie.bind(null,!0),te}function w($){function K(ae,ie,te,fe,le,ve){var _e=ae[ie],be=z(_e);if(be!==$){var we=Y(_e);return new g("Invalid "+fe+" `"+le+"` of type "+("`"+we+"` supplied to `"+te+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return b(K)}function S(){return b(o)}function C($){function K(ae,ie,te,fe,le){if(typeof $!="function")return new g("Property `"+le+"` of component `"+te+"` has invalid PropType notation inside arrayOf.");var ve=ae[ie];if(!Array.isArray(ve)){var _e=z(ve);return new g("Invalid "+fe+" `"+le+"` of type "+("`"+_e+"` supplied to `"+te+"`, expected an array."))}for(var be=0;be<ve.length;be++){var we=$(ve,be,te,fe,le+"["+be+"]",n);if(we instanceof Error)return we}return null}return b(K)}function T(){function $(K,ae,ie,te,fe){var le=K[ae];if(!u(le)){var ve=z(le);return new g("Invalid "+te+" `"+fe+"` of type "+("`"+ve+"` supplied to `"+ie+"`, expected a single ReactElement."))}return null}return b($)}function _(){function $(K,ae,ie,te,fe){var le=K[ae];if(!e.isValidElementType(le)){var ve=z(le);return new g("Invalid "+te+" `"+fe+"` of type "+("`"+ve+"` supplied to `"+ie+"`, expected a single ReactElement type."))}return null}return b($)}function x($){function K(ae,ie,te,fe,le){if(!(ae[ie]instanceof $)){var ve=$.name||p,_e=J(ae[ie]);return new g("Invalid "+fe+" `"+le+"` of type "+("`"+_e+"` supplied to `"+te+"`, expected ")+("instance of `"+ve+"`."))}return null}return b(K)}function k($){if(!Array.isArray($))return arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array."),o;function K(ae,ie,te,fe,le){for(var ve=ae[ie],_e=0;_e<$.length;_e++)if(y(ve,$[_e]))return null;var be=JSON.stringify($,function(ne,W){var ye=Y(W);return ye==="symbol"?String(W):W});return new g("Invalid "+fe+" `"+le+"` of value `"+String(ve)+"` "+("supplied to `"+te+"`, expected one of "+be+"."))}return b(K)}function A($){function K(ae,ie,te,fe,le){if(typeof $!="function")return new g("Property `"+le+"` of component `"+te+"` has invalid PropType notation inside objectOf.");var ve=ae[ie],_e=z(ve);if(_e!=="object")return new g("Invalid "+fe+" `"+le+"` of type "+("`"+_e+"` supplied to `"+te+"`, expected an object."));for(var be in ve)if(r(ve,be)){var we=$(ve,be,te,fe,le+"."+be,n);if(we instanceof Error)return we}return null}return b(K)}function L($){if(!Array.isArray($))return a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var K=0;K<$.length;K++){var ae=$[K];if(typeof ae!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+q(ae)+" at index "+K+"."),o}function ie(te,fe,le,ve,_e){for(var be=[],we=0;we<$.length;we++){var ne=$[we],W=ne(te,fe,le,ve,_e,n);if(W==null)return null;W.data&&r(W.data,"expectedType")&&be.push(W.data.expectedType)}var ye=be.length>0?", expected one of type ["+be.join(", ")+"]":"";return new g("Invalid "+ve+" `"+_e+"` supplied to "+("`"+le+"`"+ye+"."))}return b(ie)}function N(){function $(K,ae,ie,te,fe){return D(K[ae])?null:new g("Invalid "+te+" `"+fe+"` supplied to "+("`"+ie+"`, expected a ReactNode."))}return b($)}function F($,K,ae,ie,te){return new g(($||"React class")+": "+K+" type `"+ae+"."+ie+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+te+"`.")}function H($){function K(ae,ie,te,fe,le){var ve=ae[ie],_e=z(ve);if(_e!=="object")return new g("Invalid "+fe+" `"+le+"` of type `"+_e+"` "+("supplied to `"+te+"`, expected `object`."));for(var be in $){var we=$[be];if(typeof we!="function")return F(te,fe,le,be,Y(we));var ne=we(ve,be,te,fe,le+"."+be,n);if(ne)return ne}return null}return b(K)}function V($){function K(ae,ie,te,fe,le){var ve=ae[ie],_e=z(ve);if(_e!=="object")return new g("Invalid "+fe+" `"+le+"` of type `"+_e+"` "+("supplied to `"+te+"`, expected `object`."));var be=t({},ae[ie],$);for(var we in be){var ne=$[we];if(r($,we)&&typeof ne!="function")return F(te,fe,le,we,Y(ne));if(!ne)return new g("Invalid "+fe+" `"+le+"` key `"+we+"` supplied to `"+te+"`.\nBad object: "+JSON.stringify(ae[ie],null," ")+`
110
- Valid keys: `+JSON.stringify(Object.keys($),null," "));var W=ne(ve,we,te,fe,le+"."+we,n);if(W)return W}return null}return b(K)}function D($){switch(typeof $){case"number":case"string":case"undefined":return!0;case"boolean":return!$;case"object":if(Array.isArray($))return $.every(D);if($===null||u($))return!0;var K=h($);if(K){var ae=K.call($),ie;if(K!==$.entries){for(;!(ie=ae.next()).done;)if(!D(ie.value))return!1}else for(;!(ie=ae.next()).done;){var te=ie.value;if(te&&!D(te[1]))return!1}}else return!1;return!0;default:return!1}}function j($,K){return $==="symbol"?!0:K?K["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&K instanceof Symbol:!1}function z($){var K=typeof $;return Array.isArray($)?"array":$ instanceof RegExp?"object":j(K,$)?"symbol":K}function Y($){if(typeof $>"u"||$===null)return""+$;var K=z($);if(K==="object"){if($ instanceof Date)return"date";if($ instanceof RegExp)return"regexp"}return K}function q($){var K=Y($);switch(K){case"array":case"object":return"an "+K;case"boolean":case"date":case"regexp":return"a "+K;default:return K}}function J($){return!$.constructor||!$.constructor.name?p:$.constructor.name}return m.checkPropTypes=i,m.resetWarningCache=i.resetWarningCache,m.PropTypes=m,m},pp}var c_;function d9(){if(c_)return up.exports;c_=1;{var e=n_(),t=!0;up.exports=f9()(e.isElement,t)}return up.exports}var h9=d9();const Oe=ji(h9);function vp(){return vp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vp.apply(this,arguments)}function p9(e,t){if(e==null)return{};var n=v9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function v9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var mp=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=p9(e,["color","size"]);return M.createElement("svg",vp({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("polyline",{points:"20 6 9 17 4 12"}))});mp.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},mp.displayName="Check";function gp(){return gp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gp.apply(this,arguments)}function m9(e,t){if(e==null)return{};var n=g9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function g9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var cu=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=m9(e,["color","size"]);return M.createElement("svg",gp({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("polyline",{points:"6 9 12 15 18 9"}))});cu.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},cu.displayName="ChevronDown";function yp(){return yp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yp.apply(this,arguments)}function y9(e,t){if(e==null)return{};var n=b9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function b9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var bp=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=y9(e,["color","size"]);return M.createElement("svg",yp({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("polyline",{points:"15 18 9 12 15 6"}))});bp.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},bp.displayName="ChevronLeft";function _p(){return _p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_p.apply(this,arguments)}function _9(e,t){if(e==null)return{};var n=w9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function w9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Fo=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=_9(e,["color","size"]);return M.createElement("svg",_p({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("polyline",{points:"9 18 15 12 9 6"}))});Fo.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},Fo.displayName="ChevronRight";function wp(){return wp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wp.apply(this,arguments)}function E9(e,t){if(e==null)return{};var n=S9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function S9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ep=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=E9(e,["color","size"]);return M.createElement("svg",wp({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("polyline",{points:"18 15 12 9 6 15"}))});Ep.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},Ep.displayName="ChevronUp";function Sp(){return Sp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sp.apply(this,arguments)}function x9(e,t){if(e==null)return{};var n=C9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function C9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var xp=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=x9(e,["color","size"]);return M.createElement("svg",Sp({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),M.createElement("polyline",{points:"7 10 12 15 17 10"}),M.createElement("line",{x1:"12",y1:"15",x2:"12",y2:"3"}))});xp.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},xp.displayName="Download";function Cp(){return Cp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cp.apply(this,arguments)}function T9(e,t){if(e==null)return{};var n=O9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function O9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Tp=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=T9(e,["color","size"]);return M.createElement("svg",Cp({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),M.createElement("polyline",{points:"15 3 21 3 21 9"}),M.createElement("line",{x1:"10",y1:"14",x2:"21",y2:"3"}))});Tp.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},Tp.displayName="ExternalLink";function Op(){return Op=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Op.apply(this,arguments)}function k9(e,t){if(e==null)return{};var n=R9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function R9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var kp=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=k9(e,["color","size"]);return M.createElement("svg",Op({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),M.createElement("polyline",{points:"14 2 14 8 20 8"}),M.createElement("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),M.createElement("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),M.createElement("polyline",{points:"10 9 9 9 8 9"}))});kp.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},kp.displayName="FileText";function Rp(){return Rp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rp.apply(this,arguments)}function A9(e,t){if(e==null)return{};var n=P9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function P9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Zi=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=A9(e,["color","size"]);return M.createElement("svg",Rp({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("line",{x1:"12",y1:"2",x2:"12",y2:"6"}),M.createElement("line",{x1:"12",y1:"18",x2:"12",y2:"22"}),M.createElement("line",{x1:"4.93",y1:"4.93",x2:"7.76",y2:"7.76"}),M.createElement("line",{x1:"16.24",y1:"16.24",x2:"19.07",y2:"19.07"}),M.createElement("line",{x1:"2",y1:"12",x2:"6",y2:"12"}),M.createElement("line",{x1:"18",y1:"12",x2:"22",y2:"12"}),M.createElement("line",{x1:"4.93",y1:"19.07",x2:"7.76",y2:"16.24"}),M.createElement("line",{x1:"16.24",y1:"7.76",x2:"19.07",y2:"4.93"}))});Zi.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},Zi.displayName="Loader";function Ap(){return Ap=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ap.apply(this,arguments)}function N9(e,t){if(e==null)return{};var n=I9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function I9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Pp=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=N9(e,["color","size"]);return M.createElement("svg",Ap({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("path",{d:"M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"}))});Pp.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},Pp.displayName="Paperclip";function Np(){return Np=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Np.apply(this,arguments)}function L9(e,t){if(e==null)return{};var n=F9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function F9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ip=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=L9(e,["color","size"]);return M.createElement("svg",Np({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("circle",{cx:"11",cy:"11",r:"8"}),M.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))});Ip.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},Ip.displayName="Search";function Lp(){return Lp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lp.apply(this,arguments)}function D9(e,t){if(e==null)return{};var n=M9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function M9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Fp=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=D9(e,["color","size"]);return M.createElement("svg",Lp({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),M.createElement("polygon",{points:"22 2 15 22 11 13 2 9 22 2"}))});Fp.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},Fp.displayName="Send";function Dp(){return Dp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dp.apply(this,arguments)}function j9(e,t){if(e==null)return{};var n=$9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Mp=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=j9(e,["color","size"]);return M.createElement("svg",Dp({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("path",{d:"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"}))});Mp.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},Mp.displayName="ThumbsDown";function jp(){return jp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jp.apply(this,arguments)}function V9(e,t){if(e==null)return{};var n=q9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function q9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var $p=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=V9(e,["color","size"]);return M.createElement("svg",jp({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("path",{d:"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"}))});$p.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},$p.displayName="ThumbsUp";function Vp(){return Vp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vp.apply(this,arguments)}function U9(e,t){if(e==null)return{};var n=z9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function z9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var qp=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=U9(e,["color","size"]);return M.createElement("svg",Vp({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("polyline",{points:"3 6 5 6 21 6"}),M.createElement("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}))});qp.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},qp.displayName="Trash";function Up(){return Up=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Up.apply(this,arguments)}function H9(e,t){if(e==null)return{};var n=B9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function B9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var zp=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=H9(e,["color","size"]);return M.createElement("svg",Up({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),M.createElement("polyline",{points:"17 8 12 3 7 8"}),M.createElement("line",{x1:"12",y1:"3",x2:"12",y2:"15"}))});zp.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},zp.displayName="Upload";function Hp(){return Hp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hp.apply(this,arguments)}function W9(e,t){if(e==null)return{};var n=G9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function G9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ji=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=W9(e,["color","size"]);return M.createElement("svg",Hp({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),M.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))});Ji.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},Ji.displayName="X";const f_=e=>{const[t,n]=M.useState(typeof window<"u"&&window.matchMedia(e).matches);return M.useLayoutEffect(()=>{const r=window.matchMedia(e),i=a=>{n(a.matches)};return r.addEventListener("change",i),()=>r.removeEventListener("change",i)},[e]),t},Q9=(e,t)=>{const n=M.useRef(null);return M.useEffect(()=>()=>{n.current&&clearTimeout(n.current)},[]),(...i)=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{e(...i)},t)}},Y9=async()=>{var t;const e=await z2().get("/organization-brand/widget");return((t=e==null?void 0:e.data)==null?void 0:t.data)||{}},K9=e=>{const t=e||"#00a1e0";document.documentElement.style.setProperty("--ed-brand-color",t)},X9=e=>{const t=e||"Poppins";document.documentElement.style.setProperty("--main-font",t)};var fu={},Do={},tc={},Da={},Ma={},Bp={},d_;function h_(){return d_||(d_=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function n(r){return r.type===t.Tag||r.type===t.Script||r.type===t.Style}e.isTag=n,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype}(Bp)),Bp}var Xe={},p_;function v_(){if(p_)return Xe;p_=1;var e=Xe&&Xe.__extends||function(){var _=function(x,k){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,L){A.__proto__=L}||function(A,L){for(var N in L)Object.prototype.hasOwnProperty.call(L,N)&&(A[N]=L[N])},_(x,k)};return function(x,k){if(typeof k!="function"&&k!==null)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");_(x,k);function A(){this.constructor=x}x.prototype=k===null?Object.create(k):(A.prototype=k.prototype,new A)}}(),t=Xe&&Xe.__assign||function(){return t=Object.assign||function(_){for(var x,k=1,A=arguments.length;k<A;k++){x=arguments[k];for(var L in x)Object.prototype.hasOwnProperty.call(x,L)&&(_[L]=x[L])}return _},t.apply(this,arguments)};Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.cloneNode=Xe.hasChildren=Xe.isDocument=Xe.isDirective=Xe.isComment=Xe.isText=Xe.isCDATA=Xe.isTag=Xe.Element=Xe.Document=Xe.CDATA=Xe.NodeWithChildren=Xe.ProcessingInstruction=Xe.Comment=Xe.Text=Xe.DataNode=Xe.Node=void 0;var n=h_(),r=function(){function _(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(_.prototype,"parentNode",{get:function(){return this.parent},set:function(x){this.parent=x},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"previousSibling",{get:function(){return this.prev},set:function(x){this.prev=x},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"nextSibling",{get:function(){return this.next},set:function(x){this.next=x},enumerable:!1,configurable:!0}),_.prototype.cloneNode=function(x){return x===void 0&&(x=!1),C(this,x)},_}();Xe.Node=r;var i=function(_){e(x,_);function x(k){var A=_.call(this)||this;return A.data=k,A}return Object.defineProperty(x.prototype,"nodeValue",{get:function(){return this.data},set:function(k){this.data=k},enumerable:!1,configurable:!0}),x}(r);Xe.DataNode=i;var a=function(_){e(x,_);function x(){var k=_!==null&&_.apply(this,arguments)||this;return k.type=n.ElementType.Text,k}return Object.defineProperty(x.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),x}(i);Xe.Text=a;var o=function(_){e(x,_);function x(){var k=_!==null&&_.apply(this,arguments)||this;return k.type=n.ElementType.Comment,k}return Object.defineProperty(x.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),x}(i);Xe.Comment=o;var u=function(_){e(x,_);function x(k,A){var L=_.call(this,A)||this;return L.name=k,L.type=n.ElementType.Directive,L}return Object.defineProperty(x.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),x}(i);Xe.ProcessingInstruction=u;var l=function(_){e(x,_);function x(k){var A=_.call(this)||this;return A.children=k,A}return Object.defineProperty(x.prototype,"firstChild",{get:function(){var k;return(k=this.children[0])!==null&&k!==void 0?k:null},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"childNodes",{get:function(){return this.children},set:function(k){this.children=k},enumerable:!1,configurable:!0}),x}(r);Xe.NodeWithChildren=l;var f=function(_){e(x,_);function x(){var k=_!==null&&_.apply(this,arguments)||this;return k.type=n.ElementType.CDATA,k}return Object.defineProperty(x.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),x}(l);Xe.CDATA=f;var d=function(_){e(x,_);function x(){var k=_!==null&&_.apply(this,arguments)||this;return k.type=n.ElementType.Root,k}return Object.defineProperty(x.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),x}(l);Xe.Document=d;var h=function(_){e(x,_);function x(k,A,L,N){L===void 0&&(L=[]),N===void 0&&(N=k==="script"?n.ElementType.Script:k==="style"?n.ElementType.Style:n.ElementType.Tag);var F=_.call(this,L)||this;return F.name=k,F.attribs=A,F.type=N,F}return Object.defineProperty(x.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"tagName",{get:function(){return this.name},set:function(k){this.name=k},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"attributes",{get:function(){var k=this;return Object.keys(this.attribs).map(function(A){var L,N;return{name:A,value:k.attribs[A],namespace:(L=k["x-attribsNamespace"])===null||L===void 0?void 0:L[A],prefix:(N=k["x-attribsPrefix"])===null||N===void 0?void 0:N[A]}})},enumerable:!1,configurable:!0}),x}(l);Xe.Element=h;function p(_){return(0,n.isTag)(_)}Xe.isTag=p;function m(_){return _.type===n.ElementType.CDATA}Xe.isCDATA=m;function y(_){return _.type===n.ElementType.Text}Xe.isText=y;function g(_){return _.type===n.ElementType.Comment}Xe.isComment=g;function b(_){return _.type===n.ElementType.Directive}Xe.isDirective=b;function w(_){return _.type===n.ElementType.Root}Xe.isDocument=w;function S(_){return Object.prototype.hasOwnProperty.call(_,"children")}Xe.hasChildren=S;function C(_,x){x===void 0&&(x=!1);var k;if(y(_))k=new a(_.data);else if(g(_))k=new o(_.data);else if(p(_)){var A=x?T(_.children):[],L=new h(_.name,t({},_.attribs),A);A.forEach(function(V){return V.parent=L}),_.namespace!=null&&(L.namespace=_.namespace),_["x-attribsNamespace"]&&(L["x-attribsNamespace"]=t({},_["x-attribsNamespace"])),_["x-attribsPrefix"]&&(L["x-attribsPrefix"]=t({},_["x-attribsPrefix"])),k=L}else if(m(_)){var A=x?T(_.children):[],N=new f(A);A.forEach(function(D){return D.parent=N}),k=N}else if(w(_)){var A=x?T(_.children):[],F=new d(A);A.forEach(function(D){return D.parent=F}),_["x-mode"]&&(F["x-mode"]=_["x-mode"]),k=F}else if(b(_)){var H=new u(_.name,_.data);_["x-name"]!=null&&(H["x-name"]=_["x-name"],H["x-publicId"]=_["x-publicId"],H["x-systemId"]=_["x-systemId"]),k=H}else throw new Error("Not implemented yet: ".concat(_.type));return k.startIndex=_.startIndex,k.endIndex=_.endIndex,_.sourceCodeLocation!=null&&(k.sourceCodeLocation=_.sourceCodeLocation),k}Xe.cloneNode=C;function T(_){for(var x=_.map(function(A){return C(A,!0)}),k=1;k<x.length;k++)x[k].prev=x[k-1],x[k-1].next=x[k];return x}return Xe}var m_;function g_(){return m_||(m_=1,function(e){var t=Ma&&Ma.__createBinding||(Object.create?function(u,l,f,d){d===void 0&&(d=f);var h=Object.getOwnPropertyDescriptor(l,f);(!h||("get"in h?!l.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return l[f]}}),Object.defineProperty(u,d,h)}:function(u,l,f,d){d===void 0&&(d=f),u[d]=l[f]}),n=Ma&&Ma.__exportStar||function(u,l){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(l,f)&&t(l,u,f)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=h_(),i=v_();n(v_(),e);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function u(l,f,d){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof f=="function"&&(d=f,f=a),typeof l=="object"&&(f=l,l=void 0),this.callback=l??null,this.options=f??a,this.elementCB=d??null}return u.prototype.onparserinit=function(l){this.parser=l},u.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},u.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},u.prototype.onerror=function(l){this.handleCallback(l)},u.prototype.onclosetag=function(){this.lastNode=null;var l=this.tagStack.pop();this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(l)},u.prototype.onopentag=function(l,f){var d=this.options.xmlMode?r.ElementType.Tag:void 0,h=new i.Element(l,f,void 0,d);this.addNode(h),this.tagStack.push(h)},u.prototype.ontext=function(l){var f=this.lastNode;if(f&&f.type===r.ElementType.Text)f.data+=l,this.options.withEndIndices&&(f.endIndex=this.parser.endIndex);else{var d=new i.Text(l);this.addNode(d),this.lastNode=d}},u.prototype.oncomment=function(l){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=l;return}var f=new i.Comment(l);this.addNode(f),this.lastNode=f},u.prototype.oncommentend=function(){this.lastNode=null},u.prototype.oncdatastart=function(){var l=new i.Text(""),f=new i.CDATA([l]);this.addNode(f),l.parent=f,this.lastNode=l},u.prototype.oncdataend=function(){this.lastNode=null},u.prototype.onprocessinginstruction=function(l,f){var d=new i.ProcessingInstruction(l,f);this.addNode(d)},u.prototype.handleCallback=function(l){if(typeof this.callback=="function")this.callback(l,this.dom);else if(l)throw l},u.prototype.addNode=function(l){var f=this.tagStack[this.tagStack.length-1],d=f.children[f.children.length-1];this.options.withStartIndices&&(l.startIndex=this.parser.startIndex),this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),f.children.push(l),d&&(l.prev=d,d.next=l),l.parent=f,this.lastNode=null},u}();e.DomHandler=o,e.default=o}(Ma)),Ma}var Wp={},y_;function Z9(){return y_||(y_=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=e.CARRIAGE_RETURN_PLACEHOLDER=e.CARRIAGE_RETURN_REGEX=e.CARRIAGE_RETURN=e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce(function(t,n){return t[n.toLowerCase()]=n,t},{}),e.CARRIAGE_RETURN="\r",e.CARRIAGE_RETURN_REGEX=new RegExp(e.CARRIAGE_RETURN,"g"),e.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(e.CARRIAGE_RETURN_PLACEHOLDER,"g")}(Wp)),Wp}var b_;function __(){if(b_)return Da;b_=1,Object.defineProperty(Da,"__esModule",{value:!0}),Da.formatAttributes=r,Da.escapeSpecialCharacters=a,Da.revertEscapedCharacters=o,Da.formatDOM=u;var e=g_(),t=Z9();function n(l){return t.CASE_SENSITIVE_TAG_NAMES_MAP[l]}function r(l){for(var f={},d=0,h=l.length;d<h;d++){var p=l[d];f[p.name]=p.value}return f}function i(l){l=l.toLowerCase();var f=n(l);return f||l}function a(l){return l.replace(t.CARRIAGE_RETURN_REGEX,t.CARRIAGE_RETURN_PLACEHOLDER)}function o(l){return l.replace(t.CARRIAGE_RETURN_PLACEHOLDER_REGEX,t.CARRIAGE_RETURN)}function u(l,f,d){f===void 0&&(f=null);for(var h=[],p,m=0,y=l.length;m<y;m++){var g=l[m];switch(g.nodeType){case 1:{var b=i(g.nodeName);p=new e.Element(b,r(g.attributes)),p.children=u(b==="template"?g.content.childNodes:g.childNodes,p);break}case 3:p=new e.Text(o(g.nodeValue));break;case 8:p=new e.Comment(g.nodeValue);break;default:continue}var w=h[m-1]||null;w&&(w.next=p),p.parent=f,p.prev=w,p.next=null,h.push(p)}return d&&(p=new e.ProcessingInstruction(d.substring(0,d.indexOf(" ")).toLowerCase(),d),p.next=h[0]||null,p.parent=f,h.unshift(p),h[1]&&(h[1].prev=h[0])),h}return Da}var w_;function J9(){if(w_)return tc;w_=1,Object.defineProperty(tc,"__esModule",{value:!0}),tc.default=g;var e=__(),t="html",n="head",r="body",i=/<([a-zA-Z]+[0-9]?)/,a=/<head[^]*>/i,o=/<body[^]*>/i,u=function(b,w){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},l=function(b,w){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},f=typeof window=="object"&&window.DOMParser;if(typeof f=="function"){var d=new f,h="text/html";l=function(b,w){return w&&(b="<".concat(w,">").concat(b,"</").concat(w,">")),d.parseFromString(b,h)},u=l}if(typeof document=="object"&&document.implementation){var p=document.implementation.createHTMLDocument();u=function(b,w){if(w){var S=p.documentElement.querySelector(w);return S&&(S.innerHTML=b),p}return p.documentElement.innerHTML=b,p}}var m=typeof document=="object"&&document.createElement("template"),y;m&&m.content&&(y=function(b){return m.innerHTML=b,m.content.childNodes});function g(b){var w,S;b=(0,e.escapeSpecialCharacters)(b);var C=b.match(i),T=C&&C[1]?C[1].toLowerCase():"";switch(T){case t:{var _=l(b);if(!a.test(b)){var x=_.querySelector(n);(w=x==null?void 0:x.parentNode)===null||w===void 0||w.removeChild(x)}if(!o.test(b)){var x=_.querySelector(r);(S=x==null?void 0:x.parentNode)===null||S===void 0||S.removeChild(x)}return _.querySelectorAll(t)}case n:case r:{var k=u(b).querySelectorAll(T);return o.test(b)&&a.test(b)?k[0].parentNode.childNodes:k}default:{if(y)return y(b);var x=u(b,r).querySelector(r);return x.childNodes}}}return tc}var E_;function e7(){if(E_)return Do;E_=1;var e=Do&&Do.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Do,"__esModule",{value:!0}),Do.default=i;var t=e(J9()),n=__(),r=/<(![a-zA-Z\s]+)>/;function i(a){if(typeof a!="string")throw new TypeError("First argument must be a string");if(!a)return[];var o=a.match(r),u=o?o[1]:void 0;return(0,n.formatDOM)((0,t.default)(a),null,u)}return Do}var nc={},wr={},du={},S_;function t7(){if(S_)return du;S_=1;var e=0;du.SAME=e;var t=1;return du.CAMELCASE=t,du.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1},du}var x_;function n7(){if(x_)return wr;x_=1;const e=0,t=1,n=2,r=3,i=4,a=5,o=6;function u(_){return f.hasOwnProperty(_)?f[_]:null}function l(_,x,k,A,L,N,F){this.acceptsBooleans=x===n||x===r||x===i,this.attributeName=A,this.attributeNamespace=L,this.mustUseProperty=k,this.propertyName=_,this.type=x,this.sanitizeURL=N,this.removeEmptyString=F}const f={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(_=>{f[_]=new l(_,e,!1,_,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([_,x])=>{f[_]=new l(_,t,!1,x,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(_=>{f[_]=new l(_,n,!1,_.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(_=>{f[_]=new l(_,n,!1,_,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(_=>{f[_]=new l(_,r,!1,_.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(_=>{f[_]=new l(_,r,!0,_,null,!1,!1)}),["capture","download"].forEach(_=>{f[_]=new l(_,i,!1,_,null,!1,!1)}),["cols","rows","size","span"].forEach(_=>{f[_]=new l(_,o,!1,_,null,!1,!1)}),["rowSpan","start"].forEach(_=>{f[_]=new l(_,a,!1,_.toLowerCase(),null,!1,!1)});const h=/[\-\:]([a-z])/g,p=_=>_[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(_=>{const x=_.replace(h,p);f[x]=new l(x,t,!1,_,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(_=>{const x=_.replace(h,p);f[x]=new l(x,t,!1,_,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(_=>{const x=_.replace(h,p);f[x]=new l(x,t,!1,_,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(_=>{f[_]=new l(_,t,!1,_.toLowerCase(),null,!1,!1)});const m="xlinkHref";f[m]=new l("xlinkHref",t,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(_=>{f[_]=new l(_,t,!1,_.toLowerCase(),null,!0,!0)});const{CAMELCASE:y,SAME:g,possibleStandardNames:b}=t7(),S=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD"+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",C=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+S+"]*$")),T=Object.keys(b).reduce((_,x)=>{const k=b[x];return k===g?_[x]=x:k===y?_[x.toLowerCase()]=x:_[x]=k,_},{});return wr.BOOLEAN=r,wr.BOOLEANISH_STRING=n,wr.NUMERIC=a,wr.OVERLOADED_BOOLEAN=i,wr.POSITIVE_NUMERIC=o,wr.RESERVED=e,wr.STRING=t,wr.getPropertyInfo=u,wr.isCustomAttribute=C,wr.possibleStandardNames=T,wr}var hu={},Mo={},Gp,C_;function r7(){if(C_)return Gp;C_=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,u=/^\s+|\s+$/g,l=`
111
- `,f="/",d="*",h="",p="comment",m="declaration";Gp=function(g,b){if(typeof g!="string")throw new TypeError("First argument must be a string");if(!g)return[];b=b||{};var w=1,S=1;function C(V){var D=V.match(t);D&&(w+=D.length);var j=V.lastIndexOf(l);S=~j?V.length-j:S+V.length}function T(){var V={line:w,column:S};return function(D){return D.position=new _(V),A(),D}}function _(V){this.start=V,this.end={line:w,column:S},this.source=b.source}_.prototype.content=g;function x(V){var D=new Error(b.source+":"+w+":"+S+": "+V);if(D.reason=V,D.filename=b.source,D.line=w,D.column=S,D.source=g,!b.silent)throw D}function k(V){var D=V.exec(g);if(D){var j=D[0];return C(j),g=g.slice(j.length),D}}function A(){k(n)}function L(V){var D;for(V=V||[];D=N();)D!==!1&&V.push(D);return V}function N(){var V=T();if(!(f!=g.charAt(0)||d!=g.charAt(1))){for(var D=2;h!=g.charAt(D)&&(d!=g.charAt(D)||f!=g.charAt(D+1));)++D;if(D+=2,h===g.charAt(D-1))return x("End of comment missing");var j=g.slice(2,D-2);return S+=2,C(j),g=g.slice(D),S+=2,V({type:p,comment:j})}}function F(){var V=T(),D=k(r);if(D){if(N(),!k(i))return x("property missing ':'");var j=k(a),z=V({type:m,property:y(D[0].replace(e,h)),value:j?y(j[0].replace(e,h)):h});return k(o),z}}function H(){var V=[];L(V);for(var D;D=F();)D!==!1&&(V.push(D),L(V));return V}return A(),H()};function y(g){return g?g.replace(u,h):h}return Gp}var T_;function i7(){if(T_)return Mo;T_=1;var e=Mo&&Mo.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.default=n;var t=e(r7());function n(r,i){var a=null;if(!r||typeof r!="string")return a;var o=(0,t.default)(r),u=typeof i=="function";return o.forEach(function(l){if(l.type==="declaration"){var f=l.property,d=l.value;u?i(f,d,l):d&&(a=a||{},a[f]=d)}}),a}return Mo}var pu={},O_;function a7(){if(O_)return pu;O_=1,Object.defineProperty(pu,"__esModule",{value:!0}),pu.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(f){return!f||n.test(f)||e.test(f)},o=function(f,d){return d.toUpperCase()},u=function(f,d){return"".concat(d,"-")},l=function(f,d){return d===void 0&&(d={}),a(f)?f:(f=f.toLowerCase(),d.reactCompat?f=f.replace(i,u):f=f.replace(r,u),f.replace(t,o))};return pu.camelCase=l,pu}var vu,k_;function o7(){if(k_)return vu;k_=1;var e=vu&&vu.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(i7()),n=a7();function r(i,a){var o={};return!i||typeof i!="string"||(0,t.default)(i,function(u,l){u&&l&&(o[(0,n.camelCase)(u,a)]=l)}),o}return r.default=r,vu=r,vu}var R_;function A_(){return R_||(R_=1,function(e){var t=hu&&hu.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=void 0,e.isCustomComponent=a,e.setStyleProp=u;var n=M,r=t(o7()),i=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function a(d,h){return d.includes("-")?!i.has(d):!!(h&&typeof h.is=="string")}var o={reactCompat:!0};function u(d,h){if(typeof d=="string"){if(!d.trim()){h.style={};return}try{h.style=(0,r.default)(d,o)}catch{h.style={}}}}e.PRESERVE_CUSTOM_ATTRIBUTES=Number(n.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var l=function(d){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(d.name)};e.canTextBeChildOfNode=l;var f=function(d){return d};e.returnFirstArg=f}(hu)),hu}var P_;function N_(){if(P_)return nc;P_=1,Object.defineProperty(nc,"__esModule",{value:!0}),nc.default=a;var e=n7(),t=A_(),n=["checked","value"],r=["input","select","textarea"],i={reset:!0,submit:!0};function a(u,l){u===void 0&&(u={});var f={},d=!!(u.type&&i[u.type]);for(var h in u){var p=u[h];if((0,e.isCustomAttribute)(h)){f[h]=p;continue}var m=h.toLowerCase(),y=o(m);if(y){var g=(0,e.getPropertyInfo)(y);switch(n.includes(y)&&r.includes(l)&&!d&&(y=o("default"+m)),f[y]=p,g&&g.type){case e.BOOLEAN:f[y]=!0;break;case e.OVERLOADED_BOOLEAN:p===""&&(f[y]=!0);break}continue}t.PRESERVE_CUSTOM_ATTRIBUTES&&(f[h]=p)}return(0,t.setStyleProp)(u.style,f),f}function o(u){return e.possibleStandardNames[u]}return nc}var jo={},I_;function s7(){if(I_)return jo;I_=1;var e=jo&&jo.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(jo,"__esModule",{value:!0}),jo.default=a;var t=M,n=e(N_()),r=A_(),i={cloneElement:t.cloneElement,createElement:t.createElement,isValidElement:t.isValidElement};function a(u,l){l===void 0&&(l={});for(var f=[],d=typeof l.replace=="function",h=l.transform||r.returnFirstArg,p=l.library||i,m=p.cloneElement,y=p.createElement,g=p.isValidElement,b=u.length,w=0;w<b;w++){var S=u[w];if(d){var C=l.replace(S,w);if(g(C)){b>1&&(C=m(C,{key:C.key||w})),f.push(h(C,S,w));continue}}if(S.type==="text"){var T=!S.data.trim().length;if(T&&S.parent&&!(0,r.canTextBeChildOfNode)(S.parent)||l.trim&&T)continue;f.push(h(S.data,S,w));continue}var _=S,x={};o(_)?((0,r.setStyleProp)(_.attribs.style,_.attribs),x=_.attribs):_.attribs&&(x=(0,n.default)(_.attribs,_.name));var k=void 0;switch(S.type){case"script":case"style":S.children[0]&&(x.dangerouslySetInnerHTML={__html:S.children[0].data});break;case"tag":S.name==="textarea"&&S.children[0]?x.defaultValue=S.children[0].data:S.children&&S.children.length&&(k=a(S.children,l));break;default:continue}b>1&&(x.key=w),f.push(h(y(S.name,x,k),S,w))}return f.length===1?f[0]:f}function o(u){return r.PRESERVE_CUSTOM_ATTRIBUTES&&u.type==="tag"&&(0,r.isCustomComponent)(u.name,u.attribs)}return jo}var L_;function u7(){return L_||(L_=1,function(e){var t=fu&&fu.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=u;var n=t(e7());e.htmlToDOM=n.default;var r=t(N_());e.attributesToProps=r.default;var i=t(s7());e.domToReact=i.default;var a=g_();Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return a.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return a.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return a.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return a.Text}});var o={lowerCaseAttributeNames:!1};function u(l,f){if(typeof l!="string")throw new TypeError("First argument must be a string");return l?(0,i.default)((0,n.default)(l,(f==null?void 0:f.htmlparser2)||o),f):[]}}(fu)),fu}var l7=u7();const F_=ji(l7),mu=F_.default||F_,c7=({articlesData:e,setArticleId:t,setSearchedText:n,setArticlesData:r})=>O.jsxs("div",{children:[O.jsxs("p",{className:"ed-text-14 ed-text-border-regular ed-font-medium ed-py-4 ed-px-2 ed-border-b ed-border-border-light ed-block ed-first-letter:uppercase ed-lowercase",children:[ze.size(e)," articles"]}),O.jsx("div",{className:"ed-mt-4 ed-space-y-4",children:e==null?void 0:e.map(i=>O.jsxs("button",{type:"button",className:"ed-flex ed-items-center ed-gap-2 ed-flex-1 ed-w-full ed-px-5 ed-py-2 ed-hover:bg-white-light ed-group ed-text-left",onClick:()=>{t(i==null?void 0:i.id),n(""),r([])},children:[O.jsx("p",{className:"ed-text-border-dark ed-text-14 ed-font-medium ed-group-hover:text-brand-link ed-flex-1 ed-duration-500 ed-ease-in-out ed-transition-all",children:mu((i==null?void 0:i.title)||"")}),O.jsx("div",{className:"ed-size-4 ed--translate-x-2 ed-opacity-0 ed-group-hover:opacity-100 ed-group-hover:translate-x-2 ed-duration-300 ed-transition-all",children:O.jsx(Fo,{className:"ed-text-border ed-size-4"})})]},i==null?void 0:i.id))})]});for(var ja=256,D_=[],M_=256,rc;ja--;)D_[ja]=(ja+256).toString(16).substring(1);function Qp(e){var t=0,n=11;if(!rc||ja+n>M_*2)for(rc="",ja=0;t<M_;t++)rc+=D_[Math.random()*256|0];return rc.substring(ja,ja+++n)}const f7=(e,t,n)=>{const r=e[t];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((i,a)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(a.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})},He=e=>typeof e=="string",gu=()=>{let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n},j_=e=>e==null?"":""+e,d7=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},h7=/###/g,$_=e=>e&&e.indexOf("###")>-1?e.replace(h7,"."):e,V_=e=>!e||He(e),yu=(e,t,n)=>{const r=He(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(V_(e))return{};const a=$_(r[i]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++i}return V_(e)?{}:{obj:e,k:$_(r[i])}},q_=(e,t,n)=>{const{obj:r,k:i}=yu(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),u=yu(e,o,Object);for(;u.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),u=yu(e,o,Object),u&&u.obj&&typeof u.obj[`${u.k}.${a}`]<"u"&&(u.obj=void 0);u.obj[`${u.k}.${a}`]=n},p7=(e,t,n,r)=>{const{obj:i,k:a}=yu(e,t,Object);i[a]=i[a]||[],i[a].push(n)},ic=(e,t)=>{const{obj:n,k:r}=yu(e,t);if(n)return n[r]},v7=(e,t,n)=>{const r=ic(e,n);return r!==void 0?r:ic(t,n)},U_=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?He(e[r])||e[r]instanceof String||He(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):U_(e[r],t[r],n):e[r]=t[r]);return e},$o=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var m7={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const g7=e=>He(e)?e.replace(/[&<>"'\/]/g,t=>m7[t]):e;class y7{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const b7=[" ",",","?","!",";"],_7=new y7(20),w7=(e,t,n)=>{t=t||"",n=n||"";const r=b7.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const i=_7.getRegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let a=!i.test(e);if(!a){const o=e.indexOf(n);o>0&&!i.test(e.substring(0,o))&&(a=!0)}return a},Yp=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let a=0;a<r.length;){if(!i||typeof i!="object")return;let o,u="";for(let l=a;l<r.length;++l)if(l!==a&&(u+=n),u+=r[l],o=i[u],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&l<r.length-1)continue;a+=l-a+1;break}i=o}return i},ac=e=>e&&e.replace("_","-"),E7={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class oc{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||E7,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(He(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new oc(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new oc(this.logger,t)}}var ri=new oc;class sc{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(o=>{let[u,l]=o;for(let f=0;f<l;f++)u(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(o=>{let[u,l]=o;for(let f=0;f<l;f++)u.apply(u,[t,...r])})}}class z_ extends sc{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let u;t.indexOf(".")>-1?u=t.split("."):(u=[t,n],r&&(Array.isArray(r)?u.push(...r):He(r)&&a?u.push(...r.split(a)):u.push(r)));const l=ic(this.data,u);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=u[0],n=u[1],r=u.slice(2).join(".")),l||!o||!He(r)?l:Yp(this.data&&this.data[t]&&this.data[t][n],r,a)}addResource(t,n,r,i){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let u=[t,n];r&&(u=u.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(u=t.split("."),i=n,n=u[1]),this.addNamespaces(n),q_(this.data,u,i),a.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const a in r)(He(r[a])||Array.isArray(r[a]))&&this.addResource(t,n,a,r[a],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,a){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},u=[t,n];t.indexOf(".")>-1&&(u=t.split("."),i=r,r=n,n=u[1]),this.addNamespaces(n);let l=ic(this.data,u)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?U_(l,r,a):l={...l,...r},q_(this.data,u,l),o.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var H_={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,n,r,i))}),t}};const B_={};class uc extends sc{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),d7(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ri.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let a=n.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,u=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!w7(t,r,i);if(o&&!u){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:He(a)?[a]:a};const f=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(f[0])>-1)&&(a=f.shift()),t=f.join(i)}return{key:t,namespaces:He(a)?[a]:a}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:o,namespaces:u}=this.extractFromKey(t[t.length-1],n),l=u[u.length-1],f=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(d){const T=n.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${T}${o}`,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${T}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:o}const h=this.resolve(t,n);let p=h&&h.res;const m=h&&h.usedKey||o,y=h&&h.exactUsedKey||o,g=Object.prototype.toString.apply(p),b=["[object Number]","[object Function]","[object RegExp]"],w=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,S=!this.i18nFormat||this.i18nFormat.handleAsObject,C=!He(p)&&typeof p!="boolean"&&typeof p!="number";if(S&&p&&C&&b.indexOf(g)<0&&!(He(w)&&Array.isArray(p))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const T=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,p,{...n,ns:u}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(h.res=T,h.usedParams=this.getUsedParamsDetails(n),h):T}if(a){const T=Array.isArray(p),_=T?[]:{},x=T?y:m;for(const k in p)if(Object.prototype.hasOwnProperty.call(p,k)){const A=`${x}${a}${k}`;_[k]=this.translate(A,{...n,joinArrays:!1,ns:u}),_[k]===A&&(_[k]=p[k])}p=_}}else if(S&&He(w)&&Array.isArray(p))p=p.join(w),p&&(p=this.extendTranslation(p,t,n,r));else{let T=!1,_=!1;const x=n.count!==void 0&&!He(n.count),k=uc.hasDefaultValue(n),A=x?this.pluralResolver.getSuffix(f,n.count,n):"",L=n.ordinal&&x?this.pluralResolver.getSuffix(f,n.count,{ordinal:!1}):"",N=x&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),F=N&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${A}`]||n[`defaultValue${L}`]||n.defaultValue;!this.isValidLookup(p)&&k&&(T=!0,p=F),this.isValidLookup(p)||(_=!0,p=o);const V=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&_?void 0:p,D=k&&F!==p&&this.options.updateMissing;if(_||T||D){if(this.logger.log(D?"updateKey":"missingKey",f,l,o,D?F:p),a){const q=this.resolve(o,{...n,keySeparator:!1});q&&q.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let j=[];const z=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&z&&z[0])for(let q=0;q<z.length;q++)j.push(z[q]);else this.options.saveMissingTo==="all"?j=this.languageUtils.toResolveHierarchy(n.lng||this.language):j.push(n.lng||this.language);const Y=(q,J,$)=>{const K=k&&$!==p?$:V;this.options.missingKeyHandler?this.options.missingKeyHandler(q,l,J,K,D,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(q,l,J,K,D,n),this.emit("missingKey",q,l,J,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&x?j.forEach(q=>{const J=this.pluralResolver.getSuffixes(q,n);N&&n[`defaultValue${this.options.pluralSeparator}zero`]&&J.indexOf(`${this.options.pluralSeparator}zero`)<0&&J.push(`${this.options.pluralSeparator}zero`),J.forEach($=>{Y([q],o+$,n[`defaultValue${$}`]||F)})}):Y(j,o,F))}p=this.extendTranslation(p,t,n,h,r),_&&p===o&&this.options.appendNamespaceToMissingKey&&(p=`${l}:${o}`),(_||T)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,T?p:void 0):p=this.options.parseMissingKeyHandler(p))}return i?(h.res=p,h.usedParams=this.getUsedParamsDetails(n),h):p}extendTranslation(t,n,r,i,a){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const f=He(t)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(f){const p=t.match(this.interpolator.nestingRegexp);d=p&&p.length}let h=r.replace&&!He(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),t=this.interpolator.interpolate(t,h,r.lng||this.language||i.usedLng,r),f){const p=t.match(this.interpolator.nestingRegexp),m=p&&p.length;d<m&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var p=arguments.length,m=new Array(p),y=0;y<p;y++)m[y]=arguments[y];return a&&a[0]===m[0]&&!r.context?(o.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${n[0]}`),null):o.translate(...m,n)},r)),r.interpolation&&this.interpolator.reset()}const u=r.postProcess||this.options.postProcess,l=He(u)?[u]:u;return t!=null&&l&&l.length&&r.applyPostProcessor!==!1&&(t=H_.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,a,o,u;return He(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const f=this.extractFromKey(l,n),d=f.key;i=d;let h=f.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const p=n.count!==void 0&&!He(n.count),m=p&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),y=n.context!==void 0&&(He(n.context)||typeof n.context=="number")&&n.context!=="",g=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);h.forEach(b=>{this.isValidLookup(r)||(u=b,!B_[`${g[0]}-${b}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(u)&&(B_[`${g[0]}-${b}`]=!0,this.logger.warn(`key "${i}" for languages "${g.join(", ")}" won't get resolved as namespace "${u}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(w=>{if(this.isValidLookup(r))return;o=w;const S=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(S,d,w,b,n);else{let T;p&&(T=this.pluralResolver.getSuffix(w,n.count,n));const _=`${this.options.pluralSeparator}zero`,x=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(S.push(d+T),n.ordinal&&T.indexOf(x)===0&&S.push(d+T.replace(x,this.options.pluralSeparator)),m&&S.push(d+_)),y){const k=`${d}${this.options.contextSeparator}${n.context}`;S.push(k),p&&(S.push(k+T),n.ordinal&&T.indexOf(x)===0&&S.push(k+T.replace(x,this.options.pluralSeparator)),m&&S.push(k+_))}}let C;for(;C=S.pop();)this.isValidLookup(r)||(a=C,r=this.getResource(w,b,C,n))}))})}),{res:r,usedKey:i,exactUsedKey:a,usedLng:o,usedNS:u}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!He(t.replace);let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const a of n)delete i[a]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const Kp=e=>e.charAt(0).toUpperCase()+e.slice(1);class W_{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ri.create("languageUtils")}getScriptPartFromCode(t){if(t=ac(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=ac(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(He(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let i=Intl.getCanonicalLocales(t)[0];if(i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i)return i}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Kp(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Kp(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Kp(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(a=>{if(a===i)return a;if(!(a.indexOf("-")<0&&i.indexOf("-")<0)&&(a.indexOf("-")>0&&i.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===i||a.indexOf(i)===0&&i.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),He(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],a=o=>{o&&(this.isSupportedCode(o)?i.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return He(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):He(t)&&a(this.formatLanguageCode(t)),r.forEach(o=>{i.indexOf(o)<0&&a(this.formatLanguageCode(o))}),i}}let S7=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],x7={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const C7=["v1","v2","v3"],T7=["v4"],G_={zero:0,one:1,two:2,few:3,many:4,other:5},O7=()=>{const e={};return S7.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:x7[t.fc]}})}),e};class k7{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=ri.create("pluralResolver"),(!this.options.compatibilityJSON||T7.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=O7(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const r=ac(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:r,type:i});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let o;try{o=new Intl.PluralRules(r,{type:i})}catch{if(!t.match(/-|_/))return;const l=this.languageUtils.getLanguagePartFromCode(t);o=this.getRule(l,n)}return this.pluralRulesCache[a]=o,o}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,a)=>G_[i]-G_[a]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const a=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!C7.includes(this.options.compatibilityJSON)}}const Q_=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=v7(e,t,n);return!a&&i&&He(n)&&(a=Yp(e,n,r),a===void 0&&(a=Yp(t,n,r))),a},Xp=e=>e.replace(/\$/g,"$$$$");class R7{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ri.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:a,prefixEscaped:o,suffix:u,suffixEscaped:l,formatSeparator:f,unescapeSuffix:d,unescapePrefix:h,nestingPrefix:p,nestingPrefixEscaped:m,nestingSuffix:y,nestingSuffixEscaped:g,nestingOptionsSeparator:b,maxReplaces:w,alwaysFormat:S}=t.interpolation;this.escape=n!==void 0?n:g7,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=a?$o(a):o||"{{",this.suffix=u?$o(u):l||"}}",this.formatSeparator=f||",",this.unescapePrefix=d?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=p?$o(p):m||$o("$t("),this.nestingSuffix=y?$o(y):g||$o(")"),this.nestingOptionsSeparator=b||",",this.maxReplaces=w||1e3,this.alwaysFormat=S!==void 0?S:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,i){let a,o,u;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},f=m=>{if(m.indexOf(this.formatSeparator)<0){const w=Q_(n,l,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(w,void 0,r,{...i,...n,interpolationkey:m}):w}const y=m.split(this.formatSeparator),g=y.shift().trim(),b=y.join(this.formatSeparator).trim();return this.format(Q_(n,l,g,this.options.keySeparator,this.options.ignoreJSONStructure),b,r,{...i,...n,interpolationkey:g})};this.resetRegExp();const d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,h=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>Xp(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?Xp(this.escape(m)):Xp(m)}].forEach(m=>{for(u=0;a=m.regex.exec(t);){const y=a[1].trim();if(o=f(y),o===void 0)if(typeof d=="function"){const b=d(t,a,i);o=He(b)?b:""}else if(i&&Object.prototype.hasOwnProperty.call(i,y))o="";else if(h){o=a[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),o="";else!He(o)&&!this.useRawValueToEscape&&(o=j_(o));const g=m.safeValue(o);if(t=t.replace(a[0],g),h?(m.regex.lastIndex+=o.length,m.regex.lastIndex-=a[0].length):m.regex.lastIndex=0,u++,u>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,a,o;const u=(l,f)=>{const d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;const h=l.split(new RegExp(`${d}[ ]*{`));let p=`{${h[1]}`;l=h[0],p=this.interpolate(p,o);const m=p.match(/'/g),y=p.match(/"/g);(m&&m.length%2===0&&!y||y.length%2!==0)&&(p=p.replace(/'/g,'"'));try{o=JSON.parse(p),f&&(o={...f,...o})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,g),`${l}${d}${p}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,l};for(;i=this.nestingRegexp.exec(t);){let l=[];o={...r},o=o.replace&&!He(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let f=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const d=i[1].split(this.formatSeparator).map(h=>h.trim());i[1]=d.shift(),l=d,f=!0}if(a=n(u.call(this,i[1].trim(),o),o),a&&i[0]===t&&!He(a))return a;He(a)||(a=j_(a)),a||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),a=""),f&&(a=l.reduce((d,h)=>this.format(d,h,r.lng,{...r,interpolationkey:i[1].trim()}),a.trim())),t=t.replace(i[0],a),this.regexp.lastIndex=0}return t}}const A7=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(o=>{if(o){const[u,...l]=o.split(":"),f=l.join(":").trim().replace(/^'+|'+$/g,""),d=u.trim();n[d]||(n[d]=f),f==="false"&&(n[d]=!1),f==="true"&&(n[d]=!0),isNaN(f)||(n[d]=parseInt(f,10))}})}return{formatName:t,formatOptions:n}},Vo=e=>{const t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});const o=r+JSON.stringify(a);let u=t[o];return u||(u=e(ac(r),i),t[o]=u),u(n)}};class P7{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ri.create("formatter"),this.options=t,this.formats={number:Vo((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return a=>i.format(a)}),currency:Vo((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return a=>i.format(a)}),datetime:Vo((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return a=>i.format(a)}),relativetime:Vo((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return a=>i.format(a,r.range||"day")}),list:Vo((n,r)=>{const i=new Intl.ListFormat(n,{...r});return a=>i.format(a)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Vo(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(u=>u.indexOf(")")>-1)){const u=a.findIndex(l=>l.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,u)].join(this.formatSeparator)}return a.reduce((u,l)=>{const{formatName:f,formatOptions:d}=A7(l);if(this.formats[f]){let h=u;try{const p=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},m=p.locale||p.lng||i.locale||i.lng||r;h=this.formats[f](u,m,{...d,...i,...p})}catch(p){this.logger.warn(p)}return h}else this.logger.warn(`there was no format function for ${f}`);return u},t)}}const N7=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class I7 extends sc{constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=ri.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const a={},o={},u={},l={};return t.forEach(f=>{let d=!0;n.forEach(h=>{const p=`${f}|${h}`;!r.reload&&this.store.hasResourceBundle(f,h)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?o[p]===void 0&&(o[p]=!0):(this.state[p]=1,d=!1,o[p]===void 0&&(o[p]=!0),a[p]===void 0&&(a[p]=!0),l[h]===void 0&&(l[h]=!0)))}),d||(u[f]=!0)}),(Object.keys(a).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(a),pending:Object.keys(o),toLoadLanguages:Object.keys(u),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const i=t.split("|"),a=i[0],o=i[1];n&&this.emit("failedLoading",a,o,n),!n&&r&&this.store.addResourceBundle(a,o,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const u={};this.queue.forEach(l=>{p7(l.loaded,[a],o),N7(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(f=>{u[f]||(u[f]={});const d=l.loaded[f];d.length&&d.forEach(h=>{u[f][h]===void 0&&(u[f][h]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:a,callback:o});return}this.readingCalls++;const u=(f,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(f&&d&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,i+1,a*2,o)},a);return}o(f,d)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const f=l(t,n);f&&typeof f.then=="function"?f.then(d=>u(null,d)).catch(u):u(null,f)}catch(f){u(f)}return}return l(t,n,u)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();He(t)&&(t=this.languageUtils.toResolveHierarchy(t)),He(n)&&(n=[n]);const a=this.queueLoad(t,n,r,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),i=r[0],a=r[1];this.read(i,a,"read",void 0,void 0,(o,u)=>{o&&this.logger.warn(`${n}loading namespace ${a} for language ${i} failed`,o),!o&&u&&this.logger.log(`${n}loaded namespace ${a} for language ${i}`,u),this.loaded(t,o,u)})}saveMissing(t,n,r,i,a){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...o,isUpdate:a},f=this.backend.create.bind(this.backend);if(f.length<6)try{let d;f.length===5?d=f(t,n,r,i,l):d=f(t,n,r,i),d&&typeof d.then=="function"?d.then(h=>u(null,h)).catch(u):u(null,d)}catch(d){u(d)}else f(t,n,r,i,u,l)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}const Y_=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),He(e[1])&&(t.defaultValue=e[1]),He(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),K_=e=>(He(e.ns)&&(e.ns=[e.ns]),He(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),He(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),lc=()=>{},L7=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class bu extends sc{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=K_(t),this.services={},this.logger=ri,this.modules={external:[]},L7(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(He(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=Y_();this.options={...i,...this.options,...K_(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const a=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?ri.init(a(this.modules.logger),this.options):ri.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=P7);const h=new W_(this.options);this.store=new z_(this.options.resources,this.options);const p=this.services;p.logger=ri,p.resourceStore=this.store,p.languageUtils=h,p.pluralResolver=new k7(h,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(p.formatter=a(d),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new R7(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new I7(a(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(m){for(var y=arguments.length,g=new Array(y>1?y-1:0),b=1;b<y;b++)g[b-1]=arguments[b];t.emit(m,...g)}),this.modules.languageDetector&&(p.languageDetector=a(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=a(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new uc(this.services,this.options),this.translator.on("*",function(m){for(var y=arguments.length,g=new Array(y>1?y-1:0),b=1;b<y;b++)g[b-1]=arguments[b];t.emit(m,...g)}),this.modules.external.forEach(m=>{m.init&&m.init(this)})}if(this.format=this.options.interpolation.format,r||(r=lc),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const l=gu(),f=()=>{const d=(h,p)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(p),r(h,p)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),l}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:lc;const i=He(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const a=[],o=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(f=>{f!=="cimode"&&a.indexOf(f)<0&&a.push(f)})};i?o(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>o(l)),this.options.preload&&this.options.preload.forEach(u=>o(u)),this.services.backendConnector.load(a,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(u)})}else r(null)}reloadResources(t,n,r){const i=gu();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=lc),this.services.backendConnector.reload(t,n,a=>{i.resolve(),r(a)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&H_.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=gu();this.emit("languageChanging",t);const a=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},o=(l,f)=>{f?(a(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},u=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const f=He(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);f&&(this.language||a(f),this.translator.language||this.translator.changeLanguage(f),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(f)),this.loadResources(f,d=>{o(d,f)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(t),i}getFixedT(t,n,r){var i=this;const a=function(o,u){let l;if(typeof u!="object"){for(var f=arguments.length,d=new Array(f>2?f-2:0),h=2;h<f;h++)d[h-2]=arguments[h];l=i.options.overloadTranslationOptionHandler([o,u].concat(d))}else l={...u};l.lng=l.lng||a.lng,l.lngs=l.lngs||a.lngs,l.ns=l.ns||a.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||a.keyPrefix);const p=i.options.keySeparator||".";let m;return l.keyPrefix&&Array.isArray(o)?m=o.map(y=>`${l.keyPrefix}${p}${y}`):m=l.keyPrefix?`${l.keyPrefix}${p}${o}`:o,i.t(m,l)};return He(t)?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=r,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(u,l)=>{const f=this.services.backendConnector.state[`${u}|${l}`];return f===-1||f===0||f===2};if(n.precheck){const u=n.precheck(this,o);if(u!==void 0)return u}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!i||o(a,t)))}loadNamespaces(t,n){const r=gu();return this.options.ns?(He(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=gu();He(t)&&(t=[t]);const i=this.options.preload||[],a=t.filter(o=>i.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return a.length?(this.options.preload=i.concat(a),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new W_(Y_());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new bu(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:lc;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},a=new bu(i);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(u=>{a[u]=this[u]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new z_(this.store.data,i),a.services.resourceStore=a.store),a.translator=new uc(a.services,i),a.translator.on("*",function(u){for(var l=arguments.length,f=new Array(l>1?l-1:0),d=1;d<l;d++)f[d-1]=arguments[d];a.emit(u,...f)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Rn=bu.createInstance();Rn.createInstance=bu.createInstance,Rn.createInstance,Rn.dir,Rn.init,Rn.loadResources,Rn.reloadResources,Rn.use,Rn.changeLanguage,Rn.getFixedT,Rn.t,Rn.exists,Rn.setDefaultNamespace,Rn.hasLoadedNamespace,Rn.loadNamespaces,Rn.loadLanguages;var cc={};/*!
109
+ */var cp,r_;function l9(){if(r_)return cp;r_=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},u=0;u<10;u++)o["_"+String.fromCharCode(u)]=u;var l=Object.getOwnPropertyNames(o).map(function(d){return o[d]});if(l.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(d){f[d]=d}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return cp=i()?Object.assign:function(a,o){for(var u,l=r(a),f,d=1;d<arguments.length;d++){u=Object(arguments[d]);for(var h in u)t.call(u,h)&&(l[h]=u[h]);if(e){f=e(u);for(var p=0;p<f.length;p++)n.call(u,f[p])&&(l[f[p]]=u[f[p]])}}return l},cp}var fp,i_;function a_(){if(i_)return fp;i_=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return fp=e,fp}var dp,o_;function s_(){return o_||(o_=1,dp=Function.call.bind(Object.prototype.hasOwnProperty)),dp}var hp,u_;function c9(){if(u_)return hp;u_=1;var e=function(){};{var t=a_(),n={},r=s_();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,u,l,f){for(var d in a)if(r(a,d)){var h;try{if(typeof a[d]!="function"){var p=Error((l||"React class")+": "+u+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}h=a[d](o,d,l,u,null,t)}catch(y){h=y}if(h&&!(h instanceof Error)&&e((l||"React class")+": type specification of "+u+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in n)){n[h.message]=!0;var m=f?f():"";e("Failed "+u+" type: "+h.message+(m??""))}}}return i.resetWarningCache=function(){n={}},hp=i,hp}var pp,l_;function f9(){if(l_)return pp;l_=1;var e=n_(),t=l9(),n=a_(),r=s_(),i=c9(),a=function(){};a=function(u){var l="Warning: "+u;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}};function o(){return null}return pp=function(u,l){var f=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function h($){var Y=$&&(f&&$[f]||$[d]);if(typeof Y=="function")return Y}var p="<<anonymous>>",m={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:S(),arrayOf:C,element:T(),elementType:_(),instanceOf:x,node:N(),objectOf:A,oneOf:k,oneOfType:L,shape:H,exact:V};function y($,Y){return $===Y?$!==0||1/$===1/Y:$!==$&&Y!==Y}function g($,Y){this.message=$,this.data=Y&&typeof Y=="object"?Y:{},this.stack=""}g.prototype=Error.prototype;function b($){var Y={},ae=0;function ie(fe,le,me,_e,be,ne,ve){if(_e=_e||p,ne=ne||me,ve!==n){if(l){var K=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw K.name="Invariant Violation",K}else if(typeof console<"u"){var we=_e+":"+me;!Y[we]&&ae<3&&(a("You are manually calling a React.PropTypes validation function for the `"+ne+"` prop on `"+_e+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),Y[we]=!0,ae++)}}return le[me]==null?fe?le[me]===null?new g("The "+be+" `"+ne+"` is marked as required "+("in `"+_e+"`, but its value is `null`.")):new g("The "+be+" `"+ne+"` is marked as required in "+("`"+_e+"`, but its value is `undefined`.")):null:$(le,me,_e,be,ne)}var te=ie.bind(null,!1);return te.isRequired=ie.bind(null,!0),te}function w($){function Y(ae,ie,te,fe,le,me){var _e=ae[ie],be=z(_e);if(be!==$){var ne=Q(_e);return new g("Invalid "+fe+" `"+le+"` of type "+("`"+ne+"` supplied to `"+te+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return b(Y)}function S(){return b(o)}function C($){function Y(ae,ie,te,fe,le){if(typeof $!="function")return new g("Property `"+le+"` of component `"+te+"` has invalid PropType notation inside arrayOf.");var me=ae[ie];if(!Array.isArray(me)){var _e=z(me);return new g("Invalid "+fe+" `"+le+"` of type "+("`"+_e+"` supplied to `"+te+"`, expected an array."))}for(var be=0;be<me.length;be++){var ne=$(me,be,te,fe,le+"["+be+"]",n);if(ne instanceof Error)return ne}return null}return b(Y)}function T(){function $(Y,ae,ie,te,fe){var le=Y[ae];if(!u(le)){var me=z(le);return new g("Invalid "+te+" `"+fe+"` of type "+("`"+me+"` supplied to `"+ie+"`, expected a single ReactElement."))}return null}return b($)}function _(){function $(Y,ae,ie,te,fe){var le=Y[ae];if(!e.isValidElementType(le)){var me=z(le);return new g("Invalid "+te+" `"+fe+"` of type "+("`"+me+"` supplied to `"+ie+"`, expected a single ReactElement type."))}return null}return b($)}function x($){function Y(ae,ie,te,fe,le){if(!(ae[ie]instanceof $)){var me=$.name||p,_e=J(ae[ie]);return new g("Invalid "+fe+" `"+le+"` of type "+("`"+_e+"` supplied to `"+te+"`, expected ")+("instance of `"+me+"`."))}return null}return b(Y)}function k($){if(!Array.isArray($))return arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array."),o;function Y(ae,ie,te,fe,le){for(var me=ae[ie],_e=0;_e<$.length;_e++)if(y(me,$[_e]))return null;var be=JSON.stringify($,function(ve,K){var we=Q(K);return we==="symbol"?String(K):K});return new g("Invalid "+fe+" `"+le+"` of value `"+String(me)+"` "+("supplied to `"+te+"`, expected one of "+be+"."))}return b(Y)}function A($){function Y(ae,ie,te,fe,le){if(typeof $!="function")return new g("Property `"+le+"` of component `"+te+"` has invalid PropType notation inside objectOf.");var me=ae[ie],_e=z(me);if(_e!=="object")return new g("Invalid "+fe+" `"+le+"` of type "+("`"+_e+"` supplied to `"+te+"`, expected an object."));for(var be in me)if(r(me,be)){var ne=$(me,be,te,fe,le+"."+be,n);if(ne instanceof Error)return ne}return null}return b(Y)}function L($){if(!Array.isArray($))return a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var Y=0;Y<$.length;Y++){var ae=$[Y];if(typeof ae!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+q(ae)+" at index "+Y+"."),o}function ie(te,fe,le,me,_e){for(var be=[],ne=0;ne<$.length;ne++){var ve=$[ne],K=ve(te,fe,le,me,_e,n);if(K==null)return null;K.data&&r(K.data,"expectedType")&&be.push(K.data.expectedType)}var we=be.length>0?", expected one of type ["+be.join(", ")+"]":"";return new g("Invalid "+me+" `"+_e+"` supplied to "+("`"+le+"`"+we+"."))}return b(ie)}function N(){function $(Y,ae,ie,te,fe){return D(Y[ae])?null:new g("Invalid "+te+" `"+fe+"` supplied to "+("`"+ie+"`, expected a ReactNode."))}return b($)}function F($,Y,ae,ie,te){return new g(($||"React class")+": "+Y+" type `"+ae+"."+ie+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+te+"`.")}function H($){function Y(ae,ie,te,fe,le){var me=ae[ie],_e=z(me);if(_e!=="object")return new g("Invalid "+fe+" `"+le+"` of type `"+_e+"` "+("supplied to `"+te+"`, expected `object`."));for(var be in $){var ne=$[be];if(typeof ne!="function")return F(te,fe,le,be,Q(ne));var ve=ne(me,be,te,fe,le+"."+be,n);if(ve)return ve}return null}return b(Y)}function V($){function Y(ae,ie,te,fe,le){var me=ae[ie],_e=z(me);if(_e!=="object")return new g("Invalid "+fe+" `"+le+"` of type `"+_e+"` "+("supplied to `"+te+"`, expected `object`."));var be=t({},ae[ie],$);for(var ne in be){var ve=$[ne];if(r($,ne)&&typeof ve!="function")return F(te,fe,le,ne,Q(ve));if(!ve)return new g("Invalid "+fe+" `"+le+"` key `"+ne+"` supplied to `"+te+"`.\nBad object: "+JSON.stringify(ae[ie],null," ")+`
110
+ Valid keys: `+JSON.stringify(Object.keys($),null," "));var K=ve(me,ne,te,fe,le+"."+ne,n);if(K)return K}return null}return b(Y)}function D($){switch(typeof $){case"number":case"string":case"undefined":return!0;case"boolean":return!$;case"object":if(Array.isArray($))return $.every(D);if($===null||u($))return!0;var Y=h($);if(Y){var ae=Y.call($),ie;if(Y!==$.entries){for(;!(ie=ae.next()).done;)if(!D(ie.value))return!1}else for(;!(ie=ae.next()).done;){var te=ie.value;if(te&&!D(te[1]))return!1}}else return!1;return!0;default:return!1}}function j($,Y){return $==="symbol"?!0:Y?Y["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Y instanceof Symbol:!1}function z($){var Y=typeof $;return Array.isArray($)?"array":$ instanceof RegExp?"object":j(Y,$)?"symbol":Y}function Q($){if(typeof $>"u"||$===null)return""+$;var Y=z($);if(Y==="object"){if($ instanceof Date)return"date";if($ instanceof RegExp)return"regexp"}return Y}function q($){var Y=Q($);switch(Y){case"array":case"object":return"an "+Y;case"boolean":case"date":case"regexp":return"a "+Y;default:return Y}}function J($){return!$.constructor||!$.constructor.name?p:$.constructor.name}return m.checkPropTypes=i,m.resetWarningCache=i.resetWarningCache,m.PropTypes=m,m},pp}var c_;function d9(){if(c_)return up.exports;c_=1;{var e=n_(),t=!0;up.exports=f9()(e.isElement,t)}return up.exports}var h9=d9();const Oe=ji(h9);function vp(){return vp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vp.apply(this,arguments)}function p9(e,t){if(e==null)return{};var n=v9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function v9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var mp=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=p9(e,["color","size"]);return M.createElement("svg",vp({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("polyline",{points:"20 6 9 17 4 12"}))});mp.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},mp.displayName="Check";function gp(){return gp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gp.apply(this,arguments)}function m9(e,t){if(e==null)return{};var n=g9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function g9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var cu=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=m9(e,["color","size"]);return M.createElement("svg",gp({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("polyline",{points:"6 9 12 15 18 9"}))});cu.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},cu.displayName="ChevronDown";function yp(){return yp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yp.apply(this,arguments)}function y9(e,t){if(e==null)return{};var n=b9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function b9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var bp=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=y9(e,["color","size"]);return M.createElement("svg",yp({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("polyline",{points:"15 18 9 12 15 6"}))});bp.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},bp.displayName="ChevronLeft";function _p(){return _p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_p.apply(this,arguments)}function _9(e,t){if(e==null)return{};var n=w9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function w9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Fo=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=_9(e,["color","size"]);return M.createElement("svg",_p({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("polyline",{points:"9 18 15 12 9 6"}))});Fo.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},Fo.displayName="ChevronRight";function wp(){return wp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wp.apply(this,arguments)}function E9(e,t){if(e==null)return{};var n=S9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function S9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ep=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=E9(e,["color","size"]);return M.createElement("svg",wp({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("polyline",{points:"18 15 12 9 6 15"}))});Ep.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},Ep.displayName="ChevronUp";function Sp(){return Sp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sp.apply(this,arguments)}function x9(e,t){if(e==null)return{};var n=C9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function C9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var xp=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=x9(e,["color","size"]);return M.createElement("svg",Sp({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),M.createElement("polyline",{points:"7 10 12 15 17 10"}),M.createElement("line",{x1:"12",y1:"15",x2:"12",y2:"3"}))});xp.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},xp.displayName="Download";function Cp(){return Cp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cp.apply(this,arguments)}function T9(e,t){if(e==null)return{};var n=O9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function O9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Tp=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=T9(e,["color","size"]);return M.createElement("svg",Cp({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),M.createElement("polyline",{points:"15 3 21 3 21 9"}),M.createElement("line",{x1:"10",y1:"14",x2:"21",y2:"3"}))});Tp.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},Tp.displayName="ExternalLink";function Op(){return Op=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Op.apply(this,arguments)}function k9(e,t){if(e==null)return{};var n=R9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function R9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var kp=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=k9(e,["color","size"]);return M.createElement("svg",Op({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),M.createElement("polyline",{points:"14 2 14 8 20 8"}),M.createElement("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),M.createElement("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),M.createElement("polyline",{points:"10 9 9 9 8 9"}))});kp.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},kp.displayName="FileText";function Rp(){return Rp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rp.apply(this,arguments)}function A9(e,t){if(e==null)return{};var n=P9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function P9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Zi=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=A9(e,["color","size"]);return M.createElement("svg",Rp({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("line",{x1:"12",y1:"2",x2:"12",y2:"6"}),M.createElement("line",{x1:"12",y1:"18",x2:"12",y2:"22"}),M.createElement("line",{x1:"4.93",y1:"4.93",x2:"7.76",y2:"7.76"}),M.createElement("line",{x1:"16.24",y1:"16.24",x2:"19.07",y2:"19.07"}),M.createElement("line",{x1:"2",y1:"12",x2:"6",y2:"12"}),M.createElement("line",{x1:"18",y1:"12",x2:"22",y2:"12"}),M.createElement("line",{x1:"4.93",y1:"19.07",x2:"7.76",y2:"16.24"}),M.createElement("line",{x1:"16.24",y1:"7.76",x2:"19.07",y2:"4.93"}))});Zi.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},Zi.displayName="Loader";function Ap(){return Ap=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ap.apply(this,arguments)}function N9(e,t){if(e==null)return{};var n=I9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function I9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Pp=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=N9(e,["color","size"]);return M.createElement("svg",Ap({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("path",{d:"M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"}))});Pp.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},Pp.displayName="Paperclip";function Np(){return Np=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Np.apply(this,arguments)}function L9(e,t){if(e==null)return{};var n=F9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function F9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ip=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=L9(e,["color","size"]);return M.createElement("svg",Np({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("circle",{cx:"11",cy:"11",r:"8"}),M.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))});Ip.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},Ip.displayName="Search";function Lp(){return Lp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lp.apply(this,arguments)}function D9(e,t){if(e==null)return{};var n=M9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function M9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Fp=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=D9(e,["color","size"]);return M.createElement("svg",Lp({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),M.createElement("polygon",{points:"22 2 15 22 11 13 2 9 22 2"}))});Fp.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},Fp.displayName="Send";function Dp(){return Dp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dp.apply(this,arguments)}function j9(e,t){if(e==null)return{};var n=$9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Mp=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=j9(e,["color","size"]);return M.createElement("svg",Dp({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("path",{d:"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"}))});Mp.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},Mp.displayName="ThumbsDown";function jp(){return jp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jp.apply(this,arguments)}function V9(e,t){if(e==null)return{};var n=q9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function q9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var $p=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=V9(e,["color","size"]);return M.createElement("svg",jp({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("path",{d:"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"}))});$p.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},$p.displayName="ThumbsUp";function Vp(){return Vp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vp.apply(this,arguments)}function U9(e,t){if(e==null)return{};var n=z9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function z9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var qp=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=U9(e,["color","size"]);return M.createElement("svg",Vp({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("polyline",{points:"3 6 5 6 21 6"}),M.createElement("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}))});qp.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},qp.displayName="Trash";function Up(){return Up=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Up.apply(this,arguments)}function H9(e,t){if(e==null)return{};var n=B9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function B9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var zp=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=H9(e,["color","size"]);return M.createElement("svg",Up({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),M.createElement("polyline",{points:"17 8 12 3 7 8"}),M.createElement("line",{x1:"12",y1:"3",x2:"12",y2:"15"}))});zp.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},zp.displayName="Upload";function Hp(){return Hp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hp.apply(this,arguments)}function W9(e,t){if(e==null)return{};var n=G9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function G9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ji=M.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?24:i,o=W9(e,["color","size"]);return M.createElement("svg",Hp({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),M.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),M.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))});Ji.propTypes={color:Oe.string,size:Oe.oneOfType([Oe.string,Oe.number])},Ji.displayName="X";const f_=e=>{const[t,n]=M.useState(typeof window<"u"&&window.matchMedia(e).matches);return M.useLayoutEffect(()=>{const r=window.matchMedia(e),i=a=>{n(a.matches)};return r.addEventListener("change",i),()=>r.removeEventListener("change",i)},[e]),t},Q9=(e,t)=>{const n=M.useRef(null);return M.useEffect(()=>()=>{n.current&&clearTimeout(n.current)},[]),(...i)=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{e(...i)},t)}},Y9=async()=>{var t;const e=await z2().get("/organization-brand/widget");return((t=e==null?void 0:e.data)==null?void 0:t.data)||{}},K9=e=>{const t=e||"#00a1e0";document.documentElement.style.setProperty("--ed-brand-color",t)},X9=e=>{const t=e||"Poppins";document.documentElement.style.setProperty("--main-font",t)};var fu={},Do={},tc={},Da={},Ma={},Bp={},d_;function h_(){return d_||(d_=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function n(r){return r.type===t.Tag||r.type===t.Script||r.type===t.Style}e.isTag=n,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype}(Bp)),Bp}var Xe={},p_;function v_(){if(p_)return Xe;p_=1;var e=Xe&&Xe.__extends||function(){var _=function(x,k){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,L){A.__proto__=L}||function(A,L){for(var N in L)Object.prototype.hasOwnProperty.call(L,N)&&(A[N]=L[N])},_(x,k)};return function(x,k){if(typeof k!="function"&&k!==null)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");_(x,k);function A(){this.constructor=x}x.prototype=k===null?Object.create(k):(A.prototype=k.prototype,new A)}}(),t=Xe&&Xe.__assign||function(){return t=Object.assign||function(_){for(var x,k=1,A=arguments.length;k<A;k++){x=arguments[k];for(var L in x)Object.prototype.hasOwnProperty.call(x,L)&&(_[L]=x[L])}return _},t.apply(this,arguments)};Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.cloneNode=Xe.hasChildren=Xe.isDocument=Xe.isDirective=Xe.isComment=Xe.isText=Xe.isCDATA=Xe.isTag=Xe.Element=Xe.Document=Xe.CDATA=Xe.NodeWithChildren=Xe.ProcessingInstruction=Xe.Comment=Xe.Text=Xe.DataNode=Xe.Node=void 0;var n=h_(),r=function(){function _(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(_.prototype,"parentNode",{get:function(){return this.parent},set:function(x){this.parent=x},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"previousSibling",{get:function(){return this.prev},set:function(x){this.prev=x},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"nextSibling",{get:function(){return this.next},set:function(x){this.next=x},enumerable:!1,configurable:!0}),_.prototype.cloneNode=function(x){return x===void 0&&(x=!1),C(this,x)},_}();Xe.Node=r;var i=function(_){e(x,_);function x(k){var A=_.call(this)||this;return A.data=k,A}return Object.defineProperty(x.prototype,"nodeValue",{get:function(){return this.data},set:function(k){this.data=k},enumerable:!1,configurable:!0}),x}(r);Xe.DataNode=i;var a=function(_){e(x,_);function x(){var k=_!==null&&_.apply(this,arguments)||this;return k.type=n.ElementType.Text,k}return Object.defineProperty(x.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),x}(i);Xe.Text=a;var o=function(_){e(x,_);function x(){var k=_!==null&&_.apply(this,arguments)||this;return k.type=n.ElementType.Comment,k}return Object.defineProperty(x.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),x}(i);Xe.Comment=o;var u=function(_){e(x,_);function x(k,A){var L=_.call(this,A)||this;return L.name=k,L.type=n.ElementType.Directive,L}return Object.defineProperty(x.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),x}(i);Xe.ProcessingInstruction=u;var l=function(_){e(x,_);function x(k){var A=_.call(this)||this;return A.children=k,A}return Object.defineProperty(x.prototype,"firstChild",{get:function(){var k;return(k=this.children[0])!==null&&k!==void 0?k:null},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"childNodes",{get:function(){return this.children},set:function(k){this.children=k},enumerable:!1,configurable:!0}),x}(r);Xe.NodeWithChildren=l;var f=function(_){e(x,_);function x(){var k=_!==null&&_.apply(this,arguments)||this;return k.type=n.ElementType.CDATA,k}return Object.defineProperty(x.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),x}(l);Xe.CDATA=f;var d=function(_){e(x,_);function x(){var k=_!==null&&_.apply(this,arguments)||this;return k.type=n.ElementType.Root,k}return Object.defineProperty(x.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),x}(l);Xe.Document=d;var h=function(_){e(x,_);function x(k,A,L,N){L===void 0&&(L=[]),N===void 0&&(N=k==="script"?n.ElementType.Script:k==="style"?n.ElementType.Style:n.ElementType.Tag);var F=_.call(this,L)||this;return F.name=k,F.attribs=A,F.type=N,F}return Object.defineProperty(x.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"tagName",{get:function(){return this.name},set:function(k){this.name=k},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"attributes",{get:function(){var k=this;return Object.keys(this.attribs).map(function(A){var L,N;return{name:A,value:k.attribs[A],namespace:(L=k["x-attribsNamespace"])===null||L===void 0?void 0:L[A],prefix:(N=k["x-attribsPrefix"])===null||N===void 0?void 0:N[A]}})},enumerable:!1,configurable:!0}),x}(l);Xe.Element=h;function p(_){return(0,n.isTag)(_)}Xe.isTag=p;function m(_){return _.type===n.ElementType.CDATA}Xe.isCDATA=m;function y(_){return _.type===n.ElementType.Text}Xe.isText=y;function g(_){return _.type===n.ElementType.Comment}Xe.isComment=g;function b(_){return _.type===n.ElementType.Directive}Xe.isDirective=b;function w(_){return _.type===n.ElementType.Root}Xe.isDocument=w;function S(_){return Object.prototype.hasOwnProperty.call(_,"children")}Xe.hasChildren=S;function C(_,x){x===void 0&&(x=!1);var k;if(y(_))k=new a(_.data);else if(g(_))k=new o(_.data);else if(p(_)){var A=x?T(_.children):[],L=new h(_.name,t({},_.attribs),A);A.forEach(function(V){return V.parent=L}),_.namespace!=null&&(L.namespace=_.namespace),_["x-attribsNamespace"]&&(L["x-attribsNamespace"]=t({},_["x-attribsNamespace"])),_["x-attribsPrefix"]&&(L["x-attribsPrefix"]=t({},_["x-attribsPrefix"])),k=L}else if(m(_)){var A=x?T(_.children):[],N=new f(A);A.forEach(function(D){return D.parent=N}),k=N}else if(w(_)){var A=x?T(_.children):[],F=new d(A);A.forEach(function(D){return D.parent=F}),_["x-mode"]&&(F["x-mode"]=_["x-mode"]),k=F}else if(b(_)){var H=new u(_.name,_.data);_["x-name"]!=null&&(H["x-name"]=_["x-name"],H["x-publicId"]=_["x-publicId"],H["x-systemId"]=_["x-systemId"]),k=H}else throw new Error("Not implemented yet: ".concat(_.type));return k.startIndex=_.startIndex,k.endIndex=_.endIndex,_.sourceCodeLocation!=null&&(k.sourceCodeLocation=_.sourceCodeLocation),k}Xe.cloneNode=C;function T(_){for(var x=_.map(function(A){return C(A,!0)}),k=1;k<x.length;k++)x[k].prev=x[k-1],x[k-1].next=x[k];return x}return Xe}var m_;function g_(){return m_||(m_=1,function(e){var t=Ma&&Ma.__createBinding||(Object.create?function(u,l,f,d){d===void 0&&(d=f);var h=Object.getOwnPropertyDescriptor(l,f);(!h||("get"in h?!l.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return l[f]}}),Object.defineProperty(u,d,h)}:function(u,l,f,d){d===void 0&&(d=f),u[d]=l[f]}),n=Ma&&Ma.__exportStar||function(u,l){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(l,f)&&t(l,u,f)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=h_(),i=v_();n(v_(),e);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function u(l,f,d){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof f=="function"&&(d=f,f=a),typeof l=="object"&&(f=l,l=void 0),this.callback=l??null,this.options=f??a,this.elementCB=d??null}return u.prototype.onparserinit=function(l){this.parser=l},u.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},u.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},u.prototype.onerror=function(l){this.handleCallback(l)},u.prototype.onclosetag=function(){this.lastNode=null;var l=this.tagStack.pop();this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(l)},u.prototype.onopentag=function(l,f){var d=this.options.xmlMode?r.ElementType.Tag:void 0,h=new i.Element(l,f,void 0,d);this.addNode(h),this.tagStack.push(h)},u.prototype.ontext=function(l){var f=this.lastNode;if(f&&f.type===r.ElementType.Text)f.data+=l,this.options.withEndIndices&&(f.endIndex=this.parser.endIndex);else{var d=new i.Text(l);this.addNode(d),this.lastNode=d}},u.prototype.oncomment=function(l){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=l;return}var f=new i.Comment(l);this.addNode(f),this.lastNode=f},u.prototype.oncommentend=function(){this.lastNode=null},u.prototype.oncdatastart=function(){var l=new i.Text(""),f=new i.CDATA([l]);this.addNode(f),l.parent=f,this.lastNode=l},u.prototype.oncdataend=function(){this.lastNode=null},u.prototype.onprocessinginstruction=function(l,f){var d=new i.ProcessingInstruction(l,f);this.addNode(d)},u.prototype.handleCallback=function(l){if(typeof this.callback=="function")this.callback(l,this.dom);else if(l)throw l},u.prototype.addNode=function(l){var f=this.tagStack[this.tagStack.length-1],d=f.children[f.children.length-1];this.options.withStartIndices&&(l.startIndex=this.parser.startIndex),this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),f.children.push(l),d&&(l.prev=d,d.next=l),l.parent=f,this.lastNode=null},u}();e.DomHandler=o,e.default=o}(Ma)),Ma}var Wp={},y_;function Z9(){return y_||(y_=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=e.CARRIAGE_RETURN_PLACEHOLDER=e.CARRIAGE_RETURN_REGEX=e.CARRIAGE_RETURN=e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce(function(t,n){return t[n.toLowerCase()]=n,t},{}),e.CARRIAGE_RETURN="\r",e.CARRIAGE_RETURN_REGEX=new RegExp(e.CARRIAGE_RETURN,"g"),e.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(e.CARRIAGE_RETURN_PLACEHOLDER,"g")}(Wp)),Wp}var b_;function __(){if(b_)return Da;b_=1,Object.defineProperty(Da,"__esModule",{value:!0}),Da.formatAttributes=r,Da.escapeSpecialCharacters=a,Da.revertEscapedCharacters=o,Da.formatDOM=u;var e=g_(),t=Z9();function n(l){return t.CASE_SENSITIVE_TAG_NAMES_MAP[l]}function r(l){for(var f={},d=0,h=l.length;d<h;d++){var p=l[d];f[p.name]=p.value}return f}function i(l){l=l.toLowerCase();var f=n(l);return f||l}function a(l){return l.replace(t.CARRIAGE_RETURN_REGEX,t.CARRIAGE_RETURN_PLACEHOLDER)}function o(l){return l.replace(t.CARRIAGE_RETURN_PLACEHOLDER_REGEX,t.CARRIAGE_RETURN)}function u(l,f,d){f===void 0&&(f=null);for(var h=[],p,m=0,y=l.length;m<y;m++){var g=l[m];switch(g.nodeType){case 1:{var b=i(g.nodeName);p=new e.Element(b,r(g.attributes)),p.children=u(b==="template"?g.content.childNodes:g.childNodes,p);break}case 3:p=new e.Text(o(g.nodeValue));break;case 8:p=new e.Comment(g.nodeValue);break;default:continue}var w=h[m-1]||null;w&&(w.next=p),p.parent=f,p.prev=w,p.next=null,h.push(p)}return d&&(p=new e.ProcessingInstruction(d.substring(0,d.indexOf(" ")).toLowerCase(),d),p.next=h[0]||null,p.parent=f,h.unshift(p),h[1]&&(h[1].prev=h[0])),h}return Da}var w_;function J9(){if(w_)return tc;w_=1,Object.defineProperty(tc,"__esModule",{value:!0}),tc.default=g;var e=__(),t="html",n="head",r="body",i=/<([a-zA-Z]+[0-9]?)/,a=/<head[^]*>/i,o=/<body[^]*>/i,u=function(b,w){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},l=function(b,w){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},f=typeof window=="object"&&window.DOMParser;if(typeof f=="function"){var d=new f,h="text/html";l=function(b,w){return w&&(b="<".concat(w,">").concat(b,"</").concat(w,">")),d.parseFromString(b,h)},u=l}if(typeof document=="object"&&document.implementation){var p=document.implementation.createHTMLDocument();u=function(b,w){if(w){var S=p.documentElement.querySelector(w);return S&&(S.innerHTML=b),p}return p.documentElement.innerHTML=b,p}}var m=typeof document=="object"&&document.createElement("template"),y;m&&m.content&&(y=function(b){return m.innerHTML=b,m.content.childNodes});function g(b){var w,S;b=(0,e.escapeSpecialCharacters)(b);var C=b.match(i),T=C&&C[1]?C[1].toLowerCase():"";switch(T){case t:{var _=l(b);if(!a.test(b)){var x=_.querySelector(n);(w=x==null?void 0:x.parentNode)===null||w===void 0||w.removeChild(x)}if(!o.test(b)){var x=_.querySelector(r);(S=x==null?void 0:x.parentNode)===null||S===void 0||S.removeChild(x)}return _.querySelectorAll(t)}case n:case r:{var k=u(b).querySelectorAll(T);return o.test(b)&&a.test(b)?k[0].parentNode.childNodes:k}default:{if(y)return y(b);var x=u(b,r).querySelector(r);return x.childNodes}}}return tc}var E_;function e7(){if(E_)return Do;E_=1;var e=Do&&Do.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Do,"__esModule",{value:!0}),Do.default=i;var t=e(J9()),n=__(),r=/<(![a-zA-Z\s]+)>/;function i(a){if(typeof a!="string")throw new TypeError("First argument must be a string");if(!a)return[];var o=a.match(r),u=o?o[1]:void 0;return(0,n.formatDOM)((0,t.default)(a),null,u)}return Do}var nc={},wr={},du={},S_;function t7(){if(S_)return du;S_=1;var e=0;du.SAME=e;var t=1;return du.CAMELCASE=t,du.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1},du}var x_;function n7(){if(x_)return wr;x_=1;const e=0,t=1,n=2,r=3,i=4,a=5,o=6;function u(_){return f.hasOwnProperty(_)?f[_]:null}function l(_,x,k,A,L,N,F){this.acceptsBooleans=x===n||x===r||x===i,this.attributeName=A,this.attributeNamespace=L,this.mustUseProperty=k,this.propertyName=_,this.type=x,this.sanitizeURL=N,this.removeEmptyString=F}const f={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(_=>{f[_]=new l(_,e,!1,_,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([_,x])=>{f[_]=new l(_,t,!1,x,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(_=>{f[_]=new l(_,n,!1,_.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(_=>{f[_]=new l(_,n,!1,_,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(_=>{f[_]=new l(_,r,!1,_.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(_=>{f[_]=new l(_,r,!0,_,null,!1,!1)}),["capture","download"].forEach(_=>{f[_]=new l(_,i,!1,_,null,!1,!1)}),["cols","rows","size","span"].forEach(_=>{f[_]=new l(_,o,!1,_,null,!1,!1)}),["rowSpan","start"].forEach(_=>{f[_]=new l(_,a,!1,_.toLowerCase(),null,!1,!1)});const h=/[\-\:]([a-z])/g,p=_=>_[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(_=>{const x=_.replace(h,p);f[x]=new l(x,t,!1,_,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(_=>{const x=_.replace(h,p);f[x]=new l(x,t,!1,_,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(_=>{const x=_.replace(h,p);f[x]=new l(x,t,!1,_,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(_=>{f[_]=new l(_,t,!1,_.toLowerCase(),null,!1,!1)});const m="xlinkHref";f[m]=new l("xlinkHref",t,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(_=>{f[_]=new l(_,t,!1,_.toLowerCase(),null,!0,!0)});const{CAMELCASE:y,SAME:g,possibleStandardNames:b}=t7(),S=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD"+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",C=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+S+"]*$")),T=Object.keys(b).reduce((_,x)=>{const k=b[x];return k===g?_[x]=x:k===y?_[x.toLowerCase()]=x:_[x]=k,_},{});return wr.BOOLEAN=r,wr.BOOLEANISH_STRING=n,wr.NUMERIC=a,wr.OVERLOADED_BOOLEAN=i,wr.POSITIVE_NUMERIC=o,wr.RESERVED=e,wr.STRING=t,wr.getPropertyInfo=u,wr.isCustomAttribute=C,wr.possibleStandardNames=T,wr}var hu={},Mo={},Gp,C_;function r7(){if(C_)return Gp;C_=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,u=/^\s+|\s+$/g,l=`
111
+ `,f="/",d="*",h="",p="comment",m="declaration";Gp=function(g,b){if(typeof g!="string")throw new TypeError("First argument must be a string");if(!g)return[];b=b||{};var w=1,S=1;function C(V){var D=V.match(t);D&&(w+=D.length);var j=V.lastIndexOf(l);S=~j?V.length-j:S+V.length}function T(){var V={line:w,column:S};return function(D){return D.position=new _(V),A(),D}}function _(V){this.start=V,this.end={line:w,column:S},this.source=b.source}_.prototype.content=g;function x(V){var D=new Error(b.source+":"+w+":"+S+": "+V);if(D.reason=V,D.filename=b.source,D.line=w,D.column=S,D.source=g,!b.silent)throw D}function k(V){var D=V.exec(g);if(D){var j=D[0];return C(j),g=g.slice(j.length),D}}function A(){k(n)}function L(V){var D;for(V=V||[];D=N();)D!==!1&&V.push(D);return V}function N(){var V=T();if(!(f!=g.charAt(0)||d!=g.charAt(1))){for(var D=2;h!=g.charAt(D)&&(d!=g.charAt(D)||f!=g.charAt(D+1));)++D;if(D+=2,h===g.charAt(D-1))return x("End of comment missing");var j=g.slice(2,D-2);return S+=2,C(j),g=g.slice(D),S+=2,V({type:p,comment:j})}}function F(){var V=T(),D=k(r);if(D){if(N(),!k(i))return x("property missing ':'");var j=k(a),z=V({type:m,property:y(D[0].replace(e,h)),value:j?y(j[0].replace(e,h)):h});return k(o),z}}function H(){var V=[];L(V);for(var D;D=F();)D!==!1&&(V.push(D),L(V));return V}return A(),H()};function y(g){return g?g.replace(u,h):h}return Gp}var T_;function i7(){if(T_)return Mo;T_=1;var e=Mo&&Mo.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.default=n;var t=e(r7());function n(r,i){var a=null;if(!r||typeof r!="string")return a;var o=(0,t.default)(r),u=typeof i=="function";return o.forEach(function(l){if(l.type==="declaration"){var f=l.property,d=l.value;u?i(f,d,l):d&&(a=a||{},a[f]=d)}}),a}return Mo}var pu={},O_;function a7(){if(O_)return pu;O_=1,Object.defineProperty(pu,"__esModule",{value:!0}),pu.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(f){return!f||n.test(f)||e.test(f)},o=function(f,d){return d.toUpperCase()},u=function(f,d){return"".concat(d,"-")},l=function(f,d){return d===void 0&&(d={}),a(f)?f:(f=f.toLowerCase(),d.reactCompat?f=f.replace(i,u):f=f.replace(r,u),f.replace(t,o))};return pu.camelCase=l,pu}var vu,k_;function o7(){if(k_)return vu;k_=1;var e=vu&&vu.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(i7()),n=a7();function r(i,a){var o={};return!i||typeof i!="string"||(0,t.default)(i,function(u,l){u&&l&&(o[(0,n.camelCase)(u,a)]=l)}),o}return r.default=r,vu=r,vu}var R_;function A_(){return R_||(R_=1,function(e){var t=hu&&hu.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=void 0,e.isCustomComponent=a,e.setStyleProp=u;var n=M,r=t(o7()),i=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function a(d,h){return d.includes("-")?!i.has(d):!!(h&&typeof h.is=="string")}var o={reactCompat:!0};function u(d,h){if(typeof d=="string"){if(!d.trim()){h.style={};return}try{h.style=(0,r.default)(d,o)}catch{h.style={}}}}e.PRESERVE_CUSTOM_ATTRIBUTES=Number(n.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var l=function(d){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(d.name)};e.canTextBeChildOfNode=l;var f=function(d){return d};e.returnFirstArg=f}(hu)),hu}var P_;function N_(){if(P_)return nc;P_=1,Object.defineProperty(nc,"__esModule",{value:!0}),nc.default=a;var e=n7(),t=A_(),n=["checked","value"],r=["input","select","textarea"],i={reset:!0,submit:!0};function a(u,l){u===void 0&&(u={});var f={},d=!!(u.type&&i[u.type]);for(var h in u){var p=u[h];if((0,e.isCustomAttribute)(h)){f[h]=p;continue}var m=h.toLowerCase(),y=o(m);if(y){var g=(0,e.getPropertyInfo)(y);switch(n.includes(y)&&r.includes(l)&&!d&&(y=o("default"+m)),f[y]=p,g&&g.type){case e.BOOLEAN:f[y]=!0;break;case e.OVERLOADED_BOOLEAN:p===""&&(f[y]=!0);break}continue}t.PRESERVE_CUSTOM_ATTRIBUTES&&(f[h]=p)}return(0,t.setStyleProp)(u.style,f),f}function o(u){return e.possibleStandardNames[u]}return nc}var jo={},I_;function s7(){if(I_)return jo;I_=1;var e=jo&&jo.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(jo,"__esModule",{value:!0}),jo.default=a;var t=M,n=e(N_()),r=A_(),i={cloneElement:t.cloneElement,createElement:t.createElement,isValidElement:t.isValidElement};function a(u,l){l===void 0&&(l={});for(var f=[],d=typeof l.replace=="function",h=l.transform||r.returnFirstArg,p=l.library||i,m=p.cloneElement,y=p.createElement,g=p.isValidElement,b=u.length,w=0;w<b;w++){var S=u[w];if(d){var C=l.replace(S,w);if(g(C)){b>1&&(C=m(C,{key:C.key||w})),f.push(h(C,S,w));continue}}if(S.type==="text"){var T=!S.data.trim().length;if(T&&S.parent&&!(0,r.canTextBeChildOfNode)(S.parent)||l.trim&&T)continue;f.push(h(S.data,S,w));continue}var _=S,x={};o(_)?((0,r.setStyleProp)(_.attribs.style,_.attribs),x=_.attribs):_.attribs&&(x=(0,n.default)(_.attribs,_.name));var k=void 0;switch(S.type){case"script":case"style":S.children[0]&&(x.dangerouslySetInnerHTML={__html:S.children[0].data});break;case"tag":S.name==="textarea"&&S.children[0]?x.defaultValue=S.children[0].data:S.children&&S.children.length&&(k=a(S.children,l));break;default:continue}b>1&&(x.key=w),f.push(h(y(S.name,x,k),S,w))}return f.length===1?f[0]:f}function o(u){return r.PRESERVE_CUSTOM_ATTRIBUTES&&u.type==="tag"&&(0,r.isCustomComponent)(u.name,u.attribs)}return jo}var L_;function u7(){return L_||(L_=1,function(e){var t=fu&&fu.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=u;var n=t(e7());e.htmlToDOM=n.default;var r=t(N_());e.attributesToProps=r.default;var i=t(s7());e.domToReact=i.default;var a=g_();Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return a.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return a.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return a.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return a.Text}});var o={lowerCaseAttributeNames:!1};function u(l,f){if(typeof l!="string")throw new TypeError("First argument must be a string");return l?(0,i.default)((0,n.default)(l,(f==null?void 0:f.htmlparser2)||o),f):[]}}(fu)),fu}var l7=u7();const F_=ji(l7),mu=F_.default||F_,c7=({articlesData:e,setArticleId:t,setSearchedText:n,setArticlesData:r})=>O.jsxs("div",{children:[O.jsxs("p",{className:"ed-text-14 ed-text-border-regular ed-font-medium ed-py-4 ed-px-2 ed-border-b ed-border-border-light ed-block ed-first-letter:uppercase ed-lowercase",children:[Ge.size(e)," articles"]}),O.jsx("div",{className:"ed-mt-4 ed-space-y-4",children:e==null?void 0:e.map(i=>O.jsxs("button",{type:"button",className:"ed-flex ed-items-center ed-gap-2 ed-flex-1 ed-w-full ed-px-5 ed-py-2 ed-hover:bg-white-light ed-group ed-text-left",onClick:()=>{t(i==null?void 0:i.id),n(""),r([])},children:[O.jsx("p",{className:"ed-text-border-dark ed-text-14 ed-font-medium ed-group-hover:text-brand-link ed-flex-1 ed-duration-500 ed-ease-in-out ed-transition-all",children:mu((i==null?void 0:i.title)||"")}),O.jsx("div",{className:"ed-size-4 ed--translate-x-2 ed-opacity-0 ed-group-hover:opacity-100 ed-group-hover:translate-x-2 ed-duration-300 ed-transition-all",children:O.jsx(Fo,{className:"ed-text-border ed-size-4"})})]},i==null?void 0:i.id))})]});for(var ja=256,D_=[],M_=256,rc;ja--;)D_[ja]=(ja+256).toString(16).substring(1);function Qp(e){var t=0,n=11;if(!rc||ja+n>M_*2)for(rc="",ja=0;t<M_;t++)rc+=D_[Math.random()*256|0];return rc.substring(ja,ja+++n)}const f7=(e,t,n)=>{const r=e[t];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((i,a)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(a.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})},ze=e=>typeof e=="string",gu=()=>{let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n},j_=e=>e==null?"":""+e,d7=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},h7=/###/g,$_=e=>e&&e.indexOf("###")>-1?e.replace(h7,"."):e,V_=e=>!e||ze(e),yu=(e,t,n)=>{const r=ze(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(V_(e))return{};const a=$_(r[i]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++i}return V_(e)?{}:{obj:e,k:$_(r[i])}},q_=(e,t,n)=>{const{obj:r,k:i}=yu(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),u=yu(e,o,Object);for(;u.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),u=yu(e,o,Object),u&&u.obj&&typeof u.obj[`${u.k}.${a}`]<"u"&&(u.obj=void 0);u.obj[`${u.k}.${a}`]=n},p7=(e,t,n,r)=>{const{obj:i,k:a}=yu(e,t,Object);i[a]=i[a]||[],i[a].push(n)},ic=(e,t)=>{const{obj:n,k:r}=yu(e,t);if(n)return n[r]},v7=(e,t,n)=>{const r=ic(e,n);return r!==void 0?r:ic(t,n)},U_=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?ze(e[r])||e[r]instanceof String||ze(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):U_(e[r],t[r],n):e[r]=t[r]);return e},$o=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var m7={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const g7=e=>ze(e)?e.replace(/[&<>"'\/]/g,t=>m7[t]):e;class y7{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const b7=[" ",",","?","!",";"],_7=new y7(20),w7=(e,t,n)=>{t=t||"",n=n||"";const r=b7.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const i=_7.getRegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let a=!i.test(e);if(!a){const o=e.indexOf(n);o>0&&!i.test(e.substring(0,o))&&(a=!0)}return a},Yp=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let a=0;a<r.length;){if(!i||typeof i!="object")return;let o,u="";for(let l=a;l<r.length;++l)if(l!==a&&(u+=n),u+=r[l],o=i[u],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&l<r.length-1)continue;a+=l-a+1;break}i=o}return i},ac=e=>e&&e.replace("_","-"),E7={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class oc{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||E7,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(ze(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new oc(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new oc(this.logger,t)}}var ri=new oc;class sc{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(o=>{let[u,l]=o;for(let f=0;f<l;f++)u(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(o=>{let[u,l]=o;for(let f=0;f<l;f++)u.apply(u,[t,...r])})}}class z_ extends sc{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let u;t.indexOf(".")>-1?u=t.split("."):(u=[t,n],r&&(Array.isArray(r)?u.push(...r):ze(r)&&a?u.push(...r.split(a)):u.push(r)));const l=ic(this.data,u);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=u[0],n=u[1],r=u.slice(2).join(".")),l||!o||!ze(r)?l:Yp(this.data&&this.data[t]&&this.data[t][n],r,a)}addResource(t,n,r,i){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let u=[t,n];r&&(u=u.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(u=t.split("."),i=n,n=u[1]),this.addNamespaces(n),q_(this.data,u,i),a.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const a in r)(ze(r[a])||Array.isArray(r[a]))&&this.addResource(t,n,a,r[a],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,a){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},u=[t,n];t.indexOf(".")>-1&&(u=t.split("."),i=r,r=n,n=u[1]),this.addNamespaces(n);let l=ic(this.data,u)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?U_(l,r,a):l={...l,...r},q_(this.data,u,l),o.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var H_={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,n,r,i))}),t}};const B_={};class uc extends sc{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),d7(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ri.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let a=n.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,u=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!w7(t,r,i);if(o&&!u){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:ze(a)?[a]:a};const f=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(f[0])>-1)&&(a=f.shift()),t=f.join(i)}return{key:t,namespaces:ze(a)?[a]:a}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:o,namespaces:u}=this.extractFromKey(t[t.length-1],n),l=u[u.length-1],f=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(d){const T=n.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${T}${o}`,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${T}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:o}const h=this.resolve(t,n);let p=h&&h.res;const m=h&&h.usedKey||o,y=h&&h.exactUsedKey||o,g=Object.prototype.toString.apply(p),b=["[object Number]","[object Function]","[object RegExp]"],w=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,S=!this.i18nFormat||this.i18nFormat.handleAsObject,C=!ze(p)&&typeof p!="boolean"&&typeof p!="number";if(S&&p&&C&&b.indexOf(g)<0&&!(ze(w)&&Array.isArray(p))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const T=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,p,{...n,ns:u}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(h.res=T,h.usedParams=this.getUsedParamsDetails(n),h):T}if(a){const T=Array.isArray(p),_=T?[]:{},x=T?y:m;for(const k in p)if(Object.prototype.hasOwnProperty.call(p,k)){const A=`${x}${a}${k}`;_[k]=this.translate(A,{...n,joinArrays:!1,ns:u}),_[k]===A&&(_[k]=p[k])}p=_}}else if(S&&ze(w)&&Array.isArray(p))p=p.join(w),p&&(p=this.extendTranslation(p,t,n,r));else{let T=!1,_=!1;const x=n.count!==void 0&&!ze(n.count),k=uc.hasDefaultValue(n),A=x?this.pluralResolver.getSuffix(f,n.count,n):"",L=n.ordinal&&x?this.pluralResolver.getSuffix(f,n.count,{ordinal:!1}):"",N=x&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),F=N&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${A}`]||n[`defaultValue${L}`]||n.defaultValue;!this.isValidLookup(p)&&k&&(T=!0,p=F),this.isValidLookup(p)||(_=!0,p=o);const V=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&_?void 0:p,D=k&&F!==p&&this.options.updateMissing;if(_||T||D){if(this.logger.log(D?"updateKey":"missingKey",f,l,o,D?F:p),a){const q=this.resolve(o,{...n,keySeparator:!1});q&&q.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let j=[];const z=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&z&&z[0])for(let q=0;q<z.length;q++)j.push(z[q]);else this.options.saveMissingTo==="all"?j=this.languageUtils.toResolveHierarchy(n.lng||this.language):j.push(n.lng||this.language);const Q=(q,J,$)=>{const Y=k&&$!==p?$:V;this.options.missingKeyHandler?this.options.missingKeyHandler(q,l,J,Y,D,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(q,l,J,Y,D,n),this.emit("missingKey",q,l,J,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&x?j.forEach(q=>{const J=this.pluralResolver.getSuffixes(q,n);N&&n[`defaultValue${this.options.pluralSeparator}zero`]&&J.indexOf(`${this.options.pluralSeparator}zero`)<0&&J.push(`${this.options.pluralSeparator}zero`),J.forEach($=>{Q([q],o+$,n[`defaultValue${$}`]||F)})}):Q(j,o,F))}p=this.extendTranslation(p,t,n,h,r),_&&p===o&&this.options.appendNamespaceToMissingKey&&(p=`${l}:${o}`),(_||T)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,T?p:void 0):p=this.options.parseMissingKeyHandler(p))}return i?(h.res=p,h.usedParams=this.getUsedParamsDetails(n),h):p}extendTranslation(t,n,r,i,a){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const f=ze(t)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(f){const p=t.match(this.interpolator.nestingRegexp);d=p&&p.length}let h=r.replace&&!ze(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),t=this.interpolator.interpolate(t,h,r.lng||this.language||i.usedLng,r),f){const p=t.match(this.interpolator.nestingRegexp),m=p&&p.length;d<m&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var p=arguments.length,m=new Array(p),y=0;y<p;y++)m[y]=arguments[y];return a&&a[0]===m[0]&&!r.context?(o.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${n[0]}`),null):o.translate(...m,n)},r)),r.interpolation&&this.interpolator.reset()}const u=r.postProcess||this.options.postProcess,l=ze(u)?[u]:u;return t!=null&&l&&l.length&&r.applyPostProcessor!==!1&&(t=H_.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,a,o,u;return ze(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const f=this.extractFromKey(l,n),d=f.key;i=d;let h=f.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const p=n.count!==void 0&&!ze(n.count),m=p&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),y=n.context!==void 0&&(ze(n.context)||typeof n.context=="number")&&n.context!=="",g=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);h.forEach(b=>{this.isValidLookup(r)||(u=b,!B_[`${g[0]}-${b}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(u)&&(B_[`${g[0]}-${b}`]=!0,this.logger.warn(`key "${i}" for languages "${g.join(", ")}" won't get resolved as namespace "${u}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(w=>{if(this.isValidLookup(r))return;o=w;const S=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(S,d,w,b,n);else{let T;p&&(T=this.pluralResolver.getSuffix(w,n.count,n));const _=`${this.options.pluralSeparator}zero`,x=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(S.push(d+T),n.ordinal&&T.indexOf(x)===0&&S.push(d+T.replace(x,this.options.pluralSeparator)),m&&S.push(d+_)),y){const k=`${d}${this.options.contextSeparator}${n.context}`;S.push(k),p&&(S.push(k+T),n.ordinal&&T.indexOf(x)===0&&S.push(k+T.replace(x,this.options.pluralSeparator)),m&&S.push(k+_))}}let C;for(;C=S.pop();)this.isValidLookup(r)||(a=C,r=this.getResource(w,b,C,n))}))})}),{res:r,usedKey:i,exactUsedKey:a,usedLng:o,usedNS:u}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!ze(t.replace);let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const a of n)delete i[a]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const Kp=e=>e.charAt(0).toUpperCase()+e.slice(1);class W_{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ri.create("languageUtils")}getScriptPartFromCode(t){if(t=ac(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=ac(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(ze(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let i=Intl.getCanonicalLocales(t)[0];if(i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i)return i}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Kp(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Kp(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Kp(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(a=>{if(a===i)return a;if(!(a.indexOf("-")<0&&i.indexOf("-")<0)&&(a.indexOf("-")>0&&i.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===i||a.indexOf(i)===0&&i.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),ze(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],a=o=>{o&&(this.isSupportedCode(o)?i.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return ze(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):ze(t)&&a(this.formatLanguageCode(t)),r.forEach(o=>{i.indexOf(o)<0&&a(this.formatLanguageCode(o))}),i}}let S7=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],x7={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const C7=["v1","v2","v3"],T7=["v4"],G_={zero:0,one:1,two:2,few:3,many:4,other:5},O7=()=>{const e={};return S7.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:x7[t.fc]}})}),e};class k7{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=ri.create("pluralResolver"),(!this.options.compatibilityJSON||T7.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=O7(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const r=ac(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:r,type:i});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let o;try{o=new Intl.PluralRules(r,{type:i})}catch{if(!t.match(/-|_/))return;const l=this.languageUtils.getLanguagePartFromCode(t);o=this.getRule(l,n)}return this.pluralRulesCache[a]=o,o}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,a)=>G_[i]-G_[a]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const a=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!C7.includes(this.options.compatibilityJSON)}}const Q_=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=v7(e,t,n);return!a&&i&&ze(n)&&(a=Yp(e,n,r),a===void 0&&(a=Yp(t,n,r))),a},Xp=e=>e.replace(/\$/g,"$$$$");class R7{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ri.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:a,prefixEscaped:o,suffix:u,suffixEscaped:l,formatSeparator:f,unescapeSuffix:d,unescapePrefix:h,nestingPrefix:p,nestingPrefixEscaped:m,nestingSuffix:y,nestingSuffixEscaped:g,nestingOptionsSeparator:b,maxReplaces:w,alwaysFormat:S}=t.interpolation;this.escape=n!==void 0?n:g7,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=a?$o(a):o||"{{",this.suffix=u?$o(u):l||"}}",this.formatSeparator=f||",",this.unescapePrefix=d?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=p?$o(p):m||$o("$t("),this.nestingSuffix=y?$o(y):g||$o(")"),this.nestingOptionsSeparator=b||",",this.maxReplaces=w||1e3,this.alwaysFormat=S!==void 0?S:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,i){let a,o,u;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},f=m=>{if(m.indexOf(this.formatSeparator)<0){const w=Q_(n,l,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(w,void 0,r,{...i,...n,interpolationkey:m}):w}const y=m.split(this.formatSeparator),g=y.shift().trim(),b=y.join(this.formatSeparator).trim();return this.format(Q_(n,l,g,this.options.keySeparator,this.options.ignoreJSONStructure),b,r,{...i,...n,interpolationkey:g})};this.resetRegExp();const d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,h=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>Xp(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?Xp(this.escape(m)):Xp(m)}].forEach(m=>{for(u=0;a=m.regex.exec(t);){const y=a[1].trim();if(o=f(y),o===void 0)if(typeof d=="function"){const b=d(t,a,i);o=ze(b)?b:""}else if(i&&Object.prototype.hasOwnProperty.call(i,y))o="";else if(h){o=a[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),o="";else!ze(o)&&!this.useRawValueToEscape&&(o=j_(o));const g=m.safeValue(o);if(t=t.replace(a[0],g),h?(m.regex.lastIndex+=o.length,m.regex.lastIndex-=a[0].length):m.regex.lastIndex=0,u++,u>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,a,o;const u=(l,f)=>{const d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;const h=l.split(new RegExp(`${d}[ ]*{`));let p=`{${h[1]}`;l=h[0],p=this.interpolate(p,o);const m=p.match(/'/g),y=p.match(/"/g);(m&&m.length%2===0&&!y||y.length%2!==0)&&(p=p.replace(/'/g,'"'));try{o=JSON.parse(p),f&&(o={...f,...o})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,g),`${l}${d}${p}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,l};for(;i=this.nestingRegexp.exec(t);){let l=[];o={...r},o=o.replace&&!ze(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let f=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const d=i[1].split(this.formatSeparator).map(h=>h.trim());i[1]=d.shift(),l=d,f=!0}if(a=n(u.call(this,i[1].trim(),o),o),a&&i[0]===t&&!ze(a))return a;ze(a)||(a=j_(a)),a||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),a=""),f&&(a=l.reduce((d,h)=>this.format(d,h,r.lng,{...r,interpolationkey:i[1].trim()}),a.trim())),t=t.replace(i[0],a),this.regexp.lastIndex=0}return t}}const A7=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(o=>{if(o){const[u,...l]=o.split(":"),f=l.join(":").trim().replace(/^'+|'+$/g,""),d=u.trim();n[d]||(n[d]=f),f==="false"&&(n[d]=!1),f==="true"&&(n[d]=!0),isNaN(f)||(n[d]=parseInt(f,10))}})}return{formatName:t,formatOptions:n}},Vo=e=>{const t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});const o=r+JSON.stringify(a);let u=t[o];return u||(u=e(ac(r),i),t[o]=u),u(n)}};class P7{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ri.create("formatter"),this.options=t,this.formats={number:Vo((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return a=>i.format(a)}),currency:Vo((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return a=>i.format(a)}),datetime:Vo((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return a=>i.format(a)}),relativetime:Vo((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return a=>i.format(a,r.range||"day")}),list:Vo((n,r)=>{const i=new Intl.ListFormat(n,{...r});return a=>i.format(a)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Vo(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(u=>u.indexOf(")")>-1)){const u=a.findIndex(l=>l.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,u)].join(this.formatSeparator)}return a.reduce((u,l)=>{const{formatName:f,formatOptions:d}=A7(l);if(this.formats[f]){let h=u;try{const p=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},m=p.locale||p.lng||i.locale||i.lng||r;h=this.formats[f](u,m,{...d,...i,...p})}catch(p){this.logger.warn(p)}return h}else this.logger.warn(`there was no format function for ${f}`);return u},t)}}const N7=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class I7 extends sc{constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=ri.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const a={},o={},u={},l={};return t.forEach(f=>{let d=!0;n.forEach(h=>{const p=`${f}|${h}`;!r.reload&&this.store.hasResourceBundle(f,h)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?o[p]===void 0&&(o[p]=!0):(this.state[p]=1,d=!1,o[p]===void 0&&(o[p]=!0),a[p]===void 0&&(a[p]=!0),l[h]===void 0&&(l[h]=!0)))}),d||(u[f]=!0)}),(Object.keys(a).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(a),pending:Object.keys(o),toLoadLanguages:Object.keys(u),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const i=t.split("|"),a=i[0],o=i[1];n&&this.emit("failedLoading",a,o,n),!n&&r&&this.store.addResourceBundle(a,o,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const u={};this.queue.forEach(l=>{p7(l.loaded,[a],o),N7(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(f=>{u[f]||(u[f]={});const d=l.loaded[f];d.length&&d.forEach(h=>{u[f][h]===void 0&&(u[f][h]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:a,callback:o});return}this.readingCalls++;const u=(f,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(f&&d&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,i+1,a*2,o)},a);return}o(f,d)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const f=l(t,n);f&&typeof f.then=="function"?f.then(d=>u(null,d)).catch(u):u(null,f)}catch(f){u(f)}return}return l(t,n,u)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();ze(t)&&(t=this.languageUtils.toResolveHierarchy(t)),ze(n)&&(n=[n]);const a=this.queueLoad(t,n,r,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),i=r[0],a=r[1];this.read(i,a,"read",void 0,void 0,(o,u)=>{o&&this.logger.warn(`${n}loading namespace ${a} for language ${i} failed`,o),!o&&u&&this.logger.log(`${n}loaded namespace ${a} for language ${i}`,u),this.loaded(t,o,u)})}saveMissing(t,n,r,i,a){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...o,isUpdate:a},f=this.backend.create.bind(this.backend);if(f.length<6)try{let d;f.length===5?d=f(t,n,r,i,l):d=f(t,n,r,i),d&&typeof d.then=="function"?d.then(h=>u(null,h)).catch(u):u(null,d)}catch(d){u(d)}else f(t,n,r,i,u,l)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}const Y_=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),ze(e[1])&&(t.defaultValue=e[1]),ze(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),K_=e=>(ze(e.ns)&&(e.ns=[e.ns]),ze(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),ze(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),lc=()=>{},L7=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class bu extends sc{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=K_(t),this.services={},this.logger=ri,this.modules={external:[]},L7(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(ze(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=Y_();this.options={...i,...this.options,...K_(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const a=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?ri.init(a(this.modules.logger),this.options):ri.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=P7);const h=new W_(this.options);this.store=new z_(this.options.resources,this.options);const p=this.services;p.logger=ri,p.resourceStore=this.store,p.languageUtils=h,p.pluralResolver=new k7(h,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(p.formatter=a(d),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new R7(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new I7(a(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(m){for(var y=arguments.length,g=new Array(y>1?y-1:0),b=1;b<y;b++)g[b-1]=arguments[b];t.emit(m,...g)}),this.modules.languageDetector&&(p.languageDetector=a(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=a(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new uc(this.services,this.options),this.translator.on("*",function(m){for(var y=arguments.length,g=new Array(y>1?y-1:0),b=1;b<y;b++)g[b-1]=arguments[b];t.emit(m,...g)}),this.modules.external.forEach(m=>{m.init&&m.init(this)})}if(this.format=this.options.interpolation.format,r||(r=lc),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const l=gu(),f=()=>{const d=(h,p)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(p),r(h,p)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),l}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:lc;const i=ze(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const a=[],o=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(f=>{f!=="cimode"&&a.indexOf(f)<0&&a.push(f)})};i?o(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>o(l)),this.options.preload&&this.options.preload.forEach(u=>o(u)),this.services.backendConnector.load(a,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(u)})}else r(null)}reloadResources(t,n,r){const i=gu();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=lc),this.services.backendConnector.reload(t,n,a=>{i.resolve(),r(a)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&H_.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=gu();this.emit("languageChanging",t);const a=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},o=(l,f)=>{f?(a(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},u=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const f=ze(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);f&&(this.language||a(f),this.translator.language||this.translator.changeLanguage(f),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(f)),this.loadResources(f,d=>{o(d,f)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(t),i}getFixedT(t,n,r){var i=this;const a=function(o,u){let l;if(typeof u!="object"){for(var f=arguments.length,d=new Array(f>2?f-2:0),h=2;h<f;h++)d[h-2]=arguments[h];l=i.options.overloadTranslationOptionHandler([o,u].concat(d))}else l={...u};l.lng=l.lng||a.lng,l.lngs=l.lngs||a.lngs,l.ns=l.ns||a.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||a.keyPrefix);const p=i.options.keySeparator||".";let m;return l.keyPrefix&&Array.isArray(o)?m=o.map(y=>`${l.keyPrefix}${p}${y}`):m=l.keyPrefix?`${l.keyPrefix}${p}${o}`:o,i.t(m,l)};return ze(t)?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=r,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(u,l)=>{const f=this.services.backendConnector.state[`${u}|${l}`];return f===-1||f===0||f===2};if(n.precheck){const u=n.precheck(this,o);if(u!==void 0)return u}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!i||o(a,t)))}loadNamespaces(t,n){const r=gu();return this.options.ns?(ze(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=gu();ze(t)&&(t=[t]);const i=this.options.preload||[],a=t.filter(o=>i.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return a.length?(this.options.preload=i.concat(a),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new W_(Y_());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new bu(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:lc;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},a=new bu(i);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(u=>{a[u]=this[u]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new z_(this.store.data,i),a.services.resourceStore=a.store),a.translator=new uc(a.services,i),a.translator.on("*",function(u){for(var l=arguments.length,f=new Array(l>1?l-1:0),d=1;d<l;d++)f[d-1]=arguments[d];a.emit(u,...f)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Rn=bu.createInstance();Rn.createInstance=bu.createInstance,Rn.createInstance,Rn.dir,Rn.init,Rn.loadResources,Rn.reloadResources,Rn.use,Rn.changeLanguage,Rn.getFixedT,Rn.t,Rn.exists,Rn.setDefaultNamespace,Rn.hasLoadedNamespace,Rn.loadNamespaces,Rn.loadLanguages;var cc={};/*!
112
112
  * cookie
113
113
  * Copyright(c) 2012-2014 Roman Shtylman
114
114
  * Copyright(c) 2015 Douglas Christopher Wilson
115
115
  * MIT Licensed
116
- */var X_;function F7(){if(X_)return cc;X_=1,cc.parse=o,cc.serialize=f;var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,n=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,r=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,a=/^[\u0020-\u003A\u003D-\u007E]*$/;function o(m,y){if(typeof m!="string")throw new TypeError("argument str must be a string");var g={},b=m.length;if(b<2)return g;var w=y&&y.decode||d,S=0,C=0,T=0;do{if(C=m.indexOf("=",S),C===-1)break;if(T=m.indexOf(";",S),T===-1)T=b;else if(C>T){S=m.lastIndexOf(";",C-1)+1;continue}var _=u(m,S,C),x=l(m,C,_),k=m.slice(_,x);if(!t.call(g,k)){var A=u(m,C+1,T),L=l(m,T,A);m.charCodeAt(A)===34&&m.charCodeAt(L-1)===34&&(A++,L--);var N=m.slice(A,L);g[k]=p(N,w)}S=T+1}while(S<b);return g}function u(m,y,g){do{var b=m.charCodeAt(y);if(b!==32&&b!==9)return y}while(++y<g);return g}function l(m,y,g){for(;y>g;){var b=m.charCodeAt(--y);if(b!==32&&b!==9)return y+1}return g}function f(m,y,g){var b=g&&g.encode||encodeURIComponent;if(typeof b!="function")throw new TypeError("option encode is invalid");if(!n.test(m))throw new TypeError("argument name is invalid");var w=b(y);if(!r.test(w))throw new TypeError("argument val is invalid");var S=m+"="+w;if(!g)return S;if(g.maxAge!=null){var C=Math.floor(g.maxAge);if(!isFinite(C))throw new TypeError("option maxAge is invalid");S+="; Max-Age="+C}if(g.domain){if(!i.test(g.domain))throw new TypeError("option domain is invalid");S+="; Domain="+g.domain}if(g.path){if(!a.test(g.path))throw new TypeError("option path is invalid");S+="; Path="+g.path}if(g.expires){var T=g.expires;if(!h(T)||isNaN(T.valueOf()))throw new TypeError("option expires is invalid");S+="; Expires="+T.toUTCString()}if(g.httpOnly&&(S+="; HttpOnly"),g.secure&&(S+="; Secure"),g.partitioned&&(S+="; Partitioned"),g.priority){var _=typeof g.priority=="string"?g.priority.toLowerCase():g.priority;switch(_){case"low":S+="; Priority=Low";break;case"medium":S+="; Priority=Medium";break;case"high":S+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(g.sameSite){var x=typeof g.sameSite=="string"?g.sameSite.toLowerCase():g.sameSite;switch(x){case!0:S+="; SameSite=Strict";break;case"lax":S+="; SameSite=Lax";break;case"strict":S+="; SameSite=Strict";break;case"none":S+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return S}function d(m){return m.indexOf("%")!==-1?decodeURIComponent(m):m}function h(m){return e.call(m)==="[object Date]"}function p(m,y){try{return y(m)}catch{return m}}return cc}var fc=F7();function D7(){const e=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function M7(e){return typeof e=="string"?fc.parse(e):typeof e=="object"&&e!==null?e:{}}function Zp(e,t={}){const n=j7(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function j7(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class $7{constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const i=this.cookies;this.cookies=fc.parse(document.cookie),this._checkChanges(i)};const r=typeof document>"u"?"":document.cookie;this.cookies=M7(t||r),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=D7()}_emitChange(t){for(let n=0;n<this.changeListeners.length;++n)this.changeListeners[n](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(r=>{t[r]!==this.cookies[r]&&this._emitChange({name:r,value:Zp(this.cookies[r])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),Zp(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let r in this.cookies)n[r]=Zp(this.cookies[r],t);return n}set(t,n,r){r?r=Object.assign(Object.assign({},this.defaultSetOptions),r):r=this.defaultSetOptions;const i=typeof n=="string"?n:JSON.stringify(n);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:i}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=fc.serialize(t,i,r)),this._emitChange({name:t,value:n,options:r})}remove(t,n){const r=n=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),n),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=fc.serialize(t,"",r)),this._emitChange({name:t,value:void 0,options:n})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const n=this.changeListeners.indexOf(t);n>=0&&this.changeListeners.splice(n,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}const Z_=Q.createContext(new $7),{Provider:Nz,Consumer:Iz}=Z_;typeof SuppressedError=="function"&&SuppressedError;var Jp={exports:{}},xt={};/** @license React v16.13.1
116
+ */var X_;function F7(){if(X_)return cc;X_=1,cc.parse=o,cc.serialize=f;var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,n=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,r=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,a=/^[\u0020-\u003A\u003D-\u007E]*$/;function o(m,y){if(typeof m!="string")throw new TypeError("argument str must be a string");var g={},b=m.length;if(b<2)return g;var w=y&&y.decode||d,S=0,C=0,T=0;do{if(C=m.indexOf("=",S),C===-1)break;if(T=m.indexOf(";",S),T===-1)T=b;else if(C>T){S=m.lastIndexOf(";",C-1)+1;continue}var _=u(m,S,C),x=l(m,C,_),k=m.slice(_,x);if(!t.call(g,k)){var A=u(m,C+1,T),L=l(m,T,A);m.charCodeAt(A)===34&&m.charCodeAt(L-1)===34&&(A++,L--);var N=m.slice(A,L);g[k]=p(N,w)}S=T+1}while(S<b);return g}function u(m,y,g){do{var b=m.charCodeAt(y);if(b!==32&&b!==9)return y}while(++y<g);return g}function l(m,y,g){for(;y>g;){var b=m.charCodeAt(--y);if(b!==32&&b!==9)return y+1}return g}function f(m,y,g){var b=g&&g.encode||encodeURIComponent;if(typeof b!="function")throw new TypeError("option encode is invalid");if(!n.test(m))throw new TypeError("argument name is invalid");var w=b(y);if(!r.test(w))throw new TypeError("argument val is invalid");var S=m+"="+w;if(!g)return S;if(g.maxAge!=null){var C=Math.floor(g.maxAge);if(!isFinite(C))throw new TypeError("option maxAge is invalid");S+="; Max-Age="+C}if(g.domain){if(!i.test(g.domain))throw new TypeError("option domain is invalid");S+="; Domain="+g.domain}if(g.path){if(!a.test(g.path))throw new TypeError("option path is invalid");S+="; Path="+g.path}if(g.expires){var T=g.expires;if(!h(T)||isNaN(T.valueOf()))throw new TypeError("option expires is invalid");S+="; Expires="+T.toUTCString()}if(g.httpOnly&&(S+="; HttpOnly"),g.secure&&(S+="; Secure"),g.partitioned&&(S+="; Partitioned"),g.priority){var _=typeof g.priority=="string"?g.priority.toLowerCase():g.priority;switch(_){case"low":S+="; Priority=Low";break;case"medium":S+="; Priority=Medium";break;case"high":S+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(g.sameSite){var x=typeof g.sameSite=="string"?g.sameSite.toLowerCase():g.sameSite;switch(x){case!0:S+="; SameSite=Strict";break;case"lax":S+="; SameSite=Lax";break;case"strict":S+="; SameSite=Strict";break;case"none":S+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return S}function d(m){return m.indexOf("%")!==-1?decodeURIComponent(m):m}function h(m){return e.call(m)==="[object Date]"}function p(m,y){try{return y(m)}catch{return m}}return cc}var fc=F7();function D7(){const e=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function M7(e){return typeof e=="string"?fc.parse(e):typeof e=="object"&&e!==null?e:{}}function Zp(e,t={}){const n=j7(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function j7(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class $7{constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const i=this.cookies;this.cookies=fc.parse(document.cookie),this._checkChanges(i)};const r=typeof document>"u"?"":document.cookie;this.cookies=M7(t||r),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=D7()}_emitChange(t){for(let n=0;n<this.changeListeners.length;++n)this.changeListeners[n](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(r=>{t[r]!==this.cookies[r]&&this._emitChange({name:r,value:Zp(this.cookies[r])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),Zp(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let r in this.cookies)n[r]=Zp(this.cookies[r],t);return n}set(t,n,r){r?r=Object.assign(Object.assign({},this.defaultSetOptions),r):r=this.defaultSetOptions;const i=typeof n=="string"?n:JSON.stringify(n);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:i}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=fc.serialize(t,i,r)),this._emitChange({name:t,value:n,options:r})}remove(t,n){const r=n=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),n),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=fc.serialize(t,"",r)),this._emitChange({name:t,value:void 0,options:n})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const n=this.changeListeners.indexOf(t);n>=0&&this.changeListeners.splice(n,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}const Z_=G.createContext(new $7),{Provider:Nz,Consumer:Iz}=Z_;typeof SuppressedError=="function"&&SuppressedError;var Jp={exports:{}},Et={};/** @license React v16.13.1
117
117
  * react-is.development.js
118
118
  *
119
119
  * Copyright (c) Facebook, Inc. and its affiliates.
120
120
  *
121
121
  * This source code is licensed under the MIT license found in the
122
122
  * LICENSE file in the root directory of this source tree.
123
- */var J_;function V7(){return J_||(J_=1,function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function C(W){return typeof W=="string"||typeof W=="function"||W===r||W===f||W===a||W===i||W===h||W===p||typeof W=="object"&&W!==null&&(W.$$typeof===y||W.$$typeof===m||W.$$typeof===o||W.$$typeof===u||W.$$typeof===d||W.$$typeof===b||W.$$typeof===w||W.$$typeof===S||W.$$typeof===g)}function T(W){if(typeof W=="object"&&W!==null){var ye=W.$$typeof;switch(ye){case t:var ue=W.type;switch(ue){case l:case f:case r:case a:case i:case h:return ue;default:var Te=ue&&ue.$$typeof;switch(Te){case u:case d:case y:case m:case o:return Te;default:return ye}}case n:return ye}}}var _=l,x=f,k=u,A=o,L=t,N=d,F=r,H=y,V=m,D=n,j=a,z=i,Y=h,q=!1;function J(W){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),$(W)||T(W)===l}function $(W){return T(W)===f}function K(W){return T(W)===u}function ae(W){return T(W)===o}function ie(W){return typeof W=="object"&&W!==null&&W.$$typeof===t}function te(W){return T(W)===d}function fe(W){return T(W)===r}function le(W){return T(W)===y}function ve(W){return T(W)===m}function _e(W){return T(W)===n}function be(W){return T(W)===a}function we(W){return T(W)===i}function ne(W){return T(W)===h}xt.AsyncMode=_,xt.ConcurrentMode=x,xt.ContextConsumer=k,xt.ContextProvider=A,xt.Element=L,xt.ForwardRef=N,xt.Fragment=F,xt.Lazy=H,xt.Memo=V,xt.Portal=D,xt.Profiler=j,xt.StrictMode=z,xt.Suspense=Y,xt.isAsyncMode=J,xt.isConcurrentMode=$,xt.isContextConsumer=K,xt.isContextProvider=ae,xt.isElement=ie,xt.isForwardRef=te,xt.isFragment=fe,xt.isLazy=le,xt.isMemo=ve,xt.isPortal=_e,xt.isProfiler=be,xt.isStrictMode=we,xt.isSuspense=ne,xt.isValidElementType=C,xt.typeOf=T}()),xt}var ew;function q7(){return ew||(ew=1,Jp.exports=V7()),Jp.exports}var ev,tw;function U7(){if(tw)return ev;tw=1;var e=q7(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[e.ForwardRef]=r,a[e.Memo]=i;function o(y){return e.isMemo(y)?i:a[y.$$typeof]||t}var u=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;function m(y,g,b){if(typeof g!="string"){if(p){var w=h(g);w&&w!==p&&m(y,w,b)}var S=l(g);f&&(S=S.concat(f(g)));for(var C=o(y),T=o(g),_=0;_<S.length;++_){var x=S[_];if(!n[x]&&!(b&&b[x])&&!(T&&T[x])&&!(C&&C[x])){var k=d(g,x);try{u(y,x,k)}catch{}}}}return y}return ev=m,ev}U7();function z7(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function H7(e,t){const n=M.useContext(Z_);if(!n)throw new Error("Missing <CookiesProvider>");const i=Object.assign(Object.assign({},{doNotUpdate:!0}),t),[a,o]=M.useState(()=>n.getAll(i));z7()&&M.useLayoutEffect(()=>{function d(){const h=n.getAll(i);B7(e||null,h,a)&&o(h)}return n.addChangeListener(d),()=>{n.removeChangeListener(d)}},[n,a]);const u=M.useMemo(()=>n.set.bind(n),[n]),l=M.useMemo(()=>n.remove.bind(n),[n]),f=M.useMemo(()=>n.update.bind(n),[n]);return[a,u,l,f]}function B7(e,t,n){if(!e)return!0;for(let r of e)if(t[r]!==n[r])return!0;return!1}var W7=function(t){return{type:"backend",init:function(r,i,a){},read:function(r,i,a){if(typeof t=="function"){if(t.length<3){try{var o=t(r,i);o&&typeof o.then=="function"?o.then(function(u){return a(null,u&&u.default||u)}).catch(a):a(null,o)}catch(u){a(u)}return}t(r,i,a);return}a(null,t&&t[r]&&t[r][i])}}};const{slice:G7,forEach:Q7}=[];function Y7(e){return Q7.call(G7.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function K7(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(e))}const nw=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,X7=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},i=encodeURIComponent(t);let a=`${e}=${i}`;if(r.maxAge>0){const o=r.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");a+=`; Max-Age=${Math.floor(o)}`}if(r.domain){if(!nw.test(r.domain))throw new TypeError("option domain is invalid");a+=`; Domain=${r.domain}`}if(r.path){if(!nw.test(r.path))throw new TypeError("option path is invalid");a+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(a+="; HttpOnly"),r.secure&&(a+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(a+="; Partitioned"),a},rw={create(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+n*60*1e3)),r&&(i.domain=r),document.cookie=X7(e,encodeURIComponent(t),i)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let i=n[r];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null},remove(e){this.create(e,"",-1)}};var Z7={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return rw.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:i,cookieOptions:a}=t;n&&typeof document<"u"&&rw.create(n,e,r,i,a)}},J7={name:"querystring",lookup(e){var r;let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:i}=window.location;!window.location.search&&((r=window.location.hash)==null?void 0:r.indexOf("?"))>-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));const o=i.substring(1).split("&");for(let u=0;u<o.length;u++){const l=o[u].indexOf("=");l>0&&o[u].substring(0,l)===t&&(n=o[u].substring(l+1))}}return n}};let qo=null;const iw=()=>{if(qo!==null)return qo;try{if(qo=typeof window<"u"&&window.localStorage!==null,!qo)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{qo=!1}return qo};var eR={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&iw())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&iw()&&window.localStorage.setItem(n,e)}};let Uo=null;const aw=()=>{if(Uo!==null)return Uo;try{if(Uo=typeof window<"u"&&window.sessionStorage!==null,!Uo)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Uo=!1}return Uo};var tR={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&aw())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&aw()&&window.sessionStorage.setItem(n,e)}},nR={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:i}=navigator;if(n)for(let a=0;a<n.length;a++)t.push(n[a]);r&&t.push(r),i&&t.push(i)}return t.length>0?t:void 0}},rR={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},iR={name:"path",lookup(e){var i;let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(i=n[typeof t=="number"?t:0])==null?void 0:i.replace("/",""):void 0}},aR={name:"subdomain",lookup(e){var i,a;let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&((a=(i=window.location)==null?void 0:i.hostname)==null?void 0:a.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[n]}};let ow=!1;try{document.cookie,ow=!0}catch{}const sw=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];ow||sw.splice(1,1);const oR=()=>({order:sw,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class uw{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=Y7(n,this.options||{},oR()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(Z7),this.addDetector(J7),this.addDetector(eR),this.addDetector(tR),this.addDetector(nR),this.addDetector(rR),this.addDetector(iR),this.addDetector(aR)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let i=this.detectors[r].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(n=n.concat(i))}}),n=n.filter(r=>r!=null&&!K7(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}uw.type="languageDetector";const tv="en",lw=[tv,"no"],nv="translation",rv="i18next";function sR(e=tv,t=nv){return{returnObjects:!0,debug:!1,supportedLngs:lw,fallbackLng:tv,lng:e,fallbackNS:nv,defaultNS:nv,ns:t,interpolation:{escapeValue:!1}}}const uR=typeof window>"u",lR={order:["path","navigator","localStorage","cookie","htmlTag"],lookupQuerystring:"lng",lookupCookie:"linaroResourcesHubLang",lookupLocalStorage:"linaroResourcesHubLang",lookupSessionStorage:"linaroResourcesHubLang",lookupFromPathIndex:0,lookupFromSubdomainIndex:0,caches:["localStorage","cookie"],excludeCacheFor:["cimode"],cookieOptions:{path:"/",sameSite:"strict"}};Rn.use(q3).use(uw).use(W7((e,t)=>f7(Object.assign({"../../helpers/lang/en.js":()=>Promise.resolve().then(()=>pD),"../../helpers/lang/no.js":()=>Promise.resolve().then(()=>vD)}),`../../helpers/lang/${e}.js`,5))).init({...sR(),lng:void 0,detection:lR,preload:uR?lw:[]});function zo(e,t,n){const[r,i]=H7([rv]),a=W3(t,n),{i18n:o}=a,u=r[rv];{const[l,f]=M.useState(o.resolvedLanguage);M.useEffect(()=>{l!==o.resolvedLanguage&&f(o.resolvedLanguage)},[l,o.resolvedLanguage]),M.useEffect(()=>{},[e,o]),M.useEffect(()=>{u!==e&&i(rv,e,{path:"/"})},[e,u,i])}return a}const iv=()=>O.jsxs("svg",{"aria-hidden":"true",role:"status",className:"ed-inline ed-w-4 ed-h-4 ed-mr-1 ed-text-brand ed-animate-spin",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[O.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"#E5E7EB"}),O.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentColor"})]}),Ho=({Icon:e=mp,btnType:t="btn_primary",title:n="Save",disabled:r=!1,loader:i=!1,loaderText:a="loading",callBack:o=()=>{},customClass:u="",fullWidthBtn:l=!1,customPadding:f="ed-px-7 ed-h-[41px]",btnBorder:d="ed-border-light",buttonTitleStylings:h="ed-text-sm ed-font-medium",buttonWidth:p="w-[100%]",iconSize:m=20,iconPosition:y="left",loaderPosition:g="left",submitType:b=!1,noIcon:w=!1})=>{const{t:S}=zo(),C=()=>{const _=k=>!w&&!i&&y===k||i&&g===k,x=()=>i?O.jsx(iv,{}):!w&&O.jsx(e,{size:m});return O.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2.5",children:[_("left")&&x(),O.jsx("span",{className:`whitespace-nowrap ${h}`,children:S(i?a:n)}),_("right")&&x()]})},T={btn_primary:O.jsx("button",{type:b?"submit":"button",className:`ed-flex ${u||""} ${p} ${l&&"ed-lg:w-max"} ${f||"ed-px-7 ed-h-[41px]"} ed-gap-2.5 ed-justify-center ed-items-center ed-text-14 ed-font-medium ed-rounded-[8px] ed-whitespace-nowrap ed-focus:outline-none ed-text-white disabled:ed-bg-brand disabled:ed-opacity-50 ed-bg-brand ${r?"":"btn_hover_color"}`,onClick:o,disabled:r,children:C()}),btn_secondary:O.jsx("button",{type:"button",className:`${u||""} ed-flex ${p} ed-lg:w-max px-7 ed-gap-2.5 ed-justify-center ed-items-center ed-text-14 ed-font-medium ed-h-[41px] ed-text-center ed-text-white ed-bg-gray-deep disabled:ed-opacity-50 ed-focus:outline-none ed-bg-none ed-rounded-[8px] ed-border ed-border-light ${r?"":"btn_hover_color"}`,onClick:o,disabled:r,children:C()}),btn_danger:O.jsx("button",{type:"button",className:`ed-flex ${u||""} ${p} ed-lg:w-max px-7 ed-gap-2.5 ed-justify-center ed-items-center ed-text-14 ed-font-medium ed-rounded-[8px] ed-h-[41px] ed-focus:outline-none ed-text-white ed-bg-red disabled:ed-opacity-50 ${r?"":"btn_hover_color"}`,onClick:o,disabled:r,children:C()}),btn_bordered:O.jsx("button",{type:"button",className:`${u||""} ed-flex ${f||"ed-px-7 ed-h-[41px]"} ${p} ${!l&&"lg:w-max"} ed-gap-2.5 ed-justify-center ed-items-center ed-text-14 ed-font-medium ed-whitespace-nowrap ed-text-center ed-text-border-regular disabled:ed-opacity-50 ed-focus:outline-none ed-bg-none ed-rounded-[8px] ed-border ed-border-${d||"light"}`,onClick:o,disabled:r,children:C()}),btn_bordered_danger:O.jsx("button",{type:"button",className:`ed-flex ${u||""} ${p} ${!l&&"ed-lg:w-max"} ed-px-[25px] ed-gap-2.5 ed-items-center ed-text-14 ed-font-medium ed-h-[41px] ed-text-center ed-text-red disabled:ed-opacity-50 ed-focus:outline-none ed-bg-none ed-rounded-[8px] ed-border ed-border-red`,onClick:o,disabled:r,children:C()}),btn_success:O.jsx("button",{type:"button",className:`ed-flex ${u||""} ${p} ed-gap-2.5 ed-px-[25px] ed-items-center ed-text-14 ed-font-medium ed-rounded-[8px] ed-h-[41px] ed-focus:outline-none ed-text-white ed-bg-green ed-hover:bg-green-600 disabled:ed-opacity-50 ${r?"":"btn_hover_color"}`,onClick:o,disabled:r,children:C()}),btn_warning:O.jsx("button",{type:"button",className:`ed-flex ed-gap-2.5 ${u||""} ${p} ed-lg:w-max px-7 ed-justify-center ed-items-center ed-text-14 ed-font-medium ed-rounded-[8px] ed-h-[41px] ed-focus:outline-none ed-text-white ed-bg-yellow disabled:ed-opacity-50 ${r?"":"btn_hover_color"}`,onClick:o,disabled:r,children:C()}),btn_preview:O.jsxs("button",{type:"button",className:`ed-flex ed-gap-2.5 ${u||""} ${p} ed-lg:w-max ed-px-7 ed-md:px-3 ed-xl:px-7 ed-justify-center ed-items-center ed-text-14 ed-font-medium ed-rounded-[8px] ed-h-[41px] ed-focus:outline-none ed-text-white disabled:ed-bg-brand disabled:ed-opacity-50 ed-bg-brand ${r?"":"btn_hover_color"}`,onClick:o,disabled:r,children:[C()," ",O.jsx("div",{className:"ed-border ed-border-l ed-border-gray ed-h-2/3 ed-flex ed-items-center ed-mx-3"})," ",O.jsx(cu,{className:"ed-w-5 ed-h-5"})]}),btn_bordered_brand:O.jsx("button",{type:"button",className:`gap-2.5 ${u}`,onClick:o,disabled:r,children:C()})};return O.jsx("div",{className:"ed-flex",children:T[t]})},cR=()=>O.jsxs("svg",{width:"240",height:"240",viewBox:"0 0 240 240",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[O.jsxs("g",{"clip-path":"url(#clip0_28564_181684)",children:[O.jsx("path",{d:"M240 183.523H0V183.643H240V183.523Z",fill:"#E0E0E0"}),O.jsx("path",{d:"M181.28 188.609H164.766V188.729H181.28V188.609Z",fill:"#E0E0E0"}),O.jsx("path",{d:"M53.3001 188.672H44.0078V188.792H53.3001V188.672Z",fill:"#E0E0E0"}),O.jsx("path",{d:"M120.481 188.391H101.646V188.511H120.481V188.391Z",fill:"#E0E0E0"}),O.jsx("path",{d:"M101.166 186.68H92.7461V186.8H101.166V186.68Z",fill:"#E0E0E0"}),O.jsx("path",{d:"M203.786 186.734H178.354V186.854H203.786V186.734Z",fill:"#E0E0E0"}),O.jsx("path",{d:"M23.4492 72.2422L132.875 87.9934L147.561 102.813L23.4492 72.2422Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.6",d:"M23.4492 72.2422L132.875 87.9934L147.561 102.813L23.4492 72.2422Z",fill:"white"}),O.jsx("path",{d:"M23.4492 72.2422L132.875 87.9934L127.797 109.423L23.4492 72.2422Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.2",d:"M23.4492 72.2422L132.875 87.9934L127.797 109.423L23.4492 72.2422Z",fill:"black"}),O.jsx("path",{d:"M125.55 47.4265L131.904 77.1995C132.248 78.8118 131.211 80.4126 129.598 80.7568L72.9203 92.8523C71.308 93.1964 69.7072 92.1587 69.363 90.5464L63.0093 60.7734C62.8293 59.9305 63.0275 59.0886 63.4873 58.4286C63.9088 57.8305 64.5457 57.3803 65.3152 57.2161L121.993 45.1206C122.763 44.9564 123.528 45.1072 124.157 45.4811C124.846 45.8958 125.371 46.5836 125.55 47.4265Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.4",d:"M125.55 47.4265L131.904 77.1995C132.248 78.8118 131.211 80.4126 129.598 80.7568L72.9203 92.8523C71.308 93.1964 69.7072 92.1587 69.363 90.5464L63.0093 60.7734C62.8293 59.9305 63.0275 59.0886 63.4873 58.4286C63.9088 57.8305 64.5457 57.3803 65.3152 57.2161L121.993 45.1206C122.763 44.9564 123.528 45.1072 124.157 45.4811C124.846 45.8958 125.371 46.5836 125.55 47.4265Z",fill:"black"}),O.jsx("path",{d:"M124.156 45.4815L105.217 68.7288C101.6 73.1688 95.3799 74.496 90.2655 71.9194L63.4863 58.4285C63.9078 57.8304 64.5447 57.3802 65.3142 57.216L121.992 45.1205C122.762 44.9564 123.528 45.1076 124.156 45.4815Z",fill:"#00A1E0"}),O.jsx("path",{d:"M23.4492 72.2422L113.705 93.691L127.797 109.423L23.4492 72.2422Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.6",d:"M23.4492 72.2422L113.705 93.691L127.797 109.423L23.4492 72.2422Z",fill:"white"}),O.jsx("path",{d:"M56.3718 92.937L56.1289 93.3516L66.1707 99.2349L66.4135 98.8203L56.3718 92.937Z",fill:"#00A1E0"}),O.jsx("path",{d:"M70.8483 101.414L70.6055 101.828L74.218 103.945L74.4609 103.53L70.8483 101.414Z",fill:"#00A1E0"}),O.jsx("path",{d:"M23.4492 72.25L113.705 93.6988L96.1615 114.846L23.4492 72.25Z",fill:"#00A1E0"}),O.jsx("path",{d:"M144.174 122.501C144.057 122.501 143.937 122.479 143.821 122.432L129.117 116.611C128.624 116.416 128.382 115.858 128.578 115.365C128.772 114.872 129.328 114.63 129.824 114.826L144.528 120.647C145.021 120.842 145.262 121.4 145.067 121.893C144.918 122.27 144.556 122.501 144.174 122.501Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.3",d:"M144.174 122.501C144.057 122.501 143.937 122.479 143.821 122.432L129.117 116.611C128.624 116.416 128.382 115.858 128.578 115.365C128.772 114.872 129.328 114.63 129.824 114.826L144.528 120.647C145.021 120.842 145.262 121.4 145.067 121.893C144.918 122.27 144.556 122.501 144.174 122.501Z",fill:"black"}),O.jsx("path",{d:"M143.306 114.071C143.189 114.071 143.069 114.049 142.953 114.003L135.056 110.877C134.563 110.682 134.322 110.124 134.517 109.631C134.711 109.138 135.268 108.895 135.763 109.092L143.66 112.218C144.153 112.413 144.394 112.971 144.199 113.464C144.049 113.841 143.688 114.071 143.306 114.071Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.5",d:"M143.306 114.071C143.189 114.071 143.069 114.049 142.953 114.003L135.056 110.877C134.563 110.682 134.322 110.124 134.517 109.631C134.711 109.138 135.268 108.895 135.763 109.092L143.66 112.218C144.153 112.413 144.394 112.971 144.199 113.464C144.049 113.841 143.688 114.071 143.306 114.071Z",fill:"white"}),O.jsx("path",{d:"M126.799 122.355C126.682 122.355 126.562 122.333 126.446 122.287L112.109 116.611C111.616 116.416 111.374 115.858 111.57 115.365C111.765 114.872 112.322 114.63 112.816 114.826L127.153 120.502C127.646 120.697 127.887 121.255 127.692 121.748C127.543 122.125 127.181 122.355 126.799 122.355Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.3",d:"M126.799 122.355C126.682 122.355 126.562 122.333 126.446 122.287L112.109 116.611C111.616 116.416 111.374 115.858 111.57 115.365C111.765 114.872 112.322 114.63 112.816 114.826L127.153 120.502C127.646 120.697 127.887 121.255 127.692 121.748C127.543 122.125 127.181 122.355 126.799 122.355Z",fill:"black"}),O.jsx("path",{d:"M178.705 79.125C179.976 81.6085 181.143 84.0925 182.25 86.6389C183.35 89.1853 184.394 91.7581 185.293 94.4586L185.621 95.4824C185.677 95.6644 185.762 95.9634 185.807 96.176C185.852 96.3978 185.9 96.6268 185.926 96.8298C186.053 97.666 186.075 98.4215 186.089 99.1645C186.113 100.645 186.013 102.057 185.89 103.461C185.621 106.264 185.184 108.992 184.583 111.728L181.951 111.436C181.917 108.732 181.892 106.002 181.798 103.338C181.751 102.009 181.675 100.683 181.54 99.4324C181.472 98.8112 181.372 98.2021 181.255 97.6924C181.228 97.5575 181.192 97.4548 181.161 97.3434C181.123 97.2244 181.107 97.1965 181.055 97.054L180.693 96.1463C179.69 93.7175 178.561 91.2671 177.41 88.8292L173.926 81.5173L178.705 79.125Z",fill:"#E4897B"}),O.jsx("path",{d:"M181.991 110.617L180.762 112.915L184.686 114.01C184.686 114.01 185.434 112.161 184.544 110.704L181.991 110.617Z",fill:"#E4897B"}),O.jsx("path",{d:"M179.256 116.228L182.865 116.513L184.686 114.009L180.761 112.914L179.256 116.228Z",fill:"#E4897B"}),O.jsx("path",{d:"M162.18 62.5371C162.123 62.816 161.929 63.0118 161.747 62.9749C161.565 62.9379 161.463 62.6821 161.52 62.4032C161.576 62.1243 161.77 61.9285 161.952 61.9654C162.134 62.0029 162.236 62.2587 162.18 62.5371Z",fill:"#263238"}),O.jsx("path",{d:"M161.955 63.0234C161.955 63.0234 160.994 64.5028 160.139 65.1364C160.538 65.697 161.419 65.6572 161.419 65.6572L161.955 63.0234Z",fill:"#DE5753"}),O.jsx("path",{d:"M163.515 61.2049C163.469 61.2049 163.425 61.1867 163.392 61.1511C162.892 60.6097 162.298 60.698 162.272 60.7009C162.184 60.7167 162.095 60.6543 162.08 60.5631C162.065 60.4724 162.126 60.3865 162.217 60.3711C162.248 60.3654 163.01 60.2449 163.637 60.9236C163.7 60.9913 163.696 61.0969 163.628 61.1598C163.596 61.19 163.555 61.2049 163.515 61.2049Z",fill:"#263238"}),O.jsx("path",{d:"M170.119 66.4609C169.613 69.0405 169.108 73.7675 170.913 75.4888C170.913 75.4888 170.208 78.1057 165.415 78.1057C160.144 78.1057 162.896 75.4893 162.896 75.4893C165.772 74.8024 165.698 72.6678 165.197 70.6638L170.119 66.4609Z",fill:"#E4897B"}),O.jsx("path",{d:"M171.637 77.1177C172.018 75.8534 172.437 74.4067 171.57 73.9535C170.616 73.4548 165.396 72.9465 163.596 73.8825C161.796 74.8185 162.307 77.3827 162.307 77.3827L171.637 77.1177Z",fill:"#263238"}),O.jsx("path",{d:"M182.708 196.822C182.347 196.822 181.998 196.767 181.862 196.59C181.804 196.515 181.758 196.386 181.864 196.193C181.92 196.092 182.008 196.026 182.127 195.999C182.644 195.88 183.615 196.545 183.657 196.573C183.684 196.591 183.698 196.624 183.691 196.657C183.685 196.689 183.661 196.715 183.629 196.723C183.448 196.766 183.072 196.822 182.708 196.822ZM182.268 196.15C182.231 196.15 182.197 196.153 182.165 196.161C182.094 196.178 182.043 196.215 182.011 196.273C181.935 196.41 181.98 196.469 181.995 196.488C182.145 196.686 182.866 196.689 183.392 196.6C183.088 196.413 182.588 196.15 182.268 196.15Z",fill:"#00A1E0"}),O.jsx("path",{d:"M183.61 196.721C183.596 196.721 183.582 196.718 183.57 196.711C183.205 196.513 182.499 195.741 182.574 195.348C182.587 195.276 182.64 195.153 182.84 195.128C182.966 195.114 183.089 195.148 183.195 195.236C183.605 195.57 183.689 196.588 183.693 196.631C183.696 196.661 183.681 196.691 183.655 196.707C183.641 196.717 183.625 196.721 183.61 196.721ZM182.897 195.292C182.885 195.292 182.872 195.293 182.86 195.295C182.751 195.308 182.742 195.358 182.737 195.379C182.694 195.612 183.143 196.196 183.506 196.47C183.465 196.173 183.352 195.58 183.089 195.365C183.029 195.316 182.966 195.292 182.897 195.292Z",fill:"#00A1E0"}),O.jsx("path",{d:"M161.534 196.826C161.082 196.826 160.645 196.763 160.499 196.56C160.447 196.489 160.407 196.367 160.506 196.195C160.561 196.098 160.65 196.032 160.771 195.999C161.355 195.843 162.59 196.542 162.642 196.572C162.672 196.589 162.689 196.623 162.683 196.658C162.677 196.692 162.651 196.719 162.617 196.726C162.391 196.771 161.956 196.826 161.534 196.826ZM160.975 196.141C160.917 196.141 160.863 196.148 160.814 196.161C160.737 196.182 160.684 196.22 160.65 196.277C160.591 196.381 160.613 196.432 160.634 196.462C160.793 196.682 161.683 196.694 162.345 196.603C162.018 196.435 161.388 196.141 160.975 196.141Z",fill:"#00A1E0"}),O.jsx("path",{d:"M162.599 196.721C162.588 196.721 162.576 196.718 162.565 196.714C162.14 196.523 161.297 195.761 161.361 195.361C161.376 195.268 161.442 195.151 161.672 195.128C161.842 195.112 161.998 195.159 162.135 195.271C162.584 195.64 162.678 196.589 162.682 196.63C162.685 196.659 162.672 196.688 162.648 196.705C162.633 196.716 162.617 196.721 162.599 196.721ZM161.739 195.292C161.723 195.292 161.706 195.293 161.689 195.294C161.538 195.31 161.529 195.369 161.525 195.388C161.487 195.628 162.06 196.227 162.494 196.488C162.449 196.211 162.323 195.642 162.029 195.4C161.94 195.327 161.845 195.292 161.739 195.292Z",fill:"#00A1E0"}),O.jsx("path",{d:"M166.477 196.642H162.951L162.6 188.477H166.126L166.477 196.642Z",fill:"#E4897B"}),O.jsx("path",{d:"M187.65 196.642H184.124L182.352 188.477H185.878L187.65 196.642Z",fill:"#E4897B"}),O.jsx("path",{d:"M183.872 196.234H187.834C187.978 196.234 188.103 196.335 188.134 196.475L188.831 199.61C188.903 199.935 188.647 200.242 188.314 200.237C186.931 200.213 186.259 200.131 184.517 200.131C183.445 200.131 181.237 200.243 179.757 200.243C178.309 200.243 178.083 198.779 178.689 198.647C181.406 198.053 182.43 197.233 183.3 196.451C183.457 196.31 183.662 196.234 183.872 196.234Z",fill:"#263238"}),O.jsx("path",{d:"M162.975 196.234H166.826C166.97 196.234 167.095 196.335 167.126 196.475L167.823 199.61C167.895 199.935 167.648 200.242 167.316 200.237C165.926 200.214 163.919 200.132 162.173 200.132C160.132 200.132 158.369 200.243 155.975 200.243C154.527 200.243 154.125 198.78 154.731 198.647C157.49 198.044 159.742 197.979 162.126 196.509C162.385 196.35 162.671 196.234 162.975 196.234Z",fill:"#263238"}),O.jsx("path",{d:"M161.273 81.6813C158.283 81.4476 155.409 81.0607 152.486 80.513C151.031 80.2336 149.573 79.9212 148.116 79.529C146.657 79.1378 145.196 78.6943 143.718 78.0775C143.349 77.9258 142.976 77.7554 142.604 77.5783C142.137 77.3474 141.748 77.1074 141.406 76.8799C140.713 76.422 140.12 75.9496 139.529 75.4788C138.355 74.5384 137.262 73.5612 136.184 72.5733C134.037 70.588 132 68.5332 130.039 66.3712L131.805 64.3984L138.769 69.4034C139.919 70.2324 141.079 71.0416 142.22 71.8053C142.789 72.1831 143.371 72.5416 143.9 72.8402C144.168 72.9924 144.406 73.1061 144.591 73.1791C144.876 73.2909 145.165 73.4013 145.469 73.5026C147.907 74.3157 150.663 74.838 153.401 75.2791C156.142 75.713 158.974 76.0701 161.71 76.3538L161.273 81.6813Z",fill:"#E4897B"}),O.jsx("path",{d:"M177.227 76.2875C180.531 77.0454 183.873 86.7083 183.873 86.7083L177.07 91.588C177.07 91.588 175.17 87.0875 173.3 83.1515C171.341 79.0274 173.847 75.5128 177.227 76.2875Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.4",d:"M177.227 76.2875C180.531 77.0454 183.873 86.7083 183.873 86.7083L177.07 91.588C177.07 91.588 175.17 87.0875 173.3 83.1515C171.341 79.0274 173.847 75.5128 177.227 76.2875Z",fill:"black"}),O.jsx("path",{d:"M175.32 81.5625L173.971 84.5817C175.368 87.5961 176.644 90.5817 176.985 91.3785C176.937 87.8121 176.26 83.3865 175.32 81.5625Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.6",d:"M175.32 81.5625L173.971 84.5817C175.368 87.5961 176.644 90.5817 176.985 91.3785C176.937 87.8121 176.26 83.3865 175.32 81.5625Z",fill:"black"}),O.jsx("path",{d:"M157.472 76.4562C157.472 76.4562 153.719 80.6955 157.263 106.935C162.946 106.935 173.358 106.935 176.124 106.935C176.254 104.039 174.435 89.9158 177.227 76.2742C177.227 76.2742 173.994 75.6253 170.913 75.4769C168.503 75.3608 165.014 75.284 162.895 75.4774C160.103 75.7323 157.472 76.4562 157.472 76.4562Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.4",d:"M157.472 76.4562C157.472 76.4562 153.719 80.6955 157.263 106.935C162.946 106.935 173.358 106.935 176.124 106.935C176.254 104.039 174.435 89.9158 177.227 76.2742C177.227 76.2742 173.994 75.6253 170.913 75.4769C168.503 75.3608 165.014 75.284 162.895 75.4774C160.103 75.7323 157.472 76.4562 157.472 76.4562Z",fill:"black"}),O.jsx("path",{d:"M156.078 81.5625C155.953 82.5561 155.857 83.7321 155.795 85.1193C157.355 84.6345 159.294 83.8569 161.046 82.6521L156.078 81.5625Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.6",d:"M156.078 81.5625C155.953 82.5561 155.857 83.7321 155.795 85.1193C157.355 84.6345 159.294 83.8569 161.046 82.6521L156.078 81.5625Z",fill:"black"}),O.jsx("path",{d:"M164.148 82.08C161.625 84.3158 151.986 84.0922 151.986 84.0922L151.668 74.7734C151.668 74.7734 157.133 75.5746 161.493 75.4858C166.88 75.3768 166.918 79.6262 164.148 82.08Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.4",d:"M164.148 82.08C161.625 84.3158 151.986 84.0922 151.986 84.0922L151.668 74.7734C151.668 74.7734 157.133 75.5746 161.493 75.4858C166.88 75.3768 166.918 79.6262 164.148 82.08Z",fill:"black"}),O.jsx("path",{d:"M131.889 64.443L129.469 61.6172L126.885 64.479C126.885 64.479 128.475 67.1549 131.009 66.7325L131.889 64.443Z",fill:"#E4897B"}),O.jsx("path",{d:"M126.052 58.3281L125.121 62.0155L126.886 64.486L129.469 61.6238L126.052 58.3281Z",fill:"#E4897B"}),O.jsx("path",{d:"M162.602 188.484L162.782 192.694H166.31L166.129 188.484H162.602Z",fill:"#CE6F64"}),O.jsx("path",{d:"M185.88 188.484H182.352L183.267 192.694H186.795L185.88 188.484Z",fill:"#CE6F64"}),O.jsx("path",{d:"M164.726 59.0347C161.563 57.5731 160.563 51.1929 169.663 52.7731C169.663 52.7731 168.291 54.2933 171.077 55.2533C173.863 56.2128 171.531 62.1797 164.726 59.0347Z",fill:"#263238"}),O.jsx("path",{d:"M171.597 63.8387C170.691 67.2188 170.333 69.2435 168.247 70.6494C165.109 72.7638 161.202 70.3374 161.08 66.7542C160.97 63.5291 162.47 58.5428 166.097 57.8617C169.671 57.1907 172.503 60.4585 171.597 63.8387Z",fill:"#E4897B"}),O.jsx("path",{d:"M169.537 54.4899C171.69 55.6942 174.609 56.4123 174.316 58.1197C173.958 60.2067 176.081 58.9011 175.587 62.0106C175.264 64.041 171.519 70.1936 168.883 69.8931C164.92 69.4414 165.422 63.3882 165.409 60.2072C165.401 58.3323 165.313 52.1278 169.537 54.4899Z",fill:"#263238"}),O.jsx("path",{d:"M164.932 57.1875C163.972 57.4141 162.7 62.9475 166.418 63.4544C170.699 64.0376 164.932 57.1875 164.932 57.1875Z",fill:"#263238"}),O.jsx("path",{d:"M165.031 59.153C163.855 59.2567 161.201 57.8407 161.518 55.7109C161.518 55.7109 163.209 58.2031 165.031 59.153Z",fill:"#263238"}),O.jsx("path",{d:"M166.774 63.8966C166.406 64.7361 165.709 65.3966 165.034 65.7479C164.02 66.2759 163.45 65.5036 163.679 64.4889C163.886 63.5754 164.663 62.1998 165.706 62.087C166.735 61.9756 167.195 62.9366 166.774 63.8966Z",fill:"#E4897B"}),O.jsx("path",{d:"M172.057 59.9843C172.769 59.6219 174.391 58.8001 174.833 56.4688C174.833 56.4688 176.418 60.8919 172.057 59.9843Z",fill:"#263238"}),O.jsx("path",{d:"M176.061 59.9373C175.705 59.729 174.898 59.2543 173.764 59.7108C173.764 59.7108 175.242 57.7932 176.061 59.9373Z",fill:"#263238"}),O.jsx("path",{d:"M163.955 106.945C163.955 106.945 167.957 133.893 170.154 143.989C172.56 155.045 181.623 191.872 181.623 191.872H188.082C188.082 191.872 182.105 155.937 180.733 144.992C179.243 133.112 176.125 106.945 176.125 106.945H163.955Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.5",d:"M163.955 106.945C163.955 106.945 167.957 133.893 170.154 143.989C172.56 155.045 181.623 191.872 181.623 191.872H188.082C188.082 191.872 182.105 155.937 180.733 144.992C179.243 133.112 176.125 106.945 176.125 106.945H163.955Z",fill:"white"}),O.jsx("path",{d:"M180.591 189.492C180.563 189.492 181.257 191.972 181.257 191.972H188.524L188.39 189.759L180.591 189.492Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.1",d:"M180.591 189.492C180.563 189.492 181.257 191.972 181.257 191.972H188.524L188.39 189.759L180.591 189.492Z",fill:"black"}),O.jsx("path",{d:"M166.483 116.544C171.11 117.451 170.621 134.707 170.064 143.582C168.729 137.309 166.776 125.237 165.441 116.669C165.749 116.515 166.094 116.467 166.483 116.544Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.4",d:"M166.483 116.544C171.11 117.451 170.621 134.707 170.064 143.582C168.729 137.309 166.776 125.237 165.441 116.669C165.749 116.515 166.094 116.467 166.483 116.544Z",fill:"white"}),O.jsx("path",{d:"M157.265 106.945C157.265 106.945 156.78 133.31 157.163 144.064C157.562 155.249 161.469 191.872 161.469 191.872H167.442C167.442 191.872 167.662 155.902 167.927 144.918C168.217 132.942 169.663 106.946 169.663 106.946H157.265V106.945Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.5",d:"M157.265 106.945C157.265 106.945 156.78 133.31 157.163 144.064C157.562 155.249 161.469 191.872 161.469 191.872H167.442C167.442 191.872 167.662 155.902 167.927 144.918C168.217 132.942 169.663 106.946 169.663 106.946H157.265V106.945Z",fill:"white"}),O.jsx("path",{d:"M162.712 187.581C162.682 187.581 162.656 187.558 162.653 187.528C161.6 177.391 159.117 152.865 158.803 144.066C158.482 135.085 158.773 114.935 158.87 108.973C158.871 108.94 158.898 108.914 158.93 108.914H158.931C158.964 108.915 158.991 108.942 158.99 108.975C158.893 114.936 158.602 135.084 158.923 144.062C159.236 152.857 161.719 177.38 162.772 187.515C162.776 187.548 162.752 187.577 162.718 187.581C162.716 187.581 162.714 187.581 162.712 187.581Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.4",d:"M162.712 187.581C162.682 187.581 162.656 187.558 162.653 187.528C161.6 177.391 159.117 152.865 158.803 144.066C158.482 135.085 158.773 114.935 158.87 108.973C158.871 108.94 158.898 108.914 158.93 108.914H158.931C158.964 108.915 158.991 108.942 158.99 108.975C158.893 114.936 158.602 135.084 158.923 144.062C159.236 152.857 161.719 177.38 162.772 187.515C162.776 187.548 162.752 187.577 162.718 187.581C162.716 187.581 162.714 187.581 162.712 187.581Z",fill:"white"}),O.jsx("path",{d:"M160.318 189.492C160.291 189.492 160.655 191.972 160.655 191.972H167.922L168.118 189.759L160.318 189.492Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.1",d:"M160.318 189.492C160.291 189.492 160.655 191.972 160.655 191.972H167.922L168.118 189.759L160.318 189.492Z",fill:"black"})]}),O.jsx("defs",{children:O.jsx("clipPath",{id:"clip0_28564_181684",children:O.jsx("rect",{width:"240",height:"240",fill:"white"})})})]}),cw=({value:e,onChange:t,placeholder:n="Type something...",className:r="",rows:i=4,disabled:a=!1,label:o,isRequired:u=!1,stylings:{wrapperRounded:l="ed-rounded-md",wrapperPadding:f="ed-py-2.5 ed-px-4",placeholderStyle:d="ed-placeholder:text-14 ed-placeholder:font-medium ed-placeholder:text-border-regular",labelCustomClass:h=""}={},name:p="",...m})=>O.jsxs("div",{children:[o&&O.jsxs("label",{className:`ed-text-14 ed-font-semibold ed-text-border-dark ed-mb-1 ed-inline-block ${h}`,children:[o," ",u&&O.jsx("span",{className:"ed-text-red ed-text-14 ed-font-semibold",children:"*"})]}),O.jsx("textarea",{value:e,onChange:t,placeholder:n,rows:i,name:p,disabled:a,className:`ed-w-full ed-border ed-border-border-light ed-focus:outline-none ed-resize-none ed-transition ed-duration-200 ${f} ${l} ${d}`,...m})]});var av={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_FILE_UPLOADING_URL"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FileUploadingPolicyInputDataType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getFileUploadingURL"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:140}};av.loc.source={body:`query GET_FILE_UPLOADING_URL($queryData: FileUploadingPolicyInputDataType!) {
123
+ */var J_;function V7(){return J_||(J_=1,function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function C(K){return typeof K=="string"||typeof K=="function"||K===r||K===f||K===a||K===i||K===h||K===p||typeof K=="object"&&K!==null&&(K.$$typeof===y||K.$$typeof===m||K.$$typeof===o||K.$$typeof===u||K.$$typeof===d||K.$$typeof===b||K.$$typeof===w||K.$$typeof===S||K.$$typeof===g)}function T(K){if(typeof K=="object"&&K!==null){var we=K.$$typeof;switch(we){case t:var ue=K.type;switch(ue){case l:case f:case r:case a:case i:case h:return ue;default:var Te=ue&&ue.$$typeof;switch(Te){case u:case d:case y:case m:case o:return Te;default:return we}}case n:return we}}}var _=l,x=f,k=u,A=o,L=t,N=d,F=r,H=y,V=m,D=n,j=a,z=i,Q=h,q=!1;function J(K){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),$(K)||T(K)===l}function $(K){return T(K)===f}function Y(K){return T(K)===u}function ae(K){return T(K)===o}function ie(K){return typeof K=="object"&&K!==null&&K.$$typeof===t}function te(K){return T(K)===d}function fe(K){return T(K)===r}function le(K){return T(K)===y}function me(K){return T(K)===m}function _e(K){return T(K)===n}function be(K){return T(K)===a}function ne(K){return T(K)===i}function ve(K){return T(K)===h}Et.AsyncMode=_,Et.ConcurrentMode=x,Et.ContextConsumer=k,Et.ContextProvider=A,Et.Element=L,Et.ForwardRef=N,Et.Fragment=F,Et.Lazy=H,Et.Memo=V,Et.Portal=D,Et.Profiler=j,Et.StrictMode=z,Et.Suspense=Q,Et.isAsyncMode=J,Et.isConcurrentMode=$,Et.isContextConsumer=Y,Et.isContextProvider=ae,Et.isElement=ie,Et.isForwardRef=te,Et.isFragment=fe,Et.isLazy=le,Et.isMemo=me,Et.isPortal=_e,Et.isProfiler=be,Et.isStrictMode=ne,Et.isSuspense=ve,Et.isValidElementType=C,Et.typeOf=T}()),Et}var ew;function q7(){return ew||(ew=1,Jp.exports=V7()),Jp.exports}var ev,tw;function U7(){if(tw)return ev;tw=1;var e=q7(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[e.ForwardRef]=r,a[e.Memo]=i;function o(y){return e.isMemo(y)?i:a[y.$$typeof]||t}var u=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;function m(y,g,b){if(typeof g!="string"){if(p){var w=h(g);w&&w!==p&&m(y,w,b)}var S=l(g);f&&(S=S.concat(f(g)));for(var C=o(y),T=o(g),_=0;_<S.length;++_){var x=S[_];if(!n[x]&&!(b&&b[x])&&!(T&&T[x])&&!(C&&C[x])){var k=d(g,x);try{u(y,x,k)}catch{}}}}return y}return ev=m,ev}U7();function z7(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function H7(e,t){const n=M.useContext(Z_);if(!n)throw new Error("Missing <CookiesProvider>");const i=Object.assign(Object.assign({},{doNotUpdate:!0}),t),[a,o]=M.useState(()=>n.getAll(i));z7()&&M.useLayoutEffect(()=>{function d(){const h=n.getAll(i);B7(e||null,h,a)&&o(h)}return n.addChangeListener(d),()=>{n.removeChangeListener(d)}},[n,a]);const u=M.useMemo(()=>n.set.bind(n),[n]),l=M.useMemo(()=>n.remove.bind(n),[n]),f=M.useMemo(()=>n.update.bind(n),[n]);return[a,u,l,f]}function B7(e,t,n){if(!e)return!0;for(let r of e)if(t[r]!==n[r])return!0;return!1}var W7=function(t){return{type:"backend",init:function(r,i,a){},read:function(r,i,a){if(typeof t=="function"){if(t.length<3){try{var o=t(r,i);o&&typeof o.then=="function"?o.then(function(u){return a(null,u&&u.default||u)}).catch(a):a(null,o)}catch(u){a(u)}return}t(r,i,a);return}a(null,t&&t[r]&&t[r][i])}}};const{slice:G7,forEach:Q7}=[];function Y7(e){return Q7.call(G7.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function K7(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(e))}const nw=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,X7=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},i=encodeURIComponent(t);let a=`${e}=${i}`;if(r.maxAge>0){const o=r.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");a+=`; Max-Age=${Math.floor(o)}`}if(r.domain){if(!nw.test(r.domain))throw new TypeError("option domain is invalid");a+=`; Domain=${r.domain}`}if(r.path){if(!nw.test(r.path))throw new TypeError("option path is invalid");a+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(a+="; HttpOnly"),r.secure&&(a+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(a+="; Partitioned"),a},rw={create(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+n*60*1e3)),r&&(i.domain=r),document.cookie=X7(e,encodeURIComponent(t),i)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let i=n[r];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null},remove(e){this.create(e,"",-1)}};var Z7={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return rw.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:i,cookieOptions:a}=t;n&&typeof document<"u"&&rw.create(n,e,r,i,a)}},J7={name:"querystring",lookup(e){var r;let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:i}=window.location;!window.location.search&&((r=window.location.hash)==null?void 0:r.indexOf("?"))>-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));const o=i.substring(1).split("&");for(let u=0;u<o.length;u++){const l=o[u].indexOf("=");l>0&&o[u].substring(0,l)===t&&(n=o[u].substring(l+1))}}return n}};let qo=null;const iw=()=>{if(qo!==null)return qo;try{if(qo=typeof window<"u"&&window.localStorage!==null,!qo)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{qo=!1}return qo};var eR={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&iw())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&iw()&&window.localStorage.setItem(n,e)}};let Uo=null;const aw=()=>{if(Uo!==null)return Uo;try{if(Uo=typeof window<"u"&&window.sessionStorage!==null,!Uo)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Uo=!1}return Uo};var tR={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&aw())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&aw()&&window.sessionStorage.setItem(n,e)}},nR={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:i}=navigator;if(n)for(let a=0;a<n.length;a++)t.push(n[a]);r&&t.push(r),i&&t.push(i)}return t.length>0?t:void 0}},rR={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},iR={name:"path",lookup(e){var i;let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(i=n[typeof t=="number"?t:0])==null?void 0:i.replace("/",""):void 0}},aR={name:"subdomain",lookup(e){var i,a;let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&((a=(i=window.location)==null?void 0:i.hostname)==null?void 0:a.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[n]}};let ow=!1;try{document.cookie,ow=!0}catch{}const sw=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];ow||sw.splice(1,1);const oR=()=>({order:sw,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class uw{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=Y7(n,this.options||{},oR()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(Z7),this.addDetector(J7),this.addDetector(eR),this.addDetector(tR),this.addDetector(nR),this.addDetector(rR),this.addDetector(iR),this.addDetector(aR)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let i=this.detectors[r].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(n=n.concat(i))}}),n=n.filter(r=>r!=null&&!K7(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}uw.type="languageDetector";const tv="en",lw=[tv,"no"],nv="translation",rv="i18next";function sR(e=tv,t=nv){return{returnObjects:!0,debug:!1,supportedLngs:lw,fallbackLng:tv,lng:e,fallbackNS:nv,defaultNS:nv,ns:t,interpolation:{escapeValue:!1}}}const uR=typeof window>"u",lR={order:["path","navigator","localStorage","cookie","htmlTag"],lookupQuerystring:"lng",lookupCookie:"linaroResourcesHubLang",lookupLocalStorage:"linaroResourcesHubLang",lookupSessionStorage:"linaroResourcesHubLang",lookupFromPathIndex:0,lookupFromSubdomainIndex:0,caches:["localStorage","cookie"],excludeCacheFor:["cimode"],cookieOptions:{path:"/",sameSite:"strict"}};Rn.use(q3).use(uw).use(W7((e,t)=>f7(Object.assign({"../../helpers/lang/en.js":()=>Promise.resolve().then(()=>pD),"../../helpers/lang/no.js":()=>Promise.resolve().then(()=>vD)}),`../../helpers/lang/${e}.js`,5))).init({...sR(),lng:void 0,detection:lR,preload:uR?lw:[]});function zo(e,t,n){const[r,i]=H7([rv]),a=W3(t,n),{i18n:o}=a,u=r[rv];{const[l,f]=M.useState(o.resolvedLanguage);M.useEffect(()=>{l!==o.resolvedLanguage&&f(o.resolvedLanguage)},[l,o.resolvedLanguage]),M.useEffect(()=>{},[e,o]),M.useEffect(()=>{u!==e&&i(rv,e,{path:"/"})},[e,u,i])}return a}const iv=()=>O.jsxs("svg",{"aria-hidden":"true",role:"status",className:"ed-inline ed-w-4 ed-h-4 ed-mr-1 ed-text-brand ed-animate-spin",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[O.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"#E5E7EB"}),O.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentColor"})]}),Ho=({Icon:e=mp,btnType:t="btn_primary",title:n="Save",disabled:r=!1,loader:i=!1,loaderText:a="loading",callBack:o=()=>{},customClass:u="",fullWidthBtn:l=!1,customPadding:f="ed-px-7 ed-h-[41px]",btnBorder:d="ed-border-light",buttonTitleStylings:h="ed-text-sm ed-font-medium",buttonWidth:p="w-[100%]",iconSize:m=20,iconPosition:y="left",loaderPosition:g="left",submitType:b=!1,noIcon:w=!1})=>{const{t:S}=zo(),C=()=>{const _=k=>!w&&!i&&y===k||i&&g===k,x=()=>i?O.jsx(iv,{}):!w&&O.jsx(e,{size:m});return O.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2.5",children:[_("left")&&x(),O.jsx("span",{className:`whitespace-nowrap ${h}`,children:S(i?a:n)}),_("right")&&x()]})},T={btn_primary:O.jsx("button",{type:b?"submit":"button",className:`ed-flex ${u||""} ${p} ${l&&"ed-lg:w-max"} ${f||"ed-px-7 ed-h-[41px]"} ed-gap-2.5 ed-justify-center ed-items-center ed-text-14 ed-font-medium ed-rounded-[8px] ed-whitespace-nowrap ed-focus:outline-none ed-text-white disabled:ed-bg-brand disabled:ed-opacity-50 ed-bg-brand ${r?"":"btn_hover_color"}`,onClick:o,disabled:r,children:C()}),btn_secondary:O.jsx("button",{type:"button",className:`${u||""} ed-flex ${p} ed-lg:w-max px-7 ed-gap-2.5 ed-justify-center ed-items-center ed-text-14 ed-font-medium ed-h-[41px] ed-text-center ed-text-white ed-bg-gray-deep disabled:ed-opacity-50 ed-focus:outline-none ed-bg-none ed-rounded-[8px] ed-border ed-border-light ${r?"":"btn_hover_color"}`,onClick:o,disabled:r,children:C()}),btn_danger:O.jsx("button",{type:"button",className:`ed-flex ${u||""} ${p} ed-lg:w-max px-7 ed-gap-2.5 ed-justify-center ed-items-center ed-text-14 ed-font-medium ed-rounded-[8px] ed-h-[41px] ed-focus:outline-none ed-text-white ed-bg-red disabled:ed-opacity-50 ${r?"":"btn_hover_color"}`,onClick:o,disabled:r,children:C()}),btn_bordered:O.jsx("button",{type:"button",className:`${u||""} ed-flex ${f||"ed-px-7 ed-h-[41px]"} ${p} ${!l&&"lg:w-max"} ed-gap-2.5 ed-justify-center ed-items-center ed-text-14 ed-font-medium ed-whitespace-nowrap ed-text-center ed-text-border-regular disabled:ed-opacity-50 ed-focus:outline-none ed-bg-none ed-rounded-[8px] ed-border ed-border-${d||"light"}`,onClick:o,disabled:r,children:C()}),btn_bordered_danger:O.jsx("button",{type:"button",className:`ed-flex ${u||""} ${p} ${!l&&"ed-lg:w-max"} ed-px-[25px] ed-gap-2.5 ed-items-center ed-text-14 ed-font-medium ed-h-[41px] ed-text-center ed-text-red disabled:ed-opacity-50 ed-focus:outline-none ed-bg-none ed-rounded-[8px] ed-border ed-border-red`,onClick:o,disabled:r,children:C()}),btn_success:O.jsx("button",{type:"button",className:`ed-flex ${u||""} ${p} ed-gap-2.5 ed-px-[25px] ed-items-center ed-text-14 ed-font-medium ed-rounded-[8px] ed-h-[41px] ed-focus:outline-none ed-text-white ed-bg-green ed-hover:bg-green-600 disabled:ed-opacity-50 ${r?"":"btn_hover_color"}`,onClick:o,disabled:r,children:C()}),btn_warning:O.jsx("button",{type:"button",className:`ed-flex ed-gap-2.5 ${u||""} ${p} ed-lg:w-max px-7 ed-justify-center ed-items-center ed-text-14 ed-font-medium ed-rounded-[8px] ed-h-[41px] ed-focus:outline-none ed-text-white ed-bg-yellow disabled:ed-opacity-50 ${r?"":"btn_hover_color"}`,onClick:o,disabled:r,children:C()}),btn_preview:O.jsxs("button",{type:"button",className:`ed-flex ed-gap-2.5 ${u||""} ${p} ed-lg:w-max ed-px-7 ed-md:px-3 ed-xl:px-7 ed-justify-center ed-items-center ed-text-14 ed-font-medium ed-rounded-[8px] ed-h-[41px] ed-focus:outline-none ed-text-white disabled:ed-bg-brand disabled:ed-opacity-50 ed-bg-brand ${r?"":"btn_hover_color"}`,onClick:o,disabled:r,children:[C()," ",O.jsx("div",{className:"ed-border ed-border-l ed-border-gray ed-h-2/3 ed-flex ed-items-center ed-mx-3"})," ",O.jsx(cu,{className:"ed-w-5 ed-h-5"})]}),btn_bordered_brand:O.jsx("button",{type:"button",className:`gap-2.5 ${u}`,onClick:o,disabled:r,children:C()})};return O.jsx("div",{className:"ed-flex",children:T[t]})},cR=()=>O.jsxs("svg",{width:"240",height:"240",viewBox:"0 0 240 240",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[O.jsxs("g",{"clip-path":"url(#clip0_28564_181684)",children:[O.jsx("path",{d:"M240 183.523H0V183.643H240V183.523Z",fill:"#E0E0E0"}),O.jsx("path",{d:"M181.28 188.609H164.766V188.729H181.28V188.609Z",fill:"#E0E0E0"}),O.jsx("path",{d:"M53.3001 188.672H44.0078V188.792H53.3001V188.672Z",fill:"#E0E0E0"}),O.jsx("path",{d:"M120.481 188.391H101.646V188.511H120.481V188.391Z",fill:"#E0E0E0"}),O.jsx("path",{d:"M101.166 186.68H92.7461V186.8H101.166V186.68Z",fill:"#E0E0E0"}),O.jsx("path",{d:"M203.786 186.734H178.354V186.854H203.786V186.734Z",fill:"#E0E0E0"}),O.jsx("path",{d:"M23.4492 72.2422L132.875 87.9934L147.561 102.813L23.4492 72.2422Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.6",d:"M23.4492 72.2422L132.875 87.9934L147.561 102.813L23.4492 72.2422Z",fill:"white"}),O.jsx("path",{d:"M23.4492 72.2422L132.875 87.9934L127.797 109.423L23.4492 72.2422Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.2",d:"M23.4492 72.2422L132.875 87.9934L127.797 109.423L23.4492 72.2422Z",fill:"black"}),O.jsx("path",{d:"M125.55 47.4265L131.904 77.1995C132.248 78.8118 131.211 80.4126 129.598 80.7568L72.9203 92.8523C71.308 93.1964 69.7072 92.1587 69.363 90.5464L63.0093 60.7734C62.8293 59.9305 63.0275 59.0886 63.4873 58.4286C63.9088 57.8305 64.5457 57.3803 65.3152 57.2161L121.993 45.1206C122.763 44.9564 123.528 45.1072 124.157 45.4811C124.846 45.8958 125.371 46.5836 125.55 47.4265Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.4",d:"M125.55 47.4265L131.904 77.1995C132.248 78.8118 131.211 80.4126 129.598 80.7568L72.9203 92.8523C71.308 93.1964 69.7072 92.1587 69.363 90.5464L63.0093 60.7734C62.8293 59.9305 63.0275 59.0886 63.4873 58.4286C63.9088 57.8305 64.5457 57.3803 65.3152 57.2161L121.993 45.1206C122.763 44.9564 123.528 45.1072 124.157 45.4811C124.846 45.8958 125.371 46.5836 125.55 47.4265Z",fill:"black"}),O.jsx("path",{d:"M124.156 45.4815L105.217 68.7288C101.6 73.1688 95.3799 74.496 90.2655 71.9194L63.4863 58.4285C63.9078 57.8304 64.5447 57.3802 65.3142 57.216L121.992 45.1205C122.762 44.9564 123.528 45.1076 124.156 45.4815Z",fill:"#00A1E0"}),O.jsx("path",{d:"M23.4492 72.2422L113.705 93.691L127.797 109.423L23.4492 72.2422Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.6",d:"M23.4492 72.2422L113.705 93.691L127.797 109.423L23.4492 72.2422Z",fill:"white"}),O.jsx("path",{d:"M56.3718 92.937L56.1289 93.3516L66.1707 99.2349L66.4135 98.8203L56.3718 92.937Z",fill:"#00A1E0"}),O.jsx("path",{d:"M70.8483 101.414L70.6055 101.828L74.218 103.945L74.4609 103.53L70.8483 101.414Z",fill:"#00A1E0"}),O.jsx("path",{d:"M23.4492 72.25L113.705 93.6988L96.1615 114.846L23.4492 72.25Z",fill:"#00A1E0"}),O.jsx("path",{d:"M144.174 122.501C144.057 122.501 143.937 122.479 143.821 122.432L129.117 116.611C128.624 116.416 128.382 115.858 128.578 115.365C128.772 114.872 129.328 114.63 129.824 114.826L144.528 120.647C145.021 120.842 145.262 121.4 145.067 121.893C144.918 122.27 144.556 122.501 144.174 122.501Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.3",d:"M144.174 122.501C144.057 122.501 143.937 122.479 143.821 122.432L129.117 116.611C128.624 116.416 128.382 115.858 128.578 115.365C128.772 114.872 129.328 114.63 129.824 114.826L144.528 120.647C145.021 120.842 145.262 121.4 145.067 121.893C144.918 122.27 144.556 122.501 144.174 122.501Z",fill:"black"}),O.jsx("path",{d:"M143.306 114.071C143.189 114.071 143.069 114.049 142.953 114.003L135.056 110.877C134.563 110.682 134.322 110.124 134.517 109.631C134.711 109.138 135.268 108.895 135.763 109.092L143.66 112.218C144.153 112.413 144.394 112.971 144.199 113.464C144.049 113.841 143.688 114.071 143.306 114.071Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.5",d:"M143.306 114.071C143.189 114.071 143.069 114.049 142.953 114.003L135.056 110.877C134.563 110.682 134.322 110.124 134.517 109.631C134.711 109.138 135.268 108.895 135.763 109.092L143.66 112.218C144.153 112.413 144.394 112.971 144.199 113.464C144.049 113.841 143.688 114.071 143.306 114.071Z",fill:"white"}),O.jsx("path",{d:"M126.799 122.355C126.682 122.355 126.562 122.333 126.446 122.287L112.109 116.611C111.616 116.416 111.374 115.858 111.57 115.365C111.765 114.872 112.322 114.63 112.816 114.826L127.153 120.502C127.646 120.697 127.887 121.255 127.692 121.748C127.543 122.125 127.181 122.355 126.799 122.355Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.3",d:"M126.799 122.355C126.682 122.355 126.562 122.333 126.446 122.287L112.109 116.611C111.616 116.416 111.374 115.858 111.57 115.365C111.765 114.872 112.322 114.63 112.816 114.826L127.153 120.502C127.646 120.697 127.887 121.255 127.692 121.748C127.543 122.125 127.181 122.355 126.799 122.355Z",fill:"black"}),O.jsx("path",{d:"M178.705 79.125C179.976 81.6085 181.143 84.0925 182.25 86.6389C183.35 89.1853 184.394 91.7581 185.293 94.4586L185.621 95.4824C185.677 95.6644 185.762 95.9634 185.807 96.176C185.852 96.3978 185.9 96.6268 185.926 96.8298C186.053 97.666 186.075 98.4215 186.089 99.1645C186.113 100.645 186.013 102.057 185.89 103.461C185.621 106.264 185.184 108.992 184.583 111.728L181.951 111.436C181.917 108.732 181.892 106.002 181.798 103.338C181.751 102.009 181.675 100.683 181.54 99.4324C181.472 98.8112 181.372 98.2021 181.255 97.6924C181.228 97.5575 181.192 97.4548 181.161 97.3434C181.123 97.2244 181.107 97.1965 181.055 97.054L180.693 96.1463C179.69 93.7175 178.561 91.2671 177.41 88.8292L173.926 81.5173L178.705 79.125Z",fill:"#E4897B"}),O.jsx("path",{d:"M181.991 110.617L180.762 112.915L184.686 114.01C184.686 114.01 185.434 112.161 184.544 110.704L181.991 110.617Z",fill:"#E4897B"}),O.jsx("path",{d:"M179.256 116.228L182.865 116.513L184.686 114.009L180.761 112.914L179.256 116.228Z",fill:"#E4897B"}),O.jsx("path",{d:"M162.18 62.5371C162.123 62.816 161.929 63.0118 161.747 62.9749C161.565 62.9379 161.463 62.6821 161.52 62.4032C161.576 62.1243 161.77 61.9285 161.952 61.9654C162.134 62.0029 162.236 62.2587 162.18 62.5371Z",fill:"#263238"}),O.jsx("path",{d:"M161.955 63.0234C161.955 63.0234 160.994 64.5028 160.139 65.1364C160.538 65.697 161.419 65.6572 161.419 65.6572L161.955 63.0234Z",fill:"#DE5753"}),O.jsx("path",{d:"M163.515 61.2049C163.469 61.2049 163.425 61.1867 163.392 61.1511C162.892 60.6097 162.298 60.698 162.272 60.7009C162.184 60.7167 162.095 60.6543 162.08 60.5631C162.065 60.4724 162.126 60.3865 162.217 60.3711C162.248 60.3654 163.01 60.2449 163.637 60.9236C163.7 60.9913 163.696 61.0969 163.628 61.1598C163.596 61.19 163.555 61.2049 163.515 61.2049Z",fill:"#263238"}),O.jsx("path",{d:"M170.119 66.4609C169.613 69.0405 169.108 73.7675 170.913 75.4888C170.913 75.4888 170.208 78.1057 165.415 78.1057C160.144 78.1057 162.896 75.4893 162.896 75.4893C165.772 74.8024 165.698 72.6678 165.197 70.6638L170.119 66.4609Z",fill:"#E4897B"}),O.jsx("path",{d:"M171.637 77.1177C172.018 75.8534 172.437 74.4067 171.57 73.9535C170.616 73.4548 165.396 72.9465 163.596 73.8825C161.796 74.8185 162.307 77.3827 162.307 77.3827L171.637 77.1177Z",fill:"#263238"}),O.jsx("path",{d:"M182.708 196.822C182.347 196.822 181.998 196.767 181.862 196.59C181.804 196.515 181.758 196.386 181.864 196.193C181.92 196.092 182.008 196.026 182.127 195.999C182.644 195.88 183.615 196.545 183.657 196.573C183.684 196.591 183.698 196.624 183.691 196.657C183.685 196.689 183.661 196.715 183.629 196.723C183.448 196.766 183.072 196.822 182.708 196.822ZM182.268 196.15C182.231 196.15 182.197 196.153 182.165 196.161C182.094 196.178 182.043 196.215 182.011 196.273C181.935 196.41 181.98 196.469 181.995 196.488C182.145 196.686 182.866 196.689 183.392 196.6C183.088 196.413 182.588 196.15 182.268 196.15Z",fill:"#00A1E0"}),O.jsx("path",{d:"M183.61 196.721C183.596 196.721 183.582 196.718 183.57 196.711C183.205 196.513 182.499 195.741 182.574 195.348C182.587 195.276 182.64 195.153 182.84 195.128C182.966 195.114 183.089 195.148 183.195 195.236C183.605 195.57 183.689 196.588 183.693 196.631C183.696 196.661 183.681 196.691 183.655 196.707C183.641 196.717 183.625 196.721 183.61 196.721ZM182.897 195.292C182.885 195.292 182.872 195.293 182.86 195.295C182.751 195.308 182.742 195.358 182.737 195.379C182.694 195.612 183.143 196.196 183.506 196.47C183.465 196.173 183.352 195.58 183.089 195.365C183.029 195.316 182.966 195.292 182.897 195.292Z",fill:"#00A1E0"}),O.jsx("path",{d:"M161.534 196.826C161.082 196.826 160.645 196.763 160.499 196.56C160.447 196.489 160.407 196.367 160.506 196.195C160.561 196.098 160.65 196.032 160.771 195.999C161.355 195.843 162.59 196.542 162.642 196.572C162.672 196.589 162.689 196.623 162.683 196.658C162.677 196.692 162.651 196.719 162.617 196.726C162.391 196.771 161.956 196.826 161.534 196.826ZM160.975 196.141C160.917 196.141 160.863 196.148 160.814 196.161C160.737 196.182 160.684 196.22 160.65 196.277C160.591 196.381 160.613 196.432 160.634 196.462C160.793 196.682 161.683 196.694 162.345 196.603C162.018 196.435 161.388 196.141 160.975 196.141Z",fill:"#00A1E0"}),O.jsx("path",{d:"M162.599 196.721C162.588 196.721 162.576 196.718 162.565 196.714C162.14 196.523 161.297 195.761 161.361 195.361C161.376 195.268 161.442 195.151 161.672 195.128C161.842 195.112 161.998 195.159 162.135 195.271C162.584 195.64 162.678 196.589 162.682 196.63C162.685 196.659 162.672 196.688 162.648 196.705C162.633 196.716 162.617 196.721 162.599 196.721ZM161.739 195.292C161.723 195.292 161.706 195.293 161.689 195.294C161.538 195.31 161.529 195.369 161.525 195.388C161.487 195.628 162.06 196.227 162.494 196.488C162.449 196.211 162.323 195.642 162.029 195.4C161.94 195.327 161.845 195.292 161.739 195.292Z",fill:"#00A1E0"}),O.jsx("path",{d:"M166.477 196.642H162.951L162.6 188.477H166.126L166.477 196.642Z",fill:"#E4897B"}),O.jsx("path",{d:"M187.65 196.642H184.124L182.352 188.477H185.878L187.65 196.642Z",fill:"#E4897B"}),O.jsx("path",{d:"M183.872 196.234H187.834C187.978 196.234 188.103 196.335 188.134 196.475L188.831 199.61C188.903 199.935 188.647 200.242 188.314 200.237C186.931 200.213 186.259 200.131 184.517 200.131C183.445 200.131 181.237 200.243 179.757 200.243C178.309 200.243 178.083 198.779 178.689 198.647C181.406 198.053 182.43 197.233 183.3 196.451C183.457 196.31 183.662 196.234 183.872 196.234Z",fill:"#263238"}),O.jsx("path",{d:"M162.975 196.234H166.826C166.97 196.234 167.095 196.335 167.126 196.475L167.823 199.61C167.895 199.935 167.648 200.242 167.316 200.237C165.926 200.214 163.919 200.132 162.173 200.132C160.132 200.132 158.369 200.243 155.975 200.243C154.527 200.243 154.125 198.78 154.731 198.647C157.49 198.044 159.742 197.979 162.126 196.509C162.385 196.35 162.671 196.234 162.975 196.234Z",fill:"#263238"}),O.jsx("path",{d:"M161.273 81.6813C158.283 81.4476 155.409 81.0607 152.486 80.513C151.031 80.2336 149.573 79.9212 148.116 79.529C146.657 79.1378 145.196 78.6943 143.718 78.0775C143.349 77.9258 142.976 77.7554 142.604 77.5783C142.137 77.3474 141.748 77.1074 141.406 76.8799C140.713 76.422 140.12 75.9496 139.529 75.4788C138.355 74.5384 137.262 73.5612 136.184 72.5733C134.037 70.588 132 68.5332 130.039 66.3712L131.805 64.3984L138.769 69.4034C139.919 70.2324 141.079 71.0416 142.22 71.8053C142.789 72.1831 143.371 72.5416 143.9 72.8402C144.168 72.9924 144.406 73.1061 144.591 73.1791C144.876 73.2909 145.165 73.4013 145.469 73.5026C147.907 74.3157 150.663 74.838 153.401 75.2791C156.142 75.713 158.974 76.0701 161.71 76.3538L161.273 81.6813Z",fill:"#E4897B"}),O.jsx("path",{d:"M177.227 76.2875C180.531 77.0454 183.873 86.7083 183.873 86.7083L177.07 91.588C177.07 91.588 175.17 87.0875 173.3 83.1515C171.341 79.0274 173.847 75.5128 177.227 76.2875Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.4",d:"M177.227 76.2875C180.531 77.0454 183.873 86.7083 183.873 86.7083L177.07 91.588C177.07 91.588 175.17 87.0875 173.3 83.1515C171.341 79.0274 173.847 75.5128 177.227 76.2875Z",fill:"black"}),O.jsx("path",{d:"M175.32 81.5625L173.971 84.5817C175.368 87.5961 176.644 90.5817 176.985 91.3785C176.937 87.8121 176.26 83.3865 175.32 81.5625Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.6",d:"M175.32 81.5625L173.971 84.5817C175.368 87.5961 176.644 90.5817 176.985 91.3785C176.937 87.8121 176.26 83.3865 175.32 81.5625Z",fill:"black"}),O.jsx("path",{d:"M157.472 76.4562C157.472 76.4562 153.719 80.6955 157.263 106.935C162.946 106.935 173.358 106.935 176.124 106.935C176.254 104.039 174.435 89.9158 177.227 76.2742C177.227 76.2742 173.994 75.6253 170.913 75.4769C168.503 75.3608 165.014 75.284 162.895 75.4774C160.103 75.7323 157.472 76.4562 157.472 76.4562Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.4",d:"M157.472 76.4562C157.472 76.4562 153.719 80.6955 157.263 106.935C162.946 106.935 173.358 106.935 176.124 106.935C176.254 104.039 174.435 89.9158 177.227 76.2742C177.227 76.2742 173.994 75.6253 170.913 75.4769C168.503 75.3608 165.014 75.284 162.895 75.4774C160.103 75.7323 157.472 76.4562 157.472 76.4562Z",fill:"black"}),O.jsx("path",{d:"M156.078 81.5625C155.953 82.5561 155.857 83.7321 155.795 85.1193C157.355 84.6345 159.294 83.8569 161.046 82.6521L156.078 81.5625Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.6",d:"M156.078 81.5625C155.953 82.5561 155.857 83.7321 155.795 85.1193C157.355 84.6345 159.294 83.8569 161.046 82.6521L156.078 81.5625Z",fill:"black"}),O.jsx("path",{d:"M164.148 82.08C161.625 84.3158 151.986 84.0922 151.986 84.0922L151.668 74.7734C151.668 74.7734 157.133 75.5746 161.493 75.4858C166.88 75.3768 166.918 79.6262 164.148 82.08Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.4",d:"M164.148 82.08C161.625 84.3158 151.986 84.0922 151.986 84.0922L151.668 74.7734C151.668 74.7734 157.133 75.5746 161.493 75.4858C166.88 75.3768 166.918 79.6262 164.148 82.08Z",fill:"black"}),O.jsx("path",{d:"M131.889 64.443L129.469 61.6172L126.885 64.479C126.885 64.479 128.475 67.1549 131.009 66.7325L131.889 64.443Z",fill:"#E4897B"}),O.jsx("path",{d:"M126.052 58.3281L125.121 62.0155L126.886 64.486L129.469 61.6238L126.052 58.3281Z",fill:"#E4897B"}),O.jsx("path",{d:"M162.602 188.484L162.782 192.694H166.31L166.129 188.484H162.602Z",fill:"#CE6F64"}),O.jsx("path",{d:"M185.88 188.484H182.352L183.267 192.694H186.795L185.88 188.484Z",fill:"#CE6F64"}),O.jsx("path",{d:"M164.726 59.0347C161.563 57.5731 160.563 51.1929 169.663 52.7731C169.663 52.7731 168.291 54.2933 171.077 55.2533C173.863 56.2128 171.531 62.1797 164.726 59.0347Z",fill:"#263238"}),O.jsx("path",{d:"M171.597 63.8387C170.691 67.2188 170.333 69.2435 168.247 70.6494C165.109 72.7638 161.202 70.3374 161.08 66.7542C160.97 63.5291 162.47 58.5428 166.097 57.8617C169.671 57.1907 172.503 60.4585 171.597 63.8387Z",fill:"#E4897B"}),O.jsx("path",{d:"M169.537 54.4899C171.69 55.6942 174.609 56.4123 174.316 58.1197C173.958 60.2067 176.081 58.9011 175.587 62.0106C175.264 64.041 171.519 70.1936 168.883 69.8931C164.92 69.4414 165.422 63.3882 165.409 60.2072C165.401 58.3323 165.313 52.1278 169.537 54.4899Z",fill:"#263238"}),O.jsx("path",{d:"M164.932 57.1875C163.972 57.4141 162.7 62.9475 166.418 63.4544C170.699 64.0376 164.932 57.1875 164.932 57.1875Z",fill:"#263238"}),O.jsx("path",{d:"M165.031 59.153C163.855 59.2567 161.201 57.8407 161.518 55.7109C161.518 55.7109 163.209 58.2031 165.031 59.153Z",fill:"#263238"}),O.jsx("path",{d:"M166.774 63.8966C166.406 64.7361 165.709 65.3966 165.034 65.7479C164.02 66.2759 163.45 65.5036 163.679 64.4889C163.886 63.5754 164.663 62.1998 165.706 62.087C166.735 61.9756 167.195 62.9366 166.774 63.8966Z",fill:"#E4897B"}),O.jsx("path",{d:"M172.057 59.9843C172.769 59.6219 174.391 58.8001 174.833 56.4688C174.833 56.4688 176.418 60.8919 172.057 59.9843Z",fill:"#263238"}),O.jsx("path",{d:"M176.061 59.9373C175.705 59.729 174.898 59.2543 173.764 59.7108C173.764 59.7108 175.242 57.7932 176.061 59.9373Z",fill:"#263238"}),O.jsx("path",{d:"M163.955 106.945C163.955 106.945 167.957 133.893 170.154 143.989C172.56 155.045 181.623 191.872 181.623 191.872H188.082C188.082 191.872 182.105 155.937 180.733 144.992C179.243 133.112 176.125 106.945 176.125 106.945H163.955Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.5",d:"M163.955 106.945C163.955 106.945 167.957 133.893 170.154 143.989C172.56 155.045 181.623 191.872 181.623 191.872H188.082C188.082 191.872 182.105 155.937 180.733 144.992C179.243 133.112 176.125 106.945 176.125 106.945H163.955Z",fill:"white"}),O.jsx("path",{d:"M180.591 189.492C180.563 189.492 181.257 191.972 181.257 191.972H188.524L188.39 189.759L180.591 189.492Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.1",d:"M180.591 189.492C180.563 189.492 181.257 191.972 181.257 191.972H188.524L188.39 189.759L180.591 189.492Z",fill:"black"}),O.jsx("path",{d:"M166.483 116.544C171.11 117.451 170.621 134.707 170.064 143.582C168.729 137.309 166.776 125.237 165.441 116.669C165.749 116.515 166.094 116.467 166.483 116.544Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.4",d:"M166.483 116.544C171.11 117.451 170.621 134.707 170.064 143.582C168.729 137.309 166.776 125.237 165.441 116.669C165.749 116.515 166.094 116.467 166.483 116.544Z",fill:"white"}),O.jsx("path",{d:"M157.265 106.945C157.265 106.945 156.78 133.31 157.163 144.064C157.562 155.249 161.469 191.872 161.469 191.872H167.442C167.442 191.872 167.662 155.902 167.927 144.918C168.217 132.942 169.663 106.946 169.663 106.946H157.265V106.945Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.5",d:"M157.265 106.945C157.265 106.945 156.78 133.31 157.163 144.064C157.562 155.249 161.469 191.872 161.469 191.872H167.442C167.442 191.872 167.662 155.902 167.927 144.918C168.217 132.942 169.663 106.946 169.663 106.946H157.265V106.945Z",fill:"white"}),O.jsx("path",{d:"M162.712 187.581C162.682 187.581 162.656 187.558 162.653 187.528C161.6 177.391 159.117 152.865 158.803 144.066C158.482 135.085 158.773 114.935 158.87 108.973C158.871 108.94 158.898 108.914 158.93 108.914H158.931C158.964 108.915 158.991 108.942 158.99 108.975C158.893 114.936 158.602 135.084 158.923 144.062C159.236 152.857 161.719 177.38 162.772 187.515C162.776 187.548 162.752 187.577 162.718 187.581C162.716 187.581 162.714 187.581 162.712 187.581Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.4",d:"M162.712 187.581C162.682 187.581 162.656 187.558 162.653 187.528C161.6 177.391 159.117 152.865 158.803 144.066C158.482 135.085 158.773 114.935 158.87 108.973C158.871 108.94 158.898 108.914 158.93 108.914H158.931C158.964 108.915 158.991 108.942 158.99 108.975C158.893 114.936 158.602 135.084 158.923 144.062C159.236 152.857 161.719 177.38 162.772 187.515C162.776 187.548 162.752 187.577 162.718 187.581C162.716 187.581 162.714 187.581 162.712 187.581Z",fill:"white"}),O.jsx("path",{d:"M160.318 189.492C160.291 189.492 160.655 191.972 160.655 191.972H167.922L168.118 189.759L160.318 189.492Z",fill:"#00A1E0"}),O.jsx("path",{opacity:"0.1",d:"M160.318 189.492C160.291 189.492 160.655 191.972 160.655 191.972H167.922L168.118 189.759L160.318 189.492Z",fill:"black"})]}),O.jsx("defs",{children:O.jsx("clipPath",{id:"clip0_28564_181684",children:O.jsx("rect",{width:"240",height:"240",fill:"white"})})})]}),cw=({value:e,onChange:t,placeholder:n="Type something...",className:r="",rows:i=4,disabled:a=!1,label:o,isRequired:u=!1,stylings:{wrapperRounded:l="ed-rounded-md",wrapperPadding:f="ed-py-2.5 ed-px-4",placeholderStyle:d="ed-placeholder:text-14 ed-placeholder:font-medium ed-placeholder:text-border-regular",labelCustomClass:h=""}={},name:p="",...m})=>O.jsxs("div",{children:[o&&O.jsxs("label",{className:`ed-text-14 ed-font-semibold ed-text-border-dark ed-mb-1 ed-inline-block ${h}`,children:[o," ",u&&O.jsx("span",{className:"ed-text-red ed-text-14 ed-font-semibold",children:"*"})]}),O.jsx("textarea",{value:e,onChange:t,placeholder:n,rows:i,name:p,disabled:a,className:`ed-w-full ed-border ed-border-border-light ed-focus:outline-none ed-resize-none ed-transition ed-duration-200 ${f} ${l} ${d}`,...m})]});var av={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_FILE_UPLOADING_URL"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FileUploadingPolicyInputDataType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getFileUploadingURL"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:140}};av.loc.source={body:`query GET_FILE_UPLOADING_URL($queryData: FileUploadingPolicyInputDataType!) {
124
124
  getFileUploadingURL(queryData: $queryData) {
125
125
  key
126
126
  url
127
127
  }
128
- }`,name:"GraphQL request",locationOffset:{line:1,column:1}};function dc(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var n=e.type;n.kind==="NamedType"&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){dc(r,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){dc(r,t)}),e.definitions&&e.definitions.forEach(function(r){dc(r,t)})}var ov={};(function(){av.definitions.forEach(function(t){if(t.name){var n=new Set;dc(t,n),ov[t.name.value]=n}})})();function fw(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}function fR(e,t){var n={kind:e.kind,definitions:[fw(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var r=ov[t]||new Set,i=new Set,a=new Set;for(r.forEach(function(u){a.add(u)});a.size>0;){var o=a;a=new Set,o.forEach(function(u){if(!i.has(u)){i.add(u);var l=ov[u]||new Set;l.forEach(function(f){a.add(f)})}})}return i.forEach(function(u){var l=fw(e,u);l&&n.definitions.push(l)}),n}const dR=fR(av,"GET_FILE_UPLOADING_URL"),sv=async(e={})=>{var n;const t=sp(jh());try{const r=await t.query({query:dR,variables:{queryData:e}});return(n=r==null?void 0:r.data)==null?void 0:n.getFileUploadingURL}catch{return null}},uv=async({key:e,url:t},n)=>{try{const r=await Gt.put(t,n);return r&&(r.status===204||r.status===200)?{key:e,file:n,url:t,success:!0}:{error:!0,success:!1}}catch{return{error:!0,success:!1}}},Bo=({label:e,isRequired:t=!1,placeholder:n,value:r="",type:i="text",onChange:a=()=>{},stylings:{wrapperRounded:o="ed-rounded-md",wrapperPadding:u="ed-py-2.5 ed-px-4",placeholderStyle:l="ed-placeholder:text-14 ed-placeholder:font-medium ed-placeholder:text-border-regular",labelCustomClass:f=""}={},name:d=""})=>O.jsxs("div",{children:[e&&O.jsxs("label",{className:`ed-text-14 font-semibold ed-text-border-dark ed-mb-1 ed-inline-block ${f}`,children:[e," ",t&&O.jsx("span",{className:"ed-text-red ed-text-14 ed-font-semibold",children:"*"})]}),O.jsx("input",{type:i,className:`ed-w-full ed-border ed-border-border-light ${u} ${o} ${l}`,placeholder:n,onChange:a,value:r,name:d})]}),dw=()=>O.jsxs("div",{className:"ed-flex ed-justify-start ed-items-center ed-space-x-2",children:[O.jsx("div",{className:"ed-bg-brand ed-w-2 ed-h-2 ed-rounded-full ed-animate-bounce"}),O.jsx("div",{className:"ed-bg-brand ed-w-2 ed-h-2 ed-rounded-full ed-animate-bounce ed-delay-75"}),O.jsx("div",{className:"ed-bg-brand ed-w-2 ed-h-2 ed-rounded-full aed-nimate-bounce ed-delay-150"})]}),ea=({alt:e="Image",className:t,height:n=500,path:r,src:i,rotate:a,width:o=500,quality:u=100,defaultImageName:l="",defaultImageClasses:f="ed-w-5 ed-h-5",defaultUserNameTextSize:d="ed-text-16"})=>{var w,S;const[h,p]=M.useState(""),[m,y]=M.useState(!1),[g,b]=M.useState(!!r);return M.useLayoutEffect(()=>{(async()=>{if(!m&&r){const T=`https://${Mh("cdnDomain")}-public.imgix.net/${r}?h=${n}&w=${o}&q=${u}`;T?p(T):y(!0),b(!1)}})()},[n,r,a,o]),g?O.jsx("div",{className:`ed-flex ed-items-center ed-justify-center ${t}`,children:O.jsxs("svg",{className:`ed-animate-spin ed-h-${((w=n==null?void 0:n.replace)==null?void 0:w.call(n,"px",""))||10} ed-w-${((S=o==null?void 0:o.replace)==null?void 0:S.call(o,"px",""))||10} ed-text-brand`,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[O.jsx("circle",{className:"ed-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),O.jsx("path",{className:"ed-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}):i||h?O.jsx("img",{alt:e,className:t,height:n,loading:"lazy",onError:()=>{y(!0)},src:i||h,width:o}):O.jsx("div",{className:`${t} ed-bg-blue-light ed-text-brand ed-rounded-full ed-flex ed-items-center ed-justify-center ${f}`,children:O.jsx("p",{className:`ed-text-brand ed-font-medium ${d}`,children:l||"ED"})})},hw=({selectedFiles:e,setSelectedFiles:t,options:{bgColor:n=""}={},subtitle:r="Works with any jpg, png file and max 5 files"})=>{const i=M.useRef(null),[a,o]=M.useState(!1),u=m=>{m.preventDefault();const y=5,g=5*1024*1024,b=Array.from(m.target.files);if(ze.size(e)+b.length>y){Wt("error","You can upload a maximum of 5 files","top-right");return}if(b.filter(S=>S.size>g).length>0){Wt("error","Each file must be under 5MB","top-right");return}t(S=>[...S,...b])},l=m=>{m.preventDefault(),m.stopPropagation(),o(!0)},f=m=>{m.preventDefault(),m.stopPropagation(),m.currentTarget===i.current&&o(!1)},d=m=>{m.preventDefault(),m.stopPropagation()},h=m=>{if(m.preventDefault(),m.stopPropagation(),ze.size(e)>5){Wt("error","You can upload maximum 5 files","top-right");return}o(!1),t(y=>[...y,...Array.from(m.dataTransfer.files)])},p=m=>{t(y=>y==null?void 0:y.filter(g=>(g==null?void 0:g.name)!==(m==null?void 0:m.name)))};return O.jsxs("div",{className:"ed-mt-5",children:[O.jsx("p",{className:"ed-text-14 ed-font-semibold ed-text-border-dark ed-mb-1",children:"Attachment"}),O.jsxs("label",{htmlFor:"image_upload",ref:i,onDragEnter:l,onDragLeave:f,onDragOver:d,onDrop:h,className:`ed-relative ed-mb-1 ed-py-8 ed-flex ed-flex-col ed-items-center ed-justify-center ed-border-2 ${n} ${a?"ed-border-brand ed-border-solid ed-bg-brand-light":"ed-border-border-light ed-border-dashed"} ed-cursor-pointer ed-rounded-md ed-hover:bg-brand-light ed-duration-500 ed-px-4`,children:[O.jsx("input",{id:"image_upload",type:"file",className:"ed-hidden",multiple:!0,accept:".jpg,.jpeg,.png,.gif,.svg,.pdf",onChange:u,max:5,disabled:ze.size(e)>=5}),O.jsx(zp,{size:24,className:"ed-text-brand-link"}),O.jsxs("p",{className:"ed-text-14 ed-font-semibold ed-text-border-regular ed-mt-4 ed-mb-1",children:["Drag & drop or"," ",O.jsx("span",{className:"ed-text-14 ed-font-semibold ed-text-brand-link",children:"choose file"})," to upload"]}),O.jsx("span",{className:"ed-text-12 ed-font-medium ed-text-border",children:r})]}),ze.size(e)>0&&(e==null?void 0:e.map(m=>{const y=URL==null?void 0:URL.createObjectURL(m),g=(m==null?void 0:m.type)==="application/pdf";return O.jsx("div",{className:"ed-p-4 ed-border ed-border-border-light ed-rounded-[10px] ed-mt-2",children:O.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-w-full",children:[g?O.jsx(kp,{size:48,className:"ed-text-border"}):O.jsx(ea,{className:"ed-size-12 ed-rounded-md",defaultImageClasses:"h-12 w-12",src:y}),O.jsxs("div",{className:"ed-flex-1 ed-flex ed-items-center ed-justify-between",children:[O.jsxs("div",{children:[O.jsx("p",{className:"ed-text-14 ed-font-medium ed-text-border-dark ed-leading-none ed-truncate ed-max-w-[200px]",children:m==null?void 0:m.name}),O.jsxs("span",{className:"ed-text-12 ed-font-medium ed-text-border",children:[(m.size/(1024*1024)).toFixed(2)," MB"]})]}),O.jsx(qp,{size:16,className:"ed-text-border-regular ed-cursor-pointer",onClick:()=>p(m)})]})]})},m==null?void 0:m.name)}))]})};var lv={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CREATE_A_TICKET_FOR_PORTAL"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"inputData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TicketCreateForPortalInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createATicketForPortal"},arguments:[{kind:"Argument",name:{kind:"Name",value:"inputData"},value:{kind:"Variable",name:{kind:"Name",value:"inputData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:146}};lv.loc.source={body:`mutation CREATE_A_TICKET_FOR_PORTAL($inputData: TicketCreateForPortalInputType!) {
128
+ }`,name:"GraphQL request",locationOffset:{line:1,column:1}};function dc(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var n=e.type;n.kind==="NamedType"&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){dc(r,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){dc(r,t)}),e.definitions&&e.definitions.forEach(function(r){dc(r,t)})}var ov={};(function(){av.definitions.forEach(function(t){if(t.name){var n=new Set;dc(t,n),ov[t.name.value]=n}})})();function fw(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}function fR(e,t){var n={kind:e.kind,definitions:[fw(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var r=ov[t]||new Set,i=new Set,a=new Set;for(r.forEach(function(u){a.add(u)});a.size>0;){var o=a;a=new Set,o.forEach(function(u){if(!i.has(u)){i.add(u);var l=ov[u]||new Set;l.forEach(function(f){a.add(f)})}})}return i.forEach(function(u){var l=fw(e,u);l&&n.definitions.push(l)}),n}const dR=fR(av,"GET_FILE_UPLOADING_URL"),sv=async(e={})=>{var n;const t=sp(jh());try{const r=await t.query({query:dR,variables:{queryData:e}});return(n=r==null?void 0:r.data)==null?void 0:n.getFileUploadingURL}catch{return null}},uv=async({key:e,url:t},n)=>{try{const r=await Gt.put(t,n);return r&&(r.status===204||r.status===200)?{key:e,file:n,url:t,success:!0}:{error:!0,success:!1}}catch{return{error:!0,success:!1}}},Bo=({label:e,isRequired:t=!1,placeholder:n,value:r="",type:i="text",onChange:a=()=>{},stylings:{wrapperRounded:o="ed-rounded-md",wrapperPadding:u="ed-py-2.5 ed-px-4",placeholderStyle:l="ed-placeholder:text-14 ed-placeholder:font-medium ed-placeholder:text-border-regular",labelCustomClass:f=""}={},name:d=""})=>O.jsxs("div",{children:[e&&O.jsxs("label",{className:`ed-text-14 font-semibold ed-text-border-dark ed-mb-1 ed-inline-block ${f}`,children:[e," ",t&&O.jsx("span",{className:"ed-text-red ed-text-14 ed-font-semibold",children:"*"})]}),O.jsx("input",{type:i,className:`ed-w-full ed-border ed-border-border-light ${u} ${o} ${l}`,placeholder:n,onChange:a,value:r,name:d})]}),dw=()=>O.jsxs("div",{className:"ed-flex ed-justify-start ed-items-center ed-space-x-2",children:[O.jsx("div",{className:"ed-bg-brand ed-w-2 ed-h-2 ed-rounded-full ed-animate-bounce"}),O.jsx("div",{className:"ed-bg-brand ed-w-2 ed-h-2 ed-rounded-full ed-animate-bounce ed-delay-75"}),O.jsx("div",{className:"ed-bg-brand ed-w-2 ed-h-2 ed-rounded-full aed-nimate-bounce ed-delay-150"})]}),ea=({alt:e="Image",className:t,height:n=500,path:r,src:i,rotate:a,width:o=500,quality:u=100,defaultImageName:l="",defaultImageClasses:f="ed-w-5 ed-h-5",defaultUserNameTextSize:d="ed-text-16"})=>{var w,S;const[h,p]=M.useState(""),[m,y]=M.useState(!1),[g,b]=M.useState(!!r);return M.useLayoutEffect(()=>{(async()=>{if(!m&&r){const T=`https://${Mh("cdnDomain")}-public.imgix.net/${r}?h=${n}&w=${o}&q=${u}`;T?p(T):y(!0),b(!1)}})()},[n,r,a,o]),g?O.jsx("div",{className:`ed-flex ed-items-center ed-justify-center ${t}`,children:O.jsxs("svg",{className:`ed-animate-spin ed-h-${((w=n==null?void 0:n.replace)==null?void 0:w.call(n,"px",""))||10} ed-w-${((S=o==null?void 0:o.replace)==null?void 0:S.call(o,"px",""))||10} ed-text-brand`,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[O.jsx("circle",{className:"ed-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),O.jsx("path",{className:"ed-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}):i||h?O.jsx("img",{alt:e,className:t,height:n,loading:"lazy",onError:()=>{y(!0)},src:i||h,width:o}):O.jsx("div",{className:`${t} ed-bg-blue-light ed-text-brand ed-rounded-full ed-flex ed-items-center ed-justify-center ${f}`,children:O.jsx("p",{className:`ed-text-brand ed-font-medium ${d}`,children:l||"ED"})})},hw=({selectedFiles:e,setSelectedFiles:t,options:{bgColor:n=""}={},subtitle:r="Works with any jpg, png file and max 5 files"})=>{const i=M.useRef(null),[a,o]=M.useState(!1),u=m=>{m.preventDefault();const y=5,g=5*1024*1024,b=Array.from(m.target.files);if(Ge.size(e)+b.length>y){Wt("error","You can upload a maximum of 5 files","top-right");return}if(b.filter(S=>S.size>g).length>0){Wt("error","Each file must be under 5MB","top-right");return}t(S=>[...S,...b])},l=m=>{m.preventDefault(),m.stopPropagation(),o(!0)},f=m=>{m.preventDefault(),m.stopPropagation(),m.currentTarget===i.current&&o(!1)},d=m=>{m.preventDefault(),m.stopPropagation()},h=m=>{if(m.preventDefault(),m.stopPropagation(),Ge.size(e)>5){Wt("error","You can upload maximum 5 files","top-right");return}o(!1),t(y=>[...y,...Array.from(m.dataTransfer.files)])},p=m=>{t(y=>y==null?void 0:y.filter(g=>(g==null?void 0:g.name)!==(m==null?void 0:m.name)))};return O.jsxs("div",{className:"ed-mt-5",children:[O.jsx("p",{className:"ed-text-14 ed-font-semibold ed-text-border-dark ed-mb-1",children:"Attachment"}),O.jsxs("label",{htmlFor:"image_upload",ref:i,onDragEnter:l,onDragLeave:f,onDragOver:d,onDrop:h,className:`ed-relative ed-mb-1 ed-py-8 ed-flex ed-flex-col ed-items-center ed-justify-center ed-border-2 ${n} ${a?"ed-border-brand ed-border-solid ed-bg-brand-light":"ed-border-border-light ed-border-dashed"} ed-cursor-pointer ed-rounded-md ed-hover:bg-brand-light ed-duration-500 ed-px-4`,children:[O.jsx("input",{id:"image_upload",type:"file",className:"ed-hidden",multiple:!0,accept:".jpg,.jpeg,.png,.gif,.svg,.pdf",onChange:u,max:5,disabled:Ge.size(e)>=5}),O.jsx(zp,{size:24,className:"ed-text-brand-link"}),O.jsxs("p",{className:"ed-text-14 ed-font-semibold ed-text-border-regular ed-mt-4 ed-mb-1",children:["Drag & drop or"," ",O.jsx("span",{className:"ed-text-14 ed-font-semibold ed-text-brand-link",children:"choose file"})," to upload"]}),O.jsx("span",{className:"ed-text-12 ed-font-medium ed-text-border",children:r})]}),Ge.size(e)>0&&(e==null?void 0:e.map(m=>{const y=URL==null?void 0:URL.createObjectURL(m),g=(m==null?void 0:m.type)==="application/pdf";return O.jsx("div",{className:"ed-p-4 ed-border ed-border-border-light ed-rounded-[10px] ed-mt-2",children:O.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-w-full",children:[g?O.jsx(kp,{size:48,className:"ed-text-border"}):O.jsx(ea,{className:"ed-size-12 ed-rounded-md",defaultImageClasses:"h-12 w-12",src:y}),O.jsxs("div",{className:"ed-flex-1 ed-flex ed-items-center ed-justify-between",children:[O.jsxs("div",{children:[O.jsx("p",{className:"ed-text-14 ed-font-medium ed-text-border-dark ed-leading-none ed-truncate ed-max-w-[200px]",children:m==null?void 0:m.name}),O.jsxs("span",{className:"ed-text-12 ed-font-medium ed-text-border",children:[(m.size/(1024*1024)).toFixed(2)," MB"]})]}),O.jsx(qp,{size:16,className:"ed-text-border-regular ed-cursor-pointer",onClick:()=>p(m)})]})]})},m==null?void 0:m.name)}))]})};var lv={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CREATE_A_TICKET_FOR_PORTAL"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"inputData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TicketCreateForPortalInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createATicketForPortal"},arguments:[{kind:"Argument",name:{kind:"Name",value:"inputData"},value:{kind:"Variable",name:{kind:"Name",value:"inputData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:146}};lv.loc.source={body:`mutation CREATE_A_TICKET_FOR_PORTAL($inputData: TicketCreateForPortalInputType!) {
129
129
  createATicketForPortal(inputData: $inputData) {
130
130
  id
131
131
  }
132
132
  }
133
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function hc(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var n=e.type;n.kind==="NamedType"&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){hc(r,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){hc(r,t)}),e.definitions&&e.definitions.forEach(function(r){hc(r,t)})}var cv={};(function(){lv.definitions.forEach(function(t){if(t.name){var n=new Set;hc(t,n),cv[t.name.value]=n}})})();function pw(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}function hR(e,t){var n={kind:e.kind,definitions:[pw(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var r=cv[t]||new Set,i=new Set,a=new Set;for(r.forEach(function(u){a.add(u)});a.size>0;){var o=a;a=new Set,o.forEach(function(u){if(!i.has(u)){i.add(u);var l=cv[u]||new Set;l.forEach(function(f){a.add(f)})}})}return i.forEach(function(u){var l=pw(e,u);l&&n.definitions.push(l)}),n}const vw=hR(lv,"CREATE_A_TICKET_FOR_PORTAL"),pR=({setIsCreateNewTicketClicked:e,isAuthenticated:t,setSearchedText:n,searchedText:r})=>{var T,_,x;const{t:i}=zo(),[a,o]=M.useState([]),[u,l]=M.useState(!1),[f,d]=M.useState({ticket_title:r}),[h,p]=M.useState(!1),[m,{loading:y}]=Ra(vw),g=async()=>{var k;try{if(l(!0),ze.size(a)&&ze.size(a)>5){Wt("error","You can upload maximum 5 files","top-right");return}const A=[],L=[];ze.forEach(a,F=>{const H=`${Qp()}.${ze.last(ze.split(F.name,"."))}`;A.push({name:H,title:F.name,size:F.size,type:"ticket_activity_attachment"}),L.push({file:F,name:H})});const{data:N}=await m({variables:{inputData:{...f,ticket_activity_files:A}}});(k=N==null?void 0:N.createATicketForPortal)!=null&&k.id&&(ze.size(L)&&L.forEach(async F=>{var H;try{const V=await sv({name:F.name,type:"ticket_activity_attachment",sub_type:(H=N==null?void 0:N.createATicketForPortal)==null?void 0:H.id});if(V!=null&&V.error){Wt("error",`Failed to process ${F.name}`,"top-right");return}await uv({key:V.key,url:V.url},F.file)}catch(V){console.error(`Error processing file ${F.name}:`,V),Wt("error",`Failed to upload ${F.name}`,"top-right")}}),p(!0),n(""))}catch(A){Wt("error","Something went wrong","top-right"),console.error("error",A)}finally{l(!1)}},b=(k,A)=>{d(L=>({...L,[k]:A}))},w=Uh(f.contact_person_email),S=!t&&(!((T=f.contact_person_name)!=null&&T.trim())||!w||!f.contact_person_email)||!((_=f.ticket_title)!=null&&_.trim())||!((x=f.ticket_activity)!=null&&x.trim()),C=()=>y||u?!0:S;return O.jsxs("div",{className:"ed-bg-white ed-absolute ed-inset-2 ed-rounded-[10px] ed-overflow-y-auto no-scrollbar",children:[O.jsxs("div",{className:"ed-p-5 ed-flex ed-items-center ed-justify-between ed-sticky ed-top-0 ed-bg-white ed-z-10",children:[O.jsx("h6",{className:"ed-text-18 ed-font-semibold ed-text-border-dark",children:i("widget.label.create_a_ticket")}),O.jsx("button",{type:"button",onClick:()=>e(!1),children:O.jsx(Ji,{className:"ed-text-border-dark ed-size-5"})})]}),h?O.jsxs("div",{className:"ed-p-5 ed-space-y-4 ed-flex ed-items-center ed-justify-center ed-flex-col ed-h-[calc(100vh-25rem)]",children:[O.jsx(cR,{}),O.jsxs("div",{className:"ed-text-center",children:[O.jsx("h6",{className:"ed-leading-none ed-text-16 ed-font-semibold ed-text-border-dark ed-mb-1",children:i("widget.label.ticket_created")}),O.jsx("p",{className:"ed-text-border-regular",children:i("widget.label.soon_get_response")})]}),O.jsx(Ho,{title:i("widget.label.explore_more_articles"),iconPosition:"right",Icon:Fo,callBack:()=>e(!1)})]}):O.jsxs("div",{className:"ed-p-5 ed-space-y-4",children:[!t&&O.jsxs(O.Fragment,{children:[O.jsx(Bo,{isRequired:!0,label:"Name",placeholder:"Enter your name",value:f.contact_person_name,onChange:k=>b("contact_person_name",k.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"contact_person_name"}),O.jsx(Bo,{isRequired:!0,type:"email",label:"Email",placeholder:"Enter your email",value:f.contact_person_email,onChange:k=>b("contact_person_email",k.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"contact_person_email"}),(f==null?void 0:f.contact_person_email)&&!w&&O.jsx("span",{className:"ed-text-red ed-font-12",children:"Please enter a valid email address!"})]}),O.jsx(Bo,{isRequired:!0,label:"Subject",placeholder:"Tell us what this feedback is about",value:f.ticket_title,onChange:k=>b("ticket_title",k.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"ticket_title"}),O.jsx(cw,{label:`${t?"Summary":"Description"}`,isRequired:!0,placeholder:"Add more details for us to resolve the issue",value:f.ticket_activity,onChange:k=>b("ticket_activity",k.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"ticket_activity"}),O.jsx(hw,{subtitle:"Supported file types: jpg, png, pdf (max 5MB)",selectedFiles:a,setSelectedFiles:o}),O.jsx(Ho,{title:"Create ticket",fullWidthBtn:!0,disabled:C(),loader:y||u,callBack:g})]})]})};/*! *****************************************************************************
133
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function hc(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var n=e.type;n.kind==="NamedType"&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){hc(r,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){hc(r,t)}),e.definitions&&e.definitions.forEach(function(r){hc(r,t)})}var cv={};(function(){lv.definitions.forEach(function(t){if(t.name){var n=new Set;hc(t,n),cv[t.name.value]=n}})})();function pw(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}function hR(e,t){var n={kind:e.kind,definitions:[pw(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var r=cv[t]||new Set,i=new Set,a=new Set;for(r.forEach(function(u){a.add(u)});a.size>0;){var o=a;a=new Set,o.forEach(function(u){if(!i.has(u)){i.add(u);var l=cv[u]||new Set;l.forEach(function(f){a.add(f)})}})}return i.forEach(function(u){var l=pw(e,u);l&&n.definitions.push(l)}),n}const vw=hR(lv,"CREATE_A_TICKET_FOR_PORTAL"),pR=({setIsCreateNewTicketClicked:e,isAuthenticated:t,setSearchedText:n,searchedText:r})=>{var T,_,x;const{t:i}=zo(),[a,o]=M.useState([]),[u,l]=M.useState(!1),[f,d]=M.useState({ticket_title:r}),[h,p]=M.useState(!1),[m,{loading:y}]=Ra(vw),g=async()=>{var k;try{if(l(!0),Ge.size(a)&&Ge.size(a)>5){Wt("error","You can upload maximum 5 files","top-right");return}const A=[],L=[];Ge.forEach(a,F=>{const H=`${Qp()}.${Ge.last(Ge.split(F.name,"."))}`;A.push({name:H,title:F.name,size:F.size,type:"ticket_activity_attachment"}),L.push({file:F,name:H})});const{data:N}=await m({variables:{inputData:{...f,ticket_activity_files:A}}});(k=N==null?void 0:N.createATicketForPortal)!=null&&k.id&&(Ge.size(L)&&L.forEach(async F=>{var H;try{const V=await sv({name:F.name,type:"ticket_activity_attachment",sub_type:(H=N==null?void 0:N.createATicketForPortal)==null?void 0:H.id});if(V!=null&&V.error){Wt("error",`Failed to process ${F.name}`,"top-right");return}await uv({key:V.key,url:V.url},F.file)}catch(V){console.error(`Error processing file ${F.name}:`,V),Wt("error",`Failed to upload ${F.name}`,"top-right")}}),p(!0),n(""))}catch(A){Wt("error","Something went wrong","top-right"),console.error("error",A)}finally{l(!1)}},b=(k,A)=>{d(L=>({...L,[k]:A}))},w=Uh(f.contact_person_email),S=!t&&(!((T=f.contact_person_name)!=null&&T.trim())||!w||!f.contact_person_email)||!((_=f.ticket_title)!=null&&_.trim())||!((x=f.ticket_activity)!=null&&x.trim()),C=()=>y||u?!0:S;return O.jsxs("div",{className:"ed-bg-white ed-absolute ed-inset-2 ed-rounded-[10px] ed-overflow-y-auto no-scrollbar",children:[O.jsxs("div",{className:"ed-p-5 ed-flex ed-items-center ed-justify-between ed-sticky ed-top-0 ed-bg-white ed-z-10",children:[O.jsx("h6",{className:"ed-text-18 ed-font-semibold ed-text-border-dark",children:i("widget.label.create_a_ticket")}),O.jsx("button",{type:"button",onClick:()=>e(!1),children:O.jsx(Ji,{className:"ed-text-border-dark ed-size-5"})})]}),h?O.jsxs("div",{className:"ed-p-5 ed-space-y-4 ed-flex ed-items-center ed-justify-center ed-flex-col ed-h-[calc(100vh-25rem)]",children:[O.jsx(cR,{}),O.jsxs("div",{className:"ed-text-center",children:[O.jsx("h6",{className:"ed-leading-none ed-text-16 ed-font-semibold ed-text-border-dark ed-mb-1",children:i("widget.label.ticket_created")}),O.jsx("p",{className:"ed-text-border-regular",children:i("widget.label.soon_get_response")})]}),O.jsx(Ho,{title:i("widget.label.explore_more_articles"),iconPosition:"right",Icon:Fo,callBack:()=>e(!1)})]}):O.jsxs("div",{className:"ed-p-5 ed-space-y-4",children:[!t&&O.jsxs(O.Fragment,{children:[O.jsx(Bo,{isRequired:!0,label:"Name",placeholder:"Enter your name",value:f.contact_person_name,onChange:k=>b("contact_person_name",k.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"contact_person_name"}),O.jsx(Bo,{isRequired:!0,type:"email",label:"Email",placeholder:"Enter your email",value:f.contact_person_email,onChange:k=>b("contact_person_email",k.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"contact_person_email"}),(f==null?void 0:f.contact_person_email)&&!w&&O.jsx("span",{className:"ed-text-red ed-font-12",children:"Please enter a valid email address!"})]}),O.jsx(Bo,{isRequired:!0,label:"Subject",placeholder:"Tell us what this feedback is about",value:f.ticket_title,onChange:k=>b("ticket_title",k.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"ticket_title"}),O.jsx(cw,{label:`${t?"Summary":"Description"}`,isRequired:!0,placeholder:"Add more details for us to resolve the issue",value:f.ticket_activity,onChange:k=>b("ticket_activity",k.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"ticket_activity"}),O.jsx(hw,{subtitle:"Supported file types: jpg, png, pdf (max 5MB)",selectedFiles:a,setSelectedFiles:o}),O.jsx(Ho,{title:"Create ticket",fullWidthBtn:!0,disabled:C(),loader:y||u,callBack:g})]})]})};/*! *****************************************************************************
134
134
  Copyright (c) Microsoft Corporation. All rights reserved.
135
135
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
136
136
  this file except in compliance with the License. You may obtain a copy of the
@@ -184,11 +184,11 @@ Valid keys: `+JSON.stringify(Object.keys($),null," "));var W=ne(ve,we,te,fe,le+
184
184
  </div>`,is_customer_reply:!0},{message:l?a:i,is_customer_reply:!1}]}}}),x=_==null?void 0:_.createAConversationForPortal;x!=null&&x.id&&(n(x==null?void 0:x.id),qh("easydesk_chat_widget_conversation_id",x==null?void 0:x.id,{expires:30}),e==null||e({contact_person_name:p==null?void 0:p.contact_person_name,contact_person_email:p==null?void 0:p.contact_person_email}))}catch(_){const{message:x,response:k}=_;Wt("error",((T=k==null?void 0:k.data)==null?void 0:T.message)||x,"top-left")}},w=C=>{const{name:T,value:_}=C.target;m(x=>({...x,[T]:_}))},S=M.useMemo(()=>!(p!=null&&p.contact_person_name)||!(p!=null&&p.contact_person_email)||!Uh(p==null?void 0:p.contact_person_email),[p]);return M.useEffect(()=>{const C=setTimeout(()=>{h(!1)},1e3);return()=>clearTimeout(C)},[]),O.jsxs("div",{className:"ed-space-y-5",children:[O.jsxs("div",{className:"ed-flex ed-gap-4 ed-max-w-[85%]",children:[O.jsx("div",{children:O.jsx(ea,{className:"ed-size-7 ed-object-cover ed-rounded-full",defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:u==null?void 0:u.logo_icon_key,defaultImageName:Po(u==null?void 0:u.name)})}),O.jsxs("div",{children:[O.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[O.jsx("p",{className:"ed-text-border-regular",children:u==null?void 0:u.name}),O.jsx("span",{className:"ed-text-border ed-font-medium",children:tu().format("HH:MM")})]}),d?O.jsx("div",{className:"ed-py-4",children:O.jsx(dw,{})}):O.jsx("div",{className:"ed-p-2.5 ed-bg-white-light ed-rounded-lg ed-mt-2",children:O.jsx("p",{className:"ed-text-border-dark",children:o})})]})]}),!d&&O.jsx("div",{className:"ed-max-w-[85%] ed-ml-auto",children:O.jsxs("form",{onSubmit:b,className:"ed-p-5 ed-rounded-[20px] ed-bg-white-light ed-space-y-5",children:[O.jsxs("div",{className:"ed-space-y-2",children:[O.jsxs("label",{className:"ed-block ed-text-border-dark ed-text-14 ed-font-semibold",children:["Name ",O.jsx("span",{className:"ed-text-red ed-text-14 ed-font-semibold",children:"*"})]}),O.jsx("input",{type:"text",name:"contact_person_name",required:!0,placeholder:"Enter your name",value:p==null?void 0:p.contact_person_name,onChange:w,disabled:f,className:"ed-w-full ed-p-2.5 ed-px-4 ed-border ed-border-border-light ed-rounded-lg ed-outline-none ed-bg-white"})]}),O.jsxs("div",{className:"ed-space-y-2",children:[O.jsxs("label",{className:"ed-block ed-text-border-dark ed-text-14 ed-font-semibold",children:["Email ",O.jsx("span",{className:"ed-text-red ed-text-14 ed-font-semibold",children:"*"})]}),O.jsx("input",{type:"email",name:"contact_person_email",required:!0,placeholder:"Enter your email",value:p==null?void 0:p.contact_person_email,onChange:w,disabled:f,className:"ed-w-full ed-p-2.5 ed-px-4 ed-border ed-border-border-light ed-rounded-lg ed-outline-none ed-bg-white"})]}),O.jsx("div",{className:"ed-flex ed-justify-end",children:O.jsx(Ho,{title:"Submit",loaderText:"Submitting",fullWidthBtn:!0,disabled:S||g,loader:d||g,callBack:b})})]})})]})},OR=({height:e="48",width:t="49"})=>O.jsx("svg",{width:t,height:e,viewBox:"0 0 49 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:O.jsx("path",{d:"M42.5 23.0001C42.5069 25.6398 41.8901 28.2438 40.7 30.6001C39.2889 33.4235 37.1195 35.7984 34.4349 37.4586C31.7503 39.1188 28.6565 39.9988 25.5 40.0001C22.8603 40.0069 20.2562 39.3902 17.9 38.2001L6.5 42.0001L10.3 30.6001C9.10986 28.2438 8.49312 25.6398 8.5 23.0001C8.50122 19.8436 9.38122 16.7498 11.0414 14.0652C12.7017 11.3806 15.0765 9.21119 17.9 7.80006C20.2562 6.60992 22.8603 5.99317 25.5 6.00006H26.5C30.6687 6.23004 34.6061 7.98958 37.5583 10.9418C40.5105 13.894 42.27 17.8314 42.5 22.0001V23.0001Z",fill:"white",stroke:"#00A1E0",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),kR=()=>O.jsxs("svg",{width:"192",height:"165",viewBox:"0 0 192 165",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[O.jsx("path",{opacity:"0.4",d:"M124.365 148.68H57.3652L63.8177 119.68H117.913L124.365 148.68Z",fill:"#44A9F1"}),O.jsx("path",{opacity:"0.4",d:"M173.775 119.874H7.99173C3.77973 119.874 0.365234 116.459 0.365234 112.247V7.80619C0.365234 3.59419 3.77973 0.179688 7.99173 0.179688H173.775C177.987 0.179688 181.402 3.59419 181.402 7.80619V112.247C181.402 116.459 177.987 119.874 173.775 119.874Z",fill:"#44A9F1"}),O.jsx("path",{d:"M169.382 107.314H12.3843C8.17232 107.314 4.75781 103.9 4.75781 99.6877V11.4077C4.75781 7.19575 8.17232 3.78125 12.3843 3.78125H169.382C173.594 3.78125 177.009 7.19575 177.009 11.4077V99.6877C177.009 103.9 173.594 107.314 169.382 107.314Z",fill:"white"}),O.jsx("path",{opacity:"0.4",d:"M138.348 159.397H43.418V154.811C43.418 151.265 46.2925 148.391 49.8385 148.391H131.927C135.473 148.391 138.348 151.265 138.348 154.811V159.397Z",fill:"#44A9F1"}),O.jsx("path",{d:"M10.375 107.312H168.21",stroke:"#3B3B3B","stroke-width":"0.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),O.jsx("path",{d:"M47.5977 157.107V154.699C47.5977 153.243 48.7781 152.062 50.2346 152.062H121.432",stroke:"#3B3B3B","stroke-width":"0.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),O.jsx("path",{d:"M113.863 123.398L116.385 142.66",stroke:"#3B3B3B","stroke-width":"0.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),O.jsx("path",{d:"M89.2912 117.684C91.331 117.684 92.9847 116.03 92.9847 113.99C92.9847 111.951 91.331 110.297 89.2912 110.297C87.2513 110.297 85.5977 111.951 85.5977 113.99C85.5977 116.03 87.2513 117.684 89.2912 117.684Z",fill:"white"}),O.jsx("path",{d:"M141.84 10.8125H161.445C165.181 10.8125 168.209 13.841 168.209 17.577V58.3125",stroke:"white","stroke-width":"0.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),O.jsx("g",{opacity:"0.5",children:O.jsx("path",{d:"M88.1608 69.8837C88.0874 66.9345 88.253 64.5539 88.6584 62.7429C89.0634 60.9321 89.8966 59.2607 91.1596 57.7286C91.8875 56.8101 92.7171 56.0144 93.6518 55.3405C94.5848 54.6678 95.4423 53.9582 96.2249 53.213C97.0058 52.469 97.6603 51.639 98.1883 50.7253C98.7159 49.8117 98.9617 48.6306 98.9257 47.1804C98.8644 44.7316 98.1469 43.0353 96.7729 42.0943C95.3989 41.1533 93.7863 40.7055 91.9372 40.7516C89.2865 40.8179 87.4805 41.6012 86.518 43.1003C85.5544 44.6005 84.9787 46.6032 84.7917 49.1089L75.1185 49.3502C75.0577 46.9012 75.4013 44.6662 76.1517 42.6464C76.9013 40.6275 77.9965 38.8991 79.4365 37.4622C80.8761 36.0265 82.6238 34.9069 84.6804 34.105C86.7351 33.3035 89.0133 32.8716 91.5136 32.8092C96.9126 32.6746 101.201 33.6687 104.382 35.79C107.56 37.9127 109.212 41.4473 109.335 46.3966C109.375 47.9972 109.247 49.4003 108.953 50.6083C108.657 51.8161 108.196 52.9155 107.572 53.9068C106.945 54.8976 106.168 55.8304 105.24 56.7039C104.311 57.578 103.258 58.479 102.081 59.4086C101.002 60.2865 100.135 61.0962 99.4778 61.837C98.821 62.5793 98.3267 63.3549 97.9977 64.1625C97.6672 64.9714 97.4633 65.8153 97.3853 66.6912C97.3066 67.5691 97.2818 68.5583 97.3095 69.6569L88.1608 69.8837ZM88.2219 84.3642L87.977 74.5405L98.1001 74.2883L98.345 84.112L88.2219 84.3642Z",fill:"#44A9F1"})}),O.jsx("path",{d:"M189.428 162.528C186.451 165.558 181.581 165.6 178.551 162.622L142.516 127.208L153.299 116.236L189.333 151.65C192.364 154.628 192.406 159.498 189.428 162.528Z",fill:"#004E92"}),O.jsx("path",{opacity:"0.2",d:"M156.307 99.3327C156.268 82.1553 142.311 68.2623 125.133 68.3018C107.956 68.3413 94.0628 82.2984 94.1023 99.4757C94.1418 116.653 108.099 130.546 125.276 130.507C142.454 130.467 156.347 116.51 156.307 99.3327Z",fill:"#F8F9FB"}),O.jsx("path",{d:"M99.6105 74.257C85.7147 88.3958 85.9121 111.123 100.051 125.018C114.19 138.914 136.917 138.717 150.813 124.577C164.709 110.439 164.511 87.7118 150.372 73.816C136.232 59.9202 113.506 60.1176 99.6105 74.257ZM146.295 120.137C134.851 131.781 116.136 131.944 104.491 120.5C92.8472 109.057 92.6847 90.341 104.128 78.6972C115.571 67.0533 134.287 66.8909 145.932 78.3342C157.576 89.777 157.738 108.493 146.295 120.137Z",fill:"#004E92"}),O.jsx("path",{d:"M156.613 124.724L185.106 152.727",stroke:"white","stroke-width":"0.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),O.jsx("path",{d:"M91.8946 96.8405C91.0045 105.663 94.0498 114.81 100.05 121.339C106.052 127.869 114.91 131.672 123.777 131.527",stroke:"white","stroke-width":"0.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})]}),RR=({height:e="238",width:t="300"})=>O.jsxs("svg",{width:t,height:e,viewBox:"0 0 300 238",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[O.jsx("path",{d:"M59.041 51C59.041 51 177.481 15.24 231.121 19.26C231.121 19.26 256.261 126.48 250.321 133.08C244.381 139.68 87.121 166.2 82.681 162.84C78.241 159.48 59.041 51 59.041 51Z",fill:"#00A1E0"}),O.jsx("path",{d:"M77.7021 72.12C77.7021 72.12 77.5221 74.58 78.1821 74.64C78.8421 74.7 89.4021 72.42 89.4021 72.42C89.4021 72.42 93.1821 97.92 94.5621 98.34C95.9421 98.76 99.7221 97.32 99.7221 97.32L93.9621 71.22C93.9621 71.22 106.562 69.3 106.442 68.52L106.082 66.54L77.7021 72.12Z",fill:"#F2EBEB"}),O.jsx("path",{d:"M109.98 66.4201C110.16 66.3601 110.28 66.3001 110.46 66.2401C111.54 65.7601 114.06 64.6201 114.6 65.5201C115.26 66.6601 117.72 77.3401 117.72 77.3401L130.2 74.8801C130.2 74.8801 127.56 62.6401 128.28 62.1601C129 61.6801 131.82 61.1401 132.54 61.3201C133.26 61.5001 138.18 87.6601 138 89.0401C137.82 90.4201 134.28 90.9601 133.8 90.3601C133.32 89.7601 130.92 77.1601 130.92 77.1601L117.84 79.1401C117.84 79.1401 120.72 93.1201 119.94 93.6601C119.16 94.2001 116.76 94.8001 115.86 94.4401C114.96 94.0801 109.98 66.4201 109.98 66.4201Z",fill:"#F2EBEB"}),O.jsx("path",{d:"M144.841 88.6799C145.681 88.3199 146.521 87.8399 147.181 87.2399C147.841 86.4599 150.901 65.2199 150.901 65.2199C150.901 65.2199 163.441 85.2599 164.041 84.9599C164.641 84.6599 169.321 83.3999 169.321 83.3999C169.321 83.3999 152.701 56.9999 151.381 57.2999L150.061 57.5999C150.061 57.5999 143.641 87.8399 144.841 88.6799Z",fill:"#F2EBEB"}),O.jsx("path",{d:"M147.781 77.3999L159.181 75.1799L158.821 73.4399L148.501 74.9399L147.061 77.5799L147.781 77.3999Z",fill:"#F2EBEB"}),O.jsx("path",{d:"M175.26 81.6601C175.26 81.6601 176.4 81.9601 176.7 81.3601C177 80.7601 172.08 58.0201 172.08 58.0201C172.08 58.0201 192.72 77.9401 194.1 77.8801C194.88 77.8801 195.66 77.7601 196.44 77.6401C196.44 77.6401 191.88 50.6401 191.04 50.2201C190.2 49.8001 188.34 50.7601 188.34 50.7601L192.54 70.5001C192.54 70.5001 174.48 53.1001 173.46 53.4601C172.44 53.8201 169.74 53.8201 168.9 54.3601C168.06 54.9001 175.26 81.6601 175.26 81.6601Z",fill:"#F2EBEB"}),O.jsx("path",{d:"M203.941 76.2001C203.941 76.2001 208.261 76.0201 208.501 75.3001C208.741 74.5801 206.161 63.5401 206.161 63.5401C206.161 63.5401 221.461 73.0201 223.021 72.7201C224.581 72.4201 229.741 71.6401 229.561 71.1601C229.381 70.6801 208.681 60.2401 208.681 60.2401C208.681 60.2401 219.661 46.2601 219.481 45.4201C219.301 44.5801 215.281 45.1201 215.281 45.1201L205.381 60.1201C205.381 60.1201 203.341 47.5201 202.981 47.5201C202.621 47.5201 198.001 48.5401 197.881 49.0201C197.761 49.5001 203.941 76.2001 203.941 76.2001Z",fill:"#F2EBEB"}),O.jsx("path",{d:"M118.08 111.36C118.08 111.36 130.92 124.02 131.4 125.52C131.88 127.02 133.38 135.54 134.28 136.2C135.18 136.86 137.22 135.9 137.88 135.48C138.54 135.06 135.72 124.5 135.72 124.5C135.72 124.5 143.58 105.54 142.56 105.3C141.54 105.06 139.26 105.96 139.26 105.96L133.92 121.8C133.92 121.8 122.82 109.2 121.8 109.44C120.78 109.68 116.94 110.22 118.08 111.36Z",fill:"#F2EBEB"}),O.jsx("path",{d:"M177.84 98.3397C177.84 98.3397 182.94 96.5997 183.24 97.8597C183.54 99.1197 185.28 119.82 189.84 122.16C194.4 124.5 202.2 120 201.78 116.04C201.36 112.08 198 95.5797 198.78 95.0397C199.56 94.4997 201.36 93.7197 201.78 96.4197C202.2 99.1197 207.18 115.62 202.62 120.3C198.06 124.98 185.46 128.1 181.98 119.34C178.5 110.58 177.84 98.3397 177.84 98.3397Z",fill:"#F2EBEB"}),O.jsx("path",{d:"M173.581 111.6C170.881 103.56 162.061 100.2 155.881 102.54C155.881 102.54 147.421 105.24 146.161 113.82C144.901 122.4 151.321 131.52 161.521 130.92C171.721 130.32 176.281 119.64 173.581 111.6ZM162.481 127.74C155.761 127.92 151.201 120.54 151.861 113.76C152.521 106.98 157.981 105.12 157.981 105.12C162.001 103.44 167.941 106.38 169.981 112.8C172.021 119.22 169.201 127.56 162.481 127.74Z",fill:"#F2EBEB"}),O.jsx("path",{d:"M52.2605 112.2L49.5005 111C53.2205 102.3 53.2805 99.9603 53.1605 99.3603C52.2605 99.3603 49.9205 100.62 48.3605 101.46C45.1805 103.14 41.6405 105 38.5805 104.76C36.4805 104.58 35.5805 103.5 35.2205 102.6C33.3005 98.0403 41.8205 87.4203 44.4605 84.3003L46.7405 86.2203C41.8805 91.9803 37.2005 99.4803 37.9805 101.46C38.0405 101.64 38.3405 101.76 38.8205 101.82C40.9805 102 44.2805 100.26 46.9805 98.8203C50.5805 96.9003 53.4605 95.4003 55.2605 97.0803C57.3605 99.0003 55.7405 104.1 52.2605 112.2Z",fill:"#00A1E0"}),O.jsx("path",{d:"M258.481 51.3602L256.621 49.0202C258.541 47.4602 258.961 46.5602 259.021 46.3202C258.781 46.2002 258.001 45.7802 255.481 45.8402C252.241 45.9002 250.381 45.1202 249.841 43.3802C248.941 40.5602 252.661 37.6202 254.881 36.1202C255.721 35.5802 256.081 35.1002 256.021 34.8602C255.961 34.2002 254.221 33.0602 252.841 32.5202L253.921 29.7002C254.701 30.0002 258.721 31.6202 259.021 34.5002C259.201 36.0002 258.361 37.3802 256.561 38.5802C253.741 40.4402 252.781 41.9402 252.721 42.3602C252.841 42.4802 253.501 42.7802 255.421 42.7802C256.801 42.7202 260.941 42.6602 261.841 45.1802C262.501 47.0402 261.421 49.0202 258.481 51.3602Z",fill:"#004E92"}),O.jsx("path",{d:"M49.0805 60.9C48.9605 60.3 45.8405 46.56 54.2405 43.5L55.2605 46.32C49.4405 48.42 52.0205 60.06 52.0205 60.18L49.0805 60.9Z",fill:"#004E92"}),O.jsx("path",{d:"M253.92 164.04L253.44 161.1C259.26 160.2 261.06 159.42 261.54 159C260.88 158.28 258.66 157.02 257.16 156.12C254.28 154.44 250.98 152.58 249.24 150.24C247.8 148.32 248.1 146.94 248.64 146.16C250.68 142.8 260.76 144.18 265.02 144.96L264.48 147.9C258.42 146.82 252.18 146.76 251.22 147.66C251.34 147.96 251.46 148.2 251.64 148.44C252.96 150.24 255.96 151.98 258.6 153.48C262.32 155.64 265.02 157.14 264.6 159.48C264.3 161.7 261.36 162.9 253.92 164.04Z",fill:"#00A1E0"}),O.jsx("path",{d:"M61.0198 156.66C60.2398 156.36 56.2198 154.74 55.9198 151.86C55.7398 150.36 56.5798 148.98 58.3798 147.78C61.1998 145.92 62.1598 144.42 62.2198 144C62.0998 143.88 61.4398 143.52 59.5198 143.58C58.1398 143.64 53.9998 143.7 53.0998 141.18C52.4398 139.44 53.5798 137.46 56.4598 135.12L58.3198 137.46C56.3998 139.02 55.9798 139.92 55.9198 140.16C56.1598 140.28 56.9998 140.7 59.4598 140.64C62.6998 140.58 64.5598 141.42 65.0998 143.1C65.9998 145.92 62.2798 148.86 60.0598 150.36C59.2198 150.9 58.9198 151.38 58.9198 151.62C58.9798 152.28 60.7198 153.42 62.0998 153.96L61.0198 156.66Z",fill:"#00A1E0"}),O.jsx("path",{d:"M258.421 83.2799L257.881 80.3399C259.561 80.0399 260.641 79.3799 261.121 78.4799C261.841 77.1599 261.241 75.2399 260.941 74.6399L263.641 73.3799C263.701 73.4999 265.261 76.9199 263.761 79.8599C262.861 81.5999 261.061 82.7999 258.421 83.2799Z",fill:"#00A1E0"}),O.jsx("path",{d:"M46.5003 195.48C42.8403 190.44 41.9403 188.1 43.0803 186.54C44.4003 184.74 47.2203 185.58 51.1803 186.84C53.8803 187.68 56.8803 188.64 59.0403 188.52C59.2203 188.52 59.4603 188.46 59.6403 188.46C59.0403 187.14 55.5603 183.9 51.7803 181.26L53.5203 178.8C58.1403 182.04 63.4803 186.54 62.6403 189.48C62.4003 190.38 61.5603 191.4 59.1603 191.52C56.5203 191.64 53.1603 190.62 50.2803 189.72C48.7803 189.18 47.2803 188.82 45.7203 188.52C45.9603 189.18 46.6803 190.68 48.9003 193.74L46.5003 195.48Z",fill:"#004E92"}),O.jsx("path",{d:"M194.281 164.46L191.521 163.38C191.821 162.6 192.421 160.2 191.581 158.58C191.101 157.68 190.141 157.02 188.701 156.72L189.301 153.78C191.641 154.26 193.261 155.4 194.221 157.14C195.841 160.32 194.341 164.28 194.281 164.46Z",fill:"#004E92"}),O.jsx("path",{d:"M240.54 218.22L238.86 215.76C238.86 215.76 241.38 214.02 241.68 211.8C241.8 210.6 241.38 209.46 240.54 208.56C237.78 205.32 235.38 200.76 236.88 197.82C237.3 196.92 238.5 195.42 241.56 195.6C242.88 195.66 243.84 195.42 244.08 194.94C244.44 194.22 244.14 192.3 241.98 189.18L244.44 187.5C247.08 191.28 247.8 194.4 246.72 196.44C246.12 197.52 244.68 198.78 241.44 198.66C240.72 198.66 239.82 198.72 239.58 199.26C239.04 200.34 240 203.34 242.88 206.76C244.26 208.26 244.92 210.3 244.68 212.34C244.14 215.76 240.66 218.1 240.54 218.22Z",fill:"#004E92"})]}),AR=({isActive:e=!1})=>O.jsxs("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[O.jsx("path",{d:"M3.5 21.29V6C3.5 5.46957 3.71071 4.96086 4.08579 4.58579C4.46086 4.21071 4.96957 4 5.5 4H19.5C20.0304 4 20.5391 4.21071 20.9142 4.58579C21.2893 4.96086 21.5 5.46957 21.5 6V16C21.5 16.5304 21.2893 17.0391 20.9142 17.4142C20.5391 17.7893 20.0304 18 19.5 18H8.461C8.16123 18 7.86531 18.0675 7.59511 18.1973C7.32491 18.3271 7.08735 18.516 6.9 18.75L4.569 21.664C4.49143 21.7612 4.38556 21.8319 4.26604 21.8664C4.14652 21.9008 4.01926 21.8972 3.90186 21.8561C3.78446 21.815 3.68273 21.7385 3.61073 21.6371C3.53874 21.5357 3.50005 21.4144 3.5 21.29Z",className:e?"ed-stroke-brand":"ed-fill-white",stroke:"#797979",strokeWidth:"1.5"}),O.jsx("path",{d:"M7.5 13H17.5M7.5 9H13.5",className:e?"ed-stroke-brand":"ed-stroke-border-regular",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),PR=({isActive:e=!1})=>O.jsxs("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[O.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.8571 7.5H13.7857L13.3357 7.68987L12.5 8.5L11.6643 7.68987L11.2143 7.5H4.14286L3.5 8.13291V20.7911L4.14286 21.424H10.9443L12.05 22.5H12.95L14.0557 21.424H20.8571L21.5 20.7911V8.13291L20.8571 7.5ZM11.8571 20.5633L11.6257 20.3481L11.2143 20.1582H4.78571V8.76582H10.9443L11.8957 9.70253L11.8571 20.5633ZM20.2143 20.1582H13.7857L13.3357 20.3481L13.1557 20.5127V9.6519L14.0557 8.76582H20.2143V20.1582ZM9.92857 12.2975H6.07143C5.3 12.2975 5.3 13.5633 6.07143 13.5633H9.92857C10.7 13.5633 10.7 12.2975 9.92857 12.2975ZM9.92857 17.3608H6.07143C5.3 17.3608 5.3 18.6266 6.07143 18.6266H9.92857C10.7 18.6266 10.7 17.3608 9.92857 17.3608ZM6.07143 14.8291H9.92857C10.7 14.8291 10.7 16.0949 9.92857 16.0949H6.07143C5.29297 16.0949 5.3 14.8291 6.07143 14.8291ZM18.9286 12.2975H15.0714C14.3 12.2975 14.3 13.5633 15.0714 13.5633H18.9286C19.7 13.5633 19.7 12.2975 18.9286 12.2975ZM15.0714 14.8291H18.9286C19.7 14.8291 19.7 16.0949 18.9286 16.0949H15.0714C14.3 16.0949 14.3 14.8291 15.0714 14.8291ZM15.0714 17.3608H18.9286C19.7 17.3608 19.7 18.6266 18.9286 18.6266H15.0714C14.3 18.6266 14.3 17.3608 15.0714 17.3608Z",className:e?"ed-fill-brand":"ed-fill-border-regular"}),O.jsx("path",{d:"M11.3634 7.22827C11.1775 8.71234 10.1635 9.30535 9.72555 9.73582C9.28695 10.1676 9.3655 10.2535 9.39496 10.8867C9.39988 10.965 9.38801 11.0435 9.36008 11.1173C9.33216 11.191 9.28877 11.2585 9.23259 11.3156C9.17641 11.3727 9.10863 11.4182 9.03343 11.4492C8.95823 11.4802 8.87719 11.4961 8.79532 11.496H7.05532C6.97351 11.4959 6.89258 11.4798 6.81748 11.4487C6.74237 11.4175 6.67467 11.3721 6.6185 11.3151C6.56232 11.2581 6.51886 11.1907 6.49075 11.117C6.46265 11.0434 6.45049 10.965 6.45503 10.8867C6.45503 10.2654 6.51525 10.1211 6.12509 9.73582C5.62757 9.25891 4.4571 8.58558 4.4571 6.73378C4.45411 6.27381 4.55056 5.81824 4.74036 5.39577C4.93017 4.9733 5.20922 4.59311 5.55992 4.27916C5.91062 3.9652 6.32536 3.72429 6.77801 3.57161C7.23066 3.41894 7.71139 3.3578 8.18991 3.39206C8.66843 3.42632 9.13436 3.55524 9.55833 3.77068C9.98229 3.98612 10.3551 4.28342 10.6533 4.64383C10.9514 5.00424 11.1684 5.41996 11.2907 5.86476C11.4129 6.30957 11.4377 6.77382 11.3634 7.22827Z",fill:"white",className:e?"ed-stroke-brand":"ed-stroke-border-regular",strokeLinecap:"round",strokeLinejoin:"round"}),O.jsx("path",{d:"M6.91717 11.4599V12.4087C6.91717 12.6679 7.06773 12.8806 7.25299 12.8806H8.59694C8.78351 12.8806 8.93342 12.6672 8.93342 12.4087V11.4599M10.5 2.5L11.5 1.5M8 1L8 2M4.5 1.5L5.5 2.5",className:e?"ed-stroke-brand":"ed-stroke-border-regular",strokeLinecap:"round",strokeLinejoin:"round"})]}),NR=()=>O.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[O.jsx("path",{d:"M4.875 0C4.04662 0 3.375 0.671625 3.375 1.5V22.5C3.375 23.3284 4.04662 24 4.875 24H19.125C19.9534 24 20.625 23.3284 20.625 22.5V6L14.625 0H4.875Z",fill:"#E2E7F0"}),O.jsx("path",{d:"M16.125 6H20.625L14.625 0V4.5C14.625 5.32837 15.2966 6 16.125 6ZM9 7.5H15C15.207 7.5 15.375 7.668 15.375 7.875C15.375 8.082 15.207 8.25 15 8.25H9C8.793 8.25 8.625 8.082 8.625 7.875C8.625 7.668 8.793 7.5 9 7.5ZM6.75 15.375H17.25C17.457 15.375 17.625 15.543 17.625 15.75C17.625 15.957 17.457 16.125 17.25 16.125H6.75C6.543 16.125 6.375 15.957 6.375 15.75C6.375 15.543 6.543 15.375 6.75 15.375ZM6.75 19.875H12.75C12.957 19.875 13.125 20.043 13.125 20.25C13.125 20.457 12.957 20.625 12.75 20.625H6.75C6.543 20.625 6.375 20.457 6.375 20.25C6.375 20.043 6.543 19.875 6.75 19.875ZM6.75 17.625H17.25C17.457 17.625 17.625 17.793 17.625 18C17.625 18.207 17.457 18.375 17.25 18.375H6.75C6.543 18.375 6.375 18.207 6.375 18C6.375 17.793 6.543 17.625 6.75 17.625ZM6.75 13.125H17.25C17.457 13.125 17.625 13.293 17.625 13.5C17.625 13.707 17.457 13.875 17.25 13.875H6.75C6.543 13.875 6.375 13.707 6.375 13.5C6.375 13.293 6.543 13.125 6.75 13.125ZM6.75 10.875H17.25C17.457 10.875 17.625 11.043 17.625 11.25C17.625 11.457 17.457 11.625 17.25 11.625H6.75C6.543 11.625 6.375 11.457 6.375 11.25C6.375 11.043 6.543 10.875 6.75 10.875Z",fill:"#9DACBA"}),O.jsx("path",{d:"M16.125 6L19.6537 9.52875C19.7239 9.59855 19.7796 9.68153 19.8175 9.77292C19.8555 9.8643 19.875 9.96229 19.875 10.0612V22.5C19.875 22.9144 19.5394 23.25 19.125 23.25H5.625C5.21062 23.25 4.875 23.5856 4.875 24H19.125C19.9534 24 20.625 23.3284 20.625 22.5V6H16.125Z",fill:"#C9D5E3"})]});var yv={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_FILE_DOWNLOADING_URL"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FileDownloadingInputDataType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getFileDownloadingURLForWidget"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}}],directives:[]}]}}],loc:{start:0,end:134}};yv.loc.source={body:`query GET_FILE_DOWNLOADING_URL($queryData: FileDownloadingInputDataType!) {
185
185
  getFileDownloadingURLForWidget(queryData: $queryData)
186
186
  }
187
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function gc(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var n=e.type;n.kind==="NamedType"&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){gc(r,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){gc(r,t)}),e.definitions&&e.definitions.forEach(function(r){gc(r,t)})}var bv={};(function(){yv.definitions.forEach(function(t){if(t.name){var n=new Set;gc(t,n),bv[t.name.value]=n}})})();function Sw(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}function IR(e,t){var n={kind:e.kind,definitions:[Sw(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var r=bv[t]||new Set,i=new Set,a=new Set;for(r.forEach(function(u){a.add(u)});a.size>0;){var o=a;a=new Set,o.forEach(function(u){if(!i.has(u)){i.add(u);var l=bv[u]||new Set;l.forEach(function(f){a.add(f)})}})}return i.forEach(function(u){var l=Sw(e,u);l&&n.definitions.push(l)}),n}const LR=IR(yv,"GET_FILE_DOWNLOADING_URL"),FR=({filesData:e=[]})=>{var d;const[t,n]=M.useState(!1),r=e==null?void 0:e.filter(h=>/\.(jpg|jpeg|png|gif|webp)$/i.test(h.name)),i=e==null?void 0:e.filter(h=>!/\.(jpg|jpeg|png|gif|webp)$/i.test(h.name)),a=()=>n(!0),o=t?r:r==null?void 0:r.slice(0,1),u=ze.size(r)-2,[l]=Yi(LR,{errorPolicy:"all",fetchPolicy:"no-cache"}),f=async h=>{const m=(await l({variables:{queryData:{file_id:h,content_disposition:"inline"}}})).data.getFileDownloadingURLForWidget;window.open(m,"_blank")};return O.jsxs("div",{className:"ed-flex ed-flex-col ed-gap-3",children:[ze.size(r)>0&&O.jsxs("div",{className:"ed-grid ed-grid-cols-2 ed-gap-2.5",children:[o.map(h=>O.jsx(ea,{path:h.key,className:"ed-w-full ed-rounded",defaultImageClasses:"ed-w-full ed-h-20 !ed-rounded"},h==null?void 0:h.id)),!t&&u>0&&O.jsxs("div",{role:"button",tabIndex:0,className:"ed-relative cursor-pointer",onClick:a,children:[O.jsx(ea,{path:(d=r[2])==null?void 0:d.key,className:"ed-w-full ed-rounded",defaultImageClasses:"ed-w-full ed-h-20 !ed-rounded"}),O.jsx("div",{className:"ed-w-full ed-h-full ed-bg-black/15 ed-absolute ed-top-0 ed-left-0 ed-rounded",children:O.jsx("div",{className:"ed-bg-white ed-h-8 ed-w-8 ed-flex ed-items-center ed-justify-center ed-rounded-full ed-absolute ed-top-1/2 ed-left-1/2 ed--translate-x-1/2 ed--translate-y-1/2",children:O.jsxs("span",{className:"ed-text-12 ed-text-border-dark ed-font-semibold",children:["+",u]})})})]})]}),ze.size(i)>0&&O.jsx("div",{className:"ed-flex ed-flex-col ed-gap-2.5",children:i.map(h=>O.jsxs("div",{className:"ed-p-2.5 ed-bg-white-light ed-rounded-lg ed-flex ed-items-center ed-justify-between",children:[O.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[O.jsx(NR,{}),O.jsx("p",{className:"ed-text-12 ed-font-semibold ed-text-border-dark",children:h.name})]}),O.jsx("button",{type:"button",onClick:()=>f(h==null?void 0:h.id),children:O.jsx(xp,{className:"ed-text-brand-link ed-size-5"})})]},h==null?void 0:h.id))})]})},xw=({author:e={},brand:t={},message:n="",filesData:r=[],timeStamp:i="",isFromUser:a=!1,isReplying:o=!1})=>{const u=M.useMemo(()=>e!=null&&e.id?zh(e==null?void 0:e.first_name,e==null?void 0:e.last_name,e==null?void 0:e.email):(t==null?void 0:t.name)||"",[e==null?void 0:e.id]),l=M.useMemo(()=>e!=null&&e.id?{...(e==null?void 0:e.avatar_file)||{},default_image_name:Po(e==null?void 0:e.first_name,e==null?void 0:e.last_name,e==null?void 0:e.email)}:{key:t==null?void 0:t.logo_icon_key,default_image_name:Po(t==null?void 0:t.name)},[e==null?void 0:e.id]),f=M.isValidElement(n)?"div":"p",d=()=>{var h;return O.jsxs("div",{className:`ed-p-2.5 ${a?"ed-bg-blue-light":"ed-bg-white-light"} ${(h=n==null?void 0:n.props)!=null&&h.className.includes("form-response")?"ed-p-0 ed-bg-white":""} ed-rounded-lg ed-mt-2`,children:[O.jsx(f,{className:"ed-text-border-dark",children:n}),O.jsx(FR,{filesData:r})]})};return a?O.jsx("div",{className:"ed-max-w-[85%] ed-w-max ed-ml-auto",children:O.jsx(d,{})}):O.jsxs("div",{className:"ed-flex ed-gap-4 ed-my-4 ed-max-w-[85%] ed-w-max",children:[O.jsx("div",{children:O.jsx(ea,{className:"ed-size-7 ed-object-cover ed-rounded-full",alt:u,defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:l==null?void 0:l.key,defaultImageName:l==null?void 0:l.default_image_name})}),O.jsxs("div",{children:[O.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[O.jsx("p",{className:"ed-text-border-regular",children:u}),O.jsx("span",{className:"ed-text-border ed-font-medium",children:i})]}),o?O.jsx("div",{className:"ed-py-4",children:O.jsx(dw,{})}):O.jsx(d,{})]})]})};var _v={exports:{}};/*!
187
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function gc(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var n=e.type;n.kind==="NamedType"&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){gc(r,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){gc(r,t)}),e.definitions&&e.definitions.forEach(function(r){gc(r,t)})}var bv={};(function(){yv.definitions.forEach(function(t){if(t.name){var n=new Set;gc(t,n),bv[t.name.value]=n}})})();function Sw(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}function IR(e,t){var n={kind:e.kind,definitions:[Sw(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var r=bv[t]||new Set,i=new Set,a=new Set;for(r.forEach(function(u){a.add(u)});a.size>0;){var o=a;a=new Set,o.forEach(function(u){if(!i.has(u)){i.add(u);var l=bv[u]||new Set;l.forEach(function(f){a.add(f)})}})}return i.forEach(function(u){var l=Sw(e,u);l&&n.definitions.push(l)}),n}const LR=IR(yv,"GET_FILE_DOWNLOADING_URL"),FR=({filesData:e=[]})=>{var d;const[t,n]=M.useState(!1),r=e==null?void 0:e.filter(h=>/\.(jpg|jpeg|png|gif|webp)$/i.test(h.name)),i=e==null?void 0:e.filter(h=>!/\.(jpg|jpeg|png|gif|webp)$/i.test(h.name)),a=()=>n(!0),o=t?r:r==null?void 0:r.slice(0,1),u=Ge.size(r)-2,[l]=Yi(LR,{errorPolicy:"all",fetchPolicy:"no-cache"}),f=async h=>{const m=(await l({variables:{queryData:{file_id:h,content_disposition:"inline"}}})).data.getFileDownloadingURLForWidget;window.open(m,"_blank")};return O.jsxs("div",{className:"ed-flex ed-flex-col ed-gap-3",children:[Ge.size(r)>0&&O.jsxs("div",{className:"ed-grid ed-grid-cols-2 ed-gap-2.5",children:[o.map(h=>O.jsx(ea,{path:h.key,className:"ed-w-full ed-rounded",defaultImageClasses:"ed-w-full ed-h-20 !ed-rounded"},h==null?void 0:h.id)),!t&&u>0&&O.jsxs("div",{role:"button",tabIndex:0,className:"ed-relative cursor-pointer",onClick:a,children:[O.jsx(ea,{path:(d=r[2])==null?void 0:d.key,className:"ed-w-full ed-rounded",defaultImageClasses:"ed-w-full ed-h-20 !ed-rounded"}),O.jsx("div",{className:"ed-w-full ed-h-full ed-bg-black/15 ed-absolute ed-top-0 ed-left-0 ed-rounded",children:O.jsx("div",{className:"ed-bg-white ed-h-8 ed-w-8 ed-flex ed-items-center ed-justify-center ed-rounded-full ed-absolute ed-top-1/2 ed-left-1/2 ed--translate-x-1/2 ed--translate-y-1/2",children:O.jsxs("span",{className:"ed-text-12 ed-text-border-dark ed-font-semibold",children:["+",u]})})})]})]}),Ge.size(i)>0&&O.jsx("div",{className:"ed-flex ed-flex-col ed-gap-2.5",children:i.map(h=>O.jsxs("div",{className:"ed-p-2.5 ed-bg-white-light ed-rounded-lg ed-flex ed-items-center ed-justify-between",children:[O.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[O.jsx(NR,{}),O.jsx("p",{className:"ed-text-12 ed-font-semibold ed-text-border-dark",children:h.name})]}),O.jsx("button",{type:"button",onClick:()=>f(h==null?void 0:h.id),children:O.jsx(xp,{className:"ed-text-brand-link ed-size-5"})})]},h==null?void 0:h.id))})]})},xw=({author:e={},brand:t={},message:n="",filesData:r=[],timeStamp:i="",isFromUser:a=!1,isReplying:o=!1})=>{const u=M.useMemo(()=>e!=null&&e.id?zh(e==null?void 0:e.first_name,e==null?void 0:e.last_name,e==null?void 0:e.email):(t==null?void 0:t.name)||"",[e==null?void 0:e.id]),l=M.useMemo(()=>e!=null&&e.id?{...(e==null?void 0:e.avatar_file)||{},default_image_name:Po(e==null?void 0:e.first_name,e==null?void 0:e.last_name,e==null?void 0:e.email)}:{key:t==null?void 0:t.logo_icon_key,default_image_name:Po(t==null?void 0:t.name)},[e==null?void 0:e.id]),f=M.isValidElement(n)?"div":"p",d=()=>{var h;return O.jsxs("div",{className:`ed-p-2.5 ${a?"ed-bg-blue-light":"ed-bg-white-light"} ${(h=n==null?void 0:n.props)!=null&&h.className.includes("form-response")?"ed-p-0 ed-bg-white":""} ed-rounded-lg ed-mt-2`,children:[O.jsx(f,{className:"ed-text-border-dark",children:n}),O.jsx(FR,{filesData:r})]})};return a?O.jsx("div",{className:"ed-max-w-[85%] ed-w-max ed-ml-auto",children:O.jsx(d,{})}):O.jsxs("div",{className:"ed-flex ed-gap-4 ed-my-4 ed-max-w-[85%] ed-w-max",children:[O.jsx("div",{children:O.jsx(ea,{className:"ed-size-7 ed-object-cover ed-rounded-full",alt:u,defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:l==null?void 0:l.key,defaultImageName:l==null?void 0:l.default_image_name})}),O.jsxs("div",{children:[O.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[O.jsx("p",{className:"ed-text-border-regular",children:u}),O.jsx("span",{className:"ed-text-border ed-font-medium",children:i})]}),o?O.jsx("div",{className:"ed-py-4",children:O.jsx(dw,{})}):O.jsx(d,{})]})]})};var _v={exports:{}};/*!
188
188
  Copyright (c) 2018 Jed Watson.
189
189
  Licensed under the MIT License (MIT), see
190
190
  http://jedwatson.github.io/classnames
191
- */var Cw;function DR(){return Cw||(Cw=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",o=0;o<arguments.length;o++){var u=arguments[o];u&&(a=i(a,r(u)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var u in a)t.call(a,u)&&a[u]&&(o=i(o,u));return o}function i(a,o){return o?a?a+" "+o:a+o:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(_v)),_v.exports}var MR=DR();const Mn=ji(MR);function ii(){return ii=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ii.apply(null,arguments)}function Qe(e){"@babel/helpers - typeof";return Qe=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},Qe(e)}var jR=Symbol.for("react.element"),$R=Symbol.for("react.transitional.element"),VR=Symbol.for("react.fragment");function Tw(e){return e&&Qe(e)==="object"&&(e.$$typeof===jR||e.$$typeof===$R)&&e.type===VR}function yc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return M.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(yc(r)):Tw(r)&&r.props?n=n.concat(yc(r.props.children,t)):n.push(r))}),n}var wv={},Ev=[],qR=function(t){Ev.push(t)};function Go(e,t){if(!e&&console!==void 0){var n=Ev.reduce(function(r,i){return i(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function UR(e,t){if(!e&&console!==void 0){var n=Ev.reduce(function(r,i){return i(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function zR(){wv={}}function Ow(e,t,n){!t&&!wv[n]&&(e(!1,n),wv[n]=!0)}function Qt(e,t){Ow(Go,e,t)}function HR(e,t){Ow(UR,e,t)}Qt.preMessage=qR,Qt.resetWarned=zR,Qt.noteOnce=HR;function BR(e,t){if(Qe(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qe(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kw(e){var t=BR(e,"string");return Qe(t)=="symbol"?t:t+""}function re(e,t,n){return(t=kw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function de(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rw(Object(n),!0).forEach(function(r){re(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wu(e){return e instanceof HTMLElement||e instanceof SVGElement}function WR(e){return e&&Qe(e)==="object"&&wu(e.nativeElement)?e.nativeElement:wu(e)?e:null}function bc(e){var t=WR(e);if(t)return t;if(e instanceof M.Component){var n;return(n=_i.findDOMNode)===null||n===void 0?void 0:n.call(_i,e)}return null}var Sv={exports:{}},Ct={},Aw;function GR(){if(Aw)return Ct;Aw=1;/**
191
+ */var Cw;function DR(){return Cw||(Cw=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",o=0;o<arguments.length;o++){var u=arguments[o];u&&(a=i(a,r(u)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var u in a)t.call(a,u)&&a[u]&&(o=i(o,u));return o}function i(a,o){return o?a?a+" "+o:a+o:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(_v)),_v.exports}var MR=DR();const Mn=ji(MR);function ii(){return ii=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ii.apply(null,arguments)}function Qe(e){"@babel/helpers - typeof";return Qe=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},Qe(e)}var jR=Symbol.for("react.element"),$R=Symbol.for("react.transitional.element"),VR=Symbol.for("react.fragment");function Tw(e){return e&&Qe(e)==="object"&&(e.$$typeof===jR||e.$$typeof===$R)&&e.type===VR}function yc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return M.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(yc(r)):Tw(r)&&r.props?n=n.concat(yc(r.props.children,t)):n.push(r))}),n}var wv={},Ev=[],qR=function(t){Ev.push(t)};function Go(e,t){if(!e&&console!==void 0){var n=Ev.reduce(function(r,i){return i(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function UR(e,t){if(!e&&console!==void 0){var n=Ev.reduce(function(r,i){return i(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function zR(){wv={}}function Ow(e,t,n){!t&&!wv[n]&&(e(!1,n),wv[n]=!0)}function Qt(e,t){Ow(Go,e,t)}function HR(e,t){Ow(UR,e,t)}Qt.preMessage=qR,Qt.resetWarned=zR,Qt.noteOnce=HR;function BR(e,t){if(Qe(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qe(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kw(e){var t=BR(e,"string");return Qe(t)=="symbol"?t:t+""}function re(e,t,n){return(t=kw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function de(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rw(Object(n),!0).forEach(function(r){re(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wu(e){return e instanceof HTMLElement||e instanceof SVGElement}function WR(e){return e&&Qe(e)==="object"&&wu(e.nativeElement)?e.nativeElement:wu(e)?e:null}function bc(e){var t=WR(e);if(t)return t;if(e instanceof M.Component){var n;return(n=_i.findDOMNode)===null||n===void 0?void 0:n.call(_i,e)}return null}var Sv={exports:{}},St={},Aw;function GR(){if(Aw)return St;Aw=1;/**
192
192
  * @license React
193
193
  * react-is.development.js
194
194
  *
@@ -196,13 +196,13 @@ Valid keys: `+JSON.stringify(Object.keys($),null," "));var W=ne(ve,we,te,fe,le+
196
196
  *
197
197
  * This source code is licensed under the MIT license found in the
198
198
  * LICENSE file in the root directory of this source tree.
199
- */return function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),y=!1,g=!1,b=!1,w=!1,S=!1,C;C=Symbol.for("react.module.reference");function T(ue){return!!(typeof ue=="string"||typeof ue=="function"||ue===n||ue===i||S||ue===r||ue===f||ue===d||w||ue===m||y||g||b||typeof ue=="object"&&ue!==null&&(ue.$$typeof===p||ue.$$typeof===h||ue.$$typeof===a||ue.$$typeof===o||ue.$$typeof===l||ue.$$typeof===C||ue.getModuleId!==void 0))}function _(ue){if(typeof ue=="object"&&ue!==null){var Te=ue.$$typeof;switch(Te){case e:var Re=ue.type;switch(Re){case n:case i:case r:case f:case d:return Re;default:var Ze=Re&&Re.$$typeof;switch(Ze){case u:case o:case l:case p:case h:case a:return Ze;default:return Te}}case t:return Te}}}var x=o,k=a,A=e,L=l,N=n,F=p,H=h,V=t,D=i,j=r,z=f,Y=d,q=!1,J=!1;function $(ue){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function K(ue){return J||(J=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ae(ue){return _(ue)===o}function ie(ue){return _(ue)===a}function te(ue){return typeof ue=="object"&&ue!==null&&ue.$$typeof===e}function fe(ue){return _(ue)===l}function le(ue){return _(ue)===n}function ve(ue){return _(ue)===p}function _e(ue){return _(ue)===h}function be(ue){return _(ue)===t}function we(ue){return _(ue)===i}function ne(ue){return _(ue)===r}function W(ue){return _(ue)===f}function ye(ue){return _(ue)===d}Ct.ContextConsumer=x,Ct.ContextProvider=k,Ct.Element=A,Ct.ForwardRef=L,Ct.Fragment=N,Ct.Lazy=F,Ct.Memo=H,Ct.Portal=V,Ct.Profiler=D,Ct.StrictMode=j,Ct.Suspense=z,Ct.SuspenseList=Y,Ct.isAsyncMode=$,Ct.isConcurrentMode=K,Ct.isContextConsumer=ae,Ct.isContextProvider=ie,Ct.isElement=te,Ct.isForwardRef=fe,Ct.isFragment=le,Ct.isLazy=ve,Ct.isMemo=_e,Ct.isPortal=be,Ct.isProfiler=we,Ct.isStrictMode=ne,Ct.isSuspense=W,Ct.isSuspenseList=ye,Ct.isValidElementType=T,Ct.typeOf=_}(),Ct}var Pw;function QR(){return Pw||(Pw=1,Sv.exports=GR()),Sv.exports}var xv=QR();function YR(e,t,n){var r=Q.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var KR=Number(M.version.split(".")[0]),Cv=function(t,n){typeof t=="function"?t(n):Qe(t)==="object"&&t&&"current"in t&&(t.current=n)},Nw=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.filter(Boolean);return i.length<=1?i[0]:function(a){n.forEach(function(o){Cv(o,a)})}},Tv=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return YR(function(){return Nw.apply(void 0,n)},n,function(i,a){return i.length!==a.length||i.every(function(o,u){return o!==a[u]})})},_c=function(t){var n,r;if(!t)return!1;if(Iw(t)&&KR>=19)return!0;var i=xv.isMemo(t)?t.type.type:t.type;return!(typeof i=="function"&&!((n=i.prototype)!==null&&n!==void 0&&n.render)&&i.$$typeof!==xv.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==xv.ForwardRef)};function Iw(e){return M.isValidElement(e)&&!Tw(e)}var Ov=function(t){if(t&&Iw(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},kv=Q.createContext(null);function XR(e){var t=e.children,n=e.onBatchResize,r=Q.useRef(0),i=Q.useRef([]),a=Q.useContext(kv),o=Q.useCallback(function(u,l,f){r.current+=1;var d=r.current;i.current.push({size:u,element:l,data:f}),Promise.resolve().then(function(){d===r.current&&(n==null||n(i.current),i.current=[])}),a==null||a(u,l,f)},[n,a]);return Q.createElement(kv.Provider,{value:o},t)}var Lw=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,a){return i[0]===n?(r=a,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,a=this.__entries__;i<a.length;i++){var o=a[i];n.call(r,o[1],o[0])}},t}()}(),Rv=typeof window<"u"&&typeof document<"u"&&window.document===document,wc=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),ZR=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(wc):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),JR=2;function eA(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&u()}function o(){ZR(a)}function u(){var l=Date.now();if(n){if(l-i<JR)return;r=!0}else n=!0,r=!1,setTimeout(o,t);i=l}return u}var tA=20,nA=["top","right","bottom","left","width","height","size","weight"],rA=typeof MutationObserver<"u",iA=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=eA(this.refresh.bind(this),tA)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Rv||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),rA?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Rv||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=nA.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Fw=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},Qo=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||wc},Dw=Sc(0,0,0,0);function Ec(e){return parseFloat(e)||0}function Mw(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,i){var a=e["border-"+i+"-width"];return r+Ec(a)},0)}function aA(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var a=i[r],o=e["padding-"+a];n[a]=Ec(o)}return n}function oA(e){var t=e.getBBox();return Sc(0,0,t.width,t.height)}function sA(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Dw;var r=Qo(e).getComputedStyle(e),i=aA(r),a=i.left+i.right,o=i.top+i.bottom,u=Ec(r.width),l=Ec(r.height);if(r.boxSizing==="border-box"&&(Math.round(u+a)!==t&&(u-=Mw(r,"left","right")+a),Math.round(l+o)!==n&&(l-=Mw(r,"top","bottom")+o)),!lA(e)){var f=Math.round(u+a)-t,d=Math.round(l+o)-n;Math.abs(f)!==1&&(u-=f),Math.abs(d)!==1&&(l-=d)}return Sc(i.left,i.top,u,l)}var uA=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Qo(e).SVGGraphicsElement}:function(e){return e instanceof Qo(e).SVGElement&&typeof e.getBBox=="function"}}();function lA(e){return e===Qo(e).document.documentElement}function cA(e){return Rv?uA(e)?oA(e):sA(e):Dw}function fA(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,o=Object.create(a.prototype);return Fw(o,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),o}function Sc(e,t,n,r){return{x:e,y:t,width:n,height:r}}var dA=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Sc(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=cA(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),hA=function(){function e(t,n){var r=fA(n);Fw(this,{target:t,contentRect:r})}return e}(),pA=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new Lw,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Qo(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new dA(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Qo(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new hA(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),jw=typeof WeakMap<"u"?new WeakMap:new Lw,$w=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=iA.getInstance(),r=new pA(t,n,this);jw.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){$w.prototype[e]=function(){var t;return(t=jw.get(this))[e].apply(t,arguments)}});var vA=function(){return typeof wc.ResizeObserver<"u"?wc.ResizeObserver:$w}(),ta=new Map;function mA(e){e.forEach(function(t){var n,r=t.target;(n=ta.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var Vw=new vA(mA);function gA(e,t){ta.has(e)||(ta.set(e,new Set),Vw.observe(e)),ta.get(e).add(t)}function yA(e,t){ta.has(e)&&(ta.get(e).delete(t),ta.get(e).size||(Vw.unobserve(e),ta.delete(e)))}function An(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kw(r.key),r)}}function Pn(e,t,n){return t&&qw(e.prototype,t),n&&qw(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Eu(e,t){return Eu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Eu(e,t)}function $a(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Eu(e,t)}function Su(e){return Su=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Su(e)}function Av(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Av=function(){return!!e})()}function nt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bA(e,t){if(t&&(Qe(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nt(e)}function Va(e){var t=Av();return function(){var n,r=Su(e);if(t){var i=Su(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return bA(this,n)}}var _A=function(e){$a(n,e);var t=Va(n);function n(){return An(this,n),t.apply(this,arguments)}return Pn(n,[{key:"render",value:function(){return this.props.children}}]),n}(Q.Component);function wA(e,t){var n=e.children,r=e.disabled,i=Q.useRef(null),a=Q.useRef(null),o=Q.useContext(kv),u=typeof n=="function",l=u?n(i):n,f=Q.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!u&&Q.isValidElement(l)&&_c(l),h=d?Ov(l):null,p=Tv(h,i),m=function(){var w;return bc(i.current)||(i.current&&Qe(i.current)==="object"?bc((w=i.current)===null||w===void 0?void 0:w.nativeElement):null)||bc(a.current)};Q.useImperativeHandle(t,function(){return m()});var y=Q.useRef(e);y.current=e;var g=Q.useCallback(function(b){var w=y.current,S=w.onResize,C=w.data,T=b.getBoundingClientRect(),_=T.width,x=T.height,k=b.offsetWidth,A=b.offsetHeight,L=Math.floor(_),N=Math.floor(x);if(f.current.width!==L||f.current.height!==N||f.current.offsetWidth!==k||f.current.offsetHeight!==A){var F={width:L,height:N,offsetWidth:k,offsetHeight:A};f.current=F;var H=k===Math.round(_)?_:k,V=A===Math.round(x)?x:A,D=de(de({},F),{},{offsetWidth:H,offsetHeight:V});o==null||o(D,b,C),S&&Promise.resolve().then(function(){S(D,b)})}},[]);return Q.useEffect(function(){var b=m();return b&&!r&&gA(b,g),function(){return yA(b,g)}},[i.current,r]),Q.createElement(_A,{ref:a},d?Q.cloneElement(l,{ref:p}):l)}var Uw=Q.forwardRef(wA);Uw.displayName="SingleObserver";var EA="rc-observer-key";function SA(e,t){var n=e.children,r=typeof n=="function"?[n]:yc(n);return r.length>1?Go(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&Go(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),r.map(function(i,a){var o=(i==null?void 0:i.key)||"".concat(EA,"-").concat(a);return Q.createElement(Uw,ii({},e,{key:o,ref:a===0?t:void 0}),i)})}var xc=Q.forwardRef(SA);xc.displayName="ResizeObserver",xc.Collection=XR;function Pv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xA(e){if(Array.isArray(e))return Pv(e)}function zw(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Nv(e,t){if(e){if(typeof e=="string")return Pv(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pv(e,t):void 0}}function CA(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
199
+ */return function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),y=!1,g=!1,b=!1,w=!1,S=!1,C;C=Symbol.for("react.module.reference");function T(ue){return!!(typeof ue=="string"||typeof ue=="function"||ue===n||ue===i||S||ue===r||ue===f||ue===d||w||ue===m||y||g||b||typeof ue=="object"&&ue!==null&&(ue.$$typeof===p||ue.$$typeof===h||ue.$$typeof===a||ue.$$typeof===o||ue.$$typeof===l||ue.$$typeof===C||ue.getModuleId!==void 0))}function _(ue){if(typeof ue=="object"&&ue!==null){var Te=ue.$$typeof;switch(Te){case e:var Ie=ue.type;switch(Ie){case n:case i:case r:case f:case d:return Ie;default:var Je=Ie&&Ie.$$typeof;switch(Je){case u:case o:case l:case p:case h:case a:return Je;default:return Te}}case t:return Te}}}var x=o,k=a,A=e,L=l,N=n,F=p,H=h,V=t,D=i,j=r,z=f,Q=d,q=!1,J=!1;function $(ue){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Y(ue){return J||(J=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ae(ue){return _(ue)===o}function ie(ue){return _(ue)===a}function te(ue){return typeof ue=="object"&&ue!==null&&ue.$$typeof===e}function fe(ue){return _(ue)===l}function le(ue){return _(ue)===n}function me(ue){return _(ue)===p}function _e(ue){return _(ue)===h}function be(ue){return _(ue)===t}function ne(ue){return _(ue)===i}function ve(ue){return _(ue)===r}function K(ue){return _(ue)===f}function we(ue){return _(ue)===d}St.ContextConsumer=x,St.ContextProvider=k,St.Element=A,St.ForwardRef=L,St.Fragment=N,St.Lazy=F,St.Memo=H,St.Portal=V,St.Profiler=D,St.StrictMode=j,St.Suspense=z,St.SuspenseList=Q,St.isAsyncMode=$,St.isConcurrentMode=Y,St.isContextConsumer=ae,St.isContextProvider=ie,St.isElement=te,St.isForwardRef=fe,St.isFragment=le,St.isLazy=me,St.isMemo=_e,St.isPortal=be,St.isProfiler=ne,St.isStrictMode=ve,St.isSuspense=K,St.isSuspenseList=we,St.isValidElementType=T,St.typeOf=_}(),St}var Pw;function QR(){return Pw||(Pw=1,Sv.exports=GR()),Sv.exports}var xv=QR();function YR(e,t,n){var r=G.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var KR=Number(M.version.split(".")[0]),Cv=function(t,n){typeof t=="function"?t(n):Qe(t)==="object"&&t&&"current"in t&&(t.current=n)},Nw=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.filter(Boolean);return i.length<=1?i[0]:function(a){n.forEach(function(o){Cv(o,a)})}},Tv=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return YR(function(){return Nw.apply(void 0,n)},n,function(i,a){return i.length!==a.length||i.every(function(o,u){return o!==a[u]})})},_c=function(t){var n,r;if(!t)return!1;if(Iw(t)&&KR>=19)return!0;var i=xv.isMemo(t)?t.type.type:t.type;return!(typeof i=="function"&&!((n=i.prototype)!==null&&n!==void 0&&n.render)&&i.$$typeof!==xv.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==xv.ForwardRef)};function Iw(e){return M.isValidElement(e)&&!Tw(e)}var Ov=function(t){if(t&&Iw(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},kv=G.createContext(null);function XR(e){var t=e.children,n=e.onBatchResize,r=G.useRef(0),i=G.useRef([]),a=G.useContext(kv),o=G.useCallback(function(u,l,f){r.current+=1;var d=r.current;i.current.push({size:u,element:l,data:f}),Promise.resolve().then(function(){d===r.current&&(n==null||n(i.current),i.current=[])}),a==null||a(u,l,f)},[n,a]);return G.createElement(kv.Provider,{value:o},t)}var Lw=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,a){return i[0]===n?(r=a,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,a=this.__entries__;i<a.length;i++){var o=a[i];n.call(r,o[1],o[0])}},t}()}(),Rv=typeof window<"u"&&typeof document<"u"&&window.document===document,wc=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),ZR=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(wc):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),JR=2;function eA(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&u()}function o(){ZR(a)}function u(){var l=Date.now();if(n){if(l-i<JR)return;r=!0}else n=!0,r=!1,setTimeout(o,t);i=l}return u}var tA=20,nA=["top","right","bottom","left","width","height","size","weight"],rA=typeof MutationObserver<"u",iA=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=eA(this.refresh.bind(this),tA)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Rv||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),rA?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Rv||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=nA.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Fw=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},Qo=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||wc},Dw=Sc(0,0,0,0);function Ec(e){return parseFloat(e)||0}function Mw(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,i){var a=e["border-"+i+"-width"];return r+Ec(a)},0)}function aA(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var a=i[r],o=e["padding-"+a];n[a]=Ec(o)}return n}function oA(e){var t=e.getBBox();return Sc(0,0,t.width,t.height)}function sA(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Dw;var r=Qo(e).getComputedStyle(e),i=aA(r),a=i.left+i.right,o=i.top+i.bottom,u=Ec(r.width),l=Ec(r.height);if(r.boxSizing==="border-box"&&(Math.round(u+a)!==t&&(u-=Mw(r,"left","right")+a),Math.round(l+o)!==n&&(l-=Mw(r,"top","bottom")+o)),!lA(e)){var f=Math.round(u+a)-t,d=Math.round(l+o)-n;Math.abs(f)!==1&&(u-=f),Math.abs(d)!==1&&(l-=d)}return Sc(i.left,i.top,u,l)}var uA=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Qo(e).SVGGraphicsElement}:function(e){return e instanceof Qo(e).SVGElement&&typeof e.getBBox=="function"}}();function lA(e){return e===Qo(e).document.documentElement}function cA(e){return Rv?uA(e)?oA(e):sA(e):Dw}function fA(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,o=Object.create(a.prototype);return Fw(o,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),o}function Sc(e,t,n,r){return{x:e,y:t,width:n,height:r}}var dA=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Sc(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=cA(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),hA=function(){function e(t,n){var r=fA(n);Fw(this,{target:t,contentRect:r})}return e}(),pA=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new Lw,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Qo(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new dA(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Qo(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new hA(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),jw=typeof WeakMap<"u"?new WeakMap:new Lw,$w=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=iA.getInstance(),r=new pA(t,n,this);jw.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){$w.prototype[e]=function(){var t;return(t=jw.get(this))[e].apply(t,arguments)}});var vA=function(){return typeof wc.ResizeObserver<"u"?wc.ResizeObserver:$w}(),ta=new Map;function mA(e){e.forEach(function(t){var n,r=t.target;(n=ta.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var Vw=new vA(mA);function gA(e,t){ta.has(e)||(ta.set(e,new Set),Vw.observe(e)),ta.get(e).add(t)}function yA(e,t){ta.has(e)&&(ta.get(e).delete(t),ta.get(e).size||(Vw.unobserve(e),ta.delete(e)))}function An(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kw(r.key),r)}}function Pn(e,t,n){return t&&qw(e.prototype,t),n&&qw(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Eu(e,t){return Eu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Eu(e,t)}function $a(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Eu(e,t)}function Su(e){return Su=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Su(e)}function Av(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Av=function(){return!!e})()}function nt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bA(e,t){if(t&&(Qe(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nt(e)}function Va(e){var t=Av();return function(){var n,r=Su(e);if(t){var i=Su(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return bA(this,n)}}var _A=function(e){$a(n,e);var t=Va(n);function n(){return An(this,n),t.apply(this,arguments)}return Pn(n,[{key:"render",value:function(){return this.props.children}}]),n}(G.Component);function wA(e,t){var n=e.children,r=e.disabled,i=G.useRef(null),a=G.useRef(null),o=G.useContext(kv),u=typeof n=="function",l=u?n(i):n,f=G.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!u&&G.isValidElement(l)&&_c(l),h=d?Ov(l):null,p=Tv(h,i),m=function(){var w;return bc(i.current)||(i.current&&Qe(i.current)==="object"?bc((w=i.current)===null||w===void 0?void 0:w.nativeElement):null)||bc(a.current)};G.useImperativeHandle(t,function(){return m()});var y=G.useRef(e);y.current=e;var g=G.useCallback(function(b){var w=y.current,S=w.onResize,C=w.data,T=b.getBoundingClientRect(),_=T.width,x=T.height,k=b.offsetWidth,A=b.offsetHeight,L=Math.floor(_),N=Math.floor(x);if(f.current.width!==L||f.current.height!==N||f.current.offsetWidth!==k||f.current.offsetHeight!==A){var F={width:L,height:N,offsetWidth:k,offsetHeight:A};f.current=F;var H=k===Math.round(_)?_:k,V=A===Math.round(x)?x:A,D=de(de({},F),{},{offsetWidth:H,offsetHeight:V});o==null||o(D,b,C),S&&Promise.resolve().then(function(){S(D,b)})}},[]);return G.useEffect(function(){var b=m();return b&&!r&&gA(b,g),function(){return yA(b,g)}},[i.current,r]),G.createElement(_A,{ref:a},d?G.cloneElement(l,{ref:p}):l)}var Uw=G.forwardRef(wA);Uw.displayName="SingleObserver";var EA="rc-observer-key";function SA(e,t){var n=e.children,r=typeof n=="function"?[n]:yc(n);return r.length>1?Go(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&Go(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),r.map(function(i,a){var o=(i==null?void 0:i.key)||"".concat(EA,"-").concat(a);return G.createElement(Uw,ii({},e,{key:o,ref:a===0?t:void 0}),i)})}var xc=G.forwardRef(SA);xc.displayName="ResizeObserver",xc.Collection=XR;function Pv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xA(e){if(Array.isArray(e))return Pv(e)}function zw(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Nv(e,t){if(e){if(typeof e=="string")return Pv(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pv(e,t):void 0}}function CA(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
200
200
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function De(e){return xA(e)||zw(e)||Nv(e)||CA()}var Hw=function(t){return+setTimeout(t,16)},Bw=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Hw=function(t){return window.requestAnimationFrame(t)},Bw=function(t){return window.cancelAnimationFrame(t)});var Ww=0,Cc=new Map;function Gw(e){Cc.delete(e)}var Tc=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ww+=1;var r=Ww;function i(a){if(a===0)Gw(r),t();else{var o=Hw(function(){i(a-1)});Cc.set(r,o)}}return i(n),r};Tc.cancel=function(e){var t=Cc.get(e);return Gw(e),Bw(t)},Tc.ids=function(){return Cc};function Qw(e){if(Array.isArray(e))return e}function TA(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,u=[],l=!0,f=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);l=!0);}catch(d){f=!0,i=d}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(f)throw i}}return u}}function Yw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
201
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ke(e,t){return Qw(e)||TA(e,t)||Nv(e,t)||Yw()}function xu(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function ar(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function OA(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var Kw="data-rc-order",Xw="data-rc-priority",kA="rc-util-key",Iv=new Map;function Zw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):kA}function Oc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function RA(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Lv(e){return Array.from((Iv.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Jw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ar())return null;var n=t.csp,r=t.prepend,i=t.priority,a=i===void 0?0:i,o=RA(r),u=o==="prependQueue",l=document.createElement("style");l.setAttribute(Kw,o),u&&a&&l.setAttribute(Xw,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var f=Oc(t),d=f.firstChild;if(r){if(u){var h=(t.styles||Lv(f)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(Kw)))return!1;var m=Number(p.getAttribute(Xw)||0);return a>=m});if(h.length)return f.insertBefore(l,h[h.length-1].nextSibling),l}f.insertBefore(l,d)}else f.appendChild(l);return l}function eE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Oc(t);return(t.styles||Lv(n)).find(function(r){return r.getAttribute(Zw(t))===e})}function Cu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=eE(e,t);if(n){var r=Oc(t);r.removeChild(n)}}function AA(e,t){var n=Iv.get(e);if(!n||!OA(document,n)){var r=Jw("",t),i=r.parentNode;Iv.set(e,i),e.removeChild(r)}}function qa(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Oc(n),i=Lv(r),a=de(de({},n),{},{styles:i});AA(r,a);var o=eE(t,a);if(o){var u,l;if((u=a.csp)!==null&&u!==void 0&&u.nonce&&o.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var f;o.nonce=(f=a.csp)===null||f===void 0?void 0:f.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var d=Jw(e,a);return d.setAttribute(Zw(a),t),d}function PA(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ua(e,t){if(e==null)return{};var n,r,i=PA(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function tE(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(a,o){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if(Qt(!l,"Warning: There may be circular references"),l)return!1;if(a===o)return!0;if(n&&u>1)return!1;r.add(a);var f=u+1;if(Array.isArray(a)){if(!Array.isArray(o)||a.length!==o.length)return!1;for(var d=0;d<a.length;d++)if(!i(a[d],o[d],f))return!1;return!0}if(a&&o&&Qe(a)==="object"&&Qe(o)==="object"){var h=Object.keys(a);return h.length!==Object.keys(o).length?!1:h.every(function(p){return i(a[p],o[p],f)})}return!1}return i(e,t)}var NA="%";function Fv(e){return e.join(NA)}var IA=function(){function e(t){An(this,e),re(this,"instanceId",void 0),re(this,"cache",new Map),this.instanceId=t}return Pn(e,[{key:"get",value:function(n){return this.opGet(Fv(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Fv(n),r)}},{key:"opUpdate",value:function(n,r){var i=this.cache.get(n),a=r(i);a===null?this.cache.delete(n):this.cache.set(n,a)}}]),e}(),Yo="data-token-hash",Br="data-css-hash",LA="data-cache-path",na="__cssinjs_instance__";function FA(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Br,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(i){i[na]=i[na]||e,i[na]===e&&document.head.insertBefore(i,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Br,"]"))).forEach(function(i){var a=i.getAttribute(Br);if(r[a]){if(i[na]===e){var o;(o=i.parentNode)===null||o===void 0||o.removeChild(i)}}else r[a]=!0})}return new IA(e)}var kc=Q.createContext({hashPriority:"low",cache:FA(),defaultCache:!0});function DA(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Dv=function(){function e(){An(this,e),re(this,"cache",void 0),re(this,"keys",void 0),re(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Pn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return n.forEach(function(u){if(!o)o=void 0;else{var l;o=(l=o)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(u)}}),(r=o)!==null&&r!==void 0&&r.value&&a&&(o.value[1]=this.cacheCallTimes++),(i=o)===null||i===void 0?void 0:i.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var i=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(f,d){var h=ke(f,2),p=h[1];return i.internalGet(d)[1]<p?[d,i.internalGet(d)[1]]:f},[this.keys[0],this.cacheCallTimes]),o=ke(a,1),u=o[0];this.delete(u)}this.keys.push(n)}var l=this.cache;n.forEach(function(f,d){if(d===n.length-1)l.set(f,{value:[r,i.cacheCallTimes++]});else{var h=l.get(f);h?h.map||(h.map=new Map):l.set(f,{map:new Map}),l=l.get(f).map}})}},{key:"deleteByPath",value:function(n,r){var i=n.get(r[0]);if(r.length===1){var a;return i.map?n.set(r[0],{map:i.map}):n.delete(r[0]),(a=i.value)===null||a===void 0?void 0:a[0]}var o=this.deleteByPath(i.map,r.slice(1));return(!i.map||i.map.size===0)&&!i.value&&n.delete(r[0]),o}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!DA(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();re(Dv,"MAX_CACHE_SIZE",20),re(Dv,"MAX_CACHE_OFFSET",5);var nE=0,rE=function(){function e(t){An(this,e),re(this,"derivatives",void 0),re(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=nE,t.length===0&&Go(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),nE+=1}return Pn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e}(),Mv=new Dv;function MA(e){var t=Array.isArray(e)?e:[e];return Mv.has(t)||Mv.set(t,new rE(t)),Mv.get(t)}var jA=new WeakMap,jv={};function $A(e,t){for(var n=jA,r=0;r<t.length;r+=1){var i=t[r];n.has(i)||n.set(i,new WeakMap),n=n.get(i)}return n.has(jv)||n.set(jv,e()),n.get(jv)}var iE=new WeakMap;function Tu(e){var t=iE.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof rE?t+=r.id:r&&Qe(r)==="object"?t+=Tu(r):t+=r}),t=xu(t),iE.set(e,t)),t}function aE(e,t){return xu("".concat(t,"_").concat(Tu(e)))}var $v=ar();function za(e){return typeof e=="number"?"".concat(e,"px"):e}function Rc(e,t,n){var r,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var o=de(de({},i),{},(r={},re(r,Yo,t),re(r,Br,n),r)),u=Object.keys(o).map(function(l){var f=o[l];return f?"".concat(l,'="').concat(f,'"'):null}).filter(function(l){return l}).join(" ");return"<style ".concat(u,">").concat(e,"</style>")}var Ac=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},VA=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(i){var a=ke(i,2),o=a[0],u=a[1];return"".concat(o,":").concat(u,";")}).join(""),"}"):""},oE=function(t,n,r){var i={},a={};return Object.entries(t).forEach(function(o){var u,l,f=ke(o,2),d=f[0],h=f[1];if(r!=null&&(u=r.preserve)!==null&&u!==void 0&&u[d])a[d]=h;else if((typeof h=="string"||typeof h=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[d])){var p,m=Ac(d,r==null?void 0:r.prefix);i[m]=typeof h=="number"&&!(r!=null&&(p=r.unitless)!==null&&p!==void 0&&p[d])?"".concat(h,"px"):String(h),a[d]="var(".concat(m,")")}}),[a,VA(i,n,{scope:r==null?void 0:r.scope})]},sE=ar()?Q.useLayoutEffect:Q.useEffect,jn=function(t,n){var r=Q.useRef(!0);sE(function(){return t(r.current)},n),sE(function(){return r.current=!1,function(){r.current=!0}},[])},uE=function(t,n){jn(function(r){if(!r)return t()},n)},qA=de({},Q),lE=qA.useInsertionEffect,UA=function(t,n,r){Q.useMemo(t,r),jn(function(){return n(!0)},r)},zA=lE?function(e,t,n){return lE(function(){return e(),t()},n)}:UA,HA=de({},Q),BA=HA.useInsertionEffect,WA=function(t){var n=[],r=!1;function i(a){if(r){Go(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}n.push(a)}return Q.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),i},GA=function(){return function(t){t()}},QA=typeof BA<"u"?WA:GA,Vv=!1;function YA(){return Vv}const KA=YA;if(typeof module<"u"&&module&&module.hot&&typeof window<"u"){var Pc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(Pc&&typeof Pc.webpackHotUpdate=="function"){var XA=Pc.webpackHotUpdate;Pc.webpackHotUpdate=function(){return Vv=!0,setTimeout(function(){Vv=!1},0),XA.apply(void 0,arguments)}}}function qv(e,t,n,r,i){var a=Q.useContext(kc),o=a.cache,u=[e].concat(De(t)),l=Fv(u),f=QA([l]),d=KA(),h=function(g){o.opUpdate(l,function(b){var w=b||[void 0,void 0],S=ke(w,2),C=S[0],T=C===void 0?0:C,_=S[1],x=_;_&&d&&(r==null||r(x,d),x=null);var k=x||n(),A=[T,k];return g?g(A):A})};Q.useMemo(function(){h()},[l]);var p=o.opGet(l);p||(h(),p=o.opGet(l));var m=p[1];return zA(function(){i==null||i(m)},function(y){return h(function(g){var b=ke(g,2),w=b[0],S=b[1];return y&&w===0&&(i==null||i(m)),[w+1,S]}),function(){o.opUpdate(l,function(g){var b=g||[],w=ke(b,2),S=w[0],C=S===void 0?0:S,T=w[1],_=C-1;return _===0?(f(function(){(y||!o.opGet(l))&&(r==null||r(T,!1))}),null):[C-1,T]})}},[l]),m}var ZA={},JA="css-dev-only-do-not-override",Ha=new Map;function eP(e){Ha.set(e,(Ha.get(e)||0)+1)}function tP(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Yo,'="').concat(e,'"]'));n.forEach(function(r){if(r[na]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var nP=0;function rP(e,t){Ha.set(e,(Ha.get(e)||0)-1);var n=Array.from(Ha.keys()),r=n.filter(function(i){var a=Ha.get(i)||0;return a<=0});n.length-r.length>nP&&r.forEach(function(i){tP(i,t),Ha.delete(i)})}var iP=function(t,n,r,i){var a=r.getDerivativeToken(t),o=de(de({},a),n);return i&&(o=i(o)),o},cE="token";function aP(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=M.useContext(kc),i=r.cache.instanceId,a=r.container,o=n.salt,u=o===void 0?"":o,l=n.override,f=l===void 0?ZA:l,d=n.formatToken,h=n.getComputedToken,p=n.cssVar,m=$A(function(){return Object.assign.apply(Object,[{}].concat(De(t)))},t),y=Tu(m),g=Tu(f),b=p?Tu(p):"",w=qv(cE,[u,e.id,y,g,b],function(){var S,C=h?h(m,f,e):iP(m,f,e,d),T=de({},C),_="";if(p){var x=oE(C,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),k=ke(x,2);C=k[0],_=k[1]}var A=aE(C,u);C._tokenKey=A,T._tokenKey=aE(T,u);var L=(S=p==null?void 0:p.key)!==null&&S!==void 0?S:A;C._themeKey=L,eP(L);var N="".concat(JA,"-").concat(xu(A));return C._hashId=N,[C,N,T,_,(p==null?void 0:p.key)||""]},function(S){rP(S[0]._themeKey,i)},function(S){var C=ke(S,4),T=C[0],_=C[3];if(p&&_){var x=qa(_,xu("css-variables-".concat(T._themeKey)),{mark:Br,prepend:"queue",attachTo:a,priority:-999});x[na]=i,x.setAttribute(Yo,T._themeKey)}});return w}var oP=function(t,n,r){var i=ke(t,5),a=i[2],o=i[3],u=i[4],l=r||{},f=l.plain;if(!o)return null;var d=a._tokenKey,h=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(h)},m=Rc(o,u,d,p,f);return[h,d,m]},sP={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},fE="comm",dE="rule",hE="decl",uP="@import",lP="@namespace",cP="@keyframes",fP="@layer",pE=Math.abs,Uv=String.fromCharCode;function vE(e){return e.trim()}function Nc(e,t,n){return e.replace(t,n)}function dP(e,t,n){return e.indexOf(t,n)}function Ko(e,t){return e.charCodeAt(t)|0}function Xo(e,t,n){return e.slice(t,n)}function ai(e){return e.length}function hP(e){return e.length}function Ic(e,t){return t.push(e),e}var Lc=1,Zo=1,mE=0,Er=0,sn=0,Jo="";function zv(e,t,n,r,i,a,o,u){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Lc,column:Zo,length:o,return:"",siblings:u}}function pP(){return sn}function vP(){return sn=Er>0?Ko(Jo,--Er):0,Zo--,sn===10&&(Zo=1,Lc--),sn}function Wr(){return sn=Er<mE?Ko(Jo,Er++):0,Zo++,sn===10&&(Zo=1,Lc++),sn}function ra(){return Ko(Jo,Er)}function Fc(){return Er}function Dc(e,t){return Xo(Jo,e,t)}function Ou(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function mP(e){return Lc=Zo=1,mE=ai(Jo=e),Er=0,[]}function gP(e){return Jo="",e}function Hv(e){return vE(Dc(Er-1,Bv(e===91?e+2:e===40?e+1:e)))}function yP(e){for(;(sn=ra())&&sn<33;)Wr();return Ou(e)>2||Ou(sn)>3?"":" "}function bP(e,t){for(;--t&&Wr()&&!(sn<48||sn>102||sn>57&&sn<65||sn>70&&sn<97););return Dc(e,Fc()+(t<6&&ra()==32&&Wr()==32))}function Bv(e){for(;Wr();)switch(sn){case e:return Er;case 34:case 39:e!==34&&e!==39&&Bv(sn);break;case 40:e===41&&Bv(e);break;case 92:Wr();break}return Er}function _P(e,t){for(;Wr()&&e+sn!==57;)if(e+sn===84&&ra()===47)break;return"/*"+Dc(t,Er-1)+"*"+Uv(e===47?e:Wr())}function wP(e){for(;!Ou(ra());)Wr();return Dc(e,Er)}function EP(e){return gP(Mc("",null,null,null,[""],e=mP(e),0,[0],e))}function Mc(e,t,n,r,i,a,o,u,l){for(var f=0,d=0,h=o,p=0,m=0,y=0,g=1,b=1,w=1,S=0,C="",T=i,_=a,x=r,k=C;b;)switch(y=S,S=Wr()){case 40:if(y!=108&&Ko(k,h-1)==58){dP(k+=Nc(Hv(S),"&","&\f"),"&\f",pE(f?u[f-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:k+=Hv(S);break;case 9:case 10:case 13:case 32:k+=yP(y);break;case 92:k+=bP(Fc()-1,7);continue;case 47:switch(ra()){case 42:case 47:Ic(SP(_P(Wr(),Fc()),t,n,l),l),(Ou(y||1)==5||Ou(ra()||1)==5)&&ai(k)&&Xo(k,-1,void 0)!==" "&&(k+=" ");break;default:k+="/"}break;case 123*g:u[f++]=ai(k)*w;case 125*g:case 59:case 0:switch(S){case 0:case 125:b=0;case 59+d:w==-1&&(k=Nc(k,/\f/g,"")),m>0&&(ai(k)-h||g===0&&y===47)&&Ic(m>32?yE(k+";",r,n,h-1,l):yE(Nc(k," ","")+";",r,n,h-2,l),l);break;case 59:k+=";";default:if(Ic(x=gE(k,t,n,f,d,i,u,C,T=[],_=[],h,a),a),S===123)if(d===0)Mc(k,t,x,x,T,a,h,u,_);else{switch(p){case 99:if(Ko(k,3)===110)break;case 108:if(Ko(k,2)===97)break;default:d=0;case 100:case 109:case 115:}d?Mc(e,x,x,r&&Ic(gE(e,x,x,0,0,i,u,C,i,T=[],h,_),_),i,_,h,u,r?T:_):Mc(k,x,x,x,[""],_,0,u,_)}}f=d=m=0,g=w=1,C=k="",h=o;break;case 58:h=1+ai(k),m=y;default:if(g<1){if(S==123)--g;else if(S==125&&g++==0&&vP()==125)continue}switch(k+=Uv(S),S*g){case 38:w=d>0?1:(k+="\f",-1);break;case 44:u[f++]=(ai(k)-1)*w,w=1;break;case 64:ra()===45&&(k+=Hv(Wr())),p=ra(),d=h=ai(C=k+=wP(Fc())),S++;break;case 45:y===45&&ai(k)==2&&(g=0)}}return a}function gE(e,t,n,r,i,a,o,u,l,f,d,h){for(var p=i-1,m=i===0?a:[""],y=hP(m),g=0,b=0,w=0;g<r;++g)for(var S=0,C=Xo(e,p+1,p=pE(b=o[g])),T=e;S<y;++S)(T=vE(b>0?m[S]+" "+C:Nc(C,/&\f/g,m[S])))&&(l[w++]=T);return zv(e,t,n,i===0?dE:u,l,f,d,h)}function SP(e,t,n,r){return zv(e,t,n,fE,Uv(pP()),Xo(e,2,-2),0,r)}function yE(e,t,n,r,i){return zv(e,t,n,hE,Xo(e,0,r),Xo(e,r+1,-1),r,i)}function Wv(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function xP(e,t,n,r){switch(e.type){case fP:if(e.children.length)break;case uP:case lP:case hE:return e.return=e.return||e.value;case fE:return"";case cP:return e.return=e.value+"{"+Wv(e.children,r)+"}";case dE:if(!ai(e.value=e.props.join(",")))return""}return ai(n=Wv(e.children,r))?e.return=e.value+"{"+n+"}":""}function bE(e,t){var n=t.path,r=t.parentSelectors;Qt(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var CP=function(t,n,r){if(t==="content"){var i=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,a=["normal","none","initial","inherit","unset"];(typeof n!="string"||a.indexOf(n)===-1&&!i.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'"))&&bE("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),r)}},TP=function(t,n,r){t==="animation"&&r.hashId&&n!=="none"&&bE("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),r)},_E="data-ant-cssinjs-cache-path",wE="_FILE_STYLE__",Ba,EE=!0;function OP(){if(!Ba&&(Ba={},ar())){var e=document.createElement("div");e.className=_E,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(i){var a=i.split(":"),o=ke(a,2),u=o[0],l=o[1];Ba[u]=l});var n=document.querySelector("style[".concat(_E,"]"));if(n){var r;EE=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function kP(e){return OP(),!!Ba[e]}function RP(e){var t=Ba[e],n=null;if(t&&ar())if(EE)n=wE;else{var r=document.querySelector("style[".concat(Br,'="').concat(Ba[e],'"]'));r?n=r.innerHTML:delete Ba[e]}return[n,t]}var SE="_skip_check_",xE="_multi_value_";function jc(e){var t=Wv(EP(e),xP);return t.replace(/\{%%%\:[^;];}/g,";")}function AP(e){return Qe(e)==="object"&&e&&(SE in e||xE in e)}function CE(e,t,n){if(!t)return e;var r=".".concat(t),i=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(o){var u,l=o.trim().split(/\s+/),f=l[0]||"",d=((u=f.match(/^\w+/))===null||u===void 0?void 0:u[0])||"";return f="".concat(d).concat(i).concat(f.slice(d.length)),[f].concat(De(l.slice(1))).join(" ")});return a.join(",")}var PP=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,a=r.injectHash,o=r.parentSelectors,u=n.hashId,l=n.layer,f=n.path,d=n.hashPriority,h=n.transformers,p=h===void 0?[]:h,m=n.linters,y=m===void 0?[]:m,g="",b={};function w(T){var _=T.getName(u);if(!b[_]){var x=e(T.style,n,{root:!1,parentSelectors:o}),k=ke(x,1),A=k[0];b[_]="@keyframes ".concat(T.getName(u)).concat(A)}}function S(T){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return T.forEach(function(x){Array.isArray(x)?S(x,_):x&&_.push(x)}),_}var C=S(Array.isArray(t)?t:[t]);return C.forEach(function(T){var _=typeof T=="string"&&!i?{}:T;if(typeof _=="string")g+="".concat(_,`
202
- `);else if(_._keyframe)w(_);else{var x=p.reduce(function(k,A){var L;return(A==null||(L=A.visit)===null||L===void 0?void 0:L.call(A,k))||k},_);Object.keys(x).forEach(function(k){var A=x[k];if(Qe(A)==="object"&&A&&(k!=="animationName"||!A._keyframe)&&!AP(A)){var L=!1,N=k.trim(),F=!1;(i||a)&&u?N.startsWith("@")?L=!0:N==="&"?N=CE("",u,d):N=CE(k,u,d):i&&!u&&(N==="&"||N==="")&&(N="",F=!0);var H=e(A,n,{root:F,injectHash:L,parentSelectors:[].concat(De(o),[N])}),V=ke(H,2),D=V[0],j=V[1];b=de(de({},b),j),g+="".concat(N).concat(D)}else{let q=function(J,$){(Qe(A)!=="object"||!(A!=null&&A[SE]))&&[CP,TP].concat(De(y)).forEach(function(ie){return ie(J,$,{path:f,hashId:u,parentSelectors:o})});var K=J.replace(/[A-Z]/g,function(ie){return"-".concat(ie.toLowerCase())}),ae=$;!sP[J]&&typeof ae=="number"&&ae!==0&&(ae="".concat(ae,"px")),J==="animationName"&&$!==null&&$!==void 0&&$._keyframe&&(w($),ae=$.getName(u)),g+="".concat(K,":").concat(ae,";")};var z,Y=(z=A==null?void 0:A.value)!==null&&z!==void 0?z:A;Qe(A)==="object"&&A!==null&&A!==void 0&&A[xE]&&Array.isArray(Y)?Y.forEach(function(J){q(k,J)}):q(k,Y)}})}}),i?l&&(g&&(g="@layer ".concat(l.name," {").concat(g,"}")),l.dependencies&&(b["@layer ".concat(l.name)]=l.dependencies.map(function(T){return"@layer ".concat(T,", ").concat(l.name,";")}).join(`
203
- `))):g="{".concat(g,"}"),[g,b]};function TE(e,t){return xu("".concat(e.join("%")).concat(t))}function NP(){return null}var OE="style";function kE(e,t){var n=e.token,r=e.path,i=e.hashId,a=e.layer,o=e.nonce,u=e.clientOnly,l=e.order,f=l===void 0?0:l,d=Q.useContext(kc),h=d.autoClear,p=d.mock,m=d.defaultCache,y=d.hashPriority,g=d.container,b=d.ssrInline,w=d.transformers,S=d.linters,C=d.cache,T=d.layer,_=n._tokenKey,x=[_];T&&x.push("layer"),x.push.apply(x,De(r));var k=$v;p!==void 0&&(k=p==="client");var A=qv(OE,x,function(){var V=x.join("|");if(kP(V)){var D=RP(V),j=ke(D,2),z=j[0],Y=j[1];if(z)return[z,_,Y,{},u,f]}var q=t(),J=PP(q,{hashId:i,hashPriority:y,layer:T?a:void 0,path:r.join("-"),transformers:w,linters:S}),$=ke(J,2),K=$[0],ae=$[1],ie=jc(K),te=TE(x,ie);return[ie,_,te,ae,u,f]},function(V,D){var j=ke(V,3),z=j[2];(D||h)&&$v&&Cu(z,{mark:Br})},function(V){var D=ke(V,4),j=D[0];D[1];var z=D[2],Y=D[3];if(k&&j!==wE){var q={mark:Br,prepend:T?!1:"queue",attachTo:g,priority:f},J=typeof o=="function"?o():o;J&&(q.csp={nonce:J});var $=[],K=[];Object.keys(Y).forEach(function(ie){ie.startsWith("@layer")?$.push(ie):K.push(ie)}),$.forEach(function(ie){qa(jc(Y[ie]),"_layer-".concat(ie),de(de({},q),{},{prepend:!0}))});var ae=qa(j,z,q);ae[na]=C.instanceId,ae.setAttribute(Yo,_),ae.setAttribute(LA,x.join("|")),K.forEach(function(ie){qa(jc(Y[ie]),"_effect-".concat(ie),q)})}}),L=ke(A,3),N=L[0],F=L[1],H=L[2];return function(V){var D;if(!b||k||!m)D=Q.createElement(NP,null);else{var j;D=Q.createElement("style",ii({},(j={},re(j,Yo,F),re(j,Br,H),j),{dangerouslySetInnerHTML:{__html:N}}))}return Q.createElement(Q.Fragment,null,D,V)}}var IP=function(t,n,r){var i=ke(t,6),a=i[0],o=i[1],u=i[2],l=i[3],f=i[4],d=i[5],h=r||{},p=h.plain;if(f)return null;var m=a,y={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return m=Rc(a,o,u,y,p),l&&Object.keys(l).forEach(function(g){if(!n[g]){n[g]=!0;var b=jc(l[g]),w=Rc(b,o,"_effect-".concat(g),y,p);g.startsWith("@layer")?m=w+m:m+=w}}),[d,u,m]},RE="cssVar",LP=function(t,n){var r=t.key,i=t.prefix,a=t.unitless,o=t.ignore,u=t.token,l=t.scope,f=l===void 0?"":l,d=M.useContext(kc),h=d.cache.instanceId,p=d.container,m=u._tokenKey,y=[].concat(De(t.path),[r,f,m]),g=qv(RE,y,function(){var b=n(),w=oE(b,r,{prefix:i,unitless:a,ignore:o,scope:f}),S=ke(w,2),C=S[0],T=S[1],_=TE(y,T);return[C,T,_,r]},function(b){var w=ke(b,3),S=w[2];$v&&Cu(S,{mark:Br})},function(b){var w=ke(b,3),S=w[1],C=w[2];if(S){var T=qa(S,C,{mark:Br,prepend:"queue",attachTo:p,priority:-999});T[na]=h,T.setAttribute(Yo,r)}});return g},FP=function(t,n,r){var i=ke(t,4),a=i[1],o=i[2],u=i[3],l=r||{},f=l.plain;if(!a)return null;var d=-999,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},p=Rc(a,u,o,h,f);return[d,o,p]},ku;ku={},re(ku,OE,IP),re(ku,cE,oP),re(ku,RE,FP);var Sr=function(){function e(t,n){An(this,e),re(this,"name",void 0),re(this,"style",void 0),re(this,"_keyframe",!0),this.name=t,this.style=n}return Pn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function es(e){return e.notSplit=!0,e}es(["borderTop","borderBottom"]),es(["borderTop"]),es(["borderBottom"]),es(["borderLeft","borderRight"]),es(["borderLeft"]),es(["borderRight"]);function DP(e){return Qw(e)||zw(e)||Nv(e)||Yw()}function oi(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function AE(e,t,n,r){if(!t.length)return n;var i=DP(t),a=i[0],o=i.slice(1),u;return!e&&typeof a=="number"?u=[]:Array.isArray(e)?u=De(e):u=de({},e),r&&n===void 0&&o.length===1?delete u[a][o[0]]:u[a]=AE(u[a],o,n,r),u}function Gr(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!oi(e,t.slice(0,-1))?e:AE(e,t,n,r)}function MP(e){return Qe(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function PE(e){return Array.isArray(e)?[]:{}}var jP=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Ru(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=PE(t[0]);return t.forEach(function(i){function a(o,u){var l=new Set(u),f=oi(i,o),d=Array.isArray(f);if(d||MP(f)){if(!l.has(f)){l.add(f);var h=oi(r,o);d?r=Gr(r,o,[]):(!h||Qe(h)!=="object")&&(r=Gr(r,o,PE(f))),jP(f).forEach(function(p){a([].concat(De(o),[p]),l)})}}else r=Gr(r,o,f)}a([])}),r}function $P(){}let ia=null,NE=$P;NE=(e,t,n)=>{Qt(e,`[antd: ${t}] ${n}`)};const VP=Q.createContext({}),IE=e=>{const{strict:t}=Q.useContext(VP),n=(r,i,a)=>{if(!r)if(t===!1&&i==="deprecated"){const o=ia;ia||(ia={}),ia[e]=ia[e]||[],ia[e].includes(a||"")||ia[e].push(a||""),o||console.warn("[antd] There exists deprecated usage in your code:",ia)}else NE(r,e,a)};return n.deprecated=(r,i,a,o)=>{n(r,"deprecated",`\`${i}\` is deprecated. Please use \`${a}\` instead.${o?` ${o}`:""}`)},n},LE={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},$c=Object.assign(Object.assign({},LE),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
201
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ke(e,t){return Qw(e)||TA(e,t)||Nv(e,t)||Yw()}function xu(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function ar(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function OA(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var Kw="data-rc-order",Xw="data-rc-priority",kA="rc-util-key",Iv=new Map;function Zw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):kA}function Oc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function RA(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Lv(e){return Array.from((Iv.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Jw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ar())return null;var n=t.csp,r=t.prepend,i=t.priority,a=i===void 0?0:i,o=RA(r),u=o==="prependQueue",l=document.createElement("style");l.setAttribute(Kw,o),u&&a&&l.setAttribute(Xw,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var f=Oc(t),d=f.firstChild;if(r){if(u){var h=(t.styles||Lv(f)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(Kw)))return!1;var m=Number(p.getAttribute(Xw)||0);return a>=m});if(h.length)return f.insertBefore(l,h[h.length-1].nextSibling),l}f.insertBefore(l,d)}else f.appendChild(l);return l}function eE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Oc(t);return(t.styles||Lv(n)).find(function(r){return r.getAttribute(Zw(t))===e})}function Cu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=eE(e,t);if(n){var r=Oc(t);r.removeChild(n)}}function AA(e,t){var n=Iv.get(e);if(!n||!OA(document,n)){var r=Jw("",t),i=r.parentNode;Iv.set(e,i),e.removeChild(r)}}function qa(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Oc(n),i=Lv(r),a=de(de({},n),{},{styles:i});AA(r,a);var o=eE(t,a);if(o){var u,l;if((u=a.csp)!==null&&u!==void 0&&u.nonce&&o.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var f;o.nonce=(f=a.csp)===null||f===void 0?void 0:f.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var d=Jw(e,a);return d.setAttribute(Zw(a),t),d}function PA(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ua(e,t){if(e==null)return{};var n,r,i=PA(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function tE(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(a,o){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if(Qt(!l,"Warning: There may be circular references"),l)return!1;if(a===o)return!0;if(n&&u>1)return!1;r.add(a);var f=u+1;if(Array.isArray(a)){if(!Array.isArray(o)||a.length!==o.length)return!1;for(var d=0;d<a.length;d++)if(!i(a[d],o[d],f))return!1;return!0}if(a&&o&&Qe(a)==="object"&&Qe(o)==="object"){var h=Object.keys(a);return h.length!==Object.keys(o).length?!1:h.every(function(p){return i(a[p],o[p],f)})}return!1}return i(e,t)}var NA="%";function Fv(e){return e.join(NA)}var IA=function(){function e(t){An(this,e),re(this,"instanceId",void 0),re(this,"cache",new Map),this.instanceId=t}return Pn(e,[{key:"get",value:function(n){return this.opGet(Fv(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Fv(n),r)}},{key:"opUpdate",value:function(n,r){var i=this.cache.get(n),a=r(i);a===null?this.cache.delete(n):this.cache.set(n,a)}}]),e}(),Yo="data-token-hash",Br="data-css-hash",LA="data-cache-path",na="__cssinjs_instance__";function FA(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Br,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(i){i[na]=i[na]||e,i[na]===e&&document.head.insertBefore(i,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Br,"]"))).forEach(function(i){var a=i.getAttribute(Br);if(r[a]){if(i[na]===e){var o;(o=i.parentNode)===null||o===void 0||o.removeChild(i)}}else r[a]=!0})}return new IA(e)}var kc=G.createContext({hashPriority:"low",cache:FA(),defaultCache:!0});function DA(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Dv=function(){function e(){An(this,e),re(this,"cache",void 0),re(this,"keys",void 0),re(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Pn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return n.forEach(function(u){if(!o)o=void 0;else{var l;o=(l=o)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(u)}}),(r=o)!==null&&r!==void 0&&r.value&&a&&(o.value[1]=this.cacheCallTimes++),(i=o)===null||i===void 0?void 0:i.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var i=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(f,d){var h=ke(f,2),p=h[1];return i.internalGet(d)[1]<p?[d,i.internalGet(d)[1]]:f},[this.keys[0],this.cacheCallTimes]),o=ke(a,1),u=o[0];this.delete(u)}this.keys.push(n)}var l=this.cache;n.forEach(function(f,d){if(d===n.length-1)l.set(f,{value:[r,i.cacheCallTimes++]});else{var h=l.get(f);h?h.map||(h.map=new Map):l.set(f,{map:new Map}),l=l.get(f).map}})}},{key:"deleteByPath",value:function(n,r){var i=n.get(r[0]);if(r.length===1){var a;return i.map?n.set(r[0],{map:i.map}):n.delete(r[0]),(a=i.value)===null||a===void 0?void 0:a[0]}var o=this.deleteByPath(i.map,r.slice(1));return(!i.map||i.map.size===0)&&!i.value&&n.delete(r[0]),o}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!DA(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();re(Dv,"MAX_CACHE_SIZE",20),re(Dv,"MAX_CACHE_OFFSET",5);var nE=0,rE=function(){function e(t){An(this,e),re(this,"derivatives",void 0),re(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=nE,t.length===0&&Go(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),nE+=1}return Pn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e}(),Mv=new Dv;function MA(e){var t=Array.isArray(e)?e:[e];return Mv.has(t)||Mv.set(t,new rE(t)),Mv.get(t)}var jA=new WeakMap,jv={};function $A(e,t){for(var n=jA,r=0;r<t.length;r+=1){var i=t[r];n.has(i)||n.set(i,new WeakMap),n=n.get(i)}return n.has(jv)||n.set(jv,e()),n.get(jv)}var iE=new WeakMap;function Tu(e){var t=iE.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof rE?t+=r.id:r&&Qe(r)==="object"?t+=Tu(r):t+=r}),t=xu(t),iE.set(e,t)),t}function aE(e,t){return xu("".concat(t,"_").concat(Tu(e)))}var $v=ar();function za(e){return typeof e=="number"?"".concat(e,"px"):e}function Rc(e,t,n){var r,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var o=de(de({},i),{},(r={},re(r,Yo,t),re(r,Br,n),r)),u=Object.keys(o).map(function(l){var f=o[l];return f?"".concat(l,'="').concat(f,'"'):null}).filter(function(l){return l}).join(" ");return"<style ".concat(u,">").concat(e,"</style>")}var Ac=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},VA=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(i){var a=ke(i,2),o=a[0],u=a[1];return"".concat(o,":").concat(u,";")}).join(""),"}"):""},oE=function(t,n,r){var i={},a={};return Object.entries(t).forEach(function(o){var u,l,f=ke(o,2),d=f[0],h=f[1];if(r!=null&&(u=r.preserve)!==null&&u!==void 0&&u[d])a[d]=h;else if((typeof h=="string"||typeof h=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[d])){var p,m=Ac(d,r==null?void 0:r.prefix);i[m]=typeof h=="number"&&!(r!=null&&(p=r.unitless)!==null&&p!==void 0&&p[d])?"".concat(h,"px"):String(h),a[d]="var(".concat(m,")")}}),[a,VA(i,n,{scope:r==null?void 0:r.scope})]},sE=ar()?G.useLayoutEffect:G.useEffect,jn=function(t,n){var r=G.useRef(!0);sE(function(){return t(r.current)},n),sE(function(){return r.current=!1,function(){r.current=!0}},[])},uE=function(t,n){jn(function(r){if(!r)return t()},n)},qA=de({},G),lE=qA.useInsertionEffect,UA=function(t,n,r){G.useMemo(t,r),jn(function(){return n(!0)},r)},zA=lE?function(e,t,n){return lE(function(){return e(),t()},n)}:UA,HA=de({},G),BA=HA.useInsertionEffect,WA=function(t){var n=[],r=!1;function i(a){if(r){Go(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}n.push(a)}return G.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),i},GA=function(){return function(t){t()}},QA=typeof BA<"u"?WA:GA,Vv=!1;function YA(){return Vv}const KA=YA;if(typeof module<"u"&&module&&module.hot&&typeof window<"u"){var Pc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(Pc&&typeof Pc.webpackHotUpdate=="function"){var XA=Pc.webpackHotUpdate;Pc.webpackHotUpdate=function(){return Vv=!0,setTimeout(function(){Vv=!1},0),XA.apply(void 0,arguments)}}}function qv(e,t,n,r,i){var a=G.useContext(kc),o=a.cache,u=[e].concat(De(t)),l=Fv(u),f=QA([l]),d=KA(),h=function(g){o.opUpdate(l,function(b){var w=b||[void 0,void 0],S=ke(w,2),C=S[0],T=C===void 0?0:C,_=S[1],x=_;_&&d&&(r==null||r(x,d),x=null);var k=x||n(),A=[T,k];return g?g(A):A})};G.useMemo(function(){h()},[l]);var p=o.opGet(l);p||(h(),p=o.opGet(l));var m=p[1];return zA(function(){i==null||i(m)},function(y){return h(function(g){var b=ke(g,2),w=b[0],S=b[1];return y&&w===0&&(i==null||i(m)),[w+1,S]}),function(){o.opUpdate(l,function(g){var b=g||[],w=ke(b,2),S=w[0],C=S===void 0?0:S,T=w[1],_=C-1;return _===0?(f(function(){(y||!o.opGet(l))&&(r==null||r(T,!1))}),null):[C-1,T]})}},[l]),m}var ZA={},JA="css-dev-only-do-not-override",Ha=new Map;function eP(e){Ha.set(e,(Ha.get(e)||0)+1)}function tP(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Yo,'="').concat(e,'"]'));n.forEach(function(r){if(r[na]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var nP=0;function rP(e,t){Ha.set(e,(Ha.get(e)||0)-1);var n=Array.from(Ha.keys()),r=n.filter(function(i){var a=Ha.get(i)||0;return a<=0});n.length-r.length>nP&&r.forEach(function(i){tP(i,t),Ha.delete(i)})}var iP=function(t,n,r,i){var a=r.getDerivativeToken(t),o=de(de({},a),n);return i&&(o=i(o)),o},cE="token";function aP(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=M.useContext(kc),i=r.cache.instanceId,a=r.container,o=n.salt,u=o===void 0?"":o,l=n.override,f=l===void 0?ZA:l,d=n.formatToken,h=n.getComputedToken,p=n.cssVar,m=$A(function(){return Object.assign.apply(Object,[{}].concat(De(t)))},t),y=Tu(m),g=Tu(f),b=p?Tu(p):"",w=qv(cE,[u,e.id,y,g,b],function(){var S,C=h?h(m,f,e):iP(m,f,e,d),T=de({},C),_="";if(p){var x=oE(C,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),k=ke(x,2);C=k[0],_=k[1]}var A=aE(C,u);C._tokenKey=A,T._tokenKey=aE(T,u);var L=(S=p==null?void 0:p.key)!==null&&S!==void 0?S:A;C._themeKey=L,eP(L);var N="".concat(JA,"-").concat(xu(A));return C._hashId=N,[C,N,T,_,(p==null?void 0:p.key)||""]},function(S){rP(S[0]._themeKey,i)},function(S){var C=ke(S,4),T=C[0],_=C[3];if(p&&_){var x=qa(_,xu("css-variables-".concat(T._themeKey)),{mark:Br,prepend:"queue",attachTo:a,priority:-999});x[na]=i,x.setAttribute(Yo,T._themeKey)}});return w}var oP=function(t,n,r){var i=ke(t,5),a=i[2],o=i[3],u=i[4],l=r||{},f=l.plain;if(!o)return null;var d=a._tokenKey,h=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(h)},m=Rc(o,u,d,p,f);return[h,d,m]},sP={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},fE="comm",dE="rule",hE="decl",uP="@import",lP="@namespace",cP="@keyframes",fP="@layer",pE=Math.abs,Uv=String.fromCharCode;function vE(e){return e.trim()}function Nc(e,t,n){return e.replace(t,n)}function dP(e,t,n){return e.indexOf(t,n)}function Ko(e,t){return e.charCodeAt(t)|0}function Xo(e,t,n){return e.slice(t,n)}function ai(e){return e.length}function hP(e){return e.length}function Ic(e,t){return t.push(e),e}var Lc=1,Zo=1,mE=0,Er=0,sn=0,Jo="";function zv(e,t,n,r,i,a,o,u){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Lc,column:Zo,length:o,return:"",siblings:u}}function pP(){return sn}function vP(){return sn=Er>0?Ko(Jo,--Er):0,Zo--,sn===10&&(Zo=1,Lc--),sn}function Wr(){return sn=Er<mE?Ko(Jo,Er++):0,Zo++,sn===10&&(Zo=1,Lc++),sn}function ra(){return Ko(Jo,Er)}function Fc(){return Er}function Dc(e,t){return Xo(Jo,e,t)}function Ou(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function mP(e){return Lc=Zo=1,mE=ai(Jo=e),Er=0,[]}function gP(e){return Jo="",e}function Hv(e){return vE(Dc(Er-1,Bv(e===91?e+2:e===40?e+1:e)))}function yP(e){for(;(sn=ra())&&sn<33;)Wr();return Ou(e)>2||Ou(sn)>3?"":" "}function bP(e,t){for(;--t&&Wr()&&!(sn<48||sn>102||sn>57&&sn<65||sn>70&&sn<97););return Dc(e,Fc()+(t<6&&ra()==32&&Wr()==32))}function Bv(e){for(;Wr();)switch(sn){case e:return Er;case 34:case 39:e!==34&&e!==39&&Bv(sn);break;case 40:e===41&&Bv(e);break;case 92:Wr();break}return Er}function _P(e,t){for(;Wr()&&e+sn!==57;)if(e+sn===84&&ra()===47)break;return"/*"+Dc(t,Er-1)+"*"+Uv(e===47?e:Wr())}function wP(e){for(;!Ou(ra());)Wr();return Dc(e,Er)}function EP(e){return gP(Mc("",null,null,null,[""],e=mP(e),0,[0],e))}function Mc(e,t,n,r,i,a,o,u,l){for(var f=0,d=0,h=o,p=0,m=0,y=0,g=1,b=1,w=1,S=0,C="",T=i,_=a,x=r,k=C;b;)switch(y=S,S=Wr()){case 40:if(y!=108&&Ko(k,h-1)==58){dP(k+=Nc(Hv(S),"&","&\f"),"&\f",pE(f?u[f-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:k+=Hv(S);break;case 9:case 10:case 13:case 32:k+=yP(y);break;case 92:k+=bP(Fc()-1,7);continue;case 47:switch(ra()){case 42:case 47:Ic(SP(_P(Wr(),Fc()),t,n,l),l),(Ou(y||1)==5||Ou(ra()||1)==5)&&ai(k)&&Xo(k,-1,void 0)!==" "&&(k+=" ");break;default:k+="/"}break;case 123*g:u[f++]=ai(k)*w;case 125*g:case 59:case 0:switch(S){case 0:case 125:b=0;case 59+d:w==-1&&(k=Nc(k,/\f/g,"")),m>0&&(ai(k)-h||g===0&&y===47)&&Ic(m>32?yE(k+";",r,n,h-1,l):yE(Nc(k," ","")+";",r,n,h-2,l),l);break;case 59:k+=";";default:if(Ic(x=gE(k,t,n,f,d,i,u,C,T=[],_=[],h,a),a),S===123)if(d===0)Mc(k,t,x,x,T,a,h,u,_);else{switch(p){case 99:if(Ko(k,3)===110)break;case 108:if(Ko(k,2)===97)break;default:d=0;case 100:case 109:case 115:}d?Mc(e,x,x,r&&Ic(gE(e,x,x,0,0,i,u,C,i,T=[],h,_),_),i,_,h,u,r?T:_):Mc(k,x,x,x,[""],_,0,u,_)}}f=d=m=0,g=w=1,C=k="",h=o;break;case 58:h=1+ai(k),m=y;default:if(g<1){if(S==123)--g;else if(S==125&&g++==0&&vP()==125)continue}switch(k+=Uv(S),S*g){case 38:w=d>0?1:(k+="\f",-1);break;case 44:u[f++]=(ai(k)-1)*w,w=1;break;case 64:ra()===45&&(k+=Hv(Wr())),p=ra(),d=h=ai(C=k+=wP(Fc())),S++;break;case 45:y===45&&ai(k)==2&&(g=0)}}return a}function gE(e,t,n,r,i,a,o,u,l,f,d,h){for(var p=i-1,m=i===0?a:[""],y=hP(m),g=0,b=0,w=0;g<r;++g)for(var S=0,C=Xo(e,p+1,p=pE(b=o[g])),T=e;S<y;++S)(T=vE(b>0?m[S]+" "+C:Nc(C,/&\f/g,m[S])))&&(l[w++]=T);return zv(e,t,n,i===0?dE:u,l,f,d,h)}function SP(e,t,n,r){return zv(e,t,n,fE,Uv(pP()),Xo(e,2,-2),0,r)}function yE(e,t,n,r,i){return zv(e,t,n,hE,Xo(e,0,r),Xo(e,r+1,-1),r,i)}function Wv(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function xP(e,t,n,r){switch(e.type){case fP:if(e.children.length)break;case uP:case lP:case hE:return e.return=e.return||e.value;case fE:return"";case cP:return e.return=e.value+"{"+Wv(e.children,r)+"}";case dE:if(!ai(e.value=e.props.join(",")))return""}return ai(n=Wv(e.children,r))?e.return=e.value+"{"+n+"}":""}function bE(e,t){var n=t.path,r=t.parentSelectors;Qt(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var CP=function(t,n,r){if(t==="content"){var i=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,a=["normal","none","initial","inherit","unset"];(typeof n!="string"||a.indexOf(n)===-1&&!i.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'"))&&bE("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),r)}},TP=function(t,n,r){t==="animation"&&r.hashId&&n!=="none"&&bE("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),r)},_E="data-ant-cssinjs-cache-path",wE="_FILE_STYLE__",Ba,EE=!0;function OP(){if(!Ba&&(Ba={},ar())){var e=document.createElement("div");e.className=_E,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(i){var a=i.split(":"),o=ke(a,2),u=o[0],l=o[1];Ba[u]=l});var n=document.querySelector("style[".concat(_E,"]"));if(n){var r;EE=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function kP(e){return OP(),!!Ba[e]}function RP(e){var t=Ba[e],n=null;if(t&&ar())if(EE)n=wE;else{var r=document.querySelector("style[".concat(Br,'="').concat(Ba[e],'"]'));r?n=r.innerHTML:delete Ba[e]}return[n,t]}var SE="_skip_check_",xE="_multi_value_";function jc(e){var t=Wv(EP(e),xP);return t.replace(/\{%%%\:[^;];}/g,";")}function AP(e){return Qe(e)==="object"&&e&&(SE in e||xE in e)}function CE(e,t,n){if(!t)return e;var r=".".concat(t),i=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(o){var u,l=o.trim().split(/\s+/),f=l[0]||"",d=((u=f.match(/^\w+/))===null||u===void 0?void 0:u[0])||"";return f="".concat(d).concat(i).concat(f.slice(d.length)),[f].concat(De(l.slice(1))).join(" ")});return a.join(",")}var PP=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,a=r.injectHash,o=r.parentSelectors,u=n.hashId,l=n.layer,f=n.path,d=n.hashPriority,h=n.transformers,p=h===void 0?[]:h,m=n.linters,y=m===void 0?[]:m,g="",b={};function w(T){var _=T.getName(u);if(!b[_]){var x=e(T.style,n,{root:!1,parentSelectors:o}),k=ke(x,1),A=k[0];b[_]="@keyframes ".concat(T.getName(u)).concat(A)}}function S(T){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return T.forEach(function(x){Array.isArray(x)?S(x,_):x&&_.push(x)}),_}var C=S(Array.isArray(t)?t:[t]);return C.forEach(function(T){var _=typeof T=="string"&&!i?{}:T;if(typeof _=="string")g+="".concat(_,`
202
+ `);else if(_._keyframe)w(_);else{var x=p.reduce(function(k,A){var L;return(A==null||(L=A.visit)===null||L===void 0?void 0:L.call(A,k))||k},_);Object.keys(x).forEach(function(k){var A=x[k];if(Qe(A)==="object"&&A&&(k!=="animationName"||!A._keyframe)&&!AP(A)){var L=!1,N=k.trim(),F=!1;(i||a)&&u?N.startsWith("@")?L=!0:N==="&"?N=CE("",u,d):N=CE(k,u,d):i&&!u&&(N==="&"||N==="")&&(N="",F=!0);var H=e(A,n,{root:F,injectHash:L,parentSelectors:[].concat(De(o),[N])}),V=ke(H,2),D=V[0],j=V[1];b=de(de({},b),j),g+="".concat(N).concat(D)}else{let q=function(J,$){(Qe(A)!=="object"||!(A!=null&&A[SE]))&&[CP,TP].concat(De(y)).forEach(function(ie){return ie(J,$,{path:f,hashId:u,parentSelectors:o})});var Y=J.replace(/[A-Z]/g,function(ie){return"-".concat(ie.toLowerCase())}),ae=$;!sP[J]&&typeof ae=="number"&&ae!==0&&(ae="".concat(ae,"px")),J==="animationName"&&$!==null&&$!==void 0&&$._keyframe&&(w($),ae=$.getName(u)),g+="".concat(Y,":").concat(ae,";")};var z,Q=(z=A==null?void 0:A.value)!==null&&z!==void 0?z:A;Qe(A)==="object"&&A!==null&&A!==void 0&&A[xE]&&Array.isArray(Q)?Q.forEach(function(J){q(k,J)}):q(k,Q)}})}}),i?l&&(g&&(g="@layer ".concat(l.name," {").concat(g,"}")),l.dependencies&&(b["@layer ".concat(l.name)]=l.dependencies.map(function(T){return"@layer ".concat(T,", ").concat(l.name,";")}).join(`
203
+ `))):g="{".concat(g,"}"),[g,b]};function TE(e,t){return xu("".concat(e.join("%")).concat(t))}function NP(){return null}var OE="style";function kE(e,t){var n=e.token,r=e.path,i=e.hashId,a=e.layer,o=e.nonce,u=e.clientOnly,l=e.order,f=l===void 0?0:l,d=G.useContext(kc),h=d.autoClear,p=d.mock,m=d.defaultCache,y=d.hashPriority,g=d.container,b=d.ssrInline,w=d.transformers,S=d.linters,C=d.cache,T=d.layer,_=n._tokenKey,x=[_];T&&x.push("layer"),x.push.apply(x,De(r));var k=$v;p!==void 0&&(k=p==="client");var A=qv(OE,x,function(){var V=x.join("|");if(kP(V)){var D=RP(V),j=ke(D,2),z=j[0],Q=j[1];if(z)return[z,_,Q,{},u,f]}var q=t(),J=PP(q,{hashId:i,hashPriority:y,layer:T?a:void 0,path:r.join("-"),transformers:w,linters:S}),$=ke(J,2),Y=$[0],ae=$[1],ie=jc(Y),te=TE(x,ie);return[ie,_,te,ae,u,f]},function(V,D){var j=ke(V,3),z=j[2];(D||h)&&$v&&Cu(z,{mark:Br})},function(V){var D=ke(V,4),j=D[0];D[1];var z=D[2],Q=D[3];if(k&&j!==wE){var q={mark:Br,prepend:T?!1:"queue",attachTo:g,priority:f},J=typeof o=="function"?o():o;J&&(q.csp={nonce:J});var $=[],Y=[];Object.keys(Q).forEach(function(ie){ie.startsWith("@layer")?$.push(ie):Y.push(ie)}),$.forEach(function(ie){qa(jc(Q[ie]),"_layer-".concat(ie),de(de({},q),{},{prepend:!0}))});var ae=qa(j,z,q);ae[na]=C.instanceId,ae.setAttribute(Yo,_),ae.setAttribute(LA,x.join("|")),Y.forEach(function(ie){qa(jc(Q[ie]),"_effect-".concat(ie),q)})}}),L=ke(A,3),N=L[0],F=L[1],H=L[2];return function(V){var D;if(!b||k||!m)D=G.createElement(NP,null);else{var j;D=G.createElement("style",ii({},(j={},re(j,Yo,F),re(j,Br,H),j),{dangerouslySetInnerHTML:{__html:N}}))}return G.createElement(G.Fragment,null,D,V)}}var IP=function(t,n,r){var i=ke(t,6),a=i[0],o=i[1],u=i[2],l=i[3],f=i[4],d=i[5],h=r||{},p=h.plain;if(f)return null;var m=a,y={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return m=Rc(a,o,u,y,p),l&&Object.keys(l).forEach(function(g){if(!n[g]){n[g]=!0;var b=jc(l[g]),w=Rc(b,o,"_effect-".concat(g),y,p);g.startsWith("@layer")?m=w+m:m+=w}}),[d,u,m]},RE="cssVar",LP=function(t,n){var r=t.key,i=t.prefix,a=t.unitless,o=t.ignore,u=t.token,l=t.scope,f=l===void 0?"":l,d=M.useContext(kc),h=d.cache.instanceId,p=d.container,m=u._tokenKey,y=[].concat(De(t.path),[r,f,m]),g=qv(RE,y,function(){var b=n(),w=oE(b,r,{prefix:i,unitless:a,ignore:o,scope:f}),S=ke(w,2),C=S[0],T=S[1],_=TE(y,T);return[C,T,_,r]},function(b){var w=ke(b,3),S=w[2];$v&&Cu(S,{mark:Br})},function(b){var w=ke(b,3),S=w[1],C=w[2];if(S){var T=qa(S,C,{mark:Br,prepend:"queue",attachTo:p,priority:-999});T[na]=h,T.setAttribute(Yo,r)}});return g},FP=function(t,n,r){var i=ke(t,4),a=i[1],o=i[2],u=i[3],l=r||{},f=l.plain;if(!a)return null;var d=-999,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},p=Rc(a,u,o,h,f);return[d,o,p]},ku;ku={},re(ku,OE,IP),re(ku,cE,oP),re(ku,RE,FP);var Sr=function(){function e(t,n){An(this,e),re(this,"name",void 0),re(this,"style",void 0),re(this,"_keyframe",!0),this.name=t,this.style=n}return Pn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function es(e){return e.notSplit=!0,e}es(["borderTop","borderBottom"]),es(["borderTop"]),es(["borderBottom"]),es(["borderLeft","borderRight"]),es(["borderLeft"]),es(["borderRight"]);function DP(e){return Qw(e)||zw(e)||Nv(e)||Yw()}function oi(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function AE(e,t,n,r){if(!t.length)return n;var i=DP(t),a=i[0],o=i.slice(1),u;return!e&&typeof a=="number"?u=[]:Array.isArray(e)?u=De(e):u=de({},e),r&&n===void 0&&o.length===1?delete u[a][o[0]]:u[a]=AE(u[a],o,n,r),u}function Gr(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!oi(e,t.slice(0,-1))?e:AE(e,t,n,r)}function MP(e){return Qe(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function PE(e){return Array.isArray(e)?[]:{}}var jP=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Ru(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=PE(t[0]);return t.forEach(function(i){function a(o,u){var l=new Set(u),f=oi(i,o),d=Array.isArray(f);if(d||MP(f)){if(!l.has(f)){l.add(f);var h=oi(r,o);d?r=Gr(r,o,[]):(!h||Qe(h)!=="object")&&(r=Gr(r,o,PE(f))),jP(f).forEach(function(p){a([].concat(De(o),[p]),l)})}}else r=Gr(r,o,f)}a([])}),r}function $P(){}let ia=null,NE=$P;NE=(e,t,n)=>{Qt(e,`[antd: ${t}] ${n}`)};const VP=G.createContext({}),IE=e=>{const{strict:t}=G.useContext(VP),n=(r,i,a)=>{if(!r)if(t===!1&&i==="deprecated"){const o=ia;ia||(ia={}),ia[e]=ia[e]||[],ia[e].includes(a||"")||ia[e].push(a||""),o||console.warn("[antd] There exists deprecated usage in your code:",ia)}else NE(r,e,a)};return n.deprecated=(r,i,a,o)=>{n(r,"deprecated",`\`${i}\` is deprecated. Please use \`${a}\` instead.${o?` ${o}`:""}`)},n},LE={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},$c=Object.assign(Object.assign({},LE),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
204
204
  'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
205
- 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),pn=Math.round;function Gv(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const FE=(e,t,n)=>n===0?e:e/100;function Au(e,t){const n=t||255;return e>n?n:e<0?0:e}class vn{constructor(t){re(this,"isValid",!0),re(this,"r",0),re(this,"g",0),re(this,"b",0),re(this,"a",1),re(this,"_h",void 0),re(this,"_s",void 0),re(this,"_l",void 0),re(this,"_v",void 0),re(this,"_max",void 0),re(this,"_min",void 0),re(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let i=function(a){return r.startsWith(a)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):i("rgb")?this.fromRgbString(r):i("hsl")?this.fromHslString(r):(i("hsv")||i("hsb"))&&this.fromHsvString(r)}else if(t instanceof vn)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Au(t.r),this.g=Au(t.g),this.b=Au(t.b),this.a=typeof t.a=="number"?Au(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(a){const o=a/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),i=t(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=pn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(t,n=50){const r=this._c(t),i=n/100,a=u=>(r[u]-this[u])*i+this[u],o={r:pn(a("r")),g:pn(a("g")),b:pn(a("b")),a:pn(a("a")*100)/100};return this._c(o)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),i=a=>pn((this[a]*this.a+n[a]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=pn(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=pn(this.getSaturation()*100),r=pn(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const i=this.clone();return i[t]=Au(n,r),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(i,a){return parseInt(n[i]+n[a||i],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:i}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const p=pn(r*255);this.r=p,this.g=p,this.b=p}let a=0,o=0,u=0;const l=t/60,f=(1-Math.abs(2*r-1))*n,d=f*(1-Math.abs(l%2-1));l>=0&&l<1?(a=f,o=d):l>=1&&l<2?(a=d,o=f):l>=2&&l<3?(o=f,u=d):l>=3&&l<4?(o=d,u=f):l>=4&&l<5?(a=d,u=f):l>=5&&l<6&&(a=f,u=d);const h=r-f/2;this.r=pn((a+h)*255),this.g=pn((o+h)*255),this.b=pn((u+h)*255)}fromHsv({h:t,s:n,v:r,a:i}){this._h=t%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const a=pn(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const o=t/60,u=Math.floor(o),l=o-u,f=pn(r*(1-n)*255),d=pn(r*(1-n*l)*255),h=pn(r*(1-n*(1-l))*255);switch(u){case 0:this.g=h,this.b=f;break;case 1:this.r=d,this.b=f;break;case 2:this.r=f,this.b=h;break;case 3:this.r=f,this.g=d;break;case 4:this.r=h,this.g=f;break;case 5:default:this.g=f,this.b=d;break}}fromHsvString(t){const n=Gv(t,FE);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Gv(t,FE);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Gv(t,(r,i)=>i.includes("%")?pn(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Vc=2,DE=.16,qP=.05,UP=.05,zP=.15,ME=5,jE=4,HP=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function $E(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Vc*t:Math.round(e.h)+Vc*t:r=n?Math.round(e.h)+Vc*t:Math.round(e.h)-Vc*t,r<0?r+=360:r>=360&&(r-=360),r}function VE(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-DE*t:t===jE?r=e.s+DE:r=e.s+qP*t,r>1&&(r=1),n&&t===ME&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function qE(e,t,n){var r;return n?r=e.v+UP*t:r=e.v-zP*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function UE(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new vn(e),i=r.toHsv(),a=ME;a>0;a-=1){var o=new vn({h:$E(i,a,!0),s:VE(i,a,!0),v:qE(i,a,!0)});n.push(o)}n.push(r);for(var u=1;u<=jE;u+=1){var l=new vn({h:$E(i,u),s:VE(i,u),v:qE(i,u)});n.push(l)}return t.theme==="dark"?HP.map(function(f){var d=f.index,h=f.amount;return new vn(t.backgroundColor||"#141414").mix(n[d],h).toHexString()}):n.map(function(f){return f.toHexString()})}var Qv={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Yv=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Yv.primary=Yv[5];var Kv=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Kv.primary=Kv[5];var Xv=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Xv.primary=Xv[5];var Zv=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Zv.primary=Zv[5];var Jv=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Jv.primary=Jv[5];var em=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];em.primary=em[5];var tm=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];tm.primary=tm[5];var nm=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];nm.primary=nm[5];var rm=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];rm.primary=rm[5];var im=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];im.primary=im[5];var am=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];am.primary=am[5];var om=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];om.primary=om[5];var sm=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];sm.primary=sm[5];var um={red:Yv,volcano:Kv,orange:Xv,gold:Zv,yellow:Jv,lime:em,green:tm,cyan:nm,blue:rm,geekblue:im,purple:am,magenta:om,grey:sm};function BP(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:i,colorError:a,colorInfo:o,colorPrimary:u,colorBgBase:l,colorTextBase:f}=e,d=t(u),h=t(r),p=t(i),m=t(a),y=t(o),g=n(l,f),b=e.colorLink||e.colorInfo,w=t(b),S=new vn(m[1]).mix(new vn(m[3]),50).toHexString();return Object.assign(Object.assign({},g),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:S,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:y[1],colorInfoBgHover:y[2],colorInfoBorder:y[3],colorInfoBorderHover:y[4],colorInfoHover:y[4],colorInfo:y[6],colorInfoActive:y[7],colorInfoTextHover:y[8],colorInfoText:y[9],colorInfoTextActive:y[10],colorLinkHover:w[4],colorLink:w[6],colorLinkActive:w[7],colorBgMask:new vn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const WP=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function GP(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},WP(r))}const QP=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function YP(e){return(e+8)/e}function KP(e){const t=Array.from({length:10}).map((n,r)=>{const i=r-1,a=e*Math.pow(Math.E,i/5),o=r>1?Math.floor(a):Math.ceil(a);return Math.floor(o/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:YP(n)}))}const XP=e=>{const t=KP(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),i=n[1],a=n[0],o=n[2],u=r[1],l=r[0],f=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:o,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:u,lineHeightLG:f,lineHeightSM:l,fontHeight:Math.round(u*i),fontHeightLG:Math.round(f*o),fontHeightSM:Math.round(l*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function ZP(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const xr=(e,t)=>new vn(e).setA(t).toRgbString(),Pu=(e,t)=>new vn(e).darken(t).toHexString(),JP=e=>{const t=UE(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},eN=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:xr(r,.88),colorTextSecondary:xr(r,.65),colorTextTertiary:xr(r,.45),colorTextQuaternary:xr(r,.25),colorFill:xr(r,.15),colorFillSecondary:xr(r,.06),colorFillTertiary:xr(r,.04),colorFillQuaternary:xr(r,.02),colorBgSolid:xr(r,1),colorBgSolidHover:xr(r,.75),colorBgSolidActive:xr(r,.95),colorBgLayout:Pu(n,4),colorBgContainer:Pu(n,0),colorBgElevated:Pu(n,0),colorBgSpotlight:xr(r,.85),colorBgBlur:"transparent",colorBorder:Pu(n,15),colorBorderSecondary:Pu(n,6)}};function tN(e){Qv.pink=Qv.magenta,um.pink=um.magenta;const t=Object.keys(LE).map(n=>{const r=e[n]===Qv[n]?um[n]:UE(e[n]);return Array.from({length:10},()=>1).reduce((i,a,o)=>(i[`${n}-${o+1}`]=r[o],i[`${n}${o+1}`]=r[o],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),BP(e,{generateColorPalettes:JP,generateNeutralColorPalettes:eN})),XP(e.fontSize)),ZP(e)),QP(e)),GP(e))}const nN=MA(tN),rN={token:$c,override:{override:$c},hashed:!0},iN=M.createContext(rN),zE="ant",HE="anticon",aN=(e,t)=>t||(e?`${zE}-${e}`:zE),Nu=Q.createContext({getPrefixCls:aN,iconPrefixCls:HE}),{Consumer:Lz}=Nu,BE={};function oN(e){const t=Q.useContext(Nu),{getPrefixCls:n,direction:r,getPopupContainer:i}=t,a=t[e];return Object.assign(Object.assign({classNames:BE,styles:BE},a),{getPrefixCls:n,direction:r,getPopupContainer:i})}var WE=Pn(function e(){An(this,e)}),GE="CALC_UNIT",sN=new RegExp(GE,"g");function lm(e){return typeof e=="number"?"".concat(e).concat(GE):e}var uN=function(e){$a(n,e);var t=Va(n);function n(r,i){var a;An(this,n),a=t.call(this),re(nt(a),"result",""),re(nt(a),"unitlessCssVar",void 0),re(nt(a),"lowPriority",void 0);var o=Qe(r);return a.unitlessCssVar=i,r instanceof n?a.result="(".concat(r.result,")"):o==="number"?a.result=lm(r):o==="string"&&(a.result=r),a}return Pn(n,[{key:"add",value:function(i){return i instanceof n?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(lm(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof n?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(lm(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var a=this,o=i||{},u=o.unit,l=!0;return typeof u=="boolean"?l=u:Array.from(this.unitlessCssVar).some(function(f){return a.result.includes(f)})&&(l=!1),this.result=this.result.replace(sN,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(WE),lN=function(e){$a(n,e);var t=Va(n);function n(r){var i;return An(this,n),i=t.call(this),re(nt(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return Pn(n,[{key:"add",value:function(i){return i instanceof n?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof n?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof n?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof n?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),n}(WE),cN=function(t,n){var r=t==="css"?uN:lN;return function(i){return new r(i,n)}},QE=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Cr(e){var t=Q.useRef();t.current=e;var n=Q.useCallback(function(){for(var r,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function Iu(e){var t=Q.useRef(!1),n=Q.useState(e),r=ke(n,2),i=r[0],a=r[1];Q.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function o(u,l){l&&t.current||a(u)}return[i,o]}function cm(e){return e!==void 0}function fN(e,t){var n=t||{},r=n.defaultValue,i=n.value,a=n.onChange,o=n.postState,u=Iu(function(){return cm(i)?i:cm(r)?typeof r=="function"?r():r:e}),l=ke(u,2),f=l[0],d=l[1],h=i!==void 0?i:f,p=o?o(h):h,m=Cr(a),y=Iu([h]),g=ke(y,2),b=g[0],w=g[1];uE(function(){var C=b[0];f!==C&&m(f,C)},[b]),uE(function(){cm(i)||d(i)},[i]);var S=Cr(function(C,T){d(C,T),w([h],T)});return[p,S]}function YE(e,t,n,r){var i=de({},t[e]);if(r!=null&&r.deprecatedTokens){var a=r.deprecatedTokens;a.forEach(function(u){var l=ke(u,2),f=l[0],d=l[1];if(Qt(!(i!=null&&i[f]),"Component Token `".concat(String(f),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(d),"` instead.")),i!=null&&i[f]||i!=null&&i[d]){var h;(h=i[d])!==null&&h!==void 0||(i[d]=i==null?void 0:i[f])}})}var o=de(de({},n),i);return Object.keys(o).forEach(function(u){o[u]===t[u]&&delete o[u]}),o}var fm=!0;function qc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];fm=!1;var r={};return t.forEach(function(i){if(Qe(i)==="object"){var a=Object.keys(i);a.forEach(function(o){Object.defineProperty(r,o,{configurable:!0,enumerable:!0,get:function(){return i[o]}})})}}),fm=!0,r}var KE={};function dN(){}var hN=function(t){var n,r=t,i=dN;return typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(o,u){if(fm){var l;(l=n)===null||l===void 0||l.add(u)}return o[u]}}),i=function(o,u){var l;KE[o]={global:Array.from(n),component:de(de({},(l=KE[o])===null||l===void 0?void 0:l.component),u)}}),{token:r,keys:n,flush:i}};function XE(e,t,n){if(typeof n=="function"){var r;return n(qc(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function pN(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"max(".concat(r.map(function(a){return za(a)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"min(".concat(r.map(function(a){return za(a)}).join(","),")")}}}var vN=1e3*60*10,mN=function(){function e(){An(this,e),re(this,"map",new Map),re(this,"objectIDMap",new WeakMap),re(this,"nextID",0),re(this,"lastAccessBeat",new Map),re(this,"accessBeat",0)}return Pn(e,[{key:"set",value:function(n,r){this.clear();var i=this.getCompositeKey(n);this.map.set(i,r),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),i=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(n){var r=this,i=n.map(function(a){return a&&Qe(a)==="object"?"obj_".concat(r.getObjectID(a)):"".concat(Qe(a),"_").concat(a)});return i.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,a){r-i>vN&&(n.map.delete(a),n.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e}(),ZE=new mN;function gN(e,t){return M.useMemo(function(){var n=ZE.get(t);if(n)return n;var r=e();return ZE.set(t,r),r},t)}var yN=function(){return{}};function bN(e){var t=e.useCSP,n=t===void 0?yN:t,r=e.useToken,i=e.usePrefix,a=e.getResetStyles,o=e.getCommonStyle,u=e.getCompUnitless;function l(p,m,y,g){var b=Array.isArray(p)?p[0]:p;function w(A){return"".concat(String(b)).concat(A.slice(0,1).toUpperCase()).concat(A.slice(1))}var S=(g==null?void 0:g.unitless)||{},C=typeof u=="function"?u(p):{},T=de(de({},C),{},re({},w("zIndexPopup"),!0));Object.keys(S).forEach(function(A){T[w(A)]=S[A]});var _=de(de({},g),{},{unitless:T,prefixToken:w}),x=d(p,m,y,_),k=f(b,y,_);return function(A){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A,N=x(A,L),F=ke(N,2),H=F[1],V=k(L),D=ke(V,2),j=D[0],z=D[1];return[j,H,z]}}function f(p,m,y){var g=y.unitless,b=y.injectStyle,w=b===void 0?!0:b,S=y.prefixToken,C=y.ignore,T=function(k){var A=k.rootCls,L=k.cssVar,N=L===void 0?{}:L,F=r(),H=F.realToken;return LP({path:[p],prefix:N.prefix,key:N.key,unitless:g,ignore:C,token:H,scope:A},function(){var V=XE(p,H,m),D=YE(p,H,V,{deprecatedTokens:y==null?void 0:y.deprecatedTokens});return Object.keys(V).forEach(function(j){D[S(j)]=D[j],delete D[j]}),D}),null},_=function(k){var A=r(),L=A.cssVar;return[function(N){return w&&L?M.createElement(M.Fragment,null,M.createElement(T,{rootCls:k,cssVar:L,component:p}),N):N},L==null?void 0:L.key]};return _}function d(p,m,y){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=Array.isArray(p)?p:[p,p],w=ke(b,1),S=w[0],C=b.join("-"),T=e.layer||{name:"antd"};return function(_){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_,k=r(),A=k.theme,L=k.realToken,N=k.hashId,F=k.token,H=k.cssVar,V=i(),D=V.rootPrefixCls,j=V.iconPrefixCls,z=n(),Y=H?"css":"js",q=gN(function(){var te=new Set;return H&&Object.keys(g.unitless||{}).forEach(function(fe){te.add(Ac(fe,H.prefix)),te.add(Ac(fe,QE(S,H.prefix)))}),cN(Y,te)},[Y,S,H==null?void 0:H.prefix]),J=pN(Y),$=J.max,K=J.min,ae={theme:A,token:F,hashId:N,nonce:function(){return z.nonce},clientOnly:g.clientOnly,layer:T,order:g.order||-999};typeof a=="function"&&kE(de(de({},ae),{},{clientOnly:!1,path:["Shared",D]}),function(){return a(F,{prefix:{rootPrefixCls:D,iconPrefixCls:j},csp:z})});var ie=kE(de(de({},ae),{},{path:[C,_,j]}),function(){if(g.injectStyle===!1)return[];var te=hN(F),fe=te.token,le=te.flush,ve=XE(S,L,y),_e=".".concat(_),be=YE(S,L,ve,{deprecatedTokens:g.deprecatedTokens});H&&ve&&Qe(ve)==="object"&&Object.keys(ve).forEach(function(ye){ve[ye]="var(".concat(Ac(ye,QE(S,H.prefix)),")")});var we=qc(fe,{componentCls:_e,prefixCls:_,iconCls:".".concat(j),antCls:".".concat(D),calc:q,max:$,min:K},H?ve:be),ne=m(we,{hashId:N,prefixCls:_,rootPrefixCls:D,iconPrefixCls:j});le(S,be);var W=typeof o=="function"?o(we,_,x,g.resetFont):null;return[g.resetStyle===!1?null:W,ne]});return[ie,N]}}function h(p,m,y){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=d(p,m,y,de({resetStyle:!1,order:-998},g)),w=function(C){var T=C.prefixCls,_=C.rootCls,x=_===void 0?T:_;return b(T,x),null};return w.displayName="SubStyle_".concat(String(Array.isArray(p)?p.join("."):p)),w}return{genStyleHooks:l,genSubStyleComponent:h,genComponentStyleHook:d}}const Uc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],_N="5.25.2";function dm(e){return e>=0&&e<=255}function zc(e,t){const{r:n,g:r,b:i,a}=new vn(e).toRgb();if(a<1)return e;const{r:o,g:u,b:l}=new vn(t).toRgb();for(let f=.01;f<=1;f+=.01){const d=Math.round((n-o*(1-f))/f),h=Math.round((r-u*(1-f))/f),p=Math.round((i-l*(1-f))/f);if(dm(d)&&dm(h)&&dm(p))return new vn({r:d,g:h,b:p,a:Math.round(f*100)/100}).toRgbString()}return new vn({r:n,g:r,b:i,a:1}).toRgbString()}var wN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function JE(e){const{override:t}=e,n=wN(e,["override"]),r=Object.assign({},t);Object.keys($c).forEach(p=>{delete r[p]});const i=Object.assign(Object.assign({},n),r),a=480,o=576,u=768,l=992,f=1200,d=1600;if(i.motion===!1){const p="0s";i.motionDurationFast=p,i.motionDurationMid=p,i.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:zc(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:zc(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:zc(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:zc(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
205
+ 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),pn=Math.round;function Gv(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const FE=(e,t,n)=>n===0?e:e/100;function Au(e,t){const n=t||255;return e>n?n:e<0?0:e}class vn{constructor(t){re(this,"isValid",!0),re(this,"r",0),re(this,"g",0),re(this,"b",0),re(this,"a",1),re(this,"_h",void 0),re(this,"_s",void 0),re(this,"_l",void 0),re(this,"_v",void 0),re(this,"_max",void 0),re(this,"_min",void 0),re(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let i=function(a){return r.startsWith(a)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):i("rgb")?this.fromRgbString(r):i("hsl")?this.fromHslString(r):(i("hsv")||i("hsb"))&&this.fromHsvString(r)}else if(t instanceof vn)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Au(t.r),this.g=Au(t.g),this.b=Au(t.b),this.a=typeof t.a=="number"?Au(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(a){const o=a/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),i=t(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=pn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(t,n=50){const r=this._c(t),i=n/100,a=u=>(r[u]-this[u])*i+this[u],o={r:pn(a("r")),g:pn(a("g")),b:pn(a("b")),a:pn(a("a")*100)/100};return this._c(o)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),i=a=>pn((this[a]*this.a+n[a]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=pn(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=pn(this.getSaturation()*100),r=pn(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const i=this.clone();return i[t]=Au(n,r),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(i,a){return parseInt(n[i]+n[a||i],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:i}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const p=pn(r*255);this.r=p,this.g=p,this.b=p}let a=0,o=0,u=0;const l=t/60,f=(1-Math.abs(2*r-1))*n,d=f*(1-Math.abs(l%2-1));l>=0&&l<1?(a=f,o=d):l>=1&&l<2?(a=d,o=f):l>=2&&l<3?(o=f,u=d):l>=3&&l<4?(o=d,u=f):l>=4&&l<5?(a=d,u=f):l>=5&&l<6&&(a=f,u=d);const h=r-f/2;this.r=pn((a+h)*255),this.g=pn((o+h)*255),this.b=pn((u+h)*255)}fromHsv({h:t,s:n,v:r,a:i}){this._h=t%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const a=pn(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const o=t/60,u=Math.floor(o),l=o-u,f=pn(r*(1-n)*255),d=pn(r*(1-n*l)*255),h=pn(r*(1-n*(1-l))*255);switch(u){case 0:this.g=h,this.b=f;break;case 1:this.r=d,this.b=f;break;case 2:this.r=f,this.b=h;break;case 3:this.r=f,this.g=d;break;case 4:this.r=h,this.g=f;break;case 5:default:this.g=f,this.b=d;break}}fromHsvString(t){const n=Gv(t,FE);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Gv(t,FE);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Gv(t,(r,i)=>i.includes("%")?pn(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Vc=2,DE=.16,qP=.05,UP=.05,zP=.15,ME=5,jE=4,HP=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function $E(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Vc*t:Math.round(e.h)+Vc*t:r=n?Math.round(e.h)+Vc*t:Math.round(e.h)-Vc*t,r<0?r+=360:r>=360&&(r-=360),r}function VE(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-DE*t:t===jE?r=e.s+DE:r=e.s+qP*t,r>1&&(r=1),n&&t===ME&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function qE(e,t,n){var r;return n?r=e.v+UP*t:r=e.v-zP*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function UE(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new vn(e),i=r.toHsv(),a=ME;a>0;a-=1){var o=new vn({h:$E(i,a,!0),s:VE(i,a,!0),v:qE(i,a,!0)});n.push(o)}n.push(r);for(var u=1;u<=jE;u+=1){var l=new vn({h:$E(i,u),s:VE(i,u),v:qE(i,u)});n.push(l)}return t.theme==="dark"?HP.map(function(f){var d=f.index,h=f.amount;return new vn(t.backgroundColor||"#141414").mix(n[d],h).toHexString()}):n.map(function(f){return f.toHexString()})}var Qv={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Yv=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Yv.primary=Yv[5];var Kv=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Kv.primary=Kv[5];var Xv=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Xv.primary=Xv[5];var Zv=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Zv.primary=Zv[5];var Jv=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Jv.primary=Jv[5];var em=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];em.primary=em[5];var tm=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];tm.primary=tm[5];var nm=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];nm.primary=nm[5];var rm=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];rm.primary=rm[5];var im=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];im.primary=im[5];var am=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];am.primary=am[5];var om=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];om.primary=om[5];var sm=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];sm.primary=sm[5];var um={red:Yv,volcano:Kv,orange:Xv,gold:Zv,yellow:Jv,lime:em,green:tm,cyan:nm,blue:rm,geekblue:im,purple:am,magenta:om,grey:sm};function BP(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:i,colorError:a,colorInfo:o,colorPrimary:u,colorBgBase:l,colorTextBase:f}=e,d=t(u),h=t(r),p=t(i),m=t(a),y=t(o),g=n(l,f),b=e.colorLink||e.colorInfo,w=t(b),S=new vn(m[1]).mix(new vn(m[3]),50).toHexString();return Object.assign(Object.assign({},g),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:S,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:y[1],colorInfoBgHover:y[2],colorInfoBorder:y[3],colorInfoBorderHover:y[4],colorInfoHover:y[4],colorInfo:y[6],colorInfoActive:y[7],colorInfoTextHover:y[8],colorInfoText:y[9],colorInfoTextActive:y[10],colorLinkHover:w[4],colorLink:w[6],colorLinkActive:w[7],colorBgMask:new vn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const WP=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function GP(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},WP(r))}const QP=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function YP(e){return(e+8)/e}function KP(e){const t=Array.from({length:10}).map((n,r)=>{const i=r-1,a=e*Math.pow(Math.E,i/5),o=r>1?Math.floor(a):Math.ceil(a);return Math.floor(o/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:YP(n)}))}const XP=e=>{const t=KP(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),i=n[1],a=n[0],o=n[2],u=r[1],l=r[0],f=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:o,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:u,lineHeightLG:f,lineHeightSM:l,fontHeight:Math.round(u*i),fontHeightLG:Math.round(f*o),fontHeightSM:Math.round(l*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function ZP(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const xr=(e,t)=>new vn(e).setA(t).toRgbString(),Pu=(e,t)=>new vn(e).darken(t).toHexString(),JP=e=>{const t=UE(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},eN=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:xr(r,.88),colorTextSecondary:xr(r,.65),colorTextTertiary:xr(r,.45),colorTextQuaternary:xr(r,.25),colorFill:xr(r,.15),colorFillSecondary:xr(r,.06),colorFillTertiary:xr(r,.04),colorFillQuaternary:xr(r,.02),colorBgSolid:xr(r,1),colorBgSolidHover:xr(r,.75),colorBgSolidActive:xr(r,.95),colorBgLayout:Pu(n,4),colorBgContainer:Pu(n,0),colorBgElevated:Pu(n,0),colorBgSpotlight:xr(r,.85),colorBgBlur:"transparent",colorBorder:Pu(n,15),colorBorderSecondary:Pu(n,6)}};function tN(e){Qv.pink=Qv.magenta,um.pink=um.magenta;const t=Object.keys(LE).map(n=>{const r=e[n]===Qv[n]?um[n]:UE(e[n]);return Array.from({length:10},()=>1).reduce((i,a,o)=>(i[`${n}-${o+1}`]=r[o],i[`${n}${o+1}`]=r[o],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),BP(e,{generateColorPalettes:JP,generateNeutralColorPalettes:eN})),XP(e.fontSize)),ZP(e)),QP(e)),GP(e))}const nN=MA(tN),rN={token:$c,override:{override:$c},hashed:!0},iN=M.createContext(rN),zE="ant",HE="anticon",aN=(e,t)=>t||(e?`${zE}-${e}`:zE),Nu=G.createContext({getPrefixCls:aN,iconPrefixCls:HE}),{Consumer:Lz}=Nu,BE={};function oN(e){const t=G.useContext(Nu),{getPrefixCls:n,direction:r,getPopupContainer:i}=t,a=t[e];return Object.assign(Object.assign({classNames:BE,styles:BE},a),{getPrefixCls:n,direction:r,getPopupContainer:i})}var WE=Pn(function e(){An(this,e)}),GE="CALC_UNIT",sN=new RegExp(GE,"g");function lm(e){return typeof e=="number"?"".concat(e).concat(GE):e}var uN=function(e){$a(n,e);var t=Va(n);function n(r,i){var a;An(this,n),a=t.call(this),re(nt(a),"result",""),re(nt(a),"unitlessCssVar",void 0),re(nt(a),"lowPriority",void 0);var o=Qe(r);return a.unitlessCssVar=i,r instanceof n?a.result="(".concat(r.result,")"):o==="number"?a.result=lm(r):o==="string"&&(a.result=r),a}return Pn(n,[{key:"add",value:function(i){return i instanceof n?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(lm(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof n?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(lm(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var a=this,o=i||{},u=o.unit,l=!0;return typeof u=="boolean"?l=u:Array.from(this.unitlessCssVar).some(function(f){return a.result.includes(f)})&&(l=!1),this.result=this.result.replace(sN,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(WE),lN=function(e){$a(n,e);var t=Va(n);function n(r){var i;return An(this,n),i=t.call(this),re(nt(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return Pn(n,[{key:"add",value:function(i){return i instanceof n?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof n?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof n?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof n?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),n}(WE),cN=function(t,n){var r=t==="css"?uN:lN;return function(i){return new r(i,n)}},QE=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Cr(e){var t=G.useRef();t.current=e;var n=G.useCallback(function(){for(var r,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function Iu(e){var t=G.useRef(!1),n=G.useState(e),r=ke(n,2),i=r[0],a=r[1];G.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function o(u,l){l&&t.current||a(u)}return[i,o]}function cm(e){return e!==void 0}function fN(e,t){var n=t||{},r=n.defaultValue,i=n.value,a=n.onChange,o=n.postState,u=Iu(function(){return cm(i)?i:cm(r)?typeof r=="function"?r():r:e}),l=ke(u,2),f=l[0],d=l[1],h=i!==void 0?i:f,p=o?o(h):h,m=Cr(a),y=Iu([h]),g=ke(y,2),b=g[0],w=g[1];uE(function(){var C=b[0];f!==C&&m(f,C)},[b]),uE(function(){cm(i)||d(i)},[i]);var S=Cr(function(C,T){d(C,T),w([h],T)});return[p,S]}function YE(e,t,n,r){var i=de({},t[e]);if(r!=null&&r.deprecatedTokens){var a=r.deprecatedTokens;a.forEach(function(u){var l=ke(u,2),f=l[0],d=l[1];if(Qt(!(i!=null&&i[f]),"Component Token `".concat(String(f),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(d),"` instead.")),i!=null&&i[f]||i!=null&&i[d]){var h;(h=i[d])!==null&&h!==void 0||(i[d]=i==null?void 0:i[f])}})}var o=de(de({},n),i);return Object.keys(o).forEach(function(u){o[u]===t[u]&&delete o[u]}),o}var fm=!0;function qc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];fm=!1;var r={};return t.forEach(function(i){if(Qe(i)==="object"){var a=Object.keys(i);a.forEach(function(o){Object.defineProperty(r,o,{configurable:!0,enumerable:!0,get:function(){return i[o]}})})}}),fm=!0,r}var KE={};function dN(){}var hN=function(t){var n,r=t,i=dN;return typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(o,u){if(fm){var l;(l=n)===null||l===void 0||l.add(u)}return o[u]}}),i=function(o,u){var l;KE[o]={global:Array.from(n),component:de(de({},(l=KE[o])===null||l===void 0?void 0:l.component),u)}}),{token:r,keys:n,flush:i}};function XE(e,t,n){if(typeof n=="function"){var r;return n(qc(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function pN(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"max(".concat(r.map(function(a){return za(a)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"min(".concat(r.map(function(a){return za(a)}).join(","),")")}}}var vN=1e3*60*10,mN=function(){function e(){An(this,e),re(this,"map",new Map),re(this,"objectIDMap",new WeakMap),re(this,"nextID",0),re(this,"lastAccessBeat",new Map),re(this,"accessBeat",0)}return Pn(e,[{key:"set",value:function(n,r){this.clear();var i=this.getCompositeKey(n);this.map.set(i,r),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),i=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(n){var r=this,i=n.map(function(a){return a&&Qe(a)==="object"?"obj_".concat(r.getObjectID(a)):"".concat(Qe(a),"_").concat(a)});return i.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,a){r-i>vN&&(n.map.delete(a),n.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e}(),ZE=new mN;function gN(e,t){return M.useMemo(function(){var n=ZE.get(t);if(n)return n;var r=e();return ZE.set(t,r),r},t)}var yN=function(){return{}};function bN(e){var t=e.useCSP,n=t===void 0?yN:t,r=e.useToken,i=e.usePrefix,a=e.getResetStyles,o=e.getCommonStyle,u=e.getCompUnitless;function l(p,m,y,g){var b=Array.isArray(p)?p[0]:p;function w(A){return"".concat(String(b)).concat(A.slice(0,1).toUpperCase()).concat(A.slice(1))}var S=(g==null?void 0:g.unitless)||{},C=typeof u=="function"?u(p):{},T=de(de({},C),{},re({},w("zIndexPopup"),!0));Object.keys(S).forEach(function(A){T[w(A)]=S[A]});var _=de(de({},g),{},{unitless:T,prefixToken:w}),x=d(p,m,y,_),k=f(b,y,_);return function(A){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A,N=x(A,L),F=ke(N,2),H=F[1],V=k(L),D=ke(V,2),j=D[0],z=D[1];return[j,H,z]}}function f(p,m,y){var g=y.unitless,b=y.injectStyle,w=b===void 0?!0:b,S=y.prefixToken,C=y.ignore,T=function(k){var A=k.rootCls,L=k.cssVar,N=L===void 0?{}:L,F=r(),H=F.realToken;return LP({path:[p],prefix:N.prefix,key:N.key,unitless:g,ignore:C,token:H,scope:A},function(){var V=XE(p,H,m),D=YE(p,H,V,{deprecatedTokens:y==null?void 0:y.deprecatedTokens});return Object.keys(V).forEach(function(j){D[S(j)]=D[j],delete D[j]}),D}),null},_=function(k){var A=r(),L=A.cssVar;return[function(N){return w&&L?M.createElement(M.Fragment,null,M.createElement(T,{rootCls:k,cssVar:L,component:p}),N):N},L==null?void 0:L.key]};return _}function d(p,m,y){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=Array.isArray(p)?p:[p,p],w=ke(b,1),S=w[0],C=b.join("-"),T=e.layer||{name:"antd"};return function(_){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_,k=r(),A=k.theme,L=k.realToken,N=k.hashId,F=k.token,H=k.cssVar,V=i(),D=V.rootPrefixCls,j=V.iconPrefixCls,z=n(),Q=H?"css":"js",q=gN(function(){var te=new Set;return H&&Object.keys(g.unitless||{}).forEach(function(fe){te.add(Ac(fe,H.prefix)),te.add(Ac(fe,QE(S,H.prefix)))}),cN(Q,te)},[Q,S,H==null?void 0:H.prefix]),J=pN(Q),$=J.max,Y=J.min,ae={theme:A,token:F,hashId:N,nonce:function(){return z.nonce},clientOnly:g.clientOnly,layer:T,order:g.order||-999};typeof a=="function"&&kE(de(de({},ae),{},{clientOnly:!1,path:["Shared",D]}),function(){return a(F,{prefix:{rootPrefixCls:D,iconPrefixCls:j},csp:z})});var ie=kE(de(de({},ae),{},{path:[C,_,j]}),function(){if(g.injectStyle===!1)return[];var te=hN(F),fe=te.token,le=te.flush,me=XE(S,L,y),_e=".".concat(_),be=YE(S,L,me,{deprecatedTokens:g.deprecatedTokens});H&&me&&Qe(me)==="object"&&Object.keys(me).forEach(function(we){me[we]="var(".concat(Ac(we,QE(S,H.prefix)),")")});var ne=qc(fe,{componentCls:_e,prefixCls:_,iconCls:".".concat(j),antCls:".".concat(D),calc:q,max:$,min:Y},H?me:be),ve=m(ne,{hashId:N,prefixCls:_,rootPrefixCls:D,iconPrefixCls:j});le(S,be);var K=typeof o=="function"?o(ne,_,x,g.resetFont):null;return[g.resetStyle===!1?null:K,ve]});return[ie,N]}}function h(p,m,y){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=d(p,m,y,de({resetStyle:!1,order:-998},g)),w=function(C){var T=C.prefixCls,_=C.rootCls,x=_===void 0?T:_;return b(T,x),null};return w.displayName="SubStyle_".concat(String(Array.isArray(p)?p.join("."):p)),w}return{genStyleHooks:l,genSubStyleComponent:h,genComponentStyleHook:d}}const Uc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],_N="5.25.2";function dm(e){return e>=0&&e<=255}function zc(e,t){const{r:n,g:r,b:i,a}=new vn(e).toRgb();if(a<1)return e;const{r:o,g:u,b:l}=new vn(t).toRgb();for(let f=.01;f<=1;f+=.01){const d=Math.round((n-o*(1-f))/f),h=Math.round((r-u*(1-f))/f),p=Math.round((i-l*(1-f))/f);if(dm(d)&&dm(h)&&dm(p))return new vn({r:d,g:h,b:p,a:Math.round(f*100)/100}).toRgbString()}return new vn({r:n,g:r,b:i,a:1}).toRgbString()}var wN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function JE(e){const{override:t}=e,n=wN(e,["override"]),r=Object.assign({},t);Object.keys($c).forEach(p=>{delete r[p]});const i=Object.assign(Object.assign({},n),r),a=480,o=576,u=768,l=992,f=1200,d=1600;if(i.motion===!1){const p="0s";i.motionDurationFast=p,i.motionDurationMid=p,i.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:zc(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:zc(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:zc(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:zc(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
206
206
  0 6px 16px 0 rgba(0, 0, 0, 0.08),
207
207
  0 3px 6px -4px rgba(0, 0, 0, 0.12),
208
208
  0 9px 28px 8px rgba(0, 0, 0, 0.05)
@@ -234,7 +234,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
234
234
  0 -6px 16px 0 rgba(0, 0, 0, 0.08),
235
235
  0 -3px 6px -4px rgba(0, 0, 0, 0.12),
236
236
  0 -9px 28px 8px rgba(0, 0, 0, 0.05)
237
- `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var eS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const tS={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},EN={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},SN={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},nS=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i}=t,a=eS(t,["override"]);let o=Object.assign(Object.assign({},r),{override:i});return o=JE(o),a&&Object.entries(a).forEach(([u,l])=>{const{theme:f}=l,d=eS(l,["theme"]);let h=d;f&&(h=nS(Object.assign(Object.assign({},o),d),{override:d},f)),o[u]=h}),o};function hm(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=M.useContext(iN),a=`${_N}-${t||""}`,o=n||nN,[u,l,f]=aP(o,[$c,e],{salt:a,override:r,getComputedToken:nS,formatToken:JE,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:tS,ignore:EN,preserve:SN}});return[o,f,t?l:"",u,i]}const xN=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),CN=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),TN=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),ON=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:i,o={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let u={};return r!==!1&&(u={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},u),o),{[i]:o})}},kN=e=>({[`.${e}`]:Object.assign(Object.assign({},CN()),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:RN}=bN({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=M.useContext(Nu);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=hm();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=M.useContext(Nu);return e??{}},getResetStyles:(e,t)=>{var n;const r=TN(e);return[r,{"&":r},kN((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:HE)]},getCommonStyle:ON,getCompUnitless:()=>tS});function AN(e,t){return Uc.reduce((n,r)=>{const i=e[`${r}1`],a=e[`${r}3`],o=e[`${r}6`],u=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:u}))},{})}var PN=Q.createContext({}),NN=function(e){$a(n,e);var t=Va(n);function n(){return An(this,n),t.apply(this,arguments)}return Pn(n,[{key:"render",value:function(){return this.props.children}}]),n}(Q.Component);function IN(e){var t=Q.useReducer(function(u){return u+1},0),n=ke(t,2),r=n[1],i=Q.useRef(e),a=Cr(function(){return i.current}),o=Cr(function(u){i.current=typeof u=="function"?u(i.current):u,r()});return[a,o]}var aa="none",Hc="appear",Bc="enter",Wc="leave",rS="none",Qr="prepare",ts="start",ns="active",pm="end",iS="prepared";function aS(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function LN(e,t){var n={animationend:aS("Animation","AnimationEnd"),transitionend:aS("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var FN=LN(ar(),typeof window<"u"?window:{}),oS={};if(ar()){var DN=document.createElement("div");oS=DN.style}var Gc={};function sS(e){if(Gc[e])return Gc[e];var t=FN[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i<r;i+=1){var a=n[i];if(Object.prototype.hasOwnProperty.call(t,a)&&a in oS)return Gc[e]=t[a],Gc[e]}return""}var uS=sS("animationend"),lS=sS("transitionend"),cS=!!(uS&&lS),fS=uS||"animationend",dS=lS||"transitionend";function hS(e,t){if(!e)return null;if(Qe(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const MN=function(e){var t=M.useRef();function n(i){i&&(i.removeEventListener(dS,e),i.removeEventListener(fS,e))}function r(i){t.current&&t.current!==i&&n(t.current),i&&i!==t.current&&(i.addEventListener(dS,e),i.addEventListener(fS,e),t.current=i)}return Q.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var pS=ar()?M.useLayoutEffect:M.useEffect;const jN=function(){var e=Q.useRef(null);function t(){Tc.cancel(e.current)}function n(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=Tc(function(){i<=1?r({isCanceled:function(){return a!==e.current}}):n(r,i-1)});e.current=a}return Q.useEffect(function(){return function(){t()}},[]),[n,t]};var $N=[Qr,ts,ns,pm],VN=[Qr,iS],vS=!1,qN=!0;function mS(e){return e===ns||e===pm}const UN=function(e,t,n){var r=Iu(rS),i=ke(r,2),a=i[0],o=i[1],u=jN(),l=ke(u,2),f=l[0],d=l[1];function h(){o(Qr,!0)}var p=t?VN:$N;return pS(function(){if(a!==rS&&a!==pm){var m=p.indexOf(a),y=p[m+1],g=n(a);g===vS?o(y,!0):y&&f(function(b){function w(){b.isCanceled()||o(y,!0)}g===!0?w():Promise.resolve(g).then(w)})}},[e,a]),Q.useEffect(function(){return function(){d()}},[]),[h,a]};function zN(e,t,n,r){var i=r.motionEnter,a=i===void 0?!0:i,o=r.motionAppear,u=o===void 0?!0:o,l=r.motionLeave,f=l===void 0?!0:l,d=r.motionDeadline,h=r.motionLeaveImmediately,p=r.onAppearPrepare,m=r.onEnterPrepare,y=r.onLeavePrepare,g=r.onAppearStart,b=r.onEnterStart,w=r.onLeaveStart,S=r.onAppearActive,C=r.onEnterActive,T=r.onLeaveActive,_=r.onAppearEnd,x=r.onEnterEnd,k=r.onLeaveEnd,A=r.onVisibleChanged,L=Iu(),N=ke(L,2),F=N[0],H=N[1],V=IN(aa),D=ke(V,2),j=D[0],z=D[1],Y=Iu(null),q=ke(Y,2),J=q[0],$=q[1],K=j(),ae=M.useRef(!1),ie=M.useRef(null);function te(){return n()}var fe=M.useRef(!1);function le(){z(aa),$(null,!0)}var ve=Cr(function(Ve){var et=j();if(et!==aa){var Ee=te();if(!(Ve&&!Ve.deadline&&Ve.target!==Ee)){var Rt=fe.current,Tt;et===Hc&&Rt?Tt=_==null?void 0:_(Ee,Ve):et===Bc&&Rt?Tt=x==null?void 0:x(Ee,Ve):et===Wc&&Rt&&(Tt=k==null?void 0:k(Ee,Ve)),Rt&&Tt!==!1&&le()}}}),_e=MN(ve),be=ke(_e,1),we=be[0],ne=function(et){switch(et){case Hc:return re(re(re({},Qr,p),ts,g),ns,S);case Bc:return re(re(re({},Qr,m),ts,b),ns,C);case Wc:return re(re(re({},Qr,y),ts,w),ns,T);default:return{}}},W=Q.useMemo(function(){return ne(K)},[K]),ye=UN(K,!e,function(Ve){if(Ve===Qr){var et=W[Qr];return et?et(te()):vS}if(Re in W){var Ee;$(((Ee=W[Re])===null||Ee===void 0?void 0:Ee.call(W,te(),null))||null)}return Re===ns&&K!==aa&&(we(te()),d>0&&(clearTimeout(ie.current),ie.current=setTimeout(function(){ve({deadline:!0})},d))),Re===iS&&le(),qN}),ue=ke(ye,2),Te=ue[0],Re=ue[1],Ze=mS(Re);fe.current=Ze;var ft=M.useRef(null);pS(function(){if(!(ae.current&&ft.current===t)){H(t);var Ve=ae.current;ae.current=!0;var et;!Ve&&t&&u&&(et=Hc),Ve&&t&&a&&(et=Bc),(Ve&&!t&&f||!Ve&&h&&!t&&f)&&(et=Wc);var Ee=ne(et);et&&(e||Ee[Qr])?(z(et),Te()):z(aa),ft.current=t}},[t]),M.useEffect(function(){(K===Hc&&!u||K===Bc&&!a||K===Wc&&!f)&&z(aa)},[u,a,f]),M.useEffect(function(){return function(){ae.current=!1,clearTimeout(ie.current)}},[]);var dt=Q.useRef(!1);M.useEffect(function(){F&&(dt.current=!0),F!==void 0&&K===aa&&((dt.current||F)&&(A==null||A(F)),dt.current=!0)},[F,K]);var kt=J;return W[Qr]&&Re===ts&&(kt=de({transition:"none"},kt)),[K,Re,kt,F??t]}function HN(e){var t=e;Qe(e)==="object"&&(t=e.transitionSupport);function n(i,a){return!!(i.motionName&&t&&a!==!1)}var r=Q.forwardRef(function(i,a){var o=i.visible,u=o===void 0?!0:o,l=i.removeOnLeave,f=l===void 0?!0:l,d=i.forceRender,h=i.children,p=i.motionName,m=i.leavedClassName,y=i.eventProps,g=Q.useContext(PN),b=g.motion,w=n(i,b),S=M.useRef(),C=M.useRef();function T(){try{return S.current instanceof HTMLElement?S.current:bc(C.current)}catch{return null}}var _=zN(w,u,T,i),x=ke(_,4),k=x[0],A=x[1],L=x[2],N=x[3],F=Q.useRef(N);N&&(F.current=!0);var H=Q.useCallback(function(q){S.current=q,Cv(a,q)},[a]),V,D=de(de({},y),{},{visible:u});if(!h)V=null;else if(k===aa)N?V=h(de({},D),H):!f&&F.current&&m?V=h(de(de({},D),{},{className:m}),H):d||!f&&!m?V=h(de(de({},D),{},{style:{display:"none"}}),H):V=null;else{var j;A===Qr?j="prepare":mS(A)?j="active":A===ts&&(j="start");var z=hS(p,"".concat(k,"-").concat(j));V=h(de(de({},D),{},{className:Mn(hS(p,k),re(re({},z,z&&j),p,typeof p=="string")),style:L}),H)}if(Q.isValidElement(V)&&_c(V)){var Y=Ov(V);Y||(V=Q.cloneElement(V,{ref:H}))}return Q.createElement(NN,{ref:C},V)});return r.displayName="CSSMotion",r}const vm=HN(cS);var mm="add",gm="keep",ym="remove",bm="removed";function BN(e){var t;return e&&Qe(e)==="object"&&"key"in e?t=e:t={key:e},de(de({},t),{},{key:String(t.key)})}function _m(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(BN)}function WN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=t.length,a=_m(e),o=_m(t);a.forEach(function(f){for(var d=!1,h=r;h<i;h+=1){var p=o[h];if(p.key===f.key){r<h&&(n=n.concat(o.slice(r,h).map(function(m){return de(de({},m),{},{status:mm})})),r=h),n.push(de(de({},p),{},{status:gm})),r+=1,d=!0;break}}d||n.push(de(de({},f),{},{status:ym}))}),r<i&&(n=n.concat(o.slice(r).map(function(f){return de(de({},f),{},{status:mm})})));var u={};n.forEach(function(f){var d=f.key;u[d]=(u[d]||0)+1});var l=Object.keys(u).filter(function(f){return u[f]>1});return l.forEach(function(f){n=n.filter(function(d){var h=d.key,p=d.status;return h!==f||p!==ym}),n.forEach(function(d){d.key===f&&(d.status=gm)})}),n}var GN=["component","children","onVisibleChanged","onAllRemoved"],QN=["status"],YN=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function KN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vm,n=function(r){$a(a,r);var i=Va(a);function a(){var o;An(this,a);for(var u=arguments.length,l=new Array(u),f=0;f<u;f++)l[f]=arguments[f];return o=i.call.apply(i,[this].concat(l)),re(nt(o),"state",{keyEntities:[]}),re(nt(o),"removeKey",function(d){o.setState(function(h){var p=h.keyEntities.map(function(m){return m.key!==d?m:de(de({},m),{},{status:bm})});return{keyEntities:p}},function(){var h=o.state.keyEntities,p=h.filter(function(m){var y=m.status;return y!==bm}).length;p===0&&o.props.onAllRemoved&&o.props.onAllRemoved()})}),o}return Pn(a,[{key:"render",value:function(){var u=this,l=this.state.keyEntities,f=this.props,d=f.component,h=f.children,p=f.onVisibleChanged;f.onAllRemoved;var m=Ua(f,GN),y=d||Q.Fragment,g={};return YN.forEach(function(b){g[b]=m[b],delete m[b]}),delete m.keys,Q.createElement(y,m,l.map(function(b,w){var S=b.status,C=Ua(b,QN),T=S===mm||S===gm;return Q.createElement(t,ii({},g,{key:C.key,visible:T,eventProps:C,onVisibleChanged:function(x){p==null||p(x,{key:C.key}),x||u.removeKey(C.key)}}),function(_,x){return h(de(de({},_),{},{index:w}),x)})}))}}],[{key:"getDerivedStateFromProps",value:function(u,l){var f=u.keys,d=l.keyEntities,h=_m(f),p=WN(d,h);return{keyEntities:p.filter(function(m){var y=d.find(function(g){var b=g.key;return m.key===b});return!(y&&y.status===bm&&m.status===ym)})}}}]),a}(Q.Component);return re(n,"defaultProps",{component:"div"}),n}KN(cS);function gS(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function XN(e){return gS(e)instanceof ShadowRoot}function wm(e){return XN(e)?gS(e):null}function ZN(e){return e&&M.isValidElement(e)&&e.type===M.Fragment}const JN=(e,t,n)=>M.isValidElement(e)?M.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function eI(e,t){return JN(e,e,t)}const Em=M.createContext(void 0);Em.displayName="zIndexContext";const Si=100,tI=Si*10+Si,yS={Modal:Si,Drawer:Si,Popover:Si,Popconfirm:Si,Tooltip:Si,Tour:Si,FloatButton:Si},nI={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function rI(e){return e in yS}const iI=(e,t)=>{const[,n]=hm(),r=M.useContext(Em),i=rI(e);let a;if(t!==void 0)a=[t,t];else{let o=r??0;i?o+=(r?0:n.zIndexPopupBase)+yS[e]:o+=nI[e],a=[r===void 0?t:o,o]}{const o=IE(e),u=n.zIndexPopupBase+tI,l=a[0]||0;o(t!==void 0||l<=u,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return a};function Yr(){Yr=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(N,F,H,V){return Object.defineProperty(N,F,{value:H,enumerable:!V,configurable:!V,writable:!V})}try{l({},"")}catch{l=function(H,V,D){return H[V]=D}}function f(N,F,H,V){var D=F&&F.prototype instanceof p?F:p,j=Object.create(D.prototype);return l(j,"_invoke",function(z,Y,q){var J=1;return function($,K){if(J===3)throw Error("Generator is already running");if(J===4){if($==="throw")throw K;return{value:e,done:!0}}for(q.method=$,q.arg=K;;){var ae=q.delegate;if(ae){var ie=_(ae,q);if(ie){if(ie===h)continue;return ie}}if(q.method==="next")q.sent=q._sent=q.arg;else if(q.method==="throw"){if(J===1)throw J=4,q.arg;q.dispatchException(q.arg)}else q.method==="return"&&q.abrupt("return",q.arg);J=3;var te=d(z,Y,q);if(te.type==="normal"){if(J=q.done?4:2,te.arg===h)continue;return{value:te.arg,done:q.done}}te.type==="throw"&&(J=4,q.method="throw",q.arg=te.arg)}}}(N,H,new A(V||[])),!0),j}function d(N,F,H){try{return{type:"normal",arg:N.call(F,H)}}catch(V){return{type:"throw",arg:V}}}t.wrap=f;var h={};function p(){}function m(){}function y(){}var g={};l(g,a,function(){return this});var b=Object.getPrototypeOf,w=b&&b(b(L([])));w&&w!==n&&r.call(w,a)&&(g=w);var S=y.prototype=p.prototype=Object.create(g);function C(N){["next","throw","return"].forEach(function(F){l(N,F,function(H){return this._invoke(F,H)})})}function T(N,F){function H(D,j,z,Y){var q=d(N[D],N,j);if(q.type!=="throw"){var J=q.arg,$=J.value;return $&&Qe($)=="object"&&r.call($,"__await")?F.resolve($.__await).then(function(K){H("next",K,z,Y)},function(K){H("throw",K,z,Y)}):F.resolve($).then(function(K){J.value=K,z(J)},function(K){return H("throw",K,z,Y)})}Y(q.arg)}var V;l(this,"_invoke",function(D,j){function z(){return new F(function(Y,q){H(D,j,Y,q)})}return V=V?V.then(z,z):z()},!0)}function _(N,F){var H=F.method,V=N.i[H];if(V===e)return F.delegate=null,H==="throw"&&N.i.return&&(F.method="return",F.arg=e,_(N,F),F.method==="throw")||H!=="return"&&(F.method="throw",F.arg=new TypeError("The iterator does not provide a '"+H+"' method")),h;var D=d(V,N.i,F.arg);if(D.type==="throw")return F.method="throw",F.arg=D.arg,F.delegate=null,h;var j=D.arg;return j?j.done?(F[N.r]=j.value,F.next=N.n,F.method!=="return"&&(F.method="next",F.arg=e),F.delegate=null,h):j:(F.method="throw",F.arg=new TypeError("iterator result is not an object"),F.delegate=null,h)}function x(N){this.tryEntries.push(N)}function k(N){var F=N[4]||{};F.type="normal",F.arg=e,N[4]=F}function A(N){this.tryEntries=[[-1]],N.forEach(x,this),this.reset(!0)}function L(N){if(N!=null){var F=N[a];if(F)return F.call(N);if(typeof N.next=="function")return N;if(!isNaN(N.length)){var H=-1,V=function D(){for(;++H<N.length;)if(r.call(N,H))return D.value=N[H],D.done=!1,D;return D.value=e,D.done=!0,D};return V.next=V}}throw new TypeError(Qe(N)+" is not iterable")}return m.prototype=y,l(S,"constructor",y),l(y,"constructor",m),m.displayName=l(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(N){var F=typeof N=="function"&&N.constructor;return!!F&&(F===m||(F.displayName||F.name)==="GeneratorFunction")},t.mark=function(N){return Object.setPrototypeOf?Object.setPrototypeOf(N,y):(N.__proto__=y,l(N,u,"GeneratorFunction")),N.prototype=Object.create(S),N},t.awrap=function(N){return{__await:N}},C(T.prototype),l(T.prototype,o,function(){return this}),t.AsyncIterator=T,t.async=function(N,F,H,V,D){D===void 0&&(D=Promise);var j=new T(f(N,F,H,V),D);return t.isGeneratorFunction(F)?j:j.next().then(function(z){return z.done?z.value:j.next()})},C(S),l(S,u,"Generator"),l(S,a,function(){return this}),l(S,"toString",function(){return"[object Generator]"}),t.keys=function(N){var F=Object(N),H=[];for(var V in F)H.unshift(V);return function D(){for(;H.length;)if((V=H.pop())in F)return D.value=V,D.done=!1,D;return D.done=!0,D}},t.values=L,A.prototype={constructor:A,reset:function(F){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!F)for(var H in this)H.charAt(0)==="t"&&r.call(this,H)&&!isNaN(+H.slice(1))&&(this[H]=e)},stop:function(){this.done=!0;var F=this.tryEntries[0][4];if(F.type==="throw")throw F.arg;return this.rval},dispatchException:function(F){if(this.done)throw F;var H=this;function V($){z.type="throw",z.arg=F,H.next=$}for(var D=H.tryEntries.length-1;D>=0;--D){var j=this.tryEntries[D],z=j[4],Y=this.prev,q=j[1],J=j[2];if(j[0]===-1)return V("end"),!1;if(!q&&!J)throw Error("try statement without catch or finally");if(j[0]!=null&&j[0]<=Y){if(Y<q)return this.method="next",this.arg=e,V(q),!0;if(Y<J)return V(J),!1}}},abrupt:function(F,H){for(var V=this.tryEntries.length-1;V>=0;--V){var D=this.tryEntries[V];if(D[0]>-1&&D[0]<=this.prev&&this.prev<D[2]){var j=D;break}}j&&(F==="break"||F==="continue")&&j[0]<=H&&H<=j[2]&&(j=null);var z=j?j[4]:{};return z.type=F,z.arg=H,j?(this.method="next",this.next=j[2],h):this.complete(z)},complete:function(F,H){if(F.type==="throw")throw F.arg;return F.type==="break"||F.type==="continue"?this.next=F.arg:F.type==="return"?(this.rval=this.arg=F.arg,this.method="return",this.next="end"):F.type==="normal"&&H&&(this.next=H),h},finish:function(F){for(var H=this.tryEntries.length-1;H>=0;--H){var V=this.tryEntries[H];if(V[2]===F)return this.complete(V[4],V[3]),k(V),h}},catch:function(F){for(var H=this.tryEntries.length-1;H>=0;--H){var V=this.tryEntries[H];if(V[0]===F){var D=V[4];if(D.type==="throw"){var j=D.arg;k(V)}return j}}throw Error("illegal catch attempt")},delegateYield:function(F,H,V){return this.delegate={i:L(F),r:H,n:V},this.method==="next"&&(this.arg=e),h}},t}function bS(e,t,n,r,i,a,o){try{var u=e[a](o),l=u.value}catch(f){return void n(f)}u.done?t(l):Promise.resolve(l).then(r,i)}function Lu(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){bS(a,r,i,o,u,"next",l)}function u(l){bS(a,r,i,o,u,"throw",l)}o(void 0)})}}const aI=(e,t,n)=>n!==void 0?n:`${e}-${t}`,oI=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),a=i.width,o=i.height;if(a||o)return!0}}return!1},sI=Q.createContext(null),uI=e=>{const{children:t}=e;return Q.createElement(sI.Provider,{value:null},t)},lI=e=>({animationDuration:e,animationFillMode:"both"}),cI=e=>({animationDuration:e,animationFillMode:"both"}),fI=(e,t,n,r,i=!1)=>{const a=i?"&":"";return{[`
237
+ `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var eS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const tS={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},EN={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},SN={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},nS=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i}=t,a=eS(t,["override"]);let o=Object.assign(Object.assign({},r),{override:i});return o=JE(o),a&&Object.entries(a).forEach(([u,l])=>{const{theme:f}=l,d=eS(l,["theme"]);let h=d;f&&(h=nS(Object.assign(Object.assign({},o),d),{override:d},f)),o[u]=h}),o};function hm(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=M.useContext(iN),a=`${_N}-${t||""}`,o=n||nN,[u,l,f]=aP(o,[$c,e],{salt:a,override:r,getComputedToken:nS,formatToken:JE,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:tS,ignore:EN,preserve:SN}});return[o,f,t?l:"",u,i]}const xN=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),CN=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),TN=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),ON=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:i,o={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let u={};return r!==!1&&(u={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},u),o),{[i]:o})}},kN=e=>({[`.${e}`]:Object.assign(Object.assign({},CN()),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:RN}=bN({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=M.useContext(Nu);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=hm();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=M.useContext(Nu);return e??{}},getResetStyles:(e,t)=>{var n;const r=TN(e);return[r,{"&":r},kN((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:HE)]},getCommonStyle:ON,getCompUnitless:()=>tS});function AN(e,t){return Uc.reduce((n,r)=>{const i=e[`${r}1`],a=e[`${r}3`],o=e[`${r}6`],u=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:u}))},{})}var PN=G.createContext({}),NN=function(e){$a(n,e);var t=Va(n);function n(){return An(this,n),t.apply(this,arguments)}return Pn(n,[{key:"render",value:function(){return this.props.children}}]),n}(G.Component);function IN(e){var t=G.useReducer(function(u){return u+1},0),n=ke(t,2),r=n[1],i=G.useRef(e),a=Cr(function(){return i.current}),o=Cr(function(u){i.current=typeof u=="function"?u(i.current):u,r()});return[a,o]}var aa="none",Hc="appear",Bc="enter",Wc="leave",rS="none",Qr="prepare",ts="start",ns="active",pm="end",iS="prepared";function aS(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function LN(e,t){var n={animationend:aS("Animation","AnimationEnd"),transitionend:aS("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var FN=LN(ar(),typeof window<"u"?window:{}),oS={};if(ar()){var DN=document.createElement("div");oS=DN.style}var Gc={};function sS(e){if(Gc[e])return Gc[e];var t=FN[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i<r;i+=1){var a=n[i];if(Object.prototype.hasOwnProperty.call(t,a)&&a in oS)return Gc[e]=t[a],Gc[e]}return""}var uS=sS("animationend"),lS=sS("transitionend"),cS=!!(uS&&lS),fS=uS||"animationend",dS=lS||"transitionend";function hS(e,t){if(!e)return null;if(Qe(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const MN=function(e){var t=M.useRef();function n(i){i&&(i.removeEventListener(dS,e),i.removeEventListener(fS,e))}function r(i){t.current&&t.current!==i&&n(t.current),i&&i!==t.current&&(i.addEventListener(dS,e),i.addEventListener(fS,e),t.current=i)}return G.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var pS=ar()?M.useLayoutEffect:M.useEffect;const jN=function(){var e=G.useRef(null);function t(){Tc.cancel(e.current)}function n(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=Tc(function(){i<=1?r({isCanceled:function(){return a!==e.current}}):n(r,i-1)});e.current=a}return G.useEffect(function(){return function(){t()}},[]),[n,t]};var $N=[Qr,ts,ns,pm],VN=[Qr,iS],vS=!1,qN=!0;function mS(e){return e===ns||e===pm}const UN=function(e,t,n){var r=Iu(rS),i=ke(r,2),a=i[0],o=i[1],u=jN(),l=ke(u,2),f=l[0],d=l[1];function h(){o(Qr,!0)}var p=t?VN:$N;return pS(function(){if(a!==rS&&a!==pm){var m=p.indexOf(a),y=p[m+1],g=n(a);g===vS?o(y,!0):y&&f(function(b){function w(){b.isCanceled()||o(y,!0)}g===!0?w():Promise.resolve(g).then(w)})}},[e,a]),G.useEffect(function(){return function(){d()}},[]),[h,a]};function zN(e,t,n,r){var i=r.motionEnter,a=i===void 0?!0:i,o=r.motionAppear,u=o===void 0?!0:o,l=r.motionLeave,f=l===void 0?!0:l,d=r.motionDeadline,h=r.motionLeaveImmediately,p=r.onAppearPrepare,m=r.onEnterPrepare,y=r.onLeavePrepare,g=r.onAppearStart,b=r.onEnterStart,w=r.onLeaveStart,S=r.onAppearActive,C=r.onEnterActive,T=r.onLeaveActive,_=r.onAppearEnd,x=r.onEnterEnd,k=r.onLeaveEnd,A=r.onVisibleChanged,L=Iu(),N=ke(L,2),F=N[0],H=N[1],V=IN(aa),D=ke(V,2),j=D[0],z=D[1],Q=Iu(null),q=ke(Q,2),J=q[0],$=q[1],Y=j(),ae=M.useRef(!1),ie=M.useRef(null);function te(){return n()}var fe=M.useRef(!1);function le(){z(aa),$(null,!0)}var me=Cr(function(Me){var et=j();if(et!==aa){var Ee=te();if(!(Me&&!Me.deadline&&Me.target!==Ee)){var jt=fe.current,Ct;et===Hc&&jt?Ct=_==null?void 0:_(Ee,Me):et===Bc&&jt?Ct=x==null?void 0:x(Ee,Me):et===Wc&&jt&&(Ct=k==null?void 0:k(Ee,Me)),jt&&Ct!==!1&&le()}}}),_e=MN(me),be=ke(_e,1),ne=be[0],ve=function(et){switch(et){case Hc:return re(re(re({},Qr,p),ts,g),ns,S);case Bc:return re(re(re({},Qr,m),ts,b),ns,C);case Wc:return re(re(re({},Qr,y),ts,w),ns,T);default:return{}}},K=G.useMemo(function(){return ve(Y)},[Y]),we=UN(Y,!e,function(Me){if(Me===Qr){var et=K[Qr];return et?et(te()):vS}if(Ie in K){var Ee;$(((Ee=K[Ie])===null||Ee===void 0?void 0:Ee.call(K,te(),null))||null)}return Ie===ns&&Y!==aa&&(ne(te()),d>0&&(clearTimeout(ie.current),ie.current=setTimeout(function(){me({deadline:!0})},d))),Ie===iS&&le(),qN}),ue=ke(we,2),Te=ue[0],Ie=ue[1],Je=mS(Ie);fe.current=Je;var xt=M.useRef(null);pS(function(){if(!(ae.current&&xt.current===t)){H(t);var Me=ae.current;ae.current=!0;var et;!Me&&t&&u&&(et=Hc),Me&&t&&a&&(et=Bc),(Me&&!t&&f||!Me&&h&&!t&&f)&&(et=Wc);var Ee=ve(et);et&&(e||Ee[Qr])?(z(et),Te()):z(aa),xt.current=t}},[t]),M.useEffect(function(){(Y===Hc&&!u||Y===Bc&&!a||Y===Wc&&!f)&&z(aa)},[u,a,f]),M.useEffect(function(){return function(){ae.current=!1,clearTimeout(ie.current)}},[]);var Ot=G.useRef(!1);M.useEffect(function(){F&&(Ot.current=!0),F!==void 0&&Y===aa&&((Ot.current||F)&&(A==null||A(F)),Ot.current=!0)},[F,Y]);var Vt=J;return K[Qr]&&Ie===ts&&(Vt=de({transition:"none"},Vt)),[Y,Ie,Vt,F??t]}function HN(e){var t=e;Qe(e)==="object"&&(t=e.transitionSupport);function n(i,a){return!!(i.motionName&&t&&a!==!1)}var r=G.forwardRef(function(i,a){var o=i.visible,u=o===void 0?!0:o,l=i.removeOnLeave,f=l===void 0?!0:l,d=i.forceRender,h=i.children,p=i.motionName,m=i.leavedClassName,y=i.eventProps,g=G.useContext(PN),b=g.motion,w=n(i,b),S=M.useRef(),C=M.useRef();function T(){try{return S.current instanceof HTMLElement?S.current:bc(C.current)}catch{return null}}var _=zN(w,u,T,i),x=ke(_,4),k=x[0],A=x[1],L=x[2],N=x[3],F=G.useRef(N);N&&(F.current=!0);var H=G.useCallback(function(q){S.current=q,Cv(a,q)},[a]),V,D=de(de({},y),{},{visible:u});if(!h)V=null;else if(k===aa)N?V=h(de({},D),H):!f&&F.current&&m?V=h(de(de({},D),{},{className:m}),H):d||!f&&!m?V=h(de(de({},D),{},{style:{display:"none"}}),H):V=null;else{var j;A===Qr?j="prepare":mS(A)?j="active":A===ts&&(j="start");var z=hS(p,"".concat(k,"-").concat(j));V=h(de(de({},D),{},{className:Mn(hS(p,k),re(re({},z,z&&j),p,typeof p=="string")),style:L}),H)}if(G.isValidElement(V)&&_c(V)){var Q=Ov(V);Q||(V=G.cloneElement(V,{ref:H}))}return G.createElement(NN,{ref:C},V)});return r.displayName="CSSMotion",r}const vm=HN(cS);var mm="add",gm="keep",ym="remove",bm="removed";function BN(e){var t;return e&&Qe(e)==="object"&&"key"in e?t=e:t={key:e},de(de({},t),{},{key:String(t.key)})}function _m(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(BN)}function WN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=t.length,a=_m(e),o=_m(t);a.forEach(function(f){for(var d=!1,h=r;h<i;h+=1){var p=o[h];if(p.key===f.key){r<h&&(n=n.concat(o.slice(r,h).map(function(m){return de(de({},m),{},{status:mm})})),r=h),n.push(de(de({},p),{},{status:gm})),r+=1,d=!0;break}}d||n.push(de(de({},f),{},{status:ym}))}),r<i&&(n=n.concat(o.slice(r).map(function(f){return de(de({},f),{},{status:mm})})));var u={};n.forEach(function(f){var d=f.key;u[d]=(u[d]||0)+1});var l=Object.keys(u).filter(function(f){return u[f]>1});return l.forEach(function(f){n=n.filter(function(d){var h=d.key,p=d.status;return h!==f||p!==ym}),n.forEach(function(d){d.key===f&&(d.status=gm)})}),n}var GN=["component","children","onVisibleChanged","onAllRemoved"],QN=["status"],YN=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function KN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vm,n=function(r){$a(a,r);var i=Va(a);function a(){var o;An(this,a);for(var u=arguments.length,l=new Array(u),f=0;f<u;f++)l[f]=arguments[f];return o=i.call.apply(i,[this].concat(l)),re(nt(o),"state",{keyEntities:[]}),re(nt(o),"removeKey",function(d){o.setState(function(h){var p=h.keyEntities.map(function(m){return m.key!==d?m:de(de({},m),{},{status:bm})});return{keyEntities:p}},function(){var h=o.state.keyEntities,p=h.filter(function(m){var y=m.status;return y!==bm}).length;p===0&&o.props.onAllRemoved&&o.props.onAllRemoved()})}),o}return Pn(a,[{key:"render",value:function(){var u=this,l=this.state.keyEntities,f=this.props,d=f.component,h=f.children,p=f.onVisibleChanged;f.onAllRemoved;var m=Ua(f,GN),y=d||G.Fragment,g={};return YN.forEach(function(b){g[b]=m[b],delete m[b]}),delete m.keys,G.createElement(y,m,l.map(function(b,w){var S=b.status,C=Ua(b,QN),T=S===mm||S===gm;return G.createElement(t,ii({},g,{key:C.key,visible:T,eventProps:C,onVisibleChanged:function(x){p==null||p(x,{key:C.key}),x||u.removeKey(C.key)}}),function(_,x){return h(de(de({},_),{},{index:w}),x)})}))}}],[{key:"getDerivedStateFromProps",value:function(u,l){var f=u.keys,d=l.keyEntities,h=_m(f),p=WN(d,h);return{keyEntities:p.filter(function(m){var y=d.find(function(g){var b=g.key;return m.key===b});return!(y&&y.status===bm&&m.status===ym)})}}}]),a}(G.Component);return re(n,"defaultProps",{component:"div"}),n}KN(cS);function gS(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function XN(e){return gS(e)instanceof ShadowRoot}function wm(e){return XN(e)?gS(e):null}function ZN(e){return e&&M.isValidElement(e)&&e.type===M.Fragment}const JN=(e,t,n)=>M.isValidElement(e)?M.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function eI(e,t){return JN(e,e,t)}const Em=M.createContext(void 0);Em.displayName="zIndexContext";const Si=100,tI=Si*10+Si,yS={Modal:Si,Drawer:Si,Popover:Si,Popconfirm:Si,Tooltip:Si,Tour:Si,FloatButton:Si},nI={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function rI(e){return e in yS}const iI=(e,t)=>{const[,n]=hm(),r=M.useContext(Em),i=rI(e);let a;if(t!==void 0)a=[t,t];else{let o=r??0;i?o+=(r?0:n.zIndexPopupBase)+yS[e]:o+=nI[e],a=[r===void 0?t:o,o]}{const o=IE(e),u=n.zIndexPopupBase+tI,l=a[0]||0;o(t!==void 0||l<=u,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return a};function Yr(){Yr=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(N,F,H,V){return Object.defineProperty(N,F,{value:H,enumerable:!V,configurable:!V,writable:!V})}try{l({},"")}catch{l=function(H,V,D){return H[V]=D}}function f(N,F,H,V){var D=F&&F.prototype instanceof p?F:p,j=Object.create(D.prototype);return l(j,"_invoke",function(z,Q,q){var J=1;return function($,Y){if(J===3)throw Error("Generator is already running");if(J===4){if($==="throw")throw Y;return{value:e,done:!0}}for(q.method=$,q.arg=Y;;){var ae=q.delegate;if(ae){var ie=_(ae,q);if(ie){if(ie===h)continue;return ie}}if(q.method==="next")q.sent=q._sent=q.arg;else if(q.method==="throw"){if(J===1)throw J=4,q.arg;q.dispatchException(q.arg)}else q.method==="return"&&q.abrupt("return",q.arg);J=3;var te=d(z,Q,q);if(te.type==="normal"){if(J=q.done?4:2,te.arg===h)continue;return{value:te.arg,done:q.done}}te.type==="throw"&&(J=4,q.method="throw",q.arg=te.arg)}}}(N,H,new A(V||[])),!0),j}function d(N,F,H){try{return{type:"normal",arg:N.call(F,H)}}catch(V){return{type:"throw",arg:V}}}t.wrap=f;var h={};function p(){}function m(){}function y(){}var g={};l(g,a,function(){return this});var b=Object.getPrototypeOf,w=b&&b(b(L([])));w&&w!==n&&r.call(w,a)&&(g=w);var S=y.prototype=p.prototype=Object.create(g);function C(N){["next","throw","return"].forEach(function(F){l(N,F,function(H){return this._invoke(F,H)})})}function T(N,F){function H(D,j,z,Q){var q=d(N[D],N,j);if(q.type!=="throw"){var J=q.arg,$=J.value;return $&&Qe($)=="object"&&r.call($,"__await")?F.resolve($.__await).then(function(Y){H("next",Y,z,Q)},function(Y){H("throw",Y,z,Q)}):F.resolve($).then(function(Y){J.value=Y,z(J)},function(Y){return H("throw",Y,z,Q)})}Q(q.arg)}var V;l(this,"_invoke",function(D,j){function z(){return new F(function(Q,q){H(D,j,Q,q)})}return V=V?V.then(z,z):z()},!0)}function _(N,F){var H=F.method,V=N.i[H];if(V===e)return F.delegate=null,H==="throw"&&N.i.return&&(F.method="return",F.arg=e,_(N,F),F.method==="throw")||H!=="return"&&(F.method="throw",F.arg=new TypeError("The iterator does not provide a '"+H+"' method")),h;var D=d(V,N.i,F.arg);if(D.type==="throw")return F.method="throw",F.arg=D.arg,F.delegate=null,h;var j=D.arg;return j?j.done?(F[N.r]=j.value,F.next=N.n,F.method!=="return"&&(F.method="next",F.arg=e),F.delegate=null,h):j:(F.method="throw",F.arg=new TypeError("iterator result is not an object"),F.delegate=null,h)}function x(N){this.tryEntries.push(N)}function k(N){var F=N[4]||{};F.type="normal",F.arg=e,N[4]=F}function A(N){this.tryEntries=[[-1]],N.forEach(x,this),this.reset(!0)}function L(N){if(N!=null){var F=N[a];if(F)return F.call(N);if(typeof N.next=="function")return N;if(!isNaN(N.length)){var H=-1,V=function D(){for(;++H<N.length;)if(r.call(N,H))return D.value=N[H],D.done=!1,D;return D.value=e,D.done=!0,D};return V.next=V}}throw new TypeError(Qe(N)+" is not iterable")}return m.prototype=y,l(S,"constructor",y),l(y,"constructor",m),m.displayName=l(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(N){var F=typeof N=="function"&&N.constructor;return!!F&&(F===m||(F.displayName||F.name)==="GeneratorFunction")},t.mark=function(N){return Object.setPrototypeOf?Object.setPrototypeOf(N,y):(N.__proto__=y,l(N,u,"GeneratorFunction")),N.prototype=Object.create(S),N},t.awrap=function(N){return{__await:N}},C(T.prototype),l(T.prototype,o,function(){return this}),t.AsyncIterator=T,t.async=function(N,F,H,V,D){D===void 0&&(D=Promise);var j=new T(f(N,F,H,V),D);return t.isGeneratorFunction(F)?j:j.next().then(function(z){return z.done?z.value:j.next()})},C(S),l(S,u,"Generator"),l(S,a,function(){return this}),l(S,"toString",function(){return"[object Generator]"}),t.keys=function(N){var F=Object(N),H=[];for(var V in F)H.unshift(V);return function D(){for(;H.length;)if((V=H.pop())in F)return D.value=V,D.done=!1,D;return D.done=!0,D}},t.values=L,A.prototype={constructor:A,reset:function(F){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!F)for(var H in this)H.charAt(0)==="t"&&r.call(this,H)&&!isNaN(+H.slice(1))&&(this[H]=e)},stop:function(){this.done=!0;var F=this.tryEntries[0][4];if(F.type==="throw")throw F.arg;return this.rval},dispatchException:function(F){if(this.done)throw F;var H=this;function V($){z.type="throw",z.arg=F,H.next=$}for(var D=H.tryEntries.length-1;D>=0;--D){var j=this.tryEntries[D],z=j[4],Q=this.prev,q=j[1],J=j[2];if(j[0]===-1)return V("end"),!1;if(!q&&!J)throw Error("try statement without catch or finally");if(j[0]!=null&&j[0]<=Q){if(Q<q)return this.method="next",this.arg=e,V(q),!0;if(Q<J)return V(J),!1}}},abrupt:function(F,H){for(var V=this.tryEntries.length-1;V>=0;--V){var D=this.tryEntries[V];if(D[0]>-1&&D[0]<=this.prev&&this.prev<D[2]){var j=D;break}}j&&(F==="break"||F==="continue")&&j[0]<=H&&H<=j[2]&&(j=null);var z=j?j[4]:{};return z.type=F,z.arg=H,j?(this.method="next",this.next=j[2],h):this.complete(z)},complete:function(F,H){if(F.type==="throw")throw F.arg;return F.type==="break"||F.type==="continue"?this.next=F.arg:F.type==="return"?(this.rval=this.arg=F.arg,this.method="return",this.next="end"):F.type==="normal"&&H&&(this.next=H),h},finish:function(F){for(var H=this.tryEntries.length-1;H>=0;--H){var V=this.tryEntries[H];if(V[2]===F)return this.complete(V[4],V[3]),k(V),h}},catch:function(F){for(var H=this.tryEntries.length-1;H>=0;--H){var V=this.tryEntries[H];if(V[0]===F){var D=V[4];if(D.type==="throw"){var j=D.arg;k(V)}return j}}throw Error("illegal catch attempt")},delegateYield:function(F,H,V){return this.delegate={i:L(F),r:H,n:V},this.method==="next"&&(this.arg=e),h}},t}function bS(e,t,n,r,i,a,o){try{var u=e[a](o),l=u.value}catch(f){return void n(f)}u.done?t(l):Promise.resolve(l).then(r,i)}function Lu(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){bS(a,r,i,o,u,"next",l)}function u(l){bS(a,r,i,o,u,"throw",l)}o(void 0)})}}const aI=(e,t,n)=>n!==void 0?n:`${e}-${t}`,oI=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),a=i.width,o=i.height;if(a||o)return!0}}return!1},sI=G.createContext(null),uI=e=>{const{children:t}=e;return G.createElement(sI.Provider,{value:null},t)},lI=e=>({animationDuration:e,animationFillMode:"both"}),cI=e=>({animationDuration:e,animationFillMode:"both"}),fI=(e,t,n,r,i=!1)=>{const a=i?"&":"";return{[`
238
238
  ${a}${e}-enter,
239
239
  ${a}${e}-appear
240
240
  `]:Object.assign(Object.assign({},lI(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},cI(r)),{animationPlayState:"paused"}),[`
@@ -243,15 +243,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
243
243
  `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},dI=new Sr("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),hI=new Sr("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),_S=new Sr("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),wS=new Sr("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),pI=new Sr("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),vI=new Sr("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),mI=new Sr("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),gI=new Sr("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),yI=new Sr("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),bI=new Sr("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),_I=new Sr("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),wI=new Sr("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),EI={zoom:{inKeyframes:dI,outKeyframes:hI},"zoom-big":{inKeyframes:_S,outKeyframes:wS},"zoom-big-fast":{inKeyframes:_S,outKeyframes:wS},"zoom-left":{inKeyframes:mI,outKeyframes:gI},"zoom-right":{inKeyframes:yI,outKeyframes:bI},"zoom-up":{inKeyframes:pI,outKeyframes:vI},"zoom-down":{inKeyframes:_I,outKeyframes:wI}},SI=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=EI[t];return[fI(r,i,a,e.motionDurationFast),{[`
244
244
  ${r}-enter,
245
245
  ${r}-appear
246
- `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var ES=Q.createContext(null),SS=[];function xI(e,t){var n=Q.useState(function(){if(!ar())return null;var y=document.createElement("div");return t&&y.setAttribute("data-debug",t),y}),r=ke(n,1),i=r[0],a=Q.useRef(!1),o=Q.useContext(ES),u=Q.useState(SS),l=ke(u,2),f=l[0],d=l[1],h=o||(a.current?void 0:function(y){d(function(g){var b=[y].concat(De(g));return b})});function p(){i.parentElement||document.body.appendChild(i),a.current=!0}function m(){var y;(y=i.parentElement)===null||y===void 0||y.removeChild(i),a.current=!1}return jn(function(){return e?o?o(p):p():m(),m},[e]),jn(function(){f.length&&(f.forEach(function(y){return y()}),d(SS))},[f]),[i,h]}function CI(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var i,a;if(e){var o=getComputedStyle(e);r.scrollbarColor=o.scrollbarColor,r.scrollbarWidth=o.scrollbarWidth;var u=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(u.width,10),f=parseInt(u.height,10);try{var d=l?"width: ".concat(u.width,";"):"",h=f?"height: ".concat(u.height,";"):"";qa(`
246
+ `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var ES=G.createContext(null),SS=[];function xI(e,t){var n=G.useState(function(){if(!ar())return null;var y=document.createElement("div");return t&&y.setAttribute("data-debug",t),y}),r=ke(n,1),i=r[0],a=G.useRef(!1),o=G.useContext(ES),u=G.useState(SS),l=ke(u,2),f=l[0],d=l[1],h=o||(a.current?void 0:function(y){d(function(g){var b=[y].concat(De(g));return b})});function p(){i.parentElement||document.body.appendChild(i),a.current=!0}function m(){var y;(y=i.parentElement)===null||y===void 0||y.removeChild(i),a.current=!1}return jn(function(){return e?o?o(p):p():m(),m},[e]),jn(function(){f.length&&(f.forEach(function(y){return y()}),d(SS))},[f]),[i,h]}function CI(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var i,a;if(e){var o=getComputedStyle(e);r.scrollbarColor=o.scrollbarColor,r.scrollbarWidth=o.scrollbarWidth;var u=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(u.width,10),f=parseInt(u.height,10);try{var d=l?"width: ".concat(u.width,";"):"",h=f?"height: ".concat(u.height,";"):"";qa(`
247
247
  #`.concat(t,`::-webkit-scrollbar {
248
248
  `).concat(d,`
249
249
  `).concat(h,`
250
- }`),t)}catch(y){console.error(y),i=l,a=f}}document.body.appendChild(n);var p=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,m=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Cu(t),{width:p,height:m}}function TI(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:CI(e)}function OI(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var kI="rc-util-locker-".concat(Date.now()),xS=0;function RI(e){var t=!!e,n=Q.useState(function(){return xS+=1,"".concat(kI,"_").concat(xS)}),r=ke(n,1),i=r[0];jn(function(){if(t){var a=TI(document.body).width,o=OI();qa(`
250
+ }`),t)}catch(y){console.error(y),i=l,a=f}}document.body.appendChild(n);var p=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,m=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Cu(t),{width:p,height:m}}function TI(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:CI(e)}function OI(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var kI="rc-util-locker-".concat(Date.now()),xS=0;function RI(e){var t=!!e,n=G.useState(function(){return xS+=1,"".concat(kI,"_").concat(xS)}),r=ke(n,1),i=r[0];jn(function(){if(t){var a=TI(document.body).width,o=OI();qa(`
251
251
  html body {
252
252
  overflow-y: hidden;
253
253
  `.concat(o?"width: calc(100% - ".concat(a,"px);"):"",`
254
- }`),i)}else Cu(i);return function(){Cu(i)}},[t,i])}var AI=!1;function PI(e){return AI}var CS=function(t){return t===!1?!1:!ar()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Sm=Q.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer,a=e.debug,o=e.autoDestroy,u=o===void 0?!0:o,l=e.children,f=Q.useState(n),d=ke(f,2),h=d[0],p=d[1],m=h||n;Qt(ar()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),Q.useEffect(function(){(u||n)&&p(n)},[n,u]);var y=Q.useState(function(){return CS(i)}),g=ke(y,2),b=g[0],w=g[1];Q.useEffect(function(){var H=CS(i);w(H??null)});var S=xI(m&&!b,a),C=ke(S,2),T=C[0],_=C[1],x=b??T;RI(r&&n&&ar()&&(x===T||x===document.body));var k=null;if(l&&_c(l)&&t){var A=l;k=A.ref}var L=Tv(k,t);if(!m||!ar()||b===void 0)return null;var N=x===!1||PI(),F=l;return t&&(F=Q.cloneElement(l,{ref:L})),Q.createElement(ES.Provider,{value:_},N?F:_i.createPortal(F,x))});Sm.displayName="Portal";function NI(){var e=de({},Q);return e.useId}var TS=0,OS=NI();const kS=OS?function(t){var n=OS();return t||n}:function(t){var n=Q.useState("ssr-id"),r=ke(n,2),i=r[0],a=r[1];return Q.useEffect(function(){var o=TS;TS+=1,a("rc_unique_".concat(o))},[]),t||i};var Wa="RC_FORM_INTERNAL_HOOKS",It=function(){Qt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},rs=Q.createContext({getFieldValue:It,getFieldsValue:It,getFieldError:It,getFieldWarning:It,getFieldsError:It,isFieldsTouched:It,isFieldTouched:It,isFieldValidating:It,isFieldsValidating:It,resetFields:It,setFields:It,setFieldValue:It,setFieldsValue:It,validateFields:It,submit:It,getInternalHooks:function(){return It(),{dispatch:It,initEntityValue:It,registerField:It,useSubscribe:It,setInitialValues:It,destroyForm:It,setCallbacks:It,registerWatch:It,getFields:It,setValidateMessages:It,setPreserve:It,getInitialValue:It}}}),Qc=Q.createContext(null);function xm(e){return e==null?[]:Array.isArray(e)?e:[e]}function II(e){return e&&!!e._init}function Cm(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Tm=Cm();function LI(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function FI(e,t,n){if(Av())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Eu(i,n.prototype),i}function Om(e){var t=typeof Map=="function"?new Map:void 0;return Om=function(r){if(r===null||!LI(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return FI(r,arguments,Su(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Eu(i,r)},Om(e)}var RS={NODE_ENV:'"production"'},DI=/%[sdj%]/g,AS=function(){};typeof process<"u"&&RS&&RS.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(AS=function(t,n){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function km(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function or(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,a=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var o=e.replace(DI,function(u){if(u==="%%")return"%";if(i>=a)return u;switch(u){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return u}});return o}return e}function MI(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function ln(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||MI(t)&&typeof e=="string"&&!e)}function jI(e,t,n){var r=[],i=0,a=e.length;function o(u){r.push.apply(r,De(u||[])),i++,i===a&&n(r)}e.forEach(function(u){t(u,o)})}function PS(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}var u=r;r=r+1,u<i?t(e[u],a):n([])}a([])}function $I(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,De(e[n]||[]))}),t}var NS=function(e){$a(n,e);var t=Va(n);function n(r,i){var a;return An(this,n),a=t.call(this,"Async Validation Error"),re(nt(a),"errors",void 0),re(nt(a),"fields",void 0),a.errors=r,a.fields=i,a}return Pn(n)}(Om(Error));function VI(e,t,n,r,i){if(t.first){var a=new Promise(function(p,m){var y=function(w){return r(w),w.length?m(new NS(w,km(w))):p(i)},g=$I(e);PS(g,n,y)});return a.catch(function(p){return p}),a}var o=t.firstFields===!0?Object.keys(e):t.firstFields||[],u=Object.keys(e),l=u.length,f=0,d=[],h=new Promise(function(p,m){var y=function(b){if(d.push.apply(d,b),f++,f===l)return r(d),d.length?m(new NS(d,km(d))):p(i)};u.length||(r(d),p(i)),u.forEach(function(g){var b=e[g];o.indexOf(g)!==-1?PS(b,n,y):jI(b,n,y)})});return h.catch(function(p){return p}),h}function qI(e){return!!(e&&e.message!==void 0)}function UI(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function IS(e,t){return function(n){var r;return e.fullFields?r=UI(t,e.fullFields):r=t[n.field||e.fullField],qI(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function LS(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];Qe(r)==="object"&&Qe(e[n])==="object"?e[n]=de(de({},e[n]),r):e[n]=r}}return e}var is="enum",zI=function(t,n,r,i,a){t[is]=Array.isArray(t[is])?t[is]:[],t[is].indexOf(n)===-1&&i.push(or(a.messages[is],t.fullField,t[is].join(", ")))},HI=function(t,n,r,i,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(or(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(n)||i.push(or(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},BI=function(t,n,r,i,a){var o=typeof t.len=="number",u=typeof t.min=="number",l=typeof t.max=="number",f=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,h=null,p=typeof n=="number",m=typeof n=="string",y=Array.isArray(n);if(p?h="number":m?h="string":y&&(h="array"),!h)return!1;y&&(d=n.length),m&&(d=n.replace(f,"_").length),o?d!==t.len&&i.push(or(a.messages[h].len,t.fullField,t.len)):u&&!l&&d<t.min?i.push(or(a.messages[h].min,t.fullField,t.min)):l&&!u&&d>t.max?i.push(or(a.messages[h].max,t.fullField,t.max)):u&&l&&(d<t.min||d>t.max)&&i.push(or(a.messages[h].range,t.fullField,t.min,t.max))},FS=function(t,n,r,i,a,o){t.required&&(!r.hasOwnProperty(t.field)||ln(n,o||t.type))&&i.push(or(a.messages.required,t.fullField))},Yc;const WI=function(){if(Yc)return Yc;var e="[a-fA-F\\d:]",t=function(x){return x&&x.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",o="(?:".concat(i.join("|"),")").concat(a),u=new RegExp("(?:^".concat(n,"$)|(?:^").concat(o,"$)")),l=new RegExp("^".concat(n,"$")),f=new RegExp("^".concat(o,"$")),d=function(x){return x&&x.exact?u:new RegExp("(?:".concat(t(x)).concat(n).concat(t(x),")|(?:").concat(t(x)).concat(o).concat(t(x),")"),"g")};d.v4=function(_){return _&&_.exact?l:new RegExp("".concat(t(_)).concat(n).concat(t(_)),"g")},d.v6=function(_){return _&&_.exact?f:new RegExp("".concat(t(_)).concat(o).concat(t(_)),"g")};var h="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",m=d.v4().source,y=d.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",b="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",w="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",S="(?::\\d{2,5})?",C='(?:[/?#][^\\s"]*)?',T="(?:".concat(h,"|www\\.)").concat(p,"(?:localhost|").concat(m,"|").concat(y,"|").concat(g).concat(b).concat(w,")").concat(S).concat(C);return Yc=new RegExp("(?:^".concat(T,"$)"),"i"),Yc};var DS={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Fu={integer:function(t){return Fu.number(t)&&parseInt(t,10)===t},float:function(t){return Fu.number(t)&&!Fu.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return Qe(t)==="object"&&!Fu.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(DS.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(WI())},hex:function(t){return typeof t=="string"&&!!t.match(DS.hex)}},GI=function(t,n,r,i,a){if(t.required&&n===void 0){FS(t,n,r,i,a);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],u=t.type;o.indexOf(u)>-1?Fu[u](n)||i.push(or(a.messages.types[u],t.fullField,t.type)):u&&Qe(n)!==t.type&&i.push(or(a.messages.types[u],t.fullField,t.type))},QI=function(t,n,r,i,a){(/^\s+$/.test(n)||n==="")&&i.push(or(a.messages.whitespace,t.fullField))};const ut={required:FS,whitespace:QI,type:GI,range:BI,enum:zI,pattern:HI};var YI=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(ln(n)&&!t.required)return r();ut.required(t,n,i,o,a)}r(o)},KI=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(n==null&&!t.required)return r();ut.required(t,n,i,o,a,"array"),n!=null&&(ut.type(t,n,i,o,a),ut.range(t,n,i,o,a))}r(o)},XI=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(ln(n)&&!t.required)return r();ut.required(t,n,i,o,a),n!==void 0&&ut.type(t,n,i,o,a)}r(o)},ZI=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(ln(n,"date")&&!t.required)return r();if(ut.required(t,n,i,o,a),!ln(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),ut.type(t,l,i,o,a),l&&ut.range(t,l.getTime(),i,o,a)}}r(o)},JI="enum",eL=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(ln(n)&&!t.required)return r();ut.required(t,n,i,o,a),n!==void 0&&ut[JI](t,n,i,o,a)}r(o)},tL=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(ln(n)&&!t.required)return r();ut.required(t,n,i,o,a),n!==void 0&&(ut.type(t,n,i,o,a),ut.range(t,n,i,o,a))}r(o)},nL=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(ln(n)&&!t.required)return r();ut.required(t,n,i,o,a),n!==void 0&&(ut.type(t,n,i,o,a),ut.range(t,n,i,o,a))}r(o)},rL=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(ln(n)&&!t.required)return r();ut.required(t,n,i,o,a),n!==void 0&&ut.type(t,n,i,o,a)}r(o)},iL=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(n===""&&(n=void 0),ln(n)&&!t.required)return r();ut.required(t,n,i,o,a),n!==void 0&&(ut.type(t,n,i,o,a),ut.range(t,n,i,o,a))}r(o)},aL=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(ln(n)&&!t.required)return r();ut.required(t,n,i,o,a),n!==void 0&&ut.type(t,n,i,o,a)}r(o)},oL=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(ln(n,"string")&&!t.required)return r();ut.required(t,n,i,o,a),ln(n,"string")||ut.pattern(t,n,i,o,a)}r(o)},sL=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(ln(n)&&!t.required)return r();ut.required(t,n,i,o,a),ln(n)||ut.type(t,n,i,o,a)}r(o)},uL=function(t,n,r,i,a){var o=[],u=Array.isArray(n)?"array":Qe(n);ut.required(t,n,i,o,a,u),r(o)},lL=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(ln(n,"string")&&!t.required)return r();ut.required(t,n,i,o,a,"string"),ln(n,"string")||(ut.type(t,n,i,o,a),ut.range(t,n,i,o,a),ut.pattern(t,n,i,o,a),t.whitespace===!0&&ut.whitespace(t,n,i,o,a))}r(o)},Rm=function(t,n,r,i,a){var o=t.type,u=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(ln(n,o)&&!t.required)return r();ut.required(t,n,i,u,a,o),ln(n,o)||ut.type(t,n,i,u,a)}r(u)};const Du={string:lL,method:rL,number:iL,boolean:XI,regexp:sL,integer:nL,float:tL,array:KI,object:aL,enum:eL,pattern:oL,date:ZI,url:Rm,hex:Rm,email:Rm,required:uL,any:YI};var Mu=function(){function e(t){An(this,e),re(this,"rules",null),re(this,"_messages",Tm),this.define(t)}return Pn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Qe(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var a=n[i];r.rules[i]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(n){return n&&(this._messages=LS(Cm(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},o=n,u=i,l=a;if(typeof u=="function"&&(l=u,u={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,o),Promise.resolve(o);function f(y){var g=[],b={};function w(C){if(Array.isArray(C)){var T;g=(T=g).concat.apply(T,De(C))}else g.push(C)}for(var S=0;S<y.length;S++)w(y[S]);g.length?(b=km(g),l(g,b)):l(null,o)}if(u.messages){var d=this.messages();d===Tm&&(d=Cm()),LS(d,u.messages),u.messages=d}else u.messages=this.messages();var h={},p=u.keys||Object.keys(this.rules);p.forEach(function(y){var g=r.rules[y],b=o[y];g.forEach(function(w){var S=w;typeof S.transform=="function"&&(o===n&&(o=de({},o)),b=o[y]=S.transform(b),b!=null&&(S.type=S.type||(Array.isArray(b)?"array":Qe(b)))),typeof S=="function"?S={validator:S}:S=de({},S),S.validator=r.getValidationMethod(S),S.validator&&(S.field=y,S.fullField=S.fullField||y,S.type=r.getType(S),h[y]=h[y]||[],h[y].push({rule:S,value:b,source:o,field:y}))})});var m={};return VI(h,u,function(y,g){var b=y.rule,w=(b.type==="object"||b.type==="array")&&(Qe(b.fields)==="object"||Qe(b.defaultField)==="object");w=w&&(b.required||!b.required&&y.value),b.field=y.field;function S(k,A){return de(de({},A),{},{fullField:"".concat(b.fullField,".").concat(k),fullFields:b.fullFields?[].concat(De(b.fullFields),[k]):[k]})}function C(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],A=Array.isArray(k)?k:[k];!u.suppressWarning&&A.length&&e.warning("async-validator:",A),A.length&&b.message!==void 0&&(A=[].concat(b.message));var L=A.map(IS(b,o));if(u.first&&L.length)return m[b.field]=1,g(L);if(!w)g(L);else{if(b.required&&!y.value)return b.message!==void 0?L=[].concat(b.message).map(IS(b,o)):u.error&&(L=[u.error(b,or(u.messages.required,b.field))]),g(L);var N={};b.defaultField&&Object.keys(y.value).map(function(V){N[V]=b.defaultField}),N=de(de({},N),y.rule.fields);var F={};Object.keys(N).forEach(function(V){var D=N[V],j=Array.isArray(D)?D:[D];F[V]=j.map(S.bind(null,V))});var H=new e(F);H.messages(u.messages),y.rule.options&&(y.rule.options.messages=u.messages,y.rule.options.error=u.error),H.validate(y.value,y.rule.options||u,function(V){var D=[];L&&L.length&&D.push.apply(D,De(L)),V&&V.length&&D.push.apply(D,De(V)),g(D.length?D:null)})}}var T;if(b.asyncValidator)T=b.asyncValidator(b,y.value,C,y.source,u);else if(b.validator){try{T=b.validator(b,y.value,C,y.source,u)}catch(k){var _,x;(_=(x=console).error)===null||_===void 0||_.call(x,k),u.suppressValidatorError||setTimeout(function(){throw k},0),C(k.message)}T===!0?C():T===!1?C(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||"".concat(b.fullField||b.field," fails")):T instanceof Array?C(T):T instanceof Error&&C(T.message)}T&&T.then&&T.then(function(){return C()},function(k){return C(k)})},function(y){f(y)},o)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Du.hasOwnProperty(n.type))throw new Error(or("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?Du.required:Du[this.getType(n)]||void 0}}]),e}();re(Mu,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Du[t]=n}),re(Mu,"warning",AS),re(Mu,"messages",Tm),re(Mu,"validators",Du);var sr="'${name}' is not a valid ${type}",MS={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:sr,method:sr,array:sr,object:sr,number:sr,date:sr,boolean:sr,integer:sr,float:sr,regexp:sr,email:sr,url:sr,hex:sr},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},jS=Mu;function cL(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var $S="CODE_LOGIC_ERROR";function Am(e,t,n,r,i){return Pm.apply(this,arguments)}function Pm(){return Pm=Lu(Yr().mark(function e(t,n,r,i,a){var o,u,l,f,d,h,p,m,y;return Yr().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return o=de({},r),delete o.ruleIndex,jS.warning=function(){},o.validator&&(u=o.validator,o.validator=function(){try{return u.apply(void 0,arguments)}catch(w){return console.error(w),Promise.reject($S)}}),l=null,o&&o.type==="array"&&o.defaultField&&(l=o.defaultField,delete o.defaultField),f=new jS(re({},t,[o])),d=Ru(MS,i.validateMessages),f.messages(d),h=[],b.prev=10,b.next=13,Promise.resolve(f.validate(re({},t,n),de({},i)));case 13:b.next=18;break;case 15:b.prev=15,b.t0=b.catch(10),b.t0.errors&&(h=b.t0.errors.map(function(w,S){var C=w.message,T=C===$S?d.default:C;return Q.isValidElement(T)?Q.cloneElement(T,{key:"error_".concat(S)}):T}));case 18:if(!(!h.length&&l)){b.next=23;break}return b.next=21,Promise.all(n.map(function(w,S){return Am("".concat(t,".").concat(S),w,l,i,a)}));case 21:return p=b.sent,b.abrupt("return",p.reduce(function(w,S){return[].concat(De(w),De(S))},[]));case 23:return m=de(de({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),y=h.map(function(w){return typeof w=="string"?cL(w,m):w}),b.abrupt("return",y);case 26:case"end":return b.stop()}},e,null,[[10,15]])})),Pm.apply(this,arguments)}function fL(e,t,n,r,i,a){var o=e.join("."),u=n.map(function(d,h){var p=d.validator,m=de(de({},d),{},{ruleIndex:h});return p&&(m.validator=function(y,g,b){var w=!1,S=function(){for(var _=arguments.length,x=new Array(_),k=0;k<_;k++)x[k]=arguments[k];Promise.resolve().then(function(){Qt(!w,"Your validator function has already return a promise. `callback` will be ignored."),w||b.apply(void 0,x)})},C=p(y,g,S);w=C&&typeof C.then=="function"&&typeof C.catch=="function",Qt(w,"`callback` is deprecated. Please return a promise instead."),w&&C.then(function(){b()}).catch(function(T){b(T||" ")})}),m}).sort(function(d,h){var p=d.warningOnly,m=d.ruleIndex,y=h.warningOnly,g=h.ruleIndex;return!!p==!!y?m-g:p?1:-1}),l;if(i===!0)l=new Promise(function(){var d=Lu(Yr().mark(function h(p,m){var y,g,b;return Yr().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:y=0;case 1:if(!(y<u.length)){S.next=12;break}return g=u[y],S.next=5,Am(o,t,g,r,a);case 5:if(b=S.sent,!b.length){S.next=9;break}return m([{errors:b,rule:g}]),S.abrupt("return");case 9:y+=1,S.next=1;break;case 12:p([]);case 13:case"end":return S.stop()}},h)}));return function(h,p){return d.apply(this,arguments)}}());else{var f=u.map(function(d){return Am(o,t,d,r,a).then(function(h){return{errors:h,rule:d}})});l=(i?hL(f):dL(f)).then(function(d){return Promise.reject(d)})}return l.catch(function(d){return d}),l}function dL(e){return Nm.apply(this,arguments)}function Nm(){return Nm=Lu(Yr().mark(function e(t){return Yr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(i){var a,o=(a=[]).concat.apply(a,De(i));return o}));case 1:case"end":return r.stop()}},e)})),Nm.apply(this,arguments)}function hL(e){return Im.apply(this,arguments)}function Im(){return Im=Lu(Yr().mark(function e(t){var n;return Yr().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return n=0,i.abrupt("return",new Promise(function(a){t.forEach(function(o){o.then(function(u){u.errors.length&&a([u]),n+=1,n===t.length&&a([])})})}));case 2:case"end":return i.stop()}},e)})),Im.apply(this,arguments)}function nn(e){return xm(e)}function VS(e,t){var n={};return t.forEach(function(r){var i=oi(e,r);n=Gr(n,r,i)}),n}function as(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return qS(t,r,n)})}function qS(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,i){return e[i]===r})}function pL(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Qe(e)!=="object"||Qe(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return De(i).every(function(a){var o=e[a],u=t[a];return typeof o=="function"&&typeof u=="function"?!0:o===u})}function vL(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Qe(t.target)==="object"&&e in t.target?t.target[e]:t}function US(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],a=t-n;return a>0?[].concat(De(e.slice(0,n)),[i],De(e.slice(n,t)),De(e.slice(t+1,r))):a<0?[].concat(De(e.slice(0,t)),De(e.slice(t+1,n+1)),[i],De(e.slice(n+1,r))):e}var mL=["name"],Tr=[];function Lm(e,t,n,r,i,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==i}var Fm=function(e){$a(n,e);var t=Va(n);function n(r){var i;if(An(this,n),i=t.call(this,r),re(nt(i),"state",{resetCount:0}),re(nt(i),"cancelRegisterFunc",null),re(nt(i),"mounted",!1),re(nt(i),"touched",!1),re(nt(i),"dirty",!1),re(nt(i),"validatePromise",void 0),re(nt(i),"prevValidating",void 0),re(nt(i),"errors",Tr),re(nt(i),"warnings",Tr),re(nt(i),"cancelRegister",function(){var l=i.props,f=l.preserve,d=l.isListField,h=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(d,f,nn(h)),i.cancelRegisterFunc=null}),re(nt(i),"getNamePath",function(){var l=i.props,f=l.name,d=l.fieldContext,h=d.prefixName,p=h===void 0?[]:h;return f!==void 0?[].concat(De(p),De(f)):[]}),re(nt(i),"getRules",function(){var l=i.props,f=l.rules,d=f===void 0?[]:f,h=l.fieldContext;return d.map(function(p){return typeof p=="function"?p(h):p})}),re(nt(i),"refresh",function(){i.mounted&&i.setState(function(l){var f=l.resetCount;return{resetCount:f+1}})}),re(nt(i),"metaCache",null),re(nt(i),"triggerMetaEvent",function(l){var f=i.props.onMetaChange;if(f){var d=de(de({},i.getMeta()),{},{destroy:l});tE(i.metaCache,d)||f(d),i.metaCache=d}else i.metaCache=null}),re(nt(i),"onStoreChange",function(l,f,d){var h=i.props,p=h.shouldUpdate,m=h.dependencies,y=m===void 0?[]:m,g=h.onReset,b=d.store,w=i.getNamePath(),S=i.getValue(l),C=i.getValue(b),T=f&&as(f,w);switch(d.type==="valueUpdate"&&d.source==="external"&&!tE(S,C)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Tr,i.warnings=Tr,i.triggerMetaEvent()),d.type){case"reset":if(!f||T){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Tr,i.warnings=Tr,i.triggerMetaEvent(),g==null||g(),i.refresh();return}break;case"remove":{if(p&&Lm(p,l,b,S,C,d)){i.reRender();return}break}case"setField":{var _=d.data;if(T){"touched"in _&&(i.touched=_.touched),"validating"in _&&!("originRCField"in _)&&(i.validatePromise=_.validating?Promise.resolve([]):null),"errors"in _&&(i.errors=_.errors||Tr),"warnings"in _&&(i.warnings=_.warnings||Tr),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in _&&as(f,w,!0)){i.reRender();return}if(p&&!w.length&&Lm(p,l,b,S,C,d)){i.reRender();return}break}case"dependenciesUpdate":{var x=y.map(nn);if(x.some(function(k){return as(d.relatedFields,k)})){i.reRender();return}break}default:if(T||(!y.length||w.length||p)&&Lm(p,l,b,S,C,d)){i.reRender();return}break}p===!0&&i.reRender()}),re(nt(i),"validateRules",function(l){var f=i.getNamePath(),d=i.getValue(),h=l||{},p=h.triggerName,m=h.validateOnly,y=m===void 0?!1:m,g=Promise.resolve().then(Lu(Yr().mark(function b(){var w,S,C,T,_,x,k;return Yr().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:if(i.mounted){L.next=2;break}return L.abrupt("return",[]);case 2:if(w=i.props,S=w.validateFirst,C=S===void 0?!1:S,T=w.messageVariables,_=w.validateDebounce,x=i.getRules(),p&&(x=x.filter(function(N){return N}).filter(function(N){var F=N.validateTrigger;if(!F)return!0;var H=xm(F);return H.includes(p)})),!(_&&p)){L.next=10;break}return L.next=8,new Promise(function(N){setTimeout(N,_)});case 8:if(i.validatePromise===g){L.next=10;break}return L.abrupt("return",[]);case 10:return k=fL(f,d,x,l,C,T),k.catch(function(N){return N}).then(function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tr;if(i.validatePromise===g){var F;i.validatePromise=null;var H=[],V=[];(F=N.forEach)===null||F===void 0||F.call(N,function(D){var j=D.rule.warningOnly,z=D.errors,Y=z===void 0?Tr:z;j?V.push.apply(V,De(Y)):H.push.apply(H,De(Y))}),i.errors=H,i.warnings=V,i.triggerMetaEvent(),i.reRender()}}),L.abrupt("return",k);case 13:case"end":return L.stop()}},b)})));return y||(i.validatePromise=g,i.dirty=!0,i.errors=Tr,i.warnings=Tr,i.triggerMetaEvent(),i.reRender()),g}),re(nt(i),"isFieldValidating",function(){return!!i.validatePromise}),re(nt(i),"isFieldTouched",function(){return i.touched}),re(nt(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var l=i.props.fieldContext,f=l.getInternalHooks(Wa),d=f.getInitialValue;return d(i.getNamePath())!==void 0}),re(nt(i),"getErrors",function(){return i.errors}),re(nt(i),"getWarnings",function(){return i.warnings}),re(nt(i),"isListField",function(){return i.props.isListField}),re(nt(i),"isList",function(){return i.props.isList}),re(nt(i),"isPreserve",function(){return i.props.preserve}),re(nt(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l}),re(nt(i),"getOnlyChild",function(l){if(typeof l=="function"){var f=i.getMeta();return de(de({},i.getOnlyChild(l(i.getControlled(),f,i.props.fieldContext))),{},{isFunction:!0})}var d=yc(l);return d.length!==1||!Q.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),re(nt(i),"getValue",function(l){var f=i.props.fieldContext.getFieldsValue,d=i.getNamePath();return oi(l||f(!0),d)}),re(nt(i),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=i.props,d=f.name,h=f.trigger,p=f.validateTrigger,m=f.getValueFromEvent,y=f.normalize,g=f.valuePropName,b=f.getValueProps,w=f.fieldContext,S=p!==void 0?p:w.validateTrigger,C=i.getNamePath(),T=w.getInternalHooks,_=w.getFieldsValue,x=T(Wa),k=x.dispatch,A=i.getValue(),L=b||function(D){return re({},g,D)},N=l[h],F=d!==void 0?L(A):{};F&&Object.keys(F).forEach(function(D){Qt(typeof F[D]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(D,")"))});var H=de(de({},l),F);H[h]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var D,j=arguments.length,z=new Array(j),Y=0;Y<j;Y++)z[Y]=arguments[Y];m?D=m.apply(void 0,z):D=vL.apply(void 0,[g].concat(z)),y&&(D=y(D,A,_(!0))),D!==A&&k({type:"updateValue",namePath:C,value:D}),N&&N.apply(void 0,z)};var V=xm(S||[]);return V.forEach(function(D){var j=H[D];H[D]=function(){j&&j.apply(void 0,arguments);var z=i.props.rules;z&&z.length&&k({type:"validateField",namePath:C,triggerName:D})}}),H}),r.fieldContext){var a=r.fieldContext.getInternalHooks,o=a(Wa),u=o.initEntityValue;u(nt(i))}return i}return Pn(n,[{key:"componentDidMount",value:function(){var i=this.props,a=i.shouldUpdate,o=i.fieldContext;if(this.mounted=!0,o){var u=o.getInternalHooks,l=u(Wa),f=l.registerField;this.cancelRegisterFunc=f(this)}a===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var i=this.state.resetCount,a=this.props.children,o=this.getOnlyChild(a),u=o.child,l=o.isFunction,f;return l?f=u:Q.isValidElement(u)?f=Q.cloneElement(u,this.getControlled(u.props)):(Qt(!u,"`children` of Field is not validate ReactElement."),f=u),Q.createElement(Q.Fragment,{key:i},f)}}]),n}(Q.Component);re(Fm,"contextType",rs),re(Fm,"defaultProps",{trigger:"onChange",valuePropName:"value"});function zS(e){var t,n=e.name,r=Ua(e,mL),i=Q.useContext(rs),a=Q.useContext(Qc),o=n!==void 0?nn(n):void 0,u=(t=r.isListField)!==null&&t!==void 0?t:!!a,l="keep";return u||(l="_".concat((o||[]).join("_"))),r.preserve===!1&&u&&o.length<=1&&Qt(!1,"`preserve` should not apply on Form.List fields."),Q.createElement(Fm,ii({key:l,name:o,isListField:u},r,{fieldContext:i}))}function gL(e){var t=e.name,n=e.initialValue,r=e.children,i=e.rules,a=e.validateTrigger,o=e.isListField,u=Q.useContext(rs),l=Q.useContext(Qc),f=Q.useRef({keys:[],id:0}),d=f.current,h=Q.useMemo(function(){var g=nn(u.prefixName)||[];return[].concat(De(g),De(nn(t)))},[u.prefixName,t]),p=Q.useMemo(function(){return de(de({},u),{},{prefixName:h})},[u,h]),m=Q.useMemo(function(){return{getKey:function(b){var w=h.length,S=b[w];return[d.keys[S],b.slice(w+1)]}}},[h]);if(typeof r!="function")return Qt(!1,"Form.List only accepts function as children."),null;var y=function(b,w,S){var C=S.source;return C==="internal"?!1:b!==w};return Q.createElement(Qc.Provider,{value:m},Q.createElement(rs.Provider,{value:p},Q.createElement(zS,{name:[],shouldUpdate:y,rules:i,validateTrigger:a,initialValue:n,isList:!0,isListField:o??!!l},function(g,b){var w=g.value,S=w===void 0?[]:w,C=g.onChange,T=u.getFieldValue,_=function(){var L=T(h||[]);return L||[]},x={add:function(L,N){var F=_();N>=0&&N<=F.length?(d.keys=[].concat(De(d.keys.slice(0,N)),[d.id],De(d.keys.slice(N))),C([].concat(De(F.slice(0,N)),[L],De(F.slice(N))))):((N<0||N>F.length)&&Qt(!1,"The second parameter of the add function should be a valid positive number."),d.keys=[].concat(De(d.keys),[d.id]),C([].concat(De(F),[L]))),d.id+=1},remove:function(L){var N=_(),F=new Set(Array.isArray(L)?L:[L]);F.size<=0||(d.keys=d.keys.filter(function(H,V){return!F.has(V)}),C(N.filter(function(H,V){return!F.has(V)})))},move:function(L,N){if(L!==N){var F=_();L<0||L>=F.length||N<0||N>=F.length||(d.keys=US(d.keys,L,N),C(US(F,L,N)))}}},k=S||[];return Array.isArray(k)||(k=[],Qt(!1,"Current value of '".concat(h.join(" > "),"' is not an array type."))),r(k.map(function(A,L){var N=d.keys[L];return N===void 0&&(d.keys[L]=d.id,N=d.keys[L],d.id+=1),{name:L,key:N,isListField:!0}}),x,b)})))}function yL(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,a){e.forEach(function(o,u){o.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[u]=l,!(n>0)&&(t&&a(r),i(r))})})}):Promise.resolve([])}var HS="__@field_split__";function Dm(e){return e.map(function(t){return"".concat(Qe(t),":").concat(t)}).join(HS)}var os=function(){function e(){An(this,e),re(this,"kvs",new Map)}return Pn(e,[{key:"set",value:function(n,r){this.kvs.set(Dm(n),r)}},{key:"get",value:function(n){return this.kvs.get(Dm(n))}},{key:"update",value:function(n,r){var i=this.get(n),a=r(i);a?this.set(n,a):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Dm(n))}},{key:"map",value:function(n){return De(this.kvs.entries()).map(function(r){var i=ke(r,2),a=i[0],o=i[1],u=a.split(HS);return n({key:u.map(function(l){var f=l.match(/^([^:]*):(.*)$/),d=ke(f,3),h=d[1],p=d[2];return h==="number"?Number(p):p}),value:o})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,a=r.value;return n[i.join(".")]=a,null}),n}}]),e}(),bL=["name"],_L=Pn(function e(t){var n=this;An(this,e),re(this,"formHooked",!1),re(this,"forceRootUpdate",void 0),re(this,"subscribable",!0),re(this,"store",{}),re(this,"fieldEntities",[]),re(this,"initialValues",{}),re(this,"callbacks",{}),re(this,"validateMessages",null),re(this,"preserve",null),re(this,"lastValidatePromise",null),re(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),re(this,"getInternalHooks",function(r){return r===Wa?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Qt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),re(this,"useSubscribe",function(r){n.subscribable=r}),re(this,"prevWithoutPreserves",null),re(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var a,o=Ru(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(u){var l=u.key;o=Gr(o,l,oi(r,l))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),re(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new os;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||i.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=i}}),re(this,"getInitialValue",function(r){var i=oi(n.initialValues,r);return r.length?Ru(i):i}),re(this,"setCallbacks",function(r){n.callbacks=r}),re(this,"setValidateMessages",function(r){n.validateMessages=r}),re(this,"setPreserve",function(r){n.preserve=r}),re(this,"watchList",[]),re(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),re(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(o){o(i,a,r)})}}),re(this,"timeoutId",null),re(this,"warningUnhooked",function(){!n.timeoutId&&typeof window<"u"&&(n.timeoutId=setTimeout(function(){n.timeoutId=null,n.formHooked||Qt(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),re(this,"updateStore",function(r){n.store=r}),re(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities}),re(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new os;return n.getFieldEntities(r).forEach(function(a){var o=a.getNamePath();i.set(o,a)}),i}),re(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(a){var o=nn(a);return i.get(o)||{INVALIDATE_NAME_PATH:nn(a)}})}),re(this,"getFieldsValue",function(r,i){n.warningUnhooked();var a,o,u;if(r===!0||Array.isArray(r)?(a=r,o=i):r&&Qe(r)==="object"&&(u=r.strict,o=r.filter),a===!0&&!o)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),f=[];return l.forEach(function(d){var h,p,m="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(u){var y,g;if((y=(g=d).isList)!==null&&y!==void 0&&y.call(g))return}else if(!a&&(h=(p=d).isListField)!==null&&h!==void 0&&h.call(p))return;if(!o)f.push(m);else{var b="getMeta"in d?d.getMeta():null;o(b)&&f.push(m)}}),VS(n.store,f.map(nn))}),re(this,"getFieldValue",function(r){n.warningUnhooked();var i=nn(r);return oi(n.store,i)}),re(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(a,o){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:nn(r[o]),errors:[],warnings:[]}})}),re(this,"getFieldError",function(r){n.warningUnhooked();var i=nn(r),a=n.getFieldsError([i])[0];return a.errors}),re(this,"getFieldWarning",function(r){n.warningUnhooked();var i=nn(r),a=n.getFieldsError([i])[0];return a.warnings}),re(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=i[0],u=i[1],l,f=!1;i.length===0?l=null:i.length===1?Array.isArray(o)?(l=o.map(nn),f=!1):(l=null,f=o):(l=o.map(nn),f=u);var d=n.getFieldEntities(!0),h=function(b){return b.isFieldTouched()};if(!l)return f?d.every(function(g){return h(g)||g.isList()}):d.some(h);var p=new os;l.forEach(function(g){p.set(g,[])}),d.forEach(function(g){var b=g.getNamePath();l.forEach(function(w){w.every(function(S,C){return b[C]===S})&&p.update(w,function(S){return[].concat(De(S),[g])})})});var m=function(b){return b.some(h)},y=p.map(function(g){var b=g.value;return b});return f?y.every(m):y.some(m)}),re(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),re(this,"isFieldsValidating",function(r){n.warningUnhooked();var i=n.getFieldEntities();if(!r)return i.some(function(o){return o.isFieldValidating()});var a=r.map(nn);return i.some(function(o){var u=o.getNamePath();return as(a,u)&&o.isFieldValidating()})}),re(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),re(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=new os,a=n.getFieldEntities(!0);a.forEach(function(l){var f=l.props.initialValue,d=l.getNamePath();if(f!==void 0){var h=i.get(d)||new Set;h.add({entity:l,value:f}),i.set(d,h)}});var o=function(f){f.forEach(function(d){var h=d.props.initialValue;if(h!==void 0){var p=d.getNamePath(),m=n.getInitialValue(p);if(m!==void 0)Qt(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var y=i.get(p);if(y&&y.size>1)Qt(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(y){var g=n.getFieldValue(p),b=d.isListField();!b&&(!r.skipExist||g===void 0)&&n.updateStore(Gr(n.store,p,De(y)[0].value))}}}})},u;r.entities?u=r.entities:r.namePathList?(u=[],r.namePathList.forEach(function(l){var f=i.get(l);if(f){var d;(d=u).push.apply(d,De(De(f).map(function(h){return h.entity})))}})):u=a,o(u)}),re(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(Ru(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(nn);a.forEach(function(o){var u=n.getInitialValue(o);n.updateStore(Gr(n.store,o,u))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(i,a,{type:"reset"}),n.notifyWatch(a)}),re(this,"setFields",function(r){n.warningUnhooked();var i=n.store,a=[];r.forEach(function(o){var u=o.name,l=Ua(o,bL),f=nn(u);a.push(f),"value"in l&&n.updateStore(Gr(n.store,f,l.value)),n.notifyObservers(i,[f],{type:"setField",data:o})}),n.notifyWatch(a)}),re(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(a){var o=a.getNamePath(),u=a.getMeta(),l=de(de({},u),{},{name:o,value:n.getFieldValue(o)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i}),re(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var a=r.getNamePath(),o=oi(n.store,a);o===void 0&&n.updateStore(Gr(n.store,a,i))}}),re(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),re(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,u){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(h){return h!==r}),!n.isMergedPreserve(u)&&(!o||l.length>1)){var f=o?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==f&&n.fieldEntities.every(function(h){return!qS(h.getNamePath(),i)})){var d=n.store;n.updateStore(Gr(d,i,f,!0)),n.notifyObservers(d,[i],{type:"remove"}),n.triggerDependenciesUpdate(d,i)}}n.notifyWatch([i])}}),re(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,a=r.value;n.updateValue(i,a);break}case"validateField":{var o=r.namePath,u=r.triggerName;n.validateFields([o],{triggerName:u});break}}}),re(this,"notifyObservers",function(r,i,a){if(n.subscribable){var o=de(de({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(u){var l=u.onStoreChange;l(r,i,o)})}else n.forceRootUpdate()}),re(this,"triggerDependenciesUpdate",function(r,i){var a=n.getDependencyChildrenFields(i);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[i].concat(De(a))}),a}),re(this,"updateValue",function(r,i){var a=nn(r),o=n.store;n.updateStore(Gr(n.store,a,i)),n.notifyObservers(o,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var u=n.triggerDependenciesUpdate(o,a),l=n.callbacks.onValuesChange;if(l){var f=VS(n.store,[a]);l(f,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(De(u)))}),re(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var a=Ru(n.store,r);n.updateStore(a)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),re(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i,errors:[],warnings:[]}])}),re(this,"getDependencyChildrenFields",function(r){var i=new Set,a=[],o=new os;n.getFieldEntities().forEach(function(l){var f=l.props.dependencies;(f||[]).forEach(function(d){var h=nn(d);o.update(h,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(l),p})})});var u=function l(f){var d=o.get(f)||new Set;d.forEach(function(h){if(!i.has(h)){i.add(h);var p=h.getNamePath();h.isFieldDirty()&&p.length&&(a.push(p),l(p))}})};return u(r),a}),re(this,"triggerOnFieldsChange",function(r,i){var a=n.callbacks.onFieldsChange;if(a){var o=n.getFields();if(i){var u=new os;i.forEach(function(f){var d=f.name,h=f.errors;u.set(d,h)}),o.forEach(function(f){f.errors=u.get(f.name)||f.errors})}var l=o.filter(function(f){var d=f.name;return as(r,d)});l.length&&a(l,o)}}),re(this,"validateFields",function(r,i){n.warningUnhooked();var a,o;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(a=r,o=i):o=r;var u=!!a,l=u?a.map(nn):[],f=[],d=String(Date.now()),h=new Set,p=o||{},m=p.recursive,y=p.dirty;n.getFieldEntities(!0).forEach(function(S){if(u||l.push(S.getNamePath()),!(!S.props.rules||!S.props.rules.length)&&!(y&&!S.isFieldDirty())){var C=S.getNamePath();if(h.add(C.join(d)),!u||as(l,C,m)){var T=S.validateRules(de({validateMessages:de(de({},MS),n.validateMessages)},o));f.push(T.then(function(){return{name:C,errors:[],warnings:[]}}).catch(function(_){var x,k=[],A=[];return(x=_.forEach)===null||x===void 0||x.call(_,function(L){var N=L.rule.warningOnly,F=L.errors;N?A.push.apply(A,De(F)):k.push.apply(k,De(F))}),k.length?Promise.reject({name:C,errors:k,warnings:A}):{name:C,errors:k,warnings:A}}))}}});var g=yL(f);n.lastValidatePromise=g,g.catch(function(S){return S}).then(function(S){var C=S.map(function(T){var _=T.name;return _});n.notifyObservers(n.store,C,{type:"validateFinish"}),n.triggerOnFieldsChange(C,S)});var b=g.then(function(){return n.lastValidatePromise===g?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(S){var C=S.filter(function(T){return T&&T.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:C,outOfDate:n.lastValidatePromise!==g})});b.catch(function(S){return S});var w=l.filter(function(S){return h.has(S.join(d))});return n.triggerOnFieldsChange(w),b}),re(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(a){console.error(a)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function BS(e){var t=Q.useRef(),n=Q.useState({}),r=ke(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){i({})},o=new _L(a);t.current=o.getForm()}return[t.current]}var Mm=Q.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),wL=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,a=t.children,o=Q.useContext(Mm),u=Q.useRef({});return Q.createElement(Mm.Provider,{value:de(de({},o),{},{validateMessages:de(de({},o.validateMessages),n),triggerFormChange:function(f,d){r&&r(f,{changedFields:d,forms:u.current}),o.triggerFormChange(f,d)},triggerFormFinish:function(f,d){i&&i(f,{values:d,forms:u.current}),o.triggerFormFinish(f,d)},registerForm:function(f,d){f&&(u.current=de(de({},u.current),{},re({},f,d))),o.registerForm(f,d)},unregisterForm:function(f){var d=de({},u.current);delete d[f],u.current=d,o.unregisterForm(f)}})},a)},EL=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],SL=function(t,n){var r=t.name,i=t.initialValues,a=t.fields,o=t.form,u=t.preserve,l=t.children,f=t.component,d=f===void 0?"form":f,h=t.validateMessages,p=t.validateTrigger,m=p===void 0?"onChange":p,y=t.onValuesChange,g=t.onFieldsChange,b=t.onFinish,w=t.onFinishFailed,S=t.clearOnDestroy,C=Ua(t,EL),T=Q.useRef(null),_=Q.useContext(Mm),x=BS(o),k=ke(x,1),A=k[0],L=A.getInternalHooks(Wa),N=L.useSubscribe,F=L.setInitialValues,H=L.setCallbacks,V=L.setValidateMessages,D=L.setPreserve,j=L.destroyForm;Q.useImperativeHandle(n,function(){return de(de({},A),{},{nativeElement:T.current})}),Q.useEffect(function(){return _.registerForm(r,A),function(){_.unregisterForm(r)}},[_,A,r]),V(de(de({},_.validateMessages),h)),H({onValuesChange:y,onFieldsChange:function(te){if(_.triggerFormChange(r,te),g){for(var fe=arguments.length,le=new Array(fe>1?fe-1:0),ve=1;ve<fe;ve++)le[ve-1]=arguments[ve];g.apply(void 0,[te].concat(le))}},onFinish:function(te){_.triggerFormFinish(r,te),b&&b(te)},onFinishFailed:w}),D(u);var z=Q.useRef(null);F(i,!z.current),z.current||(z.current=!0),Q.useEffect(function(){return function(){return j(S)}},[]);var Y,q=typeof l=="function";if(q){var J=A.getFieldsValue(!0);Y=l(J,A)}else Y=l;N(!q);var $=Q.useRef();Q.useEffect(function(){pL($.current||[],a||[])||A.setFields(a||[]),$.current=a},[a,A]);var K=Q.useMemo(function(){return de(de({},A),{},{validateTrigger:m})},[A,m]),ae=Q.createElement(Qc.Provider,{value:null},Q.createElement(rs.Provider,{value:K},Y));return d===!1?ae:Q.createElement(d,ii({},C,{ref:T,onSubmit:function(te){te.preventDefault(),te.stopPropagation(),A.submit()},onReset:function(te){var fe;te.preventDefault(),A.resetFields(),(fe=C.onReset)===null||fe===void 0||fe.call(C,te)}}),ae)};function WS(e){try{return JSON.stringify(e)}catch{return Math.random()}}var xL=function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),n=M.useRef(t);Qt(n.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")};function CL(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=i===void 0?{}:i,o=II(a)?{form:a}:a,u=o.form,l=M.useState(),f=ke(l,2),d=f[0],h=f[1],p=M.useMemo(function(){return WS(d)},[d]),m=M.useRef(p);m.current=p;var y=M.useContext(rs),g=u||y,b=g&&g._init;Qt(t.length===2?u?b:!0:b,"useWatch requires a form instance since it can not auto detect from context.");var w=nn(r),S=M.useRef(w);return S.current=w,xL(w),M.useEffect(function(){if(b){var C=g.getFieldsValue,T=g.getInternalHooks,_=T(Wa),x=_.registerWatch,k=function(F,H){var V=o.preserve?H:F;return typeof r=="function"?r(V):oi(V,S.current)},A=x(function(N,F){var H=k(N,F),V=WS(H);m.current!==V&&(m.current=V,h(H))}),L=k(C(),C(!0));return d!==L&&h(L),A}},[b]),d}var TL=Q.forwardRef(SL),ju=TL;ju.FormProvider=wL,ju.Field=zS,ju.List=gL,ju.useForm=BS,ju.useWatch=CL;const jm=Q.createContext({});jm.displayName="FormItemInputContext";const OL=({children:e,status:t,override:n})=>{const r=Q.useContext(jm),i=Q.useMemo(()=>{const a=Object.assign({},r);return n&&delete a.isFormItemInput,t&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[t,n,r]);return Q.createElement(jm.Provider,{value:i},e)},kL=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let i=r;return n&&(i=M.createElement(OL,{override:!0,status:!0},i)),t&&(i=M.createElement(uI,null,i)),i},RL=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};function AL(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,a=r||{},o=a.className,u=a.content,l=i.x,f=l===void 0?0:l,d=i.y,h=d===void 0?0:d,p=Q.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(n.autoArrow!==!1){var y=n.points[0],g=n.points[1],b=y[0],w=y[1],S=g[0],C=g[1];b===S||!["t","b"].includes(b)?m.top=h:b==="t"?m.top=0:m.bottom=0,w===C||!["l","r"].includes(w)?m.left=f:w==="l"?m.left=0:m.right=0}return Q.createElement("div",{ref:p,className:Mn("".concat(t,"-arrow"),o),style:m},u)}function PL(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,a=e.motion;return i?Q.createElement(vm,ii({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(o){var u=o.className;return Q.createElement("div",{style:{zIndex:r},className:Mn("".concat(t,"-mask"),u)})}):null}var GS=Q.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});GS.displayName="PopupContent";var QS=Q.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,a=e.style,o=e.target,u=e.onVisibleChanged,l=e.open,f=e.keepDom,d=e.fresh,h=e.onClick,p=e.mask,m=e.arrow,y=e.arrowPos,g=e.align,b=e.motion,w=e.maskMotion,S=e.forceRender,C=e.getPopupContainer,T=e.autoDestroy,_=e.portal,x=e.zIndex,k=e.onMouseEnter,A=e.onMouseLeave,L=e.onPointerEnter,N=e.onPointerDownCapture,F=e.ready,H=e.offsetX,V=e.offsetY,D=e.offsetR,j=e.offsetB,z=e.onAlign,Y=e.onPrepare,q=e.stretch,J=e.targetWidth,$=e.targetHeight,K=typeof n=="function"?n():n,ae=l||f,ie=(C==null?void 0:C.length)>0,te=Q.useState(!C||!ie),fe=ke(te,2),le=fe[0],ve=fe[1];if(jn(function(){!le&&ie&&o&&ve(!0)},[le,ie,o]),!le)return null;var _e="auto",be={left:"-1000vw",top:"-1000vh",right:_e,bottom:_e};if(F||!l){var we,ne=g.points,W=g.dynamicInset||((we=g._experimental)===null||we===void 0?void 0:we.dynamicInset),ye=W&&ne[0][1]==="r",ue=W&&ne[0][0]==="b";ye?(be.right=D,be.left=_e):(be.left=H,be.right=_e),ue?(be.bottom=j,be.top=_e):(be.top=V,be.bottom=_e)}var Te={};return q&&(q.includes("height")&&$?Te.height=$:q.includes("minHeight")&&$&&(Te.minHeight=$),q.includes("width")&&J?Te.width=J:q.includes("minWidth")&&J&&(Te.minWidth=J)),l||(Te.pointerEvents="none"),Q.createElement(_,{open:S||ae,getContainer:C&&function(){return C(o)},autoDestroy:T},Q.createElement(PL,{prefixCls:i,open:l,zIndex:x,mask:p,motion:w}),Q.createElement(xc,{onResize:z,disabled:!l},function(Re){return Q.createElement(vm,ii({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:S,leavedClassName:"".concat(i,"-hidden")},b,{onAppearPrepare:Y,onEnterPrepare:Y,visible:l,onVisibleChanged:function(ft){var dt;b==null||(dt=b.onVisibleChanged)===null||dt===void 0||dt.call(b,ft),u(ft)}}),function(Ze,ft){var dt=Ze.className,kt=Ze.style,Ve=Mn(i,dt,r);return Q.createElement("div",{ref:Nw(Re,t,ft),className:Ve,style:de(de(de(de({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},be),Te),kt),{},{boxSizing:"border-box",zIndex:x},a),onMouseEnter:k,onMouseLeave:A,onPointerEnter:L,onClick:h,onPointerDownCapture:N},m&&Q.createElement(AL,{prefixCls:i,arrow:m,arrowPos:y,align:g}),Q.createElement(GS,{cache:!l&&!d},K))})}))});QS.displayName="Popup";var YS=Q.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=_c(n),a=Q.useCallback(function(u){Cv(t,r?r(u):u)},[r]),o=Tv(a,Ov(n));return i?Q.cloneElement(n,{ref:o}):n});YS.displayName="TriggerWrapper";var KS=Q.createContext(null);function XS(e){return e?Array.isArray(e)?e:[e]:[]}function NL(e,t,n,r){return Q.useMemo(function(){var i=XS(n??t),a=XS(r??t),o=new Set(i),u=new Set(a);return e&&(o.has("hover")&&(o.delete("hover"),o.add("click")),u.has("hover")&&(u.delete("hover"),u.add("click"))),[o,u]},[e,t,n,r])}function IL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function LL(e,t,n,r){for(var i=n.points,a=Object.keys(e),o=0;o<a.length;o+=1){var u,l=a[o];if(IL((u=e[l])===null||u===void 0?void 0:u.points,i,r))return"".concat(t,"-placement-").concat(l)}return""}function ZS(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function $u(e){return e.ownerDocument.defaultView}function $m(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=$u(n).getComputedStyle(n),a=i.overflowX,o=i.overflowY,u=i.overflow;[a,o,u].some(function(l){return r.includes(l)})&&t.push(n),n=n.parentElement}return t}function Vu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function qu(e){return Vu(parseFloat(e),0)}function JS(e,t){var n=de({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=$u(r).getComputedStyle(r),a=i.overflow,o=i.overflowClipMargin,u=i.borderTopWidth,l=i.borderBottomWidth,f=i.borderLeftWidth,d=i.borderRightWidth,h=r.getBoundingClientRect(),p=r.offsetHeight,m=r.clientHeight,y=r.offsetWidth,g=r.clientWidth,b=qu(u),w=qu(l),S=qu(f),C=qu(d),T=Vu(Math.round(h.width/y*1e3)/1e3),_=Vu(Math.round(h.height/p*1e3)/1e3),x=(y-g-S-C)*T,k=(p-m-b-w)*_,A=b*_,L=w*_,N=S*T,F=C*T,H=0,V=0;if(a==="clip"){var D=qu(o);H=D*T,V=D*_}var j=h.x+N-H,z=h.y+A-V,Y=j+h.width+2*H-N-F-x,q=z+h.height+2*V-A-L-k;n.left=Math.max(n.left,j),n.top=Math.max(n.top,z),n.right=Math.min(n.right,Y),n.bottom=Math.min(n.bottom,q)}}),n}function ex(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function tx(e,t){var n=t||[],r=ke(n,2),i=r[0],a=r[1];return[ex(e.width,i),ex(e.height,a)]}function nx(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function ss(e,t){var n=t[0],r=t[1],i,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:a}}function oa(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,i){return i===t?n[r]||"c":r}).join("")}function FL(e,t,n,r,i,a,o){var u=Q.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),l=ke(u,2),f=l[0],d=l[1],h=Q.useRef(0),p=Q.useMemo(function(){return t?$m(t):[]},[t]),m=Q.useRef({}),y=function(){m.current={}};e||y();var g=Cr(function(){if(t&&n&&e){let qn=function(ki,vi){var mi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Rt,eo=te.x+ki,to=te.y+vi,Uu=eo+ye,zu=to+W,Hu=Math.max(eo,mi.left),Pe=Math.max(to,mi.top),Fe=Math.min(Uu,mi.right),Vt=Math.min(zu,mi.bottom);return Math.max(0,(Fe-Hu)*(Vt-Pe))},Ja=function(){at=te.y+Pt,We=at+W,qe=te.x+gt,zt=qe+ye};var S,C,T,_,x=t,k=x.ownerDocument,A=$u(x),L=A.getComputedStyle(x),N=L.width,F=L.height,H=L.position,V=x.style.left,D=x.style.top,j=x.style.right,z=x.style.bottom,Y=x.style.overflow,q=de(de({},i[r]),a),J=k.createElement("div");(S=x.parentElement)===null||S===void 0||S.appendChild(J),J.style.left="".concat(x.offsetLeft,"px"),J.style.top="".concat(x.offsetTop,"px"),J.style.position=H,J.style.height="".concat(x.offsetHeight,"px"),J.style.width="".concat(x.offsetWidth,"px"),x.style.left="0",x.style.top="0",x.style.right="auto",x.style.bottom="auto",x.style.overflow="hidden";var $;if(Array.isArray(n))$={x:n[0],y:n[1],width:0,height:0};else{var K,ae,ie=n.getBoundingClientRect();ie.x=(K=ie.x)!==null&&K!==void 0?K:ie.left,ie.y=(ae=ie.y)!==null&&ae!==void 0?ae:ie.top,$={x:ie.x,y:ie.y,width:ie.width,height:ie.height}}var te=x.getBoundingClientRect();te.x=(C=te.x)!==null&&C!==void 0?C:te.left,te.y=(T=te.y)!==null&&T!==void 0?T:te.top;var fe=k.documentElement,le=fe.clientWidth,ve=fe.clientHeight,_e=fe.scrollWidth,be=fe.scrollHeight,we=fe.scrollTop,ne=fe.scrollLeft,W=te.height,ye=te.width,ue=$.height,Te=$.width,Re={left:0,top:0,right:le,bottom:ve},Ze={left:-ne,top:-we,right:_e-ne,bottom:be-we},ft=q.htmlRegion,dt="visible",kt="visibleFirst";ft!=="scroll"&&ft!==kt&&(ft=dt);var Ve=ft===kt,et=JS(Ze,p),Ee=JS(Re,p),Rt=ft===dt?Ee:et,Tt=Ve?Ee:Rt;x.style.left="auto",x.style.top="auto",x.style.right="0",x.style.bottom="0";var Yt=x.getBoundingClientRect();x.style.left=V,x.style.top=D,x.style.right=j,x.style.bottom=z,x.style.overflow=Y,(_=x.parentElement)===null||_===void 0||_.removeChild(J);var un=Vu(Math.round(ye/parseFloat(N)*1e3)/1e3),Kt=Vu(Math.round(W/parseFloat(F)*1e3)/1e3);if(un===0||Kt===0||wu(n)&&!oI(n))return;var Be=q.offset,Jt=q.targetOffset,At=tx(te,Be),mt=ke(At,2),Ut=mt[0],mn=mt[1],xi=tx($,Jt),ur=ke(xi,2),gn=ur[0],Qn=ur[1];$.x-=gn,$.y-=Qn;var sa=q.points||[],lr=ke(sa,2),si=lr[0],ui=lr[1],$n=nx(ui),En=nx(si),li=ss($,$n),cn=ss(te,En),Yn=de({},q),gt=li.x-cn.x+Ut,Pt=li.y-cn.y+mn,Vn=qn(gt,Pt),Kn=qn(gt,Pt,Ee),ci=ss($,["t","l"]),yn=ss(te,["t","l"]),ua=ss($,["b","r"]),Ci=ss(te,["b","r"]),kr=q.overflow||{},B=kr.adjustX,ge=kr.adjustY,Se=kr.shiftX,Le=kr.shiftY,it=function(vi){return typeof vi=="boolean"?vi:vi>=0},at,We,qe,zt;Ja();var yt=it(ge),Dt=En[0]===$n[0];if(yt&&En[0]==="t"&&(We>Tt.bottom||m.current.bt)){var vt=Pt;Dt?vt-=W-ue:vt=ci.y-Ci.y-mn;var Nn=qn(gt,vt),cr=qn(gt,vt,Ee);Nn>Vn||Nn===Vn&&(!Ve||cr>=Kn)?(m.current.bt=!0,Pt=vt,mn=-mn,Yn.points=[oa(En,0),oa($n,0)]):m.current.bt=!1}if(yt&&En[0]==="b"&&(at<Tt.top||m.current.tb)){var Mt=Pt;Dt?Mt+=W-ue:Mt=ua.y-yn.y-mn;var fi=qn(gt,Mt),Ga=qn(gt,Mt,Ee);fi>Vn||fi===Vn&&(!Ve||Ga>=Kn)?(m.current.tb=!0,Pt=Mt,mn=-mn,Yn.points=[oa(En,0),oa($n,0)]):m.current.tb=!1}var la=it(B),Qa=En[1]===$n[1];if(la&&En[1]==="l"&&(zt>Tt.right||m.current.rl)){var di=gt;Qa?di-=ye-Te:di=ci.x-Ci.x-Ut;var Ya=qn(di,Pt),ca=qn(di,Pt,Ee);Ya>Vn||Ya===Vn&&(!Ve||ca>=Kn)?(m.current.rl=!0,gt=di,Ut=-Ut,Yn.points=[oa(En,1),oa($n,1)]):m.current.rl=!1}if(la&&En[1]==="r"&&(qe<Tt.left||m.current.lr)){var Kr=gt;Qa?Kr+=ye-Te:Kr=ua.x-yn.x-Ut;var cs=qn(Kr,Pt),fs=qn(Kr,Pt,Ee);cs>Vn||cs===Vn&&(!Ve||fs>=Kn)?(m.current.lr=!0,gt=Kr,Ut=-Ut,Yn.points=[oa(En,1),oa($n,1)]):m.current.lr=!1}Ja();var fr=Se===!0?0:Se;typeof fr=="number"&&(qe<Ee.left&&(gt-=qe-Ee.left-Ut,$.x+Te<Ee.left+fr&&(gt+=$.x-Ee.left+Te-fr)),zt>Ee.right&&(gt-=zt-Ee.right-Ut,$.x>Ee.right-fr&&(gt+=$.x-Ee.right+fr)));var Xn=Le===!0?0:Le;typeof Xn=="number"&&(at<Ee.top&&(Pt-=at-Ee.top-mn,$.y+ue<Ee.top+Xn&&(Pt+=$.y-Ee.top+ue-Xn)),We>Ee.bottom&&(Pt-=We-Ee.bottom-mn,$.y>Ee.bottom-Xn&&(Pt+=$.y-Ee.bottom+Xn)));var Ti=te.x+gt,hi=Ti+ye,Rr=te.y+Pt,ds=Rr+W,Oi=$.x,hs=Oi+Te,Ka=$.y,ps=Ka+ue,vs=Math.max(Ti,Oi),Xa=Math.min(hi,hs),ms=(vs+Xa)/2,gs=ms-Ti,Za=Math.max(Rr,Ka),fa=Math.min(ds,ps),pi=(Za+fa)/2,ys=pi-Rr;o==null||o(t,Yn);var da=Yt.right-te.x-(gt+te.width),Ar=Yt.bottom-te.y-(Pt+te.height);un===1&&(gt=Math.round(gt),da=Math.round(da)),Kt===1&&(Pt=Math.round(Pt),Ar=Math.round(Ar));var bs={ready:!0,offsetX:gt/un,offsetY:Pt/Kt,offsetR:da/un,offsetB:Ar/Kt,arrowX:gs/un,arrowY:ys/Kt,scaleX:un,scaleY:Kt,align:Yn};d(bs)}}),b=function(){h.current+=1;var C=h.current;Promise.resolve().then(function(){h.current===C&&g()})},w=function(){d(function(C){return de(de({},C),{},{ready:!1})})};return jn(w,[r]),jn(function(){e||w()},[e]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,b]}function DL(e,t,n,r,i){jn(function(){if(e&&t&&n){let h=function(){r(),i()};var a=t,o=n,u=$m(a),l=$m(o),f=$u(o),d=new Set([f].concat(De(u),De(l)));return d.forEach(function(p){p.addEventListener("scroll",h,{passive:!0})}),f.addEventListener("resize",h,{passive:!0}),r(),function(){d.forEach(function(p){p.removeEventListener("scroll",h),f.removeEventListener("resize",h)})}}},[e,t,n])}function ML(e,t,n,r,i,a,o,u){var l=Q.useRef(e);l.current=e;var f=Q.useRef(!1);Q.useEffect(function(){if(t&&r&&(!i||a)){var h=function(){f.current=!1},p=function(T){var _;l.current&&!o(((_=T.composedPath)===null||_===void 0||(_=_.call(T))===null||_===void 0?void 0:_[0])||T.target)&&!f.current&&u(!1)},m=$u(r);m.addEventListener("pointerdown",h,!0),m.addEventListener("mousedown",p,!0),m.addEventListener("contextmenu",p,!0);var y=wm(n);y&&(y.addEventListener("mousedown",p,!0),y.addEventListener("contextmenu",p,!0));{var g,b,w=n==null||(g=n.getRootNode)===null||g===void 0?void 0:g.call(n),S=(b=r.getRootNode)===null||b===void 0?void 0:b.call(r);Go(w===S,"trigger element and popup element should in same shadow root.")}return function(){m.removeEventListener("pointerdown",h,!0),m.removeEventListener("mousedown",p,!0),m.removeEventListener("contextmenu",p,!0),y&&(y.removeEventListener("mousedown",p,!0),y.removeEventListener("contextmenu",p,!0))}}},[t,n,r,i,a]);function d(){f.current=!0}return d}var jL=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function $L(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Sm,t=Q.forwardRef(function(n,r){var i=n.prefixCls,a=i===void 0?"rc-trigger-popup":i,o=n.children,u=n.action,l=u===void 0?"hover":u,f=n.showAction,d=n.hideAction,h=n.popupVisible,p=n.defaultPopupVisible,m=n.onPopupVisibleChange,y=n.afterPopupVisibleChange,g=n.mouseEnterDelay,b=n.mouseLeaveDelay,w=b===void 0?.1:b,S=n.focusDelay,C=n.blurDelay,T=n.mask,_=n.maskClosable,x=_===void 0?!0:_,k=n.getPopupContainer,A=n.forceRender,L=n.autoDestroy,N=n.destroyPopupOnHide,F=n.popup,H=n.popupClassName,V=n.popupStyle,D=n.popupPlacement,j=n.builtinPlacements,z=j===void 0?{}:j,Y=n.popupAlign,q=n.zIndex,J=n.stretch,$=n.getPopupClassNameFromAlign,K=n.fresh,ae=n.alignPoint,ie=n.onPopupClick,te=n.onPopupAlign,fe=n.arrow,le=n.popupMotion,ve=n.maskMotion,_e=n.popupTransitionName,be=n.popupAnimation,we=n.maskTransitionName,ne=n.maskAnimation,W=n.className,ye=n.getTriggerDOMNode,ue=Ua(n,jL),Te=L||N||!1,Re=Q.useState(!1),Ze=ke(Re,2),ft=Ze[0],dt=Ze[1];jn(function(){dt(RL())},[]);var kt=Q.useRef({}),Ve=Q.useContext(KS),et=Q.useMemo(function(){return{registerSubPopup:function(Fe,Vt){kt.current[Fe]=Vt,Ve==null||Ve.registerSubPopup(Fe,Vt)}}},[Ve]),Ee=kS(),Rt=Q.useState(null),Tt=ke(Rt,2),Yt=Tt[0],un=Tt[1],Kt=Q.useRef(null),Be=Cr(function(Pe){Kt.current=Pe,wu(Pe)&&Yt!==Pe&&un(Pe),Ve==null||Ve.registerSubPopup(Ee,Pe)}),Jt=Q.useState(null),At=ke(Jt,2),mt=At[0],Ut=At[1],mn=Q.useRef(null),xi=Cr(function(Pe){wu(Pe)&&mt!==Pe&&(Ut(Pe),mn.current=Pe)}),ur=Q.Children.only(o),gn=(ur==null?void 0:ur.props)||{},Qn={},sa=Cr(function(Pe){var Fe,Vt,rn=mt;return(rn==null?void 0:rn.contains(Pe))||((Fe=wm(rn))===null||Fe===void 0?void 0:Fe.host)===Pe||Pe===rn||(Yt==null?void 0:Yt.contains(Pe))||((Vt=wm(Yt))===null||Vt===void 0?void 0:Vt.host)===Pe||Pe===Yt||Object.values(kt.current).some(function(Ht){return(Ht==null?void 0:Ht.contains(Pe))||Pe===Ht})}),lr=ZS(a,le,be,_e),si=ZS(a,ve,ne,we),ui=Q.useState(p||!1),$n=ke(ui,2),En=$n[0],li=$n[1],cn=h??En,Yn=Cr(function(Pe){h===void 0&&li(Pe)});jn(function(){li(h||!1)},[h]);var gt=Q.useRef(cn);gt.current=cn;var Pt=Q.useRef([]);Pt.current=[];var Vn=Cr(function(Pe){var Fe;Yn(Pe),((Fe=Pt.current[Pt.current.length-1])!==null&&Fe!==void 0?Fe:cn)!==Pe&&(Pt.current.push(Pe),m==null||m(Pe))}),Kn=Q.useRef(),ci=function(){clearTimeout(Kn.current)},yn=function(Fe){var Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ci(),Vt===0?Vn(Fe):Kn.current=setTimeout(function(){Vn(Fe)},Vt*1e3)};Q.useEffect(function(){return ci},[]);var ua=Q.useState(!1),Ci=ke(ua,2),kr=Ci[0],B=Ci[1];jn(function(Pe){(!Pe||cn)&&B(!0)},[cn]);var ge=Q.useState(null),Se=ke(ge,2),Le=Se[0],it=Se[1],at=Q.useState(null),We=ke(at,2),qe=We[0],zt=We[1],yt=function(Fe){zt([Fe.clientX,Fe.clientY])},Dt=FL(cn,Yt,ae&&qe!==null?qe:mt,D,z,Y,te),vt=ke(Dt,11),Nn=vt[0],cr=vt[1],Mt=vt[2],fi=vt[3],Ga=vt[4],la=vt[5],Qa=vt[6],di=vt[7],Ya=vt[8],ca=vt[9],Kr=vt[10],cs=NL(ft,l,f,d),fs=ke(cs,2),fr=fs[0],Xn=fs[1],Ti=fr.has("click"),hi=Xn.has("click")||Xn.has("contextMenu"),Rr=Cr(function(){kr||Kr()}),ds=function(){gt.current&&ae&&hi&&yn(!1)};DL(cn,mt,Yt,Rr,ds),jn(function(){Rr()},[qe,D]),jn(function(){cn&&!(z!=null&&z[D])&&Rr()},[JSON.stringify(Y)]);var Oi=Q.useMemo(function(){var Pe=LL(z,a,ca,ae);return Mn(Pe,$==null?void 0:$(ca))},[ca,$,z,a,ae]);Q.useImperativeHandle(r,function(){return{nativeElement:mn.current,popupElement:Kt.current,forceAlign:Rr}});var hs=Q.useState(0),Ka=ke(hs,2),ps=Ka[0],vs=Ka[1],Xa=Q.useState(0),ms=ke(Xa,2),gs=ms[0],Za=ms[1],fa=function(){if(J&&mt){var Fe=mt.getBoundingClientRect();vs(Fe.width),Za(Fe.height)}},pi=function(){fa(),Rr()},ys=function(Fe){B(!1),Kr(),y==null||y(Fe)},da=function(){return new Promise(function(Fe){fa(),it(function(){return Fe})})};jn(function(){Le&&(Kr(),Le(),it(null))},[Le]);function Ar(Pe,Fe,Vt,rn){Qn[Pe]=function(Ht){var _s;rn==null||rn(Ht),yn(Fe,Vt);for(var Bu=arguments.length,Lt=new Array(Bu>1?Bu-1:0),bt=1;bt<Bu;bt++)Lt[bt-1]=arguments[bt];(_s=gn[Pe])===null||_s===void 0||_s.call.apply(_s,[gn,Ht].concat(Lt))}}(Ti||hi)&&(Qn.onClick=function(Pe){var Fe;gt.current&&hi?yn(!1):!gt.current&&Ti&&(yt(Pe),yn(!0));for(var Vt=arguments.length,rn=new Array(Vt>1?Vt-1:0),Ht=1;Ht<Vt;Ht++)rn[Ht-1]=arguments[Ht];(Fe=gn.onClick)===null||Fe===void 0||Fe.call.apply(Fe,[gn,Pe].concat(rn))});var bs=ML(cn,hi,mt,Yt,T,x,sa,yn),qn=fr.has("hover"),Ja=Xn.has("hover"),ki,vi;qn&&(Ar("onMouseEnter",!0,g,function(Pe){yt(Pe)}),Ar("onPointerEnter",!0,g,function(Pe){yt(Pe)}),ki=function(Fe){(cn||kr)&&Yt!==null&&Yt!==void 0&&Yt.contains(Fe.target)&&yn(!0,g)},ae&&(Qn.onMouseMove=function(Pe){var Fe;(Fe=gn.onMouseMove)===null||Fe===void 0||Fe.call(gn,Pe)})),Ja&&(Ar("onMouseLeave",!1,w),Ar("onPointerLeave",!1,w),vi=function(){yn(!1,w)}),fr.has("focus")&&Ar("onFocus",!0,S),Xn.has("focus")&&Ar("onBlur",!1,C),fr.has("contextMenu")&&(Qn.onContextMenu=function(Pe){var Fe;gt.current&&Xn.has("contextMenu")?yn(!1):(yt(Pe),yn(!0)),Pe.preventDefault();for(var Vt=arguments.length,rn=new Array(Vt>1?Vt-1:0),Ht=1;Ht<Vt;Ht++)rn[Ht-1]=arguments[Ht];(Fe=gn.onContextMenu)===null||Fe===void 0||Fe.call.apply(Fe,[gn,Pe].concat(rn))}),W&&(Qn.className=Mn(gn.className,W));var mi=de(de({},gn),Qn),eo={},to=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];to.forEach(function(Pe){ue[Pe]&&(eo[Pe]=function(){for(var Fe,Vt=arguments.length,rn=new Array(Vt),Ht=0;Ht<Vt;Ht++)rn[Ht]=arguments[Ht];(Fe=mi[Pe])===null||Fe===void 0||Fe.call.apply(Fe,[mi].concat(rn)),ue[Pe].apply(ue,rn)})});var Uu=Q.cloneElement(ur,de(de({},mi),eo)),zu={x:la,y:Qa},Hu=fe?de({},fe!==!0?fe:{}):null;return Q.createElement(Q.Fragment,null,Q.createElement(xc,{disabled:!cn,ref:xi,onResize:pi},Q.createElement(YS,{getTriggerDOMNode:ye},Uu)),Q.createElement(KS.Provider,{value:et},Q.createElement(QS,{portal:e,ref:Be,prefixCls:a,popup:F,className:Mn(H,Oi),style:V,target:mt,onMouseEnter:ki,onMouseLeave:vi,onPointerEnter:ki,zIndex:q,open:cn,keepDom:kr,fresh:K,onClick:ie,onPointerDownCapture:bs,mask:T,motion:lr,maskMotion:si,onVisibleChanged:ys,onPrepare:da,forceRender:A,autoDestroy:Te,getPopupContainer:k,align:ca,arrow:Hu,arrowPos:zu,ready:Nn,offsetX:cr,offsetY:Mt,offsetR:fi,offsetB:Ga,onAlign:Rr,stretch:J,targetWidth:ps/di,targetHeight:gs/Ya})))});return t.displayName="Trigger",t}const VL=$L(Sm);function rx(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,a=e.bodyClassName,o=e.className,u=e.style;return Q.createElement("div",{className:Mn("".concat(n,"-content"),o),style:u},Q.createElement("div",{className:Mn("".concat(n,"-inner"),a),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var us={shiftX:64,adjustY:1},ls={adjustX:1,shiftY:!0},Or=[0,0],qL={left:{points:["cr","cl"],overflow:ls,offset:[-4,0],targetOffset:Or},right:{points:["cl","cr"],overflow:ls,offset:[4,0],targetOffset:Or},top:{points:["bc","tc"],overflow:us,offset:[0,-4],targetOffset:Or},bottom:{points:["tc","bc"],overflow:us,offset:[0,4],targetOffset:Or},topLeft:{points:["bl","tl"],overflow:us,offset:[0,-4],targetOffset:Or},leftTop:{points:["tr","tl"],overflow:ls,offset:[-4,0],targetOffset:Or},topRight:{points:["br","tr"],overflow:us,offset:[0,-4],targetOffset:Or},rightTop:{points:["tl","tr"],overflow:ls,offset:[4,0],targetOffset:Or},bottomRight:{points:["tr","br"],overflow:us,offset:[0,4],targetOffset:Or},rightBottom:{points:["bl","br"],overflow:ls,offset:[4,0],targetOffset:Or},bottomLeft:{points:["tl","bl"],overflow:us,offset:[0,4],targetOffset:Or},leftBottom:{points:["br","bl"],overflow:ls,offset:[-4,0],targetOffset:Or}},UL=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],zL=function(t,n){var r=t.overlayClassName,i=t.trigger,a=i===void 0?["hover"]:i,o=t.mouseEnterDelay,u=o===void 0?0:o,l=t.mouseLeaveDelay,f=l===void 0?.1:l,d=t.overlayStyle,h=t.prefixCls,p=h===void 0?"rc-tooltip":h,m=t.children,y=t.onVisibleChange,g=t.afterVisibleChange,b=t.transitionName,w=t.animation,S=t.motion,C=t.placement,T=C===void 0?"right":C,_=t.align,x=_===void 0?{}:_,k=t.destroyTooltipOnHide,A=k===void 0?!1:k,L=t.defaultVisible,N=t.getTooltipContainer,F=t.overlayInnerStyle;t.arrowContent;var H=t.overlay,V=t.id,D=t.showArrow,j=D===void 0?!0:D,z=t.classNames,Y=t.styles,q=Ua(t,UL),J=kS(V),$=M.useRef(null);M.useImperativeHandle(n,function(){return $.current});var K=de({},q);"visible"in t&&(K.popupVisible=t.visible);var ae=function(){return Q.createElement(rx,{key:"content",prefixCls:p,id:J,bodyClassName:z==null?void 0:z.body,overlayInnerStyle:de(de({},F),Y==null?void 0:Y.body)},H)},ie=function(){var fe=Q.Children.only(m),le=(fe==null?void 0:fe.props)||{},ve=de(de({},le),{},{"aria-describedby":H?J:null});return Q.cloneElement(m,ve)};return Q.createElement(VL,ii({popupClassName:Mn(r,z==null?void 0:z.root),prefixCls:p,popup:ae,action:a,builtinPlacements:qL,popupPlacement:T,ref:$,popupAlign:x,getPopupContainer:N,onPopupVisibleChange:y,afterPopupVisibleChange:g,popupTransitionName:b,popupAnimation:w,popupMotion:S,defaultPopupVisible:L,autoDestroy:A,mouseLeaveDelay:f,popupStyle:de(de({},d),Y==null?void 0:Y.root),mouseEnterDelay:u,arrow:j},K),ie())};const HL=M.forwardRef(zL);function BL(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,a=0,o=i,u=r*1/Math.sqrt(2),l=i-r*(1-1/Math.sqrt(2)),f=i-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),h=2*i-f,p=d,m=2*i-u,y=l,g=2*i-a,b=o,w=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),S=r*(Math.sqrt(2)-1),C=`polygon(${S}px 100%, 50% ${S}px, ${2*i-S}px 100%, ${S}px 100%)`,T=`path('M ${a} ${o} A ${r} ${r} 0 0 0 ${u} ${l} L ${f} ${d} A ${n} ${n} 0 0 1 ${h} ${p} L ${m} ${y} A ${r} ${r} 0 0 0 ${g} ${b} Z')`;return{arrowShadowWidth:w,arrowPath:T,arrowPolygon:C}}const WL=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:u,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:o,height:o,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${za(u)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},ix=8;function ax(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?ix:r}}function Kc(e,t){return e?t:{}}function GL(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o}=e,{arrowDistance:u=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},WL(e,t,i)),{"&:before":{background:t}})]},Kc(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${za(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),Kc(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${za(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),Kc(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),Kc(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function QL(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const o=Object.assign(Object.assign({},a),i);return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}const ox={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},YL={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},KL=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function XL(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a}=e,o=t/2,u={};return Object.keys(ox).forEach(l=>{const f=r&&YL[l]||ox[l],d=Object.assign(Object.assign({},f),{offset:[0,0],dynamicInset:!0});switch(u[l]=d,KL.has(l)&&(d.autoArrow=!1),l){case"top":case"topLeft":case"topRight":d.offset[1]=-o-i;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=o+i;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-o-i;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=o+i;break}const h=ax({contentRadius:a,limitVerticalRadius:!0});if(r)switch(l){case"topLeft":case"bottomLeft":d.offset[0]=-h.arrowOffsetHorizontal-o;break;case"topRight":case"bottomRight":d.offset[0]=h.arrowOffsetHorizontal+o;break;case"leftTop":case"rightTop":d.offset[1]=-h.arrowOffsetHorizontal*2+o;break;case"leftBottom":case"rightBottom":d.offset[1]=h.arrowOffsetHorizontal*2-o;break}d.overflow=QL(l,h,t,n),d.htmlRegion="visibleFirst"}),u}const ZL=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:u,controlHeight:l,boxShadowSecondary:f,paddingSM:d,paddingXS:h,arrowOffsetHorizontal:p,sizePopupArrow:m}=e,y=t(o).add(m).add(p).equal(),g=t(o).mul(2).add(m).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},xN(e)),{position:"absolute",zIndex:u,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${n}-inner`]:{minWidth:g,minHeight:l,padding:`${za(e.calc(d).div(2).equal())} ${za(h)}`,color:i,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:f,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:y},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(o,ix)}},[`${n}-content`]:{position:"relative"}}),AN(e,(b,{darkColor:w})=>({[`&${n}-${b}`]:{[`${n}-inner`]:{backgroundColor:w},[`${n}-arrow`]:{"--antd-arrow-background-color":w}}}))),{"&-rtl":{direction:"rtl"}})},GL(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},JL=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},ax({contentRadius:e.borderRadius,limitVerticalRadius:!0})),BL(qc(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),sx=(e,t=!0)=>RN("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:a,colorBgSpotlight:o}=r,u=qc(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:i,tooltipBg:o});return[ZL(u),SI(r,"zoom-big-fast")]},JL,{resetStyle:!1,injectStyle:t})(e),eF=Uc.map(e=>`${e}-inverse`);function tF(e,t=!0){return t?[].concat(De(eF),De(Uc)).includes(e):Uc.includes(e)}function ux(e,t){const n=tF(t),r=Mn({[`${e}-${t}`]:t&&n}),i={},a={};return t&&!n&&(i.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:a}}const nF=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:a,overlayInnerStyle:o}=e,{getPrefixCls:u}=Q.useContext(Nu),l=u("tooltip",t),[f,d,h]=sx(l),p=ux(l,a),m=p.arrowStyle,y=Object.assign(Object.assign({},o),p.overlayStyle),g=Mn(d,h,l,`${l}-pure`,`${l}-placement-${r}`,n,p.className);return f(Q.createElement("div",{className:g,style:m},Q.createElement("div",{className:`${l}-arrow`}),Q.createElement(rx,Object.assign({},e,{className:d,prefixCls:l,overlayInnerStyle:y}),i)))};var rF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Vm=Q.forwardRef((e,t)=>{var n,r;const{prefixCls:i,openClassName:a,getTooltipContainer:o,color:u,overlayInnerStyle:l,children:f,afterOpenChange:d,afterVisibleChange:h,destroyTooltipOnHide:p,destroyOnHidden:m,arrow:y=!0,title:g,overlay:b,builtinPlacements:w,arrowPointAtCenter:S=!1,autoAdjustOverflow:C=!0,motion:T,getPopupContainer:_,placement:x="top",mouseEnterDelay:k=.1,mouseLeaveDelay:A=.1,overlayStyle:L,rootClassName:N,overlayClassName:F,styles:H,classNames:V}=e,D=rF(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),j=!!y,[,z]=hm(),{getPopupContainer:Y,getPrefixCls:q,direction:J,className:$,style:K,classNames:ae,styles:ie}=oN("tooltip"),te=IE("Tooltip"),fe=Q.useRef(null),le=()=>{var At;(At=fe.current)===null||At===void 0||At.forceAlign()};Q.useImperativeHandle(t,()=>{var At,mt;return{forceAlign:le,forcePopupAlign:()=>{te.deprecated(!1,"forcePopupAlign","forceAlign"),le()},nativeElement:(At=fe.current)===null||At===void 0?void 0:At.nativeElement,popupElement:(mt=fe.current)===null||mt===void 0?void 0:mt.popupElement}}),[["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["destroyTooltipOnHide","destroyOnHidden"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"],["overlayStyle","styles={{ root: {} }}"],["overlayInnerStyle","styles={{ body: {} }}"],["overlayClassName",'classNames={{ root: "" }}']].forEach(([At,mt])=>{te.deprecated(!(At in e),At,mt)}),te(!p||typeof p=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),te(!y||typeof y=="boolean"||!("arrowPointAtCenter"in y),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead.");const[ve,_e]=fN(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),be=!g&&!b&&g!==0,we=At=>{var mt,Ut;_e(be?!1:At),be||((mt=e.onOpenChange)===null||mt===void 0||mt.call(e,At),(Ut=e.onVisibleChange)===null||Ut===void 0||Ut.call(e,At))},ne=Q.useMemo(()=>{var At,mt;let Ut=S;return typeof y=="object"&&(Ut=(mt=(At=y.pointAtCenter)!==null&&At!==void 0?At:y.arrowPointAtCenter)!==null&&mt!==void 0?mt:S),w||XL({arrowPointAtCenter:Ut,autoAdjustOverflow:C,arrowWidth:j?z.sizePopupArrow:0,borderRadius:z.borderRadius,offset:z.marginXXS})},[S,y,w,z]),W=Q.useMemo(()=>g===0?g:b||g||"",[b,g]),ye=Q.createElement(kL,{space:!0},typeof W=="function"?W():W),ue=q("tooltip",i),Te=q(),Re=e["data-popover-inject"];let Ze=ve;!("open"in e)&&!("visible"in e)&&be&&(Ze=!1);const ft=Q.isValidElement(f)&&!ZN(f)?f:Q.createElement("span",null,f),dt=ft.props,kt=!dt.className||typeof dt.className=="string"?Mn(dt.className,a||`${ue}-open`):dt.className,[Ve,et,Ee]=sx(ue,!Re),Rt=ux(ue,u),Tt=Rt.arrowStyle,Yt=Mn(F,{[`${ue}-rtl`]:J==="rtl"},Rt.className,N,et,Ee,$,ae.root,V==null?void 0:V.root),un=Mn(ae.body,V==null?void 0:V.body),[Kt,Be]=iI("Tooltip",D.zIndex),Jt=Q.createElement(HL,Object.assign({},D,{zIndex:Kt,showArrow:j,placement:x,mouseEnterDelay:k,mouseLeaveDelay:A,prefixCls:ue,classNames:{root:Yt,body:un},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Tt),ie.root),K),L),H==null?void 0:H.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},ie.body),l),H==null?void 0:H.body),Rt.overlayStyle)},getTooltipContainer:_||o||Y,ref:fe,builtinPlacements:ne,overlay:ye,visible:Ze,onVisibleChange:we,afterVisibleChange:d??h,arrowContent:Q.createElement("span",{className:`${ue}-arrow-content`}),motion:{motionName:aI(Te,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:m??!!p}),Ze?eI(ft,{className:kt}):ft);return Ve(Q.createElement(Em.Provider,{value:Be},Jt))});Vm.displayName="Tooltip",Vm._InternalPanelDoNotUseOrYouWillBeFired=nF;const iF=async(e,t)=>{const{policy:n,file:r}=e||{};return(await uv(n,r)).success?{name:e==null?void 0:e.name,title:r==null?void 0:r.name,size:r==null?void 0:r.size,sub_type:t,type:"conversation_activity_attachment"}:{}},aF=async(e,t)=>{var r;const n=[];try{const i=[];for(let a=0;a<e.length;a+=1)(r=e[a])!=null&&r.id||i.push(iF(e[a],t));n.push(...await Promise.all(i))}catch(i){console.error("Error occurred during file upload:",i),Wt("error","File upload fails","top-left")}return n},oF=({conversationId:e,handleCreateMessage:t})=>{const n=M.useRef(null),r=M.useRef(null),i=M.useRef(null),[a,o]=M.useState(""),[u,l]=M.useState([]),[f,d]=M.useState(!1),{handleCreateOrUpdateRealtimeStatus:h}=_w(),p=async _=>{var F;const x=_==null?void 0:_.name,k=(F=x==null?void 0:x.split)==null?void 0:F.call(x,"."),A=ze.last(k),L=`${Qp()}.${A}`,N=await sv({name:L,sub_type:e,type:"conversation_activity_attachment"});return N!=null&&N.url?{name:L,file:_,title:x,policy:N}:(Wt("error",`${x} cannot be uploaded`,"top-left"),null)},m=async _=>{_.preventDefault();const x=5,k=5*1024*1024,A=Array.from(_.target.files);if(ze.size(u)+A.length>x){Wt("error","Max 5 files can be upload","top-left");return}if(A.filter(N=>N.size>k).length>0){Wt("error","Each file must be under 5MB","top-left");return}try{const N=[];for(let H=0;H<A.length;H+=1)N.push(p(A[H]));const F=await Promise.all(N);l(H=>[...H,...F.filter(V=>V!==null)])}catch(N){console.error("Error occurred while fetching policies:",N)}i.current.value=null},y=_=>{l(x=>x.filter((k,A)=>A!==_)),i.current&&(i.current.value="")};M.useEffect(()=>{const _=n.current,x=r.current;if(_&&x){_.style.height="auto";const A=x.offsetWidth*.5,L=Math.min(_.scrollHeight,A);_.style.height=`${L}px`,x.style.height=`${L+16}px`,_.style.overflowY=_.scrollHeight>A?"auto":"hidden"}},[a,u]);const g=u.slice(0,5),b=Math.max(0,u.length-5),w=async _=>{if(_&&_.preventDefault(),!(!a&&!u.length)){d(!0);try{const x=ze.size(u)&&await aF(u,e);await t({message:a,is_customer_reply:!0,...x&&{files:x}}),o(""),l([])}catch(x){console.error("Error sending message:",x)}finally{d(!1)}}},S=M.useMemo(()=>!a&&!ze.size(u),[a,u]),C=async _=>{_?await h({conversation_id:e,is_writing_reply:!0}):await h({conversation_id:e,is_writing_reply:!1})},T=_=>{_.key==="Enter"&&!_.shiftKey&&(_.preventDefault(),w(_))};return O.jsxs(O.Fragment,{children:[u.length>0&&O.jsxs("div",{className:"ed-flex ed-flex-wrap ed-items-center ed-gap-2 ed-mb-2",children:[g.map((_,x)=>O.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-text-12 ed-font-medium ed-text-border-regular ed-bg-white-light ed-p-1.5 ed-rounded-full",children:[O.jsx("span",{className:"ed-truncate ed-max-w-[100px]",children:_.name}),O.jsx("button",{type:"button",onClick:()=>y(x),className:"ed-text-border hover:ed-text-border-dark ed-flex-shrink-0",children:O.jsx(Ji,{size:14})})]},_)),b>0&&O.jsxs("span",{className:"ed-text-12 ed-text-border-regular",children:["+",b," ",b===1?"item":"items"]})]}),O.jsxs("div",{ref:r,className:"ed-border ed-border-border-light ed-rounded-3xl ed-flex ed-justify-between ed-transition-all ed-duration-200",style:{padding:"8px 16px"},children:[O.jsx("div",{className:"ed-flex-1 ed-flex ed-flex-col ed-min-w-0",children:O.jsx("textarea",{ref:n,value:a,onBlur:()=>C(!1),onChange:_=>o(_.target.value),onFocus:()=>C(!0),onKeyDown:_=>T(_),rows:1,className:"ed-w-full ed-text-14 ed-min-h-[24px] ed-resize-none ed-overflow-x-auto ed-outline-none ed-bg-transparent no-scrollbar",placeholder:"Enter your message"})}),O.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2.5 ed-ml-2 ed-flex-shrink-0",children:[O.jsx("input",{type:"file",ref:i,onChange:m,className:"ed-hidden",accept:".pdf, .png, .jpeg, .jpg",multiple:!0}),O.jsx(Vm,{title:"Supported file types: jpg, png, pdf (max 5MB)",children:O.jsx("button",{type:"button",onClick:()=>{var _;return(_=i.current)==null?void 0:_.click()},className:"ed-text-border hover:ed-text-border-dark",children:O.jsx(Pp,{className:"ed-size-5 ed-cursor-pointer"})})}),O.jsx("button",{onClick:w,type:"button",disabled:S||f,children:f?O.jsx(iv,{className:"ed-size-5"}):O.jsx(Fp,{className:`${S?"ed-text-border":"ed-text-brand"} ed-size-5`})})]})]})]})},lx=({from:e="knowledge-base",isAuthenticated:t,onSubmit:n,reqId:r,setFeedbackForTheArticle:i,userData:a})=>{var _,x,k;const[o,u]=M.useState([]),[l,f]=M.useState(!1),[d,h]=M.useState({}),p=e==="message",m=p?{contact_person_name:a==null?void 0:a.contact_person_name,contact_person_email:a==null?void 0:a.contact_person_email,ticket_title:d==null?void 0:d.ticket_title,ticket_activity:d==null?void 0:d.ticket_activity}:d,[y,{loading:g}]=Ra(vw),b=async()=>{var A,L;try{if(f(!0),ze.size(o)&&ze.size(o)>5){Wt("error","You can upload maximum 5 files","top-right");return}const N=[],F=[];ze.forEach(o,V=>{const D=`${Qp()}.${ze.last(ze.split(V.name,"."))}`;N.push({name:D,title:V.name,size:V.size,type:"ticket_activity_attachment"}),F.push({file:V,name:D})});const{data:H}=await y({variables:{inputData:{...m,...r,ticket_activity_files:N}}});if((A=H==null?void 0:H.createATicketForPortal)!=null&&A.id){let V=[];if(ze.size(F)){const D=F.map(async z=>{var Y;try{const q=await sv({name:z.name,type:"ticket_activity_attachment",sub_type:(Y=H==null?void 0:H.createATicketForPortal)==null?void 0:Y.id});if(q!=null&&q.error)return Wt("error",`Failed to process ${z.name}`,"top-right"),null;const{key:J,url:$,file:K,success:ae}=await uv({key:q.key,url:q.url},z.file);return ae?{key:J,url:$,file:K}:null}catch(q){return console.error(`Error processing file ${z.name}:`,q),Wt("error",`Failed to upload ${z.name}`,"top-right"),null}});V=(await Promise.all(D)).filter(Boolean)}n&&n({ticket_id:(L=H==null?void 0:H.createATicketForPortal)==null?void 0:L.id,ticket_title:m.ticket_title,ticket_activity:m.ticket_activity,ticket_activity_files:V})}}catch(N){Wt("error","Something went wrong","top-right"),console.error("error",N)}finally{f(!1)}},w=(A,L)=>{h(N=>({...N,[A]:L}))},S=Uh(d.contact_person_email),C=!t&&(!((_=d.contact_person_name)!=null&&_.trim())||!S||!d.contact_person_email)||!((x=d.ticket_title)!=null&&x.trim())||!((k=d.ticket_activity)!=null&&k.trim()),T=()=>g||l?!0:C;return O.jsxs("div",{className:`ed-px-5 ed-pb-5 ${p&&"ed-bg-white-light ed-rounded-md ed-py-2 ed-max-w-full md:ed-max-w-[85%] ed-ml-auto"}`,children:[!p&&O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"ed-flex ed-items-start ed-justify-between ed-pt-5 ed-sticky ed-top-0 ed-bg-white",children:[O.jsx("h5",{className:"ed-text-18 ed-font-semibold ed-text-border-dark ed-mb-5",children:"Get in touch"}),O.jsx(Ji,{size:24,className:"ed-text-border-dark ed-cursor-pointer",onClick:()=>i(A=>({...A,notHelpfulModal:!1}))})]}),O.jsx("p",{className:"ed-text-14 ed-font-medium ed-text-border-regular ed-mt-5 ed-mb-4 ed-inline-block ed-w-11/12",children:"Tell us how can we make our product more useful for you."})]}),O.jsxs("div",{className:"ed-space-y-4 ed-mb-6",children:[!t&&O.jsxs(O.Fragment,{children:[O.jsx(Bo,{isRequired:!0,label:"Name",placeholder:"Enter your name",value:d.contact_person_name,onChange:A=>w("contact_person_name",A.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"contact_person_name"}),O.jsx(Bo,{isRequired:!0,type:"email",label:"Email",placeholder:"Enter your email",value:d.contact_person_email,onChange:A=>w("contact_person_email",A.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"contact_person_email"}),(d==null?void 0:d.contact_person_email)&&!S&&O.jsx("span",{className:"ed-text-red ed-font-12",children:"Please enter a valid email address!"})]}),O.jsx(Bo,{isRequired:!0,label:"Subject",placeholder:"Tell us what this feedback is about",value:d.ticket_title,onChange:A=>w("ticket_title",A.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"ticket_title"}),O.jsx(cw,{label:`${t?"Summary":"Description"}`,isRequired:!0,placeholder:"Add more details for us to resolve the issue",value:d.ticket_activity,onChange:A=>w("ticket_activity",A.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"ticket_activity"}),O.jsx(hw,{selectedFiles:o,setSelectedFiles:u})]}),O.jsx("div",{className:"ed-flex ed-justify-end",children:O.jsx(Ho,{title:"Submit",loaderText:"Submitting",fullWidthBtn:!0,disabled:T(),loader:g||l,callBack:b})})]})};var qm={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_CONVERSATION_ACTIVITIES_FOR_PORTAL"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ConversationActivitiesForPortalQueryInputType"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"optionData"}},type:{kind:"NamedType",name:{kind:"Name",value:"OptionDataType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getConversationActivitiesForPortal"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}},{kind:"Argument",name:{kind:"Name",value:"optionData"},value:{kind:"Variable",name:{kind:"Name",value:"optionData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"created_at"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_customer_reply"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"author"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"last_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"first_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatar_file"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"files"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"log"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sub_context"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"new_assignee"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"first_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"meta_data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filtered_rows"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total_rows"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:765}};qm.loc.source={body:`query GET_CONVERSATION_ACTIVITIES_FOR_PORTAL(
254
+ }`),i)}else Cu(i);return function(){Cu(i)}},[t,i])}var AI=!1;function PI(e){return AI}var CS=function(t){return t===!1?!1:!ar()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Sm=G.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer,a=e.debug,o=e.autoDestroy,u=o===void 0?!0:o,l=e.children,f=G.useState(n),d=ke(f,2),h=d[0],p=d[1],m=h||n;Qt(ar()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),G.useEffect(function(){(u||n)&&p(n)},[n,u]);var y=G.useState(function(){return CS(i)}),g=ke(y,2),b=g[0],w=g[1];G.useEffect(function(){var H=CS(i);w(H??null)});var S=xI(m&&!b,a),C=ke(S,2),T=C[0],_=C[1],x=b??T;RI(r&&n&&ar()&&(x===T||x===document.body));var k=null;if(l&&_c(l)&&t){var A=l;k=A.ref}var L=Tv(k,t);if(!m||!ar()||b===void 0)return null;var N=x===!1||PI(),F=l;return t&&(F=G.cloneElement(l,{ref:L})),G.createElement(ES.Provider,{value:_},N?F:_i.createPortal(F,x))});Sm.displayName="Portal";function NI(){var e=de({},G);return e.useId}var TS=0,OS=NI();const kS=OS?function(t){var n=OS();return t||n}:function(t){var n=G.useState("ssr-id"),r=ke(n,2),i=r[0],a=r[1];return G.useEffect(function(){var o=TS;TS+=1,a("rc_unique_".concat(o))},[]),t||i};var Wa="RC_FORM_INTERNAL_HOOKS",Pt=function(){Qt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},rs=G.createContext({getFieldValue:Pt,getFieldsValue:Pt,getFieldError:Pt,getFieldWarning:Pt,getFieldsError:Pt,isFieldsTouched:Pt,isFieldTouched:Pt,isFieldValidating:Pt,isFieldsValidating:Pt,resetFields:Pt,setFields:Pt,setFieldValue:Pt,setFieldsValue:Pt,validateFields:Pt,submit:Pt,getInternalHooks:function(){return Pt(),{dispatch:Pt,initEntityValue:Pt,registerField:Pt,useSubscribe:Pt,setInitialValues:Pt,destroyForm:Pt,setCallbacks:Pt,registerWatch:Pt,getFields:Pt,setValidateMessages:Pt,setPreserve:Pt,getInitialValue:Pt}}}),Qc=G.createContext(null);function xm(e){return e==null?[]:Array.isArray(e)?e:[e]}function II(e){return e&&!!e._init}function Cm(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Tm=Cm();function LI(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function FI(e,t,n){if(Av())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Eu(i,n.prototype),i}function Om(e){var t=typeof Map=="function"?new Map:void 0;return Om=function(r){if(r===null||!LI(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return FI(r,arguments,Su(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Eu(i,r)},Om(e)}var RS={NODE_ENV:'"production"'},DI=/%[sdj%]/g,AS=function(){};typeof process<"u"&&RS&&RS.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(AS=function(t,n){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function km(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function or(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,a=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var o=e.replace(DI,function(u){if(u==="%%")return"%";if(i>=a)return u;switch(u){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return u}});return o}return e}function MI(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function ln(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||MI(t)&&typeof e=="string"&&!e)}function jI(e,t,n){var r=[],i=0,a=e.length;function o(u){r.push.apply(r,De(u||[])),i++,i===a&&n(r)}e.forEach(function(u){t(u,o)})}function PS(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}var u=r;r=r+1,u<i?t(e[u],a):n([])}a([])}function $I(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,De(e[n]||[]))}),t}var NS=function(e){$a(n,e);var t=Va(n);function n(r,i){var a;return An(this,n),a=t.call(this,"Async Validation Error"),re(nt(a),"errors",void 0),re(nt(a),"fields",void 0),a.errors=r,a.fields=i,a}return Pn(n)}(Om(Error));function VI(e,t,n,r,i){if(t.first){var a=new Promise(function(p,m){var y=function(w){return r(w),w.length?m(new NS(w,km(w))):p(i)},g=$I(e);PS(g,n,y)});return a.catch(function(p){return p}),a}var o=t.firstFields===!0?Object.keys(e):t.firstFields||[],u=Object.keys(e),l=u.length,f=0,d=[],h=new Promise(function(p,m){var y=function(b){if(d.push.apply(d,b),f++,f===l)return r(d),d.length?m(new NS(d,km(d))):p(i)};u.length||(r(d),p(i)),u.forEach(function(g){var b=e[g];o.indexOf(g)!==-1?PS(b,n,y):jI(b,n,y)})});return h.catch(function(p){return p}),h}function qI(e){return!!(e&&e.message!==void 0)}function UI(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function IS(e,t){return function(n){var r;return e.fullFields?r=UI(t,e.fullFields):r=t[n.field||e.fullField],qI(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function LS(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];Qe(r)==="object"&&Qe(e[n])==="object"?e[n]=de(de({},e[n]),r):e[n]=r}}return e}var is="enum",zI=function(t,n,r,i,a){t[is]=Array.isArray(t[is])?t[is]:[],t[is].indexOf(n)===-1&&i.push(or(a.messages[is],t.fullField,t[is].join(", ")))},HI=function(t,n,r,i,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(or(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(n)||i.push(or(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},BI=function(t,n,r,i,a){var o=typeof t.len=="number",u=typeof t.min=="number",l=typeof t.max=="number",f=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,h=null,p=typeof n=="number",m=typeof n=="string",y=Array.isArray(n);if(p?h="number":m?h="string":y&&(h="array"),!h)return!1;y&&(d=n.length),m&&(d=n.replace(f,"_").length),o?d!==t.len&&i.push(or(a.messages[h].len,t.fullField,t.len)):u&&!l&&d<t.min?i.push(or(a.messages[h].min,t.fullField,t.min)):l&&!u&&d>t.max?i.push(or(a.messages[h].max,t.fullField,t.max)):u&&l&&(d<t.min||d>t.max)&&i.push(or(a.messages[h].range,t.fullField,t.min,t.max))},FS=function(t,n,r,i,a,o){t.required&&(!r.hasOwnProperty(t.field)||ln(n,o||t.type))&&i.push(or(a.messages.required,t.fullField))},Yc;const WI=function(){if(Yc)return Yc;var e="[a-fA-F\\d:]",t=function(x){return x&&x.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",o="(?:".concat(i.join("|"),")").concat(a),u=new RegExp("(?:^".concat(n,"$)|(?:^").concat(o,"$)")),l=new RegExp("^".concat(n,"$")),f=new RegExp("^".concat(o,"$")),d=function(x){return x&&x.exact?u:new RegExp("(?:".concat(t(x)).concat(n).concat(t(x),")|(?:").concat(t(x)).concat(o).concat(t(x),")"),"g")};d.v4=function(_){return _&&_.exact?l:new RegExp("".concat(t(_)).concat(n).concat(t(_)),"g")},d.v6=function(_){return _&&_.exact?f:new RegExp("".concat(t(_)).concat(o).concat(t(_)),"g")};var h="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",m=d.v4().source,y=d.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",b="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",w="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",S="(?::\\d{2,5})?",C='(?:[/?#][^\\s"]*)?',T="(?:".concat(h,"|www\\.)").concat(p,"(?:localhost|").concat(m,"|").concat(y,"|").concat(g).concat(b).concat(w,")").concat(S).concat(C);return Yc=new RegExp("(?:^".concat(T,"$)"),"i"),Yc};var DS={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Fu={integer:function(t){return Fu.number(t)&&parseInt(t,10)===t},float:function(t){return Fu.number(t)&&!Fu.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return Qe(t)==="object"&&!Fu.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(DS.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(WI())},hex:function(t){return typeof t=="string"&&!!t.match(DS.hex)}},GI=function(t,n,r,i,a){if(t.required&&n===void 0){FS(t,n,r,i,a);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],u=t.type;o.indexOf(u)>-1?Fu[u](n)||i.push(or(a.messages.types[u],t.fullField,t.type)):u&&Qe(n)!==t.type&&i.push(or(a.messages.types[u],t.fullField,t.type))},QI=function(t,n,r,i,a){(/^\s+$/.test(n)||n==="")&&i.push(or(a.messages.whitespace,t.fullField))};const ut={required:FS,whitespace:QI,type:GI,range:BI,enum:zI,pattern:HI};var YI=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(ln(n)&&!t.required)return r();ut.required(t,n,i,o,a)}r(o)},KI=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(n==null&&!t.required)return r();ut.required(t,n,i,o,a,"array"),n!=null&&(ut.type(t,n,i,o,a),ut.range(t,n,i,o,a))}r(o)},XI=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(ln(n)&&!t.required)return r();ut.required(t,n,i,o,a),n!==void 0&&ut.type(t,n,i,o,a)}r(o)},ZI=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(ln(n,"date")&&!t.required)return r();if(ut.required(t,n,i,o,a),!ln(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),ut.type(t,l,i,o,a),l&&ut.range(t,l.getTime(),i,o,a)}}r(o)},JI="enum",eL=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(ln(n)&&!t.required)return r();ut.required(t,n,i,o,a),n!==void 0&&ut[JI](t,n,i,o,a)}r(o)},tL=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(ln(n)&&!t.required)return r();ut.required(t,n,i,o,a),n!==void 0&&(ut.type(t,n,i,o,a),ut.range(t,n,i,o,a))}r(o)},nL=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(ln(n)&&!t.required)return r();ut.required(t,n,i,o,a),n!==void 0&&(ut.type(t,n,i,o,a),ut.range(t,n,i,o,a))}r(o)},rL=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(ln(n)&&!t.required)return r();ut.required(t,n,i,o,a),n!==void 0&&ut.type(t,n,i,o,a)}r(o)},iL=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(n===""&&(n=void 0),ln(n)&&!t.required)return r();ut.required(t,n,i,o,a),n!==void 0&&(ut.type(t,n,i,o,a),ut.range(t,n,i,o,a))}r(o)},aL=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(ln(n)&&!t.required)return r();ut.required(t,n,i,o,a),n!==void 0&&ut.type(t,n,i,o,a)}r(o)},oL=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(ln(n,"string")&&!t.required)return r();ut.required(t,n,i,o,a),ln(n,"string")||ut.pattern(t,n,i,o,a)}r(o)},sL=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(ln(n)&&!t.required)return r();ut.required(t,n,i,o,a),ln(n)||ut.type(t,n,i,o,a)}r(o)},uL=function(t,n,r,i,a){var o=[],u=Array.isArray(n)?"array":Qe(n);ut.required(t,n,i,o,a,u),r(o)},lL=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(ln(n,"string")&&!t.required)return r();ut.required(t,n,i,o,a,"string"),ln(n,"string")||(ut.type(t,n,i,o,a),ut.range(t,n,i,o,a),ut.pattern(t,n,i,o,a),t.whitespace===!0&&ut.whitespace(t,n,i,o,a))}r(o)},Rm=function(t,n,r,i,a){var o=t.type,u=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(ln(n,o)&&!t.required)return r();ut.required(t,n,i,u,a,o),ln(n,o)||ut.type(t,n,i,u,a)}r(u)};const Du={string:lL,method:rL,number:iL,boolean:XI,regexp:sL,integer:nL,float:tL,array:KI,object:aL,enum:eL,pattern:oL,date:ZI,url:Rm,hex:Rm,email:Rm,required:uL,any:YI};var Mu=function(){function e(t){An(this,e),re(this,"rules",null),re(this,"_messages",Tm),this.define(t)}return Pn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Qe(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var a=n[i];r.rules[i]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(n){return n&&(this._messages=LS(Cm(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},o=n,u=i,l=a;if(typeof u=="function"&&(l=u,u={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,o),Promise.resolve(o);function f(y){var g=[],b={};function w(C){if(Array.isArray(C)){var T;g=(T=g).concat.apply(T,De(C))}else g.push(C)}for(var S=0;S<y.length;S++)w(y[S]);g.length?(b=km(g),l(g,b)):l(null,o)}if(u.messages){var d=this.messages();d===Tm&&(d=Cm()),LS(d,u.messages),u.messages=d}else u.messages=this.messages();var h={},p=u.keys||Object.keys(this.rules);p.forEach(function(y){var g=r.rules[y],b=o[y];g.forEach(function(w){var S=w;typeof S.transform=="function"&&(o===n&&(o=de({},o)),b=o[y]=S.transform(b),b!=null&&(S.type=S.type||(Array.isArray(b)?"array":Qe(b)))),typeof S=="function"?S={validator:S}:S=de({},S),S.validator=r.getValidationMethod(S),S.validator&&(S.field=y,S.fullField=S.fullField||y,S.type=r.getType(S),h[y]=h[y]||[],h[y].push({rule:S,value:b,source:o,field:y}))})});var m={};return VI(h,u,function(y,g){var b=y.rule,w=(b.type==="object"||b.type==="array")&&(Qe(b.fields)==="object"||Qe(b.defaultField)==="object");w=w&&(b.required||!b.required&&y.value),b.field=y.field;function S(k,A){return de(de({},A),{},{fullField:"".concat(b.fullField,".").concat(k),fullFields:b.fullFields?[].concat(De(b.fullFields),[k]):[k]})}function C(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],A=Array.isArray(k)?k:[k];!u.suppressWarning&&A.length&&e.warning("async-validator:",A),A.length&&b.message!==void 0&&(A=[].concat(b.message));var L=A.map(IS(b,o));if(u.first&&L.length)return m[b.field]=1,g(L);if(!w)g(L);else{if(b.required&&!y.value)return b.message!==void 0?L=[].concat(b.message).map(IS(b,o)):u.error&&(L=[u.error(b,or(u.messages.required,b.field))]),g(L);var N={};b.defaultField&&Object.keys(y.value).map(function(V){N[V]=b.defaultField}),N=de(de({},N),y.rule.fields);var F={};Object.keys(N).forEach(function(V){var D=N[V],j=Array.isArray(D)?D:[D];F[V]=j.map(S.bind(null,V))});var H=new e(F);H.messages(u.messages),y.rule.options&&(y.rule.options.messages=u.messages,y.rule.options.error=u.error),H.validate(y.value,y.rule.options||u,function(V){var D=[];L&&L.length&&D.push.apply(D,De(L)),V&&V.length&&D.push.apply(D,De(V)),g(D.length?D:null)})}}var T;if(b.asyncValidator)T=b.asyncValidator(b,y.value,C,y.source,u);else if(b.validator){try{T=b.validator(b,y.value,C,y.source,u)}catch(k){var _,x;(_=(x=console).error)===null||_===void 0||_.call(x,k),u.suppressValidatorError||setTimeout(function(){throw k},0),C(k.message)}T===!0?C():T===!1?C(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||"".concat(b.fullField||b.field," fails")):T instanceof Array?C(T):T instanceof Error&&C(T.message)}T&&T.then&&T.then(function(){return C()},function(k){return C(k)})},function(y){f(y)},o)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Du.hasOwnProperty(n.type))throw new Error(or("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?Du.required:Du[this.getType(n)]||void 0}}]),e}();re(Mu,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Du[t]=n}),re(Mu,"warning",AS),re(Mu,"messages",Tm),re(Mu,"validators",Du);var sr="'${name}' is not a valid ${type}",MS={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:sr,method:sr,array:sr,object:sr,number:sr,date:sr,boolean:sr,integer:sr,float:sr,regexp:sr,email:sr,url:sr,hex:sr},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},jS=Mu;function cL(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var $S="CODE_LOGIC_ERROR";function Am(e,t,n,r,i){return Pm.apply(this,arguments)}function Pm(){return Pm=Lu(Yr().mark(function e(t,n,r,i,a){var o,u,l,f,d,h,p,m,y;return Yr().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return o=de({},r),delete o.ruleIndex,jS.warning=function(){},o.validator&&(u=o.validator,o.validator=function(){try{return u.apply(void 0,arguments)}catch(w){return console.error(w),Promise.reject($S)}}),l=null,o&&o.type==="array"&&o.defaultField&&(l=o.defaultField,delete o.defaultField),f=new jS(re({},t,[o])),d=Ru(MS,i.validateMessages),f.messages(d),h=[],b.prev=10,b.next=13,Promise.resolve(f.validate(re({},t,n),de({},i)));case 13:b.next=18;break;case 15:b.prev=15,b.t0=b.catch(10),b.t0.errors&&(h=b.t0.errors.map(function(w,S){var C=w.message,T=C===$S?d.default:C;return G.isValidElement(T)?G.cloneElement(T,{key:"error_".concat(S)}):T}));case 18:if(!(!h.length&&l)){b.next=23;break}return b.next=21,Promise.all(n.map(function(w,S){return Am("".concat(t,".").concat(S),w,l,i,a)}));case 21:return p=b.sent,b.abrupt("return",p.reduce(function(w,S){return[].concat(De(w),De(S))},[]));case 23:return m=de(de({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),y=h.map(function(w){return typeof w=="string"?cL(w,m):w}),b.abrupt("return",y);case 26:case"end":return b.stop()}},e,null,[[10,15]])})),Pm.apply(this,arguments)}function fL(e,t,n,r,i,a){var o=e.join("."),u=n.map(function(d,h){var p=d.validator,m=de(de({},d),{},{ruleIndex:h});return p&&(m.validator=function(y,g,b){var w=!1,S=function(){for(var _=arguments.length,x=new Array(_),k=0;k<_;k++)x[k]=arguments[k];Promise.resolve().then(function(){Qt(!w,"Your validator function has already return a promise. `callback` will be ignored."),w||b.apply(void 0,x)})},C=p(y,g,S);w=C&&typeof C.then=="function"&&typeof C.catch=="function",Qt(w,"`callback` is deprecated. Please return a promise instead."),w&&C.then(function(){b()}).catch(function(T){b(T||" ")})}),m}).sort(function(d,h){var p=d.warningOnly,m=d.ruleIndex,y=h.warningOnly,g=h.ruleIndex;return!!p==!!y?m-g:p?1:-1}),l;if(i===!0)l=new Promise(function(){var d=Lu(Yr().mark(function h(p,m){var y,g,b;return Yr().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:y=0;case 1:if(!(y<u.length)){S.next=12;break}return g=u[y],S.next=5,Am(o,t,g,r,a);case 5:if(b=S.sent,!b.length){S.next=9;break}return m([{errors:b,rule:g}]),S.abrupt("return");case 9:y+=1,S.next=1;break;case 12:p([]);case 13:case"end":return S.stop()}},h)}));return function(h,p){return d.apply(this,arguments)}}());else{var f=u.map(function(d){return Am(o,t,d,r,a).then(function(h){return{errors:h,rule:d}})});l=(i?hL(f):dL(f)).then(function(d){return Promise.reject(d)})}return l.catch(function(d){return d}),l}function dL(e){return Nm.apply(this,arguments)}function Nm(){return Nm=Lu(Yr().mark(function e(t){return Yr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(i){var a,o=(a=[]).concat.apply(a,De(i));return o}));case 1:case"end":return r.stop()}},e)})),Nm.apply(this,arguments)}function hL(e){return Im.apply(this,arguments)}function Im(){return Im=Lu(Yr().mark(function e(t){var n;return Yr().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return n=0,i.abrupt("return",new Promise(function(a){t.forEach(function(o){o.then(function(u){u.errors.length&&a([u]),n+=1,n===t.length&&a([])})})}));case 2:case"end":return i.stop()}},e)})),Im.apply(this,arguments)}function nn(e){return xm(e)}function VS(e,t){var n={};return t.forEach(function(r){var i=oi(e,r);n=Gr(n,r,i)}),n}function as(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return qS(t,r,n)})}function qS(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,i){return e[i]===r})}function pL(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Qe(e)!=="object"||Qe(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return De(i).every(function(a){var o=e[a],u=t[a];return typeof o=="function"&&typeof u=="function"?!0:o===u})}function vL(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Qe(t.target)==="object"&&e in t.target?t.target[e]:t}function US(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],a=t-n;return a>0?[].concat(De(e.slice(0,n)),[i],De(e.slice(n,t)),De(e.slice(t+1,r))):a<0?[].concat(De(e.slice(0,t)),De(e.slice(t+1,n+1)),[i],De(e.slice(n+1,r))):e}var mL=["name"],Tr=[];function Lm(e,t,n,r,i,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==i}var Fm=function(e){$a(n,e);var t=Va(n);function n(r){var i;if(An(this,n),i=t.call(this,r),re(nt(i),"state",{resetCount:0}),re(nt(i),"cancelRegisterFunc",null),re(nt(i),"mounted",!1),re(nt(i),"touched",!1),re(nt(i),"dirty",!1),re(nt(i),"validatePromise",void 0),re(nt(i),"prevValidating",void 0),re(nt(i),"errors",Tr),re(nt(i),"warnings",Tr),re(nt(i),"cancelRegister",function(){var l=i.props,f=l.preserve,d=l.isListField,h=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(d,f,nn(h)),i.cancelRegisterFunc=null}),re(nt(i),"getNamePath",function(){var l=i.props,f=l.name,d=l.fieldContext,h=d.prefixName,p=h===void 0?[]:h;return f!==void 0?[].concat(De(p),De(f)):[]}),re(nt(i),"getRules",function(){var l=i.props,f=l.rules,d=f===void 0?[]:f,h=l.fieldContext;return d.map(function(p){return typeof p=="function"?p(h):p})}),re(nt(i),"refresh",function(){i.mounted&&i.setState(function(l){var f=l.resetCount;return{resetCount:f+1}})}),re(nt(i),"metaCache",null),re(nt(i),"triggerMetaEvent",function(l){var f=i.props.onMetaChange;if(f){var d=de(de({},i.getMeta()),{},{destroy:l});tE(i.metaCache,d)||f(d),i.metaCache=d}else i.metaCache=null}),re(nt(i),"onStoreChange",function(l,f,d){var h=i.props,p=h.shouldUpdate,m=h.dependencies,y=m===void 0?[]:m,g=h.onReset,b=d.store,w=i.getNamePath(),S=i.getValue(l),C=i.getValue(b),T=f&&as(f,w);switch(d.type==="valueUpdate"&&d.source==="external"&&!tE(S,C)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Tr,i.warnings=Tr,i.triggerMetaEvent()),d.type){case"reset":if(!f||T){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Tr,i.warnings=Tr,i.triggerMetaEvent(),g==null||g(),i.refresh();return}break;case"remove":{if(p&&Lm(p,l,b,S,C,d)){i.reRender();return}break}case"setField":{var _=d.data;if(T){"touched"in _&&(i.touched=_.touched),"validating"in _&&!("originRCField"in _)&&(i.validatePromise=_.validating?Promise.resolve([]):null),"errors"in _&&(i.errors=_.errors||Tr),"warnings"in _&&(i.warnings=_.warnings||Tr),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in _&&as(f,w,!0)){i.reRender();return}if(p&&!w.length&&Lm(p,l,b,S,C,d)){i.reRender();return}break}case"dependenciesUpdate":{var x=y.map(nn);if(x.some(function(k){return as(d.relatedFields,k)})){i.reRender();return}break}default:if(T||(!y.length||w.length||p)&&Lm(p,l,b,S,C,d)){i.reRender();return}break}p===!0&&i.reRender()}),re(nt(i),"validateRules",function(l){var f=i.getNamePath(),d=i.getValue(),h=l||{},p=h.triggerName,m=h.validateOnly,y=m===void 0?!1:m,g=Promise.resolve().then(Lu(Yr().mark(function b(){var w,S,C,T,_,x,k;return Yr().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:if(i.mounted){L.next=2;break}return L.abrupt("return",[]);case 2:if(w=i.props,S=w.validateFirst,C=S===void 0?!1:S,T=w.messageVariables,_=w.validateDebounce,x=i.getRules(),p&&(x=x.filter(function(N){return N}).filter(function(N){var F=N.validateTrigger;if(!F)return!0;var H=xm(F);return H.includes(p)})),!(_&&p)){L.next=10;break}return L.next=8,new Promise(function(N){setTimeout(N,_)});case 8:if(i.validatePromise===g){L.next=10;break}return L.abrupt("return",[]);case 10:return k=fL(f,d,x,l,C,T),k.catch(function(N){return N}).then(function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tr;if(i.validatePromise===g){var F;i.validatePromise=null;var H=[],V=[];(F=N.forEach)===null||F===void 0||F.call(N,function(D){var j=D.rule.warningOnly,z=D.errors,Q=z===void 0?Tr:z;j?V.push.apply(V,De(Q)):H.push.apply(H,De(Q))}),i.errors=H,i.warnings=V,i.triggerMetaEvent(),i.reRender()}}),L.abrupt("return",k);case 13:case"end":return L.stop()}},b)})));return y||(i.validatePromise=g,i.dirty=!0,i.errors=Tr,i.warnings=Tr,i.triggerMetaEvent(),i.reRender()),g}),re(nt(i),"isFieldValidating",function(){return!!i.validatePromise}),re(nt(i),"isFieldTouched",function(){return i.touched}),re(nt(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var l=i.props.fieldContext,f=l.getInternalHooks(Wa),d=f.getInitialValue;return d(i.getNamePath())!==void 0}),re(nt(i),"getErrors",function(){return i.errors}),re(nt(i),"getWarnings",function(){return i.warnings}),re(nt(i),"isListField",function(){return i.props.isListField}),re(nt(i),"isList",function(){return i.props.isList}),re(nt(i),"isPreserve",function(){return i.props.preserve}),re(nt(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l}),re(nt(i),"getOnlyChild",function(l){if(typeof l=="function"){var f=i.getMeta();return de(de({},i.getOnlyChild(l(i.getControlled(),f,i.props.fieldContext))),{},{isFunction:!0})}var d=yc(l);return d.length!==1||!G.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),re(nt(i),"getValue",function(l){var f=i.props.fieldContext.getFieldsValue,d=i.getNamePath();return oi(l||f(!0),d)}),re(nt(i),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=i.props,d=f.name,h=f.trigger,p=f.validateTrigger,m=f.getValueFromEvent,y=f.normalize,g=f.valuePropName,b=f.getValueProps,w=f.fieldContext,S=p!==void 0?p:w.validateTrigger,C=i.getNamePath(),T=w.getInternalHooks,_=w.getFieldsValue,x=T(Wa),k=x.dispatch,A=i.getValue(),L=b||function(D){return re({},g,D)},N=l[h],F=d!==void 0?L(A):{};F&&Object.keys(F).forEach(function(D){Qt(typeof F[D]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(D,")"))});var H=de(de({},l),F);H[h]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var D,j=arguments.length,z=new Array(j),Q=0;Q<j;Q++)z[Q]=arguments[Q];m?D=m.apply(void 0,z):D=vL.apply(void 0,[g].concat(z)),y&&(D=y(D,A,_(!0))),D!==A&&k({type:"updateValue",namePath:C,value:D}),N&&N.apply(void 0,z)};var V=xm(S||[]);return V.forEach(function(D){var j=H[D];H[D]=function(){j&&j.apply(void 0,arguments);var z=i.props.rules;z&&z.length&&k({type:"validateField",namePath:C,triggerName:D})}}),H}),r.fieldContext){var a=r.fieldContext.getInternalHooks,o=a(Wa),u=o.initEntityValue;u(nt(i))}return i}return Pn(n,[{key:"componentDidMount",value:function(){var i=this.props,a=i.shouldUpdate,o=i.fieldContext;if(this.mounted=!0,o){var u=o.getInternalHooks,l=u(Wa),f=l.registerField;this.cancelRegisterFunc=f(this)}a===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var i=this.state.resetCount,a=this.props.children,o=this.getOnlyChild(a),u=o.child,l=o.isFunction,f;return l?f=u:G.isValidElement(u)?f=G.cloneElement(u,this.getControlled(u.props)):(Qt(!u,"`children` of Field is not validate ReactElement."),f=u),G.createElement(G.Fragment,{key:i},f)}}]),n}(G.Component);re(Fm,"contextType",rs),re(Fm,"defaultProps",{trigger:"onChange",valuePropName:"value"});function zS(e){var t,n=e.name,r=Ua(e,mL),i=G.useContext(rs),a=G.useContext(Qc),o=n!==void 0?nn(n):void 0,u=(t=r.isListField)!==null&&t!==void 0?t:!!a,l="keep";return u||(l="_".concat((o||[]).join("_"))),r.preserve===!1&&u&&o.length<=1&&Qt(!1,"`preserve` should not apply on Form.List fields."),G.createElement(Fm,ii({key:l,name:o,isListField:u},r,{fieldContext:i}))}function gL(e){var t=e.name,n=e.initialValue,r=e.children,i=e.rules,a=e.validateTrigger,o=e.isListField,u=G.useContext(rs),l=G.useContext(Qc),f=G.useRef({keys:[],id:0}),d=f.current,h=G.useMemo(function(){var g=nn(u.prefixName)||[];return[].concat(De(g),De(nn(t)))},[u.prefixName,t]),p=G.useMemo(function(){return de(de({},u),{},{prefixName:h})},[u,h]),m=G.useMemo(function(){return{getKey:function(b){var w=h.length,S=b[w];return[d.keys[S],b.slice(w+1)]}}},[h]);if(typeof r!="function")return Qt(!1,"Form.List only accepts function as children."),null;var y=function(b,w,S){var C=S.source;return C==="internal"?!1:b!==w};return G.createElement(Qc.Provider,{value:m},G.createElement(rs.Provider,{value:p},G.createElement(zS,{name:[],shouldUpdate:y,rules:i,validateTrigger:a,initialValue:n,isList:!0,isListField:o??!!l},function(g,b){var w=g.value,S=w===void 0?[]:w,C=g.onChange,T=u.getFieldValue,_=function(){var L=T(h||[]);return L||[]},x={add:function(L,N){var F=_();N>=0&&N<=F.length?(d.keys=[].concat(De(d.keys.slice(0,N)),[d.id],De(d.keys.slice(N))),C([].concat(De(F.slice(0,N)),[L],De(F.slice(N))))):((N<0||N>F.length)&&Qt(!1,"The second parameter of the add function should be a valid positive number."),d.keys=[].concat(De(d.keys),[d.id]),C([].concat(De(F),[L]))),d.id+=1},remove:function(L){var N=_(),F=new Set(Array.isArray(L)?L:[L]);F.size<=0||(d.keys=d.keys.filter(function(H,V){return!F.has(V)}),C(N.filter(function(H,V){return!F.has(V)})))},move:function(L,N){if(L!==N){var F=_();L<0||L>=F.length||N<0||N>=F.length||(d.keys=US(d.keys,L,N),C(US(F,L,N)))}}},k=S||[];return Array.isArray(k)||(k=[],Qt(!1,"Current value of '".concat(h.join(" > "),"' is not an array type."))),r(k.map(function(A,L){var N=d.keys[L];return N===void 0&&(d.keys[L]=d.id,N=d.keys[L],d.id+=1),{name:L,key:N,isListField:!0}}),x,b)})))}function yL(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,a){e.forEach(function(o,u){o.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[u]=l,!(n>0)&&(t&&a(r),i(r))})})}):Promise.resolve([])}var HS="__@field_split__";function Dm(e){return e.map(function(t){return"".concat(Qe(t),":").concat(t)}).join(HS)}var os=function(){function e(){An(this,e),re(this,"kvs",new Map)}return Pn(e,[{key:"set",value:function(n,r){this.kvs.set(Dm(n),r)}},{key:"get",value:function(n){return this.kvs.get(Dm(n))}},{key:"update",value:function(n,r){var i=this.get(n),a=r(i);a?this.set(n,a):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Dm(n))}},{key:"map",value:function(n){return De(this.kvs.entries()).map(function(r){var i=ke(r,2),a=i[0],o=i[1],u=a.split(HS);return n({key:u.map(function(l){var f=l.match(/^([^:]*):(.*)$/),d=ke(f,3),h=d[1],p=d[2];return h==="number"?Number(p):p}),value:o})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,a=r.value;return n[i.join(".")]=a,null}),n}}]),e}(),bL=["name"],_L=Pn(function e(t){var n=this;An(this,e),re(this,"formHooked",!1),re(this,"forceRootUpdate",void 0),re(this,"subscribable",!0),re(this,"store",{}),re(this,"fieldEntities",[]),re(this,"initialValues",{}),re(this,"callbacks",{}),re(this,"validateMessages",null),re(this,"preserve",null),re(this,"lastValidatePromise",null),re(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),re(this,"getInternalHooks",function(r){return r===Wa?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Qt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),re(this,"useSubscribe",function(r){n.subscribable=r}),re(this,"prevWithoutPreserves",null),re(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var a,o=Ru(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(u){var l=u.key;o=Gr(o,l,oi(r,l))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),re(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new os;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||i.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=i}}),re(this,"getInitialValue",function(r){var i=oi(n.initialValues,r);return r.length?Ru(i):i}),re(this,"setCallbacks",function(r){n.callbacks=r}),re(this,"setValidateMessages",function(r){n.validateMessages=r}),re(this,"setPreserve",function(r){n.preserve=r}),re(this,"watchList",[]),re(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),re(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(o){o(i,a,r)})}}),re(this,"timeoutId",null),re(this,"warningUnhooked",function(){!n.timeoutId&&typeof window<"u"&&(n.timeoutId=setTimeout(function(){n.timeoutId=null,n.formHooked||Qt(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),re(this,"updateStore",function(r){n.store=r}),re(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities}),re(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new os;return n.getFieldEntities(r).forEach(function(a){var o=a.getNamePath();i.set(o,a)}),i}),re(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(a){var o=nn(a);return i.get(o)||{INVALIDATE_NAME_PATH:nn(a)}})}),re(this,"getFieldsValue",function(r,i){n.warningUnhooked();var a,o,u;if(r===!0||Array.isArray(r)?(a=r,o=i):r&&Qe(r)==="object"&&(u=r.strict,o=r.filter),a===!0&&!o)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),f=[];return l.forEach(function(d){var h,p,m="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(u){var y,g;if((y=(g=d).isList)!==null&&y!==void 0&&y.call(g))return}else if(!a&&(h=(p=d).isListField)!==null&&h!==void 0&&h.call(p))return;if(!o)f.push(m);else{var b="getMeta"in d?d.getMeta():null;o(b)&&f.push(m)}}),VS(n.store,f.map(nn))}),re(this,"getFieldValue",function(r){n.warningUnhooked();var i=nn(r);return oi(n.store,i)}),re(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(a,o){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:nn(r[o]),errors:[],warnings:[]}})}),re(this,"getFieldError",function(r){n.warningUnhooked();var i=nn(r),a=n.getFieldsError([i])[0];return a.errors}),re(this,"getFieldWarning",function(r){n.warningUnhooked();var i=nn(r),a=n.getFieldsError([i])[0];return a.warnings}),re(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=i[0],u=i[1],l,f=!1;i.length===0?l=null:i.length===1?Array.isArray(o)?(l=o.map(nn),f=!1):(l=null,f=o):(l=o.map(nn),f=u);var d=n.getFieldEntities(!0),h=function(b){return b.isFieldTouched()};if(!l)return f?d.every(function(g){return h(g)||g.isList()}):d.some(h);var p=new os;l.forEach(function(g){p.set(g,[])}),d.forEach(function(g){var b=g.getNamePath();l.forEach(function(w){w.every(function(S,C){return b[C]===S})&&p.update(w,function(S){return[].concat(De(S),[g])})})});var m=function(b){return b.some(h)},y=p.map(function(g){var b=g.value;return b});return f?y.every(m):y.some(m)}),re(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),re(this,"isFieldsValidating",function(r){n.warningUnhooked();var i=n.getFieldEntities();if(!r)return i.some(function(o){return o.isFieldValidating()});var a=r.map(nn);return i.some(function(o){var u=o.getNamePath();return as(a,u)&&o.isFieldValidating()})}),re(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),re(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=new os,a=n.getFieldEntities(!0);a.forEach(function(l){var f=l.props.initialValue,d=l.getNamePath();if(f!==void 0){var h=i.get(d)||new Set;h.add({entity:l,value:f}),i.set(d,h)}});var o=function(f){f.forEach(function(d){var h=d.props.initialValue;if(h!==void 0){var p=d.getNamePath(),m=n.getInitialValue(p);if(m!==void 0)Qt(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var y=i.get(p);if(y&&y.size>1)Qt(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(y){var g=n.getFieldValue(p),b=d.isListField();!b&&(!r.skipExist||g===void 0)&&n.updateStore(Gr(n.store,p,De(y)[0].value))}}}})},u;r.entities?u=r.entities:r.namePathList?(u=[],r.namePathList.forEach(function(l){var f=i.get(l);if(f){var d;(d=u).push.apply(d,De(De(f).map(function(h){return h.entity})))}})):u=a,o(u)}),re(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(Ru(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(nn);a.forEach(function(o){var u=n.getInitialValue(o);n.updateStore(Gr(n.store,o,u))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(i,a,{type:"reset"}),n.notifyWatch(a)}),re(this,"setFields",function(r){n.warningUnhooked();var i=n.store,a=[];r.forEach(function(o){var u=o.name,l=Ua(o,bL),f=nn(u);a.push(f),"value"in l&&n.updateStore(Gr(n.store,f,l.value)),n.notifyObservers(i,[f],{type:"setField",data:o})}),n.notifyWatch(a)}),re(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(a){var o=a.getNamePath(),u=a.getMeta(),l=de(de({},u),{},{name:o,value:n.getFieldValue(o)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i}),re(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var a=r.getNamePath(),o=oi(n.store,a);o===void 0&&n.updateStore(Gr(n.store,a,i))}}),re(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),re(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,u){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(h){return h!==r}),!n.isMergedPreserve(u)&&(!o||l.length>1)){var f=o?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==f&&n.fieldEntities.every(function(h){return!qS(h.getNamePath(),i)})){var d=n.store;n.updateStore(Gr(d,i,f,!0)),n.notifyObservers(d,[i],{type:"remove"}),n.triggerDependenciesUpdate(d,i)}}n.notifyWatch([i])}}),re(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,a=r.value;n.updateValue(i,a);break}case"validateField":{var o=r.namePath,u=r.triggerName;n.validateFields([o],{triggerName:u});break}}}),re(this,"notifyObservers",function(r,i,a){if(n.subscribable){var o=de(de({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(u){var l=u.onStoreChange;l(r,i,o)})}else n.forceRootUpdate()}),re(this,"triggerDependenciesUpdate",function(r,i){var a=n.getDependencyChildrenFields(i);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[i].concat(De(a))}),a}),re(this,"updateValue",function(r,i){var a=nn(r),o=n.store;n.updateStore(Gr(n.store,a,i)),n.notifyObservers(o,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var u=n.triggerDependenciesUpdate(o,a),l=n.callbacks.onValuesChange;if(l){var f=VS(n.store,[a]);l(f,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(De(u)))}),re(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var a=Ru(n.store,r);n.updateStore(a)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),re(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i,errors:[],warnings:[]}])}),re(this,"getDependencyChildrenFields",function(r){var i=new Set,a=[],o=new os;n.getFieldEntities().forEach(function(l){var f=l.props.dependencies;(f||[]).forEach(function(d){var h=nn(d);o.update(h,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(l),p})})});var u=function l(f){var d=o.get(f)||new Set;d.forEach(function(h){if(!i.has(h)){i.add(h);var p=h.getNamePath();h.isFieldDirty()&&p.length&&(a.push(p),l(p))}})};return u(r),a}),re(this,"triggerOnFieldsChange",function(r,i){var a=n.callbacks.onFieldsChange;if(a){var o=n.getFields();if(i){var u=new os;i.forEach(function(f){var d=f.name,h=f.errors;u.set(d,h)}),o.forEach(function(f){f.errors=u.get(f.name)||f.errors})}var l=o.filter(function(f){var d=f.name;return as(r,d)});l.length&&a(l,o)}}),re(this,"validateFields",function(r,i){n.warningUnhooked();var a,o;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(a=r,o=i):o=r;var u=!!a,l=u?a.map(nn):[],f=[],d=String(Date.now()),h=new Set,p=o||{},m=p.recursive,y=p.dirty;n.getFieldEntities(!0).forEach(function(S){if(u||l.push(S.getNamePath()),!(!S.props.rules||!S.props.rules.length)&&!(y&&!S.isFieldDirty())){var C=S.getNamePath();if(h.add(C.join(d)),!u||as(l,C,m)){var T=S.validateRules(de({validateMessages:de(de({},MS),n.validateMessages)},o));f.push(T.then(function(){return{name:C,errors:[],warnings:[]}}).catch(function(_){var x,k=[],A=[];return(x=_.forEach)===null||x===void 0||x.call(_,function(L){var N=L.rule.warningOnly,F=L.errors;N?A.push.apply(A,De(F)):k.push.apply(k,De(F))}),k.length?Promise.reject({name:C,errors:k,warnings:A}):{name:C,errors:k,warnings:A}}))}}});var g=yL(f);n.lastValidatePromise=g,g.catch(function(S){return S}).then(function(S){var C=S.map(function(T){var _=T.name;return _});n.notifyObservers(n.store,C,{type:"validateFinish"}),n.triggerOnFieldsChange(C,S)});var b=g.then(function(){return n.lastValidatePromise===g?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(S){var C=S.filter(function(T){return T&&T.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:C,outOfDate:n.lastValidatePromise!==g})});b.catch(function(S){return S});var w=l.filter(function(S){return h.has(S.join(d))});return n.triggerOnFieldsChange(w),b}),re(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(a){console.error(a)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function BS(e){var t=G.useRef(),n=G.useState({}),r=ke(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){i({})},o=new _L(a);t.current=o.getForm()}return[t.current]}var Mm=G.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),wL=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,a=t.children,o=G.useContext(Mm),u=G.useRef({});return G.createElement(Mm.Provider,{value:de(de({},o),{},{validateMessages:de(de({},o.validateMessages),n),triggerFormChange:function(f,d){r&&r(f,{changedFields:d,forms:u.current}),o.triggerFormChange(f,d)},triggerFormFinish:function(f,d){i&&i(f,{values:d,forms:u.current}),o.triggerFormFinish(f,d)},registerForm:function(f,d){f&&(u.current=de(de({},u.current),{},re({},f,d))),o.registerForm(f,d)},unregisterForm:function(f){var d=de({},u.current);delete d[f],u.current=d,o.unregisterForm(f)}})},a)},EL=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],SL=function(t,n){var r=t.name,i=t.initialValues,a=t.fields,o=t.form,u=t.preserve,l=t.children,f=t.component,d=f===void 0?"form":f,h=t.validateMessages,p=t.validateTrigger,m=p===void 0?"onChange":p,y=t.onValuesChange,g=t.onFieldsChange,b=t.onFinish,w=t.onFinishFailed,S=t.clearOnDestroy,C=Ua(t,EL),T=G.useRef(null),_=G.useContext(Mm),x=BS(o),k=ke(x,1),A=k[0],L=A.getInternalHooks(Wa),N=L.useSubscribe,F=L.setInitialValues,H=L.setCallbacks,V=L.setValidateMessages,D=L.setPreserve,j=L.destroyForm;G.useImperativeHandle(n,function(){return de(de({},A),{},{nativeElement:T.current})}),G.useEffect(function(){return _.registerForm(r,A),function(){_.unregisterForm(r)}},[_,A,r]),V(de(de({},_.validateMessages),h)),H({onValuesChange:y,onFieldsChange:function(te){if(_.triggerFormChange(r,te),g){for(var fe=arguments.length,le=new Array(fe>1?fe-1:0),me=1;me<fe;me++)le[me-1]=arguments[me];g.apply(void 0,[te].concat(le))}},onFinish:function(te){_.triggerFormFinish(r,te),b&&b(te)},onFinishFailed:w}),D(u);var z=G.useRef(null);F(i,!z.current),z.current||(z.current=!0),G.useEffect(function(){return function(){return j(S)}},[]);var Q,q=typeof l=="function";if(q){var J=A.getFieldsValue(!0);Q=l(J,A)}else Q=l;N(!q);var $=G.useRef();G.useEffect(function(){pL($.current||[],a||[])||A.setFields(a||[]),$.current=a},[a,A]);var Y=G.useMemo(function(){return de(de({},A),{},{validateTrigger:m})},[A,m]),ae=G.createElement(Qc.Provider,{value:null},G.createElement(rs.Provider,{value:Y},Q));return d===!1?ae:G.createElement(d,ii({},C,{ref:T,onSubmit:function(te){te.preventDefault(),te.stopPropagation(),A.submit()},onReset:function(te){var fe;te.preventDefault(),A.resetFields(),(fe=C.onReset)===null||fe===void 0||fe.call(C,te)}}),ae)};function WS(e){try{return JSON.stringify(e)}catch{return Math.random()}}var xL=function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),n=M.useRef(t);Qt(n.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")};function CL(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=i===void 0?{}:i,o=II(a)?{form:a}:a,u=o.form,l=M.useState(),f=ke(l,2),d=f[0],h=f[1],p=M.useMemo(function(){return WS(d)},[d]),m=M.useRef(p);m.current=p;var y=M.useContext(rs),g=u||y,b=g&&g._init;Qt(t.length===2?u?b:!0:b,"useWatch requires a form instance since it can not auto detect from context.");var w=nn(r),S=M.useRef(w);return S.current=w,xL(w),M.useEffect(function(){if(b){var C=g.getFieldsValue,T=g.getInternalHooks,_=T(Wa),x=_.registerWatch,k=function(F,H){var V=o.preserve?H:F;return typeof r=="function"?r(V):oi(V,S.current)},A=x(function(N,F){var H=k(N,F),V=WS(H);m.current!==V&&(m.current=V,h(H))}),L=k(C(),C(!0));return d!==L&&h(L),A}},[b]),d}var TL=G.forwardRef(SL),ju=TL;ju.FormProvider=wL,ju.Field=zS,ju.List=gL,ju.useForm=BS,ju.useWatch=CL;const jm=G.createContext({});jm.displayName="FormItemInputContext";const OL=({children:e,status:t,override:n})=>{const r=G.useContext(jm),i=G.useMemo(()=>{const a=Object.assign({},r);return n&&delete a.isFormItemInput,t&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[t,n,r]);return G.createElement(jm.Provider,{value:i},e)},kL=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let i=r;return n&&(i=M.createElement(OL,{override:!0,status:!0},i)),t&&(i=M.createElement(uI,null,i)),i},RL=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};function AL(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,a=r||{},o=a.className,u=a.content,l=i.x,f=l===void 0?0:l,d=i.y,h=d===void 0?0:d,p=G.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(n.autoArrow!==!1){var y=n.points[0],g=n.points[1],b=y[0],w=y[1],S=g[0],C=g[1];b===S||!["t","b"].includes(b)?m.top=h:b==="t"?m.top=0:m.bottom=0,w===C||!["l","r"].includes(w)?m.left=f:w==="l"?m.left=0:m.right=0}return G.createElement("div",{ref:p,className:Mn("".concat(t,"-arrow"),o),style:m},u)}function PL(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,a=e.motion;return i?G.createElement(vm,ii({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(o){var u=o.className;return G.createElement("div",{style:{zIndex:r},className:Mn("".concat(t,"-mask"),u)})}):null}var GS=G.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});GS.displayName="PopupContent";var QS=G.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,a=e.style,o=e.target,u=e.onVisibleChanged,l=e.open,f=e.keepDom,d=e.fresh,h=e.onClick,p=e.mask,m=e.arrow,y=e.arrowPos,g=e.align,b=e.motion,w=e.maskMotion,S=e.forceRender,C=e.getPopupContainer,T=e.autoDestroy,_=e.portal,x=e.zIndex,k=e.onMouseEnter,A=e.onMouseLeave,L=e.onPointerEnter,N=e.onPointerDownCapture,F=e.ready,H=e.offsetX,V=e.offsetY,D=e.offsetR,j=e.offsetB,z=e.onAlign,Q=e.onPrepare,q=e.stretch,J=e.targetWidth,$=e.targetHeight,Y=typeof n=="function"?n():n,ae=l||f,ie=(C==null?void 0:C.length)>0,te=G.useState(!C||!ie),fe=ke(te,2),le=fe[0],me=fe[1];if(jn(function(){!le&&ie&&o&&me(!0)},[le,ie,o]),!le)return null;var _e="auto",be={left:"-1000vw",top:"-1000vh",right:_e,bottom:_e};if(F||!l){var ne,ve=g.points,K=g.dynamicInset||((ne=g._experimental)===null||ne===void 0?void 0:ne.dynamicInset),we=K&&ve[0][1]==="r",ue=K&&ve[0][0]==="b";we?(be.right=D,be.left=_e):(be.left=H,be.right=_e),ue?(be.bottom=j,be.top=_e):(be.top=V,be.bottom=_e)}var Te={};return q&&(q.includes("height")&&$?Te.height=$:q.includes("minHeight")&&$&&(Te.minHeight=$),q.includes("width")&&J?Te.width=J:q.includes("minWidth")&&J&&(Te.minWidth=J)),l||(Te.pointerEvents="none"),G.createElement(_,{open:S||ae,getContainer:C&&function(){return C(o)},autoDestroy:T},G.createElement(PL,{prefixCls:i,open:l,zIndex:x,mask:p,motion:w}),G.createElement(xc,{onResize:z,disabled:!l},function(Ie){return G.createElement(vm,ii({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:S,leavedClassName:"".concat(i,"-hidden")},b,{onAppearPrepare:Q,onEnterPrepare:Q,visible:l,onVisibleChanged:function(xt){var Ot;b==null||(Ot=b.onVisibleChanged)===null||Ot===void 0||Ot.call(b,xt),u(xt)}}),function(Je,xt){var Ot=Je.className,Vt=Je.style,Me=Mn(i,Ot,r);return G.createElement("div",{ref:Nw(Ie,t,xt),className:Me,style:de(de(de(de({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},be),Te),Vt),{},{boxSizing:"border-box",zIndex:x},a),onMouseEnter:k,onMouseLeave:A,onPointerEnter:L,onClick:h,onPointerDownCapture:N},m&&G.createElement(AL,{prefixCls:i,arrow:m,arrowPos:y,align:g}),G.createElement(GS,{cache:!l&&!d},Y))})}))});QS.displayName="Popup";var YS=G.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=_c(n),a=G.useCallback(function(u){Cv(t,r?r(u):u)},[r]),o=Tv(a,Ov(n));return i?G.cloneElement(n,{ref:o}):n});YS.displayName="TriggerWrapper";var KS=G.createContext(null);function XS(e){return e?Array.isArray(e)?e:[e]:[]}function NL(e,t,n,r){return G.useMemo(function(){var i=XS(n??t),a=XS(r??t),o=new Set(i),u=new Set(a);return e&&(o.has("hover")&&(o.delete("hover"),o.add("click")),u.has("hover")&&(u.delete("hover"),u.add("click"))),[o,u]},[e,t,n,r])}function IL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function LL(e,t,n,r){for(var i=n.points,a=Object.keys(e),o=0;o<a.length;o+=1){var u,l=a[o];if(IL((u=e[l])===null||u===void 0?void 0:u.points,i,r))return"".concat(t,"-placement-").concat(l)}return""}function ZS(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function $u(e){return e.ownerDocument.defaultView}function $m(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=$u(n).getComputedStyle(n),a=i.overflowX,o=i.overflowY,u=i.overflow;[a,o,u].some(function(l){return r.includes(l)})&&t.push(n),n=n.parentElement}return t}function Vu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function qu(e){return Vu(parseFloat(e),0)}function JS(e,t){var n=de({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=$u(r).getComputedStyle(r),a=i.overflow,o=i.overflowClipMargin,u=i.borderTopWidth,l=i.borderBottomWidth,f=i.borderLeftWidth,d=i.borderRightWidth,h=r.getBoundingClientRect(),p=r.offsetHeight,m=r.clientHeight,y=r.offsetWidth,g=r.clientWidth,b=qu(u),w=qu(l),S=qu(f),C=qu(d),T=Vu(Math.round(h.width/y*1e3)/1e3),_=Vu(Math.round(h.height/p*1e3)/1e3),x=(y-g-S-C)*T,k=(p-m-b-w)*_,A=b*_,L=w*_,N=S*T,F=C*T,H=0,V=0;if(a==="clip"){var D=qu(o);H=D*T,V=D*_}var j=h.x+N-H,z=h.y+A-V,Q=j+h.width+2*H-N-F-x,q=z+h.height+2*V-A-L-k;n.left=Math.max(n.left,j),n.top=Math.max(n.top,z),n.right=Math.min(n.right,Q),n.bottom=Math.min(n.bottom,q)}}),n}function ex(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function tx(e,t){var n=t||[],r=ke(n,2),i=r[0],a=r[1];return[ex(e.width,i),ex(e.height,a)]}function nx(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function ss(e,t){var n=t[0],r=t[1],i,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:a}}function oa(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,i){return i===t?n[r]||"c":r}).join("")}function FL(e,t,n,r,i,a,o){var u=G.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),l=ke(u,2),f=l[0],d=l[1],h=G.useRef(0),p=G.useMemo(function(){return t?$m(t):[]},[t]),m=G.useRef({}),y=function(){m.current={}};e||y();var g=Cr(function(){if(t&&n&&e){let qn=function(ki,vi){var mi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:jt,eo=te.x+ki,to=te.y+vi,Uu=eo+we,zu=to+K,Hu=Math.max(eo,mi.left),Ae=Math.max(to,mi.top),Fe=Math.min(Uu,mi.right),$t=Math.min(zu,mi.bottom);return Math.max(0,(Fe-Hu)*($t-Ae))},Ja=function(){at=te.y+Rt,Be=at+K,qe=te.x+vt,zt=qe+we};var S,C,T,_,x=t,k=x.ownerDocument,A=$u(x),L=A.getComputedStyle(x),N=L.width,F=L.height,H=L.position,V=x.style.left,D=x.style.top,j=x.style.right,z=x.style.bottom,Q=x.style.overflow,q=de(de({},i[r]),a),J=k.createElement("div");(S=x.parentElement)===null||S===void 0||S.appendChild(J),J.style.left="".concat(x.offsetLeft,"px"),J.style.top="".concat(x.offsetTop,"px"),J.style.position=H,J.style.height="".concat(x.offsetHeight,"px"),J.style.width="".concat(x.offsetWidth,"px"),x.style.left="0",x.style.top="0",x.style.right="auto",x.style.bottom="auto",x.style.overflow="hidden";var $;if(Array.isArray(n))$={x:n[0],y:n[1],width:0,height:0};else{var Y,ae,ie=n.getBoundingClientRect();ie.x=(Y=ie.x)!==null&&Y!==void 0?Y:ie.left,ie.y=(ae=ie.y)!==null&&ae!==void 0?ae:ie.top,$={x:ie.x,y:ie.y,width:ie.width,height:ie.height}}var te=x.getBoundingClientRect();te.x=(C=te.x)!==null&&C!==void 0?C:te.left,te.y=(T=te.y)!==null&&T!==void 0?T:te.top;var fe=k.documentElement,le=fe.clientWidth,me=fe.clientHeight,_e=fe.scrollWidth,be=fe.scrollHeight,ne=fe.scrollTop,ve=fe.scrollLeft,K=te.height,we=te.width,ue=$.height,Te=$.width,Ie={left:0,top:0,right:le,bottom:me},Je={left:-ve,top:-ne,right:_e-ve,bottom:be-ne},xt=q.htmlRegion,Ot="visible",Vt="visibleFirst";xt!=="scroll"&&xt!==Vt&&(xt=Ot);var Me=xt===Vt,et=JS(Je,p),Ee=JS(Ie,p),jt=xt===Ot?Ee:et,Ct=Me?Ee:jt;x.style.left="auto",x.style.top="auto",x.style.right="0",x.style.bottom="0";var Yt=x.getBoundingClientRect();x.style.left=V,x.style.top=D,x.style.right=j,x.style.bottom=z,x.style.overflow=Q,(_=x.parentElement)===null||_===void 0||_.removeChild(J);var un=Vu(Math.round(we/parseFloat(N)*1e3)/1e3),Kt=Vu(Math.round(K/parseFloat(F)*1e3)/1e3);if(un===0||Kt===0||wu(n)&&!oI(n))return;var He=q.offset,Jt=q.targetOffset,kt=tx(te,He),pt=ke(kt,2),Ut=pt[0],mn=pt[1],xi=tx($,Jt),ur=ke(xi,2),gn=ur[0],Qn=ur[1];$.x-=gn,$.y-=Qn;var sa=q.points||[],lr=ke(sa,2),si=lr[0],ui=lr[1],$n=nx(ui),En=nx(si),li=ss($,$n),cn=ss(te,En),Yn=de({},q),vt=li.x-cn.x+Ut,Rt=li.y-cn.y+mn,Vn=qn(vt,Rt),Kn=qn(vt,Rt,Ee),ci=ss($,["t","l"]),yn=ss(te,["t","l"]),ua=ss($,["b","r"]),Ci=ss(te,["b","r"]),kr=q.overflow||{},B=kr.adjustX,ye=kr.adjustY,Se=kr.shiftX,Le=kr.shiftY,it=function(vi){return typeof vi=="boolean"?vi:vi>=0},at,Be,qe,zt;Ja();var mt=it(ye),Lt=En[0]===$n[0];if(mt&&En[0]==="t"&&(Be>Ct.bottom||m.current.bt)){var ht=Rt;Lt?ht-=K-ue:ht=ci.y-Ci.y-mn;var Nn=qn(vt,ht),cr=qn(vt,ht,Ee);Nn>Vn||Nn===Vn&&(!Me||cr>=Kn)?(m.current.bt=!0,Rt=ht,mn=-mn,Yn.points=[oa(En,0),oa($n,0)]):m.current.bt=!1}if(mt&&En[0]==="b"&&(at<Ct.top||m.current.tb)){var Ft=Rt;Lt?Ft+=K-ue:Ft=ua.y-yn.y-mn;var fi=qn(vt,Ft),Ga=qn(vt,Ft,Ee);fi>Vn||fi===Vn&&(!Me||Ga>=Kn)?(m.current.tb=!0,Rt=Ft,mn=-mn,Yn.points=[oa(En,0),oa($n,0)]):m.current.tb=!1}var la=it(B),Qa=En[1]===$n[1];if(la&&En[1]==="l"&&(zt>Ct.right||m.current.rl)){var di=vt;Qa?di-=we-Te:di=ci.x-Ci.x-Ut;var Ya=qn(di,Rt),ca=qn(di,Rt,Ee);Ya>Vn||Ya===Vn&&(!Me||ca>=Kn)?(m.current.rl=!0,vt=di,Ut=-Ut,Yn.points=[oa(En,1),oa($n,1)]):m.current.rl=!1}if(la&&En[1]==="r"&&(qe<Ct.left||m.current.lr)){var Kr=vt;Qa?Kr+=we-Te:Kr=ua.x-yn.x-Ut;var cs=qn(Kr,Rt),fs=qn(Kr,Rt,Ee);cs>Vn||cs===Vn&&(!Me||fs>=Kn)?(m.current.lr=!0,vt=Kr,Ut=-Ut,Yn.points=[oa(En,1),oa($n,1)]):m.current.lr=!1}Ja();var fr=Se===!0?0:Se;typeof fr=="number"&&(qe<Ee.left&&(vt-=qe-Ee.left-Ut,$.x+Te<Ee.left+fr&&(vt+=$.x-Ee.left+Te-fr)),zt>Ee.right&&(vt-=zt-Ee.right-Ut,$.x>Ee.right-fr&&(vt+=$.x-Ee.right+fr)));var Xn=Le===!0?0:Le;typeof Xn=="number"&&(at<Ee.top&&(Rt-=at-Ee.top-mn,$.y+ue<Ee.top+Xn&&(Rt+=$.y-Ee.top+ue-Xn)),Be>Ee.bottom&&(Rt-=Be-Ee.bottom-mn,$.y>Ee.bottom-Xn&&(Rt+=$.y-Ee.bottom+Xn)));var Ti=te.x+vt,hi=Ti+we,Rr=te.y+Rt,ds=Rr+K,Oi=$.x,hs=Oi+Te,Ka=$.y,ps=Ka+ue,vs=Math.max(Ti,Oi),Xa=Math.min(hi,hs),ms=(vs+Xa)/2,gs=ms-Ti,Za=Math.max(Rr,Ka),fa=Math.min(ds,ps),pi=(Za+fa)/2,ys=pi-Rr;o==null||o(t,Yn);var da=Yt.right-te.x-(vt+te.width),Ar=Yt.bottom-te.y-(Rt+te.height);un===1&&(vt=Math.round(vt),da=Math.round(da)),Kt===1&&(Rt=Math.round(Rt),Ar=Math.round(Ar));var bs={ready:!0,offsetX:vt/un,offsetY:Rt/Kt,offsetR:da/un,offsetB:Ar/Kt,arrowX:gs/un,arrowY:ys/Kt,scaleX:un,scaleY:Kt,align:Yn};d(bs)}}),b=function(){h.current+=1;var C=h.current;Promise.resolve().then(function(){h.current===C&&g()})},w=function(){d(function(C){return de(de({},C),{},{ready:!1})})};return jn(w,[r]),jn(function(){e||w()},[e]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,b]}function DL(e,t,n,r,i){jn(function(){if(e&&t&&n){let h=function(){r(),i()};var a=t,o=n,u=$m(a),l=$m(o),f=$u(o),d=new Set([f].concat(De(u),De(l)));return d.forEach(function(p){p.addEventListener("scroll",h,{passive:!0})}),f.addEventListener("resize",h,{passive:!0}),r(),function(){d.forEach(function(p){p.removeEventListener("scroll",h),f.removeEventListener("resize",h)})}}},[e,t,n])}function ML(e,t,n,r,i,a,o,u){var l=G.useRef(e);l.current=e;var f=G.useRef(!1);G.useEffect(function(){if(t&&r&&(!i||a)){var h=function(){f.current=!1},p=function(T){var _;l.current&&!o(((_=T.composedPath)===null||_===void 0||(_=_.call(T))===null||_===void 0?void 0:_[0])||T.target)&&!f.current&&u(!1)},m=$u(r);m.addEventListener("pointerdown",h,!0),m.addEventListener("mousedown",p,!0),m.addEventListener("contextmenu",p,!0);var y=wm(n);y&&(y.addEventListener("mousedown",p,!0),y.addEventListener("contextmenu",p,!0));{var g,b,w=n==null||(g=n.getRootNode)===null||g===void 0?void 0:g.call(n),S=(b=r.getRootNode)===null||b===void 0?void 0:b.call(r);Go(w===S,"trigger element and popup element should in same shadow root.")}return function(){m.removeEventListener("pointerdown",h,!0),m.removeEventListener("mousedown",p,!0),m.removeEventListener("contextmenu",p,!0),y&&(y.removeEventListener("mousedown",p,!0),y.removeEventListener("contextmenu",p,!0))}}},[t,n,r,i,a]);function d(){f.current=!0}return d}var jL=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function $L(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Sm,t=G.forwardRef(function(n,r){var i=n.prefixCls,a=i===void 0?"rc-trigger-popup":i,o=n.children,u=n.action,l=u===void 0?"hover":u,f=n.showAction,d=n.hideAction,h=n.popupVisible,p=n.defaultPopupVisible,m=n.onPopupVisibleChange,y=n.afterPopupVisibleChange,g=n.mouseEnterDelay,b=n.mouseLeaveDelay,w=b===void 0?.1:b,S=n.focusDelay,C=n.blurDelay,T=n.mask,_=n.maskClosable,x=_===void 0?!0:_,k=n.getPopupContainer,A=n.forceRender,L=n.autoDestroy,N=n.destroyPopupOnHide,F=n.popup,H=n.popupClassName,V=n.popupStyle,D=n.popupPlacement,j=n.builtinPlacements,z=j===void 0?{}:j,Q=n.popupAlign,q=n.zIndex,J=n.stretch,$=n.getPopupClassNameFromAlign,Y=n.fresh,ae=n.alignPoint,ie=n.onPopupClick,te=n.onPopupAlign,fe=n.arrow,le=n.popupMotion,me=n.maskMotion,_e=n.popupTransitionName,be=n.popupAnimation,ne=n.maskTransitionName,ve=n.maskAnimation,K=n.className,we=n.getTriggerDOMNode,ue=Ua(n,jL),Te=L||N||!1,Ie=G.useState(!1),Je=ke(Ie,2),xt=Je[0],Ot=Je[1];jn(function(){Ot(RL())},[]);var Vt=G.useRef({}),Me=G.useContext(KS),et=G.useMemo(function(){return{registerSubPopup:function(Fe,$t){Vt.current[Fe]=$t,Me==null||Me.registerSubPopup(Fe,$t)}}},[Me]),Ee=kS(),jt=G.useState(null),Ct=ke(jt,2),Yt=Ct[0],un=Ct[1],Kt=G.useRef(null),He=Cr(function(Ae){Kt.current=Ae,wu(Ae)&&Yt!==Ae&&un(Ae),Me==null||Me.registerSubPopup(Ee,Ae)}),Jt=G.useState(null),kt=ke(Jt,2),pt=kt[0],Ut=kt[1],mn=G.useRef(null),xi=Cr(function(Ae){wu(Ae)&&pt!==Ae&&(Ut(Ae),mn.current=Ae)}),ur=G.Children.only(o),gn=(ur==null?void 0:ur.props)||{},Qn={},sa=Cr(function(Ae){var Fe,$t,rn=pt;return(rn==null?void 0:rn.contains(Ae))||((Fe=wm(rn))===null||Fe===void 0?void 0:Fe.host)===Ae||Ae===rn||(Yt==null?void 0:Yt.contains(Ae))||(($t=wm(Yt))===null||$t===void 0?void 0:$t.host)===Ae||Ae===Yt||Object.values(Vt.current).some(function(Ht){return(Ht==null?void 0:Ht.contains(Ae))||Ae===Ht})}),lr=ZS(a,le,be,_e),si=ZS(a,me,ve,ne),ui=G.useState(p||!1),$n=ke(ui,2),En=$n[0],li=$n[1],cn=h??En,Yn=Cr(function(Ae){h===void 0&&li(Ae)});jn(function(){li(h||!1)},[h]);var vt=G.useRef(cn);vt.current=cn;var Rt=G.useRef([]);Rt.current=[];var Vn=Cr(function(Ae){var Fe;Yn(Ae),((Fe=Rt.current[Rt.current.length-1])!==null&&Fe!==void 0?Fe:cn)!==Ae&&(Rt.current.push(Ae),m==null||m(Ae))}),Kn=G.useRef(),ci=function(){clearTimeout(Kn.current)},yn=function(Fe){var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ci(),$t===0?Vn(Fe):Kn.current=setTimeout(function(){Vn(Fe)},$t*1e3)};G.useEffect(function(){return ci},[]);var ua=G.useState(!1),Ci=ke(ua,2),kr=Ci[0],B=Ci[1];jn(function(Ae){(!Ae||cn)&&B(!0)},[cn]);var ye=G.useState(null),Se=ke(ye,2),Le=Se[0],it=Se[1],at=G.useState(null),Be=ke(at,2),qe=Be[0],zt=Be[1],mt=function(Fe){zt([Fe.clientX,Fe.clientY])},Lt=FL(cn,Yt,ae&&qe!==null?qe:pt,D,z,Q,te),ht=ke(Lt,11),Nn=ht[0],cr=ht[1],Ft=ht[2],fi=ht[3],Ga=ht[4],la=ht[5],Qa=ht[6],di=ht[7],Ya=ht[8],ca=ht[9],Kr=ht[10],cs=NL(xt,l,f,d),fs=ke(cs,2),fr=fs[0],Xn=fs[1],Ti=fr.has("click"),hi=Xn.has("click")||Xn.has("contextMenu"),Rr=Cr(function(){kr||Kr()}),ds=function(){vt.current&&ae&&hi&&yn(!1)};DL(cn,pt,Yt,Rr,ds),jn(function(){Rr()},[qe,D]),jn(function(){cn&&!(z!=null&&z[D])&&Rr()},[JSON.stringify(Q)]);var Oi=G.useMemo(function(){var Ae=LL(z,a,ca,ae);return Mn(Ae,$==null?void 0:$(ca))},[ca,$,z,a,ae]);G.useImperativeHandle(r,function(){return{nativeElement:mn.current,popupElement:Kt.current,forceAlign:Rr}});var hs=G.useState(0),Ka=ke(hs,2),ps=Ka[0],vs=Ka[1],Xa=G.useState(0),ms=ke(Xa,2),gs=ms[0],Za=ms[1],fa=function(){if(J&&pt){var Fe=pt.getBoundingClientRect();vs(Fe.width),Za(Fe.height)}},pi=function(){fa(),Rr()},ys=function(Fe){B(!1),Kr(),y==null||y(Fe)},da=function(){return new Promise(function(Fe){fa(),it(function(){return Fe})})};jn(function(){Le&&(Kr(),Le(),it(null))},[Le]);function Ar(Ae,Fe,$t,rn){Qn[Ae]=function(Ht){var _s;rn==null||rn(Ht),yn(Fe,$t);for(var Bu=arguments.length,Nt=new Array(Bu>1?Bu-1:0),gt=1;gt<Bu;gt++)Nt[gt-1]=arguments[gt];(_s=gn[Ae])===null||_s===void 0||_s.call.apply(_s,[gn,Ht].concat(Nt))}}(Ti||hi)&&(Qn.onClick=function(Ae){var Fe;vt.current&&hi?yn(!1):!vt.current&&Ti&&(mt(Ae),yn(!0));for(var $t=arguments.length,rn=new Array($t>1?$t-1:0),Ht=1;Ht<$t;Ht++)rn[Ht-1]=arguments[Ht];(Fe=gn.onClick)===null||Fe===void 0||Fe.call.apply(Fe,[gn,Ae].concat(rn))});var bs=ML(cn,hi,pt,Yt,T,x,sa,yn),qn=fr.has("hover"),Ja=Xn.has("hover"),ki,vi;qn&&(Ar("onMouseEnter",!0,g,function(Ae){mt(Ae)}),Ar("onPointerEnter",!0,g,function(Ae){mt(Ae)}),ki=function(Fe){(cn||kr)&&Yt!==null&&Yt!==void 0&&Yt.contains(Fe.target)&&yn(!0,g)},ae&&(Qn.onMouseMove=function(Ae){var Fe;(Fe=gn.onMouseMove)===null||Fe===void 0||Fe.call(gn,Ae)})),Ja&&(Ar("onMouseLeave",!1,w),Ar("onPointerLeave",!1,w),vi=function(){yn(!1,w)}),fr.has("focus")&&Ar("onFocus",!0,S),Xn.has("focus")&&Ar("onBlur",!1,C),fr.has("contextMenu")&&(Qn.onContextMenu=function(Ae){var Fe;vt.current&&Xn.has("contextMenu")?yn(!1):(mt(Ae),yn(!0)),Ae.preventDefault();for(var $t=arguments.length,rn=new Array($t>1?$t-1:0),Ht=1;Ht<$t;Ht++)rn[Ht-1]=arguments[Ht];(Fe=gn.onContextMenu)===null||Fe===void 0||Fe.call.apply(Fe,[gn,Ae].concat(rn))}),K&&(Qn.className=Mn(gn.className,K));var mi=de(de({},gn),Qn),eo={},to=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];to.forEach(function(Ae){ue[Ae]&&(eo[Ae]=function(){for(var Fe,$t=arguments.length,rn=new Array($t),Ht=0;Ht<$t;Ht++)rn[Ht]=arguments[Ht];(Fe=mi[Ae])===null||Fe===void 0||Fe.call.apply(Fe,[mi].concat(rn)),ue[Ae].apply(ue,rn)})});var Uu=G.cloneElement(ur,de(de({},mi),eo)),zu={x:la,y:Qa},Hu=fe?de({},fe!==!0?fe:{}):null;return G.createElement(G.Fragment,null,G.createElement(xc,{disabled:!cn,ref:xi,onResize:pi},G.createElement(YS,{getTriggerDOMNode:we},Uu)),G.createElement(KS.Provider,{value:et},G.createElement(QS,{portal:e,ref:He,prefixCls:a,popup:F,className:Mn(H,Oi),style:V,target:pt,onMouseEnter:ki,onMouseLeave:vi,onPointerEnter:ki,zIndex:q,open:cn,keepDom:kr,fresh:Y,onClick:ie,onPointerDownCapture:bs,mask:T,motion:lr,maskMotion:si,onVisibleChanged:ys,onPrepare:da,forceRender:A,autoDestroy:Te,getPopupContainer:k,align:ca,arrow:Hu,arrowPos:zu,ready:Nn,offsetX:cr,offsetY:Ft,offsetR:fi,offsetB:Ga,onAlign:Rr,stretch:J,targetWidth:ps/di,targetHeight:gs/Ya})))});return t.displayName="Trigger",t}const VL=$L(Sm);function rx(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,a=e.bodyClassName,o=e.className,u=e.style;return G.createElement("div",{className:Mn("".concat(n,"-content"),o),style:u},G.createElement("div",{className:Mn("".concat(n,"-inner"),a),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var us={shiftX:64,adjustY:1},ls={adjustX:1,shiftY:!0},Or=[0,0],qL={left:{points:["cr","cl"],overflow:ls,offset:[-4,0],targetOffset:Or},right:{points:["cl","cr"],overflow:ls,offset:[4,0],targetOffset:Or},top:{points:["bc","tc"],overflow:us,offset:[0,-4],targetOffset:Or},bottom:{points:["tc","bc"],overflow:us,offset:[0,4],targetOffset:Or},topLeft:{points:["bl","tl"],overflow:us,offset:[0,-4],targetOffset:Or},leftTop:{points:["tr","tl"],overflow:ls,offset:[-4,0],targetOffset:Or},topRight:{points:["br","tr"],overflow:us,offset:[0,-4],targetOffset:Or},rightTop:{points:["tl","tr"],overflow:ls,offset:[4,0],targetOffset:Or},bottomRight:{points:["tr","br"],overflow:us,offset:[0,4],targetOffset:Or},rightBottom:{points:["bl","br"],overflow:ls,offset:[4,0],targetOffset:Or},bottomLeft:{points:["tl","bl"],overflow:us,offset:[0,4],targetOffset:Or},leftBottom:{points:["br","bl"],overflow:ls,offset:[-4,0],targetOffset:Or}},UL=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],zL=function(t,n){var r=t.overlayClassName,i=t.trigger,a=i===void 0?["hover"]:i,o=t.mouseEnterDelay,u=o===void 0?0:o,l=t.mouseLeaveDelay,f=l===void 0?.1:l,d=t.overlayStyle,h=t.prefixCls,p=h===void 0?"rc-tooltip":h,m=t.children,y=t.onVisibleChange,g=t.afterVisibleChange,b=t.transitionName,w=t.animation,S=t.motion,C=t.placement,T=C===void 0?"right":C,_=t.align,x=_===void 0?{}:_,k=t.destroyTooltipOnHide,A=k===void 0?!1:k,L=t.defaultVisible,N=t.getTooltipContainer,F=t.overlayInnerStyle;t.arrowContent;var H=t.overlay,V=t.id,D=t.showArrow,j=D===void 0?!0:D,z=t.classNames,Q=t.styles,q=Ua(t,UL),J=kS(V),$=M.useRef(null);M.useImperativeHandle(n,function(){return $.current});var Y=de({},q);"visible"in t&&(Y.popupVisible=t.visible);var ae=function(){return G.createElement(rx,{key:"content",prefixCls:p,id:J,bodyClassName:z==null?void 0:z.body,overlayInnerStyle:de(de({},F),Q==null?void 0:Q.body)},H)},ie=function(){var fe=G.Children.only(m),le=(fe==null?void 0:fe.props)||{},me=de(de({},le),{},{"aria-describedby":H?J:null});return G.cloneElement(m,me)};return G.createElement(VL,ii({popupClassName:Mn(r,z==null?void 0:z.root),prefixCls:p,popup:ae,action:a,builtinPlacements:qL,popupPlacement:T,ref:$,popupAlign:x,getPopupContainer:N,onPopupVisibleChange:y,afterPopupVisibleChange:g,popupTransitionName:b,popupAnimation:w,popupMotion:S,defaultPopupVisible:L,autoDestroy:A,mouseLeaveDelay:f,popupStyle:de(de({},d),Q==null?void 0:Q.root),mouseEnterDelay:u,arrow:j},Y),ie())};const HL=M.forwardRef(zL);function BL(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,a=0,o=i,u=r*1/Math.sqrt(2),l=i-r*(1-1/Math.sqrt(2)),f=i-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),h=2*i-f,p=d,m=2*i-u,y=l,g=2*i-a,b=o,w=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),S=r*(Math.sqrt(2)-1),C=`polygon(${S}px 100%, 50% ${S}px, ${2*i-S}px 100%, ${S}px 100%)`,T=`path('M ${a} ${o} A ${r} ${r} 0 0 0 ${u} ${l} L ${f} ${d} A ${n} ${n} 0 0 1 ${h} ${p} L ${m} ${y} A ${r} ${r} 0 0 0 ${g} ${b} Z')`;return{arrowShadowWidth:w,arrowPath:T,arrowPolygon:C}}const WL=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:u,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:o,height:o,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${za(u)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},ix=8;function ax(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?ix:r}}function Kc(e,t){return e?t:{}}function GL(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o}=e,{arrowDistance:u=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},WL(e,t,i)),{"&:before":{background:t}})]},Kc(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${za(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),Kc(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${za(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),Kc(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),Kc(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function QL(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const o=Object.assign(Object.assign({},a),i);return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}const ox={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},YL={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},KL=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function XL(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a}=e,o=t/2,u={};return Object.keys(ox).forEach(l=>{const f=r&&YL[l]||ox[l],d=Object.assign(Object.assign({},f),{offset:[0,0],dynamicInset:!0});switch(u[l]=d,KL.has(l)&&(d.autoArrow=!1),l){case"top":case"topLeft":case"topRight":d.offset[1]=-o-i;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=o+i;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-o-i;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=o+i;break}const h=ax({contentRadius:a,limitVerticalRadius:!0});if(r)switch(l){case"topLeft":case"bottomLeft":d.offset[0]=-h.arrowOffsetHorizontal-o;break;case"topRight":case"bottomRight":d.offset[0]=h.arrowOffsetHorizontal+o;break;case"leftTop":case"rightTop":d.offset[1]=-h.arrowOffsetHorizontal*2+o;break;case"leftBottom":case"rightBottom":d.offset[1]=h.arrowOffsetHorizontal*2-o;break}d.overflow=QL(l,h,t,n),d.htmlRegion="visibleFirst"}),u}const ZL=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:u,controlHeight:l,boxShadowSecondary:f,paddingSM:d,paddingXS:h,arrowOffsetHorizontal:p,sizePopupArrow:m}=e,y=t(o).add(m).add(p).equal(),g=t(o).mul(2).add(m).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},xN(e)),{position:"absolute",zIndex:u,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${n}-inner`]:{minWidth:g,minHeight:l,padding:`${za(e.calc(d).div(2).equal())} ${za(h)}`,color:i,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:f,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:y},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(o,ix)}},[`${n}-content`]:{position:"relative"}}),AN(e,(b,{darkColor:w})=>({[`&${n}-${b}`]:{[`${n}-inner`]:{backgroundColor:w},[`${n}-arrow`]:{"--antd-arrow-background-color":w}}}))),{"&-rtl":{direction:"rtl"}})},GL(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},JL=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},ax({contentRadius:e.borderRadius,limitVerticalRadius:!0})),BL(qc(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),sx=(e,t=!0)=>RN("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:a,colorBgSpotlight:o}=r,u=qc(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:i,tooltipBg:o});return[ZL(u),SI(r,"zoom-big-fast")]},JL,{resetStyle:!1,injectStyle:t})(e),eF=Uc.map(e=>`${e}-inverse`);function tF(e,t=!0){return t?[].concat(De(eF),De(Uc)).includes(e):Uc.includes(e)}function ux(e,t){const n=tF(t),r=Mn({[`${e}-${t}`]:t&&n}),i={},a={};return t&&!n&&(i.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:a}}const nF=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:a,overlayInnerStyle:o}=e,{getPrefixCls:u}=G.useContext(Nu),l=u("tooltip",t),[f,d,h]=sx(l),p=ux(l,a),m=p.arrowStyle,y=Object.assign(Object.assign({},o),p.overlayStyle),g=Mn(d,h,l,`${l}-pure`,`${l}-placement-${r}`,n,p.className);return f(G.createElement("div",{className:g,style:m},G.createElement("div",{className:`${l}-arrow`}),G.createElement(rx,Object.assign({},e,{className:d,prefixCls:l,overlayInnerStyle:y}),i)))};var rF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Vm=G.forwardRef((e,t)=>{var n,r;const{prefixCls:i,openClassName:a,getTooltipContainer:o,color:u,overlayInnerStyle:l,children:f,afterOpenChange:d,afterVisibleChange:h,destroyTooltipOnHide:p,destroyOnHidden:m,arrow:y=!0,title:g,overlay:b,builtinPlacements:w,arrowPointAtCenter:S=!1,autoAdjustOverflow:C=!0,motion:T,getPopupContainer:_,placement:x="top",mouseEnterDelay:k=.1,mouseLeaveDelay:A=.1,overlayStyle:L,rootClassName:N,overlayClassName:F,styles:H,classNames:V}=e,D=rF(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),j=!!y,[,z]=hm(),{getPopupContainer:Q,getPrefixCls:q,direction:J,className:$,style:Y,classNames:ae,styles:ie}=oN("tooltip"),te=IE("Tooltip"),fe=G.useRef(null),le=()=>{var kt;(kt=fe.current)===null||kt===void 0||kt.forceAlign()};G.useImperativeHandle(t,()=>{var kt,pt;return{forceAlign:le,forcePopupAlign:()=>{te.deprecated(!1,"forcePopupAlign","forceAlign"),le()},nativeElement:(kt=fe.current)===null||kt===void 0?void 0:kt.nativeElement,popupElement:(pt=fe.current)===null||pt===void 0?void 0:pt.popupElement}}),[["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["destroyTooltipOnHide","destroyOnHidden"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"],["overlayStyle","styles={{ root: {} }}"],["overlayInnerStyle","styles={{ body: {} }}"],["overlayClassName",'classNames={{ root: "" }}']].forEach(([kt,pt])=>{te.deprecated(!(kt in e),kt,pt)}),te(!p||typeof p=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),te(!y||typeof y=="boolean"||!("arrowPointAtCenter"in y),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead.");const[me,_e]=fN(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),be=!g&&!b&&g!==0,ne=kt=>{var pt,Ut;_e(be?!1:kt),be||((pt=e.onOpenChange)===null||pt===void 0||pt.call(e,kt),(Ut=e.onVisibleChange)===null||Ut===void 0||Ut.call(e,kt))},ve=G.useMemo(()=>{var kt,pt;let Ut=S;return typeof y=="object"&&(Ut=(pt=(kt=y.pointAtCenter)!==null&&kt!==void 0?kt:y.arrowPointAtCenter)!==null&&pt!==void 0?pt:S),w||XL({arrowPointAtCenter:Ut,autoAdjustOverflow:C,arrowWidth:j?z.sizePopupArrow:0,borderRadius:z.borderRadius,offset:z.marginXXS})},[S,y,w,z]),K=G.useMemo(()=>g===0?g:b||g||"",[b,g]),we=G.createElement(kL,{space:!0},typeof K=="function"?K():K),ue=q("tooltip",i),Te=q(),Ie=e["data-popover-inject"];let Je=me;!("open"in e)&&!("visible"in e)&&be&&(Je=!1);const xt=G.isValidElement(f)&&!ZN(f)?f:G.createElement("span",null,f),Ot=xt.props,Vt=!Ot.className||typeof Ot.className=="string"?Mn(Ot.className,a||`${ue}-open`):Ot.className,[Me,et,Ee]=sx(ue,!Ie),jt=ux(ue,u),Ct=jt.arrowStyle,Yt=Mn(F,{[`${ue}-rtl`]:J==="rtl"},jt.className,N,et,Ee,$,ae.root,V==null?void 0:V.root),un=Mn(ae.body,V==null?void 0:V.body),[Kt,He]=iI("Tooltip",D.zIndex),Jt=G.createElement(HL,Object.assign({},D,{zIndex:Kt,showArrow:j,placement:x,mouseEnterDelay:k,mouseLeaveDelay:A,prefixCls:ue,classNames:{root:Yt,body:un},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ct),ie.root),Y),L),H==null?void 0:H.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},ie.body),l),H==null?void 0:H.body),jt.overlayStyle)},getTooltipContainer:_||o||Q,ref:fe,builtinPlacements:ve,overlay:we,visible:Je,onVisibleChange:ne,afterVisibleChange:d??h,arrowContent:G.createElement("span",{className:`${ue}-arrow-content`}),motion:{motionName:aI(Te,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:m??!!p}),Je?eI(xt,{className:Vt}):xt);return Me(G.createElement(Em.Provider,{value:He},Jt))});Vm.displayName="Tooltip",Vm._InternalPanelDoNotUseOrYouWillBeFired=nF;const iF=async(e,t)=>{const{policy:n,file:r}=e||{};return(await uv(n,r)).success?{name:e==null?void 0:e.name,title:r==null?void 0:r.name,size:r==null?void 0:r.size,sub_type:t,type:"conversation_activity_attachment"}:{}},aF=async(e,t)=>{var r;const n=[];try{const i=[];for(let a=0;a<e.length;a+=1)(r=e[a])!=null&&r.id||i.push(iF(e[a],t));n.push(...await Promise.all(i))}catch(i){console.error("Error occurred during file upload:",i),Wt("error","File upload fails","top-left")}return n},oF=({conversationId:e,handleCreateMessage:t})=>{const n=M.useRef(null),r=M.useRef(null),i=M.useRef(null),[a,o]=M.useState(""),[u,l]=M.useState([]),[f,d]=M.useState(!1),{handleCreateOrUpdateRealtimeStatus:h}=_w(),p=async _=>{var F;const x=_==null?void 0:_.name,k=(F=x==null?void 0:x.split)==null?void 0:F.call(x,"."),A=Ge.last(k),L=`${Qp()}.${A}`,N=await sv({name:L,sub_type:e,type:"conversation_activity_attachment"});return N!=null&&N.url?{name:L,file:_,title:x,policy:N}:(Wt("error",`${x} cannot be uploaded`,"top-left"),null)},m=async _=>{_.preventDefault();const x=5,k=5*1024*1024,A=Array.from(_.target.files);if(Ge.size(u)+A.length>x){Wt("error","Max 5 files can be upload","top-left");return}if(A.filter(N=>N.size>k).length>0){Wt("error","Each file must be under 5MB","top-left");return}try{const N=[];for(let H=0;H<A.length;H+=1)N.push(p(A[H]));const F=await Promise.all(N);l(H=>[...H,...F.filter(V=>V!==null)])}catch(N){console.error("Error occurred while fetching policies:",N)}i.current.value=null},y=_=>{l(x=>x.filter((k,A)=>A!==_)),i.current&&(i.current.value="")};M.useEffect(()=>{const _=n.current,x=r.current;if(_&&x){_.style.height="auto";const A=x.offsetWidth*.5,L=Math.min(_.scrollHeight,A);_.style.height=`${L}px`,x.style.height=`${L+16}px`,_.style.overflowY=_.scrollHeight>A?"auto":"hidden"}},[a,u]);const g=u.slice(0,5),b=Math.max(0,u.length-5),w=async _=>{if(_&&_.preventDefault(),!(!a&&!u.length)){d(!0);try{const x=Ge.size(u)&&await aF(u,e);await t({message:a,is_customer_reply:!0,...x&&{files:x}}),o(""),l([])}catch(x){console.error("Error sending message:",x)}finally{d(!1)}}},S=M.useMemo(()=>!a&&!Ge.size(u),[a,u]),C=async _=>{_?await h({conversation_id:e,is_writing_reply:!0}):await h({conversation_id:e,is_writing_reply:!1})},T=_=>{_.key==="Enter"&&!_.shiftKey&&(_.preventDefault(),w(_))};return O.jsxs(O.Fragment,{children:[u.length>0&&O.jsxs("div",{className:"ed-flex ed-flex-wrap ed-items-center ed-gap-2 ed-mb-2",children:[g.map((_,x)=>O.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-text-12 ed-font-medium ed-text-border-regular ed-bg-white-light ed-p-1.5 ed-rounded-full",children:[O.jsx("span",{className:"ed-truncate ed-max-w-[100px]",children:_.name}),O.jsx("button",{type:"button",onClick:()=>y(x),className:"ed-text-border hover:ed-text-border-dark ed-flex-shrink-0",children:O.jsx(Ji,{size:14})})]},_)),b>0&&O.jsxs("span",{className:"ed-text-12 ed-text-border-regular",children:["+",b," ",b===1?"item":"items"]})]}),O.jsxs("div",{ref:r,className:"ed-border ed-border-border-light ed-rounded-3xl ed-flex ed-justify-between ed-transition-all ed-duration-200",style:{padding:"8px 16px"},children:[O.jsx("div",{className:"ed-flex-1 ed-flex ed-flex-col ed-min-w-0",children:O.jsx("textarea",{ref:n,value:a,onBlur:()=>C(!1),onChange:_=>o(_.target.value),onFocus:()=>C(!0),onKeyDown:_=>T(_),rows:1,className:"ed-w-full ed-text-14 ed-min-h-[24px] ed-resize-none ed-overflow-x-auto ed-outline-none ed-bg-transparent no-scrollbar",placeholder:"Enter your message"})}),O.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2.5 ed-ml-2 ed-flex-shrink-0",children:[O.jsx("input",{type:"file",ref:i,onChange:m,className:"ed-hidden",accept:".pdf, .png, .jpeg, .jpg",multiple:!0}),O.jsx(Vm,{title:"Supported file types: jpg, png, pdf (max 5MB)",children:O.jsx("button",{type:"button",onClick:()=>{var _;return(_=i.current)==null?void 0:_.click()},className:"ed-text-border hover:ed-text-border-dark",children:O.jsx(Pp,{className:"ed-size-5 ed-cursor-pointer"})})}),O.jsx("button",{onClick:w,type:"button",disabled:S||f,children:f?O.jsx(iv,{className:"ed-size-5"}):O.jsx(Fp,{className:`${S?"ed-text-border":"ed-text-brand"} ed-size-5`})})]})]})]})},lx=({from:e="knowledge-base",isAuthenticated:t,onSubmit:n,reqId:r,setFeedbackForTheArticle:i,userData:a})=>{var _,x,k;const[o,u]=M.useState([]),[l,f]=M.useState(!1),[d,h]=M.useState({}),p=e==="message",m=p?{contact_person_name:a==null?void 0:a.contact_person_name,contact_person_email:a==null?void 0:a.contact_person_email,ticket_title:d==null?void 0:d.ticket_title,ticket_activity:d==null?void 0:d.ticket_activity}:d,[y,{loading:g}]=Ra(vw),b=async()=>{var A,L;try{if(f(!0),Ge.size(o)&&Ge.size(o)>5){Wt("error","You can upload maximum 5 files","top-right");return}const N=[],F=[];Ge.forEach(o,V=>{const D=`${Qp()}.${Ge.last(Ge.split(V.name,"."))}`;N.push({name:D,title:V.name,size:V.size,type:"ticket_activity_attachment"}),F.push({file:V,name:D})});const{data:H}=await y({variables:{inputData:{...m,...r,ticket_activity_files:N}}});if((A=H==null?void 0:H.createATicketForPortal)!=null&&A.id){let V=[];if(Ge.size(F)){const D=F.map(async z=>{var Q;try{const q=await sv({name:z.name,type:"ticket_activity_attachment",sub_type:(Q=H==null?void 0:H.createATicketForPortal)==null?void 0:Q.id});if(q!=null&&q.error)return Wt("error",`Failed to process ${z.name}`,"top-right"),null;const{key:J,url:$,file:Y,success:ae}=await uv({key:q.key,url:q.url},z.file);return ae?{key:J,url:$,file:Y}:null}catch(q){return console.error(`Error processing file ${z.name}:`,q),Wt("error",`Failed to upload ${z.name}`,"top-right"),null}});V=(await Promise.all(D)).filter(Boolean)}n&&n({ticket_id:(L=H==null?void 0:H.createATicketForPortal)==null?void 0:L.id,ticket_title:m.ticket_title,ticket_activity:m.ticket_activity,ticket_activity_files:V})}}catch(N){Wt("error","Something went wrong","top-right"),console.error("error",N)}finally{f(!1)}},w=(A,L)=>{h(N=>({...N,[A]:L}))},S=Uh(d.contact_person_email),C=!t&&(!((_=d.contact_person_name)!=null&&_.trim())||!S||!d.contact_person_email)||!((x=d.ticket_title)!=null&&x.trim())||!((k=d.ticket_activity)!=null&&k.trim()),T=()=>g||l?!0:C;return O.jsxs("div",{className:`ed-px-5 ed-pb-5 ${p&&"ed-bg-white-light ed-rounded-md ed-py-2 ed-max-w-full md:ed-max-w-[85%] ed-ml-auto"}`,children:[!p&&O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"ed-flex ed-items-start ed-justify-between ed-pt-5 ed-sticky ed-top-0 ed-bg-white",children:[O.jsx("h5",{className:"ed-text-18 ed-font-semibold ed-text-border-dark ed-mb-5",children:"Get in touch"}),O.jsx(Ji,{size:24,className:"ed-text-border-dark ed-cursor-pointer",onClick:()=>i(A=>({...A,notHelpfulModal:!1}))})]}),O.jsx("p",{className:"ed-text-14 ed-font-medium ed-text-border-regular ed-mt-5 ed-mb-4 ed-inline-block ed-w-11/12",children:"Tell us how can we make our product more useful for you."})]}),O.jsxs("div",{className:"ed-space-y-4 ed-mb-6",children:[!t&&O.jsxs(O.Fragment,{children:[O.jsx(Bo,{isRequired:!0,label:"Name",placeholder:"Enter your name",value:d.contact_person_name,onChange:A=>w("contact_person_name",A.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"contact_person_name"}),O.jsx(Bo,{isRequired:!0,type:"email",label:"Email",placeholder:"Enter your email",value:d.contact_person_email,onChange:A=>w("contact_person_email",A.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"contact_person_email"}),(d==null?void 0:d.contact_person_email)&&!S&&O.jsx("span",{className:"ed-text-red ed-font-12",children:"Please enter a valid email address!"})]}),O.jsx(Bo,{isRequired:!0,label:"Subject",placeholder:"Tell us what this feedback is about",value:d.ticket_title,onChange:A=>w("ticket_title",A.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"ticket_title"}),O.jsx(cw,{label:`${t?"Summary":"Description"}`,isRequired:!0,placeholder:"Add more details for us to resolve the issue",value:d.ticket_activity,onChange:A=>w("ticket_activity",A.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"ticket_activity"}),O.jsx(hw,{subtitle:"Supported file types: jpg, png, pdf (max 5MB)",selectedFiles:o,setSelectedFiles:u})]}),O.jsx("div",{className:"ed-flex ed-justify-end",children:O.jsx(Ho,{title:"Submit",loaderText:"Submitting",fullWidthBtn:!0,disabled:T(),loader:g||l,callBack:b})})]})};var qm={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_CONVERSATION_ACTIVITIES_FOR_PORTAL"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ConversationActivitiesForPortalQueryInputType"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"optionData"}},type:{kind:"NamedType",name:{kind:"Name",value:"OptionDataType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getConversationActivitiesForPortal"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}},{kind:"Argument",name:{kind:"Name",value:"optionData"},value:{kind:"Variable",name:{kind:"Name",value:"optionData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"created_at"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_customer_reply"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"author"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"last_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"first_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatar_file"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"files"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"log"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sub_context"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"new_assignee"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"first_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"meta_data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filtered_rows"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total_rows"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:765}};qm.loc.source={body:`query GET_CONVERSATION_ACTIVITIES_FOR_PORTAL(
255
255
  $queryData: ConversationActivitiesForPortalQueryInputType!
256
256
  $optionData: OptionDataType
257
257
  ) {
@@ -380,15 +380,15 @@ html body {
380
380
  }
381
381
  }
382
382
  }
383
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function tf(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var n=e.type;n.kind==="NamedType"&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){tf(r,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){tf(r,t)}),e.definitions&&e.definitions.forEach(function(r){tf(r,t)})}var Km={};(function(){Ym.definitions.forEach(function(t){if(t.name){var n=new Set;tf(t,n),Km[t.name.value]=n}})})();function px(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}function vF(e,t){var n={kind:e.kind,definitions:[px(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var r=Km[t]||new Set,i=new Set,a=new Set;for(r.forEach(function(u){a.add(u)});a.size>0;){var o=a;a=new Set,o.forEach(function(u){if(!i.has(u)){i.add(u);var l=Km[u]||new Set;l.forEach(function(f){a.add(f)})}})}return i.forEach(function(u){var l=px(e,u);l&&n.definitions.push(l)}),n}const mF=vF(Ym,"CONVERSATION_ACTIVITY_REALTIME_STATUS_UPDATED"),gF=({orgBrandSetting:e={},setIsPopupOpen:t=()=>{},userData:n={}})=>{var te,fe,le,ve,_e,be,we;const r=M.useRef(null),i="hh:mm A",a=Xi.get("easydesk_chat_widget_conversation_id"),o={conversationState:{isReplying:!1,loadingActivities:!1,messages:[],optionData:{limit:50,offset:0}},inputFieldState:{contact_person_name:"",contact_person_email:"",ticket_title:"",ticket_activity:"",ticket_activity_files:[]}},{brand:u,is_off_hour:l,agent_followup_message:f,agent_confirmation_message:d}=e,[h,p]=M.useState([]),[m,y]=M.useState(null),[g,b]=M.useState(o.conversationState),[w,S]=M.useState({}),C=M.useRef(g),[T,_]=M.useState(null),[x,k]=M.useState(o.inputFieldState),A=m||a,[L,{loading:N}]=Yi(uF,{errorPolicy:"all",fetchPolicy:"no-cache",onCompleted:ne=>{const W=ne==null?void 0:ne.getConversationActivitiesForPortal,ye=(W==null?void 0:W.data.reverse())||[];b(ue=>{var Te;return((Te=ue==null?void 0:ue.optionData)==null?void 0:Te.offset)===0?{...ue,messages:ye,metaData:W==null?void 0:W.meta_data}:{...ue,messages:[...ue.messages,...ye],metaData:W==null?void 0:W.meta_data}})}}),[F,{loading:H}]=Yi(dF,{errorPolicy:"all",fetchPolicy:"no-cache",variables:{queryData:{entity_id:A}},onCompleted:ne=>{S(ne==null?void 0:ne.getAConversationForPortal),L({variables:{queryData:{conversation_id:A},optionData:{order:[["created_at","desc"]]}}})}}),[V]=Yi(cF,{errorPolicy:"all",fetchPolicy:"no-cache",onCompleted:ne=>{var W;p((W=ne==null?void 0:ne.getChannelsForPortal)==null?void 0:W.data)}}),[D]=Ra(pF),j=async ne=>{var W;try{const{data:ye}=await D({variables:{inputData:{conversation_id:A,...ne}}}),ue=ye==null?void 0:ye.createAConversationActivityForPortal;if(ue!=null&&ue.id)return b(Te=>({...Te,messages:[...Te.messages,ue]})),ue}catch(ye){const{message:ue,response:Te}=ye;_(ue),ue!=="BRAND_WENT_OFF_HOUR"&&Wt("error",((W=Te==null?void 0:Te.data)==null?void 0:W.message)||ue,"top-left")}return{}},z=async ne=>{var W;try{const ye=ze.size(ne.ticket_activity_files)>0?`<div>
383
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function tf(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var n=e.type;n.kind==="NamedType"&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){tf(r,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){tf(r,t)}),e.definitions&&e.definitions.forEach(function(r){tf(r,t)})}var Km={};(function(){Ym.definitions.forEach(function(t){if(t.name){var n=new Set;tf(t,n),Km[t.name.value]=n}})})();function px(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}function vF(e,t){var n={kind:e.kind,definitions:[px(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var r=Km[t]||new Set,i=new Set,a=new Set;for(r.forEach(function(u){a.add(u)});a.size>0;){var o=a;a=new Set,o.forEach(function(u){if(!i.has(u)){i.add(u);var l=Km[u]||new Set;l.forEach(function(f){a.add(f)})}})}return i.forEach(function(u){var l=px(e,u);l&&n.definitions.push(l)}),n}const mF=vF(Ym,"CONVERSATION_ACTIVITY_REALTIME_STATUS_UPDATED"),gF=({orgBrandSetting:e={},setIsPopupOpen:t=()=>{},userData:n={}})=>{var ie,te,fe,le,me,_e,be;const r=M.useRef(null),i="hh:mm A",a=Xi.get("easydesk_chat_widget_conversation_id"),o={conversationState:{isReplying:!1,loadingActivities:!1,messages:[],optionData:{limit:50,offset:0}},inputFieldState:{contact_person_name:"",contact_person_email:"",ticket_title:"",ticket_activity:"",ticket_activity_files:[]}},{brand:u,is_off_hour:l,agent_followup_message:f,agent_confirmation_message:d}=e,[h,p]=M.useState([]),[m,y]=M.useState(null),[g,b]=M.useState(o.conversationState),[w,S]=M.useState({}),[C,T]=M.useState(null),[_,x]=M.useState(o.inputFieldState),k=m||a,[A,{loading:L}]=Yi(uF,{errorPolicy:"all",fetchPolicy:"no-cache",onCompleted:ne=>{const ve=ne==null?void 0:ne.getConversationActivitiesForPortal,K=(ve==null?void 0:ve.data.reverse())||[];b(we=>{var ue;return((ue=we==null?void 0:we.optionData)==null?void 0:ue.offset)===0?{...we,messages:K,metaData:ve==null?void 0:ve.meta_data}:{...we,messages:[...we.messages,...K],metaData:ve==null?void 0:ve.meta_data}})}}),[N,{loading:F}]=Yi(dF,{errorPolicy:"all",fetchPolicy:"no-cache",variables:{queryData:{entity_id:k}},onCompleted:ne=>{S(ne==null?void 0:ne.getAConversationForPortal),A({variables:{queryData:{conversation_id:k},optionData:{order:[["created_at","desc"]]}}})}}),[H]=Yi(cF,{errorPolicy:"all",fetchPolicy:"no-cache",onCompleted:ne=>{var ve;p((ve=ne==null?void 0:ne.getChannelsForPortal)==null?void 0:ve.data)}}),[V]=Ra(pF),D=async(ne,ve=!1)=>{var K;try{const{data:we}=await V({variables:{inputData:{conversation_id:k,...ne}}}),ue=we==null?void 0:we.createAConversationActivityForPortal;if(ue!=null&&ue.id)return ve||b(Te=>({...Te,messages:[...Te.messages,ue]})),ue}catch(we){const{message:ue,response:Te}=we;T(ue),ue!=="BRAND_WENT_OFF_HOUR"&&Wt("error",((K=Te==null?void 0:Te.data)==null?void 0:K.message)||ue,"top-left")}return{}},j=async ne=>{var ve;try{const K=Ge.size(ne.ticket_activity_files)>0?`<div>
384
384
  <h6 class="ed-text-14 ed-font-semibold ed-text-border-dark ed-pb-2">Attachment</h6>
385
- ${ne.ticket_activity_files.map(Re=>{var et,Ee,Rt;const Ze=URL.createObjectURL(Re==null?void 0:Re.file),ft=((et=Re==null?void 0:Re.file)==null?void 0:et.name)||"file",dt=(Ee=Re==null?void 0:Re.file)!=null&&Ee.size?(Re.file.size/(1024*1024)).toFixed(2):"0.00";return` <div class="ed-flex ed-gap-2 ed-pb-1 ed-items-center">
385
+ ${ne.ticket_activity_files.map(Te=>{var Me,et,Ee;const Ie=URL.createObjectURL(Te==null?void 0:Te.file),Je=((Me=Te==null?void 0:Te.file)==null?void 0:Me.name)||"file",xt=(et=Te==null?void 0:Te.file)!=null&&et.size?(Te.file.size/(1024*1024)).toFixed(2):"0.00";return` <div class="ed-flex ed-gap-2 ed-pb-1 ed-items-center">
386
386
  <div
387
387
  class="ed-border ed-rounded-md ed-p-1 ed-w-[50px] ed-h-[50px] ed-flex ed-items-center ed-justify-center"
388
388
  >
389
- ${(((Rt=Re==null?void 0:Re.file)==null?void 0:Rt.type)||"").startsWith("image/")?`<img
390
- src="${Ze}"
391
- alt="${ft}"
389
+ ${(((Ee=Te==null?void 0:Te.file)==null?void 0:Ee.type)||"").startsWith("image/")?`<img
390
+ src="${Ie}"
391
+ alt="${Je}"
392
392
  class="ed-w-full ed-max-h-full ed-object-contain ed-rounded"
393
393
  />`:`<svg
394
394
  xmlns="http://www.w3.org/2000/svg"
@@ -406,11 +406,11 @@ html body {
406
406
  </svg>`}
407
407
  </div>
408
408
  <div>
409
- <p class="ed-text-14 ed-truncate ed-max-w-[150px]">${ft}</p>
410
- <span class="ed-text-12 ed-font-medium ed-text-border">${dt} MB</span>
409
+ <p class="ed-text-14 ed-truncate ed-max-w-[150px]">${Je}</p>
410
+ <span class="ed-text-12 ed-font-medium ed-text-border">${xt} MB</span>
411
411
  </div>
412
412
  </div>`}).join("")}
413
- </div>`:"",ue=`<div
413
+ </div>`:"",we=`<div
414
414
  className="ed-min-w-[16rem] ed-rounded-[20px] ed-border ed-bg-white-light ed-p-5 ed-space-y-5"
415
415
  >
416
416
  <div>
@@ -421,8 +421,8 @@ html body {
421
421
  <h6 className="ed-text-14 ed-font-semibold ed-text-border-dark">Summary</h6>
422
422
  <p className="ed-text-border-regular">${ne==null?void 0:ne.ticket_activity}</p>
423
423
  </div>
424
- ${ye}
425
- </div>`,Te=await j({is_customer_reply:!0,message:ue,ticket_id:ne==null?void 0:ne.ticket_id});Te!=null&&Te.id&&(k(Re=>({...Re,ticket_title:ne==null?void 0:ne.ticket_title,ticket_activity:ne==null?void 0:ne.ticket_activity,ticket_activity_files:ne==null?void 0:ne.ticket_activity_files})),await j({is_customer_reply:!1,message:d}))}catch(ye){const{message:ue,response:Te}=ye;Wt("error",((W=Te==null?void 0:Te.data)==null?void 0:W.message)||ue,"top-left")}},Y=async ne=>{var W;try{const ye=await j(ne);ye!=null&&ye.id&&await j({is_customer_reply:!1,message:f})}catch(ye){const{message:ue,response:Te}=ye;Wt("error",((W=Te==null?void 0:Te.data)==null?void 0:W.message)||ue,"top-left")}},q=()=>{b(o.conversationState),k(o.inputFieldState),_(!1),Xi.remove("easydesk_chat_widget_conversation_id"),S({})},{handleCreateOrUpdateRealtimeStatus:J}=_w(),{handleDeleteARealtimeStatus:$}=wR(),K=((te=g==null?void 0:g.metaData)==null?void 0:te.filtered_rows)&&ze.size(g==null?void 0:g.messages)<((fe=g==null?void 0:g.metaData)==null?void 0:fe.filtered_rows),ae=()=>{b(ne=>({...ne,loadingActivities:!0,optionData:{...ne.optionData,offset:ne.optionData.offset+ne.optionData.limit}}))};M.useEffect(()=>{C.current=g},[g]),M.useEffect(()=>(A&&(F(),J({conversation_id:A,is_viewing:!0})),()=>{A&&$(A)}),[A]),M.useEffect(()=>{!l&&ze.size(g==null?void 0:g.messages)===3?V():p([])},[ze.size(g==null?void 0:g.messages)]),M.useEffect(()=>{const ne=setTimeout(()=>{var ue;const W=(ue=r.current)==null?void 0:ue.querySelectorAll(".single-message"),ye=W==null?void 0:W[ze.size(W)-1];ye==null||ye.scrollIntoView({behavior:"smooth",block:"nearest"})},200);return()=>clearTimeout(ne)},[ze.size(g==null?void 0:g.messages)]),$O(mF,{errorPolicy:"all",fetchPolicy:"no-cache",skip:!A,variables:{queryData:{conversation_id:A}},onData:({data:ne})=>{var Te,Re;const W=(Te=ne==null?void 0:ne.data)==null?void 0:Te.conversationActivityRealtimeStatusUpdated;W!=null&&W.is_conversation_deleted&&(Xi.remove("easydesk_chat_widget_conversation_id"),t(!1));const ye=W==null?void 0:W.conversation_activity,ue=((Re=ye==null?void 0:ye.log)==null?void 0:Re.new_value)||"";["spam","resolved","closed","clean"].includes(ue)&&S({status:ue,is_spam:ue==="spam"}),b(Ze=>{const ft=ze.cloneDeep(C.current.messages),dt=ze.find(ft,kt=>(kt==null?void 0:kt.id)===(ye==null?void 0:ye.id));return dt!=null&&dt.id?ze.assign(dt,ye):ft.push(ye),{...Ze,writing_realtime_status:{author:(W==null?void 0:W.user)||{},is_writing_reply:(W==null?void 0:W.is_writing_reply)||!1},...ye&&{messages:ft}}})},onError:console.error});const ie=(w==null?void 0:w.is_spam)||["closed","resolved"].includes(w==null?void 0:w.status);return N||H?O.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:O.jsx(Zi,{})}):O.jsxs("div",{children:[O.jsx("div",{ref:r,id:"activities-scroll-target",className:"ed-flex ed-flex-col ed-pb-5 ed-space-y-5 ed-h-[calc(100vh-200px)] ed-overflow-y-auto no-scrollbar",children:O.jsx(yw,{dataLength:ze.size(g==null?void 0:g.messages),hasMore:K,loader:g!=null&&g.loadingActivities?"Loading...":"",scrollableTarget:"activities-scroll-target",inverse:!0,next:ae,children:O.jsxs("div",{className:"ed-flex-1 ed-pt-3 ed-space-y-3",children:[ze.size(g==null?void 0:g.messages)?(le=g==null?void 0:g.messages)==null?void 0:le.map(ne=>O.jsx("div",{className:"single-message",children:(ne==null?void 0:ne.type)==="reply"?O.jsx(xw,{author:ne==null?void 0:ne.author,brand:u,filesData:ne==null?void 0:ne.files,isFromUser:ne==null?void 0:ne.is_customer_reply,message:mu(ne==null?void 0:ne.message),timeStamp:tu(ne==null?void 0:ne.created_at).format(i)},ne==null?void 0:ne.id):O.jsx(ER,{log:ne==null?void 0:ne.log},ne==null?void 0:ne.id)},ne==null?void 0:ne.id)):O.jsx(TR,{onSubmit:ne=>{k(W=>({...W,contact_person_name:ne==null?void 0:ne.contact_person_name,contact_person_email:ne==null?void 0:ne.contact_person_email}))},orgBrandSetting:e,setSelectedConversationId:y,userData:n}),!l&&ze.size(h)>0&&O.jsx("div",{children:O.jsx(SR,{channels:h,onSubmit:Y})}),(l&&!(x!=null&&x.ticket_title)&&(g==null?void 0:g.messages)&&ze.size(g==null?void 0:g.messages)===3&&((ve=g==null?void 0:g.messages[2])==null?void 0:ve.message)===f&&((_e=g==null?void 0:g.messages[2])==null?void 0:_e.is_customer_reply)===!1||T==="BRAND_WENT_OFF_HOUR")&&O.jsx(lx,{from:"message",isAuthenticated:!0,onSubmit:z,reqId:null,userData:x}),((be=g==null?void 0:g.writing_realtime_status)==null?void 0:be.is_writing_reply)&&O.jsx("div",{className:"single-message",children:O.jsx(xw,{author:(we=g==null?void 0:g.writing_realtime_status)==null?void 0:we.author,brand:u,isFromUser:!1,isReplying:!0,timeStamp:tu().format(i)})})]})})}),!l&&ze.size(g==null?void 0:g.messages)>=4&&!T&&!ie&&O.jsx("div",{className:"ed-sticky ed-bottom-0 ed-bg-white ed-py-5 ed-border-y ed-border-border-light ed--mx-5 ed-px-5",children:O.jsx(oF,{conversationId:A,handleCreateMessage:j})}),(l&&ze.size(g==null?void 0:g.messages)>=5||T||ie)&&O.jsx("div",{className:"ed-py-2 ed-bg-white ed-text-gray-500 ed-sticky ed-bottom-0 ed-left-0",children:O.jsxs("p",{className:"ed-text-center",children:["Your chat has ended. ",O.jsx("br",{}),"To start a new chat, ",O.jsx("button",{type:"button",className:"ed-underline ed-text-blue-600 ed-text-sm",onClick:q,children:"click here"})]})})]})};var nf={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_CATEGORIES"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NamedType",name:{kind:"Name",value:"CategoryQueryInput"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"optionData"}},type:{kind:"NamedType",name:{kind:"Name",value:"OptionDataType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getCategories"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}},{kind:"Argument",name:{kind:"Name",value:"optionData"},value:{kind:"Variable",name:{kind:"Name",value:"optionData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total_faqs"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total_sections"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"organization_brands"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"setting"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"color"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"icon"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"icon"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"serial"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total_articles"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"meta_data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filtered_rows"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total_rows"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:606}};nf.loc.source={body:`query GET_CATEGORIES($queryData: CategoryQueryInput, $optionData: OptionDataType) {
424
+ ${K}
425
+ </div>`,ue=await D({is_customer_reply:!0,message:we,ticket_id:ne==null?void 0:ne.ticket_id});ue!=null&&ue.id&&(x(Te=>({...Te,ticket_title:ne==null?void 0:ne.ticket_title,ticket_activity:ne==null?void 0:ne.ticket_activity,ticket_activity_files:ne==null?void 0:ne.ticket_activity_files})),await D({is_customer_reply:!1,message:d},!0))}catch(K){const{message:we,response:ue}=K;Wt("error",((ve=ue==null?void 0:ue.data)==null?void 0:ve.message)||we,"top-left")}},z=async ne=>{var ve;try{const K=await D(ne);K!=null&&K.id&&await D({is_customer_reply:!1,message:f},!0)}catch(K){const{message:we,response:ue}=K;Wt("error",((ve=ue==null?void 0:ue.data)==null?void 0:ve.message)||we,"top-left")}},Q=()=>{b(o.conversationState),x(o.inputFieldState),T(!1),Xi.remove("easydesk_chat_widget_conversation_id"),S({})},{handleCreateOrUpdateRealtimeStatus:q}=_w(),{handleDeleteARealtimeStatus:J}=wR(),$=((ie=g==null?void 0:g.metaData)==null?void 0:ie.filtered_rows)&&Ge.size(g==null?void 0:g.messages)<((te=g==null?void 0:g.metaData)==null?void 0:te.filtered_rows),Y=()=>{b(ne=>({...ne,loadingActivities:!0,optionData:{...ne.optionData,offset:ne.optionData.offset+ne.optionData.limit}}))};M.useEffect(()=>(k&&(N(),q({conversation_id:k,is_viewing:!0})),()=>{k&&J(k)}),[k]),M.useEffect(()=>{!l&&Ge.size(g==null?void 0:g.messages)===3?H():p([])},[Ge.size(g==null?void 0:g.messages)]),M.useEffect(()=>{const ne=setTimeout(()=>{var we;const ve=(we=r.current)==null?void 0:we.querySelectorAll(".single-message"),K=ve==null?void 0:ve[Ge.size(ve)-1];K==null||K.scrollIntoView({behavior:"smooth",block:"nearest"})},200);return()=>clearTimeout(ne)},[Ge.size(g==null?void 0:g.messages)]),$O(mF,{errorPolicy:"all",fetchPolicy:"no-cache",skip:!k,variables:{queryData:{conversation_id:k}},onData:({data:ne})=>{var ue,Te;const ve=(ue=ne==null?void 0:ne.data)==null?void 0:ue.conversationActivityRealtimeStatusUpdated;ve!=null&&ve.is_conversation_deleted&&(Xi.remove("easydesk_chat_widget_conversation_id"),t(!1));const K=ve==null?void 0:ve.conversation_activity,we=((Te=K==null?void 0:K.log)==null?void 0:Te.new_value)||"";["spam","resolved","closed","clean"].includes(we)&&S({status:we,is_spam:we==="spam"}),b(Ie=>({...Ie,writing_realtime_status:{author:(ve==null?void 0:ve.user)||{},is_writing_reply:(ve==null?void 0:ve.is_writing_reply)||!1},...(K==null?void 0:K.id)&&{messages:[...Ie==null?void 0:Ie.messages,K]}}))},onError:console.error});const ae=(w==null?void 0:w.is_spam)||["closed","resolved"].includes(w==null?void 0:w.status);return L||F?O.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:O.jsx(Zi,{})}):O.jsxs("div",{children:[O.jsx("div",{ref:r,id:"activities-scroll-target",className:"ed-flex ed-flex-col ed-pb-5 ed-space-y-5 ed-h-[calc(100vh-200px)] ed-overflow-y-auto no-scrollbar",children:O.jsx(yw,{dataLength:Ge.size(g==null?void 0:g.messages),hasMore:$,loader:g!=null&&g.loadingActivities?"Loading...":"",scrollableTarget:"activities-scroll-target",inverse:!0,next:Y,children:O.jsxs("div",{className:"ed-flex-1 ed-pt-3 ed-space-y-3",children:[Ge.size(g==null?void 0:g.messages)?(fe=g==null?void 0:g.messages)==null?void 0:fe.map(ne=>O.jsx("div",{className:"single-message",children:(ne==null?void 0:ne.type)==="reply"?O.jsx(xw,{author:ne==null?void 0:ne.author,brand:u,filesData:ne==null?void 0:ne.files,isFromUser:ne==null?void 0:ne.is_customer_reply,message:mu(ne==null?void 0:ne.message),timeStamp:tu(ne==null?void 0:ne.created_at).format(i)},ne==null?void 0:ne.id):O.jsx(ER,{log:ne==null?void 0:ne.log},ne==null?void 0:ne.id)},ne==null?void 0:ne.id)):O.jsx(TR,{onSubmit:ne=>{x(ve=>({...ve,contact_person_name:ne==null?void 0:ne.contact_person_name,contact_person_email:ne==null?void 0:ne.contact_person_email}))},orgBrandSetting:e,setSelectedConversationId:y,userData:n}),!l&&Ge.size(h)>0&&O.jsx("div",{children:O.jsx(SR,{channels:h,onSubmit:z})}),(l&&!(_!=null&&_.ticket_title)&&(g==null?void 0:g.messages)&&Ge.size(g==null?void 0:g.messages)===3&&((le=g==null?void 0:g.messages[2])==null?void 0:le.message)===f&&((me=g==null?void 0:g.messages[2])==null?void 0:me.is_customer_reply)===!1||C==="BRAND_WENT_OFF_HOUR")&&O.jsx(lx,{from:"message",isAuthenticated:!0,onSubmit:j,reqId:null,userData:_}),((_e=g==null?void 0:g.writing_realtime_status)==null?void 0:_e.is_writing_reply)&&O.jsx("div",{className:"single-message",children:O.jsx(xw,{author:(be=g==null?void 0:g.writing_realtime_status)==null?void 0:be.author,brand:u,isFromUser:!1,isReplying:!0,timeStamp:tu().format(i)})})]})})}),!l&&Ge.size(g==null?void 0:g.messages)>=4&&!C&&!ae&&O.jsx("div",{className:"ed-sticky ed-bottom-0 ed-bg-white ed-py-5 ed-border-y ed-border-border-light ed--mx-5 ed-px-5",children:O.jsx(oF,{conversationId:k,handleCreateMessage:D})}),(l&&Ge.size(g==null?void 0:g.messages)>=5||C||ae)&&O.jsx("div",{className:"ed-py-2 ed-bg-white ed-text-gray-500 ed-sticky ed-bottom-0 ed-left-0",children:O.jsxs("p",{className:"ed-text-center",children:["Your chat has ended. ",O.jsx("br",{}),"To start a new chat, ",O.jsx("button",{type:"button",className:"ed-underline ed-text-blue-600 ed-text-sm",onClick:Q,children:"click here"})]})})]})};var nf={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_CATEGORIES"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NamedType",name:{kind:"Name",value:"CategoryQueryInput"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"optionData"}},type:{kind:"NamedType",name:{kind:"Name",value:"OptionDataType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getCategories"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}},{kind:"Argument",name:{kind:"Name",value:"optionData"},value:{kind:"Variable",name:{kind:"Name",value:"optionData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total_faqs"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total_sections"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"organization_brands"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"setting"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"color"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"icon"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"icon"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"serial"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total_articles"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"meta_data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filtered_rows"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total_rows"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:606}};nf.loc.source={body:`query GET_CATEGORIES($queryData: CategoryQueryInput, $optionData: OptionDataType) {
426
426
  getCategories(queryData: $queryData, optionData: $optionData) {
427
427
  data {
428
428
  id
@@ -458,8 +458,8 @@ html body {
458
458
  }
459
459
  }
460
460
  }
461
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function rf(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var n=e.type;n.kind==="NamedType"&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){rf(r,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){rf(r,t)}),e.definitions&&e.definitions.forEach(function(r){rf(r,t)})}var Xm={};(function(){nf.definitions.forEach(function(t){if(t.name){var n=new Set;rf(t,n),Xm[t.name.value]=n}})})();function vx(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}function yF(e,t){var n={kind:e.kind,definitions:[vx(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var r=Xm[t]||new Set,i=new Set,a=new Set;for(r.forEach(function(u){a.add(u)});a.size>0;){var o=a;a=new Set,o.forEach(function(u){if(!i.has(u)){i.add(u);var l=Xm[u]||new Set;l.forEach(function(f){a.add(f)})}})}return i.forEach(function(u){var l=vx(e,u);l&&n.definitions.push(l)}),n}yF(nf,"GET_CATEGORIES");const bF=({setSelectedCategory:e})=>{const[t,n]=M.useState([]),[r,i]=M.useState({limit:50,offset:0,order:[["serial","asc"]]}),[a,o]=M.useState({}),[u,l]=M.useState({initialLoading:!0,fetchMoreLoading:!0}),[f]=Yi(nf,{errorPolicy:"all",fetchPolicy:"no-cache",variables:{queryData:{type:"ARTICLE"},optionData:r},onCompleted:p=>{var y,g;const m=(y=p==null?void 0:p.getCategories)==null?void 0:y.data;(r==null?void 0:r.offset)===0?n(m):n([...t,...m]),o((g=p==null?void 0:p.getCategories)==null?void 0:g.meta_data),l({initialLoading:!1,fetchMoreLoading:!1})},onError:p=>{console.error(p)}}),d=()=>{l({initialLoading:!1,fetchMoreLoading:!0});const p=r.offset+r.limit;i(m=>({...m,offset:p}))},h=!!(a!=null&&a.filtered_rows&&ze.size(t)<(a==null?void 0:a.filtered_rows));return M.useEffect(()=>{f()},[]),u.initialLoading?O.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:O.jsx(Zi,{})}):O.jsx(yw,{dataLength:ze.size(t),next:d,hasMore:h,scrollableTarget:"root-scrollbar",loader:"",children:O.jsxs("div",{children:[t==null?void 0:t.map(p=>O.jsxs("div",{role:"button",tabIndex:0,onClick:()=>e(p==null?void 0:p.id),className:"ed-py-3 ed-px-5 ed-mt-3 ed-rounded-lg ed-border ed-border-border-light ed-group ed-hover:shadow-lg ed-duration-300 ed-transition-all ed-cursor-pointer",children:[O.jsx("h6",{className:"ed-text-16 ed-font-semibold ed-text-border-dark ed-group-hover:text-brand-link",children:p==null?void 0:p.name}),O.jsx("p",{className:"ed-text-14 ed-font-medium ed-text-border-regular ed-group-hover:text-border-dark ed-my-2 ed-duration-300 ed-transition-all",children:p==null?void 0:p.description}),O.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-justify-between",children:[O.jsxs("span",{className:"ed-text-14 ed-text-border ed-group-hover:text-border-regular ed-duration-300 ed-transition-all",children:[p==null?void 0:p.total_articles," article",(p==null?void 0:p.total_articles)>1&&"s"]}),O.jsx("div",{className:"ed-size-4 ed--translate-x-2 ed-opacity-0 ed-group-hover:opacity-100 ed-group-hover:translate-x-2 ed-duration-300 ed-transition-all",children:O.jsx(Fo,{className:"ed-text-border ed-size-4"})})]})]},p==null?void 0:p.id)),(u==null?void 0:u.fetchMoreLoading)&&O.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:O.jsx(Zi,{})})]})})};var af={exports:{}},of={},mx;function Zm(){if(mx)return of;mx=1,of._=of._interop_require_default=e;function e(t){return t&&t.__esModule?t:{default:t}}return of}var sf={exports:{}},Jm={},gx;function yx(){return gx||(gx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,u){for(var l in u)Object.defineProperty(o,l,{enumerable:!0,get:u[l]})}t(e,{assign:function(){return a},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return i}});function n(o){const u={};return o.forEach((l,f)=>{typeof u[f]>"u"?u[f]=l:Array.isArray(u[f])?u[f].push(l):u[f]=[u[f],l]}),u}function r(o){return typeof o=="string"||typeof o=="number"&&!isNaN(o)||typeof o=="boolean"?String(o):""}function i(o){const u=new URLSearchParams;return Object.entries(o).forEach(l=>{let[f,d]=l;Array.isArray(d)?d.forEach(h=>u.append(f,r(h))):u.set(f,r(d))}),u}function a(o){for(var u=arguments.length,l=new Array(u>1?u-1:0),f=1;f<u;f++)l[f-1]=arguments[f];return l.forEach(d=>{Array.from(d.keys()).forEach(h=>o.delete(h)),d.forEach((h,p)=>o.append(p,h))}),o}}(Jm)),Jm}var eg={},uf={},bx;function _F(){if(bx)return uf;bx=1;function e(n){if(typeof WeakMap!="function")return null;var r=new WeakMap,i=new WeakMap;return(e=function(a){return a?i:r})(n)}uf._=uf._interop_require_wildcard=t;function t(n,r){if(!r&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var i=e(r);if(i&&i.has(n))return i.get(n);var a={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in n)if(u!=="default"&&Object.prototype.hasOwnProperty.call(n,u)){var l=o?Object.getOwnPropertyDescriptor(n,u):null;l&&(l.get||l.set)?Object.defineProperty(a,u,l):a[u]=n[u]}return a.default=n,i&&i.set(n,a),a}return uf}var _x;function wx(){return _x||(_x=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,f){for(var d in f)Object.defineProperty(l,d,{enumerable:!0,get:f[d]})}t(e,{formatUrl:function(){return a},formatWithValidation:function(){return u},urlObjectKeys:function(){return o}});const r=_F()._(yx()),i=/https?|ftp|gopher|file/;function a(l){let{auth:f,hostname:d}=l,h=l.protocol||"",p=l.pathname||"",m=l.hash||"",y=l.query||"",g=!1;f=f?encodeURIComponent(f).replace(/%3A/i,":")+"@":"",l.host?g=f+l.host:d&&(g=f+(~d.indexOf(":")?"["+d+"]":d),l.port&&(g+=":"+l.port)),y&&typeof y=="object"&&(y=String(r.urlQueryToSearchParams(y)));let b=l.search||y&&"?"+y||"";return h&&!h.endsWith(":")&&(h+=":"),l.slashes||(!h||i.test(h))&&g!==!1?(g="//"+(g||""),p&&p[0]!=="/"&&(p="/"+p)):g||(g=""),m&&m[0]!=="#"&&(m="#"+m),b&&b[0]!=="?"&&(b="?"+b),p=p.replace(/[?#]/g,encodeURIComponent),b=b.replace("#","%23"),""+h+g+p+b+m}const o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(l){return a(l)}}(eg)),eg}var tg={},Ex;function wF(){return Ex||(Ex=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(n,r){const i={};return Object.keys(n).forEach(a=>{r.includes(a)||(i[a]=n[a])}),i}}(tg)),tg}var ng={},Sx;function lf(){return Sx||(Sx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,_){for(var x in _)Object.defineProperty(T,x,{enumerable:!0,get:_[x]})}t(e,{DecodeError:function(){return y},MiddlewareNotFoundError:function(){return S},MissingStaticPage:function(){return w},NormalizeError:function(){return g},PageNotFoundError:function(){return b},SP:function(){return p},ST:function(){return m},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return l},getLocationOrigin:function(){return o},getURL:function(){return u},isAbsoluteUrl:function(){return a},isResSent:function(){return f},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return d},stringifyError:function(){return C}});const n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(T){let _=!1,x;return function(){for(var k=arguments.length,A=new Array(k),L=0;L<k;L++)A[L]=arguments[L];return _||(_=!0,x=T(...A)),x}}const i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,a=T=>i.test(T);function o(){const{protocol:T,hostname:_,port:x}=window.location;return T+"//"+_+(x?":"+x:"")}function u(){const{href:T}=window.location,_=o();return T.substring(_.length)}function l(T){return typeof T=="string"?T:T.displayName||T.name||"Unknown"}function f(T){return T.finished||T.headersSent}function d(T){const _=T.split("?");return _[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(_[1]?"?"+_.slice(1).join("?"):"")}async function h(T,_){{var x;if((x=T.prototype)!=null&&x.getInitialProps){const L='"'+l(T)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error(L)}}const k=_.res||_.ctx&&_.ctx.res;if(!T.getInitialProps)return _.ctx&&_.Component?{pageProps:await h(_.Component,_.ctx)}:{};const A=await T.getInitialProps(_);if(k&&f(k))return A;if(!A){const L='"'+l(T)+'.getInitialProps()" should resolve to an object. But found "'+A+'" instead.';throw new Error(L)}return Object.keys(A).length===0&&!_.ctx&&console.warn(""+l(T)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),A}const p=typeof performance<"u",m=p&&["mark","measure","getEntriesByName"].every(T=>typeof performance[T]=="function");class y extends Error{}class g extends Error{}class b extends Error{constructor(_){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+_}}class w extends Error{constructor(_,x){super(),this.message="Failed to load static file for page: "+_+" "+x}}class S extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function C(T){return JSON.stringify({message:T.message,stack:T.stack})}}(ng)),ng}var cf={exports:{}},rg={},xx;function Cx(){return xx||(xx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removeTrailingSlash",{enumerable:!0,get:function(){return t}});function t(n){return n.replace(/\/$/,"")||"/"}}(rg)),rg}var ig={},Tx;function ag(){return Tx||(Tx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(n){const r=n.indexOf("#"),i=n.indexOf("?"),a=i>-1&&(r<0||i<r);return a||r>-1?{pathname:n.substring(0,a?i:r),query:a?n.substring(i,r>-1?r:void 0):"",hash:r>-1?n.slice(r):""}:{pathname:n,query:"",hash:""}}}(ig)),ig}var Ox;function ff(){return Ox||(Ox=1,function(e,t){var n={};Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return a}});const r=Cx(),i=ag(),a=o=>{if(!o.startsWith("/")||n.__NEXT_MANUAL_TRAILING_SLASH)return o;const{pathname:u,query:l,hash:f}=(0,i.parsePath)(o);return n.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(u)?""+(0,r.removeTrailingSlash)(u)+l+f:u.endsWith("/")?""+u+l+f:u+"/"+l+f:""+(0,r.removeTrailingSlash)(u)+l+f};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(cf,cf.exports)),cf.exports}var og={},df={exports:{}},sg={},kx;function Rx(){return kx||(kx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return n}});const t=ag();function n(r,i){if(typeof r!="string")return!1;const{pathname:a}=(0,t.parsePath)(r);return a===i||a.startsWith(i+"/")}}(sg)),sg}var Ax;function EF(){return Ax||(Ax=1,function(e,t){var n={};Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return a}});const r=Rx(),i=n.__NEXT_ROUTER_BASEPATH||"";function a(o){return(0,r.pathHasPrefix)(o,i)}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(df,df.exports)),df.exports}var Px;function Nx(){return Px||(Px=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return r}});const t=lf(),n=EF();function r(i){if(!(0,t.isAbsoluteUrl)(i))return!0;try{const a=(0,t.getLocationOrigin)(),o=new URL(i,a);return o.origin===a&&(0,n.hasBasePath)(o.pathname)}catch{return!1}}}(og)),og}var ug={},lg={},Ix;function SF(){return Ix||(Ix=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return n}});class t{insert(i){this._insert(i.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(i){i===void 0&&(i="/");const a=[...this.children.keys()].sort();this.slugName!==null&&a.splice(a.indexOf("[]"),1),this.restSlugName!==null&&a.splice(a.indexOf("[...]"),1),this.optionalRestSlugName!==null&&a.splice(a.indexOf("[[...]]"),1);const o=a.map(u=>this.children.get(u)._smoosh(""+i+u+"/")).reduce((u,l)=>[...u,...l],[]);if(this.slugName!==null&&o.push(...this.children.get("[]")._smoosh(i+"["+this.slugName+"]/")),!this.placeholder){const u=i==="/"?"/":i.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+u+'" and "'+u+"[[..."+this.optionalRestSlugName+']]").');o.unshift(u)}return this.restSlugName!==null&&o.push(...this.children.get("[...]")._smoosh(i+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&o.push(...this.children.get("[[...]]")._smoosh(i+"[[..."+this.optionalRestSlugName+"]]/")),o}_insert(i,a,o){if(i.length===0){this.placeholder=!1;return}if(o)throw new Error("Catch-all must be the last part of the URL.");let u=i[0];if(u.startsWith("[")&&u.endsWith("]")){let d=function(h,p){if(h!==null&&h!==p)throw new Error("You cannot use different slug names for the same dynamic path ('"+h+"' !== '"+p+"').");a.forEach(m=>{if(m===p)throw new Error('You cannot have the same slug name "'+p+'" repeat within a single dynamic path');if(m.replace(/\W/g,"")===u.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+m+'" and "'+p+'" differ only by non-word symbols within a single dynamic path')}),a.push(p)},l=u.slice(1,-1),f=!1;if(l.startsWith("[")&&l.endsWith("]")&&(l=l.slice(1,-1),f=!0),l.startsWith("...")&&(l=l.substring(3),o=!0),l.startsWith("[")||l.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+l+"').");if(l.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+l+"').");if(o)if(f){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+i[0]+'" ).');d(this.optionalRestSlugName,l),this.optionalRestSlugName=l,u="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+i[0]+'").');d(this.restSlugName,l),this.restSlugName=l,u="[...]"}else{if(f)throw new Error('Optional route parameters are not yet supported ("'+i[0]+'").');d(this.slugName,l),this.slugName=l,u="[]"}}this.children.has(u)||this.children.set(u,new t),this.children.get(u)._insert(i.slice(1),a,o)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(r){const i=new t;return r.forEach(a=>i.insert(a)),i.smoosh()}}(lg)),lg}var cg={},fg={},dg={},hg={},Lx;function xF(){return Lx||(Lx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ensureLeadingSlash",{enumerable:!0,get:function(){return t}});function t(n){return n.startsWith("/")?n:"/"+n}}(hg)),hg}var pg={},Fx;function CF(){return Fx||(Fx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,o){for(var u in o)Object.defineProperty(a,u,{enumerable:!0,get:o[u]})}t(e,{DEFAULT_SEGMENT_KEY:function(){return i},PAGE_SEGMENT_KEY:function(){return r},isGroupSegment:function(){return n}});function n(a){return a[0]==="("&&a.endsWith(")")}const r="__PAGE__",i="__DEFAULT__"}(pg)),pg}var Dx;function TF(){return Dx||(Dx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,u){for(var l in u)Object.defineProperty(o,l,{enumerable:!0,get:u[l]})}t(e,{normalizeAppPath:function(){return i},normalizeRscURL:function(){return a}});const n=xF(),r=CF();function i(o){return(0,n.ensureLeadingSlash)(o.split("/").reduce((u,l,f,d)=>!l||(0,r.isGroupSegment)(l)||l[0]==="@"||(l==="page"||l==="route")&&f===d.length-1?u:u+"/"+l,""))}function a(o){return o.replace(/\.rsc($|\?)/,"$1")}}(dg)),dg}var Mx;function jx(){return Mx||(Mx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,u){for(var l in u)Object.defineProperty(o,l,{enumerable:!0,get:u[l]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return r},extractInterceptionRouteInformation:function(){return a},isInterceptionRouteAppPath:function(){return i}});const n=TF(),r=["(..)(..)","(.)","(..)","(...)"];function i(o){return o.split("/").find(u=>r.find(l=>u.startsWith(l)))!==void 0}function a(o){let u,l,f;for(const d of o.split("/"))if(l=r.find(h=>d.startsWith(h)),l){[u,f]=o.split(l,2);break}if(!u||!l||!f)throw new Error(`Invalid interception route: ${o}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(u=(0,n.normalizeAppPath)(u),l){case"(.)":u==="/"?f=`/${f}`:f=u+"/"+f;break;case"(..)":if(u==="/")throw new Error(`Invalid interception route: ${o}. Cannot use (..) marker at the root level, use (.) instead.`);f=u.split("/").slice(0,-1).concat(f).join("/");break;case"(...)":f="/"+f;break;case"(..)(..)":const d=u.split("/");if(d.length<=2)throw new Error(`Invalid interception route: ${o}. Cannot use (..)(..) marker at the root level or one level up.`);f=d.slice(0,-2).concat(f).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:u,interceptedRoute:f}}}(fg)),fg}var $x;function OF(){return $x||($x=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return r}});const t=jx(),n=/\/\[[^/]+?\](?=\/|$)/;function r(i){return(0,t.isInterceptionRouteAppPath)(i)&&(i=(0,t.extractInterceptionRouteInformation)(i).interceptedRoute),n.test(i)}}(cg)),cg}var Vx;function kF(){return Vx||(Vx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,a){for(var o in a)Object.defineProperty(i,o,{enumerable:!0,get:a[o]})}t(e,{getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return r.isDynamicRoute}});const n=SF(),r=OF()}(ug)),ug}var vg={},mg={},qx;function RF(){return qx||(qx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return n}});const t=lf();function n(r){let{re:i,groups:a}=r;return o=>{const u=i.exec(o);if(!u)return!1;const l=d=>{try{return decodeURIComponent(d)}catch{throw new t.DecodeError("failed to decode param")}},f={};return Object.keys(a).forEach(d=>{const h=a[d],p=u[h.pos];p!==void 0&&(f[d]=~p.indexOf("/")?p.split("/").map(m=>l(m)):h.repeat?[l(p)]:l(p))}),f}}}(mg)),mg}var gg={},yg={},Ux;function AF(){return Ux||(Ux=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(ue,Te){for(var Re in Te)Object.defineProperty(ue,Re,{enumerable:!0,get:Te[Re]})}t(e,{ACTION_SUFFIX:function(){return l},APP_DIR_ALIAS:function(){return F},CACHE_ONE_YEAR:function(){return T},DOT_NEXT_ALIAS:function(){return L},ESLINT_DEFAULT_DIRS:function(){return be},GSP_NO_RETURNED_VALUE:function(){return ie},GSSP_COMPONENT_MEMBER_ERROR:function(){return le},GSSP_NO_RETURNED_VALUE:function(){return te},INSTRUMENTATION_HOOK_FILENAME:function(){return k},MIDDLEWARE_FILENAME:function(){return _},MIDDLEWARE_LOCATION_REGEXP:function(){return x},NEXT_BODY_SUFFIX:function(){return h},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return C},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return y},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return g},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return m},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return S},NEXT_CACHE_TAGS_HEADER:function(){return p},NEXT_CACHE_TAG_MAX_ITEMS:function(){return b},NEXT_CACHE_TAG_MAX_LENGTH:function(){return w},NEXT_DATA_SUFFIX:function(){return f},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return r},NEXT_META_SUFFIX:function(){return d},NEXT_QUERY_PARAM_PREFIX:function(){return n},NON_STANDARD_NODE_ENV:function(){return ve},PAGES_DIR_ALIAS:function(){return A},PRERENDER_REVALIDATE_HEADER:function(){return i},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return a},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return Y},ROOT_DIR_ALIAS:function(){return N},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return z},RSC_ACTION_ENCRYPTION_ALIAS:function(){return j},RSC_ACTION_PROXY_ALIAS:function(){return D},RSC_ACTION_VALIDATE_ALIAS:function(){return V},RSC_MOD_REF_PROXY_ALIAS:function(){return H},RSC_PREFETCH_SUFFIX:function(){return o},RSC_SUFFIX:function(){return u},SERVER_PROPS_EXPORT_ERROR:function(){return ae},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return J},SERVER_PROPS_SSG_CONFLICT:function(){return $},SERVER_RUNTIME:function(){return we},SSG_FALLBACK_EXPORT_ERROR:function(){return _e},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return q},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return K},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return fe},WEBPACK_LAYERS:function(){return W},WEBPACK_RESOURCE_QUERIES:function(){return ye}});const n="nxtP",r="nxtI",i="x-prerender-revalidate",a="x-prerender-revalidate-if-generated",o=".prefetch.rsc",u=".rsc",l=".action",f=".json",d=".meta",h=".body",p="x-next-cache-tags",m="x-next-cache-soft-tags",y="x-next-revalidated-tags",g="x-next-revalidate-tag-token",b=128,w=256,S=1024,C="_N_T_",T=31536e3,_="middleware",x=`(?:src/)?${_}`,k="instrumentation",A="private-next-pages",L="private-dot-next",N="private-next-root-dir",F="private-next-app-dir",H="private-next-rsc-mod-ref-proxy",V="private-next-rsc-action-validate",D="private-next-rsc-server-reference",j="private-next-rsc-action-encryption",z="private-next-rsc-action-client-wrapper",Y="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",q="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",J="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",$="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",K="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",ae="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",ie="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",te="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",fe="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",le="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",ve='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',_e="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",be=["app","pages","components","lib","src"],we={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},ne={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",appMetadataRoute:"app-metadata-route",appRouteHandler:"app-route-handler"},W={...ne,GROUP:{serverOnly:[ne.reactServerComponents,ne.actionBrowser,ne.appMetadataRoute,ne.appRouteHandler,ne.instrument],clientOnly:[ne.serverSideRendering,ne.appPagesBrowser],nonClientServerTarget:[ne.middleware,ne.api],app:[ne.reactServerComponents,ne.actionBrowser,ne.appMetadataRoute,ne.appRouteHandler,ne.serverSideRendering,ne.appPagesBrowser,ne.shared,ne.instrument]}},ye={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}}(yg)),yg}var bg={},zx;function PF(){return zx||(zx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return r}});const t=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function r(i){return t.test(i)?i.replace(n,"\\$&"):i}}(bg)),bg}var Hx;function NF(){return Hx||(Hx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,g){for(var b in g)Object.defineProperty(y,b,{enumerable:!0,get:g[b]})}t(e,{getNamedMiddlewareRegex:function(){return m},getNamedRouteRegex:function(){return p},getRouteRegex:function(){return l},parseParameter:function(){return o}});const n=AF(),r=jx(),i=PF(),a=Cx();function o(y){const g=y.startsWith("[")&&y.endsWith("]");g&&(y=y.slice(1,-1));const b=y.startsWith("...");return b&&(y=y.slice(3)),{key:y,repeat:b,optional:g}}function u(y){const g=(0,a.removeTrailingSlash)(y).slice(1).split("/"),b={};let w=1;return{parameterizedRoute:g.map(S=>{const C=r.INTERCEPTION_ROUTE_MARKERS.find(_=>S.startsWith(_)),T=S.match(/\[((?:\[.*\])|.+)\]/);if(C&&T){const{key:_,optional:x,repeat:k}=o(T[1]);return b[_]={pos:w++,repeat:k,optional:x},"/"+(0,i.escapeStringRegexp)(C)+"([^/]+?)"}else if(T){const{key:_,repeat:x,optional:k}=o(T[1]);return b[_]={pos:w++,repeat:x,optional:k},x?k?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,i.escapeStringRegexp)(S)}).join(""),groups:b}}function l(y){const{parameterizedRoute:g,groups:b}=u(y);return{re:new RegExp("^"+g+"(?:/)?$"),groups:b}}function f(){let y=0;return()=>{let g="",b=++y;for(;b>0;)g+=String.fromCharCode(97+(b-1)%26),b=Math.floor((b-1)/26);return g}}function d(y){let{interceptionMarker:g,getSafeRouteKey:b,segment:w,routeKeys:S,keyPrefix:C}=y;const{key:T,optional:_,repeat:x}=o(w);let k=T.replace(/\W/g,"");C&&(k=""+C+k);let A=!1;(k.length===0||k.length>30)&&(A=!0),isNaN(parseInt(k.slice(0,1)))||(A=!0),A&&(k=b()),C?S[k]=""+C+T:S[k]=T;const L=g?(0,i.escapeStringRegexp)(g):"";return x?_?"(?:/"+L+"(?<"+k+">.+?))?":"/"+L+"(?<"+k+">.+?)":"/"+L+"(?<"+k+">[^/]+?)"}function h(y,g){const b=(0,a.removeTrailingSlash)(y).slice(1).split("/"),w=f(),S={};return{namedParameterizedRoute:b.map(C=>{const T=r.INTERCEPTION_ROUTE_MARKERS.some(x=>C.startsWith(x)),_=C.match(/\[((?:\[.*\])|.+)\]/);if(T&&_){const[x]=C.split(_[0]);return d({getSafeRouteKey:w,interceptionMarker:x,segment:_[1],routeKeys:S,keyPrefix:g?n.NEXT_INTERCEPTION_MARKER_PREFIX:void 0})}else return _?d({getSafeRouteKey:w,segment:_[1],routeKeys:S,keyPrefix:g?n.NEXT_QUERY_PARAM_PREFIX:void 0}):"/"+(0,i.escapeStringRegexp)(C)}).join(""),routeKeys:S}}function p(y,g){const b=h(y,g);return{...l(y),namedRegex:"^"+b.namedParameterizedRoute+"(?:/)?$",routeKeys:b.routeKeys}}function m(y,g){const{parameterizedRoute:b}=u(y),{catchAll:w=!0}=g;if(b==="/")return{namedRegex:"^/"+(w?".*":"")+"$"};const{namedParameterizedRoute:S}=h(y,!1);let C=w?"(?:(/.*)?)":"";return{namedRegex:"^"+S+C+"$"}}}(gg)),gg}var Bx;function IF(){return Bx||(Bx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return r}});const t=RF(),n=NF();function r(i,a,o){let u="";const l=(0,n.getRouteRegex)(i),f=l.groups,d=(a!==i?(0,t.getRouteMatcher)(l)(a):"")||o;u=i;const h=Object.keys(f);return h.every(p=>{let m=d[p]||"";const{repeat:y,optional:g}=f[p];let b="["+(y?"...":"")+p+"]";return g&&(b=(m?"":"/")+"["+b+"]"),y&&!Array.isArray(m)&&(m=[m]),(g||p in d)&&(u=u.replace(b,y?m.map(w=>encodeURIComponent(w)).join("/"):encodeURIComponent(m))||"/")})||(u=""),{params:h,result:u}}}(vg)),vg}var Wx;function LF(){return Wx||(Wx=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});const n=yx(),r=wx(),i=wF(),a=lf(),o=ff(),u=Nx(),l=kF(),f=IF();function d(h,p,m){let y,g=typeof p=="string"?p:(0,r.formatWithValidation)(p);const b=g.match(/^[a-zA-Z]{1,}:\/\//),w=b?g.slice(b[0].length):g;if((w.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+g+"' passed to next/router in page: '"+h.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const C=(0,a.normalizeRepeatedSlashes)(w);g=(b?b[0]:"")+C}if(!(0,u.isLocalURL)(g))return m?[g]:g;try{y=new URL(g.startsWith("#")?h.asPath:h.pathname,"http://n")}catch{y=new URL("/","http://n")}try{const C=new URL(g,y);C.pathname=(0,o.normalizePathTrailingSlash)(C.pathname);let T="";if((0,l.isDynamicRoute)(C.pathname)&&C.searchParams&&m){const x=(0,n.searchParamsToUrlQuery)(C.searchParams),{result:k,params:A}=(0,f.interpolateAs)(C.pathname,C.pathname,x);k&&(T=(0,r.formatWithValidation)({pathname:k,hash:C.hash,query:(0,i.omit)(x,A)}))}const _=C.origin===y.origin?C.href.slice(C.origin.length):C.href;return m?[_,T||_]:_}catch{return m?[g]:g}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(sf,sf.exports)),sf.exports}var hf={exports:{}},_g={},wg={},Gx;function Qx(){return Gx||(Gx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return n}});const t=ag();function n(r,i){if(!r.startsWith("/")||!i)return r;const{pathname:a,query:o,hash:u}=(0,t.parsePath)(r);return""+i+a+o+u}}(wg)),wg}var Yx;function FF(){return Yx||(Yx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return r}});const t=Qx(),n=Rx();function r(i,a,o,u){if(!a||a===o)return i;const l=i.toLowerCase();return!u&&((0,n.pathHasPrefix)(l,"/api")||(0,n.pathHasPrefix)(l,"/"+a.toLowerCase()))?i:(0,t.addPathPrefix)(i,"/"+a)}}(_g)),_g}var Kx;function DF(){return Kx||(Kx=1,function(e,t){var n={};Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return i}});const r=ff(),i=function(a){for(var o=arguments.length,u=new Array(o>1?o-1:0),l=1;l<o;l++)u[l-1]=arguments[l];return n.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(FF().addLocale(a,...u)):a};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(hf,hf.exports)),hf.exports}var Eg={},Xx;function MF(){return Xx||(Xx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return r}});const r=Zm()._(M).default.createContext(null);r.displayName="RouterContext"}(Eg)),Eg}var Sg={},Zx;function jF(){return Zx||(Zx=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(f,d){for(var h in d)Object.defineProperty(f,h,{enumerable:!0,get:d[h]})}t(e,{AppRouterContext:function(){return i},GlobalLayoutRouterContext:function(){return o},LayoutRouterContext:function(){return a},MissingSlotContext:function(){return l},TemplateContext:function(){return u}});const r=Zm()._(M),i=r.default.createContext(null),a=r.default.createContext(null),o=r.default.createContext(null),u=r.default.createContext(null);i.displayName="AppRouterContext",a.displayName="LayoutRouterContext",o.displayName="GlobalLayoutRouterContext",u.displayName="TemplateContext";const l=r.default.createContext(new Set)}(Sg)),Sg}var pf={exports:{}},vf={exports:{}},Jx;function $F(){return Jx||(Jx=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(a,o){for(var u in o)Object.defineProperty(a,u,{enumerable:!0,get:o[u]})}n(t,{cancelIdleCallback:function(){return i},requestIdleCallback:function(){return r}});const r=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(a){let o=Date.now();return self.setTimeout(function(){a({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-o))}})},1)},i=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(a){return clearTimeout(a)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(vf,vf.exports)),vf.exports}var eC;function VF(){return eC||(eC=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return f}});const n=M,r=$F(),i=typeof IntersectionObserver=="function",a=new Map,o=[];function u(d){const h={root:d.root||null,margin:d.rootMargin||""},p=o.find(b=>b.root===h.root&&b.margin===h.margin);let m;if(p&&(m=a.get(p),m))return m;const y=new Map,g=new IntersectionObserver(b=>{b.forEach(w=>{const S=y.get(w.target),C=w.isIntersecting||w.intersectionRatio>0;S&&C&&S(C)})},d);return m={id:h,observer:g,elements:y},o.push(h),a.set(h,m),m}function l(d,h,p){const{id:m,observer:y,elements:g}=u(p);return g.set(d,h),y.observe(d),function(){if(g.delete(d),y.unobserve(d),g.size===0){y.disconnect(),a.delete(m);const w=o.findIndex(S=>S.root===m.root&&S.margin===m.margin);w>-1&&o.splice(w,1)}}}function f(d){let{rootRef:h,rootMargin:p,disabled:m}=d;const y=m||!i,[g,b]=(0,n.useState)(!1),w=(0,n.useRef)(null),S=(0,n.useCallback)(T=>{w.current=T},[]);(0,n.useEffect)(()=>{if(i){if(y||g)return;const T=w.current;if(T&&T.tagName)return l(T,x=>x&&b(x),{root:h==null?void 0:h.current,rootMargin:p})}else if(!g){const T=(0,r.requestIdleCallback)(()=>b(!0));return()=>(0,r.cancelIdleCallback)(T)}},[y,p,h,g,w.current]);const C=(0,n.useCallback)(()=>{b(!1)},[]);return[S,g,C]}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(pf,pf.exports)),pf.exports}var mf={exports:{}},gf={exports:{}},xg={},tC;function qF(){return tC||(tC=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(n,r){let i;const a=n.split("/");return(r||[]).some(o=>a[1]&&a[1].toLowerCase()===o.toLowerCase()?(i=o,a.splice(1,1),n=a.join("/")||"/",!0):!1),{pathname:n,detectedLocale:i}}}(xg)),xg}var nC;function UF(){return nC||(nC=1,function(e,t){var n={};Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(i,a)=>n.__NEXT_I18N_SUPPORT?qF().normalizeLocalePath(i,a):{pathname:i,detectedLocale:void 0};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(gf,gf.exports)),gf.exports}var yf={exports:{}},Cg={},rC;function zF(){return rC||(rC=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(n,r,i){if(n){i&&(i=i.toLowerCase());for(const u of n){var a,o;const l=(a=u.domain)==null?void 0:a.split(":",1)[0].toLowerCase();if(r===l||i===u.defaultLocale.toLowerCase()||(o=u.locales)!=null&&o.some(f=>f.toLowerCase()===i))return u}}}}(Cg)),Cg}var iC;function HF(){return iC||(iC=1,function(e,t){var n={};Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});const r=function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];if(n.__NEXT_I18N_SUPPORT)return zF().detectDomainLocale(...a)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(yf,yf.exports)),yf.exports}var aC;function BF(){return aC||(aC=1,function(e,t){var n={};Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return a}});const r=ff(),i=n.__NEXT_ROUTER_BASEPATH||"";function a(o,u,l,f){if(n.__NEXT_I18N_SUPPORT){const d=UF().normalizeLocalePath,h=HF().detectDomainLocale,p=u||d(o,l).detectedLocale,m=h(f,void 0,p);if(m){const y="http"+(m.http?"":"s")+"://",g=p===m.defaultLocale?"":"/"+p;return""+y+m.domain+(0,r.normalizePathTrailingSlash)(""+i+g+o)}return!1}else return!1}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(mf,mf.exports)),mf.exports}var bf={exports:{}},oC;function WF(){return oC||(oC=1,function(e,t){var n={};Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return o}});const r=Qx(),i=ff(),a=n.__NEXT_ROUTER_BASEPATH||"";function o(u,l){return(0,i.normalizePathTrailingSlash)(n.__NEXT_MANUAL_CLIENT_BASE_PATH&&!l?u:(0,r.addPathPrefix)(u,a))}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(bf,bf.exports)),bf.exports}var _f={exports:{}},sC;function GF(){return sC||(sC=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(m,y){for(var g in y)Object.defineProperty(m,g,{enumerable:!0,get:y[g]})}n(t,{ACTION_FAST_REFRESH:function(){return l},ACTION_NAVIGATE:function(){return i},ACTION_PREFETCH:function(){return u},ACTION_REFRESH:function(){return r},ACTION_RESTORE:function(){return a},ACTION_SERVER_ACTION:function(){return f},ACTION_SERVER_PATCH:function(){return o},PrefetchCacheEntryStatus:function(){return h},PrefetchKind:function(){return d},isThenable:function(){return p}});const r="refresh",i="navigate",a="restore",o="server-patch",u="prefetch",l="fast-refresh",f="server-action";var d;(function(m){m.AUTO="auto",m.FULL="full",m.TEMPORARY="temporary"})(d||(d={}));var h;(function(m){m.fresh="fresh",m.reusable="reusable",m.expired="expired",m.stale="stale"})(h||(h={}));function p(m){return m&&(typeof m=="object"||typeof m=="function")&&typeof m.then=="function"}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(_f,_f.exports)),_f.exports}var uC;function QF(){return uC||(uC=1,function(e,t){"use client";var n={NODE_ENV:'"production"'};Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return k}});const r=Zm(),i=H1(),a=r._(M),o=LF(),u=Nx(),l=wx(),f=lf(),d=DF(),h=MF(),p=jF(),m=VF(),y=BF(),g=WF(),b=GF(),w=new Set;function S(A,L,N,F,H,V){if(typeof window>"u"||!V&&!(0,u.isLocalURL)(L))return;if(!F.bypassPrefetchedCheck){const j=typeof F.locale<"u"?F.locale:"locale"in A?A.locale:void 0,z=L+"%"+N+"%"+j;if(w.has(z))return;w.add(z)}(async()=>V?A.prefetch(L,H):A.prefetch(L,N,F))().catch(j=>{throw j})}function C(A){const N=A.currentTarget.getAttribute("target");return N&&N!=="_self"||A.metaKey||A.ctrlKey||A.shiftKey||A.altKey||A.nativeEvent&&A.nativeEvent.which===2}function T(A,L,N,F,H,V,D,j,z){const{nodeName:Y}=A.currentTarget;if(Y.toUpperCase()==="A"&&(C(A)||!z&&!(0,u.isLocalURL)(N)))return;A.preventDefault();const J=()=>{const $=D??!0;"beforePopState"in L?L[H?"replace":"push"](N,F,{shallow:V,locale:j,scroll:$}):L[H?"replace":"push"](F||N,{scroll:$})};z?a.default.startTransition(J):J()}function _(A){return typeof A=="string"?A:(0,l.formatUrl)(A)}const k=a.default.forwardRef(function(L,N){let F;const{href:H,as:V,children:D,prefetch:j=null,passHref:z,replace:Y,shallow:q,scroll:J,locale:$,onClick:K,onMouseEnter:ae,onTouchStart:ie,legacyBehavior:te=!1,...fe}=L;F=D,te&&(typeof F=="string"||typeof F=="number")&&(F=(0,i.jsx)("a",{children:F}));const le=a.default.useContext(h.RouterContext),ve=a.default.useContext(p.AppRouterContext),_e=le??ve,be=!le,we=j!==!1,ne=j===null?b.PrefetchKind.AUTO:b.PrefetchKind.FULL;{let Ee=function(Be){return new Error("Failed prop type: The prop `"+Be.key+"` expects a "+Be.expected+" in `<Link>`, but got `"+Be.actual+"` instead."+(typeof window<"u"?`
462
- Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(Be=>{if(Be==="href"&&(L[Be]==null||typeof L[Be]!="string"&&typeof L[Be]!="object"))throw Ee({key:Be,expected:"`string` or `object`",actual:L[Be]===null?"null":typeof L[Be]})}),Object.keys({as:!0,replace:!0,scroll:!0,shallow:!0,passHref:!0,prefetch:!0,locale:!0,onClick:!0,onMouseEnter:!0,onTouchStart:!0,legacyBehavior:!0}).forEach(Be=>{const Jt=typeof L[Be];if(Be==="as"){if(L[Be]&&Jt!=="string"&&Jt!=="object")throw Ee({key:Be,expected:"`string` or `object`",actual:Jt})}else if(Be==="locale"){if(L[Be]&&Jt!=="string")throw Ee({key:Be,expected:"`string`",actual:Jt})}else if(Be==="onClick"||Be==="onMouseEnter"||Be==="onTouchStart"){if(L[Be]&&Jt!=="function")throw Ee({key:Be,expected:"`function`",actual:Jt})}else if((Be==="replace"||Be==="scroll"||Be==="shallow"||Be==="passHref"||Be==="prefetch"||Be==="legacyBehavior")&&L[Be]!=null&&Jt!=="boolean")throw Ee({key:Be,expected:"`boolean`",actual:Jt})});const Kt=a.default.useRef(!1);L.prefetch&&!Kt.current&&!be&&(Kt.current=!0,console.warn("Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://nextjs.org/docs/messages/prefetch-true-deprecated"))}if(be&&!V){let Ee;if(typeof H=="string"?Ee=H:typeof H=="object"&&typeof H.pathname=="string"&&(Ee=H.pathname),Ee&&Ee.split("/").some(Tt=>Tt.startsWith("[")&&Tt.endsWith("]")))throw new Error("Dynamic href `"+Ee+"` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href")}const{href:W,as:ye}=a.default.useMemo(()=>{if(!le){const Tt=_(H);return{href:Tt,as:V?_(V):Tt}}const[Ee,Rt]=(0,o.resolveHref)(le,H,!0);return{href:Ee,as:V?(0,o.resolveHref)(le,V):Rt||Ee}},[le,H,V]),ue=a.default.useRef(W),Te=a.default.useRef(ye);let Re;te&&(Re=a.default.Children.only(F));const Ze=te?Re&&typeof Re=="object"&&Re.ref:N,[ft,dt,kt]=(0,m.useIntersection)({rootMargin:"200px"}),Ve=a.default.useCallback(Ee=>{(Te.current!==ye||ue.current!==W)&&(kt(),Te.current=ye,ue.current=W),ft(Ee),Ze&&(typeof Ze=="function"?Ze(Ee):typeof Ze=="object"&&(Ze.current=Ee))},[ye,Ze,W,kt,ft]);a.default.useEffect(()=>{},[ye,W,dt,$,we,le==null?void 0:le.locale,_e,be,ne]);const et={ref:Ve,onClick(Ee){if(!Ee)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!te&&typeof K=="function"&&K(Ee),te&&Re.props&&typeof Re.props.onClick=="function"&&Re.props.onClick(Ee),_e&&(Ee.defaultPrevented||T(Ee,_e,W,ye,Y,q,J,$,be))},onMouseEnter(Ee){!te&&typeof ae=="function"&&ae(Ee),te&&Re.props&&typeof Re.props.onMouseEnter=="function"&&Re.props.onMouseEnter(Ee),_e&&((!we||n.NODE_ENV==="development")&&be||S(_e,W,ye,{locale:$,priority:!0,bypassPrefetchedCheck:!0},{kind:ne},be))},onTouchStart:n.__NEXT_LINK_NO_TOUCH_START?void 0:function(Rt){!te&&typeof ie=="function"&&ie(Rt),te&&Re.props&&typeof Re.props.onTouchStart=="function"&&Re.props.onTouchStart(Rt),_e&&(!we&&be||S(_e,W,ye,{locale:$,priority:!0,bypassPrefetchedCheck:!0},{kind:ne},be))}};if((0,f.isAbsoluteUrl)(ye))et.href=ye;else if(!te||z||Re.type==="a"&&!("href"in Re.props)){const Ee=typeof $<"u"?$:le==null?void 0:le.locale,Rt=(le==null?void 0:le.isLocaleDomain)&&(0,y.getDomainLocale)(ye,Ee,le==null?void 0:le.locales,le==null?void 0:le.domainLocales);et.href=Rt||(0,g.addBasePath)((0,d.addLocale)(ye,Ee,le==null?void 0:le.defaultLocale))}return te?a.default.cloneElement(Re,et):(0,i.jsx)("a",{...fe,...et,children:F})});(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(af,af.exports)),af.exports}var Tg,lC;function YF(){return lC||(lC=1,Tg=QF()),Tg}var KF=YF();const cC=ji(KF);var Og={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_AN_ARTICLE"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"EntityIdOrSlugInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAnArticle"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"author"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"first_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatar_file"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"content"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"category"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"section"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"published_at"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:358}};Og.loc.source={body:`query GET_AN_ARTICLE($queryData: EntityIdOrSlugInputType!) {
461
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function rf(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var n=e.type;n.kind==="NamedType"&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){rf(r,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){rf(r,t)}),e.definitions&&e.definitions.forEach(function(r){rf(r,t)})}var Xm={};(function(){nf.definitions.forEach(function(t){if(t.name){var n=new Set;rf(t,n),Xm[t.name.value]=n}})})();function vx(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}function yF(e,t){var n={kind:e.kind,definitions:[vx(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var r=Xm[t]||new Set,i=new Set,a=new Set;for(r.forEach(function(u){a.add(u)});a.size>0;){var o=a;a=new Set,o.forEach(function(u){if(!i.has(u)){i.add(u);var l=Xm[u]||new Set;l.forEach(function(f){a.add(f)})}})}return i.forEach(function(u){var l=vx(e,u);l&&n.definitions.push(l)}),n}yF(nf,"GET_CATEGORIES");const bF=({setSelectedCategory:e})=>{const[t,n]=M.useState([]),[r,i]=M.useState({limit:50,offset:0,order:[["serial","asc"]]}),[a,o]=M.useState({}),[u,l]=M.useState({initialLoading:!0,fetchMoreLoading:!0}),[f]=Yi(nf,{errorPolicy:"all",fetchPolicy:"no-cache",variables:{queryData:{type:"ARTICLE"},optionData:r},onCompleted:p=>{var y,g;const m=(y=p==null?void 0:p.getCategories)==null?void 0:y.data;(r==null?void 0:r.offset)===0?n(m):n([...t,...m]),o((g=p==null?void 0:p.getCategories)==null?void 0:g.meta_data),l({initialLoading:!1,fetchMoreLoading:!1})},onError:p=>{console.error(p)}}),d=()=>{l({initialLoading:!1,fetchMoreLoading:!0});const p=r.offset+r.limit;i(m=>({...m,offset:p}))},h=!!(a!=null&&a.filtered_rows&&Ge.size(t)<(a==null?void 0:a.filtered_rows));return M.useEffect(()=>{f()},[]),u.initialLoading?O.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:O.jsx(Zi,{})}):O.jsx(yw,{dataLength:Ge.size(t),next:d,hasMore:h,scrollableTarget:"root-scrollbar",loader:"",children:O.jsxs("div",{children:[t==null?void 0:t.map(p=>O.jsxs("div",{role:"button",tabIndex:0,onClick:()=>e(p==null?void 0:p.id),className:"ed-py-3 ed-px-5 ed-mt-3 ed-rounded-lg ed-border ed-border-border-light ed-group ed-hover:shadow-lg ed-duration-300 ed-transition-all ed-cursor-pointer",children:[O.jsx("h6",{className:"ed-text-16 ed-font-semibold ed-text-border-dark ed-group-hover:text-brand-link",children:p==null?void 0:p.name}),O.jsx("p",{className:"ed-text-14 ed-font-medium ed-text-border-regular ed-group-hover:text-border-dark ed-my-2 ed-duration-300 ed-transition-all",children:p==null?void 0:p.description}),O.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-justify-between",children:[O.jsxs("span",{className:"ed-text-14 ed-text-border ed-group-hover:text-border-regular ed-duration-300 ed-transition-all",children:[p==null?void 0:p.total_articles," article",(p==null?void 0:p.total_articles)>1&&"s"]}),O.jsx("div",{className:"ed-size-4 ed--translate-x-2 ed-opacity-0 ed-group-hover:opacity-100 ed-group-hover:translate-x-2 ed-duration-300 ed-transition-all",children:O.jsx(Fo,{className:"ed-text-border ed-size-4"})})]})]},p==null?void 0:p.id)),(u==null?void 0:u.fetchMoreLoading)&&O.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:O.jsx(Zi,{})})]})})};var af={exports:{}},of={},mx;function Zm(){if(mx)return of;mx=1,of._=of._interop_require_default=e;function e(t){return t&&t.__esModule?t:{default:t}}return of}var sf={exports:{}},Jm={},gx;function yx(){return gx||(gx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,u){for(var l in u)Object.defineProperty(o,l,{enumerable:!0,get:u[l]})}t(e,{assign:function(){return a},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return i}});function n(o){const u={};return o.forEach((l,f)=>{typeof u[f]>"u"?u[f]=l:Array.isArray(u[f])?u[f].push(l):u[f]=[u[f],l]}),u}function r(o){return typeof o=="string"||typeof o=="number"&&!isNaN(o)||typeof o=="boolean"?String(o):""}function i(o){const u=new URLSearchParams;return Object.entries(o).forEach(l=>{let[f,d]=l;Array.isArray(d)?d.forEach(h=>u.append(f,r(h))):u.set(f,r(d))}),u}function a(o){for(var u=arguments.length,l=new Array(u>1?u-1:0),f=1;f<u;f++)l[f-1]=arguments[f];return l.forEach(d=>{Array.from(d.keys()).forEach(h=>o.delete(h)),d.forEach((h,p)=>o.append(p,h))}),o}}(Jm)),Jm}var eg={},uf={},bx;function _F(){if(bx)return uf;bx=1;function e(n){if(typeof WeakMap!="function")return null;var r=new WeakMap,i=new WeakMap;return(e=function(a){return a?i:r})(n)}uf._=uf._interop_require_wildcard=t;function t(n,r){if(!r&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var i=e(r);if(i&&i.has(n))return i.get(n);var a={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in n)if(u!=="default"&&Object.prototype.hasOwnProperty.call(n,u)){var l=o?Object.getOwnPropertyDescriptor(n,u):null;l&&(l.get||l.set)?Object.defineProperty(a,u,l):a[u]=n[u]}return a.default=n,i&&i.set(n,a),a}return uf}var _x;function wx(){return _x||(_x=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,f){for(var d in f)Object.defineProperty(l,d,{enumerable:!0,get:f[d]})}t(e,{formatUrl:function(){return a},formatWithValidation:function(){return u},urlObjectKeys:function(){return o}});const r=_F()._(yx()),i=/https?|ftp|gopher|file/;function a(l){let{auth:f,hostname:d}=l,h=l.protocol||"",p=l.pathname||"",m=l.hash||"",y=l.query||"",g=!1;f=f?encodeURIComponent(f).replace(/%3A/i,":")+"@":"",l.host?g=f+l.host:d&&(g=f+(~d.indexOf(":")?"["+d+"]":d),l.port&&(g+=":"+l.port)),y&&typeof y=="object"&&(y=String(r.urlQueryToSearchParams(y)));let b=l.search||y&&"?"+y||"";return h&&!h.endsWith(":")&&(h+=":"),l.slashes||(!h||i.test(h))&&g!==!1?(g="//"+(g||""),p&&p[0]!=="/"&&(p="/"+p)):g||(g=""),m&&m[0]!=="#"&&(m="#"+m),b&&b[0]!=="?"&&(b="?"+b),p=p.replace(/[?#]/g,encodeURIComponent),b=b.replace("#","%23"),""+h+g+p+b+m}const o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(l){return a(l)}}(eg)),eg}var tg={},Ex;function wF(){return Ex||(Ex=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(n,r){const i={};return Object.keys(n).forEach(a=>{r.includes(a)||(i[a]=n[a])}),i}}(tg)),tg}var ng={},Sx;function lf(){return Sx||(Sx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,_){for(var x in _)Object.defineProperty(T,x,{enumerable:!0,get:_[x]})}t(e,{DecodeError:function(){return y},MiddlewareNotFoundError:function(){return S},MissingStaticPage:function(){return w},NormalizeError:function(){return g},PageNotFoundError:function(){return b},SP:function(){return p},ST:function(){return m},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return l},getLocationOrigin:function(){return o},getURL:function(){return u},isAbsoluteUrl:function(){return a},isResSent:function(){return f},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return d},stringifyError:function(){return C}});const n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(T){let _=!1,x;return function(){for(var k=arguments.length,A=new Array(k),L=0;L<k;L++)A[L]=arguments[L];return _||(_=!0,x=T(...A)),x}}const i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,a=T=>i.test(T);function o(){const{protocol:T,hostname:_,port:x}=window.location;return T+"//"+_+(x?":"+x:"")}function u(){const{href:T}=window.location,_=o();return T.substring(_.length)}function l(T){return typeof T=="string"?T:T.displayName||T.name||"Unknown"}function f(T){return T.finished||T.headersSent}function d(T){const _=T.split("?");return _[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(_[1]?"?"+_.slice(1).join("?"):"")}async function h(T,_){{var x;if((x=T.prototype)!=null&&x.getInitialProps){const L='"'+l(T)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error(L)}}const k=_.res||_.ctx&&_.ctx.res;if(!T.getInitialProps)return _.ctx&&_.Component?{pageProps:await h(_.Component,_.ctx)}:{};const A=await T.getInitialProps(_);if(k&&f(k))return A;if(!A){const L='"'+l(T)+'.getInitialProps()" should resolve to an object. But found "'+A+'" instead.';throw new Error(L)}return Object.keys(A).length===0&&!_.ctx&&console.warn(""+l(T)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),A}const p=typeof performance<"u",m=p&&["mark","measure","getEntriesByName"].every(T=>typeof performance[T]=="function");class y extends Error{}class g extends Error{}class b extends Error{constructor(_){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+_}}class w extends Error{constructor(_,x){super(),this.message="Failed to load static file for page: "+_+" "+x}}class S extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function C(T){return JSON.stringify({message:T.message,stack:T.stack})}}(ng)),ng}var cf={exports:{}},rg={},xx;function Cx(){return xx||(xx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removeTrailingSlash",{enumerable:!0,get:function(){return t}});function t(n){return n.replace(/\/$/,"")||"/"}}(rg)),rg}var ig={},Tx;function ag(){return Tx||(Tx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(n){const r=n.indexOf("#"),i=n.indexOf("?"),a=i>-1&&(r<0||i<r);return a||r>-1?{pathname:n.substring(0,a?i:r),query:a?n.substring(i,r>-1?r:void 0):"",hash:r>-1?n.slice(r):""}:{pathname:n,query:"",hash:""}}}(ig)),ig}var Ox;function ff(){return Ox||(Ox=1,function(e,t){var n={};Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return a}});const r=Cx(),i=ag(),a=o=>{if(!o.startsWith("/")||n.__NEXT_MANUAL_TRAILING_SLASH)return o;const{pathname:u,query:l,hash:f}=(0,i.parsePath)(o);return n.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(u)?""+(0,r.removeTrailingSlash)(u)+l+f:u.endsWith("/")?""+u+l+f:u+"/"+l+f:""+(0,r.removeTrailingSlash)(u)+l+f};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(cf,cf.exports)),cf.exports}var og={},df={exports:{}},sg={},kx;function Rx(){return kx||(kx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return n}});const t=ag();function n(r,i){if(typeof r!="string")return!1;const{pathname:a}=(0,t.parsePath)(r);return a===i||a.startsWith(i+"/")}}(sg)),sg}var Ax;function EF(){return Ax||(Ax=1,function(e,t){var n={};Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return a}});const r=Rx(),i=n.__NEXT_ROUTER_BASEPATH||"";function a(o){return(0,r.pathHasPrefix)(o,i)}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(df,df.exports)),df.exports}var Px;function Nx(){return Px||(Px=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return r}});const t=lf(),n=EF();function r(i){if(!(0,t.isAbsoluteUrl)(i))return!0;try{const a=(0,t.getLocationOrigin)(),o=new URL(i,a);return o.origin===a&&(0,n.hasBasePath)(o.pathname)}catch{return!1}}}(og)),og}var ug={},lg={},Ix;function SF(){return Ix||(Ix=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return n}});class t{insert(i){this._insert(i.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(i){i===void 0&&(i="/");const a=[...this.children.keys()].sort();this.slugName!==null&&a.splice(a.indexOf("[]"),1),this.restSlugName!==null&&a.splice(a.indexOf("[...]"),1),this.optionalRestSlugName!==null&&a.splice(a.indexOf("[[...]]"),1);const o=a.map(u=>this.children.get(u)._smoosh(""+i+u+"/")).reduce((u,l)=>[...u,...l],[]);if(this.slugName!==null&&o.push(...this.children.get("[]")._smoosh(i+"["+this.slugName+"]/")),!this.placeholder){const u=i==="/"?"/":i.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+u+'" and "'+u+"[[..."+this.optionalRestSlugName+']]").');o.unshift(u)}return this.restSlugName!==null&&o.push(...this.children.get("[...]")._smoosh(i+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&o.push(...this.children.get("[[...]]")._smoosh(i+"[[..."+this.optionalRestSlugName+"]]/")),o}_insert(i,a,o){if(i.length===0){this.placeholder=!1;return}if(o)throw new Error("Catch-all must be the last part of the URL.");let u=i[0];if(u.startsWith("[")&&u.endsWith("]")){let d=function(h,p){if(h!==null&&h!==p)throw new Error("You cannot use different slug names for the same dynamic path ('"+h+"' !== '"+p+"').");a.forEach(m=>{if(m===p)throw new Error('You cannot have the same slug name "'+p+'" repeat within a single dynamic path');if(m.replace(/\W/g,"")===u.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+m+'" and "'+p+'" differ only by non-word symbols within a single dynamic path')}),a.push(p)},l=u.slice(1,-1),f=!1;if(l.startsWith("[")&&l.endsWith("]")&&(l=l.slice(1,-1),f=!0),l.startsWith("...")&&(l=l.substring(3),o=!0),l.startsWith("[")||l.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+l+"').");if(l.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+l+"').");if(o)if(f){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+i[0]+'" ).');d(this.optionalRestSlugName,l),this.optionalRestSlugName=l,u="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+i[0]+'").');d(this.restSlugName,l),this.restSlugName=l,u="[...]"}else{if(f)throw new Error('Optional route parameters are not yet supported ("'+i[0]+'").');d(this.slugName,l),this.slugName=l,u="[]"}}this.children.has(u)||this.children.set(u,new t),this.children.get(u)._insert(i.slice(1),a,o)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(r){const i=new t;return r.forEach(a=>i.insert(a)),i.smoosh()}}(lg)),lg}var cg={},fg={},dg={},hg={},Lx;function xF(){return Lx||(Lx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ensureLeadingSlash",{enumerable:!0,get:function(){return t}});function t(n){return n.startsWith("/")?n:"/"+n}}(hg)),hg}var pg={},Fx;function CF(){return Fx||(Fx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,o){for(var u in o)Object.defineProperty(a,u,{enumerable:!0,get:o[u]})}t(e,{DEFAULT_SEGMENT_KEY:function(){return i},PAGE_SEGMENT_KEY:function(){return r},isGroupSegment:function(){return n}});function n(a){return a[0]==="("&&a.endsWith(")")}const r="__PAGE__",i="__DEFAULT__"}(pg)),pg}var Dx;function TF(){return Dx||(Dx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,u){for(var l in u)Object.defineProperty(o,l,{enumerable:!0,get:u[l]})}t(e,{normalizeAppPath:function(){return i},normalizeRscURL:function(){return a}});const n=xF(),r=CF();function i(o){return(0,n.ensureLeadingSlash)(o.split("/").reduce((u,l,f,d)=>!l||(0,r.isGroupSegment)(l)||l[0]==="@"||(l==="page"||l==="route")&&f===d.length-1?u:u+"/"+l,""))}function a(o){return o.replace(/\.rsc($|\?)/,"$1")}}(dg)),dg}var Mx;function jx(){return Mx||(Mx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,u){for(var l in u)Object.defineProperty(o,l,{enumerable:!0,get:u[l]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return r},extractInterceptionRouteInformation:function(){return a},isInterceptionRouteAppPath:function(){return i}});const n=TF(),r=["(..)(..)","(.)","(..)","(...)"];function i(o){return o.split("/").find(u=>r.find(l=>u.startsWith(l)))!==void 0}function a(o){let u,l,f;for(const d of o.split("/"))if(l=r.find(h=>d.startsWith(h)),l){[u,f]=o.split(l,2);break}if(!u||!l||!f)throw new Error(`Invalid interception route: ${o}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(u=(0,n.normalizeAppPath)(u),l){case"(.)":u==="/"?f=`/${f}`:f=u+"/"+f;break;case"(..)":if(u==="/")throw new Error(`Invalid interception route: ${o}. Cannot use (..) marker at the root level, use (.) instead.`);f=u.split("/").slice(0,-1).concat(f).join("/");break;case"(...)":f="/"+f;break;case"(..)(..)":const d=u.split("/");if(d.length<=2)throw new Error(`Invalid interception route: ${o}. Cannot use (..)(..) marker at the root level or one level up.`);f=d.slice(0,-2).concat(f).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:u,interceptedRoute:f}}}(fg)),fg}var $x;function OF(){return $x||($x=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return r}});const t=jx(),n=/\/\[[^/]+?\](?=\/|$)/;function r(i){return(0,t.isInterceptionRouteAppPath)(i)&&(i=(0,t.extractInterceptionRouteInformation)(i).interceptedRoute),n.test(i)}}(cg)),cg}var Vx;function kF(){return Vx||(Vx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,a){for(var o in a)Object.defineProperty(i,o,{enumerable:!0,get:a[o]})}t(e,{getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return r.isDynamicRoute}});const n=SF(),r=OF()}(ug)),ug}var vg={},mg={},qx;function RF(){return qx||(qx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return n}});const t=lf();function n(r){let{re:i,groups:a}=r;return o=>{const u=i.exec(o);if(!u)return!1;const l=d=>{try{return decodeURIComponent(d)}catch{throw new t.DecodeError("failed to decode param")}},f={};return Object.keys(a).forEach(d=>{const h=a[d],p=u[h.pos];p!==void 0&&(f[d]=~p.indexOf("/")?p.split("/").map(m=>l(m)):h.repeat?[l(p)]:l(p))}),f}}}(mg)),mg}var gg={},yg={},Ux;function AF(){return Ux||(Ux=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(ue,Te){for(var Ie in Te)Object.defineProperty(ue,Ie,{enumerable:!0,get:Te[Ie]})}t(e,{ACTION_SUFFIX:function(){return l},APP_DIR_ALIAS:function(){return F},CACHE_ONE_YEAR:function(){return T},DOT_NEXT_ALIAS:function(){return L},ESLINT_DEFAULT_DIRS:function(){return be},GSP_NO_RETURNED_VALUE:function(){return ie},GSSP_COMPONENT_MEMBER_ERROR:function(){return le},GSSP_NO_RETURNED_VALUE:function(){return te},INSTRUMENTATION_HOOK_FILENAME:function(){return k},MIDDLEWARE_FILENAME:function(){return _},MIDDLEWARE_LOCATION_REGEXP:function(){return x},NEXT_BODY_SUFFIX:function(){return h},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return C},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return y},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return g},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return m},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return S},NEXT_CACHE_TAGS_HEADER:function(){return p},NEXT_CACHE_TAG_MAX_ITEMS:function(){return b},NEXT_CACHE_TAG_MAX_LENGTH:function(){return w},NEXT_DATA_SUFFIX:function(){return f},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return r},NEXT_META_SUFFIX:function(){return d},NEXT_QUERY_PARAM_PREFIX:function(){return n},NON_STANDARD_NODE_ENV:function(){return me},PAGES_DIR_ALIAS:function(){return A},PRERENDER_REVALIDATE_HEADER:function(){return i},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return a},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return Q},ROOT_DIR_ALIAS:function(){return N},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return z},RSC_ACTION_ENCRYPTION_ALIAS:function(){return j},RSC_ACTION_PROXY_ALIAS:function(){return D},RSC_ACTION_VALIDATE_ALIAS:function(){return V},RSC_MOD_REF_PROXY_ALIAS:function(){return H},RSC_PREFETCH_SUFFIX:function(){return o},RSC_SUFFIX:function(){return u},SERVER_PROPS_EXPORT_ERROR:function(){return ae},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return J},SERVER_PROPS_SSG_CONFLICT:function(){return $},SERVER_RUNTIME:function(){return ne},SSG_FALLBACK_EXPORT_ERROR:function(){return _e},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return q},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return Y},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return fe},WEBPACK_LAYERS:function(){return K},WEBPACK_RESOURCE_QUERIES:function(){return we}});const n="nxtP",r="nxtI",i="x-prerender-revalidate",a="x-prerender-revalidate-if-generated",o=".prefetch.rsc",u=".rsc",l=".action",f=".json",d=".meta",h=".body",p="x-next-cache-tags",m="x-next-cache-soft-tags",y="x-next-revalidated-tags",g="x-next-revalidate-tag-token",b=128,w=256,S=1024,C="_N_T_",T=31536e3,_="middleware",x=`(?:src/)?${_}`,k="instrumentation",A="private-next-pages",L="private-dot-next",N="private-next-root-dir",F="private-next-app-dir",H="private-next-rsc-mod-ref-proxy",V="private-next-rsc-action-validate",D="private-next-rsc-server-reference",j="private-next-rsc-action-encryption",z="private-next-rsc-action-client-wrapper",Q="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",q="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",J="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",$="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",Y="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",ae="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",ie="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",te="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",fe="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",le="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",me='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',_e="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",be=["app","pages","components","lib","src"],ne={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},ve={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",appMetadataRoute:"app-metadata-route",appRouteHandler:"app-route-handler"},K={...ve,GROUP:{serverOnly:[ve.reactServerComponents,ve.actionBrowser,ve.appMetadataRoute,ve.appRouteHandler,ve.instrument],clientOnly:[ve.serverSideRendering,ve.appPagesBrowser],nonClientServerTarget:[ve.middleware,ve.api],app:[ve.reactServerComponents,ve.actionBrowser,ve.appMetadataRoute,ve.appRouteHandler,ve.serverSideRendering,ve.appPagesBrowser,ve.shared,ve.instrument]}},we={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}}(yg)),yg}var bg={},zx;function PF(){return zx||(zx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return r}});const t=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function r(i){return t.test(i)?i.replace(n,"\\$&"):i}}(bg)),bg}var Hx;function NF(){return Hx||(Hx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,g){for(var b in g)Object.defineProperty(y,b,{enumerable:!0,get:g[b]})}t(e,{getNamedMiddlewareRegex:function(){return m},getNamedRouteRegex:function(){return p},getRouteRegex:function(){return l},parseParameter:function(){return o}});const n=AF(),r=jx(),i=PF(),a=Cx();function o(y){const g=y.startsWith("[")&&y.endsWith("]");g&&(y=y.slice(1,-1));const b=y.startsWith("...");return b&&(y=y.slice(3)),{key:y,repeat:b,optional:g}}function u(y){const g=(0,a.removeTrailingSlash)(y).slice(1).split("/"),b={};let w=1;return{parameterizedRoute:g.map(S=>{const C=r.INTERCEPTION_ROUTE_MARKERS.find(_=>S.startsWith(_)),T=S.match(/\[((?:\[.*\])|.+)\]/);if(C&&T){const{key:_,optional:x,repeat:k}=o(T[1]);return b[_]={pos:w++,repeat:k,optional:x},"/"+(0,i.escapeStringRegexp)(C)+"([^/]+?)"}else if(T){const{key:_,repeat:x,optional:k}=o(T[1]);return b[_]={pos:w++,repeat:x,optional:k},x?k?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,i.escapeStringRegexp)(S)}).join(""),groups:b}}function l(y){const{parameterizedRoute:g,groups:b}=u(y);return{re:new RegExp("^"+g+"(?:/)?$"),groups:b}}function f(){let y=0;return()=>{let g="",b=++y;for(;b>0;)g+=String.fromCharCode(97+(b-1)%26),b=Math.floor((b-1)/26);return g}}function d(y){let{interceptionMarker:g,getSafeRouteKey:b,segment:w,routeKeys:S,keyPrefix:C}=y;const{key:T,optional:_,repeat:x}=o(w);let k=T.replace(/\W/g,"");C&&(k=""+C+k);let A=!1;(k.length===0||k.length>30)&&(A=!0),isNaN(parseInt(k.slice(0,1)))||(A=!0),A&&(k=b()),C?S[k]=""+C+T:S[k]=T;const L=g?(0,i.escapeStringRegexp)(g):"";return x?_?"(?:/"+L+"(?<"+k+">.+?))?":"/"+L+"(?<"+k+">.+?)":"/"+L+"(?<"+k+">[^/]+?)"}function h(y,g){const b=(0,a.removeTrailingSlash)(y).slice(1).split("/"),w=f(),S={};return{namedParameterizedRoute:b.map(C=>{const T=r.INTERCEPTION_ROUTE_MARKERS.some(x=>C.startsWith(x)),_=C.match(/\[((?:\[.*\])|.+)\]/);if(T&&_){const[x]=C.split(_[0]);return d({getSafeRouteKey:w,interceptionMarker:x,segment:_[1],routeKeys:S,keyPrefix:g?n.NEXT_INTERCEPTION_MARKER_PREFIX:void 0})}else return _?d({getSafeRouteKey:w,segment:_[1],routeKeys:S,keyPrefix:g?n.NEXT_QUERY_PARAM_PREFIX:void 0}):"/"+(0,i.escapeStringRegexp)(C)}).join(""),routeKeys:S}}function p(y,g){const b=h(y,g);return{...l(y),namedRegex:"^"+b.namedParameterizedRoute+"(?:/)?$",routeKeys:b.routeKeys}}function m(y,g){const{parameterizedRoute:b}=u(y),{catchAll:w=!0}=g;if(b==="/")return{namedRegex:"^/"+(w?".*":"")+"$"};const{namedParameterizedRoute:S}=h(y,!1);let C=w?"(?:(/.*)?)":"";return{namedRegex:"^"+S+C+"$"}}}(gg)),gg}var Bx;function IF(){return Bx||(Bx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return r}});const t=RF(),n=NF();function r(i,a,o){let u="";const l=(0,n.getRouteRegex)(i),f=l.groups,d=(a!==i?(0,t.getRouteMatcher)(l)(a):"")||o;u=i;const h=Object.keys(f);return h.every(p=>{let m=d[p]||"";const{repeat:y,optional:g}=f[p];let b="["+(y?"...":"")+p+"]";return g&&(b=(m?"":"/")+"["+b+"]"),y&&!Array.isArray(m)&&(m=[m]),(g||p in d)&&(u=u.replace(b,y?m.map(w=>encodeURIComponent(w)).join("/"):encodeURIComponent(m))||"/")})||(u=""),{params:h,result:u}}}(vg)),vg}var Wx;function LF(){return Wx||(Wx=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});const n=yx(),r=wx(),i=wF(),a=lf(),o=ff(),u=Nx(),l=kF(),f=IF();function d(h,p,m){let y,g=typeof p=="string"?p:(0,r.formatWithValidation)(p);const b=g.match(/^[a-zA-Z]{1,}:\/\//),w=b?g.slice(b[0].length):g;if((w.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+g+"' passed to next/router in page: '"+h.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const C=(0,a.normalizeRepeatedSlashes)(w);g=(b?b[0]:"")+C}if(!(0,u.isLocalURL)(g))return m?[g]:g;try{y=new URL(g.startsWith("#")?h.asPath:h.pathname,"http://n")}catch{y=new URL("/","http://n")}try{const C=new URL(g,y);C.pathname=(0,o.normalizePathTrailingSlash)(C.pathname);let T="";if((0,l.isDynamicRoute)(C.pathname)&&C.searchParams&&m){const x=(0,n.searchParamsToUrlQuery)(C.searchParams),{result:k,params:A}=(0,f.interpolateAs)(C.pathname,C.pathname,x);k&&(T=(0,r.formatWithValidation)({pathname:k,hash:C.hash,query:(0,i.omit)(x,A)}))}const _=C.origin===y.origin?C.href.slice(C.origin.length):C.href;return m?[_,T||_]:_}catch{return m?[g]:g}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(sf,sf.exports)),sf.exports}var hf={exports:{}},_g={},wg={},Gx;function Qx(){return Gx||(Gx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return n}});const t=ag();function n(r,i){if(!r.startsWith("/")||!i)return r;const{pathname:a,query:o,hash:u}=(0,t.parsePath)(r);return""+i+a+o+u}}(wg)),wg}var Yx;function FF(){return Yx||(Yx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return r}});const t=Qx(),n=Rx();function r(i,a,o,u){if(!a||a===o)return i;const l=i.toLowerCase();return!u&&((0,n.pathHasPrefix)(l,"/api")||(0,n.pathHasPrefix)(l,"/"+a.toLowerCase()))?i:(0,t.addPathPrefix)(i,"/"+a)}}(_g)),_g}var Kx;function DF(){return Kx||(Kx=1,function(e,t){var n={};Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return i}});const r=ff(),i=function(a){for(var o=arguments.length,u=new Array(o>1?o-1:0),l=1;l<o;l++)u[l-1]=arguments[l];return n.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(FF().addLocale(a,...u)):a};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(hf,hf.exports)),hf.exports}var Eg={},Xx;function MF(){return Xx||(Xx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return r}});const r=Zm()._(M).default.createContext(null);r.displayName="RouterContext"}(Eg)),Eg}var Sg={},Zx;function jF(){return Zx||(Zx=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(f,d){for(var h in d)Object.defineProperty(f,h,{enumerable:!0,get:d[h]})}t(e,{AppRouterContext:function(){return i},GlobalLayoutRouterContext:function(){return o},LayoutRouterContext:function(){return a},MissingSlotContext:function(){return l},TemplateContext:function(){return u}});const r=Zm()._(M),i=r.default.createContext(null),a=r.default.createContext(null),o=r.default.createContext(null),u=r.default.createContext(null);i.displayName="AppRouterContext",a.displayName="LayoutRouterContext",o.displayName="GlobalLayoutRouterContext",u.displayName="TemplateContext";const l=r.default.createContext(new Set)}(Sg)),Sg}var pf={exports:{}},vf={exports:{}},Jx;function $F(){return Jx||(Jx=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(a,o){for(var u in o)Object.defineProperty(a,u,{enumerable:!0,get:o[u]})}n(t,{cancelIdleCallback:function(){return i},requestIdleCallback:function(){return r}});const r=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(a){let o=Date.now();return self.setTimeout(function(){a({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-o))}})},1)},i=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(a){return clearTimeout(a)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(vf,vf.exports)),vf.exports}var eC;function VF(){return eC||(eC=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return f}});const n=M,r=$F(),i=typeof IntersectionObserver=="function",a=new Map,o=[];function u(d){const h={root:d.root||null,margin:d.rootMargin||""},p=o.find(b=>b.root===h.root&&b.margin===h.margin);let m;if(p&&(m=a.get(p),m))return m;const y=new Map,g=new IntersectionObserver(b=>{b.forEach(w=>{const S=y.get(w.target),C=w.isIntersecting||w.intersectionRatio>0;S&&C&&S(C)})},d);return m={id:h,observer:g,elements:y},o.push(h),a.set(h,m),m}function l(d,h,p){const{id:m,observer:y,elements:g}=u(p);return g.set(d,h),y.observe(d),function(){if(g.delete(d),y.unobserve(d),g.size===0){y.disconnect(),a.delete(m);const w=o.findIndex(S=>S.root===m.root&&S.margin===m.margin);w>-1&&o.splice(w,1)}}}function f(d){let{rootRef:h,rootMargin:p,disabled:m}=d;const y=m||!i,[g,b]=(0,n.useState)(!1),w=(0,n.useRef)(null),S=(0,n.useCallback)(T=>{w.current=T},[]);(0,n.useEffect)(()=>{if(i){if(y||g)return;const T=w.current;if(T&&T.tagName)return l(T,x=>x&&b(x),{root:h==null?void 0:h.current,rootMargin:p})}else if(!g){const T=(0,r.requestIdleCallback)(()=>b(!0));return()=>(0,r.cancelIdleCallback)(T)}},[y,p,h,g,w.current]);const C=(0,n.useCallback)(()=>{b(!1)},[]);return[S,g,C]}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(pf,pf.exports)),pf.exports}var mf={exports:{}},gf={exports:{}},xg={},tC;function qF(){return tC||(tC=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(n,r){let i;const a=n.split("/");return(r||[]).some(o=>a[1]&&a[1].toLowerCase()===o.toLowerCase()?(i=o,a.splice(1,1),n=a.join("/")||"/",!0):!1),{pathname:n,detectedLocale:i}}}(xg)),xg}var nC;function UF(){return nC||(nC=1,function(e,t){var n={};Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(i,a)=>n.__NEXT_I18N_SUPPORT?qF().normalizeLocalePath(i,a):{pathname:i,detectedLocale:void 0};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(gf,gf.exports)),gf.exports}var yf={exports:{}},Cg={},rC;function zF(){return rC||(rC=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(n,r,i){if(n){i&&(i=i.toLowerCase());for(const u of n){var a,o;const l=(a=u.domain)==null?void 0:a.split(":",1)[0].toLowerCase();if(r===l||i===u.defaultLocale.toLowerCase()||(o=u.locales)!=null&&o.some(f=>f.toLowerCase()===i))return u}}}}(Cg)),Cg}var iC;function HF(){return iC||(iC=1,function(e,t){var n={};Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});const r=function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];if(n.__NEXT_I18N_SUPPORT)return zF().detectDomainLocale(...a)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(yf,yf.exports)),yf.exports}var aC;function BF(){return aC||(aC=1,function(e,t){var n={};Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return a}});const r=ff(),i=n.__NEXT_ROUTER_BASEPATH||"";function a(o,u,l,f){if(n.__NEXT_I18N_SUPPORT){const d=UF().normalizeLocalePath,h=HF().detectDomainLocale,p=u||d(o,l).detectedLocale,m=h(f,void 0,p);if(m){const y="http"+(m.http?"":"s")+"://",g=p===m.defaultLocale?"":"/"+p;return""+y+m.domain+(0,r.normalizePathTrailingSlash)(""+i+g+o)}return!1}else return!1}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(mf,mf.exports)),mf.exports}var bf={exports:{}},oC;function WF(){return oC||(oC=1,function(e,t){var n={};Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return o}});const r=Qx(),i=ff(),a=n.__NEXT_ROUTER_BASEPATH||"";function o(u,l){return(0,i.normalizePathTrailingSlash)(n.__NEXT_MANUAL_CLIENT_BASE_PATH&&!l?u:(0,r.addPathPrefix)(u,a))}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(bf,bf.exports)),bf.exports}var _f={exports:{}},sC;function GF(){return sC||(sC=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(m,y){for(var g in y)Object.defineProperty(m,g,{enumerable:!0,get:y[g]})}n(t,{ACTION_FAST_REFRESH:function(){return l},ACTION_NAVIGATE:function(){return i},ACTION_PREFETCH:function(){return u},ACTION_REFRESH:function(){return r},ACTION_RESTORE:function(){return a},ACTION_SERVER_ACTION:function(){return f},ACTION_SERVER_PATCH:function(){return o},PrefetchCacheEntryStatus:function(){return h},PrefetchKind:function(){return d},isThenable:function(){return p}});const r="refresh",i="navigate",a="restore",o="server-patch",u="prefetch",l="fast-refresh",f="server-action";var d;(function(m){m.AUTO="auto",m.FULL="full",m.TEMPORARY="temporary"})(d||(d={}));var h;(function(m){m.fresh="fresh",m.reusable="reusable",m.expired="expired",m.stale="stale"})(h||(h={}));function p(m){return m&&(typeof m=="object"||typeof m=="function")&&typeof m.then=="function"}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(_f,_f.exports)),_f.exports}var uC;function QF(){return uC||(uC=1,function(e,t){"use client";var n={NODE_ENV:'"production"'};Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return k}});const r=Zm(),i=H1(),a=r._(M),o=LF(),u=Nx(),l=wx(),f=lf(),d=DF(),h=MF(),p=jF(),m=VF(),y=BF(),g=WF(),b=GF(),w=new Set;function S(A,L,N,F,H,V){if(typeof window>"u"||!V&&!(0,u.isLocalURL)(L))return;if(!F.bypassPrefetchedCheck){const j=typeof F.locale<"u"?F.locale:"locale"in A?A.locale:void 0,z=L+"%"+N+"%"+j;if(w.has(z))return;w.add(z)}(async()=>V?A.prefetch(L,H):A.prefetch(L,N,F))().catch(j=>{throw j})}function C(A){const N=A.currentTarget.getAttribute("target");return N&&N!=="_self"||A.metaKey||A.ctrlKey||A.shiftKey||A.altKey||A.nativeEvent&&A.nativeEvent.which===2}function T(A,L,N,F,H,V,D,j,z){const{nodeName:Q}=A.currentTarget;if(Q.toUpperCase()==="A"&&(C(A)||!z&&!(0,u.isLocalURL)(N)))return;A.preventDefault();const J=()=>{const $=D??!0;"beforePopState"in L?L[H?"replace":"push"](N,F,{shallow:V,locale:j,scroll:$}):L[H?"replace":"push"](F||N,{scroll:$})};z?a.default.startTransition(J):J()}function _(A){return typeof A=="string"?A:(0,l.formatUrl)(A)}const k=a.default.forwardRef(function(L,N){let F;const{href:H,as:V,children:D,prefetch:j=null,passHref:z,replace:Q,shallow:q,scroll:J,locale:$,onClick:Y,onMouseEnter:ae,onTouchStart:ie,legacyBehavior:te=!1,...fe}=L;F=D,te&&(typeof F=="string"||typeof F=="number")&&(F=(0,i.jsx)("a",{children:F}));const le=a.default.useContext(h.RouterContext),me=a.default.useContext(p.AppRouterContext),_e=le??me,be=!le,ne=j!==!1,ve=j===null?b.PrefetchKind.AUTO:b.PrefetchKind.FULL;{let Ee=function(He){return new Error("Failed prop type: The prop `"+He.key+"` expects a "+He.expected+" in `<Link>`, but got `"+He.actual+"` instead."+(typeof window<"u"?`
462
+ Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(He=>{if(He==="href"&&(L[He]==null||typeof L[He]!="string"&&typeof L[He]!="object"))throw Ee({key:He,expected:"`string` or `object`",actual:L[He]===null?"null":typeof L[He]})}),Object.keys({as:!0,replace:!0,scroll:!0,shallow:!0,passHref:!0,prefetch:!0,locale:!0,onClick:!0,onMouseEnter:!0,onTouchStart:!0,legacyBehavior:!0}).forEach(He=>{const Jt=typeof L[He];if(He==="as"){if(L[He]&&Jt!=="string"&&Jt!=="object")throw Ee({key:He,expected:"`string` or `object`",actual:Jt})}else if(He==="locale"){if(L[He]&&Jt!=="string")throw Ee({key:He,expected:"`string`",actual:Jt})}else if(He==="onClick"||He==="onMouseEnter"||He==="onTouchStart"){if(L[He]&&Jt!=="function")throw Ee({key:He,expected:"`function`",actual:Jt})}else if((He==="replace"||He==="scroll"||He==="shallow"||He==="passHref"||He==="prefetch"||He==="legacyBehavior")&&L[He]!=null&&Jt!=="boolean")throw Ee({key:He,expected:"`boolean`",actual:Jt})});const Kt=a.default.useRef(!1);L.prefetch&&!Kt.current&&!be&&(Kt.current=!0,console.warn("Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://nextjs.org/docs/messages/prefetch-true-deprecated"))}if(be&&!V){let Ee;if(typeof H=="string"?Ee=H:typeof H=="object"&&typeof H.pathname=="string"&&(Ee=H.pathname),Ee&&Ee.split("/").some(Ct=>Ct.startsWith("[")&&Ct.endsWith("]")))throw new Error("Dynamic href `"+Ee+"` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href")}const{href:K,as:we}=a.default.useMemo(()=>{if(!le){const Ct=_(H);return{href:Ct,as:V?_(V):Ct}}const[Ee,jt]=(0,o.resolveHref)(le,H,!0);return{href:Ee,as:V?(0,o.resolveHref)(le,V):jt||Ee}},[le,H,V]),ue=a.default.useRef(K),Te=a.default.useRef(we);let Ie;te&&(Ie=a.default.Children.only(F));const Je=te?Ie&&typeof Ie=="object"&&Ie.ref:N,[xt,Ot,Vt]=(0,m.useIntersection)({rootMargin:"200px"}),Me=a.default.useCallback(Ee=>{(Te.current!==we||ue.current!==K)&&(Vt(),Te.current=we,ue.current=K),xt(Ee),Je&&(typeof Je=="function"?Je(Ee):typeof Je=="object"&&(Je.current=Ee))},[we,Je,K,Vt,xt]);a.default.useEffect(()=>{},[we,K,Ot,$,ne,le==null?void 0:le.locale,_e,be,ve]);const et={ref:Me,onClick(Ee){if(!Ee)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!te&&typeof Y=="function"&&Y(Ee),te&&Ie.props&&typeof Ie.props.onClick=="function"&&Ie.props.onClick(Ee),_e&&(Ee.defaultPrevented||T(Ee,_e,K,we,Q,q,J,$,be))},onMouseEnter(Ee){!te&&typeof ae=="function"&&ae(Ee),te&&Ie.props&&typeof Ie.props.onMouseEnter=="function"&&Ie.props.onMouseEnter(Ee),_e&&((!ne||n.NODE_ENV==="development")&&be||S(_e,K,we,{locale:$,priority:!0,bypassPrefetchedCheck:!0},{kind:ve},be))},onTouchStart:n.__NEXT_LINK_NO_TOUCH_START?void 0:function(jt){!te&&typeof ie=="function"&&ie(jt),te&&Ie.props&&typeof Ie.props.onTouchStart=="function"&&Ie.props.onTouchStart(jt),_e&&(!ne&&be||S(_e,K,we,{locale:$,priority:!0,bypassPrefetchedCheck:!0},{kind:ve},be))}};if((0,f.isAbsoluteUrl)(we))et.href=we;else if(!te||z||Ie.type==="a"&&!("href"in Ie.props)){const Ee=typeof $<"u"?$:le==null?void 0:le.locale,jt=(le==null?void 0:le.isLocaleDomain)&&(0,y.getDomainLocale)(we,Ee,le==null?void 0:le.locales,le==null?void 0:le.domainLocales);et.href=jt||(0,g.addBasePath)((0,d.addLocale)(we,Ee,le==null?void 0:le.defaultLocale))}return te?a.default.cloneElement(Ie,et):(0,i.jsx)("a",{...fe,...et,children:F})});(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(af,af.exports)),af.exports}var Tg,lC;function YF(){return lC||(lC=1,Tg=QF()),Tg}var KF=YF();const cC=ji(KF);var Og={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_AN_ARTICLE"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"EntityIdOrSlugInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAnArticle"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"author"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"first_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatar_file"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"content"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"category"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"section"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"published_at"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:358}};Og.loc.source={body:`query GET_AN_ARTICLE($queryData: EntityIdOrSlugInputType!) {
463
463
  getAnArticle(queryData: $queryData) {
464
464
  id
465
465
  author {
@@ -509,7 +509,7 @@ Open your browser's console to view the Component stack trace.`:""))};Object.key
509
509
  }
510
510
  }
511
511
  }
512
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Sf(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var n=e.type;n.kind==="NamedType"&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Sf(r,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Sf(r,t)}),e.definitions&&e.definitions.forEach(function(r){Sf(r,t)})}var Ng={};(function(){Pg.definitions.forEach(function(t){if(t.name){var n=new Set;Sf(t,n),Ng[t.name.value]=n}})})();function hC(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}function nD(e,t){var n={kind:e.kind,definitions:[hC(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var r=Ng[t]||new Set,i=new Set,a=new Set;for(r.forEach(function(u){a.add(u)});a.size>0;){var o=a;a=new Set,o.forEach(function(u){if(!i.has(u)){i.add(u);var l=Ng[u]||new Set;l.forEach(function(f){a.add(f)})}})}return i.forEach(function(u){var l=hC(e,u);l&&n.definitions.push(l)}),n}const rD=nD(Pg,"GET_SECTIONS_WITH_ARTICLES"),iD=({setArticleId:e,selectedCategory:t})=>{const[n,r]=M.useState(null),[i,a]=M.useState([]),o=f=>{r(n===f?null:f)},[u,{loading:l}]=Yi(rD,{errorPolicy:"all",fetchPolicy:"no-cache",variables:{queryData:{category_id:t},optionData:{order:[["serial","asc"]]}},onCompleted:f=>{var d;a((d=f==null?void 0:f.getSectionsWithArticles)==null?void 0:d.data)},onError:f=>{console.error(f)}});return M.useEffect(()=>{u()},[]),l?O.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:O.jsx(Zi,{})}):O.jsx("div",{children:i.map(f=>{var d;return O.jsx("div",{className:`ed-border-b ed-border-disabled ${n===f.id?"pb-2":""}`,children:O.jsxs("div",{className:"ed-py-3 ed-px-4",children:[O.jsxs("div",{role:"button",tabIndex:0,onClick:()=>o(f.id),className:`ed-flex ed-items-center ed-justify-between ed-gap-2 ed-p-2 ed-cursor-pointer ed-transition-all ed-duration-300 ed-ease-in-out ${n===f.id?"ed-bg-white-light":""}`,children:[O.jsx("h6",{className:"ed-text-14 ed-font-semibold ed-text-border-dark",children:f.name}),O.jsx("div",{className:"ed-transform ed-transition-transform ed-duration-300 ed-ease-in-out",children:n===f.id?O.jsx(Ep,{className:"ed-text-border-regular ed-size-5"}):O.jsx(cu,{className:"ed-text-border-regular ed-size-5"})})]}),O.jsx("div",{className:`ed-overflow-hidden ed-transition-all ed-ease-in-out ${n===f.id?"ed-max-h-96 ed-opacity-100 ed-mt-3":"ed-max-h-0 ed-opacity-0"}`,children:(d=f==null?void 0:f.section_articles)==null?void 0:d.map(h=>O.jsxs("button",{type:"button",onClick:()=>e(h==null?void 0:h.id),className:"ed-flex ed-items-center ed-gap-2 ed-flex-1 ed-w-full ed-px-6 ed-py-2 ed-hover:bg-white-light ed-group ed-text-left",children:[O.jsx("p",{className:"ed-text-border-dark ed-text-14 ed-font-medium ed-group-hover:text-brand-link ed-flex-1 ed-ease-in-out ed-transition-all",children:mu((h==null?void 0:h.title)||"")}),O.jsx("div",{className:"ed-size-4 ed--translate-x-2 ed-opacity-0 ed-group-hover:opacity-100 ed-group-hover:translate-x-2 ed-transition-all",children:O.jsx(Fo,{className:"ed-text-border ed-size-4"})})]},h.id))})]})},f.id)})})},aD=({loading:e,selectedCategory:t,setArticleId:n,articleId:r,isAuthenticated:i,setSelectedCategory:a})=>O.jsx("div",{children:e?O.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:O.jsx(Zi,{})}):t&&r||!t&&r?O.jsx(tD,{articleId:r,setArticleId:n,isAuthenticated:i}):t&&!r?O.jsx(iD,{setArticleId:n,selectedCategory:t}):O.jsx(bF,{setSelectedCategory:a})}),oD=({setIsCreateNewTicketClicked:e})=>{const{t}=zo();return O.jsxs("div",{className:"ed-flex ed-flex-col ed-items-center ed-justify-center ed-min-h-min ed-h-full",children:[O.jsx(kR,{}),O.jsxs("p",{className:"ed-text-14 ed-text-border-regular ed-text-center",children:[t("widget.label.no_article_found"),O.jsx("button",{type:"button",onClick:()=>e(!0),className:"ed-text-14 ed-font-semibold ed-text-brand-link ed-ml-1",children:t("widget.label.click_here")})]})]})},sD=({isPopupOpen:e,handlePopupTrigger:t,orgBrandSetting:n})=>{const r=f_("(max-width: 768px)"),{brand:i,widget_icon_key:a}=n;return O.jsx("button",{type:"button",onClick:t,style:{transformOrigin:"center",translate:"50% 50%"},className:`${r&&e?"ed-hidden":""} hover:ed-size-14 ed-absolute ed-bottom-12 ed-right-12 ed-rounded-full ed-inline-flex ed-justify-center ed-items-center ed-bg-brand ed-size-12 ed-cursor-pointer ed-origin-center ed-transition-all ed-duration-200 ed-ease-in-out`,children:O.jsxs("div",{className:"ed-relative ed-w-8 ed-h-8 ed-flex ed-items-center ed-justify-center",children:[O.jsx("div",{className:`ed-absolute ed-transition-all ed-duration-300 ${e?"ed-opacity-100 ed-scale-100 ed-rotate-[360deg]":"ed-opacity-0 ed-scale-0 ed-rotate-0"}`,children:O.jsx(cu,{className:"ed-size-7 ed-text-white"})}),O.jsx("div",{className:`ed-absolute ed-transition-all ed-duration-300 ${e?"ed-opacity-0 ed-scale-0 ed-rotate-[360deg]":"ed-opacity-100 ed-scale-100 ed-rotate-0"}`,children:a?O.jsx(ea,{alt:`${i==null?void 0:i.name}'s widget icon`,defaultUserNameTextSize:"text-10",className:"ed-size-7 ed-object-cover ed-rounded-full",defaultImageClasses:"ed-w-7 ed-h-7",path:a,defaultImageName:Po(i==null?void 0:i.name)}):O.jsx(OR,{height:28,width:28})})]})})},uD=({activeTab:e,handleTabChange:t,orgBrandSetting:n={}})=>{const{t:r}=zo(),{remove_app_branding:i,is_knowledge_base_enabled:a,is_live_chat_enabled:o}=n,u=[{id:1,key:"messages",label:"Messages",icon:AR},{id:2,key:"knowledge_base",label:"Knowledge base",icon:PR}],l=M.useMemo(()=>a&&o,[a,o]);return O.jsxs("div",{className:`${l&&"ed-shadow-[0_-8px_10px_rgba(0,0,0,0.02)] ed-pt-2.5"} 'ed-h-max'`,children:[a&&o&&O.jsx("div",{className:"ed-grid ed-grid-cols-2",children:u.map(f=>{const d=e===f.key;return O.jsxs("button",{type:"button",onClick:()=>t(f.key),className:"ed-flex ed-flex-col ed-items-center ed-justify-center",children:[O.jsx(f.icon,{isActive:d}),O.jsx("h3",{className:`ed-text-14 ed-font-semibold ${d?"ed-text-brand":"ed-text-border-regular"} ed-inline-block`,children:f.label})]},f.id)})}),!i&&O.jsxs("p",{className:"ed-py-2 ed-text-center ed-text-12 ed-font-medium ed-text-border-regular ed-bg-gray md:ed-rounded-b-[10px] ed-mt-1.5",children:[r("widget.label.powerd_by")," ",O.jsx(cC,{href:"https://easydesk.app/",target:"_blank",className:"ed-text-14 ed-font-semibold ed-text-border-regular",children:r("widget.label.easydesk")})]})]})},lD=({searchedText:e,selectedCategory:t,setSearchedText:n,setArticleId:r,setSelectedCategory:i,setIsPopupOpen:a,handleSearch:o,setArticlesData:u,brandInfo:l,activeTab:f})=>{const{t:d}=zo(),h=f_("(max-width: 768px)"),p=()=>{n(""),r(null),i(null)};return O.jsx("div",{className:"ed-bg-brand ed-py-8 ed-px-5 md:ed-rounded-t-[10px] ed-h-max",children:f==="messages"?O.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[O.jsx(ea,{className:"ed-size-10 ed-rounded-full ed-object-cover",defaultImageClasses:"ed-h-10 ed-w-10",path:l==null?void 0:l.logo_icon_key,defaultImageName:Po(l==null?void 0:l.name)}),O.jsx("h6",{className:"ed-text-14 ed-font-semibold ed-text-white",children:l==null?void 0:l.name})]}):O.jsxs("div",{children:[O.jsxs("div",{className:"ed-flex ed-items-start ed-justify-between",children:[ze.size(e)||t?O.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-mb-4",children:[O.jsx(bp,{onClick:p,className:"ed-text-white ed-size-5"}),O.jsx("p",{className:"ed-text-14 ed-font-medium ed-text-white",children:d("widget.label.knowledge_base")})]}):O.jsxs("div",{children:[O.jsx("p",{className:"ed-text-14 ed-font-medium ed-text-white",children:d("widget.label.lets_explore")}),O.jsx("h4",{className:"ed-text-24 ed-font-bold ed-text-white ed-mt-2 ed-mb-4",children:d("widget.label.knowledge_base")})]}),h&&O.jsx("button",{type:"button",onClick:()=>a(!1),children:O.jsx(Ji,{size:20,className:"ed-text-white"})})]}),O.jsxs("div",{className:"ed-bg-white ed-rounded-full ed-border ed-border-border-light ed-flex ed-items-center ed-justify-between ed-gap-2 ed-px-4 ed-py-2.5",children:[O.jsx("input",{value:e,onChange:m=>o(m.target.value),placeholder:d("widget.placeholder.search_for_articles"),type:"text",className:"ed-bg-transparent ed-outline-none ed-w-full ed-placeholder:text-14 ed-placeholder:font-medium ed-placeholder:text-border"}),O.jsxs("div",{className:"ed-flex ed-items-center ed-gap-3",children:[e&&O.jsx("button",{type:"button",onClick:()=>{n(""),u([])},children:O.jsx(Ji,{size:20,className:"ed-text-border"})}),O.jsx(Ip,{size:24,className:"ed-text-border"})]})]})]})})};var Ig={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_ARTICLES"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NamedType",name:{kind:"Name",value:"ArticleQueryInputType"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"optionData"}},type:{kind:"NamedType",name:{kind:"Name",value:"OptionDataType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getArticles"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}},{kind:"Argument",name:{kind:"Name",value:"optionData"},value:{kind:"Variable",name:{kind:"Name",value:"optionData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:193}};Ig.loc.source={body:`query GET_ARTICLES($queryData: ArticleQueryInputType, $optionData: OptionDataType) {
512
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Sf(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var n=e.type;n.kind==="NamedType"&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Sf(r,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Sf(r,t)}),e.definitions&&e.definitions.forEach(function(r){Sf(r,t)})}var Ng={};(function(){Pg.definitions.forEach(function(t){if(t.name){var n=new Set;Sf(t,n),Ng[t.name.value]=n}})})();function hC(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}function nD(e,t){var n={kind:e.kind,definitions:[hC(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var r=Ng[t]||new Set,i=new Set,a=new Set;for(r.forEach(function(u){a.add(u)});a.size>0;){var o=a;a=new Set,o.forEach(function(u){if(!i.has(u)){i.add(u);var l=Ng[u]||new Set;l.forEach(function(f){a.add(f)})}})}return i.forEach(function(u){var l=hC(e,u);l&&n.definitions.push(l)}),n}const rD=nD(Pg,"GET_SECTIONS_WITH_ARTICLES"),iD=({setArticleId:e,selectedCategory:t})=>{const[n,r]=M.useState(null),[i,a]=M.useState([]),o=f=>{r(n===f?null:f)},[u,{loading:l}]=Yi(rD,{errorPolicy:"all",fetchPolicy:"no-cache",variables:{queryData:{category_id:t},optionData:{order:[["serial","asc"]]}},onCompleted:f=>{var d;a((d=f==null?void 0:f.getSectionsWithArticles)==null?void 0:d.data)},onError:f=>{console.error(f)}});return M.useEffect(()=>{u()},[]),l?O.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:O.jsx(Zi,{})}):O.jsx("div",{children:i.map(f=>{var d;return O.jsx("div",{className:`ed-border-b ed-border-disabled ${n===f.id?"pb-2":""}`,children:O.jsxs("div",{className:"ed-py-3 ed-px-4",children:[O.jsxs("div",{role:"button",tabIndex:0,onClick:()=>o(f.id),className:`ed-flex ed-items-center ed-justify-between ed-gap-2 ed-p-2 ed-cursor-pointer ed-transition-all ed-duration-300 ed-ease-in-out ${n===f.id?"ed-bg-white-light":""}`,children:[O.jsx("h6",{className:"ed-text-14 ed-font-semibold ed-text-border-dark",children:f.name}),O.jsx("div",{className:"ed-transform ed-transition-transform ed-duration-300 ed-ease-in-out",children:n===f.id?O.jsx(Ep,{className:"ed-text-border-regular ed-size-5"}):O.jsx(cu,{className:"ed-text-border-regular ed-size-5"})})]}),O.jsx("div",{className:`ed-overflow-hidden ed-transition-all ed-ease-in-out ${n===f.id?"ed-max-h-96 ed-opacity-100 ed-mt-3":"ed-max-h-0 ed-opacity-0"}`,children:(d=f==null?void 0:f.section_articles)==null?void 0:d.map(h=>O.jsxs("button",{type:"button",onClick:()=>e(h==null?void 0:h.id),className:"ed-flex ed-items-center ed-gap-2 ed-flex-1 ed-w-full ed-px-6 ed-py-2 ed-hover:bg-white-light ed-group ed-text-left",children:[O.jsx("p",{className:"ed-text-border-dark ed-text-14 ed-font-medium ed-group-hover:text-brand-link ed-flex-1 ed-ease-in-out ed-transition-all",children:mu((h==null?void 0:h.title)||"")}),O.jsx("div",{className:"ed-size-4 ed--translate-x-2 ed-opacity-0 ed-group-hover:opacity-100 ed-group-hover:translate-x-2 ed-transition-all",children:O.jsx(Fo,{className:"ed-text-border ed-size-4"})})]},h.id))})]})},f.id)})})},aD=({loading:e,selectedCategory:t,setArticleId:n,articleId:r,isAuthenticated:i,setSelectedCategory:a})=>O.jsx("div",{children:e?O.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:O.jsx(Zi,{})}):t&&r||!t&&r?O.jsx(tD,{articleId:r,setArticleId:n,isAuthenticated:i}):t&&!r?O.jsx(iD,{setArticleId:n,selectedCategory:t}):O.jsx(bF,{setSelectedCategory:a})}),oD=({setIsCreateNewTicketClicked:e})=>{const{t}=zo();return O.jsxs("div",{className:"ed-flex ed-flex-col ed-items-center ed-justify-center ed-min-h-min ed-h-full",children:[O.jsx(kR,{}),O.jsxs("p",{className:"ed-text-14 ed-text-border-regular ed-text-center",children:[t("widget.label.no_article_found"),O.jsx("button",{type:"button",onClick:()=>e(!0),className:"ed-text-14 ed-font-semibold ed-text-brand-link ed-ml-1",children:t("widget.label.click_here")})]})]})},sD=({isPopupOpen:e,handlePopupTrigger:t,orgBrandSetting:n})=>{const r=f_("(max-width: 768px)"),{brand:i,widget_icon_key:a}=n;return O.jsx("button",{type:"button",onClick:t,style:{transformOrigin:"center",translate:"50% 50%"},className:`${r&&e?"ed-hidden":""} hover:ed-size-14 ed-absolute ed-bottom-12 ed-right-12 ed-rounded-full ed-inline-flex ed-justify-center ed-items-center ed-bg-brand ed-size-12 ed-cursor-pointer ed-origin-center ed-transition-all ed-duration-200 ed-ease-in-out`,children:O.jsxs("div",{className:"ed-relative ed-w-8 ed-h-8 ed-flex ed-items-center ed-justify-center",children:[O.jsx("div",{className:`ed-absolute ed-transition-all ed-duration-300 ${e?"ed-opacity-100 ed-scale-100 ed-rotate-[360deg]":"ed-opacity-0 ed-scale-0 ed-rotate-0"}`,children:O.jsx(cu,{className:"ed-size-7 ed-text-white"})}),O.jsx("div",{className:`ed-absolute ed-transition-all ed-duration-300 ${e?"ed-opacity-0 ed-scale-0 ed-rotate-[360deg]":"ed-opacity-100 ed-scale-100 ed-rotate-0"}`,children:a?O.jsx(ea,{alt:`${i==null?void 0:i.name}'s widget icon`,defaultUserNameTextSize:"text-10",className:"ed-size-7 ed-object-cover ed-rounded-full",defaultImageClasses:"ed-w-7 ed-h-7",path:a,defaultImageName:Po(i==null?void 0:i.name)}):O.jsx(OR,{height:28,width:28})})]})})},uD=({activeTab:e,handleTabChange:t,orgBrandSetting:n={}})=>{const{t:r}=zo(),{remove_app_branding:i,is_knowledge_base_enabled:a,is_live_chat_enabled:o}=n,u=[{id:1,key:"messages",label:"Messages",icon:AR},{id:2,key:"knowledge_base",label:"Knowledge base",icon:PR}],l=M.useMemo(()=>a&&o,[a,o]);return O.jsxs("div",{className:`${l&&"ed-shadow-[0_-8px_10px_rgba(0,0,0,0.02)] ed-pt-2.5"} 'ed-h-max'`,children:[a&&o&&O.jsx("div",{className:"ed-grid ed-grid-cols-2",children:u.map(f=>{const d=e===f.key;return O.jsxs("button",{type:"button",onClick:()=>t(f.key),className:"ed-flex ed-flex-col ed-items-center ed-justify-center",children:[O.jsx(f.icon,{isActive:d}),O.jsx("h3",{className:`ed-text-14 ed-font-semibold ${d?"ed-text-brand":"ed-text-border-regular"} ed-inline-block`,children:f.label})]},f.id)})}),!i&&O.jsxs("p",{className:"ed-py-2 ed-text-center ed-text-12 ed-font-medium ed-text-border-regular ed-bg-gray md:ed-rounded-b-[10px] ed-mt-1.5",children:[r("widget.label.powerd_by")," ",O.jsx(cC,{href:"https://easydesk.app/",target:"_blank",className:"ed-text-14 ed-font-semibold ed-text-border-regular",children:r("widget.label.easydesk")})]})]})},lD=({searchedText:e,selectedCategory:t,setSearchedText:n,setArticleId:r,setSelectedCategory:i,setIsPopupOpen:a,handleSearch:o,setArticlesData:u,brandInfo:l,activeTab:f})=>{const{t:d}=zo(),h=f_("(max-width: 768px)"),p=()=>{n(""),r(null),i(null)};return O.jsx("div",{className:"ed-bg-brand ed-py-8 ed-px-5 md:ed-rounded-t-[10px] ed-h-max",children:f==="messages"?O.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[O.jsx(ea,{className:"ed-size-10 ed-rounded-full ed-object-cover",defaultImageClasses:"ed-h-10 ed-w-10",path:l==null?void 0:l.logo_icon_key,defaultImageName:Po(l==null?void 0:l.name)}),O.jsx("h6",{className:"ed-text-14 ed-font-semibold ed-text-white",children:l==null?void 0:l.name})]}):O.jsxs("div",{children:[O.jsxs("div",{className:"ed-flex ed-items-start ed-justify-between",children:[Ge.size(e)||t?O.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-mb-4",children:[O.jsx(bp,{onClick:p,className:"ed-text-white ed-size-5"}),O.jsx("p",{className:"ed-text-14 ed-font-medium ed-text-white",children:d("widget.label.knowledge_base")})]}):O.jsxs("div",{children:[O.jsx("p",{className:"ed-text-14 ed-font-medium ed-text-white",children:d("widget.label.lets_explore")}),O.jsx("h4",{className:"ed-text-24 ed-font-bold ed-text-white ed-mt-2 ed-mb-4",children:d("widget.label.knowledge_base")})]}),h&&O.jsx("button",{type:"button",onClick:()=>a(!1),children:O.jsx(Ji,{size:20,className:"ed-text-white"})})]}),O.jsxs("div",{className:"ed-bg-white ed-rounded-full ed-border ed-border-border-light ed-flex ed-items-center ed-justify-between ed-gap-2 ed-px-4 ed-py-2.5",children:[O.jsx("input",{value:e,onChange:m=>o(m.target.value),placeholder:d("widget.placeholder.search_for_articles"),type:"text",className:"ed-bg-transparent ed-outline-none ed-w-full ed-placeholder:text-14 ed-placeholder:font-medium ed-placeholder:text-border"}),O.jsxs("div",{className:"ed-flex ed-items-center ed-gap-3",children:[e&&O.jsx("button",{type:"button",onClick:()=>{n(""),u([])},children:O.jsx(Ji,{size:20,className:"ed-text-border"})}),O.jsx(Ip,{size:24,className:"ed-text-border"})]})]})]})})};var Ig={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_ARTICLES"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NamedType",name:{kind:"Name",value:"ArticleQueryInputType"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"optionData"}},type:{kind:"NamedType",name:{kind:"Name",value:"OptionDataType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getArticles"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}},{kind:"Argument",name:{kind:"Name",value:"optionData"},value:{kind:"Variable",name:{kind:"Name",value:"optionData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:193}};Ig.loc.source={body:`query GET_ARTICLES($queryData: ArticleQueryInputType, $optionData: OptionDataType) {
513
513
  getArticles(queryData: $queryData, optionData: $optionData) {
514
514
  data {
515
515
  id
@@ -517,4 +517,4 @@ Open your browser's console to view the Component stack trace.`:""))};Object.key
517
517
  }
518
518
  }
519
519
  }
520
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function xf(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var n=e.type;n.kind==="NamedType"&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){xf(r,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){xf(r,t)}),e.definitions&&e.definitions.forEach(function(r){xf(r,t)})}var Lg={};(function(){Ig.definitions.forEach(function(t){if(t.name){var n=new Set;xf(t,n),Lg[t.name.value]=n}})})();function pC(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}function cD(e,t){var n={kind:e.kind,definitions:[pC(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var r=Lg[t]||new Set,i=new Set,a=new Set;for(r.forEach(function(u){a.add(u)});a.size>0;){var o=a;a=new Set,o.forEach(function(u){if(!i.has(u)){i.add(u);var l=Lg[u]||new Set;l.forEach(function(f){a.add(f)})}})}return i.forEach(function(u){var l=pC(e,u);l&&n.definitions.push(l)}),n}const fD=cD(Ig,"GET_ARTICLES"),dD=e=>{const{userData:t}=e||{},[n,r]=M.useState(!1),[i,a]=M.useState(""),[o,u]=M.useState(null),[l,f]=M.useState(null),[d,h]=M.useState(!1),[p,m]=M.useState([]),[y,g]=M.useState(""),[b,w]=M.useState(!1),[S,C]=M.useState({}),[T,{loading:_}]=Yi(fD,{errorPolicy:"all",fetchPolicy:"no-cache",onCompleted:j=>{var z;m(((z=j==null?void 0:j.getArticles)==null?void 0:z.data)||[])},onError:j=>{console.error(j)}}),x=Q9(j=>{T({variables:{queryData:{search_keyword:j}}})},500),k=j=>{a(j),x(j)},A=async()=>{w(!0);try{const j=await Y9();if(j){const{font:z,is_knowledge_base_enabled:Y,is_live_chat_enabled:q,theme_color:J}=j;C(j),K9(J),X9(z),(Y&&!q||Y&&q)&&g("knowledge_base"),!Y&&q&&g("messages"),w(!1)}}catch(j){console.error(j),w(!1)}},L=()=>{r(!n),a(""),u(null),f(null),h(!1),A()};M.useEffect(()=>{A()},[]);const N=()=>y==="knowledge_base"?O.jsx(aD,{loading:_,articleId:l,isAuthenticated:t==null?void 0:t.isAuthenticated,selectedCategory:o,setArticleId:f,setSelectedCategory:u}):y==="messages"?O.jsx(gF,{orgBrandSetting:S,setIsPopupOpen:r,userData:t}):null,{brand:F,is_knowledge_base_enabled:H,is_live_chat_enabled:V}=S||{},D=j=>{g(j),a(""),u(null),f(null),h(!1)};return!H&&!V?null:O.jsxs("div",{children:[O.jsx(sD,{isPopupOpen:n,handlePopupTrigger:L,orgBrandSetting:S}),O.jsx("div",{className:`ed-absolute ${n?"ed-opacity-100 ed-w-screen ed-h-dvh md:ed-max-h-[704px] md:ed-h-[80vh] md:ed-w-[400px]":"ed-opacity-0 ed-max-h-0 ed-h-0 ed-w-0 ed-pointer-events-none"} md:ed-bottom-24 md:ed-right-6 ed-bottom-0 ed-right-0 ed-bg-white ed-shadow-lg md:ed-rounded-[10px] ed-z-[9999999] ed-p-0.5 ed-overflow-hidden ed-transition-all ed-duration-300 ed-ease-in-out ed-flex ed-flex-col`,children:n&&O.jsxs(O.Fragment,{children:[O.jsx(lD,{searchedText:i,selectedCategory:o,setSearchedText:a,setArticleId:f,setSelectedCategory:u,setIsPopupOpen:r,handleSearch:k,setArticlesData:m,brandInfo:F,activeTab:y}),O.jsx("div",{className:`ed-flex-1 ed-overflow-y-auto no-scrollbar ed-px-5 ${y==="knowledge_base"?"ed-pb-5":""} ed-pt-1 ed-root-scrollbar`,children:i?O.jsx("div",{className:"ed-h-full",children:ze.size(p)?O.jsx(c7,{}):O.jsx(oD,{setIsCreateNewTicketClicked:h})}):O.jsx("div",{className:`${y==="knowledge_base"?"ed-py-1":""} ed-space-y-4`,children:N()})}),O.jsx(uD,{activeTab:y,handleTabChange:D,orgBrandSetting:S}),d&&O.jsx(pR,{setIsCreateNewTicketClicked:h,setSearchedText:a,searchedText:i,isAuthenticated:t==null?void 0:t.isAuthenticated})]})})]})},hD=async(e,t)=>{var n;try{const r=await Gt.post(`${jh()||t}/auth/widget-login`,{api_key:e});return((n=r==null?void 0:r.data)==null?void 0:n.data)||{}}catch{return{access_token:null,refresh_token:null}}},Fg=e=>{const{apiKey:t,envVariables:n}=e,[r,i]=M.useState(!1),[a,o]=M.useState(!1),u=(n==null?void 0:n.apiBaseUrl)||"https://api.easydesk.app",l=async d=>{i(!0);const h=await hD(d,u);h!=null&&h.access_token&&(qh("easydesk_chat_widget_public_access_token",h==null?void 0:h.access_token,{expires:30}),i(!1))};M.useEffect(()=>{t&&l(t)},[t]),M.useEffect(()=>{i2(n||{apiBaseUrl:"https://api.easydesk.app",cdnDomain:"easydesk-prod"}),o(!0)},[n]);const f=M.useMemo(()=>sp(u),[u]);return r||!a?O.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:O.jsx(iv,{})}):O.jsxs(xO,{client:f,children:[O.jsx(ZO,{}),O.jsx(dD,{...e})]})},Dg=e=>{let t=document.getElementById("easydesk-chat-container");t||(t=document.createElement("div"),t.id="ed-widget",document.body.appendChild(t)),R6.createRoot(t).render(O.jsx(Fg,{...e}))},vC=()=>{const e=document.getElementById("ed-widget");if(e){const t=e.getAttribute("ed-key"),n=e.getAttribute("ed-api-url"),r=e.getAttribute("ed-cdn-domain");t?Dg({apiKey:t,envVariables:{apiBaseUrl:n,cdnDomain:r}}):console.error("ChatKey: API key is required for initialization")}};typeof window<"u"&&(window.ChatKey={init:Dg},document.readyState==="complete"?vC():window.addEventListener("load",vC));const pD=Object.freeze(Object.defineProperty({__proto__:null,default:{widget:{label:{click_here:"click here",copy_code:"Copy code",create_a_ticket:"Create a ticket",easydesk:"EasyDesk",explore_more_articles:"Explore more articles",knowledge_base:"Knowledge Base",lets_explore:"Let's explore",no_article_found:"We couldn't find any articles that match your search. Want to create a ticket?",powerd_by:"Powered by",soon_get_response:"Soon you will get an email",ticket_created:"Ticket created",thank_you_for_your_feedback:"Thank you for your valuable feedback!"},placeholder:{search_for_articles:"Search for articles"}}}},Symbol.toStringTag,{value:"Module"})),vD=Object.freeze(Object.defineProperty({__proto__:null,default:{widget:{label:{click_here:"klikk her",copy_code:"Kopier kode",create_a_ticket:"Opprett en sak",easydesk:"EasyDesk",explore_more_articles:"Utforsk flere artikler",knowledge_base:"Kunnskapsbase",lets_explore:"La oss utforske",no_article_found:"Vi fant ingen artikler som samsvarer med søket ditt. Vil du opprette en sak?",powerd_by:"Drevet av",soon_get_response:"Du vil snart motta en e-post",ticket_created:"Sak opprettet",thank_you_for_your_feedback:"Takk for tilbakemeldingen din!"},placeholder:{search_for_articles:"Søk etter artikler"}}}},Symbol.toStringTag,{value:"Module"}));Cn.Widget=Fg,Cn.default=Fg,Cn.initChatKey=Dg,Object.defineProperties(Cn,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
520
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function xf(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var n=e.type;n.kind==="NamedType"&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){xf(r,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){xf(r,t)}),e.definitions&&e.definitions.forEach(function(r){xf(r,t)})}var Lg={};(function(){Ig.definitions.forEach(function(t){if(t.name){var n=new Set;xf(t,n),Lg[t.name.value]=n}})})();function pC(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}function cD(e,t){var n={kind:e.kind,definitions:[pC(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var r=Lg[t]||new Set,i=new Set,a=new Set;for(r.forEach(function(u){a.add(u)});a.size>0;){var o=a;a=new Set,o.forEach(function(u){if(!i.has(u)){i.add(u);var l=Lg[u]||new Set;l.forEach(function(f){a.add(f)})}})}return i.forEach(function(u){var l=pC(e,u);l&&n.definitions.push(l)}),n}const fD=cD(Ig,"GET_ARTICLES"),dD=e=>{const{userData:t}=e||{},[n,r]=M.useState(!1),[i,a]=M.useState(""),[o,u]=M.useState(null),[l,f]=M.useState(null),[d,h]=M.useState(!1),[p,m]=M.useState([]),[y,g]=M.useState(""),[b,w]=M.useState(!1),[S,C]=M.useState({}),[T,{loading:_}]=Yi(fD,{errorPolicy:"all",fetchPolicy:"no-cache",onCompleted:j=>{var z;m(((z=j==null?void 0:j.getArticles)==null?void 0:z.data)||[])},onError:j=>{console.error(j)}}),x=Q9(j=>{T({variables:{queryData:{search_keyword:j}}})},500),k=j=>{a(j),x(j)},A=async()=>{w(!0);try{const j=await Y9();if(j){const{font:z,is_knowledge_base_enabled:Q,is_live_chat_enabled:q,theme_color:J}=j;C(j),K9(J),X9(z),(Q&&!q||Q&&q)&&g("knowledge_base"),!Q&&q&&g("messages"),w(!1)}}catch(j){console.error(j),w(!1)}},L=()=>{r(!n),a(""),u(null),f(null),h(!1),A()};M.useEffect(()=>{A()},[]);const N=()=>y==="knowledge_base"?O.jsx(aD,{loading:_,articleId:l,isAuthenticated:t==null?void 0:t.isAuthenticated,selectedCategory:o,setArticleId:f,setSelectedCategory:u}):y==="messages"?O.jsx(gF,{orgBrandSetting:S,setIsPopupOpen:r,userData:t}):null,{brand:F,is_knowledge_base_enabled:H,is_live_chat_enabled:V}=S||{},D=j=>{g(j),a(""),u(null),f(null),h(!1)};return!H&&!V?null:O.jsxs("div",{children:[O.jsx(sD,{isPopupOpen:n,handlePopupTrigger:L,orgBrandSetting:S}),O.jsx("div",{className:`ed-absolute ${n?"ed-opacity-100 ed-w-screen ed-h-dvh md:ed-max-h-[704px] md:ed-h-[80vh] md:ed-w-[400px]":"ed-opacity-0 ed-max-h-0 ed-h-0 ed-w-0 ed-pointer-events-none"} md:ed-bottom-24 md:ed-right-6 ed-bottom-0 ed-right-0 ed-bg-white ed-shadow-lg md:ed-rounded-[10px] ed-z-[9999999] ed-p-0.5 ed-overflow-hidden ed-transition-all ed-duration-300 ed-ease-in-out ed-flex ed-flex-col`,children:n&&O.jsxs(O.Fragment,{children:[O.jsx(lD,{searchedText:i,selectedCategory:o,setSearchedText:a,setArticleId:f,setSelectedCategory:u,setIsPopupOpen:r,handleSearch:k,setArticlesData:m,brandInfo:F,activeTab:y}),O.jsx("div",{className:`ed-flex-1 ed-overflow-y-auto no-scrollbar ed-px-5 ${y==="knowledge_base"?"ed-pb-5":""} ed-pt-1 ed-root-scrollbar`,children:i?O.jsx("div",{className:"ed-h-full",children:Ge.size(p)?O.jsx(c7,{}):O.jsx(oD,{setIsCreateNewTicketClicked:h})}):O.jsx("div",{className:`${y==="knowledge_base"?"ed-py-1":""} ed-space-y-4`,children:N()})}),O.jsx(uD,{activeTab:y,handleTabChange:D,orgBrandSetting:S}),d&&O.jsx(pR,{setIsCreateNewTicketClicked:h,setSearchedText:a,searchedText:i,isAuthenticated:t==null?void 0:t.isAuthenticated})]})})]})},hD=async(e,t)=>{var n;try{const r=await Gt.post(`${jh()||t}/auth/widget-login`,{api_key:e});return((n=r==null?void 0:r.data)==null?void 0:n.data)||{}}catch{return{access_token:null,refresh_token:null}}},Fg=e=>{const{apiKey:t,envVariables:n}=e,[r,i]=M.useState(!1),[a,o]=M.useState(!1),u=(n==null?void 0:n.apiBaseUrl)||"https://api.easydesk.app",l=async d=>{i(!0);const h=await hD(d,u);h!=null&&h.access_token&&(qh("easydesk_chat_widget_public_access_token",h==null?void 0:h.access_token,{expires:30}),i(!1))};M.useEffect(()=>{t&&l(t)},[t]),M.useEffect(()=>{i2(n||{apiBaseUrl:"https://api.easydesk.app",cdnDomain:"easydesk-prod"}),o(!0)},[n]);const f=M.useMemo(()=>sp(u),[u]);return r||!a?O.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:O.jsx(iv,{})}):O.jsxs(xO,{client:f,children:[O.jsx(ZO,{}),O.jsx(dD,{...e})]})},Dg=e=>{let t=document.getElementById("easydesk-chat-container");t||(t=document.createElement("div"),t.id="ed-widget",document.body.appendChild(t)),R6.createRoot(t).render(O.jsx(Fg,{...e}))},vC=()=>{const e=document.getElementById("ed-widget");if(e){const t=e.getAttribute("ed-key"),n=e.getAttribute("ed-api-url"),r=e.getAttribute("ed-cdn-domain");t?Dg({apiKey:t,envVariables:{apiBaseUrl:n,cdnDomain:r}}):console.error("ChatKey: API key is required for initialization")}};typeof window<"u"&&(window.ChatKey={init:Dg},document.readyState==="complete"?vC():window.addEventListener("load",vC));const pD=Object.freeze(Object.defineProperty({__proto__:null,default:{widget:{label:{click_here:"click here",copy_code:"Copy code",create_a_ticket:"Create a ticket",easydesk:"EasyDesk",explore_more_articles:"Explore more articles",knowledge_base:"Knowledge Base",lets_explore:"Let's explore",no_article_found:"We couldn't find any articles that match your search. Want to create a ticket?",powerd_by:"Powered by",soon_get_response:"Soon you will get an email",ticket_created:"Ticket created",thank_you_for_your_feedback:"Thank you for your valuable feedback!"},placeholder:{search_for_articles:"Search for articles"}}}},Symbol.toStringTag,{value:"Module"})),vD=Object.freeze(Object.defineProperty({__proto__:null,default:{widget:{label:{click_here:"klikk her",copy_code:"Kopier kode",create_a_ticket:"Opprett en sak",easydesk:"EasyDesk",explore_more_articles:"Utforsk flere artikler",knowledge_base:"Kunnskapsbase",lets_explore:"La oss utforske",no_article_found:"Vi fant ingen artikler som samsvarer med søket ditt. Vil du opprette en sak?",powerd_by:"Drevet av",soon_get_response:"Du vil snart motta en e-post",ticket_created:"Sak opprettet",thank_you_for_your_feedback:"Takk for tilbakemeldingen din!"},placeholder:{search_for_articles:"Søk etter artikler"}}}},Symbol.toStringTag,{value:"Module"}));Cn.Widget=Fg,Cn.default=Fg,Cn.initChatKey=Dg,Object.defineProperties(Cn,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});